From 00fa4b5399ce96db7cf3ed515ec209be37364ab3 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 3 Apr 2018 11:46:18 +0000 Subject: [PATCH 001/521] Client Python update by Travis Build 2970 --- README.md | 3 +- docs/V1EmptyDiskSource.md | 10 ++ docs/V1Volume.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_empty_disk_source.py | 126 ++++++++++++++++++++++++ kubevirt/models/v1_volume.py | 30 +++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_empty_disk_source.py | 44 +++++++++ 14 files changed, 222 insertions(+), 7 deletions(-) create mode 100644 docs/V1EmptyDiskSource.md create mode 100644 kubevirt/models/v1_empty_disk_source.py create mode 100644 test/test_v1_empty_disk_source.py diff --git a/README.md b/README.md index ae157a4d..6a4def9d 100644 --- a/README.md +++ b/README.md @@ -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: v0.3.0-136-g7e1dbe38 +- Package version: v0.3.0-162-g84545d14 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -136,6 +136,7 @@ Class | Method | HTTP request | Description - [V1Disk](docs/V1Disk.md) - [V1DiskTarget](docs/V1DiskTarget.md) - [V1DomainSpec](docs/V1DomainSpec.md) + - [V1EmptyDiskSource](docs/V1EmptyDiskSource.md) - [V1EphemeralVolumeSource](docs/V1EphemeralVolumeSource.md) - [V1FeatureAPIC](docs/V1FeatureAPIC.md) - [V1FeatureHyperv](docs/V1FeatureHyperv.md) diff --git a/docs/V1EmptyDiskSource.md b/docs/V1EmptyDiskSource.md new file mode 100644 index 00000000..8102ed31 --- /dev/null +++ b/docs/V1EmptyDiskSource.md @@ -0,0 +1,10 @@ +# V1EmptyDiskSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**capacity** | **str** | Capacity of the sparse disk. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Volume.md b/docs/V1Volume.md index 45fc62e6..785ff7c3 100644 --- a/docs/V1Volume.md +++ b/docs/V1Volume.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cloud_init_no_cloud** | [**V1CloudInitNoCloudSource**](V1CloudInitNoCloudSource.md) | CloudInitNoCloud represents a cloud-init NoCloud user-data source. The NoCloud data will be added as a disk to the vm. A proper cloud-init installation is required inside the guest. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html +optional | [optional] +**empty_disk** | [**V1EmptyDiskSource**](V1EmptyDiskSource.md) | EmptyDisk represents a temporary disk which shares the vms lifecycle More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html +optional | [optional] **ephemeral** | [**V1EphemeralVolumeSource**](V1EphemeralVolumeSource.md) | Ephemeral is a special volume source that \"wraps\" specified source and provides copy-on-write image on top of it. +optional | [optional] **name** | **str** | Volume's name. Must be a DNS_LABEL and unique within the vm. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | **persistent_volume_claim** | [**V1PersistentVolumeClaimVolumeSource**](V1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vm via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims +optional | [optional] diff --git a/git_push.sh b/git_push.sh index 92d88b8d..612f0d00 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.3.0-136-g7e1dbe38" + release_note="Auto-generated client v0.3.0-162-g84545d14" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 7263d565..faa28407 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -47,6 +47,9 @@ [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_domain_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_domain_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DomainSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_empty_disk_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_empty_disk_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1EmptyDiskSource.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_ephemeral_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_ephemeral_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1EphemeralVolumeSource.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 6506fcff..007fcf0f 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -29,6 +29,7 @@ from .models.v1_disk import V1Disk from .models.v1_disk_target import V1DiskTarget from .models.v1_domain_spec import V1DomainSpec +from .models.v1_empty_disk_source import V1EmptyDiskSource from .models.v1_ephemeral_volume_source import V1EphemeralVolumeSource from .models.v1_feature_apic import V1FeatureAPIC from .models.v1_feature_hyperv import V1FeatureHyperv diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 34eb1c1a..80008a6b 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.3.0-136-g7e1dbe38/python' + self.user_agent = 'Swagger-Codegen/v0.3.0-162-g84545d14/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 04f60cba..5c6f33cc 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -220,5 +220,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 1.0.0\n"\ - "SDK Package Version: v0.3.0-136-g7e1dbe38".\ + "SDK Package Version: v0.3.0-162-g84545d14".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index d4a4deb1..7af1797c 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -29,6 +29,7 @@ from .v1_disk import V1Disk from .v1_disk_target import V1DiskTarget from .v1_domain_spec import V1DomainSpec +from .v1_empty_disk_source import V1EmptyDiskSource from .v1_ephemeral_volume_source import V1EphemeralVolumeSource from .v1_feature_apic import V1FeatureAPIC from .v1_feature_hyperv import V1FeatureHyperv diff --git a/kubevirt/models/v1_empty_disk_source.py b/kubevirt/models/v1_empty_disk_source.py new file mode 100644 index 00000000..89352abe --- /dev/null +++ b/kubevirt/models/v1_empty_disk_source.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1EmptyDiskSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'capacity': 'str' + } + + attribute_map = { + 'capacity': 'capacity' + } + + def __init__(self, capacity=None): + """ + V1EmptyDiskSource - a model defined in Swagger + """ + + self._capacity = None + + self.capacity = capacity + + @property + def capacity(self): + """ + Gets the capacity of this V1EmptyDiskSource. + Capacity of the sparse disk. + + :return: The capacity of this V1EmptyDiskSource. + :rtype: str + """ + return self._capacity + + @capacity.setter + def capacity(self, capacity): + """ + Sets the capacity of this V1EmptyDiskSource. + Capacity of the sparse disk. + + :param capacity: The capacity of this V1EmptyDiskSource. + :type: str + """ + if capacity is None: + raise ValueError("Invalid value for `capacity`, must not be `None`") + + self._capacity = capacity + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1EmptyDiskSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_volume.py b/kubevirt/models/v1_volume.py index aba115de..556da99c 100644 --- a/kubevirt/models/v1_volume.py +++ b/kubevirt/models/v1_volume.py @@ -32,6 +32,7 @@ class V1Volume(object): """ swagger_types = { 'cloud_init_no_cloud': 'V1CloudInitNoCloudSource', + 'empty_disk': 'V1EmptyDiskSource', 'ephemeral': 'V1EphemeralVolumeSource', 'name': 'str', 'persistent_volume_claim': 'V1PersistentVolumeClaimVolumeSource', @@ -40,18 +41,20 @@ class V1Volume(object): attribute_map = { 'cloud_init_no_cloud': 'cloudInitNoCloud', + 'empty_disk': 'emptyDisk', 'ephemeral': 'ephemeral', 'name': 'name', 'persistent_volume_claim': 'persistentVolumeClaim', 'registry_disk': 'registryDisk' } - def __init__(self, cloud_init_no_cloud=None, ephemeral=None, name=None, persistent_volume_claim=None, registry_disk=None): + def __init__(self, cloud_init_no_cloud=None, empty_disk=None, ephemeral=None, name=None, persistent_volume_claim=None, registry_disk=None): """ V1Volume - a model defined in Swagger """ self._cloud_init_no_cloud = None + self._empty_disk = None self._ephemeral = None self._name = None self._persistent_volume_claim = None @@ -59,6 +62,8 @@ def __init__(self, cloud_init_no_cloud=None, ephemeral=None, name=None, persiste if cloud_init_no_cloud is not None: self.cloud_init_no_cloud = cloud_init_no_cloud + if empty_disk is not None: + self.empty_disk = empty_disk if ephemeral is not None: self.ephemeral = ephemeral self.name = name @@ -90,6 +95,29 @@ def cloud_init_no_cloud(self, cloud_init_no_cloud): self._cloud_init_no_cloud = cloud_init_no_cloud + @property + def empty_disk(self): + """ + Gets the empty_disk of this V1Volume. + EmptyDisk represents a temporary disk which shares the vms lifecycle More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html +optional + + :return: The empty_disk of this V1Volume. + :rtype: V1EmptyDiskSource + """ + return self._empty_disk + + @empty_disk.setter + def empty_disk(self, empty_disk): + """ + Sets the empty_disk of this V1Volume. + EmptyDisk represents a temporary disk which shares the vms lifecycle More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html +optional + + :param empty_disk: The empty_disk of this V1Volume. + :type: V1EmptyDiskSource + """ + + self._empty_disk = empty_disk + @property def ephemeral(self): """ diff --git a/setup.py b/setup.py index a29a51fc..ce8531ac 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.3.0-136-g7e1dbe38" +VERSION = "v0.3.0-162-g84545d14" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 8107f88d..7daf9979 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.3.0-136-g7e1dbe38" +"packageVersion": "v0.3.0-162-g84545d14" } diff --git a/test/test_v1_empty_disk_source.py b/test/test_v1_empty_disk_source.py new file mode 100644 index 00000000..0fef2f25 --- /dev/null +++ b/test/test_v1_empty_disk_source.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_empty_disk_source import V1EmptyDiskSource + + +class TestV1EmptyDiskSource(unittest.TestCase): + """ V1EmptyDiskSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1EmptyDiskSource(self): + """ + Test V1EmptyDiskSource + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_empty_disk_source.V1EmptyDiskSource() + pass + + +if __name__ == '__main__': + unittest.main() From 2c2ceca14306fd98abd7615b662a1fc4b2330587 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 24 Apr 2018 12:57:36 +0000 Subject: [PATCH 002/521] Client Python update by Travis Build 3183 --- README.md | 2 +- docs/V1FeatureVendorID.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_feature_vendor_id.py | 5 ++--- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 6a4def9d..aa641bad 100644 --- a/README.md +++ b/README.md @@ -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: v0.3.0-162-g84545d14 +- Package version: v0.4.1-84-g332e5ad3 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1FeatureVendorID.md b/docs/V1FeatureVendorID.md index f9b7aae7..ce88ab55 100644 --- a/docs/V1FeatureVendorID.md +++ b/docs/V1FeatureVendorID.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **enabled** | **bool** | Enabled determines if the feature should be enabled or disabled on the guest Defaults to true +optional | [optional] -**vendorid** | **str** | VendorID sets the hypervisor vendor id, visible to the vm String up to twelve characters | +**vendorid** | **str** | VendorID sets the hypervisor vendor id, visible to the vm String up to twelve characters | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 612f0d00..3ec8fe3c 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.3.0-162-g84545d14" + release_note="Auto-generated client v0.4.1-84-g332e5ad3" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 80008a6b..a04d5dcf 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.3.0-162-g84545d14/python' + self.user_agent = 'Swagger-Codegen/v0.4.1-84-g332e5ad3/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 5c6f33cc..c985ca3f 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -220,5 +220,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 1.0.0\n"\ - "SDK Package Version: v0.3.0-162-g84545d14".\ + "SDK Package Version: v0.4.1-84-g332e5ad3".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_feature_vendor_id.py b/kubevirt/models/v1_feature_vendor_id.py index aa43ccd4..341d055a 100644 --- a/kubevirt/models/v1_feature_vendor_id.py +++ b/kubevirt/models/v1_feature_vendor_id.py @@ -50,7 +50,8 @@ def __init__(self, enabled=None, vendorid=None): if enabled is not None: self.enabled = enabled - self.vendorid = vendorid + if vendorid is not None: + self.vendorid = vendorid @property def enabled(self): @@ -95,8 +96,6 @@ def vendorid(self, vendorid): :param vendorid: The vendorid of this V1FeatureVendorID. :type: str """ - if vendorid is None: - raise ValueError("Invalid value for `vendorid`, must not be `None`") self._vendorid = vendorid diff --git a/setup.py b/setup.py index ce8531ac..d6265ff3 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.3.0-162-g84545d14" +VERSION = "v0.4.1-84-g332e5ad3" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 7daf9979..30e33038 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.3.0-162-g84545d14" +"packageVersion": "v0.4.1-84-g332e5ad3" } From 7588576c4d2a4aeb00440acecf4672c7a6294659 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sat, 28 Apr 2018 07:27:18 +0000 Subject: [PATCH 003/521] Client Python update by Travis Build 3226 --- README.md | 14 +- docs/DefaultApi.md | 343 ++++++++++++++++++++++++++++++----- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 98 +++++----- kubevirt/configuration.py | 9 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 367 insertions(+), 105 deletions(-) diff --git a/README.md b/README.md index aa641bad..9333d059 100644 --- a/README.md +++ b/README.md @@ -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: v0.4.1-84-g332e5ad3 +- Package version: v0.4.1-128-ge628ae3c - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -51,6 +51,11 @@ import time import kubevirt from kubevirt.rest import ApiException from pprint import pprint + +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' # create an instance of the API class api_instance = kubevirt.DefaultApi() @@ -204,7 +209,12 @@ Class | Method | HTTP request | Description ## Documentation For Authorization - All endpoints do not require authorization. + +## BearerToken + +- **Type**: API key +- **API key parameter name**: authorization +- **Location**: HTTP header ## Author diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 9cb508a4..63b4c5ff 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -68,6 +68,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() @@ -87,7 +92,7 @@ void (empty response body) ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -109,6 +114,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects @@ -134,7 +144,7 @@ void (empty response body) ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -156,6 +166,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() body = kubevirt.V1OfflineVirtualMachine() # V1OfflineVirtualMachine | @@ -182,7 +197,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -204,6 +219,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() body = kubevirt.V1VirtualMachinePreset() # V1VirtualMachinePreset | @@ -230,7 +250,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -252,6 +272,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() body = kubevirt.V1VirtualMachine() # V1VirtualMachine | @@ -278,7 +303,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -300,6 +325,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() body = kubevirt.V1VirtualMachineReplicaSet() # V1VirtualMachineReplicaSet | @@ -326,7 +356,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -348,6 +378,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -386,7 +421,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -408,6 +443,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -446,7 +486,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -468,6 +508,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -506,7 +551,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -528,6 +573,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -566,7 +616,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -588,6 +638,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() body = kubevirt.V1DeleteOptions() # V1DeleteOptions | @@ -622,7 +677,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -644,6 +699,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() body = kubevirt.V1DeleteOptions() # V1DeleteOptions | @@ -678,7 +738,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -700,6 +760,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() body = kubevirt.V1DeleteOptions() # V1DeleteOptions | @@ -734,7 +799,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -756,6 +821,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() body = kubevirt.V1DeleteOptions() # V1DeleteOptions | @@ -790,7 +860,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -812,6 +882,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() @@ -832,7 +907,7 @@ This endpoint does not need any parameter. ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -854,6 +929,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() @@ -874,7 +954,7 @@ This endpoint does not need any parameter. ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -896,6 +976,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() @@ -916,7 +1001,7 @@ This endpoint does not need any parameter. ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -938,6 +1023,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() @@ -958,7 +1048,7 @@ This endpoint does not need any parameter. ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -980,6 +1070,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() @@ -1000,7 +1095,7 @@ This endpoint does not need any parameter. ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -1022,6 +1117,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects @@ -1062,7 +1162,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -1084,6 +1184,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects @@ -1124,7 +1229,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -1146,6 +1251,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects @@ -1186,7 +1296,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -1208,6 +1318,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects @@ -1248,7 +1363,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -1270,6 +1385,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -1308,7 +1428,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -1330,6 +1450,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -1368,7 +1493,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -1390,6 +1515,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -1428,7 +1558,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -1450,6 +1580,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -1488,7 +1623,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -1510,6 +1645,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() body = kubevirt.V1Patch() # V1Patch | @@ -1534,7 +1674,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -1556,6 +1696,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() body = kubevirt.V1Patch() # V1Patch | @@ -1580,7 +1725,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -1602,6 +1747,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() body = kubevirt.V1Patch() # V1Patch | @@ -1626,7 +1776,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -1648,6 +1798,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() body = kubevirt.V1Patch() # V1Patch | @@ -1672,7 +1827,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -1694,6 +1849,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource @@ -1724,7 +1884,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -1746,6 +1906,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource @@ -1776,7 +1941,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -1798,6 +1963,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource @@ -1828,7 +1998,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -1850,6 +2020,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource @@ -1880,7 +2055,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -1902,6 +2077,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() body = kubevirt.V1OfflineVirtualMachine() # V1OfflineVirtualMachine | @@ -1930,7 +2110,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -1952,6 +2132,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() body = kubevirt.V1VirtualMachinePreset() # V1VirtualMachinePreset | @@ -1980,7 +2165,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -2002,6 +2187,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() body = kubevirt.V1VirtualMachine() # V1VirtualMachine | @@ -2030,7 +2220,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -2052,6 +2242,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() body = kubevirt.V1VirtualMachineReplicaSet() # V1VirtualMachineReplicaSet | @@ -2080,7 +2275,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -2102,6 +2297,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects @@ -2127,7 +2327,7 @@ void (empty response body) ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -2149,6 +2349,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects @@ -2174,7 +2379,7 @@ void (empty response body) ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -2196,6 +2401,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects @@ -2236,7 +2446,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -2258,6 +2468,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects @@ -2298,7 +2513,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -2320,6 +2535,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects @@ -2360,7 +2580,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -2382,6 +2602,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects @@ -2422,7 +2647,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -2444,6 +2669,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -2482,7 +2712,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -2504,6 +2734,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -2542,7 +2777,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -2564,6 +2799,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -2602,7 +2842,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -2624,6 +2864,11 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubevirt.DefaultApi() _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -2662,7 +2907,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers diff --git a/git_push.sh b/git_push.sh index 3ec8fe3c..210ca649 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.4.1-84-g332e5ad3" + release_note="Auto-generated client v0.4.1-128-ge628ae3c" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index a04d5dcf..29cbc2a0 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.4.1-84-g332e5ad3/python' + self.user_agent = 'Swagger-Codegen/v0.4.1-128-ge628ae3c/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 41845199..afea80c2 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -119,7 +119,7 @@ def check_health_with_http_info(self, **kwargs): select_header_content_type(['application/json']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/healthz', 'GET', path_params, @@ -226,7 +226,7 @@ def console_with_http_info(self, namespace, name, **kwargs): body_params = None # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}/console', 'GET', path_params, @@ -339,7 +339,7 @@ def create_namespaced_offline_virtual_machine_with_http_info(self, body, namespa select_header_content_type(['application/json', 'application/yaml']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines', 'POST', path_params, @@ -452,7 +452,7 @@ def create_namespaced_virtual_machine_with_http_info(self, body, namespace, **kw select_header_content_type(['application/json', 'application/yaml']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets', 'POST', path_params, @@ -565,7 +565,7 @@ def create_namespaced_virtual_machine_0_with_http_info(self, body, namespace, ** select_header_content_type(['application/json', 'application/yaml']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines', 'POST', path_params, @@ -678,7 +678,7 @@ def create_namespaced_virtual_machine_replica_set_with_http_info(self, body, nam select_header_content_type(['application/json', 'application/yaml']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets', 'POST', path_params, @@ -803,7 +803,7 @@ def delete_collection_namespaced_offline_virtual_machine_with_http_info(self, ** select_header_accept(['application/json', 'application/yaml']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines', 'DELETE', path_params, @@ -928,7 +928,7 @@ def delete_collection_namespaced_virtual_machine_with_http_info(self, **kwargs): select_header_accept(['application/json', 'application/yaml']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets', 'DELETE', path_params, @@ -1053,7 +1053,7 @@ def delete_collection_namespaced_virtual_machine_0_with_http_info(self, **kwargs select_header_accept(['application/json', 'application/yaml']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines', 'DELETE', path_params, @@ -1178,7 +1178,7 @@ def delete_collection_namespaced_virtual_machine_replica_set_with_http_info(self select_header_accept(['application/json', 'application/yaml']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets', 'DELETE', path_params, @@ -1312,7 +1312,7 @@ def delete_namespaced_offline_virtual_machine_with_http_info(self, body, namespa select_header_content_type(['application/json', 'application/yaml']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines/{name}', 'DELETE', path_params, @@ -1446,7 +1446,7 @@ def delete_namespaced_virtual_machine_with_http_info(self, body, namespace, name select_header_content_type(['application/json', 'application/yaml']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name}', 'DELETE', path_params, @@ -1580,7 +1580,7 @@ def delete_namespaced_virtual_machine_0_with_http_info(self, body, namespace, na select_header_content_type(['application/json', 'application/yaml']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}', 'DELETE', path_params, @@ -1714,7 +1714,7 @@ def delete_namespaced_virtual_machine_replica_set_with_http_info(self, body, nam select_header_content_type(['application/json', 'application/yaml']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets/{name}', 'DELETE', path_params, @@ -1806,7 +1806,7 @@ def get_api_group_with_http_info(self, **kwargs): select_header_accept(['application/json']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis', 'GET', path_params, @@ -1898,7 +1898,7 @@ def get_api_group_0_with_http_info(self, **kwargs): select_header_accept(['application/json']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io', 'GET', path_params, @@ -1990,7 +1990,7 @@ def get_api_group_1_with_http_info(self, **kwargs): select_header_accept(['application/json']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/subresources.kubevirt.io', 'GET', path_params, @@ -2082,7 +2082,7 @@ def get_api_resources_with_http_info(self, **kwargs): select_header_accept(['application/json']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1', 'GET', path_params, @@ -2174,7 +2174,7 @@ def get_api_resources_0_with_http_info(self, **kwargs): select_header_accept(['application/json']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha1', 'GET', path_params, @@ -2308,7 +2308,7 @@ def list_namespaced_offline_virtual_machine_with_http_info(self, namespace, **kw select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines', 'GET', path_params, @@ -2442,7 +2442,7 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets', 'GET', path_params, @@ -2576,7 +2576,7 @@ def list_namespaced_virtual_machine_0_with_http_info(self, namespace, **kwargs): select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines', 'GET', path_params, @@ -2710,7 +2710,7 @@ def list_namespaced_virtual_machine_replica_set_with_http_info(self, namespace, select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets', 'GET', path_params, @@ -2835,7 +2835,7 @@ def list_offline_virtual_machine_for_all_namespaces_with_http_info(self, **kwarg select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/offlinevirtualmachines', 'GET', path_params, @@ -2960,7 +2960,7 @@ def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/virtualmachinepresets', 'GET', path_params, @@ -3085,7 +3085,7 @@ def list_virtual_machine_for_all_namespaces_0_with_http_info(self, **kwargs): select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/virtualmachines', 'GET', path_params, @@ -3210,7 +3210,7 @@ def list_virtual_machine_replica_set_for_all_namespaces_with_http_info(self, **k select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/virtualmachinereplicasets', 'GET', path_params, @@ -3314,7 +3314,7 @@ def patch_namespaced_offline_virtual_machine_with_http_info(self, body, **kwargs select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines/{name}', 'PATCH', path_params, @@ -3418,7 +3418,7 @@ def patch_namespaced_virtual_machine_with_http_info(self, body, **kwargs): select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name}', 'PATCH', path_params, @@ -3522,7 +3522,7 @@ def patch_namespaced_virtual_machine_0_with_http_info(self, body, **kwargs): select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}', 'PATCH', path_params, @@ -3626,7 +3626,7 @@ def patch_namespaced_virtual_machine_replica_set_with_http_info(self, body, **kw select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets/{name}', 'PATCH', path_params, @@ -3745,7 +3745,7 @@ def read_namespaced_offline_virtual_machine_with_http_info(self, name, namespace select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines/{name}', 'GET', path_params, @@ -3864,7 +3864,7 @@ def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwar select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name}', 'GET', path_params, @@ -3983,7 +3983,7 @@ def read_namespaced_virtual_machine_0_with_http_info(self, name, namespace, **kw select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}', 'GET', path_params, @@ -4102,7 +4102,7 @@ def read_namespaced_virtual_machine_replica_set_with_http_info(self, name, names select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets/{name}', 'GET', path_params, @@ -4224,7 +4224,7 @@ def replace_namespaced_offline_virtual_machine_with_http_info(self, body, namesp select_header_content_type(['application/json', 'application/yaml']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines/{name}', 'PUT', path_params, @@ -4346,7 +4346,7 @@ def replace_namespaced_virtual_machine_with_http_info(self, body, namespace, nam select_header_content_type(['application/json', 'application/yaml']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name}', 'PUT', path_params, @@ -4468,7 +4468,7 @@ def replace_namespaced_virtual_machine_0_with_http_info(self, body, namespace, n select_header_content_type(['application/json', 'application/yaml']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}', 'PUT', path_params, @@ -4590,7 +4590,7 @@ def replace_namespaced_virtual_machine_replica_set_with_http_info(self, body, na select_header_content_type(['application/json', 'application/yaml']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets/{name}', 'PUT', path_params, @@ -4697,7 +4697,7 @@ def test_with_http_info(self, namespace, name, **kwargs): body_params = None # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}/test', 'GET', path_params, @@ -4804,7 +4804,7 @@ def vnc_with_http_info(self, namespace, name, **kwargs): body_params = None # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}/vnc', 'GET', path_params, @@ -4938,7 +4938,7 @@ def watch_namespaced_offline_virtual_machine_with_http_info(self, namespace, **k select_header_accept(['application/json']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/offlinevirtualmachines', 'GET', path_params, @@ -5072,7 +5072,7 @@ def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): select_header_accept(['application/json']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinepresets', 'GET', path_params, @@ -5206,7 +5206,7 @@ def watch_namespaced_virtual_machine_0_with_http_info(self, namespace, **kwargs) select_header_accept(['application/json']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachines', 'GET', path_params, @@ -5340,7 +5340,7 @@ def watch_namespaced_virtual_machine_replica_set_with_http_info(self, namespace, select_header_accept(['application/json']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinereplicasets', 'GET', path_params, @@ -5465,7 +5465,7 @@ def watch_offline_virtual_machine_list_for_all_namespaces_with_http_info(self, * select_header_accept(['application/json']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/watch/offlinevirtualmachines', 'GET', path_params, @@ -5590,7 +5590,7 @@ def watch_virtual_machine_list_for_all_namespaces_with_http_info(self, **kwargs) select_header_accept(['application/json']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/watch/virtualmachinepresets', 'GET', path_params, @@ -5715,7 +5715,7 @@ def watch_virtual_machine_list_for_all_namespaces_0_with_http_info(self, **kwarg select_header_accept(['application/json']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/watch/virtualmachines', 'GET', path_params, @@ -5840,7 +5840,7 @@ def watch_virtual_machine_replica_set_list_for_all_namespaces_with_http_info(sel select_header_accept(['application/json']) # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/watch/virtualmachinereplicasets', 'GET', path_params, diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c985ca3f..5d432898 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -207,6 +207,13 @@ def auth_settings(self): :return: The Auth Settings information dict. """ return { + 'BearerToken': + { + 'type': 'api_key', + 'in': 'header', + 'key': 'authorization', + 'value': self.get_api_key_with_prefix('authorization') + }, } @@ -220,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: v0.4.1-84-g332e5ad3".\ + "SDK Package Version: v0.4.1-128-ge628ae3c".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index d6265ff3..535b5cc5 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.4.1-84-g332e5ad3" +VERSION = "v0.4.1-128-ge628ae3c" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 30e33038..a4316456 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.4.1-84-g332e5ad3" +"packageVersion": "v0.4.1-128-ge628ae3c" } From 2187730d903621140054cab875c7683caefd9402 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 30 Apr 2018 08:42:58 +0000 Subject: [PATCH 004/521] Client Python update by Travis Build 3231 --- README.md | 42 ++--- docs/DefaultApi.md | 212 ++++++++++----------- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 10 - kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 352 +++++++++++++++++------------------ kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 60 +++--- 10 files changed, 338 insertions(+), 348 deletions(-) diff --git a/README.md b/README.md index 9333d059..1adcd937 100644 --- a/README.md +++ b/README.md @@ -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: v0.4.1-128-ge628ae3c +- Package version: v0.4.1-129-g78b24958 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -76,16 +76,16 @@ Class | Method | HTTP request | Description *DefaultApi* | [**check_health**](docs/DefaultApi.md#check_health) | **GET** /apis/kubevirt.io/v1alpha1/healthz | Health endpoint *DefaultApi* | [**console**](docs/DefaultApi.md#console) | **GET** /apis/subresources.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}/console | Open a websocket connection to a serial console on the specified VM. *DefaultApi* | [**create_namespaced_offline_virtual_machine**](docs/DefaultApi.md#create_namespaced_offline_virtual_machine) | **POST** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines | Create a OfflineVirtualMachine object. -*DefaultApi* | [**create_namespaced_virtual_machine**](docs/DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets | Create a VirtualMachine object. -*DefaultApi* | [**create_namespaced_virtual_machine_0**](docs/DefaultApi.md#create_namespaced_virtual_machine_0) | **POST** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines | Create a VirtualMachine object. +*DefaultApi* | [**create_namespaced_virtual_machine**](docs/DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines | Create a VirtualMachine object. +*DefaultApi* | [**create_namespaced_virtual_machine_preset**](docs/DefaultApi.md#create_namespaced_virtual_machine_preset) | **POST** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets | Create a VirtualMachinePreset object. *DefaultApi* | [**create_namespaced_virtual_machine_replica_set**](docs/DefaultApi.md#create_namespaced_virtual_machine_replica_set) | **POST** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets | Create a VirtualMachineReplicaSet object. *DefaultApi* | [**delete_collection_namespaced_offline_virtual_machine**](docs/DefaultApi.md#delete_collection_namespaced_offline_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines | Delete a collection of OfflineVirtualMachine objects. -*DefaultApi* | [**delete_collection_namespaced_virtual_machine**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets | Delete a collection of VirtualMachine objects. -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_0**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_0) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines | Delete a collection of VirtualMachine objects. +*DefaultApi* | [**delete_collection_namespaced_virtual_machine**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines | Delete a collection of VirtualMachine objects. +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_preset**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_preset) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets | Delete a collection of VirtualMachinePreset objects. *DefaultApi* | [**delete_collection_namespaced_virtual_machine_replica_set**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets | Delete a collection of VirtualMachineReplicaSet objects. *DefaultApi* | [**delete_namespaced_offline_virtual_machine**](docs/DefaultApi.md#delete_namespaced_offline_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines/{name} | Delete a OfflineVirtualMachine object. -*DefaultApi* | [**delete_namespaced_virtual_machine**](docs/DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name} | Delete a VirtualMachine object. -*DefaultApi* | [**delete_namespaced_virtual_machine_0**](docs/DefaultApi.md#delete_namespaced_virtual_machine_0) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name} | Delete a VirtualMachine object. +*DefaultApi* | [**delete_namespaced_virtual_machine**](docs/DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name} | Delete a VirtualMachine object. +*DefaultApi* | [**delete_namespaced_virtual_machine_preset**](docs/DefaultApi.md#delete_namespaced_virtual_machine_preset) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name} | Delete a VirtualMachinePreset object. *DefaultApi* | [**delete_namespaced_virtual_machine_replica_set**](docs/DefaultApi.md#delete_namespaced_virtual_machine_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets/{name} | Delete a VirtualMachineReplicaSet object. *DefaultApi* | [**get_api_group**](docs/DefaultApi.md#get_api_group) | **GET** /apis | Get a KubeVirt API GroupList *DefaultApi* | [**get_api_group_0**](docs/DefaultApi.md#get_api_group_0) | **GET** /apis/kubevirt.io | Get a KubeVirt API group @@ -93,34 +93,34 @@ Class | Method | HTTP request | Description *DefaultApi* | [**get_api_resources**](docs/DefaultApi.md#get_api_resources) | **GET** /apis/kubevirt.io/v1alpha1 | Get KubeVirt API Resources *DefaultApi* | [**get_api_resources_0**](docs/DefaultApi.md#get_api_resources_0) | **GET** /apis/subresources.kubevirt.io/v1alpha1 | Get a KubeVirt API resources *DefaultApi* | [**list_namespaced_offline_virtual_machine**](docs/DefaultApi.md#list_namespaced_offline_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines | Get a list of OfflineVirtualMachine objects. -*DefaultApi* | [**list_namespaced_virtual_machine**](docs/DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets | Get a list of VirtualMachine objects. -*DefaultApi* | [**list_namespaced_virtual_machine_0**](docs/DefaultApi.md#list_namespaced_virtual_machine_0) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines | Get a list of VirtualMachine objects. +*DefaultApi* | [**list_namespaced_virtual_machine**](docs/DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines | Get a list of VirtualMachine objects. +*DefaultApi* | [**list_namespaced_virtual_machine_preset**](docs/DefaultApi.md#list_namespaced_virtual_machine_preset) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets | Get a list of VirtualMachinePreset objects. *DefaultApi* | [**list_namespaced_virtual_machine_replica_set**](docs/DefaultApi.md#list_namespaced_virtual_machine_replica_set) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets | Get a list of VirtualMachineReplicaSet objects. *DefaultApi* | [**list_offline_virtual_machine_for_all_namespaces**](docs/DefaultApi.md#list_offline_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/offlinevirtualmachines | Get a list of all OfflineVirtualMachine objects. -*DefaultApi* | [**list_virtual_machine_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/virtualmachinepresets | Get a list of all VirtualMachine objects. -*DefaultApi* | [**list_virtual_machine_for_all_namespaces_0**](docs/DefaultApi.md#list_virtual_machine_for_all_namespaces_0) | **GET** /apis/kubevirt.io/v1alpha1/virtualmachines | Get a list of all VirtualMachine objects. +*DefaultApi* | [**list_virtual_machine_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/virtualmachines | Get a list of all VirtualMachine objects. +*DefaultApi* | [**list_virtual_machine_preset_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/virtualmachinepresets | Get a list of all VirtualMachinePreset objects. *DefaultApi* | [**list_virtual_machine_replica_set_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/virtualmachinereplicasets | Get a list of all VirtualMachineReplicaSet objects. *DefaultApi* | [**patch_namespaced_offline_virtual_machine**](docs/DefaultApi.md#patch_namespaced_offline_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines/{name} | Patch a OfflineVirtualMachine object. -*DefaultApi* | [**patch_namespaced_virtual_machine**](docs/DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name} | Patch a VirtualMachine object. -*DefaultApi* | [**patch_namespaced_virtual_machine_0**](docs/DefaultApi.md#patch_namespaced_virtual_machine_0) | **PATCH** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name} | Patch a VirtualMachine object. +*DefaultApi* | [**patch_namespaced_virtual_machine**](docs/DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name} | Patch a VirtualMachine object. +*DefaultApi* | [**patch_namespaced_virtual_machine_preset**](docs/DefaultApi.md#patch_namespaced_virtual_machine_preset) | **PATCH** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name} | Patch a VirtualMachinePreset object. *DefaultApi* | [**patch_namespaced_virtual_machine_replica_set**](docs/DefaultApi.md#patch_namespaced_virtual_machine_replica_set) | **PATCH** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets/{name} | Patch a VirtualMachineReplicaSet object. *DefaultApi* | [**read_namespaced_offline_virtual_machine**](docs/DefaultApi.md#read_namespaced_offline_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines/{name} | Get a OfflineVirtualMachine object. -*DefaultApi* | [**read_namespaced_virtual_machine**](docs/DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name} | Get a VirtualMachine object. -*DefaultApi* | [**read_namespaced_virtual_machine_0**](docs/DefaultApi.md#read_namespaced_virtual_machine_0) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name} | Get a VirtualMachine object. +*DefaultApi* | [**read_namespaced_virtual_machine**](docs/DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name} | Get a VirtualMachine object. +*DefaultApi* | [**read_namespaced_virtual_machine_preset**](docs/DefaultApi.md#read_namespaced_virtual_machine_preset) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name} | Get a VirtualMachinePreset object. *DefaultApi* | [**read_namespaced_virtual_machine_replica_set**](docs/DefaultApi.md#read_namespaced_virtual_machine_replica_set) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets/{name} | Get a VirtualMachineReplicaSet object. *DefaultApi* | [**replace_namespaced_offline_virtual_machine**](docs/DefaultApi.md#replace_namespaced_offline_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines/{name} | Update a OfflineVirtualMachine object. -*DefaultApi* | [**replace_namespaced_virtual_machine**](docs/DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name} | Update a VirtualMachine object. -*DefaultApi* | [**replace_namespaced_virtual_machine_0**](docs/DefaultApi.md#replace_namespaced_virtual_machine_0) | **PUT** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name} | Update a VirtualMachine object. +*DefaultApi* | [**replace_namespaced_virtual_machine**](docs/DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name} | Update a VirtualMachine object. +*DefaultApi* | [**replace_namespaced_virtual_machine_preset**](docs/DefaultApi.md#replace_namespaced_virtual_machine_preset) | **PUT** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name} | Update a VirtualMachinePreset object. *DefaultApi* | [**replace_namespaced_virtual_machine_replica_set**](docs/DefaultApi.md#replace_namespaced_virtual_machine_replica_set) | **PUT** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets/{name} | Update a VirtualMachineReplicaSet object. *DefaultApi* | [**test**](docs/DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}/test | Test endpoint verifying apiserver connectivity. *DefaultApi* | [**vnc**](docs/DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}/vnc | Open a websocket connection to connect to VNC on the specified VM. *DefaultApi* | [**watch_namespaced_offline_virtual_machine**](docs/DefaultApi.md#watch_namespaced_offline_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/offlinevirtualmachines | Watch a OfflineVirtualMachine object. -*DefaultApi* | [**watch_namespaced_virtual_machine**](docs/DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinepresets | Watch a VirtualMachine object. -*DefaultApi* | [**watch_namespaced_virtual_machine_0**](docs/DefaultApi.md#watch_namespaced_virtual_machine_0) | **GET** /apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachines | Watch a VirtualMachine object. +*DefaultApi* | [**watch_namespaced_virtual_machine**](docs/DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachines | Watch a VirtualMachine object. +*DefaultApi* | [**watch_namespaced_virtual_machine_preset**](docs/DefaultApi.md#watch_namespaced_virtual_machine_preset) | **GET** /apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinepresets | Watch a VirtualMachinePreset object. *DefaultApi* | [**watch_namespaced_virtual_machine_replica_set**](docs/DefaultApi.md#watch_namespaced_virtual_machine_replica_set) | **GET** /apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinereplicasets | Watch a VirtualMachineReplicaSet object. *DefaultApi* | [**watch_offline_virtual_machine_list_for_all_namespaces**](docs/DefaultApi.md#watch_offline_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/watch/offlinevirtualmachines | Watch a OfflineVirtualMachineList object. -*DefaultApi* | [**watch_virtual_machine_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/watch/virtualmachinepresets | Watch a VirtualMachineList object. -*DefaultApi* | [**watch_virtual_machine_list_for_all_namespaces_0**](docs/DefaultApi.md#watch_virtual_machine_list_for_all_namespaces_0) | **GET** /apis/kubevirt.io/v1alpha1/watch/virtualmachines | Watch a VirtualMachineList object. +*DefaultApi* | [**watch_virtual_machine_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/watch/virtualmachines | Watch a VirtualMachineList object. +*DefaultApi* | [**watch_virtual_machine_preset_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/watch/virtualmachinepresets | Watch a VirtualMachinePresetList object. *DefaultApi* | [**watch_virtual_machine_replica_set_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/watch/virtualmachinereplicasets | Watch a VirtualMachineReplicaSetList object. diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 63b4c5ff..086e9903 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -7,16 +7,16 @@ Method | HTTP request | Description [**check_health**](DefaultApi.md#check_health) | **GET** /apis/kubevirt.io/v1alpha1/healthz | Health endpoint [**console**](DefaultApi.md#console) | **GET** /apis/subresources.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}/console | Open a websocket connection to a serial console on the specified VM. [**create_namespaced_offline_virtual_machine**](DefaultApi.md#create_namespaced_offline_virtual_machine) | **POST** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines | Create a OfflineVirtualMachine object. -[**create_namespaced_virtual_machine**](DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets | Create a VirtualMachine object. -[**create_namespaced_virtual_machine_0**](DefaultApi.md#create_namespaced_virtual_machine_0) | **POST** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines | Create a VirtualMachine object. +[**create_namespaced_virtual_machine**](DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines | Create a VirtualMachine object. +[**create_namespaced_virtual_machine_preset**](DefaultApi.md#create_namespaced_virtual_machine_preset) | **POST** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets | Create a VirtualMachinePreset object. [**create_namespaced_virtual_machine_replica_set**](DefaultApi.md#create_namespaced_virtual_machine_replica_set) | **POST** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets | Create a VirtualMachineReplicaSet object. [**delete_collection_namespaced_offline_virtual_machine**](DefaultApi.md#delete_collection_namespaced_offline_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines | Delete a collection of OfflineVirtualMachine objects. -[**delete_collection_namespaced_virtual_machine**](DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets | Delete a collection of VirtualMachine objects. -[**delete_collection_namespaced_virtual_machine_0**](DefaultApi.md#delete_collection_namespaced_virtual_machine_0) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines | Delete a collection of VirtualMachine objects. +[**delete_collection_namespaced_virtual_machine**](DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines | Delete a collection of VirtualMachine objects. +[**delete_collection_namespaced_virtual_machine_preset**](DefaultApi.md#delete_collection_namespaced_virtual_machine_preset) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets | Delete a collection of VirtualMachinePreset objects. [**delete_collection_namespaced_virtual_machine_replica_set**](DefaultApi.md#delete_collection_namespaced_virtual_machine_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets | Delete a collection of VirtualMachineReplicaSet objects. [**delete_namespaced_offline_virtual_machine**](DefaultApi.md#delete_namespaced_offline_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines/{name} | Delete a OfflineVirtualMachine object. -[**delete_namespaced_virtual_machine**](DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name} | Delete a VirtualMachine object. -[**delete_namespaced_virtual_machine_0**](DefaultApi.md#delete_namespaced_virtual_machine_0) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name} | Delete a VirtualMachine object. +[**delete_namespaced_virtual_machine**](DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name} | Delete a VirtualMachine object. +[**delete_namespaced_virtual_machine_preset**](DefaultApi.md#delete_namespaced_virtual_machine_preset) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name} | Delete a VirtualMachinePreset object. [**delete_namespaced_virtual_machine_replica_set**](DefaultApi.md#delete_namespaced_virtual_machine_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets/{name} | Delete a VirtualMachineReplicaSet object. [**get_api_group**](DefaultApi.md#get_api_group) | **GET** /apis | Get a KubeVirt API GroupList [**get_api_group_0**](DefaultApi.md#get_api_group_0) | **GET** /apis/kubevirt.io | Get a KubeVirt API group @@ -24,34 +24,34 @@ Method | HTTP request | Description [**get_api_resources**](DefaultApi.md#get_api_resources) | **GET** /apis/kubevirt.io/v1alpha1 | Get KubeVirt API Resources [**get_api_resources_0**](DefaultApi.md#get_api_resources_0) | **GET** /apis/subresources.kubevirt.io/v1alpha1 | Get a KubeVirt API resources [**list_namespaced_offline_virtual_machine**](DefaultApi.md#list_namespaced_offline_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines | Get a list of OfflineVirtualMachine objects. -[**list_namespaced_virtual_machine**](DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets | Get a list of VirtualMachine objects. -[**list_namespaced_virtual_machine_0**](DefaultApi.md#list_namespaced_virtual_machine_0) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines | Get a list of VirtualMachine objects. +[**list_namespaced_virtual_machine**](DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines | Get a list of VirtualMachine objects. +[**list_namespaced_virtual_machine_preset**](DefaultApi.md#list_namespaced_virtual_machine_preset) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets | Get a list of VirtualMachinePreset objects. [**list_namespaced_virtual_machine_replica_set**](DefaultApi.md#list_namespaced_virtual_machine_replica_set) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets | Get a list of VirtualMachineReplicaSet objects. [**list_offline_virtual_machine_for_all_namespaces**](DefaultApi.md#list_offline_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/offlinevirtualmachines | Get a list of all OfflineVirtualMachine objects. -[**list_virtual_machine_for_all_namespaces**](DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/virtualmachinepresets | Get a list of all VirtualMachine objects. -[**list_virtual_machine_for_all_namespaces_0**](DefaultApi.md#list_virtual_machine_for_all_namespaces_0) | **GET** /apis/kubevirt.io/v1alpha1/virtualmachines | Get a list of all VirtualMachine objects. +[**list_virtual_machine_for_all_namespaces**](DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/virtualmachines | Get a list of all VirtualMachine objects. +[**list_virtual_machine_preset_for_all_namespaces**](DefaultApi.md#list_virtual_machine_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/virtualmachinepresets | Get a list of all VirtualMachinePreset objects. [**list_virtual_machine_replica_set_for_all_namespaces**](DefaultApi.md#list_virtual_machine_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/virtualmachinereplicasets | Get a list of all VirtualMachineReplicaSet objects. [**patch_namespaced_offline_virtual_machine**](DefaultApi.md#patch_namespaced_offline_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines/{name} | Patch a OfflineVirtualMachine object. -[**patch_namespaced_virtual_machine**](DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name} | Patch a VirtualMachine object. -[**patch_namespaced_virtual_machine_0**](DefaultApi.md#patch_namespaced_virtual_machine_0) | **PATCH** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name} | Patch a VirtualMachine object. +[**patch_namespaced_virtual_machine**](DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name} | Patch a VirtualMachine object. +[**patch_namespaced_virtual_machine_preset**](DefaultApi.md#patch_namespaced_virtual_machine_preset) | **PATCH** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name} | Patch a VirtualMachinePreset object. [**patch_namespaced_virtual_machine_replica_set**](DefaultApi.md#patch_namespaced_virtual_machine_replica_set) | **PATCH** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets/{name} | Patch a VirtualMachineReplicaSet object. [**read_namespaced_offline_virtual_machine**](DefaultApi.md#read_namespaced_offline_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines/{name} | Get a OfflineVirtualMachine object. -[**read_namespaced_virtual_machine**](DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name} | Get a VirtualMachine object. -[**read_namespaced_virtual_machine_0**](DefaultApi.md#read_namespaced_virtual_machine_0) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name} | Get a VirtualMachine object. +[**read_namespaced_virtual_machine**](DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name} | Get a VirtualMachine object. +[**read_namespaced_virtual_machine_preset**](DefaultApi.md#read_namespaced_virtual_machine_preset) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name} | Get a VirtualMachinePreset object. [**read_namespaced_virtual_machine_replica_set**](DefaultApi.md#read_namespaced_virtual_machine_replica_set) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets/{name} | Get a VirtualMachineReplicaSet object. [**replace_namespaced_offline_virtual_machine**](DefaultApi.md#replace_namespaced_offline_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines/{name} | Update a OfflineVirtualMachine object. -[**replace_namespaced_virtual_machine**](DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name} | Update a VirtualMachine object. -[**replace_namespaced_virtual_machine_0**](DefaultApi.md#replace_namespaced_virtual_machine_0) | **PUT** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name} | Update a VirtualMachine object. +[**replace_namespaced_virtual_machine**](DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name} | Update a VirtualMachine object. +[**replace_namespaced_virtual_machine_preset**](DefaultApi.md#replace_namespaced_virtual_machine_preset) | **PUT** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name} | Update a VirtualMachinePreset object. [**replace_namespaced_virtual_machine_replica_set**](DefaultApi.md#replace_namespaced_virtual_machine_replica_set) | **PUT** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets/{name} | Update a VirtualMachineReplicaSet object. [**test**](DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}/test | Test endpoint verifying apiserver connectivity. [**vnc**](DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}/vnc | Open a websocket connection to connect to VNC on the specified VM. [**watch_namespaced_offline_virtual_machine**](DefaultApi.md#watch_namespaced_offline_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/offlinevirtualmachines | Watch a OfflineVirtualMachine object. -[**watch_namespaced_virtual_machine**](DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinepresets | Watch a VirtualMachine object. -[**watch_namespaced_virtual_machine_0**](DefaultApi.md#watch_namespaced_virtual_machine_0) | **GET** /apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachines | Watch a VirtualMachine object. +[**watch_namespaced_virtual_machine**](DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachines | Watch a VirtualMachine object. +[**watch_namespaced_virtual_machine_preset**](DefaultApi.md#watch_namespaced_virtual_machine_preset) | **GET** /apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinepresets | Watch a VirtualMachinePreset object. [**watch_namespaced_virtual_machine_replica_set**](DefaultApi.md#watch_namespaced_virtual_machine_replica_set) | **GET** /apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinereplicasets | Watch a VirtualMachineReplicaSet object. [**watch_offline_virtual_machine_list_for_all_namespaces**](DefaultApi.md#watch_offline_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/watch/offlinevirtualmachines | Watch a OfflineVirtualMachineList object. -[**watch_virtual_machine_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/watch/virtualmachinepresets | Watch a VirtualMachineList object. -[**watch_virtual_machine_list_for_all_namespaces_0**](DefaultApi.md#watch_virtual_machine_list_for_all_namespaces_0) | **GET** /apis/kubevirt.io/v1alpha1/watch/virtualmachines | Watch a VirtualMachineList object. +[**watch_virtual_machine_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/watch/virtualmachines | Watch a VirtualMachineList object. +[**watch_virtual_machine_preset_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/watch/virtualmachinepresets | Watch a VirtualMachinePresetList object. [**watch_virtual_machine_replica_set_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/watch/virtualmachinereplicasets | Watch a VirtualMachineReplicaSetList object. @@ -207,7 +207,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_virtual_machine** -> V1VirtualMachinePreset create_namespaced_virtual_machine(body, namespace) +> V1VirtualMachine create_namespaced_virtual_machine(body, namespace) Create a VirtualMachine object. @@ -226,7 +226,7 @@ kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1VirtualMachinePreset() # V1VirtualMachinePreset | +body = kubevirt.V1VirtualMachine() # V1VirtualMachine | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: @@ -241,12 +241,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1VirtualMachinePreset**](V1VirtualMachinePreset.md)| | + **body** | [**V1VirtualMachine**](V1VirtualMachine.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1VirtualMachinePreset**](V1VirtualMachinePreset.md) +[**V1VirtualMachine**](V1VirtualMachine.md) ### Authorization @@ -259,10 +259,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_virtual_machine_0** -> V1VirtualMachine create_namespaced_virtual_machine_0(body, namespace) +# **create_namespaced_virtual_machine_preset** +> V1VirtualMachinePreset create_namespaced_virtual_machine_preset(body, namespace) -Create a VirtualMachine object. +Create a VirtualMachinePreset object. ### Example ```python @@ -279,27 +279,27 @@ kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1VirtualMachine() # V1VirtualMachine | +body = kubevirt.V1VirtualMachinePreset() # V1VirtualMachinePreset | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - # Create a VirtualMachine object. - api_response = api_instance.create_namespaced_virtual_machine_0(body, namespace) + # Create a VirtualMachinePreset object. + api_response = api_instance.create_namespaced_virtual_machine_preset(body, namespace) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->create_namespaced_virtual_machine_0: %s\n" % e) + print("Exception when calling DefaultApi->create_namespaced_virtual_machine_preset: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1VirtualMachine**](V1VirtualMachine.md)| | + **body** | [**V1VirtualMachinePreset**](V1VirtualMachinePreset.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1VirtualMachine**](V1VirtualMachine.md) +[**V1VirtualMachinePreset**](V1VirtualMachinePreset.md) ### Authorization @@ -495,10 +495,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_namespaced_virtual_machine_0** -> V1Status delete_collection_namespaced_virtual_machine_0(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **delete_collection_namespaced_virtual_machine_preset** +> V1Status delete_collection_namespaced_virtual_machine_preset(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Delete a collection of VirtualMachine objects. +Delete a collection of VirtualMachinePreset objects. ### Example ```python @@ -525,11 +525,11 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Delete a collection of VirtualMachine objects. - api_response = api_instance.delete_collection_namespaced_virtual_machine_0(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + # Delete a collection of VirtualMachinePreset objects. + api_response = api_instance.delete_collection_namespaced_virtual_machine_preset(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_0: %s\n" % e) + print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_preset: %s\n" % e) ``` ### Parameters @@ -747,10 +747,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_namespaced_virtual_machine_0** -> V1Status delete_namespaced_virtual_machine_0(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +# **delete_namespaced_virtual_machine_preset** +> V1Status delete_namespaced_virtual_machine_preset(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) -Delete a VirtualMachine object. +Delete a VirtualMachinePreset object. ### Example ```python @@ -775,11 +775,11 @@ orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) try: - # Delete a VirtualMachine object. - api_response = api_instance.delete_namespaced_virtual_machine_0(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + # Delete a VirtualMachinePreset object. + api_response = api_instance.delete_namespaced_virtual_machine_preset(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_0: %s\n" % e) + print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_preset: %s\n" % e) ``` ### Parameters @@ -1172,7 +1172,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_virtual_machine** -> V1VirtualMachinePresetList list_namespaced_virtual_machine(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1VirtualMachineList list_namespaced_virtual_machine(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) Get a list of VirtualMachine objects. @@ -1225,7 +1225,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachinePresetList**](V1VirtualMachinePresetList.md) +[**V1VirtualMachineList**](V1VirtualMachineList.md) ### Authorization @@ -1238,10 +1238,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_virtual_machine_0** -> V1VirtualMachineList list_namespaced_virtual_machine_0(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_virtual_machine_preset** +> V1VirtualMachinePresetList list_namespaced_virtual_machine_preset(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of VirtualMachine objects. +Get a list of VirtualMachinePreset objects. ### Example ```python @@ -1269,11 +1269,11 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Get a list of VirtualMachine objects. - api_response = api_instance.list_namespaced_virtual_machine_0(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + # Get a list of VirtualMachinePreset objects. + api_response = api_instance.list_namespaced_virtual_machine_preset(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_namespaced_virtual_machine_0: %s\n" % e) + print("Exception when calling DefaultApi->list_namespaced_virtual_machine_preset: %s\n" % e) ``` ### Parameters @@ -1292,7 +1292,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineList**](V1VirtualMachineList.md) +[**V1VirtualMachinePresetList**](V1VirtualMachinePresetList.md) ### Authorization @@ -1438,7 +1438,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_virtual_machine_for_all_namespaces** -> V1VirtualMachinePresetList list_virtual_machine_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1VirtualMachineList list_virtual_machine_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) Get a list of all VirtualMachine objects. @@ -1489,7 +1489,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachinePresetList**](V1VirtualMachinePresetList.md) +[**V1VirtualMachineList**](V1VirtualMachineList.md) ### Authorization @@ -1502,10 +1502,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_virtual_machine_for_all_namespaces_0** -> V1VirtualMachineList list_virtual_machine_for_all_namespaces_0(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_virtual_machine_preset_for_all_namespaces** +> V1VirtualMachinePresetList list_virtual_machine_preset_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of all VirtualMachine objects. +Get a list of all VirtualMachinePreset objects. ### Example ```python @@ -1532,11 +1532,11 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Get a list of all VirtualMachine objects. - api_response = api_instance.list_virtual_machine_for_all_namespaces_0(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + # Get a list of all VirtualMachinePreset objects. + api_response = api_instance.list_virtual_machine_preset_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_virtual_machine_for_all_namespaces_0: %s\n" % e) + print("Exception when calling DefaultApi->list_virtual_machine_preset_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -1554,7 +1554,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineList**](V1VirtualMachineList.md) +[**V1VirtualMachinePresetList**](V1VirtualMachinePresetList.md) ### Authorization @@ -1684,7 +1684,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_virtual_machine** -> V1VirtualMachinePreset patch_namespaced_virtual_machine(body) +> V1VirtualMachine patch_namespaced_virtual_machine(body) Patch a VirtualMachine object. @@ -1721,7 +1721,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachinePreset**](V1VirtualMachinePreset.md) +[**V1VirtualMachine**](V1VirtualMachine.md) ### Authorization @@ -1734,10 +1734,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_virtual_machine_0** -> V1VirtualMachine patch_namespaced_virtual_machine_0(body) +# **patch_namespaced_virtual_machine_preset** +> V1VirtualMachinePreset patch_namespaced_virtual_machine_preset(body) -Patch a VirtualMachine object. +Patch a VirtualMachinePreset object. ### Example ```python @@ -1757,11 +1757,11 @@ api_instance = kubevirt.DefaultApi() body = kubevirt.V1Patch() # V1Patch | try: - # Patch a VirtualMachine object. - api_response = api_instance.patch_namespaced_virtual_machine_0(body) + # Patch a VirtualMachinePreset object. + api_response = api_instance.patch_namespaced_virtual_machine_preset(body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_0: %s\n" % e) + print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_preset: %s\n" % e) ``` ### Parameters @@ -1772,7 +1772,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachine**](V1VirtualMachine.md) +[**V1VirtualMachinePreset**](V1VirtualMachinePreset.md) ### Authorization @@ -1894,7 +1894,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_virtual_machine** -> V1VirtualMachinePreset read_namespaced_virtual_machine(name, namespace, exact=exact, export=export) +> V1VirtualMachine read_namespaced_virtual_machine(name, namespace, exact=exact, export=export) Get a VirtualMachine object. @@ -1937,7 +1937,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachinePreset**](V1VirtualMachinePreset.md) +[**V1VirtualMachine**](V1VirtualMachine.md) ### Authorization @@ -1950,10 +1950,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_namespaced_virtual_machine_0** -> V1VirtualMachine read_namespaced_virtual_machine_0(name, namespace, exact=exact, export=export) +# **read_namespaced_virtual_machine_preset** +> V1VirtualMachinePreset read_namespaced_virtual_machine_preset(name, namespace, exact=exact, export=export) -Get a VirtualMachine object. +Get a VirtualMachinePreset object. ### Example ```python @@ -1976,11 +1976,11 @@ exact = true # bool | Should the export be exact. Exact export maintains cluster export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - # Get a VirtualMachine object. - api_response = api_instance.read_namespaced_virtual_machine_0(name, namespace, exact=exact, export=export) + # Get a VirtualMachinePreset object. + api_response = api_instance.read_namespaced_virtual_machine_preset(name, namespace, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->read_namespaced_virtual_machine_0: %s\n" % e) + print("Exception when calling DefaultApi->read_namespaced_virtual_machine_preset: %s\n" % e) ``` ### Parameters @@ -1994,7 +1994,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachine**](V1VirtualMachine.md) +[**V1VirtualMachinePreset**](V1VirtualMachinePreset.md) ### Authorization @@ -2120,7 +2120,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_virtual_machine** -> V1VirtualMachinePreset replace_namespaced_virtual_machine(body, namespace, name) +> V1VirtualMachine replace_namespaced_virtual_machine(body, namespace, name) Update a VirtualMachine object. @@ -2139,7 +2139,7 @@ kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1VirtualMachinePreset() # V1VirtualMachinePreset | +body = kubevirt.V1VirtualMachine() # V1VirtualMachine | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource @@ -2155,13 +2155,13 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1VirtualMachinePreset**](V1VirtualMachinePreset.md)| | + **body** | [**V1VirtualMachine**](V1VirtualMachine.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | ### Return type -[**V1VirtualMachinePreset**](V1VirtualMachinePreset.md) +[**V1VirtualMachine**](V1VirtualMachine.md) ### Authorization @@ -2174,10 +2174,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_namespaced_virtual_machine_0** -> V1VirtualMachine replace_namespaced_virtual_machine_0(body, namespace, name) +# **replace_namespaced_virtual_machine_preset** +> V1VirtualMachinePreset replace_namespaced_virtual_machine_preset(body, namespace, name) -Update a VirtualMachine object. +Update a VirtualMachinePreset object. ### Example ```python @@ -2194,29 +2194,29 @@ kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1VirtualMachine() # V1VirtualMachine | +body = kubevirt.V1VirtualMachinePreset() # V1VirtualMachinePreset | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource try: - # Update a VirtualMachine object. - api_response = api_instance.replace_namespaced_virtual_machine_0(body, namespace, name) + # Update a VirtualMachinePreset object. + api_response = api_instance.replace_namespaced_virtual_machine_preset(body, namespace, name) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_0: %s\n" % e) + print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_preset: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1VirtualMachine**](V1VirtualMachine.md)| | + **body** | [**V1VirtualMachinePreset**](V1VirtualMachinePreset.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | ### Return type -[**V1VirtualMachine**](V1VirtualMachine.md) +[**V1VirtualMachinePreset**](V1VirtualMachinePreset.md) ### Authorization @@ -2522,10 +2522,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **watch_namespaced_virtual_machine_0** -> V1WatchEvent watch_namespaced_virtual_machine_0(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **watch_namespaced_virtual_machine_preset** +> V1WatchEvent watch_namespaced_virtual_machine_preset(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Watch a VirtualMachine object. +Watch a VirtualMachinePreset object. ### Example ```python @@ -2553,11 +2553,11 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Watch a VirtualMachine object. - api_response = api_instance.watch_namespaced_virtual_machine_0(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + # Watch a VirtualMachinePreset object. + api_response = api_instance.watch_namespaced_virtual_machine_preset(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->watch_namespaced_virtual_machine_0: %s\n" % e) + print("Exception when calling DefaultApi->watch_namespaced_virtual_machine_preset: %s\n" % e) ``` ### Parameters @@ -2786,10 +2786,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **watch_virtual_machine_list_for_all_namespaces_0** -> V1WatchEvent watch_virtual_machine_list_for_all_namespaces_0(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **watch_virtual_machine_preset_list_for_all_namespaces** +> V1WatchEvent watch_virtual_machine_preset_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Watch a VirtualMachineList object. +Watch a VirtualMachinePresetList object. ### Example ```python @@ -2816,11 +2816,11 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Watch a VirtualMachineList object. - api_response = api_instance.watch_virtual_machine_list_for_all_namespaces_0(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + # Watch a VirtualMachinePresetList object. + api_response = api_instance.watch_virtual_machine_preset_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->watch_virtual_machine_list_for_all_namespaces_0: %s\n" % e) + print("Exception when calling DefaultApi->watch_virtual_machine_preset_list_for_all_namespaces: %s\n" % e) ``` ### Parameters diff --git a/git_push.sh b/git_push.sh index 210ca649..d290c4d1 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.4.1-128-ge628ae3c" + release_note="Auto-generated client v0.4.1-129-g78b24958" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index faa28407..fbdb787f 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -256,24 +256,14 @@ [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `list_namespaced_virtual_machine_0` [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `create_namespaced_virtual_machine_0` -[main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `delete_collection_namespaced_virtual_machine_0` [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `read_namespaced_virtual_machine_0` [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `replace_namespaced_virtual_machine_0` -[main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `delete_namespaced_virtual_machine_0` [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `patch_namespaced_virtual_machine_0` [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `list_virtual_machine_for_all_namespaces_0` -[main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `watch_namespaced_virtual_machine_0` -[main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `watch_virtual_machine_list_for_all_namespaces_0` [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_group_1` [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_resources_0` [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 29cbc2a0..e58b1762 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.4.1-128-ge628ae3c/python' + self.user_agent = 'Swagger-Codegen/v0.4.1-129-g78b24958/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index afea80c2..4c60570d 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -369,9 +369,9 @@ def create_namespaced_virtual_machine(self, body, namespace, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachinePreset body: (required) + :param V1VirtualMachine body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachinePreset + :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ @@ -395,9 +395,9 @@ def create_namespaced_virtual_machine_with_http_info(self, body, namespace, **kw :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachinePreset body: (required) + :param V1VirtualMachine body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachinePreset + :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ @@ -454,14 +454,14 @@ def create_namespaced_virtual_machine_with_http_info(self, body, namespace, **kw # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachinePreset', + response_type='V1VirtualMachine', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -469,48 +469,48 @@ def create_namespaced_virtual_machine_with_http_info(self, body, namespace, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_virtual_machine_0(self, body, namespace, **kwargs): + def create_namespaced_virtual_machine_preset(self, body, namespace, **kwargs): """ - Create a VirtualMachine object. + Create a VirtualMachinePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_virtual_machine_0(body, namespace, callback=callback_function) + >>> thread = api.create_namespaced_virtual_machine_preset(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachine body: (required) + :param V1VirtualMachinePreset body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachine + :return: V1VirtualMachinePreset If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_virtual_machine_0_with_http_info(body, namespace, **kwargs) + return self.create_namespaced_virtual_machine_preset_with_http_info(body, namespace, **kwargs) else: - (data) = self.create_namespaced_virtual_machine_0_with_http_info(body, namespace, **kwargs) + (data) = self.create_namespaced_virtual_machine_preset_with_http_info(body, namespace, **kwargs) return data - def create_namespaced_virtual_machine_0_with_http_info(self, body, namespace, **kwargs): + def create_namespaced_virtual_machine_preset_with_http_info(self, body, namespace, **kwargs): """ - Create a VirtualMachine object. + Create a VirtualMachinePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_virtual_machine_0_with_http_info(body, namespace, callback=callback_function) + >>> thread = api.create_namespaced_virtual_machine_preset_with_http_info(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachine body: (required) + :param V1VirtualMachinePreset body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachine + :return: V1VirtualMachinePreset If the method is called asynchronously, returns the request thread. """ @@ -526,19 +526,19 @@ def create_namespaced_virtual_machine_0_with_http_info(self, body, namespace, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_virtual_machine_0" % key + " to method create_namespaced_virtual_machine_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine_0`") + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine_preset`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_0`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_preset`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `create_namespaced_virtual_machine_0`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `create_namespaced_virtual_machine_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -567,14 +567,14 @@ def create_namespaced_virtual_machine_0_with_http_info(self, body, namespace, ** # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachine', + response_type='V1VirtualMachinePreset', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -930,7 +930,7 @@ def delete_collection_namespaced_virtual_machine_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines', 'DELETE', path_params, query_params, header_params, @@ -945,16 +945,16 @@ def delete_collection_namespaced_virtual_machine_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_virtual_machine_0(self, **kwargs): + def delete_collection_namespaced_virtual_machine_preset(self, **kwargs): """ - Delete a collection of VirtualMachine objects. + Delete a collection of VirtualMachinePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_0(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_preset(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -972,21 +972,21 @@ def delete_collection_namespaced_virtual_machine_0(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_virtual_machine_0_with_http_info(**kwargs) + return self.delete_collection_namespaced_virtual_machine_preset_with_http_info(**kwargs) else: - (data) = self.delete_collection_namespaced_virtual_machine_0_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_preset_with_http_info(**kwargs) return data - def delete_collection_namespaced_virtual_machine_0_with_http_info(self, **kwargs): + def delete_collection_namespaced_virtual_machine_preset_with_http_info(self, **kwargs): """ - Delete a collection of VirtualMachine objects. + Delete a collection of VirtualMachinePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_0_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_preset_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1014,7 +1014,7 @@ def delete_collection_namespaced_virtual_machine_0_with_http_info(self, **kwargs if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_virtual_machine_0" % key + " to method delete_collection_namespaced_virtual_machine_preset" % key ) params[key] = val del params['kwargs'] @@ -1055,7 +1055,7 @@ def delete_collection_namespaced_virtual_machine_0_with_http_info(self, **kwargs # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets', 'DELETE', path_params, query_params, header_params, @@ -1448,7 +1448,7 @@ def delete_namespaced_virtual_machine_with_http_info(self, body, namespace, name # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}', 'DELETE', path_params, query_params, header_params, @@ -1463,16 +1463,16 @@ def delete_namespaced_virtual_machine_with_http_info(self, body, namespace, name _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_0(self, body, namespace, name, **kwargs): + def delete_namespaced_virtual_machine_preset(self, body, namespace, name, **kwargs): """ - Delete a VirtualMachine object. + Delete a VirtualMachinePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_0(body, namespace, name, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_preset(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1488,21 +1488,21 @@ def delete_namespaced_virtual_machine_0(self, body, namespace, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_0_with_http_info(body, namespace, name, **kwargs) + return self.delete_namespaced_virtual_machine_preset_with_http_info(body, namespace, name, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_0_with_http_info(body, namespace, name, **kwargs) + (data) = self.delete_namespaced_virtual_machine_preset_with_http_info(body, namespace, name, **kwargs) return data - def delete_namespaced_virtual_machine_0_with_http_info(self, body, namespace, name, **kwargs): + def delete_namespaced_virtual_machine_preset_with_http_info(self, body, namespace, name, **kwargs): """ - Delete a VirtualMachine object. + Delete a VirtualMachinePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_0_with_http_info(body, namespace, name, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_preset_with_http_info(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1528,24 +1528,24 @@ def delete_namespaced_virtual_machine_0_with_http_info(self, body, namespace, na if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_0" % key + " to method delete_namespaced_virtual_machine_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_0`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_preset`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_0`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_preset`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_0`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_preset`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `delete_namespaced_virtual_machine_0`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `delete_namespaced_virtual_machine_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `delete_namespaced_virtual_machine_0`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `name` when calling `delete_namespaced_virtual_machine_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -1582,7 +1582,7 @@ def delete_namespaced_virtual_machine_0_with_http_info(self, body, namespace, na # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name}', 'DELETE', path_params, query_params, header_params, @@ -2347,7 +2347,7 @@ def list_namespaced_virtual_machine(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachinePresetList + :return: V1VirtualMachineList If the method is called asynchronously, returns the request thread. """ @@ -2380,7 +2380,7 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachinePresetList + :return: V1VirtualMachineList If the method is called asynchronously, returns the request thread. """ @@ -2444,14 +2444,14 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachinePresetList', + response_type='V1VirtualMachineList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2459,16 +2459,16 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_0(self, namespace, **kwargs): + def list_namespaced_virtual_machine_preset(self, namespace, **kwargs): """ - Get a list of VirtualMachine objects. + Get a list of VirtualMachinePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_0(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_preset(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2481,27 +2481,27 @@ def list_namespaced_virtual_machine_0(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :return: V1VirtualMachinePresetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_0_with_http_info(namespace, **kwargs) + return self.list_namespaced_virtual_machine_preset_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_virtual_machine_0_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_virtual_machine_preset_with_http_info(namespace, **kwargs) return data - def list_namespaced_virtual_machine_0_with_http_info(self, namespace, **kwargs): + def list_namespaced_virtual_machine_preset_with_http_info(self, namespace, **kwargs): """ - Get a list of VirtualMachine objects. + Get a list of VirtualMachinePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_0_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_preset_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2514,7 +2514,7 @@ def list_namespaced_virtual_machine_0_with_http_info(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :return: V1VirtualMachinePresetList If the method is called asynchronously, returns the request thread. """ @@ -2530,16 +2530,16 @@ def list_namespaced_virtual_machine_0_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_0" % key + " to method list_namespaced_virtual_machine_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_0`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_preset`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `list_namespaced_virtual_machine_0`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `list_namespaced_virtual_machine_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -2578,14 +2578,14 @@ def list_namespaced_virtual_machine_0_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineList', + response_type='V1VirtualMachinePresetList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2873,7 +2873,7 @@ def list_virtual_machine_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachinePresetList + :return: V1VirtualMachineList If the method is called asynchronously, returns the request thread. """ @@ -2905,7 +2905,7 @@ def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachinePresetList + :return: V1VirtualMachineList If the method is called asynchronously, returns the request thread. """ @@ -2962,14 +2962,14 @@ def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/virtualmachinepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/virtualmachines', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachinePresetList', + response_type='V1VirtualMachineList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2977,16 +2977,16 @@ def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_for_all_namespaces_0(self, **kwargs): + def list_virtual_machine_preset_for_all_namespaces(self, **kwargs): """ - Get a list of all VirtualMachine objects. + Get a list of all VirtualMachinePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_for_all_namespaces_0(callback=callback_function) + >>> thread = api.list_virtual_machine_preset_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2998,27 +2998,27 @@ def list_virtual_machine_for_all_namespaces_0(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :return: V1VirtualMachinePresetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_for_all_namespaces_0_with_http_info(**kwargs) + return self.list_virtual_machine_preset_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_virtual_machine_for_all_namespaces_0_with_http_info(**kwargs) + (data) = self.list_virtual_machine_preset_for_all_namespaces_with_http_info(**kwargs) return data - def list_virtual_machine_for_all_namespaces_0_with_http_info(self, **kwargs): + def list_virtual_machine_preset_for_all_namespaces_with_http_info(self, **kwargs): """ - Get a list of all VirtualMachine objects. + Get a list of all VirtualMachinePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_for_all_namespaces_0_with_http_info(callback=callback_function) + >>> thread = api.list_virtual_machine_preset_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3030,7 +3030,7 @@ def list_virtual_machine_for_all_namespaces_0_with_http_info(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :return: V1VirtualMachinePresetList If the method is called asynchronously, returns the request thread. """ @@ -3046,7 +3046,7 @@ def list_virtual_machine_for_all_namespaces_0_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_for_all_namespaces_0" % key + " to method list_virtual_machine_preset_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -3087,14 +3087,14 @@ def list_virtual_machine_for_all_namespaces_0_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/virtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/virtualmachinepresets', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineList', + response_type='V1VirtualMachinePresetList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3345,7 +3345,7 @@ def patch_namespaced_virtual_machine(self, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param V1Patch body: (required) - :return: V1VirtualMachinePreset + :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ @@ -3370,7 +3370,7 @@ def patch_namespaced_virtual_machine_with_http_info(self, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param V1Patch body: (required) - :return: V1VirtualMachinePreset + :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ @@ -3420,14 +3420,14 @@ def patch_namespaced_virtual_machine_with_http_info(self, body, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachinePreset', + response_type='V1VirtualMachine', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3435,46 +3435,46 @@ def patch_namespaced_virtual_machine_with_http_info(self, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_0(self, body, **kwargs): + def patch_namespaced_virtual_machine_preset(self, body, **kwargs): """ - Patch a VirtualMachine object. + Patch a VirtualMachinePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_0(body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_preset(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Patch body: (required) - :return: V1VirtualMachine + :return: V1VirtualMachinePreset If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_0_with_http_info(body, **kwargs) + return self.patch_namespaced_virtual_machine_preset_with_http_info(body, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_0_with_http_info(body, **kwargs) + (data) = self.patch_namespaced_virtual_machine_preset_with_http_info(body, **kwargs) return data - def patch_namespaced_virtual_machine_0_with_http_info(self, body, **kwargs): + def patch_namespaced_virtual_machine_preset_with_http_info(self, body, **kwargs): """ - Patch a VirtualMachine object. + Patch a VirtualMachinePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_0_with_http_info(body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_preset_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Patch body: (required) - :return: V1VirtualMachine + :return: V1VirtualMachinePreset If the method is called asynchronously, returns the request thread. """ @@ -3490,13 +3490,13 @@ def patch_namespaced_virtual_machine_0_with_http_info(self, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine_0" % key + " to method patch_namespaced_virtual_machine_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_0`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_preset`") collection_formats = {} @@ -3524,14 +3524,14 @@ def patch_namespaced_virtual_machine_0_with_http_info(self, body, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachine', + response_type='V1VirtualMachinePreset', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3779,7 +3779,7 @@ def read_namespaced_virtual_machine(self, name, namespace, **kwargs): :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachinePreset + :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ @@ -3807,7 +3807,7 @@ def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwar :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachinePreset + :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ @@ -3866,14 +3866,14 @@ def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwar # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachinePreset', + response_type='V1VirtualMachine', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3881,16 +3881,16 @@ def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_0(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_preset(self, name, namespace, **kwargs): """ - Get a VirtualMachine object. + Get a VirtualMachinePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_0(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_preset(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3898,27 +3898,27 @@ def read_namespaced_virtual_machine_0(self, name, namespace, **kwargs): :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachine + :return: V1VirtualMachinePreset If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_0_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_virtual_machine_preset_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_0_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_virtual_machine_preset_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_virtual_machine_0_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_preset_with_http_info(self, name, namespace, **kwargs): """ - Get a VirtualMachine object. + Get a VirtualMachinePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_0_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_preset_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3926,7 +3926,7 @@ def read_namespaced_virtual_machine_0_with_http_info(self, name, namespace, **kw :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachine + :return: V1VirtualMachinePreset If the method is called asynchronously, returns the request thread. """ @@ -3942,21 +3942,21 @@ def read_namespaced_virtual_machine_0_with_http_info(self, name, namespace, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_0" % key + " to method read_namespaced_virtual_machine_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_0`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_preset`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_0`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_preset`") if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `read_namespaced_virtual_machine_0`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `name` when calling `read_namespaced_virtual_machine_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `read_namespaced_virtual_machine_0`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `read_namespaced_virtual_machine_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -3985,14 +3985,14 @@ def read_namespaced_virtual_machine_0_with_http_info(self, name, namespace, **kw # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachine', + response_type='V1VirtualMachinePreset', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4254,10 +4254,10 @@ def replace_namespaced_virtual_machine(self, body, namespace, name, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachinePreset body: (required) + :param V1VirtualMachine body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) - :return: V1VirtualMachinePreset + :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ @@ -4281,10 +4281,10 @@ def replace_namespaced_virtual_machine_with_http_info(self, body, namespace, nam :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachinePreset body: (required) + :param V1VirtualMachine body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) - :return: V1VirtualMachinePreset + :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ @@ -4348,14 +4348,14 @@ def replace_namespaced_virtual_machine_with_http_info(self, body, namespace, nam # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachinePreset', + response_type='V1VirtualMachine', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4363,50 +4363,50 @@ def replace_namespaced_virtual_machine_with_http_info(self, body, namespace, nam _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_0(self, body, namespace, name, **kwargs): + def replace_namespaced_virtual_machine_preset(self, body, namespace, name, **kwargs): """ - Update a VirtualMachine object. + Update a VirtualMachinePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_0(body, namespace, name, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_preset(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachine body: (required) + :param V1VirtualMachinePreset body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) - :return: V1VirtualMachine + :return: V1VirtualMachinePreset If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_0_with_http_info(body, namespace, name, **kwargs) + return self.replace_namespaced_virtual_machine_preset_with_http_info(body, namespace, name, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_0_with_http_info(body, namespace, name, **kwargs) + (data) = self.replace_namespaced_virtual_machine_preset_with_http_info(body, namespace, name, **kwargs) return data - def replace_namespaced_virtual_machine_0_with_http_info(self, body, namespace, name, **kwargs): + def replace_namespaced_virtual_machine_preset_with_http_info(self, body, namespace, name, **kwargs): """ - Update a VirtualMachine object. + Update a VirtualMachinePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_0_with_http_info(body, namespace, name, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_preset_with_http_info(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachine body: (required) + :param V1VirtualMachinePreset body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) - :return: V1VirtualMachine + :return: V1VirtualMachinePreset If the method is called asynchronously, returns the request thread. """ @@ -4422,24 +4422,24 @@ def replace_namespaced_virtual_machine_0_with_http_info(self, body, namespace, n if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_0" % key + " to method replace_namespaced_virtual_machine_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_0`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_preset`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_0`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_preset`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_0`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_preset`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `replace_namespaced_virtual_machine_0`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `replace_namespaced_virtual_machine_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `replace_namespaced_virtual_machine_0`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `name` when calling `replace_namespaced_virtual_machine_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -4470,14 +4470,14 @@ def replace_namespaced_virtual_machine_0_with_http_info(self, body, namespace, n # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachine', + response_type='V1VirtualMachinePreset', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5074,7 +5074,7 @@ def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachines', 'GET', path_params, query_params, header_params, @@ -5089,16 +5089,16 @@ def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine_0(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_preset(self, namespace, **kwargs): """ - Watch a VirtualMachine object. + Watch a VirtualMachinePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_0(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_preset(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5117,21 +5117,21 @@ def watch_namespaced_virtual_machine_0(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_0_with_http_info(namespace, **kwargs) + return self.watch_namespaced_virtual_machine_preset_with_http_info(namespace, **kwargs) else: - (data) = self.watch_namespaced_virtual_machine_0_with_http_info(namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_preset_with_http_info(namespace, **kwargs) return data - def watch_namespaced_virtual_machine_0_with_http_info(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_preset_with_http_info(self, namespace, **kwargs): """ - Watch a VirtualMachine object. + Watch a VirtualMachinePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_0_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_preset_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5160,16 +5160,16 @@ def watch_namespaced_virtual_machine_0_with_http_info(self, namespace, **kwargs) if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_virtual_machine_0" % key + " to method watch_namespaced_virtual_machine_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_0`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_preset`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `watch_namespaced_virtual_machine_0`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `watch_namespaced_virtual_machine_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -5208,7 +5208,7 @@ def watch_namespaced_virtual_machine_0_with_http_info(self, namespace, **kwargs) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinepresets', 'GET', path_params, query_params, header_params, @@ -5592,7 +5592,7 @@ def watch_virtual_machine_list_for_all_namespaces_with_http_info(self, **kwargs) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/watch/virtualmachinepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/watch/virtualmachines', 'GET', path_params, query_params, header_params, @@ -5607,16 +5607,16 @@ def watch_virtual_machine_list_for_all_namespaces_with_http_info(self, **kwargs) _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_virtual_machine_list_for_all_namespaces_0(self, **kwargs): + def watch_virtual_machine_preset_list_for_all_namespaces(self, **kwargs): """ - Watch a VirtualMachineList object. + Watch a VirtualMachinePresetList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_list_for_all_namespaces_0(callback=callback_function) + >>> thread = api.watch_virtual_machine_preset_list_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5634,21 +5634,21 @@ def watch_virtual_machine_list_for_all_namespaces_0(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_virtual_machine_list_for_all_namespaces_0_with_http_info(**kwargs) + return self.watch_virtual_machine_preset_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.watch_virtual_machine_list_for_all_namespaces_0_with_http_info(**kwargs) + (data) = self.watch_virtual_machine_preset_list_for_all_namespaces_with_http_info(**kwargs) return data - def watch_virtual_machine_list_for_all_namespaces_0_with_http_info(self, **kwargs): + def watch_virtual_machine_preset_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Watch a VirtualMachineList object. + Watch a VirtualMachinePresetList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_list_for_all_namespaces_0_with_http_info(callback=callback_function) + >>> thread = api.watch_virtual_machine_preset_list_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5676,7 +5676,7 @@ def watch_virtual_machine_list_for_all_namespaces_0_with_http_info(self, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_virtual_machine_list_for_all_namespaces_0" % key + " to method watch_virtual_machine_preset_list_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -5717,7 +5717,7 @@ def watch_virtual_machine_list_for_all_namespaces_0_with_http_info(self, **kwarg # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/watch/virtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/watch/virtualmachinepresets', 'GET', path_params, query_params, header_params, diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 5d432898..eddab15f 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.4.1-128-ge628ae3c".\ + "SDK Package Version: v0.4.1-129-g78b24958".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index 535b5cc5..2e019579 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.4.1-128-ge628ae3c" +VERSION = "v0.4.1-129-g78b24958" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index a4316456..796b232c 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.4.1-128-ge628ae3c" +"packageVersion": "v0.4.1-129-g78b24958" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 45a2e317..c2e8e43d 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -63,11 +63,11 @@ def test_create_namespaced_virtual_machine(self): """ pass - def test_create_namespaced_virtual_machine_0(self): + def test_create_namespaced_virtual_machine_preset(self): """ - Test case for create_namespaced_virtual_machine_0 + Test case for create_namespaced_virtual_machine_preset - Create a VirtualMachine object. + Create a VirtualMachinePreset object. """ pass @@ -95,11 +95,11 @@ def test_delete_collection_namespaced_virtual_machine(self): """ pass - def test_delete_collection_namespaced_virtual_machine_0(self): + def test_delete_collection_namespaced_virtual_machine_preset(self): """ - Test case for delete_collection_namespaced_virtual_machine_0 + Test case for delete_collection_namespaced_virtual_machine_preset - Delete a collection of VirtualMachine objects. + Delete a collection of VirtualMachinePreset objects. """ pass @@ -127,11 +127,11 @@ def test_delete_namespaced_virtual_machine(self): """ pass - def test_delete_namespaced_virtual_machine_0(self): + def test_delete_namespaced_virtual_machine_preset(self): """ - Test case for delete_namespaced_virtual_machine_0 + Test case for delete_namespaced_virtual_machine_preset - Delete a VirtualMachine object. + Delete a VirtualMachinePreset object. """ pass @@ -199,11 +199,11 @@ def test_list_namespaced_virtual_machine(self): """ pass - def test_list_namespaced_virtual_machine_0(self): + def test_list_namespaced_virtual_machine_preset(self): """ - Test case for list_namespaced_virtual_machine_0 + Test case for list_namespaced_virtual_machine_preset - Get a list of VirtualMachine objects. + Get a list of VirtualMachinePreset objects. """ pass @@ -231,11 +231,11 @@ def test_list_virtual_machine_for_all_namespaces(self): """ pass - def test_list_virtual_machine_for_all_namespaces_0(self): + def test_list_virtual_machine_preset_for_all_namespaces(self): """ - Test case for list_virtual_machine_for_all_namespaces_0 + Test case for list_virtual_machine_preset_for_all_namespaces - Get a list of all VirtualMachine objects. + Get a list of all VirtualMachinePreset objects. """ pass @@ -263,11 +263,11 @@ def test_patch_namespaced_virtual_machine(self): """ pass - def test_patch_namespaced_virtual_machine_0(self): + def test_patch_namespaced_virtual_machine_preset(self): """ - Test case for patch_namespaced_virtual_machine_0 + Test case for patch_namespaced_virtual_machine_preset - Patch a VirtualMachine object. + Patch a VirtualMachinePreset object. """ pass @@ -295,11 +295,11 @@ def test_read_namespaced_virtual_machine(self): """ pass - def test_read_namespaced_virtual_machine_0(self): + def test_read_namespaced_virtual_machine_preset(self): """ - Test case for read_namespaced_virtual_machine_0 + Test case for read_namespaced_virtual_machine_preset - Get a VirtualMachine object. + Get a VirtualMachinePreset object. """ pass @@ -327,11 +327,11 @@ def test_replace_namespaced_virtual_machine(self): """ pass - def test_replace_namespaced_virtual_machine_0(self): + def test_replace_namespaced_virtual_machine_preset(self): """ - Test case for replace_namespaced_virtual_machine_0 + Test case for replace_namespaced_virtual_machine_preset - Update a VirtualMachine object. + Update a VirtualMachinePreset object. """ pass @@ -375,11 +375,11 @@ def test_watch_namespaced_virtual_machine(self): """ pass - def test_watch_namespaced_virtual_machine_0(self): + def test_watch_namespaced_virtual_machine_preset(self): """ - Test case for watch_namespaced_virtual_machine_0 + Test case for watch_namespaced_virtual_machine_preset - Watch a VirtualMachine object. + Watch a VirtualMachinePreset object. """ pass @@ -407,11 +407,11 @@ def test_watch_virtual_machine_list_for_all_namespaces(self): """ pass - def test_watch_virtual_machine_list_for_all_namespaces_0(self): + def test_watch_virtual_machine_preset_list_for_all_namespaces(self): """ - Test case for watch_virtual_machine_list_for_all_namespaces_0 + Test case for watch_virtual_machine_preset_list_for_all_namespaces - Watch a VirtualMachineList object. + Watch a VirtualMachinePresetList object. """ pass From ccd7562edbef35c04061dcdec2a3f3d511789ae8 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 30 Apr 2018 17:15:31 +0000 Subject: [PATCH 005/521] Client Python update by Travis Build 3237 --- README.md | 2 +- docs/V1OfflineVirtualMachineStatus.md | 2 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1_offline_virtual_machine_status.py | 62 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 67 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 1adcd937..6a918fd0 100644 --- a/README.md +++ b/README.md @@ -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: v0.4.1-129-g78b24958 +- Package version: v0.4.1-132-g074b4658 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1OfflineVirtualMachineStatus.md b/docs/V1OfflineVirtualMachineStatus.md index 9f90ac1e..24c9ab89 100644 --- a/docs/V1OfflineVirtualMachineStatus.md +++ b/docs/V1OfflineVirtualMachineStatus.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **conditions** | [**list[V1OfflineVirtualMachineCondition]**](V1OfflineVirtualMachineCondition.md) | Hold the state information of the OfflineVirtualMachine and its VirtualMachine | [optional] +**created** | **bool** | Created indicates if the virtual machine is created in the cluster | [optional] +**ready** | **bool** | Ready indicates if the virtual machine is running and ready | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index d290c4d1..08ece983 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.4.1-129-g78b24958" + release_note="Auto-generated client v0.4.1-132-g074b4658" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index e58b1762..ea674407 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.4.1-129-g78b24958/python' + self.user_agent = 'Swagger-Codegen/v0.4.1-132-g074b4658/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index eddab15f..a5b198d3 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.4.1-129-g78b24958".\ + "SDK Package Version: v0.4.1-132-g074b4658".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_offline_virtual_machine_status.py b/kubevirt/models/v1_offline_virtual_machine_status.py index 603ae545..12f66f89 100644 --- a/kubevirt/models/v1_offline_virtual_machine_status.py +++ b/kubevirt/models/v1_offline_virtual_machine_status.py @@ -31,22 +31,32 @@ class V1OfflineVirtualMachineStatus(object): and the value is json key in definition. """ swagger_types = { - 'conditions': 'list[V1OfflineVirtualMachineCondition]' + 'conditions': 'list[V1OfflineVirtualMachineCondition]', + 'created': 'bool', + 'ready': 'bool' } attribute_map = { - 'conditions': 'conditions' + 'conditions': 'conditions', + 'created': 'created', + 'ready': 'ready' } - def __init__(self, conditions=None): + def __init__(self, conditions=None, created=None, ready=None): """ V1OfflineVirtualMachineStatus - a model defined in Swagger """ self._conditions = None + self._created = None + self._ready = None if conditions is not None: self.conditions = conditions + if created is not None: + self.created = created + if ready is not None: + self.ready = ready @property def conditions(self): @@ -71,6 +81,52 @@ def conditions(self, conditions): self._conditions = conditions + @property + def created(self): + """ + Gets the created of this V1OfflineVirtualMachineStatus. + Created indicates if the virtual machine is created in the cluster + + :return: The created of this V1OfflineVirtualMachineStatus. + :rtype: bool + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this V1OfflineVirtualMachineStatus. + Created indicates if the virtual machine is created in the cluster + + :param created: The created of this V1OfflineVirtualMachineStatus. + :type: bool + """ + + self._created = created + + @property + def ready(self): + """ + Gets the ready of this V1OfflineVirtualMachineStatus. + Ready indicates if the virtual machine is running and ready + + :return: The ready of this V1OfflineVirtualMachineStatus. + :rtype: bool + """ + return self._ready + + @ready.setter + def ready(self, ready): + """ + Sets the ready of this V1OfflineVirtualMachineStatus. + Ready indicates if the virtual machine is running and ready + + :param ready: The ready of this V1OfflineVirtualMachineStatus. + :type: bool + """ + + self._ready = ready + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 2e019579..545c01c1 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.4.1-129-g78b24958" +VERSION = "v0.4.1-132-g074b4658" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 796b232c..142deb36 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.4.1-129-g78b24958" +"packageVersion": "v0.4.1-132-g074b4658" } From db2986a07ac72127565cd6ba8ac9b0b4b9ca8b13 Mon Sep 17 00:00:00 2001 From: Lukas Bednar Date: Fri, 27 Apr 2018 14:07:03 +0200 Subject: [PATCH 006/521] Add example how to work with VM Initial patch for #8 Signed-off-by: Lukas Bednar --- examples/example_vms.py | 56 ++++++++++++++++++++++++++++++++++++++ examples/examplelib.py | 40 +++++++++++++++++++++++++++ examples/requirements.txt | 3 ++ examples/vm-ephemeral.yaml | 25 +++++++++++++++++ 4 files changed, 124 insertions(+) create mode 100644 examples/example_vms.py create mode 100644 examples/examplelib.py create mode 100644 examples/requirements.txt create mode 100644 examples/vm-ephemeral.yaml diff --git a/examples/example_vms.py b/examples/example_vms.py new file mode 100644 index 00000000..cad8a41b --- /dev/null +++ b/examples/example_vms.py @@ -0,0 +1,56 @@ +#!/usr/bin/env python +""" +This script demostrates lifecycle of VM +* list existing VMs +* create VM +* wait until VM is running +* delete VM +""" +from pprint import pprint + +from kubernetes import watch +from kubevirt import V1DeleteOptions + +from examplelib import get_client, read_yaml_file + + +NAMESPACE = "default" + + +def main(): + api = get_client() + + # List existing VMs + pprint(api.list_namespaced_virtual_machine_0(NAMESPACE)) + + # Create new one + vm_body = read_yaml_file("vm-ephemeral.yaml") + pprint(api.create_namespaced_virtual_machine_0(vm_body, NAMESPACE)) + + # Wait until VM is running + def event_source(**kw): + if '_request_timeout' not in kw: + kw['_request_timeout'] = 60 + return api.list_namespaced_virtual_machine_0(NAMESPACE, **kw) + + w = watch.Watch() + for event in w.stream(event_source): + pprint(event) + if event['object']['metadata']['name'] != vm_body['metadata']['name']: + # This is not our VM + continue + if event['type'] == 'MODIFIED': + if event['object']['status'].get('phase', "") == "Running": + break # VM is running + w.stop() + + # Delete VM + pprint( + api.delete_namespaced_virtual_machine_0( + V1DeleteOptions(), NAMESPACE, vm_body['metadata']['name'] + ) + ) + + +if __name__ == "__main__": + main() diff --git a/examples/examplelib.py b/examples/examplelib.py new file mode 100644 index 00000000..cabec4bd --- /dev/null +++ b/examples/examplelib.py @@ -0,0 +1,40 @@ +import os +import yaml + +from kubernetes import config +import kubevirt + + +def get_client(kubeconfig=None): + """ + This function loads kubeconfig and return kubevirt.DefaultApi() object. + + Args: + kubeconfig (str): Path to kubeconfig + + Returns: + kubevirt.DefaultApi: Instance of KubeVirt client + """ + if kubeconfig is None: + kubeconfig = os.environ.get("KUBECONFIG") + if kubeconfig is None: + kubeconfig = os.path.expanduser("~/.kube/config") + cl = config.kube_config._get_kube_config_loader_for_yaml_file(kubeconfig) + cl.load_and_set(kubevirt.configuration) + + return kubevirt.DefaultApi() + + +def read_yaml_file(path): + """ + Read and parse YAML from given file. + + Args: + path (str): Path to YAML file + + Returns: + dict: content of file + """ + path = os.path.join(os.path.dirname(__file__), path) + with open(path) as fh: + return yaml.load(fh) diff --git a/examples/requirements.txt b/examples/requirements.txt new file mode 100644 index 00000000..df8070ec --- /dev/null +++ b/examples/requirements.txt @@ -0,0 +1,3 @@ +# We need this module for issue #2 +kubernetes +git+https://github.com/kubevirt/client-python.git diff --git a/examples/vm-ephemeral.yaml b/examples/vm-ephemeral.yaml new file mode 100644 index 00000000..71d3c194 --- /dev/null +++ b/examples/vm-ephemeral.yaml @@ -0,0 +1,25 @@ +--- +apiVersion: kubevirt.io/v1alpha1 +kind: VirtualMachine +metadata: + creationTimestamp: null + name: vm-ephemeral +spec: + domain: + devices: + disks: + - disk: + bus: virtio + name: registrydisk + volumeName: registryvolume + machine: + type: "" + resources: + requests: + memory: 64M + terminationGracePeriodSeconds: 0 + volumes: + - name: registryvolume + registryDisk: + image: kubevirt/cirros-registry-disk-demo:latest +status: {} From 3b1f3494a81ecbeb43eaa2cf825bdf8bd253be94 Mon Sep 17 00:00:00 2001 From: Lukas Bednar Date: Fri, 27 Apr 2018 18:56:32 +0200 Subject: [PATCH 007/521] Add README for examples Signed-off-by: Lukas Bednar --- examples/README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 examples/README.md diff --git a/examples/README.md b/examples/README.md new file mode 100644 index 00000000..a6afb308 --- /dev/null +++ b/examples/README.md @@ -0,0 +1,22 @@ +# Examples + +This directory presents useful examples how to use client. + +Examples expected `kubeconfig` located under `~/.kube/config` or specified +in `KUBECONFIG` environment variable. + +These examples also uses some functionality from `kubernetes` modules +like a `Watch`. + +So you need to make sure that you have kubernetes module installed. You can +simply install it using `requirements.txt`. + +```bash +$ pip install -r requirements.txt +``` + +And then every example can be executed as following + +```bash +$ python example_vms.py +``` From 90cb8e73d2536220f9b0d520dfd102500ebbbe94 Mon Sep 17 00:00:00 2001 From: Lukas Bednar Date: Wed, 2 May 2018 17:06:36 +0200 Subject: [PATCH 008/521] Addressed comments from review Signed-off-by: Lukas Bednar --- examples/example_vms.py | 44 ++++++------ examples/examplelib.py | 155 +++++++++++++++++++++++++++++++++++++++- 2 files changed, 175 insertions(+), 24 deletions(-) diff --git a/examples/example_vms.py b/examples/example_vms.py index cad8a41b..a8d6dd35 100644 --- a/examples/example_vms.py +++ b/examples/example_vms.py @@ -8,46 +8,44 @@ """ from pprint import pprint -from kubernetes import watch from kubevirt import V1DeleteOptions -from examplelib import get_client, read_yaml_file +import examplelib as el NAMESPACE = "default" def main(): - api = get_client() + api = el.get_client() # List existing VMs - pprint(api.list_namespaced_virtual_machine_0(NAMESPACE)) + pprint(api.list_namespaced_virtual_machine(NAMESPACE)) # Create new one - vm_body = read_yaml_file("vm-ephemeral.yaml") - pprint(api.create_namespaced_virtual_machine_0(vm_body, NAMESPACE)) + vm = el.read_yaml_file("vm-ephemeral.yaml") + pprint(api.create_namespaced_virtual_machine(vm, NAMESPACE)) # Wait until VM is running - def event_source(**kw): - if '_request_timeout' not in kw: - kw['_request_timeout'] = 60 - return api.list_namespaced_virtual_machine_0(NAMESPACE, **kw) - - w = watch.Watch() - for event in w.stream(event_source): - pprint(event) - if event['object']['metadata']['name'] != vm_body['metadata']['name']: - # This is not our VM - continue - if event['type'] == 'MODIFIED': - if event['object']['status'].get('phase', "") == "Running": - break # VM is running - w.stop() + try: + w = el.Watch(api.list_namespaced_virtual_machine, NAMESPACE) + vm = w.wait_for_item( + el.get_name(vm), timeout=60, + success_condition=lambda e: + el.get_status(e['object']) == "Running" + ) + except el.WaitForTimeout: + vm = el.read_namespaced_virtual_machine(el.get_name(vm), NAMESPACE) + raise Exception( + "VM is not in expected state: %s != %s" % ( + el.get_status(vm), "Running" + ) + ) # Delete VM pprint( - api.delete_namespaced_virtual_machine_0( - V1DeleteOptions(), NAMESPACE, vm_body['metadata']['name'] + api.delete_namespaced_virtual_machine( + V1DeleteOptions(), NAMESPACE, el.get_name(vm) ) ) diff --git a/examples/examplelib.py b/examples/examplelib.py index cabec4bd..cb841b20 100644 --- a/examples/examplelib.py +++ b/examples/examplelib.py @@ -1,10 +1,151 @@ import os +import time import yaml +from urllib3.exceptions import ReadTimeoutError -from kubernetes import config +from kubernetes import config, watch import kubevirt +class ExampleLibException(Exception): + pass + + +class WaitForException(ExampleLibException): + pass + + +class WaitForFailureMatch(WaitForException): + def __init__(self, event): + self.event = event + + def __str__(self): + return "Failure condition satisfied with item: %s" % self.event + + +class WaitForTimeout(WaitForException): + def __init__(self, source, timeout): + self.source = source + self.timeout = timeout + + def __str__(self): + return "Waiting for events from %s reached timeout: %ss" % ( + self.source, self.timeout + ) + + +class Watch(object): + """ + Watch collection on changes. + """ + def __init__(self, event_source, *args, **kwargs): + """ + Create instance of Watch object + + Args: + event_source (func): API call to get objects collection + args (tuple), kwargs(dict): Prameters for `event_source` function + """ + self._es = event_source + self._args = args + self._kw = kwargs + + def _event_source(self, **kwargs): + kw = self._kw.copy() + kw.update(kwargs) + return self._es(*self._args, **kw) + + def watch(self, request_timeout=None): + """ + Generator returning events from `event_source` + + Args: + request_timeout (int): Timeout for request (seconds) + + Returns: + Generator: Event objects + """ + kw = dict() + if request_timeout: + kw['_request_timeout'] = request_timeout + w = watch.Watch() + try: + for e in w.stream(self._event_source, **kw): + yield e + except GeneratorExit: + w.stop() + raise + + def _wait_for_x( + self, timeout, filter_condition, success_condition, + failure_condition + ): + step = 5 # 5s + endtime = timeout + time.time() + while timeout < endtime: + try: + for e in self.watch(request_timeout=step): + if not filter_condition(e): + continue + if success_condition(e): + return e['object'] + if failure_condition(e): + raise WaitForFailureMatch(e) + except ReadTimeoutError: + continue + raise WaitForTimeout(self._es, self.timeout) + + def wait_for_item( + self, name, timeout, success_condition, + failure_condition=lambda e: False + ): + """ + Wait for change on specific object by name. + + Args: + name (str): Name of object + timeout (int): Timeout for request (seconds) + success_condition (func): Predicate for success and exit loop, + taking event as argument + failure_condition (func): Predicate to fail loop, + taking event as argument + Returns: + Event: Event which matches `success_condition` + Raises: + WaitForTimeout: On request_timeout + WaitForFailureMatch: On `failure_condition` + """ + return self._wait_for_x( + timeout, + lambda e: get_name(e['object']) == name, + success_condition, failure_condition + ) + + def wait_for( + self, timeout, success_condition, + failure_condition=lambda e: False + ): + """ + Wait for any change on given `event_source`. + + Args: + timeout (int): Timeout for request (seconds) + success_condition (func): Predicate for success and exit loop, + taking event as argument + failure_condition (func): Predicate to fail loop, + taking event as argument + Returns: + Event: Event which matches `success_condition` + Raises: + WaitForTimeout: On request_timeout + WaitForFailureMatch: On `failure_condition` + """ + return self._wait_for_x( + timeout, lambda e: True, success_condition, + failure_condition + ) + + def get_client(kubeconfig=None): """ This function loads kubeconfig and return kubevirt.DefaultApi() object. @@ -38,3 +179,15 @@ def read_yaml_file(path): path = os.path.join(os.path.dirname(__file__), path) with open(path) as fh: return yaml.load(fh) + + +def get_name(obj): + if isinstance(obj, dict): + return obj.get('metadata', dict()).get('name') + return obj.metadata.name + + +def get_status(obj): + if isinstance(obj, dict): + return obj.get('status', dict()).get('phase') + return obj.status.phase From 28e4ac7c3e1ed11a05c8febb6a6b4619b460d30c Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 9 May 2018 15:48:51 +0000 Subject: [PATCH 009/521] Client Python update by Travis Build 3305 --- README.md | 2 +- docs/V1VirtualMachineSpec.md | 2 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_virtual_machine_spec.py | 58 +++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 65 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 6a918fd0..3733515c 100644 --- a/README.md +++ b/README.md @@ -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: v0.4.1-132-g074b4658 +- Package version: v0.5.0-52-gbb03cc18 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineSpec.md b/docs/V1VirtualMachineSpec.md index cc60b137..53b32203 100644 --- a/docs/V1VirtualMachineSpec.md +++ b/docs/V1VirtualMachineSpec.md @@ -5,7 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **affinity** | [**V1Affinity**](V1Affinity.md) | If affinity is specifies, obey all the affinity rules | [optional] **domain** | [**V1DomainSpec**](V1DomainSpec.md) | Specification of the desired behavior of the VirtualMachine on the host. | +**hostname** | **str** | Specifies the hostname of the vm If not specified, the hostname will be set to the name of the vm, if dhcp or cloud-init is configured properly. +optional | [optional] **node_selector** | **object** | NodeSelector is a selector which must be true for the vm to fit on a node. Selector which must match a node's labels for the vm to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional | [optional] +**subdomain** | **str** | If specified, the fully qualified vm hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the vm will not have a domainname at all. The DNS entry will resolve to the vm, no matter if the vm itself can pick up a hostname. +optional | [optional] **termination_grace_period_seconds** | **int** | Grace period observed after signalling a VM to stop after which the VM is force terminated. | [optional] **volumes** | [**list[V1Volume]**](V1Volume.md) | List of volumes that can be mounted by disks belonging to the vm. | [optional] diff --git a/git_push.sh b/git_push.sh index 08ece983..6eebaa6a 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.4.1-132-g074b4658" + release_note="Auto-generated client v0.5.0-52-gbb03cc18" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index ea674407..f0333e4f 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.4.1-132-g074b4658/python' + self.user_agent = 'Swagger-Codegen/v0.5.0-52-gbb03cc18/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index a5b198d3..d977f13f 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.4.1-132-g074b4658".\ + "SDK Package Version: v0.5.0-52-gbb03cc18".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_spec.py b/kubevirt/models/v1_virtual_machine_spec.py index 4a232a65..1a665c2c 100644 --- a/kubevirt/models/v1_virtual_machine_spec.py +++ b/kubevirt/models/v1_virtual_machine_spec.py @@ -33,7 +33,9 @@ class V1VirtualMachineSpec(object): swagger_types = { 'affinity': 'V1Affinity', 'domain': 'V1DomainSpec', + 'hostname': 'str', 'node_selector': 'object', + 'subdomain': 'str', 'termination_grace_period_seconds': 'int', 'volumes': 'list[V1Volume]' } @@ -41,27 +43,35 @@ class V1VirtualMachineSpec(object): attribute_map = { 'affinity': 'affinity', 'domain': 'domain', + 'hostname': 'hostname', 'node_selector': 'nodeSelector', + 'subdomain': 'subdomain', 'termination_grace_period_seconds': 'terminationGracePeriodSeconds', 'volumes': 'volumes' } - def __init__(self, affinity=None, domain=None, node_selector=None, termination_grace_period_seconds=None, volumes=None): + def __init__(self, affinity=None, domain=None, hostname=None, node_selector=None, subdomain=None, termination_grace_period_seconds=None, volumes=None): """ V1VirtualMachineSpec - a model defined in Swagger """ self._affinity = None self._domain = None + self._hostname = None self._node_selector = None + self._subdomain = None self._termination_grace_period_seconds = None self._volumes = None if affinity is not None: self.affinity = affinity self.domain = domain + if hostname is not None: + self.hostname = hostname if node_selector is not None: self.node_selector = node_selector + if subdomain is not None: + self.subdomain = subdomain if termination_grace_period_seconds is not None: self.termination_grace_period_seconds = termination_grace_period_seconds if volumes is not None: @@ -115,6 +125,29 @@ def domain(self, domain): self._domain = domain + @property + def hostname(self): + """ + Gets the hostname of this V1VirtualMachineSpec. + Specifies the hostname of the vm If not specified, the hostname will be set to the name of the vm, if dhcp or cloud-init is configured properly. +optional + + :return: The hostname of this V1VirtualMachineSpec. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """ + Sets the hostname of this V1VirtualMachineSpec. + Specifies the hostname of the vm If not specified, the hostname will be set to the name of the vm, if dhcp or cloud-init is configured properly. +optional + + :param hostname: The hostname of this V1VirtualMachineSpec. + :type: str + """ + + self._hostname = hostname + @property def node_selector(self): """ @@ -138,6 +171,29 @@ def node_selector(self, node_selector): self._node_selector = node_selector + @property + def subdomain(self): + """ + Gets the subdomain of this V1VirtualMachineSpec. + If specified, the fully qualified vm hostname will be \"...svc.\". If not specified, the vm will not have a domainname at all. The DNS entry will resolve to the vm, no matter if the vm itself can pick up a hostname. +optional + + :return: The subdomain of this V1VirtualMachineSpec. + :rtype: str + """ + return self._subdomain + + @subdomain.setter + def subdomain(self, subdomain): + """ + Sets the subdomain of this V1VirtualMachineSpec. + If specified, the fully qualified vm hostname will be \"...svc.\". If not specified, the vm will not have a domainname at all. The DNS entry will resolve to the vm, no matter if the vm itself can pick up a hostname. +optional + + :param subdomain: The subdomain of this V1VirtualMachineSpec. + :type: str + """ + + self._subdomain = subdomain + @property def termination_grace_period_seconds(self): """ diff --git a/setup.py b/setup.py index 545c01c1..55be691a 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.4.1-132-g074b4658" +VERSION = "v0.5.0-52-gbb03cc18" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 142deb36..f8c3da6d 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.4.1-132-g074b4658" +"packageVersion": "v0.5.0-52-gbb03cc18" } From 3493d50a9a8c33f76b2f7b0e6c02b97b5076baed Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 16 May 2018 21:36:07 +0000 Subject: [PATCH 010/521] Client Python update by Travis Build 3373 --- README.md | 2 +- docs/V1OfflineVirtualMachineSpec.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_offline_virtual_machine_spec.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 3733515c..4636d50d 100644 --- a/README.md +++ b/README.md @@ -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: v0.5.0-52-gbb03cc18 +- Package version: v0.5.0-87-g879195b3 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1OfflineVirtualMachineSpec.md b/docs/V1OfflineVirtualMachineSpec.md index 3b0da215..a1489f72 100644 --- a/docs/V1OfflineVirtualMachineSpec.md +++ b/docs/V1OfflineVirtualMachineSpec.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**running** | **bool** | Running controlls whether the associatied VirtualMachine is created or not | +**running** | **bool** | Running controls whether the associatied VirtualMachine is created or not | **template** | [**V1VMTemplateSpec**](V1VMTemplateSpec.md) | Template is the direct specification of VirtualMachine | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 6eebaa6a..254134a4 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.5.0-52-gbb03cc18" + release_note="Auto-generated client v0.5.0-87-g879195b3" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index f0333e4f..26bda43a 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.5.0-52-gbb03cc18/python' + self.user_agent = 'Swagger-Codegen/v0.5.0-87-g879195b3/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index d977f13f..530de463 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.5.0-52-gbb03cc18".\ + "SDK Package Version: v0.5.0-87-g879195b3".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_offline_virtual_machine_spec.py b/kubevirt/models/v1_offline_virtual_machine_spec.py index adc1bd18..b18187d9 100644 --- a/kubevirt/models/v1_offline_virtual_machine_spec.py +++ b/kubevirt/models/v1_offline_virtual_machine_spec.py @@ -55,7 +55,7 @@ def __init__(self, running=None, template=None): def running(self): """ Gets the running of this V1OfflineVirtualMachineSpec. - Running controlls whether the associatied VirtualMachine is created or not + Running controls whether the associatied VirtualMachine is created or not :return: The running of this V1OfflineVirtualMachineSpec. :rtype: bool @@ -66,7 +66,7 @@ def running(self): def running(self, running): """ Sets the running of this V1OfflineVirtualMachineSpec. - Running controlls whether the associatied VirtualMachine is created or not + Running controls whether the associatied VirtualMachine is created or not :param running: The running of this V1OfflineVirtualMachineSpec. :type: bool diff --git a/setup.py b/setup.py index 55be691a..61af7193 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.5.0-52-gbb03cc18" +VERSION = "v0.5.0-87-g879195b3" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index f8c3da6d..0ae2c8b6 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.5.0-52-gbb03cc18" +"packageVersion": "v0.5.0-87-g879195b3" } From 421fb19e5a0eedab119bce9645607159cbc66a5b Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 23 May 2018 08:26:20 +0000 Subject: [PATCH 011/521] Client Python update by Travis Build 3445 --- README.md | 3 +- docs/DefaultApi.md | 46 ++++++++++++++++++ git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 90 ++++++++++++++++++++++++++++++++++++ kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 8 ++++ 9 files changed, 151 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4636d50d..029a0021 100644 --- a/README.md +++ b/README.md @@ -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: v0.5.0-87-g879195b3 +- Package version: v0.5.0-130-g6fa24ad3 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -113,6 +113,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**replace_namespaced_virtual_machine_preset**](docs/DefaultApi.md#replace_namespaced_virtual_machine_preset) | **PUT** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name} | Update a VirtualMachinePreset object. *DefaultApi* | [**replace_namespaced_virtual_machine_replica_set**](docs/DefaultApi.md#replace_namespaced_virtual_machine_replica_set) | **PUT** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets/{name} | Update a VirtualMachineReplicaSet object. *DefaultApi* | [**test**](docs/DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}/test | Test endpoint verifying apiserver connectivity. +*DefaultApi* | [**version**](docs/DefaultApi.md#version) | **GET** /apis/subresources.kubevirt.io/v1alpha1/version | *DefaultApi* | [**vnc**](docs/DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}/vnc | Open a websocket connection to connect to VNC on the specified VM. *DefaultApi* | [**watch_namespaced_offline_virtual_machine**](docs/DefaultApi.md#watch_namespaced_offline_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/offlinevirtualmachines | Watch a OfflineVirtualMachine object. *DefaultApi* | [**watch_namespaced_virtual_machine**](docs/DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachines | Watch a VirtualMachine object. diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 086e9903..c846b66c 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -44,6 +44,7 @@ Method | HTTP request | Description [**replace_namespaced_virtual_machine_preset**](DefaultApi.md#replace_namespaced_virtual_machine_preset) | **PUT** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name} | Update a VirtualMachinePreset object. [**replace_namespaced_virtual_machine_replica_set**](DefaultApi.md#replace_namespaced_virtual_machine_replica_set) | **PUT** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets/{name} | Update a VirtualMachineReplicaSet object. [**test**](DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}/test | Test endpoint verifying apiserver connectivity. +[**version**](DefaultApi.md#version) | **GET** /apis/subresources.kubevirt.io/v1alpha1/version | [**vnc**](DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}/vnc | Open a websocket connection to connect to VNC on the specified VM. [**watch_namespaced_offline_virtual_machine**](DefaultApi.md#watch_namespaced_offline_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/offlinevirtualmachines | Watch a OfflineVirtualMachine object. [**watch_namespaced_virtual_machine**](DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachines | Watch a VirtualMachine object. @@ -2336,6 +2337,51 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **version** +> version() + + + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_instance.version() +except ApiException as e: + print("Exception when calling DefaultApi->version: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **vnc** > vnc(namespace, name) diff --git a/git_push.sh b/git_push.sh index 254134a4..21fe744c 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.5.0-87-g879195b3" + release_note="Auto-generated client v0.5.0-130-g6fa24ad3" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 26bda43a..a9fd2290 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.5.0-87-g879195b3/python' + self.user_agent = 'Swagger-Codegen/v0.5.0-130-g6fa24ad3/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 4c60570d..78597d38 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -4714,6 +4714,96 @@ def test_with_http_info(self, namespace, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def version(self, **kwargs): + """ + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.version(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.version_with_http_info(**kwargs) + else: + (data) = self.version_with_http_info(**kwargs) + return data + + def version_with_http_info(self, **kwargs): + """ + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.version_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method version" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha1/version', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def vnc(self, namespace, name, **kwargs): """ Open a websocket connection to connect to VNC on the specified VM. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 530de463..e24014eb 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.5.0-87-g879195b3".\ + "SDK Package Version: v0.5.0-130-g6fa24ad3".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index 61af7193..0032f7d4 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.5.0-87-g879195b3" +VERSION = "v0.5.0-130-g6fa24ad3" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 0ae2c8b6..89aba9b0 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.5.0-87-g879195b3" +"packageVersion": "v0.5.0-130-g6fa24ad3" } diff --git a/test/test_default_api.py b/test/test_default_api.py index c2e8e43d..7d364696 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -351,6 +351,14 @@ def test_test(self): """ pass + def test_version(self): + """ + Test case for version + + + """ + pass + def test_vnc(self): """ Test case for vnc From 8f9403a60ff06676adcbc66e6a8bf6911273d954 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 23 May 2018 18:52:32 +0000 Subject: [PATCH 012/521] Client Python update by Travis Build 3458 --- README.md | 2 +- docs/V1VMReplicaSetSpec.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_vm_replica_set_spec.py | 9 +++++---- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 12 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 029a0021..a8cbe2c4 100644 --- a/README.md +++ b/README.md @@ -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: v0.5.0-130-g6fa24ad3 +- Package version: v0.5.0-137-g309492a - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VMReplicaSetSpec.md b/docs/V1VMReplicaSetSpec.md index 2c740100..25463ecc 100644 --- a/docs/V1VMReplicaSetSpec.md +++ b/docs/V1VMReplicaSetSpec.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **paused** | **bool** | Indicates that the replica set is paused. +optional | [optional] **replicas** | **int** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. +optional | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. +optional | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. | **template** | [**V1VMTemplateSpec**](V1VMTemplateSpec.md) | Template describes the pods that will be created. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 21fe744c..c592e5b2 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.5.0-130-g6fa24ad3" + release_note="Auto-generated client v0.5.0-137-g309492a" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index a9fd2290..ed1ad0ed 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.5.0-130-g6fa24ad3/python' + self.user_agent = 'Swagger-Codegen/v0.5.0-137-g309492a/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index e24014eb..6fc08f35 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.5.0-130-g6fa24ad3".\ + "SDK Package Version: v0.5.0-137-g309492a".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_vm_replica_set_spec.py b/kubevirt/models/v1_vm_replica_set_spec.py index a1e5122f..8a8a9b9e 100644 --- a/kubevirt/models/v1_vm_replica_set_spec.py +++ b/kubevirt/models/v1_vm_replica_set_spec.py @@ -58,8 +58,7 @@ def __init__(self, paused=None, replicas=None, selector=None, template=None): self.paused = paused if replicas is not None: self.replicas = replicas - if selector is not None: - self.selector = selector + self.selector = selector self.template = template @property @@ -112,7 +111,7 @@ def replicas(self, replicas): def selector(self): """ Gets the selector of this V1VMReplicaSetSpec. - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. +optional + Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. :return: The selector of this V1VMReplicaSetSpec. :rtype: V1LabelSelector @@ -123,11 +122,13 @@ def selector(self): def selector(self, selector): """ Sets the selector of this V1VMReplicaSetSpec. - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. +optional + Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. :param selector: The selector of this V1VMReplicaSetSpec. :type: V1LabelSelector """ + if selector is None: + raise ValueError("Invalid value for `selector`, must not be `None`") self._selector = selector diff --git a/setup.py b/setup.py index 0032f7d4..7cc0ea8f 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.5.0-130-g6fa24ad3" +VERSION = "v0.5.0-137-g309492a" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 89aba9b0..aa96c1c4 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.5.0-130-g6fa24ad3" +"packageVersion": "v0.5.0-137-g309492a" } From 8a0618c35cd24c7c0a27060c504f28d875e97d4e Mon Sep 17 00:00:00 2001 From: Lukas Bednar Date: Mon, 28 May 2018 10:20:20 +0200 Subject: [PATCH 013/521] examples: Update existing VM Signed-off-by: Lukas Bednar --- examples/example_vms.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/example_vms.py b/examples/example_vms.py index a8d6dd35..1621d7db 100644 --- a/examples/example_vms.py +++ b/examples/example_vms.py @@ -42,6 +42,11 @@ def main(): ) ) + # Update memory of VM + vm['spec']['domain']['resources']['requests']['memory'] = '512M' + vm = api.replace_namespaced_virtual_machine(vm, NAMESPACE, el.get_name(vm)) + pprint(vm) + # Delete VM pprint( api.delete_namespaced_virtual_machine( From 6dc13b694dd3aefc6801337383398877caef881a Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 30 May 2018 16:08:51 +0000 Subject: [PATCH 014/521] Client Python update by Travis Build 3506 --- README.md | 2 +- docs/V1Disk.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_disk.py | 30 +++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index a8cbe2c4..46711e16 100644 --- a/README.md +++ b/README.md @@ -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: v0.5.0-137-g309492a +- Package version: v0.5.0-168-g2b5733f - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Disk.md b/docs/V1Disk.md index eb5815f5..7588d870 100644 --- a/docs/V1Disk.md +++ b/docs/V1Disk.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**boot_order** | **int** | BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Disks without a boot order are not tried if a disk with a boot order exists. +optional | [optional] **cdrom** | [**V1CDRomTarget**](V1CDRomTarget.md) | Attach a volume as a cdrom to the vm | [optional] **disk** | [**V1DiskTarget**](V1DiskTarget.md) | Attach a volume as a disk to the vm | [optional] **floppy** | [**V1FloppyTarget**](V1FloppyTarget.md) | Attach a volume as a floppy to the vm | [optional] diff --git a/git_push.sh b/git_push.sh index c592e5b2..c29d5c3a 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.5.0-137-g309492a" + release_note="Auto-generated client v0.5.0-168-g2b5733f" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index ed1ad0ed..f533725c 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.5.0-137-g309492a/python' + self.user_agent = 'Swagger-Codegen/v0.5.0-168-g2b5733f/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 6fc08f35..a79a78be 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.5.0-137-g309492a".\ + "SDK Package Version: v0.5.0-168-g2b5733f".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_disk.py b/kubevirt/models/v1_disk.py index 199e5c66..2abeb792 100644 --- a/kubevirt/models/v1_disk.py +++ b/kubevirt/models/v1_disk.py @@ -31,6 +31,7 @@ class V1Disk(object): and the value is json key in definition. """ swagger_types = { + 'boot_order': 'int', 'cdrom': 'V1CDRomTarget', 'disk': 'V1DiskTarget', 'floppy': 'V1FloppyTarget', @@ -40,6 +41,7 @@ class V1Disk(object): } attribute_map = { + 'boot_order': 'bootOrder', 'cdrom': 'cdrom', 'disk': 'disk', 'floppy': 'floppy', @@ -48,11 +50,12 @@ class V1Disk(object): 'volume_name': 'volumeName' } - def __init__(self, cdrom=None, disk=None, floppy=None, lun=None, name=None, volume_name=None): + def __init__(self, boot_order=None, cdrom=None, disk=None, floppy=None, lun=None, name=None, volume_name=None): """ V1Disk - a model defined in Swagger """ + self._boot_order = None self._cdrom = None self._disk = None self._floppy = None @@ -60,6 +63,8 @@ def __init__(self, cdrom=None, disk=None, floppy=None, lun=None, name=None, volu self._name = None self._volume_name = None + if boot_order is not None: + self.boot_order = boot_order if cdrom is not None: self.cdrom = cdrom if disk is not None: @@ -71,6 +76,29 @@ def __init__(self, cdrom=None, disk=None, floppy=None, lun=None, name=None, volu self.name = name self.volume_name = volume_name + @property + def boot_order(self): + """ + Gets the boot_order of this V1Disk. + BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Disks without a boot order are not tried if a disk with a boot order exists. +optional + + :return: The boot_order of this V1Disk. + :rtype: int + """ + return self._boot_order + + @boot_order.setter + def boot_order(self, boot_order): + """ + Sets the boot_order of this V1Disk. + BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Disks without a boot order are not tried if a disk with a boot order exists. +optional + + :param boot_order: The boot_order of this V1Disk. + :type: int + """ + + self._boot_order = boot_order + @property def cdrom(self): """ diff --git a/setup.py b/setup.py index 7cc0ea8f..4b5d6a42 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.5.0-137-g309492a" +VERSION = "v0.5.0-168-g2b5733f" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index aa96c1c4..22e14823 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.5.0-137-g309492a" +"packageVersion": "v0.5.0-168-g2b5733f" } From 0c2d3bb205d0a9d692de3afc53e36cfa23dc8363 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 8 Jun 2018 20:38:57 +0000 Subject: [PATCH 015/521] Client Python update by Travis Build 3590 --- README.md | 4 +- docs/V1Devices.md | 1 + docs/V1Interface.md | 11 ++ docs/V1Network.md | 11 ++ docs/V1VirtualMachineSpec.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 48 +++++++ kubevirt/__init__.py | 2 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 + kubevirt/models/v1_devices.py | 30 +++- kubevirt/models/v1_interface.py | 152 +++++++++++++++++++++ kubevirt/models/v1_network.py | 152 +++++++++++++++++++++ kubevirt/models/v1_virtual_machine_spec.py | 30 +++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_interface.py | 44 ++++++ test/test_v1_network.py | 44 ++++++ 19 files changed, 534 insertions(+), 8 deletions(-) create mode 100644 docs/V1Interface.md create mode 100644 docs/V1Network.md create mode 100644 kubevirt/models/v1_interface.py create mode 100644 kubevirt/models/v1_network.py create mode 100644 test/test_v1_interface.py create mode 100644 test/test_v1_network.py diff --git a/README.md b/README.md index 46711e16..1d05b87a 100644 --- a/README.md +++ b/README.md @@ -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: v0.5.0-168-g2b5733f +- Package version: v0.5.0-245-ga8300764 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -158,6 +158,7 @@ Class | Method | HTTP request | Description - [V1I6300ESBWatchdog](docs/V1I6300ESBWatchdog.md) - [V1Initializer](docs/V1Initializer.md) - [V1Initializers](docs/V1Initializers.md) + - [V1Interface](docs/V1Interface.md) - [V1KVMTimer](docs/V1KVMTimer.md) - [V1LabelSelector](docs/V1LabelSelector.md) - [V1LabelSelectorRequirement](docs/V1LabelSelectorRequirement.md) @@ -165,6 +166,7 @@ Class | Method | HTTP request | Description - [V1LocalObjectReference](docs/V1LocalObjectReference.md) - [V1LunTarget](docs/V1LunTarget.md) - [V1Machine](docs/V1Machine.md) + - [V1Network](docs/V1Network.md) - [V1NodeAffinity](docs/V1NodeAffinity.md) - [V1NodeSelector](docs/V1NodeSelector.md) - [V1NodeSelectorRequirement](docs/V1NodeSelectorRequirement.md) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index d532959f..c935e50f 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **disks** | [**list[V1Disk]**](V1Disk.md) | Disks describes disks, cdroms, floppy and luns which are connected to the vm | [optional] +**interfaces** | [**list[V1Interface]**](V1Interface.md) | Interfaces describe network interfaces which are added to the vm | [optional] **watchdog** | [**V1Watchdog**](V1Watchdog.md) | Watchdog describes a watchdog device which can be added to the vm | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Interface.md b/docs/V1Interface.md new file mode 100644 index 00000000..b4afe94b --- /dev/null +++ b/docs/V1Interface.md @@ -0,0 +1,11 @@ +# V1Interface + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bridge** | [**V1InterfaceBridge**](V1InterfaceBridge.md) | | [optional] +**name** | **str** | Logical name of the interface as well as a reference to the associated networks Must match the Name of a Network | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Network.md b/docs/V1Network.md new file mode 100644 index 00000000..36fe3c16 --- /dev/null +++ b/docs/V1Network.md @@ -0,0 +1,11 @@ +# V1Network + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Network name Must be a DNS_LABEL and unique within the vm. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | +**pod** | [**V1PodNetwork**](V1PodNetwork.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineSpec.md b/docs/V1VirtualMachineSpec.md index 53b32203..0846d05d 100644 --- a/docs/V1VirtualMachineSpec.md +++ b/docs/V1VirtualMachineSpec.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **affinity** | [**V1Affinity**](V1Affinity.md) | If affinity is specifies, obey all the affinity rules | [optional] **domain** | [**V1DomainSpec**](V1DomainSpec.md) | Specification of the desired behavior of the VirtualMachine on the host. | **hostname** | **str** | Specifies the hostname of the vm If not specified, the hostname will be set to the name of the vm, if dhcp or cloud-init is configured properly. +optional | [optional] +**networks** | [**list[V1Network]**](V1Network.md) | List of networks that can be attached to a vm's virtual interface. | [optional] **node_selector** | **object** | NodeSelector is a selector which must be true for the vm to fit on a node. Selector which must match a node's labels for the vm to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional | [optional] **subdomain** | **str** | If specified, the fully qualified vm hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the vm will not have a domainname at all. The DNS entry will resolve to the vm, no matter if the vm itself can pick up a hostname. +optional | [optional] **termination_grace_period_seconds** | **int** | Grace period observed after signalling a VM to stop after which the VM is force terminated. | [optional] diff --git a/git_push.sh b/git_push.sh index c29d5c3a..a0bbfd27 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.5.0-168-g2b5733f" + release_note="Auto-generated client v0.5.0-245-ga8300764" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index fbdb787f..7f9917a0 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -95,6 +95,9 @@ [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_initializers.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_initializers.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Initializers.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_interface.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Interface.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_kvm_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kvm_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KVMTimer.md @@ -116,6 +119,9 @@ [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Machine.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_network.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_network.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Network.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_node_affinity.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_node_affinity.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1NodeAffinity.md @@ -264,6 +270,48 @@ [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_group_1` [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_resources_0` [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 007fcf0f..b5b04186 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -45,6 +45,7 @@ from .models.v1_i6300_esb_watchdog import V1I6300ESBWatchdog from .models.v1_initializer import V1Initializer from .models.v1_initializers import V1Initializers +from .models.v1_interface import V1Interface from .models.v1_kvm_timer import V1KVMTimer from .models.v1_label_selector import V1LabelSelector from .models.v1_label_selector_requirement import V1LabelSelectorRequirement @@ -52,6 +53,7 @@ from .models.v1_local_object_reference import V1LocalObjectReference from .models.v1_lun_target import V1LunTarget from .models.v1_machine import V1Machine +from .models.v1_network import V1Network from .models.v1_node_affinity import V1NodeAffinity from .models.v1_node_selector import V1NodeSelector from .models.v1_node_selector_requirement import V1NodeSelectorRequirement diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index f533725c..17e798e0 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.5.0-168-g2b5733f/python' + self.user_agent = 'Swagger-Codegen/v0.5.0-245-ga8300764/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index a79a78be..670c37f0 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.5.0-168-g2b5733f".\ + "SDK Package Version: v0.5.0-245-ga8300764".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 7af1797c..7f9d9908 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -45,6 +45,7 @@ from .v1_i6300_esb_watchdog import V1I6300ESBWatchdog from .v1_initializer import V1Initializer from .v1_initializers import V1Initializers +from .v1_interface import V1Interface from .v1_kvm_timer import V1KVMTimer from .v1_label_selector import V1LabelSelector from .v1_label_selector_requirement import V1LabelSelectorRequirement @@ -52,6 +53,7 @@ from .v1_local_object_reference import V1LocalObjectReference from .v1_lun_target import V1LunTarget from .v1_machine import V1Machine +from .v1_network import V1Network from .v1_node_affinity import V1NodeAffinity from .v1_node_selector import V1NodeSelector from .v1_node_selector_requirement import V1NodeSelectorRequirement diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index 307b027f..09999da8 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -32,24 +32,29 @@ class V1Devices(object): """ swagger_types = { 'disks': 'list[V1Disk]', + 'interfaces': 'list[V1Interface]', 'watchdog': 'V1Watchdog' } attribute_map = { 'disks': 'disks', + 'interfaces': 'interfaces', 'watchdog': 'watchdog' } - def __init__(self, disks=None, watchdog=None): + def __init__(self, disks=None, interfaces=None, watchdog=None): """ V1Devices - a model defined in Swagger """ self._disks = None + self._interfaces = None self._watchdog = None if disks is not None: self.disks = disks + if interfaces is not None: + self.interfaces = interfaces if watchdog is not None: self.watchdog = watchdog @@ -76,6 +81,29 @@ def disks(self, disks): self._disks = disks + @property + def interfaces(self): + """ + Gets the interfaces of this V1Devices. + Interfaces describe network interfaces which are added to the vm + + :return: The interfaces of this V1Devices. + :rtype: list[V1Interface] + """ + return self._interfaces + + @interfaces.setter + def interfaces(self, interfaces): + """ + Sets the interfaces of this V1Devices. + Interfaces describe network interfaces which are added to the vm + + :param interfaces: The interfaces of this V1Devices. + :type: list[V1Interface] + """ + + self._interfaces = interfaces + @property def watchdog(self): """ diff --git a/kubevirt/models/v1_interface.py b/kubevirt/models/v1_interface.py new file mode 100644 index 00000000..fd200d44 --- /dev/null +++ b/kubevirt/models/v1_interface.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Interface(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'bridge': 'V1InterfaceBridge', + 'name': 'str' + } + + attribute_map = { + 'bridge': 'bridge', + 'name': 'name' + } + + def __init__(self, bridge=None, name=None): + """ + V1Interface - a model defined in Swagger + """ + + self._bridge = None + self._name = None + + if bridge is not None: + self.bridge = bridge + self.name = name + + @property + def bridge(self): + """ + Gets the bridge of this V1Interface. + + :return: The bridge of this V1Interface. + :rtype: V1InterfaceBridge + """ + return self._bridge + + @bridge.setter + def bridge(self, bridge): + """ + Sets the bridge of this V1Interface. + + :param bridge: The bridge of this V1Interface. + :type: V1InterfaceBridge + """ + + self._bridge = bridge + + @property + def name(self): + """ + Gets the name of this V1Interface. + Logical name of the interface as well as a reference to the associated networks Must match the Name of a Network + + :return: The name of this V1Interface. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1Interface. + Logical name of the interface as well as a reference to the associated networks Must match the Name of a Network + + :param name: The name of this V1Interface. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1Interface): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_network.py b/kubevirt/models/v1_network.py new file mode 100644 index 00000000..e4f4112b --- /dev/null +++ b/kubevirt/models/v1_network.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Network(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'pod': 'V1PodNetwork' + } + + attribute_map = { + 'name': 'name', + 'pod': 'pod' + } + + def __init__(self, name=None, pod=None): + """ + V1Network - a model defined in Swagger + """ + + self._name = None + self._pod = None + + self.name = name + if pod is not None: + self.pod = pod + + @property + def name(self): + """ + Gets the name of this V1Network. + Network name Must be a DNS_LABEL and unique within the vm. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + :return: The name of this V1Network. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1Network. + Network name Must be a DNS_LABEL and unique within the vm. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + :param name: The name of this V1Network. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def pod(self): + """ + Gets the pod of this V1Network. + + :return: The pod of this V1Network. + :rtype: V1PodNetwork + """ + return self._pod + + @pod.setter + def pod(self, pod): + """ + Sets the pod of this V1Network. + + :param pod: The pod of this V1Network. + :type: V1PodNetwork + """ + + self._pod = pod + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1Network): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_spec.py b/kubevirt/models/v1_virtual_machine_spec.py index 1a665c2c..d2f0dc3c 100644 --- a/kubevirt/models/v1_virtual_machine_spec.py +++ b/kubevirt/models/v1_virtual_machine_spec.py @@ -34,6 +34,7 @@ class V1VirtualMachineSpec(object): 'affinity': 'V1Affinity', 'domain': 'V1DomainSpec', 'hostname': 'str', + 'networks': 'list[V1Network]', 'node_selector': 'object', 'subdomain': 'str', 'termination_grace_period_seconds': 'int', @@ -44,13 +45,14 @@ class V1VirtualMachineSpec(object): 'affinity': 'affinity', 'domain': 'domain', 'hostname': 'hostname', + 'networks': 'networks', 'node_selector': 'nodeSelector', 'subdomain': 'subdomain', 'termination_grace_period_seconds': 'terminationGracePeriodSeconds', 'volumes': 'volumes' } - def __init__(self, affinity=None, domain=None, hostname=None, node_selector=None, subdomain=None, termination_grace_period_seconds=None, volumes=None): + def __init__(self, affinity=None, domain=None, hostname=None, networks=None, node_selector=None, subdomain=None, termination_grace_period_seconds=None, volumes=None): """ V1VirtualMachineSpec - a model defined in Swagger """ @@ -58,6 +60,7 @@ def __init__(self, affinity=None, domain=None, hostname=None, node_selector=None self._affinity = None self._domain = None self._hostname = None + self._networks = None self._node_selector = None self._subdomain = None self._termination_grace_period_seconds = None @@ -68,6 +71,8 @@ def __init__(self, affinity=None, domain=None, hostname=None, node_selector=None self.domain = domain if hostname is not None: self.hostname = hostname + if networks is not None: + self.networks = networks if node_selector is not None: self.node_selector = node_selector if subdomain is not None: @@ -148,6 +153,29 @@ def hostname(self, hostname): self._hostname = hostname + @property + def networks(self): + """ + Gets the networks of this V1VirtualMachineSpec. + List of networks that can be attached to a vm's virtual interface. + + :return: The networks of this V1VirtualMachineSpec. + :rtype: list[V1Network] + """ + return self._networks + + @networks.setter + def networks(self, networks): + """ + Sets the networks of this V1VirtualMachineSpec. + List of networks that can be attached to a vm's virtual interface. + + :param networks: The networks of this V1VirtualMachineSpec. + :type: list[V1Network] + """ + + self._networks = networks + @property def node_selector(self): """ diff --git a/setup.py b/setup.py index 4b5d6a42..3afee450 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.5.0-168-g2b5733f" +VERSION = "v0.5.0-245-ga8300764" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 22e14823..15b399e7 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.5.0-168-g2b5733f" +"packageVersion": "v0.5.0-245-ga8300764" } diff --git a/test/test_v1_interface.py b/test/test_v1_interface.py new file mode 100644 index 00000000..8d6a72ff --- /dev/null +++ b/test/test_v1_interface.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_interface import V1Interface + + +class TestV1Interface(unittest.TestCase): + """ V1Interface unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Interface(self): + """ + Test V1Interface + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_interface.V1Interface() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_network.py b/test/test_v1_network.py new file mode 100644 index 00000000..0024b469 --- /dev/null +++ b/test/test_v1_network.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_network import V1Network + + +class TestV1Network(unittest.TestCase): + """ V1Network unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Network(self): + """ + Test V1Network + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_network.V1Network() + pass + + +if __name__ == '__main__': + unittest.main() From 80e182817c6f7cce81793e459379ca46396846c2 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 12 Jun 2018 14:20:39 +0000 Subject: [PATCH 016/521] Client Python update by Travis Build 3632 --- README.md | 6 +- docs/V1Affinity.md | 2 + docs/V1PodAffinity.md | 11 ++ docs/V1PodAffinityTerm.md | 12 ++ docs/V1PodAntiAffinity.md | 11 ++ docs/V1WeightedPodAffinityTerm.md | 11 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 12 ++ kubevirt/__init__.py | 4 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 4 + kubevirt/models/v1_affinity.py | 62 +++++- kubevirt/models/v1_pod_affinity.py | 153 +++++++++++++++ kubevirt/models/v1_pod_affinity_term.py | 182 ++++++++++++++++++ kubevirt/models/v1_pod_anti_affinity.py | 153 +++++++++++++++ .../models/v1_weighted_pod_affinity_term.py | 155 +++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_pod_affinity.py | 44 +++++ test/test_v1_pod_affinity_term.py | 44 +++++ test/test_v1_pod_anti_affinity.py | 44 +++++ test/test_v1_weighted_pod_affinity_term.py | 44 +++++ 23 files changed, 955 insertions(+), 9 deletions(-) create mode 100644 docs/V1PodAffinity.md create mode 100644 docs/V1PodAffinityTerm.md create mode 100644 docs/V1PodAntiAffinity.md create mode 100644 docs/V1WeightedPodAffinityTerm.md create mode 100644 kubevirt/models/v1_pod_affinity.py create mode 100644 kubevirt/models/v1_pod_affinity_term.py create mode 100644 kubevirt/models/v1_pod_anti_affinity.py create mode 100644 kubevirt/models/v1_weighted_pod_affinity_term.py create mode 100644 test/test_v1_pod_affinity.py create mode 100644 test/test_v1_pod_affinity_term.py create mode 100644 test/test_v1_pod_anti_affinity.py create mode 100644 test/test_v1_weighted_pod_affinity_term.py diff --git a/README.md b/README.md index 1d05b87a..5ded1130 100644 --- a/README.md +++ b/README.md @@ -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: v0.5.0-245-ga8300764 +- Package version: v0.6.0-32-g49663421 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -180,6 +180,9 @@ Class | Method | HTTP request | Description - [V1OwnerReference](docs/V1OwnerReference.md) - [V1PITTimer](docs/V1PITTimer.md) - [V1PersistentVolumeClaimVolumeSource](docs/V1PersistentVolumeClaimVolumeSource.md) + - [V1PodAffinity](docs/V1PodAffinity.md) + - [V1PodAffinityTerm](docs/V1PodAffinityTerm.md) + - [V1PodAntiAffinity](docs/V1PodAntiAffinity.md) - [V1Preconditions](docs/V1Preconditions.md) - [V1PreferredSchedulingTerm](docs/V1PreferredSchedulingTerm.md) - [V1RTCTimer](docs/V1RTCTimer.md) @@ -208,6 +211,7 @@ Class | Method | HTTP request | Description - [V1Volume](docs/V1Volume.md) - [V1WatchEvent](docs/V1WatchEvent.md) - [V1Watchdog](docs/V1Watchdog.md) + - [V1WeightedPodAffinityTerm](docs/V1WeightedPodAffinityTerm.md) ## Documentation For Authorization diff --git a/docs/V1Affinity.md b/docs/V1Affinity.md index 1e457ba1..93ab85f0 100644 --- a/docs/V1Affinity.md +++ b/docs/V1Affinity.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **node_affinity** | [**V1NodeAffinity**](V1NodeAffinity.md) | Node affinity support | [optional] +**pod_affinity** | [**V1PodAffinity**](V1PodAffinity.md) | Pod affinity support | [optional] +**pod_anti_affinity** | [**V1PodAntiAffinity**](V1PodAntiAffinity.md) | Pod anti-affinity support | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1PodAffinity.md b/docs/V1PodAffinity.md new file mode 100644 index 00000000..93672b73 --- /dev/null +++ b/docs/V1PodAffinity.md @@ -0,0 +1,11 @@ +# V1PodAffinity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferred_during_scheduling_ignored_during_execution** | [**list[V1WeightedPodAffinityTerm]**](V1WeightedPodAffinityTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. | [optional] +**required_during_scheduling_ignored_during_execution** | [**list[V1PodAffinityTerm]**](V1PodAffinityTerm.md) | If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PodAffinityTerm.md b/docs/V1PodAffinityTerm.md new file mode 100644 index 00000000..100df314 --- /dev/null +++ b/docs/V1PodAffinityTerm.md @@ -0,0 +1,12 @@ +# V1PodAffinityTerm + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**label_selector** | [**V1LabelSelector**](V1LabelSelector.md) | A label query over a set of resources, in this case pods. | [optional] +**namespaces** | **list[str]** | namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\" | [optional] +**topology_key** | **str** | This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PodAntiAffinity.md b/docs/V1PodAntiAffinity.md new file mode 100644 index 00000000..2377cf4a --- /dev/null +++ b/docs/V1PodAntiAffinity.md @@ -0,0 +1,11 @@ +# V1PodAntiAffinity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferred_during_scheduling_ignored_during_execution** | [**list[V1WeightedPodAffinityTerm]**](V1WeightedPodAffinityTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. | [optional] +**required_during_scheduling_ignored_during_execution** | [**list[V1PodAffinityTerm]**](V1PodAffinityTerm.md) | If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1WeightedPodAffinityTerm.md b/docs/V1WeightedPodAffinityTerm.md new file mode 100644 index 00000000..9d92fe55 --- /dev/null +++ b/docs/V1WeightedPodAffinityTerm.md @@ -0,0 +1,11 @@ +# V1WeightedPodAffinityTerm + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pod_affinity_term** | [**V1PodAffinityTerm**](V1PodAffinityTerm.md) | Required. A pod affinity term, associated with the corresponding weight. | +**weight** | **int** | weight associated with matching the corresponding podAffinityTerm, in the range 1-100. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index a0bbfd27..a63af3aa 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.5.0-245-ga8300764" + release_note="Auto-generated client v0.6.0-32-g49663421" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 7f9917a0..973c5fd5 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -161,6 +161,15 @@ [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_persistent_volume_claim_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_persistent_volume_claim_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PersistentVolumeClaimVolumeSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_pod_affinity.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pod_affinity.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PodAffinity.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_pod_affinity_term.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pod_affinity_term.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PodAffinityTerm.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_pod_anti_affinity.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pod_anti_affinity.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PodAntiAffinity.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_preconditions.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_preconditions.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Preconditions.md @@ -245,6 +254,9 @@ [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Watchdog.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_weighted_pod_affinity_term.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_weighted_pod_affinity_term.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1WeightedPodAffinityTerm.md [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_group_0` [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index b5b04186..9735457f 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -67,6 +67,9 @@ from .models.v1_owner_reference import V1OwnerReference from .models.v1_pit_timer import V1PITTimer from .models.v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource +from .models.v1_pod_affinity import V1PodAffinity +from .models.v1_pod_affinity_term import V1PodAffinityTerm +from .models.v1_pod_anti_affinity import V1PodAntiAffinity from .models.v1_preconditions import V1Preconditions from .models.v1_preferred_scheduling_term import V1PreferredSchedulingTerm from .models.v1_rtc_timer import V1RTCTimer @@ -95,6 +98,7 @@ from .models.v1_volume import V1Volume from .models.v1_watch_event import V1WatchEvent from .models.v1_watchdog import V1Watchdog +from .models.v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm # import apis into sdk package from .apis.default_api import DefaultApi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 17e798e0..b9235d82 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.5.0-245-ga8300764/python' + self.user_agent = 'Swagger-Codegen/v0.6.0-32-g49663421/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 670c37f0..6f9f38d0 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.5.0-245-ga8300764".\ + "SDK Package Version: v0.6.0-32-g49663421".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 7f9d9908..4dc69c90 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -67,6 +67,9 @@ from .v1_owner_reference import V1OwnerReference from .v1_pit_timer import V1PITTimer from .v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource +from .v1_pod_affinity import V1PodAffinity +from .v1_pod_affinity_term import V1PodAffinityTerm +from .v1_pod_anti_affinity import V1PodAntiAffinity from .v1_preconditions import V1Preconditions from .v1_preferred_scheduling_term import V1PreferredSchedulingTerm from .v1_rtc_timer import V1RTCTimer @@ -95,3 +98,4 @@ from .v1_volume import V1Volume from .v1_watch_event import V1WatchEvent from .v1_watchdog import V1Watchdog +from .v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm diff --git a/kubevirt/models/v1_affinity.py b/kubevirt/models/v1_affinity.py index 3a853b9f..d3e1e738 100644 --- a/kubevirt/models/v1_affinity.py +++ b/kubevirt/models/v1_affinity.py @@ -31,22 +31,32 @@ class V1Affinity(object): and the value is json key in definition. """ swagger_types = { - 'node_affinity': 'V1NodeAffinity' + 'node_affinity': 'V1NodeAffinity', + 'pod_affinity': 'V1PodAffinity', + 'pod_anti_affinity': 'V1PodAntiAffinity' } attribute_map = { - 'node_affinity': 'nodeAffinity' + 'node_affinity': 'nodeAffinity', + 'pod_affinity': 'podAffinity', + 'pod_anti_affinity': 'podAntiAffinity' } - def __init__(self, node_affinity=None): + def __init__(self, node_affinity=None, pod_affinity=None, pod_anti_affinity=None): """ V1Affinity - a model defined in Swagger """ self._node_affinity = None + self._pod_affinity = None + self._pod_anti_affinity = None if node_affinity is not None: self.node_affinity = node_affinity + if pod_affinity is not None: + self.pod_affinity = pod_affinity + if pod_anti_affinity is not None: + self.pod_anti_affinity = pod_anti_affinity @property def node_affinity(self): @@ -71,6 +81,52 @@ def node_affinity(self, node_affinity): self._node_affinity = node_affinity + @property + def pod_affinity(self): + """ + Gets the pod_affinity of this V1Affinity. + Pod affinity support + + :return: The pod_affinity of this V1Affinity. + :rtype: V1PodAffinity + """ + return self._pod_affinity + + @pod_affinity.setter + def pod_affinity(self, pod_affinity): + """ + Sets the pod_affinity of this V1Affinity. + Pod affinity support + + :param pod_affinity: The pod_affinity of this V1Affinity. + :type: V1PodAffinity + """ + + self._pod_affinity = pod_affinity + + @property + def pod_anti_affinity(self): + """ + Gets the pod_anti_affinity of this V1Affinity. + Pod anti-affinity support + + :return: The pod_anti_affinity of this V1Affinity. + :rtype: V1PodAntiAffinity + """ + return self._pod_anti_affinity + + @pod_anti_affinity.setter + def pod_anti_affinity(self, pod_anti_affinity): + """ + Sets the pod_anti_affinity of this V1Affinity. + Pod anti-affinity support + + :param pod_anti_affinity: The pod_anti_affinity of this V1Affinity. + :type: V1PodAntiAffinity + """ + + self._pod_anti_affinity = pod_anti_affinity + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_pod_affinity.py b/kubevirt/models/v1_pod_affinity.py new file mode 100644 index 00000000..8b8dcc47 --- /dev/null +++ b/kubevirt/models/v1_pod_affinity.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PodAffinity(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'preferred_during_scheduling_ignored_during_execution': 'list[V1WeightedPodAffinityTerm]', + 'required_during_scheduling_ignored_during_execution': 'list[V1PodAffinityTerm]' + } + + attribute_map = { + 'preferred_during_scheduling_ignored_during_execution': 'preferredDuringSchedulingIgnoredDuringExecution', + 'required_during_scheduling_ignored_during_execution': 'requiredDuringSchedulingIgnoredDuringExecution' + } + + def __init__(self, preferred_during_scheduling_ignored_during_execution=None, required_during_scheduling_ignored_during_execution=None): + """ + V1PodAffinity - a model defined in Swagger + """ + + self._preferred_during_scheduling_ignored_during_execution = None + self._required_during_scheduling_ignored_during_execution = None + + if preferred_during_scheduling_ignored_during_execution is not None: + self.preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution + if required_during_scheduling_ignored_during_execution is not None: + self.required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution + + @property + def preferred_during_scheduling_ignored_during_execution(self): + """ + Gets the preferred_during_scheduling_ignored_during_execution of this V1PodAffinity. + The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + + :return: The preferred_during_scheduling_ignored_during_execution of this V1PodAffinity. + :rtype: list[V1WeightedPodAffinityTerm] + """ + return self._preferred_during_scheduling_ignored_during_execution + + @preferred_during_scheduling_ignored_during_execution.setter + def preferred_during_scheduling_ignored_during_execution(self, preferred_during_scheduling_ignored_during_execution): + """ + Sets the preferred_during_scheduling_ignored_during_execution of this V1PodAffinity. + The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + + :param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this V1PodAffinity. + :type: list[V1WeightedPodAffinityTerm] + """ + + self._preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution + + @property + def required_during_scheduling_ignored_during_execution(self): + """ + Gets the required_during_scheduling_ignored_during_execution of this V1PodAffinity. + If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + :return: The required_during_scheduling_ignored_during_execution of this V1PodAffinity. + :rtype: list[V1PodAffinityTerm] + """ + return self._required_during_scheduling_ignored_during_execution + + @required_during_scheduling_ignored_during_execution.setter + def required_during_scheduling_ignored_during_execution(self, required_during_scheduling_ignored_during_execution): + """ + Sets the required_during_scheduling_ignored_during_execution of this V1PodAffinity. + If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + :param required_during_scheduling_ignored_during_execution: The required_during_scheduling_ignored_during_execution of this V1PodAffinity. + :type: list[V1PodAffinityTerm] + """ + + self._required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1PodAffinity): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_pod_affinity_term.py b/kubevirt/models/v1_pod_affinity_term.py new file mode 100644 index 00000000..c17fb58d --- /dev/null +++ b/kubevirt/models/v1_pod_affinity_term.py @@ -0,0 +1,182 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PodAffinityTerm(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'label_selector': 'V1LabelSelector', + 'namespaces': 'list[str]', + 'topology_key': 'str' + } + + attribute_map = { + 'label_selector': 'labelSelector', + 'namespaces': 'namespaces', + 'topology_key': 'topologyKey' + } + + def __init__(self, label_selector=None, namespaces=None, topology_key=None): + """ + V1PodAffinityTerm - a model defined in Swagger + """ + + self._label_selector = None + self._namespaces = None + self._topology_key = None + + if label_selector is not None: + self.label_selector = label_selector + if namespaces is not None: + self.namespaces = namespaces + self.topology_key = topology_key + + @property + def label_selector(self): + """ + Gets the label_selector of this V1PodAffinityTerm. + A label query over a set of resources, in this case pods. + + :return: The label_selector of this V1PodAffinityTerm. + :rtype: V1LabelSelector + """ + return self._label_selector + + @label_selector.setter + def label_selector(self, label_selector): + """ + Sets the label_selector of this V1PodAffinityTerm. + A label query over a set of resources, in this case pods. + + :param label_selector: The label_selector of this V1PodAffinityTerm. + :type: V1LabelSelector + """ + + self._label_selector = label_selector + + @property + def namespaces(self): + """ + Gets the namespaces of this V1PodAffinityTerm. + namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\" + + :return: The namespaces of this V1PodAffinityTerm. + :rtype: list[str] + """ + return self._namespaces + + @namespaces.setter + def namespaces(self, namespaces): + """ + Sets the namespaces of this V1PodAffinityTerm. + namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\" + + :param namespaces: The namespaces of this V1PodAffinityTerm. + :type: list[str] + """ + + self._namespaces = namespaces + + @property + def topology_key(self): + """ + Gets the topology_key of this V1PodAffinityTerm. + This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + :return: The topology_key of this V1PodAffinityTerm. + :rtype: str + """ + return self._topology_key + + @topology_key.setter + def topology_key(self, topology_key): + """ + Sets the topology_key of this V1PodAffinityTerm. + This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + :param topology_key: The topology_key of this V1PodAffinityTerm. + :type: str + """ + if topology_key is None: + raise ValueError("Invalid value for `topology_key`, must not be `None`") + + self._topology_key = topology_key + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1PodAffinityTerm): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_pod_anti_affinity.py b/kubevirt/models/v1_pod_anti_affinity.py new file mode 100644 index 00000000..783e0867 --- /dev/null +++ b/kubevirt/models/v1_pod_anti_affinity.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PodAntiAffinity(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'preferred_during_scheduling_ignored_during_execution': 'list[V1WeightedPodAffinityTerm]', + 'required_during_scheduling_ignored_during_execution': 'list[V1PodAffinityTerm]' + } + + attribute_map = { + 'preferred_during_scheduling_ignored_during_execution': 'preferredDuringSchedulingIgnoredDuringExecution', + 'required_during_scheduling_ignored_during_execution': 'requiredDuringSchedulingIgnoredDuringExecution' + } + + def __init__(self, preferred_during_scheduling_ignored_during_execution=None, required_during_scheduling_ignored_during_execution=None): + """ + V1PodAntiAffinity - a model defined in Swagger + """ + + self._preferred_during_scheduling_ignored_during_execution = None + self._required_during_scheduling_ignored_during_execution = None + + if preferred_during_scheduling_ignored_during_execution is not None: + self.preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution + if required_during_scheduling_ignored_during_execution is not None: + self.required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution + + @property + def preferred_during_scheduling_ignored_during_execution(self): + """ + Gets the preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. + The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + + :return: The preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. + :rtype: list[V1WeightedPodAffinityTerm] + """ + return self._preferred_during_scheduling_ignored_during_execution + + @preferred_during_scheduling_ignored_during_execution.setter + def preferred_during_scheduling_ignored_during_execution(self, preferred_during_scheduling_ignored_during_execution): + """ + Sets the preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. + The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + + :param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. + :type: list[V1WeightedPodAffinityTerm] + """ + + self._preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution + + @property + def required_during_scheduling_ignored_during_execution(self): + """ + Gets the required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. + If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + :return: The required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. + :rtype: list[V1PodAffinityTerm] + """ + return self._required_during_scheduling_ignored_during_execution + + @required_during_scheduling_ignored_during_execution.setter + def required_during_scheduling_ignored_during_execution(self, required_during_scheduling_ignored_during_execution): + """ + Sets the required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. + If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + :param required_during_scheduling_ignored_during_execution: The required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. + :type: list[V1PodAffinityTerm] + """ + + self._required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1PodAntiAffinity): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_weighted_pod_affinity_term.py b/kubevirt/models/v1_weighted_pod_affinity_term.py new file mode 100644 index 00000000..1d007a37 --- /dev/null +++ b/kubevirt/models/v1_weighted_pod_affinity_term.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1WeightedPodAffinityTerm(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'pod_affinity_term': 'V1PodAffinityTerm', + 'weight': 'int' + } + + attribute_map = { + 'pod_affinity_term': 'podAffinityTerm', + 'weight': 'weight' + } + + def __init__(self, pod_affinity_term=None, weight=None): + """ + V1WeightedPodAffinityTerm - a model defined in Swagger + """ + + self._pod_affinity_term = None + self._weight = None + + self.pod_affinity_term = pod_affinity_term + self.weight = weight + + @property + def pod_affinity_term(self): + """ + Gets the pod_affinity_term of this V1WeightedPodAffinityTerm. + Required. A pod affinity term, associated with the corresponding weight. + + :return: The pod_affinity_term of this V1WeightedPodAffinityTerm. + :rtype: V1PodAffinityTerm + """ + return self._pod_affinity_term + + @pod_affinity_term.setter + def pod_affinity_term(self, pod_affinity_term): + """ + Sets the pod_affinity_term of this V1WeightedPodAffinityTerm. + Required. A pod affinity term, associated with the corresponding weight. + + :param pod_affinity_term: The pod_affinity_term of this V1WeightedPodAffinityTerm. + :type: V1PodAffinityTerm + """ + if pod_affinity_term is None: + raise ValueError("Invalid value for `pod_affinity_term`, must not be `None`") + + self._pod_affinity_term = pod_affinity_term + + @property + def weight(self): + """ + Gets the weight of this V1WeightedPodAffinityTerm. + weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + :return: The weight of this V1WeightedPodAffinityTerm. + :rtype: int + """ + return self._weight + + @weight.setter + def weight(self, weight): + """ + Sets the weight of this V1WeightedPodAffinityTerm. + weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + :param weight: The weight of this V1WeightedPodAffinityTerm. + :type: int + """ + if weight is None: + raise ValueError("Invalid value for `weight`, must not be `None`") + + self._weight = weight + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1WeightedPodAffinityTerm): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 3afee450..33760900 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.5.0-245-ga8300764" +VERSION = "v0.6.0-32-g49663421" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 15b399e7..21164309 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.5.0-245-ga8300764" +"packageVersion": "v0.6.0-32-g49663421" } diff --git a/test/test_v1_pod_affinity.py b/test/test_v1_pod_affinity.py new file mode 100644 index 00000000..1737b5ce --- /dev/null +++ b/test/test_v1_pod_affinity.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_pod_affinity import V1PodAffinity + + +class TestV1PodAffinity(unittest.TestCase): + """ V1PodAffinity unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PodAffinity(self): + """ + Test V1PodAffinity + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_pod_affinity.V1PodAffinity() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_pod_affinity_term.py b/test/test_v1_pod_affinity_term.py new file mode 100644 index 00000000..c9b33603 --- /dev/null +++ b/test/test_v1_pod_affinity_term.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_pod_affinity_term import V1PodAffinityTerm + + +class TestV1PodAffinityTerm(unittest.TestCase): + """ V1PodAffinityTerm unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PodAffinityTerm(self): + """ + Test V1PodAffinityTerm + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_pod_affinity_term.V1PodAffinityTerm() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_pod_anti_affinity.py b/test/test_v1_pod_anti_affinity.py new file mode 100644 index 00000000..48777f3f --- /dev/null +++ b/test/test_v1_pod_anti_affinity.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_pod_anti_affinity import V1PodAntiAffinity + + +class TestV1PodAntiAffinity(unittest.TestCase): + """ V1PodAntiAffinity unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PodAntiAffinity(self): + """ + Test V1PodAntiAffinity + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_pod_anti_affinity.V1PodAntiAffinity() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_weighted_pod_affinity_term.py b/test/test_v1_weighted_pod_affinity_term.py new file mode 100644 index 00000000..56d004eb --- /dev/null +++ b/test/test_v1_weighted_pod_affinity_term.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm + + +class TestV1WeightedPodAffinityTerm(unittest.TestCase): + """ V1WeightedPodAffinityTerm unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1WeightedPodAffinityTerm(self): + """ + Test V1WeightedPodAffinityTerm + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_weighted_pod_affinity_term.V1WeightedPodAffinityTerm() + pass + + +if __name__ == '__main__': + unittest.main() From 4a9a84822412a591d05cf4eaeedd152216721a8f Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 12 Jun 2018 21:16:32 +0000 Subject: [PATCH 017/521] Client Python update by Travis Build 3646 --- README.md | 126 +- docs/DefaultApi.md | 662 +++++----- docs/V1CPU.md | 2 +- docs/V1Clock.md | 2 +- docs/V1Devices.md | 4 +- docs/V1Disk.md | 8 +- docs/V1DomainSpec.md | 6 +- docs/V1EphemeralVolumeSource.md | 2 +- docs/V1FeatureHyperv.md | 2 +- docs/V1FeatureVendorID.md | 2 +- docs/V1Firmware.md | 2 +- docs/V1Machine.md | 2 +- docs/V1OfflineVirtualMachineSpec.md | 11 - docs/V1OfflineVirtualMachineStatus.md | 12 - docs/V1ResourceRequirements.md | 2 +- docs/V1VirtualMachine.md | 4 +- ...Machine.md => V1VirtualMachineInstance.md} | 6 +- ...d => V1VirtualMachineInstanceCondition.md} | 2 +- ...ist.md => V1VirtualMachineInstanceList.md} | 4 +- ...VirtualMachineInstanceNetworkInterface.md} | 2 +- ...t.md => V1VirtualMachineInstancePreset.md} | 4 +- ... => V1VirtualMachineInstancePresetList.md} | 4 +- ... => V1VirtualMachineInstancePresetSpec.md} | 6 +- ... => V1VirtualMachineInstanceReplicaSet.md} | 6 +- ...tualMachineInstanceReplicaSetCondition.md} | 2 +- ...V1VirtualMachineInstanceReplicaSetList.md} | 6 +- ...V1VirtualMachineInstanceReplicaSetSpec.md} | 4 +- ...VirtualMachineInstanceReplicaSetStatus.md} | 4 +- docs/V1VirtualMachineInstanceSpec.md | 17 + docs/V1VirtualMachineInstanceStatus.md | 13 + ...> V1VirtualMachineInstanceTemplateSpec.md} | 4 +- docs/V1VirtualMachineList.md | 4 +- docs/V1VirtualMachineSpec.md | 10 +- docs/V1VirtualMachineStatus.md | 7 +- docs/V1Volume.md | 8 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 90 +- kubevirt/__init__.py | 30 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 1174 ++++++++--------- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 30 +- kubevirt/models/v1_clock.py | 4 +- kubevirt/models/v1_cpu.py | 4 +- kubevirt/models/v1_devices.py | 8 +- kubevirt/models/v1_disk.py | 16 +- kubevirt/models/v1_domain_spec.py | 12 +- kubevirt/models/v1_ephemeral_volume_source.py | 4 +- kubevirt/models/v1_feature_hyperv.py | 4 +- kubevirt/models/v1_feature_vendor_id.py | 4 +- kubevirt/models/v1_firmware.py | 4 +- kubevirt/models/v1_machine.py | 4 +- .../models/v1_offline_virtual_machine_spec.py | 155 --- .../v1_offline_virtual_machine_status.py | 181 --- kubevirt/models/v1_resource_requirements.py | 4 +- kubevirt/models/v1_virtual_machine.py | 8 +- ..._set.py => v1_virtual_machine_instance.py} | 66 +- ... v1_virtual_machine_instance_condition.py} | 54 +- ...py => v1_virtual_machine_instance_list.py} | 44 +- ...ual_machine_instance_network_interface.py} | 22 +- ... => v1_virtual_machine_instance_preset.py} | 48 +- ...1_virtual_machine_instance_preset_list.py} | 44 +- ...1_virtual_machine_instance_preset_spec.py} | 30 +- ...1_virtual_machine_instance_replica_set.py} | 66 +- ...machine_instance_replica_set_condition.py} | 54 +- ...tual_machine_instance_replica_set_list.py} | 51 +- ...tual_machine_instance_replica_set_spec.py} | 44 +- ...al_machine_instance_replica_set_status.py} | 36 +- .../v1_virtual_machine_instance_spec.py | 322 +++++ .../v1_virtual_machine_instance_status.py | 209 +++ ...virtual_machine_instance_template_spec.py} | 32 +- kubevirt/models/v1_virtual_machine_list.py | 7 +- kubevirt/models/v1_virtual_machine_spec.py | 245 +--- kubevirt/models/v1_virtual_machine_status.py | 106 +- kubevirt/models/v1_volume.py | 16 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 216 +-- ...py => test_v1_virtual_machine_instance.py} | 12 +- ..._v1_virtual_machine_instance_condition.py} | 12 +- ... test_v1_virtual_machine_instance_list.py} | 12 +- ...tual_machine_instance_network_interface.py | 44 + ...est_v1_virtual_machine_instance_preset.py} | 12 +- ...1_virtual_machine_instance_preset_list.py} | 12 +- ...v1_virtual_machine_instance_preset_spec.py | 44 + ...v1_virtual_machine_instance_replica_set.py | 44 + ..._machine_instance_replica_set_condition.py | 44 + ...rtual_machine_instance_replica_set_list.py | 44 + ...rtual_machine_instance_replica_set_spec.py | 44 + ...ual_machine_instance_replica_set_status.py | 44 + ... test_v1_virtual_machine_instance_spec.py} | 12 +- ...est_v1_virtual_machine_instance_status.py} | 12 +- ..._virtual_machine_instance_template_spec.py | 44 + ...st_v1_virtual_machine_network_interface.py | 44 - test/test_v1_virtual_machine_preset_list.py | 44 - test/test_v1_virtual_machine_preset_spec.py | 44 - test/test_v1_virtual_machine_replica_set.py | 44 - ...est_v1_virtual_machine_replica_set_list.py | 44 - test/test_v1_vm_replica_set_condition.py | 44 - test/test_v1_vm_replica_set_spec.py | 44 - test/test_v1_vm_replica_set_status.py | 44 - 101 files changed, 2604 insertions(+), 2604 deletions(-) delete mode 100644 docs/V1OfflineVirtualMachineSpec.md delete mode 100644 docs/V1OfflineVirtualMachineStatus.md rename docs/{V1OfflineVirtualMachine.md => V1VirtualMachineInstance.md} (68%) rename docs/{V1OfflineVirtualMachineCondition.md => V1VirtualMachineInstanceCondition.md} (93%) rename docs/{V1VirtualMachinePresetList.md => V1VirtualMachineInstanceList.md} (89%) rename docs/{V1VirtualMachineNetworkInterface.md => V1VirtualMachineInstanceNetworkInterface.md} (91%) rename docs/{V1VirtualMachinePreset.md => V1VirtualMachineInstancePreset.md} (81%) rename docs/{V1VirtualMachineReplicaSetList.md => V1VirtualMachineInstancePresetList.md} (87%) rename docs/{V1VirtualMachinePresetSpec.md => V1VirtualMachineInstancePresetSpec.md} (70%) rename docs/{V1VirtualMachineReplicaSet.md => V1VirtualMachineInstanceReplicaSet.md} (66%) rename docs/{V1VMReplicaSetCondition.md => V1VirtualMachineInstanceReplicaSetCondition.md} (91%) rename docs/{V1OfflineVirtualMachineList.md => V1VirtualMachineInstanceReplicaSetList.md} (81%) rename docs/{V1VMReplicaSetSpec.md => V1VirtualMachineInstanceReplicaSetSpec.md} (78%) rename docs/{V1VMReplicaSetStatus.md => V1VirtualMachineInstanceReplicaSetStatus.md} (74%) create mode 100644 docs/V1VirtualMachineInstanceSpec.md create mode 100644 docs/V1VirtualMachineInstanceStatus.md rename docs/{V1VMTemplateSpec.md => V1VirtualMachineInstanceTemplateSpec.md} (61%) delete mode 100644 kubevirt/models/v1_offline_virtual_machine_spec.py delete mode 100644 kubevirt/models/v1_offline_virtual_machine_status.py rename kubevirt/models/{v1_virtual_machine_replica_set.py => v1_virtual_machine_instance.py} (71%) rename kubevirt/models/{v1_offline_virtual_machine_condition.py => v1_virtual_machine_instance_condition.py} (73%) rename kubevirt/models/{v1_virtual_machine_preset_list.py => v1_virtual_machine_instance_list.py} (79%) rename kubevirt/models/{v1_virtual_machine_network_interface.py => v1_virtual_machine_instance_network_interface.py} (81%) rename kubevirt/models/{v1_virtual_machine_preset.py => v1_virtual_machine_instance_preset.py} (76%) rename kubevirt/models/{v1_virtual_machine_replica_set_list.py => v1_virtual_machine_instance_preset_list.py} (77%) rename kubevirt/models/{v1_virtual_machine_preset_spec.py => v1_virtual_machine_instance_preset_spec.py} (78%) rename kubevirt/models/{v1_offline_virtual_machine.py => v1_virtual_machine_instance_replica_set.py} (68%) rename kubevirt/models/{v1_vm_replica_set_condition.py => v1_virtual_machine_instance_replica_set_condition.py} (70%) rename kubevirt/models/{v1_offline_virtual_machine_list.py => v1_virtual_machine_instance_replica_set_list.py} (74%) rename kubevirt/models/{v1_vm_replica_set_spec.py => v1_virtual_machine_instance_replica_set_spec.py} (74%) rename kubevirt/models/{v1_vm_replica_set_status.py => v1_virtual_machine_instance_replica_set_status.py} (73%) create mode 100644 kubevirt/models/v1_virtual_machine_instance_spec.py create mode 100644 kubevirt/models/v1_virtual_machine_instance_status.py rename kubevirt/models/{v1_vm_template_spec.py => v1_virtual_machine_instance_template_spec.py} (73%) rename test/{test_v1_offline_virtual_machine.py => test_v1_virtual_machine_instance.py} (63%) rename test/{test_v1_offline_virtual_machine_condition.py => test_v1_virtual_machine_instance_condition.py} (58%) rename test/{test_v1_virtual_machine_preset.py => test_v1_virtual_machine_instance_list.py} (61%) create mode 100644 test/test_v1_virtual_machine_instance_network_interface.py rename test/{test_v1_offline_virtual_machine_status.py => test_v1_virtual_machine_instance_preset.py} (63%) rename test/{test_v1_vm_template_spec.py => test_v1_virtual_machine_instance_preset_list.py} (58%) create mode 100644 test/test_v1_virtual_machine_instance_preset_spec.py create mode 100644 test/test_v1_virtual_machine_instance_replica_set.py create mode 100644 test/test_v1_virtual_machine_instance_replica_set_condition.py create mode 100644 test/test_v1_virtual_machine_instance_replica_set_list.py create mode 100644 test/test_v1_virtual_machine_instance_replica_set_spec.py create mode 100644 test/test_v1_virtual_machine_instance_replica_set_status.py rename test/{test_v1_offline_virtual_machine_list.py => test_v1_virtual_machine_instance_spec.py} (61%) rename test/{test_v1_offline_virtual_machine_spec.py => test_v1_virtual_machine_instance_status.py} (63%) create mode 100644 test/test_v1_virtual_machine_instance_template_spec.py delete mode 100644 test/test_v1_virtual_machine_network_interface.py delete mode 100644 test/test_v1_virtual_machine_preset_list.py delete mode 100644 test/test_v1_virtual_machine_preset_spec.py delete mode 100644 test/test_v1_virtual_machine_replica_set.py delete mode 100644 test/test_v1_virtual_machine_replica_set_list.py delete mode 100644 test/test_v1_vm_replica_set_condition.py delete mode 100644 test/test_v1_vm_replica_set_spec.py delete mode 100644 test/test_v1_vm_replica_set_status.py diff --git a/README.md b/README.md index 5ded1130..3500a319 100644 --- a/README.md +++ b/README.md @@ -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: v0.6.0-32-g49663421 +- Package version: v0.6.0-52-gf7751045 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -73,56 +73,56 @@ All URIs are relative to *https://localhost* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*DefaultApi* | [**check_health**](docs/DefaultApi.md#check_health) | **GET** /apis/kubevirt.io/v1alpha1/healthz | Health endpoint -*DefaultApi* | [**console**](docs/DefaultApi.md#console) | **GET** /apis/subresources.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}/console | Open a websocket connection to a serial console on the specified VM. -*DefaultApi* | [**create_namespaced_offline_virtual_machine**](docs/DefaultApi.md#create_namespaced_offline_virtual_machine) | **POST** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines | Create a OfflineVirtualMachine object. -*DefaultApi* | [**create_namespaced_virtual_machine**](docs/DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines | Create a VirtualMachine object. -*DefaultApi* | [**create_namespaced_virtual_machine_preset**](docs/DefaultApi.md#create_namespaced_virtual_machine_preset) | **POST** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets | Create a VirtualMachinePreset object. -*DefaultApi* | [**create_namespaced_virtual_machine_replica_set**](docs/DefaultApi.md#create_namespaced_virtual_machine_replica_set) | **POST** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets | Create a VirtualMachineReplicaSet object. -*DefaultApi* | [**delete_collection_namespaced_offline_virtual_machine**](docs/DefaultApi.md#delete_collection_namespaced_offline_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines | Delete a collection of OfflineVirtualMachine objects. -*DefaultApi* | [**delete_collection_namespaced_virtual_machine**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines | Delete a collection of VirtualMachine objects. -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_preset**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_preset) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets | Delete a collection of VirtualMachinePreset objects. -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_replica_set**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets | Delete a collection of VirtualMachineReplicaSet objects. -*DefaultApi* | [**delete_namespaced_offline_virtual_machine**](docs/DefaultApi.md#delete_namespaced_offline_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines/{name} | Delete a OfflineVirtualMachine object. -*DefaultApi* | [**delete_namespaced_virtual_machine**](docs/DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name} | Delete a VirtualMachine object. -*DefaultApi* | [**delete_namespaced_virtual_machine_preset**](docs/DefaultApi.md#delete_namespaced_virtual_machine_preset) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name} | Delete a VirtualMachinePreset object. -*DefaultApi* | [**delete_namespaced_virtual_machine_replica_set**](docs/DefaultApi.md#delete_namespaced_virtual_machine_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets/{name} | Delete a VirtualMachineReplicaSet object. +*DefaultApi* | [**check_health**](docs/DefaultApi.md#check_health) | **GET** /apis/kubevirt.io/v1alpha2/healthz | Health endpoint +*DefaultApi* | [**console**](docs/DefaultApi.md#console) | **GET** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/console | Open a websocket connection to a serial console on the specified VirtualMachineInstance. +*DefaultApi* | [**create_namespaced_virtual_machine**](docs/DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines | Create a VirtualMachine object. +*DefaultApi* | [**create_namespaced_virtual_machine_instance**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances | Create a VirtualMachineInstance object. +*DefaultApi* | [**create_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets | Create a VirtualMachineInstancePreset object. +*DefaultApi* | [**create_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets | Create a VirtualMachineInstanceReplicaSet object. +*DefaultApi* | [**delete_collection_namespaced_virtual_machine**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines | Delete a collection of VirtualMachine objects. +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances | Delete a collection of VirtualMachineInstance objects. +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets | Delete a collection of VirtualMachineInstancePreset objects. +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets | Delete a collection of VirtualMachineInstanceReplicaSet objects. +*DefaultApi* | [**delete_namespaced_virtual_machine**](docs/DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name} | Delete a VirtualMachine object. +*DefaultApi* | [**delete_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name} | Delete a VirtualMachineInstance object. +*DefaultApi* | [**delete_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Delete a VirtualMachineInstancePreset object. +*DefaultApi* | [**delete_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Delete a VirtualMachineInstanceReplicaSet object. *DefaultApi* | [**get_api_group**](docs/DefaultApi.md#get_api_group) | **GET** /apis | Get a KubeVirt API GroupList *DefaultApi* | [**get_api_group_0**](docs/DefaultApi.md#get_api_group_0) | **GET** /apis/kubevirt.io | Get a KubeVirt API group *DefaultApi* | [**get_api_group_1**](docs/DefaultApi.md#get_api_group_1) | **GET** /apis/subresources.kubevirt.io | Get a KubeVirt API Group -*DefaultApi* | [**get_api_resources**](docs/DefaultApi.md#get_api_resources) | **GET** /apis/kubevirt.io/v1alpha1 | Get KubeVirt API Resources -*DefaultApi* | [**get_api_resources_0**](docs/DefaultApi.md#get_api_resources_0) | **GET** /apis/subresources.kubevirt.io/v1alpha1 | Get a KubeVirt API resources -*DefaultApi* | [**list_namespaced_offline_virtual_machine**](docs/DefaultApi.md#list_namespaced_offline_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines | Get a list of OfflineVirtualMachine objects. -*DefaultApi* | [**list_namespaced_virtual_machine**](docs/DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines | Get a list of VirtualMachine objects. -*DefaultApi* | [**list_namespaced_virtual_machine_preset**](docs/DefaultApi.md#list_namespaced_virtual_machine_preset) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets | Get a list of VirtualMachinePreset objects. -*DefaultApi* | [**list_namespaced_virtual_machine_replica_set**](docs/DefaultApi.md#list_namespaced_virtual_machine_replica_set) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets | Get a list of VirtualMachineReplicaSet objects. -*DefaultApi* | [**list_offline_virtual_machine_for_all_namespaces**](docs/DefaultApi.md#list_offline_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/offlinevirtualmachines | Get a list of all OfflineVirtualMachine objects. -*DefaultApi* | [**list_virtual_machine_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/virtualmachines | Get a list of all VirtualMachine objects. -*DefaultApi* | [**list_virtual_machine_preset_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/virtualmachinepresets | Get a list of all VirtualMachinePreset objects. -*DefaultApi* | [**list_virtual_machine_replica_set_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/virtualmachinereplicasets | Get a list of all VirtualMachineReplicaSet objects. -*DefaultApi* | [**patch_namespaced_offline_virtual_machine**](docs/DefaultApi.md#patch_namespaced_offline_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines/{name} | Patch a OfflineVirtualMachine object. -*DefaultApi* | [**patch_namespaced_virtual_machine**](docs/DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name} | Patch a VirtualMachine object. -*DefaultApi* | [**patch_namespaced_virtual_machine_preset**](docs/DefaultApi.md#patch_namespaced_virtual_machine_preset) | **PATCH** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name} | Patch a VirtualMachinePreset object. -*DefaultApi* | [**patch_namespaced_virtual_machine_replica_set**](docs/DefaultApi.md#patch_namespaced_virtual_machine_replica_set) | **PATCH** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets/{name} | Patch a VirtualMachineReplicaSet object. -*DefaultApi* | [**read_namespaced_offline_virtual_machine**](docs/DefaultApi.md#read_namespaced_offline_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines/{name} | Get a OfflineVirtualMachine object. -*DefaultApi* | [**read_namespaced_virtual_machine**](docs/DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name} | Get a VirtualMachine object. -*DefaultApi* | [**read_namespaced_virtual_machine_preset**](docs/DefaultApi.md#read_namespaced_virtual_machine_preset) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name} | Get a VirtualMachinePreset object. -*DefaultApi* | [**read_namespaced_virtual_machine_replica_set**](docs/DefaultApi.md#read_namespaced_virtual_machine_replica_set) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets/{name} | Get a VirtualMachineReplicaSet object. -*DefaultApi* | [**replace_namespaced_offline_virtual_machine**](docs/DefaultApi.md#replace_namespaced_offline_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines/{name} | Update a OfflineVirtualMachine object. -*DefaultApi* | [**replace_namespaced_virtual_machine**](docs/DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name} | Update a VirtualMachine object. -*DefaultApi* | [**replace_namespaced_virtual_machine_preset**](docs/DefaultApi.md#replace_namespaced_virtual_machine_preset) | **PUT** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name} | Update a VirtualMachinePreset object. -*DefaultApi* | [**replace_namespaced_virtual_machine_replica_set**](docs/DefaultApi.md#replace_namespaced_virtual_machine_replica_set) | **PUT** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets/{name} | Update a VirtualMachineReplicaSet object. -*DefaultApi* | [**test**](docs/DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}/test | Test endpoint verifying apiserver connectivity. -*DefaultApi* | [**version**](docs/DefaultApi.md#version) | **GET** /apis/subresources.kubevirt.io/v1alpha1/version | -*DefaultApi* | [**vnc**](docs/DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}/vnc | Open a websocket connection to connect to VNC on the specified VM. -*DefaultApi* | [**watch_namespaced_offline_virtual_machine**](docs/DefaultApi.md#watch_namespaced_offline_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/offlinevirtualmachines | Watch a OfflineVirtualMachine object. -*DefaultApi* | [**watch_namespaced_virtual_machine**](docs/DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachines | Watch a VirtualMachine object. -*DefaultApi* | [**watch_namespaced_virtual_machine_preset**](docs/DefaultApi.md#watch_namespaced_virtual_machine_preset) | **GET** /apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinepresets | Watch a VirtualMachinePreset object. -*DefaultApi* | [**watch_namespaced_virtual_machine_replica_set**](docs/DefaultApi.md#watch_namespaced_virtual_machine_replica_set) | **GET** /apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinereplicasets | Watch a VirtualMachineReplicaSet object. -*DefaultApi* | [**watch_offline_virtual_machine_list_for_all_namespaces**](docs/DefaultApi.md#watch_offline_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/watch/offlinevirtualmachines | Watch a OfflineVirtualMachineList object. -*DefaultApi* | [**watch_virtual_machine_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/watch/virtualmachines | Watch a VirtualMachineList object. -*DefaultApi* | [**watch_virtual_machine_preset_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/watch/virtualmachinepresets | Watch a VirtualMachinePresetList object. -*DefaultApi* | [**watch_virtual_machine_replica_set_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/watch/virtualmachinereplicasets | Watch a VirtualMachineReplicaSetList object. +*DefaultApi* | [**get_api_resources**](docs/DefaultApi.md#get_api_resources) | **GET** /apis/kubevirt.io/v1alpha2 | Get KubeVirt API Resources +*DefaultApi* | [**get_api_resources_0**](docs/DefaultApi.md#get_api_resources_0) | **GET** /apis/subresources.kubevirt.io/v1alpha2 | Get a KubeVirt API resources +*DefaultApi* | [**list_namespaced_virtual_machine**](docs/DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines | Get a list of VirtualMachine objects. +*DefaultApi* | [**list_namespaced_virtual_machine_instance**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances | Get a list of VirtualMachineInstance objects. +*DefaultApi* | [**list_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets | Get a list of VirtualMachineInstancePreset objects. +*DefaultApi* | [**list_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets | Get a list of VirtualMachineInstanceReplicaSet objects. +*DefaultApi* | [**list_virtual_machine_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/virtualmachines | Get a list of all VirtualMachine objects. +*DefaultApi* | [**list_virtual_machine_instance_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/virtualmachineinstances | Get a list of all VirtualMachineInstance objects. +*DefaultApi* | [**list_virtual_machine_instance_preset_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/virtualmachineinstancepresets | Get a list of all VirtualMachineInstancePreset objects. +*DefaultApi* | [**list_virtual_machine_instance_replica_set_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/virtualmachineinstancereplicasets | Get a list of all VirtualMachineInstanceReplicaSet objects. +*DefaultApi* | [**patch_namespaced_virtual_machine**](docs/DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name} | Patch a VirtualMachine object. +*DefaultApi* | [**patch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name} | Patch a VirtualMachineInstance object. +*DefaultApi* | [**patch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Patch a VirtualMachineInstancePreset object. +*DefaultApi* | [**patch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Patch a VirtualMachineInstanceReplicaSet object. +*DefaultApi* | [**read_namespaced_virtual_machine**](docs/DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name} | Get a VirtualMachine object. +*DefaultApi* | [**read_namespaced_virtual_machine_instance**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name} | Get a VirtualMachineInstance object. +*DefaultApi* | [**read_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Get a VirtualMachineInstancePreset object. +*DefaultApi* | [**read_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Get a VirtualMachineInstanceReplicaSet object. +*DefaultApi* | [**replace_namespaced_virtual_machine**](docs/DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name} | Update a VirtualMachine object. +*DefaultApi* | [**replace_namespaced_virtual_machine_instance**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name} | Update a VirtualMachineInstance object. +*DefaultApi* | [**replace_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Update a VirtualMachineInstancePreset object. +*DefaultApi* | [**replace_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Update a VirtualMachineInstanceReplicaSet object. +*DefaultApi* | [**test**](docs/DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/test | Test endpoint verifying apiserver connectivity. +*DefaultApi* | [**version**](docs/DefaultApi.md#version) | **GET** /apis/subresources.kubevirt.io/v1alpha2/version | +*DefaultApi* | [**vnc**](docs/DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/vnc | Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. +*DefaultApi* | [**watch_namespaced_virtual_machine**](docs/DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachines | Watch a VirtualMachine object. +*DefaultApi* | [**watch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstances | Watch a VirtualMachineInstance object. +*DefaultApi* | [**watch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstancepresets | Watch a VirtualMachineInstancePreset object. +*DefaultApi* | [**watch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstancereplicasets | Watch a VirtualMachineInstanceReplicaSet object. +*DefaultApi* | [**watch_virtual_machine_instance_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/watch/virtualmachineinstances | Watch a VirtualMachineInstanceList object. +*DefaultApi* | [**watch_virtual_machine_instance_preset_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/watch/virtualmachineinstancepresets | Watch a VirtualMachineInstancePresetList object. +*DefaultApi* | [**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/watch/virtualmachineinstancereplicasets | Watch a VirtualMachineInstanceReplicaSetList object. +*DefaultApi* | [**watch_virtual_machine_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/watch/virtualmachines | Watch a VirtualMachineList object. ## Documentation For Models @@ -172,11 +172,6 @@ Class | Method | HTTP request | Description - [V1NodeSelectorRequirement](docs/V1NodeSelectorRequirement.md) - [V1NodeSelectorTerm](docs/V1NodeSelectorTerm.md) - [V1ObjectMeta](docs/V1ObjectMeta.md) - - [V1OfflineVirtualMachine](docs/V1OfflineVirtualMachine.md) - - [V1OfflineVirtualMachineCondition](docs/V1OfflineVirtualMachineCondition.md) - - [V1OfflineVirtualMachineList](docs/V1OfflineVirtualMachineList.md) - - [V1OfflineVirtualMachineSpec](docs/V1OfflineVirtualMachineSpec.md) - - [V1OfflineVirtualMachineStatus](docs/V1OfflineVirtualMachineStatus.md) - [V1OwnerReference](docs/V1OwnerReference.md) - [V1PITTimer](docs/V1PITTimer.md) - [V1PersistentVolumeClaimVolumeSource](docs/V1PersistentVolumeClaimVolumeSource.md) @@ -193,19 +188,24 @@ Class | Method | HTTP request | Description - [V1StatusCause](docs/V1StatusCause.md) - [V1StatusDetails](docs/V1StatusDetails.md) - [V1Timer](docs/V1Timer.md) - - [V1VMReplicaSetCondition](docs/V1VMReplicaSetCondition.md) - - [V1VMReplicaSetSpec](docs/V1VMReplicaSetSpec.md) - - [V1VMReplicaSetStatus](docs/V1VMReplicaSetStatus.md) - - [V1VMTemplateSpec](docs/V1VMTemplateSpec.md) - [V1VirtualMachine](docs/V1VirtualMachine.md) - [V1VirtualMachineCondition](docs/V1VirtualMachineCondition.md) + - [V1VirtualMachineInstance](docs/V1VirtualMachineInstance.md) + - [V1VirtualMachineInstanceCondition](docs/V1VirtualMachineInstanceCondition.md) + - [V1VirtualMachineInstanceList](docs/V1VirtualMachineInstanceList.md) + - [V1VirtualMachineInstanceNetworkInterface](docs/V1VirtualMachineInstanceNetworkInterface.md) + - [V1VirtualMachineInstancePreset](docs/V1VirtualMachineInstancePreset.md) + - [V1VirtualMachineInstancePresetList](docs/V1VirtualMachineInstancePresetList.md) + - [V1VirtualMachineInstancePresetSpec](docs/V1VirtualMachineInstancePresetSpec.md) + - [V1VirtualMachineInstanceReplicaSet](docs/V1VirtualMachineInstanceReplicaSet.md) + - [V1VirtualMachineInstanceReplicaSetCondition](docs/V1VirtualMachineInstanceReplicaSetCondition.md) + - [V1VirtualMachineInstanceReplicaSetList](docs/V1VirtualMachineInstanceReplicaSetList.md) + - [V1VirtualMachineInstanceReplicaSetSpec](docs/V1VirtualMachineInstanceReplicaSetSpec.md) + - [V1VirtualMachineInstanceReplicaSetStatus](docs/V1VirtualMachineInstanceReplicaSetStatus.md) + - [V1VirtualMachineInstanceSpec](docs/V1VirtualMachineInstanceSpec.md) + - [V1VirtualMachineInstanceStatus](docs/V1VirtualMachineInstanceStatus.md) + - [V1VirtualMachineInstanceTemplateSpec](docs/V1VirtualMachineInstanceTemplateSpec.md) - [V1VirtualMachineList](docs/V1VirtualMachineList.md) - - [V1VirtualMachineNetworkInterface](docs/V1VirtualMachineNetworkInterface.md) - - [V1VirtualMachinePreset](docs/V1VirtualMachinePreset.md) - - [V1VirtualMachinePresetList](docs/V1VirtualMachinePresetList.md) - - [V1VirtualMachinePresetSpec](docs/V1VirtualMachinePresetSpec.md) - - [V1VirtualMachineReplicaSet](docs/V1VirtualMachineReplicaSet.md) - - [V1VirtualMachineReplicaSetList](docs/V1VirtualMachineReplicaSetList.md) - [V1VirtualMachineSpec](docs/V1VirtualMachineSpec.md) - [V1VirtualMachineStatus](docs/V1VirtualMachineStatus.md) - [V1Volume](docs/V1Volume.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index c846b66c..f7677088 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -4,56 +4,56 @@ All URIs are relative to *https://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**check_health**](DefaultApi.md#check_health) | **GET** /apis/kubevirt.io/v1alpha1/healthz | Health endpoint -[**console**](DefaultApi.md#console) | **GET** /apis/subresources.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}/console | Open a websocket connection to a serial console on the specified VM. -[**create_namespaced_offline_virtual_machine**](DefaultApi.md#create_namespaced_offline_virtual_machine) | **POST** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines | Create a OfflineVirtualMachine object. -[**create_namespaced_virtual_machine**](DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines | Create a VirtualMachine object. -[**create_namespaced_virtual_machine_preset**](DefaultApi.md#create_namespaced_virtual_machine_preset) | **POST** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets | Create a VirtualMachinePreset object. -[**create_namespaced_virtual_machine_replica_set**](DefaultApi.md#create_namespaced_virtual_machine_replica_set) | **POST** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets | Create a VirtualMachineReplicaSet object. -[**delete_collection_namespaced_offline_virtual_machine**](DefaultApi.md#delete_collection_namespaced_offline_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines | Delete a collection of OfflineVirtualMachine objects. -[**delete_collection_namespaced_virtual_machine**](DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines | Delete a collection of VirtualMachine objects. -[**delete_collection_namespaced_virtual_machine_preset**](DefaultApi.md#delete_collection_namespaced_virtual_machine_preset) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets | Delete a collection of VirtualMachinePreset objects. -[**delete_collection_namespaced_virtual_machine_replica_set**](DefaultApi.md#delete_collection_namespaced_virtual_machine_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets | Delete a collection of VirtualMachineReplicaSet objects. -[**delete_namespaced_offline_virtual_machine**](DefaultApi.md#delete_namespaced_offline_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines/{name} | Delete a OfflineVirtualMachine object. -[**delete_namespaced_virtual_machine**](DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name} | Delete a VirtualMachine object. -[**delete_namespaced_virtual_machine_preset**](DefaultApi.md#delete_namespaced_virtual_machine_preset) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name} | Delete a VirtualMachinePreset object. -[**delete_namespaced_virtual_machine_replica_set**](DefaultApi.md#delete_namespaced_virtual_machine_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets/{name} | Delete a VirtualMachineReplicaSet object. +[**check_health**](DefaultApi.md#check_health) | **GET** /apis/kubevirt.io/v1alpha2/healthz | Health endpoint +[**console**](DefaultApi.md#console) | **GET** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/console | Open a websocket connection to a serial console on the specified VirtualMachineInstance. +[**create_namespaced_virtual_machine**](DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines | Create a VirtualMachine object. +[**create_namespaced_virtual_machine_instance**](DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances | Create a VirtualMachineInstance object. +[**create_namespaced_virtual_machine_instance_preset**](DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets | Create a VirtualMachineInstancePreset object. +[**create_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets | Create a VirtualMachineInstanceReplicaSet object. +[**delete_collection_namespaced_virtual_machine**](DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines | Delete a collection of VirtualMachine objects. +[**delete_collection_namespaced_virtual_machine_instance**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances | Delete a collection of VirtualMachineInstance objects. +[**delete_collection_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets | Delete a collection of VirtualMachineInstancePreset objects. +[**delete_collection_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets | Delete a collection of VirtualMachineInstanceReplicaSet objects. +[**delete_namespaced_virtual_machine**](DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name} | Delete a VirtualMachine object. +[**delete_namespaced_virtual_machine_instance**](DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name} | Delete a VirtualMachineInstance object. +[**delete_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Delete a VirtualMachineInstancePreset object. +[**delete_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Delete a VirtualMachineInstanceReplicaSet object. [**get_api_group**](DefaultApi.md#get_api_group) | **GET** /apis | Get a KubeVirt API GroupList [**get_api_group_0**](DefaultApi.md#get_api_group_0) | **GET** /apis/kubevirt.io | Get a KubeVirt API group [**get_api_group_1**](DefaultApi.md#get_api_group_1) | **GET** /apis/subresources.kubevirt.io | Get a KubeVirt API Group -[**get_api_resources**](DefaultApi.md#get_api_resources) | **GET** /apis/kubevirt.io/v1alpha1 | Get KubeVirt API Resources -[**get_api_resources_0**](DefaultApi.md#get_api_resources_0) | **GET** /apis/subresources.kubevirt.io/v1alpha1 | Get a KubeVirt API resources -[**list_namespaced_offline_virtual_machine**](DefaultApi.md#list_namespaced_offline_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines | Get a list of OfflineVirtualMachine objects. -[**list_namespaced_virtual_machine**](DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines | Get a list of VirtualMachine objects. -[**list_namespaced_virtual_machine_preset**](DefaultApi.md#list_namespaced_virtual_machine_preset) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets | Get a list of VirtualMachinePreset objects. -[**list_namespaced_virtual_machine_replica_set**](DefaultApi.md#list_namespaced_virtual_machine_replica_set) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets | Get a list of VirtualMachineReplicaSet objects. -[**list_offline_virtual_machine_for_all_namespaces**](DefaultApi.md#list_offline_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/offlinevirtualmachines | Get a list of all OfflineVirtualMachine objects. -[**list_virtual_machine_for_all_namespaces**](DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/virtualmachines | Get a list of all VirtualMachine objects. -[**list_virtual_machine_preset_for_all_namespaces**](DefaultApi.md#list_virtual_machine_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/virtualmachinepresets | Get a list of all VirtualMachinePreset objects. -[**list_virtual_machine_replica_set_for_all_namespaces**](DefaultApi.md#list_virtual_machine_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/virtualmachinereplicasets | Get a list of all VirtualMachineReplicaSet objects. -[**patch_namespaced_offline_virtual_machine**](DefaultApi.md#patch_namespaced_offline_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines/{name} | Patch a OfflineVirtualMachine object. -[**patch_namespaced_virtual_machine**](DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name} | Patch a VirtualMachine object. -[**patch_namespaced_virtual_machine_preset**](DefaultApi.md#patch_namespaced_virtual_machine_preset) | **PATCH** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name} | Patch a VirtualMachinePreset object. -[**patch_namespaced_virtual_machine_replica_set**](DefaultApi.md#patch_namespaced_virtual_machine_replica_set) | **PATCH** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets/{name} | Patch a VirtualMachineReplicaSet object. -[**read_namespaced_offline_virtual_machine**](DefaultApi.md#read_namespaced_offline_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines/{name} | Get a OfflineVirtualMachine object. -[**read_namespaced_virtual_machine**](DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name} | Get a VirtualMachine object. -[**read_namespaced_virtual_machine_preset**](DefaultApi.md#read_namespaced_virtual_machine_preset) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name} | Get a VirtualMachinePreset object. -[**read_namespaced_virtual_machine_replica_set**](DefaultApi.md#read_namespaced_virtual_machine_replica_set) | **GET** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets/{name} | Get a VirtualMachineReplicaSet object. -[**replace_namespaced_offline_virtual_machine**](DefaultApi.md#replace_namespaced_offline_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines/{name} | Update a OfflineVirtualMachine object. -[**replace_namespaced_virtual_machine**](DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name} | Update a VirtualMachine object. -[**replace_namespaced_virtual_machine_preset**](DefaultApi.md#replace_namespaced_virtual_machine_preset) | **PUT** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name} | Update a VirtualMachinePreset object. -[**replace_namespaced_virtual_machine_replica_set**](DefaultApi.md#replace_namespaced_virtual_machine_replica_set) | **PUT** /apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets/{name} | Update a VirtualMachineReplicaSet object. -[**test**](DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}/test | Test endpoint verifying apiserver connectivity. -[**version**](DefaultApi.md#version) | **GET** /apis/subresources.kubevirt.io/v1alpha1/version | -[**vnc**](DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}/vnc | Open a websocket connection to connect to VNC on the specified VM. -[**watch_namespaced_offline_virtual_machine**](DefaultApi.md#watch_namespaced_offline_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/offlinevirtualmachines | Watch a OfflineVirtualMachine object. -[**watch_namespaced_virtual_machine**](DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachines | Watch a VirtualMachine object. -[**watch_namespaced_virtual_machine_preset**](DefaultApi.md#watch_namespaced_virtual_machine_preset) | **GET** /apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinepresets | Watch a VirtualMachinePreset object. -[**watch_namespaced_virtual_machine_replica_set**](DefaultApi.md#watch_namespaced_virtual_machine_replica_set) | **GET** /apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinereplicasets | Watch a VirtualMachineReplicaSet object. -[**watch_offline_virtual_machine_list_for_all_namespaces**](DefaultApi.md#watch_offline_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/watch/offlinevirtualmachines | Watch a OfflineVirtualMachineList object. -[**watch_virtual_machine_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/watch/virtualmachines | Watch a VirtualMachineList object. -[**watch_virtual_machine_preset_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/watch/virtualmachinepresets | Watch a VirtualMachinePresetList object. -[**watch_virtual_machine_replica_set_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha1/watch/virtualmachinereplicasets | Watch a VirtualMachineReplicaSetList object. +[**get_api_resources**](DefaultApi.md#get_api_resources) | **GET** /apis/kubevirt.io/v1alpha2 | Get KubeVirt API Resources +[**get_api_resources_0**](DefaultApi.md#get_api_resources_0) | **GET** /apis/subresources.kubevirt.io/v1alpha2 | Get a KubeVirt API resources +[**list_namespaced_virtual_machine**](DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines | Get a list of VirtualMachine objects. +[**list_namespaced_virtual_machine_instance**](DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances | Get a list of VirtualMachineInstance objects. +[**list_namespaced_virtual_machine_instance_preset**](DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets | Get a list of VirtualMachineInstancePreset objects. +[**list_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets | Get a list of VirtualMachineInstanceReplicaSet objects. +[**list_virtual_machine_for_all_namespaces**](DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/virtualmachines | Get a list of all VirtualMachine objects. +[**list_virtual_machine_instance_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/virtualmachineinstances | Get a list of all VirtualMachineInstance objects. +[**list_virtual_machine_instance_preset_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/virtualmachineinstancepresets | Get a list of all VirtualMachineInstancePreset objects. +[**list_virtual_machine_instance_replica_set_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/virtualmachineinstancereplicasets | Get a list of all VirtualMachineInstanceReplicaSet objects. +[**patch_namespaced_virtual_machine**](DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name} | Patch a VirtualMachine object. +[**patch_namespaced_virtual_machine_instance**](DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name} | Patch a VirtualMachineInstance object. +[**patch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Patch a VirtualMachineInstancePreset object. +[**patch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Patch a VirtualMachineInstanceReplicaSet object. +[**read_namespaced_virtual_machine**](DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name} | Get a VirtualMachine object. +[**read_namespaced_virtual_machine_instance**](DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name} | Get a VirtualMachineInstance object. +[**read_namespaced_virtual_machine_instance_preset**](DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Get a VirtualMachineInstancePreset object. +[**read_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Get a VirtualMachineInstanceReplicaSet object. +[**replace_namespaced_virtual_machine**](DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name} | Update a VirtualMachine object. +[**replace_namespaced_virtual_machine_instance**](DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name} | Update a VirtualMachineInstance object. +[**replace_namespaced_virtual_machine_instance_preset**](DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Update a VirtualMachineInstancePreset object. +[**replace_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Update a VirtualMachineInstanceReplicaSet object. +[**test**](DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/test | Test endpoint verifying apiserver connectivity. +[**version**](DefaultApi.md#version) | **GET** /apis/subresources.kubevirt.io/v1alpha2/version | +[**vnc**](DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/vnc | Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. +[**watch_namespaced_virtual_machine**](DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachines | Watch a VirtualMachine object. +[**watch_namespaced_virtual_machine_instance**](DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstances | Watch a VirtualMachineInstance object. +[**watch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstancepresets | Watch a VirtualMachineInstancePreset object. +[**watch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstancereplicasets | Watch a VirtualMachineInstanceReplicaSet object. +[**watch_virtual_machine_instance_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/watch/virtualmachineinstances | Watch a VirtualMachineInstanceList object. +[**watch_virtual_machine_instance_preset_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/watch/virtualmachineinstancepresets | Watch a VirtualMachineInstancePresetList object. +[**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/watch/virtualmachineinstancereplicasets | Watch a VirtualMachineInstanceReplicaSetList object. +[**watch_virtual_machine_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/watch/virtualmachines | Watch a VirtualMachineList object. # **check_health** @@ -105,7 +105,7 @@ void (empty response body) # **console** > console(namespace, name) -Open a websocket connection to a serial console on the specified VM. +Open a websocket connection to a serial console on the specified VirtualMachineInstance. ### Example ```python @@ -126,7 +126,7 @@ namespace = 'namespace_example' # str | Object name and auth scope, such as for name = 'name_example' # str | Name of the resource try: - # Open a websocket connection to a serial console on the specified VM. + # Open a websocket connection to a serial console on the specified VirtualMachineInstance. api_instance.console(namespace, name) except ApiException as e: print("Exception when calling DefaultApi->console: %s\n" % e) @@ -154,10 +154,10 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_offline_virtual_machine** -> V1OfflineVirtualMachine create_namespaced_offline_virtual_machine(body, namespace) +# **create_namespaced_virtual_machine** +> V1VirtualMachine create_namespaced_virtual_machine(body, namespace) -Create a OfflineVirtualMachine object. +Create a VirtualMachine object. ### Example ```python @@ -174,27 +174,27 @@ kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1OfflineVirtualMachine() # V1OfflineVirtualMachine | +body = kubevirt.V1VirtualMachine() # V1VirtualMachine | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - # Create a OfflineVirtualMachine object. - api_response = api_instance.create_namespaced_offline_virtual_machine(body, namespace) + # Create a VirtualMachine object. + api_response = api_instance.create_namespaced_virtual_machine(body, namespace) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->create_namespaced_offline_virtual_machine: %s\n" % e) + print("Exception when calling DefaultApi->create_namespaced_virtual_machine: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1OfflineVirtualMachine**](V1OfflineVirtualMachine.md)| | + **body** | [**V1VirtualMachine**](V1VirtualMachine.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1OfflineVirtualMachine**](V1OfflineVirtualMachine.md) +[**V1VirtualMachine**](V1VirtualMachine.md) ### Authorization @@ -207,10 +207,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_virtual_machine** -> V1VirtualMachine create_namespaced_virtual_machine(body, namespace) +# **create_namespaced_virtual_machine_instance** +> V1VirtualMachineInstance create_namespaced_virtual_machine_instance(body, namespace) -Create a VirtualMachine object. +Create a VirtualMachineInstance object. ### Example ```python @@ -227,27 +227,27 @@ kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1VirtualMachine() # V1VirtualMachine | +body = kubevirt.V1VirtualMachineInstance() # V1VirtualMachineInstance | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - # Create a VirtualMachine object. - api_response = api_instance.create_namespaced_virtual_machine(body, namespace) + # Create a VirtualMachineInstance object. + api_response = api_instance.create_namespaced_virtual_machine_instance(body, namespace) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->create_namespaced_virtual_machine: %s\n" % e) + print("Exception when calling DefaultApi->create_namespaced_virtual_machine_instance: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1VirtualMachine**](V1VirtualMachine.md)| | + **body** | [**V1VirtualMachineInstance**](V1VirtualMachineInstance.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1VirtualMachine**](V1VirtualMachine.md) +[**V1VirtualMachineInstance**](V1VirtualMachineInstance.md) ### Authorization @@ -260,10 +260,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_virtual_machine_preset** -> V1VirtualMachinePreset create_namespaced_virtual_machine_preset(body, namespace) +# **create_namespaced_virtual_machine_instance_preset** +> V1VirtualMachineInstancePreset create_namespaced_virtual_machine_instance_preset(body, namespace) -Create a VirtualMachinePreset object. +Create a VirtualMachineInstancePreset object. ### Example ```python @@ -280,27 +280,27 @@ kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1VirtualMachinePreset() # V1VirtualMachinePreset | +body = kubevirt.V1VirtualMachineInstancePreset() # V1VirtualMachineInstancePreset | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - # Create a VirtualMachinePreset object. - api_response = api_instance.create_namespaced_virtual_machine_preset(body, namespace) + # Create a VirtualMachineInstancePreset object. + api_response = api_instance.create_namespaced_virtual_machine_instance_preset(body, namespace) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->create_namespaced_virtual_machine_preset: %s\n" % e) + print("Exception when calling DefaultApi->create_namespaced_virtual_machine_instance_preset: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1VirtualMachinePreset**](V1VirtualMachinePreset.md)| | + **body** | [**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1VirtualMachinePreset**](V1VirtualMachinePreset.md) +[**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md) ### Authorization @@ -313,10 +313,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_virtual_machine_replica_set** -> V1VirtualMachineReplicaSet create_namespaced_virtual_machine_replica_set(body, namespace) +# **create_namespaced_virtual_machine_instance_replica_set** +> V1VirtualMachineInstanceReplicaSet create_namespaced_virtual_machine_instance_replica_set(body, namespace) -Create a VirtualMachineReplicaSet object. +Create a VirtualMachineInstanceReplicaSet object. ### Example ```python @@ -333,27 +333,27 @@ kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1VirtualMachineReplicaSet() # V1VirtualMachineReplicaSet | +body = kubevirt.V1VirtualMachineInstanceReplicaSet() # V1VirtualMachineInstanceReplicaSet | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - # Create a VirtualMachineReplicaSet object. - api_response = api_instance.create_namespaced_virtual_machine_replica_set(body, namespace) + # Create a VirtualMachineInstanceReplicaSet object. + api_response = api_instance.create_namespaced_virtual_machine_instance_replica_set(body, namespace) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->create_namespaced_virtual_machine_replica_set: %s\n" % e) + print("Exception when calling DefaultApi->create_namespaced_virtual_machine_instance_replica_set: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1VirtualMachineReplicaSet**](V1VirtualMachineReplicaSet.md)| | + **body** | [**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1VirtualMachineReplicaSet**](V1VirtualMachineReplicaSet.md) +[**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md) ### Authorization @@ -366,10 +366,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_namespaced_offline_virtual_machine** -> V1Status delete_collection_namespaced_offline_virtual_machine(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **delete_collection_namespaced_virtual_machine** +> V1Status delete_collection_namespaced_virtual_machine(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Delete a collection of OfflineVirtualMachine objects. +Delete a collection of VirtualMachine objects. ### Example ```python @@ -396,11 +396,11 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Delete a collection of OfflineVirtualMachine objects. - api_response = api_instance.delete_collection_namespaced_offline_virtual_machine(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + # Delete a collection of VirtualMachine objects. + api_response = api_instance.delete_collection_namespaced_virtual_machine(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->delete_collection_namespaced_offline_virtual_machine: %s\n" % e) + print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine: %s\n" % e) ``` ### Parameters @@ -431,10 +431,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_namespaced_virtual_machine** -> V1Status delete_collection_namespaced_virtual_machine(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **delete_collection_namespaced_virtual_machine_instance** +> V1Status delete_collection_namespaced_virtual_machine_instance(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Delete a collection of VirtualMachine objects. +Delete a collection of VirtualMachineInstance objects. ### Example ```python @@ -461,11 +461,11 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Delete a collection of VirtualMachine objects. - api_response = api_instance.delete_collection_namespaced_virtual_machine(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + # Delete a collection of VirtualMachineInstance objects. + api_response = api_instance.delete_collection_namespaced_virtual_machine_instance(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine: %s\n" % e) + print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_instance: %s\n" % e) ``` ### Parameters @@ -496,10 +496,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_namespaced_virtual_machine_preset** -> V1Status delete_collection_namespaced_virtual_machine_preset(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **delete_collection_namespaced_virtual_machine_instance_preset** +> V1Status delete_collection_namespaced_virtual_machine_instance_preset(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Delete a collection of VirtualMachinePreset objects. +Delete a collection of VirtualMachineInstancePreset objects. ### Example ```python @@ -526,11 +526,11 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Delete a collection of VirtualMachinePreset objects. - api_response = api_instance.delete_collection_namespaced_virtual_machine_preset(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + # Delete a collection of VirtualMachineInstancePreset objects. + api_response = api_instance.delete_collection_namespaced_virtual_machine_instance_preset(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_preset: %s\n" % e) + print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_instance_preset: %s\n" % e) ``` ### Parameters @@ -561,10 +561,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_namespaced_virtual_machine_replica_set** -> V1Status delete_collection_namespaced_virtual_machine_replica_set(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **delete_collection_namespaced_virtual_machine_instance_replica_set** +> V1Status delete_collection_namespaced_virtual_machine_instance_replica_set(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Delete a collection of VirtualMachineReplicaSet objects. +Delete a collection of VirtualMachineInstanceReplicaSet objects. ### Example ```python @@ -591,11 +591,11 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Delete a collection of VirtualMachineReplicaSet objects. - api_response = api_instance.delete_collection_namespaced_virtual_machine_replica_set(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + # Delete a collection of VirtualMachineInstanceReplicaSet objects. + api_response = api_instance.delete_collection_namespaced_virtual_machine_instance_replica_set(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_replica_set: %s\n" % e) + print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_instance_replica_set: %s\n" % e) ``` ### Parameters @@ -626,10 +626,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_namespaced_offline_virtual_machine** -> V1Status delete_namespaced_offline_virtual_machine(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +# **delete_namespaced_virtual_machine** +> V1Status delete_namespaced_virtual_machine(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) -Delete a OfflineVirtualMachine object. +Delete a VirtualMachine object. ### Example ```python @@ -654,11 +654,11 @@ orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) try: - # Delete a OfflineVirtualMachine object. - api_response = api_instance.delete_namespaced_offline_virtual_machine(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + # Delete a VirtualMachine object. + api_response = api_instance.delete_namespaced_virtual_machine(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->delete_namespaced_offline_virtual_machine: %s\n" % e) + print("Exception when calling DefaultApi->delete_namespaced_virtual_machine: %s\n" % e) ``` ### Parameters @@ -687,10 +687,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_namespaced_virtual_machine** -> V1Status delete_namespaced_virtual_machine(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +# **delete_namespaced_virtual_machine_instance** +> V1Status delete_namespaced_virtual_machine_instance(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) -Delete a VirtualMachine object. +Delete a VirtualMachineInstance object. ### Example ```python @@ -715,11 +715,11 @@ orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) try: - # Delete a VirtualMachine object. - api_response = api_instance.delete_namespaced_virtual_machine(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + # Delete a VirtualMachineInstance object. + api_response = api_instance.delete_namespaced_virtual_machine_instance(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->delete_namespaced_virtual_machine: %s\n" % e) + print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_instance: %s\n" % e) ``` ### Parameters @@ -748,10 +748,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_namespaced_virtual_machine_preset** -> V1Status delete_namespaced_virtual_machine_preset(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +# **delete_namespaced_virtual_machine_instance_preset** +> V1Status delete_namespaced_virtual_machine_instance_preset(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) -Delete a VirtualMachinePreset object. +Delete a VirtualMachineInstancePreset object. ### Example ```python @@ -776,11 +776,11 @@ orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) try: - # Delete a VirtualMachinePreset object. - api_response = api_instance.delete_namespaced_virtual_machine_preset(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + # Delete a VirtualMachineInstancePreset object. + api_response = api_instance.delete_namespaced_virtual_machine_instance_preset(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_preset: %s\n" % e) + print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_instance_preset: %s\n" % e) ``` ### Parameters @@ -809,10 +809,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_namespaced_virtual_machine_replica_set** -> V1Status delete_namespaced_virtual_machine_replica_set(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +# **delete_namespaced_virtual_machine_instance_replica_set** +> V1Status delete_namespaced_virtual_machine_instance_replica_set(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) -Delete a VirtualMachineReplicaSet object. +Delete a VirtualMachineInstanceReplicaSet object. ### Example ```python @@ -837,11 +837,11 @@ orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) try: - # Delete a VirtualMachineReplicaSet object. - api_response = api_instance.delete_namespaced_virtual_machine_replica_set(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + # Delete a VirtualMachineInstanceReplicaSet object. + api_response = api_instance.delete_namespaced_virtual_machine_instance_replica_set(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_replica_set: %s\n" % e) + print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_instance_replica_set: %s\n" % e) ``` ### Parameters @@ -1105,10 +1105,10 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_offline_virtual_machine** -> V1OfflineVirtualMachineList list_namespaced_offline_virtual_machine(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_virtual_machine** +> V1VirtualMachineList list_namespaced_virtual_machine(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of OfflineVirtualMachine objects. +Get a list of VirtualMachine objects. ### Example ```python @@ -1136,11 +1136,11 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Get a list of OfflineVirtualMachine objects. - api_response = api_instance.list_namespaced_offline_virtual_machine(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + # Get a list of VirtualMachine objects. + api_response = api_instance.list_namespaced_virtual_machine(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_namespaced_offline_virtual_machine: %s\n" % e) + print("Exception when calling DefaultApi->list_namespaced_virtual_machine: %s\n" % e) ``` ### Parameters @@ -1159,7 +1159,7 @@ Name | Type | Description | Notes ### Return type -[**V1OfflineVirtualMachineList**](V1OfflineVirtualMachineList.md) +[**V1VirtualMachineList**](V1VirtualMachineList.md) ### Authorization @@ -1172,10 +1172,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_virtual_machine** -> V1VirtualMachineList list_namespaced_virtual_machine(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_virtual_machine_instance** +> V1VirtualMachineInstanceList list_namespaced_virtual_machine_instance(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of VirtualMachine objects. +Get a list of VirtualMachineInstance objects. ### Example ```python @@ -1203,11 +1203,11 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Get a list of VirtualMachine objects. - api_response = api_instance.list_namespaced_virtual_machine(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + # Get a list of VirtualMachineInstance objects. + api_response = api_instance.list_namespaced_virtual_machine_instance(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_namespaced_virtual_machine: %s\n" % e) + print("Exception when calling DefaultApi->list_namespaced_virtual_machine_instance: %s\n" % e) ``` ### Parameters @@ -1226,7 +1226,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineList**](V1VirtualMachineList.md) +[**V1VirtualMachineInstanceList**](V1VirtualMachineInstanceList.md) ### Authorization @@ -1239,10 +1239,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_virtual_machine_preset** -> V1VirtualMachinePresetList list_namespaced_virtual_machine_preset(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_virtual_machine_instance_preset** +> V1VirtualMachineInstancePresetList list_namespaced_virtual_machine_instance_preset(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of VirtualMachinePreset objects. +Get a list of VirtualMachineInstancePreset objects. ### Example ```python @@ -1270,11 +1270,11 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Get a list of VirtualMachinePreset objects. - api_response = api_instance.list_namespaced_virtual_machine_preset(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + # Get a list of VirtualMachineInstancePreset objects. + api_response = api_instance.list_namespaced_virtual_machine_instance_preset(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_namespaced_virtual_machine_preset: %s\n" % e) + print("Exception when calling DefaultApi->list_namespaced_virtual_machine_instance_preset: %s\n" % e) ``` ### Parameters @@ -1293,7 +1293,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachinePresetList**](V1VirtualMachinePresetList.md) +[**V1VirtualMachineInstancePresetList**](V1VirtualMachineInstancePresetList.md) ### Authorization @@ -1306,10 +1306,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_virtual_machine_replica_set** -> V1VirtualMachineReplicaSetList list_namespaced_virtual_machine_replica_set(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_virtual_machine_instance_replica_set** +> V1VirtualMachineInstanceReplicaSetList list_namespaced_virtual_machine_instance_replica_set(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of VirtualMachineReplicaSet objects. +Get a list of VirtualMachineInstanceReplicaSet objects. ### Example ```python @@ -1337,11 +1337,11 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Get a list of VirtualMachineReplicaSet objects. - api_response = api_instance.list_namespaced_virtual_machine_replica_set(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + # Get a list of VirtualMachineInstanceReplicaSet objects. + api_response = api_instance.list_namespaced_virtual_machine_instance_replica_set(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_namespaced_virtual_machine_replica_set: %s\n" % e) + print("Exception when calling DefaultApi->list_namespaced_virtual_machine_instance_replica_set: %s\n" % e) ``` ### Parameters @@ -1360,7 +1360,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineReplicaSetList**](V1VirtualMachineReplicaSetList.md) +[**V1VirtualMachineInstanceReplicaSetList**](V1VirtualMachineInstanceReplicaSetList.md) ### Authorization @@ -1373,10 +1373,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_offline_virtual_machine_for_all_namespaces** -> V1OfflineVirtualMachineList list_offline_virtual_machine_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_virtual_machine_for_all_namespaces** +> V1VirtualMachineList list_virtual_machine_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of all OfflineVirtualMachine objects. +Get a list of all VirtualMachine objects. ### Example ```python @@ -1403,11 +1403,11 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Get a list of all OfflineVirtualMachine objects. - api_response = api_instance.list_offline_virtual_machine_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + # Get a list of all VirtualMachine objects. + api_response = api_instance.list_virtual_machine_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_offline_virtual_machine_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->list_virtual_machine_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -1425,7 +1425,7 @@ Name | Type | Description | Notes ### Return type -[**V1OfflineVirtualMachineList**](V1OfflineVirtualMachineList.md) +[**V1VirtualMachineList**](V1VirtualMachineList.md) ### Authorization @@ -1438,10 +1438,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_virtual_machine_for_all_namespaces** -> V1VirtualMachineList list_virtual_machine_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_virtual_machine_instance_for_all_namespaces** +> V1VirtualMachineInstanceList list_virtual_machine_instance_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of all VirtualMachine objects. +Get a list of all VirtualMachineInstance objects. ### Example ```python @@ -1468,11 +1468,11 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Get a list of all VirtualMachine objects. - api_response = api_instance.list_virtual_machine_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + # Get a list of all VirtualMachineInstance objects. + api_response = api_instance.list_virtual_machine_instance_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_virtual_machine_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->list_virtual_machine_instance_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -1490,7 +1490,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineList**](V1VirtualMachineList.md) +[**V1VirtualMachineInstanceList**](V1VirtualMachineInstanceList.md) ### Authorization @@ -1503,10 +1503,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_virtual_machine_preset_for_all_namespaces** -> V1VirtualMachinePresetList list_virtual_machine_preset_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_virtual_machine_instance_preset_for_all_namespaces** +> V1VirtualMachineInstancePresetList list_virtual_machine_instance_preset_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of all VirtualMachinePreset objects. +Get a list of all VirtualMachineInstancePreset objects. ### Example ```python @@ -1533,11 +1533,11 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Get a list of all VirtualMachinePreset objects. - api_response = api_instance.list_virtual_machine_preset_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + # Get a list of all VirtualMachineInstancePreset objects. + api_response = api_instance.list_virtual_machine_instance_preset_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_virtual_machine_preset_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->list_virtual_machine_instance_preset_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -1555,7 +1555,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachinePresetList**](V1VirtualMachinePresetList.md) +[**V1VirtualMachineInstancePresetList**](V1VirtualMachineInstancePresetList.md) ### Authorization @@ -1568,10 +1568,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_virtual_machine_replica_set_for_all_namespaces** -> V1VirtualMachineReplicaSetList list_virtual_machine_replica_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_virtual_machine_instance_replica_set_for_all_namespaces** +> V1VirtualMachineInstanceReplicaSetList list_virtual_machine_instance_replica_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of all VirtualMachineReplicaSet objects. +Get a list of all VirtualMachineInstanceReplicaSet objects. ### Example ```python @@ -1598,11 +1598,11 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Get a list of all VirtualMachineReplicaSet objects. - api_response = api_instance.list_virtual_machine_replica_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + # Get a list of all VirtualMachineInstanceReplicaSet objects. + api_response = api_instance.list_virtual_machine_instance_replica_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_virtual_machine_replica_set_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->list_virtual_machine_instance_replica_set_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -1620,7 +1620,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineReplicaSetList**](V1VirtualMachineReplicaSetList.md) +[**V1VirtualMachineInstanceReplicaSetList**](V1VirtualMachineInstanceReplicaSetList.md) ### Authorization @@ -1633,10 +1633,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_offline_virtual_machine** -> V1OfflineVirtualMachine patch_namespaced_offline_virtual_machine(body) +# **patch_namespaced_virtual_machine** +> V1VirtualMachine patch_namespaced_virtual_machine(body) -Patch a OfflineVirtualMachine object. +Patch a VirtualMachine object. ### Example ```python @@ -1656,11 +1656,11 @@ api_instance = kubevirt.DefaultApi() body = kubevirt.V1Patch() # V1Patch | try: - # Patch a OfflineVirtualMachine object. - api_response = api_instance.patch_namespaced_offline_virtual_machine(body) + # Patch a VirtualMachine object. + api_response = api_instance.patch_namespaced_virtual_machine(body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->patch_namespaced_offline_virtual_machine: %s\n" % e) + print("Exception when calling DefaultApi->patch_namespaced_virtual_machine: %s\n" % e) ``` ### Parameters @@ -1671,7 +1671,7 @@ Name | Type | Description | Notes ### Return type -[**V1OfflineVirtualMachine**](V1OfflineVirtualMachine.md) +[**V1VirtualMachine**](V1VirtualMachine.md) ### Authorization @@ -1684,10 +1684,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_virtual_machine** -> V1VirtualMachine patch_namespaced_virtual_machine(body) +# **patch_namespaced_virtual_machine_instance** +> V1VirtualMachineInstance patch_namespaced_virtual_machine_instance(body) -Patch a VirtualMachine object. +Patch a VirtualMachineInstance object. ### Example ```python @@ -1707,11 +1707,11 @@ api_instance = kubevirt.DefaultApi() body = kubevirt.V1Patch() # V1Patch | try: - # Patch a VirtualMachine object. - api_response = api_instance.patch_namespaced_virtual_machine(body) + # Patch a VirtualMachineInstance object. + api_response = api_instance.patch_namespaced_virtual_machine_instance(body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->patch_namespaced_virtual_machine: %s\n" % e) + print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instance: %s\n" % e) ``` ### Parameters @@ -1722,7 +1722,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachine**](V1VirtualMachine.md) +[**V1VirtualMachineInstance**](V1VirtualMachineInstance.md) ### Authorization @@ -1735,10 +1735,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_virtual_machine_preset** -> V1VirtualMachinePreset patch_namespaced_virtual_machine_preset(body) +# **patch_namespaced_virtual_machine_instance_preset** +> V1VirtualMachineInstancePreset patch_namespaced_virtual_machine_instance_preset(body) -Patch a VirtualMachinePreset object. +Patch a VirtualMachineInstancePreset object. ### Example ```python @@ -1758,11 +1758,11 @@ api_instance = kubevirt.DefaultApi() body = kubevirt.V1Patch() # V1Patch | try: - # Patch a VirtualMachinePreset object. - api_response = api_instance.patch_namespaced_virtual_machine_preset(body) + # Patch a VirtualMachineInstancePreset object. + api_response = api_instance.patch_namespaced_virtual_machine_instance_preset(body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_preset: %s\n" % e) + print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instance_preset: %s\n" % e) ``` ### Parameters @@ -1773,7 +1773,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachinePreset**](V1VirtualMachinePreset.md) +[**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md) ### Authorization @@ -1786,10 +1786,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_virtual_machine_replica_set** -> V1VirtualMachineReplicaSet patch_namespaced_virtual_machine_replica_set(body) +# **patch_namespaced_virtual_machine_instance_replica_set** +> V1VirtualMachineInstanceReplicaSet patch_namespaced_virtual_machine_instance_replica_set(body) -Patch a VirtualMachineReplicaSet object. +Patch a VirtualMachineInstanceReplicaSet object. ### Example ```python @@ -1809,11 +1809,11 @@ api_instance = kubevirt.DefaultApi() body = kubevirt.V1Patch() # V1Patch | try: - # Patch a VirtualMachineReplicaSet object. - api_response = api_instance.patch_namespaced_virtual_machine_replica_set(body) + # Patch a VirtualMachineInstanceReplicaSet object. + api_response = api_instance.patch_namespaced_virtual_machine_instance_replica_set(body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_replica_set: %s\n" % e) + print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instance_replica_set: %s\n" % e) ``` ### Parameters @@ -1824,7 +1824,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineReplicaSet**](V1VirtualMachineReplicaSet.md) +[**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md) ### Authorization @@ -1837,10 +1837,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_namespaced_offline_virtual_machine** -> V1OfflineVirtualMachine read_namespaced_offline_virtual_machine(name, namespace, exact=exact, export=export) +# **read_namespaced_virtual_machine** +> V1VirtualMachine read_namespaced_virtual_machine(name, namespace, exact=exact, export=export) -Get a OfflineVirtualMachine object. +Get a VirtualMachine object. ### Example ```python @@ -1863,11 +1863,11 @@ exact = true # bool | Should the export be exact. Exact export maintains cluster export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - # Get a OfflineVirtualMachine object. - api_response = api_instance.read_namespaced_offline_virtual_machine(name, namespace, exact=exact, export=export) + # Get a VirtualMachine object. + api_response = api_instance.read_namespaced_virtual_machine(name, namespace, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->read_namespaced_offline_virtual_machine: %s\n" % e) + print("Exception when calling DefaultApi->read_namespaced_virtual_machine: %s\n" % e) ``` ### Parameters @@ -1881,7 +1881,7 @@ Name | Type | Description | Notes ### Return type -[**V1OfflineVirtualMachine**](V1OfflineVirtualMachine.md) +[**V1VirtualMachine**](V1VirtualMachine.md) ### Authorization @@ -1894,10 +1894,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_namespaced_virtual_machine** -> V1VirtualMachine read_namespaced_virtual_machine(name, namespace, exact=exact, export=export) +# **read_namespaced_virtual_machine_instance** +> V1VirtualMachineInstance read_namespaced_virtual_machine_instance(name, namespace, exact=exact, export=export) -Get a VirtualMachine object. +Get a VirtualMachineInstance object. ### Example ```python @@ -1920,11 +1920,11 @@ exact = true # bool | Should the export be exact. Exact export maintains cluster export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - # Get a VirtualMachine object. - api_response = api_instance.read_namespaced_virtual_machine(name, namespace, exact=exact, export=export) + # Get a VirtualMachineInstance object. + api_response = api_instance.read_namespaced_virtual_machine_instance(name, namespace, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->read_namespaced_virtual_machine: %s\n" % e) + print("Exception when calling DefaultApi->read_namespaced_virtual_machine_instance: %s\n" % e) ``` ### Parameters @@ -1938,7 +1938,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachine**](V1VirtualMachine.md) +[**V1VirtualMachineInstance**](V1VirtualMachineInstance.md) ### Authorization @@ -1951,10 +1951,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_namespaced_virtual_machine_preset** -> V1VirtualMachinePreset read_namespaced_virtual_machine_preset(name, namespace, exact=exact, export=export) +# **read_namespaced_virtual_machine_instance_preset** +> V1VirtualMachineInstancePreset read_namespaced_virtual_machine_instance_preset(name, namespace, exact=exact, export=export) -Get a VirtualMachinePreset object. +Get a VirtualMachineInstancePreset object. ### Example ```python @@ -1977,11 +1977,11 @@ exact = true # bool | Should the export be exact. Exact export maintains cluster export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - # Get a VirtualMachinePreset object. - api_response = api_instance.read_namespaced_virtual_machine_preset(name, namespace, exact=exact, export=export) + # Get a VirtualMachineInstancePreset object. + api_response = api_instance.read_namespaced_virtual_machine_instance_preset(name, namespace, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->read_namespaced_virtual_machine_preset: %s\n" % e) + print("Exception when calling DefaultApi->read_namespaced_virtual_machine_instance_preset: %s\n" % e) ``` ### Parameters @@ -1995,7 +1995,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachinePreset**](V1VirtualMachinePreset.md) +[**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md) ### Authorization @@ -2008,10 +2008,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_namespaced_virtual_machine_replica_set** -> V1VirtualMachineReplicaSet read_namespaced_virtual_machine_replica_set(name, namespace, exact=exact, export=export) +# **read_namespaced_virtual_machine_instance_replica_set** +> V1VirtualMachineInstanceReplicaSet read_namespaced_virtual_machine_instance_replica_set(name, namespace, exact=exact, export=export) -Get a VirtualMachineReplicaSet object. +Get a VirtualMachineInstanceReplicaSet object. ### Example ```python @@ -2034,11 +2034,11 @@ exact = true # bool | Should the export be exact. Exact export maintains cluster export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - # Get a VirtualMachineReplicaSet object. - api_response = api_instance.read_namespaced_virtual_machine_replica_set(name, namespace, exact=exact, export=export) + # Get a VirtualMachineInstanceReplicaSet object. + api_response = api_instance.read_namespaced_virtual_machine_instance_replica_set(name, namespace, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->read_namespaced_virtual_machine_replica_set: %s\n" % e) + print("Exception when calling DefaultApi->read_namespaced_virtual_machine_instance_replica_set: %s\n" % e) ``` ### Parameters @@ -2052,7 +2052,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineReplicaSet**](V1VirtualMachineReplicaSet.md) +[**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md) ### Authorization @@ -2065,10 +2065,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_namespaced_offline_virtual_machine** -> V1OfflineVirtualMachine replace_namespaced_offline_virtual_machine(body, namespace, name) +# **replace_namespaced_virtual_machine** +> V1VirtualMachine replace_namespaced_virtual_machine(body, namespace, name) -Update a OfflineVirtualMachine object. +Update a VirtualMachine object. ### Example ```python @@ -2085,29 +2085,29 @@ kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1OfflineVirtualMachine() # V1OfflineVirtualMachine | +body = kubevirt.V1VirtualMachine() # V1VirtualMachine | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource try: - # Update a OfflineVirtualMachine object. - api_response = api_instance.replace_namespaced_offline_virtual_machine(body, namespace, name) + # Update a VirtualMachine object. + api_response = api_instance.replace_namespaced_virtual_machine(body, namespace, name) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->replace_namespaced_offline_virtual_machine: %s\n" % e) + print("Exception when calling DefaultApi->replace_namespaced_virtual_machine: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1OfflineVirtualMachine**](V1OfflineVirtualMachine.md)| | + **body** | [**V1VirtualMachine**](V1VirtualMachine.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | ### Return type -[**V1OfflineVirtualMachine**](V1OfflineVirtualMachine.md) +[**V1VirtualMachine**](V1VirtualMachine.md) ### Authorization @@ -2120,10 +2120,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_namespaced_virtual_machine** -> V1VirtualMachine replace_namespaced_virtual_machine(body, namespace, name) +# **replace_namespaced_virtual_machine_instance** +> V1VirtualMachineInstance replace_namespaced_virtual_machine_instance(body, namespace, name) -Update a VirtualMachine object. +Update a VirtualMachineInstance object. ### Example ```python @@ -2140,29 +2140,29 @@ kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1VirtualMachine() # V1VirtualMachine | +body = kubevirt.V1VirtualMachineInstance() # V1VirtualMachineInstance | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource try: - # Update a VirtualMachine object. - api_response = api_instance.replace_namespaced_virtual_machine(body, namespace, name) + # Update a VirtualMachineInstance object. + api_response = api_instance.replace_namespaced_virtual_machine_instance(body, namespace, name) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->replace_namespaced_virtual_machine: %s\n" % e) + print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_instance: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1VirtualMachine**](V1VirtualMachine.md)| | + **body** | [**V1VirtualMachineInstance**](V1VirtualMachineInstance.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | ### Return type -[**V1VirtualMachine**](V1VirtualMachine.md) +[**V1VirtualMachineInstance**](V1VirtualMachineInstance.md) ### Authorization @@ -2175,10 +2175,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_namespaced_virtual_machine_preset** -> V1VirtualMachinePreset replace_namespaced_virtual_machine_preset(body, namespace, name) +# **replace_namespaced_virtual_machine_instance_preset** +> V1VirtualMachineInstancePreset replace_namespaced_virtual_machine_instance_preset(body, namespace, name) -Update a VirtualMachinePreset object. +Update a VirtualMachineInstancePreset object. ### Example ```python @@ -2195,29 +2195,29 @@ kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1VirtualMachinePreset() # V1VirtualMachinePreset | +body = kubevirt.V1VirtualMachineInstancePreset() # V1VirtualMachineInstancePreset | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource try: - # Update a VirtualMachinePreset object. - api_response = api_instance.replace_namespaced_virtual_machine_preset(body, namespace, name) + # Update a VirtualMachineInstancePreset object. + api_response = api_instance.replace_namespaced_virtual_machine_instance_preset(body, namespace, name) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_preset: %s\n" % e) + print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_instance_preset: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1VirtualMachinePreset**](V1VirtualMachinePreset.md)| | + **body** | [**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | ### Return type -[**V1VirtualMachinePreset**](V1VirtualMachinePreset.md) +[**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md) ### Authorization @@ -2230,10 +2230,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_namespaced_virtual_machine_replica_set** -> V1VirtualMachineReplicaSet replace_namespaced_virtual_machine_replica_set(body, namespace, name) +# **replace_namespaced_virtual_machine_instance_replica_set** +> V1VirtualMachineInstanceReplicaSet replace_namespaced_virtual_machine_instance_replica_set(body, namespace, name) -Update a VirtualMachineReplicaSet object. +Update a VirtualMachineInstanceReplicaSet object. ### Example ```python @@ -2250,29 +2250,29 @@ kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1VirtualMachineReplicaSet() # V1VirtualMachineReplicaSet | +body = kubevirt.V1VirtualMachineInstanceReplicaSet() # V1VirtualMachineInstanceReplicaSet | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource try: - # Update a VirtualMachineReplicaSet object. - api_response = api_instance.replace_namespaced_virtual_machine_replica_set(body, namespace, name) + # Update a VirtualMachineInstanceReplicaSet object. + api_response = api_instance.replace_namespaced_virtual_machine_instance_replica_set(body, namespace, name) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_replica_set: %s\n" % e) + print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_instance_replica_set: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1VirtualMachineReplicaSet**](V1VirtualMachineReplicaSet.md)| | + **body** | [**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | ### Return type -[**V1VirtualMachineReplicaSet**](V1VirtualMachineReplicaSet.md) +[**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md) ### Authorization @@ -2385,7 +2385,7 @@ void (empty response body) # **vnc** > vnc(namespace, name) -Open a websocket connection to connect to VNC on the specified VM. +Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. ### Example ```python @@ -2406,7 +2406,7 @@ namespace = 'namespace_example' # str | Object name and auth scope, such as for name = 'name_example' # str | Name of the resource try: - # Open a websocket connection to connect to VNC on the specified VM. + # Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. api_instance.vnc(namespace, name) except ApiException as e: print("Exception when calling DefaultApi->vnc: %s\n" % e) @@ -2434,10 +2434,10 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **watch_namespaced_offline_virtual_machine** -> V1WatchEvent watch_namespaced_offline_virtual_machine(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **watch_namespaced_virtual_machine** +> V1WatchEvent watch_namespaced_virtual_machine(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Watch a OfflineVirtualMachine object. +Watch a VirtualMachine object. ### Example ```python @@ -2465,11 +2465,11 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Watch a OfflineVirtualMachine object. - api_response = api_instance.watch_namespaced_offline_virtual_machine(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + # Watch a VirtualMachine object. + api_response = api_instance.watch_namespaced_virtual_machine(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->watch_namespaced_offline_virtual_machine: %s\n" % e) + print("Exception when calling DefaultApi->watch_namespaced_virtual_machine: %s\n" % e) ``` ### Parameters @@ -2501,10 +2501,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **watch_namespaced_virtual_machine** -> V1WatchEvent watch_namespaced_virtual_machine(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **watch_namespaced_virtual_machine_instance** +> V1WatchEvent watch_namespaced_virtual_machine_instance(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Watch a VirtualMachine object. +Watch a VirtualMachineInstance object. ### Example ```python @@ -2532,11 +2532,11 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Watch a VirtualMachine object. - api_response = api_instance.watch_namespaced_virtual_machine(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + # Watch a VirtualMachineInstance object. + api_response = api_instance.watch_namespaced_virtual_machine_instance(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->watch_namespaced_virtual_machine: %s\n" % e) + print("Exception when calling DefaultApi->watch_namespaced_virtual_machine_instance: %s\n" % e) ``` ### Parameters @@ -2568,10 +2568,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **watch_namespaced_virtual_machine_preset** -> V1WatchEvent watch_namespaced_virtual_machine_preset(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **watch_namespaced_virtual_machine_instance_preset** +> V1WatchEvent watch_namespaced_virtual_machine_instance_preset(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Watch a VirtualMachinePreset object. +Watch a VirtualMachineInstancePreset object. ### Example ```python @@ -2599,11 +2599,11 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Watch a VirtualMachinePreset object. - api_response = api_instance.watch_namespaced_virtual_machine_preset(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + # Watch a VirtualMachineInstancePreset object. + api_response = api_instance.watch_namespaced_virtual_machine_instance_preset(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->watch_namespaced_virtual_machine_preset: %s\n" % e) + print("Exception when calling DefaultApi->watch_namespaced_virtual_machine_instance_preset: %s\n" % e) ``` ### Parameters @@ -2635,10 +2635,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **watch_namespaced_virtual_machine_replica_set** -> V1WatchEvent watch_namespaced_virtual_machine_replica_set(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **watch_namespaced_virtual_machine_instance_replica_set** +> V1WatchEvent watch_namespaced_virtual_machine_instance_replica_set(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Watch a VirtualMachineReplicaSet object. +Watch a VirtualMachineInstanceReplicaSet object. ### Example ```python @@ -2666,11 +2666,11 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Watch a VirtualMachineReplicaSet object. - api_response = api_instance.watch_namespaced_virtual_machine_replica_set(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + # Watch a VirtualMachineInstanceReplicaSet object. + api_response = api_instance.watch_namespaced_virtual_machine_instance_replica_set(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->watch_namespaced_virtual_machine_replica_set: %s\n" % e) + print("Exception when calling DefaultApi->watch_namespaced_virtual_machine_instance_replica_set: %s\n" % e) ``` ### Parameters @@ -2702,10 +2702,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **watch_offline_virtual_machine_list_for_all_namespaces** -> V1WatchEvent watch_offline_virtual_machine_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **watch_virtual_machine_instance_list_for_all_namespaces** +> V1WatchEvent watch_virtual_machine_instance_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Watch a OfflineVirtualMachineList object. +Watch a VirtualMachineInstanceList object. ### Example ```python @@ -2732,11 +2732,11 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Watch a OfflineVirtualMachineList object. - api_response = api_instance.watch_offline_virtual_machine_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + # Watch a VirtualMachineInstanceList object. + api_response = api_instance.watch_virtual_machine_instance_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->watch_offline_virtual_machine_list_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->watch_virtual_machine_instance_list_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -2767,10 +2767,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **watch_virtual_machine_list_for_all_namespaces** -> V1WatchEvent watch_virtual_machine_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **watch_virtual_machine_instance_preset_list_for_all_namespaces** +> V1WatchEvent watch_virtual_machine_instance_preset_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Watch a VirtualMachineList object. +Watch a VirtualMachineInstancePresetList object. ### Example ```python @@ -2797,11 +2797,11 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Watch a VirtualMachineList object. - api_response = api_instance.watch_virtual_machine_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + # Watch a VirtualMachineInstancePresetList object. + api_response = api_instance.watch_virtual_machine_instance_preset_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->watch_virtual_machine_list_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->watch_virtual_machine_instance_preset_list_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -2832,10 +2832,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **watch_virtual_machine_preset_list_for_all_namespaces** -> V1WatchEvent watch_virtual_machine_preset_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **watch_virtual_machine_instance_replica_set_list_for_all_namespaces** +> V1WatchEvent watch_virtual_machine_instance_replica_set_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Watch a VirtualMachinePresetList object. +Watch a VirtualMachineInstanceReplicaSetList object. ### Example ```python @@ -2862,11 +2862,11 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Watch a VirtualMachinePresetList object. - api_response = api_instance.watch_virtual_machine_preset_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + # Watch a VirtualMachineInstanceReplicaSetList object. + api_response = api_instance.watch_virtual_machine_instance_replica_set_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->watch_virtual_machine_preset_list_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->watch_virtual_machine_instance_replica_set_list_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -2897,10 +2897,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **watch_virtual_machine_replica_set_list_for_all_namespaces** -> V1WatchEvent watch_virtual_machine_replica_set_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **watch_virtual_machine_list_for_all_namespaces** +> V1WatchEvent watch_virtual_machine_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Watch a VirtualMachineReplicaSetList object. +Watch a VirtualMachineList object. ### Example ```python @@ -2927,11 +2927,11 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Watch a VirtualMachineReplicaSetList object. - api_response = api_instance.watch_virtual_machine_replica_set_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + # Watch a VirtualMachineList object. + api_response = api_instance.watch_virtual_machine_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->watch_virtual_machine_replica_set_list_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->watch_virtual_machine_list_for_all_namespaces: %s\n" % e) ``` ### Parameters diff --git a/docs/V1CPU.md b/docs/V1CPU.md index 2bc61f68..af90e424 100644 --- a/docs/V1CPU.md +++ b/docs/V1CPU.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cores** | **int** | Cores specifies the number of cores inside the vm. Must be a value greater or equal 1. | [optional] +**cores** | **int** | Cores specifies the number of cores inside the vmi. Must be a value greater or equal 1. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Clock.md b/docs/V1Clock.md index 7a24f3c7..323fb555 100644 --- a/docs/V1Clock.md +++ b/docs/V1Clock.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**timer** | [**V1Timer**](V1Timer.md) | Timer specifies whih timers are attached to the vm | +**timer** | [**V1Timer**](V1Timer.md) | Timer specifies whih timers are attached to the vmi | **timezone** | [**V1ClockOffsetTimezone**](V1ClockOffsetTimezone.md) | Timezone sets the guest clock to the specified timezone. Zone name follows the TZ environment variable format (e.g. 'America/New_York') | [optional] **utc** | [**V1ClockOffsetUTC**](V1ClockOffsetUTC.md) | UTC sets the guest clock to UTC on each boot. If an offset is specified, guest changes to the clock will be kept during reboots and are not reset. | [optional] diff --git a/docs/V1Devices.md b/docs/V1Devices.md index c935e50f..3e5e178f 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**disks** | [**list[V1Disk]**](V1Disk.md) | Disks describes disks, cdroms, floppy and luns which are connected to the vm | [optional] +**disks** | [**list[V1Disk]**](V1Disk.md) | Disks describes disks, cdroms, floppy and luns which are connected to the vmi | [optional] **interfaces** | [**list[V1Interface]**](V1Interface.md) | Interfaces describe network interfaces which are added to the vm | [optional] -**watchdog** | [**V1Watchdog**](V1Watchdog.md) | Watchdog describes a watchdog device which can be added to the vm | [optional] +**watchdog** | [**V1Watchdog**](V1Watchdog.md) | Watchdog describes a watchdog device which can be added to the vmi | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Disk.md b/docs/V1Disk.md index 7588d870..8beccc15 100644 --- a/docs/V1Disk.md +++ b/docs/V1Disk.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **boot_order** | **int** | BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Disks without a boot order are not tried if a disk with a boot order exists. +optional | [optional] -**cdrom** | [**V1CDRomTarget**](V1CDRomTarget.md) | Attach a volume as a cdrom to the vm | [optional] -**disk** | [**V1DiskTarget**](V1DiskTarget.md) | Attach a volume as a disk to the vm | [optional] -**floppy** | [**V1FloppyTarget**](V1FloppyTarget.md) | Attach a volume as a floppy to the vm | [optional] -**lun** | [**V1LunTarget**](V1LunTarget.md) | Attach a volume as a LUN to the vm | [optional] +**cdrom** | [**V1CDRomTarget**](V1CDRomTarget.md) | Attach a volume as a cdrom to the vmi | [optional] +**disk** | [**V1DiskTarget**](V1DiskTarget.md) | Attach a volume as a disk to the vmi | [optional] +**floppy** | [**V1FloppyTarget**](V1FloppyTarget.md) | Attach a volume as a floppy to the vmi | [optional] +**lun** | [**V1LunTarget**](V1LunTarget.md) | Attach a volume as a LUN to the vmi | [optional] **name** | **str** | Name is the device name | **volume_name** | **str** | Name of the volume which is referenced Must match the Name of a Volume. | diff --git a/docs/V1DomainSpec.md b/docs/V1DomainSpec.md index 84e17454..de8d543d 100644 --- a/docs/V1DomainSpec.md +++ b/docs/V1DomainSpec.md @@ -3,13 +3,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**clock** | [**V1Clock**](V1Clock.md) | Clock sets the clock and timers of the vm. +optional | [optional] -**cpu** | [**V1CPU**](V1CPU.md) | CPU allow specified the detailed CPU topology inside the vm. +optional | [optional] +**clock** | [**V1Clock**](V1Clock.md) | Clock sets the clock and timers of the vmi. +optional | [optional] +**cpu** | [**V1CPU**](V1CPU.md) | CPU allow specified the detailed CPU topology inside the vmi. +optional | [optional] **devices** | [**V1Devices**](V1Devices.md) | Devices allows adding disks, network interfaces, ... | **features** | [**V1Features**](V1Features.md) | Features like acpi, apic, hyperv +optional | [optional] **firmware** | [**V1Firmware**](V1Firmware.md) | Firmware +optional | [optional] **machine** | [**V1Machine**](V1Machine.md) | Machine type +optional | [optional] -**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | Resources describes the Compute Resources required by this vm. | [optional] +**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | Resources describes the Compute Resources required by this vmi. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1EphemeralVolumeSource.md b/docs/V1EphemeralVolumeSource.md index 5d1877ea..8fdf747b 100644 --- a/docs/V1EphemeralVolumeSource.md +++ b/docs/V1EphemeralVolumeSource.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**persistent_volume_claim** | [**V1PersistentVolumeClaimVolumeSource**](V1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vm via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims +optional | [optional] +**persistent_volume_claim** | [**V1PersistentVolumeClaimVolumeSource**](V1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1FeatureHyperv.md b/docs/V1FeatureHyperv.md index 68b831c0..a1b204ed 100644 --- a/docs/V1FeatureHyperv.md +++ b/docs/V1FeatureHyperv.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **relaxed** | [**V1FeatureState**](V1FeatureState.md) | Relaxed relaxes constraints on timer Defaults to the machine type setting +optional | [optional] -**reset** | [**V1FeatureState**](V1FeatureState.md) | Reset enables Hyperv reboot/reset for the vm Defaults to the machine type setting +optional | [optional] +**reset** | [**V1FeatureState**](V1FeatureState.md) | Reset enables Hyperv reboot/reset for the vmi Defaults to the machine type setting +optional | [optional] **runtime** | [**V1FeatureState**](V1FeatureState.md) | Runtime Defaults to the machine type setting +optional | [optional] **spinlocks** | [**V1FeatureSpinlocks**](V1FeatureSpinlocks.md) | Spinlocks indicates if spinlocks should be made available to the guest +optional | [optional] **synic** | [**V1FeatureState**](V1FeatureState.md) | SyNIC enable Synthetic Interrupt Controller Defaults to the machine type setting +optional | [optional] diff --git a/docs/V1FeatureVendorID.md b/docs/V1FeatureVendorID.md index ce88ab55..f3bbd643 100644 --- a/docs/V1FeatureVendorID.md +++ b/docs/V1FeatureVendorID.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **enabled** | **bool** | Enabled determines if the feature should be enabled or disabled on the guest Defaults to true +optional | [optional] -**vendorid** | **str** | VendorID sets the hypervisor vendor id, visible to the vm String up to twelve characters | [optional] +**vendorid** | **str** | VendorID sets the hypervisor vendor id, visible to the vmi String up to twelve characters | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Firmware.md b/docs/V1Firmware.md index 4685f9b6..c117648b 100644 --- a/docs/V1Firmware.md +++ b/docs/V1Firmware.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**uuid** | **str** | UUID reported by the vm bios Defaults to a random generated uid | [optional] +**uuid** | **str** | UUID reported by the vmi bios Defaults to a random generated uid | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Machine.md b/docs/V1Machine.md index 85509514..85576308 100644 --- a/docs/V1Machine.md +++ b/docs/V1Machine.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | QEMU machine type is the actual chipset of the VM. | +**type** | **str** | QEMU machine type is the actual chipset of the VirtualMachineInstance. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1OfflineVirtualMachineSpec.md b/docs/V1OfflineVirtualMachineSpec.md deleted file mode 100644 index a1489f72..00000000 --- a/docs/V1OfflineVirtualMachineSpec.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1OfflineVirtualMachineSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**running** | **bool** | Running controls whether the associatied VirtualMachine is created or not | -**template** | [**V1VMTemplateSpec**](V1VMTemplateSpec.md) | Template is the direct specification of VirtualMachine | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1OfflineVirtualMachineStatus.md b/docs/V1OfflineVirtualMachineStatus.md deleted file mode 100644 index 24c9ab89..00000000 --- a/docs/V1OfflineVirtualMachineStatus.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1OfflineVirtualMachineStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**conditions** | [**list[V1OfflineVirtualMachineCondition]**](V1OfflineVirtualMachineCondition.md) | Hold the state information of the OfflineVirtualMachine and its VirtualMachine | [optional] -**created** | **bool** | Created indicates if the virtual machine is created in the cluster | [optional] -**ready** | **bool** | Ready indicates if the virtual machine is running and ready | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1ResourceRequirements.md b/docs/V1ResourceRequirements.md index 3a9ca9ef..8d2be026 100644 --- a/docs/V1ResourceRequirements.md +++ b/docs/V1ResourceRequirements.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **limits** | **object** | Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". +optional | [optional] -**requests** | **object** | Requests is a description of the initial vm resources. Valid resource keys are \"memory\" and \"cpu\". +optional | [optional] +**requests** | **object** | Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachine.md b/docs/V1VirtualMachine.md index 554f93ab..3186e14b 100644 --- a/docs/V1VirtualMachine.md +++ b/docs/V1VirtualMachine.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1VirtualMachineSpec**](V1VirtualMachineSpec.md) | VM Spec contains the VM specification. | [optional] -**status** | [**V1VirtualMachineStatus**](V1VirtualMachineStatus.md) | Status is the high level overview of how the VM is doing. It contains information available to controllers and users. | [optional] +**spec** | [**V1VirtualMachineSpec**](V1VirtualMachineSpec.md) | Spec contains the specification of VirtualMachineInstance created | [optional] +**status** | [**V1VirtualMachineStatus**](V1VirtualMachineStatus.md) | Status holds the current state of the controller and brief information about its associated VirtualMachineInstance | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1OfflineVirtualMachine.md b/docs/V1VirtualMachineInstance.md similarity index 68% rename from docs/V1OfflineVirtualMachine.md rename to docs/V1VirtualMachineInstance.md index 8c48d358..ec72fdae 100644 --- a/docs/V1OfflineVirtualMachine.md +++ b/docs/V1VirtualMachineInstance.md @@ -1,4 +1,4 @@ -# V1OfflineVirtualMachine +# V1VirtualMachineInstance ## Properties Name | Type | Description | Notes @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1OfflineVirtualMachineSpec**](V1OfflineVirtualMachineSpec.md) | Spec contains the specification of VirtualMachine created | [optional] -**status** | [**V1OfflineVirtualMachineStatus**](V1OfflineVirtualMachineStatus.md) | Status holds the current state of the controller and brief information about its associated VirtualMachine | [optional] +**spec** | [**V1VirtualMachineInstanceSpec**](V1VirtualMachineInstanceSpec.md) | VirtualMachineInstance Spec contains the VirtualMachineInstance specification. | [optional] +**status** | [**V1VirtualMachineInstanceStatus**](V1VirtualMachineInstanceStatus.md) | Status is the high level overview of how the VirtualMachineInstance is doing. It contains information available to controllers and users. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1OfflineVirtualMachineCondition.md b/docs/V1VirtualMachineInstanceCondition.md similarity index 93% rename from docs/V1OfflineVirtualMachineCondition.md rename to docs/V1VirtualMachineInstanceCondition.md index ac71a7db..a69c27fd 100644 --- a/docs/V1OfflineVirtualMachineCondition.md +++ b/docs/V1VirtualMachineInstanceCondition.md @@ -1,4 +1,4 @@ -# V1OfflineVirtualMachineCondition +# V1VirtualMachineInstanceCondition ## Properties Name | Type | Description | Notes diff --git a/docs/V1VirtualMachinePresetList.md b/docs/V1VirtualMachineInstanceList.md similarity index 89% rename from docs/V1VirtualMachinePresetList.md rename to docs/V1VirtualMachineInstanceList.md index cf5e3178..39c32a08 100644 --- a/docs/V1VirtualMachinePresetList.md +++ b/docs/V1VirtualMachineInstanceList.md @@ -1,10 +1,10 @@ -# V1VirtualMachinePresetList +# V1VirtualMachineInstanceList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] -**items** | [**list[V1VirtualMachinePreset]**](V1VirtualMachinePreset.md) | | +**items** | [**list[V1VirtualMachineInstance]**](V1VirtualMachineInstance.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/docs/V1VirtualMachineNetworkInterface.md b/docs/V1VirtualMachineInstanceNetworkInterface.md similarity index 91% rename from docs/V1VirtualMachineNetworkInterface.md rename to docs/V1VirtualMachineInstanceNetworkInterface.md index ceb5ce5a..b65190ec 100644 --- a/docs/V1VirtualMachineNetworkInterface.md +++ b/docs/V1VirtualMachineInstanceNetworkInterface.md @@ -1,4 +1,4 @@ -# V1VirtualMachineNetworkInterface +# V1VirtualMachineInstanceNetworkInterface ## Properties Name | Type | Description | Notes diff --git a/docs/V1VirtualMachinePreset.md b/docs/V1VirtualMachineInstancePreset.md similarity index 81% rename from docs/V1VirtualMachinePreset.md rename to docs/V1VirtualMachineInstancePreset.md index de55feab..9df081f7 100644 --- a/docs/V1VirtualMachinePreset.md +++ b/docs/V1VirtualMachineInstancePreset.md @@ -1,4 +1,4 @@ -# V1VirtualMachinePreset +# V1VirtualMachineInstancePreset ## Properties Name | Type | Description | Notes @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1VirtualMachinePresetSpec**](V1VirtualMachinePresetSpec.md) | VM Spec contains the VM specification. | [optional] +**spec** | [**V1VirtualMachineInstancePresetSpec**](V1VirtualMachineInstancePresetSpec.md) | VirtualMachineInstance Spec contains the VirtualMachineInstance specification. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineReplicaSetList.md b/docs/V1VirtualMachineInstancePresetList.md similarity index 87% rename from docs/V1VirtualMachineReplicaSetList.md rename to docs/V1VirtualMachineInstancePresetList.md index bf33f238..75533746 100644 --- a/docs/V1VirtualMachineReplicaSetList.md +++ b/docs/V1VirtualMachineInstancePresetList.md @@ -1,10 +1,10 @@ -# V1VirtualMachineReplicaSetList +# V1VirtualMachineInstancePresetList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] -**items** | [**list[V1VirtualMachineReplicaSet]**](V1VirtualMachineReplicaSet.md) | | +**items** | [**list[V1VirtualMachineInstancePreset]**](V1VirtualMachineInstancePreset.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/docs/V1VirtualMachinePresetSpec.md b/docs/V1VirtualMachineInstancePresetSpec.md similarity index 70% rename from docs/V1VirtualMachinePresetSpec.md rename to docs/V1VirtualMachineInstancePresetSpec.md index cea2a50f..98791e49 100644 --- a/docs/V1VirtualMachinePresetSpec.md +++ b/docs/V1VirtualMachineInstancePresetSpec.md @@ -1,10 +1,10 @@ -# V1VirtualMachinePresetSpec +# V1VirtualMachineInstancePresetSpec ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**domain** | [**V1DomainSpec**](V1DomainSpec.md) | Domain is the same object type as contained in VirtualMachineSpec | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Selector is a label query over a set of VMs. Required. | +**domain** | [**V1DomainSpec**](V1DomainSpec.md) | Domain is the same object type as contained in VirtualMachineInstanceSpec | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Selector is a label query over a set of VMIs. Required. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineReplicaSet.md b/docs/V1VirtualMachineInstanceReplicaSet.md similarity index 66% rename from docs/V1VirtualMachineReplicaSet.md rename to docs/V1VirtualMachineInstanceReplicaSet.md index 22ae4e6b..9dadd3d2 100644 --- a/docs/V1VirtualMachineReplicaSet.md +++ b/docs/V1VirtualMachineInstanceReplicaSet.md @@ -1,4 +1,4 @@ -# V1VirtualMachineReplicaSet +# V1VirtualMachineInstanceReplicaSet ## Properties Name | Type | Description | Notes @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1VMReplicaSetSpec**](V1VMReplicaSetSpec.md) | VM Spec contains the VM specification. | [optional] -**status** | [**V1VMReplicaSetStatus**](V1VMReplicaSetStatus.md) | Status is the high level overview of how the VM is doing. It contains information available to controllers and users. | [optional] +**spec** | [**V1VirtualMachineInstanceReplicaSetSpec**](V1VirtualMachineInstanceReplicaSetSpec.md) | VirtualMachineInstance Spec contains the VirtualMachineInstance specification. | [optional] +**status** | [**V1VirtualMachineInstanceReplicaSetStatus**](V1VirtualMachineInstanceReplicaSetStatus.md) | Status is the high level overview of how the VirtualMachineInstance is doing. It contains information available to controllers and users. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VMReplicaSetCondition.md b/docs/V1VirtualMachineInstanceReplicaSetCondition.md similarity index 91% rename from docs/V1VMReplicaSetCondition.md rename to docs/V1VirtualMachineInstanceReplicaSetCondition.md index a1edb14d..7fdf644f 100644 --- a/docs/V1VMReplicaSetCondition.md +++ b/docs/V1VirtualMachineInstanceReplicaSetCondition.md @@ -1,4 +1,4 @@ -# V1VMReplicaSetCondition +# V1VirtualMachineInstanceReplicaSetCondition ## Properties Name | Type | Description | Notes diff --git a/docs/V1OfflineVirtualMachineList.md b/docs/V1VirtualMachineInstanceReplicaSetList.md similarity index 81% rename from docs/V1OfflineVirtualMachineList.md rename to docs/V1VirtualMachineInstanceReplicaSetList.md index 59acde34..0d1bcfaa 100644 --- a/docs/V1OfflineVirtualMachineList.md +++ b/docs/V1VirtualMachineInstanceReplicaSetList.md @@ -1,12 +1,12 @@ -# V1OfflineVirtualMachineList +# V1VirtualMachineInstanceReplicaSetList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] -**items** | [**list[V1OfflineVirtualMachine]**](V1OfflineVirtualMachine.md) | Items is a list of OfflineVirtualMachines | +**items** | [**list[V1VirtualMachineInstanceReplicaSet]**](V1VirtualMachineInstanceReplicaSet.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VMReplicaSetSpec.md b/docs/V1VirtualMachineInstanceReplicaSetSpec.md similarity index 78% rename from docs/V1VMReplicaSetSpec.md rename to docs/V1VirtualMachineInstanceReplicaSetSpec.md index 25463ecc..2fcb5292 100644 --- a/docs/V1VMReplicaSetSpec.md +++ b/docs/V1VirtualMachineInstanceReplicaSetSpec.md @@ -1,4 +1,4 @@ -# V1VMReplicaSetSpec +# V1VirtualMachineInstanceReplicaSetSpec ## Properties Name | Type | Description | Notes @@ -6,7 +6,7 @@ Name | Type | Description | Notes **paused** | **bool** | Indicates that the replica set is paused. +optional | [optional] **replicas** | **int** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. +optional | [optional] **selector** | [**V1LabelSelector**](V1LabelSelector.md) | Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. | -**template** | [**V1VMTemplateSpec**](V1VMTemplateSpec.md) | Template describes the pods that will be created. | +**template** | [**V1VirtualMachineInstanceTemplateSpec**](V1VirtualMachineInstanceTemplateSpec.md) | Template describes the pods that will be created. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VMReplicaSetStatus.md b/docs/V1VirtualMachineInstanceReplicaSetStatus.md similarity index 74% rename from docs/V1VMReplicaSetStatus.md rename to docs/V1VirtualMachineInstanceReplicaSetStatus.md index 41f86a49..6dab1459 100644 --- a/docs/V1VMReplicaSetStatus.md +++ b/docs/V1VirtualMachineInstanceReplicaSetStatus.md @@ -1,9 +1,9 @@ -# V1VMReplicaSetStatus +# V1VirtualMachineInstanceReplicaSetStatus ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**conditions** | [**list[V1VMReplicaSetCondition]**](V1VMReplicaSetCondition.md) | | [optional] +**conditions** | [**list[V1VirtualMachineInstanceReplicaSetCondition]**](V1VirtualMachineInstanceReplicaSetCondition.md) | | [optional] **ready_replicas** | **int** | The number of ready replicas for this replica set. +optional | [optional] **replicas** | **int** | Total number of non-terminated pods targeted by this deployment (their labels match the selector). +optional | [optional] diff --git a/docs/V1VirtualMachineInstanceSpec.md b/docs/V1VirtualMachineInstanceSpec.md new file mode 100644 index 00000000..9c248672 --- /dev/null +++ b/docs/V1VirtualMachineInstanceSpec.md @@ -0,0 +1,17 @@ +# V1VirtualMachineInstanceSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**affinity** | [**V1Affinity**](V1Affinity.md) | If affinity is specifies, obey all the affinity rules | [optional] +**domain** | [**V1DomainSpec**](V1DomainSpec.md) | Specification of the desired behavior of the VirtualMachineInstance on the host. | +**hostname** | **str** | Specifies the hostname of the vmi If not specified, the hostname will be set to the name of the vmi, if dhcp or cloud-init is configured properly. +optional | [optional] +**networks** | [**list[V1Network]**](V1Network.md) | List of networks that can be attached to a vm's virtual interface. | [optional] +**node_selector** | **object** | NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional | [optional] +**subdomain** | **str** | If specified, the fully qualified vmi hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the vmi will not have a domainname at all. The DNS entry will resolve to the vmi, no matter if the vmi itself can pick up a hostname. +optional | [optional] +**termination_grace_period_seconds** | **int** | Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. | [optional] +**volumes** | [**list[V1Volume]**](V1Volume.md) | List of volumes that can be mounted by disks belonging to the vmi. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md new file mode 100644 index 00000000..d9b864d2 --- /dev/null +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -0,0 +1,13 @@ +# V1VirtualMachineInstanceStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**list[V1VirtualMachineInstanceCondition]**](V1VirtualMachineInstanceCondition.md) | Conditions are specific points in VirtualMachineInstance's pod runtime. | [optional] +**interfaces** | [**list[V1VirtualMachineInstanceNetworkInterface]**](V1VirtualMachineInstanceNetworkInterface.md) | Interfaces represent the details of available network interfaces. | [optional] +**node_name** | **str** | NodeName is the name where the VirtualMachineInstance is currently running. | [optional] +**phase** | **str** | Phase is the status of the VirtualMachineInstance in kubernetes world. It is not the VirtualMachineInstance status, but partially correlates to it. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VMTemplateSpec.md b/docs/V1VirtualMachineInstanceTemplateSpec.md similarity index 61% rename from docs/V1VMTemplateSpec.md rename to docs/V1VirtualMachineInstanceTemplateSpec.md index 4533d83c..7da7be3f 100644 --- a/docs/V1VMTemplateSpec.md +++ b/docs/V1VirtualMachineInstanceTemplateSpec.md @@ -1,10 +1,10 @@ -# V1VMTemplateSpec +# V1VirtualMachineInstanceTemplateSpec ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1VirtualMachineSpec**](V1VirtualMachineSpec.md) | VM Spec contains the VM specification. | [optional] +**spec** | [**V1VirtualMachineInstanceSpec**](V1VirtualMachineInstanceSpec.md) | VirtualMachineInstance Spec contains the VirtualMachineInstance specification. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineList.md b/docs/V1VirtualMachineList.md index ac31ea99..33b81a77 100644 --- a/docs/V1VirtualMachineList.md +++ b/docs/V1VirtualMachineList.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] -**items** | [**list[V1VirtualMachine]**](V1VirtualMachine.md) | | +**items** | [**list[V1VirtualMachine]**](V1VirtualMachine.md) | Items is a list of VirtualMachines | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineSpec.md b/docs/V1VirtualMachineSpec.md index 0846d05d..1ce4ac2a 100644 --- a/docs/V1VirtualMachineSpec.md +++ b/docs/V1VirtualMachineSpec.md @@ -3,14 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**affinity** | [**V1Affinity**](V1Affinity.md) | If affinity is specifies, obey all the affinity rules | [optional] -**domain** | [**V1DomainSpec**](V1DomainSpec.md) | Specification of the desired behavior of the VirtualMachine on the host. | -**hostname** | **str** | Specifies the hostname of the vm If not specified, the hostname will be set to the name of the vm, if dhcp or cloud-init is configured properly. +optional | [optional] -**networks** | [**list[V1Network]**](V1Network.md) | List of networks that can be attached to a vm's virtual interface. | [optional] -**node_selector** | **object** | NodeSelector is a selector which must be true for the vm to fit on a node. Selector which must match a node's labels for the vm to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional | [optional] -**subdomain** | **str** | If specified, the fully qualified vm hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the vm will not have a domainname at all. The DNS entry will resolve to the vm, no matter if the vm itself can pick up a hostname. +optional | [optional] -**termination_grace_period_seconds** | **int** | Grace period observed after signalling a VM to stop after which the VM is force terminated. | [optional] -**volumes** | [**list[V1Volume]**](V1Volume.md) | List of volumes that can be mounted by disks belonging to the vm. | [optional] +**running** | **bool** | Running controls whether the associatied VirtualMachineInstance is created or not | +**template** | [**V1VirtualMachineInstanceTemplateSpec**](V1VirtualMachineInstanceTemplateSpec.md) | Template is the direct specification of VirtualMachineInstance | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineStatus.md b/docs/V1VirtualMachineStatus.md index eb65ef3e..50f88c97 100644 --- a/docs/V1VirtualMachineStatus.md +++ b/docs/V1VirtualMachineStatus.md @@ -3,10 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**conditions** | [**list[V1VirtualMachineCondition]**](V1VirtualMachineCondition.md) | Conditions are specific points in VM's pod runtime. | [optional] -**interfaces** | [**list[V1VirtualMachineNetworkInterface]**](V1VirtualMachineNetworkInterface.md) | Interfaces represent the details of available network interfaces. | [optional] -**node_name** | **str** | NodeName is the name where the VM is currently running. | [optional] -**phase** | **str** | Phase is the status of the VM in kubernetes world. It is not the VM status, but partially correlates to it. | [optional] +**conditions** | [**list[V1VirtualMachineCondition]**](V1VirtualMachineCondition.md) | Hold the state information of the VirtualMachine and its VirtualMachineInstance | [optional] +**created** | **bool** | Created indicates if the virtual machine is created in the cluster | [optional] +**ready** | **bool** | Ready indicates if the virtual machine is running and ready | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Volume.md b/docs/V1Volume.md index 785ff7c3..20f48a18 100644 --- a/docs/V1Volume.md +++ b/docs/V1Volume.md @@ -3,11 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cloud_init_no_cloud** | [**V1CloudInitNoCloudSource**](V1CloudInitNoCloudSource.md) | CloudInitNoCloud represents a cloud-init NoCloud user-data source. The NoCloud data will be added as a disk to the vm. A proper cloud-init installation is required inside the guest. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html +optional | [optional] -**empty_disk** | [**V1EmptyDiskSource**](V1EmptyDiskSource.md) | EmptyDisk represents a temporary disk which shares the vms lifecycle More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html +optional | [optional] +**cloud_init_no_cloud** | [**V1CloudInitNoCloudSource**](V1CloudInitNoCloudSource.md) | CloudInitNoCloud represents a cloud-init NoCloud user-data source. The NoCloud data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html +optional | [optional] +**empty_disk** | [**V1EmptyDiskSource**](V1EmptyDiskSource.md) | EmptyDisk represents a temporary disk which shares the vmis lifecycle More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html +optional | [optional] **ephemeral** | [**V1EphemeralVolumeSource**](V1EphemeralVolumeSource.md) | Ephemeral is a special volume source that \"wraps\" specified source and provides copy-on-write image on top of it. +optional | [optional] -**name** | **str** | Volume's name. Must be a DNS_LABEL and unique within the vm. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | -**persistent_volume_claim** | [**V1PersistentVolumeClaimVolumeSource**](V1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vm via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims +optional | [optional] +**name** | **str** | Volume's name. Must be a DNS_LABEL and unique within the vmi. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | +**persistent_volume_claim** | [**V1PersistentVolumeClaimVolumeSource**](V1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims +optional | [optional] **registry_disk** | [**V1RegistryDiskSource**](V1RegistryDiskSource.md) | RegistryDisk references a docker image, embedding a qcow or raw disk More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index a63af3aa..216d32bc 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.6.0-32-g49663421" + release_note="Auto-generated client v0.6.0-52-gf7751045" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 973c5fd5..30bf18a4 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -137,21 +137,6 @@ [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_object_meta.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_object_meta.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ObjectMeta.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_offline_virtual_machine.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_offline_virtual_machine.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1OfflineVirtualMachine.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_offline_virtual_machine_condition.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_offline_virtual_machine_condition.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1OfflineVirtualMachineCondition.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_offline_virtual_machine_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_offline_virtual_machine_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1OfflineVirtualMachineList.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_offline_virtual_machine_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_offline_virtual_machine_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1OfflineVirtualMachineSpec.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_offline_virtual_machine_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_offline_virtual_machine_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1OfflineVirtualMachineStatus.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_owner_reference.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_owner_reference.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1OwnerReference.md @@ -200,45 +185,60 @@ [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Timer.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_vm_replica_set_condition.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_vm_replica_set_condition.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VMReplicaSetCondition.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_vm_replica_set_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_vm_replica_set_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VMReplicaSetSpec.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_vm_replica_set_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_vm_replica_set_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VMReplicaSetStatus.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_vm_template_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_vm_template_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VMTemplateSpec.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachine.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_condition.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_condition.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineCondition.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstance.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceCondition.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_network_interface.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_network_interface.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceNetworkInterface.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_preset.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_preset.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstancePreset.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_preset_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_preset_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstancePresetList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_preset_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_preset_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstancePresetSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_replica_set.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_replica_set.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceReplicaSet.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_replica_set_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_replica_set_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceReplicaSetCondition.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_replica_set_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_replica_set_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceReplicaSetList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_replica_set_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_replica_set_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceReplicaSetSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_replica_set_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_replica_set_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceReplicaSetStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_template_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_template_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceTemplateSpec.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineList.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_network_interface.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_network_interface.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineNetworkInterface.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_preset.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_preset.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachinePreset.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_preset_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_preset_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachinePresetList.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_preset_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_preset_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachinePresetSpec.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_replica_set.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_replica_set.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineReplicaSet.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_replica_set_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_replica_set_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineReplicaSetList.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineSpec.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 9735457f..e62f03d3 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -59,11 +59,6 @@ from .models.v1_node_selector_requirement import V1NodeSelectorRequirement from .models.v1_node_selector_term import V1NodeSelectorTerm from .models.v1_object_meta import V1ObjectMeta -from .models.v1_offline_virtual_machine import V1OfflineVirtualMachine -from .models.v1_offline_virtual_machine_condition import V1OfflineVirtualMachineCondition -from .models.v1_offline_virtual_machine_list import V1OfflineVirtualMachineList -from .models.v1_offline_virtual_machine_spec import V1OfflineVirtualMachineSpec -from .models.v1_offline_virtual_machine_status import V1OfflineVirtualMachineStatus from .models.v1_owner_reference import V1OwnerReference from .models.v1_pit_timer import V1PITTimer from .models.v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource @@ -80,19 +75,24 @@ from .models.v1_status_cause import V1StatusCause from .models.v1_status_details import V1StatusDetails from .models.v1_timer import V1Timer -from .models.v1_vm_replica_set_condition import V1VMReplicaSetCondition -from .models.v1_vm_replica_set_spec import V1VMReplicaSetSpec -from .models.v1_vm_replica_set_status import V1VMReplicaSetStatus -from .models.v1_vm_template_spec import V1VMTemplateSpec from .models.v1_virtual_machine import V1VirtualMachine from .models.v1_virtual_machine_condition import V1VirtualMachineCondition +from .models.v1_virtual_machine_instance import V1VirtualMachineInstance +from .models.v1_virtual_machine_instance_condition import V1VirtualMachineInstanceCondition +from .models.v1_virtual_machine_instance_list import V1VirtualMachineInstanceList +from .models.v1_virtual_machine_instance_network_interface import V1VirtualMachineInstanceNetworkInterface +from .models.v1_virtual_machine_instance_preset import V1VirtualMachineInstancePreset +from .models.v1_virtual_machine_instance_preset_list import V1VirtualMachineInstancePresetList +from .models.v1_virtual_machine_instance_preset_spec import V1VirtualMachineInstancePresetSpec +from .models.v1_virtual_machine_instance_replica_set import V1VirtualMachineInstanceReplicaSet +from .models.v1_virtual_machine_instance_replica_set_condition import V1VirtualMachineInstanceReplicaSetCondition +from .models.v1_virtual_machine_instance_replica_set_list import V1VirtualMachineInstanceReplicaSetList +from .models.v1_virtual_machine_instance_replica_set_spec import V1VirtualMachineInstanceReplicaSetSpec +from .models.v1_virtual_machine_instance_replica_set_status import V1VirtualMachineInstanceReplicaSetStatus +from .models.v1_virtual_machine_instance_spec import V1VirtualMachineInstanceSpec +from .models.v1_virtual_machine_instance_status import V1VirtualMachineInstanceStatus +from .models.v1_virtual_machine_instance_template_spec import V1VirtualMachineInstanceTemplateSpec from .models.v1_virtual_machine_list import V1VirtualMachineList -from .models.v1_virtual_machine_network_interface import V1VirtualMachineNetworkInterface -from .models.v1_virtual_machine_preset import V1VirtualMachinePreset -from .models.v1_virtual_machine_preset_list import V1VirtualMachinePresetList -from .models.v1_virtual_machine_preset_spec import V1VirtualMachinePresetSpec -from .models.v1_virtual_machine_replica_set import V1VirtualMachineReplicaSet -from .models.v1_virtual_machine_replica_set_list import V1VirtualMachineReplicaSetList from .models.v1_virtual_machine_spec import V1VirtualMachineSpec from .models.v1_virtual_machine_status import V1VirtualMachineStatus from .models.v1_volume import V1Volume diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index b9235d82..7d333d69 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.6.0-32-g49663421/python' + self.user_agent = 'Swagger-Codegen/v0.6.0-52-gf7751045/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 78597d38..a50c737f 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -121,7 +121,7 @@ def check_health_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/healthz', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/healthz', 'GET', path_params, query_params, header_params, @@ -138,7 +138,7 @@ def check_health_with_http_info(self, **kwargs): def console(self, namespace, name, **kwargs): """ - Open a websocket connection to a serial console on the specified VM. + Open a websocket connection to a serial console on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -164,7 +164,7 @@ def console(self, namespace, name, **kwargs): def console_with_http_info(self, namespace, name, **kwargs): """ - Open a websocket connection to a serial console on the specified VM. + Open a websocket connection to a serial console on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -228,7 +228,7 @@ def console_with_http_info(self, namespace, name, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}/console', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/console', 'GET', path_params, query_params, header_params, @@ -243,48 +243,48 @@ def console_with_http_info(self, namespace, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_offline_virtual_machine(self, body, namespace, **kwargs): + def create_namespaced_virtual_machine(self, body, namespace, **kwargs): """ - Create a OfflineVirtualMachine object. + Create a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_offline_virtual_machine(body, namespace, callback=callback_function) + >>> thread = api.create_namespaced_virtual_machine(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1OfflineVirtualMachine body: (required) + :param V1VirtualMachine body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1OfflineVirtualMachine + :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_offline_virtual_machine_with_http_info(body, namespace, **kwargs) + return self.create_namespaced_virtual_machine_with_http_info(body, namespace, **kwargs) else: - (data) = self.create_namespaced_offline_virtual_machine_with_http_info(body, namespace, **kwargs) + (data) = self.create_namespaced_virtual_machine_with_http_info(body, namespace, **kwargs) return data - def create_namespaced_offline_virtual_machine_with_http_info(self, body, namespace, **kwargs): + def create_namespaced_virtual_machine_with_http_info(self, body, namespace, **kwargs): """ - Create a OfflineVirtualMachine object. + Create a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_offline_virtual_machine_with_http_info(body, namespace, callback=callback_function) + >>> thread = api.create_namespaced_virtual_machine_with_http_info(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1OfflineVirtualMachine body: (required) + :param V1VirtualMachine body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1OfflineVirtualMachine + :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ @@ -300,19 +300,19 @@ def create_namespaced_offline_virtual_machine_with_http_info(self, body, namespa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_offline_virtual_machine" % key + " to method create_namespaced_virtual_machine" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_offline_virtual_machine`") + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_offline_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `create_namespaced_offline_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `create_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -341,14 +341,14 @@ def create_namespaced_offline_virtual_machine_with_http_info(self, body, namespa # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1OfflineVirtualMachine', + response_type='V1VirtualMachine', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -356,48 +356,48 @@ def create_namespaced_offline_virtual_machine_with_http_info(self, body, namespa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_virtual_machine(self, body, namespace, **kwargs): + def create_namespaced_virtual_machine_instance(self, body, namespace, **kwargs): """ - Create a VirtualMachine object. + Create a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_virtual_machine(body, namespace, callback=callback_function) + >>> thread = api.create_namespaced_virtual_machine_instance(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachine body: (required) + :param V1VirtualMachineInstance body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachine + :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_virtual_machine_with_http_info(body, namespace, **kwargs) + return self.create_namespaced_virtual_machine_instance_with_http_info(body, namespace, **kwargs) else: - (data) = self.create_namespaced_virtual_machine_with_http_info(body, namespace, **kwargs) + (data) = self.create_namespaced_virtual_machine_instance_with_http_info(body, namespace, **kwargs) return data - def create_namespaced_virtual_machine_with_http_info(self, body, namespace, **kwargs): + def create_namespaced_virtual_machine_instance_with_http_info(self, body, namespace, **kwargs): """ - Create a VirtualMachine object. + Create a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_virtual_machine_with_http_info(body, namespace, callback=callback_function) + >>> thread = api.create_namespaced_virtual_machine_instance_with_http_info(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachine body: (required) + :param V1VirtualMachineInstance body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachine + :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ @@ -413,19 +413,19 @@ def create_namespaced_virtual_machine_with_http_info(self, body, namespace, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_virtual_machine" % key + " to method create_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine_instance`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_instance`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `create_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `create_namespaced_virtual_machine_instance`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -454,14 +454,14 @@ def create_namespaced_virtual_machine_with_http_info(self, body, namespace, **kw # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachine', + response_type='V1VirtualMachineInstance', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -469,48 +469,48 @@ def create_namespaced_virtual_machine_with_http_info(self, body, namespace, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_virtual_machine_preset(self, body, namespace, **kwargs): + def create_namespaced_virtual_machine_instance_preset(self, body, namespace, **kwargs): """ - Create a VirtualMachinePreset object. + Create a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_virtual_machine_preset(body, namespace, callback=callback_function) + >>> thread = api.create_namespaced_virtual_machine_instance_preset(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachinePreset body: (required) + :param V1VirtualMachineInstancePreset body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachinePreset + :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_virtual_machine_preset_with_http_info(body, namespace, **kwargs) + return self.create_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, **kwargs) else: - (data) = self.create_namespaced_virtual_machine_preset_with_http_info(body, namespace, **kwargs) + (data) = self.create_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, **kwargs) return data - def create_namespaced_virtual_machine_preset_with_http_info(self, body, namespace, **kwargs): + def create_namespaced_virtual_machine_instance_preset_with_http_info(self, body, namespace, **kwargs): """ - Create a VirtualMachinePreset object. + Create a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_virtual_machine_preset_with_http_info(body, namespace, callback=callback_function) + >>> thread = api.create_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachinePreset body: (required) + :param V1VirtualMachineInstancePreset body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachinePreset + :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ @@ -526,19 +526,19 @@ def create_namespaced_virtual_machine_preset_with_http_info(self, body, namespac if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_virtual_machine_preset" % key + " to method create_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine_preset`") + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine_instance_preset`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_instance_preset`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `create_namespaced_virtual_machine_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `create_namespaced_virtual_machine_instance_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -567,14 +567,14 @@ def create_namespaced_virtual_machine_preset_with_http_info(self, body, namespac # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachinePreset', + response_type='V1VirtualMachineInstancePreset', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -582,48 +582,48 @@ def create_namespaced_virtual_machine_preset_with_http_info(self, body, namespac _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_virtual_machine_replica_set(self, body, namespace, **kwargs): + def create_namespaced_virtual_machine_instance_replica_set(self, body, namespace, **kwargs): """ - Create a VirtualMachineReplicaSet object. + Create a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_virtual_machine_replica_set(body, namespace, callback=callback_function) + >>> thread = api.create_namespaced_virtual_machine_instance_replica_set(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachineReplicaSet body: (required) + :param V1VirtualMachineInstanceReplicaSet body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachineReplicaSet + :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_virtual_machine_replica_set_with_http_info(body, namespace, **kwargs) + return self.create_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, **kwargs) else: - (data) = self.create_namespaced_virtual_machine_replica_set_with_http_info(body, namespace, **kwargs) + (data) = self.create_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, **kwargs) return data - def create_namespaced_virtual_machine_replica_set_with_http_info(self, body, namespace, **kwargs): + def create_namespaced_virtual_machine_instance_replica_set_with_http_info(self, body, namespace, **kwargs): """ - Create a VirtualMachineReplicaSet object. + Create a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_virtual_machine_replica_set_with_http_info(body, namespace, callback=callback_function) + >>> thread = api.create_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachineReplicaSet body: (required) + :param V1VirtualMachineInstanceReplicaSet body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachineReplicaSet + :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ @@ -639,19 +639,19 @@ def create_namespaced_virtual_machine_replica_set_with_http_info(self, body, nam if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_virtual_machine_replica_set" % key + " to method create_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine_replica_set`") + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine_instance_replica_set`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_instance_replica_set`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `create_namespaced_virtual_machine_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `create_namespaced_virtual_machine_instance_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -680,14 +680,14 @@ def create_namespaced_virtual_machine_replica_set_with_http_info(self, body, nam # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineReplicaSet', + response_type='V1VirtualMachineInstanceReplicaSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -695,16 +695,16 @@ def create_namespaced_virtual_machine_replica_set_with_http_info(self, body, nam _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_offline_virtual_machine(self, **kwargs): + def delete_collection_namespaced_virtual_machine(self, **kwargs): """ - Delete a collection of OfflineVirtualMachine objects. + Delete a collection of VirtualMachine objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_offline_virtual_machine(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -722,21 +722,21 @@ def delete_collection_namespaced_offline_virtual_machine(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_offline_virtual_machine_with_http_info(**kwargs) + return self.delete_collection_namespaced_virtual_machine_with_http_info(**kwargs) else: - (data) = self.delete_collection_namespaced_offline_virtual_machine_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_with_http_info(**kwargs) return data - def delete_collection_namespaced_offline_virtual_machine_with_http_info(self, **kwargs): + def delete_collection_namespaced_virtual_machine_with_http_info(self, **kwargs): """ - Delete a collection of OfflineVirtualMachine objects. + Delete a collection of VirtualMachine objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_offline_virtual_machine_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -764,7 +764,7 @@ def delete_collection_namespaced_offline_virtual_machine_with_http_info(self, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_offline_virtual_machine" % key + " to method delete_collection_namespaced_virtual_machine" % key ) params[key] = val del params['kwargs'] @@ -805,7 +805,7 @@ def delete_collection_namespaced_offline_virtual_machine_with_http_info(self, ** # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines', 'DELETE', path_params, query_params, header_params, @@ -820,16 +820,16 @@ def delete_collection_namespaced_offline_virtual_machine_with_http_info(self, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_virtual_machine(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instance(self, **kwargs): """ - Delete a collection of VirtualMachine objects. + Delete a collection of VirtualMachineInstance objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_instance(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -847,21 +847,21 @@ def delete_collection_namespaced_virtual_machine(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_virtual_machine_with_http_info(**kwargs) + return self.delete_collection_namespaced_virtual_machine_instance_with_http_info(**kwargs) else: - (data) = self.delete_collection_namespaced_virtual_machine_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_instance_with_http_info(**kwargs) return data - def delete_collection_namespaced_virtual_machine_with_http_info(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instance_with_http_info(self, **kwargs): """ - Delete a collection of VirtualMachine objects. + Delete a collection of VirtualMachineInstance objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_instance_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -889,7 +889,7 @@ def delete_collection_namespaced_virtual_machine_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_virtual_machine" % key + " to method delete_collection_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] @@ -930,7 +930,7 @@ def delete_collection_namespaced_virtual_machine_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances', 'DELETE', path_params, query_params, header_params, @@ -945,16 +945,16 @@ def delete_collection_namespaced_virtual_machine_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_virtual_machine_preset(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instance_preset(self, **kwargs): """ - Delete a collection of VirtualMachinePreset objects. + Delete a collection of VirtualMachineInstancePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_preset(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_instance_preset(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -972,21 +972,21 @@ def delete_collection_namespaced_virtual_machine_preset(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_virtual_machine_preset_with_http_info(**kwargs) + return self.delete_collection_namespaced_virtual_machine_instance_preset_with_http_info(**kwargs) else: - (data) = self.delete_collection_namespaced_virtual_machine_preset_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_instance_preset_with_http_info(**kwargs) return data - def delete_collection_namespaced_virtual_machine_preset_with_http_info(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instance_preset_with_http_info(self, **kwargs): """ - Delete a collection of VirtualMachinePreset objects. + Delete a collection of VirtualMachineInstancePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_preset_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_instance_preset_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1014,7 +1014,7 @@ def delete_collection_namespaced_virtual_machine_preset_with_http_info(self, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_virtual_machine_preset" % key + " to method delete_collection_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] @@ -1055,7 +1055,7 @@ def delete_collection_namespaced_virtual_machine_preset_with_http_info(self, **k # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets', 'DELETE', path_params, query_params, header_params, @@ -1070,16 +1070,16 @@ def delete_collection_namespaced_virtual_machine_preset_with_http_info(self, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_virtual_machine_replica_set(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instance_replica_set(self, **kwargs): """ - Delete a collection of VirtualMachineReplicaSet objects. + Delete a collection of VirtualMachineInstanceReplicaSet objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_replica_set(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_instance_replica_set(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1097,21 +1097,21 @@ def delete_collection_namespaced_virtual_machine_replica_set(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_virtual_machine_replica_set_with_http_info(**kwargs) + return self.delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_info(**kwargs) else: - (data) = self.delete_collection_namespaced_virtual_machine_replica_set_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_info(**kwargs) return data - def delete_collection_namespaced_virtual_machine_replica_set_with_http_info(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_info(self, **kwargs): """ - Delete a collection of VirtualMachineReplicaSet objects. + Delete a collection of VirtualMachineInstanceReplicaSet objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_replica_set_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1139,7 +1139,7 @@ def delete_collection_namespaced_virtual_machine_replica_set_with_http_info(self if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_virtual_machine_replica_set" % key + " to method delete_collection_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] @@ -1180,7 +1180,7 @@ def delete_collection_namespaced_virtual_machine_replica_set_with_http_info(self # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets', 'DELETE', path_params, query_params, header_params, @@ -1195,16 +1195,16 @@ def delete_collection_namespaced_virtual_machine_replica_set_with_http_info(self _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_offline_virtual_machine(self, body, namespace, name, **kwargs): + def delete_namespaced_virtual_machine(self, body, namespace, name, **kwargs): """ - Delete a OfflineVirtualMachine object. + Delete a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_offline_virtual_machine(body, namespace, name, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1220,21 +1220,21 @@ def delete_namespaced_offline_virtual_machine(self, body, namespace, name, **kwa """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_offline_virtual_machine_with_http_info(body, namespace, name, **kwargs) + return self.delete_namespaced_virtual_machine_with_http_info(body, namespace, name, **kwargs) else: - (data) = self.delete_namespaced_offline_virtual_machine_with_http_info(body, namespace, name, **kwargs) + (data) = self.delete_namespaced_virtual_machine_with_http_info(body, namespace, name, **kwargs) return data - def delete_namespaced_offline_virtual_machine_with_http_info(self, body, namespace, name, **kwargs): + def delete_namespaced_virtual_machine_with_http_info(self, body, namespace, name, **kwargs): """ - Delete a OfflineVirtualMachine object. + Delete a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_offline_virtual_machine_with_http_info(body, namespace, name, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_with_http_info(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1260,24 +1260,24 @@ def delete_namespaced_offline_virtual_machine_with_http_info(self, body, namespa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_offline_virtual_machine" % key + " to method delete_namespaced_virtual_machine" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_offline_virtual_machine`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_offline_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_offline_virtual_machine`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `delete_namespaced_offline_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `delete_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `delete_namespaced_offline_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `name` when calling `delete_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -1314,7 +1314,7 @@ def delete_namespaced_offline_virtual_machine_with_http_info(self, body, namespa # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines/{name}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name}', 'DELETE', path_params, query_params, header_params, @@ -1329,16 +1329,16 @@ def delete_namespaced_offline_virtual_machine_with_http_info(self, body, namespa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine(self, body, namespace, name, **kwargs): + def delete_namespaced_virtual_machine_instance(self, body, namespace, name, **kwargs): """ - Delete a VirtualMachine object. + Delete a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine(body, namespace, name, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1354,21 +1354,21 @@ def delete_namespaced_virtual_machine(self, body, namespace, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_with_http_info(body, namespace, name, **kwargs) + return self.delete_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_with_http_info(body, namespace, name, **kwargs) + (data) = self.delete_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, **kwargs) return data - def delete_namespaced_virtual_machine_with_http_info(self, body, namespace, name, **kwargs): + def delete_namespaced_virtual_machine_instance_with_http_info(self, body, namespace, name, **kwargs): """ - Delete a VirtualMachine object. + Delete a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_with_http_info(body, namespace, name, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1394,24 +1394,24 @@ def delete_namespaced_virtual_machine_with_http_info(self, body, namespace, name if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine" % key + " to method delete_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `delete_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `delete_namespaced_virtual_machine_instance`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `delete_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `name` when calling `delete_namespaced_virtual_machine_instance`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -1448,7 +1448,7 @@ def delete_namespaced_virtual_machine_with_http_info(self, body, namespace, name # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}', 'DELETE', path_params, query_params, header_params, @@ -1463,16 +1463,16 @@ def delete_namespaced_virtual_machine_with_http_info(self, body, namespace, name _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_preset(self, body, namespace, name, **kwargs): + def delete_namespaced_virtual_machine_instance_preset(self, body, namespace, name, **kwargs): """ - Delete a VirtualMachinePreset object. + Delete a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_preset(body, namespace, name, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_preset(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1488,21 +1488,21 @@ def delete_namespaced_virtual_machine_preset(self, body, namespace, name, **kwar """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_preset_with_http_info(body, namespace, name, **kwargs) + return self.delete_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_preset_with_http_info(body, namespace, name, **kwargs) + (data) = self.delete_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, **kwargs) return data - def delete_namespaced_virtual_machine_preset_with_http_info(self, body, namespace, name, **kwargs): + def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, body, namespace, name, **kwargs): """ - Delete a VirtualMachinePreset object. + Delete a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_preset_with_http_info(body, namespace, name, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1528,24 +1528,24 @@ def delete_namespaced_virtual_machine_preset_with_http_info(self, body, namespac if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_preset" % key + " to method delete_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_preset`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_preset`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_preset`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_preset`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance_preset`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `delete_namespaced_virtual_machine_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `delete_namespaced_virtual_machine_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `name` when calling `delete_namespaced_virtual_machine_instance_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -1582,7 +1582,7 @@ def delete_namespaced_virtual_machine_preset_with_http_info(self, body, namespac # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name}', 'DELETE', path_params, query_params, header_params, @@ -1597,16 +1597,16 @@ def delete_namespaced_virtual_machine_preset_with_http_info(self, body, namespac _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_replica_set(self, body, namespace, name, **kwargs): + def delete_namespaced_virtual_machine_instance_replica_set(self, body, namespace, name, **kwargs): """ - Delete a VirtualMachineReplicaSet object. + Delete a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_replica_set(body, namespace, name, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_replica_set(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1622,21 +1622,21 @@ def delete_namespaced_virtual_machine_replica_set(self, body, namespace, name, * """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_replica_set_with_http_info(body, namespace, name, **kwargs) + return self.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_replica_set_with_http_info(body, namespace, name, **kwargs) + (data) = self.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, **kwargs) return data - def delete_namespaced_virtual_machine_replica_set_with_http_info(self, body, namespace, name, **kwargs): + def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, body, namespace, name, **kwargs): """ - Delete a VirtualMachineReplicaSet object. + Delete a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_replica_set_with_http_info(body, namespace, name, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1662,24 +1662,24 @@ def delete_namespaced_virtual_machine_replica_set_with_http_info(self, body, nam if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_replica_set" % key + " to method delete_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_replica_set`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_replica_set`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_replica_set`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_replica_set`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance_replica_set`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `delete_namespaced_virtual_machine_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `delete_namespaced_virtual_machine_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `name` when calling `delete_namespaced_virtual_machine_instance_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -1716,7 +1716,7 @@ def delete_namespaced_virtual_machine_replica_set_with_http_info(self, body, nam # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets/{name}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name}', 'DELETE', path_params, query_params, header_params, @@ -2084,7 +2084,7 @@ def get_api_resources_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2', 'GET', path_params, query_params, header_params, @@ -2176,7 +2176,7 @@ def get_api_resources_0_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha1', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha2', 'GET', path_params, query_params, header_params, @@ -2191,16 +2191,16 @@ def get_api_resources_0_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_offline_virtual_machine(self, namespace, **kwargs): + def list_namespaced_virtual_machine(self, namespace, **kwargs): """ - Get a list of OfflineVirtualMachine objects. + Get a list of VirtualMachine objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_offline_virtual_machine(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2213,27 +2213,27 @@ def list_namespaced_offline_virtual_machine(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1OfflineVirtualMachineList + :return: V1VirtualMachineList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_offline_virtual_machine_with_http_info(namespace, **kwargs) + return self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_offline_virtual_machine_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) return data - def list_namespaced_offline_virtual_machine_with_http_info(self, namespace, **kwargs): + def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): """ - Get a list of OfflineVirtualMachine objects. + Get a list of VirtualMachine objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_offline_virtual_machine_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2246,7 +2246,7 @@ def list_namespaced_offline_virtual_machine_with_http_info(self, namespace, **kw :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1OfflineVirtualMachineList + :return: V1VirtualMachineList If the method is called asynchronously, returns the request thread. """ @@ -2262,16 +2262,16 @@ def list_namespaced_offline_virtual_machine_with_http_info(self, namespace, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_offline_virtual_machine" % key + " to method list_namespaced_virtual_machine" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_offline_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `list_namespaced_offline_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `list_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -2310,14 +2310,14 @@ def list_namespaced_offline_virtual_machine_with_http_info(self, namespace, **kw # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1OfflineVirtualMachineList', + response_type='V1VirtualMachineList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2325,16 +2325,16 @@ def list_namespaced_offline_virtual_machine_with_http_info(self, namespace, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine(self, namespace, **kwargs): + def list_namespaced_virtual_machine_instance(self, namespace, **kwargs): """ - Get a list of VirtualMachine objects. + Get a list of VirtualMachineInstance objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2347,27 +2347,27 @@ def list_namespaced_virtual_machine(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :return: V1VirtualMachineInstanceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + return self.list_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) return data - def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): + def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **kwargs): """ - Get a list of VirtualMachine objects. + Get a list of VirtualMachineInstance objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2380,7 +2380,7 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :return: V1VirtualMachineInstanceList If the method is called asynchronously, returns the request thread. """ @@ -2396,16 +2396,16 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine" % key + " to method list_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `list_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `list_namespaced_virtual_machine_instance`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -2444,14 +2444,14 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineList', + response_type='V1VirtualMachineInstanceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2459,16 +2459,16 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_preset(self, namespace, **kwargs): + def list_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): """ - Get a list of VirtualMachinePreset objects. + Get a list of VirtualMachineInstancePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_preset(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_preset(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2481,27 +2481,27 @@ def list_namespaced_virtual_machine_preset(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachinePresetList + :return: V1VirtualMachineInstancePresetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_preset_with_http_info(namespace, **kwargs) + return self.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_virtual_machine_preset_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) return data - def list_namespaced_virtual_machine_preset_with_http_info(self, namespace, **kwargs): + def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespace, **kwargs): """ - Get a list of VirtualMachinePreset objects. + Get a list of VirtualMachineInstancePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_preset_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2514,7 +2514,7 @@ def list_namespaced_virtual_machine_preset_with_http_info(self, namespace, **kwa :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachinePresetList + :return: V1VirtualMachineInstancePresetList If the method is called asynchronously, returns the request thread. """ @@ -2530,16 +2530,16 @@ def list_namespaced_virtual_machine_preset_with_http_info(self, namespace, **kwa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_preset" % key + " to method list_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_preset`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `list_namespaced_virtual_machine_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `list_namespaced_virtual_machine_instance_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -2578,14 +2578,14 @@ def list_namespaced_virtual_machine_preset_with_http_info(self, namespace, **kwa # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachinePresetList', + response_type='V1VirtualMachineInstancePresetList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2593,16 +2593,16 @@ def list_namespaced_virtual_machine_preset_with_http_info(self, namespace, **kwa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_replica_set(self, namespace, **kwargs): + def list_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwargs): """ - Get a list of VirtualMachineReplicaSet objects. + Get a list of VirtualMachineInstanceReplicaSet objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_replica_set(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_replica_set(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2615,27 +2615,27 @@ def list_namespaced_virtual_machine_replica_set(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineReplicaSetList + :return: V1VirtualMachineInstanceReplicaSetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_replica_set_with_http_info(namespace, **kwargs) + return self.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_virtual_machine_replica_set_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) return data - def list_namespaced_virtual_machine_replica_set_with_http_info(self, namespace, **kwargs): + def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, namespace, **kwargs): """ - Get a list of VirtualMachineReplicaSet objects. + Get a list of VirtualMachineInstanceReplicaSet objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_replica_set_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2648,7 +2648,7 @@ def list_namespaced_virtual_machine_replica_set_with_http_info(self, namespace, :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineReplicaSetList + :return: V1VirtualMachineInstanceReplicaSetList If the method is called asynchronously, returns the request thread. """ @@ -2664,16 +2664,16 @@ def list_namespaced_virtual_machine_replica_set_with_http_info(self, namespace, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_replica_set" % key + " to method list_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_replica_set`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `list_namespaced_virtual_machine_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `list_namespaced_virtual_machine_instance_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -2712,14 +2712,14 @@ def list_namespaced_virtual_machine_replica_set_with_http_info(self, namespace, # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineReplicaSetList', + response_type='V1VirtualMachineInstanceReplicaSetList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2727,16 +2727,16 @@ def list_namespaced_virtual_machine_replica_set_with_http_info(self, namespace, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_offline_virtual_machine_for_all_namespaces(self, **kwargs): + def list_virtual_machine_for_all_namespaces(self, **kwargs): """ - Get a list of all OfflineVirtualMachine objects. + Get a list of all VirtualMachine objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_offline_virtual_machine_for_all_namespaces(callback=callback_function) + >>> thread = api.list_virtual_machine_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2748,27 +2748,27 @@ def list_offline_virtual_machine_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1OfflineVirtualMachineList + :return: V1VirtualMachineList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_offline_virtual_machine_for_all_namespaces_with_http_info(**kwargs) + return self.list_virtual_machine_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_offline_virtual_machine_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_virtual_machine_for_all_namespaces_with_http_info(**kwargs) return data - def list_offline_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): + def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): """ - Get a list of all OfflineVirtualMachine objects. + Get a list of all VirtualMachine objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_offline_virtual_machine_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_virtual_machine_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2780,7 +2780,7 @@ def list_offline_virtual_machine_for_all_namespaces_with_http_info(self, **kwarg :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1OfflineVirtualMachineList + :return: V1VirtualMachineList If the method is called asynchronously, returns the request thread. """ @@ -2796,7 +2796,7 @@ def list_offline_virtual_machine_for_all_namespaces_with_http_info(self, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_offline_virtual_machine_for_all_namespaces" % key + " to method list_virtual_machine_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -2837,14 +2837,14 @@ def list_offline_virtual_machine_for_all_namespaces_with_http_info(self, **kwarg # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/offlinevirtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/virtualmachines', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1OfflineVirtualMachineList', + response_type='V1VirtualMachineList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2852,16 +2852,16 @@ def list_offline_virtual_machine_for_all_namespaces_with_http_info(self, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_for_all_namespaces(self, **kwargs): + def list_virtual_machine_instance_for_all_namespaces(self, **kwargs): """ - Get a list of all VirtualMachine objects. + Get a list of all VirtualMachineInstance objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_for_all_namespaces(callback=callback_function) + >>> thread = api.list_virtual_machine_instance_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2873,27 +2873,27 @@ def list_virtual_machine_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :return: V1VirtualMachineInstanceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_for_all_namespaces_with_http_info(**kwargs) + return self.list_virtual_machine_instance_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_virtual_machine_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_virtual_machine_instance_for_all_namespaces_with_http_info(**kwargs) return data - def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): + def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwargs): """ - Get a list of all VirtualMachine objects. + Get a list of all VirtualMachineInstance objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_virtual_machine_instance_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2905,7 +2905,7 @@ def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :return: V1VirtualMachineInstanceList If the method is called asynchronously, returns the request thread. """ @@ -2921,7 +2921,7 @@ def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_for_all_namespaces" % key + " to method list_virtual_machine_instance_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -2962,14 +2962,14 @@ def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/virtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/virtualmachineinstances', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineList', + response_type='V1VirtualMachineInstanceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2977,16 +2977,16 @@ def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_preset_for_all_namespaces(self, **kwargs): + def list_virtual_machine_instance_preset_for_all_namespaces(self, **kwargs): """ - Get a list of all VirtualMachinePreset objects. + Get a list of all VirtualMachineInstancePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_preset_for_all_namespaces(callback=callback_function) + >>> thread = api.list_virtual_machine_instance_preset_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2998,27 +2998,27 @@ def list_virtual_machine_preset_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachinePresetList + :return: V1VirtualMachineInstancePresetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_preset_for_all_namespaces_with_http_info(**kwargs) + return self.list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_virtual_machine_preset_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(**kwargs) return data - def list_virtual_machine_preset_for_all_namespaces_with_http_info(self, **kwargs): + def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, **kwargs): """ - Get a list of all VirtualMachinePreset objects. + Get a list of all VirtualMachineInstancePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_preset_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3030,7 +3030,7 @@ def list_virtual_machine_preset_for_all_namespaces_with_http_info(self, **kwargs :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachinePresetList + :return: V1VirtualMachineInstancePresetList If the method is called asynchronously, returns the request thread. """ @@ -3046,7 +3046,7 @@ def list_virtual_machine_preset_for_all_namespaces_with_http_info(self, **kwargs if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_preset_for_all_namespaces" % key + " to method list_virtual_machine_instance_preset_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -3087,14 +3087,14 @@ def list_virtual_machine_preset_for_all_namespaces_with_http_info(self, **kwargs # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/virtualmachinepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/virtualmachineinstancepresets', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachinePresetList', + response_type='V1VirtualMachineInstancePresetList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3102,16 +3102,16 @@ def list_virtual_machine_preset_for_all_namespaces_with_http_info(self, **kwargs _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_replica_set_for_all_namespaces(self, **kwargs): + def list_virtual_machine_instance_replica_set_for_all_namespaces(self, **kwargs): """ - Get a list of all VirtualMachineReplicaSet objects. + Get a list of all VirtualMachineInstanceReplicaSet objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_replica_set_for_all_namespaces(callback=callback_function) + >>> thread = api.list_virtual_machine_instance_replica_set_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3123,27 +3123,27 @@ def list_virtual_machine_replica_set_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineReplicaSetList + :return: V1VirtualMachineInstanceReplicaSetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_replica_set_for_all_namespaces_with_http_info(**kwargs) + return self.list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_virtual_machine_replica_set_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(**kwargs) return data - def list_virtual_machine_replica_set_for_all_namespaces_with_http_info(self, **kwargs): + def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(self, **kwargs): """ - Get a list of all VirtualMachineReplicaSet objects. + Get a list of all VirtualMachineInstanceReplicaSet objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_replica_set_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3155,7 +3155,7 @@ def list_virtual_machine_replica_set_for_all_namespaces_with_http_info(self, **k :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineReplicaSetList + :return: V1VirtualMachineInstanceReplicaSetList If the method is called asynchronously, returns the request thread. """ @@ -3171,7 +3171,7 @@ def list_virtual_machine_replica_set_for_all_namespaces_with_http_info(self, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_replica_set_for_all_namespaces" % key + " to method list_virtual_machine_instance_replica_set_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -3212,14 +3212,14 @@ def list_virtual_machine_replica_set_for_all_namespaces_with_http_info(self, **k # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/virtualmachinereplicasets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineReplicaSetList', + response_type='V1VirtualMachineInstanceReplicaSetList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3227,46 +3227,46 @@ def list_virtual_machine_replica_set_for_all_namespaces_with_http_info(self, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_offline_virtual_machine(self, body, **kwargs): + def patch_namespaced_virtual_machine(self, body, **kwargs): """ - Patch a OfflineVirtualMachine object. + Patch a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_offline_virtual_machine(body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Patch body: (required) - :return: V1OfflineVirtualMachine + :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_offline_virtual_machine_with_http_info(body, **kwargs) + return self.patch_namespaced_virtual_machine_with_http_info(body, **kwargs) else: - (data) = self.patch_namespaced_offline_virtual_machine_with_http_info(body, **kwargs) + (data) = self.patch_namespaced_virtual_machine_with_http_info(body, **kwargs) return data - def patch_namespaced_offline_virtual_machine_with_http_info(self, body, **kwargs): + def patch_namespaced_virtual_machine_with_http_info(self, body, **kwargs): """ - Patch a OfflineVirtualMachine object. + Patch a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_offline_virtual_machine_with_http_info(body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Patch body: (required) - :return: V1OfflineVirtualMachine + :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ @@ -3282,13 +3282,13 @@ def patch_namespaced_offline_virtual_machine_with_http_info(self, body, **kwargs if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_offline_virtual_machine" % key + " to method patch_namespaced_virtual_machine" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_offline_virtual_machine`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine`") collection_formats = {} @@ -3316,14 +3316,14 @@ def patch_namespaced_offline_virtual_machine_with_http_info(self, body, **kwargs # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines/{name}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1OfflineVirtualMachine', + response_type='V1VirtualMachine', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3331,46 +3331,46 @@ def patch_namespaced_offline_virtual_machine_with_http_info(self, body, **kwargs _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine(self, body, **kwargs): + def patch_namespaced_virtual_machine_instance(self, body, **kwargs): """ - Patch a VirtualMachine object. + Patch a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine(body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Patch body: (required) - :return: V1VirtualMachine + :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_with_http_info(body, **kwargs) + return self.patch_namespaced_virtual_machine_instance_with_http_info(body, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_with_http_info(body, **kwargs) + (data) = self.patch_namespaced_virtual_machine_instance_with_http_info(body, **kwargs) return data - def patch_namespaced_virtual_machine_with_http_info(self, body, **kwargs): + def patch_namespaced_virtual_machine_instance_with_http_info(self, body, **kwargs): """ - Patch a VirtualMachine object. + Patch a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_with_http_info(body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Patch body: (required) - :return: V1VirtualMachine + :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ @@ -3386,13 +3386,13 @@ def patch_namespaced_virtual_machine_with_http_info(self, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine" % key + " to method patch_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance`") collection_formats = {} @@ -3420,14 +3420,14 @@ def patch_namespaced_virtual_machine_with_http_info(self, body, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachine', + response_type='V1VirtualMachineInstance', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3435,46 +3435,46 @@ def patch_namespaced_virtual_machine_with_http_info(self, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_preset(self, body, **kwargs): + def patch_namespaced_virtual_machine_instance_preset(self, body, **kwargs): """ - Patch a VirtualMachinePreset object. + Patch a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_preset(body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance_preset(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Patch body: (required) - :return: V1VirtualMachinePreset + :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_preset_with_http_info(body, **kwargs) + return self.patch_namespaced_virtual_machine_instance_preset_with_http_info(body, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_preset_with_http_info(body, **kwargs) + (data) = self.patch_namespaced_virtual_machine_instance_preset_with_http_info(body, **kwargs) return data - def patch_namespaced_virtual_machine_preset_with_http_info(self, body, **kwargs): + def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, body, **kwargs): """ - Patch a VirtualMachinePreset object. + Patch a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_preset_with_http_info(body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance_preset_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Patch body: (required) - :return: V1VirtualMachinePreset + :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ @@ -3490,13 +3490,13 @@ def patch_namespaced_virtual_machine_preset_with_http_info(self, body, **kwargs) if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine_preset" % key + " to method patch_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_preset`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_preset`") collection_formats = {} @@ -3524,14 +3524,14 @@ def patch_namespaced_virtual_machine_preset_with_http_info(self, body, **kwargs) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachinePreset', + response_type='V1VirtualMachineInstancePreset', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3539,46 +3539,46 @@ def patch_namespaced_virtual_machine_preset_with_http_info(self, body, **kwargs) _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_replica_set(self, body, **kwargs): + def patch_namespaced_virtual_machine_instance_replica_set(self, body, **kwargs): """ - Patch a VirtualMachineReplicaSet object. + Patch a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_replica_set(body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Patch body: (required) - :return: V1VirtualMachineReplicaSet + :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_replica_set_with_http_info(body, **kwargs) + return self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(body, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_replica_set_with_http_info(body, **kwargs) + (data) = self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(body, **kwargs) return data - def patch_namespaced_virtual_machine_replica_set_with_http_info(self, body, **kwargs): + def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, body, **kwargs): """ - Patch a VirtualMachineReplicaSet object. + Patch a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_replica_set_with_http_info(body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Patch body: (required) - :return: V1VirtualMachineReplicaSet + :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ @@ -3594,13 +3594,13 @@ def patch_namespaced_virtual_machine_replica_set_with_http_info(self, body, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine_replica_set" % key + " to method patch_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_replica_set`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_replica_set`") collection_formats = {} @@ -3628,14 +3628,14 @@ def patch_namespaced_virtual_machine_replica_set_with_http_info(self, body, **kw # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets/{name}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineReplicaSet', + response_type='V1VirtualMachineInstanceReplicaSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3643,16 +3643,16 @@ def patch_namespaced_virtual_machine_replica_set_with_http_info(self, body, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_offline_virtual_machine(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine(self, name, namespace, **kwargs): """ - Get a OfflineVirtualMachine object. + Get a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_offline_virtual_machine(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3660,27 +3660,27 @@ def read_namespaced_offline_virtual_machine(self, name, namespace, **kwargs): :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1OfflineVirtualMachine + :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_offline_virtual_machine_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_virtual_machine_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_offline_virtual_machine_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_virtual_machine_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_offline_virtual_machine_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwargs): """ - Get a OfflineVirtualMachine object. + Get a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_offline_virtual_machine_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3688,7 +3688,7 @@ def read_namespaced_offline_virtual_machine_with_http_info(self, name, namespace :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1OfflineVirtualMachine + :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ @@ -3704,21 +3704,21 @@ def read_namespaced_offline_virtual_machine_with_http_info(self, name, namespace if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_offline_virtual_machine" % key + " to method read_namespaced_virtual_machine" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_offline_virtual_machine`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_offline_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine`") if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `read_namespaced_offline_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `name` when calling `read_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `read_namespaced_offline_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `read_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -3747,14 +3747,14 @@ def read_namespaced_offline_virtual_machine_with_http_info(self, name, namespace # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines/{name}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1OfflineVirtualMachine', + response_type='V1VirtualMachine', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3762,16 +3762,16 @@ def read_namespaced_offline_virtual_machine_with_http_info(self, name, namespace _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_instance(self, name, namespace, **kwargs): """ - Get a VirtualMachine object. + Get a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_instance(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3779,27 +3779,27 @@ def read_namespaced_virtual_machine(self, name, namespace, **kwargs): :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachine + :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, **kwargs): """ - Get a VirtualMachine object. + Get a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3807,7 +3807,7 @@ def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwar :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachine + :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ @@ -3823,21 +3823,21 @@ def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwar if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine" % key + " to method read_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance`") if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `read_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `name` when calling `read_namespaced_virtual_machine_instance`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `read_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `read_namespaced_virtual_machine_instance`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -3866,14 +3866,14 @@ def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwar # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachine', + response_type='V1VirtualMachineInstance', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3881,16 +3881,16 @@ def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_preset(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_instance_preset(self, name, namespace, **kwargs): """ - Get a VirtualMachinePreset object. + Get a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_preset(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_instance_preset(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3898,27 +3898,27 @@ def read_namespaced_virtual_machine_preset(self, name, namespace, **kwargs): :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachinePreset + :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_preset_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_preset_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_virtual_machine_preset_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, **kwargs): """ - Get a VirtualMachinePreset object. + Get a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_preset_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3926,7 +3926,7 @@ def read_namespaced_virtual_machine_preset_with_http_info(self, name, namespace, :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachinePreset + :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ @@ -3942,21 +3942,21 @@ def read_namespaced_virtual_machine_preset_with_http_info(self, name, namespace, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_preset" % key + " to method read_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_preset`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance_preset`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_preset`") if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `read_namespaced_virtual_machine_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `name` when calling `read_namespaced_virtual_machine_instance_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `read_namespaced_virtual_machine_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `read_namespaced_virtual_machine_instance_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -3985,14 +3985,14 @@ def read_namespaced_virtual_machine_preset_with_http_info(self, name, namespace, # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachinePreset', + response_type='V1VirtualMachineInstancePreset', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4000,16 +4000,16 @@ def read_namespaced_virtual_machine_preset_with_http_info(self, name, namespace, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_replica_set(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_instance_replica_set(self, name, namespace, **kwargs): """ - Get a VirtualMachineReplicaSet object. + Get a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_replica_set(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_instance_replica_set(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4017,27 +4017,27 @@ def read_namespaced_virtual_machine_replica_set(self, name, namespace, **kwargs) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachineReplicaSet + :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_replica_set_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_replica_set_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_virtual_machine_replica_set_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, **kwargs): """ - Get a VirtualMachineReplicaSet object. + Get a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_replica_set_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4045,7 +4045,7 @@ def read_namespaced_virtual_machine_replica_set_with_http_info(self, name, names :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachineReplicaSet + :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ @@ -4061,21 +4061,21 @@ def read_namespaced_virtual_machine_replica_set_with_http_info(self, name, names if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_replica_set" % key + " to method read_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_replica_set`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance_replica_set`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_replica_set`") if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `read_namespaced_virtual_machine_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `name` when calling `read_namespaced_virtual_machine_instance_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `read_namespaced_virtual_machine_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `read_namespaced_virtual_machine_instance_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -4104,14 +4104,14 @@ def read_namespaced_virtual_machine_replica_set_with_http_info(self, name, names # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets/{name}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineReplicaSet', + response_type='V1VirtualMachineInstanceReplicaSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4119,50 +4119,50 @@ def read_namespaced_virtual_machine_replica_set_with_http_info(self, name, names _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_offline_virtual_machine(self, body, namespace, name, **kwargs): + def replace_namespaced_virtual_machine(self, body, namespace, name, **kwargs): """ - Update a OfflineVirtualMachine object. + Update a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_offline_virtual_machine(body, namespace, name, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1OfflineVirtualMachine body: (required) + :param V1VirtualMachine body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) - :return: V1OfflineVirtualMachine + :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_offline_virtual_machine_with_http_info(body, namespace, name, **kwargs) + return self.replace_namespaced_virtual_machine_with_http_info(body, namespace, name, **kwargs) else: - (data) = self.replace_namespaced_offline_virtual_machine_with_http_info(body, namespace, name, **kwargs) + (data) = self.replace_namespaced_virtual_machine_with_http_info(body, namespace, name, **kwargs) return data - def replace_namespaced_offline_virtual_machine_with_http_info(self, body, namespace, name, **kwargs): + def replace_namespaced_virtual_machine_with_http_info(self, body, namespace, name, **kwargs): """ - Update a OfflineVirtualMachine object. + Update a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_offline_virtual_machine_with_http_info(body, namespace, name, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_with_http_info(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1OfflineVirtualMachine body: (required) + :param V1VirtualMachine body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) - :return: V1OfflineVirtualMachine + :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ @@ -4178,24 +4178,24 @@ def replace_namespaced_offline_virtual_machine_with_http_info(self, body, namesp if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_offline_virtual_machine" % key + " to method replace_namespaced_virtual_machine" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_offline_virtual_machine`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_offline_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_offline_virtual_machine`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `replace_namespaced_offline_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `replace_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `replace_namespaced_offline_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `name` when calling `replace_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -4226,14 +4226,14 @@ def replace_namespaced_offline_virtual_machine_with_http_info(self, body, namesp # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/offlinevirtualmachines/{name}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1OfflineVirtualMachine', + response_type='V1VirtualMachine', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4241,50 +4241,50 @@ def replace_namespaced_offline_virtual_machine_with_http_info(self, body, namesp _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine(self, body, namespace, name, **kwargs): + def replace_namespaced_virtual_machine_instance(self, body, namespace, name, **kwargs): """ - Update a VirtualMachine object. + Update a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine(body, namespace, name, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachine body: (required) + :param V1VirtualMachineInstance body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) - :return: V1VirtualMachine + :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_with_http_info(body, namespace, name, **kwargs) + return self.replace_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_with_http_info(body, namespace, name, **kwargs) + (data) = self.replace_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, **kwargs) return data - def replace_namespaced_virtual_machine_with_http_info(self, body, namespace, name, **kwargs): + def replace_namespaced_virtual_machine_instance_with_http_info(self, body, namespace, name, **kwargs): """ - Update a VirtualMachine object. + Update a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_with_http_info(body, namespace, name, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachine body: (required) + :param V1VirtualMachineInstance body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) - :return: V1VirtualMachine + :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ @@ -4300,24 +4300,24 @@ def replace_namespaced_virtual_machine_with_http_info(self, body, namespace, nam if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine" % key + " to method replace_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `replace_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `replace_namespaced_virtual_machine_instance`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `replace_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `name` when calling `replace_namespaced_virtual_machine_instance`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -4348,14 +4348,14 @@ def replace_namespaced_virtual_machine_with_http_info(self, body, namespace, nam # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachine', + response_type='V1VirtualMachineInstance', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4363,50 +4363,50 @@ def replace_namespaced_virtual_machine_with_http_info(self, body, namespace, nam _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_preset(self, body, namespace, name, **kwargs): + def replace_namespaced_virtual_machine_instance_preset(self, body, namespace, name, **kwargs): """ - Update a VirtualMachinePreset object. + Update a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_preset(body, namespace, name, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_preset(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachinePreset body: (required) + :param V1VirtualMachineInstancePreset body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) - :return: V1VirtualMachinePreset + :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_preset_with_http_info(body, namespace, name, **kwargs) + return self.replace_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_preset_with_http_info(body, namespace, name, **kwargs) + (data) = self.replace_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, **kwargs) return data - def replace_namespaced_virtual_machine_preset_with_http_info(self, body, namespace, name, **kwargs): + def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, body, namespace, name, **kwargs): """ - Update a VirtualMachinePreset object. + Update a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_preset_with_http_info(body, namespace, name, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachinePreset body: (required) + :param V1VirtualMachineInstancePreset body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) - :return: V1VirtualMachinePreset + :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ @@ -4422,24 +4422,24 @@ def replace_namespaced_virtual_machine_preset_with_http_info(self, body, namespa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_preset" % key + " to method replace_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_preset`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_preset`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_preset`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_preset`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_preset`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `replace_namespaced_virtual_machine_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `replace_namespaced_virtual_machine_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `name` when calling `replace_namespaced_virtual_machine_instance_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -4470,14 +4470,14 @@ def replace_namespaced_virtual_machine_preset_with_http_info(self, body, namespa # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepresets/{name}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachinePreset', + response_type='V1VirtualMachineInstancePreset', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4485,50 +4485,50 @@ def replace_namespaced_virtual_machine_preset_with_http_info(self, body, namespa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_replica_set(self, body, namespace, name, **kwargs): + def replace_namespaced_virtual_machine_instance_replica_set(self, body, namespace, name, **kwargs): """ - Update a VirtualMachineReplicaSet object. + Update a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_replica_set(body, namespace, name, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachineReplicaSet body: (required) + :param V1VirtualMachineInstanceReplicaSet body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) - :return: V1VirtualMachineReplicaSet + :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_replica_set_with_http_info(body, namespace, name, **kwargs) + return self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_replica_set_with_http_info(body, namespace, name, **kwargs) + (data) = self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, **kwargs) return data - def replace_namespaced_virtual_machine_replica_set_with_http_info(self, body, namespace, name, **kwargs): + def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, body, namespace, name, **kwargs): """ - Update a VirtualMachineReplicaSet object. + Update a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_replica_set_with_http_info(body, namespace, name, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachineReplicaSet body: (required) + :param V1VirtualMachineInstanceReplicaSet body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) - :return: V1VirtualMachineReplicaSet + :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ @@ -4544,24 +4544,24 @@ def replace_namespaced_virtual_machine_replica_set_with_http_info(self, body, na if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_replica_set" % key + " to method replace_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_replica_set`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_replica_set`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_replica_set`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_replica_set`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_replica_set`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `replace_namespaced_virtual_machine_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `replace_namespaced_virtual_machine_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `name` when calling `replace_namespaced_virtual_machine_instance_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -4592,14 +4592,14 @@ def replace_namespaced_virtual_machine_replica_set_with_http_info(self, body, na # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinereplicasets/{name}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineReplicaSet', + response_type='V1VirtualMachineInstanceReplicaSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4699,7 +4699,7 @@ def test_with_http_info(self, namespace, name, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}/test', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/test', 'GET', path_params, query_params, header_params, @@ -4789,7 +4789,7 @@ def version_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha1/version', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha2/version', 'GET', path_params, query_params, header_params, @@ -4806,7 +4806,7 @@ def version_with_http_info(self, **kwargs): def vnc(self, namespace, name, **kwargs): """ - Open a websocket connection to connect to VNC on the specified VM. + Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -4832,7 +4832,7 @@ def vnc(self, namespace, name, **kwargs): def vnc_with_http_info(self, namespace, name, **kwargs): """ - Open a websocket connection to connect to VNC on the specified VM. + Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -4896,7 +4896,7 @@ def vnc_with_http_info(self, namespace, name, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachines/{name}/vnc', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/vnc', 'GET', path_params, query_params, header_params, @@ -4911,16 +4911,16 @@ def vnc_with_http_info(self, namespace, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_offline_virtual_machine(self, namespace, **kwargs): + def watch_namespaced_virtual_machine(self, namespace, **kwargs): """ - Watch a OfflineVirtualMachine object. + Watch a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_offline_virtual_machine(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4939,21 +4939,21 @@ def watch_namespaced_offline_virtual_machine(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_offline_virtual_machine_with_http_info(namespace, **kwargs) + return self.watch_namespaced_virtual_machine_with_http_info(namespace, **kwargs) else: - (data) = self.watch_namespaced_offline_virtual_machine_with_http_info(namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_with_http_info(namespace, **kwargs) return data - def watch_namespaced_offline_virtual_machine_with_http_info(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): """ - Watch a OfflineVirtualMachine object. + Watch a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_offline_virtual_machine_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4982,16 +4982,16 @@ def watch_namespaced_offline_virtual_machine_with_http_info(self, namespace, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_offline_virtual_machine" % key + " to method watch_namespaced_virtual_machine" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_offline_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `watch_namespaced_offline_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `watch_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -5030,7 +5030,7 @@ def watch_namespaced_offline_virtual_machine_with_http_info(self, namespace, **k # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/offlinevirtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachines', 'GET', path_params, query_params, header_params, @@ -5045,16 +5045,16 @@ def watch_namespaced_offline_virtual_machine_with_http_info(self, namespace, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_instance(self, namespace, **kwargs): """ - Watch a VirtualMachine object. + Watch a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5073,21 +5073,21 @@ def watch_namespaced_virtual_machine(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + return self.watch_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) else: - (data) = self.watch_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) return data - def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_instance_with_http_info(self, namespace, **kwargs): """ - Watch a VirtualMachine object. + Watch a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5116,16 +5116,16 @@ def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_virtual_machine" % key + " to method watch_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `watch_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `watch_namespaced_virtual_machine_instance`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -5164,7 +5164,7 @@ def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstances', 'GET', path_params, query_params, header_params, @@ -5179,16 +5179,16 @@ def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine_preset(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): """ - Watch a VirtualMachinePreset object. + Watch a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_preset(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance_preset(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5207,21 +5207,21 @@ def watch_namespaced_virtual_machine_preset(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_preset_with_http_info(namespace, **kwargs) + return self.watch_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) else: - (data) = self.watch_namespaced_virtual_machine_preset_with_http_info(namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) return data - def watch_namespaced_virtual_machine_preset_with_http_info(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namespace, **kwargs): """ - Watch a VirtualMachinePreset object. + Watch a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_preset_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance_preset_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5250,16 +5250,16 @@ def watch_namespaced_virtual_machine_preset_with_http_info(self, namespace, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_virtual_machine_preset" % key + " to method watch_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_preset`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `watch_namespaced_virtual_machine_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -5298,7 +5298,7 @@ def watch_namespaced_virtual_machine_preset_with_http_info(self, namespace, **kw # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstancepresets', 'GET', path_params, query_params, header_params, @@ -5313,16 +5313,16 @@ def watch_namespaced_virtual_machine_preset_with_http_info(self, namespace, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine_replica_set(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwargs): """ - Watch a VirtualMachineReplicaSet object. + Watch a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_replica_set(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance_replica_set(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5341,21 +5341,21 @@ def watch_namespaced_virtual_machine_replica_set(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_replica_set_with_http_info(namespace, **kwargs) + return self.watch_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) else: - (data) = self.watch_namespaced_virtual_machine_replica_set_with_http_info(namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) return data - def watch_namespaced_virtual_machine_replica_set_with_http_info(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, namespace, **kwargs): """ - Watch a VirtualMachineReplicaSet object. + Watch a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_replica_set_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5384,16 +5384,16 @@ def watch_namespaced_virtual_machine_replica_set_with_http_info(self, namespace, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_virtual_machine_replica_set" % key + " to method watch_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_replica_set`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `watch_namespaced_virtual_machine_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -5432,7 +5432,7 @@ def watch_namespaced_virtual_machine_replica_set_with_http_info(self, namespace, # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinereplicasets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, @@ -5447,16 +5447,16 @@ def watch_namespaced_virtual_machine_replica_set_with_http_info(self, namespace, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_offline_virtual_machine_list_for_all_namespaces(self, **kwargs): + def watch_virtual_machine_instance_list_for_all_namespaces(self, **kwargs): """ - Watch a OfflineVirtualMachineList object. + Watch a VirtualMachineInstanceList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_offline_virtual_machine_list_for_all_namespaces(callback=callback_function) + >>> thread = api.watch_virtual_machine_instance_list_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5474,21 +5474,21 @@ def watch_offline_virtual_machine_list_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_offline_virtual_machine_list_for_all_namespaces_with_http_info(**kwargs) + return self.watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.watch_offline_virtual_machine_list_for_all_namespaces_with_http_info(**kwargs) + (data) = self.watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(**kwargs) return data - def watch_offline_virtual_machine_list_for_all_namespaces_with_http_info(self, **kwargs): + def watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Watch a OfflineVirtualMachineList object. + Watch a VirtualMachineInstanceList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_offline_virtual_machine_list_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5516,7 +5516,7 @@ def watch_offline_virtual_machine_list_for_all_namespaces_with_http_info(self, * if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_offline_virtual_machine_list_for_all_namespaces" % key + " to method watch_virtual_machine_instance_list_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -5557,7 +5557,7 @@ def watch_offline_virtual_machine_list_for_all_namespaces_with_http_info(self, * # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/watch/offlinevirtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/watch/virtualmachineinstances', 'GET', path_params, query_params, header_params, @@ -5572,16 +5572,16 @@ def watch_offline_virtual_machine_list_for_all_namespaces_with_http_info(self, * _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_virtual_machine_list_for_all_namespaces(self, **kwargs): + def watch_virtual_machine_instance_preset_list_for_all_namespaces(self, **kwargs): """ - Watch a VirtualMachineList object. + Watch a VirtualMachineInstancePresetList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_list_for_all_namespaces(callback=callback_function) + >>> thread = api.watch_virtual_machine_instance_preset_list_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5599,21 +5599,21 @@ def watch_virtual_machine_list_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_virtual_machine_list_for_all_namespaces_with_http_info(**kwargs) + return self.watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.watch_virtual_machine_list_for_all_namespaces_with_http_info(**kwargs) + (data) = self.watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info(**kwargs) return data - def watch_virtual_machine_list_for_all_namespaces_with_http_info(self, **kwargs): + def watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Watch a VirtualMachineList object. + Watch a VirtualMachineInstancePresetList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_list_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5641,7 +5641,7 @@ def watch_virtual_machine_list_for_all_namespaces_with_http_info(self, **kwargs) if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_virtual_machine_list_for_all_namespaces" % key + " to method watch_virtual_machine_instance_preset_list_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -5682,7 +5682,7 @@ def watch_virtual_machine_list_for_all_namespaces_with_http_info(self, **kwargs) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/watch/virtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/watch/virtualmachineinstancepresets', 'GET', path_params, query_params, header_params, @@ -5697,16 +5697,16 @@ def watch_virtual_machine_list_for_all_namespaces_with_http_info(self, **kwargs) _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_virtual_machine_preset_list_for_all_namespaces(self, **kwargs): + def watch_virtual_machine_instance_replica_set_list_for_all_namespaces(self, **kwargs): """ - Watch a VirtualMachinePresetList object. + Watch a VirtualMachineInstanceReplicaSetList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_preset_list_for_all_namespaces(callback=callback_function) + >>> thread = api.watch_virtual_machine_instance_replica_set_list_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5724,21 +5724,21 @@ def watch_virtual_machine_preset_list_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_virtual_machine_preset_list_for_all_namespaces_with_http_info(**kwargs) + return self.watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.watch_virtual_machine_preset_list_for_all_namespaces_with_http_info(**kwargs) + (data) = self.watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http_info(**kwargs) return data - def watch_virtual_machine_preset_list_for_all_namespaces_with_http_info(self, **kwargs): + def watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Watch a VirtualMachinePresetList object. + Watch a VirtualMachineInstanceReplicaSetList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_preset_list_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5766,7 +5766,7 @@ def watch_virtual_machine_preset_list_for_all_namespaces_with_http_info(self, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_virtual_machine_preset_list_for_all_namespaces" % key + " to method watch_virtual_machine_instance_replica_set_list_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -5807,7 +5807,7 @@ def watch_virtual_machine_preset_list_for_all_namespaces_with_http_info(self, ** # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/watch/virtualmachinepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/watch/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, @@ -5822,16 +5822,16 @@ def watch_virtual_machine_preset_list_for_all_namespaces_with_http_info(self, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_virtual_machine_replica_set_list_for_all_namespaces(self, **kwargs): + def watch_virtual_machine_list_for_all_namespaces(self, **kwargs): """ - Watch a VirtualMachineReplicaSetList object. + Watch a VirtualMachineList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_replica_set_list_for_all_namespaces(callback=callback_function) + >>> thread = api.watch_virtual_machine_list_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5849,21 +5849,21 @@ def watch_virtual_machine_replica_set_list_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_virtual_machine_replica_set_list_for_all_namespaces_with_http_info(**kwargs) + return self.watch_virtual_machine_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.watch_virtual_machine_replica_set_list_for_all_namespaces_with_http_info(**kwargs) + (data) = self.watch_virtual_machine_list_for_all_namespaces_with_http_info(**kwargs) return data - def watch_virtual_machine_replica_set_list_for_all_namespaces_with_http_info(self, **kwargs): + def watch_virtual_machine_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Watch a VirtualMachineReplicaSetList object. + Watch a VirtualMachineList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_replica_set_list_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.watch_virtual_machine_list_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5891,7 +5891,7 @@ def watch_virtual_machine_replica_set_list_for_all_namespaces_with_http_info(sel if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_virtual_machine_replica_set_list_for_all_namespaces" % key + " to method watch_virtual_machine_list_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -5932,7 +5932,7 @@ def watch_virtual_machine_replica_set_list_for_all_namespaces_with_http_info(sel # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha1/watch/virtualmachinereplicasets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/watch/virtualmachines', 'GET', path_params, query_params, header_params, diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 6f9f38d0..2172cbdb 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.6.0-32-g49663421".\ + "SDK Package Version: v0.6.0-52-gf7751045".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 4dc69c90..a721fde8 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -59,11 +59,6 @@ from .v1_node_selector_requirement import V1NodeSelectorRequirement from .v1_node_selector_term import V1NodeSelectorTerm from .v1_object_meta import V1ObjectMeta -from .v1_offline_virtual_machine import V1OfflineVirtualMachine -from .v1_offline_virtual_machine_condition import V1OfflineVirtualMachineCondition -from .v1_offline_virtual_machine_list import V1OfflineVirtualMachineList -from .v1_offline_virtual_machine_spec import V1OfflineVirtualMachineSpec -from .v1_offline_virtual_machine_status import V1OfflineVirtualMachineStatus from .v1_owner_reference import V1OwnerReference from .v1_pit_timer import V1PITTimer from .v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource @@ -80,19 +75,24 @@ from .v1_status_cause import V1StatusCause from .v1_status_details import V1StatusDetails from .v1_timer import V1Timer -from .v1_vm_replica_set_condition import V1VMReplicaSetCondition -from .v1_vm_replica_set_spec import V1VMReplicaSetSpec -from .v1_vm_replica_set_status import V1VMReplicaSetStatus -from .v1_vm_template_spec import V1VMTemplateSpec from .v1_virtual_machine import V1VirtualMachine from .v1_virtual_machine_condition import V1VirtualMachineCondition +from .v1_virtual_machine_instance import V1VirtualMachineInstance +from .v1_virtual_machine_instance_condition import V1VirtualMachineInstanceCondition +from .v1_virtual_machine_instance_list import V1VirtualMachineInstanceList +from .v1_virtual_machine_instance_network_interface import V1VirtualMachineInstanceNetworkInterface +from .v1_virtual_machine_instance_preset import V1VirtualMachineInstancePreset +from .v1_virtual_machine_instance_preset_list import V1VirtualMachineInstancePresetList +from .v1_virtual_machine_instance_preset_spec import V1VirtualMachineInstancePresetSpec +from .v1_virtual_machine_instance_replica_set import V1VirtualMachineInstanceReplicaSet +from .v1_virtual_machine_instance_replica_set_condition import V1VirtualMachineInstanceReplicaSetCondition +from .v1_virtual_machine_instance_replica_set_list import V1VirtualMachineInstanceReplicaSetList +from .v1_virtual_machine_instance_replica_set_spec import V1VirtualMachineInstanceReplicaSetSpec +from .v1_virtual_machine_instance_replica_set_status import V1VirtualMachineInstanceReplicaSetStatus +from .v1_virtual_machine_instance_spec import V1VirtualMachineInstanceSpec +from .v1_virtual_machine_instance_status import V1VirtualMachineInstanceStatus +from .v1_virtual_machine_instance_template_spec import V1VirtualMachineInstanceTemplateSpec from .v1_virtual_machine_list import V1VirtualMachineList -from .v1_virtual_machine_network_interface import V1VirtualMachineNetworkInterface -from .v1_virtual_machine_preset import V1VirtualMachinePreset -from .v1_virtual_machine_preset_list import V1VirtualMachinePresetList -from .v1_virtual_machine_preset_spec import V1VirtualMachinePresetSpec -from .v1_virtual_machine_replica_set import V1VirtualMachineReplicaSet -from .v1_virtual_machine_replica_set_list import V1VirtualMachineReplicaSetList from .v1_virtual_machine_spec import V1VirtualMachineSpec from .v1_virtual_machine_status import V1VirtualMachineStatus from .v1_volume import V1Volume diff --git a/kubevirt/models/v1_clock.py b/kubevirt/models/v1_clock.py index d81e0ca1..dec51a55 100644 --- a/kubevirt/models/v1_clock.py +++ b/kubevirt/models/v1_clock.py @@ -61,7 +61,7 @@ def __init__(self, timer=None, timezone=None, utc=None): def timer(self): """ Gets the timer of this V1Clock. - Timer specifies whih timers are attached to the vm + Timer specifies whih timers are attached to the vmi :return: The timer of this V1Clock. :rtype: V1Timer @@ -72,7 +72,7 @@ def timer(self): def timer(self, timer): """ Sets the timer of this V1Clock. - Timer specifies whih timers are attached to the vm + Timer specifies whih timers are attached to the vmi :param timer: The timer of this V1Clock. :type: V1Timer diff --git a/kubevirt/models/v1_cpu.py b/kubevirt/models/v1_cpu.py index 254ce72b..5584acda 100644 --- a/kubevirt/models/v1_cpu.py +++ b/kubevirt/models/v1_cpu.py @@ -52,7 +52,7 @@ def __init__(self, cores=None): def cores(self): """ Gets the cores of this V1CPU. - Cores specifies the number of cores inside the vm. Must be a value greater or equal 1. + Cores specifies the number of cores inside the vmi. Must be a value greater or equal 1. :return: The cores of this V1CPU. :rtype: int @@ -63,7 +63,7 @@ def cores(self): def cores(self, cores): """ Sets the cores of this V1CPU. - Cores specifies the number of cores inside the vm. Must be a value greater or equal 1. + Cores specifies the number of cores inside the vmi. Must be a value greater or equal 1. :param cores: The cores of this V1CPU. :type: int diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index 09999da8..970eb55f 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -62,7 +62,7 @@ def __init__(self, disks=None, interfaces=None, watchdog=None): def disks(self): """ Gets the disks of this V1Devices. - Disks describes disks, cdroms, floppy and luns which are connected to the vm + Disks describes disks, cdroms, floppy and luns which are connected to the vmi :return: The disks of this V1Devices. :rtype: list[V1Disk] @@ -73,7 +73,7 @@ def disks(self): def disks(self, disks): """ Sets the disks of this V1Devices. - Disks describes disks, cdroms, floppy and luns which are connected to the vm + Disks describes disks, cdroms, floppy and luns which are connected to the vmi :param disks: The disks of this V1Devices. :type: list[V1Disk] @@ -108,7 +108,7 @@ def interfaces(self, interfaces): def watchdog(self): """ Gets the watchdog of this V1Devices. - Watchdog describes a watchdog device which can be added to the vm + Watchdog describes a watchdog device which can be added to the vmi :return: The watchdog of this V1Devices. :rtype: V1Watchdog @@ -119,7 +119,7 @@ def watchdog(self): def watchdog(self, watchdog): """ Sets the watchdog of this V1Devices. - Watchdog describes a watchdog device which can be added to the vm + Watchdog describes a watchdog device which can be added to the vmi :param watchdog: The watchdog of this V1Devices. :type: V1Watchdog diff --git a/kubevirt/models/v1_disk.py b/kubevirt/models/v1_disk.py index 2abeb792..4bc063d3 100644 --- a/kubevirt/models/v1_disk.py +++ b/kubevirt/models/v1_disk.py @@ -103,7 +103,7 @@ def boot_order(self, boot_order): def cdrom(self): """ Gets the cdrom of this V1Disk. - Attach a volume as a cdrom to the vm + Attach a volume as a cdrom to the vmi :return: The cdrom of this V1Disk. :rtype: V1CDRomTarget @@ -114,7 +114,7 @@ def cdrom(self): def cdrom(self, cdrom): """ Sets the cdrom of this V1Disk. - Attach a volume as a cdrom to the vm + Attach a volume as a cdrom to the vmi :param cdrom: The cdrom of this V1Disk. :type: V1CDRomTarget @@ -126,7 +126,7 @@ def cdrom(self, cdrom): def disk(self): """ Gets the disk of this V1Disk. - Attach a volume as a disk to the vm + Attach a volume as a disk to the vmi :return: The disk of this V1Disk. :rtype: V1DiskTarget @@ -137,7 +137,7 @@ def disk(self): def disk(self, disk): """ Sets the disk of this V1Disk. - Attach a volume as a disk to the vm + Attach a volume as a disk to the vmi :param disk: The disk of this V1Disk. :type: V1DiskTarget @@ -149,7 +149,7 @@ def disk(self, disk): def floppy(self): """ Gets the floppy of this V1Disk. - Attach a volume as a floppy to the vm + Attach a volume as a floppy to the vmi :return: The floppy of this V1Disk. :rtype: V1FloppyTarget @@ -160,7 +160,7 @@ def floppy(self): def floppy(self, floppy): """ Sets the floppy of this V1Disk. - Attach a volume as a floppy to the vm + Attach a volume as a floppy to the vmi :param floppy: The floppy of this V1Disk. :type: V1FloppyTarget @@ -172,7 +172,7 @@ def floppy(self, floppy): def lun(self): """ Gets the lun of this V1Disk. - Attach a volume as a LUN to the vm + Attach a volume as a LUN to the vmi :return: The lun of this V1Disk. :rtype: V1LunTarget @@ -183,7 +183,7 @@ def lun(self): def lun(self, lun): """ Sets the lun of this V1Disk. - Attach a volume as a LUN to the vm + Attach a volume as a LUN to the vmi :param lun: The lun of this V1Disk. :type: V1LunTarget diff --git a/kubevirt/models/v1_domain_spec.py b/kubevirt/models/v1_domain_spec.py index 02b096ee..915ee8a8 100644 --- a/kubevirt/models/v1_domain_spec.py +++ b/kubevirt/models/v1_domain_spec.py @@ -81,7 +81,7 @@ def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=N def clock(self): """ Gets the clock of this V1DomainSpec. - Clock sets the clock and timers of the vm. +optional + Clock sets the clock and timers of the vmi. +optional :return: The clock of this V1DomainSpec. :rtype: V1Clock @@ -92,7 +92,7 @@ def clock(self): def clock(self, clock): """ Sets the clock of this V1DomainSpec. - Clock sets the clock and timers of the vm. +optional + Clock sets the clock and timers of the vmi. +optional :param clock: The clock of this V1DomainSpec. :type: V1Clock @@ -104,7 +104,7 @@ def clock(self, clock): def cpu(self): """ Gets the cpu of this V1DomainSpec. - CPU allow specified the detailed CPU topology inside the vm. +optional + CPU allow specified the detailed CPU topology inside the vmi. +optional :return: The cpu of this V1DomainSpec. :rtype: V1CPU @@ -115,7 +115,7 @@ def cpu(self): def cpu(self, cpu): """ Sets the cpu of this V1DomainSpec. - CPU allow specified the detailed CPU topology inside the vm. +optional + CPU allow specified the detailed CPU topology inside the vmi. +optional :param cpu: The cpu of this V1DomainSpec. :type: V1CPU @@ -221,7 +221,7 @@ def machine(self, machine): def resources(self): """ Gets the resources of this V1DomainSpec. - Resources describes the Compute Resources required by this vm. + Resources describes the Compute Resources required by this vmi. :return: The resources of this V1DomainSpec. :rtype: V1ResourceRequirements @@ -232,7 +232,7 @@ def resources(self): def resources(self, resources): """ Sets the resources of this V1DomainSpec. - Resources describes the Compute Resources required by this vm. + Resources describes the Compute Resources required by this vmi. :param resources: The resources of this V1DomainSpec. :type: V1ResourceRequirements diff --git a/kubevirt/models/v1_ephemeral_volume_source.py b/kubevirt/models/v1_ephemeral_volume_source.py index 09bbf58b..8bf06fa9 100644 --- a/kubevirt/models/v1_ephemeral_volume_source.py +++ b/kubevirt/models/v1_ephemeral_volume_source.py @@ -52,7 +52,7 @@ def __init__(self, persistent_volume_claim=None): def persistent_volume_claim(self): """ Gets the persistent_volume_claim of this V1EphemeralVolumeSource. - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vm via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims +optional + PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims +optional :return: The persistent_volume_claim of this V1EphemeralVolumeSource. :rtype: V1PersistentVolumeClaimVolumeSource @@ -63,7 +63,7 @@ def persistent_volume_claim(self): def persistent_volume_claim(self, persistent_volume_claim): """ Sets the persistent_volume_claim of this V1EphemeralVolumeSource. - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vm via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims +optional + PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims +optional :param persistent_volume_claim: The persistent_volume_claim of this V1EphemeralVolumeSource. :type: V1PersistentVolumeClaimVolumeSource diff --git a/kubevirt/models/v1_feature_hyperv.py b/kubevirt/models/v1_feature_hyperv.py index abc1686a..be59cc1b 100644 --- a/kubevirt/models/v1_feature_hyperv.py +++ b/kubevirt/models/v1_feature_hyperv.py @@ -115,7 +115,7 @@ def relaxed(self, relaxed): def reset(self): """ Gets the reset of this V1FeatureHyperv. - Reset enables Hyperv reboot/reset for the vm Defaults to the machine type setting +optional + Reset enables Hyperv reboot/reset for the vmi Defaults to the machine type setting +optional :return: The reset of this V1FeatureHyperv. :rtype: V1FeatureState @@ -126,7 +126,7 @@ def reset(self): def reset(self, reset): """ Sets the reset of this V1FeatureHyperv. - Reset enables Hyperv reboot/reset for the vm Defaults to the machine type setting +optional + Reset enables Hyperv reboot/reset for the vmi Defaults to the machine type setting +optional :param reset: The reset of this V1FeatureHyperv. :type: V1FeatureState diff --git a/kubevirt/models/v1_feature_vendor_id.py b/kubevirt/models/v1_feature_vendor_id.py index 341d055a..bb554ae9 100644 --- a/kubevirt/models/v1_feature_vendor_id.py +++ b/kubevirt/models/v1_feature_vendor_id.py @@ -80,7 +80,7 @@ def enabled(self, enabled): def vendorid(self): """ Gets the vendorid of this V1FeatureVendorID. - VendorID sets the hypervisor vendor id, visible to the vm String up to twelve characters + VendorID sets the hypervisor vendor id, visible to the vmi String up to twelve characters :return: The vendorid of this V1FeatureVendorID. :rtype: str @@ -91,7 +91,7 @@ def vendorid(self): def vendorid(self, vendorid): """ Sets the vendorid of this V1FeatureVendorID. - VendorID sets the hypervisor vendor id, visible to the vm String up to twelve characters + VendorID sets the hypervisor vendor id, visible to the vmi String up to twelve characters :param vendorid: The vendorid of this V1FeatureVendorID. :type: str diff --git a/kubevirt/models/v1_firmware.py b/kubevirt/models/v1_firmware.py index e45930be..8cd21199 100644 --- a/kubevirt/models/v1_firmware.py +++ b/kubevirt/models/v1_firmware.py @@ -52,7 +52,7 @@ def __init__(self, uuid=None): def uuid(self): """ Gets the uuid of this V1Firmware. - UUID reported by the vm bios Defaults to a random generated uid + UUID reported by the vmi bios Defaults to a random generated uid :return: The uuid of this V1Firmware. :rtype: str @@ -63,7 +63,7 @@ def uuid(self): def uuid(self, uuid): """ Sets the uuid of this V1Firmware. - UUID reported by the vm bios Defaults to a random generated uid + UUID reported by the vmi bios Defaults to a random generated uid :param uuid: The uuid of this V1Firmware. :type: str diff --git a/kubevirt/models/v1_machine.py b/kubevirt/models/v1_machine.py index 4d65cf37..8c00b4ac 100644 --- a/kubevirt/models/v1_machine.py +++ b/kubevirt/models/v1_machine.py @@ -51,7 +51,7 @@ def __init__(self, type=None): def type(self): """ Gets the type of this V1Machine. - QEMU machine type is the actual chipset of the VM. + QEMU machine type is the actual chipset of the VirtualMachineInstance. :return: The type of this V1Machine. :rtype: str @@ -62,7 +62,7 @@ def type(self): def type(self, type): """ Sets the type of this V1Machine. - QEMU machine type is the actual chipset of the VM. + QEMU machine type is the actual chipset of the VirtualMachineInstance. :param type: The type of this V1Machine. :type: str diff --git a/kubevirt/models/v1_offline_virtual_machine_spec.py b/kubevirt/models/v1_offline_virtual_machine_spec.py deleted file mode 100644 index b18187d9..00000000 --- a/kubevirt/models/v1_offline_virtual_machine_spec.py +++ /dev/null @@ -1,155 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1OfflineVirtualMachineSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'running': 'bool', - 'template': 'V1VMTemplateSpec' - } - - attribute_map = { - 'running': 'running', - 'template': 'template' - } - - def __init__(self, running=None, template=None): - """ - V1OfflineVirtualMachineSpec - a model defined in Swagger - """ - - self._running = None - self._template = None - - self.running = running - self.template = template - - @property - def running(self): - """ - Gets the running of this V1OfflineVirtualMachineSpec. - Running controls whether the associatied VirtualMachine is created or not - - :return: The running of this V1OfflineVirtualMachineSpec. - :rtype: bool - """ - return self._running - - @running.setter - def running(self, running): - """ - Sets the running of this V1OfflineVirtualMachineSpec. - Running controls whether the associatied VirtualMachine is created or not - - :param running: The running of this V1OfflineVirtualMachineSpec. - :type: bool - """ - if running is None: - raise ValueError("Invalid value for `running`, must not be `None`") - - self._running = running - - @property - def template(self): - """ - Gets the template of this V1OfflineVirtualMachineSpec. - Template is the direct specification of VirtualMachine - - :return: The template of this V1OfflineVirtualMachineSpec. - :rtype: V1VMTemplateSpec - """ - return self._template - - @template.setter - def template(self, template): - """ - Sets the template of this V1OfflineVirtualMachineSpec. - Template is the direct specification of VirtualMachine - - :param template: The template of this V1OfflineVirtualMachineSpec. - :type: V1VMTemplateSpec - """ - if template is None: - raise ValueError("Invalid value for `template`, must not be `None`") - - self._template = template - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1OfflineVirtualMachineSpec): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_offline_virtual_machine_status.py b/kubevirt/models/v1_offline_virtual_machine_status.py deleted file mode 100644 index 12f66f89..00000000 --- a/kubevirt/models/v1_offline_virtual_machine_status.py +++ /dev/null @@ -1,181 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1OfflineVirtualMachineStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'conditions': 'list[V1OfflineVirtualMachineCondition]', - 'created': 'bool', - 'ready': 'bool' - } - - attribute_map = { - 'conditions': 'conditions', - 'created': 'created', - 'ready': 'ready' - } - - def __init__(self, conditions=None, created=None, ready=None): - """ - V1OfflineVirtualMachineStatus - a model defined in Swagger - """ - - self._conditions = None - self._created = None - self._ready = None - - if conditions is not None: - self.conditions = conditions - if created is not None: - self.created = created - if ready is not None: - self.ready = ready - - @property - def conditions(self): - """ - Gets the conditions of this V1OfflineVirtualMachineStatus. - Hold the state information of the OfflineVirtualMachine and its VirtualMachine - - :return: The conditions of this V1OfflineVirtualMachineStatus. - :rtype: list[V1OfflineVirtualMachineCondition] - """ - return self._conditions - - @conditions.setter - def conditions(self, conditions): - """ - Sets the conditions of this V1OfflineVirtualMachineStatus. - Hold the state information of the OfflineVirtualMachine and its VirtualMachine - - :param conditions: The conditions of this V1OfflineVirtualMachineStatus. - :type: list[V1OfflineVirtualMachineCondition] - """ - - self._conditions = conditions - - @property - def created(self): - """ - Gets the created of this V1OfflineVirtualMachineStatus. - Created indicates if the virtual machine is created in the cluster - - :return: The created of this V1OfflineVirtualMachineStatus. - :rtype: bool - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this V1OfflineVirtualMachineStatus. - Created indicates if the virtual machine is created in the cluster - - :param created: The created of this V1OfflineVirtualMachineStatus. - :type: bool - """ - - self._created = created - - @property - def ready(self): - """ - Gets the ready of this V1OfflineVirtualMachineStatus. - Ready indicates if the virtual machine is running and ready - - :return: The ready of this V1OfflineVirtualMachineStatus. - :rtype: bool - """ - return self._ready - - @ready.setter - def ready(self, ready): - """ - Sets the ready of this V1OfflineVirtualMachineStatus. - Ready indicates if the virtual machine is running and ready - - :param ready: The ready of this V1OfflineVirtualMachineStatus. - :type: bool - """ - - self._ready = ready - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1OfflineVirtualMachineStatus): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_resource_requirements.py b/kubevirt/models/v1_resource_requirements.py index f9fee312..d40b4256 100644 --- a/kubevirt/models/v1_resource_requirements.py +++ b/kubevirt/models/v1_resource_requirements.py @@ -80,7 +80,7 @@ def limits(self, limits): def requests(self): """ Gets the requests of this V1ResourceRequirements. - Requests is a description of the initial vm resources. Valid resource keys are \"memory\" and \"cpu\". +optional + Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". +optional :return: The requests of this V1ResourceRequirements. :rtype: object @@ -91,7 +91,7 @@ def requests(self): def requests(self, requests): """ Sets the requests of this V1ResourceRequirements. - Requests is a description of the initial vm resources. Valid resource keys are \"memory\" and \"cpu\". +optional + Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". +optional :param requests: The requests of this V1ResourceRequirements. :type: object diff --git a/kubevirt/models/v1_virtual_machine.py b/kubevirt/models/v1_virtual_machine.py index 748dd94a..60905189 100644 --- a/kubevirt/models/v1_virtual_machine.py +++ b/kubevirt/models/v1_virtual_machine.py @@ -139,7 +139,7 @@ def metadata(self, metadata): def spec(self): """ Gets the spec of this V1VirtualMachine. - VM Spec contains the VM specification. + Spec contains the specification of VirtualMachineInstance created :return: The spec of this V1VirtualMachine. :rtype: V1VirtualMachineSpec @@ -150,7 +150,7 @@ def spec(self): def spec(self, spec): """ Sets the spec of this V1VirtualMachine. - VM Spec contains the VM specification. + Spec contains the specification of VirtualMachineInstance created :param spec: The spec of this V1VirtualMachine. :type: V1VirtualMachineSpec @@ -162,7 +162,7 @@ def spec(self, spec): def status(self): """ Gets the status of this V1VirtualMachine. - Status is the high level overview of how the VM is doing. It contains information available to controllers and users. + Status holds the current state of the controller and brief information about its associated VirtualMachineInstance :return: The status of this V1VirtualMachine. :rtype: V1VirtualMachineStatus @@ -173,7 +173,7 @@ def status(self): def status(self, status): """ Sets the status of this V1VirtualMachine. - Status is the high level overview of how the VM is doing. It contains information available to controllers and users. + Status holds the current state of the controller and brief information about its associated VirtualMachineInstance :param status: The status of this V1VirtualMachine. :type: V1VirtualMachineStatus diff --git a/kubevirt/models/v1_virtual_machine_replica_set.py b/kubevirt/models/v1_virtual_machine_instance.py similarity index 71% rename from kubevirt/models/v1_virtual_machine_replica_set.py rename to kubevirt/models/v1_virtual_machine_instance.py index 0e34595e..8981dd44 100644 --- a/kubevirt/models/v1_virtual_machine_replica_set.py +++ b/kubevirt/models/v1_virtual_machine_instance.py @@ -16,7 +16,7 @@ import re -class V1VirtualMachineReplicaSet(object): +class V1VirtualMachineInstance(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -34,8 +34,8 @@ class V1VirtualMachineReplicaSet(object): 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', - 'spec': 'V1VMReplicaSetSpec', - 'status': 'V1VMReplicaSetStatus' + 'spec': 'V1VirtualMachineInstanceSpec', + 'status': 'V1VirtualMachineInstanceStatus' } attribute_map = { @@ -48,7 +48,7 @@ class V1VirtualMachineReplicaSet(object): def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): """ - V1VirtualMachineReplicaSet - a model defined in Swagger + V1VirtualMachineInstance - a model defined in Swagger """ self._api_version = None @@ -71,10 +71,10 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status @property def api_version(self): """ - Gets the api_version of this V1VirtualMachineReplicaSet. + Gets the api_version of this V1VirtualMachineInstance. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources - :return: The api_version of this V1VirtualMachineReplicaSet. + :return: The api_version of this V1VirtualMachineInstance. :rtype: str """ return self._api_version @@ -82,10 +82,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1VirtualMachineReplicaSet. + Sets the api_version of this V1VirtualMachineInstance. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources - :param api_version: The api_version of this V1VirtualMachineReplicaSet. + :param api_version: The api_version of this V1VirtualMachineInstance. :type: str """ @@ -94,10 +94,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V1VirtualMachineReplicaSet. + Gets the kind of this V1VirtualMachineInstance. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - :return: The kind of this V1VirtualMachineReplicaSet. + :return: The kind of this V1VirtualMachineInstance. :rtype: str """ return self._kind @@ -105,10 +105,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1VirtualMachineReplicaSet. + Sets the kind of this V1VirtualMachineInstance. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - :param kind: The kind of this V1VirtualMachineReplicaSet. + :param kind: The kind of this V1VirtualMachineInstance. :type: str """ @@ -117,9 +117,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1VirtualMachineReplicaSet. + Gets the metadata of this V1VirtualMachineInstance. - :return: The metadata of this V1VirtualMachineReplicaSet. + :return: The metadata of this V1VirtualMachineInstance. :rtype: V1ObjectMeta """ return self._metadata @@ -127,9 +127,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1VirtualMachineReplicaSet. + Sets the metadata of this V1VirtualMachineInstance. - :param metadata: The metadata of this V1VirtualMachineReplicaSet. + :param metadata: The metadata of this V1VirtualMachineInstance. :type: V1ObjectMeta """ @@ -138,22 +138,22 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1VirtualMachineReplicaSet. - VM Spec contains the VM specification. + Gets the spec of this V1VirtualMachineInstance. + VirtualMachineInstance Spec contains the VirtualMachineInstance specification. - :return: The spec of this V1VirtualMachineReplicaSet. - :rtype: V1VMReplicaSetSpec + :return: The spec of this V1VirtualMachineInstance. + :rtype: V1VirtualMachineInstanceSpec """ return self._spec @spec.setter def spec(self, spec): """ - Sets the spec of this V1VirtualMachineReplicaSet. - VM Spec contains the VM specification. + Sets the spec of this V1VirtualMachineInstance. + VirtualMachineInstance Spec contains the VirtualMachineInstance specification. - :param spec: The spec of this V1VirtualMachineReplicaSet. - :type: V1VMReplicaSetSpec + :param spec: The spec of this V1VirtualMachineInstance. + :type: V1VirtualMachineInstanceSpec """ self._spec = spec @@ -161,22 +161,22 @@ def spec(self, spec): @property def status(self): """ - Gets the status of this V1VirtualMachineReplicaSet. - Status is the high level overview of how the VM is doing. It contains information available to controllers and users. + Gets the status of this V1VirtualMachineInstance. + Status is the high level overview of how the VirtualMachineInstance is doing. It contains information available to controllers and users. - :return: The status of this V1VirtualMachineReplicaSet. - :rtype: V1VMReplicaSetStatus + :return: The status of this V1VirtualMachineInstance. + :rtype: V1VirtualMachineInstanceStatus """ return self._status @status.setter def status(self, status): """ - Sets the status of this V1VirtualMachineReplicaSet. - Status is the high level overview of how the VM is doing. It contains information available to controllers and users. + Sets the status of this V1VirtualMachineInstance. + Status is the high level overview of how the VirtualMachineInstance is doing. It contains information available to controllers and users. - :param status: The status of this V1VirtualMachineReplicaSet. - :type: V1VMReplicaSetStatus + :param status: The status of this V1VirtualMachineInstance. + :type: V1VirtualMachineInstanceStatus """ self._status = status @@ -223,7 +223,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1VirtualMachineReplicaSet): + if not isinstance(other, V1VirtualMachineInstance): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_offline_virtual_machine_condition.py b/kubevirt/models/v1_virtual_machine_instance_condition.py similarity index 73% rename from kubevirt/models/v1_offline_virtual_machine_condition.py rename to kubevirt/models/v1_virtual_machine_instance_condition.py index d792b3a8..b367d0e9 100644 --- a/kubevirt/models/v1_offline_virtual_machine_condition.py +++ b/kubevirt/models/v1_virtual_machine_instance_condition.py @@ -16,7 +16,7 @@ import re -class V1OfflineVirtualMachineCondition(object): +class V1VirtualMachineInstanceCondition(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -50,7 +50,7 @@ class V1OfflineVirtualMachineCondition(object): def __init__(self, last_probe_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None): """ - V1OfflineVirtualMachineCondition - a model defined in Swagger + V1VirtualMachineInstanceCondition - a model defined in Swagger """ self._last_probe_time = None @@ -74,9 +74,9 @@ def __init__(self, last_probe_time=None, last_transition_time=None, message=None @property def last_probe_time(self): """ - Gets the last_probe_time of this V1OfflineVirtualMachineCondition. + Gets the last_probe_time of this V1VirtualMachineInstanceCondition. - :return: The last_probe_time of this V1OfflineVirtualMachineCondition. + :return: The last_probe_time of this V1VirtualMachineInstanceCondition. :rtype: str """ return self._last_probe_time @@ -84,9 +84,9 @@ def last_probe_time(self): @last_probe_time.setter def last_probe_time(self, last_probe_time): """ - Sets the last_probe_time of this V1OfflineVirtualMachineCondition. + Sets the last_probe_time of this V1VirtualMachineInstanceCondition. - :param last_probe_time: The last_probe_time of this V1OfflineVirtualMachineCondition. + :param last_probe_time: The last_probe_time of this V1VirtualMachineInstanceCondition. :type: str """ @@ -95,9 +95,9 @@ def last_probe_time(self, last_probe_time): @property def last_transition_time(self): """ - Gets the last_transition_time of this V1OfflineVirtualMachineCondition. + Gets the last_transition_time of this V1VirtualMachineInstanceCondition. - :return: The last_transition_time of this V1OfflineVirtualMachineCondition. + :return: The last_transition_time of this V1VirtualMachineInstanceCondition. :rtype: str """ return self._last_transition_time @@ -105,9 +105,9 @@ def last_transition_time(self): @last_transition_time.setter def last_transition_time(self, last_transition_time): """ - Sets the last_transition_time of this V1OfflineVirtualMachineCondition. + Sets the last_transition_time of this V1VirtualMachineInstanceCondition. - :param last_transition_time: The last_transition_time of this V1OfflineVirtualMachineCondition. + :param last_transition_time: The last_transition_time of this V1VirtualMachineInstanceCondition. :type: str """ @@ -116,9 +116,9 @@ def last_transition_time(self, last_transition_time): @property def message(self): """ - Gets the message of this V1OfflineVirtualMachineCondition. + Gets the message of this V1VirtualMachineInstanceCondition. - :return: The message of this V1OfflineVirtualMachineCondition. + :return: The message of this V1VirtualMachineInstanceCondition. :rtype: str """ return self._message @@ -126,9 +126,9 @@ def message(self): @message.setter def message(self, message): """ - Sets the message of this V1OfflineVirtualMachineCondition. + Sets the message of this V1VirtualMachineInstanceCondition. - :param message: The message of this V1OfflineVirtualMachineCondition. + :param message: The message of this V1VirtualMachineInstanceCondition. :type: str """ @@ -137,9 +137,9 @@ def message(self, message): @property def reason(self): """ - Gets the reason of this V1OfflineVirtualMachineCondition. + Gets the reason of this V1VirtualMachineInstanceCondition. - :return: The reason of this V1OfflineVirtualMachineCondition. + :return: The reason of this V1VirtualMachineInstanceCondition. :rtype: str """ return self._reason @@ -147,9 +147,9 @@ def reason(self): @reason.setter def reason(self, reason): """ - Sets the reason of this V1OfflineVirtualMachineCondition. + Sets the reason of this V1VirtualMachineInstanceCondition. - :param reason: The reason of this V1OfflineVirtualMachineCondition. + :param reason: The reason of this V1VirtualMachineInstanceCondition. :type: str """ @@ -158,9 +158,9 @@ def reason(self, reason): @property def status(self): """ - Gets the status of this V1OfflineVirtualMachineCondition. + Gets the status of this V1VirtualMachineInstanceCondition. - :return: The status of this V1OfflineVirtualMachineCondition. + :return: The status of this V1VirtualMachineInstanceCondition. :rtype: str """ return self._status @@ -168,9 +168,9 @@ def status(self): @status.setter def status(self, status): """ - Sets the status of this V1OfflineVirtualMachineCondition. + Sets the status of this V1VirtualMachineInstanceCondition. - :param status: The status of this V1OfflineVirtualMachineCondition. + :param status: The status of this V1VirtualMachineInstanceCondition. :type: str """ if status is None: @@ -181,9 +181,9 @@ def status(self, status): @property def type(self): """ - Gets the type of this V1OfflineVirtualMachineCondition. + Gets the type of this V1VirtualMachineInstanceCondition. - :return: The type of this V1OfflineVirtualMachineCondition. + :return: The type of this V1VirtualMachineInstanceCondition. :rtype: str """ return self._type @@ -191,9 +191,9 @@ def type(self): @type.setter def type(self, type): """ - Sets the type of this V1OfflineVirtualMachineCondition. + Sets the type of this V1VirtualMachineInstanceCondition. - :param type: The type of this V1OfflineVirtualMachineCondition. + :param type: The type of this V1VirtualMachineInstanceCondition. :type: str """ if type is None: @@ -243,7 +243,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1OfflineVirtualMachineCondition): + if not isinstance(other, V1VirtualMachineInstanceCondition): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_virtual_machine_preset_list.py b/kubevirt/models/v1_virtual_machine_instance_list.py similarity index 79% rename from kubevirt/models/v1_virtual_machine_preset_list.py rename to kubevirt/models/v1_virtual_machine_instance_list.py index ec81d8d3..48cc2ffd 100644 --- a/kubevirt/models/v1_virtual_machine_preset_list.py +++ b/kubevirt/models/v1_virtual_machine_instance_list.py @@ -16,7 +16,7 @@ import re -class V1VirtualMachinePresetList(object): +class V1VirtualMachineInstanceList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class V1VirtualMachinePresetList(object): """ swagger_types = { 'api_version': 'str', - 'items': 'list[V1VirtualMachinePreset]', + 'items': 'list[V1VirtualMachineInstance]', 'kind': 'str', 'metadata': 'V1ListMeta' } @@ -46,7 +46,7 @@ class V1VirtualMachinePresetList(object): def __init__(self, api_version=None, items=None, kind=None, metadata=None): """ - V1VirtualMachinePresetList - a model defined in Swagger + V1VirtualMachineInstanceList - a model defined in Swagger """ self._api_version = None @@ -65,10 +65,10 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): @property def api_version(self): """ - Gets the api_version of this V1VirtualMachinePresetList. + Gets the api_version of this V1VirtualMachineInstanceList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources - :return: The api_version of this V1VirtualMachinePresetList. + :return: The api_version of this V1VirtualMachineInstanceList. :rtype: str """ return self._api_version @@ -76,10 +76,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1VirtualMachinePresetList. + Sets the api_version of this V1VirtualMachineInstanceList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources - :param api_version: The api_version of this V1VirtualMachinePresetList. + :param api_version: The api_version of this V1VirtualMachineInstanceList. :type: str """ @@ -88,20 +88,20 @@ def api_version(self, api_version): @property def items(self): """ - Gets the items of this V1VirtualMachinePresetList. + Gets the items of this V1VirtualMachineInstanceList. - :return: The items of this V1VirtualMachinePresetList. - :rtype: list[V1VirtualMachinePreset] + :return: The items of this V1VirtualMachineInstanceList. + :rtype: list[V1VirtualMachineInstance] """ return self._items @items.setter def items(self, items): """ - Sets the items of this V1VirtualMachinePresetList. + Sets the items of this V1VirtualMachineInstanceList. - :param items: The items of this V1VirtualMachinePresetList. - :type: list[V1VirtualMachinePreset] + :param items: The items of this V1VirtualMachineInstanceList. + :type: list[V1VirtualMachineInstance] """ if items is None: raise ValueError("Invalid value for `items`, must not be `None`") @@ -111,10 +111,10 @@ def items(self, items): @property def kind(self): """ - Gets the kind of this V1VirtualMachinePresetList. + Gets the kind of this V1VirtualMachineInstanceList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - :return: The kind of this V1VirtualMachinePresetList. + :return: The kind of this V1VirtualMachineInstanceList. :rtype: str """ return self._kind @@ -122,10 +122,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1VirtualMachinePresetList. + Sets the kind of this V1VirtualMachineInstanceList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - :param kind: The kind of this V1VirtualMachinePresetList. + :param kind: The kind of this V1VirtualMachineInstanceList. :type: str """ @@ -134,9 +134,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1VirtualMachinePresetList. + Gets the metadata of this V1VirtualMachineInstanceList. - :return: The metadata of this V1VirtualMachinePresetList. + :return: The metadata of this V1VirtualMachineInstanceList. :rtype: V1ListMeta """ return self._metadata @@ -144,9 +144,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1VirtualMachinePresetList. + Sets the metadata of this V1VirtualMachineInstanceList. - :param metadata: The metadata of this V1VirtualMachinePresetList. + :param metadata: The metadata of this V1VirtualMachineInstanceList. :type: V1ListMeta """ @@ -194,7 +194,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1VirtualMachinePresetList): + if not isinstance(other, V1VirtualMachineInstanceList): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_virtual_machine_network_interface.py b/kubevirt/models/v1_virtual_machine_instance_network_interface.py similarity index 81% rename from kubevirt/models/v1_virtual_machine_network_interface.py rename to kubevirt/models/v1_virtual_machine_instance_network_interface.py index bcea8a83..49843f7a 100644 --- a/kubevirt/models/v1_virtual_machine_network_interface.py +++ b/kubevirt/models/v1_virtual_machine_instance_network_interface.py @@ -16,7 +16,7 @@ import re -class V1VirtualMachineNetworkInterface(object): +class V1VirtualMachineInstanceNetworkInterface(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class V1VirtualMachineNetworkInterface(object): def __init__(self, ip_address=None, mac=None): """ - V1VirtualMachineNetworkInterface - a model defined in Swagger + V1VirtualMachineInstanceNetworkInterface - a model defined in Swagger """ self._ip_address = None @@ -56,10 +56,10 @@ def __init__(self, ip_address=None, mac=None): @property def ip_address(self): """ - Gets the ip_address of this V1VirtualMachineNetworkInterface. + Gets the ip_address of this V1VirtualMachineInstanceNetworkInterface. IP address of a Virtual Machine interface - :return: The ip_address of this V1VirtualMachineNetworkInterface. + :return: The ip_address of this V1VirtualMachineInstanceNetworkInterface. :rtype: str """ return self._ip_address @@ -67,10 +67,10 @@ def ip_address(self): @ip_address.setter def ip_address(self, ip_address): """ - Sets the ip_address of this V1VirtualMachineNetworkInterface. + Sets the ip_address of this V1VirtualMachineInstanceNetworkInterface. IP address of a Virtual Machine interface - :param ip_address: The ip_address of this V1VirtualMachineNetworkInterface. + :param ip_address: The ip_address of this V1VirtualMachineInstanceNetworkInterface. :type: str """ @@ -79,10 +79,10 @@ def ip_address(self, ip_address): @property def mac(self): """ - Gets the mac of this V1VirtualMachineNetworkInterface. + Gets the mac of this V1VirtualMachineInstanceNetworkInterface. Hardware address of a Virtual Machine interface - :return: The mac of this V1VirtualMachineNetworkInterface. + :return: The mac of this V1VirtualMachineInstanceNetworkInterface. :rtype: str """ return self._mac @@ -90,10 +90,10 @@ def mac(self): @mac.setter def mac(self, mac): """ - Sets the mac of this V1VirtualMachineNetworkInterface. + Sets the mac of this V1VirtualMachineInstanceNetworkInterface. Hardware address of a Virtual Machine interface - :param mac: The mac of this V1VirtualMachineNetworkInterface. + :param mac: The mac of this V1VirtualMachineInstanceNetworkInterface. :type: str """ @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1VirtualMachineNetworkInterface): + if not isinstance(other, V1VirtualMachineInstanceNetworkInterface): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_virtual_machine_preset.py b/kubevirt/models/v1_virtual_machine_instance_preset.py similarity index 76% rename from kubevirt/models/v1_virtual_machine_preset.py rename to kubevirt/models/v1_virtual_machine_instance_preset.py index 91f339c3..32f9a896 100644 --- a/kubevirt/models/v1_virtual_machine_preset.py +++ b/kubevirt/models/v1_virtual_machine_instance_preset.py @@ -16,7 +16,7 @@ import re -class V1VirtualMachinePreset(object): +class V1VirtualMachineInstancePreset(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -34,7 +34,7 @@ class V1VirtualMachinePreset(object): 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', - 'spec': 'V1VirtualMachinePresetSpec' + 'spec': 'V1VirtualMachineInstancePresetSpec' } attribute_map = { @@ -46,7 +46,7 @@ class V1VirtualMachinePreset(object): def __init__(self, api_version=None, kind=None, metadata=None, spec=None): """ - V1VirtualMachinePreset - a model defined in Swagger + V1VirtualMachineInstancePreset - a model defined in Swagger """ self._api_version = None @@ -66,10 +66,10 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None): @property def api_version(self): """ - Gets the api_version of this V1VirtualMachinePreset. + Gets the api_version of this V1VirtualMachineInstancePreset. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources - :return: The api_version of this V1VirtualMachinePreset. + :return: The api_version of this V1VirtualMachineInstancePreset. :rtype: str """ return self._api_version @@ -77,10 +77,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1VirtualMachinePreset. + Sets the api_version of this V1VirtualMachineInstancePreset. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources - :param api_version: The api_version of this V1VirtualMachinePreset. + :param api_version: The api_version of this V1VirtualMachineInstancePreset. :type: str """ @@ -89,10 +89,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V1VirtualMachinePreset. + Gets the kind of this V1VirtualMachineInstancePreset. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - :return: The kind of this V1VirtualMachinePreset. + :return: The kind of this V1VirtualMachineInstancePreset. :rtype: str """ return self._kind @@ -100,10 +100,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1VirtualMachinePreset. + Sets the kind of this V1VirtualMachineInstancePreset. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - :param kind: The kind of this V1VirtualMachinePreset. + :param kind: The kind of this V1VirtualMachineInstancePreset. :type: str """ @@ -112,9 +112,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1VirtualMachinePreset. + Gets the metadata of this V1VirtualMachineInstancePreset. - :return: The metadata of this V1VirtualMachinePreset. + :return: The metadata of this V1VirtualMachineInstancePreset. :rtype: V1ObjectMeta """ return self._metadata @@ -122,9 +122,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1VirtualMachinePreset. + Sets the metadata of this V1VirtualMachineInstancePreset. - :param metadata: The metadata of this V1VirtualMachinePreset. + :param metadata: The metadata of this V1VirtualMachineInstancePreset. :type: V1ObjectMeta """ @@ -133,22 +133,22 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1VirtualMachinePreset. - VM Spec contains the VM specification. + Gets the spec of this V1VirtualMachineInstancePreset. + VirtualMachineInstance Spec contains the VirtualMachineInstance specification. - :return: The spec of this V1VirtualMachinePreset. - :rtype: V1VirtualMachinePresetSpec + :return: The spec of this V1VirtualMachineInstancePreset. + :rtype: V1VirtualMachineInstancePresetSpec """ return self._spec @spec.setter def spec(self, spec): """ - Sets the spec of this V1VirtualMachinePreset. - VM Spec contains the VM specification. + Sets the spec of this V1VirtualMachineInstancePreset. + VirtualMachineInstance Spec contains the VirtualMachineInstance specification. - :param spec: The spec of this V1VirtualMachinePreset. - :type: V1VirtualMachinePresetSpec + :param spec: The spec of this V1VirtualMachineInstancePreset. + :type: V1VirtualMachineInstancePresetSpec """ self._spec = spec @@ -195,7 +195,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1VirtualMachinePreset): + if not isinstance(other, V1VirtualMachineInstancePreset): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_virtual_machine_replica_set_list.py b/kubevirt/models/v1_virtual_machine_instance_preset_list.py similarity index 77% rename from kubevirt/models/v1_virtual_machine_replica_set_list.py rename to kubevirt/models/v1_virtual_machine_instance_preset_list.py index 153a3047..2f0fce82 100644 --- a/kubevirt/models/v1_virtual_machine_replica_set_list.py +++ b/kubevirt/models/v1_virtual_machine_instance_preset_list.py @@ -16,7 +16,7 @@ import re -class V1VirtualMachineReplicaSetList(object): +class V1VirtualMachineInstancePresetList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class V1VirtualMachineReplicaSetList(object): """ swagger_types = { 'api_version': 'str', - 'items': 'list[V1VirtualMachineReplicaSet]', + 'items': 'list[V1VirtualMachineInstancePreset]', 'kind': 'str', 'metadata': 'V1ListMeta' } @@ -46,7 +46,7 @@ class V1VirtualMachineReplicaSetList(object): def __init__(self, api_version=None, items=None, kind=None, metadata=None): """ - V1VirtualMachineReplicaSetList - a model defined in Swagger + V1VirtualMachineInstancePresetList - a model defined in Swagger """ self._api_version = None @@ -65,10 +65,10 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): @property def api_version(self): """ - Gets the api_version of this V1VirtualMachineReplicaSetList. + Gets the api_version of this V1VirtualMachineInstancePresetList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources - :return: The api_version of this V1VirtualMachineReplicaSetList. + :return: The api_version of this V1VirtualMachineInstancePresetList. :rtype: str """ return self._api_version @@ -76,10 +76,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1VirtualMachineReplicaSetList. + Sets the api_version of this V1VirtualMachineInstancePresetList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources - :param api_version: The api_version of this V1VirtualMachineReplicaSetList. + :param api_version: The api_version of this V1VirtualMachineInstancePresetList. :type: str """ @@ -88,20 +88,20 @@ def api_version(self, api_version): @property def items(self): """ - Gets the items of this V1VirtualMachineReplicaSetList. + Gets the items of this V1VirtualMachineInstancePresetList. - :return: The items of this V1VirtualMachineReplicaSetList. - :rtype: list[V1VirtualMachineReplicaSet] + :return: The items of this V1VirtualMachineInstancePresetList. + :rtype: list[V1VirtualMachineInstancePreset] """ return self._items @items.setter def items(self, items): """ - Sets the items of this V1VirtualMachineReplicaSetList. + Sets the items of this V1VirtualMachineInstancePresetList. - :param items: The items of this V1VirtualMachineReplicaSetList. - :type: list[V1VirtualMachineReplicaSet] + :param items: The items of this V1VirtualMachineInstancePresetList. + :type: list[V1VirtualMachineInstancePreset] """ if items is None: raise ValueError("Invalid value for `items`, must not be `None`") @@ -111,10 +111,10 @@ def items(self, items): @property def kind(self): """ - Gets the kind of this V1VirtualMachineReplicaSetList. + Gets the kind of this V1VirtualMachineInstancePresetList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - :return: The kind of this V1VirtualMachineReplicaSetList. + :return: The kind of this V1VirtualMachineInstancePresetList. :rtype: str """ return self._kind @@ -122,10 +122,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1VirtualMachineReplicaSetList. + Sets the kind of this V1VirtualMachineInstancePresetList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - :param kind: The kind of this V1VirtualMachineReplicaSetList. + :param kind: The kind of this V1VirtualMachineInstancePresetList. :type: str """ @@ -134,9 +134,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1VirtualMachineReplicaSetList. + Gets the metadata of this V1VirtualMachineInstancePresetList. - :return: The metadata of this V1VirtualMachineReplicaSetList. + :return: The metadata of this V1VirtualMachineInstancePresetList. :rtype: V1ListMeta """ return self._metadata @@ -144,9 +144,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1VirtualMachineReplicaSetList. + Sets the metadata of this V1VirtualMachineInstancePresetList. - :param metadata: The metadata of this V1VirtualMachineReplicaSetList. + :param metadata: The metadata of this V1VirtualMachineInstancePresetList. :type: V1ListMeta """ @@ -194,7 +194,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1VirtualMachineReplicaSetList): + if not isinstance(other, V1VirtualMachineInstancePresetList): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_virtual_machine_preset_spec.py b/kubevirt/models/v1_virtual_machine_instance_preset_spec.py similarity index 78% rename from kubevirt/models/v1_virtual_machine_preset_spec.py rename to kubevirt/models/v1_virtual_machine_instance_preset_spec.py index cbcc39db..2a106910 100644 --- a/kubevirt/models/v1_virtual_machine_preset_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_preset_spec.py @@ -16,7 +16,7 @@ import re -class V1VirtualMachinePresetSpec(object): +class V1VirtualMachineInstancePresetSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class V1VirtualMachinePresetSpec(object): def __init__(self, domain=None, selector=None): """ - V1VirtualMachinePresetSpec - a model defined in Swagger + V1VirtualMachineInstancePresetSpec - a model defined in Swagger """ self._domain = None @@ -55,10 +55,10 @@ def __init__(self, domain=None, selector=None): @property def domain(self): """ - Gets the domain of this V1VirtualMachinePresetSpec. - Domain is the same object type as contained in VirtualMachineSpec + Gets the domain of this V1VirtualMachineInstancePresetSpec. + Domain is the same object type as contained in VirtualMachineInstanceSpec - :return: The domain of this V1VirtualMachinePresetSpec. + :return: The domain of this V1VirtualMachineInstancePresetSpec. :rtype: V1DomainSpec """ return self._domain @@ -66,10 +66,10 @@ def domain(self): @domain.setter def domain(self, domain): """ - Sets the domain of this V1VirtualMachinePresetSpec. - Domain is the same object type as contained in VirtualMachineSpec + Sets the domain of this V1VirtualMachineInstancePresetSpec. + Domain is the same object type as contained in VirtualMachineInstanceSpec - :param domain: The domain of this V1VirtualMachinePresetSpec. + :param domain: The domain of this V1VirtualMachineInstancePresetSpec. :type: V1DomainSpec """ @@ -78,10 +78,10 @@ def domain(self, domain): @property def selector(self): """ - Gets the selector of this V1VirtualMachinePresetSpec. - Selector is a label query over a set of VMs. Required. + Gets the selector of this V1VirtualMachineInstancePresetSpec. + Selector is a label query over a set of VMIs. Required. - :return: The selector of this V1VirtualMachinePresetSpec. + :return: The selector of this V1VirtualMachineInstancePresetSpec. :rtype: V1LabelSelector """ return self._selector @@ -89,10 +89,10 @@ def selector(self): @selector.setter def selector(self, selector): """ - Sets the selector of this V1VirtualMachinePresetSpec. - Selector is a label query over a set of VMs. Required. + Sets the selector of this V1VirtualMachineInstancePresetSpec. + Selector is a label query over a set of VMIs. Required. - :param selector: The selector of this V1VirtualMachinePresetSpec. + :param selector: The selector of this V1VirtualMachineInstancePresetSpec. :type: V1LabelSelector """ if selector is None: @@ -142,7 +142,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1VirtualMachinePresetSpec): + if not isinstance(other, V1VirtualMachineInstancePresetSpec): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_offline_virtual_machine.py b/kubevirt/models/v1_virtual_machine_instance_replica_set.py similarity index 68% rename from kubevirt/models/v1_offline_virtual_machine.py rename to kubevirt/models/v1_virtual_machine_instance_replica_set.py index 1ade4361..d3ec8c2b 100644 --- a/kubevirt/models/v1_offline_virtual_machine.py +++ b/kubevirt/models/v1_virtual_machine_instance_replica_set.py @@ -16,7 +16,7 @@ import re -class V1OfflineVirtualMachine(object): +class V1VirtualMachineInstanceReplicaSet(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -34,8 +34,8 @@ class V1OfflineVirtualMachine(object): 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', - 'spec': 'V1OfflineVirtualMachineSpec', - 'status': 'V1OfflineVirtualMachineStatus' + 'spec': 'V1VirtualMachineInstanceReplicaSetSpec', + 'status': 'V1VirtualMachineInstanceReplicaSetStatus' } attribute_map = { @@ -48,7 +48,7 @@ class V1OfflineVirtualMachine(object): def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): """ - V1OfflineVirtualMachine - a model defined in Swagger + V1VirtualMachineInstanceReplicaSet - a model defined in Swagger """ self._api_version = None @@ -71,10 +71,10 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status @property def api_version(self): """ - Gets the api_version of this V1OfflineVirtualMachine. + Gets the api_version of this V1VirtualMachineInstanceReplicaSet. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources - :return: The api_version of this V1OfflineVirtualMachine. + :return: The api_version of this V1VirtualMachineInstanceReplicaSet. :rtype: str """ return self._api_version @@ -82,10 +82,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1OfflineVirtualMachine. + Sets the api_version of this V1VirtualMachineInstanceReplicaSet. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources - :param api_version: The api_version of this V1OfflineVirtualMachine. + :param api_version: The api_version of this V1VirtualMachineInstanceReplicaSet. :type: str """ @@ -94,10 +94,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V1OfflineVirtualMachine. + Gets the kind of this V1VirtualMachineInstanceReplicaSet. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - :return: The kind of this V1OfflineVirtualMachine. + :return: The kind of this V1VirtualMachineInstanceReplicaSet. :rtype: str """ return self._kind @@ -105,10 +105,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1OfflineVirtualMachine. + Sets the kind of this V1VirtualMachineInstanceReplicaSet. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - :param kind: The kind of this V1OfflineVirtualMachine. + :param kind: The kind of this V1VirtualMachineInstanceReplicaSet. :type: str """ @@ -117,9 +117,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1OfflineVirtualMachine. + Gets the metadata of this V1VirtualMachineInstanceReplicaSet. - :return: The metadata of this V1OfflineVirtualMachine. + :return: The metadata of this V1VirtualMachineInstanceReplicaSet. :rtype: V1ObjectMeta """ return self._metadata @@ -127,9 +127,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1OfflineVirtualMachine. + Sets the metadata of this V1VirtualMachineInstanceReplicaSet. - :param metadata: The metadata of this V1OfflineVirtualMachine. + :param metadata: The metadata of this V1VirtualMachineInstanceReplicaSet. :type: V1ObjectMeta """ @@ -138,22 +138,22 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1OfflineVirtualMachine. - Spec contains the specification of VirtualMachine created + Gets the spec of this V1VirtualMachineInstanceReplicaSet. + VirtualMachineInstance Spec contains the VirtualMachineInstance specification. - :return: The spec of this V1OfflineVirtualMachine. - :rtype: V1OfflineVirtualMachineSpec + :return: The spec of this V1VirtualMachineInstanceReplicaSet. + :rtype: V1VirtualMachineInstanceReplicaSetSpec """ return self._spec @spec.setter def spec(self, spec): """ - Sets the spec of this V1OfflineVirtualMachine. - Spec contains the specification of VirtualMachine created + Sets the spec of this V1VirtualMachineInstanceReplicaSet. + VirtualMachineInstance Spec contains the VirtualMachineInstance specification. - :param spec: The spec of this V1OfflineVirtualMachine. - :type: V1OfflineVirtualMachineSpec + :param spec: The spec of this V1VirtualMachineInstanceReplicaSet. + :type: V1VirtualMachineInstanceReplicaSetSpec """ self._spec = spec @@ -161,22 +161,22 @@ def spec(self, spec): @property def status(self): """ - Gets the status of this V1OfflineVirtualMachine. - Status holds the current state of the controller and brief information about its associated VirtualMachine + Gets the status of this V1VirtualMachineInstanceReplicaSet. + Status is the high level overview of how the VirtualMachineInstance is doing. It contains information available to controllers and users. - :return: The status of this V1OfflineVirtualMachine. - :rtype: V1OfflineVirtualMachineStatus + :return: The status of this V1VirtualMachineInstanceReplicaSet. + :rtype: V1VirtualMachineInstanceReplicaSetStatus """ return self._status @status.setter def status(self, status): """ - Sets the status of this V1OfflineVirtualMachine. - Status holds the current state of the controller and brief information about its associated VirtualMachine + Sets the status of this V1VirtualMachineInstanceReplicaSet. + Status is the high level overview of how the VirtualMachineInstance is doing. It contains information available to controllers and users. - :param status: The status of this V1OfflineVirtualMachine. - :type: V1OfflineVirtualMachineStatus + :param status: The status of this V1VirtualMachineInstanceReplicaSet. + :type: V1VirtualMachineInstanceReplicaSetStatus """ self._status = status @@ -223,7 +223,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1OfflineVirtualMachine): + if not isinstance(other, V1VirtualMachineInstanceReplicaSet): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_vm_replica_set_condition.py b/kubevirt/models/v1_virtual_machine_instance_replica_set_condition.py similarity index 70% rename from kubevirt/models/v1_vm_replica_set_condition.py rename to kubevirt/models/v1_virtual_machine_instance_replica_set_condition.py index 629c789c..767f736e 100644 --- a/kubevirt/models/v1_vm_replica_set_condition.py +++ b/kubevirt/models/v1_virtual_machine_instance_replica_set_condition.py @@ -16,7 +16,7 @@ import re -class V1VMReplicaSetCondition(object): +class V1VirtualMachineInstanceReplicaSetCondition(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -50,7 +50,7 @@ class V1VMReplicaSetCondition(object): def __init__(self, last_probe_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None): """ - V1VMReplicaSetCondition - a model defined in Swagger + V1VirtualMachineInstanceReplicaSetCondition - a model defined in Swagger """ self._last_probe_time = None @@ -74,9 +74,9 @@ def __init__(self, last_probe_time=None, last_transition_time=None, message=None @property def last_probe_time(self): """ - Gets the last_probe_time of this V1VMReplicaSetCondition. + Gets the last_probe_time of this V1VirtualMachineInstanceReplicaSetCondition. - :return: The last_probe_time of this V1VMReplicaSetCondition. + :return: The last_probe_time of this V1VirtualMachineInstanceReplicaSetCondition. :rtype: str """ return self._last_probe_time @@ -84,9 +84,9 @@ def last_probe_time(self): @last_probe_time.setter def last_probe_time(self, last_probe_time): """ - Sets the last_probe_time of this V1VMReplicaSetCondition. + Sets the last_probe_time of this V1VirtualMachineInstanceReplicaSetCondition. - :param last_probe_time: The last_probe_time of this V1VMReplicaSetCondition. + :param last_probe_time: The last_probe_time of this V1VirtualMachineInstanceReplicaSetCondition. :type: str """ @@ -95,9 +95,9 @@ def last_probe_time(self, last_probe_time): @property def last_transition_time(self): """ - Gets the last_transition_time of this V1VMReplicaSetCondition. + Gets the last_transition_time of this V1VirtualMachineInstanceReplicaSetCondition. - :return: The last_transition_time of this V1VMReplicaSetCondition. + :return: The last_transition_time of this V1VirtualMachineInstanceReplicaSetCondition. :rtype: str """ return self._last_transition_time @@ -105,9 +105,9 @@ def last_transition_time(self): @last_transition_time.setter def last_transition_time(self, last_transition_time): """ - Sets the last_transition_time of this V1VMReplicaSetCondition. + Sets the last_transition_time of this V1VirtualMachineInstanceReplicaSetCondition. - :param last_transition_time: The last_transition_time of this V1VMReplicaSetCondition. + :param last_transition_time: The last_transition_time of this V1VirtualMachineInstanceReplicaSetCondition. :type: str """ @@ -116,9 +116,9 @@ def last_transition_time(self, last_transition_time): @property def message(self): """ - Gets the message of this V1VMReplicaSetCondition. + Gets the message of this V1VirtualMachineInstanceReplicaSetCondition. - :return: The message of this V1VMReplicaSetCondition. + :return: The message of this V1VirtualMachineInstanceReplicaSetCondition. :rtype: str """ return self._message @@ -126,9 +126,9 @@ def message(self): @message.setter def message(self, message): """ - Sets the message of this V1VMReplicaSetCondition. + Sets the message of this V1VirtualMachineInstanceReplicaSetCondition. - :param message: The message of this V1VMReplicaSetCondition. + :param message: The message of this V1VirtualMachineInstanceReplicaSetCondition. :type: str """ @@ -137,9 +137,9 @@ def message(self, message): @property def reason(self): """ - Gets the reason of this V1VMReplicaSetCondition. + Gets the reason of this V1VirtualMachineInstanceReplicaSetCondition. - :return: The reason of this V1VMReplicaSetCondition. + :return: The reason of this V1VirtualMachineInstanceReplicaSetCondition. :rtype: str """ return self._reason @@ -147,9 +147,9 @@ def reason(self): @reason.setter def reason(self, reason): """ - Sets the reason of this V1VMReplicaSetCondition. + Sets the reason of this V1VirtualMachineInstanceReplicaSetCondition. - :param reason: The reason of this V1VMReplicaSetCondition. + :param reason: The reason of this V1VirtualMachineInstanceReplicaSetCondition. :type: str """ @@ -158,9 +158,9 @@ def reason(self, reason): @property def status(self): """ - Gets the status of this V1VMReplicaSetCondition. + Gets the status of this V1VirtualMachineInstanceReplicaSetCondition. - :return: The status of this V1VMReplicaSetCondition. + :return: The status of this V1VirtualMachineInstanceReplicaSetCondition. :rtype: str """ return self._status @@ -168,9 +168,9 @@ def status(self): @status.setter def status(self, status): """ - Sets the status of this V1VMReplicaSetCondition. + Sets the status of this V1VirtualMachineInstanceReplicaSetCondition. - :param status: The status of this V1VMReplicaSetCondition. + :param status: The status of this V1VirtualMachineInstanceReplicaSetCondition. :type: str """ if status is None: @@ -181,9 +181,9 @@ def status(self, status): @property def type(self): """ - Gets the type of this V1VMReplicaSetCondition. + Gets the type of this V1VirtualMachineInstanceReplicaSetCondition. - :return: The type of this V1VMReplicaSetCondition. + :return: The type of this V1VirtualMachineInstanceReplicaSetCondition. :rtype: str """ return self._type @@ -191,9 +191,9 @@ def type(self): @type.setter def type(self, type): """ - Sets the type of this V1VMReplicaSetCondition. + Sets the type of this V1VirtualMachineInstanceReplicaSetCondition. - :param type: The type of this V1VMReplicaSetCondition. + :param type: The type of this V1VirtualMachineInstanceReplicaSetCondition. :type: str """ if type is None: @@ -243,7 +243,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1VMReplicaSetCondition): + if not isinstance(other, V1VirtualMachineInstanceReplicaSetCondition): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_offline_virtual_machine_list.py b/kubevirt/models/v1_virtual_machine_instance_replica_set_list.py similarity index 74% rename from kubevirt/models/v1_offline_virtual_machine_list.py rename to kubevirt/models/v1_virtual_machine_instance_replica_set_list.py index a8927988..427dc6cf 100644 --- a/kubevirt/models/v1_offline_virtual_machine_list.py +++ b/kubevirt/models/v1_virtual_machine_instance_replica_set_list.py @@ -16,7 +16,7 @@ import re -class V1OfflineVirtualMachineList(object): +class V1VirtualMachineInstanceReplicaSetList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class V1OfflineVirtualMachineList(object): """ swagger_types = { 'api_version': 'str', - 'items': 'list[V1OfflineVirtualMachine]', + 'items': 'list[V1VirtualMachineInstanceReplicaSet]', 'kind': 'str', 'metadata': 'V1ListMeta' } @@ -46,7 +46,7 @@ class V1OfflineVirtualMachineList(object): def __init__(self, api_version=None, items=None, kind=None, metadata=None): """ - V1OfflineVirtualMachineList - a model defined in Swagger + V1VirtualMachineInstanceReplicaSetList - a model defined in Swagger """ self._api_version = None @@ -59,15 +59,16 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.items = items if kind is not None: self.kind = kind - self.metadata = metadata + if metadata is not None: + self.metadata = metadata @property def api_version(self): """ - Gets the api_version of this V1OfflineVirtualMachineList. + Gets the api_version of this V1VirtualMachineInstanceReplicaSetList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources - :return: The api_version of this V1OfflineVirtualMachineList. + :return: The api_version of this V1VirtualMachineInstanceReplicaSetList. :rtype: str """ return self._api_version @@ -75,10 +76,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1OfflineVirtualMachineList. + Sets the api_version of this V1VirtualMachineInstanceReplicaSetList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources - :param api_version: The api_version of this V1OfflineVirtualMachineList. + :param api_version: The api_version of this V1VirtualMachineInstanceReplicaSetList. :type: str """ @@ -87,22 +88,20 @@ def api_version(self, api_version): @property def items(self): """ - Gets the items of this V1OfflineVirtualMachineList. - Items is a list of OfflineVirtualMachines + Gets the items of this V1VirtualMachineInstanceReplicaSetList. - :return: The items of this V1OfflineVirtualMachineList. - :rtype: list[V1OfflineVirtualMachine] + :return: The items of this V1VirtualMachineInstanceReplicaSetList. + :rtype: list[V1VirtualMachineInstanceReplicaSet] """ return self._items @items.setter def items(self, items): """ - Sets the items of this V1OfflineVirtualMachineList. - Items is a list of OfflineVirtualMachines + Sets the items of this V1VirtualMachineInstanceReplicaSetList. - :param items: The items of this V1OfflineVirtualMachineList. - :type: list[V1OfflineVirtualMachine] + :param items: The items of this V1VirtualMachineInstanceReplicaSetList. + :type: list[V1VirtualMachineInstanceReplicaSet] """ if items is None: raise ValueError("Invalid value for `items`, must not be `None`") @@ -112,10 +111,10 @@ def items(self, items): @property def kind(self): """ - Gets the kind of this V1OfflineVirtualMachineList. + Gets the kind of this V1VirtualMachineInstanceReplicaSetList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - :return: The kind of this V1OfflineVirtualMachineList. + :return: The kind of this V1VirtualMachineInstanceReplicaSetList. :rtype: str """ return self._kind @@ -123,10 +122,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1OfflineVirtualMachineList. + Sets the kind of this V1VirtualMachineInstanceReplicaSetList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - :param kind: The kind of this V1OfflineVirtualMachineList. + :param kind: The kind of this V1VirtualMachineInstanceReplicaSetList. :type: str """ @@ -135,9 +134,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1OfflineVirtualMachineList. + Gets the metadata of this V1VirtualMachineInstanceReplicaSetList. - :return: The metadata of this V1OfflineVirtualMachineList. + :return: The metadata of this V1VirtualMachineInstanceReplicaSetList. :rtype: V1ListMeta """ return self._metadata @@ -145,13 +144,11 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1OfflineVirtualMachineList. + Sets the metadata of this V1VirtualMachineInstanceReplicaSetList. - :param metadata: The metadata of this V1OfflineVirtualMachineList. + :param metadata: The metadata of this V1VirtualMachineInstanceReplicaSetList. :type: V1ListMeta """ - if metadata is None: - raise ValueError("Invalid value for `metadata`, must not be `None`") self._metadata = metadata @@ -197,7 +194,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1OfflineVirtualMachineList): + if not isinstance(other, V1VirtualMachineInstanceReplicaSetList): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_vm_replica_set_spec.py b/kubevirt/models/v1_virtual_machine_instance_replica_set_spec.py similarity index 74% rename from kubevirt/models/v1_vm_replica_set_spec.py rename to kubevirt/models/v1_virtual_machine_instance_replica_set_spec.py index 8a8a9b9e..4acea009 100644 --- a/kubevirt/models/v1_vm_replica_set_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_replica_set_spec.py @@ -16,7 +16,7 @@ import re -class V1VMReplicaSetSpec(object): +class V1VirtualMachineInstanceReplicaSetSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -34,7 +34,7 @@ class V1VMReplicaSetSpec(object): 'paused': 'bool', 'replicas': 'int', 'selector': 'V1LabelSelector', - 'template': 'V1VMTemplateSpec' + 'template': 'V1VirtualMachineInstanceTemplateSpec' } attribute_map = { @@ -46,7 +46,7 @@ class V1VMReplicaSetSpec(object): def __init__(self, paused=None, replicas=None, selector=None, template=None): """ - V1VMReplicaSetSpec - a model defined in Swagger + V1VirtualMachineInstanceReplicaSetSpec - a model defined in Swagger """ self._paused = None @@ -64,10 +64,10 @@ def __init__(self, paused=None, replicas=None, selector=None, template=None): @property def paused(self): """ - Gets the paused of this V1VMReplicaSetSpec. + Gets the paused of this V1VirtualMachineInstanceReplicaSetSpec. Indicates that the replica set is paused. +optional - :return: The paused of this V1VMReplicaSetSpec. + :return: The paused of this V1VirtualMachineInstanceReplicaSetSpec. :rtype: bool """ return self._paused @@ -75,10 +75,10 @@ def paused(self): @paused.setter def paused(self, paused): """ - Sets the paused of this V1VMReplicaSetSpec. + Sets the paused of this V1VirtualMachineInstanceReplicaSetSpec. Indicates that the replica set is paused. +optional - :param paused: The paused of this V1VMReplicaSetSpec. + :param paused: The paused of this V1VirtualMachineInstanceReplicaSetSpec. :type: bool """ @@ -87,10 +87,10 @@ def paused(self, paused): @property def replicas(self): """ - Gets the replicas of this V1VMReplicaSetSpec. + Gets the replicas of this V1VirtualMachineInstanceReplicaSetSpec. Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. +optional - :return: The replicas of this V1VMReplicaSetSpec. + :return: The replicas of this V1VirtualMachineInstanceReplicaSetSpec. :rtype: int """ return self._replicas @@ -98,10 +98,10 @@ def replicas(self): @replicas.setter def replicas(self, replicas): """ - Sets the replicas of this V1VMReplicaSetSpec. + Sets the replicas of this V1VirtualMachineInstanceReplicaSetSpec. Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. +optional - :param replicas: The replicas of this V1VMReplicaSetSpec. + :param replicas: The replicas of this V1VirtualMachineInstanceReplicaSetSpec. :type: int """ @@ -110,10 +110,10 @@ def replicas(self, replicas): @property def selector(self): """ - Gets the selector of this V1VMReplicaSetSpec. + Gets the selector of this V1VirtualMachineInstanceReplicaSetSpec. Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. - :return: The selector of this V1VMReplicaSetSpec. + :return: The selector of this V1VirtualMachineInstanceReplicaSetSpec. :rtype: V1LabelSelector """ return self._selector @@ -121,10 +121,10 @@ def selector(self): @selector.setter def selector(self, selector): """ - Sets the selector of this V1VMReplicaSetSpec. + Sets the selector of this V1VirtualMachineInstanceReplicaSetSpec. Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. - :param selector: The selector of this V1VMReplicaSetSpec. + :param selector: The selector of this V1VirtualMachineInstanceReplicaSetSpec. :type: V1LabelSelector """ if selector is None: @@ -135,22 +135,22 @@ def selector(self, selector): @property def template(self): """ - Gets the template of this V1VMReplicaSetSpec. + Gets the template of this V1VirtualMachineInstanceReplicaSetSpec. Template describes the pods that will be created. - :return: The template of this V1VMReplicaSetSpec. - :rtype: V1VMTemplateSpec + :return: The template of this V1VirtualMachineInstanceReplicaSetSpec. + :rtype: V1VirtualMachineInstanceTemplateSpec """ return self._template @template.setter def template(self, template): """ - Sets the template of this V1VMReplicaSetSpec. + Sets the template of this V1VirtualMachineInstanceReplicaSetSpec. Template describes the pods that will be created. - :param template: The template of this V1VMReplicaSetSpec. - :type: V1VMTemplateSpec + :param template: The template of this V1VirtualMachineInstanceReplicaSetSpec. + :type: V1VirtualMachineInstanceTemplateSpec """ if template is None: raise ValueError("Invalid value for `template`, must not be `None`") @@ -199,7 +199,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1VMReplicaSetSpec): + if not isinstance(other, V1VirtualMachineInstanceReplicaSetSpec): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_vm_replica_set_status.py b/kubevirt/models/v1_virtual_machine_instance_replica_set_status.py similarity index 73% rename from kubevirt/models/v1_vm_replica_set_status.py rename to kubevirt/models/v1_virtual_machine_instance_replica_set_status.py index f33894ea..540accb4 100644 --- a/kubevirt/models/v1_vm_replica_set_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_replica_set_status.py @@ -16,7 +16,7 @@ import re -class V1VMReplicaSetStatus(object): +class V1VirtualMachineInstanceReplicaSetStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,7 +31,7 @@ class V1VMReplicaSetStatus(object): and the value is json key in definition. """ swagger_types = { - 'conditions': 'list[V1VMReplicaSetCondition]', + 'conditions': 'list[V1VirtualMachineInstanceReplicaSetCondition]', 'ready_replicas': 'int', 'replicas': 'int' } @@ -44,7 +44,7 @@ class V1VMReplicaSetStatus(object): def __init__(self, conditions=None, ready_replicas=None, replicas=None): """ - V1VMReplicaSetStatus - a model defined in Swagger + V1VirtualMachineInstanceReplicaSetStatus - a model defined in Swagger """ self._conditions = None @@ -61,20 +61,20 @@ def __init__(self, conditions=None, ready_replicas=None, replicas=None): @property def conditions(self): """ - Gets the conditions of this V1VMReplicaSetStatus. + Gets the conditions of this V1VirtualMachineInstanceReplicaSetStatus. - :return: The conditions of this V1VMReplicaSetStatus. - :rtype: list[V1VMReplicaSetCondition] + :return: The conditions of this V1VirtualMachineInstanceReplicaSetStatus. + :rtype: list[V1VirtualMachineInstanceReplicaSetCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): """ - Sets the conditions of this V1VMReplicaSetStatus. + Sets the conditions of this V1VirtualMachineInstanceReplicaSetStatus. - :param conditions: The conditions of this V1VMReplicaSetStatus. - :type: list[V1VMReplicaSetCondition] + :param conditions: The conditions of this V1VirtualMachineInstanceReplicaSetStatus. + :type: list[V1VirtualMachineInstanceReplicaSetCondition] """ self._conditions = conditions @@ -82,10 +82,10 @@ def conditions(self, conditions): @property def ready_replicas(self): """ - Gets the ready_replicas of this V1VMReplicaSetStatus. + Gets the ready_replicas of this V1VirtualMachineInstanceReplicaSetStatus. The number of ready replicas for this replica set. +optional - :return: The ready_replicas of this V1VMReplicaSetStatus. + :return: The ready_replicas of this V1VirtualMachineInstanceReplicaSetStatus. :rtype: int """ return self._ready_replicas @@ -93,10 +93,10 @@ def ready_replicas(self): @ready_replicas.setter def ready_replicas(self, ready_replicas): """ - Sets the ready_replicas of this V1VMReplicaSetStatus. + Sets the ready_replicas of this V1VirtualMachineInstanceReplicaSetStatus. The number of ready replicas for this replica set. +optional - :param ready_replicas: The ready_replicas of this V1VMReplicaSetStatus. + :param ready_replicas: The ready_replicas of this V1VirtualMachineInstanceReplicaSetStatus. :type: int """ @@ -105,10 +105,10 @@ def ready_replicas(self, ready_replicas): @property def replicas(self): """ - Gets the replicas of this V1VMReplicaSetStatus. + Gets the replicas of this V1VirtualMachineInstanceReplicaSetStatus. Total number of non-terminated pods targeted by this deployment (their labels match the selector). +optional - :return: The replicas of this V1VMReplicaSetStatus. + :return: The replicas of this V1VirtualMachineInstanceReplicaSetStatus. :rtype: int """ return self._replicas @@ -116,10 +116,10 @@ def replicas(self): @replicas.setter def replicas(self, replicas): """ - Sets the replicas of this V1VMReplicaSetStatus. + Sets the replicas of this V1VirtualMachineInstanceReplicaSetStatus. Total number of non-terminated pods targeted by this deployment (their labels match the selector). +optional - :param replicas: The replicas of this V1VMReplicaSetStatus. + :param replicas: The replicas of this V1VirtualMachineInstanceReplicaSetStatus. :type: int """ @@ -167,7 +167,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1VMReplicaSetStatus): + if not isinstance(other, V1VirtualMachineInstanceReplicaSetStatus): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_virtual_machine_instance_spec.py b/kubevirt/models/v1_virtual_machine_instance_spec.py new file mode 100644 index 00000000..64657ec4 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_spec.py @@ -0,0 +1,322 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineInstanceSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'affinity': 'V1Affinity', + 'domain': 'V1DomainSpec', + 'hostname': 'str', + 'networks': 'list[V1Network]', + 'node_selector': 'object', + 'subdomain': 'str', + 'termination_grace_period_seconds': 'int', + 'volumes': 'list[V1Volume]' + } + + attribute_map = { + 'affinity': 'affinity', + 'domain': 'domain', + 'hostname': 'hostname', + 'networks': 'networks', + 'node_selector': 'nodeSelector', + 'subdomain': 'subdomain', + 'termination_grace_period_seconds': 'terminationGracePeriodSeconds', + 'volumes': 'volumes' + } + + def __init__(self, affinity=None, domain=None, hostname=None, networks=None, node_selector=None, subdomain=None, termination_grace_period_seconds=None, volumes=None): + """ + V1VirtualMachineInstanceSpec - a model defined in Swagger + """ + + self._affinity = None + self._domain = None + self._hostname = None + self._networks = None + self._node_selector = None + self._subdomain = None + self._termination_grace_period_seconds = None + self._volumes = None + + if affinity is not None: + self.affinity = affinity + self.domain = domain + if hostname is not None: + self.hostname = hostname + if networks is not None: + self.networks = networks + if node_selector is not None: + self.node_selector = node_selector + if subdomain is not None: + self.subdomain = subdomain + if termination_grace_period_seconds is not None: + self.termination_grace_period_seconds = termination_grace_period_seconds + if volumes is not None: + self.volumes = volumes + + @property + def affinity(self): + """ + Gets the affinity of this V1VirtualMachineInstanceSpec. + If affinity is specifies, obey all the affinity rules + + :return: The affinity of this V1VirtualMachineInstanceSpec. + :rtype: V1Affinity + """ + return self._affinity + + @affinity.setter + def affinity(self, affinity): + """ + Sets the affinity of this V1VirtualMachineInstanceSpec. + If affinity is specifies, obey all the affinity rules + + :param affinity: The affinity of this V1VirtualMachineInstanceSpec. + :type: V1Affinity + """ + + self._affinity = affinity + + @property + def domain(self): + """ + Gets the domain of this V1VirtualMachineInstanceSpec. + Specification of the desired behavior of the VirtualMachineInstance on the host. + + :return: The domain of this V1VirtualMachineInstanceSpec. + :rtype: V1DomainSpec + """ + return self._domain + + @domain.setter + def domain(self, domain): + """ + Sets the domain of this V1VirtualMachineInstanceSpec. + Specification of the desired behavior of the VirtualMachineInstance on the host. + + :param domain: The domain of this V1VirtualMachineInstanceSpec. + :type: V1DomainSpec + """ + if domain is None: + raise ValueError("Invalid value for `domain`, must not be `None`") + + self._domain = domain + + @property + def hostname(self): + """ + Gets the hostname of this V1VirtualMachineInstanceSpec. + Specifies the hostname of the vmi If not specified, the hostname will be set to the name of the vmi, if dhcp or cloud-init is configured properly. +optional + + :return: The hostname of this V1VirtualMachineInstanceSpec. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """ + Sets the hostname of this V1VirtualMachineInstanceSpec. + Specifies the hostname of the vmi If not specified, the hostname will be set to the name of the vmi, if dhcp or cloud-init is configured properly. +optional + + :param hostname: The hostname of this V1VirtualMachineInstanceSpec. + :type: str + """ + + self._hostname = hostname + + @property + def networks(self): + """ + Gets the networks of this V1VirtualMachineInstanceSpec. + List of networks that can be attached to a vm's virtual interface. + + :return: The networks of this V1VirtualMachineInstanceSpec. + :rtype: list[V1Network] + """ + return self._networks + + @networks.setter + def networks(self, networks): + """ + Sets the networks of this V1VirtualMachineInstanceSpec. + List of networks that can be attached to a vm's virtual interface. + + :param networks: The networks of this V1VirtualMachineInstanceSpec. + :type: list[V1Network] + """ + + self._networks = networks + + @property + def node_selector(self): + """ + Gets the node_selector of this V1VirtualMachineInstanceSpec. + NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional + + :return: The node_selector of this V1VirtualMachineInstanceSpec. + :rtype: object + """ + return self._node_selector + + @node_selector.setter + def node_selector(self, node_selector): + """ + Sets the node_selector of this V1VirtualMachineInstanceSpec. + NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional + + :param node_selector: The node_selector of this V1VirtualMachineInstanceSpec. + :type: object + """ + + self._node_selector = node_selector + + @property + def subdomain(self): + """ + Gets the subdomain of this V1VirtualMachineInstanceSpec. + If specified, the fully qualified vmi hostname will be \"...svc.\". If not specified, the vmi will not have a domainname at all. The DNS entry will resolve to the vmi, no matter if the vmi itself can pick up a hostname. +optional + + :return: The subdomain of this V1VirtualMachineInstanceSpec. + :rtype: str + """ + return self._subdomain + + @subdomain.setter + def subdomain(self, subdomain): + """ + Sets the subdomain of this V1VirtualMachineInstanceSpec. + If specified, the fully qualified vmi hostname will be \"...svc.\". If not specified, the vmi will not have a domainname at all. The DNS entry will resolve to the vmi, no matter if the vmi itself can pick up a hostname. +optional + + :param subdomain: The subdomain of this V1VirtualMachineInstanceSpec. + :type: str + """ + + self._subdomain = subdomain + + @property + def termination_grace_period_seconds(self): + """ + Gets the termination_grace_period_seconds of this V1VirtualMachineInstanceSpec. + Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. + + :return: The termination_grace_period_seconds of this V1VirtualMachineInstanceSpec. + :rtype: int + """ + return self._termination_grace_period_seconds + + @termination_grace_period_seconds.setter + def termination_grace_period_seconds(self, termination_grace_period_seconds): + """ + Sets the termination_grace_period_seconds of this V1VirtualMachineInstanceSpec. + Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. + + :param termination_grace_period_seconds: The termination_grace_period_seconds of this V1VirtualMachineInstanceSpec. + :type: int + """ + + self._termination_grace_period_seconds = termination_grace_period_seconds + + @property + def volumes(self): + """ + Gets the volumes of this V1VirtualMachineInstanceSpec. + List of volumes that can be mounted by disks belonging to the vmi. + + :return: The volumes of this V1VirtualMachineInstanceSpec. + :rtype: list[V1Volume] + """ + return self._volumes + + @volumes.setter + def volumes(self, volumes): + """ + Sets the volumes of this V1VirtualMachineInstanceSpec. + List of volumes that can be mounted by disks belonging to the vmi. + + :param volumes: The volumes of this V1VirtualMachineInstanceSpec. + :type: list[V1Volume] + """ + + self._volumes = volumes + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineInstanceSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py new file mode 100644 index 00000000..bc1b5a28 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -0,0 +1,209 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineInstanceStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'conditions': 'list[V1VirtualMachineInstanceCondition]', + 'interfaces': 'list[V1VirtualMachineInstanceNetworkInterface]', + 'node_name': 'str', + 'phase': 'str' + } + + attribute_map = { + 'conditions': 'conditions', + 'interfaces': 'interfaces', + 'node_name': 'nodeName', + 'phase': 'phase' + } + + def __init__(self, conditions=None, interfaces=None, node_name=None, phase=None): + """ + V1VirtualMachineInstanceStatus - a model defined in Swagger + """ + + self._conditions = None + self._interfaces = None + self._node_name = None + self._phase = None + + if conditions is not None: + self.conditions = conditions + if interfaces is not None: + self.interfaces = interfaces + if node_name is not None: + self.node_name = node_name + if phase is not None: + self.phase = phase + + @property + def conditions(self): + """ + Gets the conditions of this V1VirtualMachineInstanceStatus. + Conditions are specific points in VirtualMachineInstance's pod runtime. + + :return: The conditions of this V1VirtualMachineInstanceStatus. + :rtype: list[V1VirtualMachineInstanceCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1VirtualMachineInstanceStatus. + Conditions are specific points in VirtualMachineInstance's pod runtime. + + :param conditions: The conditions of this V1VirtualMachineInstanceStatus. + :type: list[V1VirtualMachineInstanceCondition] + """ + + self._conditions = conditions + + @property + def interfaces(self): + """ + Gets the interfaces of this V1VirtualMachineInstanceStatus. + Interfaces represent the details of available network interfaces. + + :return: The interfaces of this V1VirtualMachineInstanceStatus. + :rtype: list[V1VirtualMachineInstanceNetworkInterface] + """ + return self._interfaces + + @interfaces.setter + def interfaces(self, interfaces): + """ + Sets the interfaces of this V1VirtualMachineInstanceStatus. + Interfaces represent the details of available network interfaces. + + :param interfaces: The interfaces of this V1VirtualMachineInstanceStatus. + :type: list[V1VirtualMachineInstanceNetworkInterface] + """ + + self._interfaces = interfaces + + @property + def node_name(self): + """ + Gets the node_name of this V1VirtualMachineInstanceStatus. + NodeName is the name where the VirtualMachineInstance is currently running. + + :return: The node_name of this V1VirtualMachineInstanceStatus. + :rtype: str + """ + return self._node_name + + @node_name.setter + def node_name(self, node_name): + """ + Sets the node_name of this V1VirtualMachineInstanceStatus. + NodeName is the name where the VirtualMachineInstance is currently running. + + :param node_name: The node_name of this V1VirtualMachineInstanceStatus. + :type: str + """ + + self._node_name = node_name + + @property + def phase(self): + """ + Gets the phase of this V1VirtualMachineInstanceStatus. + Phase is the status of the VirtualMachineInstance in kubernetes world. It is not the VirtualMachineInstance status, but partially correlates to it. + + :return: The phase of this V1VirtualMachineInstanceStatus. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """ + Sets the phase of this V1VirtualMachineInstanceStatus. + Phase is the status of the VirtualMachineInstance in kubernetes world. It is not the VirtualMachineInstance status, but partially correlates to it. + + :param phase: The phase of this V1VirtualMachineInstanceStatus. + :type: str + """ + + self._phase = phase + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineInstanceStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_vm_template_spec.py b/kubevirt/models/v1_virtual_machine_instance_template_spec.py similarity index 73% rename from kubevirt/models/v1_vm_template_spec.py rename to kubevirt/models/v1_virtual_machine_instance_template_spec.py index 12f73c5c..d6bbef5a 100644 --- a/kubevirt/models/v1_vm_template_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_template_spec.py @@ -16,7 +16,7 @@ import re -class V1VMTemplateSpec(object): +class V1VirtualMachineInstanceTemplateSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class V1VMTemplateSpec(object): """ swagger_types = { 'metadata': 'V1ObjectMeta', - 'spec': 'V1VirtualMachineSpec' + 'spec': 'V1VirtualMachineInstanceSpec' } attribute_map = { @@ -42,7 +42,7 @@ class V1VMTemplateSpec(object): def __init__(self, metadata=None, spec=None): """ - V1VMTemplateSpec - a model defined in Swagger + V1VirtualMachineInstanceTemplateSpec - a model defined in Swagger """ self._metadata = None @@ -56,9 +56,9 @@ def __init__(self, metadata=None, spec=None): @property def metadata(self): """ - Gets the metadata of this V1VMTemplateSpec. + Gets the metadata of this V1VirtualMachineInstanceTemplateSpec. - :return: The metadata of this V1VMTemplateSpec. + :return: The metadata of this V1VirtualMachineInstanceTemplateSpec. :rtype: V1ObjectMeta """ return self._metadata @@ -66,9 +66,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1VMTemplateSpec. + Sets the metadata of this V1VirtualMachineInstanceTemplateSpec. - :param metadata: The metadata of this V1VMTemplateSpec. + :param metadata: The metadata of this V1VirtualMachineInstanceTemplateSpec. :type: V1ObjectMeta """ @@ -77,22 +77,22 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1VMTemplateSpec. - VM Spec contains the VM specification. + Gets the spec of this V1VirtualMachineInstanceTemplateSpec. + VirtualMachineInstance Spec contains the VirtualMachineInstance specification. - :return: The spec of this V1VMTemplateSpec. - :rtype: V1VirtualMachineSpec + :return: The spec of this V1VirtualMachineInstanceTemplateSpec. + :rtype: V1VirtualMachineInstanceSpec """ return self._spec @spec.setter def spec(self, spec): """ - Sets the spec of this V1VMTemplateSpec. - VM Spec contains the VM specification. + Sets the spec of this V1VirtualMachineInstanceTemplateSpec. + VirtualMachineInstance Spec contains the VirtualMachineInstance specification. - :param spec: The spec of this V1VMTemplateSpec. - :type: V1VirtualMachineSpec + :param spec: The spec of this V1VirtualMachineInstanceTemplateSpec. + :type: V1VirtualMachineInstanceSpec """ self._spec = spec @@ -139,7 +139,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1VMTemplateSpec): + if not isinstance(other, V1VirtualMachineInstanceTemplateSpec): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_virtual_machine_list.py b/kubevirt/models/v1_virtual_machine_list.py index 8d9852ae..0c56841d 100644 --- a/kubevirt/models/v1_virtual_machine_list.py +++ b/kubevirt/models/v1_virtual_machine_list.py @@ -59,8 +59,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.items = items if kind is not None: self.kind = kind - if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): @@ -89,6 +88,7 @@ def api_version(self, api_version): def items(self): """ Gets the items of this V1VirtualMachineList. + Items is a list of VirtualMachines :return: The items of this V1VirtualMachineList. :rtype: list[V1VirtualMachine] @@ -99,6 +99,7 @@ def items(self): def items(self, items): """ Sets the items of this V1VirtualMachineList. + Items is a list of VirtualMachines :param items: The items of this V1VirtualMachineList. :type: list[V1VirtualMachine] @@ -149,6 +150,8 @@ def metadata(self, metadata): :param metadata: The metadata of this V1VirtualMachineList. :type: V1ListMeta """ + if metadata is None: + raise ValueError("Invalid value for `metadata`, must not be `None`") self._metadata = metadata diff --git a/kubevirt/models/v1_virtual_machine_spec.py b/kubevirt/models/v1_virtual_machine_spec.py index d2f0dc3c..32d4052f 100644 --- a/kubevirt/models/v1_virtual_machine_spec.py +++ b/kubevirt/models/v1_virtual_machine_spec.py @@ -31,242 +31,75 @@ class V1VirtualMachineSpec(object): and the value is json key in definition. """ swagger_types = { - 'affinity': 'V1Affinity', - 'domain': 'V1DomainSpec', - 'hostname': 'str', - 'networks': 'list[V1Network]', - 'node_selector': 'object', - 'subdomain': 'str', - 'termination_grace_period_seconds': 'int', - 'volumes': 'list[V1Volume]' + 'running': 'bool', + 'template': 'V1VirtualMachineInstanceTemplateSpec' } attribute_map = { - 'affinity': 'affinity', - 'domain': 'domain', - 'hostname': 'hostname', - 'networks': 'networks', - 'node_selector': 'nodeSelector', - 'subdomain': 'subdomain', - 'termination_grace_period_seconds': 'terminationGracePeriodSeconds', - 'volumes': 'volumes' + 'running': 'running', + 'template': 'template' } - def __init__(self, affinity=None, domain=None, hostname=None, networks=None, node_selector=None, subdomain=None, termination_grace_period_seconds=None, volumes=None): + def __init__(self, running=None, template=None): """ V1VirtualMachineSpec - a model defined in Swagger """ - self._affinity = None - self._domain = None - self._hostname = None - self._networks = None - self._node_selector = None - self._subdomain = None - self._termination_grace_period_seconds = None - self._volumes = None + self._running = None + self._template = None - if affinity is not None: - self.affinity = affinity - self.domain = domain - if hostname is not None: - self.hostname = hostname - if networks is not None: - self.networks = networks - if node_selector is not None: - self.node_selector = node_selector - if subdomain is not None: - self.subdomain = subdomain - if termination_grace_period_seconds is not None: - self.termination_grace_period_seconds = termination_grace_period_seconds - if volumes is not None: - self.volumes = volumes + self.running = running + self.template = template @property - def affinity(self): + def running(self): """ - Gets the affinity of this V1VirtualMachineSpec. - If affinity is specifies, obey all the affinity rules + Gets the running of this V1VirtualMachineSpec. + Running controls whether the associatied VirtualMachineInstance is created or not - :return: The affinity of this V1VirtualMachineSpec. - :rtype: V1Affinity + :return: The running of this V1VirtualMachineSpec. + :rtype: bool """ - return self._affinity + return self._running - @affinity.setter - def affinity(self, affinity): + @running.setter + def running(self, running): """ - Sets the affinity of this V1VirtualMachineSpec. - If affinity is specifies, obey all the affinity rules + Sets the running of this V1VirtualMachineSpec. + Running controls whether the associatied VirtualMachineInstance is created or not - :param affinity: The affinity of this V1VirtualMachineSpec. - :type: V1Affinity + :param running: The running of this V1VirtualMachineSpec. + :type: bool """ + if running is None: + raise ValueError("Invalid value for `running`, must not be `None`") - self._affinity = affinity + self._running = running @property - def domain(self): + def template(self): """ - Gets the domain of this V1VirtualMachineSpec. - Specification of the desired behavior of the VirtualMachine on the host. + Gets the template of this V1VirtualMachineSpec. + Template is the direct specification of VirtualMachineInstance - :return: The domain of this V1VirtualMachineSpec. - :rtype: V1DomainSpec + :return: The template of this V1VirtualMachineSpec. + :rtype: V1VirtualMachineInstanceTemplateSpec """ - return self._domain + return self._template - @domain.setter - def domain(self, domain): + @template.setter + def template(self, template): """ - Sets the domain of this V1VirtualMachineSpec. - Specification of the desired behavior of the VirtualMachine on the host. + Sets the template of this V1VirtualMachineSpec. + Template is the direct specification of VirtualMachineInstance - :param domain: The domain of this V1VirtualMachineSpec. - :type: V1DomainSpec + :param template: The template of this V1VirtualMachineSpec. + :type: V1VirtualMachineInstanceTemplateSpec """ - if domain is None: - raise ValueError("Invalid value for `domain`, must not be `None`") + if template is None: + raise ValueError("Invalid value for `template`, must not be `None`") - self._domain = domain - - @property - def hostname(self): - """ - Gets the hostname of this V1VirtualMachineSpec. - Specifies the hostname of the vm If not specified, the hostname will be set to the name of the vm, if dhcp or cloud-init is configured properly. +optional - - :return: The hostname of this V1VirtualMachineSpec. - :rtype: str - """ - return self._hostname - - @hostname.setter - def hostname(self, hostname): - """ - Sets the hostname of this V1VirtualMachineSpec. - Specifies the hostname of the vm If not specified, the hostname will be set to the name of the vm, if dhcp or cloud-init is configured properly. +optional - - :param hostname: The hostname of this V1VirtualMachineSpec. - :type: str - """ - - self._hostname = hostname - - @property - def networks(self): - """ - Gets the networks of this V1VirtualMachineSpec. - List of networks that can be attached to a vm's virtual interface. - - :return: The networks of this V1VirtualMachineSpec. - :rtype: list[V1Network] - """ - return self._networks - - @networks.setter - def networks(self, networks): - """ - Sets the networks of this V1VirtualMachineSpec. - List of networks that can be attached to a vm's virtual interface. - - :param networks: The networks of this V1VirtualMachineSpec. - :type: list[V1Network] - """ - - self._networks = networks - - @property - def node_selector(self): - """ - Gets the node_selector of this V1VirtualMachineSpec. - NodeSelector is a selector which must be true for the vm to fit on a node. Selector which must match a node's labels for the vm to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional - - :return: The node_selector of this V1VirtualMachineSpec. - :rtype: object - """ - return self._node_selector - - @node_selector.setter - def node_selector(self, node_selector): - """ - Sets the node_selector of this V1VirtualMachineSpec. - NodeSelector is a selector which must be true for the vm to fit on a node. Selector which must match a node's labels for the vm to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional - - :param node_selector: The node_selector of this V1VirtualMachineSpec. - :type: object - """ - - self._node_selector = node_selector - - @property - def subdomain(self): - """ - Gets the subdomain of this V1VirtualMachineSpec. - If specified, the fully qualified vm hostname will be \"...svc.\". If not specified, the vm will not have a domainname at all. The DNS entry will resolve to the vm, no matter if the vm itself can pick up a hostname. +optional - - :return: The subdomain of this V1VirtualMachineSpec. - :rtype: str - """ - return self._subdomain - - @subdomain.setter - def subdomain(self, subdomain): - """ - Sets the subdomain of this V1VirtualMachineSpec. - If specified, the fully qualified vm hostname will be \"...svc.\". If not specified, the vm will not have a domainname at all. The DNS entry will resolve to the vm, no matter if the vm itself can pick up a hostname. +optional - - :param subdomain: The subdomain of this V1VirtualMachineSpec. - :type: str - """ - - self._subdomain = subdomain - - @property - def termination_grace_period_seconds(self): - """ - Gets the termination_grace_period_seconds of this V1VirtualMachineSpec. - Grace period observed after signalling a VM to stop after which the VM is force terminated. - - :return: The termination_grace_period_seconds of this V1VirtualMachineSpec. - :rtype: int - """ - return self._termination_grace_period_seconds - - @termination_grace_period_seconds.setter - def termination_grace_period_seconds(self, termination_grace_period_seconds): - """ - Sets the termination_grace_period_seconds of this V1VirtualMachineSpec. - Grace period observed after signalling a VM to stop after which the VM is force terminated. - - :param termination_grace_period_seconds: The termination_grace_period_seconds of this V1VirtualMachineSpec. - :type: int - """ - - self._termination_grace_period_seconds = termination_grace_period_seconds - - @property - def volumes(self): - """ - Gets the volumes of this V1VirtualMachineSpec. - List of volumes that can be mounted by disks belonging to the vm. - - :return: The volumes of this V1VirtualMachineSpec. - :rtype: list[V1Volume] - """ - return self._volumes - - @volumes.setter - def volumes(self, volumes): - """ - Sets the volumes of this V1VirtualMachineSpec. - List of volumes that can be mounted by disks belonging to the vm. - - :param volumes: The volumes of this V1VirtualMachineSpec. - :type: list[V1Volume] - """ - - self._volumes = volumes + self._template = template def to_dict(self): """ diff --git a/kubevirt/models/v1_virtual_machine_status.py b/kubevirt/models/v1_virtual_machine_status.py index ae22ff3b..25ba4efa 100644 --- a/kubevirt/models/v1_virtual_machine_status.py +++ b/kubevirt/models/v1_virtual_machine_status.py @@ -32,42 +32,37 @@ class V1VirtualMachineStatus(object): """ swagger_types = { 'conditions': 'list[V1VirtualMachineCondition]', - 'interfaces': 'list[V1VirtualMachineNetworkInterface]', - 'node_name': 'str', - 'phase': 'str' + 'created': 'bool', + 'ready': 'bool' } attribute_map = { 'conditions': 'conditions', - 'interfaces': 'interfaces', - 'node_name': 'nodeName', - 'phase': 'phase' + 'created': 'created', + 'ready': 'ready' } - def __init__(self, conditions=None, interfaces=None, node_name=None, phase=None): + def __init__(self, conditions=None, created=None, ready=None): """ V1VirtualMachineStatus - a model defined in Swagger """ self._conditions = None - self._interfaces = None - self._node_name = None - self._phase = None + self._created = None + self._ready = None if conditions is not None: self.conditions = conditions - if interfaces is not None: - self.interfaces = interfaces - if node_name is not None: - self.node_name = node_name - if phase is not None: - self.phase = phase + if created is not None: + self.created = created + if ready is not None: + self.ready = ready @property def conditions(self): """ Gets the conditions of this V1VirtualMachineStatus. - Conditions are specific points in VM's pod runtime. + Hold the state information of the VirtualMachine and its VirtualMachineInstance :return: The conditions of this V1VirtualMachineStatus. :rtype: list[V1VirtualMachineCondition] @@ -78,7 +73,7 @@ def conditions(self): def conditions(self, conditions): """ Sets the conditions of this V1VirtualMachineStatus. - Conditions are specific points in VM's pod runtime. + Hold the state information of the VirtualMachine and its VirtualMachineInstance :param conditions: The conditions of this V1VirtualMachineStatus. :type: list[V1VirtualMachineCondition] @@ -87,73 +82,50 @@ def conditions(self, conditions): self._conditions = conditions @property - def interfaces(self): + def created(self): """ - Gets the interfaces of this V1VirtualMachineStatus. - Interfaces represent the details of available network interfaces. + Gets the created of this V1VirtualMachineStatus. + Created indicates if the virtual machine is created in the cluster - :return: The interfaces of this V1VirtualMachineStatus. - :rtype: list[V1VirtualMachineNetworkInterface] + :return: The created of this V1VirtualMachineStatus. + :rtype: bool """ - return self._interfaces + return self._created - @interfaces.setter - def interfaces(self, interfaces): + @created.setter + def created(self, created): """ - Sets the interfaces of this V1VirtualMachineStatus. - Interfaces represent the details of available network interfaces. + Sets the created of this V1VirtualMachineStatus. + Created indicates if the virtual machine is created in the cluster - :param interfaces: The interfaces of this V1VirtualMachineStatus. - :type: list[V1VirtualMachineNetworkInterface] + :param created: The created of this V1VirtualMachineStatus. + :type: bool """ - self._interfaces = interfaces + self._created = created @property - def node_name(self): + def ready(self): """ - Gets the node_name of this V1VirtualMachineStatus. - NodeName is the name where the VM is currently running. + Gets the ready of this V1VirtualMachineStatus. + Ready indicates if the virtual machine is running and ready - :return: The node_name of this V1VirtualMachineStatus. - :rtype: str + :return: The ready of this V1VirtualMachineStatus. + :rtype: bool """ - return self._node_name + return self._ready - @node_name.setter - def node_name(self, node_name): + @ready.setter + def ready(self, ready): """ - Sets the node_name of this V1VirtualMachineStatus. - NodeName is the name where the VM is currently running. + Sets the ready of this V1VirtualMachineStatus. + Ready indicates if the virtual machine is running and ready - :param node_name: The node_name of this V1VirtualMachineStatus. - :type: str + :param ready: The ready of this V1VirtualMachineStatus. + :type: bool """ - self._node_name = node_name - - @property - def phase(self): - """ - Gets the phase of this V1VirtualMachineStatus. - Phase is the status of the VM in kubernetes world. It is not the VM status, but partially correlates to it. - - :return: The phase of this V1VirtualMachineStatus. - :rtype: str - """ - return self._phase - - @phase.setter - def phase(self, phase): - """ - Sets the phase of this V1VirtualMachineStatus. - Phase is the status of the VM in kubernetes world. It is not the VM status, but partially correlates to it. - - :param phase: The phase of this V1VirtualMachineStatus. - :type: str - """ - - self._phase = phase + self._ready = ready def to_dict(self): """ diff --git a/kubevirt/models/v1_volume.py b/kubevirt/models/v1_volume.py index 556da99c..4bb364ed 100644 --- a/kubevirt/models/v1_volume.py +++ b/kubevirt/models/v1_volume.py @@ -76,7 +76,7 @@ def __init__(self, cloud_init_no_cloud=None, empty_disk=None, ephemeral=None, na def cloud_init_no_cloud(self): """ Gets the cloud_init_no_cloud of this V1Volume. - CloudInitNoCloud represents a cloud-init NoCloud user-data source. The NoCloud data will be added as a disk to the vm. A proper cloud-init installation is required inside the guest. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html +optional + CloudInitNoCloud represents a cloud-init NoCloud user-data source. The NoCloud data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html +optional :return: The cloud_init_no_cloud of this V1Volume. :rtype: V1CloudInitNoCloudSource @@ -87,7 +87,7 @@ def cloud_init_no_cloud(self): def cloud_init_no_cloud(self, cloud_init_no_cloud): """ Sets the cloud_init_no_cloud of this V1Volume. - CloudInitNoCloud represents a cloud-init NoCloud user-data source. The NoCloud data will be added as a disk to the vm. A proper cloud-init installation is required inside the guest. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html +optional + CloudInitNoCloud represents a cloud-init NoCloud user-data source. The NoCloud data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html +optional :param cloud_init_no_cloud: The cloud_init_no_cloud of this V1Volume. :type: V1CloudInitNoCloudSource @@ -99,7 +99,7 @@ def cloud_init_no_cloud(self, cloud_init_no_cloud): def empty_disk(self): """ Gets the empty_disk of this V1Volume. - EmptyDisk represents a temporary disk which shares the vms lifecycle More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html +optional + EmptyDisk represents a temporary disk which shares the vmis lifecycle More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html +optional :return: The empty_disk of this V1Volume. :rtype: V1EmptyDiskSource @@ -110,7 +110,7 @@ def empty_disk(self): def empty_disk(self, empty_disk): """ Sets the empty_disk of this V1Volume. - EmptyDisk represents a temporary disk which shares the vms lifecycle More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html +optional + EmptyDisk represents a temporary disk which shares the vmis lifecycle More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html +optional :param empty_disk: The empty_disk of this V1Volume. :type: V1EmptyDiskSource @@ -145,7 +145,7 @@ def ephemeral(self, ephemeral): def name(self): """ Gets the name of this V1Volume. - Volume's name. Must be a DNS_LABEL and unique within the vm. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + Volume's name. Must be a DNS_LABEL and unique within the vmi. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names :return: The name of this V1Volume. :rtype: str @@ -156,7 +156,7 @@ def name(self): def name(self, name): """ Sets the name of this V1Volume. - Volume's name. Must be a DNS_LABEL and unique within the vm. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + Volume's name. Must be a DNS_LABEL and unique within the vmi. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names :param name: The name of this V1Volume. :type: str @@ -170,7 +170,7 @@ def name(self, name): def persistent_volume_claim(self): """ Gets the persistent_volume_claim of this V1Volume. - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vm via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims +optional + PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims +optional :return: The persistent_volume_claim of this V1Volume. :rtype: V1PersistentVolumeClaimVolumeSource @@ -181,7 +181,7 @@ def persistent_volume_claim(self): def persistent_volume_claim(self, persistent_volume_claim): """ Sets the persistent_volume_claim of this V1Volume. - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vm via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims +optional + PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims +optional :param persistent_volume_claim: The persistent_volume_claim of this V1Volume. :type: V1PersistentVolumeClaimVolumeSource diff --git a/setup.py b/setup.py index 33760900..55f52217 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.6.0-32-g49663421" +VERSION = "v0.6.0-52-gf7751045" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 21164309..22246c1d 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.6.0-32-g49663421" +"packageVersion": "v0.6.0-52-gf7751045" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 7d364696..0db1d439 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -43,15 +43,7 @@ def test_console(self): """ Test case for console - Open a websocket connection to a serial console on the specified VM. - """ - pass - - def test_create_namespaced_offline_virtual_machine(self): - """ - Test case for create_namespaced_offline_virtual_machine - - Create a OfflineVirtualMachine object. + Open a websocket connection to a serial console on the specified VirtualMachineInstance. """ pass @@ -63,27 +55,27 @@ def test_create_namespaced_virtual_machine(self): """ pass - def test_create_namespaced_virtual_machine_preset(self): + def test_create_namespaced_virtual_machine_instance(self): """ - Test case for create_namespaced_virtual_machine_preset + Test case for create_namespaced_virtual_machine_instance - Create a VirtualMachinePreset object. + Create a VirtualMachineInstance object. """ pass - def test_create_namespaced_virtual_machine_replica_set(self): + def test_create_namespaced_virtual_machine_instance_preset(self): """ - Test case for create_namespaced_virtual_machine_replica_set + Test case for create_namespaced_virtual_machine_instance_preset - Create a VirtualMachineReplicaSet object. + Create a VirtualMachineInstancePreset object. """ pass - def test_delete_collection_namespaced_offline_virtual_machine(self): + def test_create_namespaced_virtual_machine_instance_replica_set(self): """ - Test case for delete_collection_namespaced_offline_virtual_machine + Test case for create_namespaced_virtual_machine_instance_replica_set - Delete a collection of OfflineVirtualMachine objects. + Create a VirtualMachineInstanceReplicaSet object. """ pass @@ -95,27 +87,27 @@ def test_delete_collection_namespaced_virtual_machine(self): """ pass - def test_delete_collection_namespaced_virtual_machine_preset(self): + def test_delete_collection_namespaced_virtual_machine_instance(self): """ - Test case for delete_collection_namespaced_virtual_machine_preset + Test case for delete_collection_namespaced_virtual_machine_instance - Delete a collection of VirtualMachinePreset objects. + Delete a collection of VirtualMachineInstance objects. """ pass - def test_delete_collection_namespaced_virtual_machine_replica_set(self): + def test_delete_collection_namespaced_virtual_machine_instance_preset(self): """ - Test case for delete_collection_namespaced_virtual_machine_replica_set + Test case for delete_collection_namespaced_virtual_machine_instance_preset - Delete a collection of VirtualMachineReplicaSet objects. + Delete a collection of VirtualMachineInstancePreset objects. """ pass - def test_delete_namespaced_offline_virtual_machine(self): + def test_delete_collection_namespaced_virtual_machine_instance_replica_set(self): """ - Test case for delete_namespaced_offline_virtual_machine + Test case for delete_collection_namespaced_virtual_machine_instance_replica_set - Delete a OfflineVirtualMachine object. + Delete a collection of VirtualMachineInstanceReplicaSet objects. """ pass @@ -127,19 +119,27 @@ def test_delete_namespaced_virtual_machine(self): """ pass - def test_delete_namespaced_virtual_machine_preset(self): + def test_delete_namespaced_virtual_machine_instance(self): + """ + Test case for delete_namespaced_virtual_machine_instance + + Delete a VirtualMachineInstance object. + """ + pass + + def test_delete_namespaced_virtual_machine_instance_preset(self): """ - Test case for delete_namespaced_virtual_machine_preset + Test case for delete_namespaced_virtual_machine_instance_preset - Delete a VirtualMachinePreset object. + Delete a VirtualMachineInstancePreset object. """ pass - def test_delete_namespaced_virtual_machine_replica_set(self): + def test_delete_namespaced_virtual_machine_instance_replica_set(self): """ - Test case for delete_namespaced_virtual_machine_replica_set + Test case for delete_namespaced_virtual_machine_instance_replica_set - Delete a VirtualMachineReplicaSet object. + Delete a VirtualMachineInstanceReplicaSet object. """ pass @@ -183,14 +183,6 @@ def test_get_api_resources_0(self): """ pass - def test_list_namespaced_offline_virtual_machine(self): - """ - Test case for list_namespaced_offline_virtual_machine - - Get a list of OfflineVirtualMachine objects. - """ - pass - def test_list_namespaced_virtual_machine(self): """ Test case for list_namespaced_virtual_machine @@ -199,27 +191,27 @@ def test_list_namespaced_virtual_machine(self): """ pass - def test_list_namespaced_virtual_machine_preset(self): + def test_list_namespaced_virtual_machine_instance(self): """ - Test case for list_namespaced_virtual_machine_preset + Test case for list_namespaced_virtual_machine_instance - Get a list of VirtualMachinePreset objects. + Get a list of VirtualMachineInstance objects. """ pass - def test_list_namespaced_virtual_machine_replica_set(self): + def test_list_namespaced_virtual_machine_instance_preset(self): """ - Test case for list_namespaced_virtual_machine_replica_set + Test case for list_namespaced_virtual_machine_instance_preset - Get a list of VirtualMachineReplicaSet objects. + Get a list of VirtualMachineInstancePreset objects. """ pass - def test_list_offline_virtual_machine_for_all_namespaces(self): + def test_list_namespaced_virtual_machine_instance_replica_set(self): """ - Test case for list_offline_virtual_machine_for_all_namespaces + Test case for list_namespaced_virtual_machine_instance_replica_set - Get a list of all OfflineVirtualMachine objects. + Get a list of VirtualMachineInstanceReplicaSet objects. """ pass @@ -231,27 +223,27 @@ def test_list_virtual_machine_for_all_namespaces(self): """ pass - def test_list_virtual_machine_preset_for_all_namespaces(self): + def test_list_virtual_machine_instance_for_all_namespaces(self): """ - Test case for list_virtual_machine_preset_for_all_namespaces + Test case for list_virtual_machine_instance_for_all_namespaces - Get a list of all VirtualMachinePreset objects. + Get a list of all VirtualMachineInstance objects. """ pass - def test_list_virtual_machine_replica_set_for_all_namespaces(self): + def test_list_virtual_machine_instance_preset_for_all_namespaces(self): """ - Test case for list_virtual_machine_replica_set_for_all_namespaces + Test case for list_virtual_machine_instance_preset_for_all_namespaces - Get a list of all VirtualMachineReplicaSet objects. + Get a list of all VirtualMachineInstancePreset objects. """ pass - def test_patch_namespaced_offline_virtual_machine(self): + def test_list_virtual_machine_instance_replica_set_for_all_namespaces(self): """ - Test case for patch_namespaced_offline_virtual_machine + Test case for list_virtual_machine_instance_replica_set_for_all_namespaces - Patch a OfflineVirtualMachine object. + Get a list of all VirtualMachineInstanceReplicaSet objects. """ pass @@ -263,27 +255,27 @@ def test_patch_namespaced_virtual_machine(self): """ pass - def test_patch_namespaced_virtual_machine_preset(self): + def test_patch_namespaced_virtual_machine_instance(self): """ - Test case for patch_namespaced_virtual_machine_preset + Test case for patch_namespaced_virtual_machine_instance - Patch a VirtualMachinePreset object. + Patch a VirtualMachineInstance object. """ pass - def test_patch_namespaced_virtual_machine_replica_set(self): + def test_patch_namespaced_virtual_machine_instance_preset(self): """ - Test case for patch_namespaced_virtual_machine_replica_set + Test case for patch_namespaced_virtual_machine_instance_preset - Patch a VirtualMachineReplicaSet object. + Patch a VirtualMachineInstancePreset object. """ pass - def test_read_namespaced_offline_virtual_machine(self): + def test_patch_namespaced_virtual_machine_instance_replica_set(self): """ - Test case for read_namespaced_offline_virtual_machine + Test case for patch_namespaced_virtual_machine_instance_replica_set - Get a OfflineVirtualMachine object. + Patch a VirtualMachineInstanceReplicaSet object. """ pass @@ -295,27 +287,27 @@ def test_read_namespaced_virtual_machine(self): """ pass - def test_read_namespaced_virtual_machine_preset(self): + def test_read_namespaced_virtual_machine_instance(self): """ - Test case for read_namespaced_virtual_machine_preset + Test case for read_namespaced_virtual_machine_instance - Get a VirtualMachinePreset object. + Get a VirtualMachineInstance object. """ pass - def test_read_namespaced_virtual_machine_replica_set(self): + def test_read_namespaced_virtual_machine_instance_preset(self): """ - Test case for read_namespaced_virtual_machine_replica_set + Test case for read_namespaced_virtual_machine_instance_preset - Get a VirtualMachineReplicaSet object. + Get a VirtualMachineInstancePreset object. """ pass - def test_replace_namespaced_offline_virtual_machine(self): + def test_read_namespaced_virtual_machine_instance_replica_set(self): """ - Test case for replace_namespaced_offline_virtual_machine + Test case for read_namespaced_virtual_machine_instance_replica_set - Update a OfflineVirtualMachine object. + Get a VirtualMachineInstanceReplicaSet object. """ pass @@ -327,19 +319,27 @@ def test_replace_namespaced_virtual_machine(self): """ pass - def test_replace_namespaced_virtual_machine_preset(self): + def test_replace_namespaced_virtual_machine_instance(self): + """ + Test case for replace_namespaced_virtual_machine_instance + + Update a VirtualMachineInstance object. + """ + pass + + def test_replace_namespaced_virtual_machine_instance_preset(self): """ - Test case for replace_namespaced_virtual_machine_preset + Test case for replace_namespaced_virtual_machine_instance_preset - Update a VirtualMachinePreset object. + Update a VirtualMachineInstancePreset object. """ pass - def test_replace_namespaced_virtual_machine_replica_set(self): + def test_replace_namespaced_virtual_machine_instance_replica_set(self): """ - Test case for replace_namespaced_virtual_machine_replica_set + Test case for replace_namespaced_virtual_machine_instance_replica_set - Update a VirtualMachineReplicaSet object. + Update a VirtualMachineInstanceReplicaSet object. """ pass @@ -363,71 +363,71 @@ def test_vnc(self): """ Test case for vnc - Open a websocket connection to connect to VNC on the specified VM. + Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. """ pass - def test_watch_namespaced_offline_virtual_machine(self): + def test_watch_namespaced_virtual_machine(self): """ - Test case for watch_namespaced_offline_virtual_machine + Test case for watch_namespaced_virtual_machine - Watch a OfflineVirtualMachine object. + Watch a VirtualMachine object. """ pass - def test_watch_namespaced_virtual_machine(self): + def test_watch_namespaced_virtual_machine_instance(self): """ - Test case for watch_namespaced_virtual_machine + Test case for watch_namespaced_virtual_machine_instance - Watch a VirtualMachine object. + Watch a VirtualMachineInstance object. """ pass - def test_watch_namespaced_virtual_machine_preset(self): + def test_watch_namespaced_virtual_machine_instance_preset(self): """ - Test case for watch_namespaced_virtual_machine_preset + Test case for watch_namespaced_virtual_machine_instance_preset - Watch a VirtualMachinePreset object. + Watch a VirtualMachineInstancePreset object. """ pass - def test_watch_namespaced_virtual_machine_replica_set(self): + def test_watch_namespaced_virtual_machine_instance_replica_set(self): """ - Test case for watch_namespaced_virtual_machine_replica_set + Test case for watch_namespaced_virtual_machine_instance_replica_set - Watch a VirtualMachineReplicaSet object. + Watch a VirtualMachineInstanceReplicaSet object. """ pass - def test_watch_offline_virtual_machine_list_for_all_namespaces(self): + def test_watch_virtual_machine_instance_list_for_all_namespaces(self): """ - Test case for watch_offline_virtual_machine_list_for_all_namespaces + Test case for watch_virtual_machine_instance_list_for_all_namespaces - Watch a OfflineVirtualMachineList object. + Watch a VirtualMachineInstanceList object. """ pass - def test_watch_virtual_machine_list_for_all_namespaces(self): + def test_watch_virtual_machine_instance_preset_list_for_all_namespaces(self): """ - Test case for watch_virtual_machine_list_for_all_namespaces + Test case for watch_virtual_machine_instance_preset_list_for_all_namespaces - Watch a VirtualMachineList object. + Watch a VirtualMachineInstancePresetList object. """ pass - def test_watch_virtual_machine_preset_list_for_all_namespaces(self): + def test_watch_virtual_machine_instance_replica_set_list_for_all_namespaces(self): """ - Test case for watch_virtual_machine_preset_list_for_all_namespaces + Test case for watch_virtual_machine_instance_replica_set_list_for_all_namespaces - Watch a VirtualMachinePresetList object. + Watch a VirtualMachineInstanceReplicaSetList object. """ pass - def test_watch_virtual_machine_replica_set_list_for_all_namespaces(self): + def test_watch_virtual_machine_list_for_all_namespaces(self): """ - Test case for watch_virtual_machine_replica_set_list_for_all_namespaces + Test case for watch_virtual_machine_list_for_all_namespaces - Watch a VirtualMachineReplicaSetList object. + Watch a VirtualMachineList object. """ pass diff --git a/test/test_v1_offline_virtual_machine.py b/test/test_v1_virtual_machine_instance.py similarity index 63% rename from test/test_v1_offline_virtual_machine.py rename to test/test_v1_virtual_machine_instance.py index ee5bba11..b4fc3c63 100644 --- a/test/test_v1_offline_virtual_machine.py +++ b/test/test_v1_virtual_machine_instance.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_offline_virtual_machine import V1OfflineVirtualMachine +from kubevirt.models.v1_virtual_machine_instance import V1VirtualMachineInstance -class TestV1OfflineVirtualMachine(unittest.TestCase): - """ V1OfflineVirtualMachine unit test stubs """ +class TestV1VirtualMachineInstance(unittest.TestCase): + """ V1VirtualMachineInstance unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1OfflineVirtualMachine(self): + def testV1VirtualMachineInstance(self): """ - Test V1OfflineVirtualMachine + Test V1VirtualMachineInstance """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_offline_virtual_machine.V1OfflineVirtualMachine() + #model = kubevirt.models.v1_virtual_machine_instance.V1VirtualMachineInstance() pass diff --git a/test/test_v1_offline_virtual_machine_condition.py b/test/test_v1_virtual_machine_instance_condition.py similarity index 58% rename from test/test_v1_offline_virtual_machine_condition.py rename to test/test_v1_virtual_machine_instance_condition.py index 706e8564..e9f64d61 100644 --- a/test/test_v1_offline_virtual_machine_condition.py +++ b/test/test_v1_virtual_machine_instance_condition.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_offline_virtual_machine_condition import V1OfflineVirtualMachineCondition +from kubevirt.models.v1_virtual_machine_instance_condition import V1VirtualMachineInstanceCondition -class TestV1OfflineVirtualMachineCondition(unittest.TestCase): - """ V1OfflineVirtualMachineCondition unit test stubs """ +class TestV1VirtualMachineInstanceCondition(unittest.TestCase): + """ V1VirtualMachineInstanceCondition unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1OfflineVirtualMachineCondition(self): + def testV1VirtualMachineInstanceCondition(self): """ - Test V1OfflineVirtualMachineCondition + Test V1VirtualMachineInstanceCondition """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_offline_virtual_machine_condition.V1OfflineVirtualMachineCondition() + #model = kubevirt.models.v1_virtual_machine_instance_condition.V1VirtualMachineInstanceCondition() pass diff --git a/test/test_v1_virtual_machine_preset.py b/test/test_v1_virtual_machine_instance_list.py similarity index 61% rename from test/test_v1_virtual_machine_preset.py rename to test/test_v1_virtual_machine_instance_list.py index 136ff78b..a96e821f 100644 --- a/test/test_v1_virtual_machine_preset.py +++ b/test/test_v1_virtual_machine_instance_list.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_virtual_machine_preset import V1VirtualMachinePreset +from kubevirt.models.v1_virtual_machine_instance_list import V1VirtualMachineInstanceList -class TestV1VirtualMachinePreset(unittest.TestCase): - """ V1VirtualMachinePreset unit test stubs """ +class TestV1VirtualMachineInstanceList(unittest.TestCase): + """ V1VirtualMachineInstanceList unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1VirtualMachinePreset(self): + def testV1VirtualMachineInstanceList(self): """ - Test V1VirtualMachinePreset + Test V1VirtualMachineInstanceList """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_virtual_machine_preset.V1VirtualMachinePreset() + #model = kubevirt.models.v1_virtual_machine_instance_list.V1VirtualMachineInstanceList() pass diff --git a/test/test_v1_virtual_machine_instance_network_interface.py b/test/test_v1_virtual_machine_instance_network_interface.py new file mode 100644 index 00000000..4c520e75 --- /dev/null +++ b/test/test_v1_virtual_machine_instance_network_interface.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_network_interface import V1VirtualMachineInstanceNetworkInterface + + +class TestV1VirtualMachineInstanceNetworkInterface(unittest.TestCase): + """ V1VirtualMachineInstanceNetworkInterface unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceNetworkInterface(self): + """ + Test V1VirtualMachineInstanceNetworkInterface + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_network_interface.V1VirtualMachineInstanceNetworkInterface() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_offline_virtual_machine_status.py b/test/test_v1_virtual_machine_instance_preset.py similarity index 63% rename from test/test_v1_offline_virtual_machine_status.py rename to test/test_v1_virtual_machine_instance_preset.py index af304f0c..7763dbad 100644 --- a/test/test_v1_offline_virtual_machine_status.py +++ b/test/test_v1_virtual_machine_instance_preset.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_offline_virtual_machine_status import V1OfflineVirtualMachineStatus +from kubevirt.models.v1_virtual_machine_instance_preset import V1VirtualMachineInstancePreset -class TestV1OfflineVirtualMachineStatus(unittest.TestCase): - """ V1OfflineVirtualMachineStatus unit test stubs """ +class TestV1VirtualMachineInstancePreset(unittest.TestCase): + """ V1VirtualMachineInstancePreset unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1OfflineVirtualMachineStatus(self): + def testV1VirtualMachineInstancePreset(self): """ - Test V1OfflineVirtualMachineStatus + Test V1VirtualMachineInstancePreset """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_offline_virtual_machine_status.V1OfflineVirtualMachineStatus() + #model = kubevirt.models.v1_virtual_machine_instance_preset.V1VirtualMachineInstancePreset() pass diff --git a/test/test_v1_vm_template_spec.py b/test/test_v1_virtual_machine_instance_preset_list.py similarity index 58% rename from test/test_v1_vm_template_spec.py rename to test/test_v1_virtual_machine_instance_preset_list.py index 920e0611..360b86fa 100644 --- a/test/test_v1_vm_template_spec.py +++ b/test/test_v1_virtual_machine_instance_preset_list.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_vm_template_spec import V1VMTemplateSpec +from kubevirt.models.v1_virtual_machine_instance_preset_list import V1VirtualMachineInstancePresetList -class TestV1VMTemplateSpec(unittest.TestCase): - """ V1VMTemplateSpec unit test stubs """ +class TestV1VirtualMachineInstancePresetList(unittest.TestCase): + """ V1VirtualMachineInstancePresetList unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1VMTemplateSpec(self): + def testV1VirtualMachineInstancePresetList(self): """ - Test V1VMTemplateSpec + Test V1VirtualMachineInstancePresetList """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_vm_template_spec.V1VMTemplateSpec() + #model = kubevirt.models.v1_virtual_machine_instance_preset_list.V1VirtualMachineInstancePresetList() pass diff --git a/test/test_v1_virtual_machine_instance_preset_spec.py b/test/test_v1_virtual_machine_instance_preset_spec.py new file mode 100644 index 00000000..4a3dcea6 --- /dev/null +++ b/test/test_v1_virtual_machine_instance_preset_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_preset_spec import V1VirtualMachineInstancePresetSpec + + +class TestV1VirtualMachineInstancePresetSpec(unittest.TestCase): + """ V1VirtualMachineInstancePresetSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstancePresetSpec(self): + """ + Test V1VirtualMachineInstancePresetSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_preset_spec.V1VirtualMachineInstancePresetSpec() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_virtual_machine_instance_replica_set.py b/test/test_v1_virtual_machine_instance_replica_set.py new file mode 100644 index 00000000..d8e41226 --- /dev/null +++ b/test/test_v1_virtual_machine_instance_replica_set.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_replica_set import V1VirtualMachineInstanceReplicaSet + + +class TestV1VirtualMachineInstanceReplicaSet(unittest.TestCase): + """ V1VirtualMachineInstanceReplicaSet unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceReplicaSet(self): + """ + Test V1VirtualMachineInstanceReplicaSet + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_replica_set.V1VirtualMachineInstanceReplicaSet() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_virtual_machine_instance_replica_set_condition.py b/test/test_v1_virtual_machine_instance_replica_set_condition.py new file mode 100644 index 00000000..05754079 --- /dev/null +++ b/test/test_v1_virtual_machine_instance_replica_set_condition.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_replica_set_condition import V1VirtualMachineInstanceReplicaSetCondition + + +class TestV1VirtualMachineInstanceReplicaSetCondition(unittest.TestCase): + """ V1VirtualMachineInstanceReplicaSetCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceReplicaSetCondition(self): + """ + Test V1VirtualMachineInstanceReplicaSetCondition + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_replica_set_condition.V1VirtualMachineInstanceReplicaSetCondition() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_virtual_machine_instance_replica_set_list.py b/test/test_v1_virtual_machine_instance_replica_set_list.py new file mode 100644 index 00000000..193ab74e --- /dev/null +++ b/test/test_v1_virtual_machine_instance_replica_set_list.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_replica_set_list import V1VirtualMachineInstanceReplicaSetList + + +class TestV1VirtualMachineInstanceReplicaSetList(unittest.TestCase): + """ V1VirtualMachineInstanceReplicaSetList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceReplicaSetList(self): + """ + Test V1VirtualMachineInstanceReplicaSetList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_replica_set_list.V1VirtualMachineInstanceReplicaSetList() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_virtual_machine_instance_replica_set_spec.py b/test/test_v1_virtual_machine_instance_replica_set_spec.py new file mode 100644 index 00000000..723b055a --- /dev/null +++ b/test/test_v1_virtual_machine_instance_replica_set_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_replica_set_spec import V1VirtualMachineInstanceReplicaSetSpec + + +class TestV1VirtualMachineInstanceReplicaSetSpec(unittest.TestCase): + """ V1VirtualMachineInstanceReplicaSetSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceReplicaSetSpec(self): + """ + Test V1VirtualMachineInstanceReplicaSetSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_replica_set_spec.V1VirtualMachineInstanceReplicaSetSpec() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_virtual_machine_instance_replica_set_status.py b/test/test_v1_virtual_machine_instance_replica_set_status.py new file mode 100644 index 00000000..53fc6594 --- /dev/null +++ b/test/test_v1_virtual_machine_instance_replica_set_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_replica_set_status import V1VirtualMachineInstanceReplicaSetStatus + + +class TestV1VirtualMachineInstanceReplicaSetStatus(unittest.TestCase): + """ V1VirtualMachineInstanceReplicaSetStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceReplicaSetStatus(self): + """ + Test V1VirtualMachineInstanceReplicaSetStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_replica_set_status.V1VirtualMachineInstanceReplicaSetStatus() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_offline_virtual_machine_list.py b/test/test_v1_virtual_machine_instance_spec.py similarity index 61% rename from test/test_v1_offline_virtual_machine_list.py rename to test/test_v1_virtual_machine_instance_spec.py index 3a49a17f..d15b197f 100644 --- a/test/test_v1_offline_virtual_machine_list.py +++ b/test/test_v1_virtual_machine_instance_spec.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_offline_virtual_machine_list import V1OfflineVirtualMachineList +from kubevirt.models.v1_virtual_machine_instance_spec import V1VirtualMachineInstanceSpec -class TestV1OfflineVirtualMachineList(unittest.TestCase): - """ V1OfflineVirtualMachineList unit test stubs """ +class TestV1VirtualMachineInstanceSpec(unittest.TestCase): + """ V1VirtualMachineInstanceSpec unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1OfflineVirtualMachineList(self): + def testV1VirtualMachineInstanceSpec(self): """ - Test V1OfflineVirtualMachineList + Test V1VirtualMachineInstanceSpec """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_offline_virtual_machine_list.V1OfflineVirtualMachineList() + #model = kubevirt.models.v1_virtual_machine_instance_spec.V1VirtualMachineInstanceSpec() pass diff --git a/test/test_v1_offline_virtual_machine_spec.py b/test/test_v1_virtual_machine_instance_status.py similarity index 63% rename from test/test_v1_offline_virtual_machine_spec.py rename to test/test_v1_virtual_machine_instance_status.py index 93250f4d..424d9215 100644 --- a/test/test_v1_offline_virtual_machine_spec.py +++ b/test/test_v1_virtual_machine_instance_status.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_offline_virtual_machine_spec import V1OfflineVirtualMachineSpec +from kubevirt.models.v1_virtual_machine_instance_status import V1VirtualMachineInstanceStatus -class TestV1OfflineVirtualMachineSpec(unittest.TestCase): - """ V1OfflineVirtualMachineSpec unit test stubs """ +class TestV1VirtualMachineInstanceStatus(unittest.TestCase): + """ V1VirtualMachineInstanceStatus unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1OfflineVirtualMachineSpec(self): + def testV1VirtualMachineInstanceStatus(self): """ - Test V1OfflineVirtualMachineSpec + Test V1VirtualMachineInstanceStatus """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_offline_virtual_machine_spec.V1OfflineVirtualMachineSpec() + #model = kubevirt.models.v1_virtual_machine_instance_status.V1VirtualMachineInstanceStatus() pass diff --git a/test/test_v1_virtual_machine_instance_template_spec.py b/test/test_v1_virtual_machine_instance_template_spec.py new file mode 100644 index 00000000..36c34052 --- /dev/null +++ b/test/test_v1_virtual_machine_instance_template_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_template_spec import V1VirtualMachineInstanceTemplateSpec + + +class TestV1VirtualMachineInstanceTemplateSpec(unittest.TestCase): + """ V1VirtualMachineInstanceTemplateSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceTemplateSpec(self): + """ + Test V1VirtualMachineInstanceTemplateSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_template_spec.V1VirtualMachineInstanceTemplateSpec() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_virtual_machine_network_interface.py b/test/test_v1_virtual_machine_network_interface.py deleted file mode 100644 index f9974402..00000000 --- a/test/test_v1_virtual_machine_network_interface.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_virtual_machine_network_interface import V1VirtualMachineNetworkInterface - - -class TestV1VirtualMachineNetworkInterface(unittest.TestCase): - """ V1VirtualMachineNetworkInterface unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1VirtualMachineNetworkInterface(self): - """ - Test V1VirtualMachineNetworkInterface - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_virtual_machine_network_interface.V1VirtualMachineNetworkInterface() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_virtual_machine_preset_list.py b/test/test_v1_virtual_machine_preset_list.py deleted file mode 100644 index 1c08a7b2..00000000 --- a/test/test_v1_virtual_machine_preset_list.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_virtual_machine_preset_list import V1VirtualMachinePresetList - - -class TestV1VirtualMachinePresetList(unittest.TestCase): - """ V1VirtualMachinePresetList unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1VirtualMachinePresetList(self): - """ - Test V1VirtualMachinePresetList - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_virtual_machine_preset_list.V1VirtualMachinePresetList() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_virtual_machine_preset_spec.py b/test/test_v1_virtual_machine_preset_spec.py deleted file mode 100644 index 15d88da7..00000000 --- a/test/test_v1_virtual_machine_preset_spec.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_virtual_machine_preset_spec import V1VirtualMachinePresetSpec - - -class TestV1VirtualMachinePresetSpec(unittest.TestCase): - """ V1VirtualMachinePresetSpec unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1VirtualMachinePresetSpec(self): - """ - Test V1VirtualMachinePresetSpec - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_virtual_machine_preset_spec.V1VirtualMachinePresetSpec() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_virtual_machine_replica_set.py b/test/test_v1_virtual_machine_replica_set.py deleted file mode 100644 index 51791a15..00000000 --- a/test/test_v1_virtual_machine_replica_set.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_virtual_machine_replica_set import V1VirtualMachineReplicaSet - - -class TestV1VirtualMachineReplicaSet(unittest.TestCase): - """ V1VirtualMachineReplicaSet unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1VirtualMachineReplicaSet(self): - """ - Test V1VirtualMachineReplicaSet - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_virtual_machine_replica_set.V1VirtualMachineReplicaSet() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_virtual_machine_replica_set_list.py b/test/test_v1_virtual_machine_replica_set_list.py deleted file mode 100644 index 35cd6864..00000000 --- a/test/test_v1_virtual_machine_replica_set_list.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_virtual_machine_replica_set_list import V1VirtualMachineReplicaSetList - - -class TestV1VirtualMachineReplicaSetList(unittest.TestCase): - """ V1VirtualMachineReplicaSetList unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1VirtualMachineReplicaSetList(self): - """ - Test V1VirtualMachineReplicaSetList - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_virtual_machine_replica_set_list.V1VirtualMachineReplicaSetList() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_vm_replica_set_condition.py b/test/test_v1_vm_replica_set_condition.py deleted file mode 100644 index b16b08fa..00000000 --- a/test/test_v1_vm_replica_set_condition.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_vm_replica_set_condition import V1VMReplicaSetCondition - - -class TestV1VMReplicaSetCondition(unittest.TestCase): - """ V1VMReplicaSetCondition unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1VMReplicaSetCondition(self): - """ - Test V1VMReplicaSetCondition - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_vm_replica_set_condition.V1VMReplicaSetCondition() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_vm_replica_set_spec.py b/test/test_v1_vm_replica_set_spec.py deleted file mode 100644 index c9fb4932..00000000 --- a/test/test_v1_vm_replica_set_spec.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_vm_replica_set_spec import V1VMReplicaSetSpec - - -class TestV1VMReplicaSetSpec(unittest.TestCase): - """ V1VMReplicaSetSpec unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1VMReplicaSetSpec(self): - """ - Test V1VMReplicaSetSpec - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_vm_replica_set_spec.V1VMReplicaSetSpec() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_vm_replica_set_status.py b/test/test_v1_vm_replica_set_status.py deleted file mode 100644 index 9a215dde..00000000 --- a/test/test_v1_vm_replica_set_status.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_vm_replica_set_status import V1VMReplicaSetStatus - - -class TestV1VMReplicaSetStatus(unittest.TestCase): - """ V1VMReplicaSetStatus unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1VMReplicaSetStatus(self): - """ - Test V1VMReplicaSetStatus - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_vm_replica_set_status.V1VMReplicaSetStatus() - pass - - -if __name__ == '__main__': - unittest.main() From 5af8e577d49542956e4acfbdf49fc520ad101c93 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 14 Jun 2018 11:53:21 +0000 Subject: [PATCH 018/521] Client Python update by Travis Build 3698 --- README.md | 2 +- docs/DefaultApi.md | 32 ++++++--- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 128 +++++++++++++++++++++++++++-------- kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 130 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index 3500a319..7fef820f 100644 --- a/README.md +++ b/README.md @@ -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: v0.6.0-52-gf7751045 +- Package version: v0.6.0-71-g691a3d9 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index f7677088..356129ef 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -1634,7 +1634,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_virtual_machine** -> V1VirtualMachine patch_namespaced_virtual_machine(body) +> V1VirtualMachine patch_namespaced_virtual_machine(body, namespace, name) Patch a VirtualMachine object. @@ -1654,10 +1654,12 @@ kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubevirt.DefaultApi() body = kubevirt.V1Patch() # V1Patch | +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +name = 'name_example' # str | Name of the resource try: # Patch a VirtualMachine object. - api_response = api_instance.patch_namespaced_virtual_machine(body) + api_response = api_instance.patch_namespaced_virtual_machine(body, namespace, name) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->patch_namespaced_virtual_machine: %s\n" % e) @@ -1668,6 +1670,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**V1Patch**](V1Patch.md)| | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **name** | **str**| Name of the resource | ### Return type @@ -1685,7 +1689,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_virtual_machine_instance** -> V1VirtualMachineInstance patch_namespaced_virtual_machine_instance(body) +> V1VirtualMachineInstance patch_namespaced_virtual_machine_instance(body, namespace, name) Patch a VirtualMachineInstance object. @@ -1705,10 +1709,12 @@ kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubevirt.DefaultApi() body = kubevirt.V1Patch() # V1Patch | +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +name = 'name_example' # str | Name of the resource try: # Patch a VirtualMachineInstance object. - api_response = api_instance.patch_namespaced_virtual_machine_instance(body) + api_response = api_instance.patch_namespaced_virtual_machine_instance(body, namespace, name) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instance: %s\n" % e) @@ -1719,6 +1725,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**V1Patch**](V1Patch.md)| | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **name** | **str**| Name of the resource | ### Return type @@ -1736,7 +1744,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_virtual_machine_instance_preset** -> V1VirtualMachineInstancePreset patch_namespaced_virtual_machine_instance_preset(body) +> V1VirtualMachineInstancePreset patch_namespaced_virtual_machine_instance_preset(body, namespace, name) Patch a VirtualMachineInstancePreset object. @@ -1756,10 +1764,12 @@ kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubevirt.DefaultApi() body = kubevirt.V1Patch() # V1Patch | +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +name = 'name_example' # str | Name of the resource try: # Patch a VirtualMachineInstancePreset object. - api_response = api_instance.patch_namespaced_virtual_machine_instance_preset(body) + api_response = api_instance.patch_namespaced_virtual_machine_instance_preset(body, namespace, name) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instance_preset: %s\n" % e) @@ -1770,6 +1780,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**V1Patch**](V1Patch.md)| | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **name** | **str**| Name of the resource | ### Return type @@ -1787,7 +1799,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_virtual_machine_instance_replica_set** -> V1VirtualMachineInstanceReplicaSet patch_namespaced_virtual_machine_instance_replica_set(body) +> V1VirtualMachineInstanceReplicaSet patch_namespaced_virtual_machine_instance_replica_set(body, namespace, name) Patch a VirtualMachineInstanceReplicaSet object. @@ -1807,10 +1819,12 @@ kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubevirt.DefaultApi() body = kubevirt.V1Patch() # V1Patch | +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +name = 'name_example' # str | Name of the resource try: # Patch a VirtualMachineInstanceReplicaSet object. - api_response = api_instance.patch_namespaced_virtual_machine_instance_replica_set(body) + api_response = api_instance.patch_namespaced_virtual_machine_instance_replica_set(body, namespace, name) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instance_replica_set: %s\n" % e) @@ -1821,6 +1835,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**V1Patch**](V1Patch.md)| | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **name** | **str**| Name of the resource | ### Return type diff --git a/git_push.sh b/git_push.sh index 216d32bc..a73d2e0a 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.6.0-52-gf7751045" + release_note="Auto-generated client v0.6.0-71-g691a3d9" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 7d333d69..c022d9cd 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.6.0-52-gf7751045/python' + self.user_agent = 'Swagger-Codegen/v0.6.0-71-g691a3d9/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index a50c737f..b72b87a3 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -3227,7 +3227,7 @@ def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info( _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine(self, body, **kwargs): + def patch_namespaced_virtual_machine(self, body, namespace, name, **kwargs): """ Patch a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an @@ -3236,23 +3236,25 @@ def patch_namespaced_virtual_machine(self, body, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine(body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Patch body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_with_http_info(body, **kwargs) + return self.patch_namespaced_virtual_machine_with_http_info(body, namespace, name, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_with_http_info(body, **kwargs) + (data) = self.patch_namespaced_virtual_machine_with_http_info(body, namespace, name, **kwargs) return data - def patch_namespaced_virtual_machine_with_http_info(self, body, **kwargs): + def patch_namespaced_virtual_machine_with_http_info(self, body, namespace, name, **kwargs): """ Patch a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an @@ -3261,17 +3263,19 @@ def patch_namespaced_virtual_machine_with_http_info(self, body, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_with_http_info(body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_with_http_info(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Patch body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ - all_params = ['body'] + all_params = ['body', 'namespace', 'name'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3289,11 +3293,25 @@ def patch_namespaced_virtual_machine_with_http_info(self, body, **kwargs): # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine`") + if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): + raise ValueError("Invalid value for parameter `namespace` when calling `patch_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): + raise ValueError("Invalid value for parameter `name` when calling `patch_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] query_params = [] @@ -3331,7 +3349,7 @@ def patch_namespaced_virtual_machine_with_http_info(self, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_instance(self, body, **kwargs): + def patch_namespaced_virtual_machine_instance(self, body, namespace, name, **kwargs): """ Patch a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an @@ -3340,23 +3358,25 @@ def patch_namespaced_virtual_machine_instance(self, body, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance(body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Patch body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_instance_with_http_info(body, **kwargs) + return self.patch_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_instance_with_http_info(body, **kwargs) + (data) = self.patch_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, **kwargs) return data - def patch_namespaced_virtual_machine_instance_with_http_info(self, body, **kwargs): + def patch_namespaced_virtual_machine_instance_with_http_info(self, body, namespace, name, **kwargs): """ Patch a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an @@ -3365,17 +3385,19 @@ def patch_namespaced_virtual_machine_instance_with_http_info(self, body, **kwarg >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_with_http_info(body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Patch body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ - all_params = ['body'] + all_params = ['body', 'namespace', 'name'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3393,11 +3415,25 @@ def patch_namespaced_virtual_machine_instance_with_http_info(self, body, **kwarg # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance`") + if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): + raise ValueError("Invalid value for parameter `namespace` when calling `patch_namespaced_virtual_machine_instance`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): + raise ValueError("Invalid value for parameter `name` when calling `patch_namespaced_virtual_machine_instance`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] query_params = [] @@ -3435,7 +3471,7 @@ def patch_namespaced_virtual_machine_instance_with_http_info(self, body, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_instance_preset(self, body, **kwargs): + def patch_namespaced_virtual_machine_instance_preset(self, body, namespace, name, **kwargs): """ Patch a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an @@ -3444,23 +3480,25 @@ def patch_namespaced_virtual_machine_instance_preset(self, body, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_preset(body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance_preset(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Patch body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_instance_preset_with_http_info(body, **kwargs) + return self.patch_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_instance_preset_with_http_info(body, **kwargs) + (data) = self.patch_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, **kwargs) return data - def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, body, **kwargs): + def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, body, namespace, name, **kwargs): """ Patch a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an @@ -3469,17 +3507,19 @@ def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, body, >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_preset_with_http_info(body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Patch body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ - all_params = ['body'] + all_params = ['body', 'namespace', 'name'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3497,11 +3537,25 @@ def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, body, # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_preset`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_preset`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_preset`") + if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): + raise ValueError("Invalid value for parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): + raise ValueError("Invalid value for parameter `name` when calling `patch_namespaced_virtual_machine_instance_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] query_params = [] @@ -3539,7 +3593,7 @@ def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, body, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_instance_replica_set(self, body, **kwargs): + def patch_namespaced_virtual_machine_instance_replica_set(self, body, namespace, name, **kwargs): """ Patch a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an @@ -3548,23 +3602,25 @@ def patch_namespaced_virtual_machine_instance_replica_set(self, body, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set(body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Patch body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(body, **kwargs) + return self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(body, **kwargs) + (data) = self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, **kwargs) return data - def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, body, **kwargs): + def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, body, namespace, name, **kwargs): """ Patch a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an @@ -3573,17 +3629,19 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, b >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param V1Patch body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ - all_params = ['body'] + all_params = ['body', 'namespace', 'name'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3601,11 +3659,25 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, b # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_replica_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_replica_set`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_replica_set`") + if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): + raise ValueError("Invalid value for parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): + raise ValueError("Invalid value for parameter `name` when calling `patch_namespaced_virtual_machine_instance_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] query_params = [] diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 2172cbdb..4c3e6b65 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.6.0-52-gf7751045".\ + "SDK Package Version: v0.6.0-71-g691a3d9".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index 55f52217..bb0f7dd3 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.6.0-52-gf7751045" +VERSION = "v0.6.0-71-g691a3d9" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 22246c1d..1af30b9e 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.6.0-52-gf7751045" +"packageVersion": "v0.6.0-71-g691a3d9" } From 5316f2392031de6f821bf12b3062335c23b5cf9f Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 14 Jun 2018 15:23:49 +0000 Subject: [PATCH 019/521] Client Python update by Travis Build 3703 --- README.md | 4 +- docs/V1DomainSpec.md | 1 + docs/V1Hugepages.md | 10 +++ docs/V1Memory.md | 10 +++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 ++ kubevirt/__init__.py | 2 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 + kubevirt/models/v1_domain_spec.py | 30 ++++++- kubevirt/models/v1_hugepages.py | 125 ++++++++++++++++++++++++++++++ kubevirt/models/v1_memory.py | 125 ++++++++++++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_hugepages.py | 44 +++++++++++ test/test_v1_memory.py | 44 +++++++++++ 17 files changed, 406 insertions(+), 7 deletions(-) create mode 100644 docs/V1Hugepages.md create mode 100644 docs/V1Memory.md create mode 100644 kubevirt/models/v1_hugepages.py create mode 100644 kubevirt/models/v1_memory.py create mode 100644 test/test_v1_hugepages.py create mode 100644 test/test_v1_memory.py diff --git a/README.md b/README.md index 7fef820f..1a6e3e79 100644 --- a/README.md +++ b/README.md @@ -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: v0.6.0-71-g691a3d9 +- Package version: v0.6.0-99-gff9af14a - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -154,6 +154,7 @@ Class | Method | HTTP request | Description - [V1FloppyTarget](docs/V1FloppyTarget.md) - [V1GroupVersionForDiscovery](docs/V1GroupVersionForDiscovery.md) - [V1HPETTimer](docs/V1HPETTimer.md) + - [V1Hugepages](docs/V1Hugepages.md) - [V1HypervTimer](docs/V1HypervTimer.md) - [V1I6300ESBWatchdog](docs/V1I6300ESBWatchdog.md) - [V1Initializer](docs/V1Initializer.md) @@ -166,6 +167,7 @@ Class | Method | HTTP request | Description - [V1LocalObjectReference](docs/V1LocalObjectReference.md) - [V1LunTarget](docs/V1LunTarget.md) - [V1Machine](docs/V1Machine.md) + - [V1Memory](docs/V1Memory.md) - [V1Network](docs/V1Network.md) - [V1NodeAffinity](docs/V1NodeAffinity.md) - [V1NodeSelector](docs/V1NodeSelector.md) diff --git a/docs/V1DomainSpec.md b/docs/V1DomainSpec.md index de8d543d..728ac4c7 100644 --- a/docs/V1DomainSpec.md +++ b/docs/V1DomainSpec.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **features** | [**V1Features**](V1Features.md) | Features like acpi, apic, hyperv +optional | [optional] **firmware** | [**V1Firmware**](V1Firmware.md) | Firmware +optional | [optional] **machine** | [**V1Machine**](V1Machine.md) | Machine type +optional | [optional] +**memory** | [**V1Memory**](V1Memory.md) | Memory allow specifying the VMI memory features. +optional | [optional] **resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | Resources describes the Compute Resources required by this vmi. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Hugepages.md b/docs/V1Hugepages.md new file mode 100644 index 00000000..ebf1e958 --- /dev/null +++ b/docs/V1Hugepages.md @@ -0,0 +1,10 @@ +# V1Hugepages + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**page_size** | **str** | PageSize specifies the hugepage size, for x86_64 architecture valid values are 1Gi and 2Mi. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Memory.md b/docs/V1Memory.md new file mode 100644 index 00000000..b5ef1946 --- /dev/null +++ b/docs/V1Memory.md @@ -0,0 +1,10 @@ +# V1Memory + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hugepages** | [**V1Hugepages**](V1Hugepages.md) | Hugepages allow to use hugepages for the VirtualMachineInstance instead of regular memory. +optional | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index a73d2e0a..5f8faca2 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.6.0-71-g691a3d9" + release_note="Auto-generated client v0.6.0-99-gff9af14a" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 30bf18a4..2971729b 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -83,6 +83,9 @@ [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_hpet_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_hpet_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1HPETTimer.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_hugepages.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_hugepages.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Hugepages.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_hyperv_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_hyperv_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1HypervTimer.md @@ -119,6 +122,9 @@ [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Machine.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_memory.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_memory.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Memory.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Network.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index e62f03d3..df5ed5e8 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -41,6 +41,7 @@ from .models.v1_floppy_target import V1FloppyTarget from .models.v1_group_version_for_discovery import V1GroupVersionForDiscovery from .models.v1_hpet_timer import V1HPETTimer +from .models.v1_hugepages import V1Hugepages from .models.v1_hyperv_timer import V1HypervTimer from .models.v1_i6300_esb_watchdog import V1I6300ESBWatchdog from .models.v1_initializer import V1Initializer @@ -53,6 +54,7 @@ from .models.v1_local_object_reference import V1LocalObjectReference from .models.v1_lun_target import V1LunTarget from .models.v1_machine import V1Machine +from .models.v1_memory import V1Memory from .models.v1_network import V1Network from .models.v1_node_affinity import V1NodeAffinity from .models.v1_node_selector import V1NodeSelector diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index c022d9cd..65d22d05 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.6.0-71-g691a3d9/python' + self.user_agent = 'Swagger-Codegen/v0.6.0-99-gff9af14a/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 4c3e6b65..ca699d34 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.6.0-71-g691a3d9".\ + "SDK Package Version: v0.6.0-99-gff9af14a".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index a721fde8..c0ca6121 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -41,6 +41,7 @@ from .v1_floppy_target import V1FloppyTarget from .v1_group_version_for_discovery import V1GroupVersionForDiscovery from .v1_hpet_timer import V1HPETTimer +from .v1_hugepages import V1Hugepages from .v1_hyperv_timer import V1HypervTimer from .v1_i6300_esb_watchdog import V1I6300ESBWatchdog from .v1_initializer import V1Initializer @@ -53,6 +54,7 @@ from .v1_local_object_reference import V1LocalObjectReference from .v1_lun_target import V1LunTarget from .v1_machine import V1Machine +from .v1_memory import V1Memory from .v1_network import V1Network from .v1_node_affinity import V1NodeAffinity from .v1_node_selector import V1NodeSelector diff --git a/kubevirt/models/v1_domain_spec.py b/kubevirt/models/v1_domain_spec.py index 915ee8a8..59739536 100644 --- a/kubevirt/models/v1_domain_spec.py +++ b/kubevirt/models/v1_domain_spec.py @@ -37,6 +37,7 @@ class V1DomainSpec(object): 'features': 'V1Features', 'firmware': 'V1Firmware', 'machine': 'V1Machine', + 'memory': 'V1Memory', 'resources': 'V1ResourceRequirements' } @@ -47,10 +48,11 @@ class V1DomainSpec(object): 'features': 'features', 'firmware': 'firmware', 'machine': 'machine', + 'memory': 'memory', 'resources': 'resources' } - def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, resources=None): + def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, memory=None, resources=None): """ V1DomainSpec - a model defined in Swagger """ @@ -61,6 +63,7 @@ def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=N self._features = None self._firmware = None self._machine = None + self._memory = None self._resources = None if clock is not None: @@ -74,6 +77,8 @@ def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=N self.firmware = firmware if machine is not None: self.machine = machine + if memory is not None: + self.memory = memory if resources is not None: self.resources = resources @@ -217,6 +222,29 @@ def machine(self, machine): self._machine = machine + @property + def memory(self): + """ + Gets the memory of this V1DomainSpec. + Memory allow specifying the VMI memory features. +optional + + :return: The memory of this V1DomainSpec. + :rtype: V1Memory + """ + return self._memory + + @memory.setter + def memory(self, memory): + """ + Sets the memory of this V1DomainSpec. + Memory allow specifying the VMI memory features. +optional + + :param memory: The memory of this V1DomainSpec. + :type: V1Memory + """ + + self._memory = memory + @property def resources(self): """ diff --git a/kubevirt/models/v1_hugepages.py b/kubevirt/models/v1_hugepages.py new file mode 100644 index 00000000..9866ad66 --- /dev/null +++ b/kubevirt/models/v1_hugepages.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Hugepages(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'page_size': 'str' + } + + attribute_map = { + 'page_size': 'pageSize' + } + + def __init__(self, page_size=None): + """ + V1Hugepages - a model defined in Swagger + """ + + self._page_size = None + + if page_size is not None: + self.page_size = page_size + + @property + def page_size(self): + """ + Gets the page_size of this V1Hugepages. + PageSize specifies the hugepage size, for x86_64 architecture valid values are 1Gi and 2Mi. + + :return: The page_size of this V1Hugepages. + :rtype: str + """ + return self._page_size + + @page_size.setter + def page_size(self, page_size): + """ + Sets the page_size of this V1Hugepages. + PageSize specifies the hugepage size, for x86_64 architecture valid values are 1Gi and 2Mi. + + :param page_size: The page_size of this V1Hugepages. + :type: str + """ + + self._page_size = page_size + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1Hugepages): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_memory.py b/kubevirt/models/v1_memory.py new file mode 100644 index 00000000..b42c3601 --- /dev/null +++ b/kubevirt/models/v1_memory.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Memory(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'hugepages': 'V1Hugepages' + } + + attribute_map = { + 'hugepages': 'hugepages' + } + + def __init__(self, hugepages=None): + """ + V1Memory - a model defined in Swagger + """ + + self._hugepages = None + + if hugepages is not None: + self.hugepages = hugepages + + @property + def hugepages(self): + """ + Gets the hugepages of this V1Memory. + Hugepages allow to use hugepages for the VirtualMachineInstance instead of regular memory. +optional + + :return: The hugepages of this V1Memory. + :rtype: V1Hugepages + """ + return self._hugepages + + @hugepages.setter + def hugepages(self, hugepages): + """ + Sets the hugepages of this V1Memory. + Hugepages allow to use hugepages for the VirtualMachineInstance instead of regular memory. +optional + + :param hugepages: The hugepages of this V1Memory. + :type: V1Hugepages + """ + + self._hugepages = hugepages + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1Memory): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index bb0f7dd3..354b269b 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.6.0-71-g691a3d9" +VERSION = "v0.6.0-99-gff9af14a" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 1af30b9e..77d0b2a4 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.6.0-71-g691a3d9" +"packageVersion": "v0.6.0-99-gff9af14a" } diff --git a/test/test_v1_hugepages.py b/test/test_v1_hugepages.py new file mode 100644 index 00000000..76887e87 --- /dev/null +++ b/test/test_v1_hugepages.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_hugepages import V1Hugepages + + +class TestV1Hugepages(unittest.TestCase): + """ V1Hugepages unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Hugepages(self): + """ + Test V1Hugepages + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_hugepages.V1Hugepages() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_memory.py b/test/test_v1_memory.py new file mode 100644 index 00000000..f28c61b6 --- /dev/null +++ b/test/test_v1_memory.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_memory import V1Memory + + +class TestV1Memory(unittest.TestCase): + """ V1Memory unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Memory(self): + """ + Test V1Memory + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_memory.V1Memory() + pass + + +if __name__ == '__main__': + unittest.main() From 3a294e3955ee85240af6a41080e26730ca1430c7 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 19 Jun 2018 11:03:39 +0000 Subject: [PATCH 020/521] Client Python update by Travis Build 3761 --- README.md | 3 +- docs/V1DomainPresetSpec.md | 16 + docs/V1VirtualMachineInstancePresetSpec.md | 2 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_domain_preset_spec.py | 293 ++++++++++++++++++ ...v1_virtual_machine_instance_preset_spec.py | 6 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_domain_preset_spec.py | 44 +++ 14 files changed, 369 insertions(+), 10 deletions(-) create mode 100644 docs/V1DomainPresetSpec.md create mode 100644 kubevirt/models/v1_domain_preset_spec.py create mode 100644 test/test_v1_domain_preset_spec.py diff --git a/README.md b/README.md index 1a6e3e79..d0d2e258 100644 --- a/README.md +++ b/README.md @@ -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: v0.6.0-99-gff9af14a +- Package version: v0.6.0-144-gca9455a - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -141,6 +141,7 @@ Class | Method | HTTP request | Description - [V1Devices](docs/V1Devices.md) - [V1Disk](docs/V1Disk.md) - [V1DiskTarget](docs/V1DiskTarget.md) + - [V1DomainPresetSpec](docs/V1DomainPresetSpec.md) - [V1DomainSpec](docs/V1DomainSpec.md) - [V1EmptyDiskSource](docs/V1EmptyDiskSource.md) - [V1EphemeralVolumeSource](docs/V1EphemeralVolumeSource.md) diff --git a/docs/V1DomainPresetSpec.md b/docs/V1DomainPresetSpec.md new file mode 100644 index 00000000..87742c23 --- /dev/null +++ b/docs/V1DomainPresetSpec.md @@ -0,0 +1,16 @@ +# V1DomainPresetSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**clock** | [**V1Clock**](V1Clock.md) | Clock sets the clock and timers of the vmi. +optional | [optional] +**cpu** | [**V1CPU**](V1CPU.md) | CPU allow specified the detailed CPU topology inside the vmi. +optional | [optional] +**devices** | [**V1Devices**](V1Devices.md) | Devices allows adding disks, network interfaces, ... +optional | [optional] +**features** | [**V1Features**](V1Features.md) | Features like acpi, apic, hyperv +optional | [optional] +**firmware** | [**V1Firmware**](V1Firmware.md) | Firmware +optional | [optional] +**machine** | [**V1Machine**](V1Machine.md) | Machine type +optional | [optional] +**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | Resources describes the Compute Resources required by this vmi. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstancePresetSpec.md b/docs/V1VirtualMachineInstancePresetSpec.md index 98791e49..43169bb1 100644 --- a/docs/V1VirtualMachineInstancePresetSpec.md +++ b/docs/V1VirtualMachineInstancePresetSpec.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**domain** | [**V1DomainSpec**](V1DomainSpec.md) | Domain is the same object type as contained in VirtualMachineInstanceSpec | [optional] +**domain** | [**V1DomainPresetSpec**](V1DomainPresetSpec.md) | Domain is the same object type as contained in VirtualMachineInstanceSpec | [optional] **selector** | [**V1LabelSelector**](V1LabelSelector.md) | Selector is a label query over a set of VMIs. Required. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 5f8faca2..2a0caa5d 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.6.0-99-gff9af14a" + release_note="Auto-generated client v0.6.0-144-gca9455a" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 2971729b..5cb53afe 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -44,6 +44,9 @@ [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_disk_target.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_disk_target.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DiskTarget.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_domain_preset_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_domain_preset_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DomainPresetSpec.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_domain_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_domain_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DomainSpec.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index df5ed5e8..77457e0c 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -28,6 +28,7 @@ from .models.v1_devices import V1Devices from .models.v1_disk import V1Disk from .models.v1_disk_target import V1DiskTarget +from .models.v1_domain_preset_spec import V1DomainPresetSpec from .models.v1_domain_spec import V1DomainSpec from .models.v1_empty_disk_source import V1EmptyDiskSource from .models.v1_ephemeral_volume_source import V1EphemeralVolumeSource diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 65d22d05..854d838f 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.6.0-99-gff9af14a/python' + self.user_agent = 'Swagger-Codegen/v0.6.0-144-gca9455a/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index ca699d34..b8f95c34 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.6.0-99-gff9af14a".\ + "SDK Package Version: v0.6.0-144-gca9455a".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index c0ca6121..616331ed 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -28,6 +28,7 @@ from .v1_devices import V1Devices from .v1_disk import V1Disk from .v1_disk_target import V1DiskTarget +from .v1_domain_preset_spec import V1DomainPresetSpec from .v1_domain_spec import V1DomainSpec from .v1_empty_disk_source import V1EmptyDiskSource from .v1_ephemeral_volume_source import V1EphemeralVolumeSource diff --git a/kubevirt/models/v1_domain_preset_spec.py b/kubevirt/models/v1_domain_preset_spec.py new file mode 100644 index 00000000..6cdb25ef --- /dev/null +++ b/kubevirt/models/v1_domain_preset_spec.py @@ -0,0 +1,293 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DomainPresetSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'clock': 'V1Clock', + 'cpu': 'V1CPU', + 'devices': 'V1Devices', + 'features': 'V1Features', + 'firmware': 'V1Firmware', + 'machine': 'V1Machine', + 'resources': 'V1ResourceRequirements' + } + + attribute_map = { + 'clock': 'clock', + 'cpu': 'cpu', + 'devices': 'devices', + 'features': 'features', + 'firmware': 'firmware', + 'machine': 'machine', + 'resources': 'resources' + } + + def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, resources=None): + """ + V1DomainPresetSpec - a model defined in Swagger + """ + + self._clock = None + self._cpu = None + self._devices = None + self._features = None + self._firmware = None + self._machine = None + self._resources = None + + if clock is not None: + self.clock = clock + if cpu is not None: + self.cpu = cpu + if devices is not None: + self.devices = devices + if features is not None: + self.features = features + if firmware is not None: + self.firmware = firmware + if machine is not None: + self.machine = machine + if resources is not None: + self.resources = resources + + @property + def clock(self): + """ + Gets the clock of this V1DomainPresetSpec. + Clock sets the clock and timers of the vmi. +optional + + :return: The clock of this V1DomainPresetSpec. + :rtype: V1Clock + """ + return self._clock + + @clock.setter + def clock(self, clock): + """ + Sets the clock of this V1DomainPresetSpec. + Clock sets the clock and timers of the vmi. +optional + + :param clock: The clock of this V1DomainPresetSpec. + :type: V1Clock + """ + + self._clock = clock + + @property + def cpu(self): + """ + Gets the cpu of this V1DomainPresetSpec. + CPU allow specified the detailed CPU topology inside the vmi. +optional + + :return: The cpu of this V1DomainPresetSpec. + :rtype: V1CPU + """ + return self._cpu + + @cpu.setter + def cpu(self, cpu): + """ + Sets the cpu of this V1DomainPresetSpec. + CPU allow specified the detailed CPU topology inside the vmi. +optional + + :param cpu: The cpu of this V1DomainPresetSpec. + :type: V1CPU + """ + + self._cpu = cpu + + @property + def devices(self): + """ + Gets the devices of this V1DomainPresetSpec. + Devices allows adding disks, network interfaces, ... +optional + + :return: The devices of this V1DomainPresetSpec. + :rtype: V1Devices + """ + return self._devices + + @devices.setter + def devices(self, devices): + """ + Sets the devices of this V1DomainPresetSpec. + Devices allows adding disks, network interfaces, ... +optional + + :param devices: The devices of this V1DomainPresetSpec. + :type: V1Devices + """ + + self._devices = devices + + @property + def features(self): + """ + Gets the features of this V1DomainPresetSpec. + Features like acpi, apic, hyperv +optional + + :return: The features of this V1DomainPresetSpec. + :rtype: V1Features + """ + return self._features + + @features.setter + def features(self, features): + """ + Sets the features of this V1DomainPresetSpec. + Features like acpi, apic, hyperv +optional + + :param features: The features of this V1DomainPresetSpec. + :type: V1Features + """ + + self._features = features + + @property + def firmware(self): + """ + Gets the firmware of this V1DomainPresetSpec. + Firmware +optional + + :return: The firmware of this V1DomainPresetSpec. + :rtype: V1Firmware + """ + return self._firmware + + @firmware.setter + def firmware(self, firmware): + """ + Sets the firmware of this V1DomainPresetSpec. + Firmware +optional + + :param firmware: The firmware of this V1DomainPresetSpec. + :type: V1Firmware + """ + + self._firmware = firmware + + @property + def machine(self): + """ + Gets the machine of this V1DomainPresetSpec. + Machine type +optional + + :return: The machine of this V1DomainPresetSpec. + :rtype: V1Machine + """ + return self._machine + + @machine.setter + def machine(self, machine): + """ + Sets the machine of this V1DomainPresetSpec. + Machine type +optional + + :param machine: The machine of this V1DomainPresetSpec. + :type: V1Machine + """ + + self._machine = machine + + @property + def resources(self): + """ + Gets the resources of this V1DomainPresetSpec. + Resources describes the Compute Resources required by this vmi. + + :return: The resources of this V1DomainPresetSpec. + :rtype: V1ResourceRequirements + """ + return self._resources + + @resources.setter + def resources(self, resources): + """ + Sets the resources of this V1DomainPresetSpec. + Resources describes the Compute Resources required by this vmi. + + :param resources: The resources of this V1DomainPresetSpec. + :type: V1ResourceRequirements + """ + + self._resources = resources + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1DomainPresetSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_preset_spec.py b/kubevirt/models/v1_virtual_machine_instance_preset_spec.py index 2a106910..0dfce62e 100644 --- a/kubevirt/models/v1_virtual_machine_instance_preset_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_preset_spec.py @@ -31,7 +31,7 @@ class V1VirtualMachineInstancePresetSpec(object): and the value is json key in definition. """ swagger_types = { - 'domain': 'V1DomainSpec', + 'domain': 'V1DomainPresetSpec', 'selector': 'V1LabelSelector' } @@ -59,7 +59,7 @@ def domain(self): Domain is the same object type as contained in VirtualMachineInstanceSpec :return: The domain of this V1VirtualMachineInstancePresetSpec. - :rtype: V1DomainSpec + :rtype: V1DomainPresetSpec """ return self._domain @@ -70,7 +70,7 @@ def domain(self, domain): Domain is the same object type as contained in VirtualMachineInstanceSpec :param domain: The domain of this V1VirtualMachineInstancePresetSpec. - :type: V1DomainSpec + :type: V1DomainPresetSpec """ self._domain = domain diff --git a/setup.py b/setup.py index 354b269b..4fee66db 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.6.0-99-gff9af14a" +VERSION = "v0.6.0-144-gca9455a" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 77d0b2a4..3f3ac727 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.6.0-99-gff9af14a" +"packageVersion": "v0.6.0-144-gca9455a" } diff --git a/test/test_v1_domain_preset_spec.py b/test/test_v1_domain_preset_spec.py new file mode 100644 index 00000000..e66aeb60 --- /dev/null +++ b/test/test_v1_domain_preset_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_domain_preset_spec import V1DomainPresetSpec + + +class TestV1DomainPresetSpec(unittest.TestCase): + """ V1DomainPresetSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DomainPresetSpec(self): + """ + Test V1DomainPresetSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_domain_preset_spec.V1DomainPresetSpec() + pass + + +if __name__ == '__main__': + unittest.main() From 3e355bd1bd88570377fb91da1251a6a5e7d1ad34 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 19 Jun 2018 16:28:31 +0000 Subject: [PATCH 021/521] Client Python update by Travis Build 3772 --- README.md | 7 +- docs/BigInt.md | 11 + docs/InfDec.md | 11 + docs/ResourceInfDecAmount.md | 10 + docs/ResourceInt64Amount.md | 11 + docs/ResourceQuantity.md | 13 ++ docs/V1LabelSelector.md | 2 +- docs/V1ObjectMeta.md | 4 +- docs/V1ResourceRequirements.md | 4 +- docs/V1VirtualMachineInstanceSpec.md | 2 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 87 ++++++++ kubevirt/__init__.py | 5 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 5 + kubevirt/models/big_int.py | 151 +++++++++++++ kubevirt/models/inf_dec.py | 151 +++++++++++++ kubevirt/models/resource_inf_dec_amount.py | 124 +++++++++++ kubevirt/models/resource_int64_amount.py | 151 +++++++++++++ kubevirt/models/resource_quantity.py | 205 ++++++++++++++++++ kubevirt/models/v1_label_selector.py | 6 +- kubevirt/models/v1_object_meta.py | 12 +- kubevirt/models/v1_resource_requirements.py | 12 +- .../v1_virtual_machine_instance_spec.py | 6 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_big_int.py | 44 ++++ test/test_inf_dec.py | 44 ++++ test/test_resource_inf_dec_amount.py | 44 ++++ test/test_resource_int64_amount.py | 44 ++++ test/test_resource_quantity.py | 44 ++++ 32 files changed, 1190 insertions(+), 30 deletions(-) create mode 100644 docs/BigInt.md create mode 100644 docs/InfDec.md create mode 100644 docs/ResourceInfDecAmount.md create mode 100644 docs/ResourceInt64Amount.md create mode 100644 docs/ResourceQuantity.md create mode 100644 kubevirt/models/big_int.py create mode 100644 kubevirt/models/inf_dec.py create mode 100644 kubevirt/models/resource_inf_dec_amount.py create mode 100644 kubevirt/models/resource_int64_amount.py create mode 100644 kubevirt/models/resource_quantity.py create mode 100644 test/test_big_int.py create mode 100644 test/test_inf_dec.py create mode 100644 test/test_resource_inf_dec_amount.py create mode 100644 test/test_resource_int64_amount.py create mode 100644 test/test_resource_quantity.py diff --git a/README.md b/README.md index d0d2e258..5254f139 100644 --- a/README.md +++ b/README.md @@ -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: v0.6.0-144-gca9455a +- Package version: v0.6.0-177-gd265c3c - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -127,6 +127,11 @@ Class | Method | HTTP request | Description ## Documentation For Models + - [BigInt](docs/BigInt.md) + - [InfDec](docs/InfDec.md) + - [ResourceInfDecAmount](docs/ResourceInfDecAmount.md) + - [ResourceInt64Amount](docs/ResourceInt64Amount.md) + - [ResourceQuantity](docs/ResourceQuantity.md) - [V1APIGroup](docs/V1APIGroup.md) - [V1APIGroupList](docs/V1APIGroupList.md) - [V1APIResource](docs/V1APIResource.md) diff --git a/docs/BigInt.md b/docs/BigInt.md new file mode 100644 index 00000000..d522b83d --- /dev/null +++ b/docs/BigInt.md @@ -0,0 +1,11 @@ +# BigInt + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**abs** | [**list[BigWord]**](BigWord.md) | | +**neg** | **bool** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InfDec.md b/docs/InfDec.md new file mode 100644 index 00000000..6eded2d5 --- /dev/null +++ b/docs/InfDec.md @@ -0,0 +1,11 @@ +# InfDec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**scale** | [**InfScale**](InfScale.md) | | +**unscaled** | [**BigInt**](BigInt.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResourceInfDecAmount.md b/docs/ResourceInfDecAmount.md new file mode 100644 index 00000000..987283da --- /dev/null +++ b/docs/ResourceInfDecAmount.md @@ -0,0 +1,10 @@ +# ResourceInfDecAmount + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dec** | [**InfDec**](InfDec.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResourceInt64Amount.md b/docs/ResourceInt64Amount.md new file mode 100644 index 00000000..2e64489e --- /dev/null +++ b/docs/ResourceInt64Amount.md @@ -0,0 +1,11 @@ +# ResourceInt64Amount + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**scale** | [**ResourceScale**](ResourceScale.md) | | +**value** | **int** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResourceQuantity.md b/docs/ResourceQuantity.md new file mode 100644 index 00000000..a1c8fad8 --- /dev/null +++ b/docs/ResourceQuantity.md @@ -0,0 +1,13 @@ +# ResourceQuantity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**format** | **str** | | +**d** | [**ResourceInfDecAmount**](ResourceInfDecAmount.md) | | +**i** | [**ResourceInt64Amount**](ResourceInt64Amount.md) | | +**s** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1LabelSelector.md b/docs/V1LabelSelector.md index 1e0f7538..bb3c52d2 100644 --- a/docs/V1LabelSelector.md +++ b/docs/V1LabelSelector.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **match_expressions** | [**list[V1LabelSelectorRequirement]**](V1LabelSelectorRequirement.md) | matchExpressions is a list of label selector requirements. The requirements are ANDed. | [optional] -**match_labels** | **object** | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. | [optional] +**match_labels** | **dict(str, str)** | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1ObjectMeta.md b/docs/V1ObjectMeta.md index 910ecede..91a34a7c 100644 --- a/docs/V1ObjectMeta.md +++ b/docs/V1ObjectMeta.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **object** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations | [optional] +**annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations | [optional] **cluster_name** | **str** | The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. | [optional] **creation_timestamp** | **str** | CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] **deletion_grace_period_seconds** | **int** | Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. | [optional] @@ -12,7 +12,7 @@ Name | Type | Description | Notes **generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency | [optional] **generation** | **int** | A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. | [optional] **initializers** | [**V1Initializers**](V1Initializers.md) | An initializer is a controller which enforces some system invariant at object creation time. This field is a list of initializers that have not yet acted on this object. If nil or empty, this object has been completely initialized. Otherwise, the object is considered uninitialized and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to observe uninitialized objects. When an object is created, the system will populate this list with the current set of initializers. Only privileged users may set or modify this list. Once it is empty, it may not be modified further by any user. | [optional] -**labels** | **object** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels | [optional] +**labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels | [optional] **name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] **namespace** | **str** | Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces | [optional] **owner_references** | [**list[V1OwnerReference]**](V1OwnerReference.md) | List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. | [optional] diff --git a/docs/V1ResourceRequirements.md b/docs/V1ResourceRequirements.md index 8d2be026..1ef3f4bd 100644 --- a/docs/V1ResourceRequirements.md +++ b/docs/V1ResourceRequirements.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**limits** | **object** | Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". +optional | [optional] -**requests** | **object** | Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". +optional | [optional] +**limits** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". +optional | [optional] +**requests** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceSpec.md b/docs/V1VirtualMachineInstanceSpec.md index 9c248672..84b8270d 100644 --- a/docs/V1VirtualMachineInstanceSpec.md +++ b/docs/V1VirtualMachineInstanceSpec.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **domain** | [**V1DomainSpec**](V1DomainSpec.md) | Specification of the desired behavior of the VirtualMachineInstance on the host. | **hostname** | **str** | Specifies the hostname of the vmi If not specified, the hostname will be set to the name of the vmi, if dhcp or cloud-init is configured properly. +optional | [optional] **networks** | [**list[V1Network]**](V1Network.md) | List of networks that can be attached to a vm's virtual interface. | [optional] -**node_selector** | **object** | NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional | [optional] +**node_selector** | **dict(str, str)** | NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional | [optional] **subdomain** | **str** | If specified, the fully qualified vmi hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the vmi will not have a domainname at all. The DNS entry will resolve to the vmi, no matter if the vmi itself can pick up a hostname. +optional | [optional] **termination_grace_period_seconds** | **int** | Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. | [optional] **volumes** | [**list[V1Volume]**](V1Volume.md) | List of volumes that can be mounted by disks belonging to the vmi. | [optional] diff --git a/git_push.sh b/git_push.sh index 2a0caa5d..eab304e9 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.6.0-144-gca9455a" + release_note="Auto-generated client v0.6.0-177-gd265c3c" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 5cb53afe..ca167dcc 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -2,6 +2,21 @@ [main] INFO io.swagger.codegen.ignore.CodegenIgnoreProcessor - No .swagger-codegen-ignore file found. [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default appVersion set to 1.0.0 [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default version set to 1.0.0 +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/big_int.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_big_int.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/BigInt.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/inf_dec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_inf_dec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/InfDec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/resource_inf_dec_amount.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_resource_inf_dec_amount.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/ResourceInfDecAmount.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/resource_int64_amount.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_resource_int64_amount.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/ResourceInt64Amount.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/resource_quantity.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_resource_quantity.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/ResourceQuantity.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_api_group.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_api_group.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1APIGroup.md @@ -333,6 +348,78 @@ [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_group_1` [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_resources_0` [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 77457e0c..56767842 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -14,6 +14,11 @@ from __future__ import absolute_import # import models into sdk package +from .models.big_int import BigInt +from .models.inf_dec import InfDec +from .models.resource_inf_dec_amount import ResourceInfDecAmount +from .models.resource_int64_amount import ResourceInt64Amount +from .models.resource_quantity import ResourceQuantity from .models.v1_api_group import V1APIGroup from .models.v1_api_group_list import V1APIGroupList from .models.v1_api_resource import V1APIResource diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 854d838f..20303052 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.6.0-144-gca9455a/python' + self.user_agent = 'Swagger-Codegen/v0.6.0-177-gd265c3c/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index b8f95c34..768e1343 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.6.0-144-gca9455a".\ + "SDK Package Version: v0.6.0-177-gd265c3c".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 616331ed..819fe962 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -14,6 +14,11 @@ from __future__ import absolute_import # import models into model package +from .big_int import BigInt +from .inf_dec import InfDec +from .resource_inf_dec_amount import ResourceInfDecAmount +from .resource_int64_amount import ResourceInt64Amount +from .resource_quantity import ResourceQuantity from .v1_api_group import V1APIGroup from .v1_api_group_list import V1APIGroupList from .v1_api_resource import V1APIResource diff --git a/kubevirt/models/big_int.py b/kubevirt/models/big_int.py new file mode 100644 index 00000000..0043ceaa --- /dev/null +++ b/kubevirt/models/big_int.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BigInt(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'abs': 'list[BigWord]', + 'neg': 'bool' + } + + attribute_map = { + 'abs': 'abs', + 'neg': 'neg' + } + + def __init__(self, abs=None, neg=None): + """ + BigInt - a model defined in Swagger + """ + + self._abs = None + self._neg = None + + self.abs = abs + self.neg = neg + + @property + def abs(self): + """ + Gets the abs of this BigInt. + + :return: The abs of this BigInt. + :rtype: list[BigWord] + """ + return self._abs + + @abs.setter + def abs(self, abs): + """ + Sets the abs of this BigInt. + + :param abs: The abs of this BigInt. + :type: list[BigWord] + """ + if abs is None: + raise ValueError("Invalid value for `abs`, must not be `None`") + + self._abs = abs + + @property + def neg(self): + """ + Gets the neg of this BigInt. + + :return: The neg of this BigInt. + :rtype: bool + """ + return self._neg + + @neg.setter + def neg(self, neg): + """ + Sets the neg of this BigInt. + + :param neg: The neg of this BigInt. + :type: bool + """ + if neg is None: + raise ValueError("Invalid value for `neg`, must not be `None`") + + self._neg = neg + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BigInt): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/inf_dec.py b/kubevirt/models/inf_dec.py new file mode 100644 index 00000000..02213f18 --- /dev/null +++ b/kubevirt/models/inf_dec.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class InfDec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'scale': 'InfScale', + 'unscaled': 'BigInt' + } + + attribute_map = { + 'scale': 'scale', + 'unscaled': 'unscaled' + } + + def __init__(self, scale=None, unscaled=None): + """ + InfDec - a model defined in Swagger + """ + + self._scale = None + self._unscaled = None + + self.scale = scale + self.unscaled = unscaled + + @property + def scale(self): + """ + Gets the scale of this InfDec. + + :return: The scale of this InfDec. + :rtype: InfScale + """ + return self._scale + + @scale.setter + def scale(self, scale): + """ + Sets the scale of this InfDec. + + :param scale: The scale of this InfDec. + :type: InfScale + """ + if scale is None: + raise ValueError("Invalid value for `scale`, must not be `None`") + + self._scale = scale + + @property + def unscaled(self): + """ + Gets the unscaled of this InfDec. + + :return: The unscaled of this InfDec. + :rtype: BigInt + """ + return self._unscaled + + @unscaled.setter + def unscaled(self, unscaled): + """ + Sets the unscaled of this InfDec. + + :param unscaled: The unscaled of this InfDec. + :type: BigInt + """ + if unscaled is None: + raise ValueError("Invalid value for `unscaled`, must not be `None`") + + self._unscaled = unscaled + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, InfDec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/resource_inf_dec_amount.py b/kubevirt/models/resource_inf_dec_amount.py new file mode 100644 index 00000000..9119f85e --- /dev/null +++ b/kubevirt/models/resource_inf_dec_amount.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ResourceInfDecAmount(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'dec': 'InfDec' + } + + attribute_map = { + 'dec': 'Dec' + } + + def __init__(self, dec=None): + """ + ResourceInfDecAmount - a model defined in Swagger + """ + + self._dec = None + + self.dec = dec + + @property + def dec(self): + """ + Gets the dec of this ResourceInfDecAmount. + + :return: The dec of this ResourceInfDecAmount. + :rtype: InfDec + """ + return self._dec + + @dec.setter + def dec(self, dec): + """ + Sets the dec of this ResourceInfDecAmount. + + :param dec: The dec of this ResourceInfDecAmount. + :type: InfDec + """ + if dec is None: + raise ValueError("Invalid value for `dec`, must not be `None`") + + self._dec = dec + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ResourceInfDecAmount): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/resource_int64_amount.py b/kubevirt/models/resource_int64_amount.py new file mode 100644 index 00000000..da24cc38 --- /dev/null +++ b/kubevirt/models/resource_int64_amount.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ResourceInt64Amount(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'scale': 'ResourceScale', + 'value': 'int' + } + + attribute_map = { + 'scale': 'scale', + 'value': 'value' + } + + def __init__(self, scale=None, value=None): + """ + ResourceInt64Amount - a model defined in Swagger + """ + + self._scale = None + self._value = None + + self.scale = scale + self.value = value + + @property + def scale(self): + """ + Gets the scale of this ResourceInt64Amount. + + :return: The scale of this ResourceInt64Amount. + :rtype: ResourceScale + """ + return self._scale + + @scale.setter + def scale(self, scale): + """ + Sets the scale of this ResourceInt64Amount. + + :param scale: The scale of this ResourceInt64Amount. + :type: ResourceScale + """ + if scale is None: + raise ValueError("Invalid value for `scale`, must not be `None`") + + self._scale = scale + + @property + def value(self): + """ + Gets the value of this ResourceInt64Amount. + + :return: The value of this ResourceInt64Amount. + :rtype: int + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this ResourceInt64Amount. + + :param value: The value of this ResourceInt64Amount. + :type: int + """ + if value is None: + raise ValueError("Invalid value for `value`, must not be `None`") + + self._value = value + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ResourceInt64Amount): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/resource_quantity.py b/kubevirt/models/resource_quantity.py new file mode 100644 index 00000000..549bb51a --- /dev/null +++ b/kubevirt/models/resource_quantity.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ResourceQuantity(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'format': 'str', + 'd': 'ResourceInfDecAmount', + 'i': 'ResourceInt64Amount', + 's': 'str' + } + + attribute_map = { + 'format': 'Format', + 'd': 'd', + 'i': 'i', + 's': 's' + } + + def __init__(self, format=None, d=None, i=None, s=None): + """ + ResourceQuantity - a model defined in Swagger + """ + + self._format = None + self._d = None + self._i = None + self._s = None + + self.format = format + self.d = d + self.i = i + self.s = s + + @property + def format(self): + """ + Gets the format of this ResourceQuantity. + + :return: The format of this ResourceQuantity. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """ + Sets the format of this ResourceQuantity. + + :param format: The format of this ResourceQuantity. + :type: str + """ + if format is None: + raise ValueError("Invalid value for `format`, must not be `None`") + + self._format = format + + @property + def d(self): + """ + Gets the d of this ResourceQuantity. + + :return: The d of this ResourceQuantity. + :rtype: ResourceInfDecAmount + """ + return self._d + + @d.setter + def d(self, d): + """ + Sets the d of this ResourceQuantity. + + :param d: The d of this ResourceQuantity. + :type: ResourceInfDecAmount + """ + if d is None: + raise ValueError("Invalid value for `d`, must not be `None`") + + self._d = d + + @property + def i(self): + """ + Gets the i of this ResourceQuantity. + + :return: The i of this ResourceQuantity. + :rtype: ResourceInt64Amount + """ + return self._i + + @i.setter + def i(self, i): + """ + Sets the i of this ResourceQuantity. + + :param i: The i of this ResourceQuantity. + :type: ResourceInt64Amount + """ + if i is None: + raise ValueError("Invalid value for `i`, must not be `None`") + + self._i = i + + @property + def s(self): + """ + Gets the s of this ResourceQuantity. + + :return: The s of this ResourceQuantity. + :rtype: str + """ + return self._s + + @s.setter + def s(self, s): + """ + Sets the s of this ResourceQuantity. + + :param s: The s of this ResourceQuantity. + :type: str + """ + if s is None: + raise ValueError("Invalid value for `s`, must not be `None`") + + self._s = s + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ResourceQuantity): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_label_selector.py b/kubevirt/models/v1_label_selector.py index bcdad6e5..eafaa188 100644 --- a/kubevirt/models/v1_label_selector.py +++ b/kubevirt/models/v1_label_selector.py @@ -32,7 +32,7 @@ class V1LabelSelector(object): """ swagger_types = { 'match_expressions': 'list[V1LabelSelectorRequirement]', - 'match_labels': 'object' + 'match_labels': 'dict(str, str)' } attribute_map = { @@ -83,7 +83,7 @@ def match_labels(self): matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. :return: The match_labels of this V1LabelSelector. - :rtype: object + :rtype: dict(str, str) """ return self._match_labels @@ -94,7 +94,7 @@ def match_labels(self, match_labels): matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. :param match_labels: The match_labels of this V1LabelSelector. - :type: object + :type: dict(str, str) """ self._match_labels = match_labels diff --git a/kubevirt/models/v1_object_meta.py b/kubevirt/models/v1_object_meta.py index 34972040..f305461e 100644 --- a/kubevirt/models/v1_object_meta.py +++ b/kubevirt/models/v1_object_meta.py @@ -31,7 +31,7 @@ class V1ObjectMeta(object): and the value is json key in definition. """ swagger_types = { - 'annotations': 'object', + 'annotations': 'dict(str, str)', 'cluster_name': 'str', 'creation_timestamp': 'str', 'deletion_grace_period_seconds': 'int', @@ -40,7 +40,7 @@ class V1ObjectMeta(object): 'generate_name': 'str', 'generation': 'int', 'initializers': 'V1Initializers', - 'labels': 'object', + 'labels': 'dict(str, str)', 'name': 'str', 'namespace': 'str', 'owner_references': 'list[V1OwnerReference]', @@ -130,7 +130,7 @@ def annotations(self): Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations :return: The annotations of this V1ObjectMeta. - :rtype: object + :rtype: dict(str, str) """ return self._annotations @@ -141,7 +141,7 @@ def annotations(self, annotations): Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations :param annotations: The annotations of this V1ObjectMeta. - :type: object + :type: dict(str, str) """ self._annotations = annotations @@ -337,7 +337,7 @@ def labels(self): Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels :return: The labels of this V1ObjectMeta. - :rtype: object + :rtype: dict(str, str) """ return self._labels @@ -348,7 +348,7 @@ def labels(self, labels): Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels :param labels: The labels of this V1ObjectMeta. - :type: object + :type: dict(str, str) """ self._labels = labels diff --git a/kubevirt/models/v1_resource_requirements.py b/kubevirt/models/v1_resource_requirements.py index d40b4256..ece4b49c 100644 --- a/kubevirt/models/v1_resource_requirements.py +++ b/kubevirt/models/v1_resource_requirements.py @@ -31,8 +31,8 @@ class V1ResourceRequirements(object): and the value is json key in definition. """ swagger_types = { - 'limits': 'object', - 'requests': 'object' + 'limits': 'dict(str, ResourceQuantity)', + 'requests': 'dict(str, ResourceQuantity)' } attribute_map = { @@ -60,7 +60,7 @@ def limits(self): Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". +optional :return: The limits of this V1ResourceRequirements. - :rtype: object + :rtype: dict(str, ResourceQuantity) """ return self._limits @@ -71,7 +71,7 @@ def limits(self, limits): Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". +optional :param limits: The limits of this V1ResourceRequirements. - :type: object + :type: dict(str, ResourceQuantity) """ self._limits = limits @@ -83,7 +83,7 @@ def requests(self): Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". +optional :return: The requests of this V1ResourceRequirements. - :rtype: object + :rtype: dict(str, ResourceQuantity) """ return self._requests @@ -94,7 +94,7 @@ def requests(self, requests): Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". +optional :param requests: The requests of this V1ResourceRequirements. - :type: object + :type: dict(str, ResourceQuantity) """ self._requests = requests diff --git a/kubevirt/models/v1_virtual_machine_instance_spec.py b/kubevirt/models/v1_virtual_machine_instance_spec.py index 64657ec4..ce960ace 100644 --- a/kubevirt/models/v1_virtual_machine_instance_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_spec.py @@ -35,7 +35,7 @@ class V1VirtualMachineInstanceSpec(object): 'domain': 'V1DomainSpec', 'hostname': 'str', 'networks': 'list[V1Network]', - 'node_selector': 'object', + 'node_selector': 'dict(str, str)', 'subdomain': 'str', 'termination_grace_period_seconds': 'int', 'volumes': 'list[V1Volume]' @@ -183,7 +183,7 @@ def node_selector(self): NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional :return: The node_selector of this V1VirtualMachineInstanceSpec. - :rtype: object + :rtype: dict(str, str) """ return self._node_selector @@ -194,7 +194,7 @@ def node_selector(self, node_selector): NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional :param node_selector: The node_selector of this V1VirtualMachineInstanceSpec. - :type: object + :type: dict(str, str) """ self._node_selector = node_selector diff --git a/setup.py b/setup.py index 4fee66db..c49883f0 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.6.0-144-gca9455a" +VERSION = "v0.6.0-177-gd265c3c" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 3f3ac727..0e8ef0e6 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.6.0-144-gca9455a" +"packageVersion": "v0.6.0-177-gd265c3c" } diff --git a/test/test_big_int.py b/test/test_big_int.py new file mode 100644 index 00000000..fd3d2075 --- /dev/null +++ b/test/test_big_int.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.big_int import BigInt + + +class TestBigInt(unittest.TestCase): + """ BigInt unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBigInt(self): + """ + Test BigInt + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.big_int.BigInt() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inf_dec.py b/test/test_inf_dec.py new file mode 100644 index 00000000..0e9141c6 --- /dev/null +++ b/test/test_inf_dec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.inf_dec import InfDec + + +class TestInfDec(unittest.TestCase): + """ InfDec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInfDec(self): + """ + Test InfDec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.inf_dec.InfDec() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_resource_inf_dec_amount.py b/test/test_resource_inf_dec_amount.py new file mode 100644 index 00000000..a23cedde --- /dev/null +++ b/test/test_resource_inf_dec_amount.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.resource_inf_dec_amount import ResourceInfDecAmount + + +class TestResourceInfDecAmount(unittest.TestCase): + """ ResourceInfDecAmount unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResourceInfDecAmount(self): + """ + Test ResourceInfDecAmount + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.resource_inf_dec_amount.ResourceInfDecAmount() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_resource_int64_amount.py b/test/test_resource_int64_amount.py new file mode 100644 index 00000000..7ee23ae0 --- /dev/null +++ b/test/test_resource_int64_amount.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.resource_int64_amount import ResourceInt64Amount + + +class TestResourceInt64Amount(unittest.TestCase): + """ ResourceInt64Amount unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResourceInt64Amount(self): + """ + Test ResourceInt64Amount + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.resource_int64_amount.ResourceInt64Amount() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_resource_quantity.py b/test/test_resource_quantity.py new file mode 100644 index 00000000..0bdfb38b --- /dev/null +++ b/test/test_resource_quantity.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.resource_quantity import ResourceQuantity + + +class TestResourceQuantity(unittest.TestCase): + """ ResourceQuantity unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResourceQuantity(self): + """ + Test ResourceQuantity + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.resource_quantity.ResourceQuantity() + pass + + +if __name__ == '__main__': + unittest.main() From 5ed05f8b5cb5b14de67acd83914d0e966e2921ac Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 19 Jun 2018 19:03:59 +0000 Subject: [PATCH 022/521] Client Python update by Travis Build 3781 --- README.md | 2 +- docs/V1DomainPresetSpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_domain_preset_spec.py | 30 +++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5254f139..85dff567 100644 --- a/README.md +++ b/README.md @@ -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: v0.6.0-177-gd265c3c +- Package version: v0.6.0-181-g3a265a9 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1DomainPresetSpec.md b/docs/V1DomainPresetSpec.md index 87742c23..282b00c0 100644 --- a/docs/V1DomainPresetSpec.md +++ b/docs/V1DomainPresetSpec.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **features** | [**V1Features**](V1Features.md) | Features like acpi, apic, hyperv +optional | [optional] **firmware** | [**V1Firmware**](V1Firmware.md) | Firmware +optional | [optional] **machine** | [**V1Machine**](V1Machine.md) | Machine type +optional | [optional] +**memory** | [**V1Memory**](V1Memory.md) | Memory allow specifying the VMI memory features. +optional | [optional] **resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | Resources describes the Compute Resources required by this vmi. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index eab304e9..c90da556 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.6.0-177-gd265c3c" + release_note="Auto-generated client v0.6.0-181-g3a265a9" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 20303052..2829e91c 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.6.0-177-gd265c3c/python' + self.user_agent = 'Swagger-Codegen/v0.6.0-181-g3a265a9/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 768e1343..9d629d1d 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.6.0-177-gd265c3c".\ + "SDK Package Version: v0.6.0-181-g3a265a9".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_domain_preset_spec.py b/kubevirt/models/v1_domain_preset_spec.py index 6cdb25ef..e3b43b45 100644 --- a/kubevirt/models/v1_domain_preset_spec.py +++ b/kubevirt/models/v1_domain_preset_spec.py @@ -37,6 +37,7 @@ class V1DomainPresetSpec(object): 'features': 'V1Features', 'firmware': 'V1Firmware', 'machine': 'V1Machine', + 'memory': 'V1Memory', 'resources': 'V1ResourceRequirements' } @@ -47,10 +48,11 @@ class V1DomainPresetSpec(object): 'features': 'features', 'firmware': 'firmware', 'machine': 'machine', + 'memory': 'memory', 'resources': 'resources' } - def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, resources=None): + def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, memory=None, resources=None): """ V1DomainPresetSpec - a model defined in Swagger """ @@ -61,6 +63,7 @@ def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=N self._features = None self._firmware = None self._machine = None + self._memory = None self._resources = None if clock is not None: @@ -75,6 +78,8 @@ def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=N self.firmware = firmware if machine is not None: self.machine = machine + if memory is not None: + self.memory = memory if resources is not None: self.resources = resources @@ -216,6 +221,29 @@ def machine(self, machine): self._machine = machine + @property + def memory(self): + """ + Gets the memory of this V1DomainPresetSpec. + Memory allow specifying the VMI memory features. +optional + + :return: The memory of this V1DomainPresetSpec. + :rtype: V1Memory + """ + return self._memory + + @memory.setter + def memory(self, memory): + """ + Sets the memory of this V1DomainPresetSpec. + Memory allow specifying the VMI memory features. +optional + + :param memory: The memory of this V1DomainPresetSpec. + :type: V1Memory + """ + + self._memory = memory + @property def resources(self): """ diff --git a/setup.py b/setup.py index c49883f0..1dc76267 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.6.0-177-gd265c3c" +VERSION = "v0.6.0-181-g3a265a9" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 0e8ef0e6..5df3f49c 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.6.0-177-gd265c3c" +"packageVersion": "v0.6.0-181-g3a265a9" } From 15229788d4fff0757bcd4ddbb82802efc100396a Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 20 Jun 2018 03:03:54 +0000 Subject: [PATCH 023/521] Client Python update by Travis Build 3789 --- README.md | 2 +- docs/V1Interface.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_interface.py | 30 +++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 85dff567..c1980b1b 100644 --- a/README.md +++ b/README.md @@ -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: v0.6.0-181-g3a265a9 +- Package version: v0.6.0-188-gb0a4d7c - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Interface.md b/docs/V1Interface.md index b4afe94b..41fbe833 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **bridge** | [**V1InterfaceBridge**](V1InterfaceBridge.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 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index c90da556..a2b83f0e 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.6.0-181-g3a265a9" + release_note="Auto-generated client v0.6.0-188-gb0a4d7c" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 2829e91c..92d25f33 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.6.0-181-g3a265a9/python' + self.user_agent = 'Swagger-Codegen/v0.6.0-188-gb0a4d7c/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 9d629d1d..de10914f 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.6.0-181-g3a265a9".\ + "SDK Package Version: v0.6.0-188-gb0a4d7c".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_interface.py b/kubevirt/models/v1_interface.py index fd200d44..365afa23 100644 --- a/kubevirt/models/v1_interface.py +++ b/kubevirt/models/v1_interface.py @@ -32,24 +32,29 @@ class V1Interface(object): """ swagger_types = { 'bridge': 'V1InterfaceBridge', + 'model': 'str', 'name': 'str' } attribute_map = { 'bridge': 'bridge', + 'model': 'model', 'name': 'name' } - def __init__(self, bridge=None, name=None): + def __init__(self, bridge=None, model=None, name=None): """ V1Interface - a model defined in Swagger """ self._bridge = None + self._model = None self._name = None if bridge is not None: self.bridge = bridge + if model is not None: + self.model = model self.name = name @property @@ -73,6 +78,29 @@ def bridge(self, bridge): self._bridge = bridge + @property + def model(self): + """ + Gets the model of this V1Interface. + Interface model. One of: e1000, e1000e, ne2k_pci, pcnet, rtl8139, virtio. Defaults to virtio. + + :return: The model of this V1Interface. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """ + Sets the model of this V1Interface. + Interface model. One of: e1000, e1000e, ne2k_pci, pcnet, rtl8139, virtio. Defaults to virtio. + + :param model: The model of this V1Interface. + :type: str + """ + + self._model = model + @property def name(self): """ diff --git a/setup.py b/setup.py index 1dc76267..3b7962fc 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.6.0-181-g3a265a9" +VERSION = "v0.6.0-188-gb0a4d7c" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 5df3f49c..9a2a36d6 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.6.0-181-g3a265a9" +"packageVersion": "v0.6.0-188-gb0a4d7c" } From 9d1ce8f964b68bed00ff02e45317587ad7fa4fbf Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 20 Jun 2018 20:16:26 +0000 Subject: [PATCH 024/521] Client Python update by Travis Build 3805 --- README.md | 5 +- docs/V1Interface.md | 3 +- docs/V1InterfaceSlirp.md | 10 ++ docs/V1Network.md | 2 +- docs/V1PodNetwork.md | 10 ++ docs/V1Port.md | 13 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 27 ++-- kubevirt/__init__.py | 3 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 3 + kubevirt/models/v1_interface.py | 36 ++++- kubevirt/models/v1_interface_slirp.py | 125 ++++++++++++++++ kubevirt/models/v1_network.py | 4 +- kubevirt/models/v1_pod_network.py | 125 ++++++++++++++++ kubevirt/models/v1_port.py | 202 ++++++++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_interface_slirp.py | 44 ++++++ test/test_v1_pod_network.py | 44 ++++++ test/test_v1_port.py | 44 ++++++ 22 files changed, 677 insertions(+), 33 deletions(-) create mode 100644 docs/V1InterfaceSlirp.md create mode 100644 docs/V1PodNetwork.md create mode 100644 docs/V1Port.md create mode 100644 kubevirt/models/v1_interface_slirp.py create mode 100644 kubevirt/models/v1_pod_network.py create mode 100644 kubevirt/models/v1_port.py create mode 100644 test/test_v1_interface_slirp.py create mode 100644 test/test_v1_pod_network.py create mode 100644 test/test_v1_port.py diff --git a/README.md b/README.md index c1980b1b..231bd947 100644 --- a/README.md +++ b/README.md @@ -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: v0.6.0-188-gb0a4d7c +- Package version: v0.6.0-216-gde9cf1c - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -166,6 +166,7 @@ Class | Method | HTTP request | Description - [V1Initializer](docs/V1Initializer.md) - [V1Initializers](docs/V1Initializers.md) - [V1Interface](docs/V1Interface.md) + - [V1InterfaceSlirp](docs/V1InterfaceSlirp.md) - [V1KVMTimer](docs/V1KVMTimer.md) - [V1LabelSelector](docs/V1LabelSelector.md) - [V1LabelSelectorRequirement](docs/V1LabelSelectorRequirement.md) @@ -186,6 +187,8 @@ Class | Method | HTTP request | Description - [V1PodAffinity](docs/V1PodAffinity.md) - [V1PodAffinityTerm](docs/V1PodAffinityTerm.md) - [V1PodAntiAffinity](docs/V1PodAntiAffinity.md) + - [V1PodNetwork](docs/V1PodNetwork.md) + - [V1Port](docs/V1Port.md) - [V1Preconditions](docs/V1Preconditions.md) - [V1PreferredSchedulingTerm](docs/V1PreferredSchedulingTerm.md) - [V1RTCTimer](docs/V1RTCTimer.md) diff --git a/docs/V1Interface.md b/docs/V1Interface.md index 41fbe833..15600e10 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **bridge** | [**V1InterfaceBridge**](V1InterfaceBridge.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 | +**name** | **str** | Logical name of the interface as well as a reference to the associated networks. Must match the Name of a Network. | +**slirp** | [**V1InterfaceSlirp**](V1InterfaceSlirp.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1InterfaceSlirp.md b/docs/V1InterfaceSlirp.md new file mode 100644 index 00000000..a36ec8c0 --- /dev/null +++ b/docs/V1InterfaceSlirp.md @@ -0,0 +1,10 @@ +# V1InterfaceSlirp + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ports** | [**list[V1Port]**](V1Port.md) | List of ports to be forwarded to the virtual machine. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Network.md b/docs/V1Network.md index 36fe3c16..541c1e8d 100644 --- a/docs/V1Network.md +++ b/docs/V1Network.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Network name Must be a DNS_LABEL and unique within the vm. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | +**name** | **str** | Network name. Must be a DNS_LABEL and unique within the vm. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | **pod** | [**V1PodNetwork**](V1PodNetwork.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1PodNetwork.md b/docs/V1PodNetwork.md new file mode 100644 index 00000000..14ef98c9 --- /dev/null +++ b/docs/V1PodNetwork.md @@ -0,0 +1,10 @@ +# V1PodNetwork + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**vm_network_cidr** | **str** | CIDR for vm network. Default 10.0.2.0/24 if not specified. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Port.md b/docs/V1Port.md new file mode 100644 index 00000000..1e49ddf6 --- /dev/null +++ b/docs/V1Port.md @@ -0,0 +1,13 @@ +# V1Port + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**pod_port** | **int** | | [optional] +**port** | **int** | | +**protocol** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index a2b83f0e..f456adfb 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.6.0-188-gb0a4d7c" + release_note="Auto-generated client v0.6.0-216-gde9cf1c" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index ca167dcc..bc55ee71 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -119,6 +119,9 @@ [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_interface.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Interface.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_interface_slirp.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface_slirp.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InterfaceSlirp.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_kvm_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kvm_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KVMTimer.md @@ -179,6 +182,12 @@ [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_pod_anti_affinity.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pod_anti_affinity.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PodAntiAffinity.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_pod_network.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pod_network.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PodNetwork.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_port.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_port.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Port.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_preconditions.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_preconditions.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Preconditions.md @@ -402,24 +411,6 @@ [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_group_1` [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_resources_0` [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 56767842..9cf90165 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -53,6 +53,7 @@ from .models.v1_initializer import V1Initializer from .models.v1_initializers import V1Initializers from .models.v1_interface import V1Interface +from .models.v1_interface_slirp import V1InterfaceSlirp from .models.v1_kvm_timer import V1KVMTimer from .models.v1_label_selector import V1LabelSelector from .models.v1_label_selector_requirement import V1LabelSelectorRequirement @@ -73,6 +74,8 @@ from .models.v1_pod_affinity import V1PodAffinity from .models.v1_pod_affinity_term import V1PodAffinityTerm from .models.v1_pod_anti_affinity import V1PodAntiAffinity +from .models.v1_pod_network import V1PodNetwork +from .models.v1_port import V1Port from .models.v1_preconditions import V1Preconditions from .models.v1_preferred_scheduling_term import V1PreferredSchedulingTerm from .models.v1_rtc_timer import V1RTCTimer diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 92d25f33..e3eaffe5 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.6.0-188-gb0a4d7c/python' + self.user_agent = 'Swagger-Codegen/v0.6.0-216-gde9cf1c/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index de10914f..21aea719 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.6.0-188-gb0a4d7c".\ + "SDK Package Version: v0.6.0-216-gde9cf1c".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 819fe962..5124fcf9 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -53,6 +53,7 @@ from .v1_initializer import V1Initializer from .v1_initializers import V1Initializers from .v1_interface import V1Interface +from .v1_interface_slirp import V1InterfaceSlirp from .v1_kvm_timer import V1KVMTimer from .v1_label_selector import V1LabelSelector from .v1_label_selector_requirement import V1LabelSelectorRequirement @@ -73,6 +74,8 @@ from .v1_pod_affinity import V1PodAffinity from .v1_pod_affinity_term import V1PodAffinityTerm from .v1_pod_anti_affinity import V1PodAntiAffinity +from .v1_pod_network import V1PodNetwork +from .v1_port import V1Port from .v1_preconditions import V1Preconditions from .v1_preferred_scheduling_term import V1PreferredSchedulingTerm from .v1_rtc_timer import V1RTCTimer diff --git a/kubevirt/models/v1_interface.py b/kubevirt/models/v1_interface.py index 365afa23..ef7e70ab 100644 --- a/kubevirt/models/v1_interface.py +++ b/kubevirt/models/v1_interface.py @@ -33,16 +33,18 @@ class V1Interface(object): swagger_types = { 'bridge': 'V1InterfaceBridge', 'model': 'str', - 'name': 'str' + 'name': 'str', + 'slirp': 'V1InterfaceSlirp' } attribute_map = { 'bridge': 'bridge', 'model': 'model', - 'name': 'name' + 'name': 'name', + 'slirp': 'slirp' } - def __init__(self, bridge=None, model=None, name=None): + def __init__(self, bridge=None, model=None, name=None, slirp=None): """ V1Interface - a model defined in Swagger """ @@ -50,12 +52,15 @@ def __init__(self, bridge=None, model=None, name=None): self._bridge = None self._model = None self._name = None + self._slirp = None if bridge is not None: self.bridge = bridge if model is not None: self.model = model self.name = name + if slirp is not None: + self.slirp = slirp @property def bridge(self): @@ -105,7 +110,7 @@ def model(self, model): def name(self): """ Gets the name of this V1Interface. - Logical name of the interface as well as a reference to the associated networks Must match the Name of a Network + Logical name of the interface as well as a reference to the associated networks. Must match the Name of a Network. :return: The name of this V1Interface. :rtype: str @@ -116,7 +121,7 @@ def name(self): def name(self, name): """ Sets the name of this V1Interface. - Logical name of the interface as well as a reference to the associated networks Must match the Name of a Network + Logical name of the interface as well as a reference to the associated networks. Must match the Name of a Network. :param name: The name of this V1Interface. :type: str @@ -126,6 +131,27 @@ def name(self, name): self._name = name + @property + def slirp(self): + """ + Gets the slirp of this V1Interface. + + :return: The slirp of this V1Interface. + :rtype: V1InterfaceSlirp + """ + return self._slirp + + @slirp.setter + def slirp(self, slirp): + """ + Sets the slirp of this V1Interface. + + :param slirp: The slirp of this V1Interface. + :type: V1InterfaceSlirp + """ + + self._slirp = slirp + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_interface_slirp.py b/kubevirt/models/v1_interface_slirp.py new file mode 100644 index 00000000..e0dde730 --- /dev/null +++ b/kubevirt/models/v1_interface_slirp.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1InterfaceSlirp(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'ports': 'list[V1Port]' + } + + attribute_map = { + 'ports': 'ports' + } + + def __init__(self, ports=None): + """ + V1InterfaceSlirp - a model defined in Swagger + """ + + self._ports = None + + if ports is not None: + self.ports = ports + + @property + def ports(self): + """ + Gets the ports of this V1InterfaceSlirp. + List of ports to be forwarded to the virtual machine. + + :return: The ports of this V1InterfaceSlirp. + :rtype: list[V1Port] + """ + return self._ports + + @ports.setter + def ports(self, ports): + """ + Sets the ports of this V1InterfaceSlirp. + List of ports to be forwarded to the virtual machine. + + :param ports: The ports of this V1InterfaceSlirp. + :type: list[V1Port] + """ + + self._ports = ports + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1InterfaceSlirp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_network.py b/kubevirt/models/v1_network.py index e4f4112b..7f920f2c 100644 --- a/kubevirt/models/v1_network.py +++ b/kubevirt/models/v1_network.py @@ -56,7 +56,7 @@ def __init__(self, name=None, pod=None): def name(self): """ Gets the name of this V1Network. - Network name Must be a DNS_LABEL and unique within the vm. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + Network name. Must be a DNS_LABEL and unique within the vm. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names :return: The name of this V1Network. :rtype: str @@ -67,7 +67,7 @@ def name(self): def name(self, name): """ Sets the name of this V1Network. - Network name Must be a DNS_LABEL and unique within the vm. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + Network name. Must be a DNS_LABEL and unique within the vm. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names :param name: The name of this V1Network. :type: str diff --git a/kubevirt/models/v1_pod_network.py b/kubevirt/models/v1_pod_network.py new file mode 100644 index 00000000..958b6f57 --- /dev/null +++ b/kubevirt/models/v1_pod_network.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PodNetwork(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'vm_network_cidr': 'str' + } + + attribute_map = { + 'vm_network_cidr': 'vmNetworkCIDR' + } + + def __init__(self, vm_network_cidr=None): + """ + V1PodNetwork - a model defined in Swagger + """ + + self._vm_network_cidr = None + + if vm_network_cidr is not None: + self.vm_network_cidr = vm_network_cidr + + @property + def vm_network_cidr(self): + """ + Gets the vm_network_cidr of this V1PodNetwork. + CIDR for vm network. Default 10.0.2.0/24 if not specified. + + :return: The vm_network_cidr of this V1PodNetwork. + :rtype: str + """ + return self._vm_network_cidr + + @vm_network_cidr.setter + def vm_network_cidr(self, vm_network_cidr): + """ + Sets the vm_network_cidr of this V1PodNetwork. + CIDR for vm network. Default 10.0.2.0/24 if not specified. + + :param vm_network_cidr: The vm_network_cidr of this V1PodNetwork. + :type: str + """ + + self._vm_network_cidr = vm_network_cidr + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1PodNetwork): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_port.py b/kubevirt/models/v1_port.py new file mode 100644 index 00000000..453f99a1 --- /dev/null +++ b/kubevirt/models/v1_port.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Port(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'pod_port': 'int', + 'port': 'int', + 'protocol': 'str' + } + + attribute_map = { + 'name': 'name', + 'pod_port': 'podPort', + 'port': 'port', + 'protocol': 'protocol' + } + + def __init__(self, name=None, pod_port=None, port=None, protocol=None): + """ + V1Port - a model defined in Swagger + """ + + self._name = None + self._pod_port = None + self._port = None + self._protocol = None + + if name is not None: + self.name = name + if pod_port is not None: + self.pod_port = pod_port + self.port = port + if protocol is not None: + self.protocol = protocol + + @property + def name(self): + """ + Gets the name of this V1Port. + + :return: The name of this V1Port. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1Port. + + :param name: The name of this V1Port. + :type: str + """ + + self._name = name + + @property + def pod_port(self): + """ + Gets the pod_port of this V1Port. + + :return: The pod_port of this V1Port. + :rtype: int + """ + return self._pod_port + + @pod_port.setter + def pod_port(self, pod_port): + """ + Sets the pod_port of this V1Port. + + :param pod_port: The pod_port of this V1Port. + :type: int + """ + + self._pod_port = pod_port + + @property + def port(self): + """ + Gets the port of this V1Port. + + :return: The port of this V1Port. + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """ + Sets the port of this V1Port. + + :param port: The port of this V1Port. + :type: int + """ + if port is None: + raise ValueError("Invalid value for `port`, must not be `None`") + + self._port = port + + @property + def protocol(self): + """ + Gets the protocol of this V1Port. + + :return: The protocol of this V1Port. + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """ + Sets the protocol of this V1Port. + + :param protocol: The protocol of this V1Port. + :type: str + """ + + self._protocol = protocol + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1Port): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 3b7962fc..f539d89d 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.6.0-188-gb0a4d7c" +VERSION = "v0.6.0-216-gde9cf1c" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 9a2a36d6..08862aa4 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.6.0-188-gb0a4d7c" +"packageVersion": "v0.6.0-216-gde9cf1c" } diff --git a/test/test_v1_interface_slirp.py b/test/test_v1_interface_slirp.py new file mode 100644 index 00000000..fa591291 --- /dev/null +++ b/test/test_v1_interface_slirp.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_interface_slirp import V1InterfaceSlirp + + +class TestV1InterfaceSlirp(unittest.TestCase): + """ V1InterfaceSlirp unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1InterfaceSlirp(self): + """ + Test V1InterfaceSlirp + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_interface_slirp.V1InterfaceSlirp() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_pod_network.py b/test/test_v1_pod_network.py new file mode 100644 index 00000000..28ad499f --- /dev/null +++ b/test/test_v1_pod_network.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_pod_network import V1PodNetwork + + +class TestV1PodNetwork(unittest.TestCase): + """ V1PodNetwork unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PodNetwork(self): + """ + Test V1PodNetwork + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_pod_network.V1PodNetwork() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_port.py b/test/test_v1_port.py new file mode 100644 index 00000000..2a119c01 --- /dev/null +++ b/test/test_v1_port.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_port import V1Port + + +class TestV1Port(unittest.TestCase): + """ V1Port unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Port(self): + """ + Test V1Port + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_port.V1Port() + pass + + +if __name__ == '__main__': + unittest.main() From 96dbd0da9fd04dbe0fa56c89b0b2d7bdcc2a090e Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 21 Jun 2018 10:29:49 +0000 Subject: [PATCH 025/521] Client Python update by Travis Build 3831 --- README.md | 2 +- docs/V1CDRomTarget.md | 6 ++-- docs/V1Clock.md | 4 +-- docs/V1CloudInitNoCloudSource.md | 6 ++-- docs/V1Devices.md | 6 ++-- docs/V1Disk.md | 10 +++--- docs/V1DiskTarget.md | 4 +-- docs/V1DomainPresetSpec.md | 6 ++-- docs/V1DomainSpec.md | 6 ++-- docs/V1FeatureAPIC.md | 4 +-- docs/V1FeatureHyperv.md | 18 +++++----- docs/V1FeatureSpinlocks.md | 4 +-- docs/V1FeatureState.md | 2 +- docs/V1FeatureVendorID.md | 4 +-- docs/V1Features.md | 6 ++-- docs/V1Firmware.md | 2 +- docs/V1FloppyTarget.md | 4 +-- docs/V1HPETTimer.md | 4 +-- docs/V1HypervTimer.md | 2 +- docs/V1I6300ESBWatchdog.md | 2 +- docs/V1KVMTimer.md | 2 +- docs/V1LunTarget.md | 4 +-- docs/V1PITTimer.md | 4 +-- docs/V1RTCTimer.md | 6 ++-- docs/V1RegistryDiskSource.md | 2 +- docs/V1Volume.md | 4 +-- docs/V1Watchdog.md | 4 +-- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_cd_rom_target.py | 12 +++---- kubevirt/models/v1_clock.py | 8 ++--- .../models/v1_cloud_init_no_cloud_source.py | 12 +++---- kubevirt/models/v1_devices.py | 12 +++---- kubevirt/models/v1_disk.py | 20 +++++------ kubevirt/models/v1_disk_target.py | 8 ++--- kubevirt/models/v1_domain_preset_spec.py | 12 +++---- kubevirt/models/v1_domain_spec.py | 12 +++---- kubevirt/models/v1_feature_apic.py | 8 ++--- kubevirt/models/v1_feature_hyperv.py | 36 +++++++++---------- kubevirt/models/v1_feature_spinlocks.py | 8 ++--- kubevirt/models/v1_feature_state.py | 4 +-- kubevirt/models/v1_feature_vendor_id.py | 8 ++--- kubevirt/models/v1_features.py | 12 +++---- kubevirt/models/v1_firmware.py | 4 +-- kubevirt/models/v1_floppy_target.py | 8 ++--- kubevirt/models/v1_hpet_timer.py | 8 ++--- kubevirt/models/v1_hyperv_timer.py | 4 +-- kubevirt/models/v1_i6300_esb_watchdog.py | 4 +-- kubevirt/models/v1_kvm_timer.py | 4 +-- kubevirt/models/v1_lun_target.py | 8 ++--- kubevirt/models/v1_pit_timer.py | 8 ++--- kubevirt/models/v1_registry_disk_source.py | 4 +-- kubevirt/models/v1_rtc_timer.py | 12 +++---- kubevirt/models/v1_volume.py | 8 ++--- kubevirt/models/v1_watchdog.py | 8 ++--- setup.py | 2 +- swagger-codegen-config.json | 2 +- 58 files changed, 195 insertions(+), 195 deletions(-) diff --git a/README.md b/README.md index 231bd947..3400a01b 100644 --- a/README.md +++ b/README.md @@ -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: v0.6.0-216-gde9cf1c +- Package version: v0.6.0-241-gd3811bd - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1CDRomTarget.md b/docs/V1CDRomTarget.md index e6e33170..48b3bab0 100644 --- a/docs/V1CDRomTarget.md +++ b/docs/V1CDRomTarget.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bus** | **str** | Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, ide | [optional] -**readonly** | **bool** | ReadOnly Defaults to true | [optional] -**tray** | **str** | Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\" Defaults to closed +optional | [optional] +**bus** | **str** | Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, ide. | [optional] +**readonly** | **bool** | ReadOnly. Defaults to true. | [optional] +**tray** | **str** | Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\". Defaults to closed. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Clock.md b/docs/V1Clock.md index 323fb555..690c807a 100644 --- a/docs/V1Clock.md +++ b/docs/V1Clock.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**timer** | [**V1Timer**](V1Timer.md) | Timer specifies whih timers are attached to the vmi | -**timezone** | [**V1ClockOffsetTimezone**](V1ClockOffsetTimezone.md) | Timezone sets the guest clock to the specified timezone. Zone name follows the TZ environment variable format (e.g. 'America/New_York') | [optional] +**timer** | [**V1Timer**](V1Timer.md) | Timer specifies whih timers are attached to the vmi. | +**timezone** | [**V1ClockOffsetTimezone**](V1ClockOffsetTimezone.md) | Timezone sets the guest clock to the specified timezone. Zone name follows the TZ environment variable format (e.g. 'America/New_York'). | [optional] **utc** | [**V1ClockOffsetUTC**](V1ClockOffsetUTC.md) | UTC sets the guest clock to UTC on each boot. If an offset is specified, guest changes to the clock will be kept during reboots and are not reset. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1CloudInitNoCloudSource.md b/docs/V1CloudInitNoCloudSource.md index 3453ab9a..c02bfe37 100644 --- a/docs/V1CloudInitNoCloudSource.md +++ b/docs/V1CloudInitNoCloudSource.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | UserDataSecretRef references a k8s secret that contains NoCloud userdata + optional | [optional] -**user_data** | **str** | UserData contains NoCloud inline cloud-init userdata + optional | [optional] -**user_data_base64** | **str** | UserDataBase64 contains NoCloud cloud-init userdata as a base64 encoded string + optional | [optional] +**secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | UserDataSecretRef references a k8s secret that contains NoCloud userdata. + optional | [optional] +**user_data** | **str** | UserData contains NoCloud inline cloud-init userdata. + optional | [optional] +**user_data_base64** | **str** | UserDataBase64 contains NoCloud cloud-init userdata as a base64 encoded string. + optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index 3e5e178f..8bb011e6 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**disks** | [**list[V1Disk]**](V1Disk.md) | Disks describes disks, cdroms, floppy and luns which are connected to the vmi | [optional] -**interfaces** | [**list[V1Interface]**](V1Interface.md) | Interfaces describe network interfaces which are added to the vm | [optional] -**watchdog** | [**V1Watchdog**](V1Watchdog.md) | Watchdog describes a watchdog device which can be added to the vmi | [optional] +**disks** | [**list[V1Disk]**](V1Disk.md) | Disks describes disks, cdroms, floppy and luns which are connected to the vmi. | [optional] +**interfaces** | [**list[V1Interface]**](V1Interface.md) | Interfaces describe network interfaces which are added to the vm. | [optional] +**watchdog** | [**V1Watchdog**](V1Watchdog.md) | Watchdog describes a watchdog device which can be added to the vmi. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Disk.md b/docs/V1Disk.md index 8beccc15..48ef24b7 100644 --- a/docs/V1Disk.md +++ b/docs/V1Disk.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **boot_order** | **int** | BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Disks without a boot order are not tried if a disk with a boot order exists. +optional | [optional] -**cdrom** | [**V1CDRomTarget**](V1CDRomTarget.md) | Attach a volume as a cdrom to the vmi | [optional] -**disk** | [**V1DiskTarget**](V1DiskTarget.md) | Attach a volume as a disk to the vmi | [optional] -**floppy** | [**V1FloppyTarget**](V1FloppyTarget.md) | Attach a volume as a floppy to the vmi | [optional] -**lun** | [**V1LunTarget**](V1LunTarget.md) | Attach a volume as a LUN to the vmi | [optional] +**cdrom** | [**V1CDRomTarget**](V1CDRomTarget.md) | Attach a volume as a cdrom to the vmi. | [optional] +**disk** | [**V1DiskTarget**](V1DiskTarget.md) | Attach a volume as a disk to the vmi. | [optional] +**floppy** | [**V1FloppyTarget**](V1FloppyTarget.md) | Attach a volume as a floppy to the vmi. | [optional] +**lun** | [**V1LunTarget**](V1LunTarget.md) | Attach a volume as a LUN to the vmi. | [optional] **name** | **str** | Name is the device name | -**volume_name** | **str** | Name of the volume which is referenced Must match the Name of a Volume. | +**volume_name** | **str** | Name of the volume which is referenced. Must match the Name of a Volume. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1DiskTarget.md b/docs/V1DiskTarget.md index f193df28..ff83d649 100644 --- a/docs/V1DiskTarget.md +++ b/docs/V1DiskTarget.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bus** | **str** | Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, ide | [optional] -**readonly** | **bool** | ReadOnly Defaults to false | [optional] +**bus** | **str** | Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, ide. | [optional] +**readonly** | **bool** | ReadOnly. Defaults to false. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1DomainPresetSpec.md b/docs/V1DomainPresetSpec.md index 282b00c0..856dad43 100644 --- a/docs/V1DomainPresetSpec.md +++ b/docs/V1DomainPresetSpec.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes **clock** | [**V1Clock**](V1Clock.md) | Clock sets the clock and timers of the vmi. +optional | [optional] **cpu** | [**V1CPU**](V1CPU.md) | CPU allow specified the detailed CPU topology inside the vmi. +optional | [optional] **devices** | [**V1Devices**](V1Devices.md) | Devices allows adding disks, network interfaces, ... +optional | [optional] -**features** | [**V1Features**](V1Features.md) | Features like acpi, apic, hyperv +optional | [optional] -**firmware** | [**V1Firmware**](V1Firmware.md) | Firmware +optional | [optional] -**machine** | [**V1Machine**](V1Machine.md) | Machine type +optional | [optional] +**features** | [**V1Features**](V1Features.md) | Features like acpi, apic, hyperv. +optional | [optional] +**firmware** | [**V1Firmware**](V1Firmware.md) | Firmware. +optional | [optional] +**machine** | [**V1Machine**](V1Machine.md) | Machine type. +optional | [optional] **memory** | [**V1Memory**](V1Memory.md) | Memory allow specifying the VMI memory features. +optional | [optional] **resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | Resources describes the Compute Resources required by this vmi. | [optional] diff --git a/docs/V1DomainSpec.md b/docs/V1DomainSpec.md index 728ac4c7..26f66cc3 100644 --- a/docs/V1DomainSpec.md +++ b/docs/V1DomainSpec.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes **clock** | [**V1Clock**](V1Clock.md) | Clock sets the clock and timers of the vmi. +optional | [optional] **cpu** | [**V1CPU**](V1CPU.md) | CPU allow specified the detailed CPU topology inside the vmi. +optional | [optional] **devices** | [**V1Devices**](V1Devices.md) | Devices allows adding disks, network interfaces, ... | -**features** | [**V1Features**](V1Features.md) | Features like acpi, apic, hyperv +optional | [optional] -**firmware** | [**V1Firmware**](V1Firmware.md) | Firmware +optional | [optional] -**machine** | [**V1Machine**](V1Machine.md) | Machine type +optional | [optional] +**features** | [**V1Features**](V1Features.md) | Features like acpi, apic, hyperv. +optional | [optional] +**firmware** | [**V1Firmware**](V1Firmware.md) | Firmware. +optional | [optional] +**machine** | [**V1Machine**](V1Machine.md) | Machine type. +optional | [optional] **memory** | [**V1Memory**](V1Memory.md) | Memory allow specifying the VMI memory features. +optional | [optional] **resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | Resources describes the Compute Resources required by this vmi. | [optional] diff --git a/docs/V1FeatureAPIC.md b/docs/V1FeatureAPIC.md index cd15be33..c3307cc6 100644 --- a/docs/V1FeatureAPIC.md +++ b/docs/V1FeatureAPIC.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**enabled** | **bool** | Enabled determines if the feature should be enabled or disabled on the guest Defaults to true +optional | [optional] -**end_of_interrupt** | **bool** | EndOfInterrupt enables the end of interrupt notification in the guest Defaults to false +optional | [optional] +**enabled** | **bool** | Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. +optional | [optional] +**end_of_interrupt** | **bool** | EndOfInterrupt enables the end of interrupt notification in the guest. Defaults to false. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1FeatureHyperv.md b/docs/V1FeatureHyperv.md index a1b204ed..9b62c8fd 100644 --- a/docs/V1FeatureHyperv.md +++ b/docs/V1FeatureHyperv.md @@ -3,15 +3,15 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**relaxed** | [**V1FeatureState**](V1FeatureState.md) | Relaxed relaxes constraints on timer Defaults to the machine type setting +optional | [optional] -**reset** | [**V1FeatureState**](V1FeatureState.md) | Reset enables Hyperv reboot/reset for the vmi Defaults to the machine type setting +optional | [optional] -**runtime** | [**V1FeatureState**](V1FeatureState.md) | Runtime Defaults to the machine type setting +optional | [optional] -**spinlocks** | [**V1FeatureSpinlocks**](V1FeatureSpinlocks.md) | Spinlocks indicates if spinlocks should be made available to the guest +optional | [optional] -**synic** | [**V1FeatureState**](V1FeatureState.md) | SyNIC enable Synthetic Interrupt Controller Defaults to the machine type setting +optional | [optional] -**synictimer** | [**V1FeatureState**](V1FeatureState.md) | SyNICTimer enable Synthetic Interrupt Controller timer Defaults to the machine type setting +optional | [optional] -**vapic** | [**V1FeatureState**](V1FeatureState.md) | VAPIC indicates whether virtual APIC is enabled Defaults to the machine type setting +optional | [optional] -**vendorid** | [**V1FeatureVendorID**](V1FeatureVendorID.md) | VendorID allows setting the hypervisor vendor id Defaults to the machine type setting +optional | [optional] -**vpindex** | [**V1FeatureState**](V1FeatureState.md) | VPIndex enables the Virtual Processor Index to help windows identifying virtual processors Defaults to the machine type setting +optional | [optional] +**relaxed** | [**V1FeatureState**](V1FeatureState.md) | Relaxed relaxes constraints on timer. Defaults to the machine type setting. +optional | [optional] +**reset** | [**V1FeatureState**](V1FeatureState.md) | Reset enables Hyperv reboot/reset for the vmi. Defaults to the machine type setting. +optional | [optional] +**runtime** | [**V1FeatureState**](V1FeatureState.md) | Runtime. Defaults to the machine type setting. +optional | [optional] +**spinlocks** | [**V1FeatureSpinlocks**](V1FeatureSpinlocks.md) | Spinlocks indicates if spinlocks should be made available to the guest. +optional | [optional] +**synic** | [**V1FeatureState**](V1FeatureState.md) | SyNIC enable Synthetic Interrupt Controller. Defaults to the machine type setting. +optional | [optional] +**synictimer** | [**V1FeatureState**](V1FeatureState.md) | SyNICTimer enable Synthetic Interrupt Controller timer. Defaults to the machine type setting. +optional | [optional] +**vapic** | [**V1FeatureState**](V1FeatureState.md) | VAPIC indicates whether virtual APIC is enabled. Defaults to the machine type setting. +optional | [optional] +**vendorid** | [**V1FeatureVendorID**](V1FeatureVendorID.md) | VendorID allows setting the hypervisor vendor id. Defaults to the machine type setting. +optional | [optional] +**vpindex** | [**V1FeatureState**](V1FeatureState.md) | VPIndex enables the Virtual Processor Index to help windows identifying virtual processors. Defaults to the machine type setting. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1FeatureSpinlocks.md b/docs/V1FeatureSpinlocks.md index 1014e4f0..3254b54e 100644 --- a/docs/V1FeatureSpinlocks.md +++ b/docs/V1FeatureSpinlocks.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**enabled** | **bool** | Enabled determines if the feature should be enabled or disabled on the guest Defaults to true +optional | [optional] -**spinlocks** | **int** | Retries indicates the number of retries Must be a value greater or equal 4096 Defaults to 4096 +optional | [optional] +**enabled** | **bool** | Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. +optional | [optional] +**spinlocks** | **int** | Retries indicates the number of retries. Must be a value greater or equal 4096. Defaults to 4096. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1FeatureState.md b/docs/V1FeatureState.md index 10264e4d..ec293129 100644 --- a/docs/V1FeatureState.md +++ b/docs/V1FeatureState.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**enabled** | **bool** | Enabled determines if the feature should be enabled or disabled on the guest Defaults to true +optional | [optional] +**enabled** | **bool** | Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1FeatureVendorID.md b/docs/V1FeatureVendorID.md index f3bbd643..c41349a5 100644 --- a/docs/V1FeatureVendorID.md +++ b/docs/V1FeatureVendorID.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**enabled** | **bool** | Enabled determines if the feature should be enabled or disabled on the guest Defaults to true +optional | [optional] -**vendorid** | **str** | VendorID sets the hypervisor vendor id, visible to the vmi String up to twelve characters | [optional] +**enabled** | **bool** | Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. +optional | [optional] +**vendorid** | **str** | VendorID sets the hypervisor vendor id, visible to the vmi. String up to twelve characters. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Features.md b/docs/V1Features.md index ce27ea3a..e260cee3 100644 --- a/docs/V1Features.md +++ b/docs/V1Features.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**acpi** | [**V1FeatureState**](V1FeatureState.md) | ACPI enables/disables ACPI insidejsondata guest Defaults to enabled +optional | [optional] -**apic** | [**V1FeatureAPIC**](V1FeatureAPIC.md) | Defaults to the machine type setting +optional | [optional] -**hyperv** | [**V1FeatureHyperv**](V1FeatureHyperv.md) | Defaults to the machine type setting +optional | [optional] +**acpi** | [**V1FeatureState**](V1FeatureState.md) | ACPI enables/disables ACPI insidejsondata guest. Defaults to enabled. +optional | [optional] +**apic** | [**V1FeatureAPIC**](V1FeatureAPIC.md) | Defaults to the machine type setting. +optional | [optional] +**hyperv** | [**V1FeatureHyperv**](V1FeatureHyperv.md) | Defaults to the machine type setting. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Firmware.md b/docs/V1Firmware.md index c117648b..a833e3c7 100644 --- a/docs/V1Firmware.md +++ b/docs/V1Firmware.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**uuid** | **str** | UUID reported by the vmi bios Defaults to a random generated uid | [optional] +**uuid** | **str** | UUID reported by the vmi bios. Defaults to a random generated uid. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1FloppyTarget.md b/docs/V1FloppyTarget.md index 3a1deb47..04dafe27 100644 --- a/docs/V1FloppyTarget.md +++ b/docs/V1FloppyTarget.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**readonly** | **bool** | ReadOnly Defaults to false | [optional] -**tray** | **str** | Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\" Defaults to closed +optional | [optional] +**readonly** | **bool** | ReadOnly. Defaults to false. | [optional] +**tray** | **str** | Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\". Defaults to closed. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1HPETTimer.md b/docs/V1HPETTimer.md index 6e986144..777e2693 100644 --- a/docs/V1HPETTimer.md +++ b/docs/V1HPETTimer.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**present** | **bool** | Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true +optional | [optional] -**tick_policy** | **str** | TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest One of \"delay\", \"catchup\", \"merge\", \"discard\" | [optional] +**present** | **bool** | Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional | [optional] +**tick_policy** | **str** | TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest. One of \"delay\", \"catchup\", \"merge\", \"discard\". | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1HypervTimer.md b/docs/V1HypervTimer.md index a5b9412e..675585f8 100644 --- a/docs/V1HypervTimer.md +++ b/docs/V1HypervTimer.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**present** | **bool** | Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true +optional | [optional] +**present** | **bool** | Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1I6300ESBWatchdog.md b/docs/V1I6300ESBWatchdog.md index 2a10b07d..04a9ac5f 100644 --- a/docs/V1I6300ESBWatchdog.md +++ b/docs/V1I6300ESBWatchdog.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**action** | **str** | The action to take. Valid values are poweroff, reset, shutdown. Defaults to reset | [optional] +**action** | **str** | The action to take. Valid values are poweroff, reset, shutdown. Defaults to reset. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1KVMTimer.md b/docs/V1KVMTimer.md index 13ea5af7..4ca3c9db 100644 --- a/docs/V1KVMTimer.md +++ b/docs/V1KVMTimer.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**present** | **bool** | Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true +optional | [optional] +**present** | **bool** | Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1LunTarget.md b/docs/V1LunTarget.md index a86c200f..cdcbeafd 100644 --- a/docs/V1LunTarget.md +++ b/docs/V1LunTarget.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bus** | **str** | Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, ide | [optional] -**readonly** | **bool** | ReadOnly Defaults to false | [optional] +**bus** | **str** | Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, ide. | [optional] +**readonly** | **bool** | ReadOnly. Defaults to false. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1PITTimer.md b/docs/V1PITTimer.md index a0c86f60..da82224d 100644 --- a/docs/V1PITTimer.md +++ b/docs/V1PITTimer.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**present** | **bool** | Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true +optional | [optional] -**tick_policy** | **str** | TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest One of \"delay\", \"catchup\", \"discard\" | [optional] +**present** | **bool** | Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional | [optional] +**tick_policy** | **str** | TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest. One of \"delay\", \"catchup\", \"discard\". | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1RTCTimer.md b/docs/V1RTCTimer.md index 861af88e..a0b2c73c 100644 --- a/docs/V1RTCTimer.md +++ b/docs/V1RTCTimer.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**present** | **bool** | Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true +optional | [optional] -**tick_policy** | **str** | TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest One of \"delay\", \"catchup\" | [optional] -**track** | **str** | Track the guest or the wall clock | [optional] +**present** | **bool** | Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional | [optional] +**tick_policy** | **str** | TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest. One of \"delay\", \"catchup\". | [optional] +**track** | **str** | Track the guest or the wall clock. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1RegistryDiskSource.md b/docs/V1RegistryDiskSource.md index 0d0d0f2e..99b23ae3 100644 --- a/docs/V1RegistryDiskSource.md +++ b/docs/V1RegistryDiskSource.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**image** | **str** | Image is the name of the image with the embedded disk | +**image** | **str** | Image is the name of the image with the embedded disk. | **image_pull_secret** | **str** | ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Volume.md b/docs/V1Volume.md index 20f48a18..eb72e744 100644 --- a/docs/V1Volume.md +++ b/docs/V1Volume.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cloud_init_no_cloud** | [**V1CloudInitNoCloudSource**](V1CloudInitNoCloudSource.md) | CloudInitNoCloud represents a cloud-init NoCloud user-data source. The NoCloud data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html +optional | [optional] -**empty_disk** | [**V1EmptyDiskSource**](V1EmptyDiskSource.md) | EmptyDisk represents a temporary disk which shares the vmis lifecycle More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html +optional | [optional] +**empty_disk** | [**V1EmptyDiskSource**](V1EmptyDiskSource.md) | EmptyDisk represents a temporary disk which shares the vmis lifecycle. More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html +optional | [optional] **ephemeral** | [**V1EphemeralVolumeSource**](V1EphemeralVolumeSource.md) | Ephemeral is a special volume source that \"wraps\" specified source and provides copy-on-write image on top of it. +optional | [optional] **name** | **str** | Volume's name. Must be a DNS_LABEL and unique within the vmi. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | **persistent_volume_claim** | [**V1PersistentVolumeClaimVolumeSource**](V1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims +optional | [optional] -**registry_disk** | [**V1RegistryDiskSource**](V1RegistryDiskSource.md) | RegistryDisk references a docker image, embedding a qcow or raw disk More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html +optional | [optional] +**registry_disk** | [**V1RegistryDiskSource**](V1RegistryDiskSource.md) | RegistryDisk references a docker image, embedding a qcow or raw disk. More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Watchdog.md b/docs/V1Watchdog.md index cb091a6f..4efce81b 100644 --- a/docs/V1Watchdog.md +++ b/docs/V1Watchdog.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**i6300esb** | [**V1I6300ESBWatchdog**](V1I6300ESBWatchdog.md) | i6300esb watchdog device +optional | [optional] -**name** | **str** | Name of the watchdog | +**i6300esb** | [**V1I6300ESBWatchdog**](V1I6300ESBWatchdog.md) | i6300esb watchdog device. +optional | [optional] +**name** | **str** | Name of the watchdog. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index f456adfb..d3559919 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.6.0-216-gde9cf1c" + release_note="Auto-generated client v0.6.0-241-gd3811bd" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index e3eaffe5..541752c8 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.6.0-216-gde9cf1c/python' + self.user_agent = 'Swagger-Codegen/v0.6.0-241-gd3811bd/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 21aea719..03004062 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.6.0-216-gde9cf1c".\ + "SDK Package Version: v0.6.0-241-gd3811bd".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_cd_rom_target.py b/kubevirt/models/v1_cd_rom_target.py index f93ccfd3..7168a4b2 100644 --- a/kubevirt/models/v1_cd_rom_target.py +++ b/kubevirt/models/v1_cd_rom_target.py @@ -62,7 +62,7 @@ def __init__(self, bus=None, readonly=None, tray=None): def bus(self): """ Gets the bus of this V1CDRomTarget. - Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, ide + Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, ide. :return: The bus of this V1CDRomTarget. :rtype: str @@ -73,7 +73,7 @@ def bus(self): def bus(self, bus): """ Sets the bus of this V1CDRomTarget. - Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, ide + Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, ide. :param bus: The bus of this V1CDRomTarget. :type: str @@ -85,7 +85,7 @@ def bus(self, bus): def readonly(self): """ Gets the readonly of this V1CDRomTarget. - ReadOnly Defaults to true + ReadOnly. Defaults to true. :return: The readonly of this V1CDRomTarget. :rtype: bool @@ -96,7 +96,7 @@ def readonly(self): def readonly(self, readonly): """ Sets the readonly of this V1CDRomTarget. - ReadOnly Defaults to true + ReadOnly. Defaults to true. :param readonly: The readonly of this V1CDRomTarget. :type: bool @@ -108,7 +108,7 @@ def readonly(self, readonly): def tray(self): """ Gets the tray of this V1CDRomTarget. - Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\" Defaults to closed +optional + Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\". Defaults to closed. +optional :return: The tray of this V1CDRomTarget. :rtype: str @@ -119,7 +119,7 @@ def tray(self): def tray(self, tray): """ Sets the tray of this V1CDRomTarget. - Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\" Defaults to closed +optional + Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\". Defaults to closed. +optional :param tray: The tray of this V1CDRomTarget. :type: str diff --git a/kubevirt/models/v1_clock.py b/kubevirt/models/v1_clock.py index dec51a55..51f33a9f 100644 --- a/kubevirt/models/v1_clock.py +++ b/kubevirt/models/v1_clock.py @@ -61,7 +61,7 @@ def __init__(self, timer=None, timezone=None, utc=None): def timer(self): """ Gets the timer of this V1Clock. - Timer specifies whih timers are attached to the vmi + Timer specifies whih timers are attached to the vmi. :return: The timer of this V1Clock. :rtype: V1Timer @@ -72,7 +72,7 @@ def timer(self): def timer(self, timer): """ Sets the timer of this V1Clock. - Timer specifies whih timers are attached to the vmi + Timer specifies whih timers are attached to the vmi. :param timer: The timer of this V1Clock. :type: V1Timer @@ -86,7 +86,7 @@ def timer(self, timer): def timezone(self): """ Gets the timezone of this V1Clock. - Timezone sets the guest clock to the specified timezone. Zone name follows the TZ environment variable format (e.g. 'America/New_York') + Timezone sets the guest clock to the specified timezone. Zone name follows the TZ environment variable format (e.g. 'America/New_York'). :return: The timezone of this V1Clock. :rtype: V1ClockOffsetTimezone @@ -97,7 +97,7 @@ def timezone(self): def timezone(self, timezone): """ Sets the timezone of this V1Clock. - Timezone sets the guest clock to the specified timezone. Zone name follows the TZ environment variable format (e.g. 'America/New_York') + Timezone sets the guest clock to the specified timezone. Zone name follows the TZ environment variable format (e.g. 'America/New_York'). :param timezone: The timezone of this V1Clock. :type: V1ClockOffsetTimezone diff --git a/kubevirt/models/v1_cloud_init_no_cloud_source.py b/kubevirt/models/v1_cloud_init_no_cloud_source.py index 934702e1..60d5e83c 100644 --- a/kubevirt/models/v1_cloud_init_no_cloud_source.py +++ b/kubevirt/models/v1_cloud_init_no_cloud_source.py @@ -62,7 +62,7 @@ def __init__(self, secret_ref=None, user_data=None, user_data_base64=None): def secret_ref(self): """ Gets the secret_ref of this V1CloudInitNoCloudSource. - UserDataSecretRef references a k8s secret that contains NoCloud userdata + optional + UserDataSecretRef references a k8s secret that contains NoCloud userdata. + optional :return: The secret_ref of this V1CloudInitNoCloudSource. :rtype: V1LocalObjectReference @@ -73,7 +73,7 @@ def secret_ref(self): def secret_ref(self, secret_ref): """ Sets the secret_ref of this V1CloudInitNoCloudSource. - UserDataSecretRef references a k8s secret that contains NoCloud userdata + optional + UserDataSecretRef references a k8s secret that contains NoCloud userdata. + optional :param secret_ref: The secret_ref of this V1CloudInitNoCloudSource. :type: V1LocalObjectReference @@ -85,7 +85,7 @@ def secret_ref(self, secret_ref): def user_data(self): """ Gets the user_data of this V1CloudInitNoCloudSource. - UserData contains NoCloud inline cloud-init userdata + optional + UserData contains NoCloud inline cloud-init userdata. + optional :return: The user_data of this V1CloudInitNoCloudSource. :rtype: str @@ -96,7 +96,7 @@ def user_data(self): def user_data(self, user_data): """ Sets the user_data of this V1CloudInitNoCloudSource. - UserData contains NoCloud inline cloud-init userdata + optional + UserData contains NoCloud inline cloud-init userdata. + optional :param user_data: The user_data of this V1CloudInitNoCloudSource. :type: str @@ -108,7 +108,7 @@ def user_data(self, user_data): def user_data_base64(self): """ Gets the user_data_base64 of this V1CloudInitNoCloudSource. - UserDataBase64 contains NoCloud cloud-init userdata as a base64 encoded string + optional + UserDataBase64 contains NoCloud cloud-init userdata as a base64 encoded string. + optional :return: The user_data_base64 of this V1CloudInitNoCloudSource. :rtype: str @@ -119,7 +119,7 @@ def user_data_base64(self): def user_data_base64(self, user_data_base64): """ Sets the user_data_base64 of this V1CloudInitNoCloudSource. - UserDataBase64 contains NoCloud cloud-init userdata as a base64 encoded string + optional + UserDataBase64 contains NoCloud cloud-init userdata as a base64 encoded string. + optional :param user_data_base64: The user_data_base64 of this V1CloudInitNoCloudSource. :type: str diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index 970eb55f..685b5726 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -62,7 +62,7 @@ def __init__(self, disks=None, interfaces=None, watchdog=None): def disks(self): """ Gets the disks of this V1Devices. - Disks describes disks, cdroms, floppy and luns which are connected to the vmi + Disks describes disks, cdroms, floppy and luns which are connected to the vmi. :return: The disks of this V1Devices. :rtype: list[V1Disk] @@ -73,7 +73,7 @@ def disks(self): def disks(self, disks): """ Sets the disks of this V1Devices. - Disks describes disks, cdroms, floppy and luns which are connected to the vmi + Disks describes disks, cdroms, floppy and luns which are connected to the vmi. :param disks: The disks of this V1Devices. :type: list[V1Disk] @@ -85,7 +85,7 @@ def disks(self, disks): def interfaces(self): """ Gets the interfaces of this V1Devices. - Interfaces describe network interfaces which are added to the vm + Interfaces describe network interfaces which are added to the vm. :return: The interfaces of this V1Devices. :rtype: list[V1Interface] @@ -96,7 +96,7 @@ def interfaces(self): def interfaces(self, interfaces): """ Sets the interfaces of this V1Devices. - Interfaces describe network interfaces which are added to the vm + Interfaces describe network interfaces which are added to the vm. :param interfaces: The interfaces of this V1Devices. :type: list[V1Interface] @@ -108,7 +108,7 @@ def interfaces(self, interfaces): def watchdog(self): """ Gets the watchdog of this V1Devices. - Watchdog describes a watchdog device which can be added to the vmi + Watchdog describes a watchdog device which can be added to the vmi. :return: The watchdog of this V1Devices. :rtype: V1Watchdog @@ -119,7 +119,7 @@ def watchdog(self): def watchdog(self, watchdog): """ Sets the watchdog of this V1Devices. - Watchdog describes a watchdog device which can be added to the vmi + Watchdog describes a watchdog device which can be added to the vmi. :param watchdog: The watchdog of this V1Devices. :type: V1Watchdog diff --git a/kubevirt/models/v1_disk.py b/kubevirt/models/v1_disk.py index 4bc063d3..84cd2d83 100644 --- a/kubevirt/models/v1_disk.py +++ b/kubevirt/models/v1_disk.py @@ -103,7 +103,7 @@ def boot_order(self, boot_order): def cdrom(self): """ Gets the cdrom of this V1Disk. - Attach a volume as a cdrom to the vmi + Attach a volume as a cdrom to the vmi. :return: The cdrom of this V1Disk. :rtype: V1CDRomTarget @@ -114,7 +114,7 @@ def cdrom(self): def cdrom(self, cdrom): """ Sets the cdrom of this V1Disk. - Attach a volume as a cdrom to the vmi + Attach a volume as a cdrom to the vmi. :param cdrom: The cdrom of this V1Disk. :type: V1CDRomTarget @@ -126,7 +126,7 @@ def cdrom(self, cdrom): def disk(self): """ Gets the disk of this V1Disk. - Attach a volume as a disk to the vmi + Attach a volume as a disk to the vmi. :return: The disk of this V1Disk. :rtype: V1DiskTarget @@ -137,7 +137,7 @@ def disk(self): def disk(self, disk): """ Sets the disk of this V1Disk. - Attach a volume as a disk to the vmi + Attach a volume as a disk to the vmi. :param disk: The disk of this V1Disk. :type: V1DiskTarget @@ -149,7 +149,7 @@ def disk(self, disk): def floppy(self): """ Gets the floppy of this V1Disk. - Attach a volume as a floppy to the vmi + Attach a volume as a floppy to the vmi. :return: The floppy of this V1Disk. :rtype: V1FloppyTarget @@ -160,7 +160,7 @@ def floppy(self): def floppy(self, floppy): """ Sets the floppy of this V1Disk. - Attach a volume as a floppy to the vmi + Attach a volume as a floppy to the vmi. :param floppy: The floppy of this V1Disk. :type: V1FloppyTarget @@ -172,7 +172,7 @@ def floppy(self, floppy): def lun(self): """ Gets the lun of this V1Disk. - Attach a volume as a LUN to the vmi + Attach a volume as a LUN to the vmi. :return: The lun of this V1Disk. :rtype: V1LunTarget @@ -183,7 +183,7 @@ def lun(self): def lun(self, lun): """ Sets the lun of this V1Disk. - Attach a volume as a LUN to the vmi + Attach a volume as a LUN to the vmi. :param lun: The lun of this V1Disk. :type: V1LunTarget @@ -220,7 +220,7 @@ def name(self, name): def volume_name(self): """ Gets the volume_name of this V1Disk. - Name of the volume which is referenced Must match the Name of a Volume. + Name of the volume which is referenced. Must match the Name of a Volume. :return: The volume_name of this V1Disk. :rtype: str @@ -231,7 +231,7 @@ def volume_name(self): def volume_name(self, volume_name): """ Sets the volume_name of this V1Disk. - Name of the volume which is referenced Must match the Name of a Volume. + Name of the volume which is referenced. Must match the Name of a Volume. :param volume_name: The volume_name of this V1Disk. :type: str diff --git a/kubevirt/models/v1_disk_target.py b/kubevirt/models/v1_disk_target.py index 5778c560..2aa8c986 100644 --- a/kubevirt/models/v1_disk_target.py +++ b/kubevirt/models/v1_disk_target.py @@ -57,7 +57,7 @@ def __init__(self, bus=None, readonly=None): def bus(self): """ Gets the bus of this V1DiskTarget. - Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, ide + Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, ide. :return: The bus of this V1DiskTarget. :rtype: str @@ -68,7 +68,7 @@ def bus(self): def bus(self, bus): """ Sets the bus of this V1DiskTarget. - Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, ide + Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, ide. :param bus: The bus of this V1DiskTarget. :type: str @@ -80,7 +80,7 @@ def bus(self, bus): def readonly(self): """ Gets the readonly of this V1DiskTarget. - ReadOnly Defaults to false + ReadOnly. Defaults to false. :return: The readonly of this V1DiskTarget. :rtype: bool @@ -91,7 +91,7 @@ def readonly(self): def readonly(self, readonly): """ Sets the readonly of this V1DiskTarget. - ReadOnly Defaults to false + ReadOnly. Defaults to false. :param readonly: The readonly of this V1DiskTarget. :type: bool diff --git a/kubevirt/models/v1_domain_preset_spec.py b/kubevirt/models/v1_domain_preset_spec.py index e3b43b45..50b7cbfc 100644 --- a/kubevirt/models/v1_domain_preset_spec.py +++ b/kubevirt/models/v1_domain_preset_spec.py @@ -156,7 +156,7 @@ def devices(self, devices): def features(self): """ Gets the features of this V1DomainPresetSpec. - Features like acpi, apic, hyperv +optional + Features like acpi, apic, hyperv. +optional :return: The features of this V1DomainPresetSpec. :rtype: V1Features @@ -167,7 +167,7 @@ def features(self): def features(self, features): """ Sets the features of this V1DomainPresetSpec. - Features like acpi, apic, hyperv +optional + Features like acpi, apic, hyperv. +optional :param features: The features of this V1DomainPresetSpec. :type: V1Features @@ -179,7 +179,7 @@ def features(self, features): def firmware(self): """ Gets the firmware of this V1DomainPresetSpec. - Firmware +optional + Firmware. +optional :return: The firmware of this V1DomainPresetSpec. :rtype: V1Firmware @@ -190,7 +190,7 @@ def firmware(self): def firmware(self, firmware): """ Sets the firmware of this V1DomainPresetSpec. - Firmware +optional + Firmware. +optional :param firmware: The firmware of this V1DomainPresetSpec. :type: V1Firmware @@ -202,7 +202,7 @@ def firmware(self, firmware): def machine(self): """ Gets the machine of this V1DomainPresetSpec. - Machine type +optional + Machine type. +optional :return: The machine of this V1DomainPresetSpec. :rtype: V1Machine @@ -213,7 +213,7 @@ def machine(self): def machine(self, machine): """ Sets the machine of this V1DomainPresetSpec. - Machine type +optional + Machine type. +optional :param machine: The machine of this V1DomainPresetSpec. :type: V1Machine diff --git a/kubevirt/models/v1_domain_spec.py b/kubevirt/models/v1_domain_spec.py index 59739536..2e879939 100644 --- a/kubevirt/models/v1_domain_spec.py +++ b/kubevirt/models/v1_domain_spec.py @@ -157,7 +157,7 @@ def devices(self, devices): def features(self): """ Gets the features of this V1DomainSpec. - Features like acpi, apic, hyperv +optional + Features like acpi, apic, hyperv. +optional :return: The features of this V1DomainSpec. :rtype: V1Features @@ -168,7 +168,7 @@ def features(self): def features(self, features): """ Sets the features of this V1DomainSpec. - Features like acpi, apic, hyperv +optional + Features like acpi, apic, hyperv. +optional :param features: The features of this V1DomainSpec. :type: V1Features @@ -180,7 +180,7 @@ def features(self, features): def firmware(self): """ Gets the firmware of this V1DomainSpec. - Firmware +optional + Firmware. +optional :return: The firmware of this V1DomainSpec. :rtype: V1Firmware @@ -191,7 +191,7 @@ def firmware(self): def firmware(self, firmware): """ Sets the firmware of this V1DomainSpec. - Firmware +optional + Firmware. +optional :param firmware: The firmware of this V1DomainSpec. :type: V1Firmware @@ -203,7 +203,7 @@ def firmware(self, firmware): def machine(self): """ Gets the machine of this V1DomainSpec. - Machine type +optional + Machine type. +optional :return: The machine of this V1DomainSpec. :rtype: V1Machine @@ -214,7 +214,7 @@ def machine(self): def machine(self, machine): """ Sets the machine of this V1DomainSpec. - Machine type +optional + Machine type. +optional :param machine: The machine of this V1DomainSpec. :type: V1Machine diff --git a/kubevirt/models/v1_feature_apic.py b/kubevirt/models/v1_feature_apic.py index 7a1f84d8..765bb7f9 100644 --- a/kubevirt/models/v1_feature_apic.py +++ b/kubevirt/models/v1_feature_apic.py @@ -57,7 +57,7 @@ def __init__(self, enabled=None, end_of_interrupt=None): def enabled(self): """ Gets the enabled of this V1FeatureAPIC. - Enabled determines if the feature should be enabled or disabled on the guest Defaults to true +optional + Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. +optional :return: The enabled of this V1FeatureAPIC. :rtype: bool @@ -68,7 +68,7 @@ def enabled(self): def enabled(self, enabled): """ Sets the enabled of this V1FeatureAPIC. - Enabled determines if the feature should be enabled or disabled on the guest Defaults to true +optional + Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. +optional :param enabled: The enabled of this V1FeatureAPIC. :type: bool @@ -80,7 +80,7 @@ def enabled(self, enabled): def end_of_interrupt(self): """ Gets the end_of_interrupt of this V1FeatureAPIC. - EndOfInterrupt enables the end of interrupt notification in the guest Defaults to false +optional + EndOfInterrupt enables the end of interrupt notification in the guest. Defaults to false. +optional :return: The end_of_interrupt of this V1FeatureAPIC. :rtype: bool @@ -91,7 +91,7 @@ def end_of_interrupt(self): def end_of_interrupt(self, end_of_interrupt): """ Sets the end_of_interrupt of this V1FeatureAPIC. - EndOfInterrupt enables the end of interrupt notification in the guest Defaults to false +optional + EndOfInterrupt enables the end of interrupt notification in the guest. Defaults to false. +optional :param end_of_interrupt: The end_of_interrupt of this V1FeatureAPIC. :type: bool diff --git a/kubevirt/models/v1_feature_hyperv.py b/kubevirt/models/v1_feature_hyperv.py index be59cc1b..9f345887 100644 --- a/kubevirt/models/v1_feature_hyperv.py +++ b/kubevirt/models/v1_feature_hyperv.py @@ -92,7 +92,7 @@ def __init__(self, relaxed=None, reset=None, runtime=None, spinlocks=None, synic def relaxed(self): """ Gets the relaxed of this V1FeatureHyperv. - Relaxed relaxes constraints on timer Defaults to the machine type setting +optional + Relaxed relaxes constraints on timer. Defaults to the machine type setting. +optional :return: The relaxed of this V1FeatureHyperv. :rtype: V1FeatureState @@ -103,7 +103,7 @@ def relaxed(self): def relaxed(self, relaxed): """ Sets the relaxed of this V1FeatureHyperv. - Relaxed relaxes constraints on timer Defaults to the machine type setting +optional + Relaxed relaxes constraints on timer. Defaults to the machine type setting. +optional :param relaxed: The relaxed of this V1FeatureHyperv. :type: V1FeatureState @@ -115,7 +115,7 @@ def relaxed(self, relaxed): def reset(self): """ Gets the reset of this V1FeatureHyperv. - Reset enables Hyperv reboot/reset for the vmi Defaults to the machine type setting +optional + Reset enables Hyperv reboot/reset for the vmi. Defaults to the machine type setting. +optional :return: The reset of this V1FeatureHyperv. :rtype: V1FeatureState @@ -126,7 +126,7 @@ def reset(self): def reset(self, reset): """ Sets the reset of this V1FeatureHyperv. - Reset enables Hyperv reboot/reset for the vmi Defaults to the machine type setting +optional + Reset enables Hyperv reboot/reset for the vmi. Defaults to the machine type setting. +optional :param reset: The reset of this V1FeatureHyperv. :type: V1FeatureState @@ -138,7 +138,7 @@ def reset(self, reset): def runtime(self): """ Gets the runtime of this V1FeatureHyperv. - Runtime Defaults to the machine type setting +optional + Runtime. Defaults to the machine type setting. +optional :return: The runtime of this V1FeatureHyperv. :rtype: V1FeatureState @@ -149,7 +149,7 @@ def runtime(self): def runtime(self, runtime): """ Sets the runtime of this V1FeatureHyperv. - Runtime Defaults to the machine type setting +optional + Runtime. Defaults to the machine type setting. +optional :param runtime: The runtime of this V1FeatureHyperv. :type: V1FeatureState @@ -161,7 +161,7 @@ def runtime(self, runtime): def spinlocks(self): """ Gets the spinlocks of this V1FeatureHyperv. - Spinlocks indicates if spinlocks should be made available to the guest +optional + Spinlocks indicates if spinlocks should be made available to the guest. +optional :return: The spinlocks of this V1FeatureHyperv. :rtype: V1FeatureSpinlocks @@ -172,7 +172,7 @@ def spinlocks(self): def spinlocks(self, spinlocks): """ Sets the spinlocks of this V1FeatureHyperv. - Spinlocks indicates if spinlocks should be made available to the guest +optional + Spinlocks indicates if spinlocks should be made available to the guest. +optional :param spinlocks: The spinlocks of this V1FeatureHyperv. :type: V1FeatureSpinlocks @@ -184,7 +184,7 @@ def spinlocks(self, spinlocks): def synic(self): """ Gets the synic of this V1FeatureHyperv. - SyNIC enable Synthetic Interrupt Controller Defaults to the machine type setting +optional + SyNIC enable Synthetic Interrupt Controller. Defaults to the machine type setting. +optional :return: The synic of this V1FeatureHyperv. :rtype: V1FeatureState @@ -195,7 +195,7 @@ def synic(self): def synic(self, synic): """ Sets the synic of this V1FeatureHyperv. - SyNIC enable Synthetic Interrupt Controller Defaults to the machine type setting +optional + SyNIC enable Synthetic Interrupt Controller. Defaults to the machine type setting. +optional :param synic: The synic of this V1FeatureHyperv. :type: V1FeatureState @@ -207,7 +207,7 @@ def synic(self, synic): def synictimer(self): """ Gets the synictimer of this V1FeatureHyperv. - SyNICTimer enable Synthetic Interrupt Controller timer Defaults to the machine type setting +optional + SyNICTimer enable Synthetic Interrupt Controller timer. Defaults to the machine type setting. +optional :return: The synictimer of this V1FeatureHyperv. :rtype: V1FeatureState @@ -218,7 +218,7 @@ def synictimer(self): def synictimer(self, synictimer): """ Sets the synictimer of this V1FeatureHyperv. - SyNICTimer enable Synthetic Interrupt Controller timer Defaults to the machine type setting +optional + SyNICTimer enable Synthetic Interrupt Controller timer. Defaults to the machine type setting. +optional :param synictimer: The synictimer of this V1FeatureHyperv. :type: V1FeatureState @@ -230,7 +230,7 @@ def synictimer(self, synictimer): def vapic(self): """ Gets the vapic of this V1FeatureHyperv. - VAPIC indicates whether virtual APIC is enabled Defaults to the machine type setting +optional + VAPIC indicates whether virtual APIC is enabled. Defaults to the machine type setting. +optional :return: The vapic of this V1FeatureHyperv. :rtype: V1FeatureState @@ -241,7 +241,7 @@ def vapic(self): def vapic(self, vapic): """ Sets the vapic of this V1FeatureHyperv. - VAPIC indicates whether virtual APIC is enabled Defaults to the machine type setting +optional + VAPIC indicates whether virtual APIC is enabled. Defaults to the machine type setting. +optional :param vapic: The vapic of this V1FeatureHyperv. :type: V1FeatureState @@ -253,7 +253,7 @@ def vapic(self, vapic): def vendorid(self): """ Gets the vendorid of this V1FeatureHyperv. - VendorID allows setting the hypervisor vendor id Defaults to the machine type setting +optional + VendorID allows setting the hypervisor vendor id. Defaults to the machine type setting. +optional :return: The vendorid of this V1FeatureHyperv. :rtype: V1FeatureVendorID @@ -264,7 +264,7 @@ def vendorid(self): def vendorid(self, vendorid): """ Sets the vendorid of this V1FeatureHyperv. - VendorID allows setting the hypervisor vendor id Defaults to the machine type setting +optional + VendorID allows setting the hypervisor vendor id. Defaults to the machine type setting. +optional :param vendorid: The vendorid of this V1FeatureHyperv. :type: V1FeatureVendorID @@ -276,7 +276,7 @@ def vendorid(self, vendorid): def vpindex(self): """ Gets the vpindex of this V1FeatureHyperv. - VPIndex enables the Virtual Processor Index to help windows identifying virtual processors Defaults to the machine type setting +optional + VPIndex enables the Virtual Processor Index to help windows identifying virtual processors. Defaults to the machine type setting. +optional :return: The vpindex of this V1FeatureHyperv. :rtype: V1FeatureState @@ -287,7 +287,7 @@ def vpindex(self): def vpindex(self, vpindex): """ Sets the vpindex of this V1FeatureHyperv. - VPIndex enables the Virtual Processor Index to help windows identifying virtual processors Defaults to the machine type setting +optional + VPIndex enables the Virtual Processor Index to help windows identifying virtual processors. Defaults to the machine type setting. +optional :param vpindex: The vpindex of this V1FeatureHyperv. :type: V1FeatureState diff --git a/kubevirt/models/v1_feature_spinlocks.py b/kubevirt/models/v1_feature_spinlocks.py index 479ee806..a0392c85 100644 --- a/kubevirt/models/v1_feature_spinlocks.py +++ b/kubevirt/models/v1_feature_spinlocks.py @@ -57,7 +57,7 @@ def __init__(self, enabled=None, spinlocks=None): def enabled(self): """ Gets the enabled of this V1FeatureSpinlocks. - Enabled determines if the feature should be enabled or disabled on the guest Defaults to true +optional + Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. +optional :return: The enabled of this V1FeatureSpinlocks. :rtype: bool @@ -68,7 +68,7 @@ def enabled(self): def enabled(self, enabled): """ Sets the enabled of this V1FeatureSpinlocks. - Enabled determines if the feature should be enabled or disabled on the guest Defaults to true +optional + Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. +optional :param enabled: The enabled of this V1FeatureSpinlocks. :type: bool @@ -80,7 +80,7 @@ def enabled(self, enabled): def spinlocks(self): """ Gets the spinlocks of this V1FeatureSpinlocks. - Retries indicates the number of retries Must be a value greater or equal 4096 Defaults to 4096 +optional + Retries indicates the number of retries. Must be a value greater or equal 4096. Defaults to 4096. +optional :return: The spinlocks of this V1FeatureSpinlocks. :rtype: int @@ -91,7 +91,7 @@ def spinlocks(self): def spinlocks(self, spinlocks): """ Sets the spinlocks of this V1FeatureSpinlocks. - Retries indicates the number of retries Must be a value greater or equal 4096 Defaults to 4096 +optional + Retries indicates the number of retries. Must be a value greater or equal 4096. Defaults to 4096. +optional :param spinlocks: The spinlocks of this V1FeatureSpinlocks. :type: int diff --git a/kubevirt/models/v1_feature_state.py b/kubevirt/models/v1_feature_state.py index d38d6597..f93c7672 100644 --- a/kubevirt/models/v1_feature_state.py +++ b/kubevirt/models/v1_feature_state.py @@ -52,7 +52,7 @@ def __init__(self, enabled=None): def enabled(self): """ Gets the enabled of this V1FeatureState. - Enabled determines if the feature should be enabled or disabled on the guest Defaults to true +optional + Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. +optional :return: The enabled of this V1FeatureState. :rtype: bool @@ -63,7 +63,7 @@ def enabled(self): def enabled(self, enabled): """ Sets the enabled of this V1FeatureState. - Enabled determines if the feature should be enabled or disabled on the guest Defaults to true +optional + Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. +optional :param enabled: The enabled of this V1FeatureState. :type: bool diff --git a/kubevirt/models/v1_feature_vendor_id.py b/kubevirt/models/v1_feature_vendor_id.py index bb554ae9..12bbdab2 100644 --- a/kubevirt/models/v1_feature_vendor_id.py +++ b/kubevirt/models/v1_feature_vendor_id.py @@ -57,7 +57,7 @@ def __init__(self, enabled=None, vendorid=None): def enabled(self): """ Gets the enabled of this V1FeatureVendorID. - Enabled determines if the feature should be enabled or disabled on the guest Defaults to true +optional + Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. +optional :return: The enabled of this V1FeatureVendorID. :rtype: bool @@ -68,7 +68,7 @@ def enabled(self): def enabled(self, enabled): """ Sets the enabled of this V1FeatureVendorID. - Enabled determines if the feature should be enabled or disabled on the guest Defaults to true +optional + Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. +optional :param enabled: The enabled of this V1FeatureVendorID. :type: bool @@ -80,7 +80,7 @@ def enabled(self, enabled): def vendorid(self): """ Gets the vendorid of this V1FeatureVendorID. - VendorID sets the hypervisor vendor id, visible to the vmi String up to twelve characters + VendorID sets the hypervisor vendor id, visible to the vmi. String up to twelve characters. :return: The vendorid of this V1FeatureVendorID. :rtype: str @@ -91,7 +91,7 @@ def vendorid(self): def vendorid(self, vendorid): """ Sets the vendorid of this V1FeatureVendorID. - VendorID sets the hypervisor vendor id, visible to the vmi String up to twelve characters + VendorID sets the hypervisor vendor id, visible to the vmi. String up to twelve characters. :param vendorid: The vendorid of this V1FeatureVendorID. :type: str diff --git a/kubevirt/models/v1_features.py b/kubevirt/models/v1_features.py index 54d0734e..73c5f2fa 100644 --- a/kubevirt/models/v1_features.py +++ b/kubevirt/models/v1_features.py @@ -62,7 +62,7 @@ def __init__(self, acpi=None, apic=None, hyperv=None): def acpi(self): """ Gets the acpi of this V1Features. - ACPI enables/disables ACPI insidejsondata guest Defaults to enabled +optional + ACPI enables/disables ACPI insidejsondata guest. Defaults to enabled. +optional :return: The acpi of this V1Features. :rtype: V1FeatureState @@ -73,7 +73,7 @@ def acpi(self): def acpi(self, acpi): """ Sets the acpi of this V1Features. - ACPI enables/disables ACPI insidejsondata guest Defaults to enabled +optional + ACPI enables/disables ACPI insidejsondata guest. Defaults to enabled. +optional :param acpi: The acpi of this V1Features. :type: V1FeatureState @@ -85,7 +85,7 @@ def acpi(self, acpi): def apic(self): """ Gets the apic of this V1Features. - Defaults to the machine type setting +optional + Defaults to the machine type setting. +optional :return: The apic of this V1Features. :rtype: V1FeatureAPIC @@ -96,7 +96,7 @@ def apic(self): def apic(self, apic): """ Sets the apic of this V1Features. - Defaults to the machine type setting +optional + Defaults to the machine type setting. +optional :param apic: The apic of this V1Features. :type: V1FeatureAPIC @@ -108,7 +108,7 @@ def apic(self, apic): def hyperv(self): """ Gets the hyperv of this V1Features. - Defaults to the machine type setting +optional + Defaults to the machine type setting. +optional :return: The hyperv of this V1Features. :rtype: V1FeatureHyperv @@ -119,7 +119,7 @@ def hyperv(self): def hyperv(self, hyperv): """ Sets the hyperv of this V1Features. - Defaults to the machine type setting +optional + Defaults to the machine type setting. +optional :param hyperv: The hyperv of this V1Features. :type: V1FeatureHyperv diff --git a/kubevirt/models/v1_firmware.py b/kubevirt/models/v1_firmware.py index 8cd21199..e3eba2f3 100644 --- a/kubevirt/models/v1_firmware.py +++ b/kubevirt/models/v1_firmware.py @@ -52,7 +52,7 @@ def __init__(self, uuid=None): def uuid(self): """ Gets the uuid of this V1Firmware. - UUID reported by the vmi bios Defaults to a random generated uid + UUID reported by the vmi bios. Defaults to a random generated uid. :return: The uuid of this V1Firmware. :rtype: str @@ -63,7 +63,7 @@ def uuid(self): def uuid(self, uuid): """ Sets the uuid of this V1Firmware. - UUID reported by the vmi bios Defaults to a random generated uid + UUID reported by the vmi bios. Defaults to a random generated uid. :param uuid: The uuid of this V1Firmware. :type: str diff --git a/kubevirt/models/v1_floppy_target.py b/kubevirt/models/v1_floppy_target.py index e3980861..a32a22f8 100644 --- a/kubevirt/models/v1_floppy_target.py +++ b/kubevirt/models/v1_floppy_target.py @@ -57,7 +57,7 @@ def __init__(self, readonly=None, tray=None): def readonly(self): """ Gets the readonly of this V1FloppyTarget. - ReadOnly Defaults to false + ReadOnly. Defaults to false. :return: The readonly of this V1FloppyTarget. :rtype: bool @@ -68,7 +68,7 @@ def readonly(self): def readonly(self, readonly): """ Sets the readonly of this V1FloppyTarget. - ReadOnly Defaults to false + ReadOnly. Defaults to false. :param readonly: The readonly of this V1FloppyTarget. :type: bool @@ -80,7 +80,7 @@ def readonly(self, readonly): def tray(self): """ Gets the tray of this V1FloppyTarget. - Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\" Defaults to closed +optional + Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\". Defaults to closed. +optional :return: The tray of this V1FloppyTarget. :rtype: str @@ -91,7 +91,7 @@ def tray(self): def tray(self, tray): """ Sets the tray of this V1FloppyTarget. - Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\" Defaults to closed +optional + Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\". Defaults to closed. +optional :param tray: The tray of this V1FloppyTarget. :type: str diff --git a/kubevirt/models/v1_hpet_timer.py b/kubevirt/models/v1_hpet_timer.py index 32778f3b..4881dcd9 100644 --- a/kubevirt/models/v1_hpet_timer.py +++ b/kubevirt/models/v1_hpet_timer.py @@ -57,7 +57,7 @@ def __init__(self, present=None, tick_policy=None): def present(self): """ Gets the present of this V1HPETTimer. - Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true +optional + Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional :return: The present of this V1HPETTimer. :rtype: bool @@ -68,7 +68,7 @@ def present(self): def present(self, present): """ Sets the present of this V1HPETTimer. - Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true +optional + Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional :param present: The present of this V1HPETTimer. :type: bool @@ -80,7 +80,7 @@ def present(self, present): def tick_policy(self): """ Gets the tick_policy of this V1HPETTimer. - TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest One of \"delay\", \"catchup\", \"merge\", \"discard\" + TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest. One of \"delay\", \"catchup\", \"merge\", \"discard\". :return: The tick_policy of this V1HPETTimer. :rtype: str @@ -91,7 +91,7 @@ def tick_policy(self): def tick_policy(self, tick_policy): """ Sets the tick_policy of this V1HPETTimer. - TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest One of \"delay\", \"catchup\", \"merge\", \"discard\" + TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest. One of \"delay\", \"catchup\", \"merge\", \"discard\". :param tick_policy: The tick_policy of this V1HPETTimer. :type: str diff --git a/kubevirt/models/v1_hyperv_timer.py b/kubevirt/models/v1_hyperv_timer.py index ecfb0e43..78af35ae 100644 --- a/kubevirt/models/v1_hyperv_timer.py +++ b/kubevirt/models/v1_hyperv_timer.py @@ -52,7 +52,7 @@ def __init__(self, present=None): def present(self): """ Gets the present of this V1HypervTimer. - Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true +optional + Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional :return: The present of this V1HypervTimer. :rtype: bool @@ -63,7 +63,7 @@ def present(self): def present(self, present): """ Sets the present of this V1HypervTimer. - Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true +optional + Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional :param present: The present of this V1HypervTimer. :type: bool diff --git a/kubevirt/models/v1_i6300_esb_watchdog.py b/kubevirt/models/v1_i6300_esb_watchdog.py index 0c8ac46a..f2c0d8f4 100644 --- a/kubevirt/models/v1_i6300_esb_watchdog.py +++ b/kubevirt/models/v1_i6300_esb_watchdog.py @@ -52,7 +52,7 @@ def __init__(self, action=None): def action(self): """ Gets the action of this V1I6300ESBWatchdog. - The action to take. Valid values are poweroff, reset, shutdown. Defaults to reset + The action to take. Valid values are poweroff, reset, shutdown. Defaults to reset. :return: The action of this V1I6300ESBWatchdog. :rtype: str @@ -63,7 +63,7 @@ def action(self): def action(self, action): """ Sets the action of this V1I6300ESBWatchdog. - The action to take. Valid values are poweroff, reset, shutdown. Defaults to reset + The action to take. Valid values are poweroff, reset, shutdown. Defaults to reset. :param action: The action of this V1I6300ESBWatchdog. :type: str diff --git a/kubevirt/models/v1_kvm_timer.py b/kubevirt/models/v1_kvm_timer.py index 8a194d12..53253cc4 100644 --- a/kubevirt/models/v1_kvm_timer.py +++ b/kubevirt/models/v1_kvm_timer.py @@ -52,7 +52,7 @@ def __init__(self, present=None): def present(self): """ Gets the present of this V1KVMTimer. - Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true +optional + Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional :return: The present of this V1KVMTimer. :rtype: bool @@ -63,7 +63,7 @@ def present(self): def present(self, present): """ Sets the present of this V1KVMTimer. - Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true +optional + Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional :param present: The present of this V1KVMTimer. :type: bool diff --git a/kubevirt/models/v1_lun_target.py b/kubevirt/models/v1_lun_target.py index df8e727b..192b7011 100644 --- a/kubevirt/models/v1_lun_target.py +++ b/kubevirt/models/v1_lun_target.py @@ -57,7 +57,7 @@ def __init__(self, bus=None, readonly=None): def bus(self): """ Gets the bus of this V1LunTarget. - Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, ide + Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, ide. :return: The bus of this V1LunTarget. :rtype: str @@ -68,7 +68,7 @@ def bus(self): def bus(self, bus): """ Sets the bus of this V1LunTarget. - Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, ide + Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, ide. :param bus: The bus of this V1LunTarget. :type: str @@ -80,7 +80,7 @@ def bus(self, bus): def readonly(self): """ Gets the readonly of this V1LunTarget. - ReadOnly Defaults to false + ReadOnly. Defaults to false. :return: The readonly of this V1LunTarget. :rtype: bool @@ -91,7 +91,7 @@ def readonly(self): def readonly(self, readonly): """ Sets the readonly of this V1LunTarget. - ReadOnly Defaults to false + ReadOnly. Defaults to false. :param readonly: The readonly of this V1LunTarget. :type: bool diff --git a/kubevirt/models/v1_pit_timer.py b/kubevirt/models/v1_pit_timer.py index ee7ee13f..29e270e8 100644 --- a/kubevirt/models/v1_pit_timer.py +++ b/kubevirt/models/v1_pit_timer.py @@ -57,7 +57,7 @@ def __init__(self, present=None, tick_policy=None): def present(self): """ Gets the present of this V1PITTimer. - Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true +optional + Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional :return: The present of this V1PITTimer. :rtype: bool @@ -68,7 +68,7 @@ def present(self): def present(self, present): """ Sets the present of this V1PITTimer. - Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true +optional + Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional :param present: The present of this V1PITTimer. :type: bool @@ -80,7 +80,7 @@ def present(self, present): def tick_policy(self): """ Gets the tick_policy of this V1PITTimer. - TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest One of \"delay\", \"catchup\", \"discard\" + TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest. One of \"delay\", \"catchup\", \"discard\". :return: The tick_policy of this V1PITTimer. :rtype: str @@ -91,7 +91,7 @@ def tick_policy(self): def tick_policy(self, tick_policy): """ Sets the tick_policy of this V1PITTimer. - TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest One of \"delay\", \"catchup\", \"discard\" + TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest. One of \"delay\", \"catchup\", \"discard\". :param tick_policy: The tick_policy of this V1PITTimer. :type: str diff --git a/kubevirt/models/v1_registry_disk_source.py b/kubevirt/models/v1_registry_disk_source.py index 80fee0d5..7d29e184 100644 --- a/kubevirt/models/v1_registry_disk_source.py +++ b/kubevirt/models/v1_registry_disk_source.py @@ -56,7 +56,7 @@ def __init__(self, image=None, image_pull_secret=None): def image(self): """ Gets the image of this V1RegistryDiskSource. - Image is the name of the image with the embedded disk + Image is the name of the image with the embedded disk. :return: The image of this V1RegistryDiskSource. :rtype: str @@ -67,7 +67,7 @@ def image(self): def image(self, image): """ Sets the image of this V1RegistryDiskSource. - Image is the name of the image with the embedded disk + Image is the name of the image with the embedded disk. :param image: The image of this V1RegistryDiskSource. :type: str diff --git a/kubevirt/models/v1_rtc_timer.py b/kubevirt/models/v1_rtc_timer.py index e0a235ca..72f19926 100644 --- a/kubevirt/models/v1_rtc_timer.py +++ b/kubevirt/models/v1_rtc_timer.py @@ -62,7 +62,7 @@ def __init__(self, present=None, tick_policy=None, track=None): def present(self): """ Gets the present of this V1RTCTimer. - Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true +optional + Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional :return: The present of this V1RTCTimer. :rtype: bool @@ -73,7 +73,7 @@ def present(self): def present(self, present): """ Sets the present of this V1RTCTimer. - Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true +optional + Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional :param present: The present of this V1RTCTimer. :type: bool @@ -85,7 +85,7 @@ def present(self, present): def tick_policy(self): """ Gets the tick_policy of this V1RTCTimer. - TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest One of \"delay\", \"catchup\" + TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest. One of \"delay\", \"catchup\". :return: The tick_policy of this V1RTCTimer. :rtype: str @@ -96,7 +96,7 @@ def tick_policy(self): def tick_policy(self, tick_policy): """ Sets the tick_policy of this V1RTCTimer. - TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest One of \"delay\", \"catchup\" + TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest. One of \"delay\", \"catchup\". :param tick_policy: The tick_policy of this V1RTCTimer. :type: str @@ -108,7 +108,7 @@ def tick_policy(self, tick_policy): def track(self): """ Gets the track of this V1RTCTimer. - Track the guest or the wall clock + Track the guest or the wall clock. :return: The track of this V1RTCTimer. :rtype: str @@ -119,7 +119,7 @@ def track(self): def track(self, track): """ Sets the track of this V1RTCTimer. - Track the guest or the wall clock + Track the guest or the wall clock. :param track: The track of this V1RTCTimer. :type: str diff --git a/kubevirt/models/v1_volume.py b/kubevirt/models/v1_volume.py index 4bb364ed..e9ad2bdc 100644 --- a/kubevirt/models/v1_volume.py +++ b/kubevirt/models/v1_volume.py @@ -99,7 +99,7 @@ def cloud_init_no_cloud(self, cloud_init_no_cloud): def empty_disk(self): """ Gets the empty_disk of this V1Volume. - EmptyDisk represents a temporary disk which shares the vmis lifecycle More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html +optional + EmptyDisk represents a temporary disk which shares the vmis lifecycle. More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html +optional :return: The empty_disk of this V1Volume. :rtype: V1EmptyDiskSource @@ -110,7 +110,7 @@ def empty_disk(self): def empty_disk(self, empty_disk): """ Sets the empty_disk of this V1Volume. - EmptyDisk represents a temporary disk which shares the vmis lifecycle More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html +optional + EmptyDisk represents a temporary disk which shares the vmis lifecycle. More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html +optional :param empty_disk: The empty_disk of this V1Volume. :type: V1EmptyDiskSource @@ -193,7 +193,7 @@ def persistent_volume_claim(self, persistent_volume_claim): def registry_disk(self): """ Gets the registry_disk of this V1Volume. - RegistryDisk references a docker image, embedding a qcow or raw disk More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html +optional + RegistryDisk references a docker image, embedding a qcow or raw disk. More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html +optional :return: The registry_disk of this V1Volume. :rtype: V1RegistryDiskSource @@ -204,7 +204,7 @@ def registry_disk(self): def registry_disk(self, registry_disk): """ Sets the registry_disk of this V1Volume. - RegistryDisk references a docker image, embedding a qcow or raw disk More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html +optional + RegistryDisk references a docker image, embedding a qcow or raw disk. More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html +optional :param registry_disk: The registry_disk of this V1Volume. :type: V1RegistryDiskSource diff --git a/kubevirt/models/v1_watchdog.py b/kubevirt/models/v1_watchdog.py index ed994962..9362bb08 100644 --- a/kubevirt/models/v1_watchdog.py +++ b/kubevirt/models/v1_watchdog.py @@ -56,7 +56,7 @@ def __init__(self, i6300esb=None, name=None): def i6300esb(self): """ Gets the i6300esb of this V1Watchdog. - i6300esb watchdog device +optional + i6300esb watchdog device. +optional :return: The i6300esb of this V1Watchdog. :rtype: V1I6300ESBWatchdog @@ -67,7 +67,7 @@ def i6300esb(self): def i6300esb(self, i6300esb): """ Sets the i6300esb of this V1Watchdog. - i6300esb watchdog device +optional + i6300esb watchdog device. +optional :param i6300esb: The i6300esb of this V1Watchdog. :type: V1I6300ESBWatchdog @@ -79,7 +79,7 @@ def i6300esb(self, i6300esb): def name(self): """ Gets the name of this V1Watchdog. - Name of the watchdog + Name of the watchdog. :return: The name of this V1Watchdog. :rtype: str @@ -90,7 +90,7 @@ def name(self): def name(self, name): """ Sets the name of this V1Watchdog. - Name of the watchdog + Name of the watchdog. :param name: The name of this V1Watchdog. :type: str diff --git a/setup.py b/setup.py index f539d89d..02a4a5ef 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.6.0-216-gde9cf1c" +VERSION = "v0.6.0-241-gd3811bd" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 08862aa4..618b292f 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.6.0-216-gde9cf1c" +"packageVersion": "v0.6.0-241-gd3811bd" } From 91bc5f5df96ab6ad5ab45316dce08a60b1818dce Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 22 Jun 2018 08:35:41 +0000 Subject: [PATCH 026/521] Client Python update by Travis Build 3854 --- README.md | 2 +- docs/V1Disk.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_disk.py | 30 +++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 3400a01b..cf700a4a 100644 --- a/README.md +++ b/README.md @@ -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: v0.6.0-241-gd3811bd +- Package version: v0.6.0-251-gf38377a - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Disk.md b/docs/V1Disk.md index 48ef24b7..72c52b6b 100644 --- a/docs/V1Disk.md +++ b/docs/V1Disk.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **floppy** | [**V1FloppyTarget**](V1FloppyTarget.md) | Attach a volume as a floppy to the vmi. | [optional] **lun** | [**V1LunTarget**](V1LunTarget.md) | Attach a volume as a LUN to the vmi. | [optional] **name** | **str** | Name is the device name | +**serial** | **str** | Serial provides the ability to specify a serial number for the disk device. +optional | [optional] **volume_name** | **str** | Name of the volume which is referenced. Must match the Name of a Volume. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index d3559919..f587e5fe 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.6.0-241-gd3811bd" + release_note="Auto-generated client v0.6.0-251-gf38377a" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 541752c8..0f24b754 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.6.0-241-gd3811bd/python' + self.user_agent = 'Swagger-Codegen/v0.6.0-251-gf38377a/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 03004062..3e918472 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.6.0-241-gd3811bd".\ + "SDK Package Version: v0.6.0-251-gf38377a".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_disk.py b/kubevirt/models/v1_disk.py index 84cd2d83..a1ee2ea3 100644 --- a/kubevirt/models/v1_disk.py +++ b/kubevirt/models/v1_disk.py @@ -37,6 +37,7 @@ class V1Disk(object): 'floppy': 'V1FloppyTarget', 'lun': 'V1LunTarget', 'name': 'str', + 'serial': 'str', 'volume_name': 'str' } @@ -47,10 +48,11 @@ class V1Disk(object): 'floppy': 'floppy', 'lun': 'lun', 'name': 'name', + 'serial': 'serial', 'volume_name': 'volumeName' } - def __init__(self, boot_order=None, cdrom=None, disk=None, floppy=None, lun=None, name=None, volume_name=None): + def __init__(self, boot_order=None, cdrom=None, disk=None, floppy=None, lun=None, name=None, serial=None, volume_name=None): """ V1Disk - a model defined in Swagger """ @@ -61,6 +63,7 @@ def __init__(self, boot_order=None, cdrom=None, disk=None, floppy=None, lun=None self._floppy = None self._lun = None self._name = None + self._serial = None self._volume_name = None if boot_order is not None: @@ -74,6 +77,8 @@ def __init__(self, boot_order=None, cdrom=None, disk=None, floppy=None, lun=None if lun is not None: self.lun = lun self.name = name + if serial is not None: + self.serial = serial self.volume_name = volume_name @property @@ -216,6 +221,29 @@ def name(self, name): self._name = name + @property + def serial(self): + """ + Gets the serial of this V1Disk. + Serial provides the ability to specify a serial number for the disk device. +optional + + :return: The serial of this V1Disk. + :rtype: str + """ + return self._serial + + @serial.setter + def serial(self, serial): + """ + Sets the serial of this V1Disk. + Serial provides the ability to specify a serial number for the disk device. +optional + + :param serial: The serial of this V1Disk. + :type: str + """ + + self._serial = serial + @property def volume_name(self): """ diff --git a/setup.py b/setup.py index 02a4a5ef..9ece524b 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.6.0-241-gd3811bd" +VERSION = "v0.6.0-251-gf38377a" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 618b292f..ba563345 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.6.0-241-gd3811bd" +"packageVersion": "v0.6.0-251-gf38377a" } From 5ebf4a6f9a53e1bfeb80c48d2132c817c2844c8a Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 3 Jul 2018 15:41:26 +0000 Subject: [PATCH 027/521] Client Python update by Travis Build 4017 --- README.md | 2 +- docs/V1CPU.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_cpu.py | 34 +++++++++++++++++++++++++++++++--- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 38 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index cf700a4a..7fe998da 100644 --- a/README.md +++ b/README.md @@ -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: v0.6.0-251-gf38377a +- Package version: v0.6.0-305-gcfb1e5c - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1CPU.md b/docs/V1CPU.md index af90e424..e069cb02 100644 --- a/docs/V1CPU.md +++ b/docs/V1CPU.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cores** | **int** | Cores specifies the number of cores inside the vmi. Must be a value greater or equal 1. | [optional] +**model** | **str** | Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/blob/master/src/cpu/cpu_map.xml. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index f587e5fe..e90a5aa3 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.6.0-251-gf38377a" + release_note="Auto-generated client v0.6.0-305-gcfb1e5c" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 0f24b754..e2209942 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.6.0-251-gf38377a/python' + self.user_agent = 'Swagger-Codegen/v0.6.0-305-gcfb1e5c/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 3e918472..972cc328 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.6.0-251-gf38377a".\ + "SDK Package Version: v0.6.0-305-gcfb1e5c".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_cpu.py b/kubevirt/models/v1_cpu.py index 5584acda..049d0e56 100644 --- a/kubevirt/models/v1_cpu.py +++ b/kubevirt/models/v1_cpu.py @@ -31,22 +31,27 @@ class V1CPU(object): and the value is json key in definition. """ swagger_types = { - 'cores': 'int' + 'cores': 'int', + 'model': 'str' } attribute_map = { - 'cores': 'cores' + 'cores': 'cores', + 'model': 'model' } - def __init__(self, cores=None): + def __init__(self, cores=None, model=None): """ V1CPU - a model defined in Swagger """ self._cores = None + self._model = None if cores is not None: self.cores = cores + if model is not None: + self.model = model @property def cores(self): @@ -71,6 +76,29 @@ def cores(self, cores): self._cores = cores + @property + def model(self): + """ + Gets the model of this V1CPU. + Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/blob/master/src/cpu/cpu_map.xml. +optional + + :return: The model of this V1CPU. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """ + Sets the model of this V1CPU. + Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/blob/master/src/cpu/cpu_map.xml. +optional + + :param model: The model of this V1CPU. + :type: str + """ + + self._model = model + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 9ece524b..9eeed74f 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.6.0-251-gf38377a" +VERSION = "v0.6.0-305-gcfb1e5c" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index ba563345..db103f9b 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.6.0-251-gf38377a" +"packageVersion": "v0.6.0-305-gcfb1e5c" } From 7ab9f46a101851abd9fe9e77d16db856c5002c62 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 3 Jul 2018 19:03:19 +0000 Subject: [PATCH 028/521] Client Python update by Travis Build 4020 --- README.md | 2 +- docs/V1Interface.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_interface.py | 30 +++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 7fe998da..47a2a7ff 100644 --- a/README.md +++ b/README.md @@ -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: v0.6.0-305-gcfb1e5c +- Package version: v0.6.0-319-gc70c19d - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Interface.md b/docs/V1Interface.md index 15600e10..b7fe2794 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **bridge** | [**V1InterfaceBridge**](V1InterfaceBridge.md) | | [optional] +**mac_address** | **str** | Interface MAC address. For example: de:ad:00:00:be:af or DE-AD-00-00-BE-AF. | [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. | **slirp** | [**V1InterfaceSlirp**](V1InterfaceSlirp.md) | | [optional] diff --git a/git_push.sh b/git_push.sh index e90a5aa3..92f3b366 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.6.0-305-gcfb1e5c" + release_note="Auto-generated client v0.6.0-319-gc70c19d" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index e2209942..20314758 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.6.0-305-gcfb1e5c/python' + self.user_agent = 'Swagger-Codegen/v0.6.0-319-gc70c19d/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 972cc328..0d825e74 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.6.0-305-gcfb1e5c".\ + "SDK Package Version: v0.6.0-319-gc70c19d".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_interface.py b/kubevirt/models/v1_interface.py index ef7e70ab..33768f7e 100644 --- a/kubevirt/models/v1_interface.py +++ b/kubevirt/models/v1_interface.py @@ -32,6 +32,7 @@ class V1Interface(object): """ swagger_types = { 'bridge': 'V1InterfaceBridge', + 'mac_address': 'str', 'model': 'str', 'name': 'str', 'slirp': 'V1InterfaceSlirp' @@ -39,23 +40,27 @@ class V1Interface(object): attribute_map = { 'bridge': 'bridge', + 'mac_address': 'macAddress', 'model': 'model', 'name': 'name', 'slirp': 'slirp' } - def __init__(self, bridge=None, model=None, name=None, slirp=None): + def __init__(self, bridge=None, mac_address=None, model=None, name=None, slirp=None): """ V1Interface - a model defined in Swagger """ self._bridge = None + self._mac_address = None self._model = None self._name = None self._slirp = None if bridge is not None: self.bridge = bridge + if mac_address is not None: + self.mac_address = mac_address if model is not None: self.model = model self.name = name @@ -83,6 +88,29 @@ def bridge(self, bridge): self._bridge = bridge + @property + def mac_address(self): + """ + Gets the mac_address of this V1Interface. + Interface MAC address. For example: de:ad:00:00:be:af or DE-AD-00-00-BE-AF. + + :return: The mac_address of this V1Interface. + :rtype: str + """ + return self._mac_address + + @mac_address.setter + def mac_address(self, mac_address): + """ + Sets the mac_address of this V1Interface. + Interface MAC address. For example: de:ad:00:00:be:af or DE-AD-00-00-BE-AF. + + :param mac_address: The mac_address of this V1Interface. + :type: str + """ + + self._mac_address = mac_address + @property def model(self): """ diff --git a/setup.py b/setup.py index 9eeed74f..56e436fd 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.6.0-305-gcfb1e5c" +VERSION = "v0.6.0-319-gc70c19d" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index db103f9b..37e36f41 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.6.0-305-gcfb1e5c" +"packageVersion": "v0.6.0-319-gc70c19d" } From 1467e07d0649b1a9f1954f86c0fcd98a2fa2b8ff Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 4 Jul 2018 12:34:45 +0000 Subject: [PATCH 029/521] Client Python update by Travis Build 4037 --- README.md | 3 +- docs/V1Interface.md | 1 + docs/V1InterfaceSlirp.md | 10 --- docs/V1Port.md | 7 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 27 +++++- kubevirt/__init__.py | 1 - kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 - kubevirt/models/v1_interface.py | 30 ++++++- kubevirt/models/v1_interface_slirp.py | 125 -------------------------- kubevirt/models/v1_port.py | 34 ++----- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_interface_slirp.py | 44 --------- 16 files changed, 70 insertions(+), 223 deletions(-) delete mode 100644 docs/V1InterfaceSlirp.md delete mode 100644 kubevirt/models/v1_interface_slirp.py delete mode 100644 test/test_v1_interface_slirp.py diff --git a/README.md b/README.md index 47a2a7ff..05863708 100644 --- a/README.md +++ b/README.md @@ -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: v0.6.0-319-gc70c19d +- Package version: v0.6.0-347-gfff9fda - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -166,7 +166,6 @@ Class | Method | HTTP request | Description - [V1Initializer](docs/V1Initializer.md) - [V1Initializers](docs/V1Initializers.md) - [V1Interface](docs/V1Interface.md) - - [V1InterfaceSlirp](docs/V1InterfaceSlirp.md) - [V1KVMTimer](docs/V1KVMTimer.md) - [V1LabelSelector](docs/V1LabelSelector.md) - [V1LabelSelectorRequirement](docs/V1LabelSelectorRequirement.md) diff --git a/docs/V1Interface.md b/docs/V1Interface.md index b7fe2794..c9b04df7 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **mac_address** | **str** | Interface MAC address. For example: de:ad:00:00:be:af or DE-AD-00-00-BE-AF. | [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. | +**ports** | [**list[V1Port]**](V1Port.md) | List of ports to be forwarded to the virtual machine. | [optional] **slirp** | [**V1InterfaceSlirp**](V1InterfaceSlirp.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1InterfaceSlirp.md b/docs/V1InterfaceSlirp.md deleted file mode 100644 index a36ec8c0..00000000 --- a/docs/V1InterfaceSlirp.md +++ /dev/null @@ -1,10 +0,0 @@ -# V1InterfaceSlirp - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ports** | [**list[V1Port]**](V1Port.md) | List of ports to be forwarded to the virtual machine. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1Port.md b/docs/V1Port.md index 1e49ddf6..05f6431c 100644 --- a/docs/V1Port.md +++ b/docs/V1Port.md @@ -3,10 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | | [optional] -**pod_port** | **int** | | [optional] -**port** | **int** | | -**protocol** | **str** | | [optional] +**name** | **str** | If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. +optional | [optional] +**port** | **int** | Number of port to expose for the virtual machine. This must be a valid port number, 0 < x < 65536. | +**protocol** | **str** | Protocol for port. Must be UDP or TCP. Defaults to \"TCP\". +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 92f3b366..54069655 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.6.0-319-gc70c19d" + release_note="Auto-generated client v0.6.0-347-gfff9fda" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index bc55ee71..4b7f1e2f 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -119,9 +119,6 @@ [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_interface.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Interface.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_interface_slirp.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface_slirp.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InterfaceSlirp.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_kvm_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kvm_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KVMTimer.md @@ -411,6 +408,30 @@ [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_group_1` [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_resources_0` [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 9cf90165..edf450f6 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -53,7 +53,6 @@ from .models.v1_initializer import V1Initializer from .models.v1_initializers import V1Initializers from .models.v1_interface import V1Interface -from .models.v1_interface_slirp import V1InterfaceSlirp from .models.v1_kvm_timer import V1KVMTimer from .models.v1_label_selector import V1LabelSelector from .models.v1_label_selector_requirement import V1LabelSelectorRequirement diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 20314758..384a265f 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.6.0-319-gc70c19d/python' + self.user_agent = 'Swagger-Codegen/v0.6.0-347-gfff9fda/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 0d825e74..6c7e5c9b 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.6.0-319-gc70c19d".\ + "SDK Package Version: v0.6.0-347-gfff9fda".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 5124fcf9..f7132659 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -53,7 +53,6 @@ from .v1_initializer import V1Initializer from .v1_initializers import V1Initializers from .v1_interface import V1Interface -from .v1_interface_slirp import V1InterfaceSlirp from .v1_kvm_timer import V1KVMTimer from .v1_label_selector import V1LabelSelector from .v1_label_selector_requirement import V1LabelSelectorRequirement diff --git a/kubevirt/models/v1_interface.py b/kubevirt/models/v1_interface.py index 33768f7e..5fbb423d 100644 --- a/kubevirt/models/v1_interface.py +++ b/kubevirt/models/v1_interface.py @@ -35,6 +35,7 @@ class V1Interface(object): 'mac_address': 'str', 'model': 'str', 'name': 'str', + 'ports': 'list[V1Port]', 'slirp': 'V1InterfaceSlirp' } @@ -43,10 +44,11 @@ class V1Interface(object): 'mac_address': 'macAddress', 'model': 'model', 'name': 'name', + 'ports': 'ports', 'slirp': 'slirp' } - def __init__(self, bridge=None, mac_address=None, model=None, name=None, slirp=None): + def __init__(self, bridge=None, mac_address=None, model=None, name=None, ports=None, slirp=None): """ V1Interface - a model defined in Swagger """ @@ -55,6 +57,7 @@ def __init__(self, bridge=None, mac_address=None, model=None, name=None, slirp=N self._mac_address = None self._model = None self._name = None + self._ports = None self._slirp = None if bridge is not None: @@ -64,6 +67,8 @@ def __init__(self, bridge=None, mac_address=None, model=None, name=None, slirp=N if model is not None: self.model = model self.name = name + if ports is not None: + self.ports = ports if slirp is not None: self.slirp = slirp @@ -159,6 +164,29 @@ def name(self, name): self._name = name + @property + def ports(self): + """ + Gets the ports of this V1Interface. + List of ports to be forwarded to the virtual machine. + + :return: The ports of this V1Interface. + :rtype: list[V1Port] + """ + return self._ports + + @ports.setter + def ports(self, ports): + """ + Sets the ports of this V1Interface. + List of ports to be forwarded to the virtual machine. + + :param ports: The ports of this V1Interface. + :type: list[V1Port] + """ + + self._ports = ports + @property def slirp(self): """ diff --git a/kubevirt/models/v1_interface_slirp.py b/kubevirt/models/v1_interface_slirp.py deleted file mode 100644 index e0dde730..00000000 --- a/kubevirt/models/v1_interface_slirp.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1InterfaceSlirp(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'ports': 'list[V1Port]' - } - - attribute_map = { - 'ports': 'ports' - } - - def __init__(self, ports=None): - """ - V1InterfaceSlirp - a model defined in Swagger - """ - - self._ports = None - - if ports is not None: - self.ports = ports - - @property - def ports(self): - """ - Gets the ports of this V1InterfaceSlirp. - List of ports to be forwarded to the virtual machine. - - :return: The ports of this V1InterfaceSlirp. - :rtype: list[V1Port] - """ - return self._ports - - @ports.setter - def ports(self, ports): - """ - Sets the ports of this V1InterfaceSlirp. - List of ports to be forwarded to the virtual machine. - - :param ports: The ports of this V1InterfaceSlirp. - :type: list[V1Port] - """ - - self._ports = ports - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1InterfaceSlirp): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_port.py b/kubevirt/models/v1_port.py index 453f99a1..92e196b4 100644 --- a/kubevirt/models/v1_port.py +++ b/kubevirt/models/v1_port.py @@ -32,32 +32,27 @@ class V1Port(object): """ swagger_types = { 'name': 'str', - 'pod_port': 'int', 'port': 'int', 'protocol': 'str' } attribute_map = { 'name': 'name', - 'pod_port': 'podPort', 'port': 'port', 'protocol': 'protocol' } - def __init__(self, name=None, pod_port=None, port=None, protocol=None): + def __init__(self, name=None, port=None, protocol=None): """ V1Port - a model defined in Swagger """ self._name = None - self._pod_port = None self._port = None self._protocol = None if name is not None: self.name = name - if pod_port is not None: - self.pod_port = pod_port self.port = port if protocol is not None: self.protocol = protocol @@ -66,6 +61,7 @@ def __init__(self, name=None, pod_port=None, port=None, protocol=None): def name(self): """ Gets the name of this V1Port. + If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. +optional :return: The name of this V1Port. :rtype: str @@ -76,6 +72,7 @@ def name(self): def name(self, name): """ Sets the name of this V1Port. + If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. +optional :param name: The name of this V1Port. :type: str @@ -83,31 +80,11 @@ def name(self, name): self._name = name - @property - def pod_port(self): - """ - Gets the pod_port of this V1Port. - - :return: The pod_port of this V1Port. - :rtype: int - """ - return self._pod_port - - @pod_port.setter - def pod_port(self, pod_port): - """ - Sets the pod_port of this V1Port. - - :param pod_port: The pod_port of this V1Port. - :type: int - """ - - self._pod_port = pod_port - @property def port(self): """ Gets the port of this V1Port. + Number of port to expose for the virtual machine. This must be a valid port number, 0 < x < 65536. :return: The port of this V1Port. :rtype: int @@ -118,6 +95,7 @@ def port(self): def port(self, port): """ Sets the port of this V1Port. + Number of port to expose for the virtual machine. This must be a valid port number, 0 < x < 65536. :param port: The port of this V1Port. :type: int @@ -131,6 +109,7 @@ def port(self, port): def protocol(self): """ Gets the protocol of this V1Port. + Protocol for port. Must be UDP or TCP. Defaults to \"TCP\". +optional :return: The protocol of this V1Port. :rtype: str @@ -141,6 +120,7 @@ def protocol(self): def protocol(self, protocol): """ Sets the protocol of this V1Port. + Protocol for port. Must be UDP or TCP. Defaults to \"TCP\". +optional :param protocol: The protocol of this V1Port. :type: str diff --git a/setup.py b/setup.py index 56e436fd..8e634cbf 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.6.0-319-gc70c19d" +VERSION = "v0.6.0-347-gfff9fda" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 37e36f41..ea8fff81 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.6.0-319-gc70c19d" +"packageVersion": "v0.6.0-347-gfff9fda" } diff --git a/test/test_v1_interface_slirp.py b/test/test_v1_interface_slirp.py deleted file mode 100644 index fa591291..00000000 --- a/test/test_v1_interface_slirp.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_interface_slirp import V1InterfaceSlirp - - -class TestV1InterfaceSlirp(unittest.TestCase): - """ V1InterfaceSlirp unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1InterfaceSlirp(self): - """ - Test V1InterfaceSlirp - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_interface_slirp.V1InterfaceSlirp() - pass - - -if __name__ == '__main__': - unittest.main() From 03e1f1f67e08408e0eae82fc3bc51b075e487524 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 18 Jul 2018 21:15:26 +0000 Subject: [PATCH 030/521] Client Python update by Travis Build 4169 --- README.md | 2 +- docs/V1Devices.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_devices.py | 30 +++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 05863708..bfeed2d9 100644 --- a/README.md +++ b/README.md @@ -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: v0.6.0-347-gfff9fda +- Package version: v0.7.0-62-g6338f16 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index 8bb011e6..81b7cff6 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**autoattach_pod_interface** | **bool** | Whether to attach a pod network interface. Defaults to true. | [optional] **disks** | [**list[V1Disk]**](V1Disk.md) | Disks describes disks, cdroms, floppy and luns which are connected to the vmi. | [optional] **interfaces** | [**list[V1Interface]**](V1Interface.md) | Interfaces describe network interfaces which are added to the vm. | [optional] **watchdog** | [**V1Watchdog**](V1Watchdog.md) | Watchdog describes a watchdog device which can be added to the vmi. | [optional] diff --git a/git_push.sh b/git_push.sh index 54069655..49148d11 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.6.0-347-gfff9fda" + release_note="Auto-generated client v0.7.0-62-g6338f16" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 384a265f..0b6a64d0 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.6.0-347-gfff9fda/python' + self.user_agent = 'Swagger-Codegen/v0.7.0-62-g6338f16/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 6c7e5c9b..c72447b9 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.6.0-347-gfff9fda".\ + "SDK Package Version: v0.7.0-62-g6338f16".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index 685b5726..ea4e97a8 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -31,26 +31,31 @@ class V1Devices(object): and the value is json key in definition. """ swagger_types = { + 'autoattach_pod_interface': 'bool', 'disks': 'list[V1Disk]', 'interfaces': 'list[V1Interface]', 'watchdog': 'V1Watchdog' } attribute_map = { + 'autoattach_pod_interface': 'autoattachPodInterface', 'disks': 'disks', 'interfaces': 'interfaces', 'watchdog': 'watchdog' } - def __init__(self, disks=None, interfaces=None, watchdog=None): + def __init__(self, autoattach_pod_interface=None, disks=None, interfaces=None, watchdog=None): """ V1Devices - a model defined in Swagger """ + self._autoattach_pod_interface = None self._disks = None self._interfaces = None self._watchdog = None + if autoattach_pod_interface is not None: + self.autoattach_pod_interface = autoattach_pod_interface if disks is not None: self.disks = disks if interfaces is not None: @@ -58,6 +63,29 @@ def __init__(self, disks=None, interfaces=None, watchdog=None): if watchdog is not None: self.watchdog = watchdog + @property + def autoattach_pod_interface(self): + """ + Gets the autoattach_pod_interface of this V1Devices. + Whether to attach a pod network interface. Defaults to true. + + :return: The autoattach_pod_interface of this V1Devices. + :rtype: bool + """ + return self._autoattach_pod_interface + + @autoattach_pod_interface.setter + def autoattach_pod_interface(self, autoattach_pod_interface): + """ + Sets the autoattach_pod_interface of this V1Devices. + Whether to attach a pod network interface. Defaults to true. + + :param autoattach_pod_interface: The autoattach_pod_interface of this V1Devices. + :type: bool + """ + + self._autoattach_pod_interface = autoattach_pod_interface + @property def disks(self): """ diff --git a/setup.py b/setup.py index 8e634cbf..cbdea582 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.6.0-347-gfff9fda" +VERSION = "v0.7.0-62-g6338f16" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index ea8fff81..6f05ea77 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.6.0-347-gfff9fda" +"packageVersion": "v0.7.0-62-g6338f16" } From e2cea848e1ec470610cca9aab493955810a8f003 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 19 Jul 2018 15:38:52 +0000 Subject: [PATCH 031/521] Client Python update by Travis Build 4192 --- README.md | 2 +- docs/V1Affinity.md | 6 +++--- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_affinity.py | 12 ++++++------ setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index bfeed2d9..de368496 100644 --- a/README.md +++ b/README.md @@ -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: v0.7.0-62-g6338f16 +- Package version: v0.7.0-78-g4f80c6f3 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Affinity.md b/docs/V1Affinity.md index 93ab85f0..14dfb611 100644 --- a/docs/V1Affinity.md +++ b/docs/V1Affinity.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**node_affinity** | [**V1NodeAffinity**](V1NodeAffinity.md) | Node affinity support | [optional] -**pod_affinity** | [**V1PodAffinity**](V1PodAffinity.md) | Pod affinity support | [optional] -**pod_anti_affinity** | [**V1PodAntiAffinity**](V1PodAntiAffinity.md) | Pod anti-affinity support | [optional] +**node_affinity** | [**V1NodeAffinity**](V1NodeAffinity.md) | Describes node affinity scheduling rules for the pod. | [optional] +**pod_affinity** | [**V1PodAffinity**](V1PodAffinity.md) | Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). | [optional] +**pod_anti_affinity** | [**V1PodAntiAffinity**](V1PodAntiAffinity.md) | Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 49148d11..15bb3122 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.7.0-62-g6338f16" + release_note="Auto-generated client v0.7.0-78-g4f80c6f3" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 0b6a64d0..07e9f94e 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.7.0-62-g6338f16/python' + self.user_agent = 'Swagger-Codegen/v0.7.0-78-g4f80c6f3/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c72447b9..c4434406 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.7.0-62-g6338f16".\ + "SDK Package Version: v0.7.0-78-g4f80c6f3".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_affinity.py b/kubevirt/models/v1_affinity.py index d3e1e738..1f164131 100644 --- a/kubevirt/models/v1_affinity.py +++ b/kubevirt/models/v1_affinity.py @@ -62,7 +62,7 @@ def __init__(self, node_affinity=None, pod_affinity=None, pod_anti_affinity=None def node_affinity(self): """ Gets the node_affinity of this V1Affinity. - Node affinity support + Describes node affinity scheduling rules for the pod. :return: The node_affinity of this V1Affinity. :rtype: V1NodeAffinity @@ -73,7 +73,7 @@ def node_affinity(self): def node_affinity(self, node_affinity): """ Sets the node_affinity of this V1Affinity. - Node affinity support + Describes node affinity scheduling rules for the pod. :param node_affinity: The node_affinity of this V1Affinity. :type: V1NodeAffinity @@ -85,7 +85,7 @@ def node_affinity(self, node_affinity): def pod_affinity(self): """ Gets the pod_affinity of this V1Affinity. - Pod affinity support + Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). :return: The pod_affinity of this V1Affinity. :rtype: V1PodAffinity @@ -96,7 +96,7 @@ def pod_affinity(self): def pod_affinity(self, pod_affinity): """ Sets the pod_affinity of this V1Affinity. - Pod affinity support + Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). :param pod_affinity: The pod_affinity of this V1Affinity. :type: V1PodAffinity @@ -108,7 +108,7 @@ def pod_affinity(self, pod_affinity): def pod_anti_affinity(self): """ Gets the pod_anti_affinity of this V1Affinity. - Pod anti-affinity support + Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). :return: The pod_anti_affinity of this V1Affinity. :rtype: V1PodAntiAffinity @@ -119,7 +119,7 @@ def pod_anti_affinity(self): def pod_anti_affinity(self, pod_anti_affinity): """ Sets the pod_anti_affinity of this V1Affinity. - Pod anti-affinity support + Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). :param pod_anti_affinity: The pod_anti_affinity of this V1Affinity. :type: V1PodAntiAffinity diff --git a/setup.py b/setup.py index cbdea582..67c90141 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.7.0-62-g6338f16" +VERSION = "v0.7.0-78-g4f80c6f3" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 6f05ea77..7f9b2c68 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.7.0-62-g6338f16" +"packageVersion": "v0.7.0-78-g4f80c6f3" } From 05078151ad7ce48459800b452976276d88a8c1ae Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sun, 22 Jul 2018 14:00:58 +0000 Subject: [PATCH 032/521] Client Python update by Travis Build 4219 --- README.md | 2 +- docs/V1CPU.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_cpu.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index de368496..1451de0c 100644 --- a/README.md +++ b/README.md @@ -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: v0.7.0-78-g4f80c6f3 +- Package version: v0.7.0-89-ge29d57e2 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1CPU.md b/docs/V1CPU.md index e069cb02..2ce1d8ee 100644 --- a/docs/V1CPU.md +++ b/docs/V1CPU.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cores** | **int** | Cores specifies the number of cores inside the vmi. Must be a value greater or equal 1. | [optional] -**model** | **str** | Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/blob/master/src/cpu/cpu_map.xml. +optional | [optional] +**model** | **str** | Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/blob/master/src/cpu/cpu_map.xml. You also can specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. You can find more information under https://libvirt.org/formatdomain.html#elementsCPU. Defaults to host-model. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 15bb3122..1e5390f7 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.7.0-78-g4f80c6f3" + release_note="Auto-generated client v0.7.0-89-ge29d57e2" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 07e9f94e..fb688a9c 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.7.0-78-g4f80c6f3/python' + self.user_agent = 'Swagger-Codegen/v0.7.0-89-ge29d57e2/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c4434406..48447045 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.7.0-78-g4f80c6f3".\ + "SDK Package Version: v0.7.0-89-ge29d57e2".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_cpu.py b/kubevirt/models/v1_cpu.py index 049d0e56..3add438e 100644 --- a/kubevirt/models/v1_cpu.py +++ b/kubevirt/models/v1_cpu.py @@ -80,7 +80,7 @@ def cores(self, cores): def model(self): """ Gets the model of this V1CPU. - Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/blob/master/src/cpu/cpu_map.xml. +optional + Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/blob/master/src/cpu/cpu_map.xml. You also can specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. You can find more information under https://libvirt.org/formatdomain.html#elementsCPU. Defaults to host-model. +optional :return: The model of this V1CPU. :rtype: str @@ -91,7 +91,7 @@ def model(self): def model(self, model): """ Sets the model of this V1CPU. - Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/blob/master/src/cpu/cpu_map.xml. +optional + Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/blob/master/src/cpu/cpu_map.xml. You also can specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. You can find more information under https://libvirt.org/formatdomain.html#elementsCPU. Defaults to host-model. +optional :param model: The model of this V1CPU. :type: str diff --git a/setup.py b/setup.py index 67c90141..70840bd3 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.7.0-78-g4f80c6f3" +VERSION = "v0.7.0-89-ge29d57e2" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 7f9b2c68..70363b0e 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.7.0-78-g4f80c6f3" +"packageVersion": "v0.7.0-89-ge29d57e2" } From 42b4e442f45fbf3851ba0ff5cbdd7ab831447cf9 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 24 Jul 2018 06:16:56 +0000 Subject: [PATCH 033/521] Client Python update by Travis Build 4248 --- README.md | 3 +- docs/V1Toleration.md | 14 ++ docs/V1VirtualMachineInstanceSpec.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_toleration.py | 237 ++++++++++++++++++ .../v1_virtual_machine_instance_spec.py | 30 ++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_toleration.py | 44 ++++ 14 files changed, 337 insertions(+), 7 deletions(-) create mode 100644 docs/V1Toleration.md create mode 100644 kubevirt/models/v1_toleration.py create mode 100644 test/test_v1_toleration.py diff --git a/README.md b/README.md index 1451de0c..101fccf7 100644 --- a/README.md +++ b/README.md @@ -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: v0.7.0-89-ge29d57e2 +- Package version: v0.7.0-100-gb9fac3aa - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -198,6 +198,7 @@ Class | Method | HTTP request | Description - [V1StatusCause](docs/V1StatusCause.md) - [V1StatusDetails](docs/V1StatusDetails.md) - [V1Timer](docs/V1Timer.md) + - [V1Toleration](docs/V1Toleration.md) - [V1VirtualMachine](docs/V1VirtualMachine.md) - [V1VirtualMachineCondition](docs/V1VirtualMachineCondition.md) - [V1VirtualMachineInstance](docs/V1VirtualMachineInstance.md) diff --git a/docs/V1Toleration.md b/docs/V1Toleration.md new file mode 100644 index 00000000..1650f88e --- /dev/null +++ b/docs/V1Toleration.md @@ -0,0 +1,14 @@ +# V1Toleration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**effect** | **str** | Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. | [optional] +**key** | **str** | Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. | [optional] +**operator** | **str** | Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. | [optional] +**toleration_seconds** | **int** | TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. | [optional] +**value** | **str** | Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceSpec.md b/docs/V1VirtualMachineInstanceSpec.md index 84b8270d..bd9c8b15 100644 --- a/docs/V1VirtualMachineInstanceSpec.md +++ b/docs/V1VirtualMachineInstanceSpec.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **node_selector** | **dict(str, str)** | NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional | [optional] **subdomain** | **str** | If specified, the fully qualified vmi hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the vmi will not have a domainname at all. The DNS entry will resolve to the vmi, no matter if the vmi itself can pick up a hostname. +optional | [optional] **termination_grace_period_seconds** | **int** | Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. | [optional] +**tolerations** | [**list[V1Toleration]**](V1Toleration.md) | If toleration is specified, obey all the toleration rules. | [optional] **volumes** | [**list[V1Volume]**](V1Volume.md) | List of volumes that can be mounted by disks belonging to the vmi. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 1e5390f7..d4dcf022 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.7.0-89-ge29d57e2" + release_note="Auto-generated client v0.7.0-100-gb9fac3aa" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 4b7f1e2f..7ada95a3 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -215,6 +215,9 @@ [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Timer.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_toleration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_toleration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Toleration.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachine.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index edf450f6..c4a70791 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -85,6 +85,7 @@ from .models.v1_status_cause import V1StatusCause from .models.v1_status_details import V1StatusDetails from .models.v1_timer import V1Timer +from .models.v1_toleration import V1Toleration from .models.v1_virtual_machine import V1VirtualMachine from .models.v1_virtual_machine_condition import V1VirtualMachineCondition from .models.v1_virtual_machine_instance import V1VirtualMachineInstance diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index fb688a9c..df3193de 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.7.0-89-ge29d57e2/python' + self.user_agent = 'Swagger-Codegen/v0.7.0-100-gb9fac3aa/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 48447045..4c62b9ea 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.7.0-89-ge29d57e2".\ + "SDK Package Version: v0.7.0-100-gb9fac3aa".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index f7132659..3a4fdbe0 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -85,6 +85,7 @@ from .v1_status_cause import V1StatusCause from .v1_status_details import V1StatusDetails from .v1_timer import V1Timer +from .v1_toleration import V1Toleration from .v1_virtual_machine import V1VirtualMachine from .v1_virtual_machine_condition import V1VirtualMachineCondition from .v1_virtual_machine_instance import V1VirtualMachineInstance diff --git a/kubevirt/models/v1_toleration.py b/kubevirt/models/v1_toleration.py new file mode 100644 index 00000000..63c36d42 --- /dev/null +++ b/kubevirt/models/v1_toleration.py @@ -0,0 +1,237 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Toleration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'effect': 'str', + 'key': 'str', + 'operator': 'str', + 'toleration_seconds': 'int', + 'value': 'str' + } + + attribute_map = { + 'effect': 'effect', + 'key': 'key', + 'operator': 'operator', + 'toleration_seconds': 'tolerationSeconds', + 'value': 'value' + } + + def __init__(self, effect=None, key=None, operator=None, toleration_seconds=None, value=None): + """ + V1Toleration - a model defined in Swagger + """ + + self._effect = None + self._key = None + self._operator = None + self._toleration_seconds = None + self._value = None + + if effect is not None: + self.effect = effect + if key is not None: + self.key = key + if operator is not None: + self.operator = operator + if toleration_seconds is not None: + self.toleration_seconds = toleration_seconds + if value is not None: + self.value = value + + @property + def effect(self): + """ + Gets the effect of this V1Toleration. + Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + + :return: The effect of this V1Toleration. + :rtype: str + """ + return self._effect + + @effect.setter + def effect(self, effect): + """ + Sets the effect of this V1Toleration. + Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + + :param effect: The effect of this V1Toleration. + :type: str + """ + + self._effect = effect + + @property + def key(self): + """ + Gets the key of this V1Toleration. + Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + + :return: The key of this V1Toleration. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """ + Sets the key of this V1Toleration. + Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + + :param key: The key of this V1Toleration. + :type: str + """ + + self._key = key + + @property + def operator(self): + """ + Gets the operator of this V1Toleration. + Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + + :return: The operator of this V1Toleration. + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """ + Sets the operator of this V1Toleration. + Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + + :param operator: The operator of this V1Toleration. + :type: str + """ + + self._operator = operator + + @property + def toleration_seconds(self): + """ + Gets the toleration_seconds of this V1Toleration. + TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + + :return: The toleration_seconds of this V1Toleration. + :rtype: int + """ + return self._toleration_seconds + + @toleration_seconds.setter + def toleration_seconds(self, toleration_seconds): + """ + Sets the toleration_seconds of this V1Toleration. + TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + + :param toleration_seconds: The toleration_seconds of this V1Toleration. + :type: int + """ + + self._toleration_seconds = toleration_seconds + + @property + def value(self): + """ + Gets the value of this V1Toleration. + Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + :return: The value of this V1Toleration. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this V1Toleration. + Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + :param value: The value of this V1Toleration. + :type: str + """ + + self._value = value + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1Toleration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_spec.py b/kubevirt/models/v1_virtual_machine_instance_spec.py index ce960ace..97917502 100644 --- a/kubevirt/models/v1_virtual_machine_instance_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_spec.py @@ -38,6 +38,7 @@ class V1VirtualMachineInstanceSpec(object): 'node_selector': 'dict(str, str)', 'subdomain': 'str', 'termination_grace_period_seconds': 'int', + 'tolerations': 'list[V1Toleration]', 'volumes': 'list[V1Volume]' } @@ -49,10 +50,11 @@ class V1VirtualMachineInstanceSpec(object): 'node_selector': 'nodeSelector', 'subdomain': 'subdomain', 'termination_grace_period_seconds': 'terminationGracePeriodSeconds', + 'tolerations': 'tolerations', 'volumes': 'volumes' } - def __init__(self, affinity=None, domain=None, hostname=None, networks=None, node_selector=None, subdomain=None, termination_grace_period_seconds=None, volumes=None): + def __init__(self, affinity=None, domain=None, hostname=None, networks=None, node_selector=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, volumes=None): """ V1VirtualMachineInstanceSpec - a model defined in Swagger """ @@ -64,6 +66,7 @@ def __init__(self, affinity=None, domain=None, hostname=None, networks=None, nod self._node_selector = None self._subdomain = None self._termination_grace_period_seconds = None + self._tolerations = None self._volumes = None if affinity is not None: @@ -79,6 +82,8 @@ def __init__(self, affinity=None, domain=None, hostname=None, networks=None, nod self.subdomain = subdomain if termination_grace_period_seconds is not None: self.termination_grace_period_seconds = termination_grace_period_seconds + if tolerations is not None: + self.tolerations = tolerations if volumes is not None: self.volumes = volumes @@ -245,6 +250,29 @@ def termination_grace_period_seconds(self, termination_grace_period_seconds): self._termination_grace_period_seconds = termination_grace_period_seconds + @property + def tolerations(self): + """ + Gets the tolerations of this V1VirtualMachineInstanceSpec. + If toleration is specified, obey all the toleration rules. + + :return: The tolerations of this V1VirtualMachineInstanceSpec. + :rtype: list[V1Toleration] + """ + return self._tolerations + + @tolerations.setter + def tolerations(self, tolerations): + """ + Sets the tolerations of this V1VirtualMachineInstanceSpec. + If toleration is specified, obey all the toleration rules. + + :param tolerations: The tolerations of this V1VirtualMachineInstanceSpec. + :type: list[V1Toleration] + """ + + self._tolerations = tolerations + @property def volumes(self): """ diff --git a/setup.py b/setup.py index 70840bd3..9ddc709a 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.7.0-89-ge29d57e2" +VERSION = "v0.7.0-100-gb9fac3aa" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 70363b0e..bda3a120 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.7.0-89-ge29d57e2" +"packageVersion": "v0.7.0-100-gb9fac3aa" } diff --git a/test/test_v1_toleration.py b/test/test_v1_toleration.py new file mode 100644 index 00000000..f2432d5d --- /dev/null +++ b/test/test_v1_toleration.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_toleration import V1Toleration + + +class TestV1Toleration(unittest.TestCase): + """ V1Toleration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Toleration(self): + """ + Test V1Toleration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_toleration.V1Toleration() + pass + + +if __name__ == '__main__': + unittest.main() From 7c291fdbb5254184940a8e9ea20a1c72f5bbbf30 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 25 Jul 2018 08:19:56 +0000 Subject: [PATCH 034/521] Client Python update by Travis Build 4266 --- README.md | 2 +- docs/V1CPU.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_cpu.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 101fccf7..223b19fc 100644 --- a/README.md +++ b/README.md @@ -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: v0.7.0-100-gb9fac3aa +- Package version: v0.7.0-108-g5d360737 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1CPU.md b/docs/V1CPU.md index 2ce1d8ee..09768990 100644 --- a/docs/V1CPU.md +++ b/docs/V1CPU.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cores** | **int** | Cores specifies the number of cores inside the vmi. Must be a value greater or equal 1. | [optional] -**model** | **str** | Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/blob/master/src/cpu/cpu_map.xml. You also can specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. You can find more information under https://libvirt.org/formatdomain.html#elementsCPU. Defaults to host-model. +optional | [optional] +**model** | **str** | Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/blob/master/src/cpu/cpu_map.xml. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. For more information see https://libvirt.org/formatdomain.html#elementsCPU. Defaults to host-model. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index d4dcf022..4ded8958 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.7.0-100-gb9fac3aa" + release_note="Auto-generated client v0.7.0-108-g5d360737" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index df3193de..4c16b849 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.7.0-100-gb9fac3aa/python' + self.user_agent = 'Swagger-Codegen/v0.7.0-108-g5d360737/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 4c62b9ea..045ee827 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.7.0-100-gb9fac3aa".\ + "SDK Package Version: v0.7.0-108-g5d360737".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_cpu.py b/kubevirt/models/v1_cpu.py index 3add438e..f510ec5f 100644 --- a/kubevirt/models/v1_cpu.py +++ b/kubevirt/models/v1_cpu.py @@ -80,7 +80,7 @@ def cores(self, cores): def model(self): """ Gets the model of this V1CPU. - Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/blob/master/src/cpu/cpu_map.xml. You also can specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. You can find more information under https://libvirt.org/formatdomain.html#elementsCPU. Defaults to host-model. +optional + Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/blob/master/src/cpu/cpu_map.xml. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. For more information see https://libvirt.org/formatdomain.html#elementsCPU. Defaults to host-model. +optional :return: The model of this V1CPU. :rtype: str @@ -91,7 +91,7 @@ def model(self): def model(self, model): """ Sets the model of this V1CPU. - Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/blob/master/src/cpu/cpu_map.xml. You also can specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. You can find more information under https://libvirt.org/formatdomain.html#elementsCPU. Defaults to host-model. +optional + Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/blob/master/src/cpu/cpu_map.xml. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. For more information see https://libvirt.org/formatdomain.html#elementsCPU. Defaults to host-model. +optional :param model: The model of this V1CPU. :type: str diff --git a/setup.py b/setup.py index 9ddc709a..35ec05a8 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.7.0-100-gb9fac3aa" +VERSION = "v0.7.0-108-g5d360737" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index bda3a120..def3e2be 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.7.0-100-gb9fac3aa" +"packageVersion": "v0.7.0-108-g5d360737" } From c5b9d2346143ff1ef70229442ea41450272d0df3 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 26 Jul 2018 05:48:31 +0000 Subject: [PATCH 035/521] Client Python update by Travis Build 4286 --- README.md | 2 +- docs/V1Devices.md | 1 + docs/V1ResourceRequirements.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_devices.py | 30 ++++++++++++++++++++- kubevirt/models/v1_resource_requirements.py | 30 ++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 66 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 223b19fc..8cfafa07 100644 --- a/README.md +++ b/README.md @@ -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: v0.7.0-108-g5d360737 +- Package version: v0.7.0-122-gf59c0f83 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index 81b7cff6..cf4b5f3d 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**autoattach_graphics_device** | **bool** | Wheater to attach the default graphics device or not. VNC will not be available if set to false. Defaults to true. | [optional] **autoattach_pod_interface** | **bool** | Whether to attach a pod network interface. Defaults to true. | [optional] **disks** | [**list[V1Disk]**](V1Disk.md) | Disks describes disks, cdroms, floppy and luns which are connected to the vmi. | [optional] **interfaces** | [**list[V1Interface]**](V1Interface.md) | Interfaces describe network interfaces which are added to the vm. | [optional] diff --git a/docs/V1ResourceRequirements.md b/docs/V1ResourceRequirements.md index 1ef3f4bd..d221cba2 100644 --- a/docs/V1ResourceRequirements.md +++ b/docs/V1ResourceRequirements.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **limits** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". +optional | [optional] +**overcommit_guest_overhead** | **bool** | Don't ask the scheduler to take the guest-management overhead into account. Instead put the overhead only into the requested memory limits. This can lead to crashes if all memory is in use on a node. Defaults to false. | [optional] **requests** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 4ded8958..65d8d9e3 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.7.0-108-g5d360737" + release_note="Auto-generated client v0.7.0-122-gf59c0f83" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 4c16b849..3436da66 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.7.0-108-g5d360737/python' + self.user_agent = 'Swagger-Codegen/v0.7.0-122-gf59c0f83/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 045ee827..bdde1960 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.7.0-108-g5d360737".\ + "SDK Package Version: v0.7.0-122-gf59c0f83".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index ea4e97a8..c9260e7d 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -31,6 +31,7 @@ class V1Devices(object): and the value is json key in definition. """ swagger_types = { + 'autoattach_graphics_device': 'bool', 'autoattach_pod_interface': 'bool', 'disks': 'list[V1Disk]', 'interfaces': 'list[V1Interface]', @@ -38,22 +39,26 @@ class V1Devices(object): } attribute_map = { + 'autoattach_graphics_device': 'autoattachGraphicsDevice', 'autoattach_pod_interface': 'autoattachPodInterface', 'disks': 'disks', 'interfaces': 'interfaces', 'watchdog': 'watchdog' } - def __init__(self, autoattach_pod_interface=None, disks=None, interfaces=None, watchdog=None): + def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=None, disks=None, interfaces=None, watchdog=None): """ V1Devices - a model defined in Swagger """ + self._autoattach_graphics_device = None self._autoattach_pod_interface = None self._disks = None self._interfaces = None self._watchdog = None + if autoattach_graphics_device is not None: + self.autoattach_graphics_device = autoattach_graphics_device if autoattach_pod_interface is not None: self.autoattach_pod_interface = autoattach_pod_interface if disks is not None: @@ -63,6 +68,29 @@ def __init__(self, autoattach_pod_interface=None, disks=None, interfaces=None, w if watchdog is not None: self.watchdog = watchdog + @property + def autoattach_graphics_device(self): + """ + Gets the autoattach_graphics_device of this V1Devices. + Wheater to attach the default graphics device or not. VNC will not be available if set to false. Defaults to true. + + :return: The autoattach_graphics_device of this V1Devices. + :rtype: bool + """ + return self._autoattach_graphics_device + + @autoattach_graphics_device.setter + def autoattach_graphics_device(self, autoattach_graphics_device): + """ + Sets the autoattach_graphics_device of this V1Devices. + Wheater to attach the default graphics device or not. VNC will not be available if set to false. Defaults to true. + + :param autoattach_graphics_device: The autoattach_graphics_device of this V1Devices. + :type: bool + """ + + self._autoattach_graphics_device = autoattach_graphics_device + @property def autoattach_pod_interface(self): """ diff --git a/kubevirt/models/v1_resource_requirements.py b/kubevirt/models/v1_resource_requirements.py index ece4b49c..9e8a7331 100644 --- a/kubevirt/models/v1_resource_requirements.py +++ b/kubevirt/models/v1_resource_requirements.py @@ -32,24 +32,29 @@ class V1ResourceRequirements(object): """ swagger_types = { 'limits': 'dict(str, ResourceQuantity)', + 'overcommit_guest_overhead': 'bool', 'requests': 'dict(str, ResourceQuantity)' } attribute_map = { 'limits': 'limits', + 'overcommit_guest_overhead': 'overcommitGuestOverhead', 'requests': 'requests' } - def __init__(self, limits=None, requests=None): + def __init__(self, limits=None, overcommit_guest_overhead=None, requests=None): """ V1ResourceRequirements - a model defined in Swagger """ self._limits = None + self._overcommit_guest_overhead = None self._requests = None if limits is not None: self.limits = limits + if overcommit_guest_overhead is not None: + self.overcommit_guest_overhead = overcommit_guest_overhead if requests is not None: self.requests = requests @@ -76,6 +81,29 @@ def limits(self, limits): self._limits = limits + @property + def overcommit_guest_overhead(self): + """ + Gets the overcommit_guest_overhead of this V1ResourceRequirements. + Don't ask the scheduler to take the guest-management overhead into account. Instead put the overhead only into the requested memory limits. This can lead to crashes if all memory is in use on a node. Defaults to false. + + :return: The overcommit_guest_overhead of this V1ResourceRequirements. + :rtype: bool + """ + return self._overcommit_guest_overhead + + @overcommit_guest_overhead.setter + def overcommit_guest_overhead(self, overcommit_guest_overhead): + """ + Sets the overcommit_guest_overhead of this V1ResourceRequirements. + Don't ask the scheduler to take the guest-management overhead into account. Instead put the overhead only into the requested memory limits. This can lead to crashes if all memory is in use on a node. Defaults to false. + + :param overcommit_guest_overhead: The overcommit_guest_overhead of this V1ResourceRequirements. + :type: bool + """ + + self._overcommit_guest_overhead = overcommit_guest_overhead + @property def requests(self): """ diff --git a/setup.py b/setup.py index 35ec05a8..70ed0ba4 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.7.0-108-g5d360737" +VERSION = "v0.7.0-122-gf59c0f83" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index def3e2be..849a839b 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.7.0-108-g5d360737" +"packageVersion": "v0.7.0-122-gf59c0f83" } From efc4d6c14215f09444d5a8e4805750143f4e440b Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 26 Jul 2018 06:34:07 +0000 Subject: [PATCH 036/521] Client Python update by Travis Build 4285 --- README.md | 2 +- docs/V1Devices.md | 1 - docs/V1ResourceRequirements.md | 1 - git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_devices.py | 30 +-------------------- kubevirt/models/v1_resource_requirements.py | 30 +-------------------- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 8 insertions(+), 66 deletions(-) diff --git a/README.md b/README.md index 8cfafa07..c77a184f 100644 --- a/README.md +++ b/README.md @@ -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: v0.7.0-122-gf59c0f83 +- Package version: v0.7.0-119-g2e1d3efa - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index cf4b5f3d..81b7cff6 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -3,7 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**autoattach_graphics_device** | **bool** | Wheater to attach the default graphics device or not. VNC will not be available if set to false. Defaults to true. | [optional] **autoattach_pod_interface** | **bool** | Whether to attach a pod network interface. Defaults to true. | [optional] **disks** | [**list[V1Disk]**](V1Disk.md) | Disks describes disks, cdroms, floppy and luns which are connected to the vmi. | [optional] **interfaces** | [**list[V1Interface]**](V1Interface.md) | Interfaces describe network interfaces which are added to the vm. | [optional] diff --git a/docs/V1ResourceRequirements.md b/docs/V1ResourceRequirements.md index d221cba2..1ef3f4bd 100644 --- a/docs/V1ResourceRequirements.md +++ b/docs/V1ResourceRequirements.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **limits** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". +optional | [optional] -**overcommit_guest_overhead** | **bool** | Don't ask the scheduler to take the guest-management overhead into account. Instead put the overhead only into the requested memory limits. This can lead to crashes if all memory is in use on a node. Defaults to false. | [optional] **requests** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 65d8d9e3..e238f5ce 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.7.0-122-gf59c0f83" + release_note="Auto-generated client v0.7.0-119-g2e1d3efa" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 3436da66..b3ea30f6 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.7.0-122-gf59c0f83/python' + self.user_agent = 'Swagger-Codegen/v0.7.0-119-g2e1d3efa/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index bdde1960..6ca5aaa0 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.7.0-122-gf59c0f83".\ + "SDK Package Version: v0.7.0-119-g2e1d3efa".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index c9260e7d..ea4e97a8 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -31,7 +31,6 @@ class V1Devices(object): and the value is json key in definition. """ swagger_types = { - 'autoattach_graphics_device': 'bool', 'autoattach_pod_interface': 'bool', 'disks': 'list[V1Disk]', 'interfaces': 'list[V1Interface]', @@ -39,26 +38,22 @@ class V1Devices(object): } attribute_map = { - 'autoattach_graphics_device': 'autoattachGraphicsDevice', 'autoattach_pod_interface': 'autoattachPodInterface', 'disks': 'disks', 'interfaces': 'interfaces', 'watchdog': 'watchdog' } - def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=None, disks=None, interfaces=None, watchdog=None): + def __init__(self, autoattach_pod_interface=None, disks=None, interfaces=None, watchdog=None): """ V1Devices - a model defined in Swagger """ - self._autoattach_graphics_device = None self._autoattach_pod_interface = None self._disks = None self._interfaces = None self._watchdog = None - if autoattach_graphics_device is not None: - self.autoattach_graphics_device = autoattach_graphics_device if autoattach_pod_interface is not None: self.autoattach_pod_interface = autoattach_pod_interface if disks is not None: @@ -68,29 +63,6 @@ def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=Non if watchdog is not None: self.watchdog = watchdog - @property - def autoattach_graphics_device(self): - """ - Gets the autoattach_graphics_device of this V1Devices. - Wheater to attach the default graphics device or not. VNC will not be available if set to false. Defaults to true. - - :return: The autoattach_graphics_device of this V1Devices. - :rtype: bool - """ - return self._autoattach_graphics_device - - @autoattach_graphics_device.setter - def autoattach_graphics_device(self, autoattach_graphics_device): - """ - Sets the autoattach_graphics_device of this V1Devices. - Wheater to attach the default graphics device or not. VNC will not be available if set to false. Defaults to true. - - :param autoattach_graphics_device: The autoattach_graphics_device of this V1Devices. - :type: bool - """ - - self._autoattach_graphics_device = autoattach_graphics_device - @property def autoattach_pod_interface(self): """ diff --git a/kubevirt/models/v1_resource_requirements.py b/kubevirt/models/v1_resource_requirements.py index 9e8a7331..ece4b49c 100644 --- a/kubevirt/models/v1_resource_requirements.py +++ b/kubevirt/models/v1_resource_requirements.py @@ -32,29 +32,24 @@ class V1ResourceRequirements(object): """ swagger_types = { 'limits': 'dict(str, ResourceQuantity)', - 'overcommit_guest_overhead': 'bool', 'requests': 'dict(str, ResourceQuantity)' } attribute_map = { 'limits': 'limits', - 'overcommit_guest_overhead': 'overcommitGuestOverhead', 'requests': 'requests' } - def __init__(self, limits=None, overcommit_guest_overhead=None, requests=None): + def __init__(self, limits=None, requests=None): """ V1ResourceRequirements - a model defined in Swagger """ self._limits = None - self._overcommit_guest_overhead = None self._requests = None if limits is not None: self.limits = limits - if overcommit_guest_overhead is not None: - self.overcommit_guest_overhead = overcommit_guest_overhead if requests is not None: self.requests = requests @@ -81,29 +76,6 @@ def limits(self, limits): self._limits = limits - @property - def overcommit_guest_overhead(self): - """ - Gets the overcommit_guest_overhead of this V1ResourceRequirements. - Don't ask the scheduler to take the guest-management overhead into account. Instead put the overhead only into the requested memory limits. This can lead to crashes if all memory is in use on a node. Defaults to false. - - :return: The overcommit_guest_overhead of this V1ResourceRequirements. - :rtype: bool - """ - return self._overcommit_guest_overhead - - @overcommit_guest_overhead.setter - def overcommit_guest_overhead(self, overcommit_guest_overhead): - """ - Sets the overcommit_guest_overhead of this V1ResourceRequirements. - Don't ask the scheduler to take the guest-management overhead into account. Instead put the overhead only into the requested memory limits. This can lead to crashes if all memory is in use on a node. Defaults to false. - - :param overcommit_guest_overhead: The overcommit_guest_overhead of this V1ResourceRequirements. - :type: bool - """ - - self._overcommit_guest_overhead = overcommit_guest_overhead - @property def requests(self): """ diff --git a/setup.py b/setup.py index 70ed0ba4..85f01c2b 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.7.0-122-gf59c0f83" +VERSION = "v0.7.0-119-g2e1d3efa" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 849a839b..35364ac3 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.7.0-122-gf59c0f83" +"packageVersion": "v0.7.0-119-g2e1d3efa" } From 15fd594c81d6c914d875413bb33264c94d98851b Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 26 Jul 2018 11:18:25 +0000 Subject: [PATCH 037/521] Client Python update by Travis Build 4297 --- README.md | 2 +- docs/V1Devices.md | 1 + docs/V1ResourceRequirements.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_devices.py | 30 ++++++++++++++++++++- kubevirt/models/v1_resource_requirements.py | 30 ++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 66 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index c77a184f..aeb3e3c1 100644 --- a/README.md +++ b/README.md @@ -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: v0.7.0-119-g2e1d3efa +- Package version: v0.7.0-126-gddc099e2 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index 81b7cff6..cf4b5f3d 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**autoattach_graphics_device** | **bool** | Wheater to attach the default graphics device or not. VNC will not be available if set to false. Defaults to true. | [optional] **autoattach_pod_interface** | **bool** | Whether to attach a pod network interface. Defaults to true. | [optional] **disks** | [**list[V1Disk]**](V1Disk.md) | Disks describes disks, cdroms, floppy and luns which are connected to the vmi. | [optional] **interfaces** | [**list[V1Interface]**](V1Interface.md) | Interfaces describe network interfaces which are added to the vm. | [optional] diff --git a/docs/V1ResourceRequirements.md b/docs/V1ResourceRequirements.md index 1ef3f4bd..d221cba2 100644 --- a/docs/V1ResourceRequirements.md +++ b/docs/V1ResourceRequirements.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **limits** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". +optional | [optional] +**overcommit_guest_overhead** | **bool** | Don't ask the scheduler to take the guest-management overhead into account. Instead put the overhead only into the requested memory limits. This can lead to crashes if all memory is in use on a node. Defaults to false. | [optional] **requests** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index e238f5ce..665590e0 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.7.0-119-g2e1d3efa" + release_note="Auto-generated client v0.7.0-126-gddc099e2" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index b3ea30f6..f0387d20 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.7.0-119-g2e1d3efa/python' + self.user_agent = 'Swagger-Codegen/v0.7.0-126-gddc099e2/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 6ca5aaa0..49d12767 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.7.0-119-g2e1d3efa".\ + "SDK Package Version: v0.7.0-126-gddc099e2".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index ea4e97a8..c9260e7d 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -31,6 +31,7 @@ class V1Devices(object): and the value is json key in definition. """ swagger_types = { + 'autoattach_graphics_device': 'bool', 'autoattach_pod_interface': 'bool', 'disks': 'list[V1Disk]', 'interfaces': 'list[V1Interface]', @@ -38,22 +39,26 @@ class V1Devices(object): } attribute_map = { + 'autoattach_graphics_device': 'autoattachGraphicsDevice', 'autoattach_pod_interface': 'autoattachPodInterface', 'disks': 'disks', 'interfaces': 'interfaces', 'watchdog': 'watchdog' } - def __init__(self, autoattach_pod_interface=None, disks=None, interfaces=None, watchdog=None): + def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=None, disks=None, interfaces=None, watchdog=None): """ V1Devices - a model defined in Swagger """ + self._autoattach_graphics_device = None self._autoattach_pod_interface = None self._disks = None self._interfaces = None self._watchdog = None + if autoattach_graphics_device is not None: + self.autoattach_graphics_device = autoattach_graphics_device if autoattach_pod_interface is not None: self.autoattach_pod_interface = autoattach_pod_interface if disks is not None: @@ -63,6 +68,29 @@ def __init__(self, autoattach_pod_interface=None, disks=None, interfaces=None, w if watchdog is not None: self.watchdog = watchdog + @property + def autoattach_graphics_device(self): + """ + Gets the autoattach_graphics_device of this V1Devices. + Wheater to attach the default graphics device or not. VNC will not be available if set to false. Defaults to true. + + :return: The autoattach_graphics_device of this V1Devices. + :rtype: bool + """ + return self._autoattach_graphics_device + + @autoattach_graphics_device.setter + def autoattach_graphics_device(self, autoattach_graphics_device): + """ + Sets the autoattach_graphics_device of this V1Devices. + Wheater to attach the default graphics device or not. VNC will not be available if set to false. Defaults to true. + + :param autoattach_graphics_device: The autoattach_graphics_device of this V1Devices. + :type: bool + """ + + self._autoattach_graphics_device = autoattach_graphics_device + @property def autoattach_pod_interface(self): """ diff --git a/kubevirt/models/v1_resource_requirements.py b/kubevirt/models/v1_resource_requirements.py index ece4b49c..9e8a7331 100644 --- a/kubevirt/models/v1_resource_requirements.py +++ b/kubevirt/models/v1_resource_requirements.py @@ -32,24 +32,29 @@ class V1ResourceRequirements(object): """ swagger_types = { 'limits': 'dict(str, ResourceQuantity)', + 'overcommit_guest_overhead': 'bool', 'requests': 'dict(str, ResourceQuantity)' } attribute_map = { 'limits': 'limits', + 'overcommit_guest_overhead': 'overcommitGuestOverhead', 'requests': 'requests' } - def __init__(self, limits=None, requests=None): + def __init__(self, limits=None, overcommit_guest_overhead=None, requests=None): """ V1ResourceRequirements - a model defined in Swagger """ self._limits = None + self._overcommit_guest_overhead = None self._requests = None if limits is not None: self.limits = limits + if overcommit_guest_overhead is not None: + self.overcommit_guest_overhead = overcommit_guest_overhead if requests is not None: self.requests = requests @@ -76,6 +81,29 @@ def limits(self, limits): self._limits = limits + @property + def overcommit_guest_overhead(self): + """ + Gets the overcommit_guest_overhead of this V1ResourceRequirements. + Don't ask the scheduler to take the guest-management overhead into account. Instead put the overhead only into the requested memory limits. This can lead to crashes if all memory is in use on a node. Defaults to false. + + :return: The overcommit_guest_overhead of this V1ResourceRequirements. + :rtype: bool + """ + return self._overcommit_guest_overhead + + @overcommit_guest_overhead.setter + def overcommit_guest_overhead(self, overcommit_guest_overhead): + """ + Sets the overcommit_guest_overhead of this V1ResourceRequirements. + Don't ask the scheduler to take the guest-management overhead into account. Instead put the overhead only into the requested memory limits. This can lead to crashes if all memory is in use on a node. Defaults to false. + + :param overcommit_guest_overhead: The overcommit_guest_overhead of this V1ResourceRequirements. + :type: bool + """ + + self._overcommit_guest_overhead = overcommit_guest_overhead + @property def requests(self): """ diff --git a/setup.py b/setup.py index 85f01c2b..cd59ab1a 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.7.0-119-g2e1d3efa" +VERSION = "v0.7.0-126-gddc099e2" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 35364ac3..5627aac0 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.7.0-119-g2e1d3efa" +"packageVersion": "v0.7.0-126-gddc099e2" } From 6117b09a5d181fff80a6d4fdf79815b4ecef7fa7 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 8 Aug 2018 12:16:54 +0000 Subject: [PATCH 038/521] Client Python update by Travis Build 4430 --- README.md | 2 +- docs/V1Memory.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_memory.py | 30 +++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index aeb3e3c1..48a24572 100644 --- a/README.md +++ b/README.md @@ -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: v0.7.0-126-gddc099e2 +- Package version: v0.7.0-193-g1628128e - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Memory.md b/docs/V1Memory.md index b5ef1946..43b52499 100644 --- a/docs/V1Memory.md +++ b/docs/V1Memory.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**guest** | **str** | Guest allows to specifying the amount of memory which is visible inside the Guest OS. The Guest must lie between Requests and Limits from the resources section. Defaults to the requested memory in the resources section if not specified. + optional | [optional] **hugepages** | [**V1Hugepages**](V1Hugepages.md) | Hugepages allow to use hugepages for the VirtualMachineInstance instead of regular memory. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 665590e0..c96f7b63 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.7.0-126-gddc099e2" + release_note="Auto-generated client v0.7.0-193-g1628128e" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index f0387d20..e23a0f6d 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.7.0-126-gddc099e2/python' + self.user_agent = 'Swagger-Codegen/v0.7.0-193-g1628128e/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 49d12767..ab537cda 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.7.0-126-gddc099e2".\ + "SDK Package Version: v0.7.0-193-g1628128e".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_memory.py b/kubevirt/models/v1_memory.py index b42c3601..20c5b349 100644 --- a/kubevirt/models/v1_memory.py +++ b/kubevirt/models/v1_memory.py @@ -31,23 +31,51 @@ class V1Memory(object): and the value is json key in definition. """ swagger_types = { + 'guest': 'str', 'hugepages': 'V1Hugepages' } attribute_map = { + 'guest': 'guest', 'hugepages': 'hugepages' } - def __init__(self, hugepages=None): + def __init__(self, guest=None, hugepages=None): """ V1Memory - a model defined in Swagger """ + self._guest = None self._hugepages = None + if guest is not None: + self.guest = guest if hugepages is not None: self.hugepages = hugepages + @property + def guest(self): + """ + Gets the guest of this V1Memory. + Guest allows to specifying the amount of memory which is visible inside the Guest OS. The Guest must lie between Requests and Limits from the resources section. Defaults to the requested memory in the resources section if not specified. + optional + + :return: The guest of this V1Memory. + :rtype: str + """ + return self._guest + + @guest.setter + def guest(self, guest): + """ + Sets the guest of this V1Memory. + Guest allows to specifying the amount of memory which is visible inside the Guest OS. The Guest must lie between Requests and Limits from the resources section. Defaults to the requested memory in the resources section if not specified. + optional + + :param guest: The guest of this V1Memory. + :type: str + """ + + self._guest = guest + @property def hugepages(self): """ diff --git a/setup.py b/setup.py index cd59ab1a..7932e1ed 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.7.0-126-gddc099e2" +VERSION = "v0.7.0-193-g1628128e" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 5627aac0..6b334af4 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.7.0-126-gddc099e2" +"packageVersion": "v0.7.0-193-g1628128e" } From 76e0e7b6f78ad200471235b05f5fde4181c053c6 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 9 Aug 2018 12:24:56 +0000 Subject: [PATCH 039/521] Client Python update by Travis Build 4447 --- README.md | 2 +- docs/V1Disk.md | 2 +- docs/V1Interface.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_disk.py | 4 ++-- kubevirt/models/v1_interface.py | 30 +++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 39 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 48a24572..c529c139 100644 --- a/README.md +++ b/README.md @@ -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: v0.7.0-193-g1628128e +- Package version: v0.7.0-201-gaf75d488 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Disk.md b/docs/V1Disk.md index 72c52b6b..d02c6504 100644 --- a/docs/V1Disk.md +++ b/docs/V1Disk.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**boot_order** | **int** | BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Disks without a boot order are not tried if a disk with a boot order exists. +optional | [optional] +**boot_order** | **int** | BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each disk or interface that has a boot order must have a unique value. Disks without a boot order are not tried if a disk with a boot order exists. +optional | [optional] **cdrom** | [**V1CDRomTarget**](V1CDRomTarget.md) | Attach a volume as a cdrom to the vmi. | [optional] **disk** | [**V1DiskTarget**](V1DiskTarget.md) | Attach a volume as a disk to the vmi. | [optional] **floppy** | [**V1FloppyTarget**](V1FloppyTarget.md) | Attach a volume as a floppy to the vmi. | [optional] diff --git a/docs/V1Interface.md b/docs/V1Interface.md index c9b04df7..fabf7f4e 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**boot_order** | **int** | BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each interface or disk that has a boot order must have a unique value. Interfaces without a boot order are not tried. +optional | [optional] **bridge** | [**V1InterfaceBridge**](V1InterfaceBridge.md) | | [optional] **mac_address** | **str** | Interface MAC address. For example: de:ad:00:00:be:af or DE-AD-00-00-BE-AF. | [optional] **model** | **str** | Interface model. One of: e1000, e1000e, ne2k_pci, pcnet, rtl8139, virtio. Defaults to virtio. | [optional] diff --git a/git_push.sh b/git_push.sh index c96f7b63..4d583db7 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.7.0-193-g1628128e" + release_note="Auto-generated client v0.7.0-201-gaf75d488" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index e23a0f6d..6c914a82 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.7.0-193-g1628128e/python' + self.user_agent = 'Swagger-Codegen/v0.7.0-201-gaf75d488/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index ab537cda..2768d107 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.7.0-193-g1628128e".\ + "SDK Package Version: v0.7.0-201-gaf75d488".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_disk.py b/kubevirt/models/v1_disk.py index a1ee2ea3..065fef0a 100644 --- a/kubevirt/models/v1_disk.py +++ b/kubevirt/models/v1_disk.py @@ -85,7 +85,7 @@ def __init__(self, boot_order=None, cdrom=None, disk=None, floppy=None, lun=None def boot_order(self): """ Gets the boot_order of this V1Disk. - BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Disks without a boot order are not tried if a disk with a boot order exists. +optional + BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each disk or interface that has a boot order must have a unique value. Disks without a boot order are not tried if a disk with a boot order exists. +optional :return: The boot_order of this V1Disk. :rtype: int @@ -96,7 +96,7 @@ def boot_order(self): def boot_order(self, boot_order): """ Sets the boot_order of this V1Disk. - BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Disks without a boot order are not tried if a disk with a boot order exists. +optional + BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each disk or interface that has a boot order must have a unique value. Disks without a boot order are not tried if a disk with a boot order exists. +optional :param boot_order: The boot_order of this V1Disk. :type: int diff --git a/kubevirt/models/v1_interface.py b/kubevirt/models/v1_interface.py index 5fbb423d..18c4d287 100644 --- a/kubevirt/models/v1_interface.py +++ b/kubevirt/models/v1_interface.py @@ -31,6 +31,7 @@ class V1Interface(object): and the value is json key in definition. """ swagger_types = { + 'boot_order': 'int', 'bridge': 'V1InterfaceBridge', 'mac_address': 'str', 'model': 'str', @@ -40,6 +41,7 @@ class V1Interface(object): } attribute_map = { + 'boot_order': 'bootOrder', 'bridge': 'bridge', 'mac_address': 'macAddress', 'model': 'model', @@ -48,11 +50,12 @@ class V1Interface(object): 'slirp': 'slirp' } - def __init__(self, bridge=None, mac_address=None, model=None, name=None, ports=None, slirp=None): + def __init__(self, boot_order=None, bridge=None, mac_address=None, model=None, name=None, ports=None, slirp=None): """ V1Interface - a model defined in Swagger """ + self._boot_order = None self._bridge = None self._mac_address = None self._model = None @@ -60,6 +63,8 @@ def __init__(self, bridge=None, mac_address=None, model=None, name=None, ports=N self._ports = None self._slirp = None + if boot_order is not None: + self.boot_order = boot_order if bridge is not None: self.bridge = bridge if mac_address is not None: @@ -72,6 +77,29 @@ def __init__(self, bridge=None, mac_address=None, model=None, name=None, ports=N if slirp is not None: self.slirp = slirp + @property + def boot_order(self): + """ + Gets the boot_order of this V1Interface. + BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each interface or disk that has a boot order must have a unique value. Interfaces without a boot order are not tried. +optional + + :return: The boot_order of this V1Interface. + :rtype: int + """ + return self._boot_order + + @boot_order.setter + def boot_order(self, boot_order): + """ + Sets the boot_order of this V1Interface. + BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each interface or disk that has a boot order must have a unique value. Interfaces without a boot order are not tried. +optional + + :param boot_order: The boot_order of this V1Interface. + :type: int + """ + + self._boot_order = boot_order + @property def bridge(self): """ diff --git a/setup.py b/setup.py index 7932e1ed..1c9a05c3 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.7.0-193-g1628128e" +VERSION = "v0.7.0-201-gaf75d488" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 6b334af4..15725cfd 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.7.0-193-g1628128e" +"packageVersion": "v0.7.0-201-gaf75d488" } From ae20108f6827c26647b191ebfcc11a827b557ab1 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 13 Aug 2018 16:00:06 +0000 Subject: [PATCH 040/521] Client Python update by Travis Build 4528 --- README.md | 7 +- docs/BigInt.md | 11 - docs/InfDec.md | 11 - docs/ResourceInfDecAmount.md | 10 - docs/ResourceInt64Amount.md | 11 - docs/ResourceQuantity.md | 13 -- docs/V1LabelSelector.md | 2 +- docs/V1ObjectMeta.md | 4 +- docs/V1ResourceRequirements.md | 4 +- docs/V1VirtualMachineInstanceSpec.md | 2 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 87 -------- kubevirt/__init__.py | 5 - kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 5 - kubevirt/models/big_int.py | 151 ------------- kubevirt/models/inf_dec.py | 151 ------------- kubevirt/models/resource_inf_dec_amount.py | 124 ----------- kubevirt/models/resource_int64_amount.py | 151 ------------- kubevirt/models/resource_quantity.py | 205 ------------------ kubevirt/models/v1_label_selector.py | 6 +- kubevirt/models/v1_object_meta.py | 12 +- kubevirt/models/v1_resource_requirements.py | 12 +- .../v1_virtual_machine_instance_spec.py | 6 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_big_int.py | 44 ---- test/test_inf_dec.py | 44 ---- test/test_resource_inf_dec_amount.py | 44 ---- test/test_resource_int64_amount.py | 44 ---- test/test_resource_quantity.py | 44 ---- 32 files changed, 30 insertions(+), 1190 deletions(-) delete mode 100644 docs/BigInt.md delete mode 100644 docs/InfDec.md delete mode 100644 docs/ResourceInfDecAmount.md delete mode 100644 docs/ResourceInt64Amount.md delete mode 100644 docs/ResourceQuantity.md delete mode 100644 kubevirt/models/big_int.py delete mode 100644 kubevirt/models/inf_dec.py delete mode 100644 kubevirt/models/resource_inf_dec_amount.py delete mode 100644 kubevirt/models/resource_int64_amount.py delete mode 100644 kubevirt/models/resource_quantity.py delete mode 100644 test/test_big_int.py delete mode 100644 test/test_inf_dec.py delete mode 100644 test/test_resource_inf_dec_amount.py delete mode 100644 test/test_resource_int64_amount.py delete mode 100644 test/test_resource_quantity.py diff --git a/README.md b/README.md index c529c139..99c5cb9d 100644 --- a/README.md +++ b/README.md @@ -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: v0.7.0-201-gaf75d488 +- Package version: v0.7.0-222-g5ea67b28 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -127,11 +127,6 @@ Class | Method | HTTP request | Description ## Documentation For Models - - [BigInt](docs/BigInt.md) - - [InfDec](docs/InfDec.md) - - [ResourceInfDecAmount](docs/ResourceInfDecAmount.md) - - [ResourceInt64Amount](docs/ResourceInt64Amount.md) - - [ResourceQuantity](docs/ResourceQuantity.md) - [V1APIGroup](docs/V1APIGroup.md) - [V1APIGroupList](docs/V1APIGroupList.md) - [V1APIResource](docs/V1APIResource.md) diff --git a/docs/BigInt.md b/docs/BigInt.md deleted file mode 100644 index d522b83d..00000000 --- a/docs/BigInt.md +++ /dev/null @@ -1,11 +0,0 @@ -# BigInt - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**abs** | [**list[BigWord]**](BigWord.md) | | -**neg** | **bool** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InfDec.md b/docs/InfDec.md deleted file mode 100644 index 6eded2d5..00000000 --- a/docs/InfDec.md +++ /dev/null @@ -1,11 +0,0 @@ -# InfDec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**scale** | [**InfScale**](InfScale.md) | | -**unscaled** | [**BigInt**](BigInt.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ResourceInfDecAmount.md b/docs/ResourceInfDecAmount.md deleted file mode 100644 index 987283da..00000000 --- a/docs/ResourceInfDecAmount.md +++ /dev/null @@ -1,10 +0,0 @@ -# ResourceInfDecAmount - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**dec** | [**InfDec**](InfDec.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ResourceInt64Amount.md b/docs/ResourceInt64Amount.md deleted file mode 100644 index 2e64489e..00000000 --- a/docs/ResourceInt64Amount.md +++ /dev/null @@ -1,11 +0,0 @@ -# ResourceInt64Amount - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**scale** | [**ResourceScale**](ResourceScale.md) | | -**value** | **int** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ResourceQuantity.md b/docs/ResourceQuantity.md deleted file mode 100644 index a1c8fad8..00000000 --- a/docs/ResourceQuantity.md +++ /dev/null @@ -1,13 +0,0 @@ -# ResourceQuantity - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**format** | **str** | | -**d** | [**ResourceInfDecAmount**](ResourceInfDecAmount.md) | | -**i** | [**ResourceInt64Amount**](ResourceInt64Amount.md) | | -**s** | **str** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1LabelSelector.md b/docs/V1LabelSelector.md index bb3c52d2..1e0f7538 100644 --- a/docs/V1LabelSelector.md +++ b/docs/V1LabelSelector.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **match_expressions** | [**list[V1LabelSelectorRequirement]**](V1LabelSelectorRequirement.md) | matchExpressions is a list of label selector requirements. The requirements are ANDed. | [optional] -**match_labels** | **dict(str, str)** | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. | [optional] +**match_labels** | **object** | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1ObjectMeta.md b/docs/V1ObjectMeta.md index 91a34a7c..910ecede 100644 --- a/docs/V1ObjectMeta.md +++ b/docs/V1ObjectMeta.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations | [optional] +**annotations** | **object** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations | [optional] **cluster_name** | **str** | The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. | [optional] **creation_timestamp** | **str** | CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] **deletion_grace_period_seconds** | **int** | Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. | [optional] @@ -12,7 +12,7 @@ Name | Type | Description | Notes **generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency | [optional] **generation** | **int** | A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. | [optional] **initializers** | [**V1Initializers**](V1Initializers.md) | An initializer is a controller which enforces some system invariant at object creation time. This field is a list of initializers that have not yet acted on this object. If nil or empty, this object has been completely initialized. Otherwise, the object is considered uninitialized and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to observe uninitialized objects. When an object is created, the system will populate this list with the current set of initializers. Only privileged users may set or modify this list. Once it is empty, it may not be modified further by any user. | [optional] -**labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels | [optional] +**labels** | **object** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels | [optional] **name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] **namespace** | **str** | Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces | [optional] **owner_references** | [**list[V1OwnerReference]**](V1OwnerReference.md) | List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. | [optional] diff --git a/docs/V1ResourceRequirements.md b/docs/V1ResourceRequirements.md index d221cba2..f10efcbc 100644 --- a/docs/V1ResourceRequirements.md +++ b/docs/V1ResourceRequirements.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**limits** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". +optional | [optional] +**limits** | **object** | Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". +optional | [optional] **overcommit_guest_overhead** | **bool** | Don't ask the scheduler to take the guest-management overhead into account. Instead put the overhead only into the requested memory limits. This can lead to crashes if all memory is in use on a node. Defaults to false. | [optional] -**requests** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". +optional | [optional] +**requests** | **object** | Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceSpec.md b/docs/V1VirtualMachineInstanceSpec.md index bd9c8b15..21fa8981 100644 --- a/docs/V1VirtualMachineInstanceSpec.md +++ b/docs/V1VirtualMachineInstanceSpec.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **domain** | [**V1DomainSpec**](V1DomainSpec.md) | Specification of the desired behavior of the VirtualMachineInstance on the host. | **hostname** | **str** | Specifies the hostname of the vmi If not specified, the hostname will be set to the name of the vmi, if dhcp or cloud-init is configured properly. +optional | [optional] **networks** | [**list[V1Network]**](V1Network.md) | List of networks that can be attached to a vm's virtual interface. | [optional] -**node_selector** | **dict(str, str)** | NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional | [optional] +**node_selector** | **object** | NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional | [optional] **subdomain** | **str** | If specified, the fully qualified vmi hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the vmi will not have a domainname at all. The DNS entry will resolve to the vmi, no matter if the vmi itself can pick up a hostname. +optional | [optional] **termination_grace_period_seconds** | **int** | Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. | [optional] **tolerations** | [**list[V1Toleration]**](V1Toleration.md) | If toleration is specified, obey all the toleration rules. | [optional] diff --git a/git_push.sh b/git_push.sh index 4d583db7..28486c08 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.7.0-201-gaf75d488" + release_note="Auto-generated client v0.7.0-222-g5ea67b28" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 7ada95a3..2fb671fa 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -2,21 +2,6 @@ [main] INFO io.swagger.codegen.ignore.CodegenIgnoreProcessor - No .swagger-codegen-ignore file found. [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default appVersion set to 1.0.0 [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default version set to 1.0.0 -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/big_int.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_big_int.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/BigInt.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/inf_dec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_inf_dec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/InfDec.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/resource_inf_dec_amount.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_resource_inf_dec_amount.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/ResourceInfDecAmount.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/resource_int64_amount.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_resource_int64_amount.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/ResourceInt64Amount.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/resource_quantity.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_resource_quantity.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/ResourceQuantity.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_api_group.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_api_group.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1APIGroup.md @@ -363,78 +348,6 @@ [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_group_1` [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_resources_0` [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index c4a70791..c88a6f03 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -14,11 +14,6 @@ from __future__ import absolute_import # import models into sdk package -from .models.big_int import BigInt -from .models.inf_dec import InfDec -from .models.resource_inf_dec_amount import ResourceInfDecAmount -from .models.resource_int64_amount import ResourceInt64Amount -from .models.resource_quantity import ResourceQuantity from .models.v1_api_group import V1APIGroup from .models.v1_api_group_list import V1APIGroupList from .models.v1_api_resource import V1APIResource diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 6c914a82..7a901331 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.7.0-201-gaf75d488/python' + self.user_agent = 'Swagger-Codegen/v0.7.0-222-g5ea67b28/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 2768d107..eac4680b 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.7.0-201-gaf75d488".\ + "SDK Package Version: v0.7.0-222-g5ea67b28".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 3a4fdbe0..9d5f574b 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -14,11 +14,6 @@ from __future__ import absolute_import # import models into model package -from .big_int import BigInt -from .inf_dec import InfDec -from .resource_inf_dec_amount import ResourceInfDecAmount -from .resource_int64_amount import ResourceInt64Amount -from .resource_quantity import ResourceQuantity from .v1_api_group import V1APIGroup from .v1_api_group_list import V1APIGroupList from .v1_api_resource import V1APIResource diff --git a/kubevirt/models/big_int.py b/kubevirt/models/big_int.py deleted file mode 100644 index 0043ceaa..00000000 --- a/kubevirt/models/big_int.py +++ /dev/null @@ -1,151 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class BigInt(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'abs': 'list[BigWord]', - 'neg': 'bool' - } - - attribute_map = { - 'abs': 'abs', - 'neg': 'neg' - } - - def __init__(self, abs=None, neg=None): - """ - BigInt - a model defined in Swagger - """ - - self._abs = None - self._neg = None - - self.abs = abs - self.neg = neg - - @property - def abs(self): - """ - Gets the abs of this BigInt. - - :return: The abs of this BigInt. - :rtype: list[BigWord] - """ - return self._abs - - @abs.setter - def abs(self, abs): - """ - Sets the abs of this BigInt. - - :param abs: The abs of this BigInt. - :type: list[BigWord] - """ - if abs is None: - raise ValueError("Invalid value for `abs`, must not be `None`") - - self._abs = abs - - @property - def neg(self): - """ - Gets the neg of this BigInt. - - :return: The neg of this BigInt. - :rtype: bool - """ - return self._neg - - @neg.setter - def neg(self, neg): - """ - Sets the neg of this BigInt. - - :param neg: The neg of this BigInt. - :type: bool - """ - if neg is None: - raise ValueError("Invalid value for `neg`, must not be `None`") - - self._neg = neg - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, BigInt): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/inf_dec.py b/kubevirt/models/inf_dec.py deleted file mode 100644 index 02213f18..00000000 --- a/kubevirt/models/inf_dec.py +++ /dev/null @@ -1,151 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InfDec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'scale': 'InfScale', - 'unscaled': 'BigInt' - } - - attribute_map = { - 'scale': 'scale', - 'unscaled': 'unscaled' - } - - def __init__(self, scale=None, unscaled=None): - """ - InfDec - a model defined in Swagger - """ - - self._scale = None - self._unscaled = None - - self.scale = scale - self.unscaled = unscaled - - @property - def scale(self): - """ - Gets the scale of this InfDec. - - :return: The scale of this InfDec. - :rtype: InfScale - """ - return self._scale - - @scale.setter - def scale(self, scale): - """ - Sets the scale of this InfDec. - - :param scale: The scale of this InfDec. - :type: InfScale - """ - if scale is None: - raise ValueError("Invalid value for `scale`, must not be `None`") - - self._scale = scale - - @property - def unscaled(self): - """ - Gets the unscaled of this InfDec. - - :return: The unscaled of this InfDec. - :rtype: BigInt - """ - return self._unscaled - - @unscaled.setter - def unscaled(self, unscaled): - """ - Sets the unscaled of this InfDec. - - :param unscaled: The unscaled of this InfDec. - :type: BigInt - """ - if unscaled is None: - raise ValueError("Invalid value for `unscaled`, must not be `None`") - - self._unscaled = unscaled - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InfDec): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/resource_inf_dec_amount.py b/kubevirt/models/resource_inf_dec_amount.py deleted file mode 100644 index 9119f85e..00000000 --- a/kubevirt/models/resource_inf_dec_amount.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class ResourceInfDecAmount(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'dec': 'InfDec' - } - - attribute_map = { - 'dec': 'Dec' - } - - def __init__(self, dec=None): - """ - ResourceInfDecAmount - a model defined in Swagger - """ - - self._dec = None - - self.dec = dec - - @property - def dec(self): - """ - Gets the dec of this ResourceInfDecAmount. - - :return: The dec of this ResourceInfDecAmount. - :rtype: InfDec - """ - return self._dec - - @dec.setter - def dec(self, dec): - """ - Sets the dec of this ResourceInfDecAmount. - - :param dec: The dec of this ResourceInfDecAmount. - :type: InfDec - """ - if dec is None: - raise ValueError("Invalid value for `dec`, must not be `None`") - - self._dec = dec - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, ResourceInfDecAmount): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/resource_int64_amount.py b/kubevirt/models/resource_int64_amount.py deleted file mode 100644 index da24cc38..00000000 --- a/kubevirt/models/resource_int64_amount.py +++ /dev/null @@ -1,151 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class ResourceInt64Amount(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'scale': 'ResourceScale', - 'value': 'int' - } - - attribute_map = { - 'scale': 'scale', - 'value': 'value' - } - - def __init__(self, scale=None, value=None): - """ - ResourceInt64Amount - a model defined in Swagger - """ - - self._scale = None - self._value = None - - self.scale = scale - self.value = value - - @property - def scale(self): - """ - Gets the scale of this ResourceInt64Amount. - - :return: The scale of this ResourceInt64Amount. - :rtype: ResourceScale - """ - return self._scale - - @scale.setter - def scale(self, scale): - """ - Sets the scale of this ResourceInt64Amount. - - :param scale: The scale of this ResourceInt64Amount. - :type: ResourceScale - """ - if scale is None: - raise ValueError("Invalid value for `scale`, must not be `None`") - - self._scale = scale - - @property - def value(self): - """ - Gets the value of this ResourceInt64Amount. - - :return: The value of this ResourceInt64Amount. - :rtype: int - """ - return self._value - - @value.setter - def value(self, value): - """ - Sets the value of this ResourceInt64Amount. - - :param value: The value of this ResourceInt64Amount. - :type: int - """ - if value is None: - raise ValueError("Invalid value for `value`, must not be `None`") - - self._value = value - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, ResourceInt64Amount): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/resource_quantity.py b/kubevirt/models/resource_quantity.py deleted file mode 100644 index 549bb51a..00000000 --- a/kubevirt/models/resource_quantity.py +++ /dev/null @@ -1,205 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class ResourceQuantity(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'format': 'str', - 'd': 'ResourceInfDecAmount', - 'i': 'ResourceInt64Amount', - 's': 'str' - } - - attribute_map = { - 'format': 'Format', - 'd': 'd', - 'i': 'i', - 's': 's' - } - - def __init__(self, format=None, d=None, i=None, s=None): - """ - ResourceQuantity - a model defined in Swagger - """ - - self._format = None - self._d = None - self._i = None - self._s = None - - self.format = format - self.d = d - self.i = i - self.s = s - - @property - def format(self): - """ - Gets the format of this ResourceQuantity. - - :return: The format of this ResourceQuantity. - :rtype: str - """ - return self._format - - @format.setter - def format(self, format): - """ - Sets the format of this ResourceQuantity. - - :param format: The format of this ResourceQuantity. - :type: str - """ - if format is None: - raise ValueError("Invalid value for `format`, must not be `None`") - - self._format = format - - @property - def d(self): - """ - Gets the d of this ResourceQuantity. - - :return: The d of this ResourceQuantity. - :rtype: ResourceInfDecAmount - """ - return self._d - - @d.setter - def d(self, d): - """ - Sets the d of this ResourceQuantity. - - :param d: The d of this ResourceQuantity. - :type: ResourceInfDecAmount - """ - if d is None: - raise ValueError("Invalid value for `d`, must not be `None`") - - self._d = d - - @property - def i(self): - """ - Gets the i of this ResourceQuantity. - - :return: The i of this ResourceQuantity. - :rtype: ResourceInt64Amount - """ - return self._i - - @i.setter - def i(self, i): - """ - Sets the i of this ResourceQuantity. - - :param i: The i of this ResourceQuantity. - :type: ResourceInt64Amount - """ - if i is None: - raise ValueError("Invalid value for `i`, must not be `None`") - - self._i = i - - @property - def s(self): - """ - Gets the s of this ResourceQuantity. - - :return: The s of this ResourceQuantity. - :rtype: str - """ - return self._s - - @s.setter - def s(self, s): - """ - Sets the s of this ResourceQuantity. - - :param s: The s of this ResourceQuantity. - :type: str - """ - if s is None: - raise ValueError("Invalid value for `s`, must not be `None`") - - self._s = s - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, ResourceQuantity): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_label_selector.py b/kubevirt/models/v1_label_selector.py index eafaa188..bcdad6e5 100644 --- a/kubevirt/models/v1_label_selector.py +++ b/kubevirt/models/v1_label_selector.py @@ -32,7 +32,7 @@ class V1LabelSelector(object): """ swagger_types = { 'match_expressions': 'list[V1LabelSelectorRequirement]', - 'match_labels': 'dict(str, str)' + 'match_labels': 'object' } attribute_map = { @@ -83,7 +83,7 @@ def match_labels(self): matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. :return: The match_labels of this V1LabelSelector. - :rtype: dict(str, str) + :rtype: object """ return self._match_labels @@ -94,7 +94,7 @@ def match_labels(self, match_labels): matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. :param match_labels: The match_labels of this V1LabelSelector. - :type: dict(str, str) + :type: object """ self._match_labels = match_labels diff --git a/kubevirt/models/v1_object_meta.py b/kubevirt/models/v1_object_meta.py index f305461e..34972040 100644 --- a/kubevirt/models/v1_object_meta.py +++ b/kubevirt/models/v1_object_meta.py @@ -31,7 +31,7 @@ class V1ObjectMeta(object): and the value is json key in definition. """ swagger_types = { - 'annotations': 'dict(str, str)', + 'annotations': 'object', 'cluster_name': 'str', 'creation_timestamp': 'str', 'deletion_grace_period_seconds': 'int', @@ -40,7 +40,7 @@ class V1ObjectMeta(object): 'generate_name': 'str', 'generation': 'int', 'initializers': 'V1Initializers', - 'labels': 'dict(str, str)', + 'labels': 'object', 'name': 'str', 'namespace': 'str', 'owner_references': 'list[V1OwnerReference]', @@ -130,7 +130,7 @@ def annotations(self): Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations :return: The annotations of this V1ObjectMeta. - :rtype: dict(str, str) + :rtype: object """ return self._annotations @@ -141,7 +141,7 @@ def annotations(self, annotations): Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations :param annotations: The annotations of this V1ObjectMeta. - :type: dict(str, str) + :type: object """ self._annotations = annotations @@ -337,7 +337,7 @@ def labels(self): Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels :return: The labels of this V1ObjectMeta. - :rtype: dict(str, str) + :rtype: object """ return self._labels @@ -348,7 +348,7 @@ def labels(self, labels): Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels :param labels: The labels of this V1ObjectMeta. - :type: dict(str, str) + :type: object """ self._labels = labels diff --git a/kubevirt/models/v1_resource_requirements.py b/kubevirt/models/v1_resource_requirements.py index 9e8a7331..c894ad0e 100644 --- a/kubevirt/models/v1_resource_requirements.py +++ b/kubevirt/models/v1_resource_requirements.py @@ -31,9 +31,9 @@ class V1ResourceRequirements(object): and the value is json key in definition. """ swagger_types = { - 'limits': 'dict(str, ResourceQuantity)', + 'limits': 'object', 'overcommit_guest_overhead': 'bool', - 'requests': 'dict(str, ResourceQuantity)' + 'requests': 'object' } attribute_map = { @@ -65,7 +65,7 @@ def limits(self): Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". +optional :return: The limits of this V1ResourceRequirements. - :rtype: dict(str, ResourceQuantity) + :rtype: object """ return self._limits @@ -76,7 +76,7 @@ def limits(self, limits): Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". +optional :param limits: The limits of this V1ResourceRequirements. - :type: dict(str, ResourceQuantity) + :type: object """ self._limits = limits @@ -111,7 +111,7 @@ def requests(self): Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". +optional :return: The requests of this V1ResourceRequirements. - :rtype: dict(str, ResourceQuantity) + :rtype: object """ return self._requests @@ -122,7 +122,7 @@ def requests(self, requests): Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". +optional :param requests: The requests of this V1ResourceRequirements. - :type: dict(str, ResourceQuantity) + :type: object """ self._requests = requests diff --git a/kubevirt/models/v1_virtual_machine_instance_spec.py b/kubevirt/models/v1_virtual_machine_instance_spec.py index 97917502..569d3a78 100644 --- a/kubevirt/models/v1_virtual_machine_instance_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_spec.py @@ -35,7 +35,7 @@ class V1VirtualMachineInstanceSpec(object): 'domain': 'V1DomainSpec', 'hostname': 'str', 'networks': 'list[V1Network]', - 'node_selector': 'dict(str, str)', + 'node_selector': 'object', 'subdomain': 'str', 'termination_grace_period_seconds': 'int', 'tolerations': 'list[V1Toleration]', @@ -188,7 +188,7 @@ def node_selector(self): NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional :return: The node_selector of this V1VirtualMachineInstanceSpec. - :rtype: dict(str, str) + :rtype: object """ return self._node_selector @@ -199,7 +199,7 @@ def node_selector(self, node_selector): NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional :param node_selector: The node_selector of this V1VirtualMachineInstanceSpec. - :type: dict(str, str) + :type: object """ self._node_selector = node_selector diff --git a/setup.py b/setup.py index 1c9a05c3..be7da445 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.7.0-201-gaf75d488" +VERSION = "v0.7.0-222-g5ea67b28" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 15725cfd..87a4247a 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.7.0-201-gaf75d488" +"packageVersion": "v0.7.0-222-g5ea67b28" } diff --git a/test/test_big_int.py b/test/test_big_int.py deleted file mode 100644 index fd3d2075..00000000 --- a/test/test_big_int.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.big_int import BigInt - - -class TestBigInt(unittest.TestCase): - """ BigInt unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testBigInt(self): - """ - Test BigInt - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.big_int.BigInt() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inf_dec.py b/test/test_inf_dec.py deleted file mode 100644 index 0e9141c6..00000000 --- a/test/test_inf_dec.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.inf_dec import InfDec - - -class TestInfDec(unittest.TestCase): - """ InfDec unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInfDec(self): - """ - Test InfDec - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.inf_dec.InfDec() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_resource_inf_dec_amount.py b/test/test_resource_inf_dec_amount.py deleted file mode 100644 index a23cedde..00000000 --- a/test/test_resource_inf_dec_amount.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.resource_inf_dec_amount import ResourceInfDecAmount - - -class TestResourceInfDecAmount(unittest.TestCase): - """ ResourceInfDecAmount unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testResourceInfDecAmount(self): - """ - Test ResourceInfDecAmount - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.resource_inf_dec_amount.ResourceInfDecAmount() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_resource_int64_amount.py b/test/test_resource_int64_amount.py deleted file mode 100644 index 7ee23ae0..00000000 --- a/test/test_resource_int64_amount.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.resource_int64_amount import ResourceInt64Amount - - -class TestResourceInt64Amount(unittest.TestCase): - """ ResourceInt64Amount unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testResourceInt64Amount(self): - """ - Test ResourceInt64Amount - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.resource_int64_amount.ResourceInt64Amount() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_resource_quantity.py b/test/test_resource_quantity.py deleted file mode 100644 index 0bdfb38b..00000000 --- a/test/test_resource_quantity.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.resource_quantity import ResourceQuantity - - -class TestResourceQuantity(unittest.TestCase): - """ ResourceQuantity unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testResourceQuantity(self): - """ - Test ResourceQuantity - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.resource_quantity.ResourceQuantity() - pass - - -if __name__ == '__main__': - unittest.main() From 5917ea9390d52fed019fbd11096c73113fb70210 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 14 Aug 2018 14:19:19 +0000 Subject: [PATCH 041/521] Client Python update by Travis Build 4538 --- README.md | 2 +- docs/V1Interface.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_interface.py | 30 +++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 99c5cb9d..750280cf 100644 --- a/README.md +++ b/README.md @@ -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: v0.7.0-222-g5ea67b28 +- Package version: v0.7.0-230-g0e174460 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Interface.md b/docs/V1Interface.md index fabf7f4e..95474b86 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **mac_address** | **str** | Interface MAC address. For example: de:ad:00:00:be:af or DE-AD-00-00-BE-AF. | [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. | +**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] **ports** | [**list[V1Port]**](V1Port.md) | List of ports to be forwarded to the virtual machine. | [optional] **slirp** | [**V1InterfaceSlirp**](V1InterfaceSlirp.md) | | [optional] diff --git a/git_push.sh b/git_push.sh index 28486c08..01a9657c 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.7.0-222-g5ea67b28" + release_note="Auto-generated client v0.7.0-230-g0e174460" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 7a901331..9e0036cb 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.7.0-222-g5ea67b28/python' + self.user_agent = 'Swagger-Codegen/v0.7.0-230-g0e174460/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index eac4680b..1b223868 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.7.0-222-g5ea67b28".\ + "SDK Package Version: v0.7.0-230-g0e174460".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_interface.py b/kubevirt/models/v1_interface.py index 18c4d287..37469b4c 100644 --- a/kubevirt/models/v1_interface.py +++ b/kubevirt/models/v1_interface.py @@ -36,6 +36,7 @@ class V1Interface(object): 'mac_address': 'str', 'model': 'str', 'name': 'str', + 'pci_address': 'str', 'ports': 'list[V1Port]', 'slirp': 'V1InterfaceSlirp' } @@ -46,11 +47,12 @@ class V1Interface(object): 'mac_address': 'macAddress', 'model': 'model', 'name': 'name', + 'pci_address': 'pciAddress', 'ports': 'ports', 'slirp': 'slirp' } - def __init__(self, boot_order=None, bridge=None, mac_address=None, model=None, name=None, ports=None, slirp=None): + def __init__(self, boot_order=None, bridge=None, mac_address=None, model=None, name=None, pci_address=None, ports=None, slirp=None): """ V1Interface - a model defined in Swagger """ @@ -60,6 +62,7 @@ def __init__(self, boot_order=None, bridge=None, mac_address=None, model=None, n self._mac_address = None self._model = None self._name = None + self._pci_address = None self._ports = None self._slirp = None @@ -72,6 +75,8 @@ def __init__(self, boot_order=None, bridge=None, mac_address=None, model=None, n if model is not None: self.model = model self.name = name + if pci_address is not None: + self.pci_address = pci_address if ports is not None: self.ports = ports if slirp is not None: @@ -192,6 +197,29 @@ def name(self, name): self._name = name + @property + def pci_address(self): + """ + Gets the pci_address of this V1Interface. + 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 + + :return: The pci_address of this V1Interface. + :rtype: str + """ + return self._pci_address + + @pci_address.setter + def pci_address(self, pci_address): + """ + Sets the pci_address of this V1Interface. + 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 + + :param pci_address: The pci_address of this V1Interface. + :type: str + """ + + self._pci_address = pci_address + @property def ports(self): """ diff --git a/setup.py b/setup.py index be7da445..4cfed516 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.7.0-222-g5ea67b28" +VERSION = "v0.7.0-230-g0e174460" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 87a4247a..7e9e60da 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.7.0-222-g5ea67b28" +"packageVersion": "v0.7.0-230-g0e174460" } From f2669f945bd4c42b10bbc688a1e3badff275e0be Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 20 Aug 2018 08:51:09 +0000 Subject: [PATCH 042/521] Client Python update by Travis Build 4582 --- README.md | 2 +- git_push.sh | 2 +- kubevirt/__init__.py | 2 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 + kubevirt/models/v1_interface_bridge.py | 67 ++++++++++++++++++++++++++ kubevirt/models/v1_interface_slirp.py | 67 ++++++++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 144 insertions(+), 6 deletions(-) create mode 100644 kubevirt/models/v1_interface_bridge.py create mode 100644 kubevirt/models/v1_interface_slirp.py diff --git a/README.md b/README.md index 750280cf..7a821b08 100644 --- a/README.md +++ b/README.md @@ -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: v0.7.0-230-g0e174460 +- Package version: v0.7.0-244-gae563651 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/git_push.sh b/git_push.sh index 01a9657c..e6504149 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.7.0-230-g0e174460" + release_note="Auto-generated client v0.7.0-244-gae563651" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index c88a6f03..4134bbdf 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -115,3 +115,5 @@ from .configuration import Configuration configuration = Configuration() +from .models.v1_interface_bridge import V1InterfaceBridge +from .models.v1_interface_slirp import V1InterfaceSlirp diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 9e0036cb..57c5768e 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.7.0-230-g0e174460/python' + self.user_agent = 'Swagger-Codegen/v0.7.0-244-gae563651/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 1b223868..0b213054 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.7.0-230-g0e174460".\ + "SDK Package Version: v0.7.0-244-gae563651".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 9d5f574b..d56b87dc 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -105,3 +105,5 @@ from .v1_watch_event import V1WatchEvent from .v1_watchdog import V1Watchdog from .v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm +from .v1_interface_bridge import V1InterfaceBridge +from .v1_interface_slirp import V1InterfaceSlirp diff --git a/kubevirt/models/v1_interface_bridge.py b/kubevirt/models/v1_interface_bridge.py new file mode 100644 index 00000000..733a73e7 --- /dev/null +++ b/kubevirt/models/v1_interface_bridge.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1InterfaceBridge(object): + """ + NOTE: This class is hard coded until swagger-codegen fix the empty struct problem + """ + + swagger_types = {} + + attribute_map = {} + + def __init__(self, ports=None): + """ + V1InterfaceBridge - a model defined in Swagger + """ + pass + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1InterfaceBridge): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_interface_slirp.py b/kubevirt/models/v1_interface_slirp.py new file mode 100644 index 00000000..326b2956 --- /dev/null +++ b/kubevirt/models/v1_interface_slirp.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1InterfaceSlirp(object): + """ + NOTE: This class is hard coded until swagger-codegen fix the empty struct problem + """ + + swagger_types = {} + + attribute_map = {} + + def __init__(self, ports=None): + """ + V1InterfaceSlirp - a model defined in Swagger + """ + pass + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1InterfaceSlirp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 4cfed516..79bc135a 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.7.0-230-g0e174460" +VERSION = "v0.7.0-244-gae563651" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 7e9e60da..af9f0c5e 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.7.0-230-g0e174460" +"packageVersion": "v0.7.0-244-gae563651" } From 2209418218e5dddc7a8853c6607caf0130bc9f15 Mon Sep 17 00:00:00 2001 From: Piotr Kliczewski Date: Mon, 20 Aug 2018 15:59:09 +0200 Subject: [PATCH 043/521] examples: Make sure the examples run There was rename of entities in KubeVirt which were not reflected here. This PR fixes an issue with calling a method on the wrong object. Signed-off-by: Piotr Kliczewski --- examples/example_vms.py | 40 ++++++++++--------- .../{vm-ephemeral.yaml => vmi-ephemeral.yaml} | 4 +- 2 files changed, 24 insertions(+), 20 deletions(-) rename examples/{vm-ephemeral.yaml => vmi-ephemeral.yaml} (87%) diff --git a/examples/example_vms.py b/examples/example_vms.py index 1621d7db..7892a501 100644 --- a/examples/example_vms.py +++ b/examples/example_vms.py @@ -1,10 +1,11 @@ #!/usr/bin/env python """ -This script demostrates lifecycle of VM -* list existing VMs -* create VM -* wait until VM is running -* delete VM +This script demostrates lifecycle of VMI +* list existing VMIs and VMs +* create VMI +* wait until VMI is running +* update VMI +* delete VMI """ from pprint import pprint @@ -22,35 +23,38 @@ def main(): # List existing VMs pprint(api.list_namespaced_virtual_machine(NAMESPACE)) + # List existing VMIs + pprint(api.list_namespaced_virtual_machine_instance(NAMESPACE)) + # Create new one - vm = el.read_yaml_file("vm-ephemeral.yaml") - pprint(api.create_namespaced_virtual_machine(vm, NAMESPACE)) + vmi = el.read_yaml_file("vmi-ephemeral.yaml") + pprint(api.create_namespaced_virtual_machine_instance(vmi, NAMESPACE)) # Wait until VM is running try: - w = el.Watch(api.list_namespaced_virtual_machine, NAMESPACE) - vm = w.wait_for_item( - el.get_name(vm), timeout=60, + w = el.Watch(api.list_namespaced_virtual_machine_instance, NAMESPACE) + vmi = w.wait_for_item( + el.get_name(vmi), timeout=60, success_condition=lambda e: el.get_status(e['object']) == "Running" ) except el.WaitForTimeout: - vm = el.read_namespaced_virtual_machine(el.get_name(vm), NAMESPACE) + vmi = api.read_namespaced_virtual_machine_instance(el.get_name(vmi), NAMESPACE) raise Exception( - "VM is not in expected state: %s != %s" % ( - el.get_status(vm), "Running" + "VMI is not in expected state: %s != %s" % ( + el.get_status(vmi), "Running" ) ) # Update memory of VM - vm['spec']['domain']['resources']['requests']['memory'] = '512M' - vm = api.replace_namespaced_virtual_machine(vm, NAMESPACE, el.get_name(vm)) - pprint(vm) + vmi['spec']['domain']['resources']['requests']['memory'] = '512M' + vmi = api.replace_namespaced_virtual_machine_instance(vmi, NAMESPACE, el.get_name(vmi)) + pprint(vmi) # Delete VM pprint( - api.delete_namespaced_virtual_machine( - V1DeleteOptions(), NAMESPACE, el.get_name(vm) + api.delete_namespaced_virtual_machine_instance( + V1DeleteOptions(), NAMESPACE, el.get_name(vmi) ) ) diff --git a/examples/vm-ephemeral.yaml b/examples/vmi-ephemeral.yaml similarity index 87% rename from examples/vm-ephemeral.yaml rename to examples/vmi-ephemeral.yaml index 71d3c194..c72ae3e2 100644 --- a/examples/vm-ephemeral.yaml +++ b/examples/vmi-ephemeral.yaml @@ -1,6 +1,6 @@ --- -apiVersion: kubevirt.io/v1alpha1 -kind: VirtualMachine +apiVersion: kubevirt.io/v1alpha2 +kind: VirtualMachineInstance metadata: creationTimestamp: null name: vm-ephemeral From 68eeff36864f1134d14b8db0e58bd434a07e855f Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 31 Aug 2018 13:59:42 +0000 Subject: [PATCH 044/521] Client Python update by Travis Build 4682 --- README.md | 2 +- docs/V1Devices.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 24 ++++++++++++++++++++++++ kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_devices.py | 30 +++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 9 files changed, 60 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 7a821b08..4b5c3153 100644 --- a/README.md +++ b/README.md @@ -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: v0.7.0-244-gae563651 +- Package version: v0.7.0-291-g5f20dbd4 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index cf4b5f3d..721f26c1 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **autoattach_pod_interface** | **bool** | Whether to attach a pod network interface. Defaults to true. | [optional] **disks** | [**list[V1Disk]**](V1Disk.md) | Disks describes disks, cdroms, floppy and luns which are connected to the vmi. | [optional] **interfaces** | [**list[V1Interface]**](V1Interface.md) | Interfaces describe network interfaces which are added to the vm. | [optional] +**rng** | [**V1Rng**](V1Rng.md) | Whether to have random number generator from host +optional | [optional] **watchdog** | [**V1Watchdog**](V1Watchdog.md) | Watchdog describes a watchdog device which can be added to the vmi. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index e6504149..dbfac4aa 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.7.0-244-gae563651" + release_note="Auto-generated client v0.7.0-291-g5f20dbd4" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 2fb671fa..025a5579 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -348,6 +348,30 @@ [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_group_1` [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_resources_0` [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 57c5768e..3783b393 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.7.0-244-gae563651/python' + self.user_agent = 'Swagger-Codegen/v0.7.0-291-g5f20dbd4/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 0b213054..06293821 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.7.0-244-gae563651".\ + "SDK Package Version: v0.7.0-291-g5f20dbd4".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index c9260e7d..3c656434 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -35,6 +35,7 @@ class V1Devices(object): 'autoattach_pod_interface': 'bool', 'disks': 'list[V1Disk]', 'interfaces': 'list[V1Interface]', + 'rng': 'V1Rng', 'watchdog': 'V1Watchdog' } @@ -43,10 +44,11 @@ class V1Devices(object): 'autoattach_pod_interface': 'autoattachPodInterface', 'disks': 'disks', 'interfaces': 'interfaces', + 'rng': 'rng', 'watchdog': 'watchdog' } - def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=None, disks=None, interfaces=None, watchdog=None): + def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=None, disks=None, interfaces=None, rng=None, watchdog=None): """ V1Devices - a model defined in Swagger """ @@ -55,6 +57,7 @@ def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=Non self._autoattach_pod_interface = None self._disks = None self._interfaces = None + self._rng = None self._watchdog = None if autoattach_graphics_device is not None: @@ -65,6 +68,8 @@ def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=Non self.disks = disks if interfaces is not None: self.interfaces = interfaces + if rng is not None: + self.rng = rng if watchdog is not None: self.watchdog = watchdog @@ -160,6 +165,29 @@ def interfaces(self, interfaces): self._interfaces = interfaces + @property + def rng(self): + """ + Gets the rng of this V1Devices. + Whether to have random number generator from host +optional + + :return: The rng of this V1Devices. + :rtype: V1Rng + """ + return self._rng + + @rng.setter + def rng(self, rng): + """ + Sets the rng of this V1Devices. + Whether to have random number generator from host +optional + + :param rng: The rng of this V1Devices. + :type: V1Rng + """ + + self._rng = rng + @property def watchdog(self): """ diff --git a/setup.py b/setup.py index 79bc135a..6efff111 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.7.0-244-gae563651" +VERSION = "v0.7.0-291-g5f20dbd4" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index af9f0c5e..408fd33d 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.7.0-244-gae563651" +"packageVersion": "v0.7.0-291-g5f20dbd4" } From d59706064c8aac062bd321e7e89bc9582d4eb905 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 31 Aug 2018 19:25:58 +0000 Subject: [PATCH 045/521] Client Python update by Travis Build 4688 --- README.md | 10 +- docs/V1DataVolumeSource.md | 10 + docs/V1PersistentVolumeClaimSpec.md | 15 + docs/V1VirtualMachineSpec.md | 1 + docs/V1Volume.md | 1 + docs/V1alpha1DataVolume.md | 14 + docs/V1alpha1DataVolumeSource.md | 11 + docs/V1alpha1DataVolumeSourceHTTP.md | 10 + docs/V1alpha1DataVolumeSourceS3.md | 11 + docs/V1alpha1DataVolumeSpec.md | 11 + docs/V1alpha1DataVolumeStatus.md | 10 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 36 +++ kubevirt/__init__.py | 8 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 8 + kubevirt/models/v1_data_volume_source.py | 126 +++++++++ .../models/v1_persistent_volume_claim_spec.py | 265 ++++++++++++++++++ kubevirt/models/v1_virtual_machine_spec.py | 30 +- kubevirt/models/v1_volume.py | 30 +- kubevirt/models/v1alpha1_data_volume.py | 233 +++++++++++++++ .../models/v1alpha1_data_volume_source.py | 149 ++++++++++ .../v1alpha1_data_volume_source_http.py | 123 ++++++++ .../models/v1alpha1_data_volume_source_s3.py | 149 ++++++++++ kubevirt/models/v1alpha1_data_volume_spec.py | 151 ++++++++++ .../models/v1alpha1_data_volume_status.py | 123 ++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_data_volume_source.py | 44 +++ test/test_v1_persistent_volume_claim_spec.py | 44 +++ test/test_v1alpha1_data_volume.py | 44 +++ test/test_v1alpha1_data_volume_source.py | 44 +++ test/test_v1alpha1_data_volume_source_http.py | 44 +++ test/test_v1alpha1_data_volume_source_s3.py | 44 +++ test/test_v1alpha1_data_volume_spec.py | 44 +++ test/test_v1alpha1_data_volume_status.py | 44 +++ 37 files changed, 1889 insertions(+), 8 deletions(-) create mode 100644 docs/V1DataVolumeSource.md create mode 100644 docs/V1PersistentVolumeClaimSpec.md create mode 100644 docs/V1alpha1DataVolume.md create mode 100644 docs/V1alpha1DataVolumeSource.md create mode 100644 docs/V1alpha1DataVolumeSourceHTTP.md create mode 100644 docs/V1alpha1DataVolumeSourceS3.md create mode 100644 docs/V1alpha1DataVolumeSpec.md create mode 100644 docs/V1alpha1DataVolumeStatus.md create mode 100644 kubevirt/models/v1_data_volume_source.py create mode 100644 kubevirt/models/v1_persistent_volume_claim_spec.py create mode 100644 kubevirt/models/v1alpha1_data_volume.py create mode 100644 kubevirt/models/v1alpha1_data_volume_source.py create mode 100644 kubevirt/models/v1alpha1_data_volume_source_http.py create mode 100644 kubevirt/models/v1alpha1_data_volume_source_s3.py create mode 100644 kubevirt/models/v1alpha1_data_volume_spec.py create mode 100644 kubevirt/models/v1alpha1_data_volume_status.py create mode 100644 test/test_v1_data_volume_source.py create mode 100644 test/test_v1_persistent_volume_claim_spec.py create mode 100644 test/test_v1alpha1_data_volume.py create mode 100644 test/test_v1alpha1_data_volume_source.py create mode 100644 test/test_v1alpha1_data_volume_source_http.py create mode 100644 test/test_v1alpha1_data_volume_source_s3.py create mode 100644 test/test_v1alpha1_data_volume_spec.py create mode 100644 test/test_v1alpha1_data_volume_status.py diff --git a/README.md b/README.md index 4b5c3153..b5293b76 100644 --- a/README.md +++ b/README.md @@ -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: v0.7.0-291-g5f20dbd4 +- Package version: v0.7.0-329-gd0f6cf21 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -137,6 +137,7 @@ Class | Method | HTTP request | Description - [V1Clock](docs/V1Clock.md) - [V1ClockOffsetUTC](docs/V1ClockOffsetUTC.md) - [V1CloudInitNoCloudSource](docs/V1CloudInitNoCloudSource.md) + - [V1DataVolumeSource](docs/V1DataVolumeSource.md) - [V1DeleteOptions](docs/V1DeleteOptions.md) - [V1Devices](docs/V1Devices.md) - [V1Disk](docs/V1Disk.md) @@ -177,6 +178,7 @@ Class | Method | HTTP request | Description - [V1ObjectMeta](docs/V1ObjectMeta.md) - [V1OwnerReference](docs/V1OwnerReference.md) - [V1PITTimer](docs/V1PITTimer.md) + - [V1PersistentVolumeClaimSpec](docs/V1PersistentVolumeClaimSpec.md) - [V1PersistentVolumeClaimVolumeSource](docs/V1PersistentVolumeClaimVolumeSource.md) - [V1PodAffinity](docs/V1PodAffinity.md) - [V1PodAffinityTerm](docs/V1PodAffinityTerm.md) @@ -218,6 +220,12 @@ Class | Method | HTTP request | Description - [V1WatchEvent](docs/V1WatchEvent.md) - [V1Watchdog](docs/V1Watchdog.md) - [V1WeightedPodAffinityTerm](docs/V1WeightedPodAffinityTerm.md) + - [V1alpha1DataVolume](docs/V1alpha1DataVolume.md) + - [V1alpha1DataVolumeSource](docs/V1alpha1DataVolumeSource.md) + - [V1alpha1DataVolumeSourceHTTP](docs/V1alpha1DataVolumeSourceHTTP.md) + - [V1alpha1DataVolumeSourceS3](docs/V1alpha1DataVolumeSourceS3.md) + - [V1alpha1DataVolumeSpec](docs/V1alpha1DataVolumeSpec.md) + - [V1alpha1DataVolumeStatus](docs/V1alpha1DataVolumeStatus.md) ## Documentation For Authorization diff --git a/docs/V1DataVolumeSource.md b/docs/V1DataVolumeSource.md new file mode 100644 index 00000000..6d515176 --- /dev/null +++ b/docs/V1DataVolumeSource.md @@ -0,0 +1,10 @@ +# V1DataVolumeSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name represents the name of the DataVolume in the same namespace | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PersistentVolumeClaimSpec.md b/docs/V1PersistentVolumeClaimSpec.md new file mode 100644 index 00000000..54d48a98 --- /dev/null +++ b/docs/V1PersistentVolumeClaimSpec.md @@ -0,0 +1,15 @@ +# V1PersistentVolumeClaimSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_modes** | [**list[V1PersistentVolumeAccessMode]**](V1PersistentVolumeAccessMode.md) | AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] +**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | A label query over volumes to consider for binding. | [optional] +**storage_class_name** | **str** | Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] +**volume_mode** | [**V1PersistentVolumeMode**](V1PersistentVolumeMode.md) | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is an alpha feature and may change in the future. | [optional] +**volume_name** | **str** | VolumeName is the binding reference to the PersistentVolume backing this claim. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineSpec.md b/docs/V1VirtualMachineSpec.md index 1ce4ac2a..45f34e68 100644 --- a/docs/V1VirtualMachineSpec.md +++ b/docs/V1VirtualMachineSpec.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**data_volume_templates** | [**list[V1alpha1DataVolume]**](V1alpha1DataVolume.md) | dataVolumeTemplates is a list of dataVolumes that the VirtualMachineInstance template can reference. DataVolumes in this list are dynamically created for the VirtualMachine and are tied to the VirtualMachine's life-cycle. | [optional] **running** | **bool** | Running controls whether the associatied VirtualMachineInstance is created or not | **template** | [**V1VirtualMachineInstanceTemplateSpec**](V1VirtualMachineInstanceTemplateSpec.md) | Template is the direct specification of VirtualMachineInstance | diff --git a/docs/V1Volume.md b/docs/V1Volume.md index eb72e744..c51a6733 100644 --- a/docs/V1Volume.md +++ b/docs/V1Volume.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cloud_init_no_cloud** | [**V1CloudInitNoCloudSource**](V1CloudInitNoCloudSource.md) | CloudInitNoCloud represents a cloud-init NoCloud user-data source. The NoCloud data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html +optional | [optional] +**data_volume** | [**V1DataVolumeSource**](V1DataVolumeSource.md) | DataVolume represents the dynamic creation a PVC for this volume as well as the process of populating that PVC with a disk image. +optional | [optional] **empty_disk** | [**V1EmptyDiskSource**](V1EmptyDiskSource.md) | EmptyDisk represents a temporary disk which shares the vmis lifecycle. More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html +optional | [optional] **ephemeral** | [**V1EphemeralVolumeSource**](V1EphemeralVolumeSource.md) | Ephemeral is a special volume source that \"wraps\" specified source and provides copy-on-write image on top of it. +optional | [optional] **name** | **str** | Volume's name. Must be a DNS_LABEL and unique within the vmi. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | diff --git a/docs/V1alpha1DataVolume.md b/docs/V1alpha1DataVolume.md new file mode 100644 index 00000000..073d57cb --- /dev/null +++ b/docs/V1alpha1DataVolume.md @@ -0,0 +1,14 @@ +# V1alpha1DataVolume + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha1DataVolumeSpec**](V1alpha1DataVolumeSpec.md) | | +**status** | [**V1alpha1DataVolumeStatus**](V1alpha1DataVolumeStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1DataVolumeSource.md b/docs/V1alpha1DataVolumeSource.md new file mode 100644 index 00000000..feeb2275 --- /dev/null +++ b/docs/V1alpha1DataVolumeSource.md @@ -0,0 +1,11 @@ +# V1alpha1DataVolumeSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**http** | [**V1alpha1DataVolumeSourceHTTP**](V1alpha1DataVolumeSourceHTTP.md) | | [optional] +**s3** | [**V1alpha1DataVolumeSourceS3**](V1alpha1DataVolumeSourceS3.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1DataVolumeSourceHTTP.md b/docs/V1alpha1DataVolumeSourceHTTP.md new file mode 100644 index 00000000..352ac094 --- /dev/null +++ b/docs/V1alpha1DataVolumeSourceHTTP.md @@ -0,0 +1,10 @@ +# V1alpha1DataVolumeSourceHTTP + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1DataVolumeSourceS3.md b/docs/V1alpha1DataVolumeSourceS3.md new file mode 100644 index 00000000..3d42c9fd --- /dev/null +++ b/docs/V1alpha1DataVolumeSourceS3.md @@ -0,0 +1,11 @@ +# V1alpha1DataVolumeSourceS3 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**secret_ref** | **str** | | [optional] +**url** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1DataVolumeSpec.md b/docs/V1alpha1DataVolumeSpec.md new file mode 100644 index 00000000..70cab139 --- /dev/null +++ b/docs/V1alpha1DataVolumeSpec.md @@ -0,0 +1,11 @@ +# V1alpha1DataVolumeSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pvc** | [**V1PersistentVolumeClaimSpec**](V1PersistentVolumeClaimSpec.md) | | +**source** | [**V1alpha1DataVolumeSource**](V1alpha1DataVolumeSource.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1DataVolumeStatus.md b/docs/V1alpha1DataVolumeStatus.md new file mode 100644 index 00000000..318d673b --- /dev/null +++ b/docs/V1alpha1DataVolumeStatus.md @@ -0,0 +1,10 @@ +# V1alpha1DataVolumeStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**phase** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index dbfac4aa..e0fb2d23 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.7.0-291-g5f20dbd4" + release_note="Auto-generated client v0.7.0-329-gd0f6cf21" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 025a5579..f4956bc1 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -32,6 +32,9 @@ [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_cloud_init_no_cloud_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_cloud_init_no_cloud_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CloudInitNoCloudSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_data_volume_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_data_volume_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DataVolumeSource.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_delete_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_delete_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DeleteOptions.md @@ -152,6 +155,9 @@ [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_pit_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pit_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PITTimer.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_persistent_volume_claim_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_persistent_volume_claim_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PersistentVolumeClaimSpec.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_persistent_volume_claim_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_persistent_volume_claim_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PersistentVolumeClaimVolumeSource.md @@ -275,6 +281,24 @@ [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_weighted_pod_affinity_term.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_weighted_pod_affinity_term.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1WeightedPodAffinityTerm.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolume.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_source_http.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_source_http.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSourceHTTP.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_source_s3.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_source_s3.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSourceS3.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeStatus.md [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_group_0` [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. @@ -372,6 +396,18 @@ [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_group_1` [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_resources_0` [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 4134bbdf..91e97ca2 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -24,6 +24,7 @@ from .models.v1_clock import V1Clock from .models.v1_clock_offset_utc import V1ClockOffsetUTC from .models.v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource +from .models.v1_data_volume_source import V1DataVolumeSource from .models.v1_delete_options import V1DeleteOptions from .models.v1_devices import V1Devices from .models.v1_disk import V1Disk @@ -64,6 +65,7 @@ from .models.v1_object_meta import V1ObjectMeta from .models.v1_owner_reference import V1OwnerReference from .models.v1_pit_timer import V1PITTimer +from .models.v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec from .models.v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource from .models.v1_pod_affinity import V1PodAffinity from .models.v1_pod_affinity_term import V1PodAffinityTerm @@ -105,6 +107,12 @@ from .models.v1_watch_event import V1WatchEvent from .models.v1_watchdog import V1Watchdog from .models.v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm +from .models.v1alpha1_data_volume import V1alpha1DataVolume +from .models.v1alpha1_data_volume_source import V1alpha1DataVolumeSource +from .models.v1alpha1_data_volume_source_http import V1alpha1DataVolumeSourceHTTP +from .models.v1alpha1_data_volume_source_s3 import V1alpha1DataVolumeSourceS3 +from .models.v1alpha1_data_volume_spec import V1alpha1DataVolumeSpec +from .models.v1alpha1_data_volume_status import V1alpha1DataVolumeStatus # import apis into sdk package from .apis.default_api import DefaultApi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 3783b393..2abce036 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.7.0-291-g5f20dbd4/python' + self.user_agent = 'Swagger-Codegen/v0.7.0-329-gd0f6cf21/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 06293821..aa3525af 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.7.0-291-g5f20dbd4".\ + "SDK Package Version: v0.7.0-329-gd0f6cf21".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index d56b87dc..a5240d45 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -24,6 +24,7 @@ from .v1_clock import V1Clock from .v1_clock_offset_utc import V1ClockOffsetUTC from .v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource +from .v1_data_volume_source import V1DataVolumeSource from .v1_delete_options import V1DeleteOptions from .v1_devices import V1Devices from .v1_disk import V1Disk @@ -64,6 +65,7 @@ from .v1_object_meta import V1ObjectMeta from .v1_owner_reference import V1OwnerReference from .v1_pit_timer import V1PITTimer +from .v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec from .v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource from .v1_pod_affinity import V1PodAffinity from .v1_pod_affinity_term import V1PodAffinityTerm @@ -105,5 +107,11 @@ from .v1_watch_event import V1WatchEvent from .v1_watchdog import V1Watchdog from .v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm +from .v1alpha1_data_volume import V1alpha1DataVolume +from .v1alpha1_data_volume_source import V1alpha1DataVolumeSource +from .v1alpha1_data_volume_source_http import V1alpha1DataVolumeSourceHTTP +from .v1alpha1_data_volume_source_s3 import V1alpha1DataVolumeSourceS3 +from .v1alpha1_data_volume_spec import V1alpha1DataVolumeSpec +from .v1alpha1_data_volume_status import V1alpha1DataVolumeStatus from .v1_interface_bridge import V1InterfaceBridge from .v1_interface_slirp import V1InterfaceSlirp diff --git a/kubevirt/models/v1_data_volume_source.py b/kubevirt/models/v1_data_volume_source.py new file mode 100644 index 00000000..c0e3b186 --- /dev/null +++ b/kubevirt/models/v1_data_volume_source.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DataVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str' + } + + attribute_map = { + 'name': 'name' + } + + def __init__(self, name=None): + """ + V1DataVolumeSource - a model defined in Swagger + """ + + self._name = None + + self.name = name + + @property + def name(self): + """ + Gets the name of this V1DataVolumeSource. + Name represents the name of the DataVolume in the same namespace + + :return: The name of this V1DataVolumeSource. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1DataVolumeSource. + Name represents the name of the DataVolume in the same namespace + + :param name: The name of this V1DataVolumeSource. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1DataVolumeSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_persistent_volume_claim_spec.py b/kubevirt/models/v1_persistent_volume_claim_spec.py new file mode 100644 index 00000000..c3d3b2f4 --- /dev/null +++ b/kubevirt/models/v1_persistent_volume_claim_spec.py @@ -0,0 +1,265 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PersistentVolumeClaimSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'access_modes': 'list[V1PersistentVolumeAccessMode]', + 'resources': 'V1ResourceRequirements', + 'selector': 'V1LabelSelector', + 'storage_class_name': 'str', + 'volume_mode': 'V1PersistentVolumeMode', + 'volume_name': 'str' + } + + attribute_map = { + 'access_modes': 'accessModes', + 'resources': 'resources', + 'selector': 'selector', + 'storage_class_name': 'storageClassName', + 'volume_mode': 'volumeMode', + 'volume_name': 'volumeName' + } + + def __init__(self, access_modes=None, resources=None, selector=None, storage_class_name=None, volume_mode=None, volume_name=None): + """ + V1PersistentVolumeClaimSpec - a model defined in Swagger + """ + + self._access_modes = None + self._resources = None + self._selector = None + self._storage_class_name = None + self._volume_mode = None + self._volume_name = None + + if access_modes is not None: + self.access_modes = access_modes + if resources is not None: + self.resources = resources + if selector is not None: + self.selector = selector + if storage_class_name is not None: + self.storage_class_name = storage_class_name + if volume_mode is not None: + self.volume_mode = volume_mode + if volume_name is not None: + self.volume_name = volume_name + + @property + def access_modes(self): + """ + Gets the access_modes of this V1PersistentVolumeClaimSpec. + AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + + :return: The access_modes of this V1PersistentVolumeClaimSpec. + :rtype: list[V1PersistentVolumeAccessMode] + """ + return self._access_modes + + @access_modes.setter + def access_modes(self, access_modes): + """ + Sets the access_modes of this V1PersistentVolumeClaimSpec. + AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + + :param access_modes: The access_modes of this V1PersistentVolumeClaimSpec. + :type: list[V1PersistentVolumeAccessMode] + """ + + self._access_modes = access_modes + + @property + def resources(self): + """ + Gets the resources of this V1PersistentVolumeClaimSpec. + Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + + :return: The resources of this V1PersistentVolumeClaimSpec. + :rtype: V1ResourceRequirements + """ + return self._resources + + @resources.setter + def resources(self, resources): + """ + Sets the resources of this V1PersistentVolumeClaimSpec. + Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + + :param resources: The resources of this V1PersistentVolumeClaimSpec. + :type: V1ResourceRequirements + """ + + self._resources = resources + + @property + def selector(self): + """ + Gets the selector of this V1PersistentVolumeClaimSpec. + A label query over volumes to consider for binding. + + :return: The selector of this V1PersistentVolumeClaimSpec. + :rtype: V1LabelSelector + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this V1PersistentVolumeClaimSpec. + A label query over volumes to consider for binding. + + :param selector: The selector of this V1PersistentVolumeClaimSpec. + :type: V1LabelSelector + """ + + self._selector = selector + + @property + def storage_class_name(self): + """ + Gets the storage_class_name of this V1PersistentVolumeClaimSpec. + Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + + :return: The storage_class_name of this V1PersistentVolumeClaimSpec. + :rtype: str + """ + return self._storage_class_name + + @storage_class_name.setter + def storage_class_name(self, storage_class_name): + """ + Sets the storage_class_name of this V1PersistentVolumeClaimSpec. + Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + + :param storage_class_name: The storage_class_name of this V1PersistentVolumeClaimSpec. + :type: str + """ + + self._storage_class_name = storage_class_name + + @property + def volume_mode(self): + """ + Gets the volume_mode of this V1PersistentVolumeClaimSpec. + volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is an alpha feature and may change in the future. + + :return: The volume_mode of this V1PersistentVolumeClaimSpec. + :rtype: V1PersistentVolumeMode + """ + return self._volume_mode + + @volume_mode.setter + def volume_mode(self, volume_mode): + """ + Sets the volume_mode of this V1PersistentVolumeClaimSpec. + volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is an alpha feature and may change in the future. + + :param volume_mode: The volume_mode of this V1PersistentVolumeClaimSpec. + :type: V1PersistentVolumeMode + """ + + self._volume_mode = volume_mode + + @property + def volume_name(self): + """ + Gets the volume_name of this V1PersistentVolumeClaimSpec. + VolumeName is the binding reference to the PersistentVolume backing this claim. + + :return: The volume_name of this V1PersistentVolumeClaimSpec. + :rtype: str + """ + return self._volume_name + + @volume_name.setter + def volume_name(self, volume_name): + """ + Sets the volume_name of this V1PersistentVolumeClaimSpec. + VolumeName is the binding reference to the PersistentVolume backing this claim. + + :param volume_name: The volume_name of this V1PersistentVolumeClaimSpec. + :type: str + """ + + self._volume_name = volume_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1PersistentVolumeClaimSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_spec.py b/kubevirt/models/v1_virtual_machine_spec.py index 32d4052f..61884cd0 100644 --- a/kubevirt/models/v1_virtual_machine_spec.py +++ b/kubevirt/models/v1_virtual_machine_spec.py @@ -31,26 +31,54 @@ class V1VirtualMachineSpec(object): and the value is json key in definition. """ swagger_types = { + 'data_volume_templates': 'list[V1alpha1DataVolume]', 'running': 'bool', 'template': 'V1VirtualMachineInstanceTemplateSpec' } attribute_map = { + 'data_volume_templates': 'dataVolumeTemplates', 'running': 'running', 'template': 'template' } - def __init__(self, running=None, template=None): + def __init__(self, data_volume_templates=None, running=None, template=None): """ V1VirtualMachineSpec - a model defined in Swagger """ + self._data_volume_templates = None self._running = None self._template = None + if data_volume_templates is not None: + self.data_volume_templates = data_volume_templates self.running = running self.template = template + @property + def data_volume_templates(self): + """ + Gets the data_volume_templates of this V1VirtualMachineSpec. + dataVolumeTemplates is a list of dataVolumes that the VirtualMachineInstance template can reference. DataVolumes in this list are dynamically created for the VirtualMachine and are tied to the VirtualMachine's life-cycle. + + :return: The data_volume_templates of this V1VirtualMachineSpec. + :rtype: list[V1alpha1DataVolume] + """ + return self._data_volume_templates + + @data_volume_templates.setter + def data_volume_templates(self, data_volume_templates): + """ + Sets the data_volume_templates of this V1VirtualMachineSpec. + dataVolumeTemplates is a list of dataVolumes that the VirtualMachineInstance template can reference. DataVolumes in this list are dynamically created for the VirtualMachine and are tied to the VirtualMachine's life-cycle. + + :param data_volume_templates: The data_volume_templates of this V1VirtualMachineSpec. + :type: list[V1alpha1DataVolume] + """ + + self._data_volume_templates = data_volume_templates + @property def running(self): """ diff --git a/kubevirt/models/v1_volume.py b/kubevirt/models/v1_volume.py index e9ad2bdc..a46f730d 100644 --- a/kubevirt/models/v1_volume.py +++ b/kubevirt/models/v1_volume.py @@ -32,6 +32,7 @@ class V1Volume(object): """ swagger_types = { 'cloud_init_no_cloud': 'V1CloudInitNoCloudSource', + 'data_volume': 'V1DataVolumeSource', 'empty_disk': 'V1EmptyDiskSource', 'ephemeral': 'V1EphemeralVolumeSource', 'name': 'str', @@ -41,6 +42,7 @@ class V1Volume(object): attribute_map = { 'cloud_init_no_cloud': 'cloudInitNoCloud', + 'data_volume': 'dataVolume', 'empty_disk': 'emptyDisk', 'ephemeral': 'ephemeral', 'name': 'name', @@ -48,12 +50,13 @@ class V1Volume(object): 'registry_disk': 'registryDisk' } - def __init__(self, cloud_init_no_cloud=None, empty_disk=None, ephemeral=None, name=None, persistent_volume_claim=None, registry_disk=None): + def __init__(self, cloud_init_no_cloud=None, data_volume=None, empty_disk=None, ephemeral=None, name=None, persistent_volume_claim=None, registry_disk=None): """ V1Volume - a model defined in Swagger """ self._cloud_init_no_cloud = None + self._data_volume = None self._empty_disk = None self._ephemeral = None self._name = None @@ -62,6 +65,8 @@ def __init__(self, cloud_init_no_cloud=None, empty_disk=None, ephemeral=None, na if cloud_init_no_cloud is not None: self.cloud_init_no_cloud = cloud_init_no_cloud + if data_volume is not None: + self.data_volume = data_volume if empty_disk is not None: self.empty_disk = empty_disk if ephemeral is not None: @@ -95,6 +100,29 @@ def cloud_init_no_cloud(self, cloud_init_no_cloud): self._cloud_init_no_cloud = cloud_init_no_cloud + @property + def data_volume(self): + """ + Gets the data_volume of this V1Volume. + DataVolume represents the dynamic creation a PVC for this volume as well as the process of populating that PVC with a disk image. +optional + + :return: The data_volume of this V1Volume. + :rtype: V1DataVolumeSource + """ + return self._data_volume + + @data_volume.setter + def data_volume(self, data_volume): + """ + Sets the data_volume of this V1Volume. + DataVolume represents the dynamic creation a PVC for this volume as well as the process of populating that PVC with a disk image. +optional + + :param data_volume: The data_volume of this V1Volume. + :type: V1DataVolumeSource + """ + + self._data_volume = data_volume + @property def empty_disk(self): """ diff --git a/kubevirt/models/v1alpha1_data_volume.py b/kubevirt/models/v1alpha1_data_volume.py new file mode 100644 index 00000000..2beef13b --- /dev/null +++ b/kubevirt/models/v1alpha1_data_volume.py @@ -0,0 +1,233 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1DataVolume(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1alpha1DataVolumeSpec', + 'status': 'V1alpha1DataVolumeStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + """ + V1alpha1DataVolume - a model defined in Swagger + """ + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + self.spec = spec + self.status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1DataVolume. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + + :return: The api_version of this V1alpha1DataVolume. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1DataVolume. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1DataVolume. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1alpha1DataVolume. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1DataVolume. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1DataVolume. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1DataVolume. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1DataVolume. + + :return: The metadata of this V1alpha1DataVolume. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1DataVolume. + + :param metadata: The metadata of this V1alpha1DataVolume. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1alpha1DataVolume. + + :return: The spec of this V1alpha1DataVolume. + :rtype: V1alpha1DataVolumeSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1alpha1DataVolume. + + :param spec: The spec of this V1alpha1DataVolume. + :type: V1alpha1DataVolumeSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1alpha1DataVolume. + + :return: The status of this V1alpha1DataVolume. + :rtype: V1alpha1DataVolumeStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1alpha1DataVolume. + + :param status: The status of this V1alpha1DataVolume. + :type: V1alpha1DataVolumeStatus + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1DataVolume): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_data_volume_source.py b/kubevirt/models/v1alpha1_data_volume_source.py new file mode 100644 index 00000000..d9f28646 --- /dev/null +++ b/kubevirt/models/v1alpha1_data_volume_source.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1DataVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'http': 'V1alpha1DataVolumeSourceHTTP', + 's3': 'V1alpha1DataVolumeSourceS3' + } + + attribute_map = { + 'http': 'http', + 's3': 's3' + } + + def __init__(self, http=None, s3=None): + """ + V1alpha1DataVolumeSource - a model defined in Swagger + """ + + self._http = None + self._s3 = None + + if http is not None: + self.http = http + if s3 is not None: + self.s3 = s3 + + @property + def http(self): + """ + Gets the http of this V1alpha1DataVolumeSource. + + :return: The http of this V1alpha1DataVolumeSource. + :rtype: V1alpha1DataVolumeSourceHTTP + """ + return self._http + + @http.setter + def http(self, http): + """ + Sets the http of this V1alpha1DataVolumeSource. + + :param http: The http of this V1alpha1DataVolumeSource. + :type: V1alpha1DataVolumeSourceHTTP + """ + + self._http = http + + @property + def s3(self): + """ + Gets the s3 of this V1alpha1DataVolumeSource. + + :return: The s3 of this V1alpha1DataVolumeSource. + :rtype: V1alpha1DataVolumeSourceS3 + """ + return self._s3 + + @s3.setter + def s3(self, s3): + """ + Sets the s3 of this V1alpha1DataVolumeSource. + + :param s3: The s3 of this V1alpha1DataVolumeSource. + :type: V1alpha1DataVolumeSourceS3 + """ + + self._s3 = s3 + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1DataVolumeSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_data_volume_source_http.py b/kubevirt/models/v1alpha1_data_volume_source_http.py new file mode 100644 index 00000000..acd70d3f --- /dev/null +++ b/kubevirt/models/v1alpha1_data_volume_source_http.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1DataVolumeSourceHTTP(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'url': 'str' + } + + attribute_map = { + 'url': 'url' + } + + def __init__(self, url=None): + """ + V1alpha1DataVolumeSourceHTTP - a model defined in Swagger + """ + + self._url = None + + if url is not None: + self.url = url + + @property + def url(self): + """ + Gets the url of this V1alpha1DataVolumeSourceHTTP. + + :return: The url of this V1alpha1DataVolumeSourceHTTP. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """ + Sets the url of this V1alpha1DataVolumeSourceHTTP. + + :param url: The url of this V1alpha1DataVolumeSourceHTTP. + :type: str + """ + + self._url = url + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1DataVolumeSourceHTTP): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_data_volume_source_s3.py b/kubevirt/models/v1alpha1_data_volume_source_s3.py new file mode 100644 index 00000000..181b00d6 --- /dev/null +++ b/kubevirt/models/v1alpha1_data_volume_source_s3.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1DataVolumeSourceS3(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'secret_ref': 'str', + 'url': 'str' + } + + attribute_map = { + 'secret_ref': 'secretRef', + 'url': 'url' + } + + def __init__(self, secret_ref=None, url=None): + """ + V1alpha1DataVolumeSourceS3 - a model defined in Swagger + """ + + self._secret_ref = None + self._url = None + + if secret_ref is not None: + self.secret_ref = secret_ref + if url is not None: + self.url = url + + @property + def secret_ref(self): + """ + Gets the secret_ref of this V1alpha1DataVolumeSourceS3. + + :return: The secret_ref of this V1alpha1DataVolumeSourceS3. + :rtype: str + """ + return self._secret_ref + + @secret_ref.setter + def secret_ref(self, secret_ref): + """ + Sets the secret_ref of this V1alpha1DataVolumeSourceS3. + + :param secret_ref: The secret_ref of this V1alpha1DataVolumeSourceS3. + :type: str + """ + + self._secret_ref = secret_ref + + @property + def url(self): + """ + Gets the url of this V1alpha1DataVolumeSourceS3. + + :return: The url of this V1alpha1DataVolumeSourceS3. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """ + Sets the url of this V1alpha1DataVolumeSourceS3. + + :param url: The url of this V1alpha1DataVolumeSourceS3. + :type: str + """ + + self._url = url + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1DataVolumeSourceS3): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_data_volume_spec.py b/kubevirt/models/v1alpha1_data_volume_spec.py new file mode 100644 index 00000000..a425b42c --- /dev/null +++ b/kubevirt/models/v1alpha1_data_volume_spec.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1DataVolumeSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'pvc': 'V1PersistentVolumeClaimSpec', + 'source': 'V1alpha1DataVolumeSource' + } + + attribute_map = { + 'pvc': 'pvc', + 'source': 'source' + } + + def __init__(self, pvc=None, source=None): + """ + V1alpha1DataVolumeSpec - a model defined in Swagger + """ + + self._pvc = None + self._source = None + + self.pvc = pvc + self.source = source + + @property + def pvc(self): + """ + Gets the pvc of this V1alpha1DataVolumeSpec. + + :return: The pvc of this V1alpha1DataVolumeSpec. + :rtype: V1PersistentVolumeClaimSpec + """ + return self._pvc + + @pvc.setter + def pvc(self, pvc): + """ + Sets the pvc of this V1alpha1DataVolumeSpec. + + :param pvc: The pvc of this V1alpha1DataVolumeSpec. + :type: V1PersistentVolumeClaimSpec + """ + if pvc is None: + raise ValueError("Invalid value for `pvc`, must not be `None`") + + self._pvc = pvc + + @property + def source(self): + """ + Gets the source of this V1alpha1DataVolumeSpec. + + :return: The source of this V1alpha1DataVolumeSpec. + :rtype: V1alpha1DataVolumeSource + """ + return self._source + + @source.setter + def source(self, source): + """ + Sets the source of this V1alpha1DataVolumeSpec. + + :param source: The source of this V1alpha1DataVolumeSpec. + :type: V1alpha1DataVolumeSource + """ + if source is None: + raise ValueError("Invalid value for `source`, must not be `None`") + + self._source = source + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1DataVolumeSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_data_volume_status.py b/kubevirt/models/v1alpha1_data_volume_status.py new file mode 100644 index 00000000..bc7efb72 --- /dev/null +++ b/kubevirt/models/v1alpha1_data_volume_status.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1DataVolumeStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'phase': 'str' + } + + attribute_map = { + 'phase': 'phase' + } + + def __init__(self, phase=None): + """ + V1alpha1DataVolumeStatus - a model defined in Swagger + """ + + self._phase = None + + if phase is not None: + self.phase = phase + + @property + def phase(self): + """ + Gets the phase of this V1alpha1DataVolumeStatus. + + :return: The phase of this V1alpha1DataVolumeStatus. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """ + Sets the phase of this V1alpha1DataVolumeStatus. + + :param phase: The phase of this V1alpha1DataVolumeStatus. + :type: str + """ + + self._phase = phase + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1DataVolumeStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 6efff111..022641fb 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.7.0-291-g5f20dbd4" +VERSION = "v0.7.0-329-gd0f6cf21" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 408fd33d..dd12ea96 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.7.0-291-g5f20dbd4" +"packageVersion": "v0.7.0-329-gd0f6cf21" } diff --git a/test/test_v1_data_volume_source.py b/test/test_v1_data_volume_source.py new file mode 100644 index 00000000..acc2e5a8 --- /dev/null +++ b/test/test_v1_data_volume_source.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_data_volume_source import V1DataVolumeSource + + +class TestV1DataVolumeSource(unittest.TestCase): + """ V1DataVolumeSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DataVolumeSource(self): + """ + Test V1DataVolumeSource + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_data_volume_source.V1DataVolumeSource() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_persistent_volume_claim_spec.py b/test/test_v1_persistent_volume_claim_spec.py new file mode 100644 index 00000000..faf9b165 --- /dev/null +++ b/test/test_v1_persistent_volume_claim_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec + + +class TestV1PersistentVolumeClaimSpec(unittest.TestCase): + """ V1PersistentVolumeClaimSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PersistentVolumeClaimSpec(self): + """ + Test V1PersistentVolumeClaimSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_persistent_volume_claim_spec.V1PersistentVolumeClaimSpec() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_data_volume.py b/test/test_v1alpha1_data_volume.py new file mode 100644 index 00000000..7e1d1f97 --- /dev/null +++ b/test/test_v1alpha1_data_volume.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_data_volume import V1alpha1DataVolume + + +class TestV1alpha1DataVolume(unittest.TestCase): + """ V1alpha1DataVolume unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1DataVolume(self): + """ + Test V1alpha1DataVolume + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_data_volume.V1alpha1DataVolume() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_data_volume_source.py b/test/test_v1alpha1_data_volume_source.py new file mode 100644 index 00000000..a1e954be --- /dev/null +++ b/test/test_v1alpha1_data_volume_source.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_data_volume_source import V1alpha1DataVolumeSource + + +class TestV1alpha1DataVolumeSource(unittest.TestCase): + """ V1alpha1DataVolumeSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1DataVolumeSource(self): + """ + Test V1alpha1DataVolumeSource + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_data_volume_source.V1alpha1DataVolumeSource() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_data_volume_source_http.py b/test/test_v1alpha1_data_volume_source_http.py new file mode 100644 index 00000000..6493eeca --- /dev/null +++ b/test/test_v1alpha1_data_volume_source_http.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_data_volume_source_http import V1alpha1DataVolumeSourceHTTP + + +class TestV1alpha1DataVolumeSourceHTTP(unittest.TestCase): + """ V1alpha1DataVolumeSourceHTTP unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1DataVolumeSourceHTTP(self): + """ + Test V1alpha1DataVolumeSourceHTTP + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_data_volume_source_http.V1alpha1DataVolumeSourceHTTP() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_data_volume_source_s3.py b/test/test_v1alpha1_data_volume_source_s3.py new file mode 100644 index 00000000..5d8be34c --- /dev/null +++ b/test/test_v1alpha1_data_volume_source_s3.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_data_volume_source_s3 import V1alpha1DataVolumeSourceS3 + + +class TestV1alpha1DataVolumeSourceS3(unittest.TestCase): + """ V1alpha1DataVolumeSourceS3 unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1DataVolumeSourceS3(self): + """ + Test V1alpha1DataVolumeSourceS3 + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_data_volume_source_s3.V1alpha1DataVolumeSourceS3() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_data_volume_spec.py b/test/test_v1alpha1_data_volume_spec.py new file mode 100644 index 00000000..271f2a92 --- /dev/null +++ b/test/test_v1alpha1_data_volume_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_data_volume_spec import V1alpha1DataVolumeSpec + + +class TestV1alpha1DataVolumeSpec(unittest.TestCase): + """ V1alpha1DataVolumeSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1DataVolumeSpec(self): + """ + Test V1alpha1DataVolumeSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_data_volume_spec.V1alpha1DataVolumeSpec() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_data_volume_status.py b/test/test_v1alpha1_data_volume_status.py new file mode 100644 index 00000000..2b5f29f9 --- /dev/null +++ b/test/test_v1alpha1_data_volume_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_data_volume_status import V1alpha1DataVolumeStatus + + +class TestV1alpha1DataVolumeStatus(unittest.TestCase): + """ V1alpha1DataVolumeStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1DataVolumeStatus(self): + """ + Test V1alpha1DataVolumeStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_data_volume_status.V1alpha1DataVolumeStatus() + pass + + +if __name__ == '__main__': + unittest.main() From cecec70c85f5ca220b6bce6c41f8b9094ba90bdc Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 5 Sep 2018 15:59:54 +0000 Subject: [PATCH 046/521] Client Python update by Travis Build 4744 --- README.md | 3 +- docs/V1MultusNetwork.md | 10 +++ docs/V1Network.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_multus_network.py | 126 +++++++++++++++++++++++++++ kubevirt/models/v1_network.py | 28 +++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_multus_network.py | 44 ++++++++++ 14 files changed, 220 insertions(+), 7 deletions(-) create mode 100644 docs/V1MultusNetwork.md create mode 100644 kubevirt/models/v1_multus_network.py create mode 100644 test/test_v1_multus_network.py diff --git a/README.md b/README.md index b5293b76..fbd51d73 100644 --- a/README.md +++ b/README.md @@ -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: v0.7.0-329-gd0f6cf21 +- Package version: v0.7.0-352-g27f4f0b0 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -170,6 +170,7 @@ Class | Method | HTTP request | Description - [V1LunTarget](docs/V1LunTarget.md) - [V1Machine](docs/V1Machine.md) - [V1Memory](docs/V1Memory.md) + - [V1MultusNetwork](docs/V1MultusNetwork.md) - [V1Network](docs/V1Network.md) - [V1NodeAffinity](docs/V1NodeAffinity.md) - [V1NodeSelector](docs/V1NodeSelector.md) diff --git a/docs/V1MultusNetwork.md b/docs/V1MultusNetwork.md new file mode 100644 index 00000000..27cbd2c2 --- /dev/null +++ b/docs/V1MultusNetwork.md @@ -0,0 +1,10 @@ +# V1MultusNetwork + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**network_name** | **str** | References to a NetworkAttachmentDefinition CRD object in the same namespace. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Network.md b/docs/V1Network.md index 541c1e8d..7806f7ab 100644 --- a/docs/V1Network.md +++ b/docs/V1Network.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**multus** | [**V1MultusNetwork**](V1MultusNetwork.md) | | [optional] **name** | **str** | Network name. Must be a DNS_LABEL and unique within the vm. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | **pod** | [**V1PodNetwork**](V1PodNetwork.md) | | [optional] diff --git a/git_push.sh b/git_push.sh index e0fb2d23..76f0e23f 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.7.0-329-gd0f6cf21" + release_note="Auto-generated client v0.7.0-352-g27f4f0b0" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index f4956bc1..7ccebb24 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -131,6 +131,9 @@ [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_memory.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_memory.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Memory.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_multus_network.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_multus_network.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1MultusNetwork.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Network.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 91e97ca2..a304e828 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -57,6 +57,7 @@ from .models.v1_lun_target import V1LunTarget from .models.v1_machine import V1Machine from .models.v1_memory import V1Memory +from .models.v1_multus_network import V1MultusNetwork from .models.v1_network import V1Network from .models.v1_node_affinity import V1NodeAffinity from .models.v1_node_selector import V1NodeSelector diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 2abce036..6d74dc03 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.7.0-329-gd0f6cf21/python' + self.user_agent = 'Swagger-Codegen/v0.7.0-352-g27f4f0b0/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index aa3525af..1d44dccd 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.7.0-329-gd0f6cf21".\ + "SDK Package Version: v0.7.0-352-g27f4f0b0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index a5240d45..e8d049b0 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -57,6 +57,7 @@ from .v1_lun_target import V1LunTarget from .v1_machine import V1Machine from .v1_memory import V1Memory +from .v1_multus_network import V1MultusNetwork from .v1_network import V1Network from .v1_node_affinity import V1NodeAffinity from .v1_node_selector import V1NodeSelector diff --git a/kubevirt/models/v1_multus_network.py b/kubevirt/models/v1_multus_network.py new file mode 100644 index 00000000..fb910e3d --- /dev/null +++ b/kubevirt/models/v1_multus_network.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1MultusNetwork(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'network_name': 'str' + } + + attribute_map = { + 'network_name': 'networkName' + } + + def __init__(self, network_name=None): + """ + V1MultusNetwork - a model defined in Swagger + """ + + self._network_name = None + + self.network_name = network_name + + @property + def network_name(self): + """ + Gets the network_name of this V1MultusNetwork. + References to a NetworkAttachmentDefinition CRD object in the same namespace. + + :return: The network_name of this V1MultusNetwork. + :rtype: str + """ + return self._network_name + + @network_name.setter + def network_name(self, network_name): + """ + Sets the network_name of this V1MultusNetwork. + References to a NetworkAttachmentDefinition CRD object in the same namespace. + + :param network_name: The network_name of this V1MultusNetwork. + :type: str + """ + if network_name is None: + raise ValueError("Invalid value for `network_name`, must not be `None`") + + self._network_name = network_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1MultusNetwork): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_network.py b/kubevirt/models/v1_network.py index 7f920f2c..3052568d 100644 --- a/kubevirt/models/v1_network.py +++ b/kubevirt/models/v1_network.py @@ -31,27 +31,53 @@ class V1Network(object): and the value is json key in definition. """ swagger_types = { + 'multus': 'V1MultusNetwork', 'name': 'str', 'pod': 'V1PodNetwork' } attribute_map = { + 'multus': 'multus', 'name': 'name', 'pod': 'pod' } - def __init__(self, name=None, pod=None): + def __init__(self, multus=None, name=None, pod=None): """ V1Network - a model defined in Swagger """ + self._multus = None self._name = None self._pod = None + if multus is not None: + self.multus = multus self.name = name if pod is not None: self.pod = pod + @property + def multus(self): + """ + Gets the multus of this V1Network. + + :return: The multus of this V1Network. + :rtype: V1MultusNetwork + """ + return self._multus + + @multus.setter + def multus(self, multus): + """ + Sets the multus of this V1Network. + + :param multus: The multus of this V1Network. + :type: V1MultusNetwork + """ + + self._multus = multus + @property def name(self): """ diff --git a/setup.py b/setup.py index 022641fb..a1b9bd8d 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.7.0-329-gd0f6cf21" +VERSION = "v0.7.0-352-g27f4f0b0" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index dd12ea96..758eeba8 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.7.0-329-gd0f6cf21" +"packageVersion": "v0.7.0-352-g27f4f0b0" } diff --git a/test/test_v1_multus_network.py b/test/test_v1_multus_network.py new file mode 100644 index 00000000..17008453 --- /dev/null +++ b/test/test_v1_multus_network.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_multus_network import V1MultusNetwork + + +class TestV1MultusNetwork(unittest.TestCase): + """ V1MultusNetwork unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1MultusNetwork(self): + """ + Test V1MultusNetwork + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_multus_network.V1MultusNetwork() + pass + + +if __name__ == '__main__': + unittest.main() From 6fe8a43d4345c6d9eb2dc517a1dad42de4df7b51 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 6 Sep 2018 13:00:17 +0000 Subject: [PATCH 047/521] Client Python update by Travis Build 4763 --- README.md | 3 +- docs/V1DomainPresetSpec.md | 17 - docs/V1VirtualMachineInstancePresetSpec.md | 2 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 - kubevirt/__init__.py | 1 - kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 - kubevirt/models/v1_domain_preset_spec.py | 321 ------------------ ...v1_virtual_machine_instance_preset_spec.py | 6 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_domain_preset_spec.py | 44 --- 14 files changed, 10 insertions(+), 398 deletions(-) delete mode 100644 docs/V1DomainPresetSpec.md delete mode 100644 kubevirt/models/v1_domain_preset_spec.py delete mode 100644 test/test_v1_domain_preset_spec.py diff --git a/README.md b/README.md index fbd51d73..5fd2aa53 100644 --- a/README.md +++ b/README.md @@ -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: v0.7.0-352-g27f4f0b0 +- Package version: v0.8.0-16-g8112d64e - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -142,7 +142,6 @@ Class | Method | HTTP request | Description - [V1Devices](docs/V1Devices.md) - [V1Disk](docs/V1Disk.md) - [V1DiskTarget](docs/V1DiskTarget.md) - - [V1DomainPresetSpec](docs/V1DomainPresetSpec.md) - [V1DomainSpec](docs/V1DomainSpec.md) - [V1EmptyDiskSource](docs/V1EmptyDiskSource.md) - [V1EphemeralVolumeSource](docs/V1EphemeralVolumeSource.md) diff --git a/docs/V1DomainPresetSpec.md b/docs/V1DomainPresetSpec.md deleted file mode 100644 index 856dad43..00000000 --- a/docs/V1DomainPresetSpec.md +++ /dev/null @@ -1,17 +0,0 @@ -# V1DomainPresetSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**clock** | [**V1Clock**](V1Clock.md) | Clock sets the clock and timers of the vmi. +optional | [optional] -**cpu** | [**V1CPU**](V1CPU.md) | CPU allow specified the detailed CPU topology inside the vmi. +optional | [optional] -**devices** | [**V1Devices**](V1Devices.md) | Devices allows adding disks, network interfaces, ... +optional | [optional] -**features** | [**V1Features**](V1Features.md) | Features like acpi, apic, hyperv. +optional | [optional] -**firmware** | [**V1Firmware**](V1Firmware.md) | Firmware. +optional | [optional] -**machine** | [**V1Machine**](V1Machine.md) | Machine type. +optional | [optional] -**memory** | [**V1Memory**](V1Memory.md) | Memory allow specifying the VMI memory features. +optional | [optional] -**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | Resources describes the Compute Resources required by this vmi. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1VirtualMachineInstancePresetSpec.md b/docs/V1VirtualMachineInstancePresetSpec.md index 43169bb1..98791e49 100644 --- a/docs/V1VirtualMachineInstancePresetSpec.md +++ b/docs/V1VirtualMachineInstancePresetSpec.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**domain** | [**V1DomainPresetSpec**](V1DomainPresetSpec.md) | Domain is the same object type as contained in VirtualMachineInstanceSpec | [optional] +**domain** | [**V1DomainSpec**](V1DomainSpec.md) | Domain is the same object type as contained in VirtualMachineInstanceSpec | [optional] **selector** | [**V1LabelSelector**](V1LabelSelector.md) | Selector is a label query over a set of VMIs. Required. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 76f0e23f..ad73b27e 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.7.0-352-g27f4f0b0" + release_note="Auto-generated client v0.8.0-16-g8112d64e" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 7ccebb24..e4cddc89 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -47,9 +47,6 @@ [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_disk_target.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_disk_target.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DiskTarget.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_domain_preset_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_domain_preset_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DomainPresetSpec.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_domain_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_domain_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DomainSpec.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index a304e828..372fc3bd 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -29,7 +29,6 @@ from .models.v1_devices import V1Devices from .models.v1_disk import V1Disk from .models.v1_disk_target import V1DiskTarget -from .models.v1_domain_preset_spec import V1DomainPresetSpec from .models.v1_domain_spec import V1DomainSpec from .models.v1_empty_disk_source import V1EmptyDiskSource from .models.v1_ephemeral_volume_source import V1EphemeralVolumeSource diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 6d74dc03..0b1e1b88 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.7.0-352-g27f4f0b0/python' + self.user_agent = 'Swagger-Codegen/v0.8.0-16-g8112d64e/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 1d44dccd..15e39947 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.7.0-352-g27f4f0b0".\ + "SDK Package Version: v0.8.0-16-g8112d64e".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index e8d049b0..875e9220 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -29,7 +29,6 @@ from .v1_devices import V1Devices from .v1_disk import V1Disk from .v1_disk_target import V1DiskTarget -from .v1_domain_preset_spec import V1DomainPresetSpec from .v1_domain_spec import V1DomainSpec from .v1_empty_disk_source import V1EmptyDiskSource from .v1_ephemeral_volume_source import V1EphemeralVolumeSource diff --git a/kubevirt/models/v1_domain_preset_spec.py b/kubevirt/models/v1_domain_preset_spec.py deleted file mode 100644 index 50b7cbfc..00000000 --- a/kubevirt/models/v1_domain_preset_spec.py +++ /dev/null @@ -1,321 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1DomainPresetSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'clock': 'V1Clock', - 'cpu': 'V1CPU', - 'devices': 'V1Devices', - 'features': 'V1Features', - 'firmware': 'V1Firmware', - 'machine': 'V1Machine', - 'memory': 'V1Memory', - 'resources': 'V1ResourceRequirements' - } - - attribute_map = { - 'clock': 'clock', - 'cpu': 'cpu', - 'devices': 'devices', - 'features': 'features', - 'firmware': 'firmware', - 'machine': 'machine', - 'memory': 'memory', - 'resources': 'resources' - } - - def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, memory=None, resources=None): - """ - V1DomainPresetSpec - a model defined in Swagger - """ - - self._clock = None - self._cpu = None - self._devices = None - self._features = None - self._firmware = None - self._machine = None - self._memory = None - self._resources = None - - if clock is not None: - self.clock = clock - if cpu is not None: - self.cpu = cpu - if devices is not None: - self.devices = devices - if features is not None: - self.features = features - if firmware is not None: - self.firmware = firmware - if machine is not None: - self.machine = machine - if memory is not None: - self.memory = memory - if resources is not None: - self.resources = resources - - @property - def clock(self): - """ - Gets the clock of this V1DomainPresetSpec. - Clock sets the clock and timers of the vmi. +optional - - :return: The clock of this V1DomainPresetSpec. - :rtype: V1Clock - """ - return self._clock - - @clock.setter - def clock(self, clock): - """ - Sets the clock of this V1DomainPresetSpec. - Clock sets the clock and timers of the vmi. +optional - - :param clock: The clock of this V1DomainPresetSpec. - :type: V1Clock - """ - - self._clock = clock - - @property - def cpu(self): - """ - Gets the cpu of this V1DomainPresetSpec. - CPU allow specified the detailed CPU topology inside the vmi. +optional - - :return: The cpu of this V1DomainPresetSpec. - :rtype: V1CPU - """ - return self._cpu - - @cpu.setter - def cpu(self, cpu): - """ - Sets the cpu of this V1DomainPresetSpec. - CPU allow specified the detailed CPU topology inside the vmi. +optional - - :param cpu: The cpu of this V1DomainPresetSpec. - :type: V1CPU - """ - - self._cpu = cpu - - @property - def devices(self): - """ - Gets the devices of this V1DomainPresetSpec. - Devices allows adding disks, network interfaces, ... +optional - - :return: The devices of this V1DomainPresetSpec. - :rtype: V1Devices - """ - return self._devices - - @devices.setter - def devices(self, devices): - """ - Sets the devices of this V1DomainPresetSpec. - Devices allows adding disks, network interfaces, ... +optional - - :param devices: The devices of this V1DomainPresetSpec. - :type: V1Devices - """ - - self._devices = devices - - @property - def features(self): - """ - Gets the features of this V1DomainPresetSpec. - Features like acpi, apic, hyperv. +optional - - :return: The features of this V1DomainPresetSpec. - :rtype: V1Features - """ - return self._features - - @features.setter - def features(self, features): - """ - Sets the features of this V1DomainPresetSpec. - Features like acpi, apic, hyperv. +optional - - :param features: The features of this V1DomainPresetSpec. - :type: V1Features - """ - - self._features = features - - @property - def firmware(self): - """ - Gets the firmware of this V1DomainPresetSpec. - Firmware. +optional - - :return: The firmware of this V1DomainPresetSpec. - :rtype: V1Firmware - """ - return self._firmware - - @firmware.setter - def firmware(self, firmware): - """ - Sets the firmware of this V1DomainPresetSpec. - Firmware. +optional - - :param firmware: The firmware of this V1DomainPresetSpec. - :type: V1Firmware - """ - - self._firmware = firmware - - @property - def machine(self): - """ - Gets the machine of this V1DomainPresetSpec. - Machine type. +optional - - :return: The machine of this V1DomainPresetSpec. - :rtype: V1Machine - """ - return self._machine - - @machine.setter - def machine(self, machine): - """ - Sets the machine of this V1DomainPresetSpec. - Machine type. +optional - - :param machine: The machine of this V1DomainPresetSpec. - :type: V1Machine - """ - - self._machine = machine - - @property - def memory(self): - """ - Gets the memory of this V1DomainPresetSpec. - Memory allow specifying the VMI memory features. +optional - - :return: The memory of this V1DomainPresetSpec. - :rtype: V1Memory - """ - return self._memory - - @memory.setter - def memory(self, memory): - """ - Sets the memory of this V1DomainPresetSpec. - Memory allow specifying the VMI memory features. +optional - - :param memory: The memory of this V1DomainPresetSpec. - :type: V1Memory - """ - - self._memory = memory - - @property - def resources(self): - """ - Gets the resources of this V1DomainPresetSpec. - Resources describes the Compute Resources required by this vmi. - - :return: The resources of this V1DomainPresetSpec. - :rtype: V1ResourceRequirements - """ - return self._resources - - @resources.setter - def resources(self, resources): - """ - Sets the resources of this V1DomainPresetSpec. - Resources describes the Compute Resources required by this vmi. - - :param resources: The resources of this V1DomainPresetSpec. - :type: V1ResourceRequirements - """ - - self._resources = resources - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1DomainPresetSpec): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_preset_spec.py b/kubevirt/models/v1_virtual_machine_instance_preset_spec.py index 0dfce62e..2a106910 100644 --- a/kubevirt/models/v1_virtual_machine_instance_preset_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_preset_spec.py @@ -31,7 +31,7 @@ class V1VirtualMachineInstancePresetSpec(object): and the value is json key in definition. """ swagger_types = { - 'domain': 'V1DomainPresetSpec', + 'domain': 'V1DomainSpec', 'selector': 'V1LabelSelector' } @@ -59,7 +59,7 @@ def domain(self): Domain is the same object type as contained in VirtualMachineInstanceSpec :return: The domain of this V1VirtualMachineInstancePresetSpec. - :rtype: V1DomainPresetSpec + :rtype: V1DomainSpec """ return self._domain @@ -70,7 +70,7 @@ def domain(self, domain): Domain is the same object type as contained in VirtualMachineInstanceSpec :param domain: The domain of this V1VirtualMachineInstancePresetSpec. - :type: V1DomainPresetSpec + :type: V1DomainSpec """ self._domain = domain diff --git a/setup.py b/setup.py index a1b9bd8d..c76c6144 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.7.0-352-g27f4f0b0" +VERSION = "v0.8.0-16-g8112d64e" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 758eeba8..2598089b 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.7.0-352-g27f4f0b0" +"packageVersion": "v0.8.0-16-g8112d64e" } diff --git a/test/test_v1_domain_preset_spec.py b/test/test_v1_domain_preset_spec.py deleted file mode 100644 index e66aeb60..00000000 --- a/test/test_v1_domain_preset_spec.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_domain_preset_spec import V1DomainPresetSpec - - -class TestV1DomainPresetSpec(unittest.TestCase): - """ V1DomainPresetSpec unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1DomainPresetSpec(self): - """ - Test V1DomainPresetSpec - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_domain_preset_spec.V1DomainPresetSpec() - pass - - -if __name__ == '__main__': - unittest.main() From 5d5d849d266f434dd9248fe965d6782f7fd6712d Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 11 Sep 2018 17:16:02 +0000 Subject: [PATCH 048/521] Client Python update by Travis Build 4803 --- README.md | 5 +- docs/V1ConfigMapVolumeSource.md | 11 ++ docs/V1HostDisk.md | 12 ++ docs/V1SecretVolumeSource.md | 11 ++ docs/V1Volume.md | 3 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 9 + kubevirt/__init__.py | 3 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 3 + .../models/v1_config_map_volume_source.py | 153 +++++++++++++++ kubevirt/models/v1_host_disk.py | 183 ++++++++++++++++++ kubevirt/models/v1_secret_volume_source.py | 153 +++++++++++++++ kubevirt/models/v1_volume.py | 90 ++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_config_map_volume_source.py | 44 +++++ test/test_v1_host_disk.py | 44 +++++ test/test_v1_secret_volume_source.py | 44 +++++ 20 files changed, 769 insertions(+), 9 deletions(-) create mode 100644 docs/V1ConfigMapVolumeSource.md create mode 100644 docs/V1HostDisk.md create mode 100644 docs/V1SecretVolumeSource.md create mode 100644 kubevirt/models/v1_config_map_volume_source.py create mode 100644 kubevirt/models/v1_host_disk.py create mode 100644 kubevirt/models/v1_secret_volume_source.py create mode 100644 test/test_v1_config_map_volume_source.py create mode 100644 test/test_v1_host_disk.py create mode 100644 test/test_v1_secret_volume_source.py diff --git a/README.md b/README.md index 5fd2aa53..af5122d7 100644 --- a/README.md +++ b/README.md @@ -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: v0.8.0-16-g8112d64e +- Package version: v0.8.0-37-g80aba0f0 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -137,6 +137,7 @@ Class | Method | HTTP request | Description - [V1Clock](docs/V1Clock.md) - [V1ClockOffsetUTC](docs/V1ClockOffsetUTC.md) - [V1CloudInitNoCloudSource](docs/V1CloudInitNoCloudSource.md) + - [V1ConfigMapVolumeSource](docs/V1ConfigMapVolumeSource.md) - [V1DataVolumeSource](docs/V1DataVolumeSource.md) - [V1DeleteOptions](docs/V1DeleteOptions.md) - [V1Devices](docs/V1Devices.md) @@ -155,6 +156,7 @@ Class | Method | HTTP request | Description - [V1FloppyTarget](docs/V1FloppyTarget.md) - [V1GroupVersionForDiscovery](docs/V1GroupVersionForDiscovery.md) - [V1HPETTimer](docs/V1HPETTimer.md) + - [V1HostDisk](docs/V1HostDisk.md) - [V1Hugepages](docs/V1Hugepages.md) - [V1HypervTimer](docs/V1HypervTimer.md) - [V1I6300ESBWatchdog](docs/V1I6300ESBWatchdog.md) @@ -190,6 +192,7 @@ Class | Method | HTTP request | Description - [V1RTCTimer](docs/V1RTCTimer.md) - [V1RegistryDiskSource](docs/V1RegistryDiskSource.md) - [V1ResourceRequirements](docs/V1ResourceRequirements.md) + - [V1SecretVolumeSource](docs/V1SecretVolumeSource.md) - [V1ServerAddressByClientCIDR](docs/V1ServerAddressByClientCIDR.md) - [V1Status](docs/V1Status.md) - [V1StatusCause](docs/V1StatusCause.md) diff --git a/docs/V1ConfigMapVolumeSource.md b/docs/V1ConfigMapVolumeSource.md new file mode 100644 index 00000000..2ebcb199 --- /dev/null +++ b/docs/V1ConfigMapVolumeSource.md @@ -0,0 +1,11 @@ +# V1ConfigMapVolumeSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] +**optional** | **bool** | Specify whether the ConfigMap or it's keys must be defined +optional | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1HostDisk.md b/docs/V1HostDisk.md new file mode 100644 index 00000000..fcb5146f --- /dev/null +++ b/docs/V1HostDisk.md @@ -0,0 +1,12 @@ +# V1HostDisk + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**capacity** | **str** | Capacity of the sparse disk +optional | [optional] +**path** | **str** | The path to HostDisk image located on the cluster | +**type** | **str** | Contains information if disk.img exists or should be created allowed options are 'Disk' and 'DiskOrCreate' | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1SecretVolumeSource.md b/docs/V1SecretVolumeSource.md new file mode 100644 index 00000000..09540dd5 --- /dev/null +++ b/docs/V1SecretVolumeSource.md @@ -0,0 +1,11 @@ +# V1SecretVolumeSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**optional** | **bool** | Specify whether the Secret or it's keys must be defined +optional | [optional] +**secret_name** | **str** | Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret +optional | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Volume.md b/docs/V1Volume.md index c51a6733..c7bde542 100644 --- a/docs/V1Volume.md +++ b/docs/V1Volume.md @@ -4,12 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cloud_init_no_cloud** | [**V1CloudInitNoCloudSource**](V1CloudInitNoCloudSource.md) | CloudInitNoCloud represents a cloud-init NoCloud user-data source. The NoCloud data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html +optional | [optional] +**config_map** | [**V1ConfigMapVolumeSource**](V1ConfigMapVolumeSource.md) | ConfigMapSource represents a reference to a ConfigMap in the same namespace. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/ +optional | [optional] **data_volume** | [**V1DataVolumeSource**](V1DataVolumeSource.md) | DataVolume represents the dynamic creation a PVC for this volume as well as the process of populating that PVC with a disk image. +optional | [optional] **empty_disk** | [**V1EmptyDiskSource**](V1EmptyDiskSource.md) | EmptyDisk represents a temporary disk which shares the vmis lifecycle. More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html +optional | [optional] **ephemeral** | [**V1EphemeralVolumeSource**](V1EphemeralVolumeSource.md) | Ephemeral is a special volume source that \"wraps\" specified source and provides copy-on-write image on top of it. +optional | [optional] +**host_disk** | [**V1HostDisk**](V1HostDisk.md) | HostDisk represents a disk created on the cluster level +optional | [optional] **name** | **str** | Volume's name. Must be a DNS_LABEL and unique within the vmi. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | **persistent_volume_claim** | [**V1PersistentVolumeClaimVolumeSource**](V1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims +optional | [optional] **registry_disk** | [**V1RegistryDiskSource**](V1RegistryDiskSource.md) | RegistryDisk references a docker image, embedding a qcow or raw disk. More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html +optional | [optional] +**secret** | [**V1SecretVolumeSource**](V1SecretVolumeSource.md) | SecretVolumeSource represents a reference to a secret data in the same namespace. More info: https://kubernetes.io/docs/concepts/configuration/secret/ +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index ad73b27e..76f78315 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.8.0-16-g8112d64e" + release_note="Auto-generated client v0.8.0-37-g80aba0f0" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index e4cddc89..2ddb831a 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -32,6 +32,9 @@ [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_cloud_init_no_cloud_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_cloud_init_no_cloud_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CloudInitNoCloudSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_config_map_volume_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_config_map_volume_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ConfigMapVolumeSource.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_data_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_data_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DataVolumeSource.md @@ -86,6 +89,9 @@ [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_hpet_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_hpet_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1HPETTimer.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_host_disk.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_host_disk.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1HostDisk.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_hugepages.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_hugepages.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Hugepages.md @@ -191,6 +197,9 @@ [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_resource_requirements.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_resource_requirements.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ResourceRequirements.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_secret_volume_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_secret_volume_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SecretVolumeSource.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_server_address_by_client_cidr.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_server_address_by_client_cidr.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ServerAddressByClientCIDR.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 372fc3bd..e02d0655 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -24,6 +24,7 @@ from .models.v1_clock import V1Clock from .models.v1_clock_offset_utc import V1ClockOffsetUTC from .models.v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource +from .models.v1_config_map_volume_source import V1ConfigMapVolumeSource from .models.v1_data_volume_source import V1DataVolumeSource from .models.v1_delete_options import V1DeleteOptions from .models.v1_devices import V1Devices @@ -42,6 +43,7 @@ from .models.v1_floppy_target import V1FloppyTarget from .models.v1_group_version_for_discovery import V1GroupVersionForDiscovery from .models.v1_hpet_timer import V1HPETTimer +from .models.v1_host_disk import V1HostDisk from .models.v1_hugepages import V1Hugepages from .models.v1_hyperv_timer import V1HypervTimer from .models.v1_i6300_esb_watchdog import V1I6300ESBWatchdog @@ -77,6 +79,7 @@ from .models.v1_rtc_timer import V1RTCTimer from .models.v1_registry_disk_source import V1RegistryDiskSource from .models.v1_resource_requirements import V1ResourceRequirements +from .models.v1_secret_volume_source import V1SecretVolumeSource from .models.v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR from .models.v1_status import V1Status from .models.v1_status_cause import V1StatusCause diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 0b1e1b88..4c081433 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.8.0-16-g8112d64e/python' + self.user_agent = 'Swagger-Codegen/v0.8.0-37-g80aba0f0/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 15e39947..d188b104 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.8.0-16-g8112d64e".\ + "SDK Package Version: v0.8.0-37-g80aba0f0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 875e9220..8fe9687e 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -24,6 +24,7 @@ from .v1_clock import V1Clock from .v1_clock_offset_utc import V1ClockOffsetUTC from .v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource +from .v1_config_map_volume_source import V1ConfigMapVolumeSource from .v1_data_volume_source import V1DataVolumeSource from .v1_delete_options import V1DeleteOptions from .v1_devices import V1Devices @@ -42,6 +43,7 @@ from .v1_floppy_target import V1FloppyTarget from .v1_group_version_for_discovery import V1GroupVersionForDiscovery from .v1_hpet_timer import V1HPETTimer +from .v1_host_disk import V1HostDisk from .v1_hugepages import V1Hugepages from .v1_hyperv_timer import V1HypervTimer from .v1_i6300_esb_watchdog import V1I6300ESBWatchdog @@ -77,6 +79,7 @@ from .v1_rtc_timer import V1RTCTimer from .v1_registry_disk_source import V1RegistryDiskSource from .v1_resource_requirements import V1ResourceRequirements +from .v1_secret_volume_source import V1SecretVolumeSource from .v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR from .v1_status import V1Status from .v1_status_cause import V1StatusCause diff --git a/kubevirt/models/v1_config_map_volume_source.py b/kubevirt/models/v1_config_map_volume_source.py new file mode 100644 index 00000000..489e635a --- /dev/null +++ b/kubevirt/models/v1_config_map_volume_source.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ConfigMapVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'optional': 'bool' + } + + attribute_map = { + 'name': 'name', + 'optional': 'optional' + } + + def __init__(self, name=None, optional=None): + """ + V1ConfigMapVolumeSource - a model defined in Swagger + """ + + self._name = None + self._optional = None + + if name is not None: + self.name = name + if optional is not None: + self.optional = optional + + @property + def name(self): + """ + Gets the name of this V1ConfigMapVolumeSource. + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + :return: The name of this V1ConfigMapVolumeSource. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1ConfigMapVolumeSource. + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + :param name: The name of this V1ConfigMapVolumeSource. + :type: str + """ + + self._name = name + + @property + def optional(self): + """ + Gets the optional of this V1ConfigMapVolumeSource. + Specify whether the ConfigMap or it's keys must be defined +optional + + :return: The optional of this V1ConfigMapVolumeSource. + :rtype: bool + """ + return self._optional + + @optional.setter + def optional(self, optional): + """ + Sets the optional of this V1ConfigMapVolumeSource. + Specify whether the ConfigMap or it's keys must be defined +optional + + :param optional: The optional of this V1ConfigMapVolumeSource. + :type: bool + """ + + self._optional = optional + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1ConfigMapVolumeSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_host_disk.py b/kubevirt/models/v1_host_disk.py new file mode 100644 index 00000000..62e5b66c --- /dev/null +++ b/kubevirt/models/v1_host_disk.py @@ -0,0 +1,183 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1HostDisk(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'capacity': 'str', + 'path': 'str', + 'type': 'str' + } + + attribute_map = { + 'capacity': 'capacity', + 'path': 'path', + 'type': 'type' + } + + def __init__(self, capacity=None, path=None, type=None): + """ + V1HostDisk - a model defined in Swagger + """ + + self._capacity = None + self._path = None + self._type = None + + if capacity is not None: + self.capacity = capacity + self.path = path + self.type = type + + @property + def capacity(self): + """ + Gets the capacity of this V1HostDisk. + Capacity of the sparse disk +optional + + :return: The capacity of this V1HostDisk. + :rtype: str + """ + return self._capacity + + @capacity.setter + def capacity(self, capacity): + """ + Sets the capacity of this V1HostDisk. + Capacity of the sparse disk +optional + + :param capacity: The capacity of this V1HostDisk. + :type: str + """ + + self._capacity = capacity + + @property + def path(self): + """ + Gets the path of this V1HostDisk. + The path to HostDisk image located on the cluster + + :return: The path of this V1HostDisk. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this V1HostDisk. + The path to HostDisk image located on the cluster + + :param path: The path of this V1HostDisk. + :type: str + """ + if path is None: + raise ValueError("Invalid value for `path`, must not be `None`") + + self._path = path + + @property + def type(self): + """ + Gets the type of this V1HostDisk. + Contains information if disk.img exists or should be created allowed options are 'Disk' and 'DiskOrCreate' + + :return: The type of this V1HostDisk. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1HostDisk. + Contains information if disk.img exists or should be created allowed options are 'Disk' and 'DiskOrCreate' + + :param type: The type of this V1HostDisk. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1HostDisk): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_secret_volume_source.py b/kubevirt/models/v1_secret_volume_source.py new file mode 100644 index 00000000..6d1a55b9 --- /dev/null +++ b/kubevirt/models/v1_secret_volume_source.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SecretVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'optional': 'bool', + 'secret_name': 'str' + } + + attribute_map = { + 'optional': 'optional', + 'secret_name': 'secretName' + } + + def __init__(self, optional=None, secret_name=None): + """ + V1SecretVolumeSource - a model defined in Swagger + """ + + self._optional = None + self._secret_name = None + + if optional is not None: + self.optional = optional + if secret_name is not None: + self.secret_name = secret_name + + @property + def optional(self): + """ + Gets the optional of this V1SecretVolumeSource. + Specify whether the Secret or it's keys must be defined +optional + + :return: The optional of this V1SecretVolumeSource. + :rtype: bool + """ + return self._optional + + @optional.setter + def optional(self, optional): + """ + Sets the optional of this V1SecretVolumeSource. + Specify whether the Secret or it's keys must be defined +optional + + :param optional: The optional of this V1SecretVolumeSource. + :type: bool + """ + + self._optional = optional + + @property + def secret_name(self): + """ + Gets the secret_name of this V1SecretVolumeSource. + Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret +optional + + :return: The secret_name of this V1SecretVolumeSource. + :rtype: str + """ + return self._secret_name + + @secret_name.setter + def secret_name(self, secret_name): + """ + Sets the secret_name of this V1SecretVolumeSource. + Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret +optional + + :param secret_name: The secret_name of this V1SecretVolumeSource. + :type: str + """ + + self._secret_name = secret_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1SecretVolumeSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_volume.py b/kubevirt/models/v1_volume.py index a46f730d..7b07f09f 100644 --- a/kubevirt/models/v1_volume.py +++ b/kubevirt/models/v1_volume.py @@ -32,50 +32,65 @@ class V1Volume(object): """ swagger_types = { 'cloud_init_no_cloud': 'V1CloudInitNoCloudSource', + 'config_map': 'V1ConfigMapVolumeSource', 'data_volume': 'V1DataVolumeSource', 'empty_disk': 'V1EmptyDiskSource', 'ephemeral': 'V1EphemeralVolumeSource', + 'host_disk': 'V1HostDisk', 'name': 'str', 'persistent_volume_claim': 'V1PersistentVolumeClaimVolumeSource', - 'registry_disk': 'V1RegistryDiskSource' + 'registry_disk': 'V1RegistryDiskSource', + 'secret': 'V1SecretVolumeSource' } attribute_map = { 'cloud_init_no_cloud': 'cloudInitNoCloud', + 'config_map': 'configMap', 'data_volume': 'dataVolume', 'empty_disk': 'emptyDisk', 'ephemeral': 'ephemeral', + 'host_disk': 'hostDisk', 'name': 'name', 'persistent_volume_claim': 'persistentVolumeClaim', - 'registry_disk': 'registryDisk' + 'registry_disk': 'registryDisk', + 'secret': 'secret' } - def __init__(self, cloud_init_no_cloud=None, data_volume=None, empty_disk=None, ephemeral=None, name=None, persistent_volume_claim=None, registry_disk=None): + def __init__(self, cloud_init_no_cloud=None, config_map=None, data_volume=None, empty_disk=None, ephemeral=None, host_disk=None, name=None, persistent_volume_claim=None, registry_disk=None, secret=None): """ V1Volume - a model defined in Swagger """ self._cloud_init_no_cloud = None + self._config_map = None self._data_volume = None self._empty_disk = None self._ephemeral = None + self._host_disk = None self._name = None self._persistent_volume_claim = None self._registry_disk = None + self._secret = None if cloud_init_no_cloud is not None: self.cloud_init_no_cloud = cloud_init_no_cloud + if config_map is not None: + self.config_map = config_map if data_volume is not None: self.data_volume = data_volume if empty_disk is not None: self.empty_disk = empty_disk if ephemeral is not None: self.ephemeral = ephemeral + if host_disk is not None: + self.host_disk = host_disk self.name = name if persistent_volume_claim is not None: self.persistent_volume_claim = persistent_volume_claim if registry_disk is not None: self.registry_disk = registry_disk + if secret is not None: + self.secret = secret @property def cloud_init_no_cloud(self): @@ -100,6 +115,29 @@ def cloud_init_no_cloud(self, cloud_init_no_cloud): self._cloud_init_no_cloud = cloud_init_no_cloud + @property + def config_map(self): + """ + Gets the config_map of this V1Volume. + ConfigMapSource represents a reference to a ConfigMap in the same namespace. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/ +optional + + :return: The config_map of this V1Volume. + :rtype: V1ConfigMapVolumeSource + """ + return self._config_map + + @config_map.setter + def config_map(self, config_map): + """ + Sets the config_map of this V1Volume. + ConfigMapSource represents a reference to a ConfigMap in the same namespace. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/ +optional + + :param config_map: The config_map of this V1Volume. + :type: V1ConfigMapVolumeSource + """ + + self._config_map = config_map + @property def data_volume(self): """ @@ -169,6 +207,29 @@ def ephemeral(self, ephemeral): self._ephemeral = ephemeral + @property + def host_disk(self): + """ + Gets the host_disk of this V1Volume. + HostDisk represents a disk created on the cluster level +optional + + :return: The host_disk of this V1Volume. + :rtype: V1HostDisk + """ + return self._host_disk + + @host_disk.setter + def host_disk(self, host_disk): + """ + Sets the host_disk of this V1Volume. + HostDisk represents a disk created on the cluster level +optional + + :param host_disk: The host_disk of this V1Volume. + :type: V1HostDisk + """ + + self._host_disk = host_disk + @property def name(self): """ @@ -240,6 +301,29 @@ def registry_disk(self, registry_disk): self._registry_disk = registry_disk + @property + def secret(self): + """ + Gets the secret of this V1Volume. + SecretVolumeSource represents a reference to a secret data in the same namespace. More info: https://kubernetes.io/docs/concepts/configuration/secret/ +optional + + :return: The secret of this V1Volume. + :rtype: V1SecretVolumeSource + """ + return self._secret + + @secret.setter + def secret(self, secret): + """ + Sets the secret of this V1Volume. + SecretVolumeSource represents a reference to a secret data in the same namespace. More info: https://kubernetes.io/docs/concepts/configuration/secret/ +optional + + :param secret: The secret of this V1Volume. + :type: V1SecretVolumeSource + """ + + self._secret = secret + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index c76c6144..453f13eb 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.8.0-16-g8112d64e" +VERSION = "v0.8.0-37-g80aba0f0" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 2598089b..502a2a2c 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.8.0-16-g8112d64e" +"packageVersion": "v0.8.0-37-g80aba0f0" } diff --git a/test/test_v1_config_map_volume_source.py b/test/test_v1_config_map_volume_source.py new file mode 100644 index 00000000..4d3215f8 --- /dev/null +++ b/test/test_v1_config_map_volume_source.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_config_map_volume_source import V1ConfigMapVolumeSource + + +class TestV1ConfigMapVolumeSource(unittest.TestCase): + """ V1ConfigMapVolumeSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ConfigMapVolumeSource(self): + """ + Test V1ConfigMapVolumeSource + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_config_map_volume_source.V1ConfigMapVolumeSource() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_host_disk.py b/test/test_v1_host_disk.py new file mode 100644 index 00000000..cd362f27 --- /dev/null +++ b/test/test_v1_host_disk.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_host_disk import V1HostDisk + + +class TestV1HostDisk(unittest.TestCase): + """ V1HostDisk unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1HostDisk(self): + """ + Test V1HostDisk + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_host_disk.V1HostDisk() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_secret_volume_source.py b/test/test_v1_secret_volume_source.py new file mode 100644 index 00000000..19d7d5d3 --- /dev/null +++ b/test/test_v1_secret_volume_source.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_secret_volume_source import V1SecretVolumeSource + + +class TestV1SecretVolumeSource(unittest.TestCase): + """ V1SecretVolumeSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SecretVolumeSource(self): + """ + Test V1SecretVolumeSource + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_secret_volume_source.V1SecretVolumeSource() + pass + + +if __name__ == '__main__': + unittest.main() From 1b247fbb11d70076fa70bc199d31ee01e166d322 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 12 Sep 2018 13:32:21 +0000 Subject: [PATCH 049/521] Client Python update by Travis Build 4812 --- README.md | 2 +- docs/V1CPU.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_cpu.py | 30 +++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index af5122d7..d30a1631 100644 --- a/README.md +++ b/README.md @@ -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: v0.8.0-37-g80aba0f0 +- Package version: v0.8.0-74-g27961727 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1CPU.md b/docs/V1CPU.md index 09768990..88343d43 100644 --- a/docs/V1CPU.md +++ b/docs/V1CPU.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cores** | **int** | Cores specifies the number of cores inside the vmi. Must be a value greater or equal 1. | [optional] +**dedicated_cpu_placement** | **bool** | DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. +optional | [optional] **model** | **str** | Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/blob/master/src/cpu/cpu_map.xml. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. For more information see https://libvirt.org/formatdomain.html#elementsCPU. Defaults to host-model. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 76f78315..0b4b149a 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.8.0-37-g80aba0f0" + release_note="Auto-generated client v0.8.0-74-g27961727" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 4c081433..da36b119 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.8.0-37-g80aba0f0/python' + self.user_agent = 'Swagger-Codegen/v0.8.0-74-g27961727/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index d188b104..d983e510 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.8.0-37-g80aba0f0".\ + "SDK Package Version: v0.8.0-74-g27961727".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_cpu.py b/kubevirt/models/v1_cpu.py index f510ec5f..156dc347 100644 --- a/kubevirt/models/v1_cpu.py +++ b/kubevirt/models/v1_cpu.py @@ -32,24 +32,29 @@ class V1CPU(object): """ swagger_types = { 'cores': 'int', + 'dedicated_cpu_placement': 'bool', 'model': 'str' } attribute_map = { 'cores': 'cores', + 'dedicated_cpu_placement': 'dedicatedCpuPlacement', 'model': 'model' } - def __init__(self, cores=None, model=None): + def __init__(self, cores=None, dedicated_cpu_placement=None, model=None): """ V1CPU - a model defined in Swagger """ self._cores = None + self._dedicated_cpu_placement = None self._model = None if cores is not None: self.cores = cores + if dedicated_cpu_placement is not None: + self.dedicated_cpu_placement = dedicated_cpu_placement if model is not None: self.model = model @@ -76,6 +81,29 @@ def cores(self, cores): self._cores = cores + @property + def dedicated_cpu_placement(self): + """ + Gets the dedicated_cpu_placement of this V1CPU. + DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. +optional + + :return: The dedicated_cpu_placement of this V1CPU. + :rtype: bool + """ + return self._dedicated_cpu_placement + + @dedicated_cpu_placement.setter + def dedicated_cpu_placement(self, dedicated_cpu_placement): + """ + Sets the dedicated_cpu_placement of this V1CPU. + DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. +optional + + :param dedicated_cpu_placement: The dedicated_cpu_placement of this V1CPU. + :type: bool + """ + + self._dedicated_cpu_placement = dedicated_cpu_placement + @property def model(self): """ diff --git a/setup.py b/setup.py index 453f13eb..7a0b7d95 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.8.0-37-g80aba0f0" +VERSION = "v0.8.0-74-g27961727" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 502a2a2c..b8d26169 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.8.0-37-g80aba0f0" +"packageVersion": "v0.8.0-74-g27961727" } From 6d4f9d485aac9d809f6bc92f99dc7139dd11af50 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 25 Sep 2018 07:16:53 +0000 Subject: [PATCH 050/521] Client Python update by Travis Build 4907 --- README.md | 2 +- docs/V1APIGroup.md | 2 +- docs/V1NodeSelectorTerm.md | 3 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_api_group.py | 5 ++- kubevirt/models/v1_node_selector_term.py | 43 +++++++++++++++++++----- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 46 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index d30a1631..23252d44 100644 --- a/README.md +++ b/README.md @@ -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: v0.8.0-74-g27961727 +- Package version: v0.8.0-121-ga9d11f93 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1APIGroup.md b/docs/V1APIGroup.md index bd353f2f..eca24673 100644 --- a/docs/V1APIGroup.md +++ b/docs/V1APIGroup.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **name** | **str** | name is the name of the group. | **preferred_version** | [**V1GroupVersionForDiscovery**](V1GroupVersionForDiscovery.md) | preferredVersion is the version preferred by the API server, which probably is the storage version. | [optional] -**server_address_by_client_cid_rs** | [**list[V1ServerAddressByClientCIDR]**](V1ServerAddressByClientCIDR.md) | a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. | +**server_address_by_client_cid_rs** | [**list[V1ServerAddressByClientCIDR]**](V1ServerAddressByClientCIDR.md) | a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. | [optional] **versions** | [**list[V1GroupVersionForDiscovery]**](V1GroupVersionForDiscovery.md) | versions are the versions supported in this group. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1NodeSelectorTerm.md b/docs/V1NodeSelectorTerm.md index e030c3ac..894ff299 100644 --- a/docs/V1NodeSelectorTerm.md +++ b/docs/V1NodeSelectorTerm.md @@ -3,7 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**match_expressions** | [**list[V1NodeSelectorRequirement]**](V1NodeSelectorRequirement.md) | Required. A list of node selector requirements. The requirements are ANDed. | +**match_expressions** | [**list[V1NodeSelectorRequirement]**](V1NodeSelectorRequirement.md) | A list of node selector requirements by node's labels. | [optional] +**match_fields** | [**list[V1NodeSelectorRequirement]**](V1NodeSelectorRequirement.md) | A list of node selector requirements by node's fields. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 0b4b149a..17e759cd 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.8.0-74-g27961727" + release_note="Auto-generated client v0.8.0-121-ga9d11f93" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index da36b119..77b29418 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.8.0-74-g27961727/python' + self.user_agent = 'Swagger-Codegen/v0.8.0-121-ga9d11f93/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index d983e510..e6dbdb16 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.8.0-74-g27961727".\ + "SDK Package Version: v0.8.0-121-ga9d11f93".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_api_group.py b/kubevirt/models/v1_api_group.py index 528f5381..0a75637c 100644 --- a/kubevirt/models/v1_api_group.py +++ b/kubevirt/models/v1_api_group.py @@ -67,7 +67,8 @@ def __init__(self, api_version=None, kind=None, name=None, preferred_version=Non self.name = name if preferred_version is not None: self.preferred_version = preferred_version - self.server_address_by_client_cid_rs = server_address_by_client_cid_rs + if server_address_by_client_cid_rs is not None: + self.server_address_by_client_cid_rs = server_address_by_client_cid_rs self.versions = versions @property @@ -184,8 +185,6 @@ def server_address_by_client_cid_rs(self, server_address_by_client_cid_rs): :param server_address_by_client_cid_rs: The server_address_by_client_cid_rs of this V1APIGroup. :type: list[V1ServerAddressByClientCIDR] """ - if server_address_by_client_cid_rs is None: - raise ValueError("Invalid value for `server_address_by_client_cid_rs`, must not be `None`") self._server_address_by_client_cid_rs = server_address_by_client_cid_rs diff --git a/kubevirt/models/v1_node_selector_term.py b/kubevirt/models/v1_node_selector_term.py index 6e34f8c6..3ca56dc4 100644 --- a/kubevirt/models/v1_node_selector_term.py +++ b/kubevirt/models/v1_node_selector_term.py @@ -31,27 +31,33 @@ class V1NodeSelectorTerm(object): and the value is json key in definition. """ swagger_types = { - 'match_expressions': 'list[V1NodeSelectorRequirement]' + 'match_expressions': 'list[V1NodeSelectorRequirement]', + 'match_fields': 'list[V1NodeSelectorRequirement]' } attribute_map = { - 'match_expressions': 'matchExpressions' + 'match_expressions': 'matchExpressions', + 'match_fields': 'matchFields' } - def __init__(self, match_expressions=None): + def __init__(self, match_expressions=None, match_fields=None): """ V1NodeSelectorTerm - a model defined in Swagger """ self._match_expressions = None + self._match_fields = None - self.match_expressions = match_expressions + if match_expressions is not None: + self.match_expressions = match_expressions + if match_fields is not None: + self.match_fields = match_fields @property def match_expressions(self): """ Gets the match_expressions of this V1NodeSelectorTerm. - Required. A list of node selector requirements. The requirements are ANDed. + A list of node selector requirements by node's labels. :return: The match_expressions of this V1NodeSelectorTerm. :rtype: list[V1NodeSelectorRequirement] @@ -62,16 +68,37 @@ def match_expressions(self): def match_expressions(self, match_expressions): """ Sets the match_expressions of this V1NodeSelectorTerm. - Required. A list of node selector requirements. The requirements are ANDed. + A list of node selector requirements by node's labels. :param match_expressions: The match_expressions of this V1NodeSelectorTerm. :type: list[V1NodeSelectorRequirement] """ - if match_expressions is None: - raise ValueError("Invalid value for `match_expressions`, must not be `None`") self._match_expressions = match_expressions + @property + def match_fields(self): + """ + Gets the match_fields of this V1NodeSelectorTerm. + A list of node selector requirements by node's fields. + + :return: The match_fields of this V1NodeSelectorTerm. + :rtype: list[V1NodeSelectorRequirement] + """ + return self._match_fields + + @match_fields.setter + def match_fields(self, match_fields): + """ + Sets the match_fields of this V1NodeSelectorTerm. + A list of node selector requirements by node's fields. + + :param match_fields: The match_fields of this V1NodeSelectorTerm. + :type: list[V1NodeSelectorRequirement] + """ + + self._match_fields = match_fields + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 7a0b7d95..6b766896 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.8.0-74-g27961727" +VERSION = "v0.8.0-121-ga9d11f93" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b8d26169..0eb81df8 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.8.0-74-g27961727" +"packageVersion": "v0.8.0-121-ga9d11f93" } From 765001106f230b4dacd24df944f9595cf88b347d Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 26 Sep 2018 10:29:16 +0000 Subject: [PATCH 051/521] Client Python update by Travis Build 4937 --- README.md | 2 +- docs/V1VirtualMachineInstanceStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1_virtual_machine_instance_status.py | 34 +++++++++++++++++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 38 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 23252d44..6b186b1f 100644 --- a/README.md +++ b/README.md @@ -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: v0.8.0-121-ga9d11f93 +- Package version: v0.8.0-139-gafc4d07a - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index d9b864d2..553a40ce 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **interfaces** | [**list[V1VirtualMachineInstanceNetworkInterface]**](V1VirtualMachineInstanceNetworkInterface.md) | Interfaces represent the details of available network interfaces. | [optional] **node_name** | **str** | NodeName is the name where the VirtualMachineInstance is currently running. | [optional] **phase** | **str** | Phase is the status of the VirtualMachineInstance in kubernetes world. It is not the VirtualMachineInstance status, but partially correlates to it. | [optional] +**reason** | **str** | A brief CamelCase message indicating details about why the VMI is in this state. e.g. 'NodeUnresponsive' +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 17e759cd..6ef0ad3b 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.8.0-121-ga9d11f93" + release_note="Auto-generated client v0.8.0-139-gafc4d07a" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 77b29418..497ce254 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.8.0-121-ga9d11f93/python' + self.user_agent = 'Swagger-Codegen/v0.8.0-139-gafc4d07a/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index e6dbdb16..897519ac 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.8.0-121-ga9d11f93".\ + "SDK Package Version: v0.8.0-139-gafc4d07a".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index bc1b5a28..bbdf57e7 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -34,17 +34,19 @@ class V1VirtualMachineInstanceStatus(object): 'conditions': 'list[V1VirtualMachineInstanceCondition]', 'interfaces': 'list[V1VirtualMachineInstanceNetworkInterface]', 'node_name': 'str', - 'phase': 'str' + 'phase': 'str', + 'reason': 'str' } attribute_map = { 'conditions': 'conditions', 'interfaces': 'interfaces', 'node_name': 'nodeName', - 'phase': 'phase' + 'phase': 'phase', + 'reason': 'reason' } - def __init__(self, conditions=None, interfaces=None, node_name=None, phase=None): + def __init__(self, conditions=None, interfaces=None, node_name=None, phase=None, reason=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ @@ -53,6 +55,7 @@ def __init__(self, conditions=None, interfaces=None, node_name=None, phase=None) self._interfaces = None self._node_name = None self._phase = None + self._reason = None if conditions is not None: self.conditions = conditions @@ -62,6 +65,8 @@ def __init__(self, conditions=None, interfaces=None, node_name=None, phase=None) self.node_name = node_name if phase is not None: self.phase = phase + if reason is not None: + self.reason = reason @property def conditions(self): @@ -155,6 +160,29 @@ def phase(self, phase): self._phase = phase + @property + def reason(self): + """ + Gets the reason of this V1VirtualMachineInstanceStatus. + A brief CamelCase message indicating details about why the VMI is in this state. e.g. 'NodeUnresponsive' +optional + + :return: The reason of this V1VirtualMachineInstanceStatus. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1VirtualMachineInstanceStatus. + A brief CamelCase message indicating details about why the VMI is in this state. e.g. 'NodeUnresponsive' +optional + + :param reason: The reason of this V1VirtualMachineInstanceStatus. + :type: str + """ + + self._reason = reason + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 6b766896..5ef52b3d 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.8.0-121-ga9d11f93" +VERSION = "v0.8.0-139-gafc4d07a" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 0eb81df8..08f32665 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.8.0-121-ga9d11f93" +"packageVersion": "v0.8.0-139-gafc4d07a" } From dbdf8fb9d27f916e6dfed6912c07ace504ddee85 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 26 Sep 2018 19:09:57 +0000 Subject: [PATCH 052/521] Client Python update by Travis Build 4949 --- README.md | 3 +- docs/V1alpha1DataVolumeSource.md | 1 + docs/V1alpha1DataVolumeSourceHTTP.md | 1 + docs/V1alpha1DataVolumeSourcePVC.md | 11 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + .../models/v1alpha1_data_volume_source.py | 28 +++- .../v1alpha1_data_volume_source_http.py | 28 +++- .../models/v1alpha1_data_volume_source_pvc.py | 149 ++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1alpha1_data_volume_source_pvc.py | 44 ++++++ 16 files changed, 272 insertions(+), 8 deletions(-) create mode 100644 docs/V1alpha1DataVolumeSourcePVC.md create mode 100644 kubevirt/models/v1alpha1_data_volume_source_pvc.py create mode 100644 test/test_v1alpha1_data_volume_source_pvc.py diff --git a/README.md b/README.md index 6b186b1f..f4c65ca9 100644 --- a/README.md +++ b/README.md @@ -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: v0.8.0-139-gafc4d07a +- Package version: v0.8.0-146-g175ed3ab - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -226,6 +226,7 @@ Class | Method | HTTP request | Description - [V1alpha1DataVolume](docs/V1alpha1DataVolume.md) - [V1alpha1DataVolumeSource](docs/V1alpha1DataVolumeSource.md) - [V1alpha1DataVolumeSourceHTTP](docs/V1alpha1DataVolumeSourceHTTP.md) + - [V1alpha1DataVolumeSourcePVC](docs/V1alpha1DataVolumeSourcePVC.md) - [V1alpha1DataVolumeSourceS3](docs/V1alpha1DataVolumeSourceS3.md) - [V1alpha1DataVolumeSpec](docs/V1alpha1DataVolumeSpec.md) - [V1alpha1DataVolumeStatus](docs/V1alpha1DataVolumeStatus.md) diff --git a/docs/V1alpha1DataVolumeSource.md b/docs/V1alpha1DataVolumeSource.md index feeb2275..b34c24c9 100644 --- a/docs/V1alpha1DataVolumeSource.md +++ b/docs/V1alpha1DataVolumeSource.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **http** | [**V1alpha1DataVolumeSourceHTTP**](V1alpha1DataVolumeSourceHTTP.md) | | [optional] +**pvc** | [**V1alpha1DataVolumeSourcePVC**](V1alpha1DataVolumeSourcePVC.md) | | [optional] **s3** | [**V1alpha1DataVolumeSourceS3**](V1alpha1DataVolumeSourceS3.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1DataVolumeSourceHTTP.md b/docs/V1alpha1DataVolumeSourceHTTP.md index 352ac094..482fb955 100644 --- a/docs/V1alpha1DataVolumeSourceHTTP.md +++ b/docs/V1alpha1DataVolumeSourceHTTP.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**secret_ref** | **str** | | [optional] **url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1DataVolumeSourcePVC.md b/docs/V1alpha1DataVolumeSourcePVC.md new file mode 100644 index 00000000..5fd42e2f --- /dev/null +++ b/docs/V1alpha1DataVolumeSourcePVC.md @@ -0,0 +1,11 @@ +# V1alpha1DataVolumeSourcePVC + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**namespace** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 6ef0ad3b..bdce3df8 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.8.0-139-gafc4d07a" + release_note="Auto-generated client v0.8.0-146-g175ed3ab" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 2ddb831a..1635e205 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -299,6 +299,9 @@ [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_source_http.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_source_http.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSourceHTTP.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_source_pvc.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_source_pvc.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSourcePVC.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_source_s3.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_source_s3.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSourceS3.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index e02d0655..c322aa21 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -113,6 +113,7 @@ from .models.v1alpha1_data_volume import V1alpha1DataVolume from .models.v1alpha1_data_volume_source import V1alpha1DataVolumeSource from .models.v1alpha1_data_volume_source_http import V1alpha1DataVolumeSourceHTTP +from .models.v1alpha1_data_volume_source_pvc import V1alpha1DataVolumeSourcePVC from .models.v1alpha1_data_volume_source_s3 import V1alpha1DataVolumeSourceS3 from .models.v1alpha1_data_volume_spec import V1alpha1DataVolumeSpec from .models.v1alpha1_data_volume_status import V1alpha1DataVolumeStatus diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 497ce254..7a77d90c 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.8.0-139-gafc4d07a/python' + self.user_agent = 'Swagger-Codegen/v0.8.0-146-g175ed3ab/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 897519ac..72cee50a 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.8.0-139-gafc4d07a".\ + "SDK Package Version: v0.8.0-146-g175ed3ab".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 8fe9687e..570448ea 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -113,6 +113,7 @@ from .v1alpha1_data_volume import V1alpha1DataVolume from .v1alpha1_data_volume_source import V1alpha1DataVolumeSource from .v1alpha1_data_volume_source_http import V1alpha1DataVolumeSourceHTTP +from .v1alpha1_data_volume_source_pvc import V1alpha1DataVolumeSourcePVC from .v1alpha1_data_volume_source_s3 import V1alpha1DataVolumeSourceS3 from .v1alpha1_data_volume_spec import V1alpha1DataVolumeSpec from .v1alpha1_data_volume_status import V1alpha1DataVolumeStatus diff --git a/kubevirt/models/v1alpha1_data_volume_source.py b/kubevirt/models/v1alpha1_data_volume_source.py index d9f28646..b5e113fb 100644 --- a/kubevirt/models/v1alpha1_data_volume_source.py +++ b/kubevirt/models/v1alpha1_data_volume_source.py @@ -32,24 +32,29 @@ class V1alpha1DataVolumeSource(object): """ swagger_types = { 'http': 'V1alpha1DataVolumeSourceHTTP', + 'pvc': 'V1alpha1DataVolumeSourcePVC', 's3': 'V1alpha1DataVolumeSourceS3' } attribute_map = { 'http': 'http', + 'pvc': 'pvc', 's3': 's3' } - def __init__(self, http=None, s3=None): + def __init__(self, http=None, pvc=None, s3=None): """ V1alpha1DataVolumeSource - a model defined in Swagger """ self._http = None + self._pvc = None self._s3 = None if http is not None: self.http = http + if pvc is not None: + self.pvc = pvc if s3 is not None: self.s3 = s3 @@ -74,6 +79,27 @@ def http(self, http): self._http = http + @property + def pvc(self): + """ + Gets the pvc of this V1alpha1DataVolumeSource. + + :return: The pvc of this V1alpha1DataVolumeSource. + :rtype: V1alpha1DataVolumeSourcePVC + """ + return self._pvc + + @pvc.setter + def pvc(self, pvc): + """ + Sets the pvc of this V1alpha1DataVolumeSource. + + :param pvc: The pvc of this V1alpha1DataVolumeSource. + :type: V1alpha1DataVolumeSourcePVC + """ + + self._pvc = pvc + @property def s3(self): """ diff --git a/kubevirt/models/v1alpha1_data_volume_source_http.py b/kubevirt/models/v1alpha1_data_volume_source_http.py index acd70d3f..c7f24c3e 100644 --- a/kubevirt/models/v1alpha1_data_volume_source_http.py +++ b/kubevirt/models/v1alpha1_data_volume_source_http.py @@ -31,23 +31,49 @@ class V1alpha1DataVolumeSourceHTTP(object): and the value is json key in definition. """ swagger_types = { + 'secret_ref': 'str', 'url': 'str' } attribute_map = { + 'secret_ref': 'secretRef', 'url': 'url' } - def __init__(self, url=None): + def __init__(self, secret_ref=None, url=None): """ V1alpha1DataVolumeSourceHTTP - a model defined in Swagger """ + self._secret_ref = None self._url = None + if secret_ref is not None: + self.secret_ref = secret_ref if url is not None: self.url = url + @property + def secret_ref(self): + """ + Gets the secret_ref of this V1alpha1DataVolumeSourceHTTP. + + :return: The secret_ref of this V1alpha1DataVolumeSourceHTTP. + :rtype: str + """ + return self._secret_ref + + @secret_ref.setter + def secret_ref(self, secret_ref): + """ + Sets the secret_ref of this V1alpha1DataVolumeSourceHTTP. + + :param secret_ref: The secret_ref of this V1alpha1DataVolumeSourceHTTP. + :type: str + """ + + self._secret_ref = secret_ref + @property def url(self): """ diff --git a/kubevirt/models/v1alpha1_data_volume_source_pvc.py b/kubevirt/models/v1alpha1_data_volume_source_pvc.py new file mode 100644 index 00000000..161b9c28 --- /dev/null +++ b/kubevirt/models/v1alpha1_data_volume_source_pvc.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1DataVolumeSourcePVC(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'namespace': 'str' + } + + attribute_map = { + 'name': 'name', + 'namespace': 'namespace' + } + + def __init__(self, name=None, namespace=None): + """ + V1alpha1DataVolumeSourcePVC - a model defined in Swagger + """ + + self._name = None + self._namespace = None + + if name is not None: + self.name = name + if namespace is not None: + self.namespace = namespace + + @property + def name(self): + """ + Gets the name of this V1alpha1DataVolumeSourcePVC. + + :return: The name of this V1alpha1DataVolumeSourcePVC. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1alpha1DataVolumeSourcePVC. + + :param name: The name of this V1alpha1DataVolumeSourcePVC. + :type: str + """ + + self._name = name + + @property + def namespace(self): + """ + Gets the namespace of this V1alpha1DataVolumeSourcePVC. + + :return: The namespace of this V1alpha1DataVolumeSourcePVC. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """ + Sets the namespace of this V1alpha1DataVolumeSourcePVC. + + :param namespace: The namespace of this V1alpha1DataVolumeSourcePVC. + :type: str + """ + + self._namespace = namespace + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1DataVolumeSourcePVC): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 5ef52b3d..8c8e033e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.8.0-139-gafc4d07a" +VERSION = "v0.8.0-146-g175ed3ab" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 08f32665..b6cd3b9f 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.8.0-139-gafc4d07a" +"packageVersion": "v0.8.0-146-g175ed3ab" } diff --git a/test/test_v1alpha1_data_volume_source_pvc.py b/test/test_v1alpha1_data_volume_source_pvc.py new file mode 100644 index 00000000..f709f0b1 --- /dev/null +++ b/test/test_v1alpha1_data_volume_source_pvc.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_data_volume_source_pvc import V1alpha1DataVolumeSourcePVC + + +class TestV1alpha1DataVolumeSourcePVC(unittest.TestCase): + """ V1alpha1DataVolumeSourcePVC unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1DataVolumeSourcePVC(self): + """ + Test V1alpha1DataVolumeSourcePVC + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_data_volume_source_pvc.V1alpha1DataVolumeSourcePVC() + pass + + +if __name__ == '__main__': + unittest.main() From b82423d87991b71f1ba717d9d3c70d89b58809ed Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 2 Oct 2018 02:53:11 +0000 Subject: [PATCH 053/521] Client Python update by Travis Build 4985 --- README.md | 2 +- docs/V1Devices.md | 4 ++-- docs/V1Disk.md | 1 + docs/V1DomainSpec.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 24 ++++++++++++++++++++++++ kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_devices.py | 8 ++++---- kubevirt/models/v1_disk.py | 30 +++++++++++++++++++++++++++++- kubevirt/models/v1_domain_spec.py | 30 +++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 13 files changed, 96 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index f4c65ca9..c9663a25 100644 --- a/README.md +++ b/README.md @@ -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: v0.8.0-146-g175ed3ab +- Package version: v0.8.0-186-g67007d0d - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index 721f26c1..f8634f98 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**autoattach_graphics_device** | **bool** | Wheater to attach the default graphics device or not. VNC will not be available if set to false. Defaults to true. | [optional] +**autoattach_graphics_device** | **bool** | Whether to attach the default graphics device or not. VNC will not be available if set to false. Defaults to true. | [optional] **autoattach_pod_interface** | **bool** | Whether to attach a pod network interface. Defaults to true. | [optional] **disks** | [**list[V1Disk]**](V1Disk.md) | Disks describes disks, cdroms, floppy and luns which are connected to the vmi. | [optional] -**interfaces** | [**list[V1Interface]**](V1Interface.md) | Interfaces describe network interfaces which are added to the vm. | [optional] +**interfaces** | [**list[V1Interface]**](V1Interface.md) | Interfaces describe network interfaces which are added to the vmi. | [optional] **rng** | [**V1Rng**](V1Rng.md) | Whether to have random number generator from host +optional | [optional] **watchdog** | [**V1Watchdog**](V1Watchdog.md) | Watchdog describes a watchdog device which can be added to the vmi. | [optional] diff --git a/docs/V1Disk.md b/docs/V1Disk.md index d02c6504..0752c476 100644 --- a/docs/V1Disk.md +++ b/docs/V1Disk.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **boot_order** | **int** | BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each disk or interface that has a boot order must have a unique value. Disks without a boot order are not tried if a disk with a boot order exists. +optional | [optional] **cdrom** | [**V1CDRomTarget**](V1CDRomTarget.md) | Attach a volume as a cdrom to the vmi. | [optional] +**dedicated_io_thread** | **bool** | dedicatedIOThread indicates this disk should have an exclusive IO Thread. Enabling this implies useIOThreads = true. Defaults to false. +optional | [optional] **disk** | [**V1DiskTarget**](V1DiskTarget.md) | Attach a volume as a disk to the vmi. | [optional] **floppy** | [**V1FloppyTarget**](V1FloppyTarget.md) | Attach a volume as a floppy to the vmi. | [optional] **lun** | [**V1LunTarget**](V1LunTarget.md) | Attach a volume as a LUN to the vmi. | [optional] diff --git a/docs/V1DomainSpec.md b/docs/V1DomainSpec.md index 26f66cc3..51f36212 100644 --- a/docs/V1DomainSpec.md +++ b/docs/V1DomainSpec.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **devices** | [**V1Devices**](V1Devices.md) | Devices allows adding disks, network interfaces, ... | **features** | [**V1Features**](V1Features.md) | Features like acpi, apic, hyperv. +optional | [optional] **firmware** | [**V1Firmware**](V1Firmware.md) | Firmware. +optional | [optional] +**io_threads_policy** | [**V1IOThreadsPolicy**](V1IOThreadsPolicy.md) | Controls whether or not disks will share IOThreads. Omitting IOThreadsPolicy disables use of IOThreads. One of: shared, auto +optional | [optional] **machine** | [**V1Machine**](V1Machine.md) | Machine type. +optional | [optional] **memory** | [**V1Memory**](V1Memory.md) | Memory allow specifying the VMI memory features. +optional | [optional] **resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | Resources describes the Compute Resources required by this vmi. | [optional] diff --git a/git_push.sh b/git_push.sh index bdce3df8..efad20aa 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.8.0-146-g175ed3ab" + release_note="Auto-generated client v0.8.0-186-g67007d0d" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 1635e205..ee4e8a34 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -420,6 +420,30 @@ [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_group_1` [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_resources_0` [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 7a77d90c..90edbc34 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.8.0-146-g175ed3ab/python' + self.user_agent = 'Swagger-Codegen/v0.8.0-186-g67007d0d/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 72cee50a..001a8ef6 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.8.0-146-g175ed3ab".\ + "SDK Package Version: v0.8.0-186-g67007d0d".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index 3c656434..cddb1747 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -77,7 +77,7 @@ def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=Non def autoattach_graphics_device(self): """ Gets the autoattach_graphics_device of this V1Devices. - Wheater to attach the default graphics device or not. VNC will not be available if set to false. Defaults to true. + Whether to attach the default graphics device or not. VNC will not be available if set to false. Defaults to true. :return: The autoattach_graphics_device of this V1Devices. :rtype: bool @@ -88,7 +88,7 @@ def autoattach_graphics_device(self): def autoattach_graphics_device(self, autoattach_graphics_device): """ Sets the autoattach_graphics_device of this V1Devices. - Wheater to attach the default graphics device or not. VNC will not be available if set to false. Defaults to true. + Whether to attach the default graphics device or not. VNC will not be available if set to false. Defaults to true. :param autoattach_graphics_device: The autoattach_graphics_device of this V1Devices. :type: bool @@ -146,7 +146,7 @@ def disks(self, disks): def interfaces(self): """ Gets the interfaces of this V1Devices. - Interfaces describe network interfaces which are added to the vm. + Interfaces describe network interfaces which are added to the vmi. :return: The interfaces of this V1Devices. :rtype: list[V1Interface] @@ -157,7 +157,7 @@ def interfaces(self): def interfaces(self, interfaces): """ Sets the interfaces of this V1Devices. - Interfaces describe network interfaces which are added to the vm. + Interfaces describe network interfaces which are added to the vmi. :param interfaces: The interfaces of this V1Devices. :type: list[V1Interface] diff --git a/kubevirt/models/v1_disk.py b/kubevirt/models/v1_disk.py index 065fef0a..cb5579ab 100644 --- a/kubevirt/models/v1_disk.py +++ b/kubevirt/models/v1_disk.py @@ -33,6 +33,7 @@ class V1Disk(object): swagger_types = { 'boot_order': 'int', 'cdrom': 'V1CDRomTarget', + 'dedicated_io_thread': 'bool', 'disk': 'V1DiskTarget', 'floppy': 'V1FloppyTarget', 'lun': 'V1LunTarget', @@ -44,6 +45,7 @@ class V1Disk(object): attribute_map = { 'boot_order': 'bootOrder', 'cdrom': 'cdrom', + 'dedicated_io_thread': 'dedicatedIOThread', 'disk': 'disk', 'floppy': 'floppy', 'lun': 'lun', @@ -52,13 +54,14 @@ class V1Disk(object): 'volume_name': 'volumeName' } - def __init__(self, boot_order=None, cdrom=None, disk=None, floppy=None, lun=None, name=None, serial=None, volume_name=None): + def __init__(self, boot_order=None, cdrom=None, dedicated_io_thread=None, disk=None, floppy=None, lun=None, name=None, serial=None, volume_name=None): """ V1Disk - a model defined in Swagger """ self._boot_order = None self._cdrom = None + self._dedicated_io_thread = None self._disk = None self._floppy = None self._lun = None @@ -70,6 +73,8 @@ def __init__(self, boot_order=None, cdrom=None, disk=None, floppy=None, lun=None self.boot_order = boot_order if cdrom is not None: self.cdrom = cdrom + if dedicated_io_thread is not None: + self.dedicated_io_thread = dedicated_io_thread if disk is not None: self.disk = disk if floppy is not None: @@ -127,6 +132,29 @@ def cdrom(self, cdrom): self._cdrom = cdrom + @property + def dedicated_io_thread(self): + """ + Gets the dedicated_io_thread of this V1Disk. + dedicatedIOThread indicates this disk should have an exclusive IO Thread. Enabling this implies useIOThreads = true. Defaults to false. +optional + + :return: The dedicated_io_thread of this V1Disk. + :rtype: bool + """ + return self._dedicated_io_thread + + @dedicated_io_thread.setter + def dedicated_io_thread(self, dedicated_io_thread): + """ + Sets the dedicated_io_thread of this V1Disk. + dedicatedIOThread indicates this disk should have an exclusive IO Thread. Enabling this implies useIOThreads = true. Defaults to false. +optional + + :param dedicated_io_thread: The dedicated_io_thread of this V1Disk. + :type: bool + """ + + self._dedicated_io_thread = dedicated_io_thread + @property def disk(self): """ diff --git a/kubevirt/models/v1_domain_spec.py b/kubevirt/models/v1_domain_spec.py index 2e879939..aa7ffb89 100644 --- a/kubevirt/models/v1_domain_spec.py +++ b/kubevirt/models/v1_domain_spec.py @@ -36,6 +36,7 @@ class V1DomainSpec(object): 'devices': 'V1Devices', 'features': 'V1Features', 'firmware': 'V1Firmware', + 'io_threads_policy': 'V1IOThreadsPolicy', 'machine': 'V1Machine', 'memory': 'V1Memory', 'resources': 'V1ResourceRequirements' @@ -47,12 +48,13 @@ class V1DomainSpec(object): 'devices': 'devices', 'features': 'features', 'firmware': 'firmware', + 'io_threads_policy': 'ioThreadsPolicy', 'machine': 'machine', 'memory': 'memory', 'resources': 'resources' } - def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, memory=None, resources=None): + def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=None, io_threads_policy=None, machine=None, memory=None, resources=None): """ V1DomainSpec - a model defined in Swagger """ @@ -62,6 +64,7 @@ def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=N self._devices = None self._features = None self._firmware = None + self._io_threads_policy = None self._machine = None self._memory = None self._resources = None @@ -75,6 +78,8 @@ def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=N self.features = features if firmware is not None: self.firmware = firmware + if io_threads_policy is not None: + self.io_threads_policy = io_threads_policy if machine is not None: self.machine = machine if memory is not None: @@ -199,6 +204,29 @@ def firmware(self, firmware): self._firmware = firmware + @property + def io_threads_policy(self): + """ + Gets the io_threads_policy of this V1DomainSpec. + Controls whether or not disks will share IOThreads. Omitting IOThreadsPolicy disables use of IOThreads. One of: shared, auto +optional + + :return: The io_threads_policy of this V1DomainSpec. + :rtype: V1IOThreadsPolicy + """ + return self._io_threads_policy + + @io_threads_policy.setter + def io_threads_policy(self, io_threads_policy): + """ + Sets the io_threads_policy of this V1DomainSpec. + Controls whether or not disks will share IOThreads. Omitting IOThreadsPolicy disables use of IOThreads. One of: shared, auto +optional + + :param io_threads_policy: The io_threads_policy of this V1DomainSpec. + :type: V1IOThreadsPolicy + """ + + self._io_threads_policy = io_threads_policy + @property def machine(self): """ diff --git a/setup.py b/setup.py index 8c8e033e..ce2ce0e5 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.8.0-146-g175ed3ab" +VERSION = "v0.8.0-186-g67007d0d" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b6cd3b9f..ead1a795 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.8.0-146-g175ed3ab" +"packageVersion": "v0.8.0-186-g67007d0d" } From b8f819ca3a0be41bac8daf21003787b80ccca981 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 11 Oct 2018 12:45:16 +0000 Subject: [PATCH 054/521] Client Python update by Travis Build 5130 --- README.md | 2 +- docs/V1Devices.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_devices.py | 30 +++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c9663a25..2bc59db3 100644 --- a/README.md +++ b/README.md @@ -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: v0.8.0-186-g67007d0d +- Package version: v0.9.0-57-g363219fa - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index f8634f98..2b500618 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **autoattach_graphics_device** | **bool** | Whether to attach the default graphics device or not. VNC will not be available if set to false. Defaults to true. | [optional] **autoattach_pod_interface** | **bool** | Whether to attach a pod network interface. Defaults to true. | [optional] +**block_multi_queue** | **bool** | Whether or not to enable virtio multi-queue for block devices +optional | [optional] **disks** | [**list[V1Disk]**](V1Disk.md) | Disks describes disks, cdroms, floppy and luns which are connected to the vmi. | [optional] **interfaces** | [**list[V1Interface]**](V1Interface.md) | Interfaces describe network interfaces which are added to the vmi. | [optional] **rng** | [**V1Rng**](V1Rng.md) | Whether to have random number generator from host +optional | [optional] diff --git a/git_push.sh b/git_push.sh index efad20aa..bf7b8083 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.8.0-186-g67007d0d" + release_note="Auto-generated client v0.9.0-57-g363219fa" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 90edbc34..9864824e 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.8.0-186-g67007d0d/python' + self.user_agent = 'Swagger-Codegen/v0.9.0-57-g363219fa/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 001a8ef6..7fe69c77 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.8.0-186-g67007d0d".\ + "SDK Package Version: v0.9.0-57-g363219fa".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index cddb1747..19a71990 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -33,6 +33,7 @@ class V1Devices(object): swagger_types = { 'autoattach_graphics_device': 'bool', 'autoattach_pod_interface': 'bool', + 'block_multi_queue': 'bool', 'disks': 'list[V1Disk]', 'interfaces': 'list[V1Interface]', 'rng': 'V1Rng', @@ -42,19 +43,21 @@ class V1Devices(object): attribute_map = { 'autoattach_graphics_device': 'autoattachGraphicsDevice', 'autoattach_pod_interface': 'autoattachPodInterface', + 'block_multi_queue': 'blockMultiQueue', 'disks': 'disks', 'interfaces': 'interfaces', 'rng': 'rng', 'watchdog': 'watchdog' } - def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=None, disks=None, interfaces=None, rng=None, watchdog=None): + def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=None, block_multi_queue=None, disks=None, interfaces=None, rng=None, watchdog=None): """ V1Devices - a model defined in Swagger """ self._autoattach_graphics_device = None self._autoattach_pod_interface = None + self._block_multi_queue = None self._disks = None self._interfaces = None self._rng = None @@ -64,6 +67,8 @@ def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=Non self.autoattach_graphics_device = autoattach_graphics_device if autoattach_pod_interface is not None: self.autoattach_pod_interface = autoattach_pod_interface + if block_multi_queue is not None: + self.block_multi_queue = block_multi_queue if disks is not None: self.disks = disks if interfaces is not None: @@ -119,6 +124,29 @@ def autoattach_pod_interface(self, autoattach_pod_interface): self._autoattach_pod_interface = autoattach_pod_interface + @property + def block_multi_queue(self): + """ + Gets the block_multi_queue of this V1Devices. + Whether or not to enable virtio multi-queue for block devices +optional + + :return: The block_multi_queue of this V1Devices. + :rtype: bool + """ + return self._block_multi_queue + + @block_multi_queue.setter + def block_multi_queue(self, block_multi_queue): + """ + Sets the block_multi_queue of this V1Devices. + Whether or not to enable virtio multi-queue for block devices +optional + + :param block_multi_queue: The block_multi_queue of this V1Devices. + :type: bool + """ + + self._block_multi_queue = block_multi_queue + @property def disks(self): """ diff --git a/setup.py b/setup.py index ce2ce0e5..1c1f8a86 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.8.0-186-g67007d0d" +VERSION = "v0.9.0-57-g363219fa" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index ead1a795..94213c6b 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.8.0-186-g67007d0d" +"packageVersion": "v0.9.0-57-g363219fa" } From 81b1092e44fe82fcab6e812bbabb2943eb504ae7 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 12 Oct 2018 16:00:18 +0000 Subject: [PATCH 055/521] Client Python update by Travis Build 5149 --- README.md | 3 +- .../V1VirtualMachineInstanceMigrationState.md | 18 + docs/V1VirtualMachineInstanceStatus.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + ...irtual_machine_instance_migration_state.py | 349 ++++++++++++++++++ .../v1_virtual_machine_instance_status.py | 30 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...irtual_machine_instance_migration_state.py | 44 +++ 14 files changed, 453 insertions(+), 7 deletions(-) create mode 100644 docs/V1VirtualMachineInstanceMigrationState.md create mode 100644 kubevirt/models/v1_virtual_machine_instance_migration_state.py create mode 100644 test/test_v1_virtual_machine_instance_migration_state.py diff --git a/README.md b/README.md index 2bc59db3..b12c8f7e 100644 --- a/README.md +++ b/README.md @@ -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: v0.9.0-57-g363219fa +- Package version: v0.9.0-105-g3a703d88 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -204,6 +204,7 @@ Class | Method | HTTP request | Description - [V1VirtualMachineInstance](docs/V1VirtualMachineInstance.md) - [V1VirtualMachineInstanceCondition](docs/V1VirtualMachineInstanceCondition.md) - [V1VirtualMachineInstanceList](docs/V1VirtualMachineInstanceList.md) + - [V1VirtualMachineInstanceMigrationState](docs/V1VirtualMachineInstanceMigrationState.md) - [V1VirtualMachineInstanceNetworkInterface](docs/V1VirtualMachineInstanceNetworkInterface.md) - [V1VirtualMachineInstancePreset](docs/V1VirtualMachineInstancePreset.md) - [V1VirtualMachineInstancePresetList](docs/V1VirtualMachineInstancePresetList.md) diff --git a/docs/V1VirtualMachineInstanceMigrationState.md b/docs/V1VirtualMachineInstanceMigrationState.md new file mode 100644 index 00000000..7d4b47ff --- /dev/null +++ b/docs/V1VirtualMachineInstanceMigrationState.md @@ -0,0 +1,18 @@ +# V1VirtualMachineInstanceMigrationState + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**completed** | **bool** | Indicates the migration completed | [optional] +**end_timestamp** | **str** | The time the migration action ended | [optional] +**failed** | **bool** | Indicates that the migration failed | [optional] +**migration_uid** | **str** | The VirtualMachineInstanceMigration object associated with this migration | [optional] +**source_node** | **str** | The source node that the VMI originated on | [optional] +**start_timestamp** | **str** | The time the migration action began | [optional] +**target_node** | **str** | The target node that the VMI is moving to | [optional] +**target_node_address** | **str** | The address of the target node to use for the migration | [optional] +**target_node_domain_detected** | **bool** | The Target Node has seen the Domain Start Event | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index 553a40ce..7451bb1b 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **conditions** | [**list[V1VirtualMachineInstanceCondition]**](V1VirtualMachineInstanceCondition.md) | Conditions are specific points in VirtualMachineInstance's pod runtime. | [optional] **interfaces** | [**list[V1VirtualMachineInstanceNetworkInterface]**](V1VirtualMachineInstanceNetworkInterface.md) | Interfaces represent the details of available network interfaces. | [optional] +**migration_state** | [**V1VirtualMachineInstanceMigrationState**](V1VirtualMachineInstanceMigrationState.md) | Represents the status of a live migration | [optional] **node_name** | **str** | NodeName is the name where the VirtualMachineInstance is currently running. | [optional] **phase** | **str** | Phase is the status of the VirtualMachineInstance in kubernetes world. It is not the VirtualMachineInstance status, but partially correlates to it. | [optional] **reason** | **str** | A brief CamelCase message indicating details about why the VMI is in this state. e.g. 'NodeUnresponsive' +optional | [optional] diff --git a/git_push.sh b/git_push.sh index bf7b8083..0daef28d 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.9.0-57-g363219fa" + release_note="Auto-generated client v0.9.0-105-g3a703d88" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index ee4e8a34..cf117a3a 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -233,6 +233,9 @@ [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_migration_state.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_migration_state.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceMigrationState.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_network_interface.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_network_interface.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceNetworkInterface.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index c322aa21..d618a467 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -91,6 +91,7 @@ from .models.v1_virtual_machine_instance import V1VirtualMachineInstance from .models.v1_virtual_machine_instance_condition import V1VirtualMachineInstanceCondition from .models.v1_virtual_machine_instance_list import V1VirtualMachineInstanceList +from .models.v1_virtual_machine_instance_migration_state import V1VirtualMachineInstanceMigrationState from .models.v1_virtual_machine_instance_network_interface import V1VirtualMachineInstanceNetworkInterface from .models.v1_virtual_machine_instance_preset import V1VirtualMachineInstancePreset from .models.v1_virtual_machine_instance_preset_list import V1VirtualMachineInstancePresetList diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 9864824e..9a6a84c9 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.9.0-57-g363219fa/python' + self.user_agent = 'Swagger-Codegen/v0.9.0-105-g3a703d88/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 7fe69c77..f482d962 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.9.0-57-g363219fa".\ + "SDK Package Version: v0.9.0-105-g3a703d88".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 570448ea..4ec3a004 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -91,6 +91,7 @@ from .v1_virtual_machine_instance import V1VirtualMachineInstance from .v1_virtual_machine_instance_condition import V1VirtualMachineInstanceCondition from .v1_virtual_machine_instance_list import V1VirtualMachineInstanceList +from .v1_virtual_machine_instance_migration_state import V1VirtualMachineInstanceMigrationState from .v1_virtual_machine_instance_network_interface import V1VirtualMachineInstanceNetworkInterface from .v1_virtual_machine_instance_preset import V1VirtualMachineInstancePreset from .v1_virtual_machine_instance_preset_list import V1VirtualMachineInstancePresetList diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_state.py b/kubevirt/models/v1_virtual_machine_instance_migration_state.py new file mode 100644 index 00000000..fa19b3e7 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_migration_state.py @@ -0,0 +1,349 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineInstanceMigrationState(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'completed': 'bool', + 'end_timestamp': 'str', + 'failed': 'bool', + 'migration_uid': 'str', + 'source_node': 'str', + 'start_timestamp': 'str', + 'target_node': 'str', + 'target_node_address': 'str', + 'target_node_domain_detected': 'bool' + } + + attribute_map = { + 'completed': 'completed', + 'end_timestamp': 'endTimestamp', + 'failed': 'failed', + 'migration_uid': 'migrationUid', + 'source_node': 'sourceNode', + 'start_timestamp': 'startTimestamp', + 'target_node': 'targetNode', + 'target_node_address': 'targetNodeAddress', + 'target_node_domain_detected': 'targetNodeDomainDetected' + } + + def __init__(self, completed=None, end_timestamp=None, failed=None, migration_uid=None, source_node=None, start_timestamp=None, target_node=None, target_node_address=None, target_node_domain_detected=None): + """ + V1VirtualMachineInstanceMigrationState - a model defined in Swagger + """ + + self._completed = None + self._end_timestamp = None + self._failed = None + self._migration_uid = None + self._source_node = None + self._start_timestamp = None + self._target_node = None + self._target_node_address = None + self._target_node_domain_detected = None + + if completed is not None: + self.completed = completed + if end_timestamp is not None: + self.end_timestamp = end_timestamp + if failed is not None: + self.failed = failed + if migration_uid is not None: + self.migration_uid = migration_uid + if source_node is not None: + self.source_node = source_node + if start_timestamp is not None: + self.start_timestamp = start_timestamp + if target_node is not None: + self.target_node = target_node + if target_node_address is not None: + self.target_node_address = target_node_address + if target_node_domain_detected is not None: + self.target_node_domain_detected = target_node_domain_detected + + @property + def completed(self): + """ + Gets the completed of this V1VirtualMachineInstanceMigrationState. + Indicates the migration completed + + :return: The completed of this V1VirtualMachineInstanceMigrationState. + :rtype: bool + """ + return self._completed + + @completed.setter + def completed(self, completed): + """ + Sets the completed of this V1VirtualMachineInstanceMigrationState. + Indicates the migration completed + + :param completed: The completed of this V1VirtualMachineInstanceMigrationState. + :type: bool + """ + + self._completed = completed + + @property + def end_timestamp(self): + """ + Gets the end_timestamp of this V1VirtualMachineInstanceMigrationState. + The time the migration action ended + + :return: The end_timestamp of this V1VirtualMachineInstanceMigrationState. + :rtype: str + """ + return self._end_timestamp + + @end_timestamp.setter + def end_timestamp(self, end_timestamp): + """ + Sets the end_timestamp of this V1VirtualMachineInstanceMigrationState. + The time the migration action ended + + :param end_timestamp: The end_timestamp of this V1VirtualMachineInstanceMigrationState. + :type: str + """ + + self._end_timestamp = end_timestamp + + @property + def failed(self): + """ + Gets the failed of this V1VirtualMachineInstanceMigrationState. + Indicates that the migration failed + + :return: The failed of this V1VirtualMachineInstanceMigrationState. + :rtype: bool + """ + return self._failed + + @failed.setter + def failed(self, failed): + """ + Sets the failed of this V1VirtualMachineInstanceMigrationState. + Indicates that the migration failed + + :param failed: The failed of this V1VirtualMachineInstanceMigrationState. + :type: bool + """ + + self._failed = failed + + @property + def migration_uid(self): + """ + Gets the migration_uid of this V1VirtualMachineInstanceMigrationState. + The VirtualMachineInstanceMigration object associated with this migration + + :return: The migration_uid of this V1VirtualMachineInstanceMigrationState. + :rtype: str + """ + return self._migration_uid + + @migration_uid.setter + def migration_uid(self, migration_uid): + """ + Sets the migration_uid of this V1VirtualMachineInstanceMigrationState. + The VirtualMachineInstanceMigration object associated with this migration + + :param migration_uid: The migration_uid of this V1VirtualMachineInstanceMigrationState. + :type: str + """ + + self._migration_uid = migration_uid + + @property + def source_node(self): + """ + Gets the source_node of this V1VirtualMachineInstanceMigrationState. + The source node that the VMI originated on + + :return: The source_node of this V1VirtualMachineInstanceMigrationState. + :rtype: str + """ + return self._source_node + + @source_node.setter + def source_node(self, source_node): + """ + Sets the source_node of this V1VirtualMachineInstanceMigrationState. + The source node that the VMI originated on + + :param source_node: The source_node of this V1VirtualMachineInstanceMigrationState. + :type: str + """ + + self._source_node = source_node + + @property + def start_timestamp(self): + """ + Gets the start_timestamp of this V1VirtualMachineInstanceMigrationState. + The time the migration action began + + :return: The start_timestamp of this V1VirtualMachineInstanceMigrationState. + :rtype: str + """ + return self._start_timestamp + + @start_timestamp.setter + def start_timestamp(self, start_timestamp): + """ + Sets the start_timestamp of this V1VirtualMachineInstanceMigrationState. + The time the migration action began + + :param start_timestamp: The start_timestamp of this V1VirtualMachineInstanceMigrationState. + :type: str + """ + + self._start_timestamp = start_timestamp + + @property + def target_node(self): + """ + Gets the target_node of this V1VirtualMachineInstanceMigrationState. + The target node that the VMI is moving to + + :return: The target_node of this V1VirtualMachineInstanceMigrationState. + :rtype: str + """ + return self._target_node + + @target_node.setter + def target_node(self, target_node): + """ + Sets the target_node of this V1VirtualMachineInstanceMigrationState. + The target node that the VMI is moving to + + :param target_node: The target_node of this V1VirtualMachineInstanceMigrationState. + :type: str + """ + + self._target_node = target_node + + @property + def target_node_address(self): + """ + Gets the target_node_address of this V1VirtualMachineInstanceMigrationState. + The address of the target node to use for the migration + + :return: The target_node_address of this V1VirtualMachineInstanceMigrationState. + :rtype: str + """ + return self._target_node_address + + @target_node_address.setter + def target_node_address(self, target_node_address): + """ + Sets the target_node_address of this V1VirtualMachineInstanceMigrationState. + The address of the target node to use for the migration + + :param target_node_address: The target_node_address of this V1VirtualMachineInstanceMigrationState. + :type: str + """ + + self._target_node_address = target_node_address + + @property + def target_node_domain_detected(self): + """ + Gets the target_node_domain_detected of this V1VirtualMachineInstanceMigrationState. + The Target Node has seen the Domain Start Event + + :return: The target_node_domain_detected of this V1VirtualMachineInstanceMigrationState. + :rtype: bool + """ + return self._target_node_domain_detected + + @target_node_domain_detected.setter + def target_node_domain_detected(self, target_node_domain_detected): + """ + Sets the target_node_domain_detected of this V1VirtualMachineInstanceMigrationState. + The Target Node has seen the Domain Start Event + + :param target_node_domain_detected: The target_node_domain_detected of this V1VirtualMachineInstanceMigrationState. + :type: bool + """ + + self._target_node_domain_detected = target_node_domain_detected + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineInstanceMigrationState): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index bbdf57e7..4cb29b4d 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -33,6 +33,7 @@ class V1VirtualMachineInstanceStatus(object): swagger_types = { 'conditions': 'list[V1VirtualMachineInstanceCondition]', 'interfaces': 'list[V1VirtualMachineInstanceNetworkInterface]', + 'migration_state': 'V1VirtualMachineInstanceMigrationState', 'node_name': 'str', 'phase': 'str', 'reason': 'str' @@ -41,18 +42,20 @@ class V1VirtualMachineInstanceStatus(object): attribute_map = { 'conditions': 'conditions', 'interfaces': 'interfaces', + 'migration_state': 'migrationState', 'node_name': 'nodeName', 'phase': 'phase', 'reason': 'reason' } - def __init__(self, conditions=None, interfaces=None, node_name=None, phase=None, reason=None): + def __init__(self, conditions=None, interfaces=None, migration_state=None, node_name=None, phase=None, reason=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ self._conditions = None self._interfaces = None + self._migration_state = None self._node_name = None self._phase = None self._reason = None @@ -61,6 +64,8 @@ def __init__(self, conditions=None, interfaces=None, node_name=None, phase=None, self.conditions = conditions if interfaces is not None: self.interfaces = interfaces + if migration_state is not None: + self.migration_state = migration_state if node_name is not None: self.node_name = node_name if phase is not None: @@ -114,6 +119,29 @@ def interfaces(self, interfaces): self._interfaces = interfaces + @property + def migration_state(self): + """ + Gets the migration_state of this V1VirtualMachineInstanceStatus. + Represents the status of a live migration + + :return: The migration_state of this V1VirtualMachineInstanceStatus. + :rtype: V1VirtualMachineInstanceMigrationState + """ + return self._migration_state + + @migration_state.setter + def migration_state(self, migration_state): + """ + Sets the migration_state of this V1VirtualMachineInstanceStatus. + Represents the status of a live migration + + :param migration_state: The migration_state of this V1VirtualMachineInstanceStatus. + :type: V1VirtualMachineInstanceMigrationState + """ + + self._migration_state = migration_state + @property def node_name(self): """ diff --git a/setup.py b/setup.py index 1c1f8a86..056883d2 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.9.0-57-g363219fa" +VERSION = "v0.9.0-105-g3a703d88" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 94213c6b..1ab8a7f9 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.9.0-57-g363219fa" +"packageVersion": "v0.9.0-105-g3a703d88" } diff --git a/test/test_v1_virtual_machine_instance_migration_state.py b/test/test_v1_virtual_machine_instance_migration_state.py new file mode 100644 index 00000000..33dd3245 --- /dev/null +++ b/test/test_v1_virtual_machine_instance_migration_state.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_migration_state import V1VirtualMachineInstanceMigrationState + + +class TestV1VirtualMachineInstanceMigrationState(unittest.TestCase): + """ V1VirtualMachineInstanceMigrationState unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceMigrationState(self): + """ + Test V1VirtualMachineInstanceMigrationState + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_migration_state.V1VirtualMachineInstanceMigrationState() + pass + + +if __name__ == '__main__': + unittest.main() From 65db621e8f385513aeb92dd9f122115cae5b97f5 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 16 Oct 2018 15:49:25 +0000 Subject: [PATCH 056/521] Client Python update by Travis Build 5193 --- README.md | 2 +- docs/V1DiskTarget.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_disk_target.py | 30 +++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index b12c8f7e..c49e8fb1 100644 --- a/README.md +++ b/README.md @@ -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: v0.9.0-105-g3a703d88 +- Package version: v0.9.0-119-g6fbc282a - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1DiskTarget.md b/docs/V1DiskTarget.md index ff83d649..ca3f993b 100644 --- a/docs/V1DiskTarget.md +++ b/docs/V1DiskTarget.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **bus** | **str** | Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, ide. | [optional] +**pci_address** | **str** | If specified, the virtual disk will be placed on the guests pci address with the specifed PCI address. For example: 0000:81:01.10 +optional | [optional] **readonly** | **bool** | ReadOnly. Defaults to false. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 0daef28d..201006b5 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.9.0-105-g3a703d88" + release_note="Auto-generated client v0.9.0-119-g6fbc282a" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 9a6a84c9..31240ca9 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.9.0-105-g3a703d88/python' + self.user_agent = 'Swagger-Codegen/v0.9.0-119-g6fbc282a/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index f482d962..5953cb91 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.9.0-105-g3a703d88".\ + "SDK Package Version: v0.9.0-119-g6fbc282a".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_disk_target.py b/kubevirt/models/v1_disk_target.py index 2aa8c986..e97285f7 100644 --- a/kubevirt/models/v1_disk_target.py +++ b/kubevirt/models/v1_disk_target.py @@ -32,24 +32,29 @@ class V1DiskTarget(object): """ swagger_types = { 'bus': 'str', + 'pci_address': 'str', 'readonly': 'bool' } attribute_map = { 'bus': 'bus', + 'pci_address': 'pciAddress', 'readonly': 'readonly' } - def __init__(self, bus=None, readonly=None): + def __init__(self, bus=None, pci_address=None, readonly=None): """ V1DiskTarget - a model defined in Swagger """ self._bus = None + self._pci_address = None self._readonly = None if bus is not None: self.bus = bus + if pci_address is not None: + self.pci_address = pci_address if readonly is not None: self.readonly = readonly @@ -76,6 +81,29 @@ def bus(self, bus): self._bus = bus + @property + def pci_address(self): + """ + Gets the pci_address of this V1DiskTarget. + If specified, the virtual disk will be placed on the guests pci address with the specifed PCI address. For example: 0000:81:01.10 +optional + + :return: The pci_address of this V1DiskTarget. + :rtype: str + """ + return self._pci_address + + @pci_address.setter + def pci_address(self, pci_address): + """ + Sets the pci_address of this V1DiskTarget. + If specified, the virtual disk will be placed on the guests pci address with the specifed PCI address. For example: 0000:81:01.10 +optional + + :param pci_address: The pci_address of this V1DiskTarget. + :type: str + """ + + self._pci_address = pci_address + @property def readonly(self): """ diff --git a/setup.py b/setup.py index 056883d2..6b0d5730 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.9.0-105-g3a703d88" +VERSION = "v0.9.0-119-g6fbc282a" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 1ab8a7f9..1965c3ad 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.9.0-105-g3a703d88" +"packageVersion": "v0.9.0-119-g6fbc282a" } From c634d8d7f0588203260a2899c37e7cb11d982074 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 17 Oct 2018 18:22:51 +0000 Subject: [PATCH 057/521] Client Python update by Travis Build 5218 --- README.md | 3 +- docs/V1ServiceAccountVolumeSource.md | 10 ++ docs/V1Volume.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + .../v1_service_account_volume_source.py | 125 ++++++++++++++++++ kubevirt/models/v1_volume.py | 34 ++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_service_account_volume_source.py | 44 ++++++ 14 files changed, 223 insertions(+), 9 deletions(-) create mode 100644 docs/V1ServiceAccountVolumeSource.md create mode 100644 kubevirt/models/v1_service_account_volume_source.py create mode 100644 test/test_v1_service_account_volume_source.py diff --git a/README.md b/README.md index c49e8fb1..323cb5ba 100644 --- a/README.md +++ b/README.md @@ -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: v0.9.0-119-g6fbc282a +- Package version: v0.9.0-128-ga3dbf33c - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -194,6 +194,7 @@ Class | Method | HTTP request | Description - [V1ResourceRequirements](docs/V1ResourceRequirements.md) - [V1SecretVolumeSource](docs/V1SecretVolumeSource.md) - [V1ServerAddressByClientCIDR](docs/V1ServerAddressByClientCIDR.md) + - [V1ServiceAccountVolumeSource](docs/V1ServiceAccountVolumeSource.md) - [V1Status](docs/V1Status.md) - [V1StatusCause](docs/V1StatusCause.md) - [V1StatusDetails](docs/V1StatusDetails.md) diff --git a/docs/V1ServiceAccountVolumeSource.md b/docs/V1ServiceAccountVolumeSource.md new file mode 100644 index 00000000..258b7268 --- /dev/null +++ b/docs/V1ServiceAccountVolumeSource.md @@ -0,0 +1,10 @@ +# V1ServiceAccountVolumeSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**service_account_name** | **str** | Name of the service account in the pod's namespace to use. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Volume.md b/docs/V1Volume.md index c7bde542..e8e3db63 100644 --- a/docs/V1Volume.md +++ b/docs/V1Volume.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **persistent_volume_claim** | [**V1PersistentVolumeClaimVolumeSource**](V1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims +optional | [optional] **registry_disk** | [**V1RegistryDiskSource**](V1RegistryDiskSource.md) | RegistryDisk references a docker image, embedding a qcow or raw disk. More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html +optional | [optional] **secret** | [**V1SecretVolumeSource**](V1SecretVolumeSource.md) | SecretVolumeSource represents a reference to a secret data in the same namespace. More info: https://kubernetes.io/docs/concepts/configuration/secret/ +optional | [optional] +**service_account** | [**V1ServiceAccountVolumeSource**](V1ServiceAccountVolumeSource.md) | ServiceAccountVolumeSource represents a reference to a service account. There can only be one volume of this type! More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 201006b5..09519cec 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.9.0-119-g6fbc282a" + release_note="Auto-generated client v0.9.0-128-ga3dbf33c" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index cf117a3a..d4df5b9f 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -203,6 +203,9 @@ [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_server_address_by_client_cidr.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_server_address_by_client_cidr.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ServerAddressByClientCIDR.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_service_account_volume_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_service_account_volume_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ServiceAccountVolumeSource.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Status.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index d618a467..600bf7bb 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -81,6 +81,7 @@ from .models.v1_resource_requirements import V1ResourceRequirements from .models.v1_secret_volume_source import V1SecretVolumeSource from .models.v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR +from .models.v1_service_account_volume_source import V1ServiceAccountVolumeSource from .models.v1_status import V1Status from .models.v1_status_cause import V1StatusCause from .models.v1_status_details import V1StatusDetails diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 31240ca9..603cc214 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.9.0-119-g6fbc282a/python' + self.user_agent = 'Swagger-Codegen/v0.9.0-128-ga3dbf33c/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 5953cb91..cbccc3c2 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.9.0-119-g6fbc282a".\ + "SDK Package Version: v0.9.0-128-ga3dbf33c".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 4ec3a004..294a7e25 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -81,6 +81,7 @@ from .v1_resource_requirements import V1ResourceRequirements from .v1_secret_volume_source import V1SecretVolumeSource from .v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR +from .v1_service_account_volume_source import V1ServiceAccountVolumeSource from .v1_status import V1Status from .v1_status_cause import V1StatusCause from .v1_status_details import V1StatusDetails diff --git a/kubevirt/models/v1_service_account_volume_source.py b/kubevirt/models/v1_service_account_volume_source.py new file mode 100644 index 00000000..e6f7be25 --- /dev/null +++ b/kubevirt/models/v1_service_account_volume_source.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ServiceAccountVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'service_account_name': 'str' + } + + attribute_map = { + 'service_account_name': 'serviceAccountName' + } + + def __init__(self, service_account_name=None): + """ + V1ServiceAccountVolumeSource - a model defined in Swagger + """ + + self._service_account_name = None + + if service_account_name is not None: + self.service_account_name = service_account_name + + @property + def service_account_name(self): + """ + Gets the service_account_name of this V1ServiceAccountVolumeSource. + Name of the service account in the pod's namespace to use. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + + :return: The service_account_name of this V1ServiceAccountVolumeSource. + :rtype: str + """ + return self._service_account_name + + @service_account_name.setter + def service_account_name(self, service_account_name): + """ + Sets the service_account_name of this V1ServiceAccountVolumeSource. + Name of the service account in the pod's namespace to use. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + + :param service_account_name: The service_account_name of this V1ServiceAccountVolumeSource. + :type: str + """ + + self._service_account_name = service_account_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1ServiceAccountVolumeSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_volume.py b/kubevirt/models/v1_volume.py index 7b07f09f..9792cf83 100644 --- a/kubevirt/models/v1_volume.py +++ b/kubevirt/models/v1_volume.py @@ -40,7 +40,8 @@ class V1Volume(object): 'name': 'str', 'persistent_volume_claim': 'V1PersistentVolumeClaimVolumeSource', 'registry_disk': 'V1RegistryDiskSource', - 'secret': 'V1SecretVolumeSource' + 'secret': 'V1SecretVolumeSource', + 'service_account': 'V1ServiceAccountVolumeSource' } attribute_map = { @@ -53,10 +54,11 @@ class V1Volume(object): 'name': 'name', 'persistent_volume_claim': 'persistentVolumeClaim', 'registry_disk': 'registryDisk', - 'secret': 'secret' + 'secret': 'secret', + 'service_account': 'serviceAccount' } - def __init__(self, cloud_init_no_cloud=None, config_map=None, data_volume=None, empty_disk=None, ephemeral=None, host_disk=None, name=None, persistent_volume_claim=None, registry_disk=None, secret=None): + def __init__(self, cloud_init_no_cloud=None, config_map=None, data_volume=None, empty_disk=None, ephemeral=None, host_disk=None, name=None, persistent_volume_claim=None, registry_disk=None, secret=None, service_account=None): """ V1Volume - a model defined in Swagger """ @@ -71,6 +73,7 @@ def __init__(self, cloud_init_no_cloud=None, config_map=None, data_volume=None, self._persistent_volume_claim = None self._registry_disk = None self._secret = None + self._service_account = None if cloud_init_no_cloud is not None: self.cloud_init_no_cloud = cloud_init_no_cloud @@ -91,6 +94,8 @@ def __init__(self, cloud_init_no_cloud=None, config_map=None, data_volume=None, self.registry_disk = registry_disk if secret is not None: self.secret = secret + if service_account is not None: + self.service_account = service_account @property def cloud_init_no_cloud(self): @@ -324,6 +329,29 @@ def secret(self, secret): self._secret = secret + @property + def service_account(self): + """ + Gets the service_account of this V1Volume. + ServiceAccountVolumeSource represents a reference to a service account. There can only be one volume of this type! More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ +optional + + :return: The service_account of this V1Volume. + :rtype: V1ServiceAccountVolumeSource + """ + return self._service_account + + @service_account.setter + def service_account(self, service_account): + """ + Sets the service_account of this V1Volume. + ServiceAccountVolumeSource represents a reference to a service account. There can only be one volume of this type! More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ +optional + + :param service_account: The service_account of this V1Volume. + :type: V1ServiceAccountVolumeSource + """ + + self._service_account = service_account + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 6b0d5730..31e822da 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.9.0-119-g6fbc282a" +VERSION = "v0.9.0-128-ga3dbf33c" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 1965c3ad..4ea52a02 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.9.0-119-g6fbc282a" +"packageVersion": "v0.9.0-128-ga3dbf33c" } diff --git a/test/test_v1_service_account_volume_source.py b/test/test_v1_service_account_volume_source.py new file mode 100644 index 00000000..e4e2c1f0 --- /dev/null +++ b/test/test_v1_service_account_volume_source.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_service_account_volume_source import V1ServiceAccountVolumeSource + + +class TestV1ServiceAccountVolumeSource(unittest.TestCase): + """ V1ServiceAccountVolumeSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ServiceAccountVolumeSource(self): + """ + Test V1ServiceAccountVolumeSource + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_service_account_volume_source.V1ServiceAccountVolumeSource() + pass + + +if __name__ == '__main__': + unittest.main() From 41f133d82d6363f5bfa9b94bdc18a511de1cddfc Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 17 Oct 2018 18:24:51 +0000 Subject: [PATCH 058/521] Client Python update by Travis Build 5219 --- README.md | 4 +-- docs/{V1MultusNetwork.md => V1CniNetwork.md} | 4 +-- docs/V1Network.md | 3 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 ++-- kubevirt/__init__.py | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 +- ...v1_multus_network.py => v1_cni_network.py} | 18 +++++----- kubevirt/models/v1_network.py | 34 ++++++++++++++++--- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...ltus_network.py => test_v1_cni_network.py} | 12 +++---- 14 files changed, 61 insertions(+), 34 deletions(-) rename docs/{V1MultusNetwork.md => V1CniNetwork.md} (74%) rename kubevirt/models/{v1_multus_network.py => v1_cni_network.py} (85%) rename test/{test_v1_multus_network.py => test_v1_cni_network.py} (68%) diff --git a/README.md b/README.md index 323cb5ba..ebe84854 100644 --- a/README.md +++ b/README.md @@ -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: v0.9.0-128-ga3dbf33c +- Package version: v0.9.0-148-gf9579c64 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -137,6 +137,7 @@ Class | Method | HTTP request | Description - [V1Clock](docs/V1Clock.md) - [V1ClockOffsetUTC](docs/V1ClockOffsetUTC.md) - [V1CloudInitNoCloudSource](docs/V1CloudInitNoCloudSource.md) + - [V1CniNetwork](docs/V1CniNetwork.md) - [V1ConfigMapVolumeSource](docs/V1ConfigMapVolumeSource.md) - [V1DataVolumeSource](docs/V1DataVolumeSource.md) - [V1DeleteOptions](docs/V1DeleteOptions.md) @@ -171,7 +172,6 @@ Class | Method | HTTP request | Description - [V1LunTarget](docs/V1LunTarget.md) - [V1Machine](docs/V1Machine.md) - [V1Memory](docs/V1Memory.md) - - [V1MultusNetwork](docs/V1MultusNetwork.md) - [V1Network](docs/V1Network.md) - [V1NodeAffinity](docs/V1NodeAffinity.md) - [V1NodeSelector](docs/V1NodeSelector.md) diff --git a/docs/V1MultusNetwork.md b/docs/V1CniNetwork.md similarity index 74% rename from docs/V1MultusNetwork.md rename to docs/V1CniNetwork.md index 27cbd2c2..2d668152 100644 --- a/docs/V1MultusNetwork.md +++ b/docs/V1CniNetwork.md @@ -1,9 +1,9 @@ -# V1MultusNetwork +# V1CniNetwork ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**network_name** | **str** | References to a NetworkAttachmentDefinition CRD object in the same namespace. | +**network_name** | **str** | References to a NetworkAttachmentDefinition CRD object in the same namespace. In case of genie, it references the CNI plugin name. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Network.md b/docs/V1Network.md index 7806f7ab..eeddac62 100644 --- a/docs/V1Network.md +++ b/docs/V1Network.md @@ -3,7 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**multus** | [**V1MultusNetwork**](V1MultusNetwork.md) | | [optional] +**genie** | [**V1CniNetwork**](V1CniNetwork.md) | | [optional] +**multus** | [**V1CniNetwork**](V1CniNetwork.md) | | [optional] **name** | **str** | Network name. Must be a DNS_LABEL and unique within the vm. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | **pod** | [**V1PodNetwork**](V1PodNetwork.md) | | [optional] diff --git a/git_push.sh b/git_push.sh index 09519cec..bae33541 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.9.0-128-ga3dbf33c" + release_note="Auto-generated client v0.9.0-148-gf9579c64" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index d4df5b9f..bf0e4dde 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -32,6 +32,9 @@ [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_cloud_init_no_cloud_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_cloud_init_no_cloud_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CloudInitNoCloudSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_cni_network.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_cni_network.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CniNetwork.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_config_map_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_config_map_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ConfigMapVolumeSource.md @@ -134,9 +137,6 @@ [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_memory.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_memory.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Memory.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_multus_network.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_multus_network.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1MultusNetwork.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Network.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 600bf7bb..b64cd1a6 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -24,6 +24,7 @@ from .models.v1_clock import V1Clock from .models.v1_clock_offset_utc import V1ClockOffsetUTC from .models.v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource +from .models.v1_cni_network import V1CniNetwork from .models.v1_config_map_volume_source import V1ConfigMapVolumeSource from .models.v1_data_volume_source import V1DataVolumeSource from .models.v1_delete_options import V1DeleteOptions @@ -58,7 +59,6 @@ from .models.v1_lun_target import V1LunTarget from .models.v1_machine import V1Machine from .models.v1_memory import V1Memory -from .models.v1_multus_network import V1MultusNetwork from .models.v1_network import V1Network from .models.v1_node_affinity import V1NodeAffinity from .models.v1_node_selector import V1NodeSelector diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 603cc214..bd2b106b 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.9.0-128-ga3dbf33c/python' + self.user_agent = 'Swagger-Codegen/v0.9.0-148-gf9579c64/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index cbccc3c2..57965580 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.9.0-128-ga3dbf33c".\ + "SDK Package Version: v0.9.0-148-gf9579c64".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 294a7e25..248f5626 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -24,6 +24,7 @@ from .v1_clock import V1Clock from .v1_clock_offset_utc import V1ClockOffsetUTC from .v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource +from .v1_cni_network import V1CniNetwork from .v1_config_map_volume_source import V1ConfigMapVolumeSource from .v1_data_volume_source import V1DataVolumeSource from .v1_delete_options import V1DeleteOptions @@ -58,7 +59,6 @@ from .v1_lun_target import V1LunTarget from .v1_machine import V1Machine from .v1_memory import V1Memory -from .v1_multus_network import V1MultusNetwork from .v1_network import V1Network from .v1_node_affinity import V1NodeAffinity from .v1_node_selector import V1NodeSelector diff --git a/kubevirt/models/v1_multus_network.py b/kubevirt/models/v1_cni_network.py similarity index 85% rename from kubevirt/models/v1_multus_network.py rename to kubevirt/models/v1_cni_network.py index fb910e3d..e1e8042a 100644 --- a/kubevirt/models/v1_multus_network.py +++ b/kubevirt/models/v1_cni_network.py @@ -16,7 +16,7 @@ import re -class V1MultusNetwork(object): +class V1CniNetwork(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,7 +40,7 @@ class V1MultusNetwork(object): def __init__(self, network_name=None): """ - V1MultusNetwork - a model defined in Swagger + V1CniNetwork - a model defined in Swagger """ self._network_name = None @@ -50,10 +50,10 @@ def __init__(self, network_name=None): @property def network_name(self): """ - Gets the network_name of this V1MultusNetwork. - References to a NetworkAttachmentDefinition CRD object in the same namespace. + Gets the network_name of this V1CniNetwork. + References to a NetworkAttachmentDefinition CRD object in the same namespace. In case of genie, it references the CNI plugin name. - :return: The network_name of this V1MultusNetwork. + :return: The network_name of this V1CniNetwork. :rtype: str """ return self._network_name @@ -61,10 +61,10 @@ def network_name(self): @network_name.setter def network_name(self, network_name): """ - Sets the network_name of this V1MultusNetwork. - References to a NetworkAttachmentDefinition CRD object in the same namespace. + Sets the network_name of this V1CniNetwork. + References to a NetworkAttachmentDefinition CRD object in the same namespace. In case of genie, it references the CNI plugin name. - :param network_name: The network_name of this V1MultusNetwork. + :param network_name: The network_name of this V1CniNetwork. :type: str """ if network_name is None: @@ -114,7 +114,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1MultusNetwork): + if not isinstance(other, V1CniNetwork): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_network.py b/kubevirt/models/v1_network.py index 3052568d..104124fe 100644 --- a/kubevirt/models/v1_network.py +++ b/kubevirt/models/v1_network.py @@ -31,39 +31,65 @@ class V1Network(object): and the value is json key in definition. """ swagger_types = { - 'multus': 'V1MultusNetwork', + 'genie': 'V1CniNetwork', + 'multus': 'V1CniNetwork', 'name': 'str', 'pod': 'V1PodNetwork' } attribute_map = { + 'genie': 'genie', 'multus': 'multus', 'name': 'name', 'pod': 'pod' } - def __init__(self, multus=None, name=None, pod=None): + def __init__(self, genie=None, multus=None, name=None, pod=None): """ V1Network - a model defined in Swagger """ + self._genie = None self._multus = None self._name = None self._pod = None + if genie is not None: + self.genie = genie if multus is not None: self.multus = multus self.name = name if pod is not None: self.pod = pod + @property + def genie(self): + """ + Gets the genie of this V1Network. + + :return: The genie of this V1Network. + :rtype: V1CniNetwork + """ + return self._genie + + @genie.setter + def genie(self, genie): + """ + Sets the genie of this V1Network. + + :param genie: The genie of this V1Network. + :type: V1CniNetwork + """ + + self._genie = genie + @property def multus(self): """ Gets the multus of this V1Network. :return: The multus of this V1Network. - :rtype: V1MultusNetwork + :rtype: V1CniNetwork """ return self._multus @@ -73,7 +99,7 @@ def multus(self, multus): Sets the multus of this V1Network. :param multus: The multus of this V1Network. - :type: V1MultusNetwork + :type: V1CniNetwork """ self._multus = multus diff --git a/setup.py b/setup.py index 31e822da..bfc94d1f 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.9.0-128-ga3dbf33c" +VERSION = "v0.9.0-148-gf9579c64" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 4ea52a02..549430c2 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.9.0-128-ga3dbf33c" +"packageVersion": "v0.9.0-148-gf9579c64" } diff --git a/test/test_v1_multus_network.py b/test/test_v1_cni_network.py similarity index 68% rename from test/test_v1_multus_network.py rename to test/test_v1_cni_network.py index 17008453..4aae0260 100644 --- a/test/test_v1_multus_network.py +++ b/test/test_v1_cni_network.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_multus_network import V1MultusNetwork +from kubevirt.models.v1_cni_network import V1CniNetwork -class TestV1MultusNetwork(unittest.TestCase): - """ V1MultusNetwork unit test stubs """ +class TestV1CniNetwork(unittest.TestCase): + """ V1CniNetwork unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1MultusNetwork(self): + def testV1CniNetwork(self): """ - Test V1MultusNetwork + Test V1CniNetwork """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_multus_network.V1MultusNetwork() + #model = kubevirt.models.v1_cni_network.V1CniNetwork() pass From 4695d512c68019ac97847fd5e39723eff3b705c5 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 19 Oct 2018 12:55:13 +0000 Subject: [PATCH 059/521] Client Python update by Travis Build 5246 --- README.md | 2 +- docs/V1Disk.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_disk.py | 30 +++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ebe84854..c36d1ab7 100644 --- a/README.md +++ b/README.md @@ -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: v0.9.0-148-gf9579c64 +- Package version: v0.9.0-171-g2951ec64 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Disk.md b/docs/V1Disk.md index 0752c476..e1534599 100644 --- a/docs/V1Disk.md +++ b/docs/V1Disk.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **boot_order** | **int** | BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each disk or interface that has a boot order must have a unique value. Disks without a boot order are not tried if a disk with a boot order exists. +optional | [optional] +**cache** | **str** | Cache specifies which kvm disk cache mode should be used +optional | [optional] **cdrom** | [**V1CDRomTarget**](V1CDRomTarget.md) | Attach a volume as a cdrom to the vmi. | [optional] **dedicated_io_thread** | **bool** | dedicatedIOThread indicates this disk should have an exclusive IO Thread. Enabling this implies useIOThreads = true. Defaults to false. +optional | [optional] **disk** | [**V1DiskTarget**](V1DiskTarget.md) | Attach a volume as a disk to the vmi. | [optional] diff --git a/git_push.sh b/git_push.sh index bae33541..04152a40 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.9.0-148-gf9579c64" + release_note="Auto-generated client v0.9.0-171-g2951ec64" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index bd2b106b..388b93c3 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.9.0-148-gf9579c64/python' + self.user_agent = 'Swagger-Codegen/v0.9.0-171-g2951ec64/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 57965580..60d9ce90 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.9.0-148-gf9579c64".\ + "SDK Package Version: v0.9.0-171-g2951ec64".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_disk.py b/kubevirt/models/v1_disk.py index cb5579ab..fce42809 100644 --- a/kubevirt/models/v1_disk.py +++ b/kubevirt/models/v1_disk.py @@ -32,6 +32,7 @@ class V1Disk(object): """ swagger_types = { 'boot_order': 'int', + 'cache': 'str', 'cdrom': 'V1CDRomTarget', 'dedicated_io_thread': 'bool', 'disk': 'V1DiskTarget', @@ -44,6 +45,7 @@ class V1Disk(object): attribute_map = { 'boot_order': 'bootOrder', + 'cache': 'cache', 'cdrom': 'cdrom', 'dedicated_io_thread': 'dedicatedIOThread', 'disk': 'disk', @@ -54,12 +56,13 @@ class V1Disk(object): 'volume_name': 'volumeName' } - def __init__(self, boot_order=None, cdrom=None, dedicated_io_thread=None, disk=None, floppy=None, lun=None, name=None, serial=None, volume_name=None): + def __init__(self, boot_order=None, cache=None, cdrom=None, dedicated_io_thread=None, disk=None, floppy=None, lun=None, name=None, serial=None, volume_name=None): """ V1Disk - a model defined in Swagger """ self._boot_order = None + self._cache = None self._cdrom = None self._dedicated_io_thread = None self._disk = None @@ -71,6 +74,8 @@ def __init__(self, boot_order=None, cdrom=None, dedicated_io_thread=None, disk=N if boot_order is not None: self.boot_order = boot_order + if cache is not None: + self.cache = cache if cdrom is not None: self.cdrom = cdrom if dedicated_io_thread is not None: @@ -109,6 +114,29 @@ def boot_order(self, boot_order): self._boot_order = boot_order + @property + def cache(self): + """ + Gets the cache of this V1Disk. + Cache specifies which kvm disk cache mode should be used +optional + + :return: The cache of this V1Disk. + :rtype: str + """ + return self._cache + + @cache.setter + def cache(self, cache): + """ + Sets the cache of this V1Disk. + Cache specifies which kvm disk cache mode should be used +optional + + :param cache: The cache of this V1Disk. + :type: str + """ + + self._cache = cache + @property def cdrom(self): """ diff --git a/setup.py b/setup.py index bfc94d1f..ae5fac33 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.9.0-148-gf9579c64" +VERSION = "v0.9.0-171-g2951ec64" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 549430c2..42f80ead 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.9.0-148-gf9579c64" +"packageVersion": "v0.9.0-171-g2951ec64" } From 1e1a8c67e1fc9b56814bce726ac7fb3aca995a4a Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 19 Oct 2018 17:56:09 +0000 Subject: [PATCH 060/521] Client Python update by Travis Build 5256 --- README.md | 2 +- docs/V1Devices.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_devices.py | 30 +++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c36d1ab7..3cf84594 100644 --- a/README.md +++ b/README.md @@ -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: v0.9.0-171-g2951ec64 +- Package version: v0.9.0-186-g8a825d4f - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index 2b500618..4d5bfd81 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **block_multi_queue** | **bool** | Whether or not to enable virtio multi-queue for block devices +optional | [optional] **disks** | [**list[V1Disk]**](V1Disk.md) | Disks describes disks, cdroms, floppy and luns which are connected to the vmi. | [optional] **interfaces** | [**list[V1Interface]**](V1Interface.md) | Interfaces describe network interfaces which are added to the vmi. | [optional] +**network_interface_multiqueue** | **bool** | If specified, virtual network interfaces configured with a virtio bus will also enable the vhost multiqueue feature +optional | [optional] **rng** | [**V1Rng**](V1Rng.md) | Whether to have random number generator from host +optional | [optional] **watchdog** | [**V1Watchdog**](V1Watchdog.md) | Watchdog describes a watchdog device which can be added to the vmi. | [optional] diff --git a/git_push.sh b/git_push.sh index 04152a40..45b6da1b 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.9.0-171-g2951ec64" + release_note="Auto-generated client v0.9.0-186-g8a825d4f" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 388b93c3..753b953e 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.9.0-171-g2951ec64/python' + self.user_agent = 'Swagger-Codegen/v0.9.0-186-g8a825d4f/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 60d9ce90..f1fc3707 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.9.0-171-g2951ec64".\ + "SDK Package Version: v0.9.0-186-g8a825d4f".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index 19a71990..b3a833b1 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -36,6 +36,7 @@ class V1Devices(object): 'block_multi_queue': 'bool', 'disks': 'list[V1Disk]', 'interfaces': 'list[V1Interface]', + 'network_interface_multiqueue': 'bool', 'rng': 'V1Rng', 'watchdog': 'V1Watchdog' } @@ -46,11 +47,12 @@ class V1Devices(object): 'block_multi_queue': 'blockMultiQueue', 'disks': 'disks', 'interfaces': 'interfaces', + 'network_interface_multiqueue': 'networkInterfaceMultiqueue', 'rng': 'rng', 'watchdog': 'watchdog' } - def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=None, block_multi_queue=None, disks=None, interfaces=None, rng=None, watchdog=None): + def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=None, block_multi_queue=None, disks=None, interfaces=None, network_interface_multiqueue=None, rng=None, watchdog=None): """ V1Devices - a model defined in Swagger """ @@ -60,6 +62,7 @@ def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=Non self._block_multi_queue = None self._disks = None self._interfaces = None + self._network_interface_multiqueue = None self._rng = None self._watchdog = None @@ -73,6 +76,8 @@ def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=Non self.disks = disks if interfaces is not None: self.interfaces = interfaces + if network_interface_multiqueue is not None: + self.network_interface_multiqueue = network_interface_multiqueue if rng is not None: self.rng = rng if watchdog is not None: @@ -193,6 +198,29 @@ def interfaces(self, interfaces): self._interfaces = interfaces + @property + def network_interface_multiqueue(self): + """ + Gets the network_interface_multiqueue of this V1Devices. + If specified, virtual network interfaces configured with a virtio bus will also enable the vhost multiqueue feature +optional + + :return: The network_interface_multiqueue of this V1Devices. + :rtype: bool + """ + return self._network_interface_multiqueue + + @network_interface_multiqueue.setter + def network_interface_multiqueue(self, network_interface_multiqueue): + """ + Sets the network_interface_multiqueue of this V1Devices. + If specified, virtual network interfaces configured with a virtio bus will also enable the vhost multiqueue feature +optional + + :param network_interface_multiqueue: The network_interface_multiqueue of this V1Devices. + :type: bool + """ + + self._network_interface_multiqueue = network_interface_multiqueue + @property def rng(self): """ diff --git a/setup.py b/setup.py index ae5fac33..66572d75 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.9.0-171-g2951ec64" +VERSION = "v0.9.0-186-g8a825d4f" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 42f80ead..efa497ec 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.9.0-171-g2951ec64" +"packageVersion": "v0.9.0-186-g8a825d4f" } From 58db25c51b77ecde5a3242bbdba46b94de6ba8df Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 22 Oct 2018 19:12:06 +0000 Subject: [PATCH 061/521] Client Python update by Travis Build 5278 --- README.md | 2 +- docs/V1alpha1DataVolumeSource.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 ++++ kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../models/v1alpha1_data_volume_source.py | 32 +++++++++++++++++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 9 files changed, 42 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 3cf84594..0780fc66 100644 --- a/README.md +++ b/README.md @@ -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: v0.9.0-186-g8a825d4f +- Package version: v0.9.0-190-g2f54966f - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1alpha1DataVolumeSource.md b/docs/V1alpha1DataVolumeSource.md index b34c24c9..13f5b973 100644 --- a/docs/V1alpha1DataVolumeSource.md +++ b/docs/V1alpha1DataVolumeSource.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **http** | [**V1alpha1DataVolumeSourceHTTP**](V1alpha1DataVolumeSourceHTTP.md) | | [optional] **pvc** | [**V1alpha1DataVolumeSourcePVC**](V1alpha1DataVolumeSourcePVC.md) | | [optional] **s3** | [**V1alpha1DataVolumeSourceS3**](V1alpha1DataVolumeSourceS3.md) | | [optional] +**upload** | [**V1alpha1DataVolumeSourceUpload**](V1alpha1DataVolumeSourceUpload.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 45b6da1b..9ad03f93 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.9.0-186-g8a825d4f" + release_note="Auto-generated client v0.9.0-190-g2f54966f" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index bf0e4dde..8c8a4a8d 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -450,6 +450,12 @@ [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_group_1` [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_resources_0` [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 753b953e..a4150a56 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.9.0-186-g8a825d4f/python' + self.user_agent = 'Swagger-Codegen/v0.9.0-190-g2f54966f/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index f1fc3707..fa0a5f7c 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.9.0-186-g8a825d4f".\ + "SDK Package Version: v0.9.0-190-g2f54966f".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1alpha1_data_volume_source.py b/kubevirt/models/v1alpha1_data_volume_source.py index b5e113fb..c52832fc 100644 --- a/kubevirt/models/v1alpha1_data_volume_source.py +++ b/kubevirt/models/v1alpha1_data_volume_source.py @@ -33,16 +33,18 @@ class V1alpha1DataVolumeSource(object): swagger_types = { 'http': 'V1alpha1DataVolumeSourceHTTP', 'pvc': 'V1alpha1DataVolumeSourcePVC', - 's3': 'V1alpha1DataVolumeSourceS3' + 's3': 'V1alpha1DataVolumeSourceS3', + 'upload': 'V1alpha1DataVolumeSourceUpload' } attribute_map = { 'http': 'http', 'pvc': 'pvc', - 's3': 's3' + 's3': 's3', + 'upload': 'upload' } - def __init__(self, http=None, pvc=None, s3=None): + def __init__(self, http=None, pvc=None, s3=None, upload=None): """ V1alpha1DataVolumeSource - a model defined in Swagger """ @@ -50,6 +52,7 @@ def __init__(self, http=None, pvc=None, s3=None): self._http = None self._pvc = None self._s3 = None + self._upload = None if http is not None: self.http = http @@ -57,6 +60,8 @@ def __init__(self, http=None, pvc=None, s3=None): self.pvc = pvc if s3 is not None: self.s3 = s3 + if upload is not None: + self.upload = upload @property def http(self): @@ -121,6 +126,27 @@ def s3(self, s3): self._s3 = s3 + @property + def upload(self): + """ + Gets the upload of this V1alpha1DataVolumeSource. + + :return: The upload of this V1alpha1DataVolumeSource. + :rtype: V1alpha1DataVolumeSourceUpload + """ + return self._upload + + @upload.setter + def upload(self, upload): + """ + Sets the upload of this V1alpha1DataVolumeSource. + + :param upload: The upload of this V1alpha1DataVolumeSource. + :type: V1alpha1DataVolumeSourceUpload + """ + + self._upload = upload + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 66572d75..4635e83b 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.9.0-186-g8a825d4f" +VERSION = "v0.9.0-190-g2f54966f" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index efa497ec..0cc88626 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.9.0-186-g8a825d4f" +"packageVersion": "v0.9.0-190-g2f54966f" } From 7cf2011c423a26f2a7ee8dcd07beb72262ff9dc6 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 23 Oct 2018 10:26:41 +0000 Subject: [PATCH 062/521] Client Python update by Travis Build 5290 --- README.md | 2 +- docs/V1Disk.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_disk.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 0780fc66..1c78a5e7 100644 --- a/README.md +++ b/README.md @@ -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: v0.9.0-190-g2f54966f +- Package version: v0.9.0-193-g852cb476 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Disk.md b/docs/V1Disk.md index e1534599..beacd192 100644 --- a/docs/V1Disk.md +++ b/docs/V1Disk.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **boot_order** | **int** | BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each disk or interface that has a boot order must have a unique value. Disks without a boot order are not tried if a disk with a boot order exists. +optional | [optional] -**cache** | **str** | Cache specifies which kvm disk cache mode should be used +optional | [optional] +**cache** | **str** | Cache specifies which kvm disk cache mode should be used. +optional | [optional] **cdrom** | [**V1CDRomTarget**](V1CDRomTarget.md) | Attach a volume as a cdrom to the vmi. | [optional] **dedicated_io_thread** | **bool** | dedicatedIOThread indicates this disk should have an exclusive IO Thread. Enabling this implies useIOThreads = true. Defaults to false. +optional | [optional] **disk** | [**V1DiskTarget**](V1DiskTarget.md) | Attach a volume as a disk to the vmi. | [optional] diff --git a/git_push.sh b/git_push.sh index 9ad03f93..8dfb7d62 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.9.0-190-g2f54966f" + release_note="Auto-generated client v0.9.0-193-g852cb476" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index a4150a56..b1d12818 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.9.0-190-g2f54966f/python' + self.user_agent = 'Swagger-Codegen/v0.9.0-193-g852cb476/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index fa0a5f7c..430bd46e 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.9.0-190-g2f54966f".\ + "SDK Package Version: v0.9.0-193-g852cb476".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_disk.py b/kubevirt/models/v1_disk.py index fce42809..9f90b4db 100644 --- a/kubevirt/models/v1_disk.py +++ b/kubevirt/models/v1_disk.py @@ -118,7 +118,7 @@ def boot_order(self, boot_order): def cache(self): """ Gets the cache of this V1Disk. - Cache specifies which kvm disk cache mode should be used +optional + Cache specifies which kvm disk cache mode should be used. +optional :return: The cache of this V1Disk. :rtype: str @@ -129,7 +129,7 @@ def cache(self): def cache(self, cache): """ Sets the cache of this V1Disk. - Cache specifies which kvm disk cache mode should be used +optional + Cache specifies which kvm disk cache mode should be used. +optional :param cache: The cache of this V1Disk. :type: str diff --git a/setup.py b/setup.py index 4635e83b..d969fa8a 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.9.0-190-g2f54966f" +VERSION = "v0.9.0-193-g852cb476" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 0cc88626..9bc2e82d 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.9.0-190-g2f54966f" +"packageVersion": "v0.9.0-193-g852cb476" } From 552effd2383b073e22bd94a812e5499011bf981f Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 25 Oct 2018 07:12:07 +0000 Subject: [PATCH 063/521] Client Python update by Travis Build 5309 --- README.md | 16 +- docs/DefaultApi.md | 660 +++++++- docs/V1ObjectMeta.md | 1 - docs/V1VirtualMachineCondition.md | 2 - docs/V1VirtualMachineInstanceCondition.md | 2 - docs/V1VirtualMachineInstanceMigration.md | 14 + docs/V1VirtualMachineInstanceMigrationList.md | 13 + docs/V1VirtualMachineInstanceMigrationSpec.md | 10 + ...V1VirtualMachineInstanceMigrationStatus.md | 10 + ...rtualMachineInstanceReplicaSetCondition.md | 2 - git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 21 + kubevirt/__init__.py | 4 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 1357 ++++++++++++++++- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 4 + kubevirt/models/v1_object_meta.py | 30 +- .../models/v1_virtual_machine_condition.py | 54 +- .../v1_virtual_machine_instance_condition.py | 54 +- .../v1_virtual_machine_instance_migration.py | 231 +++ ...virtual_machine_instance_migration_list.py | 206 +++ ...virtual_machine_instance_migration_spec.py | 125 ++ ...rtual_machine_instance_migration_status.py | 123 ++ ..._machine_instance_replica_set_condition.py | 54 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 80 + ...t_v1_virtual_machine_instance_migration.py | 44 + ...virtual_machine_instance_migration_list.py | 44 + ...virtual_machine_instance_migration_spec.py | 44 + ...rtual_machine_instance_migration_status.py | 44 + 32 files changed, 2986 insertions(+), 273 deletions(-) create mode 100644 docs/V1VirtualMachineInstanceMigration.md create mode 100644 docs/V1VirtualMachineInstanceMigrationList.md create mode 100644 docs/V1VirtualMachineInstanceMigrationSpec.md create mode 100644 docs/V1VirtualMachineInstanceMigrationStatus.md create mode 100644 kubevirt/models/v1_virtual_machine_instance_migration.py create mode 100644 kubevirt/models/v1_virtual_machine_instance_migration_list.py create mode 100644 kubevirt/models/v1_virtual_machine_instance_migration_spec.py create mode 100644 kubevirt/models/v1_virtual_machine_instance_migration_status.py create mode 100644 test/test_v1_virtual_machine_instance_migration.py create mode 100644 test/test_v1_virtual_machine_instance_migration_list.py create mode 100644 test/test_v1_virtual_machine_instance_migration_spec.py create mode 100644 test/test_v1_virtual_machine_instance_migration_status.py diff --git a/README.md b/README.md index 1c78a5e7..4cc644d1 100644 --- a/README.md +++ b/README.md @@ -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: v0.9.0-193-g852cb476 +- Package version: v0.9.0-214-gc091ee42 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -77,14 +77,17 @@ Class | Method | HTTP request | Description *DefaultApi* | [**console**](docs/DefaultApi.md#console) | **GET** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/console | Open a websocket connection to a serial console on the specified VirtualMachineInstance. *DefaultApi* | [**create_namespaced_virtual_machine**](docs/DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines | Create a VirtualMachine object. *DefaultApi* | [**create_namespaced_virtual_machine_instance**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances | Create a VirtualMachineInstance object. +*DefaultApi* | [**create_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations | Create a VirtualMachineInstanceMigration object. *DefaultApi* | [**create_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets | Create a VirtualMachineInstancePreset object. *DefaultApi* | [**create_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets | Create a VirtualMachineInstanceReplicaSet object. *DefaultApi* | [**delete_collection_namespaced_virtual_machine**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines | Delete a collection of VirtualMachine objects. *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances | Delete a collection of VirtualMachineInstance objects. +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations | Delete a collection of VirtualMachineInstanceMigration objects. *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets | Delete a collection of VirtualMachineInstancePreset objects. *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets | Delete a collection of VirtualMachineInstanceReplicaSet objects. *DefaultApi* | [**delete_namespaced_virtual_machine**](docs/DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name} | Delete a VirtualMachine object. *DefaultApi* | [**delete_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name} | Delete a VirtualMachineInstance object. +*DefaultApi* | [**delete_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Delete a VirtualMachineInstanceMigration object. *DefaultApi* | [**delete_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Delete a VirtualMachineInstancePreset object. *DefaultApi* | [**delete_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Delete a VirtualMachineInstanceReplicaSet object. *DefaultApi* | [**get_api_group**](docs/DefaultApi.md#get_api_group) | **GET** /apis | Get a KubeVirt API GroupList @@ -94,22 +97,27 @@ Class | Method | HTTP request | Description *DefaultApi* | [**get_api_resources_0**](docs/DefaultApi.md#get_api_resources_0) | **GET** /apis/subresources.kubevirt.io/v1alpha2 | Get a KubeVirt API resources *DefaultApi* | [**list_namespaced_virtual_machine**](docs/DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines | Get a list of VirtualMachine objects. *DefaultApi* | [**list_namespaced_virtual_machine_instance**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances | Get a list of VirtualMachineInstance objects. +*DefaultApi* | [**list_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations | Get a list of VirtualMachineInstanceMigration objects. *DefaultApi* | [**list_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets | Get a list of VirtualMachineInstancePreset objects. *DefaultApi* | [**list_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets | Get a list of VirtualMachineInstanceReplicaSet objects. *DefaultApi* | [**list_virtual_machine_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/virtualmachines | Get a list of all VirtualMachine objects. *DefaultApi* | [**list_virtual_machine_instance_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/virtualmachineinstances | Get a list of all VirtualMachineInstance objects. +*DefaultApi* | [**list_virtual_machine_instance_migration_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/virtualmachineinstancemigrations | Get a list of all VirtualMachineInstanceMigration objects. *DefaultApi* | [**list_virtual_machine_instance_preset_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/virtualmachineinstancepresets | Get a list of all VirtualMachineInstancePreset objects. *DefaultApi* | [**list_virtual_machine_instance_replica_set_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/virtualmachineinstancereplicasets | Get a list of all VirtualMachineInstanceReplicaSet objects. *DefaultApi* | [**patch_namespaced_virtual_machine**](docs/DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name} | Patch a VirtualMachine object. *DefaultApi* | [**patch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name} | Patch a VirtualMachineInstance object. +*DefaultApi* | [**patch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Patch a VirtualMachineInstanceMigration object. *DefaultApi* | [**patch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Patch a VirtualMachineInstancePreset object. *DefaultApi* | [**patch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Patch a VirtualMachineInstanceReplicaSet object. *DefaultApi* | [**read_namespaced_virtual_machine**](docs/DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name} | Get a VirtualMachine object. *DefaultApi* | [**read_namespaced_virtual_machine_instance**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name} | Get a VirtualMachineInstance object. +*DefaultApi* | [**read_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Get a VirtualMachineInstanceMigration object. *DefaultApi* | [**read_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Get a VirtualMachineInstancePreset object. *DefaultApi* | [**read_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Get a VirtualMachineInstanceReplicaSet object. *DefaultApi* | [**replace_namespaced_virtual_machine**](docs/DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name} | Update a VirtualMachine object. *DefaultApi* | [**replace_namespaced_virtual_machine_instance**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name} | Update a VirtualMachineInstance object. +*DefaultApi* | [**replace_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Update a VirtualMachineInstanceMigration object. *DefaultApi* | [**replace_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Update a VirtualMachineInstancePreset object. *DefaultApi* | [**replace_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Update a VirtualMachineInstanceReplicaSet object. *DefaultApi* | [**test**](docs/DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/test | Test endpoint verifying apiserver connectivity. @@ -117,9 +125,11 @@ Class | Method | HTTP request | Description *DefaultApi* | [**vnc**](docs/DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/vnc | Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. *DefaultApi* | [**watch_namespaced_virtual_machine**](docs/DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachines | Watch a VirtualMachine object. *DefaultApi* | [**watch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstances | Watch a VirtualMachineInstance object. +*DefaultApi* | [**watch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstancemigrations | Watch a VirtualMachineInstanceMigration object. *DefaultApi* | [**watch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstancepresets | Watch a VirtualMachineInstancePreset object. *DefaultApi* | [**watch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstancereplicasets | Watch a VirtualMachineInstanceReplicaSet object. *DefaultApi* | [**watch_virtual_machine_instance_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/watch/virtualmachineinstances | Watch a VirtualMachineInstanceList object. +*DefaultApi* | [**watch_virtual_machine_instance_migration_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/watch/virtualmachineinstancemigrations | Watch a VirtualMachineInstanceMigrationList object. *DefaultApi* | [**watch_virtual_machine_instance_preset_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/watch/virtualmachineinstancepresets | Watch a VirtualMachineInstancePresetList object. *DefaultApi* | [**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/watch/virtualmachineinstancereplicasets | Watch a VirtualMachineInstanceReplicaSetList object. *DefaultApi* | [**watch_virtual_machine_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/watch/virtualmachines | Watch a VirtualMachineList object. @@ -205,7 +215,11 @@ Class | Method | HTTP request | Description - [V1VirtualMachineInstance](docs/V1VirtualMachineInstance.md) - [V1VirtualMachineInstanceCondition](docs/V1VirtualMachineInstanceCondition.md) - [V1VirtualMachineInstanceList](docs/V1VirtualMachineInstanceList.md) + - [V1VirtualMachineInstanceMigration](docs/V1VirtualMachineInstanceMigration.md) + - [V1VirtualMachineInstanceMigrationList](docs/V1VirtualMachineInstanceMigrationList.md) + - [V1VirtualMachineInstanceMigrationSpec](docs/V1VirtualMachineInstanceMigrationSpec.md) - [V1VirtualMachineInstanceMigrationState](docs/V1VirtualMachineInstanceMigrationState.md) + - [V1VirtualMachineInstanceMigrationStatus](docs/V1VirtualMachineInstanceMigrationStatus.md) - [V1VirtualMachineInstanceNetworkInterface](docs/V1VirtualMachineInstanceNetworkInterface.md) - [V1VirtualMachineInstancePreset](docs/V1VirtualMachineInstancePreset.md) - [V1VirtualMachineInstancePresetList](docs/V1VirtualMachineInstancePresetList.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 356129ef..3ffbbf60 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -8,14 +8,17 @@ Method | HTTP request | Description [**console**](DefaultApi.md#console) | **GET** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/console | Open a websocket connection to a serial console on the specified VirtualMachineInstance. [**create_namespaced_virtual_machine**](DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines | Create a VirtualMachine object. [**create_namespaced_virtual_machine_instance**](DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances | Create a VirtualMachineInstance object. +[**create_namespaced_virtual_machine_instance_migration**](DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations | Create a VirtualMachineInstanceMigration object. [**create_namespaced_virtual_machine_instance_preset**](DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets | Create a VirtualMachineInstancePreset object. [**create_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets | Create a VirtualMachineInstanceReplicaSet object. [**delete_collection_namespaced_virtual_machine**](DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines | Delete a collection of VirtualMachine objects. [**delete_collection_namespaced_virtual_machine_instance**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances | Delete a collection of VirtualMachineInstance objects. +[**delete_collection_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations | Delete a collection of VirtualMachineInstanceMigration objects. [**delete_collection_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets | Delete a collection of VirtualMachineInstancePreset objects. [**delete_collection_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets | Delete a collection of VirtualMachineInstanceReplicaSet objects. [**delete_namespaced_virtual_machine**](DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name} | Delete a VirtualMachine object. [**delete_namespaced_virtual_machine_instance**](DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name} | Delete a VirtualMachineInstance object. +[**delete_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Delete a VirtualMachineInstanceMigration object. [**delete_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Delete a VirtualMachineInstancePreset object. [**delete_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Delete a VirtualMachineInstanceReplicaSet object. [**get_api_group**](DefaultApi.md#get_api_group) | **GET** /apis | Get a KubeVirt API GroupList @@ -25,22 +28,27 @@ Method | HTTP request | Description [**get_api_resources_0**](DefaultApi.md#get_api_resources_0) | **GET** /apis/subresources.kubevirt.io/v1alpha2 | Get a KubeVirt API resources [**list_namespaced_virtual_machine**](DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines | Get a list of VirtualMachine objects. [**list_namespaced_virtual_machine_instance**](DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances | Get a list of VirtualMachineInstance objects. +[**list_namespaced_virtual_machine_instance_migration**](DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations | Get a list of VirtualMachineInstanceMigration objects. [**list_namespaced_virtual_machine_instance_preset**](DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets | Get a list of VirtualMachineInstancePreset objects. [**list_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets | Get a list of VirtualMachineInstanceReplicaSet objects. [**list_virtual_machine_for_all_namespaces**](DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/virtualmachines | Get a list of all VirtualMachine objects. [**list_virtual_machine_instance_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/virtualmachineinstances | Get a list of all VirtualMachineInstance objects. +[**list_virtual_machine_instance_migration_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/virtualmachineinstancemigrations | Get a list of all VirtualMachineInstanceMigration objects. [**list_virtual_machine_instance_preset_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/virtualmachineinstancepresets | Get a list of all VirtualMachineInstancePreset objects. [**list_virtual_machine_instance_replica_set_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/virtualmachineinstancereplicasets | Get a list of all VirtualMachineInstanceReplicaSet objects. [**patch_namespaced_virtual_machine**](DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name} | Patch a VirtualMachine object. [**patch_namespaced_virtual_machine_instance**](DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name} | Patch a VirtualMachineInstance object. +[**patch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Patch a VirtualMachineInstanceMigration object. [**patch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Patch a VirtualMachineInstancePreset object. [**patch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Patch a VirtualMachineInstanceReplicaSet object. [**read_namespaced_virtual_machine**](DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name} | Get a VirtualMachine object. [**read_namespaced_virtual_machine_instance**](DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name} | Get a VirtualMachineInstance object. +[**read_namespaced_virtual_machine_instance_migration**](DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Get a VirtualMachineInstanceMigration object. [**read_namespaced_virtual_machine_instance_preset**](DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Get a VirtualMachineInstancePreset object. [**read_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Get a VirtualMachineInstanceReplicaSet object. [**replace_namespaced_virtual_machine**](DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name} | Update a VirtualMachine object. [**replace_namespaced_virtual_machine_instance**](DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name} | Update a VirtualMachineInstance object. +[**replace_namespaced_virtual_machine_instance_migration**](DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Update a VirtualMachineInstanceMigration object. [**replace_namespaced_virtual_machine_instance_preset**](DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Update a VirtualMachineInstancePreset object. [**replace_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Update a VirtualMachineInstanceReplicaSet object. [**test**](DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/test | Test endpoint verifying apiserver connectivity. @@ -48,9 +56,11 @@ Method | HTTP request | Description [**vnc**](DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/vnc | Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. [**watch_namespaced_virtual_machine**](DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachines | Watch a VirtualMachine object. [**watch_namespaced_virtual_machine_instance**](DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstances | Watch a VirtualMachineInstance object. +[**watch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstancemigrations | Watch a VirtualMachineInstanceMigration object. [**watch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstancepresets | Watch a VirtualMachineInstancePreset object. [**watch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstancereplicasets | Watch a VirtualMachineInstanceReplicaSet object. [**watch_virtual_machine_instance_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/watch/virtualmachineinstances | Watch a VirtualMachineInstanceList object. +[**watch_virtual_machine_instance_migration_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/watch/virtualmachineinstancemigrations | Watch a VirtualMachineInstanceMigrationList object. [**watch_virtual_machine_instance_preset_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/watch/virtualmachineinstancepresets | Watch a VirtualMachineInstancePresetList object. [**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/watch/virtualmachineinstancereplicasets | Watch a VirtualMachineInstanceReplicaSetList object. [**watch_virtual_machine_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/watch/virtualmachines | Watch a VirtualMachineList object. @@ -260,6 +270,59 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **create_namespaced_virtual_machine_instance_migration** +> V1VirtualMachineInstanceMigration create_namespaced_virtual_machine_instance_migration(body, namespace) + +Create a VirtualMachineInstanceMigration object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +body = kubevirt.V1VirtualMachineInstanceMigration() # V1VirtualMachineInstanceMigration | +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + # Create a VirtualMachineInstanceMigration object. + api_response = api_instance.create_namespaced_virtual_machine_instance_migration(body, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->create_namespaced_virtual_machine_instance_migration: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.md)| | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +[**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **create_namespaced_virtual_machine_instance_preset** > V1VirtualMachineInstancePreset create_namespaced_virtual_machine_instance_preset(body, namespace) @@ -496,6 +559,71 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_collection_namespaced_virtual_machine_instance_migration** +> V1Status delete_collection_namespaced_virtual_machine_instance_migration(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + +Delete a collection of VirtualMachineInstanceMigration objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + # Delete a collection of VirtualMachineInstanceMigration objects. + api_response = api_instance.delete_collection_namespaced_virtual_machine_instance_migration(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_instance_migration: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_collection_namespaced_virtual_machine_instance_preset** > V1Status delete_collection_namespaced_virtual_machine_instance_preset(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -748,6 +876,67 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_namespaced_virtual_machine_instance_migration** +> V1Status delete_namespaced_virtual_machine_instance_migration(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + +Delete a VirtualMachineInstanceMigration object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +body = kubevirt.V1DeleteOptions() # V1DeleteOptions | +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +name = 'name_example' # str | Name of the resource +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + +try: + # Delete a VirtualMachineInstanceMigration object. + api_response = api_instance.delete_namespaced_virtual_machine_instance_migration(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_instance_migration: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **name** | **str**| Name of the resource | + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_namespaced_virtual_machine_instance_preset** > V1Status delete_namespaced_virtual_machine_instance_preset(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -1239,6 +1428,73 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **list_namespaced_virtual_machine_instance_migration** +> V1VirtualMachineInstanceMigrationList list_namespaced_virtual_machine_instance_migration(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + +Get a list of VirtualMachineInstanceMigration objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + # Get a list of VirtualMachineInstanceMigration objects. + api_response = api_instance.list_namespaced_virtual_machine_instance_migration(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->list_namespaced_virtual_machine_instance_migration: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1VirtualMachineInstanceMigrationList**](V1VirtualMachineInstanceMigrationList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **list_namespaced_virtual_machine_instance_preset** > V1VirtualMachineInstancePresetList list_namespaced_virtual_machine_instance_preset(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -1503,10 +1759,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_virtual_machine_instance_preset_for_all_namespaces** -> V1VirtualMachineInstancePresetList list_virtual_machine_instance_preset_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_virtual_machine_instance_migration_for_all_namespaces** +> V1VirtualMachineInstanceMigrationList list_virtual_machine_instance_migration_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of all VirtualMachineInstancePreset objects. +Get a list of all VirtualMachineInstanceMigration objects. ### Example ```python @@ -1533,11 +1789,11 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Get a list of all VirtualMachineInstancePreset objects. - api_response = api_instance.list_virtual_machine_instance_preset_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + # Get a list of all VirtualMachineInstanceMigration objects. + api_response = api_instance.list_virtual_machine_instance_migration_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_virtual_machine_instance_preset_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->list_virtual_machine_instance_migration_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -1555,7 +1811,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstancePresetList**](V1VirtualMachineInstancePresetList.md) +[**V1VirtualMachineInstanceMigrationList**](V1VirtualMachineInstanceMigrationList.md) ### Authorization @@ -1568,10 +1824,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_virtual_machine_instance_replica_set_for_all_namespaces** -> V1VirtualMachineInstanceReplicaSetList list_virtual_machine_instance_replica_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_virtual_machine_instance_preset_for_all_namespaces** +> V1VirtualMachineInstancePresetList list_virtual_machine_instance_preset_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of all VirtualMachineInstanceReplicaSet objects. +Get a list of all VirtualMachineInstancePreset objects. ### Example ```python @@ -1598,11 +1854,11 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Get a list of all VirtualMachineInstanceReplicaSet objects. - api_response = api_instance.list_virtual_machine_instance_replica_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + # Get a list of all VirtualMachineInstancePreset objects. + api_response = api_instance.list_virtual_machine_instance_preset_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_virtual_machine_instance_replica_set_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->list_virtual_machine_instance_preset_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -1620,7 +1876,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstanceReplicaSetList**](V1VirtualMachineInstanceReplicaSetList.md) +[**V1VirtualMachineInstancePresetList**](V1VirtualMachineInstancePresetList.md) ### Authorization @@ -1633,10 +1889,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_virtual_machine** -> V1VirtualMachine patch_namespaced_virtual_machine(body, namespace, name) +# **list_virtual_machine_instance_replica_set_for_all_namespaces** +> V1VirtualMachineInstanceReplicaSetList list_virtual_machine_instance_replica_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Patch a VirtualMachine object. +Get a list of all VirtualMachineInstanceReplicaSet objects. ### Example ```python @@ -1653,9 +1909,74 @@ kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1Patch() # V1Patch | -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -name = 'name_example' # str | Name of the resource +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + # Get a list of all VirtualMachineInstanceReplicaSet objects. + api_response = api_instance.list_virtual_machine_instance_replica_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->list_virtual_machine_instance_replica_set_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1VirtualMachineInstanceReplicaSetList**](V1VirtualMachineInstanceReplicaSetList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_virtual_machine** +> V1VirtualMachine patch_namespaced_virtual_machine(body, namespace, name) + +Patch a VirtualMachine object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +body = kubevirt.V1Patch() # V1Patch | +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +name = 'name_example' # str | Name of the resource try: # Patch a VirtualMachine object. @@ -1743,6 +2064,61 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **patch_namespaced_virtual_machine_instance_migration** +> V1VirtualMachineInstanceMigration patch_namespaced_virtual_machine_instance_migration(body, namespace, name) + +Patch a VirtualMachineInstanceMigration object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +body = kubevirt.V1Patch() # V1Patch | +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +name = 'name_example' # str | Name of the resource + +try: + # Patch a VirtualMachineInstanceMigration object. + api_response = api_instance.patch_namespaced_virtual_machine_instance_migration(body, namespace, name) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instance_migration: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1Patch**](V1Patch.md)| | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **name** | **str**| Name of the resource | + +### Return type + +[**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **patch_namespaced_virtual_machine_instance_preset** > V1VirtualMachineInstancePreset patch_namespaced_virtual_machine_instance_preset(body, namespace, name) @@ -1967,6 +2343,63 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **read_namespaced_virtual_machine_instance_migration** +> V1VirtualMachineInstanceMigration read_namespaced_virtual_machine_instance_migration(name, namespace, exact=exact, export=export) + +Get a VirtualMachineInstanceMigration object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + # Get a VirtualMachineInstanceMigration object. + api_response = api_instance.read_namespaced_virtual_machine_instance_migration(name, namespace, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->read_namespaced_virtual_machine_instance_migration: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **read_namespaced_virtual_machine_instance_preset** > V1VirtualMachineInstancePreset read_namespaced_virtual_machine_instance_preset(name, namespace, exact=exact, export=export) @@ -2191,6 +2624,61 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **replace_namespaced_virtual_machine_instance_migration** +> V1VirtualMachineInstanceMigration replace_namespaced_virtual_machine_instance_migration(body, namespace, name) + +Update a VirtualMachineInstanceMigration object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +body = kubevirt.V1VirtualMachineInstanceMigration() # V1VirtualMachineInstanceMigration | +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +name = 'name_example' # str | Name of the resource + +try: + # Update a VirtualMachineInstanceMigration object. + api_response = api_instance.replace_namespaced_virtual_machine_instance_migration(body, namespace, name) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_instance_migration: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.md)| | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **name** | **str**| Name of the resource | + +### Return type + +[**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **replace_namespaced_virtual_machine_instance_preset** > V1VirtualMachineInstancePreset replace_namespaced_virtual_machine_instance_preset(body, namespace, name) @@ -2584,6 +3072,73 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **watch_namespaced_virtual_machine_instance_migration** +> V1WatchEvent watch_namespaced_virtual_machine_instance_migration(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + +Watch a VirtualMachineInstanceMigration object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + # Watch a VirtualMachineInstanceMigration object. + api_response = api_instance.watch_namespaced_virtual_machine_instance_migration(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->watch_namespaced_virtual_machine_instance_migration: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **watch_namespaced_virtual_machine_instance_preset** > V1WatchEvent watch_namespaced_virtual_machine_instance_preset(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -2783,6 +3338,71 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **watch_virtual_machine_instance_migration_list_for_all_namespaces** +> V1WatchEvent watch_virtual_machine_instance_migration_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + +Watch a VirtualMachineInstanceMigrationList object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + # Watch a VirtualMachineInstanceMigrationList object. + api_response = api_instance.watch_virtual_machine_instance_migration_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->watch_virtual_machine_instance_migration_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **watch_virtual_machine_instance_preset_list_for_all_namespaces** > V1WatchEvent watch_virtual_machine_instance_preset_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) diff --git a/docs/V1ObjectMeta.md b/docs/V1ObjectMeta.md index 910ecede..077183aa 100644 --- a/docs/V1ObjectMeta.md +++ b/docs/V1ObjectMeta.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **annotations** | **object** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations | [optional] **cluster_name** | **str** | The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. | [optional] -**creation_timestamp** | **str** | CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] **deletion_grace_period_seconds** | **int** | Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. | [optional] **deletion_timestamp** | **str** | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] **finalizers** | **list[str]** | Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. | [optional] diff --git a/docs/V1VirtualMachineCondition.md b/docs/V1VirtualMachineCondition.md index d7b0d8ea..d29a495a 100644 --- a/docs/V1VirtualMachineCondition.md +++ b/docs/V1VirtualMachineCondition.md @@ -3,8 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**last_probe_time** | **str** | | [optional] -**last_transition_time** | **str** | | [optional] **message** | **str** | | [optional] **reason** | **str** | | [optional] **status** | **str** | | diff --git a/docs/V1VirtualMachineInstanceCondition.md b/docs/V1VirtualMachineInstanceCondition.md index a69c27fd..2dd15857 100644 --- a/docs/V1VirtualMachineInstanceCondition.md +++ b/docs/V1VirtualMachineInstanceCondition.md @@ -3,8 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**last_probe_time** | **str** | | [optional] -**last_transition_time** | **str** | | [optional] **message** | **str** | | [optional] **reason** | **str** | | [optional] **status** | **str** | | diff --git a/docs/V1VirtualMachineInstanceMigration.md b/docs/V1VirtualMachineInstanceMigration.md new file mode 100644 index 00000000..a56e4b15 --- /dev/null +++ b/docs/V1VirtualMachineInstanceMigration.md @@ -0,0 +1,14 @@ +# V1VirtualMachineInstanceMigration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1VirtualMachineInstanceMigrationSpec**](V1VirtualMachineInstanceMigrationSpec.md) | | [optional] +**status** | [**V1VirtualMachineInstanceMigrationStatus**](V1VirtualMachineInstanceMigrationStatus.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceMigrationList.md b/docs/V1VirtualMachineInstanceMigrationList.md new file mode 100644 index 00000000..556f7e31 --- /dev/null +++ b/docs/V1VirtualMachineInstanceMigrationList.md @@ -0,0 +1,13 @@ +# V1VirtualMachineInstanceMigrationList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1VirtualMachineInstanceMigration]**](V1VirtualMachineInstanceMigration.md) | | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceMigrationSpec.md b/docs/V1VirtualMachineInstanceMigrationSpec.md new file mode 100644 index 00000000..8b4b0a33 --- /dev/null +++ b/docs/V1VirtualMachineInstanceMigrationSpec.md @@ -0,0 +1,10 @@ +# V1VirtualMachineInstanceMigrationSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**vmi_name** | **str** | The name of the VMI to perform the migration on. VMI must exist in the migration objects namespace | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceMigrationStatus.md b/docs/V1VirtualMachineInstanceMigrationStatus.md new file mode 100644 index 00000000..1f598fd2 --- /dev/null +++ b/docs/V1VirtualMachineInstanceMigrationStatus.md @@ -0,0 +1,10 @@ +# V1VirtualMachineInstanceMigrationStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**phase** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceReplicaSetCondition.md b/docs/V1VirtualMachineInstanceReplicaSetCondition.md index 7fdf644f..93756a4f 100644 --- a/docs/V1VirtualMachineInstanceReplicaSetCondition.md +++ b/docs/V1VirtualMachineInstanceReplicaSetCondition.md @@ -3,8 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**last_probe_time** | **str** | | [optional] -**last_transition_time** | **str** | | [optional] **message** | **str** | | [optional] **reason** | **str** | | [optional] **status** | **str** | | diff --git a/git_push.sh b/git_push.sh index 8dfb7d62..7b4d109e 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.9.0-193-g852cb476" + release_note="Auto-generated client v0.9.0-214-gc091ee42" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 8c8a4a8d..734c635a 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -1,4 +1,13 @@ [main] INFO io.swagger.parser.Swagger20Parser - reading from /root/go/src/kubevirt.io/kubevirt/api/openapi-spec/swagger.json +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + +Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] INFO io.swagger.codegen.ignore.CodegenIgnoreProcessor - No .swagger-codegen-ignore file found. [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default appVersion set to 1.0.0 [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default version set to 1.0.0 @@ -236,9 +245,21 @@ [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_migration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_migration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceMigration.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_migration_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_migration_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceMigrationList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_migration_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_migration_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceMigrationSpec.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_migration_state.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_migration_state.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceMigrationState.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_migration_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_migration_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceMigrationStatus.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_network_interface.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_network_interface.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceNetworkInterface.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index b64cd1a6..fa10b01a 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -92,7 +92,11 @@ from .models.v1_virtual_machine_instance import V1VirtualMachineInstance from .models.v1_virtual_machine_instance_condition import V1VirtualMachineInstanceCondition from .models.v1_virtual_machine_instance_list import V1VirtualMachineInstanceList +from .models.v1_virtual_machine_instance_migration import V1VirtualMachineInstanceMigration +from .models.v1_virtual_machine_instance_migration_list import V1VirtualMachineInstanceMigrationList +from .models.v1_virtual_machine_instance_migration_spec import V1VirtualMachineInstanceMigrationSpec from .models.v1_virtual_machine_instance_migration_state import V1VirtualMachineInstanceMigrationState +from .models.v1_virtual_machine_instance_migration_status import V1VirtualMachineInstanceMigrationStatus from .models.v1_virtual_machine_instance_network_interface import V1VirtualMachineInstanceNetworkInterface from .models.v1_virtual_machine_instance_preset import V1VirtualMachineInstancePreset from .models.v1_virtual_machine_instance_preset_list import V1VirtualMachineInstancePresetList diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index b1d12818..9791f30f 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.9.0-193-g852cb476/python' + self.user_agent = 'Swagger-Codegen/v0.9.0-214-gc091ee42/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index b72b87a3..79b897e3 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -469,6 +469,119 @@ def create_namespaced_virtual_machine_instance_with_http_info(self, body, namesp _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def create_namespaced_virtual_machine_instance_migration(self, body, namespace, **kwargs): + """ + Create a VirtualMachineInstanceMigration object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_virtual_machine_instance_migration(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1VirtualMachineInstanceMigration body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1VirtualMachineInstanceMigration + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, **kwargs) + else: + (data) = self.create_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, **kwargs) + return data + + def create_namespaced_virtual_machine_instance_migration_with_http_info(self, body, namespace, **kwargs): + """ + Create a VirtualMachineInstanceMigration object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1VirtualMachineInstanceMigration body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1VirtualMachineInstanceMigration + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_virtual_machine_instance_migration" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine_instance_migration`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_instance_migration`") + + if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): + raise ValueError("Invalid value for parameter `namespace` when calling `create_namespaced_virtual_machine_instance_migration`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceMigration', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def create_namespaced_virtual_machine_instance_preset(self, body, namespace, **kwargs): """ Create a VirtualMachineInstancePreset object. @@ -945,6 +1058,131 @@ def delete_collection_namespaced_virtual_machine_instance_with_http_info(self, * _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def delete_collection_namespaced_virtual_machine_instance_migration(self, **kwargs): + """ + Delete a collection of VirtualMachineInstanceMigration objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_virtual_machine_instance_migration(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_namespaced_virtual_machine_instance_migration_with_http_info(**kwargs) + else: + (data) = self.delete_collection_namespaced_virtual_machine_instance_migration_with_http_info(**kwargs) + return data + + def delete_collection_namespaced_virtual_machine_instance_migration_with_http_info(self, **kwargs): + """ + Delete a collection of VirtualMachineInstanceMigration objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_virtual_machine_instance_migration_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_namespaced_virtual_machine_instance_migration" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def delete_collection_namespaced_virtual_machine_instance_preset(self, **kwargs): """ Delete a collection of VirtualMachineInstancePreset objects. @@ -1463,16 +1701,16 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, body, namesp _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_instance_preset(self, body, namespace, name, **kwargs): + def delete_namespaced_virtual_machine_instance_migration(self, body, namespace, name, **kwargs): """ - Delete a VirtualMachineInstancePreset object. + Delete a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_preset(body, namespace, name, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_migration(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1488,21 +1726,21 @@ def delete_namespaced_virtual_machine_instance_preset(self, body, namespace, nam """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, **kwargs) + return self.delete_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, name, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, **kwargs) + (data) = self.delete_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, name, **kwargs) return data - def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, body, namespace, name, **kwargs): + def delete_namespaced_virtual_machine_instance_migration_with_http_info(self, body, namespace, name, **kwargs): """ - Delete a VirtualMachineInstancePreset object. + Delete a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1528,24 +1766,24 @@ def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, body, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_instance_preset" % key + " to method delete_namespaced_virtual_machine_instance_migration" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_migration`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_migration`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance_migration`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_migration`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `delete_namespaced_virtual_machine_instance_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `name` when calling `delete_namespaced_virtual_machine_instance_migration`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -1582,7 +1820,7 @@ def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, body, # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name}', 'DELETE', path_params, query_params, header_params, @@ -1597,16 +1835,16 @@ def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, body, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_instance_replica_set(self, body, namespace, name, **kwargs): + def delete_namespaced_virtual_machine_instance_preset(self, body, namespace, name, **kwargs): """ - Delete a VirtualMachineInstanceReplicaSet object. + Delete a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_replica_set(body, namespace, name, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_preset(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1622,21 +1860,21 @@ def delete_namespaced_virtual_machine_instance_replica_set(self, body, namespace """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, **kwargs) + return self.delete_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, **kwargs) + (data) = self.delete_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, **kwargs) return data - def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, body, namespace, name, **kwargs): + def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, body, namespace, name, **kwargs): """ - Delete a VirtualMachineInstanceReplicaSet object. + Delete a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1662,24 +1900,24 @@ def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_instance_replica_set" % key + " to method delete_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_preset`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_preset`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance_preset`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `delete_namespaced_virtual_machine_instance_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `name` when calling `delete_namespaced_virtual_machine_instance_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -1716,7 +1954,7 @@ def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name}', 'DELETE', path_params, query_params, header_params, @@ -1731,7 +1969,141 @@ def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_group(self, **kwargs): + def delete_namespaced_virtual_machine_instance_replica_set(self, body, namespace, name, **kwargs): + """ + Delete a VirtualMachineInstanceReplicaSet object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_virtual_machine_instance_replica_set(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1DeleteOptions body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, **kwargs) + else: + (data) = self.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, **kwargs) + return data + + def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, body, namespace, name, **kwargs): + """ + Delete a VirtualMachineInstanceReplicaSet object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1DeleteOptions body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace', 'name', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_virtual_machine_instance_replica_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_replica_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_replica_set`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance_replica_set`") + + if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): + raise ValueError("Invalid value for parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): + raise ValueError("Invalid value for parameter `name` when calling `delete_namespaced_virtual_machine_instance_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = [] + if 'grace_period_seconds' in params: + query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) + if 'orphan_dependents' in params: + query_params.append(('orphanDependents', params['orphan_dependents'])) + if 'propagation_policy' in params: + query_params.append(('propagationPolicy', params['propagation_policy'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_group(self, **kwargs): """ Get a KubeVirt API GroupList This method makes a synchronous HTTP request by default. To make an @@ -2459,6 +2831,140 @@ def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def list_namespaced_virtual_machine_instance_migration(self, namespace, **kwargs): + """ + Get a list of VirtualMachineInstanceMigration objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_virtual_machine_instance_migration(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineInstanceMigrationList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_virtual_machine_instance_migration_with_http_info(self, namespace, **kwargs): + """ + Get a list of VirtualMachineInstanceMigration objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineInstanceMigrationList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_virtual_machine_instance_migration" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_migration`") + + if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): + raise ValueError("Invalid value for parameter `namespace` when calling `list_namespaced_virtual_machine_instance_migration`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceMigrationList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def list_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): """ Get a list of VirtualMachineInstancePreset objects. @@ -2977,9 +3483,134 @@ def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_instance_preset_for_all_namespaces(self, **kwargs): + def list_virtual_machine_instance_migration_for_all_namespaces(self, **kwargs): """ - Get a list of all VirtualMachineInstancePreset objects. + Get a list of all VirtualMachineInstanceMigration objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_instance_migration_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineInstanceMigrationList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(self, **kwargs): + """ + Get a list of all VirtualMachineInstanceMigration objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineInstanceMigrationList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_virtual_machine_instance_migration_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/virtualmachineinstancemigrations', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceMigrationList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_virtual_machine_instance_preset_for_all_namespaces(self, **kwargs): + """ + Get a list of all VirtualMachineInstancePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -3471,6 +4102,128 @@ def patch_namespaced_virtual_machine_instance_with_http_info(self, body, namespa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def patch_namespaced_virtual_machine_instance_migration(self, body, namespace, name, **kwargs): + """ + Patch a VirtualMachineInstanceMigration object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_instance_migration(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Patch body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) + :return: V1VirtualMachineInstanceMigration + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, name, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, name, **kwargs) + return data + + def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, body, namespace, name, **kwargs): + """ + Patch a VirtualMachineInstanceMigration object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1Patch body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) + :return: V1VirtualMachineInstanceMigration + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace', 'name'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_virtual_machine_instance_migration" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_migration`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_migration`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_migration`") + + if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): + raise ValueError("Invalid value for parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_migration`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): + raise ValueError("Invalid value for parameter `name` when calling `patch_namespaced_virtual_machine_instance_migration`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceMigration', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def patch_namespaced_virtual_machine_instance_preset(self, body, namespace, name, **kwargs): """ Patch a VirtualMachineInstancePreset object. @@ -3953,6 +4706,125 @@ def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespac _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def read_namespaced_virtual_machine_instance_migration(self, name, namespace, **kwargs): + """ + Get a VirtualMachineInstanceMigration object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_instance_migration(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachineInstanceMigration + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, **kwargs): + """ + Get a VirtualMachineInstanceMigration object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachineInstanceMigration + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_virtual_machine_instance_migration" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance_migration`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_migration`") + + if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): + raise ValueError("Invalid value for parameter `name` when calling `read_namespaced_virtual_machine_instance_migration`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): + raise ValueError("Invalid value for parameter `namespace` when calling `read_namespaced_virtual_machine_instance_migration`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceMigration', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def read_namespaced_virtual_machine_instance_preset(self, name, namespace, **kwargs): """ Get a VirtualMachineInstancePreset object. @@ -4315,48 +5187,170 @@ def replace_namespaced_virtual_machine_with_http_info(self, body, namespace, nam def replace_namespaced_virtual_machine_instance(self, body, namespace, name, **kwargs): """ - Update a VirtualMachineInstance object. + Update a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_virtual_machine_instance(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1VirtualMachineInstance body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) + :return: V1VirtualMachineInstance + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, **kwargs) + else: + (data) = self.replace_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, **kwargs) + return data + + def replace_namespaced_virtual_machine_instance_with_http_info(self, body, namespace, name, **kwargs): + """ + Update a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1VirtualMachineInstance body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) + :return: V1VirtualMachineInstance + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace', 'name'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_virtual_machine_instance" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance`") + + if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): + raise ValueError("Invalid value for parameter `namespace` when calling `replace_namespaced_virtual_machine_instance`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): + raise ValueError("Invalid value for parameter `name` when calling `replace_namespaced_virtual_machine_instance`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstance', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_virtual_machine_instance_migration(self, body, namespace, name, **kwargs): + """ + Update a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance(body, namespace, name, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_migration(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachineInstance body: (required) + :param V1VirtualMachineInstanceMigration body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) - :return: V1VirtualMachineInstance + :return: V1VirtualMachineInstanceMigration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, **kwargs) + return self.replace_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, name, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, **kwargs) + (data) = self.replace_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, name, **kwargs) return data - def replace_namespaced_virtual_machine_instance_with_http_info(self, body, namespace, name, **kwargs): + def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, body, namespace, name, **kwargs): """ - Update a VirtualMachineInstance object. + Update a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachineInstance body: (required) + :param V1VirtualMachineInstanceMigration body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) - :return: V1VirtualMachineInstance + :return: V1VirtualMachineInstanceMigration If the method is called asynchronously, returns the request thread. """ @@ -4372,24 +5366,24 @@ def replace_namespaced_virtual_machine_instance_with_http_info(self, body, names if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_instance" % key + " to method replace_namespaced_virtual_machine_instance_migration" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_migration`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_migration`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_migration`") if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `replace_namespaced_virtual_machine_instance`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_migration`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `replace_namespaced_virtual_machine_instance`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + raise ValueError("Invalid value for parameter `name` when calling `replace_namespaced_virtual_machine_instance_migration`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -4420,14 +5414,14 @@ def replace_namespaced_virtual_machine_instance_with_http_info(self, body, names # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstance', + response_type='V1VirtualMachineInstanceMigration', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5251,6 +6245,140 @@ def watch_namespaced_virtual_machine_instance_with_http_info(self, namespace, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def watch_namespaced_virtual_machine_instance_migration(self, namespace, **kwargs): + """ + Watch a VirtualMachineInstanceMigration object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_virtual_machine_instance_migration(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) + return data + + def watch_namespaced_virtual_machine_instance_migration_with_http_info(self, namespace, **kwargs): + """ + Watch a VirtualMachineInstanceMigration object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_virtual_machine_instance_migration_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_virtual_machine_instance_migration" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_migration`") + + if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): + raise ValueError("Invalid value for parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_migration`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstancemigrations', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1WatchEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def watch_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): """ Watch a VirtualMachineInstancePreset object. @@ -5644,6 +6772,131 @@ def watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(self, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def watch_virtual_machine_instance_migration_list_for_all_namespaces(self, **kwargs): + """ + Watch a VirtualMachineInstanceMigrationList object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_virtual_machine_instance_migration_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + Watch a VirtualMachineInstanceMigrationList object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_virtual_machine_instance_migration_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/watch/virtualmachineinstancemigrations', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1WatchEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def watch_virtual_machine_instance_preset_list_for_all_namespaces(self, **kwargs): """ Watch a VirtualMachineInstancePresetList object. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 430bd46e..0582fb2b 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.9.0-193-g852cb476".\ + "SDK Package Version: v0.9.0-214-gc091ee42".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 248f5626..bfe20fad 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -92,7 +92,11 @@ from .v1_virtual_machine_instance import V1VirtualMachineInstance from .v1_virtual_machine_instance_condition import V1VirtualMachineInstanceCondition from .v1_virtual_machine_instance_list import V1VirtualMachineInstanceList +from .v1_virtual_machine_instance_migration import V1VirtualMachineInstanceMigration +from .v1_virtual_machine_instance_migration_list import V1VirtualMachineInstanceMigrationList +from .v1_virtual_machine_instance_migration_spec import V1VirtualMachineInstanceMigrationSpec from .v1_virtual_machine_instance_migration_state import V1VirtualMachineInstanceMigrationState +from .v1_virtual_machine_instance_migration_status import V1VirtualMachineInstanceMigrationStatus from .v1_virtual_machine_instance_network_interface import V1VirtualMachineInstanceNetworkInterface from .v1_virtual_machine_instance_preset import V1VirtualMachineInstancePreset from .v1_virtual_machine_instance_preset_list import V1VirtualMachineInstancePresetList diff --git a/kubevirt/models/v1_object_meta.py b/kubevirt/models/v1_object_meta.py index 34972040..c1c44397 100644 --- a/kubevirt/models/v1_object_meta.py +++ b/kubevirt/models/v1_object_meta.py @@ -33,7 +33,6 @@ class V1ObjectMeta(object): swagger_types = { 'annotations': 'object', 'cluster_name': 'str', - 'creation_timestamp': 'str', 'deletion_grace_period_seconds': 'int', 'deletion_timestamp': 'str', 'finalizers': 'list[str]', @@ -52,7 +51,6 @@ class V1ObjectMeta(object): attribute_map = { 'annotations': 'annotations', 'cluster_name': 'clusterName', - 'creation_timestamp': 'creationTimestamp', 'deletion_grace_period_seconds': 'deletionGracePeriodSeconds', 'deletion_timestamp': 'deletionTimestamp', 'finalizers': 'finalizers', @@ -68,14 +66,13 @@ class V1ObjectMeta(object): 'uid': 'uid' } - def __init__(self, annotations=None, cluster_name=None, creation_timestamp=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, initializers=None, labels=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, uid=None): + def __init__(self, annotations=None, cluster_name=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, initializers=None, labels=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, uid=None): """ V1ObjectMeta - a model defined in Swagger """ self._annotations = None self._cluster_name = None - self._creation_timestamp = None self._deletion_grace_period_seconds = None self._deletion_timestamp = None self._finalizers = None @@ -94,8 +91,6 @@ def __init__(self, annotations=None, cluster_name=None, creation_timestamp=None, self.annotations = annotations if cluster_name is not None: self.cluster_name = cluster_name - if creation_timestamp is not None: - self.creation_timestamp = creation_timestamp if deletion_grace_period_seconds is not None: self.deletion_grace_period_seconds = deletion_grace_period_seconds if deletion_timestamp is not None: @@ -169,29 +164,6 @@ def cluster_name(self, cluster_name): self._cluster_name = cluster_name - @property - def creation_timestamp(self): - """ - Gets the creation_timestamp of this V1ObjectMeta. - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - - :return: The creation_timestamp of this V1ObjectMeta. - :rtype: str - """ - return self._creation_timestamp - - @creation_timestamp.setter - def creation_timestamp(self, creation_timestamp): - """ - Sets the creation_timestamp of this V1ObjectMeta. - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - - :param creation_timestamp: The creation_timestamp of this V1ObjectMeta. - :type: str - """ - - self._creation_timestamp = creation_timestamp - @property def deletion_grace_period_seconds(self): """ diff --git a/kubevirt/models/v1_virtual_machine_condition.py b/kubevirt/models/v1_virtual_machine_condition.py index 987dc634..2abc9aa6 100644 --- a/kubevirt/models/v1_virtual_machine_condition.py +++ b/kubevirt/models/v1_virtual_machine_condition.py @@ -31,8 +31,6 @@ class V1VirtualMachineCondition(object): and the value is json key in definition. """ swagger_types = { - 'last_probe_time': 'str', - 'last_transition_time': 'str', 'message': 'str', 'reason': 'str', 'status': 'str', @@ -40,30 +38,22 @@ class V1VirtualMachineCondition(object): } attribute_map = { - 'last_probe_time': 'lastProbeTime', - 'last_transition_time': 'lastTransitionTime', 'message': 'message', 'reason': 'reason', 'status': 'status', 'type': 'type' } - def __init__(self, last_probe_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None): + def __init__(self, message=None, reason=None, status=None, type=None): """ V1VirtualMachineCondition - a model defined in Swagger """ - self._last_probe_time = None - self._last_transition_time = None self._message = None self._reason = None self._status = None self._type = None - if last_probe_time is not None: - self.last_probe_time = last_probe_time - if last_transition_time is not None: - self.last_transition_time = last_transition_time if message is not None: self.message = message if reason is not None: @@ -71,48 +61,6 @@ def __init__(self, last_probe_time=None, last_transition_time=None, message=None self.status = status self.type = type - @property - def last_probe_time(self): - """ - Gets the last_probe_time of this V1VirtualMachineCondition. - - :return: The last_probe_time of this V1VirtualMachineCondition. - :rtype: str - """ - return self._last_probe_time - - @last_probe_time.setter - def last_probe_time(self, last_probe_time): - """ - Sets the last_probe_time of this V1VirtualMachineCondition. - - :param last_probe_time: The last_probe_time of this V1VirtualMachineCondition. - :type: str - """ - - self._last_probe_time = last_probe_time - - @property - def last_transition_time(self): - """ - Gets the last_transition_time of this V1VirtualMachineCondition. - - :return: The last_transition_time of this V1VirtualMachineCondition. - :rtype: str - """ - return self._last_transition_time - - @last_transition_time.setter - def last_transition_time(self, last_transition_time): - """ - Sets the last_transition_time of this V1VirtualMachineCondition. - - :param last_transition_time: The last_transition_time of this V1VirtualMachineCondition. - :type: str - """ - - self._last_transition_time = last_transition_time - @property def message(self): """ diff --git a/kubevirt/models/v1_virtual_machine_instance_condition.py b/kubevirt/models/v1_virtual_machine_instance_condition.py index b367d0e9..330f1804 100644 --- a/kubevirt/models/v1_virtual_machine_instance_condition.py +++ b/kubevirt/models/v1_virtual_machine_instance_condition.py @@ -31,8 +31,6 @@ class V1VirtualMachineInstanceCondition(object): and the value is json key in definition. """ swagger_types = { - 'last_probe_time': 'str', - 'last_transition_time': 'str', 'message': 'str', 'reason': 'str', 'status': 'str', @@ -40,30 +38,22 @@ class V1VirtualMachineInstanceCondition(object): } attribute_map = { - 'last_probe_time': 'lastProbeTime', - 'last_transition_time': 'lastTransitionTime', 'message': 'message', 'reason': 'reason', 'status': 'status', 'type': 'type' } - def __init__(self, last_probe_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None): + def __init__(self, message=None, reason=None, status=None, type=None): """ V1VirtualMachineInstanceCondition - a model defined in Swagger """ - self._last_probe_time = None - self._last_transition_time = None self._message = None self._reason = None self._status = None self._type = None - if last_probe_time is not None: - self.last_probe_time = last_probe_time - if last_transition_time is not None: - self.last_transition_time = last_transition_time if message is not None: self.message = message if reason is not None: @@ -71,48 +61,6 @@ def __init__(self, last_probe_time=None, last_transition_time=None, message=None self.status = status self.type = type - @property - def last_probe_time(self): - """ - Gets the last_probe_time of this V1VirtualMachineInstanceCondition. - - :return: The last_probe_time of this V1VirtualMachineInstanceCondition. - :rtype: str - """ - return self._last_probe_time - - @last_probe_time.setter - def last_probe_time(self, last_probe_time): - """ - Sets the last_probe_time of this V1VirtualMachineInstanceCondition. - - :param last_probe_time: The last_probe_time of this V1VirtualMachineInstanceCondition. - :type: str - """ - - self._last_probe_time = last_probe_time - - @property - def last_transition_time(self): - """ - Gets the last_transition_time of this V1VirtualMachineInstanceCondition. - - :return: The last_transition_time of this V1VirtualMachineInstanceCondition. - :rtype: str - """ - return self._last_transition_time - - @last_transition_time.setter - def last_transition_time(self, last_transition_time): - """ - Sets the last_transition_time of this V1VirtualMachineInstanceCondition. - - :param last_transition_time: The last_transition_time of this V1VirtualMachineInstanceCondition. - :type: str - """ - - self._last_transition_time = last_transition_time - @property def message(self): """ diff --git a/kubevirt/models/v1_virtual_machine_instance_migration.py b/kubevirt/models/v1_virtual_machine_instance_migration.py new file mode 100644 index 00000000..7e13d9a8 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_migration.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineInstanceMigration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1VirtualMachineInstanceMigrationSpec', + 'status': 'V1VirtualMachineInstanceMigrationStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + """ + V1VirtualMachineInstanceMigration - a model defined in Swagger + """ + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + if spec is not None: + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1VirtualMachineInstanceMigration. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + + :return: The api_version of this V1VirtualMachineInstanceMigration. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1VirtualMachineInstanceMigration. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1VirtualMachineInstanceMigration. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1VirtualMachineInstanceMigration. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + + :return: The kind of this V1VirtualMachineInstanceMigration. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1VirtualMachineInstanceMigration. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1VirtualMachineInstanceMigration. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1VirtualMachineInstanceMigration. + + :return: The metadata of this V1VirtualMachineInstanceMigration. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1VirtualMachineInstanceMigration. + + :param metadata: The metadata of this V1VirtualMachineInstanceMigration. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1VirtualMachineInstanceMigration. + + :return: The spec of this V1VirtualMachineInstanceMigration. + :rtype: V1VirtualMachineInstanceMigrationSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1VirtualMachineInstanceMigration. + + :param spec: The spec of this V1VirtualMachineInstanceMigration. + :type: V1VirtualMachineInstanceMigrationSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1VirtualMachineInstanceMigration. + + :return: The status of this V1VirtualMachineInstanceMigration. + :rtype: V1VirtualMachineInstanceMigrationStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1VirtualMachineInstanceMigration. + + :param status: The status of this V1VirtualMachineInstanceMigration. + :type: V1VirtualMachineInstanceMigrationStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineInstanceMigration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_list.py b/kubevirt/models/v1_virtual_machine_instance_migration_list.py new file mode 100644 index 00000000..cecac303 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_migration_list.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineInstanceMigrationList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'items': 'list[V1VirtualMachineInstanceMigration]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1VirtualMachineInstanceMigrationList - a model defined in Swagger + """ + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1VirtualMachineInstanceMigrationList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + + :return: The api_version of this V1VirtualMachineInstanceMigrationList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1VirtualMachineInstanceMigrationList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1VirtualMachineInstanceMigrationList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1VirtualMachineInstanceMigrationList. + + :return: The items of this V1VirtualMachineInstanceMigrationList. + :rtype: list[V1VirtualMachineInstanceMigration] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1VirtualMachineInstanceMigrationList. + + :param items: The items of this V1VirtualMachineInstanceMigrationList. + :type: list[V1VirtualMachineInstanceMigration] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1VirtualMachineInstanceMigrationList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + + :return: The kind of this V1VirtualMachineInstanceMigrationList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1VirtualMachineInstanceMigrationList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1VirtualMachineInstanceMigrationList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1VirtualMachineInstanceMigrationList. + + :return: The metadata of this V1VirtualMachineInstanceMigrationList. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1VirtualMachineInstanceMigrationList. + + :param metadata: The metadata of this V1VirtualMachineInstanceMigrationList. + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineInstanceMigrationList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_spec.py b/kubevirt/models/v1_virtual_machine_instance_migration_spec.py new file mode 100644 index 00000000..8f03dede --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_migration_spec.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineInstanceMigrationSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'vmi_name': 'str' + } + + attribute_map = { + 'vmi_name': 'vmiName' + } + + def __init__(self, vmi_name=None): + """ + V1VirtualMachineInstanceMigrationSpec - a model defined in Swagger + """ + + self._vmi_name = None + + if vmi_name is not None: + self.vmi_name = vmi_name + + @property + def vmi_name(self): + """ + Gets the vmi_name of this V1VirtualMachineInstanceMigrationSpec. + The name of the VMI to perform the migration on. VMI must exist in the migration objects namespace + + :return: The vmi_name of this V1VirtualMachineInstanceMigrationSpec. + :rtype: str + """ + return self._vmi_name + + @vmi_name.setter + def vmi_name(self, vmi_name): + """ + Sets the vmi_name of this V1VirtualMachineInstanceMigrationSpec. + The name of the VMI to perform the migration on. VMI must exist in the migration objects namespace + + :param vmi_name: The vmi_name of this V1VirtualMachineInstanceMigrationSpec. + :type: str + """ + + self._vmi_name = vmi_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineInstanceMigrationSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_status.py b/kubevirt/models/v1_virtual_machine_instance_migration_status.py new file mode 100644 index 00000000..80f4e402 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_migration_status.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineInstanceMigrationStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'phase': 'str' + } + + attribute_map = { + 'phase': 'phase' + } + + def __init__(self, phase=None): + """ + V1VirtualMachineInstanceMigrationStatus - a model defined in Swagger + """ + + self._phase = None + + if phase is not None: + self.phase = phase + + @property + def phase(self): + """ + Gets the phase of this V1VirtualMachineInstanceMigrationStatus. + + :return: The phase of this V1VirtualMachineInstanceMigrationStatus. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """ + Sets the phase of this V1VirtualMachineInstanceMigrationStatus. + + :param phase: The phase of this V1VirtualMachineInstanceMigrationStatus. + :type: str + """ + + self._phase = phase + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineInstanceMigrationStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_replica_set_condition.py b/kubevirt/models/v1_virtual_machine_instance_replica_set_condition.py index 767f736e..145398a4 100644 --- a/kubevirt/models/v1_virtual_machine_instance_replica_set_condition.py +++ b/kubevirt/models/v1_virtual_machine_instance_replica_set_condition.py @@ -31,8 +31,6 @@ class V1VirtualMachineInstanceReplicaSetCondition(object): and the value is json key in definition. """ swagger_types = { - 'last_probe_time': 'str', - 'last_transition_time': 'str', 'message': 'str', 'reason': 'str', 'status': 'str', @@ -40,30 +38,22 @@ class V1VirtualMachineInstanceReplicaSetCondition(object): } attribute_map = { - 'last_probe_time': 'lastProbeTime', - 'last_transition_time': 'lastTransitionTime', 'message': 'message', 'reason': 'reason', 'status': 'status', 'type': 'type' } - def __init__(self, last_probe_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None): + def __init__(self, message=None, reason=None, status=None, type=None): """ V1VirtualMachineInstanceReplicaSetCondition - a model defined in Swagger """ - self._last_probe_time = None - self._last_transition_time = None self._message = None self._reason = None self._status = None self._type = None - if last_probe_time is not None: - self.last_probe_time = last_probe_time - if last_transition_time is not None: - self.last_transition_time = last_transition_time if message is not None: self.message = message if reason is not None: @@ -71,48 +61,6 @@ def __init__(self, last_probe_time=None, last_transition_time=None, message=None self.status = status self.type = type - @property - def last_probe_time(self): - """ - Gets the last_probe_time of this V1VirtualMachineInstanceReplicaSetCondition. - - :return: The last_probe_time of this V1VirtualMachineInstanceReplicaSetCondition. - :rtype: str - """ - return self._last_probe_time - - @last_probe_time.setter - def last_probe_time(self, last_probe_time): - """ - Sets the last_probe_time of this V1VirtualMachineInstanceReplicaSetCondition. - - :param last_probe_time: The last_probe_time of this V1VirtualMachineInstanceReplicaSetCondition. - :type: str - """ - - self._last_probe_time = last_probe_time - - @property - def last_transition_time(self): - """ - Gets the last_transition_time of this V1VirtualMachineInstanceReplicaSetCondition. - - :return: The last_transition_time of this V1VirtualMachineInstanceReplicaSetCondition. - :rtype: str - """ - return self._last_transition_time - - @last_transition_time.setter - def last_transition_time(self, last_transition_time): - """ - Sets the last_transition_time of this V1VirtualMachineInstanceReplicaSetCondition. - - :param last_transition_time: The last_transition_time of this V1VirtualMachineInstanceReplicaSetCondition. - :type: str - """ - - self._last_transition_time = last_transition_time - @property def message(self): """ diff --git a/setup.py b/setup.py index d969fa8a..f28aa032 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.9.0-193-g852cb476" +VERSION = "v0.9.0-214-gc091ee42" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 9bc2e82d..6bd63cd5 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.9.0-193-g852cb476" +"packageVersion": "v0.9.0-214-gc091ee42" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 0db1d439..435a0ecc 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -63,6 +63,14 @@ def test_create_namespaced_virtual_machine_instance(self): """ pass + def test_create_namespaced_virtual_machine_instance_migration(self): + """ + Test case for create_namespaced_virtual_machine_instance_migration + + Create a VirtualMachineInstanceMigration object. + """ + pass + def test_create_namespaced_virtual_machine_instance_preset(self): """ Test case for create_namespaced_virtual_machine_instance_preset @@ -95,6 +103,14 @@ def test_delete_collection_namespaced_virtual_machine_instance(self): """ pass + def test_delete_collection_namespaced_virtual_machine_instance_migration(self): + """ + Test case for delete_collection_namespaced_virtual_machine_instance_migration + + Delete a collection of VirtualMachineInstanceMigration objects. + """ + pass + def test_delete_collection_namespaced_virtual_machine_instance_preset(self): """ Test case for delete_collection_namespaced_virtual_machine_instance_preset @@ -127,6 +143,14 @@ def test_delete_namespaced_virtual_machine_instance(self): """ pass + def test_delete_namespaced_virtual_machine_instance_migration(self): + """ + Test case for delete_namespaced_virtual_machine_instance_migration + + Delete a VirtualMachineInstanceMigration object. + """ + pass + def test_delete_namespaced_virtual_machine_instance_preset(self): """ Test case for delete_namespaced_virtual_machine_instance_preset @@ -199,6 +223,14 @@ def test_list_namespaced_virtual_machine_instance(self): """ pass + def test_list_namespaced_virtual_machine_instance_migration(self): + """ + Test case for list_namespaced_virtual_machine_instance_migration + + Get a list of VirtualMachineInstanceMigration objects. + """ + pass + def test_list_namespaced_virtual_machine_instance_preset(self): """ Test case for list_namespaced_virtual_machine_instance_preset @@ -231,6 +263,14 @@ def test_list_virtual_machine_instance_for_all_namespaces(self): """ pass + def test_list_virtual_machine_instance_migration_for_all_namespaces(self): + """ + Test case for list_virtual_machine_instance_migration_for_all_namespaces + + Get a list of all VirtualMachineInstanceMigration objects. + """ + pass + def test_list_virtual_machine_instance_preset_for_all_namespaces(self): """ Test case for list_virtual_machine_instance_preset_for_all_namespaces @@ -263,6 +303,14 @@ def test_patch_namespaced_virtual_machine_instance(self): """ pass + def test_patch_namespaced_virtual_machine_instance_migration(self): + """ + Test case for patch_namespaced_virtual_machine_instance_migration + + Patch a VirtualMachineInstanceMigration object. + """ + pass + def test_patch_namespaced_virtual_machine_instance_preset(self): """ Test case for patch_namespaced_virtual_machine_instance_preset @@ -295,6 +343,14 @@ def test_read_namespaced_virtual_machine_instance(self): """ pass + def test_read_namespaced_virtual_machine_instance_migration(self): + """ + Test case for read_namespaced_virtual_machine_instance_migration + + Get a VirtualMachineInstanceMigration object. + """ + pass + def test_read_namespaced_virtual_machine_instance_preset(self): """ Test case for read_namespaced_virtual_machine_instance_preset @@ -327,6 +383,14 @@ def test_replace_namespaced_virtual_machine_instance(self): """ pass + def test_replace_namespaced_virtual_machine_instance_migration(self): + """ + Test case for replace_namespaced_virtual_machine_instance_migration + + Update a VirtualMachineInstanceMigration object. + """ + pass + def test_replace_namespaced_virtual_machine_instance_preset(self): """ Test case for replace_namespaced_virtual_machine_instance_preset @@ -383,6 +447,14 @@ def test_watch_namespaced_virtual_machine_instance(self): """ pass + def test_watch_namespaced_virtual_machine_instance_migration(self): + """ + Test case for watch_namespaced_virtual_machine_instance_migration + + Watch a VirtualMachineInstanceMigration object. + """ + pass + def test_watch_namespaced_virtual_machine_instance_preset(self): """ Test case for watch_namespaced_virtual_machine_instance_preset @@ -407,6 +479,14 @@ def test_watch_virtual_machine_instance_list_for_all_namespaces(self): """ pass + def test_watch_virtual_machine_instance_migration_list_for_all_namespaces(self): + """ + Test case for watch_virtual_machine_instance_migration_list_for_all_namespaces + + Watch a VirtualMachineInstanceMigrationList object. + """ + pass + def test_watch_virtual_machine_instance_preset_list_for_all_namespaces(self): """ Test case for watch_virtual_machine_instance_preset_list_for_all_namespaces diff --git a/test/test_v1_virtual_machine_instance_migration.py b/test/test_v1_virtual_machine_instance_migration.py new file mode 100644 index 00000000..ac7d9a86 --- /dev/null +++ b/test/test_v1_virtual_machine_instance_migration.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_migration import V1VirtualMachineInstanceMigration + + +class TestV1VirtualMachineInstanceMigration(unittest.TestCase): + """ V1VirtualMachineInstanceMigration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceMigration(self): + """ + Test V1VirtualMachineInstanceMigration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_migration.V1VirtualMachineInstanceMigration() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_virtual_machine_instance_migration_list.py b/test/test_v1_virtual_machine_instance_migration_list.py new file mode 100644 index 00000000..3470f870 --- /dev/null +++ b/test/test_v1_virtual_machine_instance_migration_list.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_migration_list import V1VirtualMachineInstanceMigrationList + + +class TestV1VirtualMachineInstanceMigrationList(unittest.TestCase): + """ V1VirtualMachineInstanceMigrationList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceMigrationList(self): + """ + Test V1VirtualMachineInstanceMigrationList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_migration_list.V1VirtualMachineInstanceMigrationList() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_virtual_machine_instance_migration_spec.py b/test/test_v1_virtual_machine_instance_migration_spec.py new file mode 100644 index 00000000..1826a424 --- /dev/null +++ b/test/test_v1_virtual_machine_instance_migration_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_migration_spec import V1VirtualMachineInstanceMigrationSpec + + +class TestV1VirtualMachineInstanceMigrationSpec(unittest.TestCase): + """ V1VirtualMachineInstanceMigrationSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceMigrationSpec(self): + """ + Test V1VirtualMachineInstanceMigrationSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_migration_spec.V1VirtualMachineInstanceMigrationSpec() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_virtual_machine_instance_migration_status.py b/test/test_v1_virtual_machine_instance_migration_status.py new file mode 100644 index 00000000..78ed91fd --- /dev/null +++ b/test/test_v1_virtual_machine_instance_migration_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_migration_status import V1VirtualMachineInstanceMigrationStatus + + +class TestV1VirtualMachineInstanceMigrationStatus(unittest.TestCase): + """ V1VirtualMachineInstanceMigrationStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceMigrationStatus(self): + """ + Test V1VirtualMachineInstanceMigrationStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_migration_status.V1VirtualMachineInstanceMigrationStatus() + pass + + +if __name__ == '__main__': + unittest.main() From 6aa006f7ea1a5353317681168fdc3bc5b651b475 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 30 Oct 2018 12:56:22 +0000 Subject: [PATCH 064/521] Client Python update by Travis Build 5345 --- README.md | 2 +- ...1VirtualMachineInstanceNetworkInterface.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...tual_machine_instance_network_interface.py | 34 +++++++++++++++++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 38 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 4cc644d1..c70f6e5c 100644 --- a/README.md +++ b/README.md @@ -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: v0.9.0-214-gc091ee42 +- Package version: v0.9.0-223-gd8cd3d0f - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceNetworkInterface.md b/docs/V1VirtualMachineInstanceNetworkInterface.md index b65190ec..492e7e39 100644 --- a/docs/V1VirtualMachineInstanceNetworkInterface.md +++ b/docs/V1VirtualMachineInstanceNetworkInterface.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ip_address** | **str** | IP address of a Virtual Machine interface | [optional] **mac** | **str** | Hardware address of a Virtual Machine interface | [optional] +**name** | **str** | Name of the interface, corresponds to name of the network assigned to the interface | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 7b4d109e..94de0898 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.9.0-214-gc091ee42" + release_note="Auto-generated client v0.9.0-223-gd8cd3d0f" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 9791f30f..edbe3659 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.9.0-214-gc091ee42/python' + self.user_agent = 'Swagger-Codegen/v0.9.0-223-gd8cd3d0f/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 0582fb2b..04368498 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.9.0-214-gc091ee42".\ + "SDK Package Version: v0.9.0-223-gd8cd3d0f".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_network_interface.py b/kubevirt/models/v1_virtual_machine_instance_network_interface.py index 49843f7a..2226408c 100644 --- a/kubevirt/models/v1_virtual_machine_instance_network_interface.py +++ b/kubevirt/models/v1_virtual_machine_instance_network_interface.py @@ -32,26 +32,31 @@ class V1VirtualMachineInstanceNetworkInterface(object): """ swagger_types = { 'ip_address': 'str', - 'mac': 'str' + 'mac': 'str', + 'name': 'str' } attribute_map = { 'ip_address': 'ipAddress', - 'mac': 'mac' + 'mac': 'mac', + 'name': 'name' } - def __init__(self, ip_address=None, mac=None): + def __init__(self, ip_address=None, mac=None, name=None): """ V1VirtualMachineInstanceNetworkInterface - a model defined in Swagger """ self._ip_address = None self._mac = None + self._name = None if ip_address is not None: self.ip_address = ip_address if mac is not None: self.mac = mac + if name is not None: + self.name = name @property def ip_address(self): @@ -99,6 +104,29 @@ def mac(self, mac): self._mac = mac + @property + def name(self): + """ + Gets the name of this V1VirtualMachineInstanceNetworkInterface. + Name of the interface, corresponds to name of the network assigned to the interface + + :return: The name of this V1VirtualMachineInstanceNetworkInterface. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1VirtualMachineInstanceNetworkInterface. + Name of the interface, corresponds to name of the network assigned to the interface + + :param name: The name of this V1VirtualMachineInstanceNetworkInterface. + :type: str + """ + + self._name = name + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index f28aa032..501258c1 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.9.0-214-gc091ee42" +VERSION = "v0.9.0-223-gd8cd3d0f" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 6bd63cd5..43695688 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.9.0-214-gc091ee42" +"packageVersion": "v0.9.0-223-gd8cd3d0f" } From 33ba2cd45435e3209a0451896a0b76c73555a52d Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 15 Nov 2018 18:44:41 +0000 Subject: [PATCH 065/521] Client Python update by Travis Build 5496 --- README.md | 2 +- docs/V1Interface.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 24 ++++++++++++++++++++++++ kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_interface.py | 32 +++++++++++++++++++++++++++++--- setup.py | 2 +- swagger-codegen-config.json | 2 +- 9 files changed, 60 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index c70f6e5c..d71a629e 100644 --- a/README.md +++ b/README.md @@ -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: v0.9.0-223-gd8cd3d0f +- Package version: v0.10.0-34-g963153c7 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Interface.md b/docs/V1Interface.md index 95474b86..8ceb495e 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **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] **ports** | [**list[V1Port]**](V1Port.md) | List of ports to be forwarded to the virtual machine. | [optional] **slirp** | [**V1InterfaceSlirp**](V1InterfaceSlirp.md) | | [optional] +**sriov** | [**V1InterfaceSRIOV**](V1InterfaceSRIOV.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 94de0898..21b47c85 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.9.0-223-gd8cd3d0f" + release_note="Auto-generated client v0.10.0-34-g963153c7" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 734c635a..bb16a5bb 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -477,6 +477,30 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_group_1` [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_resources_0` [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index edbe3659..ec479547 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.9.0-223-gd8cd3d0f/python' + self.user_agent = 'Swagger-Codegen/v0.10.0-34-g963153c7/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 04368498..700c982b 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.9.0-223-gd8cd3d0f".\ + "SDK Package Version: v0.10.0-34-g963153c7".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_interface.py b/kubevirt/models/v1_interface.py index 37469b4c..493043ba 100644 --- a/kubevirt/models/v1_interface.py +++ b/kubevirt/models/v1_interface.py @@ -38,7 +38,8 @@ class V1Interface(object): 'name': 'str', 'pci_address': 'str', 'ports': 'list[V1Port]', - 'slirp': 'V1InterfaceSlirp' + 'slirp': 'V1InterfaceSlirp', + 'sriov': 'V1InterfaceSRIOV' } attribute_map = { @@ -49,10 +50,11 @@ class V1Interface(object): 'name': 'name', 'pci_address': 'pciAddress', 'ports': 'ports', - 'slirp': 'slirp' + 'slirp': 'slirp', + 'sriov': 'sriov' } - def __init__(self, boot_order=None, bridge=None, mac_address=None, model=None, name=None, pci_address=None, ports=None, slirp=None): + def __init__(self, boot_order=None, bridge=None, mac_address=None, model=None, name=None, pci_address=None, ports=None, slirp=None, sriov=None): """ V1Interface - a model defined in Swagger """ @@ -65,6 +67,7 @@ def __init__(self, boot_order=None, bridge=None, mac_address=None, model=None, n self._pci_address = None self._ports = None self._slirp = None + self._sriov = None if boot_order is not None: self.boot_order = boot_order @@ -81,6 +84,8 @@ def __init__(self, boot_order=None, bridge=None, mac_address=None, model=None, n self.ports = ports if slirp is not None: self.slirp = slirp + if sriov is not None: + self.sriov = sriov @property def boot_order(self): @@ -264,6 +269,27 @@ def slirp(self, slirp): self._slirp = slirp + @property + def sriov(self): + """ + Gets the sriov of this V1Interface. + + :return: The sriov of this V1Interface. + :rtype: V1InterfaceSRIOV + """ + return self._sriov + + @sriov.setter + def sriov(self, sriov): + """ + Sets the sriov of this V1Interface. + + :param sriov: The sriov of this V1Interface. + :type: V1InterfaceSRIOV + """ + + self._sriov = sriov + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 501258c1..90e3f4f9 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.9.0-223-gd8cd3d0f" +VERSION = "v0.10.0-34-g963153c7" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 43695688..25cd0a7f 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.9.0-223-gd8cd3d0f" +"packageVersion": "v0.10.0-34-g963153c7" } From 94de558653436d01bc5596aadc09ea901525c2f9 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 26 Nov 2018 16:57:47 +0000 Subject: [PATCH 066/521] Client Python update by Travis Build 5611 --- README.md | 3 +- docs/V1DHCPOptions.md | 11 +++ docs/V1Interface.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_dhcp_options.py | 153 +++++++++++++++++++++++++++++ kubevirt/models/v1_interface.py | 30 +++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_dhcp_options.py | 44 +++++++++ 14 files changed, 250 insertions(+), 7 deletions(-) create mode 100644 docs/V1DHCPOptions.md create mode 100644 kubevirt/models/v1_dhcp_options.py create mode 100644 test/test_v1_dhcp_options.py diff --git a/README.md b/README.md index d71a629e..3730844d 100644 --- a/README.md +++ b/README.md @@ -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: v0.10.0-34-g963153c7 +- Package version: v0.10.0-71-g1525c2db - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -149,6 +149,7 @@ Class | Method | HTTP request | Description - [V1CloudInitNoCloudSource](docs/V1CloudInitNoCloudSource.md) - [V1CniNetwork](docs/V1CniNetwork.md) - [V1ConfigMapVolumeSource](docs/V1ConfigMapVolumeSource.md) + - [V1DHCPOptions](docs/V1DHCPOptions.md) - [V1DataVolumeSource](docs/V1DataVolumeSource.md) - [V1DeleteOptions](docs/V1DeleteOptions.md) - [V1Devices](docs/V1Devices.md) diff --git a/docs/V1DHCPOptions.md b/docs/V1DHCPOptions.md new file mode 100644 index 00000000..91f3f195 --- /dev/null +++ b/docs/V1DHCPOptions.md @@ -0,0 +1,11 @@ +# V1DHCPOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**boot_file_name** | **str** | If specified will pass option 67 to interface's DHCP server +optional | [optional] +**tftp_server_name** | **str** | If specified will pass option 66 to interface's DHCP server +optional | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Interface.md b/docs/V1Interface.md index 8ceb495e..7e38c5c7 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **boot_order** | **int** | BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each interface or disk that has a boot order must have a unique value. Interfaces without a boot order are not tried. +optional | [optional] **bridge** | [**V1InterfaceBridge**](V1InterfaceBridge.md) | | [optional] +**dhcp_options** | [**V1DHCPOptions**](V1DHCPOptions.md) | If specified the network interface will pass additional DHCP options to the VMI +optional | [optional] **mac_address** | **str** | Interface MAC address. For example: de:ad:00:00:be:af or DE-AD-00-00-BE-AF. | [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. | diff --git a/git_push.sh b/git_push.sh index 21b47c85..1e2b5f79 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.10.0-34-g963153c7" + release_note="Auto-generated client v0.10.0-71-g1525c2db" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index bb16a5bb..026f19da 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -47,6 +47,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_config_map_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_config_map_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ConfigMapVolumeSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_dhcp_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_dhcp_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DHCPOptions.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_data_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_data_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DataVolumeSource.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index fa10b01a..76701418 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -26,6 +26,7 @@ from .models.v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource from .models.v1_cni_network import V1CniNetwork from .models.v1_config_map_volume_source import V1ConfigMapVolumeSource +from .models.v1_dhcp_options import V1DHCPOptions from .models.v1_data_volume_source import V1DataVolumeSource from .models.v1_delete_options import V1DeleteOptions from .models.v1_devices import V1Devices diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index ec479547..f6e65d36 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.10.0-34-g963153c7/python' + self.user_agent = 'Swagger-Codegen/v0.10.0-71-g1525c2db/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 700c982b..f2543000 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.10.0-34-g963153c7".\ + "SDK Package Version: v0.10.0-71-g1525c2db".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index bfe20fad..59fa335b 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -26,6 +26,7 @@ from .v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource from .v1_cni_network import V1CniNetwork from .v1_config_map_volume_source import V1ConfigMapVolumeSource +from .v1_dhcp_options import V1DHCPOptions from .v1_data_volume_source import V1DataVolumeSource from .v1_delete_options import V1DeleteOptions from .v1_devices import V1Devices diff --git a/kubevirt/models/v1_dhcp_options.py b/kubevirt/models/v1_dhcp_options.py new file mode 100644 index 00000000..41a8004e --- /dev/null +++ b/kubevirt/models/v1_dhcp_options.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DHCPOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'boot_file_name': 'str', + 'tftp_server_name': 'str' + } + + attribute_map = { + 'boot_file_name': 'bootFileName', + 'tftp_server_name': 'tftpServerName' + } + + def __init__(self, boot_file_name=None, tftp_server_name=None): + """ + V1DHCPOptions - a model defined in Swagger + """ + + self._boot_file_name = None + self._tftp_server_name = None + + if boot_file_name is not None: + self.boot_file_name = boot_file_name + if tftp_server_name is not None: + self.tftp_server_name = tftp_server_name + + @property + def boot_file_name(self): + """ + Gets the boot_file_name of this V1DHCPOptions. + If specified will pass option 67 to interface's DHCP server +optional + + :return: The boot_file_name of this V1DHCPOptions. + :rtype: str + """ + return self._boot_file_name + + @boot_file_name.setter + def boot_file_name(self, boot_file_name): + """ + Sets the boot_file_name of this V1DHCPOptions. + If specified will pass option 67 to interface's DHCP server +optional + + :param boot_file_name: The boot_file_name of this V1DHCPOptions. + :type: str + """ + + self._boot_file_name = boot_file_name + + @property + def tftp_server_name(self): + """ + Gets the tftp_server_name of this V1DHCPOptions. + If specified will pass option 66 to interface's DHCP server +optional + + :return: The tftp_server_name of this V1DHCPOptions. + :rtype: str + """ + return self._tftp_server_name + + @tftp_server_name.setter + def tftp_server_name(self, tftp_server_name): + """ + Sets the tftp_server_name of this V1DHCPOptions. + If specified will pass option 66 to interface's DHCP server +optional + + :param tftp_server_name: The tftp_server_name of this V1DHCPOptions. + :type: str + """ + + self._tftp_server_name = tftp_server_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1DHCPOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_interface.py b/kubevirt/models/v1_interface.py index 493043ba..ac5b10d9 100644 --- a/kubevirt/models/v1_interface.py +++ b/kubevirt/models/v1_interface.py @@ -33,6 +33,7 @@ class V1Interface(object): swagger_types = { 'boot_order': 'int', 'bridge': 'V1InterfaceBridge', + 'dhcp_options': 'V1DHCPOptions', 'mac_address': 'str', 'model': 'str', 'name': 'str', @@ -45,6 +46,7 @@ class V1Interface(object): attribute_map = { 'boot_order': 'bootOrder', 'bridge': 'bridge', + 'dhcp_options': 'dhcpOptions', 'mac_address': 'macAddress', 'model': 'model', 'name': 'name', @@ -54,13 +56,14 @@ class V1Interface(object): 'sriov': 'sriov' } - def __init__(self, boot_order=None, bridge=None, mac_address=None, model=None, name=None, pci_address=None, ports=None, slirp=None, sriov=None): + def __init__(self, boot_order=None, bridge=None, dhcp_options=None, mac_address=None, model=None, name=None, pci_address=None, ports=None, slirp=None, sriov=None): """ V1Interface - a model defined in Swagger """ self._boot_order = None self._bridge = None + self._dhcp_options = None self._mac_address = None self._model = None self._name = None @@ -73,6 +76,8 @@ def __init__(self, boot_order=None, bridge=None, mac_address=None, model=None, n self.boot_order = boot_order if bridge is not None: self.bridge = bridge + if dhcp_options is not None: + self.dhcp_options = dhcp_options if mac_address is not None: self.mac_address = mac_address if model is not None: @@ -131,6 +136,29 @@ def bridge(self, bridge): self._bridge = bridge + @property + def dhcp_options(self): + """ + Gets the dhcp_options of this V1Interface. + If specified the network interface will pass additional DHCP options to the VMI +optional + + :return: The dhcp_options of this V1Interface. + :rtype: V1DHCPOptions + """ + return self._dhcp_options + + @dhcp_options.setter + def dhcp_options(self, dhcp_options): + """ + Sets the dhcp_options of this V1Interface. + If specified the network interface will pass additional DHCP options to the VMI +optional + + :param dhcp_options: The dhcp_options of this V1Interface. + :type: V1DHCPOptions + """ + + self._dhcp_options = dhcp_options + @property def mac_address(self): """ diff --git a/setup.py b/setup.py index 90e3f4f9..af95eaaa 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.10.0-34-g963153c7" +VERSION = "v0.10.0-71-g1525c2db" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 25cd0a7f..b062f9f7 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.10.0-34-g963153c7" +"packageVersion": "v0.10.0-71-g1525c2db" } diff --git a/test/test_v1_dhcp_options.py b/test/test_v1_dhcp_options.py new file mode 100644 index 00000000..3245b144 --- /dev/null +++ b/test/test_v1_dhcp_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_dhcp_options import V1DHCPOptions + + +class TestV1DHCPOptions(unittest.TestCase): + """ V1DHCPOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DHCPOptions(self): + """ + Test V1DHCPOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_dhcp_options.V1DHCPOptions() + pass + + +if __name__ == '__main__': + unittest.main() From c7986e2f0a281cff26a423f2e22c9ac624500e24 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 27 Nov 2018 16:23:05 +0000 Subject: [PATCH 067/521] Client Python update by Travis Build 5631 --- README.md | 3 +- docs/DefaultApi.md | 53 +++++++++++++++++ git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 107 +++++++++++++++++++++++++++++++++++ kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 8 +++ 9 files changed, 175 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3730844d..439ffc42 100644 --- a/README.md +++ b/README.md @@ -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: v0.10.0-71-g1525c2db +- Package version: v0.10.0-81-gf6524e49 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -120,6 +120,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**replace_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Update a VirtualMachineInstanceMigration object. *DefaultApi* | [**replace_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Update a VirtualMachineInstancePreset object. *DefaultApi* | [**replace_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Update a VirtualMachineInstanceReplicaSet object. +*DefaultApi* | [**restart**](docs/DefaultApi.md#restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name}/restart | Restart a VM *DefaultApi* | [**test**](docs/DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/test | Test endpoint verifying apiserver connectivity. *DefaultApi* | [**version**](docs/DefaultApi.md#version) | **GET** /apis/subresources.kubevirt.io/v1alpha2/version | *DefaultApi* | [**vnc**](docs/DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/vnc | Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 3ffbbf60..ca88bf1d 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -51,6 +51,7 @@ Method | HTTP request | Description [**replace_namespaced_virtual_machine_instance_migration**](DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Update a VirtualMachineInstanceMigration object. [**replace_namespaced_virtual_machine_instance_preset**](DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Update a VirtualMachineInstancePreset object. [**replace_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Update a VirtualMachineInstanceReplicaSet object. +[**restart**](DefaultApi.md#restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name}/restart | Restart a VM [**test**](DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/test | Test endpoint verifying apiserver connectivity. [**version**](DefaultApi.md#version) | **GET** /apis/subresources.kubevirt.io/v1alpha2/version | [**vnc**](DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/vnc | Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. @@ -2789,6 +2790,58 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **restart** +> restart(namespace, name) + +Restart a VM + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +name = 'name_example' # str | Name of the resource + +try: + # Restart a VM + api_instance.restart(namespace, name) +except ApiException as e: + print("Exception when calling DefaultApi->restart: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **name** | **str**| Name of the resource | + +### Return type + +void (empty response body) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **test** > test(namespace, name) diff --git a/git_push.sh b/git_push.sh index 1e2b5f79..5b952eb4 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.10.0-71-g1525c2db" + release_note="Auto-generated client v0.10.0-81-gf6524e49" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index f6e65d36..6c2f5d8d 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.10.0-71-g1525c2db/python' + self.user_agent = 'Swagger-Codegen/v0.10.0-81-gf6524e49/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 79b897e3..fceb0d81 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -5673,6 +5673,113 @@ def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def restart(self, namespace, name, **kwargs): + """ + Restart a VM + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.restart(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.restart_with_http_info(namespace, name, **kwargs) + else: + (data) = self.restart_with_http_info(namespace, name, **kwargs) + return data + + def restart_with_http_info(self, namespace, name, **kwargs): + """ + Restart a VM + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.restart_with_http_info(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'name'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method restart" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `restart`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `restart`") + + if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): + raise ValueError("Invalid value for parameter `namespace` when calling `restart`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): + raise ValueError("Invalid value for parameter `name` when calling `restart`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name}/restart', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def test(self, namespace, name, **kwargs): """ Test endpoint verifying apiserver connectivity. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index f2543000..3f956f69 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.10.0-71-g1525c2db".\ + "SDK Package Version: v0.10.0-81-gf6524e49".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index af95eaaa..804638d0 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.10.0-71-g1525c2db" +VERSION = "v0.10.0-81-gf6524e49" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b062f9f7..32f8352f 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.10.0-71-g1525c2db" +"packageVersion": "v0.10.0-81-gf6524e49" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 435a0ecc..4e80b231 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -407,6 +407,14 @@ def test_replace_namespaced_virtual_machine_instance_replica_set(self): """ pass + def test_restart(self): + """ + Test case for restart + + Restart a VM + """ + pass + def test_test(self): """ Test case for test From da7f1ab61ac3a364360c9e262ffe48bf4579de99 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 28 Nov 2018 15:15:18 +0000 Subject: [PATCH 068/521] Client Python update by Travis Build 5656 --- README.md | 4 ++-- docs/DefaultApi.md | 6 +++--- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 4 ++-- kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 2 +- 9 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 439ffc42..8181b845 100644 --- a/README.md +++ b/README.md @@ -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: v0.10.0-81-gf6524e49 +- Package version: v0.10.0-85-g1a8234f1 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -120,7 +120,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**replace_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Update a VirtualMachineInstanceMigration object. *DefaultApi* | [**replace_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Update a VirtualMachineInstancePreset object. *DefaultApi* | [**replace_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Update a VirtualMachineInstanceReplicaSet object. -*DefaultApi* | [**restart**](docs/DefaultApi.md#restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name}/restart | Restart a VM +*DefaultApi* | [**restart**](docs/DefaultApi.md#restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name}/restart | Restart a VirtualMachine object. *DefaultApi* | [**test**](docs/DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/test | Test endpoint verifying apiserver connectivity. *DefaultApi* | [**version**](docs/DefaultApi.md#version) | **GET** /apis/subresources.kubevirt.io/v1alpha2/version | *DefaultApi* | [**vnc**](docs/DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/vnc | Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index ca88bf1d..ecd545d6 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -51,7 +51,7 @@ Method | HTTP request | Description [**replace_namespaced_virtual_machine_instance_migration**](DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Update a VirtualMachineInstanceMigration object. [**replace_namespaced_virtual_machine_instance_preset**](DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Update a VirtualMachineInstancePreset object. [**replace_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Update a VirtualMachineInstanceReplicaSet object. -[**restart**](DefaultApi.md#restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name}/restart | Restart a VM +[**restart**](DefaultApi.md#restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name}/restart | Restart a VirtualMachine object. [**test**](DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/test | Test endpoint verifying apiserver connectivity. [**version**](DefaultApi.md#version) | **GET** /apis/subresources.kubevirt.io/v1alpha2/version | [**vnc**](DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/vnc | Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. @@ -2793,7 +2793,7 @@ Name | Type | Description | Notes # **restart** > restart(namespace, name) -Restart a VM +Restart a VirtualMachine object. ### Example ```python @@ -2814,7 +2814,7 @@ namespace = 'namespace_example' # str | Object name and auth scope, such as for name = 'name_example' # str | Name of the resource try: - # Restart a VM + # Restart a VirtualMachine object. api_instance.restart(namespace, name) except ApiException as e: print("Exception when calling DefaultApi->restart: %s\n" % e) diff --git a/git_push.sh b/git_push.sh index 5b952eb4..4656046a 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.10.0-81-gf6524e49" + release_note="Auto-generated client v0.10.0-85-g1a8234f1" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 6c2f5d8d..bf937291 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.10.0-81-gf6524e49/python' + self.user_agent = 'Swagger-Codegen/v0.10.0-85-g1a8234f1/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index fceb0d81..9eaa409d 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -5675,7 +5675,7 @@ def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, def restart(self, namespace, name, **kwargs): """ - Restart a VM + Restart a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -5701,7 +5701,7 @@ def restart(self, namespace, name, **kwargs): def restart_with_http_info(self, namespace, name, **kwargs): """ - Restart a VM + Restart a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 3f956f69..aeb11505 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.10.0-81-gf6524e49".\ + "SDK Package Version: v0.10.0-85-g1a8234f1".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index 804638d0..eb6687b5 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.10.0-81-gf6524e49" +VERSION = "v0.10.0-85-g1a8234f1" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 32f8352f..7b1296ae 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.10.0-81-gf6524e49" +"packageVersion": "v0.10.0-85-g1a8234f1" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 4e80b231..69f933b7 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -411,7 +411,7 @@ def test_restart(self): """ Test case for restart - Restart a VM + Restart a VirtualMachine object. """ pass From ff4a41bd62a70b7baca18bf54aee2a06a43a32f6 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 28 Nov 2018 15:59:41 +0000 Subject: [PATCH 069/521] Client Python update by Travis Build 5657 --- README.md | 4 +- ...DiskSource.md => V1ContainerDiskSource.md} | 3 +- docs/V1Volume.md | 2 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 +- kubevirt/__init__.py | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 +- ..._source.py => v1_container_disk_source.py} | 56 +++++++++++++----- kubevirt/models/v1_volume.py | 58 +++++++++---------- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...ce.py => test_v1_container_disk_source.py} | 12 ++-- 14 files changed, 92 insertions(+), 63 deletions(-) rename docs/{V1RegistryDiskSource.md => V1ContainerDiskSource.md} (82%) rename kubevirt/models/{v1_registry_disk_source.py => v1_container_disk_source.py} (70%) rename test/{test_v1_registry_disk_source.py => test_v1_container_disk_source.py} (64%) diff --git a/README.md b/README.md index 8181b845..323cab57 100644 --- a/README.md +++ b/README.md @@ -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: v0.10.0-85-g1a8234f1 +- Package version: v0.10.0-91-gf39a06f7 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -150,6 +150,7 @@ Class | Method | HTTP request | Description - [V1CloudInitNoCloudSource](docs/V1CloudInitNoCloudSource.md) - [V1CniNetwork](docs/V1CniNetwork.md) - [V1ConfigMapVolumeSource](docs/V1ConfigMapVolumeSource.md) + - [V1ContainerDiskSource](docs/V1ContainerDiskSource.md) - [V1DHCPOptions](docs/V1DHCPOptions.md) - [V1DataVolumeSource](docs/V1DataVolumeSource.md) - [V1DeleteOptions](docs/V1DeleteOptions.md) @@ -202,7 +203,6 @@ Class | Method | HTTP request | Description - [V1Preconditions](docs/V1Preconditions.md) - [V1PreferredSchedulingTerm](docs/V1PreferredSchedulingTerm.md) - [V1RTCTimer](docs/V1RTCTimer.md) - - [V1RegistryDiskSource](docs/V1RegistryDiskSource.md) - [V1ResourceRequirements](docs/V1ResourceRequirements.md) - [V1SecretVolumeSource](docs/V1SecretVolumeSource.md) - [V1ServerAddressByClientCIDR](docs/V1ServerAddressByClientCIDR.md) diff --git a/docs/V1RegistryDiskSource.md b/docs/V1ContainerDiskSource.md similarity index 82% rename from docs/V1RegistryDiskSource.md rename to docs/V1ContainerDiskSource.md index 99b23ae3..362f1141 100644 --- a/docs/V1RegistryDiskSource.md +++ b/docs/V1ContainerDiskSource.md @@ -1,10 +1,11 @@ -# V1RegistryDiskSource +# V1ContainerDiskSource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **image** | **str** | Image is the name of the image with the embedded disk. | **image_pull_secret** | **str** | ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist. | [optional] +**path** | **str** | Path defines the path to disk file in the container | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Volume.md b/docs/V1Volume.md index e8e3db63..08706dfc 100644 --- a/docs/V1Volume.md +++ b/docs/V1Volume.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cloud_init_no_cloud** | [**V1CloudInitNoCloudSource**](V1CloudInitNoCloudSource.md) | CloudInitNoCloud represents a cloud-init NoCloud user-data source. The NoCloud data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html +optional | [optional] **config_map** | [**V1ConfigMapVolumeSource**](V1ConfigMapVolumeSource.md) | ConfigMapSource represents a reference to a ConfigMap in the same namespace. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/ +optional | [optional] +**container_disk** | [**V1ContainerDiskSource**](V1ContainerDiskSource.md) | ContainerDisk references a docker image, embedding a qcow or raw disk. More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html +optional | [optional] **data_volume** | [**V1DataVolumeSource**](V1DataVolumeSource.md) | DataVolume represents the dynamic creation a PVC for this volume as well as the process of populating that PVC with a disk image. +optional | [optional] **empty_disk** | [**V1EmptyDiskSource**](V1EmptyDiskSource.md) | EmptyDisk represents a temporary disk which shares the vmis lifecycle. More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html +optional | [optional] **ephemeral** | [**V1EphemeralVolumeSource**](V1EphemeralVolumeSource.md) | Ephemeral is a special volume source that \"wraps\" specified source and provides copy-on-write image on top of it. +optional | [optional] **host_disk** | [**V1HostDisk**](V1HostDisk.md) | HostDisk represents a disk created on the cluster level +optional | [optional] **name** | **str** | Volume's name. Must be a DNS_LABEL and unique within the vmi. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | **persistent_volume_claim** | [**V1PersistentVolumeClaimVolumeSource**](V1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims +optional | [optional] -**registry_disk** | [**V1RegistryDiskSource**](V1RegistryDiskSource.md) | RegistryDisk references a docker image, embedding a qcow or raw disk. More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html +optional | [optional] **secret** | [**V1SecretVolumeSource**](V1SecretVolumeSource.md) | SecretVolumeSource represents a reference to a secret data in the same namespace. More info: https://kubernetes.io/docs/concepts/configuration/secret/ +optional | [optional] **service_account** | [**V1ServiceAccountVolumeSource**](V1ServiceAccountVolumeSource.md) | ServiceAccountVolumeSource represents a reference to a service account. There can only be one volume of this type! More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ +optional | [optional] diff --git a/git_push.sh b/git_push.sh index 4656046a..d234020a 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.10.0-85-g1a8234f1" + release_note="Auto-generated client v0.10.0-91-gf39a06f7" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 026f19da..ebae278b 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -47,6 +47,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_config_map_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_config_map_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ConfigMapVolumeSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_container_disk_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_container_disk_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ContainerDiskSource.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_dhcp_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_dhcp_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DHCPOptions.md @@ -203,9 +206,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_rtc_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_rtc_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1RTCTimer.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_registry_disk_source.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_registry_disk_source.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1RegistryDiskSource.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_resource_requirements.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_resource_requirements.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ResourceRequirements.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 76701418..ac2c7cf4 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -26,6 +26,7 @@ from .models.v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource from .models.v1_cni_network import V1CniNetwork from .models.v1_config_map_volume_source import V1ConfigMapVolumeSource +from .models.v1_container_disk_source import V1ContainerDiskSource from .models.v1_dhcp_options import V1DHCPOptions from .models.v1_data_volume_source import V1DataVolumeSource from .models.v1_delete_options import V1DeleteOptions @@ -78,7 +79,6 @@ from .models.v1_preconditions import V1Preconditions from .models.v1_preferred_scheduling_term import V1PreferredSchedulingTerm from .models.v1_rtc_timer import V1RTCTimer -from .models.v1_registry_disk_source import V1RegistryDiskSource from .models.v1_resource_requirements import V1ResourceRequirements from .models.v1_secret_volume_source import V1SecretVolumeSource from .models.v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index bf937291..46258bdf 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.10.0-85-g1a8234f1/python' + self.user_agent = 'Swagger-Codegen/v0.10.0-91-gf39a06f7/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index aeb11505..626ee913 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.10.0-85-g1a8234f1".\ + "SDK Package Version: v0.10.0-91-gf39a06f7".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 59fa335b..65410813 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -26,6 +26,7 @@ from .v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource from .v1_cni_network import V1CniNetwork from .v1_config_map_volume_source import V1ConfigMapVolumeSource +from .v1_container_disk_source import V1ContainerDiskSource from .v1_dhcp_options import V1DHCPOptions from .v1_data_volume_source import V1DataVolumeSource from .v1_delete_options import V1DeleteOptions @@ -78,7 +79,6 @@ from .v1_preconditions import V1Preconditions from .v1_preferred_scheduling_term import V1PreferredSchedulingTerm from .v1_rtc_timer import V1RTCTimer -from .v1_registry_disk_source import V1RegistryDiskSource from .v1_resource_requirements import V1ResourceRequirements from .v1_secret_volume_source import V1SecretVolumeSource from .v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR diff --git a/kubevirt/models/v1_registry_disk_source.py b/kubevirt/models/v1_container_disk_source.py similarity index 70% rename from kubevirt/models/v1_registry_disk_source.py rename to kubevirt/models/v1_container_disk_source.py index 7d29e184..ec77e9d0 100644 --- a/kubevirt/models/v1_registry_disk_source.py +++ b/kubevirt/models/v1_container_disk_source.py @@ -16,7 +16,7 @@ import re -class V1RegistryDiskSource(object): +class V1ContainerDiskSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,33 +32,38 @@ class V1RegistryDiskSource(object): """ swagger_types = { 'image': 'str', - 'image_pull_secret': 'str' + 'image_pull_secret': 'str', + 'path': 'str' } attribute_map = { 'image': 'image', - 'image_pull_secret': 'imagePullSecret' + 'image_pull_secret': 'imagePullSecret', + 'path': 'path' } - def __init__(self, image=None, image_pull_secret=None): + def __init__(self, image=None, image_pull_secret=None, path=None): """ - V1RegistryDiskSource - a model defined in Swagger + V1ContainerDiskSource - a model defined in Swagger """ self._image = None self._image_pull_secret = None + self._path = None self.image = image if image_pull_secret is not None: self.image_pull_secret = image_pull_secret + if path is not None: + self.path = path @property def image(self): """ - Gets the image of this V1RegistryDiskSource. + Gets the image of this V1ContainerDiskSource. Image is the name of the image with the embedded disk. - :return: The image of this V1RegistryDiskSource. + :return: The image of this V1ContainerDiskSource. :rtype: str """ return self._image @@ -66,10 +71,10 @@ def image(self): @image.setter def image(self, image): """ - Sets the image of this V1RegistryDiskSource. + Sets the image of this V1ContainerDiskSource. Image is the name of the image with the embedded disk. - :param image: The image of this V1RegistryDiskSource. + :param image: The image of this V1ContainerDiskSource. :type: str """ if image is None: @@ -80,10 +85,10 @@ def image(self, image): @property def image_pull_secret(self): """ - Gets the image_pull_secret of this V1RegistryDiskSource. + Gets the image_pull_secret of this V1ContainerDiskSource. ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist. - :return: The image_pull_secret of this V1RegistryDiskSource. + :return: The image_pull_secret of this V1ContainerDiskSource. :rtype: str """ return self._image_pull_secret @@ -91,15 +96,38 @@ def image_pull_secret(self): @image_pull_secret.setter def image_pull_secret(self, image_pull_secret): """ - Sets the image_pull_secret of this V1RegistryDiskSource. + Sets the image_pull_secret of this V1ContainerDiskSource. ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist. - :param image_pull_secret: The image_pull_secret of this V1RegistryDiskSource. + :param image_pull_secret: The image_pull_secret of this V1ContainerDiskSource. :type: str """ self._image_pull_secret = image_pull_secret + @property + def path(self): + """ + Gets the path of this V1ContainerDiskSource. + Path defines the path to disk file in the container + + :return: The path of this V1ContainerDiskSource. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this V1ContainerDiskSource. + Path defines the path to disk file in the container + + :param path: The path of this V1ContainerDiskSource. + :type: str + """ + + self._path = path + def to_dict(self): """ Returns the model properties as a dict @@ -142,7 +170,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1RegistryDiskSource): + if not isinstance(other, V1ContainerDiskSource): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_volume.py b/kubevirt/models/v1_volume.py index 9792cf83..d496d2f3 100644 --- a/kubevirt/models/v1_volume.py +++ b/kubevirt/models/v1_volume.py @@ -33,13 +33,13 @@ class V1Volume(object): swagger_types = { 'cloud_init_no_cloud': 'V1CloudInitNoCloudSource', 'config_map': 'V1ConfigMapVolumeSource', + 'container_disk': 'V1ContainerDiskSource', 'data_volume': 'V1DataVolumeSource', 'empty_disk': 'V1EmptyDiskSource', 'ephemeral': 'V1EphemeralVolumeSource', 'host_disk': 'V1HostDisk', 'name': 'str', 'persistent_volume_claim': 'V1PersistentVolumeClaimVolumeSource', - 'registry_disk': 'V1RegistryDiskSource', 'secret': 'V1SecretVolumeSource', 'service_account': 'V1ServiceAccountVolumeSource' } @@ -47,31 +47,31 @@ class V1Volume(object): attribute_map = { 'cloud_init_no_cloud': 'cloudInitNoCloud', 'config_map': 'configMap', + 'container_disk': 'containerDisk', 'data_volume': 'dataVolume', 'empty_disk': 'emptyDisk', 'ephemeral': 'ephemeral', 'host_disk': 'hostDisk', 'name': 'name', 'persistent_volume_claim': 'persistentVolumeClaim', - 'registry_disk': 'registryDisk', 'secret': 'secret', 'service_account': 'serviceAccount' } - def __init__(self, cloud_init_no_cloud=None, config_map=None, data_volume=None, empty_disk=None, ephemeral=None, host_disk=None, name=None, persistent_volume_claim=None, registry_disk=None, secret=None, service_account=None): + def __init__(self, cloud_init_no_cloud=None, config_map=None, container_disk=None, data_volume=None, empty_disk=None, ephemeral=None, host_disk=None, name=None, persistent_volume_claim=None, secret=None, service_account=None): """ V1Volume - a model defined in Swagger """ self._cloud_init_no_cloud = None self._config_map = None + self._container_disk = None self._data_volume = None self._empty_disk = None self._ephemeral = None self._host_disk = None self._name = None self._persistent_volume_claim = None - self._registry_disk = None self._secret = None self._service_account = None @@ -79,6 +79,8 @@ def __init__(self, cloud_init_no_cloud=None, config_map=None, data_volume=None, self.cloud_init_no_cloud = cloud_init_no_cloud if config_map is not None: self.config_map = config_map + if container_disk is not None: + self.container_disk = container_disk if data_volume is not None: self.data_volume = data_volume if empty_disk is not None: @@ -90,8 +92,6 @@ def __init__(self, cloud_init_no_cloud=None, config_map=None, data_volume=None, self.name = name if persistent_volume_claim is not None: self.persistent_volume_claim = persistent_volume_claim - if registry_disk is not None: - self.registry_disk = registry_disk if secret is not None: self.secret = secret if service_account is not None: @@ -143,6 +143,29 @@ def config_map(self, config_map): self._config_map = config_map + @property + def container_disk(self): + """ + Gets the container_disk of this V1Volume. + ContainerDisk references a docker image, embedding a qcow or raw disk. More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html +optional + + :return: The container_disk of this V1Volume. + :rtype: V1ContainerDiskSource + """ + return self._container_disk + + @container_disk.setter + def container_disk(self, container_disk): + """ + Sets the container_disk of this V1Volume. + ContainerDisk references a docker image, embedding a qcow or raw disk. More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html +optional + + :param container_disk: The container_disk of this V1Volume. + :type: V1ContainerDiskSource + """ + + self._container_disk = container_disk + @property def data_volume(self): """ @@ -283,29 +306,6 @@ def persistent_volume_claim(self, persistent_volume_claim): self._persistent_volume_claim = persistent_volume_claim - @property - def registry_disk(self): - """ - Gets the registry_disk of this V1Volume. - RegistryDisk references a docker image, embedding a qcow or raw disk. More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html +optional - - :return: The registry_disk of this V1Volume. - :rtype: V1RegistryDiskSource - """ - return self._registry_disk - - @registry_disk.setter - def registry_disk(self, registry_disk): - """ - Sets the registry_disk of this V1Volume. - RegistryDisk references a docker image, embedding a qcow or raw disk. More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html +optional - - :param registry_disk: The registry_disk of this V1Volume. - :type: V1RegistryDiskSource - """ - - self._registry_disk = registry_disk - @property def secret(self): """ diff --git a/setup.py b/setup.py index eb6687b5..63d5e5a2 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.10.0-85-g1a8234f1" +VERSION = "v0.10.0-91-gf39a06f7" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 7b1296ae..8640a282 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.10.0-85-g1a8234f1" +"packageVersion": "v0.10.0-91-gf39a06f7" } diff --git a/test/test_v1_registry_disk_source.py b/test/test_v1_container_disk_source.py similarity index 64% rename from test/test_v1_registry_disk_source.py rename to test/test_v1_container_disk_source.py index 7d519f56..854d5a13 100644 --- a/test/test_v1_registry_disk_source.py +++ b/test/test_v1_container_disk_source.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_registry_disk_source import V1RegistryDiskSource +from kubevirt.models.v1_container_disk_source import V1ContainerDiskSource -class TestV1RegistryDiskSource(unittest.TestCase): - """ V1RegistryDiskSource unit test stubs """ +class TestV1ContainerDiskSource(unittest.TestCase): + """ V1ContainerDiskSource unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1RegistryDiskSource(self): + def testV1ContainerDiskSource(self): """ - Test V1RegistryDiskSource + Test V1ContainerDiskSource """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_registry_disk_source.V1RegistryDiskSource() + #model = kubevirt.models.v1_container_disk_source.V1ContainerDiskSource() pass From 4874c9d61b4ef2365f693dcc50eb71aba5be38ed Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 3 Dec 2018 12:34:35 +0000 Subject: [PATCH 070/521] Client Python update by Travis Build 5743 --- README.md | 6 +- docs/V1HTTPGetAction.md | 13 + docs/V1HTTPHeader.md | 11 + docs/V1Probe.md | 16 + docs/V1TCPSocketAction.md | 10 + docs/V1VirtualMachineInstanceSpec.md | 2 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 14 + kubevirt/__init__.py | 4 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 4 + kubevirt/models/v1_http_get_action.py | 209 +++++++++++++ kubevirt/models/v1_http_header.py | 155 +++++++++ kubevirt/models/v1_probe.py | 293 ++++++++++++++++++ kubevirt/models/v1_tcp_socket_action.py | 125 ++++++++ .../v1_virtual_machine_instance_spec.py | 58 +++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_http_get_action.py | 44 +++ test/test_v1_http_header.py | 44 +++ test/test_v1_probe.py | 44 +++ test/test_v1_tcp_socket_action.py | 44 +++ 23 files changed, 1099 insertions(+), 7 deletions(-) create mode 100644 docs/V1HTTPGetAction.md create mode 100644 docs/V1HTTPHeader.md create mode 100644 docs/V1Probe.md create mode 100644 docs/V1TCPSocketAction.md create mode 100644 kubevirt/models/v1_http_get_action.py create mode 100644 kubevirt/models/v1_http_header.py create mode 100644 kubevirt/models/v1_probe.py create mode 100644 kubevirt/models/v1_tcp_socket_action.py create mode 100644 test/test_v1_http_get_action.py create mode 100644 test/test_v1_http_header.py create mode 100644 test/test_v1_probe.py create mode 100644 test/test_v1_tcp_socket_action.py diff --git a/README.md b/README.md index 323cab57..ddc0359f 100644 --- a/README.md +++ b/README.md @@ -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: v0.10.0-91-gf39a06f7 +- Package version: v0.10.0-133-g70b8dbbe - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -170,6 +170,8 @@ Class | Method | HTTP request | Description - [V1FloppyTarget](docs/V1FloppyTarget.md) - [V1GroupVersionForDiscovery](docs/V1GroupVersionForDiscovery.md) - [V1HPETTimer](docs/V1HPETTimer.md) + - [V1HTTPGetAction](docs/V1HTTPGetAction.md) + - [V1HTTPHeader](docs/V1HTTPHeader.md) - [V1HostDisk](docs/V1HostDisk.md) - [V1Hugepages](docs/V1Hugepages.md) - [V1HypervTimer](docs/V1HypervTimer.md) @@ -202,6 +204,7 @@ Class | Method | HTTP request | Description - [V1Port](docs/V1Port.md) - [V1Preconditions](docs/V1Preconditions.md) - [V1PreferredSchedulingTerm](docs/V1PreferredSchedulingTerm.md) + - [V1Probe](docs/V1Probe.md) - [V1RTCTimer](docs/V1RTCTimer.md) - [V1ResourceRequirements](docs/V1ResourceRequirements.md) - [V1SecretVolumeSource](docs/V1SecretVolumeSource.md) @@ -210,6 +213,7 @@ Class | Method | HTTP request | Description - [V1Status](docs/V1Status.md) - [V1StatusCause](docs/V1StatusCause.md) - [V1StatusDetails](docs/V1StatusDetails.md) + - [V1TCPSocketAction](docs/V1TCPSocketAction.md) - [V1Timer](docs/V1Timer.md) - [V1Toleration](docs/V1Toleration.md) - [V1VirtualMachine](docs/V1VirtualMachine.md) diff --git a/docs/V1HTTPGetAction.md b/docs/V1HTTPGetAction.md new file mode 100644 index 00000000..6449a3c5 --- /dev/null +++ b/docs/V1HTTPGetAction.md @@ -0,0 +1,13 @@ +# V1HTTPGetAction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**host** | **str** | Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. | [optional] +**http_headers** | [**list[V1HTTPHeader]**](V1HTTPHeader.md) | Custom headers to set in the request. HTTP allows repeated headers. | [optional] +**path** | **str** | Path to access on the HTTP server. | [optional] +**scheme** | **str** | Scheme to use for connecting to the host. Defaults to HTTP. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1HTTPHeader.md b/docs/V1HTTPHeader.md new file mode 100644 index 00000000..1950451f --- /dev/null +++ b/docs/V1HTTPHeader.md @@ -0,0 +1,11 @@ +# V1HTTPHeader + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The header field name | +**value** | **str** | The header field value | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Probe.md b/docs/V1Probe.md new file mode 100644 index 00000000..ad3f7941 --- /dev/null +++ b/docs/V1Probe.md @@ -0,0 +1,16 @@ +# V1Probe + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**failure_threshold** | **int** | Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. +optional | [optional] +**http_get** | [**V1HTTPGetAction**](V1HTTPGetAction.md) | HTTPGet specifies the http request to perform. +optional | [optional] +**initial_delay_seconds** | **int** | Number of seconds after the VirtualMachineInstance has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional | [optional] +**period_seconds** | **int** | How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. +optional | [optional] +**success_threshold** | **int** | Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. +optional | [optional] +**tcp_socket** | [**V1TCPSocketAction**](V1TCPSocketAction.md) | TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported +optional | [optional] +**timeout_seconds** | **int** | Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1TCPSocketAction.md b/docs/V1TCPSocketAction.md new file mode 100644 index 00000000..e8a436b7 --- /dev/null +++ b/docs/V1TCPSocketAction.md @@ -0,0 +1,10 @@ +# V1TCPSocketAction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**host** | **str** | Optional: Host name to connect to, defaults to the pod IP. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceSpec.md b/docs/V1VirtualMachineInstanceSpec.md index 21fa8981..b70c9a6b 100644 --- a/docs/V1VirtualMachineInstanceSpec.md +++ b/docs/V1VirtualMachineInstanceSpec.md @@ -6,8 +6,10 @@ Name | Type | Description | Notes **affinity** | [**V1Affinity**](V1Affinity.md) | If affinity is specifies, obey all the affinity rules | [optional] **domain** | [**V1DomainSpec**](V1DomainSpec.md) | Specification of the desired behavior of the VirtualMachineInstance on the host. | **hostname** | **str** | Specifies the hostname of the vmi If not specified, the hostname will be set to the name of the vmi, if dhcp or cloud-init is configured properly. +optional | [optional] +**liveness_probe** | [**V1Probe**](V1Probe.md) | Periodic probe of VirtualMachineInstance liveness. VirtualmachineInstances will be stopped if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional | [optional] **networks** | [**list[V1Network]**](V1Network.md) | List of networks that can be attached to a vm's virtual interface. | [optional] **node_selector** | **object** | NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional | [optional] +**readiness_probe** | [**V1Probe**](V1Probe.md) | Periodic probe of VirtualMachineInstance service readiness. VirtualmachineInstances will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional | [optional] **subdomain** | **str** | If specified, the fully qualified vmi hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the vmi will not have a domainname at all. The DNS entry will resolve to the vmi, no matter if the vmi itself can pick up a hostname. +optional | [optional] **termination_grace_period_seconds** | **int** | Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. | [optional] **tolerations** | [**list[V1Toleration]**](V1Toleration.md) | If toleration is specified, obey all the toleration rules. | [optional] diff --git a/git_push.sh b/git_push.sh index d234020a..4d51e6b5 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.10.0-91-gf39a06f7" + release_note="Auto-generated client v0.10.0-133-g70b8dbbe" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index ebae278b..4e661d08 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -1,7 +1,9 @@ [main] INFO io.swagger.parser.Swagger20Parser - reading from /root/go/src/kubevirt.io/kubevirt/api/openapi-spec/swagger.json +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} @@ -107,6 +109,12 @@ 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_hpet_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_hpet_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1HPETTimer.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_http_get_action.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_http_get_action.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1HTTPGetAction.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_http_header.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_http_header.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1HTTPHeader.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_host_disk.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_host_disk.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1HostDisk.md @@ -203,6 +211,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_preferred_scheduling_term.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_preferred_scheduling_term.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PreferredSchedulingTerm.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_probe.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_probe.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Probe.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_rtc_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_rtc_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1RTCTimer.md @@ -227,6 +238,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_status_details.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_status_details.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1StatusDetails.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_tcp_socket_action.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_tcp_socket_action.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1TCPSocketAction.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Timer.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index ac2c7cf4..34b8cbc8 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -46,6 +46,8 @@ from .models.v1_floppy_target import V1FloppyTarget from .models.v1_group_version_for_discovery import V1GroupVersionForDiscovery from .models.v1_hpet_timer import V1HPETTimer +from .models.v1_http_get_action import V1HTTPGetAction +from .models.v1_http_header import V1HTTPHeader from .models.v1_host_disk import V1HostDisk from .models.v1_hugepages import V1Hugepages from .models.v1_hyperv_timer import V1HypervTimer @@ -78,6 +80,7 @@ from .models.v1_port import V1Port from .models.v1_preconditions import V1Preconditions from .models.v1_preferred_scheduling_term import V1PreferredSchedulingTerm +from .models.v1_probe import V1Probe from .models.v1_rtc_timer import V1RTCTimer from .models.v1_resource_requirements import V1ResourceRequirements from .models.v1_secret_volume_source import V1SecretVolumeSource @@ -86,6 +89,7 @@ from .models.v1_status import V1Status from .models.v1_status_cause import V1StatusCause from .models.v1_status_details import V1StatusDetails +from .models.v1_tcp_socket_action import V1TCPSocketAction from .models.v1_timer import V1Timer from .models.v1_toleration import V1Toleration from .models.v1_virtual_machine import V1VirtualMachine diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 46258bdf..a7e822c8 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.10.0-91-gf39a06f7/python' + self.user_agent = 'Swagger-Codegen/v0.10.0-133-g70b8dbbe/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 626ee913..bcbf7fbe 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.10.0-91-gf39a06f7".\ + "SDK Package Version: v0.10.0-133-g70b8dbbe".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 65410813..6bbe7bca 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -46,6 +46,8 @@ from .v1_floppy_target import V1FloppyTarget from .v1_group_version_for_discovery import V1GroupVersionForDiscovery from .v1_hpet_timer import V1HPETTimer +from .v1_http_get_action import V1HTTPGetAction +from .v1_http_header import V1HTTPHeader from .v1_host_disk import V1HostDisk from .v1_hugepages import V1Hugepages from .v1_hyperv_timer import V1HypervTimer @@ -78,6 +80,7 @@ from .v1_port import V1Port from .v1_preconditions import V1Preconditions from .v1_preferred_scheduling_term import V1PreferredSchedulingTerm +from .v1_probe import V1Probe from .v1_rtc_timer import V1RTCTimer from .v1_resource_requirements import V1ResourceRequirements from .v1_secret_volume_source import V1SecretVolumeSource @@ -86,6 +89,7 @@ from .v1_status import V1Status from .v1_status_cause import V1StatusCause from .v1_status_details import V1StatusDetails +from .v1_tcp_socket_action import V1TCPSocketAction from .v1_timer import V1Timer from .v1_toleration import V1Toleration from .v1_virtual_machine import V1VirtualMachine diff --git a/kubevirt/models/v1_http_get_action.py b/kubevirt/models/v1_http_get_action.py new file mode 100644 index 00000000..34d76c89 --- /dev/null +++ b/kubevirt/models/v1_http_get_action.py @@ -0,0 +1,209 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1HTTPGetAction(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'host': 'str', + 'http_headers': 'list[V1HTTPHeader]', + 'path': 'str', + 'scheme': 'str' + } + + attribute_map = { + 'host': 'host', + 'http_headers': 'httpHeaders', + 'path': 'path', + 'scheme': 'scheme' + } + + def __init__(self, host=None, http_headers=None, path=None, scheme=None): + """ + V1HTTPGetAction - a model defined in Swagger + """ + + self._host = None + self._http_headers = None + self._path = None + self._scheme = None + + if host is not None: + self.host = host + if http_headers is not None: + self.http_headers = http_headers + if path is not None: + self.path = path + if scheme is not None: + self.scheme = scheme + + @property + def host(self): + """ + Gets the host of this V1HTTPGetAction. + Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. + + :return: The host of this V1HTTPGetAction. + :rtype: str + """ + return self._host + + @host.setter + def host(self, host): + """ + Sets the host of this V1HTTPGetAction. + Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. + + :param host: The host of this V1HTTPGetAction. + :type: str + """ + + self._host = host + + @property + def http_headers(self): + """ + Gets the http_headers of this V1HTTPGetAction. + Custom headers to set in the request. HTTP allows repeated headers. + + :return: The http_headers of this V1HTTPGetAction. + :rtype: list[V1HTTPHeader] + """ + return self._http_headers + + @http_headers.setter + def http_headers(self, http_headers): + """ + Sets the http_headers of this V1HTTPGetAction. + Custom headers to set in the request. HTTP allows repeated headers. + + :param http_headers: The http_headers of this V1HTTPGetAction. + :type: list[V1HTTPHeader] + """ + + self._http_headers = http_headers + + @property + def path(self): + """ + Gets the path of this V1HTTPGetAction. + Path to access on the HTTP server. + + :return: The path of this V1HTTPGetAction. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this V1HTTPGetAction. + Path to access on the HTTP server. + + :param path: The path of this V1HTTPGetAction. + :type: str + """ + + self._path = path + + @property + def scheme(self): + """ + Gets the scheme of this V1HTTPGetAction. + Scheme to use for connecting to the host. Defaults to HTTP. + + :return: The scheme of this V1HTTPGetAction. + :rtype: str + """ + return self._scheme + + @scheme.setter + def scheme(self, scheme): + """ + Sets the scheme of this V1HTTPGetAction. + Scheme to use for connecting to the host. Defaults to HTTP. + + :param scheme: The scheme of this V1HTTPGetAction. + :type: str + """ + + self._scheme = scheme + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1HTTPGetAction): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_http_header.py b/kubevirt/models/v1_http_header.py new file mode 100644 index 00000000..06d5aa61 --- /dev/null +++ b/kubevirt/models/v1_http_header.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1HTTPHeader(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'value': 'str' + } + + attribute_map = { + 'name': 'name', + 'value': 'value' + } + + def __init__(self, name=None, value=None): + """ + V1HTTPHeader - a model defined in Swagger + """ + + self._name = None + self._value = None + + self.name = name + self.value = value + + @property + def name(self): + """ + Gets the name of this V1HTTPHeader. + The header field name + + :return: The name of this V1HTTPHeader. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1HTTPHeader. + The header field name + + :param name: The name of this V1HTTPHeader. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def value(self): + """ + Gets the value of this V1HTTPHeader. + The header field value + + :return: The value of this V1HTTPHeader. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this V1HTTPHeader. + The header field value + + :param value: The value of this V1HTTPHeader. + :type: str + """ + if value is None: + raise ValueError("Invalid value for `value`, must not be `None`") + + self._value = value + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1HTTPHeader): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_probe.py b/kubevirt/models/v1_probe.py new file mode 100644 index 00000000..26a0d801 --- /dev/null +++ b/kubevirt/models/v1_probe.py @@ -0,0 +1,293 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Probe(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'failure_threshold': 'int', + 'http_get': 'V1HTTPGetAction', + 'initial_delay_seconds': 'int', + 'period_seconds': 'int', + 'success_threshold': 'int', + 'tcp_socket': 'V1TCPSocketAction', + 'timeout_seconds': 'int' + } + + attribute_map = { + 'failure_threshold': 'failureThreshold', + 'http_get': 'httpGet', + 'initial_delay_seconds': 'initialDelaySeconds', + 'period_seconds': 'periodSeconds', + 'success_threshold': 'successThreshold', + 'tcp_socket': 'tcpSocket', + 'timeout_seconds': 'timeoutSeconds' + } + + def __init__(self, failure_threshold=None, http_get=None, initial_delay_seconds=None, period_seconds=None, success_threshold=None, tcp_socket=None, timeout_seconds=None): + """ + V1Probe - a model defined in Swagger + """ + + self._failure_threshold = None + self._http_get = None + self._initial_delay_seconds = None + self._period_seconds = None + self._success_threshold = None + self._tcp_socket = None + self._timeout_seconds = None + + if failure_threshold is not None: + self.failure_threshold = failure_threshold + if http_get is not None: + self.http_get = http_get + if initial_delay_seconds is not None: + self.initial_delay_seconds = initial_delay_seconds + if period_seconds is not None: + self.period_seconds = period_seconds + if success_threshold is not None: + self.success_threshold = success_threshold + if tcp_socket is not None: + self.tcp_socket = tcp_socket + if timeout_seconds is not None: + self.timeout_seconds = timeout_seconds + + @property + def failure_threshold(self): + """ + Gets the failure_threshold of this V1Probe. + Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. +optional + + :return: The failure_threshold of this V1Probe. + :rtype: int + """ + return self._failure_threshold + + @failure_threshold.setter + def failure_threshold(self, failure_threshold): + """ + Sets the failure_threshold of this V1Probe. + Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. +optional + + :param failure_threshold: The failure_threshold of this V1Probe. + :type: int + """ + + self._failure_threshold = failure_threshold + + @property + def http_get(self): + """ + Gets the http_get of this V1Probe. + HTTPGet specifies the http request to perform. +optional + + :return: The http_get of this V1Probe. + :rtype: V1HTTPGetAction + """ + return self._http_get + + @http_get.setter + def http_get(self, http_get): + """ + Sets the http_get of this V1Probe. + HTTPGet specifies the http request to perform. +optional + + :param http_get: The http_get of this V1Probe. + :type: V1HTTPGetAction + """ + + self._http_get = http_get + + @property + def initial_delay_seconds(self): + """ + Gets the initial_delay_seconds of this V1Probe. + Number of seconds after the VirtualMachineInstance has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional + + :return: The initial_delay_seconds of this V1Probe. + :rtype: int + """ + return self._initial_delay_seconds + + @initial_delay_seconds.setter + def initial_delay_seconds(self, initial_delay_seconds): + """ + Sets the initial_delay_seconds of this V1Probe. + Number of seconds after the VirtualMachineInstance has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional + + :param initial_delay_seconds: The initial_delay_seconds of this V1Probe. + :type: int + """ + + self._initial_delay_seconds = initial_delay_seconds + + @property + def period_seconds(self): + """ + Gets the period_seconds of this V1Probe. + How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. +optional + + :return: The period_seconds of this V1Probe. + :rtype: int + """ + return self._period_seconds + + @period_seconds.setter + def period_seconds(self, period_seconds): + """ + Sets the period_seconds of this V1Probe. + How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. +optional + + :param period_seconds: The period_seconds of this V1Probe. + :type: int + """ + + self._period_seconds = period_seconds + + @property + def success_threshold(self): + """ + Gets the success_threshold of this V1Probe. + Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. +optional + + :return: The success_threshold of this V1Probe. + :rtype: int + """ + return self._success_threshold + + @success_threshold.setter + def success_threshold(self, success_threshold): + """ + Sets the success_threshold of this V1Probe. + Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. +optional + + :param success_threshold: The success_threshold of this V1Probe. + :type: int + """ + + self._success_threshold = success_threshold + + @property + def tcp_socket(self): + """ + Gets the tcp_socket of this V1Probe. + TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported +optional + + :return: The tcp_socket of this V1Probe. + :rtype: V1TCPSocketAction + """ + return self._tcp_socket + + @tcp_socket.setter + def tcp_socket(self, tcp_socket): + """ + Sets the tcp_socket of this V1Probe. + TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported +optional + + :param tcp_socket: The tcp_socket of this V1Probe. + :type: V1TCPSocketAction + """ + + self._tcp_socket = tcp_socket + + @property + def timeout_seconds(self): + """ + Gets the timeout_seconds of this V1Probe. + Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional + + :return: The timeout_seconds of this V1Probe. + :rtype: int + """ + return self._timeout_seconds + + @timeout_seconds.setter + def timeout_seconds(self, timeout_seconds): + """ + Sets the timeout_seconds of this V1Probe. + Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional + + :param timeout_seconds: The timeout_seconds of this V1Probe. + :type: int + """ + + self._timeout_seconds = timeout_seconds + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1Probe): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_tcp_socket_action.py b/kubevirt/models/v1_tcp_socket_action.py new file mode 100644 index 00000000..8f74634c --- /dev/null +++ b/kubevirt/models/v1_tcp_socket_action.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1TCPSocketAction(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'host': 'str' + } + + attribute_map = { + 'host': 'host' + } + + def __init__(self, host=None): + """ + V1TCPSocketAction - a model defined in Swagger + """ + + self._host = None + + if host is not None: + self.host = host + + @property + def host(self): + """ + Gets the host of this V1TCPSocketAction. + Optional: Host name to connect to, defaults to the pod IP. + + :return: The host of this V1TCPSocketAction. + :rtype: str + """ + return self._host + + @host.setter + def host(self, host): + """ + Sets the host of this V1TCPSocketAction. + Optional: Host name to connect to, defaults to the pod IP. + + :param host: The host of this V1TCPSocketAction. + :type: str + """ + + self._host = host + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1TCPSocketAction): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_spec.py b/kubevirt/models/v1_virtual_machine_instance_spec.py index 569d3a78..2687f955 100644 --- a/kubevirt/models/v1_virtual_machine_instance_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_spec.py @@ -34,8 +34,10 @@ class V1VirtualMachineInstanceSpec(object): 'affinity': 'V1Affinity', 'domain': 'V1DomainSpec', 'hostname': 'str', + 'liveness_probe': 'V1Probe', 'networks': 'list[V1Network]', 'node_selector': 'object', + 'readiness_probe': 'V1Probe', 'subdomain': 'str', 'termination_grace_period_seconds': 'int', 'tolerations': 'list[V1Toleration]', @@ -46,15 +48,17 @@ class V1VirtualMachineInstanceSpec(object): 'affinity': 'affinity', 'domain': 'domain', 'hostname': 'hostname', + 'liveness_probe': 'livenessProbe', 'networks': 'networks', 'node_selector': 'nodeSelector', + 'readiness_probe': 'readinessProbe', 'subdomain': 'subdomain', 'termination_grace_period_seconds': 'terminationGracePeriodSeconds', 'tolerations': 'tolerations', 'volumes': 'volumes' } - def __init__(self, affinity=None, domain=None, hostname=None, networks=None, node_selector=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, volumes=None): + def __init__(self, affinity=None, domain=None, hostname=None, liveness_probe=None, networks=None, node_selector=None, readiness_probe=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, volumes=None): """ V1VirtualMachineInstanceSpec - a model defined in Swagger """ @@ -62,8 +66,10 @@ def __init__(self, affinity=None, domain=None, hostname=None, networks=None, nod self._affinity = None self._domain = None self._hostname = None + self._liveness_probe = None self._networks = None self._node_selector = None + self._readiness_probe = None self._subdomain = None self._termination_grace_period_seconds = None self._tolerations = None @@ -74,10 +80,14 @@ def __init__(self, affinity=None, domain=None, hostname=None, networks=None, nod self.domain = domain if hostname is not None: self.hostname = hostname + if liveness_probe is not None: + self.liveness_probe = liveness_probe if networks is not None: self.networks = networks if node_selector is not None: self.node_selector = node_selector + if readiness_probe is not None: + self.readiness_probe = readiness_probe if subdomain is not None: self.subdomain = subdomain if termination_grace_period_seconds is not None: @@ -158,6 +168,29 @@ def hostname(self, hostname): self._hostname = hostname + @property + def liveness_probe(self): + """ + Gets the liveness_probe of this V1VirtualMachineInstanceSpec. + Periodic probe of VirtualMachineInstance liveness. VirtualmachineInstances will be stopped if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional + + :return: The liveness_probe of this V1VirtualMachineInstanceSpec. + :rtype: V1Probe + """ + return self._liveness_probe + + @liveness_probe.setter + def liveness_probe(self, liveness_probe): + """ + Sets the liveness_probe of this V1VirtualMachineInstanceSpec. + Periodic probe of VirtualMachineInstance liveness. VirtualmachineInstances will be stopped if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional + + :param liveness_probe: The liveness_probe of this V1VirtualMachineInstanceSpec. + :type: V1Probe + """ + + self._liveness_probe = liveness_probe + @property def networks(self): """ @@ -204,6 +237,29 @@ def node_selector(self, node_selector): self._node_selector = node_selector + @property + def readiness_probe(self): + """ + Gets the readiness_probe of this V1VirtualMachineInstanceSpec. + Periodic probe of VirtualMachineInstance service readiness. VirtualmachineInstances will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional + + :return: The readiness_probe of this V1VirtualMachineInstanceSpec. + :rtype: V1Probe + """ + return self._readiness_probe + + @readiness_probe.setter + def readiness_probe(self, readiness_probe): + """ + Sets the readiness_probe of this V1VirtualMachineInstanceSpec. + Periodic probe of VirtualMachineInstance service readiness. VirtualmachineInstances will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional + + :param readiness_probe: The readiness_probe of this V1VirtualMachineInstanceSpec. + :type: V1Probe + """ + + self._readiness_probe = readiness_probe + @property def subdomain(self): """ diff --git a/setup.py b/setup.py index 63d5e5a2..119a93a0 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.10.0-91-gf39a06f7" +VERSION = "v0.10.0-133-g70b8dbbe" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 8640a282..0f31a39c 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.10.0-91-gf39a06f7" +"packageVersion": "v0.10.0-133-g70b8dbbe" } diff --git a/test/test_v1_http_get_action.py b/test/test_v1_http_get_action.py new file mode 100644 index 00000000..de0ec3dc --- /dev/null +++ b/test/test_v1_http_get_action.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_http_get_action import V1HTTPGetAction + + +class TestV1HTTPGetAction(unittest.TestCase): + """ V1HTTPGetAction unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1HTTPGetAction(self): + """ + Test V1HTTPGetAction + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_http_get_action.V1HTTPGetAction() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_http_header.py b/test/test_v1_http_header.py new file mode 100644 index 00000000..6f8aa691 --- /dev/null +++ b/test/test_v1_http_header.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_http_header import V1HTTPHeader + + +class TestV1HTTPHeader(unittest.TestCase): + """ V1HTTPHeader unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1HTTPHeader(self): + """ + Test V1HTTPHeader + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_http_header.V1HTTPHeader() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_probe.py b/test/test_v1_probe.py new file mode 100644 index 00000000..d0271788 --- /dev/null +++ b/test/test_v1_probe.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_probe import V1Probe + + +class TestV1Probe(unittest.TestCase): + """ V1Probe unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Probe(self): + """ + Test V1Probe + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_probe.V1Probe() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_tcp_socket_action.py b/test/test_v1_tcp_socket_action.py new file mode 100644 index 00000000..47ecff1a --- /dev/null +++ b/test/test_v1_tcp_socket_action.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_tcp_socket_action import V1TCPSocketAction + + +class TestV1TCPSocketAction(unittest.TestCase): + """ V1TCPSocketAction unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1TCPSocketAction(self): + """ + Test V1TCPSocketAction + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_tcp_socket_action.V1TCPSocketAction() + pass + + +if __name__ == '__main__': + unittest.main() From 643d3c4cc5c6fb89dadbaa331d49a2cdc917d698 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 4 Dec 2018 14:59:57 +0000 Subject: [PATCH 071/521] Client Python update by Travis Build 5786 --- README.md | 2 +- docs/V1CniNetwork.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_cni_network.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index ddc0359f..3cd77586 100644 --- a/README.md +++ b/README.md @@ -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: v0.10.0-133-g70b8dbbe +- Package version: v0.10.0-164-gcab02079 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1CniNetwork.md b/docs/V1CniNetwork.md index 2d668152..e4c71352 100644 --- a/docs/V1CniNetwork.md +++ b/docs/V1CniNetwork.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**network_name** | **str** | References to a NetworkAttachmentDefinition CRD object in the same namespace. In case of genie, it references the CNI plugin name. | +**network_name** | **str** | References to a NetworkAttachmentDefinition CRD object. Format: <networkName>, <namespace>/<networkName>. If namespace is not specified, VMI namespace is assumed. In case of genie, it references the CNI plugin name. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 4d51e6b5..38f7b04e 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.10.0-133-g70b8dbbe" + release_note="Auto-generated client v0.10.0-164-gcab02079" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index a7e822c8..6bb35b05 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.10.0-133-g70b8dbbe/python' + self.user_agent = 'Swagger-Codegen/v0.10.0-164-gcab02079/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index bcbf7fbe..cfafb3f6 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.10.0-133-g70b8dbbe".\ + "SDK Package Version: v0.10.0-164-gcab02079".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_cni_network.py b/kubevirt/models/v1_cni_network.py index e1e8042a..9a073e16 100644 --- a/kubevirt/models/v1_cni_network.py +++ b/kubevirt/models/v1_cni_network.py @@ -51,7 +51,7 @@ def __init__(self, network_name=None): def network_name(self): """ Gets the network_name of this V1CniNetwork. - References to a NetworkAttachmentDefinition CRD object in the same namespace. In case of genie, it references the CNI plugin name. + References to a NetworkAttachmentDefinition CRD object. Format: , /. If namespace is not specified, VMI namespace is assumed. In case of genie, it references the CNI plugin name. :return: The network_name of this V1CniNetwork. :rtype: str @@ -62,7 +62,7 @@ def network_name(self): def network_name(self, network_name): """ Sets the network_name of this V1CniNetwork. - References to a NetworkAttachmentDefinition CRD object in the same namespace. In case of genie, it references the CNI plugin name. + References to a NetworkAttachmentDefinition CRD object. Format: , /. If namespace is not specified, VMI namespace is assumed. In case of genie, it references the CNI plugin name. :param network_name: The network_name of this V1CniNetwork. :type: str diff --git a/setup.py b/setup.py index 119a93a0..9dc82a96 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.10.0-133-g70b8dbbe" +VERSION = "v0.10.0-164-gcab02079" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 0f31a39c..972605c9 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.10.0-133-g70b8dbbe" +"packageVersion": "v0.10.0-164-gcab02079" } From e23e025b67cc53d06a681f4661ed2b4524d6d24c Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 6 Dec 2018 14:41:46 +0000 Subject: [PATCH 072/521] Client Python update by Travis Build 5827 --- README.md | 2 +- docs/V1Interface.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 24 ++++++++++++++++++++++++ kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_interface.py | 28 +++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 9 files changed, 58 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 3cd77586..94eb234a 100644 --- a/README.md +++ b/README.md @@ -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: v0.10.0-164-gcab02079 +- Package version: v0.11.0-12-gc2220896 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Interface.md b/docs/V1Interface.md index 7e38c5c7..4640199d 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -7,6 +7,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 | [optional] **mac_address** | **str** | Interface MAC address. For example: de:ad:00:00:be:af or DE-AD-00-00-BE-AF. | [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. | **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] diff --git a/git_push.sh b/git_push.sh index 38f7b04e..8cd8e560 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.10.0-164-gcab02079" + release_note="Auto-generated client v0.11.0-12-gc2220896" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 4e661d08..8a1a2dea 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -518,6 +518,30 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_group_1` [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_resources_0` [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 6bb35b05..6870d5bf 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.10.0-164-gcab02079/python' + self.user_agent = 'Swagger-Codegen/v0.11.0-12-gc2220896/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index cfafb3f6..868d160e 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.10.0-164-gcab02079".\ + "SDK Package Version: v0.11.0-12-gc2220896".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_interface.py b/kubevirt/models/v1_interface.py index ac5b10d9..3743ecc3 100644 --- a/kubevirt/models/v1_interface.py +++ b/kubevirt/models/v1_interface.py @@ -35,6 +35,7 @@ class V1Interface(object): 'bridge': 'V1InterfaceBridge', 'dhcp_options': 'V1DHCPOptions', 'mac_address': 'str', + 'masquerade': 'V1InterfaceMasquerade', 'model': 'str', 'name': 'str', 'pci_address': 'str', @@ -48,6 +49,7 @@ class V1Interface(object): 'bridge': 'bridge', 'dhcp_options': 'dhcpOptions', 'mac_address': 'macAddress', + 'masquerade': 'masquerade', 'model': 'model', 'name': 'name', 'pci_address': 'pciAddress', @@ -56,7 +58,7 @@ class V1Interface(object): 'sriov': 'sriov' } - def __init__(self, boot_order=None, bridge=None, dhcp_options=None, mac_address=None, model=None, name=None, pci_address=None, ports=None, slirp=None, sriov=None): + def __init__(self, boot_order=None, bridge=None, dhcp_options=None, mac_address=None, masquerade=None, model=None, name=None, pci_address=None, ports=None, slirp=None, sriov=None): """ V1Interface - a model defined in Swagger """ @@ -65,6 +67,7 @@ def __init__(self, boot_order=None, bridge=None, dhcp_options=None, mac_address= self._bridge = None self._dhcp_options = None self._mac_address = None + self._masquerade = None self._model = None self._name = None self._pci_address = None @@ -80,6 +83,8 @@ def __init__(self, boot_order=None, bridge=None, dhcp_options=None, mac_address= self.dhcp_options = dhcp_options if mac_address is not None: self.mac_address = mac_address + if masquerade is not None: + self.masquerade = masquerade if model is not None: self.model = model self.name = name @@ -182,6 +187,27 @@ def mac_address(self, mac_address): self._mac_address = mac_address + @property + def masquerade(self): + """ + Gets the masquerade of this V1Interface. + + :return: The masquerade of this V1Interface. + :rtype: V1InterfaceMasquerade + """ + return self._masquerade + + @masquerade.setter + def masquerade(self, masquerade): + """ + Sets the masquerade of this V1Interface. + + :param masquerade: The masquerade of this V1Interface. + :type: V1InterfaceMasquerade + """ + + self._masquerade = masquerade + @property def model(self): """ diff --git a/setup.py b/setup.py index 9dc82a96..6a8e1f5e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.10.0-164-gcab02079" +VERSION = "v0.11.0-12-gc2220896" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 972605c9..08d6437c 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.10.0-164-gcab02079" +"packageVersion": "v0.11.0-12-gc2220896" } From cf47fce7ee749cd713f8be9b34baedbf2c17a683 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 7 Dec 2018 21:45:52 +0000 Subject: [PATCH 073/521] Client Python update by Travis Build 5857 --- README.md | 2 +- docs/V1CDRomTarget.md | 2 +- docs/V1DiskTarget.md | 2 +- docs/V1LunTarget.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_cd_rom_target.py | 4 ++-- kubevirt/models/v1_disk_target.py | 4 ++-- kubevirt/models/v1_lun_target.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 12 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 94eb234a..cfbb3e10 100644 --- a/README.md +++ b/README.md @@ -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: v0.11.0-12-gc2220896 +- Package version: v0.12.0-alpha.0-10-ge817c4f6 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1CDRomTarget.md b/docs/V1CDRomTarget.md index 48b3bab0..950a7813 100644 --- a/docs/V1CDRomTarget.md +++ b/docs/V1CDRomTarget.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bus** | **str** | Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, ide. | [optional] +**bus** | **str** | Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi. | [optional] **readonly** | **bool** | ReadOnly. Defaults to true. | [optional] **tray** | **str** | Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\". Defaults to closed. +optional | [optional] diff --git a/docs/V1DiskTarget.md b/docs/V1DiskTarget.md index ca3f993b..c78f93a5 100644 --- a/docs/V1DiskTarget.md +++ b/docs/V1DiskTarget.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bus** | **str** | Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, ide. | [optional] +**bus** | **str** | Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi. | [optional] **pci_address** | **str** | If specified, the virtual disk will be placed on the guests pci address with the specifed PCI address. For example: 0000:81:01.10 +optional | [optional] **readonly** | **bool** | ReadOnly. Defaults to false. | [optional] diff --git a/docs/V1LunTarget.md b/docs/V1LunTarget.md index cdcbeafd..1de0cfaf 100644 --- a/docs/V1LunTarget.md +++ b/docs/V1LunTarget.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bus** | **str** | Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, ide. | [optional] +**bus** | **str** | Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi. | [optional] **readonly** | **bool** | ReadOnly. Defaults to false. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 8cd8e560..4b1d62bf 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.11.0-12-gc2220896" + release_note="Auto-generated client v0.12.0-alpha.0-10-ge817c4f6" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 6870d5bf..7cf078c0 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.11.0-12-gc2220896/python' + self.user_agent = 'Swagger-Codegen/v0.12.0-alpha.0-10-ge817c4f6/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 868d160e..f224072d 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.11.0-12-gc2220896".\ + "SDK Package Version: v0.12.0-alpha.0-10-ge817c4f6".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_cd_rom_target.py b/kubevirt/models/v1_cd_rom_target.py index 7168a4b2..18a25cf3 100644 --- a/kubevirt/models/v1_cd_rom_target.py +++ b/kubevirt/models/v1_cd_rom_target.py @@ -62,7 +62,7 @@ def __init__(self, bus=None, readonly=None, tray=None): def bus(self): """ Gets the bus of this V1CDRomTarget. - Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, ide. + Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi. :return: The bus of this V1CDRomTarget. :rtype: str @@ -73,7 +73,7 @@ def bus(self): def bus(self, bus): """ Sets the bus of this V1CDRomTarget. - Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, ide. + Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi. :param bus: The bus of this V1CDRomTarget. :type: str diff --git a/kubevirt/models/v1_disk_target.py b/kubevirt/models/v1_disk_target.py index e97285f7..a9732b01 100644 --- a/kubevirt/models/v1_disk_target.py +++ b/kubevirt/models/v1_disk_target.py @@ -62,7 +62,7 @@ def __init__(self, bus=None, pci_address=None, readonly=None): def bus(self): """ Gets the bus of this V1DiskTarget. - Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, ide. + Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi. :return: The bus of this V1DiskTarget. :rtype: str @@ -73,7 +73,7 @@ def bus(self): def bus(self, bus): """ Sets the bus of this V1DiskTarget. - Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, ide. + Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi. :param bus: The bus of this V1DiskTarget. :type: str diff --git a/kubevirt/models/v1_lun_target.py b/kubevirt/models/v1_lun_target.py index 192b7011..a7d90995 100644 --- a/kubevirt/models/v1_lun_target.py +++ b/kubevirt/models/v1_lun_target.py @@ -57,7 +57,7 @@ def __init__(self, bus=None, readonly=None): def bus(self): """ Gets the bus of this V1LunTarget. - Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, ide. + Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi. :return: The bus of this V1LunTarget. :rtype: str @@ -68,7 +68,7 @@ def bus(self): def bus(self, bus): """ Sets the bus of this V1LunTarget. - Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, ide. + Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi. :param bus: The bus of this V1LunTarget. :type: str diff --git a/setup.py b/setup.py index 6a8e1f5e..aa14eec8 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.11.0-12-gc2220896" +VERSION = "v0.12.0-alpha.0-10-ge817c4f6" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 08d6437c..cf4dbed5 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.11.0-12-gc2220896" +"packageVersion": "v0.12.0-alpha.0-10-ge817c4f6" } From da48ad3e77de53a3be945a6a2cee5eac99ad536b Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 13 Dec 2018 08:50:47 +0000 Subject: [PATCH 074/521] Client Python update by Travis Build 5946 --- README.md | 4 ++-- docs/DefaultApi.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 2 +- kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index cfbb3e10..39cb5b83 100644 --- a/README.md +++ b/README.md @@ -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: v0.12.0-alpha.0-10-ge817c4f6 +- Package version: v0.12.0-alpha.0-47-gb10082b3 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -73,7 +73,7 @@ All URIs are relative to *https://localhost* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*DefaultApi* | [**check_health**](docs/DefaultApi.md#check_health) | **GET** /apis/kubevirt.io/v1alpha2/healthz | Health endpoint +*DefaultApi* | [**check_health**](docs/DefaultApi.md#check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha2/healthz | Health endpoint *DefaultApi* | [**console**](docs/DefaultApi.md#console) | **GET** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/console | Open a websocket connection to a serial console on the specified VirtualMachineInstance. *DefaultApi* | [**create_namespaced_virtual_machine**](docs/DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines | Create a VirtualMachine object. *DefaultApi* | [**create_namespaced_virtual_machine_instance**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances | Create a VirtualMachineInstance object. diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index ecd545d6..8f95d485 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -4,7 +4,7 @@ All URIs are relative to *https://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**check_health**](DefaultApi.md#check_health) | **GET** /apis/kubevirt.io/v1alpha2/healthz | Health endpoint +[**check_health**](DefaultApi.md#check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha2/healthz | Health endpoint [**console**](DefaultApi.md#console) | **GET** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/console | Open a websocket connection to a serial console on the specified VirtualMachineInstance. [**create_namespaced_virtual_machine**](DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines | Create a VirtualMachine object. [**create_namespaced_virtual_machine_instance**](DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances | Create a VirtualMachineInstance object. diff --git a/git_push.sh b/git_push.sh index 4b1d62bf..a8b2cb58 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.12.0-alpha.0-10-ge817c4f6" + release_note="Auto-generated client v0.12.0-alpha.0-47-gb10082b3" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 7cf078c0..2c09de19 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.12.0-alpha.0-10-ge817c4f6/python' + self.user_agent = 'Swagger-Codegen/v0.12.0-alpha.0-47-gb10082b3/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 9eaa409d..10223574 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -121,7 +121,7 @@ def check_health_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/healthz', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha2/healthz', 'GET', path_params, query_params, header_params, diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index f224072d..f1346c5d 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.12.0-alpha.0-10-ge817c4f6".\ + "SDK Package Version: v0.12.0-alpha.0-47-gb10082b3".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index aa14eec8..db44938c 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.12.0-alpha.0-10-ge817c4f6" +VERSION = "v0.12.0-alpha.0-47-gb10082b3" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index cf4dbed5..5c7f609e 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.12.0-alpha.0-10-ge817c4f6" +"packageVersion": "v0.12.0-alpha.0-47-gb10082b3" } From ebb9704dd8d480f71565f98b0c4d261e2e9d8f4d Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 17 Dec 2018 09:41:15 +0000 Subject: [PATCH 075/521] Client Python update by Travis Build 6000 --- README.md | 2 +- docs/V1HostDisk.md | 1 + docs/V1VirtualMachineInstanceStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_host_disk.py | 30 ++++++++++++++++++- .../v1_virtual_machine_instance_status.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 66 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 39cb5b83..48373a68 100644 --- a/README.md +++ b/README.md @@ -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: v0.12.0-alpha.0-47-gb10082b3 +- Package version: v0.12.0-alpha.1-28-gcd09f016 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1HostDisk.md b/docs/V1HostDisk.md index fcb5146f..b766d65d 100644 --- a/docs/V1HostDisk.md +++ b/docs/V1HostDisk.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **capacity** | **str** | Capacity of the sparse disk +optional | [optional] **path** | **str** | The path to HostDisk image located on the cluster | +**shared** | **bool** | Shared indicate whether the path is shared between nodes | [optional] **type** | **str** | Contains information if disk.img exists or should be created allowed options are 'Disk' and 'DiskOrCreate' | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index 7451bb1b..719d4976 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **conditions** | [**list[V1VirtualMachineInstanceCondition]**](V1VirtualMachineInstanceCondition.md) | Conditions are specific points in VirtualMachineInstance's pod runtime. | [optional] **interfaces** | [**list[V1VirtualMachineInstanceNetworkInterface]**](V1VirtualMachineInstanceNetworkInterface.md) | Interfaces represent the details of available network interfaces. | [optional] +**migration_method** | **str** | Represents the method using which the vmi can be migrated: live migration or block migration | [optional] **migration_state** | [**V1VirtualMachineInstanceMigrationState**](V1VirtualMachineInstanceMigrationState.md) | Represents the status of a live migration | [optional] **node_name** | **str** | NodeName is the name where the VirtualMachineInstance is currently running. | [optional] **phase** | **str** | Phase is the status of the VirtualMachineInstance in kubernetes world. It is not the VirtualMachineInstance status, but partially correlates to it. | [optional] diff --git a/git_push.sh b/git_push.sh index a8b2cb58..7ca2d711 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.12.0-alpha.0-47-gb10082b3" + release_note="Auto-generated client v0.12.0-alpha.1-28-gcd09f016" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 2c09de19..108b4fab 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.12.0-alpha.0-47-gb10082b3/python' + self.user_agent = 'Swagger-Codegen/v0.12.0-alpha.1-28-gcd09f016/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index f1346c5d..efff51e0 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.12.0-alpha.0-47-gb10082b3".\ + "SDK Package Version: v0.12.0-alpha.1-28-gcd09f016".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_host_disk.py b/kubevirt/models/v1_host_disk.py index 62e5b66c..90036159 100644 --- a/kubevirt/models/v1_host_disk.py +++ b/kubevirt/models/v1_host_disk.py @@ -33,27 +33,32 @@ class V1HostDisk(object): swagger_types = { 'capacity': 'str', 'path': 'str', + 'shared': 'bool', 'type': 'str' } attribute_map = { 'capacity': 'capacity', 'path': 'path', + 'shared': 'shared', 'type': 'type' } - def __init__(self, capacity=None, path=None, type=None): + def __init__(self, capacity=None, path=None, shared=None, type=None): """ V1HostDisk - a model defined in Swagger """ self._capacity = None self._path = None + self._shared = None self._type = None if capacity is not None: self.capacity = capacity self.path = path + if shared is not None: + self.shared = shared self.type = type @property @@ -104,6 +109,29 @@ def path(self, path): self._path = path + @property + def shared(self): + """ + Gets the shared of this V1HostDisk. + Shared indicate whether the path is shared between nodes + + :return: The shared of this V1HostDisk. + :rtype: bool + """ + return self._shared + + @shared.setter + def shared(self, shared): + """ + Sets the shared of this V1HostDisk. + Shared indicate whether the path is shared between nodes + + :param shared: The shared of this V1HostDisk. + :type: bool + """ + + self._shared = shared + @property def type(self): """ diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index 4cb29b4d..0e87b019 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -33,6 +33,7 @@ class V1VirtualMachineInstanceStatus(object): swagger_types = { 'conditions': 'list[V1VirtualMachineInstanceCondition]', 'interfaces': 'list[V1VirtualMachineInstanceNetworkInterface]', + 'migration_method': 'str', 'migration_state': 'V1VirtualMachineInstanceMigrationState', 'node_name': 'str', 'phase': 'str', @@ -42,19 +43,21 @@ class V1VirtualMachineInstanceStatus(object): attribute_map = { 'conditions': 'conditions', 'interfaces': 'interfaces', + 'migration_method': 'migrationMethod', 'migration_state': 'migrationState', 'node_name': 'nodeName', 'phase': 'phase', 'reason': 'reason' } - def __init__(self, conditions=None, interfaces=None, migration_state=None, node_name=None, phase=None, reason=None): + def __init__(self, conditions=None, interfaces=None, migration_method=None, migration_state=None, node_name=None, phase=None, reason=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ self._conditions = None self._interfaces = None + self._migration_method = None self._migration_state = None self._node_name = None self._phase = None @@ -64,6 +67,8 @@ def __init__(self, conditions=None, interfaces=None, migration_state=None, node_ self.conditions = conditions if interfaces is not None: self.interfaces = interfaces + if migration_method is not None: + self.migration_method = migration_method if migration_state is not None: self.migration_state = migration_state if node_name is not None: @@ -119,6 +124,29 @@ def interfaces(self, interfaces): self._interfaces = interfaces + @property + def migration_method(self): + """ + Gets the migration_method of this V1VirtualMachineInstanceStatus. + Represents the method using which the vmi can be migrated: live migration or block migration + + :return: The migration_method of this V1VirtualMachineInstanceStatus. + :rtype: str + """ + return self._migration_method + + @migration_method.setter + def migration_method(self, migration_method): + """ + Sets the migration_method of this V1VirtualMachineInstanceStatus. + Represents the method using which the vmi can be migrated: live migration or block migration + + :param migration_method: The migration_method of this V1VirtualMachineInstanceStatus. + :type: str + """ + + self._migration_method = migration_method + @property def migration_state(self): """ diff --git a/setup.py b/setup.py index db44938c..fc5c94cd 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.12.0-alpha.0-47-gb10082b3" +VERSION = "v0.12.0-alpha.1-28-gcd09f016" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 5c7f609e..3c3da080 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.12.0-alpha.0-47-gb10082b3" +"packageVersion": "v0.12.0-alpha.1-28-gcd09f016" } From eed4649c2cd2c97efdbb7e1d3499eb726ad30a9f Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 19 Dec 2018 22:53:21 +0000 Subject: [PATCH 076/521] Client Python update by Travis Build 6059 --- README.md | 2 +- ...1VirtualMachineInstanceNetworkInterface.md | 2 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...tual_machine_instance_network_interface.py | 58 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 65 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 48373a68..4a608c0b 100644 --- a/README.md +++ b/README.md @@ -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: v0.12.0-alpha.1-28-gcd09f016 +- Package version: v0.12.0-alpha.2-22-gb1884aa8 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceNetworkInterface.md b/docs/V1VirtualMachineInstanceNetworkInterface.md index 492e7e39..8ee7066e 100644 --- a/docs/V1VirtualMachineInstanceNetworkInterface.md +++ b/docs/V1VirtualMachineInstanceNetworkInterface.md @@ -3,7 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**interface_name** | **str** | The interface name inside the Virtual Machine | [optional] **ip_address** | **str** | IP address of a Virtual Machine interface | [optional] +**ip_addresses** | **list[str]** | List of all IP addresses of a Virtual Machine interface | [optional] **mac** | **str** | Hardware address of a Virtual Machine interface | [optional] **name** | **str** | Name of the interface, corresponds to name of the network assigned to the interface | [optional] diff --git a/git_push.sh b/git_push.sh index 7ca2d711..b44c57d3 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.12.0-alpha.1-28-gcd09f016" + release_note="Auto-generated client v0.12.0-alpha.2-22-gb1884aa8" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 108b4fab..f119a237 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.12.0-alpha.1-28-gcd09f016/python' + self.user_agent = 'Swagger-Codegen/v0.12.0-alpha.2-22-gb1884aa8/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index efff51e0..fa775c9d 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.12.0-alpha.1-28-gcd09f016".\ + "SDK Package Version: v0.12.0-alpha.2-22-gb1884aa8".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_network_interface.py b/kubevirt/models/v1_virtual_machine_instance_network_interface.py index 2226408c..a3da4556 100644 --- a/kubevirt/models/v1_virtual_machine_instance_network_interface.py +++ b/kubevirt/models/v1_virtual_machine_instance_network_interface.py @@ -31,33 +31,66 @@ class V1VirtualMachineInstanceNetworkInterface(object): and the value is json key in definition. """ swagger_types = { + 'interface_name': 'str', 'ip_address': 'str', + 'ip_addresses': 'list[str]', 'mac': 'str', 'name': 'str' } attribute_map = { + 'interface_name': 'interfaceName', 'ip_address': 'ipAddress', + 'ip_addresses': 'ipAddresses', 'mac': 'mac', 'name': 'name' } - def __init__(self, ip_address=None, mac=None, name=None): + def __init__(self, interface_name=None, ip_address=None, ip_addresses=None, mac=None, name=None): """ V1VirtualMachineInstanceNetworkInterface - a model defined in Swagger """ + self._interface_name = None self._ip_address = None + self._ip_addresses = None self._mac = None self._name = None + if interface_name is not None: + self.interface_name = interface_name if ip_address is not None: self.ip_address = ip_address + if ip_addresses is not None: + self.ip_addresses = ip_addresses if mac is not None: self.mac = mac if name is not None: self.name = name + @property + def interface_name(self): + """ + Gets the interface_name of this V1VirtualMachineInstanceNetworkInterface. + The interface name inside the Virtual Machine + + :return: The interface_name of this V1VirtualMachineInstanceNetworkInterface. + :rtype: str + """ + return self._interface_name + + @interface_name.setter + def interface_name(self, interface_name): + """ + Sets the interface_name of this V1VirtualMachineInstanceNetworkInterface. + The interface name inside the Virtual Machine + + :param interface_name: The interface_name of this V1VirtualMachineInstanceNetworkInterface. + :type: str + """ + + self._interface_name = interface_name + @property def ip_address(self): """ @@ -81,6 +114,29 @@ def ip_address(self, ip_address): self._ip_address = ip_address + @property + def ip_addresses(self): + """ + Gets the ip_addresses of this V1VirtualMachineInstanceNetworkInterface. + List of all IP addresses of a Virtual Machine interface + + :return: The ip_addresses of this V1VirtualMachineInstanceNetworkInterface. + :rtype: list[str] + """ + return self._ip_addresses + + @ip_addresses.setter + def ip_addresses(self, ip_addresses): + """ + Sets the ip_addresses of this V1VirtualMachineInstanceNetworkInterface. + List of all IP addresses of a Virtual Machine interface + + :param ip_addresses: The ip_addresses of this V1VirtualMachineInstanceNetworkInterface. + :type: list[str] + """ + + self._ip_addresses = ip_addresses + @property def mac(self): """ diff --git a/setup.py b/setup.py index fc5c94cd..c3b0b707 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.12.0-alpha.1-28-gcd09f016" +VERSION = "v0.12.0-alpha.2-22-gb1884aa8" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 3c3da080..0aa1d743 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.12.0-alpha.1-28-gcd09f016" +"packageVersion": "v0.12.0-alpha.2-22-gb1884aa8" } From 4323952a8c25fb94cd20a8c54d512520d8ee0bf0 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sun, 6 Jan 2019 14:52:06 +0000 Subject: [PATCH 077/521] Client Python update by Travis Build 6136 --- README.md | 3 +- docs/V1DHCPOptions.md | 1 + docs/V1alpha1DataVolumeSource.md | 2 + docs/V1alpha1DataVolumeSourceHTTP.md | 4 +- docs/V1alpha1DataVolumeSourceRegistry.md | 11 ++ docs/V1alpha1DataVolumeSourceS3.md | 4 +- docs/V1alpha1DataVolumeSpec.md | 4 +- docs/V1alpha1DataVolumeStatus.md | 2 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 9 ++ kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_dhcp_options.py | 30 +++- .../models/v1alpha1_data_volume_source.py | 54 ++++++- .../v1alpha1_data_volume_source_http.py | 4 + .../v1alpha1_data_volume_source_registry.py | 153 ++++++++++++++++++ .../models/v1alpha1_data_volume_source_s3.py | 4 + kubevirt/models/v1alpha1_data_volume_spec.py | 4 + .../models/v1alpha1_data_volume_status.py | 2 + setup.py | 2 +- swagger-codegen-config.json | 2 +- ...st_v1alpha1_data_volume_source_registry.py | 44 +++++ 24 files changed, 332 insertions(+), 15 deletions(-) create mode 100644 docs/V1alpha1DataVolumeSourceRegistry.md create mode 100644 kubevirt/models/v1alpha1_data_volume_source_registry.py create mode 100644 test/test_v1alpha1_data_volume_source_registry.py diff --git a/README.md b/README.md index 4a608c0b..1c4e0133 100644 --- a/README.md +++ b/README.md @@ -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: v0.12.0-alpha.2-22-gb1884aa8 +- Package version: v0.12.0-alpha.2-47-g387ee3d3 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -249,6 +249,7 @@ Class | Method | HTTP request | Description - [V1alpha1DataVolumeSource](docs/V1alpha1DataVolumeSource.md) - [V1alpha1DataVolumeSourceHTTP](docs/V1alpha1DataVolumeSourceHTTP.md) - [V1alpha1DataVolumeSourcePVC](docs/V1alpha1DataVolumeSourcePVC.md) + - [V1alpha1DataVolumeSourceRegistry](docs/V1alpha1DataVolumeSourceRegistry.md) - [V1alpha1DataVolumeSourceS3](docs/V1alpha1DataVolumeSourceS3.md) - [V1alpha1DataVolumeSpec](docs/V1alpha1DataVolumeSpec.md) - [V1alpha1DataVolumeStatus](docs/V1alpha1DataVolumeStatus.md) diff --git a/docs/V1DHCPOptions.md b/docs/V1DHCPOptions.md index 91f3f195..45587abb 100644 --- a/docs/V1DHCPOptions.md +++ b/docs/V1DHCPOptions.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **boot_file_name** | **str** | If specified will pass option 67 to interface's DHCP server +optional | [optional] +**ntp_servers** | **list[str]** | If specified will pass the configured NTP server to the VM via DHCP option 042. +optional | [optional] **tftp_server_name** | **str** | If specified will pass option 66 to interface's DHCP server +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1DataVolumeSource.md b/docs/V1alpha1DataVolumeSource.md index 13f5b973..e692ef50 100644 --- a/docs/V1alpha1DataVolumeSource.md +++ b/docs/V1alpha1DataVolumeSource.md @@ -3,8 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**blank** | [**V1alpha1DataVolumeBlankImage**](V1alpha1DataVolumeBlankImage.md) | | [optional] **http** | [**V1alpha1DataVolumeSourceHTTP**](V1alpha1DataVolumeSourceHTTP.md) | | [optional] **pvc** | [**V1alpha1DataVolumeSourcePVC**](V1alpha1DataVolumeSourcePVC.md) | | [optional] +**registry** | [**V1alpha1DataVolumeSourceRegistry**](V1alpha1DataVolumeSourceRegistry.md) | | [optional] **s3** | [**V1alpha1DataVolumeSourceS3**](V1alpha1DataVolumeSourceS3.md) | | [optional] **upload** | [**V1alpha1DataVolumeSourceUpload**](V1alpha1DataVolumeSourceUpload.md) | | [optional] diff --git a/docs/V1alpha1DataVolumeSourceHTTP.md b/docs/V1alpha1DataVolumeSourceHTTP.md index 482fb955..48e37f02 100644 --- a/docs/V1alpha1DataVolumeSourceHTTP.md +++ b/docs/V1alpha1DataVolumeSourceHTTP.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**secret_ref** | **str** | | [optional] -**url** | **str** | | [optional] +**secret_ref** | **str** | SecretRef provides the secret reference needed to access the HTTP source | [optional] +**url** | **str** | URL is the URL of the http source | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1DataVolumeSourceRegistry.md b/docs/V1alpha1DataVolumeSourceRegistry.md new file mode 100644 index 00000000..1361b1af --- /dev/null +++ b/docs/V1alpha1DataVolumeSourceRegistry.md @@ -0,0 +1,11 @@ +# V1alpha1DataVolumeSourceRegistry + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**secret_ref** | **str** | SecretRef provides the secret reference needed to access the Registry source | [optional] +**url** | **str** | URL is the url of the Registry source | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1DataVolumeSourceS3.md b/docs/V1alpha1DataVolumeSourceS3.md index 3d42c9fd..60987efc 100644 --- a/docs/V1alpha1DataVolumeSourceS3.md +++ b/docs/V1alpha1DataVolumeSourceS3.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**secret_ref** | **str** | | [optional] -**url** | **str** | | [optional] +**secret_ref** | **str** | SecretRef provides the secret reference needed to access the S3 source | [optional] +**url** | **str** | URL is the url of the S3 source | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1DataVolumeSpec.md b/docs/V1alpha1DataVolumeSpec.md index 70cab139..f69e2db4 100644 --- a/docs/V1alpha1DataVolumeSpec.md +++ b/docs/V1alpha1DataVolumeSpec.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**pvc** | [**V1PersistentVolumeClaimSpec**](V1PersistentVolumeClaimSpec.md) | | -**source** | [**V1alpha1DataVolumeSource**](V1alpha1DataVolumeSource.md) | | +**pvc** | [**V1PersistentVolumeClaimSpec**](V1PersistentVolumeClaimSpec.md) | PVC is a pointer to the PVC Spec we want to use | +**source** | [**V1alpha1DataVolumeSource**](V1alpha1DataVolumeSource.md) | Source is the src of the data for the requested DataVolume | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1DataVolumeStatus.md b/docs/V1alpha1DataVolumeStatus.md index 318d673b..e7a6b696 100644 --- a/docs/V1alpha1DataVolumeStatus.md +++ b/docs/V1alpha1DataVolumeStatus.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**phase** | **str** | | [optional] +**phase** | **str** | Phase is the current phase of the data volume | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index b44c57d3..0b40623f 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.12.0-alpha.2-22-gb1884aa8" + release_note="Auto-generated client v0.12.0-alpha.2-47-g387ee3d3" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 8a1a2dea..48b3ab19 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -346,6 +346,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/v1alpha1_data_volume_source_pvc.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_source_pvc.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSourcePVC.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_source_registry.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_source_registry.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSourceRegistry.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_source_s3.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_source_s3.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSourceS3.md @@ -542,6 +545,12 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_group_1` [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_resources_0` [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 34b8cbc8..795d24b4 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -125,6 +125,7 @@ from .models.v1alpha1_data_volume_source import V1alpha1DataVolumeSource from .models.v1alpha1_data_volume_source_http import V1alpha1DataVolumeSourceHTTP from .models.v1alpha1_data_volume_source_pvc import V1alpha1DataVolumeSourcePVC +from .models.v1alpha1_data_volume_source_registry import V1alpha1DataVolumeSourceRegistry from .models.v1alpha1_data_volume_source_s3 import V1alpha1DataVolumeSourceS3 from .models.v1alpha1_data_volume_spec import V1alpha1DataVolumeSpec from .models.v1alpha1_data_volume_status import V1alpha1DataVolumeStatus diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index f119a237..942f438a 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.12.0-alpha.2-22-gb1884aa8/python' + self.user_agent = 'Swagger-Codegen/v0.12.0-alpha.2-47-g387ee3d3/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index fa775c9d..ed48d03a 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.12.0-alpha.2-22-gb1884aa8".\ + "SDK Package Version: v0.12.0-alpha.2-47-g387ee3d3".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 6bbe7bca..1177688a 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -125,6 +125,7 @@ from .v1alpha1_data_volume_source import V1alpha1DataVolumeSource from .v1alpha1_data_volume_source_http import V1alpha1DataVolumeSourceHTTP from .v1alpha1_data_volume_source_pvc import V1alpha1DataVolumeSourcePVC +from .v1alpha1_data_volume_source_registry import V1alpha1DataVolumeSourceRegistry from .v1alpha1_data_volume_source_s3 import V1alpha1DataVolumeSourceS3 from .v1alpha1_data_volume_spec import V1alpha1DataVolumeSpec from .v1alpha1_data_volume_status import V1alpha1DataVolumeStatus diff --git a/kubevirt/models/v1_dhcp_options.py b/kubevirt/models/v1_dhcp_options.py index 41a8004e..318e4773 100644 --- a/kubevirt/models/v1_dhcp_options.py +++ b/kubevirt/models/v1_dhcp_options.py @@ -32,24 +32,29 @@ class V1DHCPOptions(object): """ swagger_types = { 'boot_file_name': 'str', + 'ntp_servers': 'list[str]', 'tftp_server_name': 'str' } attribute_map = { 'boot_file_name': 'bootFileName', + 'ntp_servers': 'ntpServers', 'tftp_server_name': 'tftpServerName' } - def __init__(self, boot_file_name=None, tftp_server_name=None): + def __init__(self, boot_file_name=None, ntp_servers=None, tftp_server_name=None): """ V1DHCPOptions - a model defined in Swagger """ self._boot_file_name = None + self._ntp_servers = None self._tftp_server_name = None if boot_file_name is not None: self.boot_file_name = boot_file_name + if ntp_servers is not None: + self.ntp_servers = ntp_servers if tftp_server_name is not None: self.tftp_server_name = tftp_server_name @@ -76,6 +81,29 @@ def boot_file_name(self, boot_file_name): self._boot_file_name = boot_file_name + @property + def ntp_servers(self): + """ + Gets the ntp_servers of this V1DHCPOptions. + If specified will pass the configured NTP server to the VM via DHCP option 042. +optional + + :return: The ntp_servers of this V1DHCPOptions. + :rtype: list[str] + """ + return self._ntp_servers + + @ntp_servers.setter + def ntp_servers(self, ntp_servers): + """ + Sets the ntp_servers of this V1DHCPOptions. + If specified will pass the configured NTP server to the VM via DHCP option 042. +optional + + :param ntp_servers: The ntp_servers of this V1DHCPOptions. + :type: list[str] + """ + + self._ntp_servers = ntp_servers + @property def tftp_server_name(self): """ diff --git a/kubevirt/models/v1alpha1_data_volume_source.py b/kubevirt/models/v1alpha1_data_volume_source.py index c52832fc..48698096 100644 --- a/kubevirt/models/v1alpha1_data_volume_source.py +++ b/kubevirt/models/v1alpha1_data_volume_source.py @@ -31,38 +31,69 @@ class V1alpha1DataVolumeSource(object): and the value is json key in definition. """ swagger_types = { + 'blank': 'V1alpha1DataVolumeBlankImage', 'http': 'V1alpha1DataVolumeSourceHTTP', 'pvc': 'V1alpha1DataVolumeSourcePVC', + 'registry': 'V1alpha1DataVolumeSourceRegistry', 's3': 'V1alpha1DataVolumeSourceS3', 'upload': 'V1alpha1DataVolumeSourceUpload' } attribute_map = { + 'blank': 'blank', 'http': 'http', 'pvc': 'pvc', + 'registry': 'registry', 's3': 's3', 'upload': 'upload' } - def __init__(self, http=None, pvc=None, s3=None, upload=None): + def __init__(self, blank=None, http=None, pvc=None, registry=None, s3=None, upload=None): """ V1alpha1DataVolumeSource - a model defined in Swagger """ + self._blank = None self._http = None self._pvc = None + self._registry = None self._s3 = None self._upload = None + if blank is not None: + self.blank = blank if http is not None: self.http = http if pvc is not None: self.pvc = pvc + if registry is not None: + self.registry = registry if s3 is not None: self.s3 = s3 if upload is not None: self.upload = upload + @property + def blank(self): + """ + Gets the blank of this V1alpha1DataVolumeSource. + + :return: The blank of this V1alpha1DataVolumeSource. + :rtype: V1alpha1DataVolumeBlankImage + """ + return self._blank + + @blank.setter + def blank(self, blank): + """ + Sets the blank of this V1alpha1DataVolumeSource. + + :param blank: The blank of this V1alpha1DataVolumeSource. + :type: V1alpha1DataVolumeBlankImage + """ + + self._blank = blank + @property def http(self): """ @@ -105,6 +136,27 @@ def pvc(self, pvc): self._pvc = pvc + @property + def registry(self): + """ + Gets the registry of this V1alpha1DataVolumeSource. + + :return: The registry of this V1alpha1DataVolumeSource. + :rtype: V1alpha1DataVolumeSourceRegistry + """ + return self._registry + + @registry.setter + def registry(self, registry): + """ + Sets the registry of this V1alpha1DataVolumeSource. + + :param registry: The registry of this V1alpha1DataVolumeSource. + :type: V1alpha1DataVolumeSourceRegistry + """ + + self._registry = registry + @property def s3(self): """ diff --git a/kubevirt/models/v1alpha1_data_volume_source_http.py b/kubevirt/models/v1alpha1_data_volume_source_http.py index c7f24c3e..914f1316 100644 --- a/kubevirt/models/v1alpha1_data_volume_source_http.py +++ b/kubevirt/models/v1alpha1_data_volume_source_http.py @@ -57,6 +57,7 @@ def __init__(self, secret_ref=None, url=None): def secret_ref(self): """ Gets the secret_ref of this V1alpha1DataVolumeSourceHTTP. + SecretRef provides the secret reference needed to access the HTTP source :return: The secret_ref of this V1alpha1DataVolumeSourceHTTP. :rtype: str @@ -67,6 +68,7 @@ def secret_ref(self): def secret_ref(self, secret_ref): """ Sets the secret_ref of this V1alpha1DataVolumeSourceHTTP. + SecretRef provides the secret reference needed to access the HTTP source :param secret_ref: The secret_ref of this V1alpha1DataVolumeSourceHTTP. :type: str @@ -78,6 +80,7 @@ def secret_ref(self, secret_ref): def url(self): """ Gets the url of this V1alpha1DataVolumeSourceHTTP. + URL is the URL of the http source :return: The url of this V1alpha1DataVolumeSourceHTTP. :rtype: str @@ -88,6 +91,7 @@ def url(self): def url(self, url): """ Sets the url of this V1alpha1DataVolumeSourceHTTP. + URL is the URL of the http source :param url: The url of this V1alpha1DataVolumeSourceHTTP. :type: str diff --git a/kubevirt/models/v1alpha1_data_volume_source_registry.py b/kubevirt/models/v1alpha1_data_volume_source_registry.py new file mode 100644 index 00000000..49d7587f --- /dev/null +++ b/kubevirt/models/v1alpha1_data_volume_source_registry.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1DataVolumeSourceRegistry(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'secret_ref': 'str', + 'url': 'str' + } + + attribute_map = { + 'secret_ref': 'secretRef', + 'url': 'url' + } + + def __init__(self, secret_ref=None, url=None): + """ + V1alpha1DataVolumeSourceRegistry - a model defined in Swagger + """ + + self._secret_ref = None + self._url = None + + if secret_ref is not None: + self.secret_ref = secret_ref + if url is not None: + self.url = url + + @property + def secret_ref(self): + """ + Gets the secret_ref of this V1alpha1DataVolumeSourceRegistry. + SecretRef provides the secret reference needed to access the Registry source + + :return: The secret_ref of this V1alpha1DataVolumeSourceRegistry. + :rtype: str + """ + return self._secret_ref + + @secret_ref.setter + def secret_ref(self, secret_ref): + """ + Sets the secret_ref of this V1alpha1DataVolumeSourceRegistry. + SecretRef provides the secret reference needed to access the Registry source + + :param secret_ref: The secret_ref of this V1alpha1DataVolumeSourceRegistry. + :type: str + """ + + self._secret_ref = secret_ref + + @property + def url(self): + """ + Gets the url of this V1alpha1DataVolumeSourceRegistry. + URL is the url of the Registry source + + :return: The url of this V1alpha1DataVolumeSourceRegistry. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """ + Sets the url of this V1alpha1DataVolumeSourceRegistry. + URL is the url of the Registry source + + :param url: The url of this V1alpha1DataVolumeSourceRegistry. + :type: str + """ + + self._url = url + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1DataVolumeSourceRegistry): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_data_volume_source_s3.py b/kubevirt/models/v1alpha1_data_volume_source_s3.py index 181b00d6..89a88195 100644 --- a/kubevirt/models/v1alpha1_data_volume_source_s3.py +++ b/kubevirt/models/v1alpha1_data_volume_source_s3.py @@ -57,6 +57,7 @@ def __init__(self, secret_ref=None, url=None): def secret_ref(self): """ Gets the secret_ref of this V1alpha1DataVolumeSourceS3. + SecretRef provides the secret reference needed to access the S3 source :return: The secret_ref of this V1alpha1DataVolumeSourceS3. :rtype: str @@ -67,6 +68,7 @@ def secret_ref(self): def secret_ref(self, secret_ref): """ Sets the secret_ref of this V1alpha1DataVolumeSourceS3. + SecretRef provides the secret reference needed to access the S3 source :param secret_ref: The secret_ref of this V1alpha1DataVolumeSourceS3. :type: str @@ -78,6 +80,7 @@ def secret_ref(self, secret_ref): def url(self): """ Gets the url of this V1alpha1DataVolumeSourceS3. + URL is the url of the S3 source :return: The url of this V1alpha1DataVolumeSourceS3. :rtype: str @@ -88,6 +91,7 @@ def url(self): def url(self, url): """ Sets the url of this V1alpha1DataVolumeSourceS3. + URL is the url of the S3 source :param url: The url of this V1alpha1DataVolumeSourceS3. :type: str diff --git a/kubevirt/models/v1alpha1_data_volume_spec.py b/kubevirt/models/v1alpha1_data_volume_spec.py index a425b42c..04938ff1 100644 --- a/kubevirt/models/v1alpha1_data_volume_spec.py +++ b/kubevirt/models/v1alpha1_data_volume_spec.py @@ -55,6 +55,7 @@ def __init__(self, pvc=None, source=None): def pvc(self): """ Gets the pvc of this V1alpha1DataVolumeSpec. + PVC is a pointer to the PVC Spec we want to use :return: The pvc of this V1alpha1DataVolumeSpec. :rtype: V1PersistentVolumeClaimSpec @@ -65,6 +66,7 @@ def pvc(self): def pvc(self, pvc): """ Sets the pvc of this V1alpha1DataVolumeSpec. + PVC is a pointer to the PVC Spec we want to use :param pvc: The pvc of this V1alpha1DataVolumeSpec. :type: V1PersistentVolumeClaimSpec @@ -78,6 +80,7 @@ def pvc(self, pvc): def source(self): """ Gets the source of this V1alpha1DataVolumeSpec. + Source is the src of the data for the requested DataVolume :return: The source of this V1alpha1DataVolumeSpec. :rtype: V1alpha1DataVolumeSource @@ -88,6 +91,7 @@ def source(self): def source(self, source): """ Sets the source of this V1alpha1DataVolumeSpec. + Source is the src of the data for the requested DataVolume :param source: The source of this V1alpha1DataVolumeSpec. :type: V1alpha1DataVolumeSource diff --git a/kubevirt/models/v1alpha1_data_volume_status.py b/kubevirt/models/v1alpha1_data_volume_status.py index bc7efb72..36e38689 100644 --- a/kubevirt/models/v1alpha1_data_volume_status.py +++ b/kubevirt/models/v1alpha1_data_volume_status.py @@ -52,6 +52,7 @@ def __init__(self, phase=None): def phase(self): """ Gets the phase of this V1alpha1DataVolumeStatus. + Phase is the current phase of the data volume :return: The phase of this V1alpha1DataVolumeStatus. :rtype: str @@ -62,6 +63,7 @@ def phase(self): def phase(self, phase): """ Sets the phase of this V1alpha1DataVolumeStatus. + Phase is the current phase of the data volume :param phase: The phase of this V1alpha1DataVolumeStatus. :type: str diff --git a/setup.py b/setup.py index c3b0b707..00773cfb 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.12.0-alpha.2-22-gb1884aa8" +VERSION = "v0.12.0-alpha.2-47-g387ee3d3" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 0aa1d743..5839fe07 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.12.0-alpha.2-22-gb1884aa8" +"packageVersion": "v0.12.0-alpha.2-47-g387ee3d3" } diff --git a/test/test_v1alpha1_data_volume_source_registry.py b/test/test_v1alpha1_data_volume_source_registry.py new file mode 100644 index 00000000..feb125c1 --- /dev/null +++ b/test/test_v1alpha1_data_volume_source_registry.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_data_volume_source_registry import V1alpha1DataVolumeSourceRegistry + + +class TestV1alpha1DataVolumeSourceRegistry(unittest.TestCase): + """ V1alpha1DataVolumeSourceRegistry unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1DataVolumeSourceRegistry(self): + """ + Test V1alpha1DataVolumeSourceRegistry + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_data_volume_source_registry.V1alpha1DataVolumeSourceRegistry() + pass + + +if __name__ == '__main__': + unittest.main() From c6b14b4f25aa14702fe1c7c0eb2f89eae86c8a8d Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 8 Jan 2019 10:14:05 +0000 Subject: [PATCH 078/521] Client Python update by Travis Build 6163 --- README.md | 2 +- ...1VirtualMachineInstanceReplicaSetStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...ual_machine_instance_replica_set_status.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 1c4e0133..1cbecb25 100644 --- a/README.md +++ b/README.md @@ -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: v0.12.0-alpha.2-47-g387ee3d3 +- Package version: v0.12.0-alpha.2-58-ga99d0435 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceReplicaSetStatus.md b/docs/V1VirtualMachineInstanceReplicaSetStatus.md index 6dab1459..db932f41 100644 --- a/docs/V1VirtualMachineInstanceReplicaSetStatus.md +++ b/docs/V1VirtualMachineInstanceReplicaSetStatus.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **conditions** | [**list[V1VirtualMachineInstanceReplicaSetCondition]**](V1VirtualMachineInstanceReplicaSetCondition.md) | | [optional] +**label_selector** | **str** | Canonical form of the label selector for HPA which consumes it through the scale subresource. | [optional] **ready_replicas** | **int** | The number of ready replicas for this replica set. +optional | [optional] **replicas** | **int** | Total number of non-terminated pods targeted by this deployment (their labels match the selector). +optional | [optional] diff --git a/git_push.sh b/git_push.sh index 0b40623f..9446f763 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.12.0-alpha.2-47-g387ee3d3" + release_note="Auto-generated client v0.12.0-alpha.2-58-ga99d0435" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 942f438a..17642295 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.12.0-alpha.2-47-g387ee3d3/python' + self.user_agent = 'Swagger-Codegen/v0.12.0-alpha.2-58-ga99d0435/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index ed48d03a..35651251 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.12.0-alpha.2-47-g387ee3d3".\ + "SDK Package Version: v0.12.0-alpha.2-58-ga99d0435".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_replica_set_status.py b/kubevirt/models/v1_virtual_machine_instance_replica_set_status.py index 540accb4..1872d375 100644 --- a/kubevirt/models/v1_virtual_machine_instance_replica_set_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_replica_set_status.py @@ -32,27 +32,32 @@ class V1VirtualMachineInstanceReplicaSetStatus(object): """ swagger_types = { 'conditions': 'list[V1VirtualMachineInstanceReplicaSetCondition]', + 'label_selector': 'str', 'ready_replicas': 'int', 'replicas': 'int' } attribute_map = { 'conditions': 'conditions', + 'label_selector': 'labelSelector', 'ready_replicas': 'readyReplicas', 'replicas': 'replicas' } - def __init__(self, conditions=None, ready_replicas=None, replicas=None): + def __init__(self, conditions=None, label_selector=None, ready_replicas=None, replicas=None): """ V1VirtualMachineInstanceReplicaSetStatus - a model defined in Swagger """ self._conditions = None + self._label_selector = None self._ready_replicas = None self._replicas = None if conditions is not None: self.conditions = conditions + if label_selector is not None: + self.label_selector = label_selector if ready_replicas is not None: self.ready_replicas = ready_replicas if replicas is not None: @@ -79,6 +84,29 @@ def conditions(self, conditions): self._conditions = conditions + @property + def label_selector(self): + """ + Gets the label_selector of this V1VirtualMachineInstanceReplicaSetStatus. + Canonical form of the label selector for HPA which consumes it through the scale subresource. + + :return: The label_selector of this V1VirtualMachineInstanceReplicaSetStatus. + :rtype: str + """ + return self._label_selector + + @label_selector.setter + def label_selector(self, label_selector): + """ + Sets the label_selector of this V1VirtualMachineInstanceReplicaSetStatus. + Canonical form of the label selector for HPA which consumes it through the scale subresource. + + :param label_selector: The label_selector of this V1VirtualMachineInstanceReplicaSetStatus. + :type: str + """ + + self._label_selector = label_selector + @property def ready_replicas(self): """ diff --git a/setup.py b/setup.py index 00773cfb..25f439df 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.12.0-alpha.2-47-g387ee3d3" +VERSION = "v0.12.0-alpha.2-58-ga99d0435" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 5839fe07..a7dde54d 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.12.0-alpha.2-47-g387ee3d3" +"packageVersion": "v0.12.0-alpha.2-58-ga99d0435" } From de35cab46fa04a4258bba2b24a824d80e509466f Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 8 Jan 2019 22:36:14 +0000 Subject: [PATCH 079/521] Client Python update by Travis Build 6175 --- README.md | 2 +- docs/V1CPU.md | 2 ++ git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_cpu.py | 62 +++++++++++++++++++++++++++++++++++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 67 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 1cbecb25..f895d78b 100644 --- a/README.md +++ b/README.md @@ -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: v0.12.0-alpha.2-58-ga99d0435 +- Package version: v0.12.0-alpha.2-66-gd7e17e60 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1CPU.md b/docs/V1CPU.md index 88343d43..a48f86a6 100644 --- a/docs/V1CPU.md +++ b/docs/V1CPU.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes **cores** | **int** | Cores specifies the number of cores inside the vmi. Must be a value greater or equal 1. | [optional] **dedicated_cpu_placement** | **bool** | DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. +optional | [optional] **model** | **str** | Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/blob/master/src/cpu/cpu_map.xml. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. For more information see https://libvirt.org/formatdomain.html#elementsCPU. Defaults to host-model. +optional | [optional] +**sockets** | **int** | Sockets specifies the number of sockets inside the vmi. Must be a value greater or equal 1. | [optional] +**threads** | **int** | Threads specifies the number of threads inside the vmi. Must be a value greater or equal 1. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 9446f763..5b416203 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.12.0-alpha.2-58-ga99d0435" + release_note="Auto-generated client v0.12.0-alpha.2-66-gd7e17e60" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 17642295..6d2182c0 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.12.0-alpha.2-58-ga99d0435/python' + self.user_agent = 'Swagger-Codegen/v0.12.0-alpha.2-66-gd7e17e60/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 35651251..7aa1121b 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.12.0-alpha.2-58-ga99d0435".\ + "SDK Package Version: v0.12.0-alpha.2-66-gd7e17e60".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_cpu.py b/kubevirt/models/v1_cpu.py index 156dc347..ddabf0eb 100644 --- a/kubevirt/models/v1_cpu.py +++ b/kubevirt/models/v1_cpu.py @@ -33,16 +33,20 @@ class V1CPU(object): swagger_types = { 'cores': 'int', 'dedicated_cpu_placement': 'bool', - 'model': 'str' + 'model': 'str', + 'sockets': 'int', + 'threads': 'int' } attribute_map = { 'cores': 'cores', 'dedicated_cpu_placement': 'dedicatedCpuPlacement', - 'model': 'model' + 'model': 'model', + 'sockets': 'sockets', + 'threads': 'threads' } - def __init__(self, cores=None, dedicated_cpu_placement=None, model=None): + def __init__(self, cores=None, dedicated_cpu_placement=None, model=None, sockets=None, threads=None): """ V1CPU - a model defined in Swagger """ @@ -50,6 +54,8 @@ def __init__(self, cores=None, dedicated_cpu_placement=None, model=None): self._cores = None self._dedicated_cpu_placement = None self._model = None + self._sockets = None + self._threads = None if cores is not None: self.cores = cores @@ -57,6 +63,10 @@ def __init__(self, cores=None, dedicated_cpu_placement=None, model=None): self.dedicated_cpu_placement = dedicated_cpu_placement if model is not None: self.model = model + if sockets is not None: + self.sockets = sockets + if threads is not None: + self.threads = threads @property def cores(self): @@ -127,6 +137,52 @@ def model(self, model): self._model = model + @property + def sockets(self): + """ + Gets the sockets of this V1CPU. + Sockets specifies the number of sockets inside the vmi. Must be a value greater or equal 1. + + :return: The sockets of this V1CPU. + :rtype: int + """ + return self._sockets + + @sockets.setter + def sockets(self, sockets): + """ + Sets the sockets of this V1CPU. + Sockets specifies the number of sockets inside the vmi. Must be a value greater or equal 1. + + :param sockets: The sockets of this V1CPU. + :type: int + """ + + self._sockets = sockets + + @property + def threads(self): + """ + Gets the threads of this V1CPU. + Threads specifies the number of threads inside the vmi. Must be a value greater or equal 1. + + :return: The threads of this V1CPU. + :rtype: int + """ + return self._threads + + @threads.setter + def threads(self, threads): + """ + Sets the threads of this V1CPU. + Threads specifies the number of threads inside the vmi. Must be a value greater or equal 1. + + :param threads: The threads of this V1CPU. + :type: int + """ + + self._threads = threads + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 25f439df..e95c9b96 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.12.0-alpha.2-58-ga99d0435" +VERSION = "v0.12.0-alpha.2-66-gd7e17e60" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index a7dde54d..cb29f8e2 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.12.0-alpha.2-58-ga99d0435" +"packageVersion": "v0.12.0-alpha.2-66-gd7e17e60" } From 907e2c87cc1caca0889d1d7e5b257143beaeda15 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 14 Jan 2019 12:32:36 +0000 Subject: [PATCH 080/521] Client Python update by Travis Build 6264 --- README.md | 10 ++- docs/DefaultApi.md | 78 +++++++++++++---- docs/V1RootPaths.md | 10 +++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 +- kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 138 ++++++++++++++++++++++++++----- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_root_paths.py | 126 ++++++++++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 18 ++-- test/test_v1_root_paths.py | 44 ++++++++++ 15 files changed, 388 insertions(+), 54 deletions(-) create mode 100644 docs/V1RootPaths.md create mode 100644 kubevirt/models/v1_root_paths.py create mode 100644 test/test_v1_root_paths.py diff --git a/README.md b/README.md index f895d78b..fb0a2efe 100644 --- a/README.md +++ b/README.md @@ -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: v0.12.0-alpha.2-66-gd7e17e60 +- Package version: v0.12.0-8-gc9f0c503 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -90,9 +90,10 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Delete a VirtualMachineInstanceMigration object. *DefaultApi* | [**delete_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Delete a VirtualMachineInstancePreset object. *DefaultApi* | [**delete_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Delete a VirtualMachineInstanceReplicaSet object. -*DefaultApi* | [**get_api_group**](docs/DefaultApi.md#get_api_group) | **GET** /apis | Get a KubeVirt API GroupList -*DefaultApi* | [**get_api_group_0**](docs/DefaultApi.md#get_api_group_0) | **GET** /apis/kubevirt.io | Get a KubeVirt API group -*DefaultApi* | [**get_api_group_1**](docs/DefaultApi.md#get_api_group_1) | **GET** /apis/subresources.kubevirt.io | Get a KubeVirt API Group +*DefaultApi* | [**func7**](docs/DefaultApi.md#func7) | **GET** /openapi/v2 | +*DefaultApi* | [**get_api_group**](docs/DefaultApi.md#get_api_group) | **GET** /apis/kubevirt.io | Get a KubeVirt API group +*DefaultApi* | [**get_api_group_0**](docs/DefaultApi.md#get_api_group_0) | **GET** /apis/subresources.kubevirt.io | Get a KubeVirt API Group +*DefaultApi* | [**get_api_group_list**](docs/DefaultApi.md#get_api_group_list) | **GET** /apis | Get a KubeVirt API GroupList *DefaultApi* | [**get_api_resources**](docs/DefaultApi.md#get_api_resources) | **GET** /apis/kubevirt.io/v1alpha2 | Get KubeVirt API Resources *DefaultApi* | [**get_api_resources_0**](docs/DefaultApi.md#get_api_resources_0) | **GET** /apis/subresources.kubevirt.io/v1alpha2 | Get a KubeVirt API resources *DefaultApi* | [**list_namespaced_virtual_machine**](docs/DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines | Get a list of VirtualMachine objects. @@ -207,6 +208,7 @@ Class | Method | HTTP request | Description - [V1Probe](docs/V1Probe.md) - [V1RTCTimer](docs/V1RTCTimer.md) - [V1ResourceRequirements](docs/V1ResourceRequirements.md) + - [V1RootPaths](docs/V1RootPaths.md) - [V1SecretVolumeSource](docs/V1SecretVolumeSource.md) - [V1ServerAddressByClientCIDR](docs/V1ServerAddressByClientCIDR.md) - [V1ServiceAccountVolumeSource](docs/V1ServiceAccountVolumeSource.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 8f95d485..d9654479 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -21,9 +21,10 @@ Method | HTTP request | Description [**delete_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Delete a VirtualMachineInstanceMigration object. [**delete_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Delete a VirtualMachineInstancePreset object. [**delete_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Delete a VirtualMachineInstanceReplicaSet object. -[**get_api_group**](DefaultApi.md#get_api_group) | **GET** /apis | Get a KubeVirt API GroupList -[**get_api_group_0**](DefaultApi.md#get_api_group_0) | **GET** /apis/kubevirt.io | Get a KubeVirt API group -[**get_api_group_1**](DefaultApi.md#get_api_group_1) | **GET** /apis/subresources.kubevirt.io | Get a KubeVirt API Group +[**func7**](DefaultApi.md#func7) | **GET** /openapi/v2 | +[**get_api_group**](DefaultApi.md#get_api_group) | **GET** /apis/kubevirt.io | Get a KubeVirt API group +[**get_api_group_0**](DefaultApi.md#get_api_group_0) | **GET** /apis/subresources.kubevirt.io | Get a KubeVirt API Group +[**get_api_group_list**](DefaultApi.md#get_api_group_list) | **GET** /apis | Get a KubeVirt API GroupList [**get_api_resources**](DefaultApi.md#get_api_resources) | **GET** /apis/kubevirt.io/v1alpha2 | Get KubeVirt API Resources [**get_api_resources_0**](DefaultApi.md#get_api_resources_0) | **GET** /apis/subresources.kubevirt.io/v1alpha2 | Get a KubeVirt API resources [**list_namespaced_virtual_machine**](DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines | Get a list of VirtualMachine objects. @@ -1060,10 +1061,55 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **func7** +> func7() + + + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_instance.func7() +except ApiException as e: + print("Exception when calling DefaultApi->func7: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_api_group** -> V1APIGroupList get_api_group() +> V1APIGroup get_api_group() -Get a KubeVirt API GroupList +Get a KubeVirt API group ### Example ```python @@ -1082,7 +1128,7 @@ kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubevirt.DefaultApi() try: - # Get a KubeVirt API GroupList + # Get a KubeVirt API group api_response = api_instance.get_api_group() pprint(api_response) except ApiException as e: @@ -1094,7 +1140,7 @@ This endpoint does not need any parameter. ### Return type -[**V1APIGroupList**](V1APIGroupList.md) +[**V1APIGroup**](V1APIGroup.md) ### Authorization @@ -1110,7 +1156,7 @@ This endpoint does not need any parameter. # **get_api_group_0** > V1APIGroup get_api_group_0() -Get a KubeVirt API group +Get a KubeVirt API Group ### Example ```python @@ -1129,7 +1175,7 @@ kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubevirt.DefaultApi() try: - # Get a KubeVirt API group + # Get a KubeVirt API Group api_response = api_instance.get_api_group_0() pprint(api_response) except ApiException as e: @@ -1154,10 +1200,10 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_api_group_1** -> V1APIGroup get_api_group_1() +# **get_api_group_list** +> V1APIGroupList get_api_group_list() -Get a KubeVirt API Group +Get a KubeVirt API GroupList ### Example ```python @@ -1176,11 +1222,11 @@ kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubevirt.DefaultApi() try: - # Get a KubeVirt API Group - api_response = api_instance.get_api_group_1() + # Get a KubeVirt API GroupList + api_response = api_instance.get_api_group_list() pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->get_api_group_1: %s\n" % e) + print("Exception when calling DefaultApi->get_api_group_list: %s\n" % e) ``` ### Parameters @@ -1188,7 +1234,7 @@ This endpoint does not need any parameter. ### Return type -[**V1APIGroup**](V1APIGroup.md) +[**V1APIGroupList**](V1APIGroupList.md) ### Authorization diff --git a/docs/V1RootPaths.md b/docs/V1RootPaths.md new file mode 100644 index 00000000..639ca7de --- /dev/null +++ b/docs/V1RootPaths.md @@ -0,0 +1,10 @@ +# V1RootPaths + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**paths** | **list[str]** | paths are the paths available at root. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 5b416203..707e7a37 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.12.0-alpha.2-66-gd7e17e60" + release_note="Auto-generated client v0.12.0-8-gc9f0c503" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 48b3ab19..d9beece6 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -220,6 +220,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_resource_requirements.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_resource_requirements.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ResourceRequirements.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_root_paths.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_root_paths.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1RootPaths.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_secret_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_secret_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SecretVolumeSource.md @@ -358,7 +361,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/v1alpha1_data_volume_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeStatus.md -[main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_group_0` [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. @@ -551,7 +553,7 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_group_1` +[main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_group_0` [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_resources_0` [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_default_api.py diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 795d24b4..9a5885a1 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -83,6 +83,7 @@ from .models.v1_probe import V1Probe from .models.v1_rtc_timer import V1RTCTimer from .models.v1_resource_requirements import V1ResourceRequirements +from .models.v1_root_paths import V1RootPaths from .models.v1_secret_volume_source import V1SecretVolumeSource from .models.v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR from .models.v1_service_account_volume_source import V1ServiceAccountVolumeSource diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 6d2182c0..c6ab440a 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.12.0-alpha.2-66-gd7e17e60/python' + self.user_agent = 'Swagger-Codegen/v0.12.0-8-gc9f0c503/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 10223574..557018c8 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -2103,9 +2103,103 @@ def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def func7(self, **kwargs): + """ + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.func7(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.func7_with_http_info(**kwargs) + else: + (data) = self.func7_with_http_info(**kwargs) + return data + + def func7_with_http_info(self, **kwargs): + """ + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.func7_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method func7" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api('/openapi/v2', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def get_api_group(self, **kwargs): """ - Get a KubeVirt API GroupList + Get a KubeVirt API group This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -2116,7 +2210,7 @@ def get_api_group(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroupList + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -2129,7 +2223,7 @@ def get_api_group(self, **kwargs): def get_api_group_with_http_info(self, **kwargs): """ - Get a KubeVirt API GroupList + Get a KubeVirt API group This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -2140,7 +2234,7 @@ def get_api_group_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroupList + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -2180,14 +2274,14 @@ def get_api_group_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis', 'GET', + return self.api_client.call_api('/apis/kubevirt.io', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIGroupList', + response_type='V1APIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2197,7 +2291,7 @@ def get_api_group_with_http_info(self, **kwargs): def get_api_group_0(self, **kwargs): """ - Get a KubeVirt API group + Get a KubeVirt API Group This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -2221,7 +2315,7 @@ def get_api_group_0(self, **kwargs): def get_api_group_0_with_http_info(self, **kwargs): """ - Get a KubeVirt API group + Get a KubeVirt API Group This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -2272,7 +2366,7 @@ def get_api_group_0_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io', 'GET', path_params, query_params, header_params, @@ -2287,44 +2381,44 @@ def get_api_group_0_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_group_1(self, **kwargs): + def get_api_group_list(self, **kwargs): """ - Get a KubeVirt API Group + Get a KubeVirt API GroupList This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_group_1(callback=callback_function) + >>> thread = api.get_api_group_list(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :return: V1APIGroupList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_group_1_with_http_info(**kwargs) + return self.get_api_group_list_with_http_info(**kwargs) else: - (data) = self.get_api_group_1_with_http_info(**kwargs) + (data) = self.get_api_group_list_with_http_info(**kwargs) return data - def get_api_group_1_with_http_info(self, **kwargs): + def get_api_group_list_with_http_info(self, **kwargs): """ - Get a KubeVirt API Group + Get a KubeVirt API GroupList This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_group_1_with_http_info(callback=callback_function) + >>> thread = api.get_api_group_list_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :return: V1APIGroupList If the method is called asynchronously, returns the request thread. """ @@ -2340,7 +2434,7 @@ def get_api_group_1_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_group_1" % key + " to method get_api_group_list" % key ) params[key] = val del params['kwargs'] @@ -2364,14 +2458,14 @@ def get_api_group_1_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/subresources.kubevirt.io', 'GET', + return self.api_client.call_api('/apis', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIGroup', + response_type='V1APIGroupList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 7aa1121b..a7619e16 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.12.0-alpha.2-66-gd7e17e60".\ + "SDK Package Version: v0.12.0-8-gc9f0c503".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 1177688a..bfa2f7f7 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -83,6 +83,7 @@ from .v1_probe import V1Probe from .v1_rtc_timer import V1RTCTimer from .v1_resource_requirements import V1ResourceRequirements +from .v1_root_paths import V1RootPaths from .v1_secret_volume_source import V1SecretVolumeSource from .v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR from .v1_service_account_volume_source import V1ServiceAccountVolumeSource diff --git a/kubevirt/models/v1_root_paths.py b/kubevirt/models/v1_root_paths.py new file mode 100644 index 00000000..86205daa --- /dev/null +++ b/kubevirt/models/v1_root_paths.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1RootPaths(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'paths': 'list[str]' + } + + attribute_map = { + 'paths': 'paths' + } + + def __init__(self, paths=None): + """ + V1RootPaths - a model defined in Swagger + """ + + self._paths = None + + self.paths = paths + + @property + def paths(self): + """ + Gets the paths of this V1RootPaths. + paths are the paths available at root. + + :return: The paths of this V1RootPaths. + :rtype: list[str] + """ + return self._paths + + @paths.setter + def paths(self, paths): + """ + Sets the paths of this V1RootPaths. + paths are the paths available at root. + + :param paths: The paths of this V1RootPaths. + :type: list[str] + """ + if paths is None: + raise ValueError("Invalid value for `paths`, must not be `None`") + + self._paths = paths + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1RootPaths): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index e95c9b96..1cdaa92f 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.12.0-alpha.2-66-gd7e17e60" +VERSION = "v0.12.0-8-gc9f0c503" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index cb29f8e2..b4bca3aa 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.12.0-alpha.2-66-gd7e17e60" +"packageVersion": "v0.12.0-8-gc9f0c503" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 69f933b7..d43818b4 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -167,11 +167,19 @@ def test_delete_namespaced_virtual_machine_instance_replica_set(self): """ pass + def test_func7(self): + """ + Test case for func7 + + + """ + pass + def test_get_api_group(self): """ Test case for get_api_group - Get a KubeVirt API GroupList + Get a KubeVirt API group """ pass @@ -179,15 +187,15 @@ def test_get_api_group_0(self): """ Test case for get_api_group_0 - Get a KubeVirt API group + Get a KubeVirt API Group """ pass - def test_get_api_group_1(self): + def test_get_api_group_list(self): """ - Test case for get_api_group_1 + Test case for get_api_group_list - Get a KubeVirt API Group + Get a KubeVirt API GroupList """ pass diff --git a/test/test_v1_root_paths.py b/test/test_v1_root_paths.py new file mode 100644 index 00000000..035e3359 --- /dev/null +++ b/test/test_v1_root_paths.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_root_paths import V1RootPaths + + +class TestV1RootPaths(unittest.TestCase): + """ V1RootPaths unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1RootPaths(self): + """ + Test V1RootPaths + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_root_paths.V1RootPaths() + pass + + +if __name__ == '__main__': + unittest.main() From 4880c97e4a9961b75609faf220c85650b0d1fccd Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 15 Jan 2019 02:03:06 +0000 Subject: [PATCH 081/521] Client Python update by Travis Build 6277 --- README.md | 118 +++++++++++++++++------------------ docs/DefaultApi.md | 116 +++++++++++++++++----------------- docs/V1Disk.md | 1 - git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 116 +++++++++++++++++----------------- kubevirt/configuration.py | 2 +- kubevirt/models/v1_disk.py | 35 +---------- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 183 insertions(+), 213 deletions(-) diff --git a/README.md b/README.md index fb0a2efe..3870b2d6 100644 --- a/README.md +++ b/README.md @@ -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: v0.12.0-8-gc9f0c503 +- Package version: v0.12.0-18-gf6a440c8 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -73,68 +73,68 @@ All URIs are relative to *https://localhost* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*DefaultApi* | [**check_health**](docs/DefaultApi.md#check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha2/healthz | Health endpoint -*DefaultApi* | [**console**](docs/DefaultApi.md#console) | **GET** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/console | Open a websocket connection to a serial console on the specified VirtualMachineInstance. -*DefaultApi* | [**create_namespaced_virtual_machine**](docs/DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines | Create a VirtualMachine object. -*DefaultApi* | [**create_namespaced_virtual_machine_instance**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances | Create a VirtualMachineInstance object. -*DefaultApi* | [**create_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations | Create a VirtualMachineInstanceMigration object. -*DefaultApi* | [**create_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets | Create a VirtualMachineInstancePreset object. -*DefaultApi* | [**create_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets | Create a VirtualMachineInstanceReplicaSet object. -*DefaultApi* | [**delete_collection_namespaced_virtual_machine**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines | Delete a collection of VirtualMachine objects. -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances | Delete a collection of VirtualMachineInstance objects. -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations | Delete a collection of VirtualMachineInstanceMigration objects. -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets | Delete a collection of VirtualMachineInstancePreset objects. -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets | Delete a collection of VirtualMachineInstanceReplicaSet objects. -*DefaultApi* | [**delete_namespaced_virtual_machine**](docs/DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name} | Delete a VirtualMachine object. -*DefaultApi* | [**delete_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name} | Delete a VirtualMachineInstance object. -*DefaultApi* | [**delete_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Delete a VirtualMachineInstanceMigration object. -*DefaultApi* | [**delete_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Delete a VirtualMachineInstancePreset object. -*DefaultApi* | [**delete_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Delete a VirtualMachineInstanceReplicaSet object. +*DefaultApi* | [**check_health**](docs/DefaultApi.md#check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha3/healthz | Health endpoint +*DefaultApi* | [**console**](docs/DefaultApi.md#console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/console | Open a websocket connection to a serial console on the specified VirtualMachineInstance. +*DefaultApi* | [**create_namespaced_virtual_machine**](docs/DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines | Create a VirtualMachine object. +*DefaultApi* | [**create_namespaced_virtual_machine_instance**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances | Create a VirtualMachineInstance object. +*DefaultApi* | [**create_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations | Create a VirtualMachineInstanceMigration object. +*DefaultApi* | [**create_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets | Create a VirtualMachineInstancePreset object. +*DefaultApi* | [**create_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets | Create a VirtualMachineInstanceReplicaSet object. +*DefaultApi* | [**delete_collection_namespaced_virtual_machine**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines | Delete a collection of VirtualMachine objects. +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances | Delete a collection of VirtualMachineInstance objects. +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations | Delete a collection of VirtualMachineInstanceMigration objects. +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets | Delete a collection of VirtualMachineInstancePreset objects. +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets | Delete a collection of VirtualMachineInstanceReplicaSet objects. +*DefaultApi* | [**delete_namespaced_virtual_machine**](docs/DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name} | Delete a VirtualMachine object. +*DefaultApi* | [**delete_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name} | Delete a VirtualMachineInstance object. +*DefaultApi* | [**delete_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Delete a VirtualMachineInstanceMigration object. +*DefaultApi* | [**delete_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Delete a VirtualMachineInstancePreset object. +*DefaultApi* | [**delete_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Delete a VirtualMachineInstanceReplicaSet object. *DefaultApi* | [**func7**](docs/DefaultApi.md#func7) | **GET** /openapi/v2 | *DefaultApi* | [**get_api_group**](docs/DefaultApi.md#get_api_group) | **GET** /apis/kubevirt.io | Get a KubeVirt API group *DefaultApi* | [**get_api_group_0**](docs/DefaultApi.md#get_api_group_0) | **GET** /apis/subresources.kubevirt.io | Get a KubeVirt API Group *DefaultApi* | [**get_api_group_list**](docs/DefaultApi.md#get_api_group_list) | **GET** /apis | Get a KubeVirt API GroupList -*DefaultApi* | [**get_api_resources**](docs/DefaultApi.md#get_api_resources) | **GET** /apis/kubevirt.io/v1alpha2 | Get KubeVirt API Resources -*DefaultApi* | [**get_api_resources_0**](docs/DefaultApi.md#get_api_resources_0) | **GET** /apis/subresources.kubevirt.io/v1alpha2 | Get a KubeVirt API resources -*DefaultApi* | [**list_namespaced_virtual_machine**](docs/DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines | Get a list of VirtualMachine objects. -*DefaultApi* | [**list_namespaced_virtual_machine_instance**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances | Get a list of VirtualMachineInstance objects. -*DefaultApi* | [**list_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations | Get a list of VirtualMachineInstanceMigration objects. -*DefaultApi* | [**list_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets | Get a list of VirtualMachineInstancePreset objects. -*DefaultApi* | [**list_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets | Get a list of VirtualMachineInstanceReplicaSet objects. -*DefaultApi* | [**list_virtual_machine_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/virtualmachines | Get a list of all VirtualMachine objects. -*DefaultApi* | [**list_virtual_machine_instance_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/virtualmachineinstances | Get a list of all VirtualMachineInstance objects. -*DefaultApi* | [**list_virtual_machine_instance_migration_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/virtualmachineinstancemigrations | Get a list of all VirtualMachineInstanceMigration objects. -*DefaultApi* | [**list_virtual_machine_instance_preset_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/virtualmachineinstancepresets | Get a list of all VirtualMachineInstancePreset objects. -*DefaultApi* | [**list_virtual_machine_instance_replica_set_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/virtualmachineinstancereplicasets | Get a list of all VirtualMachineInstanceReplicaSet objects. -*DefaultApi* | [**patch_namespaced_virtual_machine**](docs/DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name} | Patch a VirtualMachine object. -*DefaultApi* | [**patch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name} | Patch a VirtualMachineInstance object. -*DefaultApi* | [**patch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Patch a VirtualMachineInstanceMigration object. -*DefaultApi* | [**patch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Patch a VirtualMachineInstancePreset object. -*DefaultApi* | [**patch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Patch a VirtualMachineInstanceReplicaSet object. -*DefaultApi* | [**read_namespaced_virtual_machine**](docs/DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name} | Get a VirtualMachine object. -*DefaultApi* | [**read_namespaced_virtual_machine_instance**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name} | Get a VirtualMachineInstance object. -*DefaultApi* | [**read_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Get a VirtualMachineInstanceMigration object. -*DefaultApi* | [**read_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Get a VirtualMachineInstancePreset object. -*DefaultApi* | [**read_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Get a VirtualMachineInstanceReplicaSet object. -*DefaultApi* | [**replace_namespaced_virtual_machine**](docs/DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name} | Update a VirtualMachine object. -*DefaultApi* | [**replace_namespaced_virtual_machine_instance**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name} | Update a VirtualMachineInstance object. -*DefaultApi* | [**replace_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Update a VirtualMachineInstanceMigration object. -*DefaultApi* | [**replace_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Update a VirtualMachineInstancePreset object. -*DefaultApi* | [**replace_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Update a VirtualMachineInstanceReplicaSet object. -*DefaultApi* | [**restart**](docs/DefaultApi.md#restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name}/restart | Restart a VirtualMachine object. -*DefaultApi* | [**test**](docs/DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/test | Test endpoint verifying apiserver connectivity. -*DefaultApi* | [**version**](docs/DefaultApi.md#version) | **GET** /apis/subresources.kubevirt.io/v1alpha2/version | -*DefaultApi* | [**vnc**](docs/DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/vnc | Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. -*DefaultApi* | [**watch_namespaced_virtual_machine**](docs/DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachines | Watch a VirtualMachine object. -*DefaultApi* | [**watch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstances | Watch a VirtualMachineInstance object. -*DefaultApi* | [**watch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstancemigrations | Watch a VirtualMachineInstanceMigration object. -*DefaultApi* | [**watch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstancepresets | Watch a VirtualMachineInstancePreset object. -*DefaultApi* | [**watch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstancereplicasets | Watch a VirtualMachineInstanceReplicaSet object. -*DefaultApi* | [**watch_virtual_machine_instance_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/watch/virtualmachineinstances | Watch a VirtualMachineInstanceList object. -*DefaultApi* | [**watch_virtual_machine_instance_migration_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/watch/virtualmachineinstancemigrations | Watch a VirtualMachineInstanceMigrationList object. -*DefaultApi* | [**watch_virtual_machine_instance_preset_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/watch/virtualmachineinstancepresets | Watch a VirtualMachineInstancePresetList object. -*DefaultApi* | [**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/watch/virtualmachineinstancereplicasets | Watch a VirtualMachineInstanceReplicaSetList object. -*DefaultApi* | [**watch_virtual_machine_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/watch/virtualmachines | Watch a VirtualMachineList object. +*DefaultApi* | [**get_api_resources**](docs/DefaultApi.md#get_api_resources) | **GET** /apis/kubevirt.io/v1alpha3 | Get KubeVirt API Resources +*DefaultApi* | [**get_api_resources_0**](docs/DefaultApi.md#get_api_resources_0) | **GET** /apis/subresources.kubevirt.io/v1alpha3 | Get a KubeVirt API resources +*DefaultApi* | [**list_namespaced_virtual_machine**](docs/DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines | Get a list of VirtualMachine objects. +*DefaultApi* | [**list_namespaced_virtual_machine_instance**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances | Get a list of VirtualMachineInstance objects. +*DefaultApi* | [**list_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations | Get a list of VirtualMachineInstanceMigration objects. +*DefaultApi* | [**list_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets | Get a list of VirtualMachineInstancePreset objects. +*DefaultApi* | [**list_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets | Get a list of VirtualMachineInstanceReplicaSet objects. +*DefaultApi* | [**list_virtual_machine_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachines | Get a list of all VirtualMachine objects. +*DefaultApi* | [**list_virtual_machine_instance_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstances | Get a list of all VirtualMachineInstance objects. +*DefaultApi* | [**list_virtual_machine_instance_migration_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancemigrations | Get a list of all VirtualMachineInstanceMigration objects. +*DefaultApi* | [**list_virtual_machine_instance_preset_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancepresets | Get a list of all VirtualMachineInstancePreset objects. +*DefaultApi* | [**list_virtual_machine_instance_replica_set_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancereplicasets | Get a list of all VirtualMachineInstanceReplicaSet objects. +*DefaultApi* | [**patch_namespaced_virtual_machine**](docs/DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name} | Patch a VirtualMachine object. +*DefaultApi* | [**patch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name} | Patch a VirtualMachineInstance object. +*DefaultApi* | [**patch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Patch a VirtualMachineInstanceMigration object. +*DefaultApi* | [**patch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Patch a VirtualMachineInstancePreset object. +*DefaultApi* | [**patch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Patch a VirtualMachineInstanceReplicaSet object. +*DefaultApi* | [**read_namespaced_virtual_machine**](docs/DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name} | Get a VirtualMachine object. +*DefaultApi* | [**read_namespaced_virtual_machine_instance**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name} | Get a VirtualMachineInstance object. +*DefaultApi* | [**read_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Get a VirtualMachineInstanceMigration object. +*DefaultApi* | [**read_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Get a VirtualMachineInstancePreset object. +*DefaultApi* | [**read_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Get a VirtualMachineInstanceReplicaSet object. +*DefaultApi* | [**replace_namespaced_virtual_machine**](docs/DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name} | Update a VirtualMachine object. +*DefaultApi* | [**replace_namespaced_virtual_machine_instance**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name} | Update a VirtualMachineInstance object. +*DefaultApi* | [**replace_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Update a VirtualMachineInstanceMigration object. +*DefaultApi* | [**replace_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Update a VirtualMachineInstancePreset object. +*DefaultApi* | [**replace_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Update a VirtualMachineInstanceReplicaSet object. +*DefaultApi* | [**restart**](docs/DefaultApi.md#restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/restart | Restart a VirtualMachine object. +*DefaultApi* | [**test**](docs/DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/test | Test endpoint verifying apiserver connectivity. +*DefaultApi* | [**version**](docs/DefaultApi.md#version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | +*DefaultApi* | [**vnc**](docs/DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/vnc | Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. +*DefaultApi* | [**watch_namespaced_virtual_machine**](docs/DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachines | Watch a VirtualMachine object. +*DefaultApi* | [**watch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachineinstances | Watch a VirtualMachineInstance object. +*DefaultApi* | [**watch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachineinstancemigrations | Watch a VirtualMachineInstanceMigration object. +*DefaultApi* | [**watch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachineinstancepresets | Watch a VirtualMachineInstancePreset object. +*DefaultApi* | [**watch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachineinstancereplicasets | Watch a VirtualMachineInstanceReplicaSet object. +*DefaultApi* | [**watch_virtual_machine_instance_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstances | Watch a VirtualMachineInstanceList object. +*DefaultApi* | [**watch_virtual_machine_instance_migration_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancemigrations | Watch a VirtualMachineInstanceMigrationList object. +*DefaultApi* | [**watch_virtual_machine_instance_preset_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancepresets | Watch a VirtualMachineInstancePresetList object. +*DefaultApi* | [**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancereplicasets | Watch a VirtualMachineInstanceReplicaSetList object. +*DefaultApi* | [**watch_virtual_machine_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachines | Watch a VirtualMachineList object. ## Documentation For Models diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index d9654479..ae2c59fb 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -4,68 +4,68 @@ All URIs are relative to *https://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**check_health**](DefaultApi.md#check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha2/healthz | Health endpoint -[**console**](DefaultApi.md#console) | **GET** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/console | Open a websocket connection to a serial console on the specified VirtualMachineInstance. -[**create_namespaced_virtual_machine**](DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines | Create a VirtualMachine object. -[**create_namespaced_virtual_machine_instance**](DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances | Create a VirtualMachineInstance object. -[**create_namespaced_virtual_machine_instance_migration**](DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations | Create a VirtualMachineInstanceMigration object. -[**create_namespaced_virtual_machine_instance_preset**](DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets | Create a VirtualMachineInstancePreset object. -[**create_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets | Create a VirtualMachineInstanceReplicaSet object. -[**delete_collection_namespaced_virtual_machine**](DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines | Delete a collection of VirtualMachine objects. -[**delete_collection_namespaced_virtual_machine_instance**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances | Delete a collection of VirtualMachineInstance objects. -[**delete_collection_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations | Delete a collection of VirtualMachineInstanceMigration objects. -[**delete_collection_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets | Delete a collection of VirtualMachineInstancePreset objects. -[**delete_collection_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets | Delete a collection of VirtualMachineInstanceReplicaSet objects. -[**delete_namespaced_virtual_machine**](DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name} | Delete a VirtualMachine object. -[**delete_namespaced_virtual_machine_instance**](DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name} | Delete a VirtualMachineInstance object. -[**delete_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Delete a VirtualMachineInstanceMigration object. -[**delete_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Delete a VirtualMachineInstancePreset object. -[**delete_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Delete a VirtualMachineInstanceReplicaSet object. +[**check_health**](DefaultApi.md#check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha3/healthz | Health endpoint +[**console**](DefaultApi.md#console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/console | Open a websocket connection to a serial console on the specified VirtualMachineInstance. +[**create_namespaced_virtual_machine**](DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines | Create a VirtualMachine object. +[**create_namespaced_virtual_machine_instance**](DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances | Create a VirtualMachineInstance object. +[**create_namespaced_virtual_machine_instance_migration**](DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations | Create a VirtualMachineInstanceMigration object. +[**create_namespaced_virtual_machine_instance_preset**](DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets | Create a VirtualMachineInstancePreset object. +[**create_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets | Create a VirtualMachineInstanceReplicaSet object. +[**delete_collection_namespaced_virtual_machine**](DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines | Delete a collection of VirtualMachine objects. +[**delete_collection_namespaced_virtual_machine_instance**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances | Delete a collection of VirtualMachineInstance objects. +[**delete_collection_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations | Delete a collection of VirtualMachineInstanceMigration objects. +[**delete_collection_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets | Delete a collection of VirtualMachineInstancePreset objects. +[**delete_collection_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets | Delete a collection of VirtualMachineInstanceReplicaSet objects. +[**delete_namespaced_virtual_machine**](DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name} | Delete a VirtualMachine object. +[**delete_namespaced_virtual_machine_instance**](DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name} | Delete a VirtualMachineInstance object. +[**delete_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Delete a VirtualMachineInstanceMigration object. +[**delete_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Delete a VirtualMachineInstancePreset object. +[**delete_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Delete a VirtualMachineInstanceReplicaSet object. [**func7**](DefaultApi.md#func7) | **GET** /openapi/v2 | [**get_api_group**](DefaultApi.md#get_api_group) | **GET** /apis/kubevirt.io | Get a KubeVirt API group [**get_api_group_0**](DefaultApi.md#get_api_group_0) | **GET** /apis/subresources.kubevirt.io | Get a KubeVirt API Group [**get_api_group_list**](DefaultApi.md#get_api_group_list) | **GET** /apis | Get a KubeVirt API GroupList -[**get_api_resources**](DefaultApi.md#get_api_resources) | **GET** /apis/kubevirt.io/v1alpha2 | Get KubeVirt API Resources -[**get_api_resources_0**](DefaultApi.md#get_api_resources_0) | **GET** /apis/subresources.kubevirt.io/v1alpha2 | Get a KubeVirt API resources -[**list_namespaced_virtual_machine**](DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines | Get a list of VirtualMachine objects. -[**list_namespaced_virtual_machine_instance**](DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances | Get a list of VirtualMachineInstance objects. -[**list_namespaced_virtual_machine_instance_migration**](DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations | Get a list of VirtualMachineInstanceMigration objects. -[**list_namespaced_virtual_machine_instance_preset**](DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets | Get a list of VirtualMachineInstancePreset objects. -[**list_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets | Get a list of VirtualMachineInstanceReplicaSet objects. -[**list_virtual_machine_for_all_namespaces**](DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/virtualmachines | Get a list of all VirtualMachine objects. -[**list_virtual_machine_instance_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/virtualmachineinstances | Get a list of all VirtualMachineInstance objects. -[**list_virtual_machine_instance_migration_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/virtualmachineinstancemigrations | Get a list of all VirtualMachineInstanceMigration objects. -[**list_virtual_machine_instance_preset_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/virtualmachineinstancepresets | Get a list of all VirtualMachineInstancePreset objects. -[**list_virtual_machine_instance_replica_set_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/virtualmachineinstancereplicasets | Get a list of all VirtualMachineInstanceReplicaSet objects. -[**patch_namespaced_virtual_machine**](DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name} | Patch a VirtualMachine object. -[**patch_namespaced_virtual_machine_instance**](DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name} | Patch a VirtualMachineInstance object. -[**patch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Patch a VirtualMachineInstanceMigration object. -[**patch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Patch a VirtualMachineInstancePreset object. -[**patch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Patch a VirtualMachineInstanceReplicaSet object. -[**read_namespaced_virtual_machine**](DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name} | Get a VirtualMachine object. -[**read_namespaced_virtual_machine_instance**](DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name} | Get a VirtualMachineInstance object. -[**read_namespaced_virtual_machine_instance_migration**](DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Get a VirtualMachineInstanceMigration object. -[**read_namespaced_virtual_machine_instance_preset**](DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Get a VirtualMachineInstancePreset object. -[**read_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Get a VirtualMachineInstanceReplicaSet object. -[**replace_namespaced_virtual_machine**](DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name} | Update a VirtualMachine object. -[**replace_namespaced_virtual_machine_instance**](DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name} | Update a VirtualMachineInstance object. -[**replace_namespaced_virtual_machine_instance_migration**](DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Update a VirtualMachineInstanceMigration object. -[**replace_namespaced_virtual_machine_instance_preset**](DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Update a VirtualMachineInstancePreset object. -[**replace_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Update a VirtualMachineInstanceReplicaSet object. -[**restart**](DefaultApi.md#restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name}/restart | Restart a VirtualMachine object. -[**test**](DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/test | Test endpoint verifying apiserver connectivity. -[**version**](DefaultApi.md#version) | **GET** /apis/subresources.kubevirt.io/v1alpha2/version | -[**vnc**](DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/vnc | Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. -[**watch_namespaced_virtual_machine**](DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachines | Watch a VirtualMachine object. -[**watch_namespaced_virtual_machine_instance**](DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstances | Watch a VirtualMachineInstance object. -[**watch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstancemigrations | Watch a VirtualMachineInstanceMigration object. -[**watch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstancepresets | Watch a VirtualMachineInstancePreset object. -[**watch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstancereplicasets | Watch a VirtualMachineInstanceReplicaSet object. -[**watch_virtual_machine_instance_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/watch/virtualmachineinstances | Watch a VirtualMachineInstanceList object. -[**watch_virtual_machine_instance_migration_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/watch/virtualmachineinstancemigrations | Watch a VirtualMachineInstanceMigrationList object. -[**watch_virtual_machine_instance_preset_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/watch/virtualmachineinstancepresets | Watch a VirtualMachineInstancePresetList object. -[**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/watch/virtualmachineinstancereplicasets | Watch a VirtualMachineInstanceReplicaSetList object. -[**watch_virtual_machine_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha2/watch/virtualmachines | Watch a VirtualMachineList object. +[**get_api_resources**](DefaultApi.md#get_api_resources) | **GET** /apis/kubevirt.io/v1alpha3 | Get KubeVirt API Resources +[**get_api_resources_0**](DefaultApi.md#get_api_resources_0) | **GET** /apis/subresources.kubevirt.io/v1alpha3 | Get a KubeVirt API resources +[**list_namespaced_virtual_machine**](DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines | Get a list of VirtualMachine objects. +[**list_namespaced_virtual_machine_instance**](DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances | Get a list of VirtualMachineInstance objects. +[**list_namespaced_virtual_machine_instance_migration**](DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations | Get a list of VirtualMachineInstanceMigration objects. +[**list_namespaced_virtual_machine_instance_preset**](DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets | Get a list of VirtualMachineInstancePreset objects. +[**list_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets | Get a list of VirtualMachineInstanceReplicaSet objects. +[**list_virtual_machine_for_all_namespaces**](DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachines | Get a list of all VirtualMachine objects. +[**list_virtual_machine_instance_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstances | Get a list of all VirtualMachineInstance objects. +[**list_virtual_machine_instance_migration_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancemigrations | Get a list of all VirtualMachineInstanceMigration objects. +[**list_virtual_machine_instance_preset_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancepresets | Get a list of all VirtualMachineInstancePreset objects. +[**list_virtual_machine_instance_replica_set_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancereplicasets | Get a list of all VirtualMachineInstanceReplicaSet objects. +[**patch_namespaced_virtual_machine**](DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name} | Patch a VirtualMachine object. +[**patch_namespaced_virtual_machine_instance**](DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name} | Patch a VirtualMachineInstance object. +[**patch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Patch a VirtualMachineInstanceMigration object. +[**patch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Patch a VirtualMachineInstancePreset object. +[**patch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Patch a VirtualMachineInstanceReplicaSet object. +[**read_namespaced_virtual_machine**](DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name} | Get a VirtualMachine object. +[**read_namespaced_virtual_machine_instance**](DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name} | Get a VirtualMachineInstance object. +[**read_namespaced_virtual_machine_instance_migration**](DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Get a VirtualMachineInstanceMigration object. +[**read_namespaced_virtual_machine_instance_preset**](DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Get a VirtualMachineInstancePreset object. +[**read_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Get a VirtualMachineInstanceReplicaSet object. +[**replace_namespaced_virtual_machine**](DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name} | Update a VirtualMachine object. +[**replace_namespaced_virtual_machine_instance**](DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name} | Update a VirtualMachineInstance object. +[**replace_namespaced_virtual_machine_instance_migration**](DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Update a VirtualMachineInstanceMigration object. +[**replace_namespaced_virtual_machine_instance_preset**](DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Update a VirtualMachineInstancePreset object. +[**replace_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Update a VirtualMachineInstanceReplicaSet object. +[**restart**](DefaultApi.md#restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/restart | Restart a VirtualMachine object. +[**test**](DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/test | Test endpoint verifying apiserver connectivity. +[**version**](DefaultApi.md#version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | +[**vnc**](DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/vnc | Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. +[**watch_namespaced_virtual_machine**](DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachines | Watch a VirtualMachine object. +[**watch_namespaced_virtual_machine_instance**](DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachineinstances | Watch a VirtualMachineInstance object. +[**watch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachineinstancemigrations | Watch a VirtualMachineInstanceMigration object. +[**watch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachineinstancepresets | Watch a VirtualMachineInstancePreset object. +[**watch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachineinstancereplicasets | Watch a VirtualMachineInstanceReplicaSet object. +[**watch_virtual_machine_instance_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstances | Watch a VirtualMachineInstanceList object. +[**watch_virtual_machine_instance_migration_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancemigrations | Watch a VirtualMachineInstanceMigrationList object. +[**watch_virtual_machine_instance_preset_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancepresets | Watch a VirtualMachineInstancePresetList object. +[**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancereplicasets | Watch a VirtualMachineInstanceReplicaSetList object. +[**watch_virtual_machine_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachines | Watch a VirtualMachineList object. # **check_health** diff --git a/docs/V1Disk.md b/docs/V1Disk.md index beacd192..33ac9432 100644 --- a/docs/V1Disk.md +++ b/docs/V1Disk.md @@ -12,7 +12,6 @@ Name | Type | Description | Notes **lun** | [**V1LunTarget**](V1LunTarget.md) | Attach a volume as a LUN to the vmi. | [optional] **name** | **str** | Name is the device name | **serial** | **str** | Serial provides the ability to specify a serial number for the disk device. +optional | [optional] -**volume_name** | **str** | Name of the volume which is referenced. Must match the Name of a Volume. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 707e7a37..8e2d0b14 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.12.0-8-gc9f0c503" + release_note="Auto-generated client v0.12.0-18-gf6a440c8" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index c6ab440a..da4bdae5 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.12.0-8-gc9f0c503/python' + self.user_agent = 'Swagger-Codegen/v0.12.0-18-gf6a440c8/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 557018c8..6ad5257c 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -121,7 +121,7 @@ def check_health_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha2/healthz', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/healthz', 'GET', path_params, query_params, header_params, @@ -228,7 +228,7 @@ def console_with_http_info(self, namespace, name, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/console', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/console', 'GET', path_params, query_params, header_params, @@ -341,7 +341,7 @@ def create_namespaced_virtual_machine_with_http_info(self, body, namespace, **kw # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines', 'POST', path_params, query_params, header_params, @@ -454,7 +454,7 @@ def create_namespaced_virtual_machine_instance_with_http_info(self, body, namesp # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances', 'POST', path_params, query_params, header_params, @@ -567,7 +567,7 @@ def create_namespaced_virtual_machine_instance_migration_with_http_info(self, bo # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations', 'POST', path_params, query_params, header_params, @@ -680,7 +680,7 @@ def create_namespaced_virtual_machine_instance_preset_with_http_info(self, body, # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets', 'POST', path_params, query_params, header_params, @@ -793,7 +793,7 @@ def create_namespaced_virtual_machine_instance_replica_set_with_http_info(self, # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets', 'POST', path_params, query_params, header_params, @@ -918,7 +918,7 @@ def delete_collection_namespaced_virtual_machine_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines', 'DELETE', path_params, query_params, header_params, @@ -1043,7 +1043,7 @@ def delete_collection_namespaced_virtual_machine_instance_with_http_info(self, * # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances', 'DELETE', path_params, query_params, header_params, @@ -1168,7 +1168,7 @@ def delete_collection_namespaced_virtual_machine_instance_migration_with_http_in # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations', 'DELETE', path_params, query_params, header_params, @@ -1293,7 +1293,7 @@ def delete_collection_namespaced_virtual_machine_instance_preset_with_http_info( # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets', 'DELETE', path_params, query_params, header_params, @@ -1418,7 +1418,7 @@ def delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_ # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets', 'DELETE', path_params, query_params, header_params, @@ -1552,7 +1552,7 @@ def delete_namespaced_virtual_machine_with_http_info(self, body, namespace, name # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}', 'DELETE', path_params, query_params, header_params, @@ -1686,7 +1686,7 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, body, namesp # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}', 'DELETE', path_params, query_params, header_params, @@ -1820,7 +1820,7 @@ def delete_namespaced_virtual_machine_instance_migration_with_http_info(self, bo # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name}', 'DELETE', path_params, query_params, header_params, @@ -1954,7 +1954,7 @@ def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, body, # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name}', 'DELETE', path_params, query_params, header_params, @@ -2088,7 +2088,7 @@ def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name}', 'DELETE', path_params, query_params, header_params, @@ -2550,7 +2550,7 @@ def get_api_resources_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3', 'GET', path_params, query_params, header_params, @@ -2642,7 +2642,7 @@ def get_api_resources_0_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha2', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3', 'GET', path_params, query_params, header_params, @@ -2776,7 +2776,7 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines', 'GET', path_params, query_params, header_params, @@ -2910,7 +2910,7 @@ def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **k # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances', 'GET', path_params, query_params, header_params, @@ -3044,7 +3044,7 @@ def list_namespaced_virtual_machine_instance_migration_with_http_info(self, name # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations', 'GET', path_params, query_params, header_params, @@ -3178,7 +3178,7 @@ def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespa # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets', 'GET', path_params, query_params, header_params, @@ -3312,7 +3312,7 @@ def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, @@ -3437,7 +3437,7 @@ def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/virtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/virtualmachines', 'GET', path_params, query_params, header_params, @@ -3562,7 +3562,7 @@ def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwar # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/virtualmachineinstances', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/virtualmachineinstances', 'GET', path_params, query_params, header_params, @@ -3687,7 +3687,7 @@ def list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(se # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/virtualmachineinstancemigrations', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/virtualmachineinstancemigrations', 'GET', path_params, query_params, header_params, @@ -3812,7 +3812,7 @@ def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/virtualmachineinstancepresets', 'GET', path_params, query_params, header_params, @@ -3937,7 +3937,7 @@ def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info( # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, @@ -4059,7 +4059,7 @@ def patch_namespaced_virtual_machine_with_http_info(self, body, namespace, name, # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}', 'PATCH', path_params, query_params, header_params, @@ -4181,7 +4181,7 @@ def patch_namespaced_virtual_machine_instance_with_http_info(self, body, namespa # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}', 'PATCH', path_params, query_params, header_params, @@ -4303,7 +4303,7 @@ def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, bod # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name}', 'PATCH', path_params, query_params, header_params, @@ -4425,7 +4425,7 @@ def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, body, # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name}', 'PATCH', path_params, query_params, header_params, @@ -4547,7 +4547,7 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, b # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name}', 'PATCH', path_params, query_params, header_params, @@ -4666,7 +4666,7 @@ def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwar # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}', 'GET', path_params, query_params, header_params, @@ -4785,7 +4785,7 @@ def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespac # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}', 'GET', path_params, query_params, header_params, @@ -4904,7 +4904,7 @@ def read_namespaced_virtual_machine_instance_migration_with_http_info(self, name # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name}', 'GET', path_params, query_params, header_params, @@ -5023,7 +5023,7 @@ def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, n # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name}', 'GET', path_params, query_params, header_params, @@ -5142,7 +5142,7 @@ def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name}', 'GET', path_params, query_params, header_params, @@ -5264,7 +5264,7 @@ def replace_namespaced_virtual_machine_with_http_info(self, body, namespace, nam # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}', 'PUT', path_params, query_params, header_params, @@ -5386,7 +5386,7 @@ def replace_namespaced_virtual_machine_instance_with_http_info(self, body, names # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}', 'PUT', path_params, query_params, header_params, @@ -5508,7 +5508,7 @@ def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, b # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancemigrations/{name}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name}', 'PUT', path_params, query_params, header_params, @@ -5630,7 +5630,7 @@ def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, body # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name}', 'PUT', path_params, query_params, header_params, @@ -5752,7 +5752,7 @@ def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name}', 'PUT', path_params, query_params, header_params, @@ -5859,7 +5859,7 @@ def restart_with_http_info(self, namespace, name, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name}/restart', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/restart', 'PUT', path_params, query_params, header_params, @@ -5966,7 +5966,7 @@ def test_with_http_info(self, namespace, name, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/test', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/test', 'GET', path_params, query_params, header_params, @@ -6056,7 +6056,7 @@ def version_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha2/version', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/version', 'GET', path_params, query_params, header_params, @@ -6163,7 +6163,7 @@ def vnc_with_http_info(self, namespace, name, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/vnc', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/vnc', 'GET', path_params, query_params, header_params, @@ -6297,7 +6297,7 @@ def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachines', 'GET', path_params, query_params, header_params, @@ -6431,7 +6431,7 @@ def watch_namespaced_virtual_machine_instance_with_http_info(self, namespace, ** # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstances', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachineinstances', 'GET', path_params, query_params, header_params, @@ -6565,7 +6565,7 @@ def watch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstancemigrations', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachineinstancemigrations', 'GET', path_params, query_params, header_params, @@ -6699,7 +6699,7 @@ def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namesp # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachineinstancepresets', 'GET', path_params, query_params, header_params, @@ -6833,7 +6833,7 @@ def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, @@ -6958,7 +6958,7 @@ def watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(self, # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/watch/virtualmachineinstances', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/virtualmachineinstances', 'GET', path_params, query_params, header_params, @@ -7083,7 +7083,7 @@ def watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_i # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/watch/virtualmachineinstancemigrations', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancemigrations', 'GET', path_params, query_params, header_params, @@ -7208,7 +7208,7 @@ def watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/watch/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancepresets', 'GET', path_params, query_params, header_params, @@ -7333,7 +7333,7 @@ def watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/watch/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, @@ -7458,7 +7458,7 @@ def watch_virtual_machine_list_for_all_namespaces_with_http_info(self, **kwargs) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/watch/virtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/virtualmachines', 'GET', path_params, query_params, header_params, diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index a7619e16..3ed0212a 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.12.0-8-gc9f0c503".\ + "SDK Package Version: v0.12.0-18-gf6a440c8".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_disk.py b/kubevirt/models/v1_disk.py index 9f90b4db..7d813b21 100644 --- a/kubevirt/models/v1_disk.py +++ b/kubevirt/models/v1_disk.py @@ -39,8 +39,7 @@ class V1Disk(object): 'floppy': 'V1FloppyTarget', 'lun': 'V1LunTarget', 'name': 'str', - 'serial': 'str', - 'volume_name': 'str' + 'serial': 'str' } attribute_map = { @@ -52,11 +51,10 @@ class V1Disk(object): 'floppy': 'floppy', 'lun': 'lun', 'name': 'name', - 'serial': 'serial', - 'volume_name': 'volumeName' + 'serial': 'serial' } - def __init__(self, boot_order=None, cache=None, cdrom=None, dedicated_io_thread=None, disk=None, floppy=None, lun=None, name=None, serial=None, volume_name=None): + def __init__(self, boot_order=None, cache=None, cdrom=None, dedicated_io_thread=None, disk=None, floppy=None, lun=None, name=None, serial=None): """ V1Disk - a model defined in Swagger """ @@ -70,7 +68,6 @@ def __init__(self, boot_order=None, cache=None, cdrom=None, dedicated_io_thread= self._lun = None self._name = None self._serial = None - self._volume_name = None if boot_order is not None: self.boot_order = boot_order @@ -89,7 +86,6 @@ def __init__(self, boot_order=None, cache=None, cdrom=None, dedicated_io_thread= self.name = name if serial is not None: self.serial = serial - self.volume_name = volume_name @property def boot_order(self): @@ -300,31 +296,6 @@ def serial(self, serial): self._serial = serial - @property - def volume_name(self): - """ - Gets the volume_name of this V1Disk. - Name of the volume which is referenced. Must match the Name of a Volume. - - :return: The volume_name of this V1Disk. - :rtype: str - """ - return self._volume_name - - @volume_name.setter - def volume_name(self, volume_name): - """ - Sets the volume_name of this V1Disk. - Name of the volume which is referenced. Must match the Name of a Volume. - - :param volume_name: The volume_name of this V1Disk. - :type: str - """ - if volume_name is None: - raise ValueError("Invalid value for `volume_name`, must not be `None`") - - self._volume_name = volume_name - def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 1cdaa92f..345a1b8b 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.12.0-8-gc9f0c503" +VERSION = "v0.12.0-18-gf6a440c8" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b4bca3aa..c810784b 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.12.0-8-gc9f0c503" +"packageVersion": "v0.12.0-18-gf6a440c8" } From 9833f7d2d59799fc605c0799dd971e0b8d8bbce8 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 21 Jan 2019 16:08:26 +0000 Subject: [PATCH 082/521] Client Python update by Travis Build 6351 --- README.md | 2 +- docs/V1alpha1DataVolume.md | 2 +- docs/V1alpha1DataVolumeSpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1alpha1_data_volume.py | 5 ++-- kubevirt/models/v1alpha1_data_volume_spec.py | 30 +++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 39 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 3870b2d6..f7b90f3a 100644 --- a/README.md +++ b/README.md @@ -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: v0.12.0-18-gf6a440c8 +- Package version: v0.13.0-10-g7218f7bb - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1alpha1DataVolume.md b/docs/V1alpha1DataVolume.md index 073d57cb..0a8d0002 100644 --- a/docs/V1alpha1DataVolume.md +++ b/docs/V1alpha1DataVolume.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **spec** | [**V1alpha1DataVolumeSpec**](V1alpha1DataVolumeSpec.md) | | -**status** | [**V1alpha1DataVolumeStatus**](V1alpha1DataVolumeStatus.md) | | +**status** | [**V1alpha1DataVolumeStatus**](V1alpha1DataVolumeStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1DataVolumeSpec.md b/docs/V1alpha1DataVolumeSpec.md index f69e2db4..16a2537d 100644 --- a/docs/V1alpha1DataVolumeSpec.md +++ b/docs/V1alpha1DataVolumeSpec.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**content_type** | **str** | DataVolumeContentType options: \"kubevirt\", \"archive\" | [optional] **pvc** | [**V1PersistentVolumeClaimSpec**](V1PersistentVolumeClaimSpec.md) | PVC is a pointer to the PVC Spec we want to use | **source** | [**V1alpha1DataVolumeSource**](V1alpha1DataVolumeSource.md) | Source is the src of the data for the requested DataVolume | diff --git a/git_push.sh b/git_push.sh index 8e2d0b14..71653894 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.12.0-18-gf6a440c8" + release_note="Auto-generated client v0.13.0-10-g7218f7bb" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index da4bdae5..32ad23c4 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.12.0-18-gf6a440c8/python' + self.user_agent = 'Swagger-Codegen/v0.13.0-10-g7218f7bb/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 3ed0212a..494aedcb 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.12.0-18-gf6a440c8".\ + "SDK Package Version: v0.13.0-10-g7218f7bb".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1alpha1_data_volume.py b/kubevirt/models/v1alpha1_data_volume.py index 2beef13b..7d06671e 100644 --- a/kubevirt/models/v1alpha1_data_volume.py +++ b/kubevirt/models/v1alpha1_data_volume.py @@ -64,7 +64,8 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status if metadata is not None: self.metadata = metadata self.spec = spec - self.status = status + if status is not None: + self.status = status @property def api_version(self): @@ -174,8 +175,6 @@ def status(self, status): :param status: The status of this V1alpha1DataVolume. :type: V1alpha1DataVolumeStatus """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") self._status = status diff --git a/kubevirt/models/v1alpha1_data_volume_spec.py b/kubevirt/models/v1alpha1_data_volume_spec.py index 04938ff1..0820a53e 100644 --- a/kubevirt/models/v1alpha1_data_volume_spec.py +++ b/kubevirt/models/v1alpha1_data_volume_spec.py @@ -31,26 +31,54 @@ class V1alpha1DataVolumeSpec(object): and the value is json key in definition. """ swagger_types = { + 'content_type': 'str', 'pvc': 'V1PersistentVolumeClaimSpec', 'source': 'V1alpha1DataVolumeSource' } attribute_map = { + 'content_type': 'contentType', 'pvc': 'pvc', 'source': 'source' } - def __init__(self, pvc=None, source=None): + def __init__(self, content_type=None, pvc=None, source=None): """ V1alpha1DataVolumeSpec - a model defined in Swagger """ + self._content_type = None self._pvc = None self._source = None + if content_type is not None: + self.content_type = content_type self.pvc = pvc self.source = source + @property + def content_type(self): + """ + Gets the content_type of this V1alpha1DataVolumeSpec. + DataVolumeContentType options: \"kubevirt\", \"archive\" + + :return: The content_type of this V1alpha1DataVolumeSpec. + :rtype: str + """ + return self._content_type + + @content_type.setter + def content_type(self, content_type): + """ + Sets the content_type of this V1alpha1DataVolumeSpec. + DataVolumeContentType options: \"kubevirt\", \"archive\" + + :param content_type: The content_type of this V1alpha1DataVolumeSpec. + :type: str + """ + + self._content_type = content_type + @property def pvc(self): """ diff --git a/setup.py b/setup.py index 345a1b8b..da0b9813 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.12.0-18-gf6a440c8" +VERSION = "v0.13.0-10-g7218f7bb" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index c810784b..0dfc3c3c 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.12.0-18-gf6a440c8" +"packageVersion": "v0.13.0-10-g7218f7bb" } From 51365c6ba94fef91993f10d32612ecd78b0b5ae7 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 23 Jan 2019 08:10:31 +0000 Subject: [PATCH 083/521] Client Python update by Travis Build 6391 --- README.md | 3 +- docs/V1DeleteOptions.md | 1 + docs/V1ListMeta.md | 2 +- docs/V1PersistentVolumeClaimSpec.md | 1 + docs/V1TypedLocalObjectReference.md | 12 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_delete_options.py | 30 ++- kubevirt/models/v1_list_meta.py | 4 +- .../models/v1_persistent_volume_claim_spec.py | 30 ++- .../models/v1_typed_local_object_reference.py | 184 ++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_typed_local_object_reference.py | 44 +++++ 18 files changed, 315 insertions(+), 11 deletions(-) create mode 100644 docs/V1TypedLocalObjectReference.md create mode 100644 kubevirt/models/v1_typed_local_object_reference.py create mode 100644 test/test_v1_typed_local_object_reference.py diff --git a/README.md b/README.md index f7b90f3a..4724eb5e 100644 --- a/README.md +++ b/README.md @@ -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: v0.13.0-10-g7218f7bb +- Package version: v0.13.0-24-g2f1714d0 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -218,6 +218,7 @@ Class | Method | HTTP request | Description - [V1TCPSocketAction](docs/V1TCPSocketAction.md) - [V1Timer](docs/V1Timer.md) - [V1Toleration](docs/V1Toleration.md) + - [V1TypedLocalObjectReference](docs/V1TypedLocalObjectReference.md) - [V1VirtualMachine](docs/V1VirtualMachine.md) - [V1VirtualMachineCondition](docs/V1VirtualMachineCondition.md) - [V1VirtualMachineInstance](docs/V1VirtualMachineInstance.md) diff --git a/docs/V1DeleteOptions.md b/docs/V1DeleteOptions.md index 4eb255b7..c50cd2aa 100644 --- a/docs/V1DeleteOptions.md +++ b/docs/V1DeleteOptions.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] +**dry_run** | **list[str]** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **orphan_dependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] diff --git a/docs/V1ListMeta.md b/docs/V1ListMeta.md index 10bd3a52..9d813c9e 100644 --- a/docs/V1ListMeta.md +++ b/docs/V1ListMeta.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_continue** | **str** | continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response. | [optional] +**_continue** | **str** | continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. | [optional] **resource_version** | **str** | String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency | [optional] **self_link** | **str** | selfLink is a URL representing this object. Populated by the system. Read-only. | [optional] diff --git a/docs/V1PersistentVolumeClaimSpec.md b/docs/V1PersistentVolumeClaimSpec.md index 54d48a98..9d83b6b0 100644 --- a/docs/V1PersistentVolumeClaimSpec.md +++ b/docs/V1PersistentVolumeClaimSpec.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **access_modes** | [**list[V1PersistentVolumeAccessMode]**](V1PersistentVolumeAccessMode.md) | AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] +**data_source** | [**V1TypedLocalObjectReference**](V1TypedLocalObjectReference.md) | This field requires the VolumeSnapshotDataSource alpha feature gate to be enabled and currently VolumeSnapshot is the only supported data source. If the provisioner can support VolumeSnapshot data source, it will create a new volume and data will be restored to the volume at the same time. If the provisioner does not support VolumeSnapshot data source, volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. | [optional] **resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources | [optional] **selector** | [**V1LabelSelector**](V1LabelSelector.md) | A label query over volumes to consider for binding. | [optional] **storage_class_name** | **str** | Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] diff --git a/docs/V1TypedLocalObjectReference.md b/docs/V1TypedLocalObjectReference.md new file mode 100644 index 00000000..edd54e82 --- /dev/null +++ b/docs/V1TypedLocalObjectReference.md @@ -0,0 +1,12 @@ +# V1TypedLocalObjectReference + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_group** | **str** | APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. | +**kind** | **str** | Kind is the type of resource being referenced | +**name** | **str** | Name is the name of resource being referenced | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 71653894..48cdd08d 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.13.0-10-g7218f7bb" + release_note="Auto-generated client v0.13.0-24-g2f1714d0" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index d9beece6..438dfc2c 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -250,6 +250,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_toleration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_toleration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Toleration.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_typed_local_object_reference.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_typed_local_object_reference.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1TypedLocalObjectReference.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachine.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 9a5885a1..80bcc6ac 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -93,6 +93,7 @@ from .models.v1_tcp_socket_action import V1TCPSocketAction from .models.v1_timer import V1Timer from .models.v1_toleration import V1Toleration +from .models.v1_typed_local_object_reference import V1TypedLocalObjectReference from .models.v1_virtual_machine import V1VirtualMachine from .models.v1_virtual_machine_condition import V1VirtualMachineCondition from .models.v1_virtual_machine_instance import V1VirtualMachineInstance diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 32ad23c4..a543732d 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.13.0-10-g7218f7bb/python' + self.user_agent = 'Swagger-Codegen/v0.13.0-24-g2f1714d0/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 494aedcb..efed5340 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.13.0-10-g7218f7bb".\ + "SDK Package Version: v0.13.0-24-g2f1714d0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index bfa2f7f7..6bcd7578 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -93,6 +93,7 @@ from .v1_tcp_socket_action import V1TCPSocketAction from .v1_timer import V1Timer from .v1_toleration import V1Toleration +from .v1_typed_local_object_reference import V1TypedLocalObjectReference from .v1_virtual_machine import V1VirtualMachine from .v1_virtual_machine_condition import V1VirtualMachineCondition from .v1_virtual_machine_instance import V1VirtualMachineInstance diff --git a/kubevirt/models/v1_delete_options.py b/kubevirt/models/v1_delete_options.py index fba0c334..4b4a1f56 100644 --- a/kubevirt/models/v1_delete_options.py +++ b/kubevirt/models/v1_delete_options.py @@ -32,6 +32,7 @@ class V1DeleteOptions(object): """ swagger_types = { 'api_version': 'str', + 'dry_run': 'list[str]', 'grace_period_seconds': 'int', 'kind': 'str', 'orphan_dependents': 'bool', @@ -41,6 +42,7 @@ class V1DeleteOptions(object): attribute_map = { 'api_version': 'apiVersion', + 'dry_run': 'dryRun', 'grace_period_seconds': 'gracePeriodSeconds', 'kind': 'kind', 'orphan_dependents': 'orphanDependents', @@ -48,12 +50,13 @@ class V1DeleteOptions(object): 'propagation_policy': 'propagationPolicy' } - def __init__(self, api_version=None, grace_period_seconds=None, kind=None, orphan_dependents=None, preconditions=None, propagation_policy=None): + def __init__(self, api_version=None, dry_run=None, grace_period_seconds=None, kind=None, orphan_dependents=None, preconditions=None, propagation_policy=None): """ V1DeleteOptions - a model defined in Swagger """ self._api_version = None + self._dry_run = None self._grace_period_seconds = None self._kind = None self._orphan_dependents = None @@ -62,6 +65,8 @@ def __init__(self, api_version=None, grace_period_seconds=None, kind=None, orpha if api_version is not None: self.api_version = api_version + if dry_run is not None: + self.dry_run = dry_run if grace_period_seconds is not None: self.grace_period_seconds = grace_period_seconds if kind is not None: @@ -96,6 +101,29 @@ def api_version(self, api_version): self._api_version = api_version + @property + def dry_run(self): + """ + Gets the dry_run of this V1DeleteOptions. + When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + + :return: The dry_run of this V1DeleteOptions. + :rtype: list[str] + """ + return self._dry_run + + @dry_run.setter + def dry_run(self, dry_run): + """ + Sets the dry_run of this V1DeleteOptions. + When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + + :param dry_run: The dry_run of this V1DeleteOptions. + :type: list[str] + """ + + self._dry_run = dry_run + @property def grace_period_seconds(self): """ diff --git a/kubevirt/models/v1_list_meta.py b/kubevirt/models/v1_list_meta.py index 071e0a13..dc0e8fdc 100644 --- a/kubevirt/models/v1_list_meta.py +++ b/kubevirt/models/v1_list_meta.py @@ -62,7 +62,7 @@ def __init__(self, _continue=None, resource_version=None, self_link=None): def _continue(self): """ Gets the _continue of this V1ListMeta. - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response. + continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. :return: The _continue of this V1ListMeta. :rtype: str @@ -73,7 +73,7 @@ def _continue(self): def _continue(self, _continue): """ Sets the _continue of this V1ListMeta. - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response. + continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. :param _continue: The _continue of this V1ListMeta. :type: str diff --git a/kubevirt/models/v1_persistent_volume_claim_spec.py b/kubevirt/models/v1_persistent_volume_claim_spec.py index c3d3b2f4..c633628b 100644 --- a/kubevirt/models/v1_persistent_volume_claim_spec.py +++ b/kubevirt/models/v1_persistent_volume_claim_spec.py @@ -32,6 +32,7 @@ class V1PersistentVolumeClaimSpec(object): """ swagger_types = { 'access_modes': 'list[V1PersistentVolumeAccessMode]', + 'data_source': 'V1TypedLocalObjectReference', 'resources': 'V1ResourceRequirements', 'selector': 'V1LabelSelector', 'storage_class_name': 'str', @@ -41,6 +42,7 @@ class V1PersistentVolumeClaimSpec(object): attribute_map = { 'access_modes': 'accessModes', + 'data_source': 'dataSource', 'resources': 'resources', 'selector': 'selector', 'storage_class_name': 'storageClassName', @@ -48,12 +50,13 @@ class V1PersistentVolumeClaimSpec(object): 'volume_name': 'volumeName' } - def __init__(self, access_modes=None, resources=None, selector=None, storage_class_name=None, volume_mode=None, volume_name=None): + def __init__(self, access_modes=None, data_source=None, resources=None, selector=None, storage_class_name=None, volume_mode=None, volume_name=None): """ V1PersistentVolumeClaimSpec - a model defined in Swagger """ self._access_modes = None + self._data_source = None self._resources = None self._selector = None self._storage_class_name = None @@ -62,6 +65,8 @@ def __init__(self, access_modes=None, resources=None, selector=None, storage_cla if access_modes is not None: self.access_modes = access_modes + if data_source is not None: + self.data_source = data_source if resources is not None: self.resources = resources if selector is not None: @@ -96,6 +101,29 @@ def access_modes(self, access_modes): self._access_modes = access_modes + @property + def data_source(self): + """ + Gets the data_source of this V1PersistentVolumeClaimSpec. + This field requires the VolumeSnapshotDataSource alpha feature gate to be enabled and currently VolumeSnapshot is the only supported data source. If the provisioner can support VolumeSnapshot data source, it will create a new volume and data will be restored to the volume at the same time. If the provisioner does not support VolumeSnapshot data source, volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. + + :return: The data_source of this V1PersistentVolumeClaimSpec. + :rtype: V1TypedLocalObjectReference + """ + return self._data_source + + @data_source.setter + def data_source(self, data_source): + """ + Sets the data_source of this V1PersistentVolumeClaimSpec. + This field requires the VolumeSnapshotDataSource alpha feature gate to be enabled and currently VolumeSnapshot is the only supported data source. If the provisioner can support VolumeSnapshot data source, it will create a new volume and data will be restored to the volume at the same time. If the provisioner does not support VolumeSnapshot data source, volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. + + :param data_source: The data_source of this V1PersistentVolumeClaimSpec. + :type: V1TypedLocalObjectReference + """ + + self._data_source = data_source + @property def resources(self): """ diff --git a/kubevirt/models/v1_typed_local_object_reference.py b/kubevirt/models/v1_typed_local_object_reference.py new file mode 100644 index 00000000..9e31ef21 --- /dev/null +++ b/kubevirt/models/v1_typed_local_object_reference.py @@ -0,0 +1,184 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1TypedLocalObjectReference(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_group': 'str', + 'kind': 'str', + 'name': 'str' + } + + attribute_map = { + 'api_group': 'apiGroup', + 'kind': 'kind', + 'name': 'name' + } + + def __init__(self, api_group=None, kind=None, name=None): + """ + V1TypedLocalObjectReference - a model defined in Swagger + """ + + self._api_group = None + self._kind = None + self._name = None + + self.api_group = api_group + self.kind = kind + self.name = name + + @property + def api_group(self): + """ + Gets the api_group of this V1TypedLocalObjectReference. + APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + + :return: The api_group of this V1TypedLocalObjectReference. + :rtype: str + """ + return self._api_group + + @api_group.setter + def api_group(self, api_group): + """ + Sets the api_group of this V1TypedLocalObjectReference. + APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + + :param api_group: The api_group of this V1TypedLocalObjectReference. + :type: str + """ + if api_group is None: + raise ValueError("Invalid value for `api_group`, must not be `None`") + + self._api_group = api_group + + @property + def kind(self): + """ + Gets the kind of this V1TypedLocalObjectReference. + Kind is the type of resource being referenced + + :return: The kind of this V1TypedLocalObjectReference. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1TypedLocalObjectReference. + Kind is the type of resource being referenced + + :param kind: The kind of this V1TypedLocalObjectReference. + :type: str + """ + if kind is None: + raise ValueError("Invalid value for `kind`, must not be `None`") + + self._kind = kind + + @property + def name(self): + """ + Gets the name of this V1TypedLocalObjectReference. + Name is the name of resource being referenced + + :return: The name of this V1TypedLocalObjectReference. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1TypedLocalObjectReference. + Name is the name of resource being referenced + + :param name: The name of this V1TypedLocalObjectReference. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1TypedLocalObjectReference): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index da0b9813..7fd63e2d 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.13.0-10-g7218f7bb" +VERSION = "v0.13.0-24-g2f1714d0" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 0dfc3c3c..1f54af40 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.13.0-10-g7218f7bb" +"packageVersion": "v0.13.0-24-g2f1714d0" } diff --git a/test/test_v1_typed_local_object_reference.py b/test/test_v1_typed_local_object_reference.py new file mode 100644 index 00000000..11ea7c71 --- /dev/null +++ b/test/test_v1_typed_local_object_reference.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_typed_local_object_reference import V1TypedLocalObjectReference + + +class TestV1TypedLocalObjectReference(unittest.TestCase): + """ V1TypedLocalObjectReference unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1TypedLocalObjectReference(self): + """ + Test V1TypedLocalObjectReference + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_typed_local_object_reference.V1TypedLocalObjectReference() + pass + + +if __name__ == '__main__': + unittest.main() From b84958edcd727a914378115b2c0ce8417c01d0c0 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 30 Jan 2019 19:22:51 +0000 Subject: [PATCH 084/521] Client Python update by Travis Build 6502 --- README.md | 3 +- docs/V1Bootloader.md | 11 +++ docs/V1DomainSpec.md | 2 +- docs/V1Features.md | 1 + docs/V1Firmware.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 51 ++++++++++ kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_bootloader.py | 153 ++++++++++++++++++++++++++++++ kubevirt/models/v1_domain_spec.py | 4 +- kubevirt/models/v1_features.py | 34 ++++++- kubevirt/models/v1_firmware.py | 30 +++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_bootloader.py | 44 +++++++++ 18 files changed, 333 insertions(+), 13 deletions(-) create mode 100644 docs/V1Bootloader.md create mode 100644 kubevirt/models/v1_bootloader.py create mode 100644 test/test_v1_bootloader.py diff --git a/README.md b/README.md index 4724eb5e..f4eef883 100644 --- a/README.md +++ b/README.md @@ -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: v0.13.0-24-g2f1714d0 +- Package version: v0.13.0-90-ga2b7fa74 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -144,6 +144,7 @@ Class | Method | HTTP request | Description - [V1APIResource](docs/V1APIResource.md) - [V1APIResourceList](docs/V1APIResourceList.md) - [V1Affinity](docs/V1Affinity.md) + - [V1Bootloader](docs/V1Bootloader.md) - [V1CDRomTarget](docs/V1CDRomTarget.md) - [V1CPU](docs/V1CPU.md) - [V1Clock](docs/V1Clock.md) diff --git a/docs/V1Bootloader.md b/docs/V1Bootloader.md new file mode 100644 index 00000000..3575404d --- /dev/null +++ b/docs/V1Bootloader.md @@ -0,0 +1,11 @@ +# V1Bootloader + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bios** | [**V1BIOS**](V1BIOS.md) | If set (default), BIOS will be used. +optional | [optional] +**efi** | [**V1EFI**](V1EFI.md) | If set, EFI will be used instead of BIOS. +optional | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1DomainSpec.md b/docs/V1DomainSpec.md index 51f36212..e0370f02 100644 --- a/docs/V1DomainSpec.md +++ b/docs/V1DomainSpec.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **clock** | [**V1Clock**](V1Clock.md) | Clock sets the clock and timers of the vmi. +optional | [optional] **cpu** | [**V1CPU**](V1CPU.md) | CPU allow specified the detailed CPU topology inside the vmi. +optional | [optional] **devices** | [**V1Devices**](V1Devices.md) | Devices allows adding disks, network interfaces, ... | -**features** | [**V1Features**](V1Features.md) | Features like acpi, apic, hyperv. +optional | [optional] +**features** | [**V1Features**](V1Features.md) | Features like acpi, apic, hyperv, smm. +optional | [optional] **firmware** | [**V1Firmware**](V1Firmware.md) | Firmware. +optional | [optional] **io_threads_policy** | [**V1IOThreadsPolicy**](V1IOThreadsPolicy.md) | Controls whether or not disks will share IOThreads. Omitting IOThreadsPolicy disables use of IOThreads. One of: shared, auto +optional | [optional] **machine** | [**V1Machine**](V1Machine.md) | Machine type. +optional | [optional] diff --git a/docs/V1Features.md b/docs/V1Features.md index e260cee3..43d73bc6 100644 --- a/docs/V1Features.md +++ b/docs/V1Features.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **acpi** | [**V1FeatureState**](V1FeatureState.md) | ACPI enables/disables ACPI insidejsondata guest. Defaults to enabled. +optional | [optional] **apic** | [**V1FeatureAPIC**](V1FeatureAPIC.md) | Defaults to the machine type setting. +optional | [optional] **hyperv** | [**V1FeatureHyperv**](V1FeatureHyperv.md) | Defaults to the machine type setting. +optional | [optional] +**smm** | [**V1FeatureState**](V1FeatureState.md) | SMM enables/disables System Management Mode. TSEG not yet implemented. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Firmware.md b/docs/V1Firmware.md index a833e3c7..ef51ac7a 100644 --- a/docs/V1Firmware.md +++ b/docs/V1Firmware.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**bootloader** | [**V1Bootloader**](V1Bootloader.md) | Settings to control the bootloader that is used. +optional | [optional] **uuid** | **str** | UUID reported by the vmi bios. Defaults to a random generated uid. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 48cdd08d..55fc545f 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.13.0-24-g2f1714d0" + release_note="Auto-generated client v0.13.0-90-ga2b7fa74" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 438dfc2c..4d709d66 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -28,6 +28,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_affinity.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_affinity.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Affinity.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_bootloader.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_bootloader.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Bootloader.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_cd_rom_target.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_cd_rom_target.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CDRomTarget.md @@ -556,6 +559,54 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_group_0` [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_resources_0` [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 80bcc6ac..50385998 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -19,6 +19,7 @@ from .models.v1_api_resource import V1APIResource from .models.v1_api_resource_list import V1APIResourceList from .models.v1_affinity import V1Affinity +from .models.v1_bootloader import V1Bootloader from .models.v1_cd_rom_target import V1CDRomTarget from .models.v1_cpu import V1CPU from .models.v1_clock import V1Clock diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index a543732d..4587d82e 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.13.0-24-g2f1714d0/python' + self.user_agent = 'Swagger-Codegen/v0.13.0-90-ga2b7fa74/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index efed5340..52b0ac5d 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.13.0-24-g2f1714d0".\ + "SDK Package Version: v0.13.0-90-ga2b7fa74".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 6bcd7578..a1d57690 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -19,6 +19,7 @@ from .v1_api_resource import V1APIResource from .v1_api_resource_list import V1APIResourceList from .v1_affinity import V1Affinity +from .v1_bootloader import V1Bootloader from .v1_cd_rom_target import V1CDRomTarget from .v1_cpu import V1CPU from .v1_clock import V1Clock diff --git a/kubevirt/models/v1_bootloader.py b/kubevirt/models/v1_bootloader.py new file mode 100644 index 00000000..354fb051 --- /dev/null +++ b/kubevirt/models/v1_bootloader.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Bootloader(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'bios': 'V1BIOS', + 'efi': 'V1EFI' + } + + attribute_map = { + 'bios': 'bios', + 'efi': 'efi' + } + + def __init__(self, bios=None, efi=None): + """ + V1Bootloader - a model defined in Swagger + """ + + self._bios = None + self._efi = None + + if bios is not None: + self.bios = bios + if efi is not None: + self.efi = efi + + @property + def bios(self): + """ + Gets the bios of this V1Bootloader. + If set (default), BIOS will be used. +optional + + :return: The bios of this V1Bootloader. + :rtype: V1BIOS + """ + return self._bios + + @bios.setter + def bios(self, bios): + """ + Sets the bios of this V1Bootloader. + If set (default), BIOS will be used. +optional + + :param bios: The bios of this V1Bootloader. + :type: V1BIOS + """ + + self._bios = bios + + @property + def efi(self): + """ + Gets the efi of this V1Bootloader. + If set, EFI will be used instead of BIOS. +optional + + :return: The efi of this V1Bootloader. + :rtype: V1EFI + """ + return self._efi + + @efi.setter + def efi(self, efi): + """ + Sets the efi of this V1Bootloader. + If set, EFI will be used instead of BIOS. +optional + + :param efi: The efi of this V1Bootloader. + :type: V1EFI + """ + + self._efi = efi + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1Bootloader): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_domain_spec.py b/kubevirt/models/v1_domain_spec.py index aa7ffb89..ee7d10d5 100644 --- a/kubevirt/models/v1_domain_spec.py +++ b/kubevirt/models/v1_domain_spec.py @@ -162,7 +162,7 @@ def devices(self, devices): def features(self): """ Gets the features of this V1DomainSpec. - Features like acpi, apic, hyperv. +optional + Features like acpi, apic, hyperv, smm. +optional :return: The features of this V1DomainSpec. :rtype: V1Features @@ -173,7 +173,7 @@ def features(self): def features(self, features): """ Sets the features of this V1DomainSpec. - Features like acpi, apic, hyperv. +optional + Features like acpi, apic, hyperv, smm. +optional :param features: The features of this V1DomainSpec. :type: V1Features diff --git a/kubevirt/models/v1_features.py b/kubevirt/models/v1_features.py index 73c5f2fa..374c1b0a 100644 --- a/kubevirt/models/v1_features.py +++ b/kubevirt/models/v1_features.py @@ -33,16 +33,18 @@ class V1Features(object): swagger_types = { 'acpi': 'V1FeatureState', 'apic': 'V1FeatureAPIC', - 'hyperv': 'V1FeatureHyperv' + 'hyperv': 'V1FeatureHyperv', + 'smm': 'V1FeatureState' } attribute_map = { 'acpi': 'acpi', 'apic': 'apic', - 'hyperv': 'hyperv' + 'hyperv': 'hyperv', + 'smm': 'smm' } - def __init__(self, acpi=None, apic=None, hyperv=None): + def __init__(self, acpi=None, apic=None, hyperv=None, smm=None): """ V1Features - a model defined in Swagger """ @@ -50,6 +52,7 @@ def __init__(self, acpi=None, apic=None, hyperv=None): self._acpi = None self._apic = None self._hyperv = None + self._smm = None if acpi is not None: self.acpi = acpi @@ -57,6 +60,8 @@ def __init__(self, acpi=None, apic=None, hyperv=None): self.apic = apic if hyperv is not None: self.hyperv = hyperv + if smm is not None: + self.smm = smm @property def acpi(self): @@ -127,6 +132,29 @@ def hyperv(self, hyperv): self._hyperv = hyperv + @property + def smm(self): + """ + Gets the smm of this V1Features. + SMM enables/disables System Management Mode. TSEG not yet implemented. +optional + + :return: The smm of this V1Features. + :rtype: V1FeatureState + """ + return self._smm + + @smm.setter + def smm(self, smm): + """ + Sets the smm of this V1Features. + SMM enables/disables System Management Mode. TSEG not yet implemented. +optional + + :param smm: The smm of this V1Features. + :type: V1FeatureState + """ + + self._smm = smm + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_firmware.py b/kubevirt/models/v1_firmware.py index e3eba2f3..a2182d8c 100644 --- a/kubevirt/models/v1_firmware.py +++ b/kubevirt/models/v1_firmware.py @@ -31,23 +31,51 @@ class V1Firmware(object): and the value is json key in definition. """ swagger_types = { + 'bootloader': 'V1Bootloader', 'uuid': 'str' } attribute_map = { + 'bootloader': 'bootloader', 'uuid': 'uuid' } - def __init__(self, uuid=None): + def __init__(self, bootloader=None, uuid=None): """ V1Firmware - a model defined in Swagger """ + self._bootloader = None self._uuid = None + if bootloader is not None: + self.bootloader = bootloader if uuid is not None: self.uuid = uuid + @property + def bootloader(self): + """ + Gets the bootloader of this V1Firmware. + Settings to control the bootloader that is used. +optional + + :return: The bootloader of this V1Firmware. + :rtype: V1Bootloader + """ + return self._bootloader + + @bootloader.setter + def bootloader(self, bootloader): + """ + Sets the bootloader of this V1Firmware. + Settings to control the bootloader that is used. +optional + + :param bootloader: The bootloader of this V1Firmware. + :type: V1Bootloader + """ + + self._bootloader = bootloader + @property def uuid(self): """ diff --git a/setup.py b/setup.py index 7fd63e2d..970778c1 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.13.0-24-g2f1714d0" +VERSION = "v0.13.0-90-ga2b7fa74" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 1f54af40..56a89564 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.13.0-24-g2f1714d0" +"packageVersion": "v0.13.0-90-ga2b7fa74" } diff --git a/test/test_v1_bootloader.py b/test/test_v1_bootloader.py new file mode 100644 index 00000000..e360be84 --- /dev/null +++ b/test/test_v1_bootloader.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_bootloader import V1Bootloader + + +class TestV1Bootloader(unittest.TestCase): + """ V1Bootloader unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Bootloader(self): + """ + Test V1Bootloader + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_bootloader.V1Bootloader() + pass + + +if __name__ == '__main__': + unittest.main() From de7162c78e3cf815ef0e05adce650aac1b94ef4b Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 30 Jan 2019 23:43:25 +0000 Subject: [PATCH 085/521] Client Python update by Travis Build 6507 --- README.md | 2 +- docs/V1CloudInitNoCloudSource.md | 3 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../models/v1_cloud_init_no_cloud_source.py | 86 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 94 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f4eef883..e54fdb22 100644 --- a/README.md +++ b/README.md @@ -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: v0.13.0-90-ga2b7fa74 +- Package version: v0.13.0-98-g150f4fb7 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1CloudInitNoCloudSource.md b/docs/V1CloudInitNoCloudSource.md index c02bfe37..1592dbe9 100644 --- a/docs/V1CloudInitNoCloudSource.md +++ b/docs/V1CloudInitNoCloudSource.md @@ -3,6 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**network_data** | **str** | NetworkData contains NoCloud inline cloud-init networkdata. + optional | [optional] +**network_data_base64** | **str** | NetworkDataBase64 contains NoCloud cloud-init networkdata as a base64 encoded string. + optional | [optional] +**network_data_secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | NetworkDataSecretRef references a k8s secret that contains NoCloud networkdata. + optional | [optional] **secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | UserDataSecretRef references a k8s secret that contains NoCloud userdata. + optional | [optional] **user_data** | **str** | UserData contains NoCloud inline cloud-init userdata. + optional | [optional] **user_data_base64** | **str** | UserDataBase64 contains NoCloud cloud-init userdata as a base64 encoded string. + optional | [optional] diff --git a/git_push.sh b/git_push.sh index 55fc545f..01eb0628 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.13.0-90-ga2b7fa74" + release_note="Auto-generated client v0.13.0-98-g150f4fb7" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 4587d82e..78cd5b45 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.13.0-90-ga2b7fa74/python' + self.user_agent = 'Swagger-Codegen/v0.13.0-98-g150f4fb7/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 52b0ac5d..5232e824 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.13.0-90-ga2b7fa74".\ + "SDK Package Version: v0.13.0-98-g150f4fb7".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_cloud_init_no_cloud_source.py b/kubevirt/models/v1_cloud_init_no_cloud_source.py index 60d5e83c..dd2c10d1 100644 --- a/kubevirt/models/v1_cloud_init_no_cloud_source.py +++ b/kubevirt/models/v1_cloud_init_no_cloud_source.py @@ -31,26 +31,41 @@ class V1CloudInitNoCloudSource(object): and the value is json key in definition. """ swagger_types = { + 'network_data': 'str', + 'network_data_base64': 'str', + 'network_data_secret_ref': 'V1LocalObjectReference', 'secret_ref': 'V1LocalObjectReference', 'user_data': 'str', 'user_data_base64': 'str' } attribute_map = { + 'network_data': 'networkData', + 'network_data_base64': 'networkDataBase64', + 'network_data_secret_ref': 'networkDataSecretRef', 'secret_ref': 'secretRef', 'user_data': 'userData', 'user_data_base64': 'userDataBase64' } - def __init__(self, secret_ref=None, user_data=None, user_data_base64=None): + def __init__(self, network_data=None, network_data_base64=None, network_data_secret_ref=None, secret_ref=None, user_data=None, user_data_base64=None): """ V1CloudInitNoCloudSource - a model defined in Swagger """ + self._network_data = None + self._network_data_base64 = None + self._network_data_secret_ref = None self._secret_ref = None self._user_data = None self._user_data_base64 = None + if network_data is not None: + self.network_data = network_data + if network_data_base64 is not None: + self.network_data_base64 = network_data_base64 + if network_data_secret_ref is not None: + self.network_data_secret_ref = network_data_secret_ref if secret_ref is not None: self.secret_ref = secret_ref if user_data is not None: @@ -58,6 +73,75 @@ def __init__(self, secret_ref=None, user_data=None, user_data_base64=None): if user_data_base64 is not None: self.user_data_base64 = user_data_base64 + @property + def network_data(self): + """ + Gets the network_data of this V1CloudInitNoCloudSource. + NetworkData contains NoCloud inline cloud-init networkdata. + optional + + :return: The network_data of this V1CloudInitNoCloudSource. + :rtype: str + """ + return self._network_data + + @network_data.setter + def network_data(self, network_data): + """ + Sets the network_data of this V1CloudInitNoCloudSource. + NetworkData contains NoCloud inline cloud-init networkdata. + optional + + :param network_data: The network_data of this V1CloudInitNoCloudSource. + :type: str + """ + + self._network_data = network_data + + @property + def network_data_base64(self): + """ + Gets the network_data_base64 of this V1CloudInitNoCloudSource. + NetworkDataBase64 contains NoCloud cloud-init networkdata as a base64 encoded string. + optional + + :return: The network_data_base64 of this V1CloudInitNoCloudSource. + :rtype: str + """ + return self._network_data_base64 + + @network_data_base64.setter + def network_data_base64(self, network_data_base64): + """ + Sets the network_data_base64 of this V1CloudInitNoCloudSource. + NetworkDataBase64 contains NoCloud cloud-init networkdata as a base64 encoded string. + optional + + :param network_data_base64: The network_data_base64 of this V1CloudInitNoCloudSource. + :type: str + """ + + self._network_data_base64 = network_data_base64 + + @property + def network_data_secret_ref(self): + """ + Gets the network_data_secret_ref of this V1CloudInitNoCloudSource. + NetworkDataSecretRef references a k8s secret that contains NoCloud networkdata. + optional + + :return: The network_data_secret_ref of this V1CloudInitNoCloudSource. + :rtype: V1LocalObjectReference + """ + return self._network_data_secret_ref + + @network_data_secret_ref.setter + def network_data_secret_ref(self, network_data_secret_ref): + """ + Sets the network_data_secret_ref of this V1CloudInitNoCloudSource. + NetworkDataSecretRef references a k8s secret that contains NoCloud networkdata. + optional + + :param network_data_secret_ref: The network_data_secret_ref of this V1CloudInitNoCloudSource. + :type: V1LocalObjectReference + """ + + self._network_data_secret_ref = network_data_secret_ref + @property def secret_ref(self): """ diff --git a/setup.py b/setup.py index 970778c1..646b5f4a 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.13.0-90-ga2b7fa74" +VERSION = "v0.13.0-98-g150f4fb7" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 56a89564..b7441d38 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.13.0-90-ga2b7fa74" +"packageVersion": "v0.13.0-98-g150f4fb7" } From 6e64c47cd3306f22bf8110a9e2bc18a4705980c3 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 5 Feb 2019 11:35:15 +0000 Subject: [PATCH 086/521] Client Python update by Travis Build 6567 --- README.md | 4 +- docs/V1PodDNSConfig.md | 12 ++ docs/V1PodDNSConfigOption.md | 11 ++ docs/V1VirtualMachineInstanceSpec.md | 2 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 + kubevirt/__init__.py | 2 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 + kubevirt/models/v1_pod_dns_config.py | 181 ++++++++++++++++++ kubevirt/models/v1_pod_dns_config_option.py | 151 +++++++++++++++ .../v1_virtual_machine_instance_spec.py | 58 +++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_pod_dns_config.py | 44 +++++ test/test_v1_pod_dns_config_option.py | 44 +++++ 17 files changed, 520 insertions(+), 7 deletions(-) create mode 100644 docs/V1PodDNSConfig.md create mode 100644 docs/V1PodDNSConfigOption.md create mode 100644 kubevirt/models/v1_pod_dns_config.py create mode 100644 kubevirt/models/v1_pod_dns_config_option.py create mode 100644 test/test_v1_pod_dns_config.py create mode 100644 test/test_v1_pod_dns_config_option.py diff --git a/README.md b/README.md index e54fdb22..b688b705 100644 --- a/README.md +++ b/README.md @@ -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: v0.13.0-98-g150f4fb7 +- Package version: v0.14.0-14-gcd8426a3 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -202,6 +202,8 @@ Class | Method | HTTP request | Description - [V1PodAffinity](docs/V1PodAffinity.md) - [V1PodAffinityTerm](docs/V1PodAffinityTerm.md) - [V1PodAntiAffinity](docs/V1PodAntiAffinity.md) + - [V1PodDNSConfig](docs/V1PodDNSConfig.md) + - [V1PodDNSConfigOption](docs/V1PodDNSConfigOption.md) - [V1PodNetwork](docs/V1PodNetwork.md) - [V1Port](docs/V1Port.md) - [V1Preconditions](docs/V1Preconditions.md) diff --git a/docs/V1PodDNSConfig.md b/docs/V1PodDNSConfig.md new file mode 100644 index 00000000..c3dabae3 --- /dev/null +++ b/docs/V1PodDNSConfig.md @@ -0,0 +1,12 @@ +# V1PodDNSConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nameservers** | **list[str]** | A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. | [optional] +**options** | [**list[V1PodDNSConfigOption]**](V1PodDNSConfigOption.md) | A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. | [optional] +**searches** | **list[str]** | A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PodDNSConfigOption.md b/docs/V1PodDNSConfigOption.md new file mode 100644 index 00000000..f6d6114f --- /dev/null +++ b/docs/V1PodDNSConfigOption.md @@ -0,0 +1,11 @@ +# V1PodDNSConfigOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Required. | [optional] +**value** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceSpec.md b/docs/V1VirtualMachineInstanceSpec.md index b70c9a6b..9014864b 100644 --- a/docs/V1VirtualMachineInstanceSpec.md +++ b/docs/V1VirtualMachineInstanceSpec.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **affinity** | [**V1Affinity**](V1Affinity.md) | If affinity is specifies, obey all the affinity rules | [optional] +**dns_config** | [**V1PodDNSConfig**](V1PodDNSConfig.md) | Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. +optional | [optional] +**dns_policy** | **str** | Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. +optional | [optional] **domain** | [**V1DomainSpec**](V1DomainSpec.md) | Specification of the desired behavior of the VirtualMachineInstance on the host. | **hostname** | **str** | Specifies the hostname of the vmi If not specified, the hostname will be set to the name of the vmi, if dhcp or cloud-init is configured properly. +optional | [optional] **liveness_probe** | [**V1Probe**](V1Probe.md) | Periodic probe of VirtualMachineInstance liveness. VirtualmachineInstances will be stopped if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional | [optional] diff --git a/git_push.sh b/git_push.sh index 01eb0628..76a68d9b 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.13.0-98-g150f4fb7" + release_note="Auto-generated client v0.14.0-14-gcd8426a3" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 4d709d66..72618dfb 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -202,6 +202,12 @@ 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_pod_anti_affinity.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pod_anti_affinity.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PodAntiAffinity.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_pod_dns_config.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pod_dns_config.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PodDNSConfig.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_pod_dns_config_option.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pod_dns_config_option.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PodDNSConfigOption.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_pod_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pod_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PodNetwork.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 50385998..8916d8f1 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -77,6 +77,8 @@ from .models.v1_pod_affinity import V1PodAffinity from .models.v1_pod_affinity_term import V1PodAffinityTerm from .models.v1_pod_anti_affinity import V1PodAntiAffinity +from .models.v1_pod_dns_config import V1PodDNSConfig +from .models.v1_pod_dns_config_option import V1PodDNSConfigOption from .models.v1_pod_network import V1PodNetwork from .models.v1_port import V1Port from .models.v1_preconditions import V1Preconditions diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 78cd5b45..f906fc26 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.13.0-98-g150f4fb7/python' + self.user_agent = 'Swagger-Codegen/v0.14.0-14-gcd8426a3/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 5232e824..3ce9f08c 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.13.0-98-g150f4fb7".\ + "SDK Package Version: v0.14.0-14-gcd8426a3".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index a1d57690..cf33e478 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -77,6 +77,8 @@ from .v1_pod_affinity import V1PodAffinity from .v1_pod_affinity_term import V1PodAffinityTerm from .v1_pod_anti_affinity import V1PodAntiAffinity +from .v1_pod_dns_config import V1PodDNSConfig +from .v1_pod_dns_config_option import V1PodDNSConfigOption from .v1_pod_network import V1PodNetwork from .v1_port import V1Port from .v1_preconditions import V1Preconditions diff --git a/kubevirt/models/v1_pod_dns_config.py b/kubevirt/models/v1_pod_dns_config.py new file mode 100644 index 00000000..846f5401 --- /dev/null +++ b/kubevirt/models/v1_pod_dns_config.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PodDNSConfig(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'nameservers': 'list[str]', + 'options': 'list[V1PodDNSConfigOption]', + 'searches': 'list[str]' + } + + attribute_map = { + 'nameservers': 'nameservers', + 'options': 'options', + 'searches': 'searches' + } + + def __init__(self, nameservers=None, options=None, searches=None): + """ + V1PodDNSConfig - a model defined in Swagger + """ + + self._nameservers = None + self._options = None + self._searches = None + + if nameservers is not None: + self.nameservers = nameservers + if options is not None: + self.options = options + if searches is not None: + self.searches = searches + + @property + def nameservers(self): + """ + Gets the nameservers of this V1PodDNSConfig. + A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + + :return: The nameservers of this V1PodDNSConfig. + :rtype: list[str] + """ + return self._nameservers + + @nameservers.setter + def nameservers(self, nameservers): + """ + Sets the nameservers of this V1PodDNSConfig. + A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + + :param nameservers: The nameservers of this V1PodDNSConfig. + :type: list[str] + """ + + self._nameservers = nameservers + + @property + def options(self): + """ + Gets the options of this V1PodDNSConfig. + A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + + :return: The options of this V1PodDNSConfig. + :rtype: list[V1PodDNSConfigOption] + """ + return self._options + + @options.setter + def options(self, options): + """ + Sets the options of this V1PodDNSConfig. + A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + + :param options: The options of this V1PodDNSConfig. + :type: list[V1PodDNSConfigOption] + """ + + self._options = options + + @property + def searches(self): + """ + Gets the searches of this V1PodDNSConfig. + A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + :return: The searches of this V1PodDNSConfig. + :rtype: list[str] + """ + return self._searches + + @searches.setter + def searches(self, searches): + """ + Sets the searches of this V1PodDNSConfig. + A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + :param searches: The searches of this V1PodDNSConfig. + :type: list[str] + """ + + self._searches = searches + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1PodDNSConfig): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_pod_dns_config_option.py b/kubevirt/models/v1_pod_dns_config_option.py new file mode 100644 index 00000000..e5ee5023 --- /dev/null +++ b/kubevirt/models/v1_pod_dns_config_option.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PodDNSConfigOption(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'value': 'str' + } + + attribute_map = { + 'name': 'name', + 'value': 'value' + } + + def __init__(self, name=None, value=None): + """ + V1PodDNSConfigOption - a model defined in Swagger + """ + + self._name = None + self._value = None + + if name is not None: + self.name = name + if value is not None: + self.value = value + + @property + def name(self): + """ + Gets the name of this V1PodDNSConfigOption. + Required. + + :return: The name of this V1PodDNSConfigOption. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1PodDNSConfigOption. + Required. + + :param name: The name of this V1PodDNSConfigOption. + :type: str + """ + + self._name = name + + @property + def value(self): + """ + Gets the value of this V1PodDNSConfigOption. + + :return: The value of this V1PodDNSConfigOption. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this V1PodDNSConfigOption. + + :param value: The value of this V1PodDNSConfigOption. + :type: str + """ + + self._value = value + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1PodDNSConfigOption): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_spec.py b/kubevirt/models/v1_virtual_machine_instance_spec.py index 2687f955..1c028ea3 100644 --- a/kubevirt/models/v1_virtual_machine_instance_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_spec.py @@ -32,6 +32,8 @@ class V1VirtualMachineInstanceSpec(object): """ swagger_types = { 'affinity': 'V1Affinity', + 'dns_config': 'V1PodDNSConfig', + 'dns_policy': 'str', 'domain': 'V1DomainSpec', 'hostname': 'str', 'liveness_probe': 'V1Probe', @@ -46,6 +48,8 @@ class V1VirtualMachineInstanceSpec(object): attribute_map = { 'affinity': 'affinity', + 'dns_config': 'dnsConfig', + 'dns_policy': 'dnsPolicy', 'domain': 'domain', 'hostname': 'hostname', 'liveness_probe': 'livenessProbe', @@ -58,12 +62,14 @@ class V1VirtualMachineInstanceSpec(object): 'volumes': 'volumes' } - def __init__(self, affinity=None, domain=None, hostname=None, liveness_probe=None, networks=None, node_selector=None, readiness_probe=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, volumes=None): + def __init__(self, affinity=None, dns_config=None, dns_policy=None, domain=None, hostname=None, liveness_probe=None, networks=None, node_selector=None, readiness_probe=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, volumes=None): """ V1VirtualMachineInstanceSpec - a model defined in Swagger """ self._affinity = None + self._dns_config = None + self._dns_policy = None self._domain = None self._hostname = None self._liveness_probe = None @@ -77,6 +83,10 @@ def __init__(self, affinity=None, domain=None, hostname=None, liveness_probe=Non if affinity is not None: self.affinity = affinity + if dns_config is not None: + self.dns_config = dns_config + if dns_policy is not None: + self.dns_policy = dns_policy self.domain = domain if hostname is not None: self.hostname = hostname @@ -120,6 +130,52 @@ def affinity(self, affinity): self._affinity = affinity + @property + def dns_config(self): + """ + Gets the dns_config of this V1VirtualMachineInstanceSpec. + Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. +optional + + :return: The dns_config of this V1VirtualMachineInstanceSpec. + :rtype: V1PodDNSConfig + """ + return self._dns_config + + @dns_config.setter + def dns_config(self, dns_config): + """ + Sets the dns_config of this V1VirtualMachineInstanceSpec. + Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. +optional + + :param dns_config: The dns_config of this V1VirtualMachineInstanceSpec. + :type: V1PodDNSConfig + """ + + self._dns_config = dns_config + + @property + def dns_policy(self): + """ + Gets the dns_policy of this V1VirtualMachineInstanceSpec. + Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. +optional + + :return: The dns_policy of this V1VirtualMachineInstanceSpec. + :rtype: str + """ + return self._dns_policy + + @dns_policy.setter + def dns_policy(self, dns_policy): + """ + Sets the dns_policy of this V1VirtualMachineInstanceSpec. + Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. +optional + + :param dns_policy: The dns_policy of this V1VirtualMachineInstanceSpec. + :type: str + """ + + self._dns_policy = dns_policy + @property def domain(self): """ diff --git a/setup.py b/setup.py index 646b5f4a..f45747f9 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.13.0-98-g150f4fb7" +VERSION = "v0.14.0-14-gcd8426a3" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b7441d38..ac65ef1c 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.13.0-98-g150f4fb7" +"packageVersion": "v0.14.0-14-gcd8426a3" } diff --git a/test/test_v1_pod_dns_config.py b/test/test_v1_pod_dns_config.py new file mode 100644 index 00000000..3e48e53a --- /dev/null +++ b/test/test_v1_pod_dns_config.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_pod_dns_config import V1PodDNSConfig + + +class TestV1PodDNSConfig(unittest.TestCase): + """ V1PodDNSConfig unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PodDNSConfig(self): + """ + Test V1PodDNSConfig + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_pod_dns_config.V1PodDNSConfig() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_pod_dns_config_option.py b/test/test_v1_pod_dns_config_option.py new file mode 100644 index 00000000..5e6541f5 --- /dev/null +++ b/test/test_v1_pod_dns_config_option.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_pod_dns_config_option import V1PodDNSConfigOption + + +class TestV1PodDNSConfigOption(unittest.TestCase): + """ V1PodDNSConfigOption unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PodDNSConfigOption(self): + """ + Test V1PodDNSConfigOption + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_pod_dns_config_option.V1PodDNSConfigOption() + pass + + +if __name__ == '__main__': + unittest.main() From 9df4706e4f19c11e7cf455e46b112107e5f5d55d Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 7 Feb 2019 13:04:17 +0000 Subject: [PATCH 087/521] Client Python update by Travis Build 6610 --- README.md | 3 +- docs/V1DHCPOptions.md | 1 + docs/V1DHCPPrivateOptions.md | 11 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_dhcp_options.py | 30 +++- kubevirt/models/v1_dhcp_private_options.py | 155 +++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_dhcp_private_options.py | 44 ++++++ 14 files changed, 252 insertions(+), 7 deletions(-) create mode 100644 docs/V1DHCPPrivateOptions.md create mode 100644 kubevirt/models/v1_dhcp_private_options.py create mode 100644 test/test_v1_dhcp_private_options.py diff --git a/README.md b/README.md index b688b705..9cafbe5a 100644 --- a/README.md +++ b/README.md @@ -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: v0.14.0-14-gcd8426a3 +- Package version: v0.14.0-35-geb2254d8 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -154,6 +154,7 @@ Class | Method | HTTP request | Description - [V1ConfigMapVolumeSource](docs/V1ConfigMapVolumeSource.md) - [V1ContainerDiskSource](docs/V1ContainerDiskSource.md) - [V1DHCPOptions](docs/V1DHCPOptions.md) + - [V1DHCPPrivateOptions](docs/V1DHCPPrivateOptions.md) - [V1DataVolumeSource](docs/V1DataVolumeSource.md) - [V1DeleteOptions](docs/V1DeleteOptions.md) - [V1Devices](docs/V1Devices.md) diff --git a/docs/V1DHCPOptions.md b/docs/V1DHCPOptions.md index 45587abb..67d2061a 100644 --- a/docs/V1DHCPOptions.md +++ b/docs/V1DHCPOptions.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **boot_file_name** | **str** | If specified will pass option 67 to interface's DHCP server +optional | [optional] **ntp_servers** | **list[str]** | If specified will pass the configured NTP server to the VM via DHCP option 042. +optional | [optional] +**private_options** | [**list[V1DHCPPrivateOptions]**](V1DHCPPrivateOptions.md) | If specified will pass extra DHCP options for private use, range: 224-254 +optional | [optional] **tftp_server_name** | **str** | If specified will pass option 66 to interface's DHCP server +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1DHCPPrivateOptions.md b/docs/V1DHCPPrivateOptions.md new file mode 100644 index 00000000..d7c4d655 --- /dev/null +++ b/docs/V1DHCPPrivateOptions.md @@ -0,0 +1,11 @@ +# V1DHCPPrivateOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**option** | **int** | Option is an Integer value from 224-254 Required. | +**value** | **str** | Value is a String value for the Option provided Required. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 76a68d9b..22ca2ae1 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.14.0-14-gcd8426a3" + release_note="Auto-generated client v0.14.0-35-geb2254d8" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 72618dfb..483c8603 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -58,6 +58,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_dhcp_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_dhcp_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DHCPOptions.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_dhcp_private_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_dhcp_private_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DHCPPrivateOptions.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_data_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_data_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DataVolumeSource.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 8916d8f1..6dba6b74 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -29,6 +29,7 @@ from .models.v1_config_map_volume_source import V1ConfigMapVolumeSource from .models.v1_container_disk_source import V1ContainerDiskSource from .models.v1_dhcp_options import V1DHCPOptions +from .models.v1_dhcp_private_options import V1DHCPPrivateOptions from .models.v1_data_volume_source import V1DataVolumeSource from .models.v1_delete_options import V1DeleteOptions from .models.v1_devices import V1Devices diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index f906fc26..b8db0a82 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.14.0-14-gcd8426a3/python' + self.user_agent = 'Swagger-Codegen/v0.14.0-35-geb2254d8/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 3ce9f08c..25d43a7d 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.14.0-14-gcd8426a3".\ + "SDK Package Version: v0.14.0-35-geb2254d8".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index cf33e478..ce750f60 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -29,6 +29,7 @@ from .v1_config_map_volume_source import V1ConfigMapVolumeSource from .v1_container_disk_source import V1ContainerDiskSource from .v1_dhcp_options import V1DHCPOptions +from .v1_dhcp_private_options import V1DHCPPrivateOptions from .v1_data_volume_source import V1DataVolumeSource from .v1_delete_options import V1DeleteOptions from .v1_devices import V1Devices diff --git a/kubevirt/models/v1_dhcp_options.py b/kubevirt/models/v1_dhcp_options.py index 318e4773..7801c9f9 100644 --- a/kubevirt/models/v1_dhcp_options.py +++ b/kubevirt/models/v1_dhcp_options.py @@ -33,28 +33,33 @@ class V1DHCPOptions(object): swagger_types = { 'boot_file_name': 'str', 'ntp_servers': 'list[str]', + 'private_options': 'list[V1DHCPPrivateOptions]', 'tftp_server_name': 'str' } attribute_map = { 'boot_file_name': 'bootFileName', 'ntp_servers': 'ntpServers', + 'private_options': 'privateOptions', 'tftp_server_name': 'tftpServerName' } - def __init__(self, boot_file_name=None, ntp_servers=None, tftp_server_name=None): + def __init__(self, boot_file_name=None, ntp_servers=None, private_options=None, tftp_server_name=None): """ V1DHCPOptions - a model defined in Swagger """ self._boot_file_name = None self._ntp_servers = None + self._private_options = None self._tftp_server_name = None if boot_file_name is not None: self.boot_file_name = boot_file_name if ntp_servers is not None: self.ntp_servers = ntp_servers + if private_options is not None: + self.private_options = private_options if tftp_server_name is not None: self.tftp_server_name = tftp_server_name @@ -104,6 +109,29 @@ def ntp_servers(self, ntp_servers): self._ntp_servers = ntp_servers + @property + def private_options(self): + """ + Gets the private_options of this V1DHCPOptions. + If specified will pass extra DHCP options for private use, range: 224-254 +optional + + :return: The private_options of this V1DHCPOptions. + :rtype: list[V1DHCPPrivateOptions] + """ + return self._private_options + + @private_options.setter + def private_options(self, private_options): + """ + Sets the private_options of this V1DHCPOptions. + If specified will pass extra DHCP options for private use, range: 224-254 +optional + + :param private_options: The private_options of this V1DHCPOptions. + :type: list[V1DHCPPrivateOptions] + """ + + self._private_options = private_options + @property def tftp_server_name(self): """ diff --git a/kubevirt/models/v1_dhcp_private_options.py b/kubevirt/models/v1_dhcp_private_options.py new file mode 100644 index 00000000..322afd1c --- /dev/null +++ b/kubevirt/models/v1_dhcp_private_options.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DHCPPrivateOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'option': 'int', + 'value': 'str' + } + + attribute_map = { + 'option': 'option', + 'value': 'value' + } + + def __init__(self, option=None, value=None): + """ + V1DHCPPrivateOptions - a model defined in Swagger + """ + + self._option = None + self._value = None + + self.option = option + self.value = value + + @property + def option(self): + """ + Gets the option of this V1DHCPPrivateOptions. + Option is an Integer value from 224-254 Required. + + :return: The option of this V1DHCPPrivateOptions. + :rtype: int + """ + return self._option + + @option.setter + def option(self, option): + """ + Sets the option of this V1DHCPPrivateOptions. + Option is an Integer value from 224-254 Required. + + :param option: The option of this V1DHCPPrivateOptions. + :type: int + """ + if option is None: + raise ValueError("Invalid value for `option`, must not be `None`") + + self._option = option + + @property + def value(self): + """ + Gets the value of this V1DHCPPrivateOptions. + Value is a String value for the Option provided Required. + + :return: The value of this V1DHCPPrivateOptions. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this V1DHCPPrivateOptions. + Value is a String value for the Option provided Required. + + :param value: The value of this V1DHCPPrivateOptions. + :type: str + """ + if value is None: + raise ValueError("Invalid value for `value`, must not be `None`") + + self._value = value + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1DHCPPrivateOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index f45747f9..b50e0e64 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.14.0-14-gcd8426a3" +VERSION = "v0.14.0-35-geb2254d8" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index ac65ef1c..2c5d7d63 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.14.0-14-gcd8426a3" +"packageVersion": "v0.14.0-35-geb2254d8" } diff --git a/test/test_v1_dhcp_private_options.py b/test/test_v1_dhcp_private_options.py new file mode 100644 index 00000000..9833b9a7 --- /dev/null +++ b/test/test_v1_dhcp_private_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_dhcp_private_options import V1DHCPPrivateOptions + + +class TestV1DHCPPrivateOptions(unittest.TestCase): + """ V1DHCPPrivateOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DHCPPrivateOptions(self): + """ + Test V1DHCPPrivateOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_dhcp_private_options.V1DHCPPrivateOptions() + pass + + +if __name__ == '__main__': + unittest.main() From 8e4c9e1516265a13f9a5011f47ca76d0b1d902e8 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sun, 10 Feb 2019 15:12:54 +0000 Subject: [PATCH 088/521] Client Python update by Travis Build 6642 --- README.md | 2 +- .../V1VirtualMachineInstanceMigrationState.md | 2 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...irtual_machine_instance_migration_state.py | 62 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 67 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 9cafbe5a..4ff481b4 100644 --- a/README.md +++ b/README.md @@ -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: v0.14.0-35-geb2254d8 +- Package version: v0.14.0-82-gabb71e5b - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceMigrationState.md b/docs/V1VirtualMachineInstanceMigrationState.md index 7d4b47ff..979b3a0f 100644 --- a/docs/V1VirtualMachineInstanceMigrationState.md +++ b/docs/V1VirtualMachineInstanceMigrationState.md @@ -9,9 +9,11 @@ Name | Type | Description | Notes **migration_uid** | **str** | The VirtualMachineInstanceMigration object associated with this migration | [optional] **source_node** | **str** | The source node that the VMI originated on | [optional] **start_timestamp** | **str** | The time the migration action began | [optional] +**target_direct_migration_node_ports** | **object** | The list of ports opened for live migration on the destination node | [optional] **target_node** | **str** | The target node that the VMI is moving to | [optional] **target_node_address** | **str** | The address of the target node to use for the migration | [optional] **target_node_domain_detected** | **bool** | The Target Node has seen the Domain Start Event | [optional] +**target_pod** | **str** | The target pod that the VMI is moving to | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 22ca2ae1..a19231db 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.14.0-35-geb2254d8" + release_note="Auto-generated client v0.14.0-82-gabb71e5b" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index b8db0a82..b77a14c3 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.14.0-35-geb2254d8/python' + self.user_agent = 'Swagger-Codegen/v0.14.0-82-gabb71e5b/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 25d43a7d..fb2f57c2 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.14.0-35-geb2254d8".\ + "SDK Package Version: v0.14.0-82-gabb71e5b".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_state.py b/kubevirt/models/v1_virtual_machine_instance_migration_state.py index fa19b3e7..61e716f2 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_state.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_state.py @@ -37,9 +37,11 @@ class V1VirtualMachineInstanceMigrationState(object): 'migration_uid': 'str', 'source_node': 'str', 'start_timestamp': 'str', + 'target_direct_migration_node_ports': 'object', 'target_node': 'str', 'target_node_address': 'str', - 'target_node_domain_detected': 'bool' + 'target_node_domain_detected': 'bool', + 'target_pod': 'str' } attribute_map = { @@ -49,12 +51,14 @@ class V1VirtualMachineInstanceMigrationState(object): 'migration_uid': 'migrationUid', 'source_node': 'sourceNode', 'start_timestamp': 'startTimestamp', + 'target_direct_migration_node_ports': 'targetDirectMigrationNodePorts', 'target_node': 'targetNode', 'target_node_address': 'targetNodeAddress', - 'target_node_domain_detected': 'targetNodeDomainDetected' + 'target_node_domain_detected': 'targetNodeDomainDetected', + 'target_pod': 'targetPod' } - def __init__(self, completed=None, end_timestamp=None, failed=None, migration_uid=None, source_node=None, start_timestamp=None, target_node=None, target_node_address=None, target_node_domain_detected=None): + def __init__(self, completed=None, end_timestamp=None, failed=None, migration_uid=None, source_node=None, start_timestamp=None, target_direct_migration_node_ports=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_pod=None): """ V1VirtualMachineInstanceMigrationState - a model defined in Swagger """ @@ -65,9 +69,11 @@ def __init__(self, completed=None, end_timestamp=None, failed=None, migration_ui self._migration_uid = None self._source_node = None self._start_timestamp = None + self._target_direct_migration_node_ports = None self._target_node = None self._target_node_address = None self._target_node_domain_detected = None + self._target_pod = None if completed is not None: self.completed = completed @@ -81,12 +87,16 @@ def __init__(self, completed=None, end_timestamp=None, failed=None, migration_ui self.source_node = source_node if start_timestamp is not None: self.start_timestamp = start_timestamp + if target_direct_migration_node_ports is not None: + self.target_direct_migration_node_ports = target_direct_migration_node_ports if target_node is not None: self.target_node = target_node if target_node_address is not None: self.target_node_address = target_node_address if target_node_domain_detected is not None: self.target_node_domain_detected = target_node_domain_detected + if target_pod is not None: + self.target_pod = target_pod @property def completed(self): @@ -226,6 +236,29 @@ def start_timestamp(self, start_timestamp): self._start_timestamp = start_timestamp + @property + def target_direct_migration_node_ports(self): + """ + Gets the target_direct_migration_node_ports of this V1VirtualMachineInstanceMigrationState. + The list of ports opened for live migration on the destination node + + :return: The target_direct_migration_node_ports of this V1VirtualMachineInstanceMigrationState. + :rtype: object + """ + return self._target_direct_migration_node_ports + + @target_direct_migration_node_ports.setter + def target_direct_migration_node_ports(self, target_direct_migration_node_ports): + """ + Sets the target_direct_migration_node_ports of this V1VirtualMachineInstanceMigrationState. + The list of ports opened for live migration on the destination node + + :param target_direct_migration_node_ports: The target_direct_migration_node_ports of this V1VirtualMachineInstanceMigrationState. + :type: object + """ + + self._target_direct_migration_node_ports = target_direct_migration_node_ports + @property def target_node(self): """ @@ -295,6 +328,29 @@ def target_node_domain_detected(self, target_node_domain_detected): self._target_node_domain_detected = target_node_domain_detected + @property + def target_pod(self): + """ + Gets the target_pod of this V1VirtualMachineInstanceMigrationState. + The target pod that the VMI is moving to + + :return: The target_pod of this V1VirtualMachineInstanceMigrationState. + :rtype: str + """ + return self._target_pod + + @target_pod.setter + def target_pod(self, target_pod): + """ + Sets the target_pod of this V1VirtualMachineInstanceMigrationState. + The target pod that the VMI is moving to + + :param target_pod: The target_pod of this V1VirtualMachineInstanceMigrationState. + :type: str + """ + + self._target_pod = target_pod + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index b50e0e64..9b63498a 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.14.0-35-geb2254d8" +VERSION = "v0.14.0-82-gabb71e5b" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 2c5d7d63..2b41e645 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.14.0-35-geb2254d8" +"packageVersion": "v0.14.0-82-gabb71e5b" } From ba7b2d15b49e21391f79d438712727c3550dd0ed Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 12 Feb 2019 17:52:24 +0000 Subject: [PATCH 089/521] Client Python update by Travis Build 6687 --- README.md | 2 +- docs/V1Firmware.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_firmware.py | 30 +++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 4ff481b4..ccbcf1f7 100644 --- a/README.md +++ b/README.md @@ -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: v0.14.0-82-gabb71e5b +- Package version: v0.14.0-95-g11744d2f - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Firmware.md b/docs/V1Firmware.md index ef51ac7a..b485bc1e 100644 --- a/docs/V1Firmware.md +++ b/docs/V1Firmware.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **bootloader** | [**V1Bootloader**](V1Bootloader.md) | Settings to control the bootloader that is used. +optional | [optional] +**serial** | **str** | The system-serial-number in SMBIOS | [optional] **uuid** | **str** | UUID reported by the vmi bios. Defaults to a random generated uid. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index a19231db..9e74c0cd 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.14.0-82-gabb71e5b" + release_note="Auto-generated client v0.14.0-95-g11744d2f" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index b77a14c3..94c1abf6 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.14.0-82-gabb71e5b/python' + self.user_agent = 'Swagger-Codegen/v0.14.0-95-g11744d2f/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index fb2f57c2..11e52c79 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.14.0-82-gabb71e5b".\ + "SDK Package Version: v0.14.0-95-g11744d2f".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_firmware.py b/kubevirt/models/v1_firmware.py index a2182d8c..5ce88090 100644 --- a/kubevirt/models/v1_firmware.py +++ b/kubevirt/models/v1_firmware.py @@ -32,24 +32,29 @@ class V1Firmware(object): """ swagger_types = { 'bootloader': 'V1Bootloader', + 'serial': 'str', 'uuid': 'str' } attribute_map = { 'bootloader': 'bootloader', + 'serial': 'serial', 'uuid': 'uuid' } - def __init__(self, bootloader=None, uuid=None): + def __init__(self, bootloader=None, serial=None, uuid=None): """ V1Firmware - a model defined in Swagger """ self._bootloader = None + self._serial = None self._uuid = None if bootloader is not None: self.bootloader = bootloader + if serial is not None: + self.serial = serial if uuid is not None: self.uuid = uuid @@ -76,6 +81,29 @@ def bootloader(self, bootloader): self._bootloader = bootloader + @property + def serial(self): + """ + Gets the serial of this V1Firmware. + The system-serial-number in SMBIOS + + :return: The serial of this V1Firmware. + :rtype: str + """ + return self._serial + + @serial.setter + def serial(self, serial): + """ + Sets the serial of this V1Firmware. + The system-serial-number in SMBIOS + + :param serial: The serial of this V1Firmware. + :type: str + """ + + self._serial = serial + @property def uuid(self): """ diff --git a/setup.py b/setup.py index 9b63498a..033cac9d 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.14.0-82-gabb71e5b" +VERSION = "v0.14.0-95-g11744d2f" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 2b41e645..630cd5a7 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.14.0-82-gabb71e5b" +"packageVersion": "v0.14.0-95-g11744d2f" } From 6cd21162f1c1961b25a063d5a480e7a6e3680a04 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 20 Feb 2019 06:35:36 +0000 Subject: [PATCH 090/521] Client Python update by Travis Build 6803 --- README.md | 3 +- docs/V1Devices.md | 1 + docs/V1Input.md | 12 +++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_devices.py | 30 +++++- kubevirt/models/v1_input.py | 183 ++++++++++++++++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_input.py | 44 ++++++++ 14 files changed, 281 insertions(+), 7 deletions(-) create mode 100644 docs/V1Input.md create mode 100644 kubevirt/models/v1_input.py create mode 100644 test/test_v1_input.py diff --git a/README.md b/README.md index ccbcf1f7..34f2aedb 100644 --- a/README.md +++ b/README.md @@ -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: v0.14.0-95-g11744d2f +- Package version: v0.14.0-152-g3463c005 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -181,6 +181,7 @@ Class | Method | HTTP request | Description - [V1I6300ESBWatchdog](docs/V1I6300ESBWatchdog.md) - [V1Initializer](docs/V1Initializer.md) - [V1Initializers](docs/V1Initializers.md) + - [V1Input](docs/V1Input.md) - [V1Interface](docs/V1Interface.md) - [V1KVMTimer](docs/V1KVMTimer.md) - [V1LabelSelector](docs/V1LabelSelector.md) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index 4d5bfd81..5e69ceb1 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **autoattach_pod_interface** | **bool** | Whether to attach a pod network interface. Defaults to true. | [optional] **block_multi_queue** | **bool** | Whether or not to enable virtio multi-queue for block devices +optional | [optional] **disks** | [**list[V1Disk]**](V1Disk.md) | Disks describes disks, cdroms, floppy and luns which are connected to the vmi. | [optional] +**inputs** | [**list[V1Input]**](V1Input.md) | Inputs describe input devices | [optional] **interfaces** | [**list[V1Interface]**](V1Interface.md) | Interfaces describe network interfaces which are added to the vmi. | [optional] **network_interface_multiqueue** | **bool** | If specified, virtual network interfaces configured with a virtio bus will also enable the vhost multiqueue feature +optional | [optional] **rng** | [**V1Rng**](V1Rng.md) | Whether to have random number generator from host +optional | [optional] diff --git a/docs/V1Input.md b/docs/V1Input.md new file mode 100644 index 00000000..fdb846e4 --- /dev/null +++ b/docs/V1Input.md @@ -0,0 +1,12 @@ +# V1Input + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bus** | **str** | Bus indicates the bus of input device to emulate. Supported values: virtio, usb. | [optional] +**name** | **str** | Name is the device name | +**type** | **str** | Type indicated the type of input device. Supported values: tablet. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 9e74c0cd..d6bc06b7 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.14.0-95-g11744d2f" + release_note="Auto-generated client v0.14.0-152-g3463c005" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 483c8603..f1c8c40f 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -139,6 +139,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_initializers.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_initializers.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Initializers.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_input.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_input.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Input.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_interface.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Interface.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 6dba6b74..061dc309 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -56,6 +56,7 @@ from .models.v1_i6300_esb_watchdog import V1I6300ESBWatchdog from .models.v1_initializer import V1Initializer from .models.v1_initializers import V1Initializers +from .models.v1_input import V1Input from .models.v1_interface import V1Interface from .models.v1_kvm_timer import V1KVMTimer from .models.v1_label_selector import V1LabelSelector diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 94c1abf6..34565ae3 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.14.0-95-g11744d2f/python' + self.user_agent = 'Swagger-Codegen/v0.14.0-152-g3463c005/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 11e52c79..46105c2d 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.14.0-95-g11744d2f".\ + "SDK Package Version: v0.14.0-152-g3463c005".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index ce750f60..76f335bc 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -56,6 +56,7 @@ from .v1_i6300_esb_watchdog import V1I6300ESBWatchdog from .v1_initializer import V1Initializer from .v1_initializers import V1Initializers +from .v1_input import V1Input from .v1_interface import V1Interface from .v1_kvm_timer import V1KVMTimer from .v1_label_selector import V1LabelSelector diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index b3a833b1..fa9d238d 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -35,6 +35,7 @@ class V1Devices(object): 'autoattach_pod_interface': 'bool', 'block_multi_queue': 'bool', 'disks': 'list[V1Disk]', + 'inputs': 'list[V1Input]', 'interfaces': 'list[V1Interface]', 'network_interface_multiqueue': 'bool', 'rng': 'V1Rng', @@ -46,13 +47,14 @@ class V1Devices(object): 'autoattach_pod_interface': 'autoattachPodInterface', 'block_multi_queue': 'blockMultiQueue', 'disks': 'disks', + 'inputs': 'inputs', 'interfaces': 'interfaces', 'network_interface_multiqueue': 'networkInterfaceMultiqueue', 'rng': 'rng', 'watchdog': 'watchdog' } - def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=None, block_multi_queue=None, disks=None, interfaces=None, network_interface_multiqueue=None, rng=None, watchdog=None): + def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=None, block_multi_queue=None, disks=None, inputs=None, interfaces=None, network_interface_multiqueue=None, rng=None, watchdog=None): """ V1Devices - a model defined in Swagger """ @@ -61,6 +63,7 @@ def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=Non self._autoattach_pod_interface = None self._block_multi_queue = None self._disks = None + self._inputs = None self._interfaces = None self._network_interface_multiqueue = None self._rng = None @@ -74,6 +77,8 @@ def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=Non self.block_multi_queue = block_multi_queue if disks is not None: self.disks = disks + if inputs is not None: + self.inputs = inputs if interfaces is not None: self.interfaces = interfaces if network_interface_multiqueue is not None: @@ -175,6 +180,29 @@ def disks(self, disks): self._disks = disks + @property + def inputs(self): + """ + Gets the inputs of this V1Devices. + Inputs describe input devices + + :return: The inputs of this V1Devices. + :rtype: list[V1Input] + """ + return self._inputs + + @inputs.setter + def inputs(self, inputs): + """ + Sets the inputs of this V1Devices. + Inputs describe input devices + + :param inputs: The inputs of this V1Devices. + :type: list[V1Input] + """ + + self._inputs = inputs + @property def interfaces(self): """ diff --git a/kubevirt/models/v1_input.py b/kubevirt/models/v1_input.py new file mode 100644 index 00000000..e8f5137e --- /dev/null +++ b/kubevirt/models/v1_input.py @@ -0,0 +1,183 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Input(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'bus': 'str', + 'name': 'str', + 'type': 'str' + } + + attribute_map = { + 'bus': 'bus', + 'name': 'name', + 'type': 'type' + } + + def __init__(self, bus=None, name=None, type=None): + """ + V1Input - a model defined in Swagger + """ + + self._bus = None + self._name = None + self._type = None + + if bus is not None: + self.bus = bus + self.name = name + self.type = type + + @property + def bus(self): + """ + Gets the bus of this V1Input. + Bus indicates the bus of input device to emulate. Supported values: virtio, usb. + + :return: The bus of this V1Input. + :rtype: str + """ + return self._bus + + @bus.setter + def bus(self, bus): + """ + Sets the bus of this V1Input. + Bus indicates the bus of input device to emulate. Supported values: virtio, usb. + + :param bus: The bus of this V1Input. + :type: str + """ + + self._bus = bus + + @property + def name(self): + """ + Gets the name of this V1Input. + Name is the device name + + :return: The name of this V1Input. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1Input. + Name is the device name + + :param name: The name of this V1Input. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def type(self): + """ + Gets the type of this V1Input. + Type indicated the type of input device. Supported values: tablet. + + :return: The type of this V1Input. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1Input. + Type indicated the type of input device. Supported values: tablet. + + :param type: The type of this V1Input. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1Input): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 033cac9d..4e02267b 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.14.0-95-g11744d2f" +VERSION = "v0.14.0-152-g3463c005" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 630cd5a7..507af673 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.14.0-95-g11744d2f" +"packageVersion": "v0.14.0-152-g3463c005" } diff --git a/test/test_v1_input.py b/test/test_v1_input.py new file mode 100644 index 00000000..24d353c5 --- /dev/null +++ b/test/test_v1_input.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_input import V1Input + + +class TestV1Input(unittest.TestCase): + """ V1Input unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Input(self): + """ + Test V1Input + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_input.V1Input() + pass + + +if __name__ == '__main__': + unittest.main() From e7b976b4225ee06f5feac3041d5779bdd6485013 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 26 Feb 2019 08:46:52 +0000 Subject: [PATCH 091/521] Client Python update by Travis Build 6893 --- README.md | 3 +- docs/V1CPU.md | 3 +- docs/V1CPUFeature.md | 11 +++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_cpu.py | 34 ++++++- kubevirt/models/v1_cpu_feature.py | 154 ++++++++++++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_cpu_feature.py | 44 +++++++++ 14 files changed, 254 insertions(+), 10 deletions(-) create mode 100644 docs/V1CPUFeature.md create mode 100644 kubevirt/models/v1_cpu_feature.py create mode 100644 test/test_v1_cpu_feature.py diff --git a/README.md b/README.md index 34f2aedb..321ad625 100644 --- a/README.md +++ b/README.md @@ -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: v0.14.0-152-g3463c005 +- Package version: v0.15.0-alpha.0-20-g8812e565 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -147,6 +147,7 @@ Class | Method | HTTP request | Description - [V1Bootloader](docs/V1Bootloader.md) - [V1CDRomTarget](docs/V1CDRomTarget.md) - [V1CPU](docs/V1CPU.md) + - [V1CPUFeature](docs/V1CPUFeature.md) - [V1Clock](docs/V1Clock.md) - [V1ClockOffsetUTC](docs/V1ClockOffsetUTC.md) - [V1CloudInitNoCloudSource](docs/V1CloudInitNoCloudSource.md) diff --git a/docs/V1CPU.md b/docs/V1CPU.md index a48f86a6..7d9d5ad7 100644 --- a/docs/V1CPU.md +++ b/docs/V1CPU.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cores** | **int** | Cores specifies the number of cores inside the vmi. Must be a value greater or equal 1. | [optional] **dedicated_cpu_placement** | **bool** | DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. +optional | [optional] -**model** | **str** | Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/blob/master/src/cpu/cpu_map.xml. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. For more information see https://libvirt.org/formatdomain.html#elementsCPU. Defaults to host-model. +optional | [optional] +**features** | [**list[V1CPUFeature]**](V1CPUFeature.md) | Features specifies the CPU features list inside the VMI. +optional | [optional] +**model** | **str** | Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/blob/master/src/cpu/cpu_map.xml. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. +optional | [optional] **sockets** | **int** | Sockets specifies the number of sockets inside the vmi. Must be a value greater or equal 1. | [optional] **threads** | **int** | Threads specifies the number of threads inside the vmi. Must be a value greater or equal 1. | [optional] diff --git a/docs/V1CPUFeature.md b/docs/V1CPUFeature.md new file mode 100644 index 00000000..bbd845ea --- /dev/null +++ b/docs/V1CPUFeature.md @@ -0,0 +1,11 @@ +# V1CPUFeature + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the CPU feature | +**policy** | **str** | Policy is the CPU feature attribute which can have the following attributes: force - The virtual CPU will claim the feature is supported regardless of it being supported by host CPU. require - Guest creation will fail unless the feature is supported by the host CPU or the hypervisor is able to emulate it. optional - The feature will be supported by virtual CPU if and only if it is supported by host CPU. disable - The feature will not be supported by virtual CPU. forbid - Guest creation will fail if the feature is supported by host CPU. Defaults to require +optional | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index d6bc06b7..f24e3787 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.14.0-152-g3463c005" + release_note="Auto-generated client v0.15.0-alpha.0-20-g8812e565" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index f1c8c40f..5d3c01bb 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -37,6 +37,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_cpu.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_cpu.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CPU.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_cpu_feature.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_cpu_feature.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CPUFeature.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_clock.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_clock.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Clock.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 061dc309..9028bec1 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -22,6 +22,7 @@ from .models.v1_bootloader import V1Bootloader from .models.v1_cd_rom_target import V1CDRomTarget from .models.v1_cpu import V1CPU +from .models.v1_cpu_feature import V1CPUFeature from .models.v1_clock import V1Clock from .models.v1_clock_offset_utc import V1ClockOffsetUTC from .models.v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 34565ae3..7c53f818 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.14.0-152-g3463c005/python' + self.user_agent = 'Swagger-Codegen/v0.15.0-alpha.0-20-g8812e565/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 46105c2d..41257130 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.14.0-152-g3463c005".\ + "SDK Package Version: v0.15.0-alpha.0-20-g8812e565".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 76f335bc..c3a1e29d 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -22,6 +22,7 @@ from .v1_bootloader import V1Bootloader from .v1_cd_rom_target import V1CDRomTarget from .v1_cpu import V1CPU +from .v1_cpu_feature import V1CPUFeature from .v1_clock import V1Clock from .v1_clock_offset_utc import V1ClockOffsetUTC from .v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource diff --git a/kubevirt/models/v1_cpu.py b/kubevirt/models/v1_cpu.py index ddabf0eb..29067f42 100644 --- a/kubevirt/models/v1_cpu.py +++ b/kubevirt/models/v1_cpu.py @@ -33,6 +33,7 @@ class V1CPU(object): swagger_types = { 'cores': 'int', 'dedicated_cpu_placement': 'bool', + 'features': 'list[V1CPUFeature]', 'model': 'str', 'sockets': 'int', 'threads': 'int' @@ -41,18 +42,20 @@ class V1CPU(object): attribute_map = { 'cores': 'cores', 'dedicated_cpu_placement': 'dedicatedCpuPlacement', + 'features': 'features', 'model': 'model', 'sockets': 'sockets', 'threads': 'threads' } - def __init__(self, cores=None, dedicated_cpu_placement=None, model=None, sockets=None, threads=None): + def __init__(self, cores=None, dedicated_cpu_placement=None, features=None, model=None, sockets=None, threads=None): """ V1CPU - a model defined in Swagger """ self._cores = None self._dedicated_cpu_placement = None + self._features = None self._model = None self._sockets = None self._threads = None @@ -61,6 +64,8 @@ def __init__(self, cores=None, dedicated_cpu_placement=None, model=None, sockets self.cores = cores if dedicated_cpu_placement is not None: self.dedicated_cpu_placement = dedicated_cpu_placement + if features is not None: + self.features = features if model is not None: self.model = model if sockets is not None: @@ -114,11 +119,34 @@ def dedicated_cpu_placement(self, dedicated_cpu_placement): self._dedicated_cpu_placement = dedicated_cpu_placement + @property + def features(self): + """ + Gets the features of this V1CPU. + Features specifies the CPU features list inside the VMI. +optional + + :return: The features of this V1CPU. + :rtype: list[V1CPUFeature] + """ + return self._features + + @features.setter + def features(self, features): + """ + Sets the features of this V1CPU. + Features specifies the CPU features list inside the VMI. +optional + + :param features: The features of this V1CPU. + :type: list[V1CPUFeature] + """ + + self._features = features + @property def model(self): """ Gets the model of this V1CPU. - Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/blob/master/src/cpu/cpu_map.xml. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. For more information see https://libvirt.org/formatdomain.html#elementsCPU. Defaults to host-model. +optional + Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/blob/master/src/cpu/cpu_map.xml. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. +optional :return: The model of this V1CPU. :rtype: str @@ -129,7 +157,7 @@ def model(self): def model(self, model): """ Sets the model of this V1CPU. - Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/blob/master/src/cpu/cpu_map.xml. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. For more information see https://libvirt.org/formatdomain.html#elementsCPU. Defaults to host-model. +optional + Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/blob/master/src/cpu/cpu_map.xml. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. +optional :param model: The model of this V1CPU. :type: str diff --git a/kubevirt/models/v1_cpu_feature.py b/kubevirt/models/v1_cpu_feature.py new file mode 100644 index 00000000..e0fbb1db --- /dev/null +++ b/kubevirt/models/v1_cpu_feature.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1CPUFeature(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'policy': 'str' + } + + attribute_map = { + 'name': 'name', + 'policy': 'policy' + } + + def __init__(self, name=None, policy=None): + """ + V1CPUFeature - a model defined in Swagger + """ + + self._name = None + self._policy = None + + self.name = name + if policy is not None: + self.policy = policy + + @property + def name(self): + """ + Gets the name of this V1CPUFeature. + Name of the CPU feature + + :return: The name of this V1CPUFeature. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1CPUFeature. + Name of the CPU feature + + :param name: The name of this V1CPUFeature. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def policy(self): + """ + Gets the policy of this V1CPUFeature. + Policy is the CPU feature attribute which can have the following attributes: force - The virtual CPU will claim the feature is supported regardless of it being supported by host CPU. require - Guest creation will fail unless the feature is supported by the host CPU or the hypervisor is able to emulate it. optional - The feature will be supported by virtual CPU if and only if it is supported by host CPU. disable - The feature will not be supported by virtual CPU. forbid - Guest creation will fail if the feature is supported by host CPU. Defaults to require +optional + + :return: The policy of this V1CPUFeature. + :rtype: str + """ + return self._policy + + @policy.setter + def policy(self, policy): + """ + Sets the policy of this V1CPUFeature. + Policy is the CPU feature attribute which can have the following attributes: force - The virtual CPU will claim the feature is supported regardless of it being supported by host CPU. require - Guest creation will fail unless the feature is supported by the host CPU or the hypervisor is able to emulate it. optional - The feature will be supported by virtual CPU if and only if it is supported by host CPU. disable - The feature will not be supported by virtual CPU. forbid - Guest creation will fail if the feature is supported by host CPU. Defaults to require +optional + + :param policy: The policy of this V1CPUFeature. + :type: str + """ + + self._policy = policy + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1CPUFeature): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 4e02267b..35dab7a4 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.14.0-152-g3463c005" +VERSION = "v0.15.0-alpha.0-20-g8812e565" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 507af673..c59ef3f9 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.14.0-152-g3463c005" +"packageVersion": "v0.15.0-alpha.0-20-g8812e565" } diff --git a/test/test_v1_cpu_feature.py b/test/test_v1_cpu_feature.py new file mode 100644 index 00000000..aa7f3d23 --- /dev/null +++ b/test/test_v1_cpu_feature.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_cpu_feature import V1CPUFeature + + +class TestV1CPUFeature(unittest.TestCase): + """ V1CPUFeature unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1CPUFeature(self): + """ + Test V1CPUFeature + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_cpu_feature.V1CPUFeature() + pass + + +if __name__ == '__main__': + unittest.main() From 8b172f4e6b6810655f15a1e6adaf8d46f5239596 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 4 Mar 2019 16:15:52 +0000 Subject: [PATCH 092/521] Client Python update by Travis Build 6994 --- README.md | 3 +- docs/V1MigrationConfig.md | 11 ++ docs/V1VirtualMachineInstanceMigrationSpec.md | 1 + .../V1VirtualMachineInstanceMigrationState.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_migration_config.py | 153 ++++++++++++++++++ ...virtual_machine_instance_migration_spec.py | 28 +++- ...irtual_machine_instance_migration_state.py | 30 +++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_migration_config.py | 44 +++++ 16 files changed, 278 insertions(+), 8 deletions(-) create mode 100644 docs/V1MigrationConfig.md create mode 100644 kubevirt/models/v1_migration_config.py create mode 100644 test/test_v1_migration_config.py diff --git a/README.md b/README.md index 321ad625..7db51df5 100644 --- a/README.md +++ b/README.md @@ -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: v0.15.0-alpha.0-20-g8812e565 +- Package version: v0.15.0-alpha.0-90-g629e7a67 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -192,6 +192,7 @@ Class | Method | HTTP request | Description - [V1LunTarget](docs/V1LunTarget.md) - [V1Machine](docs/V1Machine.md) - [V1Memory](docs/V1Memory.md) + - [V1MigrationConfig](docs/V1MigrationConfig.md) - [V1Network](docs/V1Network.md) - [V1NodeAffinity](docs/V1NodeAffinity.md) - [V1NodeSelector](docs/V1NodeSelector.md) diff --git a/docs/V1MigrationConfig.md b/docs/V1MigrationConfig.md new file mode 100644 index 00000000..c2917ec2 --- /dev/null +++ b/docs/V1MigrationConfig.md @@ -0,0 +1,11 @@ +# V1MigrationConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**completion_timeout_per_gi_b** | **int** | The time for GiB of data to wait for the migration to be completed before aborting it | [optional] +**progress_timeout** | **int** | The time to wait for live migration to make progress in transferring data. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceMigrationSpec.md b/docs/V1VirtualMachineInstanceMigrationSpec.md index 8b4b0a33..ed3381a0 100644 --- a/docs/V1VirtualMachineInstanceMigrationSpec.md +++ b/docs/V1VirtualMachineInstanceMigrationSpec.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**configuration** | [**V1MigrationConfig**](V1MigrationConfig.md) | | [optional] **vmi_name** | **str** | The name of the VMI to perform the migration on. VMI must exist in the migration objects namespace | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceMigrationState.md b/docs/V1VirtualMachineInstanceMigrationState.md index 979b3a0f..585414d6 100644 --- a/docs/V1VirtualMachineInstanceMigrationState.md +++ b/docs/V1VirtualMachineInstanceMigrationState.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **completed** | **bool** | Indicates the migration completed | [optional] **end_timestamp** | **str** | The time the migration action ended | [optional] **failed** | **bool** | Indicates that the migration failed | [optional] +**migration_config** | [**V1MigrationConfig**](V1MigrationConfig.md) | Config contains migration configuration options | [optional] **migration_uid** | **str** | The VirtualMachineInstanceMigration object associated with this migration | [optional] **source_node** | **str** | The source node that the VMI originated on | [optional] **start_timestamp** | **str** | The time the migration action began | [optional] diff --git a/git_push.sh b/git_push.sh index f24e3787..406a53bf 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.15.0-alpha.0-20-g8812e565" + release_note="Auto-generated client v0.15.0-alpha.0-90-g629e7a67" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 5d3c01bb..be40580b 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -172,6 +172,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_memory.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_memory.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Memory.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_migration_config.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_migration_config.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1MigrationConfig.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Network.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 9028bec1..a456657e 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -67,6 +67,7 @@ from .models.v1_lun_target import V1LunTarget from .models.v1_machine import V1Machine from .models.v1_memory import V1Memory +from .models.v1_migration_config import V1MigrationConfig from .models.v1_network import V1Network from .models.v1_node_affinity import V1NodeAffinity from .models.v1_node_selector import V1NodeSelector diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 7c53f818..414c5e27 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.15.0-alpha.0-20-g8812e565/python' + self.user_agent = 'Swagger-Codegen/v0.15.0-alpha.0-90-g629e7a67/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 41257130..ba5cbeea 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.15.0-alpha.0-20-g8812e565".\ + "SDK Package Version: v0.15.0-alpha.0-90-g629e7a67".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index c3a1e29d..364efdd2 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -67,6 +67,7 @@ from .v1_lun_target import V1LunTarget from .v1_machine import V1Machine from .v1_memory import V1Memory +from .v1_migration_config import V1MigrationConfig from .v1_network import V1Network from .v1_node_affinity import V1NodeAffinity from .v1_node_selector import V1NodeSelector diff --git a/kubevirt/models/v1_migration_config.py b/kubevirt/models/v1_migration_config.py new file mode 100644 index 00000000..702904a3 --- /dev/null +++ b/kubevirt/models/v1_migration_config.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1MigrationConfig(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'completion_timeout_per_gi_b': 'int', + 'progress_timeout': 'int' + } + + attribute_map = { + 'completion_timeout_per_gi_b': 'completionTimeoutPerGiB', + 'progress_timeout': 'progressTimeout' + } + + def __init__(self, completion_timeout_per_gi_b=None, progress_timeout=None): + """ + V1MigrationConfig - a model defined in Swagger + """ + + self._completion_timeout_per_gi_b = None + self._progress_timeout = None + + if completion_timeout_per_gi_b is not None: + self.completion_timeout_per_gi_b = completion_timeout_per_gi_b + if progress_timeout is not None: + self.progress_timeout = progress_timeout + + @property + def completion_timeout_per_gi_b(self): + """ + Gets the completion_timeout_per_gi_b of this V1MigrationConfig. + The time for GiB of data to wait for the migration to be completed before aborting it + + :return: The completion_timeout_per_gi_b of this V1MigrationConfig. + :rtype: int + """ + return self._completion_timeout_per_gi_b + + @completion_timeout_per_gi_b.setter + def completion_timeout_per_gi_b(self, completion_timeout_per_gi_b): + """ + Sets the completion_timeout_per_gi_b of this V1MigrationConfig. + The time for GiB of data to wait for the migration to be completed before aborting it + + :param completion_timeout_per_gi_b: The completion_timeout_per_gi_b of this V1MigrationConfig. + :type: int + """ + + self._completion_timeout_per_gi_b = completion_timeout_per_gi_b + + @property + def progress_timeout(self): + """ + Gets the progress_timeout of this V1MigrationConfig. + The time to wait for live migration to make progress in transferring data. + + :return: The progress_timeout of this V1MigrationConfig. + :rtype: int + """ + return self._progress_timeout + + @progress_timeout.setter + def progress_timeout(self, progress_timeout): + """ + Sets the progress_timeout of this V1MigrationConfig. + The time to wait for live migration to make progress in transferring data. + + :param progress_timeout: The progress_timeout of this V1MigrationConfig. + :type: int + """ + + self._progress_timeout = progress_timeout + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1MigrationConfig): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_spec.py b/kubevirt/models/v1_virtual_machine_instance_migration_spec.py index 8f03dede..2f9ed0f0 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_spec.py @@ -31,23 +31,49 @@ class V1VirtualMachineInstanceMigrationSpec(object): and the value is json key in definition. """ swagger_types = { + 'configuration': 'V1MigrationConfig', 'vmi_name': 'str' } attribute_map = { + 'configuration': 'configuration', 'vmi_name': 'vmiName' } - def __init__(self, vmi_name=None): + def __init__(self, configuration=None, vmi_name=None): """ V1VirtualMachineInstanceMigrationSpec - a model defined in Swagger """ + self._configuration = None self._vmi_name = None + if configuration is not None: + self.configuration = configuration if vmi_name is not None: self.vmi_name = vmi_name + @property + def configuration(self): + """ + Gets the configuration of this V1VirtualMachineInstanceMigrationSpec. + + :return: The configuration of this V1VirtualMachineInstanceMigrationSpec. + :rtype: V1MigrationConfig + """ + return self._configuration + + @configuration.setter + def configuration(self, configuration): + """ + Sets the configuration of this V1VirtualMachineInstanceMigrationSpec. + + :param configuration: The configuration of this V1VirtualMachineInstanceMigrationSpec. + :type: V1MigrationConfig + """ + + self._configuration = configuration + @property def vmi_name(self): """ diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_state.py b/kubevirt/models/v1_virtual_machine_instance_migration_state.py index 61e716f2..6787699b 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_state.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_state.py @@ -34,6 +34,7 @@ class V1VirtualMachineInstanceMigrationState(object): 'completed': 'bool', 'end_timestamp': 'str', 'failed': 'bool', + 'migration_config': 'V1MigrationConfig', 'migration_uid': 'str', 'source_node': 'str', 'start_timestamp': 'str', @@ -48,6 +49,7 @@ class V1VirtualMachineInstanceMigrationState(object): 'completed': 'completed', 'end_timestamp': 'endTimestamp', 'failed': 'failed', + 'migration_config': 'migrationConfig', 'migration_uid': 'migrationUid', 'source_node': 'sourceNode', 'start_timestamp': 'startTimestamp', @@ -58,7 +60,7 @@ class V1VirtualMachineInstanceMigrationState(object): 'target_pod': 'targetPod' } - def __init__(self, completed=None, end_timestamp=None, failed=None, migration_uid=None, source_node=None, start_timestamp=None, target_direct_migration_node_ports=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_pod=None): + def __init__(self, completed=None, end_timestamp=None, failed=None, migration_config=None, migration_uid=None, source_node=None, start_timestamp=None, target_direct_migration_node_ports=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_pod=None): """ V1VirtualMachineInstanceMigrationState - a model defined in Swagger """ @@ -66,6 +68,7 @@ def __init__(self, completed=None, end_timestamp=None, failed=None, migration_ui self._completed = None self._end_timestamp = None self._failed = None + self._migration_config = None self._migration_uid = None self._source_node = None self._start_timestamp = None @@ -81,6 +84,8 @@ def __init__(self, completed=None, end_timestamp=None, failed=None, migration_ui self.end_timestamp = end_timestamp if failed is not None: self.failed = failed + if migration_config is not None: + self.migration_config = migration_config if migration_uid is not None: self.migration_uid = migration_uid if source_node is not None: @@ -167,6 +172,29 @@ def failed(self, failed): self._failed = failed + @property + def migration_config(self): + """ + Gets the migration_config of this V1VirtualMachineInstanceMigrationState. + Config contains migration configuration options + + :return: The migration_config of this V1VirtualMachineInstanceMigrationState. + :rtype: V1MigrationConfig + """ + return self._migration_config + + @migration_config.setter + def migration_config(self, migration_config): + """ + Sets the migration_config of this V1VirtualMachineInstanceMigrationState. + Config contains migration configuration options + + :param migration_config: The migration_config of this V1VirtualMachineInstanceMigrationState. + :type: V1MigrationConfig + """ + + self._migration_config = migration_config + @property def migration_uid(self): """ diff --git a/setup.py b/setup.py index 35dab7a4..d50502d7 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.15.0-alpha.0-20-g8812e565" +VERSION = "v0.15.0-alpha.0-90-g629e7a67" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index c59ef3f9..0cf880f0 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.15.0-alpha.0-20-g8812e565" +"packageVersion": "v0.15.0-alpha.0-90-g629e7a67" } diff --git a/test/test_v1_migration_config.py b/test/test_v1_migration_config.py new file mode 100644 index 00000000..50c464ee --- /dev/null +++ b/test/test_v1_migration_config.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_migration_config import V1MigrationConfig + + +class TestV1MigrationConfig(unittest.TestCase): + """ V1MigrationConfig unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1MigrationConfig(self): + """ + Test V1MigrationConfig + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_migration_config.V1MigrationConfig() + pass + + +if __name__ == '__main__': + unittest.main() From 4b558bd707d3fd8195836da0f7d4fa0e38dc49e5 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 26 Mar 2019 12:53:51 +0000 Subject: [PATCH 093/521] Client Python update by Travis Build 7270 --- README.md | 3 +- ...irtualMachineInstanceMigrationCondition.md | 13 ++ .../V1VirtualMachineInstanceMigrationState.md | 2 + ...V1VirtualMachineInstanceMigrationStatus.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 5 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + ...al_machine_instance_migration_condition.py | 203 ++++++++++++++++++ ...irtual_machine_instance_migration_state.py | 58 ++++- ...rtual_machine_instance_migration_status.py | 28 ++- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...al_machine_instance_migration_condition.py | 44 ++++ 16 files changed, 361 insertions(+), 8 deletions(-) create mode 100644 docs/V1VirtualMachineInstanceMigrationCondition.md create mode 100644 kubevirt/models/v1_virtual_machine_instance_migration_condition.py create mode 100644 test/test_v1_virtual_machine_instance_migration_condition.py diff --git a/README.md b/README.md index 7db51df5..35495d40 100644 --- a/README.md +++ b/README.md @@ -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: v0.15.0-alpha.0-90-g629e7a67 +- Package version: v0.15.0-124-g14a8082f - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -232,6 +232,7 @@ Class | Method | HTTP request | Description - [V1VirtualMachineInstanceCondition](docs/V1VirtualMachineInstanceCondition.md) - [V1VirtualMachineInstanceList](docs/V1VirtualMachineInstanceList.md) - [V1VirtualMachineInstanceMigration](docs/V1VirtualMachineInstanceMigration.md) + - [V1VirtualMachineInstanceMigrationCondition](docs/V1VirtualMachineInstanceMigrationCondition.md) - [V1VirtualMachineInstanceMigrationList](docs/V1VirtualMachineInstanceMigrationList.md) - [V1VirtualMachineInstanceMigrationSpec](docs/V1VirtualMachineInstanceMigrationSpec.md) - [V1VirtualMachineInstanceMigrationState](docs/V1VirtualMachineInstanceMigrationState.md) diff --git a/docs/V1VirtualMachineInstanceMigrationCondition.md b/docs/V1VirtualMachineInstanceMigrationCondition.md new file mode 100644 index 00000000..f1cd0b73 --- /dev/null +++ b/docs/V1VirtualMachineInstanceMigrationCondition.md @@ -0,0 +1,13 @@ +# V1VirtualMachineInstanceMigrationCondition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | | [optional] +**reason** | **str** | | [optional] +**status** | **str** | | +**type** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceMigrationState.md b/docs/V1VirtualMachineInstanceMigrationState.md index 585414d6..939e2dca 100644 --- a/docs/V1VirtualMachineInstanceMigrationState.md +++ b/docs/V1VirtualMachineInstanceMigrationState.md @@ -3,6 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**abort_requested** | **bool** | Indicates that the migration has been requested to abort | [optional] +**abort_status** | **str** | Indicates the final status of the live migration abortion | [optional] **completed** | **bool** | Indicates the migration completed | [optional] **end_timestamp** | **str** | The time the migration action ended | [optional] **failed** | **bool** | Indicates that the migration failed | [optional] diff --git a/docs/V1VirtualMachineInstanceMigrationStatus.md b/docs/V1VirtualMachineInstanceMigrationStatus.md index 1f598fd2..618ec5f5 100644 --- a/docs/V1VirtualMachineInstanceMigrationStatus.md +++ b/docs/V1VirtualMachineInstanceMigrationStatus.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**conditions** | [**list[V1VirtualMachineInstanceMigrationCondition]**](V1VirtualMachineInstanceMigrationCondition.md) | | [optional] **phase** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 406a53bf..b0f8bc5c 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.15.0-alpha.0-90-g629e7a67" + release_note="Auto-generated client v0.15.0-124-g14a8082f" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index be40580b..18a5c8cd 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -10,6 +10,8 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] INFO io.swagger.codegen.ignore.CodegenIgnoreProcessor - No .swagger-codegen-ignore file found. [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default appVersion set to 1.0.0 [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default version set to 1.0.0 @@ -292,6 +294,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_virtual_machine_instance_migration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_migration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceMigration.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_migration_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_migration_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceMigrationCondition.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_migration_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_migration_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceMigrationList.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index a456657e..56156c00 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -107,6 +107,7 @@ from .models.v1_virtual_machine_instance_condition import V1VirtualMachineInstanceCondition from .models.v1_virtual_machine_instance_list import V1VirtualMachineInstanceList from .models.v1_virtual_machine_instance_migration import V1VirtualMachineInstanceMigration +from .models.v1_virtual_machine_instance_migration_condition import V1VirtualMachineInstanceMigrationCondition from .models.v1_virtual_machine_instance_migration_list import V1VirtualMachineInstanceMigrationList from .models.v1_virtual_machine_instance_migration_spec import V1VirtualMachineInstanceMigrationSpec from .models.v1_virtual_machine_instance_migration_state import V1VirtualMachineInstanceMigrationState diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 414c5e27..8f8f983e 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.15.0-alpha.0-90-g629e7a67/python' + self.user_agent = 'Swagger-Codegen/v0.15.0-124-g14a8082f/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index ba5cbeea..65d66fb7 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.15.0-alpha.0-90-g629e7a67".\ + "SDK Package Version: v0.15.0-124-g14a8082f".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 364efdd2..bea8be82 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -107,6 +107,7 @@ from .v1_virtual_machine_instance_condition import V1VirtualMachineInstanceCondition from .v1_virtual_machine_instance_list import V1VirtualMachineInstanceList from .v1_virtual_machine_instance_migration import V1VirtualMachineInstanceMigration +from .v1_virtual_machine_instance_migration_condition import V1VirtualMachineInstanceMigrationCondition from .v1_virtual_machine_instance_migration_list import V1VirtualMachineInstanceMigrationList from .v1_virtual_machine_instance_migration_spec import V1VirtualMachineInstanceMigrationSpec from .v1_virtual_machine_instance_migration_state import V1VirtualMachineInstanceMigrationState diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_condition.py b/kubevirt/models/v1_virtual_machine_instance_migration_condition.py new file mode 100644 index 00000000..50ba1cb1 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_migration_condition.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineInstanceMigrationCondition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + attribute_map = { + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + def __init__(self, message=None, reason=None, status=None, type=None): + """ + V1VirtualMachineInstanceMigrationCondition - a model defined in Swagger + """ + + self._message = None + self._reason = None + self._status = None + self._type = None + + if message is not None: + self.message = message + if reason is not None: + self.reason = reason + self.status = status + self.type = type + + @property + def message(self): + """ + Gets the message of this V1VirtualMachineInstanceMigrationCondition. + + :return: The message of this V1VirtualMachineInstanceMigrationCondition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1VirtualMachineInstanceMigrationCondition. + + :param message: The message of this V1VirtualMachineInstanceMigrationCondition. + :type: str + """ + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1VirtualMachineInstanceMigrationCondition. + + :return: The reason of this V1VirtualMachineInstanceMigrationCondition. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1VirtualMachineInstanceMigrationCondition. + + :param reason: The reason of this V1VirtualMachineInstanceMigrationCondition. + :type: str + """ + + self._reason = reason + + @property + def status(self): + """ + Gets the status of this V1VirtualMachineInstanceMigrationCondition. + + :return: The status of this V1VirtualMachineInstanceMigrationCondition. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1VirtualMachineInstanceMigrationCondition. + + :param status: The status of this V1VirtualMachineInstanceMigrationCondition. + :type: str + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def type(self): + """ + Gets the type of this V1VirtualMachineInstanceMigrationCondition. + + :return: The type of this V1VirtualMachineInstanceMigrationCondition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1VirtualMachineInstanceMigrationCondition. + + :param type: The type of this V1VirtualMachineInstanceMigrationCondition. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineInstanceMigrationCondition): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_state.py b/kubevirt/models/v1_virtual_machine_instance_migration_state.py index 6787699b..e9fac2c7 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_state.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_state.py @@ -31,6 +31,8 @@ class V1VirtualMachineInstanceMigrationState(object): and the value is json key in definition. """ swagger_types = { + 'abort_requested': 'bool', + 'abort_status': 'str', 'completed': 'bool', 'end_timestamp': 'str', 'failed': 'bool', @@ -46,6 +48,8 @@ class V1VirtualMachineInstanceMigrationState(object): } attribute_map = { + 'abort_requested': 'abortRequested', + 'abort_status': 'abortStatus', 'completed': 'completed', 'end_timestamp': 'endTimestamp', 'failed': 'failed', @@ -60,11 +64,13 @@ class V1VirtualMachineInstanceMigrationState(object): 'target_pod': 'targetPod' } - def __init__(self, completed=None, end_timestamp=None, failed=None, migration_config=None, migration_uid=None, source_node=None, start_timestamp=None, target_direct_migration_node_ports=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_pod=None): + def __init__(self, abort_requested=None, abort_status=None, completed=None, end_timestamp=None, failed=None, migration_config=None, migration_uid=None, source_node=None, start_timestamp=None, target_direct_migration_node_ports=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_pod=None): """ V1VirtualMachineInstanceMigrationState - a model defined in Swagger """ + self._abort_requested = None + self._abort_status = None self._completed = None self._end_timestamp = None self._failed = None @@ -78,6 +84,10 @@ def __init__(self, completed=None, end_timestamp=None, failed=None, migration_co self._target_node_domain_detected = None self._target_pod = None + if abort_requested is not None: + self.abort_requested = abort_requested + if abort_status is not None: + self.abort_status = abort_status if completed is not None: self.completed = completed if end_timestamp is not None: @@ -103,6 +113,52 @@ def __init__(self, completed=None, end_timestamp=None, failed=None, migration_co if target_pod is not None: self.target_pod = target_pod + @property + def abort_requested(self): + """ + Gets the abort_requested of this V1VirtualMachineInstanceMigrationState. + Indicates that the migration has been requested to abort + + :return: The abort_requested of this V1VirtualMachineInstanceMigrationState. + :rtype: bool + """ + return self._abort_requested + + @abort_requested.setter + def abort_requested(self, abort_requested): + """ + Sets the abort_requested of this V1VirtualMachineInstanceMigrationState. + Indicates that the migration has been requested to abort + + :param abort_requested: The abort_requested of this V1VirtualMachineInstanceMigrationState. + :type: bool + """ + + self._abort_requested = abort_requested + + @property + def abort_status(self): + """ + Gets the abort_status of this V1VirtualMachineInstanceMigrationState. + Indicates the final status of the live migration abortion + + :return: The abort_status of this V1VirtualMachineInstanceMigrationState. + :rtype: str + """ + return self._abort_status + + @abort_status.setter + def abort_status(self, abort_status): + """ + Sets the abort_status of this V1VirtualMachineInstanceMigrationState. + Indicates the final status of the live migration abortion + + :param abort_status: The abort_status of this V1VirtualMachineInstanceMigrationState. + :type: str + """ + + self._abort_status = abort_status + @property def completed(self): """ diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_status.py b/kubevirt/models/v1_virtual_machine_instance_migration_status.py index 80f4e402..e50fe360 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_status.py @@ -31,23 +31,49 @@ class V1VirtualMachineInstanceMigrationStatus(object): and the value is json key in definition. """ swagger_types = { + 'conditions': 'list[V1VirtualMachineInstanceMigrationCondition]', 'phase': 'str' } attribute_map = { + 'conditions': 'conditions', 'phase': 'phase' } - def __init__(self, phase=None): + def __init__(self, conditions=None, phase=None): """ V1VirtualMachineInstanceMigrationStatus - a model defined in Swagger """ + self._conditions = None self._phase = None + if conditions is not None: + self.conditions = conditions if phase is not None: self.phase = phase + @property + def conditions(self): + """ + Gets the conditions of this V1VirtualMachineInstanceMigrationStatus. + + :return: The conditions of this V1VirtualMachineInstanceMigrationStatus. + :rtype: list[V1VirtualMachineInstanceMigrationCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1VirtualMachineInstanceMigrationStatus. + + :param conditions: The conditions of this V1VirtualMachineInstanceMigrationStatus. + :type: list[V1VirtualMachineInstanceMigrationCondition] + """ + + self._conditions = conditions + @property def phase(self): """ diff --git a/setup.py b/setup.py index d50502d7..d787ec66 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.15.0-alpha.0-90-g629e7a67" +VERSION = "v0.15.0-124-g14a8082f" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 0cf880f0..7c598e43 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.15.0-alpha.0-90-g629e7a67" +"packageVersion": "v0.15.0-124-g14a8082f" } diff --git a/test/test_v1_virtual_machine_instance_migration_condition.py b/test/test_v1_virtual_machine_instance_migration_condition.py new file mode 100644 index 00000000..86e2644d --- /dev/null +++ b/test/test_v1_virtual_machine_instance_migration_condition.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_migration_condition import V1VirtualMachineInstanceMigrationCondition + + +class TestV1VirtualMachineInstanceMigrationCondition(unittest.TestCase): + """ V1VirtualMachineInstanceMigrationCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceMigrationCondition(self): + """ + Test V1VirtualMachineInstanceMigrationCondition + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_migration_condition.V1VirtualMachineInstanceMigrationCondition() + pass + + +if __name__ == '__main__': + unittest.main() From affb1d9355797d088c6c9664ded0d9afcba7b0f6 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 26 Mar 2019 18:42:55 +0000 Subject: [PATCH 094/521] Client Python update by Travis Build 7275 --- README.md | 5 +- docs/V1GenieNetwork.md | 10 ++ docs/{V1CniNetwork.md => V1MultusNetwork.md} | 5 +- docs/V1Network.md | 4 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 9 +- kubevirt/__init__.py | 3 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 3 +- ...{v1_cni_network.py => v1_genie_network.py} | 18 +- kubevirt/models/v1_multus_network.py | 154 ++++++++++++++++++ kubevirt/models/v1_network.py | 12 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...ni_network.py => test_v1_genie_network.py} | 12 +- test/test_v1_multus_network.py | 44 +++++ 17 files changed, 252 insertions(+), 37 deletions(-) create mode 100644 docs/V1GenieNetwork.md rename docs/{V1CniNetwork.md => V1MultusNetwork.md} (73%) rename kubevirt/models/{v1_cni_network.py => v1_genie_network.py} (77%) create mode 100644 kubevirt/models/v1_multus_network.py rename test/{test_v1_cni_network.py => test_v1_genie_network.py} (68%) create mode 100644 test/test_v1_multus_network.py diff --git a/README.md b/README.md index 35495d40..fca9d898 100644 --- a/README.md +++ b/README.md @@ -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: v0.15.0-124-g14a8082f +- Package version: v0.15.0-146-g351b42ca - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -151,7 +151,6 @@ Class | Method | HTTP request | Description - [V1Clock](docs/V1Clock.md) - [V1ClockOffsetUTC](docs/V1ClockOffsetUTC.md) - [V1CloudInitNoCloudSource](docs/V1CloudInitNoCloudSource.md) - - [V1CniNetwork](docs/V1CniNetwork.md) - [V1ConfigMapVolumeSource](docs/V1ConfigMapVolumeSource.md) - [V1ContainerDiskSource](docs/V1ContainerDiskSource.md) - [V1DHCPOptions](docs/V1DHCPOptions.md) @@ -172,6 +171,7 @@ Class | Method | HTTP request | Description - [V1Features](docs/V1Features.md) - [V1Firmware](docs/V1Firmware.md) - [V1FloppyTarget](docs/V1FloppyTarget.md) + - [V1GenieNetwork](docs/V1GenieNetwork.md) - [V1GroupVersionForDiscovery](docs/V1GroupVersionForDiscovery.md) - [V1HPETTimer](docs/V1HPETTimer.md) - [V1HTTPGetAction](docs/V1HTTPGetAction.md) @@ -193,6 +193,7 @@ Class | Method | HTTP request | Description - [V1Machine](docs/V1Machine.md) - [V1Memory](docs/V1Memory.md) - [V1MigrationConfig](docs/V1MigrationConfig.md) + - [V1MultusNetwork](docs/V1MultusNetwork.md) - [V1Network](docs/V1Network.md) - [V1NodeAffinity](docs/V1NodeAffinity.md) - [V1NodeSelector](docs/V1NodeSelector.md) diff --git a/docs/V1GenieNetwork.md b/docs/V1GenieNetwork.md new file mode 100644 index 00000000..a34b276a --- /dev/null +++ b/docs/V1GenieNetwork.md @@ -0,0 +1,10 @@ +# V1GenieNetwork + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**network_name** | **str** | References the CNI plugin name. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1CniNetwork.md b/docs/V1MultusNetwork.md similarity index 73% rename from docs/V1CniNetwork.md rename to docs/V1MultusNetwork.md index e4c71352..f9af5da7 100644 --- a/docs/V1CniNetwork.md +++ b/docs/V1MultusNetwork.md @@ -1,9 +1,10 @@ -# V1CniNetwork +# V1MultusNetwork ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**network_name** | **str** | References to a NetworkAttachmentDefinition CRD object. Format: <networkName>, <namespace>/<networkName>. If namespace is not specified, VMI namespace is assumed. In case of genie, it references the CNI plugin name. | +**default** | **bool** | Select the default network and add it to the multus-cni.io/default-network annotation. | [optional] +**network_name** | **str** | References to a NetworkAttachmentDefinition CRD object. Format: <networkName>, <namespace>/<networkName>. If namespace is not specified, VMI namespace is assumed. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Network.md b/docs/V1Network.md index eeddac62..bb687b6b 100644 --- a/docs/V1Network.md +++ b/docs/V1Network.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**genie** | [**V1CniNetwork**](V1CniNetwork.md) | | [optional] -**multus** | [**V1CniNetwork**](V1CniNetwork.md) | | [optional] +**genie** | [**V1GenieNetwork**](V1GenieNetwork.md) | | [optional] +**multus** | [**V1MultusNetwork**](V1MultusNetwork.md) | | [optional] **name** | **str** | Network name. Must be a DNS_LABEL and unique within the vm. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | **pod** | [**V1PodNetwork**](V1PodNetwork.md) | | [optional] diff --git a/git_push.sh b/git_push.sh index b0f8bc5c..0de463b8 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.15.0-124-g14a8082f" + release_note="Auto-generated client v0.15.0-146-g351b42ca" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 18a5c8cd..ca8b1429 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -51,9 +51,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_cloud_init_no_cloud_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_cloud_init_no_cloud_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CloudInitNoCloudSource.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_cni_network.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_cni_network.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CniNetwork.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_config_map_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_config_map_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ConfigMapVolumeSource.md @@ -114,6 +111,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_floppy_target.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_floppy_target.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1FloppyTarget.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_genie_network.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_genie_network.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1GenieNetwork.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_group_version_for_discovery.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_group_version_for_discovery.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1GroupVersionForDiscovery.md @@ -177,6 +177,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_migration_config.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_migration_config.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1MigrationConfig.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_multus_network.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_multus_network.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1MultusNetwork.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Network.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 56156c00..8d01b6e5 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -26,7 +26,6 @@ from .models.v1_clock import V1Clock from .models.v1_clock_offset_utc import V1ClockOffsetUTC from .models.v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource -from .models.v1_cni_network import V1CniNetwork from .models.v1_config_map_volume_source import V1ConfigMapVolumeSource from .models.v1_container_disk_source import V1ContainerDiskSource from .models.v1_dhcp_options import V1DHCPOptions @@ -47,6 +46,7 @@ from .models.v1_features import V1Features from .models.v1_firmware import V1Firmware from .models.v1_floppy_target import V1FloppyTarget +from .models.v1_genie_network import V1GenieNetwork from .models.v1_group_version_for_discovery import V1GroupVersionForDiscovery from .models.v1_hpet_timer import V1HPETTimer from .models.v1_http_get_action import V1HTTPGetAction @@ -68,6 +68,7 @@ from .models.v1_machine import V1Machine from .models.v1_memory import V1Memory from .models.v1_migration_config import V1MigrationConfig +from .models.v1_multus_network import V1MultusNetwork from .models.v1_network import V1Network from .models.v1_node_affinity import V1NodeAffinity from .models.v1_node_selector import V1NodeSelector diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 8f8f983e..f4a180c2 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.15.0-124-g14a8082f/python' + self.user_agent = 'Swagger-Codegen/v0.15.0-146-g351b42ca/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 65d66fb7..11603c21 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.15.0-124-g14a8082f".\ + "SDK Package Version: v0.15.0-146-g351b42ca".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index bea8be82..e3660b53 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -26,7 +26,6 @@ from .v1_clock import V1Clock from .v1_clock_offset_utc import V1ClockOffsetUTC from .v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource -from .v1_cni_network import V1CniNetwork from .v1_config_map_volume_source import V1ConfigMapVolumeSource from .v1_container_disk_source import V1ContainerDiskSource from .v1_dhcp_options import V1DHCPOptions @@ -47,6 +46,7 @@ from .v1_features import V1Features from .v1_firmware import V1Firmware from .v1_floppy_target import V1FloppyTarget +from .v1_genie_network import V1GenieNetwork from .v1_group_version_for_discovery import V1GroupVersionForDiscovery from .v1_hpet_timer import V1HPETTimer from .v1_http_get_action import V1HTTPGetAction @@ -68,6 +68,7 @@ from .v1_machine import V1Machine from .v1_memory import V1Memory from .v1_migration_config import V1MigrationConfig +from .v1_multus_network import V1MultusNetwork from .v1_network import V1Network from .v1_node_affinity import V1NodeAffinity from .v1_node_selector import V1NodeSelector diff --git a/kubevirt/models/v1_cni_network.py b/kubevirt/models/v1_genie_network.py similarity index 77% rename from kubevirt/models/v1_cni_network.py rename to kubevirt/models/v1_genie_network.py index 9a073e16..b1c684c0 100644 --- a/kubevirt/models/v1_cni_network.py +++ b/kubevirt/models/v1_genie_network.py @@ -16,7 +16,7 @@ import re -class V1CniNetwork(object): +class V1GenieNetwork(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,7 +40,7 @@ class V1CniNetwork(object): def __init__(self, network_name=None): """ - V1CniNetwork - a model defined in Swagger + V1GenieNetwork - a model defined in Swagger """ self._network_name = None @@ -50,10 +50,10 @@ def __init__(self, network_name=None): @property def network_name(self): """ - Gets the network_name of this V1CniNetwork. - References to a NetworkAttachmentDefinition CRD object. Format: , /. If namespace is not specified, VMI namespace is assumed. In case of genie, it references the CNI plugin name. + Gets the network_name of this V1GenieNetwork. + References the CNI plugin name. - :return: The network_name of this V1CniNetwork. + :return: The network_name of this V1GenieNetwork. :rtype: str """ return self._network_name @@ -61,10 +61,10 @@ def network_name(self): @network_name.setter def network_name(self, network_name): """ - Sets the network_name of this V1CniNetwork. - References to a NetworkAttachmentDefinition CRD object. Format: , /. If namespace is not specified, VMI namespace is assumed. In case of genie, it references the CNI plugin name. + Sets the network_name of this V1GenieNetwork. + References the CNI plugin name. - :param network_name: The network_name of this V1CniNetwork. + :param network_name: The network_name of this V1GenieNetwork. :type: str """ if network_name is None: @@ -114,7 +114,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1CniNetwork): + if not isinstance(other, V1GenieNetwork): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_multus_network.py b/kubevirt/models/v1_multus_network.py new file mode 100644 index 00000000..d9d22a8b --- /dev/null +++ b/kubevirt/models/v1_multus_network.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1MultusNetwork(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'default': 'bool', + 'network_name': 'str' + } + + attribute_map = { + 'default': 'default', + 'network_name': 'networkName' + } + + def __init__(self, default=None, network_name=None): + """ + V1MultusNetwork - a model defined in Swagger + """ + + self._default = None + self._network_name = None + + if default is not None: + self.default = default + self.network_name = network_name + + @property + def default(self): + """ + Gets the default of this V1MultusNetwork. + Select the default network and add it to the multus-cni.io/default-network annotation. + + :return: The default of this V1MultusNetwork. + :rtype: bool + """ + return self._default + + @default.setter + def default(self, default): + """ + Sets the default of this V1MultusNetwork. + Select the default network and add it to the multus-cni.io/default-network annotation. + + :param default: The default of this V1MultusNetwork. + :type: bool + """ + + self._default = default + + @property + def network_name(self): + """ + Gets the network_name of this V1MultusNetwork. + References to a NetworkAttachmentDefinition CRD object. Format: , /. If namespace is not specified, VMI namespace is assumed. + + :return: The network_name of this V1MultusNetwork. + :rtype: str + """ + return self._network_name + + @network_name.setter + def network_name(self, network_name): + """ + Sets the network_name of this V1MultusNetwork. + References to a NetworkAttachmentDefinition CRD object. Format: , /. If namespace is not specified, VMI namespace is assumed. + + :param network_name: The network_name of this V1MultusNetwork. + :type: str + """ + if network_name is None: + raise ValueError("Invalid value for `network_name`, must not be `None`") + + self._network_name = network_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1MultusNetwork): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_network.py b/kubevirt/models/v1_network.py index 104124fe..8bf3c78f 100644 --- a/kubevirt/models/v1_network.py +++ b/kubevirt/models/v1_network.py @@ -31,8 +31,8 @@ class V1Network(object): and the value is json key in definition. """ swagger_types = { - 'genie': 'V1CniNetwork', - 'multus': 'V1CniNetwork', + 'genie': 'V1GenieNetwork', + 'multus': 'V1MultusNetwork', 'name': 'str', 'pod': 'V1PodNetwork' } @@ -68,7 +68,7 @@ def genie(self): Gets the genie of this V1Network. :return: The genie of this V1Network. - :rtype: V1CniNetwork + :rtype: V1GenieNetwork """ return self._genie @@ -78,7 +78,7 @@ def genie(self, genie): Sets the genie of this V1Network. :param genie: The genie of this V1Network. - :type: V1CniNetwork + :type: V1GenieNetwork """ self._genie = genie @@ -89,7 +89,7 @@ def multus(self): Gets the multus of this V1Network. :return: The multus of this V1Network. - :rtype: V1CniNetwork + :rtype: V1MultusNetwork """ return self._multus @@ -99,7 +99,7 @@ def multus(self, multus): Sets the multus of this V1Network. :param multus: The multus of this V1Network. - :type: V1CniNetwork + :type: V1MultusNetwork """ self._multus = multus diff --git a/setup.py b/setup.py index d787ec66..f529e5b0 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.15.0-124-g14a8082f" +VERSION = "v0.15.0-146-g351b42ca" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 7c598e43..4a218597 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.15.0-124-g14a8082f" +"packageVersion": "v0.15.0-146-g351b42ca" } diff --git a/test/test_v1_cni_network.py b/test/test_v1_genie_network.py similarity index 68% rename from test/test_v1_cni_network.py rename to test/test_v1_genie_network.py index 4aae0260..3bb1f0ef 100644 --- a/test/test_v1_cni_network.py +++ b/test/test_v1_genie_network.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_cni_network import V1CniNetwork +from kubevirt.models.v1_genie_network import V1GenieNetwork -class TestV1CniNetwork(unittest.TestCase): - """ V1CniNetwork unit test stubs """ +class TestV1GenieNetwork(unittest.TestCase): + """ V1GenieNetwork unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1CniNetwork(self): + def testV1GenieNetwork(self): """ - Test V1CniNetwork + Test V1GenieNetwork """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_cni_network.V1CniNetwork() + #model = kubevirt.models.v1_genie_network.V1GenieNetwork() pass diff --git a/test/test_v1_multus_network.py b/test/test_v1_multus_network.py new file mode 100644 index 00000000..17008453 --- /dev/null +++ b/test/test_v1_multus_network.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_multus_network import V1MultusNetwork + + +class TestV1MultusNetwork(unittest.TestCase): + """ V1MultusNetwork unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1MultusNetwork(self): + """ + Test V1MultusNetwork + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_multus_network.V1MultusNetwork() + pass + + +if __name__ == '__main__': + unittest.main() From bd7170d6b551bb54905961e95b17ff030f61a061 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 3 Apr 2019 20:32:38 +0000 Subject: [PATCH 095/521] Client Python update by Travis Build 7386 --- README.md | 2 +- docs/V1VirtualMachineInstanceSpec.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 18 +++++++++++ kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1_virtual_machine_instance_spec.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 9 files changed, 54 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index fca9d898..f6729752 100644 --- a/README.md +++ b/README.md @@ -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: v0.15.0-146-g351b42ca +- Package version: v0.15.0-199-g4590e617 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceSpec.md b/docs/V1VirtualMachineInstanceSpec.md index 9014864b..ae14a0c7 100644 --- a/docs/V1VirtualMachineInstanceSpec.md +++ b/docs/V1VirtualMachineInstanceSpec.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **dns_config** | [**V1PodDNSConfig**](V1PodDNSConfig.md) | Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. +optional | [optional] **dns_policy** | **str** | Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. +optional | [optional] **domain** | [**V1DomainSpec**](V1DomainSpec.md) | Specification of the desired behavior of the VirtualMachineInstance on the host. | +**eviction_strategy** | [**V1EvictionStrategy**](V1EvictionStrategy.md) | EvictionStrategy can be set to \"LiveMigrate\" if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain. | [optional] **hostname** | **str** | Specifies the hostname of the vmi If not specified, the hostname will be set to the name of the vmi, if dhcp or cloud-init is configured properly. +optional | [optional] **liveness_probe** | [**V1Probe**](V1Probe.md) | Periodic probe of VirtualMachineInstance liveness. VirtualmachineInstances will be stopped if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional | [optional] **networks** | [**list[V1Network]**](V1Network.md) | List of networks that can be attached to a vm's virtual interface. | [optional] diff --git a/git_push.sh b/git_push.sh index 0de463b8..b5258f61 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.15.0-146-g351b42ca" + release_note="Auto-generated client v0.15.0-199-g4590e617" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index ca8b1429..5d82f3c7 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -633,6 +633,24 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_group_0` [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_resources_0` [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index f4a180c2..58bd34c0 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.15.0-146-g351b42ca/python' + self.user_agent = 'Swagger-Codegen/v0.15.0-199-g4590e617/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 11603c21..5e001e9e 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.15.0-146-g351b42ca".\ + "SDK Package Version: v0.15.0-199-g4590e617".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_spec.py b/kubevirt/models/v1_virtual_machine_instance_spec.py index 1c028ea3..d5384bb7 100644 --- a/kubevirt/models/v1_virtual_machine_instance_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_spec.py @@ -35,6 +35,7 @@ class V1VirtualMachineInstanceSpec(object): 'dns_config': 'V1PodDNSConfig', 'dns_policy': 'str', 'domain': 'V1DomainSpec', + 'eviction_strategy': 'V1EvictionStrategy', 'hostname': 'str', 'liveness_probe': 'V1Probe', 'networks': 'list[V1Network]', @@ -51,6 +52,7 @@ class V1VirtualMachineInstanceSpec(object): 'dns_config': 'dnsConfig', 'dns_policy': 'dnsPolicy', 'domain': 'domain', + 'eviction_strategy': 'evictionStrategy', 'hostname': 'hostname', 'liveness_probe': 'livenessProbe', 'networks': 'networks', @@ -62,7 +64,7 @@ class V1VirtualMachineInstanceSpec(object): 'volumes': 'volumes' } - def __init__(self, affinity=None, dns_config=None, dns_policy=None, domain=None, hostname=None, liveness_probe=None, networks=None, node_selector=None, readiness_probe=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, volumes=None): + def __init__(self, affinity=None, dns_config=None, dns_policy=None, domain=None, eviction_strategy=None, hostname=None, liveness_probe=None, networks=None, node_selector=None, readiness_probe=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, volumes=None): """ V1VirtualMachineInstanceSpec - a model defined in Swagger """ @@ -71,6 +73,7 @@ def __init__(self, affinity=None, dns_config=None, dns_policy=None, domain=None, self._dns_config = None self._dns_policy = None self._domain = None + self._eviction_strategy = None self._hostname = None self._liveness_probe = None self._networks = None @@ -88,6 +91,8 @@ def __init__(self, affinity=None, dns_config=None, dns_policy=None, domain=None, if dns_policy is not None: self.dns_policy = dns_policy self.domain = domain + if eviction_strategy is not None: + self.eviction_strategy = eviction_strategy if hostname is not None: self.hostname = hostname if liveness_probe is not None: @@ -201,6 +206,29 @@ def domain(self, domain): self._domain = domain + @property + def eviction_strategy(self): + """ + Gets the eviction_strategy of this V1VirtualMachineInstanceSpec. + EvictionStrategy can be set to \"LiveMigrate\" if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain. + + :return: The eviction_strategy of this V1VirtualMachineInstanceSpec. + :rtype: V1EvictionStrategy + """ + return self._eviction_strategy + + @eviction_strategy.setter + def eviction_strategy(self, eviction_strategy): + """ + Sets the eviction_strategy of this V1VirtualMachineInstanceSpec. + EvictionStrategy can be set to \"LiveMigrate\" if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain. + + :param eviction_strategy: The eviction_strategy of this V1VirtualMachineInstanceSpec. + :type: V1EvictionStrategy + """ + + self._eviction_strategy = eviction_strategy + @property def hostname(self): """ diff --git a/setup.py b/setup.py index f529e5b0..e9771d91 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.15.0-146-g351b42ca" +VERSION = "v0.15.0-199-g4590e617" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 4a218597..1c8c0801 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.15.0-146-g351b42ca" +"packageVersion": "v0.15.0-199-g4590e617" } From b804803afb791a2f75998c6970fc30cdaeaf0033 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 5 Apr 2019 15:50:06 +0000 Subject: [PATCH 096/521] Client Python update by Travis Build 7417 --- README.md | 3 +- docs/V1MigrationConfig.md | 11 -- docs/V1VirtualMachineInstanceMigrationSpec.md | 1 - .../V1VirtualMachineInstanceMigrationState.md | 1 - git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 - kubevirt/__init__.py | 1 - kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 - kubevirt/models/v1_migration_config.py | 153 ------------------ ...virtual_machine_instance_migration_spec.py | 28 +--- ...irtual_machine_instance_migration_state.py | 30 +--- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_migration_config.py | 44 ----- 16 files changed, 8 insertions(+), 278 deletions(-) delete mode 100644 docs/V1MigrationConfig.md delete mode 100644 kubevirt/models/v1_migration_config.py delete mode 100644 test/test_v1_migration_config.py diff --git a/README.md b/README.md index f6729752..1e184288 100644 --- a/README.md +++ b/README.md @@ -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: v0.15.0-199-g4590e617 +- Package version: v0.16.0-alpha.0-7-g06d91198 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -192,7 +192,6 @@ Class | Method | HTTP request | Description - [V1LunTarget](docs/V1LunTarget.md) - [V1Machine](docs/V1Machine.md) - [V1Memory](docs/V1Memory.md) - - [V1MigrationConfig](docs/V1MigrationConfig.md) - [V1MultusNetwork](docs/V1MultusNetwork.md) - [V1Network](docs/V1Network.md) - [V1NodeAffinity](docs/V1NodeAffinity.md) diff --git a/docs/V1MigrationConfig.md b/docs/V1MigrationConfig.md deleted file mode 100644 index c2917ec2..00000000 --- a/docs/V1MigrationConfig.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1MigrationConfig - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**completion_timeout_per_gi_b** | **int** | The time for GiB of data to wait for the migration to be completed before aborting it | [optional] -**progress_timeout** | **int** | The time to wait for live migration to make progress in transferring data. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1VirtualMachineInstanceMigrationSpec.md b/docs/V1VirtualMachineInstanceMigrationSpec.md index ed3381a0..8b4b0a33 100644 --- a/docs/V1VirtualMachineInstanceMigrationSpec.md +++ b/docs/V1VirtualMachineInstanceMigrationSpec.md @@ -3,7 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**configuration** | [**V1MigrationConfig**](V1MigrationConfig.md) | | [optional] **vmi_name** | **str** | The name of the VMI to perform the migration on. VMI must exist in the migration objects namespace | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceMigrationState.md b/docs/V1VirtualMachineInstanceMigrationState.md index 939e2dca..6f8539b6 100644 --- a/docs/V1VirtualMachineInstanceMigrationState.md +++ b/docs/V1VirtualMachineInstanceMigrationState.md @@ -8,7 +8,6 @@ Name | Type | Description | Notes **completed** | **bool** | Indicates the migration completed | [optional] **end_timestamp** | **str** | The time the migration action ended | [optional] **failed** | **bool** | Indicates that the migration failed | [optional] -**migration_config** | [**V1MigrationConfig**](V1MigrationConfig.md) | Config contains migration configuration options | [optional] **migration_uid** | **str** | The VirtualMachineInstanceMigration object associated with this migration | [optional] **source_node** | **str** | The source node that the VMI originated on | [optional] **start_timestamp** | **str** | The time the migration action began | [optional] diff --git a/git_push.sh b/git_push.sh index b5258f61..debb3802 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.15.0-199-g4590e617" + release_note="Auto-generated client v0.16.0-alpha.0-7-g06d91198" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 5d82f3c7..fc65f91e 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -174,9 +174,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_memory.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_memory.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Memory.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_migration_config.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_migration_config.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1MigrationConfig.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_multus_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_multus_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1MultusNetwork.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 8d01b6e5..fdb14fba 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -67,7 +67,6 @@ from .models.v1_lun_target import V1LunTarget from .models.v1_machine import V1Machine from .models.v1_memory import V1Memory -from .models.v1_migration_config import V1MigrationConfig from .models.v1_multus_network import V1MultusNetwork from .models.v1_network import V1Network from .models.v1_node_affinity import V1NodeAffinity diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 58bd34c0..6d5da60b 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.15.0-199-g4590e617/python' + self.user_agent = 'Swagger-Codegen/v0.16.0-alpha.0-7-g06d91198/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 5e001e9e..46e3dbc7 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.15.0-199-g4590e617".\ + "SDK Package Version: v0.16.0-alpha.0-7-g06d91198".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index e3660b53..3cb962f6 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -67,7 +67,6 @@ from .v1_lun_target import V1LunTarget from .v1_machine import V1Machine from .v1_memory import V1Memory -from .v1_migration_config import V1MigrationConfig from .v1_multus_network import V1MultusNetwork from .v1_network import V1Network from .v1_node_affinity import V1NodeAffinity diff --git a/kubevirt/models/v1_migration_config.py b/kubevirt/models/v1_migration_config.py deleted file mode 100644 index 702904a3..00000000 --- a/kubevirt/models/v1_migration_config.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1MigrationConfig(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'completion_timeout_per_gi_b': 'int', - 'progress_timeout': 'int' - } - - attribute_map = { - 'completion_timeout_per_gi_b': 'completionTimeoutPerGiB', - 'progress_timeout': 'progressTimeout' - } - - def __init__(self, completion_timeout_per_gi_b=None, progress_timeout=None): - """ - V1MigrationConfig - a model defined in Swagger - """ - - self._completion_timeout_per_gi_b = None - self._progress_timeout = None - - if completion_timeout_per_gi_b is not None: - self.completion_timeout_per_gi_b = completion_timeout_per_gi_b - if progress_timeout is not None: - self.progress_timeout = progress_timeout - - @property - def completion_timeout_per_gi_b(self): - """ - Gets the completion_timeout_per_gi_b of this V1MigrationConfig. - The time for GiB of data to wait for the migration to be completed before aborting it - - :return: The completion_timeout_per_gi_b of this V1MigrationConfig. - :rtype: int - """ - return self._completion_timeout_per_gi_b - - @completion_timeout_per_gi_b.setter - def completion_timeout_per_gi_b(self, completion_timeout_per_gi_b): - """ - Sets the completion_timeout_per_gi_b of this V1MigrationConfig. - The time for GiB of data to wait for the migration to be completed before aborting it - - :param completion_timeout_per_gi_b: The completion_timeout_per_gi_b of this V1MigrationConfig. - :type: int - """ - - self._completion_timeout_per_gi_b = completion_timeout_per_gi_b - - @property - def progress_timeout(self): - """ - Gets the progress_timeout of this V1MigrationConfig. - The time to wait for live migration to make progress in transferring data. - - :return: The progress_timeout of this V1MigrationConfig. - :rtype: int - """ - return self._progress_timeout - - @progress_timeout.setter - def progress_timeout(self, progress_timeout): - """ - Sets the progress_timeout of this V1MigrationConfig. - The time to wait for live migration to make progress in transferring data. - - :param progress_timeout: The progress_timeout of this V1MigrationConfig. - :type: int - """ - - self._progress_timeout = progress_timeout - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1MigrationConfig): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_spec.py b/kubevirt/models/v1_virtual_machine_instance_migration_spec.py index 2f9ed0f0..8f03dede 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_spec.py @@ -31,49 +31,23 @@ class V1VirtualMachineInstanceMigrationSpec(object): and the value is json key in definition. """ swagger_types = { - 'configuration': 'V1MigrationConfig', 'vmi_name': 'str' } attribute_map = { - 'configuration': 'configuration', 'vmi_name': 'vmiName' } - def __init__(self, configuration=None, vmi_name=None): + def __init__(self, vmi_name=None): """ V1VirtualMachineInstanceMigrationSpec - a model defined in Swagger """ - self._configuration = None self._vmi_name = None - if configuration is not None: - self.configuration = configuration if vmi_name is not None: self.vmi_name = vmi_name - @property - def configuration(self): - """ - Gets the configuration of this V1VirtualMachineInstanceMigrationSpec. - - :return: The configuration of this V1VirtualMachineInstanceMigrationSpec. - :rtype: V1MigrationConfig - """ - return self._configuration - - @configuration.setter - def configuration(self, configuration): - """ - Sets the configuration of this V1VirtualMachineInstanceMigrationSpec. - - :param configuration: The configuration of this V1VirtualMachineInstanceMigrationSpec. - :type: V1MigrationConfig - """ - - self._configuration = configuration - @property def vmi_name(self): """ diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_state.py b/kubevirt/models/v1_virtual_machine_instance_migration_state.py index e9fac2c7..52fff783 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_state.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_state.py @@ -36,7 +36,6 @@ class V1VirtualMachineInstanceMigrationState(object): 'completed': 'bool', 'end_timestamp': 'str', 'failed': 'bool', - 'migration_config': 'V1MigrationConfig', 'migration_uid': 'str', 'source_node': 'str', 'start_timestamp': 'str', @@ -53,7 +52,6 @@ class V1VirtualMachineInstanceMigrationState(object): 'completed': 'completed', 'end_timestamp': 'endTimestamp', 'failed': 'failed', - 'migration_config': 'migrationConfig', 'migration_uid': 'migrationUid', 'source_node': 'sourceNode', 'start_timestamp': 'startTimestamp', @@ -64,7 +62,7 @@ class V1VirtualMachineInstanceMigrationState(object): 'target_pod': 'targetPod' } - def __init__(self, abort_requested=None, abort_status=None, completed=None, end_timestamp=None, failed=None, migration_config=None, migration_uid=None, source_node=None, start_timestamp=None, target_direct_migration_node_ports=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_pod=None): + def __init__(self, abort_requested=None, abort_status=None, completed=None, end_timestamp=None, failed=None, migration_uid=None, source_node=None, start_timestamp=None, target_direct_migration_node_ports=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_pod=None): """ V1VirtualMachineInstanceMigrationState - a model defined in Swagger """ @@ -74,7 +72,6 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self._completed = None self._end_timestamp = None self._failed = None - self._migration_config = None self._migration_uid = None self._source_node = None self._start_timestamp = None @@ -94,8 +91,6 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self.end_timestamp = end_timestamp if failed is not None: self.failed = failed - if migration_config is not None: - self.migration_config = migration_config if migration_uid is not None: self.migration_uid = migration_uid if source_node is not None: @@ -228,29 +223,6 @@ def failed(self, failed): self._failed = failed - @property - def migration_config(self): - """ - Gets the migration_config of this V1VirtualMachineInstanceMigrationState. - Config contains migration configuration options - - :return: The migration_config of this V1VirtualMachineInstanceMigrationState. - :rtype: V1MigrationConfig - """ - return self._migration_config - - @migration_config.setter - def migration_config(self, migration_config): - """ - Sets the migration_config of this V1VirtualMachineInstanceMigrationState. - Config contains migration configuration options - - :param migration_config: The migration_config of this V1VirtualMachineInstanceMigrationState. - :type: V1MigrationConfig - """ - - self._migration_config = migration_config - @property def migration_uid(self): """ diff --git a/setup.py b/setup.py index e9771d91..46640c24 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.15.0-199-g4590e617" +VERSION = "v0.16.0-alpha.0-7-g06d91198" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 1c8c0801..171dd28f 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.15.0-199-g4590e617" +"packageVersion": "v0.16.0-alpha.0-7-g06d91198" } diff --git a/test/test_v1_migration_config.py b/test/test_v1_migration_config.py deleted file mode 100644 index 50c464ee..00000000 --- a/test/test_v1_migration_config.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_migration_config import V1MigrationConfig - - -class TestV1MigrationConfig(unittest.TestCase): - """ V1MigrationConfig unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1MigrationConfig(self): - """ - Test V1MigrationConfig - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_migration_config.V1MigrationConfig() - pass - - -if __name__ == '__main__': - unittest.main() From 9e5b58e7f5274ead7dccdb935ebc3565e07e921b Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 10 Apr 2019 08:30:20 +0000 Subject: [PATCH 097/521] Client Python update by Travis Build 7448 --- README.md | 2 +- docs/V1alpha1DataVolumeSourceHTTP.md | 1 + docs/V1alpha1DataVolumeSourceRegistry.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1alpha1_data_volume_source_http.py | 30 ++++++++++++++++++- .../v1alpha1_data_volume_source_registry.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 66 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 1e184288..24de6698 100644 --- a/README.md +++ b/README.md @@ -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: v0.16.0-alpha.0-7-g06d91198 +- Package version: v0.16.0-13-g865aed46 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1alpha1DataVolumeSourceHTTP.md b/docs/V1alpha1DataVolumeSourceHTTP.md index 48e37f02..053e3f9b 100644 --- a/docs/V1alpha1DataVolumeSourceHTTP.md +++ b/docs/V1alpha1DataVolumeSourceHTTP.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**cert_config_map** | **str** | CertConfigMap provides a reference to the Registry certs | [optional] **secret_ref** | **str** | SecretRef provides the secret reference needed to access the HTTP source | [optional] **url** | **str** | URL is the URL of the http source | [optional] diff --git a/docs/V1alpha1DataVolumeSourceRegistry.md b/docs/V1alpha1DataVolumeSourceRegistry.md index 1361b1af..7871a81c 100644 --- a/docs/V1alpha1DataVolumeSourceRegistry.md +++ b/docs/V1alpha1DataVolumeSourceRegistry.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**cert_config_map** | **str** | CertConfigMap provides a reference to the Registry certs | [optional] **secret_ref** | **str** | SecretRef provides the secret reference needed to access the Registry source | [optional] **url** | **str** | URL is the url of the Registry source | [optional] diff --git a/git_push.sh b/git_push.sh index debb3802..2274cfef 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.16.0-alpha.0-7-g06d91198" + release_note="Auto-generated client v0.16.0-13-g865aed46" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 6d5da60b..e610b352 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.16.0-alpha.0-7-g06d91198/python' + self.user_agent = 'Swagger-Codegen/v0.16.0-13-g865aed46/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 46e3dbc7..6293212b 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.16.0-alpha.0-7-g06d91198".\ + "SDK Package Version: v0.16.0-13-g865aed46".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1alpha1_data_volume_source_http.py b/kubevirt/models/v1alpha1_data_volume_source_http.py index 914f1316..ed78f650 100644 --- a/kubevirt/models/v1alpha1_data_volume_source_http.py +++ b/kubevirt/models/v1alpha1_data_volume_source_http.py @@ -31,28 +31,56 @@ class V1alpha1DataVolumeSourceHTTP(object): and the value is json key in definition. """ swagger_types = { + 'cert_config_map': 'str', 'secret_ref': 'str', 'url': 'str' } attribute_map = { + 'cert_config_map': 'certConfigMap', 'secret_ref': 'secretRef', 'url': 'url' } - def __init__(self, secret_ref=None, url=None): + def __init__(self, cert_config_map=None, secret_ref=None, url=None): """ V1alpha1DataVolumeSourceHTTP - a model defined in Swagger """ + self._cert_config_map = None self._secret_ref = None self._url = None + if cert_config_map is not None: + self.cert_config_map = cert_config_map if secret_ref is not None: self.secret_ref = secret_ref if url is not None: self.url = url + @property + def cert_config_map(self): + """ + Gets the cert_config_map of this V1alpha1DataVolumeSourceHTTP. + CertConfigMap provides a reference to the Registry certs + + :return: The cert_config_map of this V1alpha1DataVolumeSourceHTTP. + :rtype: str + """ + return self._cert_config_map + + @cert_config_map.setter + def cert_config_map(self, cert_config_map): + """ + Sets the cert_config_map of this V1alpha1DataVolumeSourceHTTP. + CertConfigMap provides a reference to the Registry certs + + :param cert_config_map: The cert_config_map of this V1alpha1DataVolumeSourceHTTP. + :type: str + """ + + self._cert_config_map = cert_config_map + @property def secret_ref(self): """ diff --git a/kubevirt/models/v1alpha1_data_volume_source_registry.py b/kubevirt/models/v1alpha1_data_volume_source_registry.py index 49d7587f..883eadc8 100644 --- a/kubevirt/models/v1alpha1_data_volume_source_registry.py +++ b/kubevirt/models/v1alpha1_data_volume_source_registry.py @@ -31,28 +31,56 @@ class V1alpha1DataVolumeSourceRegistry(object): and the value is json key in definition. """ swagger_types = { + 'cert_config_map': 'str', 'secret_ref': 'str', 'url': 'str' } attribute_map = { + 'cert_config_map': 'certConfigMap', 'secret_ref': 'secretRef', 'url': 'url' } - def __init__(self, secret_ref=None, url=None): + def __init__(self, cert_config_map=None, secret_ref=None, url=None): """ V1alpha1DataVolumeSourceRegistry - a model defined in Swagger """ + self._cert_config_map = None self._secret_ref = None self._url = None + if cert_config_map is not None: + self.cert_config_map = cert_config_map if secret_ref is not None: self.secret_ref = secret_ref if url is not None: self.url = url + @property + def cert_config_map(self): + """ + Gets the cert_config_map of this V1alpha1DataVolumeSourceRegistry. + CertConfigMap provides a reference to the Registry certs + + :return: The cert_config_map of this V1alpha1DataVolumeSourceRegistry. + :rtype: str + """ + return self._cert_config_map + + @cert_config_map.setter + def cert_config_map(self, cert_config_map): + """ + Sets the cert_config_map of this V1alpha1DataVolumeSourceRegistry. + CertConfigMap provides a reference to the Registry certs + + :param cert_config_map: The cert_config_map of this V1alpha1DataVolumeSourceRegistry. + :type: str + """ + + self._cert_config_map = cert_config_map + @property def secret_ref(self): """ diff --git a/setup.py b/setup.py index 46640c24..c9497606 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.16.0-alpha.0-7-g06d91198" +VERSION = "v0.16.0-13-g865aed46" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 171dd28f..f1df4eb7 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.16.0-alpha.0-7-g06d91198" +"packageVersion": "v0.16.0-13-g865aed46" } From ef3bf5a78f847a660945e13eb810f28ac8817cae Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 17 Apr 2019 16:40:20 +0000 Subject: [PATCH 098/521] Client Python update by Travis Build 7548 --- README.md | 2 +- docs/V1FeatureHyperv.md | 7 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_feature_hyperv.py | 146 ++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 155 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 24de6698..62fcacbd 100644 --- a/README.md +++ b/README.md @@ -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: v0.16.0-13-g865aed46 +- Package version: v0.16.0-48-gb37c22bb - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1FeatureHyperv.md b/docs/V1FeatureHyperv.md index 9b62c8fd..61da6084 100644 --- a/docs/V1FeatureHyperv.md +++ b/docs/V1FeatureHyperv.md @@ -3,12 +3,17 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**evmcs** | [**V1FeatureState**](V1FeatureState.md) | EVMCS Speeds up L2 vmexits, but disables other virtualization features. Requires vapic. Defaults to the machine type setting. +optional | [optional] +**frequencies** | [**V1FeatureState**](V1FeatureState.md) | Frequencies improve Hyper-V on KVM (TSC clock source). Defaults to the machine type setting. +optional | [optional] +**ipi** | [**V1FeatureState**](V1FeatureState.md) | IPI improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. +optional | [optional] +**reenlightenment** | [**V1FeatureState**](V1FeatureState.md) | Reenlightenment improve Hyper-V on KVM (TSC clock source). Defaults to the machine type setting. +optional | [optional] **relaxed** | [**V1FeatureState**](V1FeatureState.md) | Relaxed relaxes constraints on timer. Defaults to the machine type setting. +optional | [optional] -**reset** | [**V1FeatureState**](V1FeatureState.md) | Reset enables Hyperv reboot/reset for the vmi. Defaults to the machine type setting. +optional | [optional] +**reset** | [**V1FeatureState**](V1FeatureState.md) | Reset enables Hyperv reboot/reset for the vmi. Requires synic. Defaults to the machine type setting. +optional | [optional] **runtime** | [**V1FeatureState**](V1FeatureState.md) | Runtime. Defaults to the machine type setting. +optional | [optional] **spinlocks** | [**V1FeatureSpinlocks**](V1FeatureSpinlocks.md) | Spinlocks indicates if spinlocks should be made available to the guest. +optional | [optional] **synic** | [**V1FeatureState**](V1FeatureState.md) | SyNIC enable Synthetic Interrupt Controller. Defaults to the machine type setting. +optional | [optional] **synictimer** | [**V1FeatureState**](V1FeatureState.md) | SyNICTimer enable Synthetic Interrupt Controller timer. Defaults to the machine type setting. +optional | [optional] +**tlbflush** | [**V1FeatureState**](V1FeatureState.md) | TLBFlush improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. +optional | [optional] **vapic** | [**V1FeatureState**](V1FeatureState.md) | VAPIC indicates whether virtual APIC is enabled. Defaults to the machine type setting. +optional | [optional] **vendorid** | [**V1FeatureVendorID**](V1FeatureVendorID.md) | VendorID allows setting the hypervisor vendor id. Defaults to the machine type setting. +optional | [optional] **vpindex** | [**V1FeatureState**](V1FeatureState.md) | VPIndex enables the Virtual Processor Index to help windows identifying virtual processors. Defaults to the machine type setting. +optional | [optional] diff --git a/git_push.sh b/git_push.sh index 2274cfef..9c10b936 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.16.0-13-g865aed46" + release_note="Auto-generated client v0.16.0-48-gb37c22bb" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index e610b352..c8c53654 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.16.0-13-g865aed46/python' + self.user_agent = 'Swagger-Codegen/v0.16.0-48-gb37c22bb/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 6293212b..16775670 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.16.0-13-g865aed46".\ + "SDK Package Version: v0.16.0-48-gb37c22bb".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_feature_hyperv.py b/kubevirt/models/v1_feature_hyperv.py index 9f345887..4918f0ff 100644 --- a/kubevirt/models/v1_feature_hyperv.py +++ b/kubevirt/models/v1_feature_hyperv.py @@ -31,44 +31,67 @@ class V1FeatureHyperv(object): and the value is json key in definition. """ swagger_types = { + 'evmcs': 'V1FeatureState', + 'frequencies': 'V1FeatureState', + 'ipi': 'V1FeatureState', + 'reenlightenment': 'V1FeatureState', 'relaxed': 'V1FeatureState', 'reset': 'V1FeatureState', 'runtime': 'V1FeatureState', 'spinlocks': 'V1FeatureSpinlocks', 'synic': 'V1FeatureState', 'synictimer': 'V1FeatureState', + 'tlbflush': 'V1FeatureState', 'vapic': 'V1FeatureState', 'vendorid': 'V1FeatureVendorID', 'vpindex': 'V1FeatureState' } attribute_map = { + 'evmcs': 'evmcs', + 'frequencies': 'frequencies', + 'ipi': 'ipi', + 'reenlightenment': 'reenlightenment', 'relaxed': 'relaxed', 'reset': 'reset', 'runtime': 'runtime', 'spinlocks': 'spinlocks', 'synic': 'synic', 'synictimer': 'synictimer', + 'tlbflush': 'tlbflush', 'vapic': 'vapic', 'vendorid': 'vendorid', 'vpindex': 'vpindex' } - def __init__(self, relaxed=None, reset=None, runtime=None, spinlocks=None, synic=None, synictimer=None, vapic=None, vendorid=None, vpindex=None): + def __init__(self, evmcs=None, frequencies=None, ipi=None, reenlightenment=None, relaxed=None, reset=None, runtime=None, spinlocks=None, synic=None, synictimer=None, tlbflush=None, vapic=None, vendorid=None, vpindex=None): """ V1FeatureHyperv - a model defined in Swagger """ + self._evmcs = None + self._frequencies = None + self._ipi = None + self._reenlightenment = None self._relaxed = None self._reset = None self._runtime = None self._spinlocks = None self._synic = None self._synictimer = None + self._tlbflush = None self._vapic = None self._vendorid = None self._vpindex = None + if evmcs is not None: + self.evmcs = evmcs + if frequencies is not None: + self.frequencies = frequencies + if ipi is not None: + self.ipi = ipi + if reenlightenment is not None: + self.reenlightenment = reenlightenment if relaxed is not None: self.relaxed = relaxed if reset is not None: @@ -81,6 +104,8 @@ def __init__(self, relaxed=None, reset=None, runtime=None, spinlocks=None, synic self.synic = synic if synictimer is not None: self.synictimer = synictimer + if tlbflush is not None: + self.tlbflush = tlbflush if vapic is not None: self.vapic = vapic if vendorid is not None: @@ -88,6 +113,98 @@ def __init__(self, relaxed=None, reset=None, runtime=None, spinlocks=None, synic if vpindex is not None: self.vpindex = vpindex + @property + def evmcs(self): + """ + Gets the evmcs of this V1FeatureHyperv. + EVMCS Speeds up L2 vmexits, but disables other virtualization features. Requires vapic. Defaults to the machine type setting. +optional + + :return: The evmcs of this V1FeatureHyperv. + :rtype: V1FeatureState + """ + return self._evmcs + + @evmcs.setter + def evmcs(self, evmcs): + """ + Sets the evmcs of this V1FeatureHyperv. + EVMCS Speeds up L2 vmexits, but disables other virtualization features. Requires vapic. Defaults to the machine type setting. +optional + + :param evmcs: The evmcs of this V1FeatureHyperv. + :type: V1FeatureState + """ + + self._evmcs = evmcs + + @property + def frequencies(self): + """ + Gets the frequencies of this V1FeatureHyperv. + Frequencies improve Hyper-V on KVM (TSC clock source). Defaults to the machine type setting. +optional + + :return: The frequencies of this V1FeatureHyperv. + :rtype: V1FeatureState + """ + return self._frequencies + + @frequencies.setter + def frequencies(self, frequencies): + """ + Sets the frequencies of this V1FeatureHyperv. + Frequencies improve Hyper-V on KVM (TSC clock source). Defaults to the machine type setting. +optional + + :param frequencies: The frequencies of this V1FeatureHyperv. + :type: V1FeatureState + """ + + self._frequencies = frequencies + + @property + def ipi(self): + """ + Gets the ipi of this V1FeatureHyperv. + IPI improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. +optional + + :return: The ipi of this V1FeatureHyperv. + :rtype: V1FeatureState + """ + return self._ipi + + @ipi.setter + def ipi(self, ipi): + """ + Sets the ipi of this V1FeatureHyperv. + IPI improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. +optional + + :param ipi: The ipi of this V1FeatureHyperv. + :type: V1FeatureState + """ + + self._ipi = ipi + + @property + def reenlightenment(self): + """ + Gets the reenlightenment of this V1FeatureHyperv. + Reenlightenment improve Hyper-V on KVM (TSC clock source). Defaults to the machine type setting. +optional + + :return: The reenlightenment of this V1FeatureHyperv. + :rtype: V1FeatureState + """ + return self._reenlightenment + + @reenlightenment.setter + def reenlightenment(self, reenlightenment): + """ + Sets the reenlightenment of this V1FeatureHyperv. + Reenlightenment improve Hyper-V on KVM (TSC clock source). Defaults to the machine type setting. +optional + + :param reenlightenment: The reenlightenment of this V1FeatureHyperv. + :type: V1FeatureState + """ + + self._reenlightenment = reenlightenment + @property def relaxed(self): """ @@ -115,7 +232,7 @@ def relaxed(self, relaxed): def reset(self): """ Gets the reset of this V1FeatureHyperv. - Reset enables Hyperv reboot/reset for the vmi. Defaults to the machine type setting. +optional + Reset enables Hyperv reboot/reset for the vmi. Requires synic. Defaults to the machine type setting. +optional :return: The reset of this V1FeatureHyperv. :rtype: V1FeatureState @@ -126,7 +243,7 @@ def reset(self): def reset(self, reset): """ Sets the reset of this V1FeatureHyperv. - Reset enables Hyperv reboot/reset for the vmi. Defaults to the machine type setting. +optional + Reset enables Hyperv reboot/reset for the vmi. Requires synic. Defaults to the machine type setting. +optional :param reset: The reset of this V1FeatureHyperv. :type: V1FeatureState @@ -226,6 +343,29 @@ def synictimer(self, synictimer): self._synictimer = synictimer + @property + def tlbflush(self): + """ + Gets the tlbflush of this V1FeatureHyperv. + TLBFlush improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. +optional + + :return: The tlbflush of this V1FeatureHyperv. + :rtype: V1FeatureState + """ + return self._tlbflush + + @tlbflush.setter + def tlbflush(self, tlbflush): + """ + Sets the tlbflush of this V1FeatureHyperv. + TLBFlush improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. +optional + + :param tlbflush: The tlbflush of this V1FeatureHyperv. + :type: V1FeatureState + """ + + self._tlbflush = tlbflush + @property def vapic(self): """ diff --git a/setup.py b/setup.py index c9497606..4ba2f9f3 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.16.0-13-g865aed46" +VERSION = "v0.16.0-48-gb37c22bb" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index f1df4eb7..368b46da 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.16.0-13-g865aed46" +"packageVersion": "v0.16.0-48-gb37c22bb" } From 44cdb637adeb2f35b4f16d5d2a4d37354cb3bbe7 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 24 Apr 2019 16:50:18 +0000 Subject: [PATCH 099/521] Client Python update by Travis Build 7630 --- README.md | 2 +- docs/V1alpha1DataVolumeStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../models/v1alpha1_data_volume_status.py | 32 +++++++++++++++++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 62fcacbd..ec7367c6 100644 --- a/README.md +++ b/README.md @@ -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: v0.16.0-48-gb37c22bb +- Package version: v0.16.0-86-g91ab46c0 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1alpha1DataVolumeStatus.md b/docs/V1alpha1DataVolumeStatus.md index e7a6b696..be9f5a4a 100644 --- a/docs/V1alpha1DataVolumeStatus.md +++ b/docs/V1alpha1DataVolumeStatus.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **phase** | **str** | Phase is the current phase of the data volume | [optional] +**progress** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 9c10b936..b6d82997 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.16.0-48-gb37c22bb" + release_note="Auto-generated client v0.16.0-86-g91ab46c0" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index c8c53654..6e613ac9 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.16.0-48-gb37c22bb/python' + self.user_agent = 'Swagger-Codegen/v0.16.0-86-g91ab46c0/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 16775670..3f30160d 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.16.0-48-gb37c22bb".\ + "SDK Package Version: v0.16.0-86-g91ab46c0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1alpha1_data_volume_status.py b/kubevirt/models/v1alpha1_data_volume_status.py index 36e38689..145f563d 100644 --- a/kubevirt/models/v1alpha1_data_volume_status.py +++ b/kubevirt/models/v1alpha1_data_volume_status.py @@ -31,22 +31,27 @@ class V1alpha1DataVolumeStatus(object): and the value is json key in definition. """ swagger_types = { - 'phase': 'str' + 'phase': 'str', + 'progress': 'str' } attribute_map = { - 'phase': 'phase' + 'phase': 'phase', + 'progress': 'progress' } - def __init__(self, phase=None): + def __init__(self, phase=None, progress=None): """ V1alpha1DataVolumeStatus - a model defined in Swagger """ self._phase = None + self._progress = None if phase is not None: self.phase = phase + if progress is not None: + self.progress = progress @property def phase(self): @@ -71,6 +76,27 @@ def phase(self, phase): self._phase = phase + @property + def progress(self): + """ + Gets the progress of this V1alpha1DataVolumeStatus. + + :return: The progress of this V1alpha1DataVolumeStatus. + :rtype: str + """ + return self._progress + + @progress.setter + def progress(self, progress): + """ + Sets the progress of this V1alpha1DataVolumeStatus. + + :param progress: The progress of this V1alpha1DataVolumeStatus. + :type: str + """ + + self._progress = progress + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 4ba2f9f3..7d62f8fb 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.16.0-48-gb37c22bb" +VERSION = "v0.16.0-86-g91ab46c0" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 368b46da..503f0dd7 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.16.0-48-gb37c22bb" +"packageVersion": "v0.16.0-86-g91ab46c0" } From 286e0aecbda238196e97e7e1ceba7cfdfdbf5ad7 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 26 Apr 2019 13:55:17 +0000 Subject: [PATCH 100/521] Client Python update by Travis Build 7660 --- README.md | 5 +- docs/DefaultApi.md | 106 +++++++++ docs/V1VirtualMachineSpec.md | 3 +- docs/V1VirtualMachineStateChangeRequest.md | 11 + docs/V1VirtualMachineStatus.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 15 ++ kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 214 ++++++++++++++++++ kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_virtual_machine_spec.py | 39 +++- ...v1_virtual_machine_state_change_request.py | 154 +++++++++++++ kubevirt/models/v1_virtual_machine_status.py | 34 ++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 16 ++ ...v1_virtual_machine_state_change_request.py | 44 ++++ 19 files changed, 638 insertions(+), 16 deletions(-) create mode 100644 docs/V1VirtualMachineStateChangeRequest.md create mode 100644 kubevirt/models/v1_virtual_machine_state_change_request.py create mode 100644 test/test_v1_virtual_machine_state_change_request.py diff --git a/README.md b/README.md index ec7367c6..fc9ce1fb 100644 --- a/README.md +++ b/README.md @@ -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: v0.16.0-86-g91ab46c0 +- Package version: v0.16.0-109-g5a0c2c50 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -122,6 +122,8 @@ Class | Method | HTTP request | Description *DefaultApi* | [**replace_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Update a VirtualMachineInstancePreset object. *DefaultApi* | [**replace_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Update a VirtualMachineInstanceReplicaSet object. *DefaultApi* | [**restart**](docs/DefaultApi.md#restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/restart | Restart a VirtualMachine object. +*DefaultApi* | [**start**](docs/DefaultApi.md#start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/start | Start a VirtualMachine object. +*DefaultApi* | [**stop**](docs/DefaultApi.md#stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/stop | Stop a VirtualMachine object. *DefaultApi* | [**test**](docs/DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/test | Test endpoint verifying apiserver connectivity. *DefaultApi* | [**version**](docs/DefaultApi.md#version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | *DefaultApi* | [**vnc**](docs/DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/vnc | Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. @@ -251,6 +253,7 @@ Class | Method | HTTP request | Description - [V1VirtualMachineInstanceTemplateSpec](docs/V1VirtualMachineInstanceTemplateSpec.md) - [V1VirtualMachineList](docs/V1VirtualMachineList.md) - [V1VirtualMachineSpec](docs/V1VirtualMachineSpec.md) + - [V1VirtualMachineStateChangeRequest](docs/V1VirtualMachineStateChangeRequest.md) - [V1VirtualMachineStatus](docs/V1VirtualMachineStatus.md) - [V1Volume](docs/V1Volume.md) - [V1WatchEvent](docs/V1WatchEvent.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index ae2c59fb..32fc3ad3 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -53,6 +53,8 @@ Method | HTTP request | Description [**replace_namespaced_virtual_machine_instance_preset**](DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Update a VirtualMachineInstancePreset object. [**replace_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Update a VirtualMachineInstanceReplicaSet object. [**restart**](DefaultApi.md#restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/restart | Restart a VirtualMachine object. +[**start**](DefaultApi.md#start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/start | Start a VirtualMachine object. +[**stop**](DefaultApi.md#stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/stop | Stop a VirtualMachine object. [**test**](DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/test | Test endpoint verifying apiserver connectivity. [**version**](DefaultApi.md#version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | [**vnc**](DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/vnc | Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. @@ -2888,6 +2890,110 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **start** +> start(namespace, name) + +Start a VirtualMachine object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +name = 'name_example' # str | Name of the resource + +try: + # Start a VirtualMachine object. + api_instance.start(namespace, name) +except ApiException as e: + print("Exception when calling DefaultApi->start: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **name** | **str**| Name of the resource | + +### Return type + +void (empty response body) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **stop** +> stop(namespace, name) + +Stop a VirtualMachine object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +name = 'name_example' # str | Name of the resource + +try: + # Stop a VirtualMachine object. + api_instance.stop(namespace, name) +except ApiException as e: + print("Exception when calling DefaultApi->stop: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **name** | **str**| Name of the resource | + +### Return type + +void (empty response body) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **test** > test(namespace, name) diff --git a/docs/V1VirtualMachineSpec.md b/docs/V1VirtualMachineSpec.md index 45f34e68..738f9e21 100644 --- a/docs/V1VirtualMachineSpec.md +++ b/docs/V1VirtualMachineSpec.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data_volume_templates** | [**list[V1alpha1DataVolume]**](V1alpha1DataVolume.md) | dataVolumeTemplates is a list of dataVolumes that the VirtualMachineInstance template can reference. DataVolumes in this list are dynamically created for the VirtualMachine and are tied to the VirtualMachine's life-cycle. | [optional] -**running** | **bool** | Running controls whether the associatied VirtualMachineInstance is created or not | +**run_strategy** | [**V1VirtualMachineRunStrategy**](V1VirtualMachineRunStrategy.md) | Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running | [optional] +**running** | **bool** | Running controls whether the associatied VirtualMachineInstance is created or not Mutually exclusive with RunStrategy | [optional] **template** | [**V1VirtualMachineInstanceTemplateSpec**](V1VirtualMachineInstanceTemplateSpec.md) | Template is the direct specification of VirtualMachineInstance | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineStateChangeRequest.md b/docs/V1VirtualMachineStateChangeRequest.md new file mode 100644 index 00000000..68e7e1fa --- /dev/null +++ b/docs/V1VirtualMachineStateChangeRequest.md @@ -0,0 +1,11 @@ +# V1VirtualMachineStateChangeRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **str** | Indicates the type of action that is requested. e.g. Start or Stop | +**uid** | [**TypesUID**](TypesUID.md) | Indicates the UUID of an existing Virtual Machine Instance that this change request applies to -- if applicable | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineStatus.md b/docs/V1VirtualMachineStatus.md index 50f88c97..1bc287e6 100644 --- a/docs/V1VirtualMachineStatus.md +++ b/docs/V1VirtualMachineStatus.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **conditions** | [**list[V1VirtualMachineCondition]**](V1VirtualMachineCondition.md) | Hold the state information of the VirtualMachine and its VirtualMachineInstance | [optional] **created** | **bool** | Created indicates if the virtual machine is created in the cluster | [optional] **ready** | **bool** | Ready indicates if the virtual machine is running and ready | [optional] +**state_change_requests** | [**list[V1VirtualMachineStateChangeRequest]**](V1VirtualMachineStateChangeRequest.md) | StateChangeRequests indicates a list of actions that should be taken on a VMI e.g. stop a specific VMI then start a new one. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index b6d82997..848a0e42 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.16.0-86-g91ab46c0" + release_note="Auto-generated client v0.16.0-109-g5a0c2c50" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index fc65f91e..c0f36225 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -351,6 +351,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_virtual_machine_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_state_change_request.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_state_change_request.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineStateChangeRequest.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineStatus.md @@ -648,6 +651,18 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_group_0` [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_resources_0` [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index fdb14fba..aeb76566 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -126,6 +126,7 @@ from .models.v1_virtual_machine_instance_template_spec import V1VirtualMachineInstanceTemplateSpec from .models.v1_virtual_machine_list import V1VirtualMachineList from .models.v1_virtual_machine_spec import V1VirtualMachineSpec +from .models.v1_virtual_machine_state_change_request import V1VirtualMachineStateChangeRequest from .models.v1_virtual_machine_status import V1VirtualMachineStatus from .models.v1_volume import V1Volume from .models.v1_watch_event import V1WatchEvent diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 6e613ac9..a74092f6 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.16.0-86-g91ab46c0/python' + self.user_agent = 'Swagger-Codegen/v0.16.0-109-g5a0c2c50/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 6ad5257c..2b0a1340 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -5874,6 +5874,220 @@ def restart_with_http_info(self, namespace, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def start(self, namespace, name, **kwargs): + """ + Start a VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.start(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.start_with_http_info(namespace, name, **kwargs) + else: + (data) = self.start_with_http_info(namespace, name, **kwargs) + return data + + def start_with_http_info(self, namespace, name, **kwargs): + """ + Start a VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.start_with_http_info(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'name'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method start" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `start`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `start`") + + if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): + raise ValueError("Invalid value for parameter `namespace` when calling `start`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): + raise ValueError("Invalid value for parameter `name` when calling `start`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/start', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def stop(self, namespace, name, **kwargs): + """ + Stop a VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.stop(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.stop_with_http_info(namespace, name, **kwargs) + else: + (data) = self.stop_with_http_info(namespace, name, **kwargs) + return data + + def stop_with_http_info(self, namespace, name, **kwargs): + """ + Stop a VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.stop_with_http_info(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'name'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method stop" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `stop`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `stop`") + + if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): + raise ValueError("Invalid value for parameter `namespace` when calling `stop`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): + raise ValueError("Invalid value for parameter `name` when calling `stop`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/stop', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def test(self, namespace, name, **kwargs): """ Test endpoint verifying apiserver connectivity. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 3f30160d..25eb1077 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.16.0-86-g91ab46c0".\ + "SDK Package Version: v0.16.0-109-g5a0c2c50".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 3cb962f6..bce3fef9 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -126,6 +126,7 @@ from .v1_virtual_machine_instance_template_spec import V1VirtualMachineInstanceTemplateSpec from .v1_virtual_machine_list import V1VirtualMachineList from .v1_virtual_machine_spec import V1VirtualMachineSpec +from .v1_virtual_machine_state_change_request import V1VirtualMachineStateChangeRequest from .v1_virtual_machine_status import V1VirtualMachineStatus from .v1_volume import V1Volume from .v1_watch_event import V1WatchEvent diff --git a/kubevirt/models/v1_virtual_machine_spec.py b/kubevirt/models/v1_virtual_machine_spec.py index 61884cd0..8f4212fc 100644 --- a/kubevirt/models/v1_virtual_machine_spec.py +++ b/kubevirt/models/v1_virtual_machine_spec.py @@ -32,28 +32,34 @@ class V1VirtualMachineSpec(object): """ swagger_types = { 'data_volume_templates': 'list[V1alpha1DataVolume]', + 'run_strategy': 'V1VirtualMachineRunStrategy', 'running': 'bool', 'template': 'V1VirtualMachineInstanceTemplateSpec' } attribute_map = { 'data_volume_templates': 'dataVolumeTemplates', + 'run_strategy': 'runStrategy', 'running': 'running', 'template': 'template' } - def __init__(self, data_volume_templates=None, running=None, template=None): + def __init__(self, data_volume_templates=None, run_strategy=None, running=None, template=None): """ V1VirtualMachineSpec - a model defined in Swagger """ self._data_volume_templates = None + self._run_strategy = None self._running = None self._template = None if data_volume_templates is not None: self.data_volume_templates = data_volume_templates - self.running = running + if run_strategy is not None: + self.run_strategy = run_strategy + if running is not None: + self.running = running self.template = template @property @@ -79,11 +85,34 @@ def data_volume_templates(self, data_volume_templates): self._data_volume_templates = data_volume_templates + @property + def run_strategy(self): + """ + Gets the run_strategy of this V1VirtualMachineSpec. + Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running + + :return: The run_strategy of this V1VirtualMachineSpec. + :rtype: V1VirtualMachineRunStrategy + """ + return self._run_strategy + + @run_strategy.setter + def run_strategy(self, run_strategy): + """ + Sets the run_strategy of this V1VirtualMachineSpec. + Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running + + :param run_strategy: The run_strategy of this V1VirtualMachineSpec. + :type: V1VirtualMachineRunStrategy + """ + + self._run_strategy = run_strategy + @property def running(self): """ Gets the running of this V1VirtualMachineSpec. - Running controls whether the associatied VirtualMachineInstance is created or not + Running controls whether the associatied VirtualMachineInstance is created or not Mutually exclusive with RunStrategy :return: The running of this V1VirtualMachineSpec. :rtype: bool @@ -94,13 +123,11 @@ def running(self): def running(self, running): """ Sets the running of this V1VirtualMachineSpec. - Running controls whether the associatied VirtualMachineInstance is created or not + Running controls whether the associatied VirtualMachineInstance is created or not Mutually exclusive with RunStrategy :param running: The running of this V1VirtualMachineSpec. :type: bool """ - if running is None: - raise ValueError("Invalid value for `running`, must not be `None`") self._running = running diff --git a/kubevirt/models/v1_virtual_machine_state_change_request.py b/kubevirt/models/v1_virtual_machine_state_change_request.py new file mode 100644 index 00000000..c16e969e --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_state_change_request.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineStateChangeRequest(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'action': 'str', + 'uid': 'TypesUID' + } + + attribute_map = { + 'action': 'action', + 'uid': 'uid' + } + + def __init__(self, action=None, uid=None): + """ + V1VirtualMachineStateChangeRequest - a model defined in Swagger + """ + + self._action = None + self._uid = None + + self.action = action + if uid is not None: + self.uid = uid + + @property + def action(self): + """ + Gets the action of this V1VirtualMachineStateChangeRequest. + Indicates the type of action that is requested. e.g. Start or Stop + + :return: The action of this V1VirtualMachineStateChangeRequest. + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """ + Sets the action of this V1VirtualMachineStateChangeRequest. + Indicates the type of action that is requested. e.g. Start or Stop + + :param action: The action of this V1VirtualMachineStateChangeRequest. + :type: str + """ + if action is None: + raise ValueError("Invalid value for `action`, must not be `None`") + + self._action = action + + @property + def uid(self): + """ + Gets the uid of this V1VirtualMachineStateChangeRequest. + Indicates the UUID of an existing Virtual Machine Instance that this change request applies to -- if applicable + + :return: The uid of this V1VirtualMachineStateChangeRequest. + :rtype: TypesUID + """ + return self._uid + + @uid.setter + def uid(self, uid): + """ + Sets the uid of this V1VirtualMachineStateChangeRequest. + Indicates the UUID of an existing Virtual Machine Instance that this change request applies to -- if applicable + + :param uid: The uid of this V1VirtualMachineStateChangeRequest. + :type: TypesUID + """ + + self._uid = uid + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineStateChangeRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_status.py b/kubevirt/models/v1_virtual_machine_status.py index 25ba4efa..0b62dc0d 100644 --- a/kubevirt/models/v1_virtual_machine_status.py +++ b/kubevirt/models/v1_virtual_machine_status.py @@ -33,16 +33,18 @@ class V1VirtualMachineStatus(object): swagger_types = { 'conditions': 'list[V1VirtualMachineCondition]', 'created': 'bool', - 'ready': 'bool' + 'ready': 'bool', + 'state_change_requests': 'list[V1VirtualMachineStateChangeRequest]' } attribute_map = { 'conditions': 'conditions', 'created': 'created', - 'ready': 'ready' + 'ready': 'ready', + 'state_change_requests': 'stateChangeRequests' } - def __init__(self, conditions=None, created=None, ready=None): + def __init__(self, conditions=None, created=None, ready=None, state_change_requests=None): """ V1VirtualMachineStatus - a model defined in Swagger """ @@ -50,6 +52,7 @@ def __init__(self, conditions=None, created=None, ready=None): self._conditions = None self._created = None self._ready = None + self._state_change_requests = None if conditions is not None: self.conditions = conditions @@ -57,6 +60,8 @@ def __init__(self, conditions=None, created=None, ready=None): self.created = created if ready is not None: self.ready = ready + if state_change_requests is not None: + self.state_change_requests = state_change_requests @property def conditions(self): @@ -127,6 +132,29 @@ def ready(self, ready): self._ready = ready + @property + def state_change_requests(self): + """ + Gets the state_change_requests of this V1VirtualMachineStatus. + StateChangeRequests indicates a list of actions that should be taken on a VMI e.g. stop a specific VMI then start a new one. + + :return: The state_change_requests of this V1VirtualMachineStatus. + :rtype: list[V1VirtualMachineStateChangeRequest] + """ + return self._state_change_requests + + @state_change_requests.setter + def state_change_requests(self, state_change_requests): + """ + Sets the state_change_requests of this V1VirtualMachineStatus. + StateChangeRequests indicates a list of actions that should be taken on a VMI e.g. stop a specific VMI then start a new one. + + :param state_change_requests: The state_change_requests of this V1VirtualMachineStatus. + :type: list[V1VirtualMachineStateChangeRequest] + """ + + self._state_change_requests = state_change_requests + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 7d62f8fb..82c5f4c9 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.16.0-86-g91ab46c0" +VERSION = "v0.16.0-109-g5a0c2c50" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 503f0dd7..b9b0a22d 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.16.0-86-g91ab46c0" +"packageVersion": "v0.16.0-109-g5a0c2c50" } diff --git a/test/test_default_api.py b/test/test_default_api.py index d43818b4..5cf9c426 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -423,6 +423,22 @@ def test_restart(self): """ pass + def test_start(self): + """ + Test case for start + + Start a VirtualMachine object. + """ + pass + + def test_stop(self): + """ + Test case for stop + + Stop a VirtualMachine object. + """ + pass + def test_test(self): """ Test case for test diff --git a/test/test_v1_virtual_machine_state_change_request.py b/test/test_v1_virtual_machine_state_change_request.py new file mode 100644 index 00000000..69b116ef --- /dev/null +++ b/test/test_v1_virtual_machine_state_change_request.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_state_change_request import V1VirtualMachineStateChangeRequest + + +class TestV1VirtualMachineStateChangeRequest(unittest.TestCase): + """ V1VirtualMachineStateChangeRequest unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineStateChangeRequest(self): + """ + Test V1VirtualMachineStateChangeRequest + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_state_change_request.V1VirtualMachineStateChangeRequest() + pass + + +if __name__ == '__main__': + unittest.main() From 87e69c9746ab089f6a5a7c21b0037583a296cacc Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 28 May 2019 13:02:32 +0000 Subject: [PATCH 101/521] Client Python update by Travis Build 8006 --- README.md | 2 +- docs/V1PersistentVolumeClaimSpec.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_persistent_volume_claim_spec.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index fc9ce1fb..3e77b191 100644 --- a/README.md +++ b/README.md @@ -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: v0.16.0-109-g5a0c2c50 +- Package version: v0.17.0-132-g215620e2 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1PersistentVolumeClaimSpec.md b/docs/V1PersistentVolumeClaimSpec.md index 9d83b6b0..06288b59 100644 --- a/docs/V1PersistentVolumeClaimSpec.md +++ b/docs/V1PersistentVolumeClaimSpec.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources | [optional] **selector** | [**V1LabelSelector**](V1LabelSelector.md) | A label query over volumes to consider for binding. | [optional] **storage_class_name** | **str** | Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] -**volume_mode** | [**V1PersistentVolumeMode**](V1PersistentVolumeMode.md) | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is an alpha feature and may change in the future. | [optional] +**volume_mode** | [**V1PersistentVolumeMode**](V1PersistentVolumeMode.md) | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is a beta feature. | [optional] **volume_name** | **str** | VolumeName is the binding reference to the PersistentVolume backing this claim. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 848a0e42..4dea66cf 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.16.0-109-g5a0c2c50" + release_note="Auto-generated client v0.17.0-132-g215620e2" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index a74092f6..a86cd42d 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.16.0-109-g5a0c2c50/python' + self.user_agent = 'Swagger-Codegen/v0.17.0-132-g215620e2/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 25eb1077..40f0e488 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.16.0-109-g5a0c2c50".\ + "SDK Package Version: v0.17.0-132-g215620e2".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_persistent_volume_claim_spec.py b/kubevirt/models/v1_persistent_volume_claim_spec.py index c633628b..9b4042e3 100644 --- a/kubevirt/models/v1_persistent_volume_claim_spec.py +++ b/kubevirt/models/v1_persistent_volume_claim_spec.py @@ -197,7 +197,7 @@ def storage_class_name(self, storage_class_name): def volume_mode(self): """ Gets the volume_mode of this V1PersistentVolumeClaimSpec. - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is an alpha feature and may change in the future. + volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is a beta feature. :return: The volume_mode of this V1PersistentVolumeClaimSpec. :rtype: V1PersistentVolumeMode @@ -208,7 +208,7 @@ def volume_mode(self): def volume_mode(self, volume_mode): """ Sets the volume_mode of this V1PersistentVolumeClaimSpec. - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is an alpha feature and may change in the future. + volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is a beta feature. :param volume_mode: The volume_mode of this V1PersistentVolumeClaimSpec. :type: V1PersistentVolumeMode diff --git a/setup.py b/setup.py index 82c5f4c9..e6f84f3b 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.16.0-109-g5a0c2c50" +VERSION = "v0.17.0-132-g215620e2" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b9b0a22d..50505dcd 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.16.0-109-g5a0c2c50" +"packageVersion": "v0.17.0-132-g215620e2" } From 61028e3cb26c0deba49fe3e799256a054bacaa23 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 6 Jun 2019 16:36:34 +0000 Subject: [PATCH 102/521] Client Python update by Travis Build 8136 --- README.md | 3 +- docs/V1CloudInitConfigDriveSource.md | 15 + docs/V1Volume.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + .../v1_cloud_init_config_drive_source.py | 265 ++++++++++++++++++ kubevirt/models/v1_volume.py | 30 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- .../test_v1_cloud_init_config_drive_source.py | 44 +++ 14 files changed, 366 insertions(+), 7 deletions(-) create mode 100644 docs/V1CloudInitConfigDriveSource.md create mode 100644 kubevirt/models/v1_cloud_init_config_drive_source.py create mode 100644 test/test_v1_cloud_init_config_drive_source.py diff --git a/README.md b/README.md index 3e77b191..ff4513c3 100644 --- a/README.md +++ b/README.md @@ -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: v0.17.0-132-g215620e2 +- Package version: v0.18.0-16-gcee5650a - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -152,6 +152,7 @@ Class | Method | HTTP request | Description - [V1CPUFeature](docs/V1CPUFeature.md) - [V1Clock](docs/V1Clock.md) - [V1ClockOffsetUTC](docs/V1ClockOffsetUTC.md) + - [V1CloudInitConfigDriveSource](docs/V1CloudInitConfigDriveSource.md) - [V1CloudInitNoCloudSource](docs/V1CloudInitNoCloudSource.md) - [V1ConfigMapVolumeSource](docs/V1ConfigMapVolumeSource.md) - [V1ContainerDiskSource](docs/V1ContainerDiskSource.md) diff --git a/docs/V1CloudInitConfigDriveSource.md b/docs/V1CloudInitConfigDriveSource.md new file mode 100644 index 00000000..6d004036 --- /dev/null +++ b/docs/V1CloudInitConfigDriveSource.md @@ -0,0 +1,15 @@ +# V1CloudInitConfigDriveSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**network_data** | **str** | NetworkData contains config drive inline cloud-init networkdata. + optional | [optional] +**network_data_base64** | **str** | NetworkDataBase64 contains config drive cloud-init networkdata as a base64 encoded string. + optional | [optional] +**network_data_secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | NetworkDataSecretRef references a k8s secret that contains config drive networkdata. + optional | [optional] +**secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | UserDataSecretRef references a k8s secret that contains config drive userdata. + optional | [optional] +**user_data** | **str** | UserData contains config drive inline cloud-init userdata. + optional | [optional] +**user_data_base64** | **str** | UserDataBase64 contains config drive cloud-init userdata as a base64 encoded string. + optional | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Volume.md b/docs/V1Volume.md index 08706dfc..bf9bc9e4 100644 --- a/docs/V1Volume.md +++ b/docs/V1Volume.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**cloud_init_config_drive** | [**V1CloudInitConfigDriveSource**](V1CloudInitConfigDriveSource.md) | CloudInitConfigDrive represents a cloud-init Config Drive user-data source. The Config Drive data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: https://cloudinit.readthedocs.io/en/latest/topics/datasources/configdrive.html +optional | [optional] **cloud_init_no_cloud** | [**V1CloudInitNoCloudSource**](V1CloudInitNoCloudSource.md) | CloudInitNoCloud represents a cloud-init NoCloud user-data source. The NoCloud data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html +optional | [optional] **config_map** | [**V1ConfigMapVolumeSource**](V1ConfigMapVolumeSource.md) | ConfigMapSource represents a reference to a ConfigMap in the same namespace. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/ +optional | [optional] **container_disk** | [**V1ContainerDiskSource**](V1ContainerDiskSource.md) | ContainerDisk references a docker image, embedding a qcow or raw disk. More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html +optional | [optional] diff --git a/git_push.sh b/git_push.sh index 4dea66cf..7f451506 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.17.0-132-g215620e2" + release_note="Auto-generated client v0.18.0-16-gcee5650a" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index c0f36225..abac033b 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -48,6 +48,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_clock_offset_utc.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_clock_offset_utc.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ClockOffsetUTC.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_cloud_init_config_drive_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_cloud_init_config_drive_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CloudInitConfigDriveSource.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_cloud_init_no_cloud_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_cloud_init_no_cloud_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CloudInitNoCloudSource.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index aeb76566..db542826 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -25,6 +25,7 @@ from .models.v1_cpu_feature import V1CPUFeature from .models.v1_clock import V1Clock from .models.v1_clock_offset_utc import V1ClockOffsetUTC +from .models.v1_cloud_init_config_drive_source import V1CloudInitConfigDriveSource from .models.v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource from .models.v1_config_map_volume_source import V1ConfigMapVolumeSource from .models.v1_container_disk_source import V1ContainerDiskSource diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index a86cd42d..bc8c46b5 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.17.0-132-g215620e2/python' + self.user_agent = 'Swagger-Codegen/v0.18.0-16-gcee5650a/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 40f0e488..28142ad0 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.17.0-132-g215620e2".\ + "SDK Package Version: v0.18.0-16-gcee5650a".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index bce3fef9..46b84731 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -25,6 +25,7 @@ from .v1_cpu_feature import V1CPUFeature from .v1_clock import V1Clock from .v1_clock_offset_utc import V1ClockOffsetUTC +from .v1_cloud_init_config_drive_source import V1CloudInitConfigDriveSource from .v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource from .v1_config_map_volume_source import V1ConfigMapVolumeSource from .v1_container_disk_source import V1ContainerDiskSource diff --git a/kubevirt/models/v1_cloud_init_config_drive_source.py b/kubevirt/models/v1_cloud_init_config_drive_source.py new file mode 100644 index 00000000..b8bd1144 --- /dev/null +++ b/kubevirt/models/v1_cloud_init_config_drive_source.py @@ -0,0 +1,265 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1CloudInitConfigDriveSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'network_data': 'str', + 'network_data_base64': 'str', + 'network_data_secret_ref': 'V1LocalObjectReference', + 'secret_ref': 'V1LocalObjectReference', + 'user_data': 'str', + 'user_data_base64': 'str' + } + + attribute_map = { + 'network_data': 'networkData', + 'network_data_base64': 'networkDataBase64', + 'network_data_secret_ref': 'networkDataSecretRef', + 'secret_ref': 'secretRef', + 'user_data': 'userData', + 'user_data_base64': 'userDataBase64' + } + + def __init__(self, network_data=None, network_data_base64=None, network_data_secret_ref=None, secret_ref=None, user_data=None, user_data_base64=None): + """ + V1CloudInitConfigDriveSource - a model defined in Swagger + """ + + self._network_data = None + self._network_data_base64 = None + self._network_data_secret_ref = None + self._secret_ref = None + self._user_data = None + self._user_data_base64 = None + + if network_data is not None: + self.network_data = network_data + if network_data_base64 is not None: + self.network_data_base64 = network_data_base64 + if network_data_secret_ref is not None: + self.network_data_secret_ref = network_data_secret_ref + if secret_ref is not None: + self.secret_ref = secret_ref + if user_data is not None: + self.user_data = user_data + if user_data_base64 is not None: + self.user_data_base64 = user_data_base64 + + @property + def network_data(self): + """ + Gets the network_data of this V1CloudInitConfigDriveSource. + NetworkData contains config drive inline cloud-init networkdata. + optional + + :return: The network_data of this V1CloudInitConfigDriveSource. + :rtype: str + """ + return self._network_data + + @network_data.setter + def network_data(self, network_data): + """ + Sets the network_data of this V1CloudInitConfigDriveSource. + NetworkData contains config drive inline cloud-init networkdata. + optional + + :param network_data: The network_data of this V1CloudInitConfigDriveSource. + :type: str + """ + + self._network_data = network_data + + @property + def network_data_base64(self): + """ + Gets the network_data_base64 of this V1CloudInitConfigDriveSource. + NetworkDataBase64 contains config drive cloud-init networkdata as a base64 encoded string. + optional + + :return: The network_data_base64 of this V1CloudInitConfigDriveSource. + :rtype: str + """ + return self._network_data_base64 + + @network_data_base64.setter + def network_data_base64(self, network_data_base64): + """ + Sets the network_data_base64 of this V1CloudInitConfigDriveSource. + NetworkDataBase64 contains config drive cloud-init networkdata as a base64 encoded string. + optional + + :param network_data_base64: The network_data_base64 of this V1CloudInitConfigDriveSource. + :type: str + """ + + self._network_data_base64 = network_data_base64 + + @property + def network_data_secret_ref(self): + """ + Gets the network_data_secret_ref of this V1CloudInitConfigDriveSource. + NetworkDataSecretRef references a k8s secret that contains config drive networkdata. + optional + + :return: The network_data_secret_ref of this V1CloudInitConfigDriveSource. + :rtype: V1LocalObjectReference + """ + return self._network_data_secret_ref + + @network_data_secret_ref.setter + def network_data_secret_ref(self, network_data_secret_ref): + """ + Sets the network_data_secret_ref of this V1CloudInitConfigDriveSource. + NetworkDataSecretRef references a k8s secret that contains config drive networkdata. + optional + + :param network_data_secret_ref: The network_data_secret_ref of this V1CloudInitConfigDriveSource. + :type: V1LocalObjectReference + """ + + self._network_data_secret_ref = network_data_secret_ref + + @property + def secret_ref(self): + """ + Gets the secret_ref of this V1CloudInitConfigDriveSource. + UserDataSecretRef references a k8s secret that contains config drive userdata. + optional + + :return: The secret_ref of this V1CloudInitConfigDriveSource. + :rtype: V1LocalObjectReference + """ + return self._secret_ref + + @secret_ref.setter + def secret_ref(self, secret_ref): + """ + Sets the secret_ref of this V1CloudInitConfigDriveSource. + UserDataSecretRef references a k8s secret that contains config drive userdata. + optional + + :param secret_ref: The secret_ref of this V1CloudInitConfigDriveSource. + :type: V1LocalObjectReference + """ + + self._secret_ref = secret_ref + + @property + def user_data(self): + """ + Gets the user_data of this V1CloudInitConfigDriveSource. + UserData contains config drive inline cloud-init userdata. + optional + + :return: The user_data of this V1CloudInitConfigDriveSource. + :rtype: str + """ + return self._user_data + + @user_data.setter + def user_data(self, user_data): + """ + Sets the user_data of this V1CloudInitConfigDriveSource. + UserData contains config drive inline cloud-init userdata. + optional + + :param user_data: The user_data of this V1CloudInitConfigDriveSource. + :type: str + """ + + self._user_data = user_data + + @property + def user_data_base64(self): + """ + Gets the user_data_base64 of this V1CloudInitConfigDriveSource. + UserDataBase64 contains config drive cloud-init userdata as a base64 encoded string. + optional + + :return: The user_data_base64 of this V1CloudInitConfigDriveSource. + :rtype: str + """ + return self._user_data_base64 + + @user_data_base64.setter + def user_data_base64(self, user_data_base64): + """ + Sets the user_data_base64 of this V1CloudInitConfigDriveSource. + UserDataBase64 contains config drive cloud-init userdata as a base64 encoded string. + optional + + :param user_data_base64: The user_data_base64 of this V1CloudInitConfigDriveSource. + :type: str + """ + + self._user_data_base64 = user_data_base64 + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1CloudInitConfigDriveSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_volume.py b/kubevirt/models/v1_volume.py index d496d2f3..583a2fd9 100644 --- a/kubevirt/models/v1_volume.py +++ b/kubevirt/models/v1_volume.py @@ -31,6 +31,7 @@ class V1Volume(object): and the value is json key in definition. """ swagger_types = { + 'cloud_init_config_drive': 'V1CloudInitConfigDriveSource', 'cloud_init_no_cloud': 'V1CloudInitNoCloudSource', 'config_map': 'V1ConfigMapVolumeSource', 'container_disk': 'V1ContainerDiskSource', @@ -45,6 +46,7 @@ class V1Volume(object): } attribute_map = { + 'cloud_init_config_drive': 'cloudInitConfigDrive', 'cloud_init_no_cloud': 'cloudInitNoCloud', 'config_map': 'configMap', 'container_disk': 'containerDisk', @@ -58,11 +60,12 @@ class V1Volume(object): 'service_account': 'serviceAccount' } - def __init__(self, cloud_init_no_cloud=None, config_map=None, container_disk=None, data_volume=None, empty_disk=None, ephemeral=None, host_disk=None, name=None, persistent_volume_claim=None, secret=None, service_account=None): + def __init__(self, cloud_init_config_drive=None, cloud_init_no_cloud=None, config_map=None, container_disk=None, data_volume=None, empty_disk=None, ephemeral=None, host_disk=None, name=None, persistent_volume_claim=None, secret=None, service_account=None): """ V1Volume - a model defined in Swagger """ + self._cloud_init_config_drive = None self._cloud_init_no_cloud = None self._config_map = None self._container_disk = None @@ -75,6 +78,8 @@ def __init__(self, cloud_init_no_cloud=None, config_map=None, container_disk=Non self._secret = None self._service_account = None + if cloud_init_config_drive is not None: + self.cloud_init_config_drive = cloud_init_config_drive if cloud_init_no_cloud is not None: self.cloud_init_no_cloud = cloud_init_no_cloud if config_map is not None: @@ -97,6 +102,29 @@ def __init__(self, cloud_init_no_cloud=None, config_map=None, container_disk=Non if service_account is not None: self.service_account = service_account + @property + def cloud_init_config_drive(self): + """ + Gets the cloud_init_config_drive of this V1Volume. + CloudInitConfigDrive represents a cloud-init Config Drive user-data source. The Config Drive data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: https://cloudinit.readthedocs.io/en/latest/topics/datasources/configdrive.html +optional + + :return: The cloud_init_config_drive of this V1Volume. + :rtype: V1CloudInitConfigDriveSource + """ + return self._cloud_init_config_drive + + @cloud_init_config_drive.setter + def cloud_init_config_drive(self, cloud_init_config_drive): + """ + Sets the cloud_init_config_drive of this V1Volume. + CloudInitConfigDrive represents a cloud-init Config Drive user-data source. The Config Drive data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: https://cloudinit.readthedocs.io/en/latest/topics/datasources/configdrive.html +optional + + :param cloud_init_config_drive: The cloud_init_config_drive of this V1Volume. + :type: V1CloudInitConfigDriveSource + """ + + self._cloud_init_config_drive = cloud_init_config_drive + @property def cloud_init_no_cloud(self): """ diff --git a/setup.py b/setup.py index e6f84f3b..8ecb9094 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.17.0-132-g215620e2" +VERSION = "v0.18.0-16-gcee5650a" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 50505dcd..02c027ef 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.17.0-132-g215620e2" +"packageVersion": "v0.18.0-16-gcee5650a" } diff --git a/test/test_v1_cloud_init_config_drive_source.py b/test/test_v1_cloud_init_config_drive_source.py new file mode 100644 index 00000000..0386353f --- /dev/null +++ b/test/test_v1_cloud_init_config_drive_source.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_cloud_init_config_drive_source import V1CloudInitConfigDriveSource + + +class TestV1CloudInitConfigDriveSource(unittest.TestCase): + """ V1CloudInitConfigDriveSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1CloudInitConfigDriveSource(self): + """ + Test V1CloudInitConfigDriveSource + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_cloud_init_config_drive_source.V1CloudInitConfigDriveSource() + pass + + +if __name__ == '__main__': + unittest.main() From fbfda50a9f439c822f1f56ef47c08b2c7803ad53 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sat, 15 Jun 2019 22:01:24 +0000 Subject: [PATCH 103/521] Client Python update by Travis Build 8249 --- README.md | 2 +- docs/V1CPU.md | 2 +- docs/V1ContainerDiskSource.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_container_disk_source.py | 30 ++++++++++++++++++++- kubevirt/models/v1_cpu.py | 4 +-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 39 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index ff4513c3..2e1cdae7 100644 --- a/README.md +++ b/README.md @@ -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: v0.18.0-16-gcee5650a +- Package version: v0.18.0-66-gae9e807d - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1CPU.md b/docs/V1CPU.md index 7d9d5ad7..63a5d7be 100644 --- a/docs/V1CPU.md +++ b/docs/V1CPU.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **cores** | **int** | Cores specifies the number of cores inside the vmi. Must be a value greater or equal 1. | [optional] **dedicated_cpu_placement** | **bool** | DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. +optional | [optional] **features** | [**list[V1CPUFeature]**](V1CPUFeature.md) | Features specifies the CPU features list inside the VMI. +optional | [optional] -**model** | **str** | Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/blob/master/src/cpu/cpu_map.xml. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. +optional | [optional] +**model** | **str** | Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. +optional | [optional] **sockets** | **int** | Sockets specifies the number of sockets inside the vmi. Must be a value greater or equal 1. | [optional] **threads** | **int** | Threads specifies the number of threads inside the vmi. Must be a value greater or equal 1. | [optional] diff --git a/docs/V1ContainerDiskSource.md b/docs/V1ContainerDiskSource.md index 362f1141..fe3fd8f7 100644 --- a/docs/V1ContainerDiskSource.md +++ b/docs/V1ContainerDiskSource.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **image** | **str** | Image is the name of the image with the embedded disk. | +**image_pull_policy** | **str** | Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images +optional | [optional] **image_pull_secret** | **str** | ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist. | [optional] **path** | **str** | Path defines the path to disk file in the container | [optional] diff --git a/git_push.sh b/git_push.sh index 7f451506..252b0fec 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.18.0-16-gcee5650a" + release_note="Auto-generated client v0.18.0-66-gae9e807d" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index bc8c46b5..bafed66c 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.18.0-16-gcee5650a/python' + self.user_agent = 'Swagger-Codegen/v0.18.0-66-gae9e807d/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 28142ad0..0adc96c5 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.18.0-16-gcee5650a".\ + "SDK Package Version: v0.18.0-66-gae9e807d".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_container_disk_source.py b/kubevirt/models/v1_container_disk_source.py index ec77e9d0..0c8f831e 100644 --- a/kubevirt/models/v1_container_disk_source.py +++ b/kubevirt/models/v1_container_disk_source.py @@ -32,26 +32,31 @@ class V1ContainerDiskSource(object): """ swagger_types = { 'image': 'str', + 'image_pull_policy': 'str', 'image_pull_secret': 'str', 'path': 'str' } attribute_map = { 'image': 'image', + 'image_pull_policy': 'imagePullPolicy', 'image_pull_secret': 'imagePullSecret', 'path': 'path' } - def __init__(self, image=None, image_pull_secret=None, path=None): + def __init__(self, image=None, image_pull_policy=None, image_pull_secret=None, path=None): """ V1ContainerDiskSource - a model defined in Swagger """ self._image = None + self._image_pull_policy = None self._image_pull_secret = None self._path = None self.image = image + if image_pull_policy is not None: + self.image_pull_policy = image_pull_policy if image_pull_secret is not None: self.image_pull_secret = image_pull_secret if path is not None: @@ -82,6 +87,29 @@ def image(self, image): self._image = image + @property + def image_pull_policy(self): + """ + Gets the image_pull_policy of this V1ContainerDiskSource. + Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images +optional + + :return: The image_pull_policy of this V1ContainerDiskSource. + :rtype: str + """ + return self._image_pull_policy + + @image_pull_policy.setter + def image_pull_policy(self, image_pull_policy): + """ + Sets the image_pull_policy of this V1ContainerDiskSource. + Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images +optional + + :param image_pull_policy: The image_pull_policy of this V1ContainerDiskSource. + :type: str + """ + + self._image_pull_policy = image_pull_policy + @property def image_pull_secret(self): """ diff --git a/kubevirt/models/v1_cpu.py b/kubevirt/models/v1_cpu.py index 29067f42..99393a7c 100644 --- a/kubevirt/models/v1_cpu.py +++ b/kubevirt/models/v1_cpu.py @@ -146,7 +146,7 @@ def features(self, features): def model(self): """ Gets the model of this V1CPU. - Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/blob/master/src/cpu/cpu_map.xml. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. +optional + Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. +optional :return: The model of this V1CPU. :rtype: str @@ -157,7 +157,7 @@ def model(self): def model(self, model): """ Sets the model of this V1CPU. - Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/blob/master/src/cpu/cpu_map.xml. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. +optional + Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. +optional :param model: The model of this V1CPU. :type: str diff --git a/setup.py b/setup.py index 8ecb9094..b59160f4 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.18.0-16-gcee5650a" +VERSION = "v0.18.0-66-gae9e807d" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 02c027ef..f5c238b0 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.18.0-16-gcee5650a" +"packageVersion": "v0.18.0-66-gae9e807d" } From 24630eb4f7f6bed697d915ef0bd24337420d9396 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sat, 15 Jun 2019 22:03:33 +0000 Subject: [PATCH 104/521] Client Python update by Travis Build 8250 --- README.md | 2 +- docs/V1FeatureHyperv.md | 16 +++++++------- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_feature_hyperv.py | 32 ++++++++++++++-------------- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 30 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index 2e1cdae7..adfb5932 100644 --- a/README.md +++ b/README.md @@ -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: v0.18.0-66-gae9e807d +- Package version: v0.18.0-68-g3d0c20bf - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1FeatureHyperv.md b/docs/V1FeatureHyperv.md index 61da6084..64d9dc66 100644 --- a/docs/V1FeatureHyperv.md +++ b/docs/V1FeatureHyperv.md @@ -4,17 +4,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **evmcs** | [**V1FeatureState**](V1FeatureState.md) | EVMCS Speeds up L2 vmexits, but disables other virtualization features. Requires vapic. Defaults to the machine type setting. +optional | [optional] -**frequencies** | [**V1FeatureState**](V1FeatureState.md) | Frequencies improve Hyper-V on KVM (TSC clock source). Defaults to the machine type setting. +optional | [optional] +**frequencies** | [**V1FeatureState**](V1FeatureState.md) | Frequencies improves the TSC clock source handling for Hyper-V on KVM. Defaults to the machine type setting. +optional | [optional] **ipi** | [**V1FeatureState**](V1FeatureState.md) | IPI improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. +optional | [optional] -**reenlightenment** | [**V1FeatureState**](V1FeatureState.md) | Reenlightenment improve Hyper-V on KVM (TSC clock source). Defaults to the machine type setting. +optional | [optional] -**relaxed** | [**V1FeatureState**](V1FeatureState.md) | Relaxed relaxes constraints on timer. Defaults to the machine type setting. +optional | [optional] +**reenlightenment** | [**V1FeatureState**](V1FeatureState.md) | Reenlightenment enables the notifications on TSC frequency changes. Defaults to the machine type setting. +optional | [optional] +**relaxed** | [**V1FeatureState**](V1FeatureState.md) | Relaxed instructs the guest OS to disable watchdog timeouts. Defaults to the machine type setting. +optional | [optional] **reset** | [**V1FeatureState**](V1FeatureState.md) | Reset enables Hyperv reboot/reset for the vmi. Requires synic. Defaults to the machine type setting. +optional | [optional] -**runtime** | [**V1FeatureState**](V1FeatureState.md) | Runtime. Defaults to the machine type setting. +optional | [optional] -**spinlocks** | [**V1FeatureSpinlocks**](V1FeatureSpinlocks.md) | Spinlocks indicates if spinlocks should be made available to the guest. +optional | [optional] -**synic** | [**V1FeatureState**](V1FeatureState.md) | SyNIC enable Synthetic Interrupt Controller. Defaults to the machine type setting. +optional | [optional] -**synictimer** | [**V1FeatureState**](V1FeatureState.md) | SyNICTimer enable Synthetic Interrupt Controller timer. Defaults to the machine type setting. +optional | [optional] +**runtime** | [**V1FeatureState**](V1FeatureState.md) | Runtime improves the time accounting to improve scheduling in the guest. Defaults to the machine type setting. +optional | [optional] +**spinlocks** | [**V1FeatureSpinlocks**](V1FeatureSpinlocks.md) | Spinlocks allows to configure the spinlock retry attempts. +optional | [optional] +**synic** | [**V1FeatureState**](V1FeatureState.md) | SyNIC enables the Synthetic Interrupt Controller. Defaults to the machine type setting. +optional | [optional] +**synictimer** | [**V1FeatureState**](V1FeatureState.md) | SyNICTimer enables Synthetic Interrupt Controller Timers, reducing CPU load. Defaults to the machine type setting. +optional | [optional] **tlbflush** | [**V1FeatureState**](V1FeatureState.md) | TLBFlush improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. +optional | [optional] -**vapic** | [**V1FeatureState**](V1FeatureState.md) | VAPIC indicates whether virtual APIC is enabled. Defaults to the machine type setting. +optional | [optional] +**vapic** | [**V1FeatureState**](V1FeatureState.md) | VAPIC improves the paravirtualized handling of interrupts. Defaults to the machine type setting. +optional | [optional] **vendorid** | [**V1FeatureVendorID**](V1FeatureVendorID.md) | VendorID allows setting the hypervisor vendor id. Defaults to the machine type setting. +optional | [optional] **vpindex** | [**V1FeatureState**](V1FeatureState.md) | VPIndex enables the Virtual Processor Index to help windows identifying virtual processors. Defaults to the machine type setting. +optional | [optional] diff --git a/git_push.sh b/git_push.sh index 252b0fec..b12157cd 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.18.0-66-gae9e807d" + release_note="Auto-generated client v0.18.0-68-g3d0c20bf" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index bafed66c..09342ad0 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.18.0-66-gae9e807d/python' + self.user_agent = 'Swagger-Codegen/v0.18.0-68-g3d0c20bf/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 0adc96c5..131b76b8 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.18.0-66-gae9e807d".\ + "SDK Package Version: v0.18.0-68-g3d0c20bf".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_feature_hyperv.py b/kubevirt/models/v1_feature_hyperv.py index 4918f0ff..b090df7b 100644 --- a/kubevirt/models/v1_feature_hyperv.py +++ b/kubevirt/models/v1_feature_hyperv.py @@ -140,7 +140,7 @@ def evmcs(self, evmcs): def frequencies(self): """ Gets the frequencies of this V1FeatureHyperv. - Frequencies improve Hyper-V on KVM (TSC clock source). Defaults to the machine type setting. +optional + Frequencies improves the TSC clock source handling for Hyper-V on KVM. Defaults to the machine type setting. +optional :return: The frequencies of this V1FeatureHyperv. :rtype: V1FeatureState @@ -151,7 +151,7 @@ def frequencies(self): def frequencies(self, frequencies): """ Sets the frequencies of this V1FeatureHyperv. - Frequencies improve Hyper-V on KVM (TSC clock source). Defaults to the machine type setting. +optional + Frequencies improves the TSC clock source handling for Hyper-V on KVM. Defaults to the machine type setting. +optional :param frequencies: The frequencies of this V1FeatureHyperv. :type: V1FeatureState @@ -186,7 +186,7 @@ def ipi(self, ipi): def reenlightenment(self): """ Gets the reenlightenment of this V1FeatureHyperv. - Reenlightenment improve Hyper-V on KVM (TSC clock source). Defaults to the machine type setting. +optional + Reenlightenment enables the notifications on TSC frequency changes. Defaults to the machine type setting. +optional :return: The reenlightenment of this V1FeatureHyperv. :rtype: V1FeatureState @@ -197,7 +197,7 @@ def reenlightenment(self): def reenlightenment(self, reenlightenment): """ Sets the reenlightenment of this V1FeatureHyperv. - Reenlightenment improve Hyper-V on KVM (TSC clock source). Defaults to the machine type setting. +optional + Reenlightenment enables the notifications on TSC frequency changes. Defaults to the machine type setting. +optional :param reenlightenment: The reenlightenment of this V1FeatureHyperv. :type: V1FeatureState @@ -209,7 +209,7 @@ def reenlightenment(self, reenlightenment): def relaxed(self): """ Gets the relaxed of this V1FeatureHyperv. - Relaxed relaxes constraints on timer. Defaults to the machine type setting. +optional + Relaxed instructs the guest OS to disable watchdog timeouts. Defaults to the machine type setting. +optional :return: The relaxed of this V1FeatureHyperv. :rtype: V1FeatureState @@ -220,7 +220,7 @@ def relaxed(self): def relaxed(self, relaxed): """ Sets the relaxed of this V1FeatureHyperv. - Relaxed relaxes constraints on timer. Defaults to the machine type setting. +optional + Relaxed instructs the guest OS to disable watchdog timeouts. Defaults to the machine type setting. +optional :param relaxed: The relaxed of this V1FeatureHyperv. :type: V1FeatureState @@ -255,7 +255,7 @@ def reset(self, reset): def runtime(self): """ Gets the runtime of this V1FeatureHyperv. - Runtime. Defaults to the machine type setting. +optional + Runtime improves the time accounting to improve scheduling in the guest. Defaults to the machine type setting. +optional :return: The runtime of this V1FeatureHyperv. :rtype: V1FeatureState @@ -266,7 +266,7 @@ def runtime(self): def runtime(self, runtime): """ Sets the runtime of this V1FeatureHyperv. - Runtime. Defaults to the machine type setting. +optional + Runtime improves the time accounting to improve scheduling in the guest. Defaults to the machine type setting. +optional :param runtime: The runtime of this V1FeatureHyperv. :type: V1FeatureState @@ -278,7 +278,7 @@ def runtime(self, runtime): def spinlocks(self): """ Gets the spinlocks of this V1FeatureHyperv. - Spinlocks indicates if spinlocks should be made available to the guest. +optional + Spinlocks allows to configure the spinlock retry attempts. +optional :return: The spinlocks of this V1FeatureHyperv. :rtype: V1FeatureSpinlocks @@ -289,7 +289,7 @@ def spinlocks(self): def spinlocks(self, spinlocks): """ Sets the spinlocks of this V1FeatureHyperv. - Spinlocks indicates if spinlocks should be made available to the guest. +optional + Spinlocks allows to configure the spinlock retry attempts. +optional :param spinlocks: The spinlocks of this V1FeatureHyperv. :type: V1FeatureSpinlocks @@ -301,7 +301,7 @@ def spinlocks(self, spinlocks): def synic(self): """ Gets the synic of this V1FeatureHyperv. - SyNIC enable Synthetic Interrupt Controller. Defaults to the machine type setting. +optional + SyNIC enables the Synthetic Interrupt Controller. Defaults to the machine type setting. +optional :return: The synic of this V1FeatureHyperv. :rtype: V1FeatureState @@ -312,7 +312,7 @@ def synic(self): def synic(self, synic): """ Sets the synic of this V1FeatureHyperv. - SyNIC enable Synthetic Interrupt Controller. Defaults to the machine type setting. +optional + SyNIC enables the Synthetic Interrupt Controller. Defaults to the machine type setting. +optional :param synic: The synic of this V1FeatureHyperv. :type: V1FeatureState @@ -324,7 +324,7 @@ def synic(self, synic): def synictimer(self): """ Gets the synictimer of this V1FeatureHyperv. - SyNICTimer enable Synthetic Interrupt Controller timer. Defaults to the machine type setting. +optional + SyNICTimer enables Synthetic Interrupt Controller Timers, reducing CPU load. Defaults to the machine type setting. +optional :return: The synictimer of this V1FeatureHyperv. :rtype: V1FeatureState @@ -335,7 +335,7 @@ def synictimer(self): def synictimer(self, synictimer): """ Sets the synictimer of this V1FeatureHyperv. - SyNICTimer enable Synthetic Interrupt Controller timer. Defaults to the machine type setting. +optional + SyNICTimer enables Synthetic Interrupt Controller Timers, reducing CPU load. Defaults to the machine type setting. +optional :param synictimer: The synictimer of this V1FeatureHyperv. :type: V1FeatureState @@ -370,7 +370,7 @@ def tlbflush(self, tlbflush): def vapic(self): """ Gets the vapic of this V1FeatureHyperv. - VAPIC indicates whether virtual APIC is enabled. Defaults to the machine type setting. +optional + VAPIC improves the paravirtualized handling of interrupts. Defaults to the machine type setting. +optional :return: The vapic of this V1FeatureHyperv. :rtype: V1FeatureState @@ -381,7 +381,7 @@ def vapic(self): def vapic(self, vapic): """ Sets the vapic of this V1FeatureHyperv. - VAPIC indicates whether virtual APIC is enabled. Defaults to the machine type setting. +optional + VAPIC improves the paravirtualized handling of interrupts. Defaults to the machine type setting. +optional :param vapic: The vapic of this V1FeatureHyperv. :type: V1FeatureState diff --git a/setup.py b/setup.py index b59160f4..fb2c21c9 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.18.0-66-gae9e807d" +VERSION = "v0.18.0-68-g3d0c20bf" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index f5c238b0..ddc182f2 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.18.0-66-gae9e807d" +"packageVersion": "v0.18.0-68-g3d0c20bf" } From d05a6d359497fce79c854532cb120e10ce73f6d0 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 25 Jun 2019 09:17:50 +0000 Subject: [PATCH 105/521] Client Python update by Travis Build 8395 --- README.md | 2 +- docs/V1ResourceRequirements.md | 2 +- docs/V1VirtualMachineInstanceStatus.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 ++++ kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_resource_requirements.py | 4 +-- .../v1_virtual_machine_instance_status.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 11 files changed, 45 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index adfb5932..e33cd29e 100644 --- a/README.md +++ b/README.md @@ -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: v0.18.0-68-g3d0c20bf +- Package version: v0.18.0-137-ga26dc7f2 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1ResourceRequirements.md b/docs/V1ResourceRequirements.md index f10efcbc..b63a61a3 100644 --- a/docs/V1ResourceRequirements.md +++ b/docs/V1ResourceRequirements.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **limits** | **object** | Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". +optional | [optional] -**overcommit_guest_overhead** | **bool** | Don't ask the scheduler to take the guest-management overhead into account. Instead put the overhead only into the requested memory limits. This can lead to crashes if all memory is in use on a node. Defaults to false. | [optional] +**overcommit_guest_overhead** | **bool** | Don't ask the scheduler to take the guest-management overhead into account. Instead put the overhead only into the container's memory limit. This can lead to crashes if all memory is in use on a node. Defaults to false. | [optional] **requests** | **object** | Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index 719d4976..7989b7fa 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **migration_state** | [**V1VirtualMachineInstanceMigrationState**](V1VirtualMachineInstanceMigrationState.md) | Represents the status of a live migration | [optional] **node_name** | **str** | NodeName is the name where the VirtualMachineInstance is currently running. | [optional] **phase** | **str** | Phase is the status of the VirtualMachineInstance in kubernetes world. It is not the VirtualMachineInstance status, but partially correlates to it. | [optional] +**qos_class** | [**V1PodQOSClass**](V1PodQOSClass.md) | The Quality of Service (QOS) classification assigned to the virtual machine instance based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md +optional | [optional] **reason** | **str** | A brief CamelCase message indicating details about why the VMI is in this state. e.g. 'NodeUnresponsive' +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index b12157cd..a77d6b11 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.18.0-68-g3d0c20bf" + release_note="Auto-generated client v0.18.0-137-ga26dc7f2" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index abac033b..a2cf7bc5 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -666,6 +666,12 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_group_0` [main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_resources_0` [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 09342ad0..1ba07afe 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.18.0-68-g3d0c20bf/python' + self.user_agent = 'Swagger-Codegen/v0.18.0-137-ga26dc7f2/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 131b76b8..ee23a19f 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.18.0-68-g3d0c20bf".\ + "SDK Package Version: v0.18.0-137-ga26dc7f2".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_resource_requirements.py b/kubevirt/models/v1_resource_requirements.py index c894ad0e..fe2a862a 100644 --- a/kubevirt/models/v1_resource_requirements.py +++ b/kubevirt/models/v1_resource_requirements.py @@ -85,7 +85,7 @@ def limits(self, limits): def overcommit_guest_overhead(self): """ Gets the overcommit_guest_overhead of this V1ResourceRequirements. - Don't ask the scheduler to take the guest-management overhead into account. Instead put the overhead only into the requested memory limits. This can lead to crashes if all memory is in use on a node. Defaults to false. + Don't ask the scheduler to take the guest-management overhead into account. Instead put the overhead only into the container's memory limit. This can lead to crashes if all memory is in use on a node. Defaults to false. :return: The overcommit_guest_overhead of this V1ResourceRequirements. :rtype: bool @@ -96,7 +96,7 @@ def overcommit_guest_overhead(self): def overcommit_guest_overhead(self, overcommit_guest_overhead): """ Sets the overcommit_guest_overhead of this V1ResourceRequirements. - Don't ask the scheduler to take the guest-management overhead into account. Instead put the overhead only into the requested memory limits. This can lead to crashes if all memory is in use on a node. Defaults to false. + Don't ask the scheduler to take the guest-management overhead into account. Instead put the overhead only into the container's memory limit. This can lead to crashes if all memory is in use on a node. Defaults to false. :param overcommit_guest_overhead: The overcommit_guest_overhead of this V1ResourceRequirements. :type: bool diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index 0e87b019..1e6fb887 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -37,6 +37,7 @@ class V1VirtualMachineInstanceStatus(object): 'migration_state': 'V1VirtualMachineInstanceMigrationState', 'node_name': 'str', 'phase': 'str', + 'qos_class': 'V1PodQOSClass', 'reason': 'str' } @@ -47,10 +48,11 @@ class V1VirtualMachineInstanceStatus(object): 'migration_state': 'migrationState', 'node_name': 'nodeName', 'phase': 'phase', + 'qos_class': 'qosClass', 'reason': 'reason' } - def __init__(self, conditions=None, interfaces=None, migration_method=None, migration_state=None, node_name=None, phase=None, reason=None): + def __init__(self, conditions=None, interfaces=None, migration_method=None, migration_state=None, node_name=None, phase=None, qos_class=None, reason=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ @@ -61,6 +63,7 @@ def __init__(self, conditions=None, interfaces=None, migration_method=None, migr self._migration_state = None self._node_name = None self._phase = None + self._qos_class = None self._reason = None if conditions is not None: @@ -75,6 +78,8 @@ def __init__(self, conditions=None, interfaces=None, migration_method=None, migr self.node_name = node_name if phase is not None: self.phase = phase + if qos_class is not None: + self.qos_class = qos_class if reason is not None: self.reason = reason @@ -216,6 +221,29 @@ def phase(self, phase): self._phase = phase + @property + def qos_class(self): + """ + Gets the qos_class of this V1VirtualMachineInstanceStatus. + The Quality of Service (QOS) classification assigned to the virtual machine instance based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md +optional + + :return: The qos_class of this V1VirtualMachineInstanceStatus. + :rtype: V1PodQOSClass + """ + return self._qos_class + + @qos_class.setter + def qos_class(self, qos_class): + """ + Sets the qos_class of this V1VirtualMachineInstanceStatus. + The Quality of Service (QOS) classification assigned to the virtual machine instance based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md +optional + + :param qos_class: The qos_class of this V1VirtualMachineInstanceStatus. + :type: V1PodQOSClass + """ + + self._qos_class = qos_class + @property def reason(self): """ diff --git a/setup.py b/setup.py index fb2c21c9..af2a4842 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.18.0-68-g3d0c20bf" +VERSION = "v0.18.0-137-ga26dc7f2" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index ddc182f2..72c0e531 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.18.0-68-g3d0c20bf" +"packageVersion": "v0.18.0-137-ga26dc7f2" } From ac39df11c69264ba8c06028e0c0f4e2890b6c12f Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 15 Aug 2019 08:27:43 +0000 Subject: [PATCH 106/521] Client Python update by Travis Build 9151 --- README.md | 3 +- docs/V1Chassis.md | 14 ++ docs/V1DomainSpec.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_chassis.py | 227 ++++++++++++++++++++++++++++++ kubevirt/models/v1_domain_spec.py | 30 +++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_chassis.py | 44 ++++++ 14 files changed, 327 insertions(+), 7 deletions(-) create mode 100644 docs/V1Chassis.md create mode 100644 kubevirt/models/v1_chassis.py create mode 100644 test/test_v1_chassis.py diff --git a/README.md b/README.md index e33cd29e..e3e752a1 100644 --- a/README.md +++ b/README.md @@ -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: v0.18.0-137-ga26dc7f2 +- Package version: v0.20.0-20-gf0c22bda - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -150,6 +150,7 @@ Class | Method | HTTP request | Description - [V1CDRomTarget](docs/V1CDRomTarget.md) - [V1CPU](docs/V1CPU.md) - [V1CPUFeature](docs/V1CPUFeature.md) + - [V1Chassis](docs/V1Chassis.md) - [V1Clock](docs/V1Clock.md) - [V1ClockOffsetUTC](docs/V1ClockOffsetUTC.md) - [V1CloudInitConfigDriveSource](docs/V1CloudInitConfigDriveSource.md) diff --git a/docs/V1Chassis.md b/docs/V1Chassis.md new file mode 100644 index 00000000..68bb474b --- /dev/null +++ b/docs/V1Chassis.md @@ -0,0 +1,14 @@ +# V1Chassis + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**asset** | **str** | | [optional] +**manufacturer** | **str** | | [optional] +**serial** | **str** | | [optional] +**sku** | **str** | | [optional] +**version** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1DomainSpec.md b/docs/V1DomainSpec.md index e0370f02..419eced0 100644 --- a/docs/V1DomainSpec.md +++ b/docs/V1DomainSpec.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**chassis** | [**V1Chassis**](V1Chassis.md) | Chassis specifies the chassis info passed to the domain. +optional | [optional] **clock** | [**V1Clock**](V1Clock.md) | Clock sets the clock and timers of the vmi. +optional | [optional] **cpu** | [**V1CPU**](V1CPU.md) | CPU allow specified the detailed CPU topology inside the vmi. +optional | [optional] **devices** | [**V1Devices**](V1Devices.md) | Devices allows adding disks, network interfaces, ... | diff --git a/git_push.sh b/git_push.sh index a77d6b11..d664aa62 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.18.0-137-ga26dc7f2" + release_note="Auto-generated client v0.20.0-20-gf0c22bda" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index a2cf7bc5..e77b21c5 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -42,6 +42,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_cpu_feature.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_cpu_feature.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CPUFeature.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_chassis.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_chassis.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Chassis.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_clock.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_clock.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Clock.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index db542826..eba90bc1 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -23,6 +23,7 @@ from .models.v1_cd_rom_target import V1CDRomTarget from .models.v1_cpu import V1CPU from .models.v1_cpu_feature import V1CPUFeature +from .models.v1_chassis import V1Chassis from .models.v1_clock import V1Clock from .models.v1_clock_offset_utc import V1ClockOffsetUTC from .models.v1_cloud_init_config_drive_source import V1CloudInitConfigDriveSource diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 1ba07afe..cab77f6d 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.18.0-137-ga26dc7f2/python' + self.user_agent = 'Swagger-Codegen/v0.20.0-20-gf0c22bda/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index ee23a19f..fefe8317 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.18.0-137-ga26dc7f2".\ + "SDK Package Version: v0.20.0-20-gf0c22bda".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 46b84731..475bad5c 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -23,6 +23,7 @@ from .v1_cd_rom_target import V1CDRomTarget from .v1_cpu import V1CPU from .v1_cpu_feature import V1CPUFeature +from .v1_chassis import V1Chassis from .v1_clock import V1Clock from .v1_clock_offset_utc import V1ClockOffsetUTC from .v1_cloud_init_config_drive_source import V1CloudInitConfigDriveSource diff --git a/kubevirt/models/v1_chassis.py b/kubevirt/models/v1_chassis.py new file mode 100644 index 00000000..9494a8ba --- /dev/null +++ b/kubevirt/models/v1_chassis.py @@ -0,0 +1,227 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Chassis(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'asset': 'str', + 'manufacturer': 'str', + 'serial': 'str', + 'sku': 'str', + 'version': 'str' + } + + attribute_map = { + 'asset': 'asset', + 'manufacturer': 'manufacturer', + 'serial': 'serial', + 'sku': 'sku', + 'version': 'version' + } + + def __init__(self, asset=None, manufacturer=None, serial=None, sku=None, version=None): + """ + V1Chassis - a model defined in Swagger + """ + + self._asset = None + self._manufacturer = None + self._serial = None + self._sku = None + self._version = None + + if asset is not None: + self.asset = asset + if manufacturer is not None: + self.manufacturer = manufacturer + if serial is not None: + self.serial = serial + if sku is not None: + self.sku = sku + if version is not None: + self.version = version + + @property + def asset(self): + """ + Gets the asset of this V1Chassis. + + :return: The asset of this V1Chassis. + :rtype: str + """ + return self._asset + + @asset.setter + def asset(self, asset): + """ + Sets the asset of this V1Chassis. + + :param asset: The asset of this V1Chassis. + :type: str + """ + + self._asset = asset + + @property + def manufacturer(self): + """ + Gets the manufacturer of this V1Chassis. + + :return: The manufacturer of this V1Chassis. + :rtype: str + """ + return self._manufacturer + + @manufacturer.setter + def manufacturer(self, manufacturer): + """ + Sets the manufacturer of this V1Chassis. + + :param manufacturer: The manufacturer of this V1Chassis. + :type: str + """ + + self._manufacturer = manufacturer + + @property + def serial(self): + """ + Gets the serial of this V1Chassis. + + :return: The serial of this V1Chassis. + :rtype: str + """ + return self._serial + + @serial.setter + def serial(self, serial): + """ + Sets the serial of this V1Chassis. + + :param serial: The serial of this V1Chassis. + :type: str + """ + + self._serial = serial + + @property + def sku(self): + """ + Gets the sku of this V1Chassis. + + :return: The sku of this V1Chassis. + :rtype: str + """ + return self._sku + + @sku.setter + def sku(self, sku): + """ + Sets the sku of this V1Chassis. + + :param sku: The sku of this V1Chassis. + :type: str + """ + + self._sku = sku + + @property + def version(self): + """ + Gets the version of this V1Chassis. + + :return: The version of this V1Chassis. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """ + Sets the version of this V1Chassis. + + :param version: The version of this V1Chassis. + :type: str + """ + + self._version = version + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1Chassis): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_domain_spec.py b/kubevirt/models/v1_domain_spec.py index ee7d10d5..8794a95a 100644 --- a/kubevirt/models/v1_domain_spec.py +++ b/kubevirt/models/v1_domain_spec.py @@ -31,6 +31,7 @@ class V1DomainSpec(object): and the value is json key in definition. """ swagger_types = { + 'chassis': 'V1Chassis', 'clock': 'V1Clock', 'cpu': 'V1CPU', 'devices': 'V1Devices', @@ -43,6 +44,7 @@ class V1DomainSpec(object): } attribute_map = { + 'chassis': 'chassis', 'clock': 'clock', 'cpu': 'cpu', 'devices': 'devices', @@ -54,11 +56,12 @@ class V1DomainSpec(object): 'resources': 'resources' } - def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=None, io_threads_policy=None, machine=None, memory=None, resources=None): + def __init__(self, chassis=None, clock=None, cpu=None, devices=None, features=None, firmware=None, io_threads_policy=None, machine=None, memory=None, resources=None): """ V1DomainSpec - a model defined in Swagger """ + self._chassis = None self._clock = None self._cpu = None self._devices = None @@ -69,6 +72,8 @@ def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=N self._memory = None self._resources = None + if chassis is not None: + self.chassis = chassis if clock is not None: self.clock = clock if cpu is not None: @@ -87,6 +92,29 @@ def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=N if resources is not None: self.resources = resources + @property + def chassis(self): + """ + Gets the chassis of this V1DomainSpec. + Chassis specifies the chassis info passed to the domain. +optional + + :return: The chassis of this V1DomainSpec. + :rtype: V1Chassis + """ + return self._chassis + + @chassis.setter + def chassis(self, chassis): + """ + Sets the chassis of this V1DomainSpec. + Chassis specifies the chassis info passed to the domain. +optional + + :param chassis: The chassis of this V1DomainSpec. + :type: V1Chassis + """ + + self._chassis = chassis + @property def clock(self): """ diff --git a/setup.py b/setup.py index af2a4842..6939bcff 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.18.0-137-ga26dc7f2" +VERSION = "v0.20.0-20-gf0c22bda" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 72c0e531..5f277516 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.18.0-137-ga26dc7f2" +"packageVersion": "v0.20.0-20-gf0c22bda" } diff --git a/test/test_v1_chassis.py b/test/test_v1_chassis.py new file mode 100644 index 00000000..11b95f4e --- /dev/null +++ b/test/test_v1_chassis.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_chassis import V1Chassis + + +class TestV1Chassis(unittest.TestCase): + """ V1Chassis unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Chassis(self): + """ + Test V1Chassis + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_chassis.V1Chassis() + pass + + +if __name__ == '__main__': + unittest.main() From 7129365ff3e7d1543bd3fe80b373c75fd9855860 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sat, 7 Sep 2019 08:10:57 +0000 Subject: [PATCH 107/521] Client Python update by Travis Build 9448 --- README.md | 3 +- docs/DefaultApi.md | 53 +++++++++++++++++ git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 107 +++++++++++++++++++++++++++++++++++ kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 8 +++ 9 files changed, 175 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e3e752a1..27f0320d 100644 --- a/README.md +++ b/README.md @@ -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: v0.20.0-20-gf0c22bda +- Package version: v0.20.0-176-ge220f16d - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -106,6 +106,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_virtual_machine_instance_migration_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancemigrations | Get a list of all VirtualMachineInstanceMigration objects. *DefaultApi* | [**list_virtual_machine_instance_preset_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancepresets | Get a list of all VirtualMachineInstancePreset objects. *DefaultApi* | [**list_virtual_machine_instance_replica_set_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancereplicasets | Get a list of all VirtualMachineInstanceReplicaSet objects. +*DefaultApi* | [**migrate**](docs/DefaultApi.md#migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/migrate | Migrate a running VirtualMachine to another node. *DefaultApi* | [**patch_namespaced_virtual_machine**](docs/DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name} | Patch a VirtualMachine object. *DefaultApi* | [**patch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name} | Patch a VirtualMachineInstance object. *DefaultApi* | [**patch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Patch a VirtualMachineInstanceMigration object. diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 32fc3ad3..445aa6f3 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -37,6 +37,7 @@ Method | HTTP request | Description [**list_virtual_machine_instance_migration_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancemigrations | Get a list of all VirtualMachineInstanceMigration objects. [**list_virtual_machine_instance_preset_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancepresets | Get a list of all VirtualMachineInstancePreset objects. [**list_virtual_machine_instance_replica_set_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancereplicasets | Get a list of all VirtualMachineInstanceReplicaSet objects. +[**migrate**](DefaultApi.md#migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/migrate | Migrate a running VirtualMachine to another node. [**patch_namespaced_virtual_machine**](DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name} | Patch a VirtualMachine object. [**patch_namespaced_virtual_machine_instance**](DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name} | Patch a VirtualMachineInstance object. [**patch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Patch a VirtualMachineInstanceMigration object. @@ -2003,6 +2004,58 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **migrate** +> migrate(namespace, name) + +Migrate a running VirtualMachine to another node. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +name = 'name_example' # str | Name of the resource + +try: + # Migrate a running VirtualMachine to another node. + api_instance.migrate(namespace, name) +except ApiException as e: + print("Exception when calling DefaultApi->migrate: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **name** | **str**| Name of the resource | + +### Return type + +void (empty response body) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **patch_namespaced_virtual_machine** > V1VirtualMachine patch_namespaced_virtual_machine(body, namespace, name) diff --git a/git_push.sh b/git_push.sh index d664aa62..6a272701 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.20.0-20-gf0c22bda" + release_note="Auto-generated client v0.20.0-176-ge220f16d" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index cab77f6d..30bae680 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.20.0-20-gf0c22bda/python' + self.user_agent = 'Swagger-Codegen/v0.20.0-176-ge220f16d/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 2b0a1340..5717fb33 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -3952,6 +3952,113 @@ def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info( _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def migrate(self, namespace, name, **kwargs): + """ + Migrate a running VirtualMachine to another node. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.migrate(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.migrate_with_http_info(namespace, name, **kwargs) + else: + (data) = self.migrate_with_http_info(namespace, name, **kwargs) + return data + + def migrate_with_http_info(self, namespace, name, **kwargs): + """ + Migrate a running VirtualMachine to another node. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.migrate_with_http_info(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'name'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method migrate" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `migrate`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `migrate`") + + if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): + raise ValueError("Invalid value for parameter `namespace` when calling `migrate`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): + raise ValueError("Invalid value for parameter `name` when calling `migrate`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/migrate', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def patch_namespaced_virtual_machine(self, body, namespace, name, **kwargs): """ Patch a VirtualMachine object. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index fefe8317..4a555a4e 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.20.0-20-gf0c22bda".\ + "SDK Package Version: v0.20.0-176-ge220f16d".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index 6939bcff..1bda9fa5 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.20.0-20-gf0c22bda" +VERSION = "v0.20.0-176-ge220f16d" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 5f277516..0c1fcd0e 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.20.0-20-gf0c22bda" +"packageVersion": "v0.20.0-176-ge220f16d" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 5cf9c426..9b1658fa 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -295,6 +295,14 @@ def test_list_virtual_machine_instance_replica_set_for_all_namespaces(self): """ pass + def test_migrate(self): + """ + Test case for migrate + + Migrate a running VirtualMachine to another node. + """ + pass + def test_patch_namespaced_virtual_machine(self): """ Test case for patch_namespaced_virtual_machine From 95f0758074ce03a21430709764df2cf6a0bc71bf Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 18 Sep 2019 16:22:36 +0000 Subject: [PATCH 108/521] Client Python update by Travis Build 9572 --- README.md | 3 +- docs/V1Devices.md | 1 + docs/V1GPU.md | 11 +++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_devices.py | 30 ++++++- kubevirt/models/v1_gpu.py | 153 ++++++++++++++++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_gpu.py | 44 ++++++++++ 14 files changed, 250 insertions(+), 7 deletions(-) create mode 100644 docs/V1GPU.md create mode 100644 kubevirt/models/v1_gpu.py create mode 100644 test/test_v1_gpu.py diff --git a/README.md b/README.md index 27f0320d..5c9f2a90 100644 --- a/README.md +++ b/README.md @@ -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: v0.20.0-176-ge220f16d +- Package version: v0.21.0-34-g6e8f37b1 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -176,6 +176,7 @@ Class | Method | HTTP request | Description - [V1Features](docs/V1Features.md) - [V1Firmware](docs/V1Firmware.md) - [V1FloppyTarget](docs/V1FloppyTarget.md) + - [V1GPU](docs/V1GPU.md) - [V1GenieNetwork](docs/V1GenieNetwork.md) - [V1GroupVersionForDiscovery](docs/V1GroupVersionForDiscovery.md) - [V1HPETTimer](docs/V1HPETTimer.md) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index 5e69ceb1..478ade0f 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **autoattach_pod_interface** | **bool** | Whether to attach a pod network interface. Defaults to true. | [optional] **block_multi_queue** | **bool** | Whether or not to enable virtio multi-queue for block devices +optional | [optional] **disks** | [**list[V1Disk]**](V1Disk.md) | Disks describes disks, cdroms, floppy and luns which are connected to the vmi. | [optional] +**gpus** | [**list[V1GPU]**](V1GPU.md) | Whether to attach a GPU device to the vmi. +optional | [optional] **inputs** | [**list[V1Input]**](V1Input.md) | Inputs describe input devices | [optional] **interfaces** | [**list[V1Interface]**](V1Interface.md) | Interfaces describe network interfaces which are added to the vmi. | [optional] **network_interface_multiqueue** | **bool** | If specified, virtual network interfaces configured with a virtio bus will also enable the vhost multiqueue feature +optional | [optional] diff --git a/docs/V1GPU.md b/docs/V1GPU.md new file mode 100644 index 00000000..c901254f --- /dev/null +++ b/docs/V1GPU.md @@ -0,0 +1,11 @@ +# V1GPU + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**device_name** | **str** | | +**name** | **str** | Name of the GPU device as exposed by a device plugin | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 6a272701..43f5b154 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.20.0-176-ge220f16d" + release_note="Auto-generated client v0.21.0-34-g6e8f37b1" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index e77b21c5..3c750e1d 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -117,6 +117,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_floppy_target.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_floppy_target.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1FloppyTarget.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_gpu.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_gpu.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1GPU.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_genie_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_genie_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1GenieNetwork.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index eba90bc1..4abee970 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -48,6 +48,7 @@ from .models.v1_features import V1Features from .models.v1_firmware import V1Firmware from .models.v1_floppy_target import V1FloppyTarget +from .models.v1_gpu import V1GPU from .models.v1_genie_network import V1GenieNetwork from .models.v1_group_version_for_discovery import V1GroupVersionForDiscovery from .models.v1_hpet_timer import V1HPETTimer diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 30bae680..f983926d 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.20.0-176-ge220f16d/python' + self.user_agent = 'Swagger-Codegen/v0.21.0-34-g6e8f37b1/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 4a555a4e..3565c1d1 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.20.0-176-ge220f16d".\ + "SDK Package Version: v0.21.0-34-g6e8f37b1".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 475bad5c..4cd36e08 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -48,6 +48,7 @@ from .v1_features import V1Features from .v1_firmware import V1Firmware from .v1_floppy_target import V1FloppyTarget +from .v1_gpu import V1GPU from .v1_genie_network import V1GenieNetwork from .v1_group_version_for_discovery import V1GroupVersionForDiscovery from .v1_hpet_timer import V1HPETTimer diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index fa9d238d..c1034f6a 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -35,6 +35,7 @@ class V1Devices(object): 'autoattach_pod_interface': 'bool', 'block_multi_queue': 'bool', 'disks': 'list[V1Disk]', + 'gpus': 'list[V1GPU]', 'inputs': 'list[V1Input]', 'interfaces': 'list[V1Interface]', 'network_interface_multiqueue': 'bool', @@ -47,6 +48,7 @@ class V1Devices(object): 'autoattach_pod_interface': 'autoattachPodInterface', 'block_multi_queue': 'blockMultiQueue', 'disks': 'disks', + 'gpus': 'gpus', 'inputs': 'inputs', 'interfaces': 'interfaces', 'network_interface_multiqueue': 'networkInterfaceMultiqueue', @@ -54,7 +56,7 @@ class V1Devices(object): 'watchdog': 'watchdog' } - def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=None, block_multi_queue=None, disks=None, inputs=None, interfaces=None, network_interface_multiqueue=None, rng=None, watchdog=None): + def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=None, block_multi_queue=None, disks=None, gpus=None, inputs=None, interfaces=None, network_interface_multiqueue=None, rng=None, watchdog=None): """ V1Devices - a model defined in Swagger """ @@ -63,6 +65,7 @@ def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=Non self._autoattach_pod_interface = None self._block_multi_queue = None self._disks = None + self._gpus = None self._inputs = None self._interfaces = None self._network_interface_multiqueue = None @@ -77,6 +80,8 @@ def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=Non self.block_multi_queue = block_multi_queue if disks is not None: self.disks = disks + if gpus is not None: + self.gpus = gpus if inputs is not None: self.inputs = inputs if interfaces is not None: @@ -180,6 +185,29 @@ def disks(self, disks): self._disks = disks + @property + def gpus(self): + """ + Gets the gpus of this V1Devices. + Whether to attach a GPU device to the vmi. +optional + + :return: The gpus of this V1Devices. + :rtype: list[V1GPU] + """ + return self._gpus + + @gpus.setter + def gpus(self, gpus): + """ + Sets the gpus of this V1Devices. + Whether to attach a GPU device to the vmi. +optional + + :param gpus: The gpus of this V1Devices. + :type: list[V1GPU] + """ + + self._gpus = gpus + @property def inputs(self): """ diff --git a/kubevirt/models/v1_gpu.py b/kubevirt/models/v1_gpu.py new file mode 100644 index 00000000..16fd24e9 --- /dev/null +++ b/kubevirt/models/v1_gpu.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1GPU(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'device_name': 'str', + 'name': 'str' + } + + attribute_map = { + 'device_name': 'deviceName', + 'name': 'name' + } + + def __init__(self, device_name=None, name=None): + """ + V1GPU - a model defined in Swagger + """ + + self._device_name = None + self._name = None + + self.device_name = device_name + self.name = name + + @property + def device_name(self): + """ + Gets the device_name of this V1GPU. + + :return: The device_name of this V1GPU. + :rtype: str + """ + return self._device_name + + @device_name.setter + def device_name(self, device_name): + """ + Sets the device_name of this V1GPU. + + :param device_name: The device_name of this V1GPU. + :type: str + """ + if device_name is None: + raise ValueError("Invalid value for `device_name`, must not be `None`") + + self._device_name = device_name + + @property + def name(self): + """ + Gets the name of this V1GPU. + Name of the GPU device as exposed by a device plugin + + :return: The name of this V1GPU. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1GPU. + Name of the GPU device as exposed by a device plugin + + :param name: The name of this V1GPU. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1GPU): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 1bda9fa5..7586859f 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.20.0-176-ge220f16d" +VERSION = "v0.21.0-34-g6e8f37b1" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 0c1fcd0e..286bf5b0 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.20.0-176-ge220f16d" +"packageVersion": "v0.21.0-34-g6e8f37b1" } diff --git a/test/test_v1_gpu.py b/test/test_v1_gpu.py new file mode 100644 index 00000000..894ad3ec --- /dev/null +++ b/test/test_v1_gpu.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_gpu import V1GPU + + +class TestV1GPU(unittest.TestCase): + """ V1GPU unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1GPU(self): + """ + Test V1GPU + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_gpu.V1GPU() + pass + + +if __name__ == '__main__': + unittest.main() From 94a9673508e625e94673d68d404d5f24c4207b47 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 23 Oct 2019 12:13:22 +0000 Subject: [PATCH 109/521] Client Python update by Travis Build 9961 --- README.md | 3 +- docs/V1VirtualMachineInstanceGuestOSInfo.md | 17 + docs/V1VirtualMachineInstanceStatus.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + ..._virtual_machine_instance_guest_os_info.py | 321 ++++++++++++++++++ .../v1_virtual_machine_instance_status.py | 30 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- ..._virtual_machine_instance_guest_os_info.py | 44 +++ 14 files changed, 424 insertions(+), 7 deletions(-) create mode 100644 docs/V1VirtualMachineInstanceGuestOSInfo.md create mode 100644 kubevirt/models/v1_virtual_machine_instance_guest_os_info.py create mode 100644 test/test_v1_virtual_machine_instance_guest_os_info.py diff --git a/README.md b/README.md index 5c9f2a90..454f35c4 100644 --- a/README.md +++ b/README.md @@ -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: v0.21.0-34-g6e8f37b1 +- Package version: v0.22.0-42-gf0ac4e2d - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -236,6 +236,7 @@ Class | Method | HTTP request | Description - [V1VirtualMachineCondition](docs/V1VirtualMachineCondition.md) - [V1VirtualMachineInstance](docs/V1VirtualMachineInstance.md) - [V1VirtualMachineInstanceCondition](docs/V1VirtualMachineInstanceCondition.md) + - [V1VirtualMachineInstanceGuestOSInfo](docs/V1VirtualMachineInstanceGuestOSInfo.md) - [V1VirtualMachineInstanceList](docs/V1VirtualMachineInstanceList.md) - [V1VirtualMachineInstanceMigration](docs/V1VirtualMachineInstanceMigration.md) - [V1VirtualMachineInstanceMigrationCondition](docs/V1VirtualMachineInstanceMigrationCondition.md) diff --git a/docs/V1VirtualMachineInstanceGuestOSInfo.md b/docs/V1VirtualMachineInstanceGuestOSInfo.md new file mode 100644 index 00000000..8f66037b --- /dev/null +++ b/docs/V1VirtualMachineInstanceGuestOSInfo.md @@ -0,0 +1,17 @@ +# V1VirtualMachineInstanceGuestOSInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Guest OS Id | [optional] +**kernel_release** | **str** | Guest OS Kernel Release | [optional] +**kernel_version** | **str** | Kernel version of the Guest OS | [optional] +**machine** | **str** | Machine type of the Guest OS | [optional] +**name** | **str** | Name of the Guest OS | [optional] +**pretty_name** | **str** | Guest OS Pretty Name | [optional] +**version** | **str** | Guest OS Version | [optional] +**version_id** | **str** | Version ID of the Guest OS | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index 7989b7fa..417ac1dc 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **conditions** | [**list[V1VirtualMachineInstanceCondition]**](V1VirtualMachineInstanceCondition.md) | Conditions are specific points in VirtualMachineInstance's pod runtime. | [optional] +**guest_os_info** | [**V1VirtualMachineInstanceGuestOSInfo**](V1VirtualMachineInstanceGuestOSInfo.md) | Guest OS Information | [optional] **interfaces** | [**list[V1VirtualMachineInstanceNetworkInterface]**](V1VirtualMachineInstanceNetworkInterface.md) | Interfaces represent the details of available network interfaces. | [optional] **migration_method** | **str** | Represents the method using which the vmi can be migrated: live migration or block migration | [optional] **migration_state** | [**V1VirtualMachineInstanceMigrationState**](V1VirtualMachineInstanceMigrationState.md) | Represents the status of a live migration | [optional] diff --git a/git_push.sh b/git_push.sh index 43f5b154..0f06d2ab 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.21.0-34-g6e8f37b1" + release_note="Auto-generated client v0.22.0-42-gf0ac4e2d" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 3c750e1d..6d04b2a2 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -297,6 +297,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_virtual_machine_instance_condition.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_condition.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceCondition.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_guest_os_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_guest_os_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceGuestOSInfo.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceList.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 4abee970..07e29023 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -108,6 +108,7 @@ from .models.v1_virtual_machine_condition import V1VirtualMachineCondition from .models.v1_virtual_machine_instance import V1VirtualMachineInstance from .models.v1_virtual_machine_instance_condition import V1VirtualMachineInstanceCondition +from .models.v1_virtual_machine_instance_guest_os_info import V1VirtualMachineInstanceGuestOSInfo from .models.v1_virtual_machine_instance_list import V1VirtualMachineInstanceList from .models.v1_virtual_machine_instance_migration import V1VirtualMachineInstanceMigration from .models.v1_virtual_machine_instance_migration_condition import V1VirtualMachineInstanceMigrationCondition diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index f983926d..79ea9bda 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.21.0-34-g6e8f37b1/python' + self.user_agent = 'Swagger-Codegen/v0.22.0-42-gf0ac4e2d/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 3565c1d1..c540c5d6 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.21.0-34-g6e8f37b1".\ + "SDK Package Version: v0.22.0-42-gf0ac4e2d".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 4cd36e08..d0b0c869 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -108,6 +108,7 @@ from .v1_virtual_machine_condition import V1VirtualMachineCondition from .v1_virtual_machine_instance import V1VirtualMachineInstance from .v1_virtual_machine_instance_condition import V1VirtualMachineInstanceCondition +from .v1_virtual_machine_instance_guest_os_info import V1VirtualMachineInstanceGuestOSInfo from .v1_virtual_machine_instance_list import V1VirtualMachineInstanceList from .v1_virtual_machine_instance_migration import V1VirtualMachineInstanceMigration from .v1_virtual_machine_instance_migration_condition import V1VirtualMachineInstanceMigrationCondition diff --git a/kubevirt/models/v1_virtual_machine_instance_guest_os_info.py b/kubevirt/models/v1_virtual_machine_instance_guest_os_info.py new file mode 100644 index 00000000..b46acf18 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_guest_os_info.py @@ -0,0 +1,321 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineInstanceGuestOSInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'kernel_release': 'str', + 'kernel_version': 'str', + 'machine': 'str', + 'name': 'str', + 'pretty_name': 'str', + 'version': 'str', + 'version_id': 'str' + } + + attribute_map = { + 'id': 'id', + 'kernel_release': 'kernelRelease', + 'kernel_version': 'kernelVersion', + 'machine': 'machine', + 'name': 'name', + 'pretty_name': 'prettyName', + 'version': 'version', + 'version_id': 'versionId' + } + + def __init__(self, id=None, kernel_release=None, kernel_version=None, machine=None, name=None, pretty_name=None, version=None, version_id=None): + """ + V1VirtualMachineInstanceGuestOSInfo - a model defined in Swagger + """ + + self._id = None + self._kernel_release = None + self._kernel_version = None + self._machine = None + self._name = None + self._pretty_name = None + self._version = None + self._version_id = None + + if id is not None: + self.id = id + if kernel_release is not None: + self.kernel_release = kernel_release + if kernel_version is not None: + self.kernel_version = kernel_version + if machine is not None: + self.machine = machine + if name is not None: + self.name = name + if pretty_name is not None: + self.pretty_name = pretty_name + if version is not None: + self.version = version + if version_id is not None: + self.version_id = version_id + + @property + def id(self): + """ + Gets the id of this V1VirtualMachineInstanceGuestOSInfo. + Guest OS Id + + :return: The id of this V1VirtualMachineInstanceGuestOSInfo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this V1VirtualMachineInstanceGuestOSInfo. + Guest OS Id + + :param id: The id of this V1VirtualMachineInstanceGuestOSInfo. + :type: str + """ + + self._id = id + + @property + def kernel_release(self): + """ + Gets the kernel_release of this V1VirtualMachineInstanceGuestOSInfo. + Guest OS Kernel Release + + :return: The kernel_release of this V1VirtualMachineInstanceGuestOSInfo. + :rtype: str + """ + return self._kernel_release + + @kernel_release.setter + def kernel_release(self, kernel_release): + """ + Sets the kernel_release of this V1VirtualMachineInstanceGuestOSInfo. + Guest OS Kernel Release + + :param kernel_release: The kernel_release of this V1VirtualMachineInstanceGuestOSInfo. + :type: str + """ + + self._kernel_release = kernel_release + + @property + def kernel_version(self): + """ + Gets the kernel_version of this V1VirtualMachineInstanceGuestOSInfo. + Kernel version of the Guest OS + + :return: The kernel_version of this V1VirtualMachineInstanceGuestOSInfo. + :rtype: str + """ + return self._kernel_version + + @kernel_version.setter + def kernel_version(self, kernel_version): + """ + Sets the kernel_version of this V1VirtualMachineInstanceGuestOSInfo. + Kernel version of the Guest OS + + :param kernel_version: The kernel_version of this V1VirtualMachineInstanceGuestOSInfo. + :type: str + """ + + self._kernel_version = kernel_version + + @property + def machine(self): + """ + Gets the machine of this V1VirtualMachineInstanceGuestOSInfo. + Machine type of the Guest OS + + :return: The machine of this V1VirtualMachineInstanceGuestOSInfo. + :rtype: str + """ + return self._machine + + @machine.setter + def machine(self, machine): + """ + Sets the machine of this V1VirtualMachineInstanceGuestOSInfo. + Machine type of the Guest OS + + :param machine: The machine of this V1VirtualMachineInstanceGuestOSInfo. + :type: str + """ + + self._machine = machine + + @property + def name(self): + """ + Gets the name of this V1VirtualMachineInstanceGuestOSInfo. + Name of the Guest OS + + :return: The name of this V1VirtualMachineInstanceGuestOSInfo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1VirtualMachineInstanceGuestOSInfo. + Name of the Guest OS + + :param name: The name of this V1VirtualMachineInstanceGuestOSInfo. + :type: str + """ + + self._name = name + + @property + def pretty_name(self): + """ + Gets the pretty_name of this V1VirtualMachineInstanceGuestOSInfo. + Guest OS Pretty Name + + :return: The pretty_name of this V1VirtualMachineInstanceGuestOSInfo. + :rtype: str + """ + return self._pretty_name + + @pretty_name.setter + def pretty_name(self, pretty_name): + """ + Sets the pretty_name of this V1VirtualMachineInstanceGuestOSInfo. + Guest OS Pretty Name + + :param pretty_name: The pretty_name of this V1VirtualMachineInstanceGuestOSInfo. + :type: str + """ + + self._pretty_name = pretty_name + + @property + def version(self): + """ + Gets the version of this V1VirtualMachineInstanceGuestOSInfo. + Guest OS Version + + :return: The version of this V1VirtualMachineInstanceGuestOSInfo. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """ + Sets the version of this V1VirtualMachineInstanceGuestOSInfo. + Guest OS Version + + :param version: The version of this V1VirtualMachineInstanceGuestOSInfo. + :type: str + """ + + self._version = version + + @property + def version_id(self): + """ + Gets the version_id of this V1VirtualMachineInstanceGuestOSInfo. + Version ID of the Guest OS + + :return: The version_id of this V1VirtualMachineInstanceGuestOSInfo. + :rtype: str + """ + return self._version_id + + @version_id.setter + def version_id(self, version_id): + """ + Sets the version_id of this V1VirtualMachineInstanceGuestOSInfo. + Version ID of the Guest OS + + :param version_id: The version_id of this V1VirtualMachineInstanceGuestOSInfo. + :type: str + """ + + self._version_id = version_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineInstanceGuestOSInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index 1e6fb887..40242d8c 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -32,6 +32,7 @@ class V1VirtualMachineInstanceStatus(object): """ swagger_types = { 'conditions': 'list[V1VirtualMachineInstanceCondition]', + 'guest_os_info': 'V1VirtualMachineInstanceGuestOSInfo', 'interfaces': 'list[V1VirtualMachineInstanceNetworkInterface]', 'migration_method': 'str', 'migration_state': 'V1VirtualMachineInstanceMigrationState', @@ -43,6 +44,7 @@ class V1VirtualMachineInstanceStatus(object): attribute_map = { 'conditions': 'conditions', + 'guest_os_info': 'guestOSInfo', 'interfaces': 'interfaces', 'migration_method': 'migrationMethod', 'migration_state': 'migrationState', @@ -52,12 +54,13 @@ class V1VirtualMachineInstanceStatus(object): 'reason': 'reason' } - def __init__(self, conditions=None, interfaces=None, migration_method=None, migration_state=None, node_name=None, phase=None, qos_class=None, reason=None): + def __init__(self, conditions=None, guest_os_info=None, interfaces=None, migration_method=None, migration_state=None, node_name=None, phase=None, qos_class=None, reason=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ self._conditions = None + self._guest_os_info = None self._interfaces = None self._migration_method = None self._migration_state = None @@ -68,6 +71,8 @@ def __init__(self, conditions=None, interfaces=None, migration_method=None, migr if conditions is not None: self.conditions = conditions + if guest_os_info is not None: + self.guest_os_info = guest_os_info if interfaces is not None: self.interfaces = interfaces if migration_method is not None: @@ -106,6 +111,29 @@ def conditions(self, conditions): self._conditions = conditions + @property + def guest_os_info(self): + """ + Gets the guest_os_info of this V1VirtualMachineInstanceStatus. + Guest OS Information + + :return: The guest_os_info of this V1VirtualMachineInstanceStatus. + :rtype: V1VirtualMachineInstanceGuestOSInfo + """ + return self._guest_os_info + + @guest_os_info.setter + def guest_os_info(self, guest_os_info): + """ + Sets the guest_os_info of this V1VirtualMachineInstanceStatus. + Guest OS Information + + :param guest_os_info: The guest_os_info of this V1VirtualMachineInstanceStatus. + :type: V1VirtualMachineInstanceGuestOSInfo + """ + + self._guest_os_info = guest_os_info + @property def interfaces(self): """ diff --git a/setup.py b/setup.py index 7586859f..543b1c5c 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.21.0-34-g6e8f37b1" +VERSION = "v0.22.0-42-gf0ac4e2d" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 286bf5b0..d5c0e4db 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.21.0-34-g6e8f37b1" +"packageVersion": "v0.22.0-42-gf0ac4e2d" } diff --git a/test/test_v1_virtual_machine_instance_guest_os_info.py b/test/test_v1_virtual_machine_instance_guest_os_info.py new file mode 100644 index 00000000..137cc8f4 --- /dev/null +++ b/test/test_v1_virtual_machine_instance_guest_os_info.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_guest_os_info import V1VirtualMachineInstanceGuestOSInfo + + +class TestV1VirtualMachineInstanceGuestOSInfo(unittest.TestCase): + """ V1VirtualMachineInstanceGuestOSInfo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceGuestOSInfo(self): + """ + Test V1VirtualMachineInstanceGuestOSInfo + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_guest_os_info.V1VirtualMachineInstanceGuestOSInfo() + pass + + +if __name__ == '__main__': + unittest.main() From d3971b59ba384baccea81d0860b3dbf5d7e3991a Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 4 Nov 2019 15:28:06 +0000 Subject: [PATCH 110/521] Client Python update by Travis Build 10083 --- README.md | 2 +- docs/V1VirtualMachine.md | 2 +- docs/V1VirtualMachineInstance.md | 2 +- docs/V1VirtualMachineInstanceMigration.md | 2 +- docs/V1VirtualMachineInstanceReplicaSet.md | 2 +- docs/V1VirtualMachineList.md | 4 ++-- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_virtual_machine.py | 5 +++-- kubevirt/models/v1_virtual_machine_instance.py | 5 +++-- kubevirt/models/v1_virtual_machine_instance_migration.py | 5 +++-- kubevirt/models/v1_virtual_machine_instance_replica_set.py | 5 +++-- kubevirt/models/v1_virtual_machine_list.py | 7 ++----- setup.py | 2 +- swagger-codegen-config.json | 2 +- 16 files changed, 26 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 454f35c4..103cfe9e 100644 --- a/README.md +++ b/README.md @@ -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: v0.22.0-42-gf0ac4e2d +- Package version: v0.22.0-91-g9223d491 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachine.md b/docs/V1VirtualMachine.md index 3186e14b..fa220e6d 100644 --- a/docs/V1VirtualMachine.md +++ b/docs/V1VirtualMachine.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1VirtualMachineSpec**](V1VirtualMachineSpec.md) | Spec contains the specification of VirtualMachineInstance created | [optional] +**spec** | [**V1VirtualMachineSpec**](V1VirtualMachineSpec.md) | Spec contains the specification of VirtualMachineInstance created | **status** | [**V1VirtualMachineStatus**](V1VirtualMachineStatus.md) | Status holds the current state of the controller and brief information about its associated VirtualMachineInstance | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstance.md b/docs/V1VirtualMachineInstance.md index ec72fdae..f3d43542 100644 --- a/docs/V1VirtualMachineInstance.md +++ b/docs/V1VirtualMachineInstance.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1VirtualMachineInstanceSpec**](V1VirtualMachineInstanceSpec.md) | VirtualMachineInstance Spec contains the VirtualMachineInstance specification. | [optional] +**spec** | [**V1VirtualMachineInstanceSpec**](V1VirtualMachineInstanceSpec.md) | VirtualMachineInstance Spec contains the VirtualMachineInstance specification. | **status** | [**V1VirtualMachineInstanceStatus**](V1VirtualMachineInstanceStatus.md) | Status is the high level overview of how the VirtualMachineInstance is doing. It contains information available to controllers and users. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceMigration.md b/docs/V1VirtualMachineInstanceMigration.md index a56e4b15..40c35488 100644 --- a/docs/V1VirtualMachineInstanceMigration.md +++ b/docs/V1VirtualMachineInstanceMigration.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1VirtualMachineInstanceMigrationSpec**](V1VirtualMachineInstanceMigrationSpec.md) | | [optional] +**spec** | [**V1VirtualMachineInstanceMigrationSpec**](V1VirtualMachineInstanceMigrationSpec.md) | | **status** | [**V1VirtualMachineInstanceMigrationStatus**](V1VirtualMachineInstanceMigrationStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceReplicaSet.md b/docs/V1VirtualMachineInstanceReplicaSet.md index 9dadd3d2..4f974baf 100644 --- a/docs/V1VirtualMachineInstanceReplicaSet.md +++ b/docs/V1VirtualMachineInstanceReplicaSet.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1VirtualMachineInstanceReplicaSetSpec**](V1VirtualMachineInstanceReplicaSetSpec.md) | VirtualMachineInstance Spec contains the VirtualMachineInstance specification. | [optional] +**spec** | [**V1VirtualMachineInstanceReplicaSetSpec**](V1VirtualMachineInstanceReplicaSetSpec.md) | VirtualMachineInstance Spec contains the VirtualMachineInstance specification. | **status** | [**V1VirtualMachineInstanceReplicaSetStatus**](V1VirtualMachineInstanceReplicaSetStatus.md) | Status is the high level overview of how the VirtualMachineInstance is doing. It contains information available to controllers and users. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineList.md b/docs/V1VirtualMachineList.md index 33b81a77..ac31ea99 100644 --- a/docs/V1VirtualMachineList.md +++ b/docs/V1VirtualMachineList.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] -**items** | [**list[V1VirtualMachine]**](V1VirtualMachine.md) | Items is a list of VirtualMachines | +**items** | [**list[V1VirtualMachine]**](V1VirtualMachine.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 0f06d2ab..35c8d32f 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.22.0-42-gf0ac4e2d" + release_note="Auto-generated client v0.22.0-91-g9223d491" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 79ea9bda..7765061e 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.22.0-42-gf0ac4e2d/python' + self.user_agent = 'Swagger-Codegen/v0.22.0-91-g9223d491/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c540c5d6..50a9d6ef 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.22.0-42-gf0ac4e2d".\ + "SDK Package Version: v0.22.0-91-g9223d491".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine.py b/kubevirt/models/v1_virtual_machine.py index 60905189..754ff7cb 100644 --- a/kubevirt/models/v1_virtual_machine.py +++ b/kubevirt/models/v1_virtual_machine.py @@ -63,8 +63,7 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.kind = kind if metadata is not None: self.metadata = metadata - if spec is not None: - self.spec = spec + self.spec = spec if status is not None: self.status = status @@ -155,6 +154,8 @@ def spec(self, spec): :param spec: The spec of this V1VirtualMachine. :type: V1VirtualMachineSpec """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") self._spec = spec diff --git a/kubevirt/models/v1_virtual_machine_instance.py b/kubevirt/models/v1_virtual_machine_instance.py index 8981dd44..fa8a8a28 100644 --- a/kubevirt/models/v1_virtual_machine_instance.py +++ b/kubevirt/models/v1_virtual_machine_instance.py @@ -63,8 +63,7 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.kind = kind if metadata is not None: self.metadata = metadata - if spec is not None: - self.spec = spec + self.spec = spec if status is not None: self.status = status @@ -155,6 +154,8 @@ def spec(self, spec): :param spec: The spec of this V1VirtualMachineInstance. :type: V1VirtualMachineInstanceSpec """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") self._spec = spec diff --git a/kubevirt/models/v1_virtual_machine_instance_migration.py b/kubevirt/models/v1_virtual_machine_instance_migration.py index 7e13d9a8..9ae480f4 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration.py @@ -63,8 +63,7 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.kind = kind if metadata is not None: self.metadata = metadata - if spec is not None: - self.spec = spec + self.spec = spec if status is not None: self.status = status @@ -153,6 +152,8 @@ def spec(self, spec): :param spec: The spec of this V1VirtualMachineInstanceMigration. :type: V1VirtualMachineInstanceMigrationSpec """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") self._spec = spec diff --git a/kubevirt/models/v1_virtual_machine_instance_replica_set.py b/kubevirt/models/v1_virtual_machine_instance_replica_set.py index d3ec8c2b..f5d64f71 100644 --- a/kubevirt/models/v1_virtual_machine_instance_replica_set.py +++ b/kubevirt/models/v1_virtual_machine_instance_replica_set.py @@ -63,8 +63,7 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.kind = kind if metadata is not None: self.metadata = metadata - if spec is not None: - self.spec = spec + self.spec = spec if status is not None: self.status = status @@ -155,6 +154,8 @@ def spec(self, spec): :param spec: The spec of this V1VirtualMachineInstanceReplicaSet. :type: V1VirtualMachineInstanceReplicaSetSpec """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") self._spec = spec diff --git a/kubevirt/models/v1_virtual_machine_list.py b/kubevirt/models/v1_virtual_machine_list.py index 0c56841d..8d9852ae 100644 --- a/kubevirt/models/v1_virtual_machine_list.py +++ b/kubevirt/models/v1_virtual_machine_list.py @@ -59,7 +59,8 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.items = items if kind is not None: self.kind = kind - self.metadata = metadata + if metadata is not None: + self.metadata = metadata @property def api_version(self): @@ -88,7 +89,6 @@ def api_version(self, api_version): def items(self): """ Gets the items of this V1VirtualMachineList. - Items is a list of VirtualMachines :return: The items of this V1VirtualMachineList. :rtype: list[V1VirtualMachine] @@ -99,7 +99,6 @@ def items(self): def items(self, items): """ Sets the items of this V1VirtualMachineList. - Items is a list of VirtualMachines :param items: The items of this V1VirtualMachineList. :type: list[V1VirtualMachine] @@ -150,8 +149,6 @@ def metadata(self, metadata): :param metadata: The metadata of this V1VirtualMachineList. :type: V1ListMeta """ - if metadata is None: - raise ValueError("Invalid value for `metadata`, must not be `None`") self._metadata = metadata diff --git a/setup.py b/setup.py index 543b1c5c..c9063e15 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.22.0-42-gf0ac4e2d" +VERSION = "v0.22.0-91-g9223d491" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index d5c0e4db..0a15ac25 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.22.0-42-gf0ac4e2d" +"packageVersion": "v0.22.0-91-g9223d491" } From 346ef9fad8068507a5ebb8ac4aeb6fbdfb801061 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 12 Nov 2019 08:02:31 +0000 Subject: [PATCH 111/521] Client Python update by Travis Build 10125 --- README.md | 4 +- docs/DefaultApi.md | 106 +++++++++++++++++ git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 214 +++++++++++++++++++++++++++++++++++ kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 16 +++ 9 files changed, 344 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 103cfe9e..ddb0bb04 100644 --- a/README.md +++ b/README.md @@ -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: v0.22.0-91-g9223d491 +- Package version: v0.23.0-30-g21c2f3ef - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -112,6 +112,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**patch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Patch a VirtualMachineInstanceMigration object. *DefaultApi* | [**patch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Patch a VirtualMachineInstancePreset object. *DefaultApi* | [**patch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Patch a VirtualMachineInstanceReplicaSet object. +*DefaultApi* | [**pause**](docs/DefaultApi.md#pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/pause | Pause a VirtualMachineInstance object. *DefaultApi* | [**read_namespaced_virtual_machine**](docs/DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name} | Get a VirtualMachine object. *DefaultApi* | [**read_namespaced_virtual_machine_instance**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name} | Get a VirtualMachineInstance object. *DefaultApi* | [**read_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Get a VirtualMachineInstanceMigration object. @@ -126,6 +127,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**start**](docs/DefaultApi.md#start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/start | Start a VirtualMachine object. *DefaultApi* | [**stop**](docs/DefaultApi.md#stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/stop | Stop a VirtualMachine object. *DefaultApi* | [**test**](docs/DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/test | Test endpoint verifying apiserver connectivity. +*DefaultApi* | [**unpause**](docs/DefaultApi.md#unpause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/unpause | Unpause a VirtualMachineInstance object. *DefaultApi* | [**version**](docs/DefaultApi.md#version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | *DefaultApi* | [**vnc**](docs/DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/vnc | Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. *DefaultApi* | [**watch_namespaced_virtual_machine**](docs/DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachines | Watch a VirtualMachine object. diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 445aa6f3..c55b530f 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -43,6 +43,7 @@ Method | HTTP request | Description [**patch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Patch a VirtualMachineInstanceMigration object. [**patch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Patch a VirtualMachineInstancePreset object. [**patch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Patch a VirtualMachineInstanceReplicaSet object. +[**pause**](DefaultApi.md#pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/pause | Pause a VirtualMachineInstance object. [**read_namespaced_virtual_machine**](DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name} | Get a VirtualMachine object. [**read_namespaced_virtual_machine_instance**](DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name} | Get a VirtualMachineInstance object. [**read_namespaced_virtual_machine_instance_migration**](DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Get a VirtualMachineInstanceMigration object. @@ -57,6 +58,7 @@ Method | HTTP request | Description [**start**](DefaultApi.md#start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/start | Start a VirtualMachine object. [**stop**](DefaultApi.md#stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/stop | Stop a VirtualMachine object. [**test**](DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/test | Test endpoint verifying apiserver connectivity. +[**unpause**](DefaultApi.md#unpause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/unpause | Unpause a VirtualMachineInstance object. [**version**](DefaultApi.md#version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | [**vnc**](DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/vnc | Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. [**watch_namespaced_virtual_machine**](DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachines | Watch a VirtualMachine object. @@ -2331,6 +2333,58 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **pause** +> pause(namespace, name) + +Pause a VirtualMachineInstance object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +name = 'name_example' # str | Name of the resource + +try: + # Pause a VirtualMachineInstance object. + api_instance.pause(namespace, name) +except ApiException as e: + print("Exception when calling DefaultApi->pause: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **name** | **str**| Name of the resource | + +### Return type + +void (empty response body) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **read_namespaced_virtual_machine** > V1VirtualMachine read_namespaced_virtual_machine(name, namespace, exact=exact, export=export) @@ -3099,6 +3153,58 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **unpause** +> unpause(namespace, name) + +Unpause a VirtualMachineInstance object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +name = 'name_example' # str | Name of the resource + +try: + # Unpause a VirtualMachineInstance object. + api_instance.unpause(namespace, name) +except ApiException as e: + print("Exception when calling DefaultApi->unpause: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **name** | **str**| Name of the resource | + +### Return type + +void (empty response body) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **version** > version() diff --git a/git_push.sh b/git_push.sh index 35c8d32f..b6fe37bb 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.22.0-91-g9223d491" + release_note="Auto-generated client v0.23.0-30-g21c2f3ef" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 7765061e..61cadfab 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.22.0-91-g9223d491/python' + self.user_agent = 'Swagger-Codegen/v0.23.0-30-g21c2f3ef/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 5717fb33..b177e83b 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -4669,6 +4669,113 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, b _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def pause(self, namespace, name, **kwargs): + """ + Pause a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.pause(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.pause_with_http_info(namespace, name, **kwargs) + else: + (data) = self.pause_with_http_info(namespace, name, **kwargs) + return data + + def pause_with_http_info(self, namespace, name, **kwargs): + """ + Pause a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.pause_with_http_info(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'name'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method pause" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `pause`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `pause`") + + if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): + raise ValueError("Invalid value for parameter `namespace` when calling `pause`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): + raise ValueError("Invalid value for parameter `name` when calling `pause`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/pause', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def read_namespaced_virtual_machine(self, name, namespace, **kwargs): """ Get a VirtualMachine object. @@ -6302,6 +6409,113 @@ def test_with_http_info(self, namespace, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def unpause(self, namespace, name, **kwargs): + """ + Unpause a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.unpause(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.unpause_with_http_info(namespace, name, **kwargs) + else: + (data) = self.unpause_with_http_info(namespace, name, **kwargs) + return data + + def unpause_with_http_info(self, namespace, name, **kwargs): + """ + Unpause a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.unpause_with_http_info(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'name'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method unpause" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `unpause`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `unpause`") + + if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): + raise ValueError("Invalid value for parameter `namespace` when calling `unpause`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): + raise ValueError("Invalid value for parameter `name` when calling `unpause`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/unpause', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def version(self, **kwargs): """ This method makes a synchronous HTTP request by default. To make an diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 50a9d6ef..205d9879 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.22.0-91-g9223d491".\ + "SDK Package Version: v0.23.0-30-g21c2f3ef".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index c9063e15..e1880142 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.22.0-91-g9223d491" +VERSION = "v0.23.0-30-g21c2f3ef" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 0a15ac25..f8b90acf 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.22.0-91-g9223d491" +"packageVersion": "v0.23.0-30-g21c2f3ef" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 9b1658fa..c5b7338c 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -343,6 +343,14 @@ def test_patch_namespaced_virtual_machine_instance_replica_set(self): """ pass + def test_pause(self): + """ + Test case for pause + + Pause a VirtualMachineInstance object. + """ + pass + def test_read_namespaced_virtual_machine(self): """ Test case for read_namespaced_virtual_machine @@ -455,6 +463,14 @@ def test_test(self): """ pass + def test_unpause(self): + """ + Test case for unpause + + Unpause a VirtualMachineInstance object. + """ + pass + def test_version(self): """ Test case for version From 125f9df55aaf68b3630b4518ca11b8d1e8f0484c Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 6 Dec 2019 21:25:21 +0000 Subject: [PATCH 112/521] Client Python update by Travis Build 10263 --- README.md | 2 +- docs/V1CPU.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_cpu.py | 30 +++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ddb0bb04..e4d125e1 100644 --- a/README.md +++ b/README.md @@ -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: v0.23.0-30-g21c2f3ef +- Package version: v0.24.0-16-gaa31b2b - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1CPU.md b/docs/V1CPU.md index 63a5d7be..762da6ba 100644 --- a/docs/V1CPU.md +++ b/docs/V1CPU.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **cores** | **int** | Cores specifies the number of cores inside the vmi. Must be a value greater or equal 1. | [optional] **dedicated_cpu_placement** | **bool** | DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. +optional | [optional] **features** | [**list[V1CPUFeature]**](V1CPUFeature.md) | Features specifies the CPU features list inside the VMI. +optional | [optional] +**isolate_emulator_thread** | **bool** | IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it. +optional | [optional] **model** | **str** | Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. +optional | [optional] **sockets** | **int** | Sockets specifies the number of sockets inside the vmi. Must be a value greater or equal 1. | [optional] **threads** | **int** | Threads specifies the number of threads inside the vmi. Must be a value greater or equal 1. | [optional] diff --git a/git_push.sh b/git_push.sh index b6fe37bb..a4424df9 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.23.0-30-g21c2f3ef" + release_note="Auto-generated client v0.24.0-16-gaa31b2b" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 61cadfab..e774a856 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.23.0-30-g21c2f3ef/python' + self.user_agent = 'Swagger-Codegen/v0.24.0-16-gaa31b2b/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 205d9879..9e62242e 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.23.0-30-g21c2f3ef".\ + "SDK Package Version: v0.24.0-16-gaa31b2b".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_cpu.py b/kubevirt/models/v1_cpu.py index 99393a7c..14b03546 100644 --- a/kubevirt/models/v1_cpu.py +++ b/kubevirt/models/v1_cpu.py @@ -34,6 +34,7 @@ class V1CPU(object): 'cores': 'int', 'dedicated_cpu_placement': 'bool', 'features': 'list[V1CPUFeature]', + 'isolate_emulator_thread': 'bool', 'model': 'str', 'sockets': 'int', 'threads': 'int' @@ -43,12 +44,13 @@ class V1CPU(object): 'cores': 'cores', 'dedicated_cpu_placement': 'dedicatedCpuPlacement', 'features': 'features', + 'isolate_emulator_thread': 'isolateEmulatorThread', 'model': 'model', 'sockets': 'sockets', 'threads': 'threads' } - def __init__(self, cores=None, dedicated_cpu_placement=None, features=None, model=None, sockets=None, threads=None): + def __init__(self, cores=None, dedicated_cpu_placement=None, features=None, isolate_emulator_thread=None, model=None, sockets=None, threads=None): """ V1CPU - a model defined in Swagger """ @@ -56,6 +58,7 @@ def __init__(self, cores=None, dedicated_cpu_placement=None, features=None, mode self._cores = None self._dedicated_cpu_placement = None self._features = None + self._isolate_emulator_thread = None self._model = None self._sockets = None self._threads = None @@ -66,6 +69,8 @@ def __init__(self, cores=None, dedicated_cpu_placement=None, features=None, mode self.dedicated_cpu_placement = dedicated_cpu_placement if features is not None: self.features = features + if isolate_emulator_thread is not None: + self.isolate_emulator_thread = isolate_emulator_thread if model is not None: self.model = model if sockets is not None: @@ -142,6 +147,29 @@ def features(self, features): self._features = features + @property + def isolate_emulator_thread(self): + """ + Gets the isolate_emulator_thread of this V1CPU. + IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it. +optional + + :return: The isolate_emulator_thread of this V1CPU. + :rtype: bool + """ + return self._isolate_emulator_thread + + @isolate_emulator_thread.setter + def isolate_emulator_thread(self, isolate_emulator_thread): + """ + Sets the isolate_emulator_thread of this V1CPU. + IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it. +optional + + :param isolate_emulator_thread: The isolate_emulator_thread of this V1CPU. + :type: bool + """ + + self._isolate_emulator_thread = isolate_emulator_thread + @property def model(self): """ diff --git a/setup.py b/setup.py index e1880142..bfe37afb 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.23.0-30-g21c2f3ef" +VERSION = "v0.24.0-16-gaa31b2b" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index f8b90acf..ef8c8ef0 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.23.0-30-g21c2f3ef" +"packageVersion": "v0.24.0-16-gaa31b2b" } From c2dfb05891e3555bf62a0801ebdff6ef139fa476 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 10 Dec 2019 09:21:11 +0000 Subject: [PATCH 113/521] Client Python update by Travis Build 10272 --- README.md | 3 +- docs/DefaultApi.md | 6 +- docs/V1RestartOptions.md | 12 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 6 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_restart_options.py | 181 ++++++++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_restart_options.py | 44 +++++++ 14 files changed, 258 insertions(+), 9 deletions(-) create mode 100644 docs/V1RestartOptions.md create mode 100644 kubevirt/models/v1_restart_options.py create mode 100644 test/test_v1_restart_options.py diff --git a/README.md b/README.md index e4d125e1..6824c34f 100644 --- a/README.md +++ b/README.md @@ -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: v0.24.0-16-gaa31b2b +- Package version: v0.24.0-23-gcbf1c22 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -223,6 +223,7 @@ Class | Method | HTTP request | Description - [V1Probe](docs/V1Probe.md) - [V1RTCTimer](docs/V1RTCTimer.md) - [V1ResourceRequirements](docs/V1ResourceRequirements.md) + - [V1RestartOptions](docs/V1RestartOptions.md) - [V1RootPaths](docs/V1RootPaths.md) - [V1SecretVolumeSource](docs/V1SecretVolumeSource.md) - [V1ServerAddressByClientCIDR](docs/V1ServerAddressByClientCIDR.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index c55b530f..681eca24 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -2946,7 +2946,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **restart** -> restart(namespace, name) +> restart(namespace, name, body=body) Restart a VirtualMachine object. @@ -2967,10 +2967,11 @@ kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubevirt.DefaultApi() namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource +body = kubevirt.V1RestartOptions() # V1RestartOptions | (optional) try: # Restart a VirtualMachine object. - api_instance.restart(namespace, name) + api_instance.restart(namespace, name, body=body) except ApiException as e: print("Exception when calling DefaultApi->restart: %s\n" % e) ``` @@ -2981,6 +2982,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | + **body** | [**V1RestartOptions**](V1RestartOptions.md)| | [optional] ### Return type diff --git a/docs/V1RestartOptions.md b/docs/V1RestartOptions.md new file mode 100644 index 00000000..de9d0ff7 --- /dev/null +++ b/docs/V1RestartOptions.md @@ -0,0 +1,12 @@ +# V1RestartOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] +**grace_period_seconds** | **int** | The duration in seconds before the object should be force-restared. Value must be non-negative integer. The value zero indicates, restart immediately. If this value is nil, the default grace period for deletion of the corresponding VMI for the specified type will be used to determine on how much time to give the VMI to restart. Defaults to a per object value if not specified. zero means restart immediately. Allowed Values: nil and 0 +optional | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index a4424df9..c051f411 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.24.0-16-gaa31b2b" + release_note="Auto-generated client v0.24.0-23-gcbf1c22" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 6d04b2a2..aee3d6f4 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -252,6 +252,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_resource_requirements.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_resource_requirements.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ResourceRequirements.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_restart_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_restart_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1RestartOptions.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_root_paths.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_root_paths.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1RootPaths.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 07e29023..92ff280b 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -93,6 +93,7 @@ from .models.v1_probe import V1Probe from .models.v1_rtc_timer import V1RTCTimer from .models.v1_resource_requirements import V1ResourceRequirements +from .models.v1_restart_options import V1RestartOptions from .models.v1_root_paths import V1RootPaths from .models.v1_secret_volume_source import V1SecretVolumeSource from .models.v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index e774a856..420ccd81 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.24.0-16-gaa31b2b/python' + self.user_agent = 'Swagger-Codegen/v0.24.0-23-gcbf1c22/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index b177e83b..0dd37a9b 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -5996,6 +5996,7 @@ def restart(self, namespace, name, **kwargs): for asynchronous request. (optional) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param V1RestartOptions body: :return: None If the method is called asynchronously, returns the request thread. @@ -6022,12 +6023,13 @@ def restart_with_http_info(self, namespace, name, **kwargs): for asynchronous request. (optional) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param V1RestartOptions body: :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'name'] + all_params = ['namespace', 'name', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6070,6 +6072,8 @@ def restart_with_http_info(self, namespace, name, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = ['BearerToken'] diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 9e62242e..3e6d0e15 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.24.0-16-gaa31b2b".\ + "SDK Package Version: v0.24.0-23-gcbf1c22".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index d0b0c869..df6391cc 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -93,6 +93,7 @@ from .v1_probe import V1Probe from .v1_rtc_timer import V1RTCTimer from .v1_resource_requirements import V1ResourceRequirements +from .v1_restart_options import V1RestartOptions from .v1_root_paths import V1RootPaths from .v1_secret_volume_source import V1SecretVolumeSource from .v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR diff --git a/kubevirt/models/v1_restart_options.py b/kubevirt/models/v1_restart_options.py new file mode 100644 index 00000000..67cff03d --- /dev/null +++ b/kubevirt/models/v1_restart_options.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1RestartOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'grace_period_seconds': 'int', + 'kind': 'str' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'grace_period_seconds': 'gracePeriodSeconds', + 'kind': 'kind' + } + + def __init__(self, api_version=None, grace_period_seconds=None, kind=None): + """ + V1RestartOptions - a model defined in Swagger + """ + + self._api_version = None + self._grace_period_seconds = None + self._kind = None + + if api_version is not None: + self.api_version = api_version + if grace_period_seconds is not None: + self.grace_period_seconds = grace_period_seconds + if kind is not None: + self.kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1RestartOptions. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + + :return: The api_version of this V1RestartOptions. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1RestartOptions. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1RestartOptions. + :type: str + """ + + self._api_version = api_version + + @property + def grace_period_seconds(self): + """ + Gets the grace_period_seconds of this V1RestartOptions. + The duration in seconds before the object should be force-restared. Value must be non-negative integer. The value zero indicates, restart immediately. If this value is nil, the default grace period for deletion of the corresponding VMI for the specified type will be used to determine on how much time to give the VMI to restart. Defaults to a per object value if not specified. zero means restart immediately. Allowed Values: nil and 0 +optional + + :return: The grace_period_seconds of this V1RestartOptions. + :rtype: int + """ + return self._grace_period_seconds + + @grace_period_seconds.setter + def grace_period_seconds(self, grace_period_seconds): + """ + Sets the grace_period_seconds of this V1RestartOptions. + The duration in seconds before the object should be force-restared. Value must be non-negative integer. The value zero indicates, restart immediately. If this value is nil, the default grace period for deletion of the corresponding VMI for the specified type will be used to determine on how much time to give the VMI to restart. Defaults to a per object value if not specified. zero means restart immediately. Allowed Values: nil and 0 +optional + + :param grace_period_seconds: The grace_period_seconds of this V1RestartOptions. + :type: int + """ + + self._grace_period_seconds = grace_period_seconds + + @property + def kind(self): + """ + Gets the kind of this V1RestartOptions. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + + :return: The kind of this V1RestartOptions. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1RestartOptions. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1RestartOptions. + :type: str + """ + + self._kind = kind + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1RestartOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index bfe37afb..0a0131c6 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.24.0-16-gaa31b2b" +VERSION = "v0.24.0-23-gcbf1c22" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index ef8c8ef0..a59b6daf 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.24.0-16-gaa31b2b" +"packageVersion": "v0.24.0-23-gcbf1c22" } diff --git a/test/test_v1_restart_options.py b/test/test_v1_restart_options.py new file mode 100644 index 00000000..675c48f9 --- /dev/null +++ b/test/test_v1_restart_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_restart_options import V1RestartOptions + + +class TestV1RestartOptions(unittest.TestCase): + """ V1RestartOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1RestartOptions(self): + """ + Test V1RestartOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_restart_options.V1RestartOptions() + pass + + +if __name__ == '__main__': + unittest.main() From e248f2857c876d783d7c5ae83d43ca052ca13dfb Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 20 Jan 2020 23:13:07 +0000 Subject: [PATCH 114/521] Client Python update by Travis Build 10575 --- README.md | 5 +- docs/V1APIGroup.md | 4 +- docs/V1APIGroupList.md | 4 +- docs/V1APIResource.md | 1 + docs/V1APIResourceList.md | 4 +- docs/V1DeleteOptions.md | 4 +- docs/V1Initializer.md | 10 - docs/V1Initializers.md | 11 - docs/V1ListMeta.md | 5 +- docs/V1ManagedFieldsEntry.md | 15 + docs/V1ObjectMeta.md | 10 +- docs/V1OwnerReference.md | 2 +- docs/V1Preconditions.md | 1 + docs/V1RestartOptions.md | 4 +- docs/V1Status.md | 8 +- docs/V1StatusDetails.md | 2 +- docs/V1VirtualMachine.md | 4 +- docs/V1VirtualMachineInstance.md | 4 +- docs/V1VirtualMachineInstanceList.md | 4 +- docs/V1VirtualMachineInstanceMigration.md | 4 +- docs/V1VirtualMachineInstanceMigrationList.md | 4 +- docs/V1VirtualMachineInstancePreset.md | 4 +- docs/V1VirtualMachineInstancePresetList.md | 4 +- docs/V1VirtualMachineInstanceReplicaSet.md | 4 +- .../V1VirtualMachineInstanceReplicaSetList.md | 4 +- docs/V1VirtualMachineList.md | 4 +- docs/V1alpha1DataVolume.md | 4 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 11 +- kubevirt/__init__.py | 3 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 3 +- kubevirt/models/v1_api_group.py | 8 +- kubevirt/models/v1_api_group_list.py | 8 +- kubevirt/models/v1_api_resource.py | 30 +- kubevirt/models/v1_api_resource_list.py | 8 +- kubevirt/models/v1_delete_options.py | 8 +- kubevirt/models/v1_initializer.py | 126 --------- kubevirt/models/v1_initializers.py | 154 ---------- kubevirt/models/v1_list_meta.py | 38 ++- kubevirt/models/v1_managed_fields_entry.py | 265 ++++++++++++++++++ kubevirt/models/v1_object_meta.py | 74 ++--- kubevirt/models/v1_owner_reference.py | 4 +- kubevirt/models/v1_preconditions.py | 30 +- kubevirt/models/v1_restart_options.py | 8 +- kubevirt/models/v1_status.py | 16 +- kubevirt/models/v1_status_details.py | 4 +- kubevirt/models/v1_virtual_machine.py | 8 +- .../models/v1_virtual_machine_instance.py | 8 +- .../v1_virtual_machine_instance_list.py | 8 +- .../v1_virtual_machine_instance_migration.py | 8 +- ...virtual_machine_instance_migration_list.py | 8 +- .../v1_virtual_machine_instance_preset.py | 8 +- ...v1_virtual_machine_instance_preset_list.py | 8 +- ...v1_virtual_machine_instance_replica_set.py | 8 +- ...rtual_machine_instance_replica_set_list.py | 8 +- kubevirt/models/v1_virtual_machine_list.py | 8 +- kubevirt/models/v1alpha1_data_volume.py | 8 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_initializers.py | 44 --- ...zer.py => test_v1_managed_fields_entry.py} | 12 +- 63 files changed, 551 insertions(+), 535 deletions(-) delete mode 100644 docs/V1Initializer.md delete mode 100644 docs/V1Initializers.md create mode 100644 docs/V1ManagedFieldsEntry.md delete mode 100644 kubevirt/models/v1_initializer.py delete mode 100644 kubevirt/models/v1_initializers.py create mode 100644 kubevirt/models/v1_managed_fields_entry.py delete mode 100644 test/test_v1_initializers.py rename test/{test_v1_initializer.py => test_v1_managed_fields_entry.py} (65%) diff --git a/README.md b/README.md index 6824c34f..9c877fb9 100644 --- a/README.md +++ b/README.md @@ -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: v0.24.0-23-gcbf1c22 +- Package version: v0.25.0-56-g8f1c7d31 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -188,8 +188,6 @@ Class | Method | HTTP request | Description - [V1Hugepages](docs/V1Hugepages.md) - [V1HypervTimer](docs/V1HypervTimer.md) - [V1I6300ESBWatchdog](docs/V1I6300ESBWatchdog.md) - - [V1Initializer](docs/V1Initializer.md) - - [V1Initializers](docs/V1Initializers.md) - [V1Input](docs/V1Input.md) - [V1Interface](docs/V1Interface.md) - [V1KVMTimer](docs/V1KVMTimer.md) @@ -199,6 +197,7 @@ Class | Method | HTTP request | Description - [V1LocalObjectReference](docs/V1LocalObjectReference.md) - [V1LunTarget](docs/V1LunTarget.md) - [V1Machine](docs/V1Machine.md) + - [V1ManagedFieldsEntry](docs/V1ManagedFieldsEntry.md) - [V1Memory](docs/V1Memory.md) - [V1MultusNetwork](docs/V1MultusNetwork.md) - [V1Network](docs/V1Network.md) diff --git a/docs/V1APIGroup.md b/docs/V1APIGroup.md index eca24673..19669396 100644 --- a/docs/V1APIGroup.md +++ b/docs/V1APIGroup.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **name** | **str** | name is the name of the group. | **preferred_version** | [**V1GroupVersionForDiscovery**](V1GroupVersionForDiscovery.md) | preferredVersion is the version preferred by the API server, which probably is the storage version. | [optional] **server_address_by_client_cid_rs** | [**list[V1ServerAddressByClientCIDR]**](V1ServerAddressByClientCIDR.md) | a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. | [optional] diff --git a/docs/V1APIGroupList.md b/docs/V1APIGroupList.md index ab2865cd..dcb7b218 100644 --- a/docs/V1APIGroupList.md +++ b/docs/V1APIGroupList.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **groups** | [**list[V1APIGroup]**](V1APIGroup.md) | groups is a list of APIGroup. | -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1APIResource.md b/docs/V1APIResource.md index 8c4c5bd1..4bf7e9af 100644 --- a/docs/V1APIResource.md +++ b/docs/V1APIResource.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **namespaced** | **bool** | namespaced indicates if a resource is namespaced or not. | **short_names** | **list[str]** | shortNames is a list of suggested short names of the resource. | [optional] **singular_name** | **str** | singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface. | +**storage_version_hash** | **str** | The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates. | [optional] **verbs** | **list[str]** | verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) | **version** | **str** | version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\". | [optional] diff --git a/docs/V1APIResourceList.md b/docs/V1APIResourceList.md index 30100546..d3e4f09d 100644 --- a/docs/V1APIResourceList.md +++ b/docs/V1APIResourceList.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **group_version** | **str** | groupVersion is the group and version this APIResourceList is for. | -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **resources** | [**list[V1APIResource]**](V1APIResource.md) | resources contains the name of the resources and if they are namespaced. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1DeleteOptions.md b/docs/V1DeleteOptions.md index c50cd2aa..47a6e93a 100644 --- a/docs/V1DeleteOptions.md +++ b/docs/V1DeleteOptions.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **dry_run** | **list[str]** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **orphan_dependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **preconditions** | [**V1Preconditions**](V1Preconditions.md) | Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. | [optional] **propagation_policy** | [**V1DeletionPropagation**](V1DeletionPropagation.md) | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] diff --git a/docs/V1Initializer.md b/docs/V1Initializer.md deleted file mode 100644 index 8c0c45c1..00000000 --- a/docs/V1Initializer.md +++ /dev/null @@ -1,10 +0,0 @@ -# V1Initializer - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | name of the process that is responsible for initializing this object. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1Initializers.md b/docs/V1Initializers.md deleted file mode 100644 index e28bf37b..00000000 --- a/docs/V1Initializers.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1Initializers - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pending** | [**list[V1Initializer]**](V1Initializer.md) | Pending is a list of initializers that must execute in order before this object is visible. When the last pending initializer is removed, and no failing result is set, the initializers struct will be set to nil and the object is considered as initialized and visible to all clients. | -**result** | [**V1Status**](V1Status.md) | If result is set with the Failure field, the object will be persisted to storage and then deleted, ensuring that other clients can observe the deletion. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1ListMeta.md b/docs/V1ListMeta.md index 9d813c9e..c8763ba6 100644 --- a/docs/V1ListMeta.md +++ b/docs/V1ListMeta.md @@ -4,8 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **_continue** | **str** | continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. | [optional] -**resource_version** | **str** | String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency | [optional] -**self_link** | **str** | selfLink is a URL representing this object. Populated by the system. Read-only. | [optional] +**remaining_item_count** | **int** | remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. | [optional] +**resource_version** | **str** | String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency | [optional] +**self_link** | **str** | selfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1ManagedFieldsEntry.md b/docs/V1ManagedFieldsEntry.md new file mode 100644 index 00000000..ad8a7281 --- /dev/null +++ b/docs/V1ManagedFieldsEntry.md @@ -0,0 +1,15 @@ +# V1ManagedFieldsEntry + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. | [optional] +**fields_type** | **str** | FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\" | [optional] +**fields_v1** | **str** | FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type. | [optional] +**manager** | **str** | Manager is an identifier of the workflow managing these fields. | [optional] +**operation** | **str** | Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. | [optional] +**time** | **str** | Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ObjectMeta.md b/docs/V1ObjectMeta.md index 077183aa..c1e565e7 100644 --- a/docs/V1ObjectMeta.md +++ b/docs/V1ObjectMeta.md @@ -6,17 +6,17 @@ Name | Type | Description | Notes **annotations** | **object** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations | [optional] **cluster_name** | **str** | The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. | [optional] **deletion_grace_period_seconds** | **int** | Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. | [optional] -**deletion_timestamp** | **str** | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**deletion_timestamp** | **str** | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] **finalizers** | **list[str]** | Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. | [optional] -**generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency | [optional] +**generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency | [optional] **generation** | **int** | A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. | [optional] -**initializers** | [**V1Initializers**](V1Initializers.md) | An initializer is a controller which enforces some system invariant at object creation time. This field is a list of initializers that have not yet acted on this object. If nil or empty, this object has been completely initialized. Otherwise, the object is considered uninitialized and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to observe uninitialized objects. When an object is created, the system will populate this list with the current set of initializers. Only privileged users may set or modify this list. Once it is empty, it may not be modified further by any user. | [optional] **labels** | **object** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels | [optional] +**managed_fields** | [**list[V1ManagedFieldsEntry]**](V1ManagedFieldsEntry.md) | ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. | [optional] **name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] **namespace** | **str** | Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces | [optional] **owner_references** | [**list[V1OwnerReference]**](V1OwnerReference.md) | List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. | [optional] -**resource_version** | **str** | An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency | [optional] -**self_link** | **str** | SelfLink is a URL representing this object. Populated by the system. Read-only. | [optional] +**resource_version** | **str** | An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency | [optional] +**self_link** | **str** | SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. | [optional] **uid** | **str** | UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1OwnerReference.md b/docs/V1OwnerReference.md index 2fc34039..8c5ad154 100644 --- a/docs/V1OwnerReference.md +++ b/docs/V1OwnerReference.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | API version of the referent. | **block_owner_deletion** | **bool** | If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. | [optional] **controller** | **bool** | If true, this reference points to the managing controller. | [optional] -**kind** | **str** | Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | +**kind** | **str** | Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | **name** | **str** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | **uid** | **str** | UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids | diff --git a/docs/V1Preconditions.md b/docs/V1Preconditions.md index 1e883051..3aeb3a1b 100644 --- a/docs/V1Preconditions.md +++ b/docs/V1Preconditions.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**resource_version** | **str** | Specifies the target ResourceVersion | [optional] **uid** | [**TypesUID**](TypesUID.md) | Specifies the target UID. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1RestartOptions.md b/docs/V1RestartOptions.md index de9d0ff7..b03cc703 100644 --- a/docs/V1RestartOptions.md +++ b/docs/V1RestartOptions.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **grace_period_seconds** | **int** | The duration in seconds before the object should be force-restared. Value must be non-negative integer. The value zero indicates, restart immediately. If this value is nil, the default grace period for deletion of the corresponding VMI for the specified type will be used to determine on how much time to give the VMI to restart. Defaults to a per object value if not specified. zero means restart immediately. Allowed Values: nil and 0 +optional | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Status.md b/docs/V1Status.md index a69ba142..13c5a941 100644 --- a/docs/V1Status.md +++ b/docs/V1Status.md @@ -3,14 +3,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **code** | **int** | Suggested HTTP return code for this status, 0 if not set. | [optional] **details** | [**V1StatusDetails**](V1StatusDetails.md) | Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **message** | **str** | A human-readable description of the status of this operation. | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **reason** | **str** | A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. | [optional] -**status** | **str** | Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**status** | **str** | Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1StatusDetails.md b/docs/V1StatusDetails.md index 1badffd2..490191da 100644 --- a/docs/V1StatusDetails.md +++ b/docs/V1StatusDetails.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **causes** | [**list[V1StatusCause]**](V1StatusCause.md) | The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. | [optional] **group** | **str** | The group attribute of the resource associated with the status StatusReason. | [optional] -**kind** | **str** | The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**kind** | **str** | The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **name** | **str** | The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). | [optional] **retry_after_seconds** | **int** | If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action. | [optional] **uid** | **str** | UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids | [optional] diff --git a/docs/V1VirtualMachine.md b/docs/V1VirtualMachine.md index fa220e6d..c4a77747 100644 --- a/docs/V1VirtualMachine.md +++ b/docs/V1VirtualMachine.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **spec** | [**V1VirtualMachineSpec**](V1VirtualMachineSpec.md) | Spec contains the specification of VirtualMachineInstance created | **status** | [**V1VirtualMachineStatus**](V1VirtualMachineStatus.md) | Status holds the current state of the controller and brief information about its associated VirtualMachineInstance | [optional] diff --git a/docs/V1VirtualMachineInstance.md b/docs/V1VirtualMachineInstance.md index f3d43542..93cf5ffb 100644 --- a/docs/V1VirtualMachineInstance.md +++ b/docs/V1VirtualMachineInstance.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **spec** | [**V1VirtualMachineInstanceSpec**](V1VirtualMachineInstanceSpec.md) | VirtualMachineInstance Spec contains the VirtualMachineInstance specification. | **status** | [**V1VirtualMachineInstanceStatus**](V1VirtualMachineInstanceStatus.md) | Status is the high level overview of how the VirtualMachineInstance is doing. It contains information available to controllers and users. | [optional] diff --git a/docs/V1VirtualMachineInstanceList.md b/docs/V1VirtualMachineInstanceList.md index 39c32a08..dc83d2ae 100644 --- a/docs/V1VirtualMachineInstanceList.md +++ b/docs/V1VirtualMachineInstanceList.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **items** | [**list[V1VirtualMachineInstance]**](V1VirtualMachineInstance.md) | | -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceMigration.md b/docs/V1VirtualMachineInstanceMigration.md index 40c35488..939d7122 100644 --- a/docs/V1VirtualMachineInstanceMigration.md +++ b/docs/V1VirtualMachineInstanceMigration.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **spec** | [**V1VirtualMachineInstanceMigrationSpec**](V1VirtualMachineInstanceMigrationSpec.md) | | **status** | [**V1VirtualMachineInstanceMigrationStatus**](V1VirtualMachineInstanceMigrationStatus.md) | | [optional] diff --git a/docs/V1VirtualMachineInstanceMigrationList.md b/docs/V1VirtualMachineInstanceMigrationList.md index 556f7e31..20ae2a08 100644 --- a/docs/V1VirtualMachineInstanceMigrationList.md +++ b/docs/V1VirtualMachineInstanceMigrationList.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **items** | [**list[V1VirtualMachineInstanceMigration]**](V1VirtualMachineInstanceMigration.md) | | -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstancePreset.md b/docs/V1VirtualMachineInstancePreset.md index 9df081f7..21c3f4a4 100644 --- a/docs/V1VirtualMachineInstancePreset.md +++ b/docs/V1VirtualMachineInstancePreset.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **spec** | [**V1VirtualMachineInstancePresetSpec**](V1VirtualMachineInstancePresetSpec.md) | VirtualMachineInstance Spec contains the VirtualMachineInstance specification. | [optional] diff --git a/docs/V1VirtualMachineInstancePresetList.md b/docs/V1VirtualMachineInstancePresetList.md index 75533746..15db5428 100644 --- a/docs/V1VirtualMachineInstancePresetList.md +++ b/docs/V1VirtualMachineInstancePresetList.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **items** | [**list[V1VirtualMachineInstancePreset]**](V1VirtualMachineInstancePreset.md) | | -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceReplicaSet.md b/docs/V1VirtualMachineInstanceReplicaSet.md index 4f974baf..2fa59eab 100644 --- a/docs/V1VirtualMachineInstanceReplicaSet.md +++ b/docs/V1VirtualMachineInstanceReplicaSet.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **spec** | [**V1VirtualMachineInstanceReplicaSetSpec**](V1VirtualMachineInstanceReplicaSetSpec.md) | VirtualMachineInstance Spec contains the VirtualMachineInstance specification. | **status** | [**V1VirtualMachineInstanceReplicaSetStatus**](V1VirtualMachineInstanceReplicaSetStatus.md) | Status is the high level overview of how the VirtualMachineInstance is doing. It contains information available to controllers and users. | [optional] diff --git a/docs/V1VirtualMachineInstanceReplicaSetList.md b/docs/V1VirtualMachineInstanceReplicaSetList.md index 0d1bcfaa..15773ede 100644 --- a/docs/V1VirtualMachineInstanceReplicaSetList.md +++ b/docs/V1VirtualMachineInstanceReplicaSetList.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **items** | [**list[V1VirtualMachineInstanceReplicaSet]**](V1VirtualMachineInstanceReplicaSet.md) | | -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineList.md b/docs/V1VirtualMachineList.md index ac31ea99..16b53e8f 100644 --- a/docs/V1VirtualMachineList.md +++ b/docs/V1VirtualMachineList.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **items** | [**list[V1VirtualMachine]**](V1VirtualMachine.md) | | -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1DataVolume.md b/docs/V1alpha1DataVolume.md index 0a8d0002..abcc8544 100644 --- a/docs/V1alpha1DataVolume.md +++ b/docs/V1alpha1DataVolume.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **spec** | [**V1alpha1DataVolumeSpec**](V1alpha1DataVolumeSpec.md) | | **status** | [**V1alpha1DataVolumeStatus**](V1alpha1DataVolumeStatus.md) | | [optional] diff --git a/git_push.sh b/git_push.sh index c051f411..5d6d3cee 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.24.0-23-gcbf1c22" + release_note="Auto-generated client v0.25.0-56-g8f1c7d31" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index aee3d6f4..b27bdd8d 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -2,7 +2,7 @@ [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. -Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} @@ -147,12 +147,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_i6300_esb_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_i6300_esb_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1I6300ESBWatchdog.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_initializer.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_initializer.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Initializer.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_initializers.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_initializers.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Initializers.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_input.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_input.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Input.md @@ -180,6 +174,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_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Machine.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_managed_fields_entry.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_managed_fields_entry.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ManagedFieldsEntry.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_memory.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_memory.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Memory.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 92ff280b..57fbcc6b 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -58,8 +58,6 @@ from .models.v1_hugepages import V1Hugepages from .models.v1_hyperv_timer import V1HypervTimer from .models.v1_i6300_esb_watchdog import V1I6300ESBWatchdog -from .models.v1_initializer import V1Initializer -from .models.v1_initializers import V1Initializers from .models.v1_input import V1Input from .models.v1_interface import V1Interface from .models.v1_kvm_timer import V1KVMTimer @@ -69,6 +67,7 @@ from .models.v1_local_object_reference import V1LocalObjectReference from .models.v1_lun_target import V1LunTarget from .models.v1_machine import V1Machine +from .models.v1_managed_fields_entry import V1ManagedFieldsEntry from .models.v1_memory import V1Memory from .models.v1_multus_network import V1MultusNetwork from .models.v1_network import V1Network diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 420ccd81..b01977b2 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.24.0-23-gcbf1c22/python' + self.user_agent = 'Swagger-Codegen/v0.25.0-56-g8f1c7d31/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 3e6d0e15..88ccc1b6 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.24.0-23-gcbf1c22".\ + "SDK Package Version: v0.25.0-56-g8f1c7d31".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index df6391cc..20691f87 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -58,8 +58,6 @@ from .v1_hugepages import V1Hugepages from .v1_hyperv_timer import V1HypervTimer from .v1_i6300_esb_watchdog import V1I6300ESBWatchdog -from .v1_initializer import V1Initializer -from .v1_initializers import V1Initializers from .v1_input import V1Input from .v1_interface import V1Interface from .v1_kvm_timer import V1KVMTimer @@ -69,6 +67,7 @@ from .v1_local_object_reference import V1LocalObjectReference from .v1_lun_target import V1LunTarget from .v1_machine import V1Machine +from .v1_managed_fields_entry import V1ManagedFieldsEntry from .v1_memory import V1Memory from .v1_multus_network import V1MultusNetwork from .v1_network import V1Network diff --git a/kubevirt/models/v1_api_group.py b/kubevirt/models/v1_api_group.py index 0a75637c..59c1d6f6 100644 --- a/kubevirt/models/v1_api_group.py +++ b/kubevirt/models/v1_api_group.py @@ -75,7 +75,7 @@ def __init__(self, api_version=None, kind=None, name=None, preferred_version=Non def api_version(self): """ Gets the api_version of this V1APIGroup. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :return: The api_version of this V1APIGroup. :rtype: str @@ -86,7 +86,7 @@ def api_version(self): def api_version(self, api_version): """ Sets the api_version of this V1APIGroup. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :param api_version: The api_version of this V1APIGroup. :type: str @@ -98,7 +98,7 @@ def api_version(self, api_version): def kind(self): """ Gets the kind of this V1APIGroup. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :return: The kind of this V1APIGroup. :rtype: str @@ -109,7 +109,7 @@ def kind(self): def kind(self, kind): """ Sets the kind of this V1APIGroup. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param kind: The kind of this V1APIGroup. :type: str diff --git a/kubevirt/models/v1_api_group_list.py b/kubevirt/models/v1_api_group_list.py index bf29f716..ce8390aa 100644 --- a/kubevirt/models/v1_api_group_list.py +++ b/kubevirt/models/v1_api_group_list.py @@ -61,7 +61,7 @@ def __init__(self, api_version=None, groups=None, kind=None): def api_version(self): """ Gets the api_version of this V1APIGroupList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :return: The api_version of this V1APIGroupList. :rtype: str @@ -72,7 +72,7 @@ def api_version(self): def api_version(self, api_version): """ Sets the api_version of this V1APIGroupList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :param api_version: The api_version of this V1APIGroupList. :type: str @@ -109,7 +109,7 @@ def groups(self, groups): def kind(self): """ Gets the kind of this V1APIGroupList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :return: The kind of this V1APIGroupList. :rtype: str @@ -120,7 +120,7 @@ def kind(self): def kind(self, kind): """ Sets the kind of this V1APIGroupList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param kind: The kind of this V1APIGroupList. :type: str diff --git a/kubevirt/models/v1_api_resource.py b/kubevirt/models/v1_api_resource.py index 64fe7df4..02432fbc 100644 --- a/kubevirt/models/v1_api_resource.py +++ b/kubevirt/models/v1_api_resource.py @@ -38,6 +38,7 @@ class V1APIResource(object): 'namespaced': 'bool', 'short_names': 'list[str]', 'singular_name': 'str', + 'storage_version_hash': 'str', 'verbs': 'list[str]', 'version': 'str' } @@ -50,11 +51,12 @@ class V1APIResource(object): 'namespaced': 'namespaced', 'short_names': 'shortNames', 'singular_name': 'singularName', + 'storage_version_hash': 'storageVersionHash', 'verbs': 'verbs', 'version': 'version' } - def __init__(self, categories=None, group=None, kind=None, name=None, namespaced=None, short_names=None, singular_name=None, verbs=None, version=None): + def __init__(self, categories=None, group=None, kind=None, name=None, namespaced=None, short_names=None, singular_name=None, storage_version_hash=None, verbs=None, version=None): """ V1APIResource - a model defined in Swagger """ @@ -66,6 +68,7 @@ def __init__(self, categories=None, group=None, kind=None, name=None, namespaced self._namespaced = None self._short_names = None self._singular_name = None + self._storage_version_hash = None self._verbs = None self._version = None @@ -79,6 +82,8 @@ def __init__(self, categories=None, group=None, kind=None, name=None, namespaced if short_names is not None: self.short_names = short_names self.singular_name = singular_name + if storage_version_hash is not None: + self.storage_version_hash = storage_version_hash self.verbs = verbs if version is not None: self.version = version @@ -252,6 +257,29 @@ def singular_name(self, singular_name): self._singular_name = singular_name + @property + def storage_version_hash(self): + """ + Gets the storage_version_hash of this V1APIResource. + The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates. + + :return: The storage_version_hash of this V1APIResource. + :rtype: str + """ + return self._storage_version_hash + + @storage_version_hash.setter + def storage_version_hash(self, storage_version_hash): + """ + Sets the storage_version_hash of this V1APIResource. + The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates. + + :param storage_version_hash: The storage_version_hash of this V1APIResource. + :type: str + """ + + self._storage_version_hash = storage_version_hash + @property def verbs(self): """ diff --git a/kubevirt/models/v1_api_resource_list.py b/kubevirt/models/v1_api_resource_list.py index 346d153f..00f31142 100644 --- a/kubevirt/models/v1_api_resource_list.py +++ b/kubevirt/models/v1_api_resource_list.py @@ -65,7 +65,7 @@ def __init__(self, api_version=None, group_version=None, kind=None, resources=No def api_version(self): """ Gets the api_version of this V1APIResourceList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :return: The api_version of this V1APIResourceList. :rtype: str @@ -76,7 +76,7 @@ def api_version(self): def api_version(self, api_version): """ Sets the api_version of this V1APIResourceList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :param api_version: The api_version of this V1APIResourceList. :type: str @@ -113,7 +113,7 @@ def group_version(self, group_version): def kind(self): """ Gets the kind of this V1APIResourceList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :return: The kind of this V1APIResourceList. :rtype: str @@ -124,7 +124,7 @@ def kind(self): def kind(self, kind): """ Sets the kind of this V1APIResourceList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param kind: The kind of this V1APIResourceList. :type: str diff --git a/kubevirt/models/v1_delete_options.py b/kubevirt/models/v1_delete_options.py index 4b4a1f56..6d55142e 100644 --- a/kubevirt/models/v1_delete_options.py +++ b/kubevirt/models/v1_delete_options.py @@ -82,7 +82,7 @@ def __init__(self, api_version=None, dry_run=None, grace_period_seconds=None, ki def api_version(self): """ Gets the api_version of this V1DeleteOptions. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :return: The api_version of this V1DeleteOptions. :rtype: str @@ -93,7 +93,7 @@ def api_version(self): def api_version(self, api_version): """ Sets the api_version of this V1DeleteOptions. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :param api_version: The api_version of this V1DeleteOptions. :type: str @@ -151,7 +151,7 @@ def grace_period_seconds(self, grace_period_seconds): def kind(self): """ Gets the kind of this V1DeleteOptions. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :return: The kind of this V1DeleteOptions. :rtype: str @@ -162,7 +162,7 @@ def kind(self): def kind(self, kind): """ Sets the kind of this V1DeleteOptions. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param kind: The kind of this V1DeleteOptions. :type: str diff --git a/kubevirt/models/v1_initializer.py b/kubevirt/models/v1_initializer.py deleted file mode 100644 index a474a8e9..00000000 --- a/kubevirt/models/v1_initializer.py +++ /dev/null @@ -1,126 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1Initializer(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'str' - } - - attribute_map = { - 'name': 'name' - } - - def __init__(self, name=None): - """ - V1Initializer - a model defined in Swagger - """ - - self._name = None - - self.name = name - - @property - def name(self): - """ - Gets the name of this V1Initializer. - name of the process that is responsible for initializing this object. - - :return: The name of this V1Initializer. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V1Initializer. - name of the process that is responsible for initializing this object. - - :param name: The name of this V1Initializer. - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") - - self._name = name - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1Initializer): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_initializers.py b/kubevirt/models/v1_initializers.py deleted file mode 100644 index ba587afd..00000000 --- a/kubevirt/models/v1_initializers.py +++ /dev/null @@ -1,154 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1Initializers(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'pending': 'list[V1Initializer]', - 'result': 'V1Status' - } - - attribute_map = { - 'pending': 'pending', - 'result': 'result' - } - - def __init__(self, pending=None, result=None): - """ - V1Initializers - a model defined in Swagger - """ - - self._pending = None - self._result = None - - self.pending = pending - if result is not None: - self.result = result - - @property - def pending(self): - """ - Gets the pending of this V1Initializers. - Pending is a list of initializers that must execute in order before this object is visible. When the last pending initializer is removed, and no failing result is set, the initializers struct will be set to nil and the object is considered as initialized and visible to all clients. - - :return: The pending of this V1Initializers. - :rtype: list[V1Initializer] - """ - return self._pending - - @pending.setter - def pending(self, pending): - """ - Sets the pending of this V1Initializers. - Pending is a list of initializers that must execute in order before this object is visible. When the last pending initializer is removed, and no failing result is set, the initializers struct will be set to nil and the object is considered as initialized and visible to all clients. - - :param pending: The pending of this V1Initializers. - :type: list[V1Initializer] - """ - if pending is None: - raise ValueError("Invalid value for `pending`, must not be `None`") - - self._pending = pending - - @property - def result(self): - """ - Gets the result of this V1Initializers. - If result is set with the Failure field, the object will be persisted to storage and then deleted, ensuring that other clients can observe the deletion. - - :return: The result of this V1Initializers. - :rtype: V1Status - """ - return self._result - - @result.setter - def result(self, result): - """ - Sets the result of this V1Initializers. - If result is set with the Failure field, the object will be persisted to storage and then deleted, ensuring that other clients can observe the deletion. - - :param result: The result of this V1Initializers. - :type: V1Status - """ - - self._result = result - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1Initializers): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_list_meta.py b/kubevirt/models/v1_list_meta.py index dc0e8fdc..6594da26 100644 --- a/kubevirt/models/v1_list_meta.py +++ b/kubevirt/models/v1_list_meta.py @@ -32,27 +32,32 @@ class V1ListMeta(object): """ swagger_types = { '_continue': 'str', + 'remaining_item_count': 'int', 'resource_version': 'str', 'self_link': 'str' } attribute_map = { '_continue': 'continue', + 'remaining_item_count': 'remainingItemCount', 'resource_version': 'resourceVersion', 'self_link': 'selfLink' } - def __init__(self, _continue=None, resource_version=None, self_link=None): + def __init__(self, _continue=None, remaining_item_count=None, resource_version=None, self_link=None): """ V1ListMeta - a model defined in Swagger """ self.__continue = None + self._remaining_item_count = None self._resource_version = None self._self_link = None if _continue is not None: self._continue = _continue + if remaining_item_count is not None: + self.remaining_item_count = remaining_item_count if resource_version is not None: self.resource_version = resource_version if self_link is not None: @@ -81,11 +86,34 @@ def _continue(self, _continue): self.__continue = _continue + @property + def remaining_item_count(self): + """ + Gets the remaining_item_count of this V1ListMeta. + remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + + :return: The remaining_item_count of this V1ListMeta. + :rtype: int + """ + return self._remaining_item_count + + @remaining_item_count.setter + def remaining_item_count(self, remaining_item_count): + """ + Sets the remaining_item_count of this V1ListMeta. + remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + + :param remaining_item_count: The remaining_item_count of this V1ListMeta. + :type: int + """ + + self._remaining_item_count = remaining_item_count + @property def resource_version(self): """ Gets the resource_version of this V1ListMeta. - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency :return: The resource_version of this V1ListMeta. :rtype: str @@ -96,7 +124,7 @@ def resource_version(self): def resource_version(self, resource_version): """ Sets the resource_version of this V1ListMeta. - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency :param resource_version: The resource_version of this V1ListMeta. :type: str @@ -108,7 +136,7 @@ def resource_version(self, resource_version): def self_link(self): """ Gets the self_link of this V1ListMeta. - selfLink is a URL representing this object. Populated by the system. Read-only. + selfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. :return: The self_link of this V1ListMeta. :rtype: str @@ -119,7 +147,7 @@ def self_link(self): def self_link(self, self_link): """ Sets the self_link of this V1ListMeta. - selfLink is a URL representing this object. Populated by the system. Read-only. + selfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. :param self_link: The self_link of this V1ListMeta. :type: str diff --git a/kubevirt/models/v1_managed_fields_entry.py b/kubevirt/models/v1_managed_fields_entry.py new file mode 100644 index 00000000..24755ccb --- /dev/null +++ b/kubevirt/models/v1_managed_fields_entry.py @@ -0,0 +1,265 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ManagedFieldsEntry(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'fields_type': 'str', + 'fields_v1': 'str', + 'manager': 'str', + 'operation': 'str', + 'time': 'str' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'fields_type': 'fieldsType', + 'fields_v1': 'fieldsV1', + 'manager': 'manager', + 'operation': 'operation', + 'time': 'time' + } + + def __init__(self, api_version=None, fields_type=None, fields_v1=None, manager=None, operation=None, time=None): + """ + V1ManagedFieldsEntry - a model defined in Swagger + """ + + self._api_version = None + self._fields_type = None + self._fields_v1 = None + self._manager = None + self._operation = None + self._time = None + + if api_version is not None: + self.api_version = api_version + if fields_type is not None: + self.fields_type = fields_type + if fields_v1 is not None: + self.fields_v1 = fields_v1 + if manager is not None: + self.manager = manager + if operation is not None: + self.operation = operation + if time is not None: + self.time = time + + @property + def api_version(self): + """ + Gets the api_version of this V1ManagedFieldsEntry. + APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + + :return: The api_version of this V1ManagedFieldsEntry. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ManagedFieldsEntry. + APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + + :param api_version: The api_version of this V1ManagedFieldsEntry. + :type: str + """ + + self._api_version = api_version + + @property + def fields_type(self): + """ + Gets the fields_type of this V1ManagedFieldsEntry. + FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\" + + :return: The fields_type of this V1ManagedFieldsEntry. + :rtype: str + """ + return self._fields_type + + @fields_type.setter + def fields_type(self, fields_type): + """ + Sets the fields_type of this V1ManagedFieldsEntry. + FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\" + + :param fields_type: The fields_type of this V1ManagedFieldsEntry. + :type: str + """ + + self._fields_type = fields_type + + @property + def fields_v1(self): + """ + Gets the fields_v1 of this V1ManagedFieldsEntry. + FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type. + + :return: The fields_v1 of this V1ManagedFieldsEntry. + :rtype: str + """ + return self._fields_v1 + + @fields_v1.setter + def fields_v1(self, fields_v1): + """ + Sets the fields_v1 of this V1ManagedFieldsEntry. + FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type. + + :param fields_v1: The fields_v1 of this V1ManagedFieldsEntry. + :type: str + """ + + self._fields_v1 = fields_v1 + + @property + def manager(self): + """ + Gets the manager of this V1ManagedFieldsEntry. + Manager is an identifier of the workflow managing these fields. + + :return: The manager of this V1ManagedFieldsEntry. + :rtype: str + """ + return self._manager + + @manager.setter + def manager(self, manager): + """ + Sets the manager of this V1ManagedFieldsEntry. + Manager is an identifier of the workflow managing these fields. + + :param manager: The manager of this V1ManagedFieldsEntry. + :type: str + """ + + self._manager = manager + + @property + def operation(self): + """ + Gets the operation of this V1ManagedFieldsEntry. + Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + + :return: The operation of this V1ManagedFieldsEntry. + :rtype: str + """ + return self._operation + + @operation.setter + def operation(self, operation): + """ + Sets the operation of this V1ManagedFieldsEntry. + Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + + :param operation: The operation of this V1ManagedFieldsEntry. + :type: str + """ + + self._operation = operation + + @property + def time(self): + """ + Gets the time of this V1ManagedFieldsEntry. + Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + :return: The time of this V1ManagedFieldsEntry. + :rtype: str + """ + return self._time + + @time.setter + def time(self, time): + """ + Sets the time of this V1ManagedFieldsEntry. + Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + :param time: The time of this V1ManagedFieldsEntry. + :type: str + """ + + self._time = time + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1ManagedFieldsEntry): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_object_meta.py b/kubevirt/models/v1_object_meta.py index c1c44397..fa317d44 100644 --- a/kubevirt/models/v1_object_meta.py +++ b/kubevirt/models/v1_object_meta.py @@ -38,8 +38,8 @@ class V1ObjectMeta(object): 'finalizers': 'list[str]', 'generate_name': 'str', 'generation': 'int', - 'initializers': 'V1Initializers', 'labels': 'object', + 'managed_fields': 'list[V1ManagedFieldsEntry]', 'name': 'str', 'namespace': 'str', 'owner_references': 'list[V1OwnerReference]', @@ -56,8 +56,8 @@ class V1ObjectMeta(object): 'finalizers': 'finalizers', 'generate_name': 'generateName', 'generation': 'generation', - 'initializers': 'initializers', 'labels': 'labels', + 'managed_fields': 'managedFields', 'name': 'name', 'namespace': 'namespace', 'owner_references': 'ownerReferences', @@ -66,7 +66,7 @@ class V1ObjectMeta(object): 'uid': 'uid' } - def __init__(self, annotations=None, cluster_name=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, initializers=None, labels=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, uid=None): + def __init__(self, annotations=None, cluster_name=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, uid=None): """ V1ObjectMeta - a model defined in Swagger """ @@ -78,8 +78,8 @@ def __init__(self, annotations=None, cluster_name=None, deletion_grace_period_se self._finalizers = None self._generate_name = None self._generation = None - self._initializers = None self._labels = None + self._managed_fields = None self._name = None self._namespace = None self._owner_references = None @@ -101,10 +101,10 @@ def __init__(self, annotations=None, cluster_name=None, deletion_grace_period_se self.generate_name = generate_name if generation is not None: self.generation = generation - if initializers is not None: - self.initializers = initializers if labels is not None: self.labels = labels + if managed_fields is not None: + self.managed_fields = managed_fields if name is not None: self.name = name if namespace is not None: @@ -191,7 +191,7 @@ def deletion_grace_period_seconds(self, deletion_grace_period_seconds): def deletion_timestamp(self): """ Gets the deletion_timestamp of this V1ObjectMeta. - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :return: The deletion_timestamp of this V1ObjectMeta. :rtype: str @@ -202,7 +202,7 @@ def deletion_timestamp(self): def deletion_timestamp(self, deletion_timestamp): """ Sets the deletion_timestamp of this V1ObjectMeta. - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param deletion_timestamp: The deletion_timestamp of this V1ObjectMeta. :type: str @@ -237,7 +237,7 @@ def finalizers(self, finalizers): def generate_name(self): """ Gets the generate_name of this V1ObjectMeta. - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency :return: The generate_name of this V1ObjectMeta. :rtype: str @@ -248,7 +248,7 @@ def generate_name(self): def generate_name(self, generate_name): """ Sets the generate_name of this V1ObjectMeta. - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency :param generate_name: The generate_name of this V1ObjectMeta. :type: str @@ -279,29 +279,6 @@ def generation(self, generation): self._generation = generation - @property - def initializers(self): - """ - Gets the initializers of this V1ObjectMeta. - An initializer is a controller which enforces some system invariant at object creation time. This field is a list of initializers that have not yet acted on this object. If nil or empty, this object has been completely initialized. Otherwise, the object is considered uninitialized and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to observe uninitialized objects. When an object is created, the system will populate this list with the current set of initializers. Only privileged users may set or modify this list. Once it is empty, it may not be modified further by any user. - - :return: The initializers of this V1ObjectMeta. - :rtype: V1Initializers - """ - return self._initializers - - @initializers.setter - def initializers(self, initializers): - """ - Sets the initializers of this V1ObjectMeta. - An initializer is a controller which enforces some system invariant at object creation time. This field is a list of initializers that have not yet acted on this object. If nil or empty, this object has been completely initialized. Otherwise, the object is considered uninitialized and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to observe uninitialized objects. When an object is created, the system will populate this list with the current set of initializers. Only privileged users may set or modify this list. Once it is empty, it may not be modified further by any user. - - :param initializers: The initializers of this V1ObjectMeta. - :type: V1Initializers - """ - - self._initializers = initializers - @property def labels(self): """ @@ -325,6 +302,29 @@ def labels(self, labels): self._labels = labels + @property + def managed_fields(self): + """ + Gets the managed_fields of this V1ObjectMeta. + ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. + + :return: The managed_fields of this V1ObjectMeta. + :rtype: list[V1ManagedFieldsEntry] + """ + return self._managed_fields + + @managed_fields.setter + def managed_fields(self, managed_fields): + """ + Sets the managed_fields of this V1ObjectMeta. + ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. + + :param managed_fields: The managed_fields of this V1ObjectMeta. + :type: list[V1ManagedFieldsEntry] + """ + + self._managed_fields = managed_fields + @property def name(self): """ @@ -398,7 +398,7 @@ def owner_references(self, owner_references): def resource_version(self): """ Gets the resource_version of this V1ObjectMeta. - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency :return: The resource_version of this V1ObjectMeta. :rtype: str @@ -409,7 +409,7 @@ def resource_version(self): def resource_version(self, resource_version): """ Sets the resource_version of this V1ObjectMeta. - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency :param resource_version: The resource_version of this V1ObjectMeta. :type: str @@ -421,7 +421,7 @@ def resource_version(self, resource_version): def self_link(self): """ Gets the self_link of this V1ObjectMeta. - SelfLink is a URL representing this object. Populated by the system. Read-only. + SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. :return: The self_link of this V1ObjectMeta. :rtype: str @@ -432,7 +432,7 @@ def self_link(self): def self_link(self, self_link): """ Sets the self_link of this V1ObjectMeta. - SelfLink is a URL representing this object. Populated by the system. Read-only. + SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. :param self_link: The self_link of this V1ObjectMeta. :type: str diff --git a/kubevirt/models/v1_owner_reference.py b/kubevirt/models/v1_owner_reference.py index 71fd2103..1bae4493 100644 --- a/kubevirt/models/v1_owner_reference.py +++ b/kubevirt/models/v1_owner_reference.py @@ -144,7 +144,7 @@ def controller(self, controller): def kind(self): """ Gets the kind of this V1OwnerReference. - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :return: The kind of this V1OwnerReference. :rtype: str @@ -155,7 +155,7 @@ def kind(self): def kind(self, kind): """ Sets the kind of this V1OwnerReference. - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param kind: The kind of this V1OwnerReference. :type: str diff --git a/kubevirt/models/v1_preconditions.py b/kubevirt/models/v1_preconditions.py index a6df3db5..24f361c6 100644 --- a/kubevirt/models/v1_preconditions.py +++ b/kubevirt/models/v1_preconditions.py @@ -31,23 +31,51 @@ class V1Preconditions(object): and the value is json key in definition. """ swagger_types = { + 'resource_version': 'str', 'uid': 'TypesUID' } attribute_map = { + 'resource_version': 'resourceVersion', 'uid': 'uid' } - def __init__(self, uid=None): + def __init__(self, resource_version=None, uid=None): """ V1Preconditions - a model defined in Swagger """ + self._resource_version = None self._uid = None + if resource_version is not None: + self.resource_version = resource_version if uid is not None: self.uid = uid + @property + def resource_version(self): + """ + Gets the resource_version of this V1Preconditions. + Specifies the target ResourceVersion + + :return: The resource_version of this V1Preconditions. + :rtype: str + """ + return self._resource_version + + @resource_version.setter + def resource_version(self, resource_version): + """ + Sets the resource_version of this V1Preconditions. + Specifies the target ResourceVersion + + :param resource_version: The resource_version of this V1Preconditions. + :type: str + """ + + self._resource_version = resource_version + @property def uid(self): """ diff --git a/kubevirt/models/v1_restart_options.py b/kubevirt/models/v1_restart_options.py index 67cff03d..2cda4eb1 100644 --- a/kubevirt/models/v1_restart_options.py +++ b/kubevirt/models/v1_restart_options.py @@ -62,7 +62,7 @@ def __init__(self, api_version=None, grace_period_seconds=None, kind=None): def api_version(self): """ Gets the api_version of this V1RestartOptions. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :return: The api_version of this V1RestartOptions. :rtype: str @@ -73,7 +73,7 @@ def api_version(self): def api_version(self, api_version): """ Sets the api_version of this V1RestartOptions. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :param api_version: The api_version of this V1RestartOptions. :type: str @@ -108,7 +108,7 @@ def grace_period_seconds(self, grace_period_seconds): def kind(self): """ Gets the kind of this V1RestartOptions. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :return: The kind of this V1RestartOptions. :rtype: str @@ -119,7 +119,7 @@ def kind(self): def kind(self, kind): """ Sets the kind of this V1RestartOptions. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param kind: The kind of this V1RestartOptions. :type: str diff --git a/kubevirt/models/v1_status.py b/kubevirt/models/v1_status.py index dfdba16a..8157dd2e 100644 --- a/kubevirt/models/v1_status.py +++ b/kubevirt/models/v1_status.py @@ -87,7 +87,7 @@ def __init__(self, api_version=None, code=None, details=None, kind=None, message def api_version(self): """ Gets the api_version of this V1Status. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :return: The api_version of this V1Status. :rtype: str @@ -98,7 +98,7 @@ def api_version(self): def api_version(self, api_version): """ Sets the api_version of this V1Status. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :param api_version: The api_version of this V1Status. :type: str @@ -156,7 +156,7 @@ def details(self, details): def kind(self): """ Gets the kind of this V1Status. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :return: The kind of this V1Status. :rtype: str @@ -167,7 +167,7 @@ def kind(self): def kind(self, kind): """ Sets the kind of this V1Status. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param kind: The kind of this V1Status. :type: str @@ -202,7 +202,7 @@ def message(self, message): def metadata(self): """ Gets the metadata of this V1Status. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :return: The metadata of this V1Status. :rtype: V1ListMeta @@ -213,7 +213,7 @@ def metadata(self): def metadata(self, metadata): """ Sets the metadata of this V1Status. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param metadata: The metadata of this V1Status. :type: V1ListMeta @@ -248,7 +248,7 @@ def reason(self, reason): def status(self): """ Gets the status of this V1Status. - Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status :return: The status of this V1Status. :rtype: str @@ -259,7 +259,7 @@ def status(self): def status(self, status): """ Sets the status of this V1Status. - Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status :param status: The status of this V1Status. :type: str diff --git a/kubevirt/models/v1_status_details.py b/kubevirt/models/v1_status_details.py index ced93a53..dd448875 100644 --- a/kubevirt/models/v1_status_details.py +++ b/kubevirt/models/v1_status_details.py @@ -123,7 +123,7 @@ def group(self, group): def kind(self): """ Gets the kind of this V1StatusDetails. - The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :return: The kind of this V1StatusDetails. :rtype: str @@ -134,7 +134,7 @@ def kind(self): def kind(self, kind): """ Sets the kind of this V1StatusDetails. - The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param kind: The kind of this V1StatusDetails. :type: str diff --git a/kubevirt/models/v1_virtual_machine.py b/kubevirt/models/v1_virtual_machine.py index 754ff7cb..7d3c8197 100644 --- a/kubevirt/models/v1_virtual_machine.py +++ b/kubevirt/models/v1_virtual_machine.py @@ -71,7 +71,7 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status def api_version(self): """ Gets the api_version of this V1VirtualMachine. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :return: The api_version of this V1VirtualMachine. :rtype: str @@ -82,7 +82,7 @@ def api_version(self): def api_version(self, api_version): """ Sets the api_version of this V1VirtualMachine. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :param api_version: The api_version of this V1VirtualMachine. :type: str @@ -94,7 +94,7 @@ def api_version(self, api_version): def kind(self): """ Gets the kind of this V1VirtualMachine. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :return: The kind of this V1VirtualMachine. :rtype: str @@ -105,7 +105,7 @@ def kind(self): def kind(self, kind): """ Sets the kind of this V1VirtualMachine. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param kind: The kind of this V1VirtualMachine. :type: str diff --git a/kubevirt/models/v1_virtual_machine_instance.py b/kubevirt/models/v1_virtual_machine_instance.py index fa8a8a28..63cce706 100644 --- a/kubevirt/models/v1_virtual_machine_instance.py +++ b/kubevirt/models/v1_virtual_machine_instance.py @@ -71,7 +71,7 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status def api_version(self): """ Gets the api_version of this V1VirtualMachineInstance. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :return: The api_version of this V1VirtualMachineInstance. :rtype: str @@ -82,7 +82,7 @@ def api_version(self): def api_version(self, api_version): """ Sets the api_version of this V1VirtualMachineInstance. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :param api_version: The api_version of this V1VirtualMachineInstance. :type: str @@ -94,7 +94,7 @@ def api_version(self, api_version): def kind(self): """ Gets the kind of this V1VirtualMachineInstance. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :return: The kind of this V1VirtualMachineInstance. :rtype: str @@ -105,7 +105,7 @@ def kind(self): def kind(self, kind): """ Sets the kind of this V1VirtualMachineInstance. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param kind: The kind of this V1VirtualMachineInstance. :type: str diff --git a/kubevirt/models/v1_virtual_machine_instance_list.py b/kubevirt/models/v1_virtual_machine_instance_list.py index 48cc2ffd..843638f4 100644 --- a/kubevirt/models/v1_virtual_machine_instance_list.py +++ b/kubevirt/models/v1_virtual_machine_instance_list.py @@ -66,7 +66,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): def api_version(self): """ Gets the api_version of this V1VirtualMachineInstanceList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :return: The api_version of this V1VirtualMachineInstanceList. :rtype: str @@ -77,7 +77,7 @@ def api_version(self): def api_version(self, api_version): """ Sets the api_version of this V1VirtualMachineInstanceList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :param api_version: The api_version of this V1VirtualMachineInstanceList. :type: str @@ -112,7 +112,7 @@ def items(self, items): def kind(self): """ Gets the kind of this V1VirtualMachineInstanceList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :return: The kind of this V1VirtualMachineInstanceList. :rtype: str @@ -123,7 +123,7 @@ def kind(self): def kind(self, kind): """ Sets the kind of this V1VirtualMachineInstanceList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param kind: The kind of this V1VirtualMachineInstanceList. :type: str diff --git a/kubevirt/models/v1_virtual_machine_instance_migration.py b/kubevirt/models/v1_virtual_machine_instance_migration.py index 9ae480f4..614238d9 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration.py @@ -71,7 +71,7 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status def api_version(self): """ Gets the api_version of this V1VirtualMachineInstanceMigration. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :return: The api_version of this V1VirtualMachineInstanceMigration. :rtype: str @@ -82,7 +82,7 @@ def api_version(self): def api_version(self, api_version): """ Sets the api_version of this V1VirtualMachineInstanceMigration. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :param api_version: The api_version of this V1VirtualMachineInstanceMigration. :type: str @@ -94,7 +94,7 @@ def api_version(self, api_version): def kind(self): """ Gets the kind of this V1VirtualMachineInstanceMigration. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :return: The kind of this V1VirtualMachineInstanceMigration. :rtype: str @@ -105,7 +105,7 @@ def kind(self): def kind(self, kind): """ Sets the kind of this V1VirtualMachineInstanceMigration. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param kind: The kind of this V1VirtualMachineInstanceMigration. :type: str diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_list.py b/kubevirt/models/v1_virtual_machine_instance_migration_list.py index cecac303..6601d921 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_list.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_list.py @@ -66,7 +66,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): def api_version(self): """ Gets the api_version of this V1VirtualMachineInstanceMigrationList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :return: The api_version of this V1VirtualMachineInstanceMigrationList. :rtype: str @@ -77,7 +77,7 @@ def api_version(self): def api_version(self, api_version): """ Sets the api_version of this V1VirtualMachineInstanceMigrationList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :param api_version: The api_version of this V1VirtualMachineInstanceMigrationList. :type: str @@ -112,7 +112,7 @@ def items(self, items): def kind(self): """ Gets the kind of this V1VirtualMachineInstanceMigrationList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :return: The kind of this V1VirtualMachineInstanceMigrationList. :rtype: str @@ -123,7 +123,7 @@ def kind(self): def kind(self, kind): """ Sets the kind of this V1VirtualMachineInstanceMigrationList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param kind: The kind of this V1VirtualMachineInstanceMigrationList. :type: str diff --git a/kubevirt/models/v1_virtual_machine_instance_preset.py b/kubevirt/models/v1_virtual_machine_instance_preset.py index 32f9a896..624ab831 100644 --- a/kubevirt/models/v1_virtual_machine_instance_preset.py +++ b/kubevirt/models/v1_virtual_machine_instance_preset.py @@ -67,7 +67,7 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None): def api_version(self): """ Gets the api_version of this V1VirtualMachineInstancePreset. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :return: The api_version of this V1VirtualMachineInstancePreset. :rtype: str @@ -78,7 +78,7 @@ def api_version(self): def api_version(self, api_version): """ Sets the api_version of this V1VirtualMachineInstancePreset. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :param api_version: The api_version of this V1VirtualMachineInstancePreset. :type: str @@ -90,7 +90,7 @@ def api_version(self, api_version): def kind(self): """ Gets the kind of this V1VirtualMachineInstancePreset. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :return: The kind of this V1VirtualMachineInstancePreset. :rtype: str @@ -101,7 +101,7 @@ def kind(self): def kind(self, kind): """ Sets the kind of this V1VirtualMachineInstancePreset. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param kind: The kind of this V1VirtualMachineInstancePreset. :type: str diff --git a/kubevirt/models/v1_virtual_machine_instance_preset_list.py b/kubevirt/models/v1_virtual_machine_instance_preset_list.py index 2f0fce82..a44c7bca 100644 --- a/kubevirt/models/v1_virtual_machine_instance_preset_list.py +++ b/kubevirt/models/v1_virtual_machine_instance_preset_list.py @@ -66,7 +66,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): def api_version(self): """ Gets the api_version of this V1VirtualMachineInstancePresetList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :return: The api_version of this V1VirtualMachineInstancePresetList. :rtype: str @@ -77,7 +77,7 @@ def api_version(self): def api_version(self, api_version): """ Sets the api_version of this V1VirtualMachineInstancePresetList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :param api_version: The api_version of this V1VirtualMachineInstancePresetList. :type: str @@ -112,7 +112,7 @@ def items(self, items): def kind(self): """ Gets the kind of this V1VirtualMachineInstancePresetList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :return: The kind of this V1VirtualMachineInstancePresetList. :rtype: str @@ -123,7 +123,7 @@ def kind(self): def kind(self, kind): """ Sets the kind of this V1VirtualMachineInstancePresetList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param kind: The kind of this V1VirtualMachineInstancePresetList. :type: str diff --git a/kubevirt/models/v1_virtual_machine_instance_replica_set.py b/kubevirt/models/v1_virtual_machine_instance_replica_set.py index f5d64f71..d5d60aa6 100644 --- a/kubevirt/models/v1_virtual_machine_instance_replica_set.py +++ b/kubevirt/models/v1_virtual_machine_instance_replica_set.py @@ -71,7 +71,7 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status def api_version(self): """ Gets the api_version of this V1VirtualMachineInstanceReplicaSet. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :return: The api_version of this V1VirtualMachineInstanceReplicaSet. :rtype: str @@ -82,7 +82,7 @@ def api_version(self): def api_version(self, api_version): """ Sets the api_version of this V1VirtualMachineInstanceReplicaSet. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :param api_version: The api_version of this V1VirtualMachineInstanceReplicaSet. :type: str @@ -94,7 +94,7 @@ def api_version(self, api_version): def kind(self): """ Gets the kind of this V1VirtualMachineInstanceReplicaSet. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :return: The kind of this V1VirtualMachineInstanceReplicaSet. :rtype: str @@ -105,7 +105,7 @@ def kind(self): def kind(self, kind): """ Sets the kind of this V1VirtualMachineInstanceReplicaSet. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param kind: The kind of this V1VirtualMachineInstanceReplicaSet. :type: str diff --git a/kubevirt/models/v1_virtual_machine_instance_replica_set_list.py b/kubevirt/models/v1_virtual_machine_instance_replica_set_list.py index 427dc6cf..5ca27770 100644 --- a/kubevirt/models/v1_virtual_machine_instance_replica_set_list.py +++ b/kubevirt/models/v1_virtual_machine_instance_replica_set_list.py @@ -66,7 +66,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): def api_version(self): """ Gets the api_version of this V1VirtualMachineInstanceReplicaSetList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :return: The api_version of this V1VirtualMachineInstanceReplicaSetList. :rtype: str @@ -77,7 +77,7 @@ def api_version(self): def api_version(self, api_version): """ Sets the api_version of this V1VirtualMachineInstanceReplicaSetList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :param api_version: The api_version of this V1VirtualMachineInstanceReplicaSetList. :type: str @@ -112,7 +112,7 @@ def items(self, items): def kind(self): """ Gets the kind of this V1VirtualMachineInstanceReplicaSetList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :return: The kind of this V1VirtualMachineInstanceReplicaSetList. :rtype: str @@ -123,7 +123,7 @@ def kind(self): def kind(self, kind): """ Sets the kind of this V1VirtualMachineInstanceReplicaSetList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param kind: The kind of this V1VirtualMachineInstanceReplicaSetList. :type: str diff --git a/kubevirt/models/v1_virtual_machine_list.py b/kubevirt/models/v1_virtual_machine_list.py index 8d9852ae..db03ad42 100644 --- a/kubevirt/models/v1_virtual_machine_list.py +++ b/kubevirt/models/v1_virtual_machine_list.py @@ -66,7 +66,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): def api_version(self): """ Gets the api_version of this V1VirtualMachineList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :return: The api_version of this V1VirtualMachineList. :rtype: str @@ -77,7 +77,7 @@ def api_version(self): def api_version(self, api_version): """ Sets the api_version of this V1VirtualMachineList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :param api_version: The api_version of this V1VirtualMachineList. :type: str @@ -112,7 +112,7 @@ def items(self, items): def kind(self): """ Gets the kind of this V1VirtualMachineList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :return: The kind of this V1VirtualMachineList. :rtype: str @@ -123,7 +123,7 @@ def kind(self): def kind(self, kind): """ Sets the kind of this V1VirtualMachineList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param kind: The kind of this V1VirtualMachineList. :type: str diff --git a/kubevirt/models/v1alpha1_data_volume.py b/kubevirt/models/v1alpha1_data_volume.py index 7d06671e..262d20e7 100644 --- a/kubevirt/models/v1alpha1_data_volume.py +++ b/kubevirt/models/v1alpha1_data_volume.py @@ -71,7 +71,7 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status def api_version(self): """ Gets the api_version of this V1alpha1DataVolume. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :return: The api_version of this V1alpha1DataVolume. :rtype: str @@ -82,7 +82,7 @@ def api_version(self): def api_version(self, api_version): """ Sets the api_version of this V1alpha1DataVolume. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :param api_version: The api_version of this V1alpha1DataVolume. :type: str @@ -94,7 +94,7 @@ def api_version(self, api_version): def kind(self): """ Gets the kind of this V1alpha1DataVolume. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :return: The kind of this V1alpha1DataVolume. :rtype: str @@ -105,7 +105,7 @@ def kind(self): def kind(self, kind): """ Sets the kind of this V1alpha1DataVolume. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param kind: The kind of this V1alpha1DataVolume. :type: str diff --git a/setup.py b/setup.py index 0a0131c6..9b68426f 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.24.0-23-gcbf1c22" +VERSION = "v0.25.0-56-g8f1c7d31" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index a59b6daf..5aedfa17 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.24.0-23-gcbf1c22" +"packageVersion": "v0.25.0-56-g8f1c7d31" } diff --git a/test/test_v1_initializers.py b/test/test_v1_initializers.py deleted file mode 100644 index e7330498..00000000 --- a/test/test_v1_initializers.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_initializers import V1Initializers - - -class TestV1Initializers(unittest.TestCase): - """ V1Initializers unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Initializers(self): - """ - Test V1Initializers - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_initializers.V1Initializers() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_initializer.py b/test/test_v1_managed_fields_entry.py similarity index 65% rename from test/test_v1_initializer.py rename to test/test_v1_managed_fields_entry.py index a2d93da6..c9fda412 100644 --- a/test/test_v1_initializer.py +++ b/test/test_v1_managed_fields_entry.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_initializer import V1Initializer +from kubevirt.models.v1_managed_fields_entry import V1ManagedFieldsEntry -class TestV1Initializer(unittest.TestCase): - """ V1Initializer unit test stubs """ +class TestV1ManagedFieldsEntry(unittest.TestCase): + """ V1ManagedFieldsEntry unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1Initializer(self): + def testV1ManagedFieldsEntry(self): """ - Test V1Initializer + Test V1ManagedFieldsEntry """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_initializer.V1Initializer() + #model = kubevirt.models.v1_managed_fields_entry.V1ManagedFieldsEntry() pass From fb9a21eb91134144776688fb908291c6a59f3146 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 14 Feb 2020 10:59:35 +0000 Subject: [PATCH 115/521] Client Python update by Travis Build 10877 --- README.md | 2 +- docs/V1Devices.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_devices.py | 30 +++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 9c877fb9..9f52f68c 100644 --- a/README.md +++ b/README.md @@ -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: v0.25.0-56-g8f1c7d31 +- Package version: v0.26.0-42-g778051b4 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index 478ade0f..d0e3f84c 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **autoattach_graphics_device** | **bool** | Whether to attach the default graphics device or not. VNC will not be available if set to false. Defaults to true. | [optional] **autoattach_pod_interface** | **bool** | Whether to attach a pod network interface. Defaults to true. | [optional] +**autoattach_serial_console** | **bool** | Whether to attach the default serial console or not. Serial console access will not be available if set to false. Defaults to true. | [optional] **block_multi_queue** | **bool** | Whether or not to enable virtio multi-queue for block devices +optional | [optional] **disks** | [**list[V1Disk]**](V1Disk.md) | Disks describes disks, cdroms, floppy and luns which are connected to the vmi. | [optional] **gpus** | [**list[V1GPU]**](V1GPU.md) | Whether to attach a GPU device to the vmi. +optional | [optional] diff --git a/git_push.sh b/git_push.sh index 5d6d3cee..844d362c 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.25.0-56-g8f1c7d31" + release_note="Auto-generated client v0.26.0-42-g778051b4" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index b01977b2..71f4a862 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.25.0-56-g8f1c7d31/python' + self.user_agent = 'Swagger-Codegen/v0.26.0-42-g778051b4/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 88ccc1b6..19b462b6 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.25.0-56-g8f1c7d31".\ + "SDK Package Version: v0.26.0-42-g778051b4".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index c1034f6a..3d3ab276 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -33,6 +33,7 @@ class V1Devices(object): swagger_types = { 'autoattach_graphics_device': 'bool', 'autoattach_pod_interface': 'bool', + 'autoattach_serial_console': 'bool', 'block_multi_queue': 'bool', 'disks': 'list[V1Disk]', 'gpus': 'list[V1GPU]', @@ -46,6 +47,7 @@ class V1Devices(object): attribute_map = { 'autoattach_graphics_device': 'autoattachGraphicsDevice', 'autoattach_pod_interface': 'autoattachPodInterface', + 'autoattach_serial_console': 'autoattachSerialConsole', 'block_multi_queue': 'blockMultiQueue', 'disks': 'disks', 'gpus': 'gpus', @@ -56,13 +58,14 @@ class V1Devices(object): 'watchdog': 'watchdog' } - def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=None, block_multi_queue=None, disks=None, gpus=None, inputs=None, interfaces=None, network_interface_multiqueue=None, rng=None, watchdog=None): + def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=None, autoattach_serial_console=None, block_multi_queue=None, disks=None, gpus=None, inputs=None, interfaces=None, network_interface_multiqueue=None, rng=None, watchdog=None): """ V1Devices - a model defined in Swagger """ self._autoattach_graphics_device = None self._autoattach_pod_interface = None + self._autoattach_serial_console = None self._block_multi_queue = None self._disks = None self._gpus = None @@ -76,6 +79,8 @@ def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=Non self.autoattach_graphics_device = autoattach_graphics_device if autoattach_pod_interface is not None: self.autoattach_pod_interface = autoattach_pod_interface + if autoattach_serial_console is not None: + self.autoattach_serial_console = autoattach_serial_console if block_multi_queue is not None: self.block_multi_queue = block_multi_queue if disks is not None: @@ -139,6 +144,29 @@ def autoattach_pod_interface(self, autoattach_pod_interface): self._autoattach_pod_interface = autoattach_pod_interface + @property + def autoattach_serial_console(self): + """ + Gets the autoattach_serial_console of this V1Devices. + Whether to attach the default serial console or not. Serial console access will not be available if set to false. Defaults to true. + + :return: The autoattach_serial_console of this V1Devices. + :rtype: bool + """ + return self._autoattach_serial_console + + @autoattach_serial_console.setter + def autoattach_serial_console(self, autoattach_serial_console): + """ + Sets the autoattach_serial_console of this V1Devices. + Whether to attach the default serial console or not. Serial console access will not be available if set to false. Defaults to true. + + :param autoattach_serial_console: The autoattach_serial_console of this V1Devices. + :type: bool + """ + + self._autoattach_serial_console = autoattach_serial_console + @property def block_multi_queue(self): """ diff --git a/setup.py b/setup.py index 9b68426f..97d49344 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.25.0-56-g8f1c7d31" +VERSION = "v0.26.0-42-g778051b4" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 5aedfa17..756b65f1 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.25.0-56-g8f1c7d31" +"packageVersion": "v0.26.0-42-g778051b4" } From 5c9d366c37f3d49a86a9e0e68eb56bc518e66544 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 2 Mar 2020 18:45:27 +0000 Subject: [PATCH 116/521] Client Python update by Travis Build 11056 --- README.md | 7 +- docs/DefaultApi.md | 54 +++ docs/V1VirtualMachineInstanceFileSystem.md | 14 + .../V1VirtualMachineInstanceFileSystemInfo.md | 10 + .../V1VirtualMachineInstanceGuestAgentInfo.md | 17 + docs/V1VirtualMachineInstanceGuestOSUser.md | 12 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 12 + kubevirt/__init__.py | 4 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 115 +++++++ kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 4 + ...v1_virtual_machine_instance_file_system.py | 232 +++++++++++++ ...rtual_machine_instance_file_system_info.py | 124 +++++++ ...rtual_machine_instance_guest_agent_info.py | 321 ++++++++++++++++++ ..._virtual_machine_instance_guest_os_user.py | 176 ++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 8 + ...v1_virtual_machine_instance_file_system.py | 44 +++ ...rtual_machine_instance_file_system_info.py | 44 +++ ...rtual_machine_instance_guest_agent_info.py | 44 +++ ..._virtual_machine_instance_guest_os_user.py | 44 +++ 24 files changed, 1290 insertions(+), 6 deletions(-) create mode 100644 docs/V1VirtualMachineInstanceFileSystem.md create mode 100644 docs/V1VirtualMachineInstanceFileSystemInfo.md create mode 100644 docs/V1VirtualMachineInstanceGuestAgentInfo.md create mode 100644 docs/V1VirtualMachineInstanceGuestOSUser.md create mode 100644 kubevirt/models/v1_virtual_machine_instance_file_system.py create mode 100644 kubevirt/models/v1_virtual_machine_instance_file_system_info.py create mode 100644 kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py create mode 100644 kubevirt/models/v1_virtual_machine_instance_guest_os_user.py create mode 100644 test/test_v1_virtual_machine_instance_file_system.py create mode 100644 test/test_v1_virtual_machine_instance_file_system_info.py create mode 100644 test/test_v1_virtual_machine_instance_guest_agent_info.py create mode 100644 test/test_v1_virtual_machine_instance_guest_os_user.py diff --git a/README.md b/README.md index 9f52f68c..ece4dd24 100644 --- a/README.md +++ b/README.md @@ -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: v0.26.0-42-g778051b4 +- Package version: v0.26.0-135-g63082761 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -96,6 +96,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**get_api_group_list**](docs/DefaultApi.md#get_api_group_list) | **GET** /apis | Get a KubeVirt API GroupList *DefaultApi* | [**get_api_resources**](docs/DefaultApi.md#get_api_resources) | **GET** /apis/kubevirt.io/v1alpha3 | Get KubeVirt API Resources *DefaultApi* | [**get_api_resources_0**](docs/DefaultApi.md#get_api_resources_0) | **GET** /apis/subresources.kubevirt.io/v1alpha3 | Get a KubeVirt API resources +*DefaultApi* | [**guestosinfo**](docs/DefaultApi.md#guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/guestosinfo | Get guest agent os information *DefaultApi* | [**list_namespaced_virtual_machine**](docs/DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines | Get a list of VirtualMachine objects. *DefaultApi* | [**list_namespaced_virtual_machine_instance**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances | Get a list of VirtualMachineInstance objects. *DefaultApi* | [**list_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations | Get a list of VirtualMachineInstanceMigration objects. @@ -238,7 +239,11 @@ Class | Method | HTTP request | Description - [V1VirtualMachineCondition](docs/V1VirtualMachineCondition.md) - [V1VirtualMachineInstance](docs/V1VirtualMachineInstance.md) - [V1VirtualMachineInstanceCondition](docs/V1VirtualMachineInstanceCondition.md) + - [V1VirtualMachineInstanceFileSystem](docs/V1VirtualMachineInstanceFileSystem.md) + - [V1VirtualMachineInstanceFileSystemInfo](docs/V1VirtualMachineInstanceFileSystemInfo.md) + - [V1VirtualMachineInstanceGuestAgentInfo](docs/V1VirtualMachineInstanceGuestAgentInfo.md) - [V1VirtualMachineInstanceGuestOSInfo](docs/V1VirtualMachineInstanceGuestOSInfo.md) + - [V1VirtualMachineInstanceGuestOSUser](docs/V1VirtualMachineInstanceGuestOSUser.md) - [V1VirtualMachineInstanceList](docs/V1VirtualMachineInstanceList.md) - [V1VirtualMachineInstanceMigration](docs/V1VirtualMachineInstanceMigration.md) - [V1VirtualMachineInstanceMigrationCondition](docs/V1VirtualMachineInstanceMigrationCondition.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 681eca24..9051cc5b 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -27,6 +27,7 @@ Method | HTTP request | Description [**get_api_group_list**](DefaultApi.md#get_api_group_list) | **GET** /apis | Get a KubeVirt API GroupList [**get_api_resources**](DefaultApi.md#get_api_resources) | **GET** /apis/kubevirt.io/v1alpha3 | Get KubeVirt API Resources [**get_api_resources_0**](DefaultApi.md#get_api_resources_0) | **GET** /apis/subresources.kubevirt.io/v1alpha3 | Get a KubeVirt API resources +[**guestosinfo**](DefaultApi.md#guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/guestosinfo | Get guest agent os information [**list_namespaced_virtual_machine**](DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines | Get a list of VirtualMachine objects. [**list_namespaced_virtual_machine_instance**](DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances | Get a list of VirtualMachineInstance objects. [**list_namespaced_virtual_machine_instance_migration**](DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations | Get a list of VirtualMachineInstanceMigration objects. @@ -1346,6 +1347,59 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **guestosinfo** +> V1VirtualMachineInstanceGuestAgentInfo guestosinfo(namespace, name) + +Get guest agent os information + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +name = 'name_example' # str | Name of the resource + +try: + # Get guest agent os information + api_response = api_instance.guestosinfo(namespace, name) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->guestosinfo: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **name** | **str**| Name of the resource | + +### Return type + +[**V1VirtualMachineInstanceGuestAgentInfo**](V1VirtualMachineInstanceGuestAgentInfo.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **list_namespaced_virtual_machine** > V1VirtualMachineList list_namespaced_virtual_machine(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) diff --git a/docs/V1VirtualMachineInstanceFileSystem.md b/docs/V1VirtualMachineInstanceFileSystem.md new file mode 100644 index 00000000..b953a9d2 --- /dev/null +++ b/docs/V1VirtualMachineInstanceFileSystem.md @@ -0,0 +1,14 @@ +# V1VirtualMachineInstanceFileSystem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disk_name** | **str** | | +**file_system_type** | **str** | | +**mount_point** | **str** | | +**total_bytes** | **int** | | +**used_bytes** | **int** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceFileSystemInfo.md b/docs/V1VirtualMachineInstanceFileSystemInfo.md new file mode 100644 index 00000000..c2607ecc --- /dev/null +++ b/docs/V1VirtualMachineInstanceFileSystemInfo.md @@ -0,0 +1,10 @@ +# V1VirtualMachineInstanceFileSystemInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disks** | [**list[V1VirtualMachineInstanceFileSystem]**](V1VirtualMachineInstanceFileSystem.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceGuestAgentInfo.md b/docs/V1VirtualMachineInstanceGuestAgentInfo.md new file mode 100644 index 00000000..f906fa05 --- /dev/null +++ b/docs/V1VirtualMachineInstanceGuestAgentInfo.md @@ -0,0 +1,17 @@ +# V1VirtualMachineInstanceGuestAgentInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**fs_info** | [**V1VirtualMachineInstanceFileSystemInfo**](V1VirtualMachineInstanceFileSystemInfo.md) | FSInfo is a guest os filesystem information containing the disk mapping and disk mounts with usage | [optional] +**guest_agent_version** | **str** | GAVersion is a version of currently installed guest agent | [optional] +**hostname** | **str** | Hostname represents FQDN of a guest | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**os** | [**V1VirtualMachineInstanceGuestOSInfo**](V1VirtualMachineInstanceGuestOSInfo.md) | OS contains the guest operating system information | [optional] +**timezone** | **str** | Timezone is guest os current timezone | [optional] +**user_list** | [**list[V1VirtualMachineInstanceGuestOSUser]**](V1VirtualMachineInstanceGuestOSUser.md) | UserList is a list of active guest OS users | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceGuestOSUser.md b/docs/V1VirtualMachineInstanceGuestOSUser.md new file mode 100644 index 00000000..2bc16b3c --- /dev/null +++ b/docs/V1VirtualMachineInstanceGuestOSUser.md @@ -0,0 +1,12 @@ +# V1VirtualMachineInstanceGuestOSUser + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domain** | **str** | | [optional] +**login_time** | **int** | | [optional] +**user_name** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 844d362c..b485da65 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.26.0-42-g778051b4" + release_note="Auto-generated client v0.26.0-135-g63082761" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index b27bdd8d..83f486eb 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -297,9 +297,21 @@ 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_virtual_machine_instance_condition.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_condition.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceCondition.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_file_system.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_file_system.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceFileSystem.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_file_system_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_file_system_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceFileSystemInfo.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_guest_agent_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceGuestAgentInfo.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_guest_os_info.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_guest_os_info.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceGuestOSInfo.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_guest_os_user.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_guest_os_user.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceGuestOSUser.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceList.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 57fbcc6b..aa616f63 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -108,7 +108,11 @@ from .models.v1_virtual_machine_condition import V1VirtualMachineCondition from .models.v1_virtual_machine_instance import V1VirtualMachineInstance from .models.v1_virtual_machine_instance_condition import V1VirtualMachineInstanceCondition +from .models.v1_virtual_machine_instance_file_system import V1VirtualMachineInstanceFileSystem +from .models.v1_virtual_machine_instance_file_system_info import V1VirtualMachineInstanceFileSystemInfo +from .models.v1_virtual_machine_instance_guest_agent_info import V1VirtualMachineInstanceGuestAgentInfo from .models.v1_virtual_machine_instance_guest_os_info import V1VirtualMachineInstanceGuestOSInfo +from .models.v1_virtual_machine_instance_guest_os_user import V1VirtualMachineInstanceGuestOSUser from .models.v1_virtual_machine_instance_list import V1VirtualMachineInstanceList from .models.v1_virtual_machine_instance_migration import V1VirtualMachineInstanceMigration from .models.v1_virtual_machine_instance_migration_condition import V1VirtualMachineInstanceMigrationCondition diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 71f4a862..afd63c41 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.26.0-42-g778051b4/python' + self.user_agent = 'Swagger-Codegen/v0.26.0-135-g63082761/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 0dd37a9b..52ba1a43 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -2657,6 +2657,121 @@ def get_api_resources_0_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def guestosinfo(self, namespace, name, **kwargs): + """ + Get guest agent os information + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.guestosinfo(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) + :return: V1VirtualMachineInstanceGuestAgentInfo + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.guestosinfo_with_http_info(namespace, name, **kwargs) + else: + (data) = self.guestosinfo_with_http_info(namespace, name, **kwargs) + return data + + def guestosinfo_with_http_info(self, namespace, name, **kwargs): + """ + Get guest agent os information + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.guestosinfo_with_http_info(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) + :return: V1VirtualMachineInstanceGuestAgentInfo + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'name'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method guestosinfo" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `guestosinfo`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `guestosinfo`") + + if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): + raise ValueError("Invalid value for parameter `namespace` when calling `guestosinfo`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): + raise ValueError("Invalid value for parameter `name` when calling `guestosinfo`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/guestosinfo', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceGuestAgentInfo', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def list_namespaced_virtual_machine(self, namespace, **kwargs): """ Get a list of VirtualMachine objects. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 19b462b6..17173fb5 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.26.0-42-g778051b4".\ + "SDK Package Version: v0.26.0-135-g63082761".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 20691f87..98a4a778 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -108,7 +108,11 @@ from .v1_virtual_machine_condition import V1VirtualMachineCondition from .v1_virtual_machine_instance import V1VirtualMachineInstance from .v1_virtual_machine_instance_condition import V1VirtualMachineInstanceCondition +from .v1_virtual_machine_instance_file_system import V1VirtualMachineInstanceFileSystem +from .v1_virtual_machine_instance_file_system_info import V1VirtualMachineInstanceFileSystemInfo +from .v1_virtual_machine_instance_guest_agent_info import V1VirtualMachineInstanceGuestAgentInfo from .v1_virtual_machine_instance_guest_os_info import V1VirtualMachineInstanceGuestOSInfo +from .v1_virtual_machine_instance_guest_os_user import V1VirtualMachineInstanceGuestOSUser from .v1_virtual_machine_instance_list import V1VirtualMachineInstanceList from .v1_virtual_machine_instance_migration import V1VirtualMachineInstanceMigration from .v1_virtual_machine_instance_migration_condition import V1VirtualMachineInstanceMigrationCondition diff --git a/kubevirt/models/v1_virtual_machine_instance_file_system.py b/kubevirt/models/v1_virtual_machine_instance_file_system.py new file mode 100644 index 00000000..ab2514ab --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_file_system.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineInstanceFileSystem(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'disk_name': 'str', + 'file_system_type': 'str', + 'mount_point': 'str', + 'total_bytes': 'int', + 'used_bytes': 'int' + } + + attribute_map = { + 'disk_name': 'diskName', + 'file_system_type': 'fileSystemType', + 'mount_point': 'mountPoint', + 'total_bytes': 'totalBytes', + 'used_bytes': 'usedBytes' + } + + def __init__(self, disk_name=None, file_system_type=None, mount_point=None, total_bytes=None, used_bytes=None): + """ + V1VirtualMachineInstanceFileSystem - a model defined in Swagger + """ + + self._disk_name = None + self._file_system_type = None + self._mount_point = None + self._total_bytes = None + self._used_bytes = None + + self.disk_name = disk_name + self.file_system_type = file_system_type + self.mount_point = mount_point + self.total_bytes = total_bytes + self.used_bytes = used_bytes + + @property + def disk_name(self): + """ + Gets the disk_name of this V1VirtualMachineInstanceFileSystem. + + :return: The disk_name of this V1VirtualMachineInstanceFileSystem. + :rtype: str + """ + return self._disk_name + + @disk_name.setter + def disk_name(self, disk_name): + """ + Sets the disk_name of this V1VirtualMachineInstanceFileSystem. + + :param disk_name: The disk_name of this V1VirtualMachineInstanceFileSystem. + :type: str + """ + if disk_name is None: + raise ValueError("Invalid value for `disk_name`, must not be `None`") + + self._disk_name = disk_name + + @property + def file_system_type(self): + """ + Gets the file_system_type of this V1VirtualMachineInstanceFileSystem. + + :return: The file_system_type of this V1VirtualMachineInstanceFileSystem. + :rtype: str + """ + return self._file_system_type + + @file_system_type.setter + def file_system_type(self, file_system_type): + """ + Sets the file_system_type of this V1VirtualMachineInstanceFileSystem. + + :param file_system_type: The file_system_type of this V1VirtualMachineInstanceFileSystem. + :type: str + """ + if file_system_type is None: + raise ValueError("Invalid value for `file_system_type`, must not be `None`") + + self._file_system_type = file_system_type + + @property + def mount_point(self): + """ + Gets the mount_point of this V1VirtualMachineInstanceFileSystem. + + :return: The mount_point of this V1VirtualMachineInstanceFileSystem. + :rtype: str + """ + return self._mount_point + + @mount_point.setter + def mount_point(self, mount_point): + """ + Sets the mount_point of this V1VirtualMachineInstanceFileSystem. + + :param mount_point: The mount_point of this V1VirtualMachineInstanceFileSystem. + :type: str + """ + if mount_point is None: + raise ValueError("Invalid value for `mount_point`, must not be `None`") + + self._mount_point = mount_point + + @property + def total_bytes(self): + """ + Gets the total_bytes of this V1VirtualMachineInstanceFileSystem. + + :return: The total_bytes of this V1VirtualMachineInstanceFileSystem. + :rtype: int + """ + return self._total_bytes + + @total_bytes.setter + def total_bytes(self, total_bytes): + """ + Sets the total_bytes of this V1VirtualMachineInstanceFileSystem. + + :param total_bytes: The total_bytes of this V1VirtualMachineInstanceFileSystem. + :type: int + """ + if total_bytes is None: + raise ValueError("Invalid value for `total_bytes`, must not be `None`") + + self._total_bytes = total_bytes + + @property + def used_bytes(self): + """ + Gets the used_bytes of this V1VirtualMachineInstanceFileSystem. + + :return: The used_bytes of this V1VirtualMachineInstanceFileSystem. + :rtype: int + """ + return self._used_bytes + + @used_bytes.setter + def used_bytes(self, used_bytes): + """ + Sets the used_bytes of this V1VirtualMachineInstanceFileSystem. + + :param used_bytes: The used_bytes of this V1VirtualMachineInstanceFileSystem. + :type: int + """ + if used_bytes is None: + raise ValueError("Invalid value for `used_bytes`, must not be `None`") + + self._used_bytes = used_bytes + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineInstanceFileSystem): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_file_system_info.py b/kubevirt/models/v1_virtual_machine_instance_file_system_info.py new file mode 100644 index 00000000..9c16e526 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_file_system_info.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineInstanceFileSystemInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'disks': 'list[V1VirtualMachineInstanceFileSystem]' + } + + attribute_map = { + 'disks': 'disks' + } + + def __init__(self, disks=None): + """ + V1VirtualMachineInstanceFileSystemInfo - a model defined in Swagger + """ + + self._disks = None + + self.disks = disks + + @property + def disks(self): + """ + Gets the disks of this V1VirtualMachineInstanceFileSystemInfo. + + :return: The disks of this V1VirtualMachineInstanceFileSystemInfo. + :rtype: list[V1VirtualMachineInstanceFileSystem] + """ + return self._disks + + @disks.setter + def disks(self, disks): + """ + Sets the disks of this V1VirtualMachineInstanceFileSystemInfo. + + :param disks: The disks of this V1VirtualMachineInstanceFileSystemInfo. + :type: list[V1VirtualMachineInstanceFileSystem] + """ + if disks is None: + raise ValueError("Invalid value for `disks`, must not be `None`") + + self._disks = disks + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineInstanceFileSystemInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py b/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py new file mode 100644 index 00000000..b6f96060 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py @@ -0,0 +1,321 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineInstanceGuestAgentInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'fs_info': 'V1VirtualMachineInstanceFileSystemInfo', + 'guest_agent_version': 'str', + 'hostname': 'str', + 'kind': 'str', + 'os': 'V1VirtualMachineInstanceGuestOSInfo', + 'timezone': 'str', + 'user_list': 'list[V1VirtualMachineInstanceGuestOSUser]' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'fs_info': 'fsInfo', + 'guest_agent_version': 'guestAgentVersion', + 'hostname': 'hostname', + 'kind': 'kind', + 'os': 'os', + 'timezone': 'timezone', + 'user_list': 'userList' + } + + def __init__(self, api_version=None, fs_info=None, guest_agent_version=None, hostname=None, kind=None, os=None, timezone=None, user_list=None): + """ + V1VirtualMachineInstanceGuestAgentInfo - a model defined in Swagger + """ + + self._api_version = None + self._fs_info = None + self._guest_agent_version = None + self._hostname = None + self._kind = None + self._os = None + self._timezone = None + self._user_list = None + + if api_version is not None: + self.api_version = api_version + if fs_info is not None: + self.fs_info = fs_info + if guest_agent_version is not None: + self.guest_agent_version = guest_agent_version + if hostname is not None: + self.hostname = hostname + if kind is not None: + self.kind = kind + if os is not None: + self.os = os + if timezone is not None: + self.timezone = timezone + if user_list is not None: + self.user_list = user_list + + @property + def api_version(self): + """ + Gets the api_version of this V1VirtualMachineInstanceGuestAgentInfo. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1VirtualMachineInstanceGuestAgentInfo. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1VirtualMachineInstanceGuestAgentInfo. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1VirtualMachineInstanceGuestAgentInfo. + :type: str + """ + + self._api_version = api_version + + @property + def fs_info(self): + """ + Gets the fs_info of this V1VirtualMachineInstanceGuestAgentInfo. + FSInfo is a guest os filesystem information containing the disk mapping and disk mounts with usage + + :return: The fs_info of this V1VirtualMachineInstanceGuestAgentInfo. + :rtype: V1VirtualMachineInstanceFileSystemInfo + """ + return self._fs_info + + @fs_info.setter + def fs_info(self, fs_info): + """ + Sets the fs_info of this V1VirtualMachineInstanceGuestAgentInfo. + FSInfo is a guest os filesystem information containing the disk mapping and disk mounts with usage + + :param fs_info: The fs_info of this V1VirtualMachineInstanceGuestAgentInfo. + :type: V1VirtualMachineInstanceFileSystemInfo + """ + + self._fs_info = fs_info + + @property + def guest_agent_version(self): + """ + Gets the guest_agent_version of this V1VirtualMachineInstanceGuestAgentInfo. + GAVersion is a version of currently installed guest agent + + :return: The guest_agent_version of this V1VirtualMachineInstanceGuestAgentInfo. + :rtype: str + """ + return self._guest_agent_version + + @guest_agent_version.setter + def guest_agent_version(self, guest_agent_version): + """ + Sets the guest_agent_version of this V1VirtualMachineInstanceGuestAgentInfo. + GAVersion is a version of currently installed guest agent + + :param guest_agent_version: The guest_agent_version of this V1VirtualMachineInstanceGuestAgentInfo. + :type: str + """ + + self._guest_agent_version = guest_agent_version + + @property + def hostname(self): + """ + Gets the hostname of this V1VirtualMachineInstanceGuestAgentInfo. + Hostname represents FQDN of a guest + + :return: The hostname of this V1VirtualMachineInstanceGuestAgentInfo. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """ + Sets the hostname of this V1VirtualMachineInstanceGuestAgentInfo. + Hostname represents FQDN of a guest + + :param hostname: The hostname of this V1VirtualMachineInstanceGuestAgentInfo. + :type: str + """ + + self._hostname = hostname + + @property + def kind(self): + """ + Gets the kind of this V1VirtualMachineInstanceGuestAgentInfo. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1VirtualMachineInstanceGuestAgentInfo. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1VirtualMachineInstanceGuestAgentInfo. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1VirtualMachineInstanceGuestAgentInfo. + :type: str + """ + + self._kind = kind + + @property + def os(self): + """ + Gets the os of this V1VirtualMachineInstanceGuestAgentInfo. + OS contains the guest operating system information + + :return: The os of this V1VirtualMachineInstanceGuestAgentInfo. + :rtype: V1VirtualMachineInstanceGuestOSInfo + """ + return self._os + + @os.setter + def os(self, os): + """ + Sets the os of this V1VirtualMachineInstanceGuestAgentInfo. + OS contains the guest operating system information + + :param os: The os of this V1VirtualMachineInstanceGuestAgentInfo. + :type: V1VirtualMachineInstanceGuestOSInfo + """ + + self._os = os + + @property + def timezone(self): + """ + Gets the timezone of this V1VirtualMachineInstanceGuestAgentInfo. + Timezone is guest os current timezone + + :return: The timezone of this V1VirtualMachineInstanceGuestAgentInfo. + :rtype: str + """ + return self._timezone + + @timezone.setter + def timezone(self, timezone): + """ + Sets the timezone of this V1VirtualMachineInstanceGuestAgentInfo. + Timezone is guest os current timezone + + :param timezone: The timezone of this V1VirtualMachineInstanceGuestAgentInfo. + :type: str + """ + + self._timezone = timezone + + @property + def user_list(self): + """ + Gets the user_list of this V1VirtualMachineInstanceGuestAgentInfo. + UserList is a list of active guest OS users + + :return: The user_list of this V1VirtualMachineInstanceGuestAgentInfo. + :rtype: list[V1VirtualMachineInstanceGuestOSUser] + """ + return self._user_list + + @user_list.setter + def user_list(self, user_list): + """ + Sets the user_list of this V1VirtualMachineInstanceGuestAgentInfo. + UserList is a list of active guest OS users + + :param user_list: The user_list of this V1VirtualMachineInstanceGuestAgentInfo. + :type: list[V1VirtualMachineInstanceGuestOSUser] + """ + + self._user_list = user_list + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineInstanceGuestAgentInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_guest_os_user.py b/kubevirt/models/v1_virtual_machine_instance_guest_os_user.py new file mode 100644 index 00000000..a888f4fe --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_guest_os_user.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineInstanceGuestOSUser(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'domain': 'str', + 'login_time': 'int', + 'user_name': 'str' + } + + attribute_map = { + 'domain': 'domain', + 'login_time': 'loginTime', + 'user_name': 'userName' + } + + def __init__(self, domain=None, login_time=None, user_name=None): + """ + V1VirtualMachineInstanceGuestOSUser - a model defined in Swagger + """ + + self._domain = None + self._login_time = None + self._user_name = None + + if domain is not None: + self.domain = domain + if login_time is not None: + self.login_time = login_time + self.user_name = user_name + + @property + def domain(self): + """ + Gets the domain of this V1VirtualMachineInstanceGuestOSUser. + + :return: The domain of this V1VirtualMachineInstanceGuestOSUser. + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """ + Sets the domain of this V1VirtualMachineInstanceGuestOSUser. + + :param domain: The domain of this V1VirtualMachineInstanceGuestOSUser. + :type: str + """ + + self._domain = domain + + @property + def login_time(self): + """ + Gets the login_time of this V1VirtualMachineInstanceGuestOSUser. + + :return: The login_time of this V1VirtualMachineInstanceGuestOSUser. + :rtype: int + """ + return self._login_time + + @login_time.setter + def login_time(self, login_time): + """ + Sets the login_time of this V1VirtualMachineInstanceGuestOSUser. + + :param login_time: The login_time of this V1VirtualMachineInstanceGuestOSUser. + :type: int + """ + + self._login_time = login_time + + @property + def user_name(self): + """ + Gets the user_name of this V1VirtualMachineInstanceGuestOSUser. + + :return: The user_name of this V1VirtualMachineInstanceGuestOSUser. + :rtype: str + """ + return self._user_name + + @user_name.setter + def user_name(self, user_name): + """ + Sets the user_name of this V1VirtualMachineInstanceGuestOSUser. + + :param user_name: The user_name of this V1VirtualMachineInstanceGuestOSUser. + :type: str + """ + if user_name is None: + raise ValueError("Invalid value for `user_name`, must not be `None`") + + self._user_name = user_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineInstanceGuestOSUser): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 97d49344..835ecf49 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.26.0-42-g778051b4" +VERSION = "v0.26.0-135-g63082761" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 756b65f1..39187f5f 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.26.0-42-g778051b4" +"packageVersion": "v0.26.0-135-g63082761" } diff --git a/test/test_default_api.py b/test/test_default_api.py index c5b7338c..c14ae10a 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -215,6 +215,14 @@ def test_get_api_resources_0(self): """ pass + def test_guestosinfo(self): + """ + Test case for guestosinfo + + Get guest agent os information + """ + pass + def test_list_namespaced_virtual_machine(self): """ Test case for list_namespaced_virtual_machine diff --git a/test/test_v1_virtual_machine_instance_file_system.py b/test/test_v1_virtual_machine_instance_file_system.py new file mode 100644 index 00000000..cbb50f3c --- /dev/null +++ b/test/test_v1_virtual_machine_instance_file_system.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_file_system import V1VirtualMachineInstanceFileSystem + + +class TestV1VirtualMachineInstanceFileSystem(unittest.TestCase): + """ V1VirtualMachineInstanceFileSystem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceFileSystem(self): + """ + Test V1VirtualMachineInstanceFileSystem + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_file_system.V1VirtualMachineInstanceFileSystem() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_virtual_machine_instance_file_system_info.py b/test/test_v1_virtual_machine_instance_file_system_info.py new file mode 100644 index 00000000..aaf301f4 --- /dev/null +++ b/test/test_v1_virtual_machine_instance_file_system_info.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_file_system_info import V1VirtualMachineInstanceFileSystemInfo + + +class TestV1VirtualMachineInstanceFileSystemInfo(unittest.TestCase): + """ V1VirtualMachineInstanceFileSystemInfo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceFileSystemInfo(self): + """ + Test V1VirtualMachineInstanceFileSystemInfo + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_file_system_info.V1VirtualMachineInstanceFileSystemInfo() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_virtual_machine_instance_guest_agent_info.py b/test/test_v1_virtual_machine_instance_guest_agent_info.py new file mode 100644 index 00000000..54fa28e9 --- /dev/null +++ b/test/test_v1_virtual_machine_instance_guest_agent_info.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_guest_agent_info import V1VirtualMachineInstanceGuestAgentInfo + + +class TestV1VirtualMachineInstanceGuestAgentInfo(unittest.TestCase): + """ V1VirtualMachineInstanceGuestAgentInfo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceGuestAgentInfo(self): + """ + Test V1VirtualMachineInstanceGuestAgentInfo + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_guest_agent_info.V1VirtualMachineInstanceGuestAgentInfo() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_virtual_machine_instance_guest_os_user.py b/test/test_v1_virtual_machine_instance_guest_os_user.py new file mode 100644 index 00000000..341cacb6 --- /dev/null +++ b/test/test_v1_virtual_machine_instance_guest_os_user.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_guest_os_user import V1VirtualMachineInstanceGuestOSUser + + +class TestV1VirtualMachineInstanceGuestOSUser(unittest.TestCase): + """ V1VirtualMachineInstanceGuestOSUser unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceGuestOSUser(self): + """ + Test V1VirtualMachineInstanceGuestOSUser + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_guest_os_user.V1VirtualMachineInstanceGuestOSUser() + pass + + +if __name__ == '__main__': + unittest.main() From 898022ae964cd9bd2eae233235c27a69655622e7 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 4 Mar 2020 13:11:12 +0000 Subject: [PATCH 117/521] Client Python update by Travis Build 11092 --- README.md | 2 +- docs/V1VirtualMachineInstanceSpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1_virtual_machine_instance_spec.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ece4dd24..94abbdb5 100644 --- a/README.md +++ b/README.md @@ -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: v0.26.0-135-g63082761 +- Package version: v0.26.0-153-g62c792cd - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceSpec.md b/docs/V1VirtualMachineInstanceSpec.md index ae14a0c7..6091de8c 100644 --- a/docs/V1VirtualMachineInstanceSpec.md +++ b/docs/V1VirtualMachineInstanceSpec.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **liveness_probe** | [**V1Probe**](V1Probe.md) | Periodic probe of VirtualMachineInstance liveness. VirtualmachineInstances will be stopped if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional | [optional] **networks** | [**list[V1Network]**](V1Network.md) | List of networks that can be attached to a vm's virtual interface. | [optional] **node_selector** | **object** | NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional | [optional] +**priority_class_name** | **str** | If specified, indicates the pod's priority. If not specified, the pod priority will be default or zero if there is no default. +optional | [optional] **readiness_probe** | [**V1Probe**](V1Probe.md) | Periodic probe of VirtualMachineInstance service readiness. VirtualmachineInstances will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional | [optional] **subdomain** | **str** | If specified, the fully qualified vmi hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the vmi will not have a domainname at all. The DNS entry will resolve to the vmi, no matter if the vmi itself can pick up a hostname. +optional | [optional] **termination_grace_period_seconds** | **int** | Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. | [optional] diff --git a/git_push.sh b/git_push.sh index b485da65..25ea2064 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.26.0-135-g63082761" + release_note="Auto-generated client v0.26.0-153-g62c792cd" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index afd63c41..ce5d1d29 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.26.0-135-g63082761/python' + self.user_agent = 'Swagger-Codegen/v0.26.0-153-g62c792cd/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 17173fb5..0fec0418 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.26.0-135-g63082761".\ + "SDK Package Version: v0.26.0-153-g62c792cd".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_spec.py b/kubevirt/models/v1_virtual_machine_instance_spec.py index d5384bb7..e29cbb33 100644 --- a/kubevirt/models/v1_virtual_machine_instance_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_spec.py @@ -40,6 +40,7 @@ class V1VirtualMachineInstanceSpec(object): 'liveness_probe': 'V1Probe', 'networks': 'list[V1Network]', 'node_selector': 'object', + 'priority_class_name': 'str', 'readiness_probe': 'V1Probe', 'subdomain': 'str', 'termination_grace_period_seconds': 'int', @@ -57,6 +58,7 @@ class V1VirtualMachineInstanceSpec(object): 'liveness_probe': 'livenessProbe', 'networks': 'networks', 'node_selector': 'nodeSelector', + 'priority_class_name': 'priorityClassName', 'readiness_probe': 'readinessProbe', 'subdomain': 'subdomain', 'termination_grace_period_seconds': 'terminationGracePeriodSeconds', @@ -64,7 +66,7 @@ class V1VirtualMachineInstanceSpec(object): 'volumes': 'volumes' } - def __init__(self, affinity=None, dns_config=None, dns_policy=None, domain=None, eviction_strategy=None, hostname=None, liveness_probe=None, networks=None, node_selector=None, readiness_probe=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, volumes=None): + def __init__(self, affinity=None, dns_config=None, dns_policy=None, domain=None, eviction_strategy=None, hostname=None, liveness_probe=None, networks=None, node_selector=None, priority_class_name=None, readiness_probe=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, volumes=None): """ V1VirtualMachineInstanceSpec - a model defined in Swagger """ @@ -78,6 +80,7 @@ def __init__(self, affinity=None, dns_config=None, dns_policy=None, domain=None, self._liveness_probe = None self._networks = None self._node_selector = None + self._priority_class_name = None self._readiness_probe = None self._subdomain = None self._termination_grace_period_seconds = None @@ -101,6 +104,8 @@ def __init__(self, affinity=None, dns_config=None, dns_policy=None, domain=None, self.networks = networks if node_selector is not None: self.node_selector = node_selector + if priority_class_name is not None: + self.priority_class_name = priority_class_name if readiness_probe is not None: self.readiness_probe = readiness_probe if subdomain is not None: @@ -321,6 +326,29 @@ def node_selector(self, node_selector): self._node_selector = node_selector + @property + def priority_class_name(self): + """ + Gets the priority_class_name of this V1VirtualMachineInstanceSpec. + If specified, indicates the pod's priority. If not specified, the pod priority will be default or zero if there is no default. +optional + + :return: The priority_class_name of this V1VirtualMachineInstanceSpec. + :rtype: str + """ + return self._priority_class_name + + @priority_class_name.setter + def priority_class_name(self, priority_class_name): + """ + Sets the priority_class_name of this V1VirtualMachineInstanceSpec. + If specified, indicates the pod's priority. If not specified, the pod priority will be default or zero if there is no default. +optional + + :param priority_class_name: The priority_class_name of this V1VirtualMachineInstanceSpec. + :type: str + """ + + self._priority_class_name = priority_class_name + @property def readiness_probe(self): """ diff --git a/setup.py b/setup.py index 835ecf49..d8653d26 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.26.0-135-g63082761" +VERSION = "v0.26.0-153-g62c792cd" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 39187f5f..79d10557 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.26.0-135-g63082761" +"packageVersion": "v0.26.0-153-g62c792cd" } From 99d62330f05fc9824bd3355d1903d884da428a17 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 5 Mar 2020 06:32:54 +0000 Subject: [PATCH 118/521] Client Python update by Travis Build 11100 --- README.md | 3 +- docs/DefaultApi.md | 53 +++++++++ docs/V1VirtualMachineStateChangeRequest.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 107 ++++++++++++++++++ kubevirt/configuration.py | 2 +- ...v1_virtual_machine_state_change_request.py | 30 ++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 8 ++ 11 files changed, 205 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 94abbdb5..c73f2efa 100644 --- a/README.md +++ b/README.md @@ -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: v0.26.0-153-g62c792cd +- Package version: v0.26.0-167-g799ab8b9 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -119,6 +119,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**read_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Get a VirtualMachineInstanceMigration object. *DefaultApi* | [**read_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Get a VirtualMachineInstancePreset object. *DefaultApi* | [**read_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Get a VirtualMachineInstanceReplicaSet object. +*DefaultApi* | [**rename**](docs/DefaultApi.md#rename) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/rename | Rename a stopped VirtualMachine object. *DefaultApi* | [**replace_namespaced_virtual_machine**](docs/DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name} | Update a VirtualMachine object. *DefaultApi* | [**replace_namespaced_virtual_machine_instance**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name} | Update a VirtualMachineInstance object. *DefaultApi* | [**replace_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Update a VirtualMachineInstanceMigration object. diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 9051cc5b..e3742228 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -50,6 +50,7 @@ Method | HTTP request | Description [**read_namespaced_virtual_machine_instance_migration**](DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Get a VirtualMachineInstanceMigration object. [**read_namespaced_virtual_machine_instance_preset**](DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Get a VirtualMachineInstancePreset object. [**read_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Get a VirtualMachineInstanceReplicaSet object. +[**rename**](DefaultApi.md#rename) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/rename | Rename a stopped VirtualMachine object. [**replace_namespaced_virtual_machine**](DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name} | Update a VirtualMachine object. [**replace_namespaced_virtual_machine_instance**](DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name} | Update a VirtualMachineInstance object. [**replace_namespaced_virtual_machine_instance_migration**](DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Update a VirtualMachineInstanceMigration object. @@ -2724,6 +2725,58 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **rename** +> rename(namespace, name) + +Rename a stopped VirtualMachine object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +name = 'name_example' # str | Name of the resource + +try: + # Rename a stopped VirtualMachine object. + api_instance.rename(namespace, name) +except ApiException as e: + print("Exception when calling DefaultApi->rename: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **name** | **str**| Name of the resource | + +### Return type + +void (empty response body) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **replace_namespaced_virtual_machine** > V1VirtualMachine replace_namespaced_virtual_machine(body, namespace, name) diff --git a/docs/V1VirtualMachineStateChangeRequest.md b/docs/V1VirtualMachineStateChangeRequest.md index 68e7e1fa..10b3a8b2 100644 --- a/docs/V1VirtualMachineStateChangeRequest.md +++ b/docs/V1VirtualMachineStateChangeRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action** | **str** | Indicates the type of action that is requested. e.g. Start or Stop | +**data** | **object** | Provides additional data in order to perform the Action | [optional] **uid** | [**TypesUID**](TypesUID.md) | Indicates the UUID of an existing Virtual Machine Instance that this change request applies to -- if applicable | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 25ea2064..93a5d618 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.26.0-153-g62c792cd" + release_note="Auto-generated client v0.26.0-167-g799ab8b9" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index ce5d1d29..ea8aadc8 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.26.0-153-g62c792cd/python' + self.user_agent = 'Swagger-Codegen/v0.26.0-167-g799ab8b9/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 52ba1a43..931aed6e 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -5486,6 +5486,113 @@ def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def rename(self, namespace, name, **kwargs): + """ + Rename a stopped VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.rename(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.rename_with_http_info(namespace, name, **kwargs) + else: + (data) = self.rename_with_http_info(namespace, name, **kwargs) + return data + + def rename_with_http_info(self, namespace, name, **kwargs): + """ + Rename a stopped VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.rename_with_http_info(namespace, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str name: Name of the resource (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', 'name'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method rename" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `rename`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `rename`") + + if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): + raise ValueError("Invalid value for parameter `namespace` when calling `rename`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): + raise ValueError("Invalid value for parameter `name` when calling `rename`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'name' in params: + path_params['name'] = params['name'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/rename', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def replace_namespaced_virtual_machine(self, body, namespace, name, **kwargs): """ Update a VirtualMachine object. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 0fec0418..e1477213 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.26.0-153-g62c792cd".\ + "SDK Package Version: v0.26.0-167-g799ab8b9".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_state_change_request.py b/kubevirt/models/v1_virtual_machine_state_change_request.py index c16e969e..78f9c242 100644 --- a/kubevirt/models/v1_virtual_machine_state_change_request.py +++ b/kubevirt/models/v1_virtual_machine_state_change_request.py @@ -32,23 +32,28 @@ class V1VirtualMachineStateChangeRequest(object): """ swagger_types = { 'action': 'str', + 'data': 'object', 'uid': 'TypesUID' } attribute_map = { 'action': 'action', + 'data': 'data', 'uid': 'uid' } - def __init__(self, action=None, uid=None): + def __init__(self, action=None, data=None, uid=None): """ V1VirtualMachineStateChangeRequest - a model defined in Swagger """ self._action = None + self._data = None self._uid = None self.action = action + if data is not None: + self.data = data if uid is not None: self.uid = uid @@ -77,6 +82,29 @@ def action(self, action): self._action = action + @property + def data(self): + """ + Gets the data of this V1VirtualMachineStateChangeRequest. + Provides additional data in order to perform the Action + + :return: The data of this V1VirtualMachineStateChangeRequest. + :rtype: object + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this V1VirtualMachineStateChangeRequest. + Provides additional data in order to perform the Action + + :param data: The data of this V1VirtualMachineStateChangeRequest. + :type: object + """ + + self._data = data + @property def uid(self): """ diff --git a/setup.py b/setup.py index d8653d26..bd0df0aa 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.26.0-153-g62c792cd" +VERSION = "v0.26.0-167-g799ab8b9" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 79d10557..a0077fb7 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.26.0-153-g62c792cd" +"packageVersion": "v0.26.0-167-g799ab8b9" } diff --git a/test/test_default_api.py b/test/test_default_api.py index c14ae10a..075e17c7 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -399,6 +399,14 @@ def test_read_namespaced_virtual_machine_instance_replica_set(self): """ pass + def test_rename(self): + """ + Test case for rename + + Rename a stopped VirtualMachine object. + """ + pass + def test_replace_namespaced_virtual_machine(self): """ Test case for replace_namespaced_virtual_machine From 55533dc463ae4140e06ef8ef2e98db0b987db0a1 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sat, 14 Mar 2020 11:36:10 +0000 Subject: [PATCH 119/521] Client Python update by Travis Build 11226 --- README.md | 6 +- docs/DefaultApi.md | 96 ++++++++ .../V1VirtualMachineInstanceFileSystemList.md | 13 ++ docs/V1VirtualMachineInstanceGuestOSUser.md | 2 +- ...V1VirtualMachineInstanceGuestOSUserList.md | 13 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 + kubevirt/__init__.py | 2 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 192 ++++++++++++++++ kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 + ...rtual_machine_instance_file_system_list.py | 206 ++++++++++++++++++ ..._virtual_machine_instance_guest_os_user.py | 6 +- ...ual_machine_instance_guest_os_user_list.py | 206 ++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 16 ++ ...rtual_machine_instance_file_system_list.py | 44 ++++ ...ual_machine_instance_guest_os_user_list.py | 44 ++++ 20 files changed, 854 insertions(+), 10 deletions(-) create mode 100644 docs/V1VirtualMachineInstanceFileSystemList.md create mode 100644 docs/V1VirtualMachineInstanceGuestOSUserList.md create mode 100644 kubevirt/models/v1_virtual_machine_instance_file_system_list.py create mode 100644 kubevirt/models/v1_virtual_machine_instance_guest_os_user_list.py create mode 100644 test/test_v1_virtual_machine_instance_file_system_list.py create mode 100644 test/test_v1_virtual_machine_instance_guest_os_user_list.py diff --git a/README.md b/README.md index c73f2efa..acc034be 100644 --- a/README.md +++ b/README.md @@ -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: v0.26.0-167-g799ab8b9 +- Package version: v0.27.0-45-g5781d0a1 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -90,6 +90,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Delete a VirtualMachineInstanceMigration object. *DefaultApi* | [**delete_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Delete a VirtualMachineInstancePreset object. *DefaultApi* | [**delete_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Delete a VirtualMachineInstanceReplicaSet object. +*DefaultApi* | [**filesystemlist**](docs/DefaultApi.md#filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/filesystemlist | Get list of active filesystems on guest machine via guest agent *DefaultApi* | [**func7**](docs/DefaultApi.md#func7) | **GET** /openapi/v2 | *DefaultApi* | [**get_api_group**](docs/DefaultApi.md#get_api_group) | **GET** /apis/kubevirt.io | Get a KubeVirt API group *DefaultApi* | [**get_api_group_0**](docs/DefaultApi.md#get_api_group_0) | **GET** /apis/subresources.kubevirt.io | Get a KubeVirt API Group @@ -130,6 +131,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**stop**](docs/DefaultApi.md#stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/stop | Stop a VirtualMachine object. *DefaultApi* | [**test**](docs/DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/test | Test endpoint verifying apiserver connectivity. *DefaultApi* | [**unpause**](docs/DefaultApi.md#unpause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/unpause | Unpause a VirtualMachineInstance object. +*DefaultApi* | [**userlist**](docs/DefaultApi.md#userlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/userlist | Get list of active users via guest agent *DefaultApi* | [**version**](docs/DefaultApi.md#version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | *DefaultApi* | [**vnc**](docs/DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/vnc | Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. *DefaultApi* | [**watch_namespaced_virtual_machine**](docs/DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachines | Watch a VirtualMachine object. @@ -242,9 +244,11 @@ Class | Method | HTTP request | Description - [V1VirtualMachineInstanceCondition](docs/V1VirtualMachineInstanceCondition.md) - [V1VirtualMachineInstanceFileSystem](docs/V1VirtualMachineInstanceFileSystem.md) - [V1VirtualMachineInstanceFileSystemInfo](docs/V1VirtualMachineInstanceFileSystemInfo.md) + - [V1VirtualMachineInstanceFileSystemList](docs/V1VirtualMachineInstanceFileSystemList.md) - [V1VirtualMachineInstanceGuestAgentInfo](docs/V1VirtualMachineInstanceGuestAgentInfo.md) - [V1VirtualMachineInstanceGuestOSInfo](docs/V1VirtualMachineInstanceGuestOSInfo.md) - [V1VirtualMachineInstanceGuestOSUser](docs/V1VirtualMachineInstanceGuestOSUser.md) + - [V1VirtualMachineInstanceGuestOSUserList](docs/V1VirtualMachineInstanceGuestOSUserList.md) - [V1VirtualMachineInstanceList](docs/V1VirtualMachineInstanceList.md) - [V1VirtualMachineInstanceMigration](docs/V1VirtualMachineInstanceMigration.md) - [V1VirtualMachineInstanceMigrationCondition](docs/V1VirtualMachineInstanceMigrationCondition.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index e3742228..e04dddb8 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -21,6 +21,7 @@ Method | HTTP request | Description [**delete_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Delete a VirtualMachineInstanceMigration object. [**delete_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Delete a VirtualMachineInstancePreset object. [**delete_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Delete a VirtualMachineInstanceReplicaSet object. +[**filesystemlist**](DefaultApi.md#filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/filesystemlist | Get list of active filesystems on guest machine via guest agent [**func7**](DefaultApi.md#func7) | **GET** /openapi/v2 | [**get_api_group**](DefaultApi.md#get_api_group) | **GET** /apis/kubevirt.io | Get a KubeVirt API group [**get_api_group_0**](DefaultApi.md#get_api_group_0) | **GET** /apis/subresources.kubevirt.io | Get a KubeVirt API Group @@ -61,6 +62,7 @@ Method | HTTP request | Description [**stop**](DefaultApi.md#stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/stop | Stop a VirtualMachine object. [**test**](DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/test | Test endpoint verifying apiserver connectivity. [**unpause**](DefaultApi.md#unpause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/unpause | Unpause a VirtualMachineInstance object. +[**userlist**](DefaultApi.md#userlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/userlist | Get list of active users via guest agent [**version**](DefaultApi.md#version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | [**vnc**](DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/vnc | Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. [**watch_namespaced_virtual_machine**](DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachines | Watch a VirtualMachine object. @@ -1068,6 +1070,53 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **filesystemlist** +> V1VirtualMachineInstanceFileSystemList filesystemlist() + +Get list of active filesystems on guest machine via guest agent + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + # Get list of active filesystems on guest machine via guest agent + api_response = api_instance.filesystemlist() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->filesystemlist: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1VirtualMachineInstanceFileSystemList**](V1VirtualMachineInstanceFileSystemList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **func7** > func7() @@ -3314,6 +3363,53 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **userlist** +> V1VirtualMachineInstanceGuestOSUserList userlist() + +Get list of active users via guest agent + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + # Get list of active users via guest agent + api_response = api_instance.userlist() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->userlist: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1VirtualMachineInstanceGuestOSUserList**](V1VirtualMachineInstanceGuestOSUserList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **version** > version() diff --git a/docs/V1VirtualMachineInstanceFileSystemList.md b/docs/V1VirtualMachineInstanceFileSystemList.md new file mode 100644 index 00000000..e5544b50 --- /dev/null +++ b/docs/V1VirtualMachineInstanceFileSystemList.md @@ -0,0 +1,13 @@ +# V1VirtualMachineInstanceFileSystemList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list[V1VirtualMachineInstanceFileSystem]**](V1VirtualMachineInstanceFileSystem.md) | | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceGuestOSUser.md b/docs/V1VirtualMachineInstanceGuestOSUser.md index 2bc16b3c..a7502ca8 100644 --- a/docs/V1VirtualMachineInstanceGuestOSUser.md +++ b/docs/V1VirtualMachineInstanceGuestOSUser.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **domain** | **str** | | [optional] -**login_time** | **int** | | [optional] +**login_time** | **float** | | [optional] **user_name** | **str** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceGuestOSUserList.md b/docs/V1VirtualMachineInstanceGuestOSUserList.md new file mode 100644 index 00000000..c4a9c753 --- /dev/null +++ b/docs/V1VirtualMachineInstanceGuestOSUserList.md @@ -0,0 +1,13 @@ +# V1VirtualMachineInstanceGuestOSUserList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list[V1VirtualMachineInstanceGuestOSUser]**](V1VirtualMachineInstanceGuestOSUser.md) | | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 93a5d618..f452ae48 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.26.0-167-g799ab8b9" + release_note="Auto-generated client v0.27.0-45-g5781d0a1" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 83f486eb..9d195429 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -303,6 +303,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_virtual_machine_instance_file_system_info.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_file_system_info.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceFileSystemInfo.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_file_system_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_file_system_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceFileSystemList.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_guest_agent_info.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceGuestAgentInfo.md @@ -312,6 +315,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_virtual_machine_instance_guest_os_user.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_guest_os_user.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceGuestOSUser.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_guest_os_user_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_guest_os_user_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceGuestOSUserList.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceList.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index aa616f63..9ac305a9 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -110,9 +110,11 @@ from .models.v1_virtual_machine_instance_condition import V1VirtualMachineInstanceCondition from .models.v1_virtual_machine_instance_file_system import V1VirtualMachineInstanceFileSystem from .models.v1_virtual_machine_instance_file_system_info import V1VirtualMachineInstanceFileSystemInfo +from .models.v1_virtual_machine_instance_file_system_list import V1VirtualMachineInstanceFileSystemList from .models.v1_virtual_machine_instance_guest_agent_info import V1VirtualMachineInstanceGuestAgentInfo from .models.v1_virtual_machine_instance_guest_os_info import V1VirtualMachineInstanceGuestOSInfo from .models.v1_virtual_machine_instance_guest_os_user import V1VirtualMachineInstanceGuestOSUser +from .models.v1_virtual_machine_instance_guest_os_user_list import V1VirtualMachineInstanceGuestOSUserList from .models.v1_virtual_machine_instance_list import V1VirtualMachineInstanceList from .models.v1_virtual_machine_instance_migration import V1VirtualMachineInstanceMigration from .models.v1_virtual_machine_instance_migration_condition import V1VirtualMachineInstanceMigrationCondition diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index ea8aadc8..6161d907 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.26.0-167-g799ab8b9/python' + self.user_agent = 'Swagger-Codegen/v0.27.0-45-g5781d0a1/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 931aed6e..f3dc6c4f 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -2103,6 +2103,102 @@ def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def filesystemlist(self, **kwargs): + """ + Get list of active filesystems on guest machine via guest agent + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.filesystemlist(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: V1VirtualMachineInstanceFileSystemList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.filesystemlist_with_http_info(**kwargs) + else: + (data) = self.filesystemlist_with_http_info(**kwargs) + return data + + def filesystemlist_with_http_info(self, **kwargs): + """ + Get list of active filesystems on guest machine via guest agent + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.filesystemlist_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: V1VirtualMachineInstanceFileSystemList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method filesystemlist" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/filesystemlist', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceFileSystemList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def func7(self, **kwargs): """ This method makes a synchronous HTTP request by default. To make an @@ -6742,6 +6838,102 @@ def unpause_with_http_info(self, namespace, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def userlist(self, **kwargs): + """ + Get list of active users via guest agent + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.userlist(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: V1VirtualMachineInstanceGuestOSUserList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.userlist_with_http_info(**kwargs) + else: + (data) = self.userlist_with_http_info(**kwargs) + return data + + def userlist_with_http_info(self, **kwargs): + """ + Get list of active users via guest agent + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.userlist_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: V1VirtualMachineInstanceGuestOSUserList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method userlist" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['BearerToken'] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/userlist', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceGuestOSUserList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def version(self, **kwargs): """ This method makes a synchronous HTTP request by default. To make an diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index e1477213..fcb2a68a 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.26.0-167-g799ab8b9".\ + "SDK Package Version: v0.27.0-45-g5781d0a1".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 98a4a778..04bd648c 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -110,9 +110,11 @@ from .v1_virtual_machine_instance_condition import V1VirtualMachineInstanceCondition from .v1_virtual_machine_instance_file_system import V1VirtualMachineInstanceFileSystem from .v1_virtual_machine_instance_file_system_info import V1VirtualMachineInstanceFileSystemInfo +from .v1_virtual_machine_instance_file_system_list import V1VirtualMachineInstanceFileSystemList from .v1_virtual_machine_instance_guest_agent_info import V1VirtualMachineInstanceGuestAgentInfo from .v1_virtual_machine_instance_guest_os_info import V1VirtualMachineInstanceGuestOSInfo from .v1_virtual_machine_instance_guest_os_user import V1VirtualMachineInstanceGuestOSUser +from .v1_virtual_machine_instance_guest_os_user_list import V1VirtualMachineInstanceGuestOSUserList from .v1_virtual_machine_instance_list import V1VirtualMachineInstanceList from .v1_virtual_machine_instance_migration import V1VirtualMachineInstanceMigration from .v1_virtual_machine_instance_migration_condition import V1VirtualMachineInstanceMigrationCondition diff --git a/kubevirt/models/v1_virtual_machine_instance_file_system_list.py b/kubevirt/models/v1_virtual_machine_instance_file_system_list.py new file mode 100644 index 00000000..a935b5b7 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_file_system_list.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineInstanceFileSystemList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'items': 'list[V1VirtualMachineInstanceFileSystem]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1VirtualMachineInstanceFileSystemList - a model defined in Swagger + """ + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1VirtualMachineInstanceFileSystemList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1VirtualMachineInstanceFileSystemList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1VirtualMachineInstanceFileSystemList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1VirtualMachineInstanceFileSystemList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1VirtualMachineInstanceFileSystemList. + + :return: The items of this V1VirtualMachineInstanceFileSystemList. + :rtype: list[V1VirtualMachineInstanceFileSystem] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1VirtualMachineInstanceFileSystemList. + + :param items: The items of this V1VirtualMachineInstanceFileSystemList. + :type: list[V1VirtualMachineInstanceFileSystem] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1VirtualMachineInstanceFileSystemList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1VirtualMachineInstanceFileSystemList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1VirtualMachineInstanceFileSystemList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1VirtualMachineInstanceFileSystemList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1VirtualMachineInstanceFileSystemList. + + :return: The metadata of this V1VirtualMachineInstanceFileSystemList. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1VirtualMachineInstanceFileSystemList. + + :param metadata: The metadata of this V1VirtualMachineInstanceFileSystemList. + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineInstanceFileSystemList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_guest_os_user.py b/kubevirt/models/v1_virtual_machine_instance_guest_os_user.py index a888f4fe..edd2cb01 100644 --- a/kubevirt/models/v1_virtual_machine_instance_guest_os_user.py +++ b/kubevirt/models/v1_virtual_machine_instance_guest_os_user.py @@ -32,7 +32,7 @@ class V1VirtualMachineInstanceGuestOSUser(object): """ swagger_types = { 'domain': 'str', - 'login_time': 'int', + 'login_time': 'float', 'user_name': 'str' } @@ -84,7 +84,7 @@ def login_time(self): Gets the login_time of this V1VirtualMachineInstanceGuestOSUser. :return: The login_time of this V1VirtualMachineInstanceGuestOSUser. - :rtype: int + :rtype: float """ return self._login_time @@ -94,7 +94,7 @@ def login_time(self, login_time): Sets the login_time of this V1VirtualMachineInstanceGuestOSUser. :param login_time: The login_time of this V1VirtualMachineInstanceGuestOSUser. - :type: int + :type: float """ self._login_time = login_time diff --git a/kubevirt/models/v1_virtual_machine_instance_guest_os_user_list.py b/kubevirt/models/v1_virtual_machine_instance_guest_os_user_list.py new file mode 100644 index 00000000..f85a90fe --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_guest_os_user_list.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineInstanceGuestOSUserList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'items': 'list[V1VirtualMachineInstanceGuestOSUser]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1VirtualMachineInstanceGuestOSUserList - a model defined in Swagger + """ + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1VirtualMachineInstanceGuestOSUserList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1VirtualMachineInstanceGuestOSUserList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1VirtualMachineInstanceGuestOSUserList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1VirtualMachineInstanceGuestOSUserList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1VirtualMachineInstanceGuestOSUserList. + + :return: The items of this V1VirtualMachineInstanceGuestOSUserList. + :rtype: list[V1VirtualMachineInstanceGuestOSUser] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1VirtualMachineInstanceGuestOSUserList. + + :param items: The items of this V1VirtualMachineInstanceGuestOSUserList. + :type: list[V1VirtualMachineInstanceGuestOSUser] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1VirtualMachineInstanceGuestOSUserList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1VirtualMachineInstanceGuestOSUserList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1VirtualMachineInstanceGuestOSUserList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1VirtualMachineInstanceGuestOSUserList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1VirtualMachineInstanceGuestOSUserList. + + :return: The metadata of this V1VirtualMachineInstanceGuestOSUserList. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1VirtualMachineInstanceGuestOSUserList. + + :param metadata: The metadata of this V1VirtualMachineInstanceGuestOSUserList. + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineInstanceGuestOSUserList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index bd0df0aa..aea2bb57 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.26.0-167-g799ab8b9" +VERSION = "v0.27.0-45-g5781d0a1" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index a0077fb7..3de61171 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.26.0-167-g799ab8b9" +"packageVersion": "v0.27.0-45-g5781d0a1" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 075e17c7..3ec1ff03 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -167,6 +167,14 @@ def test_delete_namespaced_virtual_machine_instance_replica_set(self): """ pass + def test_filesystemlist(self): + """ + Test case for filesystemlist + + Get list of active filesystems on guest machine via guest agent + """ + pass + def test_func7(self): """ Test case for func7 @@ -487,6 +495,14 @@ def test_unpause(self): """ pass + def test_userlist(self): + """ + Test case for userlist + + Get list of active users via guest agent + """ + pass + def test_version(self): """ Test case for version diff --git a/test/test_v1_virtual_machine_instance_file_system_list.py b/test/test_v1_virtual_machine_instance_file_system_list.py new file mode 100644 index 00000000..2d42f52d --- /dev/null +++ b/test/test_v1_virtual_machine_instance_file_system_list.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_file_system_list import V1VirtualMachineInstanceFileSystemList + + +class TestV1VirtualMachineInstanceFileSystemList(unittest.TestCase): + """ V1VirtualMachineInstanceFileSystemList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceFileSystemList(self): + """ + Test V1VirtualMachineInstanceFileSystemList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_file_system_list.V1VirtualMachineInstanceFileSystemList() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_virtual_machine_instance_guest_os_user_list.py b/test/test_v1_virtual_machine_instance_guest_os_user_list.py new file mode 100644 index 00000000..bca5c070 --- /dev/null +++ b/test/test_v1_virtual_machine_instance_guest_os_user_list.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_guest_os_user_list import V1VirtualMachineInstanceGuestOSUserList + + +class TestV1VirtualMachineInstanceGuestOSUserList(unittest.TestCase): + """ V1VirtualMachineInstanceGuestOSUserList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceGuestOSUserList(self): + """ + Test V1VirtualMachineInstanceGuestOSUserList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_guest_os_user_list.V1VirtualMachineInstanceGuestOSUserList() + pass + + +if __name__ == '__main__': + unittest.main() From 9f5260b242aac62f75049e86c4a5b61ec043c7e4 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 19 Mar 2020 22:22:46 +0000 Subject: [PATCH 120/521] Client Python update by Travis Build 11344 --- LICENSE | 202 ++++++++++++++++++++++++++++++++ README.md | 2 +- docs/V1Disk.md | 1 + docs/V1Interface.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_disk.py | 34 +++++- kubevirt/models/v1_interface.py | 34 +++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 11 files changed, 272 insertions(+), 12 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..549d874d --- /dev/null +++ b/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2017 The KubeVirt Authors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/README.md b/README.md index acc034be..7e527aed 100644 --- a/README.md +++ b/README.md @@ -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: v0.27.0-45-g5781d0a1 +- Package version: v0.27.0-66-g27a1cec0 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Disk.md b/docs/V1Disk.md index 33ac9432..840f91ee 100644 --- a/docs/V1Disk.md +++ b/docs/V1Disk.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **lun** | [**V1LunTarget**](V1LunTarget.md) | Attach a volume as a LUN to the vmi. | [optional] **name** | **str** | Name is the device name | **serial** | **str** | Serial provides the ability to specify a serial number for the disk device. +optional | [optional] +**tag** | **str** | If specified, disk address and its tag will be provided to the guest via config drive metadata +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Interface.md b/docs/V1Interface.md index 4640199d..6db5426d 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **ports** | [**list[V1Port]**](V1Port.md) | List of ports to be forwarded to the virtual machine. | [optional] **slirp** | [**V1InterfaceSlirp**](V1InterfaceSlirp.md) | | [optional] **sriov** | [**V1InterfaceSRIOV**](V1InterfaceSRIOV.md) | | [optional] +**tag** | **str** | If specified, the virtual network interface address and its tag will be provided to the guest via config drive +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index f452ae48..49af39af 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.27.0-45-g5781d0a1" + release_note="Auto-generated client v0.27.0-66-g27a1cec0" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 6161d907..e47a0885 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.27.0-45-g5781d0a1/python' + self.user_agent = 'Swagger-Codegen/v0.27.0-66-g27a1cec0/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index fcb2a68a..70987f28 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.27.0-45-g5781d0a1".\ + "SDK Package Version: v0.27.0-66-g27a1cec0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_disk.py b/kubevirt/models/v1_disk.py index 7d813b21..60a695e3 100644 --- a/kubevirt/models/v1_disk.py +++ b/kubevirt/models/v1_disk.py @@ -39,7 +39,8 @@ class V1Disk(object): 'floppy': 'V1FloppyTarget', 'lun': 'V1LunTarget', 'name': 'str', - 'serial': 'str' + 'serial': 'str', + 'tag': 'str' } attribute_map = { @@ -51,10 +52,11 @@ class V1Disk(object): 'floppy': 'floppy', 'lun': 'lun', 'name': 'name', - 'serial': 'serial' + 'serial': 'serial', + 'tag': 'tag' } - def __init__(self, boot_order=None, cache=None, cdrom=None, dedicated_io_thread=None, disk=None, floppy=None, lun=None, name=None, serial=None): + def __init__(self, boot_order=None, cache=None, cdrom=None, dedicated_io_thread=None, disk=None, floppy=None, lun=None, name=None, serial=None, tag=None): """ V1Disk - a model defined in Swagger """ @@ -68,6 +70,7 @@ def __init__(self, boot_order=None, cache=None, cdrom=None, dedicated_io_thread= self._lun = None self._name = None self._serial = None + self._tag = None if boot_order is not None: self.boot_order = boot_order @@ -86,6 +89,8 @@ def __init__(self, boot_order=None, cache=None, cdrom=None, dedicated_io_thread= self.name = name if serial is not None: self.serial = serial + if tag is not None: + self.tag = tag @property def boot_order(self): @@ -296,6 +301,29 @@ def serial(self, serial): self._serial = serial + @property + def tag(self): + """ + Gets the tag of this V1Disk. + If specified, disk address and its tag will be provided to the guest via config drive metadata +optional + + :return: The tag of this V1Disk. + :rtype: str + """ + return self._tag + + @tag.setter + def tag(self, tag): + """ + Sets the tag of this V1Disk. + If specified, disk address and its tag will be provided to the guest via config drive metadata +optional + + :param tag: The tag of this V1Disk. + :type: str + """ + + self._tag = tag + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_interface.py b/kubevirt/models/v1_interface.py index 3743ecc3..9ac22ea9 100644 --- a/kubevirt/models/v1_interface.py +++ b/kubevirt/models/v1_interface.py @@ -41,7 +41,8 @@ class V1Interface(object): 'pci_address': 'str', 'ports': 'list[V1Port]', 'slirp': 'V1InterfaceSlirp', - 'sriov': 'V1InterfaceSRIOV' + 'sriov': 'V1InterfaceSRIOV', + 'tag': 'str' } attribute_map = { @@ -55,10 +56,11 @@ class V1Interface(object): 'pci_address': 'pciAddress', 'ports': 'ports', 'slirp': 'slirp', - 'sriov': 'sriov' + 'sriov': 'sriov', + 'tag': 'tag' } - def __init__(self, boot_order=None, bridge=None, dhcp_options=None, mac_address=None, masquerade=None, model=None, name=None, pci_address=None, ports=None, slirp=None, sriov=None): + def __init__(self, boot_order=None, bridge=None, dhcp_options=None, mac_address=None, masquerade=None, model=None, name=None, pci_address=None, ports=None, slirp=None, sriov=None, tag=None): """ V1Interface - a model defined in Swagger """ @@ -74,6 +76,7 @@ def __init__(self, boot_order=None, bridge=None, dhcp_options=None, mac_address= self._ports = None self._slirp = None self._sriov = None + self._tag = None if boot_order is not None: self.boot_order = boot_order @@ -96,6 +99,8 @@ def __init__(self, boot_order=None, bridge=None, dhcp_options=None, mac_address= self.slirp = slirp if sriov is not None: self.sriov = sriov + if tag is not None: + self.tag = tag @property def boot_order(self): @@ -344,6 +349,29 @@ def sriov(self, sriov): self._sriov = sriov + @property + def tag(self): + """ + Gets the tag of this V1Interface. + If specified, the virtual network interface address and its tag will be provided to the guest via config drive +optional + + :return: The tag of this V1Interface. + :rtype: str + """ + return self._tag + + @tag.setter + def tag(self, tag): + """ + Sets the tag of this V1Interface. + If specified, the virtual network interface address and its tag will be provided to the guest via config drive +optional + + :param tag: The tag of this V1Interface. + :type: str + """ + + self._tag = tag + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index aea2bb57..5f0d7d8e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.27.0-45-g5781d0a1" +VERSION = "v0.27.0-66-g27a1cec0" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 3de61171..f8fc0579 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.27.0-45-g5781d0a1" +"packageVersion": "v0.27.0-66-g27a1cec0" } From 3292ca9f6bf6275f479d07009e4015ea5bad8e28 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 9 Apr 2020 10:11:41 +0000 Subject: [PATCH 121/521] Client Python update by Travis Build 11767 --- README.md | 3 +- docs/V1GenieNetwork.md | 10 --- docs/V1Network.md | 1 - git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 - kubevirt/__init__.py | 1 - kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 - kubevirt/models/v1_genie_network.py | 126 ---------------------------- kubevirt/models/v1_network.py | 28 +------ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_genie_network.py | 44 ---------- 14 files changed, 7 insertions(+), 220 deletions(-) delete mode 100644 docs/V1GenieNetwork.md delete mode 100644 kubevirt/models/v1_genie_network.py delete mode 100644 test/test_v1_genie_network.py diff --git a/README.md b/README.md index 7e527aed..ddf9bdea 100644 --- a/README.md +++ b/README.md @@ -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: v0.27.0-66-g27a1cec0 +- Package version: v0.27.0-217-g03da29e4 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -183,7 +183,6 @@ Class | Method | HTTP request | Description - [V1Firmware](docs/V1Firmware.md) - [V1FloppyTarget](docs/V1FloppyTarget.md) - [V1GPU](docs/V1GPU.md) - - [V1GenieNetwork](docs/V1GenieNetwork.md) - [V1GroupVersionForDiscovery](docs/V1GroupVersionForDiscovery.md) - [V1HPETTimer](docs/V1HPETTimer.md) - [V1HTTPGetAction](docs/V1HTTPGetAction.md) diff --git a/docs/V1GenieNetwork.md b/docs/V1GenieNetwork.md deleted file mode 100644 index a34b276a..00000000 --- a/docs/V1GenieNetwork.md +++ /dev/null @@ -1,10 +0,0 @@ -# V1GenieNetwork - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**network_name** | **str** | References the CNI plugin name. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1Network.md b/docs/V1Network.md index bb687b6b..7806f7ab 100644 --- a/docs/V1Network.md +++ b/docs/V1Network.md @@ -3,7 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**genie** | [**V1GenieNetwork**](V1GenieNetwork.md) | | [optional] **multus** | [**V1MultusNetwork**](V1MultusNetwork.md) | | [optional] **name** | **str** | Network name. Must be a DNS_LABEL and unique within the vm. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | **pod** | [**V1PodNetwork**](V1PodNetwork.md) | | [optional] diff --git a/git_push.sh b/git_push.sh index 49af39af..f3a2f86f 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.27.0-66-g27a1cec0" + release_note="Auto-generated client v0.27.0-217-g03da29e4" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 9d195429..ff5ac64e 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -120,9 +120,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_gpu.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_gpu.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1GPU.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_genie_network.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_genie_network.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1GenieNetwork.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_group_version_for_discovery.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_group_version_for_discovery.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1GroupVersionForDiscovery.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 9ac305a9..e22080d2 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -49,7 +49,6 @@ from .models.v1_firmware import V1Firmware from .models.v1_floppy_target import V1FloppyTarget from .models.v1_gpu import V1GPU -from .models.v1_genie_network import V1GenieNetwork from .models.v1_group_version_for_discovery import V1GroupVersionForDiscovery from .models.v1_hpet_timer import V1HPETTimer from .models.v1_http_get_action import V1HTTPGetAction diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index e47a0885..31900365 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.27.0-66-g27a1cec0/python' + self.user_agent = 'Swagger-Codegen/v0.27.0-217-g03da29e4/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 70987f28..74a8ad75 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.27.0-66-g27a1cec0".\ + "SDK Package Version: v0.27.0-217-g03da29e4".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 04bd648c..047bb733 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -49,7 +49,6 @@ from .v1_firmware import V1Firmware from .v1_floppy_target import V1FloppyTarget from .v1_gpu import V1GPU -from .v1_genie_network import V1GenieNetwork from .v1_group_version_for_discovery import V1GroupVersionForDiscovery from .v1_hpet_timer import V1HPETTimer from .v1_http_get_action import V1HTTPGetAction diff --git a/kubevirt/models/v1_genie_network.py b/kubevirt/models/v1_genie_network.py deleted file mode 100644 index b1c684c0..00000000 --- a/kubevirt/models/v1_genie_network.py +++ /dev/null @@ -1,126 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1GenieNetwork(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'network_name': 'str' - } - - attribute_map = { - 'network_name': 'networkName' - } - - def __init__(self, network_name=None): - """ - V1GenieNetwork - a model defined in Swagger - """ - - self._network_name = None - - self.network_name = network_name - - @property - def network_name(self): - """ - Gets the network_name of this V1GenieNetwork. - References the CNI plugin name. - - :return: The network_name of this V1GenieNetwork. - :rtype: str - """ - return self._network_name - - @network_name.setter - def network_name(self, network_name): - """ - Sets the network_name of this V1GenieNetwork. - References the CNI plugin name. - - :param network_name: The network_name of this V1GenieNetwork. - :type: str - """ - if network_name is None: - raise ValueError("Invalid value for `network_name`, must not be `None`") - - self._network_name = network_name - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1GenieNetwork): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_network.py b/kubevirt/models/v1_network.py index 8bf3c78f..3052568d 100644 --- a/kubevirt/models/v1_network.py +++ b/kubevirt/models/v1_network.py @@ -31,58 +31,32 @@ class V1Network(object): and the value is json key in definition. """ swagger_types = { - 'genie': 'V1GenieNetwork', 'multus': 'V1MultusNetwork', 'name': 'str', 'pod': 'V1PodNetwork' } attribute_map = { - 'genie': 'genie', 'multus': 'multus', 'name': 'name', 'pod': 'pod' } - def __init__(self, genie=None, multus=None, name=None, pod=None): + def __init__(self, multus=None, name=None, pod=None): """ V1Network - a model defined in Swagger """ - self._genie = None self._multus = None self._name = None self._pod = None - if genie is not None: - self.genie = genie if multus is not None: self.multus = multus self.name = name if pod is not None: self.pod = pod - @property - def genie(self): - """ - Gets the genie of this V1Network. - - :return: The genie of this V1Network. - :rtype: V1GenieNetwork - """ - return self._genie - - @genie.setter - def genie(self, genie): - """ - Sets the genie of this V1Network. - - :param genie: The genie of this V1Network. - :type: V1GenieNetwork - """ - - self._genie = genie - @property def multus(self): """ diff --git a/setup.py b/setup.py index 5f0d7d8e..7b047779 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.27.0-66-g27a1cec0" +VERSION = "v0.27.0-217-g03da29e4" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index f8fc0579..e5aa715a 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.27.0-66-g27a1cec0" +"packageVersion": "v0.27.0-217-g03da29e4" } diff --git a/test/test_v1_genie_network.py b/test/test_v1_genie_network.py deleted file mode 100644 index 3bb1f0ef..00000000 --- a/test/test_v1_genie_network.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_genie_network import V1GenieNetwork - - -class TestV1GenieNetwork(unittest.TestCase): - """ V1GenieNetwork unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1GenieNetwork(self): - """ - Test V1GenieNetwork - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_genie_network.V1GenieNetwork() - pass - - -if __name__ == '__main__': - unittest.main() From 8bf9c960e019cb044e22f347dff6059d6c5d4b1e Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 16 Apr 2020 18:44:03 +0000 Subject: [PATCH 122/521] Client Python update by Travis Build 11859 --- README.md | 2 +- docs/V1VirtualMachineInstanceStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1_virtual_machine_instance_status.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ddf9bdea..0a403674 100644 --- a/README.md +++ b/README.md @@ -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: v0.27.0-217-g03da29e4 +- Package version: v0.28.0-159-g0ca0b58d - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index 417ac1dc..2550eda4 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**active_pods** | **object** | ActivePods is a mapping of pod UID to node name. It is possible for multiple pods to be running for a single VMI during migration. | [optional] **conditions** | [**list[V1VirtualMachineInstanceCondition]**](V1VirtualMachineInstanceCondition.md) | Conditions are specific points in VirtualMachineInstance's pod runtime. | [optional] **guest_os_info** | [**V1VirtualMachineInstanceGuestOSInfo**](V1VirtualMachineInstanceGuestOSInfo.md) | Guest OS Information | [optional] **interfaces** | [**list[V1VirtualMachineInstanceNetworkInterface]**](V1VirtualMachineInstanceNetworkInterface.md) | Interfaces represent the details of available network interfaces. | [optional] diff --git a/git_push.sh b/git_push.sh index f3a2f86f..0abbf5c5 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.27.0-217-g03da29e4" + release_note="Auto-generated client v0.28.0-159-g0ca0b58d" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 31900365..ea4bec2c 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.27.0-217-g03da29e4/python' + self.user_agent = 'Swagger-Codegen/v0.28.0-159-g0ca0b58d/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 74a8ad75..044292cb 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.27.0-217-g03da29e4".\ + "SDK Package Version: v0.28.0-159-g0ca0b58d".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index 40242d8c..0d34124b 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -31,6 +31,7 @@ class V1VirtualMachineInstanceStatus(object): and the value is json key in definition. """ swagger_types = { + 'active_pods': 'object', 'conditions': 'list[V1VirtualMachineInstanceCondition]', 'guest_os_info': 'V1VirtualMachineInstanceGuestOSInfo', 'interfaces': 'list[V1VirtualMachineInstanceNetworkInterface]', @@ -43,6 +44,7 @@ class V1VirtualMachineInstanceStatus(object): } attribute_map = { + 'active_pods': 'activePods', 'conditions': 'conditions', 'guest_os_info': 'guestOSInfo', 'interfaces': 'interfaces', @@ -54,11 +56,12 @@ class V1VirtualMachineInstanceStatus(object): 'reason': 'reason' } - def __init__(self, conditions=None, guest_os_info=None, interfaces=None, migration_method=None, migration_state=None, node_name=None, phase=None, qos_class=None, reason=None): + def __init__(self, active_pods=None, conditions=None, guest_os_info=None, interfaces=None, migration_method=None, migration_state=None, node_name=None, phase=None, qos_class=None, reason=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ + self._active_pods = None self._conditions = None self._guest_os_info = None self._interfaces = None @@ -69,6 +72,8 @@ def __init__(self, conditions=None, guest_os_info=None, interfaces=None, migrati self._qos_class = None self._reason = None + if active_pods is not None: + self.active_pods = active_pods if conditions is not None: self.conditions = conditions if guest_os_info is not None: @@ -88,6 +93,29 @@ def __init__(self, conditions=None, guest_os_info=None, interfaces=None, migrati if reason is not None: self.reason = reason + @property + def active_pods(self): + """ + Gets the active_pods of this V1VirtualMachineInstanceStatus. + ActivePods is a mapping of pod UID to node name. It is possible for multiple pods to be running for a single VMI during migration. + + :return: The active_pods of this V1VirtualMachineInstanceStatus. + :rtype: object + """ + return self._active_pods + + @active_pods.setter + def active_pods(self, active_pods): + """ + Sets the active_pods of this V1VirtualMachineInstanceStatus. + ActivePods is a mapping of pod UID to node name. It is possible for multiple pods to be running for a single VMI during migration. + + :param active_pods: The active_pods of this V1VirtualMachineInstanceStatus. + :type: object + """ + + self._active_pods = active_pods + @property def conditions(self): """ diff --git a/setup.py b/setup.py index 7b047779..9100482d 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.27.0-217-g03da29e4" +VERSION = "v0.28.0-159-g0ca0b58d" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index e5aa715a..1eeea285 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.27.0-217-g03da29e4" +"packageVersion": "v0.28.0-159-g0ca0b58d" } From 402e50b31cd397373728d145b34c1651db8d6bba Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sat, 18 Apr 2020 15:41:59 +0000 Subject: [PATCH 123/521] Client Python update by Travis Build 11867 --- README.md | 2 +- docs/V1VirtualMachineInstanceSpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1_virtual_machine_instance_spec.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 0a403674..eba5174d 100644 --- a/README.md +++ b/README.md @@ -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: v0.28.0-159-g0ca0b58d +- Package version: v0.28.0-164-ge424f09d - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceSpec.md b/docs/V1VirtualMachineInstanceSpec.md index 6091de8c..5b1842f7 100644 --- a/docs/V1VirtualMachineInstanceSpec.md +++ b/docs/V1VirtualMachineInstanceSpec.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **node_selector** | **object** | NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional | [optional] **priority_class_name** | **str** | If specified, indicates the pod's priority. If not specified, the pod priority will be default or zero if there is no default. +optional | [optional] **readiness_probe** | [**V1Probe**](V1Probe.md) | Periodic probe of VirtualMachineInstance service readiness. VirtualmachineInstances will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional | [optional] +**scheduler_name** | **str** | If specified, the VMI will be dispatched by specified scheduler. If not specified, the VMI will be dispatched by default scheduler. +optional | [optional] **subdomain** | **str** | If specified, the fully qualified vmi hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the vmi will not have a domainname at all. The DNS entry will resolve to the vmi, no matter if the vmi itself can pick up a hostname. +optional | [optional] **termination_grace_period_seconds** | **int** | Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. | [optional] **tolerations** | [**list[V1Toleration]**](V1Toleration.md) | If toleration is specified, obey all the toleration rules. | [optional] diff --git a/git_push.sh b/git_push.sh index 0abbf5c5..d8ad2acb 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.28.0-159-g0ca0b58d" + release_note="Auto-generated client v0.28.0-164-ge424f09d" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index ea4bec2c..5960673e 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.28.0-159-g0ca0b58d/python' + self.user_agent = 'Swagger-Codegen/v0.28.0-164-ge424f09d/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 044292cb..9a5e8952 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.28.0-159-g0ca0b58d".\ + "SDK Package Version: v0.28.0-164-ge424f09d".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_spec.py b/kubevirt/models/v1_virtual_machine_instance_spec.py index e29cbb33..97da3223 100644 --- a/kubevirt/models/v1_virtual_machine_instance_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_spec.py @@ -42,6 +42,7 @@ class V1VirtualMachineInstanceSpec(object): 'node_selector': 'object', 'priority_class_name': 'str', 'readiness_probe': 'V1Probe', + 'scheduler_name': 'str', 'subdomain': 'str', 'termination_grace_period_seconds': 'int', 'tolerations': 'list[V1Toleration]', @@ -60,13 +61,14 @@ class V1VirtualMachineInstanceSpec(object): 'node_selector': 'nodeSelector', 'priority_class_name': 'priorityClassName', 'readiness_probe': 'readinessProbe', + 'scheduler_name': 'schedulerName', 'subdomain': 'subdomain', 'termination_grace_period_seconds': 'terminationGracePeriodSeconds', 'tolerations': 'tolerations', 'volumes': 'volumes' } - def __init__(self, affinity=None, dns_config=None, dns_policy=None, domain=None, eviction_strategy=None, hostname=None, liveness_probe=None, networks=None, node_selector=None, priority_class_name=None, readiness_probe=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, volumes=None): + def __init__(self, affinity=None, dns_config=None, dns_policy=None, domain=None, eviction_strategy=None, hostname=None, liveness_probe=None, networks=None, node_selector=None, priority_class_name=None, readiness_probe=None, scheduler_name=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, volumes=None): """ V1VirtualMachineInstanceSpec - a model defined in Swagger """ @@ -82,6 +84,7 @@ def __init__(self, affinity=None, dns_config=None, dns_policy=None, domain=None, self._node_selector = None self._priority_class_name = None self._readiness_probe = None + self._scheduler_name = None self._subdomain = None self._termination_grace_period_seconds = None self._tolerations = None @@ -108,6 +111,8 @@ def __init__(self, affinity=None, dns_config=None, dns_policy=None, domain=None, self.priority_class_name = priority_class_name if readiness_probe is not None: self.readiness_probe = readiness_probe + if scheduler_name is not None: + self.scheduler_name = scheduler_name if subdomain is not None: self.subdomain = subdomain if termination_grace_period_seconds is not None: @@ -372,6 +377,29 @@ def readiness_probe(self, readiness_probe): self._readiness_probe = readiness_probe + @property + def scheduler_name(self): + """ + Gets the scheduler_name of this V1VirtualMachineInstanceSpec. + If specified, the VMI will be dispatched by specified scheduler. If not specified, the VMI will be dispatched by default scheduler. +optional + + :return: The scheduler_name of this V1VirtualMachineInstanceSpec. + :rtype: str + """ + return self._scheduler_name + + @scheduler_name.setter + def scheduler_name(self, scheduler_name): + """ + Sets the scheduler_name of this V1VirtualMachineInstanceSpec. + If specified, the VMI will be dispatched by specified scheduler. If not specified, the VMI will be dispatched by default scheduler. +optional + + :param scheduler_name: The scheduler_name of this V1VirtualMachineInstanceSpec. + :type: str + """ + + self._scheduler_name = scheduler_name + @property def subdomain(self): """ diff --git a/setup.py b/setup.py index 9100482d..d7735964 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.28.0-159-g0ca0b58d" +VERSION = "v0.28.0-164-ge424f09d" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 1eeea285..75aa22a8 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.28.0-159-g0ca0b58d" +"packageVersion": "v0.28.0-164-ge424f09d" } From f3e7ecbb7158fff766c87d5252ffa2299d53b74e Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 21 Apr 2020 00:47:58 +0000 Subject: [PATCH 124/521] Client Python update by Travis Build 11887 --- README.md | 2 +- docs/V1ConfigMapVolumeSource.md | 1 + docs/V1SecretVolumeSource.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../models/v1_config_map_volume_source.py | 34 +++++++++++++++++-- kubevirt/models/v1_secret_volume_source.py | 34 +++++++++++++++++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 70 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index eba5174d..f2c0c9c4 100644 --- a/README.md +++ b/README.md @@ -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: v0.28.0-164-ge424f09d +- Package version: v0.28.0-173-g0f656230 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1ConfigMapVolumeSource.md b/docs/V1ConfigMapVolumeSource.md index 2ebcb199..8ade61af 100644 --- a/docs/V1ConfigMapVolumeSource.md +++ b/docs/V1ConfigMapVolumeSource.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] **optional** | **bool** | Specify whether the ConfigMap or it's keys must be defined +optional | [optional] +**volume_label** | **str** | The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart). +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1SecretVolumeSource.md b/docs/V1SecretVolumeSource.md index 09540dd5..23cd7195 100644 --- a/docs/V1SecretVolumeSource.md +++ b/docs/V1SecretVolumeSource.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **optional** | **bool** | Specify whether the Secret or it's keys must be defined +optional | [optional] **secret_name** | **str** | Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret +optional | [optional] +**volume_label** | **str** | The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart). +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index d8ad2acb..14a4fa55 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.28.0-164-ge424f09d" + release_note="Auto-generated client v0.28.0-173-g0f656230" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 5960673e..44aef0b2 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.28.0-164-ge424f09d/python' + self.user_agent = 'Swagger-Codegen/v0.28.0-173-g0f656230/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 9a5e8952..432330ce 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.28.0-164-ge424f09d".\ + "SDK Package Version: v0.28.0-173-g0f656230".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_config_map_volume_source.py b/kubevirt/models/v1_config_map_volume_source.py index 489e635a..aadd77a4 100644 --- a/kubevirt/models/v1_config_map_volume_source.py +++ b/kubevirt/models/v1_config_map_volume_source.py @@ -32,26 +32,31 @@ class V1ConfigMapVolumeSource(object): """ swagger_types = { 'name': 'str', - 'optional': 'bool' + 'optional': 'bool', + 'volume_label': 'str' } attribute_map = { 'name': 'name', - 'optional': 'optional' + 'optional': 'optional', + 'volume_label': 'volumeLabel' } - def __init__(self, name=None, optional=None): + def __init__(self, name=None, optional=None, volume_label=None): """ V1ConfigMapVolumeSource - a model defined in Swagger """ self._name = None self._optional = None + self._volume_label = None if name is not None: self.name = name if optional is not None: self.optional = optional + if volume_label is not None: + self.volume_label = volume_label @property def name(self): @@ -99,6 +104,29 @@ def optional(self, optional): self._optional = optional + @property + def volume_label(self): + """ + Gets the volume_label of this V1ConfigMapVolumeSource. + The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart). +optional + + :return: The volume_label of this V1ConfigMapVolumeSource. + :rtype: str + """ + return self._volume_label + + @volume_label.setter + def volume_label(self, volume_label): + """ + Sets the volume_label of this V1ConfigMapVolumeSource. + The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart). +optional + + :param volume_label: The volume_label of this V1ConfigMapVolumeSource. + :type: str + """ + + self._volume_label = volume_label + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_secret_volume_source.py b/kubevirt/models/v1_secret_volume_source.py index 6d1a55b9..99e21f46 100644 --- a/kubevirt/models/v1_secret_volume_source.py +++ b/kubevirt/models/v1_secret_volume_source.py @@ -32,26 +32,31 @@ class V1SecretVolumeSource(object): """ swagger_types = { 'optional': 'bool', - 'secret_name': 'str' + 'secret_name': 'str', + 'volume_label': 'str' } attribute_map = { 'optional': 'optional', - 'secret_name': 'secretName' + 'secret_name': 'secretName', + 'volume_label': 'volumeLabel' } - def __init__(self, optional=None, secret_name=None): + def __init__(self, optional=None, secret_name=None, volume_label=None): """ V1SecretVolumeSource - a model defined in Swagger """ self._optional = None self._secret_name = None + self._volume_label = None if optional is not None: self.optional = optional if secret_name is not None: self.secret_name = secret_name + if volume_label is not None: + self.volume_label = volume_label @property def optional(self): @@ -99,6 +104,29 @@ def secret_name(self, secret_name): self._secret_name = secret_name + @property + def volume_label(self): + """ + Gets the volume_label of this V1SecretVolumeSource. + The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart). +optional + + :return: The volume_label of this V1SecretVolumeSource. + :rtype: str + """ + return self._volume_label + + @volume_label.setter + def volume_label(self, volume_label): + """ + Sets the volume_label of this V1SecretVolumeSource. + The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart). +optional + + :param volume_label: The volume_label of this V1SecretVolumeSource. + :type: str + """ + + self._volume_label = volume_label + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index d7735964..8ec4a6c3 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.28.0-164-ge424f09d" +VERSION = "v0.28.0-173-g0f656230" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 75aa22a8..b3c241e0 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.28.0-164-ge424f09d" +"packageVersion": "v0.28.0-173-g0f656230" } From d378495cd5f9fa1fa858fec1d2df9cb996cee169 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 12 May 2020 06:16:17 +0000 Subject: [PATCH 125/521] Client Python update by Travis Build 12198 --- README.md | 165 +- docs/DefaultApi.md | 1226 +++++-------- docs/IntstrIntOrString.md | 9 + docs/ResourceQuantity.md | 9 + docs/RuntimeRawExtension.md | 9 + docs/V1BIOS.md | 9 + docs/V1Bootloader.md | 4 +- docs/V1CDRomTarget.md | 2 +- docs/V1CPU.md | 8 +- docs/V1CPUFeature.md | 2 +- docs/V1Clock.md | 4 +- docs/V1CloudInitConfigDriveSource.md | 12 +- docs/V1CloudInitNoCloudSource.md | 12 +- docs/V1ConfigMapVolumeSource.md | 4 +- docs/V1ContainerDiskSource.md | 2 +- docs/V1DHCPOptions.md | 8 +- docs/V1DeleteOptions.md | 2 +- docs/V1Devices.md | 8 +- docs/V1Disk.md | 10 +- docs/V1DiskTarget.md | 2 +- docs/V1DomainSpec.md | 18 +- docs/V1EFI.md | 9 + docs/V1EmptyDiskSource.md | 2 +- docs/V1EphemeralVolumeSource.md | 2 +- docs/V1FeatureAPIC.md | 4 +- docs/V1FeatureHyperv.md | 28 +- docs/V1FeatureSpinlocks.md | 4 +- docs/V1FeatureState.md | 2 +- docs/V1FeatureVendorID.md | 2 +- docs/V1Features.md | 8 +- docs/V1FieldsV1.md | 9 + docs/V1Firmware.md | 2 +- docs/V1FloppyTarget.md | 2 +- docs/V1HPETTimer.md | 2 +- docs/V1HostDisk.md | 2 +- docs/V1HypervTimer.md | 2 +- docs/V1Interface.md | 8 +- docs/V1InterfaceBridge.md | 9 + docs/V1InterfaceMasquerade.md | 9 + docs/V1InterfaceSRIOV.md | 9 + docs/V1InterfaceSlirp.md | 9 + docs/V1KVMTimer.md | 2 +- docs/V1LabelSelector.md | 2 +- docs/V1ManagedFieldsEntry.md | 4 +- docs/V1Memory.md | 4 +- docs/V1ObjectMeta.md | 6 +- docs/V1PITTimer.md | 2 +- docs/V1Patch.md | 9 + docs/V1PersistentVolumeClaimSpec.md | 4 +- docs/V1Port.md | 4 +- docs/V1Preconditions.md | 2 +- docs/V1Probe.md | 14 +- docs/V1RTCTimer.md | 2 +- docs/V1ResourceRequirements.md | 4 +- docs/V1RestartOptions.md | 2 +- docs/V1Rng.md | 9 + docs/V1SecretVolumeSource.md | 6 +- docs/V1Time.md | 9 + docs/V1TypedLocalObjectReference.md | 2 +- .../V1VirtualMachineInstanceMigrationState.md | 6 +- .../V1VirtualMachineInstanceReplicaSetSpec.md | 4 +- ...1VirtualMachineInstanceReplicaSetStatus.md | 4 +- docs/V1VirtualMachineInstanceSpec.md | 20 +- docs/V1VirtualMachineInstanceStatus.md | 6 +- docs/V1VirtualMachineSpec.md | 2 +- docs/V1VirtualMachineStateChangeRequest.md | 4 +- docs/V1Volume.md | 22 +- docs/V1WatchEvent.md | 2 +- docs/V1Watchdog.md | 2 +- docs/V1alpha1DataVolumeBlankImage.md | 9 + docs/V1alpha1DataVolumeSourceUpload.md | 9 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 323 +--- kubevirt/__init__.py | 15 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 1600 ++++++++--------- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 15 + kubevirt/models/intstr_int_or_string.py | 99 + kubevirt/models/resource_quantity.py | 99 + kubevirt/models/runtime_raw_extension.py | 99 + kubevirt/models/v1_bios.py | 99 + kubevirt/models/v1_bootloader.py | 8 +- kubevirt/models/v1_cd_rom_target.py | 4 +- kubevirt/models/v1_clock.py | 11 +- .../v1_cloud_init_config_drive_source.py | 24 +- .../models/v1_cloud_init_no_cloud_source.py | 24 +- .../models/v1_config_map_volume_source.py | 8 +- kubevirt/models/v1_container_disk_source.py | 4 +- kubevirt/models/v1_cpu.py | 16 +- kubevirt/models/v1_cpu_feature.py | 4 +- kubevirt/models/v1_delete_options.py | 6 +- kubevirt/models/v1_devices.py | 16 +- kubevirt/models/v1_dhcp_options.py | 16 +- kubevirt/models/v1_disk.py | 20 +- kubevirt/models/v1_disk_target.py | 4 +- kubevirt/models/v1_domain_spec.py | 42 +- kubevirt/models/v1_efi.py | 99 + kubevirt/models/v1_empty_disk_source.py | 6 +- kubevirt/models/v1_ephemeral_volume_source.py | 4 +- kubevirt/models/v1_feature_apic.py | 8 +- kubevirt/models/v1_feature_hyperv.py | 56 +- kubevirt/models/v1_feature_spinlocks.py | 8 +- kubevirt/models/v1_feature_state.py | 4 +- kubevirt/models/v1_feature_vendor_id.py | 4 +- kubevirt/models/v1_features.py | 16 +- kubevirt/models/v1_fields_v1.py | 99 + kubevirt/models/v1_firmware.py | 4 +- kubevirt/models/v1_floppy_target.py | 4 +- kubevirt/models/v1_host_disk.py | 10 +- kubevirt/models/v1_hpet_timer.py | 4 +- kubevirt/models/v1_hyperv_timer.py | 4 +- kubevirt/models/v1_interface.py | 16 +- kubevirt/models/v1_interface_masquerade.py | 99 + kubevirt/models/v1_interface_sriov.py | 99 + kubevirt/models/v1_kvm_timer.py | 4 +- kubevirt/models/v1_label_selector.py | 6 +- kubevirt/models/v1_managed_fields_entry.py | 12 +- kubevirt/models/v1_memory.py | 14 +- kubevirt/models/v1_object_meta.py | 18 +- kubevirt/models/v1_patch.py | 99 + .../models/v1_persistent_volume_claim_spec.py | 12 +- kubevirt/models/v1_pit_timer.py | 4 +- kubevirt/models/v1_port.py | 8 +- kubevirt/models/v1_preconditions.py | 6 +- kubevirt/models/v1_probe.py | 28 +- kubevirt/models/v1_resource_requirements.py | 20 +- kubevirt/models/v1_restart_options.py | 4 +- kubevirt/models/v1_rng.py | 99 + kubevirt/models/v1_rtc_timer.py | 4 +- kubevirt/models/v1_secret_volume_source.py | 12 +- kubevirt/models/v1_time.py | 99 + .../models/v1_typed_local_object_reference.py | 5 +- ...irtual_machine_instance_migration_state.py | 18 +- ...rtual_machine_instance_replica_set_spec.py | 8 +- ...ual_machine_instance_replica_set_status.py | 8 +- .../v1_virtual_machine_instance_spec.py | 48 +- .../v1_virtual_machine_instance_status.py | 20 +- kubevirt/models/v1_virtual_machine_spec.py | 6 +- ...v1_virtual_machine_state_change_request.py | 12 +- kubevirt/models/v1_volume.py | 44 +- kubevirt/models/v1_watch_event.py | 8 +- kubevirt/models/v1_watchdog.py | 4 +- .../v1alpha1_data_volume_blank_image.py | 99 + .../v1alpha1_data_volume_source_upload.py | 99 + setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 162 +- test/test_intstr_int_or_string.py | 44 + test/test_resource_quantity.py | 44 + test/test_runtime_raw_extension.py | 44 + test/test_v1_bios.py | 44 + test/test_v1_efi.py | 44 + test/test_v1_fields_v1.py | 44 + test/test_v1_interface_bridge.py | 44 + test/test_v1_interface_masquerade.py | 44 + test/test_v1_interface_slirp.py | 44 + test/test_v1_interface_sriov.py | 44 + test/test_v1_patch.py | 44 + test/test_v1_rng.py | 44 + test/test_v1_time.py | 44 + test/test_v1alpha1_data_volume_blank_image.py | 44 + ...test_v1alpha1_data_volume_source_upload.py | 44 + 163 files changed, 4094 insertions(+), 2492 deletions(-) create mode 100644 docs/IntstrIntOrString.md create mode 100644 docs/ResourceQuantity.md create mode 100644 docs/RuntimeRawExtension.md create mode 100644 docs/V1BIOS.md create mode 100644 docs/V1EFI.md create mode 100644 docs/V1FieldsV1.md create mode 100644 docs/V1InterfaceBridge.md create mode 100644 docs/V1InterfaceMasquerade.md create mode 100644 docs/V1InterfaceSRIOV.md create mode 100644 docs/V1InterfaceSlirp.md create mode 100644 docs/V1Patch.md create mode 100644 docs/V1Rng.md create mode 100644 docs/V1Time.md create mode 100644 docs/V1alpha1DataVolumeBlankImage.md create mode 100644 docs/V1alpha1DataVolumeSourceUpload.md create mode 100644 kubevirt/models/intstr_int_or_string.py create mode 100644 kubevirt/models/resource_quantity.py create mode 100644 kubevirt/models/runtime_raw_extension.py create mode 100644 kubevirt/models/v1_bios.py create mode 100644 kubevirt/models/v1_efi.py create mode 100644 kubevirt/models/v1_fields_v1.py create mode 100644 kubevirt/models/v1_interface_masquerade.py create mode 100644 kubevirt/models/v1_interface_sriov.py create mode 100644 kubevirt/models/v1_patch.py create mode 100644 kubevirt/models/v1_rng.py create mode 100644 kubevirt/models/v1_time.py create mode 100644 kubevirt/models/v1alpha1_data_volume_blank_image.py create mode 100644 kubevirt/models/v1alpha1_data_volume_source_upload.py create mode 100644 test/test_intstr_int_or_string.py create mode 100644 test/test_resource_quantity.py create mode 100644 test/test_runtime_raw_extension.py create mode 100644 test/test_v1_bios.py create mode 100644 test/test_v1_efi.py create mode 100644 test/test_v1_fields_v1.py create mode 100644 test/test_v1_interface_bridge.py create mode 100644 test/test_v1_interface_masquerade.py create mode 100644 test/test_v1_interface_slirp.py create mode 100644 test/test_v1_interface_sriov.py create mode 100644 test/test_v1_patch.py create mode 100644 test/test_v1_rng.py create mode 100644 test/test_v1_time.py create mode 100644 test/test_v1alpha1_data_volume_blank_image.py create mode 100644 test/test_v1alpha1_data_volume_source_upload.py diff --git a/README.md b/README.md index f2c0c9c4..97b05da4 100644 --- a/README.md +++ b/README.md @@ -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: v0.28.0-173-g0f656230 +- Package version: v0.29.0-60-gc03721c2 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -51,17 +51,12 @@ import time import kubevirt from kubevirt.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' # create an instance of the API class api_instance = kubevirt.DefaultApi() try: - # Health endpoint - api_instance.check_health() + api_response = api_instance.check_health() + pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->check_health: %s\n" % e) @@ -73,86 +68,91 @@ All URIs are relative to *https://localhost* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*DefaultApi* | [**check_health**](docs/DefaultApi.md#check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha3/healthz | Health endpoint -*DefaultApi* | [**console**](docs/DefaultApi.md#console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/console | Open a websocket connection to a serial console on the specified VirtualMachineInstance. -*DefaultApi* | [**create_namespaced_virtual_machine**](docs/DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines | Create a VirtualMachine object. -*DefaultApi* | [**create_namespaced_virtual_machine_instance**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances | Create a VirtualMachineInstance object. -*DefaultApi* | [**create_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations | Create a VirtualMachineInstanceMigration object. -*DefaultApi* | [**create_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets | Create a VirtualMachineInstancePreset object. -*DefaultApi* | [**create_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets | Create a VirtualMachineInstanceReplicaSet object. -*DefaultApi* | [**delete_collection_namespaced_virtual_machine**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines | Delete a collection of VirtualMachine objects. -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances | Delete a collection of VirtualMachineInstance objects. -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations | Delete a collection of VirtualMachineInstanceMigration objects. -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets | Delete a collection of VirtualMachineInstancePreset objects. -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets | Delete a collection of VirtualMachineInstanceReplicaSet objects. -*DefaultApi* | [**delete_namespaced_virtual_machine**](docs/DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name} | Delete a VirtualMachine object. -*DefaultApi* | [**delete_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name} | Delete a VirtualMachineInstance object. -*DefaultApi* | [**delete_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Delete a VirtualMachineInstanceMigration object. -*DefaultApi* | [**delete_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Delete a VirtualMachineInstancePreset object. -*DefaultApi* | [**delete_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Delete a VirtualMachineInstanceReplicaSet object. -*DefaultApi* | [**filesystemlist**](docs/DefaultApi.md#filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/filesystemlist | Get list of active filesystems on guest machine via guest agent +*DefaultApi* | [**check_health**](docs/DefaultApi.md#check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha3/healthz | +*DefaultApi* | [**console**](docs/DefaultApi.md#console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | +*DefaultApi* | [**create_namespaced_virtual_machine**](docs/DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +*DefaultApi* | [**create_namespaced_virtual_machine_instance**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | +*DefaultApi* | [**create_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | +*DefaultApi* | [**create_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | +*DefaultApi* | [**create_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +*DefaultApi* | [**delete_namespaced_virtual_machine**](docs/DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**filesystemlist**](docs/DefaultApi.md#filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | *DefaultApi* | [**func7**](docs/DefaultApi.md#func7) | **GET** /openapi/v2 | -*DefaultApi* | [**get_api_group**](docs/DefaultApi.md#get_api_group) | **GET** /apis/kubevirt.io | Get a KubeVirt API group -*DefaultApi* | [**get_api_group_0**](docs/DefaultApi.md#get_api_group_0) | **GET** /apis/subresources.kubevirt.io | Get a KubeVirt API Group -*DefaultApi* | [**get_api_group_list**](docs/DefaultApi.md#get_api_group_list) | **GET** /apis | Get a KubeVirt API GroupList -*DefaultApi* | [**get_api_resources**](docs/DefaultApi.md#get_api_resources) | **GET** /apis/kubevirt.io/v1alpha3 | Get KubeVirt API Resources -*DefaultApi* | [**get_api_resources_0**](docs/DefaultApi.md#get_api_resources_0) | **GET** /apis/subresources.kubevirt.io/v1alpha3 | Get a KubeVirt API resources -*DefaultApi* | [**guestosinfo**](docs/DefaultApi.md#guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/guestosinfo | Get guest agent os information -*DefaultApi* | [**list_namespaced_virtual_machine**](docs/DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines | Get a list of VirtualMachine objects. -*DefaultApi* | [**list_namespaced_virtual_machine_instance**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances | Get a list of VirtualMachineInstance objects. -*DefaultApi* | [**list_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations | Get a list of VirtualMachineInstanceMigration objects. -*DefaultApi* | [**list_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets | Get a list of VirtualMachineInstancePreset objects. -*DefaultApi* | [**list_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets | Get a list of VirtualMachineInstanceReplicaSet objects. -*DefaultApi* | [**list_virtual_machine_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachines | Get a list of all VirtualMachine objects. -*DefaultApi* | [**list_virtual_machine_instance_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstances | Get a list of all VirtualMachineInstance objects. -*DefaultApi* | [**list_virtual_machine_instance_migration_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancemigrations | Get a list of all VirtualMachineInstanceMigration objects. -*DefaultApi* | [**list_virtual_machine_instance_preset_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancepresets | Get a list of all VirtualMachineInstancePreset objects. -*DefaultApi* | [**list_virtual_machine_instance_replica_set_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancereplicasets | Get a list of all VirtualMachineInstanceReplicaSet objects. -*DefaultApi* | [**migrate**](docs/DefaultApi.md#migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/migrate | Migrate a running VirtualMachine to another node. -*DefaultApi* | [**patch_namespaced_virtual_machine**](docs/DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name} | Patch a VirtualMachine object. -*DefaultApi* | [**patch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name} | Patch a VirtualMachineInstance object. -*DefaultApi* | [**patch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Patch a VirtualMachineInstanceMigration object. -*DefaultApi* | [**patch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Patch a VirtualMachineInstancePreset object. -*DefaultApi* | [**patch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Patch a VirtualMachineInstanceReplicaSet object. -*DefaultApi* | [**pause**](docs/DefaultApi.md#pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/pause | Pause a VirtualMachineInstance object. -*DefaultApi* | [**read_namespaced_virtual_machine**](docs/DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name} | Get a VirtualMachine object. -*DefaultApi* | [**read_namespaced_virtual_machine_instance**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name} | Get a VirtualMachineInstance object. -*DefaultApi* | [**read_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Get a VirtualMachineInstanceMigration object. -*DefaultApi* | [**read_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Get a VirtualMachineInstancePreset object. -*DefaultApi* | [**read_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Get a VirtualMachineInstanceReplicaSet object. -*DefaultApi* | [**rename**](docs/DefaultApi.md#rename) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/rename | Rename a stopped VirtualMachine object. -*DefaultApi* | [**replace_namespaced_virtual_machine**](docs/DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name} | Update a VirtualMachine object. -*DefaultApi* | [**replace_namespaced_virtual_machine_instance**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name} | Update a VirtualMachineInstance object. -*DefaultApi* | [**replace_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Update a VirtualMachineInstanceMigration object. -*DefaultApi* | [**replace_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Update a VirtualMachineInstancePreset object. -*DefaultApi* | [**replace_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Update a VirtualMachineInstanceReplicaSet object. -*DefaultApi* | [**restart**](docs/DefaultApi.md#restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/restart | Restart a VirtualMachine object. -*DefaultApi* | [**start**](docs/DefaultApi.md#start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/start | Start a VirtualMachine object. -*DefaultApi* | [**stop**](docs/DefaultApi.md#stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/stop | Stop a VirtualMachine object. -*DefaultApi* | [**test**](docs/DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/test | Test endpoint verifying apiserver connectivity. -*DefaultApi* | [**unpause**](docs/DefaultApi.md#unpause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/unpause | Unpause a VirtualMachineInstance object. -*DefaultApi* | [**userlist**](docs/DefaultApi.md#userlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/userlist | Get list of active users via guest agent +*DefaultApi* | [**get_api_group**](docs/DefaultApi.md#get_api_group) | **GET** /apis/kubevirt.io/ | +*DefaultApi* | [**get_api_group_list**](docs/DefaultApi.md#get_api_group_list) | **GET** /apis | +*DefaultApi* | [**get_api_resources**](docs/DefaultApi.md#get_api_resources) | **GET** /apis/kubevirt.io/v1alpha3/ | +*DefaultApi* | [**get_api_sub_resources**](docs/DefaultApi.md#get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1alpha3/ | +*DefaultApi* | [**get_root_paths**](docs/DefaultApi.md#get_root_paths) | **GET** / | +*DefaultApi* | [**get_sub_api_group**](docs/DefaultApi.md#get_sub_api_group) | **GET** /apis/subresources.kubevirt.io | +*DefaultApi* | [**guestosinfo**](docs/DefaultApi.md#guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | +*DefaultApi* | [**list_namespaced_virtual_machine**](docs/DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +*DefaultApi* | [**list_namespaced_virtual_machine_instance**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | +*DefaultApi* | [**list_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | +*DefaultApi* | [**list_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | +*DefaultApi* | [**list_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +*DefaultApi* | [**list_virtual_machine_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachines | +*DefaultApi* | [**list_virtual_machine_instance_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstances | +*DefaultApi* | [**list_virtual_machine_instance_migration_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancemigrations | +*DefaultApi* | [**list_virtual_machine_instance_preset_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancepresets | +*DefaultApi* | [**list_virtual_machine_instance_replica_set_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancereplicasets | +*DefaultApi* | [**migrate**](docs/DefaultApi.md#migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | +*DefaultApi* | [**patch_namespaced_virtual_machine**](docs/DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**pause**](docs/DefaultApi.md#pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | +*DefaultApi* | [**read_namespaced_virtual_machine**](docs/DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_namespaced_virtual_machine_instance**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**rename**](docs/DefaultApi.md#rename) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/rename | +*DefaultApi* | [**replace_namespaced_virtual_machine**](docs/DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_namespaced_virtual_machine_instance**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**restart**](docs/DefaultApi.md#restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | +*DefaultApi* | [**start**](docs/DefaultApi.md#start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | +*DefaultApi* | [**stop**](docs/DefaultApi.md#stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | +*DefaultApi* | [**test**](docs/DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test | +*DefaultApi* | [**unpause**](docs/DefaultApi.md#unpause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause | +*DefaultApi* | [**userlist**](docs/DefaultApi.md#userlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | *DefaultApi* | [**version**](docs/DefaultApi.md#version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | -*DefaultApi* | [**vnc**](docs/DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/vnc | Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. -*DefaultApi* | [**watch_namespaced_virtual_machine**](docs/DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachines | Watch a VirtualMachine object. -*DefaultApi* | [**watch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachineinstances | Watch a VirtualMachineInstance object. -*DefaultApi* | [**watch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachineinstancemigrations | Watch a VirtualMachineInstanceMigration object. -*DefaultApi* | [**watch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachineinstancepresets | Watch a VirtualMachineInstancePreset object. -*DefaultApi* | [**watch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachineinstancereplicasets | Watch a VirtualMachineInstanceReplicaSet object. -*DefaultApi* | [**watch_virtual_machine_instance_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstances | Watch a VirtualMachineInstanceList object. -*DefaultApi* | [**watch_virtual_machine_instance_migration_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancemigrations | Watch a VirtualMachineInstanceMigrationList object. -*DefaultApi* | [**watch_virtual_machine_instance_preset_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancepresets | Watch a VirtualMachineInstancePresetList object. -*DefaultApi* | [**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancereplicasets | Watch a VirtualMachineInstanceReplicaSetList object. -*DefaultApi* | [**watch_virtual_machine_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachines | Watch a VirtualMachineList object. +*DefaultApi* | [**vnc**](docs/DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | +*DefaultApi* | [**watch_namespaced_virtual_machine**](docs/DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +*DefaultApi* | [**watch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | +*DefaultApi* | [**watch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | +*DefaultApi* | [**watch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | +*DefaultApi* | [**watch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +*DefaultApi* | [**watch_virtual_machine_instance_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstances | +*DefaultApi* | [**watch_virtual_machine_instance_migration_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancemigrations | +*DefaultApi* | [**watch_virtual_machine_instance_preset_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancepresets | +*DefaultApi* | [**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancereplicasets | +*DefaultApi* | [**watch_virtual_machine_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachines | ## Documentation For Models + - [IntstrIntOrString](docs/IntstrIntOrString.md) + - [ResourceQuantity](docs/ResourceQuantity.md) + - [RuntimeRawExtension](docs/RuntimeRawExtension.md) - [V1APIGroup](docs/V1APIGroup.md) - [V1APIGroupList](docs/V1APIGroupList.md) - [V1APIResource](docs/V1APIResource.md) - [V1APIResourceList](docs/V1APIResourceList.md) - [V1Affinity](docs/V1Affinity.md) + - [V1BIOS](docs/V1BIOS.md) - [V1Bootloader](docs/V1Bootloader.md) - [V1CDRomTarget](docs/V1CDRomTarget.md) - [V1CPU](docs/V1CPU.md) @@ -172,6 +172,7 @@ Class | Method | HTTP request | Description - [V1Disk](docs/V1Disk.md) - [V1DiskTarget](docs/V1DiskTarget.md) - [V1DomainSpec](docs/V1DomainSpec.md) + - [V1EFI](docs/V1EFI.md) - [V1EmptyDiskSource](docs/V1EmptyDiskSource.md) - [V1EphemeralVolumeSource](docs/V1EphemeralVolumeSource.md) - [V1FeatureAPIC](docs/V1FeatureAPIC.md) @@ -180,6 +181,7 @@ Class | Method | HTTP request | Description - [V1FeatureState](docs/V1FeatureState.md) - [V1FeatureVendorID](docs/V1FeatureVendorID.md) - [V1Features](docs/V1Features.md) + - [V1FieldsV1](docs/V1FieldsV1.md) - [V1Firmware](docs/V1Firmware.md) - [V1FloppyTarget](docs/V1FloppyTarget.md) - [V1GPU](docs/V1GPU.md) @@ -193,6 +195,10 @@ Class | Method | HTTP request | Description - [V1I6300ESBWatchdog](docs/V1I6300ESBWatchdog.md) - [V1Input](docs/V1Input.md) - [V1Interface](docs/V1Interface.md) + - [V1InterfaceBridge](docs/V1InterfaceBridge.md) + - [V1InterfaceMasquerade](docs/V1InterfaceMasquerade.md) + - [V1InterfaceSRIOV](docs/V1InterfaceSRIOV.md) + - [V1InterfaceSlirp](docs/V1InterfaceSlirp.md) - [V1KVMTimer](docs/V1KVMTimer.md) - [V1LabelSelector](docs/V1LabelSelector.md) - [V1LabelSelectorRequirement](docs/V1LabelSelectorRequirement.md) @@ -211,6 +217,7 @@ Class | Method | HTTP request | Description - [V1ObjectMeta](docs/V1ObjectMeta.md) - [V1OwnerReference](docs/V1OwnerReference.md) - [V1PITTimer](docs/V1PITTimer.md) + - [V1Patch](docs/V1Patch.md) - [V1PersistentVolumeClaimSpec](docs/V1PersistentVolumeClaimSpec.md) - [V1PersistentVolumeClaimVolumeSource](docs/V1PersistentVolumeClaimVolumeSource.md) - [V1PodAffinity](docs/V1PodAffinity.md) @@ -226,6 +233,7 @@ Class | Method | HTTP request | Description - [V1RTCTimer](docs/V1RTCTimer.md) - [V1ResourceRequirements](docs/V1ResourceRequirements.md) - [V1RestartOptions](docs/V1RestartOptions.md) + - [V1Rng](docs/V1Rng.md) - [V1RootPaths](docs/V1RootPaths.md) - [V1SecretVolumeSource](docs/V1SecretVolumeSource.md) - [V1ServerAddressByClientCIDR](docs/V1ServerAddressByClientCIDR.md) @@ -234,6 +242,7 @@ Class | Method | HTTP request | Description - [V1StatusCause](docs/V1StatusCause.md) - [V1StatusDetails](docs/V1StatusDetails.md) - [V1TCPSocketAction](docs/V1TCPSocketAction.md) + - [V1Time](docs/V1Time.md) - [V1Timer](docs/V1Timer.md) - [V1Toleration](docs/V1Toleration.md) - [V1TypedLocalObjectReference](docs/V1TypedLocalObjectReference.md) @@ -276,11 +285,13 @@ Class | Method | HTTP request | Description - [V1Watchdog](docs/V1Watchdog.md) - [V1WeightedPodAffinityTerm](docs/V1WeightedPodAffinityTerm.md) - [V1alpha1DataVolume](docs/V1alpha1DataVolume.md) + - [V1alpha1DataVolumeBlankImage](docs/V1alpha1DataVolumeBlankImage.md) - [V1alpha1DataVolumeSource](docs/V1alpha1DataVolumeSource.md) - [V1alpha1DataVolumeSourceHTTP](docs/V1alpha1DataVolumeSourceHTTP.md) - [V1alpha1DataVolumeSourcePVC](docs/V1alpha1DataVolumeSourcePVC.md) - [V1alpha1DataVolumeSourceRegistry](docs/V1alpha1DataVolumeSourceRegistry.md) - [V1alpha1DataVolumeSourceS3](docs/V1alpha1DataVolumeSourceS3.md) + - [V1alpha1DataVolumeSourceUpload](docs/V1alpha1DataVolumeSourceUpload.md) - [V1alpha1DataVolumeSpec](docs/V1alpha1DataVolumeSpec.md) - [V1alpha1DataVolumeStatus](docs/V1alpha1DataVolumeStatus.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index e04dddb8..9c04b827 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -4,81 +4,84 @@ All URIs are relative to *https://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**check_health**](DefaultApi.md#check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha3/healthz | Health endpoint -[**console**](DefaultApi.md#console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/console | Open a websocket connection to a serial console on the specified VirtualMachineInstance. -[**create_namespaced_virtual_machine**](DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines | Create a VirtualMachine object. -[**create_namespaced_virtual_machine_instance**](DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances | Create a VirtualMachineInstance object. -[**create_namespaced_virtual_machine_instance_migration**](DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations | Create a VirtualMachineInstanceMigration object. -[**create_namespaced_virtual_machine_instance_preset**](DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets | Create a VirtualMachineInstancePreset object. -[**create_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets | Create a VirtualMachineInstanceReplicaSet object. -[**delete_collection_namespaced_virtual_machine**](DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines | Delete a collection of VirtualMachine objects. -[**delete_collection_namespaced_virtual_machine_instance**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances | Delete a collection of VirtualMachineInstance objects. -[**delete_collection_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations | Delete a collection of VirtualMachineInstanceMigration objects. -[**delete_collection_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets | Delete a collection of VirtualMachineInstancePreset objects. -[**delete_collection_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets | Delete a collection of VirtualMachineInstanceReplicaSet objects. -[**delete_namespaced_virtual_machine**](DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name} | Delete a VirtualMachine object. -[**delete_namespaced_virtual_machine_instance**](DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name} | Delete a VirtualMachineInstance object. -[**delete_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Delete a VirtualMachineInstanceMigration object. -[**delete_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Delete a VirtualMachineInstancePreset object. -[**delete_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Delete a VirtualMachineInstanceReplicaSet object. -[**filesystemlist**](DefaultApi.md#filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/filesystemlist | Get list of active filesystems on guest machine via guest agent +[**check_health**](DefaultApi.md#check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha3/healthz | +[**console**](DefaultApi.md#console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | +[**create_namespaced_virtual_machine**](DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +[**create_namespaced_virtual_machine_instance**](DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | +[**create_namespaced_virtual_machine_instance_migration**](DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | +[**create_namespaced_virtual_machine_instance_preset**](DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | +[**create_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +[**delete_collection_namespaced_virtual_machine**](DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +[**delete_collection_namespaced_virtual_machine_instance**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | +[**delete_collection_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | +[**delete_collection_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | +[**delete_collection_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +[**delete_namespaced_virtual_machine**](DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_namespaced_virtual_machine_instance**](DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +[**filesystemlist**](DefaultApi.md#filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | [**func7**](DefaultApi.md#func7) | **GET** /openapi/v2 | -[**get_api_group**](DefaultApi.md#get_api_group) | **GET** /apis/kubevirt.io | Get a KubeVirt API group -[**get_api_group_0**](DefaultApi.md#get_api_group_0) | **GET** /apis/subresources.kubevirt.io | Get a KubeVirt API Group -[**get_api_group_list**](DefaultApi.md#get_api_group_list) | **GET** /apis | Get a KubeVirt API GroupList -[**get_api_resources**](DefaultApi.md#get_api_resources) | **GET** /apis/kubevirt.io/v1alpha3 | Get KubeVirt API Resources -[**get_api_resources_0**](DefaultApi.md#get_api_resources_0) | **GET** /apis/subresources.kubevirt.io/v1alpha3 | Get a KubeVirt API resources -[**guestosinfo**](DefaultApi.md#guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/guestosinfo | Get guest agent os information -[**list_namespaced_virtual_machine**](DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines | Get a list of VirtualMachine objects. -[**list_namespaced_virtual_machine_instance**](DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances | Get a list of VirtualMachineInstance objects. -[**list_namespaced_virtual_machine_instance_migration**](DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations | Get a list of VirtualMachineInstanceMigration objects. -[**list_namespaced_virtual_machine_instance_preset**](DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets | Get a list of VirtualMachineInstancePreset objects. -[**list_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets | Get a list of VirtualMachineInstanceReplicaSet objects. -[**list_virtual_machine_for_all_namespaces**](DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachines | Get a list of all VirtualMachine objects. -[**list_virtual_machine_instance_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstances | Get a list of all VirtualMachineInstance objects. -[**list_virtual_machine_instance_migration_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancemigrations | Get a list of all VirtualMachineInstanceMigration objects. -[**list_virtual_machine_instance_preset_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancepresets | Get a list of all VirtualMachineInstancePreset objects. -[**list_virtual_machine_instance_replica_set_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancereplicasets | Get a list of all VirtualMachineInstanceReplicaSet objects. -[**migrate**](DefaultApi.md#migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/migrate | Migrate a running VirtualMachine to another node. -[**patch_namespaced_virtual_machine**](DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name} | Patch a VirtualMachine object. -[**patch_namespaced_virtual_machine_instance**](DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name} | Patch a VirtualMachineInstance object. -[**patch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Patch a VirtualMachineInstanceMigration object. -[**patch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Patch a VirtualMachineInstancePreset object. -[**patch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Patch a VirtualMachineInstanceReplicaSet object. -[**pause**](DefaultApi.md#pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/pause | Pause a VirtualMachineInstance object. -[**read_namespaced_virtual_machine**](DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name} | Get a VirtualMachine object. -[**read_namespaced_virtual_machine_instance**](DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name} | Get a VirtualMachineInstance object. -[**read_namespaced_virtual_machine_instance_migration**](DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Get a VirtualMachineInstanceMigration object. -[**read_namespaced_virtual_machine_instance_preset**](DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Get a VirtualMachineInstancePreset object. -[**read_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Get a VirtualMachineInstanceReplicaSet object. -[**rename**](DefaultApi.md#rename) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/rename | Rename a stopped VirtualMachine object. -[**replace_namespaced_virtual_machine**](DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name} | Update a VirtualMachine object. -[**replace_namespaced_virtual_machine_instance**](DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name} | Update a VirtualMachineInstance object. -[**replace_namespaced_virtual_machine_instance_migration**](DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | Update a VirtualMachineInstanceMigration object. -[**replace_namespaced_virtual_machine_instance_preset**](DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name} | Update a VirtualMachineInstancePreset object. -[**replace_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | Update a VirtualMachineInstanceReplicaSet object. -[**restart**](DefaultApi.md#restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/restart | Restart a VirtualMachine object. -[**start**](DefaultApi.md#start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/start | Start a VirtualMachine object. -[**stop**](DefaultApi.md#stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/stop | Stop a VirtualMachine object. -[**test**](DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/test | Test endpoint verifying apiserver connectivity. -[**unpause**](DefaultApi.md#unpause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/unpause | Unpause a VirtualMachineInstance object. -[**userlist**](DefaultApi.md#userlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/userlist | Get list of active users via guest agent +[**get_api_group**](DefaultApi.md#get_api_group) | **GET** /apis/kubevirt.io/ | +[**get_api_group_list**](DefaultApi.md#get_api_group_list) | **GET** /apis | +[**get_api_resources**](DefaultApi.md#get_api_resources) | **GET** /apis/kubevirt.io/v1alpha3/ | +[**get_api_sub_resources**](DefaultApi.md#get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1alpha3/ | +[**get_root_paths**](DefaultApi.md#get_root_paths) | **GET** / | +[**get_sub_api_group**](DefaultApi.md#get_sub_api_group) | **GET** /apis/subresources.kubevirt.io | +[**guestosinfo**](DefaultApi.md#guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | +[**list_namespaced_virtual_machine**](DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +[**list_namespaced_virtual_machine_instance**](DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | +[**list_namespaced_virtual_machine_instance_migration**](DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | +[**list_namespaced_virtual_machine_instance_preset**](DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | +[**list_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +[**list_virtual_machine_for_all_namespaces**](DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachines | +[**list_virtual_machine_instance_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstances | +[**list_virtual_machine_instance_migration_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancemigrations | +[**list_virtual_machine_instance_preset_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancepresets | +[**list_virtual_machine_instance_replica_set_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancereplicasets | +[**migrate**](DefaultApi.md#migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | +[**patch_namespaced_virtual_machine**](DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_namespaced_virtual_machine_instance**](DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +[**pause**](DefaultApi.md#pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | +[**read_namespaced_virtual_machine**](DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +[**read_namespaced_virtual_machine_instance**](DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | +[**read_namespaced_virtual_machine_instance_migration**](DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | +[**read_namespaced_virtual_machine_instance_preset**](DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | +[**read_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +[**rename**](DefaultApi.md#rename) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/rename | +[**replace_namespaced_virtual_machine**](DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_namespaced_virtual_machine_instance**](DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_namespaced_virtual_machine_instance_migration**](DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_namespaced_virtual_machine_instance_preset**](DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +[**restart**](DefaultApi.md#restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | +[**start**](DefaultApi.md#start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | +[**stop**](DefaultApi.md#stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | +[**test**](DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test | +[**unpause**](DefaultApi.md#unpause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause | +[**userlist**](DefaultApi.md#userlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | [**version**](DefaultApi.md#version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | -[**vnc**](DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/vnc | Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. -[**watch_namespaced_virtual_machine**](DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachines | Watch a VirtualMachine object. -[**watch_namespaced_virtual_machine_instance**](DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachineinstances | Watch a VirtualMachineInstance object. -[**watch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachineinstancemigrations | Watch a VirtualMachineInstanceMigration object. -[**watch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachineinstancepresets | Watch a VirtualMachineInstancePreset object. -[**watch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachineinstancereplicasets | Watch a VirtualMachineInstanceReplicaSet object. -[**watch_virtual_machine_instance_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstances | Watch a VirtualMachineInstanceList object. -[**watch_virtual_machine_instance_migration_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancemigrations | Watch a VirtualMachineInstanceMigrationList object. -[**watch_virtual_machine_instance_preset_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancepresets | Watch a VirtualMachineInstancePresetList object. -[**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancereplicasets | Watch a VirtualMachineInstanceReplicaSetList object. -[**watch_virtual_machine_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachines | Watch a VirtualMachineList object. +[**vnc**](DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | +[**watch_namespaced_virtual_machine**](DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +[**watch_namespaced_virtual_machine_instance**](DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | +[**watch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | +[**watch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | +[**watch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +[**watch_virtual_machine_instance_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstances | +[**watch_virtual_machine_instance_migration_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancemigrations | +[**watch_virtual_machine_instance_preset_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancepresets | +[**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancereplicasets | +[**watch_virtual_machine_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachines | # **check_health** -> check_health() +> str check_health() + + Health endpoint @@ -90,17 +93,12 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() try: - # Health endpoint - api_instance.check_health() + api_response = api_instance.check_health() + pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->check_health: %s\n" % e) ``` @@ -110,11 +108,11 @@ This endpoint does not need any parameter. ### Return type -void (empty response body) +**str** ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -124,7 +122,9 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **console** -> console(namespace, name) +> console(name, namespace) + + Open a websocket connection to a serial console on the specified VirtualMachineInstance. @@ -136,19 +136,13 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - # Open a websocket connection to a serial console on the specified VirtualMachineInstance. - api_instance.console(namespace, name) + api_instance.console(name, namespace) except ApiException as e: print("Exception when calling DefaultApi->console: %s\n" % e) ``` @@ -157,8 +151,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type @@ -166,7 +160,7 @@ void (empty response body) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -178,6 +172,8 @@ void (empty response body) # **create_namespaced_virtual_machine** > V1VirtualMachine create_namespaced_virtual_machine(body, namespace) + + Create a VirtualMachine object. ### Example @@ -188,18 +184,12 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() body = kubevirt.V1VirtualMachine() # V1VirtualMachine | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - # Create a VirtualMachine object. api_response = api_instance.create_namespaced_virtual_machine(body, namespace) pprint(api_response) except ApiException as e: @@ -219,7 +209,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -231,6 +221,8 @@ Name | Type | Description | Notes # **create_namespaced_virtual_machine_instance** > V1VirtualMachineInstance create_namespaced_virtual_machine_instance(body, namespace) + + Create a VirtualMachineInstance object. ### Example @@ -241,18 +233,12 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() body = kubevirt.V1VirtualMachineInstance() # V1VirtualMachineInstance | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - # Create a VirtualMachineInstance object. api_response = api_instance.create_namespaced_virtual_machine_instance(body, namespace) pprint(api_response) except ApiException as e: @@ -272,7 +258,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -284,6 +270,8 @@ Name | Type | Description | Notes # **create_namespaced_virtual_machine_instance_migration** > V1VirtualMachineInstanceMigration create_namespaced_virtual_machine_instance_migration(body, namespace) + + Create a VirtualMachineInstanceMigration object. ### Example @@ -294,18 +282,12 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() body = kubevirt.V1VirtualMachineInstanceMigration() # V1VirtualMachineInstanceMigration | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - # Create a VirtualMachineInstanceMigration object. api_response = api_instance.create_namespaced_virtual_machine_instance_migration(body, namespace) pprint(api_response) except ApiException as e: @@ -325,7 +307,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -337,6 +319,8 @@ Name | Type | Description | Notes # **create_namespaced_virtual_machine_instance_preset** > V1VirtualMachineInstancePreset create_namespaced_virtual_machine_instance_preset(body, namespace) + + Create a VirtualMachineInstancePreset object. ### Example @@ -347,18 +331,12 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() body = kubevirt.V1VirtualMachineInstancePreset() # V1VirtualMachineInstancePreset | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - # Create a VirtualMachineInstancePreset object. api_response = api_instance.create_namespaced_virtual_machine_instance_preset(body, namespace) pprint(api_response) except ApiException as e: @@ -378,7 +356,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -390,6 +368,8 @@ Name | Type | Description | Notes # **create_namespaced_virtual_machine_instance_replica_set** > V1VirtualMachineInstanceReplicaSet create_namespaced_virtual_machine_instance_replica_set(body, namespace) + + Create a VirtualMachineInstanceReplicaSet object. ### Example @@ -400,18 +380,12 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() body = kubevirt.V1VirtualMachineInstanceReplicaSet() # V1VirtualMachineInstanceReplicaSet | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - # Create a VirtualMachineInstanceReplicaSet object. api_response = api_instance.create_namespaced_virtual_machine_instance_replica_set(body, namespace) pprint(api_response) except ApiException as e: @@ -431,7 +405,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -443,6 +417,8 @@ Name | Type | Description | Notes # **delete_collection_namespaced_virtual_machine** > V1Status delete_collection_namespaced_virtual_machine(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + Delete a collection of VirtualMachine objects. ### Example @@ -453,11 +429,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -470,7 +441,6 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Delete a collection of VirtualMachine objects. api_response = api_instance.delete_collection_namespaced_virtual_machine(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: @@ -496,7 +466,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -508,6 +478,8 @@ Name | Type | Description | Notes # **delete_collection_namespaced_virtual_machine_instance** > V1Status delete_collection_namespaced_virtual_machine_instance(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + Delete a collection of VirtualMachineInstance objects. ### Example @@ -518,11 +490,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -535,7 +502,6 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Delete a collection of VirtualMachineInstance objects. api_response = api_instance.delete_collection_namespaced_virtual_machine_instance(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: @@ -561,7 +527,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -573,6 +539,8 @@ Name | Type | Description | Notes # **delete_collection_namespaced_virtual_machine_instance_migration** > V1Status delete_collection_namespaced_virtual_machine_instance_migration(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + Delete a collection of VirtualMachineInstanceMigration objects. ### Example @@ -583,11 +551,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -600,7 +563,6 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Delete a collection of VirtualMachineInstanceMigration objects. api_response = api_instance.delete_collection_namespaced_virtual_machine_instance_migration(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: @@ -626,7 +588,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -638,6 +600,8 @@ Name | Type | Description | Notes # **delete_collection_namespaced_virtual_machine_instance_preset** > V1Status delete_collection_namespaced_virtual_machine_instance_preset(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + Delete a collection of VirtualMachineInstancePreset objects. ### Example @@ -648,11 +612,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -665,7 +624,6 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Delete a collection of VirtualMachineInstancePreset objects. api_response = api_instance.delete_collection_namespaced_virtual_machine_instance_preset(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: @@ -691,7 +649,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -703,6 +661,8 @@ Name | Type | Description | Notes # **delete_collection_namespaced_virtual_machine_instance_replica_set** > V1Status delete_collection_namespaced_virtual_machine_instance_replica_set(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + Delete a collection of VirtualMachineInstanceReplicaSet objects. ### Example @@ -713,11 +673,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -730,7 +685,6 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Delete a collection of VirtualMachineInstanceReplicaSet objects. api_response = api_instance.delete_collection_namespaced_virtual_machine_instance_replica_set(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: @@ -756,7 +710,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -766,7 +720,9 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_virtual_machine** -> V1Status delete_namespaced_virtual_machine(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_virtual_machine(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + + Delete a VirtualMachine object. @@ -778,23 +734,17 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1DeleteOptions() # V1DeleteOptions | -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1DeleteOptions() # V1DeleteOptions | grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) try: - # Delete a VirtualMachine object. - api_response = api_instance.delete_namespaced_virtual_machine(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_namespaced_virtual_machine(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->delete_namespaced_virtual_machine: %s\n" % e) @@ -804,9 +754,9 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] @@ -817,7 +767,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -827,7 +777,9 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_virtual_machine_instance** -> V1Status delete_namespaced_virtual_machine_instance(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_virtual_machine_instance(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + + Delete a VirtualMachineInstance object. @@ -839,23 +791,17 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1DeleteOptions() # V1DeleteOptions | -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1DeleteOptions() # V1DeleteOptions | grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) try: - # Delete a VirtualMachineInstance object. - api_response = api_instance.delete_namespaced_virtual_machine_instance(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_namespaced_virtual_machine_instance(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_instance: %s\n" % e) @@ -865,9 +811,9 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] @@ -878,7 +824,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -888,7 +834,9 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_virtual_machine_instance_migration** -> V1Status delete_namespaced_virtual_machine_instance_migration(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_virtual_machine_instance_migration(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + + Delete a VirtualMachineInstanceMigration object. @@ -900,23 +848,17 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1DeleteOptions() # V1DeleteOptions | -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1DeleteOptions() # V1DeleteOptions | grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) try: - # Delete a VirtualMachineInstanceMigration object. - api_response = api_instance.delete_namespaced_virtual_machine_instance_migration(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_namespaced_virtual_machine_instance_migration(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_instance_migration: %s\n" % e) @@ -926,9 +868,9 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] @@ -939,7 +881,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -949,7 +891,9 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_virtual_machine_instance_preset** -> V1Status delete_namespaced_virtual_machine_instance_preset(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_virtual_machine_instance_preset(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + + Delete a VirtualMachineInstancePreset object. @@ -961,23 +905,17 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1DeleteOptions() # V1DeleteOptions | -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1DeleteOptions() # V1DeleteOptions | grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) try: - # Delete a VirtualMachineInstancePreset object. - api_response = api_instance.delete_namespaced_virtual_machine_instance_preset(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_namespaced_virtual_machine_instance_preset(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_instance_preset: %s\n" % e) @@ -987,9 +925,9 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] @@ -1000,7 +938,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -1010,7 +948,9 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_virtual_machine_instance_replica_set** -> V1Status delete_namespaced_virtual_machine_instance_replica_set(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_virtual_machine_instance_replica_set(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + + Delete a VirtualMachineInstanceReplicaSet object. @@ -1022,23 +962,17 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1DeleteOptions() # V1DeleteOptions | -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1DeleteOptions() # V1DeleteOptions | grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) try: - # Delete a VirtualMachineInstanceReplicaSet object. - api_response = api_instance.delete_namespaced_virtual_machine_instance_replica_set(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_namespaced_virtual_machine_instance_replica_set(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_instance_replica_set: %s\n" % e) @@ -1048,9 +982,9 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] @@ -1061,7 +995,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -1073,6 +1007,8 @@ Name | Type | Description | Notes # **filesystemlist** > V1VirtualMachineInstanceFileSystemList filesystemlist() + + Get list of active filesystems on guest machine via guest agent ### Example @@ -1083,16 +1019,10 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() try: - # Get list of active filesystems on guest machine via guest agent api_response = api_instance.filesystemlist() pprint(api_response) except ApiException as e: @@ -1108,7 +1038,7 @@ This endpoint does not need any parameter. ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -1130,11 +1060,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() @@ -1153,7 +1078,7 @@ void (empty response body) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -1165,6 +1090,8 @@ void (empty response body) # **get_api_group** > V1APIGroup get_api_group() + + Get a KubeVirt API group ### Example @@ -1175,16 +1102,10 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() try: - # Get a KubeVirt API group api_response = api_instance.get_api_group() pprint(api_response) except ApiException as e: @@ -1200,7 +1121,7 @@ This endpoint does not need any parameter. ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -1209,10 +1130,12 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_api_group_0** -> V1APIGroup get_api_group_0() +# **get_api_group_list** +> V1APIGroupList get_api_group_list() -Get a KubeVirt API Group + + +Get a KubeVirt API GroupList ### Example ```python @@ -1222,20 +1145,14 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() try: - # Get a KubeVirt API Group - api_response = api_instance.get_api_group_0() + api_response = api_instance.get_api_group_list() pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->get_api_group_0: %s\n" % e) + print("Exception when calling DefaultApi->get_api_group_list: %s\n" % e) ``` ### Parameters @@ -1243,11 +1160,11 @@ This endpoint does not need any parameter. ### Return type -[**V1APIGroup**](V1APIGroup.md) +[**V1APIGroupList**](V1APIGroupList.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -1256,10 +1173,12 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_api_group_list** -> V1APIGroupList get_api_group_list() +# **get_api_resources** +> V1APIResourceList get_api_resources() -Get a KubeVirt API GroupList + + +Get KubeVirt API Resources ### Example ```python @@ -1269,20 +1188,14 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() try: - # Get a KubeVirt API GroupList - api_response = api_instance.get_api_group_list() + api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->get_api_group_list: %s\n" % e) + print("Exception when calling DefaultApi->get_api_resources: %s\n" % e) ``` ### Parameters @@ -1290,11 +1203,11 @@ This endpoint does not need any parameter. ### Return type -[**V1APIGroupList**](V1APIGroupList.md) +[**V1APIResourceList**](V1APIResourceList.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -1303,10 +1216,12 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_api_resources** -> V1APIResourceList get_api_resources() +# **get_api_sub_resources** +> V1APIResourceList get_api_sub_resources() -Get KubeVirt API Resources + + +Get a KubeVirt API resources ### Example ```python @@ -1316,20 +1231,14 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() try: - # Get KubeVirt API Resources - api_response = api_instance.get_api_resources() + api_response = api_instance.get_api_sub_resources() pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->get_api_resources: %s\n" % e) + print("Exception when calling DefaultApi->get_api_sub_resources: %s\n" % e) ``` ### Parameters @@ -1341,7 +1250,7 @@ This endpoint does not need any parameter. ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -1350,10 +1259,12 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_api_resources_0** -> V1APIResourceList get_api_resources_0() +# **get_root_paths** +> V1RootPaths get_root_paths() -Get a KubeVirt API resources + + +Get KubeVirt API root paths ### Example ```python @@ -1363,20 +1274,57 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.get_root_paths() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->get_root_paths: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1RootPaths**](V1RootPaths.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_sub_api_group** +> V1APIGroup get_sub_api_group() + + + +Get a KubeVirt API Group + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() try: - # Get a KubeVirt API resources - api_response = api_instance.get_api_resources_0() + api_response = api_instance.get_sub_api_group() pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->get_api_resources_0: %s\n" % e) + print("Exception when calling DefaultApi->get_sub_api_group: %s\n" % e) ``` ### Parameters @@ -1384,11 +1332,11 @@ This endpoint does not need any parameter. ### Return type -[**V1APIResourceList**](V1APIResourceList.md) +[**V1APIGroup**](V1APIGroup.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -1398,7 +1346,9 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **guestosinfo** -> V1VirtualMachineInstanceGuestAgentInfo guestosinfo(namespace, name) +> V1VirtualMachineInstanceGuestAgentInfo guestosinfo(name, namespace) + + Get guest agent os information @@ -1410,19 +1360,13 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - # Get guest agent os information - api_response = api_instance.guestosinfo(namespace, name) + api_response = api_instance.guestosinfo(name, namespace) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->guestosinfo: %s\n" % e) @@ -1432,8 +1376,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type @@ -1441,7 +1385,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -1453,6 +1397,8 @@ Name | Type | Description | Notes # **list_namespaced_virtual_machine** > V1VirtualMachineList list_namespaced_virtual_machine(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + Get a list of VirtualMachine objects. ### Example @@ -1463,11 +1409,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects @@ -1481,7 +1422,6 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Get a list of VirtualMachine objects. api_response = api_instance.list_namespaced_virtual_machine(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: @@ -1508,7 +1448,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -1520,6 +1460,8 @@ Name | Type | Description | Notes # **list_namespaced_virtual_machine_instance** > V1VirtualMachineInstanceList list_namespaced_virtual_machine_instance(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + Get a list of VirtualMachineInstance objects. ### Example @@ -1530,11 +1472,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects @@ -1548,7 +1485,6 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Get a list of VirtualMachineInstance objects. api_response = api_instance.list_namespaced_virtual_machine_instance(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: @@ -1575,7 +1511,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -1587,6 +1523,8 @@ Name | Type | Description | Notes # **list_namespaced_virtual_machine_instance_migration** > V1VirtualMachineInstanceMigrationList list_namespaced_virtual_machine_instance_migration(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + Get a list of VirtualMachineInstanceMigration objects. ### Example @@ -1597,11 +1535,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects @@ -1615,7 +1548,6 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Get a list of VirtualMachineInstanceMigration objects. api_response = api_instance.list_namespaced_virtual_machine_instance_migration(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: @@ -1642,7 +1574,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -1654,6 +1586,8 @@ Name | Type | Description | Notes # **list_namespaced_virtual_machine_instance_preset** > V1VirtualMachineInstancePresetList list_namespaced_virtual_machine_instance_preset(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + Get a list of VirtualMachineInstancePreset objects. ### Example @@ -1664,11 +1598,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects @@ -1682,7 +1611,6 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Get a list of VirtualMachineInstancePreset objects. api_response = api_instance.list_namespaced_virtual_machine_instance_preset(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: @@ -1709,7 +1637,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -1721,6 +1649,8 @@ Name | Type | Description | Notes # **list_namespaced_virtual_machine_instance_replica_set** > V1VirtualMachineInstanceReplicaSetList list_namespaced_virtual_machine_instance_replica_set(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + Get a list of VirtualMachineInstanceReplicaSet objects. ### Example @@ -1731,11 +1661,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects @@ -1749,7 +1674,6 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Get a list of VirtualMachineInstanceReplicaSet objects. api_response = api_instance.list_namespaced_virtual_machine_instance_replica_set(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: @@ -1776,7 +1700,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -1788,6 +1712,8 @@ Name | Type | Description | Notes # **list_virtual_machine_for_all_namespaces** > V1VirtualMachineList list_virtual_machine_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + Get a list of all VirtualMachine objects. ### Example @@ -1798,11 +1724,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -1815,7 +1736,6 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Get a list of all VirtualMachine objects. api_response = api_instance.list_virtual_machine_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: @@ -1841,7 +1761,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -1853,6 +1773,8 @@ Name | Type | Description | Notes # **list_virtual_machine_instance_for_all_namespaces** > V1VirtualMachineInstanceList list_virtual_machine_instance_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + Get a list of all VirtualMachineInstance objects. ### Example @@ -1863,11 +1785,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -1880,7 +1797,6 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Get a list of all VirtualMachineInstance objects. api_response = api_instance.list_virtual_machine_instance_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: @@ -1906,7 +1822,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -1918,6 +1834,8 @@ Name | Type | Description | Notes # **list_virtual_machine_instance_migration_for_all_namespaces** > V1VirtualMachineInstanceMigrationList list_virtual_machine_instance_migration_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + Get a list of all VirtualMachineInstanceMigration objects. ### Example @@ -1928,11 +1846,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -1945,7 +1858,6 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Get a list of all VirtualMachineInstanceMigration objects. api_response = api_instance.list_virtual_machine_instance_migration_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: @@ -1971,7 +1883,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -1983,6 +1895,8 @@ Name | Type | Description | Notes # **list_virtual_machine_instance_preset_for_all_namespaces** > V1VirtualMachineInstancePresetList list_virtual_machine_instance_preset_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + Get a list of all VirtualMachineInstancePreset objects. ### Example @@ -1993,11 +1907,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -2010,7 +1919,6 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Get a list of all VirtualMachineInstancePreset objects. api_response = api_instance.list_virtual_machine_instance_preset_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: @@ -2036,7 +1944,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -2048,6 +1956,8 @@ Name | Type | Description | Notes # **list_virtual_machine_instance_replica_set_for_all_namespaces** > V1VirtualMachineInstanceReplicaSetList list_virtual_machine_instance_replica_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + Get a list of all VirtualMachineInstanceReplicaSet objects. ### Example @@ -2058,11 +1968,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -2075,7 +1980,6 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Get a list of all VirtualMachineInstanceReplicaSet objects. api_response = api_instance.list_virtual_machine_instance_replica_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: @@ -2101,7 +2005,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -2111,7 +2015,9 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **migrate** -> migrate(namespace, name) +> str migrate(name, namespace) + + Migrate a running VirtualMachine to another node. @@ -2123,19 +2029,14 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - # Migrate a running VirtualMachine to another node. - api_instance.migrate(namespace, name) + api_response = api_instance.migrate(name, namespace) + pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->migrate: %s\n" % e) ``` @@ -2144,16 +2045,16 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -void (empty response body) +**str** ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -2163,7 +2064,9 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_virtual_machine** -> V1VirtualMachine patch_namespaced_virtual_machine(body, namespace, name) +> V1VirtualMachine patch_namespaced_virtual_machine(name, namespace, body) + + Patch a VirtualMachine object. @@ -2175,20 +2078,14 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1Patch() # V1Patch | -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1Patch() # V1Patch | try: - # Patch a VirtualMachine object. - api_response = api_instance.patch_namespaced_virtual_machine(body, namespace, name) + api_response = api_instance.patch_namespaced_virtual_machine(name, namespace, body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->patch_namespaced_virtual_machine: %s\n" % e) @@ -2198,9 +2095,9 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1Patch**](V1Patch.md)| | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1Patch**](V1Patch.md)| | ### Return type @@ -2208,7 +2105,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -2218,7 +2115,9 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_virtual_machine_instance** -> V1VirtualMachineInstance patch_namespaced_virtual_machine_instance(body, namespace, name) +> V1VirtualMachineInstance patch_namespaced_virtual_machine_instance(name, namespace, body) + + Patch a VirtualMachineInstance object. @@ -2230,20 +2129,14 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1Patch() # V1Patch | -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1Patch() # V1Patch | try: - # Patch a VirtualMachineInstance object. - api_response = api_instance.patch_namespaced_virtual_machine_instance(body, namespace, name) + api_response = api_instance.patch_namespaced_virtual_machine_instance(name, namespace, body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instance: %s\n" % e) @@ -2253,9 +2146,9 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1Patch**](V1Patch.md)| | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1Patch**](V1Patch.md)| | ### Return type @@ -2263,7 +2156,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -2273,7 +2166,9 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_virtual_machine_instance_migration** -> V1VirtualMachineInstanceMigration patch_namespaced_virtual_machine_instance_migration(body, namespace, name) +> V1VirtualMachineInstanceMigration patch_namespaced_virtual_machine_instance_migration(name, namespace, body) + + Patch a VirtualMachineInstanceMigration object. @@ -2285,20 +2180,14 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1Patch() # V1Patch | -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1Patch() # V1Patch | try: - # Patch a VirtualMachineInstanceMigration object. - api_response = api_instance.patch_namespaced_virtual_machine_instance_migration(body, namespace, name) + api_response = api_instance.patch_namespaced_virtual_machine_instance_migration(name, namespace, body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instance_migration: %s\n" % e) @@ -2308,9 +2197,9 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1Patch**](V1Patch.md)| | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1Patch**](V1Patch.md)| | ### Return type @@ -2318,7 +2207,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -2328,7 +2217,9 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_virtual_machine_instance_preset** -> V1VirtualMachineInstancePreset patch_namespaced_virtual_machine_instance_preset(body, namespace, name) +> V1VirtualMachineInstancePreset patch_namespaced_virtual_machine_instance_preset(name, namespace, body) + + Patch a VirtualMachineInstancePreset object. @@ -2340,20 +2231,14 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1Patch() # V1Patch | -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1Patch() # V1Patch | try: - # Patch a VirtualMachineInstancePreset object. - api_response = api_instance.patch_namespaced_virtual_machine_instance_preset(body, namespace, name) + api_response = api_instance.patch_namespaced_virtual_machine_instance_preset(name, namespace, body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instance_preset: %s\n" % e) @@ -2363,9 +2248,9 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1Patch**](V1Patch.md)| | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1Patch**](V1Patch.md)| | ### Return type @@ -2373,7 +2258,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -2383,7 +2268,9 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_virtual_machine_instance_replica_set** -> V1VirtualMachineInstanceReplicaSet patch_namespaced_virtual_machine_instance_replica_set(body, namespace, name) +> V1VirtualMachineInstanceReplicaSet patch_namespaced_virtual_machine_instance_replica_set(name, namespace, body) + + Patch a VirtualMachineInstanceReplicaSet object. @@ -2395,20 +2282,14 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1Patch() # V1Patch | -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1Patch() # V1Patch | try: - # Patch a VirtualMachineInstanceReplicaSet object. - api_response = api_instance.patch_namespaced_virtual_machine_instance_replica_set(body, namespace, name) + api_response = api_instance.patch_namespaced_virtual_machine_instance_replica_set(name, namespace, body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instance_replica_set: %s\n" % e) @@ -2418,9 +2299,9 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1Patch**](V1Patch.md)| | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1Patch**](V1Patch.md)| | ### Return type @@ -2428,7 +2309,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -2438,7 +2319,9 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **pause** -> pause(namespace, name) +> str pause(name, namespace) + + Pause a VirtualMachineInstance object. @@ -2450,19 +2333,14 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - # Pause a VirtualMachineInstance object. - api_instance.pause(namespace, name) + api_response = api_instance.pause(name, namespace) + pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->pause: %s\n" % e) ``` @@ -2471,16 +2349,16 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -void (empty response body) +**str** ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -2492,6 +2370,8 @@ void (empty response body) # **read_namespaced_virtual_machine** > V1VirtualMachine read_namespaced_virtual_machine(name, namespace, exact=exact, export=export) + + Get a VirtualMachine object. ### Example @@ -2502,11 +2382,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource @@ -2515,7 +2390,6 @@ exact = true # bool | Should the export be exact. Exact export maintains cluster export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - # Get a VirtualMachine object. api_response = api_instance.read_namespaced_virtual_machine(name, namespace, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -2537,7 +2411,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -2549,6 +2423,8 @@ Name | Type | Description | Notes # **read_namespaced_virtual_machine_instance** > V1VirtualMachineInstance read_namespaced_virtual_machine_instance(name, namespace, exact=exact, export=export) + + Get a VirtualMachineInstance object. ### Example @@ -2559,11 +2435,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource @@ -2572,7 +2443,6 @@ exact = true # bool | Should the export be exact. Exact export maintains cluster export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - # Get a VirtualMachineInstance object. api_response = api_instance.read_namespaced_virtual_machine_instance(name, namespace, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -2594,7 +2464,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -2606,6 +2476,8 @@ Name | Type | Description | Notes # **read_namespaced_virtual_machine_instance_migration** > V1VirtualMachineInstanceMigration read_namespaced_virtual_machine_instance_migration(name, namespace, exact=exact, export=export) + + Get a VirtualMachineInstanceMigration object. ### Example @@ -2616,11 +2488,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource @@ -2629,7 +2496,6 @@ exact = true # bool | Should the export be exact. Exact export maintains cluster export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - # Get a VirtualMachineInstanceMigration object. api_response = api_instance.read_namespaced_virtual_machine_instance_migration(name, namespace, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -2651,7 +2517,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -2663,6 +2529,8 @@ Name | Type | Description | Notes # **read_namespaced_virtual_machine_instance_preset** > V1VirtualMachineInstancePreset read_namespaced_virtual_machine_instance_preset(name, namespace, exact=exact, export=export) + + Get a VirtualMachineInstancePreset object. ### Example @@ -2673,11 +2541,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource @@ -2686,7 +2549,6 @@ exact = true # bool | Should the export be exact. Exact export maintains cluster export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - # Get a VirtualMachineInstancePreset object. api_response = api_instance.read_namespaced_virtual_machine_instance_preset(name, namespace, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -2708,7 +2570,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -2720,6 +2582,8 @@ Name | Type | Description | Notes # **read_namespaced_virtual_machine_instance_replica_set** > V1VirtualMachineInstanceReplicaSet read_namespaced_virtual_machine_instance_replica_set(name, namespace, exact=exact, export=export) + + Get a VirtualMachineInstanceReplicaSet object. ### Example @@ -2730,11 +2594,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource @@ -2743,7 +2602,6 @@ exact = true # bool | Should the export be exact. Exact export maintains cluster export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - # Get a VirtualMachineInstanceReplicaSet object. api_response = api_instance.read_namespaced_virtual_machine_instance_replica_set(name, namespace, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -2765,7 +2623,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -2775,7 +2633,9 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **rename** -> rename(namespace, name) +> str rename(name, namespace) + + Rename a stopped VirtualMachine object. @@ -2787,19 +2647,14 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - # Rename a stopped VirtualMachine object. - api_instance.rename(namespace, name) + api_response = api_instance.rename(name, namespace) + pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->rename: %s\n" % e) ``` @@ -2808,16 +2663,16 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -void (empty response body) +**str** ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -2827,7 +2682,9 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_virtual_machine** -> V1VirtualMachine replace_namespaced_virtual_machine(body, namespace, name) +> V1VirtualMachine replace_namespaced_virtual_machine(name, namespace, body) + + Update a VirtualMachine object. @@ -2839,20 +2696,14 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1VirtualMachine() # V1VirtualMachine | -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1VirtualMachine() # V1VirtualMachine | try: - # Update a VirtualMachine object. - api_response = api_instance.replace_namespaced_virtual_machine(body, namespace, name) + api_response = api_instance.replace_namespaced_virtual_machine(name, namespace, body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->replace_namespaced_virtual_machine: %s\n" % e) @@ -2862,9 +2713,9 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1VirtualMachine**](V1VirtualMachine.md)| | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1VirtualMachine**](V1VirtualMachine.md)| | ### Return type @@ -2872,7 +2723,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -2882,7 +2733,9 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_virtual_machine_instance** -> V1VirtualMachineInstance replace_namespaced_virtual_machine_instance(body, namespace, name) +> V1VirtualMachineInstance replace_namespaced_virtual_machine_instance(name, namespace, body) + + Update a VirtualMachineInstance object. @@ -2894,20 +2747,14 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1VirtualMachineInstance() # V1VirtualMachineInstance | -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1VirtualMachineInstance() # V1VirtualMachineInstance | try: - # Update a VirtualMachineInstance object. - api_response = api_instance.replace_namespaced_virtual_machine_instance(body, namespace, name) + api_response = api_instance.replace_namespaced_virtual_machine_instance(name, namespace, body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_instance: %s\n" % e) @@ -2917,9 +2764,9 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1VirtualMachineInstance**](V1VirtualMachineInstance.md)| | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1VirtualMachineInstance**](V1VirtualMachineInstance.md)| | ### Return type @@ -2927,7 +2774,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -2937,7 +2784,9 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_virtual_machine_instance_migration** -> V1VirtualMachineInstanceMigration replace_namespaced_virtual_machine_instance_migration(body, namespace, name) +> V1VirtualMachineInstanceMigration replace_namespaced_virtual_machine_instance_migration(name, namespace, body) + + Update a VirtualMachineInstanceMigration object. @@ -2949,20 +2798,14 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1VirtualMachineInstanceMigration() # V1VirtualMachineInstanceMigration | -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1VirtualMachineInstanceMigration() # V1VirtualMachineInstanceMigration | try: - # Update a VirtualMachineInstanceMigration object. - api_response = api_instance.replace_namespaced_virtual_machine_instance_migration(body, namespace, name) + api_response = api_instance.replace_namespaced_virtual_machine_instance_migration(name, namespace, body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_instance_migration: %s\n" % e) @@ -2972,9 +2815,9 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.md)| | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.md)| | ### Return type @@ -2982,7 +2825,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -2992,7 +2835,9 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_virtual_machine_instance_preset** -> V1VirtualMachineInstancePreset replace_namespaced_virtual_machine_instance_preset(body, namespace, name) +> V1VirtualMachineInstancePreset replace_namespaced_virtual_machine_instance_preset(name, namespace, body) + + Update a VirtualMachineInstancePreset object. @@ -3004,20 +2849,14 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1VirtualMachineInstancePreset() # V1VirtualMachineInstancePreset | -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1VirtualMachineInstancePreset() # V1VirtualMachineInstancePreset | try: - # Update a VirtualMachineInstancePreset object. - api_response = api_instance.replace_namespaced_virtual_machine_instance_preset(body, namespace, name) + api_response = api_instance.replace_namespaced_virtual_machine_instance_preset(name, namespace, body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_instance_preset: %s\n" % e) @@ -3027,9 +2866,9 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md)| | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md)| | ### Return type @@ -3037,7 +2876,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -3047,7 +2886,9 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_virtual_machine_instance_replica_set** -> V1VirtualMachineInstanceReplicaSet replace_namespaced_virtual_machine_instance_replica_set(body, namespace, name) +> V1VirtualMachineInstanceReplicaSet replace_namespaced_virtual_machine_instance_replica_set(name, namespace, body) + + Update a VirtualMachineInstanceReplicaSet object. @@ -3059,20 +2900,14 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1VirtualMachineInstanceReplicaSet() # V1VirtualMachineInstanceReplicaSet | -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1VirtualMachineInstanceReplicaSet() # V1VirtualMachineInstanceReplicaSet | try: - # Update a VirtualMachineInstanceReplicaSet object. - api_response = api_instance.replace_namespaced_virtual_machine_instance_replica_set(body, namespace, name) + api_response = api_instance.replace_namespaced_virtual_machine_instance_replica_set(name, namespace, body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_instance_replica_set: %s\n" % e) @@ -3082,9 +2917,9 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md)| | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md)| | ### Return type @@ -3092,7 +2927,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -3102,7 +2937,9 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **restart** -> restart(namespace, name, body=body) +> str restart(name, namespace, body=body) + + Restart a VirtualMachine object. @@ -3114,20 +2951,15 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects body = kubevirt.V1RestartOptions() # V1RestartOptions | (optional) try: - # Restart a VirtualMachine object. - api_instance.restart(namespace, name, body=body) + api_response = api_instance.restart(name, namespace, body=body) + pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->restart: %s\n" % e) ``` @@ -3136,17 +2968,17 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | **body** | [**V1RestartOptions**](V1RestartOptions.md)| | [optional] ### Return type -void (empty response body) +**str** ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -3156,7 +2988,9 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **start** -> start(namespace, name) +> str start(name, namespace) + + Start a VirtualMachine object. @@ -3168,19 +3002,14 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - # Start a VirtualMachine object. - api_instance.start(namespace, name) + api_response = api_instance.start(name, namespace) + pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->start: %s\n" % e) ``` @@ -3189,16 +3018,16 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -void (empty response body) +**str** ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -3208,7 +3037,9 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **stop** -> stop(namespace, name) +> str stop(name, namespace) + + Stop a VirtualMachine object. @@ -3220,19 +3051,14 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - # Stop a VirtualMachine object. - api_instance.stop(namespace, name) + api_response = api_instance.stop(name, namespace) + pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->stop: %s\n" % e) ``` @@ -3241,16 +3067,16 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -void (empty response body) +**str** ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -3260,7 +3086,9 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **test** -> test(namespace, name) +> test(name, namespace) + + Test endpoint verifying apiserver connectivity. @@ -3272,19 +3100,13 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - # Test endpoint verifying apiserver connectivity. - api_instance.test(namespace, name) + api_instance.test(name, namespace) except ApiException as e: print("Exception when calling DefaultApi->test: %s\n" % e) ``` @@ -3293,8 +3115,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type @@ -3302,7 +3124,7 @@ void (empty response body) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -3312,7 +3134,9 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **unpause** -> unpause(namespace, name) +> str unpause(name, namespace) + + Unpause a VirtualMachineInstance object. @@ -3324,19 +3148,14 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - # Unpause a VirtualMachineInstance object. - api_instance.unpause(namespace, name) + api_response = api_instance.unpause(name, namespace) + pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->unpause: %s\n" % e) ``` @@ -3345,16 +3164,16 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -void (empty response body) +**str** ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -3366,6 +3185,8 @@ void (empty response body) # **userlist** > V1VirtualMachineInstanceGuestOSUserList userlist() + + Get list of active users via guest agent ### Example @@ -3376,16 +3197,10 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() try: - # Get list of active users via guest agent api_response = api_instance.userlist() pprint(api_response) except ApiException as e: @@ -3401,7 +3216,7 @@ This endpoint does not need any parameter. ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -3423,11 +3238,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() @@ -3446,7 +3256,7 @@ void (empty response body) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -3456,7 +3266,9 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **vnc** -> vnc(namespace, name) +> vnc(name, namespace) + + Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. @@ -3468,19 +3280,13 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - # Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. - api_instance.vnc(namespace, name) + api_instance.vnc(name, namespace) except ApiException as e: print("Exception when calling DefaultApi->vnc: %s\n" % e) ``` @@ -3489,8 +3295,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type @@ -3498,7 +3304,7 @@ void (empty response body) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -3510,6 +3316,8 @@ void (empty response body) # **watch_namespaced_virtual_machine** > V1WatchEvent watch_namespaced_virtual_machine(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + Watch a VirtualMachine object. ### Example @@ -3520,11 +3328,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects @@ -3538,7 +3341,6 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Watch a VirtualMachine object. api_response = api_instance.watch_namespaced_virtual_machine(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: @@ -3565,7 +3367,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -3577,6 +3379,8 @@ Name | Type | Description | Notes # **watch_namespaced_virtual_machine_instance** > V1WatchEvent watch_namespaced_virtual_machine_instance(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + Watch a VirtualMachineInstance object. ### Example @@ -3587,11 +3391,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects @@ -3605,7 +3404,6 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Watch a VirtualMachineInstance object. api_response = api_instance.watch_namespaced_virtual_machine_instance(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: @@ -3632,7 +3430,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -3644,6 +3442,8 @@ Name | Type | Description | Notes # **watch_namespaced_virtual_machine_instance_migration** > V1WatchEvent watch_namespaced_virtual_machine_instance_migration(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + Watch a VirtualMachineInstanceMigration object. ### Example @@ -3654,11 +3454,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects @@ -3672,7 +3467,6 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Watch a VirtualMachineInstanceMigration object. api_response = api_instance.watch_namespaced_virtual_machine_instance_migration(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: @@ -3699,7 +3493,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -3711,6 +3505,8 @@ Name | Type | Description | Notes # **watch_namespaced_virtual_machine_instance_preset** > V1WatchEvent watch_namespaced_virtual_machine_instance_preset(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + Watch a VirtualMachineInstancePreset object. ### Example @@ -3721,11 +3517,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects @@ -3739,7 +3530,6 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Watch a VirtualMachineInstancePreset object. api_response = api_instance.watch_namespaced_virtual_machine_instance_preset(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: @@ -3766,7 +3556,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -3778,6 +3568,8 @@ Name | Type | Description | Notes # **watch_namespaced_virtual_machine_instance_replica_set** > V1WatchEvent watch_namespaced_virtual_machine_instance_replica_set(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + Watch a VirtualMachineInstanceReplicaSet object. ### Example @@ -3788,11 +3580,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects @@ -3806,7 +3593,6 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Watch a VirtualMachineInstanceReplicaSet object. api_response = api_instance.watch_namespaced_virtual_machine_instance_replica_set(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: @@ -3833,7 +3619,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -3845,6 +3631,8 @@ Name | Type | Description | Notes # **watch_virtual_machine_instance_list_for_all_namespaces** > V1WatchEvent watch_virtual_machine_instance_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + Watch a VirtualMachineInstanceList object. ### Example @@ -3855,11 +3643,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -3872,7 +3655,6 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Watch a VirtualMachineInstanceList object. api_response = api_instance.watch_virtual_machine_instance_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: @@ -3898,7 +3680,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -3910,6 +3692,8 @@ Name | Type | Description | Notes # **watch_virtual_machine_instance_migration_list_for_all_namespaces** > V1WatchEvent watch_virtual_machine_instance_migration_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + Watch a VirtualMachineInstanceMigrationList object. ### Example @@ -3920,11 +3704,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -3937,7 +3716,6 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Watch a VirtualMachineInstanceMigrationList object. api_response = api_instance.watch_virtual_machine_instance_migration_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: @@ -3963,7 +3741,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -3975,6 +3753,8 @@ Name | Type | Description | Notes # **watch_virtual_machine_instance_preset_list_for_all_namespaces** > V1WatchEvent watch_virtual_machine_instance_preset_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + Watch a VirtualMachineInstancePresetList object. ### Example @@ -3985,11 +3765,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -4002,7 +3777,6 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Watch a VirtualMachineInstancePresetList object. api_response = api_instance.watch_virtual_machine_instance_preset_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: @@ -4028,7 +3802,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -4040,6 +3814,8 @@ Name | Type | Description | Notes # **watch_virtual_machine_instance_replica_set_list_for_all_namespaces** > V1WatchEvent watch_virtual_machine_instance_replica_set_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + Watch a VirtualMachineInstanceReplicaSetList object. ### Example @@ -4050,11 +3826,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -4067,7 +3838,6 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Watch a VirtualMachineInstanceReplicaSetList object. api_response = api_instance.watch_virtual_machine_instance_replica_set_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: @@ -4093,7 +3863,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -4105,6 +3875,8 @@ Name | Type | Description | Notes # **watch_virtual_machine_list_for_all_namespaces** > V1WatchEvent watch_virtual_machine_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + Watch a VirtualMachineList object. ### Example @@ -4115,11 +3887,6 @@ import kubevirt from kubevirt.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken -kubevirt.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubevirt.configuration.api_key_prefix['authorization'] = 'Bearer' - # create an instance of the API class api_instance = kubevirt.DefaultApi() _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -4132,7 +3899,6 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - # Watch a VirtualMachineList object. api_response = api_instance.watch_virtual_machine_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: @@ -4158,7 +3924,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers diff --git a/docs/IntstrIntOrString.md b/docs/IntstrIntOrString.md new file mode 100644 index 00000000..c91598ac --- /dev/null +++ b/docs/IntstrIntOrString.md @@ -0,0 +1,9 @@ +# IntstrIntOrString + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResourceQuantity.md b/docs/ResourceQuantity.md new file mode 100644 index 00000000..8304f32f --- /dev/null +++ b/docs/ResourceQuantity.md @@ -0,0 +1,9 @@ +# ResourceQuantity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RuntimeRawExtension.md b/docs/RuntimeRawExtension.md new file mode 100644 index 00000000..5cdc89f0 --- /dev/null +++ b/docs/RuntimeRawExtension.md @@ -0,0 +1,9 @@ +# RuntimeRawExtension + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1BIOS.md b/docs/V1BIOS.md new file mode 100644 index 00000000..c9d26c16 --- /dev/null +++ b/docs/V1BIOS.md @@ -0,0 +1,9 @@ +# V1BIOS + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Bootloader.md b/docs/V1Bootloader.md index 3575404d..b4b85848 100644 --- a/docs/V1Bootloader.md +++ b/docs/V1Bootloader.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bios** | [**V1BIOS**](V1BIOS.md) | If set (default), BIOS will be used. +optional | [optional] -**efi** | [**V1EFI**](V1EFI.md) | If set, EFI will be used instead of BIOS. +optional | [optional] +**bios** | [**V1BIOS**](V1BIOS.md) | If set (default), BIOS will be used. | [optional] +**efi** | [**V1EFI**](V1EFI.md) | If set, EFI will be used instead of BIOS. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1CDRomTarget.md b/docs/V1CDRomTarget.md index 950a7813..87bd6a93 100644 --- a/docs/V1CDRomTarget.md +++ b/docs/V1CDRomTarget.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **bus** | **str** | Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi. | [optional] **readonly** | **bool** | ReadOnly. Defaults to true. | [optional] -**tray** | **str** | Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\". Defaults to closed. +optional | [optional] +**tray** | **str** | Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\". Defaults to closed. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1CPU.md b/docs/V1CPU.md index 762da6ba..c0fe48e5 100644 --- a/docs/V1CPU.md +++ b/docs/V1CPU.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cores** | **int** | Cores specifies the number of cores inside the vmi. Must be a value greater or equal 1. | [optional] -**dedicated_cpu_placement** | **bool** | DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. +optional | [optional] -**features** | [**list[V1CPUFeature]**](V1CPUFeature.md) | Features specifies the CPU features list inside the VMI. +optional | [optional] -**isolate_emulator_thread** | **bool** | IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it. +optional | [optional] -**model** | **str** | Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. +optional | [optional] +**dedicated_cpu_placement** | **bool** | DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. | [optional] +**features** | [**list[V1CPUFeature]**](V1CPUFeature.md) | Features specifies the CPU features list inside the VMI. | [optional] +**isolate_emulator_thread** | **bool** | IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it. | [optional] +**model** | **str** | Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. | [optional] **sockets** | **int** | Sockets specifies the number of sockets inside the vmi. Must be a value greater or equal 1. | [optional] **threads** | **int** | Threads specifies the number of threads inside the vmi. Must be a value greater or equal 1. | [optional] diff --git a/docs/V1CPUFeature.md b/docs/V1CPUFeature.md index bbd845ea..aabef402 100644 --- a/docs/V1CPUFeature.md +++ b/docs/V1CPUFeature.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | Name of the CPU feature | -**policy** | **str** | Policy is the CPU feature attribute which can have the following attributes: force - The virtual CPU will claim the feature is supported regardless of it being supported by host CPU. require - Guest creation will fail unless the feature is supported by the host CPU or the hypervisor is able to emulate it. optional - The feature will be supported by virtual CPU if and only if it is supported by host CPU. disable - The feature will not be supported by virtual CPU. forbid - Guest creation will fail if the feature is supported by host CPU. Defaults to require +optional | [optional] +**policy** | **str** | Policy is the CPU feature attribute which can have the following attributes: force - The virtual CPU will claim the feature is supported regardless of it being supported by host CPU. require - Guest creation will fail unless the feature is supported by the host CPU or the hypervisor is able to emulate it. optional - The feature will be supported by virtual CPU if and only if it is supported by host CPU. disable - The feature will not be supported by virtual CPU. forbid - Guest creation will fail if the feature is supported by host CPU. Defaults to require | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Clock.md b/docs/V1Clock.md index 690c807a..45365060 100644 --- a/docs/V1Clock.md +++ b/docs/V1Clock.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**timer** | [**V1Timer**](V1Timer.md) | Timer specifies whih timers are attached to the vmi. | -**timezone** | [**V1ClockOffsetTimezone**](V1ClockOffsetTimezone.md) | Timezone sets the guest clock to the specified timezone. Zone name follows the TZ environment variable format (e.g. 'America/New_York'). | [optional] +**timer** | [**V1Timer**](V1Timer.md) | Timer specifies whih timers are attached to the vmi. | [optional] +**timezone** | **str** | Timezone sets the guest clock to the specified timezone. Zone name follows the TZ environment variable format (e.g. 'America/New_York'). | [optional] **utc** | [**V1ClockOffsetUTC**](V1ClockOffsetUTC.md) | UTC sets the guest clock to UTC on each boot. If an offset is specified, guest changes to the clock will be kept during reboots and are not reset. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1CloudInitConfigDriveSource.md b/docs/V1CloudInitConfigDriveSource.md index 6d004036..eef53a29 100644 --- a/docs/V1CloudInitConfigDriveSource.md +++ b/docs/V1CloudInitConfigDriveSource.md @@ -3,12 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**network_data** | **str** | NetworkData contains config drive inline cloud-init networkdata. + optional | [optional] -**network_data_base64** | **str** | NetworkDataBase64 contains config drive cloud-init networkdata as a base64 encoded string. + optional | [optional] -**network_data_secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | NetworkDataSecretRef references a k8s secret that contains config drive networkdata. + optional | [optional] -**secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | UserDataSecretRef references a k8s secret that contains config drive userdata. + optional | [optional] -**user_data** | **str** | UserData contains config drive inline cloud-init userdata. + optional | [optional] -**user_data_base64** | **str** | UserDataBase64 contains config drive cloud-init userdata as a base64 encoded string. + optional | [optional] +**network_data** | **str** | NetworkData contains config drive inline cloud-init networkdata. | [optional] +**network_data_base64** | **str** | NetworkDataBase64 contains config drive cloud-init networkdata as a base64 encoded string. | [optional] +**network_data_secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | NetworkDataSecretRef references a k8s secret that contains config drive networkdata. | [optional] +**secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | UserDataSecretRef references a k8s secret that contains config drive userdata. | [optional] +**user_data** | **str** | UserData contains config drive inline cloud-init userdata. | [optional] +**user_data_base64** | **str** | UserDataBase64 contains config drive cloud-init userdata as a base64 encoded string. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1CloudInitNoCloudSource.md b/docs/V1CloudInitNoCloudSource.md index 1592dbe9..8bbf7cfc 100644 --- a/docs/V1CloudInitNoCloudSource.md +++ b/docs/V1CloudInitNoCloudSource.md @@ -3,12 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**network_data** | **str** | NetworkData contains NoCloud inline cloud-init networkdata. + optional | [optional] -**network_data_base64** | **str** | NetworkDataBase64 contains NoCloud cloud-init networkdata as a base64 encoded string. + optional | [optional] -**network_data_secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | NetworkDataSecretRef references a k8s secret that contains NoCloud networkdata. + optional | [optional] -**secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | UserDataSecretRef references a k8s secret that contains NoCloud userdata. + optional | [optional] -**user_data** | **str** | UserData contains NoCloud inline cloud-init userdata. + optional | [optional] -**user_data_base64** | **str** | UserDataBase64 contains NoCloud cloud-init userdata as a base64 encoded string. + optional | [optional] +**network_data** | **str** | NetworkData contains NoCloud inline cloud-init networkdata. | [optional] +**network_data_base64** | **str** | NetworkDataBase64 contains NoCloud cloud-init networkdata as a base64 encoded string. | [optional] +**network_data_secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | NetworkDataSecretRef references a k8s secret that contains NoCloud networkdata. | [optional] +**secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | UserDataSecretRef references a k8s secret that contains NoCloud userdata. | [optional] +**user_data** | **str** | UserData contains NoCloud inline cloud-init userdata. | [optional] +**user_data_base64** | **str** | UserDataBase64 contains NoCloud cloud-init userdata as a base64 encoded string. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1ConfigMapVolumeSource.md b/docs/V1ConfigMapVolumeSource.md index 8ade61af..534882f5 100644 --- a/docs/V1ConfigMapVolumeSource.md +++ b/docs/V1ConfigMapVolumeSource.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] -**optional** | **bool** | Specify whether the ConfigMap or it's keys must be defined +optional | [optional] -**volume_label** | **str** | The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart). +optional | [optional] +**optional** | **bool** | Specify whether the ConfigMap or it's keys must be defined | [optional] +**volume_label** | **str** | The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1ContainerDiskSource.md b/docs/V1ContainerDiskSource.md index fe3fd8f7..3f825949 100644 --- a/docs/V1ContainerDiskSource.md +++ b/docs/V1ContainerDiskSource.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **image** | **str** | Image is the name of the image with the embedded disk. | -**image_pull_policy** | **str** | Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images +optional | [optional] +**image_pull_policy** | **str** | Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images | [optional] **image_pull_secret** | **str** | ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist. | [optional] **path** | **str** | Path defines the path to disk file in the container | [optional] diff --git a/docs/V1DHCPOptions.md b/docs/V1DHCPOptions.md index 67d2061a..dad49ebb 100644 --- a/docs/V1DHCPOptions.md +++ b/docs/V1DHCPOptions.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**boot_file_name** | **str** | If specified will pass option 67 to interface's DHCP server +optional | [optional] -**ntp_servers** | **list[str]** | If specified will pass the configured NTP server to the VM via DHCP option 042. +optional | [optional] -**private_options** | [**list[V1DHCPPrivateOptions]**](V1DHCPPrivateOptions.md) | If specified will pass extra DHCP options for private use, range: 224-254 +optional | [optional] -**tftp_server_name** | **str** | If specified will pass option 66 to interface's DHCP server +optional | [optional] +**boot_file_name** | **str** | If specified will pass option 67 to interface's DHCP server | [optional] +**ntp_servers** | **list[str]** | If specified will pass the configured NTP server to the VM via DHCP option 042. | [optional] +**private_options** | [**list[V1DHCPPrivateOptions]**](V1DHCPPrivateOptions.md) | If specified will pass extra DHCP options for private use, range: 224-254 | [optional] +**tftp_server_name** | **str** | If specified will pass option 66 to interface's DHCP server | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1DeleteOptions.md b/docs/V1DeleteOptions.md index 47a6e93a..5ef23210 100644 --- a/docs/V1DeleteOptions.md +++ b/docs/V1DeleteOptions.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **orphan_dependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **preconditions** | [**V1Preconditions**](V1Preconditions.md) | Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. | [optional] -**propagation_policy** | [**V1DeletionPropagation**](V1DeletionPropagation.md) | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**propagation_policy** | **str** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index d0e3f84c..775a24e1 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -6,13 +6,13 @@ Name | Type | Description | Notes **autoattach_graphics_device** | **bool** | Whether to attach the default graphics device or not. VNC will not be available if set to false. Defaults to true. | [optional] **autoattach_pod_interface** | **bool** | Whether to attach a pod network interface. Defaults to true. | [optional] **autoattach_serial_console** | **bool** | Whether to attach the default serial console or not. Serial console access will not be available if set to false. Defaults to true. | [optional] -**block_multi_queue** | **bool** | Whether or not to enable virtio multi-queue for block devices +optional | [optional] +**block_multi_queue** | **bool** | Whether or not to enable virtio multi-queue for block devices | [optional] **disks** | [**list[V1Disk]**](V1Disk.md) | Disks describes disks, cdroms, floppy and luns which are connected to the vmi. | [optional] -**gpus** | [**list[V1GPU]**](V1GPU.md) | Whether to attach a GPU device to the vmi. +optional | [optional] +**gpus** | [**list[V1GPU]**](V1GPU.md) | Whether to attach a GPU device to the vmi. | [optional] **inputs** | [**list[V1Input]**](V1Input.md) | Inputs describe input devices | [optional] **interfaces** | [**list[V1Interface]**](V1Interface.md) | Interfaces describe network interfaces which are added to the vmi. | [optional] -**network_interface_multiqueue** | **bool** | If specified, virtual network interfaces configured with a virtio bus will also enable the vhost multiqueue feature +optional | [optional] -**rng** | [**V1Rng**](V1Rng.md) | Whether to have random number generator from host +optional | [optional] +**network_interface_multiqueue** | **bool** | If specified, virtual network interfaces configured with a virtio bus will also enable the vhost multiqueue feature | [optional] +**rng** | [**V1Rng**](V1Rng.md) | Whether to have random number generator from host | [optional] **watchdog** | [**V1Watchdog**](V1Watchdog.md) | Watchdog describes a watchdog device which can be added to the vmi. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Disk.md b/docs/V1Disk.md index 840f91ee..ae04cf1c 100644 --- a/docs/V1Disk.md +++ b/docs/V1Disk.md @@ -3,16 +3,16 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**boot_order** | **int** | BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each disk or interface that has a boot order must have a unique value. Disks without a boot order are not tried if a disk with a boot order exists. +optional | [optional] -**cache** | **str** | Cache specifies which kvm disk cache mode should be used. +optional | [optional] +**boot_order** | **int** | BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each disk or interface that has a boot order must have a unique value. Disks without a boot order are not tried if a disk with a boot order exists. | [optional] +**cache** | **str** | Cache specifies which kvm disk cache mode should be used. | [optional] **cdrom** | [**V1CDRomTarget**](V1CDRomTarget.md) | Attach a volume as a cdrom to the vmi. | [optional] -**dedicated_io_thread** | **bool** | dedicatedIOThread indicates this disk should have an exclusive IO Thread. Enabling this implies useIOThreads = true. Defaults to false. +optional | [optional] +**dedicated_io_thread** | **bool** | dedicatedIOThread indicates this disk should have an exclusive IO Thread. Enabling this implies useIOThreads = true. Defaults to false. | [optional] **disk** | [**V1DiskTarget**](V1DiskTarget.md) | Attach a volume as a disk to the vmi. | [optional] **floppy** | [**V1FloppyTarget**](V1FloppyTarget.md) | Attach a volume as a floppy to the vmi. | [optional] **lun** | [**V1LunTarget**](V1LunTarget.md) | Attach a volume as a LUN to the vmi. | [optional] **name** | **str** | Name is the device name | -**serial** | **str** | Serial provides the ability to specify a serial number for the disk device. +optional | [optional] -**tag** | **str** | If specified, disk address and its tag will be provided to the guest via config drive metadata +optional | [optional] +**serial** | **str** | Serial provides the ability to specify a serial number for the disk device. | [optional] +**tag** | **str** | If specified, disk address and its tag will be provided to the guest via config drive metadata | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1DiskTarget.md b/docs/V1DiskTarget.md index c78f93a5..09dfb0da 100644 --- a/docs/V1DiskTarget.md +++ b/docs/V1DiskTarget.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **bus** | **str** | Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi. | [optional] -**pci_address** | **str** | If specified, the virtual disk will be placed on the guests pci address with the specifed PCI address. For example: 0000:81:01.10 +optional | [optional] +**pci_address** | **str** | If specified, the virtual disk will be placed on the guests pci address with the specifed PCI address. For example: 0000:81:01.10 | [optional] **readonly** | **bool** | ReadOnly. Defaults to false. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1DomainSpec.md b/docs/V1DomainSpec.md index 419eced0..54455d53 100644 --- a/docs/V1DomainSpec.md +++ b/docs/V1DomainSpec.md @@ -3,15 +3,15 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**chassis** | [**V1Chassis**](V1Chassis.md) | Chassis specifies the chassis info passed to the domain. +optional | [optional] -**clock** | [**V1Clock**](V1Clock.md) | Clock sets the clock and timers of the vmi. +optional | [optional] -**cpu** | [**V1CPU**](V1CPU.md) | CPU allow specified the detailed CPU topology inside the vmi. +optional | [optional] -**devices** | [**V1Devices**](V1Devices.md) | Devices allows adding disks, network interfaces, ... | -**features** | [**V1Features**](V1Features.md) | Features like acpi, apic, hyperv, smm. +optional | [optional] -**firmware** | [**V1Firmware**](V1Firmware.md) | Firmware. +optional | [optional] -**io_threads_policy** | [**V1IOThreadsPolicy**](V1IOThreadsPolicy.md) | Controls whether or not disks will share IOThreads. Omitting IOThreadsPolicy disables use of IOThreads. One of: shared, auto +optional | [optional] -**machine** | [**V1Machine**](V1Machine.md) | Machine type. +optional | [optional] -**memory** | [**V1Memory**](V1Memory.md) | Memory allow specifying the VMI memory features. +optional | [optional] +**chassis** | [**V1Chassis**](V1Chassis.md) | Chassis specifies the chassis info passed to the domain. | [optional] +**clock** | [**V1Clock**](V1Clock.md) | Clock sets the clock and timers of the vmi. | [optional] +**cpu** | [**V1CPU**](V1CPU.md) | CPU allow specified the detailed CPU topology inside the vmi. | [optional] +**devices** | [**V1Devices**](V1Devices.md) | Devices allows adding disks, network interfaces, and others | +**features** | [**V1Features**](V1Features.md) | Features like acpi, apic, hyperv, smm. | [optional] +**firmware** | [**V1Firmware**](V1Firmware.md) | Firmware. | [optional] +**io_threads_policy** | **str** | Controls whether or not disks will share IOThreads. Omitting IOThreadsPolicy disables use of IOThreads. One of: shared, auto | [optional] +**machine** | [**V1Machine**](V1Machine.md) | Machine type. | [optional] +**memory** | [**V1Memory**](V1Memory.md) | Memory allow specifying the VMI memory features. | [optional] **resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | Resources describes the Compute Resources required by this vmi. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1EFI.md b/docs/V1EFI.md new file mode 100644 index 00000000..3579df8d --- /dev/null +++ b/docs/V1EFI.md @@ -0,0 +1,9 @@ +# V1EFI + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1EmptyDiskSource.md b/docs/V1EmptyDiskSource.md index 8102ed31..c4a0f1b5 100644 --- a/docs/V1EmptyDiskSource.md +++ b/docs/V1EmptyDiskSource.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**capacity** | **str** | Capacity of the sparse disk. | +**capacity** | [**ResourceQuantity**](ResourceQuantity.md) | Capacity of the sparse disk. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1EphemeralVolumeSource.md b/docs/V1EphemeralVolumeSource.md index 8fdf747b..b0193d83 100644 --- a/docs/V1EphemeralVolumeSource.md +++ b/docs/V1EphemeralVolumeSource.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**persistent_volume_claim** | [**V1PersistentVolumeClaimVolumeSource**](V1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims +optional | [optional] +**persistent_volume_claim** | [**V1PersistentVolumeClaimVolumeSource**](V1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1FeatureAPIC.md b/docs/V1FeatureAPIC.md index c3307cc6..70d5625a 100644 --- a/docs/V1FeatureAPIC.md +++ b/docs/V1FeatureAPIC.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**enabled** | **bool** | Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. +optional | [optional] -**end_of_interrupt** | **bool** | EndOfInterrupt enables the end of interrupt notification in the guest. Defaults to false. +optional | [optional] +**enabled** | **bool** | Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. | [optional] +**end_of_interrupt** | **bool** | EndOfInterrupt enables the end of interrupt notification in the guest. Defaults to false. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1FeatureHyperv.md b/docs/V1FeatureHyperv.md index 64d9dc66..9aa4681b 100644 --- a/docs/V1FeatureHyperv.md +++ b/docs/V1FeatureHyperv.md @@ -3,20 +3,20 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**evmcs** | [**V1FeatureState**](V1FeatureState.md) | EVMCS Speeds up L2 vmexits, but disables other virtualization features. Requires vapic. Defaults to the machine type setting. +optional | [optional] -**frequencies** | [**V1FeatureState**](V1FeatureState.md) | Frequencies improves the TSC clock source handling for Hyper-V on KVM. Defaults to the machine type setting. +optional | [optional] -**ipi** | [**V1FeatureState**](V1FeatureState.md) | IPI improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. +optional | [optional] -**reenlightenment** | [**V1FeatureState**](V1FeatureState.md) | Reenlightenment enables the notifications on TSC frequency changes. Defaults to the machine type setting. +optional | [optional] -**relaxed** | [**V1FeatureState**](V1FeatureState.md) | Relaxed instructs the guest OS to disable watchdog timeouts. Defaults to the machine type setting. +optional | [optional] -**reset** | [**V1FeatureState**](V1FeatureState.md) | Reset enables Hyperv reboot/reset for the vmi. Requires synic. Defaults to the machine type setting. +optional | [optional] -**runtime** | [**V1FeatureState**](V1FeatureState.md) | Runtime improves the time accounting to improve scheduling in the guest. Defaults to the machine type setting. +optional | [optional] -**spinlocks** | [**V1FeatureSpinlocks**](V1FeatureSpinlocks.md) | Spinlocks allows to configure the spinlock retry attempts. +optional | [optional] -**synic** | [**V1FeatureState**](V1FeatureState.md) | SyNIC enables the Synthetic Interrupt Controller. Defaults to the machine type setting. +optional | [optional] -**synictimer** | [**V1FeatureState**](V1FeatureState.md) | SyNICTimer enables Synthetic Interrupt Controller Timers, reducing CPU load. Defaults to the machine type setting. +optional | [optional] -**tlbflush** | [**V1FeatureState**](V1FeatureState.md) | TLBFlush improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. +optional | [optional] -**vapic** | [**V1FeatureState**](V1FeatureState.md) | VAPIC improves the paravirtualized handling of interrupts. Defaults to the machine type setting. +optional | [optional] -**vendorid** | [**V1FeatureVendorID**](V1FeatureVendorID.md) | VendorID allows setting the hypervisor vendor id. Defaults to the machine type setting. +optional | [optional] -**vpindex** | [**V1FeatureState**](V1FeatureState.md) | VPIndex enables the Virtual Processor Index to help windows identifying virtual processors. Defaults to the machine type setting. +optional | [optional] +**evmcs** | [**V1FeatureState**](V1FeatureState.md) | EVMCS Speeds up L2 vmexits, but disables other virtualization features. Requires vapic. Defaults to the machine type setting. | [optional] +**frequencies** | [**V1FeatureState**](V1FeatureState.md) | Frequencies improves the TSC clock source handling for Hyper-V on KVM. Defaults to the machine type setting. | [optional] +**ipi** | [**V1FeatureState**](V1FeatureState.md) | IPI improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. | [optional] +**reenlightenment** | [**V1FeatureState**](V1FeatureState.md) | Reenlightenment enables the notifications on TSC frequency changes. Defaults to the machine type setting. | [optional] +**relaxed** | [**V1FeatureState**](V1FeatureState.md) | Relaxed instructs the guest OS to disable watchdog timeouts. Defaults to the machine type setting. | [optional] +**reset** | [**V1FeatureState**](V1FeatureState.md) | Reset enables Hyperv reboot/reset for the vmi. Requires synic. Defaults to the machine type setting. | [optional] +**runtime** | [**V1FeatureState**](V1FeatureState.md) | Runtime improves the time accounting to improve scheduling in the guest. Defaults to the machine type setting. | [optional] +**spinlocks** | [**V1FeatureSpinlocks**](V1FeatureSpinlocks.md) | Spinlocks allows to configure the spinlock retry attempts. | [optional] +**synic** | [**V1FeatureState**](V1FeatureState.md) | SyNIC enables the Synthetic Interrupt Controller. Defaults to the machine type setting. | [optional] +**synictimer** | [**V1FeatureState**](V1FeatureState.md) | SyNICTimer enables Synthetic Interrupt Controller Timers, reducing CPU load. Defaults to the machine type setting. | [optional] +**tlbflush** | [**V1FeatureState**](V1FeatureState.md) | TLBFlush improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. | [optional] +**vapic** | [**V1FeatureState**](V1FeatureState.md) | VAPIC improves the paravirtualized handling of interrupts. Defaults to the machine type setting. | [optional] +**vendorid** | [**V1FeatureVendorID**](V1FeatureVendorID.md) | VendorID allows setting the hypervisor vendor id. Defaults to the machine type setting. | [optional] +**vpindex** | [**V1FeatureState**](V1FeatureState.md) | VPIndex enables the Virtual Processor Index to help windows identifying virtual processors. Defaults to the machine type setting. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1FeatureSpinlocks.md b/docs/V1FeatureSpinlocks.md index 3254b54e..12576a2a 100644 --- a/docs/V1FeatureSpinlocks.md +++ b/docs/V1FeatureSpinlocks.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**enabled** | **bool** | Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. +optional | [optional] -**spinlocks** | **int** | Retries indicates the number of retries. Must be a value greater or equal 4096. Defaults to 4096. +optional | [optional] +**enabled** | **bool** | Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. | [optional] +**spinlocks** | **int** | Retries indicates the number of retries. Must be a value greater or equal 4096. Defaults to 4096. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1FeatureState.md b/docs/V1FeatureState.md index ec293129..1d7b5089 100644 --- a/docs/V1FeatureState.md +++ b/docs/V1FeatureState.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**enabled** | **bool** | Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. +optional | [optional] +**enabled** | **bool** | Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1FeatureVendorID.md b/docs/V1FeatureVendorID.md index c41349a5..f2ed1df4 100644 --- a/docs/V1FeatureVendorID.md +++ b/docs/V1FeatureVendorID.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**enabled** | **bool** | Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. +optional | [optional] +**enabled** | **bool** | Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. | [optional] **vendorid** | **str** | VendorID sets the hypervisor vendor id, visible to the vmi. String up to twelve characters. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Features.md b/docs/V1Features.md index 43d73bc6..6f563c6a 100644 --- a/docs/V1Features.md +++ b/docs/V1Features.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**acpi** | [**V1FeatureState**](V1FeatureState.md) | ACPI enables/disables ACPI insidejsondata guest. Defaults to enabled. +optional | [optional] -**apic** | [**V1FeatureAPIC**](V1FeatureAPIC.md) | Defaults to the machine type setting. +optional | [optional] -**hyperv** | [**V1FeatureHyperv**](V1FeatureHyperv.md) | Defaults to the machine type setting. +optional | [optional] -**smm** | [**V1FeatureState**](V1FeatureState.md) | SMM enables/disables System Management Mode. TSEG not yet implemented. +optional | [optional] +**acpi** | [**V1FeatureState**](V1FeatureState.md) | ACPI enables/disables ACPI insidejsondata guest. Defaults to enabled. | [optional] +**apic** | [**V1FeatureAPIC**](V1FeatureAPIC.md) | Defaults to the machine type setting. | [optional] +**hyperv** | [**V1FeatureHyperv**](V1FeatureHyperv.md) | Defaults to the machine type setting. | [optional] +**smm** | [**V1FeatureState**](V1FeatureState.md) | SMM enables/disables System Management Mode. TSEG not yet implemented. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1FieldsV1.md b/docs/V1FieldsV1.md new file mode 100644 index 00000000..1a3c533b --- /dev/null +++ b/docs/V1FieldsV1.md @@ -0,0 +1,9 @@ +# V1FieldsV1 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Firmware.md b/docs/V1Firmware.md index b485bc1e..17be78a0 100644 --- a/docs/V1Firmware.md +++ b/docs/V1Firmware.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bootloader** | [**V1Bootloader**](V1Bootloader.md) | Settings to control the bootloader that is used. +optional | [optional] +**bootloader** | [**V1Bootloader**](V1Bootloader.md) | Settings to control the bootloader that is used. | [optional] **serial** | **str** | The system-serial-number in SMBIOS | [optional] **uuid** | **str** | UUID reported by the vmi bios. Defaults to a random generated uid. | [optional] diff --git a/docs/V1FloppyTarget.md b/docs/V1FloppyTarget.md index 04dafe27..e6677666 100644 --- a/docs/V1FloppyTarget.md +++ b/docs/V1FloppyTarget.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **readonly** | **bool** | ReadOnly. Defaults to false. | [optional] -**tray** | **str** | Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\". Defaults to closed. +optional | [optional] +**tray** | **str** | Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\". Defaults to closed. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1HPETTimer.md b/docs/V1HPETTimer.md index 777e2693..b09d0c55 100644 --- a/docs/V1HPETTimer.md +++ b/docs/V1HPETTimer.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**present** | **bool** | Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional | [optional] +**present** | **bool** | Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. | [optional] **tick_policy** | **str** | TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest. One of \"delay\", \"catchup\", \"merge\", \"discard\". | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1HostDisk.md b/docs/V1HostDisk.md index b766d65d..d94832ad 100644 --- a/docs/V1HostDisk.md +++ b/docs/V1HostDisk.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**capacity** | **str** | Capacity of the sparse disk +optional | [optional] +**capacity** | [**ResourceQuantity**](ResourceQuantity.md) | Capacity of the sparse disk | [optional] **path** | **str** | The path to HostDisk image located on the cluster | **shared** | **bool** | Shared indicate whether the path is shared between nodes | [optional] **type** | **str** | Contains information if disk.img exists or should be created allowed options are 'Disk' and 'DiskOrCreate' | diff --git a/docs/V1HypervTimer.md b/docs/V1HypervTimer.md index 675585f8..23e2e72d 100644 --- a/docs/V1HypervTimer.md +++ b/docs/V1HypervTimer.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**present** | **bool** | Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional | [optional] +**present** | **bool** | Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Interface.md b/docs/V1Interface.md index 6db5426d..4566a6f0 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -3,18 +3,18 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**boot_order** | **int** | BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each interface or disk that has a boot order must have a unique value. Interfaces without a boot order are not tried. +optional | [optional] +**boot_order** | **int** | BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each interface or disk that has a boot order must have a unique value. Interfaces without a boot order are not tried. | [optional] **bridge** | [**V1InterfaceBridge**](V1InterfaceBridge.md) | | [optional] -**dhcp_options** | [**V1DHCPOptions**](V1DHCPOptions.md) | If specified the network interface will pass additional DHCP options to the VMI +optional | [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] **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. | -**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] +**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] **ports** | [**list[V1Port]**](V1Port.md) | List of ports to be forwarded to the virtual machine. | [optional] **slirp** | [**V1InterfaceSlirp**](V1InterfaceSlirp.md) | | [optional] **sriov** | [**V1InterfaceSRIOV**](V1InterfaceSRIOV.md) | | [optional] -**tag** | **str** | If specified, the virtual network interface address and its tag will be provided to the guest via config drive +optional | [optional] +**tag** | **str** | If specified, the virtual network interface address and its tag will be provided to the guest via config drive | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1InterfaceBridge.md b/docs/V1InterfaceBridge.md new file mode 100644 index 00000000..d838766c --- /dev/null +++ b/docs/V1InterfaceBridge.md @@ -0,0 +1,9 @@ +# V1InterfaceBridge + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1InterfaceMasquerade.md b/docs/V1InterfaceMasquerade.md new file mode 100644 index 00000000..9e1e434c --- /dev/null +++ b/docs/V1InterfaceMasquerade.md @@ -0,0 +1,9 @@ +# V1InterfaceMasquerade + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1InterfaceSRIOV.md b/docs/V1InterfaceSRIOV.md new file mode 100644 index 00000000..f35a9878 --- /dev/null +++ b/docs/V1InterfaceSRIOV.md @@ -0,0 +1,9 @@ +# V1InterfaceSRIOV + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1InterfaceSlirp.md b/docs/V1InterfaceSlirp.md new file mode 100644 index 00000000..372a1b77 --- /dev/null +++ b/docs/V1InterfaceSlirp.md @@ -0,0 +1,9 @@ +# V1InterfaceSlirp + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1KVMTimer.md b/docs/V1KVMTimer.md index 4ca3c9db..7e432158 100644 --- a/docs/V1KVMTimer.md +++ b/docs/V1KVMTimer.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**present** | **bool** | Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional | [optional] +**present** | **bool** | Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1LabelSelector.md b/docs/V1LabelSelector.md index 1e0f7538..bb3c52d2 100644 --- a/docs/V1LabelSelector.md +++ b/docs/V1LabelSelector.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **match_expressions** | [**list[V1LabelSelectorRequirement]**](V1LabelSelectorRequirement.md) | matchExpressions is a list of label selector requirements. The requirements are ANDed. | [optional] -**match_labels** | **object** | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. | [optional] +**match_labels** | **dict(str, str)** | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1ManagedFieldsEntry.md b/docs/V1ManagedFieldsEntry.md index ad8a7281..d031ca61 100644 --- a/docs/V1ManagedFieldsEntry.md +++ b/docs/V1ManagedFieldsEntry.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. | [optional] **fields_type** | **str** | FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\" | [optional] -**fields_v1** | **str** | FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type. | [optional] +**fields_v1** | [**V1FieldsV1**](V1FieldsV1.md) | FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type. | [optional] **manager** | **str** | Manager is an identifier of the workflow managing these fields. | [optional] **operation** | **str** | Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. | [optional] -**time** | **str** | Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' | [optional] +**time** | [**V1Time**](V1Time.md) | Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Memory.md b/docs/V1Memory.md index 43b52499..653413f9 100644 --- a/docs/V1Memory.md +++ b/docs/V1Memory.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**guest** | **str** | Guest allows to specifying the amount of memory which is visible inside the Guest OS. The Guest must lie between Requests and Limits from the resources section. Defaults to the requested memory in the resources section if not specified. + optional | [optional] -**hugepages** | [**V1Hugepages**](V1Hugepages.md) | Hugepages allow to use hugepages for the VirtualMachineInstance instead of regular memory. +optional | [optional] +**guest** | [**ResourceQuantity**](ResourceQuantity.md) | Guest allows to specifying the amount of memory which is visible inside the Guest OS. The Guest must lie between Requests and Limits from the resources section. Defaults to the requested memory in the resources section if not specified. | [optional] +**hugepages** | [**V1Hugepages**](V1Hugepages.md) | Hugepages allow to use hugepages for the VirtualMachineInstance instead of regular memory. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1ObjectMeta.md b/docs/V1ObjectMeta.md index c1e565e7..7f919627 100644 --- a/docs/V1ObjectMeta.md +++ b/docs/V1ObjectMeta.md @@ -3,14 +3,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **object** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations | [optional] +**annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations | [optional] **cluster_name** | **str** | The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. | [optional] **deletion_grace_period_seconds** | **int** | Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. | [optional] -**deletion_timestamp** | **str** | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**deletion_timestamp** | [**V1Time**](V1Time.md) | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] **finalizers** | **list[str]** | Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. | [optional] **generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency | [optional] **generation** | **int** | A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. | [optional] -**labels** | **object** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels | [optional] +**labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels | [optional] **managed_fields** | [**list[V1ManagedFieldsEntry]**](V1ManagedFieldsEntry.md) | ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. | [optional] **name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] **namespace** | **str** | Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces | [optional] diff --git a/docs/V1PITTimer.md b/docs/V1PITTimer.md index da82224d..892f35c9 100644 --- a/docs/V1PITTimer.md +++ b/docs/V1PITTimer.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**present** | **bool** | Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional | [optional] +**present** | **bool** | Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. | [optional] **tick_policy** | **str** | TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest. One of \"delay\", \"catchup\", \"discard\". | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Patch.md b/docs/V1Patch.md new file mode 100644 index 00000000..ae7a0e23 --- /dev/null +++ b/docs/V1Patch.md @@ -0,0 +1,9 @@ +# V1Patch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PersistentVolumeClaimSpec.md b/docs/V1PersistentVolumeClaimSpec.md index 06288b59..74fc7860 100644 --- a/docs/V1PersistentVolumeClaimSpec.md +++ b/docs/V1PersistentVolumeClaimSpec.md @@ -3,12 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**access_modes** | [**list[V1PersistentVolumeAccessMode]**](V1PersistentVolumeAccessMode.md) | AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] +**access_modes** | **list[str]** | AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] **data_source** | [**V1TypedLocalObjectReference**](V1TypedLocalObjectReference.md) | This field requires the VolumeSnapshotDataSource alpha feature gate to be enabled and currently VolumeSnapshot is the only supported data source. If the provisioner can support VolumeSnapshot data source, it will create a new volume and data will be restored to the volume at the same time. If the provisioner does not support VolumeSnapshot data source, volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. | [optional] **resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources | [optional] **selector** | [**V1LabelSelector**](V1LabelSelector.md) | A label query over volumes to consider for binding. | [optional] **storage_class_name** | **str** | Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] -**volume_mode** | [**V1PersistentVolumeMode**](V1PersistentVolumeMode.md) | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is a beta feature. | [optional] +**volume_mode** | **str** | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is a beta feature. | [optional] **volume_name** | **str** | VolumeName is the binding reference to the PersistentVolume backing this claim. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Port.md b/docs/V1Port.md index 05f6431c..9f968595 100644 --- a/docs/V1Port.md +++ b/docs/V1Port.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. +optional | [optional] +**name** | **str** | If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. | [optional] **port** | **int** | Number of port to expose for the virtual machine. This must be a valid port number, 0 < x < 65536. | -**protocol** | **str** | Protocol for port. Must be UDP or TCP. Defaults to \"TCP\". +optional | [optional] +**protocol** | **str** | Protocol for port. Must be UDP or TCP. Defaults to \"TCP\". | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Preconditions.md b/docs/V1Preconditions.md index 3aeb3a1b..1899cb85 100644 --- a/docs/V1Preconditions.md +++ b/docs/V1Preconditions.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **resource_version** | **str** | Specifies the target ResourceVersion | [optional] -**uid** | [**TypesUID**](TypesUID.md) | Specifies the target UID. | [optional] +**uid** | **str** | Specifies the target UID. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Probe.md b/docs/V1Probe.md index ad3f7941..65b8a60f 100644 --- a/docs/V1Probe.md +++ b/docs/V1Probe.md @@ -3,13 +3,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**failure_threshold** | **int** | Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. +optional | [optional] -**http_get** | [**V1HTTPGetAction**](V1HTTPGetAction.md) | HTTPGet specifies the http request to perform. +optional | [optional] -**initial_delay_seconds** | **int** | Number of seconds after the VirtualMachineInstance has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional | [optional] -**period_seconds** | **int** | How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. +optional | [optional] -**success_threshold** | **int** | Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. +optional | [optional] -**tcp_socket** | [**V1TCPSocketAction**](V1TCPSocketAction.md) | TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported +optional | [optional] -**timeout_seconds** | **int** | Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional | [optional] +**failure_threshold** | **int** | Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. | [optional] +**http_get** | [**V1HTTPGetAction**](V1HTTPGetAction.md) | HTTPGet specifies the http request to perform. | [optional] +**initial_delay_seconds** | **int** | Number of seconds after the VirtualMachineInstance has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes | [optional] +**period_seconds** | **int** | How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. | [optional] +**success_threshold** | **int** | Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. | [optional] +**tcp_socket** | [**V1TCPSocketAction**](V1TCPSocketAction.md) | TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported | [optional] +**timeout_seconds** | **int** | Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1RTCTimer.md b/docs/V1RTCTimer.md index a0b2c73c..6c6b4130 100644 --- a/docs/V1RTCTimer.md +++ b/docs/V1RTCTimer.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**present** | **bool** | Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional | [optional] +**present** | **bool** | Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. | [optional] **tick_policy** | **str** | TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest. One of \"delay\", \"catchup\". | [optional] **track** | **str** | Track the guest or the wall clock. | [optional] diff --git a/docs/V1ResourceRequirements.md b/docs/V1ResourceRequirements.md index b63a61a3..0bf414ec 100644 --- a/docs/V1ResourceRequirements.md +++ b/docs/V1ResourceRequirements.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**limits** | **object** | Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". +optional | [optional] +**limits** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". | [optional] **overcommit_guest_overhead** | **bool** | Don't ask the scheduler to take the guest-management overhead into account. Instead put the overhead only into the container's memory limit. This can lead to crashes if all memory is in use on a node. Defaults to false. | [optional] -**requests** | **object** | Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". +optional | [optional] +**requests** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1RestartOptions.md b/docs/V1RestartOptions.md index b03cc703..a3834a9c 100644 --- a/docs/V1RestartOptions.md +++ b/docs/V1RestartOptions.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**grace_period_seconds** | **int** | The duration in seconds before the object should be force-restared. Value must be non-negative integer. The value zero indicates, restart immediately. If this value is nil, the default grace period for deletion of the corresponding VMI for the specified type will be used to determine on how much time to give the VMI to restart. Defaults to a per object value if not specified. zero means restart immediately. Allowed Values: nil and 0 +optional | [optional] +**grace_period_seconds** | **int** | The duration in seconds before the object should be force-restared. Value must be non-negative integer. The value zero indicates, restart immediately. If this value is nil, the default grace period for deletion of the corresponding VMI for the specified type will be used to determine on how much time to give the VMI to restart. Defaults to a per object value if not specified. zero means restart immediately. Allowed Values: nil and 0 | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Rng.md b/docs/V1Rng.md new file mode 100644 index 00000000..b15458d5 --- /dev/null +++ b/docs/V1Rng.md @@ -0,0 +1,9 @@ +# V1Rng + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1SecretVolumeSource.md b/docs/V1SecretVolumeSource.md index 23cd7195..080ea079 100644 --- a/docs/V1SecretVolumeSource.md +++ b/docs/V1SecretVolumeSource.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**optional** | **bool** | Specify whether the Secret or it's keys must be defined +optional | [optional] -**secret_name** | **str** | Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret +optional | [optional] -**volume_label** | **str** | The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart). +optional | [optional] +**optional** | **bool** | Specify whether the Secret or it's keys must be defined | [optional] +**secret_name** | **str** | Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret | [optional] +**volume_label** | **str** | The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Time.md b/docs/V1Time.md new file mode 100644 index 00000000..63a5fb59 --- /dev/null +++ b/docs/V1Time.md @@ -0,0 +1,9 @@ +# V1Time + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1TypedLocalObjectReference.md b/docs/V1TypedLocalObjectReference.md index edd54e82..672198bc 100644 --- a/docs/V1TypedLocalObjectReference.md +++ b/docs/V1TypedLocalObjectReference.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_group** | **str** | APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. | +**api_group** | **str** | APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. | [optional] **kind** | **str** | Kind is the type of resource being referenced | **name** | **str** | Name is the name of resource being referenced | diff --git a/docs/V1VirtualMachineInstanceMigrationState.md b/docs/V1VirtualMachineInstanceMigrationState.md index 6f8539b6..51e3a5b2 100644 --- a/docs/V1VirtualMachineInstanceMigrationState.md +++ b/docs/V1VirtualMachineInstanceMigrationState.md @@ -6,12 +6,12 @@ Name | Type | Description | Notes **abort_requested** | **bool** | Indicates that the migration has been requested to abort | [optional] **abort_status** | **str** | Indicates the final status of the live migration abortion | [optional] **completed** | **bool** | Indicates the migration completed | [optional] -**end_timestamp** | **str** | The time the migration action ended | [optional] +**end_timestamp** | [**V1Time**](V1Time.md) | The time the migration action ended | [optional] **failed** | **bool** | Indicates that the migration failed | [optional] **migration_uid** | **str** | The VirtualMachineInstanceMigration object associated with this migration | [optional] **source_node** | **str** | The source node that the VMI originated on | [optional] -**start_timestamp** | **str** | The time the migration action began | [optional] -**target_direct_migration_node_ports** | **object** | The list of ports opened for live migration on the destination node | [optional] +**start_timestamp** | [**V1Time**](V1Time.md) | The time the migration action began | [optional] +**target_direct_migration_node_ports** | **dict(str, int)** | The list of ports opened for live migration on the destination node | [optional] **target_node** | **str** | The target node that the VMI is moving to | [optional] **target_node_address** | **str** | The address of the target node to use for the migration | [optional] **target_node_domain_detected** | **bool** | The Target Node has seen the Domain Start Event | [optional] diff --git a/docs/V1VirtualMachineInstanceReplicaSetSpec.md b/docs/V1VirtualMachineInstanceReplicaSetSpec.md index 2fcb5292..9cface83 100644 --- a/docs/V1VirtualMachineInstanceReplicaSetSpec.md +++ b/docs/V1VirtualMachineInstanceReplicaSetSpec.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**paused** | **bool** | Indicates that the replica set is paused. +optional | [optional] -**replicas** | **int** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. +optional | [optional] +**paused** | **bool** | Indicates that the replica set is paused. | [optional] +**replicas** | **int** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] **selector** | [**V1LabelSelector**](V1LabelSelector.md) | Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. | **template** | [**V1VirtualMachineInstanceTemplateSpec**](V1VirtualMachineInstanceTemplateSpec.md) | Template describes the pods that will be created. | diff --git a/docs/V1VirtualMachineInstanceReplicaSetStatus.md b/docs/V1VirtualMachineInstanceReplicaSetStatus.md index db932f41..9fada54d 100644 --- a/docs/V1VirtualMachineInstanceReplicaSetStatus.md +++ b/docs/V1VirtualMachineInstanceReplicaSetStatus.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **conditions** | [**list[V1VirtualMachineInstanceReplicaSetCondition]**](V1VirtualMachineInstanceReplicaSetCondition.md) | | [optional] **label_selector** | **str** | Canonical form of the label selector for HPA which consumes it through the scale subresource. | [optional] -**ready_replicas** | **int** | The number of ready replicas for this replica set. +optional | [optional] -**replicas** | **int** | Total number of non-terminated pods targeted by this deployment (their labels match the selector). +optional | [optional] +**ready_replicas** | **int** | The number of ready replicas for this replica set. | [optional] +**replicas** | **int** | Total number of non-terminated pods targeted by this deployment (their labels match the selector). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceSpec.md b/docs/V1VirtualMachineInstanceSpec.md index 5b1842f7..74685ee1 100644 --- a/docs/V1VirtualMachineInstanceSpec.md +++ b/docs/V1VirtualMachineInstanceSpec.md @@ -4,18 +4,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **affinity** | [**V1Affinity**](V1Affinity.md) | If affinity is specifies, obey all the affinity rules | [optional] -**dns_config** | [**V1PodDNSConfig**](V1PodDNSConfig.md) | Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. +optional | [optional] -**dns_policy** | **str** | Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. +optional | [optional] +**dns_config** | [**V1PodDNSConfig**](V1PodDNSConfig.md) | Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. | [optional] +**dns_policy** | **str** | Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. | [optional] **domain** | [**V1DomainSpec**](V1DomainSpec.md) | Specification of the desired behavior of the VirtualMachineInstance on the host. | -**eviction_strategy** | [**V1EvictionStrategy**](V1EvictionStrategy.md) | EvictionStrategy can be set to \"LiveMigrate\" if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain. | [optional] -**hostname** | **str** | Specifies the hostname of the vmi If not specified, the hostname will be set to the name of the vmi, if dhcp or cloud-init is configured properly. +optional | [optional] -**liveness_probe** | [**V1Probe**](V1Probe.md) | Periodic probe of VirtualMachineInstance liveness. VirtualmachineInstances will be stopped if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional | [optional] +**eviction_strategy** | **str** | EvictionStrategy can be set to \"LiveMigrate\" if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain. | [optional] +**hostname** | **str** | Specifies the hostname of the vmi If not specified, the hostname will be set to the name of the vmi, if dhcp or cloud-init is configured properly. | [optional] +**liveness_probe** | [**V1Probe**](V1Probe.md) | Periodic probe of VirtualMachineInstance liveness. VirtualmachineInstances will be stopped if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes | [optional] **networks** | [**list[V1Network]**](V1Network.md) | List of networks that can be attached to a vm's virtual interface. | [optional] -**node_selector** | **object** | NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional | [optional] -**priority_class_name** | **str** | If specified, indicates the pod's priority. If not specified, the pod priority will be default or zero if there is no default. +optional | [optional] -**readiness_probe** | [**V1Probe**](V1Probe.md) | Periodic probe of VirtualMachineInstance service readiness. VirtualmachineInstances will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional | [optional] -**scheduler_name** | **str** | If specified, the VMI will be dispatched by specified scheduler. If not specified, the VMI will be dispatched by default scheduler. +optional | [optional] -**subdomain** | **str** | If specified, the fully qualified vmi hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the vmi will not have a domainname at all. The DNS entry will resolve to the vmi, no matter if the vmi itself can pick up a hostname. +optional | [optional] +**node_selector** | **dict(str, str)** | NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ | [optional] +**priority_class_name** | **str** | If specified, indicates the pod's priority. If not specified, the pod priority will be default or zero if there is no default. | [optional] +**readiness_probe** | [**V1Probe**](V1Probe.md) | Periodic probe of VirtualMachineInstance service readiness. VirtualmachineInstances will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes | [optional] +**scheduler_name** | **str** | If specified, the VMI will be dispatched by specified scheduler. If not specified, the VMI will be dispatched by default scheduler. | [optional] +**subdomain** | **str** | If specified, the fully qualified vmi hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the vmi will not have a domainname at all. The DNS entry will resolve to the vmi, no matter if the vmi itself can pick up a hostname. | [optional] **termination_grace_period_seconds** | **int** | Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. | [optional] **tolerations** | [**list[V1Toleration]**](V1Toleration.md) | If toleration is specified, obey all the toleration rules. | [optional] **volumes** | [**list[V1Volume]**](V1Volume.md) | List of volumes that can be mounted by disks belonging to the vmi. | [optional] diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index 2550eda4..210a3576 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**active_pods** | **object** | ActivePods is a mapping of pod UID to node name. It is possible for multiple pods to be running for a single VMI during migration. | [optional] +**active_pods** | **dict(str, str)** | ActivePods is a mapping of pod UID to node name. It is possible for multiple pods to be running for a single VMI during migration. | [optional] **conditions** | [**list[V1VirtualMachineInstanceCondition]**](V1VirtualMachineInstanceCondition.md) | Conditions are specific points in VirtualMachineInstance's pod runtime. | [optional] **guest_os_info** | [**V1VirtualMachineInstanceGuestOSInfo**](V1VirtualMachineInstanceGuestOSInfo.md) | Guest OS Information | [optional] **interfaces** | [**list[V1VirtualMachineInstanceNetworkInterface]**](V1VirtualMachineInstanceNetworkInterface.md) | Interfaces represent the details of available network interfaces. | [optional] @@ -11,8 +11,8 @@ Name | Type | Description | Notes **migration_state** | [**V1VirtualMachineInstanceMigrationState**](V1VirtualMachineInstanceMigrationState.md) | Represents the status of a live migration | [optional] **node_name** | **str** | NodeName is the name where the VirtualMachineInstance is currently running. | [optional] **phase** | **str** | Phase is the status of the VirtualMachineInstance in kubernetes world. It is not the VirtualMachineInstance status, but partially correlates to it. | [optional] -**qos_class** | [**V1PodQOSClass**](V1PodQOSClass.md) | The Quality of Service (QOS) classification assigned to the virtual machine instance based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md +optional | [optional] -**reason** | **str** | A brief CamelCase message indicating details about why the VMI is in this state. e.g. 'NodeUnresponsive' +optional | [optional] +**qos_class** | **str** | The Quality of Service (QOS) classification assigned to the virtual machine instance based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md | [optional] +**reason** | **str** | A brief CamelCase message indicating details about why the VMI is in this state. e.g. 'NodeUnresponsive' | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineSpec.md b/docs/V1VirtualMachineSpec.md index 738f9e21..b551368b 100644 --- a/docs/V1VirtualMachineSpec.md +++ b/docs/V1VirtualMachineSpec.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data_volume_templates** | [**list[V1alpha1DataVolume]**](V1alpha1DataVolume.md) | dataVolumeTemplates is a list of dataVolumes that the VirtualMachineInstance template can reference. DataVolumes in this list are dynamically created for the VirtualMachine and are tied to the VirtualMachine's life-cycle. | [optional] -**run_strategy** | [**V1VirtualMachineRunStrategy**](V1VirtualMachineRunStrategy.md) | Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running | [optional] +**run_strategy** | **str** | Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running | [optional] **running** | **bool** | Running controls whether the associatied VirtualMachineInstance is created or not Mutually exclusive with RunStrategy | [optional] **template** | [**V1VirtualMachineInstanceTemplateSpec**](V1VirtualMachineInstanceTemplateSpec.md) | Template is the direct specification of VirtualMachineInstance | diff --git a/docs/V1VirtualMachineStateChangeRequest.md b/docs/V1VirtualMachineStateChangeRequest.md index 10b3a8b2..c99ca826 100644 --- a/docs/V1VirtualMachineStateChangeRequest.md +++ b/docs/V1VirtualMachineStateChangeRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action** | **str** | Indicates the type of action that is requested. e.g. Start or Stop | -**data** | **object** | Provides additional data in order to perform the Action | [optional] -**uid** | [**TypesUID**](TypesUID.md) | Indicates the UUID of an existing Virtual Machine Instance that this change request applies to -- if applicable | [optional] +**data** | **dict(str, str)** | Provides additional data in order to perform the Action | [optional] +**uid** | **str** | Indicates the UUID of an existing Virtual Machine Instance that this change request applies to -- if applicable | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Volume.md b/docs/V1Volume.md index bf9bc9e4..e26fb36f 100644 --- a/docs/V1Volume.md +++ b/docs/V1Volume.md @@ -3,18 +3,18 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cloud_init_config_drive** | [**V1CloudInitConfigDriveSource**](V1CloudInitConfigDriveSource.md) | CloudInitConfigDrive represents a cloud-init Config Drive user-data source. The Config Drive data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: https://cloudinit.readthedocs.io/en/latest/topics/datasources/configdrive.html +optional | [optional] -**cloud_init_no_cloud** | [**V1CloudInitNoCloudSource**](V1CloudInitNoCloudSource.md) | CloudInitNoCloud represents a cloud-init NoCloud user-data source. The NoCloud data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html +optional | [optional] -**config_map** | [**V1ConfigMapVolumeSource**](V1ConfigMapVolumeSource.md) | ConfigMapSource represents a reference to a ConfigMap in the same namespace. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/ +optional | [optional] -**container_disk** | [**V1ContainerDiskSource**](V1ContainerDiskSource.md) | ContainerDisk references a docker image, embedding a qcow or raw disk. More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html +optional | [optional] -**data_volume** | [**V1DataVolumeSource**](V1DataVolumeSource.md) | DataVolume represents the dynamic creation a PVC for this volume as well as the process of populating that PVC with a disk image. +optional | [optional] -**empty_disk** | [**V1EmptyDiskSource**](V1EmptyDiskSource.md) | EmptyDisk represents a temporary disk which shares the vmis lifecycle. More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html +optional | [optional] -**ephemeral** | [**V1EphemeralVolumeSource**](V1EphemeralVolumeSource.md) | Ephemeral is a special volume source that \"wraps\" specified source and provides copy-on-write image on top of it. +optional | [optional] -**host_disk** | [**V1HostDisk**](V1HostDisk.md) | HostDisk represents a disk created on the cluster level +optional | [optional] +**cloud_init_config_drive** | [**V1CloudInitConfigDriveSource**](V1CloudInitConfigDriveSource.md) | CloudInitConfigDrive represents a cloud-init Config Drive user-data source. The Config Drive data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: https://cloudinit.readthedocs.io/en/latest/topics/datasources/configdrive.html | [optional] +**cloud_init_no_cloud** | [**V1CloudInitNoCloudSource**](V1CloudInitNoCloudSource.md) | CloudInitNoCloud represents a cloud-init NoCloud user-data source. The NoCloud data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html | [optional] +**config_map** | [**V1ConfigMapVolumeSource**](V1ConfigMapVolumeSource.md) | ConfigMapSource represents a reference to a ConfigMap in the same namespace. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/ | [optional] +**container_disk** | [**V1ContainerDiskSource**](V1ContainerDiskSource.md) | ContainerDisk references a docker image, embedding a qcow or raw disk. More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html | [optional] +**data_volume** | [**V1DataVolumeSource**](V1DataVolumeSource.md) | DataVolume represents the dynamic creation a PVC for this volume as well as the process of populating that PVC with a disk image. | [optional] +**empty_disk** | [**V1EmptyDiskSource**](V1EmptyDiskSource.md) | EmptyDisk represents a temporary disk which shares the vmis lifecycle. More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html | [optional] +**ephemeral** | [**V1EphemeralVolumeSource**](V1EphemeralVolumeSource.md) | Ephemeral is a special volume source that \"wraps\" specified source and provides copy-on-write image on top of it. | [optional] +**host_disk** | [**V1HostDisk**](V1HostDisk.md) | HostDisk represents a disk created on the cluster level | [optional] **name** | **str** | Volume's name. Must be a DNS_LABEL and unique within the vmi. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | -**persistent_volume_claim** | [**V1PersistentVolumeClaimVolumeSource**](V1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims +optional | [optional] -**secret** | [**V1SecretVolumeSource**](V1SecretVolumeSource.md) | SecretVolumeSource represents a reference to a secret data in the same namespace. More info: https://kubernetes.io/docs/concepts/configuration/secret/ +optional | [optional] -**service_account** | [**V1ServiceAccountVolumeSource**](V1ServiceAccountVolumeSource.md) | ServiceAccountVolumeSource represents a reference to a service account. There can only be one volume of this type! More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ +optional | [optional] +**persistent_volume_claim** | [**V1PersistentVolumeClaimVolumeSource**](V1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] +**secret** | [**V1SecretVolumeSource**](V1SecretVolumeSource.md) | SecretVolumeSource represents a reference to a secret data in the same namespace. More info: https://kubernetes.io/docs/concepts/configuration/secret/ | [optional] +**service_account** | [**V1ServiceAccountVolumeSource**](V1ServiceAccountVolumeSource.md) | ServiceAccountVolumeSource represents a reference to a service account. There can only be one volume of this type! More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1WatchEvent.md b/docs/V1WatchEvent.md index 29bfe05e..33f02c74 100644 --- a/docs/V1WatchEvent.md +++ b/docs/V1WatchEvent.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**object** | **str** | | +**object** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context. | **type** | **str** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Watchdog.md b/docs/V1Watchdog.md index 4efce81b..f87d1169 100644 --- a/docs/V1Watchdog.md +++ b/docs/V1Watchdog.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**i6300esb** | [**V1I6300ESBWatchdog**](V1I6300ESBWatchdog.md) | i6300esb watchdog device. +optional | [optional] +**i6300esb** | [**V1I6300ESBWatchdog**](V1I6300ESBWatchdog.md) | i6300esb watchdog device. | [optional] **name** | **str** | Name of the watchdog. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1DataVolumeBlankImage.md b/docs/V1alpha1DataVolumeBlankImage.md new file mode 100644 index 00000000..c04bb808 --- /dev/null +++ b/docs/V1alpha1DataVolumeBlankImage.md @@ -0,0 +1,9 @@ +# V1alpha1DataVolumeBlankImage + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1DataVolumeSourceUpload.md b/docs/V1alpha1DataVolumeSourceUpload.md new file mode 100644 index 00000000..f77254af --- /dev/null +++ b/docs/V1alpha1DataVolumeSourceUpload.md @@ -0,0 +1,9 @@ +# V1alpha1DataVolumeSourceUpload + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 14a4fa55..9bcdcb66 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.28.0-173-g0f656230" + release_note="Auto-generated client v0.29.0-60-gc03721c2" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index ff5ac64e..bc6a3c5d 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -15,6 +15,15 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] INFO io.swagger.codegen.ignore.CodegenIgnoreProcessor - No .swagger-codegen-ignore file found. [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default appVersion set to 1.0.0 [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default version set to 1.0.0 +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/intstr_int_or_string.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_intstr_int_or_string.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/IntstrIntOrString.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/resource_quantity.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_resource_quantity.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/ResourceQuantity.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/runtime_raw_extension.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_runtime_raw_extension.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/RuntimeRawExtension.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_api_group.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_api_group.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1APIGroup.md @@ -30,6 +39,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_affinity.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_affinity.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Affinity.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_bios.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_bios.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1BIOS.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_bootloader.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_bootloader.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Bootloader.md @@ -87,6 +99,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_domain_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_domain_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DomainSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_efi.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_efi.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1EFI.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_empty_disk_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_empty_disk_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1EmptyDiskSource.md @@ -111,6 +126,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_features.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_features.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Features.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_fields_v1.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_fields_v1.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1FieldsV1.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_firmware.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_firmware.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Firmware.md @@ -150,6 +168,18 @@ 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.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Interface.md +[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_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 +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_interface_sriov.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface_sriov.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InterfaceSRIOV.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_interface_slirp.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface_slirp.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InterfaceSlirp.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_kvm_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kvm_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KVMTimer.md @@ -204,6 +234,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_pit_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pit_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PITTimer.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_patch.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_patch.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Patch.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_persistent_volume_claim_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_persistent_volume_claim_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PersistentVolumeClaimSpec.md @@ -249,6 +282,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_restart_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_restart_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1RestartOptions.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_rng.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_rng.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Rng.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_root_paths.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_root_paths.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1RootPaths.md @@ -273,6 +309,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_tcp_socket_action.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_tcp_socket_action.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1TCPSocketAction.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_time.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_time.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Time.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Timer.md @@ -399,6 +438,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/v1alpha1_data_volume.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolume.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_blank_image.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_blank_image.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeBlankImage.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSource.md @@ -414,290 +456,15 @@ 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/v1alpha1_data_volume_source_s3.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_source_s3.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSourceS3.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_source_upload.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_source_upload.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSourceUpload.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSpec.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeStatus.md -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_group_0` -[main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `get_api_resources_0` [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_default_api.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/DefaultApi.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index e22080d2..aafe66fa 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -14,11 +14,15 @@ from __future__ import absolute_import # import models into sdk package +from .models.intstr_int_or_string import IntstrIntOrString +from .models.resource_quantity import ResourceQuantity +from .models.runtime_raw_extension import RuntimeRawExtension from .models.v1_api_group import V1APIGroup from .models.v1_api_group_list import V1APIGroupList from .models.v1_api_resource import V1APIResource from .models.v1_api_resource_list import V1APIResourceList from .models.v1_affinity import V1Affinity +from .models.v1_bios import V1BIOS from .models.v1_bootloader import V1Bootloader from .models.v1_cd_rom_target import V1CDRomTarget from .models.v1_cpu import V1CPU @@ -38,6 +42,7 @@ from .models.v1_disk import V1Disk from .models.v1_disk_target import V1DiskTarget from .models.v1_domain_spec import V1DomainSpec +from .models.v1_efi import V1EFI from .models.v1_empty_disk_source import V1EmptyDiskSource from .models.v1_ephemeral_volume_source import V1EphemeralVolumeSource from .models.v1_feature_apic import V1FeatureAPIC @@ -46,6 +51,7 @@ from .models.v1_feature_state import V1FeatureState from .models.v1_feature_vendor_id import V1FeatureVendorID from .models.v1_features import V1Features +from .models.v1_fields_v1 import V1FieldsV1 from .models.v1_firmware import V1Firmware from .models.v1_floppy_target import V1FloppyTarget from .models.v1_gpu import V1GPU @@ -59,6 +65,10 @@ from .models.v1_i6300_esb_watchdog import V1I6300ESBWatchdog from .models.v1_input import V1Input from .models.v1_interface import V1Interface +from .models.v1_interface_bridge import V1InterfaceBridge +from .models.v1_interface_masquerade import V1InterfaceMasquerade +from .models.v1_interface_sriov import V1InterfaceSRIOV +from .models.v1_interface_slirp import V1InterfaceSlirp from .models.v1_kvm_timer import V1KVMTimer from .models.v1_label_selector import V1LabelSelector from .models.v1_label_selector_requirement import V1LabelSelectorRequirement @@ -77,6 +87,7 @@ from .models.v1_object_meta import V1ObjectMeta from .models.v1_owner_reference import V1OwnerReference from .models.v1_pit_timer import V1PITTimer +from .models.v1_patch import V1Patch from .models.v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec from .models.v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource from .models.v1_pod_affinity import V1PodAffinity @@ -92,6 +103,7 @@ from .models.v1_rtc_timer import V1RTCTimer from .models.v1_resource_requirements import V1ResourceRequirements from .models.v1_restart_options import V1RestartOptions +from .models.v1_rng import V1Rng from .models.v1_root_paths import V1RootPaths from .models.v1_secret_volume_source import V1SecretVolumeSource from .models.v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR @@ -100,6 +112,7 @@ from .models.v1_status_cause import V1StatusCause from .models.v1_status_details import V1StatusDetails from .models.v1_tcp_socket_action import V1TCPSocketAction +from .models.v1_time import V1Time from .models.v1_timer import V1Timer from .models.v1_toleration import V1Toleration from .models.v1_typed_local_object_reference import V1TypedLocalObjectReference @@ -142,11 +155,13 @@ from .models.v1_watchdog import V1Watchdog from .models.v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm from .models.v1alpha1_data_volume import V1alpha1DataVolume +from .models.v1alpha1_data_volume_blank_image import V1alpha1DataVolumeBlankImage from .models.v1alpha1_data_volume_source import V1alpha1DataVolumeSource from .models.v1alpha1_data_volume_source_http import V1alpha1DataVolumeSourceHTTP from .models.v1alpha1_data_volume_source_pvc import V1alpha1DataVolumeSourcePVC from .models.v1alpha1_data_volume_source_registry import V1alpha1DataVolumeSourceRegistry from .models.v1alpha1_data_volume_source_s3 import V1alpha1DataVolumeSourceS3 +from .models.v1alpha1_data_volume_source_upload import V1alpha1DataVolumeSourceUpload from .models.v1alpha1_data_volume_spec import V1alpha1DataVolumeSpec from .models.v1alpha1_data_volume_status import V1alpha1DataVolumeStatus diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 44aef0b2..4efb45fe 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.28.0-173-g0f656230/python' + self.user_agent = 'Swagger-Codegen/v0.29.0-60-gc03721c2/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index f3dc6c4f..3f621749 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -53,7 +53,7 @@ def check_health(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: None + :return: str If the method is called asynchronously, returns the request thread. """ @@ -77,7 +77,7 @@ def check_health_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: None + :return: str If the method is called asynchronously, returns the request thread. """ @@ -119,7 +119,7 @@ def check_health_with_http_info(self, **kwargs): select_header_content_type(['application/json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/healthz', 'GET', path_params, @@ -128,7 +128,7 @@ def check_health_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -136,7 +136,7 @@ def check_health_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def console(self, namespace, name, **kwargs): + def console(self, name, namespace, **kwargs): """ Open a websocket connection to a serial console on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an @@ -145,24 +145,24 @@ def console(self, namespace, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.console(namespace, name, callback=callback_function) + >>> thread = api.console(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.console_with_http_info(namespace, name, **kwargs) + return self.console_with_http_info(name, namespace, **kwargs) else: - (data) = self.console_with_http_info(namespace, name, **kwargs) + (data) = self.console_with_http_info(name, namespace, **kwargs) return data - def console_with_http_info(self, namespace, name, **kwargs): + def console_with_http_info(self, name, namespace, **kwargs): """ Open a websocket connection to a serial console on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an @@ -171,18 +171,18 @@ def console_with_http_info(self, namespace, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.console_with_http_info(namespace, name, callback=callback_function) + >>> thread = api.console_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'name'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -197,25 +197,21 @@ def console_with_http_info(self, namespace, name, **kwargs): ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `console`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): raise ValueError("Missing the required parameter `name` when calling `console`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `console`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `console`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `console`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -226,9 +222,9 @@ def console_with_http_info(self, namespace, name, **kwargs): body_params = None # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/console', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console', 'GET', path_params, query_params, header_params, @@ -311,8 +307,6 @@ def create_namespaced_virtual_machine_with_http_info(self, body, namespace, **kw if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `create_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -339,9 +333,9 @@ def create_namespaced_virtual_machine_with_http_info(self, body, namespace, **kw select_header_content_type(['application/json', 'application/yaml']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'POST', path_params, query_params, header_params, @@ -424,8 +418,6 @@ def create_namespaced_virtual_machine_instance_with_http_info(self, body, namesp if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_instance`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `create_namespaced_virtual_machine_instance`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -452,9 +444,9 @@ def create_namespaced_virtual_machine_instance_with_http_info(self, body, namesp select_header_content_type(['application/json', 'application/yaml']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'POST', path_params, query_params, header_params, @@ -537,8 +529,6 @@ def create_namespaced_virtual_machine_instance_migration_with_http_info(self, bo if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_instance_migration`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `create_namespaced_virtual_machine_instance_migration`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -565,9 +555,9 @@ def create_namespaced_virtual_machine_instance_migration_with_http_info(self, bo select_header_content_type(['application/json', 'application/yaml']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'POST', path_params, query_params, header_params, @@ -650,8 +640,6 @@ def create_namespaced_virtual_machine_instance_preset_with_http_info(self, body, if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_instance_preset`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `create_namespaced_virtual_machine_instance_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -678,9 +666,9 @@ def create_namespaced_virtual_machine_instance_preset_with_http_info(self, body, select_header_content_type(['application/json', 'application/yaml']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'POST', path_params, query_params, header_params, @@ -763,8 +751,6 @@ def create_namespaced_virtual_machine_instance_replica_set_with_http_info(self, if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_instance_replica_set`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `create_namespaced_virtual_machine_instance_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -791,9 +777,9 @@ def create_namespaced_virtual_machine_instance_replica_set_with_http_info(self, select_header_content_type(['application/json', 'application/yaml']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'POST', path_params, query_params, header_params, @@ -916,9 +902,9 @@ def delete_collection_namespaced_virtual_machine_with_http_info(self, **kwargs): select_header_accept(['application/json', 'application/yaml']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'DELETE', path_params, query_params, header_params, @@ -1041,9 +1027,9 @@ def delete_collection_namespaced_virtual_machine_instance_with_http_info(self, * select_header_accept(['application/json', 'application/yaml']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'DELETE', path_params, query_params, header_params, @@ -1166,9 +1152,9 @@ def delete_collection_namespaced_virtual_machine_instance_migration_with_http_in select_header_accept(['application/json', 'application/yaml']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'DELETE', path_params, query_params, header_params, @@ -1291,9 +1277,9 @@ def delete_collection_namespaced_virtual_machine_instance_preset_with_http_info( select_header_accept(['application/json', 'application/yaml']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'DELETE', path_params, query_params, header_params, @@ -1416,9 +1402,9 @@ def delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_ select_header_accept(['application/json', 'application/yaml']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'DELETE', path_params, query_params, header_params, @@ -1433,7 +1419,7 @@ def delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_ _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine(self, body, namespace, name, **kwargs): + def delete_namespaced_virtual_machine(self, name, namespace, body, **kwargs): """ Delete a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an @@ -1442,13 +1428,13 @@ def delete_namespaced_virtual_machine(self, body, namespace, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine(body, namespace, name, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1DeleteOptions body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. @@ -1458,12 +1444,12 @@ def delete_namespaced_virtual_machine(self, body, namespace, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_with_http_info(body, namespace, name, **kwargs) + return self.delete_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_with_http_info(body, namespace, name, **kwargs) + (data) = self.delete_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_with_http_info(self, body, namespace, name, **kwargs): + def delete_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): """ Delete a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an @@ -1472,13 +1458,13 @@ def delete_namespaced_virtual_machine_with_http_info(self, body, namespace, name >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_with_http_info(body, namespace, name, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1DeleteOptions body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. @@ -1487,7 +1473,7 @@ def delete_namespaced_virtual_machine_with_http_info(self, body, namespace, name returns the request thread. """ - all_params = ['body', 'namespace', 'name', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['name', 'namespace', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1502,28 +1488,24 @@ def delete_namespaced_virtual_machine_with_http_info(self, body, namespace, name ) params[key] = val del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `delete_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `delete_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] if 'grace_period_seconds' in params: @@ -1550,9 +1532,9 @@ def delete_namespaced_virtual_machine_with_http_info(self, body, namespace, name select_header_content_type(['application/json', 'application/yaml']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -1567,7 +1549,7 @@ def delete_namespaced_virtual_machine_with_http_info(self, body, namespace, name _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_instance(self, body, namespace, name, **kwargs): + def delete_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): """ Delete a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an @@ -1576,13 +1558,13 @@ def delete_namespaced_virtual_machine_instance(self, body, namespace, name, **kw >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance(body, namespace, name, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1DeleteOptions body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. @@ -1592,12 +1574,12 @@ def delete_namespaced_virtual_machine_instance(self, body, namespace, name, **kw """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, **kwargs) + return self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, **kwargs) + (data) = self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_instance_with_http_info(self, body, namespace, name, **kwargs): + def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): """ Delete a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an @@ -1606,13 +1588,13 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, body, namesp >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1DeleteOptions body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. @@ -1621,7 +1603,7 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, body, namesp returns the request thread. """ - all_params = ['body', 'namespace', 'name', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['name', 'namespace', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1636,28 +1618,24 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, body, namesp ) params[key] = val del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `delete_namespaced_virtual_machine_instance`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `delete_namespaced_virtual_machine_instance`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] if 'grace_period_seconds' in params: @@ -1684,9 +1662,9 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, body, namesp select_header_content_type(['application/json', 'application/yaml']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -1701,7 +1679,7 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, body, namesp _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_instance_migration(self, body, namespace, name, **kwargs): + def delete_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): """ Delete a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an @@ -1710,13 +1688,13 @@ def delete_namespaced_virtual_machine_instance_migration(self, body, namespace, >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_migration(body, namespace, name, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1DeleteOptions body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. @@ -1726,12 +1704,12 @@ def delete_namespaced_virtual_machine_instance_migration(self, body, namespace, """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, name, **kwargs) + return self.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, name, **kwargs) + (data) = self.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_instance_migration_with_http_info(self, body, namespace, name, **kwargs): + def delete_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, body, **kwargs): """ Delete a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an @@ -1740,13 +1718,13 @@ def delete_namespaced_virtual_machine_instance_migration_with_http_info(self, bo >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, name, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1DeleteOptions body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. @@ -1755,7 +1733,7 @@ def delete_namespaced_virtual_machine_instance_migration_with_http_info(self, bo returns the request thread. """ - all_params = ['body', 'namespace', 'name', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['name', 'namespace', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1770,28 +1748,24 @@ def delete_namespaced_virtual_machine_instance_migration_with_http_info(self, bo ) params[key] = val del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_migration`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_migration`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance_migration`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_migration`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_migration`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_migration`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `delete_namespaced_virtual_machine_instance_migration`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] if 'grace_period_seconds' in params: @@ -1818,9 +1792,9 @@ def delete_namespaced_virtual_machine_instance_migration_with_http_info(self, bo select_header_content_type(['application/json', 'application/yaml']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -1835,7 +1809,7 @@ def delete_namespaced_virtual_machine_instance_migration_with_http_info(self, bo _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_instance_preset(self, body, namespace, name, **kwargs): + def delete_namespaced_virtual_machine_instance_preset(self, name, namespace, body, **kwargs): """ Delete a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an @@ -1844,13 +1818,13 @@ def delete_namespaced_virtual_machine_instance_preset(self, body, namespace, nam >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_preset(body, namespace, name, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_preset(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1DeleteOptions body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. @@ -1860,12 +1834,12 @@ def delete_namespaced_virtual_machine_instance_preset(self, body, namespace, nam """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, **kwargs) + return self.delete_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, **kwargs) + (data) = self.delete_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, body, namespace, name, **kwargs): + def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, body, **kwargs): """ Delete a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an @@ -1874,13 +1848,13 @@ def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, body, >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1DeleteOptions body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. @@ -1889,7 +1863,7 @@ def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, body, returns the request thread. """ - all_params = ['body', 'namespace', 'name', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['name', 'namespace', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1904,28 +1878,24 @@ def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, body, ) params[key] = val del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_preset`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_preset`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance_preset`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_preset`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_preset`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `delete_namespaced_virtual_machine_instance_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] if 'grace_period_seconds' in params: @@ -1952,9 +1922,9 @@ def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, body, select_header_content_type(['application/json', 'application/yaml']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -1969,7 +1939,7 @@ def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, body, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_instance_replica_set(self, body, namespace, name, **kwargs): + def delete_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): """ Delete a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an @@ -1978,13 +1948,13 @@ def delete_namespaced_virtual_machine_instance_replica_set(self, body, namespace >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_replica_set(body, namespace, name, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1DeleteOptions body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. @@ -1994,12 +1964,12 @@ def delete_namespaced_virtual_machine_instance_replica_set(self, body, namespace """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, **kwargs) + return self.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, **kwargs) + (data) = self.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, body, namespace, name, **kwargs): + def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): """ Delete a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an @@ -2008,13 +1978,13 @@ def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1DeleteOptions body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. @@ -2023,7 +1993,7 @@ def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, returns the request thread. """ - all_params = ['body', 'namespace', 'name', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['name', 'namespace', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2038,28 +2008,24 @@ def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, ) params[key] = val del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_replica_set`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_replica_set`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance_replica_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_replica_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_replica_set`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `delete_namespaced_virtual_machine_instance_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] if 'grace_period_seconds' in params: @@ -2086,9 +2052,9 @@ def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, select_header_content_type(['application/json', 'application/yaml']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -2182,9 +2148,9 @@ def filesystemlist_with_http_info(self, **kwargs): select_header_content_type(['application/json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/filesystemlist', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist', 'GET', path_params, query_params, header_params, @@ -2276,7 +2242,7 @@ def func7_with_http_info(self, **kwargs): select_header_content_type(['application/json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] return self.api_client.call_api('/openapi/v2', 'GET', path_params, @@ -2368,9 +2334,9 @@ def get_api_group_with_http_info(self, **kwargs): select_header_accept(['application/json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/', 'GET', path_params, query_params, header_params, @@ -2385,44 +2351,44 @@ def get_api_group_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_group_0(self, **kwargs): + def get_api_group_list(self, **kwargs): """ - Get a KubeVirt API Group + Get a KubeVirt API GroupList This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_group_0(callback=callback_function) + >>> thread = api.get_api_group_list(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :return: V1APIGroupList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_group_0_with_http_info(**kwargs) + return self.get_api_group_list_with_http_info(**kwargs) else: - (data) = self.get_api_group_0_with_http_info(**kwargs) + (data) = self.get_api_group_list_with_http_info(**kwargs) return data - def get_api_group_0_with_http_info(self, **kwargs): + def get_api_group_list_with_http_info(self, **kwargs): """ - Get a KubeVirt API Group + Get a KubeVirt API GroupList This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_group_0_with_http_info(callback=callback_function) + >>> thread = api.get_api_group_list_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :return: V1APIGroupList If the method is called asynchronously, returns the request thread. """ @@ -2438,7 +2404,7 @@ def get_api_group_0_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_group_0" % key + " to method get_api_group_list" % key ) params[key] = val del params['kwargs'] @@ -2460,16 +2426,16 @@ def get_api_group_0_with_http_info(self, **kwargs): select_header_accept(['application/json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io', 'GET', + return self.api_client.call_api('/apis', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIGroup', + response_type='V1APIGroupList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2477,44 +2443,44 @@ def get_api_group_0_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_group_list(self, **kwargs): + def get_api_resources(self, **kwargs): """ - Get a KubeVirt API GroupList + Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_group_list(callback=callback_function) + >>> thread = api.get_api_resources(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroupList + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_group_list_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) else: - (data) = self.get_api_group_list_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) return data - def get_api_group_list_with_http_info(self, **kwargs): + def get_api_resources_with_http_info(self, **kwargs): """ - Get a KubeVirt API GroupList + Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_group_list_with_http_info(callback=callback_function) + >>> thread = api.get_api_resources_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroupList + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ @@ -2530,7 +2496,7 @@ def get_api_group_list_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_group_list" % key + " to method get_api_resources" % key ) params[key] = val del params['kwargs'] @@ -2552,16 +2518,16 @@ def get_api_group_list_with_http_info(self, **kwargs): select_header_accept(['application/json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIGroupList', + response_type='V1APIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2569,16 +2535,16 @@ def get_api_group_list_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_resources(self, **kwargs): + def get_api_sub_resources(self, **kwargs): """ - Get KubeVirt API Resources + Get a KubeVirt API resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources(callback=callback_function) + >>> thread = api.get_api_sub_resources(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2588,21 +2554,21 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_sub_resources_with_http_info(**kwargs) else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_sub_resources_with_http_info(**kwargs) return data - def get_api_resources_with_http_info(self, **kwargs): + def get_api_sub_resources_with_http_info(self, **kwargs): """ - Get KubeVirt API Resources + Get a KubeVirt API resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_with_http_info(callback=callback_function) + >>> thread = api.get_api_sub_resources_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2622,7 +2588,7 @@ def get_api_resources_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_resources" % key + " to method get_api_sub_resources" % key ) params[key] = val del params['kwargs'] @@ -2644,9 +2610,9 @@ def get_api_resources_with_http_info(self, **kwargs): select_header_accept(['application/json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/', 'GET', path_params, query_params, header_params, @@ -2661,44 +2627,44 @@ def get_api_resources_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_resources_0(self, **kwargs): + def get_root_paths(self, **kwargs): """ - Get a KubeVirt API resources + Get KubeVirt API root paths This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_0(callback=callback_function) + >>> thread = api.get_root_paths(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :return: V1RootPaths If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_resources_0_with_http_info(**kwargs) + return self.get_root_paths_with_http_info(**kwargs) else: - (data) = self.get_api_resources_0_with_http_info(**kwargs) + (data) = self.get_root_paths_with_http_info(**kwargs) return data - def get_api_resources_0_with_http_info(self, **kwargs): + def get_root_paths_with_http_info(self, **kwargs): """ - Get a KubeVirt API resources + Get KubeVirt API root paths This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_0_with_http_info(callback=callback_function) + >>> thread = api.get_root_paths_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :return: V1RootPaths If the method is called asynchronously, returns the request thread. """ @@ -2714,7 +2680,7 @@ def get_api_resources_0_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_resources_0" % key + " to method get_root_paths" % key ) params[key] = val del params['kwargs'] @@ -2736,16 +2702,16 @@ def get_api_resources_0_with_http_info(self, **kwargs): select_header_accept(['application/json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3', 'GET', + return self.api_client.call_api('/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIResourceList', + response_type='V1RootPaths', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2753,53 +2719,49 @@ def get_api_resources_0_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def guestosinfo(self, namespace, name, **kwargs): + def get_sub_api_group(self, **kwargs): """ - Get guest agent os information + Get a KubeVirt API Group This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.guestosinfo(namespace, name, callback=callback_function) + >>> thread = api.get_sub_api_group(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str name: Name of the resource (required) - :return: V1VirtualMachineInstanceGuestAgentInfo + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.guestosinfo_with_http_info(namespace, name, **kwargs) + return self.get_sub_api_group_with_http_info(**kwargs) else: - (data) = self.guestosinfo_with_http_info(namespace, name, **kwargs) + (data) = self.get_sub_api_group_with_http_info(**kwargs) return data - def guestosinfo_with_http_info(self, namespace, name, **kwargs): + def get_sub_api_group_with_http_info(self, **kwargs): """ - Get guest agent os information + Get a KubeVirt API Group This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.guestosinfo_with_http_info(namespace, name, callback=callback_function) + >>> thread = api.get_sub_api_group_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str name: Name of the resource (required) - :return: V1VirtualMachineInstanceGuestAgentInfo + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'name'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2810,29 +2772,14 @@ def guestosinfo_with_http_info(self, namespace, name, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method guestosinfo" % key + " to method get_sub_api_group" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `guestosinfo`") - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `guestosinfo`") - - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `guestosinfo`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `guestosinfo`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'name' in params: - path_params['name'] = params['name'] query_params = [] @@ -2846,21 +2793,17 @@ def guestosinfo_with_http_info(self, namespace, name, **kwargs): header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/guestosinfo', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceGuestAgentInfo', + response_type='V1APIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2868,58 +2811,169 @@ def guestosinfo_with_http_info(self, namespace, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine(self, namespace, **kwargs): + def guestosinfo(self, name, namespace, **kwargs): """ - Get a list of VirtualMachine objects. + Get guest agent os information This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine(namespace, callback=callback_function) + >>> thread = api.guestosinfo(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :return: V1VirtualMachineInstanceGuestAgentInfo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + return self.guestosinfo_with_http_info(name, namespace, **kwargs) else: - (data) = self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + (data) = self.guestosinfo_with_http_info(name, namespace, **kwargs) return data - def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): + def guestosinfo_with_http_info(self, name, namespace, **kwargs): """ - Get a list of VirtualMachine objects. + Get guest agent os information This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_with_http_info(namespace, callback=callback_function) + >>> thread = api.guestosinfo_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :return: V1VirtualMachineInstanceGuestAgentInfo + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method guestosinfo" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `guestosinfo`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `guestosinfo`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceGuestAgentInfo', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_virtual_machine(self, namespace, **kwargs): + """ + Get a list of VirtualMachine objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_virtual_machine(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): + """ + Get a list of VirtualMachine objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_virtual_machine_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. @@ -2947,8 +3001,6 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `list_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -2985,9 +3037,9 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'GET', path_params, query_params, header_params, @@ -3081,8 +3133,6 @@ def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **k if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `list_namespaced_virtual_machine_instance`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -3119,9 +3169,9 @@ def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **k select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'GET', path_params, query_params, header_params, @@ -3215,8 +3265,6 @@ def list_namespaced_virtual_machine_instance_migration_with_http_info(self, name if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_migration`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `list_namespaced_virtual_machine_instance_migration`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -3253,9 +3301,9 @@ def list_namespaced_virtual_machine_instance_migration_with_http_info(self, name select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'GET', path_params, query_params, header_params, @@ -3349,8 +3397,6 @@ def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespa if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_preset`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `list_namespaced_virtual_machine_instance_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -3387,9 +3433,9 @@ def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespa select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'GET', path_params, query_params, header_params, @@ -3483,8 +3529,6 @@ def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_replica_set`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `list_namespaced_virtual_machine_instance_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -3521,9 +3565,9 @@ def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, @@ -3646,7 +3690,7 @@ def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/virtualmachines', 'GET', path_params, @@ -3771,7 +3815,7 @@ def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwar select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/virtualmachineinstances', 'GET', path_params, @@ -3896,7 +3940,7 @@ def list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(se select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/virtualmachineinstancemigrations', 'GET', path_params, @@ -4021,7 +4065,7 @@ def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/virtualmachineinstancepresets', 'GET', path_params, @@ -4146,7 +4190,7 @@ def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info( select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/virtualmachineinstancereplicasets', 'GET', path_params, @@ -4163,7 +4207,7 @@ def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info( _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def migrate(self, namespace, name, **kwargs): + def migrate(self, name, namespace, **kwargs): """ Migrate a running VirtualMachine to another node. This method makes a synchronous HTTP request by default. To make an @@ -4172,24 +4216,24 @@ def migrate(self, namespace, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.migrate(namespace, name, callback=callback_function) + >>> thread = api.migrate(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) - :return: None + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.migrate_with_http_info(namespace, name, **kwargs) + return self.migrate_with_http_info(name, namespace, **kwargs) else: - (data) = self.migrate_with_http_info(namespace, name, **kwargs) + (data) = self.migrate_with_http_info(name, namespace, **kwargs) return data - def migrate_with_http_info(self, namespace, name, **kwargs): + def migrate_with_http_info(self, name, namespace, **kwargs): """ Migrate a running VirtualMachine to another node. This method makes a synchronous HTTP request by default. To make an @@ -4198,18 +4242,18 @@ def migrate_with_http_info(self, namespace, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.migrate_with_http_info(namespace, name, callback=callback_function) + >>> thread = api.migrate_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) - :return: None + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'name'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4224,25 +4268,21 @@ def migrate_with_http_info(self, namespace, name, **kwargs): ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `migrate`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): raise ValueError("Missing the required parameter `name` when calling `migrate`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `migrate`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `migrate`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `migrate`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -4253,16 +4293,16 @@ def migrate_with_http_info(self, namespace, name, **kwargs): body_params = None # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/migrate', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4270,7 +4310,7 @@ def migrate_with_http_info(self, namespace, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine(self, body, namespace, name, **kwargs): + def patch_namespaced_virtual_machine(self, name, namespace, body, **kwargs): """ Patch a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an @@ -4279,25 +4319,25 @@ def patch_namespaced_virtual_machine(self, body, namespace, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine(body, namespace, name, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1Patch body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_with_http_info(body, namespace, name, **kwargs) + return self.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_with_http_info(body, namespace, name, **kwargs) + (data) = self.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_virtual_machine_with_http_info(self, body, namespace, name, **kwargs): + def patch_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): """ Patch a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an @@ -4306,19 +4346,19 @@ def patch_namespaced_virtual_machine_with_http_info(self, body, namespace, name, >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_with_http_info(body, namespace, name, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1Patch body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ - all_params = ['body', 'namespace', 'name'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4333,28 +4373,24 @@ def patch_namespaced_virtual_machine_with_http_info(self, body, namespace, name, ) params[key] = val del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `patch_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `patch_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -4375,9 +4411,9 @@ def patch_namespaced_virtual_machine_with_http_info(self, body, namespace, name, select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, @@ -4392,7 +4428,7 @@ def patch_namespaced_virtual_machine_with_http_info(self, body, namespace, name, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_instance(self, body, namespace, name, **kwargs): + def patch_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): """ Patch a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an @@ -4401,25 +4437,25 @@ def patch_namespaced_virtual_machine_instance(self, body, namespace, name, **kwa >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance(body, namespace, name, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1Patch body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, **kwargs) + return self.patch_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, **kwargs) + (data) = self.patch_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_virtual_machine_instance_with_http_info(self, body, namespace, name, **kwargs): + def patch_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): """ Patch a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an @@ -4428,19 +4464,19 @@ def patch_namespaced_virtual_machine_instance_with_http_info(self, body, namespa >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1Patch body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ - all_params = ['body', 'namespace', 'name'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4455,28 +4491,24 @@ def patch_namespaced_virtual_machine_instance_with_http_info(self, body, namespa ) params[key] = val del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `patch_namespaced_virtual_machine_instance`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `patch_namespaced_virtual_machine_instance`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -4497,9 +4529,9 @@ def patch_namespaced_virtual_machine_instance_with_http_info(self, body, namespa select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, @@ -4514,7 +4546,7 @@ def patch_namespaced_virtual_machine_instance_with_http_info(self, body, namespa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_instance_migration(self, body, namespace, name, **kwargs): + def patch_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): """ Patch a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an @@ -4523,25 +4555,25 @@ def patch_namespaced_virtual_machine_instance_migration(self, body, namespace, n >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_migration(body, namespace, name, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1Patch body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) :return: V1VirtualMachineInstanceMigration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, name, **kwargs) + return self.patch_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, name, **kwargs) + (data) = self.patch_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, body, namespace, name, **kwargs): + def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, body, **kwargs): """ Patch a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an @@ -4550,19 +4582,19 @@ def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, bod >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, name, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1Patch body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) :return: V1VirtualMachineInstanceMigration If the method is called asynchronously, returns the request thread. """ - all_params = ['body', 'namespace', 'name'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4577,28 +4609,24 @@ def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, bod ) params[key] = val del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_migration`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_migration`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_migration`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_migration`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_migration`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_migration`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `patch_namespaced_virtual_machine_instance_migration`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -4619,9 +4647,9 @@ def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, bod select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, @@ -4636,7 +4664,7 @@ def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, bod _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_instance_preset(self, body, namespace, name, **kwargs): + def patch_namespaced_virtual_machine_instance_preset(self, name, namespace, body, **kwargs): """ Patch a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an @@ -4645,25 +4673,25 @@ def patch_namespaced_virtual_machine_instance_preset(self, body, namespace, name >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_preset(body, namespace, name, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance_preset(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1Patch body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, **kwargs) + return self.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, **kwargs) + (data) = self.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, body, namespace, name, **kwargs): + def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, body, **kwargs): """ Patch a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an @@ -4672,19 +4700,19 @@ def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, body, >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1Patch body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ - all_params = ['body', 'namespace', 'name'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4699,28 +4727,24 @@ def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, body, ) params[key] = val del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_preset`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_preset`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_preset`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_preset`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_preset`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `patch_namespaced_virtual_machine_instance_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -4741,9 +4765,9 @@ def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, body, select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, @@ -4758,7 +4782,7 @@ def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, body, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_instance_replica_set(self, body, namespace, name, **kwargs): + def patch_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): """ Patch a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an @@ -4767,25 +4791,25 @@ def patch_namespaced_virtual_machine_instance_replica_set(self, body, namespace, >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set(body, namespace, name, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1Patch body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, **kwargs) + return self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, **kwargs) + (data) = self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, body, namespace, name, **kwargs): + def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): """ Patch a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an @@ -4794,19 +4818,19 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, b >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1Patch body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ - all_params = ['body', 'namespace', 'name'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4821,28 +4845,24 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, b ) params[key] = val del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_replica_set`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_replica_set`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_replica_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_replica_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_replica_set`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `patch_namespaced_virtual_machine_instance_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -4863,9 +4883,9 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, b select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, @@ -4880,7 +4900,7 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, b _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def pause(self, namespace, name, **kwargs): + def pause(self, name, namespace, **kwargs): """ Pause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an @@ -4889,24 +4909,24 @@ def pause(self, namespace, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.pause(namespace, name, callback=callback_function) + >>> thread = api.pause(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) - :return: None + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.pause_with_http_info(namespace, name, **kwargs) + return self.pause_with_http_info(name, namespace, **kwargs) else: - (data) = self.pause_with_http_info(namespace, name, **kwargs) + (data) = self.pause_with_http_info(name, namespace, **kwargs) return data - def pause_with_http_info(self, namespace, name, **kwargs): + def pause_with_http_info(self, name, namespace, **kwargs): """ Pause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an @@ -4915,18 +4935,18 @@ def pause_with_http_info(self, namespace, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.pause_with_http_info(namespace, name, callback=callback_function) + >>> thread = api.pause_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) - :return: None + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'name'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4941,25 +4961,21 @@ def pause_with_http_info(self, namespace, name, **kwargs): ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `pause`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): raise ValueError("Missing the required parameter `name` when calling `pause`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `pause`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `pause`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `pause`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -4970,16 +4986,16 @@ def pause_with_http_info(self, namespace, name, **kwargs): body_params = None # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/pause', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5059,10 +5075,6 @@ def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwar if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `read_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `read_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -5089,9 +5101,9 @@ def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwar select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, @@ -5178,10 +5190,6 @@ def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespac if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `read_namespaced_virtual_machine_instance`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `read_namespaced_virtual_machine_instance`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -5208,9 +5216,9 @@ def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespac select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, @@ -5297,10 +5305,6 @@ def read_namespaced_virtual_machine_instance_migration_with_http_info(self, name if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_migration`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `read_namespaced_virtual_machine_instance_migration`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `read_namespaced_virtual_machine_instance_migration`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -5327,9 +5331,9 @@ def read_namespaced_virtual_machine_instance_migration_with_http_info(self, name select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, @@ -5416,10 +5420,6 @@ def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, n if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_preset`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `read_namespaced_virtual_machine_instance_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `read_namespaced_virtual_machine_instance_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -5446,9 +5446,9 @@ def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, n select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, @@ -5535,10 +5535,6 @@ def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_replica_set`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `read_namespaced_virtual_machine_instance_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `read_namespaced_virtual_machine_instance_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -5565,9 +5561,9 @@ def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, @@ -5582,7 +5578,7 @@ def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def rename(self, namespace, name, **kwargs): + def rename(self, name, namespace, **kwargs): """ Rename a stopped VirtualMachine object. This method makes a synchronous HTTP request by default. To make an @@ -5591,24 +5587,24 @@ def rename(self, namespace, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.rename(namespace, name, callback=callback_function) + >>> thread = api.rename(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) - :return: None + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.rename_with_http_info(namespace, name, **kwargs) + return self.rename_with_http_info(name, namespace, **kwargs) else: - (data) = self.rename_with_http_info(namespace, name, **kwargs) + (data) = self.rename_with_http_info(name, namespace, **kwargs) return data - def rename_with_http_info(self, namespace, name, **kwargs): + def rename_with_http_info(self, name, namespace, **kwargs): """ Rename a stopped VirtualMachine object. This method makes a synchronous HTTP request by default. To make an @@ -5617,18 +5613,18 @@ def rename_with_http_info(self, namespace, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.rename_with_http_info(namespace, name, callback=callback_function) + >>> thread = api.rename_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) - :return: None + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'name'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5643,25 +5639,21 @@ def rename_with_http_info(self, namespace, name, **kwargs): ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `rename`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): raise ValueError("Missing the required parameter `name` when calling `rename`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `rename`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `rename`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `rename`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -5672,16 +5664,16 @@ def rename_with_http_info(self, namespace, name, **kwargs): body_params = None # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/rename', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/rename', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5689,7 +5681,7 @@ def rename_with_http_info(self, namespace, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine(self, body, namespace, name, **kwargs): + def replace_namespaced_virtual_machine(self, name, namespace, body, **kwargs): """ Update a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an @@ -5698,25 +5690,25 @@ def replace_namespaced_virtual_machine(self, body, namespace, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine(body, namespace, name, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachine body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachine body: (required) :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_with_http_info(body, namespace, name, **kwargs) + return self.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_with_http_info(body, namespace, name, **kwargs) + (data) = self.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_virtual_machine_with_http_info(self, body, namespace, name, **kwargs): + def replace_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): """ Update a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an @@ -5725,19 +5717,19 @@ def replace_namespaced_virtual_machine_with_http_info(self, body, namespace, nam >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_with_http_info(body, namespace, name, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachine body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachine body: (required) :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ - all_params = ['body', 'namespace', 'name'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5752,28 +5744,24 @@ def replace_namespaced_virtual_machine_with_http_info(self, body, namespace, nam ) params[key] = val del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `replace_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `replace_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -5794,9 +5782,9 @@ def replace_namespaced_virtual_machine_with_http_info(self, body, namespace, nam select_header_content_type(['application/json', 'application/yaml']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, @@ -5811,7 +5799,7 @@ def replace_namespaced_virtual_machine_with_http_info(self, body, namespace, nam _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_instance(self, body, namespace, name, **kwargs): + def replace_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): """ Update a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an @@ -5820,25 +5808,25 @@ def replace_namespaced_virtual_machine_instance(self, body, namespace, name, **k >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance(body, namespace, name, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachineInstance body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachineInstance body: (required) :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, **kwargs) + return self.replace_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, **kwargs) + (data) = self.replace_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_virtual_machine_instance_with_http_info(self, body, namespace, name, **kwargs): + def replace_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): """ Update a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an @@ -5847,19 +5835,19 @@ def replace_namespaced_virtual_machine_instance_with_http_info(self, body, names >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachineInstance body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachineInstance body: (required) :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ - all_params = ['body', 'namespace', 'name'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5874,28 +5862,24 @@ def replace_namespaced_virtual_machine_instance_with_http_info(self, body, names ) params[key] = val del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `replace_namespaced_virtual_machine_instance`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `replace_namespaced_virtual_machine_instance`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -5916,9 +5900,9 @@ def replace_namespaced_virtual_machine_instance_with_http_info(self, body, names select_header_content_type(['application/json', 'application/yaml']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, @@ -5933,7 +5917,7 @@ def replace_namespaced_virtual_machine_instance_with_http_info(self, body, names _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_instance_migration(self, body, namespace, name, **kwargs): + def replace_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): """ Update a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an @@ -5942,25 +5926,25 @@ def replace_namespaced_virtual_machine_instance_migration(self, body, namespace, >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_migration(body, namespace, name, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachineInstanceMigration body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachineInstanceMigration body: (required) :return: V1VirtualMachineInstanceMigration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, name, **kwargs) + return self.replace_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, name, **kwargs) + (data) = self.replace_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, body, namespace, name, **kwargs): + def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, body, **kwargs): """ Update a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an @@ -5969,19 +5953,19 @@ def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, b >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, name, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachineInstanceMigration body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachineInstanceMigration body: (required) :return: V1VirtualMachineInstanceMigration If the method is called asynchronously, returns the request thread. """ - all_params = ['body', 'namespace', 'name'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5996,28 +5980,24 @@ def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, b ) params[key] = val del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_migration`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_migration`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_migration`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_migration`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_migration`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_migration`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `replace_namespaced_virtual_machine_instance_migration`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -6038,9 +6018,9 @@ def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, b select_header_content_type(['application/json', 'application/yaml']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancemigrations/{name}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, @@ -6055,7 +6035,7 @@ def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, b _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_instance_preset(self, body, namespace, name, **kwargs): + def replace_namespaced_virtual_machine_instance_preset(self, name, namespace, body, **kwargs): """ Update a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an @@ -6064,25 +6044,25 @@ def replace_namespaced_virtual_machine_instance_preset(self, body, namespace, na >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_preset(body, namespace, name, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_preset(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachineInstancePreset body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachineInstancePreset body: (required) :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, **kwargs) + return self.replace_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, **kwargs) + (data) = self.replace_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, body, namespace, name, **kwargs): + def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, body, **kwargs): """ Update a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an @@ -6091,19 +6071,19 @@ def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, body >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachineInstancePreset body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachineInstancePreset body: (required) :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ - all_params = ['body', 'namespace', 'name'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6118,28 +6098,24 @@ def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, body ) params[key] = val del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_preset`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_preset`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_preset`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_preset`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_preset`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `replace_namespaced_virtual_machine_instance_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -6160,9 +6136,9 @@ def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, body select_header_content_type(['application/json', 'application/yaml']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancepresets/{name}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, @@ -6177,7 +6153,7 @@ def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, body _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_instance_replica_set(self, body, namespace, name, **kwargs): + def replace_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): """ Update a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an @@ -6186,25 +6162,25 @@ def replace_namespaced_virtual_machine_instance_replica_set(self, body, namespac >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set(body, namespace, name, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachineInstanceReplicaSet body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachineInstanceReplicaSet body: (required) :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, **kwargs) + return self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, **kwargs) + (data) = self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, body, namespace, name, **kwargs): + def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): """ Update a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an @@ -6213,19 +6189,19 @@ def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachineInstanceReplicaSet body: (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachineInstanceReplicaSet body: (required) :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ - all_params = ['body', 'namespace', 'name'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6240,28 +6216,24 @@ def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, ) params[key] = val del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_replica_set`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_replica_set`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_replica_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_replica_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_replica_set`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `replace_namespaced_virtual_machine_instance_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -6282,9 +6254,9 @@ def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, select_header_content_type(['application/json', 'application/yaml']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstancereplicasets/{name}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, @@ -6299,7 +6271,7 @@ def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def restart(self, namespace, name, **kwargs): + def restart(self, name, namespace, **kwargs): """ Restart a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an @@ -6308,25 +6280,25 @@ def restart(self, namespace, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.restart(namespace, name, callback=callback_function) + >>> thread = api.restart(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param V1RestartOptions body: - :return: None + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.restart_with_http_info(namespace, name, **kwargs) + return self.restart_with_http_info(name, namespace, **kwargs) else: - (data) = self.restart_with_http_info(namespace, name, **kwargs) + (data) = self.restart_with_http_info(name, namespace, **kwargs) return data - def restart_with_http_info(self, namespace, name, **kwargs): + def restart_with_http_info(self, name, namespace, **kwargs): """ Restart a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an @@ -6335,19 +6307,19 @@ def restart_with_http_info(self, namespace, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.restart_with_http_info(namespace, name, callback=callback_function) + >>> thread = api.restart_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param V1RestartOptions body: - :return: None + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'name', 'body'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6362,25 +6334,21 @@ def restart_with_http_info(self, namespace, name, **kwargs): ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `restart`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): raise ValueError("Missing the required parameter `name` when calling `restart`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `restart`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `restart`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `restart`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -6393,16 +6361,16 @@ def restart_with_http_info(self, namespace, name, **kwargs): if 'body' in params: body_params = params['body'] # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/restart', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6410,7 +6378,7 @@ def restart_with_http_info(self, namespace, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def start(self, namespace, name, **kwargs): + def start(self, name, namespace, **kwargs): """ Start a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an @@ -6419,24 +6387,24 @@ def start(self, namespace, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.start(namespace, name, callback=callback_function) + >>> thread = api.start(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) - :return: None + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.start_with_http_info(namespace, name, **kwargs) + return self.start_with_http_info(name, namespace, **kwargs) else: - (data) = self.start_with_http_info(namespace, name, **kwargs) + (data) = self.start_with_http_info(name, namespace, **kwargs) return data - def start_with_http_info(self, namespace, name, **kwargs): + def start_with_http_info(self, name, namespace, **kwargs): """ Start a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an @@ -6445,18 +6413,18 @@ def start_with_http_info(self, namespace, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.start_with_http_info(namespace, name, callback=callback_function) + >>> thread = api.start_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) - :return: None + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'name'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6471,25 +6439,21 @@ def start_with_http_info(self, namespace, name, **kwargs): ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `start`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): raise ValueError("Missing the required parameter `name` when calling `start`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `start`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `start`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `start`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -6500,16 +6464,16 @@ def start_with_http_info(self, namespace, name, **kwargs): body_params = None # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/start', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6517,7 +6481,7 @@ def start_with_http_info(self, namespace, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def stop(self, namespace, name, **kwargs): + def stop(self, name, namespace, **kwargs): """ Stop a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an @@ -6526,24 +6490,24 @@ def stop(self, namespace, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.stop(namespace, name, callback=callback_function) + >>> thread = api.stop(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) - :return: None + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.stop_with_http_info(namespace, name, **kwargs) + return self.stop_with_http_info(name, namespace, **kwargs) else: - (data) = self.stop_with_http_info(namespace, name, **kwargs) + (data) = self.stop_with_http_info(name, namespace, **kwargs) return data - def stop_with_http_info(self, namespace, name, **kwargs): + def stop_with_http_info(self, name, namespace, **kwargs): """ Stop a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an @@ -6552,18 +6516,18 @@ def stop_with_http_info(self, namespace, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.stop_with_http_info(namespace, name, callback=callback_function) + >>> thread = api.stop_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) - :return: None + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'name'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6578,25 +6542,21 @@ def stop_with_http_info(self, namespace, name, **kwargs): ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `stop`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): raise ValueError("Missing the required parameter `name` when calling `stop`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `stop`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `stop`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `stop`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -6607,16 +6567,16 @@ def stop_with_http_info(self, namespace, name, **kwargs): body_params = None # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/stop', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6624,7 +6584,7 @@ def stop_with_http_info(self, namespace, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def test(self, namespace, name, **kwargs): + def test(self, name, namespace, **kwargs): """ Test endpoint verifying apiserver connectivity. This method makes a synchronous HTTP request by default. To make an @@ -6633,24 +6593,24 @@ def test(self, namespace, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.test(namespace, name, callback=callback_function) + >>> thread = api.test(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.test_with_http_info(namespace, name, **kwargs) + return self.test_with_http_info(name, namespace, **kwargs) else: - (data) = self.test_with_http_info(namespace, name, **kwargs) + (data) = self.test_with_http_info(name, namespace, **kwargs) return data - def test_with_http_info(self, namespace, name, **kwargs): + def test_with_http_info(self, name, namespace, **kwargs): """ Test endpoint verifying apiserver connectivity. This method makes a synchronous HTTP request by default. To make an @@ -6659,18 +6619,18 @@ def test_with_http_info(self, namespace, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.test_with_http_info(namespace, name, callback=callback_function) + >>> thread = api.test_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'name'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6685,25 +6645,21 @@ def test_with_http_info(self, namespace, name, **kwargs): ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `test`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): raise ValueError("Missing the required parameter `name` when calling `test`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `test`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `test`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `test`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -6714,9 +6670,9 @@ def test_with_http_info(self, namespace, name, **kwargs): body_params = None # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/test', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test', 'GET', path_params, query_params, header_params, @@ -6731,7 +6687,7 @@ def test_with_http_info(self, namespace, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def unpause(self, namespace, name, **kwargs): + def unpause(self, name, namespace, **kwargs): """ Unpause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an @@ -6740,24 +6696,24 @@ def unpause(self, namespace, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.unpause(namespace, name, callback=callback_function) + >>> thread = api.unpause(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) - :return: None + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.unpause_with_http_info(namespace, name, **kwargs) + return self.unpause_with_http_info(name, namespace, **kwargs) else: - (data) = self.unpause_with_http_info(namespace, name, **kwargs) + (data) = self.unpause_with_http_info(name, namespace, **kwargs) return data - def unpause_with_http_info(self, namespace, name, **kwargs): + def unpause_with_http_info(self, name, namespace, **kwargs): """ Unpause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an @@ -6766,18 +6722,18 @@ def unpause_with_http_info(self, namespace, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.unpause_with_http_info(namespace, name, callback=callback_function) + >>> thread = api.unpause_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) - :return: None + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'name'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6792,25 +6748,21 @@ def unpause_with_http_info(self, namespace, name, **kwargs): ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `unpause`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): raise ValueError("Missing the required parameter `name` when calling `unpause`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `unpause`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `unpause`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `unpause`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -6821,16 +6773,16 @@ def unpause_with_http_info(self, namespace, name, **kwargs): body_params = None # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/unpause', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6917,9 +6869,9 @@ def userlist_with_http_info(self, **kwargs): select_header_content_type(['application/json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/userlist', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist', 'GET', path_params, query_params, header_params, @@ -7007,7 +6959,7 @@ def version_with_http_info(self, **kwargs): select_header_accept(['application/json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/version', 'GET', path_params, @@ -7024,7 +6976,7 @@ def version_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def vnc(self, namespace, name, **kwargs): + def vnc(self, name, namespace, **kwargs): """ Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an @@ -7033,24 +6985,24 @@ def vnc(self, namespace, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.vnc(namespace, name, callback=callback_function) + >>> thread = api.vnc(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.vnc_with_http_info(namespace, name, **kwargs) + return self.vnc_with_http_info(name, namespace, **kwargs) else: - (data) = self.vnc_with_http_info(namespace, name, **kwargs) + (data) = self.vnc_with_http_info(name, namespace, **kwargs) return data - def vnc_with_http_info(self, namespace, name, **kwargs): + def vnc_with_http_info(self, name, namespace, **kwargs): """ Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an @@ -7059,18 +7011,18 @@ def vnc_with_http_info(self, namespace, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.vnc_with_http_info(namespace, name, callback=callback_function) + >>> thread = api.vnc_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'name'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7085,25 +7037,21 @@ def vnc_with_http_info(self, namespace, name, **kwargs): ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `vnc`") # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): raise ValueError("Missing the required parameter `name` when calling `vnc`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `vnc`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `vnc`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") - if 'name' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['name']): - raise ValueError("Invalid value for parameter `name` when calling `vnc`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] if 'name' in params: path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -7114,9 +7062,9 @@ def vnc_with_http_info(self, namespace, name, **kwargs): body_params = None # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/vnc', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc', 'GET', path_params, query_params, header_params, @@ -7210,8 +7158,6 @@ def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `watch_namespaced_virtual_machine`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -7248,9 +7194,9 @@ def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): select_header_accept(['application/json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'GET', path_params, query_params, header_params, @@ -7344,8 +7290,6 @@ def watch_namespaced_virtual_machine_instance_with_http_info(self, namespace, ** if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `watch_namespaced_virtual_machine_instance`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -7382,9 +7326,9 @@ def watch_namespaced_virtual_machine_instance_with_http_info(self, namespace, ** select_header_accept(['application/json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachineinstances', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'GET', path_params, query_params, header_params, @@ -7478,8 +7422,6 @@ def watch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_migration`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_migration`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -7516,9 +7458,9 @@ def watch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam select_header_accept(['application/json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachineinstancemigrations', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'GET', path_params, query_params, header_params, @@ -7612,8 +7554,6 @@ def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namesp if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_preset`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_preset`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -7650,9 +7590,9 @@ def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namesp select_header_accept(['application/json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'GET', path_params, query_params, header_params, @@ -7746,8 +7686,6 @@ def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_replica_set`") - if 'namespace' in params and not re.search('[a-z0-9][a-z0-9\\-]*', params['namespace']): - raise ValueError("Invalid value for parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -7784,9 +7722,9 @@ def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n select_header_accept(['application/json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace}/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, @@ -7909,7 +7847,7 @@ def watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(self, select_header_accept(['application/json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/virtualmachineinstances', 'GET', path_params, @@ -8034,7 +7972,7 @@ def watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_i select_header_accept(['application/json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancemigrations', 'GET', path_params, @@ -8159,7 +8097,7 @@ def watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info select_header_accept(['application/json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancepresets', 'GET', path_params, @@ -8284,7 +8222,7 @@ def watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http select_header_accept(['application/json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancereplicasets', 'GET', path_params, @@ -8409,7 +8347,7 @@ def watch_virtual_machine_list_for_all_namespaces_with_http_info(self, **kwargs) select_header_accept(['application/json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/virtualmachines', 'GET', path_params, diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 432330ce..418f8f91 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.28.0-173-g0f656230".\ + "SDK Package Version: v0.29.0-60-gc03721c2".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 047bb733..f067de70 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -14,11 +14,15 @@ from __future__ import absolute_import # import models into model package +from .intstr_int_or_string import IntstrIntOrString +from .resource_quantity import ResourceQuantity +from .runtime_raw_extension import RuntimeRawExtension from .v1_api_group import V1APIGroup from .v1_api_group_list import V1APIGroupList from .v1_api_resource import V1APIResource from .v1_api_resource_list import V1APIResourceList from .v1_affinity import V1Affinity +from .v1_bios import V1BIOS from .v1_bootloader import V1Bootloader from .v1_cd_rom_target import V1CDRomTarget from .v1_cpu import V1CPU @@ -38,6 +42,7 @@ from .v1_disk import V1Disk from .v1_disk_target import V1DiskTarget from .v1_domain_spec import V1DomainSpec +from .v1_efi import V1EFI from .v1_empty_disk_source import V1EmptyDiskSource from .v1_ephemeral_volume_source import V1EphemeralVolumeSource from .v1_feature_apic import V1FeatureAPIC @@ -46,6 +51,7 @@ from .v1_feature_state import V1FeatureState from .v1_feature_vendor_id import V1FeatureVendorID from .v1_features import V1Features +from .v1_fields_v1 import V1FieldsV1 from .v1_firmware import V1Firmware from .v1_floppy_target import V1FloppyTarget from .v1_gpu import V1GPU @@ -59,6 +65,10 @@ from .v1_i6300_esb_watchdog import V1I6300ESBWatchdog from .v1_input import V1Input from .v1_interface import V1Interface +from .v1_interface_bridge import V1InterfaceBridge +from .v1_interface_masquerade import V1InterfaceMasquerade +from .v1_interface_sriov import V1InterfaceSRIOV +from .v1_interface_slirp import V1InterfaceSlirp from .v1_kvm_timer import V1KVMTimer from .v1_label_selector import V1LabelSelector from .v1_label_selector_requirement import V1LabelSelectorRequirement @@ -77,6 +87,7 @@ from .v1_object_meta import V1ObjectMeta from .v1_owner_reference import V1OwnerReference from .v1_pit_timer import V1PITTimer +from .v1_patch import V1Patch from .v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec from .v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource from .v1_pod_affinity import V1PodAffinity @@ -92,6 +103,7 @@ from .v1_rtc_timer import V1RTCTimer from .v1_resource_requirements import V1ResourceRequirements from .v1_restart_options import V1RestartOptions +from .v1_rng import V1Rng from .v1_root_paths import V1RootPaths from .v1_secret_volume_source import V1SecretVolumeSource from .v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR @@ -100,6 +112,7 @@ from .v1_status_cause import V1StatusCause from .v1_status_details import V1StatusDetails from .v1_tcp_socket_action import V1TCPSocketAction +from .v1_time import V1Time from .v1_timer import V1Timer from .v1_toleration import V1Toleration from .v1_typed_local_object_reference import V1TypedLocalObjectReference @@ -142,11 +155,13 @@ from .v1_watchdog import V1Watchdog from .v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm from .v1alpha1_data_volume import V1alpha1DataVolume +from .v1alpha1_data_volume_blank_image import V1alpha1DataVolumeBlankImage from .v1alpha1_data_volume_source import V1alpha1DataVolumeSource from .v1alpha1_data_volume_source_http import V1alpha1DataVolumeSourceHTTP from .v1alpha1_data_volume_source_pvc import V1alpha1DataVolumeSourcePVC from .v1alpha1_data_volume_source_registry import V1alpha1DataVolumeSourceRegistry from .v1alpha1_data_volume_source_s3 import V1alpha1DataVolumeSourceS3 +from .v1alpha1_data_volume_source_upload import V1alpha1DataVolumeSourceUpload from .v1alpha1_data_volume_spec import V1alpha1DataVolumeSpec from .v1alpha1_data_volume_status import V1alpha1DataVolumeStatus from .v1_interface_bridge import V1InterfaceBridge diff --git a/kubevirt/models/intstr_int_or_string.py b/kubevirt/models/intstr_int_or_string.py new file mode 100644 index 00000000..59590c34 --- /dev/null +++ b/kubevirt/models/intstr_int_or_string.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IntstrIntOrString(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + IntstrIntOrString - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IntstrIntOrString): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/resource_quantity.py b/kubevirt/models/resource_quantity.py new file mode 100644 index 00000000..da4c6f06 --- /dev/null +++ b/kubevirt/models/resource_quantity.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ResourceQuantity(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + ResourceQuantity - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ResourceQuantity): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/runtime_raw_extension.py b/kubevirt/models/runtime_raw_extension.py new file mode 100644 index 00000000..f36f754c --- /dev/null +++ b/kubevirt/models/runtime_raw_extension.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class RuntimeRawExtension(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + RuntimeRawExtension - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, RuntimeRawExtension): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_bios.py b/kubevirt/models/v1_bios.py new file mode 100644 index 00000000..170dfab2 --- /dev/null +++ b/kubevirt/models/v1_bios.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1BIOS(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1BIOS - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1BIOS): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_bootloader.py b/kubevirt/models/v1_bootloader.py index 354fb051..12b548e1 100644 --- a/kubevirt/models/v1_bootloader.py +++ b/kubevirt/models/v1_bootloader.py @@ -57,7 +57,7 @@ def __init__(self, bios=None, efi=None): def bios(self): """ Gets the bios of this V1Bootloader. - If set (default), BIOS will be used. +optional + If set (default), BIOS will be used. :return: The bios of this V1Bootloader. :rtype: V1BIOS @@ -68,7 +68,7 @@ def bios(self): def bios(self, bios): """ Sets the bios of this V1Bootloader. - If set (default), BIOS will be used. +optional + If set (default), BIOS will be used. :param bios: The bios of this V1Bootloader. :type: V1BIOS @@ -80,7 +80,7 @@ def bios(self, bios): def efi(self): """ Gets the efi of this V1Bootloader. - If set, EFI will be used instead of BIOS. +optional + If set, EFI will be used instead of BIOS. :return: The efi of this V1Bootloader. :rtype: V1EFI @@ -91,7 +91,7 @@ def efi(self): def efi(self, efi): """ Sets the efi of this V1Bootloader. - If set, EFI will be used instead of BIOS. +optional + If set, EFI will be used instead of BIOS. :param efi: The efi of this V1Bootloader. :type: V1EFI diff --git a/kubevirt/models/v1_cd_rom_target.py b/kubevirt/models/v1_cd_rom_target.py index 18a25cf3..6914285c 100644 --- a/kubevirt/models/v1_cd_rom_target.py +++ b/kubevirt/models/v1_cd_rom_target.py @@ -108,7 +108,7 @@ def readonly(self, readonly): def tray(self): """ Gets the tray of this V1CDRomTarget. - Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\". Defaults to closed. +optional + Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\". Defaults to closed. :return: The tray of this V1CDRomTarget. :rtype: str @@ -119,7 +119,7 @@ def tray(self): def tray(self, tray): """ Sets the tray of this V1CDRomTarget. - Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\". Defaults to closed. +optional + Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\". Defaults to closed. :param tray: The tray of this V1CDRomTarget. :type: str diff --git a/kubevirt/models/v1_clock.py b/kubevirt/models/v1_clock.py index 51f33a9f..95db22c3 100644 --- a/kubevirt/models/v1_clock.py +++ b/kubevirt/models/v1_clock.py @@ -32,7 +32,7 @@ class V1Clock(object): """ swagger_types = { 'timer': 'V1Timer', - 'timezone': 'V1ClockOffsetTimezone', + 'timezone': 'str', 'utc': 'V1ClockOffsetUTC' } @@ -51,7 +51,8 @@ def __init__(self, timer=None, timezone=None, utc=None): self._timezone = None self._utc = None - self.timer = timer + if timer is not None: + self.timer = timer if timezone is not None: self.timezone = timezone if utc is not None: @@ -77,8 +78,6 @@ def timer(self, timer): :param timer: The timer of this V1Clock. :type: V1Timer """ - if timer is None: - raise ValueError("Invalid value for `timer`, must not be `None`") self._timer = timer @@ -89,7 +88,7 @@ def timezone(self): Timezone sets the guest clock to the specified timezone. Zone name follows the TZ environment variable format (e.g. 'America/New_York'). :return: The timezone of this V1Clock. - :rtype: V1ClockOffsetTimezone + :rtype: str """ return self._timezone @@ -100,7 +99,7 @@ def timezone(self, timezone): Timezone sets the guest clock to the specified timezone. Zone name follows the TZ environment variable format (e.g. 'America/New_York'). :param timezone: The timezone of this V1Clock. - :type: V1ClockOffsetTimezone + :type: str """ self._timezone = timezone diff --git a/kubevirt/models/v1_cloud_init_config_drive_source.py b/kubevirt/models/v1_cloud_init_config_drive_source.py index b8bd1144..0a1585bc 100644 --- a/kubevirt/models/v1_cloud_init_config_drive_source.py +++ b/kubevirt/models/v1_cloud_init_config_drive_source.py @@ -77,7 +77,7 @@ def __init__(self, network_data=None, network_data_base64=None, network_data_sec def network_data(self): """ Gets the network_data of this V1CloudInitConfigDriveSource. - NetworkData contains config drive inline cloud-init networkdata. + optional + NetworkData contains config drive inline cloud-init networkdata. :return: The network_data of this V1CloudInitConfigDriveSource. :rtype: str @@ -88,7 +88,7 @@ def network_data(self): def network_data(self, network_data): """ Sets the network_data of this V1CloudInitConfigDriveSource. - NetworkData contains config drive inline cloud-init networkdata. + optional + NetworkData contains config drive inline cloud-init networkdata. :param network_data: The network_data of this V1CloudInitConfigDriveSource. :type: str @@ -100,7 +100,7 @@ def network_data(self, network_data): def network_data_base64(self): """ Gets the network_data_base64 of this V1CloudInitConfigDriveSource. - NetworkDataBase64 contains config drive cloud-init networkdata as a base64 encoded string. + optional + NetworkDataBase64 contains config drive cloud-init networkdata as a base64 encoded string. :return: The network_data_base64 of this V1CloudInitConfigDriveSource. :rtype: str @@ -111,7 +111,7 @@ def network_data_base64(self): def network_data_base64(self, network_data_base64): """ Sets the network_data_base64 of this V1CloudInitConfigDriveSource. - NetworkDataBase64 contains config drive cloud-init networkdata as a base64 encoded string. + optional + NetworkDataBase64 contains config drive cloud-init networkdata as a base64 encoded string. :param network_data_base64: The network_data_base64 of this V1CloudInitConfigDriveSource. :type: str @@ -123,7 +123,7 @@ def network_data_base64(self, network_data_base64): def network_data_secret_ref(self): """ Gets the network_data_secret_ref of this V1CloudInitConfigDriveSource. - NetworkDataSecretRef references a k8s secret that contains config drive networkdata. + optional + NetworkDataSecretRef references a k8s secret that contains config drive networkdata. :return: The network_data_secret_ref of this V1CloudInitConfigDriveSource. :rtype: V1LocalObjectReference @@ -134,7 +134,7 @@ def network_data_secret_ref(self): def network_data_secret_ref(self, network_data_secret_ref): """ Sets the network_data_secret_ref of this V1CloudInitConfigDriveSource. - NetworkDataSecretRef references a k8s secret that contains config drive networkdata. + optional + NetworkDataSecretRef references a k8s secret that contains config drive networkdata. :param network_data_secret_ref: The network_data_secret_ref of this V1CloudInitConfigDriveSource. :type: V1LocalObjectReference @@ -146,7 +146,7 @@ def network_data_secret_ref(self, network_data_secret_ref): def secret_ref(self): """ Gets the secret_ref of this V1CloudInitConfigDriveSource. - UserDataSecretRef references a k8s secret that contains config drive userdata. + optional + UserDataSecretRef references a k8s secret that contains config drive userdata. :return: The secret_ref of this V1CloudInitConfigDriveSource. :rtype: V1LocalObjectReference @@ -157,7 +157,7 @@ def secret_ref(self): def secret_ref(self, secret_ref): """ Sets the secret_ref of this V1CloudInitConfigDriveSource. - UserDataSecretRef references a k8s secret that contains config drive userdata. + optional + UserDataSecretRef references a k8s secret that contains config drive userdata. :param secret_ref: The secret_ref of this V1CloudInitConfigDriveSource. :type: V1LocalObjectReference @@ -169,7 +169,7 @@ def secret_ref(self, secret_ref): def user_data(self): """ Gets the user_data of this V1CloudInitConfigDriveSource. - UserData contains config drive inline cloud-init userdata. + optional + UserData contains config drive inline cloud-init userdata. :return: The user_data of this V1CloudInitConfigDriveSource. :rtype: str @@ -180,7 +180,7 @@ def user_data(self): def user_data(self, user_data): """ Sets the user_data of this V1CloudInitConfigDriveSource. - UserData contains config drive inline cloud-init userdata. + optional + UserData contains config drive inline cloud-init userdata. :param user_data: The user_data of this V1CloudInitConfigDriveSource. :type: str @@ -192,7 +192,7 @@ def user_data(self, user_data): def user_data_base64(self): """ Gets the user_data_base64 of this V1CloudInitConfigDriveSource. - UserDataBase64 contains config drive cloud-init userdata as a base64 encoded string. + optional + UserDataBase64 contains config drive cloud-init userdata as a base64 encoded string. :return: The user_data_base64 of this V1CloudInitConfigDriveSource. :rtype: str @@ -203,7 +203,7 @@ def user_data_base64(self): def user_data_base64(self, user_data_base64): """ Sets the user_data_base64 of this V1CloudInitConfigDriveSource. - UserDataBase64 contains config drive cloud-init userdata as a base64 encoded string. + optional + UserDataBase64 contains config drive cloud-init userdata as a base64 encoded string. :param user_data_base64: The user_data_base64 of this V1CloudInitConfigDriveSource. :type: str diff --git a/kubevirt/models/v1_cloud_init_no_cloud_source.py b/kubevirt/models/v1_cloud_init_no_cloud_source.py index dd2c10d1..bd0ec8f5 100644 --- a/kubevirt/models/v1_cloud_init_no_cloud_source.py +++ b/kubevirt/models/v1_cloud_init_no_cloud_source.py @@ -77,7 +77,7 @@ def __init__(self, network_data=None, network_data_base64=None, network_data_sec def network_data(self): """ Gets the network_data of this V1CloudInitNoCloudSource. - NetworkData contains NoCloud inline cloud-init networkdata. + optional + NetworkData contains NoCloud inline cloud-init networkdata. :return: The network_data of this V1CloudInitNoCloudSource. :rtype: str @@ -88,7 +88,7 @@ def network_data(self): def network_data(self, network_data): """ Sets the network_data of this V1CloudInitNoCloudSource. - NetworkData contains NoCloud inline cloud-init networkdata. + optional + NetworkData contains NoCloud inline cloud-init networkdata. :param network_data: The network_data of this V1CloudInitNoCloudSource. :type: str @@ -100,7 +100,7 @@ def network_data(self, network_data): def network_data_base64(self): """ Gets the network_data_base64 of this V1CloudInitNoCloudSource. - NetworkDataBase64 contains NoCloud cloud-init networkdata as a base64 encoded string. + optional + NetworkDataBase64 contains NoCloud cloud-init networkdata as a base64 encoded string. :return: The network_data_base64 of this V1CloudInitNoCloudSource. :rtype: str @@ -111,7 +111,7 @@ def network_data_base64(self): def network_data_base64(self, network_data_base64): """ Sets the network_data_base64 of this V1CloudInitNoCloudSource. - NetworkDataBase64 contains NoCloud cloud-init networkdata as a base64 encoded string. + optional + NetworkDataBase64 contains NoCloud cloud-init networkdata as a base64 encoded string. :param network_data_base64: The network_data_base64 of this V1CloudInitNoCloudSource. :type: str @@ -123,7 +123,7 @@ def network_data_base64(self, network_data_base64): def network_data_secret_ref(self): """ Gets the network_data_secret_ref of this V1CloudInitNoCloudSource. - NetworkDataSecretRef references a k8s secret that contains NoCloud networkdata. + optional + NetworkDataSecretRef references a k8s secret that contains NoCloud networkdata. :return: The network_data_secret_ref of this V1CloudInitNoCloudSource. :rtype: V1LocalObjectReference @@ -134,7 +134,7 @@ def network_data_secret_ref(self): def network_data_secret_ref(self, network_data_secret_ref): """ Sets the network_data_secret_ref of this V1CloudInitNoCloudSource. - NetworkDataSecretRef references a k8s secret that contains NoCloud networkdata. + optional + NetworkDataSecretRef references a k8s secret that contains NoCloud networkdata. :param network_data_secret_ref: The network_data_secret_ref of this V1CloudInitNoCloudSource. :type: V1LocalObjectReference @@ -146,7 +146,7 @@ def network_data_secret_ref(self, network_data_secret_ref): def secret_ref(self): """ Gets the secret_ref of this V1CloudInitNoCloudSource. - UserDataSecretRef references a k8s secret that contains NoCloud userdata. + optional + UserDataSecretRef references a k8s secret that contains NoCloud userdata. :return: The secret_ref of this V1CloudInitNoCloudSource. :rtype: V1LocalObjectReference @@ -157,7 +157,7 @@ def secret_ref(self): def secret_ref(self, secret_ref): """ Sets the secret_ref of this V1CloudInitNoCloudSource. - UserDataSecretRef references a k8s secret that contains NoCloud userdata. + optional + UserDataSecretRef references a k8s secret that contains NoCloud userdata. :param secret_ref: The secret_ref of this V1CloudInitNoCloudSource. :type: V1LocalObjectReference @@ -169,7 +169,7 @@ def secret_ref(self, secret_ref): def user_data(self): """ Gets the user_data of this V1CloudInitNoCloudSource. - UserData contains NoCloud inline cloud-init userdata. + optional + UserData contains NoCloud inline cloud-init userdata. :return: The user_data of this V1CloudInitNoCloudSource. :rtype: str @@ -180,7 +180,7 @@ def user_data(self): def user_data(self, user_data): """ Sets the user_data of this V1CloudInitNoCloudSource. - UserData contains NoCloud inline cloud-init userdata. + optional + UserData contains NoCloud inline cloud-init userdata. :param user_data: The user_data of this V1CloudInitNoCloudSource. :type: str @@ -192,7 +192,7 @@ def user_data(self, user_data): def user_data_base64(self): """ Gets the user_data_base64 of this V1CloudInitNoCloudSource. - UserDataBase64 contains NoCloud cloud-init userdata as a base64 encoded string. + optional + UserDataBase64 contains NoCloud cloud-init userdata as a base64 encoded string. :return: The user_data_base64 of this V1CloudInitNoCloudSource. :rtype: str @@ -203,7 +203,7 @@ def user_data_base64(self): def user_data_base64(self, user_data_base64): """ Sets the user_data_base64 of this V1CloudInitNoCloudSource. - UserDataBase64 contains NoCloud cloud-init userdata as a base64 encoded string. + optional + UserDataBase64 contains NoCloud cloud-init userdata as a base64 encoded string. :param user_data_base64: The user_data_base64 of this V1CloudInitNoCloudSource. :type: str diff --git a/kubevirt/models/v1_config_map_volume_source.py b/kubevirt/models/v1_config_map_volume_source.py index aadd77a4..ca8bbbc8 100644 --- a/kubevirt/models/v1_config_map_volume_source.py +++ b/kubevirt/models/v1_config_map_volume_source.py @@ -85,7 +85,7 @@ def name(self, name): def optional(self): """ Gets the optional of this V1ConfigMapVolumeSource. - Specify whether the ConfigMap or it's keys must be defined +optional + Specify whether the ConfigMap or it's keys must be defined :return: The optional of this V1ConfigMapVolumeSource. :rtype: bool @@ -96,7 +96,7 @@ def optional(self): def optional(self, optional): """ Sets the optional of this V1ConfigMapVolumeSource. - Specify whether the ConfigMap or it's keys must be defined +optional + Specify whether the ConfigMap or it's keys must be defined :param optional: The optional of this V1ConfigMapVolumeSource. :type: bool @@ -108,7 +108,7 @@ def optional(self, optional): def volume_label(self): """ Gets the volume_label of this V1ConfigMapVolumeSource. - The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart). +optional + The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart). :return: The volume_label of this V1ConfigMapVolumeSource. :rtype: str @@ -119,7 +119,7 @@ def volume_label(self): def volume_label(self, volume_label): """ Sets the volume_label of this V1ConfigMapVolumeSource. - The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart). +optional + The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart). :param volume_label: The volume_label of this V1ConfigMapVolumeSource. :type: str diff --git a/kubevirt/models/v1_container_disk_source.py b/kubevirt/models/v1_container_disk_source.py index 0c8f831e..2ec05ffc 100644 --- a/kubevirt/models/v1_container_disk_source.py +++ b/kubevirt/models/v1_container_disk_source.py @@ -91,7 +91,7 @@ def image(self, image): def image_pull_policy(self): """ Gets the image_pull_policy of this V1ContainerDiskSource. - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images +optional + Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images :return: The image_pull_policy of this V1ContainerDiskSource. :rtype: str @@ -102,7 +102,7 @@ def image_pull_policy(self): def image_pull_policy(self, image_pull_policy): """ Sets the image_pull_policy of this V1ContainerDiskSource. - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images +optional + Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images :param image_pull_policy: The image_pull_policy of this V1ContainerDiskSource. :type: str diff --git a/kubevirt/models/v1_cpu.py b/kubevirt/models/v1_cpu.py index 14b03546..c6415faa 100644 --- a/kubevirt/models/v1_cpu.py +++ b/kubevirt/models/v1_cpu.py @@ -105,7 +105,7 @@ def cores(self, cores): def dedicated_cpu_placement(self): """ Gets the dedicated_cpu_placement of this V1CPU. - DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. +optional + DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. :return: The dedicated_cpu_placement of this V1CPU. :rtype: bool @@ -116,7 +116,7 @@ def dedicated_cpu_placement(self): def dedicated_cpu_placement(self, dedicated_cpu_placement): """ Sets the dedicated_cpu_placement of this V1CPU. - DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. +optional + DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. :param dedicated_cpu_placement: The dedicated_cpu_placement of this V1CPU. :type: bool @@ -128,7 +128,7 @@ def dedicated_cpu_placement(self, dedicated_cpu_placement): def features(self): """ Gets the features of this V1CPU. - Features specifies the CPU features list inside the VMI. +optional + Features specifies the CPU features list inside the VMI. :return: The features of this V1CPU. :rtype: list[V1CPUFeature] @@ -139,7 +139,7 @@ def features(self): def features(self, features): """ Sets the features of this V1CPU. - Features specifies the CPU features list inside the VMI. +optional + Features specifies the CPU features list inside the VMI. :param features: The features of this V1CPU. :type: list[V1CPUFeature] @@ -151,7 +151,7 @@ def features(self, features): def isolate_emulator_thread(self): """ Gets the isolate_emulator_thread of this V1CPU. - IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it. +optional + IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it. :return: The isolate_emulator_thread of this V1CPU. :rtype: bool @@ -162,7 +162,7 @@ def isolate_emulator_thread(self): def isolate_emulator_thread(self, isolate_emulator_thread): """ Sets the isolate_emulator_thread of this V1CPU. - IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it. +optional + IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it. :param isolate_emulator_thread: The isolate_emulator_thread of this V1CPU. :type: bool @@ -174,7 +174,7 @@ def isolate_emulator_thread(self, isolate_emulator_thread): def model(self): """ Gets the model of this V1CPU. - Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. +optional + Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. :return: The model of this V1CPU. :rtype: str @@ -185,7 +185,7 @@ def model(self): def model(self, model): """ Sets the model of this V1CPU. - Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. +optional + Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. :param model: The model of this V1CPU. :type: str diff --git a/kubevirt/models/v1_cpu_feature.py b/kubevirt/models/v1_cpu_feature.py index e0fbb1db..a67c9da3 100644 --- a/kubevirt/models/v1_cpu_feature.py +++ b/kubevirt/models/v1_cpu_feature.py @@ -81,7 +81,7 @@ def name(self, name): def policy(self): """ Gets the policy of this V1CPUFeature. - Policy is the CPU feature attribute which can have the following attributes: force - The virtual CPU will claim the feature is supported regardless of it being supported by host CPU. require - Guest creation will fail unless the feature is supported by the host CPU or the hypervisor is able to emulate it. optional - The feature will be supported by virtual CPU if and only if it is supported by host CPU. disable - The feature will not be supported by virtual CPU. forbid - Guest creation will fail if the feature is supported by host CPU. Defaults to require +optional + Policy is the CPU feature attribute which can have the following attributes: force - The virtual CPU will claim the feature is supported regardless of it being supported by host CPU. require - Guest creation will fail unless the feature is supported by the host CPU or the hypervisor is able to emulate it. optional - The feature will be supported by virtual CPU if and only if it is supported by host CPU. disable - The feature will not be supported by virtual CPU. forbid - Guest creation will fail if the feature is supported by host CPU. Defaults to require :return: The policy of this V1CPUFeature. :rtype: str @@ -92,7 +92,7 @@ def policy(self): def policy(self, policy): """ Sets the policy of this V1CPUFeature. - Policy is the CPU feature attribute which can have the following attributes: force - The virtual CPU will claim the feature is supported regardless of it being supported by host CPU. require - Guest creation will fail unless the feature is supported by the host CPU or the hypervisor is able to emulate it. optional - The feature will be supported by virtual CPU if and only if it is supported by host CPU. disable - The feature will not be supported by virtual CPU. forbid - Guest creation will fail if the feature is supported by host CPU. Defaults to require +optional + Policy is the CPU feature attribute which can have the following attributes: force - The virtual CPU will claim the feature is supported regardless of it being supported by host CPU. require - Guest creation will fail unless the feature is supported by the host CPU or the hypervisor is able to emulate it. optional - The feature will be supported by virtual CPU if and only if it is supported by host CPU. disable - The feature will not be supported by virtual CPU. forbid - Guest creation will fail if the feature is supported by host CPU. Defaults to require :param policy: The policy of this V1CPUFeature. :type: str diff --git a/kubevirt/models/v1_delete_options.py b/kubevirt/models/v1_delete_options.py index 6d55142e..6dbaa58f 100644 --- a/kubevirt/models/v1_delete_options.py +++ b/kubevirt/models/v1_delete_options.py @@ -37,7 +37,7 @@ class V1DeleteOptions(object): 'kind': 'str', 'orphan_dependents': 'bool', 'preconditions': 'V1Preconditions', - 'propagation_policy': 'V1DeletionPropagation' + 'propagation_policy': 'str' } attribute_map = { @@ -223,7 +223,7 @@ def propagation_policy(self): Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :return: The propagation_policy of this V1DeleteOptions. - :rtype: V1DeletionPropagation + :rtype: str """ return self._propagation_policy @@ -234,7 +234,7 @@ def propagation_policy(self, propagation_policy): Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param propagation_policy: The propagation_policy of this V1DeleteOptions. - :type: V1DeletionPropagation + :type: str """ self._propagation_policy = propagation_policy diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index 3d3ab276..38bee263 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -171,7 +171,7 @@ def autoattach_serial_console(self, autoattach_serial_console): def block_multi_queue(self): """ Gets the block_multi_queue of this V1Devices. - Whether or not to enable virtio multi-queue for block devices +optional + Whether or not to enable virtio multi-queue for block devices :return: The block_multi_queue of this V1Devices. :rtype: bool @@ -182,7 +182,7 @@ def block_multi_queue(self): def block_multi_queue(self, block_multi_queue): """ Sets the block_multi_queue of this V1Devices. - Whether or not to enable virtio multi-queue for block devices +optional + Whether or not to enable virtio multi-queue for block devices :param block_multi_queue: The block_multi_queue of this V1Devices. :type: bool @@ -217,7 +217,7 @@ def disks(self, disks): def gpus(self): """ Gets the gpus of this V1Devices. - Whether to attach a GPU device to the vmi. +optional + Whether to attach a GPU device to the vmi. :return: The gpus of this V1Devices. :rtype: list[V1GPU] @@ -228,7 +228,7 @@ def gpus(self): def gpus(self, gpus): """ Sets the gpus of this V1Devices. - Whether to attach a GPU device to the vmi. +optional + Whether to attach a GPU device to the vmi. :param gpus: The gpus of this V1Devices. :type: list[V1GPU] @@ -286,7 +286,7 @@ def interfaces(self, interfaces): def network_interface_multiqueue(self): """ Gets the network_interface_multiqueue of this V1Devices. - If specified, virtual network interfaces configured with a virtio bus will also enable the vhost multiqueue feature +optional + If specified, virtual network interfaces configured with a virtio bus will also enable the vhost multiqueue feature :return: The network_interface_multiqueue of this V1Devices. :rtype: bool @@ -297,7 +297,7 @@ def network_interface_multiqueue(self): def network_interface_multiqueue(self, network_interface_multiqueue): """ Sets the network_interface_multiqueue of this V1Devices. - If specified, virtual network interfaces configured with a virtio bus will also enable the vhost multiqueue feature +optional + If specified, virtual network interfaces configured with a virtio bus will also enable the vhost multiqueue feature :param network_interface_multiqueue: The network_interface_multiqueue of this V1Devices. :type: bool @@ -309,7 +309,7 @@ def network_interface_multiqueue(self, network_interface_multiqueue): def rng(self): """ Gets the rng of this V1Devices. - Whether to have random number generator from host +optional + Whether to have random number generator from host :return: The rng of this V1Devices. :rtype: V1Rng @@ -320,7 +320,7 @@ def rng(self): def rng(self, rng): """ Sets the rng of this V1Devices. - Whether to have random number generator from host +optional + Whether to have random number generator from host :param rng: The rng of this V1Devices. :type: V1Rng diff --git a/kubevirt/models/v1_dhcp_options.py b/kubevirt/models/v1_dhcp_options.py index 7801c9f9..86e247ca 100644 --- a/kubevirt/models/v1_dhcp_options.py +++ b/kubevirt/models/v1_dhcp_options.py @@ -67,7 +67,7 @@ def __init__(self, boot_file_name=None, ntp_servers=None, private_options=None, def boot_file_name(self): """ Gets the boot_file_name of this V1DHCPOptions. - If specified will pass option 67 to interface's DHCP server +optional + If specified will pass option 67 to interface's DHCP server :return: The boot_file_name of this V1DHCPOptions. :rtype: str @@ -78,7 +78,7 @@ def boot_file_name(self): def boot_file_name(self, boot_file_name): """ Sets the boot_file_name of this V1DHCPOptions. - If specified will pass option 67 to interface's DHCP server +optional + If specified will pass option 67 to interface's DHCP server :param boot_file_name: The boot_file_name of this V1DHCPOptions. :type: str @@ -90,7 +90,7 @@ def boot_file_name(self, boot_file_name): def ntp_servers(self): """ Gets the ntp_servers of this V1DHCPOptions. - If specified will pass the configured NTP server to the VM via DHCP option 042. +optional + If specified will pass the configured NTP server to the VM via DHCP option 042. :return: The ntp_servers of this V1DHCPOptions. :rtype: list[str] @@ -101,7 +101,7 @@ def ntp_servers(self): def ntp_servers(self, ntp_servers): """ Sets the ntp_servers of this V1DHCPOptions. - If specified will pass the configured NTP server to the VM via DHCP option 042. +optional + If specified will pass the configured NTP server to the VM via DHCP option 042. :param ntp_servers: The ntp_servers of this V1DHCPOptions. :type: list[str] @@ -113,7 +113,7 @@ def ntp_servers(self, ntp_servers): def private_options(self): """ Gets the private_options of this V1DHCPOptions. - If specified will pass extra DHCP options for private use, range: 224-254 +optional + If specified will pass extra DHCP options for private use, range: 224-254 :return: The private_options of this V1DHCPOptions. :rtype: list[V1DHCPPrivateOptions] @@ -124,7 +124,7 @@ def private_options(self): def private_options(self, private_options): """ Sets the private_options of this V1DHCPOptions. - If specified will pass extra DHCP options for private use, range: 224-254 +optional + If specified will pass extra DHCP options for private use, range: 224-254 :param private_options: The private_options of this V1DHCPOptions. :type: list[V1DHCPPrivateOptions] @@ -136,7 +136,7 @@ def private_options(self, private_options): def tftp_server_name(self): """ Gets the tftp_server_name of this V1DHCPOptions. - If specified will pass option 66 to interface's DHCP server +optional + If specified will pass option 66 to interface's DHCP server :return: The tftp_server_name of this V1DHCPOptions. :rtype: str @@ -147,7 +147,7 @@ def tftp_server_name(self): def tftp_server_name(self, tftp_server_name): """ Sets the tftp_server_name of this V1DHCPOptions. - If specified will pass option 66 to interface's DHCP server +optional + If specified will pass option 66 to interface's DHCP server :param tftp_server_name: The tftp_server_name of this V1DHCPOptions. :type: str diff --git a/kubevirt/models/v1_disk.py b/kubevirt/models/v1_disk.py index 60a695e3..e1d7b3d2 100644 --- a/kubevirt/models/v1_disk.py +++ b/kubevirt/models/v1_disk.py @@ -96,7 +96,7 @@ def __init__(self, boot_order=None, cache=None, cdrom=None, dedicated_io_thread= def boot_order(self): """ Gets the boot_order of this V1Disk. - BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each disk or interface that has a boot order must have a unique value. Disks without a boot order are not tried if a disk with a boot order exists. +optional + BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each disk or interface that has a boot order must have a unique value. Disks without a boot order are not tried if a disk with a boot order exists. :return: The boot_order of this V1Disk. :rtype: int @@ -107,7 +107,7 @@ def boot_order(self): def boot_order(self, boot_order): """ Sets the boot_order of this V1Disk. - BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each disk or interface that has a boot order must have a unique value. Disks without a boot order are not tried if a disk with a boot order exists. +optional + BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each disk or interface that has a boot order must have a unique value. Disks without a boot order are not tried if a disk with a boot order exists. :param boot_order: The boot_order of this V1Disk. :type: int @@ -119,7 +119,7 @@ def boot_order(self, boot_order): def cache(self): """ Gets the cache of this V1Disk. - Cache specifies which kvm disk cache mode should be used. +optional + Cache specifies which kvm disk cache mode should be used. :return: The cache of this V1Disk. :rtype: str @@ -130,7 +130,7 @@ def cache(self): def cache(self, cache): """ Sets the cache of this V1Disk. - Cache specifies which kvm disk cache mode should be used. +optional + Cache specifies which kvm disk cache mode should be used. :param cache: The cache of this V1Disk. :type: str @@ -165,7 +165,7 @@ def cdrom(self, cdrom): def dedicated_io_thread(self): """ Gets the dedicated_io_thread of this V1Disk. - dedicatedIOThread indicates this disk should have an exclusive IO Thread. Enabling this implies useIOThreads = true. Defaults to false. +optional + dedicatedIOThread indicates this disk should have an exclusive IO Thread. Enabling this implies useIOThreads = true. Defaults to false. :return: The dedicated_io_thread of this V1Disk. :rtype: bool @@ -176,7 +176,7 @@ def dedicated_io_thread(self): def dedicated_io_thread(self, dedicated_io_thread): """ Sets the dedicated_io_thread of this V1Disk. - dedicatedIOThread indicates this disk should have an exclusive IO Thread. Enabling this implies useIOThreads = true. Defaults to false. +optional + dedicatedIOThread indicates this disk should have an exclusive IO Thread. Enabling this implies useIOThreads = true. Defaults to false. :param dedicated_io_thread: The dedicated_io_thread of this V1Disk. :type: bool @@ -282,7 +282,7 @@ def name(self, name): def serial(self): """ Gets the serial of this V1Disk. - Serial provides the ability to specify a serial number for the disk device. +optional + Serial provides the ability to specify a serial number for the disk device. :return: The serial of this V1Disk. :rtype: str @@ -293,7 +293,7 @@ def serial(self): def serial(self, serial): """ Sets the serial of this V1Disk. - Serial provides the ability to specify a serial number for the disk device. +optional + Serial provides the ability to specify a serial number for the disk device. :param serial: The serial of this V1Disk. :type: str @@ -305,7 +305,7 @@ def serial(self, serial): def tag(self): """ Gets the tag of this V1Disk. - If specified, disk address and its tag will be provided to the guest via config drive metadata +optional + If specified, disk address and its tag will be provided to the guest via config drive metadata :return: The tag of this V1Disk. :rtype: str @@ -316,7 +316,7 @@ def tag(self): def tag(self, tag): """ Sets the tag of this V1Disk. - If specified, disk address and its tag will be provided to the guest via config drive metadata +optional + If specified, disk address and its tag will be provided to the guest via config drive metadata :param tag: The tag of this V1Disk. :type: str diff --git a/kubevirt/models/v1_disk_target.py b/kubevirt/models/v1_disk_target.py index a9732b01..0bbfafe1 100644 --- a/kubevirt/models/v1_disk_target.py +++ b/kubevirt/models/v1_disk_target.py @@ -85,7 +85,7 @@ def bus(self, bus): def pci_address(self): """ Gets the pci_address of this V1DiskTarget. - If specified, the virtual disk will be placed on the guests pci address with the specifed PCI address. For example: 0000:81:01.10 +optional + If specified, the virtual disk will be placed on the guests pci address with the specifed PCI address. For example: 0000:81:01.10 :return: The pci_address of this V1DiskTarget. :rtype: str @@ -96,7 +96,7 @@ def pci_address(self): def pci_address(self, pci_address): """ Sets the pci_address of this V1DiskTarget. - If specified, the virtual disk will be placed on the guests pci address with the specifed PCI address. For example: 0000:81:01.10 +optional + If specified, the virtual disk will be placed on the guests pci address with the specifed PCI address. For example: 0000:81:01.10 :param pci_address: The pci_address of this V1DiskTarget. :type: str diff --git a/kubevirt/models/v1_domain_spec.py b/kubevirt/models/v1_domain_spec.py index 8794a95a..81b271be 100644 --- a/kubevirt/models/v1_domain_spec.py +++ b/kubevirt/models/v1_domain_spec.py @@ -37,7 +37,7 @@ class V1DomainSpec(object): 'devices': 'V1Devices', 'features': 'V1Features', 'firmware': 'V1Firmware', - 'io_threads_policy': 'V1IOThreadsPolicy', + 'io_threads_policy': 'str', 'machine': 'V1Machine', 'memory': 'V1Memory', 'resources': 'V1ResourceRequirements' @@ -96,7 +96,7 @@ def __init__(self, chassis=None, clock=None, cpu=None, devices=None, features=No def chassis(self): """ Gets the chassis of this V1DomainSpec. - Chassis specifies the chassis info passed to the domain. +optional + Chassis specifies the chassis info passed to the domain. :return: The chassis of this V1DomainSpec. :rtype: V1Chassis @@ -107,7 +107,7 @@ def chassis(self): def chassis(self, chassis): """ Sets the chassis of this V1DomainSpec. - Chassis specifies the chassis info passed to the domain. +optional + Chassis specifies the chassis info passed to the domain. :param chassis: The chassis of this V1DomainSpec. :type: V1Chassis @@ -119,7 +119,7 @@ def chassis(self, chassis): def clock(self): """ Gets the clock of this V1DomainSpec. - Clock sets the clock and timers of the vmi. +optional + Clock sets the clock and timers of the vmi. :return: The clock of this V1DomainSpec. :rtype: V1Clock @@ -130,7 +130,7 @@ def clock(self): def clock(self, clock): """ Sets the clock of this V1DomainSpec. - Clock sets the clock and timers of the vmi. +optional + Clock sets the clock and timers of the vmi. :param clock: The clock of this V1DomainSpec. :type: V1Clock @@ -142,7 +142,7 @@ def clock(self, clock): def cpu(self): """ Gets the cpu of this V1DomainSpec. - CPU allow specified the detailed CPU topology inside the vmi. +optional + CPU allow specified the detailed CPU topology inside the vmi. :return: The cpu of this V1DomainSpec. :rtype: V1CPU @@ -153,7 +153,7 @@ def cpu(self): def cpu(self, cpu): """ Sets the cpu of this V1DomainSpec. - CPU allow specified the detailed CPU topology inside the vmi. +optional + CPU allow specified the detailed CPU topology inside the vmi. :param cpu: The cpu of this V1DomainSpec. :type: V1CPU @@ -165,7 +165,7 @@ def cpu(self, cpu): def devices(self): """ Gets the devices of this V1DomainSpec. - Devices allows adding disks, network interfaces, ... + Devices allows adding disks, network interfaces, and others :return: The devices of this V1DomainSpec. :rtype: V1Devices @@ -176,7 +176,7 @@ def devices(self): def devices(self, devices): """ Sets the devices of this V1DomainSpec. - Devices allows adding disks, network interfaces, ... + Devices allows adding disks, network interfaces, and others :param devices: The devices of this V1DomainSpec. :type: V1Devices @@ -190,7 +190,7 @@ def devices(self, devices): def features(self): """ Gets the features of this V1DomainSpec. - Features like acpi, apic, hyperv, smm. +optional + Features like acpi, apic, hyperv, smm. :return: The features of this V1DomainSpec. :rtype: V1Features @@ -201,7 +201,7 @@ def features(self): def features(self, features): """ Sets the features of this V1DomainSpec. - Features like acpi, apic, hyperv, smm. +optional + Features like acpi, apic, hyperv, smm. :param features: The features of this V1DomainSpec. :type: V1Features @@ -213,7 +213,7 @@ def features(self, features): def firmware(self): """ Gets the firmware of this V1DomainSpec. - Firmware. +optional + Firmware. :return: The firmware of this V1DomainSpec. :rtype: V1Firmware @@ -224,7 +224,7 @@ def firmware(self): def firmware(self, firmware): """ Sets the firmware of this V1DomainSpec. - Firmware. +optional + Firmware. :param firmware: The firmware of this V1DomainSpec. :type: V1Firmware @@ -236,10 +236,10 @@ def firmware(self, firmware): def io_threads_policy(self): """ Gets the io_threads_policy of this V1DomainSpec. - Controls whether or not disks will share IOThreads. Omitting IOThreadsPolicy disables use of IOThreads. One of: shared, auto +optional + Controls whether or not disks will share IOThreads. Omitting IOThreadsPolicy disables use of IOThreads. One of: shared, auto :return: The io_threads_policy of this V1DomainSpec. - :rtype: V1IOThreadsPolicy + :rtype: str """ return self._io_threads_policy @@ -247,10 +247,10 @@ def io_threads_policy(self): def io_threads_policy(self, io_threads_policy): """ Sets the io_threads_policy of this V1DomainSpec. - Controls whether or not disks will share IOThreads. Omitting IOThreadsPolicy disables use of IOThreads. One of: shared, auto +optional + Controls whether or not disks will share IOThreads. Omitting IOThreadsPolicy disables use of IOThreads. One of: shared, auto :param io_threads_policy: The io_threads_policy of this V1DomainSpec. - :type: V1IOThreadsPolicy + :type: str """ self._io_threads_policy = io_threads_policy @@ -259,7 +259,7 @@ def io_threads_policy(self, io_threads_policy): def machine(self): """ Gets the machine of this V1DomainSpec. - Machine type. +optional + Machine type. :return: The machine of this V1DomainSpec. :rtype: V1Machine @@ -270,7 +270,7 @@ def machine(self): def machine(self, machine): """ Sets the machine of this V1DomainSpec. - Machine type. +optional + Machine type. :param machine: The machine of this V1DomainSpec. :type: V1Machine @@ -282,7 +282,7 @@ def machine(self, machine): def memory(self): """ Gets the memory of this V1DomainSpec. - Memory allow specifying the VMI memory features. +optional + Memory allow specifying the VMI memory features. :return: The memory of this V1DomainSpec. :rtype: V1Memory @@ -293,7 +293,7 @@ def memory(self): def memory(self, memory): """ Sets the memory of this V1DomainSpec. - Memory allow specifying the VMI memory features. +optional + Memory allow specifying the VMI memory features. :param memory: The memory of this V1DomainSpec. :type: V1Memory diff --git a/kubevirt/models/v1_efi.py b/kubevirt/models/v1_efi.py new file mode 100644 index 00000000..1e64f841 --- /dev/null +++ b/kubevirt/models/v1_efi.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1EFI(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1EFI - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1EFI): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_empty_disk_source.py b/kubevirt/models/v1_empty_disk_source.py index 89352abe..13ef39a7 100644 --- a/kubevirt/models/v1_empty_disk_source.py +++ b/kubevirt/models/v1_empty_disk_source.py @@ -31,7 +31,7 @@ class V1EmptyDiskSource(object): and the value is json key in definition. """ swagger_types = { - 'capacity': 'str' + 'capacity': 'ResourceQuantity' } attribute_map = { @@ -54,7 +54,7 @@ def capacity(self): Capacity of the sparse disk. :return: The capacity of this V1EmptyDiskSource. - :rtype: str + :rtype: ResourceQuantity """ return self._capacity @@ -65,7 +65,7 @@ def capacity(self, capacity): Capacity of the sparse disk. :param capacity: The capacity of this V1EmptyDiskSource. - :type: str + :type: ResourceQuantity """ if capacity is None: raise ValueError("Invalid value for `capacity`, must not be `None`") diff --git a/kubevirt/models/v1_ephemeral_volume_source.py b/kubevirt/models/v1_ephemeral_volume_source.py index 8bf06fa9..d1128a52 100644 --- a/kubevirt/models/v1_ephemeral_volume_source.py +++ b/kubevirt/models/v1_ephemeral_volume_source.py @@ -52,7 +52,7 @@ def __init__(self, persistent_volume_claim=None): def persistent_volume_claim(self): """ Gets the persistent_volume_claim of this V1EphemeralVolumeSource. - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims +optional + PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims :return: The persistent_volume_claim of this V1EphemeralVolumeSource. :rtype: V1PersistentVolumeClaimVolumeSource @@ -63,7 +63,7 @@ def persistent_volume_claim(self): def persistent_volume_claim(self, persistent_volume_claim): """ Sets the persistent_volume_claim of this V1EphemeralVolumeSource. - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims +optional + PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims :param persistent_volume_claim: The persistent_volume_claim of this V1EphemeralVolumeSource. :type: V1PersistentVolumeClaimVolumeSource diff --git a/kubevirt/models/v1_feature_apic.py b/kubevirt/models/v1_feature_apic.py index 765bb7f9..b9b57e8d 100644 --- a/kubevirt/models/v1_feature_apic.py +++ b/kubevirt/models/v1_feature_apic.py @@ -57,7 +57,7 @@ def __init__(self, enabled=None, end_of_interrupt=None): def enabled(self): """ Gets the enabled of this V1FeatureAPIC. - Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. +optional + Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. :return: The enabled of this V1FeatureAPIC. :rtype: bool @@ -68,7 +68,7 @@ def enabled(self): def enabled(self, enabled): """ Sets the enabled of this V1FeatureAPIC. - Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. +optional + Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. :param enabled: The enabled of this V1FeatureAPIC. :type: bool @@ -80,7 +80,7 @@ def enabled(self, enabled): def end_of_interrupt(self): """ Gets the end_of_interrupt of this V1FeatureAPIC. - EndOfInterrupt enables the end of interrupt notification in the guest. Defaults to false. +optional + EndOfInterrupt enables the end of interrupt notification in the guest. Defaults to false. :return: The end_of_interrupt of this V1FeatureAPIC. :rtype: bool @@ -91,7 +91,7 @@ def end_of_interrupt(self): def end_of_interrupt(self, end_of_interrupt): """ Sets the end_of_interrupt of this V1FeatureAPIC. - EndOfInterrupt enables the end of interrupt notification in the guest. Defaults to false. +optional + EndOfInterrupt enables the end of interrupt notification in the guest. Defaults to false. :param end_of_interrupt: The end_of_interrupt of this V1FeatureAPIC. :type: bool diff --git a/kubevirt/models/v1_feature_hyperv.py b/kubevirt/models/v1_feature_hyperv.py index b090df7b..268783c4 100644 --- a/kubevirt/models/v1_feature_hyperv.py +++ b/kubevirt/models/v1_feature_hyperv.py @@ -117,7 +117,7 @@ def __init__(self, evmcs=None, frequencies=None, ipi=None, reenlightenment=None, def evmcs(self): """ Gets the evmcs of this V1FeatureHyperv. - EVMCS Speeds up L2 vmexits, but disables other virtualization features. Requires vapic. Defaults to the machine type setting. +optional + EVMCS Speeds up L2 vmexits, but disables other virtualization features. Requires vapic. Defaults to the machine type setting. :return: The evmcs of this V1FeatureHyperv. :rtype: V1FeatureState @@ -128,7 +128,7 @@ def evmcs(self): def evmcs(self, evmcs): """ Sets the evmcs of this V1FeatureHyperv. - EVMCS Speeds up L2 vmexits, but disables other virtualization features. Requires vapic. Defaults to the machine type setting. +optional + EVMCS Speeds up L2 vmexits, but disables other virtualization features. Requires vapic. Defaults to the machine type setting. :param evmcs: The evmcs of this V1FeatureHyperv. :type: V1FeatureState @@ -140,7 +140,7 @@ def evmcs(self, evmcs): def frequencies(self): """ Gets the frequencies of this V1FeatureHyperv. - Frequencies improves the TSC clock source handling for Hyper-V on KVM. Defaults to the machine type setting. +optional + Frequencies improves the TSC clock source handling for Hyper-V on KVM. Defaults to the machine type setting. :return: The frequencies of this V1FeatureHyperv. :rtype: V1FeatureState @@ -151,7 +151,7 @@ def frequencies(self): def frequencies(self, frequencies): """ Sets the frequencies of this V1FeatureHyperv. - Frequencies improves the TSC clock source handling for Hyper-V on KVM. Defaults to the machine type setting. +optional + Frequencies improves the TSC clock source handling for Hyper-V on KVM. Defaults to the machine type setting. :param frequencies: The frequencies of this V1FeatureHyperv. :type: V1FeatureState @@ -163,7 +163,7 @@ def frequencies(self, frequencies): def ipi(self): """ Gets the ipi of this V1FeatureHyperv. - IPI improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. +optional + IPI improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. :return: The ipi of this V1FeatureHyperv. :rtype: V1FeatureState @@ -174,7 +174,7 @@ def ipi(self): def ipi(self, ipi): """ Sets the ipi of this V1FeatureHyperv. - IPI improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. +optional + IPI improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. :param ipi: The ipi of this V1FeatureHyperv. :type: V1FeatureState @@ -186,7 +186,7 @@ def ipi(self, ipi): def reenlightenment(self): """ Gets the reenlightenment of this V1FeatureHyperv. - Reenlightenment enables the notifications on TSC frequency changes. Defaults to the machine type setting. +optional + Reenlightenment enables the notifications on TSC frequency changes. Defaults to the machine type setting. :return: The reenlightenment of this V1FeatureHyperv. :rtype: V1FeatureState @@ -197,7 +197,7 @@ def reenlightenment(self): def reenlightenment(self, reenlightenment): """ Sets the reenlightenment of this V1FeatureHyperv. - Reenlightenment enables the notifications on TSC frequency changes. Defaults to the machine type setting. +optional + Reenlightenment enables the notifications on TSC frequency changes. Defaults to the machine type setting. :param reenlightenment: The reenlightenment of this V1FeatureHyperv. :type: V1FeatureState @@ -209,7 +209,7 @@ def reenlightenment(self, reenlightenment): def relaxed(self): """ Gets the relaxed of this V1FeatureHyperv. - Relaxed instructs the guest OS to disable watchdog timeouts. Defaults to the machine type setting. +optional + Relaxed instructs the guest OS to disable watchdog timeouts. Defaults to the machine type setting. :return: The relaxed of this V1FeatureHyperv. :rtype: V1FeatureState @@ -220,7 +220,7 @@ def relaxed(self): def relaxed(self, relaxed): """ Sets the relaxed of this V1FeatureHyperv. - Relaxed instructs the guest OS to disable watchdog timeouts. Defaults to the machine type setting. +optional + Relaxed instructs the guest OS to disable watchdog timeouts. Defaults to the machine type setting. :param relaxed: The relaxed of this V1FeatureHyperv. :type: V1FeatureState @@ -232,7 +232,7 @@ def relaxed(self, relaxed): def reset(self): """ Gets the reset of this V1FeatureHyperv. - Reset enables Hyperv reboot/reset for the vmi. Requires synic. Defaults to the machine type setting. +optional + Reset enables Hyperv reboot/reset for the vmi. Requires synic. Defaults to the machine type setting. :return: The reset of this V1FeatureHyperv. :rtype: V1FeatureState @@ -243,7 +243,7 @@ def reset(self): def reset(self, reset): """ Sets the reset of this V1FeatureHyperv. - Reset enables Hyperv reboot/reset for the vmi. Requires synic. Defaults to the machine type setting. +optional + Reset enables Hyperv reboot/reset for the vmi. Requires synic. Defaults to the machine type setting. :param reset: The reset of this V1FeatureHyperv. :type: V1FeatureState @@ -255,7 +255,7 @@ def reset(self, reset): def runtime(self): """ Gets the runtime of this V1FeatureHyperv. - Runtime improves the time accounting to improve scheduling in the guest. Defaults to the machine type setting. +optional + Runtime improves the time accounting to improve scheduling in the guest. Defaults to the machine type setting. :return: The runtime of this V1FeatureHyperv. :rtype: V1FeatureState @@ -266,7 +266,7 @@ def runtime(self): def runtime(self, runtime): """ Sets the runtime of this V1FeatureHyperv. - Runtime improves the time accounting to improve scheduling in the guest. Defaults to the machine type setting. +optional + Runtime improves the time accounting to improve scheduling in the guest. Defaults to the machine type setting. :param runtime: The runtime of this V1FeatureHyperv. :type: V1FeatureState @@ -278,7 +278,7 @@ def runtime(self, runtime): def spinlocks(self): """ Gets the spinlocks of this V1FeatureHyperv. - Spinlocks allows to configure the spinlock retry attempts. +optional + Spinlocks allows to configure the spinlock retry attempts. :return: The spinlocks of this V1FeatureHyperv. :rtype: V1FeatureSpinlocks @@ -289,7 +289,7 @@ def spinlocks(self): def spinlocks(self, spinlocks): """ Sets the spinlocks of this V1FeatureHyperv. - Spinlocks allows to configure the spinlock retry attempts. +optional + Spinlocks allows to configure the spinlock retry attempts. :param spinlocks: The spinlocks of this V1FeatureHyperv. :type: V1FeatureSpinlocks @@ -301,7 +301,7 @@ def spinlocks(self, spinlocks): def synic(self): """ Gets the synic of this V1FeatureHyperv. - SyNIC enables the Synthetic Interrupt Controller. Defaults to the machine type setting. +optional + SyNIC enables the Synthetic Interrupt Controller. Defaults to the machine type setting. :return: The synic of this V1FeatureHyperv. :rtype: V1FeatureState @@ -312,7 +312,7 @@ def synic(self): def synic(self, synic): """ Sets the synic of this V1FeatureHyperv. - SyNIC enables the Synthetic Interrupt Controller. Defaults to the machine type setting. +optional + SyNIC enables the Synthetic Interrupt Controller. Defaults to the machine type setting. :param synic: The synic of this V1FeatureHyperv. :type: V1FeatureState @@ -324,7 +324,7 @@ def synic(self, synic): def synictimer(self): """ Gets the synictimer of this V1FeatureHyperv. - SyNICTimer enables Synthetic Interrupt Controller Timers, reducing CPU load. Defaults to the machine type setting. +optional + SyNICTimer enables Synthetic Interrupt Controller Timers, reducing CPU load. Defaults to the machine type setting. :return: The synictimer of this V1FeatureHyperv. :rtype: V1FeatureState @@ -335,7 +335,7 @@ def synictimer(self): def synictimer(self, synictimer): """ Sets the synictimer of this V1FeatureHyperv. - SyNICTimer enables Synthetic Interrupt Controller Timers, reducing CPU load. Defaults to the machine type setting. +optional + SyNICTimer enables Synthetic Interrupt Controller Timers, reducing CPU load. Defaults to the machine type setting. :param synictimer: The synictimer of this V1FeatureHyperv. :type: V1FeatureState @@ -347,7 +347,7 @@ def synictimer(self, synictimer): def tlbflush(self): """ Gets the tlbflush of this V1FeatureHyperv. - TLBFlush improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. +optional + TLBFlush improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. :return: The tlbflush of this V1FeatureHyperv. :rtype: V1FeatureState @@ -358,7 +358,7 @@ def tlbflush(self): def tlbflush(self, tlbflush): """ Sets the tlbflush of this V1FeatureHyperv. - TLBFlush improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. +optional + TLBFlush improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. :param tlbflush: The tlbflush of this V1FeatureHyperv. :type: V1FeatureState @@ -370,7 +370,7 @@ def tlbflush(self, tlbflush): def vapic(self): """ Gets the vapic of this V1FeatureHyperv. - VAPIC improves the paravirtualized handling of interrupts. Defaults to the machine type setting. +optional + VAPIC improves the paravirtualized handling of interrupts. Defaults to the machine type setting. :return: The vapic of this V1FeatureHyperv. :rtype: V1FeatureState @@ -381,7 +381,7 @@ def vapic(self): def vapic(self, vapic): """ Sets the vapic of this V1FeatureHyperv. - VAPIC improves the paravirtualized handling of interrupts. Defaults to the machine type setting. +optional + VAPIC improves the paravirtualized handling of interrupts. Defaults to the machine type setting. :param vapic: The vapic of this V1FeatureHyperv. :type: V1FeatureState @@ -393,7 +393,7 @@ def vapic(self, vapic): def vendorid(self): """ Gets the vendorid of this V1FeatureHyperv. - VendorID allows setting the hypervisor vendor id. Defaults to the machine type setting. +optional + VendorID allows setting the hypervisor vendor id. Defaults to the machine type setting. :return: The vendorid of this V1FeatureHyperv. :rtype: V1FeatureVendorID @@ -404,7 +404,7 @@ def vendorid(self): def vendorid(self, vendorid): """ Sets the vendorid of this V1FeatureHyperv. - VendorID allows setting the hypervisor vendor id. Defaults to the machine type setting. +optional + VendorID allows setting the hypervisor vendor id. Defaults to the machine type setting. :param vendorid: The vendorid of this V1FeatureHyperv. :type: V1FeatureVendorID @@ -416,7 +416,7 @@ def vendorid(self, vendorid): def vpindex(self): """ Gets the vpindex of this V1FeatureHyperv. - VPIndex enables the Virtual Processor Index to help windows identifying virtual processors. Defaults to the machine type setting. +optional + VPIndex enables the Virtual Processor Index to help windows identifying virtual processors. Defaults to the machine type setting. :return: The vpindex of this V1FeatureHyperv. :rtype: V1FeatureState @@ -427,7 +427,7 @@ def vpindex(self): def vpindex(self, vpindex): """ Sets the vpindex of this V1FeatureHyperv. - VPIndex enables the Virtual Processor Index to help windows identifying virtual processors. Defaults to the machine type setting. +optional + VPIndex enables the Virtual Processor Index to help windows identifying virtual processors. Defaults to the machine type setting. :param vpindex: The vpindex of this V1FeatureHyperv. :type: V1FeatureState diff --git a/kubevirt/models/v1_feature_spinlocks.py b/kubevirt/models/v1_feature_spinlocks.py index a0392c85..c6071eda 100644 --- a/kubevirt/models/v1_feature_spinlocks.py +++ b/kubevirt/models/v1_feature_spinlocks.py @@ -57,7 +57,7 @@ def __init__(self, enabled=None, spinlocks=None): def enabled(self): """ Gets the enabled of this V1FeatureSpinlocks. - Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. +optional + Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. :return: The enabled of this V1FeatureSpinlocks. :rtype: bool @@ -68,7 +68,7 @@ def enabled(self): def enabled(self, enabled): """ Sets the enabled of this V1FeatureSpinlocks. - Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. +optional + Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. :param enabled: The enabled of this V1FeatureSpinlocks. :type: bool @@ -80,7 +80,7 @@ def enabled(self, enabled): def spinlocks(self): """ Gets the spinlocks of this V1FeatureSpinlocks. - Retries indicates the number of retries. Must be a value greater or equal 4096. Defaults to 4096. +optional + Retries indicates the number of retries. Must be a value greater or equal 4096. Defaults to 4096. :return: The spinlocks of this V1FeatureSpinlocks. :rtype: int @@ -91,7 +91,7 @@ def spinlocks(self): def spinlocks(self, spinlocks): """ Sets the spinlocks of this V1FeatureSpinlocks. - Retries indicates the number of retries. Must be a value greater or equal 4096. Defaults to 4096. +optional + Retries indicates the number of retries. Must be a value greater or equal 4096. Defaults to 4096. :param spinlocks: The spinlocks of this V1FeatureSpinlocks. :type: int diff --git a/kubevirt/models/v1_feature_state.py b/kubevirt/models/v1_feature_state.py index f93c7672..a12f43c6 100644 --- a/kubevirt/models/v1_feature_state.py +++ b/kubevirt/models/v1_feature_state.py @@ -52,7 +52,7 @@ def __init__(self, enabled=None): def enabled(self): """ Gets the enabled of this V1FeatureState. - Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. +optional + Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. :return: The enabled of this V1FeatureState. :rtype: bool @@ -63,7 +63,7 @@ def enabled(self): def enabled(self, enabled): """ Sets the enabled of this V1FeatureState. - Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. +optional + Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. :param enabled: The enabled of this V1FeatureState. :type: bool diff --git a/kubevirt/models/v1_feature_vendor_id.py b/kubevirt/models/v1_feature_vendor_id.py index 12bbdab2..2d8e9930 100644 --- a/kubevirt/models/v1_feature_vendor_id.py +++ b/kubevirt/models/v1_feature_vendor_id.py @@ -57,7 +57,7 @@ def __init__(self, enabled=None, vendorid=None): def enabled(self): """ Gets the enabled of this V1FeatureVendorID. - Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. +optional + Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. :return: The enabled of this V1FeatureVendorID. :rtype: bool @@ -68,7 +68,7 @@ def enabled(self): def enabled(self, enabled): """ Sets the enabled of this V1FeatureVendorID. - Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. +optional + Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. :param enabled: The enabled of this V1FeatureVendorID. :type: bool diff --git a/kubevirt/models/v1_features.py b/kubevirt/models/v1_features.py index 374c1b0a..c19dd67c 100644 --- a/kubevirt/models/v1_features.py +++ b/kubevirt/models/v1_features.py @@ -67,7 +67,7 @@ def __init__(self, acpi=None, apic=None, hyperv=None, smm=None): def acpi(self): """ Gets the acpi of this V1Features. - ACPI enables/disables ACPI insidejsondata guest. Defaults to enabled. +optional + ACPI enables/disables ACPI insidejsondata guest. Defaults to enabled. :return: The acpi of this V1Features. :rtype: V1FeatureState @@ -78,7 +78,7 @@ def acpi(self): def acpi(self, acpi): """ Sets the acpi of this V1Features. - ACPI enables/disables ACPI insidejsondata guest. Defaults to enabled. +optional + ACPI enables/disables ACPI insidejsondata guest. Defaults to enabled. :param acpi: The acpi of this V1Features. :type: V1FeatureState @@ -90,7 +90,7 @@ def acpi(self, acpi): def apic(self): """ Gets the apic of this V1Features. - Defaults to the machine type setting. +optional + Defaults to the machine type setting. :return: The apic of this V1Features. :rtype: V1FeatureAPIC @@ -101,7 +101,7 @@ def apic(self): def apic(self, apic): """ Sets the apic of this V1Features. - Defaults to the machine type setting. +optional + Defaults to the machine type setting. :param apic: The apic of this V1Features. :type: V1FeatureAPIC @@ -113,7 +113,7 @@ def apic(self, apic): def hyperv(self): """ Gets the hyperv of this V1Features. - Defaults to the machine type setting. +optional + Defaults to the machine type setting. :return: The hyperv of this V1Features. :rtype: V1FeatureHyperv @@ -124,7 +124,7 @@ def hyperv(self): def hyperv(self, hyperv): """ Sets the hyperv of this V1Features. - Defaults to the machine type setting. +optional + Defaults to the machine type setting. :param hyperv: The hyperv of this V1Features. :type: V1FeatureHyperv @@ -136,7 +136,7 @@ def hyperv(self, hyperv): def smm(self): """ Gets the smm of this V1Features. - SMM enables/disables System Management Mode. TSEG not yet implemented. +optional + SMM enables/disables System Management Mode. TSEG not yet implemented. :return: The smm of this V1Features. :rtype: V1FeatureState @@ -147,7 +147,7 @@ def smm(self): def smm(self, smm): """ Sets the smm of this V1Features. - SMM enables/disables System Management Mode. TSEG not yet implemented. +optional + SMM enables/disables System Management Mode. TSEG not yet implemented. :param smm: The smm of this V1Features. :type: V1FeatureState diff --git a/kubevirt/models/v1_fields_v1.py b/kubevirt/models/v1_fields_v1.py new file mode 100644 index 00000000..04ce4157 --- /dev/null +++ b/kubevirt/models/v1_fields_v1.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1FieldsV1(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1FieldsV1 - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1FieldsV1): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_firmware.py b/kubevirt/models/v1_firmware.py index 5ce88090..009ce235 100644 --- a/kubevirt/models/v1_firmware.py +++ b/kubevirt/models/v1_firmware.py @@ -62,7 +62,7 @@ def __init__(self, bootloader=None, serial=None, uuid=None): def bootloader(self): """ Gets the bootloader of this V1Firmware. - Settings to control the bootloader that is used. +optional + Settings to control the bootloader that is used. :return: The bootloader of this V1Firmware. :rtype: V1Bootloader @@ -73,7 +73,7 @@ def bootloader(self): def bootloader(self, bootloader): """ Sets the bootloader of this V1Firmware. - Settings to control the bootloader that is used. +optional + Settings to control the bootloader that is used. :param bootloader: The bootloader of this V1Firmware. :type: V1Bootloader diff --git a/kubevirt/models/v1_floppy_target.py b/kubevirt/models/v1_floppy_target.py index a32a22f8..597dbe5e 100644 --- a/kubevirt/models/v1_floppy_target.py +++ b/kubevirt/models/v1_floppy_target.py @@ -80,7 +80,7 @@ def readonly(self, readonly): def tray(self): """ Gets the tray of this V1FloppyTarget. - Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\". Defaults to closed. +optional + Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\". Defaults to closed. :return: The tray of this V1FloppyTarget. :rtype: str @@ -91,7 +91,7 @@ def tray(self): def tray(self, tray): """ Sets the tray of this V1FloppyTarget. - Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\". Defaults to closed. +optional + Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\". Defaults to closed. :param tray: The tray of this V1FloppyTarget. :type: str diff --git a/kubevirt/models/v1_host_disk.py b/kubevirt/models/v1_host_disk.py index 90036159..475c669b 100644 --- a/kubevirt/models/v1_host_disk.py +++ b/kubevirt/models/v1_host_disk.py @@ -31,7 +31,7 @@ class V1HostDisk(object): and the value is json key in definition. """ swagger_types = { - 'capacity': 'str', + 'capacity': 'ResourceQuantity', 'path': 'str', 'shared': 'bool', 'type': 'str' @@ -65,10 +65,10 @@ def __init__(self, capacity=None, path=None, shared=None, type=None): def capacity(self): """ Gets the capacity of this V1HostDisk. - Capacity of the sparse disk +optional + Capacity of the sparse disk :return: The capacity of this V1HostDisk. - :rtype: str + :rtype: ResourceQuantity """ return self._capacity @@ -76,10 +76,10 @@ def capacity(self): def capacity(self, capacity): """ Sets the capacity of this V1HostDisk. - Capacity of the sparse disk +optional + Capacity of the sparse disk :param capacity: The capacity of this V1HostDisk. - :type: str + :type: ResourceQuantity """ self._capacity = capacity diff --git a/kubevirt/models/v1_hpet_timer.py b/kubevirt/models/v1_hpet_timer.py index 4881dcd9..83dcc259 100644 --- a/kubevirt/models/v1_hpet_timer.py +++ b/kubevirt/models/v1_hpet_timer.py @@ -57,7 +57,7 @@ def __init__(self, present=None, tick_policy=None): def present(self): """ Gets the present of this V1HPETTimer. - Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional + Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. :return: The present of this V1HPETTimer. :rtype: bool @@ -68,7 +68,7 @@ def present(self): def present(self, present): """ Sets the present of this V1HPETTimer. - Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional + Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. :param present: The present of this V1HPETTimer. :type: bool diff --git a/kubevirt/models/v1_hyperv_timer.py b/kubevirt/models/v1_hyperv_timer.py index 78af35ae..7ac23e2f 100644 --- a/kubevirt/models/v1_hyperv_timer.py +++ b/kubevirt/models/v1_hyperv_timer.py @@ -52,7 +52,7 @@ def __init__(self, present=None): def present(self): """ Gets the present of this V1HypervTimer. - Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional + Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. :return: The present of this V1HypervTimer. :rtype: bool @@ -63,7 +63,7 @@ def present(self): def present(self, present): """ Sets the present of this V1HypervTimer. - Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional + Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. :param present: The present of this V1HypervTimer. :type: bool diff --git a/kubevirt/models/v1_interface.py b/kubevirt/models/v1_interface.py index 9ac22ea9..f6400c7c 100644 --- a/kubevirt/models/v1_interface.py +++ b/kubevirt/models/v1_interface.py @@ -106,7 +106,7 @@ def __init__(self, boot_order=None, bridge=None, dhcp_options=None, mac_address= def boot_order(self): """ Gets the boot_order of this V1Interface. - BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each interface or disk that has a boot order must have a unique value. Interfaces without a boot order are not tried. +optional + BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each interface or disk that has a boot order must have a unique value. Interfaces without a boot order are not tried. :return: The boot_order of this V1Interface. :rtype: int @@ -117,7 +117,7 @@ def boot_order(self): def boot_order(self, boot_order): """ Sets the boot_order of this V1Interface. - BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each interface or disk that has a boot order must have a unique value. Interfaces without a boot order are not tried. +optional + BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each interface or disk that has a boot order must have a unique value. Interfaces without a boot order are not tried. :param boot_order: The boot_order of this V1Interface. :type: int @@ -150,7 +150,7 @@ def bridge(self, bridge): def dhcp_options(self): """ Gets the dhcp_options of this V1Interface. - If specified the network interface will pass additional DHCP options to the VMI +optional + If specified the network interface will pass additional DHCP options to the VMI :return: The dhcp_options of this V1Interface. :rtype: V1DHCPOptions @@ -161,7 +161,7 @@ def dhcp_options(self): def dhcp_options(self, dhcp_options): """ Sets the dhcp_options of this V1Interface. - If specified the network interface will pass additional DHCP options to the VMI +optional + If specified the network interface will pass additional DHCP options to the VMI :param dhcp_options: The dhcp_options of this V1Interface. :type: V1DHCPOptions @@ -265,7 +265,7 @@ def name(self, name): def pci_address(self): """ Gets the pci_address of this V1Interface. - 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 + 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 :return: The pci_address of this V1Interface. :rtype: str @@ -276,7 +276,7 @@ def pci_address(self): def pci_address(self, pci_address): """ Sets the pci_address of this V1Interface. - 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 + 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 :param pci_address: The pci_address of this V1Interface. :type: str @@ -353,7 +353,7 @@ def sriov(self, sriov): def tag(self): """ Gets the tag of this V1Interface. - If specified, the virtual network interface address and its tag will be provided to the guest via config drive +optional + If specified, the virtual network interface address and its tag will be provided to the guest via config drive :return: The tag of this V1Interface. :rtype: str @@ -364,7 +364,7 @@ def tag(self): def tag(self, tag): """ Sets the tag of this V1Interface. - If specified, the virtual network interface address and its tag will be provided to the guest via config drive +optional + If specified, the virtual network interface address and its tag will be provided to the guest via config drive :param tag: The tag of this V1Interface. :type: str diff --git a/kubevirt/models/v1_interface_masquerade.py b/kubevirt/models/v1_interface_masquerade.py new file mode 100644 index 00000000..32f7c8f6 --- /dev/null +++ b/kubevirt/models/v1_interface_masquerade.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1InterfaceMasquerade(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1InterfaceMasquerade - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1InterfaceMasquerade): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_interface_sriov.py b/kubevirt/models/v1_interface_sriov.py new file mode 100644 index 00000000..934499c7 --- /dev/null +++ b/kubevirt/models/v1_interface_sriov.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1InterfaceSRIOV(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1InterfaceSRIOV - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1InterfaceSRIOV): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kvm_timer.py b/kubevirt/models/v1_kvm_timer.py index 53253cc4..5bdc2966 100644 --- a/kubevirt/models/v1_kvm_timer.py +++ b/kubevirt/models/v1_kvm_timer.py @@ -52,7 +52,7 @@ def __init__(self, present=None): def present(self): """ Gets the present of this V1KVMTimer. - Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional + Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. :return: The present of this V1KVMTimer. :rtype: bool @@ -63,7 +63,7 @@ def present(self): def present(self, present): """ Sets the present of this V1KVMTimer. - Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional + Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. :param present: The present of this V1KVMTimer. :type: bool diff --git a/kubevirt/models/v1_label_selector.py b/kubevirt/models/v1_label_selector.py index bcdad6e5..eafaa188 100644 --- a/kubevirt/models/v1_label_selector.py +++ b/kubevirt/models/v1_label_selector.py @@ -32,7 +32,7 @@ class V1LabelSelector(object): """ swagger_types = { 'match_expressions': 'list[V1LabelSelectorRequirement]', - 'match_labels': 'object' + 'match_labels': 'dict(str, str)' } attribute_map = { @@ -83,7 +83,7 @@ def match_labels(self): matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. :return: The match_labels of this V1LabelSelector. - :rtype: object + :rtype: dict(str, str) """ return self._match_labels @@ -94,7 +94,7 @@ def match_labels(self, match_labels): matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. :param match_labels: The match_labels of this V1LabelSelector. - :type: object + :type: dict(str, str) """ self._match_labels = match_labels diff --git a/kubevirt/models/v1_managed_fields_entry.py b/kubevirt/models/v1_managed_fields_entry.py index 24755ccb..44327cad 100644 --- a/kubevirt/models/v1_managed_fields_entry.py +++ b/kubevirt/models/v1_managed_fields_entry.py @@ -33,10 +33,10 @@ class V1ManagedFieldsEntry(object): swagger_types = { 'api_version': 'str', 'fields_type': 'str', - 'fields_v1': 'str', + 'fields_v1': 'V1FieldsV1', 'manager': 'str', 'operation': 'str', - 'time': 'str' + 'time': 'V1Time' } attribute_map = { @@ -126,7 +126,7 @@ def fields_v1(self): FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type. :return: The fields_v1 of this V1ManagedFieldsEntry. - :rtype: str + :rtype: V1FieldsV1 """ return self._fields_v1 @@ -137,7 +137,7 @@ def fields_v1(self, fields_v1): FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type. :param fields_v1: The fields_v1 of this V1ManagedFieldsEntry. - :type: str + :type: V1FieldsV1 """ self._fields_v1 = fields_v1 @@ -195,7 +195,7 @@ def time(self): Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' :return: The time of this V1ManagedFieldsEntry. - :rtype: str + :rtype: V1Time """ return self._time @@ -206,7 +206,7 @@ def time(self, time): Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' :param time: The time of this V1ManagedFieldsEntry. - :type: str + :type: V1Time """ self._time = time diff --git a/kubevirt/models/v1_memory.py b/kubevirt/models/v1_memory.py index 20c5b349..a913000c 100644 --- a/kubevirt/models/v1_memory.py +++ b/kubevirt/models/v1_memory.py @@ -31,7 +31,7 @@ class V1Memory(object): and the value is json key in definition. """ swagger_types = { - 'guest': 'str', + 'guest': 'ResourceQuantity', 'hugepages': 'V1Hugepages' } @@ -57,10 +57,10 @@ def __init__(self, guest=None, hugepages=None): def guest(self): """ Gets the guest of this V1Memory. - Guest allows to specifying the amount of memory which is visible inside the Guest OS. The Guest must lie between Requests and Limits from the resources section. Defaults to the requested memory in the resources section if not specified. + optional + Guest allows to specifying the amount of memory which is visible inside the Guest OS. The Guest must lie between Requests and Limits from the resources section. Defaults to the requested memory in the resources section if not specified. :return: The guest of this V1Memory. - :rtype: str + :rtype: ResourceQuantity """ return self._guest @@ -68,10 +68,10 @@ def guest(self): def guest(self, guest): """ Sets the guest of this V1Memory. - Guest allows to specifying the amount of memory which is visible inside the Guest OS. The Guest must lie between Requests and Limits from the resources section. Defaults to the requested memory in the resources section if not specified. + optional + Guest allows to specifying the amount of memory which is visible inside the Guest OS. The Guest must lie between Requests and Limits from the resources section. Defaults to the requested memory in the resources section if not specified. :param guest: The guest of this V1Memory. - :type: str + :type: ResourceQuantity """ self._guest = guest @@ -80,7 +80,7 @@ def guest(self, guest): def hugepages(self): """ Gets the hugepages of this V1Memory. - Hugepages allow to use hugepages for the VirtualMachineInstance instead of regular memory. +optional + Hugepages allow to use hugepages for the VirtualMachineInstance instead of regular memory. :return: The hugepages of this V1Memory. :rtype: V1Hugepages @@ -91,7 +91,7 @@ def hugepages(self): def hugepages(self, hugepages): """ Sets the hugepages of this V1Memory. - Hugepages allow to use hugepages for the VirtualMachineInstance instead of regular memory. +optional + Hugepages allow to use hugepages for the VirtualMachineInstance instead of regular memory. :param hugepages: The hugepages of this V1Memory. :type: V1Hugepages diff --git a/kubevirt/models/v1_object_meta.py b/kubevirt/models/v1_object_meta.py index fa317d44..28a5d3bc 100644 --- a/kubevirt/models/v1_object_meta.py +++ b/kubevirt/models/v1_object_meta.py @@ -31,14 +31,14 @@ class V1ObjectMeta(object): and the value is json key in definition. """ swagger_types = { - 'annotations': 'object', + 'annotations': 'dict(str, str)', 'cluster_name': 'str', 'deletion_grace_period_seconds': 'int', - 'deletion_timestamp': 'str', + 'deletion_timestamp': 'V1Time', 'finalizers': 'list[str]', 'generate_name': 'str', 'generation': 'int', - 'labels': 'object', + 'labels': 'dict(str, str)', 'managed_fields': 'list[V1ManagedFieldsEntry]', 'name': 'str', 'namespace': 'str', @@ -125,7 +125,7 @@ def annotations(self): Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations :return: The annotations of this V1ObjectMeta. - :rtype: object + :rtype: dict(str, str) """ return self._annotations @@ -136,7 +136,7 @@ def annotations(self, annotations): Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations :param annotations: The annotations of this V1ObjectMeta. - :type: object + :type: dict(str, str) """ self._annotations = annotations @@ -194,7 +194,7 @@ def deletion_timestamp(self): DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :return: The deletion_timestamp of this V1ObjectMeta. - :rtype: str + :rtype: V1Time """ return self._deletion_timestamp @@ -205,7 +205,7 @@ def deletion_timestamp(self, deletion_timestamp): DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param deletion_timestamp: The deletion_timestamp of this V1ObjectMeta. - :type: str + :type: V1Time """ self._deletion_timestamp = deletion_timestamp @@ -286,7 +286,7 @@ def labels(self): Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels :return: The labels of this V1ObjectMeta. - :rtype: object + :rtype: dict(str, str) """ return self._labels @@ -297,7 +297,7 @@ def labels(self, labels): Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels :param labels: The labels of this V1ObjectMeta. - :type: object + :type: dict(str, str) """ self._labels = labels diff --git a/kubevirt/models/v1_patch.py b/kubevirt/models/v1_patch.py new file mode 100644 index 00000000..2cfc26f9 --- /dev/null +++ b/kubevirt/models/v1_patch.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Patch(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1Patch - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1Patch): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_persistent_volume_claim_spec.py b/kubevirt/models/v1_persistent_volume_claim_spec.py index 9b4042e3..e5dbb9a6 100644 --- a/kubevirt/models/v1_persistent_volume_claim_spec.py +++ b/kubevirt/models/v1_persistent_volume_claim_spec.py @@ -31,12 +31,12 @@ class V1PersistentVolumeClaimSpec(object): and the value is json key in definition. """ swagger_types = { - 'access_modes': 'list[V1PersistentVolumeAccessMode]', + 'access_modes': 'list[str]', 'data_source': 'V1TypedLocalObjectReference', 'resources': 'V1ResourceRequirements', 'selector': 'V1LabelSelector', 'storage_class_name': 'str', - 'volume_mode': 'V1PersistentVolumeMode', + 'volume_mode': 'str', 'volume_name': 'str' } @@ -85,7 +85,7 @@ def access_modes(self): AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 :return: The access_modes of this V1PersistentVolumeClaimSpec. - :rtype: list[V1PersistentVolumeAccessMode] + :rtype: list[str] """ return self._access_modes @@ -96,7 +96,7 @@ def access_modes(self, access_modes): AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 :param access_modes: The access_modes of this V1PersistentVolumeClaimSpec. - :type: list[V1PersistentVolumeAccessMode] + :type: list[str] """ self._access_modes = access_modes @@ -200,7 +200,7 @@ def volume_mode(self): volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is a beta feature. :return: The volume_mode of this V1PersistentVolumeClaimSpec. - :rtype: V1PersistentVolumeMode + :rtype: str """ return self._volume_mode @@ -211,7 +211,7 @@ def volume_mode(self, volume_mode): volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is a beta feature. :param volume_mode: The volume_mode of this V1PersistentVolumeClaimSpec. - :type: V1PersistentVolumeMode + :type: str """ self._volume_mode = volume_mode diff --git a/kubevirt/models/v1_pit_timer.py b/kubevirt/models/v1_pit_timer.py index 29e270e8..52db1a70 100644 --- a/kubevirt/models/v1_pit_timer.py +++ b/kubevirt/models/v1_pit_timer.py @@ -57,7 +57,7 @@ def __init__(self, present=None, tick_policy=None): def present(self): """ Gets the present of this V1PITTimer. - Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional + Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. :return: The present of this V1PITTimer. :rtype: bool @@ -68,7 +68,7 @@ def present(self): def present(self, present): """ Sets the present of this V1PITTimer. - Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional + Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. :param present: The present of this V1PITTimer. :type: bool diff --git a/kubevirt/models/v1_port.py b/kubevirt/models/v1_port.py index 92e196b4..817f65be 100644 --- a/kubevirt/models/v1_port.py +++ b/kubevirt/models/v1_port.py @@ -61,7 +61,7 @@ def __init__(self, name=None, port=None, protocol=None): def name(self): """ Gets the name of this V1Port. - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. +optional + If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. :return: The name of this V1Port. :rtype: str @@ -72,7 +72,7 @@ def name(self): def name(self, name): """ Sets the name of this V1Port. - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. +optional + If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. :param name: The name of this V1Port. :type: str @@ -109,7 +109,7 @@ def port(self, port): def protocol(self): """ Gets the protocol of this V1Port. - Protocol for port. Must be UDP or TCP. Defaults to \"TCP\". +optional + Protocol for port. Must be UDP or TCP. Defaults to \"TCP\". :return: The protocol of this V1Port. :rtype: str @@ -120,7 +120,7 @@ def protocol(self): def protocol(self, protocol): """ Sets the protocol of this V1Port. - Protocol for port. Must be UDP or TCP. Defaults to \"TCP\". +optional + Protocol for port. Must be UDP or TCP. Defaults to \"TCP\". :param protocol: The protocol of this V1Port. :type: str diff --git a/kubevirt/models/v1_preconditions.py b/kubevirt/models/v1_preconditions.py index 24f361c6..5dfd94e4 100644 --- a/kubevirt/models/v1_preconditions.py +++ b/kubevirt/models/v1_preconditions.py @@ -32,7 +32,7 @@ class V1Preconditions(object): """ swagger_types = { 'resource_version': 'str', - 'uid': 'TypesUID' + 'uid': 'str' } attribute_map = { @@ -83,7 +83,7 @@ def uid(self): Specifies the target UID. :return: The uid of this V1Preconditions. - :rtype: TypesUID + :rtype: str """ return self._uid @@ -94,7 +94,7 @@ def uid(self, uid): Specifies the target UID. :param uid: The uid of this V1Preconditions. - :type: TypesUID + :type: str """ self._uid = uid diff --git a/kubevirt/models/v1_probe.py b/kubevirt/models/v1_probe.py index 26a0d801..8641269f 100644 --- a/kubevirt/models/v1_probe.py +++ b/kubevirt/models/v1_probe.py @@ -82,7 +82,7 @@ def __init__(self, failure_threshold=None, http_get=None, initial_delay_seconds= def failure_threshold(self): """ Gets the failure_threshold of this V1Probe. - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. +optional + Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. :return: The failure_threshold of this V1Probe. :rtype: int @@ -93,7 +93,7 @@ def failure_threshold(self): def failure_threshold(self, failure_threshold): """ Sets the failure_threshold of this V1Probe. - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. +optional + Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. :param failure_threshold: The failure_threshold of this V1Probe. :type: int @@ -105,7 +105,7 @@ def failure_threshold(self, failure_threshold): def http_get(self): """ Gets the http_get of this V1Probe. - HTTPGet specifies the http request to perform. +optional + HTTPGet specifies the http request to perform. :return: The http_get of this V1Probe. :rtype: V1HTTPGetAction @@ -116,7 +116,7 @@ def http_get(self): def http_get(self, http_get): """ Sets the http_get of this V1Probe. - HTTPGet specifies the http request to perform. +optional + HTTPGet specifies the http request to perform. :param http_get: The http_get of this V1Probe. :type: V1HTTPGetAction @@ -128,7 +128,7 @@ def http_get(self, http_get): def initial_delay_seconds(self): """ Gets the initial_delay_seconds of this V1Probe. - Number of seconds after the VirtualMachineInstance has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional + Number of seconds after the VirtualMachineInstance has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes :return: The initial_delay_seconds of this V1Probe. :rtype: int @@ -139,7 +139,7 @@ def initial_delay_seconds(self): def initial_delay_seconds(self, initial_delay_seconds): """ Sets the initial_delay_seconds of this V1Probe. - Number of seconds after the VirtualMachineInstance has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional + Number of seconds after the VirtualMachineInstance has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes :param initial_delay_seconds: The initial_delay_seconds of this V1Probe. :type: int @@ -151,7 +151,7 @@ def initial_delay_seconds(self, initial_delay_seconds): def period_seconds(self): """ Gets the period_seconds of this V1Probe. - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. +optional + How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. :return: The period_seconds of this V1Probe. :rtype: int @@ -162,7 +162,7 @@ def period_seconds(self): def period_seconds(self, period_seconds): """ Sets the period_seconds of this V1Probe. - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. +optional + How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. :param period_seconds: The period_seconds of this V1Probe. :type: int @@ -174,7 +174,7 @@ def period_seconds(self, period_seconds): def success_threshold(self): """ Gets the success_threshold of this V1Probe. - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. +optional + Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. :return: The success_threshold of this V1Probe. :rtype: int @@ -185,7 +185,7 @@ def success_threshold(self): def success_threshold(self, success_threshold): """ Sets the success_threshold of this V1Probe. - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. +optional + Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. :param success_threshold: The success_threshold of this V1Probe. :type: int @@ -197,7 +197,7 @@ def success_threshold(self, success_threshold): def tcp_socket(self): """ Gets the tcp_socket of this V1Probe. - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported +optional + TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported :return: The tcp_socket of this V1Probe. :rtype: V1TCPSocketAction @@ -208,7 +208,7 @@ def tcp_socket(self): def tcp_socket(self, tcp_socket): """ Sets the tcp_socket of this V1Probe. - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported +optional + TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported :param tcp_socket: The tcp_socket of this V1Probe. :type: V1TCPSocketAction @@ -220,7 +220,7 @@ def tcp_socket(self, tcp_socket): def timeout_seconds(self): """ Gets the timeout_seconds of this V1Probe. - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional + Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes :return: The timeout_seconds of this V1Probe. :rtype: int @@ -231,7 +231,7 @@ def timeout_seconds(self): def timeout_seconds(self, timeout_seconds): """ Sets the timeout_seconds of this V1Probe. - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional + Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes :param timeout_seconds: The timeout_seconds of this V1Probe. :type: int diff --git a/kubevirt/models/v1_resource_requirements.py b/kubevirt/models/v1_resource_requirements.py index fe2a862a..4f711d66 100644 --- a/kubevirt/models/v1_resource_requirements.py +++ b/kubevirt/models/v1_resource_requirements.py @@ -31,9 +31,9 @@ class V1ResourceRequirements(object): and the value is json key in definition. """ swagger_types = { - 'limits': 'object', + 'limits': 'dict(str, ResourceQuantity)', 'overcommit_guest_overhead': 'bool', - 'requests': 'object' + 'requests': 'dict(str, ResourceQuantity)' } attribute_map = { @@ -62,10 +62,10 @@ def __init__(self, limits=None, overcommit_guest_overhead=None, requests=None): def limits(self): """ Gets the limits of this V1ResourceRequirements. - Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". +optional + Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". :return: The limits of this V1ResourceRequirements. - :rtype: object + :rtype: dict(str, ResourceQuantity) """ return self._limits @@ -73,10 +73,10 @@ def limits(self): def limits(self, limits): """ Sets the limits of this V1ResourceRequirements. - Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". +optional + Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". :param limits: The limits of this V1ResourceRequirements. - :type: object + :type: dict(str, ResourceQuantity) """ self._limits = limits @@ -108,10 +108,10 @@ def overcommit_guest_overhead(self, overcommit_guest_overhead): def requests(self): """ Gets the requests of this V1ResourceRequirements. - Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". +optional + Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". :return: The requests of this V1ResourceRequirements. - :rtype: object + :rtype: dict(str, ResourceQuantity) """ return self._requests @@ -119,10 +119,10 @@ def requests(self): def requests(self, requests): """ Sets the requests of this V1ResourceRequirements. - Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". +optional + Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". :param requests: The requests of this V1ResourceRequirements. - :type: object + :type: dict(str, ResourceQuantity) """ self._requests = requests diff --git a/kubevirt/models/v1_restart_options.py b/kubevirt/models/v1_restart_options.py index 2cda4eb1..1ef8e37e 100644 --- a/kubevirt/models/v1_restart_options.py +++ b/kubevirt/models/v1_restart_options.py @@ -85,7 +85,7 @@ def api_version(self, api_version): def grace_period_seconds(self): """ Gets the grace_period_seconds of this V1RestartOptions. - The duration in seconds before the object should be force-restared. Value must be non-negative integer. The value zero indicates, restart immediately. If this value is nil, the default grace period for deletion of the corresponding VMI for the specified type will be used to determine on how much time to give the VMI to restart. Defaults to a per object value if not specified. zero means restart immediately. Allowed Values: nil and 0 +optional + The duration in seconds before the object should be force-restared. Value must be non-negative integer. The value zero indicates, restart immediately. If this value is nil, the default grace period for deletion of the corresponding VMI for the specified type will be used to determine on how much time to give the VMI to restart. Defaults to a per object value if not specified. zero means restart immediately. Allowed Values: nil and 0 :return: The grace_period_seconds of this V1RestartOptions. :rtype: int @@ -96,7 +96,7 @@ def grace_period_seconds(self): def grace_period_seconds(self, grace_period_seconds): """ Sets the grace_period_seconds of this V1RestartOptions. - The duration in seconds before the object should be force-restared. Value must be non-negative integer. The value zero indicates, restart immediately. If this value is nil, the default grace period for deletion of the corresponding VMI for the specified type will be used to determine on how much time to give the VMI to restart. Defaults to a per object value if not specified. zero means restart immediately. Allowed Values: nil and 0 +optional + The duration in seconds before the object should be force-restared. Value must be non-negative integer. The value zero indicates, restart immediately. If this value is nil, the default grace period for deletion of the corresponding VMI for the specified type will be used to determine on how much time to give the VMI to restart. Defaults to a per object value if not specified. zero means restart immediately. Allowed Values: nil and 0 :param grace_period_seconds: The grace_period_seconds of this V1RestartOptions. :type: int diff --git a/kubevirt/models/v1_rng.py b/kubevirt/models/v1_rng.py new file mode 100644 index 00000000..8921f266 --- /dev/null +++ b/kubevirt/models/v1_rng.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Rng(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1Rng - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1Rng): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_rtc_timer.py b/kubevirt/models/v1_rtc_timer.py index 72f19926..e2e59695 100644 --- a/kubevirt/models/v1_rtc_timer.py +++ b/kubevirt/models/v1_rtc_timer.py @@ -62,7 +62,7 @@ def __init__(self, present=None, tick_policy=None, track=None): def present(self): """ Gets the present of this V1RTCTimer. - Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional + Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. :return: The present of this V1RTCTimer. :rtype: bool @@ -73,7 +73,7 @@ def present(self): def present(self, present): """ Sets the present of this V1RTCTimer. - Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. +optional + Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true. :param present: The present of this V1RTCTimer. :type: bool diff --git a/kubevirt/models/v1_secret_volume_source.py b/kubevirt/models/v1_secret_volume_source.py index 99e21f46..a4149f17 100644 --- a/kubevirt/models/v1_secret_volume_source.py +++ b/kubevirt/models/v1_secret_volume_source.py @@ -62,7 +62,7 @@ def __init__(self, optional=None, secret_name=None, volume_label=None): def optional(self): """ Gets the optional of this V1SecretVolumeSource. - Specify whether the Secret or it's keys must be defined +optional + Specify whether the Secret or it's keys must be defined :return: The optional of this V1SecretVolumeSource. :rtype: bool @@ -73,7 +73,7 @@ def optional(self): def optional(self, optional): """ Sets the optional of this V1SecretVolumeSource. - Specify whether the Secret or it's keys must be defined +optional + Specify whether the Secret or it's keys must be defined :param optional: The optional of this V1SecretVolumeSource. :type: bool @@ -85,7 +85,7 @@ def optional(self, optional): def secret_name(self): """ Gets the secret_name of this V1SecretVolumeSource. - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret +optional + Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret :return: The secret_name of this V1SecretVolumeSource. :rtype: str @@ -96,7 +96,7 @@ def secret_name(self): def secret_name(self, secret_name): """ Sets the secret_name of this V1SecretVolumeSource. - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret +optional + Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret :param secret_name: The secret_name of this V1SecretVolumeSource. :type: str @@ -108,7 +108,7 @@ def secret_name(self, secret_name): def volume_label(self): """ Gets the volume_label of this V1SecretVolumeSource. - The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart). +optional + The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart). :return: The volume_label of this V1SecretVolumeSource. :rtype: str @@ -119,7 +119,7 @@ def volume_label(self): def volume_label(self, volume_label): """ Sets the volume_label of this V1SecretVolumeSource. - The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart). +optional + The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart). :param volume_label: The volume_label of this V1SecretVolumeSource. :type: str diff --git a/kubevirt/models/v1_time.py b/kubevirt/models/v1_time.py new file mode 100644 index 00000000..6d925ae0 --- /dev/null +++ b/kubevirt/models/v1_time.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Time(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1Time - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1Time): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_typed_local_object_reference.py b/kubevirt/models/v1_typed_local_object_reference.py index 9e31ef21..06778e71 100644 --- a/kubevirt/models/v1_typed_local_object_reference.py +++ b/kubevirt/models/v1_typed_local_object_reference.py @@ -51,7 +51,8 @@ def __init__(self, api_group=None, kind=None, name=None): self._kind = None self._name = None - self.api_group = api_group + if api_group is not None: + self.api_group = api_group self.kind = kind self.name = name @@ -75,8 +76,6 @@ def api_group(self, api_group): :param api_group: The api_group of this V1TypedLocalObjectReference. :type: str """ - if api_group is None: - raise ValueError("Invalid value for `api_group`, must not be `None`") self._api_group = api_group diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_state.py b/kubevirt/models/v1_virtual_machine_instance_migration_state.py index 52fff783..a705e2f4 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_state.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_state.py @@ -34,12 +34,12 @@ class V1VirtualMachineInstanceMigrationState(object): 'abort_requested': 'bool', 'abort_status': 'str', 'completed': 'bool', - 'end_timestamp': 'str', + 'end_timestamp': 'V1Time', 'failed': 'bool', 'migration_uid': 'str', 'source_node': 'str', - 'start_timestamp': 'str', - 'target_direct_migration_node_ports': 'object', + 'start_timestamp': 'V1Time', + 'target_direct_migration_node_ports': 'dict(str, int)', 'target_node': 'str', 'target_node_address': 'str', 'target_node_domain_detected': 'bool', @@ -184,7 +184,7 @@ def end_timestamp(self): The time the migration action ended :return: The end_timestamp of this V1VirtualMachineInstanceMigrationState. - :rtype: str + :rtype: V1Time """ return self._end_timestamp @@ -195,7 +195,7 @@ def end_timestamp(self, end_timestamp): The time the migration action ended :param end_timestamp: The end_timestamp of this V1VirtualMachineInstanceMigrationState. - :type: str + :type: V1Time """ self._end_timestamp = end_timestamp @@ -276,7 +276,7 @@ def start_timestamp(self): The time the migration action began :return: The start_timestamp of this V1VirtualMachineInstanceMigrationState. - :rtype: str + :rtype: V1Time """ return self._start_timestamp @@ -287,7 +287,7 @@ def start_timestamp(self, start_timestamp): The time the migration action began :param start_timestamp: The start_timestamp of this V1VirtualMachineInstanceMigrationState. - :type: str + :type: V1Time """ self._start_timestamp = start_timestamp @@ -299,7 +299,7 @@ def target_direct_migration_node_ports(self): The list of ports opened for live migration on the destination node :return: The target_direct_migration_node_ports of this V1VirtualMachineInstanceMigrationState. - :rtype: object + :rtype: dict(str, int) """ return self._target_direct_migration_node_ports @@ -310,7 +310,7 @@ def target_direct_migration_node_ports(self, target_direct_migration_node_ports) The list of ports opened for live migration on the destination node :param target_direct_migration_node_ports: The target_direct_migration_node_ports of this V1VirtualMachineInstanceMigrationState. - :type: object + :type: dict(str, int) """ self._target_direct_migration_node_ports = target_direct_migration_node_ports diff --git a/kubevirt/models/v1_virtual_machine_instance_replica_set_spec.py b/kubevirt/models/v1_virtual_machine_instance_replica_set_spec.py index 4acea009..ad6b2dea 100644 --- a/kubevirt/models/v1_virtual_machine_instance_replica_set_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_replica_set_spec.py @@ -65,7 +65,7 @@ def __init__(self, paused=None, replicas=None, selector=None, template=None): def paused(self): """ Gets the paused of this V1VirtualMachineInstanceReplicaSetSpec. - Indicates that the replica set is paused. +optional + Indicates that the replica set is paused. :return: The paused of this V1VirtualMachineInstanceReplicaSetSpec. :rtype: bool @@ -76,7 +76,7 @@ def paused(self): def paused(self, paused): """ Sets the paused of this V1VirtualMachineInstanceReplicaSetSpec. - Indicates that the replica set is paused. +optional + Indicates that the replica set is paused. :param paused: The paused of this V1VirtualMachineInstanceReplicaSetSpec. :type: bool @@ -88,7 +88,7 @@ def paused(self, paused): def replicas(self): """ Gets the replicas of this V1VirtualMachineInstanceReplicaSetSpec. - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. +optional + Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. :return: The replicas of this V1VirtualMachineInstanceReplicaSetSpec. :rtype: int @@ -99,7 +99,7 @@ def replicas(self): def replicas(self, replicas): """ Sets the replicas of this V1VirtualMachineInstanceReplicaSetSpec. - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. +optional + Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. :param replicas: The replicas of this V1VirtualMachineInstanceReplicaSetSpec. :type: int diff --git a/kubevirt/models/v1_virtual_machine_instance_replica_set_status.py b/kubevirt/models/v1_virtual_machine_instance_replica_set_status.py index 1872d375..dd7fd587 100644 --- a/kubevirt/models/v1_virtual_machine_instance_replica_set_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_replica_set_status.py @@ -111,7 +111,7 @@ def label_selector(self, label_selector): def ready_replicas(self): """ Gets the ready_replicas of this V1VirtualMachineInstanceReplicaSetStatus. - The number of ready replicas for this replica set. +optional + The number of ready replicas for this replica set. :return: The ready_replicas of this V1VirtualMachineInstanceReplicaSetStatus. :rtype: int @@ -122,7 +122,7 @@ def ready_replicas(self): def ready_replicas(self, ready_replicas): """ Sets the ready_replicas of this V1VirtualMachineInstanceReplicaSetStatus. - The number of ready replicas for this replica set. +optional + The number of ready replicas for this replica set. :param ready_replicas: The ready_replicas of this V1VirtualMachineInstanceReplicaSetStatus. :type: int @@ -134,7 +134,7 @@ def ready_replicas(self, ready_replicas): def replicas(self): """ Gets the replicas of this V1VirtualMachineInstanceReplicaSetStatus. - Total number of non-terminated pods targeted by this deployment (their labels match the selector). +optional + Total number of non-terminated pods targeted by this deployment (their labels match the selector). :return: The replicas of this V1VirtualMachineInstanceReplicaSetStatus. :rtype: int @@ -145,7 +145,7 @@ def replicas(self): def replicas(self, replicas): """ Sets the replicas of this V1VirtualMachineInstanceReplicaSetStatus. - Total number of non-terminated pods targeted by this deployment (their labels match the selector). +optional + Total number of non-terminated pods targeted by this deployment (their labels match the selector). :param replicas: The replicas of this V1VirtualMachineInstanceReplicaSetStatus. :type: int diff --git a/kubevirt/models/v1_virtual_machine_instance_spec.py b/kubevirt/models/v1_virtual_machine_instance_spec.py index 97da3223..5617e721 100644 --- a/kubevirt/models/v1_virtual_machine_instance_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_spec.py @@ -35,11 +35,11 @@ class V1VirtualMachineInstanceSpec(object): 'dns_config': 'V1PodDNSConfig', 'dns_policy': 'str', 'domain': 'V1DomainSpec', - 'eviction_strategy': 'V1EvictionStrategy', + 'eviction_strategy': 'str', 'hostname': 'str', 'liveness_probe': 'V1Probe', 'networks': 'list[V1Network]', - 'node_selector': 'object', + 'node_selector': 'dict(str, str)', 'priority_class_name': 'str', 'readiness_probe': 'V1Probe', 'scheduler_name': 'str', @@ -149,7 +149,7 @@ def affinity(self, affinity): def dns_config(self): """ Gets the dns_config of this V1VirtualMachineInstanceSpec. - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. +optional + Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. :return: The dns_config of this V1VirtualMachineInstanceSpec. :rtype: V1PodDNSConfig @@ -160,7 +160,7 @@ def dns_config(self): def dns_config(self, dns_config): """ Sets the dns_config of this V1VirtualMachineInstanceSpec. - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. +optional + Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. :param dns_config: The dns_config of this V1VirtualMachineInstanceSpec. :type: V1PodDNSConfig @@ -172,7 +172,7 @@ def dns_config(self, dns_config): def dns_policy(self): """ Gets the dns_policy of this V1VirtualMachineInstanceSpec. - Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. +optional + Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. :return: The dns_policy of this V1VirtualMachineInstanceSpec. :rtype: str @@ -183,7 +183,7 @@ def dns_policy(self): def dns_policy(self, dns_policy): """ Sets the dns_policy of this V1VirtualMachineInstanceSpec. - Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. +optional + Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. :param dns_policy: The dns_policy of this V1VirtualMachineInstanceSpec. :type: str @@ -223,7 +223,7 @@ def eviction_strategy(self): EvictionStrategy can be set to \"LiveMigrate\" if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain. :return: The eviction_strategy of this V1VirtualMachineInstanceSpec. - :rtype: V1EvictionStrategy + :rtype: str """ return self._eviction_strategy @@ -234,7 +234,7 @@ def eviction_strategy(self, eviction_strategy): EvictionStrategy can be set to \"LiveMigrate\" if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain. :param eviction_strategy: The eviction_strategy of this V1VirtualMachineInstanceSpec. - :type: V1EvictionStrategy + :type: str """ self._eviction_strategy = eviction_strategy @@ -243,7 +243,7 @@ def eviction_strategy(self, eviction_strategy): def hostname(self): """ Gets the hostname of this V1VirtualMachineInstanceSpec. - Specifies the hostname of the vmi If not specified, the hostname will be set to the name of the vmi, if dhcp or cloud-init is configured properly. +optional + Specifies the hostname of the vmi If not specified, the hostname will be set to the name of the vmi, if dhcp or cloud-init is configured properly. :return: The hostname of this V1VirtualMachineInstanceSpec. :rtype: str @@ -254,7 +254,7 @@ def hostname(self): def hostname(self, hostname): """ Sets the hostname of this V1VirtualMachineInstanceSpec. - Specifies the hostname of the vmi If not specified, the hostname will be set to the name of the vmi, if dhcp or cloud-init is configured properly. +optional + Specifies the hostname of the vmi If not specified, the hostname will be set to the name of the vmi, if dhcp or cloud-init is configured properly. :param hostname: The hostname of this V1VirtualMachineInstanceSpec. :type: str @@ -266,7 +266,7 @@ def hostname(self, hostname): def liveness_probe(self): """ Gets the liveness_probe of this V1VirtualMachineInstanceSpec. - Periodic probe of VirtualMachineInstance liveness. VirtualmachineInstances will be stopped if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional + Periodic probe of VirtualMachineInstance liveness. VirtualmachineInstances will be stopped if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes :return: The liveness_probe of this V1VirtualMachineInstanceSpec. :rtype: V1Probe @@ -277,7 +277,7 @@ def liveness_probe(self): def liveness_probe(self, liveness_probe): """ Sets the liveness_probe of this V1VirtualMachineInstanceSpec. - Periodic probe of VirtualMachineInstance liveness. VirtualmachineInstances will be stopped if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional + Periodic probe of VirtualMachineInstance liveness. VirtualmachineInstances will be stopped if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes :param liveness_probe: The liveness_probe of this V1VirtualMachineInstanceSpec. :type: V1Probe @@ -312,10 +312,10 @@ def networks(self, networks): def node_selector(self): """ Gets the node_selector of this V1VirtualMachineInstanceSpec. - NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional + NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ :return: The node_selector of this V1VirtualMachineInstanceSpec. - :rtype: object + :rtype: dict(str, str) """ return self._node_selector @@ -323,10 +323,10 @@ def node_selector(self): def node_selector(self, node_selector): """ Sets the node_selector of this V1VirtualMachineInstanceSpec. - NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional + NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ :param node_selector: The node_selector of this V1VirtualMachineInstanceSpec. - :type: object + :type: dict(str, str) """ self._node_selector = node_selector @@ -335,7 +335,7 @@ def node_selector(self, node_selector): def priority_class_name(self): """ Gets the priority_class_name of this V1VirtualMachineInstanceSpec. - If specified, indicates the pod's priority. If not specified, the pod priority will be default or zero if there is no default. +optional + If specified, indicates the pod's priority. If not specified, the pod priority will be default or zero if there is no default. :return: The priority_class_name of this V1VirtualMachineInstanceSpec. :rtype: str @@ -346,7 +346,7 @@ def priority_class_name(self): def priority_class_name(self, priority_class_name): """ Sets the priority_class_name of this V1VirtualMachineInstanceSpec. - If specified, indicates the pod's priority. If not specified, the pod priority will be default or zero if there is no default. +optional + If specified, indicates the pod's priority. If not specified, the pod priority will be default or zero if there is no default. :param priority_class_name: The priority_class_name of this V1VirtualMachineInstanceSpec. :type: str @@ -358,7 +358,7 @@ def priority_class_name(self, priority_class_name): def readiness_probe(self): """ Gets the readiness_probe of this V1VirtualMachineInstanceSpec. - Periodic probe of VirtualMachineInstance service readiness. VirtualmachineInstances will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional + Periodic probe of VirtualMachineInstance service readiness. VirtualmachineInstances will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes :return: The readiness_probe of this V1VirtualMachineInstanceSpec. :rtype: V1Probe @@ -369,7 +369,7 @@ def readiness_probe(self): def readiness_probe(self, readiness_probe): """ Sets the readiness_probe of this V1VirtualMachineInstanceSpec. - Periodic probe of VirtualMachineInstance service readiness. VirtualmachineInstances will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional + Periodic probe of VirtualMachineInstance service readiness. VirtualmachineInstances will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes :param readiness_probe: The readiness_probe of this V1VirtualMachineInstanceSpec. :type: V1Probe @@ -381,7 +381,7 @@ def readiness_probe(self, readiness_probe): def scheduler_name(self): """ Gets the scheduler_name of this V1VirtualMachineInstanceSpec. - If specified, the VMI will be dispatched by specified scheduler. If not specified, the VMI will be dispatched by default scheduler. +optional + If specified, the VMI will be dispatched by specified scheduler. If not specified, the VMI will be dispatched by default scheduler. :return: The scheduler_name of this V1VirtualMachineInstanceSpec. :rtype: str @@ -392,7 +392,7 @@ def scheduler_name(self): def scheduler_name(self, scheduler_name): """ Sets the scheduler_name of this V1VirtualMachineInstanceSpec. - If specified, the VMI will be dispatched by specified scheduler. If not specified, the VMI will be dispatched by default scheduler. +optional + If specified, the VMI will be dispatched by specified scheduler. If not specified, the VMI will be dispatched by default scheduler. :param scheduler_name: The scheduler_name of this V1VirtualMachineInstanceSpec. :type: str @@ -404,7 +404,7 @@ def scheduler_name(self, scheduler_name): def subdomain(self): """ Gets the subdomain of this V1VirtualMachineInstanceSpec. - If specified, the fully qualified vmi hostname will be \"...svc.\". If not specified, the vmi will not have a domainname at all. The DNS entry will resolve to the vmi, no matter if the vmi itself can pick up a hostname. +optional + If specified, the fully qualified vmi hostname will be \"...svc.\". If not specified, the vmi will not have a domainname at all. The DNS entry will resolve to the vmi, no matter if the vmi itself can pick up a hostname. :return: The subdomain of this V1VirtualMachineInstanceSpec. :rtype: str @@ -415,7 +415,7 @@ def subdomain(self): def subdomain(self, subdomain): """ Sets the subdomain of this V1VirtualMachineInstanceSpec. - If specified, the fully qualified vmi hostname will be \"...svc.\". If not specified, the vmi will not have a domainname at all. The DNS entry will resolve to the vmi, no matter if the vmi itself can pick up a hostname. +optional + If specified, the fully qualified vmi hostname will be \"...svc.\". If not specified, the vmi will not have a domainname at all. The DNS entry will resolve to the vmi, no matter if the vmi itself can pick up a hostname. :param subdomain: The subdomain of this V1VirtualMachineInstanceSpec. :type: str diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index 0d34124b..913cc053 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -31,7 +31,7 @@ class V1VirtualMachineInstanceStatus(object): and the value is json key in definition. """ swagger_types = { - 'active_pods': 'object', + 'active_pods': 'dict(str, str)', 'conditions': 'list[V1VirtualMachineInstanceCondition]', 'guest_os_info': 'V1VirtualMachineInstanceGuestOSInfo', 'interfaces': 'list[V1VirtualMachineInstanceNetworkInterface]', @@ -39,7 +39,7 @@ class V1VirtualMachineInstanceStatus(object): 'migration_state': 'V1VirtualMachineInstanceMigrationState', 'node_name': 'str', 'phase': 'str', - 'qos_class': 'V1PodQOSClass', + 'qos_class': 'str', 'reason': 'str' } @@ -100,7 +100,7 @@ def active_pods(self): ActivePods is a mapping of pod UID to node name. It is possible for multiple pods to be running for a single VMI during migration. :return: The active_pods of this V1VirtualMachineInstanceStatus. - :rtype: object + :rtype: dict(str, str) """ return self._active_pods @@ -111,7 +111,7 @@ def active_pods(self, active_pods): ActivePods is a mapping of pod UID to node name. It is possible for multiple pods to be running for a single VMI during migration. :param active_pods: The active_pods of this V1VirtualMachineInstanceStatus. - :type: object + :type: dict(str, str) """ self._active_pods = active_pods @@ -281,10 +281,10 @@ def phase(self, phase): def qos_class(self): """ Gets the qos_class of this V1VirtualMachineInstanceStatus. - The Quality of Service (QOS) classification assigned to the virtual machine instance based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md +optional + The Quality of Service (QOS) classification assigned to the virtual machine instance based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md :return: The qos_class of this V1VirtualMachineInstanceStatus. - :rtype: V1PodQOSClass + :rtype: str """ return self._qos_class @@ -292,10 +292,10 @@ def qos_class(self): def qos_class(self, qos_class): """ Sets the qos_class of this V1VirtualMachineInstanceStatus. - The Quality of Service (QOS) classification assigned to the virtual machine instance based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md +optional + The Quality of Service (QOS) classification assigned to the virtual machine instance based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md :param qos_class: The qos_class of this V1VirtualMachineInstanceStatus. - :type: V1PodQOSClass + :type: str """ self._qos_class = qos_class @@ -304,7 +304,7 @@ def qos_class(self, qos_class): def reason(self): """ Gets the reason of this V1VirtualMachineInstanceStatus. - A brief CamelCase message indicating details about why the VMI is in this state. e.g. 'NodeUnresponsive' +optional + A brief CamelCase message indicating details about why the VMI is in this state. e.g. 'NodeUnresponsive' :return: The reason of this V1VirtualMachineInstanceStatus. :rtype: str @@ -315,7 +315,7 @@ def reason(self): def reason(self, reason): """ Sets the reason of this V1VirtualMachineInstanceStatus. - A brief CamelCase message indicating details about why the VMI is in this state. e.g. 'NodeUnresponsive' +optional + A brief CamelCase message indicating details about why the VMI is in this state. e.g. 'NodeUnresponsive' :param reason: The reason of this V1VirtualMachineInstanceStatus. :type: str diff --git a/kubevirt/models/v1_virtual_machine_spec.py b/kubevirt/models/v1_virtual_machine_spec.py index 8f4212fc..510f491d 100644 --- a/kubevirt/models/v1_virtual_machine_spec.py +++ b/kubevirt/models/v1_virtual_machine_spec.py @@ -32,7 +32,7 @@ class V1VirtualMachineSpec(object): """ swagger_types = { 'data_volume_templates': 'list[V1alpha1DataVolume]', - 'run_strategy': 'V1VirtualMachineRunStrategy', + 'run_strategy': 'str', 'running': 'bool', 'template': 'V1VirtualMachineInstanceTemplateSpec' } @@ -92,7 +92,7 @@ def run_strategy(self): Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running :return: The run_strategy of this V1VirtualMachineSpec. - :rtype: V1VirtualMachineRunStrategy + :rtype: str """ return self._run_strategy @@ -103,7 +103,7 @@ def run_strategy(self, run_strategy): Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running :param run_strategy: The run_strategy of this V1VirtualMachineSpec. - :type: V1VirtualMachineRunStrategy + :type: str """ self._run_strategy = run_strategy diff --git a/kubevirt/models/v1_virtual_machine_state_change_request.py b/kubevirt/models/v1_virtual_machine_state_change_request.py index 78f9c242..0dde3d4f 100644 --- a/kubevirt/models/v1_virtual_machine_state_change_request.py +++ b/kubevirt/models/v1_virtual_machine_state_change_request.py @@ -32,8 +32,8 @@ class V1VirtualMachineStateChangeRequest(object): """ swagger_types = { 'action': 'str', - 'data': 'object', - 'uid': 'TypesUID' + 'data': 'dict(str, str)', + 'uid': 'str' } attribute_map = { @@ -89,7 +89,7 @@ def data(self): Provides additional data in order to perform the Action :return: The data of this V1VirtualMachineStateChangeRequest. - :rtype: object + :rtype: dict(str, str) """ return self._data @@ -100,7 +100,7 @@ def data(self, data): Provides additional data in order to perform the Action :param data: The data of this V1VirtualMachineStateChangeRequest. - :type: object + :type: dict(str, str) """ self._data = data @@ -112,7 +112,7 @@ def uid(self): Indicates the UUID of an existing Virtual Machine Instance that this change request applies to -- if applicable :return: The uid of this V1VirtualMachineStateChangeRequest. - :rtype: TypesUID + :rtype: str """ return self._uid @@ -123,7 +123,7 @@ def uid(self, uid): Indicates the UUID of an existing Virtual Machine Instance that this change request applies to -- if applicable :param uid: The uid of this V1VirtualMachineStateChangeRequest. - :type: TypesUID + :type: str """ self._uid = uid diff --git a/kubevirt/models/v1_volume.py b/kubevirt/models/v1_volume.py index 583a2fd9..b8f4da31 100644 --- a/kubevirt/models/v1_volume.py +++ b/kubevirt/models/v1_volume.py @@ -106,7 +106,7 @@ def __init__(self, cloud_init_config_drive=None, cloud_init_no_cloud=None, confi def cloud_init_config_drive(self): """ Gets the cloud_init_config_drive of this V1Volume. - CloudInitConfigDrive represents a cloud-init Config Drive user-data source. The Config Drive data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: https://cloudinit.readthedocs.io/en/latest/topics/datasources/configdrive.html +optional + CloudInitConfigDrive represents a cloud-init Config Drive user-data source. The Config Drive data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: https://cloudinit.readthedocs.io/en/latest/topics/datasources/configdrive.html :return: The cloud_init_config_drive of this V1Volume. :rtype: V1CloudInitConfigDriveSource @@ -117,7 +117,7 @@ def cloud_init_config_drive(self): def cloud_init_config_drive(self, cloud_init_config_drive): """ Sets the cloud_init_config_drive of this V1Volume. - CloudInitConfigDrive represents a cloud-init Config Drive user-data source. The Config Drive data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: https://cloudinit.readthedocs.io/en/latest/topics/datasources/configdrive.html +optional + CloudInitConfigDrive represents a cloud-init Config Drive user-data source. The Config Drive data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: https://cloudinit.readthedocs.io/en/latest/topics/datasources/configdrive.html :param cloud_init_config_drive: The cloud_init_config_drive of this V1Volume. :type: V1CloudInitConfigDriveSource @@ -129,7 +129,7 @@ def cloud_init_config_drive(self, cloud_init_config_drive): def cloud_init_no_cloud(self): """ Gets the cloud_init_no_cloud of this V1Volume. - CloudInitNoCloud represents a cloud-init NoCloud user-data source. The NoCloud data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html +optional + CloudInitNoCloud represents a cloud-init NoCloud user-data source. The NoCloud data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html :return: The cloud_init_no_cloud of this V1Volume. :rtype: V1CloudInitNoCloudSource @@ -140,7 +140,7 @@ def cloud_init_no_cloud(self): def cloud_init_no_cloud(self, cloud_init_no_cloud): """ Sets the cloud_init_no_cloud of this V1Volume. - CloudInitNoCloud represents a cloud-init NoCloud user-data source. The NoCloud data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html +optional + CloudInitNoCloud represents a cloud-init NoCloud user-data source. The NoCloud data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html :param cloud_init_no_cloud: The cloud_init_no_cloud of this V1Volume. :type: V1CloudInitNoCloudSource @@ -152,7 +152,7 @@ def cloud_init_no_cloud(self, cloud_init_no_cloud): def config_map(self): """ Gets the config_map of this V1Volume. - ConfigMapSource represents a reference to a ConfigMap in the same namespace. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/ +optional + ConfigMapSource represents a reference to a ConfigMap in the same namespace. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/ :return: The config_map of this V1Volume. :rtype: V1ConfigMapVolumeSource @@ -163,7 +163,7 @@ def config_map(self): def config_map(self, config_map): """ Sets the config_map of this V1Volume. - ConfigMapSource represents a reference to a ConfigMap in the same namespace. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/ +optional + ConfigMapSource represents a reference to a ConfigMap in the same namespace. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/ :param config_map: The config_map of this V1Volume. :type: V1ConfigMapVolumeSource @@ -175,7 +175,7 @@ def config_map(self, config_map): def container_disk(self): """ Gets the container_disk of this V1Volume. - ContainerDisk references a docker image, embedding a qcow or raw disk. More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html +optional + ContainerDisk references a docker image, embedding a qcow or raw disk. More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html :return: The container_disk of this V1Volume. :rtype: V1ContainerDiskSource @@ -186,7 +186,7 @@ def container_disk(self): def container_disk(self, container_disk): """ Sets the container_disk of this V1Volume. - ContainerDisk references a docker image, embedding a qcow or raw disk. More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html +optional + ContainerDisk references a docker image, embedding a qcow or raw disk. More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html :param container_disk: The container_disk of this V1Volume. :type: V1ContainerDiskSource @@ -198,7 +198,7 @@ def container_disk(self, container_disk): def data_volume(self): """ Gets the data_volume of this V1Volume. - DataVolume represents the dynamic creation a PVC for this volume as well as the process of populating that PVC with a disk image. +optional + DataVolume represents the dynamic creation a PVC for this volume as well as the process of populating that PVC with a disk image. :return: The data_volume of this V1Volume. :rtype: V1DataVolumeSource @@ -209,7 +209,7 @@ def data_volume(self): def data_volume(self, data_volume): """ Sets the data_volume of this V1Volume. - DataVolume represents the dynamic creation a PVC for this volume as well as the process of populating that PVC with a disk image. +optional + DataVolume represents the dynamic creation a PVC for this volume as well as the process of populating that PVC with a disk image. :param data_volume: The data_volume of this V1Volume. :type: V1DataVolumeSource @@ -221,7 +221,7 @@ def data_volume(self, data_volume): def empty_disk(self): """ Gets the empty_disk of this V1Volume. - EmptyDisk represents a temporary disk which shares the vmis lifecycle. More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html +optional + EmptyDisk represents a temporary disk which shares the vmis lifecycle. More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html :return: The empty_disk of this V1Volume. :rtype: V1EmptyDiskSource @@ -232,7 +232,7 @@ def empty_disk(self): def empty_disk(self, empty_disk): """ Sets the empty_disk of this V1Volume. - EmptyDisk represents a temporary disk which shares the vmis lifecycle. More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html +optional + EmptyDisk represents a temporary disk which shares the vmis lifecycle. More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html :param empty_disk: The empty_disk of this V1Volume. :type: V1EmptyDiskSource @@ -244,7 +244,7 @@ def empty_disk(self, empty_disk): def ephemeral(self): """ Gets the ephemeral of this V1Volume. - Ephemeral is a special volume source that \"wraps\" specified source and provides copy-on-write image on top of it. +optional + Ephemeral is a special volume source that \"wraps\" specified source and provides copy-on-write image on top of it. :return: The ephemeral of this V1Volume. :rtype: V1EphemeralVolumeSource @@ -255,7 +255,7 @@ def ephemeral(self): def ephemeral(self, ephemeral): """ Sets the ephemeral of this V1Volume. - Ephemeral is a special volume source that \"wraps\" specified source and provides copy-on-write image on top of it. +optional + Ephemeral is a special volume source that \"wraps\" specified source and provides copy-on-write image on top of it. :param ephemeral: The ephemeral of this V1Volume. :type: V1EphemeralVolumeSource @@ -267,7 +267,7 @@ def ephemeral(self, ephemeral): def host_disk(self): """ Gets the host_disk of this V1Volume. - HostDisk represents a disk created on the cluster level +optional + HostDisk represents a disk created on the cluster level :return: The host_disk of this V1Volume. :rtype: V1HostDisk @@ -278,7 +278,7 @@ def host_disk(self): def host_disk(self, host_disk): """ Sets the host_disk of this V1Volume. - HostDisk represents a disk created on the cluster level +optional + HostDisk represents a disk created on the cluster level :param host_disk: The host_disk of this V1Volume. :type: V1HostDisk @@ -315,7 +315,7 @@ def name(self, name): def persistent_volume_claim(self): """ Gets the persistent_volume_claim of this V1Volume. - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims +optional + PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims :return: The persistent_volume_claim of this V1Volume. :rtype: V1PersistentVolumeClaimVolumeSource @@ -326,7 +326,7 @@ def persistent_volume_claim(self): def persistent_volume_claim(self, persistent_volume_claim): """ Sets the persistent_volume_claim of this V1Volume. - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims +optional + PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims :param persistent_volume_claim: The persistent_volume_claim of this V1Volume. :type: V1PersistentVolumeClaimVolumeSource @@ -338,7 +338,7 @@ def persistent_volume_claim(self, persistent_volume_claim): def secret(self): """ Gets the secret of this V1Volume. - SecretVolumeSource represents a reference to a secret data in the same namespace. More info: https://kubernetes.io/docs/concepts/configuration/secret/ +optional + SecretVolumeSource represents a reference to a secret data in the same namespace. More info: https://kubernetes.io/docs/concepts/configuration/secret/ :return: The secret of this V1Volume. :rtype: V1SecretVolumeSource @@ -349,7 +349,7 @@ def secret(self): def secret(self, secret): """ Sets the secret of this V1Volume. - SecretVolumeSource represents a reference to a secret data in the same namespace. More info: https://kubernetes.io/docs/concepts/configuration/secret/ +optional + SecretVolumeSource represents a reference to a secret data in the same namespace. More info: https://kubernetes.io/docs/concepts/configuration/secret/ :param secret: The secret of this V1Volume. :type: V1SecretVolumeSource @@ -361,7 +361,7 @@ def secret(self, secret): def service_account(self): """ Gets the service_account of this V1Volume. - ServiceAccountVolumeSource represents a reference to a service account. There can only be one volume of this type! More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ +optional + ServiceAccountVolumeSource represents a reference to a service account. There can only be one volume of this type! More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ :return: The service_account of this V1Volume. :rtype: V1ServiceAccountVolumeSource @@ -372,7 +372,7 @@ def service_account(self): def service_account(self, service_account): """ Sets the service_account of this V1Volume. - ServiceAccountVolumeSource represents a reference to a service account. There can only be one volume of this type! More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ +optional + ServiceAccountVolumeSource represents a reference to a service account. There can only be one volume of this type! More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ :param service_account: The service_account of this V1Volume. :type: V1ServiceAccountVolumeSource diff --git a/kubevirt/models/v1_watch_event.py b/kubevirt/models/v1_watch_event.py index 7d863047..df060283 100644 --- a/kubevirt/models/v1_watch_event.py +++ b/kubevirt/models/v1_watch_event.py @@ -31,7 +31,7 @@ class V1WatchEvent(object): and the value is json key in definition. """ swagger_types = { - 'object': 'str', + 'object': 'RuntimeRawExtension', 'type': 'str' } @@ -55,9 +55,10 @@ def __init__(self, object=None, type=None): def object(self): """ Gets the object of this V1WatchEvent. + Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context. :return: The object of this V1WatchEvent. - :rtype: str + :rtype: RuntimeRawExtension """ return self._object @@ -65,9 +66,10 @@ def object(self): def object(self, object): """ Sets the object of this V1WatchEvent. + Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context. :param object: The object of this V1WatchEvent. - :type: str + :type: RuntimeRawExtension """ if object is None: raise ValueError("Invalid value for `object`, must not be `None`") diff --git a/kubevirt/models/v1_watchdog.py b/kubevirt/models/v1_watchdog.py index 9362bb08..ffff67d9 100644 --- a/kubevirt/models/v1_watchdog.py +++ b/kubevirt/models/v1_watchdog.py @@ -56,7 +56,7 @@ def __init__(self, i6300esb=None, name=None): def i6300esb(self): """ Gets the i6300esb of this V1Watchdog. - i6300esb watchdog device. +optional + i6300esb watchdog device. :return: The i6300esb of this V1Watchdog. :rtype: V1I6300ESBWatchdog @@ -67,7 +67,7 @@ def i6300esb(self): def i6300esb(self, i6300esb): """ Sets the i6300esb of this V1Watchdog. - i6300esb watchdog device. +optional + i6300esb watchdog device. :param i6300esb: The i6300esb of this V1Watchdog. :type: V1I6300ESBWatchdog diff --git a/kubevirt/models/v1alpha1_data_volume_blank_image.py b/kubevirt/models/v1alpha1_data_volume_blank_image.py new file mode 100644 index 00000000..ad822279 --- /dev/null +++ b/kubevirt/models/v1alpha1_data_volume_blank_image.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1DataVolumeBlankImage(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1alpha1DataVolumeBlankImage - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1DataVolumeBlankImage): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_data_volume_source_upload.py b/kubevirt/models/v1alpha1_data_volume_source_upload.py new file mode 100644 index 00000000..09e6e1f1 --- /dev/null +++ b/kubevirt/models/v1alpha1_data_volume_source_upload.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1DataVolumeSourceUpload(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1alpha1DataVolumeSourceUpload - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1DataVolumeSourceUpload): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 8ec4a6c3..c3214a31 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.28.0-173-g0f656230" +VERSION = "v0.29.0-60-gc03721c2" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b3c241e0..296261f9 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.28.0-173-g0f656230" +"packageVersion": "v0.29.0-60-gc03721c2" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 3ec1ff03..9e16f912 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -35,7 +35,7 @@ def test_check_health(self): """ Test case for check_health - Health endpoint + """ pass @@ -43,7 +43,7 @@ def test_console(self): """ Test case for console - Open a websocket connection to a serial console on the specified VirtualMachineInstance. + """ pass @@ -51,7 +51,7 @@ def test_create_namespaced_virtual_machine(self): """ Test case for create_namespaced_virtual_machine - Create a VirtualMachine object. + """ pass @@ -59,7 +59,7 @@ def test_create_namespaced_virtual_machine_instance(self): """ Test case for create_namespaced_virtual_machine_instance - Create a VirtualMachineInstance object. + """ pass @@ -67,7 +67,7 @@ def test_create_namespaced_virtual_machine_instance_migration(self): """ Test case for create_namespaced_virtual_machine_instance_migration - Create a VirtualMachineInstanceMigration object. + """ pass @@ -75,7 +75,7 @@ def test_create_namespaced_virtual_machine_instance_preset(self): """ Test case for create_namespaced_virtual_machine_instance_preset - Create a VirtualMachineInstancePreset object. + """ pass @@ -83,7 +83,7 @@ def test_create_namespaced_virtual_machine_instance_replica_set(self): """ Test case for create_namespaced_virtual_machine_instance_replica_set - Create a VirtualMachineInstanceReplicaSet object. + """ pass @@ -91,7 +91,7 @@ def test_delete_collection_namespaced_virtual_machine(self): """ Test case for delete_collection_namespaced_virtual_machine - Delete a collection of VirtualMachine objects. + """ pass @@ -99,7 +99,7 @@ def test_delete_collection_namespaced_virtual_machine_instance(self): """ Test case for delete_collection_namespaced_virtual_machine_instance - Delete a collection of VirtualMachineInstance objects. + """ pass @@ -107,7 +107,7 @@ def test_delete_collection_namespaced_virtual_machine_instance_migration(self): """ Test case for delete_collection_namespaced_virtual_machine_instance_migration - Delete a collection of VirtualMachineInstanceMigration objects. + """ pass @@ -115,7 +115,7 @@ def test_delete_collection_namespaced_virtual_machine_instance_preset(self): """ Test case for delete_collection_namespaced_virtual_machine_instance_preset - Delete a collection of VirtualMachineInstancePreset objects. + """ pass @@ -123,7 +123,7 @@ def test_delete_collection_namespaced_virtual_machine_instance_replica_set(self) """ Test case for delete_collection_namespaced_virtual_machine_instance_replica_set - Delete a collection of VirtualMachineInstanceReplicaSet objects. + """ pass @@ -131,7 +131,7 @@ def test_delete_namespaced_virtual_machine(self): """ Test case for delete_namespaced_virtual_machine - Delete a VirtualMachine object. + """ pass @@ -139,7 +139,7 @@ def test_delete_namespaced_virtual_machine_instance(self): """ Test case for delete_namespaced_virtual_machine_instance - Delete a VirtualMachineInstance object. + """ pass @@ -147,7 +147,7 @@ def test_delete_namespaced_virtual_machine_instance_migration(self): """ Test case for delete_namespaced_virtual_machine_instance_migration - Delete a VirtualMachineInstanceMigration object. + """ pass @@ -155,7 +155,7 @@ def test_delete_namespaced_virtual_machine_instance_preset(self): """ Test case for delete_namespaced_virtual_machine_instance_preset - Delete a VirtualMachineInstancePreset object. + """ pass @@ -163,7 +163,7 @@ def test_delete_namespaced_virtual_machine_instance_replica_set(self): """ Test case for delete_namespaced_virtual_machine_instance_replica_set - Delete a VirtualMachineInstanceReplicaSet object. + """ pass @@ -171,7 +171,7 @@ def test_filesystemlist(self): """ Test case for filesystemlist - Get list of active filesystems on guest machine via guest agent + """ pass @@ -187,39 +187,47 @@ def test_get_api_group(self): """ Test case for get_api_group - Get a KubeVirt API group + + """ + pass + + def test_get_api_group_list(self): + """ + Test case for get_api_group_list + + """ pass - def test_get_api_group_0(self): + def test_get_api_resources(self): """ - Test case for get_api_group_0 + Test case for get_api_resources - Get a KubeVirt API Group + """ pass - def test_get_api_group_list(self): + def test_get_api_sub_resources(self): """ - Test case for get_api_group_list + Test case for get_api_sub_resources - Get a KubeVirt API GroupList + """ pass - def test_get_api_resources(self): + def test_get_root_paths(self): """ - Test case for get_api_resources + Test case for get_root_paths - Get KubeVirt API Resources + """ pass - def test_get_api_resources_0(self): + def test_get_sub_api_group(self): """ - Test case for get_api_resources_0 + Test case for get_sub_api_group - Get a KubeVirt API resources + """ pass @@ -227,7 +235,7 @@ def test_guestosinfo(self): """ Test case for guestosinfo - Get guest agent os information + """ pass @@ -235,7 +243,7 @@ def test_list_namespaced_virtual_machine(self): """ Test case for list_namespaced_virtual_machine - Get a list of VirtualMachine objects. + """ pass @@ -243,7 +251,7 @@ def test_list_namespaced_virtual_machine_instance(self): """ Test case for list_namespaced_virtual_machine_instance - Get a list of VirtualMachineInstance objects. + """ pass @@ -251,7 +259,7 @@ def test_list_namespaced_virtual_machine_instance_migration(self): """ Test case for list_namespaced_virtual_machine_instance_migration - Get a list of VirtualMachineInstanceMigration objects. + """ pass @@ -259,7 +267,7 @@ def test_list_namespaced_virtual_machine_instance_preset(self): """ Test case for list_namespaced_virtual_machine_instance_preset - Get a list of VirtualMachineInstancePreset objects. + """ pass @@ -267,7 +275,7 @@ def test_list_namespaced_virtual_machine_instance_replica_set(self): """ Test case for list_namespaced_virtual_machine_instance_replica_set - Get a list of VirtualMachineInstanceReplicaSet objects. + """ pass @@ -275,7 +283,7 @@ def test_list_virtual_machine_for_all_namespaces(self): """ Test case for list_virtual_machine_for_all_namespaces - Get a list of all VirtualMachine objects. + """ pass @@ -283,7 +291,7 @@ def test_list_virtual_machine_instance_for_all_namespaces(self): """ Test case for list_virtual_machine_instance_for_all_namespaces - Get a list of all VirtualMachineInstance objects. + """ pass @@ -291,7 +299,7 @@ def test_list_virtual_machine_instance_migration_for_all_namespaces(self): """ Test case for list_virtual_machine_instance_migration_for_all_namespaces - Get a list of all VirtualMachineInstanceMigration objects. + """ pass @@ -299,7 +307,7 @@ def test_list_virtual_machine_instance_preset_for_all_namespaces(self): """ Test case for list_virtual_machine_instance_preset_for_all_namespaces - Get a list of all VirtualMachineInstancePreset objects. + """ pass @@ -307,7 +315,7 @@ def test_list_virtual_machine_instance_replica_set_for_all_namespaces(self): """ Test case for list_virtual_machine_instance_replica_set_for_all_namespaces - Get a list of all VirtualMachineInstanceReplicaSet objects. + """ pass @@ -315,7 +323,7 @@ def test_migrate(self): """ Test case for migrate - Migrate a running VirtualMachine to another node. + """ pass @@ -323,7 +331,7 @@ def test_patch_namespaced_virtual_machine(self): """ Test case for patch_namespaced_virtual_machine - Patch a VirtualMachine object. + """ pass @@ -331,7 +339,7 @@ def test_patch_namespaced_virtual_machine_instance(self): """ Test case for patch_namespaced_virtual_machine_instance - Patch a VirtualMachineInstance object. + """ pass @@ -339,7 +347,7 @@ def test_patch_namespaced_virtual_machine_instance_migration(self): """ Test case for patch_namespaced_virtual_machine_instance_migration - Patch a VirtualMachineInstanceMigration object. + """ pass @@ -347,7 +355,7 @@ def test_patch_namespaced_virtual_machine_instance_preset(self): """ Test case for patch_namespaced_virtual_machine_instance_preset - Patch a VirtualMachineInstancePreset object. + """ pass @@ -355,7 +363,7 @@ def test_patch_namespaced_virtual_machine_instance_replica_set(self): """ Test case for patch_namespaced_virtual_machine_instance_replica_set - Patch a VirtualMachineInstanceReplicaSet object. + """ pass @@ -363,7 +371,7 @@ def test_pause(self): """ Test case for pause - Pause a VirtualMachineInstance object. + """ pass @@ -371,7 +379,7 @@ def test_read_namespaced_virtual_machine(self): """ Test case for read_namespaced_virtual_machine - Get a VirtualMachine object. + """ pass @@ -379,7 +387,7 @@ def test_read_namespaced_virtual_machine_instance(self): """ Test case for read_namespaced_virtual_machine_instance - Get a VirtualMachineInstance object. + """ pass @@ -387,7 +395,7 @@ def test_read_namespaced_virtual_machine_instance_migration(self): """ Test case for read_namespaced_virtual_machine_instance_migration - Get a VirtualMachineInstanceMigration object. + """ pass @@ -395,7 +403,7 @@ def test_read_namespaced_virtual_machine_instance_preset(self): """ Test case for read_namespaced_virtual_machine_instance_preset - Get a VirtualMachineInstancePreset object. + """ pass @@ -403,7 +411,7 @@ def test_read_namespaced_virtual_machine_instance_replica_set(self): """ Test case for read_namespaced_virtual_machine_instance_replica_set - Get a VirtualMachineInstanceReplicaSet object. + """ pass @@ -411,7 +419,7 @@ def test_rename(self): """ Test case for rename - Rename a stopped VirtualMachine object. + """ pass @@ -419,7 +427,7 @@ def test_replace_namespaced_virtual_machine(self): """ Test case for replace_namespaced_virtual_machine - Update a VirtualMachine object. + """ pass @@ -427,7 +435,7 @@ def test_replace_namespaced_virtual_machine_instance(self): """ Test case for replace_namespaced_virtual_machine_instance - Update a VirtualMachineInstance object. + """ pass @@ -435,7 +443,7 @@ def test_replace_namespaced_virtual_machine_instance_migration(self): """ Test case for replace_namespaced_virtual_machine_instance_migration - Update a VirtualMachineInstanceMigration object. + """ pass @@ -443,7 +451,7 @@ def test_replace_namespaced_virtual_machine_instance_preset(self): """ Test case for replace_namespaced_virtual_machine_instance_preset - Update a VirtualMachineInstancePreset object. + """ pass @@ -451,7 +459,7 @@ def test_replace_namespaced_virtual_machine_instance_replica_set(self): """ Test case for replace_namespaced_virtual_machine_instance_replica_set - Update a VirtualMachineInstanceReplicaSet object. + """ pass @@ -459,7 +467,7 @@ def test_restart(self): """ Test case for restart - Restart a VirtualMachine object. + """ pass @@ -467,7 +475,7 @@ def test_start(self): """ Test case for start - Start a VirtualMachine object. + """ pass @@ -475,7 +483,7 @@ def test_stop(self): """ Test case for stop - Stop a VirtualMachine object. + """ pass @@ -483,7 +491,7 @@ def test_test(self): """ Test case for test - Test endpoint verifying apiserver connectivity. + """ pass @@ -491,7 +499,7 @@ def test_unpause(self): """ Test case for unpause - Unpause a VirtualMachineInstance object. + """ pass @@ -499,7 +507,7 @@ def test_userlist(self): """ Test case for userlist - Get list of active users via guest agent + """ pass @@ -515,7 +523,7 @@ def test_vnc(self): """ Test case for vnc - Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. + """ pass @@ -523,7 +531,7 @@ def test_watch_namespaced_virtual_machine(self): """ Test case for watch_namespaced_virtual_machine - Watch a VirtualMachine object. + """ pass @@ -531,7 +539,7 @@ def test_watch_namespaced_virtual_machine_instance(self): """ Test case for watch_namespaced_virtual_machine_instance - Watch a VirtualMachineInstance object. + """ pass @@ -539,7 +547,7 @@ def test_watch_namespaced_virtual_machine_instance_migration(self): """ Test case for watch_namespaced_virtual_machine_instance_migration - Watch a VirtualMachineInstanceMigration object. + """ pass @@ -547,7 +555,7 @@ def test_watch_namespaced_virtual_machine_instance_preset(self): """ Test case for watch_namespaced_virtual_machine_instance_preset - Watch a VirtualMachineInstancePreset object. + """ pass @@ -555,7 +563,7 @@ def test_watch_namespaced_virtual_machine_instance_replica_set(self): """ Test case for watch_namespaced_virtual_machine_instance_replica_set - Watch a VirtualMachineInstanceReplicaSet object. + """ pass @@ -563,7 +571,7 @@ def test_watch_virtual_machine_instance_list_for_all_namespaces(self): """ Test case for watch_virtual_machine_instance_list_for_all_namespaces - Watch a VirtualMachineInstanceList object. + """ pass @@ -571,7 +579,7 @@ def test_watch_virtual_machine_instance_migration_list_for_all_namespaces(self): """ Test case for watch_virtual_machine_instance_migration_list_for_all_namespaces - Watch a VirtualMachineInstanceMigrationList object. + """ pass @@ -579,7 +587,7 @@ def test_watch_virtual_machine_instance_preset_list_for_all_namespaces(self): """ Test case for watch_virtual_machine_instance_preset_list_for_all_namespaces - Watch a VirtualMachineInstancePresetList object. + """ pass @@ -587,7 +595,7 @@ def test_watch_virtual_machine_instance_replica_set_list_for_all_namespaces(self """ Test case for watch_virtual_machine_instance_replica_set_list_for_all_namespaces - Watch a VirtualMachineInstanceReplicaSetList object. + """ pass @@ -595,7 +603,7 @@ def test_watch_virtual_machine_list_for_all_namespaces(self): """ Test case for watch_virtual_machine_list_for_all_namespaces - Watch a VirtualMachineList object. + """ pass diff --git a/test/test_intstr_int_or_string.py b/test/test_intstr_int_or_string.py new file mode 100644 index 00000000..51f55ad4 --- /dev/null +++ b/test/test_intstr_int_or_string.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.intstr_int_or_string import IntstrIntOrString + + +class TestIntstrIntOrString(unittest.TestCase): + """ IntstrIntOrString unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testIntstrIntOrString(self): + """ + Test IntstrIntOrString + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.intstr_int_or_string.IntstrIntOrString() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_resource_quantity.py b/test/test_resource_quantity.py new file mode 100644 index 00000000..0bdfb38b --- /dev/null +++ b/test/test_resource_quantity.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.resource_quantity import ResourceQuantity + + +class TestResourceQuantity(unittest.TestCase): + """ ResourceQuantity unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResourceQuantity(self): + """ + Test ResourceQuantity + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.resource_quantity.ResourceQuantity() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_runtime_raw_extension.py b/test/test_runtime_raw_extension.py new file mode 100644 index 00000000..69d20916 --- /dev/null +++ b/test/test_runtime_raw_extension.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.runtime_raw_extension import RuntimeRawExtension + + +class TestRuntimeRawExtension(unittest.TestCase): + """ RuntimeRawExtension unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRuntimeRawExtension(self): + """ + Test RuntimeRawExtension + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.runtime_raw_extension.RuntimeRawExtension() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_bios.py b/test/test_v1_bios.py new file mode 100644 index 00000000..83307a88 --- /dev/null +++ b/test/test_v1_bios.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_bios import V1BIOS + + +class TestV1BIOS(unittest.TestCase): + """ V1BIOS unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1BIOS(self): + """ + Test V1BIOS + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_bios.V1BIOS() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_efi.py b/test/test_v1_efi.py new file mode 100644 index 00000000..536d4f86 --- /dev/null +++ b/test/test_v1_efi.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_efi import V1EFI + + +class TestV1EFI(unittest.TestCase): + """ V1EFI unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1EFI(self): + """ + Test V1EFI + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_efi.V1EFI() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_fields_v1.py b/test/test_v1_fields_v1.py new file mode 100644 index 00000000..485c4e10 --- /dev/null +++ b/test/test_v1_fields_v1.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_fields_v1 import V1FieldsV1 + + +class TestV1FieldsV1(unittest.TestCase): + """ V1FieldsV1 unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1FieldsV1(self): + """ + Test V1FieldsV1 + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_fields_v1.V1FieldsV1() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_interface_bridge.py b/test/test_v1_interface_bridge.py new file mode 100644 index 00000000..254156cc --- /dev/null +++ b/test/test_v1_interface_bridge.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_interface_bridge import V1InterfaceBridge + + +class TestV1InterfaceBridge(unittest.TestCase): + """ V1InterfaceBridge unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1InterfaceBridge(self): + """ + Test V1InterfaceBridge + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_interface_bridge.V1InterfaceBridge() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_interface_masquerade.py b/test/test_v1_interface_masquerade.py new file mode 100644 index 00000000..72262771 --- /dev/null +++ b/test/test_v1_interface_masquerade.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_interface_masquerade import V1InterfaceMasquerade + + +class TestV1InterfaceMasquerade(unittest.TestCase): + """ V1InterfaceMasquerade unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1InterfaceMasquerade(self): + """ + Test V1InterfaceMasquerade + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_interface_masquerade.V1InterfaceMasquerade() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_interface_slirp.py b/test/test_v1_interface_slirp.py new file mode 100644 index 00000000..fa591291 --- /dev/null +++ b/test/test_v1_interface_slirp.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_interface_slirp import V1InterfaceSlirp + + +class TestV1InterfaceSlirp(unittest.TestCase): + """ V1InterfaceSlirp unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1InterfaceSlirp(self): + """ + Test V1InterfaceSlirp + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_interface_slirp.V1InterfaceSlirp() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_interface_sriov.py b/test/test_v1_interface_sriov.py new file mode 100644 index 00000000..789fa61a --- /dev/null +++ b/test/test_v1_interface_sriov.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_interface_sriov import V1InterfaceSRIOV + + +class TestV1InterfaceSRIOV(unittest.TestCase): + """ V1InterfaceSRIOV unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1InterfaceSRIOV(self): + """ + Test V1InterfaceSRIOV + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_interface_sriov.V1InterfaceSRIOV() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_patch.py b/test/test_v1_patch.py new file mode 100644 index 00000000..1eaee40e --- /dev/null +++ b/test/test_v1_patch.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_patch import V1Patch + + +class TestV1Patch(unittest.TestCase): + """ V1Patch unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Patch(self): + """ + Test V1Patch + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_patch.V1Patch() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_rng.py b/test/test_v1_rng.py new file mode 100644 index 00000000..59525daa --- /dev/null +++ b/test/test_v1_rng.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_rng import V1Rng + + +class TestV1Rng(unittest.TestCase): + """ V1Rng unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Rng(self): + """ + Test V1Rng + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_rng.V1Rng() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_time.py b/test/test_v1_time.py new file mode 100644 index 00000000..ee9f65ab --- /dev/null +++ b/test/test_v1_time.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_time import V1Time + + +class TestV1Time(unittest.TestCase): + """ V1Time unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Time(self): + """ + Test V1Time + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_time.V1Time() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_data_volume_blank_image.py b/test/test_v1alpha1_data_volume_blank_image.py new file mode 100644 index 00000000..cbc14428 --- /dev/null +++ b/test/test_v1alpha1_data_volume_blank_image.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_data_volume_blank_image import V1alpha1DataVolumeBlankImage + + +class TestV1alpha1DataVolumeBlankImage(unittest.TestCase): + """ V1alpha1DataVolumeBlankImage unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1DataVolumeBlankImage(self): + """ + Test V1alpha1DataVolumeBlankImage + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_data_volume_blank_image.V1alpha1DataVolumeBlankImage() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_data_volume_source_upload.py b/test/test_v1alpha1_data_volume_source_upload.py new file mode 100644 index 00000000..b2a69578 --- /dev/null +++ b/test/test_v1alpha1_data_volume_source_upload.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_data_volume_source_upload import V1alpha1DataVolumeSourceUpload + + +class TestV1alpha1DataVolumeSourceUpload(unittest.TestCase): + """ V1alpha1DataVolumeSourceUpload unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1DataVolumeSourceUpload(self): + """ + Test V1alpha1DataVolumeSourceUpload + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_data_volume_source_upload.V1alpha1DataVolumeSourceUpload() + pass + + +if __name__ == '__main__': + unittest.main() From 1dbd8a1574bd52fcfbdf94c162454da4fa9edc1f Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 15 May 2020 15:15:40 +0000 Subject: [PATCH 126/521] Client Python update by Travis Build 12283 --- README.md | 2 +- docs/V1EFI.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_efi.py | 32 +++++++++++++++++++++++++++++--- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 97b05da4..0b66b0d5 100644 --- a/README.md +++ b/README.md @@ -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: v0.29.0-60-gc03721c2 +- Package version: v0.29.0-78-g5de00f25 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1EFI.md b/docs/V1EFI.md index 3579df8d..9daa0963 100644 --- a/docs/V1EFI.md +++ b/docs/V1EFI.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**secure_boot** | **bool** | If set, SecureBoot will be enabled and the OVMF roms will be swapped for SecureBoot-enabled ones. Requires SMM to be enabled. Defaults to false | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 9bcdcb66..f75edce2 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.29.0-60-gc03721c2" + release_note="Auto-generated client v0.29.0-78-g5de00f25" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 4efb45fe..231202a3 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.29.0-60-gc03721c2/python' + self.user_agent = 'Swagger-Codegen/v0.29.0-78-g5de00f25/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 418f8f91..4f10371e 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.29.0-60-gc03721c2".\ + "SDK Package Version: v0.29.0-78-g5de00f25".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_efi.py b/kubevirt/models/v1_efi.py index 1e64f841..41dda54b 100644 --- a/kubevirt/models/v1_efi.py +++ b/kubevirt/models/v1_efi.py @@ -31,19 +31,45 @@ class V1EFI(object): and the value is json key in definition. """ swagger_types = { - + 'secure_boot': 'bool' } attribute_map = { - + 'secure_boot': 'secureBoot' } - def __init__(self): + def __init__(self, secure_boot=None): """ V1EFI - a model defined in Swagger """ + self._secure_boot = None + if secure_boot is not None: + self.secure_boot = secure_boot + + @property + def secure_boot(self): + """ + Gets the secure_boot of this V1EFI. + If set, SecureBoot will be enabled and the OVMF roms will be swapped for SecureBoot-enabled ones. Requires SMM to be enabled. Defaults to false + + :return: The secure_boot of this V1EFI. + :rtype: bool + """ + return self._secure_boot + + @secure_boot.setter + def secure_boot(self, secure_boot): + """ + Sets the secure_boot of this V1EFI. + If set, SecureBoot will be enabled and the OVMF roms will be swapped for SecureBoot-enabled ones. Requires SMM to be enabled. Defaults to false + + :param secure_boot: The secure_boot of this V1EFI. + :type: bool + """ + + self._secure_boot = secure_boot def to_dict(self): """ diff --git a/setup.py b/setup.py index c3214a31..a956a5c2 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.29.0-60-gc03721c2" +VERSION = "v0.29.0-78-g5de00f25" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 296261f9..7e2c7ade 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.29.0-60-gc03721c2" +"packageVersion": "v0.29.0-78-g5de00f25" } From 2ef785c7b8419d28e5348e93b67587fa7a80921d Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sat, 30 May 2020 23:53:15 +0000 Subject: [PATCH 127/521] Client Python update by Travis Build 12544 --- README.md | 2 +- docs/V1VirtualMachineInstanceNetworkInterface.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../models/v1_virtual_machine_instance_network_interface.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 0b66b0d5..c4363df2 100644 --- a/README.md +++ b/README.md @@ -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: v0.29.0-78-g5de00f25 +- Package version: v0.29.0-149-gbe8e8985 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceNetworkInterface.md b/docs/V1VirtualMachineInstanceNetworkInterface.md index 8ee7066e..96834712 100644 --- a/docs/V1VirtualMachineInstanceNetworkInterface.md +++ b/docs/V1VirtualMachineInstanceNetworkInterface.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **interface_name** | **str** | The interface name inside the Virtual Machine | [optional] -**ip_address** | **str** | IP address of a Virtual Machine interface | [optional] +**ip_address** | **str** | IP address of a Virtual Machine interface. It is always the first item of IPs | [optional] **ip_addresses** | **list[str]** | List of all IP addresses of a Virtual Machine interface | [optional] **mac** | **str** | Hardware address of a Virtual Machine interface | [optional] **name** | **str** | Name of the interface, corresponds to name of the network assigned to the interface | [optional] diff --git a/git_push.sh b/git_push.sh index f75edce2..09fb6eef 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.29.0-78-g5de00f25" + release_note="Auto-generated client v0.29.0-149-gbe8e8985" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 231202a3..66909576 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.29.0-78-g5de00f25/python' + self.user_agent = 'Swagger-Codegen/v0.29.0-149-gbe8e8985/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 4f10371e..e31b5212 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.29.0-78-g5de00f25".\ + "SDK Package Version: v0.29.0-149-gbe8e8985".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_network_interface.py b/kubevirt/models/v1_virtual_machine_instance_network_interface.py index a3da4556..e9f0e0d4 100644 --- a/kubevirt/models/v1_virtual_machine_instance_network_interface.py +++ b/kubevirt/models/v1_virtual_machine_instance_network_interface.py @@ -95,7 +95,7 @@ def interface_name(self, interface_name): def ip_address(self): """ Gets the ip_address of this V1VirtualMachineInstanceNetworkInterface. - IP address of a Virtual Machine interface + IP address of a Virtual Machine interface. It is always the first item of IPs :return: The ip_address of this V1VirtualMachineInstanceNetworkInterface. :rtype: str @@ -106,7 +106,7 @@ def ip_address(self): def ip_address(self, ip_address): """ Sets the ip_address of this V1VirtualMachineInstanceNetworkInterface. - IP address of a Virtual Machine interface + IP address of a Virtual Machine interface. It is always the first item of IPs :param ip_address: The ip_address of this V1VirtualMachineInstanceNetworkInterface. :type: str diff --git a/setup.py b/setup.py index a956a5c2..22af3e2d 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.29.0-78-g5de00f25" +VERSION = "v0.29.0-149-gbe8e8985" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 7e2c7ade..ebde65f4 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.29.0-78-g5de00f25" +"packageVersion": "v0.29.0-149-gbe8e8985" } From d8e090168c275d59f5d3c5f63647ca9e14fd1aec Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sat, 6 Jun 2020 21:43:04 +0000 Subject: [PATCH 128/521] Client Python update by Travis Build 12679 --- README.md | 44 +- docs/DefaultApi.md | 1420 ++++- docs/V1PersistentVolumeClaim.md | 14 + docs/V1PersistentVolumeClaimCondition.md | 13 + docs/V1PersistentVolumeClaimStatus.md | 13 + docs/V1VirtualMachineStatus.md | 1 + docs/V1alpha1SourceSpec.md | 10 + docs/V1alpha1VirtualMachineSnapshot.md | 14 + ...V1alpha1VirtualMachineSnapshotCondition.md | 13 + docs/V1alpha1VirtualMachineSnapshotContent.md | 14 + ...alpha1VirtualMachineSnapshotContentList.md | 13 + ...alpha1VirtualMachineSnapshotContentSpec.md | 12 + ...pha1VirtualMachineSnapshotContentStatus.md | 13 + docs/V1alpha1VirtualMachineSnapshotError.md | 11 + docs/V1alpha1VirtualMachineSnapshotList.md | 13 + docs/V1alpha1VirtualMachineSnapshotSpec.md | 11 + docs/V1alpha1VirtualMachineSnapshotStatus.md | 14 + docs/V1alpha1VolumeBackup.md | 12 + docs/V1alpha1VolumeSnapshotStatus.md | 13 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 52 + kubevirt/__init__.py | 16 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 5446 ++++++++++++----- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 16 + kubevirt/models/v1_persistent_volume_claim.py | 237 + .../v1_persistent_volume_claim_condition.py | 207 + .../v1_persistent_volume_claim_status.py | 209 + kubevirt/models/v1_virtual_machine_status.py | 30 +- kubevirt/models/v1alpha1_source_spec.py | 123 + .../v1alpha1_virtual_machine_snapshot.py | 232 + ...pha1_virtual_machine_snapshot_condition.py | 203 + ...alpha1_virtual_machine_snapshot_content.py | 232 + ...1_virtual_machine_snapshot_content_list.py | 207 + ...1_virtual_machine_snapshot_content_spec.py | 176 + ...virtual_machine_snapshot_content_status.py | 201 + ...v1alpha1_virtual_machine_snapshot_error.py | 149 + .../v1alpha1_virtual_machine_snapshot_list.py | 207 + .../v1alpha1_virtual_machine_snapshot_spec.py | 150 + ...1alpha1_virtual_machine_snapshot_status.py | 227 + kubevirt/models/v1alpha1_volume_backup.py | 177 + .../models/v1alpha1_volume_snapshot_status.py | 202 + setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 184 +- test/test_v1_persistent_volume_claim.py | 44 + ...st_v1_persistent_volume_claim_condition.py | 44 + .../test_v1_persistent_volume_claim_status.py | 44 + test/test_v1alpha1_source_spec.py | 44 + .../test_v1alpha1_virtual_machine_snapshot.py | 44 + ...pha1_virtual_machine_snapshot_condition.py | 44 + ...alpha1_virtual_machine_snapshot_content.py | 44 + ...1_virtual_machine_snapshot_content_list.py | 44 + ...1_virtual_machine_snapshot_content_spec.py | 44 + ...virtual_machine_snapshot_content_status.py | 44 + ...v1alpha1_virtual_machine_snapshot_error.py | 44 + ..._v1alpha1_virtual_machine_snapshot_list.py | 44 + ..._v1alpha1_virtual_machine_snapshot_spec.py | 44 + ...1alpha1_virtual_machine_snapshot_status.py | 44 + test/test_v1alpha1_volume_backup.py | 44 + test/test_v1alpha1_volume_snapshot_status.py | 44 + 62 files changed, 9766 insertions(+), 1499 deletions(-) create mode 100644 docs/V1PersistentVolumeClaim.md create mode 100644 docs/V1PersistentVolumeClaimCondition.md create mode 100644 docs/V1PersistentVolumeClaimStatus.md create mode 100644 docs/V1alpha1SourceSpec.md create mode 100644 docs/V1alpha1VirtualMachineSnapshot.md create mode 100644 docs/V1alpha1VirtualMachineSnapshotCondition.md create mode 100644 docs/V1alpha1VirtualMachineSnapshotContent.md create mode 100644 docs/V1alpha1VirtualMachineSnapshotContentList.md create mode 100644 docs/V1alpha1VirtualMachineSnapshotContentSpec.md create mode 100644 docs/V1alpha1VirtualMachineSnapshotContentStatus.md create mode 100644 docs/V1alpha1VirtualMachineSnapshotError.md create mode 100644 docs/V1alpha1VirtualMachineSnapshotList.md create mode 100644 docs/V1alpha1VirtualMachineSnapshotSpec.md create mode 100644 docs/V1alpha1VirtualMachineSnapshotStatus.md create mode 100644 docs/V1alpha1VolumeBackup.md create mode 100644 docs/V1alpha1VolumeSnapshotStatus.md create mode 100644 kubevirt/models/v1_persistent_volume_claim.py create mode 100644 kubevirt/models/v1_persistent_volume_claim_condition.py create mode 100644 kubevirt/models/v1_persistent_volume_claim_status.py create mode 100644 kubevirt/models/v1alpha1_source_spec.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_snapshot.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_snapshot_condition.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_snapshot_content.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_snapshot_content_list.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_snapshot_content_spec.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_snapshot_content_status.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_snapshot_error.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_snapshot_list.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_snapshot_spec.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py create mode 100644 kubevirt/models/v1alpha1_volume_backup.py create mode 100644 kubevirt/models/v1alpha1_volume_snapshot_status.py create mode 100644 test/test_v1_persistent_volume_claim.py create mode 100644 test/test_v1_persistent_volume_claim_condition.py create mode 100644 test/test_v1_persistent_volume_claim_status.py create mode 100644 test/test_v1alpha1_source_spec.py create mode 100644 test/test_v1alpha1_virtual_machine_snapshot.py create mode 100644 test/test_v1alpha1_virtual_machine_snapshot_condition.py create mode 100644 test/test_v1alpha1_virtual_machine_snapshot_content.py create mode 100644 test/test_v1alpha1_virtual_machine_snapshot_content_list.py create mode 100644 test/test_v1alpha1_virtual_machine_snapshot_content_spec.py create mode 100644 test/test_v1alpha1_virtual_machine_snapshot_content_status.py create mode 100644 test/test_v1alpha1_virtual_machine_snapshot_error.py create mode 100644 test/test_v1alpha1_virtual_machine_snapshot_list.py create mode 100644 test/test_v1alpha1_virtual_machine_snapshot_spec.py create mode 100644 test/test_v1alpha1_virtual_machine_snapshot_status.py create mode 100644 test/test_v1alpha1_volume_backup.py create mode 100644 test/test_v1alpha1_volume_snapshot_status.py diff --git a/README.md b/README.md index c4363df2..d31f4f8b 100644 --- a/README.md +++ b/README.md @@ -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: v0.29.0-149-gbe8e8985 +- Package version: v0.30.0-36-gc5656f9e - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -75,21 +75,29 @@ Class | Method | HTTP request | Description *DefaultApi* | [**create_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | *DefaultApi* | [**create_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | *DefaultApi* | [**create_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +*DefaultApi* | [**create_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | +*DefaultApi* | [**create_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | *DefaultApi* | [**delete_collection_namespaced_virtual_machine**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | *DefaultApi* | [**delete_namespaced_virtual_machine**](docs/DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**filesystemlist**](docs/DefaultApi.md#filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | *DefaultApi* | [**func7**](docs/DefaultApi.md#func7) | **GET** /openapi/v2 | -*DefaultApi* | [**get_api_group**](docs/DefaultApi.md#get_api_group) | **GET** /apis/kubevirt.io/ | +*DefaultApi* | [**get_api_group_kubevirt_io**](docs/DefaultApi.md#get_api_group_kubevirt_io) | **GET** /apis/kubevirt.io/ | *DefaultApi* | [**get_api_group_list**](docs/DefaultApi.md#get_api_group_list) | **GET** /apis | -*DefaultApi* | [**get_api_resources**](docs/DefaultApi.md#get_api_resources) | **GET** /apis/kubevirt.io/v1alpha3/ | +*DefaultApi* | [**get_api_group_snapshot_kubevirt_io**](docs/DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | +*DefaultApi* | [**get_api_resources_kubevirt_io_v1alpha3**](docs/DefaultApi.md#get_api_resources_kubevirt_io_v1alpha3) | **GET** /apis/kubevirt.io/v1alpha3/ | +*DefaultApi* | [**get_api_resources_snapshot_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_snapshot_kubevirt_io_v1alpha1) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/ | *DefaultApi* | [**get_api_sub_resources**](docs/DefaultApi.md#get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1alpha3/ | *DefaultApi* | [**get_root_paths**](docs/DefaultApi.md#get_root_paths) | **GET** / | *DefaultApi* | [**get_sub_api_group**](docs/DefaultApi.md#get_sub_api_group) | **GET** /apis/subresources.kubevirt.io | @@ -99,29 +107,39 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | *DefaultApi* | [**list_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | *DefaultApi* | [**list_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +*DefaultApi* | [**list_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | +*DefaultApi* | [**list_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | *DefaultApi* | [**list_virtual_machine_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachines | *DefaultApi* | [**list_virtual_machine_instance_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstances | *DefaultApi* | [**list_virtual_machine_instance_migration_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancemigrations | *DefaultApi* | [**list_virtual_machine_instance_preset_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancepresets | *DefaultApi* | [**list_virtual_machine_instance_replica_set_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancereplicasets | +*DefaultApi* | [**list_virtual_machine_snapshot_content_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents | +*DefaultApi* | [**list_virtual_machine_snapshot_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots | *DefaultApi* | [**migrate**](docs/DefaultApi.md#migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | *DefaultApi* | [**patch_namespaced_virtual_machine**](docs/DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**pause**](docs/DefaultApi.md#pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | *DefaultApi* | [**read_namespaced_virtual_machine**](docs/DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_instance**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**rename**](docs/DefaultApi.md#rename) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/rename | *DefaultApi* | [**replace_namespaced_virtual_machine**](docs/DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**restart**](docs/DefaultApi.md#restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | *DefaultApi* | [**start**](docs/DefaultApi.md#start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | *DefaultApi* | [**stop**](docs/DefaultApi.md#stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | @@ -135,11 +153,15 @@ Class | Method | HTTP request | Description *DefaultApi* | [**watch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | *DefaultApi* | [**watch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | *DefaultApi* | [**watch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +*DefaultApi* | [**watch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | +*DefaultApi* | [**watch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | *DefaultApi* | [**watch_virtual_machine_instance_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstances | *DefaultApi* | [**watch_virtual_machine_instance_migration_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancemigrations | *DefaultApi* | [**watch_virtual_machine_instance_preset_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancepresets | *DefaultApi* | [**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancereplicasets | *DefaultApi* | [**watch_virtual_machine_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachines | +*DefaultApi* | [**watch_virtual_machine_snapshot_content_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_snapshot_content_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshotcontents | +*DefaultApi* | [**watch_virtual_machine_snapshot_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_snapshot_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshots | ## Documentation For Models @@ -218,7 +240,10 @@ Class | Method | HTTP request | Description - [V1OwnerReference](docs/V1OwnerReference.md) - [V1PITTimer](docs/V1PITTimer.md) - [V1Patch](docs/V1Patch.md) + - [V1PersistentVolumeClaim](docs/V1PersistentVolumeClaim.md) + - [V1PersistentVolumeClaimCondition](docs/V1PersistentVolumeClaimCondition.md) - [V1PersistentVolumeClaimSpec](docs/V1PersistentVolumeClaimSpec.md) + - [V1PersistentVolumeClaimStatus](docs/V1PersistentVolumeClaimStatus.md) - [V1PersistentVolumeClaimVolumeSource](docs/V1PersistentVolumeClaimVolumeSource.md) - [V1PodAffinity](docs/V1PodAffinity.md) - [V1PodAffinityTerm](docs/V1PodAffinityTerm.md) @@ -294,6 +319,19 @@ Class | Method | HTTP request | Description - [V1alpha1DataVolumeSourceUpload](docs/V1alpha1DataVolumeSourceUpload.md) - [V1alpha1DataVolumeSpec](docs/V1alpha1DataVolumeSpec.md) - [V1alpha1DataVolumeStatus](docs/V1alpha1DataVolumeStatus.md) + - [V1alpha1SourceSpec](docs/V1alpha1SourceSpec.md) + - [V1alpha1VirtualMachineSnapshot](docs/V1alpha1VirtualMachineSnapshot.md) + - [V1alpha1VirtualMachineSnapshotCondition](docs/V1alpha1VirtualMachineSnapshotCondition.md) + - [V1alpha1VirtualMachineSnapshotContent](docs/V1alpha1VirtualMachineSnapshotContent.md) + - [V1alpha1VirtualMachineSnapshotContentList](docs/V1alpha1VirtualMachineSnapshotContentList.md) + - [V1alpha1VirtualMachineSnapshotContentSpec](docs/V1alpha1VirtualMachineSnapshotContentSpec.md) + - [V1alpha1VirtualMachineSnapshotContentStatus](docs/V1alpha1VirtualMachineSnapshotContentStatus.md) + - [V1alpha1VirtualMachineSnapshotError](docs/V1alpha1VirtualMachineSnapshotError.md) + - [V1alpha1VirtualMachineSnapshotList](docs/V1alpha1VirtualMachineSnapshotList.md) + - [V1alpha1VirtualMachineSnapshotSpec](docs/V1alpha1VirtualMachineSnapshotSpec.md) + - [V1alpha1VirtualMachineSnapshotStatus](docs/V1alpha1VirtualMachineSnapshotStatus.md) + - [V1alpha1VolumeBackup](docs/V1alpha1VolumeBackup.md) + - [V1alpha1VolumeSnapshotStatus](docs/V1alpha1VolumeSnapshotStatus.md) ## Documentation For Authorization diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 9c04b827..7241e454 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -11,21 +11,29 @@ Method | HTTP request | Description [**create_namespaced_virtual_machine_instance_migration**](DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | [**create_namespaced_virtual_machine_instance_preset**](DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | [**create_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +[**create_namespaced_virtual_machine_snapshot**](DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | +[**create_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | [**delete_collection_namespaced_virtual_machine**](DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | [**delete_collection_namespaced_virtual_machine_instance**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | [**delete_collection_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | [**delete_collection_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +[**delete_collection_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | +[**delete_collection_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | [**delete_namespaced_virtual_machine**](DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_instance**](DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**filesystemlist**](DefaultApi.md#filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | [**func7**](DefaultApi.md#func7) | **GET** /openapi/v2 | -[**get_api_group**](DefaultApi.md#get_api_group) | **GET** /apis/kubevirt.io/ | +[**get_api_group_kubevirt_io**](DefaultApi.md#get_api_group_kubevirt_io) | **GET** /apis/kubevirt.io/ | [**get_api_group_list**](DefaultApi.md#get_api_group_list) | **GET** /apis | -[**get_api_resources**](DefaultApi.md#get_api_resources) | **GET** /apis/kubevirt.io/v1alpha3/ | +[**get_api_group_snapshot_kubevirt_io**](DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | +[**get_api_resources_kubevirt_io_v1alpha3**](DefaultApi.md#get_api_resources_kubevirt_io_v1alpha3) | **GET** /apis/kubevirt.io/v1alpha3/ | +[**get_api_resources_snapshot_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_snapshot_kubevirt_io_v1alpha1) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/ | [**get_api_sub_resources**](DefaultApi.md#get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1alpha3/ | [**get_root_paths**](DefaultApi.md#get_root_paths) | **GET** / | [**get_sub_api_group**](DefaultApi.md#get_sub_api_group) | **GET** /apis/subresources.kubevirt.io | @@ -35,29 +43,39 @@ Method | HTTP request | Description [**list_namespaced_virtual_machine_instance_migration**](DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | [**list_namespaced_virtual_machine_instance_preset**](DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | [**list_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +[**list_namespaced_virtual_machine_snapshot**](DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | +[**list_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | [**list_virtual_machine_for_all_namespaces**](DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachines | [**list_virtual_machine_instance_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstances | [**list_virtual_machine_instance_migration_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancemigrations | [**list_virtual_machine_instance_preset_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancepresets | [**list_virtual_machine_instance_replica_set_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancereplicasets | +[**list_virtual_machine_snapshot_content_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents | +[**list_virtual_machine_snapshot_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots | [**migrate**](DefaultApi.md#migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | [**patch_namespaced_virtual_machine**](DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_instance**](DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_namespaced_virtual_machine_snapshot**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**pause**](DefaultApi.md#pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | [**read_namespaced_virtual_machine**](DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_instance**](DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_instance_migration**](DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_instance_preset**](DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +[**read_namespaced_virtual_machine_snapshot**](DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | +[**read_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**rename**](DefaultApi.md#rename) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/rename | [**replace_namespaced_virtual_machine**](DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_instance**](DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_instance_migration**](DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_instance_preset**](DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_namespaced_virtual_machine_snapshot**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**restart**](DefaultApi.md#restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | [**start**](DefaultApi.md#start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | [**stop**](DefaultApi.md#stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | @@ -71,11 +89,15 @@ Method | HTTP request | Description [**watch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | [**watch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | [**watch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +[**watch_namespaced_virtual_machine_snapshot**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | +[**watch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | [**watch_virtual_machine_instance_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstances | [**watch_virtual_machine_instance_migration_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancemigrations | [**watch_virtual_machine_instance_preset_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancepresets | [**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancereplicasets | [**watch_virtual_machine_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachines | +[**watch_virtual_machine_snapshot_content_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_snapshot_content_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshotcontents | +[**watch_virtual_machine_snapshot_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_snapshot_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshots | # **check_health** @@ -414,6 +436,104 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **create_namespaced_virtual_machine_snapshot** +> V1alpha1VirtualMachineSnapshot create_namespaced_virtual_machine_snapshot(body, namespace) + + + +Create a VirtualMachineSnapshot object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +body = kubevirt.V1alpha1VirtualMachineSnapshot() # V1alpha1VirtualMachineSnapshot | +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.create_namespaced_virtual_machine_snapshot(body, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->create_namespaced_virtual_machine_snapshot: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1alpha1VirtualMachineSnapshot**](V1alpha1VirtualMachineSnapshot.md)| | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +[**V1alpha1VirtualMachineSnapshot**](V1alpha1VirtualMachineSnapshot.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_virtual_machine_snapshot_content** +> V1alpha1VirtualMachineSnapshotContent create_namespaced_virtual_machine_snapshot_content(body, namespace) + + + +Create a VirtualMachineSnapshotContent object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +body = kubevirt.V1alpha1VirtualMachineSnapshotContent() # V1alpha1VirtualMachineSnapshotContent | +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.create_namespaced_virtual_machine_snapshot_content(body, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->create_namespaced_virtual_machine_snapshot_content: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1alpha1VirtualMachineSnapshotContent**](V1alpha1VirtualMachineSnapshotContent.md)| | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +[**V1alpha1VirtualMachineSnapshotContent**](V1alpha1VirtualMachineSnapshotContent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_collection_namespaced_virtual_machine** > V1Status delete_collection_namespaced_virtual_machine(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -719,6 +839,128 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_collection_namespaced_virtual_machine_snapshot** +> V1Status delete_collection_namespaced_virtual_machine_snapshot(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Delete a collection of VirtualMachineSnapshot objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_namespaced_virtual_machine_snapshot(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_snapshot: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_namespaced_virtual_machine_snapshot_content** +> V1Status delete_collection_namespaced_virtual_machine_snapshot_content(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Delete a collection of VirtualMachineSnapshotContent objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_namespaced_virtual_machine_snapshot_content(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_snapshot_content: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_namespaced_virtual_machine** > V1Status delete_namespaced_virtual_machine(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -1004,12 +1246,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **filesystemlist** -> V1VirtualMachineInstanceFileSystemList filesystemlist() +# **delete_namespaced_virtual_machine_snapshot** +> V1Status delete_namespaced_virtual_machine_snapshot(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) -Get list of active filesystems on guest machine via guest agent +Delete a VirtualMachineSnapshot object. ### Example ```python @@ -1021,20 +1263,34 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1DeleteOptions() # V1DeleteOptions | +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) try: - api_response = api_instance.filesystemlist() + api_response = api_instance.delete_namespaced_virtual_machine_snapshot(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->filesystemlist: %s\n" % e) + print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_snapshot: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] ### Return type -[**V1VirtualMachineInstanceFileSystemList**](V1VirtualMachineInstanceFileSystemList.md) +[**V1Status**](V1Status.md) ### Authorization @@ -1042,15 +1298,17 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **func7** -> func7() +# **delete_namespaced_virtual_machine_snapshot_content** +> V1Status delete_namespaced_virtual_machine_snapshot_content(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + +Delete a VirtualMachineSnapshotContent object. ### Example ```python @@ -1062,19 +1320,34 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1DeleteOptions() # V1DeleteOptions | +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) try: - api_instance.func7() + api_response = api_instance.delete_namespaced_virtual_machine_snapshot_content(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->func7: %s\n" % e) + print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_snapshot_content: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] ### Return type -void (empty response body) +[**V1Status**](V1Status.md) ### Authorization @@ -1082,17 +1355,17 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_api_group** -> V1APIGroup get_api_group() +# **filesystemlist** +> V1VirtualMachineInstanceFileSystemList filesystemlist() -Get a KubeVirt API group +Get list of active filesystems on guest machine via guest agent ### Example ```python @@ -1106,10 +1379,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() try: - api_response = api_instance.get_api_group() + api_response = api_instance.filesystemlist() pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->get_api_group: %s\n" % e) + print("Exception when calling DefaultApi->filesystemlist: %s\n" % e) ``` ### Parameters @@ -1117,7 +1390,90 @@ This endpoint does not need any parameter. ### Return type -[**V1APIGroup**](V1APIGroup.md) +[**V1VirtualMachineInstanceFileSystemList**](V1VirtualMachineInstanceFileSystemList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **func7** +> func7() + + + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_instance.func7() +except ApiException as e: + print("Exception when calling DefaultApi->func7: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_api_group_kubevirt_io** +> V1APIGroup get_api_group_kubevirt_io() + + + +Get a KubeVirt API group + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.get_api_group_kubevirt_io() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->get_api_group_kubevirt_io: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIGroup**](V1APIGroup.md) ### Authorization @@ -1173,8 +1529,51 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_api_resources** -> V1APIResourceList get_api_resources() +# **get_api_group_snapshot_kubevirt_io** +> V1APIGroup get_api_group_snapshot_kubevirt_io() + + + +Get a KubeVirt API group + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.get_api_group_snapshot_kubevirt_io() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->get_api_group_snapshot_kubevirt_io: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIGroup**](V1APIGroup.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_api_resources_kubevirt_io_v1alpha3** +> V1APIResourceList get_api_resources_kubevirt_io_v1alpha3() @@ -1192,10 +1591,53 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() try: - api_response = api_instance.get_api_resources() + api_response = api_instance.get_api_resources_kubevirt_io_v1alpha3() pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->get_api_resources: %s\n" % e) + print("Exception when calling DefaultApi->get_api_resources_kubevirt_io_v1alpha3: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_api_resources_snapshot_kubevirt_io_v1alpha1** +> V1APIResourceList get_api_resources_snapshot_kubevirt_io_v1alpha1() + + + +Get KubeVirt API Resources + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.get_api_resources_snapshot_kubevirt_io_v1alpha1() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->get_api_resources_snapshot_kubevirt_io_v1alpha1: %s\n" % e) ``` ### Parameters @@ -1709,6 +2151,132 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **list_namespaced_virtual_machine_snapshot** +> V1alpha1VirtualMachineSnapshotList list_namespaced_virtual_machine_snapshot(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Get a list of VirtualMachineSnapshot objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_virtual_machine_snapshot(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->list_namespaced_virtual_machine_snapshot: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1VirtualMachineSnapshotList**](V1alpha1VirtualMachineSnapshotList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_virtual_machine_snapshot_content** +> V1alpha1VirtualMachineSnapshotContentList list_namespaced_virtual_machine_snapshot_content(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Get a list of VirtualMachineSnapshotContent objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_virtual_machine_snapshot_content(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->list_namespaced_virtual_machine_snapshot_content: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1VirtualMachineSnapshotContentList**](V1alpha1VirtualMachineSnapshotContentList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **list_virtual_machine_for_all_namespaces** > V1VirtualMachineList list_virtual_machine_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -2014,6 +2582,128 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **list_virtual_machine_snapshot_content_for_all_namespaces** +> V1alpha1VirtualMachineSnapshotContentList list_virtual_machine_snapshot_content_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Get a list of all VirtualMachineSnapshotContent objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_virtual_machine_snapshot_content_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->list_virtual_machine_snapshot_content_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1VirtualMachineSnapshotContentList**](V1alpha1VirtualMachineSnapshotContentList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_virtual_machine_snapshot_for_all_namespaces** +> V1alpha1VirtualMachineSnapshotList list_virtual_machine_snapshot_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Get a list of all VirtualMachineSnapshot objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_virtual_machine_snapshot_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->list_virtual_machine_snapshot_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1VirtualMachineSnapshotList**](V1alpha1VirtualMachineSnapshotList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **migrate** > str migrate(name, namespace) @@ -2035,10 +2725,111 @@ name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - api_response = api_instance.migrate(name, namespace) + api_response = api_instance.migrate(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->migrate: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_virtual_machine** +> V1VirtualMachine patch_namespaced_virtual_machine(name, namespace, body) + + + +Patch a VirtualMachine object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1Patch() # V1Patch | + +try: + api_response = api_instance.patch_namespaced_virtual_machine(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->patch_namespaced_virtual_machine: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1Patch**](V1Patch.md)| | + +### Return type + +[**V1VirtualMachine**](V1VirtualMachine.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_virtual_machine_instance** +> V1VirtualMachineInstance patch_namespaced_virtual_machine_instance(name, namespace, body) + + + +Patch a VirtualMachineInstance object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1Patch() # V1Patch | + +try: + api_response = api_instance.patch_namespaced_virtual_machine_instance(name, namespace, body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->migrate: %s\n" % e) + print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instance: %s\n" % e) ``` ### Parameters @@ -2047,10 +2838,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1Patch**](V1Patch.md)| | ### Return type -**str** +[**V1VirtualMachineInstance**](V1VirtualMachineInstance.md) ### Authorization @@ -2058,17 +2850,17 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: Not defined + - **Content-Type**: application/json-patch+json, application/merge-patch+json + - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_virtual_machine** -> V1VirtualMachine patch_namespaced_virtual_machine(name, namespace, body) +# **patch_namespaced_virtual_machine_instance_migration** +> V1VirtualMachineInstanceMigration patch_namespaced_virtual_machine_instance_migration(name, namespace, body) -Patch a VirtualMachine object. +Patch a VirtualMachineInstanceMigration object. ### Example ```python @@ -2085,10 +2877,10 @@ namespace = 'namespace_example' # str | Object name and auth scope, such as for body = kubevirt.V1Patch() # V1Patch | try: - api_response = api_instance.patch_namespaced_virtual_machine(name, namespace, body) + api_response = api_instance.patch_namespaced_virtual_machine_instance_migration(name, namespace, body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->patch_namespaced_virtual_machine: %s\n" % e) + print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instance_migration: %s\n" % e) ``` ### Parameters @@ -2101,7 +2893,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachine**](V1VirtualMachine.md) +[**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.md) ### Authorization @@ -2114,12 +2906,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_virtual_machine_instance** -> V1VirtualMachineInstance patch_namespaced_virtual_machine_instance(name, namespace, body) +# **patch_namespaced_virtual_machine_instance_preset** +> V1VirtualMachineInstancePreset patch_namespaced_virtual_machine_instance_preset(name, namespace, body) -Patch a VirtualMachineInstance object. +Patch a VirtualMachineInstancePreset object. ### Example ```python @@ -2136,10 +2928,10 @@ namespace = 'namespace_example' # str | Object name and auth scope, such as for body = kubevirt.V1Patch() # V1Patch | try: - api_response = api_instance.patch_namespaced_virtual_machine_instance(name, namespace, body) + api_response = api_instance.patch_namespaced_virtual_machine_instance_preset(name, namespace, body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instance: %s\n" % e) + print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instance_preset: %s\n" % e) ``` ### Parameters @@ -2152,7 +2944,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstance**](V1VirtualMachineInstance.md) +[**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md) ### Authorization @@ -2165,12 +2957,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_virtual_machine_instance_migration** -> V1VirtualMachineInstanceMigration patch_namespaced_virtual_machine_instance_migration(name, namespace, body) +# **patch_namespaced_virtual_machine_instance_replica_set** +> V1VirtualMachineInstanceReplicaSet patch_namespaced_virtual_machine_instance_replica_set(name, namespace, body) -Patch a VirtualMachineInstanceMigration object. +Patch a VirtualMachineInstanceReplicaSet object. ### Example ```python @@ -2187,10 +2979,10 @@ namespace = 'namespace_example' # str | Object name and auth scope, such as for body = kubevirt.V1Patch() # V1Patch | try: - api_response = api_instance.patch_namespaced_virtual_machine_instance_migration(name, namespace, body) + api_response = api_instance.patch_namespaced_virtual_machine_instance_replica_set(name, namespace, body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instance_migration: %s\n" % e) + print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instance_replica_set: %s\n" % e) ``` ### Parameters @@ -2203,7 +2995,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.md) +[**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md) ### Authorization @@ -2216,12 +3008,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_virtual_machine_instance_preset** -> V1VirtualMachineInstancePreset patch_namespaced_virtual_machine_instance_preset(name, namespace, body) +# **patch_namespaced_virtual_machine_snapshot** +> V1alpha1VirtualMachineSnapshot patch_namespaced_virtual_machine_snapshot(name, namespace, body) -Patch a VirtualMachineInstancePreset object. +Patch a VirtualMachineSnapshot object. ### Example ```python @@ -2238,10 +3030,10 @@ namespace = 'namespace_example' # str | Object name and auth scope, such as for body = kubevirt.V1Patch() # V1Patch | try: - api_response = api_instance.patch_namespaced_virtual_machine_instance_preset(name, namespace, body) + api_response = api_instance.patch_namespaced_virtual_machine_snapshot(name, namespace, body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instance_preset: %s\n" % e) + print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_snapshot: %s\n" % e) ``` ### Parameters @@ -2254,7 +3046,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md) +[**V1alpha1VirtualMachineSnapshot**](V1alpha1VirtualMachineSnapshot.md) ### Authorization @@ -2267,12 +3059,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_virtual_machine_instance_replica_set** -> V1VirtualMachineInstanceReplicaSet patch_namespaced_virtual_machine_instance_replica_set(name, namespace, body) +# **patch_namespaced_virtual_machine_snapshot_content** +> V1alpha1VirtualMachineSnapshotContent patch_namespaced_virtual_machine_snapshot_content(name, namespace, body) -Patch a VirtualMachineInstanceReplicaSet object. +Patch a VirtualMachineSnapshotContent object. ### Example ```python @@ -2289,10 +3081,10 @@ namespace = 'namespace_example' # str | Object name and auth scope, such as for body = kubevirt.V1Patch() # V1Patch | try: - api_response = api_instance.patch_namespaced_virtual_machine_instance_replica_set(name, namespace, body) + api_response = api_instance.patch_namespaced_virtual_machine_snapshot_content(name, namespace, body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instance_replica_set: %s\n" % e) + print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_snapshot_content: %s\n" % e) ``` ### Parameters @@ -2305,7 +3097,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md) +[**V1alpha1VirtualMachineSnapshotContent**](V1alpha1VirtualMachineSnapshotContent.md) ### Authorization @@ -2632,6 +3424,112 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **read_namespaced_virtual_machine_snapshot** +> V1alpha1VirtualMachineSnapshot read_namespaced_virtual_machine_snapshot(name, namespace, exact=exact, export=export) + + + +Get a VirtualMachineSnapshot object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_namespaced_virtual_machine_snapshot(name, namespace, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->read_namespaced_virtual_machine_snapshot: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1alpha1VirtualMachineSnapshot**](V1alpha1VirtualMachineSnapshot.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_virtual_machine_snapshot_content** +> V1alpha1VirtualMachineSnapshotContent read_namespaced_virtual_machine_snapshot_content(name, namespace, exact=exact, export=export) + + + +Get a VirtualMachineSnapshotContent object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_namespaced_virtual_machine_snapshot_content(name, namespace, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->read_namespaced_virtual_machine_snapshot_content: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1alpha1VirtualMachineSnapshotContent**](V1alpha1VirtualMachineSnapshotContent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **rename** > str rename(name, namespace) @@ -2788,7 +3686,109 @@ No authorization required -Update a VirtualMachineInstanceMigration object. +Update a VirtualMachineInstanceMigration object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1VirtualMachineInstanceMigration() # V1VirtualMachineInstanceMigration | + +try: + api_response = api_instance.replace_namespaced_virtual_machine_instance_migration(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_instance_migration: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.md)| | + +### Return type + +[**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_virtual_machine_instance_preset** +> V1VirtualMachineInstancePreset replace_namespaced_virtual_machine_instance_preset(name, namespace, body) + + + +Update a VirtualMachineInstancePreset object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1VirtualMachineInstancePreset() # V1VirtualMachineInstancePreset | + +try: + api_response = api_instance.replace_namespaced_virtual_machine_instance_preset(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_instance_preset: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md)| | + +### Return type + +[**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_virtual_machine_instance_replica_set** +> V1VirtualMachineInstanceReplicaSet replace_namespaced_virtual_machine_instance_replica_set(name, namespace, body) + + + +Update a VirtualMachineInstanceReplicaSet object. ### Example ```python @@ -2802,13 +3802,13 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1VirtualMachineInstanceMigration() # V1VirtualMachineInstanceMigration | +body = kubevirt.V1VirtualMachineInstanceReplicaSet() # V1VirtualMachineInstanceReplicaSet | try: - api_response = api_instance.replace_namespaced_virtual_machine_instance_migration(name, namespace, body) + api_response = api_instance.replace_namespaced_virtual_machine_instance_replica_set(name, namespace, body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_instance_migration: %s\n" % e) + print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_instance_replica_set: %s\n" % e) ``` ### Parameters @@ -2817,11 +3817,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.md)| | + **body** | [**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md)| | ### Return type -[**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.md) +[**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md) ### Authorization @@ -2834,12 +3834,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_namespaced_virtual_machine_instance_preset** -> V1VirtualMachineInstancePreset replace_namespaced_virtual_machine_instance_preset(name, namespace, body) +# **replace_namespaced_virtual_machine_snapshot** +> V1alpha1VirtualMachineSnapshot replace_namespaced_virtual_machine_snapshot(name, namespace, body) -Update a VirtualMachineInstancePreset object. +Update a VirtualMachineSnapshot object. ### Example ```python @@ -2853,13 +3853,13 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1VirtualMachineInstancePreset() # V1VirtualMachineInstancePreset | +body = kubevirt.V1alpha1VirtualMachineSnapshot() # V1alpha1VirtualMachineSnapshot | try: - api_response = api_instance.replace_namespaced_virtual_machine_instance_preset(name, namespace, body) + api_response = api_instance.replace_namespaced_virtual_machine_snapshot(name, namespace, body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_instance_preset: %s\n" % e) + print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_snapshot: %s\n" % e) ``` ### Parameters @@ -2868,11 +3868,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md)| | + **body** | [**V1alpha1VirtualMachineSnapshot**](V1alpha1VirtualMachineSnapshot.md)| | ### Return type -[**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md) +[**V1alpha1VirtualMachineSnapshot**](V1alpha1VirtualMachineSnapshot.md) ### Authorization @@ -2885,12 +3885,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_namespaced_virtual_machine_instance_replica_set** -> V1VirtualMachineInstanceReplicaSet replace_namespaced_virtual_machine_instance_replica_set(name, namespace, body) +# **replace_namespaced_virtual_machine_snapshot_content** +> V1alpha1VirtualMachineSnapshotContent replace_namespaced_virtual_machine_snapshot_content(name, namespace, body) -Update a VirtualMachineInstanceReplicaSet object. +Update a VirtualMachineSnapshotContent object. ### Example ```python @@ -2904,13 +3904,13 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1VirtualMachineInstanceReplicaSet() # V1VirtualMachineInstanceReplicaSet | +body = kubevirt.V1alpha1VirtualMachineSnapshotContent() # V1alpha1VirtualMachineSnapshotContent | try: - api_response = api_instance.replace_namespaced_virtual_machine_instance_replica_set(name, namespace, body) + api_response = api_instance.replace_namespaced_virtual_machine_snapshot_content(name, namespace, body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_instance_replica_set: %s\n" % e) + print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_snapshot_content: %s\n" % e) ``` ### Parameters @@ -2919,11 +3919,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md)| | + **body** | [**V1alpha1VirtualMachineSnapshotContent**](V1alpha1VirtualMachineSnapshotContent.md)| | ### Return type -[**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md) +[**V1alpha1VirtualMachineSnapshotContent**](V1alpha1VirtualMachineSnapshotContent.md) ### Authorization @@ -3628,6 +4628,132 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **watch_namespaced_virtual_machine_snapshot** +> V1WatchEvent watch_namespaced_virtual_machine_snapshot(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Watch a VirtualMachineSnapshot object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_namespaced_virtual_machine_snapshot(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->watch_namespaced_virtual_machine_snapshot: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_namespaced_virtual_machine_snapshot_content** +> V1WatchEvent watch_namespaced_virtual_machine_snapshot_content(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Watch a VirtualMachineSnapshotContent object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_namespaced_virtual_machine_snapshot_content(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->watch_namespaced_virtual_machine_snapshot_content: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **watch_virtual_machine_instance_list_for_all_namespaces** > V1WatchEvent watch_virtual_machine_instance_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -3933,3 +5059,125 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **watch_virtual_machine_snapshot_content_list_for_all_namespaces** +> V1WatchEvent watch_virtual_machine_snapshot_content_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Watch a VirtualMachineSnapshotContentList object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_virtual_machine_snapshot_content_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->watch_virtual_machine_snapshot_content_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_virtual_machine_snapshot_list_for_all_namespaces** +> V1WatchEvent watch_virtual_machine_snapshot_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Watch a VirtualMachineSnapshotList object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_virtual_machine_snapshot_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->watch_virtual_machine_snapshot_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/V1PersistentVolumeClaim.md b/docs/V1PersistentVolumeClaim.md new file mode 100644 index 00000000..bdfb3a9f --- /dev/null +++ b/docs/V1PersistentVolumeClaim.md @@ -0,0 +1,14 @@ +# V1PersistentVolumeClaim + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**spec** | [**V1PersistentVolumeClaimSpec**](V1PersistentVolumeClaimSpec.md) | Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] +**status** | [**V1PersistentVolumeClaimStatus**](V1PersistentVolumeClaimStatus.md) | Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PersistentVolumeClaimCondition.md b/docs/V1PersistentVolumeClaimCondition.md new file mode 100644 index 00000000..b70d7c39 --- /dev/null +++ b/docs/V1PersistentVolumeClaimCondition.md @@ -0,0 +1,13 @@ +# V1PersistentVolumeClaimCondition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | Human-readable message indicating details about last transition. | [optional] +**reason** | **str** | Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized. | [optional] +**status** | **str** | | +**type** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PersistentVolumeClaimStatus.md b/docs/V1PersistentVolumeClaimStatus.md new file mode 100644 index 00000000..27ffd55b --- /dev/null +++ b/docs/V1PersistentVolumeClaimStatus.md @@ -0,0 +1,13 @@ +# V1PersistentVolumeClaimStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_modes** | **list[str]** | AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] +**capacity** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Represents the actual resources of the underlying volume. | [optional] +**conditions** | [**list[V1PersistentVolumeClaimCondition]**](V1PersistentVolumeClaimCondition.md) | Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. | [optional] +**phase** | **str** | Phase represents the current phase of PersistentVolumeClaim. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineStatus.md b/docs/V1VirtualMachineStatus.md index 1bc287e6..736a2901 100644 --- a/docs/V1VirtualMachineStatus.md +++ b/docs/V1VirtualMachineStatus.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **conditions** | [**list[V1VirtualMachineCondition]**](V1VirtualMachineCondition.md) | Hold the state information of the VirtualMachine and its VirtualMachineInstance | [optional] **created** | **bool** | Created indicates if the virtual machine is created in the cluster | [optional] **ready** | **bool** | Ready indicates if the virtual machine is running and ready | [optional] +**snapshot_in_progress** | **str** | SnapshotInProgress is the name of the VirtualMachineSnapshot currently executing | [optional] **state_change_requests** | [**list[V1VirtualMachineStateChangeRequest]**](V1VirtualMachineStateChangeRequest.md) | StateChangeRequests indicates a list of actions that should be taken on a VMI e.g. stop a specific VMI then start a new one. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1SourceSpec.md b/docs/V1alpha1SourceSpec.md new file mode 100644 index 00000000..e251d5bc --- /dev/null +++ b/docs/V1alpha1SourceSpec.md @@ -0,0 +1,10 @@ +# V1alpha1SourceSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**virtual_machine** | [**V1VirtualMachine**](V1VirtualMachine.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineSnapshot.md b/docs/V1alpha1VirtualMachineSnapshot.md new file mode 100644 index 00000000..0e51bc3f --- /dev/null +++ b/docs/V1alpha1VirtualMachineSnapshot.md @@ -0,0 +1,14 @@ +# V1alpha1VirtualMachineSnapshot + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha1VirtualMachineSnapshotSpec**](V1alpha1VirtualMachineSnapshotSpec.md) | | +**status** | [**V1alpha1VirtualMachineSnapshotStatus**](V1alpha1VirtualMachineSnapshotStatus.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineSnapshotCondition.md b/docs/V1alpha1VirtualMachineSnapshotCondition.md new file mode 100644 index 00000000..3c9b43d4 --- /dev/null +++ b/docs/V1alpha1VirtualMachineSnapshotCondition.md @@ -0,0 +1,13 @@ +# V1alpha1VirtualMachineSnapshotCondition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | | [optional] +**reason** | **str** | | [optional] +**status** | **str** | | +**type** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineSnapshotContent.md b/docs/V1alpha1VirtualMachineSnapshotContent.md new file mode 100644 index 00000000..b3afa516 --- /dev/null +++ b/docs/V1alpha1VirtualMachineSnapshotContent.md @@ -0,0 +1,14 @@ +# V1alpha1VirtualMachineSnapshotContent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha1VirtualMachineSnapshotContentSpec**](V1alpha1VirtualMachineSnapshotContentSpec.md) | | +**status** | [**V1alpha1VirtualMachineSnapshotContentStatus**](V1alpha1VirtualMachineSnapshotContentStatus.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineSnapshotContentList.md b/docs/V1alpha1VirtualMachineSnapshotContentList.md new file mode 100644 index 00000000..fc58fc7c --- /dev/null +++ b/docs/V1alpha1VirtualMachineSnapshotContentList.md @@ -0,0 +1,13 @@ +# V1alpha1VirtualMachineSnapshotContentList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list[V1alpha1VirtualMachineSnapshotContent]**](V1alpha1VirtualMachineSnapshotContent.md) | | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineSnapshotContentSpec.md b/docs/V1alpha1VirtualMachineSnapshotContentSpec.md new file mode 100644 index 00000000..a1ea7ba9 --- /dev/null +++ b/docs/V1alpha1VirtualMachineSnapshotContentSpec.md @@ -0,0 +1,12 @@ +# V1alpha1VirtualMachineSnapshotContentSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**source** | [**V1alpha1SourceSpec**](V1alpha1SourceSpec.md) | | +**virtual_machine_snapshot_name** | **str** | | [optional] +**volume_backups** | [**list[V1alpha1VolumeBackup]**](V1alpha1VolumeBackup.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineSnapshotContentStatus.md b/docs/V1alpha1VirtualMachineSnapshotContentStatus.md new file mode 100644 index 00000000..a4555f86 --- /dev/null +++ b/docs/V1alpha1VirtualMachineSnapshotContentStatus.md @@ -0,0 +1,13 @@ +# V1alpha1VirtualMachineSnapshotContentStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**creation_time** | [**V1Time**](V1Time.md) | | [optional] +**error** | [**V1alpha1VirtualMachineSnapshotError**](V1alpha1VirtualMachineSnapshotError.md) | | [optional] +**ready_to_use** | **bool** | | [optional] +**volume_snapshot_status** | [**list[V1alpha1VolumeSnapshotStatus]**](V1alpha1VolumeSnapshotStatus.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineSnapshotError.md b/docs/V1alpha1VirtualMachineSnapshotError.md new file mode 100644 index 00000000..930f4a5b --- /dev/null +++ b/docs/V1alpha1VirtualMachineSnapshotError.md @@ -0,0 +1,11 @@ +# V1alpha1VirtualMachineSnapshotError + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | | [optional] +**time** | [**V1Time**](V1Time.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineSnapshotList.md b/docs/V1alpha1VirtualMachineSnapshotList.md new file mode 100644 index 00000000..022f7e28 --- /dev/null +++ b/docs/V1alpha1VirtualMachineSnapshotList.md @@ -0,0 +1,13 @@ +# V1alpha1VirtualMachineSnapshotList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list[V1alpha1VirtualMachineSnapshot]**](V1alpha1VirtualMachineSnapshot.md) | | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineSnapshotSpec.md b/docs/V1alpha1VirtualMachineSnapshotSpec.md new file mode 100644 index 00000000..09a0a60a --- /dev/null +++ b/docs/V1alpha1VirtualMachineSnapshotSpec.md @@ -0,0 +1,11 @@ +# V1alpha1VirtualMachineSnapshotSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**source** | [**V1TypedLocalObjectReference**](V1TypedLocalObjectReference.md) | | +**time** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineSnapshotStatus.md b/docs/V1alpha1VirtualMachineSnapshotStatus.md new file mode 100644 index 00000000..7817c25d --- /dev/null +++ b/docs/V1alpha1VirtualMachineSnapshotStatus.md @@ -0,0 +1,14 @@ +# V1alpha1VirtualMachineSnapshotStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**list[V1alpha1VirtualMachineSnapshotCondition]**](V1alpha1VirtualMachineSnapshotCondition.md) | | [optional] +**creation_time** | [**V1Time**](V1Time.md) | | [optional] +**error** | [**V1alpha1VirtualMachineSnapshotError**](V1alpha1VirtualMachineSnapshotError.md) | | [optional] +**ready_to_use** | **bool** | | [optional] +**virtual_machine_snapshot_content_name** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VolumeBackup.md b/docs/V1alpha1VolumeBackup.md new file mode 100644 index 00000000..0b5d17f5 --- /dev/null +++ b/docs/V1alpha1VolumeBackup.md @@ -0,0 +1,12 @@ +# V1alpha1VolumeBackup + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disk_name** | **str** | | +**persistent_volume_claim** | [**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md) | | +**volume_snapshot_name** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VolumeSnapshotStatus.md b/docs/V1alpha1VolumeSnapshotStatus.md new file mode 100644 index 00000000..0e7ba837 --- /dev/null +++ b/docs/V1alpha1VolumeSnapshotStatus.md @@ -0,0 +1,13 @@ +# V1alpha1VolumeSnapshotStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**creation_time** | [**V1Time**](V1Time.md) | | [optional] +**error** | [**V1alpha1VirtualMachineSnapshotError**](V1alpha1VirtualMachineSnapshotError.md) | | [optional] +**ready_to_use** | **bool** | | [optional] +**volume_snapshot_name** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 09fb6eef..4b74ce96 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.29.0-149-gbe8e8985" + release_note="Auto-generated client v0.30.0-36-gc5656f9e" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index bc6a3c5d..01180ee9 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -3,6 +3,8 @@ [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=Last time we probed the condition., DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=Last time the condition transitioned from one status to another., DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} @@ -12,6 +14,8 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] INFO io.swagger.codegen.ignore.CodegenIgnoreProcessor - No .swagger-codegen-ignore file found. [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default appVersion set to 1.0.0 [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default version set to 1.0.0 @@ -237,9 +241,18 @@ 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_patch.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_patch.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Patch.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_persistent_volume_claim.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_persistent_volume_claim.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PersistentVolumeClaim.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_persistent_volume_claim_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_persistent_volume_claim_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PersistentVolumeClaimCondition.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_persistent_volume_claim_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_persistent_volume_claim_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PersistentVolumeClaimSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_persistent_volume_claim_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_persistent_volume_claim_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PersistentVolumeClaimStatus.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_persistent_volume_claim_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_persistent_volume_claim_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PersistentVolumeClaimVolumeSource.md @@ -465,6 +478,45 @@ 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/v1alpha1_data_volume_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_source_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_source_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1SourceSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_snapshot.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_snapshot.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineSnapshot.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_snapshot_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_snapshot_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineSnapshotCondition.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_snapshot_content.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_snapshot_content.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineSnapshotContent.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_snapshot_content_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineSnapshotContentList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_snapshot_content_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineSnapshotContentSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_snapshot_content_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineSnapshotContentStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_snapshot_error.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_snapshot_error.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineSnapshotError.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_snapshot_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_snapshot_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineSnapshotList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_snapshot_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_snapshot_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineSnapshotSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_snapshot_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineSnapshotStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_volume_backup.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_volume_backup.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VolumeBackup.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_volume_snapshot_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_volume_snapshot_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VolumeSnapshotStatus.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_default_api.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/DefaultApi.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index aafe66fa..a08c061a 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -88,7 +88,10 @@ from .models.v1_owner_reference import V1OwnerReference from .models.v1_pit_timer import V1PITTimer from .models.v1_patch import V1Patch +from .models.v1_persistent_volume_claim import V1PersistentVolumeClaim +from .models.v1_persistent_volume_claim_condition import V1PersistentVolumeClaimCondition from .models.v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec +from .models.v1_persistent_volume_claim_status import V1PersistentVolumeClaimStatus from .models.v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource from .models.v1_pod_affinity import V1PodAffinity from .models.v1_pod_affinity_term import V1PodAffinityTerm @@ -164,6 +167,19 @@ from .models.v1alpha1_data_volume_source_upload import V1alpha1DataVolumeSourceUpload from .models.v1alpha1_data_volume_spec import V1alpha1DataVolumeSpec from .models.v1alpha1_data_volume_status import V1alpha1DataVolumeStatus +from .models.v1alpha1_source_spec import V1alpha1SourceSpec +from .models.v1alpha1_virtual_machine_snapshot import V1alpha1VirtualMachineSnapshot +from .models.v1alpha1_virtual_machine_snapshot_condition import V1alpha1VirtualMachineSnapshotCondition +from .models.v1alpha1_virtual_machine_snapshot_content import V1alpha1VirtualMachineSnapshotContent +from .models.v1alpha1_virtual_machine_snapshot_content_list import V1alpha1VirtualMachineSnapshotContentList +from .models.v1alpha1_virtual_machine_snapshot_content_spec import V1alpha1VirtualMachineSnapshotContentSpec +from .models.v1alpha1_virtual_machine_snapshot_content_status import V1alpha1VirtualMachineSnapshotContentStatus +from .models.v1alpha1_virtual_machine_snapshot_error import V1alpha1VirtualMachineSnapshotError +from .models.v1alpha1_virtual_machine_snapshot_list import V1alpha1VirtualMachineSnapshotList +from .models.v1alpha1_virtual_machine_snapshot_spec import V1alpha1VirtualMachineSnapshotSpec +from .models.v1alpha1_virtual_machine_snapshot_status import V1alpha1VirtualMachineSnapshotStatus +from .models.v1alpha1_volume_backup import V1alpha1VolumeBackup +from .models.v1alpha1_volume_snapshot_status import V1alpha1VolumeSnapshotStatus # import apis into sdk package from .apis.default_api import DefaultApi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 66909576..9ce80eae 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.29.0-149-gbe8e8985/python' + self.user_agent = 'Swagger-Codegen/v0.30.0-36-gc5656f9e/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 3f621749..b0ec6940 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -794,6 +794,228 @@ def create_namespaced_virtual_machine_instance_replica_set_with_http_info(self, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def create_namespaced_virtual_machine_snapshot(self, body, namespace, **kwargs): + """ + Create a VirtualMachineSnapshot object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_virtual_machine_snapshot(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1VirtualMachineSnapshot body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1alpha1VirtualMachineSnapshot + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_virtual_machine_snapshot_with_http_info(body, namespace, **kwargs) + else: + (data) = self.create_namespaced_virtual_machine_snapshot_with_http_info(body, namespace, **kwargs) + return data + + def create_namespaced_virtual_machine_snapshot_with_http_info(self, body, namespace, **kwargs): + """ + Create a VirtualMachineSnapshot object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_virtual_machine_snapshot_with_http_info(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1VirtualMachineSnapshot body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1alpha1VirtualMachineSnapshot + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_virtual_machine_snapshot" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine_snapshot`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_snapshot`") + + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineSnapshot', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_virtual_machine_snapshot_content(self, body, namespace, **kwargs): + """ + Create a VirtualMachineSnapshotContent object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_virtual_machine_snapshot_content(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1VirtualMachineSnapshotContent body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1alpha1VirtualMachineSnapshotContent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_virtual_machine_snapshot_content_with_http_info(body, namespace, **kwargs) + else: + (data) = self.create_namespaced_virtual_machine_snapshot_content_with_http_info(body, namespace, **kwargs) + return data + + def create_namespaced_virtual_machine_snapshot_content_with_http_info(self, body, namespace, **kwargs): + """ + Create a VirtualMachineSnapshotContent object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_virtual_machine_snapshot_content_with_http_info(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1VirtualMachineSnapshotContent body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1alpha1VirtualMachineSnapshotContent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_virtual_machine_snapshot_content" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine_snapshot_content`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_snapshot_content`") + + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineSnapshotContent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def delete_collection_namespaced_virtual_machine(self, **kwargs): """ Delete a collection of VirtualMachine objects. @@ -1419,61 +1641,65 @@ def delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_ _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_virtual_machine_snapshot(self, **kwargs): """ - Delete a VirtualMachine object. + Delete a collection of VirtualMachineSnapshot objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_snapshot(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + return self.delete_collection_namespaced_virtual_machine_snapshot_with_http_info(**kwargs) else: - (data) = self.delete_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_snapshot_with_http_info(**kwargs) return data - def delete_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_virtual_machine_snapshot_with_http_info(self, **kwargs): """ - Delete a VirtualMachine object. + Delete a collection of VirtualMachineSnapshot objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_snapshot_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1484,57 +1710,48 @@ def delete_namespaced_virtual_machine_with_http_info(self, name, namespace, body if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine" % key + " to method delete_collection_namespaced_virtual_machine_snapshot" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine`") collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots', 'DELETE', path_params, query_params, header_params, @@ -1549,61 +1766,65 @@ def delete_namespaced_virtual_machine_with_http_info(self, name, namespace, body _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_virtual_machine_snapshot_content(self, **kwargs): """ - Delete a VirtualMachineInstance object. + Delete a collection of VirtualMachineSnapshotContent objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_snapshot_content(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + return self.delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info(**kwargs) else: - (data) = self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info(**kwargs) return data - def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info(self, **kwargs): """ - Delete a VirtualMachineInstance object. + Delete a collection of VirtualMachineSnapshotContent objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1614,36 +1835,33 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namesp if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_instance" % key + " to method delete_collection_namespaced_virtual_machine_snapshot_content" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance`") collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) header_params = {} @@ -1651,20 +1869,14 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namesp local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents', 'DELETE', path_params, query_params, header_params, @@ -1679,16 +1891,16 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namesp _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstanceMigration object. + Delete a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1704,21 +1916,21 @@ def delete_namespaced_virtual_machine_instance_migration(self, name, namespace, """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstanceMigration object. + Delete a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1744,19 +1956,19 @@ def delete_namespaced_virtual_machine_instance_migration_with_http_info(self, na if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_instance_migration" % key + " to method delete_namespaced_virtual_machine" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine`") collection_formats = {} @@ -1794,7 +2006,7 @@ def delete_namespaced_virtual_machine_instance_migration_with_http_info(self, na # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -1809,16 +2021,16 @@ def delete_namespaced_virtual_machine_instance_migration_with_http_info(self, na _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_instance_preset(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstancePreset object. + Delete a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_preset(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1834,21 +2046,21 @@ def delete_namespaced_virtual_machine_instance_preset(self, name, namespace, bod """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstancePreset object. + Delete a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1874,19 +2086,19 @@ def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, name, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_instance_preset" % key + " to method delete_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance`") collection_formats = {} @@ -1924,7 +2136,7 @@ def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, name, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -1939,16 +2151,16 @@ def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, name, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstanceReplicaSet object. + Delete a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1964,21 +2176,21 @@ def delete_namespaced_virtual_machine_instance_replica_set(self, name, namespace """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstanceReplicaSet object. + Delete a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2004,19 +2216,19 @@ def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_instance_replica_set" % key + " to method delete_namespaced_virtual_machine_instance_migration" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance_migration`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_migration`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_migration`") collection_formats = {} @@ -2054,7 +2266,7 @@ def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -2069,49 +2281,61 @@ def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def filesystemlist(self, **kwargs): + def delete_namespaced_virtual_machine_instance_preset(self, name, namespace, body, **kwargs): """ - Get list of active filesystems on guest machine via guest agent + Delete a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.filesystemlist(callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_preset(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1VirtualMachineInstanceFileSystemList + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.filesystemlist_with_http_info(**kwargs) + return self.delete_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.filesystemlist_with_http_info(**kwargs) + (data) = self.delete_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) return data - def filesystemlist_with_http_info(self, **kwargs): + def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, body, **kwargs): """ - Get list of active filesystems on guest machine via guest agent + Delete a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.filesystemlist_with_http_info(callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1VirtualMachineInstanceFileSystemList + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2122,16 +2346,36 @@ def filesystemlist_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method filesystemlist" % key + " to method delete_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance_preset`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_preset`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_preset`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] + if 'grace_period_seconds' in params: + query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) + if 'orphan_dependents' in params: + query_params.append(('orphanDependents', params['orphan_dependents'])) + if 'propagation_policy' in params: + query_params.append(('propagationPolicy', params['propagation_policy'])) header_params = {} @@ -2139,25 +2383,27 @@ def filesystemlist_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['application/json', 'application/yaml']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceFileSystemList', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2165,47 +2411,61 @@ def filesystemlist_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def func7(self, **kwargs): + def delete_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): """ + Delete a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.func7(callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.func7_with_http_info(**kwargs) + return self.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.func7_with_http_info(**kwargs) + (data) = self.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) return data - def func7_with_http_info(self, **kwargs): + def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): """ + Delete a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.func7_with_http_info(callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2216,16 +2476,36 @@ def func7_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method func7" % key + " to method delete_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance_replica_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_replica_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_replica_set`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] + if 'grace_period_seconds' in params: + query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) + if 'orphan_dependents' in params: + query_params.append(('orphanDependents', params['orphan_dependents'])) + if 'propagation_policy' in params: + query_params.append(('propagationPolicy', params['propagation_policy'])) header_params = {} @@ -2233,25 +2513,27 @@ def func7_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['application/json', 'application/yaml']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/openapi/v2', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2259,49 +2541,61 @@ def func7_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_group(self, **kwargs): + def delete_namespaced_virtual_machine_snapshot(self, name, namespace, body, **kwargs): """ - Get a KubeVirt API group + Delete a VirtualMachineSnapshot object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_group(callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_snapshot(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_group_with_http_info(**kwargs) + return self.delete_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.get_api_group_with_http_info(**kwargs) + (data) = self.delete_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) return data - def get_api_group_with_http_info(self, **kwargs): + def delete_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespace, body, **kwargs): """ - Get a KubeVirt API group + Delete a VirtualMachineSnapshot object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_group_with_http_info(callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2312,16 +2606,36 @@ def get_api_group_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_group" % key + " to method delete_namespaced_virtual_machine_snapshot" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_snapshot`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_snapshot`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_snapshot`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] + if 'grace_period_seconds' in params: + query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) + if 'orphan_dependents' in params: + query_params.append(('orphanDependents', params['orphan_dependents'])) + if 'propagation_policy' in params: + query_params.append(('propagationPolicy', params['propagation_policy'])) header_params = {} @@ -2329,21 +2643,27 @@ def get_api_group_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIGroup', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2351,49 +2671,61 @@ def get_api_group_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_group_list(self, **kwargs): + def delete_namespaced_virtual_machine_snapshot_content(self, name, namespace, body, **kwargs): """ - Get a KubeVirt API GroupList + Delete a VirtualMachineSnapshotContent object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_group_list(callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_snapshot_content(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroupList + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_group_list_with_http_info(**kwargs) + return self.delete_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.get_api_group_list_with_http_info(**kwargs) + (data) = self.delete_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) return data - def get_api_group_list_with_http_info(self, **kwargs): + def delete_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, namespace, body, **kwargs): """ - Get a KubeVirt API GroupList + Delete a VirtualMachineSnapshotContent object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_group_list_with_http_info(callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroupList + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2404,16 +2736,36 @@ def get_api_group_list_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_group_list" % key + " to method delete_namespaced_virtual_machine_snapshot_content" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_snapshot_content`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_snapshot_content`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_snapshot_content`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] + if 'grace_period_seconds' in params: + query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) + if 'orphan_dependents' in params: + query_params.append(('orphanDependents', params['orphan_dependents'])) + if 'propagation_policy' in params: + query_params.append(('propagationPolicy', params['propagation_policy'])) header_params = {} @@ -2421,21 +2773,27 @@ def get_api_group_list_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIGroupList', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2443,44 +2801,44 @@ def get_api_group_list_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_resources(self, **kwargs): + def filesystemlist(self, **kwargs): """ - Get KubeVirt API Resources + Get list of active filesystems on guest machine via guest agent This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources(callback=callback_function) + >>> thread = api.filesystemlist(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :return: V1VirtualMachineInstanceFileSystemList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_resources_with_http_info(**kwargs) + return self.filesystemlist_with_http_info(**kwargs) else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.filesystemlist_with_http_info(**kwargs) return data - def get_api_resources_with_http_info(self, **kwargs): + def filesystemlist_with_http_info(self, **kwargs): """ - Get KubeVirt API Resources + Get list of active filesystems on guest machine via guest agent This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_with_http_info(callback=callback_function) + >>> thread = api.filesystemlist_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :return: V1VirtualMachineInstanceFileSystemList If the method is called asynchronously, returns the request thread. """ @@ -2496,7 +2854,7 @@ def get_api_resources_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_resources" % key + " to method filesystemlist" % key ) params[key] = val del params['kwargs'] @@ -2517,17 +2875,21 @@ def get_api_resources_with_http_info(self, **kwargs): header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIResourceList', + response_type='V1VirtualMachineInstanceFileSystemList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2535,44 +2897,42 @@ def get_api_resources_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_sub_resources(self, **kwargs): + def func7(self, **kwargs): """ - Get a KubeVirt API resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_sub_resources(callback=callback_function) + >>> thread = api.func7(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_sub_resources_with_http_info(**kwargs) + return self.func7_with_http_info(**kwargs) else: - (data) = self.get_api_sub_resources_with_http_info(**kwargs) + (data) = self.func7_with_http_info(**kwargs) return data - def get_api_sub_resources_with_http_info(self, **kwargs): + def func7_with_http_info(self, **kwargs): """ - Get a KubeVirt API resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_sub_resources_with_http_info(callback=callback_function) + >>> thread = api.func7_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :return: None If the method is called asynchronously, returns the request thread. """ @@ -2588,7 +2948,7 @@ def get_api_sub_resources_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_sub_resources" % key + " to method func7" % key ) params[key] = val del params['kwargs'] @@ -2609,17 +2969,21 @@ def get_api_sub_resources_with_http_info(self, **kwargs): header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/', 'GET', + return self.api_client.call_api('/openapi/v2', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIResourceList', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2627,44 +2991,44 @@ def get_api_sub_resources_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_root_paths(self, **kwargs): + def get_api_group_kubevirt_io(self, **kwargs): """ - Get KubeVirt API root paths + Get a KubeVirt API group This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_root_paths(callback=callback_function) + >>> thread = api.get_api_group_kubevirt_io(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1RootPaths + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_root_paths_with_http_info(**kwargs) + return self.get_api_group_kubevirt_io_with_http_info(**kwargs) else: - (data) = self.get_root_paths_with_http_info(**kwargs) + (data) = self.get_api_group_kubevirt_io_with_http_info(**kwargs) return data - def get_root_paths_with_http_info(self, **kwargs): + def get_api_group_kubevirt_io_with_http_info(self, **kwargs): """ - Get KubeVirt API root paths + Get a KubeVirt API group This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_root_paths_with_http_info(callback=callback_function) + >>> thread = api.get_api_group_kubevirt_io_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1RootPaths + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -2680,7 +3044,7 @@ def get_root_paths_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_root_paths" % key + " to method get_api_group_kubevirt_io" % key ) params[key] = val del params['kwargs'] @@ -2704,14 +3068,14 @@ def get_root_paths_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1RootPaths', + response_type='V1APIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2719,44 +3083,44 @@ def get_root_paths_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_sub_api_group(self, **kwargs): + def get_api_group_list(self, **kwargs): """ - Get a KubeVirt API Group + Get a KubeVirt API GroupList This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_sub_api_group(callback=callback_function) + >>> thread = api.get_api_group_list(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :return: V1APIGroupList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_sub_api_group_with_http_info(**kwargs) + return self.get_api_group_list_with_http_info(**kwargs) else: - (data) = self.get_sub_api_group_with_http_info(**kwargs) + (data) = self.get_api_group_list_with_http_info(**kwargs) return data - def get_sub_api_group_with_http_info(self, **kwargs): + def get_api_group_list_with_http_info(self, **kwargs): """ - Get a KubeVirt API Group + Get a KubeVirt API GroupList This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_sub_api_group_with_http_info(callback=callback_function) + >>> thread = api.get_api_group_list_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :return: V1APIGroupList If the method is called asynchronously, returns the request thread. """ @@ -2772,7 +3136,7 @@ def get_sub_api_group_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_sub_api_group" % key + " to method get_api_group_list" % key ) params[key] = val del params['kwargs'] @@ -2796,14 +3160,14 @@ def get_sub_api_group_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io', 'GET', + return self.api_client.call_api('/apis', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIGroup', + response_type='V1APIGroupList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2811,53 +3175,49 @@ def get_sub_api_group_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def guestosinfo(self, name, namespace, **kwargs): + def get_api_group_snapshot_kubevirt_io(self, **kwargs): """ - Get guest agent os information + Get a KubeVirt API group This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.guestosinfo(name, namespace, callback=callback_function) + >>> thread = api.get_api_group_snapshot_kubevirt_io(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachineInstanceGuestAgentInfo + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.guestosinfo_with_http_info(name, namespace, **kwargs) + return self.get_api_group_snapshot_kubevirt_io_with_http_info(**kwargs) else: - (data) = self.guestosinfo_with_http_info(name, namespace, **kwargs) + (data) = self.get_api_group_snapshot_kubevirt_io_with_http_info(**kwargs) return data - def guestosinfo_with_http_info(self, name, namespace, **kwargs): + def get_api_group_snapshot_kubevirt_io_with_http_info(self, **kwargs): """ - Get guest agent os information + Get a KubeVirt API group This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.guestosinfo_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.get_api_group_snapshot_kubevirt_io_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachineInstanceGuestAgentInfo + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2868,25 +3228,14 @@ def guestosinfo_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method guestosinfo" % key + " to method get_api_group_snapshot_kubevirt_io" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `guestosinfo`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `guestosinfo`") - collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] @@ -2900,21 +3249,17 @@ def guestosinfo_with_http_info(self, name, namespace, **kwargs): header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceGuestAgentInfo', + response_type='V1APIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2922,67 +3267,49 @@ def guestosinfo_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine(self, namespace, **kwargs): + def get_api_resources_kubevirt_io_v1alpha3(self, **kwargs): """ - Get a list of VirtualMachine objects. + Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine(namespace, callback=callback_function) + >>> thread = api.get_api_resources_kubevirt_io_v1alpha3(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + return self.get_api_resources_kubevirt_io_v1alpha3_with_http_info(**kwargs) else: - (data) = self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + (data) = self.get_api_resources_kubevirt_io_v1alpha3_with_http_info(**kwargs) return data - def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): + def get_api_resources_kubevirt_io_v1alpha3_with_http_info(self, **kwargs): """ - Get a list of VirtualMachine objects. + Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_with_http_info(namespace, callback=callback_function) + >>> thread = api.get_api_resources_kubevirt_io_v1alpha3_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2993,38 +3320,16 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine" % key + " to method get_api_resources_kubevirt_io_v1alpha3" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine`") - collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'include_uninitialized' in params: - query_params.append(('includeUninitialized', params['include_uninitialized'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) header_params = {} @@ -3034,19 +3339,19 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineList', + response_type='V1APIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3054,67 +3359,49 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_instance(self, namespace, **kwargs): + def get_api_resources_snapshot_kubevirt_io_v1alpha1(self, **kwargs): """ - Get a list of VirtualMachineInstance objects. + Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance(namespace, callback=callback_function) + >>> thread = api.get_api_resources_snapshot_kubevirt_io_v1alpha1(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceList + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) + return self.get_api_resources_snapshot_kubevirt_io_v1alpha1_with_http_info(**kwargs) else: - (data) = self.list_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) + (data) = self.get_api_resources_snapshot_kubevirt_io_v1alpha1_with_http_info(**kwargs) return data - def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **kwargs): + def get_api_resources_snapshot_kubevirt_io_v1alpha1_with_http_info(self, **kwargs): """ - Get a list of VirtualMachineInstance objects. + Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_with_http_info(namespace, callback=callback_function) + >>> thread = api.get_api_resources_snapshot_kubevirt_io_v1alpha1_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceList + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3125,38 +3412,16 @@ def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_instance" % key + " to method get_api_resources_snapshot_kubevirt_io_v1alpha1" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance`") - collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'include_uninitialized' in params: - query_params.append(('includeUninitialized', params['include_uninitialized'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) header_params = {} @@ -3166,19 +3431,19 @@ def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **k body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceList', + response_type='V1APIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3186,67 +3451,49 @@ def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_instance_migration(self, namespace, **kwargs): + def get_api_sub_resources(self, **kwargs): """ - Get a list of VirtualMachineInstanceMigration objects. + Get a KubeVirt API resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_migration(namespace, callback=callback_function) + >>> thread = api.get_api_sub_resources(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceMigrationList + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) + return self.get_api_sub_resources_with_http_info(**kwargs) else: - (data) = self.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) + (data) = self.get_api_sub_resources_with_http_info(**kwargs) return data - def list_namespaced_virtual_machine_instance_migration_with_http_info(self, namespace, **kwargs): + def get_api_sub_resources_with_http_info(self, **kwargs): """ - Get a list of VirtualMachineInstanceMigration objects. + Get a KubeVirt API resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, callback=callback_function) + >>> thread = api.get_api_sub_resources_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceMigrationList + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3257,38 +3504,16 @@ def list_namespaced_virtual_machine_instance_migration_with_http_info(self, name if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_instance_migration" % key + " to method get_api_sub_resources" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_migration`") - collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'include_uninitialized' in params: - query_params.append(('includeUninitialized', params['include_uninitialized'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) header_params = {} @@ -3298,19 +3523,19 @@ def list_namespaced_virtual_machine_instance_migration_with_http_info(self, name body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceMigrationList', + response_type='V1APIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3318,67 +3543,49 @@ def list_namespaced_virtual_machine_instance_migration_with_http_info(self, name _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): + def get_root_paths(self, **kwargs): """ - Get a list of VirtualMachineInstancePreset objects. + Get KubeVirt API root paths This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_preset(namespace, callback=callback_function) + >>> thread = api.get_root_paths(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstancePresetList + :return: V1RootPaths If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) + return self.get_root_paths_with_http_info(**kwargs) else: - (data) = self.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) + (data) = self.get_root_paths_with_http_info(**kwargs) return data - def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespace, **kwargs): + def get_root_paths_with_http_info(self, **kwargs): """ - Get a list of VirtualMachineInstancePreset objects. + Get KubeVirt API root paths This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, callback=callback_function) + >>> thread = api.get_root_paths_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstancePresetList + :return: V1RootPaths If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3389,38 +3596,16 @@ def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_instance_preset" % key + " to method get_root_paths" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_preset`") - collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'include_uninitialized' in params: - query_params.append(('includeUninitialized', params['include_uninitialized'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) header_params = {} @@ -3430,19 +3615,19 @@ def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespa body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstancePresetList', + response_type='V1RootPaths', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3450,67 +3635,49 @@ def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwargs): + def get_sub_api_group(self, **kwargs): """ - Get a list of VirtualMachineInstanceReplicaSet objects. + Get a KubeVirt API Group This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_replica_set(namespace, callback=callback_function) + >>> thread = api.get_sub_api_group(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceReplicaSetList + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) + return self.get_sub_api_group_with_http_info(**kwargs) else: - (data) = self.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) + (data) = self.get_sub_api_group_with_http_info(**kwargs) return data - def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, namespace, **kwargs): + def get_sub_api_group_with_http_info(self, **kwargs): """ - Get a list of VirtualMachineInstanceReplicaSet objects. + Get a KubeVirt API Group This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, callback=callback_function) + >>> thread = api.get_sub_api_group_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceReplicaSetList + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3521,38 +3688,16 @@ def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_instance_replica_set" % key + " to method get_sub_api_group" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_replica_set`") - collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'include_uninitialized' in params: - query_params.append(('includeUninitialized', params['include_uninitialized'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) header_params = {} @@ -3562,19 +3707,19 @@ def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceReplicaSetList', + response_type='V1APIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3582,65 +3727,53 @@ def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_for_all_namespaces(self, **kwargs): + def guestosinfo(self, name, namespace, **kwargs): """ - Get a list of all VirtualMachine objects. + Get guest agent os information This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_for_all_namespaces(callback=callback_function) + >>> thread = api.guestosinfo(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1VirtualMachineInstanceGuestAgentInfo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_for_all_namespaces_with_http_info(**kwargs) + return self.guestosinfo_with_http_info(name, namespace, **kwargs) else: - (data) = self.list_virtual_machine_for_all_namespaces_with_http_info(**kwargs) + (data) = self.guestosinfo_with_http_info(name, namespace, **kwargs) return data - def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): + def guestosinfo_with_http_info(self, name, namespace, **kwargs): """ - Get a list of all VirtualMachine objects. + Get guest agent os information This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.guestosinfo_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1VirtualMachineInstanceGuestAgentInfo If the method is called asynchronously, returns the request thread. """ - all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3651,33 +3784,27 @@ def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_for_all_namespaces" % key + " to method guestosinfo" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `guestosinfo`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `guestosinfo`") collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'include_uninitialized' in params: - query_params.append(('includeUninitialized', params['include_uninitialized'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) header_params = {} @@ -3687,19 +3814,23 @@ def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/virtualmachines', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineList', + response_type='V1VirtualMachineInstanceGuestAgentInfo', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3707,19 +3838,20 @@ def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_instance_for_all_namespaces(self, **kwargs): + def list_namespaced_virtual_machine(self, namespace, **kwargs): """ - Get a list of all VirtualMachineInstance objects. + Get a list of VirtualMachine objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_for_all_namespaces(callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -3728,30 +3860,31 @@ def list_virtual_machine_instance_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceList + :return: V1VirtualMachineList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_instance_for_all_namespaces_with_http_info(**kwargs) + return self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) else: - (data) = self.list_virtual_machine_instance_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) return data - def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwargs): + def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): """ - Get a list of all VirtualMachineInstance objects. + Get a list of VirtualMachine objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -3760,12 +3893,12 @@ def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwar :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceList + :return: V1VirtualMachineList If the method is called asynchronously, returns the request thread. """ - all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3776,15 +3909,20 @@ def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwar if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_instance_for_all_namespaces" % key + " to method list_namespaced_virtual_machine" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine`") collection_formats = {} path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -3817,14 +3955,14 @@ def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwar # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/virtualmachineinstances', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceList', + response_type='V1VirtualMachineList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3832,19 +3970,20 @@ def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_instance_migration_for_all_namespaces(self, **kwargs): + def list_namespaced_virtual_machine_instance(self, namespace, **kwargs): """ - Get a list of all VirtualMachineInstanceMigration objects. + Get a list of VirtualMachineInstance objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_migration_for_all_namespaces(callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -3853,30 +3992,31 @@ def list_virtual_machine_instance_migration_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceMigrationList + :return: V1VirtualMachineInstanceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(**kwargs) + return self.list_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) else: - (data) = self.list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) return data - def list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(self, **kwargs): + def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **kwargs): """ - Get a list of all VirtualMachineInstanceMigration objects. + Get a list of VirtualMachineInstance objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -3885,12 +4025,12 @@ def list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(se :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceMigrationList + :return: V1VirtualMachineInstanceList If the method is called asynchronously, returns the request thread. """ - all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3901,15 +4041,20 @@ def list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(se if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_instance_migration_for_all_namespaces" % key + " to method list_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance`") collection_formats = {} path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -3942,14 +4087,14 @@ def list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(se # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/virtualmachineinstancemigrations', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceMigrationList', + response_type='V1VirtualMachineInstanceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3957,19 +4102,20 @@ def list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(se _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_instance_preset_for_all_namespaces(self, **kwargs): + def list_namespaced_virtual_machine_instance_migration(self, namespace, **kwargs): """ - Get a list of all VirtualMachineInstancePreset objects. + Get a list of VirtualMachineInstanceMigration objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_preset_for_all_namespaces(callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_migration(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -3978,30 +4124,31 @@ def list_virtual_machine_instance_preset_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstancePresetList + :return: V1VirtualMachineInstanceMigrationList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(**kwargs) + return self.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) else: - (data) = self.list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) return data - def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, **kwargs): + def list_namespaced_virtual_machine_instance_migration_with_http_info(self, namespace, **kwargs): """ - Get a list of all VirtualMachineInstancePreset objects. + Get a list of VirtualMachineInstanceMigration objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -4010,12 +4157,12 @@ def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstancePresetList + :return: V1VirtualMachineInstanceMigrationList If the method is called asynchronously, returns the request thread. """ - all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4026,15 +4173,20 @@ def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_instance_preset_for_all_namespaces" % key + " to method list_namespaced_virtual_machine_instance_migration" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_migration`") collection_formats = {} path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -4067,14 +4219,14 @@ def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstancePresetList', + response_type='V1VirtualMachineInstanceMigrationList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4082,19 +4234,20 @@ def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_instance_replica_set_for_all_namespaces(self, **kwargs): + def list_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): """ - Get a list of all VirtualMachineInstanceReplicaSet objects. + Get a list of VirtualMachineInstancePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_replica_set_for_all_namespaces(callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_preset(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -4103,30 +4256,31 @@ def list_virtual_machine_instance_replica_set_for_all_namespaces(self, **kwargs) :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceReplicaSetList + :return: V1VirtualMachineInstancePresetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(**kwargs) + return self.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) else: - (data) = self.list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) return data - def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(self, **kwargs): + def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespace, **kwargs): """ - Get a list of all VirtualMachineInstanceReplicaSet objects. + Get a list of VirtualMachineInstancePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -4135,12 +4289,12 @@ def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info( :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceReplicaSetList + :return: V1VirtualMachineInstancePresetList If the method is called asynchronously, returns the request thread. """ - all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4151,15 +4305,20 @@ def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info( if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_instance_replica_set_for_all_namespaces" % key + " to method list_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_preset`") collection_formats = {} path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -4192,14 +4351,14 @@ def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info( # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceReplicaSetList', + response_type='V1VirtualMachineInstancePresetList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4207,53 +4366,67 @@ def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info( _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def migrate(self, name, namespace, **kwargs): + def list_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwargs): """ - Migrate a running VirtualMachine to another node. + Get a list of VirtualMachineInstanceReplicaSet objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.migrate(name, namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_replica_set(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineInstanceReplicaSetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.migrate_with_http_info(name, namespace, **kwargs) + return self.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) else: - (data) = self.migrate_with_http_info(name, namespace, **kwargs) + (data) = self.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) return data - def migrate_with_http_info(self, name, namespace, **kwargs): + def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, namespace, **kwargs): """ - Migrate a running VirtualMachine to another node. + Get a list of VirtualMachineInstanceReplicaSet objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.migrate_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineInstanceReplicaSetList If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4264,27 +4437,38 @@ def migrate_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method migrate" % key + " to method list_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `migrate`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `migrate`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_replica_set`") collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) header_params = {} @@ -4292,17 +4476,21 @@ def migrate_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type='V1VirtualMachineInstanceReplicaSetList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4310,55 +4498,67 @@ def migrate_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine(self, name, namespace, body, **kwargs): + def list_namespaced_virtual_machine_snapshot(self, namespace, **kwargs): """ - Patch a VirtualMachine object. + Get a list of VirtualMachineSnapshot objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine(name, namespace, body, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_snapshot(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) - :return: V1VirtualMachine + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineSnapshotList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + return self.list_namespaced_virtual_machine_snapshot_with_http_info(namespace, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + (data) = self.list_namespaced_virtual_machine_snapshot_with_http_info(namespace, **kwargs) return data - def patch_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): + def list_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, **kwargs): """ - Patch a VirtualMachine object. + Get a list of VirtualMachineSnapshot objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_snapshot_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) - :return: V1VirtualMachine + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineSnapshotList If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4369,30 +4569,38 @@ def patch_namespaced_virtual_machine_with_http_info(self, name, namespace, body, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine" % key + " to method list_namespaced_virtual_machine_snapshot" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_snapshot`") collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) header_params = {} @@ -4400,27 +4608,21 @@ def patch_namespaced_virtual_machine_with_http_info(self, name, namespace, body, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachine', + response_type='V1alpha1VirtualMachineSnapshotList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4428,55 +4630,2441 @@ def patch_namespaced_virtual_machine_with_http_info(self, name, namespace, body, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): + def list_namespaced_virtual_machine_snapshot_content(self, namespace, **kwargs): """ - Patch a VirtualMachineInstance object. + Get a list of VirtualMachineSnapshotContent objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_snapshot_content(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) - :return: V1VirtualMachineInstance + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineSnapshotContentList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + return self.list_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + (data) = self.list_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, **kwargs) return data - def patch_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): + def list_namespaced_virtual_machine_snapshot_content_with_http_info(self, namespace, **kwargs): """ - Patch a VirtualMachineInstance object. + Get a list of VirtualMachineSnapshotContent objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) - :return: V1VirtualMachineInstance + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineSnapshotContentList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_virtual_machine_snapshot_content" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_snapshot_content`") + + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineSnapshotContentList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_virtual_machine_for_all_namespaces(self, **kwargs): + """ + Get a list of all VirtualMachine objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_virtual_machine_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_virtual_machine_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): + """ + Get a list of all VirtualMachine objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_virtual_machine_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/virtualmachines', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_virtual_machine_instance_for_all_namespaces(self, **kwargs): + """ + Get a list of all VirtualMachineInstance objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_instance_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineInstanceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_virtual_machine_instance_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_virtual_machine_instance_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwargs): + """ + Get a list of all VirtualMachineInstance objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_instance_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineInstanceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_virtual_machine_instance_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/virtualmachineinstances', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_virtual_machine_instance_migration_for_all_namespaces(self, **kwargs): + """ + Get a list of all VirtualMachineInstanceMigration objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_instance_migration_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineInstanceMigrationList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(self, **kwargs): + """ + Get a list of all VirtualMachineInstanceMigration objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineInstanceMigrationList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_virtual_machine_instance_migration_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/virtualmachineinstancemigrations', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceMigrationList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_virtual_machine_instance_preset_for_all_namespaces(self, **kwargs): + """ + Get a list of all VirtualMachineInstancePreset objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_instance_preset_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineInstancePresetList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, **kwargs): + """ + Get a list of all VirtualMachineInstancePreset objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineInstancePresetList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_virtual_machine_instance_preset_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/virtualmachineinstancepresets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstancePresetList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_virtual_machine_instance_replica_set_for_all_namespaces(self, **kwargs): + """ + Get a list of all VirtualMachineInstanceReplicaSet objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_instance_replica_set_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineInstanceReplicaSetList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(self, **kwargs): + """ + Get a list of all VirtualMachineInstanceReplicaSet objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineInstanceReplicaSetList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_virtual_machine_instance_replica_set_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/virtualmachineinstancereplicasets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceReplicaSetList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_virtual_machine_snapshot_content_for_all_namespaces(self, **kwargs): + """ + Get a list of all VirtualMachineSnapshotContent objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_snapshot_content_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineSnapshotContentList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(self, **kwargs): + """ + Get a list of all VirtualMachineSnapshotContent objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineSnapshotContentList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_virtual_machine_snapshot_content_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineSnapshotContentList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_virtual_machine_snapshot_for_all_namespaces(self, **kwargs): + """ + Get a list of all VirtualMachineSnapshot objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_snapshot_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineSnapshotList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_virtual_machine_snapshot_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_virtual_machine_snapshot_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_virtual_machine_snapshot_for_all_namespaces_with_http_info(self, **kwargs): + """ + Get a list of all VirtualMachineSnapshot objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_snapshot_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineSnapshotList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_virtual_machine_snapshot_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineSnapshotList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def migrate(self, name, namespace, **kwargs): + """ + Migrate a running VirtualMachine to another node. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.migrate(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.migrate_with_http_info(name, namespace, **kwargs) + else: + (data) = self.migrate_with_http_info(name, namespace, **kwargs) + return data + + def migrate_with_http_info(self, name, namespace, **kwargs): + """ + Migrate a running VirtualMachine to another node. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.migrate_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method migrate" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `migrate`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `migrate`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_virtual_machine(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) + :return: V1VirtualMachine + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) + :return: V1VirtualMachine + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_virtual_machine" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachine', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) + :return: V1VirtualMachineInstance + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) + :return: V1VirtualMachineInstance + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_virtual_machine_instance" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstance', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineInstanceMigration object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) + :return: V1VirtualMachineInstanceMigration + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineInstanceMigration object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) + :return: V1VirtualMachineInstanceMigration + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_virtual_machine_instance_migration" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_migration`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_migration`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_migration`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceMigration', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_virtual_machine_instance_preset(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineInstancePreset object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_instance_preset(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) + :return: V1VirtualMachineInstancePreset + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineInstancePreset object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) + :return: V1VirtualMachineInstancePreset + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_virtual_machine_instance_preset" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_preset`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_preset`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_preset`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstancePreset', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineInstanceReplicaSet object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) + :return: V1VirtualMachineInstanceReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineInstanceReplicaSet object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) + :return: V1VirtualMachineInstanceReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_virtual_machine_instance_replica_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_replica_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_replica_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_replica_set`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceReplicaSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_virtual_machine_snapshot(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineSnapshot object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_snapshot(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) + :return: V1alpha1VirtualMachineSnapshot + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineSnapshot object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) + :return: V1alpha1VirtualMachineSnapshot + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_virtual_machine_snapshot" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_snapshot`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_snapshot`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_snapshot`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineSnapshot', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_virtual_machine_snapshot_content(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineSnapshotContent object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_snapshot_content(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) + :return: V1alpha1VirtualMachineSnapshotContent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineSnapshotContent object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) + :return: V1alpha1VirtualMachineSnapshotContent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_virtual_machine_snapshot_content" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_snapshot_content`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_snapshot_content`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_snapshot_content`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineSnapshotContent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def pause(self, name, namespace, **kwargs): + """ + Pause a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.pause(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.pause_with_http_info(name, namespace, **kwargs) + else: + (data) = self.pause_with_http_info(name, namespace, **kwargs) + return data + + def pause_with_http_info(self, name, namespace, **kwargs): + """ + Pause a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.pause_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method pause" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `pause`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `pause`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_virtual_machine(self, name, namespace, **kwargs): + """ + Get a VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachine + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_virtual_machine_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_virtual_machine_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwargs): + """ + Get a VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachine + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_virtual_machine" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachine', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_virtual_machine_instance(self, name, namespace, **kwargs): + """ + Get a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_instance(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachineInstance + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, **kwargs): + """ + Get a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachineInstance + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_virtual_machine_instance" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstance', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_virtual_machine_instance_migration(self, name, namespace, **kwargs): + """ + Get a VirtualMachineInstanceMigration object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_instance_migration(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachineInstanceMigration + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, **kwargs): + """ + Get a VirtualMachineInstanceMigration object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachineInstanceMigration + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_virtual_machine_instance_migration" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance_migration`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_migration`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceMigration', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_virtual_machine_instance_preset(self, name, namespace, **kwargs): + """ + Get a VirtualMachineInstancePreset object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_instance_preset(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachineInstancePreset + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, **kwargs): + """ + Get a VirtualMachineInstancePreset object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4487,19 +7075,16 @@ def patch_namespaced_virtual_machine_instance_with_http_info(self, name, namespa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine_instance" % key + " to method read_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance_preset`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_preset`") collection_formats = {} @@ -4511,6 +7096,10 @@ def patch_namespaced_virtual_machine_instance_with_http_info(self, name, namespa path_params['namespace'] = params['namespace'] query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) header_params = {} @@ -4518,27 +7107,21 @@ def patch_namespaced_virtual_machine_instance_with_http_info(self, name, namespa local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstance', + response_type='V1VirtualMachineInstancePreset', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4546,55 +7129,57 @@ def patch_namespaced_virtual_machine_instance_with_http_info(self, name, namespa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): + def read_namespaced_virtual_machine_instance_replica_set(self, name, namespace, **kwargs): """ - Patch a VirtualMachineInstanceMigration object. + Get a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_instance_replica_set(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) - :return: V1VirtualMachineInstanceMigration + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, **kwargs): """ - Patch a VirtualMachineInstanceMigration object. + Get a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) - :return: V1VirtualMachineInstanceMigration + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4605,19 +7190,16 @@ def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine_instance_migration" % key + " to method read_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance_replica_set`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_migration`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_replica_set`") collection_formats = {} @@ -4629,6 +7211,10 @@ def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam path_params['namespace'] = params['namespace'] query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) header_params = {} @@ -4636,27 +7222,21 @@ def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceMigration', + response_type='V1VirtualMachineInstanceReplicaSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4664,55 +7244,57 @@ def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_instance_preset(self, name, namespace, body, **kwargs): + def read_namespaced_virtual_machine_snapshot(self, name, namespace, **kwargs): """ - Patch a VirtualMachineInstancePreset object. + Get a VirtualMachineSnapshot object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_preset(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_snapshot(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) - :return: V1VirtualMachineInstancePreset + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1VirtualMachineSnapshot If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespace, **kwargs): """ - Patch a VirtualMachineInstancePreset object. + Get a VirtualMachineSnapshot object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) - :return: V1VirtualMachineInstancePreset + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1VirtualMachineSnapshot If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4723,19 +7305,16 @@ def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine_instance_preset" % key + " to method read_namespaced_virtual_machine_snapshot" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_snapshot`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_preset`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_snapshot`") collection_formats = {} @@ -4747,6 +7326,10 @@ def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, path_params['namespace'] = params['namespace'] query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) header_params = {} @@ -4754,27 +7337,21 @@ def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstancePreset', + response_type='V1alpha1VirtualMachineSnapshot', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4782,55 +7359,57 @@ def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): + def read_namespaced_virtual_machine_snapshot_content(self, name, namespace, **kwargs): """ - Patch a VirtualMachineInstanceReplicaSet object. + Get a VirtualMachineSnapshotContent object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_snapshot_content(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) - :return: V1VirtualMachineInstanceReplicaSet + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1VirtualMachineSnapshotContent If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, namespace, **kwargs): """ - Patch a VirtualMachineInstanceReplicaSet object. + Get a VirtualMachineSnapshotContent object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) - :return: V1VirtualMachineInstanceReplicaSet + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1VirtualMachineSnapshotContent If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4841,19 +7420,16 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine_instance_replica_set" % key + " to method read_namespaced_virtual_machine_snapshot_content" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_snapshot_content`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_replica_set`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_snapshot_content`") collection_formats = {} @@ -4865,6 +7441,10 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n path_params['namespace'] = params['namespace'] query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) header_params = {} @@ -4872,27 +7452,21 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceReplicaSet', + response_type='V1alpha1VirtualMachineSnapshotContent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4900,16 +7474,16 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def pause(self, name, namespace, **kwargs): + def rename(self, name, namespace, **kwargs): """ - Pause a VirtualMachineInstance object. + Rename a stopped VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.pause(name, namespace, callback=callback_function) + >>> thread = api.rename(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4921,21 +7495,21 @@ def pause(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.pause_with_http_info(name, namespace, **kwargs) + return self.rename_with_http_info(name, namespace, **kwargs) else: - (data) = self.pause_with_http_info(name, namespace, **kwargs) + (data) = self.rename_with_http_info(name, namespace, **kwargs) return data - def pause_with_http_info(self, name, namespace, **kwargs): + def rename_with_http_info(self, name, namespace, **kwargs): """ - Pause a VirtualMachineInstance object. + Rename a stopped VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.pause_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.rename_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4957,16 +7531,16 @@ def pause_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method pause" % key + " to method rename" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `pause`") + raise ValueError("Missing the required parameter `name` when calling `rename`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `pause`") + raise ValueError("Missing the required parameter `namespace` when calling `rename`") collection_formats = {} @@ -4988,7 +7562,7 @@ def pause_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/rename', 'PUT', path_params, query_params, header_params, @@ -5003,57 +7577,55 @@ def pause_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine(self, name, namespace, **kwargs): + def replace_namespaced_virtual_machine(self, name, namespace, body, **kwargs): """ - Get a VirtualMachine object. + Update a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :param V1VirtualMachine body: (required) :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_with_http_info(name, namespace, **kwargs) + return self.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_with_http_info(name, namespace, **kwargs) + (data) = self.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) return data - def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwargs): + def replace_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): """ - Get a VirtualMachine object. + Update a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :param V1VirtualMachine body: (required) :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'exact', 'export'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5064,16 +7636,19 @@ def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwar if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine" % key + " to method replace_namespaced_virtual_machine" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine`") collection_formats = {} @@ -5085,10 +7660,6 @@ def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwar path_params['namespace'] = params['namespace'] query_params = [] - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) header_params = {} @@ -5096,14 +7667,20 @@ def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwar local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, @@ -5118,57 +7695,55 @@ def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_instance(self, name, namespace, **kwargs): + def replace_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): """ - Get a VirtualMachineInstance object. + Update a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :param V1VirtualMachineInstance body: (required) :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, **kwargs) + return self.replace_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, **kwargs) + (data) = self.replace_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) return data - def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, **kwargs): + def replace_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): """ - Get a VirtualMachineInstance object. + Update a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :param V1VirtualMachineInstance body: (required) :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'exact', 'export'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5179,16 +7754,19 @@ def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespac if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_instance" % key + " to method replace_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance`") collection_formats = {} @@ -5200,10 +7778,6 @@ def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespac path_params['namespace'] = params['namespace'] query_params = [] - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) header_params = {} @@ -5211,14 +7785,20 @@ def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespac local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, @@ -5233,57 +7813,55 @@ def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespac _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_instance_migration(self, name, namespace, **kwargs): + def replace_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): """ - Get a VirtualMachineInstanceMigration object. + Update a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance_migration(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :param V1VirtualMachineInstanceMigration body: (required) :return: V1VirtualMachineInstanceMigration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, **kwargs) + return self.replace_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, **kwargs) + (data) = self.replace_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) return data - def read_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, **kwargs): + def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, body, **kwargs): """ - Get a VirtualMachineInstanceMigration object. + Update a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :param V1VirtualMachineInstanceMigration body: (required) :return: V1VirtualMachineInstanceMigration If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'exact', 'export'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5294,16 +7872,19 @@ def read_namespaced_virtual_machine_instance_migration_with_http_info(self, name if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_instance_migration" % key + " to method replace_namespaced_virtual_machine_instance_migration" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_migration`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_migration`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_migration`") collection_formats = {} @@ -5315,10 +7896,6 @@ def read_namespaced_virtual_machine_instance_migration_with_http_info(self, name path_params['namespace'] = params['namespace'] query_params = [] - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) header_params = {} @@ -5326,14 +7903,20 @@ def read_namespaced_virtual_machine_instance_migration_with_http_info(self, name local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, @@ -5348,57 +7931,55 @@ def read_namespaced_virtual_machine_instance_migration_with_http_info(self, name _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_instance_preset(self, name, namespace, **kwargs): + def replace_namespaced_virtual_machine_instance_preset(self, name, namespace, body, **kwargs): """ - Get a VirtualMachineInstancePreset object. + Update a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance_preset(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_preset(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :param V1VirtualMachineInstancePreset body: (required) :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, **kwargs) + return self.replace_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, **kwargs) + (data) = self.replace_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) return data - def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, **kwargs): + def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, body, **kwargs): """ - Get a VirtualMachineInstancePreset object. + Update a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :param V1VirtualMachineInstancePreset body: (required) :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'exact', 'export'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5409,16 +7990,19 @@ def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, n if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_instance_preset" % key + " to method replace_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_preset`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_preset`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_preset`") collection_formats = {} @@ -5430,10 +8014,6 @@ def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, n path_params['namespace'] = params['namespace'] query_params = [] - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) header_params = {} @@ -5441,14 +8021,20 @@ def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, n local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, @@ -5463,57 +8049,55 @@ def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, n _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_instance_replica_set(self, name, namespace, **kwargs): + def replace_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): """ - Get a VirtualMachineInstanceReplicaSet object. + Update a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance_replica_set(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :param V1VirtualMachineInstanceReplicaSet body: (required) :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, **kwargs) + return self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, **kwargs) + (data) = self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) return data - def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, **kwargs): + def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): """ - Get a VirtualMachineInstanceReplicaSet object. + Update a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :param V1VirtualMachineInstanceReplicaSet body: (required) :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'exact', 'export'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5524,16 +8108,19 @@ def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_instance_replica_set" % key + " to method replace_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_replica_set`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_replica_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_replica_set`") collection_formats = {} @@ -5545,10 +8132,6 @@ def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na path_params['namespace'] = params['namespace'] query_params = [] - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) header_params = {} @@ -5556,14 +8139,20 @@ def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, @@ -5578,53 +8167,55 @@ def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def rename(self, name, namespace, **kwargs): + def replace_namespaced_virtual_machine_snapshot(self, name, namespace, body, **kwargs): """ - Rename a stopped VirtualMachine object. + Update a VirtualMachineSnapshot object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.rename(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_snapshot(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :param V1alpha1VirtualMachineSnapshot body: (required) + :return: V1alpha1VirtualMachineSnapshot If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.rename_with_http_info(name, namespace, **kwargs) + return self.replace_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.rename_with_http_info(name, namespace, **kwargs) + (data) = self.replace_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) return data - def rename_with_http_info(self, name, namespace, **kwargs): + def replace_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespace, body, **kwargs): """ - Rename a stopped VirtualMachine object. + Update a VirtualMachineSnapshot object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.rename_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :param V1alpha1VirtualMachineSnapshot body: (required) + :return: V1alpha1VirtualMachineSnapshot If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5635,16 +8226,19 @@ def rename_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method rename" % key + " to method replace_namespaced_virtual_machine_snapshot" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `rename`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_snapshot`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `rename`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_snapshot`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_snapshot`") collection_formats = {} @@ -5663,17 +8257,27 @@ def rename_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/rename', 'PUT', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type='V1alpha1VirtualMachineSnapshot', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5681,50 +8285,50 @@ def rename_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_snapshot_content(self, name, namespace, body, **kwargs): """ - Update a VirtualMachine object. + Update a VirtualMachineSnapshotContent object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_snapshot_content(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachine body: (required) - :return: V1VirtualMachine + :param V1alpha1VirtualMachineSnapshotContent body: (required) + :return: V1alpha1VirtualMachineSnapshotContent If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, namespace, body, **kwargs): """ - Update a VirtualMachine object. + Update a VirtualMachineSnapshotContent object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachine body: (required) - :return: V1VirtualMachine + :param V1alpha1VirtualMachineSnapshotContent body: (required) + :return: V1alpha1VirtualMachineSnapshotContent If the method is called asynchronously, returns the request thread. """ @@ -5740,19 +8344,19 @@ def replace_namespaced_virtual_machine_with_http_info(self, name, namespace, bod if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine" % key + " to method replace_namespaced_virtual_machine_snapshot_content" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_snapshot_content`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_snapshot_content`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_snapshot_content`") collection_formats = {} @@ -5784,14 +8388,14 @@ def replace_namespaced_virtual_machine_with_http_info(self, name, namespace, bod # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachine', + response_type='V1alpha1VirtualMachineSnapshotContent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5799,50 +8403,50 @@ def replace_namespaced_virtual_machine_with_http_info(self, name, namespace, bod _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): + def restart(self, name, namespace, **kwargs): """ - Update a VirtualMachineInstance object. + Restart a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) + >>> thread = api.restart(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstance body: (required) - :return: V1VirtualMachineInstance + :param V1RestartOptions body: + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + return self.restart_with_http_info(name, namespace, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + (data) = self.restart_with_http_info(name, namespace, **kwargs) return data - def replace_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): + def restart_with_http_info(self, name, namespace, **kwargs): """ - Update a VirtualMachineInstance object. + Restart a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.restart_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstance body: (required) - :return: V1VirtualMachineInstance + :param V1RestartOptions body: + :return: str If the method is called asynchronously, returns the request thread. """ @@ -5858,19 +8462,16 @@ def replace_namespaced_virtual_machine_instance_with_http_info(self, name, names if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_instance" % key + " to method restart" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `name` when calling `restart`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `namespace` when calling `restart`") collection_formats = {} @@ -5883,33 +8484,25 @@ def replace_namespaced_virtual_machine_instance_with_http_info(self, name, names query_params = [] - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml']) + header_params = {} + + form_params = [] + local_var_files = {} + body_params = None + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstance', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5917,55 +8510,53 @@ def replace_namespaced_virtual_machine_instance_with_http_info(self, name, names _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): + def start(self, name, namespace, **kwargs): """ - Update a VirtualMachineInstanceMigration object. + Start a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) + >>> thread = api.start(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstanceMigration body: (required) - :return: V1VirtualMachineInstanceMigration + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + return self.start_with_http_info(name, namespace, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + (data) = self.start_with_http_info(name, namespace, **kwargs) return data - def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, body, **kwargs): + def start_with_http_info(self, name, namespace, **kwargs): """ - Update a VirtualMachineInstanceMigration object. + Start a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.start_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstanceMigration body: (required) - :return: V1VirtualMachineInstanceMigration + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5976,19 +8567,16 @@ def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, n if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_instance_migration" % key + " to method start" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `name` when calling `start`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_migration`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `namespace` when calling `start`") collection_formats = {} @@ -6007,27 +8595,17 @@ def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, n local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceMigration', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6035,55 +8613,53 @@ def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, n _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_instance_preset(self, name, namespace, body, **kwargs): + def stop(self, name, namespace, **kwargs): """ - Update a VirtualMachineInstancePreset object. + Stop a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_preset(name, namespace, body, callback=callback_function) + >>> thread = api.stop(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstancePreset body: (required) - :return: V1VirtualMachineInstancePreset + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + return self.stop_with_http_info(name, namespace, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + (data) = self.stop_with_http_info(name, namespace, **kwargs) return data - def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, body, **kwargs): + def stop_with_http_info(self, name, namespace, **kwargs): """ - Update a VirtualMachineInstancePreset object. + Stop a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.stop_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstancePreset body: (required) - :return: V1VirtualMachineInstancePreset + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6094,19 +8670,16 @@ def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, name if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_instance_preset" % key + " to method stop" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `name` when calling `stop`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_preset`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `stop`") collection_formats = {} @@ -6125,27 +8698,17 @@ def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, name local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstancePreset', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6153,55 +8716,53 @@ def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, name _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): + def test(self, name, namespace, **kwargs): """ - Update a VirtualMachineInstanceReplicaSet object. + Test endpoint verifying apiserver connectivity. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) + >>> thread = api.test(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstanceReplicaSet body: (required) - :return: V1VirtualMachineInstanceReplicaSet + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + return self.test_with_http_info(name, namespace, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.test_with_http_info(name, namespace, **kwargs) return data - def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): + def test_with_http_info(self, name, namespace, **kwargs): """ - Update a VirtualMachineInstanceReplicaSet object. + Test endpoint verifying apiserver connectivity. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.test_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstanceReplicaSet body: (required) - :return: V1VirtualMachineInstanceReplicaSet + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6212,19 +8773,16 @@ def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_instance_replica_set" % key + " to method test" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `name` when calling `test`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_replica_set`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `test`") collection_formats = {} @@ -6243,27 +8801,17 @@ def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceReplicaSet', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6271,55 +8819,53 @@ def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def restart(self, name, namespace, **kwargs): + def unpause(self, name, namespace, **kwargs): """ - Restart a VirtualMachine object. + Unpause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.restart(name, namespace, callback=callback_function) + >>> thread = api.unpause(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RestartOptions body: :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.restart_with_http_info(name, namespace, **kwargs) + return self.unpause_with_http_info(name, namespace, **kwargs) else: - (data) = self.restart_with_http_info(name, namespace, **kwargs) + (data) = self.unpause_with_http_info(name, namespace, **kwargs) return data - def restart_with_http_info(self, name, namespace, **kwargs): + def unpause_with_http_info(self, name, namespace, **kwargs): """ - Restart a VirtualMachine object. + Unpause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.restart_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.unpause_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RestartOptions body: :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6330,16 +8876,16 @@ def restart_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method restart" % key + " to method unpause" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `restart`") + raise ValueError("Missing the required parameter `name` when calling `unpause`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `restart`") + raise ValueError("Missing the required parameter `namespace` when calling `unpause`") collection_formats = {} @@ -6358,12 +8904,10 @@ def restart_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause', 'PUT', path_params, query_params, header_params, @@ -6378,53 +8922,49 @@ def restart_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def start(self, name, namespace, **kwargs): + def userlist(self, **kwargs): """ - Start a VirtualMachine object. + Get list of active users via guest agent This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.start(name, namespace, callback=callback_function) + >>> thread = api.userlist(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :return: V1VirtualMachineInstanceGuestOSUserList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.start_with_http_info(name, namespace, **kwargs) + return self.userlist_with_http_info(**kwargs) else: - (data) = self.start_with_http_info(name, namespace, **kwargs) + (data) = self.userlist_with_http_info(**kwargs) return data - def start_with_http_info(self, name, namespace, **kwargs): + def userlist_with_http_info(self, **kwargs): """ - Start a VirtualMachine object. + Get list of active users via guest agent This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.start_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.userlist_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :return: V1VirtualMachineInstanceGuestOSUserList If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6435,25 +8975,14 @@ def start_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method start" % key + " to method userlist" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `start`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `start`") - collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] @@ -6463,17 +8992,25 @@ def start_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type='V1VirtualMachineInstanceGuestOSUserList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6481,53 +9018,47 @@ def start_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def stop(self, name, namespace, **kwargs): + def version(self, **kwargs): """ - Stop a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.stop(name, namespace, callback=callback_function) + >>> thread = api.version(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.stop_with_http_info(name, namespace, **kwargs) + return self.version_with_http_info(**kwargs) else: - (data) = self.stop_with_http_info(name, namespace, **kwargs) + (data) = self.version_with_http_info(**kwargs) return data - def stop_with_http_info(self, name, namespace, **kwargs): + def version_with_http_info(self, **kwargs): """ - Stop a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.stop_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.version_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6538,25 +9069,14 @@ def stop_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method stop" % key + " to method version" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `stop`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `stop`") - collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] @@ -6566,17 +9086,21 @@ def stop_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/version', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6584,16 +9108,16 @@ def stop_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def test(self, name, namespace, **kwargs): + def vnc(self, name, namespace, **kwargs): """ - Test endpoint verifying apiserver connectivity. + Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.test(name, namespace, callback=callback_function) + >>> thread = api.vnc(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -6605,21 +9129,21 @@ def test(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.test_with_http_info(name, namespace, **kwargs) + return self.vnc_with_http_info(name, namespace, **kwargs) else: - (data) = self.test_with_http_info(name, namespace, **kwargs) + (data) = self.vnc_with_http_info(name, namespace, **kwargs) return data - def test_with_http_info(self, name, namespace, **kwargs): + def vnc_with_http_info(self, name, namespace, **kwargs): """ - Test endpoint verifying apiserver connectivity. + Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.test_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.vnc_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -6641,16 +9165,16 @@ def test_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method test" % key + " to method vnc" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `test`") + raise ValueError("Missing the required parameter `name` when calling `vnc`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `test`") + raise ValueError("Missing the required parameter `namespace` when calling `vnc`") collection_formats = {} @@ -6672,7 +9196,7 @@ def test_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc', 'GET', path_params, query_params, header_params, @@ -6687,53 +9211,67 @@ def test_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def unpause(self, name, namespace, **kwargs): + def watch_namespaced_virtual_machine(self, namespace, **kwargs): """ - Unpause a VirtualMachineInstance object. + Watch a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.unpause(name, namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1WatchEvent If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.unpause_with_http_info(name, namespace, **kwargs) + return self.watch_namespaced_virtual_machine_with_http_info(namespace, **kwargs) else: - (data) = self.unpause_with_http_info(name, namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_with_http_info(namespace, **kwargs) return data - def unpause_with_http_info(self, name, namespace, **kwargs): + def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): """ - Unpause a VirtualMachineInstance object. + Watch a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.unpause_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1WatchEvent If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6744,27 +9282,38 @@ def unpause_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method unpause" % key + " to method watch_namespaced_virtual_machine" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `unpause`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `unpause`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine`") collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) header_params = {} @@ -6772,17 +9321,21 @@ def unpause_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type='V1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6790,49 +9343,67 @@ def unpause_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def userlist(self, **kwargs): + def watch_namespaced_virtual_machine_instance(self, namespace, **kwargs): """ - Get list of active users via guest agent + Watch a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.userlist(callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1VirtualMachineInstanceGuestOSUserList + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1WatchEvent If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.userlist_with_http_info(**kwargs) + return self.watch_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) else: - (data) = self.userlist_with_http_info(**kwargs) + (data) = self.watch_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) return data - def userlist_with_http_info(self, **kwargs): + def watch_namespaced_virtual_machine_instance_with_http_info(self, namespace, **kwargs): """ - Get list of active users via guest agent + Watch a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.userlist_with_http_info(callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1VirtualMachineInstanceGuestOSUserList + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1WatchEvent If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6843,16 +9414,38 @@ def userlist_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method userlist" % key + " to method watch_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance`") + collection_formats = {} path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) header_params = {} @@ -6864,21 +9457,17 @@ def userlist_with_http_info(self, **kwargs): header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceGuestOSUserList', + response_type='V1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6886,47 +9475,67 @@ def userlist_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def version(self, **kwargs): + def watch_namespaced_virtual_machine_instance_migration(self, namespace, **kwargs): """ + Watch a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.version(callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance_migration(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1WatchEvent If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.version_with_http_info(**kwargs) + return self.watch_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) else: - (data) = self.version_with_http_info(**kwargs) + (data) = self.watch_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) return data - def version_with_http_info(self, **kwargs): + def watch_namespaced_virtual_machine_instance_migration_with_http_info(self, namespace, **kwargs): """ + Watch a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.version_with_http_info(callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance_migration_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1WatchEvent If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6937,16 +9546,38 @@ def version_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method version" % key + " to method watch_namespaced_virtual_machine_instance_migration" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_migration`") + collection_formats = {} path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) header_params = {} @@ -6961,14 +9592,14 @@ def version_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/version', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='V1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6976,53 +9607,67 @@ def version_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def vnc(self, name, namespace, **kwargs): + def watch_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): """ - Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. + Watch a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.vnc(name, namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance_preset(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: None + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1WatchEvent If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.vnc_with_http_info(name, namespace, **kwargs) + return self.watch_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) else: - (data) = self.vnc_with_http_info(name, namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) return data - def vnc_with_http_info(self, name, namespace, **kwargs): + def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namespace, **kwargs): """ - Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. + Watch a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.vnc_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance_preset_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: None + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1WatchEvent If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7033,27 +9678,38 @@ def vnc_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method vnc" % key + " to method watch_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `vnc`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `vnc`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_preset`") collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) header_params = {} @@ -7061,17 +9717,21 @@ def vnc_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='V1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7079,16 +9739,16 @@ def vnc_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwargs): """ - Watch a VirtualMachine object. + Watch a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance_replica_set(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7107,21 +9767,21 @@ def watch_namespaced_virtual_machine(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + return self.watch_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) else: - (data) = self.watch_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) return data - def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, namespace, **kwargs): """ - Watch a VirtualMachine object. + Watch a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7150,13 +9810,13 @@ def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_virtual_machine" % key + " to method watch_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_replica_set`") collection_formats = {} @@ -7196,7 +9856,7 @@ def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, @@ -7211,16 +9871,16 @@ def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine_instance(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_snapshot(self, namespace, **kwargs): """ - Watch a VirtualMachineInstance object. + Watch a VirtualMachineSnapshot object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_instance(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_snapshot(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7239,21 +9899,21 @@ def watch_namespaced_virtual_machine_instance(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) + return self.watch_namespaced_virtual_machine_snapshot_with_http_info(namespace, **kwargs) else: - (data) = self.watch_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_snapshot_with_http_info(namespace, **kwargs) return data - def watch_namespaced_virtual_machine_instance_with_http_info(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, **kwargs): """ - Watch a VirtualMachineInstance object. + Watch a VirtualMachineSnapshot object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_instance_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_snapshot_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7282,13 +9942,13 @@ def watch_namespaced_virtual_machine_instance_with_http_info(self, namespace, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_virtual_machine_instance" % key + " to method watch_namespaced_virtual_machine_snapshot" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_snapshot`") collection_formats = {} @@ -7328,7 +9988,7 @@ def watch_namespaced_virtual_machine_instance_with_http_info(self, namespace, ** # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots', 'GET', path_params, query_params, header_params, @@ -7343,16 +10003,16 @@ def watch_namespaced_virtual_machine_instance_with_http_info(self, namespace, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine_instance_migration(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_snapshot_content(self, namespace, **kwargs): """ - Watch a VirtualMachineInstanceMigration object. + Watch a VirtualMachineSnapshotContent object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_instance_migration(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_snapshot_content(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7371,21 +10031,21 @@ def watch_namespaced_virtual_machine_instance_migration(self, namespace, **kwarg """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) + return self.watch_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, **kwargs) else: - (data) = self.watch_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, **kwargs) return data - def watch_namespaced_virtual_machine_instance_migration_with_http_info(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_snapshot_content_with_http_info(self, namespace, **kwargs): """ - Watch a VirtualMachineInstanceMigration object. + Watch a VirtualMachineSnapshotContent object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_instance_migration_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7414,13 +10074,13 @@ def watch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_virtual_machine_instance_migration" % key + " to method watch_namespaced_virtual_machine_snapshot_content" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_snapshot_content`") collection_formats = {} @@ -7460,7 +10120,7 @@ def watch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents', 'GET', path_params, query_params, header_params, @@ -7475,20 +10135,19 @@ def watch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): + def watch_virtual_machine_instance_list_for_all_namespaces(self, **kwargs): """ - Watch a VirtualMachineInstancePreset object. + Watch a VirtualMachineInstanceList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_instance_preset(namespace, callback=callback_function) + >>> thread = api.watch_virtual_machine_instance_list_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -7503,25 +10162,24 @@ def watch_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) + return self.watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.watch_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) + (data) = self.watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(**kwargs) return data - def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namespace, **kwargs): + def watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Watch a VirtualMachineInstancePreset object. + Watch a VirtualMachineInstanceList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_instance_preset_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -7535,7 +10193,7 @@ def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namesp returns the request thread. """ - all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7546,20 +10204,15 @@ def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namesp if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_virtual_machine_instance_preset" % key + " to method watch_virtual_machine_instance_list_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_preset`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -7592,7 +10245,7 @@ def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/virtualmachineinstances', 'GET', path_params, query_params, header_params, @@ -7607,20 +10260,19 @@ def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namesp _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwargs): + def watch_virtual_machine_instance_migration_list_for_all_namespaces(self, **kwargs): """ - Watch a VirtualMachineInstanceReplicaSet object. + Watch a VirtualMachineInstanceMigrationList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_instance_replica_set(namespace, callback=callback_function) + >>> thread = api.watch_virtual_machine_instance_migration_list_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -7635,25 +10287,24 @@ def watch_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwa """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) + return self.watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.watch_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) + (data) = self.watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_info(**kwargs) return data - def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, namespace, **kwargs): + def watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Watch a VirtualMachineInstanceReplicaSet object. + Watch a VirtualMachineInstanceMigrationList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -7667,7 +10318,7 @@ def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n returns the request thread. """ - all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7678,20 +10329,15 @@ def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_virtual_machine_instance_replica_set" % key + " to method watch_virtual_machine_instance_migration_list_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_replica_set`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -7724,7 +10370,7 @@ def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancemigrations', 'GET', path_params, query_params, header_params, @@ -7739,16 +10385,16 @@ def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_virtual_machine_instance_list_for_all_namespaces(self, **kwargs): + def watch_virtual_machine_instance_preset_list_for_all_namespaces(self, **kwargs): """ - Watch a VirtualMachineInstanceList object. + Watch a VirtualMachineInstancePresetList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_instance_list_for_all_namespaces(callback=callback_function) + >>> thread = api.watch_virtual_machine_instance_preset_list_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7766,21 +10412,21 @@ def watch_virtual_machine_instance_list_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(**kwargs) + return self.watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(**kwargs) + (data) = self.watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info(**kwargs) return data - def watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(self, **kwargs): + def watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Watch a VirtualMachineInstanceList object. + Watch a VirtualMachineInstancePresetList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7808,7 +10454,7 @@ def watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(self, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_virtual_machine_instance_list_for_all_namespaces" % key + " to method watch_virtual_machine_instance_preset_list_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -7849,7 +10495,7 @@ def watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/virtualmachineinstances', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancepresets', 'GET', path_params, query_params, header_params, @@ -7864,16 +10510,16 @@ def watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(self, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_virtual_machine_instance_migration_list_for_all_namespaces(self, **kwargs): + def watch_virtual_machine_instance_replica_set_list_for_all_namespaces(self, **kwargs): """ - Watch a VirtualMachineInstanceMigrationList object. + Watch a VirtualMachineInstanceReplicaSetList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_instance_migration_list_for_all_namespaces(callback=callback_function) + >>> thread = api.watch_virtual_machine_instance_replica_set_list_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7891,21 +10537,21 @@ def watch_virtual_machine_instance_migration_list_for_all_namespaces(self, **kwa """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_info(**kwargs) + return self.watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_info(**kwargs) + (data) = self.watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http_info(**kwargs) return data - def watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_info(self, **kwargs): + def watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Watch a VirtualMachineInstanceMigrationList object. + Watch a VirtualMachineInstanceReplicaSetList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7933,7 +10579,7 @@ def watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_i if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_virtual_machine_instance_migration_list_for_all_namespaces" % key + " to method watch_virtual_machine_instance_replica_set_list_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -7974,7 +10620,7 @@ def watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_i # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancemigrations', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, @@ -7989,16 +10635,16 @@ def watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_i _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_virtual_machine_instance_preset_list_for_all_namespaces(self, **kwargs): + def watch_virtual_machine_list_for_all_namespaces(self, **kwargs): """ - Watch a VirtualMachineInstancePresetList object. + Watch a VirtualMachineList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_instance_preset_list_for_all_namespaces(callback=callback_function) + >>> thread = api.watch_virtual_machine_list_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -8016,21 +10662,21 @@ def watch_virtual_machine_instance_preset_list_for_all_namespaces(self, **kwargs """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info(**kwargs) + return self.watch_virtual_machine_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info(**kwargs) + (data) = self.watch_virtual_machine_list_for_all_namespaces_with_http_info(**kwargs) return data - def watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info(self, **kwargs): + def watch_virtual_machine_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Watch a VirtualMachineInstancePresetList object. + Watch a VirtualMachineList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.watch_virtual_machine_list_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -8058,7 +10704,7 @@ def watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_virtual_machine_instance_preset_list_for_all_namespaces" % key + " to method watch_virtual_machine_list_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -8099,7 +10745,7 @@ def watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/virtualmachines', 'GET', path_params, query_params, header_params, @@ -8114,16 +10760,16 @@ def watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_virtual_machine_instance_replica_set_list_for_all_namespaces(self, **kwargs): + def watch_virtual_machine_snapshot_content_list_for_all_namespaces(self, **kwargs): """ - Watch a VirtualMachineInstanceReplicaSetList object. + Watch a VirtualMachineSnapshotContentList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_instance_replica_set_list_for_all_namespaces(callback=callback_function) + >>> thread = api.watch_virtual_machine_snapshot_content_list_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -8141,21 +10787,21 @@ def watch_virtual_machine_instance_replica_set_list_for_all_namespaces(self, **k """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http_info(**kwargs) + return self.watch_virtual_machine_snapshot_content_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http_info(**kwargs) + (data) = self.watch_virtual_machine_snapshot_content_list_for_all_namespaces_with_http_info(**kwargs) return data - def watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http_info(self, **kwargs): + def watch_virtual_machine_snapshot_content_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Watch a VirtualMachineInstanceReplicaSetList object. + Watch a VirtualMachineSnapshotContentList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.watch_virtual_machine_snapshot_content_list_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -8183,7 +10829,7 @@ def watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_virtual_machine_instance_replica_set_list_for_all_namespaces" % key + " to method watch_virtual_machine_snapshot_content_list_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -8224,7 +10870,7 @@ def watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshotcontents', 'GET', path_params, query_params, header_params, @@ -8239,16 +10885,16 @@ def watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_virtual_machine_list_for_all_namespaces(self, **kwargs): + def watch_virtual_machine_snapshot_list_for_all_namespaces(self, **kwargs): """ - Watch a VirtualMachineList object. + Watch a VirtualMachineSnapshotList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_list_for_all_namespaces(callback=callback_function) + >>> thread = api.watch_virtual_machine_snapshot_list_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -8266,21 +10912,21 @@ def watch_virtual_machine_list_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_virtual_machine_list_for_all_namespaces_with_http_info(**kwargs) + return self.watch_virtual_machine_snapshot_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.watch_virtual_machine_list_for_all_namespaces_with_http_info(**kwargs) + (data) = self.watch_virtual_machine_snapshot_list_for_all_namespaces_with_http_info(**kwargs) return data - def watch_virtual_machine_list_for_all_namespaces_with_http_info(self, **kwargs): + def watch_virtual_machine_snapshot_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Watch a VirtualMachineList object. + Watch a VirtualMachineSnapshotList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_list_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.watch_virtual_machine_snapshot_list_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -8308,7 +10954,7 @@ def watch_virtual_machine_list_for_all_namespaces_with_http_info(self, **kwargs) if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_virtual_machine_list_for_all_namespaces" % key + " to method watch_virtual_machine_snapshot_list_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -8349,7 +10995,7 @@ def watch_virtual_machine_list_for_all_namespaces_with_http_info(self, **kwargs) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/virtualmachines', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshots', 'GET', path_params, query_params, header_params, diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index e31b5212..4ef9e0ce 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.29.0-149-gbe8e8985".\ + "SDK Package Version: v0.30.0-36-gc5656f9e".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index f067de70..7e9e5dbd 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -88,7 +88,10 @@ from .v1_owner_reference import V1OwnerReference from .v1_pit_timer import V1PITTimer from .v1_patch import V1Patch +from .v1_persistent_volume_claim import V1PersistentVolumeClaim +from .v1_persistent_volume_claim_condition import V1PersistentVolumeClaimCondition from .v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec +from .v1_persistent_volume_claim_status import V1PersistentVolumeClaimStatus from .v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource from .v1_pod_affinity import V1PodAffinity from .v1_pod_affinity_term import V1PodAffinityTerm @@ -164,5 +167,18 @@ from .v1alpha1_data_volume_source_upload import V1alpha1DataVolumeSourceUpload from .v1alpha1_data_volume_spec import V1alpha1DataVolumeSpec from .v1alpha1_data_volume_status import V1alpha1DataVolumeStatus +from .v1alpha1_source_spec import V1alpha1SourceSpec +from .v1alpha1_virtual_machine_snapshot import V1alpha1VirtualMachineSnapshot +from .v1alpha1_virtual_machine_snapshot_condition import V1alpha1VirtualMachineSnapshotCondition +from .v1alpha1_virtual_machine_snapshot_content import V1alpha1VirtualMachineSnapshotContent +from .v1alpha1_virtual_machine_snapshot_content_list import V1alpha1VirtualMachineSnapshotContentList +from .v1alpha1_virtual_machine_snapshot_content_spec import V1alpha1VirtualMachineSnapshotContentSpec +from .v1alpha1_virtual_machine_snapshot_content_status import V1alpha1VirtualMachineSnapshotContentStatus +from .v1alpha1_virtual_machine_snapshot_error import V1alpha1VirtualMachineSnapshotError +from .v1alpha1_virtual_machine_snapshot_list import V1alpha1VirtualMachineSnapshotList +from .v1alpha1_virtual_machine_snapshot_spec import V1alpha1VirtualMachineSnapshotSpec +from .v1alpha1_virtual_machine_snapshot_status import V1alpha1VirtualMachineSnapshotStatus +from .v1alpha1_volume_backup import V1alpha1VolumeBackup +from .v1alpha1_volume_snapshot_status import V1alpha1VolumeSnapshotStatus from .v1_interface_bridge import V1InterfaceBridge from .v1_interface_slirp import V1InterfaceSlirp diff --git a/kubevirt/models/v1_persistent_volume_claim.py b/kubevirt/models/v1_persistent_volume_claim.py new file mode 100644 index 00000000..21268e52 --- /dev/null +++ b/kubevirt/models/v1_persistent_volume_claim.py @@ -0,0 +1,237 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PersistentVolumeClaim(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1PersistentVolumeClaimSpec', + 'status': 'V1PersistentVolumeClaimStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + """ + V1PersistentVolumeClaim - a model defined in Swagger + """ + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + if spec is not None: + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1PersistentVolumeClaim. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1PersistentVolumeClaim. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1PersistentVolumeClaim. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1PersistentVolumeClaim. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1PersistentVolumeClaim. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1PersistentVolumeClaim. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1PersistentVolumeClaim. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1PersistentVolumeClaim. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1PersistentVolumeClaim. + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + :return: The metadata of this V1PersistentVolumeClaim. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1PersistentVolumeClaim. + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + :param metadata: The metadata of this V1PersistentVolumeClaim. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1PersistentVolumeClaim. + Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + + :return: The spec of this V1PersistentVolumeClaim. + :rtype: V1PersistentVolumeClaimSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1PersistentVolumeClaim. + Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + + :param spec: The spec of this V1PersistentVolumeClaim. + :type: V1PersistentVolumeClaimSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1PersistentVolumeClaim. + Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + + :return: The status of this V1PersistentVolumeClaim. + :rtype: V1PersistentVolumeClaimStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1PersistentVolumeClaim. + Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + + :param status: The status of this V1PersistentVolumeClaim. + :type: V1PersistentVolumeClaimStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1PersistentVolumeClaim): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_persistent_volume_claim_condition.py b/kubevirt/models/v1_persistent_volume_claim_condition.py new file mode 100644 index 00000000..ad70968d --- /dev/null +++ b/kubevirt/models/v1_persistent_volume_claim_condition.py @@ -0,0 +1,207 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PersistentVolumeClaimCondition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + attribute_map = { + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + def __init__(self, message=None, reason=None, status=None, type=None): + """ + V1PersistentVolumeClaimCondition - a model defined in Swagger + """ + + self._message = None + self._reason = None + self._status = None + self._type = None + + if message is not None: + self.message = message + if reason is not None: + self.reason = reason + self.status = status + self.type = type + + @property + def message(self): + """ + Gets the message of this V1PersistentVolumeClaimCondition. + Human-readable message indicating details about last transition. + + :return: The message of this V1PersistentVolumeClaimCondition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1PersistentVolumeClaimCondition. + Human-readable message indicating details about last transition. + + :param message: The message of this V1PersistentVolumeClaimCondition. + :type: str + """ + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1PersistentVolumeClaimCondition. + Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized. + + :return: The reason of this V1PersistentVolumeClaimCondition. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1PersistentVolumeClaimCondition. + Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized. + + :param reason: The reason of this V1PersistentVolumeClaimCondition. + :type: str + """ + + self._reason = reason + + @property + def status(self): + """ + Gets the status of this V1PersistentVolumeClaimCondition. + + :return: The status of this V1PersistentVolumeClaimCondition. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1PersistentVolumeClaimCondition. + + :param status: The status of this V1PersistentVolumeClaimCondition. + :type: str + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def type(self): + """ + Gets the type of this V1PersistentVolumeClaimCondition. + + :return: The type of this V1PersistentVolumeClaimCondition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1PersistentVolumeClaimCondition. + + :param type: The type of this V1PersistentVolumeClaimCondition. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1PersistentVolumeClaimCondition): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_persistent_volume_claim_status.py b/kubevirt/models/v1_persistent_volume_claim_status.py new file mode 100644 index 00000000..1f124ecf --- /dev/null +++ b/kubevirt/models/v1_persistent_volume_claim_status.py @@ -0,0 +1,209 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PersistentVolumeClaimStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'access_modes': 'list[str]', + 'capacity': 'dict(str, ResourceQuantity)', + 'conditions': 'list[V1PersistentVolumeClaimCondition]', + 'phase': 'str' + } + + attribute_map = { + 'access_modes': 'accessModes', + 'capacity': 'capacity', + 'conditions': 'conditions', + 'phase': 'phase' + } + + def __init__(self, access_modes=None, capacity=None, conditions=None, phase=None): + """ + V1PersistentVolumeClaimStatus - a model defined in Swagger + """ + + self._access_modes = None + self._capacity = None + self._conditions = None + self._phase = None + + if access_modes is not None: + self.access_modes = access_modes + if capacity is not None: + self.capacity = capacity + if conditions is not None: + self.conditions = conditions + if phase is not None: + self.phase = phase + + @property + def access_modes(self): + """ + Gets the access_modes of this V1PersistentVolumeClaimStatus. + AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + + :return: The access_modes of this V1PersistentVolumeClaimStatus. + :rtype: list[str] + """ + return self._access_modes + + @access_modes.setter + def access_modes(self, access_modes): + """ + Sets the access_modes of this V1PersistentVolumeClaimStatus. + AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + + :param access_modes: The access_modes of this V1PersistentVolumeClaimStatus. + :type: list[str] + """ + + self._access_modes = access_modes + + @property + def capacity(self): + """ + Gets the capacity of this V1PersistentVolumeClaimStatus. + Represents the actual resources of the underlying volume. + + :return: The capacity of this V1PersistentVolumeClaimStatus. + :rtype: dict(str, ResourceQuantity) + """ + return self._capacity + + @capacity.setter + def capacity(self, capacity): + """ + Sets the capacity of this V1PersistentVolumeClaimStatus. + Represents the actual resources of the underlying volume. + + :param capacity: The capacity of this V1PersistentVolumeClaimStatus. + :type: dict(str, ResourceQuantity) + """ + + self._capacity = capacity + + @property + def conditions(self): + """ + Gets the conditions of this V1PersistentVolumeClaimStatus. + Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. + + :return: The conditions of this V1PersistentVolumeClaimStatus. + :rtype: list[V1PersistentVolumeClaimCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1PersistentVolumeClaimStatus. + Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. + + :param conditions: The conditions of this V1PersistentVolumeClaimStatus. + :type: list[V1PersistentVolumeClaimCondition] + """ + + self._conditions = conditions + + @property + def phase(self): + """ + Gets the phase of this V1PersistentVolumeClaimStatus. + Phase represents the current phase of PersistentVolumeClaim. + + :return: The phase of this V1PersistentVolumeClaimStatus. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """ + Sets the phase of this V1PersistentVolumeClaimStatus. + Phase represents the current phase of PersistentVolumeClaim. + + :param phase: The phase of this V1PersistentVolumeClaimStatus. + :type: str + """ + + self._phase = phase + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1PersistentVolumeClaimStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_status.py b/kubevirt/models/v1_virtual_machine_status.py index 0b62dc0d..07c26676 100644 --- a/kubevirt/models/v1_virtual_machine_status.py +++ b/kubevirt/models/v1_virtual_machine_status.py @@ -34,6 +34,7 @@ class V1VirtualMachineStatus(object): 'conditions': 'list[V1VirtualMachineCondition]', 'created': 'bool', 'ready': 'bool', + 'snapshot_in_progress': 'str', 'state_change_requests': 'list[V1VirtualMachineStateChangeRequest]' } @@ -41,10 +42,11 @@ class V1VirtualMachineStatus(object): 'conditions': 'conditions', 'created': 'created', 'ready': 'ready', + 'snapshot_in_progress': 'snapshotInProgress', 'state_change_requests': 'stateChangeRequests' } - def __init__(self, conditions=None, created=None, ready=None, state_change_requests=None): + def __init__(self, conditions=None, created=None, ready=None, snapshot_in_progress=None, state_change_requests=None): """ V1VirtualMachineStatus - a model defined in Swagger """ @@ -52,6 +54,7 @@ def __init__(self, conditions=None, created=None, ready=None, state_change_reque self._conditions = None self._created = None self._ready = None + self._snapshot_in_progress = None self._state_change_requests = None if conditions is not None: @@ -60,6 +63,8 @@ def __init__(self, conditions=None, created=None, ready=None, state_change_reque self.created = created if ready is not None: self.ready = ready + if snapshot_in_progress is not None: + self.snapshot_in_progress = snapshot_in_progress if state_change_requests is not None: self.state_change_requests = state_change_requests @@ -132,6 +137,29 @@ def ready(self, ready): self._ready = ready + @property + def snapshot_in_progress(self): + """ + Gets the snapshot_in_progress of this V1VirtualMachineStatus. + SnapshotInProgress is the name of the VirtualMachineSnapshot currently executing + + :return: The snapshot_in_progress of this V1VirtualMachineStatus. + :rtype: str + """ + return self._snapshot_in_progress + + @snapshot_in_progress.setter + def snapshot_in_progress(self, snapshot_in_progress): + """ + Sets the snapshot_in_progress of this V1VirtualMachineStatus. + SnapshotInProgress is the name of the VirtualMachineSnapshot currently executing + + :param snapshot_in_progress: The snapshot_in_progress of this V1VirtualMachineStatus. + :type: str + """ + + self._snapshot_in_progress = snapshot_in_progress + @property def state_change_requests(self): """ diff --git a/kubevirt/models/v1alpha1_source_spec.py b/kubevirt/models/v1alpha1_source_spec.py new file mode 100644 index 00000000..d3fd3b86 --- /dev/null +++ b/kubevirt/models/v1alpha1_source_spec.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1SourceSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'virtual_machine': 'V1VirtualMachine' + } + + attribute_map = { + 'virtual_machine': 'virtualMachine' + } + + def __init__(self, virtual_machine=None): + """ + V1alpha1SourceSpec - a model defined in Swagger + """ + + self._virtual_machine = None + + if virtual_machine is not None: + self.virtual_machine = virtual_machine + + @property + def virtual_machine(self): + """ + Gets the virtual_machine of this V1alpha1SourceSpec. + + :return: The virtual_machine of this V1alpha1SourceSpec. + :rtype: V1VirtualMachine + """ + return self._virtual_machine + + @virtual_machine.setter + def virtual_machine(self, virtual_machine): + """ + Sets the virtual_machine of this V1alpha1SourceSpec. + + :param virtual_machine: The virtual_machine of this V1alpha1SourceSpec. + :type: V1VirtualMachine + """ + + self._virtual_machine = virtual_machine + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1SourceSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot.py b/kubevirt/models/v1alpha1_virtual_machine_snapshot.py new file mode 100644 index 00000000..7a8d8adf --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_snapshot.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineSnapshot(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1alpha1VirtualMachineSnapshotSpec', + 'status': 'V1alpha1VirtualMachineSnapshotStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + """ + V1alpha1VirtualMachineSnapshot - a model defined in Swagger + """ + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1VirtualMachineSnapshot. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1alpha1VirtualMachineSnapshot. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1VirtualMachineSnapshot. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1VirtualMachineSnapshot. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1alpha1VirtualMachineSnapshot. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1VirtualMachineSnapshot. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1VirtualMachineSnapshot. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1VirtualMachineSnapshot. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1VirtualMachineSnapshot. + + :return: The metadata of this V1alpha1VirtualMachineSnapshot. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1VirtualMachineSnapshot. + + :param metadata: The metadata of this V1alpha1VirtualMachineSnapshot. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1alpha1VirtualMachineSnapshot. + + :return: The spec of this V1alpha1VirtualMachineSnapshot. + :rtype: V1alpha1VirtualMachineSnapshotSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1alpha1VirtualMachineSnapshot. + + :param spec: The spec of this V1alpha1VirtualMachineSnapshot. + :type: V1alpha1VirtualMachineSnapshotSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1alpha1VirtualMachineSnapshot. + + :return: The status of this V1alpha1VirtualMachineSnapshot. + :rtype: V1alpha1VirtualMachineSnapshotStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1alpha1VirtualMachineSnapshot. + + :param status: The status of this V1alpha1VirtualMachineSnapshot. + :type: V1alpha1VirtualMachineSnapshotStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineSnapshot): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_condition.py b/kubevirt/models/v1alpha1_virtual_machine_snapshot_condition.py new file mode 100644 index 00000000..db7b6d89 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_snapshot_condition.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineSnapshotCondition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + attribute_map = { + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + def __init__(self, message=None, reason=None, status=None, type=None): + """ + V1alpha1VirtualMachineSnapshotCondition - a model defined in Swagger + """ + + self._message = None + self._reason = None + self._status = None + self._type = None + + if message is not None: + self.message = message + if reason is not None: + self.reason = reason + self.status = status + self.type = type + + @property + def message(self): + """ + Gets the message of this V1alpha1VirtualMachineSnapshotCondition. + + :return: The message of this V1alpha1VirtualMachineSnapshotCondition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1alpha1VirtualMachineSnapshotCondition. + + :param message: The message of this V1alpha1VirtualMachineSnapshotCondition. + :type: str + """ + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1alpha1VirtualMachineSnapshotCondition. + + :return: The reason of this V1alpha1VirtualMachineSnapshotCondition. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1alpha1VirtualMachineSnapshotCondition. + + :param reason: The reason of this V1alpha1VirtualMachineSnapshotCondition. + :type: str + """ + + self._reason = reason + + @property + def status(self): + """ + Gets the status of this V1alpha1VirtualMachineSnapshotCondition. + + :return: The status of this V1alpha1VirtualMachineSnapshotCondition. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1alpha1VirtualMachineSnapshotCondition. + + :param status: The status of this V1alpha1VirtualMachineSnapshotCondition. + :type: str + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def type(self): + """ + Gets the type of this V1alpha1VirtualMachineSnapshotCondition. + + :return: The type of this V1alpha1VirtualMachineSnapshotCondition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1alpha1VirtualMachineSnapshotCondition. + + :param type: The type of this V1alpha1VirtualMachineSnapshotCondition. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineSnapshotCondition): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_content.py b/kubevirt/models/v1alpha1_virtual_machine_snapshot_content.py new file mode 100644 index 00000000..0eaf5d75 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_snapshot_content.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineSnapshotContent(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1alpha1VirtualMachineSnapshotContentSpec', + 'status': 'V1alpha1VirtualMachineSnapshotContentStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + """ + V1alpha1VirtualMachineSnapshotContent - a model defined in Swagger + """ + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1VirtualMachineSnapshotContent. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1alpha1VirtualMachineSnapshotContent. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1VirtualMachineSnapshotContent. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1VirtualMachineSnapshotContent. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1alpha1VirtualMachineSnapshotContent. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1VirtualMachineSnapshotContent. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1VirtualMachineSnapshotContent. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1VirtualMachineSnapshotContent. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1VirtualMachineSnapshotContent. + + :return: The metadata of this V1alpha1VirtualMachineSnapshotContent. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1VirtualMachineSnapshotContent. + + :param metadata: The metadata of this V1alpha1VirtualMachineSnapshotContent. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1alpha1VirtualMachineSnapshotContent. + + :return: The spec of this V1alpha1VirtualMachineSnapshotContent. + :rtype: V1alpha1VirtualMachineSnapshotContentSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1alpha1VirtualMachineSnapshotContent. + + :param spec: The spec of this V1alpha1VirtualMachineSnapshotContent. + :type: V1alpha1VirtualMachineSnapshotContentSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1alpha1VirtualMachineSnapshotContent. + + :return: The status of this V1alpha1VirtualMachineSnapshotContent. + :rtype: V1alpha1VirtualMachineSnapshotContentStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1alpha1VirtualMachineSnapshotContent. + + :param status: The status of this V1alpha1VirtualMachineSnapshotContent. + :type: V1alpha1VirtualMachineSnapshotContentStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineSnapshotContent): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_list.py b/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_list.py new file mode 100644 index 00000000..11e0ddcb --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_list.py @@ -0,0 +1,207 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineSnapshotContentList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'items': 'list[V1alpha1VirtualMachineSnapshotContent]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1alpha1VirtualMachineSnapshotContentList - a model defined in Swagger + """ + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + self.metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1VirtualMachineSnapshotContentList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1alpha1VirtualMachineSnapshotContentList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1VirtualMachineSnapshotContentList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1VirtualMachineSnapshotContentList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1alpha1VirtualMachineSnapshotContentList. + + :return: The items of this V1alpha1VirtualMachineSnapshotContentList. + :rtype: list[V1alpha1VirtualMachineSnapshotContent] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1alpha1VirtualMachineSnapshotContentList. + + :param items: The items of this V1alpha1VirtualMachineSnapshotContentList. + :type: list[V1alpha1VirtualMachineSnapshotContent] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1alpha1VirtualMachineSnapshotContentList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1VirtualMachineSnapshotContentList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1VirtualMachineSnapshotContentList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1VirtualMachineSnapshotContentList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1VirtualMachineSnapshotContentList. + + :return: The metadata of this V1alpha1VirtualMachineSnapshotContentList. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1VirtualMachineSnapshotContentList. + + :param metadata: The metadata of this V1alpha1VirtualMachineSnapshotContentList. + :type: V1ListMeta + """ + if metadata is None: + raise ValueError("Invalid value for `metadata`, must not be `None`") + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineSnapshotContentList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_spec.py b/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_spec.py new file mode 100644 index 00000000..2cbde345 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_spec.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineSnapshotContentSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'source': 'V1alpha1SourceSpec', + 'virtual_machine_snapshot_name': 'str', + 'volume_backups': 'list[V1alpha1VolumeBackup]' + } + + attribute_map = { + 'source': 'source', + 'virtual_machine_snapshot_name': 'virtualMachineSnapshotName', + 'volume_backups': 'volumeBackups' + } + + def __init__(self, source=None, virtual_machine_snapshot_name=None, volume_backups=None): + """ + V1alpha1VirtualMachineSnapshotContentSpec - a model defined in Swagger + """ + + self._source = None + self._virtual_machine_snapshot_name = None + self._volume_backups = None + + self.source = source + if virtual_machine_snapshot_name is not None: + self.virtual_machine_snapshot_name = virtual_machine_snapshot_name + if volume_backups is not None: + self.volume_backups = volume_backups + + @property + def source(self): + """ + Gets the source of this V1alpha1VirtualMachineSnapshotContentSpec. + + :return: The source of this V1alpha1VirtualMachineSnapshotContentSpec. + :rtype: V1alpha1SourceSpec + """ + return self._source + + @source.setter + def source(self, source): + """ + Sets the source of this V1alpha1VirtualMachineSnapshotContentSpec. + + :param source: The source of this V1alpha1VirtualMachineSnapshotContentSpec. + :type: V1alpha1SourceSpec + """ + if source is None: + raise ValueError("Invalid value for `source`, must not be `None`") + + self._source = source + + @property + def virtual_machine_snapshot_name(self): + """ + Gets the virtual_machine_snapshot_name of this V1alpha1VirtualMachineSnapshotContentSpec. + + :return: The virtual_machine_snapshot_name of this V1alpha1VirtualMachineSnapshotContentSpec. + :rtype: str + """ + return self._virtual_machine_snapshot_name + + @virtual_machine_snapshot_name.setter + def virtual_machine_snapshot_name(self, virtual_machine_snapshot_name): + """ + Sets the virtual_machine_snapshot_name of this V1alpha1VirtualMachineSnapshotContentSpec. + + :param virtual_machine_snapshot_name: The virtual_machine_snapshot_name of this V1alpha1VirtualMachineSnapshotContentSpec. + :type: str + """ + + self._virtual_machine_snapshot_name = virtual_machine_snapshot_name + + @property + def volume_backups(self): + """ + Gets the volume_backups of this V1alpha1VirtualMachineSnapshotContentSpec. + + :return: The volume_backups of this V1alpha1VirtualMachineSnapshotContentSpec. + :rtype: list[V1alpha1VolumeBackup] + """ + return self._volume_backups + + @volume_backups.setter + def volume_backups(self, volume_backups): + """ + Sets the volume_backups of this V1alpha1VirtualMachineSnapshotContentSpec. + + :param volume_backups: The volume_backups of this V1alpha1VirtualMachineSnapshotContentSpec. + :type: list[V1alpha1VolumeBackup] + """ + + self._volume_backups = volume_backups + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineSnapshotContentSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_status.py b/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_status.py new file mode 100644 index 00000000..f6ae43ff --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_status.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineSnapshotContentStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'creation_time': 'V1Time', + 'error': 'V1alpha1VirtualMachineSnapshotError', + 'ready_to_use': 'bool', + 'volume_snapshot_status': 'list[V1alpha1VolumeSnapshotStatus]' + } + + attribute_map = { + 'creation_time': 'creationTime', + 'error': 'error', + 'ready_to_use': 'readyToUse', + 'volume_snapshot_status': 'volumeSnapshotStatus' + } + + def __init__(self, creation_time=None, error=None, ready_to_use=None, volume_snapshot_status=None): + """ + V1alpha1VirtualMachineSnapshotContentStatus - a model defined in Swagger + """ + + self._creation_time = None + self._error = None + self._ready_to_use = None + self._volume_snapshot_status = None + + if creation_time is not None: + self.creation_time = creation_time + if error is not None: + self.error = error + if ready_to_use is not None: + self.ready_to_use = ready_to_use + if volume_snapshot_status is not None: + self.volume_snapshot_status = volume_snapshot_status + + @property + def creation_time(self): + """ + Gets the creation_time of this V1alpha1VirtualMachineSnapshotContentStatus. + + :return: The creation_time of this V1alpha1VirtualMachineSnapshotContentStatus. + :rtype: V1Time + """ + return self._creation_time + + @creation_time.setter + def creation_time(self, creation_time): + """ + Sets the creation_time of this V1alpha1VirtualMachineSnapshotContentStatus. + + :param creation_time: The creation_time of this V1alpha1VirtualMachineSnapshotContentStatus. + :type: V1Time + """ + + self._creation_time = creation_time + + @property + def error(self): + """ + Gets the error of this V1alpha1VirtualMachineSnapshotContentStatus. + + :return: The error of this V1alpha1VirtualMachineSnapshotContentStatus. + :rtype: V1alpha1VirtualMachineSnapshotError + """ + return self._error + + @error.setter + def error(self, error): + """ + Sets the error of this V1alpha1VirtualMachineSnapshotContentStatus. + + :param error: The error of this V1alpha1VirtualMachineSnapshotContentStatus. + :type: V1alpha1VirtualMachineSnapshotError + """ + + self._error = error + + @property + def ready_to_use(self): + """ + Gets the ready_to_use of this V1alpha1VirtualMachineSnapshotContentStatus. + + :return: The ready_to_use of this V1alpha1VirtualMachineSnapshotContentStatus. + :rtype: bool + """ + return self._ready_to_use + + @ready_to_use.setter + def ready_to_use(self, ready_to_use): + """ + Sets the ready_to_use of this V1alpha1VirtualMachineSnapshotContentStatus. + + :param ready_to_use: The ready_to_use of this V1alpha1VirtualMachineSnapshotContentStatus. + :type: bool + """ + + self._ready_to_use = ready_to_use + + @property + def volume_snapshot_status(self): + """ + Gets the volume_snapshot_status of this V1alpha1VirtualMachineSnapshotContentStatus. + + :return: The volume_snapshot_status of this V1alpha1VirtualMachineSnapshotContentStatus. + :rtype: list[V1alpha1VolumeSnapshotStatus] + """ + return self._volume_snapshot_status + + @volume_snapshot_status.setter + def volume_snapshot_status(self, volume_snapshot_status): + """ + Sets the volume_snapshot_status of this V1alpha1VirtualMachineSnapshotContentStatus. + + :param volume_snapshot_status: The volume_snapshot_status of this V1alpha1VirtualMachineSnapshotContentStatus. + :type: list[V1alpha1VolumeSnapshotStatus] + """ + + self._volume_snapshot_status = volume_snapshot_status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineSnapshotContentStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_error.py b/kubevirt/models/v1alpha1_virtual_machine_snapshot_error.py new file mode 100644 index 00000000..0193c240 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_snapshot_error.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineSnapshotError(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'message': 'str', + 'time': 'V1Time' + } + + attribute_map = { + 'message': 'message', + 'time': 'time' + } + + def __init__(self, message=None, time=None): + """ + V1alpha1VirtualMachineSnapshotError - a model defined in Swagger + """ + + self._message = None + self._time = None + + if message is not None: + self.message = message + if time is not None: + self.time = time + + @property + def message(self): + """ + Gets the message of this V1alpha1VirtualMachineSnapshotError. + + :return: The message of this V1alpha1VirtualMachineSnapshotError. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1alpha1VirtualMachineSnapshotError. + + :param message: The message of this V1alpha1VirtualMachineSnapshotError. + :type: str + """ + + self._message = message + + @property + def time(self): + """ + Gets the time of this V1alpha1VirtualMachineSnapshotError. + + :return: The time of this V1alpha1VirtualMachineSnapshotError. + :rtype: V1Time + """ + return self._time + + @time.setter + def time(self, time): + """ + Sets the time of this V1alpha1VirtualMachineSnapshotError. + + :param time: The time of this V1alpha1VirtualMachineSnapshotError. + :type: V1Time + """ + + self._time = time + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineSnapshotError): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_list.py b/kubevirt/models/v1alpha1_virtual_machine_snapshot_list.py new file mode 100644 index 00000000..f4c0794e --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_snapshot_list.py @@ -0,0 +1,207 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineSnapshotList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'items': 'list[V1alpha1VirtualMachineSnapshot]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1alpha1VirtualMachineSnapshotList - a model defined in Swagger + """ + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + self.metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1VirtualMachineSnapshotList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1alpha1VirtualMachineSnapshotList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1VirtualMachineSnapshotList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1VirtualMachineSnapshotList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1alpha1VirtualMachineSnapshotList. + + :return: The items of this V1alpha1VirtualMachineSnapshotList. + :rtype: list[V1alpha1VirtualMachineSnapshot] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1alpha1VirtualMachineSnapshotList. + + :param items: The items of this V1alpha1VirtualMachineSnapshotList. + :type: list[V1alpha1VirtualMachineSnapshot] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1alpha1VirtualMachineSnapshotList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1VirtualMachineSnapshotList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1VirtualMachineSnapshotList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1VirtualMachineSnapshotList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1VirtualMachineSnapshotList. + + :return: The metadata of this V1alpha1VirtualMachineSnapshotList. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1VirtualMachineSnapshotList. + + :param metadata: The metadata of this V1alpha1VirtualMachineSnapshotList. + :type: V1ListMeta + """ + if metadata is None: + raise ValueError("Invalid value for `metadata`, must not be `None`") + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineSnapshotList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_spec.py b/kubevirt/models/v1alpha1_virtual_machine_snapshot_spec.py new file mode 100644 index 00000000..c7a7782b --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_snapshot_spec.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineSnapshotSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'source': 'V1TypedLocalObjectReference', + 'time': 'str' + } + + attribute_map = { + 'source': 'source', + 'time': 'time' + } + + def __init__(self, source=None, time=None): + """ + V1alpha1VirtualMachineSnapshotSpec - a model defined in Swagger + """ + + self._source = None + self._time = None + + self.source = source + if time is not None: + self.time = time + + @property + def source(self): + """ + Gets the source of this V1alpha1VirtualMachineSnapshotSpec. + + :return: The source of this V1alpha1VirtualMachineSnapshotSpec. + :rtype: V1TypedLocalObjectReference + """ + return self._source + + @source.setter + def source(self, source): + """ + Sets the source of this V1alpha1VirtualMachineSnapshotSpec. + + :param source: The source of this V1alpha1VirtualMachineSnapshotSpec. + :type: V1TypedLocalObjectReference + """ + if source is None: + raise ValueError("Invalid value for `source`, must not be `None`") + + self._source = source + + @property + def time(self): + """ + Gets the time of this V1alpha1VirtualMachineSnapshotSpec. + + :return: The time of this V1alpha1VirtualMachineSnapshotSpec. + :rtype: str + """ + return self._time + + @time.setter + def time(self, time): + """ + Sets the time of this V1alpha1VirtualMachineSnapshotSpec. + + :param time: The time of this V1alpha1VirtualMachineSnapshotSpec. + :type: str + """ + + self._time = time + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineSnapshotSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py b/kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py new file mode 100644 index 00000000..68a18480 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py @@ -0,0 +1,227 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineSnapshotStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'conditions': 'list[V1alpha1VirtualMachineSnapshotCondition]', + 'creation_time': 'V1Time', + 'error': 'V1alpha1VirtualMachineSnapshotError', + 'ready_to_use': 'bool', + 'virtual_machine_snapshot_content_name': 'str' + } + + attribute_map = { + 'conditions': 'conditions', + 'creation_time': 'creationTime', + 'error': 'error', + 'ready_to_use': 'readyToUse', + 'virtual_machine_snapshot_content_name': 'virtualMachineSnapshotContentName' + } + + def __init__(self, conditions=None, creation_time=None, error=None, ready_to_use=None, virtual_machine_snapshot_content_name=None): + """ + V1alpha1VirtualMachineSnapshotStatus - a model defined in Swagger + """ + + self._conditions = None + self._creation_time = None + self._error = None + self._ready_to_use = None + self._virtual_machine_snapshot_content_name = None + + if conditions is not None: + self.conditions = conditions + if creation_time is not None: + self.creation_time = creation_time + if error is not None: + self.error = error + if ready_to_use is not None: + self.ready_to_use = ready_to_use + if virtual_machine_snapshot_content_name is not None: + self.virtual_machine_snapshot_content_name = virtual_machine_snapshot_content_name + + @property + def conditions(self): + """ + Gets the conditions of this V1alpha1VirtualMachineSnapshotStatus. + + :return: The conditions of this V1alpha1VirtualMachineSnapshotStatus. + :rtype: list[V1alpha1VirtualMachineSnapshotCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1alpha1VirtualMachineSnapshotStatus. + + :param conditions: The conditions of this V1alpha1VirtualMachineSnapshotStatus. + :type: list[V1alpha1VirtualMachineSnapshotCondition] + """ + + self._conditions = conditions + + @property + def creation_time(self): + """ + Gets the creation_time of this V1alpha1VirtualMachineSnapshotStatus. + + :return: The creation_time of this V1alpha1VirtualMachineSnapshotStatus. + :rtype: V1Time + """ + return self._creation_time + + @creation_time.setter + def creation_time(self, creation_time): + """ + Sets the creation_time of this V1alpha1VirtualMachineSnapshotStatus. + + :param creation_time: The creation_time of this V1alpha1VirtualMachineSnapshotStatus. + :type: V1Time + """ + + self._creation_time = creation_time + + @property + def error(self): + """ + Gets the error of this V1alpha1VirtualMachineSnapshotStatus. + + :return: The error of this V1alpha1VirtualMachineSnapshotStatus. + :rtype: V1alpha1VirtualMachineSnapshotError + """ + return self._error + + @error.setter + def error(self, error): + """ + Sets the error of this V1alpha1VirtualMachineSnapshotStatus. + + :param error: The error of this V1alpha1VirtualMachineSnapshotStatus. + :type: V1alpha1VirtualMachineSnapshotError + """ + + self._error = error + + @property + def ready_to_use(self): + """ + Gets the ready_to_use of this V1alpha1VirtualMachineSnapshotStatus. + + :return: The ready_to_use of this V1alpha1VirtualMachineSnapshotStatus. + :rtype: bool + """ + return self._ready_to_use + + @ready_to_use.setter + def ready_to_use(self, ready_to_use): + """ + Sets the ready_to_use of this V1alpha1VirtualMachineSnapshotStatus. + + :param ready_to_use: The ready_to_use of this V1alpha1VirtualMachineSnapshotStatus. + :type: bool + """ + + self._ready_to_use = ready_to_use + + @property + def virtual_machine_snapshot_content_name(self): + """ + Gets the virtual_machine_snapshot_content_name of this V1alpha1VirtualMachineSnapshotStatus. + + :return: The virtual_machine_snapshot_content_name of this V1alpha1VirtualMachineSnapshotStatus. + :rtype: str + """ + return self._virtual_machine_snapshot_content_name + + @virtual_machine_snapshot_content_name.setter + def virtual_machine_snapshot_content_name(self, virtual_machine_snapshot_content_name): + """ + Sets the virtual_machine_snapshot_content_name of this V1alpha1VirtualMachineSnapshotStatus. + + :param virtual_machine_snapshot_content_name: The virtual_machine_snapshot_content_name of this V1alpha1VirtualMachineSnapshotStatus. + :type: str + """ + + self._virtual_machine_snapshot_content_name = virtual_machine_snapshot_content_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineSnapshotStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_volume_backup.py b/kubevirt/models/v1alpha1_volume_backup.py new file mode 100644 index 00000000..18be213d --- /dev/null +++ b/kubevirt/models/v1alpha1_volume_backup.py @@ -0,0 +1,177 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VolumeBackup(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'disk_name': 'str', + 'persistent_volume_claim': 'V1PersistentVolumeClaim', + 'volume_snapshot_name': 'str' + } + + attribute_map = { + 'disk_name': 'diskName', + 'persistent_volume_claim': 'persistentVolumeClaim', + 'volume_snapshot_name': 'volumeSnapshotName' + } + + def __init__(self, disk_name=None, persistent_volume_claim=None, volume_snapshot_name=None): + """ + V1alpha1VolumeBackup - a model defined in Swagger + """ + + self._disk_name = None + self._persistent_volume_claim = None + self._volume_snapshot_name = None + + self.disk_name = disk_name + self.persistent_volume_claim = persistent_volume_claim + if volume_snapshot_name is not None: + self.volume_snapshot_name = volume_snapshot_name + + @property + def disk_name(self): + """ + Gets the disk_name of this V1alpha1VolumeBackup. + + :return: The disk_name of this V1alpha1VolumeBackup. + :rtype: str + """ + return self._disk_name + + @disk_name.setter + def disk_name(self, disk_name): + """ + Sets the disk_name of this V1alpha1VolumeBackup. + + :param disk_name: The disk_name of this V1alpha1VolumeBackup. + :type: str + """ + if disk_name is None: + raise ValueError("Invalid value for `disk_name`, must not be `None`") + + self._disk_name = disk_name + + @property + def persistent_volume_claim(self): + """ + Gets the persistent_volume_claim of this V1alpha1VolumeBackup. + + :return: The persistent_volume_claim of this V1alpha1VolumeBackup. + :rtype: V1PersistentVolumeClaim + """ + return self._persistent_volume_claim + + @persistent_volume_claim.setter + def persistent_volume_claim(self, persistent_volume_claim): + """ + Sets the persistent_volume_claim of this V1alpha1VolumeBackup. + + :param persistent_volume_claim: The persistent_volume_claim of this V1alpha1VolumeBackup. + :type: V1PersistentVolumeClaim + """ + if persistent_volume_claim is None: + raise ValueError("Invalid value for `persistent_volume_claim`, must not be `None`") + + self._persistent_volume_claim = persistent_volume_claim + + @property + def volume_snapshot_name(self): + """ + Gets the volume_snapshot_name of this V1alpha1VolumeBackup. + + :return: The volume_snapshot_name of this V1alpha1VolumeBackup. + :rtype: str + """ + return self._volume_snapshot_name + + @volume_snapshot_name.setter + def volume_snapshot_name(self, volume_snapshot_name): + """ + Sets the volume_snapshot_name of this V1alpha1VolumeBackup. + + :param volume_snapshot_name: The volume_snapshot_name of this V1alpha1VolumeBackup. + :type: str + """ + + self._volume_snapshot_name = volume_snapshot_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VolumeBackup): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_volume_snapshot_status.py b/kubevirt/models/v1alpha1_volume_snapshot_status.py new file mode 100644 index 00000000..56c513df --- /dev/null +++ b/kubevirt/models/v1alpha1_volume_snapshot_status.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VolumeSnapshotStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'creation_time': 'V1Time', + 'error': 'V1alpha1VirtualMachineSnapshotError', + 'ready_to_use': 'bool', + 'volume_snapshot_name': 'str' + } + + attribute_map = { + 'creation_time': 'creationTime', + 'error': 'error', + 'ready_to_use': 'readyToUse', + 'volume_snapshot_name': 'volumeSnapshotName' + } + + def __init__(self, creation_time=None, error=None, ready_to_use=None, volume_snapshot_name=None): + """ + V1alpha1VolumeSnapshotStatus - a model defined in Swagger + """ + + self._creation_time = None + self._error = None + self._ready_to_use = None + self._volume_snapshot_name = None + + if creation_time is not None: + self.creation_time = creation_time + if error is not None: + self.error = error + if ready_to_use is not None: + self.ready_to_use = ready_to_use + self.volume_snapshot_name = volume_snapshot_name + + @property + def creation_time(self): + """ + Gets the creation_time of this V1alpha1VolumeSnapshotStatus. + + :return: The creation_time of this V1alpha1VolumeSnapshotStatus. + :rtype: V1Time + """ + return self._creation_time + + @creation_time.setter + def creation_time(self, creation_time): + """ + Sets the creation_time of this V1alpha1VolumeSnapshotStatus. + + :param creation_time: The creation_time of this V1alpha1VolumeSnapshotStatus. + :type: V1Time + """ + + self._creation_time = creation_time + + @property + def error(self): + """ + Gets the error of this V1alpha1VolumeSnapshotStatus. + + :return: The error of this V1alpha1VolumeSnapshotStatus. + :rtype: V1alpha1VirtualMachineSnapshotError + """ + return self._error + + @error.setter + def error(self, error): + """ + Sets the error of this V1alpha1VolumeSnapshotStatus. + + :param error: The error of this V1alpha1VolumeSnapshotStatus. + :type: V1alpha1VirtualMachineSnapshotError + """ + + self._error = error + + @property + def ready_to_use(self): + """ + Gets the ready_to_use of this V1alpha1VolumeSnapshotStatus. + + :return: The ready_to_use of this V1alpha1VolumeSnapshotStatus. + :rtype: bool + """ + return self._ready_to_use + + @ready_to_use.setter + def ready_to_use(self, ready_to_use): + """ + Sets the ready_to_use of this V1alpha1VolumeSnapshotStatus. + + :param ready_to_use: The ready_to_use of this V1alpha1VolumeSnapshotStatus. + :type: bool + """ + + self._ready_to_use = ready_to_use + + @property + def volume_snapshot_name(self): + """ + Gets the volume_snapshot_name of this V1alpha1VolumeSnapshotStatus. + + :return: The volume_snapshot_name of this V1alpha1VolumeSnapshotStatus. + :rtype: str + """ + return self._volume_snapshot_name + + @volume_snapshot_name.setter + def volume_snapshot_name(self, volume_snapshot_name): + """ + Sets the volume_snapshot_name of this V1alpha1VolumeSnapshotStatus. + + :param volume_snapshot_name: The volume_snapshot_name of this V1alpha1VolumeSnapshotStatus. + :type: str + """ + if volume_snapshot_name is None: + raise ValueError("Invalid value for `volume_snapshot_name`, must not be `None`") + + self._volume_snapshot_name = volume_snapshot_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VolumeSnapshotStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 22af3e2d..04ddccc9 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.29.0-149-gbe8e8985" +VERSION = "v0.30.0-36-gc5656f9e" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index ebde65f4..14972dcf 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.29.0-149-gbe8e8985" +"packageVersion": "v0.30.0-36-gc5656f9e" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 9e16f912..3967d687 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -84,6 +84,22 @@ def test_create_namespaced_virtual_machine_instance_replica_set(self): Test case for create_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_create_namespaced_virtual_machine_snapshot(self): + """ + Test case for create_namespaced_virtual_machine_snapshot + + + """ + pass + + def test_create_namespaced_virtual_machine_snapshot_content(self): + """ + Test case for create_namespaced_virtual_machine_snapshot_content + + """ pass @@ -124,6 +140,22 @@ def test_delete_collection_namespaced_virtual_machine_instance_replica_set(self) Test case for delete_collection_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_delete_collection_namespaced_virtual_machine_snapshot(self): + """ + Test case for delete_collection_namespaced_virtual_machine_snapshot + + + """ + pass + + def test_delete_collection_namespaced_virtual_machine_snapshot_content(self): + """ + Test case for delete_collection_namespaced_virtual_machine_snapshot_content + + """ pass @@ -164,6 +196,22 @@ def test_delete_namespaced_virtual_machine_instance_replica_set(self): Test case for delete_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_delete_namespaced_virtual_machine_snapshot(self): + """ + Test case for delete_namespaced_virtual_machine_snapshot + + + """ + pass + + def test_delete_namespaced_virtual_machine_snapshot_content(self): + """ + Test case for delete_namespaced_virtual_machine_snapshot_content + + """ pass @@ -183,9 +231,9 @@ def test_func7(self): """ pass - def test_get_api_group(self): + def test_get_api_group_kubevirt_io(self): """ - Test case for get_api_group + Test case for get_api_group_kubevirt_io """ @@ -199,9 +247,25 @@ def test_get_api_group_list(self): """ pass - def test_get_api_resources(self): + def test_get_api_group_snapshot_kubevirt_io(self): + """ + Test case for get_api_group_snapshot_kubevirt_io + + + """ + pass + + def test_get_api_resources_kubevirt_io_v1alpha3(self): """ - Test case for get_api_resources + Test case for get_api_resources_kubevirt_io_v1alpha3 + + + """ + pass + + def test_get_api_resources_snapshot_kubevirt_io_v1alpha1(self): + """ + Test case for get_api_resources_snapshot_kubevirt_io_v1alpha1 """ @@ -276,6 +340,22 @@ def test_list_namespaced_virtual_machine_instance_replica_set(self): Test case for list_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_list_namespaced_virtual_machine_snapshot(self): + """ + Test case for list_namespaced_virtual_machine_snapshot + + + """ + pass + + def test_list_namespaced_virtual_machine_snapshot_content(self): + """ + Test case for list_namespaced_virtual_machine_snapshot_content + + """ pass @@ -316,6 +396,22 @@ def test_list_virtual_machine_instance_replica_set_for_all_namespaces(self): Test case for list_virtual_machine_instance_replica_set_for_all_namespaces + """ + pass + + def test_list_virtual_machine_snapshot_content_for_all_namespaces(self): + """ + Test case for list_virtual_machine_snapshot_content_for_all_namespaces + + + """ + pass + + def test_list_virtual_machine_snapshot_for_all_namespaces(self): + """ + Test case for list_virtual_machine_snapshot_for_all_namespaces + + """ pass @@ -364,6 +460,22 @@ def test_patch_namespaced_virtual_machine_instance_replica_set(self): Test case for patch_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_patch_namespaced_virtual_machine_snapshot(self): + """ + Test case for patch_namespaced_virtual_machine_snapshot + + + """ + pass + + def test_patch_namespaced_virtual_machine_snapshot_content(self): + """ + Test case for patch_namespaced_virtual_machine_snapshot_content + + """ pass @@ -412,6 +524,22 @@ def test_read_namespaced_virtual_machine_instance_replica_set(self): Test case for read_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_read_namespaced_virtual_machine_snapshot(self): + """ + Test case for read_namespaced_virtual_machine_snapshot + + + """ + pass + + def test_read_namespaced_virtual_machine_snapshot_content(self): + """ + Test case for read_namespaced_virtual_machine_snapshot_content + + """ pass @@ -460,6 +588,22 @@ def test_replace_namespaced_virtual_machine_instance_replica_set(self): Test case for replace_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_replace_namespaced_virtual_machine_snapshot(self): + """ + Test case for replace_namespaced_virtual_machine_snapshot + + + """ + pass + + def test_replace_namespaced_virtual_machine_snapshot_content(self): + """ + Test case for replace_namespaced_virtual_machine_snapshot_content + + """ pass @@ -564,6 +708,22 @@ def test_watch_namespaced_virtual_machine_instance_replica_set(self): Test case for watch_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_watch_namespaced_virtual_machine_snapshot(self): + """ + Test case for watch_namespaced_virtual_machine_snapshot + + + """ + pass + + def test_watch_namespaced_virtual_machine_snapshot_content(self): + """ + Test case for watch_namespaced_virtual_machine_snapshot_content + + """ pass @@ -604,6 +764,22 @@ def test_watch_virtual_machine_list_for_all_namespaces(self): Test case for watch_virtual_machine_list_for_all_namespaces + """ + pass + + def test_watch_virtual_machine_snapshot_content_list_for_all_namespaces(self): + """ + Test case for watch_virtual_machine_snapshot_content_list_for_all_namespaces + + + """ + pass + + def test_watch_virtual_machine_snapshot_list_for_all_namespaces(self): + """ + Test case for watch_virtual_machine_snapshot_list_for_all_namespaces + + """ pass diff --git a/test/test_v1_persistent_volume_claim.py b/test/test_v1_persistent_volume_claim.py new file mode 100644 index 00000000..a2d6fd3c --- /dev/null +++ b/test/test_v1_persistent_volume_claim.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_persistent_volume_claim import V1PersistentVolumeClaim + + +class TestV1PersistentVolumeClaim(unittest.TestCase): + """ V1PersistentVolumeClaim unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PersistentVolumeClaim(self): + """ + Test V1PersistentVolumeClaim + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_persistent_volume_claim.V1PersistentVolumeClaim() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_persistent_volume_claim_condition.py b/test/test_v1_persistent_volume_claim_condition.py new file mode 100644 index 00000000..b53a6498 --- /dev/null +++ b/test/test_v1_persistent_volume_claim_condition.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_persistent_volume_claim_condition import V1PersistentVolumeClaimCondition + + +class TestV1PersistentVolumeClaimCondition(unittest.TestCase): + """ V1PersistentVolumeClaimCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PersistentVolumeClaimCondition(self): + """ + Test V1PersistentVolumeClaimCondition + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_persistent_volume_claim_condition.V1PersistentVolumeClaimCondition() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_persistent_volume_claim_status.py b/test/test_v1_persistent_volume_claim_status.py new file mode 100644 index 00000000..9b204892 --- /dev/null +++ b/test/test_v1_persistent_volume_claim_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_persistent_volume_claim_status import V1PersistentVolumeClaimStatus + + +class TestV1PersistentVolumeClaimStatus(unittest.TestCase): + """ V1PersistentVolumeClaimStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PersistentVolumeClaimStatus(self): + """ + Test V1PersistentVolumeClaimStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_persistent_volume_claim_status.V1PersistentVolumeClaimStatus() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_source_spec.py b/test/test_v1alpha1_source_spec.py new file mode 100644 index 00000000..cce3573d --- /dev/null +++ b/test/test_v1alpha1_source_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_source_spec import V1alpha1SourceSpec + + +class TestV1alpha1SourceSpec(unittest.TestCase): + """ V1alpha1SourceSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1SourceSpec(self): + """ + Test V1alpha1SourceSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_source_spec.V1alpha1SourceSpec() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_snapshot.py b/test/test_v1alpha1_virtual_machine_snapshot.py new file mode 100644 index 00000000..6a345852 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_snapshot.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_snapshot import V1alpha1VirtualMachineSnapshot + + +class TestV1alpha1VirtualMachineSnapshot(unittest.TestCase): + """ V1alpha1VirtualMachineSnapshot unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineSnapshot(self): + """ + Test V1alpha1VirtualMachineSnapshot + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_snapshot.V1alpha1VirtualMachineSnapshot() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_snapshot_condition.py b/test/test_v1alpha1_virtual_machine_snapshot_condition.py new file mode 100644 index 00000000..3912c7fa --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_snapshot_condition.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_snapshot_condition import V1alpha1VirtualMachineSnapshotCondition + + +class TestV1alpha1VirtualMachineSnapshotCondition(unittest.TestCase): + """ V1alpha1VirtualMachineSnapshotCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineSnapshotCondition(self): + """ + Test V1alpha1VirtualMachineSnapshotCondition + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_snapshot_condition.V1alpha1VirtualMachineSnapshotCondition() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_snapshot_content.py b/test/test_v1alpha1_virtual_machine_snapshot_content.py new file mode 100644 index 00000000..70e80494 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_snapshot_content.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_snapshot_content import V1alpha1VirtualMachineSnapshotContent + + +class TestV1alpha1VirtualMachineSnapshotContent(unittest.TestCase): + """ V1alpha1VirtualMachineSnapshotContent unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineSnapshotContent(self): + """ + Test V1alpha1VirtualMachineSnapshotContent + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_snapshot_content.V1alpha1VirtualMachineSnapshotContent() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_snapshot_content_list.py b/test/test_v1alpha1_virtual_machine_snapshot_content_list.py new file mode 100644 index 00000000..c03cb22e --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_snapshot_content_list.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_snapshot_content_list import V1alpha1VirtualMachineSnapshotContentList + + +class TestV1alpha1VirtualMachineSnapshotContentList(unittest.TestCase): + """ V1alpha1VirtualMachineSnapshotContentList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineSnapshotContentList(self): + """ + Test V1alpha1VirtualMachineSnapshotContentList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_snapshot_content_list.V1alpha1VirtualMachineSnapshotContentList() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_snapshot_content_spec.py b/test/test_v1alpha1_virtual_machine_snapshot_content_spec.py new file mode 100644 index 00000000..7633e80b --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_snapshot_content_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_snapshot_content_spec import V1alpha1VirtualMachineSnapshotContentSpec + + +class TestV1alpha1VirtualMachineSnapshotContentSpec(unittest.TestCase): + """ V1alpha1VirtualMachineSnapshotContentSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineSnapshotContentSpec(self): + """ + Test V1alpha1VirtualMachineSnapshotContentSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_snapshot_content_spec.V1alpha1VirtualMachineSnapshotContentSpec() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_snapshot_content_status.py b/test/test_v1alpha1_virtual_machine_snapshot_content_status.py new file mode 100644 index 00000000..54f317c4 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_snapshot_content_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_snapshot_content_status import V1alpha1VirtualMachineSnapshotContentStatus + + +class TestV1alpha1VirtualMachineSnapshotContentStatus(unittest.TestCase): + """ V1alpha1VirtualMachineSnapshotContentStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineSnapshotContentStatus(self): + """ + Test V1alpha1VirtualMachineSnapshotContentStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_snapshot_content_status.V1alpha1VirtualMachineSnapshotContentStatus() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_snapshot_error.py b/test/test_v1alpha1_virtual_machine_snapshot_error.py new file mode 100644 index 00000000..5c8121be --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_snapshot_error.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_snapshot_error import V1alpha1VirtualMachineSnapshotError + + +class TestV1alpha1VirtualMachineSnapshotError(unittest.TestCase): + """ V1alpha1VirtualMachineSnapshotError unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineSnapshotError(self): + """ + Test V1alpha1VirtualMachineSnapshotError + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_snapshot_error.V1alpha1VirtualMachineSnapshotError() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_snapshot_list.py b/test/test_v1alpha1_virtual_machine_snapshot_list.py new file mode 100644 index 00000000..52db287f --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_snapshot_list.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_snapshot_list import V1alpha1VirtualMachineSnapshotList + + +class TestV1alpha1VirtualMachineSnapshotList(unittest.TestCase): + """ V1alpha1VirtualMachineSnapshotList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineSnapshotList(self): + """ + Test V1alpha1VirtualMachineSnapshotList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_snapshot_list.V1alpha1VirtualMachineSnapshotList() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_snapshot_spec.py b/test/test_v1alpha1_virtual_machine_snapshot_spec.py new file mode 100644 index 00000000..a91a4ce0 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_snapshot_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_snapshot_spec import V1alpha1VirtualMachineSnapshotSpec + + +class TestV1alpha1VirtualMachineSnapshotSpec(unittest.TestCase): + """ V1alpha1VirtualMachineSnapshotSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineSnapshotSpec(self): + """ + Test V1alpha1VirtualMachineSnapshotSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_snapshot_spec.V1alpha1VirtualMachineSnapshotSpec() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_snapshot_status.py b/test/test_v1alpha1_virtual_machine_snapshot_status.py new file mode 100644 index 00000000..5aab411e --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_snapshot_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_snapshot_status import V1alpha1VirtualMachineSnapshotStatus + + +class TestV1alpha1VirtualMachineSnapshotStatus(unittest.TestCase): + """ V1alpha1VirtualMachineSnapshotStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineSnapshotStatus(self): + """ + Test V1alpha1VirtualMachineSnapshotStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_snapshot_status.V1alpha1VirtualMachineSnapshotStatus() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_volume_backup.py b/test/test_v1alpha1_volume_backup.py new file mode 100644 index 00000000..49fe4d39 --- /dev/null +++ b/test/test_v1alpha1_volume_backup.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_volume_backup import V1alpha1VolumeBackup + + +class TestV1alpha1VolumeBackup(unittest.TestCase): + """ V1alpha1VolumeBackup unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VolumeBackup(self): + """ + Test V1alpha1VolumeBackup + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_volume_backup.V1alpha1VolumeBackup() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_volume_snapshot_status.py b/test/test_v1alpha1_volume_snapshot_status.py new file mode 100644 index 00000000..309f5bcc --- /dev/null +++ b/test/test_v1alpha1_volume_snapshot_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_volume_snapshot_status import V1alpha1VolumeSnapshotStatus + + +class TestV1alpha1VolumeSnapshotStatus(unittest.TestCase): + """ V1alpha1VolumeSnapshotStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VolumeSnapshotStatus(self): + """ + Test V1alpha1VolumeSnapshotStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_volume_snapshot_status.V1alpha1VolumeSnapshotStatus() + pass + + +if __name__ == '__main__': + unittest.main() From 8109e1b103f0985c1374ce1c686f16bf133f081e Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sat, 20 Jun 2020 22:06:09 +0000 Subject: [PATCH 129/521] Client Python update by Travis Build 12939 --- README.md | 2 +- docs/V1alpha1VirtualMachineSnapshotSpec.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1alpha1_virtual_machine_snapshot_spec.py | 58 +++++++++---------- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index d31f4f8b..87b1bbaf 100644 --- a/README.md +++ b/README.md @@ -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: v0.30.0-36-gc5656f9e +- Package version: v0.30.0-90-g5665b11c - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1alpha1VirtualMachineSnapshotSpec.md b/docs/V1alpha1VirtualMachineSnapshotSpec.md index 09a0a60a..afc39ee0 100644 --- a/docs/V1alpha1VirtualMachineSnapshotSpec.md +++ b/docs/V1alpha1VirtualMachineSnapshotSpec.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**deletion_policy** | **str** | | [optional] **source** | [**V1TypedLocalObjectReference**](V1TypedLocalObjectReference.md) | | -**time** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 4b74ce96..1ad93ffb 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.30.0-36-gc5656f9e" + release_note="Auto-generated client v0.30.0-90-g5665b11c" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 9ce80eae..fc729219 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.30.0-36-gc5656f9e/python' + self.user_agent = 'Swagger-Codegen/v0.30.0-90-g5665b11c/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 4ef9e0ce..c73bfd16 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.30.0-36-gc5656f9e".\ + "SDK Package Version: v0.30.0-90-g5665b11c".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_spec.py b/kubevirt/models/v1alpha1_virtual_machine_snapshot_spec.py index c7a7782b..dc9e7dae 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_snapshot_spec.py +++ b/kubevirt/models/v1alpha1_virtual_machine_snapshot_spec.py @@ -31,26 +31,47 @@ class V1alpha1VirtualMachineSnapshotSpec(object): and the value is json key in definition. """ swagger_types = { - 'source': 'V1TypedLocalObjectReference', - 'time': 'str' + 'deletion_policy': 'str', + 'source': 'V1TypedLocalObjectReference' } attribute_map = { - 'source': 'source', - 'time': 'time' + 'deletion_policy': 'deletionPolicy', + 'source': 'source' } - def __init__(self, source=None, time=None): + def __init__(self, deletion_policy=None, source=None): """ V1alpha1VirtualMachineSnapshotSpec - a model defined in Swagger """ + self._deletion_policy = None self._source = None - self._time = None + if deletion_policy is not None: + self.deletion_policy = deletion_policy self.source = source - if time is not None: - self.time = time + + @property + def deletion_policy(self): + """ + Gets the deletion_policy of this V1alpha1VirtualMachineSnapshotSpec. + + :return: The deletion_policy of this V1alpha1VirtualMachineSnapshotSpec. + :rtype: str + """ + return self._deletion_policy + + @deletion_policy.setter + def deletion_policy(self, deletion_policy): + """ + Sets the deletion_policy of this V1alpha1VirtualMachineSnapshotSpec. + + :param deletion_policy: The deletion_policy of this V1alpha1VirtualMachineSnapshotSpec. + :type: str + """ + + self._deletion_policy = deletion_policy @property def source(self): @@ -75,27 +96,6 @@ def source(self, source): self._source = source - @property - def time(self): - """ - Gets the time of this V1alpha1VirtualMachineSnapshotSpec. - - :return: The time of this V1alpha1VirtualMachineSnapshotSpec. - :rtype: str - """ - return self._time - - @time.setter - def time(self, time): - """ - Sets the time of this V1alpha1VirtualMachineSnapshotSpec. - - :param time: The time of this V1alpha1VirtualMachineSnapshotSpec. - :type: str - """ - - self._time = time - def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 04ddccc9..54a6f3aa 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.30.0-36-gc5656f9e" +VERSION = "v0.30.0-90-g5665b11c" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 14972dcf..9f89011c 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.30.0-36-gc5656f9e" +"packageVersion": "v0.30.0-90-g5665b11c" } From ae4c3d6470237ce96837bf787856c9e5f35d7299 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sun, 21 Jun 2020 18:47:54 +0000 Subject: [PATCH 130/521] Client Python update by Travis Build 12950 --- README.md | 2 +- docs/V1EFI.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_efi.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 87b1bbaf..00fe80d6 100644 --- a/README.md +++ b/README.md @@ -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: v0.30.0-90-g5665b11c +- Package version: v0.30.0-102-gb8543ba8 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1EFI.md b/docs/V1EFI.md index 9daa0963..37cb563e 100644 --- a/docs/V1EFI.md +++ b/docs/V1EFI.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**secure_boot** | **bool** | If set, SecureBoot will be enabled and the OVMF roms will be swapped for SecureBoot-enabled ones. Requires SMM to be enabled. Defaults to false | [optional] +**secure_boot** | **bool** | If set, SecureBoot will be enabled and the OVMF roms will be swapped for SecureBoot-enabled ones. Requires SMM to be enabled. Defaults to true | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 1ad93ffb..757c2210 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.30.0-90-g5665b11c" + release_note="Auto-generated client v0.30.0-102-gb8543ba8" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index fc729219..9324e8c9 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.30.0-90-g5665b11c/python' + self.user_agent = 'Swagger-Codegen/v0.30.0-102-gb8543ba8/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c73bfd16..c6de514f 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.30.0-90-g5665b11c".\ + "SDK Package Version: v0.30.0-102-gb8543ba8".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_efi.py b/kubevirt/models/v1_efi.py index 41dda54b..c1a477f6 100644 --- a/kubevirt/models/v1_efi.py +++ b/kubevirt/models/v1_efi.py @@ -52,7 +52,7 @@ def __init__(self, secure_boot=None): def secure_boot(self): """ Gets the secure_boot of this V1EFI. - If set, SecureBoot will be enabled and the OVMF roms will be swapped for SecureBoot-enabled ones. Requires SMM to be enabled. Defaults to false + If set, SecureBoot will be enabled and the OVMF roms will be swapped for SecureBoot-enabled ones. Requires SMM to be enabled. Defaults to true :return: The secure_boot of this V1EFI. :rtype: bool @@ -63,7 +63,7 @@ def secure_boot(self): def secure_boot(self, secure_boot): """ Sets the secure_boot of this V1EFI. - If set, SecureBoot will be enabled and the OVMF roms will be swapped for SecureBoot-enabled ones. Requires SMM to be enabled. Defaults to false + If set, SecureBoot will be enabled and the OVMF roms will be swapped for SecureBoot-enabled ones. Requires SMM to be enabled. Defaults to true :param secure_boot: The secure_boot of this V1EFI. :type: bool diff --git a/setup.py b/setup.py index 54a6f3aa..009990a0 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.30.0-90-g5665b11c" +VERSION = "v0.30.0-102-gb8543ba8" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 9f89011c..b3947389 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.30.0-90-g5665b11c" +"packageVersion": "v0.30.0-102-gb8543ba8" } From fda25d082b04b19848dcd41e3fe9024dc0b07594 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sun, 28 Jun 2020 05:17:30 +0000 Subject: [PATCH 131/521] Client Python update by Travis Build 13104 --- README.md | 3 +- docs/DefaultApi.md | 43 ++++++++++++++++++ git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 88 ++++++++++++++++++++++++++++++++++++ kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 8 ++++ 9 files changed, 146 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 00fe80d6..f728788e 100644 --- a/README.md +++ b/README.md @@ -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: v0.30.0-102-gb8543ba8 +- Package version: v0.30.0-180-g758da66d - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -92,6 +92,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**filesystemlist**](docs/DefaultApi.md#filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | +*DefaultApi* | [**func1**](docs/DefaultApi.md#func1) | **GET** /healthz | *DefaultApi* | [**func7**](docs/DefaultApi.md#func7) | **GET** /openapi/v2 | *DefaultApi* | [**get_api_group_kubevirt_io**](docs/DefaultApi.md#get_api_group_kubevirt_io) | **GET** /apis/kubevirt.io/ | *DefaultApi* | [**get_api_group_list**](docs/DefaultApi.md#get_api_group_list) | **GET** /apis | diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 7241e454..400868db 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -28,6 +28,7 @@ Method | HTTP request | Description [**delete_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**filesystemlist**](DefaultApi.md#filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | +[**func1**](DefaultApi.md#func1) | **GET** /healthz | [**func7**](DefaultApi.md#func7) | **GET** /openapi/v2 | [**get_api_group_kubevirt_io**](DefaultApi.md#get_api_group_kubevirt_io) | **GET** /apis/kubevirt.io/ | [**get_api_group_list**](DefaultApi.md#get_api_group_list) | **GET** /apis | @@ -1403,6 +1404,48 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **func1** +> func1() + + + +Health endpoint + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_instance.func1() +except ApiException as e: + print("Exception when calling DefaultApi->func1: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **func7** > func7() diff --git a/git_push.sh b/git_push.sh index 757c2210..1a1507fb 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.30.0-102-gb8543ba8" + release_note="Auto-generated client v0.30.0-180-g758da66d" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 9324e8c9..3ec7669f 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.30.0-102-gb8543ba8/python' + self.user_agent = 'Swagger-Codegen/v0.30.0-180-g758da66d/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index b0ec6940..bf3f1133 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -2897,6 +2897,94 @@ def filesystemlist_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def func1(self, **kwargs): + """ + Health endpoint + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.func1(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.func1_with_http_info(**kwargs) + else: + (data) = self.func1_with_http_info(**kwargs) + return data + + def func1_with_http_info(self, **kwargs): + """ + Health endpoint + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.func1_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method func1" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/healthz', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def func7(self, **kwargs): """ This method makes a synchronous HTTP request by default. To make an diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c6de514f..2018c3d9 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.30.0-102-gb8543ba8".\ + "SDK Package Version: v0.30.0-180-g758da66d".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index 009990a0..5d58ae6b 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.30.0-102-gb8543ba8" +VERSION = "v0.30.0-180-g758da66d" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b3947389..5445e808 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.30.0-102-gb8543ba8" +"packageVersion": "v0.30.0-180-g758da66d" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 3967d687..af34dcca 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -220,6 +220,14 @@ def test_filesystemlist(self): Test case for filesystemlist + """ + pass + + def test_func1(self): + """ + Test case for func1 + + """ pass From 0f67914ee0ec470cbda00ae527c4e3fc4d581553 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sat, 11 Jul 2020 03:11:18 +0000 Subject: [PATCH 132/521] Client Python update by Travis Build 13390 --- README.md | 25 +- docs/DefaultApi.md | 580 +++++++ docs/V1DeveloperConfiguration.md | 14 + docs/V1Duration.md | 9 + docs/V1KubeVirt.md | 14 + docs/V1KubeVirtCertificateRotateStrategy.md | 10 + docs/V1KubeVirtCondition.md | 13 + docs/V1KubeVirtConfiguration.md | 21 + docs/V1KubeVirtList.md | 13 + docs/V1KubeVirtSelfSignConfiguration.md | 12 + docs/V1KubeVirtSpec.md | 17 + docs/V1KubeVirtStatus.md | 20 + docs/V1MigrationConfiguration.md | 17 + docs/V1NetworkConfiguration.md | 12 + docs/V1SMBiosConfiguration.md | 14 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 41 + kubevirt/__init__.py | 13 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 1541 +++++++++++++++-- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 13 + kubevirt/models/v1_developer_configuration.py | 227 +++ kubevirt/models/v1_duration.py | 99 ++ kubevirt/models/v1_kube_virt.py | 232 +++ ...1_kube_virt_certificate_rotate_strategy.py | 123 ++ kubevirt/models/v1_kube_virt_condition.py | 203 +++ kubevirt/models/v1_kube_virt_configuration.py | 409 +++++ kubevirt/models/v1_kube_virt_list.py | 206 +++ .../v1_kube_virt_self_sign_configuration.py | 175 ++ kubevirt/models/v1_kube_virt_spec.py | 319 ++++ kubevirt/models/v1_kube_virt_status.py | 383 ++++ kubevirt/models/v1_migration_configuration.py | 307 ++++ kubevirt/models/v1_network_configuration.py | 175 ++ kubevirt/models/v1_sm_bios_configuration.py | 227 +++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 80 + test/test_v1_developer_configuration.py | 44 + test/test_v1_duration.py | 44 + test/test_v1_kube_virt.py | 44 + ...1_kube_virt_certificate_rotate_strategy.py | 44 + test/test_v1_kube_virt_condition.py | 44 + test/test_v1_kube_virt_configuration.py | 44 + test/test_v1_kube_virt_list.py | 44 + ...st_v1_kube_virt_self_sign_configuration.py | 44 + test/test_v1_kube_virt_spec.py | 44 + test/test_v1_kube_virt_status.py | 44 + test/test_v1_migration_configuration.py | 44 + test/test_v1_network_configuration.py | 44 + test/test_v1_sm_bios_configuration.py | 44 + 51 files changed, 5985 insertions(+), 161 deletions(-) create mode 100644 docs/V1DeveloperConfiguration.md create mode 100644 docs/V1Duration.md create mode 100644 docs/V1KubeVirt.md create mode 100644 docs/V1KubeVirtCertificateRotateStrategy.md create mode 100644 docs/V1KubeVirtCondition.md create mode 100644 docs/V1KubeVirtConfiguration.md create mode 100644 docs/V1KubeVirtList.md create mode 100644 docs/V1KubeVirtSelfSignConfiguration.md create mode 100644 docs/V1KubeVirtSpec.md create mode 100644 docs/V1KubeVirtStatus.md create mode 100644 docs/V1MigrationConfiguration.md create mode 100644 docs/V1NetworkConfiguration.md create mode 100644 docs/V1SMBiosConfiguration.md create mode 100644 kubevirt/models/v1_developer_configuration.py create mode 100644 kubevirt/models/v1_duration.py create mode 100644 kubevirt/models/v1_kube_virt.py create mode 100644 kubevirt/models/v1_kube_virt_certificate_rotate_strategy.py create mode 100644 kubevirt/models/v1_kube_virt_condition.py create mode 100644 kubevirt/models/v1_kube_virt_configuration.py create mode 100644 kubevirt/models/v1_kube_virt_list.py create mode 100644 kubevirt/models/v1_kube_virt_self_sign_configuration.py create mode 100644 kubevirt/models/v1_kube_virt_spec.py create mode 100644 kubevirt/models/v1_kube_virt_status.py create mode 100644 kubevirt/models/v1_migration_configuration.py create mode 100644 kubevirt/models/v1_network_configuration.py create mode 100644 kubevirt/models/v1_sm_bios_configuration.py create mode 100644 test/test_v1_developer_configuration.py create mode 100644 test/test_v1_duration.py create mode 100644 test/test_v1_kube_virt.py create mode 100644 test/test_v1_kube_virt_certificate_rotate_strategy.py create mode 100644 test/test_v1_kube_virt_condition.py create mode 100644 test/test_v1_kube_virt_configuration.py create mode 100644 test/test_v1_kube_virt_list.py create mode 100644 test/test_v1_kube_virt_self_sign_configuration.py create mode 100644 test/test_v1_kube_virt_spec.py create mode 100644 test/test_v1_kube_virt_status.py create mode 100644 test/test_v1_migration_configuration.py create mode 100644 test/test_v1_network_configuration.py create mode 100644 test/test_v1_sm_bios_configuration.py diff --git a/README.md b/README.md index f728788e..223fb4fd 100644 --- a/README.md +++ b/README.md @@ -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: v0.30.0-180-g758da66d +- Package version: v0.31.0-66-g442be6fa - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -70,6 +70,7 @@ Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *DefaultApi* | [**check_health**](docs/DefaultApi.md#check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha3/healthz | *DefaultApi* | [**console**](docs/DefaultApi.md#console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | +*DefaultApi* | [**create_namespaced_kube_virt**](docs/DefaultApi.md#create_namespaced_kube_virt) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | *DefaultApi* | [**create_namespaced_virtual_machine**](docs/DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | *DefaultApi* | [**create_namespaced_virtual_machine_instance**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | *DefaultApi* | [**create_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | @@ -77,6 +78,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**create_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | *DefaultApi* | [**create_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**create_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | +*DefaultApi* | [**delete_collection_namespaced_kube_virt**](docs/DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | *DefaultApi* | [**delete_collection_namespaced_virtual_machine**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | @@ -84,6 +86,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | +*DefaultApi* | [**delete_namespaced_kube_virt**](docs/DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine**](docs/DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | @@ -103,6 +106,8 @@ Class | Method | HTTP request | Description *DefaultApi* | [**get_root_paths**](docs/DefaultApi.md#get_root_paths) | **GET** / | *DefaultApi* | [**get_sub_api_group**](docs/DefaultApi.md#get_sub_api_group) | **GET** /apis/subresources.kubevirt.io | *DefaultApi* | [**guestosinfo**](docs/DefaultApi.md#guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | +*DefaultApi* | [**list_kube_virt_for_all_namespaces**](docs/DefaultApi.md#list_kube_virt_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/kubevirt | +*DefaultApi* | [**list_namespaced_kube_virt**](docs/DefaultApi.md#list_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | *DefaultApi* | [**list_namespaced_virtual_machine**](docs/DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | *DefaultApi* | [**list_namespaced_virtual_machine_instance**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | *DefaultApi* | [**list_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | @@ -118,6 +123,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_virtual_machine_snapshot_content_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents | *DefaultApi* | [**list_virtual_machine_snapshot_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots | *DefaultApi* | [**migrate**](docs/DefaultApi.md#migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | +*DefaultApi* | [**patch_namespaced_kube_virt**](docs/DefaultApi.md#patch_namespaced_kube_virt) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine**](docs/DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | @@ -126,6 +132,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**patch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**pause**](docs/DefaultApi.md#pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | +*DefaultApi* | [**read_namespaced_kube_virt**](docs/DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine**](docs/DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_instance**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | @@ -134,6 +141,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**read_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**rename**](docs/DefaultApi.md#rename) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/rename | +*DefaultApi* | [**replace_namespaced_kube_virt**](docs/DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine**](docs/DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | @@ -149,6 +157,8 @@ Class | Method | HTTP request | Description *DefaultApi* | [**userlist**](docs/DefaultApi.md#userlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | *DefaultApi* | [**version**](docs/DefaultApi.md#version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | *DefaultApi* | [**vnc**](docs/DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | +*DefaultApi* | [**watch_kube_virt_list_for_all_namespaces**](docs/DefaultApi.md#watch_kube_virt_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/kubevirt | +*DefaultApi* | [**watch_namespaced_kube_virt**](docs/DefaultApi.md#watch_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | *DefaultApi* | [**watch_namespaced_virtual_machine**](docs/DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | *DefaultApi* | [**watch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | *DefaultApi* | [**watch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | @@ -191,10 +201,12 @@ Class | Method | HTTP request | Description - [V1DHCPPrivateOptions](docs/V1DHCPPrivateOptions.md) - [V1DataVolumeSource](docs/V1DataVolumeSource.md) - [V1DeleteOptions](docs/V1DeleteOptions.md) + - [V1DeveloperConfiguration](docs/V1DeveloperConfiguration.md) - [V1Devices](docs/V1Devices.md) - [V1Disk](docs/V1Disk.md) - [V1DiskTarget](docs/V1DiskTarget.md) - [V1DomainSpec](docs/V1DomainSpec.md) + - [V1Duration](docs/V1Duration.md) - [V1EFI](docs/V1EFI.md) - [V1EmptyDiskSource](docs/V1EmptyDiskSource.md) - [V1EphemeralVolumeSource](docs/V1EphemeralVolumeSource.md) @@ -223,6 +235,14 @@ Class | Method | HTTP request | Description - [V1InterfaceSRIOV](docs/V1InterfaceSRIOV.md) - [V1InterfaceSlirp](docs/V1InterfaceSlirp.md) - [V1KVMTimer](docs/V1KVMTimer.md) + - [V1KubeVirt](docs/V1KubeVirt.md) + - [V1KubeVirtCertificateRotateStrategy](docs/V1KubeVirtCertificateRotateStrategy.md) + - [V1KubeVirtCondition](docs/V1KubeVirtCondition.md) + - [V1KubeVirtConfiguration](docs/V1KubeVirtConfiguration.md) + - [V1KubeVirtList](docs/V1KubeVirtList.md) + - [V1KubeVirtSelfSignConfiguration](docs/V1KubeVirtSelfSignConfiguration.md) + - [V1KubeVirtSpec](docs/V1KubeVirtSpec.md) + - [V1KubeVirtStatus](docs/V1KubeVirtStatus.md) - [V1LabelSelector](docs/V1LabelSelector.md) - [V1LabelSelectorRequirement](docs/V1LabelSelectorRequirement.md) - [V1ListMeta](docs/V1ListMeta.md) @@ -231,8 +251,10 @@ Class | Method | HTTP request | Description - [V1Machine](docs/V1Machine.md) - [V1ManagedFieldsEntry](docs/V1ManagedFieldsEntry.md) - [V1Memory](docs/V1Memory.md) + - [V1MigrationConfiguration](docs/V1MigrationConfiguration.md) - [V1MultusNetwork](docs/V1MultusNetwork.md) - [V1Network](docs/V1Network.md) + - [V1NetworkConfiguration](docs/V1NetworkConfiguration.md) - [V1NodeAffinity](docs/V1NodeAffinity.md) - [V1NodeSelector](docs/V1NodeSelector.md) - [V1NodeSelectorRequirement](docs/V1NodeSelectorRequirement.md) @@ -261,6 +283,7 @@ Class | Method | HTTP request | Description - [V1RestartOptions](docs/V1RestartOptions.md) - [V1Rng](docs/V1Rng.md) - [V1RootPaths](docs/V1RootPaths.md) + - [V1SMBiosConfiguration](docs/V1SMBiosConfiguration.md) - [V1SecretVolumeSource](docs/V1SecretVolumeSource.md) - [V1ServerAddressByClientCIDR](docs/V1ServerAddressByClientCIDR.md) - [V1ServiceAccountVolumeSource](docs/V1ServiceAccountVolumeSource.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 400868db..20678e9c 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -6,6 +6,7 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**check_health**](DefaultApi.md#check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha3/healthz | [**console**](DefaultApi.md#console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | +[**create_namespaced_kube_virt**](DefaultApi.md#create_namespaced_kube_virt) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | [**create_namespaced_virtual_machine**](DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | [**create_namespaced_virtual_machine_instance**](DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | [**create_namespaced_virtual_machine_instance_migration**](DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | @@ -13,6 +14,7 @@ Method | HTTP request | Description [**create_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | [**create_namespaced_virtual_machine_snapshot**](DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**create_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | +[**delete_collection_namespaced_kube_virt**](DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | [**delete_collection_namespaced_virtual_machine**](DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | [**delete_collection_namespaced_virtual_machine_instance**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | [**delete_collection_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | @@ -20,6 +22,7 @@ Method | HTTP request | Description [**delete_collection_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | [**delete_collection_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**delete_collection_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | +[**delete_namespaced_kube_virt**](DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine**](DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_instance**](DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | @@ -39,6 +42,8 @@ Method | HTTP request | Description [**get_root_paths**](DefaultApi.md#get_root_paths) | **GET** / | [**get_sub_api_group**](DefaultApi.md#get_sub_api_group) | **GET** /apis/subresources.kubevirt.io | [**guestosinfo**](DefaultApi.md#guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | +[**list_kube_virt_for_all_namespaces**](DefaultApi.md#list_kube_virt_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/kubevirt | +[**list_namespaced_kube_virt**](DefaultApi.md#list_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | [**list_namespaced_virtual_machine**](DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | [**list_namespaced_virtual_machine_instance**](DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | [**list_namespaced_virtual_machine_instance_migration**](DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | @@ -54,6 +59,7 @@ Method | HTTP request | Description [**list_virtual_machine_snapshot_content_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents | [**list_virtual_machine_snapshot_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots | [**migrate**](DefaultApi.md#migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | +[**patch_namespaced_kube_virt**](DefaultApi.md#patch_namespaced_kube_virt) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine**](DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_instance**](DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | @@ -62,6 +68,7 @@ Method | HTTP request | Description [**patch_namespaced_virtual_machine_snapshot**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**pause**](DefaultApi.md#pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | +[**read_namespaced_kube_virt**](DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine**](DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_instance**](DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_instance_migration**](DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | @@ -70,6 +77,7 @@ Method | HTTP request | Description [**read_namespaced_virtual_machine_snapshot**](DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**rename**](DefaultApi.md#rename) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/rename | +[**replace_namespaced_kube_virt**](DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine**](DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_instance**](DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_instance_migration**](DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | @@ -85,6 +93,8 @@ Method | HTTP request | Description [**userlist**](DefaultApi.md#userlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | [**version**](DefaultApi.md#version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | [**vnc**](DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | +[**watch_kube_virt_list_for_all_namespaces**](DefaultApi.md#watch_kube_virt_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/kubevirt | +[**watch_namespaced_kube_virt**](DefaultApi.md#watch_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | [**watch_namespaced_virtual_machine**](DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | [**watch_namespaced_virtual_machine_instance**](DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | [**watch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | @@ -192,6 +202,55 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **create_namespaced_kube_virt** +> V1KubeVirt create_namespaced_kube_virt(body, namespace) + + + +Create a KubeVirt object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +body = kubevirt.V1KubeVirt() # V1KubeVirt | +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.create_namespaced_kube_virt(body, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->create_namespaced_kube_virt: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1KubeVirt**](V1KubeVirt.md)| | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +[**V1KubeVirt**](V1KubeVirt.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **create_namespaced_virtual_machine** > V1VirtualMachine create_namespaced_virtual_machine(body, namespace) @@ -535,6 +594,67 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_collection_namespaced_kube_virt** +> V1Status delete_collection_namespaced_kube_virt(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Delete a collection of KubeVirt objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_namespaced_kube_virt(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->delete_collection_namespaced_kube_virt: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_collection_namespaced_virtual_machine** > V1Status delete_collection_namespaced_virtual_machine(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -962,6 +1082,63 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_namespaced_kube_virt** +> V1Status delete_namespaced_kube_virt(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + + + +Delete a KubeVirt object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1DeleteOptions() # V1DeleteOptions | +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + +try: + api_response = api_instance.delete_namespaced_kube_virt(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->delete_namespaced_kube_virt: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_namespaced_virtual_machine** > V1Status delete_namespaced_virtual_machine(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -1879,6 +2056,130 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **list_kube_virt_for_all_namespaces** +> V1KubeVirtList list_kube_virt_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Get a list of all KubeVirt objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_kube_virt_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->list_kube_virt_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1KubeVirtList**](V1KubeVirtList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_kube_virt** +> V1KubeVirtList list_namespaced_kube_virt(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Get a list of KubeVirt objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_kube_virt(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->list_namespaced_kube_virt: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1KubeVirtList**](V1KubeVirtList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **list_namespaced_virtual_machine** > V1VirtualMachineList list_namespaced_virtual_machine(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -2796,6 +3097,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **patch_namespaced_kube_virt** +> V1KubeVirt patch_namespaced_kube_virt(name, namespace, body) + + + +Patch a KubeVirt object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1Patch() # V1Patch | + +try: + api_response = api_instance.patch_namespaced_kube_virt(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->patch_namespaced_kube_virt: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1Patch**](V1Patch.md)| | + +### Return type + +[**V1KubeVirt**](V1KubeVirt.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **patch_namespaced_virtual_machine** > V1VirtualMachine patch_namespaced_virtual_machine(name, namespace, body) @@ -3202,6 +3554,59 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **read_namespaced_kube_virt** +> V1KubeVirt read_namespaced_kube_virt(name, namespace, exact=exact, export=export) + + + +Get a KubeVirt object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_namespaced_kube_virt(name, namespace, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->read_namespaced_kube_virt: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1KubeVirt**](V1KubeVirt.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **read_namespaced_virtual_machine** > V1VirtualMachine read_namespaced_virtual_machine(name, namespace, exact=exact, export=export) @@ -3622,6 +4027,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **replace_namespaced_kube_virt** +> V1KubeVirt replace_namespaced_kube_virt(name, namespace, body) + + + +Update a KubeVirt object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1KubeVirt() # V1KubeVirt | + +try: + api_response = api_instance.replace_namespaced_kube_virt(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->replace_namespaced_kube_virt: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1KubeVirt**](V1KubeVirt.md)| | + +### Return type + +[**V1KubeVirt**](V1KubeVirt.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **replace_namespaced_virtual_machine** > V1VirtualMachine replace_namespaced_virtual_machine(name, namespace, body) @@ -4356,6 +4812,130 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **watch_kube_virt_list_for_all_namespaces** +> V1WatchEvent watch_kube_virt_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Watch a KubeVirtList object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_kube_virt_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->watch_kube_virt_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_namespaced_kube_virt** +> V1WatchEvent watch_namespaced_kube_virt(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Watch a KubeVirt object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_namespaced_kube_virt(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->watch_namespaced_kube_virt: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **watch_namespaced_virtual_machine** > V1WatchEvent watch_namespaced_virtual_machine(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) diff --git a/docs/V1DeveloperConfiguration.md b/docs/V1DeveloperConfiguration.md new file mode 100644 index 00000000..9f0fe40f --- /dev/null +++ b/docs/V1DeveloperConfiguration.md @@ -0,0 +1,14 @@ +# V1DeveloperConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**feature_gates** | **list[str]** | | [optional] +**memory_overcommit** | **str** | | [optional] +**node_selectors** | **dict(str, str)** | | [optional] +**pvc_tolerate_less_space_up_to_percent** | **str** | | [optional] +**use_emulation** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Duration.md b/docs/V1Duration.md new file mode 100644 index 00000000..10af41bc --- /dev/null +++ b/docs/V1Duration.md @@ -0,0 +1,9 @@ +# V1Duration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1KubeVirt.md b/docs/V1KubeVirt.md new file mode 100644 index 00000000..17e948f2 --- /dev/null +++ b/docs/V1KubeVirt.md @@ -0,0 +1,14 @@ +# V1KubeVirt + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1KubeVirtSpec**](V1KubeVirtSpec.md) | | +**status** | [**V1KubeVirtStatus**](V1KubeVirtStatus.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1KubeVirtCertificateRotateStrategy.md b/docs/V1KubeVirtCertificateRotateStrategy.md new file mode 100644 index 00000000..44a94f43 --- /dev/null +++ b/docs/V1KubeVirtCertificateRotateStrategy.md @@ -0,0 +1,10 @@ +# V1KubeVirtCertificateRotateStrategy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**self_signed** | [**V1KubeVirtSelfSignConfiguration**](V1KubeVirtSelfSignConfiguration.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1KubeVirtCondition.md b/docs/V1KubeVirtCondition.md new file mode 100644 index 00000000..0848c0fb --- /dev/null +++ b/docs/V1KubeVirtCondition.md @@ -0,0 +1,13 @@ +# V1KubeVirtCondition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | | [optional] +**reason** | **str** | | [optional] +**status** | **str** | | +**type** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md new file mode 100644 index 00000000..33f45542 --- /dev/null +++ b/docs/V1KubeVirtConfiguration.md @@ -0,0 +1,21 @@ +# V1KubeVirtConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpu_model** | **str** | | [optional] +**cpu_request** | **str** | | [optional] +**developer_configuration** | [**V1DeveloperConfiguration**](V1DeveloperConfiguration.md) | | [optional] +**emulated_machines** | **list[str]** | | [optional] +**image_pull_policy** | **str** | | [optional] +**machine_type** | **str** | | [optional] +**migrations** | [**V1MigrationConfiguration**](V1MigrationConfiguration.md) | | [optional] +**network** | [**V1NetworkConfiguration**](V1NetworkConfiguration.md) | | [optional] +**ovmf_path** | **str** | | [optional] +**selinux_launcher_type** | **str** | | [optional] +**smbi_os** | [**V1SMBiosConfiguration**](V1SMBiosConfiguration.md) | | [optional] +**supported_guest_agent_versions** | **list[str]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1KubeVirtList.md b/docs/V1KubeVirtList.md new file mode 100644 index 00000000..338a42a8 --- /dev/null +++ b/docs/V1KubeVirtList.md @@ -0,0 +1,13 @@ +# V1KubeVirtList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list[V1KubeVirt]**](V1KubeVirt.md) | | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1KubeVirtSelfSignConfiguration.md b/docs/V1KubeVirtSelfSignConfiguration.md new file mode 100644 index 00000000..8866c966 --- /dev/null +++ b/docs/V1KubeVirtSelfSignConfiguration.md @@ -0,0 +1,12 @@ +# V1KubeVirtSelfSignConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ca_overlap_interval** | [**V1Duration**](V1Duration.md) | | [optional] +**ca_rotate_interval** | [**V1Duration**](V1Duration.md) | | [optional] +**cert_rotate_interval** | [**V1Duration**](V1Duration.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1KubeVirtSpec.md b/docs/V1KubeVirtSpec.md new file mode 100644 index 00000000..12533102 --- /dev/null +++ b/docs/V1KubeVirtSpec.md @@ -0,0 +1,17 @@ +# V1KubeVirtSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**certificate_rotate_strategy** | [**V1KubeVirtCertificateRotateStrategy**](V1KubeVirtCertificateRotateStrategy.md) | | [optional] +**configuration** | [**V1KubeVirtConfiguration**](V1KubeVirtConfiguration.md) | holds kubevirt configurations. same as the virt-configMap | [optional] +**image_pull_policy** | **str** | The ImagePullPolicy to use. | [optional] +**image_registry** | **str** | The image registry to pull the container images from Defaults to the same registry the operator's container image is pulled from. | [optional] +**image_tag** | **str** | The image tag to use for the continer images installed. Defaults to the same tag as the operator's container image. | [optional] +**monitor_account** | **str** | The name of the Prometheus service account that needs read-access to KubeVirt endpoints Defaults to prometheus-k8s | [optional] +**monitor_namespace** | **str** | The namespace Prometheus is deployed in Defaults to openshift-monitor | [optional] +**uninstall_strategy** | **str** | Specifies if kubevirt can be deleted if workloads are still present. This is mainly a precaution to avoid accidental data loss | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1KubeVirtStatus.md b/docs/V1KubeVirtStatus.md new file mode 100644 index 00000000..f8930643 --- /dev/null +++ b/docs/V1KubeVirtStatus.md @@ -0,0 +1,20 @@ +# V1KubeVirtStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**list[V1KubeVirtCondition]**](V1KubeVirtCondition.md) | | [optional] +**observed_deployment_config** | **str** | | [optional] +**observed_deployment_id** | **str** | | [optional] +**observed_kube_virt_registry** | **str** | | [optional] +**observed_kube_virt_version** | **str** | | [optional] +**operator_version** | **str** | | [optional] +**phase** | **str** | | [optional] +**target_deployment_config** | **str** | | [optional] +**target_deployment_id** | **str** | | [optional] +**target_kube_virt_registry** | **str** | | [optional] +**target_kube_virt_version** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1MigrationConfiguration.md b/docs/V1MigrationConfiguration.md new file mode 100644 index 00000000..f0a3a389 --- /dev/null +++ b/docs/V1MigrationConfiguration.md @@ -0,0 +1,17 @@ +# V1MigrationConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allow_auto_converge** | **str** | | +**bandwidth_per_migration** | [**ResourceQuantity**](ResourceQuantity.md) | | [optional] +**completion_timeout_per_gi_b** | **str** | | [optional] +**node_drain_taint_key** | **str** | | [optional] +**parallel_migrations_per_cluster** | **str** | | [optional] +**parallel_outbound_migrations_per_node** | **str** | | [optional] +**progress_timeout** | **str** | | [optional] +**unsafe_migration_override** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1NetworkConfiguration.md b/docs/V1NetworkConfiguration.md new file mode 100644 index 00000000..aa1efda6 --- /dev/null +++ b/docs/V1NetworkConfiguration.md @@ -0,0 +1,12 @@ +# V1NetworkConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**default_network_interface** | **str** | | [optional] +**permit_bridge_interface_on_pod_network** | **str** | | [optional] +**permit_slirp_interface** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1SMBiosConfiguration.md b/docs/V1SMBiosConfiguration.md new file mode 100644 index 00000000..e8f7e4c9 --- /dev/null +++ b/docs/V1SMBiosConfiguration.md @@ -0,0 +1,14 @@ +# V1SMBiosConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**family** | **str** | | [optional] +**manufacturer** | **str** | | [optional] +**product** | **str** | | [optional] +**sku** | **str** | | [optional] +**version** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 1a1507fb..41d7e674 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.30.0-180-g758da66d" + release_note="Auto-generated client v0.31.0-66-g442be6fa" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 01180ee9..fd316b38 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -1,5 +1,7 @@ [main] INFO io.swagger.parser.Swagger20Parser - reading from /root/go/src/kubevirt.io/kubevirt/api/openapi-spec/swagger.json [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} @@ -91,6 +93,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_delete_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_delete_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DeleteOptions.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_developer_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_developer_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DeveloperConfiguration.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_devices.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_devices.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Devices.md @@ -103,6 +108,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_domain_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_domain_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DomainSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_duration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_duration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Duration.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_efi.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_efi.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1EFI.md @@ -187,6 +195,30 @@ 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_kvm_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kvm_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KVMTimer.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_kube_virt.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kube_virt.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KubeVirt.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_kube_virt_certificate_rotate_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kube_virt_certificate_rotate_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KubeVirtCertificateRotateStrategy.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_kube_virt_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kube_virt_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KubeVirtCondition.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_kube_virt_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kube_virt_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KubeVirtConfiguration.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_kube_virt_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kube_virt_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KubeVirtList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_kube_virt_self_sign_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kube_virt_self_sign_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KubeVirtSelfSignConfiguration.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_kube_virt_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kube_virt_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KubeVirtSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_kube_virt_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kube_virt_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KubeVirtStatus.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_label_selector.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_label_selector.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1LabelSelector.md @@ -211,12 +243,18 @@ 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_memory.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_memory.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Memory.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_migration_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_migration_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1MigrationConfiguration.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_multus_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_multus_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1MultusNetwork.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Network.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_network_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_network_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1NetworkConfiguration.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_node_affinity.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_node_affinity.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1NodeAffinity.md @@ -301,6 +339,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_root_paths.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_root_paths.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1RootPaths.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_sm_bios_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sm_bios_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SMBiosConfiguration.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_secret_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_secret_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SecretVolumeSource.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index a08c061a..c83282f6 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -38,10 +38,12 @@ from .models.v1_dhcp_private_options import V1DHCPPrivateOptions from .models.v1_data_volume_source import V1DataVolumeSource from .models.v1_delete_options import V1DeleteOptions +from .models.v1_developer_configuration import V1DeveloperConfiguration from .models.v1_devices import V1Devices from .models.v1_disk import V1Disk from .models.v1_disk_target import V1DiskTarget from .models.v1_domain_spec import V1DomainSpec +from .models.v1_duration import V1Duration from .models.v1_efi import V1EFI from .models.v1_empty_disk_source import V1EmptyDiskSource from .models.v1_ephemeral_volume_source import V1EphemeralVolumeSource @@ -70,6 +72,14 @@ from .models.v1_interface_sriov import V1InterfaceSRIOV from .models.v1_interface_slirp import V1InterfaceSlirp from .models.v1_kvm_timer import V1KVMTimer +from .models.v1_kube_virt import V1KubeVirt +from .models.v1_kube_virt_certificate_rotate_strategy import V1KubeVirtCertificateRotateStrategy +from .models.v1_kube_virt_condition import V1KubeVirtCondition +from .models.v1_kube_virt_configuration import V1KubeVirtConfiguration +from .models.v1_kube_virt_list import V1KubeVirtList +from .models.v1_kube_virt_self_sign_configuration import V1KubeVirtSelfSignConfiguration +from .models.v1_kube_virt_spec import V1KubeVirtSpec +from .models.v1_kube_virt_status import V1KubeVirtStatus from .models.v1_label_selector import V1LabelSelector from .models.v1_label_selector_requirement import V1LabelSelectorRequirement from .models.v1_list_meta import V1ListMeta @@ -78,8 +88,10 @@ from .models.v1_machine import V1Machine from .models.v1_managed_fields_entry import V1ManagedFieldsEntry from .models.v1_memory import V1Memory +from .models.v1_migration_configuration import V1MigrationConfiguration from .models.v1_multus_network import V1MultusNetwork from .models.v1_network import V1Network +from .models.v1_network_configuration import V1NetworkConfiguration from .models.v1_node_affinity import V1NodeAffinity from .models.v1_node_selector import V1NodeSelector from .models.v1_node_selector_requirement import V1NodeSelectorRequirement @@ -108,6 +120,7 @@ from .models.v1_restart_options import V1RestartOptions from .models.v1_rng import V1Rng from .models.v1_root_paths import V1RootPaths +from .models.v1_sm_bios_configuration import V1SMBiosConfiguration from .models.v1_secret_volume_source import V1SecretVolumeSource from .models.v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR from .models.v1_service_account_volume_source import V1ServiceAccountVolumeSource diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 3ec7669f..02ec8334 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.30.0-180-g758da66d/python' + self.user_agent = 'Swagger-Codegen/v0.31.0-66-g442be6fa/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index bf3f1133..dbaf0b00 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -239,6 +239,117 @@ def console_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def create_namespaced_kube_virt(self, body, namespace, **kwargs): + """ + Create a KubeVirt object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_kube_virt(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1KubeVirt body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1KubeVirt + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_kube_virt_with_http_info(body, namespace, **kwargs) + else: + (data) = self.create_namespaced_kube_virt_with_http_info(body, namespace, **kwargs) + return data + + def create_namespaced_kube_virt_with_http_info(self, body, namespace, **kwargs): + """ + Create a KubeVirt object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_kube_virt_with_http_info(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1KubeVirt body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1KubeVirt + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_kube_virt" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_kube_virt`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_kube_virt`") + + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1KubeVirt', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def create_namespaced_virtual_machine(self, body, namespace, **kwargs): """ Create a VirtualMachine object. @@ -1016,6 +1127,131 @@ def create_namespaced_virtual_machine_snapshot_content_with_http_info(self, body _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def delete_collection_namespaced_kube_virt(self, **kwargs): + """ + Delete a collection of KubeVirt objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_kube_virt(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_namespaced_kube_virt_with_http_info(**kwargs) + else: + (data) = self.delete_collection_namespaced_kube_virt_with_http_info(**kwargs) + return data + + def delete_collection_namespaced_kube_virt_with_http_info(self, **kwargs): + """ + Delete a collection of KubeVirt objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_kube_virt_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_namespaced_kube_virt" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def delete_collection_namespaced_virtual_machine(self, **kwargs): """ Delete a collection of VirtualMachine objects. @@ -1891,16 +2127,16 @@ def delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine(self, name, namespace, body, **kwargs): + def delete_namespaced_kube_virt(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachine object. + Delete a KubeVirt object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_kube_virt(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1916,21 +2152,21 @@ def delete_namespaced_virtual_machine(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachine object. + Delete a KubeVirt object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_kube_virt_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1956,19 +2192,19 @@ def delete_namespaced_virtual_machine_with_http_info(self, name, namespace, body if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine" % key + " to method delete_namespaced_kube_virt" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_kube_virt`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_kube_virt`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_kube_virt`") collection_formats = {} @@ -2006,7 +2242,7 @@ def delete_namespaced_virtual_machine_with_http_info(self, name, namespace, body # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -2021,16 +2257,16 @@ def delete_namespaced_virtual_machine_with_http_info(self, name, namespace, body _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstance object. + Delete a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2046,21 +2282,21 @@ def delete_namespaced_virtual_machine_instance(self, name, namespace, body, **kw """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstance object. + Delete a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2086,19 +2322,19 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namesp if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_instance" % key + " to method delete_namespaced_virtual_machine" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine`") collection_formats = {} @@ -2136,7 +2372,7 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -2151,16 +2387,16 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namesp _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstanceMigration object. + Delete a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2176,7 +2412,137 @@ def delete_namespaced_virtual_machine_instance_migration(self, name, namespace, """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): + """ + Delete a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_virtual_machine_instance" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'grace_period_seconds' in params: + query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) + if 'orphan_dependents' in params: + query_params.append(('orphanDependents', params['orphan_dependents'])) + if 'propagation_policy' in params: + query_params.append(('propagationPolicy', params['propagation_policy'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): + """ + Delete a VirtualMachineInstanceMigration object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) else: (data) = self.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) return data @@ -3926,20 +4292,19 @@ def guestosinfo_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine(self, namespace, **kwargs): + def list_kube_virt_for_all_namespaces(self, **kwargs): """ - Get a list of VirtualMachine objects. + Get a list of all KubeVirt objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine(namespace, callback=callback_function) + >>> thread = api.list_kube_virt_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -3948,31 +4313,30 @@ def list_namespaced_virtual_machine(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :return: V1KubeVirtList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + return self.list_kube_virt_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + (data) = self.list_kube_virt_for_all_namespaces_with_http_info(**kwargs) return data - def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): + def list_kube_virt_for_all_namespaces_with_http_info(self, **kwargs): """ - Get a list of VirtualMachine objects. + Get a list of all KubeVirt objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_kube_virt_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -3981,12 +4345,12 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :return: V1KubeVirtList If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3997,20 +4361,15 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine" % key + " to method list_kube_virt_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -4043,14 +4402,14 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/kubevirt', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineList', + response_type='V1KubeVirtList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4058,16 +4417,16 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_instance(self, namespace, **kwargs): + def list_namespaced_kube_virt(self, namespace, **kwargs): """ - Get a list of VirtualMachineInstance objects. + Get a list of KubeVirt objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance(namespace, callback=callback_function) + >>> thread = api.list_namespaced_kube_virt(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4080,27 +4439,27 @@ def list_namespaced_virtual_machine_instance(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceList + :return: V1KubeVirtList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) + return self.list_namespaced_kube_virt_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_kube_virt_with_http_info(namespace, **kwargs) return data - def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **kwargs): + def list_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): """ - Get a list of VirtualMachineInstance objects. + Get a list of KubeVirt objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_kube_virt_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4113,7 +4472,7 @@ def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **k :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceList + :return: V1KubeVirtList If the method is called asynchronously, returns the request thread. """ @@ -4129,13 +4488,13 @@ def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_instance" % key + " to method list_namespaced_kube_virt" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_kube_virt`") collection_formats = {} @@ -4175,14 +4534,14 @@ def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **k # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceList', + response_type='V1KubeVirtList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4190,16 +4549,16 @@ def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_instance_migration(self, namespace, **kwargs): + def list_namespaced_virtual_machine(self, namespace, **kwargs): """ - Get a list of VirtualMachineInstanceMigration objects. + Get a list of VirtualMachine objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_migration(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4212,27 +4571,27 @@ def list_namespaced_virtual_machine_instance_migration(self, namespace, **kwargs :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceMigrationList + :return: V1VirtualMachineList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) + return self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) return data - def list_namespaced_virtual_machine_instance_migration_with_http_info(self, namespace, **kwargs): + def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): """ - Get a list of VirtualMachineInstanceMigration objects. + Get a list of VirtualMachine objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4245,7 +4604,7 @@ def list_namespaced_virtual_machine_instance_migration_with_http_info(self, name :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceMigrationList + :return: V1VirtualMachineList If the method is called asynchronously, returns the request thread. """ @@ -4261,13 +4620,13 @@ def list_namespaced_virtual_machine_instance_migration_with_http_info(self, name if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_instance_migration" % key + " to method list_namespaced_virtual_machine" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine`") collection_formats = {} @@ -4307,14 +4666,14 @@ def list_namespaced_virtual_machine_instance_migration_with_http_info(self, name # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceMigrationList', + response_type='V1VirtualMachineList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4322,16 +4681,16 @@ def list_namespaced_virtual_machine_instance_migration_with_http_info(self, name _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): + def list_namespaced_virtual_machine_instance(self, namespace, **kwargs): """ - Get a list of VirtualMachineInstancePreset objects. + Get a list of VirtualMachineInstance objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_preset(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4344,27 +4703,27 @@ def list_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstancePresetList + :return: V1VirtualMachineInstanceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) + return self.list_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) return data - def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespace, **kwargs): + def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **kwargs): """ - Get a list of VirtualMachineInstancePreset objects. + Get a list of VirtualMachineInstance objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4377,7 +4736,7 @@ def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespa :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstancePresetList + :return: V1VirtualMachineInstanceList If the method is called asynchronously, returns the request thread. """ @@ -4393,13 +4752,13 @@ def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_instance_preset" % key + " to method list_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance`") collection_formats = {} @@ -4439,14 +4798,14 @@ def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstancePresetList', + response_type='V1VirtualMachineInstanceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4454,16 +4813,16 @@ def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwargs): + def list_namespaced_virtual_machine_instance_migration(self, namespace, **kwargs): """ - Get a list of VirtualMachineInstanceReplicaSet objects. + Get a list of VirtualMachineInstanceMigration objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_replica_set(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_migration(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4476,27 +4835,27 @@ def list_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwar :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceReplicaSetList + :return: V1VirtualMachineInstanceMigrationList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) + return self.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) return data - def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, namespace, **kwargs): + def list_namespaced_virtual_machine_instance_migration_with_http_info(self, namespace, **kwargs): """ - Get a list of VirtualMachineInstanceReplicaSet objects. + Get a list of VirtualMachineInstanceMigration objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4509,7 +4868,7 @@ def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceReplicaSetList + :return: V1VirtualMachineInstanceMigrationList If the method is called asynchronously, returns the request thread. """ @@ -4525,13 +4884,13 @@ def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_instance_replica_set" % key + " to method list_namespaced_virtual_machine_instance_migration" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_migration`") collection_formats = {} @@ -4571,14 +4930,14 @@ def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceReplicaSetList', + response_type='V1VirtualMachineInstanceMigrationList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4586,16 +4945,280 @@ def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_snapshot(self, namespace, **kwargs): + def list_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): """ - Get a list of VirtualMachineSnapshot objects. + Get a list of VirtualMachineInstancePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_snapshot(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_preset(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineInstancePresetList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespace, **kwargs): + """ + Get a list of VirtualMachineInstancePreset objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineInstancePresetList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_virtual_machine_instance_preset" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_preset`") + + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstancePresetList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwargs): + """ + Get a list of VirtualMachineInstanceReplicaSet objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_virtual_machine_instance_replica_set(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineInstanceReplicaSetList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, namespace, **kwargs): + """ + Get a list of VirtualMachineInstanceReplicaSet objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineInstanceReplicaSetList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_virtual_machine_instance_replica_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_replica_set`") + + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceReplicaSetList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_virtual_machine_snapshot(self, namespace, **kwargs): + """ + Get a list of VirtualMachineSnapshot objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_virtual_machine_snapshot(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5680,22 +6303,129 @@ def list_virtual_machine_snapshot_for_all_namespaces_with_http_info(self, **kwar path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'include_uninitialized' in params: - query_params.append(('includeUninitialized', params['include_uninitialized'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineSnapshotList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def migrate(self, name, namespace, **kwargs): + """ + Migrate a running VirtualMachine to another node. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.migrate(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.migrate_with_http_info(name, namespace, **kwargs) + else: + (data) = self.migrate_with_http_info(name, namespace, **kwargs) + return data + + def migrate_with_http_info(self, name, namespace, **kwargs): + """ + Migrate a running VirtualMachine to another node. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.migrate_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method migrate" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `migrate`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `migrate`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] header_params = {} @@ -5703,21 +6433,17 @@ def list_virtual_machine_snapshot_for_all_namespaces_with_http_info(self, **kwar local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshotList', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5725,53 +6451,55 @@ def list_virtual_machine_snapshot_for_all_namespaces_with_http_info(self, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def migrate(self, name, namespace, **kwargs): + def patch_namespaced_kube_virt(self, name, namespace, body, **kwargs): """ - Migrate a running VirtualMachine to another node. + Patch a KubeVirt object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.migrate(name, namespace, callback=callback_function) + >>> thread = api.patch_namespaced_kube_virt(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :param V1Patch body: (required) + :return: V1KubeVirt If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.migrate_with_http_info(name, namespace, **kwargs) + return self.patch_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.migrate_with_http_info(name, namespace, **kwargs) + (data) = self.patch_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) return data - def migrate_with_http_info(self, name, namespace, **kwargs): + def patch_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwargs): """ - Migrate a running VirtualMachine to another node. + Patch a KubeVirt object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.migrate_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.patch_namespaced_kube_virt_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :param V1Patch body: (required) + :return: V1KubeVirt If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5782,16 +6510,19 @@ def migrate_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method migrate" % key + " to method patch_namespaced_kube_virt" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `migrate`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_kube_virt`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `migrate`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_kube_virt`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_kube_virt`") collection_formats = {} @@ -5810,17 +6541,27 @@ def migrate_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type='V1KubeVirt', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6757,6 +7498,121 @@ def pause_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def read_namespaced_kube_virt(self, name, namespace, **kwargs): + """ + Get a KubeVirt object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_kube_virt(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1KubeVirt + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_kube_virt_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_kube_virt_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_kube_virt_with_http_info(self, name, namespace, **kwargs): + """ + Get a KubeVirt object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_kube_virt_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1KubeVirt + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_kube_virt" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_kube_virt`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_kube_virt`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1KubeVirt', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def read_namespaced_virtual_machine(self, name, namespace, **kwargs): """ Get a VirtualMachine object. @@ -7603,12 +8459,117 @@ def rename_with_http_info(self, name, namespace, **kwargs): for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method rename" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `rename`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `rename`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/rename', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_kube_virt(self, name, namespace, body, **kwargs): + """ + Update a KubeVirt object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_kube_virt(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1KubeVirt body: (required) + :return: V1KubeVirt + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwargs): + """ + Update a KubeVirt object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_kube_virt_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1KubeVirt body: (required) + :return: V1KubeVirt If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7619,16 +8580,19 @@ def rename_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method rename" % key + " to method replace_namespaced_kube_virt" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `rename`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_kube_virt`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `rename`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_kube_virt`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_kube_virt`") collection_formats = {} @@ -7647,17 +8611,27 @@ def rename_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/rename', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type='V1KubeVirt', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9299,6 +10273,263 @@ def vnc_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def watch_kube_virt_list_for_all_namespaces(self, **kwargs): + """ + Watch a KubeVirtList object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_kube_virt_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_kube_virt_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_kube_virt_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_kube_virt_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + Watch a KubeVirtList object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_kube_virt_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_kube_virt_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/kubevirt', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1WatchEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def watch_namespaced_kube_virt(self, namespace, **kwargs): + """ + Watch a KubeVirt object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_kube_virt(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_namespaced_kube_virt_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_namespaced_kube_virt_with_http_info(namespace, **kwargs) + return data + + def watch_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): + """ + Watch a KubeVirt object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_kube_virt_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_kube_virt" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_kube_virt`") + + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1WatchEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def watch_namespaced_virtual_machine(self, namespace, **kwargs): """ Watch a VirtualMachine object. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 2018c3d9..40d08731 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.30.0-180-g758da66d".\ + "SDK Package Version: v0.31.0-66-g442be6fa".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 7e9e5dbd..9c779bc9 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -38,10 +38,12 @@ from .v1_dhcp_private_options import V1DHCPPrivateOptions from .v1_data_volume_source import V1DataVolumeSource from .v1_delete_options import V1DeleteOptions +from .v1_developer_configuration import V1DeveloperConfiguration from .v1_devices import V1Devices from .v1_disk import V1Disk from .v1_disk_target import V1DiskTarget from .v1_domain_spec import V1DomainSpec +from .v1_duration import V1Duration from .v1_efi import V1EFI from .v1_empty_disk_source import V1EmptyDiskSource from .v1_ephemeral_volume_source import V1EphemeralVolumeSource @@ -70,6 +72,14 @@ from .v1_interface_sriov import V1InterfaceSRIOV from .v1_interface_slirp import V1InterfaceSlirp from .v1_kvm_timer import V1KVMTimer +from .v1_kube_virt import V1KubeVirt +from .v1_kube_virt_certificate_rotate_strategy import V1KubeVirtCertificateRotateStrategy +from .v1_kube_virt_condition import V1KubeVirtCondition +from .v1_kube_virt_configuration import V1KubeVirtConfiguration +from .v1_kube_virt_list import V1KubeVirtList +from .v1_kube_virt_self_sign_configuration import V1KubeVirtSelfSignConfiguration +from .v1_kube_virt_spec import V1KubeVirtSpec +from .v1_kube_virt_status import V1KubeVirtStatus from .v1_label_selector import V1LabelSelector from .v1_label_selector_requirement import V1LabelSelectorRequirement from .v1_list_meta import V1ListMeta @@ -78,8 +88,10 @@ from .v1_machine import V1Machine from .v1_managed_fields_entry import V1ManagedFieldsEntry from .v1_memory import V1Memory +from .v1_migration_configuration import V1MigrationConfiguration from .v1_multus_network import V1MultusNetwork from .v1_network import V1Network +from .v1_network_configuration import V1NetworkConfiguration from .v1_node_affinity import V1NodeAffinity from .v1_node_selector import V1NodeSelector from .v1_node_selector_requirement import V1NodeSelectorRequirement @@ -108,6 +120,7 @@ from .v1_restart_options import V1RestartOptions from .v1_rng import V1Rng from .v1_root_paths import V1RootPaths +from .v1_sm_bios_configuration import V1SMBiosConfiguration from .v1_secret_volume_source import V1SecretVolumeSource from .v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR from .v1_service_account_volume_source import V1ServiceAccountVolumeSource diff --git a/kubevirt/models/v1_developer_configuration.py b/kubevirt/models/v1_developer_configuration.py new file mode 100644 index 00000000..f8dfc85f --- /dev/null +++ b/kubevirt/models/v1_developer_configuration.py @@ -0,0 +1,227 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DeveloperConfiguration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'feature_gates': 'list[str]', + 'memory_overcommit': 'str', + 'node_selectors': 'dict(str, str)', + 'pvc_tolerate_less_space_up_to_percent': 'str', + 'use_emulation': 'str' + } + + attribute_map = { + 'feature_gates': 'featureGates', + 'memory_overcommit': 'memoryOvercommit', + 'node_selectors': 'nodeSelectors', + 'pvc_tolerate_less_space_up_to_percent': 'pvcTolerateLessSpaceUpToPercent', + 'use_emulation': 'useEmulation' + } + + def __init__(self, feature_gates=None, memory_overcommit=None, node_selectors=None, pvc_tolerate_less_space_up_to_percent=None, use_emulation=None): + """ + V1DeveloperConfiguration - a model defined in Swagger + """ + + self._feature_gates = None + self._memory_overcommit = None + self._node_selectors = None + self._pvc_tolerate_less_space_up_to_percent = None + self._use_emulation = None + + if feature_gates is not None: + self.feature_gates = feature_gates + if memory_overcommit is not None: + self.memory_overcommit = memory_overcommit + if node_selectors is not None: + self.node_selectors = node_selectors + if pvc_tolerate_less_space_up_to_percent is not None: + self.pvc_tolerate_less_space_up_to_percent = pvc_tolerate_less_space_up_to_percent + if use_emulation is not None: + self.use_emulation = use_emulation + + @property + def feature_gates(self): + """ + Gets the feature_gates of this V1DeveloperConfiguration. + + :return: The feature_gates of this V1DeveloperConfiguration. + :rtype: list[str] + """ + return self._feature_gates + + @feature_gates.setter + def feature_gates(self, feature_gates): + """ + Sets the feature_gates of this V1DeveloperConfiguration. + + :param feature_gates: The feature_gates of this V1DeveloperConfiguration. + :type: list[str] + """ + + self._feature_gates = feature_gates + + @property + def memory_overcommit(self): + """ + Gets the memory_overcommit of this V1DeveloperConfiguration. + + :return: The memory_overcommit of this V1DeveloperConfiguration. + :rtype: str + """ + return self._memory_overcommit + + @memory_overcommit.setter + def memory_overcommit(self, memory_overcommit): + """ + Sets the memory_overcommit of this V1DeveloperConfiguration. + + :param memory_overcommit: The memory_overcommit of this V1DeveloperConfiguration. + :type: str + """ + + self._memory_overcommit = memory_overcommit + + @property + def node_selectors(self): + """ + Gets the node_selectors of this V1DeveloperConfiguration. + + :return: The node_selectors of this V1DeveloperConfiguration. + :rtype: dict(str, str) + """ + return self._node_selectors + + @node_selectors.setter + def node_selectors(self, node_selectors): + """ + Sets the node_selectors of this V1DeveloperConfiguration. + + :param node_selectors: The node_selectors of this V1DeveloperConfiguration. + :type: dict(str, str) + """ + + self._node_selectors = node_selectors + + @property + def pvc_tolerate_less_space_up_to_percent(self): + """ + Gets the pvc_tolerate_less_space_up_to_percent of this V1DeveloperConfiguration. + + :return: The pvc_tolerate_less_space_up_to_percent of this V1DeveloperConfiguration. + :rtype: str + """ + return self._pvc_tolerate_less_space_up_to_percent + + @pvc_tolerate_less_space_up_to_percent.setter + def pvc_tolerate_less_space_up_to_percent(self, pvc_tolerate_less_space_up_to_percent): + """ + Sets the pvc_tolerate_less_space_up_to_percent of this V1DeveloperConfiguration. + + :param pvc_tolerate_less_space_up_to_percent: The pvc_tolerate_less_space_up_to_percent of this V1DeveloperConfiguration. + :type: str + """ + + self._pvc_tolerate_less_space_up_to_percent = pvc_tolerate_less_space_up_to_percent + + @property + def use_emulation(self): + """ + Gets the use_emulation of this V1DeveloperConfiguration. + + :return: The use_emulation of this V1DeveloperConfiguration. + :rtype: str + """ + return self._use_emulation + + @use_emulation.setter + def use_emulation(self, use_emulation): + """ + Sets the use_emulation of this V1DeveloperConfiguration. + + :param use_emulation: The use_emulation of this V1DeveloperConfiguration. + :type: str + """ + + self._use_emulation = use_emulation + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1DeveloperConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_duration.py b/kubevirt/models/v1_duration.py new file mode 100644 index 00000000..34d752d6 --- /dev/null +++ b/kubevirt/models/v1_duration.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Duration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1Duration - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1Duration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kube_virt.py b/kubevirt/models/v1_kube_virt.py new file mode 100644 index 00000000..ce53fc85 --- /dev/null +++ b/kubevirt/models/v1_kube_virt.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1KubeVirt(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1KubeVirtSpec', + 'status': 'V1KubeVirtStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + """ + V1KubeVirt - a model defined in Swagger + """ + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1KubeVirt. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1KubeVirt. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1KubeVirt. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1KubeVirt. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1KubeVirt. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1KubeVirt. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1KubeVirt. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1KubeVirt. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1KubeVirt. + + :return: The metadata of this V1KubeVirt. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1KubeVirt. + + :param metadata: The metadata of this V1KubeVirt. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1KubeVirt. + + :return: The spec of this V1KubeVirt. + :rtype: V1KubeVirtSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1KubeVirt. + + :param spec: The spec of this V1KubeVirt. + :type: V1KubeVirtSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1KubeVirt. + + :return: The status of this V1KubeVirt. + :rtype: V1KubeVirtStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1KubeVirt. + + :param status: The status of this V1KubeVirt. + :type: V1KubeVirtStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1KubeVirt): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kube_virt_certificate_rotate_strategy.py b/kubevirt/models/v1_kube_virt_certificate_rotate_strategy.py new file mode 100644 index 00000000..a3640a0d --- /dev/null +++ b/kubevirt/models/v1_kube_virt_certificate_rotate_strategy.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1KubeVirtCertificateRotateStrategy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'self_signed': 'V1KubeVirtSelfSignConfiguration' + } + + attribute_map = { + 'self_signed': 'selfSigned' + } + + def __init__(self, self_signed=None): + """ + V1KubeVirtCertificateRotateStrategy - a model defined in Swagger + """ + + self._self_signed = None + + if self_signed is not None: + self.self_signed = self_signed + + @property + def self_signed(self): + """ + Gets the self_signed of this V1KubeVirtCertificateRotateStrategy. + + :return: The self_signed of this V1KubeVirtCertificateRotateStrategy. + :rtype: V1KubeVirtSelfSignConfiguration + """ + return self._self_signed + + @self_signed.setter + def self_signed(self, self_signed): + """ + Sets the self_signed of this V1KubeVirtCertificateRotateStrategy. + + :param self_signed: The self_signed of this V1KubeVirtCertificateRotateStrategy. + :type: V1KubeVirtSelfSignConfiguration + """ + + self._self_signed = self_signed + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1KubeVirtCertificateRotateStrategy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kube_virt_condition.py b/kubevirt/models/v1_kube_virt_condition.py new file mode 100644 index 00000000..01f3191d --- /dev/null +++ b/kubevirt/models/v1_kube_virt_condition.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1KubeVirtCondition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + attribute_map = { + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + def __init__(self, message=None, reason=None, status=None, type=None): + """ + V1KubeVirtCondition - a model defined in Swagger + """ + + self._message = None + self._reason = None + self._status = None + self._type = None + + if message is not None: + self.message = message + if reason is not None: + self.reason = reason + self.status = status + self.type = type + + @property + def message(self): + """ + Gets the message of this V1KubeVirtCondition. + + :return: The message of this V1KubeVirtCondition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1KubeVirtCondition. + + :param message: The message of this V1KubeVirtCondition. + :type: str + """ + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1KubeVirtCondition. + + :return: The reason of this V1KubeVirtCondition. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1KubeVirtCondition. + + :param reason: The reason of this V1KubeVirtCondition. + :type: str + """ + + self._reason = reason + + @property + def status(self): + """ + Gets the status of this V1KubeVirtCondition. + + :return: The status of this V1KubeVirtCondition. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1KubeVirtCondition. + + :param status: The status of this V1KubeVirtCondition. + :type: str + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def type(self): + """ + Gets the type of this V1KubeVirtCondition. + + :return: The type of this V1KubeVirtCondition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1KubeVirtCondition. + + :param type: The type of this V1KubeVirtCondition. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1KubeVirtCondition): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py new file mode 100644 index 00000000..6d066a50 --- /dev/null +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -0,0 +1,409 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1KubeVirtConfiguration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'cpu_model': 'str', + 'cpu_request': 'str', + 'developer_configuration': 'V1DeveloperConfiguration', + 'emulated_machines': 'list[str]', + 'image_pull_policy': 'str', + 'machine_type': 'str', + 'migrations': 'V1MigrationConfiguration', + 'network': 'V1NetworkConfiguration', + 'ovmf_path': 'str', + 'selinux_launcher_type': 'str', + 'smbi_os': 'V1SMBiosConfiguration', + 'supported_guest_agent_versions': 'list[str]' + } + + attribute_map = { + 'cpu_model': 'cpuModel', + 'cpu_request': 'cpuRequest', + 'developer_configuration': 'developerConfiguration', + 'emulated_machines': 'emulatedMachines', + 'image_pull_policy': 'imagePullPolicy', + 'machine_type': 'machineType', + 'migrations': 'migrations', + 'network': 'network', + 'ovmf_path': 'ovmfPath', + 'selinux_launcher_type': 'selinuxLauncherType', + 'smbi_os': 'smbiOS', + 'supported_guest_agent_versions': 'supportedGuestAgentVersions' + } + + def __init__(self, cpu_model=None, cpu_request=None, developer_configuration=None, emulated_machines=None, image_pull_policy=None, machine_type=None, migrations=None, network=None, ovmf_path=None, selinux_launcher_type=None, smbi_os=None, supported_guest_agent_versions=None): + """ + V1KubeVirtConfiguration - a model defined in Swagger + """ + + self._cpu_model = None + self._cpu_request = None + self._developer_configuration = None + self._emulated_machines = None + self._image_pull_policy = None + self._machine_type = None + self._migrations = None + self._network = None + self._ovmf_path = None + self._selinux_launcher_type = None + self._smbi_os = None + self._supported_guest_agent_versions = None + + if cpu_model is not None: + self.cpu_model = cpu_model + if cpu_request is not None: + self.cpu_request = cpu_request + if developer_configuration is not None: + self.developer_configuration = developer_configuration + if emulated_machines is not None: + self.emulated_machines = emulated_machines + if image_pull_policy is not None: + self.image_pull_policy = image_pull_policy + if machine_type is not None: + self.machine_type = machine_type + if migrations is not None: + self.migrations = migrations + if network is not None: + self.network = network + if ovmf_path is not None: + self.ovmf_path = ovmf_path + if selinux_launcher_type is not None: + self.selinux_launcher_type = selinux_launcher_type + if smbi_os is not None: + self.smbi_os = smbi_os + if supported_guest_agent_versions is not None: + self.supported_guest_agent_versions = supported_guest_agent_versions + + @property + def cpu_model(self): + """ + Gets the cpu_model of this V1KubeVirtConfiguration. + + :return: The cpu_model of this V1KubeVirtConfiguration. + :rtype: str + """ + return self._cpu_model + + @cpu_model.setter + def cpu_model(self, cpu_model): + """ + Sets the cpu_model of this V1KubeVirtConfiguration. + + :param cpu_model: The cpu_model of this V1KubeVirtConfiguration. + :type: str + """ + + self._cpu_model = cpu_model + + @property + def cpu_request(self): + """ + Gets the cpu_request of this V1KubeVirtConfiguration. + + :return: The cpu_request of this V1KubeVirtConfiguration. + :rtype: str + """ + return self._cpu_request + + @cpu_request.setter + def cpu_request(self, cpu_request): + """ + Sets the cpu_request of this V1KubeVirtConfiguration. + + :param cpu_request: The cpu_request of this V1KubeVirtConfiguration. + :type: str + """ + + self._cpu_request = cpu_request + + @property + def developer_configuration(self): + """ + Gets the developer_configuration of this V1KubeVirtConfiguration. + + :return: The developer_configuration of this V1KubeVirtConfiguration. + :rtype: V1DeveloperConfiguration + """ + return self._developer_configuration + + @developer_configuration.setter + def developer_configuration(self, developer_configuration): + """ + Sets the developer_configuration of this V1KubeVirtConfiguration. + + :param developer_configuration: The developer_configuration of this V1KubeVirtConfiguration. + :type: V1DeveloperConfiguration + """ + + self._developer_configuration = developer_configuration + + @property + def emulated_machines(self): + """ + Gets the emulated_machines of this V1KubeVirtConfiguration. + + :return: The emulated_machines of this V1KubeVirtConfiguration. + :rtype: list[str] + """ + return self._emulated_machines + + @emulated_machines.setter + def emulated_machines(self, emulated_machines): + """ + Sets the emulated_machines of this V1KubeVirtConfiguration. + + :param emulated_machines: The emulated_machines of this V1KubeVirtConfiguration. + :type: list[str] + """ + + self._emulated_machines = emulated_machines + + @property + def image_pull_policy(self): + """ + Gets the image_pull_policy of this V1KubeVirtConfiguration. + + :return: The image_pull_policy of this V1KubeVirtConfiguration. + :rtype: str + """ + return self._image_pull_policy + + @image_pull_policy.setter + def image_pull_policy(self, image_pull_policy): + """ + Sets the image_pull_policy of this V1KubeVirtConfiguration. + + :param image_pull_policy: The image_pull_policy of this V1KubeVirtConfiguration. + :type: str + """ + + self._image_pull_policy = image_pull_policy + + @property + def machine_type(self): + """ + Gets the machine_type of this V1KubeVirtConfiguration. + + :return: The machine_type of this V1KubeVirtConfiguration. + :rtype: str + """ + return self._machine_type + + @machine_type.setter + def machine_type(self, machine_type): + """ + Sets the machine_type of this V1KubeVirtConfiguration. + + :param machine_type: The machine_type of this V1KubeVirtConfiguration. + :type: str + """ + + self._machine_type = machine_type + + @property + def migrations(self): + """ + Gets the migrations of this V1KubeVirtConfiguration. + + :return: The migrations of this V1KubeVirtConfiguration. + :rtype: V1MigrationConfiguration + """ + return self._migrations + + @migrations.setter + def migrations(self, migrations): + """ + Sets the migrations of this V1KubeVirtConfiguration. + + :param migrations: The migrations of this V1KubeVirtConfiguration. + :type: V1MigrationConfiguration + """ + + self._migrations = migrations + + @property + def network(self): + """ + Gets the network of this V1KubeVirtConfiguration. + + :return: The network of this V1KubeVirtConfiguration. + :rtype: V1NetworkConfiguration + """ + return self._network + + @network.setter + def network(self, network): + """ + Sets the network of this V1KubeVirtConfiguration. + + :param network: The network of this V1KubeVirtConfiguration. + :type: V1NetworkConfiguration + """ + + self._network = network + + @property + def ovmf_path(self): + """ + Gets the ovmf_path of this V1KubeVirtConfiguration. + + :return: The ovmf_path of this V1KubeVirtConfiguration. + :rtype: str + """ + return self._ovmf_path + + @ovmf_path.setter + def ovmf_path(self, ovmf_path): + """ + Sets the ovmf_path of this V1KubeVirtConfiguration. + + :param ovmf_path: The ovmf_path of this V1KubeVirtConfiguration. + :type: str + """ + + self._ovmf_path = ovmf_path + + @property + def selinux_launcher_type(self): + """ + Gets the selinux_launcher_type of this V1KubeVirtConfiguration. + + :return: The selinux_launcher_type of this V1KubeVirtConfiguration. + :rtype: str + """ + return self._selinux_launcher_type + + @selinux_launcher_type.setter + def selinux_launcher_type(self, selinux_launcher_type): + """ + Sets the selinux_launcher_type of this V1KubeVirtConfiguration. + + :param selinux_launcher_type: The selinux_launcher_type of this V1KubeVirtConfiguration. + :type: str + """ + + self._selinux_launcher_type = selinux_launcher_type + + @property + def smbi_os(self): + """ + Gets the smbi_os of this V1KubeVirtConfiguration. + + :return: The smbi_os of this V1KubeVirtConfiguration. + :rtype: V1SMBiosConfiguration + """ + return self._smbi_os + + @smbi_os.setter + def smbi_os(self, smbi_os): + """ + Sets the smbi_os of this V1KubeVirtConfiguration. + + :param smbi_os: The smbi_os of this V1KubeVirtConfiguration. + :type: V1SMBiosConfiguration + """ + + self._smbi_os = smbi_os + + @property + def supported_guest_agent_versions(self): + """ + Gets the supported_guest_agent_versions of this V1KubeVirtConfiguration. + + :return: The supported_guest_agent_versions of this V1KubeVirtConfiguration. + :rtype: list[str] + """ + return self._supported_guest_agent_versions + + @supported_guest_agent_versions.setter + def supported_guest_agent_versions(self, supported_guest_agent_versions): + """ + Sets the supported_guest_agent_versions of this V1KubeVirtConfiguration. + + :param supported_guest_agent_versions: The supported_guest_agent_versions of this V1KubeVirtConfiguration. + :type: list[str] + """ + + self._supported_guest_agent_versions = supported_guest_agent_versions + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1KubeVirtConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kube_virt_list.py b/kubevirt/models/v1_kube_virt_list.py new file mode 100644 index 00000000..31292a55 --- /dev/null +++ b/kubevirt/models/v1_kube_virt_list.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1KubeVirtList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'items': 'list[V1KubeVirt]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1KubeVirtList - a model defined in Swagger + """ + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1KubeVirtList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1KubeVirtList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1KubeVirtList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1KubeVirtList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1KubeVirtList. + + :return: The items of this V1KubeVirtList. + :rtype: list[V1KubeVirt] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1KubeVirtList. + + :param items: The items of this V1KubeVirtList. + :type: list[V1KubeVirt] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1KubeVirtList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1KubeVirtList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1KubeVirtList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1KubeVirtList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1KubeVirtList. + + :return: The metadata of this V1KubeVirtList. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1KubeVirtList. + + :param metadata: The metadata of this V1KubeVirtList. + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1KubeVirtList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kube_virt_self_sign_configuration.py b/kubevirt/models/v1_kube_virt_self_sign_configuration.py new file mode 100644 index 00000000..9cb3f069 --- /dev/null +++ b/kubevirt/models/v1_kube_virt_self_sign_configuration.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1KubeVirtSelfSignConfiguration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'ca_overlap_interval': 'V1Duration', + 'ca_rotate_interval': 'V1Duration', + 'cert_rotate_interval': 'V1Duration' + } + + attribute_map = { + 'ca_overlap_interval': 'caOverlapInterval', + 'ca_rotate_interval': 'caRotateInterval', + 'cert_rotate_interval': 'certRotateInterval' + } + + def __init__(self, ca_overlap_interval=None, ca_rotate_interval=None, cert_rotate_interval=None): + """ + V1KubeVirtSelfSignConfiguration - a model defined in Swagger + """ + + self._ca_overlap_interval = None + self._ca_rotate_interval = None + self._cert_rotate_interval = None + + if ca_overlap_interval is not None: + self.ca_overlap_interval = ca_overlap_interval + if ca_rotate_interval is not None: + self.ca_rotate_interval = ca_rotate_interval + if cert_rotate_interval is not None: + self.cert_rotate_interval = cert_rotate_interval + + @property + def ca_overlap_interval(self): + """ + Gets the ca_overlap_interval of this V1KubeVirtSelfSignConfiguration. + + :return: The ca_overlap_interval of this V1KubeVirtSelfSignConfiguration. + :rtype: V1Duration + """ + return self._ca_overlap_interval + + @ca_overlap_interval.setter + def ca_overlap_interval(self, ca_overlap_interval): + """ + Sets the ca_overlap_interval of this V1KubeVirtSelfSignConfiguration. + + :param ca_overlap_interval: The ca_overlap_interval of this V1KubeVirtSelfSignConfiguration. + :type: V1Duration + """ + + self._ca_overlap_interval = ca_overlap_interval + + @property + def ca_rotate_interval(self): + """ + Gets the ca_rotate_interval of this V1KubeVirtSelfSignConfiguration. + + :return: The ca_rotate_interval of this V1KubeVirtSelfSignConfiguration. + :rtype: V1Duration + """ + return self._ca_rotate_interval + + @ca_rotate_interval.setter + def ca_rotate_interval(self, ca_rotate_interval): + """ + Sets the ca_rotate_interval of this V1KubeVirtSelfSignConfiguration. + + :param ca_rotate_interval: The ca_rotate_interval of this V1KubeVirtSelfSignConfiguration. + :type: V1Duration + """ + + self._ca_rotate_interval = ca_rotate_interval + + @property + def cert_rotate_interval(self): + """ + Gets the cert_rotate_interval of this V1KubeVirtSelfSignConfiguration. + + :return: The cert_rotate_interval of this V1KubeVirtSelfSignConfiguration. + :rtype: V1Duration + """ + return self._cert_rotate_interval + + @cert_rotate_interval.setter + def cert_rotate_interval(self, cert_rotate_interval): + """ + Sets the cert_rotate_interval of this V1KubeVirtSelfSignConfiguration. + + :param cert_rotate_interval: The cert_rotate_interval of this V1KubeVirtSelfSignConfiguration. + :type: V1Duration + """ + + self._cert_rotate_interval = cert_rotate_interval + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1KubeVirtSelfSignConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kube_virt_spec.py b/kubevirt/models/v1_kube_virt_spec.py new file mode 100644 index 00000000..85c811fa --- /dev/null +++ b/kubevirt/models/v1_kube_virt_spec.py @@ -0,0 +1,319 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1KubeVirtSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'certificate_rotate_strategy': 'V1KubeVirtCertificateRotateStrategy', + 'configuration': 'V1KubeVirtConfiguration', + 'image_pull_policy': 'str', + 'image_registry': 'str', + 'image_tag': 'str', + 'monitor_account': 'str', + 'monitor_namespace': 'str', + 'uninstall_strategy': 'str' + } + + attribute_map = { + 'certificate_rotate_strategy': 'certificateRotateStrategy', + 'configuration': 'configuration', + 'image_pull_policy': 'imagePullPolicy', + 'image_registry': 'imageRegistry', + 'image_tag': 'imageTag', + 'monitor_account': 'monitorAccount', + 'monitor_namespace': 'monitorNamespace', + 'uninstall_strategy': 'uninstallStrategy' + } + + def __init__(self, certificate_rotate_strategy=None, configuration=None, image_pull_policy=None, image_registry=None, image_tag=None, monitor_account=None, monitor_namespace=None, uninstall_strategy=None): + """ + V1KubeVirtSpec - a model defined in Swagger + """ + + self._certificate_rotate_strategy = None + self._configuration = None + self._image_pull_policy = None + self._image_registry = None + self._image_tag = None + self._monitor_account = None + self._monitor_namespace = None + self._uninstall_strategy = None + + if certificate_rotate_strategy is not None: + self.certificate_rotate_strategy = certificate_rotate_strategy + if configuration is not None: + self.configuration = configuration + if image_pull_policy is not None: + self.image_pull_policy = image_pull_policy + if image_registry is not None: + self.image_registry = image_registry + if image_tag is not None: + self.image_tag = image_tag + if monitor_account is not None: + self.monitor_account = monitor_account + if monitor_namespace is not None: + self.monitor_namespace = monitor_namespace + if uninstall_strategy is not None: + self.uninstall_strategy = uninstall_strategy + + @property + def certificate_rotate_strategy(self): + """ + Gets the certificate_rotate_strategy of this V1KubeVirtSpec. + + :return: The certificate_rotate_strategy of this V1KubeVirtSpec. + :rtype: V1KubeVirtCertificateRotateStrategy + """ + return self._certificate_rotate_strategy + + @certificate_rotate_strategy.setter + def certificate_rotate_strategy(self, certificate_rotate_strategy): + """ + Sets the certificate_rotate_strategy of this V1KubeVirtSpec. + + :param certificate_rotate_strategy: The certificate_rotate_strategy of this V1KubeVirtSpec. + :type: V1KubeVirtCertificateRotateStrategy + """ + + self._certificate_rotate_strategy = certificate_rotate_strategy + + @property + def configuration(self): + """ + Gets the configuration of this V1KubeVirtSpec. + holds kubevirt configurations. same as the virt-configMap + + :return: The configuration of this V1KubeVirtSpec. + :rtype: V1KubeVirtConfiguration + """ + return self._configuration + + @configuration.setter + def configuration(self, configuration): + """ + Sets the configuration of this V1KubeVirtSpec. + holds kubevirt configurations. same as the virt-configMap + + :param configuration: The configuration of this V1KubeVirtSpec. + :type: V1KubeVirtConfiguration + """ + + self._configuration = configuration + + @property + def image_pull_policy(self): + """ + Gets the image_pull_policy of this V1KubeVirtSpec. + The ImagePullPolicy to use. + + :return: The image_pull_policy of this V1KubeVirtSpec. + :rtype: str + """ + return self._image_pull_policy + + @image_pull_policy.setter + def image_pull_policy(self, image_pull_policy): + """ + Sets the image_pull_policy of this V1KubeVirtSpec. + The ImagePullPolicy to use. + + :param image_pull_policy: The image_pull_policy of this V1KubeVirtSpec. + :type: str + """ + + self._image_pull_policy = image_pull_policy + + @property + def image_registry(self): + """ + Gets the image_registry of this V1KubeVirtSpec. + The image registry to pull the container images from Defaults to the same registry the operator's container image is pulled from. + + :return: The image_registry of this V1KubeVirtSpec. + :rtype: str + """ + return self._image_registry + + @image_registry.setter + def image_registry(self, image_registry): + """ + Sets the image_registry of this V1KubeVirtSpec. + The image registry to pull the container images from Defaults to the same registry the operator's container image is pulled from. + + :param image_registry: The image_registry of this V1KubeVirtSpec. + :type: str + """ + + self._image_registry = image_registry + + @property + def image_tag(self): + """ + Gets the image_tag of this V1KubeVirtSpec. + The image tag to use for the continer images installed. Defaults to the same tag as the operator's container image. + + :return: The image_tag of this V1KubeVirtSpec. + :rtype: str + """ + return self._image_tag + + @image_tag.setter + def image_tag(self, image_tag): + """ + Sets the image_tag of this V1KubeVirtSpec. + The image tag to use for the continer images installed. Defaults to the same tag as the operator's container image. + + :param image_tag: The image_tag of this V1KubeVirtSpec. + :type: str + """ + + self._image_tag = image_tag + + @property + def monitor_account(self): + """ + Gets the monitor_account of this V1KubeVirtSpec. + The name of the Prometheus service account that needs read-access to KubeVirt endpoints Defaults to prometheus-k8s + + :return: The monitor_account of this V1KubeVirtSpec. + :rtype: str + """ + return self._monitor_account + + @monitor_account.setter + def monitor_account(self, monitor_account): + """ + Sets the monitor_account of this V1KubeVirtSpec. + The name of the Prometheus service account that needs read-access to KubeVirt endpoints Defaults to prometheus-k8s + + :param monitor_account: The monitor_account of this V1KubeVirtSpec. + :type: str + """ + + self._monitor_account = monitor_account + + @property + def monitor_namespace(self): + """ + Gets the monitor_namespace of this V1KubeVirtSpec. + The namespace Prometheus is deployed in Defaults to openshift-monitor + + :return: The monitor_namespace of this V1KubeVirtSpec. + :rtype: str + """ + return self._monitor_namespace + + @monitor_namespace.setter + def monitor_namespace(self, monitor_namespace): + """ + Sets the monitor_namespace of this V1KubeVirtSpec. + The namespace Prometheus is deployed in Defaults to openshift-monitor + + :param monitor_namespace: The monitor_namespace of this V1KubeVirtSpec. + :type: str + """ + + self._monitor_namespace = monitor_namespace + + @property + def uninstall_strategy(self): + """ + Gets the uninstall_strategy of this V1KubeVirtSpec. + Specifies if kubevirt can be deleted if workloads are still present. This is mainly a precaution to avoid accidental data loss + + :return: The uninstall_strategy of this V1KubeVirtSpec. + :rtype: str + """ + return self._uninstall_strategy + + @uninstall_strategy.setter + def uninstall_strategy(self, uninstall_strategy): + """ + Sets the uninstall_strategy of this V1KubeVirtSpec. + Specifies if kubevirt can be deleted if workloads are still present. This is mainly a precaution to avoid accidental data loss + + :param uninstall_strategy: The uninstall_strategy of this V1KubeVirtSpec. + :type: str + """ + + self._uninstall_strategy = uninstall_strategy + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1KubeVirtSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kube_virt_status.py b/kubevirt/models/v1_kube_virt_status.py new file mode 100644 index 00000000..cdbdf8bb --- /dev/null +++ b/kubevirt/models/v1_kube_virt_status.py @@ -0,0 +1,383 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1KubeVirtStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'conditions': 'list[V1KubeVirtCondition]', + 'observed_deployment_config': 'str', + 'observed_deployment_id': 'str', + 'observed_kube_virt_registry': 'str', + 'observed_kube_virt_version': 'str', + 'operator_version': 'str', + 'phase': 'str', + 'target_deployment_config': 'str', + 'target_deployment_id': 'str', + 'target_kube_virt_registry': 'str', + 'target_kube_virt_version': 'str' + } + + attribute_map = { + 'conditions': 'conditions', + 'observed_deployment_config': 'observedDeploymentConfig', + 'observed_deployment_id': 'observedDeploymentID', + 'observed_kube_virt_registry': 'observedKubeVirtRegistry', + 'observed_kube_virt_version': 'observedKubeVirtVersion', + 'operator_version': 'operatorVersion', + 'phase': 'phase', + 'target_deployment_config': 'targetDeploymentConfig', + 'target_deployment_id': 'targetDeploymentID', + 'target_kube_virt_registry': 'targetKubeVirtRegistry', + 'target_kube_virt_version': 'targetKubeVirtVersion' + } + + def __init__(self, conditions=None, observed_deployment_config=None, observed_deployment_id=None, observed_kube_virt_registry=None, observed_kube_virt_version=None, operator_version=None, phase=None, target_deployment_config=None, target_deployment_id=None, target_kube_virt_registry=None, target_kube_virt_version=None): + """ + V1KubeVirtStatus - a model defined in Swagger + """ + + self._conditions = None + self._observed_deployment_config = None + self._observed_deployment_id = None + self._observed_kube_virt_registry = None + self._observed_kube_virt_version = None + self._operator_version = None + self._phase = None + self._target_deployment_config = None + self._target_deployment_id = None + self._target_kube_virt_registry = None + self._target_kube_virt_version = None + + if conditions is not None: + self.conditions = conditions + if observed_deployment_config is not None: + self.observed_deployment_config = observed_deployment_config + if observed_deployment_id is not None: + self.observed_deployment_id = observed_deployment_id + if observed_kube_virt_registry is not None: + self.observed_kube_virt_registry = observed_kube_virt_registry + if observed_kube_virt_version is not None: + self.observed_kube_virt_version = observed_kube_virt_version + if operator_version is not None: + self.operator_version = operator_version + if phase is not None: + self.phase = phase + if target_deployment_config is not None: + self.target_deployment_config = target_deployment_config + if target_deployment_id is not None: + self.target_deployment_id = target_deployment_id + if target_kube_virt_registry is not None: + self.target_kube_virt_registry = target_kube_virt_registry + if target_kube_virt_version is not None: + self.target_kube_virt_version = target_kube_virt_version + + @property + def conditions(self): + """ + Gets the conditions of this V1KubeVirtStatus. + + :return: The conditions of this V1KubeVirtStatus. + :rtype: list[V1KubeVirtCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1KubeVirtStatus. + + :param conditions: The conditions of this V1KubeVirtStatus. + :type: list[V1KubeVirtCondition] + """ + + self._conditions = conditions + + @property + def observed_deployment_config(self): + """ + Gets the observed_deployment_config of this V1KubeVirtStatus. + + :return: The observed_deployment_config of this V1KubeVirtStatus. + :rtype: str + """ + return self._observed_deployment_config + + @observed_deployment_config.setter + def observed_deployment_config(self, observed_deployment_config): + """ + Sets the observed_deployment_config of this V1KubeVirtStatus. + + :param observed_deployment_config: The observed_deployment_config of this V1KubeVirtStatus. + :type: str + """ + + self._observed_deployment_config = observed_deployment_config + + @property + def observed_deployment_id(self): + """ + Gets the observed_deployment_id of this V1KubeVirtStatus. + + :return: The observed_deployment_id of this V1KubeVirtStatus. + :rtype: str + """ + return self._observed_deployment_id + + @observed_deployment_id.setter + def observed_deployment_id(self, observed_deployment_id): + """ + Sets the observed_deployment_id of this V1KubeVirtStatus. + + :param observed_deployment_id: The observed_deployment_id of this V1KubeVirtStatus. + :type: str + """ + + self._observed_deployment_id = observed_deployment_id + + @property + def observed_kube_virt_registry(self): + """ + Gets the observed_kube_virt_registry of this V1KubeVirtStatus. + + :return: The observed_kube_virt_registry of this V1KubeVirtStatus. + :rtype: str + """ + return self._observed_kube_virt_registry + + @observed_kube_virt_registry.setter + def observed_kube_virt_registry(self, observed_kube_virt_registry): + """ + Sets the observed_kube_virt_registry of this V1KubeVirtStatus. + + :param observed_kube_virt_registry: The observed_kube_virt_registry of this V1KubeVirtStatus. + :type: str + """ + + self._observed_kube_virt_registry = observed_kube_virt_registry + + @property + def observed_kube_virt_version(self): + """ + Gets the observed_kube_virt_version of this V1KubeVirtStatus. + + :return: The observed_kube_virt_version of this V1KubeVirtStatus. + :rtype: str + """ + return self._observed_kube_virt_version + + @observed_kube_virt_version.setter + def observed_kube_virt_version(self, observed_kube_virt_version): + """ + Sets the observed_kube_virt_version of this V1KubeVirtStatus. + + :param observed_kube_virt_version: The observed_kube_virt_version of this V1KubeVirtStatus. + :type: str + """ + + self._observed_kube_virt_version = observed_kube_virt_version + + @property + def operator_version(self): + """ + Gets the operator_version of this V1KubeVirtStatus. + + :return: The operator_version of this V1KubeVirtStatus. + :rtype: str + """ + return self._operator_version + + @operator_version.setter + def operator_version(self, operator_version): + """ + Sets the operator_version of this V1KubeVirtStatus. + + :param operator_version: The operator_version of this V1KubeVirtStatus. + :type: str + """ + + self._operator_version = operator_version + + @property + def phase(self): + """ + Gets the phase of this V1KubeVirtStatus. + + :return: The phase of this V1KubeVirtStatus. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """ + Sets the phase of this V1KubeVirtStatus. + + :param phase: The phase of this V1KubeVirtStatus. + :type: str + """ + + self._phase = phase + + @property + def target_deployment_config(self): + """ + Gets the target_deployment_config of this V1KubeVirtStatus. + + :return: The target_deployment_config of this V1KubeVirtStatus. + :rtype: str + """ + return self._target_deployment_config + + @target_deployment_config.setter + def target_deployment_config(self, target_deployment_config): + """ + Sets the target_deployment_config of this V1KubeVirtStatus. + + :param target_deployment_config: The target_deployment_config of this V1KubeVirtStatus. + :type: str + """ + + self._target_deployment_config = target_deployment_config + + @property + def target_deployment_id(self): + """ + Gets the target_deployment_id of this V1KubeVirtStatus. + + :return: The target_deployment_id of this V1KubeVirtStatus. + :rtype: str + """ + return self._target_deployment_id + + @target_deployment_id.setter + def target_deployment_id(self, target_deployment_id): + """ + Sets the target_deployment_id of this V1KubeVirtStatus. + + :param target_deployment_id: The target_deployment_id of this V1KubeVirtStatus. + :type: str + """ + + self._target_deployment_id = target_deployment_id + + @property + def target_kube_virt_registry(self): + """ + Gets the target_kube_virt_registry of this V1KubeVirtStatus. + + :return: The target_kube_virt_registry of this V1KubeVirtStatus. + :rtype: str + """ + return self._target_kube_virt_registry + + @target_kube_virt_registry.setter + def target_kube_virt_registry(self, target_kube_virt_registry): + """ + Sets the target_kube_virt_registry of this V1KubeVirtStatus. + + :param target_kube_virt_registry: The target_kube_virt_registry of this V1KubeVirtStatus. + :type: str + """ + + self._target_kube_virt_registry = target_kube_virt_registry + + @property + def target_kube_virt_version(self): + """ + Gets the target_kube_virt_version of this V1KubeVirtStatus. + + :return: The target_kube_virt_version of this V1KubeVirtStatus. + :rtype: str + """ + return self._target_kube_virt_version + + @target_kube_virt_version.setter + def target_kube_virt_version(self, target_kube_virt_version): + """ + Sets the target_kube_virt_version of this V1KubeVirtStatus. + + :param target_kube_virt_version: The target_kube_virt_version of this V1KubeVirtStatus. + :type: str + """ + + self._target_kube_virt_version = target_kube_virt_version + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1KubeVirtStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_migration_configuration.py b/kubevirt/models/v1_migration_configuration.py new file mode 100644 index 00000000..405fe790 --- /dev/null +++ b/kubevirt/models/v1_migration_configuration.py @@ -0,0 +1,307 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1MigrationConfiguration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'allow_auto_converge': 'str', + 'bandwidth_per_migration': 'ResourceQuantity', + 'completion_timeout_per_gi_b': 'str', + 'node_drain_taint_key': 'str', + 'parallel_migrations_per_cluster': 'str', + 'parallel_outbound_migrations_per_node': 'str', + 'progress_timeout': 'str', + 'unsafe_migration_override': 'str' + } + + attribute_map = { + 'allow_auto_converge': 'allowAutoConverge', + 'bandwidth_per_migration': 'bandwidthPerMigration', + 'completion_timeout_per_gi_b': 'completionTimeoutPerGiB', + 'node_drain_taint_key': 'nodeDrainTaintKey', + 'parallel_migrations_per_cluster': 'parallelMigrationsPerCluster', + 'parallel_outbound_migrations_per_node': 'parallelOutboundMigrationsPerNode', + 'progress_timeout': 'progressTimeout', + 'unsafe_migration_override': 'unsafeMigrationOverride' + } + + def __init__(self, allow_auto_converge=None, bandwidth_per_migration=None, completion_timeout_per_gi_b=None, node_drain_taint_key=None, parallel_migrations_per_cluster=None, parallel_outbound_migrations_per_node=None, progress_timeout=None, unsafe_migration_override=None): + """ + V1MigrationConfiguration - a model defined in Swagger + """ + + self._allow_auto_converge = None + self._bandwidth_per_migration = None + self._completion_timeout_per_gi_b = None + self._node_drain_taint_key = None + self._parallel_migrations_per_cluster = None + self._parallel_outbound_migrations_per_node = None + self._progress_timeout = None + self._unsafe_migration_override = None + + self.allow_auto_converge = allow_auto_converge + if bandwidth_per_migration is not None: + self.bandwidth_per_migration = bandwidth_per_migration + if completion_timeout_per_gi_b is not None: + self.completion_timeout_per_gi_b = completion_timeout_per_gi_b + if node_drain_taint_key is not None: + self.node_drain_taint_key = node_drain_taint_key + if parallel_migrations_per_cluster is not None: + self.parallel_migrations_per_cluster = parallel_migrations_per_cluster + if parallel_outbound_migrations_per_node is not None: + self.parallel_outbound_migrations_per_node = parallel_outbound_migrations_per_node + if progress_timeout is not None: + self.progress_timeout = progress_timeout + self.unsafe_migration_override = unsafe_migration_override + + @property + def allow_auto_converge(self): + """ + Gets the allow_auto_converge of this V1MigrationConfiguration. + + :return: The allow_auto_converge of this V1MigrationConfiguration. + :rtype: str + """ + return self._allow_auto_converge + + @allow_auto_converge.setter + def allow_auto_converge(self, allow_auto_converge): + """ + Sets the allow_auto_converge of this V1MigrationConfiguration. + + :param allow_auto_converge: The allow_auto_converge of this V1MigrationConfiguration. + :type: str + """ + if allow_auto_converge is None: + raise ValueError("Invalid value for `allow_auto_converge`, must not be `None`") + + self._allow_auto_converge = allow_auto_converge + + @property + def bandwidth_per_migration(self): + """ + Gets the bandwidth_per_migration of this V1MigrationConfiguration. + + :return: The bandwidth_per_migration of this V1MigrationConfiguration. + :rtype: ResourceQuantity + """ + return self._bandwidth_per_migration + + @bandwidth_per_migration.setter + def bandwidth_per_migration(self, bandwidth_per_migration): + """ + Sets the bandwidth_per_migration of this V1MigrationConfiguration. + + :param bandwidth_per_migration: The bandwidth_per_migration of this V1MigrationConfiguration. + :type: ResourceQuantity + """ + + self._bandwidth_per_migration = bandwidth_per_migration + + @property + def completion_timeout_per_gi_b(self): + """ + Gets the completion_timeout_per_gi_b of this V1MigrationConfiguration. + + :return: The completion_timeout_per_gi_b of this V1MigrationConfiguration. + :rtype: str + """ + return self._completion_timeout_per_gi_b + + @completion_timeout_per_gi_b.setter + def completion_timeout_per_gi_b(self, completion_timeout_per_gi_b): + """ + Sets the completion_timeout_per_gi_b of this V1MigrationConfiguration. + + :param completion_timeout_per_gi_b: The completion_timeout_per_gi_b of this V1MigrationConfiguration. + :type: str + """ + + self._completion_timeout_per_gi_b = completion_timeout_per_gi_b + + @property + def node_drain_taint_key(self): + """ + Gets the node_drain_taint_key of this V1MigrationConfiguration. + + :return: The node_drain_taint_key of this V1MigrationConfiguration. + :rtype: str + """ + return self._node_drain_taint_key + + @node_drain_taint_key.setter + def node_drain_taint_key(self, node_drain_taint_key): + """ + Sets the node_drain_taint_key of this V1MigrationConfiguration. + + :param node_drain_taint_key: The node_drain_taint_key of this V1MigrationConfiguration. + :type: str + """ + + self._node_drain_taint_key = node_drain_taint_key + + @property + def parallel_migrations_per_cluster(self): + """ + Gets the parallel_migrations_per_cluster of this V1MigrationConfiguration. + + :return: The parallel_migrations_per_cluster of this V1MigrationConfiguration. + :rtype: str + """ + return self._parallel_migrations_per_cluster + + @parallel_migrations_per_cluster.setter + def parallel_migrations_per_cluster(self, parallel_migrations_per_cluster): + """ + Sets the parallel_migrations_per_cluster of this V1MigrationConfiguration. + + :param parallel_migrations_per_cluster: The parallel_migrations_per_cluster of this V1MigrationConfiguration. + :type: str + """ + + self._parallel_migrations_per_cluster = parallel_migrations_per_cluster + + @property + def parallel_outbound_migrations_per_node(self): + """ + Gets the parallel_outbound_migrations_per_node of this V1MigrationConfiguration. + + :return: The parallel_outbound_migrations_per_node of this V1MigrationConfiguration. + :rtype: str + """ + return self._parallel_outbound_migrations_per_node + + @parallel_outbound_migrations_per_node.setter + def parallel_outbound_migrations_per_node(self, parallel_outbound_migrations_per_node): + """ + Sets the parallel_outbound_migrations_per_node of this V1MigrationConfiguration. + + :param parallel_outbound_migrations_per_node: The parallel_outbound_migrations_per_node of this V1MigrationConfiguration. + :type: str + """ + + self._parallel_outbound_migrations_per_node = parallel_outbound_migrations_per_node + + @property + def progress_timeout(self): + """ + Gets the progress_timeout of this V1MigrationConfiguration. + + :return: The progress_timeout of this V1MigrationConfiguration. + :rtype: str + """ + return self._progress_timeout + + @progress_timeout.setter + def progress_timeout(self, progress_timeout): + """ + Sets the progress_timeout of this V1MigrationConfiguration. + + :param progress_timeout: The progress_timeout of this V1MigrationConfiguration. + :type: str + """ + + self._progress_timeout = progress_timeout + + @property + def unsafe_migration_override(self): + """ + Gets the unsafe_migration_override of this V1MigrationConfiguration. + + :return: The unsafe_migration_override of this V1MigrationConfiguration. + :rtype: str + """ + return self._unsafe_migration_override + + @unsafe_migration_override.setter + def unsafe_migration_override(self, unsafe_migration_override): + """ + Sets the unsafe_migration_override of this V1MigrationConfiguration. + + :param unsafe_migration_override: The unsafe_migration_override of this V1MigrationConfiguration. + :type: str + """ + if unsafe_migration_override is None: + raise ValueError("Invalid value for `unsafe_migration_override`, must not be `None`") + + self._unsafe_migration_override = unsafe_migration_override + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1MigrationConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_network_configuration.py b/kubevirt/models/v1_network_configuration.py new file mode 100644 index 00000000..643f2961 --- /dev/null +++ b/kubevirt/models/v1_network_configuration.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1NetworkConfiguration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'default_network_interface': 'str', + 'permit_bridge_interface_on_pod_network': 'str', + 'permit_slirp_interface': 'str' + } + + attribute_map = { + 'default_network_interface': 'defaultNetworkInterface', + 'permit_bridge_interface_on_pod_network': 'permitBridgeInterfaceOnPodNetwork', + 'permit_slirp_interface': 'permitSlirpInterface' + } + + def __init__(self, default_network_interface=None, permit_bridge_interface_on_pod_network=None, permit_slirp_interface=None): + """ + V1NetworkConfiguration - a model defined in Swagger + """ + + self._default_network_interface = None + self._permit_bridge_interface_on_pod_network = None + self._permit_slirp_interface = None + + if default_network_interface is not None: + self.default_network_interface = default_network_interface + if permit_bridge_interface_on_pod_network is not None: + self.permit_bridge_interface_on_pod_network = permit_bridge_interface_on_pod_network + if permit_slirp_interface is not None: + self.permit_slirp_interface = permit_slirp_interface + + @property + def default_network_interface(self): + """ + Gets the default_network_interface of this V1NetworkConfiguration. + + :return: The default_network_interface of this V1NetworkConfiguration. + :rtype: str + """ + return self._default_network_interface + + @default_network_interface.setter + def default_network_interface(self, default_network_interface): + """ + Sets the default_network_interface of this V1NetworkConfiguration. + + :param default_network_interface: The default_network_interface of this V1NetworkConfiguration. + :type: str + """ + + self._default_network_interface = default_network_interface + + @property + def permit_bridge_interface_on_pod_network(self): + """ + Gets the permit_bridge_interface_on_pod_network of this V1NetworkConfiguration. + + :return: The permit_bridge_interface_on_pod_network of this V1NetworkConfiguration. + :rtype: str + """ + return self._permit_bridge_interface_on_pod_network + + @permit_bridge_interface_on_pod_network.setter + def permit_bridge_interface_on_pod_network(self, permit_bridge_interface_on_pod_network): + """ + Sets the permit_bridge_interface_on_pod_network of this V1NetworkConfiguration. + + :param permit_bridge_interface_on_pod_network: The permit_bridge_interface_on_pod_network of this V1NetworkConfiguration. + :type: str + """ + + self._permit_bridge_interface_on_pod_network = permit_bridge_interface_on_pod_network + + @property + def permit_slirp_interface(self): + """ + Gets the permit_slirp_interface of this V1NetworkConfiguration. + + :return: The permit_slirp_interface of this V1NetworkConfiguration. + :rtype: str + """ + return self._permit_slirp_interface + + @permit_slirp_interface.setter + def permit_slirp_interface(self, permit_slirp_interface): + """ + Sets the permit_slirp_interface of this V1NetworkConfiguration. + + :param permit_slirp_interface: The permit_slirp_interface of this V1NetworkConfiguration. + :type: str + """ + + self._permit_slirp_interface = permit_slirp_interface + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1NetworkConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_sm_bios_configuration.py b/kubevirt/models/v1_sm_bios_configuration.py new file mode 100644 index 00000000..2dad97f6 --- /dev/null +++ b/kubevirt/models/v1_sm_bios_configuration.py @@ -0,0 +1,227 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SMBiosConfiguration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'family': 'str', + 'manufacturer': 'str', + 'product': 'str', + 'sku': 'str', + 'version': 'str' + } + + attribute_map = { + 'family': 'family', + 'manufacturer': 'manufacturer', + 'product': 'product', + 'sku': 'sku', + 'version': 'version' + } + + def __init__(self, family=None, manufacturer=None, product=None, sku=None, version=None): + """ + V1SMBiosConfiguration - a model defined in Swagger + """ + + self._family = None + self._manufacturer = None + self._product = None + self._sku = None + self._version = None + + if family is not None: + self.family = family + if manufacturer is not None: + self.manufacturer = manufacturer + if product is not None: + self.product = product + if sku is not None: + self.sku = sku + if version is not None: + self.version = version + + @property + def family(self): + """ + Gets the family of this V1SMBiosConfiguration. + + :return: The family of this V1SMBiosConfiguration. + :rtype: str + """ + return self._family + + @family.setter + def family(self, family): + """ + Sets the family of this V1SMBiosConfiguration. + + :param family: The family of this V1SMBiosConfiguration. + :type: str + """ + + self._family = family + + @property + def manufacturer(self): + """ + Gets the manufacturer of this V1SMBiosConfiguration. + + :return: The manufacturer of this V1SMBiosConfiguration. + :rtype: str + """ + return self._manufacturer + + @manufacturer.setter + def manufacturer(self, manufacturer): + """ + Sets the manufacturer of this V1SMBiosConfiguration. + + :param manufacturer: The manufacturer of this V1SMBiosConfiguration. + :type: str + """ + + self._manufacturer = manufacturer + + @property + def product(self): + """ + Gets the product of this V1SMBiosConfiguration. + + :return: The product of this V1SMBiosConfiguration. + :rtype: str + """ + return self._product + + @product.setter + def product(self, product): + """ + Sets the product of this V1SMBiosConfiguration. + + :param product: The product of this V1SMBiosConfiguration. + :type: str + """ + + self._product = product + + @property + def sku(self): + """ + Gets the sku of this V1SMBiosConfiguration. + + :return: The sku of this V1SMBiosConfiguration. + :rtype: str + """ + return self._sku + + @sku.setter + def sku(self, sku): + """ + Sets the sku of this V1SMBiosConfiguration. + + :param sku: The sku of this V1SMBiosConfiguration. + :type: str + """ + + self._sku = sku + + @property + def version(self): + """ + Gets the version of this V1SMBiosConfiguration. + + :return: The version of this V1SMBiosConfiguration. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """ + Sets the version of this V1SMBiosConfiguration. + + :param version: The version of this V1SMBiosConfiguration. + :type: str + """ + + self._version = version + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1SMBiosConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 5d58ae6b..86843443 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.30.0-180-g758da66d" +VERSION = "v0.31.0-66-g442be6fa" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 5445e808..534230d8 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.30.0-180-g758da66d" +"packageVersion": "v0.31.0-66-g442be6fa" } diff --git a/test/test_default_api.py b/test/test_default_api.py index af34dcca..7fd44dbe 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -44,6 +44,14 @@ def test_console(self): Test case for console + """ + pass + + def test_create_namespaced_kube_virt(self): + """ + Test case for create_namespaced_kube_virt + + """ pass @@ -100,6 +108,14 @@ def test_create_namespaced_virtual_machine_snapshot_content(self): Test case for create_namespaced_virtual_machine_snapshot_content + """ + pass + + def test_delete_collection_namespaced_kube_virt(self): + """ + Test case for delete_collection_namespaced_kube_virt + + """ pass @@ -156,6 +172,14 @@ def test_delete_collection_namespaced_virtual_machine_snapshot_content(self): Test case for delete_collection_namespaced_virtual_machine_snapshot_content + """ + pass + + def test_delete_namespaced_kube_virt(self): + """ + Test case for delete_namespaced_kube_virt + + """ pass @@ -308,6 +332,22 @@ def test_guestosinfo(self): Test case for guestosinfo + """ + pass + + def test_list_kube_virt_for_all_namespaces(self): + """ + Test case for list_kube_virt_for_all_namespaces + + + """ + pass + + def test_list_namespaced_kube_virt(self): + """ + Test case for list_namespaced_kube_virt + + """ pass @@ -428,6 +468,14 @@ def test_migrate(self): Test case for migrate + """ + pass + + def test_patch_namespaced_kube_virt(self): + """ + Test case for patch_namespaced_kube_virt + + """ pass @@ -492,6 +540,14 @@ def test_pause(self): Test case for pause + """ + pass + + def test_read_namespaced_kube_virt(self): + """ + Test case for read_namespaced_kube_virt + + """ pass @@ -556,6 +612,14 @@ def test_rename(self): Test case for rename + """ + pass + + def test_replace_namespaced_kube_virt(self): + """ + Test case for replace_namespaced_kube_virt + + """ pass @@ -676,6 +740,22 @@ def test_vnc(self): Test case for vnc + """ + pass + + def test_watch_kube_virt_list_for_all_namespaces(self): + """ + Test case for watch_kube_virt_list_for_all_namespaces + + + """ + pass + + def test_watch_namespaced_kube_virt(self): + """ + Test case for watch_namespaced_kube_virt + + """ pass diff --git a/test/test_v1_developer_configuration.py b/test/test_v1_developer_configuration.py new file mode 100644 index 00000000..d0b9d45c --- /dev/null +++ b/test/test_v1_developer_configuration.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_developer_configuration import V1DeveloperConfiguration + + +class TestV1DeveloperConfiguration(unittest.TestCase): + """ V1DeveloperConfiguration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DeveloperConfiguration(self): + """ + Test V1DeveloperConfiguration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_developer_configuration.V1DeveloperConfiguration() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_duration.py b/test/test_v1_duration.py new file mode 100644 index 00000000..c2e6063a --- /dev/null +++ b/test/test_v1_duration.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_duration import V1Duration + + +class TestV1Duration(unittest.TestCase): + """ V1Duration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Duration(self): + """ + Test V1Duration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_duration.V1Duration() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_kube_virt.py b/test/test_v1_kube_virt.py new file mode 100644 index 00000000..01076fc7 --- /dev/null +++ b/test/test_v1_kube_virt.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_kube_virt import V1KubeVirt + + +class TestV1KubeVirt(unittest.TestCase): + """ V1KubeVirt unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1KubeVirt(self): + """ + Test V1KubeVirt + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_kube_virt.V1KubeVirt() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_kube_virt_certificate_rotate_strategy.py b/test/test_v1_kube_virt_certificate_rotate_strategy.py new file mode 100644 index 00000000..0bcc53b9 --- /dev/null +++ b/test/test_v1_kube_virt_certificate_rotate_strategy.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_kube_virt_certificate_rotate_strategy import V1KubeVirtCertificateRotateStrategy + + +class TestV1KubeVirtCertificateRotateStrategy(unittest.TestCase): + """ V1KubeVirtCertificateRotateStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1KubeVirtCertificateRotateStrategy(self): + """ + Test V1KubeVirtCertificateRotateStrategy + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_kube_virt_certificate_rotate_strategy.V1KubeVirtCertificateRotateStrategy() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_kube_virt_condition.py b/test/test_v1_kube_virt_condition.py new file mode 100644 index 00000000..f6d24926 --- /dev/null +++ b/test/test_v1_kube_virt_condition.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_kube_virt_condition import V1KubeVirtCondition + + +class TestV1KubeVirtCondition(unittest.TestCase): + """ V1KubeVirtCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1KubeVirtCondition(self): + """ + Test V1KubeVirtCondition + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_kube_virt_condition.V1KubeVirtCondition() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_kube_virt_configuration.py b/test/test_v1_kube_virt_configuration.py new file mode 100644 index 00000000..22c421a5 --- /dev/null +++ b/test/test_v1_kube_virt_configuration.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_kube_virt_configuration import V1KubeVirtConfiguration + + +class TestV1KubeVirtConfiguration(unittest.TestCase): + """ V1KubeVirtConfiguration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1KubeVirtConfiguration(self): + """ + Test V1KubeVirtConfiguration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_kube_virt_configuration.V1KubeVirtConfiguration() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_kube_virt_list.py b/test/test_v1_kube_virt_list.py new file mode 100644 index 00000000..e23f2374 --- /dev/null +++ b/test/test_v1_kube_virt_list.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_kube_virt_list import V1KubeVirtList + + +class TestV1KubeVirtList(unittest.TestCase): + """ V1KubeVirtList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1KubeVirtList(self): + """ + Test V1KubeVirtList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_kube_virt_list.V1KubeVirtList() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_kube_virt_self_sign_configuration.py b/test/test_v1_kube_virt_self_sign_configuration.py new file mode 100644 index 00000000..5de3baab --- /dev/null +++ b/test/test_v1_kube_virt_self_sign_configuration.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_kube_virt_self_sign_configuration import V1KubeVirtSelfSignConfiguration + + +class TestV1KubeVirtSelfSignConfiguration(unittest.TestCase): + """ V1KubeVirtSelfSignConfiguration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1KubeVirtSelfSignConfiguration(self): + """ + Test V1KubeVirtSelfSignConfiguration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_kube_virt_self_sign_configuration.V1KubeVirtSelfSignConfiguration() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_kube_virt_spec.py b/test/test_v1_kube_virt_spec.py new file mode 100644 index 00000000..96a70edc --- /dev/null +++ b/test/test_v1_kube_virt_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_kube_virt_spec import V1KubeVirtSpec + + +class TestV1KubeVirtSpec(unittest.TestCase): + """ V1KubeVirtSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1KubeVirtSpec(self): + """ + Test V1KubeVirtSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_kube_virt_spec.V1KubeVirtSpec() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_kube_virt_status.py b/test/test_v1_kube_virt_status.py new file mode 100644 index 00000000..f31ce600 --- /dev/null +++ b/test/test_v1_kube_virt_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_kube_virt_status import V1KubeVirtStatus + + +class TestV1KubeVirtStatus(unittest.TestCase): + """ V1KubeVirtStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1KubeVirtStatus(self): + """ + Test V1KubeVirtStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_kube_virt_status.V1KubeVirtStatus() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_migration_configuration.py b/test/test_v1_migration_configuration.py new file mode 100644 index 00000000..be8ea91a --- /dev/null +++ b/test/test_v1_migration_configuration.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_migration_configuration import V1MigrationConfiguration + + +class TestV1MigrationConfiguration(unittest.TestCase): + """ V1MigrationConfiguration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1MigrationConfiguration(self): + """ + Test V1MigrationConfiguration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_migration_configuration.V1MigrationConfiguration() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_network_configuration.py b/test/test_v1_network_configuration.py new file mode 100644 index 00000000..e61ed6bf --- /dev/null +++ b/test/test_v1_network_configuration.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_network_configuration import V1NetworkConfiguration + + +class TestV1NetworkConfiguration(unittest.TestCase): + """ V1NetworkConfiguration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1NetworkConfiguration(self): + """ + Test V1NetworkConfiguration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_network_configuration.V1NetworkConfiguration() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_sm_bios_configuration.py b/test/test_v1_sm_bios_configuration.py new file mode 100644 index 00000000..02bd078a --- /dev/null +++ b/test/test_v1_sm_bios_configuration.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_sm_bios_configuration import V1SMBiosConfiguration + + +class TestV1SMBiosConfiguration(unittest.TestCase): + """ V1SMBiosConfiguration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SMBiosConfiguration(self): + """ + Test V1SMBiosConfiguration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_sm_bios_configuration.V1SMBiosConfiguration() + pass + + +if __name__ == '__main__': + unittest.main() From 6e9f30279194d56874a050bff5b07b849d18c1ef Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 14 Jul 2020 14:52:13 +0000 Subject: [PATCH 133/521] Client Python update by Travis Build 13451 --- README.md | 2 +- docs/V1KubeVirtConfiguration.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_kube_virt_configuration.py | 30 +++++++++---------- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 22 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 223fb4fd..eb7b6f42 100644 --- a/README.md +++ b/README.md @@ -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: v0.31.0-66-g442be6fa +- Package version: v0.31.0-76-g76933e9e - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index 33f45542..791ae4f4 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **network** | [**V1NetworkConfiguration**](V1NetworkConfiguration.md) | | [optional] **ovmf_path** | **str** | | [optional] **selinux_launcher_type** | **str** | | [optional] -**smbi_os** | [**V1SMBiosConfiguration**](V1SMBiosConfiguration.md) | | [optional] +**smbios** | [**V1SMBiosConfiguration**](V1SMBiosConfiguration.md) | | [optional] **supported_guest_agent_versions** | **list[str]** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 41d7e674..59c8d2d8 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.31.0-66-g442be6fa" + release_note="Auto-generated client v0.31.0-76-g76933e9e" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 02ec8334..c85b2a58 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.31.0-66-g442be6fa/python' + self.user_agent = 'Swagger-Codegen/v0.31.0-76-g76933e9e/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 40d08731..ba2846aa 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.31.0-66-g442be6fa".\ + "SDK Package Version: v0.31.0-76-g76933e9e".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index 6d066a50..394a3faf 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -41,7 +41,7 @@ class V1KubeVirtConfiguration(object): 'network': 'V1NetworkConfiguration', 'ovmf_path': 'str', 'selinux_launcher_type': 'str', - 'smbi_os': 'V1SMBiosConfiguration', + 'smbios': 'V1SMBiosConfiguration', 'supported_guest_agent_versions': 'list[str]' } @@ -56,11 +56,11 @@ class V1KubeVirtConfiguration(object): 'network': 'network', 'ovmf_path': 'ovmfPath', 'selinux_launcher_type': 'selinuxLauncherType', - 'smbi_os': 'smbiOS', + 'smbios': 'smbios', 'supported_guest_agent_versions': 'supportedGuestAgentVersions' } - def __init__(self, cpu_model=None, cpu_request=None, developer_configuration=None, emulated_machines=None, image_pull_policy=None, machine_type=None, migrations=None, network=None, ovmf_path=None, selinux_launcher_type=None, smbi_os=None, supported_guest_agent_versions=None): + def __init__(self, cpu_model=None, cpu_request=None, developer_configuration=None, emulated_machines=None, image_pull_policy=None, machine_type=None, migrations=None, network=None, ovmf_path=None, selinux_launcher_type=None, smbios=None, supported_guest_agent_versions=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ @@ -75,7 +75,7 @@ def __init__(self, cpu_model=None, cpu_request=None, developer_configuration=Non self._network = None self._ovmf_path = None self._selinux_launcher_type = None - self._smbi_os = None + self._smbios = None self._supported_guest_agent_versions = None if cpu_model is not None: @@ -98,8 +98,8 @@ def __init__(self, cpu_model=None, cpu_request=None, developer_configuration=Non self.ovmf_path = ovmf_path if selinux_launcher_type is not None: self.selinux_launcher_type = selinux_launcher_type - if smbi_os is not None: - self.smbi_os = smbi_os + if smbios is not None: + self.smbios = smbios if supported_guest_agent_versions is not None: self.supported_guest_agent_versions = supported_guest_agent_versions @@ -314,25 +314,25 @@ def selinux_launcher_type(self, selinux_launcher_type): self._selinux_launcher_type = selinux_launcher_type @property - def smbi_os(self): + def smbios(self): """ - Gets the smbi_os of this V1KubeVirtConfiguration. + Gets the smbios of this V1KubeVirtConfiguration. - :return: The smbi_os of this V1KubeVirtConfiguration. + :return: The smbios of this V1KubeVirtConfiguration. :rtype: V1SMBiosConfiguration """ - return self._smbi_os + return self._smbios - @smbi_os.setter - def smbi_os(self, smbi_os): + @smbios.setter + def smbios(self, smbios): """ - Sets the smbi_os of this V1KubeVirtConfiguration. + Sets the smbios of this V1KubeVirtConfiguration. - :param smbi_os: The smbi_os of this V1KubeVirtConfiguration. + :param smbios: The smbios of this V1KubeVirtConfiguration. :type: V1SMBiosConfiguration """ - self._smbi_os = smbi_os + self._smbios = smbios @property def supported_guest_agent_versions(self): diff --git a/setup.py b/setup.py index 86843443..a475e02d 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.31.0-66-g442be6fa" +VERSION = "v0.31.0-76-g76933e9e" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 534230d8..7f76b42c 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.31.0-66-g442be6fa" +"packageVersion": "v0.31.0-76-g76933e9e" } From f7092332aec6b60d9f960f6681ea4336e755b4bb Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sun, 23 Aug 2020 06:06:10 +0000 Subject: [PATCH 134/521] Client Python update by Travis Build 14251 --- README.md | 2 +- docs/V1Devices.md | 1 + docs/V1Disk.md | 1 + docs/V1KubeVirtConfiguration.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_devices.py | 30 ++++++++++++++++++- kubevirt/models/v1_disk.py | 30 ++++++++++++++++++- kubevirt/models/v1_kube_virt_configuration.py | 28 ++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 12 files changed, 94 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index eb7b6f42..a225c13f 100644 --- a/README.md +++ b/README.md @@ -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: v0.31.0-76-g76933e9e +- Package version: v0.32.0-rc.1-125-gf16a88a3 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index 775a24e1..027a7205 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **autoattach_graphics_device** | **bool** | Whether to attach the default graphics device or not. VNC will not be available if set to false. Defaults to true. | [optional] +**autoattach_mem_balloon** | **bool** | Whether to attach the Memory balloon device with default period. Period can be adjusted in virt-config. Defaults to true. | [optional] **autoattach_pod_interface** | **bool** | Whether to attach a pod network interface. Defaults to true. | [optional] **autoattach_serial_console** | **bool** | Whether to attach the default serial console or not. Serial console access will not be available if set to false. Defaults to true. | [optional] **block_multi_queue** | **bool** | Whether or not to enable virtio multi-queue for block devices | [optional] diff --git a/docs/V1Disk.md b/docs/V1Disk.md index ae04cf1c..e445793f 100644 --- a/docs/V1Disk.md +++ b/docs/V1Disk.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **dedicated_io_thread** | **bool** | dedicatedIOThread indicates this disk should have an exclusive IO Thread. Enabling this implies useIOThreads = true. Defaults to false. | [optional] **disk** | [**V1DiskTarget**](V1DiskTarget.md) | Attach a volume as a disk to the vmi. | [optional] **floppy** | [**V1FloppyTarget**](V1FloppyTarget.md) | Attach a volume as a floppy to the vmi. | [optional] +**io** | **str** | IO specifies which QEMU disk IO mode should be used. Supported values are: native, default, threads. | [optional] **lun** | [**V1LunTarget**](V1LunTarget.md) | Attach a volume as a LUN to the vmi. | [optional] **name** | **str** | Name is the device name | **serial** | **str** | Serial provides the ability to specify a serial number for the disk device. | [optional] diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index 791ae4f4..0493da5a 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **emulated_machines** | **list[str]** | | [optional] **image_pull_policy** | **str** | | [optional] **machine_type** | **str** | | [optional] +**mem_balloon_stats_period** | **int** | | [optional] **migrations** | [**V1MigrationConfiguration**](V1MigrationConfiguration.md) | | [optional] **network** | [**V1NetworkConfiguration**](V1NetworkConfiguration.md) | | [optional] **ovmf_path** | **str** | | [optional] diff --git a/git_push.sh b/git_push.sh index 59c8d2d8..a26085ad 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.31.0-76-g76933e9e" + release_note="Auto-generated client v0.32.0-rc.1-125-gf16a88a3" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index c85b2a58..6147a0bc 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.31.0-76-g76933e9e/python' + self.user_agent = 'Swagger-Codegen/v0.32.0-rc.1-125-gf16a88a3/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index ba2846aa..9f24e1a8 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.31.0-76-g76933e9e".\ + "SDK Package Version: v0.32.0-rc.1-125-gf16a88a3".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index 38bee263..e6958905 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -32,6 +32,7 @@ class V1Devices(object): """ swagger_types = { 'autoattach_graphics_device': 'bool', + 'autoattach_mem_balloon': 'bool', 'autoattach_pod_interface': 'bool', 'autoattach_serial_console': 'bool', 'block_multi_queue': 'bool', @@ -46,6 +47,7 @@ class V1Devices(object): attribute_map = { 'autoattach_graphics_device': 'autoattachGraphicsDevice', + 'autoattach_mem_balloon': 'autoattachMemBalloon', 'autoattach_pod_interface': 'autoattachPodInterface', 'autoattach_serial_console': 'autoattachSerialConsole', 'block_multi_queue': 'blockMultiQueue', @@ -58,12 +60,13 @@ class V1Devices(object): 'watchdog': 'watchdog' } - def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=None, autoattach_serial_console=None, block_multi_queue=None, disks=None, gpus=None, inputs=None, interfaces=None, network_interface_multiqueue=None, rng=None, watchdog=None): + def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, autoattach_pod_interface=None, autoattach_serial_console=None, block_multi_queue=None, disks=None, gpus=None, inputs=None, interfaces=None, network_interface_multiqueue=None, rng=None, watchdog=None): """ V1Devices - a model defined in Swagger """ self._autoattach_graphics_device = None + self._autoattach_mem_balloon = None self._autoattach_pod_interface = None self._autoattach_serial_console = None self._block_multi_queue = None @@ -77,6 +80,8 @@ def __init__(self, autoattach_graphics_device=None, autoattach_pod_interface=Non if autoattach_graphics_device is not None: self.autoattach_graphics_device = autoattach_graphics_device + if autoattach_mem_balloon is not None: + self.autoattach_mem_balloon = autoattach_mem_balloon if autoattach_pod_interface is not None: self.autoattach_pod_interface = autoattach_pod_interface if autoattach_serial_console is not None: @@ -121,6 +126,29 @@ def autoattach_graphics_device(self, autoattach_graphics_device): self._autoattach_graphics_device = autoattach_graphics_device + @property + def autoattach_mem_balloon(self): + """ + Gets the autoattach_mem_balloon of this V1Devices. + Whether to attach the Memory balloon device with default period. Period can be adjusted in virt-config. Defaults to true. + + :return: The autoattach_mem_balloon of this V1Devices. + :rtype: bool + """ + return self._autoattach_mem_balloon + + @autoattach_mem_balloon.setter + def autoattach_mem_balloon(self, autoattach_mem_balloon): + """ + Sets the autoattach_mem_balloon of this V1Devices. + Whether to attach the Memory balloon device with default period. Period can be adjusted in virt-config. Defaults to true. + + :param autoattach_mem_balloon: The autoattach_mem_balloon of this V1Devices. + :type: bool + """ + + self._autoattach_mem_balloon = autoattach_mem_balloon + @property def autoattach_pod_interface(self): """ diff --git a/kubevirt/models/v1_disk.py b/kubevirt/models/v1_disk.py index e1d7b3d2..0cdf7c1e 100644 --- a/kubevirt/models/v1_disk.py +++ b/kubevirt/models/v1_disk.py @@ -37,6 +37,7 @@ class V1Disk(object): 'dedicated_io_thread': 'bool', 'disk': 'V1DiskTarget', 'floppy': 'V1FloppyTarget', + 'io': 'str', 'lun': 'V1LunTarget', 'name': 'str', 'serial': 'str', @@ -50,13 +51,14 @@ class V1Disk(object): 'dedicated_io_thread': 'dedicatedIOThread', 'disk': 'disk', 'floppy': 'floppy', + 'io': 'io', 'lun': 'lun', 'name': 'name', 'serial': 'serial', 'tag': 'tag' } - def __init__(self, boot_order=None, cache=None, cdrom=None, dedicated_io_thread=None, disk=None, floppy=None, lun=None, name=None, serial=None, tag=None): + def __init__(self, boot_order=None, cache=None, cdrom=None, dedicated_io_thread=None, disk=None, floppy=None, io=None, lun=None, name=None, serial=None, tag=None): """ V1Disk - a model defined in Swagger """ @@ -67,6 +69,7 @@ def __init__(self, boot_order=None, cache=None, cdrom=None, dedicated_io_thread= self._dedicated_io_thread = None self._disk = None self._floppy = None + self._io = None self._lun = None self._name = None self._serial = None @@ -84,6 +87,8 @@ def __init__(self, boot_order=None, cache=None, cdrom=None, dedicated_io_thread= self.disk = disk if floppy is not None: self.floppy = floppy + if io is not None: + self.io = io if lun is not None: self.lun = lun self.name = name @@ -230,6 +235,29 @@ def floppy(self, floppy): self._floppy = floppy + @property + def io(self): + """ + Gets the io of this V1Disk. + IO specifies which QEMU disk IO mode should be used. Supported values are: native, default, threads. + + :return: The io of this V1Disk. + :rtype: str + """ + return self._io + + @io.setter + def io(self, io): + """ + Sets the io of this V1Disk. + IO specifies which QEMU disk IO mode should be used. Supported values are: native, default, threads. + + :param io: The io of this V1Disk. + :type: str + """ + + self._io = io + @property def lun(self): """ diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index 394a3faf..8b2d5eca 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -37,6 +37,7 @@ class V1KubeVirtConfiguration(object): 'emulated_machines': 'list[str]', 'image_pull_policy': 'str', 'machine_type': 'str', + 'mem_balloon_stats_period': 'int', 'migrations': 'V1MigrationConfiguration', 'network': 'V1NetworkConfiguration', 'ovmf_path': 'str', @@ -52,6 +53,7 @@ class V1KubeVirtConfiguration(object): 'emulated_machines': 'emulatedMachines', 'image_pull_policy': 'imagePullPolicy', 'machine_type': 'machineType', + 'mem_balloon_stats_period': 'memBalloonStatsPeriod', 'migrations': 'migrations', 'network': 'network', 'ovmf_path': 'ovmfPath', @@ -60,7 +62,7 @@ class V1KubeVirtConfiguration(object): 'supported_guest_agent_versions': 'supportedGuestAgentVersions' } - def __init__(self, cpu_model=None, cpu_request=None, developer_configuration=None, emulated_machines=None, image_pull_policy=None, machine_type=None, migrations=None, network=None, ovmf_path=None, selinux_launcher_type=None, smbios=None, supported_guest_agent_versions=None): + def __init__(self, cpu_model=None, cpu_request=None, developer_configuration=None, emulated_machines=None, image_pull_policy=None, machine_type=None, mem_balloon_stats_period=None, migrations=None, network=None, ovmf_path=None, selinux_launcher_type=None, smbios=None, supported_guest_agent_versions=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ @@ -71,6 +73,7 @@ def __init__(self, cpu_model=None, cpu_request=None, developer_configuration=Non self._emulated_machines = None self._image_pull_policy = None self._machine_type = None + self._mem_balloon_stats_period = None self._migrations = None self._network = None self._ovmf_path = None @@ -90,6 +93,8 @@ def __init__(self, cpu_model=None, cpu_request=None, developer_configuration=Non self.image_pull_policy = image_pull_policy if machine_type is not None: self.machine_type = machine_type + if mem_balloon_stats_period is not None: + self.mem_balloon_stats_period = mem_balloon_stats_period if migrations is not None: self.migrations = migrations if network is not None: @@ -229,6 +234,27 @@ def machine_type(self, machine_type): self._machine_type = machine_type + @property + def mem_balloon_stats_period(self): + """ + Gets the mem_balloon_stats_period of this V1KubeVirtConfiguration. + + :return: The mem_balloon_stats_period of this V1KubeVirtConfiguration. + :rtype: int + """ + return self._mem_balloon_stats_period + + @mem_balloon_stats_period.setter + def mem_balloon_stats_period(self, mem_balloon_stats_period): + """ + Sets the mem_balloon_stats_period of this V1KubeVirtConfiguration. + + :param mem_balloon_stats_period: The mem_balloon_stats_period of this V1KubeVirtConfiguration. + :type: int + """ + + self._mem_balloon_stats_period = mem_balloon_stats_period + @property def migrations(self): """ diff --git a/setup.py b/setup.py index a475e02d..0f345eb4 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.31.0-76-g76933e9e" +VERSION = "v0.32.0-rc.1-125-gf16a88a3" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 7f76b42c..42ad6401 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.31.0-76-g76933e9e" +"packageVersion": "v0.32.0-rc.1-125-gf16a88a3" } From 1e0ec0a1124ff934ea667be9ea011cde4f466b10 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sat, 29 Aug 2020 22:37:30 +0000 Subject: [PATCH 135/521] Client Python update by Travis Build 14491 --- README.md | 2 +- docs/V1KubeVirtSpec.md | 2 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_kube_virt_spec.py | 58 +++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 65 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index a225c13f..349ec8d0 100644 --- a/README.md +++ b/README.md @@ -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: v0.32.0-rc.1-125-gf16a88a3 +- Package version: v0.32.0-rc.1-219-g08be23f - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1KubeVirtSpec.md b/docs/V1KubeVirtSpec.md index 12533102..bbe72a9c 100644 --- a/docs/V1KubeVirtSpec.md +++ b/docs/V1KubeVirtSpec.md @@ -10,6 +10,8 @@ Name | Type | Description | Notes **image_tag** | **str** | The image tag to use for the continer images installed. Defaults to the same tag as the operator's container image. | [optional] **monitor_account** | **str** | The name of the Prometheus service account that needs read-access to KubeVirt endpoints Defaults to prometheus-k8s | [optional] **monitor_namespace** | **str** | The namespace Prometheus is deployed in Defaults to openshift-monitor | [optional] +**product_name** | **str** | Designate the apps.kubevirt.io/part-of label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductName is not specified, the part-of label will be omitted. | [optional] +**product_version** | **str** | Designate the apps.kubevirt.io/version label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductVersion is not specified, KubeVirt's version will be used. | [optional] **uninstall_strategy** | **str** | Specifies if kubevirt can be deleted if workloads are still present. This is mainly a precaution to avoid accidental data loss | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index a26085ad..aff8328e 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.32.0-rc.1-125-gf16a88a3" + release_note="Auto-generated client v0.32.0-rc.1-219-g08be23f" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 6147a0bc..ca5686b3 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.32.0-rc.1-125-gf16a88a3/python' + self.user_agent = 'Swagger-Codegen/v0.32.0-rc.1-219-g08be23f/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 9f24e1a8..955b821d 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.32.0-rc.1-125-gf16a88a3".\ + "SDK Package Version: v0.32.0-rc.1-219-g08be23f".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_kube_virt_spec.py b/kubevirt/models/v1_kube_virt_spec.py index 85c811fa..b88a6745 100644 --- a/kubevirt/models/v1_kube_virt_spec.py +++ b/kubevirt/models/v1_kube_virt_spec.py @@ -38,6 +38,8 @@ class V1KubeVirtSpec(object): 'image_tag': 'str', 'monitor_account': 'str', 'monitor_namespace': 'str', + 'product_name': 'str', + 'product_version': 'str', 'uninstall_strategy': 'str' } @@ -49,10 +51,12 @@ class V1KubeVirtSpec(object): 'image_tag': 'imageTag', 'monitor_account': 'monitorAccount', 'monitor_namespace': 'monitorNamespace', + 'product_name': 'productName', + 'product_version': 'productVersion', 'uninstall_strategy': 'uninstallStrategy' } - def __init__(self, certificate_rotate_strategy=None, configuration=None, image_pull_policy=None, image_registry=None, image_tag=None, monitor_account=None, monitor_namespace=None, uninstall_strategy=None): + def __init__(self, certificate_rotate_strategy=None, configuration=None, image_pull_policy=None, image_registry=None, image_tag=None, monitor_account=None, monitor_namespace=None, product_name=None, product_version=None, uninstall_strategy=None): """ V1KubeVirtSpec - a model defined in Swagger """ @@ -64,6 +68,8 @@ def __init__(self, certificate_rotate_strategy=None, configuration=None, image_p self._image_tag = None self._monitor_account = None self._monitor_namespace = None + self._product_name = None + self._product_version = None self._uninstall_strategy = None if certificate_rotate_strategy is not None: @@ -80,6 +86,10 @@ def __init__(self, certificate_rotate_strategy=None, configuration=None, image_p self.monitor_account = monitor_account if monitor_namespace is not None: self.monitor_namespace = monitor_namespace + if product_name is not None: + self.product_name = product_name + if product_version is not None: + self.product_version = product_version if uninstall_strategy is not None: self.uninstall_strategy = uninstall_strategy @@ -242,6 +252,52 @@ def monitor_namespace(self, monitor_namespace): self._monitor_namespace = monitor_namespace + @property + def product_name(self): + """ + Gets the product_name of this V1KubeVirtSpec. + Designate the apps.kubevirt.io/part-of label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductName is not specified, the part-of label will be omitted. + + :return: The product_name of this V1KubeVirtSpec. + :rtype: str + """ + return self._product_name + + @product_name.setter + def product_name(self, product_name): + """ + Sets the product_name of this V1KubeVirtSpec. + Designate the apps.kubevirt.io/part-of label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductName is not specified, the part-of label will be omitted. + + :param product_name: The product_name of this V1KubeVirtSpec. + :type: str + """ + + self._product_name = product_name + + @property + def product_version(self): + """ + Gets the product_version of this V1KubeVirtSpec. + Designate the apps.kubevirt.io/version label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductVersion is not specified, KubeVirt's version will be used. + + :return: The product_version of this V1KubeVirtSpec. + :rtype: str + """ + return self._product_version + + @product_version.setter + def product_version(self, product_version): + """ + Sets the product_version of this V1KubeVirtSpec. + Designate the apps.kubevirt.io/version label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductVersion is not specified, KubeVirt's version will be used. + + :param product_version: The product_version of this V1KubeVirtSpec. + :type: str + """ + + self._product_version = product_version + @property def uninstall_strategy(self): """ diff --git a/setup.py b/setup.py index 0f345eb4..70a0934b 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.32.0-rc.1-125-gf16a88a3" +VERSION = "v0.32.0-rc.1-219-g08be23f" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 42ad6401..db824985 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.32.0-rc.1-125-gf16a88a3" +"packageVersion": "v0.32.0-rc.1-219-g08be23f" } From b30e682b5a03357efe7c9e20794d650f32e7de62 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 7 Sep 2020 04:58:49 +0000 Subject: [PATCH 136/521] Client Python update by Travis Build 14707 --- README.md | 3 +- docs/V1CustomizeComponents.md | 10 ++ docs/V1KubeVirtSpec.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_customize_components.py | 123 +++++++++++++++++++++ kubevirt/models/v1_kube_virt_spec.py | 28 ++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_customize_components.py | 44 ++++++++ 14 files changed, 217 insertions(+), 7 deletions(-) create mode 100644 docs/V1CustomizeComponents.md create mode 100644 kubevirt/models/v1_customize_components.py create mode 100644 test/test_v1_customize_components.py diff --git a/README.md b/README.md index 349ec8d0..ce3355fc 100644 --- a/README.md +++ b/README.md @@ -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: v0.32.0-rc.1-219-g08be23f +- Package version: v0.33.0-rc.0-36-g78f37c8 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -197,6 +197,7 @@ Class | Method | HTTP request | Description - [V1CloudInitNoCloudSource](docs/V1CloudInitNoCloudSource.md) - [V1ConfigMapVolumeSource](docs/V1ConfigMapVolumeSource.md) - [V1ContainerDiskSource](docs/V1ContainerDiskSource.md) + - [V1CustomizeComponents](docs/V1CustomizeComponents.md) - [V1DHCPOptions](docs/V1DHCPOptions.md) - [V1DHCPPrivateOptions](docs/V1DHCPPrivateOptions.md) - [V1DataVolumeSource](docs/V1DataVolumeSource.md) diff --git a/docs/V1CustomizeComponents.md b/docs/V1CustomizeComponents.md new file mode 100644 index 00000000..b20b4010 --- /dev/null +++ b/docs/V1CustomizeComponents.md @@ -0,0 +1,10 @@ +# V1CustomizeComponents + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**patches** | [**list[V1Patch]**](V1Patch.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1KubeVirtSpec.md b/docs/V1KubeVirtSpec.md index bbe72a9c..5855e11b 100644 --- a/docs/V1KubeVirtSpec.md +++ b/docs/V1KubeVirtSpec.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **certificate_rotate_strategy** | [**V1KubeVirtCertificateRotateStrategy**](V1KubeVirtCertificateRotateStrategy.md) | | [optional] **configuration** | [**V1KubeVirtConfiguration**](V1KubeVirtConfiguration.md) | holds kubevirt configurations. same as the virt-configMap | [optional] +**customize_components** | [**V1CustomizeComponents**](V1CustomizeComponents.md) | | [optional] **image_pull_policy** | **str** | The ImagePullPolicy to use. | [optional] **image_registry** | **str** | The image registry to pull the container images from Defaults to the same registry the operator's container image is pulled from. | [optional] **image_tag** | **str** | The image tag to use for the continer images installed. Defaults to the same tag as the operator's container image. | [optional] diff --git a/git_push.sh b/git_push.sh index aff8328e..ce9e16e6 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.32.0-rc.1-219-g08be23f" + release_note="Auto-generated client v0.33.0-rc.0-36-g78f37c8" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index fd316b38..adcd8a14 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -81,6 +81,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_container_disk_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_container_disk_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ContainerDiskSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_customize_components.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_customize_components.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CustomizeComponents.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_dhcp_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_dhcp_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DHCPOptions.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index c83282f6..036014d8 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -34,6 +34,7 @@ from .models.v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource from .models.v1_config_map_volume_source import V1ConfigMapVolumeSource from .models.v1_container_disk_source import V1ContainerDiskSource +from .models.v1_customize_components import V1CustomizeComponents from .models.v1_dhcp_options import V1DHCPOptions from .models.v1_dhcp_private_options import V1DHCPPrivateOptions from .models.v1_data_volume_source import V1DataVolumeSource diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index ca5686b3..317d573c 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.32.0-rc.1-219-g08be23f/python' + self.user_agent = 'Swagger-Codegen/v0.33.0-rc.0-36-g78f37c8/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 955b821d..715568d8 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.32.0-rc.1-219-g08be23f".\ + "SDK Package Version: v0.33.0-rc.0-36-g78f37c8".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 9c779bc9..489e10ff 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -34,6 +34,7 @@ from .v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource from .v1_config_map_volume_source import V1ConfigMapVolumeSource from .v1_container_disk_source import V1ContainerDiskSource +from .v1_customize_components import V1CustomizeComponents from .v1_dhcp_options import V1DHCPOptions from .v1_dhcp_private_options import V1DHCPPrivateOptions from .v1_data_volume_source import V1DataVolumeSource diff --git a/kubevirt/models/v1_customize_components.py b/kubevirt/models/v1_customize_components.py new file mode 100644 index 00000000..6165e321 --- /dev/null +++ b/kubevirt/models/v1_customize_components.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1CustomizeComponents(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'patches': 'list[V1Patch]' + } + + attribute_map = { + 'patches': 'patches' + } + + def __init__(self, patches=None): + """ + V1CustomizeComponents - a model defined in Swagger + """ + + self._patches = None + + if patches is not None: + self.patches = patches + + @property + def patches(self): + """ + Gets the patches of this V1CustomizeComponents. + + :return: The patches of this V1CustomizeComponents. + :rtype: list[V1Patch] + """ + return self._patches + + @patches.setter + def patches(self, patches): + """ + Sets the patches of this V1CustomizeComponents. + + :param patches: The patches of this V1CustomizeComponents. + :type: list[V1Patch] + """ + + self._patches = patches + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1CustomizeComponents): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kube_virt_spec.py b/kubevirt/models/v1_kube_virt_spec.py index b88a6745..c3976e51 100644 --- a/kubevirt/models/v1_kube_virt_spec.py +++ b/kubevirt/models/v1_kube_virt_spec.py @@ -33,6 +33,7 @@ class V1KubeVirtSpec(object): swagger_types = { 'certificate_rotate_strategy': 'V1KubeVirtCertificateRotateStrategy', 'configuration': 'V1KubeVirtConfiguration', + 'customize_components': 'V1CustomizeComponents', 'image_pull_policy': 'str', 'image_registry': 'str', 'image_tag': 'str', @@ -46,6 +47,7 @@ class V1KubeVirtSpec(object): attribute_map = { 'certificate_rotate_strategy': 'certificateRotateStrategy', 'configuration': 'configuration', + 'customize_components': 'customizeComponents', 'image_pull_policy': 'imagePullPolicy', 'image_registry': 'imageRegistry', 'image_tag': 'imageTag', @@ -56,13 +58,14 @@ class V1KubeVirtSpec(object): 'uninstall_strategy': 'uninstallStrategy' } - def __init__(self, certificate_rotate_strategy=None, configuration=None, image_pull_policy=None, image_registry=None, image_tag=None, monitor_account=None, monitor_namespace=None, product_name=None, product_version=None, uninstall_strategy=None): + def __init__(self, certificate_rotate_strategy=None, configuration=None, customize_components=None, image_pull_policy=None, image_registry=None, image_tag=None, monitor_account=None, monitor_namespace=None, product_name=None, product_version=None, uninstall_strategy=None): """ V1KubeVirtSpec - a model defined in Swagger """ self._certificate_rotate_strategy = None self._configuration = None + self._customize_components = None self._image_pull_policy = None self._image_registry = None self._image_tag = None @@ -76,6 +79,8 @@ def __init__(self, certificate_rotate_strategy=None, configuration=None, image_p self.certificate_rotate_strategy = certificate_rotate_strategy if configuration is not None: self.configuration = configuration + if customize_components is not None: + self.customize_components = customize_components if image_pull_policy is not None: self.image_pull_policy = image_pull_policy if image_registry is not None: @@ -137,6 +142,27 @@ def configuration(self, configuration): self._configuration = configuration + @property + def customize_components(self): + """ + Gets the customize_components of this V1KubeVirtSpec. + + :return: The customize_components of this V1KubeVirtSpec. + :rtype: V1CustomizeComponents + """ + return self._customize_components + + @customize_components.setter + def customize_components(self, customize_components): + """ + Sets the customize_components of this V1KubeVirtSpec. + + :param customize_components: The customize_components of this V1KubeVirtSpec. + :type: V1CustomizeComponents + """ + + self._customize_components = customize_components + @property def image_pull_policy(self): """ diff --git a/setup.py b/setup.py index 70a0934b..4510a5c0 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.32.0-rc.1-219-g08be23f" +VERSION = "v0.33.0-rc.0-36-g78f37c8" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index db824985..bd9e66cb 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.32.0-rc.1-219-g08be23f" +"packageVersion": "v0.33.0-rc.0-36-g78f37c8" } diff --git a/test/test_v1_customize_components.py b/test/test_v1_customize_components.py new file mode 100644 index 00000000..4e8c49e6 --- /dev/null +++ b/test/test_v1_customize_components.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_customize_components import V1CustomizeComponents + + +class TestV1CustomizeComponents(unittest.TestCase): + """ V1CustomizeComponents unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1CustomizeComponents(self): + """ + Test V1CustomizeComponents + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_customize_components.V1CustomizeComponents() + pass + + +if __name__ == '__main__': + unittest.main() From 86e8cb07ab958cbe462208e1a3d1462ad9df605b Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 8 Sep 2020 22:18:34 +0000 Subject: [PATCH 137/521] Client Python update by Travis Build 14774 --- README.md | 4 +- docs/V1alpha1DataVolumeCondition.md | 14 ++ docs/V1alpha1DataVolumeSource.md | 1 + docs/V1alpha1DataVolumeSourceHTTP.md | 6 +- docs/V1alpha1DataVolumeSourceImageIO.md | 13 + docs/V1alpha1DataVolumeSourcePVC.md | 4 +- docs/V1alpha1DataVolumeSourceRegistry.md | 2 +- docs/V1alpha1DataVolumeSourceS3.md | 2 +- docs/V1alpha1DataVolumeSpec.md | 2 +- docs/V1alpha1DataVolumeStatus.md | 2 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 8 + kubevirt/__init__.py | 2 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 + .../models/v1alpha1_data_volume_condition.py | 229 ++++++++++++++++++ .../models/v1alpha1_data_volume_source.py | 28 ++- .../v1alpha1_data_volume_source_http.py | 17 +- .../v1alpha1_data_volume_source_image_io.py | 211 ++++++++++++++++ .../models/v1alpha1_data_volume_source_pvc.py | 14 +- .../v1alpha1_data_volume_source_registry.py | 9 +- .../models/v1alpha1_data_volume_source_s3.py | 5 +- kubevirt/models/v1alpha1_data_volume_spec.py | 4 +- .../models/v1alpha1_data_volume_status.py | 60 ++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1alpha1_data_volume_condition.py | 44 ++++ ...st_v1alpha1_data_volume_source_image_io.py | 44 ++++ 29 files changed, 699 insertions(+), 38 deletions(-) create mode 100644 docs/V1alpha1DataVolumeCondition.md create mode 100644 docs/V1alpha1DataVolumeSourceImageIO.md create mode 100644 kubevirt/models/v1alpha1_data_volume_condition.py create mode 100644 kubevirt/models/v1alpha1_data_volume_source_image_io.py create mode 100644 test/test_v1alpha1_data_volume_condition.py create mode 100644 test/test_v1alpha1_data_volume_source_image_io.py diff --git a/README.md b/README.md index ce3355fc..f8156008 100644 --- a/README.md +++ b/README.md @@ -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: v0.33.0-rc.0-36-g78f37c8 +- Package version: v0.33.0-rc.0-49-gbf5b5e5 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -336,8 +336,10 @@ Class | Method | HTTP request | Description - [V1WeightedPodAffinityTerm](docs/V1WeightedPodAffinityTerm.md) - [V1alpha1DataVolume](docs/V1alpha1DataVolume.md) - [V1alpha1DataVolumeBlankImage](docs/V1alpha1DataVolumeBlankImage.md) + - [V1alpha1DataVolumeCondition](docs/V1alpha1DataVolumeCondition.md) - [V1alpha1DataVolumeSource](docs/V1alpha1DataVolumeSource.md) - [V1alpha1DataVolumeSourceHTTP](docs/V1alpha1DataVolumeSourceHTTP.md) + - [V1alpha1DataVolumeSourceImageIO](docs/V1alpha1DataVolumeSourceImageIO.md) - [V1alpha1DataVolumeSourcePVC](docs/V1alpha1DataVolumeSourcePVC.md) - [V1alpha1DataVolumeSourceRegistry](docs/V1alpha1DataVolumeSourceRegistry.md) - [V1alpha1DataVolumeSourceS3](docs/V1alpha1DataVolumeSourceS3.md) diff --git a/docs/V1alpha1DataVolumeCondition.md b/docs/V1alpha1DataVolumeCondition.md new file mode 100644 index 00000000..ee9d8f16 --- /dev/null +++ b/docs/V1alpha1DataVolumeCondition.md @@ -0,0 +1,14 @@ +# V1alpha1DataVolumeCondition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last_heartbeat_time** | [**V1Time**](V1Time.md) | | [optional] +**message** | **str** | | [optional] +**reason** | **str** | | [optional] +**status** | **str** | | +**type** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1DataVolumeSource.md b/docs/V1alpha1DataVolumeSource.md index e692ef50..edceea2b 100644 --- a/docs/V1alpha1DataVolumeSource.md +++ b/docs/V1alpha1DataVolumeSource.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **blank** | [**V1alpha1DataVolumeBlankImage**](V1alpha1DataVolumeBlankImage.md) | | [optional] **http** | [**V1alpha1DataVolumeSourceHTTP**](V1alpha1DataVolumeSourceHTTP.md) | | [optional] +**imageio** | [**V1alpha1DataVolumeSourceImageIO**](V1alpha1DataVolumeSourceImageIO.md) | | [optional] **pvc** | [**V1alpha1DataVolumeSourcePVC**](V1alpha1DataVolumeSourcePVC.md) | | [optional] **registry** | [**V1alpha1DataVolumeSourceRegistry**](V1alpha1DataVolumeSourceRegistry.md) | | [optional] **s3** | [**V1alpha1DataVolumeSourceS3**](V1alpha1DataVolumeSourceS3.md) | | [optional] diff --git a/docs/V1alpha1DataVolumeSourceHTTP.md b/docs/V1alpha1DataVolumeSourceHTTP.md index 053e3f9b..c4ead7a8 100644 --- a/docs/V1alpha1DataVolumeSourceHTTP.md +++ b/docs/V1alpha1DataVolumeSourceHTTP.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cert_config_map** | **str** | CertConfigMap provides a reference to the Registry certs | [optional] -**secret_ref** | **str** | SecretRef provides the secret reference needed to access the HTTP source | [optional] -**url** | **str** | URL is the URL of the http source | [optional] +**cert_config_map** | **str** | CertConfigMap is a configmap reference, containing a Certificate Authority(CA) public key, and a base64 encoded pem certificate | [optional] +**secret_ref** | **str** | SecretRef A Secret reference, the secret should contain accessKeyId (user name) base64 encoded, and secretKey (password) also base64 encoded | [optional] +**url** | **str** | URL is the URL of the http(s) endpoint | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1DataVolumeSourceImageIO.md b/docs/V1alpha1DataVolumeSourceImageIO.md new file mode 100644 index 00000000..56ee5e75 --- /dev/null +++ b/docs/V1alpha1DataVolumeSourceImageIO.md @@ -0,0 +1,13 @@ +# V1alpha1DataVolumeSourceImageIO + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cert_config_map** | **str** | CertConfigMap provides a reference to the CA cert | [optional] +**disk_id** | **str** | DiskID provides id of a disk to be imported | +**secret_ref** | **str** | SecretRef provides the secret reference needed to access the ovirt-engine | [optional] +**url** | **str** | URL is the URL of the ovirt-engine | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1DataVolumeSourcePVC.md b/docs/V1alpha1DataVolumeSourcePVC.md index 5fd42e2f..a076758d 100644 --- a/docs/V1alpha1DataVolumeSourcePVC.md +++ b/docs/V1alpha1DataVolumeSourcePVC.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | | [optional] -**namespace** | **str** | | [optional] +**name** | **str** | The name of the source PVC | +**namespace** | **str** | The namespace of the source PVC | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1DataVolumeSourceRegistry.md b/docs/V1alpha1DataVolumeSourceRegistry.md index 7871a81c..1ccfe38a 100644 --- a/docs/V1alpha1DataVolumeSourceRegistry.md +++ b/docs/V1alpha1DataVolumeSourceRegistry.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cert_config_map** | **str** | CertConfigMap provides a reference to the Registry certs | [optional] **secret_ref** | **str** | SecretRef provides the secret reference needed to access the Registry source | [optional] -**url** | **str** | URL is the url of the Registry source | [optional] +**url** | **str** | URL is the url of the Docker registry source | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1DataVolumeSourceS3.md b/docs/V1alpha1DataVolumeSourceS3.md index 60987efc..120013f6 100644 --- a/docs/V1alpha1DataVolumeSourceS3.md +++ b/docs/V1alpha1DataVolumeSourceS3.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **secret_ref** | **str** | SecretRef provides the secret reference needed to access the S3 source | [optional] -**url** | **str** | URL is the url of the S3 source | [optional] +**url** | **str** | URL is the url of the S3 source | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1DataVolumeSpec.md b/docs/V1alpha1DataVolumeSpec.md index 16a2537d..048f32c6 100644 --- a/docs/V1alpha1DataVolumeSpec.md +++ b/docs/V1alpha1DataVolumeSpec.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **content_type** | **str** | DataVolumeContentType options: \"kubevirt\", \"archive\" | [optional] -**pvc** | [**V1PersistentVolumeClaimSpec**](V1PersistentVolumeClaimSpec.md) | PVC is a pointer to the PVC Spec we want to use | +**pvc** | [**V1PersistentVolumeClaimSpec**](V1PersistentVolumeClaimSpec.md) | PVC is the PVC specification | **source** | [**V1alpha1DataVolumeSource**](V1alpha1DataVolumeSource.md) | Source is the src of the data for the requested DataVolume | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1DataVolumeStatus.md b/docs/V1alpha1DataVolumeStatus.md index be9f5a4a..2a43fe8c 100644 --- a/docs/V1alpha1DataVolumeStatus.md +++ b/docs/V1alpha1DataVolumeStatus.md @@ -3,8 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**conditions** | [**list[V1alpha1DataVolumeCondition]**](V1alpha1DataVolumeCondition.md) | | [optional] **phase** | **str** | Phase is the current phase of the data volume | [optional] **progress** | **str** | | [optional] +**restart_count** | **int** | RestartCount is the number of times the pod populating the DataVolume has restarted | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index ce9e16e6..f65d402c 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.33.0-rc.0-36-g78f37c8" + release_note="Auto-generated client v0.33.0-rc.0-49-gbf5b5e5" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index adcd8a14..5b25bf62 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -18,6 +18,8 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] INFO io.swagger.codegen.ignore.CodegenIgnoreProcessor - No .swagger-codegen-ignore file found. [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default appVersion set to 1.0.0 [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default version set to 1.0.0 @@ -498,12 +500,18 @@ 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/v1alpha1_data_volume_blank_image.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_blank_image.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeBlankImage.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeCondition.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSource.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_source_http.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_source_http.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSourceHTTP.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_source_image_io.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_source_image_io.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSourceImageIO.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_source_pvc.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_source_pvc.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSourcePVC.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 036014d8..b55218c2 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -173,8 +173,10 @@ from .models.v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm from .models.v1alpha1_data_volume import V1alpha1DataVolume from .models.v1alpha1_data_volume_blank_image import V1alpha1DataVolumeBlankImage +from .models.v1alpha1_data_volume_condition import V1alpha1DataVolumeCondition from .models.v1alpha1_data_volume_source import V1alpha1DataVolumeSource from .models.v1alpha1_data_volume_source_http import V1alpha1DataVolumeSourceHTTP +from .models.v1alpha1_data_volume_source_image_io import V1alpha1DataVolumeSourceImageIO from .models.v1alpha1_data_volume_source_pvc import V1alpha1DataVolumeSourcePVC from .models.v1alpha1_data_volume_source_registry import V1alpha1DataVolumeSourceRegistry from .models.v1alpha1_data_volume_source_s3 import V1alpha1DataVolumeSourceS3 diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 317d573c..d377a870 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.33.0-rc.0-36-g78f37c8/python' + self.user_agent = 'Swagger-Codegen/v0.33.0-rc.0-49-gbf5b5e5/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 715568d8..2ce01a8b 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.33.0-rc.0-36-g78f37c8".\ + "SDK Package Version: v0.33.0-rc.0-49-gbf5b5e5".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 489e10ff..74778a1a 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -173,8 +173,10 @@ from .v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm from .v1alpha1_data_volume import V1alpha1DataVolume from .v1alpha1_data_volume_blank_image import V1alpha1DataVolumeBlankImage +from .v1alpha1_data_volume_condition import V1alpha1DataVolumeCondition from .v1alpha1_data_volume_source import V1alpha1DataVolumeSource from .v1alpha1_data_volume_source_http import V1alpha1DataVolumeSourceHTTP +from .v1alpha1_data_volume_source_image_io import V1alpha1DataVolumeSourceImageIO from .v1alpha1_data_volume_source_pvc import V1alpha1DataVolumeSourcePVC from .v1alpha1_data_volume_source_registry import V1alpha1DataVolumeSourceRegistry from .v1alpha1_data_volume_source_s3 import V1alpha1DataVolumeSourceS3 diff --git a/kubevirt/models/v1alpha1_data_volume_condition.py b/kubevirt/models/v1alpha1_data_volume_condition.py new file mode 100644 index 00000000..f0cf8a47 --- /dev/null +++ b/kubevirt/models/v1alpha1_data_volume_condition.py @@ -0,0 +1,229 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1DataVolumeCondition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'last_heartbeat_time': 'V1Time', + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + attribute_map = { + 'last_heartbeat_time': 'lastHeartbeatTime', + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + def __init__(self, last_heartbeat_time=None, message=None, reason=None, status=None, type=None): + """ + V1alpha1DataVolumeCondition - a model defined in Swagger + """ + + self._last_heartbeat_time = None + self._message = None + self._reason = None + self._status = None + self._type = None + + if last_heartbeat_time is not None: + self.last_heartbeat_time = last_heartbeat_time + if message is not None: + self.message = message + if reason is not None: + self.reason = reason + self.status = status + self.type = type + + @property + def last_heartbeat_time(self): + """ + Gets the last_heartbeat_time of this V1alpha1DataVolumeCondition. + + :return: The last_heartbeat_time of this V1alpha1DataVolumeCondition. + :rtype: V1Time + """ + return self._last_heartbeat_time + + @last_heartbeat_time.setter + def last_heartbeat_time(self, last_heartbeat_time): + """ + Sets the last_heartbeat_time of this V1alpha1DataVolumeCondition. + + :param last_heartbeat_time: The last_heartbeat_time of this V1alpha1DataVolumeCondition. + :type: V1Time + """ + + self._last_heartbeat_time = last_heartbeat_time + + @property + def message(self): + """ + Gets the message of this V1alpha1DataVolumeCondition. + + :return: The message of this V1alpha1DataVolumeCondition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1alpha1DataVolumeCondition. + + :param message: The message of this V1alpha1DataVolumeCondition. + :type: str + """ + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1alpha1DataVolumeCondition. + + :return: The reason of this V1alpha1DataVolumeCondition. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1alpha1DataVolumeCondition. + + :param reason: The reason of this V1alpha1DataVolumeCondition. + :type: str + """ + + self._reason = reason + + @property + def status(self): + """ + Gets the status of this V1alpha1DataVolumeCondition. + + :return: The status of this V1alpha1DataVolumeCondition. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1alpha1DataVolumeCondition. + + :param status: The status of this V1alpha1DataVolumeCondition. + :type: str + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def type(self): + """ + Gets the type of this V1alpha1DataVolumeCondition. + + :return: The type of this V1alpha1DataVolumeCondition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1alpha1DataVolumeCondition. + + :param type: The type of this V1alpha1DataVolumeCondition. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1DataVolumeCondition): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_data_volume_source.py b/kubevirt/models/v1alpha1_data_volume_source.py index 48698096..8d5715f6 100644 --- a/kubevirt/models/v1alpha1_data_volume_source.py +++ b/kubevirt/models/v1alpha1_data_volume_source.py @@ -33,6 +33,7 @@ class V1alpha1DataVolumeSource(object): swagger_types = { 'blank': 'V1alpha1DataVolumeBlankImage', 'http': 'V1alpha1DataVolumeSourceHTTP', + 'imageio': 'V1alpha1DataVolumeSourceImageIO', 'pvc': 'V1alpha1DataVolumeSourcePVC', 'registry': 'V1alpha1DataVolumeSourceRegistry', 's3': 'V1alpha1DataVolumeSourceS3', @@ -42,19 +43,21 @@ class V1alpha1DataVolumeSource(object): attribute_map = { 'blank': 'blank', 'http': 'http', + 'imageio': 'imageio', 'pvc': 'pvc', 'registry': 'registry', 's3': 's3', 'upload': 'upload' } - def __init__(self, blank=None, http=None, pvc=None, registry=None, s3=None, upload=None): + def __init__(self, blank=None, http=None, imageio=None, pvc=None, registry=None, s3=None, upload=None): """ V1alpha1DataVolumeSource - a model defined in Swagger """ self._blank = None self._http = None + self._imageio = None self._pvc = None self._registry = None self._s3 = None @@ -64,6 +67,8 @@ def __init__(self, blank=None, http=None, pvc=None, registry=None, s3=None, uplo self.blank = blank if http is not None: self.http = http + if imageio is not None: + self.imageio = imageio if pvc is not None: self.pvc = pvc if registry is not None: @@ -115,6 +120,27 @@ def http(self, http): self._http = http + @property + def imageio(self): + """ + Gets the imageio of this V1alpha1DataVolumeSource. + + :return: The imageio of this V1alpha1DataVolumeSource. + :rtype: V1alpha1DataVolumeSourceImageIO + """ + return self._imageio + + @imageio.setter + def imageio(self, imageio): + """ + Sets the imageio of this V1alpha1DataVolumeSource. + + :param imageio: The imageio of this V1alpha1DataVolumeSource. + :type: V1alpha1DataVolumeSourceImageIO + """ + + self._imageio = imageio + @property def pvc(self): """ diff --git a/kubevirt/models/v1alpha1_data_volume_source_http.py b/kubevirt/models/v1alpha1_data_volume_source_http.py index ed78f650..f84ce090 100644 --- a/kubevirt/models/v1alpha1_data_volume_source_http.py +++ b/kubevirt/models/v1alpha1_data_volume_source_http.py @@ -55,14 +55,13 @@ def __init__(self, cert_config_map=None, secret_ref=None, url=None): self.cert_config_map = cert_config_map if secret_ref is not None: self.secret_ref = secret_ref - if url is not None: - self.url = url + self.url = url @property def cert_config_map(self): """ Gets the cert_config_map of this V1alpha1DataVolumeSourceHTTP. - CertConfigMap provides a reference to the Registry certs + CertConfigMap is a configmap reference, containing a Certificate Authority(CA) public key, and a base64 encoded pem certificate :return: The cert_config_map of this V1alpha1DataVolumeSourceHTTP. :rtype: str @@ -73,7 +72,7 @@ def cert_config_map(self): def cert_config_map(self, cert_config_map): """ Sets the cert_config_map of this V1alpha1DataVolumeSourceHTTP. - CertConfigMap provides a reference to the Registry certs + CertConfigMap is a configmap reference, containing a Certificate Authority(CA) public key, and a base64 encoded pem certificate :param cert_config_map: The cert_config_map of this V1alpha1DataVolumeSourceHTTP. :type: str @@ -85,7 +84,7 @@ def cert_config_map(self, cert_config_map): def secret_ref(self): """ Gets the secret_ref of this V1alpha1DataVolumeSourceHTTP. - SecretRef provides the secret reference needed to access the HTTP source + SecretRef A Secret reference, the secret should contain accessKeyId (user name) base64 encoded, and secretKey (password) also base64 encoded :return: The secret_ref of this V1alpha1DataVolumeSourceHTTP. :rtype: str @@ -96,7 +95,7 @@ def secret_ref(self): def secret_ref(self, secret_ref): """ Sets the secret_ref of this V1alpha1DataVolumeSourceHTTP. - SecretRef provides the secret reference needed to access the HTTP source + SecretRef A Secret reference, the secret should contain accessKeyId (user name) base64 encoded, and secretKey (password) also base64 encoded :param secret_ref: The secret_ref of this V1alpha1DataVolumeSourceHTTP. :type: str @@ -108,7 +107,7 @@ def secret_ref(self, secret_ref): def url(self): """ Gets the url of this V1alpha1DataVolumeSourceHTTP. - URL is the URL of the http source + URL is the URL of the http(s) endpoint :return: The url of this V1alpha1DataVolumeSourceHTTP. :rtype: str @@ -119,11 +118,13 @@ def url(self): def url(self, url): """ Sets the url of this V1alpha1DataVolumeSourceHTTP. - URL is the URL of the http source + URL is the URL of the http(s) endpoint :param url: The url of this V1alpha1DataVolumeSourceHTTP. :type: str """ + if url is None: + raise ValueError("Invalid value for `url`, must not be `None`") self._url = url diff --git a/kubevirt/models/v1alpha1_data_volume_source_image_io.py b/kubevirt/models/v1alpha1_data_volume_source_image_io.py new file mode 100644 index 00000000..28111b61 --- /dev/null +++ b/kubevirt/models/v1alpha1_data_volume_source_image_io.py @@ -0,0 +1,211 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1DataVolumeSourceImageIO(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'cert_config_map': 'str', + 'disk_id': 'str', + 'secret_ref': 'str', + 'url': 'str' + } + + attribute_map = { + 'cert_config_map': 'certConfigMap', + 'disk_id': 'diskId', + 'secret_ref': 'secretRef', + 'url': 'url' + } + + def __init__(self, cert_config_map=None, disk_id=None, secret_ref=None, url=None): + """ + V1alpha1DataVolumeSourceImageIO - a model defined in Swagger + """ + + self._cert_config_map = None + self._disk_id = None + self._secret_ref = None + self._url = None + + if cert_config_map is not None: + self.cert_config_map = cert_config_map + self.disk_id = disk_id + if secret_ref is not None: + self.secret_ref = secret_ref + self.url = url + + @property + def cert_config_map(self): + """ + Gets the cert_config_map of this V1alpha1DataVolumeSourceImageIO. + CertConfigMap provides a reference to the CA cert + + :return: The cert_config_map of this V1alpha1DataVolumeSourceImageIO. + :rtype: str + """ + return self._cert_config_map + + @cert_config_map.setter + def cert_config_map(self, cert_config_map): + """ + Sets the cert_config_map of this V1alpha1DataVolumeSourceImageIO. + CertConfigMap provides a reference to the CA cert + + :param cert_config_map: The cert_config_map of this V1alpha1DataVolumeSourceImageIO. + :type: str + """ + + self._cert_config_map = cert_config_map + + @property + def disk_id(self): + """ + Gets the disk_id of this V1alpha1DataVolumeSourceImageIO. + DiskID provides id of a disk to be imported + + :return: The disk_id of this V1alpha1DataVolumeSourceImageIO. + :rtype: str + """ + return self._disk_id + + @disk_id.setter + def disk_id(self, disk_id): + """ + Sets the disk_id of this V1alpha1DataVolumeSourceImageIO. + DiskID provides id of a disk to be imported + + :param disk_id: The disk_id of this V1alpha1DataVolumeSourceImageIO. + :type: str + """ + if disk_id is None: + raise ValueError("Invalid value for `disk_id`, must not be `None`") + + self._disk_id = disk_id + + @property + def secret_ref(self): + """ + Gets the secret_ref of this V1alpha1DataVolumeSourceImageIO. + SecretRef provides the secret reference needed to access the ovirt-engine + + :return: The secret_ref of this V1alpha1DataVolumeSourceImageIO. + :rtype: str + """ + return self._secret_ref + + @secret_ref.setter + def secret_ref(self, secret_ref): + """ + Sets the secret_ref of this V1alpha1DataVolumeSourceImageIO. + SecretRef provides the secret reference needed to access the ovirt-engine + + :param secret_ref: The secret_ref of this V1alpha1DataVolumeSourceImageIO. + :type: str + """ + + self._secret_ref = secret_ref + + @property + def url(self): + """ + Gets the url of this V1alpha1DataVolumeSourceImageIO. + URL is the URL of the ovirt-engine + + :return: The url of this V1alpha1DataVolumeSourceImageIO. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """ + Sets the url of this V1alpha1DataVolumeSourceImageIO. + URL is the URL of the ovirt-engine + + :param url: The url of this V1alpha1DataVolumeSourceImageIO. + :type: str + """ + if url is None: + raise ValueError("Invalid value for `url`, must not be `None`") + + self._url = url + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1DataVolumeSourceImageIO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_data_volume_source_pvc.py b/kubevirt/models/v1alpha1_data_volume_source_pvc.py index 161b9c28..418abf4d 100644 --- a/kubevirt/models/v1alpha1_data_volume_source_pvc.py +++ b/kubevirt/models/v1alpha1_data_volume_source_pvc.py @@ -48,15 +48,14 @@ def __init__(self, name=None, namespace=None): self._name = None self._namespace = None - if name is not None: - self.name = name - if namespace is not None: - self.namespace = namespace + self.name = name + self.namespace = namespace @property def name(self): """ Gets the name of this V1alpha1DataVolumeSourcePVC. + The name of the source PVC :return: The name of this V1alpha1DataVolumeSourcePVC. :rtype: str @@ -67,10 +66,13 @@ def name(self): def name(self, name): """ Sets the name of this V1alpha1DataVolumeSourcePVC. + The name of the source PVC :param name: The name of this V1alpha1DataVolumeSourcePVC. :type: str """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") self._name = name @@ -78,6 +80,7 @@ def name(self, name): def namespace(self): """ Gets the namespace of this V1alpha1DataVolumeSourcePVC. + The namespace of the source PVC :return: The namespace of this V1alpha1DataVolumeSourcePVC. :rtype: str @@ -88,10 +91,13 @@ def namespace(self): def namespace(self, namespace): """ Sets the namespace of this V1alpha1DataVolumeSourcePVC. + The namespace of the source PVC :param namespace: The namespace of this V1alpha1DataVolumeSourcePVC. :type: str """ + if namespace is None: + raise ValueError("Invalid value for `namespace`, must not be `None`") self._namespace = namespace diff --git a/kubevirt/models/v1alpha1_data_volume_source_registry.py b/kubevirt/models/v1alpha1_data_volume_source_registry.py index 883eadc8..e9c9c80e 100644 --- a/kubevirt/models/v1alpha1_data_volume_source_registry.py +++ b/kubevirt/models/v1alpha1_data_volume_source_registry.py @@ -55,8 +55,7 @@ def __init__(self, cert_config_map=None, secret_ref=None, url=None): self.cert_config_map = cert_config_map if secret_ref is not None: self.secret_ref = secret_ref - if url is not None: - self.url = url + self.url = url @property def cert_config_map(self): @@ -108,7 +107,7 @@ def secret_ref(self, secret_ref): def url(self): """ Gets the url of this V1alpha1DataVolumeSourceRegistry. - URL is the url of the Registry source + URL is the url of the Docker registry source :return: The url of this V1alpha1DataVolumeSourceRegistry. :rtype: str @@ -119,11 +118,13 @@ def url(self): def url(self, url): """ Sets the url of this V1alpha1DataVolumeSourceRegistry. - URL is the url of the Registry source + URL is the url of the Docker registry source :param url: The url of this V1alpha1DataVolumeSourceRegistry. :type: str """ + if url is None: + raise ValueError("Invalid value for `url`, must not be `None`") self._url = url diff --git a/kubevirt/models/v1alpha1_data_volume_source_s3.py b/kubevirt/models/v1alpha1_data_volume_source_s3.py index 89a88195..16d03949 100644 --- a/kubevirt/models/v1alpha1_data_volume_source_s3.py +++ b/kubevirt/models/v1alpha1_data_volume_source_s3.py @@ -50,8 +50,7 @@ def __init__(self, secret_ref=None, url=None): if secret_ref is not None: self.secret_ref = secret_ref - if url is not None: - self.url = url + self.url = url @property def secret_ref(self): @@ -96,6 +95,8 @@ def url(self, url): :param url: The url of this V1alpha1DataVolumeSourceS3. :type: str """ + if url is None: + raise ValueError("Invalid value for `url`, must not be `None`") self._url = url diff --git a/kubevirt/models/v1alpha1_data_volume_spec.py b/kubevirt/models/v1alpha1_data_volume_spec.py index 0820a53e..c00e5b20 100644 --- a/kubevirt/models/v1alpha1_data_volume_spec.py +++ b/kubevirt/models/v1alpha1_data_volume_spec.py @@ -83,7 +83,7 @@ def content_type(self, content_type): def pvc(self): """ Gets the pvc of this V1alpha1DataVolumeSpec. - PVC is a pointer to the PVC Spec we want to use + PVC is the PVC specification :return: The pvc of this V1alpha1DataVolumeSpec. :rtype: V1PersistentVolumeClaimSpec @@ -94,7 +94,7 @@ def pvc(self): def pvc(self, pvc): """ Sets the pvc of this V1alpha1DataVolumeSpec. - PVC is a pointer to the PVC Spec we want to use + PVC is the PVC specification :param pvc: The pvc of this V1alpha1DataVolumeSpec. :type: V1PersistentVolumeClaimSpec diff --git a/kubevirt/models/v1alpha1_data_volume_status.py b/kubevirt/models/v1alpha1_data_volume_status.py index 145f563d..e2584901 100644 --- a/kubevirt/models/v1alpha1_data_volume_status.py +++ b/kubevirt/models/v1alpha1_data_volume_status.py @@ -31,27 +31,58 @@ class V1alpha1DataVolumeStatus(object): and the value is json key in definition. """ swagger_types = { + 'conditions': 'list[V1alpha1DataVolumeCondition]', 'phase': 'str', - 'progress': 'str' + 'progress': 'str', + 'restart_count': 'int' } attribute_map = { + 'conditions': 'conditions', 'phase': 'phase', - 'progress': 'progress' + 'progress': 'progress', + 'restart_count': 'restartCount' } - def __init__(self, phase=None, progress=None): + def __init__(self, conditions=None, phase=None, progress=None, restart_count=None): """ V1alpha1DataVolumeStatus - a model defined in Swagger """ + self._conditions = None self._phase = None self._progress = None + self._restart_count = None + if conditions is not None: + self.conditions = conditions if phase is not None: self.phase = phase if progress is not None: self.progress = progress + if restart_count is not None: + self.restart_count = restart_count + + @property + def conditions(self): + """ + Gets the conditions of this V1alpha1DataVolumeStatus. + + :return: The conditions of this V1alpha1DataVolumeStatus. + :rtype: list[V1alpha1DataVolumeCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1alpha1DataVolumeStatus. + + :param conditions: The conditions of this V1alpha1DataVolumeStatus. + :type: list[V1alpha1DataVolumeCondition] + """ + + self._conditions = conditions @property def phase(self): @@ -97,6 +128,29 @@ def progress(self, progress): self._progress = progress + @property + def restart_count(self): + """ + Gets the restart_count of this V1alpha1DataVolumeStatus. + RestartCount is the number of times the pod populating the DataVolume has restarted + + :return: The restart_count of this V1alpha1DataVolumeStatus. + :rtype: int + """ + return self._restart_count + + @restart_count.setter + def restart_count(self, restart_count): + """ + Sets the restart_count of this V1alpha1DataVolumeStatus. + RestartCount is the number of times the pod populating the DataVolume has restarted + + :param restart_count: The restart_count of this V1alpha1DataVolumeStatus. + :type: int + """ + + self._restart_count = restart_count + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 4510a5c0..f7d33ffd 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.33.0-rc.0-36-g78f37c8" +VERSION = "v0.33.0-rc.0-49-gbf5b5e5" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index bd9e66cb..152cbb6b 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.33.0-rc.0-36-g78f37c8" +"packageVersion": "v0.33.0-rc.0-49-gbf5b5e5" } diff --git a/test/test_v1alpha1_data_volume_condition.py b/test/test_v1alpha1_data_volume_condition.py new file mode 100644 index 00000000..744b1bc2 --- /dev/null +++ b/test/test_v1alpha1_data_volume_condition.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_data_volume_condition import V1alpha1DataVolumeCondition + + +class TestV1alpha1DataVolumeCondition(unittest.TestCase): + """ V1alpha1DataVolumeCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1DataVolumeCondition(self): + """ + Test V1alpha1DataVolumeCondition + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_data_volume_condition.V1alpha1DataVolumeCondition() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_data_volume_source_image_io.py b/test/test_v1alpha1_data_volume_source_image_io.py new file mode 100644 index 00000000..059c5c65 --- /dev/null +++ b/test/test_v1alpha1_data_volume_source_image_io.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_data_volume_source_image_io import V1alpha1DataVolumeSourceImageIO + + +class TestV1alpha1DataVolumeSourceImageIO(unittest.TestCase): + """ V1alpha1DataVolumeSourceImageIO unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1DataVolumeSourceImageIO(self): + """ + Test V1alpha1DataVolumeSourceImageIO + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_data_volume_source_image_io.V1alpha1DataVolumeSourceImageIO() + pass + + +if __name__ == '__main__': + unittest.main() From 7139fb922e5a75cb331f49fa7a78ee00cbd4e263 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 11 Sep 2020 08:36:43 +0000 Subject: [PATCH 138/521] Client Python update by Travis Build 14879 --- README.md | 2 +- docs/V1Patch.md | 4 ++ git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_patch.py | 108 +++++++++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 115 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index f8156008..ad1ca2e9 100644 --- a/README.md +++ b/README.md @@ -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: v0.33.0-rc.0-49-gbf5b5e5 +- Package version: v0.33.0-rc.0-74-g6e5513c - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Patch.md b/docs/V1Patch.md index ae7a0e23..655d73ad 100644 --- a/docs/V1Patch.md +++ b/docs/V1Patch.md @@ -3,6 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**patch** | **str** | | [optional] +**resource_name** | **str** | | [optional] +**resource_type** | **str** | | [optional] +**type** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index f65d402c..703548fd 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.33.0-rc.0-49-gbf5b5e5" + release_note="Auto-generated client v0.33.0-rc.0-74-g6e5513c" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index d377a870..a9e4c94a 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.33.0-rc.0-49-gbf5b5e5/python' + self.user_agent = 'Swagger-Codegen/v0.33.0-rc.0-74-g6e5513c/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 2ce01a8b..3d707108 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.33.0-rc.0-49-gbf5b5e5".\ + "SDK Package Version: v0.33.0-rc.0-74-g6e5513c".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_patch.py b/kubevirt/models/v1_patch.py index 2cfc26f9..38ab2462 100644 --- a/kubevirt/models/v1_patch.py +++ b/kubevirt/models/v1_patch.py @@ -31,19 +31,121 @@ class V1Patch(object): and the value is json key in definition. """ swagger_types = { - + 'patch': 'str', + 'resource_name': 'str', + 'resource_type': 'str', + 'type': 'str' } attribute_map = { - + 'patch': 'patch', + 'resource_name': 'resourceName', + 'resource_type': 'resourceType', + 'type': 'type' } - def __init__(self): + def __init__(self, patch=None, resource_name=None, resource_type=None, type=None): """ V1Patch - a model defined in Swagger """ + self._patch = None + self._resource_name = None + self._resource_type = None + self._type = None + + if patch is not None: + self.patch = patch + if resource_name is not None: + self.resource_name = resource_name + if resource_type is not None: + self.resource_type = resource_type + if type is not None: + self.type = type + + @property + def patch(self): + """ + Gets the patch of this V1Patch. + + :return: The patch of this V1Patch. + :rtype: str + """ + return self._patch + + @patch.setter + def patch(self, patch): + """ + Sets the patch of this V1Patch. + + :param patch: The patch of this V1Patch. + :type: str + """ + + self._patch = patch + + @property + def resource_name(self): + """ + Gets the resource_name of this V1Patch. + + :return: The resource_name of this V1Patch. + :rtype: str + """ + return self._resource_name + + @resource_name.setter + def resource_name(self, resource_name): + """ + Sets the resource_name of this V1Patch. + + :param resource_name: The resource_name of this V1Patch. + :type: str + """ + + self._resource_name = resource_name + + @property + def resource_type(self): + """ + Gets the resource_type of this V1Patch. + + :return: The resource_type of this V1Patch. + :rtype: str + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """ + Sets the resource_type of this V1Patch. + + :param resource_type: The resource_type of this V1Patch. + :type: str + """ + + self._resource_type = resource_type + + @property + def type(self): + """ + Gets the type of this V1Patch. + + :return: The type of this V1Patch. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1Patch. + + :param type: The type of this V1Patch. + :type: str + """ + self._type = type def to_dict(self): """ diff --git a/setup.py b/setup.py index f7d33ffd..15743a7f 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.33.0-rc.0-49-gbf5b5e5" +VERSION = "v0.33.0-rc.0-74-g6e5513c" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 152cbb6b..09cebc6d 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.33.0-rc.0-49-gbf5b5e5" +"packageVersion": "v0.33.0-rc.0-74-g6e5513c" } From 492ada8bbfa657655fa7ff51b8c0fc573a74e15c Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 11 Sep 2020 19:44:50 +0000 Subject: [PATCH 139/521] Client Python update by Travis Build 14902 --- README.md | 3 +- docs/V1CustomizeComponents.md | 2 +- docs/V1CustomizeComponentsPatch.md | 13 ++ docs/V1Patch.md | 4 - git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_customize_components.py | 6 +- .../models/v1_customize_components_patch.py | 201 ++++++++++++++++++ kubevirt/models/v1_patch.py | 108 +--------- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_customize_components_patch.py | 44 ++++ 16 files changed, 277 insertions(+), 119 deletions(-) create mode 100644 docs/V1CustomizeComponentsPatch.md create mode 100644 kubevirt/models/v1_customize_components_patch.py create mode 100644 test/test_v1_customize_components_patch.py diff --git a/README.md b/README.md index ad1ca2e9..f7972e8f 100644 --- a/README.md +++ b/README.md @@ -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: v0.33.0-rc.0-74-g6e5513c +- Package version: v0.33.0-rc.0-78-geede15d - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -198,6 +198,7 @@ Class | Method | HTTP request | Description - [V1ConfigMapVolumeSource](docs/V1ConfigMapVolumeSource.md) - [V1ContainerDiskSource](docs/V1ContainerDiskSource.md) - [V1CustomizeComponents](docs/V1CustomizeComponents.md) + - [V1CustomizeComponentsPatch](docs/V1CustomizeComponentsPatch.md) - [V1DHCPOptions](docs/V1DHCPOptions.md) - [V1DHCPPrivateOptions](docs/V1DHCPPrivateOptions.md) - [V1DataVolumeSource](docs/V1DataVolumeSource.md) diff --git a/docs/V1CustomizeComponents.md b/docs/V1CustomizeComponents.md index b20b4010..cded7215 100644 --- a/docs/V1CustomizeComponents.md +++ b/docs/V1CustomizeComponents.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**patches** | [**list[V1Patch]**](V1Patch.md) | | [optional] +**patches** | [**list[V1CustomizeComponentsPatch]**](V1CustomizeComponentsPatch.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1CustomizeComponentsPatch.md b/docs/V1CustomizeComponentsPatch.md new file mode 100644 index 00000000..751fc75d --- /dev/null +++ b/docs/V1CustomizeComponentsPatch.md @@ -0,0 +1,13 @@ +# V1CustomizeComponentsPatch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**patch** | **str** | | [optional] +**resource_name** | **str** | | [optional] +**resource_type** | **str** | | [optional] +**type** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Patch.md b/docs/V1Patch.md index 655d73ad..ae7a0e23 100644 --- a/docs/V1Patch.md +++ b/docs/V1Patch.md @@ -3,10 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**patch** | **str** | | [optional] -**resource_name** | **str** | | [optional] -**resource_type** | **str** | | [optional] -**type** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 703548fd..1288cf90 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.33.0-rc.0-74-g6e5513c" + release_note="Auto-generated client v0.33.0-rc.0-78-geede15d" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 5b25bf62..4fd3de24 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -86,6 +86,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_customize_components.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_customize_components.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CustomizeComponents.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_customize_components_patch.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_customize_components_patch.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CustomizeComponentsPatch.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_dhcp_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_dhcp_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DHCPOptions.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index b55218c2..e203d995 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -35,6 +35,7 @@ from .models.v1_config_map_volume_source import V1ConfigMapVolumeSource from .models.v1_container_disk_source import V1ContainerDiskSource from .models.v1_customize_components import V1CustomizeComponents +from .models.v1_customize_components_patch import V1CustomizeComponentsPatch from .models.v1_dhcp_options import V1DHCPOptions from .models.v1_dhcp_private_options import V1DHCPPrivateOptions from .models.v1_data_volume_source import V1DataVolumeSource diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index a9e4c94a..b98cbced 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.33.0-rc.0-74-g6e5513c/python' + self.user_agent = 'Swagger-Codegen/v0.33.0-rc.0-78-geede15d/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 3d707108..91255e1f 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.33.0-rc.0-74-g6e5513c".\ + "SDK Package Version: v0.33.0-rc.0-78-geede15d".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 74778a1a..dc7a062f 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -35,6 +35,7 @@ from .v1_config_map_volume_source import V1ConfigMapVolumeSource from .v1_container_disk_source import V1ContainerDiskSource from .v1_customize_components import V1CustomizeComponents +from .v1_customize_components_patch import V1CustomizeComponentsPatch from .v1_dhcp_options import V1DHCPOptions from .v1_dhcp_private_options import V1DHCPPrivateOptions from .v1_data_volume_source import V1DataVolumeSource diff --git a/kubevirt/models/v1_customize_components.py b/kubevirt/models/v1_customize_components.py index 6165e321..e1b1ef08 100644 --- a/kubevirt/models/v1_customize_components.py +++ b/kubevirt/models/v1_customize_components.py @@ -31,7 +31,7 @@ class V1CustomizeComponents(object): and the value is json key in definition. """ swagger_types = { - 'patches': 'list[V1Patch]' + 'patches': 'list[V1CustomizeComponentsPatch]' } attribute_map = { @@ -54,7 +54,7 @@ def patches(self): Gets the patches of this V1CustomizeComponents. :return: The patches of this V1CustomizeComponents. - :rtype: list[V1Patch] + :rtype: list[V1CustomizeComponentsPatch] """ return self._patches @@ -64,7 +64,7 @@ def patches(self, patches): Sets the patches of this V1CustomizeComponents. :param patches: The patches of this V1CustomizeComponents. - :type: list[V1Patch] + :type: list[V1CustomizeComponentsPatch] """ self._patches = patches diff --git a/kubevirt/models/v1_customize_components_patch.py b/kubevirt/models/v1_customize_components_patch.py new file mode 100644 index 00000000..3220e487 --- /dev/null +++ b/kubevirt/models/v1_customize_components_patch.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1CustomizeComponentsPatch(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'patch': 'str', + 'resource_name': 'str', + 'resource_type': 'str', + 'type': 'str' + } + + attribute_map = { + 'patch': 'patch', + 'resource_name': 'resourceName', + 'resource_type': 'resourceType', + 'type': 'type' + } + + def __init__(self, patch=None, resource_name=None, resource_type=None, type=None): + """ + V1CustomizeComponentsPatch - a model defined in Swagger + """ + + self._patch = None + self._resource_name = None + self._resource_type = None + self._type = None + + if patch is not None: + self.patch = patch + if resource_name is not None: + self.resource_name = resource_name + if resource_type is not None: + self.resource_type = resource_type + if type is not None: + self.type = type + + @property + def patch(self): + """ + Gets the patch of this V1CustomizeComponentsPatch. + + :return: The patch of this V1CustomizeComponentsPatch. + :rtype: str + """ + return self._patch + + @patch.setter + def patch(self, patch): + """ + Sets the patch of this V1CustomizeComponentsPatch. + + :param patch: The patch of this V1CustomizeComponentsPatch. + :type: str + """ + + self._patch = patch + + @property + def resource_name(self): + """ + Gets the resource_name of this V1CustomizeComponentsPatch. + + :return: The resource_name of this V1CustomizeComponentsPatch. + :rtype: str + """ + return self._resource_name + + @resource_name.setter + def resource_name(self, resource_name): + """ + Sets the resource_name of this V1CustomizeComponentsPatch. + + :param resource_name: The resource_name of this V1CustomizeComponentsPatch. + :type: str + """ + + self._resource_name = resource_name + + @property + def resource_type(self): + """ + Gets the resource_type of this V1CustomizeComponentsPatch. + + :return: The resource_type of this V1CustomizeComponentsPatch. + :rtype: str + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """ + Sets the resource_type of this V1CustomizeComponentsPatch. + + :param resource_type: The resource_type of this V1CustomizeComponentsPatch. + :type: str + """ + + self._resource_type = resource_type + + @property + def type(self): + """ + Gets the type of this V1CustomizeComponentsPatch. + + :return: The type of this V1CustomizeComponentsPatch. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1CustomizeComponentsPatch. + + :param type: The type of this V1CustomizeComponentsPatch. + :type: str + """ + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1CustomizeComponentsPatch): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_patch.py b/kubevirt/models/v1_patch.py index 38ab2462..2cfc26f9 100644 --- a/kubevirt/models/v1_patch.py +++ b/kubevirt/models/v1_patch.py @@ -31,121 +31,19 @@ class V1Patch(object): and the value is json key in definition. """ swagger_types = { - 'patch': 'str', - 'resource_name': 'str', - 'resource_type': 'str', - 'type': 'str' + } attribute_map = { - 'patch': 'patch', - 'resource_name': 'resourceName', - 'resource_type': 'resourceType', - 'type': 'type' + } - def __init__(self, patch=None, resource_name=None, resource_type=None, type=None): + def __init__(self): """ V1Patch - a model defined in Swagger """ - self._patch = None - self._resource_name = None - self._resource_type = None - self._type = None - - if patch is not None: - self.patch = patch - if resource_name is not None: - self.resource_name = resource_name - if resource_type is not None: - self.resource_type = resource_type - if type is not None: - self.type = type - - @property - def patch(self): - """ - Gets the patch of this V1Patch. - - :return: The patch of this V1Patch. - :rtype: str - """ - return self._patch - - @patch.setter - def patch(self, patch): - """ - Sets the patch of this V1Patch. - - :param patch: The patch of this V1Patch. - :type: str - """ - - self._patch = patch - - @property - def resource_name(self): - """ - Gets the resource_name of this V1Patch. - - :return: The resource_name of this V1Patch. - :rtype: str - """ - return self._resource_name - - @resource_name.setter - def resource_name(self, resource_name): - """ - Sets the resource_name of this V1Patch. - - :param resource_name: The resource_name of this V1Patch. - :type: str - """ - - self._resource_name = resource_name - - @property - def resource_type(self): - """ - Gets the resource_type of this V1Patch. - - :return: The resource_type of this V1Patch. - :rtype: str - """ - return self._resource_type - - @resource_type.setter - def resource_type(self, resource_type): - """ - Sets the resource_type of this V1Patch. - - :param resource_type: The resource_type of this V1Patch. - :type: str - """ - - self._resource_type = resource_type - - @property - def type(self): - """ - Gets the type of this V1Patch. - - :return: The type of this V1Patch. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this V1Patch. - - :param type: The type of this V1Patch. - :type: str - """ - self._type = type def to_dict(self): """ diff --git a/setup.py b/setup.py index 15743a7f..7167e94e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.33.0-rc.0-74-g6e5513c" +VERSION = "v0.33.0-rc.0-78-geede15d" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 09cebc6d..33d21577 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.33.0-rc.0-74-g6e5513c" +"packageVersion": "v0.33.0-rc.0-78-geede15d" } diff --git a/test/test_v1_customize_components_patch.py b/test/test_v1_customize_components_patch.py new file mode 100644 index 00000000..3eecd6fb --- /dev/null +++ b/test/test_v1_customize_components_patch.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_customize_components_patch import V1CustomizeComponentsPatch + + +class TestV1CustomizeComponentsPatch(unittest.TestCase): + """ V1CustomizeComponentsPatch unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1CustomizeComponentsPatch(self): + """ + Test V1CustomizeComponentsPatch + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_customize_components_patch.V1CustomizeComponentsPatch() + pass + + +if __name__ == '__main__': + unittest.main() From 3b9cd9e2257cfc13113a57da03ec50c49f00f15d Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sat, 12 Sep 2020 06:11:47 +0000 Subject: [PATCH 140/521] Client Python update by Travis Build 14903 --- README.md | 21 +- docs/DefaultApi.md | 580 +++++++ ...pshotCondition.md => V1alpha1Condition.md} | 2 +- ...chineSnapshotError.md => V1alpha1Error.md} | 2 +- docs/V1alpha1VirtualMachineRestore.md | 14 + docs/V1alpha1VirtualMachineRestoreList.md | 13 + docs/V1alpha1VirtualMachineRestoreSpec.md | 11 + docs/V1alpha1VirtualMachineRestoreStatus.md | 14 + ...pha1VirtualMachineSnapshotContentStatus.md | 2 +- docs/V1alpha1VirtualMachineSnapshotStatus.md | 5 +- docs/V1alpha1VolumeBackup.md | 2 +- docs/V1alpha1VolumeRestore.md | 13 + docs/V1alpha1VolumeSnapshotStatus.md | 2 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 27 +- kubevirt/__init__.py | 9 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 1343 ++++++++++++++++- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 9 +- ...hot_condition.py => v1alpha1_condition.py} | 38 +- ...ne_snapshot_error.py => v1alpha1_error.py} | 22 +- .../v1alpha1_virtual_machine_restore.py | 232 +++ .../v1alpha1_virtual_machine_restore_list.py | 207 +++ .../v1alpha1_virtual_machine_restore_spec.py | 153 ++ ...v1alpha1_virtual_machine_restore_status.py | 227 +++ ...virtual_machine_snapshot_content_status.py | 6 +- ...1alpha1_virtual_machine_snapshot_status.py | 40 +- kubevirt/models/v1alpha1_volume_backup.py | 56 +- kubevirt/models/v1alpha1_volume_restore.py | 204 +++ .../models/v1alpha1_volume_snapshot_status.py | 6 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 80 + ...ondition.py => test_v1alpha1_condition.py} | 12 +- test/test_v1alpha1_error.py | 44 + test/test_v1alpha1_virtual_machine_restore.py | 44 + ...t_v1alpha1_virtual_machine_restore_list.py | 44 + ...t_v1alpha1_virtual_machine_restore_spec.py | 44 + ...1alpha1_virtual_machine_restore_status.py} | 12 +- test/test_v1alpha1_volume_restore.py | 44 + 41 files changed, 3430 insertions(+), 164 deletions(-) rename docs/{V1alpha1VirtualMachineSnapshotCondition.md => V1alpha1Condition.md} (90%) rename docs/{V1alpha1VirtualMachineSnapshotError.md => V1alpha1Error.md} (90%) create mode 100644 docs/V1alpha1VirtualMachineRestore.md create mode 100644 docs/V1alpha1VirtualMachineRestoreList.md create mode 100644 docs/V1alpha1VirtualMachineRestoreSpec.md create mode 100644 docs/V1alpha1VirtualMachineRestoreStatus.md create mode 100644 docs/V1alpha1VolumeRestore.md rename kubevirt/models/{v1alpha1_virtual_machine_snapshot_condition.py => v1alpha1_condition.py} (73%) rename kubevirt/models/{v1alpha1_virtual_machine_snapshot_error.py => v1alpha1_error.py} (79%) create mode 100644 kubevirt/models/v1alpha1_virtual_machine_restore.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_restore_list.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_restore_spec.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_restore_status.py create mode 100644 kubevirt/models/v1alpha1_volume_restore.py rename test/{test_v1alpha1_virtual_machine_snapshot_condition.py => test_v1alpha1_condition.py} (56%) create mode 100644 test/test_v1alpha1_error.py create mode 100644 test/test_v1alpha1_virtual_machine_restore.py create mode 100644 test/test_v1alpha1_virtual_machine_restore_list.py create mode 100644 test/test_v1alpha1_virtual_machine_restore_spec.py rename test/{test_v1alpha1_virtual_machine_snapshot_error.py => test_v1alpha1_virtual_machine_restore_status.py} (58%) create mode 100644 test/test_v1alpha1_volume_restore.py diff --git a/README.md b/README.md index f7972e8f..3d301f35 100644 --- a/README.md +++ b/README.md @@ -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: v0.33.0-rc.0-78-geede15d +- Package version: v0.33.0-rc.0-100-g87b59b40 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -76,6 +76,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**create_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | *DefaultApi* | [**create_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | *DefaultApi* | [**create_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +*DefaultApi* | [**create_namespaced_virtual_machine_restore**](docs/DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**create_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**create_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | *DefaultApi* | [**delete_collection_namespaced_kube_virt**](docs/DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | @@ -84,6 +85,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | *DefaultApi* | [**delete_namespaced_kube_virt**](docs/DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | @@ -92,6 +94,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**filesystemlist**](docs/DefaultApi.md#filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | @@ -113,6 +116,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | *DefaultApi* | [**list_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | *DefaultApi* | [**list_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +*DefaultApi* | [**list_namespaced_virtual_machine_restore**](docs/DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**list_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**list_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | *DefaultApi* | [**list_virtual_machine_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachines | @@ -120,6 +124,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_virtual_machine_instance_migration_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancemigrations | *DefaultApi* | [**list_virtual_machine_instance_preset_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancepresets | *DefaultApi* | [**list_virtual_machine_instance_replica_set_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancereplicasets | +*DefaultApi* | [**list_virtual_machine_restore_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_restore_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores | *DefaultApi* | [**list_virtual_machine_snapshot_content_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents | *DefaultApi* | [**list_virtual_machine_snapshot_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots | *DefaultApi* | [**migrate**](docs/DefaultApi.md#migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | @@ -129,6 +134,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**patch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**pause**](docs/DefaultApi.md#pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | @@ -138,6 +144,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**read_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_namespaced_virtual_machine_restore**](docs/DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**rename**](docs/DefaultApi.md#rename) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/rename | @@ -147,6 +154,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**replace_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_namespaced_virtual_machine_restore**](docs/DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**restart**](docs/DefaultApi.md#restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | @@ -164,6 +172,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**watch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | *DefaultApi* | [**watch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | *DefaultApi* | [**watch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +*DefaultApi* | [**watch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**watch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**watch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | *DefaultApi* | [**watch_virtual_machine_instance_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstances | @@ -171,6 +180,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**watch_virtual_machine_instance_preset_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancepresets | *DefaultApi* | [**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancereplicasets | *DefaultApi* | [**watch_virtual_machine_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachines | +*DefaultApi* | [**watch_virtual_machine_restore_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_restore_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinerestores | *DefaultApi* | [**watch_virtual_machine_snapshot_content_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_snapshot_content_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshotcontents | *DefaultApi* | [**watch_virtual_machine_snapshot_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_snapshot_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshots | @@ -335,6 +345,7 @@ Class | Method | HTTP request | Description - [V1WatchEvent](docs/V1WatchEvent.md) - [V1Watchdog](docs/V1Watchdog.md) - [V1WeightedPodAffinityTerm](docs/V1WeightedPodAffinityTerm.md) + - [V1alpha1Condition](docs/V1alpha1Condition.md) - [V1alpha1DataVolume](docs/V1alpha1DataVolume.md) - [V1alpha1DataVolumeBlankImage](docs/V1alpha1DataVolumeBlankImage.md) - [V1alpha1DataVolumeCondition](docs/V1alpha1DataVolumeCondition.md) @@ -347,18 +358,22 @@ Class | Method | HTTP request | Description - [V1alpha1DataVolumeSourceUpload](docs/V1alpha1DataVolumeSourceUpload.md) - [V1alpha1DataVolumeSpec](docs/V1alpha1DataVolumeSpec.md) - [V1alpha1DataVolumeStatus](docs/V1alpha1DataVolumeStatus.md) + - [V1alpha1Error](docs/V1alpha1Error.md) - [V1alpha1SourceSpec](docs/V1alpha1SourceSpec.md) + - [V1alpha1VirtualMachineRestore](docs/V1alpha1VirtualMachineRestore.md) + - [V1alpha1VirtualMachineRestoreList](docs/V1alpha1VirtualMachineRestoreList.md) + - [V1alpha1VirtualMachineRestoreSpec](docs/V1alpha1VirtualMachineRestoreSpec.md) + - [V1alpha1VirtualMachineRestoreStatus](docs/V1alpha1VirtualMachineRestoreStatus.md) - [V1alpha1VirtualMachineSnapshot](docs/V1alpha1VirtualMachineSnapshot.md) - - [V1alpha1VirtualMachineSnapshotCondition](docs/V1alpha1VirtualMachineSnapshotCondition.md) - [V1alpha1VirtualMachineSnapshotContent](docs/V1alpha1VirtualMachineSnapshotContent.md) - [V1alpha1VirtualMachineSnapshotContentList](docs/V1alpha1VirtualMachineSnapshotContentList.md) - [V1alpha1VirtualMachineSnapshotContentSpec](docs/V1alpha1VirtualMachineSnapshotContentSpec.md) - [V1alpha1VirtualMachineSnapshotContentStatus](docs/V1alpha1VirtualMachineSnapshotContentStatus.md) - - [V1alpha1VirtualMachineSnapshotError](docs/V1alpha1VirtualMachineSnapshotError.md) - [V1alpha1VirtualMachineSnapshotList](docs/V1alpha1VirtualMachineSnapshotList.md) - [V1alpha1VirtualMachineSnapshotSpec](docs/V1alpha1VirtualMachineSnapshotSpec.md) - [V1alpha1VirtualMachineSnapshotStatus](docs/V1alpha1VirtualMachineSnapshotStatus.md) - [V1alpha1VolumeBackup](docs/V1alpha1VolumeBackup.md) + - [V1alpha1VolumeRestore](docs/V1alpha1VolumeRestore.md) - [V1alpha1VolumeSnapshotStatus](docs/V1alpha1VolumeSnapshotStatus.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 20678e9c..f067dc3e 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -12,6 +12,7 @@ Method | HTTP request | Description [**create_namespaced_virtual_machine_instance_migration**](DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | [**create_namespaced_virtual_machine_instance_preset**](DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | [**create_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +[**create_namespaced_virtual_machine_restore**](DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**create_namespaced_virtual_machine_snapshot**](DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**create_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | [**delete_collection_namespaced_kube_virt**](DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | @@ -20,6 +21,7 @@ Method | HTTP request | Description [**delete_collection_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | [**delete_collection_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +[**delete_collection_namespaced_virtual_machine_restore**](DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**delete_collection_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**delete_collection_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | [**delete_namespaced_kube_virt**](DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | @@ -28,6 +30,7 @@ Method | HTTP request | Description [**delete_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_namespaced_virtual_machine_restore**](DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**filesystemlist**](DefaultApi.md#filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | @@ -49,6 +52,7 @@ Method | HTTP request | Description [**list_namespaced_virtual_machine_instance_migration**](DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | [**list_namespaced_virtual_machine_instance_preset**](DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | [**list_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +[**list_namespaced_virtual_machine_restore**](DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**list_namespaced_virtual_machine_snapshot**](DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**list_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | [**list_virtual_machine_for_all_namespaces**](DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachines | @@ -56,6 +60,7 @@ Method | HTTP request | Description [**list_virtual_machine_instance_migration_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancemigrations | [**list_virtual_machine_instance_preset_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancepresets | [**list_virtual_machine_instance_replica_set_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancereplicasets | +[**list_virtual_machine_restore_for_all_namespaces**](DefaultApi.md#list_virtual_machine_restore_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores | [**list_virtual_machine_snapshot_content_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents | [**list_virtual_machine_snapshot_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots | [**migrate**](DefaultApi.md#migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | @@ -65,6 +70,7 @@ Method | HTTP request | Description [**patch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_namespaced_virtual_machine_restore**](DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_snapshot**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**pause**](DefaultApi.md#pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | @@ -74,6 +80,7 @@ Method | HTTP request | Description [**read_namespaced_virtual_machine_instance_migration**](DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_instance_preset**](DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +[**read_namespaced_virtual_machine_restore**](DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_snapshot**](DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**rename**](DefaultApi.md#rename) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/rename | @@ -83,6 +90,7 @@ Method | HTTP request | Description [**replace_namespaced_virtual_machine_instance_migration**](DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_instance_preset**](DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_namespaced_virtual_machine_restore**](DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_snapshot**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**restart**](DefaultApi.md#restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | @@ -100,6 +108,7 @@ Method | HTTP request | Description [**watch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | [**watch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | [**watch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +[**watch_namespaced_virtual_machine_restore**](DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**watch_namespaced_virtual_machine_snapshot**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**watch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | [**watch_virtual_machine_instance_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstances | @@ -107,6 +116,7 @@ Method | HTTP request | Description [**watch_virtual_machine_instance_preset_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancepresets | [**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancereplicasets | [**watch_virtual_machine_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachines | +[**watch_virtual_machine_restore_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_restore_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinerestores | [**watch_virtual_machine_snapshot_content_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_snapshot_content_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshotcontents | [**watch_virtual_machine_snapshot_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_snapshot_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshots | @@ -496,6 +506,55 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **create_namespaced_virtual_machine_restore** +> V1alpha1VirtualMachineRestore create_namespaced_virtual_machine_restore(body, namespace) + + + +Create a VirtualMachineRestore object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +body = kubevirt.V1alpha1VirtualMachineRestore() # V1alpha1VirtualMachineRestore | +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.create_namespaced_virtual_machine_restore(body, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->create_namespaced_virtual_machine_restore: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1alpha1VirtualMachineRestore**](V1alpha1VirtualMachineRestore.md)| | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +[**V1alpha1VirtualMachineRestore**](V1alpha1VirtualMachineRestore.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **create_namespaced_virtual_machine_snapshot** > V1alpha1VirtualMachineSnapshot create_namespaced_virtual_machine_snapshot(body, namespace) @@ -960,6 +1019,67 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_collection_namespaced_virtual_machine_restore** +> V1Status delete_collection_namespaced_virtual_machine_restore(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Delete a collection of VirtualMachineRestore objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_namespaced_virtual_machine_restore(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_restore: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_collection_namespaced_virtual_machine_snapshot** > V1Status delete_collection_namespaced_virtual_machine_snapshot(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -1424,6 +1544,63 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_namespaced_virtual_machine_restore** +> V1Status delete_namespaced_virtual_machine_restore(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + + + +Delete a VirtualMachineRestore object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1DeleteOptions() # V1DeleteOptions | +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + +try: + api_response = api_instance.delete_namespaced_virtual_machine_restore(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_restore: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_namespaced_virtual_machine_snapshot** > V1Status delete_namespaced_virtual_machine_snapshot(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -2495,6 +2672,69 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **list_namespaced_virtual_machine_restore** +> V1alpha1VirtualMachineRestoreList list_namespaced_virtual_machine_restore(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Get a list of VirtualMachineRestore objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_virtual_machine_restore(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->list_namespaced_virtual_machine_restore: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1VirtualMachineRestoreList**](V1alpha1VirtualMachineRestoreList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **list_namespaced_virtual_machine_snapshot** > V1alpha1VirtualMachineSnapshotList list_namespaced_virtual_machine_snapshot(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -2926,6 +3166,67 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **list_virtual_machine_restore_for_all_namespaces** +> V1alpha1VirtualMachineRestoreList list_virtual_machine_restore_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Get a list of all VirtualMachineRestore objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_virtual_machine_restore_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->list_virtual_machine_restore_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1VirtualMachineRestoreList**](V1alpha1VirtualMachineRestoreList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **list_virtual_machine_snapshot_content_for_all_namespaces** > V1alpha1VirtualMachineSnapshotContentList list_virtual_machine_snapshot_content_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -3403,6 +3704,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **patch_namespaced_virtual_machine_restore** +> V1alpha1VirtualMachineRestore patch_namespaced_virtual_machine_restore(name, namespace, body) + + + +Patch a VirtualMachineRestore object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1Patch() # V1Patch | + +try: + api_response = api_instance.patch_namespaced_virtual_machine_restore(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_restore: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1Patch**](V1Patch.md)| | + +### Return type + +[**V1alpha1VirtualMachineRestore**](V1alpha1VirtualMachineRestore.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **patch_namespaced_virtual_machine_snapshot** > V1alpha1VirtualMachineSnapshot patch_namespaced_virtual_machine_snapshot(name, namespace, body) @@ -3872,6 +4224,59 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **read_namespaced_virtual_machine_restore** +> V1alpha1VirtualMachineRestore read_namespaced_virtual_machine_restore(name, namespace, exact=exact, export=export) + + + +Get a VirtualMachineRestore object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_namespaced_virtual_machine_restore(name, namespace, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->read_namespaced_virtual_machine_restore: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1alpha1VirtualMachineRestore**](V1alpha1VirtualMachineRestore.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **read_namespaced_virtual_machine_snapshot** > V1alpha1VirtualMachineSnapshot read_namespaced_virtual_machine_snapshot(name, namespace, exact=exact, export=export) @@ -4333,6 +4738,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **replace_namespaced_virtual_machine_restore** +> V1alpha1VirtualMachineRestore replace_namespaced_virtual_machine_restore(name, namespace, body) + + + +Update a VirtualMachineRestore object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1alpha1VirtualMachineRestore() # V1alpha1VirtualMachineRestore | + +try: + api_response = api_instance.replace_namespaced_virtual_machine_restore(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_restore: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1VirtualMachineRestore**](V1alpha1VirtualMachineRestore.md)| | + +### Return type + +[**V1alpha1VirtualMachineRestore**](V1alpha1VirtualMachineRestore.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **replace_namespaced_virtual_machine_snapshot** > V1alpha1VirtualMachineSnapshot replace_namespaced_virtual_machine_snapshot(name, namespace, body) @@ -5251,6 +5707,69 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **watch_namespaced_virtual_machine_restore** +> V1WatchEvent watch_namespaced_virtual_machine_restore(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Watch a VirtualMachineRestore object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_namespaced_virtual_machine_restore(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->watch_namespaced_virtual_machine_restore: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **watch_namespaced_virtual_machine_snapshot** > V1WatchEvent watch_namespaced_virtual_machine_snapshot(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -5682,6 +6201,67 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **watch_virtual_machine_restore_list_for_all_namespaces** +> V1WatchEvent watch_virtual_machine_restore_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Watch a VirtualMachineRestoreList object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_virtual_machine_restore_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->watch_virtual_machine_restore_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **watch_virtual_machine_snapshot_content_list_for_all_namespaces** > V1WatchEvent watch_virtual_machine_snapshot_content_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) diff --git a/docs/V1alpha1VirtualMachineSnapshotCondition.md b/docs/V1alpha1Condition.md similarity index 90% rename from docs/V1alpha1VirtualMachineSnapshotCondition.md rename to docs/V1alpha1Condition.md index 3c9b43d4..0b75a562 100644 --- a/docs/V1alpha1VirtualMachineSnapshotCondition.md +++ b/docs/V1alpha1Condition.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachineSnapshotCondition +# V1alpha1Condition ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1VirtualMachineSnapshotError.md b/docs/V1alpha1Error.md similarity index 90% rename from docs/V1alpha1VirtualMachineSnapshotError.md rename to docs/V1alpha1Error.md index 930f4a5b..0a34e137 100644 --- a/docs/V1alpha1VirtualMachineSnapshotError.md +++ b/docs/V1alpha1Error.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachineSnapshotError +# V1alpha1Error ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1VirtualMachineRestore.md b/docs/V1alpha1VirtualMachineRestore.md new file mode 100644 index 00000000..8fdb40a4 --- /dev/null +++ b/docs/V1alpha1VirtualMachineRestore.md @@ -0,0 +1,14 @@ +# V1alpha1VirtualMachineRestore + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha1VirtualMachineRestoreSpec**](V1alpha1VirtualMachineRestoreSpec.md) | | +**status** | [**V1alpha1VirtualMachineRestoreStatus**](V1alpha1VirtualMachineRestoreStatus.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineRestoreList.md b/docs/V1alpha1VirtualMachineRestoreList.md new file mode 100644 index 00000000..2e965609 --- /dev/null +++ b/docs/V1alpha1VirtualMachineRestoreList.md @@ -0,0 +1,13 @@ +# V1alpha1VirtualMachineRestoreList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list[V1alpha1VirtualMachineRestore]**](V1alpha1VirtualMachineRestore.md) | | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineRestoreSpec.md b/docs/V1alpha1VirtualMachineRestoreSpec.md new file mode 100644 index 00000000..a813153e --- /dev/null +++ b/docs/V1alpha1VirtualMachineRestoreSpec.md @@ -0,0 +1,11 @@ +# V1alpha1VirtualMachineRestoreSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**target** | [**V1TypedLocalObjectReference**](V1TypedLocalObjectReference.md) | initially only VirtualMachine type supported | +**virtual_machine_snapshot_name** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineRestoreStatus.md b/docs/V1alpha1VirtualMachineRestoreStatus.md new file mode 100644 index 00000000..5f8125f5 --- /dev/null +++ b/docs/V1alpha1VirtualMachineRestoreStatus.md @@ -0,0 +1,14 @@ +# V1alpha1VirtualMachineRestoreStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**complete** | **bool** | | [optional] +**conditions** | [**list[V1alpha1Condition]**](V1alpha1Condition.md) | | [optional] +**deleted_data_volumes** | **list[str]** | | [optional] +**restore_time** | [**V1Time**](V1Time.md) | | [optional] +**restores** | [**list[V1alpha1VolumeRestore]**](V1alpha1VolumeRestore.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineSnapshotContentStatus.md b/docs/V1alpha1VirtualMachineSnapshotContentStatus.md index a4555f86..eceb66d8 100644 --- a/docs/V1alpha1VirtualMachineSnapshotContentStatus.md +++ b/docs/V1alpha1VirtualMachineSnapshotContentStatus.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **creation_time** | [**V1Time**](V1Time.md) | | [optional] -**error** | [**V1alpha1VirtualMachineSnapshotError**](V1alpha1VirtualMachineSnapshotError.md) | | [optional] +**error** | [**V1alpha1Error**](V1alpha1Error.md) | | [optional] **ready_to_use** | **bool** | | [optional] **volume_snapshot_status** | [**list[V1alpha1VolumeSnapshotStatus]**](V1alpha1VolumeSnapshotStatus.md) | | [optional] diff --git a/docs/V1alpha1VirtualMachineSnapshotStatus.md b/docs/V1alpha1VirtualMachineSnapshotStatus.md index 7817c25d..8d86a82a 100644 --- a/docs/V1alpha1VirtualMachineSnapshotStatus.md +++ b/docs/V1alpha1VirtualMachineSnapshotStatus.md @@ -3,10 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**conditions** | [**list[V1alpha1VirtualMachineSnapshotCondition]**](V1alpha1VirtualMachineSnapshotCondition.md) | | [optional] +**conditions** | [**list[V1alpha1Condition]**](V1alpha1Condition.md) | | [optional] **creation_time** | [**V1Time**](V1Time.md) | | [optional] -**error** | [**V1alpha1VirtualMachineSnapshotError**](V1alpha1VirtualMachineSnapshotError.md) | | [optional] +**error** | [**V1alpha1Error**](V1alpha1Error.md) | | [optional] **ready_to_use** | **bool** | | [optional] +**source_uid** | **str** | | [optional] **virtual_machine_snapshot_content_name** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VolumeBackup.md b/docs/V1alpha1VolumeBackup.md index 0b5d17f5..cdcf2b11 100644 --- a/docs/V1alpha1VolumeBackup.md +++ b/docs/V1alpha1VolumeBackup.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**disk_name** | **str** | | **persistent_volume_claim** | [**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md) | | +**volume_name** | **str** | | **volume_snapshot_name** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VolumeRestore.md b/docs/V1alpha1VolumeRestore.md new file mode 100644 index 00000000..9b734f94 --- /dev/null +++ b/docs/V1alpha1VolumeRestore.md @@ -0,0 +1,13 @@ +# V1alpha1VolumeRestore + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data_volume_name** | **str** | | [optional] +**persistent_volume_claim** | **str** | | +**volume_name** | **str** | | +**volume_snapshot_name** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VolumeSnapshotStatus.md b/docs/V1alpha1VolumeSnapshotStatus.md index 0e7ba837..c8b0b1fe 100644 --- a/docs/V1alpha1VolumeSnapshotStatus.md +++ b/docs/V1alpha1VolumeSnapshotStatus.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **creation_time** | [**V1Time**](V1Time.md) | | [optional] -**error** | [**V1alpha1VirtualMachineSnapshotError**](V1alpha1VirtualMachineSnapshotError.md) | | [optional] +**error** | [**V1alpha1Error**](V1alpha1Error.md) | | [optional] **ready_to_use** | **bool** | | [optional] **volume_snapshot_name** | **str** | | diff --git a/git_push.sh b/git_push.sh index 1288cf90..86047cba 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.33.0-rc.0-78-geede15d" + release_note="Auto-generated client v0.33.0-rc.0-100-g87b59b40" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 4fd3de24..e98e3219 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -497,6 +497,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_weighted_pod_affinity_term.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_weighted_pod_affinity_term.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1WeightedPodAffinityTerm.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1Condition.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolume.md @@ -533,15 +536,27 @@ 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/v1alpha1_data_volume_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_error.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_error.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1Error.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_source_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_source_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1SourceSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_restore.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_restore.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineRestore.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_restore_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_restore_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineRestoreList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_restore_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_restore_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineRestoreSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_restore_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_restore_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineRestoreStatus.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_snapshot.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_snapshot.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineSnapshot.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_snapshot_condition.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_snapshot_condition.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineSnapshotCondition.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_snapshot_content.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_snapshot_content.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineSnapshotContent.md @@ -554,9 +569,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/v1alpha1_virtual_machine_snapshot_content_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_snapshot_content_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineSnapshotContentStatus.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_snapshot_error.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_snapshot_error.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineSnapshotError.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_snapshot_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_snapshot_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineSnapshotList.md @@ -569,6 +581,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/v1alpha1_volume_backup.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_volume_backup.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VolumeBackup.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_volume_restore.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_volume_restore.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VolumeRestore.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_volume_snapshot_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_volume_snapshot_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VolumeSnapshotStatus.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index e203d995..27223c76 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -172,6 +172,7 @@ from .models.v1_watch_event import V1WatchEvent from .models.v1_watchdog import V1Watchdog from .models.v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm +from .models.v1alpha1_condition import V1alpha1Condition from .models.v1alpha1_data_volume import V1alpha1DataVolume from .models.v1alpha1_data_volume_blank_image import V1alpha1DataVolumeBlankImage from .models.v1alpha1_data_volume_condition import V1alpha1DataVolumeCondition @@ -184,18 +185,22 @@ from .models.v1alpha1_data_volume_source_upload import V1alpha1DataVolumeSourceUpload from .models.v1alpha1_data_volume_spec import V1alpha1DataVolumeSpec from .models.v1alpha1_data_volume_status import V1alpha1DataVolumeStatus +from .models.v1alpha1_error import V1alpha1Error from .models.v1alpha1_source_spec import V1alpha1SourceSpec +from .models.v1alpha1_virtual_machine_restore import V1alpha1VirtualMachineRestore +from .models.v1alpha1_virtual_machine_restore_list import V1alpha1VirtualMachineRestoreList +from .models.v1alpha1_virtual_machine_restore_spec import V1alpha1VirtualMachineRestoreSpec +from .models.v1alpha1_virtual_machine_restore_status import V1alpha1VirtualMachineRestoreStatus from .models.v1alpha1_virtual_machine_snapshot import V1alpha1VirtualMachineSnapshot -from .models.v1alpha1_virtual_machine_snapshot_condition import V1alpha1VirtualMachineSnapshotCondition from .models.v1alpha1_virtual_machine_snapshot_content import V1alpha1VirtualMachineSnapshotContent from .models.v1alpha1_virtual_machine_snapshot_content_list import V1alpha1VirtualMachineSnapshotContentList from .models.v1alpha1_virtual_machine_snapshot_content_spec import V1alpha1VirtualMachineSnapshotContentSpec from .models.v1alpha1_virtual_machine_snapshot_content_status import V1alpha1VirtualMachineSnapshotContentStatus -from .models.v1alpha1_virtual_machine_snapshot_error import V1alpha1VirtualMachineSnapshotError from .models.v1alpha1_virtual_machine_snapshot_list import V1alpha1VirtualMachineSnapshotList from .models.v1alpha1_virtual_machine_snapshot_spec import V1alpha1VirtualMachineSnapshotSpec from .models.v1alpha1_virtual_machine_snapshot_status import V1alpha1VirtualMachineSnapshotStatus from .models.v1alpha1_volume_backup import V1alpha1VolumeBackup +from .models.v1alpha1_volume_restore import V1alpha1VolumeRestore from .models.v1alpha1_volume_snapshot_status import V1alpha1VolumeSnapshotStatus # import apis into sdk package diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index b98cbced..ac3dc405 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.33.0-rc.0-78-geede15d/python' + self.user_agent = 'Swagger-Codegen/v0.33.0-rc.0-100-g87b59b40/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index dbaf0b00..48ad5e20 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -905,6 +905,117 @@ def create_namespaced_virtual_machine_instance_replica_set_with_http_info(self, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def create_namespaced_virtual_machine_restore(self, body, namespace, **kwargs): + """ + Create a VirtualMachineRestore object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_virtual_machine_restore(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1VirtualMachineRestore body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1alpha1VirtualMachineRestore + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_virtual_machine_restore_with_http_info(body, namespace, **kwargs) + else: + (data) = self.create_namespaced_virtual_machine_restore_with_http_info(body, namespace, **kwargs) + return data + + def create_namespaced_virtual_machine_restore_with_http_info(self, body, namespace, **kwargs): + """ + Create a VirtualMachineRestore object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_virtual_machine_restore_with_http_info(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1VirtualMachineRestore body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1alpha1VirtualMachineRestore + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_virtual_machine_restore" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine_restore`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_restore`") + + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineRestore', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def create_namespaced_virtual_machine_snapshot(self, body, namespace, **kwargs): """ Create a VirtualMachineSnapshot object. @@ -1877,6 +1988,131 @@ def delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_ _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def delete_collection_namespaced_virtual_machine_restore(self, **kwargs): + """ + Delete a collection of VirtualMachineRestore objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_virtual_machine_restore(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_namespaced_virtual_machine_restore_with_http_info(**kwargs) + else: + (data) = self.delete_collection_namespaced_virtual_machine_restore_with_http_info(**kwargs) + return data + + def delete_collection_namespaced_virtual_machine_restore_with_http_info(self, **kwargs): + """ + Delete a collection of VirtualMachineRestore objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_virtual_machine_restore_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_namespaced_virtual_machine_restore" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def delete_collection_namespaced_virtual_machine_snapshot(self, **kwargs): """ Delete a collection of VirtualMachineSnapshot objects. @@ -2907,16 +3143,16 @@ def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_snapshot(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_restore(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineSnapshot object. + Delete a VirtualMachineRestore object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_snapshot(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_restore(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2932,21 +3168,21 @@ def delete_namespaced_virtual_machine_snapshot(self, name, namespace, body, **kw """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_restore_with_http_info(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineSnapshot object. + Delete a VirtualMachineRestore object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2972,19 +3208,19 @@ def delete_namespaced_virtual_machine_snapshot_with_http_info(self, name, namesp if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_snapshot" % key + " to method delete_namespaced_virtual_machine_restore" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_snapshot`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_restore`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_snapshot`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_restore`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_snapshot`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_restore`") collection_formats = {} @@ -3022,7 +3258,7 @@ def delete_namespaced_virtual_machine_snapshot_with_http_info(self, name, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -3037,16 +3273,16 @@ def delete_namespaced_virtual_machine_snapshot_with_http_info(self, name, namesp _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_snapshot_content(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_snapshot(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineSnapshotContent object. + Delete a VirtualMachineSnapshot object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_snapshot_content(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_snapshot(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3062,21 +3298,21 @@ def delete_namespaced_virtual_machine_snapshot_content(self, name, namespace, bo """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineSnapshotContent object. + Delete a VirtualMachineSnapshot object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3102,19 +3338,19 @@ def delete_namespaced_virtual_machine_snapshot_content_with_http_info(self, name if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_snapshot_content" % key + " to method delete_namespaced_virtual_machine_snapshot" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_snapshot_content`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_snapshot`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_snapshot_content`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_snapshot`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_snapshot_content`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_snapshot`") collection_formats = {} @@ -3152,7 +3388,7 @@ def delete_namespaced_virtual_machine_snapshot_content_with_http_info(self, name # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -3167,21 +3403,151 @@ def delete_namespaced_virtual_machine_snapshot_content_with_http_info(self, name _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def filesystemlist(self, **kwargs): + def delete_namespaced_virtual_machine_snapshot_content(self, name, namespace, body, **kwargs): """ - Get list of active filesystems on guest machine via guest agent + Delete a VirtualMachineSnapshotContent object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.filesystemlist(callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_snapshot_content(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1VirtualMachineInstanceFileSystemList - If the method is called asynchronously, + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, namespace, body, **kwargs): + """ + Delete a VirtualMachineSnapshotContent object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_virtual_machine_snapshot_content" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_snapshot_content`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_snapshot_content`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_snapshot_content`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'grace_period_seconds' in params: + query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) + if 'orphan_dependents' in params: + query_params.append(('orphanDependents', params['orphan_dependents'])) + if 'propagation_policy' in params: + query_params.append(('propagationPolicy', params['propagation_policy'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def filesystemlist(self, **kwargs): + """ + Get list of active filesystems on guest machine via guest agent + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.filesystemlist(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: V1VirtualMachineInstanceFileSystemList + If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True @@ -5209,6 +5575,138 @@ def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def list_namespaced_virtual_machine_restore(self, namespace, **kwargs): + """ + Get a list of VirtualMachineRestore objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_virtual_machine_restore(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineRestoreList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_virtual_machine_restore_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_virtual_machine_restore_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_virtual_machine_restore_with_http_info(self, namespace, **kwargs): + """ + Get a list of VirtualMachineRestore objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_virtual_machine_restore_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineRestoreList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_virtual_machine_restore" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_restore`") + + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineRestoreList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def list_namespaced_virtual_machine_snapshot(self, namespace, **kwargs): """ Get a list of VirtualMachineSnapshot objects. @@ -6098,16 +6596,16 @@ def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info( _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_snapshot_content_for_all_namespaces(self, **kwargs): + def list_virtual_machine_restore_for_all_namespaces(self, **kwargs): """ - Get a list of all VirtualMachineSnapshotContent objects. + Get a list of all VirtualMachineRestore objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_snapshot_content_for_all_namespaces(callback=callback_function) + >>> thread = api.list_virtual_machine_restore_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -6119,15 +6617,140 @@ def list_virtual_machine_snapshot_content_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotContentList + :return: V1alpha1VirtualMachineRestoreList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(**kwargs) + return self.list_virtual_machine_restore_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_virtual_machine_restore_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_virtual_machine_restore_for_all_namespaces_with_http_info(self, **kwargs): + """ + Get a list of all VirtualMachineRestore objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_restore_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineRestoreList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_virtual_machine_restore_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineRestoreList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_virtual_machine_snapshot_content_for_all_namespaces(self, **kwargs): + """ + Get a list of all VirtualMachineSnapshotContent objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_snapshot_content_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineSnapshotContentList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(**kwargs) return data def list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(self, **kwargs): @@ -7159,6 +7782,124 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def patch_namespaced_virtual_machine_restore(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineRestore object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_restore(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) + :return: V1alpha1VirtualMachineRestore + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_restore_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineRestore object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) + :return: V1alpha1VirtualMachineRestore + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_virtual_machine_restore" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_restore`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_restore`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_restore`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineRestore', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def patch_namespaced_virtual_machine_snapshot(self, name, namespace, body, **kwargs): """ Patch a VirtualMachineSnapshot object. @@ -8188,6 +8929,121 @@ def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def read_namespaced_virtual_machine_restore(self, name, namespace, **kwargs): + """ + Get a VirtualMachineRestore object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_restore(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1VirtualMachineRestore + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_virtual_machine_restore_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_virtual_machine_restore_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_virtual_machine_restore_with_http_info(self, name, namespace, **kwargs): + """ + Get a VirtualMachineRestore object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_restore_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1VirtualMachineRestore + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_virtual_machine_restore" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_restore`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_restore`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineRestore', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def read_namespaced_virtual_machine_snapshot(self, name, namespace, **kwargs): """ Get a VirtualMachineSnapshot object. @@ -9103,7 +9959,125 @@ def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, name body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstancePreset', + response_type='V1VirtualMachineInstancePreset', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): + """ + Update a VirtualMachineInstanceReplicaSet object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachineInstanceReplicaSet body: (required) + :return: V1VirtualMachineInstanceReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): + """ + Update a VirtualMachineInstanceReplicaSet object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachineInstanceReplicaSet body: (required) + :return: V1VirtualMachineInstanceReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_virtual_machine_instance_replica_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_replica_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_replica_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_replica_set`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceReplicaSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9111,50 +10085,50 @@ def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, name _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_restore(self, name, namespace, body, **kwargs): """ - Update a VirtualMachineInstanceReplicaSet object. + Update a VirtualMachineRestore object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_restore(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstanceReplicaSet body: (required) - :return: V1VirtualMachineInstanceReplicaSet + :param V1alpha1VirtualMachineRestore body: (required) + :return: V1alpha1VirtualMachineRestore If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_restore_with_http_info(self, name, namespace, body, **kwargs): """ - Update a VirtualMachineInstanceReplicaSet object. + Update a VirtualMachineRestore object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstanceReplicaSet body: (required) - :return: V1VirtualMachineInstanceReplicaSet + :param V1alpha1VirtualMachineRestore body: (required) + :return: V1alpha1VirtualMachineRestore If the method is called asynchronously, returns the request thread. """ @@ -9170,19 +10144,19 @@ def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_instance_replica_set" % key + " to method replace_namespaced_virtual_machine_restore" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_restore`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_restore`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_restore`") collection_formats = {} @@ -9214,14 +10188,14 @@ def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceReplicaSet', + response_type='V1alpha1VirtualMachineRestore', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11190,6 +12164,138 @@ def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def watch_namespaced_virtual_machine_restore(self, namespace, **kwargs): + """ + Watch a VirtualMachineRestore object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_virtual_machine_restore(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_namespaced_virtual_machine_restore_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_namespaced_virtual_machine_restore_with_http_info(namespace, **kwargs) + return data + + def watch_namespaced_virtual_machine_restore_with_http_info(self, namespace, **kwargs): + """ + Watch a VirtualMachineRestore object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_virtual_machine_restore_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_virtual_machine_restore" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_restore`") + + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1WatchEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def watch_namespaced_virtual_machine_snapshot(self, namespace, **kwargs): """ Watch a VirtualMachineSnapshot object. @@ -12079,6 +13185,131 @@ def watch_virtual_machine_list_for_all_namespaces_with_http_info(self, **kwargs) _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def watch_virtual_machine_restore_list_for_all_namespaces(self, **kwargs): + """ + Watch a VirtualMachineRestoreList object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_virtual_machine_restore_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_virtual_machine_restore_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_virtual_machine_restore_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_virtual_machine_restore_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + Watch a VirtualMachineRestoreList object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_virtual_machine_restore_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_virtual_machine_restore_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinerestores', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1WatchEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def watch_virtual_machine_snapshot_content_list_for_all_namespaces(self, **kwargs): """ Watch a VirtualMachineSnapshotContentList object. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 91255e1f..c2d68aa5 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.33.0-rc.0-78-geede15d".\ + "SDK Package Version: v0.33.0-rc.0-100-g87b59b40".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index dc7a062f..4e20b04d 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -172,6 +172,7 @@ from .v1_watch_event import V1WatchEvent from .v1_watchdog import V1Watchdog from .v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm +from .v1alpha1_condition import V1alpha1Condition from .v1alpha1_data_volume import V1alpha1DataVolume from .v1alpha1_data_volume_blank_image import V1alpha1DataVolumeBlankImage from .v1alpha1_data_volume_condition import V1alpha1DataVolumeCondition @@ -184,18 +185,22 @@ from .v1alpha1_data_volume_source_upload import V1alpha1DataVolumeSourceUpload from .v1alpha1_data_volume_spec import V1alpha1DataVolumeSpec from .v1alpha1_data_volume_status import V1alpha1DataVolumeStatus +from .v1alpha1_error import V1alpha1Error from .v1alpha1_source_spec import V1alpha1SourceSpec +from .v1alpha1_virtual_machine_restore import V1alpha1VirtualMachineRestore +from .v1alpha1_virtual_machine_restore_list import V1alpha1VirtualMachineRestoreList +from .v1alpha1_virtual_machine_restore_spec import V1alpha1VirtualMachineRestoreSpec +from .v1alpha1_virtual_machine_restore_status import V1alpha1VirtualMachineRestoreStatus from .v1alpha1_virtual_machine_snapshot import V1alpha1VirtualMachineSnapshot -from .v1alpha1_virtual_machine_snapshot_condition import V1alpha1VirtualMachineSnapshotCondition from .v1alpha1_virtual_machine_snapshot_content import V1alpha1VirtualMachineSnapshotContent from .v1alpha1_virtual_machine_snapshot_content_list import V1alpha1VirtualMachineSnapshotContentList from .v1alpha1_virtual_machine_snapshot_content_spec import V1alpha1VirtualMachineSnapshotContentSpec from .v1alpha1_virtual_machine_snapshot_content_status import V1alpha1VirtualMachineSnapshotContentStatus -from .v1alpha1_virtual_machine_snapshot_error import V1alpha1VirtualMachineSnapshotError from .v1alpha1_virtual_machine_snapshot_list import V1alpha1VirtualMachineSnapshotList from .v1alpha1_virtual_machine_snapshot_spec import V1alpha1VirtualMachineSnapshotSpec from .v1alpha1_virtual_machine_snapshot_status import V1alpha1VirtualMachineSnapshotStatus from .v1alpha1_volume_backup import V1alpha1VolumeBackup +from .v1alpha1_volume_restore import V1alpha1VolumeRestore from .v1alpha1_volume_snapshot_status import V1alpha1VolumeSnapshotStatus from .v1_interface_bridge import V1InterfaceBridge from .v1_interface_slirp import V1InterfaceSlirp diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_condition.py b/kubevirt/models/v1alpha1_condition.py similarity index 73% rename from kubevirt/models/v1alpha1_virtual_machine_snapshot_condition.py rename to kubevirt/models/v1alpha1_condition.py index db7b6d89..7c571d09 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_snapshot_condition.py +++ b/kubevirt/models/v1alpha1_condition.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineSnapshotCondition(object): +class V1alpha1Condition(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -46,7 +46,7 @@ class V1alpha1VirtualMachineSnapshotCondition(object): def __init__(self, message=None, reason=None, status=None, type=None): """ - V1alpha1VirtualMachineSnapshotCondition - a model defined in Swagger + V1alpha1Condition - a model defined in Swagger """ self._message = None @@ -64,9 +64,9 @@ def __init__(self, message=None, reason=None, status=None, type=None): @property def message(self): """ - Gets the message of this V1alpha1VirtualMachineSnapshotCondition. + Gets the message of this V1alpha1Condition. - :return: The message of this V1alpha1VirtualMachineSnapshotCondition. + :return: The message of this V1alpha1Condition. :rtype: str """ return self._message @@ -74,9 +74,9 @@ def message(self): @message.setter def message(self, message): """ - Sets the message of this V1alpha1VirtualMachineSnapshotCondition. + Sets the message of this V1alpha1Condition. - :param message: The message of this V1alpha1VirtualMachineSnapshotCondition. + :param message: The message of this V1alpha1Condition. :type: str """ @@ -85,9 +85,9 @@ def message(self, message): @property def reason(self): """ - Gets the reason of this V1alpha1VirtualMachineSnapshotCondition. + Gets the reason of this V1alpha1Condition. - :return: The reason of this V1alpha1VirtualMachineSnapshotCondition. + :return: The reason of this V1alpha1Condition. :rtype: str """ return self._reason @@ -95,9 +95,9 @@ def reason(self): @reason.setter def reason(self, reason): """ - Sets the reason of this V1alpha1VirtualMachineSnapshotCondition. + Sets the reason of this V1alpha1Condition. - :param reason: The reason of this V1alpha1VirtualMachineSnapshotCondition. + :param reason: The reason of this V1alpha1Condition. :type: str """ @@ -106,9 +106,9 @@ def reason(self, reason): @property def status(self): """ - Gets the status of this V1alpha1VirtualMachineSnapshotCondition. + Gets the status of this V1alpha1Condition. - :return: The status of this V1alpha1VirtualMachineSnapshotCondition. + :return: The status of this V1alpha1Condition. :rtype: str """ return self._status @@ -116,9 +116,9 @@ def status(self): @status.setter def status(self, status): """ - Sets the status of this V1alpha1VirtualMachineSnapshotCondition. + Sets the status of this V1alpha1Condition. - :param status: The status of this V1alpha1VirtualMachineSnapshotCondition. + :param status: The status of this V1alpha1Condition. :type: str """ if status is None: @@ -129,9 +129,9 @@ def status(self, status): @property def type(self): """ - Gets the type of this V1alpha1VirtualMachineSnapshotCondition. + Gets the type of this V1alpha1Condition. - :return: The type of this V1alpha1VirtualMachineSnapshotCondition. + :return: The type of this V1alpha1Condition. :rtype: str """ return self._type @@ -139,9 +139,9 @@ def type(self): @type.setter def type(self, type): """ - Sets the type of this V1alpha1VirtualMachineSnapshotCondition. + Sets the type of this V1alpha1Condition. - :param type: The type of this V1alpha1VirtualMachineSnapshotCondition. + :param type: The type of this V1alpha1Condition. :type: str """ if type is None: @@ -191,7 +191,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineSnapshotCondition): + if not isinstance(other, V1alpha1Condition): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_error.py b/kubevirt/models/v1alpha1_error.py similarity index 79% rename from kubevirt/models/v1alpha1_virtual_machine_snapshot_error.py rename to kubevirt/models/v1alpha1_error.py index 0193c240..c6135dc1 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_snapshot_error.py +++ b/kubevirt/models/v1alpha1_error.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineSnapshotError(object): +class V1alpha1Error(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class V1alpha1VirtualMachineSnapshotError(object): def __init__(self, message=None, time=None): """ - V1alpha1VirtualMachineSnapshotError - a model defined in Swagger + V1alpha1Error - a model defined in Swagger """ self._message = None @@ -56,9 +56,9 @@ def __init__(self, message=None, time=None): @property def message(self): """ - Gets the message of this V1alpha1VirtualMachineSnapshotError. + Gets the message of this V1alpha1Error. - :return: The message of this V1alpha1VirtualMachineSnapshotError. + :return: The message of this V1alpha1Error. :rtype: str """ return self._message @@ -66,9 +66,9 @@ def message(self): @message.setter def message(self, message): """ - Sets the message of this V1alpha1VirtualMachineSnapshotError. + Sets the message of this V1alpha1Error. - :param message: The message of this V1alpha1VirtualMachineSnapshotError. + :param message: The message of this V1alpha1Error. :type: str """ @@ -77,9 +77,9 @@ def message(self, message): @property def time(self): """ - Gets the time of this V1alpha1VirtualMachineSnapshotError. + Gets the time of this V1alpha1Error. - :return: The time of this V1alpha1VirtualMachineSnapshotError. + :return: The time of this V1alpha1Error. :rtype: V1Time """ return self._time @@ -87,9 +87,9 @@ def time(self): @time.setter def time(self, time): """ - Sets the time of this V1alpha1VirtualMachineSnapshotError. + Sets the time of this V1alpha1Error. - :param time: The time of this V1alpha1VirtualMachineSnapshotError. + :param time: The time of this V1alpha1Error. :type: V1Time """ @@ -137,7 +137,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineSnapshotError): + if not isinstance(other, V1alpha1Error): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_restore.py b/kubevirt/models/v1alpha1_virtual_machine_restore.py new file mode 100644 index 00000000..c9d72526 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_restore.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineRestore(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1alpha1VirtualMachineRestoreSpec', + 'status': 'V1alpha1VirtualMachineRestoreStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + """ + V1alpha1VirtualMachineRestore - a model defined in Swagger + """ + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1VirtualMachineRestore. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1alpha1VirtualMachineRestore. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1VirtualMachineRestore. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1VirtualMachineRestore. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1alpha1VirtualMachineRestore. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1VirtualMachineRestore. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1VirtualMachineRestore. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1VirtualMachineRestore. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1VirtualMachineRestore. + + :return: The metadata of this V1alpha1VirtualMachineRestore. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1VirtualMachineRestore. + + :param metadata: The metadata of this V1alpha1VirtualMachineRestore. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1alpha1VirtualMachineRestore. + + :return: The spec of this V1alpha1VirtualMachineRestore. + :rtype: V1alpha1VirtualMachineRestoreSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1alpha1VirtualMachineRestore. + + :param spec: The spec of this V1alpha1VirtualMachineRestore. + :type: V1alpha1VirtualMachineRestoreSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1alpha1VirtualMachineRestore. + + :return: The status of this V1alpha1VirtualMachineRestore. + :rtype: V1alpha1VirtualMachineRestoreStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1alpha1VirtualMachineRestore. + + :param status: The status of this V1alpha1VirtualMachineRestore. + :type: V1alpha1VirtualMachineRestoreStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineRestore): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_restore_list.py b/kubevirt/models/v1alpha1_virtual_machine_restore_list.py new file mode 100644 index 00000000..81f024fc --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_restore_list.py @@ -0,0 +1,207 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineRestoreList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'items': 'list[V1alpha1VirtualMachineRestore]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1alpha1VirtualMachineRestoreList - a model defined in Swagger + """ + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + self.metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1VirtualMachineRestoreList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1alpha1VirtualMachineRestoreList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1VirtualMachineRestoreList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1VirtualMachineRestoreList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1alpha1VirtualMachineRestoreList. + + :return: The items of this V1alpha1VirtualMachineRestoreList. + :rtype: list[V1alpha1VirtualMachineRestore] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1alpha1VirtualMachineRestoreList. + + :param items: The items of this V1alpha1VirtualMachineRestoreList. + :type: list[V1alpha1VirtualMachineRestore] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1alpha1VirtualMachineRestoreList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1VirtualMachineRestoreList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1VirtualMachineRestoreList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1VirtualMachineRestoreList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1VirtualMachineRestoreList. + + :return: The metadata of this V1alpha1VirtualMachineRestoreList. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1VirtualMachineRestoreList. + + :param metadata: The metadata of this V1alpha1VirtualMachineRestoreList. + :type: V1ListMeta + """ + if metadata is None: + raise ValueError("Invalid value for `metadata`, must not be `None`") + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineRestoreList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_restore_spec.py b/kubevirt/models/v1alpha1_virtual_machine_restore_spec.py new file mode 100644 index 00000000..c85a6160 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_restore_spec.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineRestoreSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'target': 'V1TypedLocalObjectReference', + 'virtual_machine_snapshot_name': 'str' + } + + attribute_map = { + 'target': 'target', + 'virtual_machine_snapshot_name': 'virtualMachineSnapshotName' + } + + def __init__(self, target=None, virtual_machine_snapshot_name=None): + """ + V1alpha1VirtualMachineRestoreSpec - a model defined in Swagger + """ + + self._target = None + self._virtual_machine_snapshot_name = None + + self.target = target + self.virtual_machine_snapshot_name = virtual_machine_snapshot_name + + @property + def target(self): + """ + Gets the target of this V1alpha1VirtualMachineRestoreSpec. + initially only VirtualMachine type supported + + :return: The target of this V1alpha1VirtualMachineRestoreSpec. + :rtype: V1TypedLocalObjectReference + """ + return self._target + + @target.setter + def target(self, target): + """ + Sets the target of this V1alpha1VirtualMachineRestoreSpec. + initially only VirtualMachine type supported + + :param target: The target of this V1alpha1VirtualMachineRestoreSpec. + :type: V1TypedLocalObjectReference + """ + if target is None: + raise ValueError("Invalid value for `target`, must not be `None`") + + self._target = target + + @property + def virtual_machine_snapshot_name(self): + """ + Gets the virtual_machine_snapshot_name of this V1alpha1VirtualMachineRestoreSpec. + + :return: The virtual_machine_snapshot_name of this V1alpha1VirtualMachineRestoreSpec. + :rtype: str + """ + return self._virtual_machine_snapshot_name + + @virtual_machine_snapshot_name.setter + def virtual_machine_snapshot_name(self, virtual_machine_snapshot_name): + """ + Sets the virtual_machine_snapshot_name of this V1alpha1VirtualMachineRestoreSpec. + + :param virtual_machine_snapshot_name: The virtual_machine_snapshot_name of this V1alpha1VirtualMachineRestoreSpec. + :type: str + """ + if virtual_machine_snapshot_name is None: + raise ValueError("Invalid value for `virtual_machine_snapshot_name`, must not be `None`") + + self._virtual_machine_snapshot_name = virtual_machine_snapshot_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineRestoreSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_restore_status.py b/kubevirt/models/v1alpha1_virtual_machine_restore_status.py new file mode 100644 index 00000000..2c1cac8e --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_restore_status.py @@ -0,0 +1,227 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineRestoreStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'complete': 'bool', + 'conditions': 'list[V1alpha1Condition]', + 'deleted_data_volumes': 'list[str]', + 'restore_time': 'V1Time', + 'restores': 'list[V1alpha1VolumeRestore]' + } + + attribute_map = { + 'complete': 'complete', + 'conditions': 'conditions', + 'deleted_data_volumes': 'deletedDataVolumes', + 'restore_time': 'restoreTime', + 'restores': 'restores' + } + + def __init__(self, complete=None, conditions=None, deleted_data_volumes=None, restore_time=None, restores=None): + """ + V1alpha1VirtualMachineRestoreStatus - a model defined in Swagger + """ + + self._complete = None + self._conditions = None + self._deleted_data_volumes = None + self._restore_time = None + self._restores = None + + if complete is not None: + self.complete = complete + if conditions is not None: + self.conditions = conditions + if deleted_data_volumes is not None: + self.deleted_data_volumes = deleted_data_volumes + if restore_time is not None: + self.restore_time = restore_time + if restores is not None: + self.restores = restores + + @property + def complete(self): + """ + Gets the complete of this V1alpha1VirtualMachineRestoreStatus. + + :return: The complete of this V1alpha1VirtualMachineRestoreStatus. + :rtype: bool + """ + return self._complete + + @complete.setter + def complete(self, complete): + """ + Sets the complete of this V1alpha1VirtualMachineRestoreStatus. + + :param complete: The complete of this V1alpha1VirtualMachineRestoreStatus. + :type: bool + """ + + self._complete = complete + + @property + def conditions(self): + """ + Gets the conditions of this V1alpha1VirtualMachineRestoreStatus. + + :return: The conditions of this V1alpha1VirtualMachineRestoreStatus. + :rtype: list[V1alpha1Condition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1alpha1VirtualMachineRestoreStatus. + + :param conditions: The conditions of this V1alpha1VirtualMachineRestoreStatus. + :type: list[V1alpha1Condition] + """ + + self._conditions = conditions + + @property + def deleted_data_volumes(self): + """ + Gets the deleted_data_volumes of this V1alpha1VirtualMachineRestoreStatus. + + :return: The deleted_data_volumes of this V1alpha1VirtualMachineRestoreStatus. + :rtype: list[str] + """ + return self._deleted_data_volumes + + @deleted_data_volumes.setter + def deleted_data_volumes(self, deleted_data_volumes): + """ + Sets the deleted_data_volumes of this V1alpha1VirtualMachineRestoreStatus. + + :param deleted_data_volumes: The deleted_data_volumes of this V1alpha1VirtualMachineRestoreStatus. + :type: list[str] + """ + + self._deleted_data_volumes = deleted_data_volumes + + @property + def restore_time(self): + """ + Gets the restore_time of this V1alpha1VirtualMachineRestoreStatus. + + :return: The restore_time of this V1alpha1VirtualMachineRestoreStatus. + :rtype: V1Time + """ + return self._restore_time + + @restore_time.setter + def restore_time(self, restore_time): + """ + Sets the restore_time of this V1alpha1VirtualMachineRestoreStatus. + + :param restore_time: The restore_time of this V1alpha1VirtualMachineRestoreStatus. + :type: V1Time + """ + + self._restore_time = restore_time + + @property + def restores(self): + """ + Gets the restores of this V1alpha1VirtualMachineRestoreStatus. + + :return: The restores of this V1alpha1VirtualMachineRestoreStatus. + :rtype: list[V1alpha1VolumeRestore] + """ + return self._restores + + @restores.setter + def restores(self, restores): + """ + Sets the restores of this V1alpha1VirtualMachineRestoreStatus. + + :param restores: The restores of this V1alpha1VirtualMachineRestoreStatus. + :type: list[V1alpha1VolumeRestore] + """ + + self._restores = restores + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineRestoreStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_status.py b/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_status.py index f6ae43ff..d5719462 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_status.py +++ b/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_status.py @@ -32,7 +32,7 @@ class V1alpha1VirtualMachineSnapshotContentStatus(object): """ swagger_types = { 'creation_time': 'V1Time', - 'error': 'V1alpha1VirtualMachineSnapshotError', + 'error': 'V1alpha1Error', 'ready_to_use': 'bool', 'volume_snapshot_status': 'list[V1alpha1VolumeSnapshotStatus]' } @@ -90,7 +90,7 @@ def error(self): Gets the error of this V1alpha1VirtualMachineSnapshotContentStatus. :return: The error of this V1alpha1VirtualMachineSnapshotContentStatus. - :rtype: V1alpha1VirtualMachineSnapshotError + :rtype: V1alpha1Error """ return self._error @@ -100,7 +100,7 @@ def error(self, error): Sets the error of this V1alpha1VirtualMachineSnapshotContentStatus. :param error: The error of this V1alpha1VirtualMachineSnapshotContentStatus. - :type: V1alpha1VirtualMachineSnapshotError + :type: V1alpha1Error """ self._error = error diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py b/kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py index 68a18480..cf4c3380 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py +++ b/kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py @@ -31,10 +31,11 @@ class V1alpha1VirtualMachineSnapshotStatus(object): and the value is json key in definition. """ swagger_types = { - 'conditions': 'list[V1alpha1VirtualMachineSnapshotCondition]', + 'conditions': 'list[V1alpha1Condition]', 'creation_time': 'V1Time', - 'error': 'V1alpha1VirtualMachineSnapshotError', + 'error': 'V1alpha1Error', 'ready_to_use': 'bool', + 'source_uid': 'str', 'virtual_machine_snapshot_content_name': 'str' } @@ -43,10 +44,11 @@ class V1alpha1VirtualMachineSnapshotStatus(object): 'creation_time': 'creationTime', 'error': 'error', 'ready_to_use': 'readyToUse', + 'source_uid': 'sourceUID', 'virtual_machine_snapshot_content_name': 'virtualMachineSnapshotContentName' } - def __init__(self, conditions=None, creation_time=None, error=None, ready_to_use=None, virtual_machine_snapshot_content_name=None): + def __init__(self, conditions=None, creation_time=None, error=None, ready_to_use=None, source_uid=None, virtual_machine_snapshot_content_name=None): """ V1alpha1VirtualMachineSnapshotStatus - a model defined in Swagger """ @@ -55,6 +57,7 @@ def __init__(self, conditions=None, creation_time=None, error=None, ready_to_use self._creation_time = None self._error = None self._ready_to_use = None + self._source_uid = None self._virtual_machine_snapshot_content_name = None if conditions is not None: @@ -65,6 +68,8 @@ def __init__(self, conditions=None, creation_time=None, error=None, ready_to_use self.error = error if ready_to_use is not None: self.ready_to_use = ready_to_use + if source_uid is not None: + self.source_uid = source_uid if virtual_machine_snapshot_content_name is not None: self.virtual_machine_snapshot_content_name = virtual_machine_snapshot_content_name @@ -74,7 +79,7 @@ def conditions(self): Gets the conditions of this V1alpha1VirtualMachineSnapshotStatus. :return: The conditions of this V1alpha1VirtualMachineSnapshotStatus. - :rtype: list[V1alpha1VirtualMachineSnapshotCondition] + :rtype: list[V1alpha1Condition] """ return self._conditions @@ -84,7 +89,7 @@ def conditions(self, conditions): Sets the conditions of this V1alpha1VirtualMachineSnapshotStatus. :param conditions: The conditions of this V1alpha1VirtualMachineSnapshotStatus. - :type: list[V1alpha1VirtualMachineSnapshotCondition] + :type: list[V1alpha1Condition] """ self._conditions = conditions @@ -116,7 +121,7 @@ def error(self): Gets the error of this V1alpha1VirtualMachineSnapshotStatus. :return: The error of this V1alpha1VirtualMachineSnapshotStatus. - :rtype: V1alpha1VirtualMachineSnapshotError + :rtype: V1alpha1Error """ return self._error @@ -126,7 +131,7 @@ def error(self, error): Sets the error of this V1alpha1VirtualMachineSnapshotStatus. :param error: The error of this V1alpha1VirtualMachineSnapshotStatus. - :type: V1alpha1VirtualMachineSnapshotError + :type: V1alpha1Error """ self._error = error @@ -152,6 +157,27 @@ def ready_to_use(self, ready_to_use): self._ready_to_use = ready_to_use + @property + def source_uid(self): + """ + Gets the source_uid of this V1alpha1VirtualMachineSnapshotStatus. + + :return: The source_uid of this V1alpha1VirtualMachineSnapshotStatus. + :rtype: str + """ + return self._source_uid + + @source_uid.setter + def source_uid(self, source_uid): + """ + Sets the source_uid of this V1alpha1VirtualMachineSnapshotStatus. + + :param source_uid: The source_uid of this V1alpha1VirtualMachineSnapshotStatus. + :type: str + """ + + self._source_uid = source_uid + @property def virtual_machine_snapshot_content_name(self): """ diff --git a/kubevirt/models/v1alpha1_volume_backup.py b/kubevirt/models/v1alpha1_volume_backup.py index 18be213d..317201ca 100644 --- a/kubevirt/models/v1alpha1_volume_backup.py +++ b/kubevirt/models/v1alpha1_volume_backup.py @@ -31,54 +31,31 @@ class V1alpha1VolumeBackup(object): and the value is json key in definition. """ swagger_types = { - 'disk_name': 'str', 'persistent_volume_claim': 'V1PersistentVolumeClaim', + 'volume_name': 'str', 'volume_snapshot_name': 'str' } attribute_map = { - 'disk_name': 'diskName', 'persistent_volume_claim': 'persistentVolumeClaim', + 'volume_name': 'volumeName', 'volume_snapshot_name': 'volumeSnapshotName' } - def __init__(self, disk_name=None, persistent_volume_claim=None, volume_snapshot_name=None): + def __init__(self, persistent_volume_claim=None, volume_name=None, volume_snapshot_name=None): """ V1alpha1VolumeBackup - a model defined in Swagger """ - self._disk_name = None self._persistent_volume_claim = None + self._volume_name = None self._volume_snapshot_name = None - self.disk_name = disk_name self.persistent_volume_claim = persistent_volume_claim + self.volume_name = volume_name if volume_snapshot_name is not None: self.volume_snapshot_name = volume_snapshot_name - @property - def disk_name(self): - """ - Gets the disk_name of this V1alpha1VolumeBackup. - - :return: The disk_name of this V1alpha1VolumeBackup. - :rtype: str - """ - return self._disk_name - - @disk_name.setter - def disk_name(self, disk_name): - """ - Sets the disk_name of this V1alpha1VolumeBackup. - - :param disk_name: The disk_name of this V1alpha1VolumeBackup. - :type: str - """ - if disk_name is None: - raise ValueError("Invalid value for `disk_name`, must not be `None`") - - self._disk_name = disk_name - @property def persistent_volume_claim(self): """ @@ -102,6 +79,29 @@ def persistent_volume_claim(self, persistent_volume_claim): self._persistent_volume_claim = persistent_volume_claim + @property + def volume_name(self): + """ + Gets the volume_name of this V1alpha1VolumeBackup. + + :return: The volume_name of this V1alpha1VolumeBackup. + :rtype: str + """ + return self._volume_name + + @volume_name.setter + def volume_name(self, volume_name): + """ + Sets the volume_name of this V1alpha1VolumeBackup. + + :param volume_name: The volume_name of this V1alpha1VolumeBackup. + :type: str + """ + if volume_name is None: + raise ValueError("Invalid value for `volume_name`, must not be `None`") + + self._volume_name = volume_name + @property def volume_snapshot_name(self): """ diff --git a/kubevirt/models/v1alpha1_volume_restore.py b/kubevirt/models/v1alpha1_volume_restore.py new file mode 100644 index 00000000..d873173a --- /dev/null +++ b/kubevirt/models/v1alpha1_volume_restore.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VolumeRestore(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data_volume_name': 'str', + 'persistent_volume_claim': 'str', + 'volume_name': 'str', + 'volume_snapshot_name': 'str' + } + + attribute_map = { + 'data_volume_name': 'dataVolumeName', + 'persistent_volume_claim': 'persistentVolumeClaim', + 'volume_name': 'volumeName', + 'volume_snapshot_name': 'volumeSnapshotName' + } + + def __init__(self, data_volume_name=None, persistent_volume_claim=None, volume_name=None, volume_snapshot_name=None): + """ + V1alpha1VolumeRestore - a model defined in Swagger + """ + + self._data_volume_name = None + self._persistent_volume_claim = None + self._volume_name = None + self._volume_snapshot_name = None + + if data_volume_name is not None: + self.data_volume_name = data_volume_name + self.persistent_volume_claim = persistent_volume_claim + self.volume_name = volume_name + self.volume_snapshot_name = volume_snapshot_name + + @property + def data_volume_name(self): + """ + Gets the data_volume_name of this V1alpha1VolumeRestore. + + :return: The data_volume_name of this V1alpha1VolumeRestore. + :rtype: str + """ + return self._data_volume_name + + @data_volume_name.setter + def data_volume_name(self, data_volume_name): + """ + Sets the data_volume_name of this V1alpha1VolumeRestore. + + :param data_volume_name: The data_volume_name of this V1alpha1VolumeRestore. + :type: str + """ + + self._data_volume_name = data_volume_name + + @property + def persistent_volume_claim(self): + """ + Gets the persistent_volume_claim of this V1alpha1VolumeRestore. + + :return: The persistent_volume_claim of this V1alpha1VolumeRestore. + :rtype: str + """ + return self._persistent_volume_claim + + @persistent_volume_claim.setter + def persistent_volume_claim(self, persistent_volume_claim): + """ + Sets the persistent_volume_claim of this V1alpha1VolumeRestore. + + :param persistent_volume_claim: The persistent_volume_claim of this V1alpha1VolumeRestore. + :type: str + """ + if persistent_volume_claim is None: + raise ValueError("Invalid value for `persistent_volume_claim`, must not be `None`") + + self._persistent_volume_claim = persistent_volume_claim + + @property + def volume_name(self): + """ + Gets the volume_name of this V1alpha1VolumeRestore. + + :return: The volume_name of this V1alpha1VolumeRestore. + :rtype: str + """ + return self._volume_name + + @volume_name.setter + def volume_name(self, volume_name): + """ + Sets the volume_name of this V1alpha1VolumeRestore. + + :param volume_name: The volume_name of this V1alpha1VolumeRestore. + :type: str + """ + if volume_name is None: + raise ValueError("Invalid value for `volume_name`, must not be `None`") + + self._volume_name = volume_name + + @property + def volume_snapshot_name(self): + """ + Gets the volume_snapshot_name of this V1alpha1VolumeRestore. + + :return: The volume_snapshot_name of this V1alpha1VolumeRestore. + :rtype: str + """ + return self._volume_snapshot_name + + @volume_snapshot_name.setter + def volume_snapshot_name(self, volume_snapshot_name): + """ + Sets the volume_snapshot_name of this V1alpha1VolumeRestore. + + :param volume_snapshot_name: The volume_snapshot_name of this V1alpha1VolumeRestore. + :type: str + """ + if volume_snapshot_name is None: + raise ValueError("Invalid value for `volume_snapshot_name`, must not be `None`") + + self._volume_snapshot_name = volume_snapshot_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VolumeRestore): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_volume_snapshot_status.py b/kubevirt/models/v1alpha1_volume_snapshot_status.py index 56c513df..5a07b25f 100644 --- a/kubevirt/models/v1alpha1_volume_snapshot_status.py +++ b/kubevirt/models/v1alpha1_volume_snapshot_status.py @@ -32,7 +32,7 @@ class V1alpha1VolumeSnapshotStatus(object): """ swagger_types = { 'creation_time': 'V1Time', - 'error': 'V1alpha1VirtualMachineSnapshotError', + 'error': 'V1alpha1Error', 'ready_to_use': 'bool', 'volume_snapshot_name': 'str' } @@ -89,7 +89,7 @@ def error(self): Gets the error of this V1alpha1VolumeSnapshotStatus. :return: The error of this V1alpha1VolumeSnapshotStatus. - :rtype: V1alpha1VirtualMachineSnapshotError + :rtype: V1alpha1Error """ return self._error @@ -99,7 +99,7 @@ def error(self, error): Sets the error of this V1alpha1VolumeSnapshotStatus. :param error: The error of this V1alpha1VolumeSnapshotStatus. - :type: V1alpha1VirtualMachineSnapshotError + :type: V1alpha1Error """ self._error = error diff --git a/setup.py b/setup.py index 7167e94e..d0bdddea 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.33.0-rc.0-78-geede15d" +VERSION = "v0.33.0-rc.0-100-g87b59b40" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 33d21577..f03e6765 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.33.0-rc.0-78-geede15d" +"packageVersion": "v0.33.0-rc.0-100-g87b59b40" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 7fd44dbe..d20bd32e 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -92,6 +92,14 @@ def test_create_namespaced_virtual_machine_instance_replica_set(self): Test case for create_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_create_namespaced_virtual_machine_restore(self): + """ + Test case for create_namespaced_virtual_machine_restore + + """ pass @@ -156,6 +164,14 @@ def test_delete_collection_namespaced_virtual_machine_instance_replica_set(self) Test case for delete_collection_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_delete_collection_namespaced_virtual_machine_restore(self): + """ + Test case for delete_collection_namespaced_virtual_machine_restore + + """ pass @@ -220,6 +236,14 @@ def test_delete_namespaced_virtual_machine_instance_replica_set(self): Test case for delete_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_delete_namespaced_virtual_machine_restore(self): + """ + Test case for delete_namespaced_virtual_machine_restore + + """ pass @@ -388,6 +412,14 @@ def test_list_namespaced_virtual_machine_instance_replica_set(self): Test case for list_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_list_namespaced_virtual_machine_restore(self): + """ + Test case for list_namespaced_virtual_machine_restore + + """ pass @@ -444,6 +476,14 @@ def test_list_virtual_machine_instance_replica_set_for_all_namespaces(self): Test case for list_virtual_machine_instance_replica_set_for_all_namespaces + """ + pass + + def test_list_virtual_machine_restore_for_all_namespaces(self): + """ + Test case for list_virtual_machine_restore_for_all_namespaces + + """ pass @@ -516,6 +556,14 @@ def test_patch_namespaced_virtual_machine_instance_replica_set(self): Test case for patch_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_patch_namespaced_virtual_machine_restore(self): + """ + Test case for patch_namespaced_virtual_machine_restore + + """ pass @@ -588,6 +636,14 @@ def test_read_namespaced_virtual_machine_instance_replica_set(self): Test case for read_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_read_namespaced_virtual_machine_restore(self): + """ + Test case for read_namespaced_virtual_machine_restore + + """ pass @@ -660,6 +716,14 @@ def test_replace_namespaced_virtual_machine_instance_replica_set(self): Test case for replace_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_replace_namespaced_virtual_machine_restore(self): + """ + Test case for replace_namespaced_virtual_machine_restore + + """ pass @@ -796,6 +860,14 @@ def test_watch_namespaced_virtual_machine_instance_replica_set(self): Test case for watch_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_watch_namespaced_virtual_machine_restore(self): + """ + Test case for watch_namespaced_virtual_machine_restore + + """ pass @@ -852,6 +924,14 @@ def test_watch_virtual_machine_list_for_all_namespaces(self): Test case for watch_virtual_machine_list_for_all_namespaces + """ + pass + + def test_watch_virtual_machine_restore_list_for_all_namespaces(self): + """ + Test case for watch_virtual_machine_restore_list_for_all_namespaces + + """ pass diff --git a/test/test_v1alpha1_virtual_machine_snapshot_condition.py b/test/test_v1alpha1_condition.py similarity index 56% rename from test/test_v1alpha1_virtual_machine_snapshot_condition.py rename to test/test_v1alpha1_condition.py index 3912c7fa..3425235f 100644 --- a/test/test_v1alpha1_virtual_machine_snapshot_condition.py +++ b/test/test_v1alpha1_condition.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_snapshot_condition import V1alpha1VirtualMachineSnapshotCondition +from kubevirt.models.v1alpha1_condition import V1alpha1Condition -class TestV1alpha1VirtualMachineSnapshotCondition(unittest.TestCase): - """ V1alpha1VirtualMachineSnapshotCondition unit test stubs """ +class TestV1alpha1Condition(unittest.TestCase): + """ V1alpha1Condition unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachineSnapshotCondition(self): + def testV1alpha1Condition(self): """ - Test V1alpha1VirtualMachineSnapshotCondition + Test V1alpha1Condition """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_snapshot_condition.V1alpha1VirtualMachineSnapshotCondition() + #model = kubevirt.models.v1alpha1_condition.V1alpha1Condition() pass diff --git a/test/test_v1alpha1_error.py b/test/test_v1alpha1_error.py new file mode 100644 index 00000000..414bffe8 --- /dev/null +++ b/test/test_v1alpha1_error.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_error import V1alpha1Error + + +class TestV1alpha1Error(unittest.TestCase): + """ V1alpha1Error unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1Error(self): + """ + Test V1alpha1Error + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_error.V1alpha1Error() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_restore.py b/test/test_v1alpha1_virtual_machine_restore.py new file mode 100644 index 00000000..a632ad1f --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_restore.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_restore import V1alpha1VirtualMachineRestore + + +class TestV1alpha1VirtualMachineRestore(unittest.TestCase): + """ V1alpha1VirtualMachineRestore unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineRestore(self): + """ + Test V1alpha1VirtualMachineRestore + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_restore.V1alpha1VirtualMachineRestore() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_restore_list.py b/test/test_v1alpha1_virtual_machine_restore_list.py new file mode 100644 index 00000000..6f5cf5bc --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_restore_list.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_restore_list import V1alpha1VirtualMachineRestoreList + + +class TestV1alpha1VirtualMachineRestoreList(unittest.TestCase): + """ V1alpha1VirtualMachineRestoreList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineRestoreList(self): + """ + Test V1alpha1VirtualMachineRestoreList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_restore_list.V1alpha1VirtualMachineRestoreList() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_restore_spec.py b/test/test_v1alpha1_virtual_machine_restore_spec.py new file mode 100644 index 00000000..50fefea9 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_restore_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_restore_spec import V1alpha1VirtualMachineRestoreSpec + + +class TestV1alpha1VirtualMachineRestoreSpec(unittest.TestCase): + """ V1alpha1VirtualMachineRestoreSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineRestoreSpec(self): + """ + Test V1alpha1VirtualMachineRestoreSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_restore_spec.V1alpha1VirtualMachineRestoreSpec() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_snapshot_error.py b/test/test_v1alpha1_virtual_machine_restore_status.py similarity index 58% rename from test/test_v1alpha1_virtual_machine_snapshot_error.py rename to test/test_v1alpha1_virtual_machine_restore_status.py index 5c8121be..b29e673b 100644 --- a/test/test_v1alpha1_virtual_machine_snapshot_error.py +++ b/test/test_v1alpha1_virtual_machine_restore_status.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_snapshot_error import V1alpha1VirtualMachineSnapshotError +from kubevirt.models.v1alpha1_virtual_machine_restore_status import V1alpha1VirtualMachineRestoreStatus -class TestV1alpha1VirtualMachineSnapshotError(unittest.TestCase): - """ V1alpha1VirtualMachineSnapshotError unit test stubs """ +class TestV1alpha1VirtualMachineRestoreStatus(unittest.TestCase): + """ V1alpha1VirtualMachineRestoreStatus unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachineSnapshotError(self): + def testV1alpha1VirtualMachineRestoreStatus(self): """ - Test V1alpha1VirtualMachineSnapshotError + Test V1alpha1VirtualMachineRestoreStatus """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_snapshot_error.V1alpha1VirtualMachineSnapshotError() + #model = kubevirt.models.v1alpha1_virtual_machine_restore_status.V1alpha1VirtualMachineRestoreStatus() pass diff --git a/test/test_v1alpha1_volume_restore.py b/test/test_v1alpha1_volume_restore.py new file mode 100644 index 00000000..f0d24f4b --- /dev/null +++ b/test/test_v1alpha1_volume_restore.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_volume_restore import V1alpha1VolumeRestore + + +class TestV1alpha1VolumeRestore(unittest.TestCase): + """ V1alpha1VolumeRestore unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VolumeRestore(self): + """ + Test V1alpha1VolumeRestore + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_volume_restore.V1alpha1VolumeRestore() + pass + + +if __name__ == '__main__': + unittest.main() From 821ad01eb9cb8422e0e9f0c4eb19a8716e28073e Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 15 Sep 2020 21:04:42 +0000 Subject: [PATCH 141/521] Client Python update by Travis Build 15032 --- README.md | 101 +++--- docs/DefaultApi.md | 248 ++++++------- docs/K8sIoApiCoreV1Affinity.md | 12 + ...tion.md => K8sIoApiCoreV1HTTPGetAction.md} | 4 +- ...PHeader.md => K8sIoApiCoreV1HTTPHeader.md} | 2 +- ... => K8sIoApiCoreV1LocalObjectReference.md} | 2 +- docs/K8sIoApiCoreV1NodeAffinity.md | 11 + docs/K8sIoApiCoreV1NodeSelector.md | 10 + ... K8sIoApiCoreV1NodeSelectorRequirement.md} | 2 +- docs/K8sIoApiCoreV1NodeSelectorTerm.md | 11 + ...=> K8sIoApiCoreV1PersistentVolumeClaim.md} | 8 +- ...piCoreV1PersistentVolumeClaimCondition.md} | 2 +- ...K8sIoApiCoreV1PersistentVolumeClaimSpec.md | 16 + ...IoApiCoreV1PersistentVolumeClaimStatus.md} | 6 +- ...oreV1PersistentVolumeClaimVolumeSource.md} | 2 +- docs/K8sIoApiCoreV1PodAffinity.md | 11 + ...rm.md => K8sIoApiCoreV1PodAffinityTerm.md} | 4 +- docs/K8sIoApiCoreV1PodAntiAffinity.md | 11 + ...onfig.md => K8sIoApiCoreV1PodDNSConfig.md} | 4 +- ...md => K8sIoApiCoreV1PodDNSConfigOption.md} | 2 +- ... K8sIoApiCoreV1PreferredSchedulingTerm.md} | 4 +- docs/K8sIoApiCoreV1ResourceRequirements.md | 11 + ...on.md => K8sIoApiCoreV1TCPSocketAction.md} | 2 +- ...eration.md => K8sIoApiCoreV1Toleration.md} | 2 +- ...8sIoApiCoreV1TypedLocalObjectReference.md} | 2 +- ... K8sIoApiCoreV1WeightedPodAffinityTerm.md} | 4 +- ...K8sIoApimachineryPkgApiResourceQuantity.md | 9 + .../K8sIoApimachineryPkgApisMetaV1APIGroup.md | 15 + ...oApimachineryPkgApisMetaV1APIGroupList.md} | 4 +- ...IoApimachineryPkgApisMetaV1APIResource.md} | 2 +- ...imachineryPkgApisMetaV1APIResourceList.md} | 4 +- ...ApimachineryPkgApisMetaV1DeleteOptions.md} | 4 +- ...K8sIoApimachineryPkgApisMetaV1Duration.md} | 2 +- ...K8sIoApimachineryPkgApisMetaV1FieldsV1.md} | 2 +- ...yPkgApisMetaV1GroupVersionForDiscovery.md} | 2 +- ...ApimachineryPkgApisMetaV1LabelSelector.md} | 4 +- ...yPkgApisMetaV1LabelSelectorRequirement.md} | 2 +- ...K8sIoApimachineryPkgApisMetaV1ListMeta.md} | 2 +- ...chineryPkgApisMetaV1ManagedFieldsEntry.md} | 6 +- ...sIoApimachineryPkgApisMetaV1ObjectMeta.md} | 8 +- ...pimachineryPkgApisMetaV1OwnerReference.md} | 2 +- ...=> K8sIoApimachineryPkgApisMetaV1Patch.md} | 2 +- ...ApimachineryPkgApisMetaV1Preconditions.md} | 2 +- ...8sIoApimachineryPkgApisMetaV1RootPaths.md} | 2 +- ...PkgApisMetaV1ServerAddressByClientCIDR.md} | 2 +- ...> K8sIoApimachineryPkgApisMetaV1Status.md} | 6 +- ...IoApimachineryPkgApisMetaV1StatusCause.md} | 2 +- ...ApimachineryPkgApisMetaV1StatusDetails.md} | 4 +- ... => K8sIoApimachineryPkgApisMetaV1Time.md} | 2 +- ...8sIoApimachineryPkgApisMetaV1WatchEvent.md | 11 + ...K8sIoApimachineryPkgRuntimeRawExtension.md | 9 + ...sIoApimachineryPkgUtilIntstrIntOrString.md | 9 + docs/V1APIGroup.md | 15 - docs/V1Affinity.md | 12 - docs/V1CloudInitConfigDriveSource.md | 4 +- docs/V1CloudInitNoCloudSource.md | 4 +- docs/V1EmptyDiskSource.md | 2 +- docs/V1EphemeralVolumeSource.md | 2 +- docs/V1FieldsV1.md | 9 - docs/V1HostDisk.md | 2 +- docs/V1KubeVirt.md | 2 +- docs/V1KubeVirtList.md | 2 +- docs/V1KubeVirtSelfSignConfiguration.md | 6 +- docs/V1Memory.md | 2 +- docs/V1MigrationConfiguration.md | 2 +- docs/V1NodeAffinity.md | 11 - docs/V1NodeSelector.md | 10 - docs/V1NodeSelectorTerm.md | 11 - docs/V1Patch.md | 9 - docs/V1PersistentVolumeClaimSpec.md | 16 - docs/V1PodAffinity.md | 11 - docs/V1PodAntiAffinity.md | 11 - docs/V1Probe.md | 4 +- docs/V1ResourceRequirements.md | 4 +- docs/V1Time.md | 9 - docs/V1VirtualMachine.md | 2 +- docs/V1VirtualMachineInstance.md | 2 +- .../V1VirtualMachineInstanceFileSystemList.md | 2 +- ...V1VirtualMachineInstanceGuestOSUserList.md | 2 +- docs/V1VirtualMachineInstanceList.md | 2 +- docs/V1VirtualMachineInstanceMigration.md | 2 +- docs/V1VirtualMachineInstanceMigrationList.md | 2 +- .../V1VirtualMachineInstanceMigrationState.md | 4 +- docs/V1VirtualMachineInstancePreset.md | 2 +- docs/V1VirtualMachineInstancePresetList.md | 2 +- docs/V1VirtualMachineInstancePresetSpec.md | 2 +- docs/V1VirtualMachineInstanceReplicaSet.md | 2 +- .../V1VirtualMachineInstanceReplicaSetList.md | 2 +- .../V1VirtualMachineInstanceReplicaSetSpec.md | 2 +- docs/V1VirtualMachineInstanceSpec.md | 6 +- docs/V1VirtualMachineInstanceTemplateSpec.md | 2 +- docs/V1VirtualMachineList.md | 2 +- docs/V1Volume.md | 2 +- docs/V1WatchEvent.md | 11 - docs/V1alpha1DataVolume.md | 2 +- docs/V1alpha1DataVolumeCondition.md | 2 +- docs/V1alpha1DataVolumeSpec.md | 2 +- docs/V1alpha1Error.md | 2 +- docs/V1alpha1VirtualMachineRestore.md | 2 +- docs/V1alpha1VirtualMachineRestoreList.md | 2 +- docs/V1alpha1VirtualMachineRestoreSpec.md | 2 +- docs/V1alpha1VirtualMachineRestoreStatus.md | 2 +- docs/V1alpha1VirtualMachineSnapshot.md | 2 +- docs/V1alpha1VirtualMachineSnapshotContent.md | 2 +- ...alpha1VirtualMachineSnapshotContentList.md | 2 +- ...pha1VirtualMachineSnapshotContentStatus.md | 2 +- docs/V1alpha1VirtualMachineSnapshotList.md | 2 +- docs/V1alpha1VirtualMachineSnapshotSpec.md | 2 +- docs/V1alpha1VirtualMachineSnapshotStatus.md | 2 +- docs/V1alpha1VolumeBackup.md | 2 +- docs/V1alpha1VolumeSnapshotStatus.md | 2 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 307 ++++++++-------- kubevirt/__init__.py | 99 +++--- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 336 +++++++++--------- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 99 +++--- ...nity.py => k8s_io_api_core_v1_affinity.py} | 48 +-- ... => k8s_io_api_core_v1_http_get_action.py} | 44 +-- ...r.py => k8s_io_api_core_v1_http_header.py} | 22 +- ..._io_api_core_v1_local_object_reference.py} | 14 +- ...py => k8s_io_api_core_v1_node_affinity.py} | 34 +- ...py => k8s_io_api_core_v1_node_selector.py} | 20 +- ..._api_core_v1_node_selector_requirement.py} | 30 +- ... k8s_io_api_core_v1_node_selector_term.py} | 34 +- ...io_api_core_v1_persistent_volume_claim.py} | 64 ++-- ...e_v1_persistent_volume_claim_condition.py} | 38 +- ...i_core_v1_persistent_volume_claim_spec.py} | 80 ++--- ...core_v1_persistent_volume_claim_status.py} | 50 +-- ..._persistent_volume_claim_volume_source.py} | 22 +- ....py => k8s_io_api_core_v1_pod_affinity.py} | 34 +- ...> k8s_io_api_core_v1_pod_affinity_term.py} | 36 +- ...> k8s_io_api_core_v1_pod_anti_affinity.py} | 34 +- ...y => k8s_io_api_core_v1_pod_dns_config.py} | 36 +- ...s_io_api_core_v1_pod_dns_config_option.py} | 22 +- ..._api_core_v1_preferred_scheduling_term.py} | 28 +- ...8s_io_api_core_v1_resource_requirements.py | 153 ++++++++ ...> k8s_io_api_core_v1_tcp_socket_action.py} | 14 +- ...on.py => k8s_io_api_core_v1_toleration.py} | 46 +-- ...i_core_v1_typed_local_object_reference.py} | 30 +- ...api_core_v1_weighted_pod_affinity_term.py} | 28 +- ..._apimachinery_pkg_api_resource_quantity.py | 99 ++++++ ...pimachinery_pkg_apis_meta_v1_api_group.py} | 72 ++-- ...hinery_pkg_apis_meta_v1_api_group_list.py} | 36 +- ...achinery_pkg_apis_meta_v1_api_resource.py} | 86 ++--- ...ery_pkg_apis_meta_v1_api_resource_list.py} | 44 +-- ...hinery_pkg_apis_meta_v1_delete_options.py} | 68 ++-- ...apimachinery_pkg_apis_meta_v1_duration.py} | 6 +- ...pimachinery_pkg_apis_meta_v1_fields_v1.py} | 6 +- ...is_meta_v1_group_version_for_discovery.py} | 22 +- ...hinery_pkg_apis_meta_v1_label_selector.py} | 28 +- ...pis_meta_v1_label_selector_requirement.py} | 30 +- ...pimachinery_pkg_apis_meta_v1_list_meta.py} | 38 +- ..._pkg_apis_meta_v1_managed_fields_entry.py} | 66 ++-- ...machinery_pkg_apis_meta_v1_object_meta.py} | 144 ++++---- ...inery_pkg_apis_meta_v1_owner_reference.py} | 54 +-- ...io_apimachinery_pkg_apis_meta_v1_patch.py} | 6 +- ...chinery_pkg_apis_meta_v1_preconditions.py} | 22 +- ...imachinery_pkg_apis_meta_v1_root_paths.py} | 14 +- ..._meta_v1_server_address_by_client_cidr.py} | 22 +- ...o_apimachinery_pkg_apis_meta_v1_status.py} | 82 ++--- ...achinery_pkg_apis_meta_v1_status_cause.py} | 30 +- ...hinery_pkg_apis_meta_v1_status_details.py} | 60 ++-- ..._io_apimachinery_pkg_apis_meta_v1_time.py} | 6 +- ...machinery_pkg_apis_meta_v1_watch_event.py} | 28 +- ..._apimachinery_pkg_runtime_raw_extension.py | 99 ++++++ ...machinery_pkg_util_intstr_int_or_string.py | 99 ++++++ .../v1_cloud_init_config_drive_source.py | 12 +- .../models/v1_cloud_init_no_cloud_source.py | 12 +- kubevirt/models/v1_empty_disk_source.py | 6 +- kubevirt/models/v1_ephemeral_volume_source.py | 6 +- kubevirt/models/v1_fields_v1.py | 99 ------ kubevirt/models/v1_host_disk.py | 6 +- kubevirt/models/v1_kube_virt.py | 6 +- kubevirt/models/v1_kube_virt_list.py | 6 +- .../v1_kube_virt_self_sign_configuration.py | 18 +- kubevirt/models/v1_memory.py | 6 +- kubevirt/models/v1_migration_configuration.py | 6 +- kubevirt/models/v1_patch.py | 99 ------ kubevirt/models/v1_probe.py | 12 +- kubevirt/models/v1_resource_requirements.py | 12 +- kubevirt/models/v1_time.py | 99 ------ kubevirt/models/v1_virtual_machine.py | 6 +- .../models/v1_virtual_machine_instance.py | 6 +- ...rtual_machine_instance_file_system_list.py | 6 +- ...ual_machine_instance_guest_os_user_list.py | 6 +- .../v1_virtual_machine_instance_list.py | 6 +- .../v1_virtual_machine_instance_migration.py | 6 +- ...virtual_machine_instance_migration_list.py | 6 +- ...irtual_machine_instance_migration_state.py | 12 +- .../v1_virtual_machine_instance_preset.py | 6 +- ...v1_virtual_machine_instance_preset_list.py | 6 +- ...v1_virtual_machine_instance_preset_spec.py | 6 +- ...v1_virtual_machine_instance_replica_set.py | 6 +- ...rtual_machine_instance_replica_set_list.py | 6 +- ...rtual_machine_instance_replica_set_spec.py | 6 +- .../v1_virtual_machine_instance_spec.py | 18 +- ..._virtual_machine_instance_template_spec.py | 6 +- kubevirt/models/v1_virtual_machine_list.py | 6 +- kubevirt/models/v1_volume.py | 6 +- kubevirt/models/v1alpha1_data_volume.py | 6 +- .../models/v1alpha1_data_volume_condition.py | 6 +- kubevirt/models/v1alpha1_data_volume_spec.py | 6 +- kubevirt/models/v1alpha1_error.py | 6 +- .../v1alpha1_virtual_machine_restore.py | 6 +- .../v1alpha1_virtual_machine_restore_list.py | 6 +- .../v1alpha1_virtual_machine_restore_spec.py | 6 +- ...v1alpha1_virtual_machine_restore_status.py | 6 +- .../v1alpha1_virtual_machine_snapshot.py | 6 +- ...alpha1_virtual_machine_snapshot_content.py | 6 +- ...1_virtual_machine_snapshot_content_list.py | 6 +- ...virtual_machine_snapshot_content_status.py | 6 +- .../v1alpha1_virtual_machine_snapshot_list.py | 6 +- .../v1alpha1_virtual_machine_snapshot_spec.py | 6 +- ...1alpha1_virtual_machine_snapshot_status.py | 6 +- kubevirt/models/v1alpha1_volume_backup.py | 6 +- .../models/v1alpha1_volume_snapshot_status.py | 6 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...py => test_k8s_io_api_core_v1_affinity.py} | 12 +- ...test_k8s_io_api_core_v1_http_get_action.py | 44 +++ ...=> test_k8s_io_api_core_v1_http_header.py} | 12 +- ..._io_api_core_v1_local_object_reference.py} | 12 +- test/test_k8s_io_api_core_v1_node_affinity.py | 44 +++ test/test_k8s_io_api_core_v1_node_selector.py | 44 +++ ...o_api_core_v1_node_selector_requirement.py | 44 +++ ...t_k8s_io_api_core_v1_node_selector_term.py | 44 +++ ...io_api_core_v1_persistent_volume_claim.py} | 12 +- ...re_v1_persistent_volume_claim_condition.py | 44 +++ ...pi_core_v1_persistent_volume_claim_spec.py | 44 +++ ..._core_v1_persistent_volume_claim_status.py | 44 +++ ...1_persistent_volume_claim_volume_source.py | 44 +++ ...> test_k8s_io_api_core_v1_pod_affinity.py} | 12 +- ...st_k8s_io_api_core_v1_pod_affinity_term.py | 44 +++ ...st_k8s_io_api_core_v1_pod_anti_affinity.py | 44 +++ .../test_k8s_io_api_core_v1_pod_dns_config.py | 44 +++ ...8s_io_api_core_v1_pod_dns_config_option.py | 44 +++ ...o_api_core_v1_preferred_scheduling_term.py | 44 +++ ...s_io_api_core_v1_resource_requirements.py} | 12 +- ...st_k8s_io_api_core_v1_tcp_socket_action.py | 44 +++ ... => test_k8s_io_api_core_v1_toleration.py} | 12 +- ...pi_core_v1_typed_local_object_reference.py | 44 +++ ..._api_core_v1_weighted_pod_affinity_term.py | 44 +++ ..._apimachinery_pkg_api_resource_quantity.py | 44 +++ ...apimachinery_pkg_apis_meta_v1_api_group.py | 44 +++ ...chinery_pkg_apis_meta_v1_api_group_list.py | 44 +++ ...machinery_pkg_apis_meta_v1_api_resource.py | 44 +++ ...nery_pkg_apis_meta_v1_api_resource_list.py | 44 +++ ...hinery_pkg_apis_meta_v1_delete_options.py} | 12 +- ..._apimachinery_pkg_apis_meta_v1_duration.py | 44 +++ ...apimachinery_pkg_apis_meta_v1_fields_v1.py | 44 +++ ...pis_meta_v1_group_version_for_discovery.py | 44 +++ ...hinery_pkg_apis_meta_v1_label_selector.py} | 12 +- ...pis_meta_v1_label_selector_requirement.py} | 12 +- ...apimachinery_pkg_apis_meta_v1_list_meta.py | 44 +++ ...y_pkg_apis_meta_v1_managed_fields_entry.py | 44 +++ ...imachinery_pkg_apis_meta_v1_object_meta.py | 44 +++ ...hinery_pkg_apis_meta_v1_owner_reference.py | 44 +++ ..._io_apimachinery_pkg_apis_meta_v1_patch.py | 44 +++ ...achinery_pkg_apis_meta_v1_preconditions.py | 44 +++ ...imachinery_pkg_apis_meta_v1_root_paths.py} | 12 +- ...s_meta_v1_server_address_by_client_cidr.py | 44 +++ ...o_apimachinery_pkg_apis_meta_v1_status.py} | 12 +- ...machinery_pkg_apis_meta_v1_status_cause.py | 44 +++ ...chinery_pkg_apis_meta_v1_status_details.py | 44 +++ ..._io_apimachinery_pkg_apis_meta_v1_time.py} | 12 +- ...imachinery_pkg_apis_meta_v1_watch_event.py | 44 +++ ..._apimachinery_pkg_runtime_raw_extension.py | 44 +++ ...machinery_pkg_util_intstr_int_or_string.py | 44 +++ test/test_v1_api_group.py | 44 --- test/test_v1_api_group_list.py | 44 --- test/test_v1_api_resource_list.py | 44 --- test/test_v1_delete_options.py | 44 --- test/test_v1_duration.py | 44 --- test/test_v1_fields_v1.py | 44 --- test/test_v1_group_version_for_discovery.py | 44 --- test/test_v1_http_get_action.py | 44 --- test/test_v1_http_header.py | 44 --- test/test_v1_label_selector_requirement.py | 44 --- test/test_v1_list_meta.py | 44 --- test/test_v1_local_object_reference.py | 44 --- test/test_v1_managed_fields_entry.py | 44 --- test/test_v1_node_selector_term.py | 44 --- test/test_v1_object_meta.py | 44 --- test/test_v1_owner_reference.py | 44 --- test/test_v1_patch.py | 44 --- test/test_v1_persistent_volume_claim.py | 44 --- ...st_v1_persistent_volume_claim_condition.py | 44 --- test/test_v1_persistent_volume_claim_spec.py | 44 --- .../test_v1_persistent_volume_claim_status.py | 44 --- test/test_v1_pod_affinity_term.py | 44 --- test/test_v1_pod_anti_affinity.py | 44 --- test/test_v1_pod_dns_config.py | 44 --- test/test_v1_pod_dns_config_option.py | 44 --- test/test_v1_preconditions.py | 44 --- test/test_v1_preferred_scheduling_term.py | 44 --- test/test_v1_root_paths.py | 44 --- test/test_v1_server_address_by_client_cidr.py | 44 --- test/test_v1_status.py | 44 --- test/test_v1_tcp_socket_action.py | 44 --- test/test_v1_time.py | 44 --- test/test_v1_toleration.py | 44 --- test/test_v1_typed_local_object_reference.py | 44 --- test/test_v1_watch_event.py | 44 --- test/test_v1_weighted_pod_affinity_term.py | 44 --- 306 files changed, 4077 insertions(+), 3863 deletions(-) create mode 100644 docs/K8sIoApiCoreV1Affinity.md rename docs/{V1HTTPGetAction.md => K8sIoApiCoreV1HTTPGetAction.md} (74%) rename docs/{V1HTTPHeader.md => K8sIoApiCoreV1HTTPHeader.md} (93%) rename docs/{V1LocalObjectReference.md => K8sIoApiCoreV1LocalObjectReference.md} (91%) create mode 100644 docs/K8sIoApiCoreV1NodeAffinity.md create mode 100644 docs/K8sIoApiCoreV1NodeSelector.md rename docs/{V1NodeSelectorRequirement.md => K8sIoApiCoreV1NodeSelectorRequirement.md} (95%) create mode 100644 docs/K8sIoApiCoreV1NodeSelectorTerm.md rename docs/{V1PersistentVolumeClaim.md => K8sIoApiCoreV1PersistentVolumeClaim.md} (50%) rename docs/{V1PersistentVolumeClaimCondition.md => K8sIoApiCoreV1PersistentVolumeClaimCondition.md} (93%) create mode 100644 docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md rename docs/{V1PersistentVolumeClaimStatus.md => K8sIoApiCoreV1PersistentVolumeClaimStatus.md} (52%) rename docs/{V1PersistentVolumeClaimVolumeSource.md => K8sIoApiCoreV1PersistentVolumeClaimVolumeSource.md} (92%) create mode 100644 docs/K8sIoApiCoreV1PodAffinity.md rename docs/{V1PodAffinityTerm.md => K8sIoApiCoreV1PodAffinityTerm.md} (79%) create mode 100644 docs/K8sIoApiCoreV1PodAntiAffinity.md rename docs/{V1PodDNSConfig.md => K8sIoApiCoreV1PodDNSConfig.md} (65%) rename docs/{V1PodDNSConfigOption.md => K8sIoApiCoreV1PodDNSConfigOption.md} (91%) rename docs/{V1PreferredSchedulingTerm.md => K8sIoApiCoreV1PreferredSchedulingTerm.md} (66%) create mode 100644 docs/K8sIoApiCoreV1ResourceRequirements.md rename docs/{V1TCPSocketAction.md => K8sIoApiCoreV1TCPSocketAction.md} (92%) rename docs/{V1Toleration.md => K8sIoApiCoreV1Toleration.md} (98%) rename docs/{V1TypedLocalObjectReference.md => K8sIoApiCoreV1TypedLocalObjectReference.md} (93%) rename docs/{V1WeightedPodAffinityTerm.md => K8sIoApiCoreV1WeightedPodAffinityTerm.md} (64%) create mode 100644 docs/K8sIoApimachineryPkgApiResourceQuantity.md create mode 100644 docs/K8sIoApimachineryPkgApisMetaV1APIGroup.md rename docs/{V1APIGroupList.md => K8sIoApimachineryPkgApisMetaV1APIGroupList.md} (83%) rename docs/{V1APIResource.md => K8sIoApimachineryPkgApisMetaV1APIResource.md} (98%) rename docs/{V1APIResourceList.md => K8sIoApimachineryPkgApisMetaV1APIResourceList.md} (81%) rename docs/{V1DeleteOptions.md => K8sIoApimachineryPkgApisMetaV1DeleteOptions.md} (89%) rename docs/{RuntimeRawExtension.md => K8sIoApimachineryPkgApisMetaV1Duration.md} (87%) rename docs/{V1Duration.md => K8sIoApimachineryPkgApisMetaV1FieldsV1.md} (87%) rename docs/{V1GroupVersionForDiscovery.md => K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery.md} (90%) rename docs/{V1LabelSelector.md => K8sIoApimachineryPkgApisMetaV1LabelSelector.md} (67%) rename docs/{V1LabelSelectorRequirement.md => K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement.md} (93%) rename docs/{V1ListMeta.md => K8sIoApimachineryPkgApisMetaV1ListMeta.md} (98%) rename docs/{V1ManagedFieldsEntry.md => K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry.md} (69%) rename docs/{V1ObjectMeta.md => K8sIoApimachineryPkgApisMetaV1ObjectMeta.md} (65%) rename docs/{V1OwnerReference.md => K8sIoApimachineryPkgApisMetaV1OwnerReference.md} (96%) rename docs/{ResourceQuantity.md => K8sIoApimachineryPkgApisMetaV1Patch.md} (87%) rename docs/{V1Preconditions.md => K8sIoApimachineryPkgApisMetaV1Preconditions.md} (90%) rename docs/{V1RootPaths.md => K8sIoApimachineryPkgApisMetaV1RootPaths.md} (89%) rename docs/{V1ServerAddressByClientCIDR.md => K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR.md} (90%) rename docs/{V1Status.md => K8sIoApimachineryPkgApisMetaV1Status.md} (71%) rename docs/{V1StatusCause.md => K8sIoApimachineryPkgApisMetaV1StatusCause.md} (96%) rename docs/{V1StatusDetails.md => K8sIoApimachineryPkgApisMetaV1StatusDetails.md} (80%) rename docs/{IntstrIntOrString.md => K8sIoApimachineryPkgApisMetaV1Time.md} (88%) create mode 100644 docs/K8sIoApimachineryPkgApisMetaV1WatchEvent.md create mode 100644 docs/K8sIoApimachineryPkgRuntimeRawExtension.md create mode 100644 docs/K8sIoApimachineryPkgUtilIntstrIntOrString.md delete mode 100644 docs/V1APIGroup.md delete mode 100644 docs/V1Affinity.md delete mode 100644 docs/V1FieldsV1.md delete mode 100644 docs/V1NodeAffinity.md delete mode 100644 docs/V1NodeSelector.md delete mode 100644 docs/V1NodeSelectorTerm.md delete mode 100644 docs/V1Patch.md delete mode 100644 docs/V1PersistentVolumeClaimSpec.md delete mode 100644 docs/V1PodAffinity.md delete mode 100644 docs/V1PodAntiAffinity.md delete mode 100644 docs/V1Time.md delete mode 100644 docs/V1WatchEvent.md rename kubevirt/models/{v1_affinity.py => k8s_io_api_core_v1_affinity.py} (75%) rename kubevirt/models/{v1_http_get_action.py => k8s_io_api_core_v1_http_get_action.py} (76%) rename kubevirt/models/{v1_http_header.py => k8s_io_api_core_v1_http_header.py} (83%) rename kubevirt/models/{v1_local_object_reference.py => k8s_io_api_core_v1_local_object_reference.py} (85%) rename kubevirt/models/{v1_node_affinity.py => k8s_io_api_core_v1_node_affinity.py} (89%) rename kubevirt/models/{v1_node_selector.py => k8s_io_api_core_v1_node_selector.py} (83%) rename kubevirt/models/{v1_node_selector_requirement.py => k8s_io_api_core_v1_node_selector_requirement.py} (80%) rename kubevirt/models/{v1_node_selector_term.py => k8s_io_api_core_v1_node_selector_term.py} (75%) rename kubevirt/models/{v1_persistent_volume_claim.py => k8s_io_api_core_v1_persistent_volume_claim.py} (74%) rename kubevirt/models/{v1_persistent_volume_claim_condition.py => k8s_io_api_core_v1_persistent_volume_claim_condition.py} (75%) rename kubevirt/models/{v1_persistent_volume_claim_spec.py => k8s_io_api_core_v1_persistent_volume_claim_spec.py} (73%) rename kubevirt/models/{v1_persistent_volume_claim_status.py => k8s_io_api_core_v1_persistent_volume_claim_status.py} (71%) rename kubevirt/models/{v1_persistent_volume_claim_volume_source.py => k8s_io_api_core_v1_persistent_volume_claim_volume_source.py} (80%) rename kubevirt/models/{v1_pod_affinity.py => k8s_io_api_core_v1_pod_affinity.py} (90%) rename kubevirt/models/{v1_pod_affinity_term.py => k8s_io_api_core_v1_pod_affinity_term.py} (79%) rename kubevirt/models/{v1_pod_anti_affinity.py => k8s_io_api_core_v1_pod_anti_affinity.py} (89%) rename kubevirt/models/{v1_pod_dns_config.py => k8s_io_api_core_v1_pod_dns_config.py} (80%) rename kubevirt/models/{v1_pod_dns_config_option.py => k8s_io_api_core_v1_pod_dns_config_option.py} (80%) rename kubevirt/models/{v1_preferred_scheduling_term.py => k8s_io_api_core_v1_preferred_scheduling_term.py} (78%) create mode 100644 kubevirt/models/k8s_io_api_core_v1_resource_requirements.py rename kubevirt/models/{v1_tcp_socket_action.py => k8s_io_api_core_v1_tcp_socket_action.py} (86%) rename kubevirt/models/{v1_toleration.py => k8s_io_api_core_v1_toleration.py} (82%) rename kubevirt/models/{v1_typed_local_object_reference.py => k8s_io_api_core_v1_typed_local_object_reference.py} (78%) rename kubevirt/models/{v1_weighted_pod_affinity_term.py => k8s_io_api_core_v1_weighted_pod_affinity_term.py} (79%) create mode 100644 kubevirt/models/k8s_io_apimachinery_pkg_api_resource_quantity.py rename kubevirt/models/{v1_api_group.py => k8s_io_apimachinery_pkg_apis_meta_v1_api_group.py} (74%) rename kubevirt/models/{v1_api_group_list.py => k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list.py} (77%) rename kubevirt/models/{v1_api_resource.py => k8s_io_apimachinery_pkg_apis_meta_v1_api_resource.py} (75%) rename kubevirt/models/{v1_api_resource_list.py => k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_list.py} (75%) rename kubevirt/models/{v1_delete_options.py => k8s_io_apimachinery_pkg_apis_meta_v1_delete_options.py} (78%) rename kubevirt/models/{runtime_raw_extension.py => k8s_io_apimachinery_pkg_apis_meta_v1_duration.py} (91%) rename kubevirt/models/{resource_quantity.py => k8s_io_apimachinery_pkg_apis_meta_v1_fields_v1.py} (91%) rename kubevirt/models/{v1_group_version_for_discovery.py => k8s_io_apimachinery_pkg_apis_meta_v1_group_version_for_discovery.py} (78%) rename kubevirt/models/{v1_label_selector.py => k8s_io_apimachinery_pkg_apis_meta_v1_label_selector.py} (77%) rename kubevirt/models/{v1_label_selector_requirement.py => k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_requirement.py} (76%) rename kubevirt/models/{v1_list_meta.py => k8s_io_apimachinery_pkg_apis_meta_v1_list_meta.py} (84%) rename kubevirt/models/{v1_managed_fields_entry.py => k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry.py} (70%) rename kubevirt/models/{v1_object_meta.py => k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.py} (79%) rename kubevirt/models/{v1_owner_reference.py => k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference.py} (75%) rename kubevirt/models/{intstr_int_or_string.py => k8s_io_apimachinery_pkg_apis_meta_v1_patch.py} (91%) rename kubevirt/models/{v1_preconditions.py => k8s_io_apimachinery_pkg_apis_meta_v1_preconditions.py} (78%) rename kubevirt/models/{v1_root_paths.py => k8s_io_apimachinery_pkg_apis_meta_v1_root_paths.py} (84%) rename kubevirt/models/{v1_server_address_by_client_cidr.py => k8s_io_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr.py} (79%) rename kubevirt/models/{v1_status.py => k8s_io_apimachinery_pkg_apis_meta_v1_status.py} (73%) rename kubevirt/models/{v1_status_cause.py => k8s_io_apimachinery_pkg_apis_meta_v1_status_cause.py} (80%) rename kubevirt/models/{v1_status_details.py => k8s_io_apimachinery_pkg_apis_meta_v1_status_details.py} (74%) rename kubevirt/models/{v1_duration.py => k8s_io_apimachinery_pkg_apis_meta_v1_time.py} (92%) rename kubevirt/models/{v1_watch_event.py => k8s_io_apimachinery_pkg_apis_meta_v1_watch_event.py} (78%) create mode 100644 kubevirt/models/k8s_io_apimachinery_pkg_runtime_raw_extension.py create mode 100644 kubevirt/models/k8s_io_apimachinery_pkg_util_intstr_int_or_string.py delete mode 100644 kubevirt/models/v1_fields_v1.py delete mode 100644 kubevirt/models/v1_patch.py delete mode 100644 kubevirt/models/v1_time.py rename test/{test_intstr_int_or_string.py => test_k8s_io_api_core_v1_affinity.py} (63%) create mode 100644 test/test_k8s_io_api_core_v1_http_get_action.py rename test/{test_runtime_raw_extension.py => test_k8s_io_api_core_v1_http_header.py} (62%) rename test/{test_v1_pod_affinity.py => test_k8s_io_api_core_v1_local_object_reference.py} (58%) create mode 100644 test/test_k8s_io_api_core_v1_node_affinity.py create mode 100644 test/test_k8s_io_api_core_v1_node_selector.py create mode 100644 test/test_k8s_io_api_core_v1_node_selector_requirement.py create mode 100644 test/test_k8s_io_api_core_v1_node_selector_term.py rename test/{test_v1_persistent_volume_claim_volume_source.py => test_k8s_io_api_core_v1_persistent_volume_claim.py} (57%) create mode 100644 test/test_k8s_io_api_core_v1_persistent_volume_claim_condition.py create mode 100644 test/test_k8s_io_api_core_v1_persistent_volume_claim_spec.py create mode 100644 test/test_k8s_io_api_core_v1_persistent_volume_claim_status.py create mode 100644 test/test_k8s_io_api_core_v1_persistent_volume_claim_volume_source.py rename test/{test_v1_affinity.py => test_k8s_io_api_core_v1_pod_affinity.py} (62%) create mode 100644 test/test_k8s_io_api_core_v1_pod_affinity_term.py create mode 100644 test/test_k8s_io_api_core_v1_pod_anti_affinity.py create mode 100644 test/test_k8s_io_api_core_v1_pod_dns_config.py create mode 100644 test/test_k8s_io_api_core_v1_pod_dns_config_option.py create mode 100644 test/test_k8s_io_api_core_v1_preferred_scheduling_term.py rename test/{test_v1_api_resource.py => test_k8s_io_api_core_v1_resource_requirements.py} (58%) create mode 100644 test/test_k8s_io_api_core_v1_tcp_socket_action.py rename test/{test_resource_quantity.py => test_k8s_io_api_core_v1_toleration.py} (62%) create mode 100644 test/test_k8s_io_api_core_v1_typed_local_object_reference.py create mode 100644 test/test_k8s_io_api_core_v1_weighted_pod_affinity_term.py create mode 100644 test/test_k8s_io_apimachinery_pkg_api_resource_quantity.py create mode 100644 test/test_k8s_io_apimachinery_pkg_apis_meta_v1_api_group.py create mode 100644 test/test_k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list.py create mode 100644 test/test_k8s_io_apimachinery_pkg_apis_meta_v1_api_resource.py create mode 100644 test/test_k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_list.py rename test/{test_v1_node_affinity.py => test_k8s_io_apimachinery_pkg_apis_meta_v1_delete_options.py} (54%) create mode 100644 test/test_k8s_io_apimachinery_pkg_apis_meta_v1_duration.py create mode 100644 test/test_k8s_io_apimachinery_pkg_apis_meta_v1_fields_v1.py create mode 100644 test/test_k8s_io_apimachinery_pkg_apis_meta_v1_group_version_for_discovery.py rename test/{test_v1_node_selector.py => test_k8s_io_apimachinery_pkg_apis_meta_v1_label_selector.py} (54%) rename test/{test_v1_node_selector_requirement.py => test_k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_requirement.py} (51%) create mode 100644 test/test_k8s_io_apimachinery_pkg_apis_meta_v1_list_meta.py create mode 100644 test/test_k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry.py create mode 100644 test/test_k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.py create mode 100644 test/test_k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference.py create mode 100644 test/test_k8s_io_apimachinery_pkg_apis_meta_v1_patch.py create mode 100644 test/test_k8s_io_apimachinery_pkg_apis_meta_v1_preconditions.py rename test/{test_v1_label_selector.py => test_k8s_io_apimachinery_pkg_apis_meta_v1_root_paths.py} (59%) create mode 100644 test/test_k8s_io_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr.py rename test/{test_v1_status_details.py => test_k8s_io_apimachinery_pkg_apis_meta_v1_status.py} (59%) create mode 100644 test/test_k8s_io_apimachinery_pkg_apis_meta_v1_status_cause.py create mode 100644 test/test_k8s_io_apimachinery_pkg_apis_meta_v1_status_details.py rename test/{test_v1_status_cause.py => test_k8s_io_apimachinery_pkg_apis_meta_v1_time.py} (58%) create mode 100644 test/test_k8s_io_apimachinery_pkg_apis_meta_v1_watch_event.py create mode 100644 test/test_k8s_io_apimachinery_pkg_runtime_raw_extension.py create mode 100644 test/test_k8s_io_apimachinery_pkg_util_intstr_int_or_string.py delete mode 100644 test/test_v1_api_group.py delete mode 100644 test/test_v1_api_group_list.py delete mode 100644 test/test_v1_api_resource_list.py delete mode 100644 test/test_v1_delete_options.py delete mode 100644 test/test_v1_duration.py delete mode 100644 test/test_v1_fields_v1.py delete mode 100644 test/test_v1_group_version_for_discovery.py delete mode 100644 test/test_v1_http_get_action.py delete mode 100644 test/test_v1_http_header.py delete mode 100644 test/test_v1_label_selector_requirement.py delete mode 100644 test/test_v1_list_meta.py delete mode 100644 test/test_v1_local_object_reference.py delete mode 100644 test/test_v1_managed_fields_entry.py delete mode 100644 test/test_v1_node_selector_term.py delete mode 100644 test/test_v1_object_meta.py delete mode 100644 test/test_v1_owner_reference.py delete mode 100644 test/test_v1_patch.py delete mode 100644 test/test_v1_persistent_volume_claim.py delete mode 100644 test/test_v1_persistent_volume_claim_condition.py delete mode 100644 test/test_v1_persistent_volume_claim_spec.py delete mode 100644 test/test_v1_persistent_volume_claim_status.py delete mode 100644 test/test_v1_pod_affinity_term.py delete mode 100644 test/test_v1_pod_anti_affinity.py delete mode 100644 test/test_v1_pod_dns_config.py delete mode 100644 test/test_v1_pod_dns_config_option.py delete mode 100644 test/test_v1_preconditions.py delete mode 100644 test/test_v1_preferred_scheduling_term.py delete mode 100644 test/test_v1_root_paths.py delete mode 100644 test/test_v1_server_address_by_client_cidr.py delete mode 100644 test/test_v1_status.py delete mode 100644 test/test_v1_tcp_socket_action.py delete mode 100644 test/test_v1_time.py delete mode 100644 test/test_v1_toleration.py delete mode 100644 test/test_v1_typed_local_object_reference.py delete mode 100644 test/test_v1_watch_event.py delete mode 100644 test/test_v1_weighted_pod_affinity_term.py diff --git a/README.md b/README.md index 3d301f35..7f2f8373 100644 --- a/README.md +++ b/README.md @@ -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: v0.33.0-rc.0-100-g87b59b40 +- Package version: v0.33.0-rc.0-112-g2152ea2e - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -187,14 +187,56 @@ Class | Method | HTTP request | Description ## Documentation For Models - - [IntstrIntOrString](docs/IntstrIntOrString.md) - - [ResourceQuantity](docs/ResourceQuantity.md) - - [RuntimeRawExtension](docs/RuntimeRawExtension.md) - - [V1APIGroup](docs/V1APIGroup.md) - - [V1APIGroupList](docs/V1APIGroupList.md) - - [V1APIResource](docs/V1APIResource.md) - - [V1APIResourceList](docs/V1APIResourceList.md) - - [V1Affinity](docs/V1Affinity.md) + - [K8sIoApiCoreV1Affinity](docs/K8sIoApiCoreV1Affinity.md) + - [K8sIoApiCoreV1HTTPGetAction](docs/K8sIoApiCoreV1HTTPGetAction.md) + - [K8sIoApiCoreV1HTTPHeader](docs/K8sIoApiCoreV1HTTPHeader.md) + - [K8sIoApiCoreV1LocalObjectReference](docs/K8sIoApiCoreV1LocalObjectReference.md) + - [K8sIoApiCoreV1NodeAffinity](docs/K8sIoApiCoreV1NodeAffinity.md) + - [K8sIoApiCoreV1NodeSelector](docs/K8sIoApiCoreV1NodeSelector.md) + - [K8sIoApiCoreV1NodeSelectorRequirement](docs/K8sIoApiCoreV1NodeSelectorRequirement.md) + - [K8sIoApiCoreV1NodeSelectorTerm](docs/K8sIoApiCoreV1NodeSelectorTerm.md) + - [K8sIoApiCoreV1PersistentVolumeClaim](docs/K8sIoApiCoreV1PersistentVolumeClaim.md) + - [K8sIoApiCoreV1PersistentVolumeClaimCondition](docs/K8sIoApiCoreV1PersistentVolumeClaimCondition.md) + - [K8sIoApiCoreV1PersistentVolumeClaimSpec](docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md) + - [K8sIoApiCoreV1PersistentVolumeClaimStatus](docs/K8sIoApiCoreV1PersistentVolumeClaimStatus.md) + - [K8sIoApiCoreV1PersistentVolumeClaimVolumeSource](docs/K8sIoApiCoreV1PersistentVolumeClaimVolumeSource.md) + - [K8sIoApiCoreV1PodAffinity](docs/K8sIoApiCoreV1PodAffinity.md) + - [K8sIoApiCoreV1PodAffinityTerm](docs/K8sIoApiCoreV1PodAffinityTerm.md) + - [K8sIoApiCoreV1PodAntiAffinity](docs/K8sIoApiCoreV1PodAntiAffinity.md) + - [K8sIoApiCoreV1PodDNSConfig](docs/K8sIoApiCoreV1PodDNSConfig.md) + - [K8sIoApiCoreV1PodDNSConfigOption](docs/K8sIoApiCoreV1PodDNSConfigOption.md) + - [K8sIoApiCoreV1PreferredSchedulingTerm](docs/K8sIoApiCoreV1PreferredSchedulingTerm.md) + - [K8sIoApiCoreV1ResourceRequirements](docs/K8sIoApiCoreV1ResourceRequirements.md) + - [K8sIoApiCoreV1TCPSocketAction](docs/K8sIoApiCoreV1TCPSocketAction.md) + - [K8sIoApiCoreV1Toleration](docs/K8sIoApiCoreV1Toleration.md) + - [K8sIoApiCoreV1TypedLocalObjectReference](docs/K8sIoApiCoreV1TypedLocalObjectReference.md) + - [K8sIoApiCoreV1WeightedPodAffinityTerm](docs/K8sIoApiCoreV1WeightedPodAffinityTerm.md) + - [K8sIoApimachineryPkgApiResourceQuantity](docs/K8sIoApimachineryPkgApiResourceQuantity.md) + - [K8sIoApimachineryPkgApisMetaV1APIGroup](docs/K8sIoApimachineryPkgApisMetaV1APIGroup.md) + - [K8sIoApimachineryPkgApisMetaV1APIGroupList](docs/K8sIoApimachineryPkgApisMetaV1APIGroupList.md) + - [K8sIoApimachineryPkgApisMetaV1APIResource](docs/K8sIoApimachineryPkgApisMetaV1APIResource.md) + - [K8sIoApimachineryPkgApisMetaV1APIResourceList](docs/K8sIoApimachineryPkgApisMetaV1APIResourceList.md) + - [K8sIoApimachineryPkgApisMetaV1DeleteOptions](docs/K8sIoApimachineryPkgApisMetaV1DeleteOptions.md) + - [K8sIoApimachineryPkgApisMetaV1Duration](docs/K8sIoApimachineryPkgApisMetaV1Duration.md) + - [K8sIoApimachineryPkgApisMetaV1FieldsV1](docs/K8sIoApimachineryPkgApisMetaV1FieldsV1.md) + - [K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery](docs/K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery.md) + - [K8sIoApimachineryPkgApisMetaV1LabelSelector](docs/K8sIoApimachineryPkgApisMetaV1LabelSelector.md) + - [K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement](docs/K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement.md) + - [K8sIoApimachineryPkgApisMetaV1ListMeta](docs/K8sIoApimachineryPkgApisMetaV1ListMeta.md) + - [K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry](docs/K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry.md) + - [K8sIoApimachineryPkgApisMetaV1ObjectMeta](docs/K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) + - [K8sIoApimachineryPkgApisMetaV1OwnerReference](docs/K8sIoApimachineryPkgApisMetaV1OwnerReference.md) + - [K8sIoApimachineryPkgApisMetaV1Patch](docs/K8sIoApimachineryPkgApisMetaV1Patch.md) + - [K8sIoApimachineryPkgApisMetaV1Preconditions](docs/K8sIoApimachineryPkgApisMetaV1Preconditions.md) + - [K8sIoApimachineryPkgApisMetaV1RootPaths](docs/K8sIoApimachineryPkgApisMetaV1RootPaths.md) + - [K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR](docs/K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR.md) + - [K8sIoApimachineryPkgApisMetaV1Status](docs/K8sIoApimachineryPkgApisMetaV1Status.md) + - [K8sIoApimachineryPkgApisMetaV1StatusCause](docs/K8sIoApimachineryPkgApisMetaV1StatusCause.md) + - [K8sIoApimachineryPkgApisMetaV1StatusDetails](docs/K8sIoApimachineryPkgApisMetaV1StatusDetails.md) + - [K8sIoApimachineryPkgApisMetaV1Time](docs/K8sIoApimachineryPkgApisMetaV1Time.md) + - [K8sIoApimachineryPkgApisMetaV1WatchEvent](docs/K8sIoApimachineryPkgApisMetaV1WatchEvent.md) + - [K8sIoApimachineryPkgRuntimeRawExtension](docs/K8sIoApimachineryPkgRuntimeRawExtension.md) + - [K8sIoApimachineryPkgUtilIntstrIntOrString](docs/K8sIoApimachineryPkgUtilIntstrIntOrString.md) - [V1BIOS](docs/V1BIOS.md) - [V1Bootloader](docs/V1Bootloader.md) - [V1CDRomTarget](docs/V1CDRomTarget.md) @@ -212,13 +254,11 @@ Class | Method | HTTP request | Description - [V1DHCPOptions](docs/V1DHCPOptions.md) - [V1DHCPPrivateOptions](docs/V1DHCPPrivateOptions.md) - [V1DataVolumeSource](docs/V1DataVolumeSource.md) - - [V1DeleteOptions](docs/V1DeleteOptions.md) - [V1DeveloperConfiguration](docs/V1DeveloperConfiguration.md) - [V1Devices](docs/V1Devices.md) - [V1Disk](docs/V1Disk.md) - [V1DiskTarget](docs/V1DiskTarget.md) - [V1DomainSpec](docs/V1DomainSpec.md) - - [V1Duration](docs/V1Duration.md) - [V1EFI](docs/V1EFI.md) - [V1EmptyDiskSource](docs/V1EmptyDiskSource.md) - [V1EphemeralVolumeSource](docs/V1EphemeralVolumeSource.md) @@ -228,14 +268,10 @@ Class | Method | HTTP request | Description - [V1FeatureState](docs/V1FeatureState.md) - [V1FeatureVendorID](docs/V1FeatureVendorID.md) - [V1Features](docs/V1Features.md) - - [V1FieldsV1](docs/V1FieldsV1.md) - [V1Firmware](docs/V1Firmware.md) - [V1FloppyTarget](docs/V1FloppyTarget.md) - [V1GPU](docs/V1GPU.md) - - [V1GroupVersionForDiscovery](docs/V1GroupVersionForDiscovery.md) - [V1HPETTimer](docs/V1HPETTimer.md) - - [V1HTTPGetAction](docs/V1HTTPGetAction.md) - - [V1HTTPHeader](docs/V1HTTPHeader.md) - [V1HostDisk](docs/V1HostDisk.md) - [V1Hugepages](docs/V1Hugepages.md) - [V1HypervTimer](docs/V1HypervTimer.md) @@ -255,58 +291,25 @@ Class | Method | HTTP request | Description - [V1KubeVirtSelfSignConfiguration](docs/V1KubeVirtSelfSignConfiguration.md) - [V1KubeVirtSpec](docs/V1KubeVirtSpec.md) - [V1KubeVirtStatus](docs/V1KubeVirtStatus.md) - - [V1LabelSelector](docs/V1LabelSelector.md) - - [V1LabelSelectorRequirement](docs/V1LabelSelectorRequirement.md) - - [V1ListMeta](docs/V1ListMeta.md) - - [V1LocalObjectReference](docs/V1LocalObjectReference.md) - [V1LunTarget](docs/V1LunTarget.md) - [V1Machine](docs/V1Machine.md) - - [V1ManagedFieldsEntry](docs/V1ManagedFieldsEntry.md) - [V1Memory](docs/V1Memory.md) - [V1MigrationConfiguration](docs/V1MigrationConfiguration.md) - [V1MultusNetwork](docs/V1MultusNetwork.md) - [V1Network](docs/V1Network.md) - [V1NetworkConfiguration](docs/V1NetworkConfiguration.md) - - [V1NodeAffinity](docs/V1NodeAffinity.md) - - [V1NodeSelector](docs/V1NodeSelector.md) - - [V1NodeSelectorRequirement](docs/V1NodeSelectorRequirement.md) - - [V1NodeSelectorTerm](docs/V1NodeSelectorTerm.md) - - [V1ObjectMeta](docs/V1ObjectMeta.md) - - [V1OwnerReference](docs/V1OwnerReference.md) - [V1PITTimer](docs/V1PITTimer.md) - - [V1Patch](docs/V1Patch.md) - - [V1PersistentVolumeClaim](docs/V1PersistentVolumeClaim.md) - - [V1PersistentVolumeClaimCondition](docs/V1PersistentVolumeClaimCondition.md) - - [V1PersistentVolumeClaimSpec](docs/V1PersistentVolumeClaimSpec.md) - - [V1PersistentVolumeClaimStatus](docs/V1PersistentVolumeClaimStatus.md) - - [V1PersistentVolumeClaimVolumeSource](docs/V1PersistentVolumeClaimVolumeSource.md) - - [V1PodAffinity](docs/V1PodAffinity.md) - - [V1PodAffinityTerm](docs/V1PodAffinityTerm.md) - - [V1PodAntiAffinity](docs/V1PodAntiAffinity.md) - - [V1PodDNSConfig](docs/V1PodDNSConfig.md) - - [V1PodDNSConfigOption](docs/V1PodDNSConfigOption.md) - [V1PodNetwork](docs/V1PodNetwork.md) - [V1Port](docs/V1Port.md) - - [V1Preconditions](docs/V1Preconditions.md) - - [V1PreferredSchedulingTerm](docs/V1PreferredSchedulingTerm.md) - [V1Probe](docs/V1Probe.md) - [V1RTCTimer](docs/V1RTCTimer.md) - [V1ResourceRequirements](docs/V1ResourceRequirements.md) - [V1RestartOptions](docs/V1RestartOptions.md) - [V1Rng](docs/V1Rng.md) - - [V1RootPaths](docs/V1RootPaths.md) - [V1SMBiosConfiguration](docs/V1SMBiosConfiguration.md) - [V1SecretVolumeSource](docs/V1SecretVolumeSource.md) - - [V1ServerAddressByClientCIDR](docs/V1ServerAddressByClientCIDR.md) - [V1ServiceAccountVolumeSource](docs/V1ServiceAccountVolumeSource.md) - - [V1Status](docs/V1Status.md) - - [V1StatusCause](docs/V1StatusCause.md) - - [V1StatusDetails](docs/V1StatusDetails.md) - - [V1TCPSocketAction](docs/V1TCPSocketAction.md) - - [V1Time](docs/V1Time.md) - [V1Timer](docs/V1Timer.md) - - [V1Toleration](docs/V1Toleration.md) - - [V1TypedLocalObjectReference](docs/V1TypedLocalObjectReference.md) - [V1VirtualMachine](docs/V1VirtualMachine.md) - [V1VirtualMachineCondition](docs/V1VirtualMachineCondition.md) - [V1VirtualMachineInstance](docs/V1VirtualMachineInstance.md) @@ -342,9 +345,7 @@ Class | Method | HTTP request | Description - [V1VirtualMachineStateChangeRequest](docs/V1VirtualMachineStateChangeRequest.md) - [V1VirtualMachineStatus](docs/V1VirtualMachineStatus.md) - [V1Volume](docs/V1Volume.md) - - [V1WatchEvent](docs/V1WatchEvent.md) - [V1Watchdog](docs/V1Watchdog.md) - - [V1WeightedPodAffinityTerm](docs/V1WeightedPodAffinityTerm.md) - [V1alpha1Condition](docs/V1alpha1Condition.md) - [V1alpha1DataVolume](docs/V1alpha1DataVolume.md) - [V1alpha1DataVolumeBlankImage](docs/V1alpha1DataVolumeBlankImage.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index f067dc3e..6f90dd79 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -654,7 +654,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_kube_virt** -> V1Status delete_collection_namespaced_kube_virt(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_kube_virt(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -701,7 +701,7 @@ Name | Type | Description | Notes ### Return type -[**V1Status**](V1Status.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization @@ -715,7 +715,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_virtual_machine** -> V1Status delete_collection_namespaced_virtual_machine(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -762,7 +762,7 @@ Name | Type | Description | Notes ### Return type -[**V1Status**](V1Status.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization @@ -776,7 +776,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_virtual_machine_instance** -> V1Status delete_collection_namespaced_virtual_machine_instance(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_instance(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -823,7 +823,7 @@ Name | Type | Description | Notes ### Return type -[**V1Status**](V1Status.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization @@ -837,7 +837,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_virtual_machine_instance_migration** -> V1Status delete_collection_namespaced_virtual_machine_instance_migration(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_instance_migration(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -884,7 +884,7 @@ Name | Type | Description | Notes ### Return type -[**V1Status**](V1Status.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization @@ -898,7 +898,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_virtual_machine_instance_preset** -> V1Status delete_collection_namespaced_virtual_machine_instance_preset(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_instance_preset(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -945,7 +945,7 @@ Name | Type | Description | Notes ### Return type -[**V1Status**](V1Status.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization @@ -959,7 +959,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_virtual_machine_instance_replica_set** -> V1Status delete_collection_namespaced_virtual_machine_instance_replica_set(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_instance_replica_set(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -1006,7 +1006,7 @@ Name | Type | Description | Notes ### Return type -[**V1Status**](V1Status.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization @@ -1020,7 +1020,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_virtual_machine_restore** -> V1Status delete_collection_namespaced_virtual_machine_restore(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_restore(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -1067,7 +1067,7 @@ Name | Type | Description | Notes ### Return type -[**V1Status**](V1Status.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization @@ -1081,7 +1081,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_virtual_machine_snapshot** -> V1Status delete_collection_namespaced_virtual_machine_snapshot(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_snapshot(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -1128,7 +1128,7 @@ Name | Type | Description | Notes ### Return type -[**V1Status**](V1Status.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization @@ -1142,7 +1142,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_virtual_machine_snapshot_content** -> V1Status delete_collection_namespaced_virtual_machine_snapshot_content(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_snapshot_content(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -1189,7 +1189,7 @@ Name | Type | Description | Notes ### Return type -[**V1Status**](V1Status.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization @@ -1203,7 +1203,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_kube_virt** -> V1Status delete_namespaced_kube_virt(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_kube_virt(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -1221,7 +1221,7 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1DeleteOptions() # V1DeleteOptions | +body = kubevirt.K8sIoApimachineryPkgApisMetaV1DeleteOptions() # K8sIoApimachineryPkgApisMetaV1DeleteOptions | grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) @@ -1239,14 +1239,14 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **body** | [**K8sIoApimachineryPkgApisMetaV1DeleteOptions**](K8sIoApimachineryPkgApisMetaV1DeleteOptions.md)| | **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization @@ -1260,7 +1260,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_virtual_machine** -> V1Status delete_namespaced_virtual_machine(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -1278,7 +1278,7 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1DeleteOptions() # V1DeleteOptions | +body = kubevirt.K8sIoApimachineryPkgApisMetaV1DeleteOptions() # K8sIoApimachineryPkgApisMetaV1DeleteOptions | grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) @@ -1296,14 +1296,14 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **body** | [**K8sIoApimachineryPkgApisMetaV1DeleteOptions**](K8sIoApimachineryPkgApisMetaV1DeleteOptions.md)| | **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization @@ -1317,7 +1317,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_virtual_machine_instance** -> V1Status delete_namespaced_virtual_machine_instance(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_instance(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -1335,7 +1335,7 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1DeleteOptions() # V1DeleteOptions | +body = kubevirt.K8sIoApimachineryPkgApisMetaV1DeleteOptions() # K8sIoApimachineryPkgApisMetaV1DeleteOptions | grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) @@ -1353,14 +1353,14 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **body** | [**K8sIoApimachineryPkgApisMetaV1DeleteOptions**](K8sIoApimachineryPkgApisMetaV1DeleteOptions.md)| | **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization @@ -1374,7 +1374,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_virtual_machine_instance_migration** -> V1Status delete_namespaced_virtual_machine_instance_migration(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_instance_migration(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -1392,7 +1392,7 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1DeleteOptions() # V1DeleteOptions | +body = kubevirt.K8sIoApimachineryPkgApisMetaV1DeleteOptions() # K8sIoApimachineryPkgApisMetaV1DeleteOptions | grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) @@ -1410,14 +1410,14 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **body** | [**K8sIoApimachineryPkgApisMetaV1DeleteOptions**](K8sIoApimachineryPkgApisMetaV1DeleteOptions.md)| | **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization @@ -1431,7 +1431,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_virtual_machine_instance_preset** -> V1Status delete_namespaced_virtual_machine_instance_preset(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_instance_preset(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -1449,7 +1449,7 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1DeleteOptions() # V1DeleteOptions | +body = kubevirt.K8sIoApimachineryPkgApisMetaV1DeleteOptions() # K8sIoApimachineryPkgApisMetaV1DeleteOptions | grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) @@ -1467,14 +1467,14 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **body** | [**K8sIoApimachineryPkgApisMetaV1DeleteOptions**](K8sIoApimachineryPkgApisMetaV1DeleteOptions.md)| | **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization @@ -1488,7 +1488,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_virtual_machine_instance_replica_set** -> V1Status delete_namespaced_virtual_machine_instance_replica_set(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_instance_replica_set(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -1506,7 +1506,7 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1DeleteOptions() # V1DeleteOptions | +body = kubevirt.K8sIoApimachineryPkgApisMetaV1DeleteOptions() # K8sIoApimachineryPkgApisMetaV1DeleteOptions | grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) @@ -1524,14 +1524,14 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **body** | [**K8sIoApimachineryPkgApisMetaV1DeleteOptions**](K8sIoApimachineryPkgApisMetaV1DeleteOptions.md)| | **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization @@ -1545,7 +1545,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_virtual_machine_restore** -> V1Status delete_namespaced_virtual_machine_restore(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_restore(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -1563,7 +1563,7 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1DeleteOptions() # V1DeleteOptions | +body = kubevirt.K8sIoApimachineryPkgApisMetaV1DeleteOptions() # K8sIoApimachineryPkgApisMetaV1DeleteOptions | grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) @@ -1581,14 +1581,14 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **body** | [**K8sIoApimachineryPkgApisMetaV1DeleteOptions**](K8sIoApimachineryPkgApisMetaV1DeleteOptions.md)| | **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization @@ -1602,7 +1602,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_virtual_machine_snapshot** -> V1Status delete_namespaced_virtual_machine_snapshot(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_snapshot(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -1620,7 +1620,7 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1DeleteOptions() # V1DeleteOptions | +body = kubevirt.K8sIoApimachineryPkgApisMetaV1DeleteOptions() # K8sIoApimachineryPkgApisMetaV1DeleteOptions | grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) @@ -1638,14 +1638,14 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **body** | [**K8sIoApimachineryPkgApisMetaV1DeleteOptions**](K8sIoApimachineryPkgApisMetaV1DeleteOptions.md)| | **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization @@ -1659,7 +1659,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_virtual_machine_snapshot_content** -> V1Status delete_namespaced_virtual_machine_snapshot_content(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_snapshot_content(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -1677,7 +1677,7 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1DeleteOptions() # V1DeleteOptions | +body = kubevirt.K8sIoApimachineryPkgApisMetaV1DeleteOptions() # K8sIoApimachineryPkgApisMetaV1DeleteOptions | grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) @@ -1695,14 +1695,14 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **body** | [**K8sIoApimachineryPkgApisMetaV1DeleteOptions**](K8sIoApimachineryPkgApisMetaV1DeleteOptions.md)| | **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization @@ -1841,7 +1841,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_group_kubevirt_io** -> V1APIGroup get_api_group_kubevirt_io() +> K8sIoApimachineryPkgApisMetaV1APIGroup get_api_group_kubevirt_io() @@ -1870,7 +1870,7 @@ This endpoint does not need any parameter. ### Return type -[**V1APIGroup**](V1APIGroup.md) +[**K8sIoApimachineryPkgApisMetaV1APIGroup**](K8sIoApimachineryPkgApisMetaV1APIGroup.md) ### Authorization @@ -1884,7 +1884,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_group_list** -> V1APIGroupList get_api_group_list() +> K8sIoApimachineryPkgApisMetaV1APIGroupList get_api_group_list() @@ -1913,7 +1913,7 @@ This endpoint does not need any parameter. ### Return type -[**V1APIGroupList**](V1APIGroupList.md) +[**K8sIoApimachineryPkgApisMetaV1APIGroupList**](K8sIoApimachineryPkgApisMetaV1APIGroupList.md) ### Authorization @@ -1927,7 +1927,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_group_snapshot_kubevirt_io** -> V1APIGroup get_api_group_snapshot_kubevirt_io() +> K8sIoApimachineryPkgApisMetaV1APIGroup get_api_group_snapshot_kubevirt_io() @@ -1956,7 +1956,7 @@ This endpoint does not need any parameter. ### Return type -[**V1APIGroup**](V1APIGroup.md) +[**K8sIoApimachineryPkgApisMetaV1APIGroup**](K8sIoApimachineryPkgApisMetaV1APIGroup.md) ### Authorization @@ -1970,7 +1970,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources_kubevirt_io_v1alpha3** -> V1APIResourceList get_api_resources_kubevirt_io_v1alpha3() +> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_kubevirt_io_v1alpha3() @@ -1999,7 +1999,7 @@ This endpoint does not need any parameter. ### Return type -[**V1APIResourceList**](V1APIResourceList.md) +[**K8sIoApimachineryPkgApisMetaV1APIResourceList**](K8sIoApimachineryPkgApisMetaV1APIResourceList.md) ### Authorization @@ -2013,7 +2013,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources_snapshot_kubevirt_io_v1alpha1** -> V1APIResourceList get_api_resources_snapshot_kubevirt_io_v1alpha1() +> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_snapshot_kubevirt_io_v1alpha1() @@ -2042,7 +2042,7 @@ This endpoint does not need any parameter. ### Return type -[**V1APIResourceList**](V1APIResourceList.md) +[**K8sIoApimachineryPkgApisMetaV1APIResourceList**](K8sIoApimachineryPkgApisMetaV1APIResourceList.md) ### Authorization @@ -2056,7 +2056,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_sub_resources** -> V1APIResourceList get_api_sub_resources() +> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_sub_resources() @@ -2085,7 +2085,7 @@ This endpoint does not need any parameter. ### Return type -[**V1APIResourceList**](V1APIResourceList.md) +[**K8sIoApimachineryPkgApisMetaV1APIResourceList**](K8sIoApimachineryPkgApisMetaV1APIResourceList.md) ### Authorization @@ -2099,7 +2099,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_root_paths** -> V1RootPaths get_root_paths() +> K8sIoApimachineryPkgApisMetaV1RootPaths get_root_paths() @@ -2128,7 +2128,7 @@ This endpoint does not need any parameter. ### Return type -[**V1RootPaths**](V1RootPaths.md) +[**K8sIoApimachineryPkgApisMetaV1RootPaths**](K8sIoApimachineryPkgApisMetaV1RootPaths.md) ### Authorization @@ -2142,7 +2142,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_sub_api_group** -> V1APIGroup get_sub_api_group() +> K8sIoApimachineryPkgApisMetaV1APIGroup get_sub_api_group() @@ -2171,7 +2171,7 @@ This endpoint does not need any parameter. ### Return type -[**V1APIGroup**](V1APIGroup.md) +[**K8sIoApimachineryPkgApisMetaV1APIGroup**](K8sIoApimachineryPkgApisMetaV1APIGroup.md) ### Authorization @@ -3417,7 +3417,7 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1Patch() # V1Patch | +body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | try: api_response = api_instance.patch_namespaced_kube_virt(name, namespace, body) @@ -3432,7 +3432,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | [**K8sIoApimachineryPkgApisMetaV1Patch**](K8sIoApimachineryPkgApisMetaV1Patch.md)| | ### Return type @@ -3468,7 +3468,7 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1Patch() # V1Patch | +body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | try: api_response = api_instance.patch_namespaced_virtual_machine(name, namespace, body) @@ -3483,7 +3483,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | [**K8sIoApimachineryPkgApisMetaV1Patch**](K8sIoApimachineryPkgApisMetaV1Patch.md)| | ### Return type @@ -3519,7 +3519,7 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1Patch() # V1Patch | +body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | try: api_response = api_instance.patch_namespaced_virtual_machine_instance(name, namespace, body) @@ -3534,7 +3534,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | [**K8sIoApimachineryPkgApisMetaV1Patch**](K8sIoApimachineryPkgApisMetaV1Patch.md)| | ### Return type @@ -3570,7 +3570,7 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1Patch() # V1Patch | +body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | try: api_response = api_instance.patch_namespaced_virtual_machine_instance_migration(name, namespace, body) @@ -3585,7 +3585,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | [**K8sIoApimachineryPkgApisMetaV1Patch**](K8sIoApimachineryPkgApisMetaV1Patch.md)| | ### Return type @@ -3621,7 +3621,7 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1Patch() # V1Patch | +body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | try: api_response = api_instance.patch_namespaced_virtual_machine_instance_preset(name, namespace, body) @@ -3636,7 +3636,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | [**K8sIoApimachineryPkgApisMetaV1Patch**](K8sIoApimachineryPkgApisMetaV1Patch.md)| | ### Return type @@ -3672,7 +3672,7 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1Patch() # V1Patch | +body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | try: api_response = api_instance.patch_namespaced_virtual_machine_instance_replica_set(name, namespace, body) @@ -3687,7 +3687,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | [**K8sIoApimachineryPkgApisMetaV1Patch**](K8sIoApimachineryPkgApisMetaV1Patch.md)| | ### Return type @@ -3723,7 +3723,7 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1Patch() # V1Patch | +body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | try: api_response = api_instance.patch_namespaced_virtual_machine_restore(name, namespace, body) @@ -3738,7 +3738,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | [**K8sIoApimachineryPkgApisMetaV1Patch**](K8sIoApimachineryPkgApisMetaV1Patch.md)| | ### Return type @@ -3774,7 +3774,7 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1Patch() # V1Patch | +body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | try: api_response = api_instance.patch_namespaced_virtual_machine_snapshot(name, namespace, body) @@ -3789,7 +3789,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | [**K8sIoApimachineryPkgApisMetaV1Patch**](K8sIoApimachineryPkgApisMetaV1Patch.md)| | ### Return type @@ -3825,7 +3825,7 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1Patch() # V1Patch | +body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | try: api_response = api_instance.patch_namespaced_virtual_machine_snapshot_content(name, namespace, body) @@ -3840,7 +3840,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | [**K8sIoApimachineryPkgApisMetaV1Patch**](K8sIoApimachineryPkgApisMetaV1Patch.md)| | ### Return type @@ -5269,7 +5269,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **watch_kube_virt_list_for_all_namespaces** -> V1WatchEvent watch_kube_virt_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_kube_virt_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -5316,7 +5316,7 @@ Name | Type | Description | Notes ### Return type -[**V1WatchEvent**](V1WatchEvent.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization @@ -5330,7 +5330,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **watch_namespaced_kube_virt** -> V1WatchEvent watch_namespaced_kube_virt(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_kube_virt(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -5379,7 +5379,7 @@ Name | Type | Description | Notes ### Return type -[**V1WatchEvent**](V1WatchEvent.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization @@ -5393,7 +5393,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **watch_namespaced_virtual_machine** -> V1WatchEvent watch_namespaced_virtual_machine(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -5442,7 +5442,7 @@ Name | Type | Description | Notes ### Return type -[**V1WatchEvent**](V1WatchEvent.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization @@ -5456,7 +5456,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **watch_namespaced_virtual_machine_instance** -> V1WatchEvent watch_namespaced_virtual_machine_instance(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_instance(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -5505,7 +5505,7 @@ Name | Type | Description | Notes ### Return type -[**V1WatchEvent**](V1WatchEvent.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization @@ -5519,7 +5519,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **watch_namespaced_virtual_machine_instance_migration** -> V1WatchEvent watch_namespaced_virtual_machine_instance_migration(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_instance_migration(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -5568,7 +5568,7 @@ Name | Type | Description | Notes ### Return type -[**V1WatchEvent**](V1WatchEvent.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization @@ -5582,7 +5582,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **watch_namespaced_virtual_machine_instance_preset** -> V1WatchEvent watch_namespaced_virtual_machine_instance_preset(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_instance_preset(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -5631,7 +5631,7 @@ Name | Type | Description | Notes ### Return type -[**V1WatchEvent**](V1WatchEvent.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization @@ -5645,7 +5645,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **watch_namespaced_virtual_machine_instance_replica_set** -> V1WatchEvent watch_namespaced_virtual_machine_instance_replica_set(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_instance_replica_set(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -5694,7 +5694,7 @@ Name | Type | Description | Notes ### Return type -[**V1WatchEvent**](V1WatchEvent.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization @@ -5708,7 +5708,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **watch_namespaced_virtual_machine_restore** -> V1WatchEvent watch_namespaced_virtual_machine_restore(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_restore(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -5757,7 +5757,7 @@ Name | Type | Description | Notes ### Return type -[**V1WatchEvent**](V1WatchEvent.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization @@ -5771,7 +5771,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **watch_namespaced_virtual_machine_snapshot** -> V1WatchEvent watch_namespaced_virtual_machine_snapshot(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_snapshot(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -5820,7 +5820,7 @@ Name | Type | Description | Notes ### Return type -[**V1WatchEvent**](V1WatchEvent.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization @@ -5834,7 +5834,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **watch_namespaced_virtual_machine_snapshot_content** -> V1WatchEvent watch_namespaced_virtual_machine_snapshot_content(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_snapshot_content(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -5883,7 +5883,7 @@ Name | Type | Description | Notes ### Return type -[**V1WatchEvent**](V1WatchEvent.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization @@ -5897,7 +5897,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **watch_virtual_machine_instance_list_for_all_namespaces** -> V1WatchEvent watch_virtual_machine_instance_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_instance_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -5944,7 +5944,7 @@ Name | Type | Description | Notes ### Return type -[**V1WatchEvent**](V1WatchEvent.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization @@ -5958,7 +5958,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **watch_virtual_machine_instance_migration_list_for_all_namespaces** -> V1WatchEvent watch_virtual_machine_instance_migration_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_instance_migration_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -6005,7 +6005,7 @@ Name | Type | Description | Notes ### Return type -[**V1WatchEvent**](V1WatchEvent.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization @@ -6019,7 +6019,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **watch_virtual_machine_instance_preset_list_for_all_namespaces** -> V1WatchEvent watch_virtual_machine_instance_preset_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_instance_preset_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -6066,7 +6066,7 @@ Name | Type | Description | Notes ### Return type -[**V1WatchEvent**](V1WatchEvent.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization @@ -6080,7 +6080,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **watch_virtual_machine_instance_replica_set_list_for_all_namespaces** -> V1WatchEvent watch_virtual_machine_instance_replica_set_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_instance_replica_set_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -6127,7 +6127,7 @@ Name | Type | Description | Notes ### Return type -[**V1WatchEvent**](V1WatchEvent.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization @@ -6141,7 +6141,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **watch_virtual_machine_list_for_all_namespaces** -> V1WatchEvent watch_virtual_machine_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -6188,7 +6188,7 @@ Name | Type | Description | Notes ### Return type -[**V1WatchEvent**](V1WatchEvent.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization @@ -6202,7 +6202,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **watch_virtual_machine_restore_list_for_all_namespaces** -> V1WatchEvent watch_virtual_machine_restore_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_restore_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -6249,7 +6249,7 @@ Name | Type | Description | Notes ### Return type -[**V1WatchEvent**](V1WatchEvent.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization @@ -6263,7 +6263,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **watch_virtual_machine_snapshot_content_list_for_all_namespaces** -> V1WatchEvent watch_virtual_machine_snapshot_content_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_snapshot_content_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -6310,7 +6310,7 @@ Name | Type | Description | Notes ### Return type -[**V1WatchEvent**](V1WatchEvent.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization @@ -6324,7 +6324,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **watch_virtual_machine_snapshot_list_for_all_namespaces** -> V1WatchEvent watch_virtual_machine_snapshot_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_snapshot_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -6371,7 +6371,7 @@ Name | Type | Description | Notes ### Return type -[**V1WatchEvent**](V1WatchEvent.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization diff --git a/docs/K8sIoApiCoreV1Affinity.md b/docs/K8sIoApiCoreV1Affinity.md new file mode 100644 index 00000000..5d94b9f4 --- /dev/null +++ b/docs/K8sIoApiCoreV1Affinity.md @@ -0,0 +1,12 @@ +# K8sIoApiCoreV1Affinity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**node_affinity** | [**K8sIoApiCoreV1NodeAffinity**](K8sIoApiCoreV1NodeAffinity.md) | Describes node affinity scheduling rules for the pod. | [optional] +**pod_affinity** | [**K8sIoApiCoreV1PodAffinity**](K8sIoApiCoreV1PodAffinity.md) | Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). | [optional] +**pod_anti_affinity** | [**K8sIoApiCoreV1PodAntiAffinity**](K8sIoApiCoreV1PodAntiAffinity.md) | Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1HTTPGetAction.md b/docs/K8sIoApiCoreV1HTTPGetAction.md similarity index 74% rename from docs/V1HTTPGetAction.md rename to docs/K8sIoApiCoreV1HTTPGetAction.md index 6449a3c5..82896980 100644 --- a/docs/V1HTTPGetAction.md +++ b/docs/K8sIoApiCoreV1HTTPGetAction.md @@ -1,10 +1,10 @@ -# V1HTTPGetAction +# K8sIoApiCoreV1HTTPGetAction ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **host** | **str** | Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. | [optional] -**http_headers** | [**list[V1HTTPHeader]**](V1HTTPHeader.md) | Custom headers to set in the request. HTTP allows repeated headers. | [optional] +**http_headers** | [**list[K8sIoApiCoreV1HTTPHeader]**](K8sIoApiCoreV1HTTPHeader.md) | Custom headers to set in the request. HTTP allows repeated headers. | [optional] **path** | **str** | Path to access on the HTTP server. | [optional] **scheme** | **str** | Scheme to use for connecting to the host. Defaults to HTTP. | [optional] diff --git a/docs/V1HTTPHeader.md b/docs/K8sIoApiCoreV1HTTPHeader.md similarity index 93% rename from docs/V1HTTPHeader.md rename to docs/K8sIoApiCoreV1HTTPHeader.md index 1950451f..62f040b5 100644 --- a/docs/V1HTTPHeader.md +++ b/docs/K8sIoApiCoreV1HTTPHeader.md @@ -1,4 +1,4 @@ -# V1HTTPHeader +# K8sIoApiCoreV1HTTPHeader ## Properties Name | Type | Description | Notes diff --git a/docs/V1LocalObjectReference.md b/docs/K8sIoApiCoreV1LocalObjectReference.md similarity index 91% rename from docs/V1LocalObjectReference.md rename to docs/K8sIoApiCoreV1LocalObjectReference.md index 0a5910af..dcc0ba8e 100644 --- a/docs/V1LocalObjectReference.md +++ b/docs/K8sIoApiCoreV1LocalObjectReference.md @@ -1,4 +1,4 @@ -# V1LocalObjectReference +# K8sIoApiCoreV1LocalObjectReference ## Properties Name | Type | Description | Notes diff --git a/docs/K8sIoApiCoreV1NodeAffinity.md b/docs/K8sIoApiCoreV1NodeAffinity.md new file mode 100644 index 00000000..1a68a235 --- /dev/null +++ b/docs/K8sIoApiCoreV1NodeAffinity.md @@ -0,0 +1,11 @@ +# K8sIoApiCoreV1NodeAffinity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferred_during_scheduling_ignored_during_execution** | [**list[K8sIoApiCoreV1PreferredSchedulingTerm]**](K8sIoApiCoreV1PreferredSchedulingTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. | [optional] +**required_during_scheduling_ignored_during_execution** | [**K8sIoApiCoreV1NodeSelector**](K8sIoApiCoreV1NodeSelector.md) | If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/K8sIoApiCoreV1NodeSelector.md b/docs/K8sIoApiCoreV1NodeSelector.md new file mode 100644 index 00000000..ec59cb77 --- /dev/null +++ b/docs/K8sIoApiCoreV1NodeSelector.md @@ -0,0 +1,10 @@ +# K8sIoApiCoreV1NodeSelector + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**node_selector_terms** | [**list[K8sIoApiCoreV1NodeSelectorTerm]**](K8sIoApiCoreV1NodeSelectorTerm.md) | Required. A list of node selector terms. The terms are ORed. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1NodeSelectorRequirement.md b/docs/K8sIoApiCoreV1NodeSelectorRequirement.md similarity index 95% rename from docs/V1NodeSelectorRequirement.md rename to docs/K8sIoApiCoreV1NodeSelectorRequirement.md index 0495e448..48be731c 100644 --- a/docs/V1NodeSelectorRequirement.md +++ b/docs/K8sIoApiCoreV1NodeSelectorRequirement.md @@ -1,4 +1,4 @@ -# V1NodeSelectorRequirement +# K8sIoApiCoreV1NodeSelectorRequirement ## Properties Name | Type | Description | Notes diff --git a/docs/K8sIoApiCoreV1NodeSelectorTerm.md b/docs/K8sIoApiCoreV1NodeSelectorTerm.md new file mode 100644 index 00000000..c0ed3943 --- /dev/null +++ b/docs/K8sIoApiCoreV1NodeSelectorTerm.md @@ -0,0 +1,11 @@ +# K8sIoApiCoreV1NodeSelectorTerm + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**match_expressions** | [**list[K8sIoApiCoreV1NodeSelectorRequirement]**](K8sIoApiCoreV1NodeSelectorRequirement.md) | A list of node selector requirements by node's labels. | [optional] +**match_fields** | [**list[K8sIoApiCoreV1NodeSelectorRequirement]**](K8sIoApiCoreV1NodeSelectorRequirement.md) | A list of node selector requirements by node's fields. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PersistentVolumeClaim.md b/docs/K8sIoApiCoreV1PersistentVolumeClaim.md similarity index 50% rename from docs/V1PersistentVolumeClaim.md rename to docs/K8sIoApiCoreV1PersistentVolumeClaim.md index bdfb3a9f..e0cf5f00 100644 --- a/docs/V1PersistentVolumeClaim.md +++ b/docs/K8sIoApiCoreV1PersistentVolumeClaim.md @@ -1,13 +1,13 @@ -# V1PersistentVolumeClaim +# K8sIoApiCoreV1PersistentVolumeClaim ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] -**spec** | [**V1PersistentVolumeClaimSpec**](V1PersistentVolumeClaimSpec.md) | Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] -**status** | [**V1PersistentVolumeClaimStatus**](V1PersistentVolumeClaimStatus.md) | Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**spec** | [**K8sIoApiCoreV1PersistentVolumeClaimSpec**](K8sIoApiCoreV1PersistentVolumeClaimSpec.md) | Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] +**status** | [**K8sIoApiCoreV1PersistentVolumeClaimStatus**](K8sIoApiCoreV1PersistentVolumeClaimStatus.md) | Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1PersistentVolumeClaimCondition.md b/docs/K8sIoApiCoreV1PersistentVolumeClaimCondition.md similarity index 93% rename from docs/V1PersistentVolumeClaimCondition.md rename to docs/K8sIoApiCoreV1PersistentVolumeClaimCondition.md index b70d7c39..b89a4581 100644 --- a/docs/V1PersistentVolumeClaimCondition.md +++ b/docs/K8sIoApiCoreV1PersistentVolumeClaimCondition.md @@ -1,4 +1,4 @@ -# V1PersistentVolumeClaimCondition +# K8sIoApiCoreV1PersistentVolumeClaimCondition ## Properties Name | Type | Description | Notes diff --git a/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md b/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md new file mode 100644 index 00000000..ebbb6733 --- /dev/null +++ b/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md @@ -0,0 +1,16 @@ +# K8sIoApiCoreV1PersistentVolumeClaimSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_modes** | **list[str]** | AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] +**data_source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | This field requires the VolumeSnapshotDataSource alpha feature gate to be enabled and currently VolumeSnapshot is the only supported data source. If the provisioner can support VolumeSnapshot data source, it will create a new volume and data will be restored to the volume at the same time. If the provisioner does not support VolumeSnapshot data source, volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. | [optional] +**resources** | [**K8sIoApiCoreV1ResourceRequirements**](K8sIoApiCoreV1ResourceRequirements.md) | Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources | [optional] +**selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | A label query over volumes to consider for binding. | [optional] +**storage_class_name** | **str** | Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] +**volume_mode** | **str** | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is a beta feature. | [optional] +**volume_name** | **str** | VolumeName is the binding reference to the PersistentVolume backing this claim. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PersistentVolumeClaimStatus.md b/docs/K8sIoApiCoreV1PersistentVolumeClaimStatus.md similarity index 52% rename from docs/V1PersistentVolumeClaimStatus.md rename to docs/K8sIoApiCoreV1PersistentVolumeClaimStatus.md index 27ffd55b..833e4e01 100644 --- a/docs/V1PersistentVolumeClaimStatus.md +++ b/docs/K8sIoApiCoreV1PersistentVolumeClaimStatus.md @@ -1,11 +1,11 @@ -# V1PersistentVolumeClaimStatus +# K8sIoApiCoreV1PersistentVolumeClaimStatus ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **access_modes** | **list[str]** | AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] -**capacity** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Represents the actual resources of the underlying volume. | [optional] -**conditions** | [**list[V1PersistentVolumeClaimCondition]**](V1PersistentVolumeClaimCondition.md) | Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. | [optional] +**capacity** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Represents the actual resources of the underlying volume. | [optional] +**conditions** | [**list[K8sIoApiCoreV1PersistentVolumeClaimCondition]**](K8sIoApiCoreV1PersistentVolumeClaimCondition.md) | Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. | [optional] **phase** | **str** | Phase represents the current phase of PersistentVolumeClaim. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1PersistentVolumeClaimVolumeSource.md b/docs/K8sIoApiCoreV1PersistentVolumeClaimVolumeSource.md similarity index 92% rename from docs/V1PersistentVolumeClaimVolumeSource.md rename to docs/K8sIoApiCoreV1PersistentVolumeClaimVolumeSource.md index f0b3f4c6..482edd34 100644 --- a/docs/V1PersistentVolumeClaimVolumeSource.md +++ b/docs/K8sIoApiCoreV1PersistentVolumeClaimVolumeSource.md @@ -1,4 +1,4 @@ -# V1PersistentVolumeClaimVolumeSource +# K8sIoApiCoreV1PersistentVolumeClaimVolumeSource ## Properties Name | Type | Description | Notes diff --git a/docs/K8sIoApiCoreV1PodAffinity.md b/docs/K8sIoApiCoreV1PodAffinity.md new file mode 100644 index 00000000..d610b7d9 --- /dev/null +++ b/docs/K8sIoApiCoreV1PodAffinity.md @@ -0,0 +1,11 @@ +# K8sIoApiCoreV1PodAffinity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferred_during_scheduling_ignored_during_execution** | [**list[K8sIoApiCoreV1WeightedPodAffinityTerm]**](K8sIoApiCoreV1WeightedPodAffinityTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. | [optional] +**required_during_scheduling_ignored_during_execution** | [**list[K8sIoApiCoreV1PodAffinityTerm]**](K8sIoApiCoreV1PodAffinityTerm.md) | If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PodAffinityTerm.md b/docs/K8sIoApiCoreV1PodAffinityTerm.md similarity index 79% rename from docs/V1PodAffinityTerm.md rename to docs/K8sIoApiCoreV1PodAffinityTerm.md index 100df314..4c9d196d 100644 --- a/docs/V1PodAffinityTerm.md +++ b/docs/K8sIoApiCoreV1PodAffinityTerm.md @@ -1,9 +1,9 @@ -# V1PodAffinityTerm +# K8sIoApiCoreV1PodAffinityTerm ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**label_selector** | [**V1LabelSelector**](V1LabelSelector.md) | A label query over a set of resources, in this case pods. | [optional] +**label_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | A label query over a set of resources, in this case pods. | [optional] **namespaces** | **list[str]** | namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\" | [optional] **topology_key** | **str** | This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. | diff --git a/docs/K8sIoApiCoreV1PodAntiAffinity.md b/docs/K8sIoApiCoreV1PodAntiAffinity.md new file mode 100644 index 00000000..4df8df10 --- /dev/null +++ b/docs/K8sIoApiCoreV1PodAntiAffinity.md @@ -0,0 +1,11 @@ +# K8sIoApiCoreV1PodAntiAffinity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferred_during_scheduling_ignored_during_execution** | [**list[K8sIoApiCoreV1WeightedPodAffinityTerm]**](K8sIoApiCoreV1WeightedPodAffinityTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. | [optional] +**required_during_scheduling_ignored_during_execution** | [**list[K8sIoApiCoreV1PodAffinityTerm]**](K8sIoApiCoreV1PodAffinityTerm.md) | If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PodDNSConfig.md b/docs/K8sIoApiCoreV1PodDNSConfig.md similarity index 65% rename from docs/V1PodDNSConfig.md rename to docs/K8sIoApiCoreV1PodDNSConfig.md index c3dabae3..853ee910 100644 --- a/docs/V1PodDNSConfig.md +++ b/docs/K8sIoApiCoreV1PodDNSConfig.md @@ -1,10 +1,10 @@ -# V1PodDNSConfig +# K8sIoApiCoreV1PodDNSConfig ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **nameservers** | **list[str]** | A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. | [optional] -**options** | [**list[V1PodDNSConfigOption]**](V1PodDNSConfigOption.md) | A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. | [optional] +**options** | [**list[K8sIoApiCoreV1PodDNSConfigOption]**](K8sIoApiCoreV1PodDNSConfigOption.md) | A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. | [optional] **searches** | **list[str]** | A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1PodDNSConfigOption.md b/docs/K8sIoApiCoreV1PodDNSConfigOption.md similarity index 91% rename from docs/V1PodDNSConfigOption.md rename to docs/K8sIoApiCoreV1PodDNSConfigOption.md index f6d6114f..b1735151 100644 --- a/docs/V1PodDNSConfigOption.md +++ b/docs/K8sIoApiCoreV1PodDNSConfigOption.md @@ -1,4 +1,4 @@ -# V1PodDNSConfigOption +# K8sIoApiCoreV1PodDNSConfigOption ## Properties Name | Type | Description | Notes diff --git a/docs/V1PreferredSchedulingTerm.md b/docs/K8sIoApiCoreV1PreferredSchedulingTerm.md similarity index 66% rename from docs/V1PreferredSchedulingTerm.md rename to docs/K8sIoApiCoreV1PreferredSchedulingTerm.md index 92f5b359..3a3a8ddb 100644 --- a/docs/V1PreferredSchedulingTerm.md +++ b/docs/K8sIoApiCoreV1PreferredSchedulingTerm.md @@ -1,9 +1,9 @@ -# V1PreferredSchedulingTerm +# K8sIoApiCoreV1PreferredSchedulingTerm ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**preference** | [**V1NodeSelectorTerm**](V1NodeSelectorTerm.md) | A node selector term, associated with the corresponding weight. | +**preference** | [**K8sIoApiCoreV1NodeSelectorTerm**](K8sIoApiCoreV1NodeSelectorTerm.md) | A node selector term, associated with the corresponding weight. | **weight** | **int** | Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApiCoreV1ResourceRequirements.md b/docs/K8sIoApiCoreV1ResourceRequirements.md new file mode 100644 index 00000000..27bbeeb3 --- /dev/null +++ b/docs/K8sIoApiCoreV1ResourceRequirements.md @@ -0,0 +1,11 @@ +# K8sIoApiCoreV1ResourceRequirements + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**limits** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ | [optional] +**requests** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1TCPSocketAction.md b/docs/K8sIoApiCoreV1TCPSocketAction.md similarity index 92% rename from docs/V1TCPSocketAction.md rename to docs/K8sIoApiCoreV1TCPSocketAction.md index e8a436b7..4bd106e3 100644 --- a/docs/V1TCPSocketAction.md +++ b/docs/K8sIoApiCoreV1TCPSocketAction.md @@ -1,4 +1,4 @@ -# V1TCPSocketAction +# K8sIoApiCoreV1TCPSocketAction ## Properties Name | Type | Description | Notes diff --git a/docs/V1Toleration.md b/docs/K8sIoApiCoreV1Toleration.md similarity index 98% rename from docs/V1Toleration.md rename to docs/K8sIoApiCoreV1Toleration.md index 1650f88e..fdea1817 100644 --- a/docs/V1Toleration.md +++ b/docs/K8sIoApiCoreV1Toleration.md @@ -1,4 +1,4 @@ -# V1Toleration +# K8sIoApiCoreV1Toleration ## Properties Name | Type | Description | Notes diff --git a/docs/V1TypedLocalObjectReference.md b/docs/K8sIoApiCoreV1TypedLocalObjectReference.md similarity index 93% rename from docs/V1TypedLocalObjectReference.md rename to docs/K8sIoApiCoreV1TypedLocalObjectReference.md index 672198bc..71871e4b 100644 --- a/docs/V1TypedLocalObjectReference.md +++ b/docs/K8sIoApiCoreV1TypedLocalObjectReference.md @@ -1,4 +1,4 @@ -# V1TypedLocalObjectReference +# K8sIoApiCoreV1TypedLocalObjectReference ## Properties Name | Type | Description | Notes diff --git a/docs/V1WeightedPodAffinityTerm.md b/docs/K8sIoApiCoreV1WeightedPodAffinityTerm.md similarity index 64% rename from docs/V1WeightedPodAffinityTerm.md rename to docs/K8sIoApiCoreV1WeightedPodAffinityTerm.md index 9d92fe55..795afcfc 100644 --- a/docs/V1WeightedPodAffinityTerm.md +++ b/docs/K8sIoApiCoreV1WeightedPodAffinityTerm.md @@ -1,9 +1,9 @@ -# V1WeightedPodAffinityTerm +# K8sIoApiCoreV1WeightedPodAffinityTerm ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**pod_affinity_term** | [**V1PodAffinityTerm**](V1PodAffinityTerm.md) | Required. A pod affinity term, associated with the corresponding weight. | +**pod_affinity_term** | [**K8sIoApiCoreV1PodAffinityTerm**](K8sIoApiCoreV1PodAffinityTerm.md) | Required. A pod affinity term, associated with the corresponding weight. | **weight** | **int** | weight associated with matching the corresponding podAffinityTerm, in the range 1-100. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApimachineryPkgApiResourceQuantity.md b/docs/K8sIoApimachineryPkgApiResourceQuantity.md new file mode 100644 index 00000000..ef58fc6a --- /dev/null +++ b/docs/K8sIoApimachineryPkgApiResourceQuantity.md @@ -0,0 +1,9 @@ +# K8sIoApimachineryPkgApiResourceQuantity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/K8sIoApimachineryPkgApisMetaV1APIGroup.md b/docs/K8sIoApimachineryPkgApisMetaV1APIGroup.md new file mode 100644 index 00000000..db08358b --- /dev/null +++ b/docs/K8sIoApimachineryPkgApisMetaV1APIGroup.md @@ -0,0 +1,15 @@ +# K8sIoApimachineryPkgApisMetaV1APIGroup + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**name** | **str** | name is the name of the group. | +**preferred_version** | [**K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery**](K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery.md) | preferredVersion is the version preferred by the API server, which probably is the storage version. | [optional] +**server_address_by_client_cid_rs** | [**list[K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR]**](K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR.md) | a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. | [optional] +**versions** | [**list[K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery]**](K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery.md) | versions are the versions supported in this group. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1APIGroupList.md b/docs/K8sIoApimachineryPkgApisMetaV1APIGroupList.md similarity index 83% rename from docs/V1APIGroupList.md rename to docs/K8sIoApimachineryPkgApisMetaV1APIGroupList.md index dcb7b218..007642ab 100644 --- a/docs/V1APIGroupList.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1APIGroupList.md @@ -1,10 +1,10 @@ -# V1APIGroupList +# K8sIoApimachineryPkgApisMetaV1APIGroupList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**groups** | [**list[V1APIGroup]**](V1APIGroup.md) | groups is a list of APIGroup. | +**groups** | [**list[K8sIoApimachineryPkgApisMetaV1APIGroup]**](K8sIoApimachineryPkgApisMetaV1APIGroup.md) | groups is a list of APIGroup. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1APIResource.md b/docs/K8sIoApimachineryPkgApisMetaV1APIResource.md similarity index 98% rename from docs/V1APIResource.md rename to docs/K8sIoApimachineryPkgApisMetaV1APIResource.md index 4bf7e9af..41d63378 100644 --- a/docs/V1APIResource.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1APIResource.md @@ -1,4 +1,4 @@ -# V1APIResource +# K8sIoApimachineryPkgApisMetaV1APIResource ## Properties Name | Type | Description | Notes diff --git a/docs/V1APIResourceList.md b/docs/K8sIoApimachineryPkgApisMetaV1APIResourceList.md similarity index 81% rename from docs/V1APIResourceList.md rename to docs/K8sIoApimachineryPkgApisMetaV1APIResourceList.md index d3e4f09d..0bdea137 100644 --- a/docs/V1APIResourceList.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1APIResourceList.md @@ -1,4 +1,4 @@ -# V1APIResourceList +# K8sIoApimachineryPkgApisMetaV1APIResourceList ## Properties Name | Type | Description | Notes @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **group_version** | **str** | groupVersion is the group and version this APIResourceList is for. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**resources** | [**list[V1APIResource]**](V1APIResource.md) | resources contains the name of the resources and if they are namespaced. | +**resources** | [**list[K8sIoApimachineryPkgApisMetaV1APIResource]**](K8sIoApimachineryPkgApisMetaV1APIResource.md) | resources contains the name of the resources and if they are namespaced. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1DeleteOptions.md b/docs/K8sIoApimachineryPkgApisMetaV1DeleteOptions.md similarity index 89% rename from docs/V1DeleteOptions.md rename to docs/K8sIoApimachineryPkgApisMetaV1DeleteOptions.md index 5ef23210..2af160d4 100644 --- a/docs/V1DeleteOptions.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1DeleteOptions.md @@ -1,4 +1,4 @@ -# V1DeleteOptions +# K8sIoApimachineryPkgApisMetaV1DeleteOptions ## Properties Name | Type | Description | Notes @@ -8,7 +8,7 @@ Name | Type | Description | Notes **grace_period_seconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **orphan_dependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] -**preconditions** | [**V1Preconditions**](V1Preconditions.md) | Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. | [optional] +**preconditions** | [**K8sIoApimachineryPkgApisMetaV1Preconditions**](K8sIoApimachineryPkgApisMetaV1Preconditions.md) | Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. | [optional] **propagation_policy** | **str** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RuntimeRawExtension.md b/docs/K8sIoApimachineryPkgApisMetaV1Duration.md similarity index 87% rename from docs/RuntimeRawExtension.md rename to docs/K8sIoApimachineryPkgApisMetaV1Duration.md index 5cdc89f0..7d62f1a4 100644 --- a/docs/RuntimeRawExtension.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1Duration.md @@ -1,4 +1,4 @@ -# RuntimeRawExtension +# K8sIoApimachineryPkgApisMetaV1Duration ## Properties Name | Type | Description | Notes diff --git a/docs/V1Duration.md b/docs/K8sIoApimachineryPkgApisMetaV1FieldsV1.md similarity index 87% rename from docs/V1Duration.md rename to docs/K8sIoApimachineryPkgApisMetaV1FieldsV1.md index 10af41bc..42e005d8 100644 --- a/docs/V1Duration.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1FieldsV1.md @@ -1,4 +1,4 @@ -# V1Duration +# K8sIoApimachineryPkgApisMetaV1FieldsV1 ## Properties Name | Type | Description | Notes diff --git a/docs/V1GroupVersionForDiscovery.md b/docs/K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery.md similarity index 90% rename from docs/V1GroupVersionForDiscovery.md rename to docs/K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery.md index e292a96b..c4a62731 100644 --- a/docs/V1GroupVersionForDiscovery.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery.md @@ -1,4 +1,4 @@ -# V1GroupVersionForDiscovery +# K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery ## Properties Name | Type | Description | Notes diff --git a/docs/V1LabelSelector.md b/docs/K8sIoApimachineryPkgApisMetaV1LabelSelector.md similarity index 67% rename from docs/V1LabelSelector.md rename to docs/K8sIoApimachineryPkgApisMetaV1LabelSelector.md index bb3c52d2..f9194d46 100644 --- a/docs/V1LabelSelector.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1LabelSelector.md @@ -1,9 +1,9 @@ -# V1LabelSelector +# K8sIoApimachineryPkgApisMetaV1LabelSelector ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**match_expressions** | [**list[V1LabelSelectorRequirement]**](V1LabelSelectorRequirement.md) | matchExpressions is a list of label selector requirements. The requirements are ANDed. | [optional] +**match_expressions** | [**list[K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement]**](K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement.md) | matchExpressions is a list of label selector requirements. The requirements are ANDed. | [optional] **match_labels** | **dict(str, str)** | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1LabelSelectorRequirement.md b/docs/K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement.md similarity index 93% rename from docs/V1LabelSelectorRequirement.md rename to docs/K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement.md index 1fc8ad32..588e0a08 100644 --- a/docs/V1LabelSelectorRequirement.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement.md @@ -1,4 +1,4 @@ -# V1LabelSelectorRequirement +# K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement ## Properties Name | Type | Description | Notes diff --git a/docs/V1ListMeta.md b/docs/K8sIoApimachineryPkgApisMetaV1ListMeta.md similarity index 98% rename from docs/V1ListMeta.md rename to docs/K8sIoApimachineryPkgApisMetaV1ListMeta.md index c8763ba6..dab6f971 100644 --- a/docs/V1ListMeta.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1ListMeta.md @@ -1,4 +1,4 @@ -# V1ListMeta +# K8sIoApimachineryPkgApisMetaV1ListMeta ## Properties Name | Type | Description | Notes diff --git a/docs/V1ManagedFieldsEntry.md b/docs/K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry.md similarity index 69% rename from docs/V1ManagedFieldsEntry.md rename to docs/K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry.md index d031ca61..2bc82d74 100644 --- a/docs/V1ManagedFieldsEntry.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry.md @@ -1,14 +1,14 @@ -# V1ManagedFieldsEntry +# K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. | [optional] **fields_type** | **str** | FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\" | [optional] -**fields_v1** | [**V1FieldsV1**](V1FieldsV1.md) | FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type. | [optional] +**fields_v1** | [**K8sIoApimachineryPkgApisMetaV1FieldsV1**](K8sIoApimachineryPkgApisMetaV1FieldsV1.md) | FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type. | [optional] **manager** | **str** | Manager is an identifier of the workflow managing these fields. | [optional] **operation** | **str** | Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. | [optional] -**time** | [**V1Time**](V1Time.md) | Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' | [optional] +**time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1ObjectMeta.md b/docs/K8sIoApimachineryPkgApisMetaV1ObjectMeta.md similarity index 65% rename from docs/V1ObjectMeta.md rename to docs/K8sIoApimachineryPkgApisMetaV1ObjectMeta.md index 7f919627..69895d4e 100644 --- a/docs/V1ObjectMeta.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1ObjectMeta.md @@ -1,4 +1,4 @@ -# V1ObjectMeta +# K8sIoApimachineryPkgApisMetaV1ObjectMeta ## Properties Name | Type | Description | Notes @@ -6,15 +6,15 @@ Name | Type | Description | Notes **annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations | [optional] **cluster_name** | **str** | The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. | [optional] **deletion_grace_period_seconds** | **int** | Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. | [optional] -**deletion_timestamp** | [**V1Time**](V1Time.md) | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**deletion_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] **finalizers** | **list[str]** | Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. | [optional] **generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency | [optional] **generation** | **int** | A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. | [optional] **labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels | [optional] -**managed_fields** | [**list[V1ManagedFieldsEntry]**](V1ManagedFieldsEntry.md) | ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. | [optional] +**managed_fields** | [**list[K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry]**](K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry.md) | ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. | [optional] **name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] **namespace** | **str** | Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces | [optional] -**owner_references** | [**list[V1OwnerReference]**](V1OwnerReference.md) | List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. | [optional] +**owner_references** | [**list[K8sIoApimachineryPkgApisMetaV1OwnerReference]**](K8sIoApimachineryPkgApisMetaV1OwnerReference.md) | List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. | [optional] **resource_version** | **str** | An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency | [optional] **self_link** | **str** | SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. | [optional] **uid** | **str** | UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids | [optional] diff --git a/docs/V1OwnerReference.md b/docs/K8sIoApimachineryPkgApisMetaV1OwnerReference.md similarity index 96% rename from docs/V1OwnerReference.md rename to docs/K8sIoApimachineryPkgApisMetaV1OwnerReference.md index 8c5ad154..fe8f6f9b 100644 --- a/docs/V1OwnerReference.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1OwnerReference.md @@ -1,4 +1,4 @@ -# V1OwnerReference +# K8sIoApimachineryPkgApisMetaV1OwnerReference ## Properties Name | Type | Description | Notes diff --git a/docs/ResourceQuantity.md b/docs/K8sIoApimachineryPkgApisMetaV1Patch.md similarity index 87% rename from docs/ResourceQuantity.md rename to docs/K8sIoApimachineryPkgApisMetaV1Patch.md index 8304f32f..9c2066a8 100644 --- a/docs/ResourceQuantity.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1Patch.md @@ -1,4 +1,4 @@ -# ResourceQuantity +# K8sIoApimachineryPkgApisMetaV1Patch ## Properties Name | Type | Description | Notes diff --git a/docs/V1Preconditions.md b/docs/K8sIoApimachineryPkgApisMetaV1Preconditions.md similarity index 90% rename from docs/V1Preconditions.md rename to docs/K8sIoApimachineryPkgApisMetaV1Preconditions.md index 1899cb85..2242b2d9 100644 --- a/docs/V1Preconditions.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1Preconditions.md @@ -1,4 +1,4 @@ -# V1Preconditions +# K8sIoApimachineryPkgApisMetaV1Preconditions ## Properties Name | Type | Description | Notes diff --git a/docs/V1RootPaths.md b/docs/K8sIoApimachineryPkgApisMetaV1RootPaths.md similarity index 89% rename from docs/V1RootPaths.md rename to docs/K8sIoApimachineryPkgApisMetaV1RootPaths.md index 639ca7de..05838d80 100644 --- a/docs/V1RootPaths.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1RootPaths.md @@ -1,4 +1,4 @@ -# V1RootPaths +# K8sIoApimachineryPkgApisMetaV1RootPaths ## Properties Name | Type | Description | Notes diff --git a/docs/V1ServerAddressByClientCIDR.md b/docs/K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR.md similarity index 90% rename from docs/V1ServerAddressByClientCIDR.md rename to docs/K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR.md index ced289fa..242861b4 100644 --- a/docs/V1ServerAddressByClientCIDR.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR.md @@ -1,4 +1,4 @@ -# V1ServerAddressByClientCIDR +# K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR ## Properties Name | Type | Description | Notes diff --git a/docs/V1Status.md b/docs/K8sIoApimachineryPkgApisMetaV1Status.md similarity index 71% rename from docs/V1Status.md rename to docs/K8sIoApimachineryPkgApisMetaV1Status.md index 13c5a941..5f2568c8 100644 --- a/docs/V1Status.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1Status.md @@ -1,14 +1,14 @@ -# V1Status +# K8sIoApimachineryPkgApisMetaV1Status ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **code** | **int** | Suggested HTTP return code for this status, 0 if not set. | [optional] -**details** | [**V1StatusDetails**](V1StatusDetails.md) | Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. | [optional] +**details** | [**K8sIoApimachineryPkgApisMetaV1StatusDetails**](K8sIoApimachineryPkgApisMetaV1StatusDetails.md) | Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **message** | **str** | A human-readable description of the status of this operation. | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **reason** | **str** | A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. | [optional] **status** | **str** | Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status | [optional] diff --git a/docs/V1StatusCause.md b/docs/K8sIoApimachineryPkgApisMetaV1StatusCause.md similarity index 96% rename from docs/V1StatusCause.md rename to docs/K8sIoApimachineryPkgApisMetaV1StatusCause.md index 56cb6faf..d813708d 100644 --- a/docs/V1StatusCause.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1StatusCause.md @@ -1,4 +1,4 @@ -# V1StatusCause +# K8sIoApimachineryPkgApisMetaV1StatusCause ## Properties Name | Type | Description | Notes diff --git a/docs/V1StatusDetails.md b/docs/K8sIoApimachineryPkgApisMetaV1StatusDetails.md similarity index 80% rename from docs/V1StatusDetails.md rename to docs/K8sIoApimachineryPkgApisMetaV1StatusDetails.md index 490191da..5e8123d9 100644 --- a/docs/V1StatusDetails.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1StatusDetails.md @@ -1,9 +1,9 @@ -# V1StatusDetails +# K8sIoApimachineryPkgApisMetaV1StatusDetails ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**causes** | [**list[V1StatusCause]**](V1StatusCause.md) | The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. | [optional] +**causes** | [**list[K8sIoApimachineryPkgApisMetaV1StatusCause]**](K8sIoApimachineryPkgApisMetaV1StatusCause.md) | The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. | [optional] **group** | **str** | The group attribute of the resource associated with the status StatusReason. | [optional] **kind** | **str** | The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **name** | **str** | The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). | [optional] diff --git a/docs/IntstrIntOrString.md b/docs/K8sIoApimachineryPkgApisMetaV1Time.md similarity index 88% rename from docs/IntstrIntOrString.md rename to docs/K8sIoApimachineryPkgApisMetaV1Time.md index c91598ac..01f2ff55 100644 --- a/docs/IntstrIntOrString.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1Time.md @@ -1,4 +1,4 @@ -# IntstrIntOrString +# K8sIoApimachineryPkgApisMetaV1Time ## Properties Name | Type | Description | Notes diff --git a/docs/K8sIoApimachineryPkgApisMetaV1WatchEvent.md b/docs/K8sIoApimachineryPkgApisMetaV1WatchEvent.md new file mode 100644 index 00000000..ee629072 --- /dev/null +++ b/docs/K8sIoApimachineryPkgApisMetaV1WatchEvent.md @@ -0,0 +1,11 @@ +# K8sIoApimachineryPkgApisMetaV1WatchEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**object** | [**K8sIoApimachineryPkgRuntimeRawExtension**](K8sIoApimachineryPkgRuntimeRawExtension.md) | Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context. | +**type** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/K8sIoApimachineryPkgRuntimeRawExtension.md b/docs/K8sIoApimachineryPkgRuntimeRawExtension.md new file mode 100644 index 00000000..e3c201ca --- /dev/null +++ b/docs/K8sIoApimachineryPkgRuntimeRawExtension.md @@ -0,0 +1,9 @@ +# K8sIoApimachineryPkgRuntimeRawExtension + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/K8sIoApimachineryPkgUtilIntstrIntOrString.md b/docs/K8sIoApimachineryPkgUtilIntstrIntOrString.md new file mode 100644 index 00000000..7dc203ec --- /dev/null +++ b/docs/K8sIoApimachineryPkgUtilIntstrIntOrString.md @@ -0,0 +1,9 @@ +# K8sIoApimachineryPkgUtilIntstrIntOrString + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1APIGroup.md b/docs/V1APIGroup.md deleted file mode 100644 index 19669396..00000000 --- a/docs/V1APIGroup.md +++ /dev/null @@ -1,15 +0,0 @@ -# V1APIGroup - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**name** | **str** | name is the name of the group. | -**preferred_version** | [**V1GroupVersionForDiscovery**](V1GroupVersionForDiscovery.md) | preferredVersion is the version preferred by the API server, which probably is the storage version. | [optional] -**server_address_by_client_cid_rs** | [**list[V1ServerAddressByClientCIDR]**](V1ServerAddressByClientCIDR.md) | a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. | [optional] -**versions** | [**list[V1GroupVersionForDiscovery]**](V1GroupVersionForDiscovery.md) | versions are the versions supported in this group. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1Affinity.md b/docs/V1Affinity.md deleted file mode 100644 index 14dfb611..00000000 --- a/docs/V1Affinity.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1Affinity - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**node_affinity** | [**V1NodeAffinity**](V1NodeAffinity.md) | Describes node affinity scheduling rules for the pod. | [optional] -**pod_affinity** | [**V1PodAffinity**](V1PodAffinity.md) | Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). | [optional] -**pod_anti_affinity** | [**V1PodAntiAffinity**](V1PodAntiAffinity.md) | Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1CloudInitConfigDriveSource.md b/docs/V1CloudInitConfigDriveSource.md index eef53a29..6e05ddf1 100644 --- a/docs/V1CloudInitConfigDriveSource.md +++ b/docs/V1CloudInitConfigDriveSource.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **network_data** | **str** | NetworkData contains config drive inline cloud-init networkdata. | [optional] **network_data_base64** | **str** | NetworkDataBase64 contains config drive cloud-init networkdata as a base64 encoded string. | [optional] -**network_data_secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | NetworkDataSecretRef references a k8s secret that contains config drive networkdata. | [optional] -**secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | UserDataSecretRef references a k8s secret that contains config drive userdata. | [optional] +**network_data_secret_ref** | [**K8sIoApiCoreV1LocalObjectReference**](K8sIoApiCoreV1LocalObjectReference.md) | NetworkDataSecretRef references a k8s secret that contains config drive networkdata. | [optional] +**secret_ref** | [**K8sIoApiCoreV1LocalObjectReference**](K8sIoApiCoreV1LocalObjectReference.md) | UserDataSecretRef references a k8s secret that contains config drive userdata. | [optional] **user_data** | **str** | UserData contains config drive inline cloud-init userdata. | [optional] **user_data_base64** | **str** | UserDataBase64 contains config drive cloud-init userdata as a base64 encoded string. | [optional] diff --git a/docs/V1CloudInitNoCloudSource.md b/docs/V1CloudInitNoCloudSource.md index 8bbf7cfc..85f70766 100644 --- a/docs/V1CloudInitNoCloudSource.md +++ b/docs/V1CloudInitNoCloudSource.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **network_data** | **str** | NetworkData contains NoCloud inline cloud-init networkdata. | [optional] **network_data_base64** | **str** | NetworkDataBase64 contains NoCloud cloud-init networkdata as a base64 encoded string. | [optional] -**network_data_secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | NetworkDataSecretRef references a k8s secret that contains NoCloud networkdata. | [optional] -**secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | UserDataSecretRef references a k8s secret that contains NoCloud userdata. | [optional] +**network_data_secret_ref** | [**K8sIoApiCoreV1LocalObjectReference**](K8sIoApiCoreV1LocalObjectReference.md) | NetworkDataSecretRef references a k8s secret that contains NoCloud networkdata. | [optional] +**secret_ref** | [**K8sIoApiCoreV1LocalObjectReference**](K8sIoApiCoreV1LocalObjectReference.md) | UserDataSecretRef references a k8s secret that contains NoCloud userdata. | [optional] **user_data** | **str** | UserData contains NoCloud inline cloud-init userdata. | [optional] **user_data_base64** | **str** | UserDataBase64 contains NoCloud cloud-init userdata as a base64 encoded string. | [optional] diff --git a/docs/V1EmptyDiskSource.md b/docs/V1EmptyDiskSource.md index c4a0f1b5..8c2f3a6e 100644 --- a/docs/V1EmptyDiskSource.md +++ b/docs/V1EmptyDiskSource.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**capacity** | [**ResourceQuantity**](ResourceQuantity.md) | Capacity of the sparse disk. | +**capacity** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | Capacity of the sparse disk. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1EphemeralVolumeSource.md b/docs/V1EphemeralVolumeSource.md index b0193d83..54d535ef 100644 --- a/docs/V1EphemeralVolumeSource.md +++ b/docs/V1EphemeralVolumeSource.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**persistent_volume_claim** | [**V1PersistentVolumeClaimVolumeSource**](V1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] +**persistent_volume_claim** | [**K8sIoApiCoreV1PersistentVolumeClaimVolumeSource**](K8sIoApiCoreV1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1FieldsV1.md b/docs/V1FieldsV1.md deleted file mode 100644 index 1a3c533b..00000000 --- a/docs/V1FieldsV1.md +++ /dev/null @@ -1,9 +0,0 @@ -# V1FieldsV1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1HostDisk.md b/docs/V1HostDisk.md index d94832ad..9a58077a 100644 --- a/docs/V1HostDisk.md +++ b/docs/V1HostDisk.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**capacity** | [**ResourceQuantity**](ResourceQuantity.md) | Capacity of the sparse disk | [optional] +**capacity** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | Capacity of the sparse disk | [optional] **path** | **str** | The path to HostDisk image located on the cluster | **shared** | **bool** | Shared indicate whether the path is shared between nodes | [optional] **type** | **str** | Contains information if disk.img exists or should be created allowed options are 'Disk' and 'DiskOrCreate' | diff --git a/docs/V1KubeVirt.md b/docs/V1KubeVirt.md index 17e948f2..5f1d87d4 100644 --- a/docs/V1KubeVirt.md +++ b/docs/V1KubeVirt.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] **spec** | [**V1KubeVirtSpec**](V1KubeVirtSpec.md) | | **status** | [**V1KubeVirtStatus**](V1KubeVirtStatus.md) | | [optional] diff --git a/docs/V1KubeVirtList.md b/docs/V1KubeVirtList.md index 338a42a8..2cd433d0 100644 --- a/docs/V1KubeVirtList.md +++ b/docs/V1KubeVirtList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **items** | [**list[V1KubeVirt]**](V1KubeVirt.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1KubeVirtSelfSignConfiguration.md b/docs/V1KubeVirtSelfSignConfiguration.md index 8866c966..035de83c 100644 --- a/docs/V1KubeVirtSelfSignConfiguration.md +++ b/docs/V1KubeVirtSelfSignConfiguration.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ca_overlap_interval** | [**V1Duration**](V1Duration.md) | | [optional] -**ca_rotate_interval** | [**V1Duration**](V1Duration.md) | | [optional] -**cert_rotate_interval** | [**V1Duration**](V1Duration.md) | | [optional] +**ca_overlap_interval** | [**K8sIoApimachineryPkgApisMetaV1Duration**](K8sIoApimachineryPkgApisMetaV1Duration.md) | | [optional] +**ca_rotate_interval** | [**K8sIoApimachineryPkgApisMetaV1Duration**](K8sIoApimachineryPkgApisMetaV1Duration.md) | | [optional] +**cert_rotate_interval** | [**K8sIoApimachineryPkgApisMetaV1Duration**](K8sIoApimachineryPkgApisMetaV1Duration.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Memory.md b/docs/V1Memory.md index 653413f9..53e0b0af 100644 --- a/docs/V1Memory.md +++ b/docs/V1Memory.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**guest** | [**ResourceQuantity**](ResourceQuantity.md) | Guest allows to specifying the amount of memory which is visible inside the Guest OS. The Guest must lie between Requests and Limits from the resources section. Defaults to the requested memory in the resources section if not specified. | [optional] +**guest** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | Guest allows to specifying the amount of memory which is visible inside the Guest OS. The Guest must lie between Requests and Limits from the resources section. Defaults to the requested memory in the resources section if not specified. | [optional] **hugepages** | [**V1Hugepages**](V1Hugepages.md) | Hugepages allow to use hugepages for the VirtualMachineInstance instead of regular memory. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1MigrationConfiguration.md b/docs/V1MigrationConfiguration.md index f0a3a389..bca5b549 100644 --- a/docs/V1MigrationConfiguration.md +++ b/docs/V1MigrationConfiguration.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **allow_auto_converge** | **str** | | -**bandwidth_per_migration** | [**ResourceQuantity**](ResourceQuantity.md) | | [optional] +**bandwidth_per_migration** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | | [optional] **completion_timeout_per_gi_b** | **str** | | [optional] **node_drain_taint_key** | **str** | | [optional] **parallel_migrations_per_cluster** | **str** | | [optional] diff --git a/docs/V1NodeAffinity.md b/docs/V1NodeAffinity.md deleted file mode 100644 index 71f35d0b..00000000 --- a/docs/V1NodeAffinity.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1NodeAffinity - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**preferred_during_scheduling_ignored_during_execution** | [**list[V1PreferredSchedulingTerm]**](V1PreferredSchedulingTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. | [optional] -**required_during_scheduling_ignored_during_execution** | [**V1NodeSelector**](V1NodeSelector.md) | If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1NodeSelector.md b/docs/V1NodeSelector.md deleted file mode 100644 index e9af8087..00000000 --- a/docs/V1NodeSelector.md +++ /dev/null @@ -1,10 +0,0 @@ -# V1NodeSelector - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**node_selector_terms** | [**list[V1NodeSelectorTerm]**](V1NodeSelectorTerm.md) | Required. A list of node selector terms. The terms are ORed. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1NodeSelectorTerm.md b/docs/V1NodeSelectorTerm.md deleted file mode 100644 index 894ff299..00000000 --- a/docs/V1NodeSelectorTerm.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1NodeSelectorTerm - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**match_expressions** | [**list[V1NodeSelectorRequirement]**](V1NodeSelectorRequirement.md) | A list of node selector requirements by node's labels. | [optional] -**match_fields** | [**list[V1NodeSelectorRequirement]**](V1NodeSelectorRequirement.md) | A list of node selector requirements by node's fields. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1Patch.md b/docs/V1Patch.md deleted file mode 100644 index ae7a0e23..00000000 --- a/docs/V1Patch.md +++ /dev/null @@ -1,9 +0,0 @@ -# V1Patch - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1PersistentVolumeClaimSpec.md b/docs/V1PersistentVolumeClaimSpec.md deleted file mode 100644 index 74fc7860..00000000 --- a/docs/V1PersistentVolumeClaimSpec.md +++ /dev/null @@ -1,16 +0,0 @@ -# V1PersistentVolumeClaimSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**access_modes** | **list[str]** | AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] -**data_source** | [**V1TypedLocalObjectReference**](V1TypedLocalObjectReference.md) | This field requires the VolumeSnapshotDataSource alpha feature gate to be enabled and currently VolumeSnapshot is the only supported data source. If the provisioner can support VolumeSnapshot data source, it will create a new volume and data will be restored to the volume at the same time. If the provisioner does not support VolumeSnapshot data source, volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. | [optional] -**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | A label query over volumes to consider for binding. | [optional] -**storage_class_name** | **str** | Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] -**volume_mode** | **str** | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is a beta feature. | [optional] -**volume_name** | **str** | VolumeName is the binding reference to the PersistentVolume backing this claim. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1PodAffinity.md b/docs/V1PodAffinity.md deleted file mode 100644 index 93672b73..00000000 --- a/docs/V1PodAffinity.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1PodAffinity - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**preferred_during_scheduling_ignored_during_execution** | [**list[V1WeightedPodAffinityTerm]**](V1WeightedPodAffinityTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. | [optional] -**required_during_scheduling_ignored_during_execution** | [**list[V1PodAffinityTerm]**](V1PodAffinityTerm.md) | If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1PodAntiAffinity.md b/docs/V1PodAntiAffinity.md deleted file mode 100644 index 2377cf4a..00000000 --- a/docs/V1PodAntiAffinity.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1PodAntiAffinity - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**preferred_during_scheduling_ignored_during_execution** | [**list[V1WeightedPodAffinityTerm]**](V1WeightedPodAffinityTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. | [optional] -**required_during_scheduling_ignored_during_execution** | [**list[V1PodAffinityTerm]**](V1PodAffinityTerm.md) | If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1Probe.md b/docs/V1Probe.md index 65b8a60f..b5b2c4dc 100644 --- a/docs/V1Probe.md +++ b/docs/V1Probe.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **failure_threshold** | **int** | Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. | [optional] -**http_get** | [**V1HTTPGetAction**](V1HTTPGetAction.md) | HTTPGet specifies the http request to perform. | [optional] +**http_get** | [**K8sIoApiCoreV1HTTPGetAction**](K8sIoApiCoreV1HTTPGetAction.md) | HTTPGet specifies the http request to perform. | [optional] **initial_delay_seconds** | **int** | Number of seconds after the VirtualMachineInstance has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes | [optional] **period_seconds** | **int** | How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. | [optional] **success_threshold** | **int** | Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. | [optional] -**tcp_socket** | [**V1TCPSocketAction**](V1TCPSocketAction.md) | TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported | [optional] +**tcp_socket** | [**K8sIoApiCoreV1TCPSocketAction**](K8sIoApiCoreV1TCPSocketAction.md) | TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported | [optional] **timeout_seconds** | **int** | Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1ResourceRequirements.md b/docs/V1ResourceRequirements.md index 0bf414ec..75655ecd 100644 --- a/docs/V1ResourceRequirements.md +++ b/docs/V1ResourceRequirements.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**limits** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". | [optional] +**limits** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". | [optional] **overcommit_guest_overhead** | **bool** | Don't ask the scheduler to take the guest-management overhead into account. Instead put the overhead only into the container's memory limit. This can lead to crashes if all memory is in use on a node. Defaults to false. | [optional] -**requests** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". | [optional] +**requests** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Time.md b/docs/V1Time.md deleted file mode 100644 index 63a5fb59..00000000 --- a/docs/V1Time.md +++ /dev/null @@ -1,9 +0,0 @@ -# V1Time - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1VirtualMachine.md b/docs/V1VirtualMachine.md index c4a77747..41e5304e 100644 --- a/docs/V1VirtualMachine.md +++ b/docs/V1VirtualMachine.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] **spec** | [**V1VirtualMachineSpec**](V1VirtualMachineSpec.md) | Spec contains the specification of VirtualMachineInstance created | **status** | [**V1VirtualMachineStatus**](V1VirtualMachineStatus.md) | Status holds the current state of the controller and brief information about its associated VirtualMachineInstance | [optional] diff --git a/docs/V1VirtualMachineInstance.md b/docs/V1VirtualMachineInstance.md index 93cf5ffb..eef565e9 100644 --- a/docs/V1VirtualMachineInstance.md +++ b/docs/V1VirtualMachineInstance.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] **spec** | [**V1VirtualMachineInstanceSpec**](V1VirtualMachineInstanceSpec.md) | VirtualMachineInstance Spec contains the VirtualMachineInstance specification. | **status** | [**V1VirtualMachineInstanceStatus**](V1VirtualMachineInstanceStatus.md) | Status is the high level overview of how the VirtualMachineInstance is doing. It contains information available to controllers and users. | [optional] diff --git a/docs/V1VirtualMachineInstanceFileSystemList.md b/docs/V1VirtualMachineInstanceFileSystemList.md index e5544b50..2f979be1 100644 --- a/docs/V1VirtualMachineInstanceFileSystemList.md +++ b/docs/V1VirtualMachineInstanceFileSystemList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **items** | [**list[V1VirtualMachineInstanceFileSystem]**](V1VirtualMachineInstanceFileSystem.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceGuestOSUserList.md b/docs/V1VirtualMachineInstanceGuestOSUserList.md index c4a9c753..c0f551c6 100644 --- a/docs/V1VirtualMachineInstanceGuestOSUserList.md +++ b/docs/V1VirtualMachineInstanceGuestOSUserList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **items** | [**list[V1VirtualMachineInstanceGuestOSUser]**](V1VirtualMachineInstanceGuestOSUser.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceList.md b/docs/V1VirtualMachineInstanceList.md index dc83d2ae..cef50191 100644 --- a/docs/V1VirtualMachineInstanceList.md +++ b/docs/V1VirtualMachineInstanceList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **items** | [**list[V1VirtualMachineInstance]**](V1VirtualMachineInstance.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceMigration.md b/docs/V1VirtualMachineInstanceMigration.md index 939d7122..9fd0eeee 100644 --- a/docs/V1VirtualMachineInstanceMigration.md +++ b/docs/V1VirtualMachineInstanceMigration.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] **spec** | [**V1VirtualMachineInstanceMigrationSpec**](V1VirtualMachineInstanceMigrationSpec.md) | | **status** | [**V1VirtualMachineInstanceMigrationStatus**](V1VirtualMachineInstanceMigrationStatus.md) | | [optional] diff --git a/docs/V1VirtualMachineInstanceMigrationList.md b/docs/V1VirtualMachineInstanceMigrationList.md index 20ae2a08..af2db5b4 100644 --- a/docs/V1VirtualMachineInstanceMigrationList.md +++ b/docs/V1VirtualMachineInstanceMigrationList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **items** | [**list[V1VirtualMachineInstanceMigration]**](V1VirtualMachineInstanceMigration.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceMigrationState.md b/docs/V1VirtualMachineInstanceMigrationState.md index 51e3a5b2..9817e324 100644 --- a/docs/V1VirtualMachineInstanceMigrationState.md +++ b/docs/V1VirtualMachineInstanceMigrationState.md @@ -6,11 +6,11 @@ Name | Type | Description | Notes **abort_requested** | **bool** | Indicates that the migration has been requested to abort | [optional] **abort_status** | **str** | Indicates the final status of the live migration abortion | [optional] **completed** | **bool** | Indicates the migration completed | [optional] -**end_timestamp** | [**V1Time**](V1Time.md) | The time the migration action ended | [optional] +**end_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | The time the migration action ended | [optional] **failed** | **bool** | Indicates that the migration failed | [optional] **migration_uid** | **str** | The VirtualMachineInstanceMigration object associated with this migration | [optional] **source_node** | **str** | The source node that the VMI originated on | [optional] -**start_timestamp** | [**V1Time**](V1Time.md) | The time the migration action began | [optional] +**start_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | The time the migration action began | [optional] **target_direct_migration_node_ports** | **dict(str, int)** | The list of ports opened for live migration on the destination node | [optional] **target_node** | **str** | The target node that the VMI is moving to | [optional] **target_node_address** | **str** | The address of the target node to use for the migration | [optional] diff --git a/docs/V1VirtualMachineInstancePreset.md b/docs/V1VirtualMachineInstancePreset.md index 21c3f4a4..e7b6f50f 100644 --- a/docs/V1VirtualMachineInstancePreset.md +++ b/docs/V1VirtualMachineInstancePreset.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] **spec** | [**V1VirtualMachineInstancePresetSpec**](V1VirtualMachineInstancePresetSpec.md) | VirtualMachineInstance Spec contains the VirtualMachineInstance specification. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstancePresetList.md b/docs/V1VirtualMachineInstancePresetList.md index 15db5428..42d2642e 100644 --- a/docs/V1VirtualMachineInstancePresetList.md +++ b/docs/V1VirtualMachineInstancePresetList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **items** | [**list[V1VirtualMachineInstancePreset]**](V1VirtualMachineInstancePreset.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstancePresetSpec.md b/docs/V1VirtualMachineInstancePresetSpec.md index 98791e49..4f25ef47 100644 --- a/docs/V1VirtualMachineInstancePresetSpec.md +++ b/docs/V1VirtualMachineInstancePresetSpec.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **domain** | [**V1DomainSpec**](V1DomainSpec.md) | Domain is the same object type as contained in VirtualMachineInstanceSpec | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Selector is a label query over a set of VMIs. Required. | +**selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | Selector is a label query over a set of VMIs. Required. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceReplicaSet.md b/docs/V1VirtualMachineInstanceReplicaSet.md index 2fa59eab..2b96ac59 100644 --- a/docs/V1VirtualMachineInstanceReplicaSet.md +++ b/docs/V1VirtualMachineInstanceReplicaSet.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] **spec** | [**V1VirtualMachineInstanceReplicaSetSpec**](V1VirtualMachineInstanceReplicaSetSpec.md) | VirtualMachineInstance Spec contains the VirtualMachineInstance specification. | **status** | [**V1VirtualMachineInstanceReplicaSetStatus**](V1VirtualMachineInstanceReplicaSetStatus.md) | Status is the high level overview of how the VirtualMachineInstance is doing. It contains information available to controllers and users. | [optional] diff --git a/docs/V1VirtualMachineInstanceReplicaSetList.md b/docs/V1VirtualMachineInstanceReplicaSetList.md index 15773ede..0209b6d4 100644 --- a/docs/V1VirtualMachineInstanceReplicaSetList.md +++ b/docs/V1VirtualMachineInstanceReplicaSetList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **items** | [**list[V1VirtualMachineInstanceReplicaSet]**](V1VirtualMachineInstanceReplicaSet.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceReplicaSetSpec.md b/docs/V1VirtualMachineInstanceReplicaSetSpec.md index 9cface83..47cd2f22 100644 --- a/docs/V1VirtualMachineInstanceReplicaSetSpec.md +++ b/docs/V1VirtualMachineInstanceReplicaSetSpec.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **paused** | **bool** | Indicates that the replica set is paused. | [optional] **replicas** | **int** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. | +**selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. | **template** | [**V1VirtualMachineInstanceTemplateSpec**](V1VirtualMachineInstanceTemplateSpec.md) | Template describes the pods that will be created. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceSpec.md b/docs/V1VirtualMachineInstanceSpec.md index 74685ee1..e907ac59 100644 --- a/docs/V1VirtualMachineInstanceSpec.md +++ b/docs/V1VirtualMachineInstanceSpec.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**affinity** | [**V1Affinity**](V1Affinity.md) | If affinity is specifies, obey all the affinity rules | [optional] -**dns_config** | [**V1PodDNSConfig**](V1PodDNSConfig.md) | Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. | [optional] +**affinity** | [**K8sIoApiCoreV1Affinity**](K8sIoApiCoreV1Affinity.md) | If affinity is specifies, obey all the affinity rules | [optional] +**dns_config** | [**K8sIoApiCoreV1PodDNSConfig**](K8sIoApiCoreV1PodDNSConfig.md) | Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. | [optional] **dns_policy** | **str** | Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. | [optional] **domain** | [**V1DomainSpec**](V1DomainSpec.md) | Specification of the desired behavior of the VirtualMachineInstance on the host. | **eviction_strategy** | **str** | EvictionStrategy can be set to \"LiveMigrate\" if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain. | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes **scheduler_name** | **str** | If specified, the VMI will be dispatched by specified scheduler. If not specified, the VMI will be dispatched by default scheduler. | [optional] **subdomain** | **str** | If specified, the fully qualified vmi hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the vmi will not have a domainname at all. The DNS entry will resolve to the vmi, no matter if the vmi itself can pick up a hostname. | [optional] **termination_grace_period_seconds** | **int** | Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. | [optional] -**tolerations** | [**list[V1Toleration]**](V1Toleration.md) | If toleration is specified, obey all the toleration rules. | [optional] +**tolerations** | [**list[K8sIoApiCoreV1Toleration]**](K8sIoApiCoreV1Toleration.md) | If toleration is specified, obey all the toleration rules. | [optional] **volumes** | [**list[V1Volume]**](V1Volume.md) | List of volumes that can be mounted by disks belonging to the vmi. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceTemplateSpec.md b/docs/V1VirtualMachineInstanceTemplateSpec.md index 7da7be3f..e8f420c1 100644 --- a/docs/V1VirtualMachineInstanceTemplateSpec.md +++ b/docs/V1VirtualMachineInstanceTemplateSpec.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] **spec** | [**V1VirtualMachineInstanceSpec**](V1VirtualMachineInstanceSpec.md) | VirtualMachineInstance Spec contains the VirtualMachineInstance specification. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineList.md b/docs/V1VirtualMachineList.md index 16b53e8f..e216a69b 100644 --- a/docs/V1VirtualMachineList.md +++ b/docs/V1VirtualMachineList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **items** | [**list[V1VirtualMachine]**](V1VirtualMachine.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Volume.md b/docs/V1Volume.md index e26fb36f..9e80cb61 100644 --- a/docs/V1Volume.md +++ b/docs/V1Volume.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **ephemeral** | [**V1EphemeralVolumeSource**](V1EphemeralVolumeSource.md) | Ephemeral is a special volume source that \"wraps\" specified source and provides copy-on-write image on top of it. | [optional] **host_disk** | [**V1HostDisk**](V1HostDisk.md) | HostDisk represents a disk created on the cluster level | [optional] **name** | **str** | Volume's name. Must be a DNS_LABEL and unique within the vmi. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | -**persistent_volume_claim** | [**V1PersistentVolumeClaimVolumeSource**](V1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] +**persistent_volume_claim** | [**K8sIoApiCoreV1PersistentVolumeClaimVolumeSource**](K8sIoApiCoreV1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] **secret** | [**V1SecretVolumeSource**](V1SecretVolumeSource.md) | SecretVolumeSource represents a reference to a secret data in the same namespace. More info: https://kubernetes.io/docs/concepts/configuration/secret/ | [optional] **service_account** | [**V1ServiceAccountVolumeSource**](V1ServiceAccountVolumeSource.md) | ServiceAccountVolumeSource represents a reference to a service account. There can only be one volume of this type! More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ | [optional] diff --git a/docs/V1WatchEvent.md b/docs/V1WatchEvent.md deleted file mode 100644 index 33f02c74..00000000 --- a/docs/V1WatchEvent.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1WatchEvent - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**object** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context. | -**type** | **str** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1alpha1DataVolume.md b/docs/V1alpha1DataVolume.md index abcc8544..c194a14d 100644 --- a/docs/V1alpha1DataVolume.md +++ b/docs/V1alpha1DataVolume.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] **spec** | [**V1alpha1DataVolumeSpec**](V1alpha1DataVolumeSpec.md) | | **status** | [**V1alpha1DataVolumeStatus**](V1alpha1DataVolumeStatus.md) | | [optional] diff --git a/docs/V1alpha1DataVolumeCondition.md b/docs/V1alpha1DataVolumeCondition.md index ee9d8f16..9c79f959 100644 --- a/docs/V1alpha1DataVolumeCondition.md +++ b/docs/V1alpha1DataVolumeCondition.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**last_heartbeat_time** | [**V1Time**](V1Time.md) | | [optional] +**last_heartbeat_time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | | [optional] **message** | **str** | | [optional] **reason** | **str** | | [optional] **status** | **str** | | diff --git a/docs/V1alpha1DataVolumeSpec.md b/docs/V1alpha1DataVolumeSpec.md index 048f32c6..72cc35fa 100644 --- a/docs/V1alpha1DataVolumeSpec.md +++ b/docs/V1alpha1DataVolumeSpec.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **content_type** | **str** | DataVolumeContentType options: \"kubevirt\", \"archive\" | [optional] -**pvc** | [**V1PersistentVolumeClaimSpec**](V1PersistentVolumeClaimSpec.md) | PVC is the PVC specification | +**pvc** | [**K8sIoApiCoreV1PersistentVolumeClaimSpec**](K8sIoApiCoreV1PersistentVolumeClaimSpec.md) | PVC is the PVC specification | **source** | [**V1alpha1DataVolumeSource**](V1alpha1DataVolumeSource.md) | Source is the src of the data for the requested DataVolume | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1Error.md b/docs/V1alpha1Error.md index 0a34e137..f1418e0d 100644 --- a/docs/V1alpha1Error.md +++ b/docs/V1alpha1Error.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **str** | | [optional] -**time** | [**V1Time**](V1Time.md) | | [optional] +**time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineRestore.md b/docs/V1alpha1VirtualMachineRestore.md index 8fdb40a4..d41a210a 100644 --- a/docs/V1alpha1VirtualMachineRestore.md +++ b/docs/V1alpha1VirtualMachineRestore.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] **spec** | [**V1alpha1VirtualMachineRestoreSpec**](V1alpha1VirtualMachineRestoreSpec.md) | | **status** | [**V1alpha1VirtualMachineRestoreStatus**](V1alpha1VirtualMachineRestoreStatus.md) | | [optional] diff --git a/docs/V1alpha1VirtualMachineRestoreList.md b/docs/V1alpha1VirtualMachineRestoreList.md index 2e965609..968d580c 100644 --- a/docs/V1alpha1VirtualMachineRestoreList.md +++ b/docs/V1alpha1VirtualMachineRestoreList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **items** | [**list[V1alpha1VirtualMachineRestore]**](V1alpha1VirtualMachineRestore.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineRestoreSpec.md b/docs/V1alpha1VirtualMachineRestoreSpec.md index a813153e..cec5d31e 100644 --- a/docs/V1alpha1VirtualMachineRestoreSpec.md +++ b/docs/V1alpha1VirtualMachineRestoreSpec.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**target** | [**V1TypedLocalObjectReference**](V1TypedLocalObjectReference.md) | initially only VirtualMachine type supported | +**target** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | initially only VirtualMachine type supported | **virtual_machine_snapshot_name** | **str** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineRestoreStatus.md b/docs/V1alpha1VirtualMachineRestoreStatus.md index 5f8125f5..9930131d 100644 --- a/docs/V1alpha1VirtualMachineRestoreStatus.md +++ b/docs/V1alpha1VirtualMachineRestoreStatus.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **complete** | **bool** | | [optional] **conditions** | [**list[V1alpha1Condition]**](V1alpha1Condition.md) | | [optional] **deleted_data_volumes** | **list[str]** | | [optional] -**restore_time** | [**V1Time**](V1Time.md) | | [optional] +**restore_time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | | [optional] **restores** | [**list[V1alpha1VolumeRestore]**](V1alpha1VolumeRestore.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineSnapshot.md b/docs/V1alpha1VirtualMachineSnapshot.md index 0e51bc3f..28844384 100644 --- a/docs/V1alpha1VirtualMachineSnapshot.md +++ b/docs/V1alpha1VirtualMachineSnapshot.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] **spec** | [**V1alpha1VirtualMachineSnapshotSpec**](V1alpha1VirtualMachineSnapshotSpec.md) | | **status** | [**V1alpha1VirtualMachineSnapshotStatus**](V1alpha1VirtualMachineSnapshotStatus.md) | | [optional] diff --git a/docs/V1alpha1VirtualMachineSnapshotContent.md b/docs/V1alpha1VirtualMachineSnapshotContent.md index b3afa516..bdf673ca 100644 --- a/docs/V1alpha1VirtualMachineSnapshotContent.md +++ b/docs/V1alpha1VirtualMachineSnapshotContent.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] **spec** | [**V1alpha1VirtualMachineSnapshotContentSpec**](V1alpha1VirtualMachineSnapshotContentSpec.md) | | **status** | [**V1alpha1VirtualMachineSnapshotContentStatus**](V1alpha1VirtualMachineSnapshotContentStatus.md) | | [optional] diff --git a/docs/V1alpha1VirtualMachineSnapshotContentList.md b/docs/V1alpha1VirtualMachineSnapshotContentList.md index fc58fc7c..75849c3b 100644 --- a/docs/V1alpha1VirtualMachineSnapshotContentList.md +++ b/docs/V1alpha1VirtualMachineSnapshotContentList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **items** | [**list[V1alpha1VirtualMachineSnapshotContent]**](V1alpha1VirtualMachineSnapshotContent.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineSnapshotContentStatus.md b/docs/V1alpha1VirtualMachineSnapshotContentStatus.md index eceb66d8..3021f72e 100644 --- a/docs/V1alpha1VirtualMachineSnapshotContentStatus.md +++ b/docs/V1alpha1VirtualMachineSnapshotContentStatus.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**creation_time** | [**V1Time**](V1Time.md) | | [optional] +**creation_time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | | [optional] **error** | [**V1alpha1Error**](V1alpha1Error.md) | | [optional] **ready_to_use** | **bool** | | [optional] **volume_snapshot_status** | [**list[V1alpha1VolumeSnapshotStatus]**](V1alpha1VolumeSnapshotStatus.md) | | [optional] diff --git a/docs/V1alpha1VirtualMachineSnapshotList.md b/docs/V1alpha1VirtualMachineSnapshotList.md index 022f7e28..36e02f49 100644 --- a/docs/V1alpha1VirtualMachineSnapshotList.md +++ b/docs/V1alpha1VirtualMachineSnapshotList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **items** | [**list[V1alpha1VirtualMachineSnapshot]**](V1alpha1VirtualMachineSnapshot.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineSnapshotSpec.md b/docs/V1alpha1VirtualMachineSnapshotSpec.md index afc39ee0..36e96096 100644 --- a/docs/V1alpha1VirtualMachineSnapshotSpec.md +++ b/docs/V1alpha1VirtualMachineSnapshotSpec.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **deletion_policy** | **str** | | [optional] -**source** | [**V1TypedLocalObjectReference**](V1TypedLocalObjectReference.md) | | +**source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineSnapshotStatus.md b/docs/V1alpha1VirtualMachineSnapshotStatus.md index 8d86a82a..3827a3d2 100644 --- a/docs/V1alpha1VirtualMachineSnapshotStatus.md +++ b/docs/V1alpha1VirtualMachineSnapshotStatus.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **conditions** | [**list[V1alpha1Condition]**](V1alpha1Condition.md) | | [optional] -**creation_time** | [**V1Time**](V1Time.md) | | [optional] +**creation_time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | | [optional] **error** | [**V1alpha1Error**](V1alpha1Error.md) | | [optional] **ready_to_use** | **bool** | | [optional] **source_uid** | **str** | | [optional] diff --git a/docs/V1alpha1VolumeBackup.md b/docs/V1alpha1VolumeBackup.md index cdcf2b11..831caf4c 100644 --- a/docs/V1alpha1VolumeBackup.md +++ b/docs/V1alpha1VolumeBackup.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**persistent_volume_claim** | [**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md) | | +**persistent_volume_claim** | [**K8sIoApiCoreV1PersistentVolumeClaim**](K8sIoApiCoreV1PersistentVolumeClaim.md) | | **volume_name** | **str** | | **volume_snapshot_name** | **str** | | [optional] diff --git a/docs/V1alpha1VolumeSnapshotStatus.md b/docs/V1alpha1VolumeSnapshotStatus.md index c8b0b1fe..c2856984 100644 --- a/docs/V1alpha1VolumeSnapshotStatus.md +++ b/docs/V1alpha1VolumeSnapshotStatus.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**creation_time** | [**V1Time**](V1Time.md) | | [optional] +**creation_time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | | [optional] **error** | [**V1alpha1Error**](V1alpha1Error.md) | | [optional] **ready_to_use** | **bool** | | [optional] **volume_snapshot_name** | **str** | | diff --git a/git_push.sh b/git_push.sh index 86047cba..9a228ab7 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.33.0-rc.0-100-g87b59b40" + release_note="Auto-generated client v0.33.0-rc.0-112-g2152ea2e" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index e98e3219..e11b7082 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -1,13 +1,13 @@ [main] INFO io.swagger.parser.Swagger20Parser - reading from /root/go/src/kubevirt.io/kubevirt/api/openapi-spec/swagger.json [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - -Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=Last time we probed the condition., DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=Last time the condition transitioned from one status to another., DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + +Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} @@ -23,30 +23,156 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] INFO io.swagger.codegen.ignore.CodegenIgnoreProcessor - No .swagger-codegen-ignore file found. [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default appVersion set to 1.0.0 [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default version set to 1.0.0 -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/intstr_int_or_string.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_intstr_int_or_string.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/IntstrIntOrString.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/resource_quantity.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_resource_quantity.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/ResourceQuantity.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/runtime_raw_extension.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_runtime_raw_extension.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/RuntimeRawExtension.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_api_group.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_api_group.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1APIGroup.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_api_group_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_api_group_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1APIGroupList.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_api_resource.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_api_resource.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1APIResource.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_api_resource_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_api_resource_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1APIResourceList.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_affinity.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_affinity.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Affinity.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_affinity.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_affinity.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1Affinity.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_http_get_action.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_http_get_action.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1HTTPGetAction.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_http_header.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_http_header.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1HTTPHeader.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_local_object_reference.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_local_object_reference.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1LocalObjectReference.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_node_affinity.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_node_affinity.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1NodeAffinity.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_node_selector.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_node_selector.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1NodeSelector.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_node_selector_requirement.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_node_selector_requirement.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1NodeSelectorRequirement.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_node_selector_term.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_node_selector_term.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1NodeSelectorTerm.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_persistent_volume_claim.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1PersistentVolumeClaim.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_persistent_volume_claim_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1PersistentVolumeClaimCondition.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_persistent_volume_claim_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_persistent_volume_claim_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1PersistentVolumeClaimStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_volume_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_persistent_volume_claim_volume_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1PersistentVolumeClaimVolumeSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_pod_affinity.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_pod_affinity.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1PodAffinity.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_pod_affinity_term.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1PodAffinityTerm.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_pod_anti_affinity.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_pod_anti_affinity.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1PodAntiAffinity.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_pod_dns_config.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_pod_dns_config.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1PodDNSConfig.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_pod_dns_config_option.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_pod_dns_config_option.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1PodDNSConfigOption.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_preferred_scheduling_term.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_preferred_scheduling_term.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1PreferredSchedulingTerm.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_resource_requirements.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_resource_requirements.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1ResourceRequirements.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_tcp_socket_action.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_tcp_socket_action.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1TCPSocketAction.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_toleration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_toleration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1Toleration.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_typed_local_object_reference.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_typed_local_object_reference.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1TypedLocalObjectReference.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_weighted_pod_affinity_term.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_weighted_pod_affinity_term.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1WeightedPodAffinityTerm.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_apimachinery_pkg_api_resource_quantity.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_api_resource_quantity.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgApiResourceQuantity.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_api_group.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgApisMetaV1APIGroup.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgApisMetaV1APIGroupList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_api_resource.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgApisMetaV1APIResource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgApisMetaV1APIResourceList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_delete_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_delete_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgApisMetaV1DeleteOptions.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_duration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_duration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgApisMetaV1Duration.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_fields_v1.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_fields_v1.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgApisMetaV1FieldsV1.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_group_version_for_discovery.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_group_version_for_discovery.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_label_selector.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_label_selector.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgApisMetaV1LabelSelector.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_requirement.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_requirement.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_list_meta.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_list_meta.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgApisMetaV1ListMeta.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgApisMetaV1ObjectMeta.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgApisMetaV1OwnerReference.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_patch.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_patch.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgApisMetaV1Patch.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_preconditions.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_preconditions.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgApisMetaV1Preconditions.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_root_paths.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_root_paths.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgApisMetaV1RootPaths.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgApisMetaV1Status.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_cause.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_status_cause.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgApisMetaV1StatusCause.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_details.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_status_details.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgApisMetaV1StatusDetails.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_time.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_time.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgApisMetaV1Time.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_watch_event.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_watch_event.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgApisMetaV1WatchEvent.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_apimachinery_pkg_runtime_raw_extension.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_runtime_raw_extension.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgRuntimeRawExtension.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_apimachinery_pkg_util_intstr_int_or_string.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_util_intstr_int_or_string.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgUtilIntstrIntOrString.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_bios.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_bios.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1BIOS.md @@ -98,9 +224,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_data_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_data_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DataVolumeSource.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_delete_options.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_delete_options.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DeleteOptions.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_developer_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_developer_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DeveloperConfiguration.md @@ -116,9 +239,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_domain_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_domain_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DomainSpec.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_duration.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_duration.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Duration.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_efi.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_efi.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1EFI.md @@ -146,9 +266,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_features.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_features.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Features.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_fields_v1.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_fields_v1.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1FieldsV1.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_firmware.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_firmware.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Firmware.md @@ -158,18 +275,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_gpu.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_gpu.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1GPU.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_group_version_for_discovery.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_group_version_for_discovery.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1GroupVersionForDiscovery.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_hpet_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_hpet_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1HPETTimer.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_http_get_action.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_http_get_action.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1HTTPGetAction.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_http_header.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_http_header.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1HTTPHeader.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_host_disk.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_host_disk.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1HostDisk.md @@ -227,27 +335,12 @@ 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_kube_virt_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kube_virt_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KubeVirtStatus.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_label_selector.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_label_selector.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1LabelSelector.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_label_selector_requirement.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_label_selector_requirement.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1LabelSelectorRequirement.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_list_meta.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_list_meta.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ListMeta.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_local_object_reference.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_local_object_reference.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1LocalObjectReference.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_lun_target.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_lun_target.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1LunTarget.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Machine.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_managed_fields_entry.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_managed_fields_entry.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ManagedFieldsEntry.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_memory.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_memory.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Memory.md @@ -263,72 +356,15 @@ 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_network_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_network_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1NetworkConfiguration.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_node_affinity.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_node_affinity.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1NodeAffinity.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_node_selector.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_node_selector.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1NodeSelector.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_node_selector_requirement.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_node_selector_requirement.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1NodeSelectorRequirement.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_node_selector_term.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_node_selector_term.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1NodeSelectorTerm.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_object_meta.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_object_meta.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ObjectMeta.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_owner_reference.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_owner_reference.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1OwnerReference.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_pit_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pit_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PITTimer.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_patch.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_patch.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Patch.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_persistent_volume_claim.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_persistent_volume_claim.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PersistentVolumeClaim.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_persistent_volume_claim_condition.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_persistent_volume_claim_condition.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PersistentVolumeClaimCondition.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_persistent_volume_claim_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_persistent_volume_claim_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PersistentVolumeClaimSpec.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_persistent_volume_claim_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_persistent_volume_claim_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PersistentVolumeClaimStatus.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_persistent_volume_claim_volume_source.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_persistent_volume_claim_volume_source.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PersistentVolumeClaimVolumeSource.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_pod_affinity.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pod_affinity.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PodAffinity.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_pod_affinity_term.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pod_affinity_term.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PodAffinityTerm.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_pod_anti_affinity.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pod_anti_affinity.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PodAntiAffinity.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_pod_dns_config.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pod_dns_config.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PodDNSConfig.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_pod_dns_config_option.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pod_dns_config_option.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PodDNSConfigOption.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_pod_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pod_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PodNetwork.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_port.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_port.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Port.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_preconditions.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_preconditions.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Preconditions.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_preferred_scheduling_term.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_preferred_scheduling_term.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PreferredSchedulingTerm.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_probe.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_probe.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Probe.md @@ -344,45 +380,18 @@ 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_rng.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_rng.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Rng.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_root_paths.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_root_paths.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1RootPaths.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_sm_bios_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sm_bios_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SMBiosConfiguration.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_secret_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_secret_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SecretVolumeSource.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_server_address_by_client_cidr.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_server_address_by_client_cidr.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ServerAddressByClientCIDR.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_service_account_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_service_account_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ServiceAccountVolumeSource.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Status.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_status_cause.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_status_cause.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1StatusCause.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_status_details.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_status_details.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1StatusDetails.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_tcp_socket_action.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_tcp_socket_action.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1TCPSocketAction.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_time.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_time.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Time.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Timer.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_toleration.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_toleration.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Toleration.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_typed_local_object_reference.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_typed_local_object_reference.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1TypedLocalObjectReference.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachine.md @@ -488,15 +497,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_volume.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_volume.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Volume.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_watch_event.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_watch_event.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1WatchEvent.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Watchdog.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_weighted_pod_affinity_term.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_weighted_pod_affinity_term.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1WeightedPodAffinityTerm.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_condition.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_condition.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1Condition.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 27223c76..13660930 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -14,14 +14,56 @@ from __future__ import absolute_import # import models into sdk package -from .models.intstr_int_or_string import IntstrIntOrString -from .models.resource_quantity import ResourceQuantity -from .models.runtime_raw_extension import RuntimeRawExtension -from .models.v1_api_group import V1APIGroup -from .models.v1_api_group_list import V1APIGroupList -from .models.v1_api_resource import V1APIResource -from .models.v1_api_resource_list import V1APIResourceList -from .models.v1_affinity import V1Affinity +from .models.k8s_io_api_core_v1_affinity import K8sIoApiCoreV1Affinity +from .models.k8s_io_api_core_v1_http_get_action import K8sIoApiCoreV1HTTPGetAction +from .models.k8s_io_api_core_v1_http_header import K8sIoApiCoreV1HTTPHeader +from .models.k8s_io_api_core_v1_local_object_reference import K8sIoApiCoreV1LocalObjectReference +from .models.k8s_io_api_core_v1_node_affinity import K8sIoApiCoreV1NodeAffinity +from .models.k8s_io_api_core_v1_node_selector import K8sIoApiCoreV1NodeSelector +from .models.k8s_io_api_core_v1_node_selector_requirement import K8sIoApiCoreV1NodeSelectorRequirement +from .models.k8s_io_api_core_v1_node_selector_term import K8sIoApiCoreV1NodeSelectorTerm +from .models.k8s_io_api_core_v1_persistent_volume_claim import K8sIoApiCoreV1PersistentVolumeClaim +from .models.k8s_io_api_core_v1_persistent_volume_claim_condition import K8sIoApiCoreV1PersistentVolumeClaimCondition +from .models.k8s_io_api_core_v1_persistent_volume_claim_spec import K8sIoApiCoreV1PersistentVolumeClaimSpec +from .models.k8s_io_api_core_v1_persistent_volume_claim_status import K8sIoApiCoreV1PersistentVolumeClaimStatus +from .models.k8s_io_api_core_v1_persistent_volume_claim_volume_source import K8sIoApiCoreV1PersistentVolumeClaimVolumeSource +from .models.k8s_io_api_core_v1_pod_affinity import K8sIoApiCoreV1PodAffinity +from .models.k8s_io_api_core_v1_pod_affinity_term import K8sIoApiCoreV1PodAffinityTerm +from .models.k8s_io_api_core_v1_pod_anti_affinity import K8sIoApiCoreV1PodAntiAffinity +from .models.k8s_io_api_core_v1_pod_dns_config import K8sIoApiCoreV1PodDNSConfig +from .models.k8s_io_api_core_v1_pod_dns_config_option import K8sIoApiCoreV1PodDNSConfigOption +from .models.k8s_io_api_core_v1_preferred_scheduling_term import K8sIoApiCoreV1PreferredSchedulingTerm +from .models.k8s_io_api_core_v1_resource_requirements import K8sIoApiCoreV1ResourceRequirements +from .models.k8s_io_api_core_v1_tcp_socket_action import K8sIoApiCoreV1TCPSocketAction +from .models.k8s_io_api_core_v1_toleration import K8sIoApiCoreV1Toleration +from .models.k8s_io_api_core_v1_typed_local_object_reference import K8sIoApiCoreV1TypedLocalObjectReference +from .models.k8s_io_api_core_v1_weighted_pod_affinity_term import K8sIoApiCoreV1WeightedPodAffinityTerm +from .models.k8s_io_apimachinery_pkg_api_resource_quantity import K8sIoApimachineryPkgApiResourceQuantity +from .models.k8s_io_apimachinery_pkg_apis_meta_v1_api_group import K8sIoApimachineryPkgApisMetaV1APIGroup +from .models.k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list import K8sIoApimachineryPkgApisMetaV1APIGroupList +from .models.k8s_io_apimachinery_pkg_apis_meta_v1_api_resource import K8sIoApimachineryPkgApisMetaV1APIResource +from .models.k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_list import K8sIoApimachineryPkgApisMetaV1APIResourceList +from .models.k8s_io_apimachinery_pkg_apis_meta_v1_delete_options import K8sIoApimachineryPkgApisMetaV1DeleteOptions +from .models.k8s_io_apimachinery_pkg_apis_meta_v1_duration import K8sIoApimachineryPkgApisMetaV1Duration +from .models.k8s_io_apimachinery_pkg_apis_meta_v1_fields_v1 import K8sIoApimachineryPkgApisMetaV1FieldsV1 +from .models.k8s_io_apimachinery_pkg_apis_meta_v1_group_version_for_discovery import K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery +from .models.k8s_io_apimachinery_pkg_apis_meta_v1_label_selector import K8sIoApimachineryPkgApisMetaV1LabelSelector +from .models.k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_requirement import K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement +from .models.k8s_io_apimachinery_pkg_apis_meta_v1_list_meta import K8sIoApimachineryPkgApisMetaV1ListMeta +from .models.k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry import K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry +from .models.k8s_io_apimachinery_pkg_apis_meta_v1_object_meta import K8sIoApimachineryPkgApisMetaV1ObjectMeta +from .models.k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference import K8sIoApimachineryPkgApisMetaV1OwnerReference +from .models.k8s_io_apimachinery_pkg_apis_meta_v1_patch import K8sIoApimachineryPkgApisMetaV1Patch +from .models.k8s_io_apimachinery_pkg_apis_meta_v1_preconditions import K8sIoApimachineryPkgApisMetaV1Preconditions +from .models.k8s_io_apimachinery_pkg_apis_meta_v1_root_paths import K8sIoApimachineryPkgApisMetaV1RootPaths +from .models.k8s_io_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr import K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR +from .models.k8s_io_apimachinery_pkg_apis_meta_v1_status import K8sIoApimachineryPkgApisMetaV1Status +from .models.k8s_io_apimachinery_pkg_apis_meta_v1_status_cause import K8sIoApimachineryPkgApisMetaV1StatusCause +from .models.k8s_io_apimachinery_pkg_apis_meta_v1_status_details import K8sIoApimachineryPkgApisMetaV1StatusDetails +from .models.k8s_io_apimachinery_pkg_apis_meta_v1_time import K8sIoApimachineryPkgApisMetaV1Time +from .models.k8s_io_apimachinery_pkg_apis_meta_v1_watch_event import K8sIoApimachineryPkgApisMetaV1WatchEvent +from .models.k8s_io_apimachinery_pkg_runtime_raw_extension import K8sIoApimachineryPkgRuntimeRawExtension +from .models.k8s_io_apimachinery_pkg_util_intstr_int_or_string import K8sIoApimachineryPkgUtilIntstrIntOrString from .models.v1_bios import V1BIOS from .models.v1_bootloader import V1Bootloader from .models.v1_cd_rom_target import V1CDRomTarget @@ -39,13 +81,11 @@ from .models.v1_dhcp_options import V1DHCPOptions from .models.v1_dhcp_private_options import V1DHCPPrivateOptions from .models.v1_data_volume_source import V1DataVolumeSource -from .models.v1_delete_options import V1DeleteOptions from .models.v1_developer_configuration import V1DeveloperConfiguration from .models.v1_devices import V1Devices from .models.v1_disk import V1Disk from .models.v1_disk_target import V1DiskTarget from .models.v1_domain_spec import V1DomainSpec -from .models.v1_duration import V1Duration from .models.v1_efi import V1EFI from .models.v1_empty_disk_source import V1EmptyDiskSource from .models.v1_ephemeral_volume_source import V1EphemeralVolumeSource @@ -55,14 +95,10 @@ from .models.v1_feature_state import V1FeatureState from .models.v1_feature_vendor_id import V1FeatureVendorID from .models.v1_features import V1Features -from .models.v1_fields_v1 import V1FieldsV1 from .models.v1_firmware import V1Firmware from .models.v1_floppy_target import V1FloppyTarget from .models.v1_gpu import V1GPU -from .models.v1_group_version_for_discovery import V1GroupVersionForDiscovery from .models.v1_hpet_timer import V1HPETTimer -from .models.v1_http_get_action import V1HTTPGetAction -from .models.v1_http_header import V1HTTPHeader from .models.v1_host_disk import V1HostDisk from .models.v1_hugepages import V1Hugepages from .models.v1_hyperv_timer import V1HypervTimer @@ -82,58 +118,25 @@ from .models.v1_kube_virt_self_sign_configuration import V1KubeVirtSelfSignConfiguration from .models.v1_kube_virt_spec import V1KubeVirtSpec from .models.v1_kube_virt_status import V1KubeVirtStatus -from .models.v1_label_selector import V1LabelSelector -from .models.v1_label_selector_requirement import V1LabelSelectorRequirement -from .models.v1_list_meta import V1ListMeta -from .models.v1_local_object_reference import V1LocalObjectReference from .models.v1_lun_target import V1LunTarget from .models.v1_machine import V1Machine -from .models.v1_managed_fields_entry import V1ManagedFieldsEntry from .models.v1_memory import V1Memory from .models.v1_migration_configuration import V1MigrationConfiguration from .models.v1_multus_network import V1MultusNetwork from .models.v1_network import V1Network from .models.v1_network_configuration import V1NetworkConfiguration -from .models.v1_node_affinity import V1NodeAffinity -from .models.v1_node_selector import V1NodeSelector -from .models.v1_node_selector_requirement import V1NodeSelectorRequirement -from .models.v1_node_selector_term import V1NodeSelectorTerm -from .models.v1_object_meta import V1ObjectMeta -from .models.v1_owner_reference import V1OwnerReference from .models.v1_pit_timer import V1PITTimer -from .models.v1_patch import V1Patch -from .models.v1_persistent_volume_claim import V1PersistentVolumeClaim -from .models.v1_persistent_volume_claim_condition import V1PersistentVolumeClaimCondition -from .models.v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec -from .models.v1_persistent_volume_claim_status import V1PersistentVolumeClaimStatus -from .models.v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource -from .models.v1_pod_affinity import V1PodAffinity -from .models.v1_pod_affinity_term import V1PodAffinityTerm -from .models.v1_pod_anti_affinity import V1PodAntiAffinity -from .models.v1_pod_dns_config import V1PodDNSConfig -from .models.v1_pod_dns_config_option import V1PodDNSConfigOption from .models.v1_pod_network import V1PodNetwork from .models.v1_port import V1Port -from .models.v1_preconditions import V1Preconditions -from .models.v1_preferred_scheduling_term import V1PreferredSchedulingTerm from .models.v1_probe import V1Probe from .models.v1_rtc_timer import V1RTCTimer from .models.v1_resource_requirements import V1ResourceRequirements from .models.v1_restart_options import V1RestartOptions from .models.v1_rng import V1Rng -from .models.v1_root_paths import V1RootPaths from .models.v1_sm_bios_configuration import V1SMBiosConfiguration from .models.v1_secret_volume_source import V1SecretVolumeSource -from .models.v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR from .models.v1_service_account_volume_source import V1ServiceAccountVolumeSource -from .models.v1_status import V1Status -from .models.v1_status_cause import V1StatusCause -from .models.v1_status_details import V1StatusDetails -from .models.v1_tcp_socket_action import V1TCPSocketAction -from .models.v1_time import V1Time from .models.v1_timer import V1Timer -from .models.v1_toleration import V1Toleration -from .models.v1_typed_local_object_reference import V1TypedLocalObjectReference from .models.v1_virtual_machine import V1VirtualMachine from .models.v1_virtual_machine_condition import V1VirtualMachineCondition from .models.v1_virtual_machine_instance import V1VirtualMachineInstance @@ -169,9 +172,7 @@ from .models.v1_virtual_machine_state_change_request import V1VirtualMachineStateChangeRequest from .models.v1_virtual_machine_status import V1VirtualMachineStatus from .models.v1_volume import V1Volume -from .models.v1_watch_event import V1WatchEvent from .models.v1_watchdog import V1Watchdog -from .models.v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm from .models.v1alpha1_condition import V1alpha1Condition from .models.v1alpha1_data_volume import V1alpha1DataVolume from .models.v1alpha1_data_volume_blank_image import V1alpha1DataVolumeBlankImage diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index ac3dc405..e49edadd 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.33.0-rc.0-100-g87b59b40/python' + self.user_agent = 'Swagger-Codegen/v0.33.0-rc.0-112-g2152ea2e/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 48ad5e20..c2e39834 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -1259,7 +1259,7 @@ def delete_collection_namespaced_kube_virt(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -1291,7 +1291,7 @@ def delete_collection_namespaced_kube_virt_with_http_info(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -1355,7 +1355,7 @@ def delete_collection_namespaced_kube_virt_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1384,7 +1384,7 @@ def delete_collection_namespaced_virtual_machine(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -1416,7 +1416,7 @@ def delete_collection_namespaced_virtual_machine_with_http_info(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -1480,7 +1480,7 @@ def delete_collection_namespaced_virtual_machine_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1509,7 +1509,7 @@ def delete_collection_namespaced_virtual_machine_instance(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -1541,7 +1541,7 @@ def delete_collection_namespaced_virtual_machine_instance_with_http_info(self, * :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -1605,7 +1605,7 @@ def delete_collection_namespaced_virtual_machine_instance_with_http_info(self, * body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1634,7 +1634,7 @@ def delete_collection_namespaced_virtual_machine_instance_migration(self, **kwar :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -1666,7 +1666,7 @@ def delete_collection_namespaced_virtual_machine_instance_migration_with_http_in :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -1730,7 +1730,7 @@ def delete_collection_namespaced_virtual_machine_instance_migration_with_http_in body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1759,7 +1759,7 @@ def delete_collection_namespaced_virtual_machine_instance_preset(self, **kwargs) :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -1791,7 +1791,7 @@ def delete_collection_namespaced_virtual_machine_instance_preset_with_http_info( :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -1855,7 +1855,7 @@ def delete_collection_namespaced_virtual_machine_instance_preset_with_http_info( body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1884,7 +1884,7 @@ def delete_collection_namespaced_virtual_machine_instance_replica_set(self, **kw :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -1916,7 +1916,7 @@ def delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_ :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -1980,7 +1980,7 @@ def delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_ body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2009,7 +2009,7 @@ def delete_collection_namespaced_virtual_machine_restore(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -2041,7 +2041,7 @@ def delete_collection_namespaced_virtual_machine_restore_with_http_info(self, ** :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -2105,7 +2105,7 @@ def delete_collection_namespaced_virtual_machine_restore_with_http_info(self, ** body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2134,7 +2134,7 @@ def delete_collection_namespaced_virtual_machine_snapshot(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -2166,7 +2166,7 @@ def delete_collection_namespaced_virtual_machine_snapshot_with_http_info(self, * :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -2230,7 +2230,7 @@ def delete_collection_namespaced_virtual_machine_snapshot_with_http_info(self, * body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2259,7 +2259,7 @@ def delete_collection_namespaced_virtual_machine_snapshot_content(self, **kwargs :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -2291,7 +2291,7 @@ def delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -2355,7 +2355,7 @@ def delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2378,11 +2378,11 @@ def delete_namespaced_kube_virt(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -2408,11 +2408,11 @@ def delete_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kw for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -2485,7 +2485,7 @@ def delete_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kw body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2508,11 +2508,11 @@ def delete_namespaced_virtual_machine(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -2538,11 +2538,11 @@ def delete_namespaced_virtual_machine_with_http_info(self, name, namespace, body for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -2615,7 +2615,7 @@ def delete_namespaced_virtual_machine_with_http_info(self, name, namespace, body body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2638,11 +2638,11 @@ def delete_namespaced_virtual_machine_instance(self, name, namespace, body, **kw for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -2668,11 +2668,11 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namesp for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -2745,7 +2745,7 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namesp body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2768,11 +2768,11 @@ def delete_namespaced_virtual_machine_instance_migration(self, name, namespace, for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -2798,11 +2798,11 @@ def delete_namespaced_virtual_machine_instance_migration_with_http_info(self, na for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -2875,7 +2875,7 @@ def delete_namespaced_virtual_machine_instance_migration_with_http_info(self, na body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2898,11 +2898,11 @@ def delete_namespaced_virtual_machine_instance_preset(self, name, namespace, bod for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -2928,11 +2928,11 @@ def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, name, for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -3005,7 +3005,7 @@ def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, name, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3028,11 +3028,11 @@ def delete_namespaced_virtual_machine_instance_replica_set(self, name, namespace for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -3058,11 +3058,11 @@ def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -3135,7 +3135,7 @@ def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3158,11 +3158,11 @@ def delete_namespaced_virtual_machine_restore(self, name, namespace, body, **kwa for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -3188,11 +3188,11 @@ def delete_namespaced_virtual_machine_restore_with_http_info(self, name, namespa for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -3265,7 +3265,7 @@ def delete_namespaced_virtual_machine_restore_with_http_info(self, name, namespa body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3288,11 +3288,11 @@ def delete_namespaced_virtual_machine_snapshot(self, name, namespace, body, **kw for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -3318,11 +3318,11 @@ def delete_namespaced_virtual_machine_snapshot_with_http_info(self, name, namesp for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -3395,7 +3395,7 @@ def delete_namespaced_virtual_machine_snapshot_with_http_info(self, name, namesp body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3418,11 +3418,11 @@ def delete_namespaced_virtual_machine_snapshot_content(self, name, namespace, bo for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -3448,11 +3448,11 @@ def delete_namespaced_virtual_machine_snapshot_content_with_http_info(self, name for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - :return: V1Status + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -3525,7 +3525,7 @@ def delete_namespaced_virtual_machine_snapshot_content_with_http_info(self, name body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3824,7 +3824,7 @@ def get_api_group_kubevirt_io(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :return: K8sIoApimachineryPkgApisMetaV1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -3848,7 +3848,7 @@ def get_api_group_kubevirt_io_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :return: K8sIoApimachineryPkgApisMetaV1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -3895,7 +3895,7 @@ def get_api_group_kubevirt_io_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIGroup', + response_type='K8sIoApimachineryPkgApisMetaV1APIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3916,7 +3916,7 @@ def get_api_group_list(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroupList + :return: K8sIoApimachineryPkgApisMetaV1APIGroupList If the method is called asynchronously, returns the request thread. """ @@ -3940,7 +3940,7 @@ def get_api_group_list_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroupList + :return: K8sIoApimachineryPkgApisMetaV1APIGroupList If the method is called asynchronously, returns the request thread. """ @@ -3987,7 +3987,7 @@ def get_api_group_list_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIGroupList', + response_type='K8sIoApimachineryPkgApisMetaV1APIGroupList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4008,7 +4008,7 @@ def get_api_group_snapshot_kubevirt_io(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :return: K8sIoApimachineryPkgApisMetaV1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -4032,7 +4032,7 @@ def get_api_group_snapshot_kubevirt_io_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :return: K8sIoApimachineryPkgApisMetaV1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -4079,7 +4079,7 @@ def get_api_group_snapshot_kubevirt_io_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIGroup', + response_type='K8sIoApimachineryPkgApisMetaV1APIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4100,7 +4100,7 @@ def get_api_resources_kubevirt_io_v1alpha3(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList If the method is called asynchronously, returns the request thread. """ @@ -4124,7 +4124,7 @@ def get_api_resources_kubevirt_io_v1alpha3_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList If the method is called asynchronously, returns the request thread. """ @@ -4171,7 +4171,7 @@ def get_api_resources_kubevirt_io_v1alpha3_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIResourceList', + response_type='K8sIoApimachineryPkgApisMetaV1APIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4192,7 +4192,7 @@ def get_api_resources_snapshot_kubevirt_io_v1alpha1(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList If the method is called asynchronously, returns the request thread. """ @@ -4216,7 +4216,7 @@ def get_api_resources_snapshot_kubevirt_io_v1alpha1_with_http_info(self, **kwarg :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList If the method is called asynchronously, returns the request thread. """ @@ -4263,7 +4263,7 @@ def get_api_resources_snapshot_kubevirt_io_v1alpha1_with_http_info(self, **kwarg body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIResourceList', + response_type='K8sIoApimachineryPkgApisMetaV1APIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4284,7 +4284,7 @@ def get_api_sub_resources(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList If the method is called asynchronously, returns the request thread. """ @@ -4308,7 +4308,7 @@ def get_api_sub_resources_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList If the method is called asynchronously, returns the request thread. """ @@ -4355,7 +4355,7 @@ def get_api_sub_resources_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIResourceList', + response_type='K8sIoApimachineryPkgApisMetaV1APIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4376,7 +4376,7 @@ def get_root_paths(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1RootPaths + :return: K8sIoApimachineryPkgApisMetaV1RootPaths If the method is called asynchronously, returns the request thread. """ @@ -4400,7 +4400,7 @@ def get_root_paths_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1RootPaths + :return: K8sIoApimachineryPkgApisMetaV1RootPaths If the method is called asynchronously, returns the request thread. """ @@ -4447,7 +4447,7 @@ def get_root_paths_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1RootPaths', + response_type='K8sIoApimachineryPkgApisMetaV1RootPaths', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4468,7 +4468,7 @@ def get_sub_api_group(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :return: K8sIoApimachineryPkgApisMetaV1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -4492,7 +4492,7 @@ def get_sub_api_group_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :return: K8sIoApimachineryPkgApisMetaV1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -4539,7 +4539,7 @@ def get_sub_api_group_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1APIGroup', + response_type='K8sIoApimachineryPkgApisMetaV1APIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7089,7 +7089,7 @@ def patch_namespaced_kube_virt(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) :return: V1KubeVirt If the method is called asynchronously, returns the request thread. @@ -7116,7 +7116,7 @@ def patch_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwa for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) :return: V1KubeVirt If the method is called asynchronously, returns the request thread. @@ -7207,7 +7207,7 @@ def patch_namespaced_virtual_machine(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. @@ -7234,7 +7234,7 @@ def patch_namespaced_virtual_machine_with_http_info(self, name, namespace, body, for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. @@ -7325,7 +7325,7 @@ def patch_namespaced_virtual_machine_instance(self, name, namespace, body, **kwa for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. @@ -7352,7 +7352,7 @@ def patch_namespaced_virtual_machine_instance_with_http_info(self, name, namespa for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. @@ -7443,7 +7443,7 @@ def patch_namespaced_virtual_machine_instance_migration(self, name, namespace, b for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) :return: V1VirtualMachineInstanceMigration If the method is called asynchronously, returns the request thread. @@ -7470,7 +7470,7 @@ def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) :return: V1VirtualMachineInstanceMigration If the method is called asynchronously, returns the request thread. @@ -7561,7 +7561,7 @@ def patch_namespaced_virtual_machine_instance_preset(self, name, namespace, body for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. @@ -7588,7 +7588,7 @@ def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. @@ -7679,7 +7679,7 @@ def patch_namespaced_virtual_machine_instance_replica_set(self, name, namespace, for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. @@ -7706,7 +7706,7 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. @@ -7797,7 +7797,7 @@ def patch_namespaced_virtual_machine_restore(self, name, namespace, body, **kwar for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) :return: V1alpha1VirtualMachineRestore If the method is called asynchronously, returns the request thread. @@ -7824,7 +7824,7 @@ def patch_namespaced_virtual_machine_restore_with_http_info(self, name, namespac for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) :return: V1alpha1VirtualMachineRestore If the method is called asynchronously, returns the request thread. @@ -7915,7 +7915,7 @@ def patch_namespaced_virtual_machine_snapshot(self, name, namespace, body, **kwa for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) :return: V1alpha1VirtualMachineSnapshot If the method is called asynchronously, returns the request thread. @@ -7942,7 +7942,7 @@ def patch_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespa for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) :return: V1alpha1VirtualMachineSnapshot If the method is called asynchronously, returns the request thread. @@ -8033,7 +8033,7 @@ def patch_namespaced_virtual_machine_snapshot_content(self, name, namespace, bod for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) :return: V1alpha1VirtualMachineSnapshotContent If the method is called asynchronously, returns the request thread. @@ -8060,7 +8060,7 @@ def patch_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) :return: V1alpha1VirtualMachineSnapshotContent If the method is called asynchronously, returns the request thread. @@ -11268,7 +11268,7 @@ def watch_kube_virt_list_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -11300,7 +11300,7 @@ def watch_kube_virt_list_for_all_namespaces_with_http_info(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -11364,7 +11364,7 @@ def watch_kube_virt_list_for_all_namespaces_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1WatchEvent', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11394,7 +11394,7 @@ def watch_namespaced_kube_virt(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -11427,7 +11427,7 @@ def watch_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -11496,7 +11496,7 @@ def watch_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1WatchEvent', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11526,7 +11526,7 @@ def watch_namespaced_virtual_machine(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -11559,7 +11559,7 @@ def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -11628,7 +11628,7 @@ def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1WatchEvent', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11658,7 +11658,7 @@ def watch_namespaced_virtual_machine_instance(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -11691,7 +11691,7 @@ def watch_namespaced_virtual_machine_instance_with_http_info(self, namespace, ** :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -11760,7 +11760,7 @@ def watch_namespaced_virtual_machine_instance_with_http_info(self, namespace, ** body=body_params, post_params=form_params, files=local_var_files, - response_type='V1WatchEvent', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11790,7 +11790,7 @@ def watch_namespaced_virtual_machine_instance_migration(self, namespace, **kwarg :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -11823,7 +11823,7 @@ def watch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -11892,7 +11892,7 @@ def watch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam body=body_params, post_params=form_params, files=local_var_files, - response_type='V1WatchEvent', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11922,7 +11922,7 @@ def watch_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -11955,7 +11955,7 @@ def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namesp :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -12024,7 +12024,7 @@ def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namesp body=body_params, post_params=form_params, files=local_var_files, - response_type='V1WatchEvent', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12054,7 +12054,7 @@ def watch_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwa :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -12087,7 +12087,7 @@ def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -12156,7 +12156,7 @@ def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n body=body_params, post_params=form_params, files=local_var_files, - response_type='V1WatchEvent', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12186,7 +12186,7 @@ def watch_namespaced_virtual_machine_restore(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -12219,7 +12219,7 @@ def watch_namespaced_virtual_machine_restore_with_http_info(self, namespace, **k :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -12288,7 +12288,7 @@ def watch_namespaced_virtual_machine_restore_with_http_info(self, namespace, **k body=body_params, post_params=form_params, files=local_var_files, - response_type='V1WatchEvent', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12318,7 +12318,7 @@ def watch_namespaced_virtual_machine_snapshot(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -12351,7 +12351,7 @@ def watch_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, ** :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -12420,7 +12420,7 @@ def watch_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, ** body=body_params, post_params=form_params, files=local_var_files, - response_type='V1WatchEvent', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12450,7 +12450,7 @@ def watch_namespaced_virtual_machine_snapshot_content(self, namespace, **kwargs) :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -12483,7 +12483,7 @@ def watch_namespaced_virtual_machine_snapshot_content_with_http_info(self, names :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -12552,7 +12552,7 @@ def watch_namespaced_virtual_machine_snapshot_content_with_http_info(self, names body=body_params, post_params=form_params, files=local_var_files, - response_type='V1WatchEvent', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12581,7 +12581,7 @@ def watch_virtual_machine_instance_list_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -12613,7 +12613,7 @@ def watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(self, :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -12677,7 +12677,7 @@ def watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(self, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1WatchEvent', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12706,7 +12706,7 @@ def watch_virtual_machine_instance_migration_list_for_all_namespaces(self, **kwa :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -12738,7 +12738,7 @@ def watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_i :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -12802,7 +12802,7 @@ def watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_i body=body_params, post_params=form_params, files=local_var_files, - response_type='V1WatchEvent', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12831,7 +12831,7 @@ def watch_virtual_machine_instance_preset_list_for_all_namespaces(self, **kwargs :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -12863,7 +12863,7 @@ def watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -12927,7 +12927,7 @@ def watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info body=body_params, post_params=form_params, files=local_var_files, - response_type='V1WatchEvent', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12956,7 +12956,7 @@ def watch_virtual_machine_instance_replica_set_list_for_all_namespaces(self, **k :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -12988,7 +12988,7 @@ def watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -13052,7 +13052,7 @@ def watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http body=body_params, post_params=form_params, files=local_var_files, - response_type='V1WatchEvent', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13081,7 +13081,7 @@ def watch_virtual_machine_list_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -13113,7 +13113,7 @@ def watch_virtual_machine_list_for_all_namespaces_with_http_info(self, **kwargs) :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -13177,7 +13177,7 @@ def watch_virtual_machine_list_for_all_namespaces_with_http_info(self, **kwargs) body=body_params, post_params=form_params, files=local_var_files, - response_type='V1WatchEvent', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13206,7 +13206,7 @@ def watch_virtual_machine_restore_list_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -13238,7 +13238,7 @@ def watch_virtual_machine_restore_list_for_all_namespaces_with_http_info(self, * :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -13302,7 +13302,7 @@ def watch_virtual_machine_restore_list_for_all_namespaces_with_http_info(self, * body=body_params, post_params=form_params, files=local_var_files, - response_type='V1WatchEvent', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13331,7 +13331,7 @@ def watch_virtual_machine_snapshot_content_list_for_all_namespaces(self, **kwarg :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -13363,7 +13363,7 @@ def watch_virtual_machine_snapshot_content_list_for_all_namespaces_with_http_inf :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -13427,7 +13427,7 @@ def watch_virtual_machine_snapshot_content_list_for_all_namespaces_with_http_inf body=body_params, post_params=form_params, files=local_var_files, - response_type='V1WatchEvent', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13456,7 +13456,7 @@ def watch_virtual_machine_snapshot_list_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -13488,7 +13488,7 @@ def watch_virtual_machine_snapshot_list_for_all_namespaces_with_http_info(self, :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1WatchEvent + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ @@ -13552,7 +13552,7 @@ def watch_virtual_machine_snapshot_list_for_all_namespaces_with_http_info(self, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1WatchEvent', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c2d68aa5..c1b0dd14 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.33.0-rc.0-100-g87b59b40".\ + "SDK Package Version: v0.33.0-rc.0-112-g2152ea2e".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 4e20b04d..d8a79a40 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -14,14 +14,56 @@ from __future__ import absolute_import # import models into model package -from .intstr_int_or_string import IntstrIntOrString -from .resource_quantity import ResourceQuantity -from .runtime_raw_extension import RuntimeRawExtension -from .v1_api_group import V1APIGroup -from .v1_api_group_list import V1APIGroupList -from .v1_api_resource import V1APIResource -from .v1_api_resource_list import V1APIResourceList -from .v1_affinity import V1Affinity +from .k8s_io_api_core_v1_affinity import K8sIoApiCoreV1Affinity +from .k8s_io_api_core_v1_http_get_action import K8sIoApiCoreV1HTTPGetAction +from .k8s_io_api_core_v1_http_header import K8sIoApiCoreV1HTTPHeader +from .k8s_io_api_core_v1_local_object_reference import K8sIoApiCoreV1LocalObjectReference +from .k8s_io_api_core_v1_node_affinity import K8sIoApiCoreV1NodeAffinity +from .k8s_io_api_core_v1_node_selector import K8sIoApiCoreV1NodeSelector +from .k8s_io_api_core_v1_node_selector_requirement import K8sIoApiCoreV1NodeSelectorRequirement +from .k8s_io_api_core_v1_node_selector_term import K8sIoApiCoreV1NodeSelectorTerm +from .k8s_io_api_core_v1_persistent_volume_claim import K8sIoApiCoreV1PersistentVolumeClaim +from .k8s_io_api_core_v1_persistent_volume_claim_condition import K8sIoApiCoreV1PersistentVolumeClaimCondition +from .k8s_io_api_core_v1_persistent_volume_claim_spec import K8sIoApiCoreV1PersistentVolumeClaimSpec +from .k8s_io_api_core_v1_persistent_volume_claim_status import K8sIoApiCoreV1PersistentVolumeClaimStatus +from .k8s_io_api_core_v1_persistent_volume_claim_volume_source import K8sIoApiCoreV1PersistentVolumeClaimVolumeSource +from .k8s_io_api_core_v1_pod_affinity import K8sIoApiCoreV1PodAffinity +from .k8s_io_api_core_v1_pod_affinity_term import K8sIoApiCoreV1PodAffinityTerm +from .k8s_io_api_core_v1_pod_anti_affinity import K8sIoApiCoreV1PodAntiAffinity +from .k8s_io_api_core_v1_pod_dns_config import K8sIoApiCoreV1PodDNSConfig +from .k8s_io_api_core_v1_pod_dns_config_option import K8sIoApiCoreV1PodDNSConfigOption +from .k8s_io_api_core_v1_preferred_scheduling_term import K8sIoApiCoreV1PreferredSchedulingTerm +from .k8s_io_api_core_v1_resource_requirements import K8sIoApiCoreV1ResourceRequirements +from .k8s_io_api_core_v1_tcp_socket_action import K8sIoApiCoreV1TCPSocketAction +from .k8s_io_api_core_v1_toleration import K8sIoApiCoreV1Toleration +from .k8s_io_api_core_v1_typed_local_object_reference import K8sIoApiCoreV1TypedLocalObjectReference +from .k8s_io_api_core_v1_weighted_pod_affinity_term import K8sIoApiCoreV1WeightedPodAffinityTerm +from .k8s_io_apimachinery_pkg_api_resource_quantity import K8sIoApimachineryPkgApiResourceQuantity +from .k8s_io_apimachinery_pkg_apis_meta_v1_api_group import K8sIoApimachineryPkgApisMetaV1APIGroup +from .k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list import K8sIoApimachineryPkgApisMetaV1APIGroupList +from .k8s_io_apimachinery_pkg_apis_meta_v1_api_resource import K8sIoApimachineryPkgApisMetaV1APIResource +from .k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_list import K8sIoApimachineryPkgApisMetaV1APIResourceList +from .k8s_io_apimachinery_pkg_apis_meta_v1_delete_options import K8sIoApimachineryPkgApisMetaV1DeleteOptions +from .k8s_io_apimachinery_pkg_apis_meta_v1_duration import K8sIoApimachineryPkgApisMetaV1Duration +from .k8s_io_apimachinery_pkg_apis_meta_v1_fields_v1 import K8sIoApimachineryPkgApisMetaV1FieldsV1 +from .k8s_io_apimachinery_pkg_apis_meta_v1_group_version_for_discovery import K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery +from .k8s_io_apimachinery_pkg_apis_meta_v1_label_selector import K8sIoApimachineryPkgApisMetaV1LabelSelector +from .k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_requirement import K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement +from .k8s_io_apimachinery_pkg_apis_meta_v1_list_meta import K8sIoApimachineryPkgApisMetaV1ListMeta +from .k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry import K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry +from .k8s_io_apimachinery_pkg_apis_meta_v1_object_meta import K8sIoApimachineryPkgApisMetaV1ObjectMeta +from .k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference import K8sIoApimachineryPkgApisMetaV1OwnerReference +from .k8s_io_apimachinery_pkg_apis_meta_v1_patch import K8sIoApimachineryPkgApisMetaV1Patch +from .k8s_io_apimachinery_pkg_apis_meta_v1_preconditions import K8sIoApimachineryPkgApisMetaV1Preconditions +from .k8s_io_apimachinery_pkg_apis_meta_v1_root_paths import K8sIoApimachineryPkgApisMetaV1RootPaths +from .k8s_io_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr import K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR +from .k8s_io_apimachinery_pkg_apis_meta_v1_status import K8sIoApimachineryPkgApisMetaV1Status +from .k8s_io_apimachinery_pkg_apis_meta_v1_status_cause import K8sIoApimachineryPkgApisMetaV1StatusCause +from .k8s_io_apimachinery_pkg_apis_meta_v1_status_details import K8sIoApimachineryPkgApisMetaV1StatusDetails +from .k8s_io_apimachinery_pkg_apis_meta_v1_time import K8sIoApimachineryPkgApisMetaV1Time +from .k8s_io_apimachinery_pkg_apis_meta_v1_watch_event import K8sIoApimachineryPkgApisMetaV1WatchEvent +from .k8s_io_apimachinery_pkg_runtime_raw_extension import K8sIoApimachineryPkgRuntimeRawExtension +from .k8s_io_apimachinery_pkg_util_intstr_int_or_string import K8sIoApimachineryPkgUtilIntstrIntOrString from .v1_bios import V1BIOS from .v1_bootloader import V1Bootloader from .v1_cd_rom_target import V1CDRomTarget @@ -39,13 +81,11 @@ from .v1_dhcp_options import V1DHCPOptions from .v1_dhcp_private_options import V1DHCPPrivateOptions from .v1_data_volume_source import V1DataVolumeSource -from .v1_delete_options import V1DeleteOptions from .v1_developer_configuration import V1DeveloperConfiguration from .v1_devices import V1Devices from .v1_disk import V1Disk from .v1_disk_target import V1DiskTarget from .v1_domain_spec import V1DomainSpec -from .v1_duration import V1Duration from .v1_efi import V1EFI from .v1_empty_disk_source import V1EmptyDiskSource from .v1_ephemeral_volume_source import V1EphemeralVolumeSource @@ -55,14 +95,10 @@ from .v1_feature_state import V1FeatureState from .v1_feature_vendor_id import V1FeatureVendorID from .v1_features import V1Features -from .v1_fields_v1 import V1FieldsV1 from .v1_firmware import V1Firmware from .v1_floppy_target import V1FloppyTarget from .v1_gpu import V1GPU -from .v1_group_version_for_discovery import V1GroupVersionForDiscovery from .v1_hpet_timer import V1HPETTimer -from .v1_http_get_action import V1HTTPGetAction -from .v1_http_header import V1HTTPHeader from .v1_host_disk import V1HostDisk from .v1_hugepages import V1Hugepages from .v1_hyperv_timer import V1HypervTimer @@ -82,58 +118,25 @@ from .v1_kube_virt_self_sign_configuration import V1KubeVirtSelfSignConfiguration from .v1_kube_virt_spec import V1KubeVirtSpec from .v1_kube_virt_status import V1KubeVirtStatus -from .v1_label_selector import V1LabelSelector -from .v1_label_selector_requirement import V1LabelSelectorRequirement -from .v1_list_meta import V1ListMeta -from .v1_local_object_reference import V1LocalObjectReference from .v1_lun_target import V1LunTarget from .v1_machine import V1Machine -from .v1_managed_fields_entry import V1ManagedFieldsEntry from .v1_memory import V1Memory from .v1_migration_configuration import V1MigrationConfiguration from .v1_multus_network import V1MultusNetwork from .v1_network import V1Network from .v1_network_configuration import V1NetworkConfiguration -from .v1_node_affinity import V1NodeAffinity -from .v1_node_selector import V1NodeSelector -from .v1_node_selector_requirement import V1NodeSelectorRequirement -from .v1_node_selector_term import V1NodeSelectorTerm -from .v1_object_meta import V1ObjectMeta -from .v1_owner_reference import V1OwnerReference from .v1_pit_timer import V1PITTimer -from .v1_patch import V1Patch -from .v1_persistent_volume_claim import V1PersistentVolumeClaim -from .v1_persistent_volume_claim_condition import V1PersistentVolumeClaimCondition -from .v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec -from .v1_persistent_volume_claim_status import V1PersistentVolumeClaimStatus -from .v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource -from .v1_pod_affinity import V1PodAffinity -from .v1_pod_affinity_term import V1PodAffinityTerm -from .v1_pod_anti_affinity import V1PodAntiAffinity -from .v1_pod_dns_config import V1PodDNSConfig -from .v1_pod_dns_config_option import V1PodDNSConfigOption from .v1_pod_network import V1PodNetwork from .v1_port import V1Port -from .v1_preconditions import V1Preconditions -from .v1_preferred_scheduling_term import V1PreferredSchedulingTerm from .v1_probe import V1Probe from .v1_rtc_timer import V1RTCTimer from .v1_resource_requirements import V1ResourceRequirements from .v1_restart_options import V1RestartOptions from .v1_rng import V1Rng -from .v1_root_paths import V1RootPaths from .v1_sm_bios_configuration import V1SMBiosConfiguration from .v1_secret_volume_source import V1SecretVolumeSource -from .v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR from .v1_service_account_volume_source import V1ServiceAccountVolumeSource -from .v1_status import V1Status -from .v1_status_cause import V1StatusCause -from .v1_status_details import V1StatusDetails -from .v1_tcp_socket_action import V1TCPSocketAction -from .v1_time import V1Time from .v1_timer import V1Timer -from .v1_toleration import V1Toleration -from .v1_typed_local_object_reference import V1TypedLocalObjectReference from .v1_virtual_machine import V1VirtualMachine from .v1_virtual_machine_condition import V1VirtualMachineCondition from .v1_virtual_machine_instance import V1VirtualMachineInstance @@ -169,9 +172,7 @@ from .v1_virtual_machine_state_change_request import V1VirtualMachineStateChangeRequest from .v1_virtual_machine_status import V1VirtualMachineStatus from .v1_volume import V1Volume -from .v1_watch_event import V1WatchEvent from .v1_watchdog import V1Watchdog -from .v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm from .v1alpha1_condition import V1alpha1Condition from .v1alpha1_data_volume import V1alpha1DataVolume from .v1alpha1_data_volume_blank_image import V1alpha1DataVolumeBlankImage diff --git a/kubevirt/models/v1_affinity.py b/kubevirt/models/k8s_io_api_core_v1_affinity.py similarity index 75% rename from kubevirt/models/v1_affinity.py rename to kubevirt/models/k8s_io_api_core_v1_affinity.py index 1f164131..83eb8fae 100644 --- a/kubevirt/models/v1_affinity.py +++ b/kubevirt/models/k8s_io_api_core_v1_affinity.py @@ -16,7 +16,7 @@ import re -class V1Affinity(object): +class K8sIoApiCoreV1Affinity(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,9 +31,9 @@ class V1Affinity(object): and the value is json key in definition. """ swagger_types = { - 'node_affinity': 'V1NodeAffinity', - 'pod_affinity': 'V1PodAffinity', - 'pod_anti_affinity': 'V1PodAntiAffinity' + 'node_affinity': 'K8sIoApiCoreV1NodeAffinity', + 'pod_affinity': 'K8sIoApiCoreV1PodAffinity', + 'pod_anti_affinity': 'K8sIoApiCoreV1PodAntiAffinity' } attribute_map = { @@ -44,7 +44,7 @@ class V1Affinity(object): def __init__(self, node_affinity=None, pod_affinity=None, pod_anti_affinity=None): """ - V1Affinity - a model defined in Swagger + K8sIoApiCoreV1Affinity - a model defined in Swagger """ self._node_affinity = None @@ -61,22 +61,22 @@ def __init__(self, node_affinity=None, pod_affinity=None, pod_anti_affinity=None @property def node_affinity(self): """ - Gets the node_affinity of this V1Affinity. + Gets the node_affinity of this K8sIoApiCoreV1Affinity. Describes node affinity scheduling rules for the pod. - :return: The node_affinity of this V1Affinity. - :rtype: V1NodeAffinity + :return: The node_affinity of this K8sIoApiCoreV1Affinity. + :rtype: K8sIoApiCoreV1NodeAffinity """ return self._node_affinity @node_affinity.setter def node_affinity(self, node_affinity): """ - Sets the node_affinity of this V1Affinity. + Sets the node_affinity of this K8sIoApiCoreV1Affinity. Describes node affinity scheduling rules for the pod. - :param node_affinity: The node_affinity of this V1Affinity. - :type: V1NodeAffinity + :param node_affinity: The node_affinity of this K8sIoApiCoreV1Affinity. + :type: K8sIoApiCoreV1NodeAffinity """ self._node_affinity = node_affinity @@ -84,22 +84,22 @@ def node_affinity(self, node_affinity): @property def pod_affinity(self): """ - Gets the pod_affinity of this V1Affinity. + Gets the pod_affinity of this K8sIoApiCoreV1Affinity. Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - :return: The pod_affinity of this V1Affinity. - :rtype: V1PodAffinity + :return: The pod_affinity of this K8sIoApiCoreV1Affinity. + :rtype: K8sIoApiCoreV1PodAffinity """ return self._pod_affinity @pod_affinity.setter def pod_affinity(self, pod_affinity): """ - Sets the pod_affinity of this V1Affinity. + Sets the pod_affinity of this K8sIoApiCoreV1Affinity. Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - :param pod_affinity: The pod_affinity of this V1Affinity. - :type: V1PodAffinity + :param pod_affinity: The pod_affinity of this K8sIoApiCoreV1Affinity. + :type: K8sIoApiCoreV1PodAffinity """ self._pod_affinity = pod_affinity @@ -107,22 +107,22 @@ def pod_affinity(self, pod_affinity): @property def pod_anti_affinity(self): """ - Gets the pod_anti_affinity of this V1Affinity. + Gets the pod_anti_affinity of this K8sIoApiCoreV1Affinity. Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - :return: The pod_anti_affinity of this V1Affinity. - :rtype: V1PodAntiAffinity + :return: The pod_anti_affinity of this K8sIoApiCoreV1Affinity. + :rtype: K8sIoApiCoreV1PodAntiAffinity """ return self._pod_anti_affinity @pod_anti_affinity.setter def pod_anti_affinity(self, pod_anti_affinity): """ - Sets the pod_anti_affinity of this V1Affinity. + Sets the pod_anti_affinity of this K8sIoApiCoreV1Affinity. Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - :param pod_anti_affinity: The pod_anti_affinity of this V1Affinity. - :type: V1PodAntiAffinity + :param pod_anti_affinity: The pod_anti_affinity of this K8sIoApiCoreV1Affinity. + :type: K8sIoApiCoreV1PodAntiAffinity """ self._pod_anti_affinity = pod_anti_affinity @@ -169,7 +169,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1Affinity): + if not isinstance(other, K8sIoApiCoreV1Affinity): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_http_get_action.py b/kubevirt/models/k8s_io_api_core_v1_http_get_action.py similarity index 76% rename from kubevirt/models/v1_http_get_action.py rename to kubevirt/models/k8s_io_api_core_v1_http_get_action.py index 34d76c89..1a5c9a77 100644 --- a/kubevirt/models/v1_http_get_action.py +++ b/kubevirt/models/k8s_io_api_core_v1_http_get_action.py @@ -16,7 +16,7 @@ import re -class V1HTTPGetAction(object): +class K8sIoApiCoreV1HTTPGetAction(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class V1HTTPGetAction(object): """ swagger_types = { 'host': 'str', - 'http_headers': 'list[V1HTTPHeader]', + 'http_headers': 'list[K8sIoApiCoreV1HTTPHeader]', 'path': 'str', 'scheme': 'str' } @@ -46,7 +46,7 @@ class V1HTTPGetAction(object): def __init__(self, host=None, http_headers=None, path=None, scheme=None): """ - V1HTTPGetAction - a model defined in Swagger + K8sIoApiCoreV1HTTPGetAction - a model defined in Swagger """ self._host = None @@ -66,10 +66,10 @@ def __init__(self, host=None, http_headers=None, path=None, scheme=None): @property def host(self): """ - Gets the host of this V1HTTPGetAction. + Gets the host of this K8sIoApiCoreV1HTTPGetAction. Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. - :return: The host of this V1HTTPGetAction. + :return: The host of this K8sIoApiCoreV1HTTPGetAction. :rtype: str """ return self._host @@ -77,10 +77,10 @@ def host(self): @host.setter def host(self, host): """ - Sets the host of this V1HTTPGetAction. + Sets the host of this K8sIoApiCoreV1HTTPGetAction. Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. - :param host: The host of this V1HTTPGetAction. + :param host: The host of this K8sIoApiCoreV1HTTPGetAction. :type: str """ @@ -89,22 +89,22 @@ def host(self, host): @property def http_headers(self): """ - Gets the http_headers of this V1HTTPGetAction. + Gets the http_headers of this K8sIoApiCoreV1HTTPGetAction. Custom headers to set in the request. HTTP allows repeated headers. - :return: The http_headers of this V1HTTPGetAction. - :rtype: list[V1HTTPHeader] + :return: The http_headers of this K8sIoApiCoreV1HTTPGetAction. + :rtype: list[K8sIoApiCoreV1HTTPHeader] """ return self._http_headers @http_headers.setter def http_headers(self, http_headers): """ - Sets the http_headers of this V1HTTPGetAction. + Sets the http_headers of this K8sIoApiCoreV1HTTPGetAction. Custom headers to set in the request. HTTP allows repeated headers. - :param http_headers: The http_headers of this V1HTTPGetAction. - :type: list[V1HTTPHeader] + :param http_headers: The http_headers of this K8sIoApiCoreV1HTTPGetAction. + :type: list[K8sIoApiCoreV1HTTPHeader] """ self._http_headers = http_headers @@ -112,10 +112,10 @@ def http_headers(self, http_headers): @property def path(self): """ - Gets the path of this V1HTTPGetAction. + Gets the path of this K8sIoApiCoreV1HTTPGetAction. Path to access on the HTTP server. - :return: The path of this V1HTTPGetAction. + :return: The path of this K8sIoApiCoreV1HTTPGetAction. :rtype: str """ return self._path @@ -123,10 +123,10 @@ def path(self): @path.setter def path(self, path): """ - Sets the path of this V1HTTPGetAction. + Sets the path of this K8sIoApiCoreV1HTTPGetAction. Path to access on the HTTP server. - :param path: The path of this V1HTTPGetAction. + :param path: The path of this K8sIoApiCoreV1HTTPGetAction. :type: str """ @@ -135,10 +135,10 @@ def path(self, path): @property def scheme(self): """ - Gets the scheme of this V1HTTPGetAction. + Gets the scheme of this K8sIoApiCoreV1HTTPGetAction. Scheme to use for connecting to the host. Defaults to HTTP. - :return: The scheme of this V1HTTPGetAction. + :return: The scheme of this K8sIoApiCoreV1HTTPGetAction. :rtype: str """ return self._scheme @@ -146,10 +146,10 @@ def scheme(self): @scheme.setter def scheme(self, scheme): """ - Sets the scheme of this V1HTTPGetAction. + Sets the scheme of this K8sIoApiCoreV1HTTPGetAction. Scheme to use for connecting to the host. Defaults to HTTP. - :param scheme: The scheme of this V1HTTPGetAction. + :param scheme: The scheme of this K8sIoApiCoreV1HTTPGetAction. :type: str """ @@ -197,7 +197,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1HTTPGetAction): + if not isinstance(other, K8sIoApiCoreV1HTTPGetAction): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_http_header.py b/kubevirt/models/k8s_io_api_core_v1_http_header.py similarity index 83% rename from kubevirt/models/v1_http_header.py rename to kubevirt/models/k8s_io_api_core_v1_http_header.py index 06d5aa61..1a9f7759 100644 --- a/kubevirt/models/v1_http_header.py +++ b/kubevirt/models/k8s_io_api_core_v1_http_header.py @@ -16,7 +16,7 @@ import re -class V1HTTPHeader(object): +class K8sIoApiCoreV1HTTPHeader(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class V1HTTPHeader(object): def __init__(self, name=None, value=None): """ - V1HTTPHeader - a model defined in Swagger + K8sIoApiCoreV1HTTPHeader - a model defined in Swagger """ self._name = None @@ -54,10 +54,10 @@ def __init__(self, name=None, value=None): @property def name(self): """ - Gets the name of this V1HTTPHeader. + Gets the name of this K8sIoApiCoreV1HTTPHeader. The header field name - :return: The name of this V1HTTPHeader. + :return: The name of this K8sIoApiCoreV1HTTPHeader. :rtype: str """ return self._name @@ -65,10 +65,10 @@ def name(self): @name.setter def name(self, name): """ - Sets the name of this V1HTTPHeader. + Sets the name of this K8sIoApiCoreV1HTTPHeader. The header field name - :param name: The name of this V1HTTPHeader. + :param name: The name of this K8sIoApiCoreV1HTTPHeader. :type: str """ if name is None: @@ -79,10 +79,10 @@ def name(self, name): @property def value(self): """ - Gets the value of this V1HTTPHeader. + Gets the value of this K8sIoApiCoreV1HTTPHeader. The header field value - :return: The value of this V1HTTPHeader. + :return: The value of this K8sIoApiCoreV1HTTPHeader. :rtype: str """ return self._value @@ -90,10 +90,10 @@ def value(self): @value.setter def value(self, value): """ - Sets the value of this V1HTTPHeader. + Sets the value of this K8sIoApiCoreV1HTTPHeader. The header field value - :param value: The value of this V1HTTPHeader. + :param value: The value of this K8sIoApiCoreV1HTTPHeader. :type: str """ if value is None: @@ -143,7 +143,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1HTTPHeader): + if not isinstance(other, K8sIoApiCoreV1HTTPHeader): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_local_object_reference.py b/kubevirt/models/k8s_io_api_core_v1_local_object_reference.py similarity index 85% rename from kubevirt/models/v1_local_object_reference.py rename to kubevirt/models/k8s_io_api_core_v1_local_object_reference.py index 2e9cad07..77485e68 100644 --- a/kubevirt/models/v1_local_object_reference.py +++ b/kubevirt/models/k8s_io_api_core_v1_local_object_reference.py @@ -16,7 +16,7 @@ import re -class V1LocalObjectReference(object): +class K8sIoApiCoreV1LocalObjectReference(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,7 +40,7 @@ class V1LocalObjectReference(object): def __init__(self, name=None): """ - V1LocalObjectReference - a model defined in Swagger + K8sIoApiCoreV1LocalObjectReference - a model defined in Swagger """ self._name = None @@ -51,10 +51,10 @@ def __init__(self, name=None): @property def name(self): """ - Gets the name of this V1LocalObjectReference. + Gets the name of this K8sIoApiCoreV1LocalObjectReference. Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - :return: The name of this V1LocalObjectReference. + :return: The name of this K8sIoApiCoreV1LocalObjectReference. :rtype: str """ return self._name @@ -62,10 +62,10 @@ def name(self): @name.setter def name(self, name): """ - Sets the name of this V1LocalObjectReference. + Sets the name of this K8sIoApiCoreV1LocalObjectReference. Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - :param name: The name of this V1LocalObjectReference. + :param name: The name of this K8sIoApiCoreV1LocalObjectReference. :type: str """ @@ -113,7 +113,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1LocalObjectReference): + if not isinstance(other, K8sIoApiCoreV1LocalObjectReference): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_node_affinity.py b/kubevirt/models/k8s_io_api_core_v1_node_affinity.py similarity index 89% rename from kubevirt/models/v1_node_affinity.py rename to kubevirt/models/k8s_io_api_core_v1_node_affinity.py index 6d968dd1..00a8785b 100644 --- a/kubevirt/models/v1_node_affinity.py +++ b/kubevirt/models/k8s_io_api_core_v1_node_affinity.py @@ -16,7 +16,7 @@ import re -class V1NodeAffinity(object): +class K8sIoApiCoreV1NodeAffinity(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,8 +31,8 @@ class V1NodeAffinity(object): and the value is json key in definition. """ swagger_types = { - 'preferred_during_scheduling_ignored_during_execution': 'list[V1PreferredSchedulingTerm]', - 'required_during_scheduling_ignored_during_execution': 'V1NodeSelector' + 'preferred_during_scheduling_ignored_during_execution': 'list[K8sIoApiCoreV1PreferredSchedulingTerm]', + 'required_during_scheduling_ignored_during_execution': 'K8sIoApiCoreV1NodeSelector' } attribute_map = { @@ -42,7 +42,7 @@ class V1NodeAffinity(object): def __init__(self, preferred_during_scheduling_ignored_during_execution=None, required_during_scheduling_ignored_during_execution=None): """ - V1NodeAffinity - a model defined in Swagger + K8sIoApiCoreV1NodeAffinity - a model defined in Swagger """ self._preferred_during_scheduling_ignored_during_execution = None @@ -56,22 +56,22 @@ def __init__(self, preferred_during_scheduling_ignored_during_execution=None, re @property def preferred_during_scheduling_ignored_during_execution(self): """ - Gets the preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. + Gets the preferred_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1NodeAffinity. The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - :return: The preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. - :rtype: list[V1PreferredSchedulingTerm] + :return: The preferred_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1NodeAffinity. + :rtype: list[K8sIoApiCoreV1PreferredSchedulingTerm] """ return self._preferred_during_scheduling_ignored_during_execution @preferred_during_scheduling_ignored_during_execution.setter def preferred_during_scheduling_ignored_during_execution(self, preferred_during_scheduling_ignored_during_execution): """ - Sets the preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. + Sets the preferred_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1NodeAffinity. The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - :param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. - :type: list[V1PreferredSchedulingTerm] + :param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1NodeAffinity. + :type: list[K8sIoApiCoreV1PreferredSchedulingTerm] """ self._preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution @@ -79,22 +79,22 @@ def preferred_during_scheduling_ignored_during_execution(self, preferred_during_ @property def required_during_scheduling_ignored_during_execution(self): """ - Gets the required_during_scheduling_ignored_during_execution of this V1NodeAffinity. + Gets the required_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1NodeAffinity. If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - :return: The required_during_scheduling_ignored_during_execution of this V1NodeAffinity. - :rtype: V1NodeSelector + :return: The required_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1NodeAffinity. + :rtype: K8sIoApiCoreV1NodeSelector """ return self._required_during_scheduling_ignored_during_execution @required_during_scheduling_ignored_during_execution.setter def required_during_scheduling_ignored_during_execution(self, required_during_scheduling_ignored_during_execution): """ - Sets the required_during_scheduling_ignored_during_execution of this V1NodeAffinity. + Sets the required_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1NodeAffinity. If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - :param required_during_scheduling_ignored_during_execution: The required_during_scheduling_ignored_during_execution of this V1NodeAffinity. - :type: V1NodeSelector + :param required_during_scheduling_ignored_during_execution: The required_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1NodeAffinity. + :type: K8sIoApiCoreV1NodeSelector """ self._required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1NodeAffinity): + if not isinstance(other, K8sIoApiCoreV1NodeAffinity): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_node_selector.py b/kubevirt/models/k8s_io_api_core_v1_node_selector.py similarity index 83% rename from kubevirt/models/v1_node_selector.py rename to kubevirt/models/k8s_io_api_core_v1_node_selector.py index 9e40ccff..2da53756 100644 --- a/kubevirt/models/v1_node_selector.py +++ b/kubevirt/models/k8s_io_api_core_v1_node_selector.py @@ -16,7 +16,7 @@ import re -class V1NodeSelector(object): +class K8sIoApiCoreV1NodeSelector(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,7 +31,7 @@ class V1NodeSelector(object): and the value is json key in definition. """ swagger_types = { - 'node_selector_terms': 'list[V1NodeSelectorTerm]' + 'node_selector_terms': 'list[K8sIoApiCoreV1NodeSelectorTerm]' } attribute_map = { @@ -40,7 +40,7 @@ class V1NodeSelector(object): def __init__(self, node_selector_terms=None): """ - V1NodeSelector - a model defined in Swagger + K8sIoApiCoreV1NodeSelector - a model defined in Swagger """ self._node_selector_terms = None @@ -50,22 +50,22 @@ def __init__(self, node_selector_terms=None): @property def node_selector_terms(self): """ - Gets the node_selector_terms of this V1NodeSelector. + Gets the node_selector_terms of this K8sIoApiCoreV1NodeSelector. Required. A list of node selector terms. The terms are ORed. - :return: The node_selector_terms of this V1NodeSelector. - :rtype: list[V1NodeSelectorTerm] + :return: The node_selector_terms of this K8sIoApiCoreV1NodeSelector. + :rtype: list[K8sIoApiCoreV1NodeSelectorTerm] """ return self._node_selector_terms @node_selector_terms.setter def node_selector_terms(self, node_selector_terms): """ - Sets the node_selector_terms of this V1NodeSelector. + Sets the node_selector_terms of this K8sIoApiCoreV1NodeSelector. Required. A list of node selector terms. The terms are ORed. - :param node_selector_terms: The node_selector_terms of this V1NodeSelector. - :type: list[V1NodeSelectorTerm] + :param node_selector_terms: The node_selector_terms of this K8sIoApiCoreV1NodeSelector. + :type: list[K8sIoApiCoreV1NodeSelectorTerm] """ if node_selector_terms is None: raise ValueError("Invalid value for `node_selector_terms`, must not be `None`") @@ -114,7 +114,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1NodeSelector): + if not isinstance(other, K8sIoApiCoreV1NodeSelector): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_node_selector_requirement.py b/kubevirt/models/k8s_io_api_core_v1_node_selector_requirement.py similarity index 80% rename from kubevirt/models/v1_node_selector_requirement.py rename to kubevirt/models/k8s_io_api_core_v1_node_selector_requirement.py index 72747f2b..83157cba 100644 --- a/kubevirt/models/v1_node_selector_requirement.py +++ b/kubevirt/models/k8s_io_api_core_v1_node_selector_requirement.py @@ -16,7 +16,7 @@ import re -class V1NodeSelectorRequirement(object): +class K8sIoApiCoreV1NodeSelectorRequirement(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -44,7 +44,7 @@ class V1NodeSelectorRequirement(object): def __init__(self, key=None, operator=None, values=None): """ - V1NodeSelectorRequirement - a model defined in Swagger + K8sIoApiCoreV1NodeSelectorRequirement - a model defined in Swagger """ self._key = None @@ -59,10 +59,10 @@ def __init__(self, key=None, operator=None, values=None): @property def key(self): """ - Gets the key of this V1NodeSelectorRequirement. + Gets the key of this K8sIoApiCoreV1NodeSelectorRequirement. The label key that the selector applies to. - :return: The key of this V1NodeSelectorRequirement. + :return: The key of this K8sIoApiCoreV1NodeSelectorRequirement. :rtype: str """ return self._key @@ -70,10 +70,10 @@ def key(self): @key.setter def key(self, key): """ - Sets the key of this V1NodeSelectorRequirement. + Sets the key of this K8sIoApiCoreV1NodeSelectorRequirement. The label key that the selector applies to. - :param key: The key of this V1NodeSelectorRequirement. + :param key: The key of this K8sIoApiCoreV1NodeSelectorRequirement. :type: str """ if key is None: @@ -84,10 +84,10 @@ def key(self, key): @property def operator(self): """ - Gets the operator of this V1NodeSelectorRequirement. + Gets the operator of this K8sIoApiCoreV1NodeSelectorRequirement. Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - :return: The operator of this V1NodeSelectorRequirement. + :return: The operator of this K8sIoApiCoreV1NodeSelectorRequirement. :rtype: str """ return self._operator @@ -95,10 +95,10 @@ def operator(self): @operator.setter def operator(self, operator): """ - Sets the operator of this V1NodeSelectorRequirement. + Sets the operator of this K8sIoApiCoreV1NodeSelectorRequirement. Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - :param operator: The operator of this V1NodeSelectorRequirement. + :param operator: The operator of this K8sIoApiCoreV1NodeSelectorRequirement. :type: str """ if operator is None: @@ -109,10 +109,10 @@ def operator(self, operator): @property def values(self): """ - Gets the values of this V1NodeSelectorRequirement. + Gets the values of this K8sIoApiCoreV1NodeSelectorRequirement. An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. - :return: The values of this V1NodeSelectorRequirement. + :return: The values of this K8sIoApiCoreV1NodeSelectorRequirement. :rtype: list[str] """ return self._values @@ -120,10 +120,10 @@ def values(self): @values.setter def values(self, values): """ - Sets the values of this V1NodeSelectorRequirement. + Sets the values of this K8sIoApiCoreV1NodeSelectorRequirement. An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. - :param values: The values of this V1NodeSelectorRequirement. + :param values: The values of this K8sIoApiCoreV1NodeSelectorRequirement. :type: list[str] """ @@ -171,7 +171,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1NodeSelectorRequirement): + if not isinstance(other, K8sIoApiCoreV1NodeSelectorRequirement): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_node_selector_term.py b/kubevirt/models/k8s_io_api_core_v1_node_selector_term.py similarity index 75% rename from kubevirt/models/v1_node_selector_term.py rename to kubevirt/models/k8s_io_api_core_v1_node_selector_term.py index 3ca56dc4..bbc0cfe0 100644 --- a/kubevirt/models/v1_node_selector_term.py +++ b/kubevirt/models/k8s_io_api_core_v1_node_selector_term.py @@ -16,7 +16,7 @@ import re -class V1NodeSelectorTerm(object): +class K8sIoApiCoreV1NodeSelectorTerm(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,8 +31,8 @@ class V1NodeSelectorTerm(object): and the value is json key in definition. """ swagger_types = { - 'match_expressions': 'list[V1NodeSelectorRequirement]', - 'match_fields': 'list[V1NodeSelectorRequirement]' + 'match_expressions': 'list[K8sIoApiCoreV1NodeSelectorRequirement]', + 'match_fields': 'list[K8sIoApiCoreV1NodeSelectorRequirement]' } attribute_map = { @@ -42,7 +42,7 @@ class V1NodeSelectorTerm(object): def __init__(self, match_expressions=None, match_fields=None): """ - V1NodeSelectorTerm - a model defined in Swagger + K8sIoApiCoreV1NodeSelectorTerm - a model defined in Swagger """ self._match_expressions = None @@ -56,22 +56,22 @@ def __init__(self, match_expressions=None, match_fields=None): @property def match_expressions(self): """ - Gets the match_expressions of this V1NodeSelectorTerm. + Gets the match_expressions of this K8sIoApiCoreV1NodeSelectorTerm. A list of node selector requirements by node's labels. - :return: The match_expressions of this V1NodeSelectorTerm. - :rtype: list[V1NodeSelectorRequirement] + :return: The match_expressions of this K8sIoApiCoreV1NodeSelectorTerm. + :rtype: list[K8sIoApiCoreV1NodeSelectorRequirement] """ return self._match_expressions @match_expressions.setter def match_expressions(self, match_expressions): """ - Sets the match_expressions of this V1NodeSelectorTerm. + Sets the match_expressions of this K8sIoApiCoreV1NodeSelectorTerm. A list of node selector requirements by node's labels. - :param match_expressions: The match_expressions of this V1NodeSelectorTerm. - :type: list[V1NodeSelectorRequirement] + :param match_expressions: The match_expressions of this K8sIoApiCoreV1NodeSelectorTerm. + :type: list[K8sIoApiCoreV1NodeSelectorRequirement] """ self._match_expressions = match_expressions @@ -79,22 +79,22 @@ def match_expressions(self, match_expressions): @property def match_fields(self): """ - Gets the match_fields of this V1NodeSelectorTerm. + Gets the match_fields of this K8sIoApiCoreV1NodeSelectorTerm. A list of node selector requirements by node's fields. - :return: The match_fields of this V1NodeSelectorTerm. - :rtype: list[V1NodeSelectorRequirement] + :return: The match_fields of this K8sIoApiCoreV1NodeSelectorTerm. + :rtype: list[K8sIoApiCoreV1NodeSelectorRequirement] """ return self._match_fields @match_fields.setter def match_fields(self, match_fields): """ - Sets the match_fields of this V1NodeSelectorTerm. + Sets the match_fields of this K8sIoApiCoreV1NodeSelectorTerm. A list of node selector requirements by node's fields. - :param match_fields: The match_fields of this V1NodeSelectorTerm. - :type: list[V1NodeSelectorRequirement] + :param match_fields: The match_fields of this K8sIoApiCoreV1NodeSelectorTerm. + :type: list[K8sIoApiCoreV1NodeSelectorRequirement] """ self._match_fields = match_fields @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1NodeSelectorTerm): + if not isinstance(other, K8sIoApiCoreV1NodeSelectorTerm): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_persistent_volume_claim.py b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim.py similarity index 74% rename from kubevirt/models/v1_persistent_volume_claim.py rename to kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim.py index 21268e52..d9886556 100644 --- a/kubevirt/models/v1_persistent_volume_claim.py +++ b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim.py @@ -16,7 +16,7 @@ import re -class V1PersistentVolumeClaim(object): +class K8sIoApiCoreV1PersistentVolumeClaim(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -33,9 +33,9 @@ class V1PersistentVolumeClaim(object): swagger_types = { 'api_version': 'str', 'kind': 'str', - 'metadata': 'V1ObjectMeta', - 'spec': 'V1PersistentVolumeClaimSpec', - 'status': 'V1PersistentVolumeClaimStatus' + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', + 'spec': 'K8sIoApiCoreV1PersistentVolumeClaimSpec', + 'status': 'K8sIoApiCoreV1PersistentVolumeClaimStatus' } attribute_map = { @@ -48,7 +48,7 @@ class V1PersistentVolumeClaim(object): def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): """ - V1PersistentVolumeClaim - a model defined in Swagger + K8sIoApiCoreV1PersistentVolumeClaim - a model defined in Swagger """ self._api_version = None @@ -71,10 +71,10 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status @property def api_version(self): """ - Gets the api_version of this V1PersistentVolumeClaim. + Gets the api_version of this K8sIoApiCoreV1PersistentVolumeClaim. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1PersistentVolumeClaim. + :return: The api_version of this K8sIoApiCoreV1PersistentVolumeClaim. :rtype: str """ return self._api_version @@ -82,10 +82,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1PersistentVolumeClaim. + Sets the api_version of this K8sIoApiCoreV1PersistentVolumeClaim. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1PersistentVolumeClaim. + :param api_version: The api_version of this K8sIoApiCoreV1PersistentVolumeClaim. :type: str """ @@ -94,10 +94,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V1PersistentVolumeClaim. + Gets the kind of this K8sIoApiCoreV1PersistentVolumeClaim. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1PersistentVolumeClaim. + :return: The kind of this K8sIoApiCoreV1PersistentVolumeClaim. :rtype: str """ return self._kind @@ -105,10 +105,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1PersistentVolumeClaim. + Sets the kind of this K8sIoApiCoreV1PersistentVolumeClaim. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1PersistentVolumeClaim. + :param kind: The kind of this K8sIoApiCoreV1PersistentVolumeClaim. :type: str """ @@ -117,22 +117,22 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1PersistentVolumeClaim. + Gets the metadata of this K8sIoApiCoreV1PersistentVolumeClaim. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :return: The metadata of this V1PersistentVolumeClaim. - :rtype: V1ObjectMeta + :return: The metadata of this K8sIoApiCoreV1PersistentVolumeClaim. + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1PersistentVolumeClaim. + Sets the metadata of this K8sIoApiCoreV1PersistentVolumeClaim. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param metadata: The metadata of this V1PersistentVolumeClaim. - :type: V1ObjectMeta + :param metadata: The metadata of this K8sIoApiCoreV1PersistentVolumeClaim. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ self._metadata = metadata @@ -140,22 +140,22 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1PersistentVolumeClaim. + Gets the spec of this K8sIoApiCoreV1PersistentVolumeClaim. Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - :return: The spec of this V1PersistentVolumeClaim. - :rtype: V1PersistentVolumeClaimSpec + :return: The spec of this K8sIoApiCoreV1PersistentVolumeClaim. + :rtype: K8sIoApiCoreV1PersistentVolumeClaimSpec """ return self._spec @spec.setter def spec(self, spec): """ - Sets the spec of this V1PersistentVolumeClaim. + Sets the spec of this K8sIoApiCoreV1PersistentVolumeClaim. Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - :param spec: The spec of this V1PersistentVolumeClaim. - :type: V1PersistentVolumeClaimSpec + :param spec: The spec of this K8sIoApiCoreV1PersistentVolumeClaim. + :type: K8sIoApiCoreV1PersistentVolumeClaimSpec """ self._spec = spec @@ -163,22 +163,22 @@ def spec(self, spec): @property def status(self): """ - Gets the status of this V1PersistentVolumeClaim. + Gets the status of this K8sIoApiCoreV1PersistentVolumeClaim. Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - :return: The status of this V1PersistentVolumeClaim. - :rtype: V1PersistentVolumeClaimStatus + :return: The status of this K8sIoApiCoreV1PersistentVolumeClaim. + :rtype: K8sIoApiCoreV1PersistentVolumeClaimStatus """ return self._status @status.setter def status(self, status): """ - Sets the status of this V1PersistentVolumeClaim. + Sets the status of this K8sIoApiCoreV1PersistentVolumeClaim. Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - :param status: The status of this V1PersistentVolumeClaim. - :type: V1PersistentVolumeClaimStatus + :param status: The status of this K8sIoApiCoreV1PersistentVolumeClaim. + :type: K8sIoApiCoreV1PersistentVolumeClaimStatus """ self._status = status @@ -225,7 +225,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1PersistentVolumeClaim): + if not isinstance(other, K8sIoApiCoreV1PersistentVolumeClaim): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_persistent_volume_claim_condition.py b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_condition.py similarity index 75% rename from kubevirt/models/v1_persistent_volume_claim_condition.py rename to kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_condition.py index ad70968d..45f6c12e 100644 --- a/kubevirt/models/v1_persistent_volume_claim_condition.py +++ b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_condition.py @@ -16,7 +16,7 @@ import re -class V1PersistentVolumeClaimCondition(object): +class K8sIoApiCoreV1PersistentVolumeClaimCondition(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -46,7 +46,7 @@ class V1PersistentVolumeClaimCondition(object): def __init__(self, message=None, reason=None, status=None, type=None): """ - V1PersistentVolumeClaimCondition - a model defined in Swagger + K8sIoApiCoreV1PersistentVolumeClaimCondition - a model defined in Swagger """ self._message = None @@ -64,10 +64,10 @@ def __init__(self, message=None, reason=None, status=None, type=None): @property def message(self): """ - Gets the message of this V1PersistentVolumeClaimCondition. + Gets the message of this K8sIoApiCoreV1PersistentVolumeClaimCondition. Human-readable message indicating details about last transition. - :return: The message of this V1PersistentVolumeClaimCondition. + :return: The message of this K8sIoApiCoreV1PersistentVolumeClaimCondition. :rtype: str """ return self._message @@ -75,10 +75,10 @@ def message(self): @message.setter def message(self, message): """ - Sets the message of this V1PersistentVolumeClaimCondition. + Sets the message of this K8sIoApiCoreV1PersistentVolumeClaimCondition. Human-readable message indicating details about last transition. - :param message: The message of this V1PersistentVolumeClaimCondition. + :param message: The message of this K8sIoApiCoreV1PersistentVolumeClaimCondition. :type: str """ @@ -87,10 +87,10 @@ def message(self, message): @property def reason(self): """ - Gets the reason of this V1PersistentVolumeClaimCondition. + Gets the reason of this K8sIoApiCoreV1PersistentVolumeClaimCondition. Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized. - :return: The reason of this V1PersistentVolumeClaimCondition. + :return: The reason of this K8sIoApiCoreV1PersistentVolumeClaimCondition. :rtype: str """ return self._reason @@ -98,10 +98,10 @@ def reason(self): @reason.setter def reason(self, reason): """ - Sets the reason of this V1PersistentVolumeClaimCondition. + Sets the reason of this K8sIoApiCoreV1PersistentVolumeClaimCondition. Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized. - :param reason: The reason of this V1PersistentVolumeClaimCondition. + :param reason: The reason of this K8sIoApiCoreV1PersistentVolumeClaimCondition. :type: str """ @@ -110,9 +110,9 @@ def reason(self, reason): @property def status(self): """ - Gets the status of this V1PersistentVolumeClaimCondition. + Gets the status of this K8sIoApiCoreV1PersistentVolumeClaimCondition. - :return: The status of this V1PersistentVolumeClaimCondition. + :return: The status of this K8sIoApiCoreV1PersistentVolumeClaimCondition. :rtype: str """ return self._status @@ -120,9 +120,9 @@ def status(self): @status.setter def status(self, status): """ - Sets the status of this V1PersistentVolumeClaimCondition. + Sets the status of this K8sIoApiCoreV1PersistentVolumeClaimCondition. - :param status: The status of this V1PersistentVolumeClaimCondition. + :param status: The status of this K8sIoApiCoreV1PersistentVolumeClaimCondition. :type: str """ if status is None: @@ -133,9 +133,9 @@ def status(self, status): @property def type(self): """ - Gets the type of this V1PersistentVolumeClaimCondition. + Gets the type of this K8sIoApiCoreV1PersistentVolumeClaimCondition. - :return: The type of this V1PersistentVolumeClaimCondition. + :return: The type of this K8sIoApiCoreV1PersistentVolumeClaimCondition. :rtype: str """ return self._type @@ -143,9 +143,9 @@ def type(self): @type.setter def type(self, type): """ - Sets the type of this V1PersistentVolumeClaimCondition. + Sets the type of this K8sIoApiCoreV1PersistentVolumeClaimCondition. - :param type: The type of this V1PersistentVolumeClaimCondition. + :param type: The type of this K8sIoApiCoreV1PersistentVolumeClaimCondition. :type: str """ if type is None: @@ -195,7 +195,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1PersistentVolumeClaimCondition): + if not isinstance(other, K8sIoApiCoreV1PersistentVolumeClaimCondition): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_persistent_volume_claim_spec.py b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py similarity index 73% rename from kubevirt/models/v1_persistent_volume_claim_spec.py rename to kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py index e5dbb9a6..7381d4b7 100644 --- a/kubevirt/models/v1_persistent_volume_claim_spec.py +++ b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py @@ -16,7 +16,7 @@ import re -class V1PersistentVolumeClaimSpec(object): +class K8sIoApiCoreV1PersistentVolumeClaimSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,9 +32,9 @@ class V1PersistentVolumeClaimSpec(object): """ swagger_types = { 'access_modes': 'list[str]', - 'data_source': 'V1TypedLocalObjectReference', - 'resources': 'V1ResourceRequirements', - 'selector': 'V1LabelSelector', + 'data_source': 'K8sIoApiCoreV1TypedLocalObjectReference', + 'resources': 'K8sIoApiCoreV1ResourceRequirements', + 'selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', 'storage_class_name': 'str', 'volume_mode': 'str', 'volume_name': 'str' @@ -52,7 +52,7 @@ class V1PersistentVolumeClaimSpec(object): def __init__(self, access_modes=None, data_source=None, resources=None, selector=None, storage_class_name=None, volume_mode=None, volume_name=None): """ - V1PersistentVolumeClaimSpec - a model defined in Swagger + K8sIoApiCoreV1PersistentVolumeClaimSpec - a model defined in Swagger """ self._access_modes = None @@ -81,10 +81,10 @@ def __init__(self, access_modes=None, data_source=None, resources=None, selector @property def access_modes(self): """ - Gets the access_modes of this V1PersistentVolumeClaimSpec. + Gets the access_modes of this K8sIoApiCoreV1PersistentVolumeClaimSpec. AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - :return: The access_modes of this V1PersistentVolumeClaimSpec. + :return: The access_modes of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :rtype: list[str] """ return self._access_modes @@ -92,10 +92,10 @@ def access_modes(self): @access_modes.setter def access_modes(self, access_modes): """ - Sets the access_modes of this V1PersistentVolumeClaimSpec. + Sets the access_modes of this K8sIoApiCoreV1PersistentVolumeClaimSpec. AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - :param access_modes: The access_modes of this V1PersistentVolumeClaimSpec. + :param access_modes: The access_modes of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :type: list[str] """ @@ -104,22 +104,22 @@ def access_modes(self, access_modes): @property def data_source(self): """ - Gets the data_source of this V1PersistentVolumeClaimSpec. + Gets the data_source of this K8sIoApiCoreV1PersistentVolumeClaimSpec. This field requires the VolumeSnapshotDataSource alpha feature gate to be enabled and currently VolumeSnapshot is the only supported data source. If the provisioner can support VolumeSnapshot data source, it will create a new volume and data will be restored to the volume at the same time. If the provisioner does not support VolumeSnapshot data source, volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. - :return: The data_source of this V1PersistentVolumeClaimSpec. - :rtype: V1TypedLocalObjectReference + :return: The data_source of this K8sIoApiCoreV1PersistentVolumeClaimSpec. + :rtype: K8sIoApiCoreV1TypedLocalObjectReference """ return self._data_source @data_source.setter def data_source(self, data_source): """ - Sets the data_source of this V1PersistentVolumeClaimSpec. + Sets the data_source of this K8sIoApiCoreV1PersistentVolumeClaimSpec. This field requires the VolumeSnapshotDataSource alpha feature gate to be enabled and currently VolumeSnapshot is the only supported data source. If the provisioner can support VolumeSnapshot data source, it will create a new volume and data will be restored to the volume at the same time. If the provisioner does not support VolumeSnapshot data source, volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. - :param data_source: The data_source of this V1PersistentVolumeClaimSpec. - :type: V1TypedLocalObjectReference + :param data_source: The data_source of this K8sIoApiCoreV1PersistentVolumeClaimSpec. + :type: K8sIoApiCoreV1TypedLocalObjectReference """ self._data_source = data_source @@ -127,22 +127,22 @@ def data_source(self, data_source): @property def resources(self): """ - Gets the resources of this V1PersistentVolumeClaimSpec. + Gets the resources of this K8sIoApiCoreV1PersistentVolumeClaimSpec. Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - :return: The resources of this V1PersistentVolumeClaimSpec. - :rtype: V1ResourceRequirements + :return: The resources of this K8sIoApiCoreV1PersistentVolumeClaimSpec. + :rtype: K8sIoApiCoreV1ResourceRequirements """ return self._resources @resources.setter def resources(self, resources): """ - Sets the resources of this V1PersistentVolumeClaimSpec. + Sets the resources of this K8sIoApiCoreV1PersistentVolumeClaimSpec. Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - :param resources: The resources of this V1PersistentVolumeClaimSpec. - :type: V1ResourceRequirements + :param resources: The resources of this K8sIoApiCoreV1PersistentVolumeClaimSpec. + :type: K8sIoApiCoreV1ResourceRequirements """ self._resources = resources @@ -150,22 +150,22 @@ def resources(self, resources): @property def selector(self): """ - Gets the selector of this V1PersistentVolumeClaimSpec. + Gets the selector of this K8sIoApiCoreV1PersistentVolumeClaimSpec. A label query over volumes to consider for binding. - :return: The selector of this V1PersistentVolumeClaimSpec. - :rtype: V1LabelSelector + :return: The selector of this K8sIoApiCoreV1PersistentVolumeClaimSpec. + :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector """ return self._selector @selector.setter def selector(self, selector): """ - Sets the selector of this V1PersistentVolumeClaimSpec. + Sets the selector of this K8sIoApiCoreV1PersistentVolumeClaimSpec. A label query over volumes to consider for binding. - :param selector: The selector of this V1PersistentVolumeClaimSpec. - :type: V1LabelSelector + :param selector: The selector of this K8sIoApiCoreV1PersistentVolumeClaimSpec. + :type: K8sIoApimachineryPkgApisMetaV1LabelSelector """ self._selector = selector @@ -173,10 +173,10 @@ def selector(self, selector): @property def storage_class_name(self): """ - Gets the storage_class_name of this V1PersistentVolumeClaimSpec. + Gets the storage_class_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - :return: The storage_class_name of this V1PersistentVolumeClaimSpec. + :return: The storage_class_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :rtype: str """ return self._storage_class_name @@ -184,10 +184,10 @@ def storage_class_name(self): @storage_class_name.setter def storage_class_name(self, storage_class_name): """ - Sets the storage_class_name of this V1PersistentVolumeClaimSpec. + Sets the storage_class_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - :param storage_class_name: The storage_class_name of this V1PersistentVolumeClaimSpec. + :param storage_class_name: The storage_class_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :type: str """ @@ -196,10 +196,10 @@ def storage_class_name(self, storage_class_name): @property def volume_mode(self): """ - Gets the volume_mode of this V1PersistentVolumeClaimSpec. + Gets the volume_mode of this K8sIoApiCoreV1PersistentVolumeClaimSpec. volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is a beta feature. - :return: The volume_mode of this V1PersistentVolumeClaimSpec. + :return: The volume_mode of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :rtype: str """ return self._volume_mode @@ -207,10 +207,10 @@ def volume_mode(self): @volume_mode.setter def volume_mode(self, volume_mode): """ - Sets the volume_mode of this V1PersistentVolumeClaimSpec. + Sets the volume_mode of this K8sIoApiCoreV1PersistentVolumeClaimSpec. volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is a beta feature. - :param volume_mode: The volume_mode of this V1PersistentVolumeClaimSpec. + :param volume_mode: The volume_mode of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :type: str """ @@ -219,10 +219,10 @@ def volume_mode(self, volume_mode): @property def volume_name(self): """ - Gets the volume_name of this V1PersistentVolumeClaimSpec. + Gets the volume_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. VolumeName is the binding reference to the PersistentVolume backing this claim. - :return: The volume_name of this V1PersistentVolumeClaimSpec. + :return: The volume_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :rtype: str """ return self._volume_name @@ -230,10 +230,10 @@ def volume_name(self): @volume_name.setter def volume_name(self, volume_name): """ - Sets the volume_name of this V1PersistentVolumeClaimSpec. + Sets the volume_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. VolumeName is the binding reference to the PersistentVolume backing this claim. - :param volume_name: The volume_name of this V1PersistentVolumeClaimSpec. + :param volume_name: The volume_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :type: str """ @@ -281,7 +281,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1PersistentVolumeClaimSpec): + if not isinstance(other, K8sIoApiCoreV1PersistentVolumeClaimSpec): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_persistent_volume_claim_status.py b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_status.py similarity index 71% rename from kubevirt/models/v1_persistent_volume_claim_status.py rename to kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_status.py index 1f124ecf..8846bef2 100644 --- a/kubevirt/models/v1_persistent_volume_claim_status.py +++ b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_status.py @@ -16,7 +16,7 @@ import re -class V1PersistentVolumeClaimStatus(object): +class K8sIoApiCoreV1PersistentVolumeClaimStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,8 +32,8 @@ class V1PersistentVolumeClaimStatus(object): """ swagger_types = { 'access_modes': 'list[str]', - 'capacity': 'dict(str, ResourceQuantity)', - 'conditions': 'list[V1PersistentVolumeClaimCondition]', + 'capacity': 'dict(str, K8sIoApimachineryPkgApiResourceQuantity)', + 'conditions': 'list[K8sIoApiCoreV1PersistentVolumeClaimCondition]', 'phase': 'str' } @@ -46,7 +46,7 @@ class V1PersistentVolumeClaimStatus(object): def __init__(self, access_modes=None, capacity=None, conditions=None, phase=None): """ - V1PersistentVolumeClaimStatus - a model defined in Swagger + K8sIoApiCoreV1PersistentVolumeClaimStatus - a model defined in Swagger """ self._access_modes = None @@ -66,10 +66,10 @@ def __init__(self, access_modes=None, capacity=None, conditions=None, phase=None @property def access_modes(self): """ - Gets the access_modes of this V1PersistentVolumeClaimStatus. + Gets the access_modes of this K8sIoApiCoreV1PersistentVolumeClaimStatus. AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - :return: The access_modes of this V1PersistentVolumeClaimStatus. + :return: The access_modes of this K8sIoApiCoreV1PersistentVolumeClaimStatus. :rtype: list[str] """ return self._access_modes @@ -77,10 +77,10 @@ def access_modes(self): @access_modes.setter def access_modes(self, access_modes): """ - Sets the access_modes of this V1PersistentVolumeClaimStatus. + Sets the access_modes of this K8sIoApiCoreV1PersistentVolumeClaimStatus. AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - :param access_modes: The access_modes of this V1PersistentVolumeClaimStatus. + :param access_modes: The access_modes of this K8sIoApiCoreV1PersistentVolumeClaimStatus. :type: list[str] """ @@ -89,22 +89,22 @@ def access_modes(self, access_modes): @property def capacity(self): """ - Gets the capacity of this V1PersistentVolumeClaimStatus. + Gets the capacity of this K8sIoApiCoreV1PersistentVolumeClaimStatus. Represents the actual resources of the underlying volume. - :return: The capacity of this V1PersistentVolumeClaimStatus. - :rtype: dict(str, ResourceQuantity) + :return: The capacity of this K8sIoApiCoreV1PersistentVolumeClaimStatus. + :rtype: dict(str, K8sIoApimachineryPkgApiResourceQuantity) """ return self._capacity @capacity.setter def capacity(self, capacity): """ - Sets the capacity of this V1PersistentVolumeClaimStatus. + Sets the capacity of this K8sIoApiCoreV1PersistentVolumeClaimStatus. Represents the actual resources of the underlying volume. - :param capacity: The capacity of this V1PersistentVolumeClaimStatus. - :type: dict(str, ResourceQuantity) + :param capacity: The capacity of this K8sIoApiCoreV1PersistentVolumeClaimStatus. + :type: dict(str, K8sIoApimachineryPkgApiResourceQuantity) """ self._capacity = capacity @@ -112,22 +112,22 @@ def capacity(self, capacity): @property def conditions(self): """ - Gets the conditions of this V1PersistentVolumeClaimStatus. + Gets the conditions of this K8sIoApiCoreV1PersistentVolumeClaimStatus. Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. - :return: The conditions of this V1PersistentVolumeClaimStatus. - :rtype: list[V1PersistentVolumeClaimCondition] + :return: The conditions of this K8sIoApiCoreV1PersistentVolumeClaimStatus. + :rtype: list[K8sIoApiCoreV1PersistentVolumeClaimCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): """ - Sets the conditions of this V1PersistentVolumeClaimStatus. + Sets the conditions of this K8sIoApiCoreV1PersistentVolumeClaimStatus. Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. - :param conditions: The conditions of this V1PersistentVolumeClaimStatus. - :type: list[V1PersistentVolumeClaimCondition] + :param conditions: The conditions of this K8sIoApiCoreV1PersistentVolumeClaimStatus. + :type: list[K8sIoApiCoreV1PersistentVolumeClaimCondition] """ self._conditions = conditions @@ -135,10 +135,10 @@ def conditions(self, conditions): @property def phase(self): """ - Gets the phase of this V1PersistentVolumeClaimStatus. + Gets the phase of this K8sIoApiCoreV1PersistentVolumeClaimStatus. Phase represents the current phase of PersistentVolumeClaim. - :return: The phase of this V1PersistentVolumeClaimStatus. + :return: The phase of this K8sIoApiCoreV1PersistentVolumeClaimStatus. :rtype: str """ return self._phase @@ -146,10 +146,10 @@ def phase(self): @phase.setter def phase(self, phase): """ - Sets the phase of this V1PersistentVolumeClaimStatus. + Sets the phase of this K8sIoApiCoreV1PersistentVolumeClaimStatus. Phase represents the current phase of PersistentVolumeClaim. - :param phase: The phase of this V1PersistentVolumeClaimStatus. + :param phase: The phase of this K8sIoApiCoreV1PersistentVolumeClaimStatus. :type: str """ @@ -197,7 +197,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1PersistentVolumeClaimStatus): + if not isinstance(other, K8sIoApiCoreV1PersistentVolumeClaimStatus): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_persistent_volume_claim_volume_source.py b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_volume_source.py similarity index 80% rename from kubevirt/models/v1_persistent_volume_claim_volume_source.py rename to kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_volume_source.py index d961b1a0..eac812fb 100644 --- a/kubevirt/models/v1_persistent_volume_claim_volume_source.py +++ b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_volume_source.py @@ -16,7 +16,7 @@ import re -class V1PersistentVolumeClaimVolumeSource(object): +class K8sIoApiCoreV1PersistentVolumeClaimVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class V1PersistentVolumeClaimVolumeSource(object): def __init__(self, claim_name=None, read_only=None): """ - V1PersistentVolumeClaimVolumeSource - a model defined in Swagger + K8sIoApiCoreV1PersistentVolumeClaimVolumeSource - a model defined in Swagger """ self._claim_name = None @@ -55,10 +55,10 @@ def __init__(self, claim_name=None, read_only=None): @property def claim_name(self): """ - Gets the claim_name of this V1PersistentVolumeClaimVolumeSource. + Gets the claim_name of this K8sIoApiCoreV1PersistentVolumeClaimVolumeSource. ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - :return: The claim_name of this V1PersistentVolumeClaimVolumeSource. + :return: The claim_name of this K8sIoApiCoreV1PersistentVolumeClaimVolumeSource. :rtype: str """ return self._claim_name @@ -66,10 +66,10 @@ def claim_name(self): @claim_name.setter def claim_name(self, claim_name): """ - Sets the claim_name of this V1PersistentVolumeClaimVolumeSource. + Sets the claim_name of this K8sIoApiCoreV1PersistentVolumeClaimVolumeSource. ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - :param claim_name: The claim_name of this V1PersistentVolumeClaimVolumeSource. + :param claim_name: The claim_name of this K8sIoApiCoreV1PersistentVolumeClaimVolumeSource. :type: str """ if claim_name is None: @@ -80,10 +80,10 @@ def claim_name(self, claim_name): @property def read_only(self): """ - Gets the read_only of this V1PersistentVolumeClaimVolumeSource. + Gets the read_only of this K8sIoApiCoreV1PersistentVolumeClaimVolumeSource. Will force the ReadOnly setting in VolumeMounts. Default false. - :return: The read_only of this V1PersistentVolumeClaimVolumeSource. + :return: The read_only of this K8sIoApiCoreV1PersistentVolumeClaimVolumeSource. :rtype: bool """ return self._read_only @@ -91,10 +91,10 @@ def read_only(self): @read_only.setter def read_only(self, read_only): """ - Sets the read_only of this V1PersistentVolumeClaimVolumeSource. + Sets the read_only of this K8sIoApiCoreV1PersistentVolumeClaimVolumeSource. Will force the ReadOnly setting in VolumeMounts. Default false. - :param read_only: The read_only of this V1PersistentVolumeClaimVolumeSource. + :param read_only: The read_only of this K8sIoApiCoreV1PersistentVolumeClaimVolumeSource. :type: bool """ @@ -142,7 +142,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1PersistentVolumeClaimVolumeSource): + if not isinstance(other, K8sIoApiCoreV1PersistentVolumeClaimVolumeSource): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_pod_affinity.py b/kubevirt/models/k8s_io_api_core_v1_pod_affinity.py similarity index 90% rename from kubevirt/models/v1_pod_affinity.py rename to kubevirt/models/k8s_io_api_core_v1_pod_affinity.py index 8b8dcc47..e3262a6b 100644 --- a/kubevirt/models/v1_pod_affinity.py +++ b/kubevirt/models/k8s_io_api_core_v1_pod_affinity.py @@ -16,7 +16,7 @@ import re -class V1PodAffinity(object): +class K8sIoApiCoreV1PodAffinity(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,8 +31,8 @@ class V1PodAffinity(object): and the value is json key in definition. """ swagger_types = { - 'preferred_during_scheduling_ignored_during_execution': 'list[V1WeightedPodAffinityTerm]', - 'required_during_scheduling_ignored_during_execution': 'list[V1PodAffinityTerm]' + 'preferred_during_scheduling_ignored_during_execution': 'list[K8sIoApiCoreV1WeightedPodAffinityTerm]', + 'required_during_scheduling_ignored_during_execution': 'list[K8sIoApiCoreV1PodAffinityTerm]' } attribute_map = { @@ -42,7 +42,7 @@ class V1PodAffinity(object): def __init__(self, preferred_during_scheduling_ignored_during_execution=None, required_during_scheduling_ignored_during_execution=None): """ - V1PodAffinity - a model defined in Swagger + K8sIoApiCoreV1PodAffinity - a model defined in Swagger """ self._preferred_during_scheduling_ignored_during_execution = None @@ -56,22 +56,22 @@ def __init__(self, preferred_during_scheduling_ignored_during_execution=None, re @property def preferred_during_scheduling_ignored_during_execution(self): """ - Gets the preferred_during_scheduling_ignored_during_execution of this V1PodAffinity. + Gets the preferred_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1PodAffinity. The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - :return: The preferred_during_scheduling_ignored_during_execution of this V1PodAffinity. - :rtype: list[V1WeightedPodAffinityTerm] + :return: The preferred_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1PodAffinity. + :rtype: list[K8sIoApiCoreV1WeightedPodAffinityTerm] """ return self._preferred_during_scheduling_ignored_during_execution @preferred_during_scheduling_ignored_during_execution.setter def preferred_during_scheduling_ignored_during_execution(self, preferred_during_scheduling_ignored_during_execution): """ - Sets the preferred_during_scheduling_ignored_during_execution of this V1PodAffinity. + Sets the preferred_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1PodAffinity. The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - :param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this V1PodAffinity. - :type: list[V1WeightedPodAffinityTerm] + :param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1PodAffinity. + :type: list[K8sIoApiCoreV1WeightedPodAffinityTerm] """ self._preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution @@ -79,22 +79,22 @@ def preferred_during_scheduling_ignored_during_execution(self, preferred_during_ @property def required_during_scheduling_ignored_during_execution(self): """ - Gets the required_during_scheduling_ignored_during_execution of this V1PodAffinity. + Gets the required_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1PodAffinity. If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - :return: The required_during_scheduling_ignored_during_execution of this V1PodAffinity. - :rtype: list[V1PodAffinityTerm] + :return: The required_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1PodAffinity. + :rtype: list[K8sIoApiCoreV1PodAffinityTerm] """ return self._required_during_scheduling_ignored_during_execution @required_during_scheduling_ignored_during_execution.setter def required_during_scheduling_ignored_during_execution(self, required_during_scheduling_ignored_during_execution): """ - Sets the required_during_scheduling_ignored_during_execution of this V1PodAffinity. + Sets the required_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1PodAffinity. If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - :param required_during_scheduling_ignored_during_execution: The required_during_scheduling_ignored_during_execution of this V1PodAffinity. - :type: list[V1PodAffinityTerm] + :param required_during_scheduling_ignored_during_execution: The required_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1PodAffinity. + :type: list[K8sIoApiCoreV1PodAffinityTerm] """ self._required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1PodAffinity): + if not isinstance(other, K8sIoApiCoreV1PodAffinity): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_pod_affinity_term.py b/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py similarity index 79% rename from kubevirt/models/v1_pod_affinity_term.py rename to kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py index c17fb58d..3eb42da8 100644 --- a/kubevirt/models/v1_pod_affinity_term.py +++ b/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py @@ -16,7 +16,7 @@ import re -class V1PodAffinityTerm(object): +class K8sIoApiCoreV1PodAffinityTerm(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,7 +31,7 @@ class V1PodAffinityTerm(object): and the value is json key in definition. """ swagger_types = { - 'label_selector': 'V1LabelSelector', + 'label_selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', 'namespaces': 'list[str]', 'topology_key': 'str' } @@ -44,7 +44,7 @@ class V1PodAffinityTerm(object): def __init__(self, label_selector=None, namespaces=None, topology_key=None): """ - V1PodAffinityTerm - a model defined in Swagger + K8sIoApiCoreV1PodAffinityTerm - a model defined in Swagger """ self._label_selector = None @@ -60,22 +60,22 @@ def __init__(self, label_selector=None, namespaces=None, topology_key=None): @property def label_selector(self): """ - Gets the label_selector of this V1PodAffinityTerm. + Gets the label_selector of this K8sIoApiCoreV1PodAffinityTerm. A label query over a set of resources, in this case pods. - :return: The label_selector of this V1PodAffinityTerm. - :rtype: V1LabelSelector + :return: The label_selector of this K8sIoApiCoreV1PodAffinityTerm. + :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector """ return self._label_selector @label_selector.setter def label_selector(self, label_selector): """ - Sets the label_selector of this V1PodAffinityTerm. + Sets the label_selector of this K8sIoApiCoreV1PodAffinityTerm. A label query over a set of resources, in this case pods. - :param label_selector: The label_selector of this V1PodAffinityTerm. - :type: V1LabelSelector + :param label_selector: The label_selector of this K8sIoApiCoreV1PodAffinityTerm. + :type: K8sIoApimachineryPkgApisMetaV1LabelSelector """ self._label_selector = label_selector @@ -83,10 +83,10 @@ def label_selector(self, label_selector): @property def namespaces(self): """ - Gets the namespaces of this V1PodAffinityTerm. + Gets the namespaces of this K8sIoApiCoreV1PodAffinityTerm. namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\" - :return: The namespaces of this V1PodAffinityTerm. + :return: The namespaces of this K8sIoApiCoreV1PodAffinityTerm. :rtype: list[str] """ return self._namespaces @@ -94,10 +94,10 @@ def namespaces(self): @namespaces.setter def namespaces(self, namespaces): """ - Sets the namespaces of this V1PodAffinityTerm. + Sets the namespaces of this K8sIoApiCoreV1PodAffinityTerm. namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\" - :param namespaces: The namespaces of this V1PodAffinityTerm. + :param namespaces: The namespaces of this K8sIoApiCoreV1PodAffinityTerm. :type: list[str] """ @@ -106,10 +106,10 @@ def namespaces(self, namespaces): @property def topology_key(self): """ - Gets the topology_key of this V1PodAffinityTerm. + Gets the topology_key of this K8sIoApiCoreV1PodAffinityTerm. This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - :return: The topology_key of this V1PodAffinityTerm. + :return: The topology_key of this K8sIoApiCoreV1PodAffinityTerm. :rtype: str """ return self._topology_key @@ -117,10 +117,10 @@ def topology_key(self): @topology_key.setter def topology_key(self, topology_key): """ - Sets the topology_key of this V1PodAffinityTerm. + Sets the topology_key of this K8sIoApiCoreV1PodAffinityTerm. This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - :param topology_key: The topology_key of this V1PodAffinityTerm. + :param topology_key: The topology_key of this K8sIoApiCoreV1PodAffinityTerm. :type: str """ if topology_key is None: @@ -170,7 +170,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1PodAffinityTerm): + if not isinstance(other, K8sIoApiCoreV1PodAffinityTerm): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_pod_anti_affinity.py b/kubevirt/models/k8s_io_api_core_v1_pod_anti_affinity.py similarity index 89% rename from kubevirt/models/v1_pod_anti_affinity.py rename to kubevirt/models/k8s_io_api_core_v1_pod_anti_affinity.py index 783e0867..69bdeee2 100644 --- a/kubevirt/models/v1_pod_anti_affinity.py +++ b/kubevirt/models/k8s_io_api_core_v1_pod_anti_affinity.py @@ -16,7 +16,7 @@ import re -class V1PodAntiAffinity(object): +class K8sIoApiCoreV1PodAntiAffinity(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,8 +31,8 @@ class V1PodAntiAffinity(object): and the value is json key in definition. """ swagger_types = { - 'preferred_during_scheduling_ignored_during_execution': 'list[V1WeightedPodAffinityTerm]', - 'required_during_scheduling_ignored_during_execution': 'list[V1PodAffinityTerm]' + 'preferred_during_scheduling_ignored_during_execution': 'list[K8sIoApiCoreV1WeightedPodAffinityTerm]', + 'required_during_scheduling_ignored_during_execution': 'list[K8sIoApiCoreV1PodAffinityTerm]' } attribute_map = { @@ -42,7 +42,7 @@ class V1PodAntiAffinity(object): def __init__(self, preferred_during_scheduling_ignored_during_execution=None, required_during_scheduling_ignored_during_execution=None): """ - V1PodAntiAffinity - a model defined in Swagger + K8sIoApiCoreV1PodAntiAffinity - a model defined in Swagger """ self._preferred_during_scheduling_ignored_during_execution = None @@ -56,22 +56,22 @@ def __init__(self, preferred_during_scheduling_ignored_during_execution=None, re @property def preferred_during_scheduling_ignored_during_execution(self): """ - Gets the preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. + Gets the preferred_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1PodAntiAffinity. The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - :return: The preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. - :rtype: list[V1WeightedPodAffinityTerm] + :return: The preferred_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1PodAntiAffinity. + :rtype: list[K8sIoApiCoreV1WeightedPodAffinityTerm] """ return self._preferred_during_scheduling_ignored_during_execution @preferred_during_scheduling_ignored_during_execution.setter def preferred_during_scheduling_ignored_during_execution(self, preferred_during_scheduling_ignored_during_execution): """ - Sets the preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. + Sets the preferred_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1PodAntiAffinity. The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - :param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. - :type: list[V1WeightedPodAffinityTerm] + :param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1PodAntiAffinity. + :type: list[K8sIoApiCoreV1WeightedPodAffinityTerm] """ self._preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution @@ -79,22 +79,22 @@ def preferred_during_scheduling_ignored_during_execution(self, preferred_during_ @property def required_during_scheduling_ignored_during_execution(self): """ - Gets the required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. + Gets the required_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1PodAntiAffinity. If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - :return: The required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. - :rtype: list[V1PodAffinityTerm] + :return: The required_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1PodAntiAffinity. + :rtype: list[K8sIoApiCoreV1PodAffinityTerm] """ return self._required_during_scheduling_ignored_during_execution @required_during_scheduling_ignored_during_execution.setter def required_during_scheduling_ignored_during_execution(self, required_during_scheduling_ignored_during_execution): """ - Sets the required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. + Sets the required_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1PodAntiAffinity. If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - :param required_during_scheduling_ignored_during_execution: The required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. - :type: list[V1PodAffinityTerm] + :param required_during_scheduling_ignored_during_execution: The required_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1PodAntiAffinity. + :type: list[K8sIoApiCoreV1PodAffinityTerm] """ self._required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1PodAntiAffinity): + if not isinstance(other, K8sIoApiCoreV1PodAntiAffinity): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_pod_dns_config.py b/kubevirt/models/k8s_io_api_core_v1_pod_dns_config.py similarity index 80% rename from kubevirt/models/v1_pod_dns_config.py rename to kubevirt/models/k8s_io_api_core_v1_pod_dns_config.py index 846f5401..ee5e15e2 100644 --- a/kubevirt/models/v1_pod_dns_config.py +++ b/kubevirt/models/k8s_io_api_core_v1_pod_dns_config.py @@ -16,7 +16,7 @@ import re -class V1PodDNSConfig(object): +class K8sIoApiCoreV1PodDNSConfig(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class V1PodDNSConfig(object): """ swagger_types = { 'nameservers': 'list[str]', - 'options': 'list[V1PodDNSConfigOption]', + 'options': 'list[K8sIoApiCoreV1PodDNSConfigOption]', 'searches': 'list[str]' } @@ -44,7 +44,7 @@ class V1PodDNSConfig(object): def __init__(self, nameservers=None, options=None, searches=None): """ - V1PodDNSConfig - a model defined in Swagger + K8sIoApiCoreV1PodDNSConfig - a model defined in Swagger """ self._nameservers = None @@ -61,10 +61,10 @@ def __init__(self, nameservers=None, options=None, searches=None): @property def nameservers(self): """ - Gets the nameservers of this V1PodDNSConfig. + Gets the nameservers of this K8sIoApiCoreV1PodDNSConfig. A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - :return: The nameservers of this V1PodDNSConfig. + :return: The nameservers of this K8sIoApiCoreV1PodDNSConfig. :rtype: list[str] """ return self._nameservers @@ -72,10 +72,10 @@ def nameservers(self): @nameservers.setter def nameservers(self, nameservers): """ - Sets the nameservers of this V1PodDNSConfig. + Sets the nameservers of this K8sIoApiCoreV1PodDNSConfig. A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - :param nameservers: The nameservers of this V1PodDNSConfig. + :param nameservers: The nameservers of this K8sIoApiCoreV1PodDNSConfig. :type: list[str] """ @@ -84,22 +84,22 @@ def nameservers(self, nameservers): @property def options(self): """ - Gets the options of this V1PodDNSConfig. + Gets the options of this K8sIoApiCoreV1PodDNSConfig. A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - :return: The options of this V1PodDNSConfig. - :rtype: list[V1PodDNSConfigOption] + :return: The options of this K8sIoApiCoreV1PodDNSConfig. + :rtype: list[K8sIoApiCoreV1PodDNSConfigOption] """ return self._options @options.setter def options(self, options): """ - Sets the options of this V1PodDNSConfig. + Sets the options of this K8sIoApiCoreV1PodDNSConfig. A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - :param options: The options of this V1PodDNSConfig. - :type: list[V1PodDNSConfigOption] + :param options: The options of this K8sIoApiCoreV1PodDNSConfig. + :type: list[K8sIoApiCoreV1PodDNSConfigOption] """ self._options = options @@ -107,10 +107,10 @@ def options(self, options): @property def searches(self): """ - Gets the searches of this V1PodDNSConfig. + Gets the searches of this K8sIoApiCoreV1PodDNSConfig. A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - :return: The searches of this V1PodDNSConfig. + :return: The searches of this K8sIoApiCoreV1PodDNSConfig. :rtype: list[str] """ return self._searches @@ -118,10 +118,10 @@ def searches(self): @searches.setter def searches(self, searches): """ - Sets the searches of this V1PodDNSConfig. + Sets the searches of this K8sIoApiCoreV1PodDNSConfig. A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - :param searches: The searches of this V1PodDNSConfig. + :param searches: The searches of this K8sIoApiCoreV1PodDNSConfig. :type: list[str] """ @@ -169,7 +169,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1PodDNSConfig): + if not isinstance(other, K8sIoApiCoreV1PodDNSConfig): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_pod_dns_config_option.py b/kubevirt/models/k8s_io_api_core_v1_pod_dns_config_option.py similarity index 80% rename from kubevirt/models/v1_pod_dns_config_option.py rename to kubevirt/models/k8s_io_api_core_v1_pod_dns_config_option.py index e5ee5023..62fdd6a7 100644 --- a/kubevirt/models/v1_pod_dns_config_option.py +++ b/kubevirt/models/k8s_io_api_core_v1_pod_dns_config_option.py @@ -16,7 +16,7 @@ import re -class V1PodDNSConfigOption(object): +class K8sIoApiCoreV1PodDNSConfigOption(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class V1PodDNSConfigOption(object): def __init__(self, name=None, value=None): """ - V1PodDNSConfigOption - a model defined in Swagger + K8sIoApiCoreV1PodDNSConfigOption - a model defined in Swagger """ self._name = None @@ -56,10 +56,10 @@ def __init__(self, name=None, value=None): @property def name(self): """ - Gets the name of this V1PodDNSConfigOption. + Gets the name of this K8sIoApiCoreV1PodDNSConfigOption. Required. - :return: The name of this V1PodDNSConfigOption. + :return: The name of this K8sIoApiCoreV1PodDNSConfigOption. :rtype: str """ return self._name @@ -67,10 +67,10 @@ def name(self): @name.setter def name(self, name): """ - Sets the name of this V1PodDNSConfigOption. + Sets the name of this K8sIoApiCoreV1PodDNSConfigOption. Required. - :param name: The name of this V1PodDNSConfigOption. + :param name: The name of this K8sIoApiCoreV1PodDNSConfigOption. :type: str """ @@ -79,9 +79,9 @@ def name(self, name): @property def value(self): """ - Gets the value of this V1PodDNSConfigOption. + Gets the value of this K8sIoApiCoreV1PodDNSConfigOption. - :return: The value of this V1PodDNSConfigOption. + :return: The value of this K8sIoApiCoreV1PodDNSConfigOption. :rtype: str """ return self._value @@ -89,9 +89,9 @@ def value(self): @value.setter def value(self, value): """ - Sets the value of this V1PodDNSConfigOption. + Sets the value of this K8sIoApiCoreV1PodDNSConfigOption. - :param value: The value of this V1PodDNSConfigOption. + :param value: The value of this K8sIoApiCoreV1PodDNSConfigOption. :type: str """ @@ -139,7 +139,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1PodDNSConfigOption): + if not isinstance(other, K8sIoApiCoreV1PodDNSConfigOption): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_preferred_scheduling_term.py b/kubevirt/models/k8s_io_api_core_v1_preferred_scheduling_term.py similarity index 78% rename from kubevirt/models/v1_preferred_scheduling_term.py rename to kubevirt/models/k8s_io_api_core_v1_preferred_scheduling_term.py index 2ada8730..1cf10de3 100644 --- a/kubevirt/models/v1_preferred_scheduling_term.py +++ b/kubevirt/models/k8s_io_api_core_v1_preferred_scheduling_term.py @@ -16,7 +16,7 @@ import re -class V1PreferredSchedulingTerm(object): +class K8sIoApiCoreV1PreferredSchedulingTerm(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,7 +31,7 @@ class V1PreferredSchedulingTerm(object): and the value is json key in definition. """ swagger_types = { - 'preference': 'V1NodeSelectorTerm', + 'preference': 'K8sIoApiCoreV1NodeSelectorTerm', 'weight': 'int' } @@ -42,7 +42,7 @@ class V1PreferredSchedulingTerm(object): def __init__(self, preference=None, weight=None): """ - V1PreferredSchedulingTerm - a model defined in Swagger + K8sIoApiCoreV1PreferredSchedulingTerm - a model defined in Swagger """ self._preference = None @@ -54,22 +54,22 @@ def __init__(self, preference=None, weight=None): @property def preference(self): """ - Gets the preference of this V1PreferredSchedulingTerm. + Gets the preference of this K8sIoApiCoreV1PreferredSchedulingTerm. A node selector term, associated with the corresponding weight. - :return: The preference of this V1PreferredSchedulingTerm. - :rtype: V1NodeSelectorTerm + :return: The preference of this K8sIoApiCoreV1PreferredSchedulingTerm. + :rtype: K8sIoApiCoreV1NodeSelectorTerm """ return self._preference @preference.setter def preference(self, preference): """ - Sets the preference of this V1PreferredSchedulingTerm. + Sets the preference of this K8sIoApiCoreV1PreferredSchedulingTerm. A node selector term, associated with the corresponding weight. - :param preference: The preference of this V1PreferredSchedulingTerm. - :type: V1NodeSelectorTerm + :param preference: The preference of this K8sIoApiCoreV1PreferredSchedulingTerm. + :type: K8sIoApiCoreV1NodeSelectorTerm """ if preference is None: raise ValueError("Invalid value for `preference`, must not be `None`") @@ -79,10 +79,10 @@ def preference(self, preference): @property def weight(self): """ - Gets the weight of this V1PreferredSchedulingTerm. + Gets the weight of this K8sIoApiCoreV1PreferredSchedulingTerm. Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - :return: The weight of this V1PreferredSchedulingTerm. + :return: The weight of this K8sIoApiCoreV1PreferredSchedulingTerm. :rtype: int """ return self._weight @@ -90,10 +90,10 @@ def weight(self): @weight.setter def weight(self, weight): """ - Sets the weight of this V1PreferredSchedulingTerm. + Sets the weight of this K8sIoApiCoreV1PreferredSchedulingTerm. Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - :param weight: The weight of this V1PreferredSchedulingTerm. + :param weight: The weight of this K8sIoApiCoreV1PreferredSchedulingTerm. :type: int """ if weight is None: @@ -143,7 +143,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1PreferredSchedulingTerm): + if not isinstance(other, K8sIoApiCoreV1PreferredSchedulingTerm): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/k8s_io_api_core_v1_resource_requirements.py b/kubevirt/models/k8s_io_api_core_v1_resource_requirements.py new file mode 100644 index 00000000..3204fc07 --- /dev/null +++ b/kubevirt/models/k8s_io_api_core_v1_resource_requirements.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class K8sIoApiCoreV1ResourceRequirements(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'limits': 'dict(str, K8sIoApimachineryPkgApiResourceQuantity)', + 'requests': 'dict(str, K8sIoApimachineryPkgApiResourceQuantity)' + } + + attribute_map = { + 'limits': 'limits', + 'requests': 'requests' + } + + def __init__(self, limits=None, requests=None): + """ + K8sIoApiCoreV1ResourceRequirements - a model defined in Swagger + """ + + self._limits = None + self._requests = None + + if limits is not None: + self.limits = limits + if requests is not None: + self.requests = requests + + @property + def limits(self): + """ + Gets the limits of this K8sIoApiCoreV1ResourceRequirements. + Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + :return: The limits of this K8sIoApiCoreV1ResourceRequirements. + :rtype: dict(str, K8sIoApimachineryPkgApiResourceQuantity) + """ + return self._limits + + @limits.setter + def limits(self, limits): + """ + Sets the limits of this K8sIoApiCoreV1ResourceRequirements. + Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + :param limits: The limits of this K8sIoApiCoreV1ResourceRequirements. + :type: dict(str, K8sIoApimachineryPkgApiResourceQuantity) + """ + + self._limits = limits + + @property + def requests(self): + """ + Gets the requests of this K8sIoApiCoreV1ResourceRequirements. + Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + :return: The requests of this K8sIoApiCoreV1ResourceRequirements. + :rtype: dict(str, K8sIoApimachineryPkgApiResourceQuantity) + """ + return self._requests + + @requests.setter + def requests(self, requests): + """ + Sets the requests of this K8sIoApiCoreV1ResourceRequirements. + Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + :param requests: The requests of this K8sIoApiCoreV1ResourceRequirements. + :type: dict(str, K8sIoApimachineryPkgApiResourceQuantity) + """ + + self._requests = requests + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, K8sIoApiCoreV1ResourceRequirements): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_tcp_socket_action.py b/kubevirt/models/k8s_io_api_core_v1_tcp_socket_action.py similarity index 86% rename from kubevirt/models/v1_tcp_socket_action.py rename to kubevirt/models/k8s_io_api_core_v1_tcp_socket_action.py index 8f74634c..1166d8d5 100644 --- a/kubevirt/models/v1_tcp_socket_action.py +++ b/kubevirt/models/k8s_io_api_core_v1_tcp_socket_action.py @@ -16,7 +16,7 @@ import re -class V1TCPSocketAction(object): +class K8sIoApiCoreV1TCPSocketAction(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,7 +40,7 @@ class V1TCPSocketAction(object): def __init__(self, host=None): """ - V1TCPSocketAction - a model defined in Swagger + K8sIoApiCoreV1TCPSocketAction - a model defined in Swagger """ self._host = None @@ -51,10 +51,10 @@ def __init__(self, host=None): @property def host(self): """ - Gets the host of this V1TCPSocketAction. + Gets the host of this K8sIoApiCoreV1TCPSocketAction. Optional: Host name to connect to, defaults to the pod IP. - :return: The host of this V1TCPSocketAction. + :return: The host of this K8sIoApiCoreV1TCPSocketAction. :rtype: str """ return self._host @@ -62,10 +62,10 @@ def host(self): @host.setter def host(self, host): """ - Sets the host of this V1TCPSocketAction. + Sets the host of this K8sIoApiCoreV1TCPSocketAction. Optional: Host name to connect to, defaults to the pod IP. - :param host: The host of this V1TCPSocketAction. + :param host: The host of this K8sIoApiCoreV1TCPSocketAction. :type: str """ @@ -113,7 +113,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1TCPSocketAction): + if not isinstance(other, K8sIoApiCoreV1TCPSocketAction): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_toleration.py b/kubevirt/models/k8s_io_api_core_v1_toleration.py similarity index 82% rename from kubevirt/models/v1_toleration.py rename to kubevirt/models/k8s_io_api_core_v1_toleration.py index 63c36d42..a5d050da 100644 --- a/kubevirt/models/v1_toleration.py +++ b/kubevirt/models/k8s_io_api_core_v1_toleration.py @@ -16,7 +16,7 @@ import re -class V1Toleration(object): +class K8sIoApiCoreV1Toleration(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -48,7 +48,7 @@ class V1Toleration(object): def __init__(self, effect=None, key=None, operator=None, toleration_seconds=None, value=None): """ - V1Toleration - a model defined in Swagger + K8sIoApiCoreV1Toleration - a model defined in Swagger """ self._effect = None @@ -71,10 +71,10 @@ def __init__(self, effect=None, key=None, operator=None, toleration_seconds=None @property def effect(self): """ - Gets the effect of this V1Toleration. + Gets the effect of this K8sIoApiCoreV1Toleration. Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - :return: The effect of this V1Toleration. + :return: The effect of this K8sIoApiCoreV1Toleration. :rtype: str """ return self._effect @@ -82,10 +82,10 @@ def effect(self): @effect.setter def effect(self, effect): """ - Sets the effect of this V1Toleration. + Sets the effect of this K8sIoApiCoreV1Toleration. Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - :param effect: The effect of this V1Toleration. + :param effect: The effect of this K8sIoApiCoreV1Toleration. :type: str """ @@ -94,10 +94,10 @@ def effect(self, effect): @property def key(self): """ - Gets the key of this V1Toleration. + Gets the key of this K8sIoApiCoreV1Toleration. Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - :return: The key of this V1Toleration. + :return: The key of this K8sIoApiCoreV1Toleration. :rtype: str """ return self._key @@ -105,10 +105,10 @@ def key(self): @key.setter def key(self, key): """ - Sets the key of this V1Toleration. + Sets the key of this K8sIoApiCoreV1Toleration. Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - :param key: The key of this V1Toleration. + :param key: The key of this K8sIoApiCoreV1Toleration. :type: str """ @@ -117,10 +117,10 @@ def key(self, key): @property def operator(self): """ - Gets the operator of this V1Toleration. + Gets the operator of this K8sIoApiCoreV1Toleration. Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - :return: The operator of this V1Toleration. + :return: The operator of this K8sIoApiCoreV1Toleration. :rtype: str """ return self._operator @@ -128,10 +128,10 @@ def operator(self): @operator.setter def operator(self, operator): """ - Sets the operator of this V1Toleration. + Sets the operator of this K8sIoApiCoreV1Toleration. Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - :param operator: The operator of this V1Toleration. + :param operator: The operator of this K8sIoApiCoreV1Toleration. :type: str """ @@ -140,10 +140,10 @@ def operator(self, operator): @property def toleration_seconds(self): """ - Gets the toleration_seconds of this V1Toleration. + Gets the toleration_seconds of this K8sIoApiCoreV1Toleration. TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - :return: The toleration_seconds of this V1Toleration. + :return: The toleration_seconds of this K8sIoApiCoreV1Toleration. :rtype: int """ return self._toleration_seconds @@ -151,10 +151,10 @@ def toleration_seconds(self): @toleration_seconds.setter def toleration_seconds(self, toleration_seconds): """ - Sets the toleration_seconds of this V1Toleration. + Sets the toleration_seconds of this K8sIoApiCoreV1Toleration. TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - :param toleration_seconds: The toleration_seconds of this V1Toleration. + :param toleration_seconds: The toleration_seconds of this K8sIoApiCoreV1Toleration. :type: int """ @@ -163,10 +163,10 @@ def toleration_seconds(self, toleration_seconds): @property def value(self): """ - Gets the value of this V1Toleration. + Gets the value of this K8sIoApiCoreV1Toleration. Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - :return: The value of this V1Toleration. + :return: The value of this K8sIoApiCoreV1Toleration. :rtype: str """ return self._value @@ -174,10 +174,10 @@ def value(self): @value.setter def value(self, value): """ - Sets the value of this V1Toleration. + Sets the value of this K8sIoApiCoreV1Toleration. Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - :param value: The value of this V1Toleration. + :param value: The value of this K8sIoApiCoreV1Toleration. :type: str """ @@ -225,7 +225,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1Toleration): + if not isinstance(other, K8sIoApiCoreV1Toleration): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_typed_local_object_reference.py b/kubevirt/models/k8s_io_api_core_v1_typed_local_object_reference.py similarity index 78% rename from kubevirt/models/v1_typed_local_object_reference.py rename to kubevirt/models/k8s_io_api_core_v1_typed_local_object_reference.py index 06778e71..e60e8f06 100644 --- a/kubevirt/models/v1_typed_local_object_reference.py +++ b/kubevirt/models/k8s_io_api_core_v1_typed_local_object_reference.py @@ -16,7 +16,7 @@ import re -class V1TypedLocalObjectReference(object): +class K8sIoApiCoreV1TypedLocalObjectReference(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -44,7 +44,7 @@ class V1TypedLocalObjectReference(object): def __init__(self, api_group=None, kind=None, name=None): """ - V1TypedLocalObjectReference - a model defined in Swagger + K8sIoApiCoreV1TypedLocalObjectReference - a model defined in Swagger """ self._api_group = None @@ -59,10 +59,10 @@ def __init__(self, api_group=None, kind=None, name=None): @property def api_group(self): """ - Gets the api_group of this V1TypedLocalObjectReference. + Gets the api_group of this K8sIoApiCoreV1TypedLocalObjectReference. APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - :return: The api_group of this V1TypedLocalObjectReference. + :return: The api_group of this K8sIoApiCoreV1TypedLocalObjectReference. :rtype: str """ return self._api_group @@ -70,10 +70,10 @@ def api_group(self): @api_group.setter def api_group(self, api_group): """ - Sets the api_group of this V1TypedLocalObjectReference. + Sets the api_group of this K8sIoApiCoreV1TypedLocalObjectReference. APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - :param api_group: The api_group of this V1TypedLocalObjectReference. + :param api_group: The api_group of this K8sIoApiCoreV1TypedLocalObjectReference. :type: str """ @@ -82,10 +82,10 @@ def api_group(self, api_group): @property def kind(self): """ - Gets the kind of this V1TypedLocalObjectReference. + Gets the kind of this K8sIoApiCoreV1TypedLocalObjectReference. Kind is the type of resource being referenced - :return: The kind of this V1TypedLocalObjectReference. + :return: The kind of this K8sIoApiCoreV1TypedLocalObjectReference. :rtype: str """ return self._kind @@ -93,10 +93,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1TypedLocalObjectReference. + Sets the kind of this K8sIoApiCoreV1TypedLocalObjectReference. Kind is the type of resource being referenced - :param kind: The kind of this V1TypedLocalObjectReference. + :param kind: The kind of this K8sIoApiCoreV1TypedLocalObjectReference. :type: str """ if kind is None: @@ -107,10 +107,10 @@ def kind(self, kind): @property def name(self): """ - Gets the name of this V1TypedLocalObjectReference. + Gets the name of this K8sIoApiCoreV1TypedLocalObjectReference. Name is the name of resource being referenced - :return: The name of this V1TypedLocalObjectReference. + :return: The name of this K8sIoApiCoreV1TypedLocalObjectReference. :rtype: str """ return self._name @@ -118,10 +118,10 @@ def name(self): @name.setter def name(self, name): """ - Sets the name of this V1TypedLocalObjectReference. + Sets the name of this K8sIoApiCoreV1TypedLocalObjectReference. Name is the name of resource being referenced - :param name: The name of this V1TypedLocalObjectReference. + :param name: The name of this K8sIoApiCoreV1TypedLocalObjectReference. :type: str """ if name is None: @@ -171,7 +171,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1TypedLocalObjectReference): + if not isinstance(other, K8sIoApiCoreV1TypedLocalObjectReference): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_weighted_pod_affinity_term.py b/kubevirt/models/k8s_io_api_core_v1_weighted_pod_affinity_term.py similarity index 79% rename from kubevirt/models/v1_weighted_pod_affinity_term.py rename to kubevirt/models/k8s_io_api_core_v1_weighted_pod_affinity_term.py index 1d007a37..6c223f4e 100644 --- a/kubevirt/models/v1_weighted_pod_affinity_term.py +++ b/kubevirt/models/k8s_io_api_core_v1_weighted_pod_affinity_term.py @@ -16,7 +16,7 @@ import re -class V1WeightedPodAffinityTerm(object): +class K8sIoApiCoreV1WeightedPodAffinityTerm(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,7 +31,7 @@ class V1WeightedPodAffinityTerm(object): and the value is json key in definition. """ swagger_types = { - 'pod_affinity_term': 'V1PodAffinityTerm', + 'pod_affinity_term': 'K8sIoApiCoreV1PodAffinityTerm', 'weight': 'int' } @@ -42,7 +42,7 @@ class V1WeightedPodAffinityTerm(object): def __init__(self, pod_affinity_term=None, weight=None): """ - V1WeightedPodAffinityTerm - a model defined in Swagger + K8sIoApiCoreV1WeightedPodAffinityTerm - a model defined in Swagger """ self._pod_affinity_term = None @@ -54,22 +54,22 @@ def __init__(self, pod_affinity_term=None, weight=None): @property def pod_affinity_term(self): """ - Gets the pod_affinity_term of this V1WeightedPodAffinityTerm. + Gets the pod_affinity_term of this K8sIoApiCoreV1WeightedPodAffinityTerm. Required. A pod affinity term, associated with the corresponding weight. - :return: The pod_affinity_term of this V1WeightedPodAffinityTerm. - :rtype: V1PodAffinityTerm + :return: The pod_affinity_term of this K8sIoApiCoreV1WeightedPodAffinityTerm. + :rtype: K8sIoApiCoreV1PodAffinityTerm """ return self._pod_affinity_term @pod_affinity_term.setter def pod_affinity_term(self, pod_affinity_term): """ - Sets the pod_affinity_term of this V1WeightedPodAffinityTerm. + Sets the pod_affinity_term of this K8sIoApiCoreV1WeightedPodAffinityTerm. Required. A pod affinity term, associated with the corresponding weight. - :param pod_affinity_term: The pod_affinity_term of this V1WeightedPodAffinityTerm. - :type: V1PodAffinityTerm + :param pod_affinity_term: The pod_affinity_term of this K8sIoApiCoreV1WeightedPodAffinityTerm. + :type: K8sIoApiCoreV1PodAffinityTerm """ if pod_affinity_term is None: raise ValueError("Invalid value for `pod_affinity_term`, must not be `None`") @@ -79,10 +79,10 @@ def pod_affinity_term(self, pod_affinity_term): @property def weight(self): """ - Gets the weight of this V1WeightedPodAffinityTerm. + Gets the weight of this K8sIoApiCoreV1WeightedPodAffinityTerm. weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - :return: The weight of this V1WeightedPodAffinityTerm. + :return: The weight of this K8sIoApiCoreV1WeightedPodAffinityTerm. :rtype: int """ return self._weight @@ -90,10 +90,10 @@ def weight(self): @weight.setter def weight(self, weight): """ - Sets the weight of this V1WeightedPodAffinityTerm. + Sets the weight of this K8sIoApiCoreV1WeightedPodAffinityTerm. weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - :param weight: The weight of this V1WeightedPodAffinityTerm. + :param weight: The weight of this K8sIoApiCoreV1WeightedPodAffinityTerm. :type: int """ if weight is None: @@ -143,7 +143,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1WeightedPodAffinityTerm): + if not isinstance(other, K8sIoApiCoreV1WeightedPodAffinityTerm): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/k8s_io_apimachinery_pkg_api_resource_quantity.py b/kubevirt/models/k8s_io_apimachinery_pkg_api_resource_quantity.py new file mode 100644 index 00000000..683066ca --- /dev/null +++ b/kubevirt/models/k8s_io_apimachinery_pkg_api_resource_quantity.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class K8sIoApimachineryPkgApiResourceQuantity(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + K8sIoApimachineryPkgApiResourceQuantity - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, K8sIoApimachineryPkgApiResourceQuantity): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_api_group.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group.py similarity index 74% rename from kubevirt/models/v1_api_group.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group.py index 59c1d6f6..e458aa2c 100644 --- a/kubevirt/models/v1_api_group.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group.py @@ -16,7 +16,7 @@ import re -class V1APIGroup(object): +class K8sIoApimachineryPkgApisMetaV1APIGroup(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -34,9 +34,9 @@ class V1APIGroup(object): 'api_version': 'str', 'kind': 'str', 'name': 'str', - 'preferred_version': 'V1GroupVersionForDiscovery', - 'server_address_by_client_cid_rs': 'list[V1ServerAddressByClientCIDR]', - 'versions': 'list[V1GroupVersionForDiscovery]' + 'preferred_version': 'K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery', + 'server_address_by_client_cid_rs': 'list[K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR]', + 'versions': 'list[K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery]' } attribute_map = { @@ -50,7 +50,7 @@ class V1APIGroup(object): def __init__(self, api_version=None, kind=None, name=None, preferred_version=None, server_address_by_client_cid_rs=None, versions=None): """ - V1APIGroup - a model defined in Swagger + K8sIoApimachineryPkgApisMetaV1APIGroup - a model defined in Swagger """ self._api_version = None @@ -74,10 +74,10 @@ def __init__(self, api_version=None, kind=None, name=None, preferred_version=Non @property def api_version(self): """ - Gets the api_version of this V1APIGroup. + Gets the api_version of this K8sIoApimachineryPkgApisMetaV1APIGroup. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1APIGroup. + :return: The api_version of this K8sIoApimachineryPkgApisMetaV1APIGroup. :rtype: str """ return self._api_version @@ -85,10 +85,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1APIGroup. + Sets the api_version of this K8sIoApimachineryPkgApisMetaV1APIGroup. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1APIGroup. + :param api_version: The api_version of this K8sIoApimachineryPkgApisMetaV1APIGroup. :type: str """ @@ -97,10 +97,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V1APIGroup. + Gets the kind of this K8sIoApimachineryPkgApisMetaV1APIGroup. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1APIGroup. + :return: The kind of this K8sIoApimachineryPkgApisMetaV1APIGroup. :rtype: str """ return self._kind @@ -108,10 +108,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1APIGroup. + Sets the kind of this K8sIoApimachineryPkgApisMetaV1APIGroup. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1APIGroup. + :param kind: The kind of this K8sIoApimachineryPkgApisMetaV1APIGroup. :type: str """ @@ -120,10 +120,10 @@ def kind(self, kind): @property def name(self): """ - Gets the name of this V1APIGroup. + Gets the name of this K8sIoApimachineryPkgApisMetaV1APIGroup. name is the name of the group. - :return: The name of this V1APIGroup. + :return: The name of this K8sIoApimachineryPkgApisMetaV1APIGroup. :rtype: str """ return self._name @@ -131,10 +131,10 @@ def name(self): @name.setter def name(self, name): """ - Sets the name of this V1APIGroup. + Sets the name of this K8sIoApimachineryPkgApisMetaV1APIGroup. name is the name of the group. - :param name: The name of this V1APIGroup. + :param name: The name of this K8sIoApimachineryPkgApisMetaV1APIGroup. :type: str """ if name is None: @@ -145,22 +145,22 @@ def name(self, name): @property def preferred_version(self): """ - Gets the preferred_version of this V1APIGroup. + Gets the preferred_version of this K8sIoApimachineryPkgApisMetaV1APIGroup. preferredVersion is the version preferred by the API server, which probably is the storage version. - :return: The preferred_version of this V1APIGroup. - :rtype: V1GroupVersionForDiscovery + :return: The preferred_version of this K8sIoApimachineryPkgApisMetaV1APIGroup. + :rtype: K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery """ return self._preferred_version @preferred_version.setter def preferred_version(self, preferred_version): """ - Sets the preferred_version of this V1APIGroup. + Sets the preferred_version of this K8sIoApimachineryPkgApisMetaV1APIGroup. preferredVersion is the version preferred by the API server, which probably is the storage version. - :param preferred_version: The preferred_version of this V1APIGroup. - :type: V1GroupVersionForDiscovery + :param preferred_version: The preferred_version of this K8sIoApimachineryPkgApisMetaV1APIGroup. + :type: K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery """ self._preferred_version = preferred_version @@ -168,22 +168,22 @@ def preferred_version(self, preferred_version): @property def server_address_by_client_cid_rs(self): """ - Gets the server_address_by_client_cid_rs of this V1APIGroup. + Gets the server_address_by_client_cid_rs of this K8sIoApimachineryPkgApisMetaV1APIGroup. a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. - :return: The server_address_by_client_cid_rs of this V1APIGroup. - :rtype: list[V1ServerAddressByClientCIDR] + :return: The server_address_by_client_cid_rs of this K8sIoApimachineryPkgApisMetaV1APIGroup. + :rtype: list[K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR] """ return self._server_address_by_client_cid_rs @server_address_by_client_cid_rs.setter def server_address_by_client_cid_rs(self, server_address_by_client_cid_rs): """ - Sets the server_address_by_client_cid_rs of this V1APIGroup. + Sets the server_address_by_client_cid_rs of this K8sIoApimachineryPkgApisMetaV1APIGroup. a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. - :param server_address_by_client_cid_rs: The server_address_by_client_cid_rs of this V1APIGroup. - :type: list[V1ServerAddressByClientCIDR] + :param server_address_by_client_cid_rs: The server_address_by_client_cid_rs of this K8sIoApimachineryPkgApisMetaV1APIGroup. + :type: list[K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR] """ self._server_address_by_client_cid_rs = server_address_by_client_cid_rs @@ -191,22 +191,22 @@ def server_address_by_client_cid_rs(self, server_address_by_client_cid_rs): @property def versions(self): """ - Gets the versions of this V1APIGroup. + Gets the versions of this K8sIoApimachineryPkgApisMetaV1APIGroup. versions are the versions supported in this group. - :return: The versions of this V1APIGroup. - :rtype: list[V1GroupVersionForDiscovery] + :return: The versions of this K8sIoApimachineryPkgApisMetaV1APIGroup. + :rtype: list[K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery] """ return self._versions @versions.setter def versions(self, versions): """ - Sets the versions of this V1APIGroup. + Sets the versions of this K8sIoApimachineryPkgApisMetaV1APIGroup. versions are the versions supported in this group. - :param versions: The versions of this V1APIGroup. - :type: list[V1GroupVersionForDiscovery] + :param versions: The versions of this K8sIoApimachineryPkgApisMetaV1APIGroup. + :type: list[K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery] """ if versions is None: raise ValueError("Invalid value for `versions`, must not be `None`") @@ -255,7 +255,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1APIGroup): + if not isinstance(other, K8sIoApimachineryPkgApisMetaV1APIGroup): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_api_group_list.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list.py similarity index 77% rename from kubevirt/models/v1_api_group_list.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list.py index ce8390aa..8e81efd8 100644 --- a/kubevirt/models/v1_api_group_list.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list.py @@ -16,7 +16,7 @@ import re -class V1APIGroupList(object): +class K8sIoApimachineryPkgApisMetaV1APIGroupList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class V1APIGroupList(object): """ swagger_types = { 'api_version': 'str', - 'groups': 'list[V1APIGroup]', + 'groups': 'list[K8sIoApimachineryPkgApisMetaV1APIGroup]', 'kind': 'str' } @@ -44,7 +44,7 @@ class V1APIGroupList(object): def __init__(self, api_version=None, groups=None, kind=None): """ - V1APIGroupList - a model defined in Swagger + K8sIoApimachineryPkgApisMetaV1APIGroupList - a model defined in Swagger """ self._api_version = None @@ -60,10 +60,10 @@ def __init__(self, api_version=None, groups=None, kind=None): @property def api_version(self): """ - Gets the api_version of this V1APIGroupList. + Gets the api_version of this K8sIoApimachineryPkgApisMetaV1APIGroupList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1APIGroupList. + :return: The api_version of this K8sIoApimachineryPkgApisMetaV1APIGroupList. :rtype: str """ return self._api_version @@ -71,10 +71,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1APIGroupList. + Sets the api_version of this K8sIoApimachineryPkgApisMetaV1APIGroupList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1APIGroupList. + :param api_version: The api_version of this K8sIoApimachineryPkgApisMetaV1APIGroupList. :type: str """ @@ -83,22 +83,22 @@ def api_version(self, api_version): @property def groups(self): """ - Gets the groups of this V1APIGroupList. + Gets the groups of this K8sIoApimachineryPkgApisMetaV1APIGroupList. groups is a list of APIGroup. - :return: The groups of this V1APIGroupList. - :rtype: list[V1APIGroup] + :return: The groups of this K8sIoApimachineryPkgApisMetaV1APIGroupList. + :rtype: list[K8sIoApimachineryPkgApisMetaV1APIGroup] """ return self._groups @groups.setter def groups(self, groups): """ - Sets the groups of this V1APIGroupList. + Sets the groups of this K8sIoApimachineryPkgApisMetaV1APIGroupList. groups is a list of APIGroup. - :param groups: The groups of this V1APIGroupList. - :type: list[V1APIGroup] + :param groups: The groups of this K8sIoApimachineryPkgApisMetaV1APIGroupList. + :type: list[K8sIoApimachineryPkgApisMetaV1APIGroup] """ if groups is None: raise ValueError("Invalid value for `groups`, must not be `None`") @@ -108,10 +108,10 @@ def groups(self, groups): @property def kind(self): """ - Gets the kind of this V1APIGroupList. + Gets the kind of this K8sIoApimachineryPkgApisMetaV1APIGroupList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1APIGroupList. + :return: The kind of this K8sIoApimachineryPkgApisMetaV1APIGroupList. :rtype: str """ return self._kind @@ -119,10 +119,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1APIGroupList. + Sets the kind of this K8sIoApimachineryPkgApisMetaV1APIGroupList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1APIGroupList. + :param kind: The kind of this K8sIoApimachineryPkgApisMetaV1APIGroupList. :type: str """ @@ -170,7 +170,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1APIGroupList): + if not isinstance(other, K8sIoApimachineryPkgApisMetaV1APIGroupList): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_api_resource.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource.py similarity index 75% rename from kubevirt/models/v1_api_resource.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource.py index 02432fbc..730bfa21 100644 --- a/kubevirt/models/v1_api_resource.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource.py @@ -16,7 +16,7 @@ import re -class V1APIResource(object): +class K8sIoApimachineryPkgApisMetaV1APIResource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -58,7 +58,7 @@ class V1APIResource(object): def __init__(self, categories=None, group=None, kind=None, name=None, namespaced=None, short_names=None, singular_name=None, storage_version_hash=None, verbs=None, version=None): """ - V1APIResource - a model defined in Swagger + K8sIoApimachineryPkgApisMetaV1APIResource - a model defined in Swagger """ self._categories = None @@ -91,10 +91,10 @@ def __init__(self, categories=None, group=None, kind=None, name=None, namespaced @property def categories(self): """ - Gets the categories of this V1APIResource. + Gets the categories of this K8sIoApimachineryPkgApisMetaV1APIResource. categories is a list of the grouped resources this resource belongs to (e.g. 'all') - :return: The categories of this V1APIResource. + :return: The categories of this K8sIoApimachineryPkgApisMetaV1APIResource. :rtype: list[str] """ return self._categories @@ -102,10 +102,10 @@ def categories(self): @categories.setter def categories(self, categories): """ - Sets the categories of this V1APIResource. + Sets the categories of this K8sIoApimachineryPkgApisMetaV1APIResource. categories is a list of the grouped resources this resource belongs to (e.g. 'all') - :param categories: The categories of this V1APIResource. + :param categories: The categories of this K8sIoApimachineryPkgApisMetaV1APIResource. :type: list[str] """ @@ -114,10 +114,10 @@ def categories(self, categories): @property def group(self): """ - Gets the group of this V1APIResource. + Gets the group of this K8sIoApimachineryPkgApisMetaV1APIResource. group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\". - :return: The group of this V1APIResource. + :return: The group of this K8sIoApimachineryPkgApisMetaV1APIResource. :rtype: str """ return self._group @@ -125,10 +125,10 @@ def group(self): @group.setter def group(self, group): """ - Sets the group of this V1APIResource. + Sets the group of this K8sIoApimachineryPkgApisMetaV1APIResource. group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\". - :param group: The group of this V1APIResource. + :param group: The group of this K8sIoApimachineryPkgApisMetaV1APIResource. :type: str """ @@ -137,10 +137,10 @@ def group(self, group): @property def kind(self): """ - Gets the kind of this V1APIResource. + Gets the kind of this K8sIoApimachineryPkgApisMetaV1APIResource. kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') - :return: The kind of this V1APIResource. + :return: The kind of this K8sIoApimachineryPkgApisMetaV1APIResource. :rtype: str """ return self._kind @@ -148,10 +148,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1APIResource. + Sets the kind of this K8sIoApimachineryPkgApisMetaV1APIResource. kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') - :param kind: The kind of this V1APIResource. + :param kind: The kind of this K8sIoApimachineryPkgApisMetaV1APIResource. :type: str """ if kind is None: @@ -162,10 +162,10 @@ def kind(self, kind): @property def name(self): """ - Gets the name of this V1APIResource. + Gets the name of this K8sIoApimachineryPkgApisMetaV1APIResource. name is the plural name of the resource. - :return: The name of this V1APIResource. + :return: The name of this K8sIoApimachineryPkgApisMetaV1APIResource. :rtype: str """ return self._name @@ -173,10 +173,10 @@ def name(self): @name.setter def name(self, name): """ - Sets the name of this V1APIResource. + Sets the name of this K8sIoApimachineryPkgApisMetaV1APIResource. name is the plural name of the resource. - :param name: The name of this V1APIResource. + :param name: The name of this K8sIoApimachineryPkgApisMetaV1APIResource. :type: str """ if name is None: @@ -187,10 +187,10 @@ def name(self, name): @property def namespaced(self): """ - Gets the namespaced of this V1APIResource. + Gets the namespaced of this K8sIoApimachineryPkgApisMetaV1APIResource. namespaced indicates if a resource is namespaced or not. - :return: The namespaced of this V1APIResource. + :return: The namespaced of this K8sIoApimachineryPkgApisMetaV1APIResource. :rtype: bool """ return self._namespaced @@ -198,10 +198,10 @@ def namespaced(self): @namespaced.setter def namespaced(self, namespaced): """ - Sets the namespaced of this V1APIResource. + Sets the namespaced of this K8sIoApimachineryPkgApisMetaV1APIResource. namespaced indicates if a resource is namespaced or not. - :param namespaced: The namespaced of this V1APIResource. + :param namespaced: The namespaced of this K8sIoApimachineryPkgApisMetaV1APIResource. :type: bool """ if namespaced is None: @@ -212,10 +212,10 @@ def namespaced(self, namespaced): @property def short_names(self): """ - Gets the short_names of this V1APIResource. + Gets the short_names of this K8sIoApimachineryPkgApisMetaV1APIResource. shortNames is a list of suggested short names of the resource. - :return: The short_names of this V1APIResource. + :return: The short_names of this K8sIoApimachineryPkgApisMetaV1APIResource. :rtype: list[str] """ return self._short_names @@ -223,10 +223,10 @@ def short_names(self): @short_names.setter def short_names(self, short_names): """ - Sets the short_names of this V1APIResource. + Sets the short_names of this K8sIoApimachineryPkgApisMetaV1APIResource. shortNames is a list of suggested short names of the resource. - :param short_names: The short_names of this V1APIResource. + :param short_names: The short_names of this K8sIoApimachineryPkgApisMetaV1APIResource. :type: list[str] """ @@ -235,10 +235,10 @@ def short_names(self, short_names): @property def singular_name(self): """ - Gets the singular_name of this V1APIResource. + Gets the singular_name of this K8sIoApimachineryPkgApisMetaV1APIResource. singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface. - :return: The singular_name of this V1APIResource. + :return: The singular_name of this K8sIoApimachineryPkgApisMetaV1APIResource. :rtype: str """ return self._singular_name @@ -246,10 +246,10 @@ def singular_name(self): @singular_name.setter def singular_name(self, singular_name): """ - Sets the singular_name of this V1APIResource. + Sets the singular_name of this K8sIoApimachineryPkgApisMetaV1APIResource. singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface. - :param singular_name: The singular_name of this V1APIResource. + :param singular_name: The singular_name of this K8sIoApimachineryPkgApisMetaV1APIResource. :type: str """ if singular_name is None: @@ -260,10 +260,10 @@ def singular_name(self, singular_name): @property def storage_version_hash(self): """ - Gets the storage_version_hash of this V1APIResource. + Gets the storage_version_hash of this K8sIoApimachineryPkgApisMetaV1APIResource. The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates. - :return: The storage_version_hash of this V1APIResource. + :return: The storage_version_hash of this K8sIoApimachineryPkgApisMetaV1APIResource. :rtype: str """ return self._storage_version_hash @@ -271,10 +271,10 @@ def storage_version_hash(self): @storage_version_hash.setter def storage_version_hash(self, storage_version_hash): """ - Sets the storage_version_hash of this V1APIResource. + Sets the storage_version_hash of this K8sIoApimachineryPkgApisMetaV1APIResource. The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates. - :param storage_version_hash: The storage_version_hash of this V1APIResource. + :param storage_version_hash: The storage_version_hash of this K8sIoApimachineryPkgApisMetaV1APIResource. :type: str """ @@ -283,10 +283,10 @@ def storage_version_hash(self, storage_version_hash): @property def verbs(self): """ - Gets the verbs of this V1APIResource. + Gets the verbs of this K8sIoApimachineryPkgApisMetaV1APIResource. verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) - :return: The verbs of this V1APIResource. + :return: The verbs of this K8sIoApimachineryPkgApisMetaV1APIResource. :rtype: list[str] """ return self._verbs @@ -294,10 +294,10 @@ def verbs(self): @verbs.setter def verbs(self, verbs): """ - Sets the verbs of this V1APIResource. + Sets the verbs of this K8sIoApimachineryPkgApisMetaV1APIResource. verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) - :param verbs: The verbs of this V1APIResource. + :param verbs: The verbs of this K8sIoApimachineryPkgApisMetaV1APIResource. :type: list[str] """ if verbs is None: @@ -308,10 +308,10 @@ def verbs(self, verbs): @property def version(self): """ - Gets the version of this V1APIResource. + Gets the version of this K8sIoApimachineryPkgApisMetaV1APIResource. version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\". - :return: The version of this V1APIResource. + :return: The version of this K8sIoApimachineryPkgApisMetaV1APIResource. :rtype: str """ return self._version @@ -319,10 +319,10 @@ def version(self): @version.setter def version(self, version): """ - Sets the version of this V1APIResource. + Sets the version of this K8sIoApimachineryPkgApisMetaV1APIResource. version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\". - :param version: The version of this V1APIResource. + :param version: The version of this K8sIoApimachineryPkgApisMetaV1APIResource. :type: str """ @@ -370,7 +370,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1APIResource): + if not isinstance(other, K8sIoApimachineryPkgApisMetaV1APIResource): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_api_resource_list.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_list.py similarity index 75% rename from kubevirt/models/v1_api_resource_list.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_list.py index 00f31142..d0675fc1 100644 --- a/kubevirt/models/v1_api_resource_list.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_list.py @@ -16,7 +16,7 @@ import re -class V1APIResourceList(object): +class K8sIoApimachineryPkgApisMetaV1APIResourceList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -34,7 +34,7 @@ class V1APIResourceList(object): 'api_version': 'str', 'group_version': 'str', 'kind': 'str', - 'resources': 'list[V1APIResource]' + 'resources': 'list[K8sIoApimachineryPkgApisMetaV1APIResource]' } attribute_map = { @@ -46,7 +46,7 @@ class V1APIResourceList(object): def __init__(self, api_version=None, group_version=None, kind=None, resources=None): """ - V1APIResourceList - a model defined in Swagger + K8sIoApimachineryPkgApisMetaV1APIResourceList - a model defined in Swagger """ self._api_version = None @@ -64,10 +64,10 @@ def __init__(self, api_version=None, group_version=None, kind=None, resources=No @property def api_version(self): """ - Gets the api_version of this V1APIResourceList. + Gets the api_version of this K8sIoApimachineryPkgApisMetaV1APIResourceList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1APIResourceList. + :return: The api_version of this K8sIoApimachineryPkgApisMetaV1APIResourceList. :rtype: str """ return self._api_version @@ -75,10 +75,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1APIResourceList. + Sets the api_version of this K8sIoApimachineryPkgApisMetaV1APIResourceList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1APIResourceList. + :param api_version: The api_version of this K8sIoApimachineryPkgApisMetaV1APIResourceList. :type: str """ @@ -87,10 +87,10 @@ def api_version(self, api_version): @property def group_version(self): """ - Gets the group_version of this V1APIResourceList. + Gets the group_version of this K8sIoApimachineryPkgApisMetaV1APIResourceList. groupVersion is the group and version this APIResourceList is for. - :return: The group_version of this V1APIResourceList. + :return: The group_version of this K8sIoApimachineryPkgApisMetaV1APIResourceList. :rtype: str """ return self._group_version @@ -98,10 +98,10 @@ def group_version(self): @group_version.setter def group_version(self, group_version): """ - Sets the group_version of this V1APIResourceList. + Sets the group_version of this K8sIoApimachineryPkgApisMetaV1APIResourceList. groupVersion is the group and version this APIResourceList is for. - :param group_version: The group_version of this V1APIResourceList. + :param group_version: The group_version of this K8sIoApimachineryPkgApisMetaV1APIResourceList. :type: str """ if group_version is None: @@ -112,10 +112,10 @@ def group_version(self, group_version): @property def kind(self): """ - Gets the kind of this V1APIResourceList. + Gets the kind of this K8sIoApimachineryPkgApisMetaV1APIResourceList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1APIResourceList. + :return: The kind of this K8sIoApimachineryPkgApisMetaV1APIResourceList. :rtype: str """ return self._kind @@ -123,10 +123,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1APIResourceList. + Sets the kind of this K8sIoApimachineryPkgApisMetaV1APIResourceList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1APIResourceList. + :param kind: The kind of this K8sIoApimachineryPkgApisMetaV1APIResourceList. :type: str """ @@ -135,22 +135,22 @@ def kind(self, kind): @property def resources(self): """ - Gets the resources of this V1APIResourceList. + Gets the resources of this K8sIoApimachineryPkgApisMetaV1APIResourceList. resources contains the name of the resources and if they are namespaced. - :return: The resources of this V1APIResourceList. - :rtype: list[V1APIResource] + :return: The resources of this K8sIoApimachineryPkgApisMetaV1APIResourceList. + :rtype: list[K8sIoApimachineryPkgApisMetaV1APIResource] """ return self._resources @resources.setter def resources(self, resources): """ - Sets the resources of this V1APIResourceList. + Sets the resources of this K8sIoApimachineryPkgApisMetaV1APIResourceList. resources contains the name of the resources and if they are namespaced. - :param resources: The resources of this V1APIResourceList. - :type: list[V1APIResource] + :param resources: The resources of this K8sIoApimachineryPkgApisMetaV1APIResourceList. + :type: list[K8sIoApimachineryPkgApisMetaV1APIResource] """ if resources is None: raise ValueError("Invalid value for `resources`, must not be `None`") @@ -199,7 +199,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1APIResourceList): + if not isinstance(other, K8sIoApimachineryPkgApisMetaV1APIResourceList): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_delete_options.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_delete_options.py similarity index 78% rename from kubevirt/models/v1_delete_options.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_delete_options.py index 6dbaa58f..a0a2a713 100644 --- a/kubevirt/models/v1_delete_options.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_delete_options.py @@ -16,7 +16,7 @@ import re -class V1DeleteOptions(object): +class K8sIoApimachineryPkgApisMetaV1DeleteOptions(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +36,7 @@ class V1DeleteOptions(object): 'grace_period_seconds': 'int', 'kind': 'str', 'orphan_dependents': 'bool', - 'preconditions': 'V1Preconditions', + 'preconditions': 'K8sIoApimachineryPkgApisMetaV1Preconditions', 'propagation_policy': 'str' } @@ -52,7 +52,7 @@ class V1DeleteOptions(object): def __init__(self, api_version=None, dry_run=None, grace_period_seconds=None, kind=None, orphan_dependents=None, preconditions=None, propagation_policy=None): """ - V1DeleteOptions - a model defined in Swagger + K8sIoApimachineryPkgApisMetaV1DeleteOptions - a model defined in Swagger """ self._api_version = None @@ -81,10 +81,10 @@ def __init__(self, api_version=None, dry_run=None, grace_period_seconds=None, ki @property def api_version(self): """ - Gets the api_version of this V1DeleteOptions. + Gets the api_version of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1DeleteOptions. + :return: The api_version of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. :rtype: str """ return self._api_version @@ -92,10 +92,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1DeleteOptions. + Sets the api_version of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1DeleteOptions. + :param api_version: The api_version of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. :type: str """ @@ -104,10 +104,10 @@ def api_version(self, api_version): @property def dry_run(self): """ - Gets the dry_run of this V1DeleteOptions. + Gets the dry_run of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :return: The dry_run of this V1DeleteOptions. + :return: The dry_run of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. :rtype: list[str] """ return self._dry_run @@ -115,10 +115,10 @@ def dry_run(self): @dry_run.setter def dry_run(self, dry_run): """ - Sets the dry_run of this V1DeleteOptions. + Sets the dry_run of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - :param dry_run: The dry_run of this V1DeleteOptions. + :param dry_run: The dry_run of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. :type: list[str] """ @@ -127,10 +127,10 @@ def dry_run(self, dry_run): @property def grace_period_seconds(self): """ - Gets the grace_period_seconds of this V1DeleteOptions. + Gets the grace_period_seconds of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :return: The grace_period_seconds of this V1DeleteOptions. + :return: The grace_period_seconds of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. :rtype: int """ return self._grace_period_seconds @@ -138,10 +138,10 @@ def grace_period_seconds(self): @grace_period_seconds.setter def grace_period_seconds(self, grace_period_seconds): """ - Sets the grace_period_seconds of this V1DeleteOptions. + Sets the grace_period_seconds of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param grace_period_seconds: The grace_period_seconds of this V1DeleteOptions. + :param grace_period_seconds: The grace_period_seconds of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. :type: int """ @@ -150,10 +150,10 @@ def grace_period_seconds(self, grace_period_seconds): @property def kind(self): """ - Gets the kind of this V1DeleteOptions. + Gets the kind of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1DeleteOptions. + :return: The kind of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. :rtype: str """ return self._kind @@ -161,10 +161,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1DeleteOptions. + Sets the kind of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1DeleteOptions. + :param kind: The kind of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. :type: str """ @@ -173,10 +173,10 @@ def kind(self, kind): @property def orphan_dependents(self): """ - Gets the orphan_dependents of this V1DeleteOptions. + Gets the orphan_dependents of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :return: The orphan_dependents of this V1DeleteOptions. + :return: The orphan_dependents of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. :rtype: bool """ return self._orphan_dependents @@ -184,10 +184,10 @@ def orphan_dependents(self): @orphan_dependents.setter def orphan_dependents(self, orphan_dependents): """ - Sets the orphan_dependents of this V1DeleteOptions. + Sets the orphan_dependents of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param orphan_dependents: The orphan_dependents of this V1DeleteOptions. + :param orphan_dependents: The orphan_dependents of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. :type: bool """ @@ -196,22 +196,22 @@ def orphan_dependents(self, orphan_dependents): @property def preconditions(self): """ - Gets the preconditions of this V1DeleteOptions. + Gets the preconditions of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. - :return: The preconditions of this V1DeleteOptions. - :rtype: V1Preconditions + :return: The preconditions of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. + :rtype: K8sIoApimachineryPkgApisMetaV1Preconditions """ return self._preconditions @preconditions.setter def preconditions(self, preconditions): """ - Sets the preconditions of this V1DeleteOptions. + Sets the preconditions of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. - :param preconditions: The preconditions of this V1DeleteOptions. - :type: V1Preconditions + :param preconditions: The preconditions of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. + :type: K8sIoApimachineryPkgApisMetaV1Preconditions """ self._preconditions = preconditions @@ -219,10 +219,10 @@ def preconditions(self, preconditions): @property def propagation_policy(self): """ - Gets the propagation_policy of this V1DeleteOptions. + Gets the propagation_policy of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - :return: The propagation_policy of this V1DeleteOptions. + :return: The propagation_policy of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. :rtype: str """ return self._propagation_policy @@ -230,10 +230,10 @@ def propagation_policy(self): @propagation_policy.setter def propagation_policy(self, propagation_policy): """ - Sets the propagation_policy of this V1DeleteOptions. + Sets the propagation_policy of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - :param propagation_policy: The propagation_policy of this V1DeleteOptions. + :param propagation_policy: The propagation_policy of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. :type: str """ @@ -281,7 +281,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1DeleteOptions): + if not isinstance(other, K8sIoApimachineryPkgApisMetaV1DeleteOptions): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/runtime_raw_extension.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_duration.py similarity index 91% rename from kubevirt/models/runtime_raw_extension.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_duration.py index f36f754c..87b06a2d 100644 --- a/kubevirt/models/runtime_raw_extension.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_duration.py @@ -16,7 +16,7 @@ import re -class RuntimeRawExtension(object): +class K8sIoApimachineryPkgApisMetaV1Duration(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,7 +40,7 @@ class RuntimeRawExtension(object): def __init__(self): """ - RuntimeRawExtension - a model defined in Swagger + K8sIoApimachineryPkgApisMetaV1Duration - a model defined in Swagger """ @@ -87,7 +87,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, RuntimeRawExtension): + if not isinstance(other, K8sIoApimachineryPkgApisMetaV1Duration): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/resource_quantity.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_fields_v1.py similarity index 91% rename from kubevirt/models/resource_quantity.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_fields_v1.py index da4c6f06..1f0593a2 100644 --- a/kubevirt/models/resource_quantity.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_fields_v1.py @@ -16,7 +16,7 @@ import re -class ResourceQuantity(object): +class K8sIoApimachineryPkgApisMetaV1FieldsV1(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,7 +40,7 @@ class ResourceQuantity(object): def __init__(self): """ - ResourceQuantity - a model defined in Swagger + K8sIoApimachineryPkgApisMetaV1FieldsV1 - a model defined in Swagger """ @@ -87,7 +87,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, ResourceQuantity): + if not isinstance(other, K8sIoApimachineryPkgApisMetaV1FieldsV1): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_group_version_for_discovery.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_group_version_for_discovery.py similarity index 78% rename from kubevirt/models/v1_group_version_for_discovery.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_group_version_for_discovery.py index ddd16963..8f086b51 100644 --- a/kubevirt/models/v1_group_version_for_discovery.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_group_version_for_discovery.py @@ -16,7 +16,7 @@ import re -class V1GroupVersionForDiscovery(object): +class K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class V1GroupVersionForDiscovery(object): def __init__(self, group_version=None, version=None): """ - V1GroupVersionForDiscovery - a model defined in Swagger + K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery - a model defined in Swagger """ self._group_version = None @@ -54,10 +54,10 @@ def __init__(self, group_version=None, version=None): @property def group_version(self): """ - Gets the group_version of this V1GroupVersionForDiscovery. + Gets the group_version of this K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery. groupVersion specifies the API group and version in the form \"group/version\" - :return: The group_version of this V1GroupVersionForDiscovery. + :return: The group_version of this K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery. :rtype: str """ return self._group_version @@ -65,10 +65,10 @@ def group_version(self): @group_version.setter def group_version(self, group_version): """ - Sets the group_version of this V1GroupVersionForDiscovery. + Sets the group_version of this K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery. groupVersion specifies the API group and version in the form \"group/version\" - :param group_version: The group_version of this V1GroupVersionForDiscovery. + :param group_version: The group_version of this K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery. :type: str """ if group_version is None: @@ -79,10 +79,10 @@ def group_version(self, group_version): @property def version(self): """ - Gets the version of this V1GroupVersionForDiscovery. + Gets the version of this K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery. version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion. - :return: The version of this V1GroupVersionForDiscovery. + :return: The version of this K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery. :rtype: str """ return self._version @@ -90,10 +90,10 @@ def version(self): @version.setter def version(self, version): """ - Sets the version of this V1GroupVersionForDiscovery. + Sets the version of this K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery. version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion. - :param version: The version of this V1GroupVersionForDiscovery. + :param version: The version of this K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery. :type: str """ if version is None: @@ -143,7 +143,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1GroupVersionForDiscovery): + if not isinstance(other, K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_label_selector.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_label_selector.py similarity index 77% rename from kubevirt/models/v1_label_selector.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_label_selector.py index eafaa188..6b0dfcae 100644 --- a/kubevirt/models/v1_label_selector.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_label_selector.py @@ -16,7 +16,7 @@ import re -class V1LabelSelector(object): +class K8sIoApimachineryPkgApisMetaV1LabelSelector(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,7 +31,7 @@ class V1LabelSelector(object): and the value is json key in definition. """ swagger_types = { - 'match_expressions': 'list[V1LabelSelectorRequirement]', + 'match_expressions': 'list[K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement]', 'match_labels': 'dict(str, str)' } @@ -42,7 +42,7 @@ class V1LabelSelector(object): def __init__(self, match_expressions=None, match_labels=None): """ - V1LabelSelector - a model defined in Swagger + K8sIoApimachineryPkgApisMetaV1LabelSelector - a model defined in Swagger """ self._match_expressions = None @@ -56,22 +56,22 @@ def __init__(self, match_expressions=None, match_labels=None): @property def match_expressions(self): """ - Gets the match_expressions of this V1LabelSelector. + Gets the match_expressions of this K8sIoApimachineryPkgApisMetaV1LabelSelector. matchExpressions is a list of label selector requirements. The requirements are ANDed. - :return: The match_expressions of this V1LabelSelector. - :rtype: list[V1LabelSelectorRequirement] + :return: The match_expressions of this K8sIoApimachineryPkgApisMetaV1LabelSelector. + :rtype: list[K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement] """ return self._match_expressions @match_expressions.setter def match_expressions(self, match_expressions): """ - Sets the match_expressions of this V1LabelSelector. + Sets the match_expressions of this K8sIoApimachineryPkgApisMetaV1LabelSelector. matchExpressions is a list of label selector requirements. The requirements are ANDed. - :param match_expressions: The match_expressions of this V1LabelSelector. - :type: list[V1LabelSelectorRequirement] + :param match_expressions: The match_expressions of this K8sIoApimachineryPkgApisMetaV1LabelSelector. + :type: list[K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement] """ self._match_expressions = match_expressions @@ -79,10 +79,10 @@ def match_expressions(self, match_expressions): @property def match_labels(self): """ - Gets the match_labels of this V1LabelSelector. + Gets the match_labels of this K8sIoApimachineryPkgApisMetaV1LabelSelector. matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. - :return: The match_labels of this V1LabelSelector. + :return: The match_labels of this K8sIoApimachineryPkgApisMetaV1LabelSelector. :rtype: dict(str, str) """ return self._match_labels @@ -90,10 +90,10 @@ def match_labels(self): @match_labels.setter def match_labels(self, match_labels): """ - Sets the match_labels of this V1LabelSelector. + Sets the match_labels of this K8sIoApimachineryPkgApisMetaV1LabelSelector. matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. - :param match_labels: The match_labels of this V1LabelSelector. + :param match_labels: The match_labels of this K8sIoApimachineryPkgApisMetaV1LabelSelector. :type: dict(str, str) """ @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1LabelSelector): + if not isinstance(other, K8sIoApimachineryPkgApisMetaV1LabelSelector): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_label_selector_requirement.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_requirement.py similarity index 76% rename from kubevirt/models/v1_label_selector_requirement.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_requirement.py index b07bbded..44d0b8a2 100644 --- a/kubevirt/models/v1_label_selector_requirement.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_requirement.py @@ -16,7 +16,7 @@ import re -class V1LabelSelectorRequirement(object): +class K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -44,7 +44,7 @@ class V1LabelSelectorRequirement(object): def __init__(self, key=None, operator=None, values=None): """ - V1LabelSelectorRequirement - a model defined in Swagger + K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement - a model defined in Swagger """ self._key = None @@ -59,10 +59,10 @@ def __init__(self, key=None, operator=None, values=None): @property def key(self): """ - Gets the key of this V1LabelSelectorRequirement. + Gets the key of this K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement. key is the label key that the selector applies to. - :return: The key of this V1LabelSelectorRequirement. + :return: The key of this K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement. :rtype: str """ return self._key @@ -70,10 +70,10 @@ def key(self): @key.setter def key(self, key): """ - Sets the key of this V1LabelSelectorRequirement. + Sets the key of this K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement. key is the label key that the selector applies to. - :param key: The key of this V1LabelSelectorRequirement. + :param key: The key of this K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement. :type: str """ if key is None: @@ -84,10 +84,10 @@ def key(self, key): @property def operator(self): """ - Gets the operator of this V1LabelSelectorRequirement. + Gets the operator of this K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement. operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - :return: The operator of this V1LabelSelectorRequirement. + :return: The operator of this K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement. :rtype: str """ return self._operator @@ -95,10 +95,10 @@ def operator(self): @operator.setter def operator(self, operator): """ - Sets the operator of this V1LabelSelectorRequirement. + Sets the operator of this K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement. operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - :param operator: The operator of this V1LabelSelectorRequirement. + :param operator: The operator of this K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement. :type: str """ if operator is None: @@ -109,10 +109,10 @@ def operator(self, operator): @property def values(self): """ - Gets the values of this V1LabelSelectorRequirement. + Gets the values of this K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement. values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. - :return: The values of this V1LabelSelectorRequirement. + :return: The values of this K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement. :rtype: list[str] """ return self._values @@ -120,10 +120,10 @@ def values(self): @values.setter def values(self, values): """ - Sets the values of this V1LabelSelectorRequirement. + Sets the values of this K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement. values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. - :param values: The values of this V1LabelSelectorRequirement. + :param values: The values of this K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement. :type: list[str] """ @@ -171,7 +171,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1LabelSelectorRequirement): + if not isinstance(other, K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_list_meta.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_list_meta.py similarity index 84% rename from kubevirt/models/v1_list_meta.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_list_meta.py index 6594da26..f840c505 100644 --- a/kubevirt/models/v1_list_meta.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_list_meta.py @@ -16,7 +16,7 @@ import re -class V1ListMeta(object): +class K8sIoApimachineryPkgApisMetaV1ListMeta(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -46,7 +46,7 @@ class V1ListMeta(object): def __init__(self, _continue=None, remaining_item_count=None, resource_version=None, self_link=None): """ - V1ListMeta - a model defined in Swagger + K8sIoApimachineryPkgApisMetaV1ListMeta - a model defined in Swagger """ self.__continue = None @@ -66,10 +66,10 @@ def __init__(self, _continue=None, remaining_item_count=None, resource_version=N @property def _continue(self): """ - Gets the _continue of this V1ListMeta. + Gets the _continue of this K8sIoApimachineryPkgApisMetaV1ListMeta. continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - :return: The _continue of this V1ListMeta. + :return: The _continue of this K8sIoApimachineryPkgApisMetaV1ListMeta. :rtype: str """ return self.__continue @@ -77,10 +77,10 @@ def _continue(self): @_continue.setter def _continue(self, _continue): """ - Sets the _continue of this V1ListMeta. + Sets the _continue of this K8sIoApimachineryPkgApisMetaV1ListMeta. continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - :param _continue: The _continue of this V1ListMeta. + :param _continue: The _continue of this K8sIoApimachineryPkgApisMetaV1ListMeta. :type: str """ @@ -89,10 +89,10 @@ def _continue(self, _continue): @property def remaining_item_count(self): """ - Gets the remaining_item_count of this V1ListMeta. + Gets the remaining_item_count of this K8sIoApimachineryPkgApisMetaV1ListMeta. remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - :return: The remaining_item_count of this V1ListMeta. + :return: The remaining_item_count of this K8sIoApimachineryPkgApisMetaV1ListMeta. :rtype: int """ return self._remaining_item_count @@ -100,10 +100,10 @@ def remaining_item_count(self): @remaining_item_count.setter def remaining_item_count(self, remaining_item_count): """ - Sets the remaining_item_count of this V1ListMeta. + Sets the remaining_item_count of this K8sIoApimachineryPkgApisMetaV1ListMeta. remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - :param remaining_item_count: The remaining_item_count of this V1ListMeta. + :param remaining_item_count: The remaining_item_count of this K8sIoApimachineryPkgApisMetaV1ListMeta. :type: int """ @@ -112,10 +112,10 @@ def remaining_item_count(self, remaining_item_count): @property def resource_version(self): """ - Gets the resource_version of this V1ListMeta. + Gets the resource_version of this K8sIoApimachineryPkgApisMetaV1ListMeta. String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - :return: The resource_version of this V1ListMeta. + :return: The resource_version of this K8sIoApimachineryPkgApisMetaV1ListMeta. :rtype: str """ return self._resource_version @@ -123,10 +123,10 @@ def resource_version(self): @resource_version.setter def resource_version(self, resource_version): """ - Sets the resource_version of this V1ListMeta. + Sets the resource_version of this K8sIoApimachineryPkgApisMetaV1ListMeta. String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - :param resource_version: The resource_version of this V1ListMeta. + :param resource_version: The resource_version of this K8sIoApimachineryPkgApisMetaV1ListMeta. :type: str """ @@ -135,10 +135,10 @@ def resource_version(self, resource_version): @property def self_link(self): """ - Gets the self_link of this V1ListMeta. + Gets the self_link of this K8sIoApimachineryPkgApisMetaV1ListMeta. selfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - :return: The self_link of this V1ListMeta. + :return: The self_link of this K8sIoApimachineryPkgApisMetaV1ListMeta. :rtype: str """ return self._self_link @@ -146,10 +146,10 @@ def self_link(self): @self_link.setter def self_link(self, self_link): """ - Sets the self_link of this V1ListMeta. + Sets the self_link of this K8sIoApimachineryPkgApisMetaV1ListMeta. selfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - :param self_link: The self_link of this V1ListMeta. + :param self_link: The self_link of this K8sIoApimachineryPkgApisMetaV1ListMeta. :type: str """ @@ -197,7 +197,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1ListMeta): + if not isinstance(other, K8sIoApimachineryPkgApisMetaV1ListMeta): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_managed_fields_entry.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry.py similarity index 70% rename from kubevirt/models/v1_managed_fields_entry.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry.py index 44327cad..11afac9c 100644 --- a/kubevirt/models/v1_managed_fields_entry.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry.py @@ -16,7 +16,7 @@ import re -class V1ManagedFieldsEntry(object): +class K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -33,10 +33,10 @@ class V1ManagedFieldsEntry(object): swagger_types = { 'api_version': 'str', 'fields_type': 'str', - 'fields_v1': 'V1FieldsV1', + 'fields_v1': 'K8sIoApimachineryPkgApisMetaV1FieldsV1', 'manager': 'str', 'operation': 'str', - 'time': 'V1Time' + 'time': 'K8sIoApimachineryPkgApisMetaV1Time' } attribute_map = { @@ -50,7 +50,7 @@ class V1ManagedFieldsEntry(object): def __init__(self, api_version=None, fields_type=None, fields_v1=None, manager=None, operation=None, time=None): """ - V1ManagedFieldsEntry - a model defined in Swagger + K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry - a model defined in Swagger """ self._api_version = None @@ -76,10 +76,10 @@ def __init__(self, api_version=None, fields_type=None, fields_v1=None, manager=N @property def api_version(self): """ - Gets the api_version of this V1ManagedFieldsEntry. + Gets the api_version of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - :return: The api_version of this V1ManagedFieldsEntry. + :return: The api_version of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. :rtype: str """ return self._api_version @@ -87,10 +87,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1ManagedFieldsEntry. + Sets the api_version of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - :param api_version: The api_version of this V1ManagedFieldsEntry. + :param api_version: The api_version of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. :type: str """ @@ -99,10 +99,10 @@ def api_version(self, api_version): @property def fields_type(self): """ - Gets the fields_type of this V1ManagedFieldsEntry. + Gets the fields_type of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\" - :return: The fields_type of this V1ManagedFieldsEntry. + :return: The fields_type of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. :rtype: str """ return self._fields_type @@ -110,10 +110,10 @@ def fields_type(self): @fields_type.setter def fields_type(self, fields_type): """ - Sets the fields_type of this V1ManagedFieldsEntry. + Sets the fields_type of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\" - :param fields_type: The fields_type of this V1ManagedFieldsEntry. + :param fields_type: The fields_type of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. :type: str """ @@ -122,22 +122,22 @@ def fields_type(self, fields_type): @property def fields_v1(self): """ - Gets the fields_v1 of this V1ManagedFieldsEntry. + Gets the fields_v1 of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type. - :return: The fields_v1 of this V1ManagedFieldsEntry. - :rtype: V1FieldsV1 + :return: The fields_v1 of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. + :rtype: K8sIoApimachineryPkgApisMetaV1FieldsV1 """ return self._fields_v1 @fields_v1.setter def fields_v1(self, fields_v1): """ - Sets the fields_v1 of this V1ManagedFieldsEntry. + Sets the fields_v1 of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type. - :param fields_v1: The fields_v1 of this V1ManagedFieldsEntry. - :type: V1FieldsV1 + :param fields_v1: The fields_v1 of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. + :type: K8sIoApimachineryPkgApisMetaV1FieldsV1 """ self._fields_v1 = fields_v1 @@ -145,10 +145,10 @@ def fields_v1(self, fields_v1): @property def manager(self): """ - Gets the manager of this V1ManagedFieldsEntry. + Gets the manager of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. Manager is an identifier of the workflow managing these fields. - :return: The manager of this V1ManagedFieldsEntry. + :return: The manager of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. :rtype: str """ return self._manager @@ -156,10 +156,10 @@ def manager(self): @manager.setter def manager(self, manager): """ - Sets the manager of this V1ManagedFieldsEntry. + Sets the manager of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. Manager is an identifier of the workflow managing these fields. - :param manager: The manager of this V1ManagedFieldsEntry. + :param manager: The manager of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. :type: str """ @@ -168,10 +168,10 @@ def manager(self, manager): @property def operation(self): """ - Gets the operation of this V1ManagedFieldsEntry. + Gets the operation of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - :return: The operation of this V1ManagedFieldsEntry. + :return: The operation of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. :rtype: str """ return self._operation @@ -179,10 +179,10 @@ def operation(self): @operation.setter def operation(self, operation): """ - Sets the operation of this V1ManagedFieldsEntry. + Sets the operation of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - :param operation: The operation of this V1ManagedFieldsEntry. + :param operation: The operation of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. :type: str """ @@ -191,22 +191,22 @@ def operation(self, operation): @property def time(self): """ - Gets the time of this V1ManagedFieldsEntry. + Gets the time of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - :return: The time of this V1ManagedFieldsEntry. - :rtype: V1Time + :return: The time of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. + :rtype: K8sIoApimachineryPkgApisMetaV1Time """ return self._time @time.setter def time(self, time): """ - Sets the time of this V1ManagedFieldsEntry. + Sets the time of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - :param time: The time of this V1ManagedFieldsEntry. - :type: V1Time + :param time: The time of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. + :type: K8sIoApimachineryPkgApisMetaV1Time """ self._time = time @@ -253,7 +253,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1ManagedFieldsEntry): + if not isinstance(other, K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_object_meta.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.py similarity index 79% rename from kubevirt/models/v1_object_meta.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.py index 28a5d3bc..2961e1a8 100644 --- a/kubevirt/models/v1_object_meta.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.py @@ -16,7 +16,7 @@ import re -class V1ObjectMeta(object): +class K8sIoApimachineryPkgApisMetaV1ObjectMeta(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -34,15 +34,15 @@ class V1ObjectMeta(object): 'annotations': 'dict(str, str)', 'cluster_name': 'str', 'deletion_grace_period_seconds': 'int', - 'deletion_timestamp': 'V1Time', + 'deletion_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', 'finalizers': 'list[str]', 'generate_name': 'str', 'generation': 'int', 'labels': 'dict(str, str)', - 'managed_fields': 'list[V1ManagedFieldsEntry]', + 'managed_fields': 'list[K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry]', 'name': 'str', 'namespace': 'str', - 'owner_references': 'list[V1OwnerReference]', + 'owner_references': 'list[K8sIoApimachineryPkgApisMetaV1OwnerReference]', 'resource_version': 'str', 'self_link': 'str', 'uid': 'str' @@ -68,7 +68,7 @@ class V1ObjectMeta(object): def __init__(self, annotations=None, cluster_name=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, uid=None): """ - V1ObjectMeta - a model defined in Swagger + K8sIoApimachineryPkgApisMetaV1ObjectMeta - a model defined in Swagger """ self._annotations = None @@ -121,10 +121,10 @@ def __init__(self, annotations=None, cluster_name=None, deletion_grace_period_se @property def annotations(self): """ - Gets the annotations of this V1ObjectMeta. + Gets the annotations of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - :return: The annotations of this V1ObjectMeta. + :return: The annotations of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :rtype: dict(str, str) """ return self._annotations @@ -132,10 +132,10 @@ def annotations(self): @annotations.setter def annotations(self, annotations): """ - Sets the annotations of this V1ObjectMeta. + Sets the annotations of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - :param annotations: The annotations of this V1ObjectMeta. + :param annotations: The annotations of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :type: dict(str, str) """ @@ -144,10 +144,10 @@ def annotations(self, annotations): @property def cluster_name(self): """ - Gets the cluster_name of this V1ObjectMeta. + Gets the cluster_name of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - :return: The cluster_name of this V1ObjectMeta. + :return: The cluster_name of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :rtype: str """ return self._cluster_name @@ -155,10 +155,10 @@ def cluster_name(self): @cluster_name.setter def cluster_name(self, cluster_name): """ - Sets the cluster_name of this V1ObjectMeta. + Sets the cluster_name of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - :param cluster_name: The cluster_name of this V1ObjectMeta. + :param cluster_name: The cluster_name of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :type: str """ @@ -167,10 +167,10 @@ def cluster_name(self, cluster_name): @property def deletion_grace_period_seconds(self): """ - Gets the deletion_grace_period_seconds of this V1ObjectMeta. + Gets the deletion_grace_period_seconds of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - :return: The deletion_grace_period_seconds of this V1ObjectMeta. + :return: The deletion_grace_period_seconds of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :rtype: int """ return self._deletion_grace_period_seconds @@ -178,10 +178,10 @@ def deletion_grace_period_seconds(self): @deletion_grace_period_seconds.setter def deletion_grace_period_seconds(self, deletion_grace_period_seconds): """ - Sets the deletion_grace_period_seconds of this V1ObjectMeta. + Sets the deletion_grace_period_seconds of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - :param deletion_grace_period_seconds: The deletion_grace_period_seconds of this V1ObjectMeta. + :param deletion_grace_period_seconds: The deletion_grace_period_seconds of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :type: int """ @@ -190,22 +190,22 @@ def deletion_grace_period_seconds(self, deletion_grace_period_seconds): @property def deletion_timestamp(self): """ - Gets the deletion_timestamp of this V1ObjectMeta. + Gets the deletion_timestamp of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :return: The deletion_timestamp of this V1ObjectMeta. - :rtype: V1Time + :return: The deletion_timestamp of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. + :rtype: K8sIoApimachineryPkgApisMetaV1Time """ return self._deletion_timestamp @deletion_timestamp.setter def deletion_timestamp(self, deletion_timestamp): """ - Sets the deletion_timestamp of this V1ObjectMeta. + Sets the deletion_timestamp of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param deletion_timestamp: The deletion_timestamp of this V1ObjectMeta. - :type: V1Time + :param deletion_timestamp: The deletion_timestamp of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. + :type: K8sIoApimachineryPkgApisMetaV1Time """ self._deletion_timestamp = deletion_timestamp @@ -213,10 +213,10 @@ def deletion_timestamp(self, deletion_timestamp): @property def finalizers(self): """ - Gets the finalizers of this V1ObjectMeta. + Gets the finalizers of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. - :return: The finalizers of this V1ObjectMeta. + :return: The finalizers of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :rtype: list[str] """ return self._finalizers @@ -224,10 +224,10 @@ def finalizers(self): @finalizers.setter def finalizers(self, finalizers): """ - Sets the finalizers of this V1ObjectMeta. + Sets the finalizers of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. - :param finalizers: The finalizers of this V1ObjectMeta. + :param finalizers: The finalizers of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :type: list[str] """ @@ -236,10 +236,10 @@ def finalizers(self, finalizers): @property def generate_name(self): """ - Gets the generate_name of this V1ObjectMeta. + Gets the generate_name of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - :return: The generate_name of this V1ObjectMeta. + :return: The generate_name of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :rtype: str """ return self._generate_name @@ -247,10 +247,10 @@ def generate_name(self): @generate_name.setter def generate_name(self, generate_name): """ - Sets the generate_name of this V1ObjectMeta. + Sets the generate_name of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - :param generate_name: The generate_name of this V1ObjectMeta. + :param generate_name: The generate_name of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :type: str """ @@ -259,10 +259,10 @@ def generate_name(self, generate_name): @property def generation(self): """ - Gets the generation of this V1ObjectMeta. + Gets the generation of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - :return: The generation of this V1ObjectMeta. + :return: The generation of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :rtype: int """ return self._generation @@ -270,10 +270,10 @@ def generation(self): @generation.setter def generation(self, generation): """ - Sets the generation of this V1ObjectMeta. + Sets the generation of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - :param generation: The generation of this V1ObjectMeta. + :param generation: The generation of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :type: int """ @@ -282,10 +282,10 @@ def generation(self, generation): @property def labels(self): """ - Gets the labels of this V1ObjectMeta. + Gets the labels of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - :return: The labels of this V1ObjectMeta. + :return: The labels of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :rtype: dict(str, str) """ return self._labels @@ -293,10 +293,10 @@ def labels(self): @labels.setter def labels(self, labels): """ - Sets the labels of this V1ObjectMeta. + Sets the labels of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - :param labels: The labels of this V1ObjectMeta. + :param labels: The labels of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :type: dict(str, str) """ @@ -305,22 +305,22 @@ def labels(self, labels): @property def managed_fields(self): """ - Gets the managed_fields of this V1ObjectMeta. + Gets the managed_fields of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. - :return: The managed_fields of this V1ObjectMeta. - :rtype: list[V1ManagedFieldsEntry] + :return: The managed_fields of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. + :rtype: list[K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry] """ return self._managed_fields @managed_fields.setter def managed_fields(self, managed_fields): """ - Sets the managed_fields of this V1ObjectMeta. + Sets the managed_fields of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. - :param managed_fields: The managed_fields of this V1ObjectMeta. - :type: list[V1ManagedFieldsEntry] + :param managed_fields: The managed_fields of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. + :type: list[K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry] """ self._managed_fields = managed_fields @@ -328,10 +328,10 @@ def managed_fields(self, managed_fields): @property def name(self): """ - Gets the name of this V1ObjectMeta. + Gets the name of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - :return: The name of this V1ObjectMeta. + :return: The name of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :rtype: str """ return self._name @@ -339,10 +339,10 @@ def name(self): @name.setter def name(self, name): """ - Sets the name of this V1ObjectMeta. + Sets the name of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - :param name: The name of this V1ObjectMeta. + :param name: The name of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :type: str """ @@ -351,10 +351,10 @@ def name(self, name): @property def namespace(self): """ - Gets the namespace of this V1ObjectMeta. + Gets the namespace of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - :return: The namespace of this V1ObjectMeta. + :return: The namespace of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :rtype: str """ return self._namespace @@ -362,10 +362,10 @@ def namespace(self): @namespace.setter def namespace(self, namespace): """ - Sets the namespace of this V1ObjectMeta. + Sets the namespace of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - :param namespace: The namespace of this V1ObjectMeta. + :param namespace: The namespace of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :type: str """ @@ -374,22 +374,22 @@ def namespace(self, namespace): @property def owner_references(self): """ - Gets the owner_references of this V1ObjectMeta. + Gets the owner_references of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - :return: The owner_references of this V1ObjectMeta. - :rtype: list[V1OwnerReference] + :return: The owner_references of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. + :rtype: list[K8sIoApimachineryPkgApisMetaV1OwnerReference] """ return self._owner_references @owner_references.setter def owner_references(self, owner_references): """ - Sets the owner_references of this V1ObjectMeta. + Sets the owner_references of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - :param owner_references: The owner_references of this V1ObjectMeta. - :type: list[V1OwnerReference] + :param owner_references: The owner_references of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. + :type: list[K8sIoApimachineryPkgApisMetaV1OwnerReference] """ self._owner_references = owner_references @@ -397,10 +397,10 @@ def owner_references(self, owner_references): @property def resource_version(self): """ - Gets the resource_version of this V1ObjectMeta. + Gets the resource_version of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - :return: The resource_version of this V1ObjectMeta. + :return: The resource_version of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :rtype: str """ return self._resource_version @@ -408,10 +408,10 @@ def resource_version(self): @resource_version.setter def resource_version(self, resource_version): """ - Sets the resource_version of this V1ObjectMeta. + Sets the resource_version of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - :param resource_version: The resource_version of this V1ObjectMeta. + :param resource_version: The resource_version of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :type: str """ @@ -420,10 +420,10 @@ def resource_version(self, resource_version): @property def self_link(self): """ - Gets the self_link of this V1ObjectMeta. + Gets the self_link of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - :return: The self_link of this V1ObjectMeta. + :return: The self_link of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :rtype: str """ return self._self_link @@ -431,10 +431,10 @@ def self_link(self): @self_link.setter def self_link(self, self_link): """ - Sets the self_link of this V1ObjectMeta. + Sets the self_link of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - :param self_link: The self_link of this V1ObjectMeta. + :param self_link: The self_link of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :type: str """ @@ -443,10 +443,10 @@ def self_link(self, self_link): @property def uid(self): """ - Gets the uid of this V1ObjectMeta. + Gets the uid of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - :return: The uid of this V1ObjectMeta. + :return: The uid of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :rtype: str """ return self._uid @@ -454,10 +454,10 @@ def uid(self): @uid.setter def uid(self, uid): """ - Sets the uid of this V1ObjectMeta. + Sets the uid of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - :param uid: The uid of this V1ObjectMeta. + :param uid: The uid of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :type: str """ @@ -505,7 +505,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1ObjectMeta): + if not isinstance(other, K8sIoApimachineryPkgApisMetaV1ObjectMeta): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_owner_reference.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference.py similarity index 75% rename from kubevirt/models/v1_owner_reference.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference.py index 1bae4493..dad4c222 100644 --- a/kubevirt/models/v1_owner_reference.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference.py @@ -16,7 +16,7 @@ import re -class V1OwnerReference(object): +class K8sIoApimachineryPkgApisMetaV1OwnerReference(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -50,7 +50,7 @@ class V1OwnerReference(object): def __init__(self, api_version=None, block_owner_deletion=None, controller=None, kind=None, name=None, uid=None): """ - V1OwnerReference - a model defined in Swagger + K8sIoApimachineryPkgApisMetaV1OwnerReference - a model defined in Swagger """ self._api_version = None @@ -72,10 +72,10 @@ def __init__(self, api_version=None, block_owner_deletion=None, controller=None, @property def api_version(self): """ - Gets the api_version of this V1OwnerReference. + Gets the api_version of this K8sIoApimachineryPkgApisMetaV1OwnerReference. API version of the referent. - :return: The api_version of this V1OwnerReference. + :return: The api_version of this K8sIoApimachineryPkgApisMetaV1OwnerReference. :rtype: str """ return self._api_version @@ -83,10 +83,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1OwnerReference. + Sets the api_version of this K8sIoApimachineryPkgApisMetaV1OwnerReference. API version of the referent. - :param api_version: The api_version of this V1OwnerReference. + :param api_version: The api_version of this K8sIoApimachineryPkgApisMetaV1OwnerReference. :type: str """ if api_version is None: @@ -97,10 +97,10 @@ def api_version(self, api_version): @property def block_owner_deletion(self): """ - Gets the block_owner_deletion of this V1OwnerReference. + Gets the block_owner_deletion of this K8sIoApimachineryPkgApisMetaV1OwnerReference. If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - :return: The block_owner_deletion of this V1OwnerReference. + :return: The block_owner_deletion of this K8sIoApimachineryPkgApisMetaV1OwnerReference. :rtype: bool """ return self._block_owner_deletion @@ -108,10 +108,10 @@ def block_owner_deletion(self): @block_owner_deletion.setter def block_owner_deletion(self, block_owner_deletion): """ - Sets the block_owner_deletion of this V1OwnerReference. + Sets the block_owner_deletion of this K8sIoApimachineryPkgApisMetaV1OwnerReference. If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - :param block_owner_deletion: The block_owner_deletion of this V1OwnerReference. + :param block_owner_deletion: The block_owner_deletion of this K8sIoApimachineryPkgApisMetaV1OwnerReference. :type: bool """ @@ -120,10 +120,10 @@ def block_owner_deletion(self, block_owner_deletion): @property def controller(self): """ - Gets the controller of this V1OwnerReference. + Gets the controller of this K8sIoApimachineryPkgApisMetaV1OwnerReference. If true, this reference points to the managing controller. - :return: The controller of this V1OwnerReference. + :return: The controller of this K8sIoApimachineryPkgApisMetaV1OwnerReference. :rtype: bool """ return self._controller @@ -131,10 +131,10 @@ def controller(self): @controller.setter def controller(self, controller): """ - Sets the controller of this V1OwnerReference. + Sets the controller of this K8sIoApimachineryPkgApisMetaV1OwnerReference. If true, this reference points to the managing controller. - :param controller: The controller of this V1OwnerReference. + :param controller: The controller of this K8sIoApimachineryPkgApisMetaV1OwnerReference. :type: bool """ @@ -143,10 +143,10 @@ def controller(self, controller): @property def kind(self): """ - Gets the kind of this V1OwnerReference. + Gets the kind of this K8sIoApimachineryPkgApisMetaV1OwnerReference. Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1OwnerReference. + :return: The kind of this K8sIoApimachineryPkgApisMetaV1OwnerReference. :rtype: str """ return self._kind @@ -154,10 +154,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1OwnerReference. + Sets the kind of this K8sIoApimachineryPkgApisMetaV1OwnerReference. Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1OwnerReference. + :param kind: The kind of this K8sIoApimachineryPkgApisMetaV1OwnerReference. :type: str """ if kind is None: @@ -168,10 +168,10 @@ def kind(self, kind): @property def name(self): """ - Gets the name of this V1OwnerReference. + Gets the name of this K8sIoApimachineryPkgApisMetaV1OwnerReference. Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - :return: The name of this V1OwnerReference. + :return: The name of this K8sIoApimachineryPkgApisMetaV1OwnerReference. :rtype: str """ return self._name @@ -179,10 +179,10 @@ def name(self): @name.setter def name(self, name): """ - Sets the name of this V1OwnerReference. + Sets the name of this K8sIoApimachineryPkgApisMetaV1OwnerReference. Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - :param name: The name of this V1OwnerReference. + :param name: The name of this K8sIoApimachineryPkgApisMetaV1OwnerReference. :type: str """ if name is None: @@ -193,10 +193,10 @@ def name(self, name): @property def uid(self): """ - Gets the uid of this V1OwnerReference. + Gets the uid of this K8sIoApimachineryPkgApisMetaV1OwnerReference. UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - :return: The uid of this V1OwnerReference. + :return: The uid of this K8sIoApimachineryPkgApisMetaV1OwnerReference. :rtype: str """ return self._uid @@ -204,10 +204,10 @@ def uid(self): @uid.setter def uid(self, uid): """ - Sets the uid of this V1OwnerReference. + Sets the uid of this K8sIoApimachineryPkgApisMetaV1OwnerReference. UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - :param uid: The uid of this V1OwnerReference. + :param uid: The uid of this K8sIoApimachineryPkgApisMetaV1OwnerReference. :type: str """ if uid is None: @@ -257,7 +257,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1OwnerReference): + if not isinstance(other, K8sIoApimachineryPkgApisMetaV1OwnerReference): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/intstr_int_or_string.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_patch.py similarity index 91% rename from kubevirt/models/intstr_int_or_string.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_patch.py index 59590c34..3e9e0106 100644 --- a/kubevirt/models/intstr_int_or_string.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_patch.py @@ -16,7 +16,7 @@ import re -class IntstrIntOrString(object): +class K8sIoApimachineryPkgApisMetaV1Patch(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,7 +40,7 @@ class IntstrIntOrString(object): def __init__(self): """ - IntstrIntOrString - a model defined in Swagger + K8sIoApimachineryPkgApisMetaV1Patch - a model defined in Swagger """ @@ -87,7 +87,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, IntstrIntOrString): + if not isinstance(other, K8sIoApimachineryPkgApisMetaV1Patch): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_preconditions.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_preconditions.py similarity index 78% rename from kubevirt/models/v1_preconditions.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_preconditions.py index 5dfd94e4..250c2a28 100644 --- a/kubevirt/models/v1_preconditions.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_preconditions.py @@ -16,7 +16,7 @@ import re -class V1Preconditions(object): +class K8sIoApimachineryPkgApisMetaV1Preconditions(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class V1Preconditions(object): def __init__(self, resource_version=None, uid=None): """ - V1Preconditions - a model defined in Swagger + K8sIoApimachineryPkgApisMetaV1Preconditions - a model defined in Swagger """ self._resource_version = None @@ -56,10 +56,10 @@ def __init__(self, resource_version=None, uid=None): @property def resource_version(self): """ - Gets the resource_version of this V1Preconditions. + Gets the resource_version of this K8sIoApimachineryPkgApisMetaV1Preconditions. Specifies the target ResourceVersion - :return: The resource_version of this V1Preconditions. + :return: The resource_version of this K8sIoApimachineryPkgApisMetaV1Preconditions. :rtype: str """ return self._resource_version @@ -67,10 +67,10 @@ def resource_version(self): @resource_version.setter def resource_version(self, resource_version): """ - Sets the resource_version of this V1Preconditions. + Sets the resource_version of this K8sIoApimachineryPkgApisMetaV1Preconditions. Specifies the target ResourceVersion - :param resource_version: The resource_version of this V1Preconditions. + :param resource_version: The resource_version of this K8sIoApimachineryPkgApisMetaV1Preconditions. :type: str """ @@ -79,10 +79,10 @@ def resource_version(self, resource_version): @property def uid(self): """ - Gets the uid of this V1Preconditions. + Gets the uid of this K8sIoApimachineryPkgApisMetaV1Preconditions. Specifies the target UID. - :return: The uid of this V1Preconditions. + :return: The uid of this K8sIoApimachineryPkgApisMetaV1Preconditions. :rtype: str """ return self._uid @@ -90,10 +90,10 @@ def uid(self): @uid.setter def uid(self, uid): """ - Sets the uid of this V1Preconditions. + Sets the uid of this K8sIoApimachineryPkgApisMetaV1Preconditions. Specifies the target UID. - :param uid: The uid of this V1Preconditions. + :param uid: The uid of this K8sIoApimachineryPkgApisMetaV1Preconditions. :type: str """ @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1Preconditions): + if not isinstance(other, K8sIoApimachineryPkgApisMetaV1Preconditions): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_root_paths.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_root_paths.py similarity index 84% rename from kubevirt/models/v1_root_paths.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_root_paths.py index 86205daa..08f26743 100644 --- a/kubevirt/models/v1_root_paths.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_root_paths.py @@ -16,7 +16,7 @@ import re -class V1RootPaths(object): +class K8sIoApimachineryPkgApisMetaV1RootPaths(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,7 +40,7 @@ class V1RootPaths(object): def __init__(self, paths=None): """ - V1RootPaths - a model defined in Swagger + K8sIoApimachineryPkgApisMetaV1RootPaths - a model defined in Swagger """ self._paths = None @@ -50,10 +50,10 @@ def __init__(self, paths=None): @property def paths(self): """ - Gets the paths of this V1RootPaths. + Gets the paths of this K8sIoApimachineryPkgApisMetaV1RootPaths. paths are the paths available at root. - :return: The paths of this V1RootPaths. + :return: The paths of this K8sIoApimachineryPkgApisMetaV1RootPaths. :rtype: list[str] """ return self._paths @@ -61,10 +61,10 @@ def paths(self): @paths.setter def paths(self, paths): """ - Sets the paths of this V1RootPaths. + Sets the paths of this K8sIoApimachineryPkgApisMetaV1RootPaths. paths are the paths available at root. - :param paths: The paths of this V1RootPaths. + :param paths: The paths of this K8sIoApimachineryPkgApisMetaV1RootPaths. :type: list[str] """ if paths is None: @@ -114,7 +114,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1RootPaths): + if not isinstance(other, K8sIoApimachineryPkgApisMetaV1RootPaths): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_server_address_by_client_cidr.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr.py similarity index 79% rename from kubevirt/models/v1_server_address_by_client_cidr.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr.py index 005ffa4a..19698391 100644 --- a/kubevirt/models/v1_server_address_by_client_cidr.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr.py @@ -16,7 +16,7 @@ import re -class V1ServerAddressByClientCIDR(object): +class K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class V1ServerAddressByClientCIDR(object): def __init__(self, client_cidr=None, server_address=None): """ - V1ServerAddressByClientCIDR - a model defined in Swagger + K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR - a model defined in Swagger """ self._client_cidr = None @@ -54,10 +54,10 @@ def __init__(self, client_cidr=None, server_address=None): @property def client_cidr(self): """ - Gets the client_cidr of this V1ServerAddressByClientCIDR. + Gets the client_cidr of this K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR. The CIDR with which clients can match their IP to figure out the server address that they should use. - :return: The client_cidr of this V1ServerAddressByClientCIDR. + :return: The client_cidr of this K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR. :rtype: str """ return self._client_cidr @@ -65,10 +65,10 @@ def client_cidr(self): @client_cidr.setter def client_cidr(self, client_cidr): """ - Sets the client_cidr of this V1ServerAddressByClientCIDR. + Sets the client_cidr of this K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR. The CIDR with which clients can match their IP to figure out the server address that they should use. - :param client_cidr: The client_cidr of this V1ServerAddressByClientCIDR. + :param client_cidr: The client_cidr of this K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR. :type: str """ if client_cidr is None: @@ -79,10 +79,10 @@ def client_cidr(self, client_cidr): @property def server_address(self): """ - Gets the server_address of this V1ServerAddressByClientCIDR. + Gets the server_address of this K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR. Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. - :return: The server_address of this V1ServerAddressByClientCIDR. + :return: The server_address of this K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR. :rtype: str """ return self._server_address @@ -90,10 +90,10 @@ def server_address(self): @server_address.setter def server_address(self, server_address): """ - Sets the server_address of this V1ServerAddressByClientCIDR. + Sets the server_address of this K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR. Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. - :param server_address: The server_address of this V1ServerAddressByClientCIDR. + :param server_address: The server_address of this K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR. :type: str """ if server_address is None: @@ -143,7 +143,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1ServerAddressByClientCIDR): + if not isinstance(other, K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_status.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status.py similarity index 73% rename from kubevirt/models/v1_status.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status.py index 8157dd2e..08157ce1 100644 --- a/kubevirt/models/v1_status.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status.py @@ -16,7 +16,7 @@ import re -class V1Status(object): +class K8sIoApimachineryPkgApisMetaV1Status(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -33,10 +33,10 @@ class V1Status(object): swagger_types = { 'api_version': 'str', 'code': 'int', - 'details': 'V1StatusDetails', + 'details': 'K8sIoApimachineryPkgApisMetaV1StatusDetails', 'kind': 'str', 'message': 'str', - 'metadata': 'V1ListMeta', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta', 'reason': 'str', 'status': 'str' } @@ -54,7 +54,7 @@ class V1Status(object): def __init__(self, api_version=None, code=None, details=None, kind=None, message=None, metadata=None, reason=None, status=None): """ - V1Status - a model defined in Swagger + K8sIoApimachineryPkgApisMetaV1Status - a model defined in Swagger """ self._api_version = None @@ -86,10 +86,10 @@ def __init__(self, api_version=None, code=None, details=None, kind=None, message @property def api_version(self): """ - Gets the api_version of this V1Status. + Gets the api_version of this K8sIoApimachineryPkgApisMetaV1Status. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1Status. + :return: The api_version of this K8sIoApimachineryPkgApisMetaV1Status. :rtype: str """ return self._api_version @@ -97,10 +97,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1Status. + Sets the api_version of this K8sIoApimachineryPkgApisMetaV1Status. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1Status. + :param api_version: The api_version of this K8sIoApimachineryPkgApisMetaV1Status. :type: str """ @@ -109,10 +109,10 @@ def api_version(self, api_version): @property def code(self): """ - Gets the code of this V1Status. + Gets the code of this K8sIoApimachineryPkgApisMetaV1Status. Suggested HTTP return code for this status, 0 if not set. - :return: The code of this V1Status. + :return: The code of this K8sIoApimachineryPkgApisMetaV1Status. :rtype: int """ return self._code @@ -120,10 +120,10 @@ def code(self): @code.setter def code(self, code): """ - Sets the code of this V1Status. + Sets the code of this K8sIoApimachineryPkgApisMetaV1Status. Suggested HTTP return code for this status, 0 if not set. - :param code: The code of this V1Status. + :param code: The code of this K8sIoApimachineryPkgApisMetaV1Status. :type: int """ @@ -132,22 +132,22 @@ def code(self, code): @property def details(self): """ - Gets the details of this V1Status. + Gets the details of this K8sIoApimachineryPkgApisMetaV1Status. Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. - :return: The details of this V1Status. - :rtype: V1StatusDetails + :return: The details of this K8sIoApimachineryPkgApisMetaV1Status. + :rtype: K8sIoApimachineryPkgApisMetaV1StatusDetails """ return self._details @details.setter def details(self, details): """ - Sets the details of this V1Status. + Sets the details of this K8sIoApimachineryPkgApisMetaV1Status. Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. - :param details: The details of this V1Status. - :type: V1StatusDetails + :param details: The details of this K8sIoApimachineryPkgApisMetaV1Status. + :type: K8sIoApimachineryPkgApisMetaV1StatusDetails """ self._details = details @@ -155,10 +155,10 @@ def details(self, details): @property def kind(self): """ - Gets the kind of this V1Status. + Gets the kind of this K8sIoApimachineryPkgApisMetaV1Status. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1Status. + :return: The kind of this K8sIoApimachineryPkgApisMetaV1Status. :rtype: str """ return self._kind @@ -166,10 +166,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1Status. + Sets the kind of this K8sIoApimachineryPkgApisMetaV1Status. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1Status. + :param kind: The kind of this K8sIoApimachineryPkgApisMetaV1Status. :type: str """ @@ -178,10 +178,10 @@ def kind(self, kind): @property def message(self): """ - Gets the message of this V1Status. + Gets the message of this K8sIoApimachineryPkgApisMetaV1Status. A human-readable description of the status of this operation. - :return: The message of this V1Status. + :return: The message of this K8sIoApimachineryPkgApisMetaV1Status. :rtype: str """ return self._message @@ -189,10 +189,10 @@ def message(self): @message.setter def message(self, message): """ - Sets the message of this V1Status. + Sets the message of this K8sIoApimachineryPkgApisMetaV1Status. A human-readable description of the status of this operation. - :param message: The message of this V1Status. + :param message: The message of this K8sIoApimachineryPkgApisMetaV1Status. :type: str """ @@ -201,22 +201,22 @@ def message(self, message): @property def metadata(self): """ - Gets the metadata of this V1Status. + Gets the metadata of this K8sIoApimachineryPkgApisMetaV1Status. Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The metadata of this V1Status. - :rtype: V1ListMeta + :return: The metadata of this K8sIoApimachineryPkgApisMetaV1Status. + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1Status. + Sets the metadata of this K8sIoApimachineryPkgApisMetaV1Status. Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param metadata: The metadata of this V1Status. - :type: V1ListMeta + :param metadata: The metadata of this K8sIoApimachineryPkgApisMetaV1Status. + :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ self._metadata = metadata @@ -224,10 +224,10 @@ def metadata(self, metadata): @property def reason(self): """ - Gets the reason of this V1Status. + Gets the reason of this K8sIoApimachineryPkgApisMetaV1Status. A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. - :return: The reason of this V1Status. + :return: The reason of this K8sIoApimachineryPkgApisMetaV1Status. :rtype: str """ return self._reason @@ -235,10 +235,10 @@ def reason(self): @reason.setter def reason(self, reason): """ - Sets the reason of this V1Status. + Sets the reason of this K8sIoApimachineryPkgApisMetaV1Status. A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. - :param reason: The reason of this V1Status. + :param reason: The reason of this K8sIoApimachineryPkgApisMetaV1Status. :type: str """ @@ -247,10 +247,10 @@ def reason(self, reason): @property def status(self): """ - Gets the status of this V1Status. + Gets the status of this K8sIoApimachineryPkgApisMetaV1Status. Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - :return: The status of this V1Status. + :return: The status of this K8sIoApimachineryPkgApisMetaV1Status. :rtype: str """ return self._status @@ -258,10 +258,10 @@ def status(self): @status.setter def status(self, status): """ - Sets the status of this V1Status. + Sets the status of this K8sIoApimachineryPkgApisMetaV1Status. Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - :param status: The status of this V1Status. + :param status: The status of this K8sIoApimachineryPkgApisMetaV1Status. :type: str """ @@ -309,7 +309,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1Status): + if not isinstance(other, K8sIoApimachineryPkgApisMetaV1Status): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_status_cause.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_cause.py similarity index 80% rename from kubevirt/models/v1_status_cause.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_cause.py index a5e3d727..620049f9 100644 --- a/kubevirt/models/v1_status_cause.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_cause.py @@ -16,7 +16,7 @@ import re -class V1StatusCause(object): +class K8sIoApimachineryPkgApisMetaV1StatusCause(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -44,7 +44,7 @@ class V1StatusCause(object): def __init__(self, field=None, message=None, reason=None): """ - V1StatusCause - a model defined in Swagger + K8sIoApimachineryPkgApisMetaV1StatusCause - a model defined in Swagger """ self._field = None @@ -61,10 +61,10 @@ def __init__(self, field=None, message=None, reason=None): @property def field(self): """ - Gets the field of this V1StatusCause. + Gets the field of this K8sIoApimachineryPkgApisMetaV1StatusCause. The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\" - :return: The field of this V1StatusCause. + :return: The field of this K8sIoApimachineryPkgApisMetaV1StatusCause. :rtype: str """ return self._field @@ -72,10 +72,10 @@ def field(self): @field.setter def field(self, field): """ - Sets the field of this V1StatusCause. + Sets the field of this K8sIoApimachineryPkgApisMetaV1StatusCause. The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\" - :param field: The field of this V1StatusCause. + :param field: The field of this K8sIoApimachineryPkgApisMetaV1StatusCause. :type: str """ @@ -84,10 +84,10 @@ def field(self, field): @property def message(self): """ - Gets the message of this V1StatusCause. + Gets the message of this K8sIoApimachineryPkgApisMetaV1StatusCause. A human-readable description of the cause of the error. This field may be presented as-is to a reader. - :return: The message of this V1StatusCause. + :return: The message of this K8sIoApimachineryPkgApisMetaV1StatusCause. :rtype: str """ return self._message @@ -95,10 +95,10 @@ def message(self): @message.setter def message(self, message): """ - Sets the message of this V1StatusCause. + Sets the message of this K8sIoApimachineryPkgApisMetaV1StatusCause. A human-readable description of the cause of the error. This field may be presented as-is to a reader. - :param message: The message of this V1StatusCause. + :param message: The message of this K8sIoApimachineryPkgApisMetaV1StatusCause. :type: str """ @@ -107,10 +107,10 @@ def message(self, message): @property def reason(self): """ - Gets the reason of this V1StatusCause. + Gets the reason of this K8sIoApimachineryPkgApisMetaV1StatusCause. A machine-readable description of the cause of the error. If this value is empty there is no information available. - :return: The reason of this V1StatusCause. + :return: The reason of this K8sIoApimachineryPkgApisMetaV1StatusCause. :rtype: str """ return self._reason @@ -118,10 +118,10 @@ def reason(self): @reason.setter def reason(self, reason): """ - Sets the reason of this V1StatusCause. + Sets the reason of this K8sIoApimachineryPkgApisMetaV1StatusCause. A machine-readable description of the cause of the error. If this value is empty there is no information available. - :param reason: The reason of this V1StatusCause. + :param reason: The reason of this K8sIoApimachineryPkgApisMetaV1StatusCause. :type: str """ @@ -169,7 +169,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1StatusCause): + if not isinstance(other, K8sIoApimachineryPkgApisMetaV1StatusCause): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_status_details.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_details.py similarity index 74% rename from kubevirt/models/v1_status_details.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_details.py index dd448875..fd8e07bc 100644 --- a/kubevirt/models/v1_status_details.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_details.py @@ -16,7 +16,7 @@ import re -class V1StatusDetails(object): +class K8sIoApimachineryPkgApisMetaV1StatusDetails(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,7 +31,7 @@ class V1StatusDetails(object): and the value is json key in definition. """ swagger_types = { - 'causes': 'list[V1StatusCause]', + 'causes': 'list[K8sIoApimachineryPkgApisMetaV1StatusCause]', 'group': 'str', 'kind': 'str', 'name': 'str', @@ -50,7 +50,7 @@ class V1StatusDetails(object): def __init__(self, causes=None, group=None, kind=None, name=None, retry_after_seconds=None, uid=None): """ - V1StatusDetails - a model defined in Swagger + K8sIoApimachineryPkgApisMetaV1StatusDetails - a model defined in Swagger """ self._causes = None @@ -76,22 +76,22 @@ def __init__(self, causes=None, group=None, kind=None, name=None, retry_after_se @property def causes(self): """ - Gets the causes of this V1StatusDetails. + Gets the causes of this K8sIoApimachineryPkgApisMetaV1StatusDetails. The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. - :return: The causes of this V1StatusDetails. - :rtype: list[V1StatusCause] + :return: The causes of this K8sIoApimachineryPkgApisMetaV1StatusDetails. + :rtype: list[K8sIoApimachineryPkgApisMetaV1StatusCause] """ return self._causes @causes.setter def causes(self, causes): """ - Sets the causes of this V1StatusDetails. + Sets the causes of this K8sIoApimachineryPkgApisMetaV1StatusDetails. The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. - :param causes: The causes of this V1StatusDetails. - :type: list[V1StatusCause] + :param causes: The causes of this K8sIoApimachineryPkgApisMetaV1StatusDetails. + :type: list[K8sIoApimachineryPkgApisMetaV1StatusCause] """ self._causes = causes @@ -99,10 +99,10 @@ def causes(self, causes): @property def group(self): """ - Gets the group of this V1StatusDetails. + Gets the group of this K8sIoApimachineryPkgApisMetaV1StatusDetails. The group attribute of the resource associated with the status StatusReason. - :return: The group of this V1StatusDetails. + :return: The group of this K8sIoApimachineryPkgApisMetaV1StatusDetails. :rtype: str """ return self._group @@ -110,10 +110,10 @@ def group(self): @group.setter def group(self, group): """ - Sets the group of this V1StatusDetails. + Sets the group of this K8sIoApimachineryPkgApisMetaV1StatusDetails. The group attribute of the resource associated with the status StatusReason. - :param group: The group of this V1StatusDetails. + :param group: The group of this K8sIoApimachineryPkgApisMetaV1StatusDetails. :type: str """ @@ -122,10 +122,10 @@ def group(self, group): @property def kind(self): """ - Gets the kind of this V1StatusDetails. + Gets the kind of this K8sIoApimachineryPkgApisMetaV1StatusDetails. The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1StatusDetails. + :return: The kind of this K8sIoApimachineryPkgApisMetaV1StatusDetails. :rtype: str """ return self._kind @@ -133,10 +133,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1StatusDetails. + Sets the kind of this K8sIoApimachineryPkgApisMetaV1StatusDetails. The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1StatusDetails. + :param kind: The kind of this K8sIoApimachineryPkgApisMetaV1StatusDetails. :type: str """ @@ -145,10 +145,10 @@ def kind(self, kind): @property def name(self): """ - Gets the name of this V1StatusDetails. + Gets the name of this K8sIoApimachineryPkgApisMetaV1StatusDetails. The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). - :return: The name of this V1StatusDetails. + :return: The name of this K8sIoApimachineryPkgApisMetaV1StatusDetails. :rtype: str """ return self._name @@ -156,10 +156,10 @@ def name(self): @name.setter def name(self, name): """ - Sets the name of this V1StatusDetails. + Sets the name of this K8sIoApimachineryPkgApisMetaV1StatusDetails. The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). - :param name: The name of this V1StatusDetails. + :param name: The name of this K8sIoApimachineryPkgApisMetaV1StatusDetails. :type: str """ @@ -168,10 +168,10 @@ def name(self, name): @property def retry_after_seconds(self): """ - Gets the retry_after_seconds of this V1StatusDetails. + Gets the retry_after_seconds of this K8sIoApimachineryPkgApisMetaV1StatusDetails. If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action. - :return: The retry_after_seconds of this V1StatusDetails. + :return: The retry_after_seconds of this K8sIoApimachineryPkgApisMetaV1StatusDetails. :rtype: int """ return self._retry_after_seconds @@ -179,10 +179,10 @@ def retry_after_seconds(self): @retry_after_seconds.setter def retry_after_seconds(self, retry_after_seconds): """ - Sets the retry_after_seconds of this V1StatusDetails. + Sets the retry_after_seconds of this K8sIoApimachineryPkgApisMetaV1StatusDetails. If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action. - :param retry_after_seconds: The retry_after_seconds of this V1StatusDetails. + :param retry_after_seconds: The retry_after_seconds of this K8sIoApimachineryPkgApisMetaV1StatusDetails. :type: int """ @@ -191,10 +191,10 @@ def retry_after_seconds(self, retry_after_seconds): @property def uid(self): """ - Gets the uid of this V1StatusDetails. + Gets the uid of this K8sIoApimachineryPkgApisMetaV1StatusDetails. UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids - :return: The uid of this V1StatusDetails. + :return: The uid of this K8sIoApimachineryPkgApisMetaV1StatusDetails. :rtype: str """ return self._uid @@ -202,10 +202,10 @@ def uid(self): @uid.setter def uid(self, uid): """ - Sets the uid of this V1StatusDetails. + Sets the uid of this K8sIoApimachineryPkgApisMetaV1StatusDetails. UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids - :param uid: The uid of this V1StatusDetails. + :param uid: The uid of this K8sIoApimachineryPkgApisMetaV1StatusDetails. :type: str """ @@ -253,7 +253,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1StatusDetails): + if not isinstance(other, K8sIoApimachineryPkgApisMetaV1StatusDetails): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_duration.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_time.py similarity index 92% rename from kubevirt/models/v1_duration.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_time.py index 34d752d6..8723999b 100644 --- a/kubevirt/models/v1_duration.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_time.py @@ -16,7 +16,7 @@ import re -class V1Duration(object): +class K8sIoApimachineryPkgApisMetaV1Time(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,7 +40,7 @@ class V1Duration(object): def __init__(self): """ - V1Duration - a model defined in Swagger + K8sIoApimachineryPkgApisMetaV1Time - a model defined in Swagger """ @@ -87,7 +87,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1Duration): + if not isinstance(other, K8sIoApimachineryPkgApisMetaV1Time): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_watch_event.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_watch_event.py similarity index 78% rename from kubevirt/models/v1_watch_event.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_watch_event.py index df060283..9554881a 100644 --- a/kubevirt/models/v1_watch_event.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_watch_event.py @@ -16,7 +16,7 @@ import re -class V1WatchEvent(object): +class K8sIoApimachineryPkgApisMetaV1WatchEvent(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,7 +31,7 @@ class V1WatchEvent(object): and the value is json key in definition. """ swagger_types = { - 'object': 'RuntimeRawExtension', + 'object': 'K8sIoApimachineryPkgRuntimeRawExtension', 'type': 'str' } @@ -42,7 +42,7 @@ class V1WatchEvent(object): def __init__(self, object=None, type=None): """ - V1WatchEvent - a model defined in Swagger + K8sIoApimachineryPkgApisMetaV1WatchEvent - a model defined in Swagger """ self._object = None @@ -54,22 +54,22 @@ def __init__(self, object=None, type=None): @property def object(self): """ - Gets the object of this V1WatchEvent. + Gets the object of this K8sIoApimachineryPkgApisMetaV1WatchEvent. Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context. - :return: The object of this V1WatchEvent. - :rtype: RuntimeRawExtension + :return: The object of this K8sIoApimachineryPkgApisMetaV1WatchEvent. + :rtype: K8sIoApimachineryPkgRuntimeRawExtension """ return self._object @object.setter def object(self, object): """ - Sets the object of this V1WatchEvent. + Sets the object of this K8sIoApimachineryPkgApisMetaV1WatchEvent. Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context. - :param object: The object of this V1WatchEvent. - :type: RuntimeRawExtension + :param object: The object of this K8sIoApimachineryPkgApisMetaV1WatchEvent. + :type: K8sIoApimachineryPkgRuntimeRawExtension """ if object is None: raise ValueError("Invalid value for `object`, must not be `None`") @@ -79,9 +79,9 @@ def object(self, object): @property def type(self): """ - Gets the type of this V1WatchEvent. + Gets the type of this K8sIoApimachineryPkgApisMetaV1WatchEvent. - :return: The type of this V1WatchEvent. + :return: The type of this K8sIoApimachineryPkgApisMetaV1WatchEvent. :rtype: str """ return self._type @@ -89,9 +89,9 @@ def type(self): @type.setter def type(self, type): """ - Sets the type of this V1WatchEvent. + Sets the type of this K8sIoApimachineryPkgApisMetaV1WatchEvent. - :param type: The type of this V1WatchEvent. + :param type: The type of this K8sIoApimachineryPkgApisMetaV1WatchEvent. :type: str """ if type is None: @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1WatchEvent): + if not isinstance(other, K8sIoApimachineryPkgApisMetaV1WatchEvent): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/k8s_io_apimachinery_pkg_runtime_raw_extension.py b/kubevirt/models/k8s_io_apimachinery_pkg_runtime_raw_extension.py new file mode 100644 index 00000000..4972cdc4 --- /dev/null +++ b/kubevirt/models/k8s_io_apimachinery_pkg_runtime_raw_extension.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class K8sIoApimachineryPkgRuntimeRawExtension(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + K8sIoApimachineryPkgRuntimeRawExtension - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, K8sIoApimachineryPkgRuntimeRawExtension): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/k8s_io_apimachinery_pkg_util_intstr_int_or_string.py b/kubevirt/models/k8s_io_apimachinery_pkg_util_intstr_int_or_string.py new file mode 100644 index 00000000..1eaa8df5 --- /dev/null +++ b/kubevirt/models/k8s_io_apimachinery_pkg_util_intstr_int_or_string.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class K8sIoApimachineryPkgUtilIntstrIntOrString(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + K8sIoApimachineryPkgUtilIntstrIntOrString - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, K8sIoApimachineryPkgUtilIntstrIntOrString): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_cloud_init_config_drive_source.py b/kubevirt/models/v1_cloud_init_config_drive_source.py index 0a1585bc..6894afd4 100644 --- a/kubevirt/models/v1_cloud_init_config_drive_source.py +++ b/kubevirt/models/v1_cloud_init_config_drive_source.py @@ -33,8 +33,8 @@ class V1CloudInitConfigDriveSource(object): swagger_types = { 'network_data': 'str', 'network_data_base64': 'str', - 'network_data_secret_ref': 'V1LocalObjectReference', - 'secret_ref': 'V1LocalObjectReference', + 'network_data_secret_ref': 'K8sIoApiCoreV1LocalObjectReference', + 'secret_ref': 'K8sIoApiCoreV1LocalObjectReference', 'user_data': 'str', 'user_data_base64': 'str' } @@ -126,7 +126,7 @@ def network_data_secret_ref(self): NetworkDataSecretRef references a k8s secret that contains config drive networkdata. :return: The network_data_secret_ref of this V1CloudInitConfigDriveSource. - :rtype: V1LocalObjectReference + :rtype: K8sIoApiCoreV1LocalObjectReference """ return self._network_data_secret_ref @@ -137,7 +137,7 @@ def network_data_secret_ref(self, network_data_secret_ref): NetworkDataSecretRef references a k8s secret that contains config drive networkdata. :param network_data_secret_ref: The network_data_secret_ref of this V1CloudInitConfigDriveSource. - :type: V1LocalObjectReference + :type: K8sIoApiCoreV1LocalObjectReference """ self._network_data_secret_ref = network_data_secret_ref @@ -149,7 +149,7 @@ def secret_ref(self): UserDataSecretRef references a k8s secret that contains config drive userdata. :return: The secret_ref of this V1CloudInitConfigDriveSource. - :rtype: V1LocalObjectReference + :rtype: K8sIoApiCoreV1LocalObjectReference """ return self._secret_ref @@ -160,7 +160,7 @@ def secret_ref(self, secret_ref): UserDataSecretRef references a k8s secret that contains config drive userdata. :param secret_ref: The secret_ref of this V1CloudInitConfigDriveSource. - :type: V1LocalObjectReference + :type: K8sIoApiCoreV1LocalObjectReference """ self._secret_ref = secret_ref diff --git a/kubevirt/models/v1_cloud_init_no_cloud_source.py b/kubevirt/models/v1_cloud_init_no_cloud_source.py index bd0ec8f5..89a65f97 100644 --- a/kubevirt/models/v1_cloud_init_no_cloud_source.py +++ b/kubevirt/models/v1_cloud_init_no_cloud_source.py @@ -33,8 +33,8 @@ class V1CloudInitNoCloudSource(object): swagger_types = { 'network_data': 'str', 'network_data_base64': 'str', - 'network_data_secret_ref': 'V1LocalObjectReference', - 'secret_ref': 'V1LocalObjectReference', + 'network_data_secret_ref': 'K8sIoApiCoreV1LocalObjectReference', + 'secret_ref': 'K8sIoApiCoreV1LocalObjectReference', 'user_data': 'str', 'user_data_base64': 'str' } @@ -126,7 +126,7 @@ def network_data_secret_ref(self): NetworkDataSecretRef references a k8s secret that contains NoCloud networkdata. :return: The network_data_secret_ref of this V1CloudInitNoCloudSource. - :rtype: V1LocalObjectReference + :rtype: K8sIoApiCoreV1LocalObjectReference """ return self._network_data_secret_ref @@ -137,7 +137,7 @@ def network_data_secret_ref(self, network_data_secret_ref): NetworkDataSecretRef references a k8s secret that contains NoCloud networkdata. :param network_data_secret_ref: The network_data_secret_ref of this V1CloudInitNoCloudSource. - :type: V1LocalObjectReference + :type: K8sIoApiCoreV1LocalObjectReference """ self._network_data_secret_ref = network_data_secret_ref @@ -149,7 +149,7 @@ def secret_ref(self): UserDataSecretRef references a k8s secret that contains NoCloud userdata. :return: The secret_ref of this V1CloudInitNoCloudSource. - :rtype: V1LocalObjectReference + :rtype: K8sIoApiCoreV1LocalObjectReference """ return self._secret_ref @@ -160,7 +160,7 @@ def secret_ref(self, secret_ref): UserDataSecretRef references a k8s secret that contains NoCloud userdata. :param secret_ref: The secret_ref of this V1CloudInitNoCloudSource. - :type: V1LocalObjectReference + :type: K8sIoApiCoreV1LocalObjectReference """ self._secret_ref = secret_ref diff --git a/kubevirt/models/v1_empty_disk_source.py b/kubevirt/models/v1_empty_disk_source.py index 13ef39a7..3b8ed8fd 100644 --- a/kubevirt/models/v1_empty_disk_source.py +++ b/kubevirt/models/v1_empty_disk_source.py @@ -31,7 +31,7 @@ class V1EmptyDiskSource(object): and the value is json key in definition. """ swagger_types = { - 'capacity': 'ResourceQuantity' + 'capacity': 'K8sIoApimachineryPkgApiResourceQuantity' } attribute_map = { @@ -54,7 +54,7 @@ def capacity(self): Capacity of the sparse disk. :return: The capacity of this V1EmptyDiskSource. - :rtype: ResourceQuantity + :rtype: K8sIoApimachineryPkgApiResourceQuantity """ return self._capacity @@ -65,7 +65,7 @@ def capacity(self, capacity): Capacity of the sparse disk. :param capacity: The capacity of this V1EmptyDiskSource. - :type: ResourceQuantity + :type: K8sIoApimachineryPkgApiResourceQuantity """ if capacity is None: raise ValueError("Invalid value for `capacity`, must not be `None`") diff --git a/kubevirt/models/v1_ephemeral_volume_source.py b/kubevirt/models/v1_ephemeral_volume_source.py index d1128a52..de6133b3 100644 --- a/kubevirt/models/v1_ephemeral_volume_source.py +++ b/kubevirt/models/v1_ephemeral_volume_source.py @@ -31,7 +31,7 @@ class V1EphemeralVolumeSource(object): and the value is json key in definition. """ swagger_types = { - 'persistent_volume_claim': 'V1PersistentVolumeClaimVolumeSource' + 'persistent_volume_claim': 'K8sIoApiCoreV1PersistentVolumeClaimVolumeSource' } attribute_map = { @@ -55,7 +55,7 @@ def persistent_volume_claim(self): PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims :return: The persistent_volume_claim of this V1EphemeralVolumeSource. - :rtype: V1PersistentVolumeClaimVolumeSource + :rtype: K8sIoApiCoreV1PersistentVolumeClaimVolumeSource """ return self._persistent_volume_claim @@ -66,7 +66,7 @@ def persistent_volume_claim(self, persistent_volume_claim): PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims :param persistent_volume_claim: The persistent_volume_claim of this V1EphemeralVolumeSource. - :type: V1PersistentVolumeClaimVolumeSource + :type: K8sIoApiCoreV1PersistentVolumeClaimVolumeSource """ self._persistent_volume_claim = persistent_volume_claim diff --git a/kubevirt/models/v1_fields_v1.py b/kubevirt/models/v1_fields_v1.py deleted file mode 100644 index 04ce4157..00000000 --- a/kubevirt/models/v1_fields_v1.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1FieldsV1(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - - } - - attribute_map = { - - } - - def __init__(self): - """ - V1FieldsV1 - a model defined in Swagger - """ - - - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1FieldsV1): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_host_disk.py b/kubevirt/models/v1_host_disk.py index 475c669b..7b5c5029 100644 --- a/kubevirt/models/v1_host_disk.py +++ b/kubevirt/models/v1_host_disk.py @@ -31,7 +31,7 @@ class V1HostDisk(object): and the value is json key in definition. """ swagger_types = { - 'capacity': 'ResourceQuantity', + 'capacity': 'K8sIoApimachineryPkgApiResourceQuantity', 'path': 'str', 'shared': 'bool', 'type': 'str' @@ -68,7 +68,7 @@ def capacity(self): Capacity of the sparse disk :return: The capacity of this V1HostDisk. - :rtype: ResourceQuantity + :rtype: K8sIoApimachineryPkgApiResourceQuantity """ return self._capacity @@ -79,7 +79,7 @@ def capacity(self, capacity): Capacity of the sparse disk :param capacity: The capacity of this V1HostDisk. - :type: ResourceQuantity + :type: K8sIoApimachineryPkgApiResourceQuantity """ self._capacity = capacity diff --git a/kubevirt/models/v1_kube_virt.py b/kubevirt/models/v1_kube_virt.py index ce53fc85..dcf0d333 100644 --- a/kubevirt/models/v1_kube_virt.py +++ b/kubevirt/models/v1_kube_virt.py @@ -33,7 +33,7 @@ class V1KubeVirt(object): swagger_types = { 'api_version': 'str', 'kind': 'str', - 'metadata': 'V1ObjectMeta', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', 'spec': 'V1KubeVirtSpec', 'status': 'V1KubeVirtStatus' } @@ -119,7 +119,7 @@ def metadata(self): Gets the metadata of this V1KubeVirt. :return: The metadata of this V1KubeVirt. - :rtype: V1ObjectMeta + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -129,7 +129,7 @@ def metadata(self, metadata): Sets the metadata of this V1KubeVirt. :param metadata: The metadata of this V1KubeVirt. - :type: V1ObjectMeta + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ self._metadata = metadata diff --git a/kubevirt/models/v1_kube_virt_list.py b/kubevirt/models/v1_kube_virt_list.py index 31292a55..130ab74b 100644 --- a/kubevirt/models/v1_kube_virt_list.py +++ b/kubevirt/models/v1_kube_virt_list.py @@ -34,7 +34,7 @@ class V1KubeVirtList(object): 'api_version': 'str', 'items': 'list[V1KubeVirt]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' } attribute_map = { @@ -137,7 +137,7 @@ def metadata(self): Gets the metadata of this V1KubeVirtList. :return: The metadata of this V1KubeVirtList. - :rtype: V1ListMeta + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @@ -147,7 +147,7 @@ def metadata(self, metadata): Sets the metadata of this V1KubeVirtList. :param metadata: The metadata of this V1KubeVirtList. - :type: V1ListMeta + :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ self._metadata = metadata diff --git a/kubevirt/models/v1_kube_virt_self_sign_configuration.py b/kubevirt/models/v1_kube_virt_self_sign_configuration.py index 9cb3f069..fb42414a 100644 --- a/kubevirt/models/v1_kube_virt_self_sign_configuration.py +++ b/kubevirt/models/v1_kube_virt_self_sign_configuration.py @@ -31,9 +31,9 @@ class V1KubeVirtSelfSignConfiguration(object): and the value is json key in definition. """ swagger_types = { - 'ca_overlap_interval': 'V1Duration', - 'ca_rotate_interval': 'V1Duration', - 'cert_rotate_interval': 'V1Duration' + 'ca_overlap_interval': 'K8sIoApimachineryPkgApisMetaV1Duration', + 'ca_rotate_interval': 'K8sIoApimachineryPkgApisMetaV1Duration', + 'cert_rotate_interval': 'K8sIoApimachineryPkgApisMetaV1Duration' } attribute_map = { @@ -64,7 +64,7 @@ def ca_overlap_interval(self): Gets the ca_overlap_interval of this V1KubeVirtSelfSignConfiguration. :return: The ca_overlap_interval of this V1KubeVirtSelfSignConfiguration. - :rtype: V1Duration + :rtype: K8sIoApimachineryPkgApisMetaV1Duration """ return self._ca_overlap_interval @@ -74,7 +74,7 @@ def ca_overlap_interval(self, ca_overlap_interval): Sets the ca_overlap_interval of this V1KubeVirtSelfSignConfiguration. :param ca_overlap_interval: The ca_overlap_interval of this V1KubeVirtSelfSignConfiguration. - :type: V1Duration + :type: K8sIoApimachineryPkgApisMetaV1Duration """ self._ca_overlap_interval = ca_overlap_interval @@ -85,7 +85,7 @@ def ca_rotate_interval(self): Gets the ca_rotate_interval of this V1KubeVirtSelfSignConfiguration. :return: The ca_rotate_interval of this V1KubeVirtSelfSignConfiguration. - :rtype: V1Duration + :rtype: K8sIoApimachineryPkgApisMetaV1Duration """ return self._ca_rotate_interval @@ -95,7 +95,7 @@ def ca_rotate_interval(self, ca_rotate_interval): Sets the ca_rotate_interval of this V1KubeVirtSelfSignConfiguration. :param ca_rotate_interval: The ca_rotate_interval of this V1KubeVirtSelfSignConfiguration. - :type: V1Duration + :type: K8sIoApimachineryPkgApisMetaV1Duration """ self._ca_rotate_interval = ca_rotate_interval @@ -106,7 +106,7 @@ def cert_rotate_interval(self): Gets the cert_rotate_interval of this V1KubeVirtSelfSignConfiguration. :return: The cert_rotate_interval of this V1KubeVirtSelfSignConfiguration. - :rtype: V1Duration + :rtype: K8sIoApimachineryPkgApisMetaV1Duration """ return self._cert_rotate_interval @@ -116,7 +116,7 @@ def cert_rotate_interval(self, cert_rotate_interval): Sets the cert_rotate_interval of this V1KubeVirtSelfSignConfiguration. :param cert_rotate_interval: The cert_rotate_interval of this V1KubeVirtSelfSignConfiguration. - :type: V1Duration + :type: K8sIoApimachineryPkgApisMetaV1Duration """ self._cert_rotate_interval = cert_rotate_interval diff --git a/kubevirt/models/v1_memory.py b/kubevirt/models/v1_memory.py index a913000c..79ed1f55 100644 --- a/kubevirt/models/v1_memory.py +++ b/kubevirt/models/v1_memory.py @@ -31,7 +31,7 @@ class V1Memory(object): and the value is json key in definition. """ swagger_types = { - 'guest': 'ResourceQuantity', + 'guest': 'K8sIoApimachineryPkgApiResourceQuantity', 'hugepages': 'V1Hugepages' } @@ -60,7 +60,7 @@ def guest(self): Guest allows to specifying the amount of memory which is visible inside the Guest OS. The Guest must lie between Requests and Limits from the resources section. Defaults to the requested memory in the resources section if not specified. :return: The guest of this V1Memory. - :rtype: ResourceQuantity + :rtype: K8sIoApimachineryPkgApiResourceQuantity """ return self._guest @@ -71,7 +71,7 @@ def guest(self, guest): Guest allows to specifying the amount of memory which is visible inside the Guest OS. The Guest must lie between Requests and Limits from the resources section. Defaults to the requested memory in the resources section if not specified. :param guest: The guest of this V1Memory. - :type: ResourceQuantity + :type: K8sIoApimachineryPkgApiResourceQuantity """ self._guest = guest diff --git a/kubevirt/models/v1_migration_configuration.py b/kubevirt/models/v1_migration_configuration.py index 405fe790..d4506841 100644 --- a/kubevirt/models/v1_migration_configuration.py +++ b/kubevirt/models/v1_migration_configuration.py @@ -32,7 +32,7 @@ class V1MigrationConfiguration(object): """ swagger_types = { 'allow_auto_converge': 'str', - 'bandwidth_per_migration': 'ResourceQuantity', + 'bandwidth_per_migration': 'K8sIoApimachineryPkgApiResourceQuantity', 'completion_timeout_per_gi_b': 'str', 'node_drain_taint_key': 'str', 'parallel_migrations_per_cluster': 'str', @@ -110,7 +110,7 @@ def bandwidth_per_migration(self): Gets the bandwidth_per_migration of this V1MigrationConfiguration. :return: The bandwidth_per_migration of this V1MigrationConfiguration. - :rtype: ResourceQuantity + :rtype: K8sIoApimachineryPkgApiResourceQuantity """ return self._bandwidth_per_migration @@ -120,7 +120,7 @@ def bandwidth_per_migration(self, bandwidth_per_migration): Sets the bandwidth_per_migration of this V1MigrationConfiguration. :param bandwidth_per_migration: The bandwidth_per_migration of this V1MigrationConfiguration. - :type: ResourceQuantity + :type: K8sIoApimachineryPkgApiResourceQuantity """ self._bandwidth_per_migration = bandwidth_per_migration diff --git a/kubevirt/models/v1_patch.py b/kubevirt/models/v1_patch.py deleted file mode 100644 index 2cfc26f9..00000000 --- a/kubevirt/models/v1_patch.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1Patch(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - - } - - attribute_map = { - - } - - def __init__(self): - """ - V1Patch - a model defined in Swagger - """ - - - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1Patch): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_probe.py b/kubevirt/models/v1_probe.py index 8641269f..9ca67863 100644 --- a/kubevirt/models/v1_probe.py +++ b/kubevirt/models/v1_probe.py @@ -32,11 +32,11 @@ class V1Probe(object): """ swagger_types = { 'failure_threshold': 'int', - 'http_get': 'V1HTTPGetAction', + 'http_get': 'K8sIoApiCoreV1HTTPGetAction', 'initial_delay_seconds': 'int', 'period_seconds': 'int', 'success_threshold': 'int', - 'tcp_socket': 'V1TCPSocketAction', + 'tcp_socket': 'K8sIoApiCoreV1TCPSocketAction', 'timeout_seconds': 'int' } @@ -108,7 +108,7 @@ def http_get(self): HTTPGet specifies the http request to perform. :return: The http_get of this V1Probe. - :rtype: V1HTTPGetAction + :rtype: K8sIoApiCoreV1HTTPGetAction """ return self._http_get @@ -119,7 +119,7 @@ def http_get(self, http_get): HTTPGet specifies the http request to perform. :param http_get: The http_get of this V1Probe. - :type: V1HTTPGetAction + :type: K8sIoApiCoreV1HTTPGetAction """ self._http_get = http_get @@ -200,7 +200,7 @@ def tcp_socket(self): TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported :return: The tcp_socket of this V1Probe. - :rtype: V1TCPSocketAction + :rtype: K8sIoApiCoreV1TCPSocketAction """ return self._tcp_socket @@ -211,7 +211,7 @@ def tcp_socket(self, tcp_socket): TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported :param tcp_socket: The tcp_socket of this V1Probe. - :type: V1TCPSocketAction + :type: K8sIoApiCoreV1TCPSocketAction """ self._tcp_socket = tcp_socket diff --git a/kubevirt/models/v1_resource_requirements.py b/kubevirt/models/v1_resource_requirements.py index 4f711d66..36757600 100644 --- a/kubevirt/models/v1_resource_requirements.py +++ b/kubevirt/models/v1_resource_requirements.py @@ -31,9 +31,9 @@ class V1ResourceRequirements(object): and the value is json key in definition. """ swagger_types = { - 'limits': 'dict(str, ResourceQuantity)', + 'limits': 'dict(str, K8sIoApimachineryPkgApiResourceQuantity)', 'overcommit_guest_overhead': 'bool', - 'requests': 'dict(str, ResourceQuantity)' + 'requests': 'dict(str, K8sIoApimachineryPkgApiResourceQuantity)' } attribute_map = { @@ -65,7 +65,7 @@ def limits(self): Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". :return: The limits of this V1ResourceRequirements. - :rtype: dict(str, ResourceQuantity) + :rtype: dict(str, K8sIoApimachineryPkgApiResourceQuantity) """ return self._limits @@ -76,7 +76,7 @@ def limits(self, limits): Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". :param limits: The limits of this V1ResourceRequirements. - :type: dict(str, ResourceQuantity) + :type: dict(str, K8sIoApimachineryPkgApiResourceQuantity) """ self._limits = limits @@ -111,7 +111,7 @@ def requests(self): Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". :return: The requests of this V1ResourceRequirements. - :rtype: dict(str, ResourceQuantity) + :rtype: dict(str, K8sIoApimachineryPkgApiResourceQuantity) """ return self._requests @@ -122,7 +122,7 @@ def requests(self, requests): Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". :param requests: The requests of this V1ResourceRequirements. - :type: dict(str, ResourceQuantity) + :type: dict(str, K8sIoApimachineryPkgApiResourceQuantity) """ self._requests = requests diff --git a/kubevirt/models/v1_time.py b/kubevirt/models/v1_time.py deleted file mode 100644 index 6d925ae0..00000000 --- a/kubevirt/models/v1_time.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1Time(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - - } - - attribute_map = { - - } - - def __init__(self): - """ - V1Time - a model defined in Swagger - """ - - - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1Time): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_virtual_machine.py b/kubevirt/models/v1_virtual_machine.py index 7d3c8197..cb52ab74 100644 --- a/kubevirt/models/v1_virtual_machine.py +++ b/kubevirt/models/v1_virtual_machine.py @@ -33,7 +33,7 @@ class V1VirtualMachine(object): swagger_types = { 'api_version': 'str', 'kind': 'str', - 'metadata': 'V1ObjectMeta', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', 'spec': 'V1VirtualMachineSpec', 'status': 'V1VirtualMachineStatus' } @@ -119,7 +119,7 @@ def metadata(self): Gets the metadata of this V1VirtualMachine. :return: The metadata of this V1VirtualMachine. - :rtype: V1ObjectMeta + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -129,7 +129,7 @@ def metadata(self, metadata): Sets the metadata of this V1VirtualMachine. :param metadata: The metadata of this V1VirtualMachine. - :type: V1ObjectMeta + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ self._metadata = metadata diff --git a/kubevirt/models/v1_virtual_machine_instance.py b/kubevirt/models/v1_virtual_machine_instance.py index 63cce706..442abb3d 100644 --- a/kubevirt/models/v1_virtual_machine_instance.py +++ b/kubevirt/models/v1_virtual_machine_instance.py @@ -33,7 +33,7 @@ class V1VirtualMachineInstance(object): swagger_types = { 'api_version': 'str', 'kind': 'str', - 'metadata': 'V1ObjectMeta', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', 'spec': 'V1VirtualMachineInstanceSpec', 'status': 'V1VirtualMachineInstanceStatus' } @@ -119,7 +119,7 @@ def metadata(self): Gets the metadata of this V1VirtualMachineInstance. :return: The metadata of this V1VirtualMachineInstance. - :rtype: V1ObjectMeta + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -129,7 +129,7 @@ def metadata(self, metadata): Sets the metadata of this V1VirtualMachineInstance. :param metadata: The metadata of this V1VirtualMachineInstance. - :type: V1ObjectMeta + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ self._metadata = metadata diff --git a/kubevirt/models/v1_virtual_machine_instance_file_system_list.py b/kubevirt/models/v1_virtual_machine_instance_file_system_list.py index a935b5b7..66c37a5f 100644 --- a/kubevirt/models/v1_virtual_machine_instance_file_system_list.py +++ b/kubevirt/models/v1_virtual_machine_instance_file_system_list.py @@ -34,7 +34,7 @@ class V1VirtualMachineInstanceFileSystemList(object): 'api_version': 'str', 'items': 'list[V1VirtualMachineInstanceFileSystem]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' } attribute_map = { @@ -137,7 +137,7 @@ def metadata(self): Gets the metadata of this V1VirtualMachineInstanceFileSystemList. :return: The metadata of this V1VirtualMachineInstanceFileSystemList. - :rtype: V1ListMeta + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @@ -147,7 +147,7 @@ def metadata(self, metadata): Sets the metadata of this V1VirtualMachineInstanceFileSystemList. :param metadata: The metadata of this V1VirtualMachineInstanceFileSystemList. - :type: V1ListMeta + :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ self._metadata = metadata diff --git a/kubevirt/models/v1_virtual_machine_instance_guest_os_user_list.py b/kubevirt/models/v1_virtual_machine_instance_guest_os_user_list.py index f85a90fe..a950687c 100644 --- a/kubevirt/models/v1_virtual_machine_instance_guest_os_user_list.py +++ b/kubevirt/models/v1_virtual_machine_instance_guest_os_user_list.py @@ -34,7 +34,7 @@ class V1VirtualMachineInstanceGuestOSUserList(object): 'api_version': 'str', 'items': 'list[V1VirtualMachineInstanceGuestOSUser]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' } attribute_map = { @@ -137,7 +137,7 @@ def metadata(self): Gets the metadata of this V1VirtualMachineInstanceGuestOSUserList. :return: The metadata of this V1VirtualMachineInstanceGuestOSUserList. - :rtype: V1ListMeta + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @@ -147,7 +147,7 @@ def metadata(self, metadata): Sets the metadata of this V1VirtualMachineInstanceGuestOSUserList. :param metadata: The metadata of this V1VirtualMachineInstanceGuestOSUserList. - :type: V1ListMeta + :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ self._metadata = metadata diff --git a/kubevirt/models/v1_virtual_machine_instance_list.py b/kubevirt/models/v1_virtual_machine_instance_list.py index 843638f4..468d4f95 100644 --- a/kubevirt/models/v1_virtual_machine_instance_list.py +++ b/kubevirt/models/v1_virtual_machine_instance_list.py @@ -34,7 +34,7 @@ class V1VirtualMachineInstanceList(object): 'api_version': 'str', 'items': 'list[V1VirtualMachineInstance]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' } attribute_map = { @@ -137,7 +137,7 @@ def metadata(self): Gets the metadata of this V1VirtualMachineInstanceList. :return: The metadata of this V1VirtualMachineInstanceList. - :rtype: V1ListMeta + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @@ -147,7 +147,7 @@ def metadata(self, metadata): Sets the metadata of this V1VirtualMachineInstanceList. :param metadata: The metadata of this V1VirtualMachineInstanceList. - :type: V1ListMeta + :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ self._metadata = metadata diff --git a/kubevirt/models/v1_virtual_machine_instance_migration.py b/kubevirt/models/v1_virtual_machine_instance_migration.py index 614238d9..17bac7d9 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration.py @@ -33,7 +33,7 @@ class V1VirtualMachineInstanceMigration(object): swagger_types = { 'api_version': 'str', 'kind': 'str', - 'metadata': 'V1ObjectMeta', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', 'spec': 'V1VirtualMachineInstanceMigrationSpec', 'status': 'V1VirtualMachineInstanceMigrationStatus' } @@ -119,7 +119,7 @@ def metadata(self): Gets the metadata of this V1VirtualMachineInstanceMigration. :return: The metadata of this V1VirtualMachineInstanceMigration. - :rtype: V1ObjectMeta + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -129,7 +129,7 @@ def metadata(self, metadata): Sets the metadata of this V1VirtualMachineInstanceMigration. :param metadata: The metadata of this V1VirtualMachineInstanceMigration. - :type: V1ObjectMeta + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ self._metadata = metadata diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_list.py b/kubevirt/models/v1_virtual_machine_instance_migration_list.py index 6601d921..0148d51f 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_list.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_list.py @@ -34,7 +34,7 @@ class V1VirtualMachineInstanceMigrationList(object): 'api_version': 'str', 'items': 'list[V1VirtualMachineInstanceMigration]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' } attribute_map = { @@ -137,7 +137,7 @@ def metadata(self): Gets the metadata of this V1VirtualMachineInstanceMigrationList. :return: The metadata of this V1VirtualMachineInstanceMigrationList. - :rtype: V1ListMeta + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @@ -147,7 +147,7 @@ def metadata(self, metadata): Sets the metadata of this V1VirtualMachineInstanceMigrationList. :param metadata: The metadata of this V1VirtualMachineInstanceMigrationList. - :type: V1ListMeta + :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ self._metadata = metadata diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_state.py b/kubevirt/models/v1_virtual_machine_instance_migration_state.py index a705e2f4..df922c51 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_state.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_state.py @@ -34,11 +34,11 @@ class V1VirtualMachineInstanceMigrationState(object): 'abort_requested': 'bool', 'abort_status': 'str', 'completed': 'bool', - 'end_timestamp': 'V1Time', + 'end_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', 'failed': 'bool', 'migration_uid': 'str', 'source_node': 'str', - 'start_timestamp': 'V1Time', + 'start_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', 'target_direct_migration_node_ports': 'dict(str, int)', 'target_node': 'str', 'target_node_address': 'str', @@ -184,7 +184,7 @@ def end_timestamp(self): The time the migration action ended :return: The end_timestamp of this V1VirtualMachineInstanceMigrationState. - :rtype: V1Time + :rtype: K8sIoApimachineryPkgApisMetaV1Time """ return self._end_timestamp @@ -195,7 +195,7 @@ def end_timestamp(self, end_timestamp): The time the migration action ended :param end_timestamp: The end_timestamp of this V1VirtualMachineInstanceMigrationState. - :type: V1Time + :type: K8sIoApimachineryPkgApisMetaV1Time """ self._end_timestamp = end_timestamp @@ -276,7 +276,7 @@ def start_timestamp(self): The time the migration action began :return: The start_timestamp of this V1VirtualMachineInstanceMigrationState. - :rtype: V1Time + :rtype: K8sIoApimachineryPkgApisMetaV1Time """ return self._start_timestamp @@ -287,7 +287,7 @@ def start_timestamp(self, start_timestamp): The time the migration action began :param start_timestamp: The start_timestamp of this V1VirtualMachineInstanceMigrationState. - :type: V1Time + :type: K8sIoApimachineryPkgApisMetaV1Time """ self._start_timestamp = start_timestamp diff --git a/kubevirt/models/v1_virtual_machine_instance_preset.py b/kubevirt/models/v1_virtual_machine_instance_preset.py index 624ab831..d76d434a 100644 --- a/kubevirt/models/v1_virtual_machine_instance_preset.py +++ b/kubevirt/models/v1_virtual_machine_instance_preset.py @@ -33,7 +33,7 @@ class V1VirtualMachineInstancePreset(object): swagger_types = { 'api_version': 'str', 'kind': 'str', - 'metadata': 'V1ObjectMeta', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', 'spec': 'V1VirtualMachineInstancePresetSpec' } @@ -115,7 +115,7 @@ def metadata(self): Gets the metadata of this V1VirtualMachineInstancePreset. :return: The metadata of this V1VirtualMachineInstancePreset. - :rtype: V1ObjectMeta + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -125,7 +125,7 @@ def metadata(self, metadata): Sets the metadata of this V1VirtualMachineInstancePreset. :param metadata: The metadata of this V1VirtualMachineInstancePreset. - :type: V1ObjectMeta + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ self._metadata = metadata diff --git a/kubevirt/models/v1_virtual_machine_instance_preset_list.py b/kubevirt/models/v1_virtual_machine_instance_preset_list.py index a44c7bca..e65689ed 100644 --- a/kubevirt/models/v1_virtual_machine_instance_preset_list.py +++ b/kubevirt/models/v1_virtual_machine_instance_preset_list.py @@ -34,7 +34,7 @@ class V1VirtualMachineInstancePresetList(object): 'api_version': 'str', 'items': 'list[V1VirtualMachineInstancePreset]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' } attribute_map = { @@ -137,7 +137,7 @@ def metadata(self): Gets the metadata of this V1VirtualMachineInstancePresetList. :return: The metadata of this V1VirtualMachineInstancePresetList. - :rtype: V1ListMeta + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @@ -147,7 +147,7 @@ def metadata(self, metadata): Sets the metadata of this V1VirtualMachineInstancePresetList. :param metadata: The metadata of this V1VirtualMachineInstancePresetList. - :type: V1ListMeta + :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ self._metadata = metadata diff --git a/kubevirt/models/v1_virtual_machine_instance_preset_spec.py b/kubevirt/models/v1_virtual_machine_instance_preset_spec.py index 2a106910..ca6ef06b 100644 --- a/kubevirt/models/v1_virtual_machine_instance_preset_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_preset_spec.py @@ -32,7 +32,7 @@ class V1VirtualMachineInstancePresetSpec(object): """ swagger_types = { 'domain': 'V1DomainSpec', - 'selector': 'V1LabelSelector' + 'selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector' } attribute_map = { @@ -82,7 +82,7 @@ def selector(self): Selector is a label query over a set of VMIs. Required. :return: The selector of this V1VirtualMachineInstancePresetSpec. - :rtype: V1LabelSelector + :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector """ return self._selector @@ -93,7 +93,7 @@ def selector(self, selector): Selector is a label query over a set of VMIs. Required. :param selector: The selector of this V1VirtualMachineInstancePresetSpec. - :type: V1LabelSelector + :type: K8sIoApimachineryPkgApisMetaV1LabelSelector """ if selector is None: raise ValueError("Invalid value for `selector`, must not be `None`") diff --git a/kubevirt/models/v1_virtual_machine_instance_replica_set.py b/kubevirt/models/v1_virtual_machine_instance_replica_set.py index d5d60aa6..f340924a 100644 --- a/kubevirt/models/v1_virtual_machine_instance_replica_set.py +++ b/kubevirt/models/v1_virtual_machine_instance_replica_set.py @@ -33,7 +33,7 @@ class V1VirtualMachineInstanceReplicaSet(object): swagger_types = { 'api_version': 'str', 'kind': 'str', - 'metadata': 'V1ObjectMeta', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', 'spec': 'V1VirtualMachineInstanceReplicaSetSpec', 'status': 'V1VirtualMachineInstanceReplicaSetStatus' } @@ -119,7 +119,7 @@ def metadata(self): Gets the metadata of this V1VirtualMachineInstanceReplicaSet. :return: The metadata of this V1VirtualMachineInstanceReplicaSet. - :rtype: V1ObjectMeta + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -129,7 +129,7 @@ def metadata(self, metadata): Sets the metadata of this V1VirtualMachineInstanceReplicaSet. :param metadata: The metadata of this V1VirtualMachineInstanceReplicaSet. - :type: V1ObjectMeta + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ self._metadata = metadata diff --git a/kubevirt/models/v1_virtual_machine_instance_replica_set_list.py b/kubevirt/models/v1_virtual_machine_instance_replica_set_list.py index 5ca27770..0717e765 100644 --- a/kubevirt/models/v1_virtual_machine_instance_replica_set_list.py +++ b/kubevirt/models/v1_virtual_machine_instance_replica_set_list.py @@ -34,7 +34,7 @@ class V1VirtualMachineInstanceReplicaSetList(object): 'api_version': 'str', 'items': 'list[V1VirtualMachineInstanceReplicaSet]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' } attribute_map = { @@ -137,7 +137,7 @@ def metadata(self): Gets the metadata of this V1VirtualMachineInstanceReplicaSetList. :return: The metadata of this V1VirtualMachineInstanceReplicaSetList. - :rtype: V1ListMeta + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @@ -147,7 +147,7 @@ def metadata(self, metadata): Sets the metadata of this V1VirtualMachineInstanceReplicaSetList. :param metadata: The metadata of this V1VirtualMachineInstanceReplicaSetList. - :type: V1ListMeta + :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ self._metadata = metadata diff --git a/kubevirt/models/v1_virtual_machine_instance_replica_set_spec.py b/kubevirt/models/v1_virtual_machine_instance_replica_set_spec.py index ad6b2dea..fa37f938 100644 --- a/kubevirt/models/v1_virtual_machine_instance_replica_set_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_replica_set_spec.py @@ -33,7 +33,7 @@ class V1VirtualMachineInstanceReplicaSetSpec(object): swagger_types = { 'paused': 'bool', 'replicas': 'int', - 'selector': 'V1LabelSelector', + 'selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', 'template': 'V1VirtualMachineInstanceTemplateSpec' } @@ -114,7 +114,7 @@ def selector(self): Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. :return: The selector of this V1VirtualMachineInstanceReplicaSetSpec. - :rtype: V1LabelSelector + :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector """ return self._selector @@ -125,7 +125,7 @@ def selector(self, selector): Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. :param selector: The selector of this V1VirtualMachineInstanceReplicaSetSpec. - :type: V1LabelSelector + :type: K8sIoApimachineryPkgApisMetaV1LabelSelector """ if selector is None: raise ValueError("Invalid value for `selector`, must not be `None`") diff --git a/kubevirt/models/v1_virtual_machine_instance_spec.py b/kubevirt/models/v1_virtual_machine_instance_spec.py index 5617e721..4a3f5ee6 100644 --- a/kubevirt/models/v1_virtual_machine_instance_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_spec.py @@ -31,8 +31,8 @@ class V1VirtualMachineInstanceSpec(object): and the value is json key in definition. """ swagger_types = { - 'affinity': 'V1Affinity', - 'dns_config': 'V1PodDNSConfig', + 'affinity': 'K8sIoApiCoreV1Affinity', + 'dns_config': 'K8sIoApiCoreV1PodDNSConfig', 'dns_policy': 'str', 'domain': 'V1DomainSpec', 'eviction_strategy': 'str', @@ -45,7 +45,7 @@ class V1VirtualMachineInstanceSpec(object): 'scheduler_name': 'str', 'subdomain': 'str', 'termination_grace_period_seconds': 'int', - 'tolerations': 'list[V1Toleration]', + 'tolerations': 'list[K8sIoApiCoreV1Toleration]', 'volumes': 'list[V1Volume]' } @@ -129,7 +129,7 @@ def affinity(self): If affinity is specifies, obey all the affinity rules :return: The affinity of this V1VirtualMachineInstanceSpec. - :rtype: V1Affinity + :rtype: K8sIoApiCoreV1Affinity """ return self._affinity @@ -140,7 +140,7 @@ def affinity(self, affinity): If affinity is specifies, obey all the affinity rules :param affinity: The affinity of this V1VirtualMachineInstanceSpec. - :type: V1Affinity + :type: K8sIoApiCoreV1Affinity """ self._affinity = affinity @@ -152,7 +152,7 @@ def dns_config(self): Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. :return: The dns_config of this V1VirtualMachineInstanceSpec. - :rtype: V1PodDNSConfig + :rtype: K8sIoApiCoreV1PodDNSConfig """ return self._dns_config @@ -163,7 +163,7 @@ def dns_config(self, dns_config): Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. :param dns_config: The dns_config of this V1VirtualMachineInstanceSpec. - :type: V1PodDNSConfig + :type: K8sIoApiCoreV1PodDNSConfig """ self._dns_config = dns_config @@ -453,7 +453,7 @@ def tolerations(self): If toleration is specified, obey all the toleration rules. :return: The tolerations of this V1VirtualMachineInstanceSpec. - :rtype: list[V1Toleration] + :rtype: list[K8sIoApiCoreV1Toleration] """ return self._tolerations @@ -464,7 +464,7 @@ def tolerations(self, tolerations): If toleration is specified, obey all the toleration rules. :param tolerations: The tolerations of this V1VirtualMachineInstanceSpec. - :type: list[V1Toleration] + :type: list[K8sIoApiCoreV1Toleration] """ self._tolerations = tolerations diff --git a/kubevirt/models/v1_virtual_machine_instance_template_spec.py b/kubevirt/models/v1_virtual_machine_instance_template_spec.py index d6bbef5a..71d81272 100644 --- a/kubevirt/models/v1_virtual_machine_instance_template_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_template_spec.py @@ -31,7 +31,7 @@ class V1VirtualMachineInstanceTemplateSpec(object): and the value is json key in definition. """ swagger_types = { - 'metadata': 'V1ObjectMeta', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', 'spec': 'V1VirtualMachineInstanceSpec' } @@ -59,7 +59,7 @@ def metadata(self): Gets the metadata of this V1VirtualMachineInstanceTemplateSpec. :return: The metadata of this V1VirtualMachineInstanceTemplateSpec. - :rtype: V1ObjectMeta + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -69,7 +69,7 @@ def metadata(self, metadata): Sets the metadata of this V1VirtualMachineInstanceTemplateSpec. :param metadata: The metadata of this V1VirtualMachineInstanceTemplateSpec. - :type: V1ObjectMeta + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ self._metadata = metadata diff --git a/kubevirt/models/v1_virtual_machine_list.py b/kubevirt/models/v1_virtual_machine_list.py index db03ad42..5a399464 100644 --- a/kubevirt/models/v1_virtual_machine_list.py +++ b/kubevirt/models/v1_virtual_machine_list.py @@ -34,7 +34,7 @@ class V1VirtualMachineList(object): 'api_version': 'str', 'items': 'list[V1VirtualMachine]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' } attribute_map = { @@ -137,7 +137,7 @@ def metadata(self): Gets the metadata of this V1VirtualMachineList. :return: The metadata of this V1VirtualMachineList. - :rtype: V1ListMeta + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @@ -147,7 +147,7 @@ def metadata(self, metadata): Sets the metadata of this V1VirtualMachineList. :param metadata: The metadata of this V1VirtualMachineList. - :type: V1ListMeta + :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ self._metadata = metadata diff --git a/kubevirt/models/v1_volume.py b/kubevirt/models/v1_volume.py index b8f4da31..d0c258f8 100644 --- a/kubevirt/models/v1_volume.py +++ b/kubevirt/models/v1_volume.py @@ -40,7 +40,7 @@ class V1Volume(object): 'ephemeral': 'V1EphemeralVolumeSource', 'host_disk': 'V1HostDisk', 'name': 'str', - 'persistent_volume_claim': 'V1PersistentVolumeClaimVolumeSource', + 'persistent_volume_claim': 'K8sIoApiCoreV1PersistentVolumeClaimVolumeSource', 'secret': 'V1SecretVolumeSource', 'service_account': 'V1ServiceAccountVolumeSource' } @@ -318,7 +318,7 @@ def persistent_volume_claim(self): PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims :return: The persistent_volume_claim of this V1Volume. - :rtype: V1PersistentVolumeClaimVolumeSource + :rtype: K8sIoApiCoreV1PersistentVolumeClaimVolumeSource """ return self._persistent_volume_claim @@ -329,7 +329,7 @@ def persistent_volume_claim(self, persistent_volume_claim): PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims :param persistent_volume_claim: The persistent_volume_claim of this V1Volume. - :type: V1PersistentVolumeClaimVolumeSource + :type: K8sIoApiCoreV1PersistentVolumeClaimVolumeSource """ self._persistent_volume_claim = persistent_volume_claim diff --git a/kubevirt/models/v1alpha1_data_volume.py b/kubevirt/models/v1alpha1_data_volume.py index 262d20e7..1d37ae6f 100644 --- a/kubevirt/models/v1alpha1_data_volume.py +++ b/kubevirt/models/v1alpha1_data_volume.py @@ -33,7 +33,7 @@ class V1alpha1DataVolume(object): swagger_types = { 'api_version': 'str', 'kind': 'str', - 'metadata': 'V1ObjectMeta', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', 'spec': 'V1alpha1DataVolumeSpec', 'status': 'V1alpha1DataVolumeStatus' } @@ -119,7 +119,7 @@ def metadata(self): Gets the metadata of this V1alpha1DataVolume. :return: The metadata of this V1alpha1DataVolume. - :rtype: V1ObjectMeta + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -129,7 +129,7 @@ def metadata(self, metadata): Sets the metadata of this V1alpha1DataVolume. :param metadata: The metadata of this V1alpha1DataVolume. - :type: V1ObjectMeta + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ self._metadata = metadata diff --git a/kubevirt/models/v1alpha1_data_volume_condition.py b/kubevirt/models/v1alpha1_data_volume_condition.py index f0cf8a47..6634a937 100644 --- a/kubevirt/models/v1alpha1_data_volume_condition.py +++ b/kubevirt/models/v1alpha1_data_volume_condition.py @@ -31,7 +31,7 @@ class V1alpha1DataVolumeCondition(object): and the value is json key in definition. """ swagger_types = { - 'last_heartbeat_time': 'V1Time', + 'last_heartbeat_time': 'K8sIoApimachineryPkgApisMetaV1Time', 'message': 'str', 'reason': 'str', 'status': 'str', @@ -72,7 +72,7 @@ def last_heartbeat_time(self): Gets the last_heartbeat_time of this V1alpha1DataVolumeCondition. :return: The last_heartbeat_time of this V1alpha1DataVolumeCondition. - :rtype: V1Time + :rtype: K8sIoApimachineryPkgApisMetaV1Time """ return self._last_heartbeat_time @@ -82,7 +82,7 @@ def last_heartbeat_time(self, last_heartbeat_time): Sets the last_heartbeat_time of this V1alpha1DataVolumeCondition. :param last_heartbeat_time: The last_heartbeat_time of this V1alpha1DataVolumeCondition. - :type: V1Time + :type: K8sIoApimachineryPkgApisMetaV1Time """ self._last_heartbeat_time = last_heartbeat_time diff --git a/kubevirt/models/v1alpha1_data_volume_spec.py b/kubevirt/models/v1alpha1_data_volume_spec.py index c00e5b20..2ea351eb 100644 --- a/kubevirt/models/v1alpha1_data_volume_spec.py +++ b/kubevirt/models/v1alpha1_data_volume_spec.py @@ -32,7 +32,7 @@ class V1alpha1DataVolumeSpec(object): """ swagger_types = { 'content_type': 'str', - 'pvc': 'V1PersistentVolumeClaimSpec', + 'pvc': 'K8sIoApiCoreV1PersistentVolumeClaimSpec', 'source': 'V1alpha1DataVolumeSource' } @@ -86,7 +86,7 @@ def pvc(self): PVC is the PVC specification :return: The pvc of this V1alpha1DataVolumeSpec. - :rtype: V1PersistentVolumeClaimSpec + :rtype: K8sIoApiCoreV1PersistentVolumeClaimSpec """ return self._pvc @@ -97,7 +97,7 @@ def pvc(self, pvc): PVC is the PVC specification :param pvc: The pvc of this V1alpha1DataVolumeSpec. - :type: V1PersistentVolumeClaimSpec + :type: K8sIoApiCoreV1PersistentVolumeClaimSpec """ if pvc is None: raise ValueError("Invalid value for `pvc`, must not be `None`") diff --git a/kubevirt/models/v1alpha1_error.py b/kubevirt/models/v1alpha1_error.py index c6135dc1..dcc618c6 100644 --- a/kubevirt/models/v1alpha1_error.py +++ b/kubevirt/models/v1alpha1_error.py @@ -32,7 +32,7 @@ class V1alpha1Error(object): """ swagger_types = { 'message': 'str', - 'time': 'V1Time' + 'time': 'K8sIoApimachineryPkgApisMetaV1Time' } attribute_map = { @@ -80,7 +80,7 @@ def time(self): Gets the time of this V1alpha1Error. :return: The time of this V1alpha1Error. - :rtype: V1Time + :rtype: K8sIoApimachineryPkgApisMetaV1Time """ return self._time @@ -90,7 +90,7 @@ def time(self, time): Sets the time of this V1alpha1Error. :param time: The time of this V1alpha1Error. - :type: V1Time + :type: K8sIoApimachineryPkgApisMetaV1Time """ self._time = time diff --git a/kubevirt/models/v1alpha1_virtual_machine_restore.py b/kubevirt/models/v1alpha1_virtual_machine_restore.py index c9d72526..186a4417 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_restore.py +++ b/kubevirt/models/v1alpha1_virtual_machine_restore.py @@ -33,7 +33,7 @@ class V1alpha1VirtualMachineRestore(object): swagger_types = { 'api_version': 'str', 'kind': 'str', - 'metadata': 'V1ObjectMeta', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', 'spec': 'V1alpha1VirtualMachineRestoreSpec', 'status': 'V1alpha1VirtualMachineRestoreStatus' } @@ -119,7 +119,7 @@ def metadata(self): Gets the metadata of this V1alpha1VirtualMachineRestore. :return: The metadata of this V1alpha1VirtualMachineRestore. - :rtype: V1ObjectMeta + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -129,7 +129,7 @@ def metadata(self, metadata): Sets the metadata of this V1alpha1VirtualMachineRestore. :param metadata: The metadata of this V1alpha1VirtualMachineRestore. - :type: V1ObjectMeta + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ self._metadata = metadata diff --git a/kubevirt/models/v1alpha1_virtual_machine_restore_list.py b/kubevirt/models/v1alpha1_virtual_machine_restore_list.py index 81f024fc..82b40c0b 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_restore_list.py +++ b/kubevirt/models/v1alpha1_virtual_machine_restore_list.py @@ -34,7 +34,7 @@ class V1alpha1VirtualMachineRestoreList(object): 'api_version': 'str', 'items': 'list[V1alpha1VirtualMachineRestore]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' } attribute_map = { @@ -136,7 +136,7 @@ def metadata(self): Gets the metadata of this V1alpha1VirtualMachineRestoreList. :return: The metadata of this V1alpha1VirtualMachineRestoreList. - :rtype: V1ListMeta + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @@ -146,7 +146,7 @@ def metadata(self, metadata): Sets the metadata of this V1alpha1VirtualMachineRestoreList. :param metadata: The metadata of this V1alpha1VirtualMachineRestoreList. - :type: V1ListMeta + :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ if metadata is None: raise ValueError("Invalid value for `metadata`, must not be `None`") diff --git a/kubevirt/models/v1alpha1_virtual_machine_restore_spec.py b/kubevirt/models/v1alpha1_virtual_machine_restore_spec.py index c85a6160..ae3e2da9 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_restore_spec.py +++ b/kubevirt/models/v1alpha1_virtual_machine_restore_spec.py @@ -31,7 +31,7 @@ class V1alpha1VirtualMachineRestoreSpec(object): and the value is json key in definition. """ swagger_types = { - 'target': 'V1TypedLocalObjectReference', + 'target': 'K8sIoApiCoreV1TypedLocalObjectReference', 'virtual_machine_snapshot_name': 'str' } @@ -58,7 +58,7 @@ def target(self): initially only VirtualMachine type supported :return: The target of this V1alpha1VirtualMachineRestoreSpec. - :rtype: V1TypedLocalObjectReference + :rtype: K8sIoApiCoreV1TypedLocalObjectReference """ return self._target @@ -69,7 +69,7 @@ def target(self, target): initially only VirtualMachine type supported :param target: The target of this V1alpha1VirtualMachineRestoreSpec. - :type: V1TypedLocalObjectReference + :type: K8sIoApiCoreV1TypedLocalObjectReference """ if target is None: raise ValueError("Invalid value for `target`, must not be `None`") diff --git a/kubevirt/models/v1alpha1_virtual_machine_restore_status.py b/kubevirt/models/v1alpha1_virtual_machine_restore_status.py index 2c1cac8e..0ae815fb 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_restore_status.py +++ b/kubevirt/models/v1alpha1_virtual_machine_restore_status.py @@ -34,7 +34,7 @@ class V1alpha1VirtualMachineRestoreStatus(object): 'complete': 'bool', 'conditions': 'list[V1alpha1Condition]', 'deleted_data_volumes': 'list[str]', - 'restore_time': 'V1Time', + 'restore_time': 'K8sIoApimachineryPkgApisMetaV1Time', 'restores': 'list[V1alpha1VolumeRestore]' } @@ -137,7 +137,7 @@ def restore_time(self): Gets the restore_time of this V1alpha1VirtualMachineRestoreStatus. :return: The restore_time of this V1alpha1VirtualMachineRestoreStatus. - :rtype: V1Time + :rtype: K8sIoApimachineryPkgApisMetaV1Time """ return self._restore_time @@ -147,7 +147,7 @@ def restore_time(self, restore_time): Sets the restore_time of this V1alpha1VirtualMachineRestoreStatus. :param restore_time: The restore_time of this V1alpha1VirtualMachineRestoreStatus. - :type: V1Time + :type: K8sIoApimachineryPkgApisMetaV1Time """ self._restore_time = restore_time diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot.py b/kubevirt/models/v1alpha1_virtual_machine_snapshot.py index 7a8d8adf..83841fcb 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_snapshot.py +++ b/kubevirt/models/v1alpha1_virtual_machine_snapshot.py @@ -33,7 +33,7 @@ class V1alpha1VirtualMachineSnapshot(object): swagger_types = { 'api_version': 'str', 'kind': 'str', - 'metadata': 'V1ObjectMeta', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', 'spec': 'V1alpha1VirtualMachineSnapshotSpec', 'status': 'V1alpha1VirtualMachineSnapshotStatus' } @@ -119,7 +119,7 @@ def metadata(self): Gets the metadata of this V1alpha1VirtualMachineSnapshot. :return: The metadata of this V1alpha1VirtualMachineSnapshot. - :rtype: V1ObjectMeta + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -129,7 +129,7 @@ def metadata(self, metadata): Sets the metadata of this V1alpha1VirtualMachineSnapshot. :param metadata: The metadata of this V1alpha1VirtualMachineSnapshot. - :type: V1ObjectMeta + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ self._metadata = metadata diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_content.py b/kubevirt/models/v1alpha1_virtual_machine_snapshot_content.py index 0eaf5d75..7ff30273 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_snapshot_content.py +++ b/kubevirt/models/v1alpha1_virtual_machine_snapshot_content.py @@ -33,7 +33,7 @@ class V1alpha1VirtualMachineSnapshotContent(object): swagger_types = { 'api_version': 'str', 'kind': 'str', - 'metadata': 'V1ObjectMeta', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', 'spec': 'V1alpha1VirtualMachineSnapshotContentSpec', 'status': 'V1alpha1VirtualMachineSnapshotContentStatus' } @@ -119,7 +119,7 @@ def metadata(self): Gets the metadata of this V1alpha1VirtualMachineSnapshotContent. :return: The metadata of this V1alpha1VirtualMachineSnapshotContent. - :rtype: V1ObjectMeta + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -129,7 +129,7 @@ def metadata(self, metadata): Sets the metadata of this V1alpha1VirtualMachineSnapshotContent. :param metadata: The metadata of this V1alpha1VirtualMachineSnapshotContent. - :type: V1ObjectMeta + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ self._metadata = metadata diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_list.py b/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_list.py index 11e0ddcb..4be07440 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_list.py +++ b/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_list.py @@ -34,7 +34,7 @@ class V1alpha1VirtualMachineSnapshotContentList(object): 'api_version': 'str', 'items': 'list[V1alpha1VirtualMachineSnapshotContent]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' } attribute_map = { @@ -136,7 +136,7 @@ def metadata(self): Gets the metadata of this V1alpha1VirtualMachineSnapshotContentList. :return: The metadata of this V1alpha1VirtualMachineSnapshotContentList. - :rtype: V1ListMeta + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @@ -146,7 +146,7 @@ def metadata(self, metadata): Sets the metadata of this V1alpha1VirtualMachineSnapshotContentList. :param metadata: The metadata of this V1alpha1VirtualMachineSnapshotContentList. - :type: V1ListMeta + :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ if metadata is None: raise ValueError("Invalid value for `metadata`, must not be `None`") diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_status.py b/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_status.py index d5719462..0ebae408 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_status.py +++ b/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_status.py @@ -31,7 +31,7 @@ class V1alpha1VirtualMachineSnapshotContentStatus(object): and the value is json key in definition. """ swagger_types = { - 'creation_time': 'V1Time', + 'creation_time': 'K8sIoApimachineryPkgApisMetaV1Time', 'error': 'V1alpha1Error', 'ready_to_use': 'bool', 'volume_snapshot_status': 'list[V1alpha1VolumeSnapshotStatus]' @@ -69,7 +69,7 @@ def creation_time(self): Gets the creation_time of this V1alpha1VirtualMachineSnapshotContentStatus. :return: The creation_time of this V1alpha1VirtualMachineSnapshotContentStatus. - :rtype: V1Time + :rtype: K8sIoApimachineryPkgApisMetaV1Time """ return self._creation_time @@ -79,7 +79,7 @@ def creation_time(self, creation_time): Sets the creation_time of this V1alpha1VirtualMachineSnapshotContentStatus. :param creation_time: The creation_time of this V1alpha1VirtualMachineSnapshotContentStatus. - :type: V1Time + :type: K8sIoApimachineryPkgApisMetaV1Time """ self._creation_time = creation_time diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_list.py b/kubevirt/models/v1alpha1_virtual_machine_snapshot_list.py index f4c0794e..a31d4897 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_snapshot_list.py +++ b/kubevirt/models/v1alpha1_virtual_machine_snapshot_list.py @@ -34,7 +34,7 @@ class V1alpha1VirtualMachineSnapshotList(object): 'api_version': 'str', 'items': 'list[V1alpha1VirtualMachineSnapshot]', 'kind': 'str', - 'metadata': 'V1ListMeta' + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' } attribute_map = { @@ -136,7 +136,7 @@ def metadata(self): Gets the metadata of this V1alpha1VirtualMachineSnapshotList. :return: The metadata of this V1alpha1VirtualMachineSnapshotList. - :rtype: V1ListMeta + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @@ -146,7 +146,7 @@ def metadata(self, metadata): Sets the metadata of this V1alpha1VirtualMachineSnapshotList. :param metadata: The metadata of this V1alpha1VirtualMachineSnapshotList. - :type: V1ListMeta + :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ if metadata is None: raise ValueError("Invalid value for `metadata`, must not be `None`") diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_spec.py b/kubevirt/models/v1alpha1_virtual_machine_snapshot_spec.py index dc9e7dae..87fd359a 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_snapshot_spec.py +++ b/kubevirt/models/v1alpha1_virtual_machine_snapshot_spec.py @@ -32,7 +32,7 @@ class V1alpha1VirtualMachineSnapshotSpec(object): """ swagger_types = { 'deletion_policy': 'str', - 'source': 'V1TypedLocalObjectReference' + 'source': 'K8sIoApiCoreV1TypedLocalObjectReference' } attribute_map = { @@ -79,7 +79,7 @@ def source(self): Gets the source of this V1alpha1VirtualMachineSnapshotSpec. :return: The source of this V1alpha1VirtualMachineSnapshotSpec. - :rtype: V1TypedLocalObjectReference + :rtype: K8sIoApiCoreV1TypedLocalObjectReference """ return self._source @@ -89,7 +89,7 @@ def source(self, source): Sets the source of this V1alpha1VirtualMachineSnapshotSpec. :param source: The source of this V1alpha1VirtualMachineSnapshotSpec. - :type: V1TypedLocalObjectReference + :type: K8sIoApiCoreV1TypedLocalObjectReference """ if source is None: raise ValueError("Invalid value for `source`, must not be `None`") diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py b/kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py index cf4c3380..a78431bc 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py +++ b/kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py @@ -32,7 +32,7 @@ class V1alpha1VirtualMachineSnapshotStatus(object): """ swagger_types = { 'conditions': 'list[V1alpha1Condition]', - 'creation_time': 'V1Time', + 'creation_time': 'K8sIoApimachineryPkgApisMetaV1Time', 'error': 'V1alpha1Error', 'ready_to_use': 'bool', 'source_uid': 'str', @@ -100,7 +100,7 @@ def creation_time(self): Gets the creation_time of this V1alpha1VirtualMachineSnapshotStatus. :return: The creation_time of this V1alpha1VirtualMachineSnapshotStatus. - :rtype: V1Time + :rtype: K8sIoApimachineryPkgApisMetaV1Time """ return self._creation_time @@ -110,7 +110,7 @@ def creation_time(self, creation_time): Sets the creation_time of this V1alpha1VirtualMachineSnapshotStatus. :param creation_time: The creation_time of this V1alpha1VirtualMachineSnapshotStatus. - :type: V1Time + :type: K8sIoApimachineryPkgApisMetaV1Time """ self._creation_time = creation_time diff --git a/kubevirt/models/v1alpha1_volume_backup.py b/kubevirt/models/v1alpha1_volume_backup.py index 317201ca..be96d8d9 100644 --- a/kubevirt/models/v1alpha1_volume_backup.py +++ b/kubevirt/models/v1alpha1_volume_backup.py @@ -31,7 +31,7 @@ class V1alpha1VolumeBackup(object): and the value is json key in definition. """ swagger_types = { - 'persistent_volume_claim': 'V1PersistentVolumeClaim', + 'persistent_volume_claim': 'K8sIoApiCoreV1PersistentVolumeClaim', 'volume_name': 'str', 'volume_snapshot_name': 'str' } @@ -62,7 +62,7 @@ def persistent_volume_claim(self): Gets the persistent_volume_claim of this V1alpha1VolumeBackup. :return: The persistent_volume_claim of this V1alpha1VolumeBackup. - :rtype: V1PersistentVolumeClaim + :rtype: K8sIoApiCoreV1PersistentVolumeClaim """ return self._persistent_volume_claim @@ -72,7 +72,7 @@ def persistent_volume_claim(self, persistent_volume_claim): Sets the persistent_volume_claim of this V1alpha1VolumeBackup. :param persistent_volume_claim: The persistent_volume_claim of this V1alpha1VolumeBackup. - :type: V1PersistentVolumeClaim + :type: K8sIoApiCoreV1PersistentVolumeClaim """ if persistent_volume_claim is None: raise ValueError("Invalid value for `persistent_volume_claim`, must not be `None`") diff --git a/kubevirt/models/v1alpha1_volume_snapshot_status.py b/kubevirt/models/v1alpha1_volume_snapshot_status.py index 5a07b25f..fe919d49 100644 --- a/kubevirt/models/v1alpha1_volume_snapshot_status.py +++ b/kubevirt/models/v1alpha1_volume_snapshot_status.py @@ -31,7 +31,7 @@ class V1alpha1VolumeSnapshotStatus(object): and the value is json key in definition. """ swagger_types = { - 'creation_time': 'V1Time', + 'creation_time': 'K8sIoApimachineryPkgApisMetaV1Time', 'error': 'V1alpha1Error', 'ready_to_use': 'bool', 'volume_snapshot_name': 'str' @@ -68,7 +68,7 @@ def creation_time(self): Gets the creation_time of this V1alpha1VolumeSnapshotStatus. :return: The creation_time of this V1alpha1VolumeSnapshotStatus. - :rtype: V1Time + :rtype: K8sIoApimachineryPkgApisMetaV1Time """ return self._creation_time @@ -78,7 +78,7 @@ def creation_time(self, creation_time): Sets the creation_time of this V1alpha1VolumeSnapshotStatus. :param creation_time: The creation_time of this V1alpha1VolumeSnapshotStatus. - :type: V1Time + :type: K8sIoApimachineryPkgApisMetaV1Time """ self._creation_time = creation_time diff --git a/setup.py b/setup.py index d0bdddea..f7252398 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.33.0-rc.0-100-g87b59b40" +VERSION = "v0.33.0-rc.0-112-g2152ea2e" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index f03e6765..934e31a8 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.33.0-rc.0-100-g87b59b40" +"packageVersion": "v0.33.0-rc.0-112-g2152ea2e" } diff --git a/test/test_intstr_int_or_string.py b/test/test_k8s_io_api_core_v1_affinity.py similarity index 63% rename from test/test_intstr_int_or_string.py rename to test/test_k8s_io_api_core_v1_affinity.py index 51f55ad4..7da93ca9 100644 --- a/test/test_intstr_int_or_string.py +++ b/test/test_k8s_io_api_core_v1_affinity.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.intstr_int_or_string import IntstrIntOrString +from kubevirt.models.k8s_io_api_core_v1_affinity import K8sIoApiCoreV1Affinity -class TestIntstrIntOrString(unittest.TestCase): - """ IntstrIntOrString unit test stubs """ +class TestK8sIoApiCoreV1Affinity(unittest.TestCase): + """ K8sIoApiCoreV1Affinity unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testIntstrIntOrString(self): + def testK8sIoApiCoreV1Affinity(self): """ - Test IntstrIntOrString + Test K8sIoApiCoreV1Affinity """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.intstr_int_or_string.IntstrIntOrString() + #model = kubevirt.models.k8s_io_api_core_v1_affinity.K8sIoApiCoreV1Affinity() pass diff --git a/test/test_k8s_io_api_core_v1_http_get_action.py b/test/test_k8s_io_api_core_v1_http_get_action.py new file mode 100644 index 00000000..288fd1fa --- /dev/null +++ b/test/test_k8s_io_api_core_v1_http_get_action.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_api_core_v1_http_get_action import K8sIoApiCoreV1HTTPGetAction + + +class TestK8sIoApiCoreV1HTTPGetAction(unittest.TestCase): + """ K8sIoApiCoreV1HTTPGetAction unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1HTTPGetAction(self): + """ + Test K8sIoApiCoreV1HTTPGetAction + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_http_get_action.K8sIoApiCoreV1HTTPGetAction() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_runtime_raw_extension.py b/test/test_k8s_io_api_core_v1_http_header.py similarity index 62% rename from test/test_runtime_raw_extension.py rename to test/test_k8s_io_api_core_v1_http_header.py index 69d20916..ae3473dc 100644 --- a/test/test_runtime_raw_extension.py +++ b/test/test_k8s_io_api_core_v1_http_header.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.runtime_raw_extension import RuntimeRawExtension +from kubevirt.models.k8s_io_api_core_v1_http_header import K8sIoApiCoreV1HTTPHeader -class TestRuntimeRawExtension(unittest.TestCase): - """ RuntimeRawExtension unit test stubs """ +class TestK8sIoApiCoreV1HTTPHeader(unittest.TestCase): + """ K8sIoApiCoreV1HTTPHeader unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testRuntimeRawExtension(self): + def testK8sIoApiCoreV1HTTPHeader(self): """ - Test RuntimeRawExtension + Test K8sIoApiCoreV1HTTPHeader """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.runtime_raw_extension.RuntimeRawExtension() + #model = kubevirt.models.k8s_io_api_core_v1_http_header.K8sIoApiCoreV1HTTPHeader() pass diff --git a/test/test_v1_pod_affinity.py b/test/test_k8s_io_api_core_v1_local_object_reference.py similarity index 58% rename from test/test_v1_pod_affinity.py rename to test/test_k8s_io_api_core_v1_local_object_reference.py index 1737b5ce..fce86dde 100644 --- a/test/test_v1_pod_affinity.py +++ b/test/test_k8s_io_api_core_v1_local_object_reference.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_pod_affinity import V1PodAffinity +from kubevirt.models.k8s_io_api_core_v1_local_object_reference import K8sIoApiCoreV1LocalObjectReference -class TestV1PodAffinity(unittest.TestCase): - """ V1PodAffinity unit test stubs """ +class TestK8sIoApiCoreV1LocalObjectReference(unittest.TestCase): + """ K8sIoApiCoreV1LocalObjectReference unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1PodAffinity(self): + def testK8sIoApiCoreV1LocalObjectReference(self): """ - Test V1PodAffinity + Test K8sIoApiCoreV1LocalObjectReference """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_pod_affinity.V1PodAffinity() + #model = kubevirt.models.k8s_io_api_core_v1_local_object_reference.K8sIoApiCoreV1LocalObjectReference() pass diff --git a/test/test_k8s_io_api_core_v1_node_affinity.py b/test/test_k8s_io_api_core_v1_node_affinity.py new file mode 100644 index 00000000..e65f8dcb --- /dev/null +++ b/test/test_k8s_io_api_core_v1_node_affinity.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_api_core_v1_node_affinity import K8sIoApiCoreV1NodeAffinity + + +class TestK8sIoApiCoreV1NodeAffinity(unittest.TestCase): + """ K8sIoApiCoreV1NodeAffinity unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1NodeAffinity(self): + """ + Test K8sIoApiCoreV1NodeAffinity + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_node_affinity.K8sIoApiCoreV1NodeAffinity() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_api_core_v1_node_selector.py b/test/test_k8s_io_api_core_v1_node_selector.py new file mode 100644 index 00000000..ef69af89 --- /dev/null +++ b/test/test_k8s_io_api_core_v1_node_selector.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_api_core_v1_node_selector import K8sIoApiCoreV1NodeSelector + + +class TestK8sIoApiCoreV1NodeSelector(unittest.TestCase): + """ K8sIoApiCoreV1NodeSelector unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1NodeSelector(self): + """ + Test K8sIoApiCoreV1NodeSelector + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_node_selector.K8sIoApiCoreV1NodeSelector() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_api_core_v1_node_selector_requirement.py b/test/test_k8s_io_api_core_v1_node_selector_requirement.py new file mode 100644 index 00000000..d0086548 --- /dev/null +++ b/test/test_k8s_io_api_core_v1_node_selector_requirement.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_api_core_v1_node_selector_requirement import K8sIoApiCoreV1NodeSelectorRequirement + + +class TestK8sIoApiCoreV1NodeSelectorRequirement(unittest.TestCase): + """ K8sIoApiCoreV1NodeSelectorRequirement unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1NodeSelectorRequirement(self): + """ + Test K8sIoApiCoreV1NodeSelectorRequirement + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_node_selector_requirement.K8sIoApiCoreV1NodeSelectorRequirement() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_api_core_v1_node_selector_term.py b/test/test_k8s_io_api_core_v1_node_selector_term.py new file mode 100644 index 00000000..abe33e78 --- /dev/null +++ b/test/test_k8s_io_api_core_v1_node_selector_term.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_api_core_v1_node_selector_term import K8sIoApiCoreV1NodeSelectorTerm + + +class TestK8sIoApiCoreV1NodeSelectorTerm(unittest.TestCase): + """ K8sIoApiCoreV1NodeSelectorTerm unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1NodeSelectorTerm(self): + """ + Test K8sIoApiCoreV1NodeSelectorTerm + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_node_selector_term.K8sIoApiCoreV1NodeSelectorTerm() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_persistent_volume_claim_volume_source.py b/test/test_k8s_io_api_core_v1_persistent_volume_claim.py similarity index 57% rename from test/test_v1_persistent_volume_claim_volume_source.py rename to test/test_k8s_io_api_core_v1_persistent_volume_claim.py index dc34a8ac..101a2a39 100644 --- a/test/test_v1_persistent_volume_claim_volume_source.py +++ b/test/test_k8s_io_api_core_v1_persistent_volume_claim.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource +from kubevirt.models.k8s_io_api_core_v1_persistent_volume_claim import K8sIoApiCoreV1PersistentVolumeClaim -class TestV1PersistentVolumeClaimVolumeSource(unittest.TestCase): - """ V1PersistentVolumeClaimVolumeSource unit test stubs """ +class TestK8sIoApiCoreV1PersistentVolumeClaim(unittest.TestCase): + """ K8sIoApiCoreV1PersistentVolumeClaim unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1PersistentVolumeClaimVolumeSource(self): + def testK8sIoApiCoreV1PersistentVolumeClaim(self): """ - Test V1PersistentVolumeClaimVolumeSource + Test K8sIoApiCoreV1PersistentVolumeClaim """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_persistent_volume_claim_volume_source.V1PersistentVolumeClaimVolumeSource() + #model = kubevirt.models.k8s_io_api_core_v1_persistent_volume_claim.K8sIoApiCoreV1PersistentVolumeClaim() pass diff --git a/test/test_k8s_io_api_core_v1_persistent_volume_claim_condition.py b/test/test_k8s_io_api_core_v1_persistent_volume_claim_condition.py new file mode 100644 index 00000000..2acbc5e5 --- /dev/null +++ b/test/test_k8s_io_api_core_v1_persistent_volume_claim_condition.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_api_core_v1_persistent_volume_claim_condition import K8sIoApiCoreV1PersistentVolumeClaimCondition + + +class TestK8sIoApiCoreV1PersistentVolumeClaimCondition(unittest.TestCase): + """ K8sIoApiCoreV1PersistentVolumeClaimCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1PersistentVolumeClaimCondition(self): + """ + Test K8sIoApiCoreV1PersistentVolumeClaimCondition + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_persistent_volume_claim_condition.K8sIoApiCoreV1PersistentVolumeClaimCondition() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_api_core_v1_persistent_volume_claim_spec.py b/test/test_k8s_io_api_core_v1_persistent_volume_claim_spec.py new file mode 100644 index 00000000..bf8b5e5b --- /dev/null +++ b/test/test_k8s_io_api_core_v1_persistent_volume_claim_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_api_core_v1_persistent_volume_claim_spec import K8sIoApiCoreV1PersistentVolumeClaimSpec + + +class TestK8sIoApiCoreV1PersistentVolumeClaimSpec(unittest.TestCase): + """ K8sIoApiCoreV1PersistentVolumeClaimSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1PersistentVolumeClaimSpec(self): + """ + Test K8sIoApiCoreV1PersistentVolumeClaimSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_persistent_volume_claim_spec.K8sIoApiCoreV1PersistentVolumeClaimSpec() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_api_core_v1_persistent_volume_claim_status.py b/test/test_k8s_io_api_core_v1_persistent_volume_claim_status.py new file mode 100644 index 00000000..5dcbb4e5 --- /dev/null +++ b/test/test_k8s_io_api_core_v1_persistent_volume_claim_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_api_core_v1_persistent_volume_claim_status import K8sIoApiCoreV1PersistentVolumeClaimStatus + + +class TestK8sIoApiCoreV1PersistentVolumeClaimStatus(unittest.TestCase): + """ K8sIoApiCoreV1PersistentVolumeClaimStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1PersistentVolumeClaimStatus(self): + """ + Test K8sIoApiCoreV1PersistentVolumeClaimStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_persistent_volume_claim_status.K8sIoApiCoreV1PersistentVolumeClaimStatus() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_api_core_v1_persistent_volume_claim_volume_source.py b/test/test_k8s_io_api_core_v1_persistent_volume_claim_volume_source.py new file mode 100644 index 00000000..c5c94f48 --- /dev/null +++ b/test/test_k8s_io_api_core_v1_persistent_volume_claim_volume_source.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_api_core_v1_persistent_volume_claim_volume_source import K8sIoApiCoreV1PersistentVolumeClaimVolumeSource + + +class TestK8sIoApiCoreV1PersistentVolumeClaimVolumeSource(unittest.TestCase): + """ K8sIoApiCoreV1PersistentVolumeClaimVolumeSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1PersistentVolumeClaimVolumeSource(self): + """ + Test K8sIoApiCoreV1PersistentVolumeClaimVolumeSource + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_persistent_volume_claim_volume_source.K8sIoApiCoreV1PersistentVolumeClaimVolumeSource() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_affinity.py b/test/test_k8s_io_api_core_v1_pod_affinity.py similarity index 62% rename from test/test_v1_affinity.py rename to test/test_k8s_io_api_core_v1_pod_affinity.py index 76a9483a..1f041c72 100644 --- a/test/test_v1_affinity.py +++ b/test/test_k8s_io_api_core_v1_pod_affinity.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_affinity import V1Affinity +from kubevirt.models.k8s_io_api_core_v1_pod_affinity import K8sIoApiCoreV1PodAffinity -class TestV1Affinity(unittest.TestCase): - """ V1Affinity unit test stubs """ +class TestK8sIoApiCoreV1PodAffinity(unittest.TestCase): + """ K8sIoApiCoreV1PodAffinity unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1Affinity(self): + def testK8sIoApiCoreV1PodAffinity(self): """ - Test V1Affinity + Test K8sIoApiCoreV1PodAffinity """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_affinity.V1Affinity() + #model = kubevirt.models.k8s_io_api_core_v1_pod_affinity.K8sIoApiCoreV1PodAffinity() pass diff --git a/test/test_k8s_io_api_core_v1_pod_affinity_term.py b/test/test_k8s_io_api_core_v1_pod_affinity_term.py new file mode 100644 index 00000000..595e1ff4 --- /dev/null +++ b/test/test_k8s_io_api_core_v1_pod_affinity_term.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_api_core_v1_pod_affinity_term import K8sIoApiCoreV1PodAffinityTerm + + +class TestK8sIoApiCoreV1PodAffinityTerm(unittest.TestCase): + """ K8sIoApiCoreV1PodAffinityTerm unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1PodAffinityTerm(self): + """ + Test K8sIoApiCoreV1PodAffinityTerm + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_pod_affinity_term.K8sIoApiCoreV1PodAffinityTerm() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_api_core_v1_pod_anti_affinity.py b/test/test_k8s_io_api_core_v1_pod_anti_affinity.py new file mode 100644 index 00000000..6c2cba08 --- /dev/null +++ b/test/test_k8s_io_api_core_v1_pod_anti_affinity.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_api_core_v1_pod_anti_affinity import K8sIoApiCoreV1PodAntiAffinity + + +class TestK8sIoApiCoreV1PodAntiAffinity(unittest.TestCase): + """ K8sIoApiCoreV1PodAntiAffinity unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1PodAntiAffinity(self): + """ + Test K8sIoApiCoreV1PodAntiAffinity + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_pod_anti_affinity.K8sIoApiCoreV1PodAntiAffinity() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_api_core_v1_pod_dns_config.py b/test/test_k8s_io_api_core_v1_pod_dns_config.py new file mode 100644 index 00000000..a9bbdee4 --- /dev/null +++ b/test/test_k8s_io_api_core_v1_pod_dns_config.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_api_core_v1_pod_dns_config import K8sIoApiCoreV1PodDNSConfig + + +class TestK8sIoApiCoreV1PodDNSConfig(unittest.TestCase): + """ K8sIoApiCoreV1PodDNSConfig unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1PodDNSConfig(self): + """ + Test K8sIoApiCoreV1PodDNSConfig + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_pod_dns_config.K8sIoApiCoreV1PodDNSConfig() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_api_core_v1_pod_dns_config_option.py b/test/test_k8s_io_api_core_v1_pod_dns_config_option.py new file mode 100644 index 00000000..f0ba2a50 --- /dev/null +++ b/test/test_k8s_io_api_core_v1_pod_dns_config_option.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_api_core_v1_pod_dns_config_option import K8sIoApiCoreV1PodDNSConfigOption + + +class TestK8sIoApiCoreV1PodDNSConfigOption(unittest.TestCase): + """ K8sIoApiCoreV1PodDNSConfigOption unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1PodDNSConfigOption(self): + """ + Test K8sIoApiCoreV1PodDNSConfigOption + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_pod_dns_config_option.K8sIoApiCoreV1PodDNSConfigOption() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_api_core_v1_preferred_scheduling_term.py b/test/test_k8s_io_api_core_v1_preferred_scheduling_term.py new file mode 100644 index 00000000..dccd7d91 --- /dev/null +++ b/test/test_k8s_io_api_core_v1_preferred_scheduling_term.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_api_core_v1_preferred_scheduling_term import K8sIoApiCoreV1PreferredSchedulingTerm + + +class TestK8sIoApiCoreV1PreferredSchedulingTerm(unittest.TestCase): + """ K8sIoApiCoreV1PreferredSchedulingTerm unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1PreferredSchedulingTerm(self): + """ + Test K8sIoApiCoreV1PreferredSchedulingTerm + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_preferred_scheduling_term.K8sIoApiCoreV1PreferredSchedulingTerm() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_api_resource.py b/test/test_k8s_io_api_core_v1_resource_requirements.py similarity index 58% rename from test/test_v1_api_resource.py rename to test/test_k8s_io_api_core_v1_resource_requirements.py index e3f45ca7..c589a9bb 100644 --- a/test/test_v1_api_resource.py +++ b/test/test_k8s_io_api_core_v1_resource_requirements.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_api_resource import V1APIResource +from kubevirt.models.k8s_io_api_core_v1_resource_requirements import K8sIoApiCoreV1ResourceRequirements -class TestV1APIResource(unittest.TestCase): - """ V1APIResource unit test stubs """ +class TestK8sIoApiCoreV1ResourceRequirements(unittest.TestCase): + """ K8sIoApiCoreV1ResourceRequirements unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1APIResource(self): + def testK8sIoApiCoreV1ResourceRequirements(self): """ - Test V1APIResource + Test K8sIoApiCoreV1ResourceRequirements """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_api_resource.V1APIResource() + #model = kubevirt.models.k8s_io_api_core_v1_resource_requirements.K8sIoApiCoreV1ResourceRequirements() pass diff --git a/test/test_k8s_io_api_core_v1_tcp_socket_action.py b/test/test_k8s_io_api_core_v1_tcp_socket_action.py new file mode 100644 index 00000000..2bca1c94 --- /dev/null +++ b/test/test_k8s_io_api_core_v1_tcp_socket_action.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_api_core_v1_tcp_socket_action import K8sIoApiCoreV1TCPSocketAction + + +class TestK8sIoApiCoreV1TCPSocketAction(unittest.TestCase): + """ K8sIoApiCoreV1TCPSocketAction unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1TCPSocketAction(self): + """ + Test K8sIoApiCoreV1TCPSocketAction + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_tcp_socket_action.K8sIoApiCoreV1TCPSocketAction() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_resource_quantity.py b/test/test_k8s_io_api_core_v1_toleration.py similarity index 62% rename from test/test_resource_quantity.py rename to test/test_k8s_io_api_core_v1_toleration.py index 0bdfb38b..dbb05ed9 100644 --- a/test/test_resource_quantity.py +++ b/test/test_k8s_io_api_core_v1_toleration.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.resource_quantity import ResourceQuantity +from kubevirt.models.k8s_io_api_core_v1_toleration import K8sIoApiCoreV1Toleration -class TestResourceQuantity(unittest.TestCase): - """ ResourceQuantity unit test stubs """ +class TestK8sIoApiCoreV1Toleration(unittest.TestCase): + """ K8sIoApiCoreV1Toleration unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testResourceQuantity(self): + def testK8sIoApiCoreV1Toleration(self): """ - Test ResourceQuantity + Test K8sIoApiCoreV1Toleration """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.resource_quantity.ResourceQuantity() + #model = kubevirt.models.k8s_io_api_core_v1_toleration.K8sIoApiCoreV1Toleration() pass diff --git a/test/test_k8s_io_api_core_v1_typed_local_object_reference.py b/test/test_k8s_io_api_core_v1_typed_local_object_reference.py new file mode 100644 index 00000000..f039a2da --- /dev/null +++ b/test/test_k8s_io_api_core_v1_typed_local_object_reference.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_api_core_v1_typed_local_object_reference import K8sIoApiCoreV1TypedLocalObjectReference + + +class TestK8sIoApiCoreV1TypedLocalObjectReference(unittest.TestCase): + """ K8sIoApiCoreV1TypedLocalObjectReference unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1TypedLocalObjectReference(self): + """ + Test K8sIoApiCoreV1TypedLocalObjectReference + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_typed_local_object_reference.K8sIoApiCoreV1TypedLocalObjectReference() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_api_core_v1_weighted_pod_affinity_term.py b/test/test_k8s_io_api_core_v1_weighted_pod_affinity_term.py new file mode 100644 index 00000000..3543b26f --- /dev/null +++ b/test/test_k8s_io_api_core_v1_weighted_pod_affinity_term.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_api_core_v1_weighted_pod_affinity_term import K8sIoApiCoreV1WeightedPodAffinityTerm + + +class TestK8sIoApiCoreV1WeightedPodAffinityTerm(unittest.TestCase): + """ K8sIoApiCoreV1WeightedPodAffinityTerm unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1WeightedPodAffinityTerm(self): + """ + Test K8sIoApiCoreV1WeightedPodAffinityTerm + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_weighted_pod_affinity_term.K8sIoApiCoreV1WeightedPodAffinityTerm() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_apimachinery_pkg_api_resource_quantity.py b/test/test_k8s_io_apimachinery_pkg_api_resource_quantity.py new file mode 100644 index 00000000..2aff88a0 --- /dev/null +++ b/test/test_k8s_io_apimachinery_pkg_api_resource_quantity.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_apimachinery_pkg_api_resource_quantity import K8sIoApimachineryPkgApiResourceQuantity + + +class TestK8sIoApimachineryPkgApiResourceQuantity(unittest.TestCase): + """ K8sIoApimachineryPkgApiResourceQuantity unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApimachineryPkgApiResourceQuantity(self): + """ + Test K8sIoApimachineryPkgApiResourceQuantity + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_apimachinery_pkg_api_resource_quantity.K8sIoApimachineryPkgApiResourceQuantity() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_api_group.py b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_api_group.py new file mode 100644 index 00000000..6abc0b6c --- /dev/null +++ b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_api_group.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_api_group import K8sIoApimachineryPkgApisMetaV1APIGroup + + +class TestK8sIoApimachineryPkgApisMetaV1APIGroup(unittest.TestCase): + """ K8sIoApimachineryPkgApisMetaV1APIGroup unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApimachineryPkgApisMetaV1APIGroup(self): + """ + Test K8sIoApimachineryPkgApisMetaV1APIGroup + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_api_group.K8sIoApimachineryPkgApisMetaV1APIGroup() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list.py b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list.py new file mode 100644 index 00000000..231502a6 --- /dev/null +++ b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list import K8sIoApimachineryPkgApisMetaV1APIGroupList + + +class TestK8sIoApimachineryPkgApisMetaV1APIGroupList(unittest.TestCase): + """ K8sIoApimachineryPkgApisMetaV1APIGroupList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApimachineryPkgApisMetaV1APIGroupList(self): + """ + Test K8sIoApimachineryPkgApisMetaV1APIGroupList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list.K8sIoApimachineryPkgApisMetaV1APIGroupList() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_api_resource.py b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_api_resource.py new file mode 100644 index 00000000..b0a447b9 --- /dev/null +++ b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_api_resource.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_api_resource import K8sIoApimachineryPkgApisMetaV1APIResource + + +class TestK8sIoApimachineryPkgApisMetaV1APIResource(unittest.TestCase): + """ K8sIoApimachineryPkgApisMetaV1APIResource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApimachineryPkgApisMetaV1APIResource(self): + """ + Test K8sIoApimachineryPkgApisMetaV1APIResource + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_api_resource.K8sIoApimachineryPkgApisMetaV1APIResource() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_list.py b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_list.py new file mode 100644 index 00000000..b7e0a339 --- /dev/null +++ b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_list.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_list import K8sIoApimachineryPkgApisMetaV1APIResourceList + + +class TestK8sIoApimachineryPkgApisMetaV1APIResourceList(unittest.TestCase): + """ K8sIoApimachineryPkgApisMetaV1APIResourceList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApimachineryPkgApisMetaV1APIResourceList(self): + """ + Test K8sIoApimachineryPkgApisMetaV1APIResourceList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_list.K8sIoApimachineryPkgApisMetaV1APIResourceList() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_node_affinity.py b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_delete_options.py similarity index 54% rename from test/test_v1_node_affinity.py rename to test/test_k8s_io_apimachinery_pkg_apis_meta_v1_delete_options.py index 36218013..ae045ee6 100644 --- a/test/test_v1_node_affinity.py +++ b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_delete_options.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_node_affinity import V1NodeAffinity +from kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_delete_options import K8sIoApimachineryPkgApisMetaV1DeleteOptions -class TestV1NodeAffinity(unittest.TestCase): - """ V1NodeAffinity unit test stubs """ +class TestK8sIoApimachineryPkgApisMetaV1DeleteOptions(unittest.TestCase): + """ K8sIoApimachineryPkgApisMetaV1DeleteOptions unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1NodeAffinity(self): + def testK8sIoApimachineryPkgApisMetaV1DeleteOptions(self): """ - Test V1NodeAffinity + Test K8sIoApimachineryPkgApisMetaV1DeleteOptions """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_node_affinity.V1NodeAffinity() + #model = kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_delete_options.K8sIoApimachineryPkgApisMetaV1DeleteOptions() pass diff --git a/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_duration.py b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_duration.py new file mode 100644 index 00000000..37f88880 --- /dev/null +++ b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_duration.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_duration import K8sIoApimachineryPkgApisMetaV1Duration + + +class TestK8sIoApimachineryPkgApisMetaV1Duration(unittest.TestCase): + """ K8sIoApimachineryPkgApisMetaV1Duration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApimachineryPkgApisMetaV1Duration(self): + """ + Test K8sIoApimachineryPkgApisMetaV1Duration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_duration.K8sIoApimachineryPkgApisMetaV1Duration() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_fields_v1.py b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_fields_v1.py new file mode 100644 index 00000000..3d55f6d6 --- /dev/null +++ b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_fields_v1.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_fields_v1 import K8sIoApimachineryPkgApisMetaV1FieldsV1 + + +class TestK8sIoApimachineryPkgApisMetaV1FieldsV1(unittest.TestCase): + """ K8sIoApimachineryPkgApisMetaV1FieldsV1 unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApimachineryPkgApisMetaV1FieldsV1(self): + """ + Test K8sIoApimachineryPkgApisMetaV1FieldsV1 + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_fields_v1.K8sIoApimachineryPkgApisMetaV1FieldsV1() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_group_version_for_discovery.py b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_group_version_for_discovery.py new file mode 100644 index 00000000..2da13734 --- /dev/null +++ b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_group_version_for_discovery.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_group_version_for_discovery import K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery + + +class TestK8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery(unittest.TestCase): + """ K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery(self): + """ + Test K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_group_version_for_discovery.K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_node_selector.py b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_label_selector.py similarity index 54% rename from test/test_v1_node_selector.py rename to test/test_k8s_io_apimachinery_pkg_apis_meta_v1_label_selector.py index c1d027ee..ad02704e 100644 --- a/test/test_v1_node_selector.py +++ b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_label_selector.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_node_selector import V1NodeSelector +from kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_label_selector import K8sIoApimachineryPkgApisMetaV1LabelSelector -class TestV1NodeSelector(unittest.TestCase): - """ V1NodeSelector unit test stubs """ +class TestK8sIoApimachineryPkgApisMetaV1LabelSelector(unittest.TestCase): + """ K8sIoApimachineryPkgApisMetaV1LabelSelector unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1NodeSelector(self): + def testK8sIoApimachineryPkgApisMetaV1LabelSelector(self): """ - Test V1NodeSelector + Test K8sIoApimachineryPkgApisMetaV1LabelSelector """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_node_selector.V1NodeSelector() + #model = kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_label_selector.K8sIoApimachineryPkgApisMetaV1LabelSelector() pass diff --git a/test/test_v1_node_selector_requirement.py b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_requirement.py similarity index 51% rename from test/test_v1_node_selector_requirement.py rename to test/test_k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_requirement.py index 1c6b1736..9f2c1fc9 100644 --- a/test/test_v1_node_selector_requirement.py +++ b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_requirement.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_node_selector_requirement import V1NodeSelectorRequirement +from kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_requirement import K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement -class TestV1NodeSelectorRequirement(unittest.TestCase): - """ V1NodeSelectorRequirement unit test stubs """ +class TestK8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement(unittest.TestCase): + """ K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1NodeSelectorRequirement(self): + def testK8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement(self): """ - Test V1NodeSelectorRequirement + Test K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_node_selector_requirement.V1NodeSelectorRequirement() + #model = kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_requirement.K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement() pass diff --git a/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_list_meta.py b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_list_meta.py new file mode 100644 index 00000000..e80ae6ee --- /dev/null +++ b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_list_meta.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_list_meta import K8sIoApimachineryPkgApisMetaV1ListMeta + + +class TestK8sIoApimachineryPkgApisMetaV1ListMeta(unittest.TestCase): + """ K8sIoApimachineryPkgApisMetaV1ListMeta unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApimachineryPkgApisMetaV1ListMeta(self): + """ + Test K8sIoApimachineryPkgApisMetaV1ListMeta + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_list_meta.K8sIoApimachineryPkgApisMetaV1ListMeta() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry.py b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry.py new file mode 100644 index 00000000..389ef425 --- /dev/null +++ b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry import K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry + + +class TestK8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry(unittest.TestCase): + """ K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry(self): + """ + Test K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry.K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.py b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.py new file mode 100644 index 00000000..384b0388 --- /dev/null +++ b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_object_meta import K8sIoApimachineryPkgApisMetaV1ObjectMeta + + +class TestK8sIoApimachineryPkgApisMetaV1ObjectMeta(unittest.TestCase): + """ K8sIoApimachineryPkgApisMetaV1ObjectMeta unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApimachineryPkgApisMetaV1ObjectMeta(self): + """ + Test K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.K8sIoApimachineryPkgApisMetaV1ObjectMeta() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference.py b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference.py new file mode 100644 index 00000000..da87175b --- /dev/null +++ b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference import K8sIoApimachineryPkgApisMetaV1OwnerReference + + +class TestK8sIoApimachineryPkgApisMetaV1OwnerReference(unittest.TestCase): + """ K8sIoApimachineryPkgApisMetaV1OwnerReference unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApimachineryPkgApisMetaV1OwnerReference(self): + """ + Test K8sIoApimachineryPkgApisMetaV1OwnerReference + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference.K8sIoApimachineryPkgApisMetaV1OwnerReference() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_patch.py b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_patch.py new file mode 100644 index 00000000..67f83270 --- /dev/null +++ b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_patch.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_patch import K8sIoApimachineryPkgApisMetaV1Patch + + +class TestK8sIoApimachineryPkgApisMetaV1Patch(unittest.TestCase): + """ K8sIoApimachineryPkgApisMetaV1Patch unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApimachineryPkgApisMetaV1Patch(self): + """ + Test K8sIoApimachineryPkgApisMetaV1Patch + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_patch.K8sIoApimachineryPkgApisMetaV1Patch() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_preconditions.py b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_preconditions.py new file mode 100644 index 00000000..19f02970 --- /dev/null +++ b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_preconditions.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_preconditions import K8sIoApimachineryPkgApisMetaV1Preconditions + + +class TestK8sIoApimachineryPkgApisMetaV1Preconditions(unittest.TestCase): + """ K8sIoApimachineryPkgApisMetaV1Preconditions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApimachineryPkgApisMetaV1Preconditions(self): + """ + Test K8sIoApimachineryPkgApisMetaV1Preconditions + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_preconditions.K8sIoApimachineryPkgApisMetaV1Preconditions() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_label_selector.py b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_root_paths.py similarity index 59% rename from test/test_v1_label_selector.py rename to test/test_k8s_io_apimachinery_pkg_apis_meta_v1_root_paths.py index 2c9c7f69..968f8847 100644 --- a/test/test_v1_label_selector.py +++ b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_root_paths.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_label_selector import V1LabelSelector +from kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_root_paths import K8sIoApimachineryPkgApisMetaV1RootPaths -class TestV1LabelSelector(unittest.TestCase): - """ V1LabelSelector unit test stubs """ +class TestK8sIoApimachineryPkgApisMetaV1RootPaths(unittest.TestCase): + """ K8sIoApimachineryPkgApisMetaV1RootPaths unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1LabelSelector(self): + def testK8sIoApimachineryPkgApisMetaV1RootPaths(self): """ - Test V1LabelSelector + Test K8sIoApimachineryPkgApisMetaV1RootPaths """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_label_selector.V1LabelSelector() + #model = kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_root_paths.K8sIoApimachineryPkgApisMetaV1RootPaths() pass diff --git a/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr.py b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr.py new file mode 100644 index 00000000..b9ff8cab --- /dev/null +++ b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr import K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR + + +class TestK8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR(unittest.TestCase): + """ K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR(self): + """ + Test K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr.K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_status_details.py b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_status.py similarity index 59% rename from test/test_v1_status_details.py rename to test/test_k8s_io_apimachinery_pkg_apis_meta_v1_status.py index bbb30a17..9fcd70d1 100644 --- a/test/test_v1_status_details.py +++ b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_status.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_status_details import V1StatusDetails +from kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_status import K8sIoApimachineryPkgApisMetaV1Status -class TestV1StatusDetails(unittest.TestCase): - """ V1StatusDetails unit test stubs """ +class TestK8sIoApimachineryPkgApisMetaV1Status(unittest.TestCase): + """ K8sIoApimachineryPkgApisMetaV1Status unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1StatusDetails(self): + def testK8sIoApimachineryPkgApisMetaV1Status(self): """ - Test V1StatusDetails + Test K8sIoApimachineryPkgApisMetaV1Status """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_status_details.V1StatusDetails() + #model = kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_status.K8sIoApimachineryPkgApisMetaV1Status() pass diff --git a/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_status_cause.py b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_status_cause.py new file mode 100644 index 00000000..dc20871a --- /dev/null +++ b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_status_cause.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_status_cause import K8sIoApimachineryPkgApisMetaV1StatusCause + + +class TestK8sIoApimachineryPkgApisMetaV1StatusCause(unittest.TestCase): + """ K8sIoApimachineryPkgApisMetaV1StatusCause unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApimachineryPkgApisMetaV1StatusCause(self): + """ + Test K8sIoApimachineryPkgApisMetaV1StatusCause + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_status_cause.K8sIoApimachineryPkgApisMetaV1StatusCause() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_status_details.py b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_status_details.py new file mode 100644 index 00000000..604f01ba --- /dev/null +++ b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_status_details.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_status_details import K8sIoApimachineryPkgApisMetaV1StatusDetails + + +class TestK8sIoApimachineryPkgApisMetaV1StatusDetails(unittest.TestCase): + """ K8sIoApimachineryPkgApisMetaV1StatusDetails unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApimachineryPkgApisMetaV1StatusDetails(self): + """ + Test K8sIoApimachineryPkgApisMetaV1StatusDetails + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_status_details.K8sIoApimachineryPkgApisMetaV1StatusDetails() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_status_cause.py b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_time.py similarity index 58% rename from test/test_v1_status_cause.py rename to test/test_k8s_io_apimachinery_pkg_apis_meta_v1_time.py index 70e5ec26..fec09eac 100644 --- a/test/test_v1_status_cause.py +++ b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_time.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_status_cause import V1StatusCause +from kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_time import K8sIoApimachineryPkgApisMetaV1Time -class TestV1StatusCause(unittest.TestCase): - """ V1StatusCause unit test stubs """ +class TestK8sIoApimachineryPkgApisMetaV1Time(unittest.TestCase): + """ K8sIoApimachineryPkgApisMetaV1Time unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1StatusCause(self): + def testK8sIoApimachineryPkgApisMetaV1Time(self): """ - Test V1StatusCause + Test K8sIoApimachineryPkgApisMetaV1Time """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_status_cause.V1StatusCause() + #model = kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_time.K8sIoApimachineryPkgApisMetaV1Time() pass diff --git a/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_watch_event.py b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_watch_event.py new file mode 100644 index 00000000..efb2a003 --- /dev/null +++ b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_watch_event.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_watch_event import K8sIoApimachineryPkgApisMetaV1WatchEvent + + +class TestK8sIoApimachineryPkgApisMetaV1WatchEvent(unittest.TestCase): + """ K8sIoApimachineryPkgApisMetaV1WatchEvent unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApimachineryPkgApisMetaV1WatchEvent(self): + """ + Test K8sIoApimachineryPkgApisMetaV1WatchEvent + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_watch_event.K8sIoApimachineryPkgApisMetaV1WatchEvent() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_apimachinery_pkg_runtime_raw_extension.py b/test/test_k8s_io_apimachinery_pkg_runtime_raw_extension.py new file mode 100644 index 00000000..e750e8cb --- /dev/null +++ b/test/test_k8s_io_apimachinery_pkg_runtime_raw_extension.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_apimachinery_pkg_runtime_raw_extension import K8sIoApimachineryPkgRuntimeRawExtension + + +class TestK8sIoApimachineryPkgRuntimeRawExtension(unittest.TestCase): + """ K8sIoApimachineryPkgRuntimeRawExtension unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApimachineryPkgRuntimeRawExtension(self): + """ + Test K8sIoApimachineryPkgRuntimeRawExtension + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_apimachinery_pkg_runtime_raw_extension.K8sIoApimachineryPkgRuntimeRawExtension() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_apimachinery_pkg_util_intstr_int_or_string.py b/test/test_k8s_io_apimachinery_pkg_util_intstr_int_or_string.py new file mode 100644 index 00000000..900a9238 --- /dev/null +++ b/test/test_k8s_io_apimachinery_pkg_util_intstr_int_or_string.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_apimachinery_pkg_util_intstr_int_or_string import K8sIoApimachineryPkgUtilIntstrIntOrString + + +class TestK8sIoApimachineryPkgUtilIntstrIntOrString(unittest.TestCase): + """ K8sIoApimachineryPkgUtilIntstrIntOrString unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApimachineryPkgUtilIntstrIntOrString(self): + """ + Test K8sIoApimachineryPkgUtilIntstrIntOrString + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_apimachinery_pkg_util_intstr_int_or_string.K8sIoApimachineryPkgUtilIntstrIntOrString() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_api_group.py b/test/test_v1_api_group.py deleted file mode 100644 index 94c193bb..00000000 --- a/test/test_v1_api_group.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_api_group import V1APIGroup - - -class TestV1APIGroup(unittest.TestCase): - """ V1APIGroup unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1APIGroup(self): - """ - Test V1APIGroup - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_api_group.V1APIGroup() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_api_group_list.py b/test/test_v1_api_group_list.py deleted file mode 100644 index 3914bc3f..00000000 --- a/test/test_v1_api_group_list.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_api_group_list import V1APIGroupList - - -class TestV1APIGroupList(unittest.TestCase): - """ V1APIGroupList unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1APIGroupList(self): - """ - Test V1APIGroupList - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_api_group_list.V1APIGroupList() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_api_resource_list.py b/test/test_v1_api_resource_list.py deleted file mode 100644 index e22814f3..00000000 --- a/test/test_v1_api_resource_list.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_api_resource_list import V1APIResourceList - - -class TestV1APIResourceList(unittest.TestCase): - """ V1APIResourceList unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1APIResourceList(self): - """ - Test V1APIResourceList - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_api_resource_list.V1APIResourceList() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_delete_options.py b/test/test_v1_delete_options.py deleted file mode 100644 index 825de8b9..00000000 --- a/test/test_v1_delete_options.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_delete_options import V1DeleteOptions - - -class TestV1DeleteOptions(unittest.TestCase): - """ V1DeleteOptions unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1DeleteOptions(self): - """ - Test V1DeleteOptions - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_delete_options.V1DeleteOptions() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_duration.py b/test/test_v1_duration.py deleted file mode 100644 index c2e6063a..00000000 --- a/test/test_v1_duration.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_duration import V1Duration - - -class TestV1Duration(unittest.TestCase): - """ V1Duration unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Duration(self): - """ - Test V1Duration - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_duration.V1Duration() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_fields_v1.py b/test/test_v1_fields_v1.py deleted file mode 100644 index 485c4e10..00000000 --- a/test/test_v1_fields_v1.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_fields_v1 import V1FieldsV1 - - -class TestV1FieldsV1(unittest.TestCase): - """ V1FieldsV1 unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1FieldsV1(self): - """ - Test V1FieldsV1 - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_fields_v1.V1FieldsV1() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_group_version_for_discovery.py b/test/test_v1_group_version_for_discovery.py deleted file mode 100644 index c96ebbfd..00000000 --- a/test/test_v1_group_version_for_discovery.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_group_version_for_discovery import V1GroupVersionForDiscovery - - -class TestV1GroupVersionForDiscovery(unittest.TestCase): - """ V1GroupVersionForDiscovery unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1GroupVersionForDiscovery(self): - """ - Test V1GroupVersionForDiscovery - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_group_version_for_discovery.V1GroupVersionForDiscovery() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_http_get_action.py b/test/test_v1_http_get_action.py deleted file mode 100644 index de0ec3dc..00000000 --- a/test/test_v1_http_get_action.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_http_get_action import V1HTTPGetAction - - -class TestV1HTTPGetAction(unittest.TestCase): - """ V1HTTPGetAction unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1HTTPGetAction(self): - """ - Test V1HTTPGetAction - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_http_get_action.V1HTTPGetAction() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_http_header.py b/test/test_v1_http_header.py deleted file mode 100644 index 6f8aa691..00000000 --- a/test/test_v1_http_header.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_http_header import V1HTTPHeader - - -class TestV1HTTPHeader(unittest.TestCase): - """ V1HTTPHeader unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1HTTPHeader(self): - """ - Test V1HTTPHeader - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_http_header.V1HTTPHeader() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_label_selector_requirement.py b/test/test_v1_label_selector_requirement.py deleted file mode 100644 index 98e223a3..00000000 --- a/test/test_v1_label_selector_requirement.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_label_selector_requirement import V1LabelSelectorRequirement - - -class TestV1LabelSelectorRequirement(unittest.TestCase): - """ V1LabelSelectorRequirement unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1LabelSelectorRequirement(self): - """ - Test V1LabelSelectorRequirement - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_label_selector_requirement.V1LabelSelectorRequirement() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_list_meta.py b/test/test_v1_list_meta.py deleted file mode 100644 index 1480577e..00000000 --- a/test/test_v1_list_meta.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_list_meta import V1ListMeta - - -class TestV1ListMeta(unittest.TestCase): - """ V1ListMeta unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ListMeta(self): - """ - Test V1ListMeta - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_list_meta.V1ListMeta() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_local_object_reference.py b/test/test_v1_local_object_reference.py deleted file mode 100644 index 20857cd6..00000000 --- a/test/test_v1_local_object_reference.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_local_object_reference import V1LocalObjectReference - - -class TestV1LocalObjectReference(unittest.TestCase): - """ V1LocalObjectReference unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1LocalObjectReference(self): - """ - Test V1LocalObjectReference - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_local_object_reference.V1LocalObjectReference() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_managed_fields_entry.py b/test/test_v1_managed_fields_entry.py deleted file mode 100644 index c9fda412..00000000 --- a/test/test_v1_managed_fields_entry.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_managed_fields_entry import V1ManagedFieldsEntry - - -class TestV1ManagedFieldsEntry(unittest.TestCase): - """ V1ManagedFieldsEntry unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ManagedFieldsEntry(self): - """ - Test V1ManagedFieldsEntry - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_managed_fields_entry.V1ManagedFieldsEntry() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_node_selector_term.py b/test/test_v1_node_selector_term.py deleted file mode 100644 index 7f9d6bd3..00000000 --- a/test/test_v1_node_selector_term.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_node_selector_term import V1NodeSelectorTerm - - -class TestV1NodeSelectorTerm(unittest.TestCase): - """ V1NodeSelectorTerm unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NodeSelectorTerm(self): - """ - Test V1NodeSelectorTerm - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_node_selector_term.V1NodeSelectorTerm() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_object_meta.py b/test/test_v1_object_meta.py deleted file mode 100644 index 2bdb42d7..00000000 --- a/test/test_v1_object_meta.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_object_meta import V1ObjectMeta - - -class TestV1ObjectMeta(unittest.TestCase): - """ V1ObjectMeta unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ObjectMeta(self): - """ - Test V1ObjectMeta - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_object_meta.V1ObjectMeta() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_owner_reference.py b/test/test_v1_owner_reference.py deleted file mode 100644 index 687f475c..00000000 --- a/test/test_v1_owner_reference.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_owner_reference import V1OwnerReference - - -class TestV1OwnerReference(unittest.TestCase): - """ V1OwnerReference unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1OwnerReference(self): - """ - Test V1OwnerReference - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_owner_reference.V1OwnerReference() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_patch.py b/test/test_v1_patch.py deleted file mode 100644 index 1eaee40e..00000000 --- a/test/test_v1_patch.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_patch import V1Patch - - -class TestV1Patch(unittest.TestCase): - """ V1Patch unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Patch(self): - """ - Test V1Patch - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_patch.V1Patch() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_persistent_volume_claim.py b/test/test_v1_persistent_volume_claim.py deleted file mode 100644 index a2d6fd3c..00000000 --- a/test/test_v1_persistent_volume_claim.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_persistent_volume_claim import V1PersistentVolumeClaim - - -class TestV1PersistentVolumeClaim(unittest.TestCase): - """ V1PersistentVolumeClaim unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PersistentVolumeClaim(self): - """ - Test V1PersistentVolumeClaim - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_persistent_volume_claim.V1PersistentVolumeClaim() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_persistent_volume_claim_condition.py b/test/test_v1_persistent_volume_claim_condition.py deleted file mode 100644 index b53a6498..00000000 --- a/test/test_v1_persistent_volume_claim_condition.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_persistent_volume_claim_condition import V1PersistentVolumeClaimCondition - - -class TestV1PersistentVolumeClaimCondition(unittest.TestCase): - """ V1PersistentVolumeClaimCondition unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PersistentVolumeClaimCondition(self): - """ - Test V1PersistentVolumeClaimCondition - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_persistent_volume_claim_condition.V1PersistentVolumeClaimCondition() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_persistent_volume_claim_spec.py b/test/test_v1_persistent_volume_claim_spec.py deleted file mode 100644 index faf9b165..00000000 --- a/test/test_v1_persistent_volume_claim_spec.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec - - -class TestV1PersistentVolumeClaimSpec(unittest.TestCase): - """ V1PersistentVolumeClaimSpec unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PersistentVolumeClaimSpec(self): - """ - Test V1PersistentVolumeClaimSpec - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_persistent_volume_claim_spec.V1PersistentVolumeClaimSpec() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_persistent_volume_claim_status.py b/test/test_v1_persistent_volume_claim_status.py deleted file mode 100644 index 9b204892..00000000 --- a/test/test_v1_persistent_volume_claim_status.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_persistent_volume_claim_status import V1PersistentVolumeClaimStatus - - -class TestV1PersistentVolumeClaimStatus(unittest.TestCase): - """ V1PersistentVolumeClaimStatus unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PersistentVolumeClaimStatus(self): - """ - Test V1PersistentVolumeClaimStatus - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_persistent_volume_claim_status.V1PersistentVolumeClaimStatus() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_pod_affinity_term.py b/test/test_v1_pod_affinity_term.py deleted file mode 100644 index c9b33603..00000000 --- a/test/test_v1_pod_affinity_term.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_pod_affinity_term import V1PodAffinityTerm - - -class TestV1PodAffinityTerm(unittest.TestCase): - """ V1PodAffinityTerm unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PodAffinityTerm(self): - """ - Test V1PodAffinityTerm - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_pod_affinity_term.V1PodAffinityTerm() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_pod_anti_affinity.py b/test/test_v1_pod_anti_affinity.py deleted file mode 100644 index 48777f3f..00000000 --- a/test/test_v1_pod_anti_affinity.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_pod_anti_affinity import V1PodAntiAffinity - - -class TestV1PodAntiAffinity(unittest.TestCase): - """ V1PodAntiAffinity unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PodAntiAffinity(self): - """ - Test V1PodAntiAffinity - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_pod_anti_affinity.V1PodAntiAffinity() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_pod_dns_config.py b/test/test_v1_pod_dns_config.py deleted file mode 100644 index 3e48e53a..00000000 --- a/test/test_v1_pod_dns_config.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_pod_dns_config import V1PodDNSConfig - - -class TestV1PodDNSConfig(unittest.TestCase): - """ V1PodDNSConfig unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PodDNSConfig(self): - """ - Test V1PodDNSConfig - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_pod_dns_config.V1PodDNSConfig() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_pod_dns_config_option.py b/test/test_v1_pod_dns_config_option.py deleted file mode 100644 index 5e6541f5..00000000 --- a/test/test_v1_pod_dns_config_option.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_pod_dns_config_option import V1PodDNSConfigOption - - -class TestV1PodDNSConfigOption(unittest.TestCase): - """ V1PodDNSConfigOption unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PodDNSConfigOption(self): - """ - Test V1PodDNSConfigOption - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_pod_dns_config_option.V1PodDNSConfigOption() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_preconditions.py b/test/test_v1_preconditions.py deleted file mode 100644 index 7ec9a09d..00000000 --- a/test/test_v1_preconditions.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_preconditions import V1Preconditions - - -class TestV1Preconditions(unittest.TestCase): - """ V1Preconditions unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Preconditions(self): - """ - Test V1Preconditions - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_preconditions.V1Preconditions() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_preferred_scheduling_term.py b/test/test_v1_preferred_scheduling_term.py deleted file mode 100644 index 612e0269..00000000 --- a/test/test_v1_preferred_scheduling_term.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_preferred_scheduling_term import V1PreferredSchedulingTerm - - -class TestV1PreferredSchedulingTerm(unittest.TestCase): - """ V1PreferredSchedulingTerm unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PreferredSchedulingTerm(self): - """ - Test V1PreferredSchedulingTerm - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_preferred_scheduling_term.V1PreferredSchedulingTerm() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_root_paths.py b/test/test_v1_root_paths.py deleted file mode 100644 index 035e3359..00000000 --- a/test/test_v1_root_paths.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_root_paths import V1RootPaths - - -class TestV1RootPaths(unittest.TestCase): - """ V1RootPaths unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1RootPaths(self): - """ - Test V1RootPaths - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_root_paths.V1RootPaths() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_server_address_by_client_cidr.py b/test/test_v1_server_address_by_client_cidr.py deleted file mode 100644 index 9a07faba..00000000 --- a/test/test_v1_server_address_by_client_cidr.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR - - -class TestV1ServerAddressByClientCIDR(unittest.TestCase): - """ V1ServerAddressByClientCIDR unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ServerAddressByClientCIDR(self): - """ - Test V1ServerAddressByClientCIDR - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_server_address_by_client_cidr.V1ServerAddressByClientCIDR() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_status.py b/test/test_v1_status.py deleted file mode 100644 index 997da94d..00000000 --- a/test/test_v1_status.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_status import V1Status - - -class TestV1Status(unittest.TestCase): - """ V1Status unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Status(self): - """ - Test V1Status - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_status.V1Status() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_tcp_socket_action.py b/test/test_v1_tcp_socket_action.py deleted file mode 100644 index 47ecff1a..00000000 --- a/test/test_v1_tcp_socket_action.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_tcp_socket_action import V1TCPSocketAction - - -class TestV1TCPSocketAction(unittest.TestCase): - """ V1TCPSocketAction unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1TCPSocketAction(self): - """ - Test V1TCPSocketAction - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_tcp_socket_action.V1TCPSocketAction() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_time.py b/test/test_v1_time.py deleted file mode 100644 index ee9f65ab..00000000 --- a/test/test_v1_time.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_time import V1Time - - -class TestV1Time(unittest.TestCase): - """ V1Time unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Time(self): - """ - Test V1Time - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_time.V1Time() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_toleration.py b/test/test_v1_toleration.py deleted file mode 100644 index f2432d5d..00000000 --- a/test/test_v1_toleration.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_toleration import V1Toleration - - -class TestV1Toleration(unittest.TestCase): - """ V1Toleration unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Toleration(self): - """ - Test V1Toleration - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_toleration.V1Toleration() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_typed_local_object_reference.py b/test/test_v1_typed_local_object_reference.py deleted file mode 100644 index 11ea7c71..00000000 --- a/test/test_v1_typed_local_object_reference.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_typed_local_object_reference import V1TypedLocalObjectReference - - -class TestV1TypedLocalObjectReference(unittest.TestCase): - """ V1TypedLocalObjectReference unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1TypedLocalObjectReference(self): - """ - Test V1TypedLocalObjectReference - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_typed_local_object_reference.V1TypedLocalObjectReference() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_watch_event.py b/test/test_v1_watch_event.py deleted file mode 100644 index e020f81c..00000000 --- a/test/test_v1_watch_event.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_watch_event import V1WatchEvent - - -class TestV1WatchEvent(unittest.TestCase): - """ V1WatchEvent unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1WatchEvent(self): - """ - Test V1WatchEvent - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_watch_event.V1WatchEvent() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_weighted_pod_affinity_term.py b/test/test_v1_weighted_pod_affinity_term.py deleted file mode 100644 index 56d004eb..00000000 --- a/test/test_v1_weighted_pod_affinity_term.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm - - -class TestV1WeightedPodAffinityTerm(unittest.TestCase): - """ V1WeightedPodAffinityTerm unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1WeightedPodAffinityTerm(self): - """ - Test V1WeightedPodAffinityTerm - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_weighted_pod_affinity_term.V1WeightedPodAffinityTerm() - pass - - -if __name__ == '__main__': - unittest.main() From 0c8823e27d41f9c95e3131914598002bcea757e2 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 18 Sep 2020 14:26:59 +0000 Subject: [PATCH 142/521] Client Python update by Travis Build 15119 --- README.md | 3 +- docs/V1FeatureKVM.md | 10 +++ docs/V1Features.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_feature_kvm.py | 125 ++++++++++++++++++++++++++++++ kubevirt/models/v1_features.py | 30 ++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_feature_kvm.py | 44 +++++++++++ 14 files changed, 221 insertions(+), 7 deletions(-) create mode 100644 docs/V1FeatureKVM.md create mode 100644 kubevirt/models/v1_feature_kvm.py create mode 100644 test/test_v1_feature_kvm.py diff --git a/README.md b/README.md index 7f2f8373..92fd35c9 100644 --- a/README.md +++ b/README.md @@ -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: v0.33.0-rc.0-112-g2152ea2e +- Package version: v0.33.0-rc.0-147-gbc0ddc2a - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -264,6 +264,7 @@ Class | Method | HTTP request | Description - [V1EphemeralVolumeSource](docs/V1EphemeralVolumeSource.md) - [V1FeatureAPIC](docs/V1FeatureAPIC.md) - [V1FeatureHyperv](docs/V1FeatureHyperv.md) + - [V1FeatureKVM](docs/V1FeatureKVM.md) - [V1FeatureSpinlocks](docs/V1FeatureSpinlocks.md) - [V1FeatureState](docs/V1FeatureState.md) - [V1FeatureVendorID](docs/V1FeatureVendorID.md) diff --git a/docs/V1FeatureKVM.md b/docs/V1FeatureKVM.md new file mode 100644 index 00000000..50d07f90 --- /dev/null +++ b/docs/V1FeatureKVM.md @@ -0,0 +1,10 @@ +# V1FeatureKVM + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hidden** | **bool** | Hide the KVM hypervisor from standard MSR based discovery. Defaults to false | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Features.md b/docs/V1Features.md index 6f563c6a..1e6dac8b 100644 --- a/docs/V1Features.md +++ b/docs/V1Features.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **acpi** | [**V1FeatureState**](V1FeatureState.md) | ACPI enables/disables ACPI insidejsondata guest. Defaults to enabled. | [optional] **apic** | [**V1FeatureAPIC**](V1FeatureAPIC.md) | Defaults to the machine type setting. | [optional] **hyperv** | [**V1FeatureHyperv**](V1FeatureHyperv.md) | Defaults to the machine type setting. | [optional] +**kvm** | [**V1FeatureKVM**](V1FeatureKVM.md) | Configure how KVM presence is exposed to the guest. | [optional] **smm** | [**V1FeatureState**](V1FeatureState.md) | SMM enables/disables System Management Mode. TSEG not yet implemented. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 9a228ab7..f4b88f3e 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.33.0-rc.0-112-g2152ea2e" + release_note="Auto-generated client v0.33.0-rc.0-147-gbc0ddc2a" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index e11b7082..ded8aa95 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -254,6 +254,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_feature_hyperv.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_feature_hyperv.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1FeatureHyperv.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_feature_kvm.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_feature_kvm.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1FeatureKVM.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_feature_spinlocks.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_feature_spinlocks.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1FeatureSpinlocks.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 13660930..b8e72067 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -91,6 +91,7 @@ from .models.v1_ephemeral_volume_source import V1EphemeralVolumeSource from .models.v1_feature_apic import V1FeatureAPIC from .models.v1_feature_hyperv import V1FeatureHyperv +from .models.v1_feature_kvm import V1FeatureKVM from .models.v1_feature_spinlocks import V1FeatureSpinlocks from .models.v1_feature_state import V1FeatureState from .models.v1_feature_vendor_id import V1FeatureVendorID diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index e49edadd..1418ef2e 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.33.0-rc.0-112-g2152ea2e/python' + self.user_agent = 'Swagger-Codegen/v0.33.0-rc.0-147-gbc0ddc2a/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c1b0dd14..f6f47539 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.33.0-rc.0-112-g2152ea2e".\ + "SDK Package Version: v0.33.0-rc.0-147-gbc0ddc2a".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index d8a79a40..7e3ffb21 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -91,6 +91,7 @@ from .v1_ephemeral_volume_source import V1EphemeralVolumeSource from .v1_feature_apic import V1FeatureAPIC from .v1_feature_hyperv import V1FeatureHyperv +from .v1_feature_kvm import V1FeatureKVM from .v1_feature_spinlocks import V1FeatureSpinlocks from .v1_feature_state import V1FeatureState from .v1_feature_vendor_id import V1FeatureVendorID diff --git a/kubevirt/models/v1_feature_kvm.py b/kubevirt/models/v1_feature_kvm.py new file mode 100644 index 00000000..34225a12 --- /dev/null +++ b/kubevirt/models/v1_feature_kvm.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1FeatureKVM(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'hidden': 'bool' + } + + attribute_map = { + 'hidden': 'hidden' + } + + def __init__(self, hidden=None): + """ + V1FeatureKVM - a model defined in Swagger + """ + + self._hidden = None + + if hidden is not None: + self.hidden = hidden + + @property + def hidden(self): + """ + Gets the hidden of this V1FeatureKVM. + Hide the KVM hypervisor from standard MSR based discovery. Defaults to false + + :return: The hidden of this V1FeatureKVM. + :rtype: bool + """ + return self._hidden + + @hidden.setter + def hidden(self, hidden): + """ + Sets the hidden of this V1FeatureKVM. + Hide the KVM hypervisor from standard MSR based discovery. Defaults to false + + :param hidden: The hidden of this V1FeatureKVM. + :type: bool + """ + + self._hidden = hidden + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1FeatureKVM): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_features.py b/kubevirt/models/v1_features.py index c19dd67c..ccd9cc45 100644 --- a/kubevirt/models/v1_features.py +++ b/kubevirt/models/v1_features.py @@ -34,6 +34,7 @@ class V1Features(object): 'acpi': 'V1FeatureState', 'apic': 'V1FeatureAPIC', 'hyperv': 'V1FeatureHyperv', + 'kvm': 'V1FeatureKVM', 'smm': 'V1FeatureState' } @@ -41,10 +42,11 @@ class V1Features(object): 'acpi': 'acpi', 'apic': 'apic', 'hyperv': 'hyperv', + 'kvm': 'kvm', 'smm': 'smm' } - def __init__(self, acpi=None, apic=None, hyperv=None, smm=None): + def __init__(self, acpi=None, apic=None, hyperv=None, kvm=None, smm=None): """ V1Features - a model defined in Swagger """ @@ -52,6 +54,7 @@ def __init__(self, acpi=None, apic=None, hyperv=None, smm=None): self._acpi = None self._apic = None self._hyperv = None + self._kvm = None self._smm = None if acpi is not None: @@ -60,6 +63,8 @@ def __init__(self, acpi=None, apic=None, hyperv=None, smm=None): self.apic = apic if hyperv is not None: self.hyperv = hyperv + if kvm is not None: + self.kvm = kvm if smm is not None: self.smm = smm @@ -132,6 +137,29 @@ def hyperv(self, hyperv): self._hyperv = hyperv + @property + def kvm(self): + """ + Gets the kvm of this V1Features. + Configure how KVM presence is exposed to the guest. + + :return: The kvm of this V1Features. + :rtype: V1FeatureKVM + """ + return self._kvm + + @kvm.setter + def kvm(self, kvm): + """ + Sets the kvm of this V1Features. + Configure how KVM presence is exposed to the guest. + + :param kvm: The kvm of this V1Features. + :type: V1FeatureKVM + """ + + self._kvm = kvm + @property def smm(self): """ diff --git a/setup.py b/setup.py index f7252398..9627b781 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.33.0-rc.0-112-g2152ea2e" +VERSION = "v0.33.0-rc.0-147-gbc0ddc2a" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 934e31a8..ef5f4c5a 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.33.0-rc.0-112-g2152ea2e" +"packageVersion": "v0.33.0-rc.0-147-gbc0ddc2a" } diff --git a/test/test_v1_feature_kvm.py b/test/test_v1_feature_kvm.py new file mode 100644 index 00000000..a34f9d34 --- /dev/null +++ b/test/test_v1_feature_kvm.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_feature_kvm import V1FeatureKVM + + +class TestV1FeatureKVM(unittest.TestCase): + """ V1FeatureKVM unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1FeatureKVM(self): + """ + Test V1FeatureKVM + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_feature_kvm.V1FeatureKVM() + pass + + +if __name__ == '__main__': + unittest.main() From 1600c918d9c450445c45f6240fe72906054b2a98 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sat, 19 Sep 2020 13:19:07 +0000 Subject: [PATCH 143/521] Client Python update by Travis Build 15132 --- README.md | 4 +- docs/V1Devices.md | 1 + docs/V1Filesystem.md | 11 ++ docs/V1FilesystemVirtiofs.md | 9 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 + kubevirt/__init__.py | 2 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 + kubevirt/models/v1_devices.py | 30 ++++- kubevirt/models/v1_filesystem.py | 153 ++++++++++++++++++++++ kubevirt/models/v1_filesystem_virtiofs.py | 99 ++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_filesystem.py | 44 +++++++ test/test_v1_filesystem_virtiofs.py | 44 +++++++ 17 files changed, 408 insertions(+), 7 deletions(-) create mode 100644 docs/V1Filesystem.md create mode 100644 docs/V1FilesystemVirtiofs.md create mode 100644 kubevirt/models/v1_filesystem.py create mode 100644 kubevirt/models/v1_filesystem_virtiofs.py create mode 100644 test/test_v1_filesystem.py create mode 100644 test/test_v1_filesystem_virtiofs.py diff --git a/README.md b/README.md index 92fd35c9..006ea6a5 100644 --- a/README.md +++ b/README.md @@ -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: v0.33.0-rc.0-147-gbc0ddc2a +- Package version: v0.33.0-rc.0-172-gbe9ad38a - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -269,6 +269,8 @@ Class | Method | HTTP request | Description - [V1FeatureState](docs/V1FeatureState.md) - [V1FeatureVendorID](docs/V1FeatureVendorID.md) - [V1Features](docs/V1Features.md) + - [V1Filesystem](docs/V1Filesystem.md) + - [V1FilesystemVirtiofs](docs/V1FilesystemVirtiofs.md) - [V1Firmware](docs/V1Firmware.md) - [V1FloppyTarget](docs/V1FloppyTarget.md) - [V1GPU](docs/V1GPU.md) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index 027a7205..641ad4ef 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **autoattach_serial_console** | **bool** | Whether to attach the default serial console or not. Serial console access will not be available if set to false. Defaults to true. | [optional] **block_multi_queue** | **bool** | Whether or not to enable virtio multi-queue for block devices | [optional] **disks** | [**list[V1Disk]**](V1Disk.md) | Disks describes disks, cdroms, floppy and luns which are connected to the vmi. | [optional] +**filesystems** | [**list[V1Filesystem]**](V1Filesystem.md) | Filesystems describes filesystem which is connected to the vmi. | [optional] **gpus** | [**list[V1GPU]**](V1GPU.md) | Whether to attach a GPU device to the vmi. | [optional] **inputs** | [**list[V1Input]**](V1Input.md) | Inputs describe input devices | [optional] **interfaces** | [**list[V1Interface]**](V1Interface.md) | Interfaces describe network interfaces which are added to the vmi. | [optional] diff --git a/docs/V1Filesystem.md b/docs/V1Filesystem.md new file mode 100644 index 00000000..b128105c --- /dev/null +++ b/docs/V1Filesystem.md @@ -0,0 +1,11 @@ +# V1Filesystem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name is the device name | +**virtiofs** | [**V1FilesystemVirtiofs**](V1FilesystemVirtiofs.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1FilesystemVirtiofs.md b/docs/V1FilesystemVirtiofs.md new file mode 100644 index 00000000..ff55fa06 --- /dev/null +++ b/docs/V1FilesystemVirtiofs.md @@ -0,0 +1,9 @@ +# V1FilesystemVirtiofs + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index f4b88f3e..6fdc588e 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.33.0-rc.0-147-gbc0ddc2a" + release_note="Auto-generated client v0.33.0-rc.0-172-gbe9ad38a" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index ded8aa95..5126dcdb 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -269,6 +269,12 @@ 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_features.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_features.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Features.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_filesystem.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_filesystem.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Filesystem.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_filesystem_virtiofs.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_filesystem_virtiofs.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1FilesystemVirtiofs.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_firmware.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_firmware.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Firmware.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index b8e72067..064bc558 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -96,6 +96,8 @@ from .models.v1_feature_state import V1FeatureState from .models.v1_feature_vendor_id import V1FeatureVendorID from .models.v1_features import V1Features +from .models.v1_filesystem import V1Filesystem +from .models.v1_filesystem_virtiofs import V1FilesystemVirtiofs from .models.v1_firmware import V1Firmware from .models.v1_floppy_target import V1FloppyTarget from .models.v1_gpu import V1GPU diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 1418ef2e..961d7fc6 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.33.0-rc.0-147-gbc0ddc2a/python' + self.user_agent = 'Swagger-Codegen/v0.33.0-rc.0-172-gbe9ad38a/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index f6f47539..39c0e67a 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.33.0-rc.0-147-gbc0ddc2a".\ + "SDK Package Version: v0.33.0-rc.0-172-gbe9ad38a".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 7e3ffb21..34887cfd 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -96,6 +96,8 @@ from .v1_feature_state import V1FeatureState from .v1_feature_vendor_id import V1FeatureVendorID from .v1_features import V1Features +from .v1_filesystem import V1Filesystem +from .v1_filesystem_virtiofs import V1FilesystemVirtiofs from .v1_firmware import V1Firmware from .v1_floppy_target import V1FloppyTarget from .v1_gpu import V1GPU diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index e6958905..afc48eae 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -37,6 +37,7 @@ class V1Devices(object): 'autoattach_serial_console': 'bool', 'block_multi_queue': 'bool', 'disks': 'list[V1Disk]', + 'filesystems': 'list[V1Filesystem]', 'gpus': 'list[V1GPU]', 'inputs': 'list[V1Input]', 'interfaces': 'list[V1Interface]', @@ -52,6 +53,7 @@ class V1Devices(object): 'autoattach_serial_console': 'autoattachSerialConsole', 'block_multi_queue': 'blockMultiQueue', 'disks': 'disks', + 'filesystems': 'filesystems', 'gpus': 'gpus', 'inputs': 'inputs', 'interfaces': 'interfaces', @@ -60,7 +62,7 @@ class V1Devices(object): 'watchdog': 'watchdog' } - def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, autoattach_pod_interface=None, autoattach_serial_console=None, block_multi_queue=None, disks=None, gpus=None, inputs=None, interfaces=None, network_interface_multiqueue=None, rng=None, watchdog=None): + def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, autoattach_pod_interface=None, autoattach_serial_console=None, block_multi_queue=None, disks=None, filesystems=None, gpus=None, inputs=None, interfaces=None, network_interface_multiqueue=None, rng=None, watchdog=None): """ V1Devices - a model defined in Swagger """ @@ -71,6 +73,7 @@ def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, self._autoattach_serial_console = None self._block_multi_queue = None self._disks = None + self._filesystems = None self._gpus = None self._inputs = None self._interfaces = None @@ -90,6 +93,8 @@ def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, self.block_multi_queue = block_multi_queue if disks is not None: self.disks = disks + if filesystems is not None: + self.filesystems = filesystems if gpus is not None: self.gpus = gpus if inputs is not None: @@ -241,6 +246,29 @@ def disks(self, disks): self._disks = disks + @property + def filesystems(self): + """ + Gets the filesystems of this V1Devices. + Filesystems describes filesystem which is connected to the vmi. + + :return: The filesystems of this V1Devices. + :rtype: list[V1Filesystem] + """ + return self._filesystems + + @filesystems.setter + def filesystems(self, filesystems): + """ + Sets the filesystems of this V1Devices. + Filesystems describes filesystem which is connected to the vmi. + + :param filesystems: The filesystems of this V1Devices. + :type: list[V1Filesystem] + """ + + self._filesystems = filesystems + @property def gpus(self): """ diff --git a/kubevirt/models/v1_filesystem.py b/kubevirt/models/v1_filesystem.py new file mode 100644 index 00000000..964a38e6 --- /dev/null +++ b/kubevirt/models/v1_filesystem.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Filesystem(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'virtiofs': 'V1FilesystemVirtiofs' + } + + attribute_map = { + 'name': 'name', + 'virtiofs': 'virtiofs' + } + + def __init__(self, name=None, virtiofs=None): + """ + V1Filesystem - a model defined in Swagger + """ + + self._name = None + self._virtiofs = None + + self.name = name + self.virtiofs = virtiofs + + @property + def name(self): + """ + Gets the name of this V1Filesystem. + Name is the device name + + :return: The name of this V1Filesystem. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1Filesystem. + Name is the device name + + :param name: The name of this V1Filesystem. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def virtiofs(self): + """ + Gets the virtiofs of this V1Filesystem. + + :return: The virtiofs of this V1Filesystem. + :rtype: V1FilesystemVirtiofs + """ + return self._virtiofs + + @virtiofs.setter + def virtiofs(self, virtiofs): + """ + Sets the virtiofs of this V1Filesystem. + + :param virtiofs: The virtiofs of this V1Filesystem. + :type: V1FilesystemVirtiofs + """ + if virtiofs is None: + raise ValueError("Invalid value for `virtiofs`, must not be `None`") + + self._virtiofs = virtiofs + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1Filesystem): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_filesystem_virtiofs.py b/kubevirt/models/v1_filesystem_virtiofs.py new file mode 100644 index 00000000..ae70e42c --- /dev/null +++ b/kubevirt/models/v1_filesystem_virtiofs.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1FilesystemVirtiofs(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1FilesystemVirtiofs - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1FilesystemVirtiofs): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 9627b781..cff8a25c 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.33.0-rc.0-147-gbc0ddc2a" +VERSION = "v0.33.0-rc.0-172-gbe9ad38a" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index ef5f4c5a..2235db75 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.33.0-rc.0-147-gbc0ddc2a" +"packageVersion": "v0.33.0-rc.0-172-gbe9ad38a" } diff --git a/test/test_v1_filesystem.py b/test/test_v1_filesystem.py new file mode 100644 index 00000000..434144e9 --- /dev/null +++ b/test/test_v1_filesystem.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_filesystem import V1Filesystem + + +class TestV1Filesystem(unittest.TestCase): + """ V1Filesystem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Filesystem(self): + """ + Test V1Filesystem + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_filesystem.V1Filesystem() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_filesystem_virtiofs.py b/test/test_v1_filesystem_virtiofs.py new file mode 100644 index 00000000..20a11f5d --- /dev/null +++ b/test/test_v1_filesystem_virtiofs.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_filesystem_virtiofs import V1FilesystemVirtiofs + + +class TestV1FilesystemVirtiofs(unittest.TestCase): + """ V1FilesystemVirtiofs unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1FilesystemVirtiofs(self): + """ + Test V1FilesystemVirtiofs + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_filesystem_virtiofs.V1FilesystemVirtiofs() + pass + + +if __name__ == '__main__': + unittest.main() From 0fc1440bfdcaff08617be43bf80ce117dd828048 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 21 Sep 2020 03:54:12 +0000 Subject: [PATCH 144/521] Client Python update by Travis Build 15135 --- README.md | 4 +- docs/V1ComponentConfig.md | 10 ++ docs/V1KubeVirtSpec.md | 2 + docs/V1NodePlacement.md | 12 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 + kubevirt/__init__.py | 2 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 + kubevirt/models/v1_component_config.py | 125 +++++++++++++++++ kubevirt/models/v1_kube_virt_spec.py | 62 ++++++++- kubevirt/models/v1_node_placement.py | 181 +++++++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_component_config.py | 44 ++++++ test/test_v1_node_placement.py | 44 ++++++ 17 files changed, 495 insertions(+), 9 deletions(-) create mode 100644 docs/V1ComponentConfig.md create mode 100644 docs/V1NodePlacement.md create mode 100644 kubevirt/models/v1_component_config.py create mode 100644 kubevirt/models/v1_node_placement.py create mode 100644 test/test_v1_component_config.py create mode 100644 test/test_v1_node_placement.py diff --git a/README.md b/README.md index 006ea6a5..d812d810 100644 --- a/README.md +++ b/README.md @@ -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: v0.33.0-rc.0-172-gbe9ad38a +- Package version: v0.33.0-rc.0-194-ge3610ed1 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -247,6 +247,7 @@ Class | Method | HTTP request | Description - [V1ClockOffsetUTC](docs/V1ClockOffsetUTC.md) - [V1CloudInitConfigDriveSource](docs/V1CloudInitConfigDriveSource.md) - [V1CloudInitNoCloudSource](docs/V1CloudInitNoCloudSource.md) + - [V1ComponentConfig](docs/V1ComponentConfig.md) - [V1ConfigMapVolumeSource](docs/V1ConfigMapVolumeSource.md) - [V1ContainerDiskSource](docs/V1ContainerDiskSource.md) - [V1CustomizeComponents](docs/V1CustomizeComponents.md) @@ -301,6 +302,7 @@ Class | Method | HTTP request | Description - [V1MultusNetwork](docs/V1MultusNetwork.md) - [V1Network](docs/V1Network.md) - [V1NetworkConfiguration](docs/V1NetworkConfiguration.md) + - [V1NodePlacement](docs/V1NodePlacement.md) - [V1PITTimer](docs/V1PITTimer.md) - [V1PodNetwork](docs/V1PodNetwork.md) - [V1Port](docs/V1Port.md) diff --git a/docs/V1ComponentConfig.md b/docs/V1ComponentConfig.md new file mode 100644 index 00000000..5e105c09 --- /dev/null +++ b/docs/V1ComponentConfig.md @@ -0,0 +1,10 @@ +# V1ComponentConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**node_placement** | [**V1NodePlacement**](V1NodePlacement.md) | nodePlacement decsribes scheduling confiuguration for specific KubeVirt components | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1KubeVirtSpec.md b/docs/V1KubeVirtSpec.md index 5855e11b..7849cc69 100644 --- a/docs/V1KubeVirtSpec.md +++ b/docs/V1KubeVirtSpec.md @@ -9,11 +9,13 @@ Name | Type | Description | Notes **image_pull_policy** | **str** | The ImagePullPolicy to use. | [optional] **image_registry** | **str** | The image registry to pull the container images from Defaults to the same registry the operator's container image is pulled from. | [optional] **image_tag** | **str** | The image tag to use for the continer images installed. Defaults to the same tag as the operator's container image. | [optional] +**infra** | [**V1ComponentConfig**](V1ComponentConfig.md) | selectors and tolerations that should apply to KubeVirt infrastructure components | [optional] **monitor_account** | **str** | The name of the Prometheus service account that needs read-access to KubeVirt endpoints Defaults to prometheus-k8s | [optional] **monitor_namespace** | **str** | The namespace Prometheus is deployed in Defaults to openshift-monitor | [optional] **product_name** | **str** | Designate the apps.kubevirt.io/part-of label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductName is not specified, the part-of label will be omitted. | [optional] **product_version** | **str** | Designate the apps.kubevirt.io/version label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductVersion is not specified, KubeVirt's version will be used. | [optional] **uninstall_strategy** | **str** | Specifies if kubevirt can be deleted if workloads are still present. This is mainly a precaution to avoid accidental data loss | [optional] +**workloads** | [**V1ComponentConfig**](V1ComponentConfig.md) | selectors and tolerations that should apply to KubeVirt workloads | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1NodePlacement.md b/docs/V1NodePlacement.md new file mode 100644 index 00000000..597ad3b6 --- /dev/null +++ b/docs/V1NodePlacement.md @@ -0,0 +1,12 @@ +# V1NodePlacement + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**affinity** | [**K8sIoApiCoreV1Affinity**](K8sIoApiCoreV1Affinity.md) | affinity enables pod affinity/anti-affinity placement expanding the types of constraints that can be expressed with nodeSelector. affinity is going to be applied to the relevant kind of pods in parallel with nodeSelector See https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity | [optional] +**node_selector** | **dict(str, str)** | nodeSelector is the node selector applied to the relevant kind of pods It specifies a map of key-value pairs: for the pod to be eligible to run on a node, the node must have each of the indicated key-value pairs as labels (it can have additional labels as well). See https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector | [optional] +**tolerations** | [**list[K8sIoApiCoreV1Toleration]**](K8sIoApiCoreV1Toleration.md) | tolerations is a list of tolerations applied to the relevant kind of pods See https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ for more info. These are additional tolerations other than default ones. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 6fdc588e..13393446 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.33.0-rc.0-172-gbe9ad38a" + release_note="Auto-generated client v0.33.0-rc.0-194-ge3610ed1" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 5126dcdb..ddfb3895 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -203,6 +203,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_cloud_init_no_cloud_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_cloud_init_no_cloud_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CloudInitNoCloudSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_component_config.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_component_config.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ComponentConfig.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_config_map_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_config_map_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ConfigMapVolumeSource.md @@ -365,6 +368,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_network_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_network_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1NetworkConfiguration.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_node_placement.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_node_placement.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1NodePlacement.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_pit_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pit_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PITTimer.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 064bc558..a741ed10 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -74,6 +74,7 @@ from .models.v1_clock_offset_utc import V1ClockOffsetUTC from .models.v1_cloud_init_config_drive_source import V1CloudInitConfigDriveSource from .models.v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource +from .models.v1_component_config import V1ComponentConfig from .models.v1_config_map_volume_source import V1ConfigMapVolumeSource from .models.v1_container_disk_source import V1ContainerDiskSource from .models.v1_customize_components import V1CustomizeComponents @@ -128,6 +129,7 @@ from .models.v1_multus_network import V1MultusNetwork from .models.v1_network import V1Network from .models.v1_network_configuration import V1NetworkConfiguration +from .models.v1_node_placement import V1NodePlacement from .models.v1_pit_timer import V1PITTimer from .models.v1_pod_network import V1PodNetwork from .models.v1_port import V1Port diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 961d7fc6..d567c188 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.33.0-rc.0-172-gbe9ad38a/python' + self.user_agent = 'Swagger-Codegen/v0.33.0-rc.0-194-ge3610ed1/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 39c0e67a..903b3820 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.33.0-rc.0-172-gbe9ad38a".\ + "SDK Package Version: v0.33.0-rc.0-194-ge3610ed1".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 34887cfd..feff2520 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -74,6 +74,7 @@ from .v1_clock_offset_utc import V1ClockOffsetUTC from .v1_cloud_init_config_drive_source import V1CloudInitConfigDriveSource from .v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource +from .v1_component_config import V1ComponentConfig from .v1_config_map_volume_source import V1ConfigMapVolumeSource from .v1_container_disk_source import V1ContainerDiskSource from .v1_customize_components import V1CustomizeComponents @@ -128,6 +129,7 @@ from .v1_multus_network import V1MultusNetwork from .v1_network import V1Network from .v1_network_configuration import V1NetworkConfiguration +from .v1_node_placement import V1NodePlacement from .v1_pit_timer import V1PITTimer from .v1_pod_network import V1PodNetwork from .v1_port import V1Port diff --git a/kubevirt/models/v1_component_config.py b/kubevirt/models/v1_component_config.py new file mode 100644 index 00000000..94b5cec6 --- /dev/null +++ b/kubevirt/models/v1_component_config.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ComponentConfig(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'node_placement': 'V1NodePlacement' + } + + attribute_map = { + 'node_placement': 'nodePlacement' + } + + def __init__(self, node_placement=None): + """ + V1ComponentConfig - a model defined in Swagger + """ + + self._node_placement = None + + if node_placement is not None: + self.node_placement = node_placement + + @property + def node_placement(self): + """ + Gets the node_placement of this V1ComponentConfig. + nodePlacement decsribes scheduling confiuguration for specific KubeVirt components + + :return: The node_placement of this V1ComponentConfig. + :rtype: V1NodePlacement + """ + return self._node_placement + + @node_placement.setter + def node_placement(self, node_placement): + """ + Sets the node_placement of this V1ComponentConfig. + nodePlacement decsribes scheduling confiuguration for specific KubeVirt components + + :param node_placement: The node_placement of this V1ComponentConfig. + :type: V1NodePlacement + """ + + self._node_placement = node_placement + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1ComponentConfig): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kube_virt_spec.py b/kubevirt/models/v1_kube_virt_spec.py index c3976e51..cadcb778 100644 --- a/kubevirt/models/v1_kube_virt_spec.py +++ b/kubevirt/models/v1_kube_virt_spec.py @@ -37,11 +37,13 @@ class V1KubeVirtSpec(object): 'image_pull_policy': 'str', 'image_registry': 'str', 'image_tag': 'str', + 'infra': 'V1ComponentConfig', 'monitor_account': 'str', 'monitor_namespace': 'str', 'product_name': 'str', 'product_version': 'str', - 'uninstall_strategy': 'str' + 'uninstall_strategy': 'str', + 'workloads': 'V1ComponentConfig' } attribute_map = { @@ -51,14 +53,16 @@ class V1KubeVirtSpec(object): 'image_pull_policy': 'imagePullPolicy', 'image_registry': 'imageRegistry', 'image_tag': 'imageTag', + 'infra': 'infra', 'monitor_account': 'monitorAccount', 'monitor_namespace': 'monitorNamespace', 'product_name': 'productName', 'product_version': 'productVersion', - 'uninstall_strategy': 'uninstallStrategy' + 'uninstall_strategy': 'uninstallStrategy', + 'workloads': 'workloads' } - def __init__(self, certificate_rotate_strategy=None, configuration=None, customize_components=None, image_pull_policy=None, image_registry=None, image_tag=None, monitor_account=None, monitor_namespace=None, product_name=None, product_version=None, uninstall_strategy=None): + def __init__(self, certificate_rotate_strategy=None, configuration=None, customize_components=None, image_pull_policy=None, image_registry=None, image_tag=None, infra=None, monitor_account=None, monitor_namespace=None, product_name=None, product_version=None, uninstall_strategy=None, workloads=None): """ V1KubeVirtSpec - a model defined in Swagger """ @@ -69,11 +73,13 @@ def __init__(self, certificate_rotate_strategy=None, configuration=None, customi self._image_pull_policy = None self._image_registry = None self._image_tag = None + self._infra = None self._monitor_account = None self._monitor_namespace = None self._product_name = None self._product_version = None self._uninstall_strategy = None + self._workloads = None if certificate_rotate_strategy is not None: self.certificate_rotate_strategy = certificate_rotate_strategy @@ -87,6 +93,8 @@ def __init__(self, certificate_rotate_strategy=None, configuration=None, customi self.image_registry = image_registry if image_tag is not None: self.image_tag = image_tag + if infra is not None: + self.infra = infra if monitor_account is not None: self.monitor_account = monitor_account if monitor_namespace is not None: @@ -97,6 +105,8 @@ def __init__(self, certificate_rotate_strategy=None, configuration=None, customi self.product_version = product_version if uninstall_strategy is not None: self.uninstall_strategy = uninstall_strategy + if workloads is not None: + self.workloads = workloads @property def certificate_rotate_strategy(self): @@ -232,6 +242,29 @@ def image_tag(self, image_tag): self._image_tag = image_tag + @property + def infra(self): + """ + Gets the infra of this V1KubeVirtSpec. + selectors and tolerations that should apply to KubeVirt infrastructure components + + :return: The infra of this V1KubeVirtSpec. + :rtype: V1ComponentConfig + """ + return self._infra + + @infra.setter + def infra(self, infra): + """ + Sets the infra of this V1KubeVirtSpec. + selectors and tolerations that should apply to KubeVirt infrastructure components + + :param infra: The infra of this V1KubeVirtSpec. + :type: V1ComponentConfig + """ + + self._infra = infra + @property def monitor_account(self): """ @@ -347,6 +380,29 @@ def uninstall_strategy(self, uninstall_strategy): self._uninstall_strategy = uninstall_strategy + @property + def workloads(self): + """ + Gets the workloads of this V1KubeVirtSpec. + selectors and tolerations that should apply to KubeVirt workloads + + :return: The workloads of this V1KubeVirtSpec. + :rtype: V1ComponentConfig + """ + return self._workloads + + @workloads.setter + def workloads(self, workloads): + """ + Sets the workloads of this V1KubeVirtSpec. + selectors and tolerations that should apply to KubeVirt workloads + + :param workloads: The workloads of this V1KubeVirtSpec. + :type: V1ComponentConfig + """ + + self._workloads = workloads + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_node_placement.py b/kubevirt/models/v1_node_placement.py new file mode 100644 index 00000000..2b62053b --- /dev/null +++ b/kubevirt/models/v1_node_placement.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1NodePlacement(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'affinity': 'K8sIoApiCoreV1Affinity', + 'node_selector': 'dict(str, str)', + 'tolerations': 'list[K8sIoApiCoreV1Toleration]' + } + + attribute_map = { + 'affinity': 'affinity', + 'node_selector': 'nodeSelector', + 'tolerations': 'tolerations' + } + + def __init__(self, affinity=None, node_selector=None, tolerations=None): + """ + V1NodePlacement - a model defined in Swagger + """ + + self._affinity = None + self._node_selector = None + self._tolerations = None + + if affinity is not None: + self.affinity = affinity + if node_selector is not None: + self.node_selector = node_selector + if tolerations is not None: + self.tolerations = tolerations + + @property + def affinity(self): + """ + Gets the affinity of this V1NodePlacement. + affinity enables pod affinity/anti-affinity placement expanding the types of constraints that can be expressed with nodeSelector. affinity is going to be applied to the relevant kind of pods in parallel with nodeSelector See https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity + + :return: The affinity of this V1NodePlacement. + :rtype: K8sIoApiCoreV1Affinity + """ + return self._affinity + + @affinity.setter + def affinity(self, affinity): + """ + Sets the affinity of this V1NodePlacement. + affinity enables pod affinity/anti-affinity placement expanding the types of constraints that can be expressed with nodeSelector. affinity is going to be applied to the relevant kind of pods in parallel with nodeSelector See https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity + + :param affinity: The affinity of this V1NodePlacement. + :type: K8sIoApiCoreV1Affinity + """ + + self._affinity = affinity + + @property + def node_selector(self): + """ + Gets the node_selector of this V1NodePlacement. + nodeSelector is the node selector applied to the relevant kind of pods It specifies a map of key-value pairs: for the pod to be eligible to run on a node, the node must have each of the indicated key-value pairs as labels (it can have additional labels as well). See https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector + + :return: The node_selector of this V1NodePlacement. + :rtype: dict(str, str) + """ + return self._node_selector + + @node_selector.setter + def node_selector(self, node_selector): + """ + Sets the node_selector of this V1NodePlacement. + nodeSelector is the node selector applied to the relevant kind of pods It specifies a map of key-value pairs: for the pod to be eligible to run on a node, the node must have each of the indicated key-value pairs as labels (it can have additional labels as well). See https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector + + :param node_selector: The node_selector of this V1NodePlacement. + :type: dict(str, str) + """ + + self._node_selector = node_selector + + @property + def tolerations(self): + """ + Gets the tolerations of this V1NodePlacement. + tolerations is a list of tolerations applied to the relevant kind of pods See https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ for more info. These are additional tolerations other than default ones. + + :return: The tolerations of this V1NodePlacement. + :rtype: list[K8sIoApiCoreV1Toleration] + """ + return self._tolerations + + @tolerations.setter + def tolerations(self, tolerations): + """ + Sets the tolerations of this V1NodePlacement. + tolerations is a list of tolerations applied to the relevant kind of pods See https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ for more info. These are additional tolerations other than default ones. + + :param tolerations: The tolerations of this V1NodePlacement. + :type: list[K8sIoApiCoreV1Toleration] + """ + + self._tolerations = tolerations + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1NodePlacement): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index cff8a25c..786cb7e0 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.33.0-rc.0-172-gbe9ad38a" +VERSION = "v0.33.0-rc.0-194-ge3610ed1" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 2235db75..649e0b56 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.33.0-rc.0-172-gbe9ad38a" +"packageVersion": "v0.33.0-rc.0-194-ge3610ed1" } diff --git a/test/test_v1_component_config.py b/test/test_v1_component_config.py new file mode 100644 index 00000000..d5a2c3d3 --- /dev/null +++ b/test/test_v1_component_config.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_component_config import V1ComponentConfig + + +class TestV1ComponentConfig(unittest.TestCase): + """ V1ComponentConfig unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ComponentConfig(self): + """ + Test V1ComponentConfig + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_component_config.V1ComponentConfig() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_node_placement.py b/test/test_v1_node_placement.py new file mode 100644 index 00000000..9b43d608 --- /dev/null +++ b/test/test_v1_node_placement.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_node_placement import V1NodePlacement + + +class TestV1NodePlacement(unittest.TestCase): + """ V1NodePlacement unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1NodePlacement(self): + """ + Test V1NodePlacement + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_node_placement.V1NodePlacement() + pass + + +if __name__ == '__main__': + unittest.main() From 8f953cbc6c1bbbc20de9c0f86cb1222737a159f0 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 22 Sep 2020 07:52:39 +0000 Subject: [PATCH 145/521] Client Python update by Travis Build 15175 --- README.md | 2 +- docs/V1Features.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_features.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index d812d810..fdb03106 100644 --- a/README.md +++ b/README.md @@ -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: v0.33.0-rc.0-194-ge3610ed1 +- Package version: v0.33.0-rc.0-206-g89ed2109 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Features.md b/docs/V1Features.md index 1e6dac8b..c0304c8c 100644 --- a/docs/V1Features.md +++ b/docs/V1Features.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**acpi** | [**V1FeatureState**](V1FeatureState.md) | ACPI enables/disables ACPI insidejsondata guest. Defaults to enabled. | [optional] +**acpi** | [**V1FeatureState**](V1FeatureState.md) | ACPI enables/disables ACPI inside the guest. Defaults to enabled. | [optional] **apic** | [**V1FeatureAPIC**](V1FeatureAPIC.md) | Defaults to the machine type setting. | [optional] **hyperv** | [**V1FeatureHyperv**](V1FeatureHyperv.md) | Defaults to the machine type setting. | [optional] **kvm** | [**V1FeatureKVM**](V1FeatureKVM.md) | Configure how KVM presence is exposed to the guest. | [optional] diff --git a/git_push.sh b/git_push.sh index 13393446..887642d4 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.33.0-rc.0-194-ge3610ed1" + release_note="Auto-generated client v0.33.0-rc.0-206-g89ed2109" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index d567c188..8052bdfc 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.33.0-rc.0-194-ge3610ed1/python' + self.user_agent = 'Swagger-Codegen/v0.33.0-rc.0-206-g89ed2109/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 903b3820..4023bfe0 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.33.0-rc.0-194-ge3610ed1".\ + "SDK Package Version: v0.33.0-rc.0-206-g89ed2109".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_features.py b/kubevirt/models/v1_features.py index ccd9cc45..9e7e64b1 100644 --- a/kubevirt/models/v1_features.py +++ b/kubevirt/models/v1_features.py @@ -72,7 +72,7 @@ def __init__(self, acpi=None, apic=None, hyperv=None, kvm=None, smm=None): def acpi(self): """ Gets the acpi of this V1Features. - ACPI enables/disables ACPI insidejsondata guest. Defaults to enabled. + ACPI enables/disables ACPI inside the guest. Defaults to enabled. :return: The acpi of this V1Features. :rtype: V1FeatureState @@ -83,7 +83,7 @@ def acpi(self): def acpi(self, acpi): """ Sets the acpi of this V1Features. - ACPI enables/disables ACPI insidejsondata guest. Defaults to enabled. + ACPI enables/disables ACPI inside the guest. Defaults to enabled. :param acpi: The acpi of this V1Features. :type: V1FeatureState diff --git a/setup.py b/setup.py index 786cb7e0..ce4b3fc2 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.33.0-rc.0-194-ge3610ed1" +VERSION = "v0.33.0-rc.0-206-g89ed2109" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 649e0b56..8e00736e 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.33.0-rc.0-194-ge3610ed1" +"packageVersion": "v0.33.0-rc.0-206-g89ed2109" } From 29b19e98a543f9a3e1bb50516b5762f9b97479d6 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 23 Sep 2020 08:33:45 +0000 Subject: [PATCH 146/521] Client Python update by Travis Build 15221 --- README.md | 2 +- docs/V1DeveloperConfiguration.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_developer_configuration.py | 28 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 34 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index fdb03106..bddc5f16 100644 --- a/README.md +++ b/README.md @@ -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: v0.33.0-rc.0-206-g89ed2109 +- Package version: v0.33.0-rc.0-227-gd5f338aa - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1DeveloperConfiguration.md b/docs/V1DeveloperConfiguration.md index 9f0fe40f..763001d8 100644 --- a/docs/V1DeveloperConfiguration.md +++ b/docs/V1DeveloperConfiguration.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**cpu_allocation_ratio** | **str** | | [optional] **feature_gates** | **list[str]** | | [optional] **memory_overcommit** | **str** | | [optional] **node_selectors** | **dict(str, str)** | | [optional] diff --git a/git_push.sh b/git_push.sh index 887642d4..b32a404b 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.33.0-rc.0-206-g89ed2109" + release_note="Auto-generated client v0.33.0-rc.0-227-gd5f338aa" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 8052bdfc..cbc95e0a 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.33.0-rc.0-206-g89ed2109/python' + self.user_agent = 'Swagger-Codegen/v0.33.0-rc.0-227-gd5f338aa/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 4023bfe0..63d85fe6 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.33.0-rc.0-206-g89ed2109".\ + "SDK Package Version: v0.33.0-rc.0-227-gd5f338aa".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_developer_configuration.py b/kubevirt/models/v1_developer_configuration.py index f8dfc85f..8fe79054 100644 --- a/kubevirt/models/v1_developer_configuration.py +++ b/kubevirt/models/v1_developer_configuration.py @@ -31,6 +31,7 @@ class V1DeveloperConfiguration(object): and the value is json key in definition. """ swagger_types = { + 'cpu_allocation_ratio': 'str', 'feature_gates': 'list[str]', 'memory_overcommit': 'str', 'node_selectors': 'dict(str, str)', @@ -39,6 +40,7 @@ class V1DeveloperConfiguration(object): } attribute_map = { + 'cpu_allocation_ratio': 'cpuAllocationRatio', 'feature_gates': 'featureGates', 'memory_overcommit': 'memoryOvercommit', 'node_selectors': 'nodeSelectors', @@ -46,17 +48,20 @@ class V1DeveloperConfiguration(object): 'use_emulation': 'useEmulation' } - def __init__(self, feature_gates=None, memory_overcommit=None, node_selectors=None, pvc_tolerate_less_space_up_to_percent=None, use_emulation=None): + def __init__(self, cpu_allocation_ratio=None, feature_gates=None, memory_overcommit=None, node_selectors=None, pvc_tolerate_less_space_up_to_percent=None, use_emulation=None): """ V1DeveloperConfiguration - a model defined in Swagger """ + self._cpu_allocation_ratio = None self._feature_gates = None self._memory_overcommit = None self._node_selectors = None self._pvc_tolerate_less_space_up_to_percent = None self._use_emulation = None + if cpu_allocation_ratio is not None: + self.cpu_allocation_ratio = cpu_allocation_ratio if feature_gates is not None: self.feature_gates = feature_gates if memory_overcommit is not None: @@ -68,6 +73,27 @@ def __init__(self, feature_gates=None, memory_overcommit=None, node_selectors=No if use_emulation is not None: self.use_emulation = use_emulation + @property + def cpu_allocation_ratio(self): + """ + Gets the cpu_allocation_ratio of this V1DeveloperConfiguration. + + :return: The cpu_allocation_ratio of this V1DeveloperConfiguration. + :rtype: str + """ + return self._cpu_allocation_ratio + + @cpu_allocation_ratio.setter + def cpu_allocation_ratio(self, cpu_allocation_ratio): + """ + Sets the cpu_allocation_ratio of this V1DeveloperConfiguration. + + :param cpu_allocation_ratio: The cpu_allocation_ratio of this V1DeveloperConfiguration. + :type: str + """ + + self._cpu_allocation_ratio = cpu_allocation_ratio + @property def feature_gates(self): """ diff --git a/setup.py b/setup.py index ce4b3fc2..f6a585af 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.33.0-rc.0-206-g89ed2109" +VERSION = "v0.33.0-rc.0-227-gd5f338aa" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 8e00736e..0fccc0c5 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.33.0-rc.0-206-g89ed2109" +"packageVersion": "v0.33.0-rc.0-227-gd5f338aa" } From 198d0b2d2b7f8a69f9035acb66cc966e4a4a9e8b Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 25 Sep 2020 07:54:49 +0000 Subject: [PATCH 147/521] Client Python update by Travis Build 15297 --- README.md | 2 +- docs/V1VirtualMachineInstanceStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1_virtual_machine_instance_status.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index bddc5f16..46e0cf92 100644 --- a/README.md +++ b/README.md @@ -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: v0.33.0-rc.0-227-gd5f338aa +- Package version: v0.33.0-rc.0-285-g906d2e1a - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index 210a3576..eeee5361 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active_pods** | **dict(str, str)** | ActivePods is a mapping of pod UID to node name. It is possible for multiple pods to be running for a single VMI during migration. | [optional] **conditions** | [**list[V1VirtualMachineInstanceCondition]**](V1VirtualMachineInstanceCondition.md) | Conditions are specific points in VirtualMachineInstance's pod runtime. | [optional] +**evacuation_node_name** | **str** | EvacuationNodeName is used to track the eviction process of a VMI. It stores the name of the node that we want to evacuate. It is meant to be used by KubeVirt core components only and can't be set or modified by users. | [optional] **guest_os_info** | [**V1VirtualMachineInstanceGuestOSInfo**](V1VirtualMachineInstanceGuestOSInfo.md) | Guest OS Information | [optional] **interfaces** | [**list[V1VirtualMachineInstanceNetworkInterface]**](V1VirtualMachineInstanceNetworkInterface.md) | Interfaces represent the details of available network interfaces. | [optional] **migration_method** | **str** | Represents the method using which the vmi can be migrated: live migration or block migration | [optional] diff --git a/git_push.sh b/git_push.sh index b32a404b..660d37ec 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.33.0-rc.0-227-gd5f338aa" + release_note="Auto-generated client v0.33.0-rc.0-285-g906d2e1a" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index cbc95e0a..7957f04c 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.33.0-rc.0-227-gd5f338aa/python' + self.user_agent = 'Swagger-Codegen/v0.33.0-rc.0-285-g906d2e1a/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 63d85fe6..728cecf1 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.33.0-rc.0-227-gd5f338aa".\ + "SDK Package Version: v0.33.0-rc.0-285-g906d2e1a".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index 913cc053..f4401019 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -33,6 +33,7 @@ class V1VirtualMachineInstanceStatus(object): swagger_types = { 'active_pods': 'dict(str, str)', 'conditions': 'list[V1VirtualMachineInstanceCondition]', + 'evacuation_node_name': 'str', 'guest_os_info': 'V1VirtualMachineInstanceGuestOSInfo', 'interfaces': 'list[V1VirtualMachineInstanceNetworkInterface]', 'migration_method': 'str', @@ -46,6 +47,7 @@ class V1VirtualMachineInstanceStatus(object): attribute_map = { 'active_pods': 'activePods', 'conditions': 'conditions', + 'evacuation_node_name': 'evacuationNodeName', 'guest_os_info': 'guestOSInfo', 'interfaces': 'interfaces', 'migration_method': 'migrationMethod', @@ -56,13 +58,14 @@ class V1VirtualMachineInstanceStatus(object): 'reason': 'reason' } - def __init__(self, active_pods=None, conditions=None, guest_os_info=None, interfaces=None, migration_method=None, migration_state=None, node_name=None, phase=None, qos_class=None, reason=None): + def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, guest_os_info=None, interfaces=None, migration_method=None, migration_state=None, node_name=None, phase=None, qos_class=None, reason=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ self._active_pods = None self._conditions = None + self._evacuation_node_name = None self._guest_os_info = None self._interfaces = None self._migration_method = None @@ -76,6 +79,8 @@ def __init__(self, active_pods=None, conditions=None, guest_os_info=None, interf self.active_pods = active_pods if conditions is not None: self.conditions = conditions + if evacuation_node_name is not None: + self.evacuation_node_name = evacuation_node_name if guest_os_info is not None: self.guest_os_info = guest_os_info if interfaces is not None: @@ -139,6 +144,29 @@ def conditions(self, conditions): self._conditions = conditions + @property + def evacuation_node_name(self): + """ + Gets the evacuation_node_name of this V1VirtualMachineInstanceStatus. + EvacuationNodeName is used to track the eviction process of a VMI. It stores the name of the node that we want to evacuate. It is meant to be used by KubeVirt core components only and can't be set or modified by users. + + :return: The evacuation_node_name of this V1VirtualMachineInstanceStatus. + :rtype: str + """ + return self._evacuation_node_name + + @evacuation_node_name.setter + def evacuation_node_name(self, evacuation_node_name): + """ + Sets the evacuation_node_name of this V1VirtualMachineInstanceStatus. + EvacuationNodeName is used to track the eviction process of a VMI. It stores the name of the node that we want to evacuate. It is meant to be used by KubeVirt core components only and can't be set or modified by users. + + :param evacuation_node_name: The evacuation_node_name of this V1VirtualMachineInstanceStatus. + :type: str + """ + + self._evacuation_node_name = evacuation_node_name + @property def guest_os_info(self): """ diff --git a/setup.py b/setup.py index f6a585af..9caab595 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.33.0-rc.0-227-gd5f338aa" +VERSION = "v0.33.0-rc.0-285-g906d2e1a" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 0fccc0c5..0852ded5 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.33.0-rc.0-227-gd5f338aa" +"packageVersion": "v0.33.0-rc.0-285-g906d2e1a" } From 7c74069081a16a19fbcc5742e3a9576a657e9111 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sat, 26 Sep 2020 05:21:47 +0000 Subject: [PATCH 148/521] Client Python update by Travis Build 15321 --- README.md | 6 +- docs/V1DataVolumeTemplateSpec.md | 11 + docs/V1VirtualMachineSpec.md | 2 +- docs/V1alpha1DataVolume.md | 14 -- docs/V1alpha1DataVolumeCondition.md | 14 -- docs/V1alpha1DataVolumeStatus.md | 13 - git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 14 +- kubevirt/__init__.py | 4 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 4 +- .../models/v1_data_volume_template_spec.py | 152 ++++++++++++ kubevirt/models/v1_virtual_machine_spec.py | 6 +- kubevirt/models/v1alpha1_data_volume.py | 232 ------------------ .../models/v1alpha1_data_volume_condition.py | 229 ----------------- .../models/v1alpha1_data_volume_status.py | 205 ---------------- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...y => test_v1_data_volume_template_spec.py} | 12 +- test/test_v1alpha1_data_volume.py | 44 ---- test/test_v1alpha1_data_volume_condition.py | 44 ---- 22 files changed, 185 insertions(+), 831 deletions(-) create mode 100644 docs/V1DataVolumeTemplateSpec.md delete mode 100644 docs/V1alpha1DataVolume.md delete mode 100644 docs/V1alpha1DataVolumeCondition.md delete mode 100644 docs/V1alpha1DataVolumeStatus.md create mode 100644 kubevirt/models/v1_data_volume_template_spec.py delete mode 100644 kubevirt/models/v1alpha1_data_volume.py delete mode 100644 kubevirt/models/v1alpha1_data_volume_condition.py delete mode 100644 kubevirt/models/v1alpha1_data_volume_status.py rename test/{test_v1alpha1_data_volume_status.py => test_v1_data_volume_template_spec.py} (63%) delete mode 100644 test/test_v1alpha1_data_volume.py delete mode 100644 test/test_v1alpha1_data_volume_condition.py diff --git a/README.md b/README.md index 46e0cf92..4d6f205e 100644 --- a/README.md +++ b/README.md @@ -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: v0.33.0-rc.0-285-g906d2e1a +- Package version: v0.33.0-rc.0-291-g28622190 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -255,6 +255,7 @@ Class | Method | HTTP request | Description - [V1DHCPOptions](docs/V1DHCPOptions.md) - [V1DHCPPrivateOptions](docs/V1DHCPPrivateOptions.md) - [V1DataVolumeSource](docs/V1DataVolumeSource.md) + - [V1DataVolumeTemplateSpec](docs/V1DataVolumeTemplateSpec.md) - [V1DeveloperConfiguration](docs/V1DeveloperConfiguration.md) - [V1Devices](docs/V1Devices.md) - [V1Disk](docs/V1Disk.md) @@ -352,9 +353,7 @@ Class | Method | HTTP request | Description - [V1Volume](docs/V1Volume.md) - [V1Watchdog](docs/V1Watchdog.md) - [V1alpha1Condition](docs/V1alpha1Condition.md) - - [V1alpha1DataVolume](docs/V1alpha1DataVolume.md) - [V1alpha1DataVolumeBlankImage](docs/V1alpha1DataVolumeBlankImage.md) - - [V1alpha1DataVolumeCondition](docs/V1alpha1DataVolumeCondition.md) - [V1alpha1DataVolumeSource](docs/V1alpha1DataVolumeSource.md) - [V1alpha1DataVolumeSourceHTTP](docs/V1alpha1DataVolumeSourceHTTP.md) - [V1alpha1DataVolumeSourceImageIO](docs/V1alpha1DataVolumeSourceImageIO.md) @@ -363,7 +362,6 @@ Class | Method | HTTP request | Description - [V1alpha1DataVolumeSourceS3](docs/V1alpha1DataVolumeSourceS3.md) - [V1alpha1DataVolumeSourceUpload](docs/V1alpha1DataVolumeSourceUpload.md) - [V1alpha1DataVolumeSpec](docs/V1alpha1DataVolumeSpec.md) - - [V1alpha1DataVolumeStatus](docs/V1alpha1DataVolumeStatus.md) - [V1alpha1Error](docs/V1alpha1Error.md) - [V1alpha1SourceSpec](docs/V1alpha1SourceSpec.md) - [V1alpha1VirtualMachineRestore](docs/V1alpha1VirtualMachineRestore.md) diff --git a/docs/V1DataVolumeTemplateSpec.md b/docs/V1DataVolumeTemplateSpec.md new file mode 100644 index 00000000..08c315aa --- /dev/null +++ b/docs/V1DataVolumeTemplateSpec.md @@ -0,0 +1,11 @@ +# V1DataVolumeTemplateSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha1DataVolumeSpec**](V1alpha1DataVolumeSpec.md) | DataVolumeSpec contains the DataVolume specification. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineSpec.md b/docs/V1VirtualMachineSpec.md index b551368b..d92af07d 100644 --- a/docs/V1VirtualMachineSpec.md +++ b/docs/V1VirtualMachineSpec.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data_volume_templates** | [**list[V1alpha1DataVolume]**](V1alpha1DataVolume.md) | dataVolumeTemplates is a list of dataVolumes that the VirtualMachineInstance template can reference. DataVolumes in this list are dynamically created for the VirtualMachine and are tied to the VirtualMachine's life-cycle. | [optional] +**data_volume_templates** | [**list[V1DataVolumeTemplateSpec]**](V1DataVolumeTemplateSpec.md) | dataVolumeTemplates is a list of dataVolumes that the VirtualMachineInstance template can reference. DataVolumes in this list are dynamically created for the VirtualMachine and are tied to the VirtualMachine's life-cycle. | [optional] **run_strategy** | **str** | Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running | [optional] **running** | **bool** | Running controls whether the associatied VirtualMachineInstance is created or not Mutually exclusive with RunStrategy | [optional] **template** | [**V1VirtualMachineInstanceTemplateSpec**](V1VirtualMachineInstanceTemplateSpec.md) | Template is the direct specification of VirtualMachineInstance | diff --git a/docs/V1alpha1DataVolume.md b/docs/V1alpha1DataVolume.md deleted file mode 100644 index c194a14d..00000000 --- a/docs/V1alpha1DataVolume.md +++ /dev/null @@ -1,14 +0,0 @@ -# V1alpha1DataVolume - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1DataVolumeSpec**](V1alpha1DataVolumeSpec.md) | | -**status** | [**V1alpha1DataVolumeStatus**](V1alpha1DataVolumeStatus.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1alpha1DataVolumeCondition.md b/docs/V1alpha1DataVolumeCondition.md deleted file mode 100644 index 9c79f959..00000000 --- a/docs/V1alpha1DataVolumeCondition.md +++ /dev/null @@ -1,14 +0,0 @@ -# V1alpha1DataVolumeCondition - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**last_heartbeat_time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | | [optional] -**message** | **str** | | [optional] -**reason** | **str** | | [optional] -**status** | **str** | | -**type** | **str** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1alpha1DataVolumeStatus.md b/docs/V1alpha1DataVolumeStatus.md deleted file mode 100644 index 2a43fe8c..00000000 --- a/docs/V1alpha1DataVolumeStatus.md +++ /dev/null @@ -1,13 +0,0 @@ -# V1alpha1DataVolumeStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**conditions** | [**list[V1alpha1DataVolumeCondition]**](V1alpha1DataVolumeCondition.md) | | [optional] -**phase** | **str** | Phase is the current phase of the data volume | [optional] -**progress** | **str** | | [optional] -**restart_count** | **int** | RestartCount is the number of times the pod populating the DataVolume has restarted | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/git_push.sh b/git_push.sh index 660d37ec..9bffa834 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.33.0-rc.0-285-g906d2e1a" + release_note="Auto-generated client v0.33.0-rc.0-291-g28622190" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index ddfb3895..2d4f62c0 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -18,8 +18,6 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] INFO io.swagger.codegen.ignore.CodegenIgnoreProcessor - No .swagger-codegen-ignore file found. [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default appVersion set to 1.0.0 [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default version set to 1.0.0 @@ -227,6 +225,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_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_data_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DataVolumeSource.md +[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_developer_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_developer_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DeveloperConfiguration.md @@ -518,15 +519,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/v1alpha1_condition.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_condition.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1Condition.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolume.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_blank_image.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_blank_image.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeBlankImage.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_condition.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_condition.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeCondition.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSource.md @@ -551,9 +546,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/v1alpha1_data_volume_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSpec.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeStatus.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_error.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_error.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1Error.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index a741ed10..1dedad55 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -82,6 +82,7 @@ from .models.v1_dhcp_options import V1DHCPOptions from .models.v1_dhcp_private_options import V1DHCPPrivateOptions from .models.v1_data_volume_source import V1DataVolumeSource +from .models.v1_data_volume_template_spec import V1DataVolumeTemplateSpec from .models.v1_developer_configuration import V1DeveloperConfiguration from .models.v1_devices import V1Devices from .models.v1_disk import V1Disk @@ -179,9 +180,7 @@ from .models.v1_volume import V1Volume from .models.v1_watchdog import V1Watchdog from .models.v1alpha1_condition import V1alpha1Condition -from .models.v1alpha1_data_volume import V1alpha1DataVolume from .models.v1alpha1_data_volume_blank_image import V1alpha1DataVolumeBlankImage -from .models.v1alpha1_data_volume_condition import V1alpha1DataVolumeCondition from .models.v1alpha1_data_volume_source import V1alpha1DataVolumeSource from .models.v1alpha1_data_volume_source_http import V1alpha1DataVolumeSourceHTTP from .models.v1alpha1_data_volume_source_image_io import V1alpha1DataVolumeSourceImageIO @@ -190,7 +189,6 @@ from .models.v1alpha1_data_volume_source_s3 import V1alpha1DataVolumeSourceS3 from .models.v1alpha1_data_volume_source_upload import V1alpha1DataVolumeSourceUpload from .models.v1alpha1_data_volume_spec import V1alpha1DataVolumeSpec -from .models.v1alpha1_data_volume_status import V1alpha1DataVolumeStatus from .models.v1alpha1_error import V1alpha1Error from .models.v1alpha1_source_spec import V1alpha1SourceSpec from .models.v1alpha1_virtual_machine_restore import V1alpha1VirtualMachineRestore diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 7957f04c..23dd01a4 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.33.0-rc.0-285-g906d2e1a/python' + self.user_agent = 'Swagger-Codegen/v0.33.0-rc.0-291-g28622190/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 728cecf1..a76b33ce 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.33.0-rc.0-285-g906d2e1a".\ + "SDK Package Version: v0.33.0-rc.0-291-g28622190".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index feff2520..a6b3a478 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -82,6 +82,7 @@ from .v1_dhcp_options import V1DHCPOptions from .v1_dhcp_private_options import V1DHCPPrivateOptions from .v1_data_volume_source import V1DataVolumeSource +from .v1_data_volume_template_spec import V1DataVolumeTemplateSpec from .v1_developer_configuration import V1DeveloperConfiguration from .v1_devices import V1Devices from .v1_disk import V1Disk @@ -179,9 +180,7 @@ from .v1_volume import V1Volume from .v1_watchdog import V1Watchdog from .v1alpha1_condition import V1alpha1Condition -from .v1alpha1_data_volume import V1alpha1DataVolume from .v1alpha1_data_volume_blank_image import V1alpha1DataVolumeBlankImage -from .v1alpha1_data_volume_condition import V1alpha1DataVolumeCondition from .v1alpha1_data_volume_source import V1alpha1DataVolumeSource from .v1alpha1_data_volume_source_http import V1alpha1DataVolumeSourceHTTP from .v1alpha1_data_volume_source_image_io import V1alpha1DataVolumeSourceImageIO @@ -190,7 +189,6 @@ from .v1alpha1_data_volume_source_s3 import V1alpha1DataVolumeSourceS3 from .v1alpha1_data_volume_source_upload import V1alpha1DataVolumeSourceUpload from .v1alpha1_data_volume_spec import V1alpha1DataVolumeSpec -from .v1alpha1_data_volume_status import V1alpha1DataVolumeStatus from .v1alpha1_error import V1alpha1Error from .v1alpha1_source_spec import V1alpha1SourceSpec from .v1alpha1_virtual_machine_restore import V1alpha1VirtualMachineRestore diff --git a/kubevirt/models/v1_data_volume_template_spec.py b/kubevirt/models/v1_data_volume_template_spec.py new file mode 100644 index 00000000..09af3a59 --- /dev/null +++ b/kubevirt/models/v1_data_volume_template_spec.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DataVolumeTemplateSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', + 'spec': 'V1alpha1DataVolumeSpec' + } + + attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec' + } + + def __init__(self, metadata=None, spec=None): + """ + V1DataVolumeTemplateSpec - a model defined in Swagger + """ + + self._metadata = None + self._spec = None + + if metadata is not None: + self.metadata = metadata + self.spec = spec + + @property + def metadata(self): + """ + Gets the metadata of this V1DataVolumeTemplateSpec. + + :return: The metadata of this V1DataVolumeTemplateSpec. + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1DataVolumeTemplateSpec. + + :param metadata: The metadata of this V1DataVolumeTemplateSpec. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1DataVolumeTemplateSpec. + DataVolumeSpec contains the DataVolume specification. + + :return: The spec of this V1DataVolumeTemplateSpec. + :rtype: V1alpha1DataVolumeSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1DataVolumeTemplateSpec. + DataVolumeSpec contains the DataVolume specification. + + :param spec: The spec of this V1DataVolumeTemplateSpec. + :type: V1alpha1DataVolumeSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1DataVolumeTemplateSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_spec.py b/kubevirt/models/v1_virtual_machine_spec.py index 510f491d..ce490e1f 100644 --- a/kubevirt/models/v1_virtual_machine_spec.py +++ b/kubevirt/models/v1_virtual_machine_spec.py @@ -31,7 +31,7 @@ class V1VirtualMachineSpec(object): and the value is json key in definition. """ swagger_types = { - 'data_volume_templates': 'list[V1alpha1DataVolume]', + 'data_volume_templates': 'list[V1DataVolumeTemplateSpec]', 'run_strategy': 'str', 'running': 'bool', 'template': 'V1VirtualMachineInstanceTemplateSpec' @@ -69,7 +69,7 @@ def data_volume_templates(self): dataVolumeTemplates is a list of dataVolumes that the VirtualMachineInstance template can reference. DataVolumes in this list are dynamically created for the VirtualMachine and are tied to the VirtualMachine's life-cycle. :return: The data_volume_templates of this V1VirtualMachineSpec. - :rtype: list[V1alpha1DataVolume] + :rtype: list[V1DataVolumeTemplateSpec] """ return self._data_volume_templates @@ -80,7 +80,7 @@ def data_volume_templates(self, data_volume_templates): dataVolumeTemplates is a list of dataVolumes that the VirtualMachineInstance template can reference. DataVolumes in this list are dynamically created for the VirtualMachine and are tied to the VirtualMachine's life-cycle. :param data_volume_templates: The data_volume_templates of this V1VirtualMachineSpec. - :type: list[V1alpha1DataVolume] + :type: list[V1DataVolumeTemplateSpec] """ self._data_volume_templates = data_volume_templates diff --git a/kubevirt/models/v1alpha1_data_volume.py b/kubevirt/models/v1alpha1_data_volume.py deleted file mode 100644 index 1d37ae6f..00000000 --- a/kubevirt/models/v1alpha1_data_volume.py +++ /dev/null @@ -1,232 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1alpha1DataVolume(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', - 'spec': 'V1alpha1DataVolumeSpec', - 'status': 'V1alpha1DataVolumeStatus' - } - - attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'metadata': 'metadata', - 'spec': 'spec', - 'status': 'status' - } - - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1alpha1DataVolume - a model defined in Swagger - """ - - self._api_version = None - self._kind = None - self._metadata = None - self._spec = None - self._status = None - - if api_version is not None: - self.api_version = api_version - if kind is not None: - self.kind = kind - if metadata is not None: - self.metadata = metadata - self.spec = spec - if status is not None: - self.status = status - - @property - def api_version(self): - """ - Gets the api_version of this V1alpha1DataVolume. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - - :return: The api_version of this V1alpha1DataVolume. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1DataVolume. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - - :param api_version: The api_version of this V1alpha1DataVolume. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets the kind of this V1alpha1DataVolume. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - - :return: The kind of this V1alpha1DataVolume. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this V1alpha1DataVolume. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - - :param kind: The kind of this V1alpha1DataVolume. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this V1alpha1DataVolume. - - :return: The metadata of this V1alpha1DataVolume. - :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1DataVolume. - - :param metadata: The metadata of this V1alpha1DataVolume. - :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta - """ - - self._metadata = metadata - - @property - def spec(self): - """ - Gets the spec of this V1alpha1DataVolume. - - :return: The spec of this V1alpha1DataVolume. - :rtype: V1alpha1DataVolumeSpec - """ - return self._spec - - @spec.setter - def spec(self, spec): - """ - Sets the spec of this V1alpha1DataVolume. - - :param spec: The spec of this V1alpha1DataVolume. - :type: V1alpha1DataVolumeSpec - """ - if spec is None: - raise ValueError("Invalid value for `spec`, must not be `None`") - - self._spec = spec - - @property - def status(self): - """ - Gets the status of this V1alpha1DataVolume. - - :return: The status of this V1alpha1DataVolume. - :rtype: V1alpha1DataVolumeStatus - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this V1alpha1DataVolume. - - :param status: The status of this V1alpha1DataVolume. - :type: V1alpha1DataVolumeStatus - """ - - self._status = status - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1alpha1DataVolume): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1alpha1_data_volume_condition.py b/kubevirt/models/v1alpha1_data_volume_condition.py deleted file mode 100644 index 6634a937..00000000 --- a/kubevirt/models/v1alpha1_data_volume_condition.py +++ /dev/null @@ -1,229 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1alpha1DataVolumeCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'last_heartbeat_time': 'K8sIoApimachineryPkgApisMetaV1Time', - 'message': 'str', - 'reason': 'str', - 'status': 'str', - 'type': 'str' - } - - attribute_map = { - 'last_heartbeat_time': 'lastHeartbeatTime', - 'message': 'message', - 'reason': 'reason', - 'status': 'status', - 'type': 'type' - } - - def __init__(self, last_heartbeat_time=None, message=None, reason=None, status=None, type=None): - """ - V1alpha1DataVolumeCondition - a model defined in Swagger - """ - - self._last_heartbeat_time = None - self._message = None - self._reason = None - self._status = None - self._type = None - - if last_heartbeat_time is not None: - self.last_heartbeat_time = last_heartbeat_time - if message is not None: - self.message = message - if reason is not None: - self.reason = reason - self.status = status - self.type = type - - @property - def last_heartbeat_time(self): - """ - Gets the last_heartbeat_time of this V1alpha1DataVolumeCondition. - - :return: The last_heartbeat_time of this V1alpha1DataVolumeCondition. - :rtype: K8sIoApimachineryPkgApisMetaV1Time - """ - return self._last_heartbeat_time - - @last_heartbeat_time.setter - def last_heartbeat_time(self, last_heartbeat_time): - """ - Sets the last_heartbeat_time of this V1alpha1DataVolumeCondition. - - :param last_heartbeat_time: The last_heartbeat_time of this V1alpha1DataVolumeCondition. - :type: K8sIoApimachineryPkgApisMetaV1Time - """ - - self._last_heartbeat_time = last_heartbeat_time - - @property - def message(self): - """ - Gets the message of this V1alpha1DataVolumeCondition. - - :return: The message of this V1alpha1DataVolumeCondition. - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """ - Sets the message of this V1alpha1DataVolumeCondition. - - :param message: The message of this V1alpha1DataVolumeCondition. - :type: str - """ - - self._message = message - - @property - def reason(self): - """ - Gets the reason of this V1alpha1DataVolumeCondition. - - :return: The reason of this V1alpha1DataVolumeCondition. - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """ - Sets the reason of this V1alpha1DataVolumeCondition. - - :param reason: The reason of this V1alpha1DataVolumeCondition. - :type: str - """ - - self._reason = reason - - @property - def status(self): - """ - Gets the status of this V1alpha1DataVolumeCondition. - - :return: The status of this V1alpha1DataVolumeCondition. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this V1alpha1DataVolumeCondition. - - :param status: The status of this V1alpha1DataVolumeCondition. - :type: str - """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") - - self._status = status - - @property - def type(self): - """ - Gets the type of this V1alpha1DataVolumeCondition. - - :return: The type of this V1alpha1DataVolumeCondition. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this V1alpha1DataVolumeCondition. - - :param type: The type of this V1alpha1DataVolumeCondition. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1alpha1DataVolumeCondition): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1alpha1_data_volume_status.py b/kubevirt/models/v1alpha1_data_volume_status.py deleted file mode 100644 index e2584901..00000000 --- a/kubevirt/models/v1alpha1_data_volume_status.py +++ /dev/null @@ -1,205 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1alpha1DataVolumeStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'conditions': 'list[V1alpha1DataVolumeCondition]', - 'phase': 'str', - 'progress': 'str', - 'restart_count': 'int' - } - - attribute_map = { - 'conditions': 'conditions', - 'phase': 'phase', - 'progress': 'progress', - 'restart_count': 'restartCount' - } - - def __init__(self, conditions=None, phase=None, progress=None, restart_count=None): - """ - V1alpha1DataVolumeStatus - a model defined in Swagger - """ - - self._conditions = None - self._phase = None - self._progress = None - self._restart_count = None - - if conditions is not None: - self.conditions = conditions - if phase is not None: - self.phase = phase - if progress is not None: - self.progress = progress - if restart_count is not None: - self.restart_count = restart_count - - @property - def conditions(self): - """ - Gets the conditions of this V1alpha1DataVolumeStatus. - - :return: The conditions of this V1alpha1DataVolumeStatus. - :rtype: list[V1alpha1DataVolumeCondition] - """ - return self._conditions - - @conditions.setter - def conditions(self, conditions): - """ - Sets the conditions of this V1alpha1DataVolumeStatus. - - :param conditions: The conditions of this V1alpha1DataVolumeStatus. - :type: list[V1alpha1DataVolumeCondition] - """ - - self._conditions = conditions - - @property - def phase(self): - """ - Gets the phase of this V1alpha1DataVolumeStatus. - Phase is the current phase of the data volume - - :return: The phase of this V1alpha1DataVolumeStatus. - :rtype: str - """ - return self._phase - - @phase.setter - def phase(self, phase): - """ - Sets the phase of this V1alpha1DataVolumeStatus. - Phase is the current phase of the data volume - - :param phase: The phase of this V1alpha1DataVolumeStatus. - :type: str - """ - - self._phase = phase - - @property - def progress(self): - """ - Gets the progress of this V1alpha1DataVolumeStatus. - - :return: The progress of this V1alpha1DataVolumeStatus. - :rtype: str - """ - return self._progress - - @progress.setter - def progress(self, progress): - """ - Sets the progress of this V1alpha1DataVolumeStatus. - - :param progress: The progress of this V1alpha1DataVolumeStatus. - :type: str - """ - - self._progress = progress - - @property - def restart_count(self): - """ - Gets the restart_count of this V1alpha1DataVolumeStatus. - RestartCount is the number of times the pod populating the DataVolume has restarted - - :return: The restart_count of this V1alpha1DataVolumeStatus. - :rtype: int - """ - return self._restart_count - - @restart_count.setter - def restart_count(self, restart_count): - """ - Sets the restart_count of this V1alpha1DataVolumeStatus. - RestartCount is the number of times the pod populating the DataVolume has restarted - - :param restart_count: The restart_count of this V1alpha1DataVolumeStatus. - :type: int - """ - - self._restart_count = restart_count - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1alpha1DataVolumeStatus): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/setup.py b/setup.py index 9caab595..c32bc8f6 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.33.0-rc.0-285-g906d2e1a" +VERSION = "v0.33.0-rc.0-291-g28622190" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 0852ded5..1266affa 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.33.0-rc.0-285-g906d2e1a" +"packageVersion": "v0.33.0-rc.0-291-g28622190" } diff --git a/test/test_v1alpha1_data_volume_status.py b/test/test_v1_data_volume_template_spec.py similarity index 63% rename from test/test_v1alpha1_data_volume_status.py rename to test/test_v1_data_volume_template_spec.py index 2b5f29f9..b6e6a123 100644 --- a/test/test_v1alpha1_data_volume_status.py +++ b/test/test_v1_data_volume_template_spec.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_data_volume_status import V1alpha1DataVolumeStatus +from kubevirt.models.v1_data_volume_template_spec import V1DataVolumeTemplateSpec -class TestV1alpha1DataVolumeStatus(unittest.TestCase): - """ V1alpha1DataVolumeStatus unit test stubs """ +class TestV1DataVolumeTemplateSpec(unittest.TestCase): + """ V1DataVolumeTemplateSpec unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1DataVolumeStatus(self): + def testV1DataVolumeTemplateSpec(self): """ - Test V1alpha1DataVolumeStatus + Test V1DataVolumeTemplateSpec """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_data_volume_status.V1alpha1DataVolumeStatus() + #model = kubevirt.models.v1_data_volume_template_spec.V1DataVolumeTemplateSpec() pass diff --git a/test/test_v1alpha1_data_volume.py b/test/test_v1alpha1_data_volume.py deleted file mode 100644 index 7e1d1f97..00000000 --- a/test/test_v1alpha1_data_volume.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_data_volume import V1alpha1DataVolume - - -class TestV1alpha1DataVolume(unittest.TestCase): - """ V1alpha1DataVolume unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1DataVolume(self): - """ - Test V1alpha1DataVolume - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_data_volume.V1alpha1DataVolume() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_data_volume_condition.py b/test/test_v1alpha1_data_volume_condition.py deleted file mode 100644 index 744b1bc2..00000000 --- a/test/test_v1alpha1_data_volume_condition.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_data_volume_condition import V1alpha1DataVolumeCondition - - -class TestV1alpha1DataVolumeCondition(unittest.TestCase): - """ V1alpha1DataVolumeCondition unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1DataVolumeCondition(self): - """ - Test V1alpha1DataVolumeCondition - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_data_volume_condition.V1alpha1DataVolumeCondition() - pass - - -if __name__ == '__main__': - unittest.main() From 51a3af523b5c7c3255823e5cf4b7d07dfad898e2 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 28 Sep 2020 12:30:03 +0000 Subject: [PATCH 149/521] Client Python update by Travis Build 15336 --- README.md | 3 +- docs/V1alpha1DataVolumeSource.md | 1 + docs/V1alpha1DataVolumeSourceVDDK.md | 14 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + .../models/v1alpha1_data_volume_source.py | 32 ++- .../v1alpha1_data_volume_source_vddk.py | 237 ++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1alpha1_data_volume_source_vddk.py | 44 ++++ 14 files changed, 337 insertions(+), 9 deletions(-) create mode 100644 docs/V1alpha1DataVolumeSourceVDDK.md create mode 100644 kubevirt/models/v1alpha1_data_volume_source_vddk.py create mode 100644 test/test_v1alpha1_data_volume_source_vddk.py diff --git a/README.md b/README.md index 4d6f205e..add5560b 100644 --- a/README.md +++ b/README.md @@ -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: v0.33.0-rc.0-291-g28622190 +- Package version: v0.33.0-rc.0-302-g24459bb3 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -361,6 +361,7 @@ Class | Method | HTTP request | Description - [V1alpha1DataVolumeSourceRegistry](docs/V1alpha1DataVolumeSourceRegistry.md) - [V1alpha1DataVolumeSourceS3](docs/V1alpha1DataVolumeSourceS3.md) - [V1alpha1DataVolumeSourceUpload](docs/V1alpha1DataVolumeSourceUpload.md) + - [V1alpha1DataVolumeSourceVDDK](docs/V1alpha1DataVolumeSourceVDDK.md) - [V1alpha1DataVolumeSpec](docs/V1alpha1DataVolumeSpec.md) - [V1alpha1Error](docs/V1alpha1Error.md) - [V1alpha1SourceSpec](docs/V1alpha1SourceSpec.md) diff --git a/docs/V1alpha1DataVolumeSource.md b/docs/V1alpha1DataVolumeSource.md index edceea2b..43431027 100644 --- a/docs/V1alpha1DataVolumeSource.md +++ b/docs/V1alpha1DataVolumeSource.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **registry** | [**V1alpha1DataVolumeSourceRegistry**](V1alpha1DataVolumeSourceRegistry.md) | | [optional] **s3** | [**V1alpha1DataVolumeSourceS3**](V1alpha1DataVolumeSourceS3.md) | | [optional] **upload** | [**V1alpha1DataVolumeSourceUpload**](V1alpha1DataVolumeSourceUpload.md) | | [optional] +**vddk** | [**V1alpha1DataVolumeSourceVDDK**](V1alpha1DataVolumeSourceVDDK.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1DataVolumeSourceVDDK.md b/docs/V1alpha1DataVolumeSourceVDDK.md new file mode 100644 index 00000000..e4357338 --- /dev/null +++ b/docs/V1alpha1DataVolumeSourceVDDK.md @@ -0,0 +1,14 @@ +# V1alpha1DataVolumeSourceVDDK + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**backing_file** | **str** | BackingFile is the path to the virtual hard disk to migrate from vCenter/ESXi | [optional] +**secret_ref** | **str** | SecretRef provides a reference to a secret containing the username and password needed to access the vCenter or ESXi host | [optional] +**thumbprint** | **str** | Thumbprint is the certificate thumbprint of the vCenter or ESXi host | [optional] +**url** | **str** | URL is the URL of the vCenter or ESXi host with the VM to migrate | [optional] +**uuid** | **str** | UUID is the UUID of the virtual machine that the backing file is attached to in vCenter/ESXi | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 9bffa834..b7da46d8 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.33.0-rc.0-291-g28622190" + release_note="Auto-generated client v0.33.0-rc.0-302-g24459bb3" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 2d4f62c0..f036d49e 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -543,6 +543,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/v1alpha1_data_volume_source_upload.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_source_upload.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSourceUpload.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_source_vddk.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_source_vddk.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSourceVDDK.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSpec.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 1dedad55..1f524083 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -188,6 +188,7 @@ from .models.v1alpha1_data_volume_source_registry import V1alpha1DataVolumeSourceRegistry from .models.v1alpha1_data_volume_source_s3 import V1alpha1DataVolumeSourceS3 from .models.v1alpha1_data_volume_source_upload import V1alpha1DataVolumeSourceUpload +from .models.v1alpha1_data_volume_source_vddk import V1alpha1DataVolumeSourceVDDK from .models.v1alpha1_data_volume_spec import V1alpha1DataVolumeSpec from .models.v1alpha1_error import V1alpha1Error from .models.v1alpha1_source_spec import V1alpha1SourceSpec diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 23dd01a4..4b4e133e 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.33.0-rc.0-291-g28622190/python' + self.user_agent = 'Swagger-Codegen/v0.33.0-rc.0-302-g24459bb3/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index a76b33ce..b52c7048 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.33.0-rc.0-291-g28622190".\ + "SDK Package Version: v0.33.0-rc.0-302-g24459bb3".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index a6b3a478..b573af4a 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -188,6 +188,7 @@ from .v1alpha1_data_volume_source_registry import V1alpha1DataVolumeSourceRegistry from .v1alpha1_data_volume_source_s3 import V1alpha1DataVolumeSourceS3 from .v1alpha1_data_volume_source_upload import V1alpha1DataVolumeSourceUpload +from .v1alpha1_data_volume_source_vddk import V1alpha1DataVolumeSourceVDDK from .v1alpha1_data_volume_spec import V1alpha1DataVolumeSpec from .v1alpha1_error import V1alpha1Error from .v1alpha1_source_spec import V1alpha1SourceSpec diff --git a/kubevirt/models/v1alpha1_data_volume_source.py b/kubevirt/models/v1alpha1_data_volume_source.py index 8d5715f6..9fcf7e82 100644 --- a/kubevirt/models/v1alpha1_data_volume_source.py +++ b/kubevirt/models/v1alpha1_data_volume_source.py @@ -37,7 +37,8 @@ class V1alpha1DataVolumeSource(object): 'pvc': 'V1alpha1DataVolumeSourcePVC', 'registry': 'V1alpha1DataVolumeSourceRegistry', 's3': 'V1alpha1DataVolumeSourceS3', - 'upload': 'V1alpha1DataVolumeSourceUpload' + 'upload': 'V1alpha1DataVolumeSourceUpload', + 'vddk': 'V1alpha1DataVolumeSourceVDDK' } attribute_map = { @@ -47,10 +48,11 @@ class V1alpha1DataVolumeSource(object): 'pvc': 'pvc', 'registry': 'registry', 's3': 's3', - 'upload': 'upload' + 'upload': 'upload', + 'vddk': 'vddk' } - def __init__(self, blank=None, http=None, imageio=None, pvc=None, registry=None, s3=None, upload=None): + def __init__(self, blank=None, http=None, imageio=None, pvc=None, registry=None, s3=None, upload=None, vddk=None): """ V1alpha1DataVolumeSource - a model defined in Swagger """ @@ -62,6 +64,7 @@ def __init__(self, blank=None, http=None, imageio=None, pvc=None, registry=None, self._registry = None self._s3 = None self._upload = None + self._vddk = None if blank is not None: self.blank = blank @@ -77,6 +80,8 @@ def __init__(self, blank=None, http=None, imageio=None, pvc=None, registry=None, self.s3 = s3 if upload is not None: self.upload = upload + if vddk is not None: + self.vddk = vddk @property def blank(self): @@ -225,6 +230,27 @@ def upload(self, upload): self._upload = upload + @property + def vddk(self): + """ + Gets the vddk of this V1alpha1DataVolumeSource. + + :return: The vddk of this V1alpha1DataVolumeSource. + :rtype: V1alpha1DataVolumeSourceVDDK + """ + return self._vddk + + @vddk.setter + def vddk(self, vddk): + """ + Sets the vddk of this V1alpha1DataVolumeSource. + + :param vddk: The vddk of this V1alpha1DataVolumeSource. + :type: V1alpha1DataVolumeSourceVDDK + """ + + self._vddk = vddk + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1alpha1_data_volume_source_vddk.py b/kubevirt/models/v1alpha1_data_volume_source_vddk.py new file mode 100644 index 00000000..bd355d96 --- /dev/null +++ b/kubevirt/models/v1alpha1_data_volume_source_vddk.py @@ -0,0 +1,237 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1DataVolumeSourceVDDK(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'backing_file': 'str', + 'secret_ref': 'str', + 'thumbprint': 'str', + 'url': 'str', + 'uuid': 'str' + } + + attribute_map = { + 'backing_file': 'backingFile', + 'secret_ref': 'secretRef', + 'thumbprint': 'thumbprint', + 'url': 'url', + 'uuid': 'uuid' + } + + def __init__(self, backing_file=None, secret_ref=None, thumbprint=None, url=None, uuid=None): + """ + V1alpha1DataVolumeSourceVDDK - a model defined in Swagger + """ + + self._backing_file = None + self._secret_ref = None + self._thumbprint = None + self._url = None + self._uuid = None + + if backing_file is not None: + self.backing_file = backing_file + if secret_ref is not None: + self.secret_ref = secret_ref + if thumbprint is not None: + self.thumbprint = thumbprint + if url is not None: + self.url = url + if uuid is not None: + self.uuid = uuid + + @property + def backing_file(self): + """ + Gets the backing_file of this V1alpha1DataVolumeSourceVDDK. + BackingFile is the path to the virtual hard disk to migrate from vCenter/ESXi + + :return: The backing_file of this V1alpha1DataVolumeSourceVDDK. + :rtype: str + """ + return self._backing_file + + @backing_file.setter + def backing_file(self, backing_file): + """ + Sets the backing_file of this V1alpha1DataVolumeSourceVDDK. + BackingFile is the path to the virtual hard disk to migrate from vCenter/ESXi + + :param backing_file: The backing_file of this V1alpha1DataVolumeSourceVDDK. + :type: str + """ + + self._backing_file = backing_file + + @property + def secret_ref(self): + """ + Gets the secret_ref of this V1alpha1DataVolumeSourceVDDK. + SecretRef provides a reference to a secret containing the username and password needed to access the vCenter or ESXi host + + :return: The secret_ref of this V1alpha1DataVolumeSourceVDDK. + :rtype: str + """ + return self._secret_ref + + @secret_ref.setter + def secret_ref(self, secret_ref): + """ + Sets the secret_ref of this V1alpha1DataVolumeSourceVDDK. + SecretRef provides a reference to a secret containing the username and password needed to access the vCenter or ESXi host + + :param secret_ref: The secret_ref of this V1alpha1DataVolumeSourceVDDK. + :type: str + """ + + self._secret_ref = secret_ref + + @property + def thumbprint(self): + """ + Gets the thumbprint of this V1alpha1DataVolumeSourceVDDK. + Thumbprint is the certificate thumbprint of the vCenter or ESXi host + + :return: The thumbprint of this V1alpha1DataVolumeSourceVDDK. + :rtype: str + """ + return self._thumbprint + + @thumbprint.setter + def thumbprint(self, thumbprint): + """ + Sets the thumbprint of this V1alpha1DataVolumeSourceVDDK. + Thumbprint is the certificate thumbprint of the vCenter or ESXi host + + :param thumbprint: The thumbprint of this V1alpha1DataVolumeSourceVDDK. + :type: str + """ + + self._thumbprint = thumbprint + + @property + def url(self): + """ + Gets the url of this V1alpha1DataVolumeSourceVDDK. + URL is the URL of the vCenter or ESXi host with the VM to migrate + + :return: The url of this V1alpha1DataVolumeSourceVDDK. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """ + Sets the url of this V1alpha1DataVolumeSourceVDDK. + URL is the URL of the vCenter or ESXi host with the VM to migrate + + :param url: The url of this V1alpha1DataVolumeSourceVDDK. + :type: str + """ + + self._url = url + + @property + def uuid(self): + """ + Gets the uuid of this V1alpha1DataVolumeSourceVDDK. + UUID is the UUID of the virtual machine that the backing file is attached to in vCenter/ESXi + + :return: The uuid of this V1alpha1DataVolumeSourceVDDK. + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """ + Sets the uuid of this V1alpha1DataVolumeSourceVDDK. + UUID is the UUID of the virtual machine that the backing file is attached to in vCenter/ESXi + + :param uuid: The uuid of this V1alpha1DataVolumeSourceVDDK. + :type: str + """ + + self._uuid = uuid + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1DataVolumeSourceVDDK): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index c32bc8f6..d17f9e16 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.33.0-rc.0-291-g28622190" +VERSION = "v0.33.0-rc.0-302-g24459bb3" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 1266affa..691c7ef7 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.33.0-rc.0-291-g28622190" +"packageVersion": "v0.33.0-rc.0-302-g24459bb3" } diff --git a/test/test_v1alpha1_data_volume_source_vddk.py b/test/test_v1alpha1_data_volume_source_vddk.py new file mode 100644 index 00000000..5c89b839 --- /dev/null +++ b/test/test_v1alpha1_data_volume_source_vddk.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_data_volume_source_vddk import V1alpha1DataVolumeSourceVDDK + + +class TestV1alpha1DataVolumeSourceVDDK(unittest.TestCase): + """ V1alpha1DataVolumeSourceVDDK unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1DataVolumeSourceVDDK(self): + """ + Test V1alpha1DataVolumeSourceVDDK + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_data_volume_source_vddk.V1alpha1DataVolumeSourceVDDK() + pass + + +if __name__ == '__main__': + unittest.main() From 302c1fa6730170148273efed8b97c29c90955e18 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 28 Sep 2020 17:32:47 +0000 Subject: [PATCH 150/521] Client Python update by Travis Build 15341 --- README.md | 2 +- docs/V1MigrationConfiguration.md | 5 ++- .../V1VirtualMachineInstanceMigrationState.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_migration_configuration.py | 38 +++++++++++++++---- ...irtual_machine_instance_migration_state.py | 30 ++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 70 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index add5560b..dcb06e0b 100644 --- a/README.md +++ b/README.md @@ -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: v0.33.0-rc.0-302-g24459bb3 +- Package version: v0.33.0-rc.0-316-g54b85f31 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1MigrationConfiguration.md b/docs/V1MigrationConfiguration.md index bca5b549..e2a0faad 100644 --- a/docs/V1MigrationConfiguration.md +++ b/docs/V1MigrationConfiguration.md @@ -3,14 +3,15 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**allow_auto_converge** | **str** | | +**allow_auto_converge** | **str** | | [optional] +**allow_post_copy** | **str** | | [optional] **bandwidth_per_migration** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | | [optional] **completion_timeout_per_gi_b** | **str** | | [optional] **node_drain_taint_key** | **str** | | [optional] **parallel_migrations_per_cluster** | **str** | | [optional] **parallel_outbound_migrations_per_node** | **str** | | [optional] **progress_timeout** | **str** | | [optional] -**unsafe_migration_override** | **str** | | +**unsafe_migration_override** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceMigrationState.md b/docs/V1VirtualMachineInstanceMigrationState.md index 9817e324..9816a2e4 100644 --- a/docs/V1VirtualMachineInstanceMigrationState.md +++ b/docs/V1VirtualMachineInstanceMigrationState.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **end_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | The time the migration action ended | [optional] **failed** | **bool** | Indicates that the migration failed | [optional] **migration_uid** | **str** | The VirtualMachineInstanceMigration object associated with this migration | [optional] +**mode** | **str** | Lets us know if the vmi is currenly running pre or post copy migration | [optional] **source_node** | **str** | The source node that the VMI originated on | [optional] **start_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | The time the migration action began | [optional] **target_direct_migration_node_ports** | **dict(str, int)** | The list of ports opened for live migration on the destination node | [optional] diff --git a/git_push.sh b/git_push.sh index b7da46d8..38066721 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.33.0-rc.0-302-g24459bb3" + release_note="Auto-generated client v0.33.0-rc.0-316-g54b85f31" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 4b4e133e..94207d02 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.33.0-rc.0-302-g24459bb3/python' + self.user_agent = 'Swagger-Codegen/v0.33.0-rc.0-316-g54b85f31/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index b52c7048..34ec851a 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.33.0-rc.0-302-g24459bb3".\ + "SDK Package Version: v0.33.0-rc.0-316-g54b85f31".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_migration_configuration.py b/kubevirt/models/v1_migration_configuration.py index d4506841..17dc117d 100644 --- a/kubevirt/models/v1_migration_configuration.py +++ b/kubevirt/models/v1_migration_configuration.py @@ -32,6 +32,7 @@ class V1MigrationConfiguration(object): """ swagger_types = { 'allow_auto_converge': 'str', + 'allow_post_copy': 'str', 'bandwidth_per_migration': 'K8sIoApimachineryPkgApiResourceQuantity', 'completion_timeout_per_gi_b': 'str', 'node_drain_taint_key': 'str', @@ -43,6 +44,7 @@ class V1MigrationConfiguration(object): attribute_map = { 'allow_auto_converge': 'allowAutoConverge', + 'allow_post_copy': 'allowPostCopy', 'bandwidth_per_migration': 'bandwidthPerMigration', 'completion_timeout_per_gi_b': 'completionTimeoutPerGiB', 'node_drain_taint_key': 'nodeDrainTaintKey', @@ -52,12 +54,13 @@ class V1MigrationConfiguration(object): 'unsafe_migration_override': 'unsafeMigrationOverride' } - def __init__(self, allow_auto_converge=None, bandwidth_per_migration=None, completion_timeout_per_gi_b=None, node_drain_taint_key=None, parallel_migrations_per_cluster=None, parallel_outbound_migrations_per_node=None, progress_timeout=None, unsafe_migration_override=None): + def __init__(self, allow_auto_converge=None, allow_post_copy=None, bandwidth_per_migration=None, completion_timeout_per_gi_b=None, node_drain_taint_key=None, parallel_migrations_per_cluster=None, parallel_outbound_migrations_per_node=None, progress_timeout=None, unsafe_migration_override=None): """ V1MigrationConfiguration - a model defined in Swagger """ self._allow_auto_converge = None + self._allow_post_copy = None self._bandwidth_per_migration = None self._completion_timeout_per_gi_b = None self._node_drain_taint_key = None @@ -66,7 +69,10 @@ def __init__(self, allow_auto_converge=None, bandwidth_per_migration=None, compl self._progress_timeout = None self._unsafe_migration_override = None - self.allow_auto_converge = allow_auto_converge + if allow_auto_converge is not None: + self.allow_auto_converge = allow_auto_converge + if allow_post_copy is not None: + self.allow_post_copy = allow_post_copy if bandwidth_per_migration is not None: self.bandwidth_per_migration = bandwidth_per_migration if completion_timeout_per_gi_b is not None: @@ -79,7 +85,8 @@ def __init__(self, allow_auto_converge=None, bandwidth_per_migration=None, compl self.parallel_outbound_migrations_per_node = parallel_outbound_migrations_per_node if progress_timeout is not None: self.progress_timeout = progress_timeout - self.unsafe_migration_override = unsafe_migration_override + if unsafe_migration_override is not None: + self.unsafe_migration_override = unsafe_migration_override @property def allow_auto_converge(self): @@ -99,11 +106,30 @@ def allow_auto_converge(self, allow_auto_converge): :param allow_auto_converge: The allow_auto_converge of this V1MigrationConfiguration. :type: str """ - if allow_auto_converge is None: - raise ValueError("Invalid value for `allow_auto_converge`, must not be `None`") self._allow_auto_converge = allow_auto_converge + @property + def allow_post_copy(self): + """ + Gets the allow_post_copy of this V1MigrationConfiguration. + + :return: The allow_post_copy of this V1MigrationConfiguration. + :rtype: str + """ + return self._allow_post_copy + + @allow_post_copy.setter + def allow_post_copy(self, allow_post_copy): + """ + Sets the allow_post_copy of this V1MigrationConfiguration. + + :param allow_post_copy: The allow_post_copy of this V1MigrationConfiguration. + :type: str + """ + + self._allow_post_copy = allow_post_copy + @property def bandwidth_per_migration(self): """ @@ -248,8 +274,6 @@ def unsafe_migration_override(self, unsafe_migration_override): :param unsafe_migration_override: The unsafe_migration_override of this V1MigrationConfiguration. :type: str """ - if unsafe_migration_override is None: - raise ValueError("Invalid value for `unsafe_migration_override`, must not be `None`") self._unsafe_migration_override = unsafe_migration_override diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_state.py b/kubevirt/models/v1_virtual_machine_instance_migration_state.py index df922c51..9c2ce7d0 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_state.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_state.py @@ -37,6 +37,7 @@ class V1VirtualMachineInstanceMigrationState(object): 'end_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', 'failed': 'bool', 'migration_uid': 'str', + 'mode': 'str', 'source_node': 'str', 'start_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', 'target_direct_migration_node_ports': 'dict(str, int)', @@ -53,6 +54,7 @@ class V1VirtualMachineInstanceMigrationState(object): 'end_timestamp': 'endTimestamp', 'failed': 'failed', 'migration_uid': 'migrationUid', + 'mode': 'mode', 'source_node': 'sourceNode', 'start_timestamp': 'startTimestamp', 'target_direct_migration_node_ports': 'targetDirectMigrationNodePorts', @@ -62,7 +64,7 @@ class V1VirtualMachineInstanceMigrationState(object): 'target_pod': 'targetPod' } - def __init__(self, abort_requested=None, abort_status=None, completed=None, end_timestamp=None, failed=None, migration_uid=None, source_node=None, start_timestamp=None, target_direct_migration_node_ports=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_pod=None): + def __init__(self, abort_requested=None, abort_status=None, completed=None, end_timestamp=None, failed=None, migration_uid=None, mode=None, source_node=None, start_timestamp=None, target_direct_migration_node_ports=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_pod=None): """ V1VirtualMachineInstanceMigrationState - a model defined in Swagger """ @@ -73,6 +75,7 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self._end_timestamp = None self._failed = None self._migration_uid = None + self._mode = None self._source_node = None self._start_timestamp = None self._target_direct_migration_node_ports = None @@ -93,6 +96,8 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self.failed = failed if migration_uid is not None: self.migration_uid = migration_uid + if mode is not None: + self.mode = mode if source_node is not None: self.source_node = source_node if start_timestamp is not None: @@ -246,6 +251,29 @@ def migration_uid(self, migration_uid): self._migration_uid = migration_uid + @property + def mode(self): + """ + Gets the mode of this V1VirtualMachineInstanceMigrationState. + Lets us know if the vmi is currenly running pre or post copy migration + + :return: The mode of this V1VirtualMachineInstanceMigrationState. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """ + Sets the mode of this V1VirtualMachineInstanceMigrationState. + Lets us know if the vmi is currenly running pre or post copy migration + + :param mode: The mode of this V1VirtualMachineInstanceMigrationState. + :type: str + """ + + self._mode = mode + @property def source_node(self): """ diff --git a/setup.py b/setup.py index d17f9e16..4c0d2d85 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.33.0-rc.0-302-g24459bb3" +VERSION = "v0.33.0-rc.0-316-g54b85f31" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 691c7ef7..9e8341ba 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.33.0-rc.0-302-g24459bb3" +"packageVersion": "v0.33.0-rc.0-316-g54b85f31" } From 1d9c3bbde9872d519675042cb37286e92497a94c Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 29 Sep 2020 17:38:12 +0000 Subject: [PATCH 151/521] Client Python update by Travis Build 15366 --- README.md | 3 +- docs/V1DataVolumeTemplateDummyStatus.md | 9 ++ docs/V1DataVolumeTemplateSpec.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + .../v1_data_volume_template_dummy_status.py | 99 +++++++++++++++++++ .../models/v1_data_volume_template_spec.py | 34 ++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...st_v1_data_volume_template_dummy_status.py | 44 +++++++++ 14 files changed, 196 insertions(+), 9 deletions(-) create mode 100644 docs/V1DataVolumeTemplateDummyStatus.md create mode 100644 kubevirt/models/v1_data_volume_template_dummy_status.py create mode 100644 test/test_v1_data_volume_template_dummy_status.py diff --git a/README.md b/README.md index dcb06e0b..9b542a3c 100644 --- a/README.md +++ b/README.md @@ -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: v0.33.0-rc.0-316-g54b85f31 +- Package version: v0.33.0-rc.0-321-g8600e45f - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -255,6 +255,7 @@ Class | Method | HTTP request | Description - [V1DHCPOptions](docs/V1DHCPOptions.md) - [V1DHCPPrivateOptions](docs/V1DHCPPrivateOptions.md) - [V1DataVolumeSource](docs/V1DataVolumeSource.md) + - [V1DataVolumeTemplateDummyStatus](docs/V1DataVolumeTemplateDummyStatus.md) - [V1DataVolumeTemplateSpec](docs/V1DataVolumeTemplateSpec.md) - [V1DeveloperConfiguration](docs/V1DeveloperConfiguration.md) - [V1Devices](docs/V1Devices.md) diff --git a/docs/V1DataVolumeTemplateDummyStatus.md b/docs/V1DataVolumeTemplateDummyStatus.md new file mode 100644 index 00000000..f1f8712d --- /dev/null +++ b/docs/V1DataVolumeTemplateDummyStatus.md @@ -0,0 +1,9 @@ +# V1DataVolumeTemplateDummyStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1DataVolumeTemplateSpec.md b/docs/V1DataVolumeTemplateSpec.md index 08c315aa..c19350e8 100644 --- a/docs/V1DataVolumeTemplateSpec.md +++ b/docs/V1DataVolumeTemplateSpec.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] **spec** | [**V1alpha1DataVolumeSpec**](V1alpha1DataVolumeSpec.md) | DataVolumeSpec contains the DataVolume specification. | +**status** | [**V1DataVolumeTemplateDummyStatus**](V1DataVolumeTemplateDummyStatus.md) | DataVolumeTemplateDummyStatus is here simply for backwards compatibility with a previous API. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 38066721..368d9b93 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.33.0-rc.0-316-g54b85f31" + release_note="Auto-generated client v0.33.0-rc.0-321-g8600e45f" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index f036d49e..d1de828c 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -225,6 +225,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_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_data_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DataVolumeSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_data_volume_template_dummy_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_data_volume_template_dummy_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DataVolumeTemplateDummyStatus.md [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 diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 1f524083..38442ee6 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -82,6 +82,7 @@ from .models.v1_dhcp_options import V1DHCPOptions from .models.v1_dhcp_private_options import V1DHCPPrivateOptions 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_developer_configuration import V1DeveloperConfiguration from .models.v1_devices import V1Devices diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 94207d02..7ff7bb5c 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.33.0-rc.0-316-g54b85f31/python' + self.user_agent = 'Swagger-Codegen/v0.33.0-rc.0-321-g8600e45f/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 34ec851a..6ecc6f54 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.33.0-rc.0-316-g54b85f31".\ + "SDK Package Version: v0.33.0-rc.0-321-g8600e45f".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index b573af4a..4ca1c3c4 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -82,6 +82,7 @@ from .v1_dhcp_options import V1DHCPOptions from .v1_dhcp_private_options import V1DHCPPrivateOptions 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_developer_configuration import V1DeveloperConfiguration from .v1_devices import V1Devices diff --git a/kubevirt/models/v1_data_volume_template_dummy_status.py b/kubevirt/models/v1_data_volume_template_dummy_status.py new file mode 100644 index 00000000..2697c74e --- /dev/null +++ b/kubevirt/models/v1_data_volume_template_dummy_status.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DataVolumeTemplateDummyStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1DataVolumeTemplateDummyStatus - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1DataVolumeTemplateDummyStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_data_volume_template_spec.py b/kubevirt/models/v1_data_volume_template_spec.py index 09af3a59..c71ee0ee 100644 --- a/kubevirt/models/v1_data_volume_template_spec.py +++ b/kubevirt/models/v1_data_volume_template_spec.py @@ -32,25 +32,30 @@ class V1DataVolumeTemplateSpec(object): """ swagger_types = { 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', - 'spec': 'V1alpha1DataVolumeSpec' + 'spec': 'V1alpha1DataVolumeSpec', + 'status': 'V1DataVolumeTemplateDummyStatus' } attribute_map = { 'metadata': 'metadata', - 'spec': 'spec' + 'spec': 'spec', + 'status': 'status' } - def __init__(self, metadata=None, spec=None): + def __init__(self, metadata=None, spec=None, status=None): """ V1DataVolumeTemplateSpec - a model defined in Swagger """ self._metadata = None self._spec = None + self._status = None if metadata is not None: self.metadata = metadata self.spec = spec + if status is not None: + self.status = status @property def metadata(self): @@ -98,6 +103,29 @@ def spec(self, spec): self._spec = spec + @property + def status(self): + """ + Gets the status of this V1DataVolumeTemplateSpec. + DataVolumeTemplateDummyStatus is here simply for backwards compatibility with a previous API. + + :return: The status of this V1DataVolumeTemplateSpec. + :rtype: V1DataVolumeTemplateDummyStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1DataVolumeTemplateSpec. + DataVolumeTemplateDummyStatus is here simply for backwards compatibility with a previous API. + + :param status: The status of this V1DataVolumeTemplateSpec. + :type: V1DataVolumeTemplateDummyStatus + """ + + self._status = status + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 4c0d2d85..b905cddd 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.33.0-rc.0-316-g54b85f31" +VERSION = "v0.33.0-rc.0-321-g8600e45f" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 9e8341ba..8d0ea2cb 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.33.0-rc.0-316-g54b85f31" +"packageVersion": "v0.33.0-rc.0-321-g8600e45f" } diff --git a/test/test_v1_data_volume_template_dummy_status.py b/test/test_v1_data_volume_template_dummy_status.py new file mode 100644 index 00000000..a9a6627b --- /dev/null +++ b/test/test_v1_data_volume_template_dummy_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_data_volume_template_dummy_status import V1DataVolumeTemplateDummyStatus + + +class TestV1DataVolumeTemplateDummyStatus(unittest.TestCase): + """ V1DataVolumeTemplateDummyStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DataVolumeTemplateDummyStatus(self): + """ + Test V1DataVolumeTemplateDummyStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_data_volume_template_dummy_status.V1DataVolumeTemplateDummyStatus() + pass + + +if __name__ == '__main__': + unittest.main() From e3b2df7e5b79fdc14494001b537282201babf93f Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 30 Sep 2020 19:16:40 +0000 Subject: [PATCH 152/521] Client Python update by Travis Build 15386 --- README.md | 2 +- docs/V1KubeVirtConfiguration.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_kube_virt_configuration.py | 6 +++--- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 9b542a3c..83955364 100644 --- a/README.md +++ b/README.md @@ -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: v0.33.0-rc.0-321-g8600e45f +- Package version: v0.33.0-rc.0-347-g75518673 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index 0493da5a..959c4c7f 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cpu_model** | **str** | | [optional] -**cpu_request** | **str** | | [optional] +**cpu_request** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | | [optional] **developer_configuration** | [**V1DeveloperConfiguration**](V1DeveloperConfiguration.md) | | [optional] **emulated_machines** | **list[str]** | | [optional] **image_pull_policy** | **str** | | [optional] diff --git a/git_push.sh b/git_push.sh index 368d9b93..718c5f09 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.33.0-rc.0-321-g8600e45f" + release_note="Auto-generated client v0.33.0-rc.0-347-g75518673" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 7ff7bb5c..84490fa6 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.33.0-rc.0-321-g8600e45f/python' + self.user_agent = 'Swagger-Codegen/v0.33.0-rc.0-347-g75518673/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 6ecc6f54..c421258f 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.33.0-rc.0-321-g8600e45f".\ + "SDK Package Version: v0.33.0-rc.0-347-g75518673".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index 8b2d5eca..ad5bb320 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -32,7 +32,7 @@ class V1KubeVirtConfiguration(object): """ swagger_types = { 'cpu_model': 'str', - 'cpu_request': 'str', + 'cpu_request': 'K8sIoApimachineryPkgApiResourceQuantity', 'developer_configuration': 'V1DeveloperConfiguration', 'emulated_machines': 'list[str]', 'image_pull_policy': 'str', @@ -135,7 +135,7 @@ def cpu_request(self): Gets the cpu_request of this V1KubeVirtConfiguration. :return: The cpu_request of this V1KubeVirtConfiguration. - :rtype: str + :rtype: K8sIoApimachineryPkgApiResourceQuantity """ return self._cpu_request @@ -145,7 +145,7 @@ def cpu_request(self, cpu_request): Sets the cpu_request of this V1KubeVirtConfiguration. :param cpu_request: The cpu_request of this V1KubeVirtConfiguration. - :type: str + :type: K8sIoApimachineryPkgApiResourceQuantity """ self._cpu_request = cpu_request diff --git a/setup.py b/setup.py index b905cddd..563a54dd 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.33.0-rc.0-321-g8600e45f" +VERSION = "v0.33.0-rc.0-347-g75518673" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 8d0ea2cb..89f3be6e 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.33.0-rc.0-321-g8600e45f" +"packageVersion": "v0.33.0-rc.0-347-g75518673" } From c978430209bb63d6ca8d8379584283f30f365c69 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 1 Oct 2020 06:01:54 +0000 Subject: [PATCH 153/521] Client Python update by Travis Build 15387 --- README.md | 2 +- docs/V1BIOS.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_bios.py | 32 +++++++++++++++++++++++++++++--- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 83955364..9ec44791 100644 --- a/README.md +++ b/README.md @@ -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: v0.33.0-rc.0-347-g75518673 +- Package version: v0.33.0-rc.0-350-g230a250b - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1BIOS.md b/docs/V1BIOS.md index c9d26c16..4a0c3d0e 100644 --- a/docs/V1BIOS.md +++ b/docs/V1BIOS.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**use_serial** | **bool** | If set, the BIOS output will be transmitted over serial | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 718c5f09..22c5c343 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.33.0-rc.0-347-g75518673" + release_note="Auto-generated client v0.33.0-rc.0-350-g230a250b" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 84490fa6..761924fb 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.33.0-rc.0-347-g75518673/python' + self.user_agent = 'Swagger-Codegen/v0.33.0-rc.0-350-g230a250b/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c421258f..8ef809d4 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.33.0-rc.0-347-g75518673".\ + "SDK Package Version: v0.33.0-rc.0-350-g230a250b".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_bios.py b/kubevirt/models/v1_bios.py index 170dfab2..3c502293 100644 --- a/kubevirt/models/v1_bios.py +++ b/kubevirt/models/v1_bios.py @@ -31,19 +31,45 @@ class V1BIOS(object): and the value is json key in definition. """ swagger_types = { - + 'use_serial': 'bool' } attribute_map = { - + 'use_serial': 'useSerial' } - def __init__(self): + def __init__(self, use_serial=None): """ V1BIOS - a model defined in Swagger """ + self._use_serial = None + if use_serial is not None: + self.use_serial = use_serial + + @property + def use_serial(self): + """ + Gets the use_serial of this V1BIOS. + If set, the BIOS output will be transmitted over serial + + :return: The use_serial of this V1BIOS. + :rtype: bool + """ + return self._use_serial + + @use_serial.setter + def use_serial(self, use_serial): + """ + Sets the use_serial of this V1BIOS. + If set, the BIOS output will be transmitted over serial + + :param use_serial: The use_serial of this V1BIOS. + :type: bool + """ + + self._use_serial = use_serial def to_dict(self): """ diff --git a/setup.py b/setup.py index 563a54dd..eae36565 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.33.0-rc.0-347-g75518673" +VERSION = "v0.33.0-rc.0-350-g230a250b" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 89f3be6e..a1243b01 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.33.0-rc.0-347-g75518673" +"packageVersion": "v0.33.0-rc.0-350-g230a250b" } From eff0990c3a1e8db868ff9ee51506e9e8c4873070 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 6 Oct 2020 02:57:50 +0000 Subject: [PATCH 154/521] Client Python update by Travis Build 15433 --- README.md | 2 +- docs/V1DataVolumeTemplateSpec.md | 2 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../models/v1_data_volume_template_spec.py | 58 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 65 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 9ec44791..7d300af5 100644 --- a/README.md +++ b/README.md @@ -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: v0.33.0-rc.0-350-g230a250b +- Package version: v0.34.0-rc.0-44-g94f9a7cb - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1DataVolumeTemplateSpec.md b/docs/V1DataVolumeTemplateSpec.md index c19350e8..e7893568 100644 --- a/docs/V1DataVolumeTemplateSpec.md +++ b/docs/V1DataVolumeTemplateSpec.md @@ -3,6 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] **spec** | [**V1alpha1DataVolumeSpec**](V1alpha1DataVolumeSpec.md) | DataVolumeSpec contains the DataVolume specification. | **status** | [**V1DataVolumeTemplateDummyStatus**](V1DataVolumeTemplateDummyStatus.md) | DataVolumeTemplateDummyStatus is here simply for backwards compatibility with a previous API. | [optional] diff --git a/git_push.sh b/git_push.sh index 22c5c343..075209ba 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.33.0-rc.0-350-g230a250b" + release_note="Auto-generated client v0.34.0-rc.0-44-g94f9a7cb" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 761924fb..87c924e0 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.33.0-rc.0-350-g230a250b/python' + self.user_agent = 'Swagger-Codegen/v0.34.0-rc.0-44-g94f9a7cb/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 8ef809d4..c3abaf96 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.33.0-rc.0-350-g230a250b".\ + "SDK Package Version: v0.34.0-rc.0-44-g94f9a7cb".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_data_volume_template_spec.py b/kubevirt/models/v1_data_volume_template_spec.py index c71ee0ee..a70be1d8 100644 --- a/kubevirt/models/v1_data_volume_template_spec.py +++ b/kubevirt/models/v1_data_volume_template_spec.py @@ -31,32 +31,88 @@ class V1DataVolumeTemplateSpec(object): and the value is json key in definition. """ swagger_types = { + 'api_version': 'str', + 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', 'spec': 'V1alpha1DataVolumeSpec', 'status': 'V1DataVolumeTemplateDummyStatus' } attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', 'metadata': 'metadata', 'spec': 'spec', 'status': 'status' } - def __init__(self, metadata=None, spec=None, status=None): + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): """ V1DataVolumeTemplateSpec - a model defined in Swagger """ + self._api_version = None + self._kind = None self._metadata = None self._spec = None self._status = None + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind if metadata is not None: self.metadata = metadata self.spec = spec if status is not None: self.status = status + @property + def api_version(self): + """ + Gets the api_version of this V1DataVolumeTemplateSpec. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1DataVolumeTemplateSpec. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1DataVolumeTemplateSpec. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1DataVolumeTemplateSpec. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1DataVolumeTemplateSpec. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1DataVolumeTemplateSpec. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1DataVolumeTemplateSpec. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1DataVolumeTemplateSpec. + :type: str + """ + + self._kind = kind + @property def metadata(self): """ diff --git a/setup.py b/setup.py index eae36565..2aa776bd 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.33.0-rc.0-350-g230a250b" +VERSION = "v0.34.0-rc.0-44-g94f9a7cb" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index a1243b01..6b994728 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.33.0-rc.0-350-g230a250b" +"packageVersion": "v0.34.0-rc.0-44-g94f9a7cb" } From 66e374a8623f4ebb409c94e3582d488fe6b9b8fd Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 6 Oct 2020 19:02:50 +0000 Subject: [PATCH 155/521] Client Python update by Travis Build 15440 --- README.md | 2 +- docs/V1Devices.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_devices.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 7d300af5..98b166b5 100644 --- a/README.md +++ b/README.md @@ -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: v0.34.0-rc.0-44-g94f9a7cb +- Package version: v0.34.0-rc.0-57-g6eac6019 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index 641ad4ef..86d2d33a 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **gpus** | [**list[V1GPU]**](V1GPU.md) | Whether to attach a GPU device to the vmi. | [optional] **inputs** | [**list[V1Input]**](V1Input.md) | Inputs describe input devices | [optional] **interfaces** | [**list[V1Interface]**](V1Interface.md) | Interfaces describe network interfaces which are added to the vmi. | [optional] -**network_interface_multiqueue** | **bool** | If specified, virtual network interfaces configured with a virtio bus will also enable the vhost multiqueue feature | [optional] +**network_interface_multiqueue** | **bool** | If specified, virtual network interfaces configured with a virtio bus will also enable the vhost multiqueue feature for network devices. The number of queues created depends on additional factors of the VirtualMachineInstance, like the number of guest CPUs. | [optional] **rng** | [**V1Rng**](V1Rng.md) | Whether to have random number generator from host | [optional] **watchdog** | [**V1Watchdog**](V1Watchdog.md) | Watchdog describes a watchdog device which can be added to the vmi. | [optional] diff --git a/git_push.sh b/git_push.sh index 075209ba..0982e6c2 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.34.0-rc.0-44-g94f9a7cb" + release_note="Auto-generated client v0.34.0-rc.0-57-g6eac6019" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 87c924e0..01d2b7a0 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.34.0-rc.0-44-g94f9a7cb/python' + self.user_agent = 'Swagger-Codegen/v0.34.0-rc.0-57-g6eac6019/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c3abaf96..4e34dd86 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.34.0-rc.0-44-g94f9a7cb".\ + "SDK Package Version: v0.34.0-rc.0-57-g6eac6019".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index afc48eae..46fcbd1e 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -342,7 +342,7 @@ def interfaces(self, interfaces): def network_interface_multiqueue(self): """ Gets the network_interface_multiqueue of this V1Devices. - If specified, virtual network interfaces configured with a virtio bus will also enable the vhost multiqueue feature + If specified, virtual network interfaces configured with a virtio bus will also enable the vhost multiqueue feature for network devices. The number of queues created depends on additional factors of the VirtualMachineInstance, like the number of guest CPUs. :return: The network_interface_multiqueue of this V1Devices. :rtype: bool @@ -353,7 +353,7 @@ def network_interface_multiqueue(self): def network_interface_multiqueue(self, network_interface_multiqueue): """ Sets the network_interface_multiqueue of this V1Devices. - If specified, virtual network interfaces configured with a virtio bus will also enable the vhost multiqueue feature + If specified, virtual network interfaces configured with a virtio bus will also enable the vhost multiqueue feature for network devices. The number of queues created depends on additional factors of the VirtualMachineInstance, like the number of guest CPUs. :param network_interface_multiqueue: The network_interface_multiqueue of this V1Devices. :type: bool diff --git a/setup.py b/setup.py index 2aa776bd..b7667348 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.34.0-rc.0-44-g94f9a7cb" +VERSION = "v0.34.0-rc.0-57-g6eac6019" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 6b994728..155c5de4 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.34.0-rc.0-44-g94f9a7cb" +"packageVersion": "v0.34.0-rc.0-57-g6eac6019" } From d6253bcf90a45e61a1045a356b4a62be1d575dfe Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 15 Oct 2020 23:55:16 +0000 Subject: [PATCH 156/521] Client Python update by Travis Build 15488 --- README.md | 7 +- docs/K8sIoApiCoreV1DownwardAPIVolumeFile.md | 13 ++ docs/K8sIoApiCoreV1ObjectFieldSelector.md | 11 + docs/K8sIoApiCoreV1ResourceFieldSelector.md | 12 + docs/V1DownwardAPIVolumeSource.md | 11 + docs/V1VirtualMachineStatus.md | 1 + docs/V1Volume.md | 1 + docs/V1VolumeSnapshotStatus.md | 12 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 15 ++ kubevirt/__init__.py | 5 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 5 + ...io_api_core_v1_downward_api_volume_file.py | 210 ++++++++++++++++++ ...8s_io_api_core_v1_object_field_selector.py | 154 +++++++++++++ ..._io_api_core_v1_resource_field_selector.py | 182 +++++++++++++++ .../models/v1_downward_api_volume_source.py | 153 +++++++++++++ kubevirt/models/v1_virtual_machine_status.py | 34 ++- kubevirt/models/v1_volume.py | 30 ++- kubevirt/models/v1_volume_snapshot_status.py | 183 +++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- ...io_api_core_v1_downward_api_volume_file.py | 44 ++++ ...8s_io_api_core_v1_object_field_selector.py | 44 ++++ ..._io_api_core_v1_resource_field_selector.py | 44 ++++ test/test_v1_downward_api_volume_source.py | 44 ++++ test/test_v1_volume_snapshot_status.py | 44 ++++ 28 files changed, 1259 insertions(+), 10 deletions(-) create mode 100644 docs/K8sIoApiCoreV1DownwardAPIVolumeFile.md create mode 100644 docs/K8sIoApiCoreV1ObjectFieldSelector.md create mode 100644 docs/K8sIoApiCoreV1ResourceFieldSelector.md create mode 100644 docs/V1DownwardAPIVolumeSource.md create mode 100644 docs/V1VolumeSnapshotStatus.md create mode 100644 kubevirt/models/k8s_io_api_core_v1_downward_api_volume_file.py create mode 100644 kubevirt/models/k8s_io_api_core_v1_object_field_selector.py create mode 100644 kubevirt/models/k8s_io_api_core_v1_resource_field_selector.py create mode 100644 kubevirt/models/v1_downward_api_volume_source.py create mode 100644 kubevirt/models/v1_volume_snapshot_status.py create mode 100644 test/test_k8s_io_api_core_v1_downward_api_volume_file.py create mode 100644 test/test_k8s_io_api_core_v1_object_field_selector.py create mode 100644 test/test_k8s_io_api_core_v1_resource_field_selector.py create mode 100644 test/test_v1_downward_api_volume_source.py create mode 100644 test/test_v1_volume_snapshot_status.py diff --git a/README.md b/README.md index 98b166b5..899120c3 100644 --- a/README.md +++ b/README.md @@ -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: v0.34.0-rc.0-57-g6eac6019 +- Package version: v0.34.0-rc.0-125-g9e01655c - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -188,6 +188,7 @@ Class | Method | HTTP request | Description ## Documentation For Models - [K8sIoApiCoreV1Affinity](docs/K8sIoApiCoreV1Affinity.md) + - [K8sIoApiCoreV1DownwardAPIVolumeFile](docs/K8sIoApiCoreV1DownwardAPIVolumeFile.md) - [K8sIoApiCoreV1HTTPGetAction](docs/K8sIoApiCoreV1HTTPGetAction.md) - [K8sIoApiCoreV1HTTPHeader](docs/K8sIoApiCoreV1HTTPHeader.md) - [K8sIoApiCoreV1LocalObjectReference](docs/K8sIoApiCoreV1LocalObjectReference.md) @@ -195,6 +196,7 @@ Class | Method | HTTP request | Description - [K8sIoApiCoreV1NodeSelector](docs/K8sIoApiCoreV1NodeSelector.md) - [K8sIoApiCoreV1NodeSelectorRequirement](docs/K8sIoApiCoreV1NodeSelectorRequirement.md) - [K8sIoApiCoreV1NodeSelectorTerm](docs/K8sIoApiCoreV1NodeSelectorTerm.md) + - [K8sIoApiCoreV1ObjectFieldSelector](docs/K8sIoApiCoreV1ObjectFieldSelector.md) - [K8sIoApiCoreV1PersistentVolumeClaim](docs/K8sIoApiCoreV1PersistentVolumeClaim.md) - [K8sIoApiCoreV1PersistentVolumeClaimCondition](docs/K8sIoApiCoreV1PersistentVolumeClaimCondition.md) - [K8sIoApiCoreV1PersistentVolumeClaimSpec](docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md) @@ -206,6 +208,7 @@ Class | Method | HTTP request | Description - [K8sIoApiCoreV1PodDNSConfig](docs/K8sIoApiCoreV1PodDNSConfig.md) - [K8sIoApiCoreV1PodDNSConfigOption](docs/K8sIoApiCoreV1PodDNSConfigOption.md) - [K8sIoApiCoreV1PreferredSchedulingTerm](docs/K8sIoApiCoreV1PreferredSchedulingTerm.md) + - [K8sIoApiCoreV1ResourceFieldSelector](docs/K8sIoApiCoreV1ResourceFieldSelector.md) - [K8sIoApiCoreV1ResourceRequirements](docs/K8sIoApiCoreV1ResourceRequirements.md) - [K8sIoApiCoreV1TCPSocketAction](docs/K8sIoApiCoreV1TCPSocketAction.md) - [K8sIoApiCoreV1Toleration](docs/K8sIoApiCoreV1Toleration.md) @@ -262,6 +265,7 @@ Class | Method | HTTP request | Description - [V1Disk](docs/V1Disk.md) - [V1DiskTarget](docs/V1DiskTarget.md) - [V1DomainSpec](docs/V1DomainSpec.md) + - [V1DownwardAPIVolumeSource](docs/V1DownwardAPIVolumeSource.md) - [V1EFI](docs/V1EFI.md) - [V1EmptyDiskSource](docs/V1EmptyDiskSource.md) - [V1EphemeralVolumeSource](docs/V1EphemeralVolumeSource.md) @@ -352,6 +356,7 @@ Class | Method | HTTP request | Description - [V1VirtualMachineStateChangeRequest](docs/V1VirtualMachineStateChangeRequest.md) - [V1VirtualMachineStatus](docs/V1VirtualMachineStatus.md) - [V1Volume](docs/V1Volume.md) + - [V1VolumeSnapshotStatus](docs/V1VolumeSnapshotStatus.md) - [V1Watchdog](docs/V1Watchdog.md) - [V1alpha1Condition](docs/V1alpha1Condition.md) - [V1alpha1DataVolumeBlankImage](docs/V1alpha1DataVolumeBlankImage.md) diff --git a/docs/K8sIoApiCoreV1DownwardAPIVolumeFile.md b/docs/K8sIoApiCoreV1DownwardAPIVolumeFile.md new file mode 100644 index 00000000..a4b3f17a --- /dev/null +++ b/docs/K8sIoApiCoreV1DownwardAPIVolumeFile.md @@ -0,0 +1,13 @@ +# K8sIoApiCoreV1DownwardAPIVolumeFile + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**field_ref** | [**K8sIoApiCoreV1ObjectFieldSelector**](K8sIoApiCoreV1ObjectFieldSelector.md) | Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. | [optional] +**mode** | **int** | Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] +**path** | **str** | Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' | +**resource_field_ref** | [**K8sIoApiCoreV1ResourceFieldSelector**](K8sIoApiCoreV1ResourceFieldSelector.md) | Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/K8sIoApiCoreV1ObjectFieldSelector.md b/docs/K8sIoApiCoreV1ObjectFieldSelector.md new file mode 100644 index 00000000..7b6be5b5 --- /dev/null +++ b/docs/K8sIoApiCoreV1ObjectFieldSelector.md @@ -0,0 +1,11 @@ +# K8sIoApiCoreV1ObjectFieldSelector + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | Version of the schema the FieldPath is written in terms of, defaults to \"v1\". | [optional] +**field_path** | **str** | Path of the field to select in the specified API version. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/K8sIoApiCoreV1ResourceFieldSelector.md b/docs/K8sIoApiCoreV1ResourceFieldSelector.md new file mode 100644 index 00000000..3c6c84cf --- /dev/null +++ b/docs/K8sIoApiCoreV1ResourceFieldSelector.md @@ -0,0 +1,12 @@ +# K8sIoApiCoreV1ResourceFieldSelector + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**container_name** | **str** | Container name: required for volumes, optional for env vars | [optional] +**divisor** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | Specifies the output format of the exposed resources, defaults to \"1\" | [optional] +**resource** | **str** | Required: resource to select | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1DownwardAPIVolumeSource.md b/docs/V1DownwardAPIVolumeSource.md new file mode 100644 index 00000000..327db4ab --- /dev/null +++ b/docs/V1DownwardAPIVolumeSource.md @@ -0,0 +1,11 @@ +# V1DownwardAPIVolumeSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fields** | [**list[K8sIoApiCoreV1DownwardAPIVolumeFile]**](K8sIoApiCoreV1DownwardAPIVolumeFile.md) | Fields is a list of downward API volume file | [optional] +**volume_label** | **str** | The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineStatus.md b/docs/V1VirtualMachineStatus.md index 736a2901..6ddbeea7 100644 --- a/docs/V1VirtualMachineStatus.md +++ b/docs/V1VirtualMachineStatus.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **ready** | **bool** | Ready indicates if the virtual machine is running and ready | [optional] **snapshot_in_progress** | **str** | SnapshotInProgress is the name of the VirtualMachineSnapshot currently executing | [optional] **state_change_requests** | [**list[V1VirtualMachineStateChangeRequest]**](V1VirtualMachineStateChangeRequest.md) | StateChangeRequests indicates a list of actions that should be taken on a VMI e.g. stop a specific VMI then start a new one. | [optional] +**volume_snapshot_statuses** | [**list[V1VolumeSnapshotStatus]**](V1VolumeSnapshotStatus.md) | VolumeSnapshotStatuses indicates a list of statuses whether snapshotting is supported by each volume. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Volume.md b/docs/V1Volume.md index 9e80cb61..d32d93c2 100644 --- a/docs/V1Volume.md +++ b/docs/V1Volume.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **config_map** | [**V1ConfigMapVolumeSource**](V1ConfigMapVolumeSource.md) | ConfigMapSource represents a reference to a ConfigMap in the same namespace. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/ | [optional] **container_disk** | [**V1ContainerDiskSource**](V1ContainerDiskSource.md) | ContainerDisk references a docker image, embedding a qcow or raw disk. More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html | [optional] **data_volume** | [**V1DataVolumeSource**](V1DataVolumeSource.md) | DataVolume represents the dynamic creation a PVC for this volume as well as the process of populating that PVC with a disk image. | [optional] +**downward_api** | [**V1DownwardAPIVolumeSource**](V1DownwardAPIVolumeSource.md) | DownwardAPI represents downward API about the pod that should populate this volume | [optional] **empty_disk** | [**V1EmptyDiskSource**](V1EmptyDiskSource.md) | EmptyDisk represents a temporary disk which shares the vmis lifecycle. More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html | [optional] **ephemeral** | [**V1EphemeralVolumeSource**](V1EphemeralVolumeSource.md) | Ephemeral is a special volume source that \"wraps\" specified source and provides copy-on-write image on top of it. | [optional] **host_disk** | [**V1HostDisk**](V1HostDisk.md) | HostDisk represents a disk created on the cluster level | [optional] diff --git a/docs/V1VolumeSnapshotStatus.md b/docs/V1VolumeSnapshotStatus.md new file mode 100644 index 00000000..8b6c1187 --- /dev/null +++ b/docs/V1VolumeSnapshotStatus.md @@ -0,0 +1,12 @@ +# V1VolumeSnapshotStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | True if the volume supports snapshotting | +**name** | **str** | Volume name | +**reason** | **str** | Empty if snapshotting is enabled, contains reason otherwise | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 0982e6c2..8640749f 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.34.0-rc.0-57-g6eac6019" + release_note="Auto-generated client v0.34.0-rc.0-125-g9e01655c" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index d1de828c..8068b15b 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -24,6 +24,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/k8s_io_api_core_v1_affinity.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_affinity.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1Affinity.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_downward_api_volume_file.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_downward_api_volume_file.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1DownwardAPIVolumeFile.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_http_get_action.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_http_get_action.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1HTTPGetAction.md @@ -45,6 +48,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/k8s_io_api_core_v1_node_selector_term.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_node_selector_term.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1NodeSelectorTerm.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_object_field_selector.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_object_field_selector.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1ObjectFieldSelector.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_persistent_volume_claim.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1PersistentVolumeClaim.md @@ -78,6 +84,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/k8s_io_api_core_v1_preferred_scheduling_term.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_preferred_scheduling_term.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1PreferredSchedulingTerm.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_resource_field_selector.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_resource_field_selector.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1ResourceFieldSelector.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_resource_requirements.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_resource_requirements.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1ResourceRequirements.md @@ -246,6 +255,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_domain_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_domain_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DomainSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_downward_api_volume_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_downward_api_volume_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DownwardAPIVolumeSource.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_efi.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_efi.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1EFI.md @@ -516,6 +528,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_volume.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_volume.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Volume.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_volume_snapshot_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_volume_snapshot_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VolumeSnapshotStatus.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Watchdog.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 38442ee6..66ed1490 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -15,6 +15,7 @@ # import models into sdk package from .models.k8s_io_api_core_v1_affinity import K8sIoApiCoreV1Affinity +from .models.k8s_io_api_core_v1_downward_api_volume_file import K8sIoApiCoreV1DownwardAPIVolumeFile from .models.k8s_io_api_core_v1_http_get_action import K8sIoApiCoreV1HTTPGetAction from .models.k8s_io_api_core_v1_http_header import K8sIoApiCoreV1HTTPHeader from .models.k8s_io_api_core_v1_local_object_reference import K8sIoApiCoreV1LocalObjectReference @@ -22,6 +23,7 @@ from .models.k8s_io_api_core_v1_node_selector import K8sIoApiCoreV1NodeSelector from .models.k8s_io_api_core_v1_node_selector_requirement import K8sIoApiCoreV1NodeSelectorRequirement from .models.k8s_io_api_core_v1_node_selector_term import K8sIoApiCoreV1NodeSelectorTerm +from .models.k8s_io_api_core_v1_object_field_selector import K8sIoApiCoreV1ObjectFieldSelector from .models.k8s_io_api_core_v1_persistent_volume_claim import K8sIoApiCoreV1PersistentVolumeClaim from .models.k8s_io_api_core_v1_persistent_volume_claim_condition import K8sIoApiCoreV1PersistentVolumeClaimCondition from .models.k8s_io_api_core_v1_persistent_volume_claim_spec import K8sIoApiCoreV1PersistentVolumeClaimSpec @@ -33,6 +35,7 @@ from .models.k8s_io_api_core_v1_pod_dns_config import K8sIoApiCoreV1PodDNSConfig from .models.k8s_io_api_core_v1_pod_dns_config_option import K8sIoApiCoreV1PodDNSConfigOption from .models.k8s_io_api_core_v1_preferred_scheduling_term import K8sIoApiCoreV1PreferredSchedulingTerm +from .models.k8s_io_api_core_v1_resource_field_selector import K8sIoApiCoreV1ResourceFieldSelector from .models.k8s_io_api_core_v1_resource_requirements import K8sIoApiCoreV1ResourceRequirements from .models.k8s_io_api_core_v1_tcp_socket_action import K8sIoApiCoreV1TCPSocketAction from .models.k8s_io_api_core_v1_toleration import K8sIoApiCoreV1Toleration @@ -89,6 +92,7 @@ from .models.v1_disk import V1Disk from .models.v1_disk_target import V1DiskTarget from .models.v1_domain_spec import V1DomainSpec +from .models.v1_downward_api_volume_source import V1DownwardAPIVolumeSource from .models.v1_efi import V1EFI from .models.v1_empty_disk_source import V1EmptyDiskSource from .models.v1_ephemeral_volume_source import V1EphemeralVolumeSource @@ -179,6 +183,7 @@ from .models.v1_virtual_machine_state_change_request import V1VirtualMachineStateChangeRequest from .models.v1_virtual_machine_status import V1VirtualMachineStatus from .models.v1_volume import V1Volume +from .models.v1_volume_snapshot_status import V1VolumeSnapshotStatus from .models.v1_watchdog import V1Watchdog from .models.v1alpha1_condition import V1alpha1Condition from .models.v1alpha1_data_volume_blank_image import V1alpha1DataVolumeBlankImage diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 01d2b7a0..ae325fe8 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.34.0-rc.0-57-g6eac6019/python' + self.user_agent = 'Swagger-Codegen/v0.34.0-rc.0-125-g9e01655c/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 4e34dd86..2dfccb0a 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.34.0-rc.0-57-g6eac6019".\ + "SDK Package Version: v0.34.0-rc.0-125-g9e01655c".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 4ca1c3c4..a440b318 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -15,6 +15,7 @@ # import models into model package from .k8s_io_api_core_v1_affinity import K8sIoApiCoreV1Affinity +from .k8s_io_api_core_v1_downward_api_volume_file import K8sIoApiCoreV1DownwardAPIVolumeFile from .k8s_io_api_core_v1_http_get_action import K8sIoApiCoreV1HTTPGetAction from .k8s_io_api_core_v1_http_header import K8sIoApiCoreV1HTTPHeader from .k8s_io_api_core_v1_local_object_reference import K8sIoApiCoreV1LocalObjectReference @@ -22,6 +23,7 @@ from .k8s_io_api_core_v1_node_selector import K8sIoApiCoreV1NodeSelector from .k8s_io_api_core_v1_node_selector_requirement import K8sIoApiCoreV1NodeSelectorRequirement from .k8s_io_api_core_v1_node_selector_term import K8sIoApiCoreV1NodeSelectorTerm +from .k8s_io_api_core_v1_object_field_selector import K8sIoApiCoreV1ObjectFieldSelector from .k8s_io_api_core_v1_persistent_volume_claim import K8sIoApiCoreV1PersistentVolumeClaim from .k8s_io_api_core_v1_persistent_volume_claim_condition import K8sIoApiCoreV1PersistentVolumeClaimCondition from .k8s_io_api_core_v1_persistent_volume_claim_spec import K8sIoApiCoreV1PersistentVolumeClaimSpec @@ -33,6 +35,7 @@ from .k8s_io_api_core_v1_pod_dns_config import K8sIoApiCoreV1PodDNSConfig from .k8s_io_api_core_v1_pod_dns_config_option import K8sIoApiCoreV1PodDNSConfigOption from .k8s_io_api_core_v1_preferred_scheduling_term import K8sIoApiCoreV1PreferredSchedulingTerm +from .k8s_io_api_core_v1_resource_field_selector import K8sIoApiCoreV1ResourceFieldSelector from .k8s_io_api_core_v1_resource_requirements import K8sIoApiCoreV1ResourceRequirements from .k8s_io_api_core_v1_tcp_socket_action import K8sIoApiCoreV1TCPSocketAction from .k8s_io_api_core_v1_toleration import K8sIoApiCoreV1Toleration @@ -89,6 +92,7 @@ from .v1_disk import V1Disk from .v1_disk_target import V1DiskTarget from .v1_domain_spec import V1DomainSpec +from .v1_downward_api_volume_source import V1DownwardAPIVolumeSource from .v1_efi import V1EFI from .v1_empty_disk_source import V1EmptyDiskSource from .v1_ephemeral_volume_source import V1EphemeralVolumeSource @@ -179,6 +183,7 @@ from .v1_virtual_machine_state_change_request import V1VirtualMachineStateChangeRequest from .v1_virtual_machine_status import V1VirtualMachineStatus from .v1_volume import V1Volume +from .v1_volume_snapshot_status import V1VolumeSnapshotStatus from .v1_watchdog import V1Watchdog from .v1alpha1_condition import V1alpha1Condition from .v1alpha1_data_volume_blank_image import V1alpha1DataVolumeBlankImage diff --git a/kubevirt/models/k8s_io_api_core_v1_downward_api_volume_file.py b/kubevirt/models/k8s_io_api_core_v1_downward_api_volume_file.py new file mode 100644 index 00000000..4347cf61 --- /dev/null +++ b/kubevirt/models/k8s_io_api_core_v1_downward_api_volume_file.py @@ -0,0 +1,210 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class K8sIoApiCoreV1DownwardAPIVolumeFile(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'field_ref': 'K8sIoApiCoreV1ObjectFieldSelector', + 'mode': 'int', + 'path': 'str', + 'resource_field_ref': 'K8sIoApiCoreV1ResourceFieldSelector' + } + + attribute_map = { + 'field_ref': 'fieldRef', + 'mode': 'mode', + 'path': 'path', + 'resource_field_ref': 'resourceFieldRef' + } + + def __init__(self, field_ref=None, mode=None, path=None, resource_field_ref=None): + """ + K8sIoApiCoreV1DownwardAPIVolumeFile - a model defined in Swagger + """ + + self._field_ref = None + self._mode = None + self._path = None + self._resource_field_ref = None + + if field_ref is not None: + self.field_ref = field_ref + if mode is not None: + self.mode = mode + self.path = path + if resource_field_ref is not None: + self.resource_field_ref = resource_field_ref + + @property + def field_ref(self): + """ + Gets the field_ref of this K8sIoApiCoreV1DownwardAPIVolumeFile. + Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + + :return: The field_ref of this K8sIoApiCoreV1DownwardAPIVolumeFile. + :rtype: K8sIoApiCoreV1ObjectFieldSelector + """ + return self._field_ref + + @field_ref.setter + def field_ref(self, field_ref): + """ + Sets the field_ref of this K8sIoApiCoreV1DownwardAPIVolumeFile. + Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + + :param field_ref: The field_ref of this K8sIoApiCoreV1DownwardAPIVolumeFile. + :type: K8sIoApiCoreV1ObjectFieldSelector + """ + + self._field_ref = field_ref + + @property + def mode(self): + """ + Gets the mode of this K8sIoApiCoreV1DownwardAPIVolumeFile. + Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + + :return: The mode of this K8sIoApiCoreV1DownwardAPIVolumeFile. + :rtype: int + """ + return self._mode + + @mode.setter + def mode(self, mode): + """ + Sets the mode of this K8sIoApiCoreV1DownwardAPIVolumeFile. + Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + + :param mode: The mode of this K8sIoApiCoreV1DownwardAPIVolumeFile. + :type: int + """ + + self._mode = mode + + @property + def path(self): + """ + Gets the path of this K8sIoApiCoreV1DownwardAPIVolumeFile. + Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + + :return: The path of this K8sIoApiCoreV1DownwardAPIVolumeFile. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this K8sIoApiCoreV1DownwardAPIVolumeFile. + Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + + :param path: The path of this K8sIoApiCoreV1DownwardAPIVolumeFile. + :type: str + """ + if path is None: + raise ValueError("Invalid value for `path`, must not be `None`") + + self._path = path + + @property + def resource_field_ref(self): + """ + Gets the resource_field_ref of this K8sIoApiCoreV1DownwardAPIVolumeFile. + Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + :return: The resource_field_ref of this K8sIoApiCoreV1DownwardAPIVolumeFile. + :rtype: K8sIoApiCoreV1ResourceFieldSelector + """ + return self._resource_field_ref + + @resource_field_ref.setter + def resource_field_ref(self, resource_field_ref): + """ + Sets the resource_field_ref of this K8sIoApiCoreV1DownwardAPIVolumeFile. + Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + :param resource_field_ref: The resource_field_ref of this K8sIoApiCoreV1DownwardAPIVolumeFile. + :type: K8sIoApiCoreV1ResourceFieldSelector + """ + + self._resource_field_ref = resource_field_ref + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, K8sIoApiCoreV1DownwardAPIVolumeFile): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/k8s_io_api_core_v1_object_field_selector.py b/kubevirt/models/k8s_io_api_core_v1_object_field_selector.py new file mode 100644 index 00000000..28e174bc --- /dev/null +++ b/kubevirt/models/k8s_io_api_core_v1_object_field_selector.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class K8sIoApiCoreV1ObjectFieldSelector(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'field_path': 'str' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'field_path': 'fieldPath' + } + + def __init__(self, api_version=None, field_path=None): + """ + K8sIoApiCoreV1ObjectFieldSelector - a model defined in Swagger + """ + + self._api_version = None + self._field_path = None + + if api_version is not None: + self.api_version = api_version + self.field_path = field_path + + @property + def api_version(self): + """ + Gets the api_version of this K8sIoApiCoreV1ObjectFieldSelector. + Version of the schema the FieldPath is written in terms of, defaults to \"v1\". + + :return: The api_version of this K8sIoApiCoreV1ObjectFieldSelector. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this K8sIoApiCoreV1ObjectFieldSelector. + Version of the schema the FieldPath is written in terms of, defaults to \"v1\". + + :param api_version: The api_version of this K8sIoApiCoreV1ObjectFieldSelector. + :type: str + """ + + self._api_version = api_version + + @property + def field_path(self): + """ + Gets the field_path of this K8sIoApiCoreV1ObjectFieldSelector. + Path of the field to select in the specified API version. + + :return: The field_path of this K8sIoApiCoreV1ObjectFieldSelector. + :rtype: str + """ + return self._field_path + + @field_path.setter + def field_path(self, field_path): + """ + Sets the field_path of this K8sIoApiCoreV1ObjectFieldSelector. + Path of the field to select in the specified API version. + + :param field_path: The field_path of this K8sIoApiCoreV1ObjectFieldSelector. + :type: str + """ + if field_path is None: + raise ValueError("Invalid value for `field_path`, must not be `None`") + + self._field_path = field_path + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, K8sIoApiCoreV1ObjectFieldSelector): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/k8s_io_api_core_v1_resource_field_selector.py b/kubevirt/models/k8s_io_api_core_v1_resource_field_selector.py new file mode 100644 index 00000000..f864b843 --- /dev/null +++ b/kubevirt/models/k8s_io_api_core_v1_resource_field_selector.py @@ -0,0 +1,182 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class K8sIoApiCoreV1ResourceFieldSelector(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'container_name': 'str', + 'divisor': 'K8sIoApimachineryPkgApiResourceQuantity', + 'resource': 'str' + } + + attribute_map = { + 'container_name': 'containerName', + 'divisor': 'divisor', + 'resource': 'resource' + } + + def __init__(self, container_name=None, divisor=None, resource=None): + """ + K8sIoApiCoreV1ResourceFieldSelector - a model defined in Swagger + """ + + self._container_name = None + self._divisor = None + self._resource = None + + if container_name is not None: + self.container_name = container_name + if divisor is not None: + self.divisor = divisor + self.resource = resource + + @property + def container_name(self): + """ + Gets the container_name of this K8sIoApiCoreV1ResourceFieldSelector. + Container name: required for volumes, optional for env vars + + :return: The container_name of this K8sIoApiCoreV1ResourceFieldSelector. + :rtype: str + """ + return self._container_name + + @container_name.setter + def container_name(self, container_name): + """ + Sets the container_name of this K8sIoApiCoreV1ResourceFieldSelector. + Container name: required for volumes, optional for env vars + + :param container_name: The container_name of this K8sIoApiCoreV1ResourceFieldSelector. + :type: str + """ + + self._container_name = container_name + + @property + def divisor(self): + """ + Gets the divisor of this K8sIoApiCoreV1ResourceFieldSelector. + Specifies the output format of the exposed resources, defaults to \"1\" + + :return: The divisor of this K8sIoApiCoreV1ResourceFieldSelector. + :rtype: K8sIoApimachineryPkgApiResourceQuantity + """ + return self._divisor + + @divisor.setter + def divisor(self, divisor): + """ + Sets the divisor of this K8sIoApiCoreV1ResourceFieldSelector. + Specifies the output format of the exposed resources, defaults to \"1\" + + :param divisor: The divisor of this K8sIoApiCoreV1ResourceFieldSelector. + :type: K8sIoApimachineryPkgApiResourceQuantity + """ + + self._divisor = divisor + + @property + def resource(self): + """ + Gets the resource of this K8sIoApiCoreV1ResourceFieldSelector. + Required: resource to select + + :return: The resource of this K8sIoApiCoreV1ResourceFieldSelector. + :rtype: str + """ + return self._resource + + @resource.setter + def resource(self, resource): + """ + Sets the resource of this K8sIoApiCoreV1ResourceFieldSelector. + Required: resource to select + + :param resource: The resource of this K8sIoApiCoreV1ResourceFieldSelector. + :type: str + """ + if resource is None: + raise ValueError("Invalid value for `resource`, must not be `None`") + + self._resource = resource + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, K8sIoApiCoreV1ResourceFieldSelector): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_downward_api_volume_source.py b/kubevirt/models/v1_downward_api_volume_source.py new file mode 100644 index 00000000..a09a4e74 --- /dev/null +++ b/kubevirt/models/v1_downward_api_volume_source.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DownwardAPIVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'fields': 'list[K8sIoApiCoreV1DownwardAPIVolumeFile]', + 'volume_label': 'str' + } + + attribute_map = { + 'fields': 'fields', + 'volume_label': 'volumeLabel' + } + + def __init__(self, fields=None, volume_label=None): + """ + V1DownwardAPIVolumeSource - a model defined in Swagger + """ + + self._fields = None + self._volume_label = None + + if fields is not None: + self.fields = fields + if volume_label is not None: + self.volume_label = volume_label + + @property + def fields(self): + """ + Gets the fields of this V1DownwardAPIVolumeSource. + Fields is a list of downward API volume file + + :return: The fields of this V1DownwardAPIVolumeSource. + :rtype: list[K8sIoApiCoreV1DownwardAPIVolumeFile] + """ + return self._fields + + @fields.setter + def fields(self, fields): + """ + Sets the fields of this V1DownwardAPIVolumeSource. + Fields is a list of downward API volume file + + :param fields: The fields of this V1DownwardAPIVolumeSource. + :type: list[K8sIoApiCoreV1DownwardAPIVolumeFile] + """ + + self._fields = fields + + @property + def volume_label(self): + """ + Gets the volume_label of this V1DownwardAPIVolumeSource. + The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart). + + :return: The volume_label of this V1DownwardAPIVolumeSource. + :rtype: str + """ + return self._volume_label + + @volume_label.setter + def volume_label(self, volume_label): + """ + Sets the volume_label of this V1DownwardAPIVolumeSource. + The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart). + + :param volume_label: The volume_label of this V1DownwardAPIVolumeSource. + :type: str + """ + + self._volume_label = volume_label + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1DownwardAPIVolumeSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_status.py b/kubevirt/models/v1_virtual_machine_status.py index 07c26676..b078388b 100644 --- a/kubevirt/models/v1_virtual_machine_status.py +++ b/kubevirt/models/v1_virtual_machine_status.py @@ -35,7 +35,8 @@ class V1VirtualMachineStatus(object): 'created': 'bool', 'ready': 'bool', 'snapshot_in_progress': 'str', - 'state_change_requests': 'list[V1VirtualMachineStateChangeRequest]' + 'state_change_requests': 'list[V1VirtualMachineStateChangeRequest]', + 'volume_snapshot_statuses': 'list[V1VolumeSnapshotStatus]' } attribute_map = { @@ -43,10 +44,11 @@ class V1VirtualMachineStatus(object): 'created': 'created', 'ready': 'ready', 'snapshot_in_progress': 'snapshotInProgress', - 'state_change_requests': 'stateChangeRequests' + 'state_change_requests': 'stateChangeRequests', + 'volume_snapshot_statuses': 'volumeSnapshotStatuses' } - def __init__(self, conditions=None, created=None, ready=None, snapshot_in_progress=None, state_change_requests=None): + def __init__(self, conditions=None, created=None, ready=None, snapshot_in_progress=None, state_change_requests=None, volume_snapshot_statuses=None): """ V1VirtualMachineStatus - a model defined in Swagger """ @@ -56,6 +58,7 @@ def __init__(self, conditions=None, created=None, ready=None, snapshot_in_progre self._ready = None self._snapshot_in_progress = None self._state_change_requests = None + self._volume_snapshot_statuses = None if conditions is not None: self.conditions = conditions @@ -67,6 +70,8 @@ def __init__(self, conditions=None, created=None, ready=None, snapshot_in_progre self.snapshot_in_progress = snapshot_in_progress if state_change_requests is not None: self.state_change_requests = state_change_requests + if volume_snapshot_statuses is not None: + self.volume_snapshot_statuses = volume_snapshot_statuses @property def conditions(self): @@ -183,6 +188,29 @@ def state_change_requests(self, state_change_requests): self._state_change_requests = state_change_requests + @property + def volume_snapshot_statuses(self): + """ + Gets the volume_snapshot_statuses of this V1VirtualMachineStatus. + VolumeSnapshotStatuses indicates a list of statuses whether snapshotting is supported by each volume. + + :return: The volume_snapshot_statuses of this V1VirtualMachineStatus. + :rtype: list[V1VolumeSnapshotStatus] + """ + return self._volume_snapshot_statuses + + @volume_snapshot_statuses.setter + def volume_snapshot_statuses(self, volume_snapshot_statuses): + """ + Sets the volume_snapshot_statuses of this V1VirtualMachineStatus. + VolumeSnapshotStatuses indicates a list of statuses whether snapshotting is supported by each volume. + + :param volume_snapshot_statuses: The volume_snapshot_statuses of this V1VirtualMachineStatus. + :type: list[V1VolumeSnapshotStatus] + """ + + self._volume_snapshot_statuses = volume_snapshot_statuses + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_volume.py b/kubevirt/models/v1_volume.py index d0c258f8..6858921e 100644 --- a/kubevirt/models/v1_volume.py +++ b/kubevirt/models/v1_volume.py @@ -36,6 +36,7 @@ class V1Volume(object): 'config_map': 'V1ConfigMapVolumeSource', 'container_disk': 'V1ContainerDiskSource', 'data_volume': 'V1DataVolumeSource', + 'downward_api': 'V1DownwardAPIVolumeSource', 'empty_disk': 'V1EmptyDiskSource', 'ephemeral': 'V1EphemeralVolumeSource', 'host_disk': 'V1HostDisk', @@ -51,6 +52,7 @@ class V1Volume(object): 'config_map': 'configMap', 'container_disk': 'containerDisk', 'data_volume': 'dataVolume', + 'downward_api': 'downwardAPI', 'empty_disk': 'emptyDisk', 'ephemeral': 'ephemeral', 'host_disk': 'hostDisk', @@ -60,7 +62,7 @@ class V1Volume(object): 'service_account': 'serviceAccount' } - def __init__(self, cloud_init_config_drive=None, cloud_init_no_cloud=None, config_map=None, container_disk=None, data_volume=None, empty_disk=None, ephemeral=None, host_disk=None, name=None, persistent_volume_claim=None, secret=None, service_account=None): + def __init__(self, cloud_init_config_drive=None, cloud_init_no_cloud=None, config_map=None, container_disk=None, data_volume=None, downward_api=None, empty_disk=None, ephemeral=None, host_disk=None, name=None, persistent_volume_claim=None, secret=None, service_account=None): """ V1Volume - a model defined in Swagger """ @@ -70,6 +72,7 @@ def __init__(self, cloud_init_config_drive=None, cloud_init_no_cloud=None, confi self._config_map = None self._container_disk = None self._data_volume = None + self._downward_api = None self._empty_disk = None self._ephemeral = None self._host_disk = None @@ -88,6 +91,8 @@ def __init__(self, cloud_init_config_drive=None, cloud_init_no_cloud=None, confi self.container_disk = container_disk if data_volume is not None: self.data_volume = data_volume + if downward_api is not None: + self.downward_api = downward_api if empty_disk is not None: self.empty_disk = empty_disk if ephemeral is not None: @@ -217,6 +222,29 @@ def data_volume(self, data_volume): self._data_volume = data_volume + @property + def downward_api(self): + """ + Gets the downward_api of this V1Volume. + DownwardAPI represents downward API about the pod that should populate this volume + + :return: The downward_api of this V1Volume. + :rtype: V1DownwardAPIVolumeSource + """ + return self._downward_api + + @downward_api.setter + def downward_api(self, downward_api): + """ + Sets the downward_api of this V1Volume. + DownwardAPI represents downward API about the pod that should populate this volume + + :param downward_api: The downward_api of this V1Volume. + :type: V1DownwardAPIVolumeSource + """ + + self._downward_api = downward_api + @property def empty_disk(self): """ diff --git a/kubevirt/models/v1_volume_snapshot_status.py b/kubevirt/models/v1_volume_snapshot_status.py new file mode 100644 index 00000000..42635ffb --- /dev/null +++ b/kubevirt/models/v1_volume_snapshot_status.py @@ -0,0 +1,183 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VolumeSnapshotStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'enabled': 'bool', + 'name': 'str', + 'reason': 'str' + } + + attribute_map = { + 'enabled': 'enabled', + 'name': 'name', + 'reason': 'reason' + } + + def __init__(self, enabled=None, name=None, reason=None): + """ + V1VolumeSnapshotStatus - a model defined in Swagger + """ + + self._enabled = None + self._name = None + self._reason = None + + self.enabled = enabled + self.name = name + if reason is not None: + self.reason = reason + + @property + def enabled(self): + """ + Gets the enabled of this V1VolumeSnapshotStatus. + True if the volume supports snapshotting + + :return: The enabled of this V1VolumeSnapshotStatus. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """ + Sets the enabled of this V1VolumeSnapshotStatus. + True if the volume supports snapshotting + + :param enabled: The enabled of this V1VolumeSnapshotStatus. + :type: bool + """ + if enabled is None: + raise ValueError("Invalid value for `enabled`, must not be `None`") + + self._enabled = enabled + + @property + def name(self): + """ + Gets the name of this V1VolumeSnapshotStatus. + Volume name + + :return: The name of this V1VolumeSnapshotStatus. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1VolumeSnapshotStatus. + Volume name + + :param name: The name of this V1VolumeSnapshotStatus. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def reason(self): + """ + Gets the reason of this V1VolumeSnapshotStatus. + Empty if snapshotting is enabled, contains reason otherwise + + :return: The reason of this V1VolumeSnapshotStatus. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1VolumeSnapshotStatus. + Empty if snapshotting is enabled, contains reason otherwise + + :param reason: The reason of this V1VolumeSnapshotStatus. + :type: str + """ + + self._reason = reason + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VolumeSnapshotStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index b7667348..fdb083d9 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.34.0-rc.0-57-g6eac6019" +VERSION = "v0.34.0-rc.0-125-g9e01655c" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 155c5de4..def52357 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.34.0-rc.0-57-g6eac6019" +"packageVersion": "v0.34.0-rc.0-125-g9e01655c" } diff --git a/test/test_k8s_io_api_core_v1_downward_api_volume_file.py b/test/test_k8s_io_api_core_v1_downward_api_volume_file.py new file mode 100644 index 00000000..e14e1464 --- /dev/null +++ b/test/test_k8s_io_api_core_v1_downward_api_volume_file.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_api_core_v1_downward_api_volume_file import K8sIoApiCoreV1DownwardAPIVolumeFile + + +class TestK8sIoApiCoreV1DownwardAPIVolumeFile(unittest.TestCase): + """ K8sIoApiCoreV1DownwardAPIVolumeFile unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1DownwardAPIVolumeFile(self): + """ + Test K8sIoApiCoreV1DownwardAPIVolumeFile + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_downward_api_volume_file.K8sIoApiCoreV1DownwardAPIVolumeFile() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_api_core_v1_object_field_selector.py b/test/test_k8s_io_api_core_v1_object_field_selector.py new file mode 100644 index 00000000..b3c4c3e2 --- /dev/null +++ b/test/test_k8s_io_api_core_v1_object_field_selector.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_api_core_v1_object_field_selector import K8sIoApiCoreV1ObjectFieldSelector + + +class TestK8sIoApiCoreV1ObjectFieldSelector(unittest.TestCase): + """ K8sIoApiCoreV1ObjectFieldSelector unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1ObjectFieldSelector(self): + """ + Test K8sIoApiCoreV1ObjectFieldSelector + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_object_field_selector.K8sIoApiCoreV1ObjectFieldSelector() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_api_core_v1_resource_field_selector.py b/test/test_k8s_io_api_core_v1_resource_field_selector.py new file mode 100644 index 00000000..46bd767b --- /dev/null +++ b/test/test_k8s_io_api_core_v1_resource_field_selector.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_api_core_v1_resource_field_selector import K8sIoApiCoreV1ResourceFieldSelector + + +class TestK8sIoApiCoreV1ResourceFieldSelector(unittest.TestCase): + """ K8sIoApiCoreV1ResourceFieldSelector unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1ResourceFieldSelector(self): + """ + Test K8sIoApiCoreV1ResourceFieldSelector + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_resource_field_selector.K8sIoApiCoreV1ResourceFieldSelector() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_downward_api_volume_source.py b/test/test_v1_downward_api_volume_source.py new file mode 100644 index 00000000..82af90c6 --- /dev/null +++ b/test/test_v1_downward_api_volume_source.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_downward_api_volume_source import V1DownwardAPIVolumeSource + + +class TestV1DownwardAPIVolumeSource(unittest.TestCase): + """ V1DownwardAPIVolumeSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DownwardAPIVolumeSource(self): + """ + Test V1DownwardAPIVolumeSource + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_downward_api_volume_source.V1DownwardAPIVolumeSource() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_volume_snapshot_status.py b/test/test_v1_volume_snapshot_status.py new file mode 100644 index 00000000..1fd2cc9e --- /dev/null +++ b/test/test_v1_volume_snapshot_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_volume_snapshot_status import V1VolumeSnapshotStatus + + +class TestV1VolumeSnapshotStatus(unittest.TestCase): + """ V1VolumeSnapshotStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VolumeSnapshotStatus(self): + """ + Test V1VolumeSnapshotStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_volume_snapshot_status.V1VolumeSnapshotStatus() + pass + + +if __name__ == '__main__': + unittest.main() From 47148c95c36477bf9daebd6860113e46a612c7b7 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 21 Oct 2020 11:23:09 +0000 Subject: [PATCH 157/521] Client Python update by Travis Build 15506 --- README.md | 2 +- docs/V1Filesystem.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_filesystem.py | 2 ++ setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 899120c3..894c7ff0 100644 --- a/README.md +++ b/README.md @@ -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: v0.34.0-rc.0-125-g9e01655c +- Package version: v0.34.0-rc.0-166-g23ec3bd0 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Filesystem.md b/docs/V1Filesystem.md index b128105c..22c26def 100644 --- a/docs/V1Filesystem.md +++ b/docs/V1Filesystem.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | Name is the device name | -**virtiofs** | [**V1FilesystemVirtiofs**](V1FilesystemVirtiofs.md) | | +**virtiofs** | [**V1FilesystemVirtiofs**](V1FilesystemVirtiofs.md) | Virtiofs is supported | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 8640749f..20351472 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.34.0-rc.0-125-g9e01655c" + release_note="Auto-generated client v0.34.0-rc.0-166-g23ec3bd0" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index ae325fe8..9fc92fc9 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.34.0-rc.0-125-g9e01655c/python' + self.user_agent = 'Swagger-Codegen/v0.34.0-rc.0-166-g23ec3bd0/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 2dfccb0a..f6bc3069 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.34.0-rc.0-125-g9e01655c".\ + "SDK Package Version: v0.34.0-rc.0-166-g23ec3bd0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_filesystem.py b/kubevirt/models/v1_filesystem.py index 964a38e6..c529b37b 100644 --- a/kubevirt/models/v1_filesystem.py +++ b/kubevirt/models/v1_filesystem.py @@ -80,6 +80,7 @@ def name(self, name): def virtiofs(self): """ Gets the virtiofs of this V1Filesystem. + Virtiofs is supported :return: The virtiofs of this V1Filesystem. :rtype: V1FilesystemVirtiofs @@ -90,6 +91,7 @@ def virtiofs(self): def virtiofs(self, virtiofs): """ Sets the virtiofs of this V1Filesystem. + Virtiofs is supported :param virtiofs: The virtiofs of this V1Filesystem. :type: V1FilesystemVirtiofs diff --git a/setup.py b/setup.py index fdb083d9..7258ac46 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.34.0-rc.0-125-g9e01655c" +VERSION = "v0.34.0-rc.0-166-g23ec3bd0" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index def52357..245a5484 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.34.0-rc.0-125-g9e01655c" +"packageVersion": "v0.34.0-rc.0-166-g23ec3bd0" } From 2daf5c048fe0d95cd744b515a0a0fd3bce8a767d Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 23 Oct 2020 00:28:06 +0000 Subject: [PATCH 158/521] Client Python update by Travis Build 15512 --- README.md | 3 +- docs/V1Interface.md | 1 + docs/V1InterfaceMacvtap.md | 9 +++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_interface.py | 28 ++++++- kubevirt/models/v1_interface_macvtap.py | 99 +++++++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_interface_macvtap.py | 44 +++++++++++ 14 files changed, 192 insertions(+), 7 deletions(-) create mode 100644 docs/V1InterfaceMacvtap.md create mode 100644 kubevirt/models/v1_interface_macvtap.py create mode 100644 test/test_v1_interface_macvtap.py diff --git a/README.md b/README.md index 894c7ff0..e4fc777a 100644 --- a/README.md +++ b/README.md @@ -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: v0.34.0-rc.0-166-g23ec3bd0 +- Package version: v0.34.0-rc.0-192-gb7e8d366 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -289,6 +289,7 @@ Class | Method | HTTP request | Description - [V1Input](docs/V1Input.md) - [V1Interface](docs/V1Interface.md) - [V1InterfaceBridge](docs/V1InterfaceBridge.md) + - [V1InterfaceMacvtap](docs/V1InterfaceMacvtap.md) - [V1InterfaceMasquerade](docs/V1InterfaceMasquerade.md) - [V1InterfaceSRIOV](docs/V1InterfaceSRIOV.md) - [V1InterfaceSlirp](docs/V1InterfaceSlirp.md) diff --git a/docs/V1Interface.md b/docs/V1Interface.md index 4566a6f0..2ab0e36b 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -7,6 +7,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) | | [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. | diff --git a/docs/V1InterfaceMacvtap.md b/docs/V1InterfaceMacvtap.md new file mode 100644 index 00000000..2243ae90 --- /dev/null +++ b/docs/V1InterfaceMacvtap.md @@ -0,0 +1,9 @@ +# V1InterfaceMacvtap + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 20351472..d11f5703 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.34.0-rc.0-166-g23ec3bd0" + release_note="Auto-generated client v0.34.0-rc.0-192-gb7e8d366" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 8068b15b..9b9c2cef 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -327,6 +327,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_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 diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 66ed1490..ab55247e 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -116,6 +116,7 @@ from .models.v1_input import V1Input from .models.v1_interface import V1Interface 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_sriov import V1InterfaceSRIOV from .models.v1_interface_slirp import V1InterfaceSlirp diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 9fc92fc9..dae5f96d 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.34.0-rc.0-166-g23ec3bd0/python' + self.user_agent = 'Swagger-Codegen/v0.34.0-rc.0-192-gb7e8d366/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index f6bc3069..e84c937a 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.34.0-rc.0-166-g23ec3bd0".\ + "SDK Package Version: v0.34.0-rc.0-192-gb7e8d366".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index a440b318..39412941 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -116,6 +116,7 @@ from .v1_input import V1Input from .v1_interface import V1Interface from .v1_interface_bridge import V1InterfaceBridge +from .v1_interface_macvtap import V1InterfaceMacvtap from .v1_interface_masquerade import V1InterfaceMasquerade from .v1_interface_sriov import V1InterfaceSRIOV from .v1_interface_slirp import V1InterfaceSlirp diff --git a/kubevirt/models/v1_interface.py b/kubevirt/models/v1_interface.py index f6400c7c..c6eddc23 100644 --- a/kubevirt/models/v1_interface.py +++ b/kubevirt/models/v1_interface.py @@ -35,6 +35,7 @@ class V1Interface(object): 'bridge': 'V1InterfaceBridge', 'dhcp_options': 'V1DHCPOptions', 'mac_address': 'str', + 'macvtap': 'V1InterfaceMacvtap', 'masquerade': 'V1InterfaceMasquerade', 'model': 'str', 'name': 'str', @@ -50,6 +51,7 @@ class V1Interface(object): 'bridge': 'bridge', 'dhcp_options': 'dhcpOptions', 'mac_address': 'macAddress', + 'macvtap': 'macvtap', 'masquerade': 'masquerade', 'model': 'model', 'name': 'name', @@ -60,7 +62,7 @@ class V1Interface(object): 'tag': 'tag' } - def __init__(self, boot_order=None, bridge=None, dhcp_options=None, mac_address=None, masquerade=None, model=None, name=None, pci_address=None, ports=None, slirp=None, sriov=None, tag=None): + def __init__(self, boot_order=None, bridge=None, dhcp_options=None, mac_address=None, macvtap=None, masquerade=None, model=None, name=None, pci_address=None, ports=None, slirp=None, sriov=None, tag=None): """ V1Interface - a model defined in Swagger """ @@ -69,6 +71,7 @@ def __init__(self, boot_order=None, bridge=None, dhcp_options=None, mac_address= self._bridge = None self._dhcp_options = None self._mac_address = None + self._macvtap = None self._masquerade = None self._model = None self._name = None @@ -86,6 +89,8 @@ def __init__(self, boot_order=None, bridge=None, dhcp_options=None, mac_address= self.dhcp_options = dhcp_options if mac_address is not None: self.mac_address = mac_address + if macvtap is not None: + self.macvtap = macvtap if masquerade is not None: self.masquerade = masquerade if model is not None: @@ -192,6 +197,27 @@ def mac_address(self, mac_address): self._mac_address = mac_address + @property + def macvtap(self): + """ + Gets the macvtap of this V1Interface. + + :return: The macvtap of this V1Interface. + :rtype: V1InterfaceMacvtap + """ + return self._macvtap + + @macvtap.setter + def macvtap(self, macvtap): + """ + Sets the macvtap of this V1Interface. + + :param macvtap: The macvtap of this V1Interface. + :type: V1InterfaceMacvtap + """ + + self._macvtap = macvtap + @property def masquerade(self): """ diff --git a/kubevirt/models/v1_interface_macvtap.py b/kubevirt/models/v1_interface_macvtap.py new file mode 100644 index 00000000..6095dd63 --- /dev/null +++ b/kubevirt/models/v1_interface_macvtap.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1InterfaceMacvtap(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1InterfaceMacvtap - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1InterfaceMacvtap): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 7258ac46..65f17ffc 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.34.0-rc.0-166-g23ec3bd0" +VERSION = "v0.34.0-rc.0-192-gb7e8d366" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 245a5484..97917626 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.34.0-rc.0-166-g23ec3bd0" +"packageVersion": "v0.34.0-rc.0-192-gb7e8d366" } diff --git a/test/test_v1_interface_macvtap.py b/test/test_v1_interface_macvtap.py new file mode 100644 index 00000000..fcd480a3 --- /dev/null +++ b/test/test_v1_interface_macvtap.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_interface_macvtap import V1InterfaceMacvtap + + +class TestV1InterfaceMacvtap(unittest.TestCase): + """ V1InterfaceMacvtap unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1InterfaceMacvtap(self): + """ + Test V1InterfaceMacvtap + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_interface_macvtap.V1InterfaceMacvtap() + pass + + +if __name__ == '__main__': + unittest.main() From 13528a69b689d4d84b0b8165a344d6a75af35183 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 30 Oct 2020 05:12:10 +0000 Subject: [PATCH 159/521] Client Python update by Travis Build 15540 --- README.md | 2 +- docs/V1DeveloperConfiguration.md | 8 ++-- docs/V1MigrationConfiguration.md | 14 +++---- docs/V1NetworkConfiguration.md | 4 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_developer_configuration.py | 24 +++++------ kubevirt/models/v1_migration_configuration.py | 42 +++++++++---------- kubevirt/models/v1_network_configuration.py | 12 +++--- setup.py | 2 +- swagger-codegen-config.json | 2 +- 12 files changed, 58 insertions(+), 58 deletions(-) diff --git a/README.md b/README.md index e4fc777a..4e67b428 100644 --- a/README.md +++ b/README.md @@ -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: v0.34.0-rc.0-192-gb7e8d366 +- Package version: v0.34.0-rc.0-259-g3897692c - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1DeveloperConfiguration.md b/docs/V1DeveloperConfiguration.md index 763001d8..a50a599f 100644 --- a/docs/V1DeveloperConfiguration.md +++ b/docs/V1DeveloperConfiguration.md @@ -3,12 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cpu_allocation_ratio** | **str** | | [optional] +**cpu_allocation_ratio** | **int** | | [optional] **feature_gates** | **list[str]** | | [optional] -**memory_overcommit** | **str** | | [optional] +**memory_overcommit** | **int** | | [optional] **node_selectors** | **dict(str, str)** | | [optional] -**pvc_tolerate_less_space_up_to_percent** | **str** | | [optional] -**use_emulation** | **str** | | [optional] +**pvc_tolerate_less_space_up_to_percent** | **int** | | [optional] +**use_emulation** | **bool** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1MigrationConfiguration.md b/docs/V1MigrationConfiguration.md index e2a0faad..4bc6ab50 100644 --- a/docs/V1MigrationConfiguration.md +++ b/docs/V1MigrationConfiguration.md @@ -3,15 +3,15 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**allow_auto_converge** | **str** | | [optional] -**allow_post_copy** | **str** | | [optional] +**allow_auto_converge** | **bool** | | [optional] +**allow_post_copy** | **bool** | | [optional] **bandwidth_per_migration** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | | [optional] -**completion_timeout_per_gi_b** | **str** | | [optional] +**completion_timeout_per_gi_b** | **int** | | [optional] **node_drain_taint_key** | **str** | | [optional] -**parallel_migrations_per_cluster** | **str** | | [optional] -**parallel_outbound_migrations_per_node** | **str** | | [optional] -**progress_timeout** | **str** | | [optional] -**unsafe_migration_override** | **str** | | [optional] +**parallel_migrations_per_cluster** | **int** | | [optional] +**parallel_outbound_migrations_per_node** | **int** | | [optional] +**progress_timeout** | **int** | | [optional] +**unsafe_migration_override** | **bool** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1NetworkConfiguration.md b/docs/V1NetworkConfiguration.md index aa1efda6..5616994a 100644 --- a/docs/V1NetworkConfiguration.md +++ b/docs/V1NetworkConfiguration.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **default_network_interface** | **str** | | [optional] -**permit_bridge_interface_on_pod_network** | **str** | | [optional] -**permit_slirp_interface** | **str** | | [optional] +**permit_bridge_interface_on_pod_network** | **bool** | | [optional] +**permit_slirp_interface** | **bool** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index d11f5703..0efed554 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.34.0-rc.0-192-gb7e8d366" + release_note="Auto-generated client v0.34.0-rc.0-259-g3897692c" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index dae5f96d..6cf0ec88 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.34.0-rc.0-192-gb7e8d366/python' + self.user_agent = 'Swagger-Codegen/v0.34.0-rc.0-259-g3897692c/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index e84c937a..c0615250 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.34.0-rc.0-192-gb7e8d366".\ + "SDK Package Version: v0.34.0-rc.0-259-g3897692c".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_developer_configuration.py b/kubevirt/models/v1_developer_configuration.py index 8fe79054..9cab7ca0 100644 --- a/kubevirt/models/v1_developer_configuration.py +++ b/kubevirt/models/v1_developer_configuration.py @@ -31,12 +31,12 @@ class V1DeveloperConfiguration(object): and the value is json key in definition. """ swagger_types = { - 'cpu_allocation_ratio': 'str', + 'cpu_allocation_ratio': 'int', 'feature_gates': 'list[str]', - 'memory_overcommit': 'str', + 'memory_overcommit': 'int', 'node_selectors': 'dict(str, str)', - 'pvc_tolerate_less_space_up_to_percent': 'str', - 'use_emulation': 'str' + 'pvc_tolerate_less_space_up_to_percent': 'int', + 'use_emulation': 'bool' } attribute_map = { @@ -79,7 +79,7 @@ def cpu_allocation_ratio(self): Gets the cpu_allocation_ratio of this V1DeveloperConfiguration. :return: The cpu_allocation_ratio of this V1DeveloperConfiguration. - :rtype: str + :rtype: int """ return self._cpu_allocation_ratio @@ -89,7 +89,7 @@ def cpu_allocation_ratio(self, cpu_allocation_ratio): Sets the cpu_allocation_ratio of this V1DeveloperConfiguration. :param cpu_allocation_ratio: The cpu_allocation_ratio of this V1DeveloperConfiguration. - :type: str + :type: int """ self._cpu_allocation_ratio = cpu_allocation_ratio @@ -121,7 +121,7 @@ def memory_overcommit(self): Gets the memory_overcommit of this V1DeveloperConfiguration. :return: The memory_overcommit of this V1DeveloperConfiguration. - :rtype: str + :rtype: int """ return self._memory_overcommit @@ -131,7 +131,7 @@ def memory_overcommit(self, memory_overcommit): Sets the memory_overcommit of this V1DeveloperConfiguration. :param memory_overcommit: The memory_overcommit of this V1DeveloperConfiguration. - :type: str + :type: int """ self._memory_overcommit = memory_overcommit @@ -163,7 +163,7 @@ def pvc_tolerate_less_space_up_to_percent(self): Gets the pvc_tolerate_less_space_up_to_percent of this V1DeveloperConfiguration. :return: The pvc_tolerate_less_space_up_to_percent of this V1DeveloperConfiguration. - :rtype: str + :rtype: int """ return self._pvc_tolerate_less_space_up_to_percent @@ -173,7 +173,7 @@ def pvc_tolerate_less_space_up_to_percent(self, pvc_tolerate_less_space_up_to_pe Sets the pvc_tolerate_less_space_up_to_percent of this V1DeveloperConfiguration. :param pvc_tolerate_less_space_up_to_percent: The pvc_tolerate_less_space_up_to_percent of this V1DeveloperConfiguration. - :type: str + :type: int """ self._pvc_tolerate_less_space_up_to_percent = pvc_tolerate_less_space_up_to_percent @@ -184,7 +184,7 @@ def use_emulation(self): Gets the use_emulation of this V1DeveloperConfiguration. :return: The use_emulation of this V1DeveloperConfiguration. - :rtype: str + :rtype: bool """ return self._use_emulation @@ -194,7 +194,7 @@ def use_emulation(self, use_emulation): Sets the use_emulation of this V1DeveloperConfiguration. :param use_emulation: The use_emulation of this V1DeveloperConfiguration. - :type: str + :type: bool """ self._use_emulation = use_emulation diff --git a/kubevirt/models/v1_migration_configuration.py b/kubevirt/models/v1_migration_configuration.py index 17dc117d..b9429af9 100644 --- a/kubevirt/models/v1_migration_configuration.py +++ b/kubevirt/models/v1_migration_configuration.py @@ -31,15 +31,15 @@ class V1MigrationConfiguration(object): and the value is json key in definition. """ swagger_types = { - 'allow_auto_converge': 'str', - 'allow_post_copy': 'str', + 'allow_auto_converge': 'bool', + 'allow_post_copy': 'bool', 'bandwidth_per_migration': 'K8sIoApimachineryPkgApiResourceQuantity', - 'completion_timeout_per_gi_b': 'str', + 'completion_timeout_per_gi_b': 'int', 'node_drain_taint_key': 'str', - 'parallel_migrations_per_cluster': 'str', - 'parallel_outbound_migrations_per_node': 'str', - 'progress_timeout': 'str', - 'unsafe_migration_override': 'str' + 'parallel_migrations_per_cluster': 'int', + 'parallel_outbound_migrations_per_node': 'int', + 'progress_timeout': 'int', + 'unsafe_migration_override': 'bool' } attribute_map = { @@ -94,7 +94,7 @@ def allow_auto_converge(self): Gets the allow_auto_converge of this V1MigrationConfiguration. :return: The allow_auto_converge of this V1MigrationConfiguration. - :rtype: str + :rtype: bool """ return self._allow_auto_converge @@ -104,7 +104,7 @@ def allow_auto_converge(self, allow_auto_converge): Sets the allow_auto_converge of this V1MigrationConfiguration. :param allow_auto_converge: The allow_auto_converge of this V1MigrationConfiguration. - :type: str + :type: bool """ self._allow_auto_converge = allow_auto_converge @@ -115,7 +115,7 @@ def allow_post_copy(self): Gets the allow_post_copy of this V1MigrationConfiguration. :return: The allow_post_copy of this V1MigrationConfiguration. - :rtype: str + :rtype: bool """ return self._allow_post_copy @@ -125,7 +125,7 @@ def allow_post_copy(self, allow_post_copy): Sets the allow_post_copy of this V1MigrationConfiguration. :param allow_post_copy: The allow_post_copy of this V1MigrationConfiguration. - :type: str + :type: bool """ self._allow_post_copy = allow_post_copy @@ -157,7 +157,7 @@ def completion_timeout_per_gi_b(self): Gets the completion_timeout_per_gi_b of this V1MigrationConfiguration. :return: The completion_timeout_per_gi_b of this V1MigrationConfiguration. - :rtype: str + :rtype: int """ return self._completion_timeout_per_gi_b @@ -167,7 +167,7 @@ def completion_timeout_per_gi_b(self, completion_timeout_per_gi_b): Sets the completion_timeout_per_gi_b of this V1MigrationConfiguration. :param completion_timeout_per_gi_b: The completion_timeout_per_gi_b of this V1MigrationConfiguration. - :type: str + :type: int """ self._completion_timeout_per_gi_b = completion_timeout_per_gi_b @@ -199,7 +199,7 @@ def parallel_migrations_per_cluster(self): Gets the parallel_migrations_per_cluster of this V1MigrationConfiguration. :return: The parallel_migrations_per_cluster of this V1MigrationConfiguration. - :rtype: str + :rtype: int """ return self._parallel_migrations_per_cluster @@ -209,7 +209,7 @@ def parallel_migrations_per_cluster(self, parallel_migrations_per_cluster): Sets the parallel_migrations_per_cluster of this V1MigrationConfiguration. :param parallel_migrations_per_cluster: The parallel_migrations_per_cluster of this V1MigrationConfiguration. - :type: str + :type: int """ self._parallel_migrations_per_cluster = parallel_migrations_per_cluster @@ -220,7 +220,7 @@ def parallel_outbound_migrations_per_node(self): Gets the parallel_outbound_migrations_per_node of this V1MigrationConfiguration. :return: The parallel_outbound_migrations_per_node of this V1MigrationConfiguration. - :rtype: str + :rtype: int """ return self._parallel_outbound_migrations_per_node @@ -230,7 +230,7 @@ def parallel_outbound_migrations_per_node(self, parallel_outbound_migrations_per Sets the parallel_outbound_migrations_per_node of this V1MigrationConfiguration. :param parallel_outbound_migrations_per_node: The parallel_outbound_migrations_per_node of this V1MigrationConfiguration. - :type: str + :type: int """ self._parallel_outbound_migrations_per_node = parallel_outbound_migrations_per_node @@ -241,7 +241,7 @@ def progress_timeout(self): Gets the progress_timeout of this V1MigrationConfiguration. :return: The progress_timeout of this V1MigrationConfiguration. - :rtype: str + :rtype: int """ return self._progress_timeout @@ -251,7 +251,7 @@ def progress_timeout(self, progress_timeout): Sets the progress_timeout of this V1MigrationConfiguration. :param progress_timeout: The progress_timeout of this V1MigrationConfiguration. - :type: str + :type: int """ self._progress_timeout = progress_timeout @@ -262,7 +262,7 @@ def unsafe_migration_override(self): Gets the unsafe_migration_override of this V1MigrationConfiguration. :return: The unsafe_migration_override of this V1MigrationConfiguration. - :rtype: str + :rtype: bool """ return self._unsafe_migration_override @@ -272,7 +272,7 @@ def unsafe_migration_override(self, unsafe_migration_override): Sets the unsafe_migration_override of this V1MigrationConfiguration. :param unsafe_migration_override: The unsafe_migration_override of this V1MigrationConfiguration. - :type: str + :type: bool """ self._unsafe_migration_override = unsafe_migration_override diff --git a/kubevirt/models/v1_network_configuration.py b/kubevirt/models/v1_network_configuration.py index 643f2961..921b7518 100644 --- a/kubevirt/models/v1_network_configuration.py +++ b/kubevirt/models/v1_network_configuration.py @@ -32,8 +32,8 @@ class V1NetworkConfiguration(object): """ swagger_types = { 'default_network_interface': 'str', - 'permit_bridge_interface_on_pod_network': 'str', - 'permit_slirp_interface': 'str' + 'permit_bridge_interface_on_pod_network': 'bool', + 'permit_slirp_interface': 'bool' } attribute_map = { @@ -85,7 +85,7 @@ def permit_bridge_interface_on_pod_network(self): Gets the permit_bridge_interface_on_pod_network of this V1NetworkConfiguration. :return: The permit_bridge_interface_on_pod_network of this V1NetworkConfiguration. - :rtype: str + :rtype: bool """ return self._permit_bridge_interface_on_pod_network @@ -95,7 +95,7 @@ def permit_bridge_interface_on_pod_network(self, permit_bridge_interface_on_pod_ Sets the permit_bridge_interface_on_pod_network of this V1NetworkConfiguration. :param permit_bridge_interface_on_pod_network: The permit_bridge_interface_on_pod_network of this V1NetworkConfiguration. - :type: str + :type: bool """ self._permit_bridge_interface_on_pod_network = permit_bridge_interface_on_pod_network @@ -106,7 +106,7 @@ def permit_slirp_interface(self): Gets the permit_slirp_interface of this V1NetworkConfiguration. :return: The permit_slirp_interface of this V1NetworkConfiguration. - :rtype: str + :rtype: bool """ return self._permit_slirp_interface @@ -116,7 +116,7 @@ def permit_slirp_interface(self, permit_slirp_interface): Sets the permit_slirp_interface of this V1NetworkConfiguration. :param permit_slirp_interface: The permit_slirp_interface of this V1NetworkConfiguration. - :type: str + :type: bool """ self._permit_slirp_interface = permit_slirp_interface diff --git a/setup.py b/setup.py index 65f17ffc..94295ac6 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.34.0-rc.0-192-gb7e8d366" +VERSION = "v0.34.0-rc.0-259-g3897692c" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 97917626..e18d42c2 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.34.0-rc.0-192-gb7e8d366" +"packageVersion": "v0.34.0-rc.0-259-g3897692c" } From 9ae7197995d06c42160d7f4fb5e0e4fc37174550 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 4 Nov 2020 09:46:35 +0000 Subject: [PATCH 160/521] Client Python update by Travis Build 15571 --- README.md | 6 +- docs/V1Devices.md | 1 + docs/V1HostDevice.md | 11 ++ docs/V1KubeVirtConfiguration.md | 1 + docs/V1MediatedHostDevice.md | 12 ++ docs/V1PciHostDevice.md | 12 ++ docs/V1PermittedHostDevices.md | 11 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 12 ++ kubevirt/__init__.py | 4 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 4 + kubevirt/models/v1_devices.py | 30 ++- kubevirt/models/v1_host_device.py | 153 +++++++++++++++ kubevirt/models/v1_kube_virt_configuration.py | 28 ++- kubevirt/models/v1_mediated_host_device.py | 177 ++++++++++++++++++ kubevirt/models/v1_pci_host_device.py | 177 ++++++++++++++++++ kubevirt/models/v1_permitted_host_devices.py | 149 +++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_host_device.py | 44 +++++ test/test_v1_mediated_host_device.py | 44 +++++ test/test_v1_pci_host_device.py | 44 +++++ test/test_v1_permitted_host_devices.py | 44 +++++ 25 files changed, 966 insertions(+), 8 deletions(-) create mode 100644 docs/V1HostDevice.md create mode 100644 docs/V1MediatedHostDevice.md create mode 100644 docs/V1PciHostDevice.md create mode 100644 docs/V1PermittedHostDevices.md create mode 100644 kubevirt/models/v1_host_device.py create mode 100644 kubevirt/models/v1_mediated_host_device.py create mode 100644 kubevirt/models/v1_pci_host_device.py create mode 100644 kubevirt/models/v1_permitted_host_devices.py create mode 100644 test/test_v1_host_device.py create mode 100644 test/test_v1_mediated_host_device.py create mode 100644 test/test_v1_pci_host_device.py create mode 100644 test/test_v1_permitted_host_devices.py diff --git a/README.md b/README.md index 4e67b428..9fb5156b 100644 --- a/README.md +++ b/README.md @@ -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: v0.34.0-rc.0-259-g3897692c +- Package version: v0.35.0-rc.0-72-gcf891f61 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -282,6 +282,7 @@ Class | Method | HTTP request | Description - [V1FloppyTarget](docs/V1FloppyTarget.md) - [V1GPU](docs/V1GPU.md) - [V1HPETTimer](docs/V1HPETTimer.md) + - [V1HostDevice](docs/V1HostDevice.md) - [V1HostDisk](docs/V1HostDisk.md) - [V1Hugepages](docs/V1Hugepages.md) - [V1HypervTimer](docs/V1HypervTimer.md) @@ -304,6 +305,7 @@ Class | Method | HTTP request | Description - [V1KubeVirtStatus](docs/V1KubeVirtStatus.md) - [V1LunTarget](docs/V1LunTarget.md) - [V1Machine](docs/V1Machine.md) + - [V1MediatedHostDevice](docs/V1MediatedHostDevice.md) - [V1Memory](docs/V1Memory.md) - [V1MigrationConfiguration](docs/V1MigrationConfiguration.md) - [V1MultusNetwork](docs/V1MultusNetwork.md) @@ -311,6 +313,8 @@ Class | Method | HTTP request | Description - [V1NetworkConfiguration](docs/V1NetworkConfiguration.md) - [V1NodePlacement](docs/V1NodePlacement.md) - [V1PITTimer](docs/V1PITTimer.md) + - [V1PciHostDevice](docs/V1PciHostDevice.md) + - [V1PermittedHostDevices](docs/V1PermittedHostDevices.md) - [V1PodNetwork](docs/V1PodNetwork.md) - [V1Port](docs/V1Port.md) - [V1Probe](docs/V1Probe.md) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index 86d2d33a..416ad8a3 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **disks** | [**list[V1Disk]**](V1Disk.md) | Disks describes disks, cdroms, floppy and luns which are connected to the vmi. | [optional] **filesystems** | [**list[V1Filesystem]**](V1Filesystem.md) | Filesystems describes filesystem which is connected to the vmi. | [optional] **gpus** | [**list[V1GPU]**](V1GPU.md) | Whether to attach a GPU device to the vmi. | [optional] +**host_devices** | [**list[V1HostDevice]**](V1HostDevice.md) | Whether to attach a host device to the vmi. | [optional] **inputs** | [**list[V1Input]**](V1Input.md) | Inputs describe input devices | [optional] **interfaces** | [**list[V1Interface]**](V1Interface.md) | Interfaces describe network interfaces which are added to the vmi. | [optional] **network_interface_multiqueue** | **bool** | If specified, virtual network interfaces configured with a virtio bus will also enable the vhost multiqueue feature for network devices. The number of queues created depends on additional factors of the VirtualMachineInstance, like the number of guest CPUs. | [optional] diff --git a/docs/V1HostDevice.md b/docs/V1HostDevice.md new file mode 100644 index 00000000..83e8366e --- /dev/null +++ b/docs/V1HostDevice.md @@ -0,0 +1,11 @@ +# V1HostDevice + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**device_name** | **str** | DeviceName is the resource name of the host device exposed by a device plugin | +**name** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index 959c4c7f..9422b3a1 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **migrations** | [**V1MigrationConfiguration**](V1MigrationConfiguration.md) | | [optional] **network** | [**V1NetworkConfiguration**](V1NetworkConfiguration.md) | | [optional] **ovmf_path** | **str** | | [optional] +**permitted_host_devices** | [**V1PermittedHostDevices**](V1PermittedHostDevices.md) | | [optional] **selinux_launcher_type** | **str** | | [optional] **smbios** | [**V1SMBiosConfiguration**](V1SMBiosConfiguration.md) | | [optional] **supported_guest_agent_versions** | **list[str]** | | [optional] diff --git a/docs/V1MediatedHostDevice.md b/docs/V1MediatedHostDevice.md new file mode 100644 index 00000000..bb9e6290 --- /dev/null +++ b/docs/V1MediatedHostDevice.md @@ -0,0 +1,12 @@ +# V1MediatedHostDevice + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**external_resource_provider** | **bool** | | [optional] +**mdev_name_selector** | **str** | | +**resource_name** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PciHostDevice.md b/docs/V1PciHostDevice.md new file mode 100644 index 00000000..6a9d58e8 --- /dev/null +++ b/docs/V1PciHostDevice.md @@ -0,0 +1,12 @@ +# V1PciHostDevice + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**external_resource_provider** | **bool** | | [optional] +**pci_vendor_selector** | **str** | | +**resource_name** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PermittedHostDevices.md b/docs/V1PermittedHostDevices.md new file mode 100644 index 00000000..dfb4f4c1 --- /dev/null +++ b/docs/V1PermittedHostDevices.md @@ -0,0 +1,11 @@ +# V1PermittedHostDevices + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mediated_devices** | [**list[V1MediatedHostDevice]**](V1MediatedHostDevice.md) | | [optional] +**pci_host_devices** | [**list[V1PciHostDevice]**](V1PciHostDevice.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 0efed554..059545b7 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.34.0-rc.0-259-g3897692c" + release_note="Auto-generated client v0.35.0-rc.0-72-gcf891f61" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 9b9c2cef..46e51c05 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -306,6 +306,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_hpet_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_hpet_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1HPETTimer.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_host_device.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_host_device.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1HostDevice.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_host_disk.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_host_disk.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1HostDisk.md @@ -372,6 +375,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_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Machine.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_mediated_host_device.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_mediated_host_device.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1MediatedHostDevice.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_memory.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_memory.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Memory.md @@ -393,6 +399,12 @@ 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_pit_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pit_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PITTimer.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_pci_host_device.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pci_host_device.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PciHostDevice.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_permitted_host_devices.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_permitted_host_devices.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PermittedHostDevices.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_pod_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pod_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PodNetwork.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index ab55247e..5d14bed6 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -109,6 +109,7 @@ from .models.v1_floppy_target import V1FloppyTarget from .models.v1_gpu import V1GPU from .models.v1_hpet_timer import V1HPETTimer +from .models.v1_host_device import V1HostDevice from .models.v1_host_disk import V1HostDisk from .models.v1_hugepages import V1Hugepages from .models.v1_hyperv_timer import V1HypervTimer @@ -131,6 +132,7 @@ from .models.v1_kube_virt_status import V1KubeVirtStatus from .models.v1_lun_target import V1LunTarget from .models.v1_machine import V1Machine +from .models.v1_mediated_host_device import V1MediatedHostDevice from .models.v1_memory import V1Memory from .models.v1_migration_configuration import V1MigrationConfiguration from .models.v1_multus_network import V1MultusNetwork @@ -138,6 +140,8 @@ from .models.v1_network_configuration import V1NetworkConfiguration from .models.v1_node_placement import V1NodePlacement from .models.v1_pit_timer import V1PITTimer +from .models.v1_pci_host_device import V1PciHostDevice +from .models.v1_permitted_host_devices import V1PermittedHostDevices from .models.v1_pod_network import V1PodNetwork from .models.v1_port import V1Port from .models.v1_probe import V1Probe diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 6cf0ec88..f83b7f9d 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.34.0-rc.0-259-g3897692c/python' + self.user_agent = 'Swagger-Codegen/v0.35.0-rc.0-72-gcf891f61/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c0615250..c75f1298 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.34.0-rc.0-259-g3897692c".\ + "SDK Package Version: v0.35.0-rc.0-72-gcf891f61".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 39412941..f33c2a65 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -109,6 +109,7 @@ from .v1_floppy_target import V1FloppyTarget from .v1_gpu import V1GPU from .v1_hpet_timer import V1HPETTimer +from .v1_host_device import V1HostDevice from .v1_host_disk import V1HostDisk from .v1_hugepages import V1Hugepages from .v1_hyperv_timer import V1HypervTimer @@ -131,6 +132,7 @@ from .v1_kube_virt_status import V1KubeVirtStatus from .v1_lun_target import V1LunTarget from .v1_machine import V1Machine +from .v1_mediated_host_device import V1MediatedHostDevice from .v1_memory import V1Memory from .v1_migration_configuration import V1MigrationConfiguration from .v1_multus_network import V1MultusNetwork @@ -138,6 +140,8 @@ from .v1_network_configuration import V1NetworkConfiguration from .v1_node_placement import V1NodePlacement from .v1_pit_timer import V1PITTimer +from .v1_pci_host_device import V1PciHostDevice +from .v1_permitted_host_devices import V1PermittedHostDevices from .v1_pod_network import V1PodNetwork from .v1_port import V1Port from .v1_probe import V1Probe diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index 46fcbd1e..3670c06e 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -39,6 +39,7 @@ class V1Devices(object): 'disks': 'list[V1Disk]', 'filesystems': 'list[V1Filesystem]', 'gpus': 'list[V1GPU]', + 'host_devices': 'list[V1HostDevice]', 'inputs': 'list[V1Input]', 'interfaces': 'list[V1Interface]', 'network_interface_multiqueue': 'bool', @@ -55,6 +56,7 @@ class V1Devices(object): 'disks': 'disks', 'filesystems': 'filesystems', 'gpus': 'gpus', + 'host_devices': 'hostDevices', 'inputs': 'inputs', 'interfaces': 'interfaces', 'network_interface_multiqueue': 'networkInterfaceMultiqueue', @@ -62,7 +64,7 @@ class V1Devices(object): 'watchdog': 'watchdog' } - def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, autoattach_pod_interface=None, autoattach_serial_console=None, block_multi_queue=None, disks=None, filesystems=None, gpus=None, inputs=None, interfaces=None, network_interface_multiqueue=None, rng=None, watchdog=None): + def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, autoattach_pod_interface=None, autoattach_serial_console=None, block_multi_queue=None, disks=None, filesystems=None, gpus=None, host_devices=None, inputs=None, interfaces=None, network_interface_multiqueue=None, rng=None, watchdog=None): """ V1Devices - a model defined in Swagger """ @@ -75,6 +77,7 @@ def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, self._disks = None self._filesystems = None self._gpus = None + self._host_devices = None self._inputs = None self._interfaces = None self._network_interface_multiqueue = None @@ -97,6 +100,8 @@ def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, self.filesystems = filesystems if gpus is not None: self.gpus = gpus + if host_devices is not None: + self.host_devices = host_devices if inputs is not None: self.inputs = inputs if interfaces is not None: @@ -292,6 +297,29 @@ def gpus(self, gpus): self._gpus = gpus + @property + def host_devices(self): + """ + Gets the host_devices of this V1Devices. + Whether to attach a host device to the vmi. + + :return: The host_devices of this V1Devices. + :rtype: list[V1HostDevice] + """ + return self._host_devices + + @host_devices.setter + def host_devices(self, host_devices): + """ + Sets the host_devices of this V1Devices. + Whether to attach a host device to the vmi. + + :param host_devices: The host_devices of this V1Devices. + :type: list[V1HostDevice] + """ + + self._host_devices = host_devices + @property def inputs(self): """ diff --git a/kubevirt/models/v1_host_device.py b/kubevirt/models/v1_host_device.py new file mode 100644 index 00000000..f12f35a4 --- /dev/null +++ b/kubevirt/models/v1_host_device.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1HostDevice(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'device_name': 'str', + 'name': 'str' + } + + attribute_map = { + 'device_name': 'deviceName', + 'name': 'name' + } + + def __init__(self, device_name=None, name=None): + """ + V1HostDevice - a model defined in Swagger + """ + + self._device_name = None + self._name = None + + self.device_name = device_name + self.name = name + + @property + def device_name(self): + """ + Gets the device_name of this V1HostDevice. + DeviceName is the resource name of the host device exposed by a device plugin + + :return: The device_name of this V1HostDevice. + :rtype: str + """ + return self._device_name + + @device_name.setter + def device_name(self, device_name): + """ + Sets the device_name of this V1HostDevice. + DeviceName is the resource name of the host device exposed by a device plugin + + :param device_name: The device_name of this V1HostDevice. + :type: str + """ + if device_name is None: + raise ValueError("Invalid value for `device_name`, must not be `None`") + + self._device_name = device_name + + @property + def name(self): + """ + Gets the name of this V1HostDevice. + + :return: The name of this V1HostDevice. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1HostDevice. + + :param name: The name of this V1HostDevice. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1HostDevice): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index ad5bb320..afcf9370 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -41,6 +41,7 @@ class V1KubeVirtConfiguration(object): 'migrations': 'V1MigrationConfiguration', 'network': 'V1NetworkConfiguration', 'ovmf_path': 'str', + 'permitted_host_devices': 'V1PermittedHostDevices', 'selinux_launcher_type': 'str', 'smbios': 'V1SMBiosConfiguration', 'supported_guest_agent_versions': 'list[str]' @@ -57,12 +58,13 @@ class V1KubeVirtConfiguration(object): 'migrations': 'migrations', 'network': 'network', 'ovmf_path': 'ovmfPath', + 'permitted_host_devices': 'permittedHostDevices', 'selinux_launcher_type': 'selinuxLauncherType', 'smbios': 'smbios', 'supported_guest_agent_versions': 'supportedGuestAgentVersions' } - def __init__(self, cpu_model=None, cpu_request=None, developer_configuration=None, emulated_machines=None, image_pull_policy=None, machine_type=None, mem_balloon_stats_period=None, migrations=None, network=None, ovmf_path=None, selinux_launcher_type=None, smbios=None, supported_guest_agent_versions=None): + def __init__(self, cpu_model=None, cpu_request=None, developer_configuration=None, emulated_machines=None, image_pull_policy=None, machine_type=None, mem_balloon_stats_period=None, migrations=None, network=None, ovmf_path=None, permitted_host_devices=None, selinux_launcher_type=None, smbios=None, supported_guest_agent_versions=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ @@ -77,6 +79,7 @@ def __init__(self, cpu_model=None, cpu_request=None, developer_configuration=Non self._migrations = None self._network = None self._ovmf_path = None + self._permitted_host_devices = None self._selinux_launcher_type = None self._smbios = None self._supported_guest_agent_versions = None @@ -101,6 +104,8 @@ def __init__(self, cpu_model=None, cpu_request=None, developer_configuration=Non self.network = network if ovmf_path is not None: self.ovmf_path = ovmf_path + if permitted_host_devices is not None: + self.permitted_host_devices = permitted_host_devices if selinux_launcher_type is not None: self.selinux_launcher_type = selinux_launcher_type if smbios is not None: @@ -318,6 +323,27 @@ def ovmf_path(self, ovmf_path): self._ovmf_path = ovmf_path + @property + def permitted_host_devices(self): + """ + Gets the permitted_host_devices of this V1KubeVirtConfiguration. + + :return: The permitted_host_devices of this V1KubeVirtConfiguration. + :rtype: V1PermittedHostDevices + """ + return self._permitted_host_devices + + @permitted_host_devices.setter + def permitted_host_devices(self, permitted_host_devices): + """ + Sets the permitted_host_devices of this V1KubeVirtConfiguration. + + :param permitted_host_devices: The permitted_host_devices of this V1KubeVirtConfiguration. + :type: V1PermittedHostDevices + """ + + self._permitted_host_devices = permitted_host_devices + @property def selinux_launcher_type(self): """ diff --git a/kubevirt/models/v1_mediated_host_device.py b/kubevirt/models/v1_mediated_host_device.py new file mode 100644 index 00000000..93792117 --- /dev/null +++ b/kubevirt/models/v1_mediated_host_device.py @@ -0,0 +1,177 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1MediatedHostDevice(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'external_resource_provider': 'bool', + 'mdev_name_selector': 'str', + 'resource_name': 'str' + } + + attribute_map = { + 'external_resource_provider': 'externalResourceProvider', + 'mdev_name_selector': 'mdevNameSelector', + 'resource_name': 'resourceName' + } + + def __init__(self, external_resource_provider=None, mdev_name_selector=None, resource_name=None): + """ + V1MediatedHostDevice - a model defined in Swagger + """ + + self._external_resource_provider = None + self._mdev_name_selector = None + self._resource_name = None + + if external_resource_provider is not None: + self.external_resource_provider = external_resource_provider + self.mdev_name_selector = mdev_name_selector + self.resource_name = resource_name + + @property + def external_resource_provider(self): + """ + Gets the external_resource_provider of this V1MediatedHostDevice. + + :return: The external_resource_provider of this V1MediatedHostDevice. + :rtype: bool + """ + return self._external_resource_provider + + @external_resource_provider.setter + def external_resource_provider(self, external_resource_provider): + """ + Sets the external_resource_provider of this V1MediatedHostDevice. + + :param external_resource_provider: The external_resource_provider of this V1MediatedHostDevice. + :type: bool + """ + + self._external_resource_provider = external_resource_provider + + @property + def mdev_name_selector(self): + """ + Gets the mdev_name_selector of this V1MediatedHostDevice. + + :return: The mdev_name_selector of this V1MediatedHostDevice. + :rtype: str + """ + return self._mdev_name_selector + + @mdev_name_selector.setter + def mdev_name_selector(self, mdev_name_selector): + """ + Sets the mdev_name_selector of this V1MediatedHostDevice. + + :param mdev_name_selector: The mdev_name_selector of this V1MediatedHostDevice. + :type: str + """ + if mdev_name_selector is None: + raise ValueError("Invalid value for `mdev_name_selector`, must not be `None`") + + self._mdev_name_selector = mdev_name_selector + + @property + def resource_name(self): + """ + Gets the resource_name of this V1MediatedHostDevice. + + :return: The resource_name of this V1MediatedHostDevice. + :rtype: str + """ + return self._resource_name + + @resource_name.setter + def resource_name(self, resource_name): + """ + Sets the resource_name of this V1MediatedHostDevice. + + :param resource_name: The resource_name of this V1MediatedHostDevice. + :type: str + """ + if resource_name is None: + raise ValueError("Invalid value for `resource_name`, must not be `None`") + + self._resource_name = resource_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1MediatedHostDevice): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_pci_host_device.py b/kubevirt/models/v1_pci_host_device.py new file mode 100644 index 00000000..65d45e68 --- /dev/null +++ b/kubevirt/models/v1_pci_host_device.py @@ -0,0 +1,177 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PciHostDevice(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'external_resource_provider': 'bool', + 'pci_vendor_selector': 'str', + 'resource_name': 'str' + } + + attribute_map = { + 'external_resource_provider': 'externalResourceProvider', + 'pci_vendor_selector': 'pciVendorSelector', + 'resource_name': 'resourceName' + } + + def __init__(self, external_resource_provider=None, pci_vendor_selector=None, resource_name=None): + """ + V1PciHostDevice - a model defined in Swagger + """ + + self._external_resource_provider = None + self._pci_vendor_selector = None + self._resource_name = None + + if external_resource_provider is not None: + self.external_resource_provider = external_resource_provider + self.pci_vendor_selector = pci_vendor_selector + self.resource_name = resource_name + + @property + def external_resource_provider(self): + """ + Gets the external_resource_provider of this V1PciHostDevice. + + :return: The external_resource_provider of this V1PciHostDevice. + :rtype: bool + """ + return self._external_resource_provider + + @external_resource_provider.setter + def external_resource_provider(self, external_resource_provider): + """ + Sets the external_resource_provider of this V1PciHostDevice. + + :param external_resource_provider: The external_resource_provider of this V1PciHostDevice. + :type: bool + """ + + self._external_resource_provider = external_resource_provider + + @property + def pci_vendor_selector(self): + """ + Gets the pci_vendor_selector of this V1PciHostDevice. + + :return: The pci_vendor_selector of this V1PciHostDevice. + :rtype: str + """ + return self._pci_vendor_selector + + @pci_vendor_selector.setter + def pci_vendor_selector(self, pci_vendor_selector): + """ + Sets the pci_vendor_selector of this V1PciHostDevice. + + :param pci_vendor_selector: The pci_vendor_selector of this V1PciHostDevice. + :type: str + """ + if pci_vendor_selector is None: + raise ValueError("Invalid value for `pci_vendor_selector`, must not be `None`") + + self._pci_vendor_selector = pci_vendor_selector + + @property + def resource_name(self): + """ + Gets the resource_name of this V1PciHostDevice. + + :return: The resource_name of this V1PciHostDevice. + :rtype: str + """ + return self._resource_name + + @resource_name.setter + def resource_name(self, resource_name): + """ + Sets the resource_name of this V1PciHostDevice. + + :param resource_name: The resource_name of this V1PciHostDevice. + :type: str + """ + if resource_name is None: + raise ValueError("Invalid value for `resource_name`, must not be `None`") + + self._resource_name = resource_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1PciHostDevice): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_permitted_host_devices.py b/kubevirt/models/v1_permitted_host_devices.py new file mode 100644 index 00000000..d9f476a6 --- /dev/null +++ b/kubevirt/models/v1_permitted_host_devices.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PermittedHostDevices(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'mediated_devices': 'list[V1MediatedHostDevice]', + 'pci_host_devices': 'list[V1PciHostDevice]' + } + + attribute_map = { + 'mediated_devices': 'mediatedDevices', + 'pci_host_devices': 'pciHostDevices' + } + + def __init__(self, mediated_devices=None, pci_host_devices=None): + """ + V1PermittedHostDevices - a model defined in Swagger + """ + + self._mediated_devices = None + self._pci_host_devices = None + + if mediated_devices is not None: + self.mediated_devices = mediated_devices + if pci_host_devices is not None: + self.pci_host_devices = pci_host_devices + + @property + def mediated_devices(self): + """ + Gets the mediated_devices of this V1PermittedHostDevices. + + :return: The mediated_devices of this V1PermittedHostDevices. + :rtype: list[V1MediatedHostDevice] + """ + return self._mediated_devices + + @mediated_devices.setter + def mediated_devices(self, mediated_devices): + """ + Sets the mediated_devices of this V1PermittedHostDevices. + + :param mediated_devices: The mediated_devices of this V1PermittedHostDevices. + :type: list[V1MediatedHostDevice] + """ + + self._mediated_devices = mediated_devices + + @property + def pci_host_devices(self): + """ + Gets the pci_host_devices of this V1PermittedHostDevices. + + :return: The pci_host_devices of this V1PermittedHostDevices. + :rtype: list[V1PciHostDevice] + """ + return self._pci_host_devices + + @pci_host_devices.setter + def pci_host_devices(self, pci_host_devices): + """ + Sets the pci_host_devices of this V1PermittedHostDevices. + + :param pci_host_devices: The pci_host_devices of this V1PermittedHostDevices. + :type: list[V1PciHostDevice] + """ + + self._pci_host_devices = pci_host_devices + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1PermittedHostDevices): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 94295ac6..46a656bb 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.34.0-rc.0-259-g3897692c" +VERSION = "v0.35.0-rc.0-72-gcf891f61" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index e18d42c2..7c7adc88 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.34.0-rc.0-259-g3897692c" +"packageVersion": "v0.35.0-rc.0-72-gcf891f61" } diff --git a/test/test_v1_host_device.py b/test/test_v1_host_device.py new file mode 100644 index 00000000..662869ad --- /dev/null +++ b/test/test_v1_host_device.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_host_device import V1HostDevice + + +class TestV1HostDevice(unittest.TestCase): + """ V1HostDevice unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1HostDevice(self): + """ + Test V1HostDevice + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_host_device.V1HostDevice() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_mediated_host_device.py b/test/test_v1_mediated_host_device.py new file mode 100644 index 00000000..2964c5e4 --- /dev/null +++ b/test/test_v1_mediated_host_device.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_mediated_host_device import V1MediatedHostDevice + + +class TestV1MediatedHostDevice(unittest.TestCase): + """ V1MediatedHostDevice unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1MediatedHostDevice(self): + """ + Test V1MediatedHostDevice + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_mediated_host_device.V1MediatedHostDevice() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_pci_host_device.py b/test/test_v1_pci_host_device.py new file mode 100644 index 00000000..32511c9a --- /dev/null +++ b/test/test_v1_pci_host_device.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_pci_host_device import V1PciHostDevice + + +class TestV1PciHostDevice(unittest.TestCase): + """ V1PciHostDevice unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PciHostDevice(self): + """ + Test V1PciHostDevice + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_pci_host_device.V1PciHostDevice() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_permitted_host_devices.py b/test/test_v1_permitted_host_devices.py new file mode 100644 index 00000000..0a2ae1b4 --- /dev/null +++ b/test/test_v1_permitted_host_devices.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_permitted_host_devices import V1PermittedHostDevices + + +class TestV1PermittedHostDevices(unittest.TestCase): + """ V1PermittedHostDevices unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PermittedHostDevices(self): + """ + Test V1PermittedHostDevices + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_permitted_host_devices.V1PermittedHostDevices() + pass + + +if __name__ == '__main__': + unittest.main() From cbae28e818c2a261d2c5d9a24bf2fe68391b7daf Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 18 Nov 2020 15:21:24 +0000 Subject: [PATCH 161/521] Client Python update by Travis Build 15612 --- README.md | 6 +- docs/K8sIoApiCoreV1PersistentVolumeClaim.md | 14 -- ...ApiCoreV1PersistentVolumeClaimCondition.md | 13 - ...sIoApiCoreV1PersistentVolumeClaimStatus.md | 13 - docs/V1alpha1PersistentVolumeClaim.md | 11 + docs/V1alpha1VolumeBackup.md | 2 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 14 +- kubevirt/__init__.py | 4 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 4 +- ..._io_api_core_v1_persistent_volume_claim.py | 237 ------------------ ...re_v1_persistent_volume_claim_condition.py | 207 --------------- ..._core_v1_persistent_volume_claim_status.py | 209 --------------- .../v1alpha1_persistent_volume_claim.py | 153 +++++++++++ kubevirt/models/v1alpha1_volume_backup.py | 6 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...re_v1_persistent_volume_claim_condition.py | 44 ---- ..._core_v1_persistent_volume_claim_status.py | 44 ---- ... test_v1alpha1_persistent_volume_claim.py} | 12 +- 22 files changed, 186 insertions(+), 817 deletions(-) delete mode 100644 docs/K8sIoApiCoreV1PersistentVolumeClaim.md delete mode 100644 docs/K8sIoApiCoreV1PersistentVolumeClaimCondition.md delete mode 100644 docs/K8sIoApiCoreV1PersistentVolumeClaimStatus.md create mode 100644 docs/V1alpha1PersistentVolumeClaim.md delete mode 100644 kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim.py delete mode 100644 kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_condition.py delete mode 100644 kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_status.py create mode 100644 kubevirt/models/v1alpha1_persistent_volume_claim.py delete mode 100644 test/test_k8s_io_api_core_v1_persistent_volume_claim_condition.py delete mode 100644 test/test_k8s_io_api_core_v1_persistent_volume_claim_status.py rename test/{test_k8s_io_api_core_v1_persistent_volume_claim.py => test_v1alpha1_persistent_volume_claim.py} (57%) diff --git a/README.md b/README.md index 9fb5156b..0f8a756d 100644 --- a/README.md +++ b/README.md @@ -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: v0.35.0-rc.0-72-gcf891f61 +- Package version: v0.35.0-173-g5978d813 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -197,10 +197,7 @@ Class | Method | HTTP request | Description - [K8sIoApiCoreV1NodeSelectorRequirement](docs/K8sIoApiCoreV1NodeSelectorRequirement.md) - [K8sIoApiCoreV1NodeSelectorTerm](docs/K8sIoApiCoreV1NodeSelectorTerm.md) - [K8sIoApiCoreV1ObjectFieldSelector](docs/K8sIoApiCoreV1ObjectFieldSelector.md) - - [K8sIoApiCoreV1PersistentVolumeClaim](docs/K8sIoApiCoreV1PersistentVolumeClaim.md) - - [K8sIoApiCoreV1PersistentVolumeClaimCondition](docs/K8sIoApiCoreV1PersistentVolumeClaimCondition.md) - [K8sIoApiCoreV1PersistentVolumeClaimSpec](docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md) - - [K8sIoApiCoreV1PersistentVolumeClaimStatus](docs/K8sIoApiCoreV1PersistentVolumeClaimStatus.md) - [K8sIoApiCoreV1PersistentVolumeClaimVolumeSource](docs/K8sIoApiCoreV1PersistentVolumeClaimVolumeSource.md) - [K8sIoApiCoreV1PodAffinity](docs/K8sIoApiCoreV1PodAffinity.md) - [K8sIoApiCoreV1PodAffinityTerm](docs/K8sIoApiCoreV1PodAffinityTerm.md) @@ -375,6 +372,7 @@ Class | Method | HTTP request | Description - [V1alpha1DataVolumeSourceVDDK](docs/V1alpha1DataVolumeSourceVDDK.md) - [V1alpha1DataVolumeSpec](docs/V1alpha1DataVolumeSpec.md) - [V1alpha1Error](docs/V1alpha1Error.md) + - [V1alpha1PersistentVolumeClaim](docs/V1alpha1PersistentVolumeClaim.md) - [V1alpha1SourceSpec](docs/V1alpha1SourceSpec.md) - [V1alpha1VirtualMachineRestore](docs/V1alpha1VirtualMachineRestore.md) - [V1alpha1VirtualMachineRestoreList](docs/V1alpha1VirtualMachineRestoreList.md) diff --git a/docs/K8sIoApiCoreV1PersistentVolumeClaim.md b/docs/K8sIoApiCoreV1PersistentVolumeClaim.md deleted file mode 100644 index e0cf5f00..00000000 --- a/docs/K8sIoApiCoreV1PersistentVolumeClaim.md +++ /dev/null @@ -1,14 +0,0 @@ -# K8sIoApiCoreV1PersistentVolumeClaim - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] -**spec** | [**K8sIoApiCoreV1PersistentVolumeClaimSpec**](K8sIoApiCoreV1PersistentVolumeClaimSpec.md) | Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] -**status** | [**K8sIoApiCoreV1PersistentVolumeClaimStatus**](K8sIoApiCoreV1PersistentVolumeClaimStatus.md) | Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/K8sIoApiCoreV1PersistentVolumeClaimCondition.md b/docs/K8sIoApiCoreV1PersistentVolumeClaimCondition.md deleted file mode 100644 index b89a4581..00000000 --- a/docs/K8sIoApiCoreV1PersistentVolumeClaimCondition.md +++ /dev/null @@ -1,13 +0,0 @@ -# K8sIoApiCoreV1PersistentVolumeClaimCondition - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **str** | Human-readable message indicating details about last transition. | [optional] -**reason** | **str** | Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized. | [optional] -**status** | **str** | | -**type** | **str** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/K8sIoApiCoreV1PersistentVolumeClaimStatus.md b/docs/K8sIoApiCoreV1PersistentVolumeClaimStatus.md deleted file mode 100644 index 833e4e01..00000000 --- a/docs/K8sIoApiCoreV1PersistentVolumeClaimStatus.md +++ /dev/null @@ -1,13 +0,0 @@ -# K8sIoApiCoreV1PersistentVolumeClaimStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**access_modes** | **list[str]** | AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] -**capacity** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Represents the actual resources of the underlying volume. | [optional] -**conditions** | [**list[K8sIoApiCoreV1PersistentVolumeClaimCondition]**](K8sIoApiCoreV1PersistentVolumeClaimCondition.md) | Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. | [optional] -**phase** | **str** | Phase represents the current phase of PersistentVolumeClaim. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1alpha1PersistentVolumeClaim.md b/docs/V1alpha1PersistentVolumeClaim.md new file mode 100644 index 00000000..0f3342b5 --- /dev/null +++ b/docs/V1alpha1PersistentVolumeClaim.md @@ -0,0 +1,11 @@ +# V1alpha1PersistentVolumeClaim + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**spec** | [**K8sIoApiCoreV1PersistentVolumeClaimSpec**](K8sIoApiCoreV1PersistentVolumeClaimSpec.md) | Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VolumeBackup.md b/docs/V1alpha1VolumeBackup.md index 831caf4c..44931866 100644 --- a/docs/V1alpha1VolumeBackup.md +++ b/docs/V1alpha1VolumeBackup.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**persistent_volume_claim** | [**K8sIoApiCoreV1PersistentVolumeClaim**](K8sIoApiCoreV1PersistentVolumeClaim.md) | | +**persistent_volume_claim** | [**V1alpha1PersistentVolumeClaim**](V1alpha1PersistentVolumeClaim.md) | | **volume_name** | **str** | | **volume_snapshot_name** | **str** | | [optional] diff --git a/git_push.sh b/git_push.sh index 059545b7..445a53c5 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.35.0-rc.0-72-gcf891f61" + release_note="Auto-generated client v0.35.0-173-g5978d813" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 46e51c05..9eb14132 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -1,7 +1,5 @@ [main] INFO io.swagger.parser.Swagger20Parser - reading from /root/go/src/kubevirt.io/kubevirt/api/openapi-spec/swagger.json [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=Last time we probed the condition., DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=Last time the condition transitioned from one status to another., DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. @@ -51,18 +49,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/k8s_io_api_core_v1_object_field_selector.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_object_field_selector.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1ObjectFieldSelector.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_persistent_volume_claim.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1PersistentVolumeClaim.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_condition.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_persistent_volume_claim_condition.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1PersistentVolumeClaimCondition.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_persistent_volume_claim_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_persistent_volume_claim_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1PersistentVolumeClaimStatus.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_persistent_volume_claim_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1PersistentVolumeClaimVolumeSource.md @@ -585,6 +574,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/v1alpha1_error.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_error.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1Error.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_persistent_volume_claim.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_persistent_volume_claim.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1PersistentVolumeClaim.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_source_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_source_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1SourceSpec.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 5d14bed6..ee958cdd 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -24,10 +24,7 @@ from .models.k8s_io_api_core_v1_node_selector_requirement import K8sIoApiCoreV1NodeSelectorRequirement from .models.k8s_io_api_core_v1_node_selector_term import K8sIoApiCoreV1NodeSelectorTerm from .models.k8s_io_api_core_v1_object_field_selector import K8sIoApiCoreV1ObjectFieldSelector -from .models.k8s_io_api_core_v1_persistent_volume_claim import K8sIoApiCoreV1PersistentVolumeClaim -from .models.k8s_io_api_core_v1_persistent_volume_claim_condition import K8sIoApiCoreV1PersistentVolumeClaimCondition from .models.k8s_io_api_core_v1_persistent_volume_claim_spec import K8sIoApiCoreV1PersistentVolumeClaimSpec -from .models.k8s_io_api_core_v1_persistent_volume_claim_status import K8sIoApiCoreV1PersistentVolumeClaimStatus from .models.k8s_io_api_core_v1_persistent_volume_claim_volume_source import K8sIoApiCoreV1PersistentVolumeClaimVolumeSource from .models.k8s_io_api_core_v1_pod_affinity import K8sIoApiCoreV1PodAffinity from .models.k8s_io_api_core_v1_pod_affinity_term import K8sIoApiCoreV1PodAffinityTerm @@ -202,6 +199,7 @@ from .models.v1alpha1_data_volume_source_vddk import V1alpha1DataVolumeSourceVDDK from .models.v1alpha1_data_volume_spec import V1alpha1DataVolumeSpec from .models.v1alpha1_error import V1alpha1Error +from .models.v1alpha1_persistent_volume_claim import V1alpha1PersistentVolumeClaim from .models.v1alpha1_source_spec import V1alpha1SourceSpec from .models.v1alpha1_virtual_machine_restore import V1alpha1VirtualMachineRestore from .models.v1alpha1_virtual_machine_restore_list import V1alpha1VirtualMachineRestoreList diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index f83b7f9d..9cc32af0 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.35.0-rc.0-72-gcf891f61/python' + self.user_agent = 'Swagger-Codegen/v0.35.0-173-g5978d813/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c75f1298..cdde087e 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.35.0-rc.0-72-gcf891f61".\ + "SDK Package Version: v0.35.0-173-g5978d813".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index f33c2a65..de1ff190 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -24,10 +24,7 @@ from .k8s_io_api_core_v1_node_selector_requirement import K8sIoApiCoreV1NodeSelectorRequirement from .k8s_io_api_core_v1_node_selector_term import K8sIoApiCoreV1NodeSelectorTerm from .k8s_io_api_core_v1_object_field_selector import K8sIoApiCoreV1ObjectFieldSelector -from .k8s_io_api_core_v1_persistent_volume_claim import K8sIoApiCoreV1PersistentVolumeClaim -from .k8s_io_api_core_v1_persistent_volume_claim_condition import K8sIoApiCoreV1PersistentVolumeClaimCondition from .k8s_io_api_core_v1_persistent_volume_claim_spec import K8sIoApiCoreV1PersistentVolumeClaimSpec -from .k8s_io_api_core_v1_persistent_volume_claim_status import K8sIoApiCoreV1PersistentVolumeClaimStatus from .k8s_io_api_core_v1_persistent_volume_claim_volume_source import K8sIoApiCoreV1PersistentVolumeClaimVolumeSource from .k8s_io_api_core_v1_pod_affinity import K8sIoApiCoreV1PodAffinity from .k8s_io_api_core_v1_pod_affinity_term import K8sIoApiCoreV1PodAffinityTerm @@ -202,6 +199,7 @@ from .v1alpha1_data_volume_source_vddk import V1alpha1DataVolumeSourceVDDK from .v1alpha1_data_volume_spec import V1alpha1DataVolumeSpec from .v1alpha1_error import V1alpha1Error +from .v1alpha1_persistent_volume_claim import V1alpha1PersistentVolumeClaim from .v1alpha1_source_spec import V1alpha1SourceSpec from .v1alpha1_virtual_machine_restore import V1alpha1VirtualMachineRestore from .v1alpha1_virtual_machine_restore_list import V1alpha1VirtualMachineRestoreList diff --git a/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim.py b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim.py deleted file mode 100644 index d9886556..00000000 --- a/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim.py +++ /dev/null @@ -1,237 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class K8sIoApiCoreV1PersistentVolumeClaim(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'api_version': 'str', - 'kind': 'str', - 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', - 'spec': 'K8sIoApiCoreV1PersistentVolumeClaimSpec', - 'status': 'K8sIoApiCoreV1PersistentVolumeClaimStatus' - } - - attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'metadata': 'metadata', - 'spec': 'spec', - 'status': 'status' - } - - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - K8sIoApiCoreV1PersistentVolumeClaim - a model defined in Swagger - """ - - self._api_version = None - self._kind = None - self._metadata = None - self._spec = None - self._status = None - - if api_version is not None: - self.api_version = api_version - if kind is not None: - self.kind = kind - if metadata is not None: - self.metadata = metadata - if spec is not None: - self.spec = spec - if status is not None: - self.status = status - - @property - def api_version(self): - """ - Gets the api_version of this K8sIoApiCoreV1PersistentVolumeClaim. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - - :return: The api_version of this K8sIoApiCoreV1PersistentVolumeClaim. - :rtype: str - """ - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """ - Sets the api_version of this K8sIoApiCoreV1PersistentVolumeClaim. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - - :param api_version: The api_version of this K8sIoApiCoreV1PersistentVolumeClaim. - :type: str - """ - - self._api_version = api_version - - @property - def kind(self): - """ - Gets the kind of this K8sIoApiCoreV1PersistentVolumeClaim. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - - :return: The kind of this K8sIoApiCoreV1PersistentVolumeClaim. - :rtype: str - """ - return self._kind - - @kind.setter - def kind(self, kind): - """ - Sets the kind of this K8sIoApiCoreV1PersistentVolumeClaim. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - - :param kind: The kind of this K8sIoApiCoreV1PersistentVolumeClaim. - :type: str - """ - - self._kind = kind - - @property - def metadata(self): - """ - Gets the metadata of this K8sIoApiCoreV1PersistentVolumeClaim. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - :return: The metadata of this K8sIoApiCoreV1PersistentVolumeClaim. - :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this K8sIoApiCoreV1PersistentVolumeClaim. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - :param metadata: The metadata of this K8sIoApiCoreV1PersistentVolumeClaim. - :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta - """ - - self._metadata = metadata - - @property - def spec(self): - """ - Gets the spec of this K8sIoApiCoreV1PersistentVolumeClaim. - Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - - :return: The spec of this K8sIoApiCoreV1PersistentVolumeClaim. - :rtype: K8sIoApiCoreV1PersistentVolumeClaimSpec - """ - return self._spec - - @spec.setter - def spec(self, spec): - """ - Sets the spec of this K8sIoApiCoreV1PersistentVolumeClaim. - Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - - :param spec: The spec of this K8sIoApiCoreV1PersistentVolumeClaim. - :type: K8sIoApiCoreV1PersistentVolumeClaimSpec - """ - - self._spec = spec - - @property - def status(self): - """ - Gets the status of this K8sIoApiCoreV1PersistentVolumeClaim. - Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - - :return: The status of this K8sIoApiCoreV1PersistentVolumeClaim. - :rtype: K8sIoApiCoreV1PersistentVolumeClaimStatus - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this K8sIoApiCoreV1PersistentVolumeClaim. - Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - - :param status: The status of this K8sIoApiCoreV1PersistentVolumeClaim. - :type: K8sIoApiCoreV1PersistentVolumeClaimStatus - """ - - self._status = status - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, K8sIoApiCoreV1PersistentVolumeClaim): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_condition.py b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_condition.py deleted file mode 100644 index 45f6c12e..00000000 --- a/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_condition.py +++ /dev/null @@ -1,207 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class K8sIoApiCoreV1PersistentVolumeClaimCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'message': 'str', - 'reason': 'str', - 'status': 'str', - 'type': 'str' - } - - attribute_map = { - 'message': 'message', - 'reason': 'reason', - 'status': 'status', - 'type': 'type' - } - - def __init__(self, message=None, reason=None, status=None, type=None): - """ - K8sIoApiCoreV1PersistentVolumeClaimCondition - a model defined in Swagger - """ - - self._message = None - self._reason = None - self._status = None - self._type = None - - if message is not None: - self.message = message - if reason is not None: - self.reason = reason - self.status = status - self.type = type - - @property - def message(self): - """ - Gets the message of this K8sIoApiCoreV1PersistentVolumeClaimCondition. - Human-readable message indicating details about last transition. - - :return: The message of this K8sIoApiCoreV1PersistentVolumeClaimCondition. - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """ - Sets the message of this K8sIoApiCoreV1PersistentVolumeClaimCondition. - Human-readable message indicating details about last transition. - - :param message: The message of this K8sIoApiCoreV1PersistentVolumeClaimCondition. - :type: str - """ - - self._message = message - - @property - def reason(self): - """ - Gets the reason of this K8sIoApiCoreV1PersistentVolumeClaimCondition. - Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized. - - :return: The reason of this K8sIoApiCoreV1PersistentVolumeClaimCondition. - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """ - Sets the reason of this K8sIoApiCoreV1PersistentVolumeClaimCondition. - Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized. - - :param reason: The reason of this K8sIoApiCoreV1PersistentVolumeClaimCondition. - :type: str - """ - - self._reason = reason - - @property - def status(self): - """ - Gets the status of this K8sIoApiCoreV1PersistentVolumeClaimCondition. - - :return: The status of this K8sIoApiCoreV1PersistentVolumeClaimCondition. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this K8sIoApiCoreV1PersistentVolumeClaimCondition. - - :param status: The status of this K8sIoApiCoreV1PersistentVolumeClaimCondition. - :type: str - """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") - - self._status = status - - @property - def type(self): - """ - Gets the type of this K8sIoApiCoreV1PersistentVolumeClaimCondition. - - :return: The type of this K8sIoApiCoreV1PersistentVolumeClaimCondition. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this K8sIoApiCoreV1PersistentVolumeClaimCondition. - - :param type: The type of this K8sIoApiCoreV1PersistentVolumeClaimCondition. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, K8sIoApiCoreV1PersistentVolumeClaimCondition): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_status.py b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_status.py deleted file mode 100644 index 8846bef2..00000000 --- a/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_status.py +++ /dev/null @@ -1,209 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class K8sIoApiCoreV1PersistentVolumeClaimStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'access_modes': 'list[str]', - 'capacity': 'dict(str, K8sIoApimachineryPkgApiResourceQuantity)', - 'conditions': 'list[K8sIoApiCoreV1PersistentVolumeClaimCondition]', - 'phase': 'str' - } - - attribute_map = { - 'access_modes': 'accessModes', - 'capacity': 'capacity', - 'conditions': 'conditions', - 'phase': 'phase' - } - - def __init__(self, access_modes=None, capacity=None, conditions=None, phase=None): - """ - K8sIoApiCoreV1PersistentVolumeClaimStatus - a model defined in Swagger - """ - - self._access_modes = None - self._capacity = None - self._conditions = None - self._phase = None - - if access_modes is not None: - self.access_modes = access_modes - if capacity is not None: - self.capacity = capacity - if conditions is not None: - self.conditions = conditions - if phase is not None: - self.phase = phase - - @property - def access_modes(self): - """ - Gets the access_modes of this K8sIoApiCoreV1PersistentVolumeClaimStatus. - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - - :return: The access_modes of this K8sIoApiCoreV1PersistentVolumeClaimStatus. - :rtype: list[str] - """ - return self._access_modes - - @access_modes.setter - def access_modes(self, access_modes): - """ - Sets the access_modes of this K8sIoApiCoreV1PersistentVolumeClaimStatus. - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - - :param access_modes: The access_modes of this K8sIoApiCoreV1PersistentVolumeClaimStatus. - :type: list[str] - """ - - self._access_modes = access_modes - - @property - def capacity(self): - """ - Gets the capacity of this K8sIoApiCoreV1PersistentVolumeClaimStatus. - Represents the actual resources of the underlying volume. - - :return: The capacity of this K8sIoApiCoreV1PersistentVolumeClaimStatus. - :rtype: dict(str, K8sIoApimachineryPkgApiResourceQuantity) - """ - return self._capacity - - @capacity.setter - def capacity(self, capacity): - """ - Sets the capacity of this K8sIoApiCoreV1PersistentVolumeClaimStatus. - Represents the actual resources of the underlying volume. - - :param capacity: The capacity of this K8sIoApiCoreV1PersistentVolumeClaimStatus. - :type: dict(str, K8sIoApimachineryPkgApiResourceQuantity) - """ - - self._capacity = capacity - - @property - def conditions(self): - """ - Gets the conditions of this K8sIoApiCoreV1PersistentVolumeClaimStatus. - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. - - :return: The conditions of this K8sIoApiCoreV1PersistentVolumeClaimStatus. - :rtype: list[K8sIoApiCoreV1PersistentVolumeClaimCondition] - """ - return self._conditions - - @conditions.setter - def conditions(self, conditions): - """ - Sets the conditions of this K8sIoApiCoreV1PersistentVolumeClaimStatus. - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. - - :param conditions: The conditions of this K8sIoApiCoreV1PersistentVolumeClaimStatus. - :type: list[K8sIoApiCoreV1PersistentVolumeClaimCondition] - """ - - self._conditions = conditions - - @property - def phase(self): - """ - Gets the phase of this K8sIoApiCoreV1PersistentVolumeClaimStatus. - Phase represents the current phase of PersistentVolumeClaim. - - :return: The phase of this K8sIoApiCoreV1PersistentVolumeClaimStatus. - :rtype: str - """ - return self._phase - - @phase.setter - def phase(self, phase): - """ - Sets the phase of this K8sIoApiCoreV1PersistentVolumeClaimStatus. - Phase represents the current phase of PersistentVolumeClaim. - - :param phase: The phase of this K8sIoApiCoreV1PersistentVolumeClaimStatus. - :type: str - """ - - self._phase = phase - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, K8sIoApiCoreV1PersistentVolumeClaimStatus): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1alpha1_persistent_volume_claim.py b/kubevirt/models/v1alpha1_persistent_volume_claim.py new file mode 100644 index 00000000..d2985adf --- /dev/null +++ b/kubevirt/models/v1alpha1_persistent_volume_claim.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1PersistentVolumeClaim(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', + 'spec': 'K8sIoApiCoreV1PersistentVolumeClaimSpec' + } + + attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec' + } + + def __init__(self, metadata=None, spec=None): + """ + V1alpha1PersistentVolumeClaim - a model defined in Swagger + """ + + self._metadata = None + self._spec = None + + if metadata is not None: + self.metadata = metadata + if spec is not None: + self.spec = spec + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1PersistentVolumeClaim. + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + :return: The metadata of this V1alpha1PersistentVolumeClaim. + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1PersistentVolumeClaim. + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + :param metadata: The metadata of this V1alpha1PersistentVolumeClaim. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1alpha1PersistentVolumeClaim. + Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + + :return: The spec of this V1alpha1PersistentVolumeClaim. + :rtype: K8sIoApiCoreV1PersistentVolumeClaimSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1alpha1PersistentVolumeClaim. + Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + + :param spec: The spec of this V1alpha1PersistentVolumeClaim. + :type: K8sIoApiCoreV1PersistentVolumeClaimSpec + """ + + self._spec = spec + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1PersistentVolumeClaim): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_volume_backup.py b/kubevirt/models/v1alpha1_volume_backup.py index be96d8d9..c9b5cb6f 100644 --- a/kubevirt/models/v1alpha1_volume_backup.py +++ b/kubevirt/models/v1alpha1_volume_backup.py @@ -31,7 +31,7 @@ class V1alpha1VolumeBackup(object): and the value is json key in definition. """ swagger_types = { - 'persistent_volume_claim': 'K8sIoApiCoreV1PersistentVolumeClaim', + 'persistent_volume_claim': 'V1alpha1PersistentVolumeClaim', 'volume_name': 'str', 'volume_snapshot_name': 'str' } @@ -62,7 +62,7 @@ def persistent_volume_claim(self): Gets the persistent_volume_claim of this V1alpha1VolumeBackup. :return: The persistent_volume_claim of this V1alpha1VolumeBackup. - :rtype: K8sIoApiCoreV1PersistentVolumeClaim + :rtype: V1alpha1PersistentVolumeClaim """ return self._persistent_volume_claim @@ -72,7 +72,7 @@ def persistent_volume_claim(self, persistent_volume_claim): Sets the persistent_volume_claim of this V1alpha1VolumeBackup. :param persistent_volume_claim: The persistent_volume_claim of this V1alpha1VolumeBackup. - :type: K8sIoApiCoreV1PersistentVolumeClaim + :type: V1alpha1PersistentVolumeClaim """ if persistent_volume_claim is None: raise ValueError("Invalid value for `persistent_volume_claim`, must not be `None`") diff --git a/setup.py b/setup.py index 46a656bb..7b7fef20 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.35.0-rc.0-72-gcf891f61" +VERSION = "v0.35.0-173-g5978d813" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 7c7adc88..0e4388c2 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.35.0-rc.0-72-gcf891f61" +"packageVersion": "v0.35.0-173-g5978d813" } diff --git a/test/test_k8s_io_api_core_v1_persistent_volume_claim_condition.py b/test/test_k8s_io_api_core_v1_persistent_volume_claim_condition.py deleted file mode 100644 index 2acbc5e5..00000000 --- a/test/test_k8s_io_api_core_v1_persistent_volume_claim_condition.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.k8s_io_api_core_v1_persistent_volume_claim_condition import K8sIoApiCoreV1PersistentVolumeClaimCondition - - -class TestK8sIoApiCoreV1PersistentVolumeClaimCondition(unittest.TestCase): - """ K8sIoApiCoreV1PersistentVolumeClaimCondition unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testK8sIoApiCoreV1PersistentVolumeClaimCondition(self): - """ - Test K8sIoApiCoreV1PersistentVolumeClaimCondition - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.k8s_io_api_core_v1_persistent_volume_claim_condition.K8sIoApiCoreV1PersistentVolumeClaimCondition() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_k8s_io_api_core_v1_persistent_volume_claim_status.py b/test/test_k8s_io_api_core_v1_persistent_volume_claim_status.py deleted file mode 100644 index 5dcbb4e5..00000000 --- a/test/test_k8s_io_api_core_v1_persistent_volume_claim_status.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.k8s_io_api_core_v1_persistent_volume_claim_status import K8sIoApiCoreV1PersistentVolumeClaimStatus - - -class TestK8sIoApiCoreV1PersistentVolumeClaimStatus(unittest.TestCase): - """ K8sIoApiCoreV1PersistentVolumeClaimStatus unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testK8sIoApiCoreV1PersistentVolumeClaimStatus(self): - """ - Test K8sIoApiCoreV1PersistentVolumeClaimStatus - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.k8s_io_api_core_v1_persistent_volume_claim_status.K8sIoApiCoreV1PersistentVolumeClaimStatus() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_k8s_io_api_core_v1_persistent_volume_claim.py b/test/test_v1alpha1_persistent_volume_claim.py similarity index 57% rename from test/test_k8s_io_api_core_v1_persistent_volume_claim.py rename to test/test_v1alpha1_persistent_volume_claim.py index 101a2a39..447a4225 100644 --- a/test/test_k8s_io_api_core_v1_persistent_volume_claim.py +++ b/test/test_v1alpha1_persistent_volume_claim.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.k8s_io_api_core_v1_persistent_volume_claim import K8sIoApiCoreV1PersistentVolumeClaim +from kubevirt.models.v1alpha1_persistent_volume_claim import V1alpha1PersistentVolumeClaim -class TestK8sIoApiCoreV1PersistentVolumeClaim(unittest.TestCase): - """ K8sIoApiCoreV1PersistentVolumeClaim unit test stubs """ +class TestV1alpha1PersistentVolumeClaim(unittest.TestCase): + """ V1alpha1PersistentVolumeClaim unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testK8sIoApiCoreV1PersistentVolumeClaim(self): + def testV1alpha1PersistentVolumeClaim(self): """ - Test K8sIoApiCoreV1PersistentVolumeClaim + Test V1alpha1PersistentVolumeClaim """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.k8s_io_api_core_v1_persistent_volume_claim.K8sIoApiCoreV1PersistentVolumeClaim() + #model = kubevirt.models.v1alpha1_persistent_volume_claim.V1alpha1PersistentVolumeClaim() pass From 213336e5c3c054f5a60f19ce717bc55bd78359cd Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 24 Nov 2020 14:38:47 +0000 Subject: [PATCH 162/521] Client Python update by Travis Build 15619 --- README.md | 13 +- docs/V1AccessCredential.md | 11 ++ docs/V1AccessCredentialSecretSource.md | 10 ++ ...SSHPublicKeyAccessCredentialPropagation.md | 9 + ...SSHPublicKeyAccessCredentialPropagation.md | 10 ++ ...UserPasswordAccessCredentialPropagation.md | 9 + docs/V1SSHPublicKeyAccessCredential.md | 11 ++ ...licKeyAccessCredentialPropagationMethod.md | 11 ++ docs/V1SSHPublicKeyAccessCredentialSource.md | 10 ++ docs/V1UserPasswordAccessCredential.md | 11 ++ ...sswordAccessCredentialPropagationMethod.md | 10 ++ docs/V1UserPasswordAccessCredentialSource.md | 10 ++ docs/V1VirtualMachineInstanceSpec.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 33 ++++ kubevirt/__init__.py | 11 ++ kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 11 ++ kubevirt/models/v1_access_credential.py | 153 +++++++++++++++++ .../v1_access_credential_secret_source.py | 126 ++++++++++++++ ...ublic_key_access_credential_propagation.py | 99 +++++++++++ ...ublic_key_access_credential_propagation.py | 126 ++++++++++++++ ..._password_access_credential_propagation.py | 99 +++++++++++ .../v1_ssh_public_key_access_credential.py | 155 ++++++++++++++++++ ...ey_access_credential_propagation_method.py | 153 +++++++++++++++++ ...ssh_public_key_access_credential_source.py | 125 ++++++++++++++ .../v1_user_password_access_credential.py | 155 ++++++++++++++++++ ...rd_access_credential_propagation_method.py | 125 ++++++++++++++ ..._user_password_access_credential_source.py | 125 ++++++++++++++ .../v1_virtual_machine_instance_spec.py | 30 +++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_access_credential.py | 44 +++++ ...test_v1_access_credential_secret_source.py | 44 +++++ ...ublic_key_access_credential_propagation.py | 44 +++++ ...ublic_key_access_credential_propagation.py | 44 +++++ ..._password_access_credential_propagation.py | 44 +++++ ...est_v1_ssh_public_key_access_credential.py | 44 +++++ ...ey_access_credential_propagation_method.py | 44 +++++ ...ssh_public_key_access_credential_source.py | 44 +++++ ...test_v1_user_password_access_credential.py | 44 +++++ ...rd_access_credential_propagation_method.py | 44 +++++ ..._user_password_access_credential_source.py | 44 +++++ 44 files changed, 2139 insertions(+), 7 deletions(-) create mode 100644 docs/V1AccessCredential.md create mode 100644 docs/V1AccessCredentialSecretSource.md create mode 100644 docs/V1ConfigDriveSSHPublicKeyAccessCredentialPropagation.md create mode 100644 docs/V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation.md create mode 100644 docs/V1QemuGuestAgentUserPasswordAccessCredentialPropagation.md create mode 100644 docs/V1SSHPublicKeyAccessCredential.md create mode 100644 docs/V1SSHPublicKeyAccessCredentialPropagationMethod.md create mode 100644 docs/V1SSHPublicKeyAccessCredentialSource.md create mode 100644 docs/V1UserPasswordAccessCredential.md create mode 100644 docs/V1UserPasswordAccessCredentialPropagationMethod.md create mode 100644 docs/V1UserPasswordAccessCredentialSource.md create mode 100644 kubevirt/models/v1_access_credential.py create mode 100644 kubevirt/models/v1_access_credential_secret_source.py create mode 100644 kubevirt/models/v1_config_drive_ssh_public_key_access_credential_propagation.py create mode 100644 kubevirt/models/v1_qemu_guest_agent_ssh_public_key_access_credential_propagation.py create mode 100644 kubevirt/models/v1_qemu_guest_agent_user_password_access_credential_propagation.py create mode 100644 kubevirt/models/v1_ssh_public_key_access_credential.py create mode 100644 kubevirt/models/v1_ssh_public_key_access_credential_propagation_method.py create mode 100644 kubevirt/models/v1_ssh_public_key_access_credential_source.py create mode 100644 kubevirt/models/v1_user_password_access_credential.py create mode 100644 kubevirt/models/v1_user_password_access_credential_propagation_method.py create mode 100644 kubevirt/models/v1_user_password_access_credential_source.py create mode 100644 test/test_v1_access_credential.py create mode 100644 test/test_v1_access_credential_secret_source.py create mode 100644 test/test_v1_config_drive_ssh_public_key_access_credential_propagation.py create mode 100644 test/test_v1_qemu_guest_agent_ssh_public_key_access_credential_propagation.py create mode 100644 test/test_v1_qemu_guest_agent_user_password_access_credential_propagation.py create mode 100644 test/test_v1_ssh_public_key_access_credential.py create mode 100644 test/test_v1_ssh_public_key_access_credential_propagation_method.py create mode 100644 test/test_v1_ssh_public_key_access_credential_source.py create mode 100644 test/test_v1_user_password_access_credential.py create mode 100644 test/test_v1_user_password_access_credential_propagation_method.py create mode 100644 test/test_v1_user_password_access_credential_source.py diff --git a/README.md b/README.md index 0f8a756d..6169d8ad 100644 --- a/README.md +++ b/README.md @@ -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: v0.35.0-173-g5978d813 +- Package version: v0.35.0-206-g131ed275 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -237,6 +237,8 @@ Class | Method | HTTP request | Description - [K8sIoApimachineryPkgApisMetaV1WatchEvent](docs/K8sIoApimachineryPkgApisMetaV1WatchEvent.md) - [K8sIoApimachineryPkgRuntimeRawExtension](docs/K8sIoApimachineryPkgRuntimeRawExtension.md) - [K8sIoApimachineryPkgUtilIntstrIntOrString](docs/K8sIoApimachineryPkgUtilIntstrIntOrString.md) + - [V1AccessCredential](docs/V1AccessCredential.md) + - [V1AccessCredentialSecretSource](docs/V1AccessCredentialSecretSource.md) - [V1BIOS](docs/V1BIOS.md) - [V1Bootloader](docs/V1Bootloader.md) - [V1CDRomTarget](docs/V1CDRomTarget.md) @@ -248,6 +250,7 @@ Class | Method | HTTP request | Description - [V1CloudInitConfigDriveSource](docs/V1CloudInitConfigDriveSource.md) - [V1CloudInitNoCloudSource](docs/V1CloudInitNoCloudSource.md) - [V1ComponentConfig](docs/V1ComponentConfig.md) + - [V1ConfigDriveSSHPublicKeyAccessCredentialPropagation](docs/V1ConfigDriveSSHPublicKeyAccessCredentialPropagation.md) - [V1ConfigMapVolumeSource](docs/V1ConfigMapVolumeSource.md) - [V1ContainerDiskSource](docs/V1ContainerDiskSource.md) - [V1CustomizeComponents](docs/V1CustomizeComponents.md) @@ -315,14 +318,22 @@ Class | Method | HTTP request | Description - [V1PodNetwork](docs/V1PodNetwork.md) - [V1Port](docs/V1Port.md) - [V1Probe](docs/V1Probe.md) + - [V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation](docs/V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation.md) + - [V1QemuGuestAgentUserPasswordAccessCredentialPropagation](docs/V1QemuGuestAgentUserPasswordAccessCredentialPropagation.md) - [V1RTCTimer](docs/V1RTCTimer.md) - [V1ResourceRequirements](docs/V1ResourceRequirements.md) - [V1RestartOptions](docs/V1RestartOptions.md) - [V1Rng](docs/V1Rng.md) - [V1SMBiosConfiguration](docs/V1SMBiosConfiguration.md) + - [V1SSHPublicKeyAccessCredential](docs/V1SSHPublicKeyAccessCredential.md) + - [V1SSHPublicKeyAccessCredentialPropagationMethod](docs/V1SSHPublicKeyAccessCredentialPropagationMethod.md) + - [V1SSHPublicKeyAccessCredentialSource](docs/V1SSHPublicKeyAccessCredentialSource.md) - [V1SecretVolumeSource](docs/V1SecretVolumeSource.md) - [V1ServiceAccountVolumeSource](docs/V1ServiceAccountVolumeSource.md) - [V1Timer](docs/V1Timer.md) + - [V1UserPasswordAccessCredential](docs/V1UserPasswordAccessCredential.md) + - [V1UserPasswordAccessCredentialPropagationMethod](docs/V1UserPasswordAccessCredentialPropagationMethod.md) + - [V1UserPasswordAccessCredentialSource](docs/V1UserPasswordAccessCredentialSource.md) - [V1VirtualMachine](docs/V1VirtualMachine.md) - [V1VirtualMachineCondition](docs/V1VirtualMachineCondition.md) - [V1VirtualMachineInstance](docs/V1VirtualMachineInstance.md) diff --git a/docs/V1AccessCredential.md b/docs/V1AccessCredential.md new file mode 100644 index 00000000..e06130b5 --- /dev/null +++ b/docs/V1AccessCredential.md @@ -0,0 +1,11 @@ +# V1AccessCredential + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ssh_public_key** | [**V1SSHPublicKeyAccessCredential**](V1SSHPublicKeyAccessCredential.md) | SSHPublicKey represents the source and method of applying a ssh public key into a guest virtual machine. | [optional] +**user_password** | [**V1UserPasswordAccessCredential**](V1UserPasswordAccessCredential.md) | UserPassword represents the source and method for applying a guest user's password | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1AccessCredentialSecretSource.md b/docs/V1AccessCredentialSecretSource.md new file mode 100644 index 00000000..1ca4eb35 --- /dev/null +++ b/docs/V1AccessCredentialSecretSource.md @@ -0,0 +1,10 @@ +# V1AccessCredentialSecretSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**secret_name** | **str** | SecretName represents the name of the secret in the VMI's namespace | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ConfigDriveSSHPublicKeyAccessCredentialPropagation.md b/docs/V1ConfigDriveSSHPublicKeyAccessCredentialPropagation.md new file mode 100644 index 00000000..17114d47 --- /dev/null +++ b/docs/V1ConfigDriveSSHPublicKeyAccessCredentialPropagation.md @@ -0,0 +1,9 @@ +# V1ConfigDriveSSHPublicKeyAccessCredentialPropagation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation.md b/docs/V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation.md new file mode 100644 index 00000000..c1e93a1f --- /dev/null +++ b/docs/V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation.md @@ -0,0 +1,10 @@ +# V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | **list[str]** | Users represents a list of guest users that should have the ssh public keys added to their authorized_keys file. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1QemuGuestAgentUserPasswordAccessCredentialPropagation.md b/docs/V1QemuGuestAgentUserPasswordAccessCredentialPropagation.md new file mode 100644 index 00000000..081690e9 --- /dev/null +++ b/docs/V1QemuGuestAgentUserPasswordAccessCredentialPropagation.md @@ -0,0 +1,9 @@ +# V1QemuGuestAgentUserPasswordAccessCredentialPropagation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1SSHPublicKeyAccessCredential.md b/docs/V1SSHPublicKeyAccessCredential.md new file mode 100644 index 00000000..cbdbb663 --- /dev/null +++ b/docs/V1SSHPublicKeyAccessCredential.md @@ -0,0 +1,11 @@ +# V1SSHPublicKeyAccessCredential + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**propagation_method** | [**V1SSHPublicKeyAccessCredentialPropagationMethod**](V1SSHPublicKeyAccessCredentialPropagationMethod.md) | PropagationMethod represents how the public key is injected into the vm guest. | +**source** | [**V1SSHPublicKeyAccessCredentialSource**](V1SSHPublicKeyAccessCredentialSource.md) | Source represents where the public keys are pulled from | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1SSHPublicKeyAccessCredentialPropagationMethod.md b/docs/V1SSHPublicKeyAccessCredentialPropagationMethod.md new file mode 100644 index 00000000..3ed37401 --- /dev/null +++ b/docs/V1SSHPublicKeyAccessCredentialPropagationMethod.md @@ -0,0 +1,11 @@ +# V1SSHPublicKeyAccessCredentialPropagationMethod + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config_drive** | [**V1ConfigDriveSSHPublicKeyAccessCredentialPropagation**](V1ConfigDriveSSHPublicKeyAccessCredentialPropagation.md) | ConfigDrivePropagation means that the ssh public keys are injected into the VM using metadata using the configDrive cloud-init provider | [optional] +**qemu_guest_agent** | [**V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation**](V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation.md) | QemuGuestAgentAccessCredentailPropagation means ssh public keys are dynamically injected into the vm at runtime via the qemu guest agent. This feature requires the qemu guest agent to be running within the guest. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1SSHPublicKeyAccessCredentialSource.md b/docs/V1SSHPublicKeyAccessCredentialSource.md new file mode 100644 index 00000000..2efbe414 --- /dev/null +++ b/docs/V1SSHPublicKeyAccessCredentialSource.md @@ -0,0 +1,10 @@ +# V1SSHPublicKeyAccessCredentialSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**secret** | [**V1AccessCredentialSecretSource**](V1AccessCredentialSecretSource.md) | Secret means that the access credential is pulled from a kubernetes secret | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1UserPasswordAccessCredential.md b/docs/V1UserPasswordAccessCredential.md new file mode 100644 index 00000000..58229798 --- /dev/null +++ b/docs/V1UserPasswordAccessCredential.md @@ -0,0 +1,11 @@ +# V1UserPasswordAccessCredential + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**propagation_method** | [**V1UserPasswordAccessCredentialPropagationMethod**](V1UserPasswordAccessCredentialPropagationMethod.md) | propagationMethod represents how the user passwords are injected into the vm guest. | +**source** | [**V1UserPasswordAccessCredentialSource**](V1UserPasswordAccessCredentialSource.md) | Source represents where the user passwords are pulled from | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1UserPasswordAccessCredentialPropagationMethod.md b/docs/V1UserPasswordAccessCredentialPropagationMethod.md new file mode 100644 index 00000000..b017f41f --- /dev/null +++ b/docs/V1UserPasswordAccessCredentialPropagationMethod.md @@ -0,0 +1,10 @@ +# V1UserPasswordAccessCredentialPropagationMethod + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**qemu_guest_agent** | [**V1QemuGuestAgentUserPasswordAccessCredentialPropagation**](V1QemuGuestAgentUserPasswordAccessCredentialPropagation.md) | QemuGuestAgentAccessCredentailPropagation means passwords are dynamically injected into the vm at runtime via the qemu guest agent. This feature requires the qemu guest agent to be running within the guest. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1UserPasswordAccessCredentialSource.md b/docs/V1UserPasswordAccessCredentialSource.md new file mode 100644 index 00000000..ca4ce16a --- /dev/null +++ b/docs/V1UserPasswordAccessCredentialSource.md @@ -0,0 +1,10 @@ +# V1UserPasswordAccessCredentialSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**secret** | [**V1AccessCredentialSecretSource**](V1AccessCredentialSecretSource.md) | Secret means that the access credential is pulled from a kubernetes secret | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceSpec.md b/docs/V1VirtualMachineInstanceSpec.md index e907ac59..72ca95d5 100644 --- a/docs/V1VirtualMachineInstanceSpec.md +++ b/docs/V1VirtualMachineInstanceSpec.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**access_credentials** | [**list[V1AccessCredential]**](V1AccessCredential.md) | Specifies a set of public keys to inject into the vm guest | [optional] **affinity** | [**K8sIoApiCoreV1Affinity**](K8sIoApiCoreV1Affinity.md) | If affinity is specifies, obey all the affinity rules | [optional] **dns_config** | [**K8sIoApiCoreV1PodDNSConfig**](K8sIoApiCoreV1PodDNSConfig.md) | Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. | [optional] **dns_policy** | **str** | Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. | [optional] diff --git a/git_push.sh b/git_push.sh index 445a53c5..2139a10c 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.35.0-173-g5978d813" + release_note="Auto-generated client v0.35.0-206-g131ed275" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 9eb14132..9c2512da 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -169,6 +169,12 @@ 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/k8s_io_apimachinery_pkg_util_intstr_int_or_string.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_util_intstr_int_or_string.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgUtilIntstrIntOrString.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_access_credential.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_access_credential.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1AccessCredential.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_access_credential_secret_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_access_credential_secret_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1AccessCredentialSecretSource.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_bios.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_bios.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1BIOS.md @@ -202,6 +208,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_component_config.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_component_config.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ComponentConfig.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_config_drive_ssh_public_key_access_credential_propagation.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_config_drive_ssh_public_key_access_credential_propagation.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ConfigDriveSSHPublicKeyAccessCredentialPropagation.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_config_map_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_config_map_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ConfigMapVolumeSource.md @@ -403,6 +412,12 @@ 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_probe.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_probe.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Probe.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_qemu_guest_agent_ssh_public_key_access_credential_propagation.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_qemu_guest_agent_ssh_public_key_access_credential_propagation.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_qemu_guest_agent_user_password_access_credential_propagation.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_qemu_guest_agent_user_password_access_credential_propagation.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1QemuGuestAgentUserPasswordAccessCredentialPropagation.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_rtc_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_rtc_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1RTCTimer.md @@ -418,6 +433,15 @@ 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_sm_bios_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sm_bios_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SMBiosConfiguration.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_ssh_public_key_access_credential.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_ssh_public_key_access_credential.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SSHPublicKeyAccessCredential.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_ssh_public_key_access_credential_propagation_method.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_ssh_public_key_access_credential_propagation_method.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SSHPublicKeyAccessCredentialPropagationMethod.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_ssh_public_key_access_credential_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_ssh_public_key_access_credential_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SSHPublicKeyAccessCredentialSource.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_secret_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_secret_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SecretVolumeSource.md @@ -427,6 +451,15 @@ 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_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Timer.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_user_password_access_credential.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_user_password_access_credential.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1UserPasswordAccessCredential.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_user_password_access_credential_propagation_method.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_user_password_access_credential_propagation_method.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1UserPasswordAccessCredentialPropagationMethod.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_user_password_access_credential_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_user_password_access_credential_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1UserPasswordAccessCredentialSource.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachine.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index ee958cdd..c2fb76b8 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -64,6 +64,8 @@ from .models.k8s_io_apimachinery_pkg_apis_meta_v1_watch_event import K8sIoApimachineryPkgApisMetaV1WatchEvent from .models.k8s_io_apimachinery_pkg_runtime_raw_extension import K8sIoApimachineryPkgRuntimeRawExtension from .models.k8s_io_apimachinery_pkg_util_intstr_int_or_string import K8sIoApimachineryPkgUtilIntstrIntOrString +from .models.v1_access_credential import V1AccessCredential +from .models.v1_access_credential_secret_source import V1AccessCredentialSecretSource from .models.v1_bios import V1BIOS from .models.v1_bootloader import V1Bootloader from .models.v1_cd_rom_target import V1CDRomTarget @@ -75,6 +77,7 @@ from .models.v1_cloud_init_config_drive_source import V1CloudInitConfigDriveSource from .models.v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource from .models.v1_component_config import V1ComponentConfig +from .models.v1_config_drive_ssh_public_key_access_credential_propagation import V1ConfigDriveSSHPublicKeyAccessCredentialPropagation from .models.v1_config_map_volume_source import V1ConfigMapVolumeSource from .models.v1_container_disk_source import V1ContainerDiskSource from .models.v1_customize_components import V1CustomizeComponents @@ -142,14 +145,22 @@ from .models.v1_pod_network import V1PodNetwork from .models.v1_port import V1Port from .models.v1_probe import V1Probe +from .models.v1_qemu_guest_agent_ssh_public_key_access_credential_propagation import V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation +from .models.v1_qemu_guest_agent_user_password_access_credential_propagation import V1QemuGuestAgentUserPasswordAccessCredentialPropagation from .models.v1_rtc_timer import V1RTCTimer from .models.v1_resource_requirements import V1ResourceRequirements from .models.v1_restart_options import V1RestartOptions from .models.v1_rng import V1Rng from .models.v1_sm_bios_configuration import V1SMBiosConfiguration +from .models.v1_ssh_public_key_access_credential import V1SSHPublicKeyAccessCredential +from .models.v1_ssh_public_key_access_credential_propagation_method import V1SSHPublicKeyAccessCredentialPropagationMethod +from .models.v1_ssh_public_key_access_credential_source import V1SSHPublicKeyAccessCredentialSource from .models.v1_secret_volume_source import V1SecretVolumeSource from .models.v1_service_account_volume_source import V1ServiceAccountVolumeSource from .models.v1_timer import V1Timer +from .models.v1_user_password_access_credential import V1UserPasswordAccessCredential +from .models.v1_user_password_access_credential_propagation_method import V1UserPasswordAccessCredentialPropagationMethod +from .models.v1_user_password_access_credential_source import V1UserPasswordAccessCredentialSource from .models.v1_virtual_machine import V1VirtualMachine from .models.v1_virtual_machine_condition import V1VirtualMachineCondition from .models.v1_virtual_machine_instance import V1VirtualMachineInstance diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 9cc32af0..491085c2 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.35.0-173-g5978d813/python' + self.user_agent = 'Swagger-Codegen/v0.35.0-206-g131ed275/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index cdde087e..d2ecba82 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.35.0-173-g5978d813".\ + "SDK Package Version: v0.35.0-206-g131ed275".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index de1ff190..afd7b146 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -64,6 +64,8 @@ from .k8s_io_apimachinery_pkg_apis_meta_v1_watch_event import K8sIoApimachineryPkgApisMetaV1WatchEvent from .k8s_io_apimachinery_pkg_runtime_raw_extension import K8sIoApimachineryPkgRuntimeRawExtension from .k8s_io_apimachinery_pkg_util_intstr_int_or_string import K8sIoApimachineryPkgUtilIntstrIntOrString +from .v1_access_credential import V1AccessCredential +from .v1_access_credential_secret_source import V1AccessCredentialSecretSource from .v1_bios import V1BIOS from .v1_bootloader import V1Bootloader from .v1_cd_rom_target import V1CDRomTarget @@ -75,6 +77,7 @@ from .v1_cloud_init_config_drive_source import V1CloudInitConfigDriveSource from .v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource from .v1_component_config import V1ComponentConfig +from .v1_config_drive_ssh_public_key_access_credential_propagation import V1ConfigDriveSSHPublicKeyAccessCredentialPropagation from .v1_config_map_volume_source import V1ConfigMapVolumeSource from .v1_container_disk_source import V1ContainerDiskSource from .v1_customize_components import V1CustomizeComponents @@ -142,14 +145,22 @@ from .v1_pod_network import V1PodNetwork from .v1_port import V1Port from .v1_probe import V1Probe +from .v1_qemu_guest_agent_ssh_public_key_access_credential_propagation import V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation +from .v1_qemu_guest_agent_user_password_access_credential_propagation import V1QemuGuestAgentUserPasswordAccessCredentialPropagation from .v1_rtc_timer import V1RTCTimer from .v1_resource_requirements import V1ResourceRequirements from .v1_restart_options import V1RestartOptions from .v1_rng import V1Rng from .v1_sm_bios_configuration import V1SMBiosConfiguration +from .v1_ssh_public_key_access_credential import V1SSHPublicKeyAccessCredential +from .v1_ssh_public_key_access_credential_propagation_method import V1SSHPublicKeyAccessCredentialPropagationMethod +from .v1_ssh_public_key_access_credential_source import V1SSHPublicKeyAccessCredentialSource from .v1_secret_volume_source import V1SecretVolumeSource from .v1_service_account_volume_source import V1ServiceAccountVolumeSource from .v1_timer import V1Timer +from .v1_user_password_access_credential import V1UserPasswordAccessCredential +from .v1_user_password_access_credential_propagation_method import V1UserPasswordAccessCredentialPropagationMethod +from .v1_user_password_access_credential_source import V1UserPasswordAccessCredentialSource from .v1_virtual_machine import V1VirtualMachine from .v1_virtual_machine_condition import V1VirtualMachineCondition from .v1_virtual_machine_instance import V1VirtualMachineInstance diff --git a/kubevirt/models/v1_access_credential.py b/kubevirt/models/v1_access_credential.py new file mode 100644 index 00000000..536dafbf --- /dev/null +++ b/kubevirt/models/v1_access_credential.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1AccessCredential(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'ssh_public_key': 'V1SSHPublicKeyAccessCredential', + 'user_password': 'V1UserPasswordAccessCredential' + } + + attribute_map = { + 'ssh_public_key': 'sshPublicKey', + 'user_password': 'userPassword' + } + + def __init__(self, ssh_public_key=None, user_password=None): + """ + V1AccessCredential - a model defined in Swagger + """ + + self._ssh_public_key = None + self._user_password = None + + if ssh_public_key is not None: + self.ssh_public_key = ssh_public_key + if user_password is not None: + self.user_password = user_password + + @property + def ssh_public_key(self): + """ + Gets the ssh_public_key of this V1AccessCredential. + SSHPublicKey represents the source and method of applying a ssh public key into a guest virtual machine. + + :return: The ssh_public_key of this V1AccessCredential. + :rtype: V1SSHPublicKeyAccessCredential + """ + return self._ssh_public_key + + @ssh_public_key.setter + def ssh_public_key(self, ssh_public_key): + """ + Sets the ssh_public_key of this V1AccessCredential. + SSHPublicKey represents the source and method of applying a ssh public key into a guest virtual machine. + + :param ssh_public_key: The ssh_public_key of this V1AccessCredential. + :type: V1SSHPublicKeyAccessCredential + """ + + self._ssh_public_key = ssh_public_key + + @property + def user_password(self): + """ + Gets the user_password of this V1AccessCredential. + UserPassword represents the source and method for applying a guest user's password + + :return: The user_password of this V1AccessCredential. + :rtype: V1UserPasswordAccessCredential + """ + return self._user_password + + @user_password.setter + def user_password(self, user_password): + """ + Sets the user_password of this V1AccessCredential. + UserPassword represents the source and method for applying a guest user's password + + :param user_password: The user_password of this V1AccessCredential. + :type: V1UserPasswordAccessCredential + """ + + self._user_password = user_password + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1AccessCredential): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_access_credential_secret_source.py b/kubevirt/models/v1_access_credential_secret_source.py new file mode 100644 index 00000000..0406e45e --- /dev/null +++ b/kubevirt/models/v1_access_credential_secret_source.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1AccessCredentialSecretSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'secret_name': 'str' + } + + attribute_map = { + 'secret_name': 'secretName' + } + + def __init__(self, secret_name=None): + """ + V1AccessCredentialSecretSource - a model defined in Swagger + """ + + self._secret_name = None + + self.secret_name = secret_name + + @property + def secret_name(self): + """ + Gets the secret_name of this V1AccessCredentialSecretSource. + SecretName represents the name of the secret in the VMI's namespace + + :return: The secret_name of this V1AccessCredentialSecretSource. + :rtype: str + """ + return self._secret_name + + @secret_name.setter + def secret_name(self, secret_name): + """ + Sets the secret_name of this V1AccessCredentialSecretSource. + SecretName represents the name of the secret in the VMI's namespace + + :param secret_name: The secret_name of this V1AccessCredentialSecretSource. + :type: str + """ + if secret_name is None: + raise ValueError("Invalid value for `secret_name`, must not be `None`") + + self._secret_name = secret_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1AccessCredentialSecretSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_config_drive_ssh_public_key_access_credential_propagation.py b/kubevirt/models/v1_config_drive_ssh_public_key_access_credential_propagation.py new file mode 100644 index 00000000..aad1eab2 --- /dev/null +++ b/kubevirt/models/v1_config_drive_ssh_public_key_access_credential_propagation.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ConfigDriveSSHPublicKeyAccessCredentialPropagation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1ConfigDriveSSHPublicKeyAccessCredentialPropagation - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1ConfigDriveSSHPublicKeyAccessCredentialPropagation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_qemu_guest_agent_ssh_public_key_access_credential_propagation.py b/kubevirt/models/v1_qemu_guest_agent_ssh_public_key_access_credential_propagation.py new file mode 100644 index 00000000..118d0760 --- /dev/null +++ b/kubevirt/models/v1_qemu_guest_agent_ssh_public_key_access_credential_propagation.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'users': 'list[str]' + } + + attribute_map = { + 'users': 'users' + } + + def __init__(self, users=None): + """ + V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation - a model defined in Swagger + """ + + self._users = None + + self.users = users + + @property + def users(self): + """ + Gets the users of this V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation. + Users represents a list of guest users that should have the ssh public keys added to their authorized_keys file. + + :return: The users of this V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation. + :rtype: list[str] + """ + return self._users + + @users.setter + def users(self, users): + """ + Sets the users of this V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation. + Users represents a list of guest users that should have the ssh public keys added to their authorized_keys file. + + :param users: The users of this V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation. + :type: list[str] + """ + if users is None: + raise ValueError("Invalid value for `users`, must not be `None`") + + self._users = users + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_qemu_guest_agent_user_password_access_credential_propagation.py b/kubevirt/models/v1_qemu_guest_agent_user_password_access_credential_propagation.py new file mode 100644 index 00000000..9367e2b1 --- /dev/null +++ b/kubevirt/models/v1_qemu_guest_agent_user_password_access_credential_propagation.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1QemuGuestAgentUserPasswordAccessCredentialPropagation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1QemuGuestAgentUserPasswordAccessCredentialPropagation - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1QemuGuestAgentUserPasswordAccessCredentialPropagation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_ssh_public_key_access_credential.py b/kubevirt/models/v1_ssh_public_key_access_credential.py new file mode 100644 index 00000000..a6576422 --- /dev/null +++ b/kubevirt/models/v1_ssh_public_key_access_credential.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SSHPublicKeyAccessCredential(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'propagation_method': 'V1SSHPublicKeyAccessCredentialPropagationMethod', + 'source': 'V1SSHPublicKeyAccessCredentialSource' + } + + attribute_map = { + 'propagation_method': 'propagationMethod', + 'source': 'source' + } + + def __init__(self, propagation_method=None, source=None): + """ + V1SSHPublicKeyAccessCredential - a model defined in Swagger + """ + + self._propagation_method = None + self._source = None + + self.propagation_method = propagation_method + self.source = source + + @property + def propagation_method(self): + """ + Gets the propagation_method of this V1SSHPublicKeyAccessCredential. + PropagationMethod represents how the public key is injected into the vm guest. + + :return: The propagation_method of this V1SSHPublicKeyAccessCredential. + :rtype: V1SSHPublicKeyAccessCredentialPropagationMethod + """ + return self._propagation_method + + @propagation_method.setter + def propagation_method(self, propagation_method): + """ + Sets the propagation_method of this V1SSHPublicKeyAccessCredential. + PropagationMethod represents how the public key is injected into the vm guest. + + :param propagation_method: The propagation_method of this V1SSHPublicKeyAccessCredential. + :type: V1SSHPublicKeyAccessCredentialPropagationMethod + """ + if propagation_method is None: + raise ValueError("Invalid value for `propagation_method`, must not be `None`") + + self._propagation_method = propagation_method + + @property + def source(self): + """ + Gets the source of this V1SSHPublicKeyAccessCredential. + Source represents where the public keys are pulled from + + :return: The source of this V1SSHPublicKeyAccessCredential. + :rtype: V1SSHPublicKeyAccessCredentialSource + """ + return self._source + + @source.setter + def source(self, source): + """ + Sets the source of this V1SSHPublicKeyAccessCredential. + Source represents where the public keys are pulled from + + :param source: The source of this V1SSHPublicKeyAccessCredential. + :type: V1SSHPublicKeyAccessCredentialSource + """ + if source is None: + raise ValueError("Invalid value for `source`, must not be `None`") + + self._source = source + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1SSHPublicKeyAccessCredential): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_ssh_public_key_access_credential_propagation_method.py b/kubevirt/models/v1_ssh_public_key_access_credential_propagation_method.py new file mode 100644 index 00000000..b7b085f1 --- /dev/null +++ b/kubevirt/models/v1_ssh_public_key_access_credential_propagation_method.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SSHPublicKeyAccessCredentialPropagationMethod(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'config_drive': 'V1ConfigDriveSSHPublicKeyAccessCredentialPropagation', + 'qemu_guest_agent': 'V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation' + } + + attribute_map = { + 'config_drive': 'configDrive', + 'qemu_guest_agent': 'qemuGuestAgent' + } + + def __init__(self, config_drive=None, qemu_guest_agent=None): + """ + V1SSHPublicKeyAccessCredentialPropagationMethod - a model defined in Swagger + """ + + self._config_drive = None + self._qemu_guest_agent = None + + if config_drive is not None: + self.config_drive = config_drive + if qemu_guest_agent is not None: + self.qemu_guest_agent = qemu_guest_agent + + @property + def config_drive(self): + """ + Gets the config_drive of this V1SSHPublicKeyAccessCredentialPropagationMethod. + ConfigDrivePropagation means that the ssh public keys are injected into the VM using metadata using the configDrive cloud-init provider + + :return: The config_drive of this V1SSHPublicKeyAccessCredentialPropagationMethod. + :rtype: V1ConfigDriveSSHPublicKeyAccessCredentialPropagation + """ + return self._config_drive + + @config_drive.setter + def config_drive(self, config_drive): + """ + Sets the config_drive of this V1SSHPublicKeyAccessCredentialPropagationMethod. + ConfigDrivePropagation means that the ssh public keys are injected into the VM using metadata using the configDrive cloud-init provider + + :param config_drive: The config_drive of this V1SSHPublicKeyAccessCredentialPropagationMethod. + :type: V1ConfigDriveSSHPublicKeyAccessCredentialPropagation + """ + + self._config_drive = config_drive + + @property + def qemu_guest_agent(self): + """ + Gets the qemu_guest_agent of this V1SSHPublicKeyAccessCredentialPropagationMethod. + QemuGuestAgentAccessCredentailPropagation means ssh public keys are dynamically injected into the vm at runtime via the qemu guest agent. This feature requires the qemu guest agent to be running within the guest. + + :return: The qemu_guest_agent of this V1SSHPublicKeyAccessCredentialPropagationMethod. + :rtype: V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation + """ + return self._qemu_guest_agent + + @qemu_guest_agent.setter + def qemu_guest_agent(self, qemu_guest_agent): + """ + Sets the qemu_guest_agent of this V1SSHPublicKeyAccessCredentialPropagationMethod. + QemuGuestAgentAccessCredentailPropagation means ssh public keys are dynamically injected into the vm at runtime via the qemu guest agent. This feature requires the qemu guest agent to be running within the guest. + + :param qemu_guest_agent: The qemu_guest_agent of this V1SSHPublicKeyAccessCredentialPropagationMethod. + :type: V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation + """ + + self._qemu_guest_agent = qemu_guest_agent + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1SSHPublicKeyAccessCredentialPropagationMethod): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_ssh_public_key_access_credential_source.py b/kubevirt/models/v1_ssh_public_key_access_credential_source.py new file mode 100644 index 00000000..628716d5 --- /dev/null +++ b/kubevirt/models/v1_ssh_public_key_access_credential_source.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SSHPublicKeyAccessCredentialSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'secret': 'V1AccessCredentialSecretSource' + } + + attribute_map = { + 'secret': 'secret' + } + + def __init__(self, secret=None): + """ + V1SSHPublicKeyAccessCredentialSource - a model defined in Swagger + """ + + self._secret = None + + if secret is not None: + self.secret = secret + + @property + def secret(self): + """ + Gets the secret of this V1SSHPublicKeyAccessCredentialSource. + Secret means that the access credential is pulled from a kubernetes secret + + :return: The secret of this V1SSHPublicKeyAccessCredentialSource. + :rtype: V1AccessCredentialSecretSource + """ + return self._secret + + @secret.setter + def secret(self, secret): + """ + Sets the secret of this V1SSHPublicKeyAccessCredentialSource. + Secret means that the access credential is pulled from a kubernetes secret + + :param secret: The secret of this V1SSHPublicKeyAccessCredentialSource. + :type: V1AccessCredentialSecretSource + """ + + self._secret = secret + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1SSHPublicKeyAccessCredentialSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_user_password_access_credential.py b/kubevirt/models/v1_user_password_access_credential.py new file mode 100644 index 00000000..ee547c1d --- /dev/null +++ b/kubevirt/models/v1_user_password_access_credential.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1UserPasswordAccessCredential(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'propagation_method': 'V1UserPasswordAccessCredentialPropagationMethod', + 'source': 'V1UserPasswordAccessCredentialSource' + } + + attribute_map = { + 'propagation_method': 'propagationMethod', + 'source': 'source' + } + + def __init__(self, propagation_method=None, source=None): + """ + V1UserPasswordAccessCredential - a model defined in Swagger + """ + + self._propagation_method = None + self._source = None + + self.propagation_method = propagation_method + self.source = source + + @property + def propagation_method(self): + """ + Gets the propagation_method of this V1UserPasswordAccessCredential. + propagationMethod represents how the user passwords are injected into the vm guest. + + :return: The propagation_method of this V1UserPasswordAccessCredential. + :rtype: V1UserPasswordAccessCredentialPropagationMethod + """ + return self._propagation_method + + @propagation_method.setter + def propagation_method(self, propagation_method): + """ + Sets the propagation_method of this V1UserPasswordAccessCredential. + propagationMethod represents how the user passwords are injected into the vm guest. + + :param propagation_method: The propagation_method of this V1UserPasswordAccessCredential. + :type: V1UserPasswordAccessCredentialPropagationMethod + """ + if propagation_method is None: + raise ValueError("Invalid value for `propagation_method`, must not be `None`") + + self._propagation_method = propagation_method + + @property + def source(self): + """ + Gets the source of this V1UserPasswordAccessCredential. + Source represents where the user passwords are pulled from + + :return: The source of this V1UserPasswordAccessCredential. + :rtype: V1UserPasswordAccessCredentialSource + """ + return self._source + + @source.setter + def source(self, source): + """ + Sets the source of this V1UserPasswordAccessCredential. + Source represents where the user passwords are pulled from + + :param source: The source of this V1UserPasswordAccessCredential. + :type: V1UserPasswordAccessCredentialSource + """ + if source is None: + raise ValueError("Invalid value for `source`, must not be `None`") + + self._source = source + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1UserPasswordAccessCredential): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_user_password_access_credential_propagation_method.py b/kubevirt/models/v1_user_password_access_credential_propagation_method.py new file mode 100644 index 00000000..02670664 --- /dev/null +++ b/kubevirt/models/v1_user_password_access_credential_propagation_method.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1UserPasswordAccessCredentialPropagationMethod(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'qemu_guest_agent': 'V1QemuGuestAgentUserPasswordAccessCredentialPropagation' + } + + attribute_map = { + 'qemu_guest_agent': 'qemuGuestAgent' + } + + def __init__(self, qemu_guest_agent=None): + """ + V1UserPasswordAccessCredentialPropagationMethod - a model defined in Swagger + """ + + self._qemu_guest_agent = None + + if qemu_guest_agent is not None: + self.qemu_guest_agent = qemu_guest_agent + + @property + def qemu_guest_agent(self): + """ + Gets the qemu_guest_agent of this V1UserPasswordAccessCredentialPropagationMethod. + QemuGuestAgentAccessCredentailPropagation means passwords are dynamically injected into the vm at runtime via the qemu guest agent. This feature requires the qemu guest agent to be running within the guest. + + :return: The qemu_guest_agent of this V1UserPasswordAccessCredentialPropagationMethod. + :rtype: V1QemuGuestAgentUserPasswordAccessCredentialPropagation + """ + return self._qemu_guest_agent + + @qemu_guest_agent.setter + def qemu_guest_agent(self, qemu_guest_agent): + """ + Sets the qemu_guest_agent of this V1UserPasswordAccessCredentialPropagationMethod. + QemuGuestAgentAccessCredentailPropagation means passwords are dynamically injected into the vm at runtime via the qemu guest agent. This feature requires the qemu guest agent to be running within the guest. + + :param qemu_guest_agent: The qemu_guest_agent of this V1UserPasswordAccessCredentialPropagationMethod. + :type: V1QemuGuestAgentUserPasswordAccessCredentialPropagation + """ + + self._qemu_guest_agent = qemu_guest_agent + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1UserPasswordAccessCredentialPropagationMethod): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_user_password_access_credential_source.py b/kubevirt/models/v1_user_password_access_credential_source.py new file mode 100644 index 00000000..808a905a --- /dev/null +++ b/kubevirt/models/v1_user_password_access_credential_source.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1UserPasswordAccessCredentialSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'secret': 'V1AccessCredentialSecretSource' + } + + attribute_map = { + 'secret': 'secret' + } + + def __init__(self, secret=None): + """ + V1UserPasswordAccessCredentialSource - a model defined in Swagger + """ + + self._secret = None + + if secret is not None: + self.secret = secret + + @property + def secret(self): + """ + Gets the secret of this V1UserPasswordAccessCredentialSource. + Secret means that the access credential is pulled from a kubernetes secret + + :return: The secret of this V1UserPasswordAccessCredentialSource. + :rtype: V1AccessCredentialSecretSource + """ + return self._secret + + @secret.setter + def secret(self, secret): + """ + Sets the secret of this V1UserPasswordAccessCredentialSource. + Secret means that the access credential is pulled from a kubernetes secret + + :param secret: The secret of this V1UserPasswordAccessCredentialSource. + :type: V1AccessCredentialSecretSource + """ + + self._secret = secret + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1UserPasswordAccessCredentialSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_spec.py b/kubevirt/models/v1_virtual_machine_instance_spec.py index 4a3f5ee6..7e8d4237 100644 --- a/kubevirt/models/v1_virtual_machine_instance_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_spec.py @@ -31,6 +31,7 @@ class V1VirtualMachineInstanceSpec(object): and the value is json key in definition. """ swagger_types = { + 'access_credentials': 'list[V1AccessCredential]', 'affinity': 'K8sIoApiCoreV1Affinity', 'dns_config': 'K8sIoApiCoreV1PodDNSConfig', 'dns_policy': 'str', @@ -50,6 +51,7 @@ class V1VirtualMachineInstanceSpec(object): } attribute_map = { + 'access_credentials': 'accessCredentials', 'affinity': 'affinity', 'dns_config': 'dnsConfig', 'dns_policy': 'dnsPolicy', @@ -68,11 +70,12 @@ class V1VirtualMachineInstanceSpec(object): 'volumes': 'volumes' } - def __init__(self, affinity=None, dns_config=None, dns_policy=None, domain=None, eviction_strategy=None, hostname=None, liveness_probe=None, networks=None, node_selector=None, priority_class_name=None, readiness_probe=None, scheduler_name=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, volumes=None): + def __init__(self, access_credentials=None, affinity=None, dns_config=None, dns_policy=None, domain=None, eviction_strategy=None, hostname=None, liveness_probe=None, networks=None, node_selector=None, priority_class_name=None, readiness_probe=None, scheduler_name=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, volumes=None): """ V1VirtualMachineInstanceSpec - a model defined in Swagger """ + self._access_credentials = None self._affinity = None self._dns_config = None self._dns_policy = None @@ -90,6 +93,8 @@ def __init__(self, affinity=None, dns_config=None, dns_policy=None, domain=None, self._tolerations = None self._volumes = None + if access_credentials is not None: + self.access_credentials = access_credentials if affinity is not None: self.affinity = affinity if dns_config is not None: @@ -122,6 +127,29 @@ def __init__(self, affinity=None, dns_config=None, dns_policy=None, domain=None, if volumes is not None: self.volumes = volumes + @property + def access_credentials(self): + """ + Gets the access_credentials of this V1VirtualMachineInstanceSpec. + Specifies a set of public keys to inject into the vm guest + + :return: The access_credentials of this V1VirtualMachineInstanceSpec. + :rtype: list[V1AccessCredential] + """ + return self._access_credentials + + @access_credentials.setter + def access_credentials(self, access_credentials): + """ + Sets the access_credentials of this V1VirtualMachineInstanceSpec. + Specifies a set of public keys to inject into the vm guest + + :param access_credentials: The access_credentials of this V1VirtualMachineInstanceSpec. + :type: list[V1AccessCredential] + """ + + self._access_credentials = access_credentials + @property def affinity(self): """ diff --git a/setup.py b/setup.py index 7b7fef20..cf07bff1 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.35.0-173-g5978d813" +VERSION = "v0.35.0-206-g131ed275" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 0e4388c2..eb340689 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.35.0-173-g5978d813" +"packageVersion": "v0.35.0-206-g131ed275" } diff --git a/test/test_v1_access_credential.py b/test/test_v1_access_credential.py new file mode 100644 index 00000000..9528d734 --- /dev/null +++ b/test/test_v1_access_credential.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_access_credential import V1AccessCredential + + +class TestV1AccessCredential(unittest.TestCase): + """ V1AccessCredential unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1AccessCredential(self): + """ + Test V1AccessCredential + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_access_credential.V1AccessCredential() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_access_credential_secret_source.py b/test/test_v1_access_credential_secret_source.py new file mode 100644 index 00000000..7949d981 --- /dev/null +++ b/test/test_v1_access_credential_secret_source.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_access_credential_secret_source import V1AccessCredentialSecretSource + + +class TestV1AccessCredentialSecretSource(unittest.TestCase): + """ V1AccessCredentialSecretSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1AccessCredentialSecretSource(self): + """ + Test V1AccessCredentialSecretSource + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_access_credential_secret_source.V1AccessCredentialSecretSource() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_config_drive_ssh_public_key_access_credential_propagation.py b/test/test_v1_config_drive_ssh_public_key_access_credential_propagation.py new file mode 100644 index 00000000..bcdbfef3 --- /dev/null +++ b/test/test_v1_config_drive_ssh_public_key_access_credential_propagation.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_config_drive_ssh_public_key_access_credential_propagation import V1ConfigDriveSSHPublicKeyAccessCredentialPropagation + + +class TestV1ConfigDriveSSHPublicKeyAccessCredentialPropagation(unittest.TestCase): + """ V1ConfigDriveSSHPublicKeyAccessCredentialPropagation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ConfigDriveSSHPublicKeyAccessCredentialPropagation(self): + """ + Test V1ConfigDriveSSHPublicKeyAccessCredentialPropagation + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_config_drive_ssh_public_key_access_credential_propagation.V1ConfigDriveSSHPublicKeyAccessCredentialPropagation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_qemu_guest_agent_ssh_public_key_access_credential_propagation.py b/test/test_v1_qemu_guest_agent_ssh_public_key_access_credential_propagation.py new file mode 100644 index 00000000..0f252a84 --- /dev/null +++ b/test/test_v1_qemu_guest_agent_ssh_public_key_access_credential_propagation.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_qemu_guest_agent_ssh_public_key_access_credential_propagation import V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation + + +class TestV1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation(unittest.TestCase): + """ V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation(self): + """ + Test V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_qemu_guest_agent_ssh_public_key_access_credential_propagation.V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_qemu_guest_agent_user_password_access_credential_propagation.py b/test/test_v1_qemu_guest_agent_user_password_access_credential_propagation.py new file mode 100644 index 00000000..a923b616 --- /dev/null +++ b/test/test_v1_qemu_guest_agent_user_password_access_credential_propagation.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_qemu_guest_agent_user_password_access_credential_propagation import V1QemuGuestAgentUserPasswordAccessCredentialPropagation + + +class TestV1QemuGuestAgentUserPasswordAccessCredentialPropagation(unittest.TestCase): + """ V1QemuGuestAgentUserPasswordAccessCredentialPropagation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1QemuGuestAgentUserPasswordAccessCredentialPropagation(self): + """ + Test V1QemuGuestAgentUserPasswordAccessCredentialPropagation + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_qemu_guest_agent_user_password_access_credential_propagation.V1QemuGuestAgentUserPasswordAccessCredentialPropagation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_ssh_public_key_access_credential.py b/test/test_v1_ssh_public_key_access_credential.py new file mode 100644 index 00000000..12293fee --- /dev/null +++ b/test/test_v1_ssh_public_key_access_credential.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_ssh_public_key_access_credential import V1SSHPublicKeyAccessCredential + + +class TestV1SSHPublicKeyAccessCredential(unittest.TestCase): + """ V1SSHPublicKeyAccessCredential unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SSHPublicKeyAccessCredential(self): + """ + Test V1SSHPublicKeyAccessCredential + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_ssh_public_key_access_credential.V1SSHPublicKeyAccessCredential() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_ssh_public_key_access_credential_propagation_method.py b/test/test_v1_ssh_public_key_access_credential_propagation_method.py new file mode 100644 index 00000000..2c631ed8 --- /dev/null +++ b/test/test_v1_ssh_public_key_access_credential_propagation_method.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_ssh_public_key_access_credential_propagation_method import V1SSHPublicKeyAccessCredentialPropagationMethod + + +class TestV1SSHPublicKeyAccessCredentialPropagationMethod(unittest.TestCase): + """ V1SSHPublicKeyAccessCredentialPropagationMethod unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SSHPublicKeyAccessCredentialPropagationMethod(self): + """ + Test V1SSHPublicKeyAccessCredentialPropagationMethod + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_ssh_public_key_access_credential_propagation_method.V1SSHPublicKeyAccessCredentialPropagationMethod() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_ssh_public_key_access_credential_source.py b/test/test_v1_ssh_public_key_access_credential_source.py new file mode 100644 index 00000000..ef5a396e --- /dev/null +++ b/test/test_v1_ssh_public_key_access_credential_source.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_ssh_public_key_access_credential_source import V1SSHPublicKeyAccessCredentialSource + + +class TestV1SSHPublicKeyAccessCredentialSource(unittest.TestCase): + """ V1SSHPublicKeyAccessCredentialSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SSHPublicKeyAccessCredentialSource(self): + """ + Test V1SSHPublicKeyAccessCredentialSource + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_ssh_public_key_access_credential_source.V1SSHPublicKeyAccessCredentialSource() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_user_password_access_credential.py b/test/test_v1_user_password_access_credential.py new file mode 100644 index 00000000..88777a88 --- /dev/null +++ b/test/test_v1_user_password_access_credential.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_user_password_access_credential import V1UserPasswordAccessCredential + + +class TestV1UserPasswordAccessCredential(unittest.TestCase): + """ V1UserPasswordAccessCredential unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1UserPasswordAccessCredential(self): + """ + Test V1UserPasswordAccessCredential + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_user_password_access_credential.V1UserPasswordAccessCredential() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_user_password_access_credential_propagation_method.py b/test/test_v1_user_password_access_credential_propagation_method.py new file mode 100644 index 00000000..d4eee537 --- /dev/null +++ b/test/test_v1_user_password_access_credential_propagation_method.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_user_password_access_credential_propagation_method import V1UserPasswordAccessCredentialPropagationMethod + + +class TestV1UserPasswordAccessCredentialPropagationMethod(unittest.TestCase): + """ V1UserPasswordAccessCredentialPropagationMethod unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1UserPasswordAccessCredentialPropagationMethod(self): + """ + Test V1UserPasswordAccessCredentialPropagationMethod + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_user_password_access_credential_propagation_method.V1UserPasswordAccessCredentialPropagationMethod() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_user_password_access_credential_source.py b/test/test_v1_user_password_access_credential_source.py new file mode 100644 index 00000000..ef9fdcaf --- /dev/null +++ b/test/test_v1_user_password_access_credential_source.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_user_password_access_credential_source import V1UserPasswordAccessCredentialSource + + +class TestV1UserPasswordAccessCredentialSource(unittest.TestCase): + """ V1UserPasswordAccessCredentialSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1UserPasswordAccessCredentialSource(self): + """ + Test V1UserPasswordAccessCredentialSource + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_user_password_access_credential_source.V1UserPasswordAccessCredentialSource() + pass + + +if __name__ == '__main__': + unittest.main() From fb29db06c4d7ca00017cb596a345e9b9e0f9e278 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 25 Nov 2020 15:29:19 +0000 Subject: [PATCH 163/521] Client Python update by Travis Build 15621 --- README.md | 2 +- docs/V1DiskTarget.md | 2 +- docs/V1Interface.md | 2 +- docs/V1VirtualMachineInstanceMigrationState.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_disk_target.py | 4 ++-- kubevirt/models/v1_interface.py | 4 ++-- .../models/v1_virtual_machine_instance_migration_state.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 12 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 6169d8ad..dbf4541f 100644 --- a/README.md +++ b/README.md @@ -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: v0.35.0-206-g131ed275 +- Package version: v0.35.0-213-g6976f974 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1DiskTarget.md b/docs/V1DiskTarget.md index 09dfb0da..1c57c8da 100644 --- a/docs/V1DiskTarget.md +++ b/docs/V1DiskTarget.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **bus** | **str** | Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi. | [optional] -**pci_address** | **str** | If specified, the virtual disk will be placed on the guests pci address with the specifed PCI address. For example: 0000:81:01.10 | [optional] +**pci_address** | **str** | If specified, the virtual disk will be placed on the guests pci address with the specified PCI address. For example: 0000:81:01.10 | [optional] **readonly** | **bool** | ReadOnly. Defaults to false. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Interface.md b/docs/V1Interface.md index 2ab0e36b..109b6939 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **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. | -**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] +**pci_address** | **str** | If specified, the virtual network interface will be placed on the guests pci address with the specified PCI address. For example: 0000:81:01.10 | [optional] **ports** | [**list[V1Port]**](V1Port.md) | List of ports to be forwarded to the virtual machine. | [optional] **slirp** | [**V1InterfaceSlirp**](V1InterfaceSlirp.md) | | [optional] **sriov** | [**V1InterfaceSRIOV**](V1InterfaceSRIOV.md) | | [optional] diff --git a/docs/V1VirtualMachineInstanceMigrationState.md b/docs/V1VirtualMachineInstanceMigrationState.md index 9816a2e4..05a75875 100644 --- a/docs/V1VirtualMachineInstanceMigrationState.md +++ b/docs/V1VirtualMachineInstanceMigrationState.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **end_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | The time the migration action ended | [optional] **failed** | **bool** | Indicates that the migration failed | [optional] **migration_uid** | **str** | The VirtualMachineInstanceMigration object associated with this migration | [optional] -**mode** | **str** | Lets us know if the vmi is currenly running pre or post copy migration | [optional] +**mode** | **str** | Lets us know if the vmi is currently running pre or post copy migration | [optional] **source_node** | **str** | The source node that the VMI originated on | [optional] **start_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | The time the migration action began | [optional] **target_direct_migration_node_ports** | **dict(str, int)** | The list of ports opened for live migration on the destination node | [optional] diff --git a/git_push.sh b/git_push.sh index 2139a10c..6d47417d 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.35.0-206-g131ed275" + release_note="Auto-generated client v0.35.0-213-g6976f974" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 491085c2..d87d645f 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.35.0-206-g131ed275/python' + self.user_agent = 'Swagger-Codegen/v0.35.0-213-g6976f974/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index d2ecba82..ceaad651 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.35.0-206-g131ed275".\ + "SDK Package Version: v0.35.0-213-g6976f974".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_disk_target.py b/kubevirt/models/v1_disk_target.py index 0bbfafe1..3c0a5372 100644 --- a/kubevirt/models/v1_disk_target.py +++ b/kubevirt/models/v1_disk_target.py @@ -85,7 +85,7 @@ def bus(self, bus): def pci_address(self): """ Gets the pci_address of this V1DiskTarget. - If specified, the virtual disk will be placed on the guests pci address with the specifed PCI address. For example: 0000:81:01.10 + If specified, the virtual disk will be placed on the guests pci address with the specified PCI address. For example: 0000:81:01.10 :return: The pci_address of this V1DiskTarget. :rtype: str @@ -96,7 +96,7 @@ def pci_address(self): def pci_address(self, pci_address): """ Sets the pci_address of this V1DiskTarget. - If specified, the virtual disk will be placed on the guests pci address with the specifed PCI address. For example: 0000:81:01.10 + If specified, the virtual disk will be placed on the guests pci address with the specified PCI address. For example: 0000:81:01.10 :param pci_address: The pci_address of this V1DiskTarget. :type: str diff --git a/kubevirt/models/v1_interface.py b/kubevirt/models/v1_interface.py index c6eddc23..98c6e0a6 100644 --- a/kubevirt/models/v1_interface.py +++ b/kubevirt/models/v1_interface.py @@ -291,7 +291,7 @@ def name(self, name): def pci_address(self): """ Gets the pci_address of this V1Interface. - 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 + If specified, the virtual network interface will be placed on the guests pci address with the specified PCI address. For example: 0000:81:01.10 :return: The pci_address of this V1Interface. :rtype: str @@ -302,7 +302,7 @@ def pci_address(self): def pci_address(self, pci_address): """ Sets the pci_address of this V1Interface. - 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 + If specified, the virtual network interface will be placed on the guests pci address with the specified PCI address. For example: 0000:81:01.10 :param pci_address: The pci_address of this V1Interface. :type: str diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_state.py b/kubevirt/models/v1_virtual_machine_instance_migration_state.py index 9c2ce7d0..3e6360e1 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_state.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_state.py @@ -255,7 +255,7 @@ def migration_uid(self, migration_uid): def mode(self): """ Gets the mode of this V1VirtualMachineInstanceMigrationState. - Lets us know if the vmi is currenly running pre or post copy migration + Lets us know if the vmi is currently running pre or post copy migration :return: The mode of this V1VirtualMachineInstanceMigrationState. :rtype: str @@ -266,7 +266,7 @@ def mode(self): def mode(self, mode): """ Sets the mode of this V1VirtualMachineInstanceMigrationState. - Lets us know if the vmi is currenly running pre or post copy migration + Lets us know if the vmi is currently running pre or post copy migration :param mode: The mode of this V1VirtualMachineInstanceMigrationState. :type: str diff --git a/setup.py b/setup.py index cf07bff1..caefed6b 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.35.0-206-g131ed275" +VERSION = "v0.35.0-213-g6976f974" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index eb340689..0a5b63f6 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.35.0-206-g131ed275" +"packageVersion": "v0.35.0-213-g6976f974" } From 3604454da097296ec944bb26ad9b48f4f9ac8379 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 30 Nov 2020 18:27:07 +0000 Subject: [PATCH 164/521] Client Python update by Travis Build 15638 --- README.md | 12 +- docs/DefaultApi.md | 200 +++++++++ docs/V1AddVolumeOptions.md | 12 + docs/V1Devices.md | 1 + docs/V1HotplugVolumeSource.md | 11 + docs/V1HotplugVolumeStatus.md | 11 + docs/V1RemoveVolumeOptions.md | 10 + docs/V1VirtualMachineInstanceStatus.md | 1 + docs/V1VirtualMachineStatus.md | 1 + docs/V1VirtualMachineVolumeRequest.md | 11 + docs/V1VolumeStatus.md | 15 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 18 + kubevirt/__init__.py | 6 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 412 ++++++++++++++++++ kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 6 + kubevirt/models/v1_add_volume_options.py | 184 ++++++++ kubevirt/models/v1_devices.py | 30 +- kubevirt/models/v1_hotplug_volume_source.py | 153 +++++++ kubevirt/models/v1_hotplug_volume_status.py | 153 +++++++ kubevirt/models/v1_remove_volume_options.py | 126 ++++++ .../v1_virtual_machine_instance_status.py | 34 +- kubevirt/models/v1_virtual_machine_status.py | 30 +- .../v1_virtual_machine_volume_request.py | 153 +++++++ kubevirt/models/v1_volume_status.py | 267 ++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 32 ++ test/test_v1_add_volume_options.py | 44 ++ test/test_v1_hotplug_volume_source.py | 44 ++ test/test_v1_hotplug_volume_status.py | 44 ++ test/test_v1_remove_volume_options.py | 44 ++ .../test_v1_virtual_machine_volume_request.py | 44 ++ test/test_v1_volume_status.py | 44 ++ 36 files changed, 2152 insertions(+), 11 deletions(-) create mode 100644 docs/V1AddVolumeOptions.md create mode 100644 docs/V1HotplugVolumeSource.md create mode 100644 docs/V1HotplugVolumeStatus.md create mode 100644 docs/V1RemoveVolumeOptions.md create mode 100644 docs/V1VirtualMachineVolumeRequest.md create mode 100644 docs/V1VolumeStatus.md create mode 100644 kubevirt/models/v1_add_volume_options.py create mode 100644 kubevirt/models/v1_hotplug_volume_source.py create mode 100644 kubevirt/models/v1_hotplug_volume_status.py create mode 100644 kubevirt/models/v1_remove_volume_options.py create mode 100644 kubevirt/models/v1_virtual_machine_volume_request.py create mode 100644 kubevirt/models/v1_volume_status.py create mode 100644 test/test_v1_add_volume_options.py create mode 100644 test/test_v1_hotplug_volume_source.py create mode 100644 test/test_v1_hotplug_volume_status.py create mode 100644 test/test_v1_remove_volume_options.py create mode 100644 test/test_v1_virtual_machine_volume_request.py create mode 100644 test/test_v1_volume_status.py diff --git a/README.md b/README.md index dbf4541f..8f840392 100644 --- a/README.md +++ b/README.md @@ -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: v0.35.0-213-g6976f974 +- Package version: v0.35.0-287-g7cc7ed50 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -164,6 +164,10 @@ Class | Method | HTTP request | Description *DefaultApi* | [**unpause**](docs/DefaultApi.md#unpause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause | *DefaultApi* | [**userlist**](docs/DefaultApi.md#userlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | *DefaultApi* | [**version**](docs/DefaultApi.md#version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | +*DefaultApi* | [**vm_addvolume**](docs/DefaultApi.md#vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | +*DefaultApi* | [**vm_removevolume**](docs/DefaultApi.md#vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | +*DefaultApi* | [**vmi_addvolume**](docs/DefaultApi.md#vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | +*DefaultApi* | [**vmi_removevolume**](docs/DefaultApi.md#vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | *DefaultApi* | [**vnc**](docs/DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | *DefaultApi* | [**watch_kube_virt_list_for_all_namespaces**](docs/DefaultApi.md#watch_kube_virt_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/kubevirt | *DefaultApi* | [**watch_namespaced_kube_virt**](docs/DefaultApi.md#watch_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | @@ -239,6 +243,7 @@ Class | Method | HTTP request | Description - [K8sIoApimachineryPkgUtilIntstrIntOrString](docs/K8sIoApimachineryPkgUtilIntstrIntOrString.md) - [V1AccessCredential](docs/V1AccessCredential.md) - [V1AccessCredentialSecretSource](docs/V1AccessCredentialSecretSource.md) + - [V1AddVolumeOptions](docs/V1AddVolumeOptions.md) - [V1BIOS](docs/V1BIOS.md) - [V1Bootloader](docs/V1Bootloader.md) - [V1CDRomTarget](docs/V1CDRomTarget.md) @@ -284,6 +289,8 @@ Class | Method | HTTP request | Description - [V1HPETTimer](docs/V1HPETTimer.md) - [V1HostDevice](docs/V1HostDevice.md) - [V1HostDisk](docs/V1HostDisk.md) + - [V1HotplugVolumeSource](docs/V1HotplugVolumeSource.md) + - [V1HotplugVolumeStatus](docs/V1HotplugVolumeStatus.md) - [V1Hugepages](docs/V1Hugepages.md) - [V1HypervTimer](docs/V1HypervTimer.md) - [V1I6300ESBWatchdog](docs/V1I6300ESBWatchdog.md) @@ -321,6 +328,7 @@ Class | Method | HTTP request | Description - [V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation](docs/V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation.md) - [V1QemuGuestAgentUserPasswordAccessCredentialPropagation](docs/V1QemuGuestAgentUserPasswordAccessCredentialPropagation.md) - [V1RTCTimer](docs/V1RTCTimer.md) + - [V1RemoveVolumeOptions](docs/V1RemoveVolumeOptions.md) - [V1ResourceRequirements](docs/V1ResourceRequirements.md) - [V1RestartOptions](docs/V1RestartOptions.md) - [V1Rng](docs/V1Rng.md) @@ -368,8 +376,10 @@ Class | Method | HTTP request | Description - [V1VirtualMachineSpec](docs/V1VirtualMachineSpec.md) - [V1VirtualMachineStateChangeRequest](docs/V1VirtualMachineStateChangeRequest.md) - [V1VirtualMachineStatus](docs/V1VirtualMachineStatus.md) + - [V1VirtualMachineVolumeRequest](docs/V1VirtualMachineVolumeRequest.md) - [V1Volume](docs/V1Volume.md) - [V1VolumeSnapshotStatus](docs/V1VolumeSnapshotStatus.md) + - [V1VolumeStatus](docs/V1VolumeStatus.md) - [V1Watchdog](docs/V1Watchdog.md) - [V1alpha1Condition](docs/V1alpha1Condition.md) - [V1alpha1DataVolumeBlankImage](docs/V1alpha1DataVolumeBlankImage.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 6f90dd79..32063d76 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -100,6 +100,10 @@ Method | HTTP request | Description [**unpause**](DefaultApi.md#unpause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause | [**userlist**](DefaultApi.md#userlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | [**version**](DefaultApi.md#version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | +[**vm_addvolume**](DefaultApi.md#vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | +[**vm_removevolume**](DefaultApi.md#vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | +[**vmi_addvolume**](DefaultApi.md#vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | +[**vmi_removevolume**](DefaultApi.md#vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | [**vnc**](DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | [**watch_kube_virt_list_for_all_namespaces**](DefaultApi.md#watch_kube_virt_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/kubevirt | [**watch_namespaced_kube_virt**](DefaultApi.md#watch_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | @@ -5220,6 +5224,202 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **vm_addvolume** +> str vm_addvolume(name, namespace) + + + +Add a volume and disk to a running Virtual Machine. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.vm_addvolume(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->vm_addvolume: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **vm_removevolume** +> str vm_removevolume(name, namespace) + + + +Removes a volume and disk from a running Virtual Machine. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.vm_removevolume(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->vm_removevolume: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **vmi_addvolume** +> str vmi_addvolume(name, namespace) + + + +Add a volume and disk to a running Virtual Machine Instance + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.vmi_addvolume(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->vmi_addvolume: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **vmi_removevolume** +> str vmi_removevolume(name, namespace) + + + +Removes a volume and disk from a running Virtual Machine Instance + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.vmi_removevolume(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->vmi_removevolume: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **vnc** > vnc(name, namespace) diff --git a/docs/V1AddVolumeOptions.md b/docs/V1AddVolumeOptions.md new file mode 100644 index 00000000..ced921e2 --- /dev/null +++ b/docs/V1AddVolumeOptions.md @@ -0,0 +1,12 @@ +# V1AddVolumeOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disk** | [**V1Disk**](V1Disk.md) | Disk represents the hotplug disk that will be plugged into the running VMI | +**name** | **str** | Name represents the name that will be used to map the disk to the corresponding volume. This overrides any name set inside the Disk struct itself. | +**volume_source** | [**V1HotplugVolumeSource**](V1HotplugVolumeSource.md) | VolumeSource represents the source of the volume to map to the disk. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Devices.md b/docs/V1Devices.md index 416ad8a3..4db33798 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **autoattach_pod_interface** | **bool** | Whether to attach a pod network interface. Defaults to true. | [optional] **autoattach_serial_console** | **bool** | Whether to attach the default serial console or not. Serial console access will not be available if set to false. Defaults to true. | [optional] **block_multi_queue** | **bool** | Whether or not to enable virtio multi-queue for block devices | [optional] +**disable_hotplug** | **bool** | DisableHotplug disabled the ability to hotplug disks. | [optional] **disks** | [**list[V1Disk]**](V1Disk.md) | Disks describes disks, cdroms, floppy and luns which are connected to the vmi. | [optional] **filesystems** | [**list[V1Filesystem]**](V1Filesystem.md) | Filesystems describes filesystem which is connected to the vmi. | [optional] **gpus** | [**list[V1GPU]**](V1GPU.md) | Whether to attach a GPU device to the vmi. | [optional] diff --git a/docs/V1HotplugVolumeSource.md b/docs/V1HotplugVolumeSource.md new file mode 100644 index 00000000..95439bed --- /dev/null +++ b/docs/V1HotplugVolumeSource.md @@ -0,0 +1,11 @@ +# V1HotplugVolumeSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data_volume** | [**V1DataVolumeSource**](V1DataVolumeSource.md) | DataVolume represents the dynamic creation a PVC for this volume as well as the process of populating that PVC with a disk image. | [optional] +**persistent_volume_claim** | [**K8sIoApiCoreV1PersistentVolumeClaimVolumeSource**](K8sIoApiCoreV1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1HotplugVolumeStatus.md b/docs/V1HotplugVolumeStatus.md new file mode 100644 index 00000000..33aa96f3 --- /dev/null +++ b/docs/V1HotplugVolumeStatus.md @@ -0,0 +1,11 @@ +# V1HotplugVolumeStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attach_pod_name** | **str** | AttachPodName is the name of the pod used to attach the volume to the node. | [optional] +**attach_pod_uid** | **str** | AttachPodUID is the UID of the pod used to attach the volume to the node. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1RemoveVolumeOptions.md b/docs/V1RemoveVolumeOptions.md new file mode 100644 index 00000000..5568dba6 --- /dev/null +++ b/docs/V1RemoveVolumeOptions.md @@ -0,0 +1,10 @@ +# V1RemoveVolumeOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name represents the name that maps to both the disk and volume that should be removed | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index eeee5361..b9e950a2 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **phase** | **str** | Phase is the status of the VirtualMachineInstance in kubernetes world. It is not the VirtualMachineInstance status, but partially correlates to it. | [optional] **qos_class** | **str** | The Quality of Service (QOS) classification assigned to the virtual machine instance based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md | [optional] **reason** | **str** | A brief CamelCase message indicating details about why the VMI is in this state. e.g. 'NodeUnresponsive' | [optional] +**volume_status** | [**list[V1VolumeStatus]**](V1VolumeStatus.md) | VolumeStatus contains the statuses of all the volumes | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineStatus.md b/docs/V1VirtualMachineStatus.md index 6ddbeea7..e79351d0 100644 --- a/docs/V1VirtualMachineStatus.md +++ b/docs/V1VirtualMachineStatus.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **ready** | **bool** | Ready indicates if the virtual machine is running and ready | [optional] **snapshot_in_progress** | **str** | SnapshotInProgress is the name of the VirtualMachineSnapshot currently executing | [optional] **state_change_requests** | [**list[V1VirtualMachineStateChangeRequest]**](V1VirtualMachineStateChangeRequest.md) | StateChangeRequests indicates a list of actions that should be taken on a VMI e.g. stop a specific VMI then start a new one. | [optional] +**volume_requests** | [**list[V1VirtualMachineVolumeRequest]**](V1VirtualMachineVolumeRequest.md) | VolumeRequests indicates a list of volumes add or remove from the VMI template and hotplug on an active running VMI. | [optional] **volume_snapshot_statuses** | [**list[V1VolumeSnapshotStatus]**](V1VolumeSnapshotStatus.md) | VolumeSnapshotStatuses indicates a list of statuses whether snapshotting is supported by each volume. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineVolumeRequest.md b/docs/V1VirtualMachineVolumeRequest.md new file mode 100644 index 00000000..4a4bc766 --- /dev/null +++ b/docs/V1VirtualMachineVolumeRequest.md @@ -0,0 +1,11 @@ +# V1VirtualMachineVolumeRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**add_volume_options** | [**V1AddVolumeOptions**](V1AddVolumeOptions.md) | AddVolumeOptions when set indicates a volume should be added. The details within this field specify how to add the volume | [optional] +**remove_volume_options** | [**V1RemoveVolumeOptions**](V1RemoveVolumeOptions.md) | RemoveVolumeOptions when set indicates a volume should be removed. The details within this field specify how to add the volume | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VolumeStatus.md b/docs/V1VolumeStatus.md new file mode 100644 index 00000000..d4aae054 --- /dev/null +++ b/docs/V1VolumeStatus.md @@ -0,0 +1,15 @@ +# V1VolumeStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hotplug_volume** | [**V1HotplugVolumeStatus**](V1HotplugVolumeStatus.md) | If the volume is hotplug, this will contain the hotplug status. | [optional] +**message** | **str** | Message is a detailed message about the current hotplug volume phase | [optional] +**name** | **str** | Name is the name of the volume | +**phase** | **str** | Phase is the phase | [optional] +**reason** | **str** | Reason is a brief description of why we are in the current hotplug volume phase | [optional] +**target** | **str** | Target is the target name used when adding the volume to the VM, eg: vda | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 6d47417d..82918f0e 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.35.0-213-g6976f974" + release_note="Auto-generated client v0.35.0-287-g7cc7ed50" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 9c2512da..95347d88 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -175,6 +175,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_access_credential_secret_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_access_credential_secret_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1AccessCredentialSecretSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_add_volume_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_add_volume_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1AddVolumeOptions.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_bios.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_bios.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1BIOS.md @@ -310,6 +313,12 @@ 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_host_disk.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_host_disk.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1HostDisk.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_hotplug_volume_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_hotplug_volume_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1HotplugVolumeSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_hotplug_volume_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_hotplug_volume_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1HotplugVolumeStatus.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_hugepages.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_hugepages.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Hugepages.md @@ -421,6 +430,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_rtc_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_rtc_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1RTCTimer.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_remove_volume_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_remove_volume_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1RemoveVolumeOptions.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_resource_requirements.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_resource_requirements.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ResourceRequirements.md @@ -562,12 +574,18 @@ 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_virtual_machine_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_volume_request.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_volume_request.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineVolumeRequest.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_volume.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_volume.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Volume.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_volume_snapshot_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_volume_snapshot_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VolumeSnapshotStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_volume_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_volume_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VolumeStatus.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Watchdog.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index c2fb76b8..1f33c987 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -66,6 +66,7 @@ from .models.k8s_io_apimachinery_pkg_util_intstr_int_or_string import K8sIoApimachineryPkgUtilIntstrIntOrString from .models.v1_access_credential import V1AccessCredential from .models.v1_access_credential_secret_source import V1AccessCredentialSecretSource +from .models.v1_add_volume_options import V1AddVolumeOptions from .models.v1_bios import V1BIOS from .models.v1_bootloader import V1Bootloader from .models.v1_cd_rom_target import V1CDRomTarget @@ -111,6 +112,8 @@ from .models.v1_hpet_timer import V1HPETTimer from .models.v1_host_device import V1HostDevice from .models.v1_host_disk import V1HostDisk +from .models.v1_hotplug_volume_source import V1HotplugVolumeSource +from .models.v1_hotplug_volume_status import V1HotplugVolumeStatus from .models.v1_hugepages import V1Hugepages from .models.v1_hyperv_timer import V1HypervTimer from .models.v1_i6300_esb_watchdog import V1I6300ESBWatchdog @@ -148,6 +151,7 @@ from .models.v1_qemu_guest_agent_ssh_public_key_access_credential_propagation import V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation from .models.v1_qemu_guest_agent_user_password_access_credential_propagation import V1QemuGuestAgentUserPasswordAccessCredentialPropagation from .models.v1_rtc_timer import V1RTCTimer +from .models.v1_remove_volume_options import V1RemoveVolumeOptions from .models.v1_resource_requirements import V1ResourceRequirements from .models.v1_restart_options import V1RestartOptions from .models.v1_rng import V1Rng @@ -195,8 +199,10 @@ from .models.v1_virtual_machine_spec import V1VirtualMachineSpec from .models.v1_virtual_machine_state_change_request import V1VirtualMachineStateChangeRequest from .models.v1_virtual_machine_status import V1VirtualMachineStatus +from .models.v1_virtual_machine_volume_request import V1VirtualMachineVolumeRequest from .models.v1_volume import V1Volume from .models.v1_volume_snapshot_status import V1VolumeSnapshotStatus +from .models.v1_volume_status import V1VolumeStatus from .models.v1_watchdog import V1Watchdog from .models.v1alpha1_condition import V1alpha1Condition from .models.v1alpha1_data_volume_blank_image import V1alpha1DataVolumeBlankImage diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index d87d645f..d4a988a9 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.35.0-213-g6976f974/python' + self.user_agent = 'Swagger-Codegen/v0.35.0-287-g7cc7ed50/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index c2e39834..a50f9543 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -11144,6 +11144,418 @@ def version_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def vm_addvolume(self, name, namespace, **kwargs): + """ + Add a volume and disk to a running Virtual Machine. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.vm_addvolume(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.vm_addvolume_with_http_info(name, namespace, **kwargs) + else: + (data) = self.vm_addvolume_with_http_info(name, namespace, **kwargs) + return data + + def vm_addvolume_with_http_info(self, name, namespace, **kwargs): + """ + Add a volume and disk to a running Virtual Machine. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.vm_addvolume_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method vm_addvolume" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `vm_addvolume`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `vm_addvolume`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def vm_removevolume(self, name, namespace, **kwargs): + """ + Removes a volume and disk from a running Virtual Machine. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.vm_removevolume(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.vm_removevolume_with_http_info(name, namespace, **kwargs) + else: + (data) = self.vm_removevolume_with_http_info(name, namespace, **kwargs) + return data + + def vm_removevolume_with_http_info(self, name, namespace, **kwargs): + """ + Removes a volume and disk from a running Virtual Machine. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.vm_removevolume_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method vm_removevolume" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `vm_removevolume`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `vm_removevolume`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def vmi_addvolume(self, name, namespace, **kwargs): + """ + Add a volume and disk to a running Virtual Machine Instance + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.vmi_addvolume(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.vmi_addvolume_with_http_info(name, namespace, **kwargs) + else: + (data) = self.vmi_addvolume_with_http_info(name, namespace, **kwargs) + return data + + def vmi_addvolume_with_http_info(self, name, namespace, **kwargs): + """ + Add a volume and disk to a running Virtual Machine Instance + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.vmi_addvolume_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method vmi_addvolume" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `vmi_addvolume`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `vmi_addvolume`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def vmi_removevolume(self, name, namespace, **kwargs): + """ + Removes a volume and disk from a running Virtual Machine Instance + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.vmi_removevolume(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.vmi_removevolume_with_http_info(name, namespace, **kwargs) + else: + (data) = self.vmi_removevolume_with_http_info(name, namespace, **kwargs) + return data + + def vmi_removevolume_with_http_info(self, name, namespace, **kwargs): + """ + Removes a volume and disk from a running Virtual Machine Instance + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.vmi_removevolume_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method vmi_removevolume" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `vmi_removevolume`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `vmi_removevolume`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def vnc(self, name, namespace, **kwargs): """ Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index ceaad651..d0ab8316 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.35.0-213-g6976f974".\ + "SDK Package Version: v0.35.0-287-g7cc7ed50".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index afd7b146..da8f967d 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -66,6 +66,7 @@ from .k8s_io_apimachinery_pkg_util_intstr_int_or_string import K8sIoApimachineryPkgUtilIntstrIntOrString from .v1_access_credential import V1AccessCredential from .v1_access_credential_secret_source import V1AccessCredentialSecretSource +from .v1_add_volume_options import V1AddVolumeOptions from .v1_bios import V1BIOS from .v1_bootloader import V1Bootloader from .v1_cd_rom_target import V1CDRomTarget @@ -111,6 +112,8 @@ from .v1_hpet_timer import V1HPETTimer from .v1_host_device import V1HostDevice from .v1_host_disk import V1HostDisk +from .v1_hotplug_volume_source import V1HotplugVolumeSource +from .v1_hotplug_volume_status import V1HotplugVolumeStatus from .v1_hugepages import V1Hugepages from .v1_hyperv_timer import V1HypervTimer from .v1_i6300_esb_watchdog import V1I6300ESBWatchdog @@ -148,6 +151,7 @@ from .v1_qemu_guest_agent_ssh_public_key_access_credential_propagation import V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation from .v1_qemu_guest_agent_user_password_access_credential_propagation import V1QemuGuestAgentUserPasswordAccessCredentialPropagation from .v1_rtc_timer import V1RTCTimer +from .v1_remove_volume_options import V1RemoveVolumeOptions from .v1_resource_requirements import V1ResourceRequirements from .v1_restart_options import V1RestartOptions from .v1_rng import V1Rng @@ -195,8 +199,10 @@ from .v1_virtual_machine_spec import V1VirtualMachineSpec from .v1_virtual_machine_state_change_request import V1VirtualMachineStateChangeRequest from .v1_virtual_machine_status import V1VirtualMachineStatus +from .v1_virtual_machine_volume_request import V1VirtualMachineVolumeRequest from .v1_volume import V1Volume from .v1_volume_snapshot_status import V1VolumeSnapshotStatus +from .v1_volume_status import V1VolumeStatus from .v1_watchdog import V1Watchdog from .v1alpha1_condition import V1alpha1Condition from .v1alpha1_data_volume_blank_image import V1alpha1DataVolumeBlankImage diff --git a/kubevirt/models/v1_add_volume_options.py b/kubevirt/models/v1_add_volume_options.py new file mode 100644 index 00000000..88749a71 --- /dev/null +++ b/kubevirt/models/v1_add_volume_options.py @@ -0,0 +1,184 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1AddVolumeOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'disk': 'V1Disk', + 'name': 'str', + 'volume_source': 'V1HotplugVolumeSource' + } + + attribute_map = { + 'disk': 'disk', + 'name': 'name', + 'volume_source': 'volumeSource' + } + + def __init__(self, disk=None, name=None, volume_source=None): + """ + V1AddVolumeOptions - a model defined in Swagger + """ + + self._disk = None + self._name = None + self._volume_source = None + + self.disk = disk + self.name = name + self.volume_source = volume_source + + @property + def disk(self): + """ + Gets the disk of this V1AddVolumeOptions. + Disk represents the hotplug disk that will be plugged into the running VMI + + :return: The disk of this V1AddVolumeOptions. + :rtype: V1Disk + """ + return self._disk + + @disk.setter + def disk(self, disk): + """ + Sets the disk of this V1AddVolumeOptions. + Disk represents the hotplug disk that will be plugged into the running VMI + + :param disk: The disk of this V1AddVolumeOptions. + :type: V1Disk + """ + if disk is None: + raise ValueError("Invalid value for `disk`, must not be `None`") + + self._disk = disk + + @property + def name(self): + """ + Gets the name of this V1AddVolumeOptions. + Name represents the name that will be used to map the disk to the corresponding volume. This overrides any name set inside the Disk struct itself. + + :return: The name of this V1AddVolumeOptions. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1AddVolumeOptions. + Name represents the name that will be used to map the disk to the corresponding volume. This overrides any name set inside the Disk struct itself. + + :param name: The name of this V1AddVolumeOptions. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def volume_source(self): + """ + Gets the volume_source of this V1AddVolumeOptions. + VolumeSource represents the source of the volume to map to the disk. + + :return: The volume_source of this V1AddVolumeOptions. + :rtype: V1HotplugVolumeSource + """ + return self._volume_source + + @volume_source.setter + def volume_source(self, volume_source): + """ + Sets the volume_source of this V1AddVolumeOptions. + VolumeSource represents the source of the volume to map to the disk. + + :param volume_source: The volume_source of this V1AddVolumeOptions. + :type: V1HotplugVolumeSource + """ + if volume_source is None: + raise ValueError("Invalid value for `volume_source`, must not be `None`") + + self._volume_source = volume_source + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1AddVolumeOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index 3670c06e..d8f11b1d 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -36,6 +36,7 @@ class V1Devices(object): 'autoattach_pod_interface': 'bool', 'autoattach_serial_console': 'bool', 'block_multi_queue': 'bool', + 'disable_hotplug': 'bool', 'disks': 'list[V1Disk]', 'filesystems': 'list[V1Filesystem]', 'gpus': 'list[V1GPU]', @@ -53,6 +54,7 @@ class V1Devices(object): 'autoattach_pod_interface': 'autoattachPodInterface', 'autoattach_serial_console': 'autoattachSerialConsole', 'block_multi_queue': 'blockMultiQueue', + 'disable_hotplug': 'disableHotplug', 'disks': 'disks', 'filesystems': 'filesystems', 'gpus': 'gpus', @@ -64,7 +66,7 @@ class V1Devices(object): 'watchdog': 'watchdog' } - def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, autoattach_pod_interface=None, autoattach_serial_console=None, block_multi_queue=None, disks=None, filesystems=None, gpus=None, host_devices=None, inputs=None, interfaces=None, network_interface_multiqueue=None, rng=None, watchdog=None): + def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, autoattach_pod_interface=None, autoattach_serial_console=None, block_multi_queue=None, disable_hotplug=None, disks=None, filesystems=None, gpus=None, host_devices=None, inputs=None, interfaces=None, network_interface_multiqueue=None, rng=None, watchdog=None): """ V1Devices - a model defined in Swagger """ @@ -74,6 +76,7 @@ def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, self._autoattach_pod_interface = None self._autoattach_serial_console = None self._block_multi_queue = None + self._disable_hotplug = None self._disks = None self._filesystems = None self._gpus = None @@ -94,6 +97,8 @@ def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, self.autoattach_serial_console = autoattach_serial_console if block_multi_queue is not None: self.block_multi_queue = block_multi_queue + if disable_hotplug is not None: + self.disable_hotplug = disable_hotplug if disks is not None: self.disks = disks if filesystems is not None: @@ -228,6 +233,29 @@ def block_multi_queue(self, block_multi_queue): self._block_multi_queue = block_multi_queue + @property + def disable_hotplug(self): + """ + Gets the disable_hotplug of this V1Devices. + DisableHotplug disabled the ability to hotplug disks. + + :return: The disable_hotplug of this V1Devices. + :rtype: bool + """ + return self._disable_hotplug + + @disable_hotplug.setter + def disable_hotplug(self, disable_hotplug): + """ + Sets the disable_hotplug of this V1Devices. + DisableHotplug disabled the ability to hotplug disks. + + :param disable_hotplug: The disable_hotplug of this V1Devices. + :type: bool + """ + + self._disable_hotplug = disable_hotplug + @property def disks(self): """ diff --git a/kubevirt/models/v1_hotplug_volume_source.py b/kubevirt/models/v1_hotplug_volume_source.py new file mode 100644 index 00000000..2b5e3732 --- /dev/null +++ b/kubevirt/models/v1_hotplug_volume_source.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1HotplugVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data_volume': 'V1DataVolumeSource', + 'persistent_volume_claim': 'K8sIoApiCoreV1PersistentVolumeClaimVolumeSource' + } + + attribute_map = { + 'data_volume': 'dataVolume', + 'persistent_volume_claim': 'persistentVolumeClaim' + } + + def __init__(self, data_volume=None, persistent_volume_claim=None): + """ + V1HotplugVolumeSource - a model defined in Swagger + """ + + self._data_volume = None + self._persistent_volume_claim = None + + if data_volume is not None: + self.data_volume = data_volume + if persistent_volume_claim is not None: + self.persistent_volume_claim = persistent_volume_claim + + @property + def data_volume(self): + """ + Gets the data_volume of this V1HotplugVolumeSource. + DataVolume represents the dynamic creation a PVC for this volume as well as the process of populating that PVC with a disk image. + + :return: The data_volume of this V1HotplugVolumeSource. + :rtype: V1DataVolumeSource + """ + return self._data_volume + + @data_volume.setter + def data_volume(self, data_volume): + """ + Sets the data_volume of this V1HotplugVolumeSource. + DataVolume represents the dynamic creation a PVC for this volume as well as the process of populating that PVC with a disk image. + + :param data_volume: The data_volume of this V1HotplugVolumeSource. + :type: V1DataVolumeSource + """ + + self._data_volume = data_volume + + @property + def persistent_volume_claim(self): + """ + Gets the persistent_volume_claim of this V1HotplugVolumeSource. + PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + + :return: The persistent_volume_claim of this V1HotplugVolumeSource. + :rtype: K8sIoApiCoreV1PersistentVolumeClaimVolumeSource + """ + return self._persistent_volume_claim + + @persistent_volume_claim.setter + def persistent_volume_claim(self, persistent_volume_claim): + """ + Sets the persistent_volume_claim of this V1HotplugVolumeSource. + PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + + :param persistent_volume_claim: The persistent_volume_claim of this V1HotplugVolumeSource. + :type: K8sIoApiCoreV1PersistentVolumeClaimVolumeSource + """ + + self._persistent_volume_claim = persistent_volume_claim + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1HotplugVolumeSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_hotplug_volume_status.py b/kubevirt/models/v1_hotplug_volume_status.py new file mode 100644 index 00000000..e7495c57 --- /dev/null +++ b/kubevirt/models/v1_hotplug_volume_status.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1HotplugVolumeStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'attach_pod_name': 'str', + 'attach_pod_uid': 'str' + } + + attribute_map = { + 'attach_pod_name': 'attachPodName', + 'attach_pod_uid': 'attachPodUID' + } + + def __init__(self, attach_pod_name=None, attach_pod_uid=None): + """ + V1HotplugVolumeStatus - a model defined in Swagger + """ + + self._attach_pod_name = None + self._attach_pod_uid = None + + if attach_pod_name is not None: + self.attach_pod_name = attach_pod_name + if attach_pod_uid is not None: + self.attach_pod_uid = attach_pod_uid + + @property + def attach_pod_name(self): + """ + Gets the attach_pod_name of this V1HotplugVolumeStatus. + AttachPodName is the name of the pod used to attach the volume to the node. + + :return: The attach_pod_name of this V1HotplugVolumeStatus. + :rtype: str + """ + return self._attach_pod_name + + @attach_pod_name.setter + def attach_pod_name(self, attach_pod_name): + """ + Sets the attach_pod_name of this V1HotplugVolumeStatus. + AttachPodName is the name of the pod used to attach the volume to the node. + + :param attach_pod_name: The attach_pod_name of this V1HotplugVolumeStatus. + :type: str + """ + + self._attach_pod_name = attach_pod_name + + @property + def attach_pod_uid(self): + """ + Gets the attach_pod_uid of this V1HotplugVolumeStatus. + AttachPodUID is the UID of the pod used to attach the volume to the node. + + :return: The attach_pod_uid of this V1HotplugVolumeStatus. + :rtype: str + """ + return self._attach_pod_uid + + @attach_pod_uid.setter + def attach_pod_uid(self, attach_pod_uid): + """ + Sets the attach_pod_uid of this V1HotplugVolumeStatus. + AttachPodUID is the UID of the pod used to attach the volume to the node. + + :param attach_pod_uid: The attach_pod_uid of this V1HotplugVolumeStatus. + :type: str + """ + + self._attach_pod_uid = attach_pod_uid + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1HotplugVolumeStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_remove_volume_options.py b/kubevirt/models/v1_remove_volume_options.py new file mode 100644 index 00000000..fce80907 --- /dev/null +++ b/kubevirt/models/v1_remove_volume_options.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1RemoveVolumeOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str' + } + + attribute_map = { + 'name': 'name' + } + + def __init__(self, name=None): + """ + V1RemoveVolumeOptions - a model defined in Swagger + """ + + self._name = None + + self.name = name + + @property + def name(self): + """ + Gets the name of this V1RemoveVolumeOptions. + Name represents the name that maps to both the disk and volume that should be removed + + :return: The name of this V1RemoveVolumeOptions. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1RemoveVolumeOptions. + Name represents the name that maps to both the disk and volume that should be removed + + :param name: The name of this V1RemoveVolumeOptions. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1RemoveVolumeOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index f4401019..a936726c 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -41,7 +41,8 @@ class V1VirtualMachineInstanceStatus(object): 'node_name': 'str', 'phase': 'str', 'qos_class': 'str', - 'reason': 'str' + 'reason': 'str', + 'volume_status': 'list[V1VolumeStatus]' } attribute_map = { @@ -55,10 +56,11 @@ class V1VirtualMachineInstanceStatus(object): 'node_name': 'nodeName', 'phase': 'phase', 'qos_class': 'qosClass', - 'reason': 'reason' + 'reason': 'reason', + 'volume_status': 'volumeStatus' } - def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, guest_os_info=None, interfaces=None, migration_method=None, migration_state=None, node_name=None, phase=None, qos_class=None, reason=None): + def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, guest_os_info=None, interfaces=None, migration_method=None, migration_state=None, node_name=None, phase=None, qos_class=None, reason=None, volume_status=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ @@ -74,6 +76,7 @@ def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, self._phase = None self._qos_class = None self._reason = None + self._volume_status = None if active_pods is not None: self.active_pods = active_pods @@ -97,6 +100,8 @@ def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, self.qos_class = qos_class if reason is not None: self.reason = reason + if volume_status is not None: + self.volume_status = volume_status @property def active_pods(self): @@ -351,6 +356,29 @@ def reason(self, reason): self._reason = reason + @property + def volume_status(self): + """ + Gets the volume_status of this V1VirtualMachineInstanceStatus. + VolumeStatus contains the statuses of all the volumes + + :return: The volume_status of this V1VirtualMachineInstanceStatus. + :rtype: list[V1VolumeStatus] + """ + return self._volume_status + + @volume_status.setter + def volume_status(self, volume_status): + """ + Sets the volume_status of this V1VirtualMachineInstanceStatus. + VolumeStatus contains the statuses of all the volumes + + :param volume_status: The volume_status of this V1VirtualMachineInstanceStatus. + :type: list[V1VolumeStatus] + """ + + self._volume_status = volume_status + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_virtual_machine_status.py b/kubevirt/models/v1_virtual_machine_status.py index b078388b..b980f333 100644 --- a/kubevirt/models/v1_virtual_machine_status.py +++ b/kubevirt/models/v1_virtual_machine_status.py @@ -36,6 +36,7 @@ class V1VirtualMachineStatus(object): 'ready': 'bool', 'snapshot_in_progress': 'str', 'state_change_requests': 'list[V1VirtualMachineStateChangeRequest]', + 'volume_requests': 'list[V1VirtualMachineVolumeRequest]', 'volume_snapshot_statuses': 'list[V1VolumeSnapshotStatus]' } @@ -45,10 +46,11 @@ class V1VirtualMachineStatus(object): 'ready': 'ready', 'snapshot_in_progress': 'snapshotInProgress', 'state_change_requests': 'stateChangeRequests', + 'volume_requests': 'volumeRequests', 'volume_snapshot_statuses': 'volumeSnapshotStatuses' } - def __init__(self, conditions=None, created=None, ready=None, snapshot_in_progress=None, state_change_requests=None, volume_snapshot_statuses=None): + def __init__(self, conditions=None, created=None, ready=None, snapshot_in_progress=None, state_change_requests=None, volume_requests=None, volume_snapshot_statuses=None): """ V1VirtualMachineStatus - a model defined in Swagger """ @@ -58,6 +60,7 @@ def __init__(self, conditions=None, created=None, ready=None, snapshot_in_progre self._ready = None self._snapshot_in_progress = None self._state_change_requests = None + self._volume_requests = None self._volume_snapshot_statuses = None if conditions is not None: @@ -70,6 +73,8 @@ def __init__(self, conditions=None, created=None, ready=None, snapshot_in_progre self.snapshot_in_progress = snapshot_in_progress if state_change_requests is not None: self.state_change_requests = state_change_requests + if volume_requests is not None: + self.volume_requests = volume_requests if volume_snapshot_statuses is not None: self.volume_snapshot_statuses = volume_snapshot_statuses @@ -188,6 +193,29 @@ def state_change_requests(self, state_change_requests): self._state_change_requests = state_change_requests + @property + def volume_requests(self): + """ + Gets the volume_requests of this V1VirtualMachineStatus. + VolumeRequests indicates a list of volumes add or remove from the VMI template and hotplug on an active running VMI. + + :return: The volume_requests of this V1VirtualMachineStatus. + :rtype: list[V1VirtualMachineVolumeRequest] + """ + return self._volume_requests + + @volume_requests.setter + def volume_requests(self, volume_requests): + """ + Sets the volume_requests of this V1VirtualMachineStatus. + VolumeRequests indicates a list of volumes add or remove from the VMI template and hotplug on an active running VMI. + + :param volume_requests: The volume_requests of this V1VirtualMachineStatus. + :type: list[V1VirtualMachineVolumeRequest] + """ + + self._volume_requests = volume_requests + @property def volume_snapshot_statuses(self): """ diff --git a/kubevirt/models/v1_virtual_machine_volume_request.py b/kubevirt/models/v1_virtual_machine_volume_request.py new file mode 100644 index 00000000..d74b7a2b --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_volume_request.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineVolumeRequest(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'add_volume_options': 'V1AddVolumeOptions', + 'remove_volume_options': 'V1RemoveVolumeOptions' + } + + attribute_map = { + 'add_volume_options': 'addVolumeOptions', + 'remove_volume_options': 'removeVolumeOptions' + } + + def __init__(self, add_volume_options=None, remove_volume_options=None): + """ + V1VirtualMachineVolumeRequest - a model defined in Swagger + """ + + self._add_volume_options = None + self._remove_volume_options = None + + if add_volume_options is not None: + self.add_volume_options = add_volume_options + if remove_volume_options is not None: + self.remove_volume_options = remove_volume_options + + @property + def add_volume_options(self): + """ + Gets the add_volume_options of this V1VirtualMachineVolumeRequest. + AddVolumeOptions when set indicates a volume should be added. The details within this field specify how to add the volume + + :return: The add_volume_options of this V1VirtualMachineVolumeRequest. + :rtype: V1AddVolumeOptions + """ + return self._add_volume_options + + @add_volume_options.setter + def add_volume_options(self, add_volume_options): + """ + Sets the add_volume_options of this V1VirtualMachineVolumeRequest. + AddVolumeOptions when set indicates a volume should be added. The details within this field specify how to add the volume + + :param add_volume_options: The add_volume_options of this V1VirtualMachineVolumeRequest. + :type: V1AddVolumeOptions + """ + + self._add_volume_options = add_volume_options + + @property + def remove_volume_options(self): + """ + Gets the remove_volume_options of this V1VirtualMachineVolumeRequest. + RemoveVolumeOptions when set indicates a volume should be removed. The details within this field specify how to add the volume + + :return: The remove_volume_options of this V1VirtualMachineVolumeRequest. + :rtype: V1RemoveVolumeOptions + """ + return self._remove_volume_options + + @remove_volume_options.setter + def remove_volume_options(self, remove_volume_options): + """ + Sets the remove_volume_options of this V1VirtualMachineVolumeRequest. + RemoveVolumeOptions when set indicates a volume should be removed. The details within this field specify how to add the volume + + :param remove_volume_options: The remove_volume_options of this V1VirtualMachineVolumeRequest. + :type: V1RemoveVolumeOptions + """ + + self._remove_volume_options = remove_volume_options + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineVolumeRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_volume_status.py b/kubevirt/models/v1_volume_status.py new file mode 100644 index 00000000..47c1dc5b --- /dev/null +++ b/kubevirt/models/v1_volume_status.py @@ -0,0 +1,267 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VolumeStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'hotplug_volume': 'V1HotplugVolumeStatus', + 'message': 'str', + 'name': 'str', + 'phase': 'str', + 'reason': 'str', + 'target': 'str' + } + + attribute_map = { + 'hotplug_volume': 'hotplugVolume', + 'message': 'message', + 'name': 'name', + 'phase': 'phase', + 'reason': 'reason', + 'target': 'target' + } + + def __init__(self, hotplug_volume=None, message=None, name=None, phase=None, reason=None, target=None): + """ + V1VolumeStatus - a model defined in Swagger + """ + + self._hotplug_volume = None + self._message = None + self._name = None + self._phase = None + self._reason = None + self._target = None + + if hotplug_volume is not None: + self.hotplug_volume = hotplug_volume + if message is not None: + self.message = message + self.name = name + if phase is not None: + self.phase = phase + if reason is not None: + self.reason = reason + self.target = target + + @property + def hotplug_volume(self): + """ + Gets the hotplug_volume of this V1VolumeStatus. + If the volume is hotplug, this will contain the hotplug status. + + :return: The hotplug_volume of this V1VolumeStatus. + :rtype: V1HotplugVolumeStatus + """ + return self._hotplug_volume + + @hotplug_volume.setter + def hotplug_volume(self, hotplug_volume): + """ + Sets the hotplug_volume of this V1VolumeStatus. + If the volume is hotplug, this will contain the hotplug status. + + :param hotplug_volume: The hotplug_volume of this V1VolumeStatus. + :type: V1HotplugVolumeStatus + """ + + self._hotplug_volume = hotplug_volume + + @property + def message(self): + """ + Gets the message of this V1VolumeStatus. + Message is a detailed message about the current hotplug volume phase + + :return: The message of this V1VolumeStatus. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1VolumeStatus. + Message is a detailed message about the current hotplug volume phase + + :param message: The message of this V1VolumeStatus. + :type: str + """ + + self._message = message + + @property + def name(self): + """ + Gets the name of this V1VolumeStatus. + Name is the name of the volume + + :return: The name of this V1VolumeStatus. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1VolumeStatus. + Name is the name of the volume + + :param name: The name of this V1VolumeStatus. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def phase(self): + """ + Gets the phase of this V1VolumeStatus. + Phase is the phase + + :return: The phase of this V1VolumeStatus. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """ + Sets the phase of this V1VolumeStatus. + Phase is the phase + + :param phase: The phase of this V1VolumeStatus. + :type: str + """ + + self._phase = phase + + @property + def reason(self): + """ + Gets the reason of this V1VolumeStatus. + Reason is a brief description of why we are in the current hotplug volume phase + + :return: The reason of this V1VolumeStatus. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1VolumeStatus. + Reason is a brief description of why we are in the current hotplug volume phase + + :param reason: The reason of this V1VolumeStatus. + :type: str + """ + + self._reason = reason + + @property + def target(self): + """ + Gets the target of this V1VolumeStatus. + Target is the target name used when adding the volume to the VM, eg: vda + + :return: The target of this V1VolumeStatus. + :rtype: str + """ + return self._target + + @target.setter + def target(self, target): + """ + Sets the target of this V1VolumeStatus. + Target is the target name used when adding the volume to the VM, eg: vda + + :param target: The target of this V1VolumeStatus. + :type: str + """ + if target is None: + raise ValueError("Invalid value for `target`, must not be `None`") + + self._target = target + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VolumeStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index caefed6b..acdd4e87 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.35.0-213-g6976f974" +VERSION = "v0.35.0-287-g7cc7ed50" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 0a5b63f6..95cca7d9 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.35.0-213-g6976f974" +"packageVersion": "v0.35.0-287-g7cc7ed50" } diff --git a/test/test_default_api.py b/test/test_default_api.py index d20bd32e..ac8a9d94 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -796,6 +796,38 @@ def test_version(self): Test case for version + """ + pass + + def test_vm_addvolume(self): + """ + Test case for vm_addvolume + + + """ + pass + + def test_vm_removevolume(self): + """ + Test case for vm_removevolume + + + """ + pass + + def test_vmi_addvolume(self): + """ + Test case for vmi_addvolume + + + """ + pass + + def test_vmi_removevolume(self): + """ + Test case for vmi_removevolume + + """ pass diff --git a/test/test_v1_add_volume_options.py b/test/test_v1_add_volume_options.py new file mode 100644 index 00000000..4cecdf1d --- /dev/null +++ b/test/test_v1_add_volume_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_add_volume_options import V1AddVolumeOptions + + +class TestV1AddVolumeOptions(unittest.TestCase): + """ V1AddVolumeOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1AddVolumeOptions(self): + """ + Test V1AddVolumeOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_add_volume_options.V1AddVolumeOptions() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_hotplug_volume_source.py b/test/test_v1_hotplug_volume_source.py new file mode 100644 index 00000000..315db511 --- /dev/null +++ b/test/test_v1_hotplug_volume_source.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_hotplug_volume_source import V1HotplugVolumeSource + + +class TestV1HotplugVolumeSource(unittest.TestCase): + """ V1HotplugVolumeSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1HotplugVolumeSource(self): + """ + Test V1HotplugVolumeSource + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_hotplug_volume_source.V1HotplugVolumeSource() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_hotplug_volume_status.py b/test/test_v1_hotplug_volume_status.py new file mode 100644 index 00000000..ae2ce092 --- /dev/null +++ b/test/test_v1_hotplug_volume_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_hotplug_volume_status import V1HotplugVolumeStatus + + +class TestV1HotplugVolumeStatus(unittest.TestCase): + """ V1HotplugVolumeStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1HotplugVolumeStatus(self): + """ + Test V1HotplugVolumeStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_hotplug_volume_status.V1HotplugVolumeStatus() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_remove_volume_options.py b/test/test_v1_remove_volume_options.py new file mode 100644 index 00000000..745fb319 --- /dev/null +++ b/test/test_v1_remove_volume_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_remove_volume_options import V1RemoveVolumeOptions + + +class TestV1RemoveVolumeOptions(unittest.TestCase): + """ V1RemoveVolumeOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1RemoveVolumeOptions(self): + """ + Test V1RemoveVolumeOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_remove_volume_options.V1RemoveVolumeOptions() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_virtual_machine_volume_request.py b/test/test_v1_virtual_machine_volume_request.py new file mode 100644 index 00000000..1fd6dc8e --- /dev/null +++ b/test/test_v1_virtual_machine_volume_request.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_volume_request import V1VirtualMachineVolumeRequest + + +class TestV1VirtualMachineVolumeRequest(unittest.TestCase): + """ V1VirtualMachineVolumeRequest unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineVolumeRequest(self): + """ + Test V1VirtualMachineVolumeRequest + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_volume_request.V1VirtualMachineVolumeRequest() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_volume_status.py b/test/test_v1_volume_status.py new file mode 100644 index 00000000..dfd8c519 --- /dev/null +++ b/test/test_v1_volume_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_volume_status import V1VolumeStatus + + +class TestV1VolumeStatus(unittest.TestCase): + """ V1VolumeStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VolumeStatus(self): + """ + Test V1VolumeStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_volume_status.V1VolumeStatus() + pass + + +if __name__ == '__main__': + unittest.main() From 18efcf414e69598efff025e04fdc1071342ebfbb Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 11 Dec 2020 05:05:56 +0000 Subject: [PATCH 165/521] Client Python update by Travis Build 15673 --- README.md | 192 +- docs/DefaultApi.md | 2176 +++++++++---- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 5921 +++++++++++++++++++++++----------- kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 356 +- 9 files changed, 5915 insertions(+), 2740 deletions(-) diff --git a/README.md b/README.md index 8f840392..033b5dfc 100644 --- a/README.md +++ b/README.md @@ -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: v0.35.0-287-g7cc7ed50 +- Package version: v0.36.0-rc.0-54-g610ff693 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -53,12 +53,14 @@ from kubevirt.rest import ApiException from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() +body = kubevirt.V1KubeVirt() # V1KubeVirt | +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - api_response = api_instance.check_health() + api_response = api_instance.create_namespaced_kube_virt(body, namespace) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->check_health: %s\n" % e) + print("Exception when calling DefaultApi->create_namespaced_kube_virt: %s\n" % e) ``` @@ -68,122 +70,142 @@ All URIs are relative to *https://localhost* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*DefaultApi* | [**check_health**](docs/DefaultApi.md#check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha3/healthz | -*DefaultApi* | [**console**](docs/DefaultApi.md#console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | -*DefaultApi* | [**create_namespaced_kube_virt**](docs/DefaultApi.md#create_namespaced_kube_virt) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | -*DefaultApi* | [**create_namespaced_virtual_machine**](docs/DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | -*DefaultApi* | [**create_namespaced_virtual_machine_instance**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | -*DefaultApi* | [**create_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | -*DefaultApi* | [**create_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | -*DefaultApi* | [**create_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +*DefaultApi* | [**create_namespaced_kube_virt**](docs/DefaultApi.md#create_namespaced_kube_virt) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | +*DefaultApi* | [**create_namespaced_virtual_machine**](docs/DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +*DefaultApi* | [**create_namespaced_virtual_machine_instance**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | +*DefaultApi* | [**create_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | +*DefaultApi* | [**create_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | +*DefaultApi* | [**create_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | *DefaultApi* | [**create_namespaced_virtual_machine_restore**](docs/DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**create_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**create_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | -*DefaultApi* | [**delete_collection_namespaced_kube_virt**](docs/DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +*DefaultApi* | [**delete_collection_namespaced_kube_virt**](docs/DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | -*DefaultApi* | [**delete_namespaced_kube_virt**](docs/DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_namespaced_virtual_machine**](docs/DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_namespaced_kube_virt**](docs/DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_namespaced_virtual_machine**](docs/DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**filesystemlist**](docs/DefaultApi.md#filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | *DefaultApi* | [**func1**](docs/DefaultApi.md#func1) | **GET** /healthz | *DefaultApi* | [**func7**](docs/DefaultApi.md#func7) | **GET** /openapi/v2 | *DefaultApi* | [**get_api_group_kubevirt_io**](docs/DefaultApi.md#get_api_group_kubevirt_io) | **GET** /apis/kubevirt.io/ | *DefaultApi* | [**get_api_group_list**](docs/DefaultApi.md#get_api_group_list) | **GET** /apis | *DefaultApi* | [**get_api_group_snapshot_kubevirt_io**](docs/DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | -*DefaultApi* | [**get_api_resources_kubevirt_io_v1alpha3**](docs/DefaultApi.md#get_api_resources_kubevirt_io_v1alpha3) | **GET** /apis/kubevirt.io/v1alpha3/ | +*DefaultApi* | [**get_api_resources_kubevirt_io_v1**](docs/DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | *DefaultApi* | [**get_api_resources_snapshot_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_snapshot_kubevirt_io_v1alpha1) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/ | -*DefaultApi* | [**get_api_sub_resources**](docs/DefaultApi.md#get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1alpha3/ | *DefaultApi* | [**get_root_paths**](docs/DefaultApi.md#get_root_paths) | **GET** / | -*DefaultApi* | [**get_sub_api_group**](docs/DefaultApi.md#get_sub_api_group) | **GET** /apis/subresources.kubevirt.io | -*DefaultApi* | [**guestosinfo**](docs/DefaultApi.md#guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | -*DefaultApi* | [**list_kube_virt_for_all_namespaces**](docs/DefaultApi.md#list_kube_virt_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/kubevirt | -*DefaultApi* | [**list_namespaced_kube_virt**](docs/DefaultApi.md#list_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | -*DefaultApi* | [**list_namespaced_virtual_machine**](docs/DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | -*DefaultApi* | [**list_namespaced_virtual_machine_instance**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | -*DefaultApi* | [**list_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | -*DefaultApi* | [**list_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | -*DefaultApi* | [**list_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +*DefaultApi* | [**list_kube_virt_for_all_namespaces**](docs/DefaultApi.md#list_kube_virt_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/kubevirt | +*DefaultApi* | [**list_namespaced_kube_virt**](docs/DefaultApi.md#list_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | +*DefaultApi* | [**list_namespaced_virtual_machine**](docs/DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +*DefaultApi* | [**list_namespaced_virtual_machine_instance**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | +*DefaultApi* | [**list_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | +*DefaultApi* | [**list_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | +*DefaultApi* | [**list_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | *DefaultApi* | [**list_namespaced_virtual_machine_restore**](docs/DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**list_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**list_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | -*DefaultApi* | [**list_virtual_machine_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachines | -*DefaultApi* | [**list_virtual_machine_instance_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstances | -*DefaultApi* | [**list_virtual_machine_instance_migration_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancemigrations | -*DefaultApi* | [**list_virtual_machine_instance_preset_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancepresets | -*DefaultApi* | [**list_virtual_machine_instance_replica_set_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancereplicasets | +*DefaultApi* | [**list_virtual_machine_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachines | +*DefaultApi* | [**list_virtual_machine_instance_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstances | +*DefaultApi* | [**list_virtual_machine_instance_migration_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancemigrations | +*DefaultApi* | [**list_virtual_machine_instance_preset_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancepresets | +*DefaultApi* | [**list_virtual_machine_instance_replica_set_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancereplicasets | *DefaultApi* | [**list_virtual_machine_restore_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_restore_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores | *DefaultApi* | [**list_virtual_machine_snapshot_content_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents | *DefaultApi* | [**list_virtual_machine_snapshot_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots | -*DefaultApi* | [**migrate**](docs/DefaultApi.md#migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | -*DefaultApi* | [**patch_namespaced_kube_virt**](docs/DefaultApi.md#patch_namespaced_kube_virt) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_namespaced_virtual_machine**](docs/DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_namespaced_kube_virt**](docs/DefaultApi.md#patch_namespaced_kube_virt) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_namespaced_virtual_machine**](docs/DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**pause**](docs/DefaultApi.md#pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | -*DefaultApi* | [**read_namespaced_kube_virt**](docs/DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_namespaced_virtual_machine**](docs/DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_namespaced_virtual_machine_instance**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_namespaced_kube_virt**](docs/DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_namespaced_virtual_machine**](docs/DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_namespaced_virtual_machine_instance**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_restore**](docs/DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**rename**](docs/DefaultApi.md#rename) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/rename | -*DefaultApi* | [**replace_namespaced_kube_virt**](docs/DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_namespaced_virtual_machine**](docs/DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_namespaced_virtual_machine_instance**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_namespaced_kube_virt**](docs/DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_namespaced_virtual_machine**](docs/DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_namespaced_virtual_machine_instance**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_restore**](docs/DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**restart**](docs/DefaultApi.md#restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | -*DefaultApi* | [**start**](docs/DefaultApi.md#start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | -*DefaultApi* | [**stop**](docs/DefaultApi.md#stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | -*DefaultApi* | [**test**](docs/DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test | -*DefaultApi* | [**unpause**](docs/DefaultApi.md#unpause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause | -*DefaultApi* | [**userlist**](docs/DefaultApi.md#userlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | -*DefaultApi* | [**version**](docs/DefaultApi.md#version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | -*DefaultApi* | [**vm_addvolume**](docs/DefaultApi.md#vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | -*DefaultApi* | [**vm_removevolume**](docs/DefaultApi.md#vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | -*DefaultApi* | [**vmi_addvolume**](docs/DefaultApi.md#vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | -*DefaultApi* | [**vmi_removevolume**](docs/DefaultApi.md#vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | -*DefaultApi* | [**vnc**](docs/DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | -*DefaultApi* | [**watch_kube_virt_list_for_all_namespaces**](docs/DefaultApi.md#watch_kube_virt_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/kubevirt | -*DefaultApi* | [**watch_namespaced_kube_virt**](docs/DefaultApi.md#watch_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | -*DefaultApi* | [**watch_namespaced_virtual_machine**](docs/DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | -*DefaultApi* | [**watch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | -*DefaultApi* | [**watch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | -*DefaultApi* | [**watch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | -*DefaultApi* | [**watch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +*DefaultApi* | [**v1_check_health**](docs/DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | +*DefaultApi* | [**v1_console**](docs/DefaultApi.md#v1_console) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | +*DefaultApi* | [**v1_filesystemlist**](docs/DefaultApi.md#v1_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | +*DefaultApi* | [**v1_guestosinfo**](docs/DefaultApi.md#v1_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | +*DefaultApi* | [**v1_migrate**](docs/DefaultApi.md#v1_migrate) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | +*DefaultApi* | [**v1_pause**](docs/DefaultApi.md#v1_pause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | +*DefaultApi* | [**v1_rename**](docs/DefaultApi.md#v1_rename) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/rename | +*DefaultApi* | [**v1_restart**](docs/DefaultApi.md#v1_restart) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | +*DefaultApi* | [**v1_start**](docs/DefaultApi.md#v1_start) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | +*DefaultApi* | [**v1_stop**](docs/DefaultApi.md#v1_stop) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | +*DefaultApi* | [**v1_test**](docs/DefaultApi.md#v1_test) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test | +*DefaultApi* | [**v1_unpause**](docs/DefaultApi.md#v1_unpause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause | +*DefaultApi* | [**v1_userlist**](docs/DefaultApi.md#v1_userlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | +*DefaultApi* | [**v1_version**](docs/DefaultApi.md#v1_version) | **GET** /apis/subresources.kubevirt.io/v1/version | +*DefaultApi* | [**v1_vnc**](docs/DefaultApi.md#v1_vnc) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | +*DefaultApi* | [**v1alpha3_check_health**](docs/DefaultApi.md#v1alpha3_check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha3/healthz | +*DefaultApi* | [**v1alpha3_console**](docs/DefaultApi.md#v1alpha3_console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | +*DefaultApi* | [**v1alpha3_filesystemlist**](docs/DefaultApi.md#v1alpha3_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | +*DefaultApi* | [**v1alpha3_get_sub_api_group**](docs/DefaultApi.md#v1alpha3_get_sub_api_group) | **GET** /apis/subresources.kubevirt.io | +*DefaultApi* | [**v1alpha3_guestosinfo**](docs/DefaultApi.md#v1alpha3_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | +*DefaultApi* | [**v1alpha3_migrate**](docs/DefaultApi.md#v1alpha3_migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | +*DefaultApi* | [**v1alpha3_pause**](docs/DefaultApi.md#v1alpha3_pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | +*DefaultApi* | [**v1alpha3_rename**](docs/DefaultApi.md#v1alpha3_rename) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/rename | +*DefaultApi* | [**v1alpha3_restart**](docs/DefaultApi.md#v1alpha3_restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | +*DefaultApi* | [**v1alpha3_start**](docs/DefaultApi.md#v1alpha3_start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | +*DefaultApi* | [**v1alpha3_stop**](docs/DefaultApi.md#v1alpha3_stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | +*DefaultApi* | [**v1alpha3_test**](docs/DefaultApi.md#v1alpha3_test) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test | +*DefaultApi* | [**v1alpha3_unpause**](docs/DefaultApi.md#v1alpha3_unpause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause | +*DefaultApi* | [**v1alpha3_userlist**](docs/DefaultApi.md#v1alpha3_userlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | +*DefaultApi* | [**v1alpha3_version**](docs/DefaultApi.md#v1alpha3_version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | +*DefaultApi* | [**v1alpha3_vnc**](docs/DefaultApi.md#v1alpha3_vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | +*DefaultApi* | [**v1alpha3get_api_sub_resources**](docs/DefaultApi.md#v1alpha3get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1alpha3/ | +*DefaultApi* | [**v1alpha3vm_addvolume**](docs/DefaultApi.md#v1alpha3vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | +*DefaultApi* | [**v1alpha3vm_removevolume**](docs/DefaultApi.md#v1alpha3vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | +*DefaultApi* | [**v1alpha3vmi_addvolume**](docs/DefaultApi.md#v1alpha3vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | +*DefaultApi* | [**v1alpha3vmi_removevolume**](docs/DefaultApi.md#v1alpha3vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | +*DefaultApi* | [**v1get_api_sub_resources**](docs/DefaultApi.md#v1get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1/ | +*DefaultApi* | [**v1vm_addvolume**](docs/DefaultApi.md#v1vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | +*DefaultApi* | [**v1vm_removevolume**](docs/DefaultApi.md#v1vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | +*DefaultApi* | [**v1vmi_addvolume**](docs/DefaultApi.md#v1vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | +*DefaultApi* | [**v1vmi_removevolume**](docs/DefaultApi.md#v1vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | +*DefaultApi* | [**watch_kube_virt_list_for_all_namespaces**](docs/DefaultApi.md#watch_kube_virt_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/kubevirt | +*DefaultApi* | [**watch_namespaced_kube_virt**](docs/DefaultApi.md#watch_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | +*DefaultApi* | [**watch_namespaced_virtual_machine**](docs/DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +*DefaultApi* | [**watch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | +*DefaultApi* | [**watch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | +*DefaultApi* | [**watch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | +*DefaultApi* | [**watch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | *DefaultApi* | [**watch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**watch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**watch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | -*DefaultApi* | [**watch_virtual_machine_instance_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstances | -*DefaultApi* | [**watch_virtual_machine_instance_migration_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancemigrations | -*DefaultApi* | [**watch_virtual_machine_instance_preset_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancepresets | -*DefaultApi* | [**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancereplicasets | -*DefaultApi* | [**watch_virtual_machine_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachines | +*DefaultApi* | [**watch_virtual_machine_instance_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstances | +*DefaultApi* | [**watch_virtual_machine_instance_migration_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancemigrations | +*DefaultApi* | [**watch_virtual_machine_instance_preset_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancepresets | +*DefaultApi* | [**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancereplicasets | +*DefaultApi* | [**watch_virtual_machine_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachines | *DefaultApi* | [**watch_virtual_machine_restore_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_restore_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinerestores | *DefaultApi* | [**watch_virtual_machine_snapshot_content_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_snapshot_content_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshotcontents | *DefaultApi* | [**watch_virtual_machine_snapshot_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_snapshot_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshots | diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 32063d76..2f833275 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -4,218 +4,147 @@ All URIs are relative to *https://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**check_health**](DefaultApi.md#check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha3/healthz | -[**console**](DefaultApi.md#console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | -[**create_namespaced_kube_virt**](DefaultApi.md#create_namespaced_kube_virt) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | -[**create_namespaced_virtual_machine**](DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | -[**create_namespaced_virtual_machine_instance**](DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | -[**create_namespaced_virtual_machine_instance_migration**](DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | -[**create_namespaced_virtual_machine_instance_preset**](DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | -[**create_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +[**create_namespaced_kube_virt**](DefaultApi.md#create_namespaced_kube_virt) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | +[**create_namespaced_virtual_machine**](DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +[**create_namespaced_virtual_machine_instance**](DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | +[**create_namespaced_virtual_machine_instance_migration**](DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | +[**create_namespaced_virtual_machine_instance_preset**](DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | +[**create_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | [**create_namespaced_virtual_machine_restore**](DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**create_namespaced_virtual_machine_snapshot**](DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**create_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | -[**delete_collection_namespaced_kube_virt**](DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | -[**delete_collection_namespaced_virtual_machine**](DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | -[**delete_collection_namespaced_virtual_machine_instance**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | -[**delete_collection_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | -[**delete_collection_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | -[**delete_collection_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +[**delete_collection_namespaced_kube_virt**](DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | +[**delete_collection_namespaced_virtual_machine**](DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +[**delete_collection_namespaced_virtual_machine_instance**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | +[**delete_collection_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | +[**delete_collection_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | +[**delete_collection_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | [**delete_collection_namespaced_virtual_machine_restore**](DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**delete_collection_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**delete_collection_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | -[**delete_namespaced_kube_virt**](DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_namespaced_virtual_machine**](DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_namespaced_virtual_machine_instance**](DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_namespaced_kube_virt**](DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_namespaced_virtual_machine**](DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_namespaced_virtual_machine_instance**](DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_restore**](DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | -[**filesystemlist**](DefaultApi.md#filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | [**func1**](DefaultApi.md#func1) | **GET** /healthz | [**func7**](DefaultApi.md#func7) | **GET** /openapi/v2 | [**get_api_group_kubevirt_io**](DefaultApi.md#get_api_group_kubevirt_io) | **GET** /apis/kubevirt.io/ | [**get_api_group_list**](DefaultApi.md#get_api_group_list) | **GET** /apis | [**get_api_group_snapshot_kubevirt_io**](DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | -[**get_api_resources_kubevirt_io_v1alpha3**](DefaultApi.md#get_api_resources_kubevirt_io_v1alpha3) | **GET** /apis/kubevirt.io/v1alpha3/ | +[**get_api_resources_kubevirt_io_v1**](DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | [**get_api_resources_snapshot_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_snapshot_kubevirt_io_v1alpha1) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/ | -[**get_api_sub_resources**](DefaultApi.md#get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1alpha3/ | [**get_root_paths**](DefaultApi.md#get_root_paths) | **GET** / | -[**get_sub_api_group**](DefaultApi.md#get_sub_api_group) | **GET** /apis/subresources.kubevirt.io | -[**guestosinfo**](DefaultApi.md#guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | -[**list_kube_virt_for_all_namespaces**](DefaultApi.md#list_kube_virt_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/kubevirt | -[**list_namespaced_kube_virt**](DefaultApi.md#list_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | -[**list_namespaced_virtual_machine**](DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | -[**list_namespaced_virtual_machine_instance**](DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | -[**list_namespaced_virtual_machine_instance_migration**](DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | -[**list_namespaced_virtual_machine_instance_preset**](DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | -[**list_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +[**list_kube_virt_for_all_namespaces**](DefaultApi.md#list_kube_virt_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/kubevirt | +[**list_namespaced_kube_virt**](DefaultApi.md#list_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | +[**list_namespaced_virtual_machine**](DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +[**list_namespaced_virtual_machine_instance**](DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | +[**list_namespaced_virtual_machine_instance_migration**](DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | +[**list_namespaced_virtual_machine_instance_preset**](DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | +[**list_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | [**list_namespaced_virtual_machine_restore**](DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**list_namespaced_virtual_machine_snapshot**](DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**list_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | -[**list_virtual_machine_for_all_namespaces**](DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachines | -[**list_virtual_machine_instance_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstances | -[**list_virtual_machine_instance_migration_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancemigrations | -[**list_virtual_machine_instance_preset_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancepresets | -[**list_virtual_machine_instance_replica_set_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/virtualmachineinstancereplicasets | +[**list_virtual_machine_for_all_namespaces**](DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachines | +[**list_virtual_machine_instance_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstances | +[**list_virtual_machine_instance_migration_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancemigrations | +[**list_virtual_machine_instance_preset_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancepresets | +[**list_virtual_machine_instance_replica_set_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancereplicasets | [**list_virtual_machine_restore_for_all_namespaces**](DefaultApi.md#list_virtual_machine_restore_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores | [**list_virtual_machine_snapshot_content_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents | [**list_virtual_machine_snapshot_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots | -[**migrate**](DefaultApi.md#migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | -[**patch_namespaced_kube_virt**](DefaultApi.md#patch_namespaced_kube_virt) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_namespaced_virtual_machine**](DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_namespaced_virtual_machine_instance**](DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_namespaced_kube_virt**](DefaultApi.md#patch_namespaced_kube_virt) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_namespaced_virtual_machine**](DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_namespaced_virtual_machine_instance**](DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_restore**](DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_snapshot**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | -[**pause**](DefaultApi.md#pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | -[**read_namespaced_kube_virt**](DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | -[**read_namespaced_virtual_machine**](DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | -[**read_namespaced_virtual_machine_instance**](DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | -[**read_namespaced_virtual_machine_instance_migration**](DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | -[**read_namespaced_virtual_machine_instance_preset**](DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | -[**read_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +[**read_namespaced_kube_virt**](DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | +[**read_namespaced_virtual_machine**](DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +[**read_namespaced_virtual_machine_instance**](DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | +[**read_namespaced_virtual_machine_instance_migration**](DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | +[**read_namespaced_virtual_machine_instance_preset**](DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | +[**read_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_restore**](DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_snapshot**](DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | -[**rename**](DefaultApi.md#rename) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/rename | -[**replace_namespaced_kube_virt**](DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_namespaced_virtual_machine**](DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_namespaced_virtual_machine_instance**](DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_namespaced_virtual_machine_instance_migration**](DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_namespaced_virtual_machine_instance_preset**](DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_namespaced_kube_virt**](DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_namespaced_virtual_machine**](DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_namespaced_virtual_machine_instance**](DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_namespaced_virtual_machine_instance_migration**](DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_namespaced_virtual_machine_instance_preset**](DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_restore**](DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_snapshot**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | -[**restart**](DefaultApi.md#restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | -[**start**](DefaultApi.md#start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | -[**stop**](DefaultApi.md#stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | -[**test**](DefaultApi.md#test) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test | -[**unpause**](DefaultApi.md#unpause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause | -[**userlist**](DefaultApi.md#userlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | -[**version**](DefaultApi.md#version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | -[**vm_addvolume**](DefaultApi.md#vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | -[**vm_removevolume**](DefaultApi.md#vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | -[**vmi_addvolume**](DefaultApi.md#vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | -[**vmi_removevolume**](DefaultApi.md#vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | -[**vnc**](DefaultApi.md#vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | -[**watch_kube_virt_list_for_all_namespaces**](DefaultApi.md#watch_kube_virt_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/kubevirt | -[**watch_namespaced_kube_virt**](DefaultApi.md#watch_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | -[**watch_namespaced_virtual_machine**](DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | -[**watch_namespaced_virtual_machine_instance**](DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | -[**watch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | -[**watch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | -[**watch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +[**v1_check_health**](DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | +[**v1_console**](DefaultApi.md#v1_console) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | +[**v1_filesystemlist**](DefaultApi.md#v1_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | +[**v1_guestosinfo**](DefaultApi.md#v1_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | +[**v1_migrate**](DefaultApi.md#v1_migrate) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | +[**v1_pause**](DefaultApi.md#v1_pause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | +[**v1_rename**](DefaultApi.md#v1_rename) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/rename | +[**v1_restart**](DefaultApi.md#v1_restart) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | +[**v1_start**](DefaultApi.md#v1_start) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | +[**v1_stop**](DefaultApi.md#v1_stop) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | +[**v1_test**](DefaultApi.md#v1_test) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test | +[**v1_unpause**](DefaultApi.md#v1_unpause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause | +[**v1_userlist**](DefaultApi.md#v1_userlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | +[**v1_version**](DefaultApi.md#v1_version) | **GET** /apis/subresources.kubevirt.io/v1/version | +[**v1_vnc**](DefaultApi.md#v1_vnc) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | +[**v1alpha3_check_health**](DefaultApi.md#v1alpha3_check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha3/healthz | +[**v1alpha3_console**](DefaultApi.md#v1alpha3_console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | +[**v1alpha3_filesystemlist**](DefaultApi.md#v1alpha3_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | +[**v1alpha3_get_sub_api_group**](DefaultApi.md#v1alpha3_get_sub_api_group) | **GET** /apis/subresources.kubevirt.io | +[**v1alpha3_guestosinfo**](DefaultApi.md#v1alpha3_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | +[**v1alpha3_migrate**](DefaultApi.md#v1alpha3_migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | +[**v1alpha3_pause**](DefaultApi.md#v1alpha3_pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | +[**v1alpha3_rename**](DefaultApi.md#v1alpha3_rename) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/rename | +[**v1alpha3_restart**](DefaultApi.md#v1alpha3_restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | +[**v1alpha3_start**](DefaultApi.md#v1alpha3_start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | +[**v1alpha3_stop**](DefaultApi.md#v1alpha3_stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | +[**v1alpha3_test**](DefaultApi.md#v1alpha3_test) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test | +[**v1alpha3_unpause**](DefaultApi.md#v1alpha3_unpause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause | +[**v1alpha3_userlist**](DefaultApi.md#v1alpha3_userlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | +[**v1alpha3_version**](DefaultApi.md#v1alpha3_version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | +[**v1alpha3_vnc**](DefaultApi.md#v1alpha3_vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | +[**v1alpha3get_api_sub_resources**](DefaultApi.md#v1alpha3get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1alpha3/ | +[**v1alpha3vm_addvolume**](DefaultApi.md#v1alpha3vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | +[**v1alpha3vm_removevolume**](DefaultApi.md#v1alpha3vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | +[**v1alpha3vmi_addvolume**](DefaultApi.md#v1alpha3vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | +[**v1alpha3vmi_removevolume**](DefaultApi.md#v1alpha3vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | +[**v1get_api_sub_resources**](DefaultApi.md#v1get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1/ | +[**v1vm_addvolume**](DefaultApi.md#v1vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | +[**v1vm_removevolume**](DefaultApi.md#v1vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | +[**v1vmi_addvolume**](DefaultApi.md#v1vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | +[**v1vmi_removevolume**](DefaultApi.md#v1vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | +[**watch_kube_virt_list_for_all_namespaces**](DefaultApi.md#watch_kube_virt_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/kubevirt | +[**watch_namespaced_kube_virt**](DefaultApi.md#watch_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | +[**watch_namespaced_virtual_machine**](DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +[**watch_namespaced_virtual_machine_instance**](DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | +[**watch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | +[**watch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | +[**watch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | [**watch_namespaced_virtual_machine_restore**](DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**watch_namespaced_virtual_machine_snapshot**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**watch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | -[**watch_virtual_machine_instance_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstances | -[**watch_virtual_machine_instance_migration_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancemigrations | -[**watch_virtual_machine_instance_preset_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancepresets | -[**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancereplicasets | -[**watch_virtual_machine_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1alpha3/watch/virtualmachines | +[**watch_virtual_machine_instance_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstances | +[**watch_virtual_machine_instance_migration_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancemigrations | +[**watch_virtual_machine_instance_preset_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancepresets | +[**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancereplicasets | +[**watch_virtual_machine_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachines | [**watch_virtual_machine_restore_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_restore_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinerestores | [**watch_virtual_machine_snapshot_content_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_snapshot_content_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshotcontents | [**watch_virtual_machine_snapshot_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_snapshot_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshots | -# **check_health** -> str check_health() - - - -Health endpoint - -### Example -```python -from __future__ import print_function -import time -import kubevirt -from kubevirt.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = kubevirt.DefaultApi() - -try: - api_response = api_instance.check_health() - pprint(api_response) -except ApiException as e: - print("Exception when calling DefaultApi->check_health: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -**str** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **console** -> console(name, namespace) - - - -Open a websocket connection to a serial console on the specified VirtualMachineInstance. - -### Example -```python -from __future__ import print_function -import time -import kubevirt -from kubevirt.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = kubevirt.DefaultApi() -name = 'name_example' # str | Name of the resource -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects - -try: - api_instance.console(name, namespace) -except ApiException as e: - print("Exception when calling DefaultApi->console: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Name of the resource | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | - -### Return type - -void (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **create_namespaced_kube_virt** > V1KubeVirt create_namespaced_kube_virt(body, namespace) @@ -1719,49 +1648,6 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **filesystemlist** -> V1VirtualMachineInstanceFileSystemList filesystemlist() - - - -Get list of active filesystems on guest machine via guest agent - -### Example -```python -from __future__ import print_function -import time -import kubevirt -from kubevirt.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = kubevirt.DefaultApi() - -try: - api_response = api_instance.filesystemlist() - pprint(api_response) -except ApiException as e: - print("Exception when calling DefaultApi->filesystemlist: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1VirtualMachineInstanceFileSystemList**](V1VirtualMachineInstanceFileSystemList.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **func1** > func1() @@ -1973,8 +1859,8 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_api_resources_kubevirt_io_v1alpha3** -> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_kubevirt_io_v1alpha3() +# **get_api_resources_kubevirt_io_v1** +> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_kubevirt_io_v1() @@ -1992,10 +1878,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() try: - api_response = api_instance.get_api_resources_kubevirt_io_v1alpha3() + api_response = api_instance.get_api_resources_kubevirt_io_v1() pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->get_api_resources_kubevirt_io_v1alpha3: %s\n" % e) + print("Exception when calling DefaultApi->get_api_resources_kubevirt_io_v1: %s\n" % e) ``` ### Parameters @@ -2059,49 +1945,6 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_api_sub_resources** -> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_sub_resources() - - - -Get a KubeVirt API resources - -### Example -```python -from __future__ import print_function -import time -import kubevirt -from kubevirt.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = kubevirt.DefaultApi() - -try: - api_response = api_instance.get_api_sub_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling DefaultApi->get_api_sub_resources: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**K8sIoApimachineryPkgApisMetaV1APIResourceList**](K8sIoApimachineryPkgApisMetaV1APIResourceList.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **get_root_paths** > K8sIoApimachineryPkgApisMetaV1RootPaths get_root_paths() @@ -2145,98 +1988,6 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_sub_api_group** -> K8sIoApimachineryPkgApisMetaV1APIGroup get_sub_api_group() - - - -Get a KubeVirt API Group - -### Example -```python -from __future__ import print_function -import time -import kubevirt -from kubevirt.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = kubevirt.DefaultApi() - -try: - api_response = api_instance.get_sub_api_group() - pprint(api_response) -except ApiException as e: - print("Exception when calling DefaultApi->get_sub_api_group: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**K8sIoApimachineryPkgApisMetaV1APIGroup**](K8sIoApimachineryPkgApisMetaV1APIGroup.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **guestosinfo** -> V1VirtualMachineInstanceGuestAgentInfo guestosinfo(name, namespace) - - - -Get guest agent os information - -### Example -```python -from __future__ import print_function -import time -import kubevirt -from kubevirt.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = kubevirt.DefaultApi() -name = 'name_example' # str | Name of the resource -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects - -try: - api_response = api_instance.guestosinfo(name, namespace) - pprint(api_response) -except ApiException as e: - print("Exception when calling DefaultApi->guestosinfo: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Name of the resource | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | - -### Return type - -[**V1VirtualMachineInstanceGuestAgentInfo**](V1VirtualMachineInstanceGuestAgentInfo.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **list_kube_virt_for_all_namespaces** > V1KubeVirtList list_kube_virt_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -3353,12 +3104,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **migrate** -> str migrate(name, namespace) +# **patch_namespaced_kube_virt** +> V1KubeVirt patch_namespaced_kube_virt(name, namespace, body) -Migrate a running VirtualMachine to another node. +Patch a KubeVirt object. ### Example ```python @@ -3372,12 +3123,13 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | try: - api_response = api_instance.migrate(name, namespace) + api_response = api_instance.patch_namespaced_kube_virt(name, namespace, body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->migrate: %s\n" % e) + print("Exception when calling DefaultApi->patch_namespaced_kube_virt: %s\n" % e) ``` ### Parameters @@ -3386,61 +3138,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**K8sIoApimachineryPkgApisMetaV1Patch**](K8sIoApimachineryPkgApisMetaV1Patch.md)| | ### Return type -**str** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **patch_namespaced_kube_virt** -> V1KubeVirt patch_namespaced_kube_virt(name, namespace, body) - - - -Patch a KubeVirt object. - -### Example -```python -from __future__ import print_function -import time -import kubevirt -from kubevirt.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = kubevirt.DefaultApi() -name = 'name_example' # str | Name of the resource -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | - -try: - api_response = api_instance.patch_namespaced_kube_virt(name, namespace, body) - pprint(api_response) -except ApiException as e: - print("Exception when calling DefaultApi->patch_namespaced_kube_virt: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Name of the resource | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**K8sIoApimachineryPkgApisMetaV1Patch**](K8sIoApimachineryPkgApisMetaV1Patch.md)| | - -### Return type - -[**V1KubeVirt**](V1KubeVirt.md) +[**V1KubeVirt**](V1KubeVirt.md) ### Authorization @@ -3861,55 +3563,6 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **pause** -> str pause(name, namespace) - - - -Pause a VirtualMachineInstance object. - -### Example -```python -from __future__ import print_function -import time -import kubevirt -from kubevirt.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = kubevirt.DefaultApi() -name = 'name_example' # str | Name of the resource -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects - -try: - api_response = api_instance.pause(name, namespace) - pprint(api_response) -except ApiException as e: - print("Exception when calling DefaultApi->pause: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Name of the resource | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | - -### Return type - -**str** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **read_namespaced_kube_virt** > V1KubeVirt read_namespaced_kube_virt(name, namespace, exact=exact, export=export) @@ -4387,55 +4040,6 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **rename** -> str rename(name, namespace) - - - -Rename a stopped VirtualMachine object. - -### Example -```python -from __future__ import print_function -import time -import kubevirt -from kubevirt.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = kubevirt.DefaultApi() -name = 'name_example' # str | Name of the resource -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects - -try: - api_response = api_instance.rename(name, namespace) - pprint(api_response) -except ApiException as e: - print("Exception when calling DefaultApi->rename: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Name of the resource | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | - -### Return type - -**str** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **replace_namespaced_kube_virt** > V1KubeVirt replace_namespaced_kube_virt(name, namespace, body) @@ -4895,12 +4499,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **restart** -> str restart(name, namespace, body=body) +# **v1_check_health** +> str v1_check_health() -Restart a VirtualMachine object. +Health endpoint ### Example ```python @@ -4912,24 +4516,16 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() -name = 'name_example' # str | Name of the resource -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1RestartOptions() # V1RestartOptions | (optional) try: - api_response = api_instance.restart(name, namespace, body=body) + api_response = api_instance.v1_check_health() pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->restart: %s\n" % e) + print("Exception when calling DefaultApi->v1_check_health: %s\n" % e) ``` ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Name of the resource | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1RestartOptions**](V1RestartOptions.md)| | [optional] +This endpoint does not need any parameter. ### Return type @@ -4941,17 +4537,17 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: Not defined + - **Content-Type**: application/json + - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start** -> str start(name, namespace) +# **v1_console** +> v1_console(name, namespace) -Start a VirtualMachine object. +Open a websocket connection to a serial console on the specified VirtualMachineInstance. ### Example ```python @@ -4967,10 +4563,9 @@ name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - api_response = api_instance.start(name, namespace) - pprint(api_response) + api_instance.v1_console(name, namespace) except ApiException as e: - print("Exception when calling DefaultApi->start: %s\n" % e) + print("Exception when calling DefaultApi->v1_console: %s\n" % e) ``` ### Parameters @@ -4982,7 +4577,7 @@ Name | Type | Description | Notes ### Return type -**str** +void (empty response body) ### Authorization @@ -4995,12 +4590,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **stop** -> str stop(name, namespace) +# **v1_filesystemlist** +> V1VirtualMachineInstanceFileSystemList v1_filesystemlist() -Stop a VirtualMachine object. +Get list of active filesystems on guest machine via guest agent ### Example ```python @@ -5012,26 +4607,20 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() -name = 'name_example' # str | Name of the resource -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - api_response = api_instance.stop(name, namespace) + api_response = api_instance.v1_filesystemlist() pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->stop: %s\n" % e) + print("Exception when calling DefaultApi->v1_filesystemlist: %s\n" % e) ``` ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Name of the resource | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | +This endpoint does not need any parameter. ### Return type -**str** +[**V1VirtualMachineInstanceFileSystemList**](V1VirtualMachineInstanceFileSystemList.md) ### Authorization @@ -5039,17 +4628,17 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: Not defined + - **Content-Type**: application/json + - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **test** -> test(name, namespace) +# **v1_guestosinfo** +> V1VirtualMachineInstanceGuestAgentInfo v1_guestosinfo(name, namespace) -Test endpoint verifying apiserver connectivity. +Get guest agent os information ### Example ```python @@ -5065,9 +4654,10 @@ name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - api_instance.test(name, namespace) + api_response = api_instance.v1_guestosinfo(name, namespace) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->test: %s\n" % e) + print("Exception when calling DefaultApi->v1_guestosinfo: %s\n" % e) ``` ### Parameters @@ -5079,7 +4669,7 @@ Name | Type | Description | Notes ### Return type -void (empty response body) +[**V1VirtualMachineInstanceGuestAgentInfo**](V1VirtualMachineInstanceGuestAgentInfo.md) ### Authorization @@ -5087,17 +4677,17 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: Not defined + - **Content-Type**: application/json + - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **unpause** -> str unpause(name, namespace) +# **v1_migrate** +> str v1_migrate(name, namespace) -Unpause a VirtualMachineInstance object. +Migrate a running VirtualMachine to another node. ### Example ```python @@ -5113,10 +4703,10 @@ name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - api_response = api_instance.unpause(name, namespace) + api_response = api_instance.v1_migrate(name, namespace) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->unpause: %s\n" % e) + print("Exception when calling DefaultApi->v1_migrate: %s\n" % e) ``` ### Parameters @@ -5141,12 +4731,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **userlist** -> V1VirtualMachineInstanceGuestOSUserList userlist() +# **v1_pause** +> str v1_pause(name, namespace) -Get list of active users via guest agent +Pause a VirtualMachineInstance object. ### Example ```python @@ -5158,20 +4748,26 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - api_response = api_instance.userlist() + api_response = api_instance.v1_pause(name, namespace) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->userlist: %s\n" % e) + print("Exception when calling DefaultApi->v1_pause: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1VirtualMachineInstanceGuestOSUserList**](V1VirtualMachineInstanceGuestOSUserList.md) +**str** ### Authorization @@ -5179,16 +4775,18 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json + - **Content-Type**: Not defined + - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **version** -> version() +# **v1_rename** +> str v1_rename(name, namespace) +Rename a stopped VirtualMachine object. + ### Example ```python from __future__ import print_function @@ -5199,19 +4797,26 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - api_instance.version() + api_response = api_instance.v1_rename(name, namespace) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->version: %s\n" % e) + print("Exception when calling DefaultApi->v1_rename: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -void (empty response body) +**str** ### Authorization @@ -5220,16 +4825,16 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **vm_addvolume** -> str vm_addvolume(name, namespace) +# **v1_restart** +> str v1_restart(name, namespace, body=body) -Add a volume and disk to a running Virtual Machine. +Restart a VirtualMachine object. ### Example ```python @@ -5243,12 +4848,13 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1RestartOptions() # V1RestartOptions | (optional) try: - api_response = api_instance.vm_addvolume(name, namespace) + api_response = api_instance.v1_restart(name, namespace, body=body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->vm_addvolume: %s\n" % e) + print("Exception when calling DefaultApi->v1_restart: %s\n" % e) ``` ### Parameters @@ -5257,6 +4863,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1RestartOptions**](V1RestartOptions.md)| | [optional] ### Return type @@ -5273,12 +4880,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **vm_removevolume** -> str vm_removevolume(name, namespace) +# **v1_start** +> str v1_start(name, namespace) -Removes a volume and disk from a running Virtual Machine. +Start a VirtualMachine object. ### Example ```python @@ -5294,10 +4901,10 @@ name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - api_response = api_instance.vm_removevolume(name, namespace) + api_response = api_instance.v1_start(name, namespace) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->vm_removevolume: %s\n" % e) + print("Exception when calling DefaultApi->v1_start: %s\n" % e) ``` ### Parameters @@ -5322,12 +4929,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **vmi_addvolume** -> str vmi_addvolume(name, namespace) +# **v1_stop** +> str v1_stop(name, namespace) -Add a volume and disk to a running Virtual Machine Instance +Stop a VirtualMachine object. ### Example ```python @@ -5343,10 +4950,10 @@ name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - api_response = api_instance.vmi_addvolume(name, namespace) + api_response = api_instance.v1_stop(name, namespace) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->vmi_addvolume: %s\n" % e) + print("Exception when calling DefaultApi->v1_stop: %s\n" % e) ``` ### Parameters @@ -5371,12 +4978,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **vmi_removevolume** -> str vmi_removevolume(name, namespace) +# **v1_test** +> v1_test(name, namespace) -Removes a volume and disk from a running Virtual Machine Instance +Test endpoint verifying apiserver connectivity. ### Example ```python @@ -5392,10 +4999,9 @@ name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - api_response = api_instance.vmi_removevolume(name, namespace) - pprint(api_response) + api_instance.v1_test(name, namespace) except ApiException as e: - print("Exception when calling DefaultApi->vmi_removevolume: %s\n" % e) + print("Exception when calling DefaultApi->v1_test: %s\n" % e) ``` ### Parameters @@ -5407,7 +5013,7 @@ Name | Type | Description | Notes ### Return type -**str** +void (empty response body) ### Authorization @@ -5420,12 +5026,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **vnc** -> vnc(name, namespace) +# **v1_unpause** +> str v1_unpause(name, namespace) -Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. +Unpause a VirtualMachineInstance object. ### Example ```python @@ -5441,9 +5047,10 @@ name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - api_instance.vnc(name, namespace) + api_response = api_instance.v1_unpause(name, namespace) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->vnc: %s\n" % e) + print("Exception when calling DefaultApi->v1_unpause: %s\n" % e) ``` ### Parameters @@ -5455,7 +5062,1366 @@ Name | Type | Description | Notes ### Return type -void (empty response body) +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1_userlist** +> V1VirtualMachineInstanceGuestOSUserList v1_userlist() + + + +Get list of active users via guest agent + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.v1_userlist() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1_userlist: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1VirtualMachineInstanceGuestOSUserList**](V1VirtualMachineInstanceGuestOSUserList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1_version** +> v1_version() + + + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_instance.v1_version() +except ApiException as e: + print("Exception when calling DefaultApi->v1_version: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1_vnc** +> v1_vnc(name, namespace) + + + +Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_instance.v1_vnc(name, namespace) +except ApiException as e: + print("Exception when calling DefaultApi->v1_vnc: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1alpha3_check_health** +> str v1alpha3_check_health() + + + +Health endpoint + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.v1alpha3_check_health() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_check_health: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1alpha3_console** +> v1alpha3_console(name, namespace) + + + +Open a websocket connection to a serial console on the specified VirtualMachineInstance. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_instance.v1alpha3_console(name, namespace) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_console: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1alpha3_filesystemlist** +> V1VirtualMachineInstanceFileSystemList v1alpha3_filesystemlist() + + + +Get list of active filesystems on guest machine via guest agent + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.v1alpha3_filesystemlist() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_filesystemlist: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1VirtualMachineInstanceFileSystemList**](V1VirtualMachineInstanceFileSystemList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1alpha3_get_sub_api_group** +> K8sIoApimachineryPkgApisMetaV1APIGroup v1alpha3_get_sub_api_group() + + + +Get a KubeVirt API Group + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.v1alpha3_get_sub_api_group() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_get_sub_api_group: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1APIGroup**](K8sIoApimachineryPkgApisMetaV1APIGroup.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1alpha3_guestosinfo** +> V1VirtualMachineInstanceGuestAgentInfo v1alpha3_guestosinfo(name, namespace) + + + +Get guest agent os information + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1alpha3_guestosinfo(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_guestosinfo: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +[**V1VirtualMachineInstanceGuestAgentInfo**](V1VirtualMachineInstanceGuestAgentInfo.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1alpha3_migrate** +> str v1alpha3_migrate(name, namespace) + + + +Migrate a running VirtualMachine to another node. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1alpha3_migrate(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_migrate: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1alpha3_pause** +> str v1alpha3_pause(name, namespace) + + + +Pause a VirtualMachineInstance object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1alpha3_pause(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_pause: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1alpha3_rename** +> str v1alpha3_rename(name, namespace) + + + +Rename a stopped VirtualMachine object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1alpha3_rename(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_rename: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1alpha3_restart** +> str v1alpha3_restart(name, namespace, body=body) + + + +Restart a VirtualMachine object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1RestartOptions() # V1RestartOptions | (optional) + +try: + api_response = api_instance.v1alpha3_restart(name, namespace, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_restart: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1RestartOptions**](V1RestartOptions.md)| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1alpha3_start** +> str v1alpha3_start(name, namespace) + + + +Start a VirtualMachine object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1alpha3_start(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_start: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1alpha3_stop** +> str v1alpha3_stop(name, namespace) + + + +Stop a VirtualMachine object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1alpha3_stop(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_stop: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1alpha3_test** +> v1alpha3_test(name, namespace) + + + +Test endpoint verifying apiserver connectivity. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_instance.v1alpha3_test(name, namespace) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_test: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1alpha3_unpause** +> str v1alpha3_unpause(name, namespace) + + + +Unpause a VirtualMachineInstance object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1alpha3_unpause(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_unpause: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1alpha3_userlist** +> V1VirtualMachineInstanceGuestOSUserList v1alpha3_userlist() + + + +Get list of active users via guest agent + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.v1alpha3_userlist() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_userlist: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1VirtualMachineInstanceGuestOSUserList**](V1VirtualMachineInstanceGuestOSUserList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1alpha3_version** +> v1alpha3_version() + + + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_instance.v1alpha3_version() +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_version: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1alpha3_vnc** +> v1alpha3_vnc(name, namespace) + + + +Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_instance.v1alpha3_vnc(name, namespace) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_vnc: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1alpha3get_api_sub_resources** +> K8sIoApimachineryPkgApisMetaV1APIResourceList v1alpha3get_api_sub_resources() + + + +Get a KubeVirt API resources + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.v1alpha3get_api_sub_resources() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3get_api_sub_resources: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1APIResourceList**](K8sIoApimachineryPkgApisMetaV1APIResourceList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1alpha3vm_addvolume** +> str v1alpha3vm_addvolume(name, namespace) + + + +Add a volume and disk to a running Virtual Machine. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1alpha3vm_addvolume(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3vm_addvolume: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1alpha3vm_removevolume** +> str v1alpha3vm_removevolume(name, namespace) + + + +Removes a volume and disk from a running Virtual Machine. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1alpha3vm_removevolume(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3vm_removevolume: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1alpha3vmi_addvolume** +> str v1alpha3vmi_addvolume(name, namespace) + + + +Add a volume and disk to a running Virtual Machine Instance + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1alpha3vmi_addvolume(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3vmi_addvolume: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1alpha3vmi_removevolume** +> str v1alpha3vmi_removevolume(name, namespace) + + + +Removes a volume and disk from a running Virtual Machine Instance + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1alpha3vmi_removevolume(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3vmi_removevolume: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1get_api_sub_resources** +> K8sIoApimachineryPkgApisMetaV1APIResourceList v1get_api_sub_resources() + + + +Get a KubeVirt API resources + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.v1get_api_sub_resources() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1get_api_sub_resources: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1APIResourceList**](K8sIoApimachineryPkgApisMetaV1APIResourceList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1vm_addvolume** +> str v1vm_addvolume(name, namespace) + + + +Add a volume and disk to a running Virtual Machine. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1vm_addvolume(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1vm_addvolume: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1vm_removevolume** +> str v1vm_removevolume(name, namespace) + + + +Removes a volume and disk from a running Virtual Machine. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1vm_removevolume(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1vm_removevolume: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1vmi_addvolume** +> str v1vmi_addvolume(name, namespace) + + + +Add a volume and disk to a running Virtual Machine Instance + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1vmi_addvolume(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1vmi_addvolume: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1vmi_removevolume** +> str v1vmi_removevolume(name, namespace) + + + +Removes a volume and disk from a running Virtual Machine Instance + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1vmi_removevolume(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1vmi_removevolume: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** ### Authorization diff --git a/git_push.sh b/git_push.sh index 82918f0e..1c56b3f1 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.35.0-287-g7cc7ed50" + release_note="Auto-generated client v0.36.0-rc.0-54-g610ff693" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index d4a988a9..09120e12 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.35.0-287-g7cc7ed50/python' + self.user_agent = 'Swagger-Codegen/v0.36.0-rc.0-54-g610ff693/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index a50f9543..ca932383 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -40,205 +40,6 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def check_health(self, **kwargs): - """ - Health endpoint - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.check_health(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.check_health_with_http_info(**kwargs) - else: - (data) = self.check_health_with_http_info(**kwargs) - return data - - def check_health_with_http_info(self, **kwargs): - """ - Health endpoint - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.check_health_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method check_health" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/healthz', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def console(self, name, namespace, **kwargs): - """ - Open a websocket connection to a serial console on the specified VirtualMachineInstance. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.console(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.console_with_http_info(name, namespace, **kwargs) - else: - (data) = self.console_with_http_info(name, namespace, **kwargs) - return data - - def console_with_http_info(self, name, namespace, **kwargs): - """ - Open a websocket connection to a serial console on the specified VirtualMachineInstance. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.console_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method console" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `console`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `console`") - - - collection_formats = {} - - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - def create_namespaced_kube_virt(self, body, namespace, **kwargs): """ Create a KubeVirt object. @@ -335,7 +136,7 @@ def create_namespaced_kube_virt_with_http_info(self, body, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt', 'POST', path_params, query_params, header_params, @@ -446,7 +247,7 @@ def create_namespaced_virtual_machine_with_http_info(self, body, namespace, **kw # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'POST', path_params, query_params, header_params, @@ -557,7 +358,7 @@ def create_namespaced_virtual_machine_instance_with_http_info(self, body, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'POST', path_params, query_params, header_params, @@ -668,7 +469,7 @@ def create_namespaced_virtual_machine_instance_migration_with_http_info(self, bo # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'POST', path_params, query_params, header_params, @@ -779,7 +580,7 @@ def create_namespaced_virtual_machine_instance_preset_with_http_info(self, body, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'POST', path_params, query_params, header_params, @@ -890,7 +691,7 @@ def create_namespaced_virtual_machine_instance_replica_set_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'POST', path_params, query_params, header_params, @@ -1348,7 +1149,7 @@ def delete_collection_namespaced_kube_virt_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt', 'DELETE', path_params, query_params, header_params, @@ -1473,7 +1274,7 @@ def delete_collection_namespaced_virtual_machine_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'DELETE', path_params, query_params, header_params, @@ -1598,7 +1399,7 @@ def delete_collection_namespaced_virtual_machine_instance_with_http_info(self, * # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'DELETE', path_params, query_params, header_params, @@ -1723,7 +1524,7 @@ def delete_collection_namespaced_virtual_machine_instance_migration_with_http_in # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'DELETE', path_params, query_params, header_params, @@ -1848,7 +1649,7 @@ def delete_collection_namespaced_virtual_machine_instance_preset_with_http_info( # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'DELETE', path_params, query_params, header_params, @@ -1973,7 +1774,7 @@ def delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_ # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'DELETE', path_params, query_params, header_params, @@ -2478,7 +2279,7 @@ def delete_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kw # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -2608,7 +2409,7 @@ def delete_namespaced_virtual_machine_with_http_info(self, name, namespace, body # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -2738,7 +2539,7 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -2868,7 +2669,7 @@ def delete_namespaced_virtual_machine_instance_migration_with_http_info(self, na # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -2998,7 +2799,7 @@ def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, name, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -3128,7 +2929,7 @@ def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -3533,44 +3334,44 @@ def delete_namespaced_virtual_machine_snapshot_content_with_http_info(self, name _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def filesystemlist(self, **kwargs): + def func1(self, **kwargs): """ - Get list of active filesystems on guest machine via guest agent + Health endpoint This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.filesystemlist(callback=callback_function) + >>> thread = api.func1(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1VirtualMachineInstanceFileSystemList + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.filesystemlist_with_http_info(**kwargs) + return self.func1_with_http_info(**kwargs) else: - (data) = self.filesystemlist_with_http_info(**kwargs) + (data) = self.func1_with_http_info(**kwargs) return data - def filesystemlist_with_http_info(self, **kwargs): + def func1_with_http_info(self, **kwargs): """ - Get list of active filesystems on guest machine via guest agent + Health endpoint This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.filesystemlist_with_http_info(callback=callback_function) + >>> thread = api.func1_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1VirtualMachineInstanceFileSystemList + :return: None If the method is called asynchronously, returns the request thread. """ @@ -3586,7 +3387,7 @@ def filesystemlist_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method filesystemlist" % key + " to method func1" % key ) params[key] = val del params['kwargs'] @@ -3603,25 +3404,17 @@ def filesystemlist_with_http_info(self, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist', 'GET', + return self.api_client.call_api('/healthz', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceFileSystemList', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3629,16 +3422,15 @@ def filesystemlist_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def func1(self, **kwargs): + def func7(self, **kwargs): """ - Health endpoint This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.func1(callback=callback_function) + >>> thread = api.func7(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3648,21 +3440,20 @@ def func1(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.func1_with_http_info(**kwargs) + return self.func7_with_http_info(**kwargs) else: - (data) = self.func1_with_http_info(**kwargs) + (data) = self.func7_with_http_info(**kwargs) return data - def func1_with_http_info(self, **kwargs): + def func7_with_http_info(self, **kwargs): """ - Health endpoint This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.func1_with_http_info(callback=callback_function) + >>> thread = api.func7_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3682,7 +3473,7 @@ def func1_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method func1" % key + " to method func7" % key ) params[key] = val del params['kwargs'] @@ -3699,10 +3490,18 @@ def func1_with_http_info(self, **kwargs): local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/healthz', 'GET', + return self.api_client.call_api('/openapi/v2', 'GET', path_params, query_params, header_params, @@ -3717,42 +3516,44 @@ def func1_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def func7(self, **kwargs): + def get_api_group_kubevirt_io(self, **kwargs): """ + Get a KubeVirt API group This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.func7(callback=callback_function) + >>> thread = api.get_api_group_kubevirt_io(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :return: K8sIoApimachineryPkgApisMetaV1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.func7_with_http_info(**kwargs) + return self.get_api_group_kubevirt_io_with_http_info(**kwargs) else: - (data) = self.func7_with_http_info(**kwargs) + (data) = self.get_api_group_kubevirt_io_with_http_info(**kwargs) return data - def func7_with_http_info(self, **kwargs): + def get_api_group_kubevirt_io_with_http_info(self, **kwargs): """ + Get a KubeVirt API group This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.func7_with_http_info(callback=callback_function) + >>> thread = api.get_api_group_kubevirt_io_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :return: K8sIoApimachineryPkgApisMetaV1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -3768,103 +3569,7 @@ def func7_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method func7" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/openapi/v2', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_group_kubevirt_io(self, **kwargs): - """ - Get a KubeVirt API group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_api_group_kubevirt_io(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_api_group_kubevirt_io_with_http_info(**kwargs) - else: - (data) = self.get_api_group_kubevirt_io_with_http_info(**kwargs) - return data - - def get_api_group_kubevirt_io_with_http_info(self, **kwargs): - """ - Get a KubeVirt API group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_api_group_kubevirt_io_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_group_kubevirt_io" % key + " to method get_api_group_kubevirt_io" % key ) params[key] = val del params['kwargs'] @@ -4087,7 +3792,7 @@ def get_api_group_snapshot_kubevirt_io_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_resources_kubevirt_io_v1alpha3(self, **kwargs): + def get_api_resources_kubevirt_io_v1(self, **kwargs): """ Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an @@ -4096,7 +3801,7 @@ def get_api_resources_kubevirt_io_v1alpha3(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_kubevirt_io_v1alpha3(callback=callback_function) + >>> thread = api.get_api_resources_kubevirt_io_v1(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4106,12 +3811,12 @@ def get_api_resources_kubevirt_io_v1alpha3(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_resources_kubevirt_io_v1alpha3_with_http_info(**kwargs) + return self.get_api_resources_kubevirt_io_v1_with_http_info(**kwargs) else: - (data) = self.get_api_resources_kubevirt_io_v1alpha3_with_http_info(**kwargs) + (data) = self.get_api_resources_kubevirt_io_v1_with_http_info(**kwargs) return data - def get_api_resources_kubevirt_io_v1alpha3_with_http_info(self, **kwargs): + def get_api_resources_kubevirt_io_v1_with_http_info(self, **kwargs): """ Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an @@ -4120,7 +3825,7 @@ def get_api_resources_kubevirt_io_v1alpha3_with_http_info(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_kubevirt_io_v1alpha3_with_http_info(callback=callback_function) + >>> thread = api.get_api_resources_kubevirt_io_v1_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4140,7 +3845,7 @@ def get_api_resources_kubevirt_io_v1alpha3_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_resources_kubevirt_io_v1alpha3" % key + " to method get_api_resources_kubevirt_io_v1" % key ) params[key] = val del params['kwargs'] @@ -4164,7 +3869,7 @@ def get_api_resources_kubevirt_io_v1alpha3_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/', 'GET', path_params, query_params, header_params, @@ -4271,44 +3976,44 @@ def get_api_resources_snapshot_kubevirt_io_v1alpha1_with_http_info(self, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_sub_resources(self, **kwargs): + def get_root_paths(self, **kwargs): """ - Get a KubeVirt API resources + Get KubeVirt API root paths This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_sub_resources(callback=callback_function) + >>> thread = api.get_root_paths(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1APIResourceList + :return: K8sIoApimachineryPkgApisMetaV1RootPaths If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_sub_resources_with_http_info(**kwargs) + return self.get_root_paths_with_http_info(**kwargs) else: - (data) = self.get_api_sub_resources_with_http_info(**kwargs) + (data) = self.get_root_paths_with_http_info(**kwargs) return data - def get_api_sub_resources_with_http_info(self, **kwargs): + def get_root_paths_with_http_info(self, **kwargs): """ - Get a KubeVirt API resources + Get KubeVirt API root paths This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_sub_resources_with_http_info(callback=callback_function) + >>> thread = api.get_root_paths_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1APIResourceList + :return: K8sIoApimachineryPkgApisMetaV1RootPaths If the method is called asynchronously, returns the request thread. """ @@ -4324,7 +4029,7 @@ def get_api_sub_resources_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_sub_resources" % key + " to method get_root_paths" % key ) params[key] = val del params['kwargs'] @@ -4348,14 +4053,14 @@ def get_api_sub_resources_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/', 'GET', + return self.api_client.call_api('/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='K8sIoApimachineryPkgApisMetaV1APIResourceList', + response_type='K8sIoApimachineryPkgApisMetaV1RootPaths', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4363,49 +4068,65 @@ def get_api_sub_resources_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_root_paths(self, **kwargs): + def list_kube_virt_for_all_namespaces(self, **kwargs): """ - Get KubeVirt API root paths + Get a list of all KubeVirt objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_root_paths(callback=callback_function) + >>> thread = api.list_kube_virt_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1RootPaths + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1KubeVirtList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_root_paths_with_http_info(**kwargs) + return self.list_kube_virt_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.get_root_paths_with_http_info(**kwargs) + (data) = self.list_kube_virt_for_all_namespaces_with_http_info(**kwargs) return data - def get_root_paths_with_http_info(self, **kwargs): + def list_kube_virt_for_all_namespaces_with_http_info(self, **kwargs): """ - Get KubeVirt API root paths + Get a list of all KubeVirt objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_root_paths_with_http_info(callback=callback_function) + >>> thread = api.list_kube_virt_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1RootPaths + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1KubeVirtList If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4416,16 +4137,33 @@ def get_root_paths_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_root_paths" % key + " to method list_kube_virt_for_all_namespaces" % key ) params[key] = val del params['kwargs'] + collection_formats = {} path_params = {} query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) header_params = {} @@ -4435,19 +4173,19 @@ def get_root_paths_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/kubevirt', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='K8sIoApimachineryPkgApisMetaV1RootPaths', + response_type='V1KubeVirtList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4455,49 +4193,67 @@ def get_root_paths_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_sub_api_group(self, **kwargs): + def list_namespaced_kube_virt(self, namespace, **kwargs): """ - Get a KubeVirt API Group + Get a list of KubeVirt objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_sub_api_group(callback=callback_function) + >>> thread = api.list_namespaced_kube_virt(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1APIGroup + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1KubeVirtList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_sub_api_group_with_http_info(**kwargs) + return self.list_namespaced_kube_virt_with_http_info(namespace, **kwargs) else: - (data) = self.get_sub_api_group_with_http_info(**kwargs) + (data) = self.list_namespaced_kube_virt_with_http_info(namespace, **kwargs) return data - def get_sub_api_group_with_http_info(self, **kwargs): + def list_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): """ - Get a KubeVirt API Group + Get a list of KubeVirt objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_sub_api_group_with_http_info(callback=callback_function) + >>> thread = api.list_namespaced_kube_virt_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1APIGroup + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1KubeVirtList If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4508,16 +4264,38 @@ def get_sub_api_group_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_sub_api_group" % key + " to method list_namespaced_kube_virt" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_kube_virt`") + collection_formats = {} path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) header_params = {} @@ -4527,19 +4305,19 @@ def get_sub_api_group_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='K8sIoApimachineryPkgApisMetaV1APIGroup', + response_type='V1KubeVirtList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4547,53 +4325,67 @@ def get_sub_api_group_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def guestosinfo(self, name, namespace, **kwargs): + def list_namespaced_virtual_machine(self, namespace, **kwargs): """ - Get guest agent os information + Get a list of VirtualMachine objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.guestosinfo(name, namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachineInstanceGuestAgentInfo + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.guestosinfo_with_http_info(name, namespace, **kwargs) + return self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) else: - (data) = self.guestosinfo_with_http_info(name, namespace, **kwargs) + (data) = self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) return data - def guestosinfo_with_http_info(self, name, namespace, **kwargs): + def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): """ - Get guest agent os information + Get a list of VirtualMachine objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.guestosinfo_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachineInstanceGuestAgentInfo + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineList If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4604,27 +4396,38 @@ def guestosinfo_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method guestosinfo" % key + " to method list_namespaced_virtual_machine" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `guestosinfo`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `guestosinfo`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine`") collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) header_params = {} @@ -4634,23 +4437,19 @@ def guestosinfo_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceGuestAgentInfo', + response_type='V1VirtualMachineList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4658,19 +4457,20 @@ def guestosinfo_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_kube_virt_for_all_namespaces(self, **kwargs): + def list_namespaced_virtual_machine_instance(self, namespace, **kwargs): """ - Get a list of all KubeVirt objects. + Get a list of VirtualMachineInstance objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_kube_virt_for_all_namespaces(callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -4679,30 +4479,31 @@ def list_kube_virt_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1KubeVirtList + :return: V1VirtualMachineInstanceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_kube_virt_for_all_namespaces_with_http_info(**kwargs) + return self.list_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) else: - (data) = self.list_kube_virt_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) return data - def list_kube_virt_for_all_namespaces_with_http_info(self, **kwargs): + def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **kwargs): """ - Get a list of all KubeVirt objects. + Get a list of VirtualMachineInstance objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_kube_virt_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -4711,12 +4512,12 @@ def list_kube_virt_for_all_namespaces_with_http_info(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1KubeVirtList + :return: V1VirtualMachineInstanceList If the method is called asynchronously, returns the request thread. """ - all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4727,15 +4528,20 @@ def list_kube_virt_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_kube_virt_for_all_namespaces" % key + " to method list_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance`") collection_formats = {} path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -4768,14 +4574,14 @@ def list_kube_virt_for_all_namespaces_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/kubevirt', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1KubeVirtList', + response_type='V1VirtualMachineInstanceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4783,16 +4589,16 @@ def list_kube_virt_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_kube_virt(self, namespace, **kwargs): + def list_namespaced_virtual_machine_instance_migration(self, namespace, **kwargs): """ - Get a list of KubeVirt objects. + Get a list of VirtualMachineInstanceMigration objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_kube_virt(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_migration(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4805,27 +4611,27 @@ def list_namespaced_kube_virt(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1KubeVirtList + :return: V1VirtualMachineInstanceMigrationList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_kube_virt_with_http_info(namespace, **kwargs) + return self.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_kube_virt_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) return data - def list_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): + def list_namespaced_virtual_machine_instance_migration_with_http_info(self, namespace, **kwargs): """ - Get a list of KubeVirt objects. + Get a list of VirtualMachineInstanceMigration objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_kube_virt_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4838,7 +4644,7 @@ def list_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1KubeVirtList + :return: V1VirtualMachineInstanceMigrationList If the method is called asynchronously, returns the request thread. """ @@ -4854,13 +4660,13 @@ def list_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_kube_virt" % key + " to method list_namespaced_virtual_machine_instance_migration" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_kube_virt`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_migration`") collection_formats = {} @@ -4900,14 +4706,14 @@ def list_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1KubeVirtList', + response_type='V1VirtualMachineInstanceMigrationList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4915,16 +4721,16 @@ def list_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine(self, namespace, **kwargs): + def list_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): """ - Get a list of VirtualMachine objects. + Get a list of VirtualMachineInstancePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_preset(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4937,27 +4743,27 @@ def list_namespaced_virtual_machine(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :return: V1VirtualMachineInstancePresetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + return self.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) return data - def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): + def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespace, **kwargs): """ - Get a list of VirtualMachine objects. + Get a list of VirtualMachineInstancePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4970,7 +4776,7 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :return: V1VirtualMachineInstancePresetList If the method is called asynchronously, returns the request thread. """ @@ -4986,13 +4792,13 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine" % key + " to method list_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_preset`") collection_formats = {} @@ -5032,14 +4838,14 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineList', + response_type='V1VirtualMachineInstancePresetList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5047,16 +4853,16 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_instance(self, namespace, **kwargs): + def list_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwargs): """ - Get a list of VirtualMachineInstance objects. + Get a list of VirtualMachineInstanceReplicaSet objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_replica_set(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5069,27 +4875,27 @@ def list_namespaced_virtual_machine_instance(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceList + :return: V1VirtualMachineInstanceReplicaSetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) + return self.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) return data - def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **kwargs): + def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, namespace, **kwargs): """ - Get a list of VirtualMachineInstance objects. + Get a list of VirtualMachineInstanceReplicaSet objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5102,7 +4908,7 @@ def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **k :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceList + :return: V1VirtualMachineInstanceReplicaSetList If the method is called asynchronously, returns the request thread. """ @@ -5118,13 +4924,13 @@ def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_instance" % key + " to method list_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_replica_set`") collection_formats = {} @@ -5164,14 +4970,14 @@ def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **k # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceList', + response_type='V1VirtualMachineInstanceReplicaSetList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5179,16 +4985,16 @@ def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_instance_migration(self, namespace, **kwargs): + def list_namespaced_virtual_machine_restore(self, namespace, **kwargs): """ - Get a list of VirtualMachineInstanceMigration objects. + Get a list of VirtualMachineRestore objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_migration(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_restore(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5201,27 +5007,27 @@ def list_namespaced_virtual_machine_instance_migration(self, namespace, **kwargs :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceMigrationList + :return: V1alpha1VirtualMachineRestoreList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) + return self.list_namespaced_virtual_machine_restore_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_virtual_machine_restore_with_http_info(namespace, **kwargs) return data - def list_namespaced_virtual_machine_instance_migration_with_http_info(self, namespace, **kwargs): + def list_namespaced_virtual_machine_restore_with_http_info(self, namespace, **kwargs): """ - Get a list of VirtualMachineInstanceMigration objects. + Get a list of VirtualMachineRestore objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_restore_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5234,7 +5040,7 @@ def list_namespaced_virtual_machine_instance_migration_with_http_info(self, name :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceMigrationList + :return: V1alpha1VirtualMachineRestoreList If the method is called asynchronously, returns the request thread. """ @@ -5250,13 +5056,13 @@ def list_namespaced_virtual_machine_instance_migration_with_http_info(self, name if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_instance_migration" % key + " to method list_namespaced_virtual_machine_restore" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_restore`") collection_formats = {} @@ -5296,14 +5102,14 @@ def list_namespaced_virtual_machine_instance_migration_with_http_info(self, name # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceMigrationList', + response_type='V1alpha1VirtualMachineRestoreList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5311,16 +5117,16 @@ def list_namespaced_virtual_machine_instance_migration_with_http_info(self, name _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): + def list_namespaced_virtual_machine_snapshot(self, namespace, **kwargs): """ - Get a list of VirtualMachineInstancePreset objects. + Get a list of VirtualMachineSnapshot objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_preset(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_snapshot(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5333,27 +5139,27 @@ def list_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstancePresetList + :return: V1alpha1VirtualMachineSnapshotList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) + return self.list_namespaced_virtual_machine_snapshot_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_virtual_machine_snapshot_with_http_info(namespace, **kwargs) return data - def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespace, **kwargs): + def list_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, **kwargs): """ - Get a list of VirtualMachineInstancePreset objects. + Get a list of VirtualMachineSnapshot objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_snapshot_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5366,7 +5172,7 @@ def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespa :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstancePresetList + :return: V1alpha1VirtualMachineSnapshotList If the method is called asynchronously, returns the request thread. """ @@ -5382,13 +5188,13 @@ def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_instance_preset" % key + " to method list_namespaced_virtual_machine_snapshot" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_snapshot`") collection_formats = {} @@ -5428,14 +5234,14 @@ def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstancePresetList', + response_type='V1alpha1VirtualMachineSnapshotList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5443,16 +5249,16 @@ def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwargs): + def list_namespaced_virtual_machine_snapshot_content(self, namespace, **kwargs): """ - Get a list of VirtualMachineInstanceReplicaSet objects. + Get a list of VirtualMachineSnapshotContent objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_replica_set(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_snapshot_content(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5465,27 +5271,27 @@ def list_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwar :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceReplicaSetList + :return: V1alpha1VirtualMachineSnapshotContentList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) + return self.list_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, **kwargs) return data - def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, namespace, **kwargs): + def list_namespaced_virtual_machine_snapshot_content_with_http_info(self, namespace, **kwargs): """ - Get a list of VirtualMachineInstanceReplicaSet objects. + Get a list of VirtualMachineSnapshotContent objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5498,7 +5304,7 @@ def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceReplicaSetList + :return: V1alpha1VirtualMachineSnapshotContentList If the method is called asynchronously, returns the request thread. """ @@ -5514,13 +5320,13 @@ def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_instance_replica_set" % key + " to method list_namespaced_virtual_machine_snapshot_content" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_snapshot_content`") collection_formats = {} @@ -5560,14 +5366,14 @@ def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceReplicaSetList', + response_type='V1alpha1VirtualMachineSnapshotContentList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5575,20 +5381,19 @@ def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_restore(self, namespace, **kwargs): + def list_virtual_machine_for_all_namespaces(self, **kwargs): """ - Get a list of VirtualMachineRestore objects. + Get a list of all VirtualMachine objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_restore(namespace, callback=callback_function) + >>> thread = api.list_virtual_machine_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -5597,31 +5402,30 @@ def list_namespaced_virtual_machine_restore(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineRestoreList + :return: V1VirtualMachineList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_restore_with_http_info(namespace, **kwargs) + return self.list_virtual_machine_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_namespaced_virtual_machine_restore_with_http_info(namespace, **kwargs) + (data) = self.list_virtual_machine_for_all_namespaces_with_http_info(**kwargs) return data - def list_namespaced_virtual_machine_restore_with_http_info(self, namespace, **kwargs): + def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): """ - Get a list of VirtualMachineRestore objects. + Get a list of all VirtualMachine objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_restore_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_virtual_machine_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -5630,12 +5434,12 @@ def list_namespaced_virtual_machine_restore_with_http_info(self, namespace, **kw :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineRestoreList + :return: V1VirtualMachineList If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5646,20 +5450,15 @@ def list_namespaced_virtual_machine_restore_with_http_info(self, namespace, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_restore" % key + " to method list_virtual_machine_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_restore`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -5692,14 +5491,14 @@ def list_namespaced_virtual_machine_restore_with_http_info(self, namespace, **kw # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/virtualmachines', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineRestoreList', + response_type='V1VirtualMachineList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5707,20 +5506,19 @@ def list_namespaced_virtual_machine_restore_with_http_info(self, namespace, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_snapshot(self, namespace, **kwargs): + def list_virtual_machine_instance_for_all_namespaces(self, **kwargs): """ - Get a list of VirtualMachineSnapshot objects. + Get a list of all VirtualMachineInstance objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_snapshot(namespace, callback=callback_function) + >>> thread = api.list_virtual_machine_instance_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -5729,31 +5527,30 @@ def list_namespaced_virtual_machine_snapshot(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotList + :return: V1VirtualMachineInstanceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_snapshot_with_http_info(namespace, **kwargs) + return self.list_virtual_machine_instance_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_namespaced_virtual_machine_snapshot_with_http_info(namespace, **kwargs) + (data) = self.list_virtual_machine_instance_for_all_namespaces_with_http_info(**kwargs) return data - def list_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, **kwargs): + def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwargs): """ - Get a list of VirtualMachineSnapshot objects. + Get a list of all VirtualMachineInstance objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_snapshot_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_virtual_machine_instance_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -5762,12 +5559,12 @@ def list_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, **k :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotList + :return: V1VirtualMachineInstanceList If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5778,20 +5575,15 @@ def list_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_snapshot" % key + " to method list_virtual_machine_instance_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_snapshot`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -5824,14 +5616,14 @@ def list_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, **k # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/virtualmachineinstances', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshotList', + response_type='V1VirtualMachineInstanceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5839,20 +5631,19 @@ def list_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_snapshot_content(self, namespace, **kwargs): + def list_virtual_machine_instance_migration_for_all_namespaces(self, **kwargs): """ - Get a list of VirtualMachineSnapshotContent objects. + Get a list of all VirtualMachineInstanceMigration objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_snapshot_content(namespace, callback=callback_function) + >>> thread = api.list_virtual_machine_instance_migration_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -5861,31 +5652,30 @@ def list_namespaced_virtual_machine_snapshot_content(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotContentList + :return: V1VirtualMachineInstanceMigrationList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, **kwargs) + return self.list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, **kwargs) + (data) = self.list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(**kwargs) return data - def list_namespaced_virtual_machine_snapshot_content_with_http_info(self, namespace, **kwargs): + def list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(self, **kwargs): """ - Get a list of VirtualMachineSnapshotContent objects. + Get a list of all VirtualMachineInstanceMigration objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -5894,12 +5684,12 @@ def list_namespaced_virtual_machine_snapshot_content_with_http_info(self, namesp :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotContentList + :return: V1VirtualMachineInstanceMigrationList If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5910,20 +5700,15 @@ def list_namespaced_virtual_machine_snapshot_content_with_http_info(self, namesp if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_snapshot_content" % key + " to method list_virtual_machine_instance_migration_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_snapshot_content`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -5956,14 +5741,14 @@ def list_namespaced_virtual_machine_snapshot_content_with_http_info(self, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/virtualmachineinstancemigrations', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshotContentList', + response_type='V1VirtualMachineInstanceMigrationList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5971,16 +5756,16 @@ def list_namespaced_virtual_machine_snapshot_content_with_http_info(self, namesp _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_for_all_namespaces(self, **kwargs): + def list_virtual_machine_instance_preset_for_all_namespaces(self, **kwargs): """ - Get a list of all VirtualMachine objects. + Get a list of all VirtualMachineInstancePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_for_all_namespaces(callback=callback_function) + >>> thread = api.list_virtual_machine_instance_preset_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5992,27 +5777,27 @@ def list_virtual_machine_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :return: V1VirtualMachineInstancePresetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_for_all_namespaces_with_http_info(**kwargs) + return self.list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_virtual_machine_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(**kwargs) return data - def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): + def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, **kwargs): """ - Get a list of all VirtualMachine objects. + Get a list of all VirtualMachineInstancePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -6024,7 +5809,7 @@ def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :return: V1VirtualMachineInstancePresetList If the method is called asynchronously, returns the request thread. """ @@ -6040,7 +5825,7 @@ def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_for_all_namespaces" % key + " to method list_virtual_machine_instance_preset_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -6081,14 +5866,14 @@ def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/virtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/virtualmachineinstancepresets', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineList', + response_type='V1VirtualMachineInstancePresetList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6096,16 +5881,16 @@ def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_instance_for_all_namespaces(self, **kwargs): + def list_virtual_machine_instance_replica_set_for_all_namespaces(self, **kwargs): """ - Get a list of all VirtualMachineInstance objects. + Get a list of all VirtualMachineInstanceReplicaSet objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_for_all_namespaces(callback=callback_function) + >>> thread = api.list_virtual_machine_instance_replica_set_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -6117,27 +5902,27 @@ def list_virtual_machine_instance_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceList + :return: V1VirtualMachineInstanceReplicaSetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_instance_for_all_namespaces_with_http_info(**kwargs) + return self.list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_virtual_machine_instance_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(**kwargs) return data - def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwargs): + def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(self, **kwargs): """ - Get a list of all VirtualMachineInstance objects. + Get a list of all VirtualMachineInstanceReplicaSet objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -6149,7 +5934,7 @@ def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwar :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceList + :return: V1VirtualMachineInstanceReplicaSetList If the method is called asynchronously, returns the request thread. """ @@ -6165,7 +5950,7 @@ def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwar if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_instance_for_all_namespaces" % key + " to method list_virtual_machine_instance_replica_set_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -6206,14 +5991,14 @@ def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwar # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/virtualmachineinstances', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceList', + response_type='V1VirtualMachineInstanceReplicaSetList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6221,16 +6006,16 @@ def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_instance_migration_for_all_namespaces(self, **kwargs): + def list_virtual_machine_restore_for_all_namespaces(self, **kwargs): """ - Get a list of all VirtualMachineInstanceMigration objects. + Get a list of all VirtualMachineRestore objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_migration_for_all_namespaces(callback=callback_function) + >>> thread = api.list_virtual_machine_restore_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -6242,27 +6027,27 @@ def list_virtual_machine_instance_migration_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceMigrationList + :return: V1alpha1VirtualMachineRestoreList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(**kwargs) + return self.list_virtual_machine_restore_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_virtual_machine_restore_for_all_namespaces_with_http_info(**kwargs) return data - def list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(self, **kwargs): + def list_virtual_machine_restore_for_all_namespaces_with_http_info(self, **kwargs): """ - Get a list of all VirtualMachineInstanceMigration objects. + Get a list of all VirtualMachineRestore objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_virtual_machine_restore_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -6274,7 +6059,7 @@ def list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(se :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceMigrationList + :return: V1alpha1VirtualMachineRestoreList If the method is called asynchronously, returns the request thread. """ @@ -6290,7 +6075,7 @@ def list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(se if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_instance_migration_for_all_namespaces" % key + " to method list_virtual_machine_restore_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -6331,14 +6116,14 @@ def list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(se # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/virtualmachineinstancemigrations', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceMigrationList', + response_type='V1alpha1VirtualMachineRestoreList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6346,16 +6131,16 @@ def list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(se _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_instance_preset_for_all_namespaces(self, **kwargs): + def list_virtual_machine_snapshot_content_for_all_namespaces(self, **kwargs): """ - Get a list of all VirtualMachineInstancePreset objects. + Get a list of all VirtualMachineSnapshotContent objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_preset_for_all_namespaces(callback=callback_function) + >>> thread = api.list_virtual_machine_snapshot_content_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -6367,27 +6152,27 @@ def list_virtual_machine_instance_preset_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstancePresetList + :return: V1alpha1VirtualMachineSnapshotContentList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(**kwargs) + return self.list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(**kwargs) return data - def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, **kwargs): + def list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(self, **kwargs): """ - Get a list of all VirtualMachineInstancePreset objects. + Get a list of all VirtualMachineSnapshotContent objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -6399,7 +6184,7 @@ def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstancePresetList + :return: V1alpha1VirtualMachineSnapshotContentList If the method is called asynchronously, returns the request thread. """ @@ -6415,7 +6200,7 @@ def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_instance_preset_for_all_namespaces" % key + " to method list_virtual_machine_snapshot_content_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -6456,14 +6241,14 @@ def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstancePresetList', + response_type='V1alpha1VirtualMachineSnapshotContentList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6471,16 +6256,16 @@ def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_instance_replica_set_for_all_namespaces(self, **kwargs): + def list_virtual_machine_snapshot_for_all_namespaces(self, **kwargs): """ - Get a list of all VirtualMachineInstanceReplicaSet objects. + Get a list of all VirtualMachineSnapshot objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_replica_set_for_all_namespaces(callback=callback_function) + >>> thread = api.list_virtual_machine_snapshot_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -6492,27 +6277,27 @@ def list_virtual_machine_instance_replica_set_for_all_namespaces(self, **kwargs) :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceReplicaSetList + :return: V1alpha1VirtualMachineSnapshotList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(**kwargs) + return self.list_virtual_machine_snapshot_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_virtual_machine_snapshot_for_all_namespaces_with_http_info(**kwargs) return data - def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(self, **kwargs): + def list_virtual_machine_snapshot_for_all_namespaces_with_http_info(self, **kwargs): """ - Get a list of all VirtualMachineInstanceReplicaSet objects. + Get a list of all VirtualMachineSnapshot objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_virtual_machine_snapshot_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -6524,7 +6309,7 @@ def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info( :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceReplicaSetList + :return: V1alpha1VirtualMachineSnapshotList If the method is called asynchronously, returns the request thread. """ @@ -6540,7 +6325,7 @@ def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info( if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_instance_replica_set_for_all_namespaces" % key + " to method list_virtual_machine_snapshot_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -6581,14 +6366,14 @@ def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info( # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceReplicaSetList', + response_type='V1alpha1VirtualMachineSnapshotList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6596,65 +6381,55 @@ def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info( _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_restore_for_all_namespaces(self, **kwargs): + def patch_namespaced_kube_virt(self, name, namespace, body, **kwargs): """ - Get a list of all VirtualMachineRestore objects. + Patch a KubeVirt object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_restore_for_all_namespaces(callback=callback_function) + >>> thread = api.patch_namespaced_kube_virt(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineRestoreList + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1KubeVirt If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_restore_for_all_namespaces_with_http_info(**kwargs) + return self.patch_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.list_virtual_machine_restore_for_all_namespaces_with_http_info(**kwargs) + (data) = self.patch_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) return data - def list_virtual_machine_restore_for_all_namespaces_with_http_info(self, **kwargs): + def patch_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwargs): """ - Get a list of all VirtualMachineRestore objects. + Patch a KubeVirt object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_restore_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.patch_namespaced_kube_virt_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineRestoreList + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1KubeVirt If the method is called asynchronously, returns the request thread. """ - all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6665,33 +6440,2717 @@ def list_virtual_machine_restore_for_all_namespaces_with_http_info(self, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_restore_for_all_namespaces" % key + " to method patch_namespaced_kube_virt" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_kube_virt`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_kube_virt`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_kube_virt`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1KubeVirt', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_virtual_machine(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1VirtualMachine + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1VirtualMachine + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_virtual_machine" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachine', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1VirtualMachineInstance + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1VirtualMachineInstance + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_virtual_machine_instance" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstance', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineInstanceMigration object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1VirtualMachineInstanceMigration + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineInstanceMigration object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1VirtualMachineInstanceMigration + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_virtual_machine_instance_migration" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_migration`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_migration`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_migration`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceMigration', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_virtual_machine_instance_preset(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineInstancePreset object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_instance_preset(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1VirtualMachineInstancePreset + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineInstancePreset object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1VirtualMachineInstancePreset + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_virtual_machine_instance_preset" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_preset`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_preset`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_preset`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstancePreset', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineInstanceReplicaSet object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1VirtualMachineInstanceReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineInstanceReplicaSet object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1VirtualMachineInstanceReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_virtual_machine_instance_replica_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_replica_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_replica_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_replica_set`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceReplicaSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_virtual_machine_restore(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineRestore object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_restore(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1alpha1VirtualMachineRestore + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_restore_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineRestore object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1alpha1VirtualMachineRestore + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_virtual_machine_restore" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_restore`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_restore`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_restore`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineRestore', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_virtual_machine_snapshot(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineSnapshot object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_snapshot(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1alpha1VirtualMachineSnapshot + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineSnapshot object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1alpha1VirtualMachineSnapshot + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_virtual_machine_snapshot" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_snapshot`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_snapshot`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_snapshot`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineSnapshot', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_virtual_machine_snapshot_content(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineSnapshotContent object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_snapshot_content(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1alpha1VirtualMachineSnapshotContent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineSnapshotContent object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1alpha1VirtualMachineSnapshotContent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_virtual_machine_snapshot_content" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_snapshot_content`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_snapshot_content`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_snapshot_content`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineSnapshotContent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_kube_virt(self, name, namespace, **kwargs): + """ + Get a KubeVirt object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_kube_virt(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1KubeVirt + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_kube_virt_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_kube_virt_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_kube_virt_with_http_info(self, name, namespace, **kwargs): + """ + Get a KubeVirt object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_kube_virt_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1KubeVirt + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_kube_virt" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_kube_virt`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_kube_virt`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1KubeVirt', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_virtual_machine(self, name, namespace, **kwargs): + """ + Get a VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachine + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_virtual_machine_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_virtual_machine_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwargs): + """ + Get a VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachine + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_virtual_machine" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachine', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_virtual_machine_instance(self, name, namespace, **kwargs): + """ + Get a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_instance(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachineInstance + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, **kwargs): + """ + Get a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachineInstance + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_virtual_machine_instance" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstance', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_virtual_machine_instance_migration(self, name, namespace, **kwargs): + """ + Get a VirtualMachineInstanceMigration object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_instance_migration(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachineInstanceMigration + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, **kwargs): + """ + Get a VirtualMachineInstanceMigration object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachineInstanceMigration + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_virtual_machine_instance_migration" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance_migration`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_migration`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceMigration', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_virtual_machine_instance_preset(self, name, namespace, **kwargs): + """ + Get a VirtualMachineInstancePreset object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_instance_preset(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachineInstancePreset + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, **kwargs): + """ + Get a VirtualMachineInstancePreset object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachineInstancePreset + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_virtual_machine_instance_preset" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance_preset`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_preset`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstancePreset', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_virtual_machine_instance_replica_set(self, name, namespace, **kwargs): + """ + Get a VirtualMachineInstanceReplicaSet object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_instance_replica_set(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachineInstanceReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, **kwargs): + """ + Get a VirtualMachineInstanceReplicaSet object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachineInstanceReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_virtual_machine_instance_replica_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance_replica_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_replica_set`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceReplicaSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_virtual_machine_restore(self, name, namespace, **kwargs): + """ + Get a VirtualMachineRestore object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_restore(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1VirtualMachineRestore + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_virtual_machine_restore_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_virtual_machine_restore_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_virtual_machine_restore_with_http_info(self, name, namespace, **kwargs): + """ + Get a VirtualMachineRestore object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_restore_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1VirtualMachineRestore + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_virtual_machine_restore" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_restore`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_restore`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineRestore', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_virtual_machine_snapshot(self, name, namespace, **kwargs): + """ + Get a VirtualMachineSnapshot object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_snapshot(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1VirtualMachineSnapshot + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespace, **kwargs): + """ + Get a VirtualMachineSnapshot object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1VirtualMachineSnapshot + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_virtual_machine_snapshot" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_snapshot`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_snapshot`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineSnapshot', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_virtual_machine_snapshot_content(self, name, namespace, **kwargs): + """ + Get a VirtualMachineSnapshotContent object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_snapshot_content(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1VirtualMachineSnapshotContent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, namespace, **kwargs): + """ + Get a VirtualMachineSnapshotContent object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1VirtualMachineSnapshotContent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_virtual_machine_snapshot_content" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_snapshot_content`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_snapshot_content`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineSnapshotContent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_kube_virt(self, name, namespace, body, **kwargs): + """ + Update a KubeVirt object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_kube_virt(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1KubeVirt body: (required) + :return: V1KubeVirt + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwargs): + """ + Update a KubeVirt object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_kube_virt_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1KubeVirt body: (required) + :return: V1KubeVirt + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_kube_virt" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_kube_virt`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_kube_virt`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_kube_virt`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1KubeVirt', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_virtual_machine(self, name, namespace, body, **kwargs): + """ + Update a VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_virtual_machine(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachine body: (required) + :return: V1VirtualMachine + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): + """ + Update a VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachine body: (required) + :return: V1VirtualMachine + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_virtual_machine" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachine', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): + """ + Update a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachineInstance body: (required) + :return: V1VirtualMachineInstance + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): + """ + Update a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachineInstance body: (required) + :return: V1VirtualMachineInstance + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_virtual_machine_instance" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstance', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): + """ + Update a VirtualMachineInstanceMigration object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachineInstanceMigration body: (required) + :return: V1VirtualMachineInstanceMigration + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, body, **kwargs): + """ + Update a VirtualMachineInstanceMigration object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachineInstanceMigration body: (required) + :return: V1VirtualMachineInstanceMigration + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_virtual_machine_instance_migration" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_migration`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_migration`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_migration`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceMigration', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_virtual_machine_instance_preset(self, name, namespace, body, **kwargs): + """ + Update a VirtualMachineInstancePreset object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_virtual_machine_instance_preset(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachineInstancePreset body: (required) + :return: V1VirtualMachineInstancePreset + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, body, **kwargs): + """ + Update a VirtualMachineInstancePreset object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachineInstancePreset body: (required) + :return: V1VirtualMachineInstancePreset + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_virtual_machine_instance_preset" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_preset`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_preset`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_preset`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstancePreset', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): + """ + Update a VirtualMachineInstanceReplicaSet object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachineInstanceReplicaSet body: (required) + :return: V1VirtualMachineInstanceReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): + """ + Update a VirtualMachineInstanceReplicaSet object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachineInstanceReplicaSet body: (required) + :return: V1VirtualMachineInstanceReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_virtual_machine_instance_replica_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_replica_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_replica_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_replica_set`") + - collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'include_uninitialized' in params: - query_params.append(('includeUninitialized', params['include_uninitialized'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) header_params = {} @@ -6699,21 +9158,27 @@ def list_virtual_machine_restore_for_all_namespaces_with_http_info(self, **kwarg local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineRestoreList', + response_type='V1VirtualMachineInstanceReplicaSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6721,65 +9186,55 @@ def list_virtual_machine_restore_for_all_namespaces_with_http_info(self, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_snapshot_content_for_all_namespaces(self, **kwargs): + def replace_namespaced_virtual_machine_restore(self, name, namespace, body, **kwargs): """ - Get a list of all VirtualMachineSnapshotContent objects. + Update a VirtualMachineRestore object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_snapshot_content_for_all_namespaces(callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_restore(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotContentList + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1alpha1VirtualMachineRestore body: (required) + :return: V1alpha1VirtualMachineRestore If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(**kwargs) + return self.replace_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(**kwargs) + (data) = self.replace_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) return data - def list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(self, **kwargs): + def replace_namespaced_virtual_machine_restore_with_http_info(self, name, namespace, body, **kwargs): """ - Get a list of all VirtualMachineSnapshotContent objects. + Update a VirtualMachineRestore object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotContentList + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1alpha1VirtualMachineRestore body: (required) + :return: V1alpha1VirtualMachineRestore If the method is called asynchronously, returns the request thread. """ - all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6790,33 +9245,30 @@ def list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(self if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_snapshot_content_for_all_namespaces" % key + " to method replace_namespaced_virtual_machine_restore" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_restore`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_restore`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_restore`") collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'include_uninitialized' in params: - query_params.append(('includeUninitialized', params['include_uninitialized'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) header_params = {} @@ -6824,21 +9276,27 @@ def list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(self local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshotContentList', + response_type='V1alpha1VirtualMachineRestore', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6846,65 +9304,55 @@ def list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(self _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_snapshot_for_all_namespaces(self, **kwargs): + def replace_namespaced_virtual_machine_snapshot(self, name, namespace, body, **kwargs): """ - Get a list of all VirtualMachineSnapshot objects. + Update a VirtualMachineSnapshot object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_snapshot_for_all_namespaces(callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_snapshot(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotList + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1alpha1VirtualMachineSnapshot body: (required) + :return: V1alpha1VirtualMachineSnapshot If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_snapshot_for_all_namespaces_with_http_info(**kwargs) + return self.replace_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.list_virtual_machine_snapshot_for_all_namespaces_with_http_info(**kwargs) + (data) = self.replace_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) return data - def list_virtual_machine_snapshot_for_all_namespaces_with_http_info(self, **kwargs): + def replace_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespace, body, **kwargs): """ - Get a list of all VirtualMachineSnapshot objects. + Update a VirtualMachineSnapshot object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_snapshot_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotList + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1alpha1VirtualMachineSnapshot body: (required) + :return: V1alpha1VirtualMachineSnapshot If the method is called asynchronously, returns the request thread. """ - all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6915,33 +9363,30 @@ def list_virtual_machine_snapshot_for_all_namespaces_with_http_info(self, **kwar if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_snapshot_for_all_namespaces" % key + " to method replace_namespaced_virtual_machine_snapshot" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_snapshot`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_snapshot`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_snapshot`") collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'include_uninitialized' in params: - query_params.append(('includeUninitialized', params['include_uninitialized'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) header_params = {} @@ -6949,21 +9394,27 @@ def list_virtual_machine_snapshot_for_all_namespaces_with_http_info(self, **kwar local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshotList', + response_type='V1alpha1VirtualMachineSnapshot', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6971,53 +9422,55 @@ def list_virtual_machine_snapshot_for_all_namespaces_with_http_info(self, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def migrate(self, name, namespace, **kwargs): + def replace_namespaced_virtual_machine_snapshot_content(self, name, namespace, body, **kwargs): """ - Migrate a running VirtualMachine to another node. + Update a VirtualMachineSnapshotContent object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.migrate(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_snapshot_content(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :param V1alpha1VirtualMachineSnapshotContent body: (required) + :return: V1alpha1VirtualMachineSnapshotContent If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.migrate_with_http_info(name, namespace, **kwargs) + return self.replace_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.migrate_with_http_info(name, namespace, **kwargs) + (data) = self.replace_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) return data - def migrate_with_http_info(self, name, namespace, **kwargs): + def replace_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, namespace, body, **kwargs): """ - Migrate a running VirtualMachine to another node. + Update a VirtualMachineSnapshotContent object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.migrate_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :param V1alpha1VirtualMachineSnapshotContent body: (required) + :return: V1alpha1VirtualMachineSnapshotContent If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7028,16 +9481,19 @@ def migrate_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method migrate" % key + " to method replace_namespaced_virtual_machine_snapshot_content" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `migrate`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_snapshot_content`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `migrate`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_snapshot_content`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_snapshot_content`") collection_formats = {} @@ -7056,17 +9512,27 @@ def migrate_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate', 'PUT', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type='V1alpha1VirtualMachineSnapshotContent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7074,55 +9540,49 @@ def migrate_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_kube_virt(self, name, namespace, body, **kwargs): + def v1_check_health(self, **kwargs): """ - Patch a KubeVirt object. + Health endpoint This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_kube_virt(name, namespace, body, callback=callback_function) + >>> thread = api.v1_check_health(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1KubeVirt + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) + return self.v1_check_health_with_http_info(**kwargs) else: - (data) = self.patch_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1_check_health_with_http_info(**kwargs) return data - def patch_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwargs): + def v1_check_health_with_http_info(self, **kwargs): """ - Patch a KubeVirt object. + Health endpoint This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_kube_virt_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1_check_health_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1KubeVirt + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7133,28 +9593,14 @@ def patch_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_kube_virt" % key + " to method v1_check_health" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_kube_virt`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_kube_virt`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_kube_virt`") - collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] @@ -7164,27 +9610,25 @@ def patch_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwa local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + select_header_content_type(['application/json']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/healthz', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1KubeVirt', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7192,55 +9636,53 @@ def patch_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine(self, name, namespace, body, **kwargs): + def v1_console(self, name, namespace, **kwargs): """ - Patch a VirtualMachine object. + Open a websocket connection to a serial console on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine(name, namespace, body, callback=callback_function) + >>> thread = api.v1_console(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachine + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + return self.v1_console_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1_console_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): + def v1_console_with_http_info(self, name, namespace, **kwargs): """ - Patch a VirtualMachine object. + Open a websocket connection to a serial console on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1_console_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachine + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7251,19 +9693,16 @@ def patch_namespaced_virtual_machine_with_http_info(self, name, namespace, body, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine" % key + " to method v1_console" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `name` when calling `v1_console`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `v1_console`") collection_formats = {} @@ -7282,27 +9721,17 @@ def patch_namespaced_virtual_machine_with_http_info(self, name, namespace, body, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachine', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7310,55 +9739,49 @@ def patch_namespaced_virtual_machine_with_http_info(self, name, namespace, body, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): + def v1_filesystemlist(self, **kwargs): """ - Patch a VirtualMachineInstance object. + Get list of active filesystems on guest machine via guest agent This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) + >>> thread = api.v1_filesystemlist(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachineInstance + :return: V1VirtualMachineInstanceFileSystemList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + return self.v1_filesystemlist_with_http_info(**kwargs) else: - (data) = self.patch_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1_filesystemlist_with_http_info(**kwargs) return data - def patch_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): + def v1_filesystemlist_with_http_info(self, **kwargs): """ - Patch a VirtualMachineInstance object. + Get list of active filesystems on guest machine via guest agent This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1_filesystemlist_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachineInstance + :return: V1VirtualMachineInstanceFileSystemList If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7369,28 +9792,14 @@ def patch_namespaced_virtual_machine_instance_with_http_info(self, name, namespa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine_instance" % key + " to method v1_filesystemlist" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance`") - collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] @@ -7400,27 +9809,25 @@ def patch_namespaced_virtual_machine_instance_with_http_info(self, name, namespa local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + select_header_content_type(['application/json']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstance', + response_type='V1VirtualMachineInstanceFileSystemList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7428,55 +9835,53 @@ def patch_namespaced_virtual_machine_instance_with_http_info(self, name, namespa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): + def v1_guestosinfo(self, name, namespace, **kwargs): """ - Patch a VirtualMachineInstanceMigration object. + Get guest agent os information This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) + >>> thread = api.v1_guestosinfo(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachineInstanceMigration + :return: V1VirtualMachineInstanceGuestAgentInfo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + return self.v1_guestosinfo_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1_guestosinfo_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, body, **kwargs): + def v1_guestosinfo_with_http_info(self, name, namespace, **kwargs): """ - Patch a VirtualMachineInstanceMigration object. + Get guest agent os information This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1_guestosinfo_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachineInstanceMigration + :return: V1VirtualMachineInstanceGuestAgentInfo If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7487,19 +9892,16 @@ def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine_instance_migration" % key + " to method v1_guestosinfo" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `name` when calling `v1_guestosinfo`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_migration`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `namespace` when calling `v1_guestosinfo`") collection_formats = {} @@ -7518,27 +9920,25 @@ def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + select_header_content_type(['application/json']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceMigration', + response_type='V1VirtualMachineInstanceGuestAgentInfo', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7546,55 +9946,53 @@ def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_instance_preset(self, name, namespace, body, **kwargs): + def v1_migrate(self, name, namespace, **kwargs): """ - Patch a VirtualMachineInstancePreset object. + Migrate a running VirtualMachine to another node. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_preset(name, namespace, body, callback=callback_function) + >>> thread = api.v1_migrate(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachineInstancePreset + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + return self.v1_migrate_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1_migrate_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, body, **kwargs): + def v1_migrate_with_http_info(self, name, namespace, **kwargs): """ - Patch a VirtualMachineInstancePreset object. + Migrate a running VirtualMachine to another node. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1_migrate_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachineInstancePreset + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7605,19 +10003,16 @@ def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine_instance_preset" % key + " to method v1_migrate" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `name` when calling `v1_migrate`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_preset`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `v1_migrate`") collection_formats = {} @@ -7636,27 +10031,17 @@ def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstancePreset', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7664,55 +10049,53 @@ def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): + def v1_pause(self, name, namespace, **kwargs): """ - Patch a VirtualMachineInstanceReplicaSet object. + Pause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) + >>> thread = api.v1_pause(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachineInstanceReplicaSet + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + return self.v1_pause_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1_pause_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): + def v1_pause_with_http_info(self, name, namespace, **kwargs): """ - Patch a VirtualMachineInstanceReplicaSet object. + Pause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1_pause_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachineInstanceReplicaSet + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7723,19 +10106,16 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine_instance_replica_set" % key + " to method v1_pause" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `name` when calling `v1_pause`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_replica_set`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `v1_pause`") collection_formats = {} @@ -7754,27 +10134,17 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceReplicaSet', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7782,55 +10152,53 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_restore(self, name, namespace, body, **kwargs): + def v1_rename(self, name, namespace, **kwargs): """ - Patch a VirtualMachineRestore object. + Rename a stopped VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_restore(name, namespace, body, callback=callback_function) + >>> thread = api.v1_rename(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineRestore + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) + return self.v1_rename_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1_rename_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_virtual_machine_restore_with_http_info(self, name, namespace, body, **kwargs): + def v1_rename_with_http_info(self, name, namespace, **kwargs): """ - Patch a VirtualMachineRestore object. + Rename a stopped VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1_rename_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineRestore + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7841,19 +10209,16 @@ def patch_namespaced_virtual_machine_restore_with_http_info(self, name, namespac if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine_restore" % key + " to method v1_rename" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_restore`") + raise ValueError("Missing the required parameter `name` when calling `v1_rename`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_restore`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_restore`") + raise ValueError("Missing the required parameter `namespace` when calling `v1_rename`") collection_formats = {} @@ -7872,27 +10237,17 @@ def patch_namespaced_virtual_machine_restore_with_http_info(self, name, namespac local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/rename', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineRestore', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7900,50 +10255,50 @@ def patch_namespaced_virtual_machine_restore_with_http_info(self, name, namespac _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_snapshot(self, name, namespace, body, **kwargs): + def v1_restart(self, name, namespace, **kwargs): """ - Patch a VirtualMachineSnapshot object. + Restart a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_snapshot(name, namespace, body, callback=callback_function) + >>> thread = api.v1_restart(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineSnapshot + :param V1RestartOptions body: + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) + return self.v1_restart_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1_restart_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespace, body, **kwargs): + def v1_restart_with_http_info(self, name, namespace, **kwargs): """ - Patch a VirtualMachineSnapshot object. + Restart a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1_restart_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineSnapshot + :param V1RestartOptions body: + :return: str If the method is called asynchronously, returns the request thread. """ @@ -7959,19 +10314,16 @@ def patch_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine_snapshot" % key + " to method v1_restart" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_snapshot`") + raise ValueError("Missing the required parameter `name` when calling `v1_restart`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_snapshot`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_snapshot`") + raise ValueError("Missing the required parameter `namespace` when calling `v1_restart`") collection_formats = {} @@ -7992,25 +10344,17 @@ def patch_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespa body_params = None if 'body' in params: body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshot', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8018,55 +10362,53 @@ def patch_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_snapshot_content(self, name, namespace, body, **kwargs): + def v1_start(self, name, namespace, **kwargs): """ - Patch a VirtualMachineSnapshotContent object. + Start a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_snapshot_content(name, namespace, body, callback=callback_function) + >>> thread = api.v1_start(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineSnapshotContent + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) + return self.v1_start_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1_start_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, namespace, body, **kwargs): + def v1_start_with_http_info(self, name, namespace, **kwargs): """ - Patch a VirtualMachineSnapshotContent object. + Start a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1_start_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineSnapshotContent + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -8077,19 +10419,16 @@ def patch_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine_snapshot_content" % key + " to method v1_start" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_snapshot_content`") + raise ValueError("Missing the required parameter `name` when calling `v1_start`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_snapshot_content`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_snapshot_content`") + raise ValueError("Missing the required parameter `namespace` when calling `v1_start`") collection_formats = {} @@ -8108,27 +10447,17 @@ def patch_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshotContent', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8136,16 +10465,16 @@ def patch_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def pause(self, name, namespace, **kwargs): + def v1_stop(self, name, namespace, **kwargs): """ - Pause a VirtualMachineInstance object. + Stop a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.pause(name, namespace, callback=callback_function) + >>> thread = api.v1_stop(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -8157,21 +10486,21 @@ def pause(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.pause_with_http_info(name, namespace, **kwargs) + return self.v1_stop_with_http_info(name, namespace, **kwargs) else: - (data) = self.pause_with_http_info(name, namespace, **kwargs) + (data) = self.v1_stop_with_http_info(name, namespace, **kwargs) return data - def pause_with_http_info(self, name, namespace, **kwargs): + def v1_stop_with_http_info(self, name, namespace, **kwargs): """ - Pause a VirtualMachineInstance object. + Stop a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.pause_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1_stop_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -8193,16 +10522,16 @@ def pause_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method pause" % key + " to method v1_stop" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `pause`") + raise ValueError("Missing the required parameter `name` when calling `v1_stop`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `pause`") + raise ValueError("Missing the required parameter `namespace` when calling `v1_stop`") collection_formats = {} @@ -8224,7 +10553,7 @@ def pause_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop', 'PUT', path_params, query_params, header_params, @@ -8239,57 +10568,53 @@ def pause_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_kube_virt(self, name, namespace, **kwargs): + def v1_test(self, name, namespace, **kwargs): """ - Get a KubeVirt object. + Test endpoint verifying apiserver connectivity. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_kube_virt(name, namespace, callback=callback_function) + >>> thread = api.v1_test(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1KubeVirt + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_kube_virt_with_http_info(name, namespace, **kwargs) + return self.v1_test_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_kube_virt_with_http_info(name, namespace, **kwargs) + (data) = self.v1_test_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_kube_virt_with_http_info(self, name, namespace, **kwargs): + def v1_test_with_http_info(self, name, namespace, **kwargs): """ - Get a KubeVirt object. + Test endpoint verifying apiserver connectivity. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_kube_virt_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1_test_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1KubeVirt + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'exact', 'export'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -8300,16 +10625,16 @@ def read_namespaced_kube_virt_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_kube_virt" % key + " to method v1_test" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_kube_virt`") + raise ValueError("Missing the required parameter `name` when calling `v1_test`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_kube_virt`") + raise ValueError("Missing the required parameter `namespace` when calling `v1_test`") collection_formats = {} @@ -8321,10 +10646,6 @@ def read_namespaced_kube_virt_with_http_info(self, name, namespace, **kwargs): path_params['namespace'] = params['namespace'] query_params = [] - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) header_params = {} @@ -8332,21 +10653,17 @@ def read_namespaced_kube_virt_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1KubeVirt', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8354,57 +10671,53 @@ def read_namespaced_kube_virt_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine(self, name, namespace, **kwargs): + def v1_unpause(self, name, namespace, **kwargs): """ - Get a VirtualMachine object. + Unpause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine(name, namespace, callback=callback_function) + >>> thread = api.v1_unpause(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachine + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_with_http_info(name, namespace, **kwargs) + return self.v1_unpause_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_with_http_info(name, namespace, **kwargs) + (data) = self.v1_unpause_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwargs): + def v1_unpause_with_http_info(self, name, namespace, **kwargs): """ - Get a VirtualMachine object. + Unpause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1_unpause_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachine + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'exact', 'export'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -8415,16 +10728,16 @@ def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwar if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine" % key + " to method v1_unpause" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `name` when calling `v1_unpause`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `v1_unpause`") collection_formats = {} @@ -8436,10 +10749,6 @@ def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwar path_params['namespace'] = params['namespace'] query_params = [] - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) header_params = {} @@ -8447,21 +10756,17 @@ def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwar local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachine', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8469,57 +10774,49 @@ def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_instance(self, name, namespace, **kwargs): + def v1_userlist(self, **kwargs): """ - Get a VirtualMachineInstance object. + Get list of active users via guest agent This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance(name, namespace, callback=callback_function) + >>> thread = api.v1_userlist(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachineInstance + :return: V1VirtualMachineInstanceGuestOSUserList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, **kwargs) + return self.v1_userlist_with_http_info(**kwargs) else: - (data) = self.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, **kwargs) + (data) = self.v1_userlist_with_http_info(**kwargs) return data - def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, **kwargs): + def v1_userlist_with_http_info(self, **kwargs): """ - Get a VirtualMachineInstance object. + Get list of active users via guest agent This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1_userlist_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachineInstance + :return: V1VirtualMachineInstanceGuestOSUserList If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'exact', 'export'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -8530,31 +10827,16 @@ def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespac if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_instance" % key + " to method v1_userlist" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance`") - collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) header_params = {} @@ -8564,19 +10846,23 @@ def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespac body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstance', + response_type='V1VirtualMachineInstanceGuestOSUserList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8584,57 +10870,47 @@ def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespac _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_instance_migration(self, name, namespace, **kwargs): + def v1_version(self, **kwargs): """ - Get a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance_migration(name, namespace, callback=callback_function) + >>> thread = api.v1_version(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachineInstanceMigration + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, **kwargs) + return self.v1_version_with_http_info(**kwargs) else: - (data) = self.read_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, **kwargs) + (data) = self.v1_version_with_http_info(**kwargs) return data - def read_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, **kwargs): + def v1_version_with_http_info(self, **kwargs): """ - Get a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1_version_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachineInstanceMigration + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'exact', 'export'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -8645,31 +10921,16 @@ def read_namespaced_virtual_machine_instance_migration_with_http_info(self, name if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_instance_migration" % key + " to method v1_version" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance_migration`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_migration`") - collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) header_params = {} @@ -8679,19 +10940,19 @@ def read_namespaced_virtual_machine_instance_migration_with_http_info(self, name body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/version', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceMigration', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8699,57 +10960,53 @@ def read_namespaced_virtual_machine_instance_migration_with_http_info(self, name _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_instance_preset(self, name, namespace, **kwargs): + def v1_vnc(self, name, namespace, **kwargs): """ - Get a VirtualMachineInstancePreset object. + Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance_preset(name, namespace, callback=callback_function) + >>> thread = api.v1_vnc(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachineInstancePreset + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, **kwargs) + return self.v1_vnc_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, **kwargs) + (data) = self.v1_vnc_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, **kwargs): + def v1_vnc_with_http_info(self, name, namespace, **kwargs): """ - Get a VirtualMachineInstancePreset object. + Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1_vnc_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachineInstancePreset + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'exact', 'export'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -8760,16 +11017,16 @@ def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, n if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_instance_preset" % key + " to method v1_vnc" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `name` when calling `v1_vnc`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `v1_vnc`") collection_formats = {} @@ -8781,32 +11038,24 @@ def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, n path_params['namespace'] = params['namespace'] query_params = [] - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) header_params = {} form_params = [] local_var_files = {} - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) - + body_params = None # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstancePreset', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8814,57 +11063,49 @@ def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, n _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_instance_replica_set(self, name, namespace, **kwargs): + def v1alpha3_check_health(self, **kwargs): """ - Get a VirtualMachineInstanceReplicaSet object. + Health endpoint This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance_replica_set(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_check_health(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachineInstanceReplicaSet + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, **kwargs) + return self.v1alpha3_check_health_with_http_info(**kwargs) else: - (data) = self.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3_check_health_with_http_info(**kwargs) return data - def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, **kwargs): + def v1alpha3_check_health_with_http_info(self, **kwargs): """ - Get a VirtualMachineInstanceReplicaSet object. + Health endpoint This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_check_health_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachineInstanceReplicaSet + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'exact', 'export'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -8875,31 +11116,16 @@ def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_instance_replica_set" % key + " to method v1alpha3_check_health" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance_replica_set`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_replica_set`") - collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) header_params = {} @@ -8909,19 +11135,23 @@ def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/healthz', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceReplicaSet', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8929,57 +11159,53 @@ def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_restore(self, name, namespace, **kwargs): + def v1alpha3_console(self, name, namespace, **kwargs): """ - Get a VirtualMachineRestore object. + Open a websocket connection to a serial console on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_restore(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_console(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineRestore + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_restore_with_http_info(name, namespace, **kwargs) + return self.v1alpha3_console_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_restore_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3_console_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_virtual_machine_restore_with_http_info(self, name, namespace, **kwargs): + def v1alpha3_console_with_http_info(self, name, namespace, **kwargs): """ - Get a VirtualMachineRestore object. + Open a websocket connection to a serial console on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_restore_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_console_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineRestore + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'exact', 'export'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -8990,16 +11216,16 @@ def read_namespaced_virtual_machine_restore_with_http_info(self, name, namespace if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_restore" % key + " to method v1alpha3_console" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_restore`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_console`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_restore`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_console`") collection_formats = {} @@ -9011,10 +11237,6 @@ def read_namespaced_virtual_machine_restore_with_http_info(self, name, namespace path_params['namespace'] = params['namespace'] query_params = [] - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) header_params = {} @@ -9022,21 +11244,17 @@ def read_namespaced_virtual_machine_restore_with_http_info(self, name, namespace local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineRestore', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9044,57 +11262,49 @@ def read_namespaced_virtual_machine_restore_with_http_info(self, name, namespace _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_snapshot(self, name, namespace, **kwargs): + def v1alpha3_filesystemlist(self, **kwargs): """ - Get a VirtualMachineSnapshot object. + Get list of active filesystems on guest machine via guest agent This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_snapshot(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_filesystemlist(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineSnapshot + :return: V1VirtualMachineInstanceFileSystemList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, **kwargs) + return self.v1alpha3_filesystemlist_with_http_info(**kwargs) else: - (data) = self.read_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3_filesystemlist_with_http_info(**kwargs) return data - def read_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespace, **kwargs): + def v1alpha3_filesystemlist_with_http_info(self, **kwargs): """ - Get a VirtualMachineSnapshot object. + Get list of active filesystems on guest machine via guest agent This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_filesystemlist_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineSnapshot + :return: V1VirtualMachineInstanceFileSystemList If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'exact', 'export'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9105,31 +11315,16 @@ def read_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespac if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_snapshot" % key + " to method v1alpha3_filesystemlist" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_snapshot`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_snapshot`") - collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) header_params = {} @@ -9139,19 +11334,23 @@ def read_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespac body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshot', + response_type='V1VirtualMachineInstanceFileSystemList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9159,57 +11358,49 @@ def read_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespac _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_snapshot_content(self, name, namespace, **kwargs): + def v1alpha3_get_sub_api_group(self, **kwargs): """ - Get a VirtualMachineSnapshotContent object. + Get a KubeVirt API Group This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_snapshot_content(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_get_sub_api_group(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineSnapshotContent + :return: K8sIoApimachineryPkgApisMetaV1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, **kwargs) + return self.v1alpha3_get_sub_api_group_with_http_info(**kwargs) else: - (data) = self.read_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3_get_sub_api_group_with_http_info(**kwargs) return data - def read_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, namespace, **kwargs): + def v1alpha3_get_sub_api_group_with_http_info(self, **kwargs): """ - Get a VirtualMachineSnapshotContent object. + Get a KubeVirt API Group This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_get_sub_api_group_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineSnapshotContent + :return: K8sIoApimachineryPkgApisMetaV1APIGroup If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'exact', 'export'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9220,31 +11411,16 @@ def read_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_snapshot_content" % key + " to method v1alpha3_get_sub_api_group" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_snapshot_content`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_snapshot_content`") - collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) header_params = {} @@ -9254,19 +11430,19 @@ def read_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshotContent', + response_type='K8sIoApimachineryPkgApisMetaV1APIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9274,48 +11450,48 @@ def read_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def rename(self, name, namespace, **kwargs): + def v1alpha3_guestosinfo(self, name, namespace, **kwargs): """ - Rename a stopped VirtualMachine object. + Get guest agent os information This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.rename(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_guestosinfo(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :return: V1VirtualMachineInstanceGuestAgentInfo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.rename_with_http_info(name, namespace, **kwargs) + return self.v1alpha3_guestosinfo_with_http_info(name, namespace, **kwargs) else: - (data) = self.rename_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3_guestosinfo_with_http_info(name, namespace, **kwargs) return data - def rename_with_http_info(self, name, namespace, **kwargs): + def v1alpha3_guestosinfo_with_http_info(self, name, namespace, **kwargs): """ - Rename a stopped VirtualMachine object. + Get guest agent os information This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.rename_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_guestosinfo_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :return: V1VirtualMachineInstanceGuestAgentInfo If the method is called asynchronously, returns the request thread. """ @@ -9331,16 +11507,16 @@ def rename_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method rename" % key + " to method v1alpha3_guestosinfo" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `rename`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_guestosinfo`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `rename`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_guestosinfo`") collection_formats = {} @@ -9359,17 +11535,25 @@ def rename_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/rename', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type='V1VirtualMachineInstanceGuestAgentInfo', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9377,55 +11561,53 @@ def rename_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_kube_virt(self, name, namespace, body, **kwargs): + def v1alpha3_migrate(self, name, namespace, **kwargs): """ - Update a KubeVirt object. + Migrate a running VirtualMachine to another node. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_kube_virt(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3_migrate(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1KubeVirt body: (required) - :return: V1KubeVirt + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) + return self.v1alpha3_migrate_with_http_info(name, namespace, **kwargs) else: - (data) = self.replace_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1alpha3_migrate_with_http_info(name, namespace, **kwargs) return data - def replace_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwargs): + def v1alpha3_migrate_with_http_info(self, name, namespace, **kwargs): """ - Update a KubeVirt object. + Migrate a running VirtualMachine to another node. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_kube_virt_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3_migrate_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1KubeVirt body: (required) - :return: V1KubeVirt + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9436,19 +11618,16 @@ def replace_namespaced_kube_virt_with_http_info(self, name, namespace, body, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_kube_virt" % key + " to method v1alpha3_migrate" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_kube_virt`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_migrate`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_kube_virt`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_kube_virt`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_migrate`") collection_formats = {} @@ -9467,27 +11646,17 @@ def replace_namespaced_kube_virt_with_http_info(self, name, namespace, body, **k local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1KubeVirt', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9495,55 +11664,53 @@ def replace_namespaced_kube_virt_with_http_info(self, name, namespace, body, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine(self, name, namespace, body, **kwargs): + def v1alpha3_pause(self, name, namespace, **kwargs): """ - Update a VirtualMachine object. + Pause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3_pause(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachine body: (required) - :return: V1VirtualMachine + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + return self.v1alpha3_pause_with_http_info(name, namespace, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1alpha3_pause_with_http_info(name, namespace, **kwargs) return data - def replace_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): + def v1alpha3_pause_with_http_info(self, name, namespace, **kwargs): """ - Update a VirtualMachine object. + Pause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3_pause_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachine body: (required) - :return: V1VirtualMachine + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9554,19 +11721,16 @@ def replace_namespaced_virtual_machine_with_http_info(self, name, namespace, bod if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine" % key + " to method v1alpha3_pause" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_pause`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_pause`") collection_formats = {} @@ -9585,27 +11749,17 @@ def replace_namespaced_virtual_machine_with_http_info(self, name, namespace, bod local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachine', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9613,55 +11767,53 @@ def replace_namespaced_virtual_machine_with_http_info(self, name, namespace, bod _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): + def v1alpha3_rename(self, name, namespace, **kwargs): """ - Update a VirtualMachineInstance object. + Rename a stopped VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3_rename(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstance body: (required) - :return: V1VirtualMachineInstance + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + return self.v1alpha3_rename_with_http_info(name, namespace, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1alpha3_rename_with_http_info(name, namespace, **kwargs) return data - def replace_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): + def v1alpha3_rename_with_http_info(self, name, namespace, **kwargs): """ - Update a VirtualMachineInstance object. + Rename a stopped VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3_rename_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstance body: (required) - :return: V1VirtualMachineInstance + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9672,19 +11824,16 @@ def replace_namespaced_virtual_machine_instance_with_http_info(self, name, names if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_instance" % key + " to method v1alpha3_rename" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_rename`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_rename`") collection_formats = {} @@ -9703,27 +11852,17 @@ def replace_namespaced_virtual_machine_instance_with_http_info(self, name, names local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/rename', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstance', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9731,50 +11870,50 @@ def replace_namespaced_virtual_machine_instance_with_http_info(self, name, names _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): + def v1alpha3_restart(self, name, namespace, **kwargs): """ - Update a VirtualMachineInstanceMigration object. + Restart a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3_restart(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstanceMigration body: (required) - :return: V1VirtualMachineInstanceMigration + :param V1RestartOptions body: + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + return self.v1alpha3_restart_with_http_info(name, namespace, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1alpha3_restart_with_http_info(name, namespace, **kwargs) return data - def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, body, **kwargs): + def v1alpha3_restart_with_http_info(self, name, namespace, **kwargs): """ - Update a VirtualMachineInstanceMigration object. + Restart a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3_restart_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstanceMigration body: (required) - :return: V1VirtualMachineInstanceMigration + :param V1RestartOptions body: + :return: str If the method is called asynchronously, returns the request thread. """ @@ -9790,19 +11929,16 @@ def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, n if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_instance_migration" % key + " to method v1alpha3_restart" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_restart`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_migration`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_restart`") collection_formats = {} @@ -9823,25 +11959,17 @@ def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, n body_params = None if 'body' in params: body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceMigration', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9849,55 +11977,53 @@ def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, n _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_instance_preset(self, name, namespace, body, **kwargs): + def v1alpha3_start(self, name, namespace, **kwargs): """ - Update a VirtualMachineInstancePreset object. + Start a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_preset(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3_start(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstancePreset body: (required) - :return: V1VirtualMachineInstancePreset + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + return self.v1alpha3_start_with_http_info(name, namespace, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1alpha3_start_with_http_info(name, namespace, **kwargs) return data - def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, body, **kwargs): + def v1alpha3_start_with_http_info(self, name, namespace, **kwargs): """ - Update a VirtualMachineInstancePreset object. + Start a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3_start_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstancePreset body: (required) - :return: V1VirtualMachineInstancePreset + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9908,19 +12034,16 @@ def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, name if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_instance_preset" % key + " to method v1alpha3_start" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_start`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_preset`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_start`") collection_formats = {} @@ -9939,27 +12062,17 @@ def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, name local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstancePreset', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9967,55 +12080,53 @@ def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, name _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): + def v1alpha3_stop(self, name, namespace, **kwargs): """ - Update a VirtualMachineInstanceReplicaSet object. + Stop a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3_stop(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstanceReplicaSet body: (required) - :return: V1VirtualMachineInstanceReplicaSet + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + return self.v1alpha3_stop_with_http_info(name, namespace, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1alpha3_stop_with_http_info(name, namespace, **kwargs) return data - def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): + def v1alpha3_stop_with_http_info(self, name, namespace, **kwargs): """ - Update a VirtualMachineInstanceReplicaSet object. + Stop a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3_stop_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstanceReplicaSet body: (required) - :return: V1VirtualMachineInstanceReplicaSet + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10026,19 +12137,16 @@ def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_instance_replica_set" % key + " to method v1alpha3_stop" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_stop`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_replica_set`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_stop`") collection_formats = {} @@ -10057,27 +12165,17 @@ def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceReplicaSet', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10085,55 +12183,53 @@ def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_restore(self, name, namespace, body, **kwargs): + def v1alpha3_test(self, name, namespace, **kwargs): """ - Update a VirtualMachineRestore object. + Test endpoint verifying apiserver connectivity. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_restore(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3_test(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachineRestore body: (required) - :return: V1alpha1VirtualMachineRestore + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) + return self.v1alpha3_test_with_http_info(name, namespace, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1alpha3_test_with_http_info(name, namespace, **kwargs) return data - def replace_namespaced_virtual_machine_restore_with_http_info(self, name, namespace, body, **kwargs): + def v1alpha3_test_with_http_info(self, name, namespace, **kwargs): """ - Update a VirtualMachineRestore object. + Test endpoint verifying apiserver connectivity. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3_test_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachineRestore body: (required) - :return: V1alpha1VirtualMachineRestore + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10144,19 +12240,16 @@ def replace_namespaced_virtual_machine_restore_with_http_info(self, name, namesp if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_restore" % key + " to method v1alpha3_test" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_restore`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_test`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_restore`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_restore`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_test`") collection_formats = {} @@ -10175,27 +12268,17 @@ def replace_namespaced_virtual_machine_restore_with_http_info(self, name, namesp local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineRestore', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10203,55 +12286,53 @@ def replace_namespaced_virtual_machine_restore_with_http_info(self, name, namesp _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_snapshot(self, name, namespace, body, **kwargs): + def v1alpha3_unpause(self, name, namespace, **kwargs): """ - Update a VirtualMachineSnapshot object. + Unpause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_snapshot(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3_unpause(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachineSnapshot body: (required) - :return: V1alpha1VirtualMachineSnapshot + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) + return self.v1alpha3_unpause_with_http_info(name, namespace, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1alpha3_unpause_with_http_info(name, namespace, **kwargs) return data - def replace_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespace, body, **kwargs): + def v1alpha3_unpause_with_http_info(self, name, namespace, **kwargs): """ - Update a VirtualMachineSnapshot object. + Unpause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3_unpause_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachineSnapshot body: (required) - :return: V1alpha1VirtualMachineSnapshot + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10262,19 +12343,16 @@ def replace_namespaced_virtual_machine_snapshot_with_http_info(self, name, names if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_snapshot" % key + " to method v1alpha3_unpause" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_snapshot`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_unpause`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_snapshot`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_snapshot`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_unpause`") collection_formats = {} @@ -10293,27 +12371,17 @@ def replace_namespaced_virtual_machine_snapshot_with_http_info(self, name, names local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshot', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10321,55 +12389,49 @@ def replace_namespaced_virtual_machine_snapshot_with_http_info(self, name, names _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_snapshot_content(self, name, namespace, body, **kwargs): + def v1alpha3_userlist(self, **kwargs): """ - Update a VirtualMachineSnapshotContent object. + Get list of active users via guest agent This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_snapshot_content(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachineSnapshotContent body: (required) - :return: V1alpha1VirtualMachineSnapshotContent + >>> thread = api.v1alpha3_userlist(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: V1VirtualMachineInstanceGuestOSUserList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) + return self.v1alpha3_userlist_with_http_info(**kwargs) else: - (data) = self.replace_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1alpha3_userlist_with_http_info(**kwargs) return data - def replace_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, namespace, body, **kwargs): + def v1alpha3_userlist_with_http_info(self, **kwargs): """ - Update a VirtualMachineSnapshotContent object. + Get list of active users via guest agent This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3_userlist_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachineSnapshotContent body: (required) - :return: V1alpha1VirtualMachineSnapshotContent + :return: V1VirtualMachineInstanceGuestOSUserList If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10380,28 +12442,14 @@ def replace_namespaced_virtual_machine_snapshot_content_with_http_info(self, nam if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_snapshot_content" % key + " to method v1alpha3_userlist" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_snapshot_content`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_snapshot_content`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_snapshot_content`") - collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] @@ -10411,27 +12459,25 @@ def replace_namespaced_virtual_machine_snapshot_content_with_http_info(self, nam local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml']) + select_header_accept(['application/json']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml']) + select_header_content_type(['application/json']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshotContent', + response_type='V1VirtualMachineInstanceGuestOSUserList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10439,55 +12485,47 @@ def replace_namespaced_virtual_machine_snapshot_content_with_http_info(self, nam _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def restart(self, name, namespace, **kwargs): + def v1alpha3_version(self, **kwargs): """ - Restart a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.restart(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_version(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RestartOptions body: - :return: str + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.restart_with_http_info(name, namespace, **kwargs) + return self.v1alpha3_version_with_http_info(**kwargs) else: - (data) = self.restart_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3_version_with_http_info(**kwargs) return data - def restart_with_http_info(self, name, namespace, **kwargs): + def v1alpha3_version_with_http_info(self, **kwargs): """ - Restart a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.restart_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_version_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RestartOptions body: - :return: str + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10498,25 +12536,14 @@ def restart_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method restart" % key + " to method v1alpha3_version" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `restart`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `restart`") - collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] @@ -10526,19 +12553,21 @@ def restart_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/version', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10546,48 +12575,48 @@ def restart_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def start(self, name, namespace, **kwargs): + def v1alpha3_vnc(self, name, namespace, **kwargs): """ - Start a VirtualMachine object. + Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.start(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_vnc(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.start_with_http_info(name, namespace, **kwargs) + return self.v1alpha3_vnc_with_http_info(name, namespace, **kwargs) else: - (data) = self.start_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3_vnc_with_http_info(name, namespace, **kwargs) return data - def start_with_http_info(self, name, namespace, **kwargs): + def v1alpha3_vnc_with_http_info(self, name, namespace, **kwargs): """ - Start a VirtualMachine object. + Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.start_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_vnc_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :return: None If the method is called asynchronously, returns the request thread. """ @@ -10603,16 +12632,16 @@ def start_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method start" % key + " to method v1alpha3_vnc" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `start`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_vnc`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `start`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_vnc`") collection_formats = {} @@ -10634,14 +12663,14 @@ def start_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10649,53 +12678,49 @@ def start_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def stop(self, name, namespace, **kwargs): + def v1alpha3get_api_sub_resources(self, **kwargs): """ - Stop a VirtualMachine object. + Get a KubeVirt API resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.stop(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3get_api_sub_resources(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.stop_with_http_info(name, namespace, **kwargs) + return self.v1alpha3get_api_sub_resources_with_http_info(**kwargs) else: - (data) = self.stop_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3get_api_sub_resources_with_http_info(**kwargs) return data - def stop_with_http_info(self, name, namespace, **kwargs): + def v1alpha3get_api_sub_resources_with_http_info(self, **kwargs): """ - Stop a VirtualMachine object. + Get a KubeVirt API resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.stop_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3get_api_sub_resources_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10706,25 +12731,14 @@ def stop_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method stop" % key + " to method v1alpha3get_api_sub_resources" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `stop`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `stop`") - collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] @@ -10734,17 +12748,21 @@ def stop_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type='K8sIoApimachineryPkgApisMetaV1APIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10752,48 +12770,48 @@ def stop_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def test(self, name, namespace, **kwargs): + def v1alpha3vm_addvolume(self, name, namespace, **kwargs): """ - Test endpoint verifying apiserver connectivity. + Add a volume and disk to a running Virtual Machine. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.test(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3vm_addvolume(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: None + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.test_with_http_info(name, namespace, **kwargs) + return self.v1alpha3vm_addvolume_with_http_info(name, namespace, **kwargs) else: - (data) = self.test_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3vm_addvolume_with_http_info(name, namespace, **kwargs) return data - def test_with_http_info(self, name, namespace, **kwargs): + def v1alpha3vm_addvolume_with_http_info(self, name, namespace, **kwargs): """ - Test endpoint verifying apiserver connectivity. + Add a volume and disk to a running Virtual Machine. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.test_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3vm_addvolume_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: None + :return: str If the method is called asynchronously, returns the request thread. """ @@ -10809,16 +12827,16 @@ def test_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method test" % key + " to method v1alpha3vm_addvolume" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `test`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vm_addvolume`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `test`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vm_addvolume`") collection_formats = {} @@ -10840,14 +12858,14 @@ def test_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10855,16 +12873,16 @@ def test_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def unpause(self, name, namespace, **kwargs): + def v1alpha3vm_removevolume(self, name, namespace, **kwargs): """ - Unpause a VirtualMachineInstance object. + Removes a volume and disk from a running Virtual Machine. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.unpause(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3vm_removevolume(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -10876,21 +12894,21 @@ def unpause(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.unpause_with_http_info(name, namespace, **kwargs) + return self.v1alpha3vm_removevolume_with_http_info(name, namespace, **kwargs) else: - (data) = self.unpause_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3vm_removevolume_with_http_info(name, namespace, **kwargs) return data - def unpause_with_http_info(self, name, namespace, **kwargs): + def v1alpha3vm_removevolume_with_http_info(self, name, namespace, **kwargs): """ - Unpause a VirtualMachineInstance object. + Removes a volume and disk from a running Virtual Machine. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.unpause_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3vm_removevolume_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -10912,16 +12930,16 @@ def unpause_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method unpause" % key + " to method v1alpha3vm_removevolume" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `unpause`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vm_removevolume`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `unpause`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vm_removevolume`") collection_formats = {} @@ -10943,7 +12961,7 @@ def unpause_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume', 'PUT', path_params, query_params, header_params, @@ -10958,49 +12976,53 @@ def unpause_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def userlist(self, **kwargs): + def v1alpha3vmi_addvolume(self, name, namespace, **kwargs): """ - Get list of active users via guest agent + Add a volume and disk to a running Virtual Machine Instance This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.userlist(callback=callback_function) + >>> thread = api.v1alpha3vmi_addvolume(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1VirtualMachineInstanceGuestOSUserList + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.userlist_with_http_info(**kwargs) + return self.v1alpha3vmi_addvolume_with_http_info(name, namespace, **kwargs) else: - (data) = self.userlist_with_http_info(**kwargs) + (data) = self.v1alpha3vmi_addvolume_with_http_info(name, namespace, **kwargs) return data - def userlist_with_http_info(self, **kwargs): + def v1alpha3vmi_addvolume_with_http_info(self, name, namespace, **kwargs): """ - Get list of active users via guest agent + Add a volume and disk to a running Virtual Machine Instance This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.userlist_with_http_info(callback=callback_function) + >>> thread = api.v1alpha3vmi_addvolume_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1VirtualMachineInstanceGuestOSUserList + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -11011,14 +13033,25 @@ def userlist_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method userlist" % key + " to method v1alpha3vmi_addvolume" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vmi_addvolume`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vmi_addvolume`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -11028,25 +13061,17 @@ def userlist_with_http_info(self, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceGuestOSUserList', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11054,47 +13079,53 @@ def userlist_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def version(self, **kwargs): + def v1alpha3vmi_removevolume(self, name, namespace, **kwargs): """ + Removes a volume and disk from a running Virtual Machine Instance This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.version(callback=callback_function) + >>> thread = api.v1alpha3vmi_removevolume(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.version_with_http_info(**kwargs) + return self.v1alpha3vmi_removevolume_with_http_info(name, namespace, **kwargs) else: - (data) = self.version_with_http_info(**kwargs) + (data) = self.v1alpha3vmi_removevolume_with_http_info(name, namespace, **kwargs) return data - def version_with_http_info(self, **kwargs): + def v1alpha3vmi_removevolume_with_http_info(self, name, namespace, **kwargs): """ + Removes a volume and disk from a running Virtual Machine Instance This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.version_with_http_info(callback=callback_function) + >>> thread = api.v1alpha3vmi_removevolume_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -11105,14 +13136,25 @@ def version_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method version" % key + " to method v1alpha3vmi_removevolume" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vmi_removevolume`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vmi_removevolume`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -11122,21 +13164,17 @@ def version_with_http_info(self, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/version', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11144,53 +13182,49 @@ def version_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def vm_addvolume(self, name, namespace, **kwargs): + def v1get_api_sub_resources(self, **kwargs): """ - Add a volume and disk to a running Virtual Machine. + Get a KubeVirt API resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.vm_addvolume(name, namespace, callback=callback_function) + >>> thread = api.v1get_api_sub_resources(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.vm_addvolume_with_http_info(name, namespace, **kwargs) + return self.v1get_api_sub_resources_with_http_info(**kwargs) else: - (data) = self.vm_addvolume_with_http_info(name, namespace, **kwargs) + (data) = self.v1get_api_sub_resources_with_http_info(**kwargs) return data - def vm_addvolume_with_http_info(self, name, namespace, **kwargs): + def v1get_api_sub_resources_with_http_info(self, **kwargs): """ - Add a volume and disk to a running Virtual Machine. + Get a KubeVirt API resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.vm_addvolume_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1get_api_sub_resources_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -11201,25 +13235,14 @@ def vm_addvolume_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method vm_addvolume" % key + " to method v1get_api_sub_resources" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `vm_addvolume`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `vm_addvolume`") - collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] @@ -11229,17 +13252,21 @@ def vm_addvolume_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type='K8sIoApimachineryPkgApisMetaV1APIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11247,16 +13274,16 @@ def vm_addvolume_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def vm_removevolume(self, name, namespace, **kwargs): + def v1vm_addvolume(self, name, namespace, **kwargs): """ - Removes a volume and disk from a running Virtual Machine. + Add a volume and disk to a running Virtual Machine. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.vm_removevolume(name, namespace, callback=callback_function) + >>> thread = api.v1vm_addvolume(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -11268,21 +13295,21 @@ def vm_removevolume(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.vm_removevolume_with_http_info(name, namespace, **kwargs) + return self.v1vm_addvolume_with_http_info(name, namespace, **kwargs) else: - (data) = self.vm_removevolume_with_http_info(name, namespace, **kwargs) + (data) = self.v1vm_addvolume_with_http_info(name, namespace, **kwargs) return data - def vm_removevolume_with_http_info(self, name, namespace, **kwargs): + def v1vm_addvolume_with_http_info(self, name, namespace, **kwargs): """ - Removes a volume and disk from a running Virtual Machine. + Add a volume and disk to a running Virtual Machine. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.vm_removevolume_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1vm_addvolume_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -11304,16 +13331,16 @@ def vm_removevolume_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method vm_removevolume" % key + " to method v1vm_addvolume" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `vm_removevolume`") + raise ValueError("Missing the required parameter `name` when calling `v1vm_addvolume`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `vm_removevolume`") + raise ValueError("Missing the required parameter `namespace` when calling `v1vm_addvolume`") collection_formats = {} @@ -11335,7 +13362,7 @@ def vm_removevolume_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume', 'PUT', path_params, query_params, header_params, @@ -11350,16 +13377,16 @@ def vm_removevolume_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def vmi_addvolume(self, name, namespace, **kwargs): + def v1vm_removevolume(self, name, namespace, **kwargs): """ - Add a volume and disk to a running Virtual Machine Instance + Removes a volume and disk from a running Virtual Machine. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.vmi_addvolume(name, namespace, callback=callback_function) + >>> thread = api.v1vm_removevolume(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -11371,21 +13398,21 @@ def vmi_addvolume(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.vmi_addvolume_with_http_info(name, namespace, **kwargs) + return self.v1vm_removevolume_with_http_info(name, namespace, **kwargs) else: - (data) = self.vmi_addvolume_with_http_info(name, namespace, **kwargs) + (data) = self.v1vm_removevolume_with_http_info(name, namespace, **kwargs) return data - def vmi_addvolume_with_http_info(self, name, namespace, **kwargs): + def v1vm_removevolume_with_http_info(self, name, namespace, **kwargs): """ - Add a volume and disk to a running Virtual Machine Instance + Removes a volume and disk from a running Virtual Machine. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.vmi_addvolume_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1vm_removevolume_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -11407,16 +13434,16 @@ def vmi_addvolume_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method vmi_addvolume" % key + " to method v1vm_removevolume" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `vmi_addvolume`") + raise ValueError("Missing the required parameter `name` when calling `v1vm_removevolume`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `vmi_addvolume`") + raise ValueError("Missing the required parameter `namespace` when calling `v1vm_removevolume`") collection_formats = {} @@ -11438,7 +13465,7 @@ def vmi_addvolume_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume', 'PUT', path_params, query_params, header_params, @@ -11453,16 +13480,16 @@ def vmi_addvolume_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def vmi_removevolume(self, name, namespace, **kwargs): + def v1vmi_addvolume(self, name, namespace, **kwargs): """ - Removes a volume and disk from a running Virtual Machine Instance + Add a volume and disk to a running Virtual Machine Instance This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.vmi_removevolume(name, namespace, callback=callback_function) + >>> thread = api.v1vmi_addvolume(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -11474,21 +13501,21 @@ def vmi_removevolume(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.vmi_removevolume_with_http_info(name, namespace, **kwargs) + return self.v1vmi_addvolume_with_http_info(name, namespace, **kwargs) else: - (data) = self.vmi_removevolume_with_http_info(name, namespace, **kwargs) + (data) = self.v1vmi_addvolume_with_http_info(name, namespace, **kwargs) return data - def vmi_removevolume_with_http_info(self, name, namespace, **kwargs): + def v1vmi_addvolume_with_http_info(self, name, namespace, **kwargs): """ - Removes a volume and disk from a running Virtual Machine Instance + Add a volume and disk to a running Virtual Machine Instance This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.vmi_removevolume_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1vmi_addvolume_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -11510,16 +13537,16 @@ def vmi_removevolume_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method vmi_removevolume" % key + " to method v1vmi_addvolume" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `vmi_removevolume`") + raise ValueError("Missing the required parameter `name` when calling `v1vmi_addvolume`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `vmi_removevolume`") + raise ValueError("Missing the required parameter `namespace` when calling `v1vmi_addvolume`") collection_formats = {} @@ -11541,7 +13568,7 @@ def vmi_removevolume_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume', 'PUT', path_params, query_params, header_params, @@ -11556,48 +13583,48 @@ def vmi_removevolume_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def vnc(self, name, namespace, **kwargs): + def v1vmi_removevolume(self, name, namespace, **kwargs): """ - Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. + Removes a volume and disk from a running Virtual Machine Instance This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.vnc(name, namespace, callback=callback_function) + >>> thread = api.v1vmi_removevolume(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: None + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.vnc_with_http_info(name, namespace, **kwargs) + return self.v1vmi_removevolume_with_http_info(name, namespace, **kwargs) else: - (data) = self.vnc_with_http_info(name, namespace, **kwargs) + (data) = self.v1vmi_removevolume_with_http_info(name, namespace, **kwargs) return data - def vnc_with_http_info(self, name, namespace, **kwargs): + def v1vmi_removevolume_with_http_info(self, name, namespace, **kwargs): """ - Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. + Removes a volume and disk from a running Virtual Machine Instance This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.vnc_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1vmi_removevolume_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: None + :return: str If the method is called asynchronously, returns the request thread. """ @@ -11613,16 +13640,16 @@ def vnc_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method vnc" % key + " to method v1vmi_removevolume" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `vnc`") + raise ValueError("Missing the required parameter `name` when calling `v1vmi_removevolume`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `vnc`") + raise ValueError("Missing the required parameter `namespace` when calling `v1vmi_removevolume`") collection_formats = {} @@ -11644,14 +13671,14 @@ def vnc_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11769,7 +13796,7 @@ def watch_kube_virt_list_for_all_namespaces_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/kubevirt', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/kubevirt', 'GET', path_params, query_params, header_params, @@ -11901,7 +13928,7 @@ def watch_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt', 'GET', path_params, query_params, header_params, @@ -12033,7 +14060,7 @@ def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'GET', path_params, query_params, header_params, @@ -12165,7 +14192,7 @@ def watch_namespaced_virtual_machine_instance_with_http_info(self, namespace, ** # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'GET', path_params, query_params, header_params, @@ -12297,7 +14324,7 @@ def watch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'GET', path_params, query_params, header_params, @@ -12429,7 +14456,7 @@ def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'GET', path_params, query_params, header_params, @@ -12561,7 +14588,7 @@ def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, @@ -13082,7 +15109,7 @@ def watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/virtualmachineinstances', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/virtualmachineinstances', 'GET', path_params, query_params, header_params, @@ -13207,7 +15234,7 @@ def watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_i # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancemigrations', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/virtualmachineinstancemigrations', 'GET', path_params, query_params, header_params, @@ -13332,7 +15359,7 @@ def watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/virtualmachineinstancepresets', 'GET', path_params, query_params, header_params, @@ -13457,7 +15484,7 @@ def watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, @@ -13582,7 +15609,7 @@ def watch_virtual_machine_list_for_all_namespaces_with_http_info(self, **kwargs) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha3/watch/virtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/virtualmachines', 'GET', path_params, query_params, header_params, diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index d0ab8316..33ee06bf 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.35.0-287-g7cc7ed50".\ + "SDK Package Version: v0.36.0-rc.0-54-g610ff693".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index acdd4e87..80c9457e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.35.0-287-g7cc7ed50" +VERSION = "v0.36.0-rc.0-54-g610ff693" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 95cca7d9..8544239c 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.35.0-287-g7cc7ed50" +"packageVersion": "v0.36.0-rc.0-54-g610ff693" } diff --git a/test/test_default_api.py b/test/test_default_api.py index ac8a9d94..dbef8e18 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -31,22 +31,6 @@ def setUp(self): def tearDown(self): pass - def test_check_health(self): - """ - Test case for check_health - - - """ - pass - - def test_console(self): - """ - Test case for console - - - """ - pass - def test_create_namespaced_kube_virt(self): """ Test case for create_namespaced_kube_virt @@ -260,14 +244,6 @@ def test_delete_namespaced_virtual_machine_snapshot_content(self): Test case for delete_namespaced_virtual_machine_snapshot_content - """ - pass - - def test_filesystemlist(self): - """ - Test case for filesystemlist - - """ pass @@ -311,9 +287,9 @@ def test_get_api_group_snapshot_kubevirt_io(self): """ pass - def test_get_api_resources_kubevirt_io_v1alpha3(self): + def test_get_api_resources_kubevirt_io_v1(self): """ - Test case for get_api_resources_kubevirt_io_v1alpha3 + Test case for get_api_resources_kubevirt_io_v1 """ @@ -324,14 +300,6 @@ def test_get_api_resources_snapshot_kubevirt_io_v1alpha1(self): Test case for get_api_resources_snapshot_kubevirt_io_v1alpha1 - """ - pass - - def test_get_api_sub_resources(self): - """ - Test case for get_api_sub_resources - - """ pass @@ -340,22 +308,6 @@ def test_get_root_paths(self): Test case for get_root_paths - """ - pass - - def test_get_sub_api_group(self): - """ - Test case for get_sub_api_group - - - """ - pass - - def test_guestosinfo(self): - """ - Test case for guestosinfo - - """ pass @@ -500,14 +452,6 @@ def test_list_virtual_machine_snapshot_for_all_namespaces(self): Test case for list_virtual_machine_snapshot_for_all_namespaces - """ - pass - - def test_migrate(self): - """ - Test case for migrate - - """ pass @@ -580,14 +524,6 @@ def test_patch_namespaced_virtual_machine_snapshot_content(self): Test case for patch_namespaced_virtual_machine_snapshot_content - """ - pass - - def test_pause(self): - """ - Test case for pause - - """ pass @@ -660,14 +596,6 @@ def test_read_namespaced_virtual_machine_snapshot_content(self): Test case for read_namespaced_virtual_machine_snapshot_content - """ - pass - - def test_rename(self): - """ - Test case for rename - - """ pass @@ -743,97 +671,329 @@ def test_replace_namespaced_virtual_machine_snapshot_content(self): """ pass - def test_restart(self): + def test_v1_check_health(self): + """ + Test case for v1_check_health + + + """ + pass + + def test_v1_console(self): + """ + Test case for v1_console + + + """ + pass + + def test_v1_filesystemlist(self): + """ + Test case for v1_filesystemlist + + + """ + pass + + def test_v1_guestosinfo(self): + """ + Test case for v1_guestosinfo + + + """ + pass + + def test_v1_migrate(self): + """ + Test case for v1_migrate + + + """ + pass + + def test_v1_pause(self): + """ + Test case for v1_pause + + + """ + pass + + def test_v1_rename(self): + """ + Test case for v1_rename + + + """ + pass + + def test_v1_restart(self): + """ + Test case for v1_restart + + + """ + pass + + def test_v1_start(self): + """ + Test case for v1_start + + + """ + pass + + def test_v1_stop(self): + """ + Test case for v1_stop + + + """ + pass + + def test_v1_test(self): + """ + Test case for v1_test + + + """ + pass + + def test_v1_unpause(self): + """ + Test case for v1_unpause + + + """ + pass + + def test_v1_userlist(self): + """ + Test case for v1_userlist + + + """ + pass + + def test_v1_version(self): + """ + Test case for v1_version + + + """ + pass + + def test_v1_vnc(self): + """ + Test case for v1_vnc + + + """ + pass + + def test_v1alpha3_check_health(self): + """ + Test case for v1alpha3_check_health + + + """ + pass + + def test_v1alpha3_console(self): + """ + Test case for v1alpha3_console + + + """ + pass + + def test_v1alpha3_filesystemlist(self): + """ + Test case for v1alpha3_filesystemlist + + + """ + pass + + def test_v1alpha3_get_sub_api_group(self): + """ + Test case for v1alpha3_get_sub_api_group + + + """ + pass + + def test_v1alpha3_guestosinfo(self): + """ + Test case for v1alpha3_guestosinfo + + + """ + pass + + def test_v1alpha3_migrate(self): + """ + Test case for v1alpha3_migrate + + + """ + pass + + def test_v1alpha3_pause(self): + """ + Test case for v1alpha3_pause + + + """ + pass + + def test_v1alpha3_rename(self): + """ + Test case for v1alpha3_rename + + + """ + pass + + def test_v1alpha3_restart(self): + """ + Test case for v1alpha3_restart + + + """ + pass + + def test_v1alpha3_start(self): + """ + Test case for v1alpha3_start + + + """ + pass + + def test_v1alpha3_stop(self): + """ + Test case for v1alpha3_stop + + + """ + pass + + def test_v1alpha3_test(self): + """ + Test case for v1alpha3_test + + + """ + pass + + def test_v1alpha3_unpause(self): + """ + Test case for v1alpha3_unpause + + + """ + pass + + def test_v1alpha3_userlist(self): + """ + Test case for v1alpha3_userlist + + + """ + pass + + def test_v1alpha3_version(self): """ - Test case for restart + Test case for v1alpha3_version """ pass - def test_start(self): + def test_v1alpha3_vnc(self): """ - Test case for start + Test case for v1alpha3_vnc """ pass - def test_stop(self): + def test_v1alpha3get_api_sub_resources(self): """ - Test case for stop + Test case for v1alpha3get_api_sub_resources """ pass - def test_test(self): + def test_v1alpha3vm_addvolume(self): """ - Test case for test + Test case for v1alpha3vm_addvolume """ pass - def test_unpause(self): + def test_v1alpha3vm_removevolume(self): """ - Test case for unpause + Test case for v1alpha3vm_removevolume """ pass - def test_userlist(self): + def test_v1alpha3vmi_addvolume(self): """ - Test case for userlist + Test case for v1alpha3vmi_addvolume """ pass - def test_version(self): + def test_v1alpha3vmi_removevolume(self): """ - Test case for version + Test case for v1alpha3vmi_removevolume """ pass - def test_vm_addvolume(self): + def test_v1get_api_sub_resources(self): """ - Test case for vm_addvolume + Test case for v1get_api_sub_resources """ pass - def test_vm_removevolume(self): + def test_v1vm_addvolume(self): """ - Test case for vm_removevolume + Test case for v1vm_addvolume """ pass - def test_vmi_addvolume(self): + def test_v1vm_removevolume(self): """ - Test case for vmi_addvolume + Test case for v1vm_removevolume """ pass - def test_vmi_removevolume(self): + def test_v1vmi_addvolume(self): """ - Test case for vmi_removevolume + Test case for v1vmi_addvolume """ pass - def test_vnc(self): + def test_v1vmi_removevolume(self): """ - Test case for vnc + Test case for v1vmi_removevolume """ From bca6def318e2150f7666154481c5c4c1ec555a0e Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 5 Jan 2021 14:54:15 +0000 Subject: [PATCH 166/521] Client Python update by Travis Build 15732 --- README.md | 2 +- docs/V1Devices.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_devices.py | 30 +++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 033b5dfc..2d55d84d 100644 --- a/README.md +++ b/README.md @@ -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: v0.36.0-rc.0-54-g610ff693 +- Package version: v0.37.0-rc.0-13-g1e40e5f3 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index 4db33798..15d7e308 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **interfaces** | [**list[V1Interface]**](V1Interface.md) | Interfaces describe network interfaces which are added to the vmi. | [optional] **network_interface_multiqueue** | **bool** | If specified, virtual network interfaces configured with a virtio bus will also enable the vhost multiqueue feature for network devices. The number of queues created depends on additional factors of the VirtualMachineInstance, like the number of guest CPUs. | [optional] **rng** | [**V1Rng**](V1Rng.md) | Whether to have random number generator from host | [optional] +**use_virtio_transitional** | **bool** | Fall back to legacy virtio 0.9 support if virtio bus is selected on devices. This is helpful for old machines like CentOS6 or RHEL6 which do not understand virtio_non_transitional (virtio 1.0). | [optional] **watchdog** | [**V1Watchdog**](V1Watchdog.md) | Watchdog describes a watchdog device which can be added to the vmi. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 1c56b3f1..e3f89d69 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.36.0-rc.0-54-g610ff693" + release_note="Auto-generated client v0.37.0-rc.0-13-g1e40e5f3" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 09120e12..c111cd0c 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.36.0-rc.0-54-g610ff693/python' + self.user_agent = 'Swagger-Codegen/v0.37.0-rc.0-13-g1e40e5f3/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 33ee06bf..4749462e 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.36.0-rc.0-54-g610ff693".\ + "SDK Package Version: v0.37.0-rc.0-13-g1e40e5f3".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index d8f11b1d..dc8feae9 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -45,6 +45,7 @@ class V1Devices(object): 'interfaces': 'list[V1Interface]', 'network_interface_multiqueue': 'bool', 'rng': 'V1Rng', + 'use_virtio_transitional': 'bool', 'watchdog': 'V1Watchdog' } @@ -63,10 +64,11 @@ class V1Devices(object): 'interfaces': 'interfaces', 'network_interface_multiqueue': 'networkInterfaceMultiqueue', 'rng': 'rng', + 'use_virtio_transitional': 'useVirtioTransitional', 'watchdog': 'watchdog' } - def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, autoattach_pod_interface=None, autoattach_serial_console=None, block_multi_queue=None, disable_hotplug=None, disks=None, filesystems=None, gpus=None, host_devices=None, inputs=None, interfaces=None, network_interface_multiqueue=None, rng=None, watchdog=None): + def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, autoattach_pod_interface=None, autoattach_serial_console=None, block_multi_queue=None, disable_hotplug=None, disks=None, filesystems=None, gpus=None, host_devices=None, inputs=None, interfaces=None, network_interface_multiqueue=None, rng=None, use_virtio_transitional=None, watchdog=None): """ V1Devices - a model defined in Swagger """ @@ -85,6 +87,7 @@ def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, self._interfaces = None self._network_interface_multiqueue = None self._rng = None + self._use_virtio_transitional = None self._watchdog = None if autoattach_graphics_device is not None: @@ -115,6 +118,8 @@ def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, self.network_interface_multiqueue = network_interface_multiqueue if rng is not None: self.rng = rng + if use_virtio_transitional is not None: + self.use_virtio_transitional = use_virtio_transitional if watchdog is not None: self.watchdog = watchdog @@ -440,6 +445,29 @@ def rng(self, rng): self._rng = rng + @property + def use_virtio_transitional(self): + """ + Gets the use_virtio_transitional of this V1Devices. + Fall back to legacy virtio 0.9 support if virtio bus is selected on devices. This is helpful for old machines like CentOS6 or RHEL6 which do not understand virtio_non_transitional (virtio 1.0). + + :return: The use_virtio_transitional of this V1Devices. + :rtype: bool + """ + return self._use_virtio_transitional + + @use_virtio_transitional.setter + def use_virtio_transitional(self, use_virtio_transitional): + """ + Sets the use_virtio_transitional of this V1Devices. + Fall back to legacy virtio 0.9 support if virtio bus is selected on devices. This is helpful for old machines like CentOS6 or RHEL6 which do not understand virtio_non_transitional (virtio 1.0). + + :param use_virtio_transitional: The use_virtio_transitional of this V1Devices. + :type: bool + """ + + self._use_virtio_transitional = use_virtio_transitional + @property def watchdog(self): """ diff --git a/setup.py b/setup.py index 80c9457e..142e814a 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.36.0-rc.0-54-g610ff693" +VERSION = "v0.37.0-rc.0-13-g1e40e5f3" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 8544239c..18e06e05 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.36.0-rc.0-54-g610ff693" +"packageVersion": "v0.37.0-rc.0-13-g1e40e5f3" } From 6fe03c041f744f9944e2055cbf341846501e38c3 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 22 Jan 2021 07:52:07 +0000 Subject: [PATCH 167/521] Client Python update by Travis Build 15817 --- README.md | 3 +- docs/V1DeveloperConfiguration.md | 1 + docs/V1LogVerbosity.md | 15 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_developer_configuration.py | 28 +- kubevirt/models/v1_log_verbosity.py | 255 ++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_log_verbosity.py | 44 +++ 14 files changed, 354 insertions(+), 7 deletions(-) create mode 100644 docs/V1LogVerbosity.md create mode 100644 kubevirt/models/v1_log_verbosity.py create mode 100644 test/test_v1_log_verbosity.py diff --git a/README.md b/README.md index 2d55d84d..7b000052 100644 --- a/README.md +++ b/README.md @@ -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: v0.37.0-rc.0-13-g1e40e5f3 +- Package version: v0.37.0-rc.0-171-g9728f1e5 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -332,6 +332,7 @@ Class | Method | HTTP request | Description - [V1KubeVirtSelfSignConfiguration](docs/V1KubeVirtSelfSignConfiguration.md) - [V1KubeVirtSpec](docs/V1KubeVirtSpec.md) - [V1KubeVirtStatus](docs/V1KubeVirtStatus.md) + - [V1LogVerbosity](docs/V1LogVerbosity.md) - [V1LunTarget](docs/V1LunTarget.md) - [V1Machine](docs/V1Machine.md) - [V1MediatedHostDevice](docs/V1MediatedHostDevice.md) diff --git a/docs/V1DeveloperConfiguration.md b/docs/V1DeveloperConfiguration.md index a50a599f..7db43f46 100644 --- a/docs/V1DeveloperConfiguration.md +++ b/docs/V1DeveloperConfiguration.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cpu_allocation_ratio** | **int** | | [optional] **feature_gates** | **list[str]** | | [optional] +**log_verbosity** | [**V1LogVerbosity**](V1LogVerbosity.md) | | [optional] **memory_overcommit** | **int** | | [optional] **node_selectors** | **dict(str, str)** | | [optional] **pvc_tolerate_less_space_up_to_percent** | **int** | | [optional] diff --git a/docs/V1LogVerbosity.md b/docs/V1LogVerbosity.md new file mode 100644 index 00000000..3ac43161 --- /dev/null +++ b/docs/V1LogVerbosity.md @@ -0,0 +1,15 @@ +# V1LogVerbosity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**node_verbosity** | **dict(str, int)** | NodeVerbosity represents a map of nodes with a specific verbosity level | [optional] +**virt_api** | **int** | | [optional] +**virt_controller** | **int** | | [optional] +**virt_handler** | **int** | | [optional] +**virt_launcher** | **int** | | [optional] +**virt_operator** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index e3f89d69..2a168245 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.37.0-rc.0-13-g1e40e5f3" + release_note="Auto-generated client v0.37.0-rc.0-171-g9728f1e5" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 95347d88..a66719b1 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -376,6 +376,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_kube_virt_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kube_virt_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KubeVirtStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_log_verbosity.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_log_verbosity.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1LogVerbosity.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_lun_target.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_lun_target.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1LunTarget.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 1f33c987..8b795602 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -133,6 +133,7 @@ from .models.v1_kube_virt_self_sign_configuration import V1KubeVirtSelfSignConfiguration from .models.v1_kube_virt_spec import V1KubeVirtSpec from .models.v1_kube_virt_status import V1KubeVirtStatus +from .models.v1_log_verbosity import V1LogVerbosity from .models.v1_lun_target import V1LunTarget from .models.v1_machine import V1Machine from .models.v1_mediated_host_device import V1MediatedHostDevice diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index c111cd0c..f9670671 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.37.0-rc.0-13-g1e40e5f3/python' + self.user_agent = 'Swagger-Codegen/v0.37.0-rc.0-171-g9728f1e5/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 4749462e..55ce4d59 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.37.0-rc.0-13-g1e40e5f3".\ + "SDK Package Version: v0.37.0-rc.0-171-g9728f1e5".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index da8f967d..98bc37fe 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -133,6 +133,7 @@ from .v1_kube_virt_self_sign_configuration import V1KubeVirtSelfSignConfiguration from .v1_kube_virt_spec import V1KubeVirtSpec from .v1_kube_virt_status import V1KubeVirtStatus +from .v1_log_verbosity import V1LogVerbosity from .v1_lun_target import V1LunTarget from .v1_machine import V1Machine from .v1_mediated_host_device import V1MediatedHostDevice diff --git a/kubevirt/models/v1_developer_configuration.py b/kubevirt/models/v1_developer_configuration.py index 9cab7ca0..b8dc8e83 100644 --- a/kubevirt/models/v1_developer_configuration.py +++ b/kubevirt/models/v1_developer_configuration.py @@ -33,6 +33,7 @@ class V1DeveloperConfiguration(object): swagger_types = { 'cpu_allocation_ratio': 'int', 'feature_gates': 'list[str]', + 'log_verbosity': 'V1LogVerbosity', 'memory_overcommit': 'int', 'node_selectors': 'dict(str, str)', 'pvc_tolerate_less_space_up_to_percent': 'int', @@ -42,19 +43,21 @@ class V1DeveloperConfiguration(object): attribute_map = { 'cpu_allocation_ratio': 'cpuAllocationRatio', 'feature_gates': 'featureGates', + 'log_verbosity': 'logVerbosity', 'memory_overcommit': 'memoryOvercommit', 'node_selectors': 'nodeSelectors', 'pvc_tolerate_less_space_up_to_percent': 'pvcTolerateLessSpaceUpToPercent', 'use_emulation': 'useEmulation' } - def __init__(self, cpu_allocation_ratio=None, feature_gates=None, memory_overcommit=None, node_selectors=None, pvc_tolerate_less_space_up_to_percent=None, use_emulation=None): + def __init__(self, cpu_allocation_ratio=None, feature_gates=None, log_verbosity=None, memory_overcommit=None, node_selectors=None, pvc_tolerate_less_space_up_to_percent=None, use_emulation=None): """ V1DeveloperConfiguration - a model defined in Swagger """ self._cpu_allocation_ratio = None self._feature_gates = None + self._log_verbosity = None self._memory_overcommit = None self._node_selectors = None self._pvc_tolerate_less_space_up_to_percent = None @@ -64,6 +67,8 @@ def __init__(self, cpu_allocation_ratio=None, feature_gates=None, memory_overcom self.cpu_allocation_ratio = cpu_allocation_ratio if feature_gates is not None: self.feature_gates = feature_gates + if log_verbosity is not None: + self.log_verbosity = log_verbosity if memory_overcommit is not None: self.memory_overcommit = memory_overcommit if node_selectors is not None: @@ -115,6 +120,27 @@ def feature_gates(self, feature_gates): self._feature_gates = feature_gates + @property + def log_verbosity(self): + """ + Gets the log_verbosity of this V1DeveloperConfiguration. + + :return: The log_verbosity of this V1DeveloperConfiguration. + :rtype: V1LogVerbosity + """ + return self._log_verbosity + + @log_verbosity.setter + def log_verbosity(self, log_verbosity): + """ + Sets the log_verbosity of this V1DeveloperConfiguration. + + :param log_verbosity: The log_verbosity of this V1DeveloperConfiguration. + :type: V1LogVerbosity + """ + + self._log_verbosity = log_verbosity + @property def memory_overcommit(self): """ diff --git a/kubevirt/models/v1_log_verbosity.py b/kubevirt/models/v1_log_verbosity.py new file mode 100644 index 00000000..14114e6f --- /dev/null +++ b/kubevirt/models/v1_log_verbosity.py @@ -0,0 +1,255 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1LogVerbosity(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'node_verbosity': 'dict(str, int)', + 'virt_api': 'int', + 'virt_controller': 'int', + 'virt_handler': 'int', + 'virt_launcher': 'int', + 'virt_operator': 'int' + } + + attribute_map = { + 'node_verbosity': 'nodeVerbosity', + 'virt_api': 'virtAPI', + 'virt_controller': 'virtController', + 'virt_handler': 'virtHandler', + 'virt_launcher': 'virtLauncher', + 'virt_operator': 'virtOperator' + } + + def __init__(self, node_verbosity=None, virt_api=None, virt_controller=None, virt_handler=None, virt_launcher=None, virt_operator=None): + """ + V1LogVerbosity - a model defined in Swagger + """ + + self._node_verbosity = None + self._virt_api = None + self._virt_controller = None + self._virt_handler = None + self._virt_launcher = None + self._virt_operator = None + + if node_verbosity is not None: + self.node_verbosity = node_verbosity + if virt_api is not None: + self.virt_api = virt_api + if virt_controller is not None: + self.virt_controller = virt_controller + if virt_handler is not None: + self.virt_handler = virt_handler + if virt_launcher is not None: + self.virt_launcher = virt_launcher + if virt_operator is not None: + self.virt_operator = virt_operator + + @property + def node_verbosity(self): + """ + Gets the node_verbosity of this V1LogVerbosity. + NodeVerbosity represents a map of nodes with a specific verbosity level + + :return: The node_verbosity of this V1LogVerbosity. + :rtype: dict(str, int) + """ + return self._node_verbosity + + @node_verbosity.setter + def node_verbosity(self, node_verbosity): + """ + Sets the node_verbosity of this V1LogVerbosity. + NodeVerbosity represents a map of nodes with a specific verbosity level + + :param node_verbosity: The node_verbosity of this V1LogVerbosity. + :type: dict(str, int) + """ + + self._node_verbosity = node_verbosity + + @property + def virt_api(self): + """ + Gets the virt_api of this V1LogVerbosity. + + :return: The virt_api of this V1LogVerbosity. + :rtype: int + """ + return self._virt_api + + @virt_api.setter + def virt_api(self, virt_api): + """ + Sets the virt_api of this V1LogVerbosity. + + :param virt_api: The virt_api of this V1LogVerbosity. + :type: int + """ + + self._virt_api = virt_api + + @property + def virt_controller(self): + """ + Gets the virt_controller of this V1LogVerbosity. + + :return: The virt_controller of this V1LogVerbosity. + :rtype: int + """ + return self._virt_controller + + @virt_controller.setter + def virt_controller(self, virt_controller): + """ + Sets the virt_controller of this V1LogVerbosity. + + :param virt_controller: The virt_controller of this V1LogVerbosity. + :type: int + """ + + self._virt_controller = virt_controller + + @property + def virt_handler(self): + """ + Gets the virt_handler of this V1LogVerbosity. + + :return: The virt_handler of this V1LogVerbosity. + :rtype: int + """ + return self._virt_handler + + @virt_handler.setter + def virt_handler(self, virt_handler): + """ + Sets the virt_handler of this V1LogVerbosity. + + :param virt_handler: The virt_handler of this V1LogVerbosity. + :type: int + """ + + self._virt_handler = virt_handler + + @property + def virt_launcher(self): + """ + Gets the virt_launcher of this V1LogVerbosity. + + :return: The virt_launcher of this V1LogVerbosity. + :rtype: int + """ + return self._virt_launcher + + @virt_launcher.setter + def virt_launcher(self, virt_launcher): + """ + Sets the virt_launcher of this V1LogVerbosity. + + :param virt_launcher: The virt_launcher of this V1LogVerbosity. + :type: int + """ + + self._virt_launcher = virt_launcher + + @property + def virt_operator(self): + """ + Gets the virt_operator of this V1LogVerbosity. + + :return: The virt_operator of this V1LogVerbosity. + :rtype: int + """ + return self._virt_operator + + @virt_operator.setter + def virt_operator(self, virt_operator): + """ + Sets the virt_operator of this V1LogVerbosity. + + :param virt_operator: The virt_operator of this V1LogVerbosity. + :type: int + """ + + self._virt_operator = virt_operator + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1LogVerbosity): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 142e814a..cffb24d3 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.37.0-rc.0-13-g1e40e5f3" +VERSION = "v0.37.0-rc.0-171-g9728f1e5" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 18e06e05..0398880b 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.37.0-rc.0-13-g1e40e5f3" +"packageVersion": "v0.37.0-rc.0-171-g9728f1e5" } diff --git a/test/test_v1_log_verbosity.py b/test/test_v1_log_verbosity.py new file mode 100644 index 00000000..c3a12206 --- /dev/null +++ b/test/test_v1_log_verbosity.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_log_verbosity import V1LogVerbosity + + +class TestV1LogVerbosity(unittest.TestCase): + """ V1LogVerbosity unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1LogVerbosity(self): + """ + Test V1LogVerbosity + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_log_verbosity.V1LogVerbosity() + pass + + +if __name__ == '__main__': + unittest.main() From 585239adb65da9ad77283513bf812ae742f128de Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 28 Jan 2021 03:38:29 +0000 Subject: [PATCH 168/521] Client Python update by Travis Build 15853 --- README.md | 2 +- docs/V1ResourceRequirements.md | 4 ++-- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_resource_requirements.py | 12 ++++++------ setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 7b000052..debd95b4 100644 --- a/README.md +++ b/README.md @@ -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: v0.37.0-rc.0-171-g9728f1e5 +- Package version: v0.37.0-rc.0-240-g74c71995 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1ResourceRequirements.md b/docs/V1ResourceRequirements.md index 75655ecd..0f1e9849 100644 --- a/docs/V1ResourceRequirements.md +++ b/docs/V1ResourceRequirements.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**limits** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". | [optional] +**limits** | **object** | Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". | [optional] **overcommit_guest_overhead** | **bool** | Don't ask the scheduler to take the guest-management overhead into account. Instead put the overhead only into the container's memory limit. This can lead to crashes if all memory is in use on a node. Defaults to false. | [optional] -**requests** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". | [optional] +**requests** | **object** | Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 2a168245..66ddeb97 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.37.0-rc.0-171-g9728f1e5" + release_note="Auto-generated client v0.37.0-rc.0-240-g74c71995" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index f9670671..6c3a72b1 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.37.0-rc.0-171-g9728f1e5/python' + self.user_agent = 'Swagger-Codegen/v0.37.0-rc.0-240-g74c71995/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 55ce4d59..1c1da64b 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.37.0-rc.0-171-g9728f1e5".\ + "SDK Package Version: v0.37.0-rc.0-240-g74c71995".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_resource_requirements.py b/kubevirt/models/v1_resource_requirements.py index 36757600..86113955 100644 --- a/kubevirt/models/v1_resource_requirements.py +++ b/kubevirt/models/v1_resource_requirements.py @@ -31,9 +31,9 @@ class V1ResourceRequirements(object): and the value is json key in definition. """ swagger_types = { - 'limits': 'dict(str, K8sIoApimachineryPkgApiResourceQuantity)', + 'limits': 'object', 'overcommit_guest_overhead': 'bool', - 'requests': 'dict(str, K8sIoApimachineryPkgApiResourceQuantity)' + 'requests': 'object' } attribute_map = { @@ -65,7 +65,7 @@ def limits(self): Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". :return: The limits of this V1ResourceRequirements. - :rtype: dict(str, K8sIoApimachineryPkgApiResourceQuantity) + :rtype: object """ return self._limits @@ -76,7 +76,7 @@ def limits(self, limits): Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". :param limits: The limits of this V1ResourceRequirements. - :type: dict(str, K8sIoApimachineryPkgApiResourceQuantity) + :type: object """ self._limits = limits @@ -111,7 +111,7 @@ def requests(self): Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". :return: The requests of this V1ResourceRequirements. - :rtype: dict(str, K8sIoApimachineryPkgApiResourceQuantity) + :rtype: object """ return self._requests @@ -122,7 +122,7 @@ def requests(self, requests): Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". :param requests: The requests of this V1ResourceRequirements. - :type: dict(str, K8sIoApimachineryPkgApiResourceQuantity) + :type: object """ self._requests = requests diff --git a/setup.py b/setup.py index cffb24d3..bc083785 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.37.0-rc.0-171-g9728f1e5" +VERSION = "v0.37.0-rc.0-240-g74c71995" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 0398880b..39150908 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.37.0-rc.0-171-g9728f1e5" +"packageVersion": "v0.37.0-rc.0-240-g74c71995" } From c2e184c3cad6797af35b0160a36ffcbba77284a7 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 1 Feb 2021 13:02:16 +0000 Subject: [PATCH 169/521] Client Python update by Travis Build 15870 --- README.md | 2 +- docs/K8sIoApiCoreV1DownwardAPIVolumeFile.md | 2 +- docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md | 4 ++-- docs/K8sIoApimachineryPkgApisMetaV1ObjectMeta.md | 4 ++-- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../models/k8s_io_api_core_v1_downward_api_volume_file.py | 4 ++-- .../k8s_io_api_core_v1_persistent_volume_claim_spec.py | 8 ++++---- .../k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.py | 8 ++++---- setup.py | 2 +- swagger-codegen-config.json | 2 +- 12 files changed, 21 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index debd95b4..d07a9544 100644 --- a/README.md +++ b/README.md @@ -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: v0.37.0-rc.0-240-g74c71995 +- Package version: v0.37.0-rc.0-283-g9f66405f - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/K8sIoApiCoreV1DownwardAPIVolumeFile.md b/docs/K8sIoApiCoreV1DownwardAPIVolumeFile.md index a4b3f17a..0eb2a648 100644 --- a/docs/K8sIoApiCoreV1DownwardAPIVolumeFile.md +++ b/docs/K8sIoApiCoreV1DownwardAPIVolumeFile.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **field_ref** | [**K8sIoApiCoreV1ObjectFieldSelector**](K8sIoApiCoreV1ObjectFieldSelector.md) | Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. | [optional] -**mode** | **int** | Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] +**mode** | **int** | Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] **path** | **str** | Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' | **resource_field_ref** | [**K8sIoApiCoreV1ResourceFieldSelector**](K8sIoApiCoreV1ResourceFieldSelector.md) | Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. | [optional] diff --git a/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md b/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md index ebbb6733..ce8a933b 100644 --- a/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md +++ b/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **access_modes** | **list[str]** | AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] -**data_source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | This field requires the VolumeSnapshotDataSource alpha feature gate to be enabled and currently VolumeSnapshot is the only supported data source. If the provisioner can support VolumeSnapshot data source, it will create a new volume and data will be restored to the volume at the same time. If the provisioner does not support VolumeSnapshot data source, volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. | [optional] +**data_source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) * An existing custom resource that implements data population (Alpha) In order to use custom resource types that implement data population, the AnyVolumeDataSource feature gate must be enabled. If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. | [optional] **resources** | [**K8sIoApiCoreV1ResourceRequirements**](K8sIoApiCoreV1ResourceRequirements.md) | Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources | [optional] **selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | A label query over volumes to consider for binding. | [optional] **storage_class_name** | **str** | Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] -**volume_mode** | **str** | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is a beta feature. | [optional] +**volume_mode** | **str** | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. | [optional] **volume_name** | **str** | VolumeName is the binding reference to the PersistentVolume backing this claim. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApimachineryPkgApisMetaV1ObjectMeta.md b/docs/K8sIoApimachineryPkgApisMetaV1ObjectMeta.md index 69895d4e..5917154f 100644 --- a/docs/K8sIoApimachineryPkgApisMetaV1ObjectMeta.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1ObjectMeta.md @@ -7,13 +7,13 @@ Name | Type | Description | Notes **cluster_name** | **str** | The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. | [optional] **deletion_grace_period_seconds** | **int** | Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. | [optional] **deletion_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] -**finalizers** | **list[str]** | Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. | [optional] +**finalizers** | **list[str]** | Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. | [optional] **generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency | [optional] **generation** | **int** | A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. | [optional] **labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels | [optional] **managed_fields** | [**list[K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry]**](K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry.md) | ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. | [optional] **name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] -**namespace** | **str** | Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces | [optional] +**namespace** | **str** | Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces | [optional] **owner_references** | [**list[K8sIoApimachineryPkgApisMetaV1OwnerReference]**](K8sIoApimachineryPkgApisMetaV1OwnerReference.md) | List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. | [optional] **resource_version** | **str** | An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency | [optional] **self_link** | **str** | SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. | [optional] diff --git a/git_push.sh b/git_push.sh index 66ddeb97..a813a893 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.37.0-rc.0-240-g74c71995" + release_note="Auto-generated client v0.37.0-rc.0-283-g9f66405f" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 6c3a72b1..3b9e38fd 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.37.0-rc.0-240-g74c71995/python' + self.user_agent = 'Swagger-Codegen/v0.37.0-rc.0-283-g9f66405f/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 1c1da64b..9d102c78 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.37.0-rc.0-240-g74c71995".\ + "SDK Package Version: v0.37.0-rc.0-283-g9f66405f".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/k8s_io_api_core_v1_downward_api_volume_file.py b/kubevirt/models/k8s_io_api_core_v1_downward_api_volume_file.py index 4347cf61..11828bf7 100644 --- a/kubevirt/models/k8s_io_api_core_v1_downward_api_volume_file.py +++ b/kubevirt/models/k8s_io_api_core_v1_downward_api_volume_file.py @@ -89,7 +89,7 @@ def field_ref(self, field_ref): def mode(self): """ Gets the mode of this K8sIoApiCoreV1DownwardAPIVolumeFile. - Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. :return: The mode of this K8sIoApiCoreV1DownwardAPIVolumeFile. :rtype: int @@ -100,7 +100,7 @@ def mode(self): def mode(self, mode): """ Sets the mode of this K8sIoApiCoreV1DownwardAPIVolumeFile. - Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. :param mode: The mode of this K8sIoApiCoreV1DownwardAPIVolumeFile. :type: int diff --git a/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py index 7381d4b7..ddd5afd9 100644 --- a/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py +++ b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py @@ -105,7 +105,7 @@ def access_modes(self, access_modes): def data_source(self): """ Gets the data_source of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - This field requires the VolumeSnapshotDataSource alpha feature gate to be enabled and currently VolumeSnapshot is the only supported data source. If the provisioner can support VolumeSnapshot data source, it will create a new volume and data will be restored to the volume at the same time. If the provisioner does not support VolumeSnapshot data source, volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. + This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) * An existing custom resource that implements data population (Alpha) In order to use custom resource types that implement data population, the AnyVolumeDataSource feature gate must be enabled. If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. :return: The data_source of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :rtype: K8sIoApiCoreV1TypedLocalObjectReference @@ -116,7 +116,7 @@ def data_source(self): def data_source(self, data_source): """ Sets the data_source of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - This field requires the VolumeSnapshotDataSource alpha feature gate to be enabled and currently VolumeSnapshot is the only supported data source. If the provisioner can support VolumeSnapshot data source, it will create a new volume and data will be restored to the volume at the same time. If the provisioner does not support VolumeSnapshot data source, volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. + This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) * An existing custom resource that implements data population (Alpha) In order to use custom resource types that implement data population, the AnyVolumeDataSource feature gate must be enabled. If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. :param data_source: The data_source of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :type: K8sIoApiCoreV1TypedLocalObjectReference @@ -197,7 +197,7 @@ def storage_class_name(self, storage_class_name): def volume_mode(self): """ Gets the volume_mode of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is a beta feature. + volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. :return: The volume_mode of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :rtype: str @@ -208,7 +208,7 @@ def volume_mode(self): def volume_mode(self, volume_mode): """ Sets the volume_mode of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is a beta feature. + volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. :param volume_mode: The volume_mode of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :type: str diff --git a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.py index 2961e1a8..d34a47d9 100644 --- a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.py @@ -214,7 +214,7 @@ def deletion_timestamp(self, deletion_timestamp): def finalizers(self): """ Gets the finalizers of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. + Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. :return: The finalizers of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :rtype: list[str] @@ -225,7 +225,7 @@ def finalizers(self): def finalizers(self, finalizers): """ Sets the finalizers of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. + Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. :param finalizers: The finalizers of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :type: list[str] @@ -352,7 +352,7 @@ def name(self, name): def namespace(self): """ Gets the namespace of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces :return: The namespace of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :rtype: str @@ -363,7 +363,7 @@ def namespace(self): def namespace(self, namespace): """ Sets the namespace of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces :param namespace: The namespace of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :type: str diff --git a/setup.py b/setup.py index bc083785..f98b89f5 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.37.0-rc.0-240-g74c71995" +VERSION = "v0.37.0-rc.0-283-g9f66405f" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 39150908..8453c631 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.37.0-rc.0-240-g74c71995" +"packageVersion": "v0.37.0-rc.0-283-g9f66405f" } From f3204b4e253e49a81ea1135ccf2efdc699a64463 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 11 Feb 2021 10:10:05 +0000 Subject: [PATCH 170/521] Client Python update by Travis Build 15908 --- README.md | 2 +- docs/V1Features.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_features.py | 30 +++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index d07a9544..9c733528 100644 --- a/README.md +++ b/README.md @@ -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: v0.37.0-rc.0-283-g9f66405f +- Package version: v0.38.0-84-g483bef08 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Features.md b/docs/V1Features.md index c0304c8c..d1dedce8 100644 --- a/docs/V1Features.md +++ b/docs/V1Features.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **apic** | [**V1FeatureAPIC**](V1FeatureAPIC.md) | Defaults to the machine type setting. | [optional] **hyperv** | [**V1FeatureHyperv**](V1FeatureHyperv.md) | Defaults to the machine type setting. | [optional] **kvm** | [**V1FeatureKVM**](V1FeatureKVM.md) | Configure how KVM presence is exposed to the guest. | [optional] +**pvspinlock** | [**V1FeatureState**](V1FeatureState.md) | Notify the guest that the host supports paravirtual spinlocks. For older kernels this feature should be explicitly disabled. | [optional] **smm** | [**V1FeatureState**](V1FeatureState.md) | SMM enables/disables System Management Mode. TSEG not yet implemented. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index a813a893..852558cb 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.37.0-rc.0-283-g9f66405f" + release_note="Auto-generated client v0.38.0-84-g483bef08" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 3b9e38fd..5050ce80 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.37.0-rc.0-283-g9f66405f/python' + self.user_agent = 'Swagger-Codegen/v0.38.0-84-g483bef08/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 9d102c78..f4e0c352 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.37.0-rc.0-283-g9f66405f".\ + "SDK Package Version: v0.38.0-84-g483bef08".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_features.py b/kubevirt/models/v1_features.py index 9e7e64b1..a1425e47 100644 --- a/kubevirt/models/v1_features.py +++ b/kubevirt/models/v1_features.py @@ -35,6 +35,7 @@ class V1Features(object): 'apic': 'V1FeatureAPIC', 'hyperv': 'V1FeatureHyperv', 'kvm': 'V1FeatureKVM', + 'pvspinlock': 'V1FeatureState', 'smm': 'V1FeatureState' } @@ -43,10 +44,11 @@ class V1Features(object): 'apic': 'apic', 'hyperv': 'hyperv', 'kvm': 'kvm', + 'pvspinlock': 'pvspinlock', 'smm': 'smm' } - def __init__(self, acpi=None, apic=None, hyperv=None, kvm=None, smm=None): + def __init__(self, acpi=None, apic=None, hyperv=None, kvm=None, pvspinlock=None, smm=None): """ V1Features - a model defined in Swagger """ @@ -55,6 +57,7 @@ def __init__(self, acpi=None, apic=None, hyperv=None, kvm=None, smm=None): self._apic = None self._hyperv = None self._kvm = None + self._pvspinlock = None self._smm = None if acpi is not None: @@ -65,6 +68,8 @@ def __init__(self, acpi=None, apic=None, hyperv=None, kvm=None, smm=None): self.hyperv = hyperv if kvm is not None: self.kvm = kvm + if pvspinlock is not None: + self.pvspinlock = pvspinlock if smm is not None: self.smm = smm @@ -160,6 +165,29 @@ def kvm(self, kvm): self._kvm = kvm + @property + def pvspinlock(self): + """ + Gets the pvspinlock of this V1Features. + Notify the guest that the host supports paravirtual spinlocks. For older kernels this feature should be explicitly disabled. + + :return: The pvspinlock of this V1Features. + :rtype: V1FeatureState + """ + return self._pvspinlock + + @pvspinlock.setter + def pvspinlock(self, pvspinlock): + """ + Sets the pvspinlock of this V1Features. + Notify the guest that the host supports paravirtual spinlocks. For older kernels this feature should be explicitly disabled. + + :param pvspinlock: The pvspinlock of this V1Features. + :type: V1FeatureState + """ + + self._pvspinlock = pvspinlock + @property def smm(self): """ diff --git a/setup.py b/setup.py index f98b89f5..33aecb24 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.37.0-rc.0-283-g9f66405f" +VERSION = "v0.38.0-84-g483bef08" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 8453c631..185f8f32 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.37.0-rc.0-283-g9f66405f" +"packageVersion": "v0.38.0-84-g483bef08" } From 9ce67f6700c366660c6f03bba206c278a2957d03 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 12 Feb 2021 02:58:51 +0000 Subject: [PATCH 171/521] Client Python update by Travis Build 15910 --- README.md | 2 +- docs/V1CustomizeComponentsPatch.md | 8 ++++---- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../models/v1_customize_components_patch.py | 20 +++++++++++-------- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 22 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 9c733528..fb04e4ae 100644 --- a/README.md +++ b/README.md @@ -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: v0.38.0-84-g483bef08 +- Package version: v0.38.0-89-g96ce4aa4 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1CustomizeComponentsPatch.md b/docs/V1CustomizeComponentsPatch.md index 751fc75d..50779370 100644 --- a/docs/V1CustomizeComponentsPatch.md +++ b/docs/V1CustomizeComponentsPatch.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**patch** | **str** | | [optional] -**resource_name** | **str** | | [optional] -**resource_type** | **str** | | [optional] -**type** | **str** | | [optional] +**patch** | **str** | | +**resource_name** | **str** | | +**resource_type** | **str** | | +**type** | **str** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 852558cb..530d921a 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.38.0-84-g483bef08" + release_note="Auto-generated client v0.38.0-89-g96ce4aa4" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 5050ce80..d959c205 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.38.0-84-g483bef08/python' + self.user_agent = 'Swagger-Codegen/v0.38.0-89-g96ce4aa4/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index f4e0c352..6bafc281 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.38.0-84-g483bef08".\ + "SDK Package Version: v0.38.0-89-g96ce4aa4".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_customize_components_patch.py b/kubevirt/models/v1_customize_components_patch.py index 3220e487..8602c25a 100644 --- a/kubevirt/models/v1_customize_components_patch.py +++ b/kubevirt/models/v1_customize_components_patch.py @@ -54,14 +54,10 @@ def __init__(self, patch=None, resource_name=None, resource_type=None, type=None self._resource_type = None self._type = None - if patch is not None: - self.patch = patch - if resource_name is not None: - self.resource_name = resource_name - if resource_type is not None: - self.resource_type = resource_type - if type is not None: - self.type = type + self.patch = patch + self.resource_name = resource_name + self.resource_type = resource_type + self.type = type @property def patch(self): @@ -81,6 +77,8 @@ def patch(self, patch): :param patch: The patch of this V1CustomizeComponentsPatch. :type: str """ + if patch is None: + raise ValueError("Invalid value for `patch`, must not be `None`") self._patch = patch @@ -102,6 +100,8 @@ def resource_name(self, resource_name): :param resource_name: The resource_name of this V1CustomizeComponentsPatch. :type: str """ + if resource_name is None: + raise ValueError("Invalid value for `resource_name`, must not be `None`") self._resource_name = resource_name @@ -123,6 +123,8 @@ def resource_type(self, resource_type): :param resource_type: The resource_type of this V1CustomizeComponentsPatch. :type: str """ + if resource_type is None: + raise ValueError("Invalid value for `resource_type`, must not be `None`") self._resource_type = resource_type @@ -144,6 +146,8 @@ def type(self, type): :param type: The type of this V1CustomizeComponentsPatch. :type: str """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") self._type = type diff --git a/setup.py b/setup.py index 33aecb24..b67394ad 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.38.0-84-g483bef08" +VERSION = "v0.38.0-89-g96ce4aa4" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 185f8f32..c27fbd52 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.38.0-84-g483bef08" +"packageVersion": "v0.38.0-89-g96ce4aa4" } From a61aa95b36611a2a81b956871e549bf081b490b8 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 17 Feb 2021 14:56:17 +0000 Subject: [PATCH 172/521] Client Python update by Travis Build 15929 --- README.md | 3 +- docs/V1SysprepSource.md | 11 ++ docs/V1Volume.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_sysprep_source.py | 153 +++++++++++++++++++++++++++ kubevirt/models/v1_volume.py | 34 +++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_sysprep_source.py | 44 ++++++++ 14 files changed, 252 insertions(+), 9 deletions(-) create mode 100644 docs/V1SysprepSource.md create mode 100644 kubevirt/models/v1_sysprep_source.py create mode 100644 test/test_v1_sysprep_source.py diff --git a/README.md b/README.md index fb04e4ae..4a8f0ee0 100644 --- a/README.md +++ b/README.md @@ -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: v0.38.0-89-g96ce4aa4 +- Package version: v0.38.0-147-g3ff5153a - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -361,6 +361,7 @@ Class | Method | HTTP request | Description - [V1SSHPublicKeyAccessCredentialSource](docs/V1SSHPublicKeyAccessCredentialSource.md) - [V1SecretVolumeSource](docs/V1SecretVolumeSource.md) - [V1ServiceAccountVolumeSource](docs/V1ServiceAccountVolumeSource.md) + - [V1SysprepSource](docs/V1SysprepSource.md) - [V1Timer](docs/V1Timer.md) - [V1UserPasswordAccessCredential](docs/V1UserPasswordAccessCredential.md) - [V1UserPasswordAccessCredentialPropagationMethod](docs/V1UserPasswordAccessCredentialPropagationMethod.md) diff --git a/docs/V1SysprepSource.md b/docs/V1SysprepSource.md new file mode 100644 index 00000000..f9d8fee7 --- /dev/null +++ b/docs/V1SysprepSource.md @@ -0,0 +1,11 @@ +# V1SysprepSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config_map** | [**K8sIoApiCoreV1LocalObjectReference**](K8sIoApiCoreV1LocalObjectReference.md) | ConfigMap references a ConfigMap that contains Sysprep answer file named autounattend.xml that should be attached as disk of CDROM type. | [optional] +**secret** | [**K8sIoApiCoreV1LocalObjectReference**](K8sIoApiCoreV1LocalObjectReference.md) | Secret references a k8s Secret that contains Sysprep answer file named autounattend.xml that should be attached as disk of CDROM type. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Volume.md b/docs/V1Volume.md index d32d93c2..05bf21b1 100644 --- a/docs/V1Volume.md +++ b/docs/V1Volume.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **persistent_volume_claim** | [**K8sIoApiCoreV1PersistentVolumeClaimVolumeSource**](K8sIoApiCoreV1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] **secret** | [**V1SecretVolumeSource**](V1SecretVolumeSource.md) | SecretVolumeSource represents a reference to a secret data in the same namespace. More info: https://kubernetes.io/docs/concepts/configuration/secret/ | [optional] **service_account** | [**V1ServiceAccountVolumeSource**](V1ServiceAccountVolumeSource.md) | ServiceAccountVolumeSource represents a reference to a service account. There can only be one volume of this type! More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ | [optional] +**sysprep** | [**V1SysprepSource**](V1SysprepSource.md) | Represents a Sysprep volume source. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 530d921a..f3514819 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.38.0-89-g96ce4aa4" + release_note="Auto-generated client v0.38.0-147-g3ff5153a" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index a66719b1..64612c37 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -463,6 +463,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_service_account_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_service_account_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ServiceAccountVolumeSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_sysprep_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sysprep_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SysprepSource.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Timer.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 8b795602..ea5e906f 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -162,6 +162,7 @@ from .models.v1_ssh_public_key_access_credential_source import V1SSHPublicKeyAccessCredentialSource from .models.v1_secret_volume_source import V1SecretVolumeSource from .models.v1_service_account_volume_source import V1ServiceAccountVolumeSource +from .models.v1_sysprep_source import V1SysprepSource from .models.v1_timer import V1Timer from .models.v1_user_password_access_credential import V1UserPasswordAccessCredential from .models.v1_user_password_access_credential_propagation_method import V1UserPasswordAccessCredentialPropagationMethod diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index d959c205..3c498342 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.38.0-89-g96ce4aa4/python' + self.user_agent = 'Swagger-Codegen/v0.38.0-147-g3ff5153a/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 6bafc281..3fdd979d 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.38.0-89-g96ce4aa4".\ + "SDK Package Version: v0.38.0-147-g3ff5153a".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 98bc37fe..bf8e221b 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -162,6 +162,7 @@ from .v1_ssh_public_key_access_credential_source import V1SSHPublicKeyAccessCredentialSource from .v1_secret_volume_source import V1SecretVolumeSource from .v1_service_account_volume_source import V1ServiceAccountVolumeSource +from .v1_sysprep_source import V1SysprepSource from .v1_timer import V1Timer from .v1_user_password_access_credential import V1UserPasswordAccessCredential from .v1_user_password_access_credential_propagation_method import V1UserPasswordAccessCredentialPropagationMethod diff --git a/kubevirt/models/v1_sysprep_source.py b/kubevirt/models/v1_sysprep_source.py new file mode 100644 index 00000000..67906b26 --- /dev/null +++ b/kubevirt/models/v1_sysprep_source.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SysprepSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'config_map': 'K8sIoApiCoreV1LocalObjectReference', + 'secret': 'K8sIoApiCoreV1LocalObjectReference' + } + + attribute_map = { + 'config_map': 'configMap', + 'secret': 'secret' + } + + def __init__(self, config_map=None, secret=None): + """ + V1SysprepSource - a model defined in Swagger + """ + + self._config_map = None + self._secret = None + + if config_map is not None: + self.config_map = config_map + if secret is not None: + self.secret = secret + + @property + def config_map(self): + """ + Gets the config_map of this V1SysprepSource. + ConfigMap references a ConfigMap that contains Sysprep answer file named autounattend.xml that should be attached as disk of CDROM type. + + :return: The config_map of this V1SysprepSource. + :rtype: K8sIoApiCoreV1LocalObjectReference + """ + return self._config_map + + @config_map.setter + def config_map(self, config_map): + """ + Sets the config_map of this V1SysprepSource. + ConfigMap references a ConfigMap that contains Sysprep answer file named autounattend.xml that should be attached as disk of CDROM type. + + :param config_map: The config_map of this V1SysprepSource. + :type: K8sIoApiCoreV1LocalObjectReference + """ + + self._config_map = config_map + + @property + def secret(self): + """ + Gets the secret of this V1SysprepSource. + Secret references a k8s Secret that contains Sysprep answer file named autounattend.xml that should be attached as disk of CDROM type. + + :return: The secret of this V1SysprepSource. + :rtype: K8sIoApiCoreV1LocalObjectReference + """ + return self._secret + + @secret.setter + def secret(self, secret): + """ + Sets the secret of this V1SysprepSource. + Secret references a k8s Secret that contains Sysprep answer file named autounattend.xml that should be attached as disk of CDROM type. + + :param secret: The secret of this V1SysprepSource. + :type: K8sIoApiCoreV1LocalObjectReference + """ + + self._secret = secret + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1SysprepSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_volume.py b/kubevirt/models/v1_volume.py index 6858921e..948d9a74 100644 --- a/kubevirt/models/v1_volume.py +++ b/kubevirt/models/v1_volume.py @@ -43,7 +43,8 @@ class V1Volume(object): 'name': 'str', 'persistent_volume_claim': 'K8sIoApiCoreV1PersistentVolumeClaimVolumeSource', 'secret': 'V1SecretVolumeSource', - 'service_account': 'V1ServiceAccountVolumeSource' + 'service_account': 'V1ServiceAccountVolumeSource', + 'sysprep': 'V1SysprepSource' } attribute_map = { @@ -59,10 +60,11 @@ class V1Volume(object): 'name': 'name', 'persistent_volume_claim': 'persistentVolumeClaim', 'secret': 'secret', - 'service_account': 'serviceAccount' + 'service_account': 'serviceAccount', + 'sysprep': 'sysprep' } - def __init__(self, cloud_init_config_drive=None, cloud_init_no_cloud=None, config_map=None, container_disk=None, data_volume=None, downward_api=None, empty_disk=None, ephemeral=None, host_disk=None, name=None, persistent_volume_claim=None, secret=None, service_account=None): + def __init__(self, cloud_init_config_drive=None, cloud_init_no_cloud=None, config_map=None, container_disk=None, data_volume=None, downward_api=None, empty_disk=None, ephemeral=None, host_disk=None, name=None, persistent_volume_claim=None, secret=None, service_account=None, sysprep=None): """ V1Volume - a model defined in Swagger """ @@ -80,6 +82,7 @@ def __init__(self, cloud_init_config_drive=None, cloud_init_no_cloud=None, confi self._persistent_volume_claim = None self._secret = None self._service_account = None + self._sysprep = None if cloud_init_config_drive is not None: self.cloud_init_config_drive = cloud_init_config_drive @@ -106,6 +109,8 @@ def __init__(self, cloud_init_config_drive=None, cloud_init_no_cloud=None, confi self.secret = secret if service_account is not None: self.service_account = service_account + if sysprep is not None: + self.sysprep = sysprep @property def cloud_init_config_drive(self): @@ -408,6 +413,29 @@ def service_account(self, service_account): self._service_account = service_account + @property + def sysprep(self): + """ + Gets the sysprep of this V1Volume. + Represents a Sysprep volume source. + + :return: The sysprep of this V1Volume. + :rtype: V1SysprepSource + """ + return self._sysprep + + @sysprep.setter + def sysprep(self, sysprep): + """ + Sets the sysprep of this V1Volume. + Represents a Sysprep volume source. + + :param sysprep: The sysprep of this V1Volume. + :type: V1SysprepSource + """ + + self._sysprep = sysprep + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index b67394ad..3b9878d8 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.38.0-89-g96ce4aa4" +VERSION = "v0.38.0-147-g3ff5153a" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index c27fbd52..1755e0f0 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.38.0-89-g96ce4aa4" +"packageVersion": "v0.38.0-147-g3ff5153a" } diff --git a/test/test_v1_sysprep_source.py b/test/test_v1_sysprep_source.py new file mode 100644 index 00000000..5dd1382f --- /dev/null +++ b/test/test_v1_sysprep_source.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_sysprep_source import V1SysprepSource + + +class TestV1SysprepSource(unittest.TestCase): + """ V1SysprepSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SysprepSource(self): + """ + Test V1SysprepSource + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_sysprep_source.V1SysprepSource() + pass + + +if __name__ == '__main__': + unittest.main() From 8aecb7bf807a7004ddff80016dd343339aa9dbed Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 19 Feb 2021 12:32:33 +0000 Subject: [PATCH 173/521] Client Python update by Travis Build 15940 --- README.md | 3 +- docs/V1KubeVirtSpec.md | 1 + docs/V1KubeVirtStatus.md | 1 + docs/V1KubeVirtWorkloadUpdateStrategy.md | 12 ++ docs/V1VirtualMachineInstanceStatus.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_kube_virt_spec.py | 30 ++- kubevirt/models/v1_kube_virt_status.py | 28 ++- .../v1_kube_virt_workload_update_strategy.py | 181 ++++++++++++++++++ .../v1_virtual_machine_instance_status.py | 30 ++- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...t_v1_kube_virt_workload_update_strategy.py | 44 +++++ 18 files changed, 337 insertions(+), 9 deletions(-) create mode 100644 docs/V1KubeVirtWorkloadUpdateStrategy.md create mode 100644 kubevirt/models/v1_kube_virt_workload_update_strategy.py create mode 100644 test/test_v1_kube_virt_workload_update_strategy.py diff --git a/README.md b/README.md index 4a8f0ee0..e2706bb9 100644 --- a/README.md +++ b/README.md @@ -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: v0.38.0-147-g3ff5153a +- Package version: v0.38.0-176-gf1b17a22 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -332,6 +332,7 @@ Class | Method | HTTP request | Description - [V1KubeVirtSelfSignConfiguration](docs/V1KubeVirtSelfSignConfiguration.md) - [V1KubeVirtSpec](docs/V1KubeVirtSpec.md) - [V1KubeVirtStatus](docs/V1KubeVirtStatus.md) + - [V1KubeVirtWorkloadUpdateStrategy](docs/V1KubeVirtWorkloadUpdateStrategy.md) - [V1LogVerbosity](docs/V1LogVerbosity.md) - [V1LunTarget](docs/V1LunTarget.md) - [V1Machine](docs/V1Machine.md) diff --git a/docs/V1KubeVirtSpec.md b/docs/V1KubeVirtSpec.md index 7849cc69..6cc9ed2d 100644 --- a/docs/V1KubeVirtSpec.md +++ b/docs/V1KubeVirtSpec.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **product_name** | **str** | Designate the apps.kubevirt.io/part-of label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductName is not specified, the part-of label will be omitted. | [optional] **product_version** | **str** | Designate the apps.kubevirt.io/version label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductVersion is not specified, KubeVirt's version will be used. | [optional] **uninstall_strategy** | **str** | Specifies if kubevirt can be deleted if workloads are still present. This is mainly a precaution to avoid accidental data loss | [optional] +**workload_update_strategy** | [**V1KubeVirtWorkloadUpdateStrategy**](V1KubeVirtWorkloadUpdateStrategy.md) | WorkloadUpdateStrategy defines at the cluster level how to handle automated workload updates | [optional] **workloads** | [**V1ComponentConfig**](V1ComponentConfig.md) | selectors and tolerations that should apply to KubeVirt workloads | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1KubeVirtStatus.md b/docs/V1KubeVirtStatus.md index f8930643..1265a6e6 100644 --- a/docs/V1KubeVirtStatus.md +++ b/docs/V1KubeVirtStatus.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **observed_kube_virt_registry** | **str** | | [optional] **observed_kube_virt_version** | **str** | | [optional] **operator_version** | **str** | | [optional] +**outdated_virtual_machine_instance_workloads** | **int** | | [optional] **phase** | **str** | | [optional] **target_deployment_config** | **str** | | [optional] **target_deployment_id** | **str** | | [optional] diff --git a/docs/V1KubeVirtWorkloadUpdateStrategy.md b/docs/V1KubeVirtWorkloadUpdateStrategy.md new file mode 100644 index 00000000..6d4acecb --- /dev/null +++ b/docs/V1KubeVirtWorkloadUpdateStrategy.md @@ -0,0 +1,12 @@ +# V1KubeVirtWorkloadUpdateStrategy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**batch_eviction_interval** | [**K8sIoApimachineryPkgApisMetaV1Duration**](K8sIoApimachineryPkgApisMetaV1Duration.md) | BatchEvictionInterval Represents the interval to wait before issuing the next batch of shutdowns Defaults to 1 minute | [optional] +**batch_eviction_size** | **int** | BatchEvictionSize Represents the number of VMIs that can be forced updated per the BatchShutdownInteral interval Defaults to 10 | [optional] +**workload_update_methods** | **list[str]** | WorkloadUpdateMethods defines the methods that can be used to disrupt workloads during automated workload updates. When multiple methods are present, the least disruptive method takes precedence over more disruptive methods. For example if both LiveMigrate and Shutdown methods are listed, only VMs which are not live migratable will be restarted/shutdown An empty list defaults to no automated workload updating | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index b9e950a2..b3d9997d 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **evacuation_node_name** | **str** | EvacuationNodeName is used to track the eviction process of a VMI. It stores the name of the node that we want to evacuate. It is meant to be used by KubeVirt core components only and can't be set or modified by users. | [optional] **guest_os_info** | [**V1VirtualMachineInstanceGuestOSInfo**](V1VirtualMachineInstanceGuestOSInfo.md) | Guest OS Information | [optional] **interfaces** | [**list[V1VirtualMachineInstanceNetworkInterface]**](V1VirtualMachineInstanceNetworkInterface.md) | Interfaces represent the details of available network interfaces. | [optional] +**launcher_container_image_version** | **str** | LauncherContainerImageVersion indicates what container image is currently active for the vmi. | [optional] **migration_method** | **str** | Represents the method using which the vmi can be migrated: live migration or block migration | [optional] **migration_state** | [**V1VirtualMachineInstanceMigrationState**](V1VirtualMachineInstanceMigrationState.md) | Represents the status of a live migration | [optional] **node_name** | **str** | NodeName is the name where the VirtualMachineInstance is currently running. | [optional] diff --git a/git_push.sh b/git_push.sh index f3514819..628322f0 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.38.0-147-g3ff5153a" + release_note="Auto-generated client v0.38.0-176-gf1b17a22" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 64612c37..f74d0a78 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -376,6 +376,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_kube_virt_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kube_virt_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KubeVirtStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_kube_virt_workload_update_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kube_virt_workload_update_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KubeVirtWorkloadUpdateStrategy.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_log_verbosity.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_log_verbosity.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1LogVerbosity.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index ea5e906f..eb4e8fa0 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -133,6 +133,7 @@ from .models.v1_kube_virt_self_sign_configuration import V1KubeVirtSelfSignConfiguration from .models.v1_kube_virt_spec import V1KubeVirtSpec from .models.v1_kube_virt_status import V1KubeVirtStatus +from .models.v1_kube_virt_workload_update_strategy import V1KubeVirtWorkloadUpdateStrategy from .models.v1_log_verbosity import V1LogVerbosity from .models.v1_lun_target import V1LunTarget from .models.v1_machine import V1Machine diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 3c498342..7f09e51d 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.38.0-147-g3ff5153a/python' + self.user_agent = 'Swagger-Codegen/v0.38.0-176-gf1b17a22/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 3fdd979d..6e04c0da 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.38.0-147-g3ff5153a".\ + "SDK Package Version: v0.38.0-176-gf1b17a22".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index bf8e221b..4a76d0b4 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -133,6 +133,7 @@ from .v1_kube_virt_self_sign_configuration import V1KubeVirtSelfSignConfiguration from .v1_kube_virt_spec import V1KubeVirtSpec from .v1_kube_virt_status import V1KubeVirtStatus +from .v1_kube_virt_workload_update_strategy import V1KubeVirtWorkloadUpdateStrategy from .v1_log_verbosity import V1LogVerbosity from .v1_lun_target import V1LunTarget from .v1_machine import V1Machine diff --git a/kubevirt/models/v1_kube_virt_spec.py b/kubevirt/models/v1_kube_virt_spec.py index cadcb778..c6d47c8d 100644 --- a/kubevirt/models/v1_kube_virt_spec.py +++ b/kubevirt/models/v1_kube_virt_spec.py @@ -43,6 +43,7 @@ class V1KubeVirtSpec(object): 'product_name': 'str', 'product_version': 'str', 'uninstall_strategy': 'str', + 'workload_update_strategy': 'V1KubeVirtWorkloadUpdateStrategy', 'workloads': 'V1ComponentConfig' } @@ -59,10 +60,11 @@ class V1KubeVirtSpec(object): 'product_name': 'productName', 'product_version': 'productVersion', 'uninstall_strategy': 'uninstallStrategy', + 'workload_update_strategy': 'workloadUpdateStrategy', 'workloads': 'workloads' } - def __init__(self, certificate_rotate_strategy=None, configuration=None, customize_components=None, image_pull_policy=None, image_registry=None, image_tag=None, infra=None, monitor_account=None, monitor_namespace=None, product_name=None, product_version=None, uninstall_strategy=None, workloads=None): + def __init__(self, certificate_rotate_strategy=None, configuration=None, customize_components=None, image_pull_policy=None, image_registry=None, image_tag=None, infra=None, monitor_account=None, monitor_namespace=None, product_name=None, product_version=None, uninstall_strategy=None, workload_update_strategy=None, workloads=None): """ V1KubeVirtSpec - a model defined in Swagger """ @@ -79,6 +81,7 @@ def __init__(self, certificate_rotate_strategy=None, configuration=None, customi self._product_name = None self._product_version = None self._uninstall_strategy = None + self._workload_update_strategy = None self._workloads = None if certificate_rotate_strategy is not None: @@ -105,6 +108,8 @@ def __init__(self, certificate_rotate_strategy=None, configuration=None, customi self.product_version = product_version if uninstall_strategy is not None: self.uninstall_strategy = uninstall_strategy + if workload_update_strategy is not None: + self.workload_update_strategy = workload_update_strategy if workloads is not None: self.workloads = workloads @@ -380,6 +385,29 @@ def uninstall_strategy(self, uninstall_strategy): self._uninstall_strategy = uninstall_strategy + @property + def workload_update_strategy(self): + """ + Gets the workload_update_strategy of this V1KubeVirtSpec. + WorkloadUpdateStrategy defines at the cluster level how to handle automated workload updates + + :return: The workload_update_strategy of this V1KubeVirtSpec. + :rtype: V1KubeVirtWorkloadUpdateStrategy + """ + return self._workload_update_strategy + + @workload_update_strategy.setter + def workload_update_strategy(self, workload_update_strategy): + """ + Sets the workload_update_strategy of this V1KubeVirtSpec. + WorkloadUpdateStrategy defines at the cluster level how to handle automated workload updates + + :param workload_update_strategy: The workload_update_strategy of this V1KubeVirtSpec. + :type: V1KubeVirtWorkloadUpdateStrategy + """ + + self._workload_update_strategy = workload_update_strategy + @property def workloads(self): """ diff --git a/kubevirt/models/v1_kube_virt_status.py b/kubevirt/models/v1_kube_virt_status.py index cdbdf8bb..d7a4243e 100644 --- a/kubevirt/models/v1_kube_virt_status.py +++ b/kubevirt/models/v1_kube_virt_status.py @@ -37,6 +37,7 @@ class V1KubeVirtStatus(object): 'observed_kube_virt_registry': 'str', 'observed_kube_virt_version': 'str', 'operator_version': 'str', + 'outdated_virtual_machine_instance_workloads': 'int', 'phase': 'str', 'target_deployment_config': 'str', 'target_deployment_id': 'str', @@ -51,6 +52,7 @@ class V1KubeVirtStatus(object): 'observed_kube_virt_registry': 'observedKubeVirtRegistry', 'observed_kube_virt_version': 'observedKubeVirtVersion', 'operator_version': 'operatorVersion', + 'outdated_virtual_machine_instance_workloads': 'outdatedVirtualMachineInstanceWorkloads', 'phase': 'phase', 'target_deployment_config': 'targetDeploymentConfig', 'target_deployment_id': 'targetDeploymentID', @@ -58,7 +60,7 @@ class V1KubeVirtStatus(object): 'target_kube_virt_version': 'targetKubeVirtVersion' } - def __init__(self, conditions=None, observed_deployment_config=None, observed_deployment_id=None, observed_kube_virt_registry=None, observed_kube_virt_version=None, operator_version=None, phase=None, target_deployment_config=None, target_deployment_id=None, target_kube_virt_registry=None, target_kube_virt_version=None): + def __init__(self, conditions=None, observed_deployment_config=None, observed_deployment_id=None, observed_kube_virt_registry=None, observed_kube_virt_version=None, operator_version=None, outdated_virtual_machine_instance_workloads=None, phase=None, target_deployment_config=None, target_deployment_id=None, target_kube_virt_registry=None, target_kube_virt_version=None): """ V1KubeVirtStatus - a model defined in Swagger """ @@ -69,6 +71,7 @@ def __init__(self, conditions=None, observed_deployment_config=None, observed_de self._observed_kube_virt_registry = None self._observed_kube_virt_version = None self._operator_version = None + self._outdated_virtual_machine_instance_workloads = None self._phase = None self._target_deployment_config = None self._target_deployment_id = None @@ -87,6 +90,8 @@ def __init__(self, conditions=None, observed_deployment_config=None, observed_de self.observed_kube_virt_version = observed_kube_virt_version if operator_version is not None: self.operator_version = operator_version + if outdated_virtual_machine_instance_workloads is not None: + self.outdated_virtual_machine_instance_workloads = outdated_virtual_machine_instance_workloads if phase is not None: self.phase = phase if target_deployment_config is not None: @@ -224,6 +229,27 @@ def operator_version(self, operator_version): self._operator_version = operator_version + @property + def outdated_virtual_machine_instance_workloads(self): + """ + Gets the outdated_virtual_machine_instance_workloads of this V1KubeVirtStatus. + + :return: The outdated_virtual_machine_instance_workloads of this V1KubeVirtStatus. + :rtype: int + """ + return self._outdated_virtual_machine_instance_workloads + + @outdated_virtual_machine_instance_workloads.setter + def outdated_virtual_machine_instance_workloads(self, outdated_virtual_machine_instance_workloads): + """ + Sets the outdated_virtual_machine_instance_workloads of this V1KubeVirtStatus. + + :param outdated_virtual_machine_instance_workloads: The outdated_virtual_machine_instance_workloads of this V1KubeVirtStatus. + :type: int + """ + + self._outdated_virtual_machine_instance_workloads = outdated_virtual_machine_instance_workloads + @property def phase(self): """ diff --git a/kubevirt/models/v1_kube_virt_workload_update_strategy.py b/kubevirt/models/v1_kube_virt_workload_update_strategy.py new file mode 100644 index 00000000..371add57 --- /dev/null +++ b/kubevirt/models/v1_kube_virt_workload_update_strategy.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1KubeVirtWorkloadUpdateStrategy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'batch_eviction_interval': 'K8sIoApimachineryPkgApisMetaV1Duration', + 'batch_eviction_size': 'int', + 'workload_update_methods': 'list[str]' + } + + attribute_map = { + 'batch_eviction_interval': 'batchEvictionInterval', + 'batch_eviction_size': 'batchEvictionSize', + 'workload_update_methods': 'workloadUpdateMethods' + } + + def __init__(self, batch_eviction_interval=None, batch_eviction_size=None, workload_update_methods=None): + """ + V1KubeVirtWorkloadUpdateStrategy - a model defined in Swagger + """ + + self._batch_eviction_interval = None + self._batch_eviction_size = None + self._workload_update_methods = None + + if batch_eviction_interval is not None: + self.batch_eviction_interval = batch_eviction_interval + if batch_eviction_size is not None: + self.batch_eviction_size = batch_eviction_size + if workload_update_methods is not None: + self.workload_update_methods = workload_update_methods + + @property + def batch_eviction_interval(self): + """ + Gets the batch_eviction_interval of this V1KubeVirtWorkloadUpdateStrategy. + BatchEvictionInterval Represents the interval to wait before issuing the next batch of shutdowns Defaults to 1 minute + + :return: The batch_eviction_interval of this V1KubeVirtWorkloadUpdateStrategy. + :rtype: K8sIoApimachineryPkgApisMetaV1Duration + """ + return self._batch_eviction_interval + + @batch_eviction_interval.setter + def batch_eviction_interval(self, batch_eviction_interval): + """ + Sets the batch_eviction_interval of this V1KubeVirtWorkloadUpdateStrategy. + BatchEvictionInterval Represents the interval to wait before issuing the next batch of shutdowns Defaults to 1 minute + + :param batch_eviction_interval: The batch_eviction_interval of this V1KubeVirtWorkloadUpdateStrategy. + :type: K8sIoApimachineryPkgApisMetaV1Duration + """ + + self._batch_eviction_interval = batch_eviction_interval + + @property + def batch_eviction_size(self): + """ + Gets the batch_eviction_size of this V1KubeVirtWorkloadUpdateStrategy. + BatchEvictionSize Represents the number of VMIs that can be forced updated per the BatchShutdownInteral interval Defaults to 10 + + :return: The batch_eviction_size of this V1KubeVirtWorkloadUpdateStrategy. + :rtype: int + """ + return self._batch_eviction_size + + @batch_eviction_size.setter + def batch_eviction_size(self, batch_eviction_size): + """ + Sets the batch_eviction_size of this V1KubeVirtWorkloadUpdateStrategy. + BatchEvictionSize Represents the number of VMIs that can be forced updated per the BatchShutdownInteral interval Defaults to 10 + + :param batch_eviction_size: The batch_eviction_size of this V1KubeVirtWorkloadUpdateStrategy. + :type: int + """ + + self._batch_eviction_size = batch_eviction_size + + @property + def workload_update_methods(self): + """ + Gets the workload_update_methods of this V1KubeVirtWorkloadUpdateStrategy. + WorkloadUpdateMethods defines the methods that can be used to disrupt workloads during automated workload updates. When multiple methods are present, the least disruptive method takes precedence over more disruptive methods. For example if both LiveMigrate and Shutdown methods are listed, only VMs which are not live migratable will be restarted/shutdown An empty list defaults to no automated workload updating + + :return: The workload_update_methods of this V1KubeVirtWorkloadUpdateStrategy. + :rtype: list[str] + """ + return self._workload_update_methods + + @workload_update_methods.setter + def workload_update_methods(self, workload_update_methods): + """ + Sets the workload_update_methods of this V1KubeVirtWorkloadUpdateStrategy. + WorkloadUpdateMethods defines the methods that can be used to disrupt workloads during automated workload updates. When multiple methods are present, the least disruptive method takes precedence over more disruptive methods. For example if both LiveMigrate and Shutdown methods are listed, only VMs which are not live migratable will be restarted/shutdown An empty list defaults to no automated workload updating + + :param workload_update_methods: The workload_update_methods of this V1KubeVirtWorkloadUpdateStrategy. + :type: list[str] + """ + + self._workload_update_methods = workload_update_methods + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1KubeVirtWorkloadUpdateStrategy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index a936726c..67bbbac8 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -36,6 +36,7 @@ class V1VirtualMachineInstanceStatus(object): 'evacuation_node_name': 'str', 'guest_os_info': 'V1VirtualMachineInstanceGuestOSInfo', 'interfaces': 'list[V1VirtualMachineInstanceNetworkInterface]', + 'launcher_container_image_version': 'str', 'migration_method': 'str', 'migration_state': 'V1VirtualMachineInstanceMigrationState', 'node_name': 'str', @@ -51,6 +52,7 @@ class V1VirtualMachineInstanceStatus(object): 'evacuation_node_name': 'evacuationNodeName', 'guest_os_info': 'guestOSInfo', 'interfaces': 'interfaces', + 'launcher_container_image_version': 'launcherContainerImageVersion', 'migration_method': 'migrationMethod', 'migration_state': 'migrationState', 'node_name': 'nodeName', @@ -60,7 +62,7 @@ class V1VirtualMachineInstanceStatus(object): 'volume_status': 'volumeStatus' } - def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, guest_os_info=None, interfaces=None, migration_method=None, migration_state=None, node_name=None, phase=None, qos_class=None, reason=None, volume_status=None): + def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, migration_method=None, migration_state=None, node_name=None, phase=None, qos_class=None, reason=None, volume_status=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ @@ -70,6 +72,7 @@ def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, self._evacuation_node_name = None self._guest_os_info = None self._interfaces = None + self._launcher_container_image_version = None self._migration_method = None self._migration_state = None self._node_name = None @@ -88,6 +91,8 @@ def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, self.guest_os_info = guest_os_info if interfaces is not None: self.interfaces = interfaces + if launcher_container_image_version is not None: + self.launcher_container_image_version = launcher_container_image_version if migration_method is not None: self.migration_method = migration_method if migration_state is not None: @@ -218,6 +223,29 @@ def interfaces(self, interfaces): self._interfaces = interfaces + @property + def launcher_container_image_version(self): + """ + Gets the launcher_container_image_version of this V1VirtualMachineInstanceStatus. + LauncherContainerImageVersion indicates what container image is currently active for the vmi. + + :return: The launcher_container_image_version of this V1VirtualMachineInstanceStatus. + :rtype: str + """ + return self._launcher_container_image_version + + @launcher_container_image_version.setter + def launcher_container_image_version(self, launcher_container_image_version): + """ + Sets the launcher_container_image_version of this V1VirtualMachineInstanceStatus. + LauncherContainerImageVersion indicates what container image is currently active for the vmi. + + :param launcher_container_image_version: The launcher_container_image_version of this V1VirtualMachineInstanceStatus. + :type: str + """ + + self._launcher_container_image_version = launcher_container_image_version + @property def migration_method(self): """ diff --git a/setup.py b/setup.py index 3b9878d8..a4e6b148 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.38.0-147-g3ff5153a" +VERSION = "v0.38.0-176-gf1b17a22" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 1755e0f0..337c0cc2 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.38.0-147-g3ff5153a" +"packageVersion": "v0.38.0-176-gf1b17a22" } diff --git a/test/test_v1_kube_virt_workload_update_strategy.py b/test/test_v1_kube_virt_workload_update_strategy.py new file mode 100644 index 00000000..cb4b81e7 --- /dev/null +++ b/test/test_v1_kube_virt_workload_update_strategy.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_kube_virt_workload_update_strategy import V1KubeVirtWorkloadUpdateStrategy + + +class TestV1KubeVirtWorkloadUpdateStrategy(unittest.TestCase): + """ V1KubeVirtWorkloadUpdateStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1KubeVirtWorkloadUpdateStrategy(self): + """ + Test V1KubeVirtWorkloadUpdateStrategy + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_kube_virt_workload_update_strategy.V1KubeVirtWorkloadUpdateStrategy() + pass + + +if __name__ == '__main__': + unittest.main() From 3624bcd0dc5b94ea52c3943b277920be8517bb40 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 4 Mar 2021 13:30:07 +0000 Subject: [PATCH 174/521] Client Python update by Travis Build 15976 --- README.md | 3 +- docs/V1alpha1DataVolumeCheckpoint.md | 11 ++ docs/V1alpha1DataVolumeSourceS3.md | 1 + docs/V1alpha1DataVolumeSpec.md | 3 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + .../models/v1alpha1_data_volume_checkpoint.py | 155 ++++++++++++++++++ .../models/v1alpha1_data_volume_source_s3.py | 30 +++- kubevirt/models/v1alpha1_data_volume_spec.py | 86 +++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1alpha1_data_volume_checkpoint.py | 44 +++++ 16 files changed, 340 insertions(+), 8 deletions(-) create mode 100644 docs/V1alpha1DataVolumeCheckpoint.md create mode 100644 kubevirt/models/v1alpha1_data_volume_checkpoint.py create mode 100644 test/test_v1alpha1_data_volume_checkpoint.py diff --git a/README.md b/README.md index e2706bb9..c66a4317 100644 --- a/README.md +++ b/README.md @@ -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: v0.38.0-176-gf1b17a22 +- Package version: v0.39.0-rc.0-21-ga1dc9dcb - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -408,6 +408,7 @@ Class | Method | HTTP request | Description - [V1Watchdog](docs/V1Watchdog.md) - [V1alpha1Condition](docs/V1alpha1Condition.md) - [V1alpha1DataVolumeBlankImage](docs/V1alpha1DataVolumeBlankImage.md) + - [V1alpha1DataVolumeCheckpoint](docs/V1alpha1DataVolumeCheckpoint.md) - [V1alpha1DataVolumeSource](docs/V1alpha1DataVolumeSource.md) - [V1alpha1DataVolumeSourceHTTP](docs/V1alpha1DataVolumeSourceHTTP.md) - [V1alpha1DataVolumeSourceImageIO](docs/V1alpha1DataVolumeSourceImageIO.md) diff --git a/docs/V1alpha1DataVolumeCheckpoint.md b/docs/V1alpha1DataVolumeCheckpoint.md new file mode 100644 index 00000000..c206be1a --- /dev/null +++ b/docs/V1alpha1DataVolumeCheckpoint.md @@ -0,0 +1,11 @@ +# V1alpha1DataVolumeCheckpoint + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**current** | **str** | Current is the identifier of the snapshot created for this checkpoint. | +**previous** | **str** | Previous is the identifier of the snapshot from the previous checkpoint. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1DataVolumeSourceS3.md b/docs/V1alpha1DataVolumeSourceS3.md index 120013f6..6455de5e 100644 --- a/docs/V1alpha1DataVolumeSourceS3.md +++ b/docs/V1alpha1DataVolumeSourceS3.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**cert_config_map** | **str** | CertConfigMap is a configmap reference, containing a Certificate Authority(CA) public key, and a base64 encoded pem certificate | [optional] **secret_ref** | **str** | SecretRef provides the secret reference needed to access the S3 source | [optional] **url** | **str** | URL is the url of the S3 source | diff --git a/docs/V1alpha1DataVolumeSpec.md b/docs/V1alpha1DataVolumeSpec.md index 72cc35fa..5fe002ec 100644 --- a/docs/V1alpha1DataVolumeSpec.md +++ b/docs/V1alpha1DataVolumeSpec.md @@ -3,7 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**checkpoints** | [**list[V1alpha1DataVolumeCheckpoint]**](V1alpha1DataVolumeCheckpoint.md) | Checkpoints is a list of DataVolumeCheckpoints, representing stages in a multistage import. | [optional] **content_type** | **str** | DataVolumeContentType options: \"kubevirt\", \"archive\" | [optional] +**final_checkpoint** | **bool** | FinalCheckpoint indicates whether the current DataVolumeCheckpoint is the final checkpoint. | [optional] +**preallocation** | **bool** | Preallocation controls whether storage for DataVolumes should be allocated in advance. | [optional] **pvc** | [**K8sIoApiCoreV1PersistentVolumeClaimSpec**](K8sIoApiCoreV1PersistentVolumeClaimSpec.md) | PVC is the PVC specification | **source** | [**V1alpha1DataVolumeSource**](V1alpha1DataVolumeSource.md) | Source is the src of the data for the requested DataVolume | diff --git a/git_push.sh b/git_push.sh index 628322f0..98f703f6 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.38.0-176-gf1b17a22" + release_note="Auto-generated client v0.39.0-rc.0-21-ga1dc9dcb" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index f74d0a78..334117de 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -604,6 +604,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/v1alpha1_data_volume_blank_image.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_blank_image.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeBlankImage.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_checkpoint.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_checkpoint.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeCheckpoint.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSource.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index eb4e8fa0..2186bbe0 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -209,6 +209,7 @@ from .models.v1_watchdog import V1Watchdog from .models.v1alpha1_condition import V1alpha1Condition from .models.v1alpha1_data_volume_blank_image import V1alpha1DataVolumeBlankImage +from .models.v1alpha1_data_volume_checkpoint import V1alpha1DataVolumeCheckpoint from .models.v1alpha1_data_volume_source import V1alpha1DataVolumeSource from .models.v1alpha1_data_volume_source_http import V1alpha1DataVolumeSourceHTTP from .models.v1alpha1_data_volume_source_image_io import V1alpha1DataVolumeSourceImageIO diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 7f09e51d..864189e1 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.38.0-176-gf1b17a22/python' + self.user_agent = 'Swagger-Codegen/v0.39.0-rc.0-21-ga1dc9dcb/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 6e04c0da..939f7cb0 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.38.0-176-gf1b17a22".\ + "SDK Package Version: v0.39.0-rc.0-21-ga1dc9dcb".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 4a76d0b4..50dbd567 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -209,6 +209,7 @@ from .v1_watchdog import V1Watchdog from .v1alpha1_condition import V1alpha1Condition from .v1alpha1_data_volume_blank_image import V1alpha1DataVolumeBlankImage +from .v1alpha1_data_volume_checkpoint import V1alpha1DataVolumeCheckpoint from .v1alpha1_data_volume_source import V1alpha1DataVolumeSource from .v1alpha1_data_volume_source_http import V1alpha1DataVolumeSourceHTTP from .v1alpha1_data_volume_source_image_io import V1alpha1DataVolumeSourceImageIO diff --git a/kubevirt/models/v1alpha1_data_volume_checkpoint.py b/kubevirt/models/v1alpha1_data_volume_checkpoint.py new file mode 100644 index 00000000..2c323234 --- /dev/null +++ b/kubevirt/models/v1alpha1_data_volume_checkpoint.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1DataVolumeCheckpoint(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'current': 'str', + 'previous': 'str' + } + + attribute_map = { + 'current': 'current', + 'previous': 'previous' + } + + def __init__(self, current=None, previous=None): + """ + V1alpha1DataVolumeCheckpoint - a model defined in Swagger + """ + + self._current = None + self._previous = None + + self.current = current + self.previous = previous + + @property + def current(self): + """ + Gets the current of this V1alpha1DataVolumeCheckpoint. + Current is the identifier of the snapshot created for this checkpoint. + + :return: The current of this V1alpha1DataVolumeCheckpoint. + :rtype: str + """ + return self._current + + @current.setter + def current(self, current): + """ + Sets the current of this V1alpha1DataVolumeCheckpoint. + Current is the identifier of the snapshot created for this checkpoint. + + :param current: The current of this V1alpha1DataVolumeCheckpoint. + :type: str + """ + if current is None: + raise ValueError("Invalid value for `current`, must not be `None`") + + self._current = current + + @property + def previous(self): + """ + Gets the previous of this V1alpha1DataVolumeCheckpoint. + Previous is the identifier of the snapshot from the previous checkpoint. + + :return: The previous of this V1alpha1DataVolumeCheckpoint. + :rtype: str + """ + return self._previous + + @previous.setter + def previous(self, previous): + """ + Sets the previous of this V1alpha1DataVolumeCheckpoint. + Previous is the identifier of the snapshot from the previous checkpoint. + + :param previous: The previous of this V1alpha1DataVolumeCheckpoint. + :type: str + """ + if previous is None: + raise ValueError("Invalid value for `previous`, must not be `None`") + + self._previous = previous + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1DataVolumeCheckpoint): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_data_volume_source_s3.py b/kubevirt/models/v1alpha1_data_volume_source_s3.py index 16d03949..3565e49d 100644 --- a/kubevirt/models/v1alpha1_data_volume_source_s3.py +++ b/kubevirt/models/v1alpha1_data_volume_source_s3.py @@ -31,27 +31,55 @@ class V1alpha1DataVolumeSourceS3(object): and the value is json key in definition. """ swagger_types = { + 'cert_config_map': 'str', 'secret_ref': 'str', 'url': 'str' } attribute_map = { + 'cert_config_map': 'certConfigMap', 'secret_ref': 'secretRef', 'url': 'url' } - def __init__(self, secret_ref=None, url=None): + def __init__(self, cert_config_map=None, secret_ref=None, url=None): """ V1alpha1DataVolumeSourceS3 - a model defined in Swagger """ + self._cert_config_map = None self._secret_ref = None self._url = None + if cert_config_map is not None: + self.cert_config_map = cert_config_map if secret_ref is not None: self.secret_ref = secret_ref self.url = url + @property + def cert_config_map(self): + """ + Gets the cert_config_map of this V1alpha1DataVolumeSourceS3. + CertConfigMap is a configmap reference, containing a Certificate Authority(CA) public key, and a base64 encoded pem certificate + + :return: The cert_config_map of this V1alpha1DataVolumeSourceS3. + :rtype: str + """ + return self._cert_config_map + + @cert_config_map.setter + def cert_config_map(self, cert_config_map): + """ + Sets the cert_config_map of this V1alpha1DataVolumeSourceS3. + CertConfigMap is a configmap reference, containing a Certificate Authority(CA) public key, and a base64 encoded pem certificate + + :param cert_config_map: The cert_config_map of this V1alpha1DataVolumeSourceS3. + :type: str + """ + + self._cert_config_map = cert_config_map + @property def secret_ref(self): """ diff --git a/kubevirt/models/v1alpha1_data_volume_spec.py b/kubevirt/models/v1alpha1_data_volume_spec.py index 2ea351eb..6550f544 100644 --- a/kubevirt/models/v1alpha1_data_volume_spec.py +++ b/kubevirt/models/v1alpha1_data_volume_spec.py @@ -31,31 +31,69 @@ class V1alpha1DataVolumeSpec(object): and the value is json key in definition. """ swagger_types = { + 'checkpoints': 'list[V1alpha1DataVolumeCheckpoint]', 'content_type': 'str', + 'final_checkpoint': 'bool', + 'preallocation': 'bool', 'pvc': 'K8sIoApiCoreV1PersistentVolumeClaimSpec', 'source': 'V1alpha1DataVolumeSource' } attribute_map = { + 'checkpoints': 'checkpoints', 'content_type': 'contentType', + 'final_checkpoint': 'finalCheckpoint', + 'preallocation': 'preallocation', 'pvc': 'pvc', 'source': 'source' } - def __init__(self, content_type=None, pvc=None, source=None): + def __init__(self, checkpoints=None, content_type=None, final_checkpoint=None, preallocation=None, pvc=None, source=None): """ V1alpha1DataVolumeSpec - a model defined in Swagger """ + self._checkpoints = None self._content_type = None + self._final_checkpoint = None + self._preallocation = None self._pvc = None self._source = None + if checkpoints is not None: + self.checkpoints = checkpoints if content_type is not None: self.content_type = content_type + if final_checkpoint is not None: + self.final_checkpoint = final_checkpoint + if preallocation is not None: + self.preallocation = preallocation self.pvc = pvc self.source = source + @property + def checkpoints(self): + """ + Gets the checkpoints of this V1alpha1DataVolumeSpec. + Checkpoints is a list of DataVolumeCheckpoints, representing stages in a multistage import. + + :return: The checkpoints of this V1alpha1DataVolumeSpec. + :rtype: list[V1alpha1DataVolumeCheckpoint] + """ + return self._checkpoints + + @checkpoints.setter + def checkpoints(self, checkpoints): + """ + Sets the checkpoints of this V1alpha1DataVolumeSpec. + Checkpoints is a list of DataVolumeCheckpoints, representing stages in a multistage import. + + :param checkpoints: The checkpoints of this V1alpha1DataVolumeSpec. + :type: list[V1alpha1DataVolumeCheckpoint] + """ + + self._checkpoints = checkpoints + @property def content_type(self): """ @@ -79,6 +117,52 @@ def content_type(self, content_type): self._content_type = content_type + @property + def final_checkpoint(self): + """ + Gets the final_checkpoint of this V1alpha1DataVolumeSpec. + FinalCheckpoint indicates whether the current DataVolumeCheckpoint is the final checkpoint. + + :return: The final_checkpoint of this V1alpha1DataVolumeSpec. + :rtype: bool + """ + return self._final_checkpoint + + @final_checkpoint.setter + def final_checkpoint(self, final_checkpoint): + """ + Sets the final_checkpoint of this V1alpha1DataVolumeSpec. + FinalCheckpoint indicates whether the current DataVolumeCheckpoint is the final checkpoint. + + :param final_checkpoint: The final_checkpoint of this V1alpha1DataVolumeSpec. + :type: bool + """ + + self._final_checkpoint = final_checkpoint + + @property + def preallocation(self): + """ + Gets the preallocation of this V1alpha1DataVolumeSpec. + Preallocation controls whether storage for DataVolumes should be allocated in advance. + + :return: The preallocation of this V1alpha1DataVolumeSpec. + :rtype: bool + """ + return self._preallocation + + @preallocation.setter + def preallocation(self, preallocation): + """ + Sets the preallocation of this V1alpha1DataVolumeSpec. + Preallocation controls whether storage for DataVolumes should be allocated in advance. + + :param preallocation: The preallocation of this V1alpha1DataVolumeSpec. + :type: bool + """ + + self._preallocation = preallocation + @property def pvc(self): """ diff --git a/setup.py b/setup.py index a4e6b148..8ddcfcdb 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.38.0-176-gf1b17a22" +VERSION = "v0.39.0-rc.0-21-ga1dc9dcb" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 337c0cc2..98992e0e 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.38.0-176-gf1b17a22" +"packageVersion": "v0.39.0-rc.0-21-ga1dc9dcb" } diff --git a/test/test_v1alpha1_data_volume_checkpoint.py b/test/test_v1alpha1_data_volume_checkpoint.py new file mode 100644 index 00000000..9c4974f1 --- /dev/null +++ b/test/test_v1alpha1_data_volume_checkpoint.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_data_volume_checkpoint import V1alpha1DataVolumeCheckpoint + + +class TestV1alpha1DataVolumeCheckpoint(unittest.TestCase): + """ V1alpha1DataVolumeCheckpoint unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1DataVolumeCheckpoint(self): + """ + Test V1alpha1DataVolumeCheckpoint + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_data_volume_checkpoint.V1alpha1DataVolumeCheckpoint() + pass + + +if __name__ == '__main__': + unittest.main() From 3b69dbbe830d540e60ba769960e35d261651d91e Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 8 Mar 2021 04:27:51 +0000 Subject: [PATCH 175/521] Client Python update by Travis Build 15983 --- README.md | 3 +- docs/V1FeatureHyperv.md | 2 +- docs/V1SyNICTimer.md | 11 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_feature_hyperv.py | 6 +- kubevirt/models/v1_sy_nic_timer.py | 149 +++++++++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_sy_nic_timer.py | 44 ++++++++ 14 files changed, 220 insertions(+), 10 deletions(-) create mode 100644 docs/V1SyNICTimer.md create mode 100644 kubevirt/models/v1_sy_nic_timer.py create mode 100644 test/test_v1_sy_nic_timer.py diff --git a/README.md b/README.md index c66a4317..382e1897 100644 --- a/README.md +++ b/README.md @@ -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: v0.39.0-rc.0-21-ga1dc9dcb +- Package version: v0.39.0-rc.0-48-gbb286ffa - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -362,6 +362,7 @@ Class | Method | HTTP request | Description - [V1SSHPublicKeyAccessCredentialSource](docs/V1SSHPublicKeyAccessCredentialSource.md) - [V1SecretVolumeSource](docs/V1SecretVolumeSource.md) - [V1ServiceAccountVolumeSource](docs/V1ServiceAccountVolumeSource.md) + - [V1SyNICTimer](docs/V1SyNICTimer.md) - [V1SysprepSource](docs/V1SysprepSource.md) - [V1Timer](docs/V1Timer.md) - [V1UserPasswordAccessCredential](docs/V1UserPasswordAccessCredential.md) diff --git a/docs/V1FeatureHyperv.md b/docs/V1FeatureHyperv.md index 9aa4681b..dedbbc48 100644 --- a/docs/V1FeatureHyperv.md +++ b/docs/V1FeatureHyperv.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **runtime** | [**V1FeatureState**](V1FeatureState.md) | Runtime improves the time accounting to improve scheduling in the guest. Defaults to the machine type setting. | [optional] **spinlocks** | [**V1FeatureSpinlocks**](V1FeatureSpinlocks.md) | Spinlocks allows to configure the spinlock retry attempts. | [optional] **synic** | [**V1FeatureState**](V1FeatureState.md) | SyNIC enables the Synthetic Interrupt Controller. Defaults to the machine type setting. | [optional] -**synictimer** | [**V1FeatureState**](V1FeatureState.md) | SyNICTimer enables Synthetic Interrupt Controller Timers, reducing CPU load. Defaults to the machine type setting. | [optional] +**synictimer** | [**V1SyNICTimer**](V1SyNICTimer.md) | SyNICTimer enables Synthetic Interrupt Controller Timers, reducing CPU load. Defaults to the machine type setting. | [optional] **tlbflush** | [**V1FeatureState**](V1FeatureState.md) | TLBFlush improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. | [optional] **vapic** | [**V1FeatureState**](V1FeatureState.md) | VAPIC improves the paravirtualized handling of interrupts. Defaults to the machine type setting. | [optional] **vendorid** | [**V1FeatureVendorID**](V1FeatureVendorID.md) | VendorID allows setting the hypervisor vendor id. Defaults to the machine type setting. | [optional] diff --git a/docs/V1SyNICTimer.md b/docs/V1SyNICTimer.md new file mode 100644 index 00000000..efe2c7c6 --- /dev/null +++ b/docs/V1SyNICTimer.md @@ -0,0 +1,11 @@ +# V1SyNICTimer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**direct** | [**V1FeatureState**](V1FeatureState.md) | | [optional] +**enabled** | **bool** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 98f703f6..46d07f5e 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.39.0-rc.0-21-ga1dc9dcb" + release_note="Auto-generated client v0.39.0-rc.0-48-gbb286ffa" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 334117de..811e54b9 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -466,6 +466,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_service_account_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_service_account_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ServiceAccountVolumeSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_sy_nic_timer.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sy_nic_timer.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SyNICTimer.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_sysprep_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sysprep_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SysprepSource.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 2186bbe0..0df86a48 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -163,6 +163,7 @@ from .models.v1_ssh_public_key_access_credential_source import V1SSHPublicKeyAccessCredentialSource from .models.v1_secret_volume_source import V1SecretVolumeSource from .models.v1_service_account_volume_source import V1ServiceAccountVolumeSource +from .models.v1_sy_nic_timer import V1SyNICTimer from .models.v1_sysprep_source import V1SysprepSource from .models.v1_timer import V1Timer from .models.v1_user_password_access_credential import V1UserPasswordAccessCredential diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 864189e1..2cae8015 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.39.0-rc.0-21-ga1dc9dcb/python' + self.user_agent = 'Swagger-Codegen/v0.39.0-rc.0-48-gbb286ffa/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 939f7cb0..f278bc98 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.39.0-rc.0-21-ga1dc9dcb".\ + "SDK Package Version: v0.39.0-rc.0-48-gbb286ffa".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 50dbd567..789fd293 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -163,6 +163,7 @@ from .v1_ssh_public_key_access_credential_source import V1SSHPublicKeyAccessCredentialSource from .v1_secret_volume_source import V1SecretVolumeSource from .v1_service_account_volume_source import V1ServiceAccountVolumeSource +from .v1_sy_nic_timer import V1SyNICTimer from .v1_sysprep_source import V1SysprepSource from .v1_timer import V1Timer from .v1_user_password_access_credential import V1UserPasswordAccessCredential diff --git a/kubevirt/models/v1_feature_hyperv.py b/kubevirt/models/v1_feature_hyperv.py index 268783c4..60f673e2 100644 --- a/kubevirt/models/v1_feature_hyperv.py +++ b/kubevirt/models/v1_feature_hyperv.py @@ -40,7 +40,7 @@ class V1FeatureHyperv(object): 'runtime': 'V1FeatureState', 'spinlocks': 'V1FeatureSpinlocks', 'synic': 'V1FeatureState', - 'synictimer': 'V1FeatureState', + 'synictimer': 'V1SyNICTimer', 'tlbflush': 'V1FeatureState', 'vapic': 'V1FeatureState', 'vendorid': 'V1FeatureVendorID', @@ -327,7 +327,7 @@ def synictimer(self): SyNICTimer enables Synthetic Interrupt Controller Timers, reducing CPU load. Defaults to the machine type setting. :return: The synictimer of this V1FeatureHyperv. - :rtype: V1FeatureState + :rtype: V1SyNICTimer """ return self._synictimer @@ -338,7 +338,7 @@ def synictimer(self, synictimer): SyNICTimer enables Synthetic Interrupt Controller Timers, reducing CPU load. Defaults to the machine type setting. :param synictimer: The synictimer of this V1FeatureHyperv. - :type: V1FeatureState + :type: V1SyNICTimer """ self._synictimer = synictimer diff --git a/kubevirt/models/v1_sy_nic_timer.py b/kubevirt/models/v1_sy_nic_timer.py new file mode 100644 index 00000000..65eb5b21 --- /dev/null +++ b/kubevirt/models/v1_sy_nic_timer.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SyNICTimer(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'direct': 'V1FeatureState', + 'enabled': 'bool' + } + + attribute_map = { + 'direct': 'direct', + 'enabled': 'enabled' + } + + def __init__(self, direct=None, enabled=None): + """ + V1SyNICTimer - a model defined in Swagger + """ + + self._direct = None + self._enabled = None + + if direct is not None: + self.direct = direct + if enabled is not None: + self.enabled = enabled + + @property + def direct(self): + """ + Gets the direct of this V1SyNICTimer. + + :return: The direct of this V1SyNICTimer. + :rtype: V1FeatureState + """ + return self._direct + + @direct.setter + def direct(self, direct): + """ + Sets the direct of this V1SyNICTimer. + + :param direct: The direct of this V1SyNICTimer. + :type: V1FeatureState + """ + + self._direct = direct + + @property + def enabled(self): + """ + Gets the enabled of this V1SyNICTimer. + + :return: The enabled of this V1SyNICTimer. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """ + Sets the enabled of this V1SyNICTimer. + + :param enabled: The enabled of this V1SyNICTimer. + :type: bool + """ + + self._enabled = enabled + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1SyNICTimer): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 8ddcfcdb..074e5fd0 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.39.0-rc.0-21-ga1dc9dcb" +VERSION = "v0.39.0-rc.0-48-gbb286ffa" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 98992e0e..6e436bb7 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.39.0-rc.0-21-ga1dc9dcb" +"packageVersion": "v0.39.0-rc.0-48-gbb286ffa" } diff --git a/test/test_v1_sy_nic_timer.py b/test/test_v1_sy_nic_timer.py new file mode 100644 index 00000000..2786ea17 --- /dev/null +++ b/test/test_v1_sy_nic_timer.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_sy_nic_timer import V1SyNICTimer + + +class TestV1SyNICTimer(unittest.TestCase): + """ V1SyNICTimer unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SyNICTimer(self): + """ + Test V1SyNICTimer + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_sy_nic_timer.V1SyNICTimer() + pass + + +if __name__ == '__main__': + unittest.main() From eea893ca256ec8f61db0a9140fe8b97a2c9b1cb1 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Sat, 20 Mar 2021 09:50:55 +0000 Subject: [PATCH 176/521] Client Python update by KubeVirt Prow build 1373201470245048320 --- README.md | 3 +- ...mOpenshiftApiOperatorV1GenerationStatus.md | 15 + docs/V1KubeVirtStatus.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + ...shift_api_operator_v1_generation_status.py | 271 ++++++++++++++++++ kubevirt/models/v1_kube_virt_status.py | 28 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...shift_api_operator_v1_generation_status.py | 44 +++ 14 files changed, 370 insertions(+), 7 deletions(-) create mode 100644 docs/GithubComOpenshiftApiOperatorV1GenerationStatus.md create mode 100644 kubevirt/models/github_com_openshift_api_operator_v1_generation_status.py create mode 100644 test/test_github_com_openshift_api_operator_v1_generation_status.py diff --git a/README.md b/README.md index 382e1897..259624fc 100644 --- a/README.md +++ b/README.md @@ -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: v0.39.0-rc.0-48-gbb286ffa +- Package version: v0.39.0-rc.0-264-ga0c6b32c4 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -213,6 +213,7 @@ Class | Method | HTTP request | Description ## Documentation For Models + - [GithubComOpenshiftApiOperatorV1GenerationStatus](docs/GithubComOpenshiftApiOperatorV1GenerationStatus.md) - [K8sIoApiCoreV1Affinity](docs/K8sIoApiCoreV1Affinity.md) - [K8sIoApiCoreV1DownwardAPIVolumeFile](docs/K8sIoApiCoreV1DownwardAPIVolumeFile.md) - [K8sIoApiCoreV1HTTPGetAction](docs/K8sIoApiCoreV1HTTPGetAction.md) diff --git a/docs/GithubComOpenshiftApiOperatorV1GenerationStatus.md b/docs/GithubComOpenshiftApiOperatorV1GenerationStatus.md new file mode 100644 index 00000000..47660fe7 --- /dev/null +++ b/docs/GithubComOpenshiftApiOperatorV1GenerationStatus.md @@ -0,0 +1,15 @@ +# GithubComOpenshiftApiOperatorV1GenerationStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**group** | **str** | group is the group of the thing you're tracking | +**hash** | **str** | hash is an optional field set for resources without generation that are content sensitive like secrets and configmaps | +**last_generation** | **int** | lastGeneration is the last generation of the workload controller involved | +**name** | **str** | name is the name of the thing you're tracking | +**namespace** | **str** | namespace is where the thing you're tracking is | +**resource** | **str** | resource is the resource type of the thing you're tracking | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1KubeVirtStatus.md b/docs/V1KubeVirtStatus.md index 1265a6e6..089efd18 100644 --- a/docs/V1KubeVirtStatus.md +++ b/docs/V1KubeVirtStatus.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **conditions** | [**list[V1KubeVirtCondition]**](V1KubeVirtCondition.md) | | [optional] +**generations** | [**list[GithubComOpenshiftApiOperatorV1GenerationStatus]**](GithubComOpenshiftApiOperatorV1GenerationStatus.md) | | [optional] **observed_deployment_config** | **str** | | [optional] **observed_deployment_id** | **str** | | [optional] **observed_kube_virt_registry** | **str** | | [optional] diff --git a/git_push.sh b/git_push.sh index 46d07f5e..1c8cf11e 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.39.0-rc.0-48-gbb286ffa" + release_note="Auto-generated client v0.39.0-rc.0-264-ga0c6b32c4" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 811e54b9..93be8934 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -19,6 +19,9 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] INFO io.swagger.codegen.ignore.CodegenIgnoreProcessor - No .swagger-codegen-ignore file found. [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default appVersion set to 1.0.0 [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default version set to 1.0.0 +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/github_com_openshift_api_operator_v1_generation_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_github_com_openshift_api_operator_v1_generation_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/GithubComOpenshiftApiOperatorV1GenerationStatus.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_affinity.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_affinity.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1Affinity.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 0df86a48..06a87fe0 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -14,6 +14,7 @@ from __future__ import absolute_import # import models into sdk package +from .models.github_com_openshift_api_operator_v1_generation_status import GithubComOpenshiftApiOperatorV1GenerationStatus from .models.k8s_io_api_core_v1_affinity import K8sIoApiCoreV1Affinity from .models.k8s_io_api_core_v1_downward_api_volume_file import K8sIoApiCoreV1DownwardAPIVolumeFile from .models.k8s_io_api_core_v1_http_get_action import K8sIoApiCoreV1HTTPGetAction diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 2cae8015..e67a931b 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.39.0-rc.0-48-gbb286ffa/python' + self.user_agent = 'Swagger-Codegen/v0.39.0-rc.0-264-ga0c6b32c4/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index f278bc98..1c6d09ec 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.39.0-rc.0-48-gbb286ffa".\ + "SDK Package Version: v0.39.0-rc.0-264-ga0c6b32c4".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 789fd293..5176d847 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -14,6 +14,7 @@ from __future__ import absolute_import # import models into model package +from .github_com_openshift_api_operator_v1_generation_status import GithubComOpenshiftApiOperatorV1GenerationStatus from .k8s_io_api_core_v1_affinity import K8sIoApiCoreV1Affinity from .k8s_io_api_core_v1_downward_api_volume_file import K8sIoApiCoreV1DownwardAPIVolumeFile from .k8s_io_api_core_v1_http_get_action import K8sIoApiCoreV1HTTPGetAction diff --git a/kubevirt/models/github_com_openshift_api_operator_v1_generation_status.py b/kubevirt/models/github_com_openshift_api_operator_v1_generation_status.py new file mode 100644 index 00000000..df317974 --- /dev/null +++ b/kubevirt/models/github_com_openshift_api_operator_v1_generation_status.py @@ -0,0 +1,271 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class GithubComOpenshiftApiOperatorV1GenerationStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'group': 'str', + 'hash': 'str', + 'last_generation': 'int', + 'name': 'str', + 'namespace': 'str', + 'resource': 'str' + } + + attribute_map = { + 'group': 'group', + 'hash': 'hash', + 'last_generation': 'lastGeneration', + 'name': 'name', + 'namespace': 'namespace', + 'resource': 'resource' + } + + def __init__(self, group=None, hash=None, last_generation=None, name=None, namespace=None, resource=None): + """ + GithubComOpenshiftApiOperatorV1GenerationStatus - a model defined in Swagger + """ + + self._group = None + self._hash = None + self._last_generation = None + self._name = None + self._namespace = None + self._resource = None + + self.group = group + self.hash = hash + self.last_generation = last_generation + self.name = name + self.namespace = namespace + self.resource = resource + + @property + def group(self): + """ + Gets the group of this GithubComOpenshiftApiOperatorV1GenerationStatus. + group is the group of the thing you're tracking + + :return: The group of this GithubComOpenshiftApiOperatorV1GenerationStatus. + :rtype: str + """ + return self._group + + @group.setter + def group(self, group): + """ + Sets the group of this GithubComOpenshiftApiOperatorV1GenerationStatus. + group is the group of the thing you're tracking + + :param group: The group of this GithubComOpenshiftApiOperatorV1GenerationStatus. + :type: str + """ + if group is None: + raise ValueError("Invalid value for `group`, must not be `None`") + + self._group = group + + @property + def hash(self): + """ + Gets the hash of this GithubComOpenshiftApiOperatorV1GenerationStatus. + hash is an optional field set for resources without generation that are content sensitive like secrets and configmaps + + :return: The hash of this GithubComOpenshiftApiOperatorV1GenerationStatus. + :rtype: str + """ + return self._hash + + @hash.setter + def hash(self, hash): + """ + Sets the hash of this GithubComOpenshiftApiOperatorV1GenerationStatus. + hash is an optional field set for resources without generation that are content sensitive like secrets and configmaps + + :param hash: The hash of this GithubComOpenshiftApiOperatorV1GenerationStatus. + :type: str + """ + if hash is None: + raise ValueError("Invalid value for `hash`, must not be `None`") + + self._hash = hash + + @property + def last_generation(self): + """ + Gets the last_generation of this GithubComOpenshiftApiOperatorV1GenerationStatus. + lastGeneration is the last generation of the workload controller involved + + :return: The last_generation of this GithubComOpenshiftApiOperatorV1GenerationStatus. + :rtype: int + """ + return self._last_generation + + @last_generation.setter + def last_generation(self, last_generation): + """ + Sets the last_generation of this GithubComOpenshiftApiOperatorV1GenerationStatus. + lastGeneration is the last generation of the workload controller involved + + :param last_generation: The last_generation of this GithubComOpenshiftApiOperatorV1GenerationStatus. + :type: int + """ + if last_generation is None: + raise ValueError("Invalid value for `last_generation`, must not be `None`") + + self._last_generation = last_generation + + @property + def name(self): + """ + Gets the name of this GithubComOpenshiftApiOperatorV1GenerationStatus. + name is the name of the thing you're tracking + + :return: The name of this GithubComOpenshiftApiOperatorV1GenerationStatus. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this GithubComOpenshiftApiOperatorV1GenerationStatus. + name is the name of the thing you're tracking + + :param name: The name of this GithubComOpenshiftApiOperatorV1GenerationStatus. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def namespace(self): + """ + Gets the namespace of this GithubComOpenshiftApiOperatorV1GenerationStatus. + namespace is where the thing you're tracking is + + :return: The namespace of this GithubComOpenshiftApiOperatorV1GenerationStatus. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """ + Sets the namespace of this GithubComOpenshiftApiOperatorV1GenerationStatus. + namespace is where the thing you're tracking is + + :param namespace: The namespace of this GithubComOpenshiftApiOperatorV1GenerationStatus. + :type: str + """ + if namespace is None: + raise ValueError("Invalid value for `namespace`, must not be `None`") + + self._namespace = namespace + + @property + def resource(self): + """ + Gets the resource of this GithubComOpenshiftApiOperatorV1GenerationStatus. + resource is the resource type of the thing you're tracking + + :return: The resource of this GithubComOpenshiftApiOperatorV1GenerationStatus. + :rtype: str + """ + return self._resource + + @resource.setter + def resource(self, resource): + """ + Sets the resource of this GithubComOpenshiftApiOperatorV1GenerationStatus. + resource is the resource type of the thing you're tracking + + :param resource: The resource of this GithubComOpenshiftApiOperatorV1GenerationStatus. + :type: str + """ + if resource is None: + raise ValueError("Invalid value for `resource`, must not be `None`") + + self._resource = resource + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, GithubComOpenshiftApiOperatorV1GenerationStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kube_virt_status.py b/kubevirt/models/v1_kube_virt_status.py index d7a4243e..b1117904 100644 --- a/kubevirt/models/v1_kube_virt_status.py +++ b/kubevirt/models/v1_kube_virt_status.py @@ -32,6 +32,7 @@ class V1KubeVirtStatus(object): """ swagger_types = { 'conditions': 'list[V1KubeVirtCondition]', + 'generations': 'list[GithubComOpenshiftApiOperatorV1GenerationStatus]', 'observed_deployment_config': 'str', 'observed_deployment_id': 'str', 'observed_kube_virt_registry': 'str', @@ -47,6 +48,7 @@ class V1KubeVirtStatus(object): attribute_map = { 'conditions': 'conditions', + 'generations': 'generations', 'observed_deployment_config': 'observedDeploymentConfig', 'observed_deployment_id': 'observedDeploymentID', 'observed_kube_virt_registry': 'observedKubeVirtRegistry', @@ -60,12 +62,13 @@ class V1KubeVirtStatus(object): 'target_kube_virt_version': 'targetKubeVirtVersion' } - def __init__(self, conditions=None, observed_deployment_config=None, observed_deployment_id=None, observed_kube_virt_registry=None, observed_kube_virt_version=None, operator_version=None, outdated_virtual_machine_instance_workloads=None, phase=None, target_deployment_config=None, target_deployment_id=None, target_kube_virt_registry=None, target_kube_virt_version=None): + def __init__(self, conditions=None, generations=None, observed_deployment_config=None, observed_deployment_id=None, observed_kube_virt_registry=None, observed_kube_virt_version=None, operator_version=None, outdated_virtual_machine_instance_workloads=None, phase=None, target_deployment_config=None, target_deployment_id=None, target_kube_virt_registry=None, target_kube_virt_version=None): """ V1KubeVirtStatus - a model defined in Swagger """ self._conditions = None + self._generations = None self._observed_deployment_config = None self._observed_deployment_id = None self._observed_kube_virt_registry = None @@ -80,6 +83,8 @@ def __init__(self, conditions=None, observed_deployment_config=None, observed_de if conditions is not None: self.conditions = conditions + if generations is not None: + self.generations = generations if observed_deployment_config is not None: self.observed_deployment_config = observed_deployment_config if observed_deployment_id is not None: @@ -124,6 +129,27 @@ def conditions(self, conditions): self._conditions = conditions + @property + def generations(self): + """ + Gets the generations of this V1KubeVirtStatus. + + :return: The generations of this V1KubeVirtStatus. + :rtype: list[GithubComOpenshiftApiOperatorV1GenerationStatus] + """ + return self._generations + + @generations.setter + def generations(self, generations): + """ + Sets the generations of this V1KubeVirtStatus. + + :param generations: The generations of this V1KubeVirtStatus. + :type: list[GithubComOpenshiftApiOperatorV1GenerationStatus] + """ + + self._generations = generations + @property def observed_deployment_config(self): """ diff --git a/setup.py b/setup.py index 074e5fd0..16d71e61 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.39.0-rc.0-48-gbb286ffa" +VERSION = "v0.39.0-rc.0-264-ga0c6b32c4" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 6e436bb7..dd3934c2 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.39.0-rc.0-48-gbb286ffa" +"packageVersion": "v0.39.0-rc.0-264-ga0c6b32c4" } diff --git a/test/test_github_com_openshift_api_operator_v1_generation_status.py b/test/test_github_com_openshift_api_operator_v1_generation_status.py new file mode 100644 index 00000000..816bfaa0 --- /dev/null +++ b/test/test_github_com_openshift_api_operator_v1_generation_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.github_com_openshift_api_operator_v1_generation_status import GithubComOpenshiftApiOperatorV1GenerationStatus + + +class TestGithubComOpenshiftApiOperatorV1GenerationStatus(unittest.TestCase): + """ GithubComOpenshiftApiOperatorV1GenerationStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGithubComOpenshiftApiOperatorV1GenerationStatus(self): + """ + Test GithubComOpenshiftApiOperatorV1GenerationStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.github_com_openshift_api_operator_v1_generation_status.GithubComOpenshiftApiOperatorV1GenerationStatus() + pass + + +if __name__ == '__main__': + unittest.main() From 306a9c9a509888dabd2b64100239a31cfdd6022f Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 23 Mar 2021 18:06:16 +0000 Subject: [PATCH 177/521] Client Python update by KubeVirt Prow build 1374407542989393921 --- README.md | 2 +- docs/V1Disk.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_disk.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 259624fc..44ac9608 100644 --- a/README.md +++ b/README.md @@ -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: v0.39.0-rc.0-264-ga0c6b32c4 +- Package version: v0.39.0-rc.0-301-g5be2dd80f - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Disk.md b/docs/V1Disk.md index e445793f..1d7911d8 100644 --- a/docs/V1Disk.md +++ b/docs/V1Disk.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **boot_order** | **int** | BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each disk or interface that has a boot order must have a unique value. Disks without a boot order are not tried if a disk with a boot order exists. | [optional] -**cache** | **str** | Cache specifies which kvm disk cache mode should be used. | [optional] +**cache** | **str** | Cache specifies which kvm disk cache mode should be used. Supported values are: CacheNone, CacheWriteThrough. | [optional] **cdrom** | [**V1CDRomTarget**](V1CDRomTarget.md) | Attach a volume as a cdrom to the vmi. | [optional] **dedicated_io_thread** | **bool** | dedicatedIOThread indicates this disk should have an exclusive IO Thread. Enabling this implies useIOThreads = true. Defaults to false. | [optional] **disk** | [**V1DiskTarget**](V1DiskTarget.md) | Attach a volume as a disk to the vmi. | [optional] diff --git a/git_push.sh b/git_push.sh index 1c8cf11e..9093eedd 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.39.0-rc.0-264-ga0c6b32c4" + release_note="Auto-generated client v0.39.0-rc.0-301-g5be2dd80f" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index e67a931b..15e06733 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.39.0-rc.0-264-ga0c6b32c4/python' + self.user_agent = 'Swagger-Codegen/v0.39.0-rc.0-301-g5be2dd80f/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 1c6d09ec..cf6d469d 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.39.0-rc.0-264-ga0c6b32c4".\ + "SDK Package Version: v0.39.0-rc.0-301-g5be2dd80f".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_disk.py b/kubevirt/models/v1_disk.py index 0cdf7c1e..dd350bc5 100644 --- a/kubevirt/models/v1_disk.py +++ b/kubevirt/models/v1_disk.py @@ -124,7 +124,7 @@ def boot_order(self, boot_order): def cache(self): """ Gets the cache of this V1Disk. - Cache specifies which kvm disk cache mode should be used. + Cache specifies which kvm disk cache mode should be used. Supported values are: CacheNone, CacheWriteThrough. :return: The cache of this V1Disk. :rtype: str @@ -135,7 +135,7 @@ def cache(self): def cache(self, cache): """ Sets the cache of this V1Disk. - Cache specifies which kvm disk cache mode should be used. + Cache specifies which kvm disk cache mode should be used. Supported values are: CacheNone, CacheWriteThrough. :param cache: The cache of this V1Disk. :type: str diff --git a/setup.py b/setup.py index 16d71e61..1856048e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.39.0-rc.0-264-ga0c6b32c4" +VERSION = "v0.39.0-rc.0-301-g5be2dd80f" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index dd3934c2..2022225e 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.39.0-rc.0-264-ga0c6b32c4" +"packageVersion": "v0.39.0-rc.0-301-g5be2dd80f" } From 6568c90217a774f8ac41872ac9e7c2a745566885 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 23 Mar 2021 18:21:08 +0000 Subject: [PATCH 178/521] Client Python update by KubeVirt Prow build 1374407040079761408 --- README.md | 2 +- docs/V1Disk.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_disk.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 44ac9608..1554be38 100644 --- a/README.md +++ b/README.md @@ -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: v0.39.0-rc.0-301-g5be2dd80f +- Package version: v0.39.0-rc.0-299-g998935118 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Disk.md b/docs/V1Disk.md index 1d7911d8..e445793f 100644 --- a/docs/V1Disk.md +++ b/docs/V1Disk.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **boot_order** | **int** | BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each disk or interface that has a boot order must have a unique value. Disks without a boot order are not tried if a disk with a boot order exists. | [optional] -**cache** | **str** | Cache specifies which kvm disk cache mode should be used. Supported values are: CacheNone, CacheWriteThrough. | [optional] +**cache** | **str** | Cache specifies which kvm disk cache mode should be used. | [optional] **cdrom** | [**V1CDRomTarget**](V1CDRomTarget.md) | Attach a volume as a cdrom to the vmi. | [optional] **dedicated_io_thread** | **bool** | dedicatedIOThread indicates this disk should have an exclusive IO Thread. Enabling this implies useIOThreads = true. Defaults to false. | [optional] **disk** | [**V1DiskTarget**](V1DiskTarget.md) | Attach a volume as a disk to the vmi. | [optional] diff --git a/git_push.sh b/git_push.sh index 9093eedd..b6e245ec 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.39.0-rc.0-301-g5be2dd80f" + release_note="Auto-generated client v0.39.0-rc.0-299-g998935118" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 15e06733..6f7c8589 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.39.0-rc.0-301-g5be2dd80f/python' + self.user_agent = 'Swagger-Codegen/v0.39.0-rc.0-299-g998935118/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index cf6d469d..3f3413a6 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.39.0-rc.0-301-g5be2dd80f".\ + "SDK Package Version: v0.39.0-rc.0-299-g998935118".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_disk.py b/kubevirt/models/v1_disk.py index dd350bc5..0cdf7c1e 100644 --- a/kubevirt/models/v1_disk.py +++ b/kubevirt/models/v1_disk.py @@ -124,7 +124,7 @@ def boot_order(self, boot_order): def cache(self): """ Gets the cache of this V1Disk. - Cache specifies which kvm disk cache mode should be used. Supported values are: CacheNone, CacheWriteThrough. + Cache specifies which kvm disk cache mode should be used. :return: The cache of this V1Disk. :rtype: str @@ -135,7 +135,7 @@ def cache(self): def cache(self, cache): """ Sets the cache of this V1Disk. - Cache specifies which kvm disk cache mode should be used. Supported values are: CacheNone, CacheWriteThrough. + Cache specifies which kvm disk cache mode should be used. :param cache: The cache of this V1Disk. :type: str diff --git a/setup.py b/setup.py index 1856048e..28e2b577 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.39.0-rc.0-301-g5be2dd80f" +VERSION = "v0.39.0-rc.0-299-g998935118" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 2022225e..2748cb12 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.39.0-rc.0-301-g5be2dd80f" +"packageVersion": "v0.39.0-rc.0-299-g998935118" } From ec6b8a6b7d4df9ef150d8343ddbc1e39a1eb82c6 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 23 Mar 2021 19:02:43 +0000 Subject: [PATCH 179/521] Client Python update by KubeVirt Prow build 1374423774358671360 --- README.md | 2 +- docs/V1Disk.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_disk.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 1554be38..7fc11974 100644 --- a/README.md +++ b/README.md @@ -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: v0.39.0-rc.0-299-g998935118 +- Package version: v0.39.0-rc.0-303-ga0b3b621e - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Disk.md b/docs/V1Disk.md index e445793f..1d7911d8 100644 --- a/docs/V1Disk.md +++ b/docs/V1Disk.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **boot_order** | **int** | BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each disk or interface that has a boot order must have a unique value. Disks without a boot order are not tried if a disk with a boot order exists. | [optional] -**cache** | **str** | Cache specifies which kvm disk cache mode should be used. | [optional] +**cache** | **str** | Cache specifies which kvm disk cache mode should be used. Supported values are: CacheNone, CacheWriteThrough. | [optional] **cdrom** | [**V1CDRomTarget**](V1CDRomTarget.md) | Attach a volume as a cdrom to the vmi. | [optional] **dedicated_io_thread** | **bool** | dedicatedIOThread indicates this disk should have an exclusive IO Thread. Enabling this implies useIOThreads = true. Defaults to false. | [optional] **disk** | [**V1DiskTarget**](V1DiskTarget.md) | Attach a volume as a disk to the vmi. | [optional] diff --git a/git_push.sh b/git_push.sh index b6e245ec..62bffd11 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.39.0-rc.0-299-g998935118" + release_note="Auto-generated client v0.39.0-rc.0-303-ga0b3b621e" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 6f7c8589..a0970d5a 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.39.0-rc.0-299-g998935118/python' + self.user_agent = 'Swagger-Codegen/v0.39.0-rc.0-303-ga0b3b621e/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 3f3413a6..6a17efef 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.39.0-rc.0-299-g998935118".\ + "SDK Package Version: v0.39.0-rc.0-303-ga0b3b621e".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_disk.py b/kubevirt/models/v1_disk.py index 0cdf7c1e..dd350bc5 100644 --- a/kubevirt/models/v1_disk.py +++ b/kubevirt/models/v1_disk.py @@ -124,7 +124,7 @@ def boot_order(self, boot_order): def cache(self): """ Gets the cache of this V1Disk. - Cache specifies which kvm disk cache mode should be used. + Cache specifies which kvm disk cache mode should be used. Supported values are: CacheNone, CacheWriteThrough. :return: The cache of this V1Disk. :rtype: str @@ -135,7 +135,7 @@ def cache(self): def cache(self, cache): """ Sets the cache of this V1Disk. - Cache specifies which kvm disk cache mode should be used. + Cache specifies which kvm disk cache mode should be used. Supported values are: CacheNone, CacheWriteThrough. :param cache: The cache of this V1Disk. :type: str diff --git a/setup.py b/setup.py index 28e2b577..bf480d7f 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.39.0-rc.0-299-g998935118" +VERSION = "v0.39.0-rc.0-303-ga0b3b621e" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 2748cb12..38fcf8a1 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.39.0-rc.0-299-g998935118" +"packageVersion": "v0.39.0-rc.0-303-ga0b3b621e" } From c07ef465ece28da4ffbe1e9646ce81ce28401bd0 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 26 Mar 2021 21:05:30 +0000 Subject: [PATCH 180/521] Client Python update by KubeVirt Prow build 1375544912631566336 --- README.md | 2 +- docs/V1Devices.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_devices.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 7fc11974..f1b298c9 100644 --- a/README.md +++ b/README.md @@ -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: v0.39.0-rc.0-303-ga0b3b621e +- Package version: v0.39.0-rc.0-372-g397465ff9 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index 15d7e308..0c2c4d7f 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **autoattach_mem_balloon** | **bool** | Whether to attach the Memory balloon device with default period. Period can be adjusted in virt-config. Defaults to true. | [optional] **autoattach_pod_interface** | **bool** | Whether to attach a pod network interface. Defaults to true. | [optional] **autoattach_serial_console** | **bool** | Whether to attach the default serial console or not. Serial console access will not be available if set to false. Defaults to true. | [optional] -**block_multi_queue** | **bool** | Whether or not to enable virtio multi-queue for block devices | [optional] +**block_multi_queue** | **bool** | Whether or not to enable virtio multi-queue for block devices. Defaults to false. | [optional] **disable_hotplug** | **bool** | DisableHotplug disabled the ability to hotplug disks. | [optional] **disks** | [**list[V1Disk]**](V1Disk.md) | Disks describes disks, cdroms, floppy and luns which are connected to the vmi. | [optional] **filesystems** | [**list[V1Filesystem]**](V1Filesystem.md) | Filesystems describes filesystem which is connected to the vmi. | [optional] diff --git a/git_push.sh b/git_push.sh index 62bffd11..9afbadd9 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.39.0-rc.0-303-ga0b3b621e" + release_note="Auto-generated client v0.39.0-rc.0-372-g397465ff9" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index a0970d5a..5c4b24b3 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.39.0-rc.0-303-ga0b3b621e/python' + self.user_agent = 'Swagger-Codegen/v0.39.0-rc.0-372-g397465ff9/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 6a17efef..8e0b64b1 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.39.0-rc.0-303-ga0b3b621e".\ + "SDK Package Version: v0.39.0-rc.0-372-g397465ff9".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index dc8feae9..275601f8 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -219,7 +219,7 @@ def autoattach_serial_console(self, autoattach_serial_console): def block_multi_queue(self): """ Gets the block_multi_queue of this V1Devices. - Whether or not to enable virtio multi-queue for block devices + Whether or not to enable virtio multi-queue for block devices. Defaults to false. :return: The block_multi_queue of this V1Devices. :rtype: bool @@ -230,7 +230,7 @@ def block_multi_queue(self): def block_multi_queue(self, block_multi_queue): """ Sets the block_multi_queue of this V1Devices. - Whether or not to enable virtio multi-queue for block devices + Whether or not to enable virtio multi-queue for block devices. Defaults to false. :param block_multi_queue: The block_multi_queue of this V1Devices. :type: bool diff --git a/setup.py b/setup.py index bf480d7f..393e968e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.39.0-rc.0-303-ga0b3b621e" +VERSION = "v0.39.0-rc.0-372-g397465ff9" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 38fcf8a1..61e62519 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.39.0-rc.0-303-ga0b3b621e" +"packageVersion": "v0.39.0-rc.0-372-g397465ff9" } From 915bb26462f8d4f12eae61cae59f30cf49155f61 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Mon, 29 Mar 2021 17:00:20 +0000 Subject: [PATCH 181/521] Client Python update by KubeVirt Prow build 1376550036380323840 --- README.md | 2 +- docs/V1KubeVirtConfiguration.md | 2 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_kube_virt_configuration.py | 54 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 61 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f1b298c9..d7d2dea8 100644 --- a/README.md +++ b/README.md @@ -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: v0.39.0-rc.0-372-g397465ff9 +- Package version: v0.39.0-rc.0-396-g5cc34796f - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index 9422b3a1..4c247384 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -11,7 +11,9 @@ Name | Type | Description | Notes **machine_type** | **str** | | [optional] **mem_balloon_stats_period** | **int** | | [optional] **migrations** | [**V1MigrationConfiguration**](V1MigrationConfiguration.md) | | [optional] +**min_cpu_model** | **str** | | [optional] **network** | [**V1NetworkConfiguration**](V1NetworkConfiguration.md) | | [optional] +**obsolete_cpu_models** | **dict(str, bool)** | | [optional] **ovmf_path** | **str** | | [optional] **permitted_host_devices** | [**V1PermittedHostDevices**](V1PermittedHostDevices.md) | | [optional] **selinux_launcher_type** | **str** | | [optional] diff --git a/git_push.sh b/git_push.sh index 9afbadd9..6dc4a712 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.39.0-rc.0-372-g397465ff9" + release_note="Auto-generated client v0.39.0-rc.0-396-g5cc34796f" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 5c4b24b3..b278d618 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.39.0-rc.0-372-g397465ff9/python' + self.user_agent = 'Swagger-Codegen/v0.39.0-rc.0-396-g5cc34796f/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 8e0b64b1..84fffbca 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.39.0-rc.0-372-g397465ff9".\ + "SDK Package Version: v0.39.0-rc.0-396-g5cc34796f".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index afcf9370..38d39863 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -39,7 +39,9 @@ class V1KubeVirtConfiguration(object): 'machine_type': 'str', 'mem_balloon_stats_period': 'int', 'migrations': 'V1MigrationConfiguration', + 'min_cpu_model': 'str', 'network': 'V1NetworkConfiguration', + 'obsolete_cpu_models': 'dict(str, bool)', 'ovmf_path': 'str', 'permitted_host_devices': 'V1PermittedHostDevices', 'selinux_launcher_type': 'str', @@ -56,7 +58,9 @@ class V1KubeVirtConfiguration(object): 'machine_type': 'machineType', 'mem_balloon_stats_period': 'memBalloonStatsPeriod', 'migrations': 'migrations', + 'min_cpu_model': 'minCPUModel', 'network': 'network', + 'obsolete_cpu_models': 'obsoleteCPUModels', 'ovmf_path': 'ovmfPath', 'permitted_host_devices': 'permittedHostDevices', 'selinux_launcher_type': 'selinuxLauncherType', @@ -64,7 +68,7 @@ class V1KubeVirtConfiguration(object): 'supported_guest_agent_versions': 'supportedGuestAgentVersions' } - def __init__(self, cpu_model=None, cpu_request=None, developer_configuration=None, emulated_machines=None, image_pull_policy=None, machine_type=None, mem_balloon_stats_period=None, migrations=None, network=None, ovmf_path=None, permitted_host_devices=None, selinux_launcher_type=None, smbios=None, supported_guest_agent_versions=None): + def __init__(self, cpu_model=None, cpu_request=None, developer_configuration=None, emulated_machines=None, image_pull_policy=None, machine_type=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, selinux_launcher_type=None, smbios=None, supported_guest_agent_versions=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ @@ -77,7 +81,9 @@ def __init__(self, cpu_model=None, cpu_request=None, developer_configuration=Non self._machine_type = None self._mem_balloon_stats_period = None self._migrations = None + self._min_cpu_model = None self._network = None + self._obsolete_cpu_models = None self._ovmf_path = None self._permitted_host_devices = None self._selinux_launcher_type = None @@ -100,8 +106,12 @@ def __init__(self, cpu_model=None, cpu_request=None, developer_configuration=Non self.mem_balloon_stats_period = mem_balloon_stats_period if migrations is not None: self.migrations = migrations + if min_cpu_model is not None: + self.min_cpu_model = min_cpu_model if network is not None: self.network = network + if obsolete_cpu_models is not None: + self.obsolete_cpu_models = obsolete_cpu_models if ovmf_path is not None: self.ovmf_path = ovmf_path if permitted_host_devices is not None: @@ -281,6 +291,27 @@ def migrations(self, migrations): self._migrations = migrations + @property + def min_cpu_model(self): + """ + Gets the min_cpu_model of this V1KubeVirtConfiguration. + + :return: The min_cpu_model of this V1KubeVirtConfiguration. + :rtype: str + """ + return self._min_cpu_model + + @min_cpu_model.setter + def min_cpu_model(self, min_cpu_model): + """ + Sets the min_cpu_model of this V1KubeVirtConfiguration. + + :param min_cpu_model: The min_cpu_model of this V1KubeVirtConfiguration. + :type: str + """ + + self._min_cpu_model = min_cpu_model + @property def network(self): """ @@ -302,6 +333,27 @@ def network(self, network): self._network = network + @property + def obsolete_cpu_models(self): + """ + Gets the obsolete_cpu_models of this V1KubeVirtConfiguration. + + :return: The obsolete_cpu_models of this V1KubeVirtConfiguration. + :rtype: dict(str, bool) + """ + return self._obsolete_cpu_models + + @obsolete_cpu_models.setter + def obsolete_cpu_models(self, obsolete_cpu_models): + """ + Sets the obsolete_cpu_models of this V1KubeVirtConfiguration. + + :param obsolete_cpu_models: The obsolete_cpu_models of this V1KubeVirtConfiguration. + :type: dict(str, bool) + """ + + self._obsolete_cpu_models = obsolete_cpu_models + @property def ovmf_path(self): """ diff --git a/setup.py b/setup.py index 393e968e..404022fa 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.39.0-rc.0-372-g397465ff9" +VERSION = "v0.39.0-rc.0-396-g5cc34796f" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 61e62519..4f975022 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.39.0-rc.0-372-g397465ff9" +"packageVersion": "v0.39.0-rc.0-396-g5cc34796f" } From 64e24e6452321515ebd026281e3f7e2606051cfa Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 6 Apr 2021 00:57:05 +0000 Subject: [PATCH 182/521] Client Python update by KubeVirt Prow build 1379227153815572480 --- README.md | 2 +- docs/DefaultApi.md | 48 ++++++---- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 168 +++++++++++++++++++++++------------ kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 150 insertions(+), 78 deletions(-) diff --git a/README.md b/README.md index d7d2dea8..c0f34529 100644 --- a/README.md +++ b/README.md @@ -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: v0.39.0-rc.0-396-g5cc34796f +- Package version: v0.40.0-rc.0-17-gc98ccc82c - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 2f833275..eebf27a0 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -6000,7 +6000,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1alpha3vm_addvolume** -> str v1alpha3vm_addvolume(name, namespace) +> str v1alpha3vm_addvolume(name, namespace, body) @@ -6018,9 +6018,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1AddVolumeOptions() # V1AddVolumeOptions | try: - api_response = api_instance.v1alpha3vm_addvolume(name, namespace) + api_response = api_instance.v1alpha3vm_addvolume(name, namespace, body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->v1alpha3vm_addvolume: %s\n" % e) @@ -6032,6 +6033,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1AddVolumeOptions**](V1AddVolumeOptions.md)| | ### Return type @@ -6049,7 +6051,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1alpha3vm_removevolume** -> str v1alpha3vm_removevolume(name, namespace) +> str v1alpha3vm_removevolume(name, namespace, body) @@ -6067,9 +6069,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1RemoveVolumeOptions() # V1RemoveVolumeOptions | try: - api_response = api_instance.v1alpha3vm_removevolume(name, namespace) + api_response = api_instance.v1alpha3vm_removevolume(name, namespace, body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->v1alpha3vm_removevolume: %s\n" % e) @@ -6081,6 +6084,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1RemoveVolumeOptions**](V1RemoveVolumeOptions.md)| | ### Return type @@ -6098,7 +6102,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1alpha3vmi_addvolume** -> str v1alpha3vmi_addvolume(name, namespace) +> str v1alpha3vmi_addvolume(name, namespace, body) @@ -6116,9 +6120,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1AddVolumeOptions() # V1AddVolumeOptions | try: - api_response = api_instance.v1alpha3vmi_addvolume(name, namespace) + api_response = api_instance.v1alpha3vmi_addvolume(name, namespace, body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->v1alpha3vmi_addvolume: %s\n" % e) @@ -6130,6 +6135,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1AddVolumeOptions**](V1AddVolumeOptions.md)| | ### Return type @@ -6147,7 +6153,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1alpha3vmi_removevolume** -> str v1alpha3vmi_removevolume(name, namespace) +> str v1alpha3vmi_removevolume(name, namespace, body) @@ -6165,9 +6171,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1RemoveVolumeOptions() # V1RemoveVolumeOptions | try: - api_response = api_instance.v1alpha3vmi_removevolume(name, namespace) + api_response = api_instance.v1alpha3vmi_removevolume(name, namespace, body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->v1alpha3vmi_removevolume: %s\n" % e) @@ -6179,6 +6186,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1RemoveVolumeOptions**](V1RemoveVolumeOptions.md)| | ### Return type @@ -6239,7 +6247,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1vm_addvolume** -> str v1vm_addvolume(name, namespace) +> str v1vm_addvolume(name, namespace, body) @@ -6257,9 +6265,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1AddVolumeOptions() # V1AddVolumeOptions | try: - api_response = api_instance.v1vm_addvolume(name, namespace) + api_response = api_instance.v1vm_addvolume(name, namespace, body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->v1vm_addvolume: %s\n" % e) @@ -6271,6 +6280,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1AddVolumeOptions**](V1AddVolumeOptions.md)| | ### Return type @@ -6288,7 +6298,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1vm_removevolume** -> str v1vm_removevolume(name, namespace) +> str v1vm_removevolume(name, namespace, body) @@ -6306,9 +6316,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1RemoveVolumeOptions() # V1RemoveVolumeOptions | try: - api_response = api_instance.v1vm_removevolume(name, namespace) + api_response = api_instance.v1vm_removevolume(name, namespace, body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->v1vm_removevolume: %s\n" % e) @@ -6320,6 +6331,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1RemoveVolumeOptions**](V1RemoveVolumeOptions.md)| | ### Return type @@ -6337,7 +6349,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1vmi_addvolume** -> str v1vmi_addvolume(name, namespace) +> str v1vmi_addvolume(name, namespace, body) @@ -6355,9 +6367,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1AddVolumeOptions() # V1AddVolumeOptions | try: - api_response = api_instance.v1vmi_addvolume(name, namespace) + api_response = api_instance.v1vmi_addvolume(name, namespace, body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->v1vmi_addvolume: %s\n" % e) @@ -6369,6 +6382,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1AddVolumeOptions**](V1AddVolumeOptions.md)| | ### Return type @@ -6386,7 +6400,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1vmi_removevolume** -> str v1vmi_removevolume(name, namespace) +> str v1vmi_removevolume(name, namespace, body) @@ -6404,9 +6418,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1RemoveVolumeOptions() # V1RemoveVolumeOptions | try: - api_response = api_instance.v1vmi_removevolume(name, namespace) + api_response = api_instance.v1vmi_removevolume(name, namespace, body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->v1vmi_removevolume: %s\n" % e) @@ -6418,6 +6433,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1RemoveVolumeOptions**](V1RemoveVolumeOptions.md)| | ### Return type diff --git a/git_push.sh b/git_push.sh index 6dc4a712..8d8d25a3 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.39.0-rc.0-396-g5cc34796f" + release_note="Auto-generated client v0.40.0-rc.0-17-gc98ccc82c" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index b278d618..39a3ea07 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.39.0-rc.0-396-g5cc34796f/python' + self.user_agent = 'Swagger-Codegen/v0.40.0-rc.0-17-gc98ccc82c/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index ca932383..9dedb1a6 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -12770,7 +12770,7 @@ def v1alpha3get_api_sub_resources_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3vm_addvolume(self, name, namespace, **kwargs): + def v1alpha3vm_addvolume(self, name, namespace, body, **kwargs): """ Add a volume and disk to a running Virtual Machine. This method makes a synchronous HTTP request by default. To make an @@ -12779,24 +12779,25 @@ def v1alpha3vm_addvolume(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vm_addvolume(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3vm_addvolume(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1AddVolumeOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3vm_addvolume_with_http_info(name, namespace, **kwargs) + return self.v1alpha3vm_addvolume_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1alpha3vm_addvolume_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3vm_addvolume_with_http_info(name, namespace, body, **kwargs) return data - def v1alpha3vm_addvolume_with_http_info(self, name, namespace, **kwargs): + def v1alpha3vm_addvolume_with_http_info(self, name, namespace, body, **kwargs): """ Add a volume and disk to a running Virtual Machine. This method makes a synchronous HTTP request by default. To make an @@ -12805,18 +12806,19 @@ def v1alpha3vm_addvolume_with_http_info(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vm_addvolume_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3vm_addvolume_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1AddVolumeOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -12837,6 +12839,9 @@ def v1alpha3vm_addvolume_with_http_info(self, name, namespace, **kwargs): # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vm_addvolume`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3vm_addvolume`") collection_formats = {} @@ -12855,6 +12860,8 @@ def v1alpha3vm_addvolume_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] @@ -12873,7 +12880,7 @@ def v1alpha3vm_addvolume_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3vm_removevolume(self, name, namespace, **kwargs): + def v1alpha3vm_removevolume(self, name, namespace, body, **kwargs): """ Removes a volume and disk from a running Virtual Machine. This method makes a synchronous HTTP request by default. To make an @@ -12882,24 +12889,25 @@ def v1alpha3vm_removevolume(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vm_removevolume(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3vm_removevolume(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1RemoveVolumeOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3vm_removevolume_with_http_info(name, namespace, **kwargs) + return self.v1alpha3vm_removevolume_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1alpha3vm_removevolume_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3vm_removevolume_with_http_info(name, namespace, body, **kwargs) return data - def v1alpha3vm_removevolume_with_http_info(self, name, namespace, **kwargs): + def v1alpha3vm_removevolume_with_http_info(self, name, namespace, body, **kwargs): """ Removes a volume and disk from a running Virtual Machine. This method makes a synchronous HTTP request by default. To make an @@ -12908,18 +12916,19 @@ def v1alpha3vm_removevolume_with_http_info(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vm_removevolume_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3vm_removevolume_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1RemoveVolumeOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -12940,6 +12949,9 @@ def v1alpha3vm_removevolume_with_http_info(self, name, namespace, **kwargs): # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vm_removevolume`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3vm_removevolume`") collection_formats = {} @@ -12958,6 +12970,8 @@ def v1alpha3vm_removevolume_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] @@ -12976,7 +12990,7 @@ def v1alpha3vm_removevolume_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3vmi_addvolume(self, name, namespace, **kwargs): + def v1alpha3vmi_addvolume(self, name, namespace, body, **kwargs): """ Add a volume and disk to a running Virtual Machine Instance This method makes a synchronous HTTP request by default. To make an @@ -12985,24 +12999,25 @@ def v1alpha3vmi_addvolume(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vmi_addvolume(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3vmi_addvolume(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1AddVolumeOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3vmi_addvolume_with_http_info(name, namespace, **kwargs) + return self.v1alpha3vmi_addvolume_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1alpha3vmi_addvolume_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3vmi_addvolume_with_http_info(name, namespace, body, **kwargs) return data - def v1alpha3vmi_addvolume_with_http_info(self, name, namespace, **kwargs): + def v1alpha3vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): """ Add a volume and disk to a running Virtual Machine Instance This method makes a synchronous HTTP request by default. To make an @@ -13011,18 +13026,19 @@ def v1alpha3vmi_addvolume_with_http_info(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vmi_addvolume_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3vmi_addvolume_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1AddVolumeOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -13043,6 +13059,9 @@ def v1alpha3vmi_addvolume_with_http_info(self, name, namespace, **kwargs): # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vmi_addvolume`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3vmi_addvolume`") collection_formats = {} @@ -13061,6 +13080,8 @@ def v1alpha3vmi_addvolume_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] @@ -13079,7 +13100,7 @@ def v1alpha3vmi_addvolume_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3vmi_removevolume(self, name, namespace, **kwargs): + def v1alpha3vmi_removevolume(self, name, namespace, body, **kwargs): """ Removes a volume and disk from a running Virtual Machine Instance This method makes a synchronous HTTP request by default. To make an @@ -13088,24 +13109,25 @@ def v1alpha3vmi_removevolume(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vmi_removevolume(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3vmi_removevolume(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1RemoveVolumeOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3vmi_removevolume_with_http_info(name, namespace, **kwargs) + return self.v1alpha3vmi_removevolume_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1alpha3vmi_removevolume_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3vmi_removevolume_with_http_info(name, namespace, body, **kwargs) return data - def v1alpha3vmi_removevolume_with_http_info(self, name, namespace, **kwargs): + def v1alpha3vmi_removevolume_with_http_info(self, name, namespace, body, **kwargs): """ Removes a volume and disk from a running Virtual Machine Instance This method makes a synchronous HTTP request by default. To make an @@ -13114,18 +13136,19 @@ def v1alpha3vmi_removevolume_with_http_info(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vmi_removevolume_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3vmi_removevolume_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1RemoveVolumeOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -13146,6 +13169,9 @@ def v1alpha3vmi_removevolume_with_http_info(self, name, namespace, **kwargs): # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vmi_removevolume`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3vmi_removevolume`") collection_formats = {} @@ -13164,6 +13190,8 @@ def v1alpha3vmi_removevolume_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] @@ -13274,7 +13302,7 @@ def v1get_api_sub_resources_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1vm_addvolume(self, name, namespace, **kwargs): + def v1vm_addvolume(self, name, namespace, body, **kwargs): """ Add a volume and disk to a running Virtual Machine. This method makes a synchronous HTTP request by default. To make an @@ -13283,24 +13311,25 @@ def v1vm_addvolume(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vm_addvolume(name, namespace, callback=callback_function) + >>> thread = api.v1vm_addvolume(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1AddVolumeOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1vm_addvolume_with_http_info(name, namespace, **kwargs) + return self.v1vm_addvolume_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1vm_addvolume_with_http_info(name, namespace, **kwargs) + (data) = self.v1vm_addvolume_with_http_info(name, namespace, body, **kwargs) return data - def v1vm_addvolume_with_http_info(self, name, namespace, **kwargs): + def v1vm_addvolume_with_http_info(self, name, namespace, body, **kwargs): """ Add a volume and disk to a running Virtual Machine. This method makes a synchronous HTTP request by default. To make an @@ -13309,18 +13338,19 @@ def v1vm_addvolume_with_http_info(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vm_addvolume_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1vm_addvolume_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1AddVolumeOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -13341,6 +13371,9 @@ def v1vm_addvolume_with_http_info(self, name, namespace, **kwargs): # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `v1vm_addvolume`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1vm_addvolume`") collection_formats = {} @@ -13359,6 +13392,8 @@ def v1vm_addvolume_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] @@ -13377,7 +13412,7 @@ def v1vm_addvolume_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1vm_removevolume(self, name, namespace, **kwargs): + def v1vm_removevolume(self, name, namespace, body, **kwargs): """ Removes a volume and disk from a running Virtual Machine. This method makes a synchronous HTTP request by default. To make an @@ -13386,24 +13421,25 @@ def v1vm_removevolume(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vm_removevolume(name, namespace, callback=callback_function) + >>> thread = api.v1vm_removevolume(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1RemoveVolumeOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1vm_removevolume_with_http_info(name, namespace, **kwargs) + return self.v1vm_removevolume_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1vm_removevolume_with_http_info(name, namespace, **kwargs) + (data) = self.v1vm_removevolume_with_http_info(name, namespace, body, **kwargs) return data - def v1vm_removevolume_with_http_info(self, name, namespace, **kwargs): + def v1vm_removevolume_with_http_info(self, name, namespace, body, **kwargs): """ Removes a volume and disk from a running Virtual Machine. This method makes a synchronous HTTP request by default. To make an @@ -13412,18 +13448,19 @@ def v1vm_removevolume_with_http_info(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vm_removevolume_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1vm_removevolume_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1RemoveVolumeOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -13444,6 +13481,9 @@ def v1vm_removevolume_with_http_info(self, name, namespace, **kwargs): # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `v1vm_removevolume`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1vm_removevolume`") collection_formats = {} @@ -13462,6 +13502,8 @@ def v1vm_removevolume_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] @@ -13480,7 +13522,7 @@ def v1vm_removevolume_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1vmi_addvolume(self, name, namespace, **kwargs): + def v1vmi_addvolume(self, name, namespace, body, **kwargs): """ Add a volume and disk to a running Virtual Machine Instance This method makes a synchronous HTTP request by default. To make an @@ -13489,24 +13531,25 @@ def v1vmi_addvolume(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vmi_addvolume(name, namespace, callback=callback_function) + >>> thread = api.v1vmi_addvolume(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1AddVolumeOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1vmi_addvolume_with_http_info(name, namespace, **kwargs) + return self.v1vmi_addvolume_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1vmi_addvolume_with_http_info(name, namespace, **kwargs) + (data) = self.v1vmi_addvolume_with_http_info(name, namespace, body, **kwargs) return data - def v1vmi_addvolume_with_http_info(self, name, namespace, **kwargs): + def v1vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): """ Add a volume and disk to a running Virtual Machine Instance This method makes a synchronous HTTP request by default. To make an @@ -13515,18 +13558,19 @@ def v1vmi_addvolume_with_http_info(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vmi_addvolume_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1vmi_addvolume_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1AddVolumeOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -13547,6 +13591,9 @@ def v1vmi_addvolume_with_http_info(self, name, namespace, **kwargs): # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `v1vmi_addvolume`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1vmi_addvolume`") collection_formats = {} @@ -13565,6 +13612,8 @@ def v1vmi_addvolume_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] @@ -13583,7 +13632,7 @@ def v1vmi_addvolume_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1vmi_removevolume(self, name, namespace, **kwargs): + def v1vmi_removevolume(self, name, namespace, body, **kwargs): """ Removes a volume and disk from a running Virtual Machine Instance This method makes a synchronous HTTP request by default. To make an @@ -13592,24 +13641,25 @@ def v1vmi_removevolume(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vmi_removevolume(name, namespace, callback=callback_function) + >>> thread = api.v1vmi_removevolume(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1RemoveVolumeOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1vmi_removevolume_with_http_info(name, namespace, **kwargs) + return self.v1vmi_removevolume_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1vmi_removevolume_with_http_info(name, namespace, **kwargs) + (data) = self.v1vmi_removevolume_with_http_info(name, namespace, body, **kwargs) return data - def v1vmi_removevolume_with_http_info(self, name, namespace, **kwargs): + def v1vmi_removevolume_with_http_info(self, name, namespace, body, **kwargs): """ Removes a volume and disk from a running Virtual Machine Instance This method makes a synchronous HTTP request by default. To make an @@ -13618,18 +13668,19 @@ def v1vmi_removevolume_with_http_info(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vmi_removevolume_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1vmi_removevolume_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1RemoveVolumeOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -13650,6 +13701,9 @@ def v1vmi_removevolume_with_http_info(self, name, namespace, **kwargs): # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `v1vmi_removevolume`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1vmi_removevolume`") collection_formats = {} @@ -13668,6 +13722,8 @@ def v1vmi_removevolume_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 84fffbca..97464159 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.39.0-rc.0-396-g5cc34796f".\ + "SDK Package Version: v0.40.0-rc.0-17-gc98ccc82c".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index 404022fa..7352d194 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.39.0-rc.0-396-g5cc34796f" +VERSION = "v0.40.0-rc.0-17-gc98ccc82c" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 4f975022..a5b3c536 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.39.0-rc.0-396-g5cc34796f" +"packageVersion": "v0.40.0-rc.0-17-gc98ccc82c" } From 04ae84ab5d8ede237926b289ad7bcf6e0722194c Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 14 Apr 2021 03:23:53 +0000 Subject: [PATCH 183/521] Client Python update by KubeVirt Prow build 1382164005887414272 --- README.md | 2 +- docs/V1PodNetwork.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_pod_network.py | 30 +++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c0f34529..d31e8b0f 100644 --- a/README.md +++ b/README.md @@ -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: v0.40.0-rc.0-17-gc98ccc82c +- Package version: v0.40.0-rc.0-116-g1ed6b509e - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1PodNetwork.md b/docs/V1PodNetwork.md index 14ef98c9..c56eaf48 100644 --- a/docs/V1PodNetwork.md +++ b/docs/V1PodNetwork.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**vm_i_pv6_network_cidr** | **str** | IPv6 CIDR for the vm network. Defaults to fd10:0:2::/120 if not specified. | [optional] **vm_network_cidr** | **str** | CIDR for vm network. Default 10.0.2.0/24 if not specified. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 8d8d25a3..c88dbfc9 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.40.0-rc.0-17-gc98ccc82c" + release_note="Auto-generated client v0.40.0-rc.0-116-g1ed6b509e" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 39a3ea07..21d79de5 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.40.0-rc.0-17-gc98ccc82c/python' + self.user_agent = 'Swagger-Codegen/v0.40.0-rc.0-116-g1ed6b509e/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 97464159..2fa5a53d 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.40.0-rc.0-17-gc98ccc82c".\ + "SDK Package Version: v0.40.0-rc.0-116-g1ed6b509e".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_pod_network.py b/kubevirt/models/v1_pod_network.py index 958b6f57..969d1290 100644 --- a/kubevirt/models/v1_pod_network.py +++ b/kubevirt/models/v1_pod_network.py @@ -31,23 +31,51 @@ class V1PodNetwork(object): and the value is json key in definition. """ swagger_types = { + 'vm_i_pv6_network_cidr': 'str', 'vm_network_cidr': 'str' } attribute_map = { + 'vm_i_pv6_network_cidr': 'vmIPv6NetworkCIDR', 'vm_network_cidr': 'vmNetworkCIDR' } - def __init__(self, vm_network_cidr=None): + def __init__(self, vm_i_pv6_network_cidr=None, vm_network_cidr=None): """ V1PodNetwork - a model defined in Swagger """ + self._vm_i_pv6_network_cidr = None self._vm_network_cidr = None + if vm_i_pv6_network_cidr is not None: + self.vm_i_pv6_network_cidr = vm_i_pv6_network_cidr if vm_network_cidr is not None: self.vm_network_cidr = vm_network_cidr + @property + def vm_i_pv6_network_cidr(self): + """ + Gets the vm_i_pv6_network_cidr of this V1PodNetwork. + IPv6 CIDR for the vm network. Defaults to fd10:0:2::/120 if not specified. + + :return: The vm_i_pv6_network_cidr of this V1PodNetwork. + :rtype: str + """ + return self._vm_i_pv6_network_cidr + + @vm_i_pv6_network_cidr.setter + def vm_i_pv6_network_cidr(self, vm_i_pv6_network_cidr): + """ + Sets the vm_i_pv6_network_cidr of this V1PodNetwork. + IPv6 CIDR for the vm network. Defaults to fd10:0:2::/120 if not specified. + + :param vm_i_pv6_network_cidr: The vm_i_pv6_network_cidr of this V1PodNetwork. + :type: str + """ + + self._vm_i_pv6_network_cidr = vm_i_pv6_network_cidr + @property def vm_network_cidr(self): """ diff --git a/setup.py b/setup.py index 7352d194..d1cecb44 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.40.0-rc.0-17-gc98ccc82c" +VERSION = "v0.40.0-rc.0-116-g1ed6b509e" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index a5b3c536..adf45d7e 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.40.0-rc.0-17-gc98ccc82c" +"packageVersion": "v0.40.0-rc.0-116-g1ed6b509e" } From 8fb3898c326941c8a476f575515ffdec5f3ae6d7 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Sat, 17 Apr 2021 00:19:27 +0000 Subject: [PATCH 184/521] Client Python update by KubeVirt Prow build 1383204864485494784 --- README.md | 3 +- docs/V1CertConfig.md | 11 ++ docs/V1KubeVirtSelfSignConfiguration.md | 8 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_cert_config.py | 153 ++++++++++++++++++ .../v1_kube_virt_self_sign_configuration.py | 68 +++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_cert_config.py | 44 +++++ 14 files changed, 290 insertions(+), 12 deletions(-) create mode 100644 docs/V1CertConfig.md create mode 100644 kubevirt/models/v1_cert_config.py create mode 100644 test/test_v1_cert_config.py diff --git a/README.md b/README.md index d31e8b0f..659a9793 100644 --- a/README.md +++ b/README.md @@ -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: v0.40.0-rc.0-116-g1ed6b509e +- Package version: v0.40.0-rc.0-163-g285ddf078 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -272,6 +272,7 @@ Class | Method | HTTP request | Description - [V1CDRomTarget](docs/V1CDRomTarget.md) - [V1CPU](docs/V1CPU.md) - [V1CPUFeature](docs/V1CPUFeature.md) + - [V1CertConfig](docs/V1CertConfig.md) - [V1Chassis](docs/V1Chassis.md) - [V1Clock](docs/V1Clock.md) - [V1ClockOffsetUTC](docs/V1ClockOffsetUTC.md) diff --git a/docs/V1CertConfig.md b/docs/V1CertConfig.md new file mode 100644 index 00000000..4123fd38 --- /dev/null +++ b/docs/V1CertConfig.md @@ -0,0 +1,11 @@ +# V1CertConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**duration** | [**K8sIoApimachineryPkgApisMetaV1Duration**](K8sIoApimachineryPkgApisMetaV1Duration.md) | The requested 'duration' (i.e. lifetime) of the Certificate. | [optional] +**renew_before** | [**K8sIoApimachineryPkgApisMetaV1Duration**](K8sIoApimachineryPkgApisMetaV1Duration.md) | The amount of time before the currently issued certificate's \"notAfter\" time that we will begin to attempt to renew the certificate. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1KubeVirtSelfSignConfiguration.md b/docs/V1KubeVirtSelfSignConfiguration.md index 035de83c..cf20db45 100644 --- a/docs/V1KubeVirtSelfSignConfiguration.md +++ b/docs/V1KubeVirtSelfSignConfiguration.md @@ -3,9 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ca_overlap_interval** | [**K8sIoApimachineryPkgApisMetaV1Duration**](K8sIoApimachineryPkgApisMetaV1Duration.md) | | [optional] -**ca_rotate_interval** | [**K8sIoApimachineryPkgApisMetaV1Duration**](K8sIoApimachineryPkgApisMetaV1Duration.md) | | [optional] -**cert_rotate_interval** | [**K8sIoApimachineryPkgApisMetaV1Duration**](K8sIoApimachineryPkgApisMetaV1Duration.md) | | [optional] +**ca** | [**V1CertConfig**](V1CertConfig.md) | CA configuration CA certs are kept in the CA bundle as long as they are valid | [optional] +**ca_overlap_interval** | [**K8sIoApimachineryPkgApisMetaV1Duration**](K8sIoApimachineryPkgApisMetaV1Duration.md) | Deprecated. Use CA.Duration and CA.RenewBefore instead | [optional] +**ca_rotate_interval** | [**K8sIoApimachineryPkgApisMetaV1Duration**](K8sIoApimachineryPkgApisMetaV1Duration.md) | Deprecated. Use CA.Duration instead | [optional] +**cert_rotate_interval** | [**K8sIoApimachineryPkgApisMetaV1Duration**](K8sIoApimachineryPkgApisMetaV1Duration.md) | Deprecated. Use Server.Duration instead | [optional] +**server** | [**V1CertConfig**](V1CertConfig.md) | Server configuration Certs are rotated and discarded | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index c88dbfc9..03a7544e 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.40.0-rc.0-116-g1ed6b509e" + release_note="Auto-generated client v0.40.0-rc.0-163-g285ddf078" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 93be8934..f5b32361 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -196,6 +196,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_cpu_feature.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_cpu_feature.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CPUFeature.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_cert_config.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_cert_config.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CertConfig.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_chassis.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_chassis.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Chassis.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 06a87fe0..8102b99f 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -73,6 +73,7 @@ from .models.v1_cd_rom_target import V1CDRomTarget from .models.v1_cpu import V1CPU from .models.v1_cpu_feature import V1CPUFeature +from .models.v1_cert_config import V1CertConfig from .models.v1_chassis import V1Chassis from .models.v1_clock import V1Clock from .models.v1_clock_offset_utc import V1ClockOffsetUTC diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 21d79de5..82fbe3cb 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.40.0-rc.0-116-g1ed6b509e/python' + self.user_agent = 'Swagger-Codegen/v0.40.0-rc.0-163-g285ddf078/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 2fa5a53d..d8a1b410 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.40.0-rc.0-116-g1ed6b509e".\ + "SDK Package Version: v0.40.0-rc.0-163-g285ddf078".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 5176d847..379458d4 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -73,6 +73,7 @@ from .v1_cd_rom_target import V1CDRomTarget from .v1_cpu import V1CPU from .v1_cpu_feature import V1CPUFeature +from .v1_cert_config import V1CertConfig from .v1_chassis import V1Chassis from .v1_clock import V1Clock from .v1_clock_offset_utc import V1ClockOffsetUTC diff --git a/kubevirt/models/v1_cert_config.py b/kubevirt/models/v1_cert_config.py new file mode 100644 index 00000000..c938c09c --- /dev/null +++ b/kubevirt/models/v1_cert_config.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1CertConfig(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'duration': 'K8sIoApimachineryPkgApisMetaV1Duration', + 'renew_before': 'K8sIoApimachineryPkgApisMetaV1Duration' + } + + attribute_map = { + 'duration': 'duration', + 'renew_before': 'renewBefore' + } + + def __init__(self, duration=None, renew_before=None): + """ + V1CertConfig - a model defined in Swagger + """ + + self._duration = None + self._renew_before = None + + if duration is not None: + self.duration = duration + if renew_before is not None: + self.renew_before = renew_before + + @property + def duration(self): + """ + Gets the duration of this V1CertConfig. + The requested 'duration' (i.e. lifetime) of the Certificate. + + :return: The duration of this V1CertConfig. + :rtype: K8sIoApimachineryPkgApisMetaV1Duration + """ + return self._duration + + @duration.setter + def duration(self, duration): + """ + Sets the duration of this V1CertConfig. + The requested 'duration' (i.e. lifetime) of the Certificate. + + :param duration: The duration of this V1CertConfig. + :type: K8sIoApimachineryPkgApisMetaV1Duration + """ + + self._duration = duration + + @property + def renew_before(self): + """ + Gets the renew_before of this V1CertConfig. + The amount of time before the currently issued certificate's \"notAfter\" time that we will begin to attempt to renew the certificate. + + :return: The renew_before of this V1CertConfig. + :rtype: K8sIoApimachineryPkgApisMetaV1Duration + """ + return self._renew_before + + @renew_before.setter + def renew_before(self, renew_before): + """ + Sets the renew_before of this V1CertConfig. + The amount of time before the currently issued certificate's \"notAfter\" time that we will begin to attempt to renew the certificate. + + :param renew_before: The renew_before of this V1CertConfig. + :type: K8sIoApimachineryPkgApisMetaV1Duration + """ + + self._renew_before = renew_before + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1CertConfig): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kube_virt_self_sign_configuration.py b/kubevirt/models/v1_kube_virt_self_sign_configuration.py index fb42414a..5c35939c 100644 --- a/kubevirt/models/v1_kube_virt_self_sign_configuration.py +++ b/kubevirt/models/v1_kube_virt_self_sign_configuration.py @@ -31,37 +31,71 @@ class V1KubeVirtSelfSignConfiguration(object): and the value is json key in definition. """ swagger_types = { + 'ca': 'V1CertConfig', 'ca_overlap_interval': 'K8sIoApimachineryPkgApisMetaV1Duration', 'ca_rotate_interval': 'K8sIoApimachineryPkgApisMetaV1Duration', - 'cert_rotate_interval': 'K8sIoApimachineryPkgApisMetaV1Duration' + 'cert_rotate_interval': 'K8sIoApimachineryPkgApisMetaV1Duration', + 'server': 'V1CertConfig' } attribute_map = { + 'ca': 'ca', 'ca_overlap_interval': 'caOverlapInterval', 'ca_rotate_interval': 'caRotateInterval', - 'cert_rotate_interval': 'certRotateInterval' + 'cert_rotate_interval': 'certRotateInterval', + 'server': 'server' } - def __init__(self, ca_overlap_interval=None, ca_rotate_interval=None, cert_rotate_interval=None): + def __init__(self, ca=None, ca_overlap_interval=None, ca_rotate_interval=None, cert_rotate_interval=None, server=None): """ V1KubeVirtSelfSignConfiguration - a model defined in Swagger """ + self._ca = None self._ca_overlap_interval = None self._ca_rotate_interval = None self._cert_rotate_interval = None + self._server = None + if ca is not None: + self.ca = ca if ca_overlap_interval is not None: self.ca_overlap_interval = ca_overlap_interval if ca_rotate_interval is not None: self.ca_rotate_interval = ca_rotate_interval if cert_rotate_interval is not None: self.cert_rotate_interval = cert_rotate_interval + if server is not None: + self.server = server + + @property + def ca(self): + """ + Gets the ca of this V1KubeVirtSelfSignConfiguration. + CA configuration CA certs are kept in the CA bundle as long as they are valid + + :return: The ca of this V1KubeVirtSelfSignConfiguration. + :rtype: V1CertConfig + """ + return self._ca + + @ca.setter + def ca(self, ca): + """ + Sets the ca of this V1KubeVirtSelfSignConfiguration. + CA configuration CA certs are kept in the CA bundle as long as they are valid + + :param ca: The ca of this V1KubeVirtSelfSignConfiguration. + :type: V1CertConfig + """ + + self._ca = ca @property def ca_overlap_interval(self): """ Gets the ca_overlap_interval of this V1KubeVirtSelfSignConfiguration. + Deprecated. Use CA.Duration and CA.RenewBefore instead :return: The ca_overlap_interval of this V1KubeVirtSelfSignConfiguration. :rtype: K8sIoApimachineryPkgApisMetaV1Duration @@ -72,6 +106,7 @@ def ca_overlap_interval(self): def ca_overlap_interval(self, ca_overlap_interval): """ Sets the ca_overlap_interval of this V1KubeVirtSelfSignConfiguration. + Deprecated. Use CA.Duration and CA.RenewBefore instead :param ca_overlap_interval: The ca_overlap_interval of this V1KubeVirtSelfSignConfiguration. :type: K8sIoApimachineryPkgApisMetaV1Duration @@ -83,6 +118,7 @@ def ca_overlap_interval(self, ca_overlap_interval): def ca_rotate_interval(self): """ Gets the ca_rotate_interval of this V1KubeVirtSelfSignConfiguration. + Deprecated. Use CA.Duration instead :return: The ca_rotate_interval of this V1KubeVirtSelfSignConfiguration. :rtype: K8sIoApimachineryPkgApisMetaV1Duration @@ -93,6 +129,7 @@ def ca_rotate_interval(self): def ca_rotate_interval(self, ca_rotate_interval): """ Sets the ca_rotate_interval of this V1KubeVirtSelfSignConfiguration. + Deprecated. Use CA.Duration instead :param ca_rotate_interval: The ca_rotate_interval of this V1KubeVirtSelfSignConfiguration. :type: K8sIoApimachineryPkgApisMetaV1Duration @@ -104,6 +141,7 @@ def ca_rotate_interval(self, ca_rotate_interval): def cert_rotate_interval(self): """ Gets the cert_rotate_interval of this V1KubeVirtSelfSignConfiguration. + Deprecated. Use Server.Duration instead :return: The cert_rotate_interval of this V1KubeVirtSelfSignConfiguration. :rtype: K8sIoApimachineryPkgApisMetaV1Duration @@ -114,6 +152,7 @@ def cert_rotate_interval(self): def cert_rotate_interval(self, cert_rotate_interval): """ Sets the cert_rotate_interval of this V1KubeVirtSelfSignConfiguration. + Deprecated. Use Server.Duration instead :param cert_rotate_interval: The cert_rotate_interval of this V1KubeVirtSelfSignConfiguration. :type: K8sIoApimachineryPkgApisMetaV1Duration @@ -121,6 +160,29 @@ def cert_rotate_interval(self, cert_rotate_interval): self._cert_rotate_interval = cert_rotate_interval + @property + def server(self): + """ + Gets the server of this V1KubeVirtSelfSignConfiguration. + Server configuration Certs are rotated and discarded + + :return: The server of this V1KubeVirtSelfSignConfiguration. + :rtype: V1CertConfig + """ + return self._server + + @server.setter + def server(self, server): + """ + Sets the server of this V1KubeVirtSelfSignConfiguration. + Server configuration Certs are rotated and discarded + + :param server: The server of this V1KubeVirtSelfSignConfiguration. + :type: V1CertConfig + """ + + self._server = server + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index d1cecb44..9e13caca 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.40.0-rc.0-116-g1ed6b509e" +VERSION = "v0.40.0-rc.0-163-g285ddf078" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index adf45d7e..de5635f4 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.40.0-rc.0-116-g1ed6b509e" +"packageVersion": "v0.40.0-rc.0-163-g285ddf078" } diff --git a/test/test_v1_cert_config.py b/test/test_v1_cert_config.py new file mode 100644 index 00000000..900c6370 --- /dev/null +++ b/test/test_v1_cert_config.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_cert_config import V1CertConfig + + +class TestV1CertConfig(unittest.TestCase): + """ V1CertConfig unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1CertConfig(self): + """ + Test V1CertConfig + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_cert_config.V1CertConfig() + pass + + +if __name__ == '__main__': + unittest.main() From ba15e85905b36af059052f34db1c4a124599e377 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 20 Apr 2021 13:10:24 +0000 Subject: [PATCH 185/521] Client Python update by KubeVirt Prow build 1384484926081994752 --- README.md | 3 +- docs/V1GuestAgentCommandInfo.md | 11 ++ docs/V1KubeVirtConfiguration.md | 2 +- .../V1VirtualMachineInstanceGuestAgentInfo.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + .../models/v1_guest_agent_command_info.py | 150 ++++++++++++++++++ kubevirt/models/v1_kube_virt_configuration.py | 2 + ...rtual_machine_instance_guest_agent_info.py | 30 +++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_guest_agent_command_info.py | 44 +++++ 16 files changed, 250 insertions(+), 8 deletions(-) create mode 100644 docs/V1GuestAgentCommandInfo.md create mode 100644 kubevirt/models/v1_guest_agent_command_info.py create mode 100644 test/test_v1_guest_agent_command_info.py diff --git a/README.md b/README.md index 659a9793..8722622f 100644 --- a/README.md +++ b/README.md @@ -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: v0.40.0-rc.0-163-g285ddf078 +- Package version: v0.40.0-rc.0-192-gbef71b665 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -310,6 +310,7 @@ Class | Method | HTTP request | Description - [V1Firmware](docs/V1Firmware.md) - [V1FloppyTarget](docs/V1FloppyTarget.md) - [V1GPU](docs/V1GPU.md) + - [V1GuestAgentCommandInfo](docs/V1GuestAgentCommandInfo.md) - [V1HPETTimer](docs/V1HPETTimer.md) - [V1HostDevice](docs/V1HostDevice.md) - [V1HostDisk](docs/V1HostDisk.md) diff --git a/docs/V1GuestAgentCommandInfo.md b/docs/V1GuestAgentCommandInfo.md new file mode 100644 index 00000000..5432b5ef --- /dev/null +++ b/docs/V1GuestAgentCommandInfo.md @@ -0,0 +1,11 @@ +# V1GuestAgentCommandInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] +**name** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index 4c247384..34afd259 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **permitted_host_devices** | [**V1PermittedHostDevices**](V1PermittedHostDevices.md) | | [optional] **selinux_launcher_type** | **str** | | [optional] **smbios** | [**V1SMBiosConfiguration**](V1SMBiosConfiguration.md) | | [optional] -**supported_guest_agent_versions** | **list[str]** | | [optional] +**supported_guest_agent_versions** | **list[str]** | deprecated | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceGuestAgentInfo.md b/docs/V1VirtualMachineInstanceGuestAgentInfo.md index f906fa05..a797fb73 100644 --- a/docs/V1VirtualMachineInstanceGuestAgentInfo.md +++ b/docs/V1VirtualMachineInstanceGuestAgentInfo.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **hostname** | **str** | Hostname represents FQDN of a guest | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **os** | [**V1VirtualMachineInstanceGuestOSInfo**](V1VirtualMachineInstanceGuestOSInfo.md) | OS contains the guest operating system information | [optional] +**supported_commands** | [**list[V1GuestAgentCommandInfo]**](V1GuestAgentCommandInfo.md) | Return command list the guest agent supports | [optional] **timezone** | **str** | Timezone is guest os current timezone | [optional] **user_list** | [**list[V1VirtualMachineInstanceGuestOSUser]**](V1VirtualMachineInstanceGuestOSUser.md) | UserList is a list of active guest OS users | [optional] diff --git a/git_push.sh b/git_push.sh index 03a7544e..31f2bfb0 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.40.0-rc.0-163-g285ddf078" + release_note="Auto-generated client v0.40.0-rc.0-192-gbef71b665" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index f5b32361..abd9b7b6 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -310,6 +310,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_gpu.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_gpu.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1GPU.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_guest_agent_command_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_guest_agent_command_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1GuestAgentCommandInfo.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_hpet_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_hpet_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1HPETTimer.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 8102b99f..9ad7a3c2 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -111,6 +111,7 @@ from .models.v1_firmware import V1Firmware from .models.v1_floppy_target import V1FloppyTarget from .models.v1_gpu import V1GPU +from .models.v1_guest_agent_command_info import V1GuestAgentCommandInfo from .models.v1_hpet_timer import V1HPETTimer from .models.v1_host_device import V1HostDevice from .models.v1_host_disk import V1HostDisk diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 82fbe3cb..f8d4814e 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.40.0-rc.0-163-g285ddf078/python' + self.user_agent = 'Swagger-Codegen/v0.40.0-rc.0-192-gbef71b665/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index d8a1b410..3633c4c4 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.40.0-rc.0-163-g285ddf078".\ + "SDK Package Version: v0.40.0-rc.0-192-gbef71b665".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 379458d4..cee5b5ef 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -111,6 +111,7 @@ from .v1_firmware import V1Firmware from .v1_floppy_target import V1FloppyTarget from .v1_gpu import V1GPU +from .v1_guest_agent_command_info import V1GuestAgentCommandInfo from .v1_hpet_timer import V1HPETTimer from .v1_host_device import V1HostDevice from .v1_host_disk import V1HostDisk diff --git a/kubevirt/models/v1_guest_agent_command_info.py b/kubevirt/models/v1_guest_agent_command_info.py new file mode 100644 index 00000000..e4912e6a --- /dev/null +++ b/kubevirt/models/v1_guest_agent_command_info.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1GuestAgentCommandInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'enabled': 'bool', + 'name': 'str' + } + + attribute_map = { + 'enabled': 'enabled', + 'name': 'name' + } + + def __init__(self, enabled=None, name=None): + """ + V1GuestAgentCommandInfo - a model defined in Swagger + """ + + self._enabled = None + self._name = None + + if enabled is not None: + self.enabled = enabled + self.name = name + + @property + def enabled(self): + """ + Gets the enabled of this V1GuestAgentCommandInfo. + + :return: The enabled of this V1GuestAgentCommandInfo. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """ + Sets the enabled of this V1GuestAgentCommandInfo. + + :param enabled: The enabled of this V1GuestAgentCommandInfo. + :type: bool + """ + + self._enabled = enabled + + @property + def name(self): + """ + Gets the name of this V1GuestAgentCommandInfo. + + :return: The name of this V1GuestAgentCommandInfo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1GuestAgentCommandInfo. + + :param name: The name of this V1GuestAgentCommandInfo. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1GuestAgentCommandInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index 38d39863..e29193fb 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -442,6 +442,7 @@ def smbios(self, smbios): def supported_guest_agent_versions(self): """ Gets the supported_guest_agent_versions of this V1KubeVirtConfiguration. + deprecated :return: The supported_guest_agent_versions of this V1KubeVirtConfiguration. :rtype: list[str] @@ -452,6 +453,7 @@ def supported_guest_agent_versions(self): def supported_guest_agent_versions(self, supported_guest_agent_versions): """ Sets the supported_guest_agent_versions of this V1KubeVirtConfiguration. + deprecated :param supported_guest_agent_versions: The supported_guest_agent_versions of this V1KubeVirtConfiguration. :type: list[str] diff --git a/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py b/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py index b6f96060..99fad3bf 100644 --- a/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py +++ b/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py @@ -37,6 +37,7 @@ class V1VirtualMachineInstanceGuestAgentInfo(object): 'hostname': 'str', 'kind': 'str', 'os': 'V1VirtualMachineInstanceGuestOSInfo', + 'supported_commands': 'list[V1GuestAgentCommandInfo]', 'timezone': 'str', 'user_list': 'list[V1VirtualMachineInstanceGuestOSUser]' } @@ -48,11 +49,12 @@ class V1VirtualMachineInstanceGuestAgentInfo(object): 'hostname': 'hostname', 'kind': 'kind', 'os': 'os', + 'supported_commands': 'supportedCommands', 'timezone': 'timezone', 'user_list': 'userList' } - def __init__(self, api_version=None, fs_info=None, guest_agent_version=None, hostname=None, kind=None, os=None, timezone=None, user_list=None): + def __init__(self, api_version=None, fs_info=None, guest_agent_version=None, hostname=None, kind=None, os=None, supported_commands=None, timezone=None, user_list=None): """ V1VirtualMachineInstanceGuestAgentInfo - a model defined in Swagger """ @@ -63,6 +65,7 @@ def __init__(self, api_version=None, fs_info=None, guest_agent_version=None, hos self._hostname = None self._kind = None self._os = None + self._supported_commands = None self._timezone = None self._user_list = None @@ -78,6 +81,8 @@ def __init__(self, api_version=None, fs_info=None, guest_agent_version=None, hos self.kind = kind if os is not None: self.os = os + if supported_commands is not None: + self.supported_commands = supported_commands if timezone is not None: self.timezone = timezone if user_list is not None: @@ -221,6 +226,29 @@ def os(self, os): self._os = os + @property + def supported_commands(self): + """ + Gets the supported_commands of this V1VirtualMachineInstanceGuestAgentInfo. + Return command list the guest agent supports + + :return: The supported_commands of this V1VirtualMachineInstanceGuestAgentInfo. + :rtype: list[V1GuestAgentCommandInfo] + """ + return self._supported_commands + + @supported_commands.setter + def supported_commands(self, supported_commands): + """ + Sets the supported_commands of this V1VirtualMachineInstanceGuestAgentInfo. + Return command list the guest agent supports + + :param supported_commands: The supported_commands of this V1VirtualMachineInstanceGuestAgentInfo. + :type: list[V1GuestAgentCommandInfo] + """ + + self._supported_commands = supported_commands + @property def timezone(self): """ diff --git a/setup.py b/setup.py index 9e13caca..5f2b0830 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.40.0-rc.0-163-g285ddf078" +VERSION = "v0.40.0-rc.0-192-gbef71b665" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index de5635f4..a5648283 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.40.0-rc.0-163-g285ddf078" +"packageVersion": "v0.40.0-rc.0-192-gbef71b665" } diff --git a/test/test_v1_guest_agent_command_info.py b/test/test_v1_guest_agent_command_info.py new file mode 100644 index 00000000..410e87a0 --- /dev/null +++ b/test/test_v1_guest_agent_command_info.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_guest_agent_command_info import V1GuestAgentCommandInfo + + +class TestV1GuestAgentCommandInfo(unittest.TestCase): + """ V1GuestAgentCommandInfo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1GuestAgentCommandInfo(self): + """ + Test V1GuestAgentCommandInfo + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_guest_agent_command_info.V1GuestAgentCommandInfo() + pass + + +if __name__ == '__main__': + unittest.main() From 2dd9d3f6ccfd98749bcb77cf3d4713b8b21b8ee1 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 21 Apr 2021 05:43:31 +0000 Subject: [PATCH 186/521] Client Python update by KubeVirt Prow build 1384735073248481280 --- README.md | 2 +- docs/V1alpha1VirtualMachineSnapshotStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...1alpha1_virtual_machine_snapshot_status.py | 28 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 34 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 8722622f..b258f702 100644 --- a/README.md +++ b/README.md @@ -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: v0.40.0-rc.0-192-gbef71b665 +- Package version: v0.40.0-rc.0-220-gebeba3769 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1alpha1VirtualMachineSnapshotStatus.md b/docs/V1alpha1VirtualMachineSnapshotStatus.md index 3827a3d2..4828c205 100644 --- a/docs/V1alpha1VirtualMachineSnapshotStatus.md +++ b/docs/V1alpha1VirtualMachineSnapshotStatus.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **conditions** | [**list[V1alpha1Condition]**](V1alpha1Condition.md) | | [optional] **creation_time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | | [optional] **error** | [**V1alpha1Error**](V1alpha1Error.md) | | [optional] +**indications** | **list[str]** | | [optional] **ready_to_use** | **bool** | | [optional] **source_uid** | **str** | | [optional] **virtual_machine_snapshot_content_name** | **str** | | [optional] diff --git a/git_push.sh b/git_push.sh index 31f2bfb0..7936dc39 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.40.0-rc.0-192-gbef71b665" + release_note="Auto-generated client v0.40.0-rc.0-220-gebeba3769" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index f8d4814e..907357fb 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.40.0-rc.0-192-gbef71b665/python' + self.user_agent = 'Swagger-Codegen/v0.40.0-rc.0-220-gebeba3769/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 3633c4c4..5d611bc2 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.40.0-rc.0-192-gbef71b665".\ + "SDK Package Version: v0.40.0-rc.0-220-gebeba3769".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py b/kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py index a78431bc..a9702a51 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py +++ b/kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py @@ -34,6 +34,7 @@ class V1alpha1VirtualMachineSnapshotStatus(object): 'conditions': 'list[V1alpha1Condition]', 'creation_time': 'K8sIoApimachineryPkgApisMetaV1Time', 'error': 'V1alpha1Error', + 'indications': 'list[str]', 'ready_to_use': 'bool', 'source_uid': 'str', 'virtual_machine_snapshot_content_name': 'str' @@ -43,12 +44,13 @@ class V1alpha1VirtualMachineSnapshotStatus(object): 'conditions': 'conditions', 'creation_time': 'creationTime', 'error': 'error', + 'indications': 'indications', 'ready_to_use': 'readyToUse', 'source_uid': 'sourceUID', 'virtual_machine_snapshot_content_name': 'virtualMachineSnapshotContentName' } - def __init__(self, conditions=None, creation_time=None, error=None, ready_to_use=None, source_uid=None, virtual_machine_snapshot_content_name=None): + def __init__(self, conditions=None, creation_time=None, error=None, indications=None, ready_to_use=None, source_uid=None, virtual_machine_snapshot_content_name=None): """ V1alpha1VirtualMachineSnapshotStatus - a model defined in Swagger """ @@ -56,6 +58,7 @@ def __init__(self, conditions=None, creation_time=None, error=None, ready_to_use self._conditions = None self._creation_time = None self._error = None + self._indications = None self._ready_to_use = None self._source_uid = None self._virtual_machine_snapshot_content_name = None @@ -66,6 +69,8 @@ def __init__(self, conditions=None, creation_time=None, error=None, ready_to_use self.creation_time = creation_time if error is not None: self.error = error + if indications is not None: + self.indications = indications if ready_to_use is not None: self.ready_to_use = ready_to_use if source_uid is not None: @@ -136,6 +141,27 @@ def error(self, error): self._error = error + @property + def indications(self): + """ + Gets the indications of this V1alpha1VirtualMachineSnapshotStatus. + + :return: The indications of this V1alpha1VirtualMachineSnapshotStatus. + :rtype: list[str] + """ + return self._indications + + @indications.setter + def indications(self, indications): + """ + Sets the indications of this V1alpha1VirtualMachineSnapshotStatus. + + :param indications: The indications of this V1alpha1VirtualMachineSnapshotStatus. + :type: list[str] + """ + + self._indications = indications + @property def ready_to_use(self): """ diff --git a/setup.py b/setup.py index 5f2b0830..8a5d4db4 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.40.0-rc.0-192-gbef71b665" +VERSION = "v0.40.0-rc.0-220-gebeba3769" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index a5648283..af9a839f 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.40.0-rc.0-192-gbef71b665" +"packageVersion": "v0.40.0-rc.0-220-gebeba3769" } From 1d1a3f96201d285ce2fe5a7403c32397fbe402bb Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Mon, 26 Apr 2021 01:33:37 +0000 Subject: [PATCH 187/521] Client Python update by KubeVirt Prow build 1386483766691631104 --- README.md | 4 +- docs/V1BlockSize.md | 11 ++ docs/V1CustomBlockSize.md | 11 ++ docs/V1Disk.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 + kubevirt/__init__.py | 2 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 + kubevirt/models/v1_block_size.py | 149 +++++++++++++++++++++++ kubevirt/models/v1_custom_block_size.py | 151 ++++++++++++++++++++++++ kubevirt/models/v1_disk.py | 30 ++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_block_size.py | 44 +++++++ test/test_v1_custom_block_size.py | 44 +++++++ 17 files changed, 458 insertions(+), 7 deletions(-) create mode 100644 docs/V1BlockSize.md create mode 100644 docs/V1CustomBlockSize.md create mode 100644 kubevirt/models/v1_block_size.py create mode 100644 kubevirt/models/v1_custom_block_size.py create mode 100644 test/test_v1_block_size.py create mode 100644 test/test_v1_custom_block_size.py diff --git a/README.md b/README.md index b258f702..01aa4772 100644 --- a/README.md +++ b/README.md @@ -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: v0.40.0-rc.0-220-gebeba3769 +- Package version: v0.40.0-rc.0-300-g9b04a8596 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -268,6 +268,7 @@ Class | Method | HTTP request | Description - [V1AccessCredentialSecretSource](docs/V1AccessCredentialSecretSource.md) - [V1AddVolumeOptions](docs/V1AddVolumeOptions.md) - [V1BIOS](docs/V1BIOS.md) + - [V1BlockSize](docs/V1BlockSize.md) - [V1Bootloader](docs/V1Bootloader.md) - [V1CDRomTarget](docs/V1CDRomTarget.md) - [V1CPU](docs/V1CPU.md) @@ -282,6 +283,7 @@ Class | Method | HTTP request | Description - [V1ConfigDriveSSHPublicKeyAccessCredentialPropagation](docs/V1ConfigDriveSSHPublicKeyAccessCredentialPropagation.md) - [V1ConfigMapVolumeSource](docs/V1ConfigMapVolumeSource.md) - [V1ContainerDiskSource](docs/V1ContainerDiskSource.md) + - [V1CustomBlockSize](docs/V1CustomBlockSize.md) - [V1CustomizeComponents](docs/V1CustomizeComponents.md) - [V1CustomizeComponentsPatch](docs/V1CustomizeComponentsPatch.md) - [V1DHCPOptions](docs/V1DHCPOptions.md) diff --git a/docs/V1BlockSize.md b/docs/V1BlockSize.md new file mode 100644 index 00000000..01a2d5d6 --- /dev/null +++ b/docs/V1BlockSize.md @@ -0,0 +1,11 @@ +# V1BlockSize + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**custom** | [**V1CustomBlockSize**](V1CustomBlockSize.md) | | [optional] +**match_volume** | [**V1FeatureState**](V1FeatureState.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1CustomBlockSize.md b/docs/V1CustomBlockSize.md new file mode 100644 index 00000000..a0e370da --- /dev/null +++ b/docs/V1CustomBlockSize.md @@ -0,0 +1,11 @@ +# V1CustomBlockSize + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**logical** | **int** | | +**physical** | **int** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Disk.md b/docs/V1Disk.md index 1d7911d8..abd17084 100644 --- a/docs/V1Disk.md +++ b/docs/V1Disk.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**block_size** | [**V1BlockSize**](V1BlockSize.md) | If specified, the virtual disk will be presented with the given block sizes. | [optional] **boot_order** | **int** | BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each disk or interface that has a boot order must have a unique value. Disks without a boot order are not tried if a disk with a boot order exists. | [optional] **cache** | **str** | Cache specifies which kvm disk cache mode should be used. Supported values are: CacheNone, CacheWriteThrough. | [optional] **cdrom** | [**V1CDRomTarget**](V1CDRomTarget.md) | Attach a volume as a cdrom to the vmi. | [optional] diff --git a/git_push.sh b/git_push.sh index 7936dc39..42139bd0 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.40.0-rc.0-220-gebeba3769" + release_note="Auto-generated client v0.40.0-rc.0-300-g9b04a8596" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index abd9b7b6..c0cb5bb8 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -184,6 +184,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_bios.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_bios.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1BIOS.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_block_size.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_block_size.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1BlockSize.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_bootloader.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_bootloader.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Bootloader.md @@ -226,6 +229,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_container_disk_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_container_disk_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ContainerDiskSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_custom_block_size.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_custom_block_size.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CustomBlockSize.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_customize_components.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_customize_components.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CustomizeComponents.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 9ad7a3c2..c4eec38b 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -69,6 +69,7 @@ from .models.v1_access_credential_secret_source import V1AccessCredentialSecretSource from .models.v1_add_volume_options import V1AddVolumeOptions from .models.v1_bios import V1BIOS +from .models.v1_block_size import V1BlockSize from .models.v1_bootloader import V1Bootloader from .models.v1_cd_rom_target import V1CDRomTarget from .models.v1_cpu import V1CPU @@ -83,6 +84,7 @@ from .models.v1_config_drive_ssh_public_key_access_credential_propagation import V1ConfigDriveSSHPublicKeyAccessCredentialPropagation from .models.v1_config_map_volume_source import V1ConfigMapVolumeSource from .models.v1_container_disk_source import V1ContainerDiskSource +from .models.v1_custom_block_size import V1CustomBlockSize from .models.v1_customize_components import V1CustomizeComponents from .models.v1_customize_components_patch import V1CustomizeComponentsPatch from .models.v1_dhcp_options import V1DHCPOptions diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 907357fb..779c93e6 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.40.0-rc.0-220-gebeba3769/python' + self.user_agent = 'Swagger-Codegen/v0.40.0-rc.0-300-g9b04a8596/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 5d611bc2..fcf7102f 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.40.0-rc.0-220-gebeba3769".\ + "SDK Package Version: v0.40.0-rc.0-300-g9b04a8596".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index cee5b5ef..bea59cb3 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -69,6 +69,7 @@ from .v1_access_credential_secret_source import V1AccessCredentialSecretSource from .v1_add_volume_options import V1AddVolumeOptions from .v1_bios import V1BIOS +from .v1_block_size import V1BlockSize from .v1_bootloader import V1Bootloader from .v1_cd_rom_target import V1CDRomTarget from .v1_cpu import V1CPU @@ -83,6 +84,7 @@ from .v1_config_drive_ssh_public_key_access_credential_propagation import V1ConfigDriveSSHPublicKeyAccessCredentialPropagation from .v1_config_map_volume_source import V1ConfigMapVolumeSource from .v1_container_disk_source import V1ContainerDiskSource +from .v1_custom_block_size import V1CustomBlockSize from .v1_customize_components import V1CustomizeComponents from .v1_customize_components_patch import V1CustomizeComponentsPatch from .v1_dhcp_options import V1DHCPOptions diff --git a/kubevirt/models/v1_block_size.py b/kubevirt/models/v1_block_size.py new file mode 100644 index 00000000..b506493b --- /dev/null +++ b/kubevirt/models/v1_block_size.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1BlockSize(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'custom': 'V1CustomBlockSize', + 'match_volume': 'V1FeatureState' + } + + attribute_map = { + 'custom': 'custom', + 'match_volume': 'matchVolume' + } + + def __init__(self, custom=None, match_volume=None): + """ + V1BlockSize - a model defined in Swagger + """ + + self._custom = None + self._match_volume = None + + if custom is not None: + self.custom = custom + if match_volume is not None: + self.match_volume = match_volume + + @property + def custom(self): + """ + Gets the custom of this V1BlockSize. + + :return: The custom of this V1BlockSize. + :rtype: V1CustomBlockSize + """ + return self._custom + + @custom.setter + def custom(self, custom): + """ + Sets the custom of this V1BlockSize. + + :param custom: The custom of this V1BlockSize. + :type: V1CustomBlockSize + """ + + self._custom = custom + + @property + def match_volume(self): + """ + Gets the match_volume of this V1BlockSize. + + :return: The match_volume of this V1BlockSize. + :rtype: V1FeatureState + """ + return self._match_volume + + @match_volume.setter + def match_volume(self, match_volume): + """ + Sets the match_volume of this V1BlockSize. + + :param match_volume: The match_volume of this V1BlockSize. + :type: V1FeatureState + """ + + self._match_volume = match_volume + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1BlockSize): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_custom_block_size.py b/kubevirt/models/v1_custom_block_size.py new file mode 100644 index 00000000..33533750 --- /dev/null +++ b/kubevirt/models/v1_custom_block_size.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1CustomBlockSize(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'logical': 'int', + 'physical': 'int' + } + + attribute_map = { + 'logical': 'logical', + 'physical': 'physical' + } + + def __init__(self, logical=None, physical=None): + """ + V1CustomBlockSize - a model defined in Swagger + """ + + self._logical = None + self._physical = None + + self.logical = logical + self.physical = physical + + @property + def logical(self): + """ + Gets the logical of this V1CustomBlockSize. + + :return: The logical of this V1CustomBlockSize. + :rtype: int + """ + return self._logical + + @logical.setter + def logical(self, logical): + """ + Sets the logical of this V1CustomBlockSize. + + :param logical: The logical of this V1CustomBlockSize. + :type: int + """ + if logical is None: + raise ValueError("Invalid value for `logical`, must not be `None`") + + self._logical = logical + + @property + def physical(self): + """ + Gets the physical of this V1CustomBlockSize. + + :return: The physical of this V1CustomBlockSize. + :rtype: int + """ + return self._physical + + @physical.setter + def physical(self, physical): + """ + Sets the physical of this V1CustomBlockSize. + + :param physical: The physical of this V1CustomBlockSize. + :type: int + """ + if physical is None: + raise ValueError("Invalid value for `physical`, must not be `None`") + + self._physical = physical + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1CustomBlockSize): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_disk.py b/kubevirt/models/v1_disk.py index dd350bc5..d6fc8351 100644 --- a/kubevirt/models/v1_disk.py +++ b/kubevirt/models/v1_disk.py @@ -31,6 +31,7 @@ class V1Disk(object): and the value is json key in definition. """ swagger_types = { + 'block_size': 'V1BlockSize', 'boot_order': 'int', 'cache': 'str', 'cdrom': 'V1CDRomTarget', @@ -45,6 +46,7 @@ class V1Disk(object): } attribute_map = { + 'block_size': 'blockSize', 'boot_order': 'bootOrder', 'cache': 'cache', 'cdrom': 'cdrom', @@ -58,11 +60,12 @@ class V1Disk(object): 'tag': 'tag' } - def __init__(self, boot_order=None, cache=None, cdrom=None, dedicated_io_thread=None, disk=None, floppy=None, io=None, lun=None, name=None, serial=None, tag=None): + def __init__(self, block_size=None, boot_order=None, cache=None, cdrom=None, dedicated_io_thread=None, disk=None, floppy=None, io=None, lun=None, name=None, serial=None, tag=None): """ V1Disk - a model defined in Swagger """ + self._block_size = None self._boot_order = None self._cache = None self._cdrom = None @@ -75,6 +78,8 @@ def __init__(self, boot_order=None, cache=None, cdrom=None, dedicated_io_thread= self._serial = None self._tag = None + if block_size is not None: + self.block_size = block_size if boot_order is not None: self.boot_order = boot_order if cache is not None: @@ -97,6 +102,29 @@ def __init__(self, boot_order=None, cache=None, cdrom=None, dedicated_io_thread= if tag is not None: self.tag = tag + @property + def block_size(self): + """ + Gets the block_size of this V1Disk. + If specified, the virtual disk will be presented with the given block sizes. + + :return: The block_size of this V1Disk. + :rtype: V1BlockSize + """ + return self._block_size + + @block_size.setter + def block_size(self, block_size): + """ + Sets the block_size of this V1Disk. + If specified, the virtual disk will be presented with the given block sizes. + + :param block_size: The block_size of this V1Disk. + :type: V1BlockSize + """ + + self._block_size = block_size + @property def boot_order(self): """ diff --git a/setup.py b/setup.py index 8a5d4db4..60af60e3 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.40.0-rc.0-220-gebeba3769" +VERSION = "v0.40.0-rc.0-300-g9b04a8596" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index af9a839f..1fcb209c 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.40.0-rc.0-220-gebeba3769" +"packageVersion": "v0.40.0-rc.0-300-g9b04a8596" } diff --git a/test/test_v1_block_size.py b/test/test_v1_block_size.py new file mode 100644 index 00000000..f7688f67 --- /dev/null +++ b/test/test_v1_block_size.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_block_size import V1BlockSize + + +class TestV1BlockSize(unittest.TestCase): + """ V1BlockSize unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1BlockSize(self): + """ + Test V1BlockSize + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_block_size.V1BlockSize() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_custom_block_size.py b/test/test_v1_custom_block_size.py new file mode 100644 index 00000000..d7e368a5 --- /dev/null +++ b/test/test_v1_custom_block_size.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_custom_block_size import V1CustomBlockSize + + +class TestV1CustomBlockSize(unittest.TestCase): + """ V1CustomBlockSize unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1CustomBlockSize(self): + """ + Test V1CustomBlockSize + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_custom_block_size.V1CustomBlockSize() + pass + + +if __name__ == '__main__': + unittest.main() From fa5f0028ede03bd026970e5c9e792fb8132ae40f Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Sat, 1 May 2021 02:26:01 +0000 Subject: [PATCH 188/521] Client Python update by KubeVirt Prow build 1388306915720695808 --- README.md | 2 +- docs/V1VirtualMachineInstanceSpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1_virtual_machine_instance_spec.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 01aa4772..aac92648 100644 --- a/README.md +++ b/README.md @@ -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: v0.40.0-rc.0-300-g9b04a8596 +- Package version: v0.40.0-rc.0-370-gafd21d360 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceSpec.md b/docs/V1VirtualMachineInstanceSpec.md index 72ca95d5..b40803ff 100644 --- a/docs/V1VirtualMachineInstanceSpec.md +++ b/docs/V1VirtualMachineInstanceSpec.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **priority_class_name** | **str** | If specified, indicates the pod's priority. If not specified, the pod priority will be default or zero if there is no default. | [optional] **readiness_probe** | [**V1Probe**](V1Probe.md) | Periodic probe of VirtualMachineInstance service readiness. VirtualmachineInstances will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes | [optional] **scheduler_name** | **str** | If specified, the VMI will be dispatched by specified scheduler. If not specified, the VMI will be dispatched by default scheduler. | [optional] +**start_strategy** | **str** | StartStrategy can be set to \"Paused\" if Virtual Machine should be started in paused state. | [optional] **subdomain** | **str** | If specified, the fully qualified vmi hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the vmi will not have a domainname at all. The DNS entry will resolve to the vmi, no matter if the vmi itself can pick up a hostname. | [optional] **termination_grace_period_seconds** | **int** | Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. | [optional] **tolerations** | [**list[K8sIoApiCoreV1Toleration]**](K8sIoApiCoreV1Toleration.md) | If toleration is specified, obey all the toleration rules. | [optional] diff --git a/git_push.sh b/git_push.sh index 42139bd0..29fd9f64 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.40.0-rc.0-300-g9b04a8596" + release_note="Auto-generated client v0.40.0-rc.0-370-gafd21d360" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 779c93e6..a7cb3955 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.40.0-rc.0-300-g9b04a8596/python' + self.user_agent = 'Swagger-Codegen/v0.40.0-rc.0-370-gafd21d360/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index fcf7102f..d0e5ecbb 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.40.0-rc.0-300-g9b04a8596".\ + "SDK Package Version: v0.40.0-rc.0-370-gafd21d360".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_spec.py b/kubevirt/models/v1_virtual_machine_instance_spec.py index 7e8d4237..a20bc516 100644 --- a/kubevirt/models/v1_virtual_machine_instance_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_spec.py @@ -44,6 +44,7 @@ class V1VirtualMachineInstanceSpec(object): 'priority_class_name': 'str', 'readiness_probe': 'V1Probe', 'scheduler_name': 'str', + 'start_strategy': 'str', 'subdomain': 'str', 'termination_grace_period_seconds': 'int', 'tolerations': 'list[K8sIoApiCoreV1Toleration]', @@ -64,13 +65,14 @@ class V1VirtualMachineInstanceSpec(object): 'priority_class_name': 'priorityClassName', 'readiness_probe': 'readinessProbe', 'scheduler_name': 'schedulerName', + 'start_strategy': 'startStrategy', 'subdomain': 'subdomain', 'termination_grace_period_seconds': 'terminationGracePeriodSeconds', 'tolerations': 'tolerations', 'volumes': 'volumes' } - def __init__(self, access_credentials=None, affinity=None, dns_config=None, dns_policy=None, domain=None, eviction_strategy=None, hostname=None, liveness_probe=None, networks=None, node_selector=None, priority_class_name=None, readiness_probe=None, scheduler_name=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, volumes=None): + def __init__(self, access_credentials=None, affinity=None, dns_config=None, dns_policy=None, domain=None, eviction_strategy=None, hostname=None, liveness_probe=None, networks=None, node_selector=None, priority_class_name=None, readiness_probe=None, scheduler_name=None, start_strategy=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, volumes=None): """ V1VirtualMachineInstanceSpec - a model defined in Swagger """ @@ -88,6 +90,7 @@ def __init__(self, access_credentials=None, affinity=None, dns_config=None, dns_ self._priority_class_name = None self._readiness_probe = None self._scheduler_name = None + self._start_strategy = None self._subdomain = None self._termination_grace_period_seconds = None self._tolerations = None @@ -118,6 +121,8 @@ def __init__(self, access_credentials=None, affinity=None, dns_config=None, dns_ self.readiness_probe = readiness_probe if scheduler_name is not None: self.scheduler_name = scheduler_name + if start_strategy is not None: + self.start_strategy = start_strategy if subdomain is not None: self.subdomain = subdomain if termination_grace_period_seconds is not None: @@ -428,6 +433,29 @@ def scheduler_name(self, scheduler_name): self._scheduler_name = scheduler_name + @property + def start_strategy(self): + """ + Gets the start_strategy of this V1VirtualMachineInstanceSpec. + StartStrategy can be set to \"Paused\" if Virtual Machine should be started in paused state. + + :return: The start_strategy of this V1VirtualMachineInstanceSpec. + :rtype: str + """ + return self._start_strategy + + @start_strategy.setter + def start_strategy(self, start_strategy): + """ + Sets the start_strategy of this V1VirtualMachineInstanceSpec. + StartStrategy can be set to \"Paused\" if Virtual Machine should be started in paused state. + + :param start_strategy: The start_strategy of this V1VirtualMachineInstanceSpec. + :type: str + """ + + self._start_strategy = start_strategy + @property def subdomain(self): """ diff --git a/setup.py b/setup.py index 60af60e3..0ebc2020 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.40.0-rc.0-300-g9b04a8596" +VERSION = "v0.40.0-rc.0-370-gafd21d360" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 1fcb209c..4287e34f 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.40.0-rc.0-300-g9b04a8596" +"packageVersion": "v0.40.0-rc.0-370-gafd21d360" } From a721559a17cccb39c33d091c3b5546595732c161 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 5 May 2021 02:17:15 +0000 Subject: [PATCH 189/521] Client Python update by KubeVirt Prow build 1389755101270249472 --- README.md | 3 +- docs/V1CustomizeComponents.md | 1 + docs/V1Flags.md | 12 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_customize_components.py | 30 +++- kubevirt/models/v1_flags.py | 175 +++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_flags.py | 44 ++++++ 14 files changed, 273 insertions(+), 7 deletions(-) create mode 100644 docs/V1Flags.md create mode 100644 kubevirt/models/v1_flags.py create mode 100644 test/test_v1_flags.py diff --git a/README.md b/README.md index aac92648..b72d6869 100644 --- a/README.md +++ b/README.md @@ -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: v0.40.0-rc.0-370-gafd21d360 +- Package version: v0.41.0-rc.0-21-g4785aff19 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -310,6 +310,7 @@ Class | Method | HTTP request | Description - [V1Filesystem](docs/V1Filesystem.md) - [V1FilesystemVirtiofs](docs/V1FilesystemVirtiofs.md) - [V1Firmware](docs/V1Firmware.md) + - [V1Flags](docs/V1Flags.md) - [V1FloppyTarget](docs/V1FloppyTarget.md) - [V1GPU](docs/V1GPU.md) - [V1GuestAgentCommandInfo](docs/V1GuestAgentCommandInfo.md) diff --git a/docs/V1CustomizeComponents.md b/docs/V1CustomizeComponents.md index cded7215..a3cad85a 100644 --- a/docs/V1CustomizeComponents.md +++ b/docs/V1CustomizeComponents.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**flags** | [**V1Flags**](V1Flags.md) | Configure the value used for deployment and daemonset resources | [optional] **patches** | [**list[V1CustomizeComponentsPatch]**](V1CustomizeComponentsPatch.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Flags.md b/docs/V1Flags.md new file mode 100644 index 00000000..92b0e044 --- /dev/null +++ b/docs/V1Flags.md @@ -0,0 +1,12 @@ +# V1Flags + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api** | **dict(str, str)** | | [optional] +**controller** | **dict(str, str)** | | [optional] +**handler** | **dict(str, str)** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 29fd9f64..3b67c50c 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.40.0-rc.0-370-gafd21d360" + release_note="Auto-generated client v0.41.0-rc.0-21-g4785aff19" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index c0cb5bb8..2453583b 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -310,6 +310,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_firmware.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_firmware.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Firmware.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_flags.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_flags.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Flags.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_floppy_target.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_floppy_target.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1FloppyTarget.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index c4eec38b..0ac5f0dd 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -111,6 +111,7 @@ from .models.v1_filesystem import V1Filesystem from .models.v1_filesystem_virtiofs import V1FilesystemVirtiofs from .models.v1_firmware import V1Firmware +from .models.v1_flags import V1Flags from .models.v1_floppy_target import V1FloppyTarget from .models.v1_gpu import V1GPU from .models.v1_guest_agent_command_info import V1GuestAgentCommandInfo diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index a7cb3955..902f25f2 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.40.0-rc.0-370-gafd21d360/python' + self.user_agent = 'Swagger-Codegen/v0.41.0-rc.0-21-g4785aff19/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index d0e5ecbb..6a046182 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.40.0-rc.0-370-gafd21d360".\ + "SDK Package Version: v0.41.0-rc.0-21-g4785aff19".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index bea59cb3..dfa37614 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -111,6 +111,7 @@ from .v1_filesystem import V1Filesystem from .v1_filesystem_virtiofs import V1FilesystemVirtiofs from .v1_firmware import V1Firmware +from .v1_flags import V1Flags from .v1_floppy_target import V1FloppyTarget from .v1_gpu import V1GPU from .v1_guest_agent_command_info import V1GuestAgentCommandInfo diff --git a/kubevirt/models/v1_customize_components.py b/kubevirt/models/v1_customize_components.py index e1b1ef08..d0845f65 100644 --- a/kubevirt/models/v1_customize_components.py +++ b/kubevirt/models/v1_customize_components.py @@ -31,23 +31,51 @@ class V1CustomizeComponents(object): and the value is json key in definition. """ swagger_types = { + 'flags': 'V1Flags', 'patches': 'list[V1CustomizeComponentsPatch]' } attribute_map = { + 'flags': 'flags', 'patches': 'patches' } - def __init__(self, patches=None): + def __init__(self, flags=None, patches=None): """ V1CustomizeComponents - a model defined in Swagger """ + self._flags = None self._patches = None + if flags is not None: + self.flags = flags if patches is not None: self.patches = patches + @property + def flags(self): + """ + Gets the flags of this V1CustomizeComponents. + Configure the value used for deployment and daemonset resources + + :return: The flags of this V1CustomizeComponents. + :rtype: V1Flags + """ + return self._flags + + @flags.setter + def flags(self, flags): + """ + Sets the flags of this V1CustomizeComponents. + Configure the value used for deployment and daemonset resources + + :param flags: The flags of this V1CustomizeComponents. + :type: V1Flags + """ + + self._flags = flags + @property def patches(self): """ diff --git a/kubevirt/models/v1_flags.py b/kubevirt/models/v1_flags.py new file mode 100644 index 00000000..018d522f --- /dev/null +++ b/kubevirt/models/v1_flags.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Flags(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api': 'dict(str, str)', + 'controller': 'dict(str, str)', + 'handler': 'dict(str, str)' + } + + attribute_map = { + 'api': 'api', + 'controller': 'controller', + 'handler': 'handler' + } + + def __init__(self, api=None, controller=None, handler=None): + """ + V1Flags - a model defined in Swagger + """ + + self._api = None + self._controller = None + self._handler = None + + if api is not None: + self.api = api + if controller is not None: + self.controller = controller + if handler is not None: + self.handler = handler + + @property + def api(self): + """ + Gets the api of this V1Flags. + + :return: The api of this V1Flags. + :rtype: dict(str, str) + """ + return self._api + + @api.setter + def api(self, api): + """ + Sets the api of this V1Flags. + + :param api: The api of this V1Flags. + :type: dict(str, str) + """ + + self._api = api + + @property + def controller(self): + """ + Gets the controller of this V1Flags. + + :return: The controller of this V1Flags. + :rtype: dict(str, str) + """ + return self._controller + + @controller.setter + def controller(self, controller): + """ + Sets the controller of this V1Flags. + + :param controller: The controller of this V1Flags. + :type: dict(str, str) + """ + + self._controller = controller + + @property + def handler(self): + """ + Gets the handler of this V1Flags. + + :return: The handler of this V1Flags. + :rtype: dict(str, str) + """ + return self._handler + + @handler.setter + def handler(self, handler): + """ + Sets the handler of this V1Flags. + + :param handler: The handler of this V1Flags. + :type: dict(str, str) + """ + + self._handler = handler + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1Flags): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 0ebc2020..b486322e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.40.0-rc.0-370-gafd21d360" +VERSION = "v0.41.0-rc.0-21-g4785aff19" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 4287e34f..bf01d90e 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.40.0-rc.0-370-gafd21d360" +"packageVersion": "v0.41.0-rc.0-21-g4785aff19" } diff --git a/test/test_v1_flags.py b/test/test_v1_flags.py new file mode 100644 index 00000000..d188947c --- /dev/null +++ b/test/test_v1_flags.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_flags import V1Flags + + +class TestV1Flags(unittest.TestCase): + """ V1Flags unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Flags(self): + """ + Test V1Flags + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_flags.V1Flags() + pass + + +if __name__ == '__main__': + unittest.main() From 69aa56825eb6d23712dd244801f147d79a766c9a Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 7 May 2021 08:05:09 +0000 Subject: [PATCH 190/521] Client Python update by KubeVirt Prow build 1390564412368097280 --- README.md | 4 +- docs/DefaultApi.md | 100 ----------------- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 206 ----------------------------------- kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 16 --- 9 files changed, 6 insertions(+), 330 deletions(-) diff --git a/README.md b/README.md index b72d6869..994ed875 100644 --- a/README.md +++ b/README.md @@ -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: v0.41.0-rc.0-21-g4785aff19 +- Package version: v0.41.0-rc.0-53-ge6479be20 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -156,7 +156,6 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1_guestosinfo**](docs/DefaultApi.md#v1_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | *DefaultApi* | [**v1_migrate**](docs/DefaultApi.md#v1_migrate) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | *DefaultApi* | [**v1_pause**](docs/DefaultApi.md#v1_pause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | -*DefaultApi* | [**v1_rename**](docs/DefaultApi.md#v1_rename) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/rename | *DefaultApi* | [**v1_restart**](docs/DefaultApi.md#v1_restart) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | *DefaultApi* | [**v1_start**](docs/DefaultApi.md#v1_start) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | *DefaultApi* | [**v1_stop**](docs/DefaultApi.md#v1_stop) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | @@ -172,7 +171,6 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3_guestosinfo**](docs/DefaultApi.md#v1alpha3_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | *DefaultApi* | [**v1alpha3_migrate**](docs/DefaultApi.md#v1alpha3_migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | *DefaultApi* | [**v1alpha3_pause**](docs/DefaultApi.md#v1alpha3_pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | -*DefaultApi* | [**v1alpha3_rename**](docs/DefaultApi.md#v1alpha3_rename) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/rename | *DefaultApi* | [**v1alpha3_restart**](docs/DefaultApi.md#v1alpha3_restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | *DefaultApi* | [**v1alpha3_start**](docs/DefaultApi.md#v1alpha3_start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | *DefaultApi* | [**v1alpha3_stop**](docs/DefaultApi.md#v1alpha3_stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index eebf27a0..c133b331 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -90,7 +90,6 @@ Method | HTTP request | Description [**v1_guestosinfo**](DefaultApi.md#v1_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | [**v1_migrate**](DefaultApi.md#v1_migrate) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | [**v1_pause**](DefaultApi.md#v1_pause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | -[**v1_rename**](DefaultApi.md#v1_rename) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/rename | [**v1_restart**](DefaultApi.md#v1_restart) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | [**v1_start**](DefaultApi.md#v1_start) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | [**v1_stop**](DefaultApi.md#v1_stop) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | @@ -106,7 +105,6 @@ Method | HTTP request | Description [**v1alpha3_guestosinfo**](DefaultApi.md#v1alpha3_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | [**v1alpha3_migrate**](DefaultApi.md#v1alpha3_migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | [**v1alpha3_pause**](DefaultApi.md#v1alpha3_pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | -[**v1alpha3_rename**](DefaultApi.md#v1alpha3_rename) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/rename | [**v1alpha3_restart**](DefaultApi.md#v1alpha3_restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | [**v1alpha3_start**](DefaultApi.md#v1alpha3_start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | [**v1alpha3_stop**](DefaultApi.md#v1alpha3_stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | @@ -4780,55 +4778,6 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_rename** -> str v1_rename(name, namespace) - - - -Rename a stopped VirtualMachine object. - -### Example -```python -from __future__ import print_function -import time -import kubevirt -from kubevirt.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = kubevirt.DefaultApi() -name = 'name_example' # str | Name of the resource -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects - -try: - api_response = api_instance.v1_rename(name, namespace) - pprint(api_response) -except ApiException as e: - print("Exception when calling DefaultApi->v1_rename: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Name of the resource | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | - -### Return type - -**str** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **v1_restart** > str v1_restart(name, namespace, body=body) @@ -5530,55 +5479,6 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1alpha3_rename** -> str v1alpha3_rename(name, namespace) - - - -Rename a stopped VirtualMachine object. - -### Example -```python -from __future__ import print_function -import time -import kubevirt -from kubevirt.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = kubevirt.DefaultApi() -name = 'name_example' # str | Name of the resource -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects - -try: - api_response = api_instance.v1alpha3_rename(name, namespace) - pprint(api_response) -except ApiException as e: - print("Exception when calling DefaultApi->v1alpha3_rename: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Name of the resource | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | - -### Return type - -**str** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **v1alpha3_restart** > str v1alpha3_restart(name, namespace, body=body) diff --git a/git_push.sh b/git_push.sh index 3b67c50c..c6615329 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.41.0-rc.0-21-g4785aff19" + release_note="Auto-generated client v0.41.0-rc.0-53-ge6479be20" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 902f25f2..e0fed071 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.41.0-rc.0-21-g4785aff19/python' + self.user_agent = 'Swagger-Codegen/v0.41.0-rc.0-53-ge6479be20/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 9dedb1a6..1dd9048a 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -10152,109 +10152,6 @@ def v1_pause_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_rename(self, name, namespace, **kwargs): - """ - Rename a stopped VirtualMachine object. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1_rename(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.v1_rename_with_http_info(name, namespace, **kwargs) - else: - (data) = self.v1_rename_with_http_info(name, namespace, **kwargs) - return data - - def v1_rename_with_http_info(self, name, namespace, **kwargs): - """ - Rename a stopped VirtualMachine object. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1_rename_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method v1_rename" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1_rename`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1_rename`") - - - collection_formats = {} - - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/rename', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - def v1_restart(self, name, namespace, **kwargs): """ Restart a VirtualMachine object. @@ -11767,109 +11664,6 @@ def v1alpha3_pause_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_rename(self, name, namespace, **kwargs): - """ - Rename a stopped VirtualMachine object. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1alpha3_rename(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.v1alpha3_rename_with_http_info(name, namespace, **kwargs) - else: - (data) = self.v1alpha3_rename_with_http_info(name, namespace, **kwargs) - return data - - def v1alpha3_rename_with_http_info(self, name, namespace, **kwargs): - """ - Rename a stopped VirtualMachine object. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1alpha3_rename_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method v1alpha3_rename" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3_rename`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_rename`") - - - collection_formats = {} - - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/rename', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - def v1alpha3_restart(self, name, namespace, **kwargs): """ Restart a VirtualMachine object. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 6a046182..47d17d4f 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.41.0-rc.0-21-g4785aff19".\ + "SDK Package Version: v0.41.0-rc.0-53-ge6479be20".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index b486322e..7a40cc29 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.41.0-rc.0-21-g4785aff19" +VERSION = "v0.41.0-rc.0-53-ge6479be20" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index bf01d90e..1c39bfb3 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.41.0-rc.0-21-g4785aff19" +"packageVersion": "v0.41.0-rc.0-53-ge6479be20" } diff --git a/test/test_default_api.py b/test/test_default_api.py index dbef8e18..0d9bd38c 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -716,14 +716,6 @@ def test_v1_pause(self): Test case for v1_pause - """ - pass - - def test_v1_rename(self): - """ - Test case for v1_rename - - """ pass @@ -844,14 +836,6 @@ def test_v1alpha3_pause(self): Test case for v1alpha3_pause - """ - pass - - def test_v1alpha3_rename(self): - """ - Test case for v1alpha3_rename - - """ pass From a693606fb839b5d3fcef79738a6f2771257fcec2 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Mon, 10 May 2021 14:46:22 +0000 Subject: [PATCH 191/521] Client Python update by KubeVirt Prow build 1391751566091882496 --- README.md | 3 +- docs/V1alpha1DataVolumeSpec.md | 4 +- docs/V1alpha1StorageSpec.md | 16 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1alpha1_data_volume_spec.py | 67 ++++- kubevirt/models/v1alpha1_storage_spec.py | 293 +++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1alpha1_storage_spec.py | 44 +++ 14 files changed, 429 insertions(+), 13 deletions(-) create mode 100644 docs/V1alpha1StorageSpec.md create mode 100644 kubevirt/models/v1alpha1_storage_spec.py create mode 100644 test/test_v1alpha1_storage_spec.py diff --git a/README.md b/README.md index 994ed875..f8830ed6 100644 --- a/README.md +++ b/README.md @@ -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: v0.41.0-rc.0-53-ge6479be20 +- Package version: v0.41.0-rc.0-96-g34b64a095 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -426,6 +426,7 @@ Class | Method | HTTP request | Description - [V1alpha1Error](docs/V1alpha1Error.md) - [V1alpha1PersistentVolumeClaim](docs/V1alpha1PersistentVolumeClaim.md) - [V1alpha1SourceSpec](docs/V1alpha1SourceSpec.md) + - [V1alpha1StorageSpec](docs/V1alpha1StorageSpec.md) - [V1alpha1VirtualMachineRestore](docs/V1alpha1VirtualMachineRestore.md) - [V1alpha1VirtualMachineRestoreList](docs/V1alpha1VirtualMachineRestoreList.md) - [V1alpha1VirtualMachineRestoreSpec](docs/V1alpha1VirtualMachineRestoreSpec.md) diff --git a/docs/V1alpha1DataVolumeSpec.md b/docs/V1alpha1DataVolumeSpec.md index 5fe002ec..49a5664d 100644 --- a/docs/V1alpha1DataVolumeSpec.md +++ b/docs/V1alpha1DataVolumeSpec.md @@ -7,8 +7,10 @@ Name | Type | Description | Notes **content_type** | **str** | DataVolumeContentType options: \"kubevirt\", \"archive\" | [optional] **final_checkpoint** | **bool** | FinalCheckpoint indicates whether the current DataVolumeCheckpoint is the final checkpoint. | [optional] **preallocation** | **bool** | Preallocation controls whether storage for DataVolumes should be allocated in advance. | [optional] -**pvc** | [**K8sIoApiCoreV1PersistentVolumeClaimSpec**](K8sIoApiCoreV1PersistentVolumeClaimSpec.md) | PVC is the PVC specification | +**priority_class_name** | **str** | PriorityClassName for Importer, Cloner and Uploader pod | [optional] +**pvc** | [**K8sIoApiCoreV1PersistentVolumeClaimSpec**](K8sIoApiCoreV1PersistentVolumeClaimSpec.md) | PVC is the PVC specification | [optional] **source** | [**V1alpha1DataVolumeSource**](V1alpha1DataVolumeSource.md) | Source is the src of the data for the requested DataVolume | +**storage** | [**V1alpha1StorageSpec**](V1alpha1StorageSpec.md) | Storage is the requested storage specification | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1StorageSpec.md b/docs/V1alpha1StorageSpec.md new file mode 100644 index 00000000..a86976f2 --- /dev/null +++ b/docs/V1alpha1StorageSpec.md @@ -0,0 +1,16 @@ +# V1alpha1StorageSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_modes** | **list[str]** | AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] +**data_source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. | [optional] +**resources** | [**K8sIoApiCoreV1ResourceRequirements**](K8sIoApiCoreV1ResourceRequirements.md) | Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources | [optional] +**selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | A label query over volumes to consider for binding. | [optional] +**storage_class_name** | **str** | Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] +**volume_mode** | **str** | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. | [optional] +**volume_name** | **str** | VolumeName is the binding reference to the PersistentVolume backing this claim. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index c6615329..7ec8f27e 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.41.0-rc.0-53-ge6479be20" + release_note="Auto-generated client v0.41.0-rc.0-96-g34b64a095" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 2453583b..f65a1e4d 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -664,6 +664,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/v1alpha1_source_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_source_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1SourceSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_storage_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_storage_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1StorageSpec.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_restore.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_restore.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineRestore.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 0ac5f0dd..caa37372 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -229,6 +229,7 @@ from .models.v1alpha1_error import V1alpha1Error from .models.v1alpha1_persistent_volume_claim import V1alpha1PersistentVolumeClaim from .models.v1alpha1_source_spec import V1alpha1SourceSpec +from .models.v1alpha1_storage_spec import V1alpha1StorageSpec from .models.v1alpha1_virtual_machine_restore import V1alpha1VirtualMachineRestore from .models.v1alpha1_virtual_machine_restore_list import V1alpha1VirtualMachineRestoreList from .models.v1alpha1_virtual_machine_restore_spec import V1alpha1VirtualMachineRestoreSpec diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index e0fed071..10946837 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.41.0-rc.0-53-ge6479be20/python' + self.user_agent = 'Swagger-Codegen/v0.41.0-rc.0-96-g34b64a095/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 47d17d4f..2200efba 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.41.0-rc.0-53-ge6479be20".\ + "SDK Package Version: v0.41.0-rc.0-96-g34b64a095".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index dfa37614..77cbc546 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -229,6 +229,7 @@ from .v1alpha1_error import V1alpha1Error from .v1alpha1_persistent_volume_claim import V1alpha1PersistentVolumeClaim from .v1alpha1_source_spec import V1alpha1SourceSpec +from .v1alpha1_storage_spec import V1alpha1StorageSpec from .v1alpha1_virtual_machine_restore import V1alpha1VirtualMachineRestore from .v1alpha1_virtual_machine_restore_list import V1alpha1VirtualMachineRestoreList from .v1alpha1_virtual_machine_restore_spec import V1alpha1VirtualMachineRestoreSpec diff --git a/kubevirt/models/v1alpha1_data_volume_spec.py b/kubevirt/models/v1alpha1_data_volume_spec.py index 6550f544..309a0921 100644 --- a/kubevirt/models/v1alpha1_data_volume_spec.py +++ b/kubevirt/models/v1alpha1_data_volume_spec.py @@ -35,8 +35,10 @@ class V1alpha1DataVolumeSpec(object): 'content_type': 'str', 'final_checkpoint': 'bool', 'preallocation': 'bool', + 'priority_class_name': 'str', 'pvc': 'K8sIoApiCoreV1PersistentVolumeClaimSpec', - 'source': 'V1alpha1DataVolumeSource' + 'source': 'V1alpha1DataVolumeSource', + 'storage': 'V1alpha1StorageSpec' } attribute_map = { @@ -44,11 +46,13 @@ class V1alpha1DataVolumeSpec(object): 'content_type': 'contentType', 'final_checkpoint': 'finalCheckpoint', 'preallocation': 'preallocation', + 'priority_class_name': 'priorityClassName', 'pvc': 'pvc', - 'source': 'source' + 'source': 'source', + 'storage': 'storage' } - def __init__(self, checkpoints=None, content_type=None, final_checkpoint=None, preallocation=None, pvc=None, source=None): + def __init__(self, checkpoints=None, content_type=None, final_checkpoint=None, preallocation=None, priority_class_name=None, pvc=None, source=None, storage=None): """ V1alpha1DataVolumeSpec - a model defined in Swagger """ @@ -57,8 +61,10 @@ def __init__(self, checkpoints=None, content_type=None, final_checkpoint=None, p self._content_type = None self._final_checkpoint = None self._preallocation = None + self._priority_class_name = None self._pvc = None self._source = None + self._storage = None if checkpoints is not None: self.checkpoints = checkpoints @@ -68,8 +74,13 @@ def __init__(self, checkpoints=None, content_type=None, final_checkpoint=None, p self.final_checkpoint = final_checkpoint if preallocation is not None: self.preallocation = preallocation - self.pvc = pvc + if priority_class_name is not None: + self.priority_class_name = priority_class_name + if pvc is not None: + self.pvc = pvc self.source = source + if storage is not None: + self.storage = storage @property def checkpoints(self): @@ -163,6 +174,29 @@ def preallocation(self, preallocation): self._preallocation = preallocation + @property + def priority_class_name(self): + """ + Gets the priority_class_name of this V1alpha1DataVolumeSpec. + PriorityClassName for Importer, Cloner and Uploader pod + + :return: The priority_class_name of this V1alpha1DataVolumeSpec. + :rtype: str + """ + return self._priority_class_name + + @priority_class_name.setter + def priority_class_name(self, priority_class_name): + """ + Sets the priority_class_name of this V1alpha1DataVolumeSpec. + PriorityClassName for Importer, Cloner and Uploader pod + + :param priority_class_name: The priority_class_name of this V1alpha1DataVolumeSpec. + :type: str + """ + + self._priority_class_name = priority_class_name + @property def pvc(self): """ @@ -183,8 +217,6 @@ def pvc(self, pvc): :param pvc: The pvc of this V1alpha1DataVolumeSpec. :type: K8sIoApiCoreV1PersistentVolumeClaimSpec """ - if pvc is None: - raise ValueError("Invalid value for `pvc`, must not be `None`") self._pvc = pvc @@ -213,6 +245,29 @@ def source(self, source): self._source = source + @property + def storage(self): + """ + Gets the storage of this V1alpha1DataVolumeSpec. + Storage is the requested storage specification + + :return: The storage of this V1alpha1DataVolumeSpec. + :rtype: V1alpha1StorageSpec + """ + return self._storage + + @storage.setter + def storage(self, storage): + """ + Sets the storage of this V1alpha1DataVolumeSpec. + Storage is the requested storage specification + + :param storage: The storage of this V1alpha1DataVolumeSpec. + :type: V1alpha1StorageSpec + """ + + self._storage = storage + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1alpha1_storage_spec.py b/kubevirt/models/v1alpha1_storage_spec.py new file mode 100644 index 00000000..e5c2cec9 --- /dev/null +++ b/kubevirt/models/v1alpha1_storage_spec.py @@ -0,0 +1,293 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1StorageSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'access_modes': 'list[str]', + 'data_source': 'K8sIoApiCoreV1TypedLocalObjectReference', + 'resources': 'K8sIoApiCoreV1ResourceRequirements', + 'selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', + 'storage_class_name': 'str', + 'volume_mode': 'str', + 'volume_name': 'str' + } + + attribute_map = { + 'access_modes': 'accessModes', + 'data_source': 'dataSource', + 'resources': 'resources', + 'selector': 'selector', + 'storage_class_name': 'storageClassName', + 'volume_mode': 'volumeMode', + 'volume_name': 'volumeName' + } + + def __init__(self, access_modes=None, data_source=None, resources=None, selector=None, storage_class_name=None, volume_mode=None, volume_name=None): + """ + V1alpha1StorageSpec - a model defined in Swagger + """ + + self._access_modes = None + self._data_source = None + self._resources = None + self._selector = None + self._storage_class_name = None + self._volume_mode = None + self._volume_name = None + + if access_modes is not None: + self.access_modes = access_modes + if data_source is not None: + self.data_source = data_source + if resources is not None: + self.resources = resources + if selector is not None: + self.selector = selector + if storage_class_name is not None: + self.storage_class_name = storage_class_name + if volume_mode is not None: + self.volume_mode = volume_mode + if volume_name is not None: + self.volume_name = volume_name + + @property + def access_modes(self): + """ + Gets the access_modes of this V1alpha1StorageSpec. + AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + + :return: The access_modes of this V1alpha1StorageSpec. + :rtype: list[str] + """ + return self._access_modes + + @access_modes.setter + def access_modes(self, access_modes): + """ + Sets the access_modes of this V1alpha1StorageSpec. + AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + + :param access_modes: The access_modes of this V1alpha1StorageSpec. + :type: list[str] + """ + + self._access_modes = access_modes + + @property + def data_source(self): + """ + Gets the data_source of this V1alpha1StorageSpec. + This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. + + :return: The data_source of this V1alpha1StorageSpec. + :rtype: K8sIoApiCoreV1TypedLocalObjectReference + """ + return self._data_source + + @data_source.setter + def data_source(self, data_source): + """ + Sets the data_source of this V1alpha1StorageSpec. + This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. + + :param data_source: The data_source of this V1alpha1StorageSpec. + :type: K8sIoApiCoreV1TypedLocalObjectReference + """ + + self._data_source = data_source + + @property + def resources(self): + """ + Gets the resources of this V1alpha1StorageSpec. + Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + + :return: The resources of this V1alpha1StorageSpec. + :rtype: K8sIoApiCoreV1ResourceRequirements + """ + return self._resources + + @resources.setter + def resources(self, resources): + """ + Sets the resources of this V1alpha1StorageSpec. + Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + + :param resources: The resources of this V1alpha1StorageSpec. + :type: K8sIoApiCoreV1ResourceRequirements + """ + + self._resources = resources + + @property + def selector(self): + """ + Gets the selector of this V1alpha1StorageSpec. + A label query over volumes to consider for binding. + + :return: The selector of this V1alpha1StorageSpec. + :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this V1alpha1StorageSpec. + A label query over volumes to consider for binding. + + :param selector: The selector of this V1alpha1StorageSpec. + :type: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + + self._selector = selector + + @property + def storage_class_name(self): + """ + Gets the storage_class_name of this V1alpha1StorageSpec. + Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + + :return: The storage_class_name of this V1alpha1StorageSpec. + :rtype: str + """ + return self._storage_class_name + + @storage_class_name.setter + def storage_class_name(self, storage_class_name): + """ + Sets the storage_class_name of this V1alpha1StorageSpec. + Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + + :param storage_class_name: The storage_class_name of this V1alpha1StorageSpec. + :type: str + """ + + self._storage_class_name = storage_class_name + + @property + def volume_mode(self): + """ + Gets the volume_mode of this V1alpha1StorageSpec. + volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + + :return: The volume_mode of this V1alpha1StorageSpec. + :rtype: str + """ + return self._volume_mode + + @volume_mode.setter + def volume_mode(self, volume_mode): + """ + Sets the volume_mode of this V1alpha1StorageSpec. + volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + + :param volume_mode: The volume_mode of this V1alpha1StorageSpec. + :type: str + """ + + self._volume_mode = volume_mode + + @property + def volume_name(self): + """ + Gets the volume_name of this V1alpha1StorageSpec. + VolumeName is the binding reference to the PersistentVolume backing this claim. + + :return: The volume_name of this V1alpha1StorageSpec. + :rtype: str + """ + return self._volume_name + + @volume_name.setter + def volume_name(self, volume_name): + """ + Sets the volume_name of this V1alpha1StorageSpec. + VolumeName is the binding reference to the PersistentVolume backing this claim. + + :param volume_name: The volume_name of this V1alpha1StorageSpec. + :type: str + """ + + self._volume_name = volume_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1StorageSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 7a40cc29..40fdc9ec 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.41.0-rc.0-53-ge6479be20" +VERSION = "v0.41.0-rc.0-96-g34b64a095" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 1c39bfb3..e8612cbb 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.41.0-rc.0-53-ge6479be20" +"packageVersion": "v0.41.0-rc.0-96-g34b64a095" } diff --git a/test/test_v1alpha1_storage_spec.py b/test/test_v1alpha1_storage_spec.py new file mode 100644 index 00000000..296ac6fa --- /dev/null +++ b/test/test_v1alpha1_storage_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_storage_spec import V1alpha1StorageSpec + + +class TestV1alpha1StorageSpec(unittest.TestCase): + """ V1alpha1StorageSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1StorageSpec(self): + """ + Test V1alpha1StorageSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_storage_spec.V1alpha1StorageSpec() + pass + + +if __name__ == '__main__': + unittest.main() From ccba6f8e6efd71d50d70949ceda35cc7daff74d8 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 11 May 2021 06:32:43 +0000 Subject: [PATCH 192/521] Client Python update by KubeVirt Prow build 1391994139628802048 --- README.md | 4 +- ...erationStatus.md => V1GenerationStatus.md} | 6 +- docs/V1KubeVirtStatus.md | 2 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 +- kubevirt/__init__.py | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 +- ...tion_status.py => v1_generation_status.py} | 64 +++++++++---------- kubevirt/models/v1_kube_virt_status.py | 6 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...status.py => test_v1_generation_status.py} | 12 ++-- 14 files changed, 56 insertions(+), 58 deletions(-) rename docs/{GithubComOpenshiftApiOperatorV1GenerationStatus.md => V1GenerationStatus.md} (90%) rename kubevirt/models/{github_com_openshift_api_operator_v1_generation_status.py => v1_generation_status.py} (69%) rename test/{test_github_com_openshift_api_operator_v1_generation_status.py => test_v1_generation_status.py} (52%) diff --git a/README.md b/README.md index f8830ed6..9ca4aa98 100644 --- a/README.md +++ b/README.md @@ -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: v0.41.0-rc.0-96-g34b64a095 +- Package version: v0.41.0-rc.0-103-gcf7209e18 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -211,7 +211,6 @@ Class | Method | HTTP request | Description ## Documentation For Models - - [GithubComOpenshiftApiOperatorV1GenerationStatus](docs/GithubComOpenshiftApiOperatorV1GenerationStatus.md) - [K8sIoApiCoreV1Affinity](docs/K8sIoApiCoreV1Affinity.md) - [K8sIoApiCoreV1DownwardAPIVolumeFile](docs/K8sIoApiCoreV1DownwardAPIVolumeFile.md) - [K8sIoApiCoreV1HTTPGetAction](docs/K8sIoApiCoreV1HTTPGetAction.md) @@ -311,6 +310,7 @@ Class | Method | HTTP request | Description - [V1Flags](docs/V1Flags.md) - [V1FloppyTarget](docs/V1FloppyTarget.md) - [V1GPU](docs/V1GPU.md) + - [V1GenerationStatus](docs/V1GenerationStatus.md) - [V1GuestAgentCommandInfo](docs/V1GuestAgentCommandInfo.md) - [V1HPETTimer](docs/V1HPETTimer.md) - [V1HostDevice](docs/V1HostDevice.md) diff --git a/docs/GithubComOpenshiftApiOperatorV1GenerationStatus.md b/docs/V1GenerationStatus.md similarity index 90% rename from docs/GithubComOpenshiftApiOperatorV1GenerationStatus.md rename to docs/V1GenerationStatus.md index 47660fe7..98d38d8e 100644 --- a/docs/GithubComOpenshiftApiOperatorV1GenerationStatus.md +++ b/docs/V1GenerationStatus.md @@ -1,13 +1,13 @@ -# GithubComOpenshiftApiOperatorV1GenerationStatus +# V1GenerationStatus ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **group** | **str** | group is the group of the thing you're tracking | -**hash** | **str** | hash is an optional field set for resources without generation that are content sensitive like secrets and configmaps | +**hash** | **str** | hash is an optional field set for resources without generation that are content sensitive like secrets and configmaps | [optional] **last_generation** | **int** | lastGeneration is the last generation of the workload controller involved | **name** | **str** | name is the name of the thing you're tracking | -**namespace** | **str** | namespace is where the thing you're tracking is | +**namespace** | **str** | namespace is where the thing you're tracking is | [optional] **resource** | **str** | resource is the resource type of the thing you're tracking | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1KubeVirtStatus.md b/docs/V1KubeVirtStatus.md index 089efd18..82987d7f 100644 --- a/docs/V1KubeVirtStatus.md +++ b/docs/V1KubeVirtStatus.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **conditions** | [**list[V1KubeVirtCondition]**](V1KubeVirtCondition.md) | | [optional] -**generations** | [**list[GithubComOpenshiftApiOperatorV1GenerationStatus]**](GithubComOpenshiftApiOperatorV1GenerationStatus.md) | | [optional] +**generations** | [**list[V1GenerationStatus]**](V1GenerationStatus.md) | | [optional] **observed_deployment_config** | **str** | | [optional] **observed_deployment_id** | **str** | | [optional] **observed_kube_virt_registry** | **str** | | [optional] diff --git a/git_push.sh b/git_push.sh index 7ec8f27e..ec9c646f 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.41.0-rc.0-96-g34b64a095" + release_note="Auto-generated client v0.41.0-rc.0-103-gcf7209e18" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index f65a1e4d..39f40d7b 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -19,9 +19,6 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] INFO io.swagger.codegen.ignore.CodegenIgnoreProcessor - No .swagger-codegen-ignore file found. [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default appVersion set to 1.0.0 [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default version set to 1.0.0 -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/github_com_openshift_api_operator_v1_generation_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_github_com_openshift_api_operator_v1_generation_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/GithubComOpenshiftApiOperatorV1GenerationStatus.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_affinity.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_affinity.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1Affinity.md @@ -319,6 +316,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_gpu.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_gpu.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1GPU.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_generation_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_generation_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1GenerationStatus.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_guest_agent_command_info.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_guest_agent_command_info.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1GuestAgentCommandInfo.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index caa37372..9b3f0dd3 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -14,7 +14,6 @@ from __future__ import absolute_import # import models into sdk package -from .models.github_com_openshift_api_operator_v1_generation_status import GithubComOpenshiftApiOperatorV1GenerationStatus from .models.k8s_io_api_core_v1_affinity import K8sIoApiCoreV1Affinity from .models.k8s_io_api_core_v1_downward_api_volume_file import K8sIoApiCoreV1DownwardAPIVolumeFile from .models.k8s_io_api_core_v1_http_get_action import K8sIoApiCoreV1HTTPGetAction @@ -114,6 +113,7 @@ from .models.v1_flags import V1Flags from .models.v1_floppy_target import V1FloppyTarget from .models.v1_gpu import V1GPU +from .models.v1_generation_status import V1GenerationStatus from .models.v1_guest_agent_command_info import V1GuestAgentCommandInfo from .models.v1_hpet_timer import V1HPETTimer from .models.v1_host_device import V1HostDevice diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 10946837..cdb18e6d 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.41.0-rc.0-96-g34b64a095/python' + self.user_agent = 'Swagger-Codegen/v0.41.0-rc.0-103-gcf7209e18/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 2200efba..48dd4141 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.41.0-rc.0-96-g34b64a095".\ + "SDK Package Version: v0.41.0-rc.0-103-gcf7209e18".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 77cbc546..2b1d5c21 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -14,7 +14,6 @@ from __future__ import absolute_import # import models into model package -from .github_com_openshift_api_operator_v1_generation_status import GithubComOpenshiftApiOperatorV1GenerationStatus from .k8s_io_api_core_v1_affinity import K8sIoApiCoreV1Affinity from .k8s_io_api_core_v1_downward_api_volume_file import K8sIoApiCoreV1DownwardAPIVolumeFile from .k8s_io_api_core_v1_http_get_action import K8sIoApiCoreV1HTTPGetAction @@ -114,6 +113,7 @@ from .v1_flags import V1Flags from .v1_floppy_target import V1FloppyTarget from .v1_gpu import V1GPU +from .v1_generation_status import V1GenerationStatus from .v1_guest_agent_command_info import V1GuestAgentCommandInfo from .v1_hpet_timer import V1HPETTimer from .v1_host_device import V1HostDevice diff --git a/kubevirt/models/github_com_openshift_api_operator_v1_generation_status.py b/kubevirt/models/v1_generation_status.py similarity index 69% rename from kubevirt/models/github_com_openshift_api_operator_v1_generation_status.py rename to kubevirt/models/v1_generation_status.py index df317974..b5f1bcd8 100644 --- a/kubevirt/models/github_com_openshift_api_operator_v1_generation_status.py +++ b/kubevirt/models/v1_generation_status.py @@ -16,7 +16,7 @@ import re -class GithubComOpenshiftApiOperatorV1GenerationStatus(object): +class V1GenerationStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -50,7 +50,7 @@ class GithubComOpenshiftApiOperatorV1GenerationStatus(object): def __init__(self, group=None, hash=None, last_generation=None, name=None, namespace=None, resource=None): """ - GithubComOpenshiftApiOperatorV1GenerationStatus - a model defined in Swagger + V1GenerationStatus - a model defined in Swagger """ self._group = None @@ -61,19 +61,21 @@ def __init__(self, group=None, hash=None, last_generation=None, name=None, names self._resource = None self.group = group - self.hash = hash + if hash is not None: + self.hash = hash self.last_generation = last_generation self.name = name - self.namespace = namespace + if namespace is not None: + self.namespace = namespace self.resource = resource @property def group(self): """ - Gets the group of this GithubComOpenshiftApiOperatorV1GenerationStatus. + Gets the group of this V1GenerationStatus. group is the group of the thing you're tracking - :return: The group of this GithubComOpenshiftApiOperatorV1GenerationStatus. + :return: The group of this V1GenerationStatus. :rtype: str """ return self._group @@ -81,10 +83,10 @@ def group(self): @group.setter def group(self, group): """ - Sets the group of this GithubComOpenshiftApiOperatorV1GenerationStatus. + Sets the group of this V1GenerationStatus. group is the group of the thing you're tracking - :param group: The group of this GithubComOpenshiftApiOperatorV1GenerationStatus. + :param group: The group of this V1GenerationStatus. :type: str """ if group is None: @@ -95,10 +97,10 @@ def group(self, group): @property def hash(self): """ - Gets the hash of this GithubComOpenshiftApiOperatorV1GenerationStatus. + Gets the hash of this V1GenerationStatus. hash is an optional field set for resources without generation that are content sensitive like secrets and configmaps - :return: The hash of this GithubComOpenshiftApiOperatorV1GenerationStatus. + :return: The hash of this V1GenerationStatus. :rtype: str """ return self._hash @@ -106,24 +108,22 @@ def hash(self): @hash.setter def hash(self, hash): """ - Sets the hash of this GithubComOpenshiftApiOperatorV1GenerationStatus. + Sets the hash of this V1GenerationStatus. hash is an optional field set for resources without generation that are content sensitive like secrets and configmaps - :param hash: The hash of this GithubComOpenshiftApiOperatorV1GenerationStatus. + :param hash: The hash of this V1GenerationStatus. :type: str """ - if hash is None: - raise ValueError("Invalid value for `hash`, must not be `None`") self._hash = hash @property def last_generation(self): """ - Gets the last_generation of this GithubComOpenshiftApiOperatorV1GenerationStatus. + Gets the last_generation of this V1GenerationStatus. lastGeneration is the last generation of the workload controller involved - :return: The last_generation of this GithubComOpenshiftApiOperatorV1GenerationStatus. + :return: The last_generation of this V1GenerationStatus. :rtype: int """ return self._last_generation @@ -131,10 +131,10 @@ def last_generation(self): @last_generation.setter def last_generation(self, last_generation): """ - Sets the last_generation of this GithubComOpenshiftApiOperatorV1GenerationStatus. + Sets the last_generation of this V1GenerationStatus. lastGeneration is the last generation of the workload controller involved - :param last_generation: The last_generation of this GithubComOpenshiftApiOperatorV1GenerationStatus. + :param last_generation: The last_generation of this V1GenerationStatus. :type: int """ if last_generation is None: @@ -145,10 +145,10 @@ def last_generation(self, last_generation): @property def name(self): """ - Gets the name of this GithubComOpenshiftApiOperatorV1GenerationStatus. + Gets the name of this V1GenerationStatus. name is the name of the thing you're tracking - :return: The name of this GithubComOpenshiftApiOperatorV1GenerationStatus. + :return: The name of this V1GenerationStatus. :rtype: str """ return self._name @@ -156,10 +156,10 @@ def name(self): @name.setter def name(self, name): """ - Sets the name of this GithubComOpenshiftApiOperatorV1GenerationStatus. + Sets the name of this V1GenerationStatus. name is the name of the thing you're tracking - :param name: The name of this GithubComOpenshiftApiOperatorV1GenerationStatus. + :param name: The name of this V1GenerationStatus. :type: str """ if name is None: @@ -170,10 +170,10 @@ def name(self, name): @property def namespace(self): """ - Gets the namespace of this GithubComOpenshiftApiOperatorV1GenerationStatus. + Gets the namespace of this V1GenerationStatus. namespace is where the thing you're tracking is - :return: The namespace of this GithubComOpenshiftApiOperatorV1GenerationStatus. + :return: The namespace of this V1GenerationStatus. :rtype: str """ return self._namespace @@ -181,24 +181,22 @@ def namespace(self): @namespace.setter def namespace(self, namespace): """ - Sets the namespace of this GithubComOpenshiftApiOperatorV1GenerationStatus. + Sets the namespace of this V1GenerationStatus. namespace is where the thing you're tracking is - :param namespace: The namespace of this GithubComOpenshiftApiOperatorV1GenerationStatus. + :param namespace: The namespace of this V1GenerationStatus. :type: str """ - if namespace is None: - raise ValueError("Invalid value for `namespace`, must not be `None`") self._namespace = namespace @property def resource(self): """ - Gets the resource of this GithubComOpenshiftApiOperatorV1GenerationStatus. + Gets the resource of this V1GenerationStatus. resource is the resource type of the thing you're tracking - :return: The resource of this GithubComOpenshiftApiOperatorV1GenerationStatus. + :return: The resource of this V1GenerationStatus. :rtype: str """ return self._resource @@ -206,10 +204,10 @@ def resource(self): @resource.setter def resource(self, resource): """ - Sets the resource of this GithubComOpenshiftApiOperatorV1GenerationStatus. + Sets the resource of this V1GenerationStatus. resource is the resource type of the thing you're tracking - :param resource: The resource of this GithubComOpenshiftApiOperatorV1GenerationStatus. + :param resource: The resource of this V1GenerationStatus. :type: str """ if resource is None: @@ -259,7 +257,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, GithubComOpenshiftApiOperatorV1GenerationStatus): + if not isinstance(other, V1GenerationStatus): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_kube_virt_status.py b/kubevirt/models/v1_kube_virt_status.py index b1117904..0be12d1a 100644 --- a/kubevirt/models/v1_kube_virt_status.py +++ b/kubevirt/models/v1_kube_virt_status.py @@ -32,7 +32,7 @@ class V1KubeVirtStatus(object): """ swagger_types = { 'conditions': 'list[V1KubeVirtCondition]', - 'generations': 'list[GithubComOpenshiftApiOperatorV1GenerationStatus]', + 'generations': 'list[V1GenerationStatus]', 'observed_deployment_config': 'str', 'observed_deployment_id': 'str', 'observed_kube_virt_registry': 'str', @@ -135,7 +135,7 @@ def generations(self): Gets the generations of this V1KubeVirtStatus. :return: The generations of this V1KubeVirtStatus. - :rtype: list[GithubComOpenshiftApiOperatorV1GenerationStatus] + :rtype: list[V1GenerationStatus] """ return self._generations @@ -145,7 +145,7 @@ def generations(self, generations): Sets the generations of this V1KubeVirtStatus. :param generations: The generations of this V1KubeVirtStatus. - :type: list[GithubComOpenshiftApiOperatorV1GenerationStatus] + :type: list[V1GenerationStatus] """ self._generations = generations diff --git a/setup.py b/setup.py index 40fdc9ec..b05b852e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.41.0-rc.0-96-g34b64a095" +VERSION = "v0.41.0-rc.0-103-gcf7209e18" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index e8612cbb..0f47bea2 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.41.0-rc.0-96-g34b64a095" +"packageVersion": "v0.41.0-rc.0-103-gcf7209e18" } diff --git a/test/test_github_com_openshift_api_operator_v1_generation_status.py b/test/test_v1_generation_status.py similarity index 52% rename from test/test_github_com_openshift_api_operator_v1_generation_status.py rename to test/test_v1_generation_status.py index 816bfaa0..121f9db4 100644 --- a/test/test_github_com_openshift_api_operator_v1_generation_status.py +++ b/test/test_v1_generation_status.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.github_com_openshift_api_operator_v1_generation_status import GithubComOpenshiftApiOperatorV1GenerationStatus +from kubevirt.models.v1_generation_status import V1GenerationStatus -class TestGithubComOpenshiftApiOperatorV1GenerationStatus(unittest.TestCase): - """ GithubComOpenshiftApiOperatorV1GenerationStatus unit test stubs """ +class TestV1GenerationStatus(unittest.TestCase): + """ V1GenerationStatus unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testGithubComOpenshiftApiOperatorV1GenerationStatus(self): + def testV1GenerationStatus(self): """ - Test GithubComOpenshiftApiOperatorV1GenerationStatus + Test V1GenerationStatus """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.github_com_openshift_api_operator_v1_generation_status.GithubComOpenshiftApiOperatorV1GenerationStatus() + #model = kubevirt.models.v1_generation_status.V1GenerationStatus() pass From e7f5b0ea5a0357b8399fcb35360071b039bae928 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Sat, 15 May 2021 10:21:04 +0000 Subject: [PATCH 193/521] Client Python update by KubeVirt Prow build 1393501421139136512 --- README.md | 2 +- docs/V1VirtualMachineStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_virtual_machine_status.py | 30 +++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 9ca4aa98..82a5d29e 100644 --- a/README.md +++ b/README.md @@ -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: v0.41.0-rc.0-103-gcf7209e18 +- Package version: v0.41.0-rc.0-157-gcd53708d2 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineStatus.md b/docs/V1VirtualMachineStatus.md index e79351d0..64857b5d 100644 --- a/docs/V1VirtualMachineStatus.md +++ b/docs/V1VirtualMachineStatus.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **conditions** | [**list[V1VirtualMachineCondition]**](V1VirtualMachineCondition.md) | Hold the state information of the VirtualMachine and its VirtualMachineInstance | [optional] **created** | **bool** | Created indicates if the virtual machine is created in the cluster | [optional] +**printable_status** | **str** | PrintableStatus is a human readable, high-level representation of the status of the virtual machine | [optional] **ready** | **bool** | Ready indicates if the virtual machine is running and ready | [optional] **snapshot_in_progress** | **str** | SnapshotInProgress is the name of the VirtualMachineSnapshot currently executing | [optional] **state_change_requests** | [**list[V1VirtualMachineStateChangeRequest]**](V1VirtualMachineStateChangeRequest.md) | StateChangeRequests indicates a list of actions that should be taken on a VMI e.g. stop a specific VMI then start a new one. | [optional] diff --git a/git_push.sh b/git_push.sh index ec9c646f..92b35925 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.41.0-rc.0-103-gcf7209e18" + release_note="Auto-generated client v0.41.0-rc.0-157-gcd53708d2" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index cdb18e6d..4a787b97 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.41.0-rc.0-103-gcf7209e18/python' + self.user_agent = 'Swagger-Codegen/v0.41.0-rc.0-157-gcd53708d2/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 48dd4141..ee39b989 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.41.0-rc.0-103-gcf7209e18".\ + "SDK Package Version: v0.41.0-rc.0-157-gcd53708d2".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_status.py b/kubevirt/models/v1_virtual_machine_status.py index b980f333..f2b8f50a 100644 --- a/kubevirt/models/v1_virtual_machine_status.py +++ b/kubevirt/models/v1_virtual_machine_status.py @@ -33,6 +33,7 @@ class V1VirtualMachineStatus(object): swagger_types = { 'conditions': 'list[V1VirtualMachineCondition]', 'created': 'bool', + 'printable_status': 'str', 'ready': 'bool', 'snapshot_in_progress': 'str', 'state_change_requests': 'list[V1VirtualMachineStateChangeRequest]', @@ -43,6 +44,7 @@ class V1VirtualMachineStatus(object): attribute_map = { 'conditions': 'conditions', 'created': 'created', + 'printable_status': 'printableStatus', 'ready': 'ready', 'snapshot_in_progress': 'snapshotInProgress', 'state_change_requests': 'stateChangeRequests', @@ -50,13 +52,14 @@ class V1VirtualMachineStatus(object): 'volume_snapshot_statuses': 'volumeSnapshotStatuses' } - def __init__(self, conditions=None, created=None, ready=None, snapshot_in_progress=None, state_change_requests=None, volume_requests=None, volume_snapshot_statuses=None): + def __init__(self, conditions=None, created=None, printable_status=None, ready=None, snapshot_in_progress=None, state_change_requests=None, volume_requests=None, volume_snapshot_statuses=None): """ V1VirtualMachineStatus - a model defined in Swagger """ self._conditions = None self._created = None + self._printable_status = None self._ready = None self._snapshot_in_progress = None self._state_change_requests = None @@ -67,6 +70,8 @@ def __init__(self, conditions=None, created=None, ready=None, snapshot_in_progre self.conditions = conditions if created is not None: self.created = created + if printable_status is not None: + self.printable_status = printable_status if ready is not None: self.ready = ready if snapshot_in_progress is not None: @@ -124,6 +129,29 @@ def created(self, created): self._created = created + @property + def printable_status(self): + """ + Gets the printable_status of this V1VirtualMachineStatus. + PrintableStatus is a human readable, high-level representation of the status of the virtual machine + + :return: The printable_status of this V1VirtualMachineStatus. + :rtype: str + """ + return self._printable_status + + @printable_status.setter + def printable_status(self, printable_status): + """ + Sets the printable_status of this V1VirtualMachineStatus. + PrintableStatus is a human readable, high-level representation of the status of the virtual machine + + :param printable_status: The printable_status of this V1VirtualMachineStatus. + :type: str + """ + + self._printable_status = printable_status + @property def ready(self): """ diff --git a/setup.py b/setup.py index b05b852e..ec2358de 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.41.0-rc.0-103-gcf7209e18" +VERSION = "v0.41.0-rc.0-157-gcd53708d2" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 0f47bea2..2ea2a655 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.41.0-rc.0-103-gcf7209e18" +"packageVersion": "v0.41.0-rc.0-157-gcd53708d2" } From 48bdeaf9996fa28578c8dd6069eea4b75f23ad9f Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 21 May 2021 04:50:58 +0000 Subject: [PATCH 194/521] Client Python update by KubeVirt Prow build 1395592098480132096 --- README.md | 3 +- docs/V1DownwardMetricsVolumeSource.md | 9 ++ docs/V1Volume.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + .../v1_downward_metrics_volume_source.py | 99 +++++++++++++++++++ kubevirt/models/v1_volume.py | 30 +++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- .../test_v1_downward_metrics_volume_source.py | 44 +++++++++ 14 files changed, 194 insertions(+), 7 deletions(-) create mode 100644 docs/V1DownwardMetricsVolumeSource.md create mode 100644 kubevirt/models/v1_downward_metrics_volume_source.py create mode 100644 test/test_v1_downward_metrics_volume_source.py diff --git a/README.md b/README.md index 82a5d29e..8097cb7d 100644 --- a/README.md +++ b/README.md @@ -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: v0.41.0-rc.0-157-gcd53708d2 +- Package version: v0.41.0-rc.0-232-g9bc2254b0 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -294,6 +294,7 @@ Class | Method | HTTP request | Description - [V1DiskTarget](docs/V1DiskTarget.md) - [V1DomainSpec](docs/V1DomainSpec.md) - [V1DownwardAPIVolumeSource](docs/V1DownwardAPIVolumeSource.md) + - [V1DownwardMetricsVolumeSource](docs/V1DownwardMetricsVolumeSource.md) - [V1EFI](docs/V1EFI.md) - [V1EmptyDiskSource](docs/V1EmptyDiskSource.md) - [V1EphemeralVolumeSource](docs/V1EphemeralVolumeSource.md) diff --git a/docs/V1DownwardMetricsVolumeSource.md b/docs/V1DownwardMetricsVolumeSource.md new file mode 100644 index 00000000..17cc5d49 --- /dev/null +++ b/docs/V1DownwardMetricsVolumeSource.md @@ -0,0 +1,9 @@ +# V1DownwardMetricsVolumeSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Volume.md b/docs/V1Volume.md index 05bf21b1..7d55c1c5 100644 --- a/docs/V1Volume.md +++ b/docs/V1Volume.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **container_disk** | [**V1ContainerDiskSource**](V1ContainerDiskSource.md) | ContainerDisk references a docker image, embedding a qcow or raw disk. More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html | [optional] **data_volume** | [**V1DataVolumeSource**](V1DataVolumeSource.md) | DataVolume represents the dynamic creation a PVC for this volume as well as the process of populating that PVC with a disk image. | [optional] **downward_api** | [**V1DownwardAPIVolumeSource**](V1DownwardAPIVolumeSource.md) | DownwardAPI represents downward API about the pod that should populate this volume | [optional] +**downward_metrics** | [**V1DownwardMetricsVolumeSource**](V1DownwardMetricsVolumeSource.md) | DownwardMetrics adds a very small disk to VMIs which contains a limited view of host and guest metrics. The disk content is compatible with vhostmd (https://github.com/vhostmd/vhostmd) and vm-dump-metrics. | [optional] **empty_disk** | [**V1EmptyDiskSource**](V1EmptyDiskSource.md) | EmptyDisk represents a temporary disk which shares the vmis lifecycle. More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html | [optional] **ephemeral** | [**V1EphemeralVolumeSource**](V1EphemeralVolumeSource.md) | Ephemeral is a special volume source that \"wraps\" specified source and provides copy-on-write image on top of it. | [optional] **host_disk** | [**V1HostDisk**](V1HostDisk.md) | HostDisk represents a disk created on the cluster level | [optional] diff --git a/git_push.sh b/git_push.sh index 92b35925..84ff0db2 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.41.0-rc.0-157-gcd53708d2" + release_note="Auto-generated client v0.41.0-rc.0-232-g9bc2254b0" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 39f40d7b..1c9a8ae5 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -268,6 +268,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_downward_api_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_downward_api_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DownwardAPIVolumeSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_downward_metrics_volume_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_downward_metrics_volume_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DownwardMetricsVolumeSource.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_efi.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_efi.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1EFI.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 9b3f0dd3..512e0e5d 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -97,6 +97,7 @@ from .models.v1_disk_target import V1DiskTarget from .models.v1_domain_spec import V1DomainSpec from .models.v1_downward_api_volume_source import V1DownwardAPIVolumeSource +from .models.v1_downward_metrics_volume_source import V1DownwardMetricsVolumeSource from .models.v1_efi import V1EFI from .models.v1_empty_disk_source import V1EmptyDiskSource from .models.v1_ephemeral_volume_source import V1EphemeralVolumeSource diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 4a787b97..0f1b706b 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.41.0-rc.0-157-gcd53708d2/python' + self.user_agent = 'Swagger-Codegen/v0.41.0-rc.0-232-g9bc2254b0/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index ee39b989..1660fb7c 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.41.0-rc.0-157-gcd53708d2".\ + "SDK Package Version: v0.41.0-rc.0-232-g9bc2254b0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 2b1d5c21..e2cf9ee8 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -97,6 +97,7 @@ from .v1_disk_target import V1DiskTarget from .v1_domain_spec import V1DomainSpec from .v1_downward_api_volume_source import V1DownwardAPIVolumeSource +from .v1_downward_metrics_volume_source import V1DownwardMetricsVolumeSource from .v1_efi import V1EFI from .v1_empty_disk_source import V1EmptyDiskSource from .v1_ephemeral_volume_source import V1EphemeralVolumeSource diff --git a/kubevirt/models/v1_downward_metrics_volume_source.py b/kubevirt/models/v1_downward_metrics_volume_source.py new file mode 100644 index 00000000..ef3c628a --- /dev/null +++ b/kubevirt/models/v1_downward_metrics_volume_source.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DownwardMetricsVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1DownwardMetricsVolumeSource - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1DownwardMetricsVolumeSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_volume.py b/kubevirt/models/v1_volume.py index 948d9a74..8fb0e41f 100644 --- a/kubevirt/models/v1_volume.py +++ b/kubevirt/models/v1_volume.py @@ -37,6 +37,7 @@ class V1Volume(object): 'container_disk': 'V1ContainerDiskSource', 'data_volume': 'V1DataVolumeSource', 'downward_api': 'V1DownwardAPIVolumeSource', + 'downward_metrics': 'V1DownwardMetricsVolumeSource', 'empty_disk': 'V1EmptyDiskSource', 'ephemeral': 'V1EphemeralVolumeSource', 'host_disk': 'V1HostDisk', @@ -54,6 +55,7 @@ class V1Volume(object): 'container_disk': 'containerDisk', 'data_volume': 'dataVolume', 'downward_api': 'downwardAPI', + 'downward_metrics': 'downwardMetrics', 'empty_disk': 'emptyDisk', 'ephemeral': 'ephemeral', 'host_disk': 'hostDisk', @@ -64,7 +66,7 @@ class V1Volume(object): 'sysprep': 'sysprep' } - def __init__(self, cloud_init_config_drive=None, cloud_init_no_cloud=None, config_map=None, container_disk=None, data_volume=None, downward_api=None, empty_disk=None, ephemeral=None, host_disk=None, name=None, persistent_volume_claim=None, secret=None, service_account=None, sysprep=None): + def __init__(self, cloud_init_config_drive=None, cloud_init_no_cloud=None, config_map=None, container_disk=None, data_volume=None, downward_api=None, downward_metrics=None, empty_disk=None, ephemeral=None, host_disk=None, name=None, persistent_volume_claim=None, secret=None, service_account=None, sysprep=None): """ V1Volume - a model defined in Swagger """ @@ -75,6 +77,7 @@ def __init__(self, cloud_init_config_drive=None, cloud_init_no_cloud=None, confi self._container_disk = None self._data_volume = None self._downward_api = None + self._downward_metrics = None self._empty_disk = None self._ephemeral = None self._host_disk = None @@ -96,6 +99,8 @@ def __init__(self, cloud_init_config_drive=None, cloud_init_no_cloud=None, confi self.data_volume = data_volume if downward_api is not None: self.downward_api = downward_api + if downward_metrics is not None: + self.downward_metrics = downward_metrics if empty_disk is not None: self.empty_disk = empty_disk if ephemeral is not None: @@ -250,6 +255,29 @@ def downward_api(self, downward_api): self._downward_api = downward_api + @property + def downward_metrics(self): + """ + Gets the downward_metrics of this V1Volume. + DownwardMetrics adds a very small disk to VMIs which contains a limited view of host and guest metrics. The disk content is compatible with vhostmd (https://github.com/vhostmd/vhostmd) and vm-dump-metrics. + + :return: The downward_metrics of this V1Volume. + :rtype: V1DownwardMetricsVolumeSource + """ + return self._downward_metrics + + @downward_metrics.setter + def downward_metrics(self, downward_metrics): + """ + Sets the downward_metrics of this V1Volume. + DownwardMetrics adds a very small disk to VMIs which contains a limited view of host and guest metrics. The disk content is compatible with vhostmd (https://github.com/vhostmd/vhostmd) and vm-dump-metrics. + + :param downward_metrics: The downward_metrics of this V1Volume. + :type: V1DownwardMetricsVolumeSource + """ + + self._downward_metrics = downward_metrics + @property def empty_disk(self): """ diff --git a/setup.py b/setup.py index ec2358de..24df1cf3 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.41.0-rc.0-157-gcd53708d2" +VERSION = "v0.41.0-rc.0-232-g9bc2254b0" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 2ea2a655..5c56f718 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.41.0-rc.0-157-gcd53708d2" +"packageVersion": "v0.41.0-rc.0-232-g9bc2254b0" } diff --git a/test/test_v1_downward_metrics_volume_source.py b/test/test_v1_downward_metrics_volume_source.py new file mode 100644 index 00000000..f6fb17aa --- /dev/null +++ b/test/test_v1_downward_metrics_volume_source.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_downward_metrics_volume_source import V1DownwardMetricsVolumeSource + + +class TestV1DownwardMetricsVolumeSource(unittest.TestCase): + """ V1DownwardMetricsVolumeSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DownwardMetricsVolumeSource(self): + """ + Test V1DownwardMetricsVolumeSource + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_downward_metrics_volume_source.V1DownwardMetricsVolumeSource() + pass + + +if __name__ == '__main__': + unittest.main() From ab4ad92f2e2553d7dfbe7819122439b69d203e9b Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 21 May 2021 14:25:28 +0000 Subject: [PATCH 195/521] Client Python update by KubeVirt Prow build 1395739088950136832 --- README.md | 2 +- docs/V1Machine.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_machine.py | 5 ++--- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 8097cb7d..11fbd2f4 100644 --- a/README.md +++ b/README.md @@ -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: v0.41.0-rc.0-232-g9bc2254b0 +- Package version: v0.41.0-rc.0-245-g05bdb95da - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Machine.md b/docs/V1Machine.md index 85576308..61222dcf 100644 --- a/docs/V1Machine.md +++ b/docs/V1Machine.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | QEMU machine type is the actual chipset of the VirtualMachineInstance. | +**type** | **str** | QEMU machine type is the actual chipset of the VirtualMachineInstance. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 84ff0db2..25a26a09 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.41.0-rc.0-232-g9bc2254b0" + release_note="Auto-generated client v0.41.0-rc.0-245-g05bdb95da" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 0f1b706b..23fe17b3 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.41.0-rc.0-232-g9bc2254b0/python' + self.user_agent = 'Swagger-Codegen/v0.41.0-rc.0-245-g05bdb95da/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 1660fb7c..0793fd23 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.41.0-rc.0-232-g9bc2254b0".\ + "SDK Package Version: v0.41.0-rc.0-245-g05bdb95da".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_machine.py b/kubevirt/models/v1_machine.py index 8c00b4ac..5d81e739 100644 --- a/kubevirt/models/v1_machine.py +++ b/kubevirt/models/v1_machine.py @@ -45,7 +45,8 @@ def __init__(self, type=None): self._type = None - self.type = type + if type is not None: + self.type = type @property def type(self): @@ -67,8 +68,6 @@ def type(self, type): :param type: The type of this V1Machine. :type: str """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") self._type = type diff --git a/setup.py b/setup.py index 24df1cf3..f486b543 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.41.0-rc.0-232-g9bc2254b0" +VERSION = "v0.41.0-rc.0-245-g05bdb95da" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 5c56f718..dbdcfe13 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.41.0-rc.0-232-g9bc2254b0" +"packageVersion": "v0.41.0-rc.0-245-g05bdb95da" } From 95061fa345dfa888973b5a0fc0945f3875599ed1 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Mon, 24 May 2021 02:30:41 +0000 Subject: [PATCH 196/521] Client Python update by KubeVirt Prow build 1396646335251222528 --- README.md | 4 +- docs/V1Firmware.md | 1 + docs/V1KernelBoot.md | 11 + docs/V1KernelBootContainer.md | 14 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 + kubevirt/__init__.py | 2 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 + kubevirt/models/v1_firmware.py | 30 ++- kubevirt/models/v1_kernel_boot.py | 153 +++++++++++++ kubevirt/models/v1_kernel_boot_container.py | 238 ++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_kernel_boot.py | 44 ++++ test/test_v1_kernel_boot_container.py | 44 ++++ 17 files changed, 552 insertions(+), 7 deletions(-) create mode 100644 docs/V1KernelBoot.md create mode 100644 docs/V1KernelBootContainer.md create mode 100644 kubevirt/models/v1_kernel_boot.py create mode 100644 kubevirt/models/v1_kernel_boot_container.py create mode 100644 test/test_v1_kernel_boot.py create mode 100644 test/test_v1_kernel_boot_container.py diff --git a/README.md b/README.md index 11fbd2f4..09cadbbc 100644 --- a/README.md +++ b/README.md @@ -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: v0.41.0-rc.0-245-g05bdb95da +- Package version: v0.41.0-rc.0-255-g8cfc7b32b - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -329,6 +329,8 @@ Class | Method | HTTP request | Description - [V1InterfaceSRIOV](docs/V1InterfaceSRIOV.md) - [V1InterfaceSlirp](docs/V1InterfaceSlirp.md) - [V1KVMTimer](docs/V1KVMTimer.md) + - [V1KernelBoot](docs/V1KernelBoot.md) + - [V1KernelBootContainer](docs/V1KernelBootContainer.md) - [V1KubeVirt](docs/V1KubeVirt.md) - [V1KubeVirtCertificateRotateStrategy](docs/V1KubeVirtCertificateRotateStrategy.md) - [V1KubeVirtCondition](docs/V1KubeVirtCondition.md) diff --git a/docs/V1Firmware.md b/docs/V1Firmware.md index 17be78a0..6b0b7bb8 100644 --- a/docs/V1Firmware.md +++ b/docs/V1Firmware.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **bootloader** | [**V1Bootloader**](V1Bootloader.md) | Settings to control the bootloader that is used. | [optional] +**kernel_boot** | [**V1KernelBoot**](V1KernelBoot.md) | Settings to set the kernel for booting. | [optional] **serial** | **str** | The system-serial-number in SMBIOS | [optional] **uuid** | **str** | UUID reported by the vmi bios. Defaults to a random generated uid. | [optional] diff --git a/docs/V1KernelBoot.md b/docs/V1KernelBoot.md new file mode 100644 index 00000000..981967a9 --- /dev/null +++ b/docs/V1KernelBoot.md @@ -0,0 +1,11 @@ +# V1KernelBoot + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**container** | [**V1KernelBootContainer**](V1KernelBootContainer.md) | Container defines the container that containes kernel artifacts | [optional] +**kernel_args** | **str** | Arguments to be passed to the kernel at boot time | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1KernelBootContainer.md b/docs/V1KernelBootContainer.md new file mode 100644 index 00000000..c8360309 --- /dev/null +++ b/docs/V1KernelBootContainer.md @@ -0,0 +1,14 @@ +# V1KernelBootContainer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**image** | **str** | Image that container initrd / kernel files. | +**image_pull_policy** | **str** | Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images | [optional] +**image_pull_secret** | **str** | ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist. | [optional] +**initrd_path** | **str** | the fully-qualified path to the ramdisk image in the host OS | [optional] +**kernel_path** | **str** | The fully-qualified path to the kernel image in the host OS | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 25a26a09..2bb8ce9e 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.41.0-rc.0-245-g05bdb95da" + release_note="Auto-generated client v0.41.0-rc.0-255-g8cfc7b32b" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 1c9a8ae5..3a91f7fb 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -373,6 +373,12 @@ 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_kvm_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kvm_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KVMTimer.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_kernel_boot.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kernel_boot.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KernelBoot.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_kernel_boot_container.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kernel_boot_container.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KernelBootContainer.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_kube_virt.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kube_virt.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KubeVirt.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 512e0e5d..c1f5002b 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -132,6 +132,8 @@ from .models.v1_interface_sriov import V1InterfaceSRIOV from .models.v1_interface_slirp import V1InterfaceSlirp from .models.v1_kvm_timer import V1KVMTimer +from .models.v1_kernel_boot import V1KernelBoot +from .models.v1_kernel_boot_container import V1KernelBootContainer from .models.v1_kube_virt import V1KubeVirt from .models.v1_kube_virt_certificate_rotate_strategy import V1KubeVirtCertificateRotateStrategy from .models.v1_kube_virt_condition import V1KubeVirtCondition diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 23fe17b3..f3692e6f 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.41.0-rc.0-245-g05bdb95da/python' + self.user_agent = 'Swagger-Codegen/v0.41.0-rc.0-255-g8cfc7b32b/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 0793fd23..4ce1cff5 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.41.0-rc.0-245-g05bdb95da".\ + "SDK Package Version: v0.41.0-rc.0-255-g8cfc7b32b".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index e2cf9ee8..c227fe8d 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -132,6 +132,8 @@ from .v1_interface_sriov import V1InterfaceSRIOV from .v1_interface_slirp import V1InterfaceSlirp from .v1_kvm_timer import V1KVMTimer +from .v1_kernel_boot import V1KernelBoot +from .v1_kernel_boot_container import V1KernelBootContainer from .v1_kube_virt import V1KubeVirt from .v1_kube_virt_certificate_rotate_strategy import V1KubeVirtCertificateRotateStrategy from .v1_kube_virt_condition import V1KubeVirtCondition diff --git a/kubevirt/models/v1_firmware.py b/kubevirt/models/v1_firmware.py index 009ce235..7a4e1432 100644 --- a/kubevirt/models/v1_firmware.py +++ b/kubevirt/models/v1_firmware.py @@ -32,27 +32,32 @@ class V1Firmware(object): """ swagger_types = { 'bootloader': 'V1Bootloader', + 'kernel_boot': 'V1KernelBoot', 'serial': 'str', 'uuid': 'str' } attribute_map = { 'bootloader': 'bootloader', + 'kernel_boot': 'kernelBoot', 'serial': 'serial', 'uuid': 'uuid' } - def __init__(self, bootloader=None, serial=None, uuid=None): + def __init__(self, bootloader=None, kernel_boot=None, serial=None, uuid=None): """ V1Firmware - a model defined in Swagger """ self._bootloader = None + self._kernel_boot = None self._serial = None self._uuid = None if bootloader is not None: self.bootloader = bootloader + if kernel_boot is not None: + self.kernel_boot = kernel_boot if serial is not None: self.serial = serial if uuid is not None: @@ -81,6 +86,29 @@ def bootloader(self, bootloader): self._bootloader = bootloader + @property + def kernel_boot(self): + """ + Gets the kernel_boot of this V1Firmware. + Settings to set the kernel for booting. + + :return: The kernel_boot of this V1Firmware. + :rtype: V1KernelBoot + """ + return self._kernel_boot + + @kernel_boot.setter + def kernel_boot(self, kernel_boot): + """ + Sets the kernel_boot of this V1Firmware. + Settings to set the kernel for booting. + + :param kernel_boot: The kernel_boot of this V1Firmware. + :type: V1KernelBoot + """ + + self._kernel_boot = kernel_boot + @property def serial(self): """ diff --git a/kubevirt/models/v1_kernel_boot.py b/kubevirt/models/v1_kernel_boot.py new file mode 100644 index 00000000..88d5d6a5 --- /dev/null +++ b/kubevirt/models/v1_kernel_boot.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1KernelBoot(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'container': 'V1KernelBootContainer', + 'kernel_args': 'str' + } + + attribute_map = { + 'container': 'container', + 'kernel_args': 'kernelArgs' + } + + def __init__(self, container=None, kernel_args=None): + """ + V1KernelBoot - a model defined in Swagger + """ + + self._container = None + self._kernel_args = None + + if container is not None: + self.container = container + if kernel_args is not None: + self.kernel_args = kernel_args + + @property + def container(self): + """ + Gets the container of this V1KernelBoot. + Container defines the container that containes kernel artifacts + + :return: The container of this V1KernelBoot. + :rtype: V1KernelBootContainer + """ + return self._container + + @container.setter + def container(self, container): + """ + Sets the container of this V1KernelBoot. + Container defines the container that containes kernel artifacts + + :param container: The container of this V1KernelBoot. + :type: V1KernelBootContainer + """ + + self._container = container + + @property + def kernel_args(self): + """ + Gets the kernel_args of this V1KernelBoot. + Arguments to be passed to the kernel at boot time + + :return: The kernel_args of this V1KernelBoot. + :rtype: str + """ + return self._kernel_args + + @kernel_args.setter + def kernel_args(self, kernel_args): + """ + Sets the kernel_args of this V1KernelBoot. + Arguments to be passed to the kernel at boot time + + :param kernel_args: The kernel_args of this V1KernelBoot. + :type: str + """ + + self._kernel_args = kernel_args + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1KernelBoot): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kernel_boot_container.py b/kubevirt/models/v1_kernel_boot_container.py new file mode 100644 index 00000000..58e74d04 --- /dev/null +++ b/kubevirt/models/v1_kernel_boot_container.py @@ -0,0 +1,238 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1KernelBootContainer(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'image': 'str', + 'image_pull_policy': 'str', + 'image_pull_secret': 'str', + 'initrd_path': 'str', + 'kernel_path': 'str' + } + + attribute_map = { + 'image': 'image', + 'image_pull_policy': 'imagePullPolicy', + 'image_pull_secret': 'imagePullSecret', + 'initrd_path': 'initrdPath', + 'kernel_path': 'kernelPath' + } + + def __init__(self, image=None, image_pull_policy=None, image_pull_secret=None, initrd_path=None, kernel_path=None): + """ + V1KernelBootContainer - a model defined in Swagger + """ + + self._image = None + self._image_pull_policy = None + self._image_pull_secret = None + self._initrd_path = None + self._kernel_path = None + + self.image = image + if image_pull_policy is not None: + self.image_pull_policy = image_pull_policy + if image_pull_secret is not None: + self.image_pull_secret = image_pull_secret + if initrd_path is not None: + self.initrd_path = initrd_path + if kernel_path is not None: + self.kernel_path = kernel_path + + @property + def image(self): + """ + Gets the image of this V1KernelBootContainer. + Image that container initrd / kernel files. + + :return: The image of this V1KernelBootContainer. + :rtype: str + """ + return self._image + + @image.setter + def image(self, image): + """ + Sets the image of this V1KernelBootContainer. + Image that container initrd / kernel files. + + :param image: The image of this V1KernelBootContainer. + :type: str + """ + if image is None: + raise ValueError("Invalid value for `image`, must not be `None`") + + self._image = image + + @property + def image_pull_policy(self): + """ + Gets the image_pull_policy of this V1KernelBootContainer. + Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + + :return: The image_pull_policy of this V1KernelBootContainer. + :rtype: str + """ + return self._image_pull_policy + + @image_pull_policy.setter + def image_pull_policy(self, image_pull_policy): + """ + Sets the image_pull_policy of this V1KernelBootContainer. + Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + + :param image_pull_policy: The image_pull_policy of this V1KernelBootContainer. + :type: str + """ + + self._image_pull_policy = image_pull_policy + + @property + def image_pull_secret(self): + """ + Gets the image_pull_secret of this V1KernelBootContainer. + ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist. + + :return: The image_pull_secret of this V1KernelBootContainer. + :rtype: str + """ + return self._image_pull_secret + + @image_pull_secret.setter + def image_pull_secret(self, image_pull_secret): + """ + Sets the image_pull_secret of this V1KernelBootContainer. + ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist. + + :param image_pull_secret: The image_pull_secret of this V1KernelBootContainer. + :type: str + """ + + self._image_pull_secret = image_pull_secret + + @property + def initrd_path(self): + """ + Gets the initrd_path of this V1KernelBootContainer. + the fully-qualified path to the ramdisk image in the host OS + + :return: The initrd_path of this V1KernelBootContainer. + :rtype: str + """ + return self._initrd_path + + @initrd_path.setter + def initrd_path(self, initrd_path): + """ + Sets the initrd_path of this V1KernelBootContainer. + the fully-qualified path to the ramdisk image in the host OS + + :param initrd_path: The initrd_path of this V1KernelBootContainer. + :type: str + """ + + self._initrd_path = initrd_path + + @property + def kernel_path(self): + """ + Gets the kernel_path of this V1KernelBootContainer. + The fully-qualified path to the kernel image in the host OS + + :return: The kernel_path of this V1KernelBootContainer. + :rtype: str + """ + return self._kernel_path + + @kernel_path.setter + def kernel_path(self, kernel_path): + """ + Sets the kernel_path of this V1KernelBootContainer. + The fully-qualified path to the kernel image in the host OS + + :param kernel_path: The kernel_path of this V1KernelBootContainer. + :type: str + """ + + self._kernel_path = kernel_path + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1KernelBootContainer): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index f486b543..1bb5a7b8 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.41.0-rc.0-245-g05bdb95da" +VERSION = "v0.41.0-rc.0-255-g8cfc7b32b" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index dbdcfe13..854d752f 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.41.0-rc.0-245-g05bdb95da" +"packageVersion": "v0.41.0-rc.0-255-g8cfc7b32b" } diff --git a/test/test_v1_kernel_boot.py b/test/test_v1_kernel_boot.py new file mode 100644 index 00000000..6fdbaab9 --- /dev/null +++ b/test/test_v1_kernel_boot.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_kernel_boot import V1KernelBoot + + +class TestV1KernelBoot(unittest.TestCase): + """ V1KernelBoot unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1KernelBoot(self): + """ + Test V1KernelBoot + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_kernel_boot.V1KernelBoot() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_kernel_boot_container.py b/test/test_v1_kernel_boot_container.py new file mode 100644 index 00000000..a52692ae --- /dev/null +++ b/test/test_v1_kernel_boot_container.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_kernel_boot_container import V1KernelBootContainer + + +class TestV1KernelBootContainer(unittest.TestCase): + """ V1KernelBootContainer unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1KernelBootContainer(self): + """ + Test V1KernelBootContainer + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_kernel_boot_container.V1KernelBootContainer() + pass + + +if __name__ == '__main__': + unittest.main() From a02816b4432999f2290100206044b40e7dc40601 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 2 Jun 2021 06:31:58 +0000 Subject: [PATCH 197/521] Client Python update by KubeVirt Prow build 1399967837535080448 --- README.md | 3 +- docs/K8sIoApiCoreV1ExecAction.md | 10 ++ docs/V1Probe.md | 3 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + .../models/k8s_io_api_core_v1_exec_action.py | 125 ++++++++++++++++++ kubevirt/models/v1_probe.py | 34 ++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_k8s_io_api_core_v1_exec_action.py | 44 ++++++ 14 files changed, 224 insertions(+), 10 deletions(-) create mode 100644 docs/K8sIoApiCoreV1ExecAction.md create mode 100644 kubevirt/models/k8s_io_api_core_v1_exec_action.py create mode 100644 test/test_k8s_io_api_core_v1_exec_action.py diff --git a/README.md b/README.md index 09cadbbc..53b46cb1 100644 --- a/README.md +++ b/README.md @@ -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: v0.41.0-rc.0-255-g8cfc7b32b +- Package version: v0.42.0-rc.0-41-g5e306d722 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -213,6 +213,7 @@ Class | Method | HTTP request | Description - [K8sIoApiCoreV1Affinity](docs/K8sIoApiCoreV1Affinity.md) - [K8sIoApiCoreV1DownwardAPIVolumeFile](docs/K8sIoApiCoreV1DownwardAPIVolumeFile.md) + - [K8sIoApiCoreV1ExecAction](docs/K8sIoApiCoreV1ExecAction.md) - [K8sIoApiCoreV1HTTPGetAction](docs/K8sIoApiCoreV1HTTPGetAction.md) - [K8sIoApiCoreV1HTTPHeader](docs/K8sIoApiCoreV1HTTPHeader.md) - [K8sIoApiCoreV1LocalObjectReference](docs/K8sIoApiCoreV1LocalObjectReference.md) diff --git a/docs/K8sIoApiCoreV1ExecAction.md b/docs/K8sIoApiCoreV1ExecAction.md new file mode 100644 index 00000000..c5e47d8c --- /dev/null +++ b/docs/K8sIoApiCoreV1ExecAction.md @@ -0,0 +1,10 @@ +# K8sIoApiCoreV1ExecAction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**command** | **list[str]** | Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Probe.md b/docs/V1Probe.md index b5b2c4dc..8540d414 100644 --- a/docs/V1Probe.md +++ b/docs/V1Probe.md @@ -3,13 +3,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**_exec** | [**K8sIoApiCoreV1ExecAction**](K8sIoApiCoreV1ExecAction.md) | One and only one of the following should be specified. Exec specifies the action to take, it will be executed on the guest through the qemu-guest-agent. If the guest agent is not available, this probe will fail. | [optional] **failure_threshold** | **int** | Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. | [optional] **http_get** | [**K8sIoApiCoreV1HTTPGetAction**](K8sIoApiCoreV1HTTPGetAction.md) | HTTPGet specifies the http request to perform. | [optional] **initial_delay_seconds** | **int** | Number of seconds after the VirtualMachineInstance has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes | [optional] **period_seconds** | **int** | How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. | [optional] **success_threshold** | **int** | Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. | [optional] **tcp_socket** | [**K8sIoApiCoreV1TCPSocketAction**](K8sIoApiCoreV1TCPSocketAction.md) | TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported | [optional] -**timeout_seconds** | **int** | Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes | [optional] +**timeout_seconds** | **int** | Number of seconds after which the probe times out. For exec probes the timeout fails the probe but does not terminate the command running on the guest. This means a blocking command can result in an increasing load on the guest. A small buffer will be added to the resulting workload exec probe to compensate for delays caused by the qemu guest exec mechanism. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 2bb8ce9e..30030aa9 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.41.0-rc.0-255-g8cfc7b32b" + release_note="Auto-generated client v0.42.0-rc.0-41-g5e306d722" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 3a91f7fb..c415f839 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -25,6 +25,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/k8s_io_api_core_v1_downward_api_volume_file.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_downward_api_volume_file.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1DownwardAPIVolumeFile.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_exec_action.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_exec_action.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1ExecAction.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_http_get_action.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_http_get_action.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1HTTPGetAction.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index c1f5002b..ca0bb884 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -16,6 +16,7 @@ # import models into sdk package from .models.k8s_io_api_core_v1_affinity import K8sIoApiCoreV1Affinity from .models.k8s_io_api_core_v1_downward_api_volume_file import K8sIoApiCoreV1DownwardAPIVolumeFile +from .models.k8s_io_api_core_v1_exec_action import K8sIoApiCoreV1ExecAction from .models.k8s_io_api_core_v1_http_get_action import K8sIoApiCoreV1HTTPGetAction from .models.k8s_io_api_core_v1_http_header import K8sIoApiCoreV1HTTPHeader from .models.k8s_io_api_core_v1_local_object_reference import K8sIoApiCoreV1LocalObjectReference diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index f3692e6f..e452c7f5 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.41.0-rc.0-255-g8cfc7b32b/python' + self.user_agent = 'Swagger-Codegen/v0.42.0-rc.0-41-g5e306d722/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 4ce1cff5..3922d606 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.41.0-rc.0-255-g8cfc7b32b".\ + "SDK Package Version: v0.42.0-rc.0-41-g5e306d722".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index c227fe8d..414a4f48 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -16,6 +16,7 @@ # import models into model package from .k8s_io_api_core_v1_affinity import K8sIoApiCoreV1Affinity from .k8s_io_api_core_v1_downward_api_volume_file import K8sIoApiCoreV1DownwardAPIVolumeFile +from .k8s_io_api_core_v1_exec_action import K8sIoApiCoreV1ExecAction from .k8s_io_api_core_v1_http_get_action import K8sIoApiCoreV1HTTPGetAction from .k8s_io_api_core_v1_http_header import K8sIoApiCoreV1HTTPHeader from .k8s_io_api_core_v1_local_object_reference import K8sIoApiCoreV1LocalObjectReference diff --git a/kubevirt/models/k8s_io_api_core_v1_exec_action.py b/kubevirt/models/k8s_io_api_core_v1_exec_action.py new file mode 100644 index 00000000..de498e1c --- /dev/null +++ b/kubevirt/models/k8s_io_api_core_v1_exec_action.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class K8sIoApiCoreV1ExecAction(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'command': 'list[str]' + } + + attribute_map = { + 'command': 'command' + } + + def __init__(self, command=None): + """ + K8sIoApiCoreV1ExecAction - a model defined in Swagger + """ + + self._command = None + + if command is not None: + self.command = command + + @property + def command(self): + """ + Gets the command of this K8sIoApiCoreV1ExecAction. + Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + :return: The command of this K8sIoApiCoreV1ExecAction. + :rtype: list[str] + """ + return self._command + + @command.setter + def command(self, command): + """ + Sets the command of this K8sIoApiCoreV1ExecAction. + Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + :param command: The command of this K8sIoApiCoreV1ExecAction. + :type: list[str] + """ + + self._command = command + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, K8sIoApiCoreV1ExecAction): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_probe.py b/kubevirt/models/v1_probe.py index 9ca67863..ff5a401b 100644 --- a/kubevirt/models/v1_probe.py +++ b/kubevirt/models/v1_probe.py @@ -31,6 +31,7 @@ class V1Probe(object): and the value is json key in definition. """ swagger_types = { + '_exec': 'K8sIoApiCoreV1ExecAction', 'failure_threshold': 'int', 'http_get': 'K8sIoApiCoreV1HTTPGetAction', 'initial_delay_seconds': 'int', @@ -41,6 +42,7 @@ class V1Probe(object): } attribute_map = { + '_exec': 'exec', 'failure_threshold': 'failureThreshold', 'http_get': 'httpGet', 'initial_delay_seconds': 'initialDelaySeconds', @@ -50,11 +52,12 @@ class V1Probe(object): 'timeout_seconds': 'timeoutSeconds' } - def __init__(self, failure_threshold=None, http_get=None, initial_delay_seconds=None, period_seconds=None, success_threshold=None, tcp_socket=None, timeout_seconds=None): + def __init__(self, _exec=None, failure_threshold=None, http_get=None, initial_delay_seconds=None, period_seconds=None, success_threshold=None, tcp_socket=None, timeout_seconds=None): """ V1Probe - a model defined in Swagger """ + self.__exec = None self._failure_threshold = None self._http_get = None self._initial_delay_seconds = None @@ -63,6 +66,8 @@ def __init__(self, failure_threshold=None, http_get=None, initial_delay_seconds= self._tcp_socket = None self._timeout_seconds = None + if _exec is not None: + self._exec = _exec if failure_threshold is not None: self.failure_threshold = failure_threshold if http_get is not None: @@ -78,6 +83,29 @@ def __init__(self, failure_threshold=None, http_get=None, initial_delay_seconds= if timeout_seconds is not None: self.timeout_seconds = timeout_seconds + @property + def _exec(self): + """ + Gets the _exec of this V1Probe. + One and only one of the following should be specified. Exec specifies the action to take, it will be executed on the guest through the qemu-guest-agent. If the guest agent is not available, this probe will fail. + + :return: The _exec of this V1Probe. + :rtype: K8sIoApiCoreV1ExecAction + """ + return self.__exec + + @_exec.setter + def _exec(self, _exec): + """ + Sets the _exec of this V1Probe. + One and only one of the following should be specified. Exec specifies the action to take, it will be executed on the guest through the qemu-guest-agent. If the guest agent is not available, this probe will fail. + + :param _exec: The _exec of this V1Probe. + :type: K8sIoApiCoreV1ExecAction + """ + + self.__exec = _exec + @property def failure_threshold(self): """ @@ -220,7 +248,7 @@ def tcp_socket(self, tcp_socket): def timeout_seconds(self): """ Gets the timeout_seconds of this V1Probe. - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + Number of seconds after which the probe times out. For exec probes the timeout fails the probe but does not terminate the command running on the guest. This means a blocking command can result in an increasing load on the guest. A small buffer will be added to the resulting workload exec probe to compensate for delays caused by the qemu guest exec mechanism. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes :return: The timeout_seconds of this V1Probe. :rtype: int @@ -231,7 +259,7 @@ def timeout_seconds(self): def timeout_seconds(self, timeout_seconds): """ Sets the timeout_seconds of this V1Probe. - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + Number of seconds after which the probe times out. For exec probes the timeout fails the probe but does not terminate the command running on the guest. This means a blocking command can result in an increasing load on the guest. A small buffer will be added to the resulting workload exec probe to compensate for delays caused by the qemu guest exec mechanism. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes :param timeout_seconds: The timeout_seconds of this V1Probe. :type: int diff --git a/setup.py b/setup.py index 1bb5a7b8..35a90b88 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.41.0-rc.0-255-g8cfc7b32b" +VERSION = "v0.42.0-rc.0-41-g5e306d722" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 854d752f..eecb5b84 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.41.0-rc.0-255-g8cfc7b32b" +"packageVersion": "v0.42.0-rc.0-41-g5e306d722" } diff --git a/test/test_k8s_io_api_core_v1_exec_action.py b/test/test_k8s_io_api_core_v1_exec_action.py new file mode 100644 index 00000000..471cd6f9 --- /dev/null +++ b/test/test_k8s_io_api_core_v1_exec_action.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_api_core_v1_exec_action import K8sIoApiCoreV1ExecAction + + +class TestK8sIoApiCoreV1ExecAction(unittest.TestCase): + """ K8sIoApiCoreV1ExecAction unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1ExecAction(self): + """ + Test K8sIoApiCoreV1ExecAction + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_exec_action.K8sIoApiCoreV1ExecAction() + pass + + +if __name__ == '__main__': + unittest.main() From 4110bcd4aca2783c09f78b3c3fa79d8260c6cf4a Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 17 Jun 2021 09:33:07 +0000 Subject: [PATCH 198/521] Client Python update by KubeVirt Prow build 1405441810012049408 --- README.md | 2 +- .../V1VirtualMachineInstanceGuestAgentInfo.md | 1 + docs/V1VirtualMachineInstanceStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...rtual_machine_instance_guest_agent_info.py | 30 ++++++++++++++++++- .../v1_virtual_machine_instance_status.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 66 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 53b46cb1..056f90ef 100644 --- a/README.md +++ b/README.md @@ -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: v0.42.0-rc.0-41-g5e306d722 +- Package version: v0.42.0-168-g8f0f8154a - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceGuestAgentInfo.md b/docs/V1VirtualMachineInstanceGuestAgentInfo.md index a797fb73..57c5797f 100644 --- a/docs/V1VirtualMachineInstanceGuestAgentInfo.md +++ b/docs/V1VirtualMachineInstanceGuestAgentInfo.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**fs_freeze_status** | **str** | FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed | [optional] **fs_info** | [**V1VirtualMachineInstanceFileSystemInfo**](V1VirtualMachineInstanceFileSystemInfo.md) | FSInfo is a guest os filesystem information containing the disk mapping and disk mounts with usage | [optional] **guest_agent_version** | **str** | GAVersion is a version of currently installed guest agent | [optional] **hostname** | **str** | Hostname represents FQDN of a guest | [optional] diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index b3d9997d..030cc438 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **active_pods** | **dict(str, str)** | ActivePods is a mapping of pod UID to node name. It is possible for multiple pods to be running for a single VMI during migration. | [optional] **conditions** | [**list[V1VirtualMachineInstanceCondition]**](V1VirtualMachineInstanceCondition.md) | Conditions are specific points in VirtualMachineInstance's pod runtime. | [optional] **evacuation_node_name** | **str** | EvacuationNodeName is used to track the eviction process of a VMI. It stores the name of the node that we want to evacuate. It is meant to be used by KubeVirt core components only and can't be set or modified by users. | [optional] +**fs_freeze_status** | **str** | FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed | [optional] **guest_os_info** | [**V1VirtualMachineInstanceGuestOSInfo**](V1VirtualMachineInstanceGuestOSInfo.md) | Guest OS Information | [optional] **interfaces** | [**list[V1VirtualMachineInstanceNetworkInterface]**](V1VirtualMachineInstanceNetworkInterface.md) | Interfaces represent the details of available network interfaces. | [optional] **launcher_container_image_version** | **str** | LauncherContainerImageVersion indicates what container image is currently active for the vmi. | [optional] diff --git a/git_push.sh b/git_push.sh index 30030aa9..fbe33573 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.42.0-rc.0-41-g5e306d722" + release_note="Auto-generated client v0.42.0-168-g8f0f8154a" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index e452c7f5..5fddab0e 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.42.0-rc.0-41-g5e306d722/python' + self.user_agent = 'Swagger-Codegen/v0.42.0-168-g8f0f8154a/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 3922d606..ef3d2777 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.42.0-rc.0-41-g5e306d722".\ + "SDK Package Version: v0.42.0-168-g8f0f8154a".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py b/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py index 99fad3bf..575a1b5a 100644 --- a/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py +++ b/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py @@ -32,6 +32,7 @@ class V1VirtualMachineInstanceGuestAgentInfo(object): """ swagger_types = { 'api_version': 'str', + 'fs_freeze_status': 'str', 'fs_info': 'V1VirtualMachineInstanceFileSystemInfo', 'guest_agent_version': 'str', 'hostname': 'str', @@ -44,6 +45,7 @@ class V1VirtualMachineInstanceGuestAgentInfo(object): attribute_map = { 'api_version': 'apiVersion', + 'fs_freeze_status': 'fsFreezeStatus', 'fs_info': 'fsInfo', 'guest_agent_version': 'guestAgentVersion', 'hostname': 'hostname', @@ -54,12 +56,13 @@ class V1VirtualMachineInstanceGuestAgentInfo(object): 'user_list': 'userList' } - def __init__(self, api_version=None, fs_info=None, guest_agent_version=None, hostname=None, kind=None, os=None, supported_commands=None, timezone=None, user_list=None): + def __init__(self, api_version=None, fs_freeze_status=None, fs_info=None, guest_agent_version=None, hostname=None, kind=None, os=None, supported_commands=None, timezone=None, user_list=None): """ V1VirtualMachineInstanceGuestAgentInfo - a model defined in Swagger """ self._api_version = None + self._fs_freeze_status = None self._fs_info = None self._guest_agent_version = None self._hostname = None @@ -71,6 +74,8 @@ def __init__(self, api_version=None, fs_info=None, guest_agent_version=None, hos if api_version is not None: self.api_version = api_version + if fs_freeze_status is not None: + self.fs_freeze_status = fs_freeze_status if fs_info is not None: self.fs_info = fs_info if guest_agent_version is not None: @@ -111,6 +116,29 @@ def api_version(self, api_version): self._api_version = api_version + @property + def fs_freeze_status(self): + """ + Gets the fs_freeze_status of this V1VirtualMachineInstanceGuestAgentInfo. + FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed + + :return: The fs_freeze_status of this V1VirtualMachineInstanceGuestAgentInfo. + :rtype: str + """ + return self._fs_freeze_status + + @fs_freeze_status.setter + def fs_freeze_status(self, fs_freeze_status): + """ + Sets the fs_freeze_status of this V1VirtualMachineInstanceGuestAgentInfo. + FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed + + :param fs_freeze_status: The fs_freeze_status of this V1VirtualMachineInstanceGuestAgentInfo. + :type: str + """ + + self._fs_freeze_status = fs_freeze_status + @property def fs_info(self): """ diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index 67bbbac8..0e6ba353 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -34,6 +34,7 @@ class V1VirtualMachineInstanceStatus(object): 'active_pods': 'dict(str, str)', 'conditions': 'list[V1VirtualMachineInstanceCondition]', 'evacuation_node_name': 'str', + 'fs_freeze_status': 'str', 'guest_os_info': 'V1VirtualMachineInstanceGuestOSInfo', 'interfaces': 'list[V1VirtualMachineInstanceNetworkInterface]', 'launcher_container_image_version': 'str', @@ -50,6 +51,7 @@ class V1VirtualMachineInstanceStatus(object): 'active_pods': 'activePods', 'conditions': 'conditions', 'evacuation_node_name': 'evacuationNodeName', + 'fs_freeze_status': 'fsFreezeStatus', 'guest_os_info': 'guestOSInfo', 'interfaces': 'interfaces', 'launcher_container_image_version': 'launcherContainerImageVersion', @@ -62,7 +64,7 @@ class V1VirtualMachineInstanceStatus(object): 'volume_status': 'volumeStatus' } - def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, migration_method=None, migration_state=None, node_name=None, phase=None, qos_class=None, reason=None, volume_status=None): + def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, migration_method=None, migration_state=None, node_name=None, phase=None, qos_class=None, reason=None, volume_status=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ @@ -70,6 +72,7 @@ def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, self._active_pods = None self._conditions = None self._evacuation_node_name = None + self._fs_freeze_status = None self._guest_os_info = None self._interfaces = None self._launcher_container_image_version = None @@ -87,6 +90,8 @@ def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, self.conditions = conditions if evacuation_node_name is not None: self.evacuation_node_name = evacuation_node_name + if fs_freeze_status is not None: + self.fs_freeze_status = fs_freeze_status if guest_os_info is not None: self.guest_os_info = guest_os_info if interfaces is not None: @@ -177,6 +182,29 @@ def evacuation_node_name(self, evacuation_node_name): self._evacuation_node_name = evacuation_node_name + @property + def fs_freeze_status(self): + """ + Gets the fs_freeze_status of this V1VirtualMachineInstanceStatus. + FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed + + :return: The fs_freeze_status of this V1VirtualMachineInstanceStatus. + :rtype: str + """ + return self._fs_freeze_status + + @fs_freeze_status.setter + def fs_freeze_status(self, fs_freeze_status): + """ + Sets the fs_freeze_status of this V1VirtualMachineInstanceStatus. + FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed + + :param fs_freeze_status: The fs_freeze_status of this V1VirtualMachineInstanceStatus. + :type: str + """ + + self._fs_freeze_status = fs_freeze_status + @property def guest_os_info(self): """ diff --git a/setup.py b/setup.py index 35a90b88..26ccece9 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.42.0-rc.0-41-g5e306d722" +VERSION = "v0.42.0-168-g8f0f8154a" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index eecb5b84..8b2b27f4 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.42.0-rc.0-41-g5e306d722" +"packageVersion": "v0.42.0-168-g8f0f8154a" } From 96af77d50da35b0869f5d498f5fb046dd87e3382 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 17 Jun 2021 18:02:47 +0000 Subject: [PATCH 199/521] Client Python update by KubeVirt Prow build 1405576331072114688 --- README.md | 3 +- docs/DefaultApi.md | 12 +- docs/V1StopOptions.md | 12 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 12 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_stop_options.py | 181 +++++++++++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_stop_options.py | 44 +++++++ 14 files changed, 267 insertions(+), 12 deletions(-) create mode 100644 docs/V1StopOptions.md create mode 100644 kubevirt/models/v1_stop_options.py create mode 100644 test/test_v1_stop_options.py diff --git a/README.md b/README.md index 056f90ef..127b576b 100644 --- a/README.md +++ b/README.md @@ -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: v0.42.0-168-g8f0f8154a +- Package version: v0.42.0-193-g33bfe0dfa - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -370,6 +370,7 @@ Class | Method | HTTP request | Description - [V1SSHPublicKeyAccessCredentialSource](docs/V1SSHPublicKeyAccessCredentialSource.md) - [V1SecretVolumeSource](docs/V1SecretVolumeSource.md) - [V1ServiceAccountVolumeSource](docs/V1ServiceAccountVolumeSource.md) + - [V1StopOptions](docs/V1StopOptions.md) - [V1SyNICTimer](docs/V1SyNICTimer.md) - [V1SysprepSource](docs/V1SysprepSource.md) - [V1Timer](docs/V1Timer.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index c133b331..a06b7479 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -4879,7 +4879,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1_stop** -> str v1_stop(name, namespace) +> str v1_stop(name, namespace, body=body) @@ -4897,9 +4897,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1StopOptions() # V1StopOptions | (optional) try: - api_response = api_instance.v1_stop(name, namespace) + api_response = api_instance.v1_stop(name, namespace, body=body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->v1_stop: %s\n" % e) @@ -4911,6 +4912,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1StopOptions**](V1StopOptions.md)| | [optional] ### Return type @@ -5580,7 +5582,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1alpha3_stop** -> str v1alpha3_stop(name, namespace) +> str v1alpha3_stop(name, namespace, body=body) @@ -5598,9 +5600,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1StopOptions() # V1StopOptions | (optional) try: - api_response = api_instance.v1alpha3_stop(name, namespace) + api_response = api_instance.v1alpha3_stop(name, namespace, body=body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->v1alpha3_stop: %s\n" % e) @@ -5612,6 +5615,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1StopOptions**](V1StopOptions.md)| | [optional] ### Return type diff --git a/docs/V1StopOptions.md b/docs/V1StopOptions.md new file mode 100644 index 00000000..ddff69fa --- /dev/null +++ b/docs/V1StopOptions.md @@ -0,0 +1,12 @@ +# V1StopOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**grace_period** | **int** | this updates the VMIs terminationGracePeriodSeconds during shutdown | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index fbe33573..d76be309 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.42.0-168-g8f0f8154a" + release_note="Auto-generated client v0.42.0-193-g33bfe0dfa" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index c415f839..a5f0b431 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -496,6 +496,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_service_account_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_service_account_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ServiceAccountVolumeSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_stop_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_stop_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1StopOptions.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_sy_nic_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sy_nic_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SyNICTimer.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index ca0bb884..8b9c6e7f 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -173,6 +173,7 @@ from .models.v1_ssh_public_key_access_credential_source import V1SSHPublicKeyAccessCredentialSource from .models.v1_secret_volume_source import V1SecretVolumeSource from .models.v1_service_account_volume_source import V1ServiceAccountVolumeSource +from .models.v1_stop_options import V1StopOptions from .models.v1_sy_nic_timer import V1SyNICTimer from .models.v1_sysprep_source import V1SysprepSource from .models.v1_timer import V1Timer diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 5fddab0e..137fd5bf 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.42.0-168-g8f0f8154a/python' + self.user_agent = 'Swagger-Codegen/v0.42.0-193-g33bfe0dfa/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 1dd9048a..10d9ee5d 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -10377,6 +10377,7 @@ def v1_stop(self, name, namespace, **kwargs): for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1StopOptions body: :return: str If the method is called asynchronously, returns the request thread. @@ -10403,12 +10404,13 @@ def v1_stop_with_http_info(self, name, namespace, **kwargs): for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1StopOptions body: :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10447,6 +10449,8 @@ def v1_stop_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] @@ -11889,6 +11893,7 @@ def v1alpha3_stop(self, name, namespace, **kwargs): for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1StopOptions body: :return: str If the method is called asynchronously, returns the request thread. @@ -11915,12 +11920,13 @@ def v1alpha3_stop_with_http_info(self, name, namespace, **kwargs): for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1StopOptions body: :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -11959,6 +11965,8 @@ def v1alpha3_stop_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index ef3d2777..d063e84e 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.42.0-168-g8f0f8154a".\ + "SDK Package Version: v0.42.0-193-g33bfe0dfa".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 414a4f48..0dd1abf6 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -173,6 +173,7 @@ from .v1_ssh_public_key_access_credential_source import V1SSHPublicKeyAccessCredentialSource from .v1_secret_volume_source import V1SecretVolumeSource from .v1_service_account_volume_source import V1ServiceAccountVolumeSource +from .v1_stop_options import V1StopOptions from .v1_sy_nic_timer import V1SyNICTimer from .v1_sysprep_source import V1SysprepSource from .v1_timer import V1Timer diff --git a/kubevirt/models/v1_stop_options.py b/kubevirt/models/v1_stop_options.py new file mode 100644 index 00000000..c469028a --- /dev/null +++ b/kubevirt/models/v1_stop_options.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1StopOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'grace_period': 'int', + 'kind': 'str' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'grace_period': 'gracePeriod', + 'kind': 'kind' + } + + def __init__(self, api_version=None, grace_period=None, kind=None): + """ + V1StopOptions - a model defined in Swagger + """ + + self._api_version = None + self._grace_period = None + self._kind = None + + if api_version is not None: + self.api_version = api_version + if grace_period is not None: + self.grace_period = grace_period + if kind is not None: + self.kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1StopOptions. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1StopOptions. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1StopOptions. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1StopOptions. + :type: str + """ + + self._api_version = api_version + + @property + def grace_period(self): + """ + Gets the grace_period of this V1StopOptions. + this updates the VMIs terminationGracePeriodSeconds during shutdown + + :return: The grace_period of this V1StopOptions. + :rtype: int + """ + return self._grace_period + + @grace_period.setter + def grace_period(self, grace_period): + """ + Sets the grace_period of this V1StopOptions. + this updates the VMIs terminationGracePeriodSeconds during shutdown + + :param grace_period: The grace_period of this V1StopOptions. + :type: int + """ + + self._grace_period = grace_period + + @property + def kind(self): + """ + Gets the kind of this V1StopOptions. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1StopOptions. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1StopOptions. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1StopOptions. + :type: str + """ + + self._kind = kind + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1StopOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 26ccece9..efbb6080 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.42.0-168-g8f0f8154a" +VERSION = "v0.42.0-193-g33bfe0dfa" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 8b2b27f4..94259fcd 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.42.0-168-g8f0f8154a" +"packageVersion": "v0.42.0-193-g33bfe0dfa" } diff --git a/test/test_v1_stop_options.py b/test/test_v1_stop_options.py new file mode 100644 index 00000000..66688411 --- /dev/null +++ b/test/test_v1_stop_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_stop_options import V1StopOptions + + +class TestV1StopOptions(unittest.TestCase): + """ V1StopOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1StopOptions(self): + """ + Test V1StopOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_stop_options.V1StopOptions() + pass + + +if __name__ == '__main__': + unittest.main() From 8f6e226286a69ac85c473cb002c4198540f0f2fc Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 18 Jun 2021 08:21:13 +0000 Subject: [PATCH 200/521] Client Python update by KubeVirt Prow build 1405793613912215552 --- README.md | 2 +- docs/V1DeveloperConfiguration.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_developer_configuration.py | 28 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 34 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 127b576b..b43aa116 100644 --- a/README.md +++ b/README.md @@ -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: v0.42.0-193-g33bfe0dfa +- Package version: v0.42.0-207-gedf8b8f70 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1DeveloperConfiguration.md b/docs/V1DeveloperConfiguration.md index 7db43f46..fa8d004b 100644 --- a/docs/V1DeveloperConfiguration.md +++ b/docs/V1DeveloperConfiguration.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **feature_gates** | **list[str]** | | [optional] **log_verbosity** | [**V1LogVerbosity**](V1LogVerbosity.md) | | [optional] **memory_overcommit** | **int** | | [optional] +**minimum_reserve_pvc_bytes** | **int** | | [optional] **node_selectors** | **dict(str, str)** | | [optional] **pvc_tolerate_less_space_up_to_percent** | **int** | | [optional] **use_emulation** | **bool** | | [optional] diff --git a/git_push.sh b/git_push.sh index d76be309..70327686 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.42.0-193-g33bfe0dfa" + release_note="Auto-generated client v0.42.0-207-gedf8b8f70" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 137fd5bf..b3268649 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.42.0-193-g33bfe0dfa/python' + self.user_agent = 'Swagger-Codegen/v0.42.0-207-gedf8b8f70/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index d063e84e..ca57e68f 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.42.0-193-g33bfe0dfa".\ + "SDK Package Version: v0.42.0-207-gedf8b8f70".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_developer_configuration.py b/kubevirt/models/v1_developer_configuration.py index b8dc8e83..8da8c57d 100644 --- a/kubevirt/models/v1_developer_configuration.py +++ b/kubevirt/models/v1_developer_configuration.py @@ -35,6 +35,7 @@ class V1DeveloperConfiguration(object): 'feature_gates': 'list[str]', 'log_verbosity': 'V1LogVerbosity', 'memory_overcommit': 'int', + 'minimum_reserve_pvc_bytes': 'int', 'node_selectors': 'dict(str, str)', 'pvc_tolerate_less_space_up_to_percent': 'int', 'use_emulation': 'bool' @@ -45,12 +46,13 @@ class V1DeveloperConfiguration(object): 'feature_gates': 'featureGates', 'log_verbosity': 'logVerbosity', 'memory_overcommit': 'memoryOvercommit', + 'minimum_reserve_pvc_bytes': 'minimumReservePVCBytes', 'node_selectors': 'nodeSelectors', 'pvc_tolerate_less_space_up_to_percent': 'pvcTolerateLessSpaceUpToPercent', 'use_emulation': 'useEmulation' } - def __init__(self, cpu_allocation_ratio=None, feature_gates=None, log_verbosity=None, memory_overcommit=None, node_selectors=None, pvc_tolerate_less_space_up_to_percent=None, use_emulation=None): + def __init__(self, cpu_allocation_ratio=None, feature_gates=None, log_verbosity=None, memory_overcommit=None, minimum_reserve_pvc_bytes=None, node_selectors=None, pvc_tolerate_less_space_up_to_percent=None, use_emulation=None): """ V1DeveloperConfiguration - a model defined in Swagger """ @@ -59,6 +61,7 @@ def __init__(self, cpu_allocation_ratio=None, feature_gates=None, log_verbosity= self._feature_gates = None self._log_verbosity = None self._memory_overcommit = None + self._minimum_reserve_pvc_bytes = None self._node_selectors = None self._pvc_tolerate_less_space_up_to_percent = None self._use_emulation = None @@ -71,6 +74,8 @@ def __init__(self, cpu_allocation_ratio=None, feature_gates=None, log_verbosity= self.log_verbosity = log_verbosity if memory_overcommit is not None: self.memory_overcommit = memory_overcommit + if minimum_reserve_pvc_bytes is not None: + self.minimum_reserve_pvc_bytes = minimum_reserve_pvc_bytes if node_selectors is not None: self.node_selectors = node_selectors if pvc_tolerate_less_space_up_to_percent is not None: @@ -162,6 +167,27 @@ def memory_overcommit(self, memory_overcommit): self._memory_overcommit = memory_overcommit + @property + def minimum_reserve_pvc_bytes(self): + """ + Gets the minimum_reserve_pvc_bytes of this V1DeveloperConfiguration. + + :return: The minimum_reserve_pvc_bytes of this V1DeveloperConfiguration. + :rtype: int + """ + return self._minimum_reserve_pvc_bytes + + @minimum_reserve_pvc_bytes.setter + def minimum_reserve_pvc_bytes(self, minimum_reserve_pvc_bytes): + """ + Sets the minimum_reserve_pvc_bytes of this V1DeveloperConfiguration. + + :param minimum_reserve_pvc_bytes: The minimum_reserve_pvc_bytes of this V1DeveloperConfiguration. + :type: int + """ + + self._minimum_reserve_pvc_bytes = minimum_reserve_pvc_bytes + @property def node_selectors(self): """ diff --git a/setup.py b/setup.py index efbb6080..b3bc48a5 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.42.0-193-g33bfe0dfa" +VERSION = "v0.42.0-207-gedf8b8f70" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 94259fcd..0148e9f3 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.42.0-193-g33bfe0dfa" +"packageVersion": "v0.42.0-207-gedf8b8f70" } From 1b2317420e9f1f208da0f541fc04570760e5b99f Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Sat, 19 Jun 2021 06:49:21 +0000 Subject: [PATCH 201/521] Client Python update by KubeVirt Prow build 1406133090635485184 --- README.md | 3 +- ...MachineInstancePhaseTransitionTimestamp.md | 11 ++ docs/V1VirtualMachineInstanceStatus.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + ...ine_instance_phase_transition_timestamp.py | 153 ++++++++++++++++++ .../v1_virtual_machine_instance_status.py | 30 +++- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...ine_instance_phase_transition_timestamp.py | 44 +++++ 14 files changed, 250 insertions(+), 7 deletions(-) create mode 100644 docs/V1VirtualMachineInstancePhaseTransitionTimestamp.md create mode 100644 kubevirt/models/v1_virtual_machine_instance_phase_transition_timestamp.py create mode 100644 test/test_v1_virtual_machine_instance_phase_transition_timestamp.py diff --git a/README.md b/README.md index b43aa116..b2cc205c 100644 --- a/README.md +++ b/README.md @@ -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: v0.42.0-207-gedf8b8f70 +- Package version: v0.42.0-220-g7c3b33528 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -396,6 +396,7 @@ Class | Method | HTTP request | Description - [V1VirtualMachineInstanceMigrationState](docs/V1VirtualMachineInstanceMigrationState.md) - [V1VirtualMachineInstanceMigrationStatus](docs/V1VirtualMachineInstanceMigrationStatus.md) - [V1VirtualMachineInstanceNetworkInterface](docs/V1VirtualMachineInstanceNetworkInterface.md) + - [V1VirtualMachineInstancePhaseTransitionTimestamp](docs/V1VirtualMachineInstancePhaseTransitionTimestamp.md) - [V1VirtualMachineInstancePreset](docs/V1VirtualMachineInstancePreset.md) - [V1VirtualMachineInstancePresetList](docs/V1VirtualMachineInstancePresetList.md) - [V1VirtualMachineInstancePresetSpec](docs/V1VirtualMachineInstancePresetSpec.md) diff --git a/docs/V1VirtualMachineInstancePhaseTransitionTimestamp.md b/docs/V1VirtualMachineInstancePhaseTransitionTimestamp.md new file mode 100644 index 00000000..33c9b3ae --- /dev/null +++ b/docs/V1VirtualMachineInstancePhaseTransitionTimestamp.md @@ -0,0 +1,11 @@ +# V1VirtualMachineInstancePhaseTransitionTimestamp + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**phase** | **str** | Phase is the status of the VirtualMachineInstance in kubernetes world. It is not the VirtualMachineInstance status, but partially correlates to it. | [optional] +**phase_transition_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | PhaseTransitionTimestamp is the timestamp of when the phase change occurred | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index 030cc438..1285e1dc 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **migration_state** | [**V1VirtualMachineInstanceMigrationState**](V1VirtualMachineInstanceMigrationState.md) | Represents the status of a live migration | [optional] **node_name** | **str** | NodeName is the name where the VirtualMachineInstance is currently running. | [optional] **phase** | **str** | Phase is the status of the VirtualMachineInstance in kubernetes world. It is not the VirtualMachineInstance status, but partially correlates to it. | [optional] +**phase_transition_timestamps** | [**list[V1VirtualMachineInstancePhaseTransitionTimestamp]**](V1VirtualMachineInstancePhaseTransitionTimestamp.md) | PhaseTransitionTimestamp is the timestamp of when the last phase change occurred | [optional] **qos_class** | **str** | The Quality of Service (QOS) classification assigned to the virtual machine instance based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md | [optional] **reason** | **str** | A brief CamelCase message indicating details about why the VMI is in this state. e.g. 'NodeUnresponsive' | [optional] **volume_status** | [**list[V1VolumeStatus]**](V1VolumeStatus.md) | VolumeStatus contains the statuses of all the volumes | [optional] diff --git a/git_push.sh b/git_push.sh index 70327686..7178d710 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.42.0-207-gedf8b8f70" + release_note="Auto-generated client v0.42.0-220-g7c3b33528" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index a5f0b431..776dbf7f 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -574,6 +574,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_virtual_machine_instance_network_interface.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_network_interface.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceNetworkInterface.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_phase_transition_timestamp.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_phase_transition_timestamp.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstancePhaseTransitionTimestamp.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_preset.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_preset.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstancePreset.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 8b9c6e7f..866413c6 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -199,6 +199,7 @@ from .models.v1_virtual_machine_instance_migration_state import V1VirtualMachineInstanceMigrationState from .models.v1_virtual_machine_instance_migration_status import V1VirtualMachineInstanceMigrationStatus from .models.v1_virtual_machine_instance_network_interface import V1VirtualMachineInstanceNetworkInterface +from .models.v1_virtual_machine_instance_phase_transition_timestamp import V1VirtualMachineInstancePhaseTransitionTimestamp from .models.v1_virtual_machine_instance_preset import V1VirtualMachineInstancePreset from .models.v1_virtual_machine_instance_preset_list import V1VirtualMachineInstancePresetList from .models.v1_virtual_machine_instance_preset_spec import V1VirtualMachineInstancePresetSpec diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index b3268649..44d3aae0 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.42.0-207-gedf8b8f70/python' + self.user_agent = 'Swagger-Codegen/v0.42.0-220-g7c3b33528/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index ca57e68f..47c3d63b 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.42.0-207-gedf8b8f70".\ + "SDK Package Version: v0.42.0-220-g7c3b33528".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 0dd1abf6..4324648f 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -199,6 +199,7 @@ from .v1_virtual_machine_instance_migration_state import V1VirtualMachineInstanceMigrationState from .v1_virtual_machine_instance_migration_status import V1VirtualMachineInstanceMigrationStatus from .v1_virtual_machine_instance_network_interface import V1VirtualMachineInstanceNetworkInterface +from .v1_virtual_machine_instance_phase_transition_timestamp import V1VirtualMachineInstancePhaseTransitionTimestamp from .v1_virtual_machine_instance_preset import V1VirtualMachineInstancePreset from .v1_virtual_machine_instance_preset_list import V1VirtualMachineInstancePresetList from .v1_virtual_machine_instance_preset_spec import V1VirtualMachineInstancePresetSpec diff --git a/kubevirt/models/v1_virtual_machine_instance_phase_transition_timestamp.py b/kubevirt/models/v1_virtual_machine_instance_phase_transition_timestamp.py new file mode 100644 index 00000000..cc611cca --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_phase_transition_timestamp.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineInstancePhaseTransitionTimestamp(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'phase': 'str', + 'phase_transition_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time' + } + + attribute_map = { + 'phase': 'phase', + 'phase_transition_timestamp': 'phaseTransitionTimestamp' + } + + def __init__(self, phase=None, phase_transition_timestamp=None): + """ + V1VirtualMachineInstancePhaseTransitionTimestamp - a model defined in Swagger + """ + + self._phase = None + self._phase_transition_timestamp = None + + if phase is not None: + self.phase = phase + if phase_transition_timestamp is not None: + self.phase_transition_timestamp = phase_transition_timestamp + + @property + def phase(self): + """ + Gets the phase of this V1VirtualMachineInstancePhaseTransitionTimestamp. + Phase is the status of the VirtualMachineInstance in kubernetes world. It is not the VirtualMachineInstance status, but partially correlates to it. + + :return: The phase of this V1VirtualMachineInstancePhaseTransitionTimestamp. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """ + Sets the phase of this V1VirtualMachineInstancePhaseTransitionTimestamp. + Phase is the status of the VirtualMachineInstance in kubernetes world. It is not the VirtualMachineInstance status, but partially correlates to it. + + :param phase: The phase of this V1VirtualMachineInstancePhaseTransitionTimestamp. + :type: str + """ + + self._phase = phase + + @property + def phase_transition_timestamp(self): + """ + Gets the phase_transition_timestamp of this V1VirtualMachineInstancePhaseTransitionTimestamp. + PhaseTransitionTimestamp is the timestamp of when the phase change occurred + + :return: The phase_transition_timestamp of this V1VirtualMachineInstancePhaseTransitionTimestamp. + :rtype: K8sIoApimachineryPkgApisMetaV1Time + """ + return self._phase_transition_timestamp + + @phase_transition_timestamp.setter + def phase_transition_timestamp(self, phase_transition_timestamp): + """ + Sets the phase_transition_timestamp of this V1VirtualMachineInstancePhaseTransitionTimestamp. + PhaseTransitionTimestamp is the timestamp of when the phase change occurred + + :param phase_transition_timestamp: The phase_transition_timestamp of this V1VirtualMachineInstancePhaseTransitionTimestamp. + :type: K8sIoApimachineryPkgApisMetaV1Time + """ + + self._phase_transition_timestamp = phase_transition_timestamp + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineInstancePhaseTransitionTimestamp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index 0e6ba353..cc7ddd63 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -42,6 +42,7 @@ class V1VirtualMachineInstanceStatus(object): 'migration_state': 'V1VirtualMachineInstanceMigrationState', 'node_name': 'str', 'phase': 'str', + 'phase_transition_timestamps': 'list[V1VirtualMachineInstancePhaseTransitionTimestamp]', 'qos_class': 'str', 'reason': 'str', 'volume_status': 'list[V1VolumeStatus]' @@ -59,12 +60,13 @@ class V1VirtualMachineInstanceStatus(object): 'migration_state': 'migrationState', 'node_name': 'nodeName', 'phase': 'phase', + 'phase_transition_timestamps': 'phaseTransitionTimestamps', 'qos_class': 'qosClass', 'reason': 'reason', 'volume_status': 'volumeStatus' } - def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, migration_method=None, migration_state=None, node_name=None, phase=None, qos_class=None, reason=None, volume_status=None): + def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, migration_method=None, migration_state=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, volume_status=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ @@ -80,6 +82,7 @@ def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, self._migration_state = None self._node_name = None self._phase = None + self._phase_transition_timestamps = None self._qos_class = None self._reason = None self._volume_status = None @@ -106,6 +109,8 @@ def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, self.node_name = node_name if phase is not None: self.phase = phase + if phase_transition_timestamps is not None: + self.phase_transition_timestamps = phase_transition_timestamps if qos_class is not None: self.qos_class = qos_class if reason is not None: @@ -366,6 +371,29 @@ def phase(self, phase): self._phase = phase + @property + def phase_transition_timestamps(self): + """ + Gets the phase_transition_timestamps of this V1VirtualMachineInstanceStatus. + PhaseTransitionTimestamp is the timestamp of when the last phase change occurred + + :return: The phase_transition_timestamps of this V1VirtualMachineInstanceStatus. + :rtype: list[V1VirtualMachineInstancePhaseTransitionTimestamp] + """ + return self._phase_transition_timestamps + + @phase_transition_timestamps.setter + def phase_transition_timestamps(self, phase_transition_timestamps): + """ + Sets the phase_transition_timestamps of this V1VirtualMachineInstanceStatus. + PhaseTransitionTimestamp is the timestamp of when the last phase change occurred + + :param phase_transition_timestamps: The phase_transition_timestamps of this V1VirtualMachineInstanceStatus. + :type: list[V1VirtualMachineInstancePhaseTransitionTimestamp] + """ + + self._phase_transition_timestamps = phase_transition_timestamps + @property def qos_class(self): """ diff --git a/setup.py b/setup.py index b3bc48a5..64174b21 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.42.0-207-gedf8b8f70" +VERSION = "v0.42.0-220-g7c3b33528" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 0148e9f3..9f0a3d76 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.42.0-207-gedf8b8f70" +"packageVersion": "v0.42.0-220-g7c3b33528" } diff --git a/test/test_v1_virtual_machine_instance_phase_transition_timestamp.py b/test/test_v1_virtual_machine_instance_phase_transition_timestamp.py new file mode 100644 index 00000000..18e54500 --- /dev/null +++ b/test/test_v1_virtual_machine_instance_phase_transition_timestamp.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_phase_transition_timestamp import V1VirtualMachineInstancePhaseTransitionTimestamp + + +class TestV1VirtualMachineInstancePhaseTransitionTimestamp(unittest.TestCase): + """ V1VirtualMachineInstancePhaseTransitionTimestamp unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstancePhaseTransitionTimestamp(self): + """ + Test V1VirtualMachineInstancePhaseTransitionTimestamp + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_phase_transition_timestamp.V1VirtualMachineInstancePhaseTransitionTimestamp() + pass + + +if __name__ == '__main__': + unittest.main() From a6d1db3265f37e19c061153f52eb700428c0bb7e Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 24 Jun 2021 14:15:21 +0000 Subject: [PATCH 202/521] Client Python update by KubeVirt Prow build 1408051762396401664 --- README.md | 3 +- docs/V1DeveloperConfiguration.md | 1 + docs/V1TopologyHints.md | 10 ++ docs/V1VirtualMachineInstanceStatus.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_developer_configuration.py | 30 ++++- kubevirt/models/v1_topology_hints.py | 123 ++++++++++++++++++ .../v1_virtual_machine_instance_status.py | 28 +++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_topology_hints.py | 44 +++++++ 16 files changed, 247 insertions(+), 8 deletions(-) create mode 100644 docs/V1TopologyHints.md create mode 100644 kubevirt/models/v1_topology_hints.py create mode 100644 test/test_v1_topology_hints.py diff --git a/README.md b/README.md index b2cc205c..732d4770 100644 --- a/README.md +++ b/README.md @@ -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: v0.42.0-220-g7c3b33528 +- Package version: v0.42.0-286-gea965f2f0 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -374,6 +374,7 @@ Class | Method | HTTP request | Description - [V1SyNICTimer](docs/V1SyNICTimer.md) - [V1SysprepSource](docs/V1SysprepSource.md) - [V1Timer](docs/V1Timer.md) + - [V1TopologyHints](docs/V1TopologyHints.md) - [V1UserPasswordAccessCredential](docs/V1UserPasswordAccessCredential.md) - [V1UserPasswordAccessCredentialPropagationMethod](docs/V1UserPasswordAccessCredentialPropagationMethod.md) - [V1UserPasswordAccessCredentialSource](docs/V1UserPasswordAccessCredentialSource.md) diff --git a/docs/V1DeveloperConfiguration.md b/docs/V1DeveloperConfiguration.md index fa8d004b..82601af2 100644 --- a/docs/V1DeveloperConfiguration.md +++ b/docs/V1DeveloperConfiguration.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **feature_gates** | **list[str]** | | [optional] **log_verbosity** | [**V1LogVerbosity**](V1LogVerbosity.md) | | [optional] **memory_overcommit** | **int** | | [optional] +**minimum_cluster_tsc_frequency** | **int** | Allow overriding the automatically determined minimum TSC frequency of the cluster and fixate the minimum to this frequency. | [optional] **minimum_reserve_pvc_bytes** | **int** | | [optional] **node_selectors** | **dict(str, str)** | | [optional] **pvc_tolerate_less_space_up_to_percent** | **int** | | [optional] diff --git a/docs/V1TopologyHints.md b/docs/V1TopologyHints.md new file mode 100644 index 00000000..d0aa7e53 --- /dev/null +++ b/docs/V1TopologyHints.md @@ -0,0 +1,10 @@ +# V1TopologyHints + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tsc_frequency** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index 1285e1dc..2af63020 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **phase_transition_timestamps** | [**list[V1VirtualMachineInstancePhaseTransitionTimestamp]**](V1VirtualMachineInstancePhaseTransitionTimestamp.md) | PhaseTransitionTimestamp is the timestamp of when the last phase change occurred | [optional] **qos_class** | **str** | The Quality of Service (QOS) classification assigned to the virtual machine instance based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md | [optional] **reason** | **str** | A brief CamelCase message indicating details about why the VMI is in this state. e.g. 'NodeUnresponsive' | [optional] +**topology_hints** | [**V1TopologyHints**](V1TopologyHints.md) | | [optional] **volume_status** | [**list[V1VolumeStatus]**](V1VolumeStatus.md) | VolumeStatus contains the statuses of all the volumes | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 7178d710..1760a18f 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.42.0-220-g7c3b33528" + release_note="Auto-generated client v0.42.0-286-gea965f2f0" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 776dbf7f..118e3b86 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -508,6 +508,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_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Timer.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_topology_hints.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_topology_hints.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1TopologyHints.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_user_password_access_credential.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_user_password_access_credential.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1UserPasswordAccessCredential.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 866413c6..ced81d32 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -177,6 +177,7 @@ from .models.v1_sy_nic_timer import V1SyNICTimer from .models.v1_sysprep_source import V1SysprepSource from .models.v1_timer import V1Timer +from .models.v1_topology_hints import V1TopologyHints from .models.v1_user_password_access_credential import V1UserPasswordAccessCredential from .models.v1_user_password_access_credential_propagation_method import V1UserPasswordAccessCredentialPropagationMethod from .models.v1_user_password_access_credential_source import V1UserPasswordAccessCredentialSource diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 44d3aae0..69dc08f8 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.42.0-220-g7c3b33528/python' + self.user_agent = 'Swagger-Codegen/v0.42.0-286-gea965f2f0/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 47c3d63b..7b13fcbb 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.42.0-220-g7c3b33528".\ + "SDK Package Version: v0.42.0-286-gea965f2f0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 4324648f..238e7142 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -177,6 +177,7 @@ from .v1_sy_nic_timer import V1SyNICTimer from .v1_sysprep_source import V1SysprepSource from .v1_timer import V1Timer +from .v1_topology_hints import V1TopologyHints from .v1_user_password_access_credential import V1UserPasswordAccessCredential from .v1_user_password_access_credential_propagation_method import V1UserPasswordAccessCredentialPropagationMethod from .v1_user_password_access_credential_source import V1UserPasswordAccessCredentialSource diff --git a/kubevirt/models/v1_developer_configuration.py b/kubevirt/models/v1_developer_configuration.py index 8da8c57d..da2e8fdd 100644 --- a/kubevirt/models/v1_developer_configuration.py +++ b/kubevirt/models/v1_developer_configuration.py @@ -35,6 +35,7 @@ class V1DeveloperConfiguration(object): 'feature_gates': 'list[str]', 'log_verbosity': 'V1LogVerbosity', 'memory_overcommit': 'int', + 'minimum_cluster_tsc_frequency': 'int', 'minimum_reserve_pvc_bytes': 'int', 'node_selectors': 'dict(str, str)', 'pvc_tolerate_less_space_up_to_percent': 'int', @@ -46,13 +47,14 @@ class V1DeveloperConfiguration(object): 'feature_gates': 'featureGates', 'log_verbosity': 'logVerbosity', 'memory_overcommit': 'memoryOvercommit', + 'minimum_cluster_tsc_frequency': 'minimumClusterTSCFrequency', 'minimum_reserve_pvc_bytes': 'minimumReservePVCBytes', 'node_selectors': 'nodeSelectors', 'pvc_tolerate_less_space_up_to_percent': 'pvcTolerateLessSpaceUpToPercent', 'use_emulation': 'useEmulation' } - def __init__(self, cpu_allocation_ratio=None, feature_gates=None, log_verbosity=None, memory_overcommit=None, minimum_reserve_pvc_bytes=None, node_selectors=None, pvc_tolerate_less_space_up_to_percent=None, use_emulation=None): + def __init__(self, cpu_allocation_ratio=None, feature_gates=None, log_verbosity=None, memory_overcommit=None, minimum_cluster_tsc_frequency=None, minimum_reserve_pvc_bytes=None, node_selectors=None, pvc_tolerate_less_space_up_to_percent=None, use_emulation=None): """ V1DeveloperConfiguration - a model defined in Swagger """ @@ -61,6 +63,7 @@ def __init__(self, cpu_allocation_ratio=None, feature_gates=None, log_verbosity= self._feature_gates = None self._log_verbosity = None self._memory_overcommit = None + self._minimum_cluster_tsc_frequency = None self._minimum_reserve_pvc_bytes = None self._node_selectors = None self._pvc_tolerate_less_space_up_to_percent = None @@ -74,6 +77,8 @@ def __init__(self, cpu_allocation_ratio=None, feature_gates=None, log_verbosity= self.log_verbosity = log_verbosity if memory_overcommit is not None: self.memory_overcommit = memory_overcommit + if minimum_cluster_tsc_frequency is not None: + self.minimum_cluster_tsc_frequency = minimum_cluster_tsc_frequency if minimum_reserve_pvc_bytes is not None: self.minimum_reserve_pvc_bytes = minimum_reserve_pvc_bytes if node_selectors is not None: @@ -167,6 +172,29 @@ def memory_overcommit(self, memory_overcommit): self._memory_overcommit = memory_overcommit + @property + def minimum_cluster_tsc_frequency(self): + """ + Gets the minimum_cluster_tsc_frequency of this V1DeveloperConfiguration. + Allow overriding the automatically determined minimum TSC frequency of the cluster and fixate the minimum to this frequency. + + :return: The minimum_cluster_tsc_frequency of this V1DeveloperConfiguration. + :rtype: int + """ + return self._minimum_cluster_tsc_frequency + + @minimum_cluster_tsc_frequency.setter + def minimum_cluster_tsc_frequency(self, minimum_cluster_tsc_frequency): + """ + Sets the minimum_cluster_tsc_frequency of this V1DeveloperConfiguration. + Allow overriding the automatically determined minimum TSC frequency of the cluster and fixate the minimum to this frequency. + + :param minimum_cluster_tsc_frequency: The minimum_cluster_tsc_frequency of this V1DeveloperConfiguration. + :type: int + """ + + self._minimum_cluster_tsc_frequency = minimum_cluster_tsc_frequency + @property def minimum_reserve_pvc_bytes(self): """ diff --git a/kubevirt/models/v1_topology_hints.py b/kubevirt/models/v1_topology_hints.py new file mode 100644 index 00000000..d7e0fc53 --- /dev/null +++ b/kubevirt/models/v1_topology_hints.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1TopologyHints(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'tsc_frequency': 'int' + } + + attribute_map = { + 'tsc_frequency': 'tscFrequency' + } + + def __init__(self, tsc_frequency=None): + """ + V1TopologyHints - a model defined in Swagger + """ + + self._tsc_frequency = None + + if tsc_frequency is not None: + self.tsc_frequency = tsc_frequency + + @property + def tsc_frequency(self): + """ + Gets the tsc_frequency of this V1TopologyHints. + + :return: The tsc_frequency of this V1TopologyHints. + :rtype: int + """ + return self._tsc_frequency + + @tsc_frequency.setter + def tsc_frequency(self, tsc_frequency): + """ + Sets the tsc_frequency of this V1TopologyHints. + + :param tsc_frequency: The tsc_frequency of this V1TopologyHints. + :type: int + """ + + self._tsc_frequency = tsc_frequency + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1TopologyHints): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index cc7ddd63..65cabc09 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -45,6 +45,7 @@ class V1VirtualMachineInstanceStatus(object): 'phase_transition_timestamps': 'list[V1VirtualMachineInstancePhaseTransitionTimestamp]', 'qos_class': 'str', 'reason': 'str', + 'topology_hints': 'V1TopologyHints', 'volume_status': 'list[V1VolumeStatus]' } @@ -63,10 +64,11 @@ class V1VirtualMachineInstanceStatus(object): 'phase_transition_timestamps': 'phaseTransitionTimestamps', 'qos_class': 'qosClass', 'reason': 'reason', + 'topology_hints': 'topologyHints', 'volume_status': 'volumeStatus' } - def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, migration_method=None, migration_state=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, volume_status=None): + def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, migration_method=None, migration_state=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, topology_hints=None, volume_status=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ @@ -85,6 +87,7 @@ def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, self._phase_transition_timestamps = None self._qos_class = None self._reason = None + self._topology_hints = None self._volume_status = None if active_pods is not None: @@ -115,6 +118,8 @@ def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, self.qos_class = qos_class if reason is not None: self.reason = reason + if topology_hints is not None: + self.topology_hints = topology_hints if volume_status is not None: self.volume_status = volume_status @@ -440,6 +445,27 @@ def reason(self, reason): self._reason = reason + @property + def topology_hints(self): + """ + Gets the topology_hints of this V1VirtualMachineInstanceStatus. + + :return: The topology_hints of this V1VirtualMachineInstanceStatus. + :rtype: V1TopologyHints + """ + return self._topology_hints + + @topology_hints.setter + def topology_hints(self, topology_hints): + """ + Sets the topology_hints of this V1VirtualMachineInstanceStatus. + + :param topology_hints: The topology_hints of this V1VirtualMachineInstanceStatus. + :type: V1TopologyHints + """ + + self._topology_hints = topology_hints + @property def volume_status(self): """ diff --git a/setup.py b/setup.py index 64174b21..4f02077d 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.42.0-220-g7c3b33528" +VERSION = "v0.42.0-286-gea965f2f0" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 9f0a3d76..5cdee7d6 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.42.0-220-g7c3b33528" +"packageVersion": "v0.42.0-286-gea965f2f0" } diff --git a/test/test_v1_topology_hints.py b/test/test_v1_topology_hints.py new file mode 100644 index 00000000..fda9bf1f --- /dev/null +++ b/test/test_v1_topology_hints.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_topology_hints import V1TopologyHints + + +class TestV1TopologyHints(unittest.TestCase): + """ V1TopologyHints unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1TopologyHints(self): + """ + Test V1TopologyHints + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_topology_hints.V1TopologyHints() + pass + + +if __name__ == '__main__': + unittest.main() From b6cdaf7960d5cb77f4c5a132cdd6a90bbb9f03b0 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 24 Jun 2021 16:39:49 +0000 Subject: [PATCH 203/521] Client Python update by KubeVirt Prow build 1408090219000893440 --- README.md | 2 +- docs/V1PciHostDevice.md | 6 +++--- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_pci_host_device.py | 6 ++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 15 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 732d4770..a3553a0e 100644 --- a/README.md +++ b/README.md @@ -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: v0.42.0-286-gea965f2f0 +- Package version: v0.42.0-298-gabe728376 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1PciHostDevice.md b/docs/V1PciHostDevice.md index 6a9d58e8..9af5d9b6 100644 --- a/docs/V1PciHostDevice.md +++ b/docs/V1PciHostDevice.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**external_resource_provider** | **bool** | | [optional] -**pci_vendor_selector** | **str** | | -**resource_name** | **str** | | +**external_resource_provider** | **bool** | If true, KubeVirt will leave the allocation and monitoring to an external device plugin | [optional] +**pci_vendor_selector** | **str** | The vendor_id:product_id tupple of the PCI device | +**resource_name** | **str** | The name of the resource that is representing the device. Exposed by a device plugin and requested by VMs. Typically of the form vendor.com/product_nameThe name of the resource that is representing the device. Exposed by a device plugin and requested by VMs. Typically of the form vendor.com/product_name | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 1760a18f..29277e55 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.42.0-286-gea965f2f0" + release_note="Auto-generated client v0.42.0-298-gabe728376" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 69dc08f8..d091928b 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.42.0-286-gea965f2f0/python' + self.user_agent = 'Swagger-Codegen/v0.42.0-298-gabe728376/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 7b13fcbb..e053a26d 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.42.0-286-gea965f2f0".\ + "SDK Package Version: v0.42.0-298-gabe728376".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_pci_host_device.py b/kubevirt/models/v1_pci_host_device.py index 65d45e68..79cd11e9 100644 --- a/kubevirt/models/v1_pci_host_device.py +++ b/kubevirt/models/v1_pci_host_device.py @@ -60,6 +60,7 @@ def __init__(self, external_resource_provider=None, pci_vendor_selector=None, re def external_resource_provider(self): """ Gets the external_resource_provider of this V1PciHostDevice. + If true, KubeVirt will leave the allocation and monitoring to an external device plugin :return: The external_resource_provider of this V1PciHostDevice. :rtype: bool @@ -70,6 +71,7 @@ def external_resource_provider(self): def external_resource_provider(self, external_resource_provider): """ Sets the external_resource_provider of this V1PciHostDevice. + If true, KubeVirt will leave the allocation and monitoring to an external device plugin :param external_resource_provider: The external_resource_provider of this V1PciHostDevice. :type: bool @@ -81,6 +83,7 @@ def external_resource_provider(self, external_resource_provider): def pci_vendor_selector(self): """ Gets the pci_vendor_selector of this V1PciHostDevice. + The vendor_id:product_id tupple of the PCI device :return: The pci_vendor_selector of this V1PciHostDevice. :rtype: str @@ -91,6 +94,7 @@ def pci_vendor_selector(self): def pci_vendor_selector(self, pci_vendor_selector): """ Sets the pci_vendor_selector of this V1PciHostDevice. + The vendor_id:product_id tupple of the PCI device :param pci_vendor_selector: The pci_vendor_selector of this V1PciHostDevice. :type: str @@ -104,6 +108,7 @@ def pci_vendor_selector(self, pci_vendor_selector): def resource_name(self): """ Gets the resource_name of this V1PciHostDevice. + The name of the resource that is representing the device. Exposed by a device plugin and requested by VMs. Typically of the form vendor.com/product_nameThe name of the resource that is representing the device. Exposed by a device plugin and requested by VMs. Typically of the form vendor.com/product_name :return: The resource_name of this V1PciHostDevice. :rtype: str @@ -114,6 +119,7 @@ def resource_name(self): def resource_name(self, resource_name): """ Sets the resource_name of this V1PciHostDevice. + The name of the resource that is representing the device. Exposed by a device plugin and requested by VMs. Typically of the form vendor.com/product_nameThe name of the resource that is representing the device. Exposed by a device plugin and requested by VMs. Typically of the form vendor.com/product_name :param resource_name: The resource_name of this V1PciHostDevice. :type: str diff --git a/setup.py b/setup.py index 4f02077d..7f11643a 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.42.0-286-gea965f2f0" +VERSION = "v0.42.0-298-gabe728376" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 5cdee7d6..a508ea02 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.42.0-286-gea965f2f0" +"packageVersion": "v0.42.0-298-gabe728376" } From 1abd6396ec0b08d277b65bfe3dffae09dcdc3900 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Mon, 28 Jun 2021 17:41:59 +0000 Subject: [PATCH 204/521] Client Python update by KubeVirt Prow build 1409558492460617728 --- README.md | 2 +- docs/V1MigrationConfiguration.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_migration_configuration.py | 28 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 34 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index a3553a0e..1d110fe8 100644 --- a/README.md +++ b/README.md @@ -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: v0.42.0-298-gabe728376 +- Package version: v0.42.0-329-ge88a80a86 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1MigrationConfiguration.md b/docs/V1MigrationConfiguration.md index 4bc6ab50..736990ef 100644 --- a/docs/V1MigrationConfiguration.md +++ b/docs/V1MigrationConfiguration.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **allow_post_copy** | **bool** | | [optional] **bandwidth_per_migration** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | | [optional] **completion_timeout_per_gi_b** | **int** | | [optional] +**disable_tls** | **bool** | | [optional] **node_drain_taint_key** | **str** | | [optional] **parallel_migrations_per_cluster** | **int** | | [optional] **parallel_outbound_migrations_per_node** | **int** | | [optional] diff --git a/git_push.sh b/git_push.sh index 29277e55..fa2dd280 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.42.0-298-gabe728376" + release_note="Auto-generated client v0.42.0-329-ge88a80a86" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index d091928b..01fe6a99 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.42.0-298-gabe728376/python' + self.user_agent = 'Swagger-Codegen/v0.42.0-329-ge88a80a86/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index e053a26d..7d80fe07 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.42.0-298-gabe728376".\ + "SDK Package Version: v0.42.0-329-ge88a80a86".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_migration_configuration.py b/kubevirt/models/v1_migration_configuration.py index b9429af9..4e7c1895 100644 --- a/kubevirt/models/v1_migration_configuration.py +++ b/kubevirt/models/v1_migration_configuration.py @@ -35,6 +35,7 @@ class V1MigrationConfiguration(object): 'allow_post_copy': 'bool', 'bandwidth_per_migration': 'K8sIoApimachineryPkgApiResourceQuantity', 'completion_timeout_per_gi_b': 'int', + 'disable_tls': 'bool', 'node_drain_taint_key': 'str', 'parallel_migrations_per_cluster': 'int', 'parallel_outbound_migrations_per_node': 'int', @@ -47,6 +48,7 @@ class V1MigrationConfiguration(object): 'allow_post_copy': 'allowPostCopy', 'bandwidth_per_migration': 'bandwidthPerMigration', 'completion_timeout_per_gi_b': 'completionTimeoutPerGiB', + 'disable_tls': 'disableTLS', 'node_drain_taint_key': 'nodeDrainTaintKey', 'parallel_migrations_per_cluster': 'parallelMigrationsPerCluster', 'parallel_outbound_migrations_per_node': 'parallelOutboundMigrationsPerNode', @@ -54,7 +56,7 @@ class V1MigrationConfiguration(object): 'unsafe_migration_override': 'unsafeMigrationOverride' } - def __init__(self, allow_auto_converge=None, allow_post_copy=None, bandwidth_per_migration=None, completion_timeout_per_gi_b=None, node_drain_taint_key=None, parallel_migrations_per_cluster=None, parallel_outbound_migrations_per_node=None, progress_timeout=None, unsafe_migration_override=None): + def __init__(self, allow_auto_converge=None, allow_post_copy=None, bandwidth_per_migration=None, completion_timeout_per_gi_b=None, disable_tls=None, node_drain_taint_key=None, parallel_migrations_per_cluster=None, parallel_outbound_migrations_per_node=None, progress_timeout=None, unsafe_migration_override=None): """ V1MigrationConfiguration - a model defined in Swagger """ @@ -63,6 +65,7 @@ def __init__(self, allow_auto_converge=None, allow_post_copy=None, bandwidth_per self._allow_post_copy = None self._bandwidth_per_migration = None self._completion_timeout_per_gi_b = None + self._disable_tls = None self._node_drain_taint_key = None self._parallel_migrations_per_cluster = None self._parallel_outbound_migrations_per_node = None @@ -77,6 +80,8 @@ def __init__(self, allow_auto_converge=None, allow_post_copy=None, bandwidth_per self.bandwidth_per_migration = bandwidth_per_migration if completion_timeout_per_gi_b is not None: self.completion_timeout_per_gi_b = completion_timeout_per_gi_b + if disable_tls is not None: + self.disable_tls = disable_tls if node_drain_taint_key is not None: self.node_drain_taint_key = node_drain_taint_key if parallel_migrations_per_cluster is not None: @@ -172,6 +177,27 @@ def completion_timeout_per_gi_b(self, completion_timeout_per_gi_b): self._completion_timeout_per_gi_b = completion_timeout_per_gi_b + @property + def disable_tls(self): + """ + Gets the disable_tls of this V1MigrationConfiguration. + + :return: The disable_tls of this V1MigrationConfiguration. + :rtype: bool + """ + return self._disable_tls + + @disable_tls.setter + def disable_tls(self, disable_tls): + """ + Sets the disable_tls of this V1MigrationConfiguration. + + :param disable_tls: The disable_tls of this V1MigrationConfiguration. + :type: bool + """ + + self._disable_tls = disable_tls + @property def node_drain_taint_key(self): """ diff --git a/setup.py b/setup.py index 7f11643a..5e31cc90 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.42.0-298-gabe728376" +VERSION = "v0.42.0-329-ge88a80a86" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index a508ea02..e64907a8 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.42.0-298-gabe728376" +"packageVersion": "v0.42.0-329-ge88a80a86" } From 1167317795052f13add5cc379a4fc2312b18923c Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 30 Jun 2021 01:09:43 +0000 Subject: [PATCH 205/521] Client Python update by KubeVirt Prow build 1410033135843807232 --- README.md | 4 +- docs/V1CPU.md | 1 + docs/V1NUMA.md | 10 ++ docs/V1NUMAGuestMappingPassthrough.md | 9 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 + kubevirt/__init__.py | 2 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 + kubevirt/models/v1_cpu.py | 30 ++++- kubevirt/models/v1_numa.py | 125 ++++++++++++++++++ .../v1_numa_guest_mapping_passthrough.py | 99 ++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_numa.py | 44 ++++++ .../test_v1_numa_guest_mapping_passthrough.py | 44 ++++++ 17 files changed, 379 insertions(+), 7 deletions(-) create mode 100644 docs/V1NUMA.md create mode 100644 docs/V1NUMAGuestMappingPassthrough.md create mode 100644 kubevirt/models/v1_numa.py create mode 100644 kubevirt/models/v1_numa_guest_mapping_passthrough.py create mode 100644 test/test_v1_numa.py create mode 100644 test/test_v1_numa_guest_mapping_passthrough.py diff --git a/README.md b/README.md index 1d110fe8..132fab22 100644 --- a/README.md +++ b/README.md @@ -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: v0.42.0-329-ge88a80a86 +- Package version: v0.42.0-357-gbf4b9365c - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -348,6 +348,8 @@ Class | Method | HTTP request | Description - [V1Memory](docs/V1Memory.md) - [V1MigrationConfiguration](docs/V1MigrationConfiguration.md) - [V1MultusNetwork](docs/V1MultusNetwork.md) + - [V1NUMA](docs/V1NUMA.md) + - [V1NUMAGuestMappingPassthrough](docs/V1NUMAGuestMappingPassthrough.md) - [V1Network](docs/V1Network.md) - [V1NetworkConfiguration](docs/V1NetworkConfiguration.md) - [V1NodePlacement](docs/V1NodePlacement.md) diff --git a/docs/V1CPU.md b/docs/V1CPU.md index c0fe48e5..5cab24f0 100644 --- a/docs/V1CPU.md +++ b/docs/V1CPU.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **features** | [**list[V1CPUFeature]**](V1CPUFeature.md) | Features specifies the CPU features list inside the VMI. | [optional] **isolate_emulator_thread** | **bool** | IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it. | [optional] **model** | **str** | Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. | [optional] +**numa** | [**V1NUMA**](V1NUMA.md) | NUMA allows specifying settings for the guest NUMA topology | [optional] **sockets** | **int** | Sockets specifies the number of sockets inside the vmi. Must be a value greater or equal 1. | [optional] **threads** | **int** | Threads specifies the number of threads inside the vmi. Must be a value greater or equal 1. | [optional] diff --git a/docs/V1NUMA.md b/docs/V1NUMA.md new file mode 100644 index 00000000..31a6e987 --- /dev/null +++ b/docs/V1NUMA.md @@ -0,0 +1,10 @@ +# V1NUMA + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guest_mapping_passthrough** | [**V1NUMAGuestMappingPassthrough**](V1NUMAGuestMappingPassthrough.md) | GuestMappingPassthrough will create an efficient guest topology based on host CPUs exclusively assigned to a pod. The created topology ensures that memory and CPUs on the virtual numa nodes never cross boundaries of host numa nodes. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1NUMAGuestMappingPassthrough.md b/docs/V1NUMAGuestMappingPassthrough.md new file mode 100644 index 00000000..b8987019 --- /dev/null +++ b/docs/V1NUMAGuestMappingPassthrough.md @@ -0,0 +1,9 @@ +# V1NUMAGuestMappingPassthrough + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index fa2dd280..62c05370 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.42.0-329-ge88a80a86" + release_note="Auto-generated client v0.42.0-357-gbf4b9365c" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 118e3b86..293ef1fe 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -430,6 +430,12 @@ 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_multus_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_multus_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1MultusNetwork.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_numa.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_numa.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1NUMA.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_numa_guest_mapping_passthrough.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_numa_guest_mapping_passthrough.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1NUMAGuestMappingPassthrough.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Network.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index ced81d32..17cc6b2b 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -151,6 +151,8 @@ from .models.v1_memory import V1Memory from .models.v1_migration_configuration import V1MigrationConfiguration from .models.v1_multus_network import V1MultusNetwork +from .models.v1_numa import V1NUMA +from .models.v1_numa_guest_mapping_passthrough import V1NUMAGuestMappingPassthrough from .models.v1_network import V1Network from .models.v1_network_configuration import V1NetworkConfiguration from .models.v1_node_placement import V1NodePlacement diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 01fe6a99..625c1e57 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.42.0-329-ge88a80a86/python' + self.user_agent = 'Swagger-Codegen/v0.42.0-357-gbf4b9365c/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 7d80fe07..eb248f96 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.42.0-329-ge88a80a86".\ + "SDK Package Version: v0.42.0-357-gbf4b9365c".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 238e7142..7ead76ba 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -151,6 +151,8 @@ from .v1_memory import V1Memory from .v1_migration_configuration import V1MigrationConfiguration from .v1_multus_network import V1MultusNetwork +from .v1_numa import V1NUMA +from .v1_numa_guest_mapping_passthrough import V1NUMAGuestMappingPassthrough from .v1_network import V1Network from .v1_network_configuration import V1NetworkConfiguration from .v1_node_placement import V1NodePlacement diff --git a/kubevirt/models/v1_cpu.py b/kubevirt/models/v1_cpu.py index c6415faa..11896f1a 100644 --- a/kubevirt/models/v1_cpu.py +++ b/kubevirt/models/v1_cpu.py @@ -36,6 +36,7 @@ class V1CPU(object): 'features': 'list[V1CPUFeature]', 'isolate_emulator_thread': 'bool', 'model': 'str', + 'numa': 'V1NUMA', 'sockets': 'int', 'threads': 'int' } @@ -46,11 +47,12 @@ class V1CPU(object): 'features': 'features', 'isolate_emulator_thread': 'isolateEmulatorThread', 'model': 'model', + 'numa': 'numa', 'sockets': 'sockets', 'threads': 'threads' } - def __init__(self, cores=None, dedicated_cpu_placement=None, features=None, isolate_emulator_thread=None, model=None, sockets=None, threads=None): + def __init__(self, cores=None, dedicated_cpu_placement=None, features=None, isolate_emulator_thread=None, model=None, numa=None, sockets=None, threads=None): """ V1CPU - a model defined in Swagger """ @@ -60,6 +62,7 @@ def __init__(self, cores=None, dedicated_cpu_placement=None, features=None, isol self._features = None self._isolate_emulator_thread = None self._model = None + self._numa = None self._sockets = None self._threads = None @@ -73,6 +76,8 @@ def __init__(self, cores=None, dedicated_cpu_placement=None, features=None, isol self.isolate_emulator_thread = isolate_emulator_thread if model is not None: self.model = model + if numa is not None: + self.numa = numa if sockets is not None: self.sockets = sockets if threads is not None: @@ -193,6 +198,29 @@ def model(self, model): self._model = model + @property + def numa(self): + """ + Gets the numa of this V1CPU. + NUMA allows specifying settings for the guest NUMA topology + + :return: The numa of this V1CPU. + :rtype: V1NUMA + """ + return self._numa + + @numa.setter + def numa(self, numa): + """ + Sets the numa of this V1CPU. + NUMA allows specifying settings for the guest NUMA topology + + :param numa: The numa of this V1CPU. + :type: V1NUMA + """ + + self._numa = numa + @property def sockets(self): """ diff --git a/kubevirt/models/v1_numa.py b/kubevirt/models/v1_numa.py new file mode 100644 index 00000000..e8f6bee3 --- /dev/null +++ b/kubevirt/models/v1_numa.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1NUMA(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'guest_mapping_passthrough': 'V1NUMAGuestMappingPassthrough' + } + + attribute_map = { + 'guest_mapping_passthrough': 'guestMappingPassthrough' + } + + def __init__(self, guest_mapping_passthrough=None): + """ + V1NUMA - a model defined in Swagger + """ + + self._guest_mapping_passthrough = None + + if guest_mapping_passthrough is not None: + self.guest_mapping_passthrough = guest_mapping_passthrough + + @property + def guest_mapping_passthrough(self): + """ + Gets the guest_mapping_passthrough of this V1NUMA. + GuestMappingPassthrough will create an efficient guest topology based on host CPUs exclusively assigned to a pod. The created topology ensures that memory and CPUs on the virtual numa nodes never cross boundaries of host numa nodes. + + :return: The guest_mapping_passthrough of this V1NUMA. + :rtype: V1NUMAGuestMappingPassthrough + """ + return self._guest_mapping_passthrough + + @guest_mapping_passthrough.setter + def guest_mapping_passthrough(self, guest_mapping_passthrough): + """ + Sets the guest_mapping_passthrough of this V1NUMA. + GuestMappingPassthrough will create an efficient guest topology based on host CPUs exclusively assigned to a pod. The created topology ensures that memory and CPUs on the virtual numa nodes never cross boundaries of host numa nodes. + + :param guest_mapping_passthrough: The guest_mapping_passthrough of this V1NUMA. + :type: V1NUMAGuestMappingPassthrough + """ + + self._guest_mapping_passthrough = guest_mapping_passthrough + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1NUMA): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_numa_guest_mapping_passthrough.py b/kubevirt/models/v1_numa_guest_mapping_passthrough.py new file mode 100644 index 00000000..58429af1 --- /dev/null +++ b/kubevirt/models/v1_numa_guest_mapping_passthrough.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1NUMAGuestMappingPassthrough(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1NUMAGuestMappingPassthrough - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1NUMAGuestMappingPassthrough): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 5e31cc90..bfb4fbcf 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.42.0-329-ge88a80a86" +VERSION = "v0.42.0-357-gbf4b9365c" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index e64907a8..cdf98f8d 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.42.0-329-ge88a80a86" +"packageVersion": "v0.42.0-357-gbf4b9365c" } diff --git a/test/test_v1_numa.py b/test/test_v1_numa.py new file mode 100644 index 00000000..369fc8d4 --- /dev/null +++ b/test/test_v1_numa.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_numa import V1NUMA + + +class TestV1NUMA(unittest.TestCase): + """ V1NUMA unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1NUMA(self): + """ + Test V1NUMA + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_numa.V1NUMA() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_numa_guest_mapping_passthrough.py b/test/test_v1_numa_guest_mapping_passthrough.py new file mode 100644 index 00000000..5ad04d79 --- /dev/null +++ b/test/test_v1_numa_guest_mapping_passthrough.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_numa_guest_mapping_passthrough import V1NUMAGuestMappingPassthrough + + +class TestV1NUMAGuestMappingPassthrough(unittest.TestCase): + """ V1NUMAGuestMappingPassthrough unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1NUMAGuestMappingPassthrough(self): + """ + Test V1NUMAGuestMappingPassthrough + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_numa_guest_mapping_passthrough.V1NUMAGuestMappingPassthrough() + pass + + +if __name__ == '__main__': + unittest.main() From c97858aeb8583adb0f81cf5acb0cd5c64f011650 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 1 Jul 2021 08:35:14 +0000 Subject: [PATCH 206/521] Client Python update by KubeVirt Prow build 1410507310693879808 --- README.md | 26 ++-- docs/V1DataVolumeTemplateSpec.md | 2 +- docs/V1alpha1DataVolumeSource.md | 17 --- ...mage.md => V1beta1DataVolumeBlankImage.md} | 2 +- ...oint.md => V1beta1DataVolumeCheckpoint.md} | 2 +- docs/V1beta1DataVolumeSource.md | 17 +++ ...HTTP.md => V1beta1DataVolumeSourceHTTP.md} | 2 +- ...O.md => V1beta1DataVolumeSourceImageIO.md} | 2 +- ...cePVC.md => V1beta1DataVolumeSourcePVC.md} | 2 +- ....md => V1beta1DataVolumeSourceRegistry.md} | 2 +- ...urceS3.md => V1beta1DataVolumeSourceS3.md} | 2 +- ...ad.md => V1beta1DataVolumeSourceUpload.md} | 2 +- ...VDDK.md => V1beta1DataVolumeSourceVDDK.md} | 2 +- ...VolumeSpec.md => V1beta1DataVolumeSpec.md} | 8 +- ...a1StorageSpec.md => V1beta1StorageSpec.md} | 2 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 72 +++++------ kubevirt/__init__.py | 24 ++-- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 24 ++-- .../models/v1_data_volume_template_spec.py | 6 +- ....py => v1beta1_data_volume_blank_image.py} | 6 +- ...t.py => v1beta1_data_volume_checkpoint.py} | 22 ++-- ...ource.py => v1beta1_data_volume_source.py} | 118 +++++++++--------- ....py => v1beta1_data_volume_source_http.py} | 30 ++--- ...=> v1beta1_data_volume_source_image_io.py} | 38 +++--- ...c.py => v1beta1_data_volume_source_pvc.py} | 22 ++-- ...=> v1beta1_data_volume_source_registry.py} | 30 ++--- ...s3.py => v1beta1_data_volume_source_s3.py} | 30 ++--- ...y => v1beta1_data_volume_source_upload.py} | 6 +- ....py => v1beta1_data_volume_source_vddk.py} | 46 +++---- ...me_spec.py => v1beta1_data_volume_spec.py} | 88 ++++++------- ...torage_spec.py => v1beta1_storage_spec.py} | 62 ++++----- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...st_v1alpha1_data_volume_source_image_io.py | 44 ------- ...st_v1alpha1_data_volume_source_registry.py | 44 ------- ...test_v1alpha1_data_volume_source_upload.py | 44 ------- test/test_v1alpha1_data_volume_source_vddk.py | 44 ------- ...> test_v1beta1_data_volume_blank_image.py} | 12 +- test/test_v1beta1_data_volume_checkpoint.py | 44 +++++++ ....py => test_v1beta1_data_volume_source.py} | 12 +- test/test_v1beta1_data_volume_source_http.py | 44 +++++++ ...st_v1beta1_data_volume_source_image_io.py} | 12 +- ...=> test_v1beta1_data_volume_source_pvc.py} | 12 +- ...st_v1beta1_data_volume_source_registry.py} | 12 +- test/test_v1beta1_data_volume_source_s3.py | 44 +++++++ ...test_v1beta1_data_volume_source_upload.py} | 12 +- test/test_v1beta1_data_volume_source_vddk.py | 44 +++++++ ...ec.py => test_v1beta1_data_volume_spec.py} | 12 +- ...e_spec.py => test_v1beta1_storage_spec.py} | 12 +- 52 files changed, 586 insertions(+), 586 deletions(-) delete mode 100644 docs/V1alpha1DataVolumeSource.md rename docs/{V1alpha1DataVolumeBlankImage.md => V1beta1DataVolumeBlankImage.md} (89%) rename docs/{V1alpha1DataVolumeCheckpoint.md => V1beta1DataVolumeCheckpoint.md} (93%) create mode 100644 docs/V1beta1DataVolumeSource.md rename docs/{V1alpha1DataVolumeSourceHTTP.md => V1beta1DataVolumeSourceHTTP.md} (95%) rename docs/{V1alpha1DataVolumeSourceImageIO.md => V1beta1DataVolumeSourceImageIO.md} (94%) rename docs/{V1alpha1DataVolumeSourcePVC.md => V1beta1DataVolumeSourcePVC.md} (92%) rename docs/{V1alpha1DataVolumeSourceRegistry.md => V1beta1DataVolumeSourceRegistry.md} (94%) rename docs/{V1alpha1DataVolumeSourceS3.md => V1beta1DataVolumeSourceS3.md} (95%) rename docs/{V1alpha1DataVolumeSourceUpload.md => V1beta1DataVolumeSourceUpload.md} (89%) rename docs/{V1alpha1DataVolumeSourceVDDK.md => V1beta1DataVolumeSourceVDDK.md} (96%) rename docs/{V1alpha1DataVolumeSpec.md => V1beta1DataVolumeSpec.md} (65%) rename docs/{V1alpha1StorageSpec.md => V1beta1StorageSpec.md} (99%) rename kubevirt/models/{v1alpha1_data_volume_blank_image.py => v1beta1_data_volume_blank_image.py} (92%) rename kubevirt/models/{v1alpha1_data_volume_checkpoint.py => v1beta1_data_volume_checkpoint.py} (83%) rename kubevirt/models/{v1alpha1_data_volume_source.py => v1beta1_data_volume_source.py} (59%) rename kubevirt/models/{v1alpha1_data_volume_source_http.py => v1beta1_data_volume_source_http.py} (80%) rename kubevirt/models/{v1alpha1_data_volume_source_image_io.py => v1beta1_data_volume_source_image_io.py} (77%) rename kubevirt/models/{v1alpha1_data_volume_source_pvc.py => v1beta1_data_volume_source_pvc.py} (82%) rename kubevirt/models/{v1alpha1_data_volume_source_registry.py => v1beta1_data_volume_source_registry.py} (79%) rename kubevirt/models/{v1alpha1_data_volume_source_s3.py => v1beta1_data_volume_source_s3.py} (80%) rename kubevirt/models/{v1alpha1_data_volume_source_upload.py => v1beta1_data_volume_source_upload.py} (92%) rename kubevirt/models/{v1alpha1_data_volume_source_vddk.py => v1beta1_data_volume_source_vddk.py} (77%) rename kubevirt/models/{v1alpha1_data_volume_spec.py => v1beta1_data_volume_spec.py} (74%) rename kubevirt/models/{v1alpha1_storage_spec.py => v1beta1_storage_spec.py} (82%) delete mode 100644 test/test_v1alpha1_data_volume_source_image_io.py delete mode 100644 test/test_v1alpha1_data_volume_source_registry.py delete mode 100644 test/test_v1alpha1_data_volume_source_upload.py delete mode 100644 test/test_v1alpha1_data_volume_source_vddk.py rename test/{test_v1alpha1_data_volume_source_pvc.py => test_v1beta1_data_volume_blank_image.py} (61%) create mode 100644 test/test_v1beta1_data_volume_checkpoint.py rename test/{test_v1alpha1_data_volume_source.py => test_v1beta1_data_volume_source.py} (63%) create mode 100644 test/test_v1beta1_data_volume_source_http.py rename test/{test_v1alpha1_data_volume_checkpoint.py => test_v1beta1_data_volume_source_image_io.py} (59%) rename test/{test_v1alpha1_data_volume_source_s3.py => test_v1beta1_data_volume_source_pvc.py} (62%) rename test/{test_v1alpha1_data_volume_source_http.py => test_v1beta1_data_volume_source_registry.py} (59%) create mode 100644 test/test_v1beta1_data_volume_source_s3.py rename test/{test_v1alpha1_data_volume_blank_image.py => test_v1beta1_data_volume_source_upload.py} (60%) create mode 100644 test/test_v1beta1_data_volume_source_vddk.py rename test/{test_v1alpha1_data_volume_spec.py => test_v1beta1_data_volume_spec.py} (64%) rename test/{test_v1alpha1_storage_spec.py => test_v1beta1_storage_spec.py} (66%) diff --git a/README.md b/README.md index 132fab22..701f7f74 100644 --- a/README.md +++ b/README.md @@ -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: v0.42.0-357-gbf4b9365c +- Package version: v0.42.0-366-g8730c5785 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -421,21 +421,9 @@ Class | Method | HTTP request | Description - [V1VolumeStatus](docs/V1VolumeStatus.md) - [V1Watchdog](docs/V1Watchdog.md) - [V1alpha1Condition](docs/V1alpha1Condition.md) - - [V1alpha1DataVolumeBlankImage](docs/V1alpha1DataVolumeBlankImage.md) - - [V1alpha1DataVolumeCheckpoint](docs/V1alpha1DataVolumeCheckpoint.md) - - [V1alpha1DataVolumeSource](docs/V1alpha1DataVolumeSource.md) - - [V1alpha1DataVolumeSourceHTTP](docs/V1alpha1DataVolumeSourceHTTP.md) - - [V1alpha1DataVolumeSourceImageIO](docs/V1alpha1DataVolumeSourceImageIO.md) - - [V1alpha1DataVolumeSourcePVC](docs/V1alpha1DataVolumeSourcePVC.md) - - [V1alpha1DataVolumeSourceRegistry](docs/V1alpha1DataVolumeSourceRegistry.md) - - [V1alpha1DataVolumeSourceS3](docs/V1alpha1DataVolumeSourceS3.md) - - [V1alpha1DataVolumeSourceUpload](docs/V1alpha1DataVolumeSourceUpload.md) - - [V1alpha1DataVolumeSourceVDDK](docs/V1alpha1DataVolumeSourceVDDK.md) - - [V1alpha1DataVolumeSpec](docs/V1alpha1DataVolumeSpec.md) - [V1alpha1Error](docs/V1alpha1Error.md) - [V1alpha1PersistentVolumeClaim](docs/V1alpha1PersistentVolumeClaim.md) - [V1alpha1SourceSpec](docs/V1alpha1SourceSpec.md) - - [V1alpha1StorageSpec](docs/V1alpha1StorageSpec.md) - [V1alpha1VirtualMachineRestore](docs/V1alpha1VirtualMachineRestore.md) - [V1alpha1VirtualMachineRestoreList](docs/V1alpha1VirtualMachineRestoreList.md) - [V1alpha1VirtualMachineRestoreSpec](docs/V1alpha1VirtualMachineRestoreSpec.md) @@ -451,6 +439,18 @@ Class | Method | HTTP request | Description - [V1alpha1VolumeBackup](docs/V1alpha1VolumeBackup.md) - [V1alpha1VolumeRestore](docs/V1alpha1VolumeRestore.md) - [V1alpha1VolumeSnapshotStatus](docs/V1alpha1VolumeSnapshotStatus.md) + - [V1beta1DataVolumeBlankImage](docs/V1beta1DataVolumeBlankImage.md) + - [V1beta1DataVolumeCheckpoint](docs/V1beta1DataVolumeCheckpoint.md) + - [V1beta1DataVolumeSource](docs/V1beta1DataVolumeSource.md) + - [V1beta1DataVolumeSourceHTTP](docs/V1beta1DataVolumeSourceHTTP.md) + - [V1beta1DataVolumeSourceImageIO](docs/V1beta1DataVolumeSourceImageIO.md) + - [V1beta1DataVolumeSourcePVC](docs/V1beta1DataVolumeSourcePVC.md) + - [V1beta1DataVolumeSourceRegistry](docs/V1beta1DataVolumeSourceRegistry.md) + - [V1beta1DataVolumeSourceS3](docs/V1beta1DataVolumeSourceS3.md) + - [V1beta1DataVolumeSourceUpload](docs/V1beta1DataVolumeSourceUpload.md) + - [V1beta1DataVolumeSourceVDDK](docs/V1beta1DataVolumeSourceVDDK.md) + - [V1beta1DataVolumeSpec](docs/V1beta1DataVolumeSpec.md) + - [V1beta1StorageSpec](docs/V1beta1StorageSpec.md) ## Documentation For Authorization diff --git a/docs/V1DataVolumeTemplateSpec.md b/docs/V1DataVolumeTemplateSpec.md index e7893568..e9009b60 100644 --- a/docs/V1DataVolumeTemplateSpec.md +++ b/docs/V1DataVolumeTemplateSpec.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1DataVolumeSpec**](V1alpha1DataVolumeSpec.md) | DataVolumeSpec contains the DataVolume specification. | +**spec** | [**V1beta1DataVolumeSpec**](V1beta1DataVolumeSpec.md) | DataVolumeSpec contains the DataVolume specification. | **status** | [**V1DataVolumeTemplateDummyStatus**](V1DataVolumeTemplateDummyStatus.md) | DataVolumeTemplateDummyStatus is here simply for backwards compatibility with a previous API. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1DataVolumeSource.md b/docs/V1alpha1DataVolumeSource.md deleted file mode 100644 index 43431027..00000000 --- a/docs/V1alpha1DataVolumeSource.md +++ /dev/null @@ -1,17 +0,0 @@ -# V1alpha1DataVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**blank** | [**V1alpha1DataVolumeBlankImage**](V1alpha1DataVolumeBlankImage.md) | | [optional] -**http** | [**V1alpha1DataVolumeSourceHTTP**](V1alpha1DataVolumeSourceHTTP.md) | | [optional] -**imageio** | [**V1alpha1DataVolumeSourceImageIO**](V1alpha1DataVolumeSourceImageIO.md) | | [optional] -**pvc** | [**V1alpha1DataVolumeSourcePVC**](V1alpha1DataVolumeSourcePVC.md) | | [optional] -**registry** | [**V1alpha1DataVolumeSourceRegistry**](V1alpha1DataVolumeSourceRegistry.md) | | [optional] -**s3** | [**V1alpha1DataVolumeSourceS3**](V1alpha1DataVolumeSourceS3.md) | | [optional] -**upload** | [**V1alpha1DataVolumeSourceUpload**](V1alpha1DataVolumeSourceUpload.md) | | [optional] -**vddk** | [**V1alpha1DataVolumeSourceVDDK**](V1alpha1DataVolumeSourceVDDK.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1alpha1DataVolumeBlankImage.md b/docs/V1beta1DataVolumeBlankImage.md similarity index 89% rename from docs/V1alpha1DataVolumeBlankImage.md rename to docs/V1beta1DataVolumeBlankImage.md index c04bb808..67d69d90 100644 --- a/docs/V1alpha1DataVolumeBlankImage.md +++ b/docs/V1beta1DataVolumeBlankImage.md @@ -1,4 +1,4 @@ -# V1alpha1DataVolumeBlankImage +# V1beta1DataVolumeBlankImage ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1DataVolumeCheckpoint.md b/docs/V1beta1DataVolumeCheckpoint.md similarity index 93% rename from docs/V1alpha1DataVolumeCheckpoint.md rename to docs/V1beta1DataVolumeCheckpoint.md index c206be1a..494fe88c 100644 --- a/docs/V1alpha1DataVolumeCheckpoint.md +++ b/docs/V1beta1DataVolumeCheckpoint.md @@ -1,4 +1,4 @@ -# V1alpha1DataVolumeCheckpoint +# V1beta1DataVolumeCheckpoint ## Properties Name | Type | Description | Notes diff --git a/docs/V1beta1DataVolumeSource.md b/docs/V1beta1DataVolumeSource.md new file mode 100644 index 00000000..24c9773a --- /dev/null +++ b/docs/V1beta1DataVolumeSource.md @@ -0,0 +1,17 @@ +# V1beta1DataVolumeSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**blank** | [**V1beta1DataVolumeBlankImage**](V1beta1DataVolumeBlankImage.md) | | [optional] +**http** | [**V1beta1DataVolumeSourceHTTP**](V1beta1DataVolumeSourceHTTP.md) | | [optional] +**imageio** | [**V1beta1DataVolumeSourceImageIO**](V1beta1DataVolumeSourceImageIO.md) | | [optional] +**pvc** | [**V1beta1DataVolumeSourcePVC**](V1beta1DataVolumeSourcePVC.md) | | [optional] +**registry** | [**V1beta1DataVolumeSourceRegistry**](V1beta1DataVolumeSourceRegistry.md) | | [optional] +**s3** | [**V1beta1DataVolumeSourceS3**](V1beta1DataVolumeSourceS3.md) | | [optional] +**upload** | [**V1beta1DataVolumeSourceUpload**](V1beta1DataVolumeSourceUpload.md) | | [optional] +**vddk** | [**V1beta1DataVolumeSourceVDDK**](V1beta1DataVolumeSourceVDDK.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1DataVolumeSourceHTTP.md b/docs/V1beta1DataVolumeSourceHTTP.md similarity index 95% rename from docs/V1alpha1DataVolumeSourceHTTP.md rename to docs/V1beta1DataVolumeSourceHTTP.md index c4ead7a8..fb2ca5f2 100644 --- a/docs/V1alpha1DataVolumeSourceHTTP.md +++ b/docs/V1beta1DataVolumeSourceHTTP.md @@ -1,4 +1,4 @@ -# V1alpha1DataVolumeSourceHTTP +# V1beta1DataVolumeSourceHTTP ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1DataVolumeSourceImageIO.md b/docs/V1beta1DataVolumeSourceImageIO.md similarity index 94% rename from docs/V1alpha1DataVolumeSourceImageIO.md rename to docs/V1beta1DataVolumeSourceImageIO.md index 56ee5e75..f5b53b13 100644 --- a/docs/V1alpha1DataVolumeSourceImageIO.md +++ b/docs/V1beta1DataVolumeSourceImageIO.md @@ -1,4 +1,4 @@ -# V1alpha1DataVolumeSourceImageIO +# V1beta1DataVolumeSourceImageIO ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1DataVolumeSourcePVC.md b/docs/V1beta1DataVolumeSourcePVC.md similarity index 92% rename from docs/V1alpha1DataVolumeSourcePVC.md rename to docs/V1beta1DataVolumeSourcePVC.md index a076758d..49d52616 100644 --- a/docs/V1alpha1DataVolumeSourcePVC.md +++ b/docs/V1beta1DataVolumeSourcePVC.md @@ -1,4 +1,4 @@ -# V1alpha1DataVolumeSourcePVC +# V1beta1DataVolumeSourcePVC ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1DataVolumeSourceRegistry.md b/docs/V1beta1DataVolumeSourceRegistry.md similarity index 94% rename from docs/V1alpha1DataVolumeSourceRegistry.md rename to docs/V1beta1DataVolumeSourceRegistry.md index 1ccfe38a..70870abf 100644 --- a/docs/V1alpha1DataVolumeSourceRegistry.md +++ b/docs/V1beta1DataVolumeSourceRegistry.md @@ -1,4 +1,4 @@ -# V1alpha1DataVolumeSourceRegistry +# V1beta1DataVolumeSourceRegistry ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1DataVolumeSourceS3.md b/docs/V1beta1DataVolumeSourceS3.md similarity index 95% rename from docs/V1alpha1DataVolumeSourceS3.md rename to docs/V1beta1DataVolumeSourceS3.md index 6455de5e..bb631e65 100644 --- a/docs/V1alpha1DataVolumeSourceS3.md +++ b/docs/V1beta1DataVolumeSourceS3.md @@ -1,4 +1,4 @@ -# V1alpha1DataVolumeSourceS3 +# V1beta1DataVolumeSourceS3 ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1DataVolumeSourceUpload.md b/docs/V1beta1DataVolumeSourceUpload.md similarity index 89% rename from docs/V1alpha1DataVolumeSourceUpload.md rename to docs/V1beta1DataVolumeSourceUpload.md index f77254af..0e72fbf8 100644 --- a/docs/V1alpha1DataVolumeSourceUpload.md +++ b/docs/V1beta1DataVolumeSourceUpload.md @@ -1,4 +1,4 @@ -# V1alpha1DataVolumeSourceUpload +# V1beta1DataVolumeSourceUpload ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1DataVolumeSourceVDDK.md b/docs/V1beta1DataVolumeSourceVDDK.md similarity index 96% rename from docs/V1alpha1DataVolumeSourceVDDK.md rename to docs/V1beta1DataVolumeSourceVDDK.md index e4357338..af9139ee 100644 --- a/docs/V1alpha1DataVolumeSourceVDDK.md +++ b/docs/V1beta1DataVolumeSourceVDDK.md @@ -1,4 +1,4 @@ -# V1alpha1DataVolumeSourceVDDK +# V1beta1DataVolumeSourceVDDK ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1DataVolumeSpec.md b/docs/V1beta1DataVolumeSpec.md similarity index 65% rename from docs/V1alpha1DataVolumeSpec.md rename to docs/V1beta1DataVolumeSpec.md index 49a5664d..ff482c5e 100644 --- a/docs/V1alpha1DataVolumeSpec.md +++ b/docs/V1beta1DataVolumeSpec.md @@ -1,16 +1,16 @@ -# V1alpha1DataVolumeSpec +# V1beta1DataVolumeSpec ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**checkpoints** | [**list[V1alpha1DataVolumeCheckpoint]**](V1alpha1DataVolumeCheckpoint.md) | Checkpoints is a list of DataVolumeCheckpoints, representing stages in a multistage import. | [optional] +**checkpoints** | [**list[V1beta1DataVolumeCheckpoint]**](V1beta1DataVolumeCheckpoint.md) | Checkpoints is a list of DataVolumeCheckpoints, representing stages in a multistage import. | [optional] **content_type** | **str** | DataVolumeContentType options: \"kubevirt\", \"archive\" | [optional] **final_checkpoint** | **bool** | FinalCheckpoint indicates whether the current DataVolumeCheckpoint is the final checkpoint. | [optional] **preallocation** | **bool** | Preallocation controls whether storage for DataVolumes should be allocated in advance. | [optional] **priority_class_name** | **str** | PriorityClassName for Importer, Cloner and Uploader pod | [optional] **pvc** | [**K8sIoApiCoreV1PersistentVolumeClaimSpec**](K8sIoApiCoreV1PersistentVolumeClaimSpec.md) | PVC is the PVC specification | [optional] -**source** | [**V1alpha1DataVolumeSource**](V1alpha1DataVolumeSource.md) | Source is the src of the data for the requested DataVolume | -**storage** | [**V1alpha1StorageSpec**](V1alpha1StorageSpec.md) | Storage is the requested storage specification | [optional] +**source** | [**V1beta1DataVolumeSource**](V1beta1DataVolumeSource.md) | Source is the src of the data for the requested DataVolume | +**storage** | [**V1beta1StorageSpec**](V1beta1StorageSpec.md) | Storage is the requested storage specification | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1StorageSpec.md b/docs/V1beta1StorageSpec.md similarity index 99% rename from docs/V1alpha1StorageSpec.md rename to docs/V1beta1StorageSpec.md index a86976f2..210fb7db 100644 --- a/docs/V1alpha1StorageSpec.md +++ b/docs/V1beta1StorageSpec.md @@ -1,4 +1,4 @@ -# V1alpha1StorageSpec +# V1beta1StorageSpec ## Properties Name | Type | Description | Notes diff --git a/git_push.sh b/git_push.sh index 62c05370..03028957 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.42.0-357-gbf4b9365c" + release_note="Auto-generated client v0.42.0-366-g8730c5785" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 293ef1fe..08c1eeaf 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -649,39 +649,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/v1alpha1_condition.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_condition.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1Condition.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_blank_image.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_blank_image.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeBlankImage.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_checkpoint.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_checkpoint.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeCheckpoint.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_source.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_source.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSource.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_source_http.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_source_http.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSourceHTTP.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_source_image_io.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_source_image_io.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSourceImageIO.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_source_pvc.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_source_pvc.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSourcePVC.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_source_registry.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_source_registry.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSourceRegistry.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_source_s3.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_source_s3.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSourceS3.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_source_upload.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_source_upload.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSourceUpload.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_source_vddk.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_source_vddk.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSourceVDDK.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_data_volume_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_data_volume_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DataVolumeSpec.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_error.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_error.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1Error.md @@ -691,9 +658,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/v1alpha1_source_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_source_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1SourceSpec.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_storage_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_storage_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1StorageSpec.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_restore.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_restore.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineRestore.md @@ -739,6 +703,42 @@ 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/v1alpha1_volume_snapshot_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_volume_snapshot_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VolumeSnapshotStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_data_volume_blank_image.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_blank_image.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeBlankImage.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_data_volume_checkpoint.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_checkpoint.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeCheckpoint.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_data_volume_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_data_volume_source_http.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_source_http.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeSourceHTTP.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_data_volume_source_image_io.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_source_image_io.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeSourceImageIO.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_data_volume_source_pvc.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_source_pvc.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeSourcePVC.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_data_volume_source_registry.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_source_registry.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeSourceRegistry.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_data_volume_source_s3.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_source_s3.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeSourceS3.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_data_volume_source_upload.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_source_upload.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeSourceUpload.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_data_volume_source_vddk.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_source_vddk.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeSourceVDDK.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_data_volume_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_storage_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_storage_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1StorageSpec.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_default_api.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/DefaultApi.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 17cc6b2b..f2e7f482 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -224,21 +224,9 @@ from .models.v1_volume_status import V1VolumeStatus from .models.v1_watchdog import V1Watchdog from .models.v1alpha1_condition import V1alpha1Condition -from .models.v1alpha1_data_volume_blank_image import V1alpha1DataVolumeBlankImage -from .models.v1alpha1_data_volume_checkpoint import V1alpha1DataVolumeCheckpoint -from .models.v1alpha1_data_volume_source import V1alpha1DataVolumeSource -from .models.v1alpha1_data_volume_source_http import V1alpha1DataVolumeSourceHTTP -from .models.v1alpha1_data_volume_source_image_io import V1alpha1DataVolumeSourceImageIO -from .models.v1alpha1_data_volume_source_pvc import V1alpha1DataVolumeSourcePVC -from .models.v1alpha1_data_volume_source_registry import V1alpha1DataVolumeSourceRegistry -from .models.v1alpha1_data_volume_source_s3 import V1alpha1DataVolumeSourceS3 -from .models.v1alpha1_data_volume_source_upload import V1alpha1DataVolumeSourceUpload -from .models.v1alpha1_data_volume_source_vddk import V1alpha1DataVolumeSourceVDDK -from .models.v1alpha1_data_volume_spec import V1alpha1DataVolumeSpec from .models.v1alpha1_error import V1alpha1Error from .models.v1alpha1_persistent_volume_claim import V1alpha1PersistentVolumeClaim from .models.v1alpha1_source_spec import V1alpha1SourceSpec -from .models.v1alpha1_storage_spec import V1alpha1StorageSpec from .models.v1alpha1_virtual_machine_restore import V1alpha1VirtualMachineRestore from .models.v1alpha1_virtual_machine_restore_list import V1alpha1VirtualMachineRestoreList from .models.v1alpha1_virtual_machine_restore_spec import V1alpha1VirtualMachineRestoreSpec @@ -254,6 +242,18 @@ from .models.v1alpha1_volume_backup import V1alpha1VolumeBackup from .models.v1alpha1_volume_restore import V1alpha1VolumeRestore from .models.v1alpha1_volume_snapshot_status import V1alpha1VolumeSnapshotStatus +from .models.v1beta1_data_volume_blank_image import V1beta1DataVolumeBlankImage +from .models.v1beta1_data_volume_checkpoint import V1beta1DataVolumeCheckpoint +from .models.v1beta1_data_volume_source import V1beta1DataVolumeSource +from .models.v1beta1_data_volume_source_http import V1beta1DataVolumeSourceHTTP +from .models.v1beta1_data_volume_source_image_io import V1beta1DataVolumeSourceImageIO +from .models.v1beta1_data_volume_source_pvc import V1beta1DataVolumeSourcePVC +from .models.v1beta1_data_volume_source_registry import V1beta1DataVolumeSourceRegistry +from .models.v1beta1_data_volume_source_s3 import V1beta1DataVolumeSourceS3 +from .models.v1beta1_data_volume_source_upload import V1beta1DataVolumeSourceUpload +from .models.v1beta1_data_volume_source_vddk import V1beta1DataVolumeSourceVDDK +from .models.v1beta1_data_volume_spec import V1beta1DataVolumeSpec +from .models.v1beta1_storage_spec import V1beta1StorageSpec # import apis into sdk package from .apis.default_api import DefaultApi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 625c1e57..07f1ea0b 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.42.0-357-gbf4b9365c/python' + self.user_agent = 'Swagger-Codegen/v0.42.0-366-g8730c5785/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index eb248f96..30b3b217 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.42.0-357-gbf4b9365c".\ + "SDK Package Version: v0.42.0-366-g8730c5785".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 7ead76ba..1b688390 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -224,21 +224,9 @@ from .v1_volume_status import V1VolumeStatus from .v1_watchdog import V1Watchdog from .v1alpha1_condition import V1alpha1Condition -from .v1alpha1_data_volume_blank_image import V1alpha1DataVolumeBlankImage -from .v1alpha1_data_volume_checkpoint import V1alpha1DataVolumeCheckpoint -from .v1alpha1_data_volume_source import V1alpha1DataVolumeSource -from .v1alpha1_data_volume_source_http import V1alpha1DataVolumeSourceHTTP -from .v1alpha1_data_volume_source_image_io import V1alpha1DataVolumeSourceImageIO -from .v1alpha1_data_volume_source_pvc import V1alpha1DataVolumeSourcePVC -from .v1alpha1_data_volume_source_registry import V1alpha1DataVolumeSourceRegistry -from .v1alpha1_data_volume_source_s3 import V1alpha1DataVolumeSourceS3 -from .v1alpha1_data_volume_source_upload import V1alpha1DataVolumeSourceUpload -from .v1alpha1_data_volume_source_vddk import V1alpha1DataVolumeSourceVDDK -from .v1alpha1_data_volume_spec import V1alpha1DataVolumeSpec from .v1alpha1_error import V1alpha1Error from .v1alpha1_persistent_volume_claim import V1alpha1PersistentVolumeClaim from .v1alpha1_source_spec import V1alpha1SourceSpec -from .v1alpha1_storage_spec import V1alpha1StorageSpec from .v1alpha1_virtual_machine_restore import V1alpha1VirtualMachineRestore from .v1alpha1_virtual_machine_restore_list import V1alpha1VirtualMachineRestoreList from .v1alpha1_virtual_machine_restore_spec import V1alpha1VirtualMachineRestoreSpec @@ -254,5 +242,17 @@ from .v1alpha1_volume_backup import V1alpha1VolumeBackup from .v1alpha1_volume_restore import V1alpha1VolumeRestore from .v1alpha1_volume_snapshot_status import V1alpha1VolumeSnapshotStatus +from .v1beta1_data_volume_blank_image import V1beta1DataVolumeBlankImage +from .v1beta1_data_volume_checkpoint import V1beta1DataVolumeCheckpoint +from .v1beta1_data_volume_source import V1beta1DataVolumeSource +from .v1beta1_data_volume_source_http import V1beta1DataVolumeSourceHTTP +from .v1beta1_data_volume_source_image_io import V1beta1DataVolumeSourceImageIO +from .v1beta1_data_volume_source_pvc import V1beta1DataVolumeSourcePVC +from .v1beta1_data_volume_source_registry import V1beta1DataVolumeSourceRegistry +from .v1beta1_data_volume_source_s3 import V1beta1DataVolumeSourceS3 +from .v1beta1_data_volume_source_upload import V1beta1DataVolumeSourceUpload +from .v1beta1_data_volume_source_vddk import V1beta1DataVolumeSourceVDDK +from .v1beta1_data_volume_spec import V1beta1DataVolumeSpec +from .v1beta1_storage_spec import V1beta1StorageSpec from .v1_interface_bridge import V1InterfaceBridge from .v1_interface_slirp import V1InterfaceSlirp diff --git a/kubevirt/models/v1_data_volume_template_spec.py b/kubevirt/models/v1_data_volume_template_spec.py index a70be1d8..3fe10b79 100644 --- a/kubevirt/models/v1_data_volume_template_spec.py +++ b/kubevirt/models/v1_data_volume_template_spec.py @@ -34,7 +34,7 @@ class V1DataVolumeTemplateSpec(object): 'api_version': 'str', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', - 'spec': 'V1alpha1DataVolumeSpec', + 'spec': 'V1beta1DataVolumeSpec', 'status': 'V1DataVolumeTemplateDummyStatus' } @@ -141,7 +141,7 @@ def spec(self): DataVolumeSpec contains the DataVolume specification. :return: The spec of this V1DataVolumeTemplateSpec. - :rtype: V1alpha1DataVolumeSpec + :rtype: V1beta1DataVolumeSpec """ return self._spec @@ -152,7 +152,7 @@ def spec(self, spec): DataVolumeSpec contains the DataVolume specification. :param spec: The spec of this V1DataVolumeTemplateSpec. - :type: V1alpha1DataVolumeSpec + :type: V1beta1DataVolumeSpec """ if spec is None: raise ValueError("Invalid value for `spec`, must not be `None`") diff --git a/kubevirt/models/v1alpha1_data_volume_blank_image.py b/kubevirt/models/v1beta1_data_volume_blank_image.py similarity index 92% rename from kubevirt/models/v1alpha1_data_volume_blank_image.py rename to kubevirt/models/v1beta1_data_volume_blank_image.py index ad822279..7761dd92 100644 --- a/kubevirt/models/v1alpha1_data_volume_blank_image.py +++ b/kubevirt/models/v1beta1_data_volume_blank_image.py @@ -16,7 +16,7 @@ import re -class V1alpha1DataVolumeBlankImage(object): +class V1beta1DataVolumeBlankImage(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,7 +40,7 @@ class V1alpha1DataVolumeBlankImage(object): def __init__(self): """ - V1alpha1DataVolumeBlankImage - a model defined in Swagger + V1beta1DataVolumeBlankImage - a model defined in Swagger """ @@ -87,7 +87,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1DataVolumeBlankImage): + if not isinstance(other, V1beta1DataVolumeBlankImage): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_data_volume_checkpoint.py b/kubevirt/models/v1beta1_data_volume_checkpoint.py similarity index 83% rename from kubevirt/models/v1alpha1_data_volume_checkpoint.py rename to kubevirt/models/v1beta1_data_volume_checkpoint.py index 2c323234..624977cb 100644 --- a/kubevirt/models/v1alpha1_data_volume_checkpoint.py +++ b/kubevirt/models/v1beta1_data_volume_checkpoint.py @@ -16,7 +16,7 @@ import re -class V1alpha1DataVolumeCheckpoint(object): +class V1beta1DataVolumeCheckpoint(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class V1alpha1DataVolumeCheckpoint(object): def __init__(self, current=None, previous=None): """ - V1alpha1DataVolumeCheckpoint - a model defined in Swagger + V1beta1DataVolumeCheckpoint - a model defined in Swagger """ self._current = None @@ -54,10 +54,10 @@ def __init__(self, current=None, previous=None): @property def current(self): """ - Gets the current of this V1alpha1DataVolumeCheckpoint. + Gets the current of this V1beta1DataVolumeCheckpoint. Current is the identifier of the snapshot created for this checkpoint. - :return: The current of this V1alpha1DataVolumeCheckpoint. + :return: The current of this V1beta1DataVolumeCheckpoint. :rtype: str """ return self._current @@ -65,10 +65,10 @@ def current(self): @current.setter def current(self, current): """ - Sets the current of this V1alpha1DataVolumeCheckpoint. + Sets the current of this V1beta1DataVolumeCheckpoint. Current is the identifier of the snapshot created for this checkpoint. - :param current: The current of this V1alpha1DataVolumeCheckpoint. + :param current: The current of this V1beta1DataVolumeCheckpoint. :type: str """ if current is None: @@ -79,10 +79,10 @@ def current(self, current): @property def previous(self): """ - Gets the previous of this V1alpha1DataVolumeCheckpoint. + Gets the previous of this V1beta1DataVolumeCheckpoint. Previous is the identifier of the snapshot from the previous checkpoint. - :return: The previous of this V1alpha1DataVolumeCheckpoint. + :return: The previous of this V1beta1DataVolumeCheckpoint. :rtype: str """ return self._previous @@ -90,10 +90,10 @@ def previous(self): @previous.setter def previous(self, previous): """ - Sets the previous of this V1alpha1DataVolumeCheckpoint. + Sets the previous of this V1beta1DataVolumeCheckpoint. Previous is the identifier of the snapshot from the previous checkpoint. - :param previous: The previous of this V1alpha1DataVolumeCheckpoint. + :param previous: The previous of this V1beta1DataVolumeCheckpoint. :type: str """ if previous is None: @@ -143,7 +143,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1DataVolumeCheckpoint): + if not isinstance(other, V1beta1DataVolumeCheckpoint): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_data_volume_source.py b/kubevirt/models/v1beta1_data_volume_source.py similarity index 59% rename from kubevirt/models/v1alpha1_data_volume_source.py rename to kubevirt/models/v1beta1_data_volume_source.py index 9fcf7e82..d1e9e0d8 100644 --- a/kubevirt/models/v1alpha1_data_volume_source.py +++ b/kubevirt/models/v1beta1_data_volume_source.py @@ -16,7 +16,7 @@ import re -class V1alpha1DataVolumeSource(object): +class V1beta1DataVolumeSource(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,14 +31,14 @@ class V1alpha1DataVolumeSource(object): and the value is json key in definition. """ swagger_types = { - 'blank': 'V1alpha1DataVolumeBlankImage', - 'http': 'V1alpha1DataVolumeSourceHTTP', - 'imageio': 'V1alpha1DataVolumeSourceImageIO', - 'pvc': 'V1alpha1DataVolumeSourcePVC', - 'registry': 'V1alpha1DataVolumeSourceRegistry', - 's3': 'V1alpha1DataVolumeSourceS3', - 'upload': 'V1alpha1DataVolumeSourceUpload', - 'vddk': 'V1alpha1DataVolumeSourceVDDK' + 'blank': 'V1beta1DataVolumeBlankImage', + 'http': 'V1beta1DataVolumeSourceHTTP', + 'imageio': 'V1beta1DataVolumeSourceImageIO', + 'pvc': 'V1beta1DataVolumeSourcePVC', + 'registry': 'V1beta1DataVolumeSourceRegistry', + 's3': 'V1beta1DataVolumeSourceS3', + 'upload': 'V1beta1DataVolumeSourceUpload', + 'vddk': 'V1beta1DataVolumeSourceVDDK' } attribute_map = { @@ -54,7 +54,7 @@ class V1alpha1DataVolumeSource(object): def __init__(self, blank=None, http=None, imageio=None, pvc=None, registry=None, s3=None, upload=None, vddk=None): """ - V1alpha1DataVolumeSource - a model defined in Swagger + V1beta1DataVolumeSource - a model defined in Swagger """ self._blank = None @@ -86,20 +86,20 @@ def __init__(self, blank=None, http=None, imageio=None, pvc=None, registry=None, @property def blank(self): """ - Gets the blank of this V1alpha1DataVolumeSource. + Gets the blank of this V1beta1DataVolumeSource. - :return: The blank of this V1alpha1DataVolumeSource. - :rtype: V1alpha1DataVolumeBlankImage + :return: The blank of this V1beta1DataVolumeSource. + :rtype: V1beta1DataVolumeBlankImage """ return self._blank @blank.setter def blank(self, blank): """ - Sets the blank of this V1alpha1DataVolumeSource. + Sets the blank of this V1beta1DataVolumeSource. - :param blank: The blank of this V1alpha1DataVolumeSource. - :type: V1alpha1DataVolumeBlankImage + :param blank: The blank of this V1beta1DataVolumeSource. + :type: V1beta1DataVolumeBlankImage """ self._blank = blank @@ -107,20 +107,20 @@ def blank(self, blank): @property def http(self): """ - Gets the http of this V1alpha1DataVolumeSource. + Gets the http of this V1beta1DataVolumeSource. - :return: The http of this V1alpha1DataVolumeSource. - :rtype: V1alpha1DataVolumeSourceHTTP + :return: The http of this V1beta1DataVolumeSource. + :rtype: V1beta1DataVolumeSourceHTTP """ return self._http @http.setter def http(self, http): """ - Sets the http of this V1alpha1DataVolumeSource. + Sets the http of this V1beta1DataVolumeSource. - :param http: The http of this V1alpha1DataVolumeSource. - :type: V1alpha1DataVolumeSourceHTTP + :param http: The http of this V1beta1DataVolumeSource. + :type: V1beta1DataVolumeSourceHTTP """ self._http = http @@ -128,20 +128,20 @@ def http(self, http): @property def imageio(self): """ - Gets the imageio of this V1alpha1DataVolumeSource. + Gets the imageio of this V1beta1DataVolumeSource. - :return: The imageio of this V1alpha1DataVolumeSource. - :rtype: V1alpha1DataVolumeSourceImageIO + :return: The imageio of this V1beta1DataVolumeSource. + :rtype: V1beta1DataVolumeSourceImageIO """ return self._imageio @imageio.setter def imageio(self, imageio): """ - Sets the imageio of this V1alpha1DataVolumeSource. + Sets the imageio of this V1beta1DataVolumeSource. - :param imageio: The imageio of this V1alpha1DataVolumeSource. - :type: V1alpha1DataVolumeSourceImageIO + :param imageio: The imageio of this V1beta1DataVolumeSource. + :type: V1beta1DataVolumeSourceImageIO """ self._imageio = imageio @@ -149,20 +149,20 @@ def imageio(self, imageio): @property def pvc(self): """ - Gets the pvc of this V1alpha1DataVolumeSource. + Gets the pvc of this V1beta1DataVolumeSource. - :return: The pvc of this V1alpha1DataVolumeSource. - :rtype: V1alpha1DataVolumeSourcePVC + :return: The pvc of this V1beta1DataVolumeSource. + :rtype: V1beta1DataVolumeSourcePVC """ return self._pvc @pvc.setter def pvc(self, pvc): """ - Sets the pvc of this V1alpha1DataVolumeSource. + Sets the pvc of this V1beta1DataVolumeSource. - :param pvc: The pvc of this V1alpha1DataVolumeSource. - :type: V1alpha1DataVolumeSourcePVC + :param pvc: The pvc of this V1beta1DataVolumeSource. + :type: V1beta1DataVolumeSourcePVC """ self._pvc = pvc @@ -170,20 +170,20 @@ def pvc(self, pvc): @property def registry(self): """ - Gets the registry of this V1alpha1DataVolumeSource. + Gets the registry of this V1beta1DataVolumeSource. - :return: The registry of this V1alpha1DataVolumeSource. - :rtype: V1alpha1DataVolumeSourceRegistry + :return: The registry of this V1beta1DataVolumeSource. + :rtype: V1beta1DataVolumeSourceRegistry """ return self._registry @registry.setter def registry(self, registry): """ - Sets the registry of this V1alpha1DataVolumeSource. + Sets the registry of this V1beta1DataVolumeSource. - :param registry: The registry of this V1alpha1DataVolumeSource. - :type: V1alpha1DataVolumeSourceRegistry + :param registry: The registry of this V1beta1DataVolumeSource. + :type: V1beta1DataVolumeSourceRegistry """ self._registry = registry @@ -191,20 +191,20 @@ def registry(self, registry): @property def s3(self): """ - Gets the s3 of this V1alpha1DataVolumeSource. + Gets the s3 of this V1beta1DataVolumeSource. - :return: The s3 of this V1alpha1DataVolumeSource. - :rtype: V1alpha1DataVolumeSourceS3 + :return: The s3 of this V1beta1DataVolumeSource. + :rtype: V1beta1DataVolumeSourceS3 """ return self._s3 @s3.setter def s3(self, s3): """ - Sets the s3 of this V1alpha1DataVolumeSource. + Sets the s3 of this V1beta1DataVolumeSource. - :param s3: The s3 of this V1alpha1DataVolumeSource. - :type: V1alpha1DataVolumeSourceS3 + :param s3: The s3 of this V1beta1DataVolumeSource. + :type: V1beta1DataVolumeSourceS3 """ self._s3 = s3 @@ -212,20 +212,20 @@ def s3(self, s3): @property def upload(self): """ - Gets the upload of this V1alpha1DataVolumeSource. + Gets the upload of this V1beta1DataVolumeSource. - :return: The upload of this V1alpha1DataVolumeSource. - :rtype: V1alpha1DataVolumeSourceUpload + :return: The upload of this V1beta1DataVolumeSource. + :rtype: V1beta1DataVolumeSourceUpload """ return self._upload @upload.setter def upload(self, upload): """ - Sets the upload of this V1alpha1DataVolumeSource. + Sets the upload of this V1beta1DataVolumeSource. - :param upload: The upload of this V1alpha1DataVolumeSource. - :type: V1alpha1DataVolumeSourceUpload + :param upload: The upload of this V1beta1DataVolumeSource. + :type: V1beta1DataVolumeSourceUpload """ self._upload = upload @@ -233,20 +233,20 @@ def upload(self, upload): @property def vddk(self): """ - Gets the vddk of this V1alpha1DataVolumeSource. + Gets the vddk of this V1beta1DataVolumeSource. - :return: The vddk of this V1alpha1DataVolumeSource. - :rtype: V1alpha1DataVolumeSourceVDDK + :return: The vddk of this V1beta1DataVolumeSource. + :rtype: V1beta1DataVolumeSourceVDDK """ return self._vddk @vddk.setter def vddk(self, vddk): """ - Sets the vddk of this V1alpha1DataVolumeSource. + Sets the vddk of this V1beta1DataVolumeSource. - :param vddk: The vddk of this V1alpha1DataVolumeSource. - :type: V1alpha1DataVolumeSourceVDDK + :param vddk: The vddk of this V1beta1DataVolumeSource. + :type: V1beta1DataVolumeSourceVDDK """ self._vddk = vddk @@ -293,7 +293,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1DataVolumeSource): + if not isinstance(other, V1beta1DataVolumeSource): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_data_volume_source_http.py b/kubevirt/models/v1beta1_data_volume_source_http.py similarity index 80% rename from kubevirt/models/v1alpha1_data_volume_source_http.py rename to kubevirt/models/v1beta1_data_volume_source_http.py index f84ce090..f4413da7 100644 --- a/kubevirt/models/v1alpha1_data_volume_source_http.py +++ b/kubevirt/models/v1beta1_data_volume_source_http.py @@ -16,7 +16,7 @@ import re -class V1alpha1DataVolumeSourceHTTP(object): +class V1beta1DataVolumeSourceHTTP(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -44,7 +44,7 @@ class V1alpha1DataVolumeSourceHTTP(object): def __init__(self, cert_config_map=None, secret_ref=None, url=None): """ - V1alpha1DataVolumeSourceHTTP - a model defined in Swagger + V1beta1DataVolumeSourceHTTP - a model defined in Swagger """ self._cert_config_map = None @@ -60,10 +60,10 @@ def __init__(self, cert_config_map=None, secret_ref=None, url=None): @property def cert_config_map(self): """ - Gets the cert_config_map of this V1alpha1DataVolumeSourceHTTP. + Gets the cert_config_map of this V1beta1DataVolumeSourceHTTP. CertConfigMap is a configmap reference, containing a Certificate Authority(CA) public key, and a base64 encoded pem certificate - :return: The cert_config_map of this V1alpha1DataVolumeSourceHTTP. + :return: The cert_config_map of this V1beta1DataVolumeSourceHTTP. :rtype: str """ return self._cert_config_map @@ -71,10 +71,10 @@ def cert_config_map(self): @cert_config_map.setter def cert_config_map(self, cert_config_map): """ - Sets the cert_config_map of this V1alpha1DataVolumeSourceHTTP. + Sets the cert_config_map of this V1beta1DataVolumeSourceHTTP. CertConfigMap is a configmap reference, containing a Certificate Authority(CA) public key, and a base64 encoded pem certificate - :param cert_config_map: The cert_config_map of this V1alpha1DataVolumeSourceHTTP. + :param cert_config_map: The cert_config_map of this V1beta1DataVolumeSourceHTTP. :type: str """ @@ -83,10 +83,10 @@ def cert_config_map(self, cert_config_map): @property def secret_ref(self): """ - Gets the secret_ref of this V1alpha1DataVolumeSourceHTTP. + Gets the secret_ref of this V1beta1DataVolumeSourceHTTP. SecretRef A Secret reference, the secret should contain accessKeyId (user name) base64 encoded, and secretKey (password) also base64 encoded - :return: The secret_ref of this V1alpha1DataVolumeSourceHTTP. + :return: The secret_ref of this V1beta1DataVolumeSourceHTTP. :rtype: str """ return self._secret_ref @@ -94,10 +94,10 @@ def secret_ref(self): @secret_ref.setter def secret_ref(self, secret_ref): """ - Sets the secret_ref of this V1alpha1DataVolumeSourceHTTP. + Sets the secret_ref of this V1beta1DataVolumeSourceHTTP. SecretRef A Secret reference, the secret should contain accessKeyId (user name) base64 encoded, and secretKey (password) also base64 encoded - :param secret_ref: The secret_ref of this V1alpha1DataVolumeSourceHTTP. + :param secret_ref: The secret_ref of this V1beta1DataVolumeSourceHTTP. :type: str """ @@ -106,10 +106,10 @@ def secret_ref(self, secret_ref): @property def url(self): """ - Gets the url of this V1alpha1DataVolumeSourceHTTP. + Gets the url of this V1beta1DataVolumeSourceHTTP. URL is the URL of the http(s) endpoint - :return: The url of this V1alpha1DataVolumeSourceHTTP. + :return: The url of this V1beta1DataVolumeSourceHTTP. :rtype: str """ return self._url @@ -117,10 +117,10 @@ def url(self): @url.setter def url(self, url): """ - Sets the url of this V1alpha1DataVolumeSourceHTTP. + Sets the url of this V1beta1DataVolumeSourceHTTP. URL is the URL of the http(s) endpoint - :param url: The url of this V1alpha1DataVolumeSourceHTTP. + :param url: The url of this V1beta1DataVolumeSourceHTTP. :type: str """ if url is None: @@ -170,7 +170,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1DataVolumeSourceHTTP): + if not isinstance(other, V1beta1DataVolumeSourceHTTP): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_data_volume_source_image_io.py b/kubevirt/models/v1beta1_data_volume_source_image_io.py similarity index 77% rename from kubevirt/models/v1alpha1_data_volume_source_image_io.py rename to kubevirt/models/v1beta1_data_volume_source_image_io.py index 28111b61..cd54f58c 100644 --- a/kubevirt/models/v1alpha1_data_volume_source_image_io.py +++ b/kubevirt/models/v1beta1_data_volume_source_image_io.py @@ -16,7 +16,7 @@ import re -class V1alpha1DataVolumeSourceImageIO(object): +class V1beta1DataVolumeSourceImageIO(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -46,7 +46,7 @@ class V1alpha1DataVolumeSourceImageIO(object): def __init__(self, cert_config_map=None, disk_id=None, secret_ref=None, url=None): """ - V1alpha1DataVolumeSourceImageIO - a model defined in Swagger + V1beta1DataVolumeSourceImageIO - a model defined in Swagger """ self._cert_config_map = None @@ -64,10 +64,10 @@ def __init__(self, cert_config_map=None, disk_id=None, secret_ref=None, url=None @property def cert_config_map(self): """ - Gets the cert_config_map of this V1alpha1DataVolumeSourceImageIO. + Gets the cert_config_map of this V1beta1DataVolumeSourceImageIO. CertConfigMap provides a reference to the CA cert - :return: The cert_config_map of this V1alpha1DataVolumeSourceImageIO. + :return: The cert_config_map of this V1beta1DataVolumeSourceImageIO. :rtype: str """ return self._cert_config_map @@ -75,10 +75,10 @@ def cert_config_map(self): @cert_config_map.setter def cert_config_map(self, cert_config_map): """ - Sets the cert_config_map of this V1alpha1DataVolumeSourceImageIO. + Sets the cert_config_map of this V1beta1DataVolumeSourceImageIO. CertConfigMap provides a reference to the CA cert - :param cert_config_map: The cert_config_map of this V1alpha1DataVolumeSourceImageIO. + :param cert_config_map: The cert_config_map of this V1beta1DataVolumeSourceImageIO. :type: str """ @@ -87,10 +87,10 @@ def cert_config_map(self, cert_config_map): @property def disk_id(self): """ - Gets the disk_id of this V1alpha1DataVolumeSourceImageIO. + Gets the disk_id of this V1beta1DataVolumeSourceImageIO. DiskID provides id of a disk to be imported - :return: The disk_id of this V1alpha1DataVolumeSourceImageIO. + :return: The disk_id of this V1beta1DataVolumeSourceImageIO. :rtype: str """ return self._disk_id @@ -98,10 +98,10 @@ def disk_id(self): @disk_id.setter def disk_id(self, disk_id): """ - Sets the disk_id of this V1alpha1DataVolumeSourceImageIO. + Sets the disk_id of this V1beta1DataVolumeSourceImageIO. DiskID provides id of a disk to be imported - :param disk_id: The disk_id of this V1alpha1DataVolumeSourceImageIO. + :param disk_id: The disk_id of this V1beta1DataVolumeSourceImageIO. :type: str """ if disk_id is None: @@ -112,10 +112,10 @@ def disk_id(self, disk_id): @property def secret_ref(self): """ - Gets the secret_ref of this V1alpha1DataVolumeSourceImageIO. + Gets the secret_ref of this V1beta1DataVolumeSourceImageIO. SecretRef provides the secret reference needed to access the ovirt-engine - :return: The secret_ref of this V1alpha1DataVolumeSourceImageIO. + :return: The secret_ref of this V1beta1DataVolumeSourceImageIO. :rtype: str """ return self._secret_ref @@ -123,10 +123,10 @@ def secret_ref(self): @secret_ref.setter def secret_ref(self, secret_ref): """ - Sets the secret_ref of this V1alpha1DataVolumeSourceImageIO. + Sets the secret_ref of this V1beta1DataVolumeSourceImageIO. SecretRef provides the secret reference needed to access the ovirt-engine - :param secret_ref: The secret_ref of this V1alpha1DataVolumeSourceImageIO. + :param secret_ref: The secret_ref of this V1beta1DataVolumeSourceImageIO. :type: str """ @@ -135,10 +135,10 @@ def secret_ref(self, secret_ref): @property def url(self): """ - Gets the url of this V1alpha1DataVolumeSourceImageIO. + Gets the url of this V1beta1DataVolumeSourceImageIO. URL is the URL of the ovirt-engine - :return: The url of this V1alpha1DataVolumeSourceImageIO. + :return: The url of this V1beta1DataVolumeSourceImageIO. :rtype: str """ return self._url @@ -146,10 +146,10 @@ def url(self): @url.setter def url(self, url): """ - Sets the url of this V1alpha1DataVolumeSourceImageIO. + Sets the url of this V1beta1DataVolumeSourceImageIO. URL is the URL of the ovirt-engine - :param url: The url of this V1alpha1DataVolumeSourceImageIO. + :param url: The url of this V1beta1DataVolumeSourceImageIO. :type: str """ if url is None: @@ -199,7 +199,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1DataVolumeSourceImageIO): + if not isinstance(other, V1beta1DataVolumeSourceImageIO): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_data_volume_source_pvc.py b/kubevirt/models/v1beta1_data_volume_source_pvc.py similarity index 82% rename from kubevirt/models/v1alpha1_data_volume_source_pvc.py rename to kubevirt/models/v1beta1_data_volume_source_pvc.py index 418abf4d..ed7adf1a 100644 --- a/kubevirt/models/v1alpha1_data_volume_source_pvc.py +++ b/kubevirt/models/v1beta1_data_volume_source_pvc.py @@ -16,7 +16,7 @@ import re -class V1alpha1DataVolumeSourcePVC(object): +class V1beta1DataVolumeSourcePVC(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class V1alpha1DataVolumeSourcePVC(object): def __init__(self, name=None, namespace=None): """ - V1alpha1DataVolumeSourcePVC - a model defined in Swagger + V1beta1DataVolumeSourcePVC - a model defined in Swagger """ self._name = None @@ -54,10 +54,10 @@ def __init__(self, name=None, namespace=None): @property def name(self): """ - Gets the name of this V1alpha1DataVolumeSourcePVC. + Gets the name of this V1beta1DataVolumeSourcePVC. The name of the source PVC - :return: The name of this V1alpha1DataVolumeSourcePVC. + :return: The name of this V1beta1DataVolumeSourcePVC. :rtype: str """ return self._name @@ -65,10 +65,10 @@ def name(self): @name.setter def name(self, name): """ - Sets the name of this V1alpha1DataVolumeSourcePVC. + Sets the name of this V1beta1DataVolumeSourcePVC. The name of the source PVC - :param name: The name of this V1alpha1DataVolumeSourcePVC. + :param name: The name of this V1beta1DataVolumeSourcePVC. :type: str """ if name is None: @@ -79,10 +79,10 @@ def name(self, name): @property def namespace(self): """ - Gets the namespace of this V1alpha1DataVolumeSourcePVC. + Gets the namespace of this V1beta1DataVolumeSourcePVC. The namespace of the source PVC - :return: The namespace of this V1alpha1DataVolumeSourcePVC. + :return: The namespace of this V1beta1DataVolumeSourcePVC. :rtype: str """ return self._namespace @@ -90,10 +90,10 @@ def namespace(self): @namespace.setter def namespace(self, namespace): """ - Sets the namespace of this V1alpha1DataVolumeSourcePVC. + Sets the namespace of this V1beta1DataVolumeSourcePVC. The namespace of the source PVC - :param namespace: The namespace of this V1alpha1DataVolumeSourcePVC. + :param namespace: The namespace of this V1beta1DataVolumeSourcePVC. :type: str """ if namespace is None: @@ -143,7 +143,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1DataVolumeSourcePVC): + if not isinstance(other, V1beta1DataVolumeSourcePVC): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_data_volume_source_registry.py b/kubevirt/models/v1beta1_data_volume_source_registry.py similarity index 79% rename from kubevirt/models/v1alpha1_data_volume_source_registry.py rename to kubevirt/models/v1beta1_data_volume_source_registry.py index e9c9c80e..d1021ed8 100644 --- a/kubevirt/models/v1alpha1_data_volume_source_registry.py +++ b/kubevirt/models/v1beta1_data_volume_source_registry.py @@ -16,7 +16,7 @@ import re -class V1alpha1DataVolumeSourceRegistry(object): +class V1beta1DataVolumeSourceRegistry(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -44,7 +44,7 @@ class V1alpha1DataVolumeSourceRegistry(object): def __init__(self, cert_config_map=None, secret_ref=None, url=None): """ - V1alpha1DataVolumeSourceRegistry - a model defined in Swagger + V1beta1DataVolumeSourceRegistry - a model defined in Swagger """ self._cert_config_map = None @@ -60,10 +60,10 @@ def __init__(self, cert_config_map=None, secret_ref=None, url=None): @property def cert_config_map(self): """ - Gets the cert_config_map of this V1alpha1DataVolumeSourceRegistry. + Gets the cert_config_map of this V1beta1DataVolumeSourceRegistry. CertConfigMap provides a reference to the Registry certs - :return: The cert_config_map of this V1alpha1DataVolumeSourceRegistry. + :return: The cert_config_map of this V1beta1DataVolumeSourceRegistry. :rtype: str """ return self._cert_config_map @@ -71,10 +71,10 @@ def cert_config_map(self): @cert_config_map.setter def cert_config_map(self, cert_config_map): """ - Sets the cert_config_map of this V1alpha1DataVolumeSourceRegistry. + Sets the cert_config_map of this V1beta1DataVolumeSourceRegistry. CertConfigMap provides a reference to the Registry certs - :param cert_config_map: The cert_config_map of this V1alpha1DataVolumeSourceRegistry. + :param cert_config_map: The cert_config_map of this V1beta1DataVolumeSourceRegistry. :type: str """ @@ -83,10 +83,10 @@ def cert_config_map(self, cert_config_map): @property def secret_ref(self): """ - Gets the secret_ref of this V1alpha1DataVolumeSourceRegistry. + Gets the secret_ref of this V1beta1DataVolumeSourceRegistry. SecretRef provides the secret reference needed to access the Registry source - :return: The secret_ref of this V1alpha1DataVolumeSourceRegistry. + :return: The secret_ref of this V1beta1DataVolumeSourceRegistry. :rtype: str """ return self._secret_ref @@ -94,10 +94,10 @@ def secret_ref(self): @secret_ref.setter def secret_ref(self, secret_ref): """ - Sets the secret_ref of this V1alpha1DataVolumeSourceRegistry. + Sets the secret_ref of this V1beta1DataVolumeSourceRegistry. SecretRef provides the secret reference needed to access the Registry source - :param secret_ref: The secret_ref of this V1alpha1DataVolumeSourceRegistry. + :param secret_ref: The secret_ref of this V1beta1DataVolumeSourceRegistry. :type: str """ @@ -106,10 +106,10 @@ def secret_ref(self, secret_ref): @property def url(self): """ - Gets the url of this V1alpha1DataVolumeSourceRegistry. + Gets the url of this V1beta1DataVolumeSourceRegistry. URL is the url of the Docker registry source - :return: The url of this V1alpha1DataVolumeSourceRegistry. + :return: The url of this V1beta1DataVolumeSourceRegistry. :rtype: str """ return self._url @@ -117,10 +117,10 @@ def url(self): @url.setter def url(self, url): """ - Sets the url of this V1alpha1DataVolumeSourceRegistry. + Sets the url of this V1beta1DataVolumeSourceRegistry. URL is the url of the Docker registry source - :param url: The url of this V1alpha1DataVolumeSourceRegistry. + :param url: The url of this V1beta1DataVolumeSourceRegistry. :type: str """ if url is None: @@ -170,7 +170,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1DataVolumeSourceRegistry): + if not isinstance(other, V1beta1DataVolumeSourceRegistry): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_data_volume_source_s3.py b/kubevirt/models/v1beta1_data_volume_source_s3.py similarity index 80% rename from kubevirt/models/v1alpha1_data_volume_source_s3.py rename to kubevirt/models/v1beta1_data_volume_source_s3.py index 3565e49d..18c556e7 100644 --- a/kubevirt/models/v1alpha1_data_volume_source_s3.py +++ b/kubevirt/models/v1beta1_data_volume_source_s3.py @@ -16,7 +16,7 @@ import re -class V1alpha1DataVolumeSourceS3(object): +class V1beta1DataVolumeSourceS3(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -44,7 +44,7 @@ class V1alpha1DataVolumeSourceS3(object): def __init__(self, cert_config_map=None, secret_ref=None, url=None): """ - V1alpha1DataVolumeSourceS3 - a model defined in Swagger + V1beta1DataVolumeSourceS3 - a model defined in Swagger """ self._cert_config_map = None @@ -60,10 +60,10 @@ def __init__(self, cert_config_map=None, secret_ref=None, url=None): @property def cert_config_map(self): """ - Gets the cert_config_map of this V1alpha1DataVolumeSourceS3. + Gets the cert_config_map of this V1beta1DataVolumeSourceS3. CertConfigMap is a configmap reference, containing a Certificate Authority(CA) public key, and a base64 encoded pem certificate - :return: The cert_config_map of this V1alpha1DataVolumeSourceS3. + :return: The cert_config_map of this V1beta1DataVolumeSourceS3. :rtype: str """ return self._cert_config_map @@ -71,10 +71,10 @@ def cert_config_map(self): @cert_config_map.setter def cert_config_map(self, cert_config_map): """ - Sets the cert_config_map of this V1alpha1DataVolumeSourceS3. + Sets the cert_config_map of this V1beta1DataVolumeSourceS3. CertConfigMap is a configmap reference, containing a Certificate Authority(CA) public key, and a base64 encoded pem certificate - :param cert_config_map: The cert_config_map of this V1alpha1DataVolumeSourceS3. + :param cert_config_map: The cert_config_map of this V1beta1DataVolumeSourceS3. :type: str """ @@ -83,10 +83,10 @@ def cert_config_map(self, cert_config_map): @property def secret_ref(self): """ - Gets the secret_ref of this V1alpha1DataVolumeSourceS3. + Gets the secret_ref of this V1beta1DataVolumeSourceS3. SecretRef provides the secret reference needed to access the S3 source - :return: The secret_ref of this V1alpha1DataVolumeSourceS3. + :return: The secret_ref of this V1beta1DataVolumeSourceS3. :rtype: str """ return self._secret_ref @@ -94,10 +94,10 @@ def secret_ref(self): @secret_ref.setter def secret_ref(self, secret_ref): """ - Sets the secret_ref of this V1alpha1DataVolumeSourceS3. + Sets the secret_ref of this V1beta1DataVolumeSourceS3. SecretRef provides the secret reference needed to access the S3 source - :param secret_ref: The secret_ref of this V1alpha1DataVolumeSourceS3. + :param secret_ref: The secret_ref of this V1beta1DataVolumeSourceS3. :type: str """ @@ -106,10 +106,10 @@ def secret_ref(self, secret_ref): @property def url(self): """ - Gets the url of this V1alpha1DataVolumeSourceS3. + Gets the url of this V1beta1DataVolumeSourceS3. URL is the url of the S3 source - :return: The url of this V1alpha1DataVolumeSourceS3. + :return: The url of this V1beta1DataVolumeSourceS3. :rtype: str """ return self._url @@ -117,10 +117,10 @@ def url(self): @url.setter def url(self, url): """ - Sets the url of this V1alpha1DataVolumeSourceS3. + Sets the url of this V1beta1DataVolumeSourceS3. URL is the url of the S3 source - :param url: The url of this V1alpha1DataVolumeSourceS3. + :param url: The url of this V1beta1DataVolumeSourceS3. :type: str """ if url is None: @@ -170,7 +170,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1DataVolumeSourceS3): + if not isinstance(other, V1beta1DataVolumeSourceS3): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_data_volume_source_upload.py b/kubevirt/models/v1beta1_data_volume_source_upload.py similarity index 92% rename from kubevirt/models/v1alpha1_data_volume_source_upload.py rename to kubevirt/models/v1beta1_data_volume_source_upload.py index 09e6e1f1..462055a6 100644 --- a/kubevirt/models/v1alpha1_data_volume_source_upload.py +++ b/kubevirt/models/v1beta1_data_volume_source_upload.py @@ -16,7 +16,7 @@ import re -class V1alpha1DataVolumeSourceUpload(object): +class V1beta1DataVolumeSourceUpload(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,7 +40,7 @@ class V1alpha1DataVolumeSourceUpload(object): def __init__(self): """ - V1alpha1DataVolumeSourceUpload - a model defined in Swagger + V1beta1DataVolumeSourceUpload - a model defined in Swagger """ @@ -87,7 +87,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1DataVolumeSourceUpload): + if not isinstance(other, V1beta1DataVolumeSourceUpload): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_data_volume_source_vddk.py b/kubevirt/models/v1beta1_data_volume_source_vddk.py similarity index 77% rename from kubevirt/models/v1alpha1_data_volume_source_vddk.py rename to kubevirt/models/v1beta1_data_volume_source_vddk.py index bd355d96..d6f94261 100644 --- a/kubevirt/models/v1alpha1_data_volume_source_vddk.py +++ b/kubevirt/models/v1beta1_data_volume_source_vddk.py @@ -16,7 +16,7 @@ import re -class V1alpha1DataVolumeSourceVDDK(object): +class V1beta1DataVolumeSourceVDDK(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -48,7 +48,7 @@ class V1alpha1DataVolumeSourceVDDK(object): def __init__(self, backing_file=None, secret_ref=None, thumbprint=None, url=None, uuid=None): """ - V1alpha1DataVolumeSourceVDDK - a model defined in Swagger + V1beta1DataVolumeSourceVDDK - a model defined in Swagger """ self._backing_file = None @@ -71,10 +71,10 @@ def __init__(self, backing_file=None, secret_ref=None, thumbprint=None, url=None @property def backing_file(self): """ - Gets the backing_file of this V1alpha1DataVolumeSourceVDDK. + Gets the backing_file of this V1beta1DataVolumeSourceVDDK. BackingFile is the path to the virtual hard disk to migrate from vCenter/ESXi - :return: The backing_file of this V1alpha1DataVolumeSourceVDDK. + :return: The backing_file of this V1beta1DataVolumeSourceVDDK. :rtype: str """ return self._backing_file @@ -82,10 +82,10 @@ def backing_file(self): @backing_file.setter def backing_file(self, backing_file): """ - Sets the backing_file of this V1alpha1DataVolumeSourceVDDK. + Sets the backing_file of this V1beta1DataVolumeSourceVDDK. BackingFile is the path to the virtual hard disk to migrate from vCenter/ESXi - :param backing_file: The backing_file of this V1alpha1DataVolumeSourceVDDK. + :param backing_file: The backing_file of this V1beta1DataVolumeSourceVDDK. :type: str """ @@ -94,10 +94,10 @@ def backing_file(self, backing_file): @property def secret_ref(self): """ - Gets the secret_ref of this V1alpha1DataVolumeSourceVDDK. + Gets the secret_ref of this V1beta1DataVolumeSourceVDDK. SecretRef provides a reference to a secret containing the username and password needed to access the vCenter or ESXi host - :return: The secret_ref of this V1alpha1DataVolumeSourceVDDK. + :return: The secret_ref of this V1beta1DataVolumeSourceVDDK. :rtype: str """ return self._secret_ref @@ -105,10 +105,10 @@ def secret_ref(self): @secret_ref.setter def secret_ref(self, secret_ref): """ - Sets the secret_ref of this V1alpha1DataVolumeSourceVDDK. + Sets the secret_ref of this V1beta1DataVolumeSourceVDDK. SecretRef provides a reference to a secret containing the username and password needed to access the vCenter or ESXi host - :param secret_ref: The secret_ref of this V1alpha1DataVolumeSourceVDDK. + :param secret_ref: The secret_ref of this V1beta1DataVolumeSourceVDDK. :type: str """ @@ -117,10 +117,10 @@ def secret_ref(self, secret_ref): @property def thumbprint(self): """ - Gets the thumbprint of this V1alpha1DataVolumeSourceVDDK. + Gets the thumbprint of this V1beta1DataVolumeSourceVDDK. Thumbprint is the certificate thumbprint of the vCenter or ESXi host - :return: The thumbprint of this V1alpha1DataVolumeSourceVDDK. + :return: The thumbprint of this V1beta1DataVolumeSourceVDDK. :rtype: str """ return self._thumbprint @@ -128,10 +128,10 @@ def thumbprint(self): @thumbprint.setter def thumbprint(self, thumbprint): """ - Sets the thumbprint of this V1alpha1DataVolumeSourceVDDK. + Sets the thumbprint of this V1beta1DataVolumeSourceVDDK. Thumbprint is the certificate thumbprint of the vCenter or ESXi host - :param thumbprint: The thumbprint of this V1alpha1DataVolumeSourceVDDK. + :param thumbprint: The thumbprint of this V1beta1DataVolumeSourceVDDK. :type: str """ @@ -140,10 +140,10 @@ def thumbprint(self, thumbprint): @property def url(self): """ - Gets the url of this V1alpha1DataVolumeSourceVDDK. + Gets the url of this V1beta1DataVolumeSourceVDDK. URL is the URL of the vCenter or ESXi host with the VM to migrate - :return: The url of this V1alpha1DataVolumeSourceVDDK. + :return: The url of this V1beta1DataVolumeSourceVDDK. :rtype: str """ return self._url @@ -151,10 +151,10 @@ def url(self): @url.setter def url(self, url): """ - Sets the url of this V1alpha1DataVolumeSourceVDDK. + Sets the url of this V1beta1DataVolumeSourceVDDK. URL is the URL of the vCenter or ESXi host with the VM to migrate - :param url: The url of this V1alpha1DataVolumeSourceVDDK. + :param url: The url of this V1beta1DataVolumeSourceVDDK. :type: str """ @@ -163,10 +163,10 @@ def url(self, url): @property def uuid(self): """ - Gets the uuid of this V1alpha1DataVolumeSourceVDDK. + Gets the uuid of this V1beta1DataVolumeSourceVDDK. UUID is the UUID of the virtual machine that the backing file is attached to in vCenter/ESXi - :return: The uuid of this V1alpha1DataVolumeSourceVDDK. + :return: The uuid of this V1beta1DataVolumeSourceVDDK. :rtype: str """ return self._uuid @@ -174,10 +174,10 @@ def uuid(self): @uuid.setter def uuid(self, uuid): """ - Sets the uuid of this V1alpha1DataVolumeSourceVDDK. + Sets the uuid of this V1beta1DataVolumeSourceVDDK. UUID is the UUID of the virtual machine that the backing file is attached to in vCenter/ESXi - :param uuid: The uuid of this V1alpha1DataVolumeSourceVDDK. + :param uuid: The uuid of this V1beta1DataVolumeSourceVDDK. :type: str """ @@ -225,7 +225,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1DataVolumeSourceVDDK): + if not isinstance(other, V1beta1DataVolumeSourceVDDK): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_data_volume_spec.py b/kubevirt/models/v1beta1_data_volume_spec.py similarity index 74% rename from kubevirt/models/v1alpha1_data_volume_spec.py rename to kubevirt/models/v1beta1_data_volume_spec.py index 309a0921..a76d4ec9 100644 --- a/kubevirt/models/v1alpha1_data_volume_spec.py +++ b/kubevirt/models/v1beta1_data_volume_spec.py @@ -16,7 +16,7 @@ import re -class V1alpha1DataVolumeSpec(object): +class V1beta1DataVolumeSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,14 +31,14 @@ class V1alpha1DataVolumeSpec(object): and the value is json key in definition. """ swagger_types = { - 'checkpoints': 'list[V1alpha1DataVolumeCheckpoint]', + 'checkpoints': 'list[V1beta1DataVolumeCheckpoint]', 'content_type': 'str', 'final_checkpoint': 'bool', 'preallocation': 'bool', 'priority_class_name': 'str', 'pvc': 'K8sIoApiCoreV1PersistentVolumeClaimSpec', - 'source': 'V1alpha1DataVolumeSource', - 'storage': 'V1alpha1StorageSpec' + 'source': 'V1beta1DataVolumeSource', + 'storage': 'V1beta1StorageSpec' } attribute_map = { @@ -54,7 +54,7 @@ class V1alpha1DataVolumeSpec(object): def __init__(self, checkpoints=None, content_type=None, final_checkpoint=None, preallocation=None, priority_class_name=None, pvc=None, source=None, storage=None): """ - V1alpha1DataVolumeSpec - a model defined in Swagger + V1beta1DataVolumeSpec - a model defined in Swagger """ self._checkpoints = None @@ -85,22 +85,22 @@ def __init__(self, checkpoints=None, content_type=None, final_checkpoint=None, p @property def checkpoints(self): """ - Gets the checkpoints of this V1alpha1DataVolumeSpec. + Gets the checkpoints of this V1beta1DataVolumeSpec. Checkpoints is a list of DataVolumeCheckpoints, representing stages in a multistage import. - :return: The checkpoints of this V1alpha1DataVolumeSpec. - :rtype: list[V1alpha1DataVolumeCheckpoint] + :return: The checkpoints of this V1beta1DataVolumeSpec. + :rtype: list[V1beta1DataVolumeCheckpoint] """ return self._checkpoints @checkpoints.setter def checkpoints(self, checkpoints): """ - Sets the checkpoints of this V1alpha1DataVolumeSpec. + Sets the checkpoints of this V1beta1DataVolumeSpec. Checkpoints is a list of DataVolumeCheckpoints, representing stages in a multistage import. - :param checkpoints: The checkpoints of this V1alpha1DataVolumeSpec. - :type: list[V1alpha1DataVolumeCheckpoint] + :param checkpoints: The checkpoints of this V1beta1DataVolumeSpec. + :type: list[V1beta1DataVolumeCheckpoint] """ self._checkpoints = checkpoints @@ -108,10 +108,10 @@ def checkpoints(self, checkpoints): @property def content_type(self): """ - Gets the content_type of this V1alpha1DataVolumeSpec. + Gets the content_type of this V1beta1DataVolumeSpec. DataVolumeContentType options: \"kubevirt\", \"archive\" - :return: The content_type of this V1alpha1DataVolumeSpec. + :return: The content_type of this V1beta1DataVolumeSpec. :rtype: str """ return self._content_type @@ -119,10 +119,10 @@ def content_type(self): @content_type.setter def content_type(self, content_type): """ - Sets the content_type of this V1alpha1DataVolumeSpec. + Sets the content_type of this V1beta1DataVolumeSpec. DataVolumeContentType options: \"kubevirt\", \"archive\" - :param content_type: The content_type of this V1alpha1DataVolumeSpec. + :param content_type: The content_type of this V1beta1DataVolumeSpec. :type: str """ @@ -131,10 +131,10 @@ def content_type(self, content_type): @property def final_checkpoint(self): """ - Gets the final_checkpoint of this V1alpha1DataVolumeSpec. + Gets the final_checkpoint of this V1beta1DataVolumeSpec. FinalCheckpoint indicates whether the current DataVolumeCheckpoint is the final checkpoint. - :return: The final_checkpoint of this V1alpha1DataVolumeSpec. + :return: The final_checkpoint of this V1beta1DataVolumeSpec. :rtype: bool """ return self._final_checkpoint @@ -142,10 +142,10 @@ def final_checkpoint(self): @final_checkpoint.setter def final_checkpoint(self, final_checkpoint): """ - Sets the final_checkpoint of this V1alpha1DataVolumeSpec. + Sets the final_checkpoint of this V1beta1DataVolumeSpec. FinalCheckpoint indicates whether the current DataVolumeCheckpoint is the final checkpoint. - :param final_checkpoint: The final_checkpoint of this V1alpha1DataVolumeSpec. + :param final_checkpoint: The final_checkpoint of this V1beta1DataVolumeSpec. :type: bool """ @@ -154,10 +154,10 @@ def final_checkpoint(self, final_checkpoint): @property def preallocation(self): """ - Gets the preallocation of this V1alpha1DataVolumeSpec. + Gets the preallocation of this V1beta1DataVolumeSpec. Preallocation controls whether storage for DataVolumes should be allocated in advance. - :return: The preallocation of this V1alpha1DataVolumeSpec. + :return: The preallocation of this V1beta1DataVolumeSpec. :rtype: bool """ return self._preallocation @@ -165,10 +165,10 @@ def preallocation(self): @preallocation.setter def preallocation(self, preallocation): """ - Sets the preallocation of this V1alpha1DataVolumeSpec. + Sets the preallocation of this V1beta1DataVolumeSpec. Preallocation controls whether storage for DataVolumes should be allocated in advance. - :param preallocation: The preallocation of this V1alpha1DataVolumeSpec. + :param preallocation: The preallocation of this V1beta1DataVolumeSpec. :type: bool """ @@ -177,10 +177,10 @@ def preallocation(self, preallocation): @property def priority_class_name(self): """ - Gets the priority_class_name of this V1alpha1DataVolumeSpec. + Gets the priority_class_name of this V1beta1DataVolumeSpec. PriorityClassName for Importer, Cloner and Uploader pod - :return: The priority_class_name of this V1alpha1DataVolumeSpec. + :return: The priority_class_name of this V1beta1DataVolumeSpec. :rtype: str """ return self._priority_class_name @@ -188,10 +188,10 @@ def priority_class_name(self): @priority_class_name.setter def priority_class_name(self, priority_class_name): """ - Sets the priority_class_name of this V1alpha1DataVolumeSpec. + Sets the priority_class_name of this V1beta1DataVolumeSpec. PriorityClassName for Importer, Cloner and Uploader pod - :param priority_class_name: The priority_class_name of this V1alpha1DataVolumeSpec. + :param priority_class_name: The priority_class_name of this V1beta1DataVolumeSpec. :type: str """ @@ -200,10 +200,10 @@ def priority_class_name(self, priority_class_name): @property def pvc(self): """ - Gets the pvc of this V1alpha1DataVolumeSpec. + Gets the pvc of this V1beta1DataVolumeSpec. PVC is the PVC specification - :return: The pvc of this V1alpha1DataVolumeSpec. + :return: The pvc of this V1beta1DataVolumeSpec. :rtype: K8sIoApiCoreV1PersistentVolumeClaimSpec """ return self._pvc @@ -211,10 +211,10 @@ def pvc(self): @pvc.setter def pvc(self, pvc): """ - Sets the pvc of this V1alpha1DataVolumeSpec. + Sets the pvc of this V1beta1DataVolumeSpec. PVC is the PVC specification - :param pvc: The pvc of this V1alpha1DataVolumeSpec. + :param pvc: The pvc of this V1beta1DataVolumeSpec. :type: K8sIoApiCoreV1PersistentVolumeClaimSpec """ @@ -223,22 +223,22 @@ def pvc(self, pvc): @property def source(self): """ - Gets the source of this V1alpha1DataVolumeSpec. + Gets the source of this V1beta1DataVolumeSpec. Source is the src of the data for the requested DataVolume - :return: The source of this V1alpha1DataVolumeSpec. - :rtype: V1alpha1DataVolumeSource + :return: The source of this V1beta1DataVolumeSpec. + :rtype: V1beta1DataVolumeSource """ return self._source @source.setter def source(self, source): """ - Sets the source of this V1alpha1DataVolumeSpec. + Sets the source of this V1beta1DataVolumeSpec. Source is the src of the data for the requested DataVolume - :param source: The source of this V1alpha1DataVolumeSpec. - :type: V1alpha1DataVolumeSource + :param source: The source of this V1beta1DataVolumeSpec. + :type: V1beta1DataVolumeSource """ if source is None: raise ValueError("Invalid value for `source`, must not be `None`") @@ -248,22 +248,22 @@ def source(self, source): @property def storage(self): """ - Gets the storage of this V1alpha1DataVolumeSpec. + Gets the storage of this V1beta1DataVolumeSpec. Storage is the requested storage specification - :return: The storage of this V1alpha1DataVolumeSpec. - :rtype: V1alpha1StorageSpec + :return: The storage of this V1beta1DataVolumeSpec. + :rtype: V1beta1StorageSpec """ return self._storage @storage.setter def storage(self, storage): """ - Sets the storage of this V1alpha1DataVolumeSpec. + Sets the storage of this V1beta1DataVolumeSpec. Storage is the requested storage specification - :param storage: The storage of this V1alpha1DataVolumeSpec. - :type: V1alpha1StorageSpec + :param storage: The storage of this V1beta1DataVolumeSpec. + :type: V1beta1StorageSpec """ self._storage = storage @@ -310,7 +310,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1DataVolumeSpec): + if not isinstance(other, V1beta1DataVolumeSpec): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_storage_spec.py b/kubevirt/models/v1beta1_storage_spec.py similarity index 82% rename from kubevirt/models/v1alpha1_storage_spec.py rename to kubevirt/models/v1beta1_storage_spec.py index e5c2cec9..48f26a98 100644 --- a/kubevirt/models/v1alpha1_storage_spec.py +++ b/kubevirt/models/v1beta1_storage_spec.py @@ -16,7 +16,7 @@ import re -class V1alpha1StorageSpec(object): +class V1beta1StorageSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -52,7 +52,7 @@ class V1alpha1StorageSpec(object): def __init__(self, access_modes=None, data_source=None, resources=None, selector=None, storage_class_name=None, volume_mode=None, volume_name=None): """ - V1alpha1StorageSpec - a model defined in Swagger + V1beta1StorageSpec - a model defined in Swagger """ self._access_modes = None @@ -81,10 +81,10 @@ def __init__(self, access_modes=None, data_source=None, resources=None, selector @property def access_modes(self): """ - Gets the access_modes of this V1alpha1StorageSpec. + Gets the access_modes of this V1beta1StorageSpec. AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - :return: The access_modes of this V1alpha1StorageSpec. + :return: The access_modes of this V1beta1StorageSpec. :rtype: list[str] """ return self._access_modes @@ -92,10 +92,10 @@ def access_modes(self): @access_modes.setter def access_modes(self, access_modes): """ - Sets the access_modes of this V1alpha1StorageSpec. + Sets the access_modes of this V1beta1StorageSpec. AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - :param access_modes: The access_modes of this V1alpha1StorageSpec. + :param access_modes: The access_modes of this V1beta1StorageSpec. :type: list[str] """ @@ -104,10 +104,10 @@ def access_modes(self, access_modes): @property def data_source(self): """ - Gets the data_source of this V1alpha1StorageSpec. + Gets the data_source of this V1beta1StorageSpec. This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. - :return: The data_source of this V1alpha1StorageSpec. + :return: The data_source of this V1beta1StorageSpec. :rtype: K8sIoApiCoreV1TypedLocalObjectReference """ return self._data_source @@ -115,10 +115,10 @@ def data_source(self): @data_source.setter def data_source(self, data_source): """ - Sets the data_source of this V1alpha1StorageSpec. + Sets the data_source of this V1beta1StorageSpec. This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. - :param data_source: The data_source of this V1alpha1StorageSpec. + :param data_source: The data_source of this V1beta1StorageSpec. :type: K8sIoApiCoreV1TypedLocalObjectReference """ @@ -127,10 +127,10 @@ def data_source(self, data_source): @property def resources(self): """ - Gets the resources of this V1alpha1StorageSpec. + Gets the resources of this V1beta1StorageSpec. Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - :return: The resources of this V1alpha1StorageSpec. + :return: The resources of this V1beta1StorageSpec. :rtype: K8sIoApiCoreV1ResourceRequirements """ return self._resources @@ -138,10 +138,10 @@ def resources(self): @resources.setter def resources(self, resources): """ - Sets the resources of this V1alpha1StorageSpec. + Sets the resources of this V1beta1StorageSpec. Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - :param resources: The resources of this V1alpha1StorageSpec. + :param resources: The resources of this V1beta1StorageSpec. :type: K8sIoApiCoreV1ResourceRequirements """ @@ -150,10 +150,10 @@ def resources(self, resources): @property def selector(self): """ - Gets the selector of this V1alpha1StorageSpec. + Gets the selector of this V1beta1StorageSpec. A label query over volumes to consider for binding. - :return: The selector of this V1alpha1StorageSpec. + :return: The selector of this V1beta1StorageSpec. :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector """ return self._selector @@ -161,10 +161,10 @@ def selector(self): @selector.setter def selector(self, selector): """ - Sets the selector of this V1alpha1StorageSpec. + Sets the selector of this V1beta1StorageSpec. A label query over volumes to consider for binding. - :param selector: The selector of this V1alpha1StorageSpec. + :param selector: The selector of this V1beta1StorageSpec. :type: K8sIoApimachineryPkgApisMetaV1LabelSelector """ @@ -173,10 +173,10 @@ def selector(self, selector): @property def storage_class_name(self): """ - Gets the storage_class_name of this V1alpha1StorageSpec. + Gets the storage_class_name of this V1beta1StorageSpec. Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - :return: The storage_class_name of this V1alpha1StorageSpec. + :return: The storage_class_name of this V1beta1StorageSpec. :rtype: str """ return self._storage_class_name @@ -184,10 +184,10 @@ def storage_class_name(self): @storage_class_name.setter def storage_class_name(self, storage_class_name): """ - Sets the storage_class_name of this V1alpha1StorageSpec. + Sets the storage_class_name of this V1beta1StorageSpec. Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - :param storage_class_name: The storage_class_name of this V1alpha1StorageSpec. + :param storage_class_name: The storage_class_name of this V1beta1StorageSpec. :type: str """ @@ -196,10 +196,10 @@ def storage_class_name(self, storage_class_name): @property def volume_mode(self): """ - Gets the volume_mode of this V1alpha1StorageSpec. + Gets the volume_mode of this V1beta1StorageSpec. volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. - :return: The volume_mode of this V1alpha1StorageSpec. + :return: The volume_mode of this V1beta1StorageSpec. :rtype: str """ return self._volume_mode @@ -207,10 +207,10 @@ def volume_mode(self): @volume_mode.setter def volume_mode(self, volume_mode): """ - Sets the volume_mode of this V1alpha1StorageSpec. + Sets the volume_mode of this V1beta1StorageSpec. volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. - :param volume_mode: The volume_mode of this V1alpha1StorageSpec. + :param volume_mode: The volume_mode of this V1beta1StorageSpec. :type: str """ @@ -219,10 +219,10 @@ def volume_mode(self, volume_mode): @property def volume_name(self): """ - Gets the volume_name of this V1alpha1StorageSpec. + Gets the volume_name of this V1beta1StorageSpec. VolumeName is the binding reference to the PersistentVolume backing this claim. - :return: The volume_name of this V1alpha1StorageSpec. + :return: The volume_name of this V1beta1StorageSpec. :rtype: str """ return self._volume_name @@ -230,10 +230,10 @@ def volume_name(self): @volume_name.setter def volume_name(self, volume_name): """ - Sets the volume_name of this V1alpha1StorageSpec. + Sets the volume_name of this V1beta1StorageSpec. VolumeName is the binding reference to the PersistentVolume backing this claim. - :param volume_name: The volume_name of this V1alpha1StorageSpec. + :param volume_name: The volume_name of this V1beta1StorageSpec. :type: str """ @@ -281,7 +281,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1StorageSpec): + if not isinstance(other, V1beta1StorageSpec): return False return self.__dict__ == other.__dict__ diff --git a/setup.py b/setup.py index bfb4fbcf..1c67fd85 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.42.0-357-gbf4b9365c" +VERSION = "v0.42.0-366-g8730c5785" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index cdf98f8d..c84a120e 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.42.0-357-gbf4b9365c" +"packageVersion": "v0.42.0-366-g8730c5785" } diff --git a/test/test_v1alpha1_data_volume_source_image_io.py b/test/test_v1alpha1_data_volume_source_image_io.py deleted file mode 100644 index 059c5c65..00000000 --- a/test/test_v1alpha1_data_volume_source_image_io.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_data_volume_source_image_io import V1alpha1DataVolumeSourceImageIO - - -class TestV1alpha1DataVolumeSourceImageIO(unittest.TestCase): - """ V1alpha1DataVolumeSourceImageIO unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1DataVolumeSourceImageIO(self): - """ - Test V1alpha1DataVolumeSourceImageIO - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_data_volume_source_image_io.V1alpha1DataVolumeSourceImageIO() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_data_volume_source_registry.py b/test/test_v1alpha1_data_volume_source_registry.py deleted file mode 100644 index feb125c1..00000000 --- a/test/test_v1alpha1_data_volume_source_registry.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_data_volume_source_registry import V1alpha1DataVolumeSourceRegistry - - -class TestV1alpha1DataVolumeSourceRegistry(unittest.TestCase): - """ V1alpha1DataVolumeSourceRegistry unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1DataVolumeSourceRegistry(self): - """ - Test V1alpha1DataVolumeSourceRegistry - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_data_volume_source_registry.V1alpha1DataVolumeSourceRegistry() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_data_volume_source_upload.py b/test/test_v1alpha1_data_volume_source_upload.py deleted file mode 100644 index b2a69578..00000000 --- a/test/test_v1alpha1_data_volume_source_upload.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_data_volume_source_upload import V1alpha1DataVolumeSourceUpload - - -class TestV1alpha1DataVolumeSourceUpload(unittest.TestCase): - """ V1alpha1DataVolumeSourceUpload unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1DataVolumeSourceUpload(self): - """ - Test V1alpha1DataVolumeSourceUpload - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_data_volume_source_upload.V1alpha1DataVolumeSourceUpload() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_data_volume_source_vddk.py b/test/test_v1alpha1_data_volume_source_vddk.py deleted file mode 100644 index 5c89b839..00000000 --- a/test/test_v1alpha1_data_volume_source_vddk.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_data_volume_source_vddk import V1alpha1DataVolumeSourceVDDK - - -class TestV1alpha1DataVolumeSourceVDDK(unittest.TestCase): - """ V1alpha1DataVolumeSourceVDDK unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1DataVolumeSourceVDDK(self): - """ - Test V1alpha1DataVolumeSourceVDDK - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_data_volume_source_vddk.V1alpha1DataVolumeSourceVDDK() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_data_volume_source_pvc.py b/test/test_v1beta1_data_volume_blank_image.py similarity index 61% rename from test/test_v1alpha1_data_volume_source_pvc.py rename to test/test_v1beta1_data_volume_blank_image.py index f709f0b1..4a7e2daa 100644 --- a/test/test_v1alpha1_data_volume_source_pvc.py +++ b/test/test_v1beta1_data_volume_blank_image.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_data_volume_source_pvc import V1alpha1DataVolumeSourcePVC +from kubevirt.models.v1beta1_data_volume_blank_image import V1beta1DataVolumeBlankImage -class TestV1alpha1DataVolumeSourcePVC(unittest.TestCase): - """ V1alpha1DataVolumeSourcePVC unit test stubs """ +class TestV1beta1DataVolumeBlankImage(unittest.TestCase): + """ V1beta1DataVolumeBlankImage unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1DataVolumeSourcePVC(self): + def testV1beta1DataVolumeBlankImage(self): """ - Test V1alpha1DataVolumeSourcePVC + Test V1beta1DataVolumeBlankImage """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_data_volume_source_pvc.V1alpha1DataVolumeSourcePVC() + #model = kubevirt.models.v1beta1_data_volume_blank_image.V1beta1DataVolumeBlankImage() pass diff --git a/test/test_v1beta1_data_volume_checkpoint.py b/test/test_v1beta1_data_volume_checkpoint.py new file mode 100644 index 00000000..8f033fc4 --- /dev/null +++ b/test/test_v1beta1_data_volume_checkpoint.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_data_volume_checkpoint import V1beta1DataVolumeCheckpoint + + +class TestV1beta1DataVolumeCheckpoint(unittest.TestCase): + """ V1beta1DataVolumeCheckpoint unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DataVolumeCheckpoint(self): + """ + Test V1beta1DataVolumeCheckpoint + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_data_volume_checkpoint.V1beta1DataVolumeCheckpoint() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_data_volume_source.py b/test/test_v1beta1_data_volume_source.py similarity index 63% rename from test/test_v1alpha1_data_volume_source.py rename to test/test_v1beta1_data_volume_source.py index a1e954be..234754f2 100644 --- a/test/test_v1alpha1_data_volume_source.py +++ b/test/test_v1beta1_data_volume_source.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_data_volume_source import V1alpha1DataVolumeSource +from kubevirt.models.v1beta1_data_volume_source import V1beta1DataVolumeSource -class TestV1alpha1DataVolumeSource(unittest.TestCase): - """ V1alpha1DataVolumeSource unit test stubs """ +class TestV1beta1DataVolumeSource(unittest.TestCase): + """ V1beta1DataVolumeSource unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1DataVolumeSource(self): + def testV1beta1DataVolumeSource(self): """ - Test V1alpha1DataVolumeSource + Test V1beta1DataVolumeSource """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_data_volume_source.V1alpha1DataVolumeSource() + #model = kubevirt.models.v1beta1_data_volume_source.V1beta1DataVolumeSource() pass diff --git a/test/test_v1beta1_data_volume_source_http.py b/test/test_v1beta1_data_volume_source_http.py new file mode 100644 index 00000000..25af6a94 --- /dev/null +++ b/test/test_v1beta1_data_volume_source_http.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_data_volume_source_http import V1beta1DataVolumeSourceHTTP + + +class TestV1beta1DataVolumeSourceHTTP(unittest.TestCase): + """ V1beta1DataVolumeSourceHTTP unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DataVolumeSourceHTTP(self): + """ + Test V1beta1DataVolumeSourceHTTP + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_data_volume_source_http.V1beta1DataVolumeSourceHTTP() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_data_volume_checkpoint.py b/test/test_v1beta1_data_volume_source_image_io.py similarity index 59% rename from test/test_v1alpha1_data_volume_checkpoint.py rename to test/test_v1beta1_data_volume_source_image_io.py index 9c4974f1..e5c69a2c 100644 --- a/test/test_v1alpha1_data_volume_checkpoint.py +++ b/test/test_v1beta1_data_volume_source_image_io.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_data_volume_checkpoint import V1alpha1DataVolumeCheckpoint +from kubevirt.models.v1beta1_data_volume_source_image_io import V1beta1DataVolumeSourceImageIO -class TestV1alpha1DataVolumeCheckpoint(unittest.TestCase): - """ V1alpha1DataVolumeCheckpoint unit test stubs """ +class TestV1beta1DataVolumeSourceImageIO(unittest.TestCase): + """ V1beta1DataVolumeSourceImageIO unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1DataVolumeCheckpoint(self): + def testV1beta1DataVolumeSourceImageIO(self): """ - Test V1alpha1DataVolumeCheckpoint + Test V1beta1DataVolumeSourceImageIO """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_data_volume_checkpoint.V1alpha1DataVolumeCheckpoint() + #model = kubevirt.models.v1beta1_data_volume_source_image_io.V1beta1DataVolumeSourceImageIO() pass diff --git a/test/test_v1alpha1_data_volume_source_s3.py b/test/test_v1beta1_data_volume_source_pvc.py similarity index 62% rename from test/test_v1alpha1_data_volume_source_s3.py rename to test/test_v1beta1_data_volume_source_pvc.py index 5d8be34c..2ec24d25 100644 --- a/test/test_v1alpha1_data_volume_source_s3.py +++ b/test/test_v1beta1_data_volume_source_pvc.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_data_volume_source_s3 import V1alpha1DataVolumeSourceS3 +from kubevirt.models.v1beta1_data_volume_source_pvc import V1beta1DataVolumeSourcePVC -class TestV1alpha1DataVolumeSourceS3(unittest.TestCase): - """ V1alpha1DataVolumeSourceS3 unit test stubs """ +class TestV1beta1DataVolumeSourcePVC(unittest.TestCase): + """ V1beta1DataVolumeSourcePVC unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1DataVolumeSourceS3(self): + def testV1beta1DataVolumeSourcePVC(self): """ - Test V1alpha1DataVolumeSourceS3 + Test V1beta1DataVolumeSourcePVC """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_data_volume_source_s3.V1alpha1DataVolumeSourceS3() + #model = kubevirt.models.v1beta1_data_volume_source_pvc.V1beta1DataVolumeSourcePVC() pass diff --git a/test/test_v1alpha1_data_volume_source_http.py b/test/test_v1beta1_data_volume_source_registry.py similarity index 59% rename from test/test_v1alpha1_data_volume_source_http.py rename to test/test_v1beta1_data_volume_source_registry.py index 6493eeca..040c7bc2 100644 --- a/test/test_v1alpha1_data_volume_source_http.py +++ b/test/test_v1beta1_data_volume_source_registry.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_data_volume_source_http import V1alpha1DataVolumeSourceHTTP +from kubevirt.models.v1beta1_data_volume_source_registry import V1beta1DataVolumeSourceRegistry -class TestV1alpha1DataVolumeSourceHTTP(unittest.TestCase): - """ V1alpha1DataVolumeSourceHTTP unit test stubs """ +class TestV1beta1DataVolumeSourceRegistry(unittest.TestCase): + """ V1beta1DataVolumeSourceRegistry unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1DataVolumeSourceHTTP(self): + def testV1beta1DataVolumeSourceRegistry(self): """ - Test V1alpha1DataVolumeSourceHTTP + Test V1beta1DataVolumeSourceRegistry """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_data_volume_source_http.V1alpha1DataVolumeSourceHTTP() + #model = kubevirt.models.v1beta1_data_volume_source_registry.V1beta1DataVolumeSourceRegistry() pass diff --git a/test/test_v1beta1_data_volume_source_s3.py b/test/test_v1beta1_data_volume_source_s3.py new file mode 100644 index 00000000..6c4e3d7d --- /dev/null +++ b/test/test_v1beta1_data_volume_source_s3.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_data_volume_source_s3 import V1beta1DataVolumeSourceS3 + + +class TestV1beta1DataVolumeSourceS3(unittest.TestCase): + """ V1beta1DataVolumeSourceS3 unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DataVolumeSourceS3(self): + """ + Test V1beta1DataVolumeSourceS3 + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_data_volume_source_s3.V1beta1DataVolumeSourceS3() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_data_volume_blank_image.py b/test/test_v1beta1_data_volume_source_upload.py similarity index 60% rename from test/test_v1alpha1_data_volume_blank_image.py rename to test/test_v1beta1_data_volume_source_upload.py index cbc14428..64d3f2b6 100644 --- a/test/test_v1alpha1_data_volume_blank_image.py +++ b/test/test_v1beta1_data_volume_source_upload.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_data_volume_blank_image import V1alpha1DataVolumeBlankImage +from kubevirt.models.v1beta1_data_volume_source_upload import V1beta1DataVolumeSourceUpload -class TestV1alpha1DataVolumeBlankImage(unittest.TestCase): - """ V1alpha1DataVolumeBlankImage unit test stubs """ +class TestV1beta1DataVolumeSourceUpload(unittest.TestCase): + """ V1beta1DataVolumeSourceUpload unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1DataVolumeBlankImage(self): + def testV1beta1DataVolumeSourceUpload(self): """ - Test V1alpha1DataVolumeBlankImage + Test V1beta1DataVolumeSourceUpload """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_data_volume_blank_image.V1alpha1DataVolumeBlankImage() + #model = kubevirt.models.v1beta1_data_volume_source_upload.V1beta1DataVolumeSourceUpload() pass diff --git a/test/test_v1beta1_data_volume_source_vddk.py b/test/test_v1beta1_data_volume_source_vddk.py new file mode 100644 index 00000000..c86cb891 --- /dev/null +++ b/test/test_v1beta1_data_volume_source_vddk.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_data_volume_source_vddk import V1beta1DataVolumeSourceVDDK + + +class TestV1beta1DataVolumeSourceVDDK(unittest.TestCase): + """ V1beta1DataVolumeSourceVDDK unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DataVolumeSourceVDDK(self): + """ + Test V1beta1DataVolumeSourceVDDK + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_data_volume_source_vddk.V1beta1DataVolumeSourceVDDK() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_data_volume_spec.py b/test/test_v1beta1_data_volume_spec.py similarity index 64% rename from test/test_v1alpha1_data_volume_spec.py rename to test/test_v1beta1_data_volume_spec.py index 271f2a92..f307043b 100644 --- a/test/test_v1alpha1_data_volume_spec.py +++ b/test/test_v1beta1_data_volume_spec.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_data_volume_spec import V1alpha1DataVolumeSpec +from kubevirt.models.v1beta1_data_volume_spec import V1beta1DataVolumeSpec -class TestV1alpha1DataVolumeSpec(unittest.TestCase): - """ V1alpha1DataVolumeSpec unit test stubs """ +class TestV1beta1DataVolumeSpec(unittest.TestCase): + """ V1beta1DataVolumeSpec unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1DataVolumeSpec(self): + def testV1beta1DataVolumeSpec(self): """ - Test V1alpha1DataVolumeSpec + Test V1beta1DataVolumeSpec """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_data_volume_spec.V1alpha1DataVolumeSpec() + #model = kubevirt.models.v1beta1_data_volume_spec.V1beta1DataVolumeSpec() pass diff --git a/test/test_v1alpha1_storage_spec.py b/test/test_v1beta1_storage_spec.py similarity index 66% rename from test/test_v1alpha1_storage_spec.py rename to test/test_v1beta1_storage_spec.py index 296ac6fa..5a096da1 100644 --- a/test/test_v1alpha1_storage_spec.py +++ b/test/test_v1beta1_storage_spec.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_storage_spec import V1alpha1StorageSpec +from kubevirt.models.v1beta1_storage_spec import V1beta1StorageSpec -class TestV1alpha1StorageSpec(unittest.TestCase): - """ V1alpha1StorageSpec unit test stubs """ +class TestV1beta1StorageSpec(unittest.TestCase): + """ V1beta1StorageSpec unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1StorageSpec(self): + def testV1beta1StorageSpec(self): """ - Test V1alpha1StorageSpec + Test V1beta1StorageSpec """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_storage_spec.V1alpha1StorageSpec() + #model = kubevirt.models.v1beta1_storage_spec.V1beta1StorageSpec() pass From 3888e55e9204865a26b397eecb3a20715fe959ab Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 2 Jul 2021 01:42:51 +0000 Subject: [PATCH 207/521] Client Python update by KubeVirt Prow build 1410768944557461504 --- README.md | 2 +- docs/V1KubeVirtConfiguration.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_kube_virt_configuration.py | 28 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 34 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 701f7f74..283d1d4b 100644 --- a/README.md +++ b/README.md @@ -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: v0.42.0-366-g8730c5785 +- Package version: v0.43.0-rc.0-14-g535428365 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index 34afd259..7d662eef 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cpu_model** | **str** | | [optional] **cpu_request** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | | [optional] +**default_runtime_class** | **str** | | [optional] **developer_configuration** | [**V1DeveloperConfiguration**](V1DeveloperConfiguration.md) | | [optional] **emulated_machines** | **list[str]** | | [optional] **image_pull_policy** | **str** | | [optional] diff --git a/git_push.sh b/git_push.sh index 03028957..85c80ce6 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.42.0-366-g8730c5785" + release_note="Auto-generated client v0.43.0-rc.0-14-g535428365" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 07f1ea0b..12f3ab38 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.42.0-366-g8730c5785/python' + self.user_agent = 'Swagger-Codegen/v0.43.0-rc.0-14-g535428365/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 30b3b217..c8804043 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.42.0-366-g8730c5785".\ + "SDK Package Version: v0.43.0-rc.0-14-g535428365".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index e29193fb..859475d2 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -33,6 +33,7 @@ class V1KubeVirtConfiguration(object): swagger_types = { 'cpu_model': 'str', 'cpu_request': 'K8sIoApimachineryPkgApiResourceQuantity', + 'default_runtime_class': 'str', 'developer_configuration': 'V1DeveloperConfiguration', 'emulated_machines': 'list[str]', 'image_pull_policy': 'str', @@ -52,6 +53,7 @@ class V1KubeVirtConfiguration(object): attribute_map = { 'cpu_model': 'cpuModel', 'cpu_request': 'cpuRequest', + 'default_runtime_class': 'defaultRuntimeClass', 'developer_configuration': 'developerConfiguration', 'emulated_machines': 'emulatedMachines', 'image_pull_policy': 'imagePullPolicy', @@ -68,13 +70,14 @@ class V1KubeVirtConfiguration(object): 'supported_guest_agent_versions': 'supportedGuestAgentVersions' } - def __init__(self, cpu_model=None, cpu_request=None, developer_configuration=None, emulated_machines=None, image_pull_policy=None, machine_type=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, selinux_launcher_type=None, smbios=None, supported_guest_agent_versions=None): + def __init__(self, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, image_pull_policy=None, machine_type=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, selinux_launcher_type=None, smbios=None, supported_guest_agent_versions=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ self._cpu_model = None self._cpu_request = None + self._default_runtime_class = None self._developer_configuration = None self._emulated_machines = None self._image_pull_policy = None @@ -94,6 +97,8 @@ def __init__(self, cpu_model=None, cpu_request=None, developer_configuration=Non self.cpu_model = cpu_model if cpu_request is not None: self.cpu_request = cpu_request + if default_runtime_class is not None: + self.default_runtime_class = default_runtime_class if developer_configuration is not None: self.developer_configuration = developer_configuration if emulated_machines is not None: @@ -165,6 +170,27 @@ def cpu_request(self, cpu_request): self._cpu_request = cpu_request + @property + def default_runtime_class(self): + """ + Gets the default_runtime_class of this V1KubeVirtConfiguration. + + :return: The default_runtime_class of this V1KubeVirtConfiguration. + :rtype: str + """ + return self._default_runtime_class + + @default_runtime_class.setter + def default_runtime_class(self, default_runtime_class): + """ + Sets the default_runtime_class of this V1KubeVirtConfiguration. + + :param default_runtime_class: The default_runtime_class of this V1KubeVirtConfiguration. + :type: str + """ + + self._default_runtime_class = default_runtime_class + @property def developer_configuration(self): """ diff --git a/setup.py b/setup.py index 1c67fd85..f1052faa 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.42.0-366-g8730c5785" +VERSION = "v0.43.0-rc.0-14-g535428365" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index c84a120e..995b00b5 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.42.0-366-g8730c5785" +"packageVersion": "v0.43.0-rc.0-14-g535428365" } From 0a2ea707b12a726a4bad7f761f58ec2392d89ec6 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 9 Jul 2021 13:47:26 +0000 Subject: [PATCH 208/521] Client Python update by KubeVirt Prow build 1413484283502268416 --- README.md | 4 +- docs/DefaultApi.md | 84 ++++++++++++++++ git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 180 +++++++++++++++++++++++++++++++++++ kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 16 ++++ 9 files changed, 288 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 283d1d4b..c9343ccb 100644 --- a/README.md +++ b/README.md @@ -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: v0.43.0-rc.0-14-g535428365 +- Package version: v0.43.0-rc.0-80-g853ae53a6 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -153,6 +153,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1_check_health**](docs/DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | *DefaultApi* | [**v1_console**](docs/DefaultApi.md#v1_console) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | *DefaultApi* | [**v1_filesystemlist**](docs/DefaultApi.md#v1_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | +*DefaultApi* | [**v1_guestfs**](docs/DefaultApi.md#v1_guestfs) | **GET** /apis/subresources.kubevirt.io/v1/guestfs | *DefaultApi* | [**v1_guestosinfo**](docs/DefaultApi.md#v1_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | *DefaultApi* | [**v1_migrate**](docs/DefaultApi.md#v1_migrate) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | *DefaultApi* | [**v1_pause**](docs/DefaultApi.md#v1_pause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | @@ -168,6 +169,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3_console**](docs/DefaultApi.md#v1alpha3_console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | *DefaultApi* | [**v1alpha3_filesystemlist**](docs/DefaultApi.md#v1alpha3_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | *DefaultApi* | [**v1alpha3_get_sub_api_group**](docs/DefaultApi.md#v1alpha3_get_sub_api_group) | **GET** /apis/subresources.kubevirt.io | +*DefaultApi* | [**v1alpha3_guestfs**](docs/DefaultApi.md#v1alpha3_guestfs) | **GET** /apis/subresources.kubevirt.io/v1alpha3/guestfs | *DefaultApi* | [**v1alpha3_guestosinfo**](docs/DefaultApi.md#v1alpha3_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | *DefaultApi* | [**v1alpha3_migrate**](docs/DefaultApi.md#v1alpha3_migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | *DefaultApi* | [**v1alpha3_pause**](docs/DefaultApi.md#v1alpha3_pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index a06b7479..535b9566 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -87,6 +87,7 @@ Method | HTTP request | Description [**v1_check_health**](DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | [**v1_console**](DefaultApi.md#v1_console) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | [**v1_filesystemlist**](DefaultApi.md#v1_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | +[**v1_guestfs**](DefaultApi.md#v1_guestfs) | **GET** /apis/subresources.kubevirt.io/v1/guestfs | [**v1_guestosinfo**](DefaultApi.md#v1_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | [**v1_migrate**](DefaultApi.md#v1_migrate) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | [**v1_pause**](DefaultApi.md#v1_pause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | @@ -102,6 +103,7 @@ Method | HTTP request | Description [**v1alpha3_console**](DefaultApi.md#v1alpha3_console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | [**v1alpha3_filesystemlist**](DefaultApi.md#v1alpha3_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | [**v1alpha3_get_sub_api_group**](DefaultApi.md#v1alpha3_get_sub_api_group) | **GET** /apis/subresources.kubevirt.io | +[**v1alpha3_guestfs**](DefaultApi.md#v1alpha3_guestfs) | **GET** /apis/subresources.kubevirt.io/v1alpha3/guestfs | [**v1alpha3_guestosinfo**](DefaultApi.md#v1alpha3_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | [**v1alpha3_migrate**](DefaultApi.md#v1alpha3_migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | [**v1alpha3_pause**](DefaultApi.md#v1alpha3_pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | @@ -4631,6 +4633,47 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1_guestfs** +> str v1_guestfs() + + + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.v1_guestfs() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1_guestfs: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1_guestosinfo** > V1VirtualMachineInstanceGuestAgentInfo v1_guestosinfo(name, namespace) @@ -5334,6 +5377,47 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3_guestfs** +> str v1alpha3_guestfs() + + + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.v1alpha3_guestfs() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_guestfs: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3_guestosinfo** > V1VirtualMachineInstanceGuestAgentInfo v1alpha3_guestosinfo(name, namespace) diff --git a/git_push.sh b/git_push.sh index 85c80ce6..d2611665 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.43.0-rc.0-14-g535428365" + release_note="Auto-generated client v0.43.0-rc.0-80-g853ae53a6" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 12f3ab38..d1dfc5fe 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.43.0-rc.0-14-g535428365/python' + self.user_agent = 'Swagger-Codegen/v0.43.0-rc.0-80-g853ae53a6/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 10d9ee5d..7af55043 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -9835,6 +9835,96 @@ def v1_filesystemlist_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1_guestfs(self, **kwargs): + """ + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_guestfs(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1_guestfs_with_http_info(**kwargs) + else: + (data) = self.v1_guestfs_with_http_info(**kwargs) + return data + + def v1_guestfs_with_http_info(self, **kwargs): + """ + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_guestfs_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1_guestfs" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/guestfs', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1_guestosinfo(self, name, namespace, **kwargs): """ Get guest agent os information @@ -11351,6 +11441,96 @@ def v1alpha3_get_sub_api_group_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1alpha3_guestfs(self, **kwargs): + """ + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_guestfs(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3_guestfs_with_http_info(**kwargs) + else: + (data) = self.v1alpha3_guestfs_with_http_info(**kwargs) + return data + + def v1alpha3_guestfs_with_http_info(self, **kwargs): + """ + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_guestfs_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3_guestfs" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/guestfs', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1alpha3_guestosinfo(self, name, namespace, **kwargs): """ Get guest agent os information diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c8804043..1d09a6ef 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.43.0-rc.0-14-g535428365".\ + "SDK Package Version: v0.43.0-rc.0-80-g853ae53a6".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index f1052faa..4c20b405 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.43.0-rc.0-14-g535428365" +VERSION = "v0.43.0-rc.0-80-g853ae53a6" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 995b00b5..28d24e9d 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.43.0-rc.0-14-g535428365" +"packageVersion": "v0.43.0-rc.0-80-g853ae53a6" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 0d9bd38c..cae1c3ba 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -692,6 +692,14 @@ def test_v1_filesystemlist(self): Test case for v1_filesystemlist + """ + pass + + def test_v1_guestfs(self): + """ + Test case for v1_guestfs + + """ pass @@ -812,6 +820,14 @@ def test_v1alpha3_get_sub_api_group(self): Test case for v1alpha3_get_sub_api_group + """ + pass + + def test_v1alpha3_guestfs(self): + """ + Test case for v1alpha3_guestfs + + """ pass From 49467a8ba1c28098d2864cebf7f48e0b656f4604 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Sat, 10 Jul 2021 15:47:41 +0000 Subject: [PATCH 209/521] Client Python update by KubeVirt Prow build 1413879636441436160 --- README.md | 10 +- docs/DefaultApi.md | 416 ++++++++++++ git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 1182 ++++++++++++++++++++++++++++++---- kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 64 ++ 9 files changed, 1539 insertions(+), 143 deletions(-) diff --git a/README.md b/README.md index c9343ccb..0eb6d117 100644 --- a/README.md +++ b/README.md @@ -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: v0.43.0-rc.0-80-g853ae53a6 +- Package version: v0.43.0-rc.0-96-g30dcd36a2 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -183,13 +183,21 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3_vnc**](docs/DefaultApi.md#v1alpha3_vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | *DefaultApi* | [**v1alpha3get_api_sub_resources**](docs/DefaultApi.md#v1alpha3get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1alpha3/ | *DefaultApi* | [**v1alpha3vm_addvolume**](docs/DefaultApi.md#v1alpha3vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | +*DefaultApi* | [**v1alpha3vm_port_forward**](docs/DefaultApi.md#v1alpha3vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | +*DefaultApi* | [**v1alpha3vm_port_forward_with_protocol**](docs/DefaultApi.md#v1alpha3vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | *DefaultApi* | [**v1alpha3vm_removevolume**](docs/DefaultApi.md#v1alpha3vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | *DefaultApi* | [**v1alpha3vmi_addvolume**](docs/DefaultApi.md#v1alpha3vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | +*DefaultApi* | [**v1alpha3vmi_port_forward**](docs/DefaultApi.md#v1alpha3vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | +*DefaultApi* | [**v1alpha3vmi_port_forward_with_protocol**](docs/DefaultApi.md#v1alpha3vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | *DefaultApi* | [**v1alpha3vmi_removevolume**](docs/DefaultApi.md#v1alpha3vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | *DefaultApi* | [**v1get_api_sub_resources**](docs/DefaultApi.md#v1get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1/ | *DefaultApi* | [**v1vm_addvolume**](docs/DefaultApi.md#v1vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | +*DefaultApi* | [**v1vm_port_forward**](docs/DefaultApi.md#v1vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | +*DefaultApi* | [**v1vm_port_forward_with_protocol**](docs/DefaultApi.md#v1vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | *DefaultApi* | [**v1vm_removevolume**](docs/DefaultApi.md#v1vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | *DefaultApi* | [**v1vmi_addvolume**](docs/DefaultApi.md#v1vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | +*DefaultApi* | [**v1vmi_port_forward**](docs/DefaultApi.md#v1vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | +*DefaultApi* | [**v1vmi_port_forward_with_protocol**](docs/DefaultApi.md#v1vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | *DefaultApi* | [**v1vmi_removevolume**](docs/DefaultApi.md#v1vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | *DefaultApi* | [**watch_kube_virt_list_for_all_namespaces**](docs/DefaultApi.md#watch_kube_virt_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/kubevirt | *DefaultApi* | [**watch_namespaced_kube_virt**](docs/DefaultApi.md#watch_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 535b9566..f14969db 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -117,13 +117,21 @@ Method | HTTP request | Description [**v1alpha3_vnc**](DefaultApi.md#v1alpha3_vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | [**v1alpha3get_api_sub_resources**](DefaultApi.md#v1alpha3get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1alpha3/ | [**v1alpha3vm_addvolume**](DefaultApi.md#v1alpha3vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | +[**v1alpha3vm_port_forward**](DefaultApi.md#v1alpha3vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | +[**v1alpha3vm_port_forward_with_protocol**](DefaultApi.md#v1alpha3vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | [**v1alpha3vm_removevolume**](DefaultApi.md#v1alpha3vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | [**v1alpha3vmi_addvolume**](DefaultApi.md#v1alpha3vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | +[**v1alpha3vmi_port_forward**](DefaultApi.md#v1alpha3vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | +[**v1alpha3vmi_port_forward_with_protocol**](DefaultApi.md#v1alpha3vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | [**v1alpha3vmi_removevolume**](DefaultApi.md#v1alpha3vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | [**v1get_api_sub_resources**](DefaultApi.md#v1get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1/ | [**v1vm_addvolume**](DefaultApi.md#v1vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | +[**v1vm_port_forward**](DefaultApi.md#v1vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | +[**v1vm_port_forward_with_protocol**](DefaultApi.md#v1vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | [**v1vm_removevolume**](DefaultApi.md#v1vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | [**v1vmi_addvolume**](DefaultApi.md#v1vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | +[**v1vmi_port_forward**](DefaultApi.md#v1vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | +[**v1vmi_port_forward_with_protocol**](DefaultApi.md#v1vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | [**v1vmi_removevolume**](DefaultApi.md#v1vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | [**watch_kube_virt_list_for_all_namespaces**](DefaultApi.md#watch_kube_virt_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/kubevirt | [**watch_namespaced_kube_virt**](DefaultApi.md#watch_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | @@ -6038,6 +6046,108 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3vm_port_forward** +> v1alpha3vm_port_forward(name, namespace, port) + + + +Open a websocket connection forwarding traffic to the running VMI for the specified VirtualMachine and port. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +port = 'port_example' # str | The target port for portforward on the VirtualMachineInstance. + +try: + api_instance.v1alpha3vm_port_forward(name, namespace, port) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3vm_port_forward: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **port** | **str**| The target port for portforward on the VirtualMachineInstance. | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1alpha3vm_port_forward_with_protocol** +> v1alpha3vm_port_forward_with_protocol(name, namespace, port, protocol) + + + +Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachine and port. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +port = 'port_example' # str | The target port for portforward on the VirtualMachineInstance. +protocol = 'protocol_example' # str | The protocol for portforward on the VirtualMachineInstance. + +try: + api_instance.v1alpha3vm_port_forward_with_protocol(name, namespace, port, protocol) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3vm_port_forward_with_protocol: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **port** | **str**| The target port for portforward on the VirtualMachineInstance. | + **protocol** | **str**| The protocol for portforward on the VirtualMachineInstance. | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3vm_removevolume** > str v1alpha3vm_removevolume(name, namespace, body) @@ -6140,6 +6250,108 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3vmi_port_forward** +> v1alpha3vmi_port_forward(name, namespace, port) + + + +Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +port = 'port_example' # str | The target port for portforward on the VirtualMachineInstance. + +try: + api_instance.v1alpha3vmi_port_forward(name, namespace, port) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3vmi_port_forward: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **port** | **str**| The target port for portforward on the VirtualMachineInstance. | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1alpha3vmi_port_forward_with_protocol** +> v1alpha3vmi_port_forward_with_protocol(name, namespace, port, protocol) + + + +Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachineInstance and port. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +port = 'port_example' # str | The target port for portforward on the VirtualMachineInstance. +protocol = 'protocol_example' # str | The protocol for portforward on the VirtualMachineInstance. + +try: + api_instance.v1alpha3vmi_port_forward_with_protocol(name, namespace, port, protocol) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3vmi_port_forward_with_protocol: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **port** | **str**| The target port for portforward on the VirtualMachineInstance. | + **protocol** | **str**| The protocol for portforward on the VirtualMachineInstance. | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3vmi_removevolume** > str v1alpha3vmi_removevolume(name, namespace, body) @@ -6285,6 +6497,108 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1vm_port_forward** +> v1vm_port_forward(name, namespace, port) + + + +Open a websocket connection forwarding traffic to the running VMI for the specified VirtualMachine and port. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +port = 'port_example' # str | The target port for portforward on the VirtualMachineInstance. + +try: + api_instance.v1vm_port_forward(name, namespace, port) +except ApiException as e: + print("Exception when calling DefaultApi->v1vm_port_forward: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **port** | **str**| The target port for portforward on the VirtualMachineInstance. | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1vm_port_forward_with_protocol** +> v1vm_port_forward_with_protocol(name, namespace, port, protocol) + + + +Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachine and port. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +port = 'port_example' # str | The target port for portforward on the VirtualMachineInstance. +protocol = 'protocol_example' # str | The protocol for portforward on the VirtualMachineInstance. + +try: + api_instance.v1vm_port_forward_with_protocol(name, namespace, port, protocol) +except ApiException as e: + print("Exception when calling DefaultApi->v1vm_port_forward_with_protocol: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **port** | **str**| The target port for portforward on the VirtualMachineInstance. | + **protocol** | **str**| The protocol for portforward on the VirtualMachineInstance. | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1vm_removevolume** > str v1vm_removevolume(name, namespace, body) @@ -6387,6 +6701,108 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1vmi_port_forward** +> v1vmi_port_forward(name, namespace, port) + + + +Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +port = 'port_example' # str | The target port for portforward on the VirtualMachineInstance. + +try: + api_instance.v1vmi_port_forward(name, namespace, port) +except ApiException as e: + print("Exception when calling DefaultApi->v1vmi_port_forward: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **port** | **str**| The target port for portforward on the VirtualMachineInstance. | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1vmi_port_forward_with_protocol** +> v1vmi_port_forward_with_protocol(name, namespace, port, protocol) + + + +Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachineInstance and port. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +port = 'port_example' # str | The target port for portforward on the VirtualMachineInstance. +protocol = 'protocol_example' # str | The protocol for portforward on the VirtualMachineInstance. + +try: + api_instance.v1vmi_port_forward_with_protocol(name, namespace, port, protocol) +except ApiException as e: + print("Exception when calling DefaultApi->v1vmi_port_forward_with_protocol: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **port** | **str**| The target port for portforward on the VirtualMachineInstance. | + **protocol** | **str**| The protocol for portforward on the VirtualMachineInstance. | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1vmi_removevolume** > str v1vmi_removevolume(name, namespace, body) diff --git a/git_push.sh b/git_push.sh index d2611665..6f9db055 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.43.0-rc.0-80-g853ae53a6" + release_note="Auto-generated client v0.43.0-rc.0-96-g30dcd36a2" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index d1dfc5fe..beacb046 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.43.0-rc.0-80-g853ae53a6/python' + self.user_agent = 'Swagger-Codegen/v0.43.0-rc.0-96-g30dcd36a2/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 7af55043..d28a0926 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -12862,49 +12862,925 @@ def v1alpha3vm_addvolume_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1alpha3vm_port_forward(self, name, namespace, port, **kwargs): + """ + Open a websocket connection forwarding traffic to the running VMI for the specified VirtualMachine and port. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vm_port_forward(name, namespace, port, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str port: The target port for portforward on the VirtualMachineInstance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3vm_port_forward_with_http_info(name, namespace, port, **kwargs) + else: + (data) = self.v1alpha3vm_port_forward_with_http_info(name, namespace, port, **kwargs) + return data + + def v1alpha3vm_port_forward_with_http_info(self, name, namespace, port, **kwargs): + """ + Open a websocket connection forwarding traffic to the running VMI for the specified VirtualMachine and port. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vm_port_forward_with_http_info(name, namespace, port, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str port: The target port for portforward on the VirtualMachineInstance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'port'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3vm_port_forward" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vm_port_forward`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vm_port_forward`") + # verify the required parameter 'port' is set + if ('port' not in params) or (params['port'] is None): + raise ValueError("Missing the required parameter `port` when calling `v1alpha3vm_port_forward`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'port' in params: + path_params['port'] = params['port'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def v1alpha3vm_port_forward_with_protocol(self, name, namespace, port, protocol, **kwargs): + """ + Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachine and port. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vm_port_forward_with_protocol(name, namespace, port, protocol, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str port: The target port for portforward on the VirtualMachineInstance. (required) + :param str protocol: The protocol for portforward on the VirtualMachineInstance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3vm_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, **kwargs) + else: + (data) = self.v1alpha3vm_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, **kwargs) + return data + + def v1alpha3vm_port_forward_with_protocol_with_http_info(self, name, namespace, port, protocol, **kwargs): + """ + Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachine and port. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vm_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str port: The target port for portforward on the VirtualMachineInstance. (required) + :param str protocol: The protocol for portforward on the VirtualMachineInstance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'port', 'protocol'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3vm_port_forward_with_protocol" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vm_port_forward_with_protocol`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vm_port_forward_with_protocol`") + # verify the required parameter 'port' is set + if ('port' not in params) or (params['port'] is None): + raise ValueError("Missing the required parameter `port` when calling `v1alpha3vm_port_forward_with_protocol`") + # verify the required parameter 'protocol' is set + if ('protocol' not in params) or (params['protocol'] is None): + raise ValueError("Missing the required parameter `protocol` when calling `v1alpha3vm_port_forward_with_protocol`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'port' in params: + path_params['port'] = params['port'] + if 'protocol' in params: + path_params['protocol'] = params['protocol'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1alpha3vm_removevolume(self, name, namespace, body, **kwargs): """ - Removes a volume and disk from a running Virtual Machine. + Removes a volume and disk from a running Virtual Machine. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vm_removevolume(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1RemoveVolumeOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3vm_removevolume_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1alpha3vm_removevolume_with_http_info(name, namespace, body, **kwargs) + return data + + def v1alpha3vm_removevolume_with_http_info(self, name, namespace, body, **kwargs): + """ + Removes a volume and disk from a running Virtual Machine. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vm_removevolume_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1RemoveVolumeOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3vm_removevolume" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vm_removevolume`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vm_removevolume`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3vm_removevolume`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def v1alpha3vmi_addvolume(self, name, namespace, body, **kwargs): + """ + Add a volume and disk to a running Virtual Machine Instance + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vmi_addvolume(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1AddVolumeOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3vmi_addvolume_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1alpha3vmi_addvolume_with_http_info(name, namespace, body, **kwargs) + return data + + def v1alpha3vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): + """ + Add a volume and disk to a running Virtual Machine Instance + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vmi_addvolume_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1AddVolumeOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3vmi_addvolume" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vmi_addvolume`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vmi_addvolume`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3vmi_addvolume`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def v1alpha3vmi_port_forward(self, name, namespace, port, **kwargs): + """ + Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vmi_port_forward(name, namespace, port, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str port: The target port for portforward on the VirtualMachineInstance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3vmi_port_forward_with_http_info(name, namespace, port, **kwargs) + else: + (data) = self.v1alpha3vmi_port_forward_with_http_info(name, namespace, port, **kwargs) + return data + + def v1alpha3vmi_port_forward_with_http_info(self, name, namespace, port, **kwargs): + """ + Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vmi_port_forward_with_http_info(name, namespace, port, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str port: The target port for portforward on the VirtualMachineInstance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'port'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3vmi_port_forward" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vmi_port_forward`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vmi_port_forward`") + # verify the required parameter 'port' is set + if ('port' not in params) or (params['port'] is None): + raise ValueError("Missing the required parameter `port` when calling `v1alpha3vmi_port_forward`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'port' in params: + path_params['port'] = params['port'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def v1alpha3vmi_port_forward_with_protocol(self, name, namespace, port, protocol, **kwargs): + """ + Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachineInstance and port. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vmi_port_forward_with_protocol(name, namespace, port, protocol, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str port: The target port for portforward on the VirtualMachineInstance. (required) + :param str protocol: The protocol for portforward on the VirtualMachineInstance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3vmi_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, **kwargs) + else: + (data) = self.v1alpha3vmi_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, **kwargs) + return data + + def v1alpha3vmi_port_forward_with_protocol_with_http_info(self, name, namespace, port, protocol, **kwargs): + """ + Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachineInstance and port. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vmi_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str port: The target port for portforward on the VirtualMachineInstance. (required) + :param str protocol: The protocol for portforward on the VirtualMachineInstance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'port', 'protocol'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3vmi_port_forward_with_protocol" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vmi_port_forward_with_protocol`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vmi_port_forward_with_protocol`") + # verify the required parameter 'port' is set + if ('port' not in params) or (params['port'] is None): + raise ValueError("Missing the required parameter `port` when calling `v1alpha3vmi_port_forward_with_protocol`") + # verify the required parameter 'protocol' is set + if ('protocol' not in params) or (params['protocol'] is None): + raise ValueError("Missing the required parameter `protocol` when calling `v1alpha3vmi_port_forward_with_protocol`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'port' in params: + path_params['port'] = params['port'] + if 'protocol' in params: + path_params['protocol'] = params['protocol'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def v1alpha3vmi_removevolume(self, name, namespace, body, **kwargs): + """ + Removes a volume and disk from a running Virtual Machine Instance + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vmi_removevolume(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1RemoveVolumeOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3vmi_removevolume_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1alpha3vmi_removevolume_with_http_info(name, namespace, body, **kwargs) + return data + + def v1alpha3vmi_removevolume_with_http_info(self, name, namespace, body, **kwargs): + """ + Removes a volume and disk from a running Virtual Machine Instance + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vmi_removevolume_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1RemoveVolumeOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3vmi_removevolume" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vmi_removevolume`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vmi_removevolume`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3vmi_removevolume`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def v1get_api_sub_resources(self, **kwargs): + """ + Get a KubeVirt API resources + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1get_api_sub_resources(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1get_api_sub_resources_with_http_info(**kwargs) + else: + (data) = self.v1get_api_sub_resources_with_http_info(**kwargs) + return data + + def v1get_api_sub_resources_with_http_info(self, **kwargs): + """ + Get a KubeVirt API resources + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1get_api_sub_resources_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1get_api_sub_resources" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1APIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def v1vm_addvolume(self, name, namespace, body, **kwargs): + """ + Add a volume and disk to a running Virtual Machine. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vm_removevolume(name, namespace, body, callback=callback_function) + >>> thread = api.v1vm_addvolume(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RemoveVolumeOptions body: (required) + :param V1AddVolumeOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3vm_removevolume_with_http_info(name, namespace, body, **kwargs) + return self.v1vm_addvolume_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1alpha3vm_removevolume_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1vm_addvolume_with_http_info(name, namespace, body, **kwargs) return data - def v1alpha3vm_removevolume_with_http_info(self, name, namespace, body, **kwargs): + def v1vm_addvolume_with_http_info(self, name, namespace, body, **kwargs): """ - Removes a volume and disk from a running Virtual Machine. + Add a volume and disk to a running Virtual Machine. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vm_removevolume_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1vm_addvolume_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RemoveVolumeOptions body: (required) + :param V1AddVolumeOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. @@ -12921,19 +13797,19 @@ def v1alpha3vm_removevolume_with_http_info(self, name, namespace, body, **kwargs if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3vm_removevolume" % key + " to method v1vm_addvolume" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3vm_removevolume`") + raise ValueError("Missing the required parameter `name` when calling `v1vm_addvolume`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vm_removevolume`") + raise ValueError("Missing the required parameter `namespace` when calling `v1vm_addvolume`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1alpha3vm_removevolume`") + raise ValueError("Missing the required parameter `body` when calling `v1vm_addvolume`") collection_formats = {} @@ -12957,7 +13833,7 @@ def v1alpha3vm_removevolume_with_http_info(self, name, namespace, body, **kwargs # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume', 'PUT', path_params, query_params, header_params, @@ -12972,55 +13848,55 @@ def v1alpha3vm_removevolume_with_http_info(self, name, namespace, body, **kwargs _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3vmi_addvolume(self, name, namespace, body, **kwargs): + def v1vm_port_forward(self, name, namespace, port, **kwargs): """ - Add a volume and disk to a running Virtual Machine Instance + Open a websocket connection forwarding traffic to the running VMI for the specified VirtualMachine and port. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vmi_addvolume(name, namespace, body, callback=callback_function) + >>> thread = api.v1vm_port_forward(name, namespace, port, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1AddVolumeOptions body: (required) - :return: str + :param str port: The target port for portforward on the VirtualMachineInstance. (required) + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3vmi_addvolume_with_http_info(name, namespace, body, **kwargs) + return self.v1vm_port_forward_with_http_info(name, namespace, port, **kwargs) else: - (data) = self.v1alpha3vmi_addvolume_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1vm_port_forward_with_http_info(name, namespace, port, **kwargs) return data - def v1alpha3vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): + def v1vm_port_forward_with_http_info(self, name, namespace, port, **kwargs): """ - Add a volume and disk to a running Virtual Machine Instance + Open a websocket connection forwarding traffic to the running VMI for the specified VirtualMachine and port. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vmi_addvolume_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1vm_port_forward_with_http_info(name, namespace, port, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1AddVolumeOptions body: (required) - :return: str + :param str port: The target port for portforward on the VirtualMachineInstance. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace', 'port'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -13031,19 +13907,19 @@ def v1alpha3vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3vmi_addvolume" % key + " to method v1vm_port_forward" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3vmi_addvolume`") + raise ValueError("Missing the required parameter `name` when calling `v1vm_port_forward`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vmi_addvolume`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1alpha3vmi_addvolume`") + raise ValueError("Missing the required parameter `namespace` when calling `v1vm_port_forward`") + # verify the required parameter 'port' is set + if ('port' not in params) or (params['port'] is None): + raise ValueError("Missing the required parameter `port` when calling `v1vm_port_forward`") collection_formats = {} @@ -13053,6 +13929,8 @@ def v1alpha3vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] + if 'port' in params: + path_params['port'] = params['port'] query_params = [] @@ -13062,19 +13940,17 @@ def v1alpha3vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13082,55 +13958,57 @@ def v1alpha3vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3vmi_removevolume(self, name, namespace, body, **kwargs): + def v1vm_port_forward_with_protocol(self, name, namespace, port, protocol, **kwargs): """ - Removes a volume and disk from a running Virtual Machine Instance + Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachine and port. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vmi_removevolume(name, namespace, body, callback=callback_function) + >>> thread = api.v1vm_port_forward_with_protocol(name, namespace, port, protocol, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RemoveVolumeOptions body: (required) - :return: str + :param str port: The target port for portforward on the VirtualMachineInstance. (required) + :param str protocol: The protocol for portforward on the VirtualMachineInstance. (required) + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3vmi_removevolume_with_http_info(name, namespace, body, **kwargs) + return self.v1vm_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, **kwargs) else: - (data) = self.v1alpha3vmi_removevolume_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1vm_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, **kwargs) return data - def v1alpha3vmi_removevolume_with_http_info(self, name, namespace, body, **kwargs): + def v1vm_port_forward_with_protocol_with_http_info(self, name, namespace, port, protocol, **kwargs): """ - Removes a volume and disk from a running Virtual Machine Instance + Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachine and port. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vmi_removevolume_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1vm_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RemoveVolumeOptions body: (required) - :return: str + :param str port: The target port for portforward on the VirtualMachineInstance. (required) + :param str protocol: The protocol for portforward on the VirtualMachineInstance. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace', 'port', 'protocol'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -13141,19 +14019,22 @@ def v1alpha3vmi_removevolume_with_http_info(self, name, namespace, body, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3vmi_removevolume" % key + " to method v1vm_port_forward_with_protocol" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3vmi_removevolume`") + raise ValueError("Missing the required parameter `name` when calling `v1vm_port_forward_with_protocol`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vmi_removevolume`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1alpha3vmi_removevolume`") + raise ValueError("Missing the required parameter `namespace` when calling `v1vm_port_forward_with_protocol`") + # verify the required parameter 'port' is set + if ('port' not in params) or (params['port'] is None): + raise ValueError("Missing the required parameter `port` when calling `v1vm_port_forward_with_protocol`") + # verify the required parameter 'protocol' is set + if ('protocol' not in params) or (params['protocol'] is None): + raise ValueError("Missing the required parameter `protocol` when calling `v1vm_port_forward_with_protocol`") collection_formats = {} @@ -13163,6 +14044,10 @@ def v1alpha3vmi_removevolume_with_http_info(self, name, namespace, body, **kwarg path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] + if 'port' in params: + path_params['port'] = params['port'] + if 'protocol' in params: + path_params['protocol'] = params['protocol'] query_params = [] @@ -13172,19 +14057,17 @@ def v1alpha3vmi_removevolume_with_http_info(self, name, namespace, body, **kwarg local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13192,49 +14075,55 @@ def v1alpha3vmi_removevolume_with_http_info(self, name, namespace, body, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1get_api_sub_resources(self, **kwargs): + def v1vm_removevolume(self, name, namespace, body, **kwargs): """ - Get a KubeVirt API resources + Removes a volume and disk from a running Virtual Machine. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1get_api_sub_resources(callback=callback_function) + >>> thread = api.v1vm_removevolume(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1APIResourceList + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1RemoveVolumeOptions body: (required) + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1get_api_sub_resources_with_http_info(**kwargs) + return self.v1vm_removevolume_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1get_api_sub_resources_with_http_info(**kwargs) + (data) = self.v1vm_removevolume_with_http_info(name, namespace, body, **kwargs) return data - def v1get_api_sub_resources_with_http_info(self, **kwargs): + def v1vm_removevolume_with_http_info(self, name, namespace, body, **kwargs): """ - Get a KubeVirt API resources + Removes a volume and disk from a running Virtual Machine. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1get_api_sub_resources_with_http_info(callback=callback_function) + >>> thread = api.v1vm_removevolume_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1APIResourceList + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1RemoveVolumeOptions body: (required) + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -13245,14 +14134,28 @@ def v1get_api_sub_resources_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1get_api_sub_resources" % key + " to method v1vm_removevolume" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1vm_removevolume`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1vm_removevolume`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1vm_removevolume`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -13262,21 +14165,19 @@ def v1get_api_sub_resources_with_http_info(self, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='K8sIoApimachineryPkgApisMetaV1APIResourceList', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13284,16 +14185,16 @@ def v1get_api_sub_resources_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1vm_addvolume(self, name, namespace, body, **kwargs): + def v1vmi_addvolume(self, name, namespace, body, **kwargs): """ - Add a volume and disk to a running Virtual Machine. + Add a volume and disk to a running Virtual Machine Instance This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vm_addvolume(name, namespace, body, callback=callback_function) + >>> thread = api.v1vmi_addvolume(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -13306,21 +14207,21 @@ def v1vm_addvolume(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1vm_addvolume_with_http_info(name, namespace, body, **kwargs) + return self.v1vmi_addvolume_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1vm_addvolume_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1vmi_addvolume_with_http_info(name, namespace, body, **kwargs) return data - def v1vm_addvolume_with_http_info(self, name, namespace, body, **kwargs): + def v1vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): """ - Add a volume and disk to a running Virtual Machine. + Add a volume and disk to a running Virtual Machine Instance This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vm_addvolume_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1vmi_addvolume_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -13343,19 +14244,19 @@ def v1vm_addvolume_with_http_info(self, name, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1vm_addvolume" % key + " to method v1vmi_addvolume" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1vm_addvolume`") + raise ValueError("Missing the required parameter `name` when calling `v1vmi_addvolume`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1vm_addvolume`") + raise ValueError("Missing the required parameter `namespace` when calling `v1vmi_addvolume`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1vm_addvolume`") + raise ValueError("Missing the required parameter `body` when calling `v1vmi_addvolume`") collection_formats = {} @@ -13379,7 +14280,7 @@ def v1vm_addvolume_with_http_info(self, name, namespace, body, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume', 'PUT', path_params, query_params, header_params, @@ -13394,55 +14295,55 @@ def v1vm_addvolume_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1vm_removevolume(self, name, namespace, body, **kwargs): + def v1vmi_port_forward(self, name, namespace, port, **kwargs): """ - Removes a volume and disk from a running Virtual Machine. + Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vm_removevolume(name, namespace, body, callback=callback_function) + >>> thread = api.v1vmi_port_forward(name, namespace, port, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RemoveVolumeOptions body: (required) - :return: str + :param str port: The target port for portforward on the VirtualMachineInstance. (required) + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1vm_removevolume_with_http_info(name, namespace, body, **kwargs) + return self.v1vmi_port_forward_with_http_info(name, namespace, port, **kwargs) else: - (data) = self.v1vm_removevolume_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1vmi_port_forward_with_http_info(name, namespace, port, **kwargs) return data - def v1vm_removevolume_with_http_info(self, name, namespace, body, **kwargs): + def v1vmi_port_forward_with_http_info(self, name, namespace, port, **kwargs): """ - Removes a volume and disk from a running Virtual Machine. + Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vm_removevolume_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1vmi_port_forward_with_http_info(name, namespace, port, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RemoveVolumeOptions body: (required) - :return: str + :param str port: The target port for portforward on the VirtualMachineInstance. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace', 'port'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -13453,19 +14354,19 @@ def v1vm_removevolume_with_http_info(self, name, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1vm_removevolume" % key + " to method v1vmi_port_forward" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1vm_removevolume`") + raise ValueError("Missing the required parameter `name` when calling `v1vmi_port_forward`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1vm_removevolume`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1vm_removevolume`") + raise ValueError("Missing the required parameter `namespace` when calling `v1vmi_port_forward`") + # verify the required parameter 'port' is set + if ('port' not in params) or (params['port'] is None): + raise ValueError("Missing the required parameter `port` when calling `v1vmi_port_forward`") collection_formats = {} @@ -13475,6 +14376,8 @@ def v1vm_removevolume_with_http_info(self, name, namespace, body, **kwargs): path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] + if 'port' in params: + path_params['port'] = params['port'] query_params = [] @@ -13484,19 +14387,17 @@ def v1vm_removevolume_with_http_info(self, name, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13504,55 +14405,57 @@ def v1vm_removevolume_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1vmi_addvolume(self, name, namespace, body, **kwargs): + def v1vmi_port_forward_with_protocol(self, name, namespace, port, protocol, **kwargs): """ - Add a volume and disk to a running Virtual Machine Instance + Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachineInstance and port. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vmi_addvolume(name, namespace, body, callback=callback_function) + >>> thread = api.v1vmi_port_forward_with_protocol(name, namespace, port, protocol, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1AddVolumeOptions body: (required) - :return: str + :param str port: The target port for portforward on the VirtualMachineInstance. (required) + :param str protocol: The protocol for portforward on the VirtualMachineInstance. (required) + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1vmi_addvolume_with_http_info(name, namespace, body, **kwargs) + return self.v1vmi_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, **kwargs) else: - (data) = self.v1vmi_addvolume_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1vmi_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, **kwargs) return data - def v1vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): + def v1vmi_port_forward_with_protocol_with_http_info(self, name, namespace, port, protocol, **kwargs): """ - Add a volume and disk to a running Virtual Machine Instance + Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachineInstance and port. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vmi_addvolume_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1vmi_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1AddVolumeOptions body: (required) - :return: str + :param str port: The target port for portforward on the VirtualMachineInstance. (required) + :param str protocol: The protocol for portforward on the VirtualMachineInstance. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace', 'port', 'protocol'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -13563,19 +14466,22 @@ def v1vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1vmi_addvolume" % key + " to method v1vmi_port_forward_with_protocol" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1vmi_addvolume`") + raise ValueError("Missing the required parameter `name` when calling `v1vmi_port_forward_with_protocol`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1vmi_addvolume`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1vmi_addvolume`") + raise ValueError("Missing the required parameter `namespace` when calling `v1vmi_port_forward_with_protocol`") + # verify the required parameter 'port' is set + if ('port' not in params) or (params['port'] is None): + raise ValueError("Missing the required parameter `port` when calling `v1vmi_port_forward_with_protocol`") + # verify the required parameter 'protocol' is set + if ('protocol' not in params) or (params['protocol'] is None): + raise ValueError("Missing the required parameter `protocol` when calling `v1vmi_port_forward_with_protocol`") collection_formats = {} @@ -13585,6 +14491,10 @@ def v1vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] + if 'port' in params: + path_params['port'] = params['port'] + if 'protocol' in params: + path_params['protocol'] = params['protocol'] query_params = [] @@ -13594,19 +14504,17 @@ def v1vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 1d09a6ef..8e2342c9 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.43.0-rc.0-80-g853ae53a6".\ + "SDK Package Version: v0.43.0-rc.0-96-g30dcd36a2".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index 4c20b405..a8703884 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.43.0-rc.0-80-g853ae53a6" +VERSION = "v0.43.0-rc.0-96-g30dcd36a2" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 28d24e9d..992b0677 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.43.0-rc.0-80-g853ae53a6" +"packageVersion": "v0.43.0-rc.0-96-g30dcd36a2" } diff --git a/test/test_default_api.py b/test/test_default_api.py index cae1c3ba..ef00c77b 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -932,6 +932,22 @@ def test_v1alpha3vm_addvolume(self): Test case for v1alpha3vm_addvolume + """ + pass + + def test_v1alpha3vm_port_forward(self): + """ + Test case for v1alpha3vm_port_forward + + + """ + pass + + def test_v1alpha3vm_port_forward_with_protocol(self): + """ + Test case for v1alpha3vm_port_forward_with_protocol + + """ pass @@ -948,6 +964,22 @@ def test_v1alpha3vmi_addvolume(self): Test case for v1alpha3vmi_addvolume + """ + pass + + def test_v1alpha3vmi_port_forward(self): + """ + Test case for v1alpha3vmi_port_forward + + + """ + pass + + def test_v1alpha3vmi_port_forward_with_protocol(self): + """ + Test case for v1alpha3vmi_port_forward_with_protocol + + """ pass @@ -972,6 +1004,22 @@ def test_v1vm_addvolume(self): Test case for v1vm_addvolume + """ + pass + + def test_v1vm_port_forward(self): + """ + Test case for v1vm_port_forward + + + """ + pass + + def test_v1vm_port_forward_with_protocol(self): + """ + Test case for v1vm_port_forward_with_protocol + + """ pass @@ -988,6 +1036,22 @@ def test_v1vmi_addvolume(self): Test case for v1vmi_addvolume + """ + pass + + def test_v1vmi_port_forward(self): + """ + Test case for v1vmi_port_forward + + + """ + pass + + def test_v1vmi_port_forward_with_protocol(self): + """ + Test case for v1vmi_port_forward_with_protocol + + """ pass From 9321df3e5358979408ce9fd4e745be1defdafcdc Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 16 Jul 2021 08:19:20 +0000 Subject: [PATCH 210/521] Client Python update by KubeVirt Prow build 1415941173687619584 --- README.md | 3 +- docs/V1DeveloperConfiguration.md | 1 + docs/V1DiskVerification.md | 10 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_developer_configuration.py | 28 +++- kubevirt/models/v1_disk_verification.py | 124 ++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_disk_verification.py | 44 +++++++ 14 files changed, 218 insertions(+), 7 deletions(-) create mode 100644 docs/V1DiskVerification.md create mode 100644 kubevirt/models/v1_disk_verification.py create mode 100644 test/test_v1_disk_verification.py diff --git a/README.md b/README.md index 0eb6d117..3978f2dd 100644 --- a/README.md +++ b/README.md @@ -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: v0.43.0-rc.0-96-g30dcd36a2 +- Package version: v0.43.0-rc.0-186-gb6f68fb91 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -303,6 +303,7 @@ Class | Method | HTTP request | Description - [V1Devices](docs/V1Devices.md) - [V1Disk](docs/V1Disk.md) - [V1DiskTarget](docs/V1DiskTarget.md) + - [V1DiskVerification](docs/V1DiskVerification.md) - [V1DomainSpec](docs/V1DomainSpec.md) - [V1DownwardAPIVolumeSource](docs/V1DownwardAPIVolumeSource.md) - [V1DownwardMetricsVolumeSource](docs/V1DownwardMetricsVolumeSource.md) diff --git a/docs/V1DeveloperConfiguration.md b/docs/V1DeveloperConfiguration.md index 82601af2..bcb7fafe 100644 --- a/docs/V1DeveloperConfiguration.md +++ b/docs/V1DeveloperConfiguration.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cpu_allocation_ratio** | **int** | | [optional] +**disk_verification** | [**V1DiskVerification**](V1DiskVerification.md) | | [optional] **feature_gates** | **list[str]** | | [optional] **log_verbosity** | [**V1LogVerbosity**](V1LogVerbosity.md) | | [optional] **memory_overcommit** | **int** | | [optional] diff --git a/docs/V1DiskVerification.md b/docs/V1DiskVerification.md new file mode 100644 index 00000000..7ee77868 --- /dev/null +++ b/docs/V1DiskVerification.md @@ -0,0 +1,10 @@ +# V1DiskVerification + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**memory_limit** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 6f9db055..1387504f 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.43.0-rc.0-96-g30dcd36a2" + release_note="Auto-generated client v0.43.0-rc.0-186-gb6f68fb91" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 08c1eeaf..7fb86177 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -265,6 +265,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_disk_target.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_disk_target.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DiskTarget.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_disk_verification.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_disk_verification.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DiskVerification.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_domain_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_domain_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DomainSpec.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index f2e7f482..7d9d6ea8 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -96,6 +96,7 @@ from .models.v1_devices import V1Devices from .models.v1_disk import V1Disk from .models.v1_disk_target import V1DiskTarget +from .models.v1_disk_verification import V1DiskVerification from .models.v1_domain_spec import V1DomainSpec from .models.v1_downward_api_volume_source import V1DownwardAPIVolumeSource from .models.v1_downward_metrics_volume_source import V1DownwardMetricsVolumeSource diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index beacb046..bc29db86 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.43.0-rc.0-96-g30dcd36a2/python' + self.user_agent = 'Swagger-Codegen/v0.43.0-rc.0-186-gb6f68fb91/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 8e2342c9..29fcaf37 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.43.0-rc.0-96-g30dcd36a2".\ + "SDK Package Version: v0.43.0-rc.0-186-gb6f68fb91".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 1b688390..37a93092 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -96,6 +96,7 @@ from .v1_devices import V1Devices from .v1_disk import V1Disk from .v1_disk_target import V1DiskTarget +from .v1_disk_verification import V1DiskVerification from .v1_domain_spec import V1DomainSpec from .v1_downward_api_volume_source import V1DownwardAPIVolumeSource from .v1_downward_metrics_volume_source import V1DownwardMetricsVolumeSource diff --git a/kubevirt/models/v1_developer_configuration.py b/kubevirt/models/v1_developer_configuration.py index da2e8fdd..47b636e2 100644 --- a/kubevirt/models/v1_developer_configuration.py +++ b/kubevirt/models/v1_developer_configuration.py @@ -32,6 +32,7 @@ class V1DeveloperConfiguration(object): """ swagger_types = { 'cpu_allocation_ratio': 'int', + 'disk_verification': 'V1DiskVerification', 'feature_gates': 'list[str]', 'log_verbosity': 'V1LogVerbosity', 'memory_overcommit': 'int', @@ -44,6 +45,7 @@ class V1DeveloperConfiguration(object): attribute_map = { 'cpu_allocation_ratio': 'cpuAllocationRatio', + 'disk_verification': 'diskVerification', 'feature_gates': 'featureGates', 'log_verbosity': 'logVerbosity', 'memory_overcommit': 'memoryOvercommit', @@ -54,12 +56,13 @@ class V1DeveloperConfiguration(object): 'use_emulation': 'useEmulation' } - def __init__(self, cpu_allocation_ratio=None, feature_gates=None, log_verbosity=None, memory_overcommit=None, minimum_cluster_tsc_frequency=None, minimum_reserve_pvc_bytes=None, node_selectors=None, pvc_tolerate_less_space_up_to_percent=None, use_emulation=None): + def __init__(self, cpu_allocation_ratio=None, disk_verification=None, feature_gates=None, log_verbosity=None, memory_overcommit=None, minimum_cluster_tsc_frequency=None, minimum_reserve_pvc_bytes=None, node_selectors=None, pvc_tolerate_less_space_up_to_percent=None, use_emulation=None): """ V1DeveloperConfiguration - a model defined in Swagger """ self._cpu_allocation_ratio = None + self._disk_verification = None self._feature_gates = None self._log_verbosity = None self._memory_overcommit = None @@ -71,6 +74,8 @@ def __init__(self, cpu_allocation_ratio=None, feature_gates=None, log_verbosity= if cpu_allocation_ratio is not None: self.cpu_allocation_ratio = cpu_allocation_ratio + if disk_verification is not None: + self.disk_verification = disk_verification if feature_gates is not None: self.feature_gates = feature_gates if log_verbosity is not None: @@ -109,6 +114,27 @@ def cpu_allocation_ratio(self, cpu_allocation_ratio): self._cpu_allocation_ratio = cpu_allocation_ratio + @property + def disk_verification(self): + """ + Gets the disk_verification of this V1DeveloperConfiguration. + + :return: The disk_verification of this V1DeveloperConfiguration. + :rtype: V1DiskVerification + """ + return self._disk_verification + + @disk_verification.setter + def disk_verification(self, disk_verification): + """ + Sets the disk_verification of this V1DeveloperConfiguration. + + :param disk_verification: The disk_verification of this V1DeveloperConfiguration. + :type: V1DiskVerification + """ + + self._disk_verification = disk_verification + @property def feature_gates(self): """ diff --git a/kubevirt/models/v1_disk_verification.py b/kubevirt/models/v1_disk_verification.py new file mode 100644 index 00000000..342bb0a3 --- /dev/null +++ b/kubevirt/models/v1_disk_verification.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DiskVerification(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'memory_limit': 'K8sIoApimachineryPkgApiResourceQuantity' + } + + attribute_map = { + 'memory_limit': 'memoryLimit' + } + + def __init__(self, memory_limit=None): + """ + V1DiskVerification - a model defined in Swagger + """ + + self._memory_limit = None + + self.memory_limit = memory_limit + + @property + def memory_limit(self): + """ + Gets the memory_limit of this V1DiskVerification. + + :return: The memory_limit of this V1DiskVerification. + :rtype: K8sIoApimachineryPkgApiResourceQuantity + """ + return self._memory_limit + + @memory_limit.setter + def memory_limit(self, memory_limit): + """ + Sets the memory_limit of this V1DiskVerification. + + :param memory_limit: The memory_limit of this V1DiskVerification. + :type: K8sIoApimachineryPkgApiResourceQuantity + """ + if memory_limit is None: + raise ValueError("Invalid value for `memory_limit`, must not be `None`") + + self._memory_limit = memory_limit + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1DiskVerification): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index a8703884..b609f852 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.43.0-rc.0-96-g30dcd36a2" +VERSION = "v0.43.0-rc.0-186-gb6f68fb91" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 992b0677..f4c025c7 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.43.0-rc.0-96-g30dcd36a2" +"packageVersion": "v0.43.0-rc.0-186-gb6f68fb91" } diff --git a/test/test_v1_disk_verification.py b/test/test_v1_disk_verification.py new file mode 100644 index 00000000..d3da49ad --- /dev/null +++ b/test/test_v1_disk_verification.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_disk_verification import V1DiskVerification + + +class TestV1DiskVerification(unittest.TestCase): + """ V1DiskVerification unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DiskVerification(self): + """ + Test V1DiskVerification + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_disk_verification.V1DiskVerification() + pass + + +if __name__ == '__main__': + unittest.main() From 72fde3ec412b774802a94968bdf265df3ccc2cb9 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 16 Jul 2021 13:27:57 +0000 Subject: [PATCH 211/521] Client Python update by KubeVirt Prow build 1416018693166469120 --- README.md | 3 +- docs/V1GuestAgentPing.md | 9 +++ docs/V1Probe.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_guest_agent_ping.py | 99 ++++++++++++++++++++++++++ kubevirt/models/v1_probe.py | 30 +++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_guest_agent_ping.py | 44 ++++++++++++ 14 files changed, 194 insertions(+), 7 deletions(-) create mode 100644 docs/V1GuestAgentPing.md create mode 100644 kubevirt/models/v1_guest_agent_ping.py create mode 100644 test/test_v1_guest_agent_ping.py diff --git a/README.md b/README.md index 3978f2dd..f5f35914 100644 --- a/README.md +++ b/README.md @@ -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: v0.43.0-rc.0-186-gb6f68fb91 +- Package version: v0.43.0-rc.0-188-gc160cffe1 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -325,6 +325,7 @@ Class | Method | HTTP request | Description - [V1GPU](docs/V1GPU.md) - [V1GenerationStatus](docs/V1GenerationStatus.md) - [V1GuestAgentCommandInfo](docs/V1GuestAgentCommandInfo.md) + - [V1GuestAgentPing](docs/V1GuestAgentPing.md) - [V1HPETTimer](docs/V1HPETTimer.md) - [V1HostDevice](docs/V1HostDevice.md) - [V1HostDisk](docs/V1HostDisk.md) diff --git a/docs/V1GuestAgentPing.md b/docs/V1GuestAgentPing.md new file mode 100644 index 00000000..f63ed32e --- /dev/null +++ b/docs/V1GuestAgentPing.md @@ -0,0 +1,9 @@ +# V1GuestAgentPing + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Probe.md b/docs/V1Probe.md index 8540d414..ffa6a100 100644 --- a/docs/V1Probe.md +++ b/docs/V1Probe.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **_exec** | [**K8sIoApiCoreV1ExecAction**](K8sIoApiCoreV1ExecAction.md) | One and only one of the following should be specified. Exec specifies the action to take, it will be executed on the guest through the qemu-guest-agent. If the guest agent is not available, this probe will fail. | [optional] **failure_threshold** | **int** | Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. | [optional] +**guest_agent_ping** | [**V1GuestAgentPing**](V1GuestAgentPing.md) | GuestAgentPing contacts the qemu-guest-agent for availability checks. | [optional] **http_get** | [**K8sIoApiCoreV1HTTPGetAction**](K8sIoApiCoreV1HTTPGetAction.md) | HTTPGet specifies the http request to perform. | [optional] **initial_delay_seconds** | **int** | Number of seconds after the VirtualMachineInstance has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes | [optional] **period_seconds** | **int** | How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. | [optional] diff --git a/git_push.sh b/git_push.sh index 1387504f..7a5f7635 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.43.0-rc.0-186-gb6f68fb91" + release_note="Auto-generated client v0.43.0-rc.0-188-gc160cffe1" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 7fb86177..30d0d0ab 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -331,6 +331,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_guest_agent_command_info.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_guest_agent_command_info.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1GuestAgentCommandInfo.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_guest_agent_ping.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_guest_agent_ping.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1GuestAgentPing.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_hpet_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_hpet_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1HPETTimer.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 7d9d6ea8..9456323f 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -118,6 +118,7 @@ from .models.v1_gpu import V1GPU from .models.v1_generation_status import V1GenerationStatus from .models.v1_guest_agent_command_info import V1GuestAgentCommandInfo +from .models.v1_guest_agent_ping import V1GuestAgentPing from .models.v1_hpet_timer import V1HPETTimer from .models.v1_host_device import V1HostDevice from .models.v1_host_disk import V1HostDisk diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index bc29db86..fb37d737 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.43.0-rc.0-186-gb6f68fb91/python' + self.user_agent = 'Swagger-Codegen/v0.43.0-rc.0-188-gc160cffe1/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 29fcaf37..6a35d993 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.43.0-rc.0-186-gb6f68fb91".\ + "SDK Package Version: v0.43.0-rc.0-188-gc160cffe1".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 37a93092..c188c7b6 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -118,6 +118,7 @@ from .v1_gpu import V1GPU from .v1_generation_status import V1GenerationStatus from .v1_guest_agent_command_info import V1GuestAgentCommandInfo +from .v1_guest_agent_ping import V1GuestAgentPing from .v1_hpet_timer import V1HPETTimer from .v1_host_device import V1HostDevice from .v1_host_disk import V1HostDisk diff --git a/kubevirt/models/v1_guest_agent_ping.py b/kubevirt/models/v1_guest_agent_ping.py new file mode 100644 index 00000000..8f90e049 --- /dev/null +++ b/kubevirt/models/v1_guest_agent_ping.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1GuestAgentPing(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1GuestAgentPing - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1GuestAgentPing): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_probe.py b/kubevirt/models/v1_probe.py index ff5a401b..c91d0714 100644 --- a/kubevirt/models/v1_probe.py +++ b/kubevirt/models/v1_probe.py @@ -33,6 +33,7 @@ class V1Probe(object): swagger_types = { '_exec': 'K8sIoApiCoreV1ExecAction', 'failure_threshold': 'int', + 'guest_agent_ping': 'V1GuestAgentPing', 'http_get': 'K8sIoApiCoreV1HTTPGetAction', 'initial_delay_seconds': 'int', 'period_seconds': 'int', @@ -44,6 +45,7 @@ class V1Probe(object): attribute_map = { '_exec': 'exec', 'failure_threshold': 'failureThreshold', + 'guest_agent_ping': 'guestAgentPing', 'http_get': 'httpGet', 'initial_delay_seconds': 'initialDelaySeconds', 'period_seconds': 'periodSeconds', @@ -52,13 +54,14 @@ class V1Probe(object): 'timeout_seconds': 'timeoutSeconds' } - def __init__(self, _exec=None, failure_threshold=None, http_get=None, initial_delay_seconds=None, period_seconds=None, success_threshold=None, tcp_socket=None, timeout_seconds=None): + def __init__(self, _exec=None, failure_threshold=None, guest_agent_ping=None, http_get=None, initial_delay_seconds=None, period_seconds=None, success_threshold=None, tcp_socket=None, timeout_seconds=None): """ V1Probe - a model defined in Swagger """ self.__exec = None self._failure_threshold = None + self._guest_agent_ping = None self._http_get = None self._initial_delay_seconds = None self._period_seconds = None @@ -70,6 +73,8 @@ def __init__(self, _exec=None, failure_threshold=None, http_get=None, initial_de self._exec = _exec if failure_threshold is not None: self.failure_threshold = failure_threshold + if guest_agent_ping is not None: + self.guest_agent_ping = guest_agent_ping if http_get is not None: self.http_get = http_get if initial_delay_seconds is not None: @@ -129,6 +134,29 @@ def failure_threshold(self, failure_threshold): self._failure_threshold = failure_threshold + @property + def guest_agent_ping(self): + """ + Gets the guest_agent_ping of this V1Probe. + GuestAgentPing contacts the qemu-guest-agent for availability checks. + + :return: The guest_agent_ping of this V1Probe. + :rtype: V1GuestAgentPing + """ + return self._guest_agent_ping + + @guest_agent_ping.setter + def guest_agent_ping(self, guest_agent_ping): + """ + Sets the guest_agent_ping of this V1Probe. + GuestAgentPing contacts the qemu-guest-agent for availability checks. + + :param guest_agent_ping: The guest_agent_ping of this V1Probe. + :type: V1GuestAgentPing + """ + + self._guest_agent_ping = guest_agent_ping + @property def http_get(self): """ diff --git a/setup.py b/setup.py index b609f852..924f9cb5 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.43.0-rc.0-186-gb6f68fb91" +VERSION = "v0.43.0-rc.0-188-gc160cffe1" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index f4c025c7..ce67397f 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.43.0-rc.0-186-gb6f68fb91" +"packageVersion": "v0.43.0-rc.0-188-gc160cffe1" } diff --git a/test/test_v1_guest_agent_ping.py b/test/test_v1_guest_agent_ping.py new file mode 100644 index 00000000..b5518c61 --- /dev/null +++ b/test/test_v1_guest_agent_ping.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_guest_agent_ping import V1GuestAgentPing + + +class TestV1GuestAgentPing(unittest.TestCase): + """ V1GuestAgentPing unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1GuestAgentPing(self): + """ + Test V1GuestAgentPing + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_guest_agent_ping.V1GuestAgentPing() + pass + + +if __name__ == '__main__': + unittest.main() From 997dab53b6af7ba304172791c0547b3f50a1ab00 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 16 Jul 2021 21:25:06 +0000 Subject: [PATCH 212/521] Client Python update by KubeVirt Prow build 1416139033750278144 --- README.md | 5 +- docs/DefaultApi.md | 98 +++++++++ docs/V1ClientPassthroughDevices.md | 9 + docs/V1Devices.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 206 ++++++++++++++++++ kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + .../models/v1_client_passthrough_devices.py | 99 +++++++++ kubevirt/models/v1_devices.py | 30 ++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 16 ++ test/test_v1_client_passthrough_devices.py | 44 ++++ 17 files changed, 516 insertions(+), 7 deletions(-) create mode 100644 docs/V1ClientPassthroughDevices.md create mode 100644 kubevirt/models/v1_client_passthrough_devices.py create mode 100644 test/test_v1_client_passthrough_devices.py diff --git a/README.md b/README.md index f5f35914..7fcf2a85 100644 --- a/README.md +++ b/README.md @@ -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: v0.43.0-rc.0-188-gc160cffe1 +- Package version: v0.43.0-rc.0-200-g72dedbff5 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -182,6 +182,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3_version**](docs/DefaultApi.md#v1alpha3_version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | *DefaultApi* | [**v1alpha3_vnc**](docs/DefaultApi.md#v1alpha3_vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | *DefaultApi* | [**v1alpha3get_api_sub_resources**](docs/DefaultApi.md#v1alpha3get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1alpha3/ | +*DefaultApi* | [**v1alpha3usbredir**](docs/DefaultApi.md#v1alpha3usbredir) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir | *DefaultApi* | [**v1alpha3vm_addvolume**](docs/DefaultApi.md#v1alpha3vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | *DefaultApi* | [**v1alpha3vm_port_forward**](docs/DefaultApi.md#v1alpha3vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | *DefaultApi* | [**v1alpha3vm_port_forward_with_protocol**](docs/DefaultApi.md#v1alpha3vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | @@ -191,6 +192,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3vmi_port_forward_with_protocol**](docs/DefaultApi.md#v1alpha3vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | *DefaultApi* | [**v1alpha3vmi_removevolume**](docs/DefaultApi.md#v1alpha3vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | *DefaultApi* | [**v1get_api_sub_resources**](docs/DefaultApi.md#v1get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1/ | +*DefaultApi* | [**v1usbredir**](docs/DefaultApi.md#v1usbredir) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir | *DefaultApi* | [**v1vm_addvolume**](docs/DefaultApi.md#v1vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | *DefaultApi* | [**v1vm_port_forward**](docs/DefaultApi.md#v1vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | *DefaultApi* | [**v1vm_port_forward_with_protocol**](docs/DefaultApi.md#v1vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | @@ -283,6 +285,7 @@ Class | Method | HTTP request | Description - [V1CPUFeature](docs/V1CPUFeature.md) - [V1CertConfig](docs/V1CertConfig.md) - [V1Chassis](docs/V1Chassis.md) + - [V1ClientPassthroughDevices](docs/V1ClientPassthroughDevices.md) - [V1Clock](docs/V1Clock.md) - [V1ClockOffsetUTC](docs/V1ClockOffsetUTC.md) - [V1CloudInitConfigDriveSource](docs/V1CloudInitConfigDriveSource.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index f14969db..a61f185c 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -116,6 +116,7 @@ Method | HTTP request | Description [**v1alpha3_version**](DefaultApi.md#v1alpha3_version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | [**v1alpha3_vnc**](DefaultApi.md#v1alpha3_vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | [**v1alpha3get_api_sub_resources**](DefaultApi.md#v1alpha3get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1alpha3/ | +[**v1alpha3usbredir**](DefaultApi.md#v1alpha3usbredir) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir | [**v1alpha3vm_addvolume**](DefaultApi.md#v1alpha3vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | [**v1alpha3vm_port_forward**](DefaultApi.md#v1alpha3vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | [**v1alpha3vm_port_forward_with_protocol**](DefaultApi.md#v1alpha3vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | @@ -125,6 +126,7 @@ Method | HTTP request | Description [**v1alpha3vmi_port_forward_with_protocol**](DefaultApi.md#v1alpha3vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | [**v1alpha3vmi_removevolume**](DefaultApi.md#v1alpha3vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | [**v1get_api_sub_resources**](DefaultApi.md#v1get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1/ | +[**v1usbredir**](DefaultApi.md#v1usbredir) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir | [**v1vm_addvolume**](DefaultApi.md#v1vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | [**v1vm_port_forward**](DefaultApi.md#v1vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | [**v1vm_port_forward_with_protocol**](DefaultApi.md#v1vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | @@ -5995,6 +5997,54 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3usbredir** +> v1alpha3usbredir(name, namespace) + + + +Open a websocket connection to connect to USB device on the specified VirtualMachineInstance. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_instance.v1alpha3usbredir(name, namespace) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3usbredir: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3vm_addvolume** > str v1alpha3vm_addvolume(name, namespace, body) @@ -6446,6 +6496,54 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1usbredir** +> v1usbredir(name, namespace) + + + +Open a websocket connection to connect to USB device on the specified VirtualMachineInstance. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_instance.v1usbredir(name, namespace) +except ApiException as e: + print("Exception when calling DefaultApi->v1usbredir: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1vm_addvolume** > str v1vm_addvolume(name, namespace, body) diff --git a/docs/V1ClientPassthroughDevices.md b/docs/V1ClientPassthroughDevices.md new file mode 100644 index 00000000..8c426a5f --- /dev/null +++ b/docs/V1ClientPassthroughDevices.md @@ -0,0 +1,9 @@ +# V1ClientPassthroughDevices + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Devices.md b/docs/V1Devices.md index 0c2c4d7f..48717623 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **autoattach_pod_interface** | **bool** | Whether to attach a pod network interface. Defaults to true. | [optional] **autoattach_serial_console** | **bool** | Whether to attach the default serial console or not. Serial console access will not be available if set to false. Defaults to true. | [optional] **block_multi_queue** | **bool** | Whether or not to enable virtio multi-queue for block devices. Defaults to false. | [optional] +**client_passthrough** | [**V1ClientPassthroughDevices**](V1ClientPassthroughDevices.md) | To configure and access client devices such as redirecting USB | [optional] **disable_hotplug** | **bool** | DisableHotplug disabled the ability to hotplug disks. | [optional] **disks** | [**list[V1Disk]**](V1Disk.md) | Disks describes disks, cdroms, floppy and luns which are connected to the vmi. | [optional] **filesystems** | [**list[V1Filesystem]**](V1Filesystem.md) | Filesystems describes filesystem which is connected to the vmi. | [optional] diff --git a/git_push.sh b/git_push.sh index 7a5f7635..568b84ea 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.43.0-rc.0-188-gc160cffe1" + release_note="Auto-generated client v0.43.0-rc.0-200-g72dedbff5" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 30d0d0ab..f1a18228 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -205,6 +205,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_chassis.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_chassis.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Chassis.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_client_passthrough_devices.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_client_passthrough_devices.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ClientPassthroughDevices.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_clock.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_clock.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Clock.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 9456323f..bf34516d 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -76,6 +76,7 @@ from .models.v1_cpu_feature import V1CPUFeature from .models.v1_cert_config import V1CertConfig from .models.v1_chassis import V1Chassis +from .models.v1_client_passthrough_devices import V1ClientPassthroughDevices from .models.v1_clock import V1Clock from .models.v1_clock_offset_utc import V1ClockOffsetUTC from .models.v1_cloud_init_config_drive_source import V1CloudInitConfigDriveSource diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index fb37d737..5ed46810 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.43.0-rc.0-188-gc160cffe1/python' + self.user_agent = 'Swagger-Codegen/v0.43.0-rc.0-200-g72dedbff5/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index d28a0926..d364ef22 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -12752,6 +12752,109 @@ def v1alpha3get_api_sub_resources_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1alpha3usbredir(self, name, namespace, **kwargs): + """ + Open a websocket connection to connect to USB device on the specified VirtualMachineInstance. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3usbredir(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3usbredir_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1alpha3usbredir_with_http_info(name, namespace, **kwargs) + return data + + def v1alpha3usbredir_with_http_info(self, name, namespace, **kwargs): + """ + Open a websocket connection to connect to USB device on the specified VirtualMachineInstance. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3usbredir_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3usbredir" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3usbredir`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3usbredir`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1alpha3vm_addvolume(self, name, namespace, body, **kwargs): """ Add a volume and disk to a running Virtual Machine. @@ -13738,6 +13841,109 @@ def v1get_api_sub_resources_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1usbredir(self, name, namespace, **kwargs): + """ + Open a websocket connection to connect to USB device on the specified VirtualMachineInstance. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1usbredir(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1usbredir_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1usbredir_with_http_info(name, namespace, **kwargs) + return data + + def v1usbredir_with_http_info(self, name, namespace, **kwargs): + """ + Open a websocket connection to connect to USB device on the specified VirtualMachineInstance. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1usbredir_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1usbredir" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1usbredir`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1usbredir`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1vm_addvolume(self, name, namespace, body, **kwargs): """ Add a volume and disk to a running Virtual Machine. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 6a35d993..30529205 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.43.0-rc.0-188-gc160cffe1".\ + "SDK Package Version: v0.43.0-rc.0-200-g72dedbff5".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index c188c7b6..3031472f 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -76,6 +76,7 @@ from .v1_cpu_feature import V1CPUFeature from .v1_cert_config import V1CertConfig from .v1_chassis import V1Chassis +from .v1_client_passthrough_devices import V1ClientPassthroughDevices from .v1_clock import V1Clock from .v1_clock_offset_utc import V1ClockOffsetUTC from .v1_cloud_init_config_drive_source import V1CloudInitConfigDriveSource diff --git a/kubevirt/models/v1_client_passthrough_devices.py b/kubevirt/models/v1_client_passthrough_devices.py new file mode 100644 index 00000000..740ce645 --- /dev/null +++ b/kubevirt/models/v1_client_passthrough_devices.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ClientPassthroughDevices(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1ClientPassthroughDevices - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1ClientPassthroughDevices): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index 275601f8..474bd17b 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -36,6 +36,7 @@ class V1Devices(object): 'autoattach_pod_interface': 'bool', 'autoattach_serial_console': 'bool', 'block_multi_queue': 'bool', + 'client_passthrough': 'V1ClientPassthroughDevices', 'disable_hotplug': 'bool', 'disks': 'list[V1Disk]', 'filesystems': 'list[V1Filesystem]', @@ -55,6 +56,7 @@ class V1Devices(object): 'autoattach_pod_interface': 'autoattachPodInterface', 'autoattach_serial_console': 'autoattachSerialConsole', 'block_multi_queue': 'blockMultiQueue', + 'client_passthrough': 'clientPassthrough', 'disable_hotplug': 'disableHotplug', 'disks': 'disks', 'filesystems': 'filesystems', @@ -68,7 +70,7 @@ class V1Devices(object): 'watchdog': 'watchdog' } - def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, autoattach_pod_interface=None, autoattach_serial_console=None, block_multi_queue=None, disable_hotplug=None, disks=None, filesystems=None, gpus=None, host_devices=None, inputs=None, interfaces=None, network_interface_multiqueue=None, rng=None, use_virtio_transitional=None, watchdog=None): + def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, autoattach_pod_interface=None, autoattach_serial_console=None, block_multi_queue=None, client_passthrough=None, disable_hotplug=None, disks=None, filesystems=None, gpus=None, host_devices=None, inputs=None, interfaces=None, network_interface_multiqueue=None, rng=None, use_virtio_transitional=None, watchdog=None): """ V1Devices - a model defined in Swagger """ @@ -78,6 +80,7 @@ def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, self._autoattach_pod_interface = None self._autoattach_serial_console = None self._block_multi_queue = None + self._client_passthrough = None self._disable_hotplug = None self._disks = None self._filesystems = None @@ -100,6 +103,8 @@ def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, self.autoattach_serial_console = autoattach_serial_console if block_multi_queue is not None: self.block_multi_queue = block_multi_queue + if client_passthrough is not None: + self.client_passthrough = client_passthrough if disable_hotplug is not None: self.disable_hotplug = disable_hotplug if disks is not None: @@ -238,6 +243,29 @@ def block_multi_queue(self, block_multi_queue): self._block_multi_queue = block_multi_queue + @property + def client_passthrough(self): + """ + Gets the client_passthrough of this V1Devices. + To configure and access client devices such as redirecting USB + + :return: The client_passthrough of this V1Devices. + :rtype: V1ClientPassthroughDevices + """ + return self._client_passthrough + + @client_passthrough.setter + def client_passthrough(self, client_passthrough): + """ + Sets the client_passthrough of this V1Devices. + To configure and access client devices such as redirecting USB + + :param client_passthrough: The client_passthrough of this V1Devices. + :type: V1ClientPassthroughDevices + """ + + self._client_passthrough = client_passthrough + @property def disable_hotplug(self): """ diff --git a/setup.py b/setup.py index 924f9cb5..a2772dbd 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.43.0-rc.0-188-gc160cffe1" +VERSION = "v0.43.0-rc.0-200-g72dedbff5" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index ce67397f..bef276ea 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.43.0-rc.0-188-gc160cffe1" +"packageVersion": "v0.43.0-rc.0-200-g72dedbff5" } diff --git a/test/test_default_api.py b/test/test_default_api.py index ef00c77b..a8188e39 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -924,6 +924,14 @@ def test_v1alpha3get_api_sub_resources(self): Test case for v1alpha3get_api_sub_resources + """ + pass + + def test_v1alpha3usbredir(self): + """ + Test case for v1alpha3usbredir + + """ pass @@ -996,6 +1004,14 @@ def test_v1get_api_sub_resources(self): Test case for v1get_api_sub_resources + """ + pass + + def test_v1usbredir(self): + """ + Test case for v1usbredir + + """ pass diff --git a/test/test_v1_client_passthrough_devices.py b/test/test_v1_client_passthrough_devices.py new file mode 100644 index 00000000..81dc7eba --- /dev/null +++ b/test/test_v1_client_passthrough_devices.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_client_passthrough_devices import V1ClientPassthroughDevices + + +class TestV1ClientPassthroughDevices(unittest.TestCase): + """ V1ClientPassthroughDevices unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ClientPassthroughDevices(self): + """ + Test V1ClientPassthroughDevices + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_client_passthrough_devices.V1ClientPassthroughDevices() + pass + + +if __name__ == '__main__': + unittest.main() From 444ab92a68371c1ccd89314753fa7ab5c4ac9bbe Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Mon, 19 Jul 2021 17:28:05 +0000 Subject: [PATCH 213/521] Client Python update by KubeVirt Prow build 1417166381052334080 --- README.md | 3 +- docs/V1beta1DataVolumeSourceRef.md | 12 ++ docs/V1beta1DataVolumeSpec.md | 3 +- docs/V1beta1StorageSpec.md | 2 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + .../models/v1beta1_data_volume_source_ref.py | 183 ++++++++++++++++++ kubevirt/models/v1beta1_data_volume_spec.py | 35 +++- kubevirt/models/v1beta1_storage_spec.py | 4 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1beta1_data_volume_source_ref.py | 44 +++++ 16 files changed, 287 insertions(+), 14 deletions(-) create mode 100644 docs/V1beta1DataVolumeSourceRef.md create mode 100644 kubevirt/models/v1beta1_data_volume_source_ref.py create mode 100644 test/test_v1beta1_data_volume_source_ref.py diff --git a/README.md b/README.md index 7fcf2a85..002f480f 100644 --- a/README.md +++ b/README.md @@ -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: v0.43.0-rc.0-200-g72dedbff5 +- Package version: v0.43.0-rc.0-212-gee5ea0f7a - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -460,6 +460,7 @@ Class | Method | HTTP request | Description - [V1beta1DataVolumeSourceHTTP](docs/V1beta1DataVolumeSourceHTTP.md) - [V1beta1DataVolumeSourceImageIO](docs/V1beta1DataVolumeSourceImageIO.md) - [V1beta1DataVolumeSourcePVC](docs/V1beta1DataVolumeSourcePVC.md) + - [V1beta1DataVolumeSourceRef](docs/V1beta1DataVolumeSourceRef.md) - [V1beta1DataVolumeSourceRegistry](docs/V1beta1DataVolumeSourceRegistry.md) - [V1beta1DataVolumeSourceS3](docs/V1beta1DataVolumeSourceS3.md) - [V1beta1DataVolumeSourceUpload](docs/V1beta1DataVolumeSourceUpload.md) diff --git a/docs/V1beta1DataVolumeSourceRef.md b/docs/V1beta1DataVolumeSourceRef.md new file mode 100644 index 00000000..826c0004 --- /dev/null +++ b/docs/V1beta1DataVolumeSourceRef.md @@ -0,0 +1,12 @@ +# V1beta1DataVolumeSourceRef + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kind** | **str** | The kind of the source reference, currently only \"DataSource\" is supported | +**name** | **str** | The name of the source reference | +**namespace** | **str** | The namespace of the source reference, defaults to the DataVolume namespace | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1DataVolumeSpec.md b/docs/V1beta1DataVolumeSpec.md index ff482c5e..8f14e908 100644 --- a/docs/V1beta1DataVolumeSpec.md +++ b/docs/V1beta1DataVolumeSpec.md @@ -9,7 +9,8 @@ Name | Type | Description | Notes **preallocation** | **bool** | Preallocation controls whether storage for DataVolumes should be allocated in advance. | [optional] **priority_class_name** | **str** | PriorityClassName for Importer, Cloner and Uploader pod | [optional] **pvc** | [**K8sIoApiCoreV1PersistentVolumeClaimSpec**](K8sIoApiCoreV1PersistentVolumeClaimSpec.md) | PVC is the PVC specification | [optional] -**source** | [**V1beta1DataVolumeSource**](V1beta1DataVolumeSource.md) | Source is the src of the data for the requested DataVolume | +**source** | [**V1beta1DataVolumeSource**](V1beta1DataVolumeSource.md) | Source is the src of the data for the requested DataVolume | [optional] +**source_ref** | [**V1beta1DataVolumeSourceRef**](V1beta1DataVolumeSourceRef.md) | SourceRef is an indirect reference to the source of data for the requested DataVolume | [optional] **storage** | [**V1beta1StorageSpec**](V1beta1StorageSpec.md) | Storage is the requested storage specification | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1beta1StorageSpec.md b/docs/V1beta1StorageSpec.md index 210fb7db..2ad5a248 100644 --- a/docs/V1beta1StorageSpec.md +++ b/docs/V1beta1StorageSpec.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **access_modes** | **list[str]** | AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] -**data_source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. | [optional] +**data_source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) * An existing custom resource that implements data population (Alpha) In order to use custom resource types that implement data population, the AnyVolumeDataSource feature gate must be enabled. If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. | [optional] **resources** | [**K8sIoApiCoreV1ResourceRequirements**](K8sIoApiCoreV1ResourceRequirements.md) | Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources | [optional] **selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | A label query over volumes to consider for binding. | [optional] **storage_class_name** | **str** | Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] diff --git a/git_push.sh b/git_push.sh index 568b84ea..6b25a3ff 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.43.0-rc.0-200-g72dedbff5" + release_note="Auto-generated client v0.43.0-rc.0-212-gee5ea0f7a" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index f1a18228..becdfca8 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -730,6 +730,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/v1beta1_data_volume_source_pvc.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_source_pvc.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeSourcePVC.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_data_volume_source_ref.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_source_ref.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeSourceRef.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_data_volume_source_registry.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_source_registry.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeSourceRegistry.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index bf34516d..7e630aaa 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -251,6 +251,7 @@ from .models.v1beta1_data_volume_source_http import V1beta1DataVolumeSourceHTTP from .models.v1beta1_data_volume_source_image_io import V1beta1DataVolumeSourceImageIO from .models.v1beta1_data_volume_source_pvc import V1beta1DataVolumeSourcePVC +from .models.v1beta1_data_volume_source_ref import V1beta1DataVolumeSourceRef from .models.v1beta1_data_volume_source_registry import V1beta1DataVolumeSourceRegistry from .models.v1beta1_data_volume_source_s3 import V1beta1DataVolumeSourceS3 from .models.v1beta1_data_volume_source_upload import V1beta1DataVolumeSourceUpload diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 5ed46810..903a5851 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.43.0-rc.0-200-g72dedbff5/python' + self.user_agent = 'Swagger-Codegen/v0.43.0-rc.0-212-gee5ea0f7a/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 30529205..3c31f759 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.43.0-rc.0-200-g72dedbff5".\ + "SDK Package Version: v0.43.0-rc.0-212-gee5ea0f7a".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 3031472f..8ec7e617 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -251,6 +251,7 @@ from .v1beta1_data_volume_source_http import V1beta1DataVolumeSourceHTTP from .v1beta1_data_volume_source_image_io import V1beta1DataVolumeSourceImageIO from .v1beta1_data_volume_source_pvc import V1beta1DataVolumeSourcePVC +from .v1beta1_data_volume_source_ref import V1beta1DataVolumeSourceRef from .v1beta1_data_volume_source_registry import V1beta1DataVolumeSourceRegistry from .v1beta1_data_volume_source_s3 import V1beta1DataVolumeSourceS3 from .v1beta1_data_volume_source_upload import V1beta1DataVolumeSourceUpload diff --git a/kubevirt/models/v1beta1_data_volume_source_ref.py b/kubevirt/models/v1beta1_data_volume_source_ref.py new file mode 100644 index 00000000..ac66289c --- /dev/null +++ b/kubevirt/models/v1beta1_data_volume_source_ref.py @@ -0,0 +1,183 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1DataVolumeSourceRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'kind': 'str', + 'name': 'str', + 'namespace': 'str' + } + + attribute_map = { + 'kind': 'kind', + 'name': 'name', + 'namespace': 'namespace' + } + + def __init__(self, kind=None, name=None, namespace=None): + """ + V1beta1DataVolumeSourceRef - a model defined in Swagger + """ + + self._kind = None + self._name = None + self._namespace = None + + self.kind = kind + self.name = name + if namespace is not None: + self.namespace = namespace + + @property + def kind(self): + """ + Gets the kind of this V1beta1DataVolumeSourceRef. + The kind of the source reference, currently only \"DataSource\" is supported + + :return: The kind of this V1beta1DataVolumeSourceRef. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1beta1DataVolumeSourceRef. + The kind of the source reference, currently only \"DataSource\" is supported + + :param kind: The kind of this V1beta1DataVolumeSourceRef. + :type: str + """ + if kind is None: + raise ValueError("Invalid value for `kind`, must not be `None`") + + self._kind = kind + + @property + def name(self): + """ + Gets the name of this V1beta1DataVolumeSourceRef. + The name of the source reference + + :return: The name of this V1beta1DataVolumeSourceRef. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1beta1DataVolumeSourceRef. + The name of the source reference + + :param name: The name of this V1beta1DataVolumeSourceRef. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def namespace(self): + """ + Gets the namespace of this V1beta1DataVolumeSourceRef. + The namespace of the source reference, defaults to the DataVolume namespace + + :return: The namespace of this V1beta1DataVolumeSourceRef. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """ + Sets the namespace of this V1beta1DataVolumeSourceRef. + The namespace of the source reference, defaults to the DataVolume namespace + + :param namespace: The namespace of this V1beta1DataVolumeSourceRef. + :type: str + """ + + self._namespace = namespace + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1beta1DataVolumeSourceRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1beta1_data_volume_spec.py b/kubevirt/models/v1beta1_data_volume_spec.py index a76d4ec9..ded30071 100644 --- a/kubevirt/models/v1beta1_data_volume_spec.py +++ b/kubevirt/models/v1beta1_data_volume_spec.py @@ -38,6 +38,7 @@ class V1beta1DataVolumeSpec(object): 'priority_class_name': 'str', 'pvc': 'K8sIoApiCoreV1PersistentVolumeClaimSpec', 'source': 'V1beta1DataVolumeSource', + 'source_ref': 'V1beta1DataVolumeSourceRef', 'storage': 'V1beta1StorageSpec' } @@ -49,10 +50,11 @@ class V1beta1DataVolumeSpec(object): 'priority_class_name': 'priorityClassName', 'pvc': 'pvc', 'source': 'source', + 'source_ref': 'sourceRef', 'storage': 'storage' } - def __init__(self, checkpoints=None, content_type=None, final_checkpoint=None, preallocation=None, priority_class_name=None, pvc=None, source=None, storage=None): + def __init__(self, checkpoints=None, content_type=None, final_checkpoint=None, preallocation=None, priority_class_name=None, pvc=None, source=None, source_ref=None, storage=None): """ V1beta1DataVolumeSpec - a model defined in Swagger """ @@ -64,6 +66,7 @@ def __init__(self, checkpoints=None, content_type=None, final_checkpoint=None, p self._priority_class_name = None self._pvc = None self._source = None + self._source_ref = None self._storage = None if checkpoints is not None: @@ -78,7 +81,10 @@ def __init__(self, checkpoints=None, content_type=None, final_checkpoint=None, p self.priority_class_name = priority_class_name if pvc is not None: self.pvc = pvc - self.source = source + if source is not None: + self.source = source + if source_ref is not None: + self.source_ref = source_ref if storage is not None: self.storage = storage @@ -240,11 +246,32 @@ def source(self, source): :param source: The source of this V1beta1DataVolumeSpec. :type: V1beta1DataVolumeSource """ - if source is None: - raise ValueError("Invalid value for `source`, must not be `None`") self._source = source + @property + def source_ref(self): + """ + Gets the source_ref of this V1beta1DataVolumeSpec. + SourceRef is an indirect reference to the source of data for the requested DataVolume + + :return: The source_ref of this V1beta1DataVolumeSpec. + :rtype: V1beta1DataVolumeSourceRef + """ + return self._source_ref + + @source_ref.setter + def source_ref(self, source_ref): + """ + Sets the source_ref of this V1beta1DataVolumeSpec. + SourceRef is an indirect reference to the source of data for the requested DataVolume + + :param source_ref: The source_ref of this V1beta1DataVolumeSpec. + :type: V1beta1DataVolumeSourceRef + """ + + self._source_ref = source_ref + @property def storage(self): """ diff --git a/kubevirt/models/v1beta1_storage_spec.py b/kubevirt/models/v1beta1_storage_spec.py index 48f26a98..93a0c8d0 100644 --- a/kubevirt/models/v1beta1_storage_spec.py +++ b/kubevirt/models/v1beta1_storage_spec.py @@ -105,7 +105,7 @@ def access_modes(self, access_modes): def data_source(self): """ Gets the data_source of this V1beta1StorageSpec. - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. + This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) * An existing custom resource that implements data population (Alpha) In order to use custom resource types that implement data population, the AnyVolumeDataSource feature gate must be enabled. If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. :return: The data_source of this V1beta1StorageSpec. :rtype: K8sIoApiCoreV1TypedLocalObjectReference @@ -116,7 +116,7 @@ def data_source(self): def data_source(self, data_source): """ Sets the data_source of this V1beta1StorageSpec. - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. + This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) * An existing custom resource that implements data population (Alpha) In order to use custom resource types that implement data population, the AnyVolumeDataSource feature gate must be enabled. If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. :param data_source: The data_source of this V1beta1StorageSpec. :type: K8sIoApiCoreV1TypedLocalObjectReference diff --git a/setup.py b/setup.py index a2772dbd..9b7fa484 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.43.0-rc.0-200-g72dedbff5" +VERSION = "v0.43.0-rc.0-212-gee5ea0f7a" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index bef276ea..7b233856 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.43.0-rc.0-200-g72dedbff5" +"packageVersion": "v0.43.0-rc.0-212-gee5ea0f7a" } diff --git a/test/test_v1beta1_data_volume_source_ref.py b/test/test_v1beta1_data_volume_source_ref.py new file mode 100644 index 00000000..48106033 --- /dev/null +++ b/test/test_v1beta1_data_volume_source_ref.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_data_volume_source_ref import V1beta1DataVolumeSourceRef + + +class TestV1beta1DataVolumeSourceRef(unittest.TestCase): + """ V1beta1DataVolumeSourceRef unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DataVolumeSourceRef(self): + """ + Test V1beta1DataVolumeSourceRef + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_data_volume_source_ref.V1beta1DataVolumeSourceRef() + pass + + +if __name__ == '__main__': + unittest.main() From be27ee72368481d74ac095040bc46c97dcb884e6 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 22 Jul 2021 20:02:26 +0000 Subject: [PATCH 214/521] Client Python update by KubeVirt Prow build 1418288387239972864 --- README.md | 6 +- docs/DefaultApi.md | 200 +++++++++++++++++ git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 412 +++++++++++++++++++++++++++++++++++ kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 32 +++ 9 files changed, 654 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 002f480f..5f10a556 100644 --- a/README.md +++ b/README.md @@ -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: v0.43.0-rc.0-212-gee5ea0f7a +- Package version: v0.43.0-rc.0-279-gd32b8f964 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -153,6 +153,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1_check_health**](docs/DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | *DefaultApi* | [**v1_console**](docs/DefaultApi.md#v1_console) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | *DefaultApi* | [**v1_filesystemlist**](docs/DefaultApi.md#v1_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | +*DefaultApi* | [**v1_freeze**](docs/DefaultApi.md#v1_freeze) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze | *DefaultApi* | [**v1_guestfs**](docs/DefaultApi.md#v1_guestfs) | **GET** /apis/subresources.kubevirt.io/v1/guestfs | *DefaultApi* | [**v1_guestosinfo**](docs/DefaultApi.md#v1_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | *DefaultApi* | [**v1_migrate**](docs/DefaultApi.md#v1_migrate) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | @@ -161,6 +162,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1_start**](docs/DefaultApi.md#v1_start) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | *DefaultApi* | [**v1_stop**](docs/DefaultApi.md#v1_stop) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | *DefaultApi* | [**v1_test**](docs/DefaultApi.md#v1_test) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test | +*DefaultApi* | [**v1_unfreeze**](docs/DefaultApi.md#v1_unfreeze) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unfreeze | *DefaultApi* | [**v1_unpause**](docs/DefaultApi.md#v1_unpause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause | *DefaultApi* | [**v1_userlist**](docs/DefaultApi.md#v1_userlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | *DefaultApi* | [**v1_version**](docs/DefaultApi.md#v1_version) | **GET** /apis/subresources.kubevirt.io/v1/version | @@ -168,6 +170,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3_check_health**](docs/DefaultApi.md#v1alpha3_check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha3/healthz | *DefaultApi* | [**v1alpha3_console**](docs/DefaultApi.md#v1alpha3_console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | *DefaultApi* | [**v1alpha3_filesystemlist**](docs/DefaultApi.md#v1alpha3_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | +*DefaultApi* | [**v1alpha3_freeze**](docs/DefaultApi.md#v1alpha3_freeze) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze | *DefaultApi* | [**v1alpha3_get_sub_api_group**](docs/DefaultApi.md#v1alpha3_get_sub_api_group) | **GET** /apis/subresources.kubevirt.io | *DefaultApi* | [**v1alpha3_guestfs**](docs/DefaultApi.md#v1alpha3_guestfs) | **GET** /apis/subresources.kubevirt.io/v1alpha3/guestfs | *DefaultApi* | [**v1alpha3_guestosinfo**](docs/DefaultApi.md#v1alpha3_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | @@ -177,6 +180,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3_start**](docs/DefaultApi.md#v1alpha3_start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | *DefaultApi* | [**v1alpha3_stop**](docs/DefaultApi.md#v1alpha3_stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | *DefaultApi* | [**v1alpha3_test**](docs/DefaultApi.md#v1alpha3_test) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test | +*DefaultApi* | [**v1alpha3_unfreeze**](docs/DefaultApi.md#v1alpha3_unfreeze) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unfreeze | *DefaultApi* | [**v1alpha3_unpause**](docs/DefaultApi.md#v1alpha3_unpause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause | *DefaultApi* | [**v1alpha3_userlist**](docs/DefaultApi.md#v1alpha3_userlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | *DefaultApi* | [**v1alpha3_version**](docs/DefaultApi.md#v1alpha3_version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index a61f185c..47dd52ee 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -87,6 +87,7 @@ Method | HTTP request | Description [**v1_check_health**](DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | [**v1_console**](DefaultApi.md#v1_console) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | [**v1_filesystemlist**](DefaultApi.md#v1_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | +[**v1_freeze**](DefaultApi.md#v1_freeze) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze | [**v1_guestfs**](DefaultApi.md#v1_guestfs) | **GET** /apis/subresources.kubevirt.io/v1/guestfs | [**v1_guestosinfo**](DefaultApi.md#v1_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | [**v1_migrate**](DefaultApi.md#v1_migrate) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | @@ -95,6 +96,7 @@ Method | HTTP request | Description [**v1_start**](DefaultApi.md#v1_start) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | [**v1_stop**](DefaultApi.md#v1_stop) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | [**v1_test**](DefaultApi.md#v1_test) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test | +[**v1_unfreeze**](DefaultApi.md#v1_unfreeze) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unfreeze | [**v1_unpause**](DefaultApi.md#v1_unpause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause | [**v1_userlist**](DefaultApi.md#v1_userlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | [**v1_version**](DefaultApi.md#v1_version) | **GET** /apis/subresources.kubevirt.io/v1/version | @@ -102,6 +104,7 @@ Method | HTTP request | Description [**v1alpha3_check_health**](DefaultApi.md#v1alpha3_check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha3/healthz | [**v1alpha3_console**](DefaultApi.md#v1alpha3_console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | [**v1alpha3_filesystemlist**](DefaultApi.md#v1alpha3_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | +[**v1alpha3_freeze**](DefaultApi.md#v1alpha3_freeze) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze | [**v1alpha3_get_sub_api_group**](DefaultApi.md#v1alpha3_get_sub_api_group) | **GET** /apis/subresources.kubevirt.io | [**v1alpha3_guestfs**](DefaultApi.md#v1alpha3_guestfs) | **GET** /apis/subresources.kubevirt.io/v1alpha3/guestfs | [**v1alpha3_guestosinfo**](DefaultApi.md#v1alpha3_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | @@ -111,6 +114,7 @@ Method | HTTP request | Description [**v1alpha3_start**](DefaultApi.md#v1alpha3_start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | [**v1alpha3_stop**](DefaultApi.md#v1alpha3_stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | [**v1alpha3_test**](DefaultApi.md#v1alpha3_test) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test | +[**v1alpha3_unfreeze**](DefaultApi.md#v1alpha3_unfreeze) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unfreeze | [**v1alpha3_unpause**](DefaultApi.md#v1alpha3_unpause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause | [**v1alpha3_userlist**](DefaultApi.md#v1alpha3_userlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | [**v1alpha3_version**](DefaultApi.md#v1alpha3_version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | @@ -4643,6 +4647,55 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1_freeze** +> str v1_freeze(name, namespace) + + + +Freeze a VirtualMachineInstance object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1_freeze(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1_freeze: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1_guestfs** > str v1_guestfs() @@ -5030,6 +5083,55 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1_unfreeze** +> str v1_unfreeze(name, namespace) + + + +Unfreeze a VirtualMachineInstance object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1_unfreeze(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1_unfreeze: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1_unpause** > str v1_unpause(name, namespace) @@ -5344,6 +5446,55 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3_freeze** +> str v1alpha3_freeze(name, namespace) + + + +Freeze a VirtualMachineInstance object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1alpha3_freeze(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_freeze: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3_get_sub_api_group** > K8sIoApimachineryPkgApisMetaV1APIGroup v1alpha3_get_sub_api_group() @@ -5774,6 +5925,55 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3_unfreeze** +> str v1alpha3_unfreeze(name, namespace) + + + +Unfreeze a VirtualMachineInstance object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1alpha3_unfreeze(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_unfreeze: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3_unpause** > str v1alpha3_unpause(name, namespace) diff --git a/git_push.sh b/git_push.sh index 6b25a3ff..e973f879 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.43.0-rc.0-212-gee5ea0f7a" + release_note="Auto-generated client v0.43.0-rc.0-279-gd32b8f964" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 903a5851..7a753001 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.43.0-rc.0-212-gee5ea0f7a/python' + self.user_agent = 'Swagger-Codegen/v0.43.0-rc.0-279-gd32b8f964/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index d364ef22..8a058dac 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -9835,6 +9835,109 @@ def v1_filesystemlist_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1_freeze(self, name, namespace, **kwargs): + """ + Freeze a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_freeze(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1_freeze_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1_freeze_with_http_info(name, namespace, **kwargs) + return data + + def v1_freeze_with_http_info(self, name, namespace, **kwargs): + """ + Freeze a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_freeze_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1_freeze" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1_freeze`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1_freeze`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1_guestfs(self, **kwargs): """ This method makes a synchronous HTTP request by default. To make an @@ -10662,6 +10765,109 @@ def v1_test_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1_unfreeze(self, name, namespace, **kwargs): + """ + Unfreeze a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_unfreeze(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1_unfreeze_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1_unfreeze_with_http_info(name, namespace, **kwargs) + return data + + def v1_unfreeze_with_http_info(self, name, namespace, **kwargs): + """ + Unfreeze a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_unfreeze_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1_unfreeze" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1_unfreeze`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1_unfreeze`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unfreeze', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1_unpause(self, name, namespace, **kwargs): """ Unpause a VirtualMachineInstance object. @@ -11349,6 +11555,109 @@ def v1alpha3_filesystemlist_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1alpha3_freeze(self, name, namespace, **kwargs): + """ + Freeze a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_freeze(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3_freeze_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1alpha3_freeze_with_http_info(name, namespace, **kwargs) + return data + + def v1alpha3_freeze_with_http_info(self, name, namespace, **kwargs): + """ + Freeze a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_freeze_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3_freeze" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_freeze`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_freeze`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1alpha3_get_sub_api_group(self, **kwargs): """ Get a KubeVirt API Group @@ -12268,6 +12577,109 @@ def v1alpha3_test_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1alpha3_unfreeze(self, name, namespace, **kwargs): + """ + Unfreeze a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_unfreeze(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3_unfreeze_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1alpha3_unfreeze_with_http_info(name, namespace, **kwargs) + return data + + def v1alpha3_unfreeze_with_http_info(self, name, namespace, **kwargs): + """ + Unfreeze a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_unfreeze_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3_unfreeze" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_unfreeze`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_unfreeze`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unfreeze', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1alpha3_unpause(self, name, namespace, **kwargs): """ Unpause a VirtualMachineInstance object. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 3c31f759..6360a7a8 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.43.0-rc.0-212-gee5ea0f7a".\ + "SDK Package Version: v0.43.0-rc.0-279-gd32b8f964".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index 9b7fa484..24e78af1 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.43.0-rc.0-212-gee5ea0f7a" +VERSION = "v0.43.0-rc.0-279-gd32b8f964" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 7b233856..21a3fe2c 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.43.0-rc.0-212-gee5ea0f7a" +"packageVersion": "v0.43.0-rc.0-279-gd32b8f964" } diff --git a/test/test_default_api.py b/test/test_default_api.py index a8188e39..62625a71 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -692,6 +692,14 @@ def test_v1_filesystemlist(self): Test case for v1_filesystemlist + """ + pass + + def test_v1_freeze(self): + """ + Test case for v1_freeze + + """ pass @@ -756,6 +764,14 @@ def test_v1_test(self): Test case for v1_test + """ + pass + + def test_v1_unfreeze(self): + """ + Test case for v1_unfreeze + + """ pass @@ -812,6 +828,14 @@ def test_v1alpha3_filesystemlist(self): Test case for v1alpha3_filesystemlist + """ + pass + + def test_v1alpha3_freeze(self): + """ + Test case for v1alpha3_freeze + + """ pass @@ -884,6 +908,14 @@ def test_v1alpha3_test(self): Test case for v1alpha3_test + """ + pass + + def test_v1alpha3_unfreeze(self): + """ + Test case for v1alpha3_unfreeze + + """ pass From 65e3ee6d791b7ddf5f36de95bdf6b18d46303fac Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 23 Jul 2021 21:31:25 +0000 Subject: [PATCH 215/521] Client Python update by KubeVirt Prow build 1418676547765669888 --- README.md | 2 +- .../V1VirtualMachineInstanceMigrationState.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...irtual_machine_instance_migration_state.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5f10a556..6f361e6f 100644 --- a/README.md +++ b/README.md @@ -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: v0.43.0-rc.0-279-gd32b8f964 +- Package version: v0.43.0-rc.0-298-gb46e128a2 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceMigrationState.md b/docs/V1VirtualMachineInstanceMigrationState.md index 05a75875..d68a91f2 100644 --- a/docs/V1VirtualMachineInstanceMigrationState.md +++ b/docs/V1VirtualMachineInstanceMigrationState.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **mode** | **str** | Lets us know if the vmi is currently running pre or post copy migration | [optional] **source_node** | **str** | The source node that the VMI originated on | [optional] **start_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | The time the migration action began | [optional] +**target_attachment_pod_uid** | **str** | The UID of the target attachment pod for hotplug volumes | [optional] **target_direct_migration_node_ports** | **dict(str, int)** | The list of ports opened for live migration on the destination node | [optional] **target_node** | **str** | The target node that the VMI is moving to | [optional] **target_node_address** | **str** | The address of the target node to use for the migration | [optional] diff --git a/git_push.sh b/git_push.sh index e973f879..08ac926f 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.43.0-rc.0-279-gd32b8f964" + release_note="Auto-generated client v0.43.0-rc.0-298-gb46e128a2" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 7a753001..4b5ec156 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.43.0-rc.0-279-gd32b8f964/python' + self.user_agent = 'Swagger-Codegen/v0.43.0-rc.0-298-gb46e128a2/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 6360a7a8..25076abb 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.43.0-rc.0-279-gd32b8f964".\ + "SDK Package Version: v0.43.0-rc.0-298-gb46e128a2".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_state.py b/kubevirt/models/v1_virtual_machine_instance_migration_state.py index 3e6360e1..701580a4 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_state.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_state.py @@ -40,6 +40,7 @@ class V1VirtualMachineInstanceMigrationState(object): 'mode': 'str', 'source_node': 'str', 'start_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', + 'target_attachment_pod_uid': 'str', 'target_direct_migration_node_ports': 'dict(str, int)', 'target_node': 'str', 'target_node_address': 'str', @@ -57,6 +58,7 @@ class V1VirtualMachineInstanceMigrationState(object): 'mode': 'mode', 'source_node': 'sourceNode', 'start_timestamp': 'startTimestamp', + 'target_attachment_pod_uid': 'targetAttachmentPodUID', 'target_direct_migration_node_ports': 'targetDirectMigrationNodePorts', 'target_node': 'targetNode', 'target_node_address': 'targetNodeAddress', @@ -64,7 +66,7 @@ class V1VirtualMachineInstanceMigrationState(object): 'target_pod': 'targetPod' } - def __init__(self, abort_requested=None, abort_status=None, completed=None, end_timestamp=None, failed=None, migration_uid=None, mode=None, source_node=None, start_timestamp=None, target_direct_migration_node_ports=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_pod=None): + def __init__(self, abort_requested=None, abort_status=None, completed=None, end_timestamp=None, failed=None, migration_uid=None, mode=None, source_node=None, start_timestamp=None, target_attachment_pod_uid=None, target_direct_migration_node_ports=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_pod=None): """ V1VirtualMachineInstanceMigrationState - a model defined in Swagger """ @@ -78,6 +80,7 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self._mode = None self._source_node = None self._start_timestamp = None + self._target_attachment_pod_uid = None self._target_direct_migration_node_ports = None self._target_node = None self._target_node_address = None @@ -102,6 +105,8 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self.source_node = source_node if start_timestamp is not None: self.start_timestamp = start_timestamp + if target_attachment_pod_uid is not None: + self.target_attachment_pod_uid = target_attachment_pod_uid if target_direct_migration_node_ports is not None: self.target_direct_migration_node_ports = target_direct_migration_node_ports if target_node is not None: @@ -320,6 +325,29 @@ def start_timestamp(self, start_timestamp): self._start_timestamp = start_timestamp + @property + def target_attachment_pod_uid(self): + """ + Gets the target_attachment_pod_uid of this V1VirtualMachineInstanceMigrationState. + The UID of the target attachment pod for hotplug volumes + + :return: The target_attachment_pod_uid of this V1VirtualMachineInstanceMigrationState. + :rtype: str + """ + return self._target_attachment_pod_uid + + @target_attachment_pod_uid.setter + def target_attachment_pod_uid(self, target_attachment_pod_uid): + """ + Sets the target_attachment_pod_uid of this V1VirtualMachineInstanceMigrationState. + The UID of the target attachment pod for hotplug volumes + + :param target_attachment_pod_uid: The target_attachment_pod_uid of this V1VirtualMachineInstanceMigrationState. + :type: str + """ + + self._target_attachment_pod_uid = target_attachment_pod_uid + @property def target_direct_migration_node_ports(self): """ diff --git a/setup.py b/setup.py index 24e78af1..50d0d08d 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.43.0-rc.0-279-gd32b8f964" +VERSION = "v0.43.0-rc.0-298-gb46e128a2" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 21a3fe2c..b1107ff2 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.43.0-rc.0-279-gd32b8f964" +"packageVersion": "v0.43.0-rc.0-298-gb46e128a2" } From 55632536b168535f7c41d5b6358cb0682173dafb Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 27 Jul 2021 19:23:30 +0000 Subject: [PATCH 216/521] Client Python update by KubeVirt Prow build 1420092936552452096 --- README.md | 3 +- docs/V1VirtualMachineStartFailure.md | 12 ++ docs/V1VirtualMachineStatus.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + .../v1_virtual_machine_start_failure.py | 175 ++++++++++++++++++ kubevirt/models/v1_virtual_machine_status.py | 30 ++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_virtual_machine_start_failure.py | 44 +++++ 14 files changed, 273 insertions(+), 7 deletions(-) create mode 100644 docs/V1VirtualMachineStartFailure.md create mode 100644 kubevirt/models/v1_virtual_machine_start_failure.py create mode 100644 test/test_v1_virtual_machine_start_failure.py diff --git a/README.md b/README.md index 6f361e6f..0219f23f 100644 --- a/README.md +++ b/README.md @@ -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: v0.43.0-rc.0-298-gb46e128a2 +- Package version: v0.43.0-rc.0-335-g2a46763e9 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -432,6 +432,7 @@ Class | Method | HTTP request | Description - [V1VirtualMachineInstanceTemplateSpec](docs/V1VirtualMachineInstanceTemplateSpec.md) - [V1VirtualMachineList](docs/V1VirtualMachineList.md) - [V1VirtualMachineSpec](docs/V1VirtualMachineSpec.md) + - [V1VirtualMachineStartFailure](docs/V1VirtualMachineStartFailure.md) - [V1VirtualMachineStateChangeRequest](docs/V1VirtualMachineStateChangeRequest.md) - [V1VirtualMachineStatus](docs/V1VirtualMachineStatus.md) - [V1VirtualMachineVolumeRequest](docs/V1VirtualMachineVolumeRequest.md) diff --git a/docs/V1VirtualMachineStartFailure.md b/docs/V1VirtualMachineStartFailure.md new file mode 100644 index 00000000..3e889d23 --- /dev/null +++ b/docs/V1VirtualMachineStartFailure.md @@ -0,0 +1,12 @@ +# V1VirtualMachineStartFailure + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**consecutive_fail_count** | **int** | | [optional] +**last_failed_vmiuid** | **str** | | [optional] +**retry_after_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineStatus.md b/docs/V1VirtualMachineStatus.md index 64857b5d..aff2565f 100644 --- a/docs/V1VirtualMachineStatus.md +++ b/docs/V1VirtualMachineStatus.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **printable_status** | **str** | PrintableStatus is a human readable, high-level representation of the status of the virtual machine | [optional] **ready** | **bool** | Ready indicates if the virtual machine is running and ready | [optional] **snapshot_in_progress** | **str** | SnapshotInProgress is the name of the VirtualMachineSnapshot currently executing | [optional] +**start_failure** | [**V1VirtualMachineStartFailure**](V1VirtualMachineStartFailure.md) | StartFailure tracks consecutive VMI startup failures for the purposes of crash loop backoffs | [optional] **state_change_requests** | [**list[V1VirtualMachineStateChangeRequest]**](V1VirtualMachineStateChangeRequest.md) | StateChangeRequests indicates a list of actions that should be taken on a VMI e.g. stop a specific VMI then start a new one. | [optional] **volume_requests** | [**list[V1VirtualMachineVolumeRequest]**](V1VirtualMachineVolumeRequest.md) | VolumeRequests indicates a list of volumes add or remove from the VMI template and hotplug on an active running VMI. | [optional] **volume_snapshot_statuses** | [**list[V1VolumeSnapshotStatus]**](V1VolumeSnapshotStatus.md) | VolumeSnapshotStatuses indicates a list of statuses whether snapshotting is supported by each volume. | [optional] diff --git a/git_push.sh b/git_push.sh index 08ac926f..427b8585 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.43.0-rc.0-298-gb46e128a2" + release_note="Auto-generated client v0.43.0-rc.0-335-g2a46763e9" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index becdfca8..e1fc9537 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -634,6 +634,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_virtual_machine_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_start_failure.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_start_failure.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineStartFailure.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_state_change_request.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_state_change_request.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineStateChangeRequest.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 7e630aaa..25655622 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -219,6 +219,7 @@ from .models.v1_virtual_machine_instance_template_spec import V1VirtualMachineInstanceTemplateSpec from .models.v1_virtual_machine_list import V1VirtualMachineList from .models.v1_virtual_machine_spec import V1VirtualMachineSpec +from .models.v1_virtual_machine_start_failure import V1VirtualMachineStartFailure from .models.v1_virtual_machine_state_change_request import V1VirtualMachineStateChangeRequest from .models.v1_virtual_machine_status import V1VirtualMachineStatus from .models.v1_virtual_machine_volume_request import V1VirtualMachineVolumeRequest diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 4b5ec156..3e53f010 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.43.0-rc.0-298-gb46e128a2/python' + self.user_agent = 'Swagger-Codegen/v0.43.0-rc.0-335-g2a46763e9/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 25076abb..9fedb625 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.43.0-rc.0-298-gb46e128a2".\ + "SDK Package Version: v0.43.0-rc.0-335-g2a46763e9".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 8ec7e617..f37d5a48 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -219,6 +219,7 @@ from .v1_virtual_machine_instance_template_spec import V1VirtualMachineInstanceTemplateSpec from .v1_virtual_machine_list import V1VirtualMachineList from .v1_virtual_machine_spec import V1VirtualMachineSpec +from .v1_virtual_machine_start_failure import V1VirtualMachineStartFailure from .v1_virtual_machine_state_change_request import V1VirtualMachineStateChangeRequest from .v1_virtual_machine_status import V1VirtualMachineStatus from .v1_virtual_machine_volume_request import V1VirtualMachineVolumeRequest diff --git a/kubevirt/models/v1_virtual_machine_start_failure.py b/kubevirt/models/v1_virtual_machine_start_failure.py new file mode 100644 index 00000000..5df09573 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_start_failure.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineStartFailure(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'consecutive_fail_count': 'int', + 'last_failed_vmiuid': 'str', + 'retry_after_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time' + } + + attribute_map = { + 'consecutive_fail_count': 'consecutiveFailCount', + 'last_failed_vmiuid': 'lastFailedVMIUID', + 'retry_after_timestamp': 'retryAfterTimestamp' + } + + def __init__(self, consecutive_fail_count=None, last_failed_vmiuid=None, retry_after_timestamp=None): + """ + V1VirtualMachineStartFailure - a model defined in Swagger + """ + + self._consecutive_fail_count = None + self._last_failed_vmiuid = None + self._retry_after_timestamp = None + + if consecutive_fail_count is not None: + self.consecutive_fail_count = consecutive_fail_count + if last_failed_vmiuid is not None: + self.last_failed_vmiuid = last_failed_vmiuid + if retry_after_timestamp is not None: + self.retry_after_timestamp = retry_after_timestamp + + @property + def consecutive_fail_count(self): + """ + Gets the consecutive_fail_count of this V1VirtualMachineStartFailure. + + :return: The consecutive_fail_count of this V1VirtualMachineStartFailure. + :rtype: int + """ + return self._consecutive_fail_count + + @consecutive_fail_count.setter + def consecutive_fail_count(self, consecutive_fail_count): + """ + Sets the consecutive_fail_count of this V1VirtualMachineStartFailure. + + :param consecutive_fail_count: The consecutive_fail_count of this V1VirtualMachineStartFailure. + :type: int + """ + + self._consecutive_fail_count = consecutive_fail_count + + @property + def last_failed_vmiuid(self): + """ + Gets the last_failed_vmiuid of this V1VirtualMachineStartFailure. + + :return: The last_failed_vmiuid of this V1VirtualMachineStartFailure. + :rtype: str + """ + return self._last_failed_vmiuid + + @last_failed_vmiuid.setter + def last_failed_vmiuid(self, last_failed_vmiuid): + """ + Sets the last_failed_vmiuid of this V1VirtualMachineStartFailure. + + :param last_failed_vmiuid: The last_failed_vmiuid of this V1VirtualMachineStartFailure. + :type: str + """ + + self._last_failed_vmiuid = last_failed_vmiuid + + @property + def retry_after_timestamp(self): + """ + Gets the retry_after_timestamp of this V1VirtualMachineStartFailure. + + :return: The retry_after_timestamp of this V1VirtualMachineStartFailure. + :rtype: K8sIoApimachineryPkgApisMetaV1Time + """ + return self._retry_after_timestamp + + @retry_after_timestamp.setter + def retry_after_timestamp(self, retry_after_timestamp): + """ + Sets the retry_after_timestamp of this V1VirtualMachineStartFailure. + + :param retry_after_timestamp: The retry_after_timestamp of this V1VirtualMachineStartFailure. + :type: K8sIoApimachineryPkgApisMetaV1Time + """ + + self._retry_after_timestamp = retry_after_timestamp + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineStartFailure): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_status.py b/kubevirt/models/v1_virtual_machine_status.py index f2b8f50a..45a5b2e7 100644 --- a/kubevirt/models/v1_virtual_machine_status.py +++ b/kubevirt/models/v1_virtual_machine_status.py @@ -36,6 +36,7 @@ class V1VirtualMachineStatus(object): 'printable_status': 'str', 'ready': 'bool', 'snapshot_in_progress': 'str', + 'start_failure': 'V1VirtualMachineStartFailure', 'state_change_requests': 'list[V1VirtualMachineStateChangeRequest]', 'volume_requests': 'list[V1VirtualMachineVolumeRequest]', 'volume_snapshot_statuses': 'list[V1VolumeSnapshotStatus]' @@ -47,12 +48,13 @@ class V1VirtualMachineStatus(object): 'printable_status': 'printableStatus', 'ready': 'ready', 'snapshot_in_progress': 'snapshotInProgress', + 'start_failure': 'startFailure', 'state_change_requests': 'stateChangeRequests', 'volume_requests': 'volumeRequests', 'volume_snapshot_statuses': 'volumeSnapshotStatuses' } - def __init__(self, conditions=None, created=None, printable_status=None, ready=None, snapshot_in_progress=None, state_change_requests=None, volume_requests=None, volume_snapshot_statuses=None): + def __init__(self, conditions=None, created=None, printable_status=None, ready=None, snapshot_in_progress=None, start_failure=None, state_change_requests=None, volume_requests=None, volume_snapshot_statuses=None): """ V1VirtualMachineStatus - a model defined in Swagger """ @@ -62,6 +64,7 @@ def __init__(self, conditions=None, created=None, printable_status=None, ready=N self._printable_status = None self._ready = None self._snapshot_in_progress = None + self._start_failure = None self._state_change_requests = None self._volume_requests = None self._volume_snapshot_statuses = None @@ -76,6 +79,8 @@ def __init__(self, conditions=None, created=None, printable_status=None, ready=N self.ready = ready if snapshot_in_progress is not None: self.snapshot_in_progress = snapshot_in_progress + if start_failure is not None: + self.start_failure = start_failure if state_change_requests is not None: self.state_change_requests = state_change_requests if volume_requests is not None: @@ -198,6 +203,29 @@ def snapshot_in_progress(self, snapshot_in_progress): self._snapshot_in_progress = snapshot_in_progress + @property + def start_failure(self): + """ + Gets the start_failure of this V1VirtualMachineStatus. + StartFailure tracks consecutive VMI startup failures for the purposes of crash loop backoffs + + :return: The start_failure of this V1VirtualMachineStatus. + :rtype: V1VirtualMachineStartFailure + """ + return self._start_failure + + @start_failure.setter + def start_failure(self, start_failure): + """ + Sets the start_failure of this V1VirtualMachineStatus. + StartFailure tracks consecutive VMI startup failures for the purposes of crash loop backoffs + + :param start_failure: The start_failure of this V1VirtualMachineStatus. + :type: V1VirtualMachineStartFailure + """ + + self._start_failure = start_failure + @property def state_change_requests(self): """ diff --git a/setup.py b/setup.py index 50d0d08d..405066b8 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.43.0-rc.0-298-gb46e128a2" +VERSION = "v0.43.0-rc.0-335-g2a46763e9" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b1107ff2..2ce7b035 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.43.0-rc.0-298-gb46e128a2" +"packageVersion": "v0.43.0-rc.0-335-g2a46763e9" } diff --git a/test/test_v1_virtual_machine_start_failure.py b/test/test_v1_virtual_machine_start_failure.py new file mode 100644 index 00000000..2a281e86 --- /dev/null +++ b/test/test_v1_virtual_machine_start_failure.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_start_failure import V1VirtualMachineStartFailure + + +class TestV1VirtualMachineStartFailure(unittest.TestCase): + """ V1VirtualMachineStartFailure unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineStartFailure(self): + """ + Test V1VirtualMachineStartFailure + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_start_failure.V1VirtualMachineStartFailure() + pass + + +if __name__ == '__main__': + unittest.main() From 56e7702d1a3369ec8906b1e5ff161838402f24df Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 30 Jul 2021 00:16:46 +0000 Subject: [PATCH 217/521] Client Python update by KubeVirt Prow build 1420892177323528192 --- README.md | 2 +- docs/V1KubeVirtConfiguration.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_kube_virt_configuration.py | 32 +++++++++++++++++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 0219f23f..b7947eb0 100644 --- a/README.md +++ b/README.md @@ -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: v0.43.0-rc.0-335-g2a46763e9 +- Package version: v0.43.0-rc.0-362-g573276acf - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index 7d662eef..643e5910 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -20,6 +20,7 @@ Name | Type | Description | Notes **selinux_launcher_type** | **str** | | [optional] **smbios** | [**V1SMBiosConfiguration**](V1SMBiosConfiguration.md) | | [optional] **supported_guest_agent_versions** | **list[str]** | deprecated | [optional] +**virtual_machine_instances_per_node** | **int** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 427b8585..74c17b60 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.43.0-rc.0-335-g2a46763e9" + release_note="Auto-generated client v0.43.0-rc.0-362-g573276acf" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 3e53f010..7d276bba 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.43.0-rc.0-335-g2a46763e9/python' + self.user_agent = 'Swagger-Codegen/v0.43.0-rc.0-362-g573276acf/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 9fedb625..a2db8f1e 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.43.0-rc.0-335-g2a46763e9".\ + "SDK Package Version: v0.43.0-rc.0-362-g573276acf".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index 859475d2..2e8c172c 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -47,7 +47,8 @@ class V1KubeVirtConfiguration(object): 'permitted_host_devices': 'V1PermittedHostDevices', 'selinux_launcher_type': 'str', 'smbios': 'V1SMBiosConfiguration', - 'supported_guest_agent_versions': 'list[str]' + 'supported_guest_agent_versions': 'list[str]', + 'virtual_machine_instances_per_node': 'int' } attribute_map = { @@ -67,10 +68,11 @@ class V1KubeVirtConfiguration(object): 'permitted_host_devices': 'permittedHostDevices', 'selinux_launcher_type': 'selinuxLauncherType', 'smbios': 'smbios', - 'supported_guest_agent_versions': 'supportedGuestAgentVersions' + 'supported_guest_agent_versions': 'supportedGuestAgentVersions', + 'virtual_machine_instances_per_node': 'virtualMachineInstancesPerNode' } - def __init__(self, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, image_pull_policy=None, machine_type=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, selinux_launcher_type=None, smbios=None, supported_guest_agent_versions=None): + def __init__(self, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, image_pull_policy=None, machine_type=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, selinux_launcher_type=None, smbios=None, supported_guest_agent_versions=None, virtual_machine_instances_per_node=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ @@ -92,6 +94,7 @@ def __init__(self, cpu_model=None, cpu_request=None, default_runtime_class=None, self._selinux_launcher_type = None self._smbios = None self._supported_guest_agent_versions = None + self._virtual_machine_instances_per_node = None if cpu_model is not None: self.cpu_model = cpu_model @@ -127,6 +130,8 @@ def __init__(self, cpu_model=None, cpu_request=None, default_runtime_class=None, self.smbios = smbios if supported_guest_agent_versions is not None: self.supported_guest_agent_versions = supported_guest_agent_versions + if virtual_machine_instances_per_node is not None: + self.virtual_machine_instances_per_node = virtual_machine_instances_per_node @property def cpu_model(self): @@ -487,6 +492,27 @@ def supported_guest_agent_versions(self, supported_guest_agent_versions): self._supported_guest_agent_versions = supported_guest_agent_versions + @property + def virtual_machine_instances_per_node(self): + """ + Gets the virtual_machine_instances_per_node of this V1KubeVirtConfiguration. + + :return: The virtual_machine_instances_per_node of this V1KubeVirtConfiguration. + :rtype: int + """ + return self._virtual_machine_instances_per_node + + @virtual_machine_instances_per_node.setter + def virtual_machine_instances_per_node(self, virtual_machine_instances_per_node): + """ + Sets the virtual_machine_instances_per_node of this V1KubeVirtConfiguration. + + :param virtual_machine_instances_per_node: The virtual_machine_instances_per_node of this V1KubeVirtConfiguration. + :type: int + """ + + self._virtual_machine_instances_per_node = virtual_machine_instances_per_node + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 405066b8..62810bf7 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.43.0-rc.0-335-g2a46763e9" +VERSION = "v0.43.0-rc.0-362-g573276acf" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 2ce7b035..1679a8fa 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.43.0-rc.0-335-g2a46763e9" +"packageVersion": "v0.43.0-rc.0-362-g573276acf" } From 490f18da31f192bb8a91f710596fd7bf554fbad0 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 3 Aug 2021 12:44:20 +0000 Subject: [PATCH 218/521] Client Python update by KubeVirt Prow build 1422527957993263104 --- README.md | 2 +- docs/V1PciHostDevice.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_pci_host_device.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index b7947eb0..b1773951 100644 --- a/README.md +++ b/README.md @@ -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: v0.43.0-rc.0-362-g573276acf +- Package version: v0.44.0-rc.0-12-g9d53df4ec - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1PciHostDevice.md b/docs/V1PciHostDevice.md index 9af5d9b6..fddece00 100644 --- a/docs/V1PciHostDevice.md +++ b/docs/V1PciHostDevice.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **external_resource_provider** | **bool** | If true, KubeVirt will leave the allocation and monitoring to an external device plugin | [optional] -**pci_vendor_selector** | **str** | The vendor_id:product_id tupple of the PCI device | +**pci_vendor_selector** | **str** | The vendor_id:product_id tuple of the PCI device | **resource_name** | **str** | The name of the resource that is representing the device. Exposed by a device plugin and requested by VMs. Typically of the form vendor.com/product_nameThe name of the resource that is representing the device. Exposed by a device plugin and requested by VMs. Typically of the form vendor.com/product_name | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 74c17b60..341c5c0d 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.43.0-rc.0-362-g573276acf" + release_note="Auto-generated client v0.44.0-rc.0-12-g9d53df4ec" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 7d276bba..5f672fac 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.43.0-rc.0-362-g573276acf/python' + self.user_agent = 'Swagger-Codegen/v0.44.0-rc.0-12-g9d53df4ec/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index a2db8f1e..cc364b06 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.43.0-rc.0-362-g573276acf".\ + "SDK Package Version: v0.44.0-rc.0-12-g9d53df4ec".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_pci_host_device.py b/kubevirt/models/v1_pci_host_device.py index 79cd11e9..eb230787 100644 --- a/kubevirt/models/v1_pci_host_device.py +++ b/kubevirt/models/v1_pci_host_device.py @@ -83,7 +83,7 @@ def external_resource_provider(self, external_resource_provider): def pci_vendor_selector(self): """ Gets the pci_vendor_selector of this V1PciHostDevice. - The vendor_id:product_id tupple of the PCI device + The vendor_id:product_id tuple of the PCI device :return: The pci_vendor_selector of this V1PciHostDevice. :rtype: str @@ -94,7 +94,7 @@ def pci_vendor_selector(self): def pci_vendor_selector(self, pci_vendor_selector): """ Sets the pci_vendor_selector of this V1PciHostDevice. - The vendor_id:product_id tupple of the PCI device + The vendor_id:product_id tuple of the PCI device :param pci_vendor_selector: The pci_vendor_selector of this V1PciHostDevice. :type: str diff --git a/setup.py b/setup.py index 62810bf7..4bb1abfa 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.43.0-rc.0-362-g573276acf" +VERSION = "v0.44.0-rc.0-12-g9d53df4ec" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 1679a8fa..3624c243 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.43.0-rc.0-362-g573276acf" +"packageVersion": "v0.44.0-rc.0-12-g9d53df4ec" } From 577ba84504086b8f09fa2306b0c14feacffbf499 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 3 Aug 2021 23:57:05 +0000 Subject: [PATCH 219/521] Client Python update by KubeVirt Prow build 1422699899002032128 --- README.md | 2 +- docs/V1alpha1VirtualMachineSnapshotSpec.md | 1 + docs/V1alpha1VirtualMachineSnapshotStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1alpha1_virtual_machine_snapshot_spec.py | 30 ++++++++++++++++++- ...1alpha1_virtual_machine_snapshot_status.py | 28 ++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 64 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index b1773951..7b1d370b 100644 --- a/README.md +++ b/README.md @@ -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: v0.44.0-rc.0-12-g9d53df4ec +- Package version: v0.44.0-rc.0-24-g21b3bf47a - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1alpha1VirtualMachineSnapshotSpec.md b/docs/V1alpha1VirtualMachineSnapshotSpec.md index 36e96096..bf08744c 100644 --- a/docs/V1alpha1VirtualMachineSnapshotSpec.md +++ b/docs/V1alpha1VirtualMachineSnapshotSpec.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **deletion_policy** | **str** | | [optional] +**failure_deadline** | [**K8sIoApimachineryPkgApisMetaV1Duration**](K8sIoApimachineryPkgApisMetaV1Duration.md) | This time represents the number of seconds we permit the vm snapshot to take. In case we pass this deadline we mark this snapshot as failed. Defaults to DefaultFailureDeadline - 5min | [optional] **source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineSnapshotStatus.md b/docs/V1alpha1VirtualMachineSnapshotStatus.md index 4828c205..65fe5911 100644 --- a/docs/V1alpha1VirtualMachineSnapshotStatus.md +++ b/docs/V1alpha1VirtualMachineSnapshotStatus.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **creation_time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | | [optional] **error** | [**V1alpha1Error**](V1alpha1Error.md) | | [optional] **indications** | **list[str]** | | [optional] +**phase** | **str** | | [optional] **ready_to_use** | **bool** | | [optional] **source_uid** | **str** | | [optional] **virtual_machine_snapshot_content_name** | **str** | | [optional] diff --git a/git_push.sh b/git_push.sh index 341c5c0d..cd065e24 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.44.0-rc.0-12-g9d53df4ec" + release_note="Auto-generated client v0.44.0-rc.0-24-g21b3bf47a" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 5f672fac..5a6ec44d 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.44.0-rc.0-12-g9d53df4ec/python' + self.user_agent = 'Swagger-Codegen/v0.44.0-rc.0-24-g21b3bf47a/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index cc364b06..becf0d0f 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.44.0-rc.0-12-g9d53df4ec".\ + "SDK Package Version: v0.44.0-rc.0-24-g21b3bf47a".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_spec.py b/kubevirt/models/v1alpha1_virtual_machine_snapshot_spec.py index 87fd359a..073bd39c 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_snapshot_spec.py +++ b/kubevirt/models/v1alpha1_virtual_machine_snapshot_spec.py @@ -32,24 +32,29 @@ class V1alpha1VirtualMachineSnapshotSpec(object): """ swagger_types = { 'deletion_policy': 'str', + 'failure_deadline': 'K8sIoApimachineryPkgApisMetaV1Duration', 'source': 'K8sIoApiCoreV1TypedLocalObjectReference' } attribute_map = { 'deletion_policy': 'deletionPolicy', + 'failure_deadline': 'failureDeadline', 'source': 'source' } - def __init__(self, deletion_policy=None, source=None): + def __init__(self, deletion_policy=None, failure_deadline=None, source=None): """ V1alpha1VirtualMachineSnapshotSpec - a model defined in Swagger """ self._deletion_policy = None + self._failure_deadline = None self._source = None if deletion_policy is not None: self.deletion_policy = deletion_policy + if failure_deadline is not None: + self.failure_deadline = failure_deadline self.source = source @property @@ -73,6 +78,29 @@ def deletion_policy(self, deletion_policy): self._deletion_policy = deletion_policy + @property + def failure_deadline(self): + """ + Gets the failure_deadline of this V1alpha1VirtualMachineSnapshotSpec. + This time represents the number of seconds we permit the vm snapshot to take. In case we pass this deadline we mark this snapshot as failed. Defaults to DefaultFailureDeadline - 5min + + :return: The failure_deadline of this V1alpha1VirtualMachineSnapshotSpec. + :rtype: K8sIoApimachineryPkgApisMetaV1Duration + """ + return self._failure_deadline + + @failure_deadline.setter + def failure_deadline(self, failure_deadline): + """ + Sets the failure_deadline of this V1alpha1VirtualMachineSnapshotSpec. + This time represents the number of seconds we permit the vm snapshot to take. In case we pass this deadline we mark this snapshot as failed. Defaults to DefaultFailureDeadline - 5min + + :param failure_deadline: The failure_deadline of this V1alpha1VirtualMachineSnapshotSpec. + :type: K8sIoApimachineryPkgApisMetaV1Duration + """ + + self._failure_deadline = failure_deadline + @property def source(self): """ diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py b/kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py index a9702a51..17f5c9ef 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py +++ b/kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py @@ -35,6 +35,7 @@ class V1alpha1VirtualMachineSnapshotStatus(object): 'creation_time': 'K8sIoApimachineryPkgApisMetaV1Time', 'error': 'V1alpha1Error', 'indications': 'list[str]', + 'phase': 'str', 'ready_to_use': 'bool', 'source_uid': 'str', 'virtual_machine_snapshot_content_name': 'str' @@ -45,12 +46,13 @@ class V1alpha1VirtualMachineSnapshotStatus(object): 'creation_time': 'creationTime', 'error': 'error', 'indications': 'indications', + 'phase': 'phase', 'ready_to_use': 'readyToUse', 'source_uid': 'sourceUID', 'virtual_machine_snapshot_content_name': 'virtualMachineSnapshotContentName' } - def __init__(self, conditions=None, creation_time=None, error=None, indications=None, ready_to_use=None, source_uid=None, virtual_machine_snapshot_content_name=None): + def __init__(self, conditions=None, creation_time=None, error=None, indications=None, phase=None, ready_to_use=None, source_uid=None, virtual_machine_snapshot_content_name=None): """ V1alpha1VirtualMachineSnapshotStatus - a model defined in Swagger """ @@ -59,6 +61,7 @@ def __init__(self, conditions=None, creation_time=None, error=None, indications= self._creation_time = None self._error = None self._indications = None + self._phase = None self._ready_to_use = None self._source_uid = None self._virtual_machine_snapshot_content_name = None @@ -71,6 +74,8 @@ def __init__(self, conditions=None, creation_time=None, error=None, indications= self.error = error if indications is not None: self.indications = indications + if phase is not None: + self.phase = phase if ready_to_use is not None: self.ready_to_use = ready_to_use if source_uid is not None: @@ -162,6 +167,27 @@ def indications(self, indications): self._indications = indications + @property + def phase(self): + """ + Gets the phase of this V1alpha1VirtualMachineSnapshotStatus. + + :return: The phase of this V1alpha1VirtualMachineSnapshotStatus. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """ + Sets the phase of this V1alpha1VirtualMachineSnapshotStatus. + + :param phase: The phase of this V1alpha1VirtualMachineSnapshotStatus. + :type: str + """ + + self._phase = phase + @property def ready_to_use(self): """ diff --git a/setup.py b/setup.py index 4bb1abfa..f566b700 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.44.0-rc.0-12-g9d53df4ec" +VERSION = "v0.44.0-rc.0-24-g21b3bf47a" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 3624c243..d86db2cb 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.44.0-rc.0-12-g9d53df4ec" +"packageVersion": "v0.44.0-rc.0-24-g21b3bf47a" } From e25fec153d10120679237ebb5f1ce1528606020a Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 12 Aug 2021 15:37:17 +0000 Subject: [PATCH 220/521] Client Python update by KubeVirt Prow build 1425834558590291968 --- README.md | 3 +- docs/V1KubeVirtConfiguration.md | 1 + docs/V1MediatedDevicesConfiguration.md | 10 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_kube_virt_configuration.py | 28 +++- .../v1_mediated_devices_configuration.py | 123 ++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- .../test_v1_mediated_devices_configuration.py | 44 +++++++ 14 files changed, 217 insertions(+), 7 deletions(-) create mode 100644 docs/V1MediatedDevicesConfiguration.md create mode 100644 kubevirt/models/v1_mediated_devices_configuration.py create mode 100644 test/test_v1_mediated_devices_configuration.py diff --git a/README.md b/README.md index 7b1d370b..e328f7ec 100644 --- a/README.md +++ b/README.md @@ -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: v0.44.0-rc.0-24-g21b3bf47a +- Package version: v0.44.0-129-g3530113d2 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -363,6 +363,7 @@ Class | Method | HTTP request | Description - [V1LogVerbosity](docs/V1LogVerbosity.md) - [V1LunTarget](docs/V1LunTarget.md) - [V1Machine](docs/V1Machine.md) + - [V1MediatedDevicesConfiguration](docs/V1MediatedDevicesConfiguration.md) - [V1MediatedHostDevice](docs/V1MediatedHostDevice.md) - [V1Memory](docs/V1Memory.md) - [V1MigrationConfiguration](docs/V1MigrationConfiguration.md) diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index 643e5910..f30e08a2 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **emulated_machines** | **list[str]** | | [optional] **image_pull_policy** | **str** | | [optional] **machine_type** | **str** | | [optional] +**mediated_devices_configuration** | [**V1MediatedDevicesConfiguration**](V1MediatedDevicesConfiguration.md) | | [optional] **mem_balloon_stats_period** | **int** | | [optional] **migrations** | [**V1MigrationConfiguration**](V1MigrationConfiguration.md) | | [optional] **min_cpu_model** | **str** | | [optional] diff --git a/docs/V1MediatedDevicesConfiguration.md b/docs/V1MediatedDevicesConfiguration.md new file mode 100644 index 00000000..05cc6ee0 --- /dev/null +++ b/docs/V1MediatedDevicesConfiguration.md @@ -0,0 +1,10 @@ +# V1MediatedDevicesConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mediated_devices_types** | **list[str]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index cd065e24..9529c70a 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.44.0-rc.0-24-g21b3bf47a" + release_note="Auto-generated client v0.44.0-129-g3530113d2" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index e1fc9537..3dd9e2e0 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -427,6 +427,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_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Machine.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_mediated_devices_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_mediated_devices_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1MediatedDevicesConfiguration.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_mediated_host_device.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_mediated_host_device.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1MediatedHostDevice.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 25655622..6546df93 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -150,6 +150,7 @@ from .models.v1_log_verbosity import V1LogVerbosity from .models.v1_lun_target import V1LunTarget from .models.v1_machine import V1Machine +from .models.v1_mediated_devices_configuration import V1MediatedDevicesConfiguration from .models.v1_mediated_host_device import V1MediatedHostDevice from .models.v1_memory import V1Memory from .models.v1_migration_configuration import V1MigrationConfiguration diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 5a6ec44d..c5254899 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.44.0-rc.0-24-g21b3bf47a/python' + self.user_agent = 'Swagger-Codegen/v0.44.0-129-g3530113d2/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index becf0d0f..ddc497f4 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.44.0-rc.0-24-g21b3bf47a".\ + "SDK Package Version: v0.44.0-129-g3530113d2".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index f37d5a48..a978abac 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -150,6 +150,7 @@ from .v1_log_verbosity import V1LogVerbosity from .v1_lun_target import V1LunTarget from .v1_machine import V1Machine +from .v1_mediated_devices_configuration import V1MediatedDevicesConfiguration from .v1_mediated_host_device import V1MediatedHostDevice from .v1_memory import V1Memory from .v1_migration_configuration import V1MigrationConfiguration diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index 2e8c172c..7b7d7f1a 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -38,6 +38,7 @@ class V1KubeVirtConfiguration(object): 'emulated_machines': 'list[str]', 'image_pull_policy': 'str', 'machine_type': 'str', + 'mediated_devices_configuration': 'V1MediatedDevicesConfiguration', 'mem_balloon_stats_period': 'int', 'migrations': 'V1MigrationConfiguration', 'min_cpu_model': 'str', @@ -59,6 +60,7 @@ class V1KubeVirtConfiguration(object): 'emulated_machines': 'emulatedMachines', 'image_pull_policy': 'imagePullPolicy', 'machine_type': 'machineType', + 'mediated_devices_configuration': 'mediatedDevicesConfiguration', 'mem_balloon_stats_period': 'memBalloonStatsPeriod', 'migrations': 'migrations', 'min_cpu_model': 'minCPUModel', @@ -72,7 +74,7 @@ class V1KubeVirtConfiguration(object): 'virtual_machine_instances_per_node': 'virtualMachineInstancesPerNode' } - def __init__(self, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, image_pull_policy=None, machine_type=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, selinux_launcher_type=None, smbios=None, supported_guest_agent_versions=None, virtual_machine_instances_per_node=None): + def __init__(self, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, image_pull_policy=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, selinux_launcher_type=None, smbios=None, supported_guest_agent_versions=None, virtual_machine_instances_per_node=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ @@ -84,6 +86,7 @@ def __init__(self, cpu_model=None, cpu_request=None, default_runtime_class=None, self._emulated_machines = None self._image_pull_policy = None self._machine_type = None + self._mediated_devices_configuration = None self._mem_balloon_stats_period = None self._migrations = None self._min_cpu_model = None @@ -110,6 +113,8 @@ def __init__(self, cpu_model=None, cpu_request=None, default_runtime_class=None, self.image_pull_policy = image_pull_policy if machine_type is not None: self.machine_type = machine_type + if mediated_devices_configuration is not None: + self.mediated_devices_configuration = mediated_devices_configuration if mem_balloon_stats_period is not None: self.mem_balloon_stats_period = mem_balloon_stats_period if migrations is not None: @@ -280,6 +285,27 @@ def machine_type(self, machine_type): self._machine_type = machine_type + @property + def mediated_devices_configuration(self): + """ + Gets the mediated_devices_configuration of this V1KubeVirtConfiguration. + + :return: The mediated_devices_configuration of this V1KubeVirtConfiguration. + :rtype: V1MediatedDevicesConfiguration + """ + return self._mediated_devices_configuration + + @mediated_devices_configuration.setter + def mediated_devices_configuration(self, mediated_devices_configuration): + """ + Sets the mediated_devices_configuration of this V1KubeVirtConfiguration. + + :param mediated_devices_configuration: The mediated_devices_configuration of this V1KubeVirtConfiguration. + :type: V1MediatedDevicesConfiguration + """ + + self._mediated_devices_configuration = mediated_devices_configuration + @property def mem_balloon_stats_period(self): """ diff --git a/kubevirt/models/v1_mediated_devices_configuration.py b/kubevirt/models/v1_mediated_devices_configuration.py new file mode 100644 index 00000000..d0dcd10e --- /dev/null +++ b/kubevirt/models/v1_mediated_devices_configuration.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1MediatedDevicesConfiguration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'mediated_devices_types': 'list[str]' + } + + attribute_map = { + 'mediated_devices_types': 'mediatedDevicesTypes' + } + + def __init__(self, mediated_devices_types=None): + """ + V1MediatedDevicesConfiguration - a model defined in Swagger + """ + + self._mediated_devices_types = None + + if mediated_devices_types is not None: + self.mediated_devices_types = mediated_devices_types + + @property + def mediated_devices_types(self): + """ + Gets the mediated_devices_types of this V1MediatedDevicesConfiguration. + + :return: The mediated_devices_types of this V1MediatedDevicesConfiguration. + :rtype: list[str] + """ + return self._mediated_devices_types + + @mediated_devices_types.setter + def mediated_devices_types(self, mediated_devices_types): + """ + Sets the mediated_devices_types of this V1MediatedDevicesConfiguration. + + :param mediated_devices_types: The mediated_devices_types of this V1MediatedDevicesConfiguration. + :type: list[str] + """ + + self._mediated_devices_types = mediated_devices_types + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1MediatedDevicesConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index f566b700..3e2cf85c 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.44.0-rc.0-24-g21b3bf47a" +VERSION = "v0.44.0-129-g3530113d2" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index d86db2cb..fcd287b7 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.44.0-rc.0-24-g21b3bf47a" +"packageVersion": "v0.44.0-129-g3530113d2" } diff --git a/test/test_v1_mediated_devices_configuration.py b/test/test_v1_mediated_devices_configuration.py new file mode 100644 index 00000000..f09b69ed --- /dev/null +++ b/test/test_v1_mediated_devices_configuration.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_mediated_devices_configuration import V1MediatedDevicesConfiguration + + +class TestV1MediatedDevicesConfiguration(unittest.TestCase): + """ V1MediatedDevicesConfiguration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1MediatedDevicesConfiguration(self): + """ + Test V1MediatedDevicesConfiguration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_mediated_devices_configuration.V1MediatedDevicesConfiguration() + pass + + +if __name__ == '__main__': + unittest.main() From 90094a6d620c61a2dc87b38c1d4d7bb607299126 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 12 Aug 2021 21:51:47 +0000 Subject: [PATCH 221/521] Client Python update by KubeVirt Prow build 1425930693287874560 --- README.md | 3 +- docs/V1PersistentVolumeClaimInfo.md | 13 ++ docs/V1VolumeStatus.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + .../models/v1_persistent_volume_claim_info.py | 209 ++++++++++++++++++ kubevirt/models/v1_volume_status.py | 30 ++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_persistent_volume_claim_info.py | 44 ++++ 14 files changed, 308 insertions(+), 7 deletions(-) create mode 100644 docs/V1PersistentVolumeClaimInfo.md create mode 100644 kubevirt/models/v1_persistent_volume_claim_info.py create mode 100644 test/test_v1_persistent_volume_claim_info.py diff --git a/README.md b/README.md index e328f7ec..a5841ab2 100644 --- a/README.md +++ b/README.md @@ -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: v0.44.0-129-g3530113d2 +- Package version: v0.44.0-139-ga4afd2edd - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -376,6 +376,7 @@ Class | Method | HTTP request | Description - [V1PITTimer](docs/V1PITTimer.md) - [V1PciHostDevice](docs/V1PciHostDevice.md) - [V1PermittedHostDevices](docs/V1PermittedHostDevices.md) + - [V1PersistentVolumeClaimInfo](docs/V1PersistentVolumeClaimInfo.md) - [V1PodNetwork](docs/V1PodNetwork.md) - [V1Port](docs/V1Port.md) - [V1Probe](docs/V1Probe.md) diff --git a/docs/V1PersistentVolumeClaimInfo.md b/docs/V1PersistentVolumeClaimInfo.md new file mode 100644 index 00000000..19f28fcc --- /dev/null +++ b/docs/V1PersistentVolumeClaimInfo.md @@ -0,0 +1,13 @@ +# V1PersistentVolumeClaimInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_modes** | **list[str]** | AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] +**capacity** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Capacity represents the capacity set on the corresponding PVC spec | [optional] +**preallocated** | **bool** | Preallocated indicates if the PVC's storage is preallocated or not | [optional] +**volume_mode** | **str** | VolumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VolumeStatus.md b/docs/V1VolumeStatus.md index d4aae054..0a82ec4a 100644 --- a/docs/V1VolumeStatus.md +++ b/docs/V1VolumeStatus.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **hotplug_volume** | [**V1HotplugVolumeStatus**](V1HotplugVolumeStatus.md) | If the volume is hotplug, this will contain the hotplug status. | [optional] **message** | **str** | Message is a detailed message about the current hotplug volume phase | [optional] **name** | **str** | Name is the name of the volume | +**persistent_volume_claim_info** | [**V1PersistentVolumeClaimInfo**](V1PersistentVolumeClaimInfo.md) | PersistentVolumeClaimInfo is information about the PVC that handler requires during start flow | [optional] **phase** | **str** | Phase is the phase | [optional] **reason** | **str** | Reason is a brief description of why we are in the current hotplug volume phase | [optional] **target** | **str** | Target is the target name used when adding the volume to the VM, eg: vda | diff --git a/git_push.sh b/git_push.sh index 9529c70a..a6fdccc2 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.44.0-129-g3530113d2" + release_note="Auto-generated client v0.44.0-139-ga4afd2edd" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 3dd9e2e0..0bcbd883 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -466,6 +466,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_permitted_host_devices.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_permitted_host_devices.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PermittedHostDevices.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_persistent_volume_claim_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_persistent_volume_claim_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PersistentVolumeClaimInfo.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_pod_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pod_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PodNetwork.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 6546df93..242bca79 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -163,6 +163,7 @@ from .models.v1_pit_timer import V1PITTimer from .models.v1_pci_host_device import V1PciHostDevice from .models.v1_permitted_host_devices import V1PermittedHostDevices +from .models.v1_persistent_volume_claim_info import V1PersistentVolumeClaimInfo from .models.v1_pod_network import V1PodNetwork from .models.v1_port import V1Port from .models.v1_probe import V1Probe diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index c5254899..8905b36f 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.44.0-129-g3530113d2/python' + self.user_agent = 'Swagger-Codegen/v0.44.0-139-ga4afd2edd/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index ddc497f4..ba9c2e3d 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.44.0-129-g3530113d2".\ + "SDK Package Version: v0.44.0-139-ga4afd2edd".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index a978abac..86e2fe22 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -163,6 +163,7 @@ from .v1_pit_timer import V1PITTimer from .v1_pci_host_device import V1PciHostDevice from .v1_permitted_host_devices import V1PermittedHostDevices +from .v1_persistent_volume_claim_info import V1PersistentVolumeClaimInfo from .v1_pod_network import V1PodNetwork from .v1_port import V1Port from .v1_probe import V1Probe diff --git a/kubevirt/models/v1_persistent_volume_claim_info.py b/kubevirt/models/v1_persistent_volume_claim_info.py new file mode 100644 index 00000000..b8db57f9 --- /dev/null +++ b/kubevirt/models/v1_persistent_volume_claim_info.py @@ -0,0 +1,209 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PersistentVolumeClaimInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'access_modes': 'list[str]', + 'capacity': 'dict(str, K8sIoApimachineryPkgApiResourceQuantity)', + 'preallocated': 'bool', + 'volume_mode': 'str' + } + + attribute_map = { + 'access_modes': 'accessModes', + 'capacity': 'capacity', + 'preallocated': 'preallocated', + 'volume_mode': 'volumeMode' + } + + def __init__(self, access_modes=None, capacity=None, preallocated=None, volume_mode=None): + """ + V1PersistentVolumeClaimInfo - a model defined in Swagger + """ + + self._access_modes = None + self._capacity = None + self._preallocated = None + self._volume_mode = None + + if access_modes is not None: + self.access_modes = access_modes + if capacity is not None: + self.capacity = capacity + if preallocated is not None: + self.preallocated = preallocated + if volume_mode is not None: + self.volume_mode = volume_mode + + @property + def access_modes(self): + """ + Gets the access_modes of this V1PersistentVolumeClaimInfo. + AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + + :return: The access_modes of this V1PersistentVolumeClaimInfo. + :rtype: list[str] + """ + return self._access_modes + + @access_modes.setter + def access_modes(self, access_modes): + """ + Sets the access_modes of this V1PersistentVolumeClaimInfo. + AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + + :param access_modes: The access_modes of this V1PersistentVolumeClaimInfo. + :type: list[str] + """ + + self._access_modes = access_modes + + @property + def capacity(self): + """ + Gets the capacity of this V1PersistentVolumeClaimInfo. + Capacity represents the capacity set on the corresponding PVC spec + + :return: The capacity of this V1PersistentVolumeClaimInfo. + :rtype: dict(str, K8sIoApimachineryPkgApiResourceQuantity) + """ + return self._capacity + + @capacity.setter + def capacity(self, capacity): + """ + Sets the capacity of this V1PersistentVolumeClaimInfo. + Capacity represents the capacity set on the corresponding PVC spec + + :param capacity: The capacity of this V1PersistentVolumeClaimInfo. + :type: dict(str, K8sIoApimachineryPkgApiResourceQuantity) + """ + + self._capacity = capacity + + @property + def preallocated(self): + """ + Gets the preallocated of this V1PersistentVolumeClaimInfo. + Preallocated indicates if the PVC's storage is preallocated or not + + :return: The preallocated of this V1PersistentVolumeClaimInfo. + :rtype: bool + """ + return self._preallocated + + @preallocated.setter + def preallocated(self, preallocated): + """ + Sets the preallocated of this V1PersistentVolumeClaimInfo. + Preallocated indicates if the PVC's storage is preallocated or not + + :param preallocated: The preallocated of this V1PersistentVolumeClaimInfo. + :type: bool + """ + + self._preallocated = preallocated + + @property + def volume_mode(self): + """ + Gets the volume_mode of this V1PersistentVolumeClaimInfo. + VolumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + + :return: The volume_mode of this V1PersistentVolumeClaimInfo. + :rtype: str + """ + return self._volume_mode + + @volume_mode.setter + def volume_mode(self, volume_mode): + """ + Sets the volume_mode of this V1PersistentVolumeClaimInfo. + VolumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + + :param volume_mode: The volume_mode of this V1PersistentVolumeClaimInfo. + :type: str + """ + + self._volume_mode = volume_mode + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1PersistentVolumeClaimInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_volume_status.py b/kubevirt/models/v1_volume_status.py index 47c1dc5b..3c24b507 100644 --- a/kubevirt/models/v1_volume_status.py +++ b/kubevirt/models/v1_volume_status.py @@ -34,6 +34,7 @@ class V1VolumeStatus(object): 'hotplug_volume': 'V1HotplugVolumeStatus', 'message': 'str', 'name': 'str', + 'persistent_volume_claim_info': 'V1PersistentVolumeClaimInfo', 'phase': 'str', 'reason': 'str', 'target': 'str' @@ -43,12 +44,13 @@ class V1VolumeStatus(object): 'hotplug_volume': 'hotplugVolume', 'message': 'message', 'name': 'name', + 'persistent_volume_claim_info': 'persistentVolumeClaimInfo', 'phase': 'phase', 'reason': 'reason', 'target': 'target' } - def __init__(self, hotplug_volume=None, message=None, name=None, phase=None, reason=None, target=None): + def __init__(self, hotplug_volume=None, message=None, name=None, persistent_volume_claim_info=None, phase=None, reason=None, target=None): """ V1VolumeStatus - a model defined in Swagger """ @@ -56,6 +58,7 @@ def __init__(self, hotplug_volume=None, message=None, name=None, phase=None, rea self._hotplug_volume = None self._message = None self._name = None + self._persistent_volume_claim_info = None self._phase = None self._reason = None self._target = None @@ -65,6 +68,8 @@ def __init__(self, hotplug_volume=None, message=None, name=None, phase=None, rea if message is not None: self.message = message self.name = name + if persistent_volume_claim_info is not None: + self.persistent_volume_claim_info = persistent_volume_claim_info if phase is not None: self.phase = phase if reason is not None: @@ -142,6 +147,29 @@ def name(self, name): self._name = name + @property + def persistent_volume_claim_info(self): + """ + Gets the persistent_volume_claim_info of this V1VolumeStatus. + PersistentVolumeClaimInfo is information about the PVC that handler requires during start flow + + :return: The persistent_volume_claim_info of this V1VolumeStatus. + :rtype: V1PersistentVolumeClaimInfo + """ + return self._persistent_volume_claim_info + + @persistent_volume_claim_info.setter + def persistent_volume_claim_info(self, persistent_volume_claim_info): + """ + Sets the persistent_volume_claim_info of this V1VolumeStatus. + PersistentVolumeClaimInfo is information about the PVC that handler requires during start flow + + :param persistent_volume_claim_info: The persistent_volume_claim_info of this V1VolumeStatus. + :type: V1PersistentVolumeClaimInfo + """ + + self._persistent_volume_claim_info = persistent_volume_claim_info + @property def phase(self): """ diff --git a/setup.py b/setup.py index 3e2cf85c..27c2dfce 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.44.0-129-g3530113d2" +VERSION = "v0.44.0-139-ga4afd2edd" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index fcd287b7..8285b9ce 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.44.0-129-g3530113d2" +"packageVersion": "v0.44.0-139-ga4afd2edd" } diff --git a/test/test_v1_persistent_volume_claim_info.py b/test/test_v1_persistent_volume_claim_info.py new file mode 100644 index 00000000..4a6436f8 --- /dev/null +++ b/test/test_v1_persistent_volume_claim_info.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_persistent_volume_claim_info import V1PersistentVolumeClaimInfo + + +class TestV1PersistentVolumeClaimInfo(unittest.TestCase): + """ V1PersistentVolumeClaimInfo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PersistentVolumeClaimInfo(self): + """ + Test V1PersistentVolumeClaimInfo + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_persistent_volume_claim_info.V1PersistentVolumeClaimInfo() + pass + + +if __name__ == '__main__': + unittest.main() From 996c07b9fc34cb720524762d7afeb86e4ca9a5b6 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 18 Aug 2021 07:12:05 +0000 Subject: [PATCH 222/521] Client Python update by KubeVirt Prow build 1427880678506106880 --- README.md | 6 +- docs/V1KubeVirtConfiguration.md | 4 + docs/V1RESTClientConfiguration.md | 10 ++ docs/V1RateLimiter.md | 10 ++ docs/V1ReloadableComponentConfiguration.md | 10 ++ docs/V1TokenBucketRateLimiter.md | 11 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 12 ++ kubevirt/__init__.py | 4 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 4 + kubevirt/models/v1_kube_virt_configuration.py | 110 ++++++++++++- kubevirt/models/v1_rate_limiter.py | 123 ++++++++++++++ .../v1_reloadable_component_configuration.py | 125 ++++++++++++++ .../models/v1_rest_client_configuration.py | 125 ++++++++++++++ .../models/v1_token_bucket_rate_limiter.py | 155 ++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_rate_limiter.py | 44 +++++ ...t_v1_reloadable_component_configuration.py | 44 +++++ test/test_v1_rest_client_configuration.py | 44 +++++ test/test_v1_token_bucket_rate_limiter.py | 44 +++++ 23 files changed, 886 insertions(+), 9 deletions(-) create mode 100644 docs/V1RESTClientConfiguration.md create mode 100644 docs/V1RateLimiter.md create mode 100644 docs/V1ReloadableComponentConfiguration.md create mode 100644 docs/V1TokenBucketRateLimiter.md create mode 100644 kubevirt/models/v1_rate_limiter.py create mode 100644 kubevirt/models/v1_reloadable_component_configuration.py create mode 100644 kubevirt/models/v1_rest_client_configuration.py create mode 100644 kubevirt/models/v1_token_bucket_rate_limiter.py create mode 100644 test/test_v1_rate_limiter.py create mode 100644 test/test_v1_reloadable_component_configuration.py create mode 100644 test/test_v1_rest_client_configuration.py create mode 100644 test/test_v1_token_bucket_rate_limiter.py diff --git a/README.md b/README.md index a5841ab2..c6afff5d 100644 --- a/README.md +++ b/README.md @@ -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: v0.44.0-139-ga4afd2edd +- Package version: v0.44.0-164-gf97dd744a - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -382,7 +382,10 @@ Class | Method | HTTP request | Description - [V1Probe](docs/V1Probe.md) - [V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation](docs/V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation.md) - [V1QemuGuestAgentUserPasswordAccessCredentialPropagation](docs/V1QemuGuestAgentUserPasswordAccessCredentialPropagation.md) + - [V1RESTClientConfiguration](docs/V1RESTClientConfiguration.md) - [V1RTCTimer](docs/V1RTCTimer.md) + - [V1RateLimiter](docs/V1RateLimiter.md) + - [V1ReloadableComponentConfiguration](docs/V1ReloadableComponentConfiguration.md) - [V1RemoveVolumeOptions](docs/V1RemoveVolumeOptions.md) - [V1ResourceRequirements](docs/V1ResourceRequirements.md) - [V1RestartOptions](docs/V1RestartOptions.md) @@ -397,6 +400,7 @@ Class | Method | HTTP request | Description - [V1SyNICTimer](docs/V1SyNICTimer.md) - [V1SysprepSource](docs/V1SysprepSource.md) - [V1Timer](docs/V1Timer.md) + - [V1TokenBucketRateLimiter](docs/V1TokenBucketRateLimiter.md) - [V1TopologyHints](docs/V1TopologyHints.md) - [V1UserPasswordAccessCredential](docs/V1UserPasswordAccessCredential.md) - [V1UserPasswordAccessCredentialPropagationMethod](docs/V1UserPasswordAccessCredentialPropagationMethod.md) diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index f30e08a2..89e5be0f 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -3,11 +3,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**api_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] +**controller_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] **cpu_model** | **str** | | [optional] **cpu_request** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | | [optional] **default_runtime_class** | **str** | | [optional] **developer_configuration** | [**V1DeveloperConfiguration**](V1DeveloperConfiguration.md) | | [optional] **emulated_machines** | **list[str]** | | [optional] +**handler_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] **image_pull_policy** | **str** | | [optional] **machine_type** | **str** | | [optional] **mediated_devices_configuration** | [**V1MediatedDevicesConfiguration**](V1MediatedDevicesConfiguration.md) | | [optional] @@ -22,6 +25,7 @@ Name | Type | Description | Notes **smbios** | [**V1SMBiosConfiguration**](V1SMBiosConfiguration.md) | | [optional] **supported_guest_agent_versions** | **list[str]** | deprecated | [optional] **virtual_machine_instances_per_node** | **int** | | [optional] +**webhook_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1RESTClientConfiguration.md b/docs/V1RESTClientConfiguration.md new file mode 100644 index 00000000..9896afc5 --- /dev/null +++ b/docs/V1RESTClientConfiguration.md @@ -0,0 +1,10 @@ +# V1RESTClientConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rate_limiter** | [**V1RateLimiter**](V1RateLimiter.md) | RateLimiter allows selecting and configuring different rate limiters for the k8s client. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1RateLimiter.md b/docs/V1RateLimiter.md new file mode 100644 index 00000000..77201207 --- /dev/null +++ b/docs/V1RateLimiter.md @@ -0,0 +1,10 @@ +# V1RateLimiter + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**token_bucket_rate_limiter** | [**V1TokenBucketRateLimiter**](V1TokenBucketRateLimiter.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ReloadableComponentConfiguration.md b/docs/V1ReloadableComponentConfiguration.md new file mode 100644 index 00000000..3c26c254 --- /dev/null +++ b/docs/V1ReloadableComponentConfiguration.md @@ -0,0 +1,10 @@ +# V1ReloadableComponentConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rest_client** | [**V1RESTClientConfiguration**](V1RESTClientConfiguration.md) | RestClient can be used to tune certain aspects of the k8s client in use. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1TokenBucketRateLimiter.md b/docs/V1TokenBucketRateLimiter.md new file mode 100644 index 00000000..aa3715c7 --- /dev/null +++ b/docs/V1TokenBucketRateLimiter.md @@ -0,0 +1,11 @@ +# V1TokenBucketRateLimiter + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**burst** | **int** | Maximum burst for throttle. If it's zero, the component default will be used | +**qps** | **float** | QPS indicates the maximum QPS to the apiserver from this client. If it's zero, the component default will be used | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index a6fdccc2..41002001 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.44.0-139-ga4afd2edd" + release_note="Auto-generated client v0.44.0-164-gf97dd744a" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 0bcbd883..749a0ecb 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -484,9 +484,18 @@ 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_qemu_guest_agent_user_password_access_credential_propagation.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_qemu_guest_agent_user_password_access_credential_propagation.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1QemuGuestAgentUserPasswordAccessCredentialPropagation.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_rest_client_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_rest_client_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1RESTClientConfiguration.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_rtc_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_rtc_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1RTCTimer.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_rate_limiter.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_rate_limiter.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1RateLimiter.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_reloadable_component_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_reloadable_component_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ReloadableComponentConfiguration.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_remove_volume_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_remove_volume_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1RemoveVolumeOptions.md @@ -529,6 +538,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_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Timer.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_token_bucket_rate_limiter.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_token_bucket_rate_limiter.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1TokenBucketRateLimiter.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_topology_hints.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_topology_hints.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1TopologyHints.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 242bca79..57c05a0b 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -169,7 +169,10 @@ from .models.v1_probe import V1Probe from .models.v1_qemu_guest_agent_ssh_public_key_access_credential_propagation import V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation from .models.v1_qemu_guest_agent_user_password_access_credential_propagation import V1QemuGuestAgentUserPasswordAccessCredentialPropagation +from .models.v1_rest_client_configuration import V1RESTClientConfiguration from .models.v1_rtc_timer import V1RTCTimer +from .models.v1_rate_limiter import V1RateLimiter +from .models.v1_reloadable_component_configuration import V1ReloadableComponentConfiguration from .models.v1_remove_volume_options import V1RemoveVolumeOptions from .models.v1_resource_requirements import V1ResourceRequirements from .models.v1_restart_options import V1RestartOptions @@ -184,6 +187,7 @@ from .models.v1_sy_nic_timer import V1SyNICTimer from .models.v1_sysprep_source import V1SysprepSource from .models.v1_timer import V1Timer +from .models.v1_token_bucket_rate_limiter import V1TokenBucketRateLimiter from .models.v1_topology_hints import V1TopologyHints from .models.v1_user_password_access_credential import V1UserPasswordAccessCredential from .models.v1_user_password_access_credential_propagation_method import V1UserPasswordAccessCredentialPropagationMethod diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 8905b36f..b7c759d3 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.44.0-139-ga4afd2edd/python' + self.user_agent = 'Swagger-Codegen/v0.44.0-164-gf97dd744a/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index ba9c2e3d..e032f29d 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.44.0-139-ga4afd2edd".\ + "SDK Package Version: v0.44.0-164-gf97dd744a".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 86e2fe22..9d1f1ce1 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -169,7 +169,10 @@ from .v1_probe import V1Probe from .v1_qemu_guest_agent_ssh_public_key_access_credential_propagation import V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation from .v1_qemu_guest_agent_user_password_access_credential_propagation import V1QemuGuestAgentUserPasswordAccessCredentialPropagation +from .v1_rest_client_configuration import V1RESTClientConfiguration from .v1_rtc_timer import V1RTCTimer +from .v1_rate_limiter import V1RateLimiter +from .v1_reloadable_component_configuration import V1ReloadableComponentConfiguration from .v1_remove_volume_options import V1RemoveVolumeOptions from .v1_resource_requirements import V1ResourceRequirements from .v1_restart_options import V1RestartOptions @@ -184,6 +187,7 @@ from .v1_sy_nic_timer import V1SyNICTimer from .v1_sysprep_source import V1SysprepSource from .v1_timer import V1Timer +from .v1_token_bucket_rate_limiter import V1TokenBucketRateLimiter from .v1_topology_hints import V1TopologyHints from .v1_user_password_access_credential import V1UserPasswordAccessCredential from .v1_user_password_access_credential_propagation_method import V1UserPasswordAccessCredentialPropagationMethod diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index 7b7d7f1a..f4c5bb5f 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -31,11 +31,14 @@ class V1KubeVirtConfiguration(object): and the value is json key in definition. """ swagger_types = { + 'api_configuration': 'V1ReloadableComponentConfiguration', + 'controller_configuration': 'V1ReloadableComponentConfiguration', 'cpu_model': 'str', 'cpu_request': 'K8sIoApimachineryPkgApiResourceQuantity', 'default_runtime_class': 'str', 'developer_configuration': 'V1DeveloperConfiguration', 'emulated_machines': 'list[str]', + 'handler_configuration': 'V1ReloadableComponentConfiguration', 'image_pull_policy': 'str', 'machine_type': 'str', 'mediated_devices_configuration': 'V1MediatedDevicesConfiguration', @@ -49,15 +52,19 @@ class V1KubeVirtConfiguration(object): 'selinux_launcher_type': 'str', 'smbios': 'V1SMBiosConfiguration', 'supported_guest_agent_versions': 'list[str]', - 'virtual_machine_instances_per_node': 'int' + 'virtual_machine_instances_per_node': 'int', + 'webhook_configuration': 'V1ReloadableComponentConfiguration' } attribute_map = { + 'api_configuration': 'apiConfiguration', + 'controller_configuration': 'controllerConfiguration', 'cpu_model': 'cpuModel', 'cpu_request': 'cpuRequest', 'default_runtime_class': 'defaultRuntimeClass', 'developer_configuration': 'developerConfiguration', 'emulated_machines': 'emulatedMachines', + 'handler_configuration': 'handlerConfiguration', 'image_pull_policy': 'imagePullPolicy', 'machine_type': 'machineType', 'mediated_devices_configuration': 'mediatedDevicesConfiguration', @@ -71,19 +78,23 @@ class V1KubeVirtConfiguration(object): 'selinux_launcher_type': 'selinuxLauncherType', 'smbios': 'smbios', 'supported_guest_agent_versions': 'supportedGuestAgentVersions', - 'virtual_machine_instances_per_node': 'virtualMachineInstancesPerNode' + 'virtual_machine_instances_per_node': 'virtualMachineInstancesPerNode', + 'webhook_configuration': 'webhookConfiguration' } - def __init__(self, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, image_pull_policy=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, selinux_launcher_type=None, smbios=None, supported_guest_agent_versions=None, virtual_machine_instances_per_node=None): + def __init__(self, api_configuration=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, handler_configuration=None, image_pull_policy=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, selinux_launcher_type=None, smbios=None, supported_guest_agent_versions=None, virtual_machine_instances_per_node=None, webhook_configuration=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ + self._api_configuration = None + self._controller_configuration = None self._cpu_model = None self._cpu_request = None self._default_runtime_class = None self._developer_configuration = None self._emulated_machines = None + self._handler_configuration = None self._image_pull_policy = None self._machine_type = None self._mediated_devices_configuration = None @@ -98,7 +109,12 @@ def __init__(self, cpu_model=None, cpu_request=None, default_runtime_class=None, self._smbios = None self._supported_guest_agent_versions = None self._virtual_machine_instances_per_node = None + self._webhook_configuration = None + if api_configuration is not None: + self.api_configuration = api_configuration + if controller_configuration is not None: + self.controller_configuration = controller_configuration if cpu_model is not None: self.cpu_model = cpu_model if cpu_request is not None: @@ -109,6 +125,8 @@ def __init__(self, cpu_model=None, cpu_request=None, default_runtime_class=None, self.developer_configuration = developer_configuration if emulated_machines is not None: self.emulated_machines = emulated_machines + if handler_configuration is not None: + self.handler_configuration = handler_configuration if image_pull_policy is not None: self.image_pull_policy = image_pull_policy if machine_type is not None: @@ -137,6 +155,50 @@ def __init__(self, cpu_model=None, cpu_request=None, default_runtime_class=None, self.supported_guest_agent_versions = supported_guest_agent_versions if virtual_machine_instances_per_node is not None: self.virtual_machine_instances_per_node = virtual_machine_instances_per_node + if webhook_configuration is not None: + self.webhook_configuration = webhook_configuration + + @property + def api_configuration(self): + """ + Gets the api_configuration of this V1KubeVirtConfiguration. + + :return: The api_configuration of this V1KubeVirtConfiguration. + :rtype: V1ReloadableComponentConfiguration + """ + return self._api_configuration + + @api_configuration.setter + def api_configuration(self, api_configuration): + """ + Sets the api_configuration of this V1KubeVirtConfiguration. + + :param api_configuration: The api_configuration of this V1KubeVirtConfiguration. + :type: V1ReloadableComponentConfiguration + """ + + self._api_configuration = api_configuration + + @property + def controller_configuration(self): + """ + Gets the controller_configuration of this V1KubeVirtConfiguration. + + :return: The controller_configuration of this V1KubeVirtConfiguration. + :rtype: V1ReloadableComponentConfiguration + """ + return self._controller_configuration + + @controller_configuration.setter + def controller_configuration(self, controller_configuration): + """ + Sets the controller_configuration of this V1KubeVirtConfiguration. + + :param controller_configuration: The controller_configuration of this V1KubeVirtConfiguration. + :type: V1ReloadableComponentConfiguration + """ + + self._controller_configuration = controller_configuration @property def cpu_model(self): @@ -243,6 +305,27 @@ def emulated_machines(self, emulated_machines): self._emulated_machines = emulated_machines + @property + def handler_configuration(self): + """ + Gets the handler_configuration of this V1KubeVirtConfiguration. + + :return: The handler_configuration of this V1KubeVirtConfiguration. + :rtype: V1ReloadableComponentConfiguration + """ + return self._handler_configuration + + @handler_configuration.setter + def handler_configuration(self, handler_configuration): + """ + Sets the handler_configuration of this V1KubeVirtConfiguration. + + :param handler_configuration: The handler_configuration of this V1KubeVirtConfiguration. + :type: V1ReloadableComponentConfiguration + """ + + self._handler_configuration = handler_configuration + @property def image_pull_policy(self): """ @@ -539,6 +622,27 @@ def virtual_machine_instances_per_node(self, virtual_machine_instances_per_node) self._virtual_machine_instances_per_node = virtual_machine_instances_per_node + @property + def webhook_configuration(self): + """ + Gets the webhook_configuration of this V1KubeVirtConfiguration. + + :return: The webhook_configuration of this V1KubeVirtConfiguration. + :rtype: V1ReloadableComponentConfiguration + """ + return self._webhook_configuration + + @webhook_configuration.setter + def webhook_configuration(self, webhook_configuration): + """ + Sets the webhook_configuration of this V1KubeVirtConfiguration. + + :param webhook_configuration: The webhook_configuration of this V1KubeVirtConfiguration. + :type: V1ReloadableComponentConfiguration + """ + + self._webhook_configuration = webhook_configuration + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_rate_limiter.py b/kubevirt/models/v1_rate_limiter.py new file mode 100644 index 00000000..6d33b506 --- /dev/null +++ b/kubevirt/models/v1_rate_limiter.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1RateLimiter(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'token_bucket_rate_limiter': 'V1TokenBucketRateLimiter' + } + + attribute_map = { + 'token_bucket_rate_limiter': 'tokenBucketRateLimiter' + } + + def __init__(self, token_bucket_rate_limiter=None): + """ + V1RateLimiter - a model defined in Swagger + """ + + self._token_bucket_rate_limiter = None + + if token_bucket_rate_limiter is not None: + self.token_bucket_rate_limiter = token_bucket_rate_limiter + + @property + def token_bucket_rate_limiter(self): + """ + Gets the token_bucket_rate_limiter of this V1RateLimiter. + + :return: The token_bucket_rate_limiter of this V1RateLimiter. + :rtype: V1TokenBucketRateLimiter + """ + return self._token_bucket_rate_limiter + + @token_bucket_rate_limiter.setter + def token_bucket_rate_limiter(self, token_bucket_rate_limiter): + """ + Sets the token_bucket_rate_limiter of this V1RateLimiter. + + :param token_bucket_rate_limiter: The token_bucket_rate_limiter of this V1RateLimiter. + :type: V1TokenBucketRateLimiter + """ + + self._token_bucket_rate_limiter = token_bucket_rate_limiter + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1RateLimiter): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_reloadable_component_configuration.py b/kubevirt/models/v1_reloadable_component_configuration.py new file mode 100644 index 00000000..7ff56226 --- /dev/null +++ b/kubevirt/models/v1_reloadable_component_configuration.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ReloadableComponentConfiguration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'rest_client': 'V1RESTClientConfiguration' + } + + attribute_map = { + 'rest_client': 'restClient' + } + + def __init__(self, rest_client=None): + """ + V1ReloadableComponentConfiguration - a model defined in Swagger + """ + + self._rest_client = None + + if rest_client is not None: + self.rest_client = rest_client + + @property + def rest_client(self): + """ + Gets the rest_client of this V1ReloadableComponentConfiguration. + RestClient can be used to tune certain aspects of the k8s client in use. + + :return: The rest_client of this V1ReloadableComponentConfiguration. + :rtype: V1RESTClientConfiguration + """ + return self._rest_client + + @rest_client.setter + def rest_client(self, rest_client): + """ + Sets the rest_client of this V1ReloadableComponentConfiguration. + RestClient can be used to tune certain aspects of the k8s client in use. + + :param rest_client: The rest_client of this V1ReloadableComponentConfiguration. + :type: V1RESTClientConfiguration + """ + + self._rest_client = rest_client + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1ReloadableComponentConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_rest_client_configuration.py b/kubevirt/models/v1_rest_client_configuration.py new file mode 100644 index 00000000..4a34fd61 --- /dev/null +++ b/kubevirt/models/v1_rest_client_configuration.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1RESTClientConfiguration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'rate_limiter': 'V1RateLimiter' + } + + attribute_map = { + 'rate_limiter': 'rateLimiter' + } + + def __init__(self, rate_limiter=None): + """ + V1RESTClientConfiguration - a model defined in Swagger + """ + + self._rate_limiter = None + + if rate_limiter is not None: + self.rate_limiter = rate_limiter + + @property + def rate_limiter(self): + """ + Gets the rate_limiter of this V1RESTClientConfiguration. + RateLimiter allows selecting and configuring different rate limiters for the k8s client. + + :return: The rate_limiter of this V1RESTClientConfiguration. + :rtype: V1RateLimiter + """ + return self._rate_limiter + + @rate_limiter.setter + def rate_limiter(self, rate_limiter): + """ + Sets the rate_limiter of this V1RESTClientConfiguration. + RateLimiter allows selecting and configuring different rate limiters for the k8s client. + + :param rate_limiter: The rate_limiter of this V1RESTClientConfiguration. + :type: V1RateLimiter + """ + + self._rate_limiter = rate_limiter + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1RESTClientConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_token_bucket_rate_limiter.py b/kubevirt/models/v1_token_bucket_rate_limiter.py new file mode 100644 index 00000000..945a00f3 --- /dev/null +++ b/kubevirt/models/v1_token_bucket_rate_limiter.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1TokenBucketRateLimiter(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'burst': 'int', + 'qps': 'float' + } + + attribute_map = { + 'burst': 'burst', + 'qps': 'qps' + } + + def __init__(self, burst=None, qps=None): + """ + V1TokenBucketRateLimiter - a model defined in Swagger + """ + + self._burst = None + self._qps = None + + self.burst = burst + self.qps = qps + + @property + def burst(self): + """ + Gets the burst of this V1TokenBucketRateLimiter. + Maximum burst for throttle. If it's zero, the component default will be used + + :return: The burst of this V1TokenBucketRateLimiter. + :rtype: int + """ + return self._burst + + @burst.setter + def burst(self, burst): + """ + Sets the burst of this V1TokenBucketRateLimiter. + Maximum burst for throttle. If it's zero, the component default will be used + + :param burst: The burst of this V1TokenBucketRateLimiter. + :type: int + """ + if burst is None: + raise ValueError("Invalid value for `burst`, must not be `None`") + + self._burst = burst + + @property + def qps(self): + """ + Gets the qps of this V1TokenBucketRateLimiter. + QPS indicates the maximum QPS to the apiserver from this client. If it's zero, the component default will be used + + :return: The qps of this V1TokenBucketRateLimiter. + :rtype: float + """ + return self._qps + + @qps.setter + def qps(self, qps): + """ + Sets the qps of this V1TokenBucketRateLimiter. + QPS indicates the maximum QPS to the apiserver from this client. If it's zero, the component default will be used + + :param qps: The qps of this V1TokenBucketRateLimiter. + :type: float + """ + if qps is None: + raise ValueError("Invalid value for `qps`, must not be `None`") + + self._qps = qps + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1TokenBucketRateLimiter): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 27c2dfce..71bf8c90 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.44.0-139-ga4afd2edd" +VERSION = "v0.44.0-164-gf97dd744a" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 8285b9ce..4b9207b1 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.44.0-139-ga4afd2edd" +"packageVersion": "v0.44.0-164-gf97dd744a" } diff --git a/test/test_v1_rate_limiter.py b/test/test_v1_rate_limiter.py new file mode 100644 index 00000000..9cabf12c --- /dev/null +++ b/test/test_v1_rate_limiter.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_rate_limiter import V1RateLimiter + + +class TestV1RateLimiter(unittest.TestCase): + """ V1RateLimiter unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1RateLimiter(self): + """ + Test V1RateLimiter + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_rate_limiter.V1RateLimiter() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_reloadable_component_configuration.py b/test/test_v1_reloadable_component_configuration.py new file mode 100644 index 00000000..6d77a141 --- /dev/null +++ b/test/test_v1_reloadable_component_configuration.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_reloadable_component_configuration import V1ReloadableComponentConfiguration + + +class TestV1ReloadableComponentConfiguration(unittest.TestCase): + """ V1ReloadableComponentConfiguration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ReloadableComponentConfiguration(self): + """ + Test V1ReloadableComponentConfiguration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_reloadable_component_configuration.V1ReloadableComponentConfiguration() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_rest_client_configuration.py b/test/test_v1_rest_client_configuration.py new file mode 100644 index 00000000..c353b6c3 --- /dev/null +++ b/test/test_v1_rest_client_configuration.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_rest_client_configuration import V1RESTClientConfiguration + + +class TestV1RESTClientConfiguration(unittest.TestCase): + """ V1RESTClientConfiguration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1RESTClientConfiguration(self): + """ + Test V1RESTClientConfiguration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_rest_client_configuration.V1RESTClientConfiguration() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_token_bucket_rate_limiter.py b/test/test_v1_token_bucket_rate_limiter.py new file mode 100644 index 00000000..a171b15f --- /dev/null +++ b/test/test_v1_token_bucket_rate_limiter.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_token_bucket_rate_limiter import V1TokenBucketRateLimiter + + +class TestV1TokenBucketRateLimiter(unittest.TestCase): + """ V1TokenBucketRateLimiter unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1TokenBucketRateLimiter(self): + """ + Test V1TokenBucketRateLimiter + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_token_bucket_rate_limiter.V1TokenBucketRateLimiter() + pass + + +if __name__ == '__main__': + unittest.main() From ed63f9e93cc2c850c6afd2248c5ae7684fc67f34 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 20 Aug 2021 01:32:23 +0000 Subject: [PATCH 223/521] Client Python update by KubeVirt Prow build 1428522702443909120 --- README.md | 3 +- docs/V1DataVolumeSource.md | 1 + docs/V1HotplugVolumeSource.md | 2 +- docs/V1PersistentVolumeClaimVolumeSource.md | 12 ++ docs/V1Volume.md | 2 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_data_volume_source.py | 30 ++- kubevirt/models/v1_hotplug_volume_source.py | 6 +- ...1_persistent_volume_claim_volume_source.py | 182 ++++++++++++++++++ kubevirt/models/v1_volume.py | 6 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...1_persistent_volume_claim_volume_source.py | 44 +++++ 18 files changed, 288 insertions(+), 15 deletions(-) create mode 100644 docs/V1PersistentVolumeClaimVolumeSource.md create mode 100644 kubevirt/models/v1_persistent_volume_claim_volume_source.py create mode 100644 test/test_v1_persistent_volume_claim_volume_source.py diff --git a/README.md b/README.md index c6afff5d..e9675996 100644 --- a/README.md +++ b/README.md @@ -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: v0.44.0-164-gf97dd744a +- Package version: v0.44.0-192-g7b3758f1c - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -377,6 +377,7 @@ Class | Method | HTTP request | Description - [V1PciHostDevice](docs/V1PciHostDevice.md) - [V1PermittedHostDevices](docs/V1PermittedHostDevices.md) - [V1PersistentVolumeClaimInfo](docs/V1PersistentVolumeClaimInfo.md) + - [V1PersistentVolumeClaimVolumeSource](docs/V1PersistentVolumeClaimVolumeSource.md) - [V1PodNetwork](docs/V1PodNetwork.md) - [V1Port](docs/V1Port.md) - [V1Probe](docs/V1Probe.md) diff --git a/docs/V1DataVolumeSource.md b/docs/V1DataVolumeSource.md index 6d515176..70a2d594 100644 --- a/docs/V1DataVolumeSource.md +++ b/docs/V1DataVolumeSource.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**hotpluggable** | **bool** | Hotpluggable indicates whether the volume can be hotplugged and hotunplugged. | [optional] **name** | **str** | Name represents the name of the DataVolume in the same namespace | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1HotplugVolumeSource.md b/docs/V1HotplugVolumeSource.md index 95439bed..72dc6278 100644 --- a/docs/V1HotplugVolumeSource.md +++ b/docs/V1HotplugVolumeSource.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data_volume** | [**V1DataVolumeSource**](V1DataVolumeSource.md) | DataVolume represents the dynamic creation a PVC for this volume as well as the process of populating that PVC with a disk image. | [optional] -**persistent_volume_claim** | [**K8sIoApiCoreV1PersistentVolumeClaimVolumeSource**](K8sIoApiCoreV1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] +**persistent_volume_claim** | [**V1PersistentVolumeClaimVolumeSource**](V1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1PersistentVolumeClaimVolumeSource.md b/docs/V1PersistentVolumeClaimVolumeSource.md new file mode 100644 index 00000000..3e5439ff --- /dev/null +++ b/docs/V1PersistentVolumeClaimVolumeSource.md @@ -0,0 +1,12 @@ +# V1PersistentVolumeClaimVolumeSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**claim_name** | **str** | ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | +**hotpluggable** | **bool** | Hotpluggable indicates whether the volume can be hotplugged and hotunplugged. | [optional] +**read_only** | **bool** | Will force the ReadOnly setting in VolumeMounts. Default false. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Volume.md b/docs/V1Volume.md index 7d55c1c5..e6d518ff 100644 --- a/docs/V1Volume.md +++ b/docs/V1Volume.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **ephemeral** | [**V1EphemeralVolumeSource**](V1EphemeralVolumeSource.md) | Ephemeral is a special volume source that \"wraps\" specified source and provides copy-on-write image on top of it. | [optional] **host_disk** | [**V1HostDisk**](V1HostDisk.md) | HostDisk represents a disk created on the cluster level | [optional] **name** | **str** | Volume's name. Must be a DNS_LABEL and unique within the vmi. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | -**persistent_volume_claim** | [**K8sIoApiCoreV1PersistentVolumeClaimVolumeSource**](K8sIoApiCoreV1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] +**persistent_volume_claim** | [**V1PersistentVolumeClaimVolumeSource**](V1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] **secret** | [**V1SecretVolumeSource**](V1SecretVolumeSource.md) | SecretVolumeSource represents a reference to a secret data in the same namespace. More info: https://kubernetes.io/docs/concepts/configuration/secret/ | [optional] **service_account** | [**V1ServiceAccountVolumeSource**](V1ServiceAccountVolumeSource.md) | ServiceAccountVolumeSource represents a reference to a service account. There can only be one volume of this type! More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ | [optional] **sysprep** | [**V1SysprepSource**](V1SysprepSource.md) | Represents a Sysprep volume source. | [optional] diff --git a/git_push.sh b/git_push.sh index 41002001..05830c70 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.44.0-164-gf97dd744a" + release_note="Auto-generated client v0.44.0-192-g7b3758f1c" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 749a0ecb..114cdd2c 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -469,6 +469,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_persistent_volume_claim_info.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_persistent_volume_claim_info.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PersistentVolumeClaimInfo.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_persistent_volume_claim_volume_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_persistent_volume_claim_volume_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PersistentVolumeClaimVolumeSource.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_pod_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pod_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PodNetwork.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 57c05a0b..d3a66cd0 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -164,6 +164,7 @@ from .models.v1_pci_host_device import V1PciHostDevice from .models.v1_permitted_host_devices import V1PermittedHostDevices from .models.v1_persistent_volume_claim_info import V1PersistentVolumeClaimInfo +from .models.v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource from .models.v1_pod_network import V1PodNetwork from .models.v1_port import V1Port from .models.v1_probe import V1Probe diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index b7c759d3..1f818d90 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.44.0-164-gf97dd744a/python' + self.user_agent = 'Swagger-Codegen/v0.44.0-192-g7b3758f1c/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index e032f29d..1985ca23 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.44.0-164-gf97dd744a".\ + "SDK Package Version: v0.44.0-192-g7b3758f1c".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 9d1f1ce1..b0fc7351 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -164,6 +164,7 @@ from .v1_pci_host_device import V1PciHostDevice from .v1_permitted_host_devices import V1PermittedHostDevices from .v1_persistent_volume_claim_info import V1PersistentVolumeClaimInfo +from .v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource from .v1_pod_network import V1PodNetwork from .v1_port import V1Port from .v1_probe import V1Probe diff --git a/kubevirt/models/v1_data_volume_source.py b/kubevirt/models/v1_data_volume_source.py index c0e3b186..8c352bd4 100644 --- a/kubevirt/models/v1_data_volume_source.py +++ b/kubevirt/models/v1_data_volume_source.py @@ -31,22 +31,50 @@ class V1DataVolumeSource(object): and the value is json key in definition. """ swagger_types = { + 'hotpluggable': 'bool', 'name': 'str' } attribute_map = { + 'hotpluggable': 'hotpluggable', 'name': 'name' } - def __init__(self, name=None): + def __init__(self, hotpluggable=None, name=None): """ V1DataVolumeSource - a model defined in Swagger """ + self._hotpluggable = None self._name = None + if hotpluggable is not None: + self.hotpluggable = hotpluggable self.name = name + @property + def hotpluggable(self): + """ + Gets the hotpluggable of this V1DataVolumeSource. + Hotpluggable indicates whether the volume can be hotplugged and hotunplugged. + + :return: The hotpluggable of this V1DataVolumeSource. + :rtype: bool + """ + return self._hotpluggable + + @hotpluggable.setter + def hotpluggable(self, hotpluggable): + """ + Sets the hotpluggable of this V1DataVolumeSource. + Hotpluggable indicates whether the volume can be hotplugged and hotunplugged. + + :param hotpluggable: The hotpluggable of this V1DataVolumeSource. + :type: bool + """ + + self._hotpluggable = hotpluggable + @property def name(self): """ diff --git a/kubevirt/models/v1_hotplug_volume_source.py b/kubevirt/models/v1_hotplug_volume_source.py index 2b5e3732..935fa639 100644 --- a/kubevirt/models/v1_hotplug_volume_source.py +++ b/kubevirt/models/v1_hotplug_volume_source.py @@ -32,7 +32,7 @@ class V1HotplugVolumeSource(object): """ swagger_types = { 'data_volume': 'V1DataVolumeSource', - 'persistent_volume_claim': 'K8sIoApiCoreV1PersistentVolumeClaimVolumeSource' + 'persistent_volume_claim': 'V1PersistentVolumeClaimVolumeSource' } attribute_map = { @@ -83,7 +83,7 @@ def persistent_volume_claim(self): PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims :return: The persistent_volume_claim of this V1HotplugVolumeSource. - :rtype: K8sIoApiCoreV1PersistentVolumeClaimVolumeSource + :rtype: V1PersistentVolumeClaimVolumeSource """ return self._persistent_volume_claim @@ -94,7 +94,7 @@ def persistent_volume_claim(self, persistent_volume_claim): PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims :param persistent_volume_claim: The persistent_volume_claim of this V1HotplugVolumeSource. - :type: K8sIoApiCoreV1PersistentVolumeClaimVolumeSource + :type: V1PersistentVolumeClaimVolumeSource """ self._persistent_volume_claim = persistent_volume_claim diff --git a/kubevirt/models/v1_persistent_volume_claim_volume_source.py b/kubevirt/models/v1_persistent_volume_claim_volume_source.py new file mode 100644 index 00000000..7c9968cb --- /dev/null +++ b/kubevirt/models/v1_persistent_volume_claim_volume_source.py @@ -0,0 +1,182 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PersistentVolumeClaimVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'claim_name': 'str', + 'hotpluggable': 'bool', + 'read_only': 'bool' + } + + attribute_map = { + 'claim_name': 'claimName', + 'hotpluggable': 'hotpluggable', + 'read_only': 'readOnly' + } + + def __init__(self, claim_name=None, hotpluggable=None, read_only=None): + """ + V1PersistentVolumeClaimVolumeSource - a model defined in Swagger + """ + + self._claim_name = None + self._hotpluggable = None + self._read_only = None + + self.claim_name = claim_name + if hotpluggable is not None: + self.hotpluggable = hotpluggable + if read_only is not None: + self.read_only = read_only + + @property + def claim_name(self): + """ + Gets the claim_name of this V1PersistentVolumeClaimVolumeSource. + ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + + :return: The claim_name of this V1PersistentVolumeClaimVolumeSource. + :rtype: str + """ + return self._claim_name + + @claim_name.setter + def claim_name(self, claim_name): + """ + Sets the claim_name of this V1PersistentVolumeClaimVolumeSource. + ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + + :param claim_name: The claim_name of this V1PersistentVolumeClaimVolumeSource. + :type: str + """ + if claim_name is None: + raise ValueError("Invalid value for `claim_name`, must not be `None`") + + self._claim_name = claim_name + + @property + def hotpluggable(self): + """ + Gets the hotpluggable of this V1PersistentVolumeClaimVolumeSource. + Hotpluggable indicates whether the volume can be hotplugged and hotunplugged. + + :return: The hotpluggable of this V1PersistentVolumeClaimVolumeSource. + :rtype: bool + """ + return self._hotpluggable + + @hotpluggable.setter + def hotpluggable(self, hotpluggable): + """ + Sets the hotpluggable of this V1PersistentVolumeClaimVolumeSource. + Hotpluggable indicates whether the volume can be hotplugged and hotunplugged. + + :param hotpluggable: The hotpluggable of this V1PersistentVolumeClaimVolumeSource. + :type: bool + """ + + self._hotpluggable = hotpluggable + + @property + def read_only(self): + """ + Gets the read_only of this V1PersistentVolumeClaimVolumeSource. + Will force the ReadOnly setting in VolumeMounts. Default false. + + :return: The read_only of this V1PersistentVolumeClaimVolumeSource. + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """ + Sets the read_only of this V1PersistentVolumeClaimVolumeSource. + Will force the ReadOnly setting in VolumeMounts. Default false. + + :param read_only: The read_only of this V1PersistentVolumeClaimVolumeSource. + :type: bool + """ + + self._read_only = read_only + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1PersistentVolumeClaimVolumeSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_volume.py b/kubevirt/models/v1_volume.py index 8fb0e41f..641800ae 100644 --- a/kubevirt/models/v1_volume.py +++ b/kubevirt/models/v1_volume.py @@ -42,7 +42,7 @@ class V1Volume(object): 'ephemeral': 'V1EphemeralVolumeSource', 'host_disk': 'V1HostDisk', 'name': 'str', - 'persistent_volume_claim': 'K8sIoApiCoreV1PersistentVolumeClaimVolumeSource', + 'persistent_volume_claim': 'V1PersistentVolumeClaimVolumeSource', 'secret': 'V1SecretVolumeSource', 'service_account': 'V1ServiceAccountVolumeSource', 'sysprep': 'V1SysprepSource' @@ -379,7 +379,7 @@ def persistent_volume_claim(self): PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims :return: The persistent_volume_claim of this V1Volume. - :rtype: K8sIoApiCoreV1PersistentVolumeClaimVolumeSource + :rtype: V1PersistentVolumeClaimVolumeSource """ return self._persistent_volume_claim @@ -390,7 +390,7 @@ def persistent_volume_claim(self, persistent_volume_claim): PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims :param persistent_volume_claim: The persistent_volume_claim of this V1Volume. - :type: K8sIoApiCoreV1PersistentVolumeClaimVolumeSource + :type: V1PersistentVolumeClaimVolumeSource """ self._persistent_volume_claim = persistent_volume_claim diff --git a/setup.py b/setup.py index 71bf8c90..75db9c48 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.44.0-164-gf97dd744a" +VERSION = "v0.44.0-192-g7b3758f1c" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 4b9207b1..b2df9a18 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.44.0-164-gf97dd744a" +"packageVersion": "v0.44.0-192-g7b3758f1c" } diff --git a/test/test_v1_persistent_volume_claim_volume_source.py b/test/test_v1_persistent_volume_claim_volume_source.py new file mode 100644 index 00000000..dc34a8ac --- /dev/null +++ b/test/test_v1_persistent_volume_claim_volume_source.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource + + +class TestV1PersistentVolumeClaimVolumeSource(unittest.TestCase): + """ V1PersistentVolumeClaimVolumeSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PersistentVolumeClaimVolumeSource(self): + """ + Test V1PersistentVolumeClaimVolumeSource + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_persistent_volume_claim_volume_source.V1PersistentVolumeClaimVolumeSource() + pass + + +if __name__ == '__main__': + unittest.main() From d25abf7ba3a5d9033b9c6308c7d7117eb932f216 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 24 Aug 2021 10:36:34 +0000 Subject: [PATCH 224/521] Client Python update by KubeVirt Prow build 1430109500022460416 --- README.md | 2 +- docs/V1DeveloperConfiguration.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_developer_configuration.py | 2 ++ setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index e9675996..e84781bf 100644 --- a/README.md +++ b/README.md @@ -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: v0.44.0-192-g7b3758f1c +- Package version: v0.44.0-219-g6873c769d - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1DeveloperConfiguration.md b/docs/V1DeveloperConfiguration.md index bcb7fafe..6d8dcb63 100644 --- a/docs/V1DeveloperConfiguration.md +++ b/docs/V1DeveloperConfiguration.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **minimum_reserve_pvc_bytes** | **int** | | [optional] **node_selectors** | **dict(str, str)** | | [optional] **pvc_tolerate_less_space_up_to_percent** | **int** | | [optional] -**use_emulation** | **bool** | | [optional] +**use_emulation** | **bool** | UseEmulation can be set to true to allow fallback to software emulation in case hardware-assisted emulation is not available. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 05830c70..cf9b004b 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.44.0-192-g7b3758f1c" + release_note="Auto-generated client v0.44.0-219-g6873c769d" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 1f818d90..7c3cca56 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.44.0-192-g7b3758f1c/python' + self.user_agent = 'Swagger-Codegen/v0.44.0-219-g6873c769d/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 1985ca23..d6938711 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.44.0-192-g7b3758f1c".\ + "SDK Package Version: v0.44.0-219-g6873c769d".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_developer_configuration.py b/kubevirt/models/v1_developer_configuration.py index 47b636e2..f7e29328 100644 --- a/kubevirt/models/v1_developer_configuration.py +++ b/kubevirt/models/v1_developer_configuration.py @@ -288,6 +288,7 @@ def pvc_tolerate_less_space_up_to_percent(self, pvc_tolerate_less_space_up_to_pe def use_emulation(self): """ Gets the use_emulation of this V1DeveloperConfiguration. + UseEmulation can be set to true to allow fallback to software emulation in case hardware-assisted emulation is not available. :return: The use_emulation of this V1DeveloperConfiguration. :rtype: bool @@ -298,6 +299,7 @@ def use_emulation(self): def use_emulation(self, use_emulation): """ Sets the use_emulation of this V1DeveloperConfiguration. + UseEmulation can be set to true to allow fallback to software emulation in case hardware-assisted emulation is not available. :param use_emulation: The use_emulation of this V1DeveloperConfiguration. :type: bool diff --git a/setup.py b/setup.py index 75db9c48..b5bced6a 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.44.0-192-g7b3758f1c" +VERSION = "v0.44.0-219-g6873c769d" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b2df9a18..496d9048 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.44.0-192-g7b3758f1c" +"packageVersion": "v0.44.0-219-g6873c769d" } From 543cfce7fcadaab4d69211ee30307c903c34f18d Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Sun, 29 Aug 2021 01:11:28 +0000 Subject: [PATCH 225/521] Client Python update by KubeVirt Prow build 1431778650591596544 --- README.md | 2 +- docs/V1VirtualMachineStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_virtual_machine_status.py | 30 +++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index e84781bf..bff83b18 100644 --- a/README.md +++ b/README.md @@ -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: v0.44.0-219-g6873c769d +- Package version: v0.44.0-256-g67b6de2f4 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineStatus.md b/docs/V1VirtualMachineStatus.md index aff2565f..9ade0184 100644 --- a/docs/V1VirtualMachineStatus.md +++ b/docs/V1VirtualMachineStatus.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **created** | **bool** | Created indicates if the virtual machine is created in the cluster | [optional] **printable_status** | **str** | PrintableStatus is a human readable, high-level representation of the status of the virtual machine | [optional] **ready** | **bool** | Ready indicates if the virtual machine is running and ready | [optional] +**restore_in_progress** | **str** | RestoreInProgress is the name of the VirtualMachineRestore currently executing | [optional] **snapshot_in_progress** | **str** | SnapshotInProgress is the name of the VirtualMachineSnapshot currently executing | [optional] **start_failure** | [**V1VirtualMachineStartFailure**](V1VirtualMachineStartFailure.md) | StartFailure tracks consecutive VMI startup failures for the purposes of crash loop backoffs | [optional] **state_change_requests** | [**list[V1VirtualMachineStateChangeRequest]**](V1VirtualMachineStateChangeRequest.md) | StateChangeRequests indicates a list of actions that should be taken on a VMI e.g. stop a specific VMI then start a new one. | [optional] diff --git a/git_push.sh b/git_push.sh index cf9b004b..ff3edd5b 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.44.0-219-g6873c769d" + release_note="Auto-generated client v0.44.0-256-g67b6de2f4" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 7c3cca56..f52eca01 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.44.0-219-g6873c769d/python' + self.user_agent = 'Swagger-Codegen/v0.44.0-256-g67b6de2f4/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index d6938711..b4f0eca0 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.44.0-219-g6873c769d".\ + "SDK Package Version: v0.44.0-256-g67b6de2f4".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_status.py b/kubevirt/models/v1_virtual_machine_status.py index 45a5b2e7..47e4054e 100644 --- a/kubevirt/models/v1_virtual_machine_status.py +++ b/kubevirt/models/v1_virtual_machine_status.py @@ -35,6 +35,7 @@ class V1VirtualMachineStatus(object): 'created': 'bool', 'printable_status': 'str', 'ready': 'bool', + 'restore_in_progress': 'str', 'snapshot_in_progress': 'str', 'start_failure': 'V1VirtualMachineStartFailure', 'state_change_requests': 'list[V1VirtualMachineStateChangeRequest]', @@ -47,6 +48,7 @@ class V1VirtualMachineStatus(object): 'created': 'created', 'printable_status': 'printableStatus', 'ready': 'ready', + 'restore_in_progress': 'restoreInProgress', 'snapshot_in_progress': 'snapshotInProgress', 'start_failure': 'startFailure', 'state_change_requests': 'stateChangeRequests', @@ -54,7 +56,7 @@ class V1VirtualMachineStatus(object): 'volume_snapshot_statuses': 'volumeSnapshotStatuses' } - def __init__(self, conditions=None, created=None, printable_status=None, ready=None, snapshot_in_progress=None, start_failure=None, state_change_requests=None, volume_requests=None, volume_snapshot_statuses=None): + def __init__(self, conditions=None, created=None, printable_status=None, ready=None, restore_in_progress=None, snapshot_in_progress=None, start_failure=None, state_change_requests=None, volume_requests=None, volume_snapshot_statuses=None): """ V1VirtualMachineStatus - a model defined in Swagger """ @@ -63,6 +65,7 @@ def __init__(self, conditions=None, created=None, printable_status=None, ready=N self._created = None self._printable_status = None self._ready = None + self._restore_in_progress = None self._snapshot_in_progress = None self._start_failure = None self._state_change_requests = None @@ -77,6 +80,8 @@ def __init__(self, conditions=None, created=None, printable_status=None, ready=N self.printable_status = printable_status if ready is not None: self.ready = ready + if restore_in_progress is not None: + self.restore_in_progress = restore_in_progress if snapshot_in_progress is not None: self.snapshot_in_progress = snapshot_in_progress if start_failure is not None: @@ -180,6 +185,29 @@ def ready(self, ready): self._ready = ready + @property + def restore_in_progress(self): + """ + Gets the restore_in_progress of this V1VirtualMachineStatus. + RestoreInProgress is the name of the VirtualMachineRestore currently executing + + :return: The restore_in_progress of this V1VirtualMachineStatus. + :rtype: str + """ + return self._restore_in_progress + + @restore_in_progress.setter + def restore_in_progress(self, restore_in_progress): + """ + Sets the restore_in_progress of this V1VirtualMachineStatus. + RestoreInProgress is the name of the VirtualMachineRestore currently executing + + :param restore_in_progress: The restore_in_progress of this V1VirtualMachineStatus. + :type: str + """ + + self._restore_in_progress = restore_in_progress + @property def snapshot_in_progress(self): """ diff --git a/setup.py b/setup.py index b5bced6a..f898cd2f 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.44.0-219-g6873c769d" +VERSION = "v0.44.0-256-g67b6de2f4" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 496d9048..1b264dc2 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.44.0-219-g6873c769d" +"packageVersion": "v0.44.0-256-g67b6de2f4" } From d4702f5974c1056cc23dac4333ffcf745278d9c0 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 31 Aug 2021 01:38:50 +0000 Subject: [PATCH 226/521] Client Python update by KubeVirt Prow build 1432508978654351360 --- README.md | 2 +- docs/V1VirtualMachineInstanceStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1_virtual_machine_instance_status.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index bff83b18..f7e2b70c 100644 --- a/README.md +++ b/README.md @@ -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: v0.44.0-256-g67b6de2f4 +- Package version: v0.44.0-280-ge56d0a186 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index 2af63020..b00a6348 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **qos_class** | **str** | The Quality of Service (QOS) classification assigned to the virtual machine instance based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md | [optional] **reason** | **str** | A brief CamelCase message indicating details about why the VMI is in this state. e.g. 'NodeUnresponsive' | [optional] **topology_hints** | [**V1TopologyHints**](V1TopologyHints.md) | | [optional] +**virtual_machine_revision_name** | **str** | VirtualMachineRevisionName is used to get the vm revision of the vmi when doing an online vm snapshot | [optional] **volume_status** | [**list[V1VolumeStatus]**](V1VolumeStatus.md) | VolumeStatus contains the statuses of all the volumes | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index ff3edd5b..938bd93b 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.44.0-256-g67b6de2f4" + release_note="Auto-generated client v0.44.0-280-ge56d0a186" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index f52eca01..141e86ab 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.44.0-256-g67b6de2f4/python' + self.user_agent = 'Swagger-Codegen/v0.44.0-280-ge56d0a186/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index b4f0eca0..3500ad9d 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.44.0-256-g67b6de2f4".\ + "SDK Package Version: v0.44.0-280-ge56d0a186".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index 65cabc09..0a92dc44 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -46,6 +46,7 @@ class V1VirtualMachineInstanceStatus(object): 'qos_class': 'str', 'reason': 'str', 'topology_hints': 'V1TopologyHints', + 'virtual_machine_revision_name': 'str', 'volume_status': 'list[V1VolumeStatus]' } @@ -65,10 +66,11 @@ class V1VirtualMachineInstanceStatus(object): 'qos_class': 'qosClass', 'reason': 'reason', 'topology_hints': 'topologyHints', + 'virtual_machine_revision_name': 'virtualMachineRevisionName', 'volume_status': 'volumeStatus' } - def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, migration_method=None, migration_state=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, topology_hints=None, volume_status=None): + def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, migration_method=None, migration_state=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ @@ -88,6 +90,7 @@ def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, self._qos_class = None self._reason = None self._topology_hints = None + self._virtual_machine_revision_name = None self._volume_status = None if active_pods is not None: @@ -120,6 +123,8 @@ def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, self.reason = reason if topology_hints is not None: self.topology_hints = topology_hints + if virtual_machine_revision_name is not None: + self.virtual_machine_revision_name = virtual_machine_revision_name if volume_status is not None: self.volume_status = volume_status @@ -466,6 +471,29 @@ def topology_hints(self, topology_hints): self._topology_hints = topology_hints + @property + def virtual_machine_revision_name(self): + """ + Gets the virtual_machine_revision_name of this V1VirtualMachineInstanceStatus. + VirtualMachineRevisionName is used to get the vm revision of the vmi when doing an online vm snapshot + + :return: The virtual_machine_revision_name of this V1VirtualMachineInstanceStatus. + :rtype: str + """ + return self._virtual_machine_revision_name + + @virtual_machine_revision_name.setter + def virtual_machine_revision_name(self, virtual_machine_revision_name): + """ + Sets the virtual_machine_revision_name of this V1VirtualMachineInstanceStatus. + VirtualMachineRevisionName is used to get the vm revision of the vmi when doing an online vm snapshot + + :param virtual_machine_revision_name: The virtual_machine_revision_name of this V1VirtualMachineInstanceStatus. + :type: str + """ + + self._virtual_machine_revision_name = virtual_machine_revision_name + @property def volume_status(self): """ diff --git a/setup.py b/setup.py index f898cd2f..56115aab 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.44.0-256-g67b6de2f4" +VERSION = "v0.44.0-280-ge56d0a186" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 1b264dc2..c9195628 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.44.0-256-g67b6de2f4" +"packageVersion": "v0.44.0-280-ge56d0a186" } From 8d21408cf6d2965fad46219ae7cc518882cbcbf9 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 15 Sep 2021 02:10:50 +0000 Subject: [PATCH 227/521] Client Python update by KubeVirt Prow build 1437953110789066752 --- README.md | 2 +- docs/V1VirtualMachineInstanceStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1_virtual_machine_instance_status.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f7e2b70c..dacdadea 100644 --- a/README.md +++ b/README.md @@ -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: v0.44.0-280-ge56d0a186 +- Package version: v0.45.0-99-gb19b2a647 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index b00a6348..9f7500c9 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **launcher_container_image_version** | **str** | LauncherContainerImageVersion indicates what container image is currently active for the vmi. | [optional] **migration_method** | **str** | Represents the method using which the vmi can be migrated: live migration or block migration | [optional] **migration_state** | [**V1VirtualMachineInstanceMigrationState**](V1VirtualMachineInstanceMigrationState.md) | Represents the status of a live migration | [optional] +**migration_transport** | **str** | This represents the migration transport | [optional] **node_name** | **str** | NodeName is the name where the VirtualMachineInstance is currently running. | [optional] **phase** | **str** | Phase is the status of the VirtualMachineInstance in kubernetes world. It is not the VirtualMachineInstance status, but partially correlates to it. | [optional] **phase_transition_timestamps** | [**list[V1VirtualMachineInstancePhaseTransitionTimestamp]**](V1VirtualMachineInstancePhaseTransitionTimestamp.md) | PhaseTransitionTimestamp is the timestamp of when the last phase change occurred | [optional] diff --git a/git_push.sh b/git_push.sh index 938bd93b..3d34ff64 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.44.0-280-ge56d0a186" + release_note="Auto-generated client v0.45.0-99-gb19b2a647" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 141e86ab..a523afbe 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.44.0-280-ge56d0a186/python' + self.user_agent = 'Swagger-Codegen/v0.45.0-99-gb19b2a647/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 3500ad9d..cf29569d 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.44.0-280-ge56d0a186".\ + "SDK Package Version: v0.45.0-99-gb19b2a647".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index 0a92dc44..13922360 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -40,6 +40,7 @@ class V1VirtualMachineInstanceStatus(object): 'launcher_container_image_version': 'str', 'migration_method': 'str', 'migration_state': 'V1VirtualMachineInstanceMigrationState', + 'migration_transport': 'str', 'node_name': 'str', 'phase': 'str', 'phase_transition_timestamps': 'list[V1VirtualMachineInstancePhaseTransitionTimestamp]', @@ -60,6 +61,7 @@ class V1VirtualMachineInstanceStatus(object): 'launcher_container_image_version': 'launcherContainerImageVersion', 'migration_method': 'migrationMethod', 'migration_state': 'migrationState', + 'migration_transport': 'migrationTransport', 'node_name': 'nodeName', 'phase': 'phase', 'phase_transition_timestamps': 'phaseTransitionTimestamps', @@ -70,7 +72,7 @@ class V1VirtualMachineInstanceStatus(object): 'volume_status': 'volumeStatus' } - def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, migration_method=None, migration_state=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): + def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ @@ -84,6 +86,7 @@ def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, self._launcher_container_image_version = None self._migration_method = None self._migration_state = None + self._migration_transport = None self._node_name = None self._phase = None self._phase_transition_timestamps = None @@ -111,6 +114,8 @@ def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, self.migration_method = migration_method if migration_state is not None: self.migration_state = migration_state + if migration_transport is not None: + self.migration_transport = migration_transport if node_name is not None: self.node_name = node_name if phase is not None: @@ -335,6 +340,29 @@ def migration_state(self, migration_state): self._migration_state = migration_state + @property + def migration_transport(self): + """ + Gets the migration_transport of this V1VirtualMachineInstanceStatus. + This represents the migration transport + + :return: The migration_transport of this V1VirtualMachineInstanceStatus. + :rtype: str + """ + return self._migration_transport + + @migration_transport.setter + def migration_transport(self, migration_transport): + """ + Sets the migration_transport of this V1VirtualMachineInstanceStatus. + This represents the migration transport + + :param migration_transport: The migration_transport of this V1VirtualMachineInstanceStatus. + :type: str + """ + + self._migration_transport = migration_transport + @property def node_name(self): """ diff --git a/setup.py b/setup.py index 56115aab..47373036 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.44.0-280-ge56d0a186" +VERSION = "v0.45.0-99-gb19b2a647" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index c9195628..c6494b24 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.44.0-280-ge56d0a186" +"packageVersion": "v0.45.0-99-gb19b2a647" } From 40fd74bf015cebfb5ef70694dc3f84bebcdcfd62 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 15 Sep 2021 05:24:10 +0000 Subject: [PATCH 228/521] Client Python update by KubeVirt Prow build 1438002722090520576 --- README.md | 11 +- docs/DefaultApi.md | 375 ++++++++++++++++ git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 836 ++++++++++++++++++++++++++++++++++- kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 72 +++ 9 files changed, 1282 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index dacdadea..2b4f365d 100644 --- a/README.md +++ b/README.md @@ -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: v0.45.0-99-gb19b2a647 +- Package version: v0.45.0-113-g476fd77b9 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -105,6 +105,9 @@ Class | Method | HTTP request | Description *DefaultApi* | [**get_api_resources_kubevirt_io_v1**](docs/DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | *DefaultApi* | [**get_api_resources_snapshot_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_snapshot_kubevirt_io_v1alpha1) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/ | *DefaultApi* | [**get_root_paths**](docs/DefaultApi.md#get_root_paths) | **GET** / | +*DefaultApi* | [**handle_dump_profiler**](docs/DefaultApi.md#handle_dump_profiler) | **GET** /dump-profiler | +*DefaultApi* | [**handle_start_profiler**](docs/DefaultApi.md#handle_start_profiler) | **GET** /start-profiler | +*DefaultApi* | [**handle_stop_profiler**](docs/DefaultApi.md#handle_stop_profiler) | **GET** /stop-profiler | *DefaultApi* | [**list_kube_virt_for_all_namespaces**](docs/DefaultApi.md#list_kube_virt_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/kubevirt | *DefaultApi* | [**list_namespaced_kube_virt**](docs/DefaultApi.md#list_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | *DefaultApi* | [**list_namespaced_virtual_machine**](docs/DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | @@ -185,7 +188,10 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3_userlist**](docs/DefaultApi.md#v1alpha3_userlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | *DefaultApi* | [**v1alpha3_version**](docs/DefaultApi.md#v1alpha3_version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | *DefaultApi* | [**v1alpha3_vnc**](docs/DefaultApi.md#v1alpha3_vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | +*DefaultApi* | [**v1alpha3dump_cluster_profiler**](docs/DefaultApi.md#v1alpha3dump_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/dump-cluster-profiler | *DefaultApi* | [**v1alpha3get_api_sub_resources**](docs/DefaultApi.md#v1alpha3get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1alpha3/ | +*DefaultApi* | [**v1alpha3start_cluster_profiler**](docs/DefaultApi.md#v1alpha3start_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/start-cluster-profiler | +*DefaultApi* | [**v1alpha3stop_cluster_profiler**](docs/DefaultApi.md#v1alpha3stop_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/stop-cluster-profiler | *DefaultApi* | [**v1alpha3usbredir**](docs/DefaultApi.md#v1alpha3usbredir) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir | *DefaultApi* | [**v1alpha3vm_addvolume**](docs/DefaultApi.md#v1alpha3vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | *DefaultApi* | [**v1alpha3vm_port_forward**](docs/DefaultApi.md#v1alpha3vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | @@ -195,7 +201,10 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3vmi_port_forward**](docs/DefaultApi.md#v1alpha3vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | *DefaultApi* | [**v1alpha3vmi_port_forward_with_protocol**](docs/DefaultApi.md#v1alpha3vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | *DefaultApi* | [**v1alpha3vmi_removevolume**](docs/DefaultApi.md#v1alpha3vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | +*DefaultApi* | [**v1dump_cluster_profiler**](docs/DefaultApi.md#v1dump_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/dump-cluster-profiler | *DefaultApi* | [**v1get_api_sub_resources**](docs/DefaultApi.md#v1get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1/ | +*DefaultApi* | [**v1start_cluster_profiler**](docs/DefaultApi.md#v1start_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/start-cluster-profiler | +*DefaultApi* | [**v1stop_cluster_profiler**](docs/DefaultApi.md#v1stop_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/stop-cluster-profiler | *DefaultApi* | [**v1usbredir**](docs/DefaultApi.md#v1usbredir) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir | *DefaultApi* | [**v1vm_addvolume**](docs/DefaultApi.md#v1vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | *DefaultApi* | [**v1vm_port_forward**](docs/DefaultApi.md#v1vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 47dd52ee..c0b1a27e 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -39,6 +39,9 @@ Method | HTTP request | Description [**get_api_resources_kubevirt_io_v1**](DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | [**get_api_resources_snapshot_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_snapshot_kubevirt_io_v1alpha1) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/ | [**get_root_paths**](DefaultApi.md#get_root_paths) | **GET** / | +[**handle_dump_profiler**](DefaultApi.md#handle_dump_profiler) | **GET** /dump-profiler | +[**handle_start_profiler**](DefaultApi.md#handle_start_profiler) | **GET** /start-profiler | +[**handle_stop_profiler**](DefaultApi.md#handle_stop_profiler) | **GET** /stop-profiler | [**list_kube_virt_for_all_namespaces**](DefaultApi.md#list_kube_virt_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/kubevirt | [**list_namespaced_kube_virt**](DefaultApi.md#list_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | [**list_namespaced_virtual_machine**](DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | @@ -119,7 +122,10 @@ Method | HTTP request | Description [**v1alpha3_userlist**](DefaultApi.md#v1alpha3_userlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | [**v1alpha3_version**](DefaultApi.md#v1alpha3_version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | [**v1alpha3_vnc**](DefaultApi.md#v1alpha3_vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | +[**v1alpha3dump_cluster_profiler**](DefaultApi.md#v1alpha3dump_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/dump-cluster-profiler | [**v1alpha3get_api_sub_resources**](DefaultApi.md#v1alpha3get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1alpha3/ | +[**v1alpha3start_cluster_profiler**](DefaultApi.md#v1alpha3start_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/start-cluster-profiler | +[**v1alpha3stop_cluster_profiler**](DefaultApi.md#v1alpha3stop_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/stop-cluster-profiler | [**v1alpha3usbredir**](DefaultApi.md#v1alpha3usbredir) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir | [**v1alpha3vm_addvolume**](DefaultApi.md#v1alpha3vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | [**v1alpha3vm_port_forward**](DefaultApi.md#v1alpha3vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | @@ -129,7 +135,10 @@ Method | HTTP request | Description [**v1alpha3vmi_port_forward**](DefaultApi.md#v1alpha3vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | [**v1alpha3vmi_port_forward_with_protocol**](DefaultApi.md#v1alpha3vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | [**v1alpha3vmi_removevolume**](DefaultApi.md#v1alpha3vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | +[**v1dump_cluster_profiler**](DefaultApi.md#v1dump_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/dump-cluster-profiler | [**v1get_api_sub_resources**](DefaultApi.md#v1get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1/ | +[**v1start_cluster_profiler**](DefaultApi.md#v1start_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/start-cluster-profiler | +[**v1stop_cluster_profiler**](DefaultApi.md#v1stop_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/stop-cluster-profiler | [**v1usbredir**](DefaultApi.md#v1usbredir) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir | [**v1vm_addvolume**](DefaultApi.md#v1vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | [**v1vm_port_forward**](DefaultApi.md#v1vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | @@ -2002,6 +2011,132 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **handle_dump_profiler** +> handle_dump_profiler() + + + +dump profiler results endpoint + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_instance.handle_dump_profiler() +except ApiException as e: + print("Exception when calling DefaultApi->handle_dump_profiler: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **handle_start_profiler** +> handle_start_profiler() + + + +start profiler endpoint + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_instance.handle_start_profiler() +except ApiException as e: + print("Exception when calling DefaultApi->handle_start_profiler: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **handle_stop_profiler** +> handle_stop_profiler() + + + +stop profiler endpoint + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_instance.handle_stop_profiler() +except ApiException as e: + print("Exception when calling DefaultApi->handle_stop_profiler: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **list_kube_virt_for_all_namespaces** > V1KubeVirtList list_kube_virt_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -6154,6 +6289,46 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3dump_cluster_profiler** +> v1alpha3dump_cluster_profiler() + + + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_instance.v1alpha3dump_cluster_profiler() +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3dump_cluster_profiler: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3get_api_sub_resources** > K8sIoApimachineryPkgApisMetaV1APIResourceList v1alpha3get_api_sub_resources() @@ -6197,6 +6372,86 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3start_cluster_profiler** +> v1alpha3start_cluster_profiler() + + + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_instance.v1alpha3start_cluster_profiler() +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3start_cluster_profiler: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1alpha3stop_cluster_profiler** +> v1alpha3stop_cluster_profiler() + + + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_instance.v1alpha3stop_cluster_profiler() +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3stop_cluster_profiler: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3usbredir** > v1alpha3usbredir(name, namespace) @@ -6653,6 +6908,46 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1dump_cluster_profiler** +> v1dump_cluster_profiler() + + + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_instance.v1dump_cluster_profiler() +except ApiException as e: + print("Exception when calling DefaultApi->v1dump_cluster_profiler: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1get_api_sub_resources** > K8sIoApimachineryPkgApisMetaV1APIResourceList v1get_api_sub_resources() @@ -6696,6 +6991,86 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1start_cluster_profiler** +> v1start_cluster_profiler() + + + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_instance.v1start_cluster_profiler() +except ApiException as e: + print("Exception when calling DefaultApi->v1start_cluster_profiler: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1stop_cluster_profiler** +> v1stop_cluster_profiler() + + + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_instance.v1stop_cluster_profiler() +except ApiException as e: + print("Exception when calling DefaultApi->v1stop_cluster_profiler: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1usbredir** > v1usbredir(name, namespace) diff --git a/git_push.sh b/git_push.sh index 3d34ff64..76c512a4 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.45.0-99-gb19b2a647" + release_note="Auto-generated client v0.45.0-113-g476fd77b9" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index a523afbe..09d39dbb 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.45.0-99-gb19b2a647/python' + self.user_agent = 'Swagger-Codegen/v0.45.0-113-g476fd77b9/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 8a058dac..e572f044 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -4068,6 +4068,270 @@ def get_root_paths_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def handle_dump_profiler(self, **kwargs): + """ + dump profiler results endpoint + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.handle_dump_profiler(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.handle_dump_profiler_with_http_info(**kwargs) + else: + (data) = self.handle_dump_profiler_with_http_info(**kwargs) + return data + + def handle_dump_profiler_with_http_info(self, **kwargs): + """ + dump profiler results endpoint + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.handle_dump_profiler_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method handle_dump_profiler" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/dump-profiler', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def handle_start_profiler(self, **kwargs): + """ + start profiler endpoint + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.handle_start_profiler(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.handle_start_profiler_with_http_info(**kwargs) + else: + (data) = self.handle_start_profiler_with_http_info(**kwargs) + return data + + def handle_start_profiler_with_http_info(self, **kwargs): + """ + start profiler endpoint + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.handle_start_profiler_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method handle_start_profiler" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/start-profiler', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def handle_stop_profiler(self, **kwargs): + """ + stop profiler endpoint + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.handle_stop_profiler(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.handle_stop_profiler_with_http_info(**kwargs) + else: + (data) = self.handle_stop_profiler_with_http_info(**kwargs) + return data + + def handle_stop_profiler_with_http_info(self, **kwargs): + """ + stop profiler endpoint + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.handle_stop_profiler_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method handle_stop_profiler" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/stop-profiler', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def list_kube_virt_for_all_namespaces(self, **kwargs): """ Get a list of all KubeVirt objects. @@ -13072,44 +13336,42 @@ def v1alpha3_vnc_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3get_api_sub_resources(self, **kwargs): + def v1alpha3dump_cluster_profiler(self, **kwargs): """ - Get a KubeVirt API resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3get_api_sub_resources(callback=callback_function) + >>> thread = api.v1alpha3dump_cluster_profiler(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1APIResourceList + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3get_api_sub_resources_with_http_info(**kwargs) + return self.v1alpha3dump_cluster_profiler_with_http_info(**kwargs) else: - (data) = self.v1alpha3get_api_sub_resources_with_http_info(**kwargs) + (data) = self.v1alpha3dump_cluster_profiler_with_http_info(**kwargs) return data - def v1alpha3get_api_sub_resources_with_http_info(self, **kwargs): + def v1alpha3dump_cluster_profiler_with_http_info(self, **kwargs): """ - Get a KubeVirt API resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3get_api_sub_resources_with_http_info(callback=callback_function) + >>> thread = api.v1alpha3dump_cluster_profiler_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1APIResourceList + :return: None If the method is called asynchronously, returns the request thread. """ @@ -13125,7 +13387,7 @@ def v1alpha3get_api_sub_resources_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3get_api_sub_resources" % key + " to method v1alpha3dump_cluster_profiler" % key ) params[key] = val del params['kwargs'] @@ -13149,14 +13411,14 @@ def v1alpha3get_api_sub_resources_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/dump-cluster-profiler', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='K8sIoApimachineryPkgApisMetaV1APIResourceList', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13164,16 +13426,288 @@ def v1alpha3get_api_sub_resources_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3usbredir(self, name, namespace, **kwargs): + def v1alpha3get_api_sub_resources(self, **kwargs): """ - Open a websocket connection to connect to USB device on the specified VirtualMachineInstance. + Get a KubeVirt API resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3usbredir(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3get_api_sub_resources(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3get_api_sub_resources_with_http_info(**kwargs) + else: + (data) = self.v1alpha3get_api_sub_resources_with_http_info(**kwargs) + return data + + def v1alpha3get_api_sub_resources_with_http_info(self, **kwargs): + """ + Get a KubeVirt API resources + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3get_api_sub_resources_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3get_api_sub_resources" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1APIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def v1alpha3start_cluster_profiler(self, **kwargs): + """ + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3start_cluster_profiler(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3start_cluster_profiler_with_http_info(**kwargs) + else: + (data) = self.v1alpha3start_cluster_profiler_with_http_info(**kwargs) + return data + + def v1alpha3start_cluster_profiler_with_http_info(self, **kwargs): + """ + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3start_cluster_profiler_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3start_cluster_profiler" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/start-cluster-profiler', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def v1alpha3stop_cluster_profiler(self, **kwargs): + """ + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3stop_cluster_profiler(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3stop_cluster_profiler_with_http_info(**kwargs) + else: + (data) = self.v1alpha3stop_cluster_profiler_with_http_info(**kwargs) + return data + + def v1alpha3stop_cluster_profiler_with_http_info(self, **kwargs): + """ + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3stop_cluster_profiler_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3stop_cluster_profiler" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/stop-cluster-profiler', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def v1alpha3usbredir(self, name, namespace, **kwargs): + """ + Open a websocket connection to connect to USB device on the specified VirtualMachineInstance. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3usbredir(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -14161,6 +14695,96 @@ def v1alpha3vmi_removevolume_with_http_info(self, name, namespace, body, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1dump_cluster_profiler(self, **kwargs): + """ + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1dump_cluster_profiler(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1dump_cluster_profiler_with_http_info(**kwargs) + else: + (data) = self.v1dump_cluster_profiler_with_http_info(**kwargs) + return data + + def v1dump_cluster_profiler_with_http_info(self, **kwargs): + """ + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1dump_cluster_profiler_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1dump_cluster_profiler" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/dump-cluster-profiler', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1get_api_sub_resources(self, **kwargs): """ Get a KubeVirt API resources @@ -14253,6 +14877,186 @@ def v1get_api_sub_resources_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1start_cluster_profiler(self, **kwargs): + """ + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1start_cluster_profiler(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1start_cluster_profiler_with_http_info(**kwargs) + else: + (data) = self.v1start_cluster_profiler_with_http_info(**kwargs) + return data + + def v1start_cluster_profiler_with_http_info(self, **kwargs): + """ + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1start_cluster_profiler_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1start_cluster_profiler" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/start-cluster-profiler', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def v1stop_cluster_profiler(self, **kwargs): + """ + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1stop_cluster_profiler(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1stop_cluster_profiler_with_http_info(**kwargs) + else: + (data) = self.v1stop_cluster_profiler_with_http_info(**kwargs) + return data + + def v1stop_cluster_profiler_with_http_info(self, **kwargs): + """ + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1stop_cluster_profiler_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1stop_cluster_profiler" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/stop-cluster-profiler', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1usbredir(self, name, namespace, **kwargs): """ Open a websocket connection to connect to USB device on the specified VirtualMachineInstance. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index cf29569d..071f1e8c 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.45.0-99-gb19b2a647".\ + "SDK Package Version: v0.45.0-113-g476fd77b9".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index 47373036..d169ce68 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.45.0-99-gb19b2a647" +VERSION = "v0.45.0-113-g476fd77b9" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index c6494b24..65fe196d 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.45.0-99-gb19b2a647" +"packageVersion": "v0.45.0-113-g476fd77b9" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 62625a71..9711c517 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -308,6 +308,30 @@ def test_get_root_paths(self): Test case for get_root_paths + """ + pass + + def test_handle_dump_profiler(self): + """ + Test case for handle_dump_profiler + + + """ + pass + + def test_handle_start_profiler(self): + """ + Test case for handle_start_profiler + + + """ + pass + + def test_handle_stop_profiler(self): + """ + Test case for handle_stop_profiler + + """ pass @@ -948,6 +972,14 @@ def test_v1alpha3_vnc(self): Test case for v1alpha3_vnc + """ + pass + + def test_v1alpha3dump_cluster_profiler(self): + """ + Test case for v1alpha3dump_cluster_profiler + + """ pass @@ -956,6 +988,22 @@ def test_v1alpha3get_api_sub_resources(self): Test case for v1alpha3get_api_sub_resources + """ + pass + + def test_v1alpha3start_cluster_profiler(self): + """ + Test case for v1alpha3start_cluster_profiler + + + """ + pass + + def test_v1alpha3stop_cluster_profiler(self): + """ + Test case for v1alpha3stop_cluster_profiler + + """ pass @@ -1028,6 +1076,14 @@ def test_v1alpha3vmi_removevolume(self): Test case for v1alpha3vmi_removevolume + """ + pass + + def test_v1dump_cluster_profiler(self): + """ + Test case for v1dump_cluster_profiler + + """ pass @@ -1036,6 +1092,22 @@ def test_v1get_api_sub_resources(self): Test case for v1get_api_sub_resources + """ + pass + + def test_v1start_cluster_profiler(self): + """ + Test case for v1start_cluster_profiler + + + """ + pass + + def test_v1stop_cluster_profiler(self): + """ + Test case for v1stop_cluster_profiler + + """ pass From 968d5ef1a79b925690e31e4bd93e13b34b9ae38b Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 5 Oct 2021 00:37:12 +0000 Subject: [PATCH 229/521] Client Python update by KubeVirt Prow build 1445178117382475776 --- README.md | 2 +- docs/V1VolumeStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_volume_status.py | 30 ++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 2b4f365d..99fefb60 100644 --- a/README.md +++ b/README.md @@ -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: v0.45.0-113-g476fd77b9 +- Package version: v0.46.0-rc.0-25-g139f486ec - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VolumeStatus.md b/docs/V1VolumeStatus.md index 0a82ec4a..c7f05d6c 100644 --- a/docs/V1VolumeStatus.md +++ b/docs/V1VolumeStatus.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **persistent_volume_claim_info** | [**V1PersistentVolumeClaimInfo**](V1PersistentVolumeClaimInfo.md) | PersistentVolumeClaimInfo is information about the PVC that handler requires during start flow | [optional] **phase** | **str** | Phase is the phase | [optional] **reason** | **str** | Reason is a brief description of why we are in the current hotplug volume phase | [optional] +**size** | **int** | Represents the size of the volume | [optional] **target** | **str** | Target is the target name used when adding the volume to the VM, eg: vda | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 76c512a4..df965077 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.45.0-113-g476fd77b9" + release_note="Auto-generated client v0.46.0-rc.0-25-g139f486ec" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 09d39dbb..1041db06 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.45.0-113-g476fd77b9/python' + self.user_agent = 'Swagger-Codegen/v0.46.0-rc.0-25-g139f486ec/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 071f1e8c..f37df200 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.45.0-113-g476fd77b9".\ + "SDK Package Version: v0.46.0-rc.0-25-g139f486ec".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_volume_status.py b/kubevirt/models/v1_volume_status.py index 3c24b507..e98cc251 100644 --- a/kubevirt/models/v1_volume_status.py +++ b/kubevirt/models/v1_volume_status.py @@ -37,6 +37,7 @@ class V1VolumeStatus(object): 'persistent_volume_claim_info': 'V1PersistentVolumeClaimInfo', 'phase': 'str', 'reason': 'str', + 'size': 'int', 'target': 'str' } @@ -47,10 +48,11 @@ class V1VolumeStatus(object): 'persistent_volume_claim_info': 'persistentVolumeClaimInfo', 'phase': 'phase', 'reason': 'reason', + 'size': 'size', 'target': 'target' } - def __init__(self, hotplug_volume=None, message=None, name=None, persistent_volume_claim_info=None, phase=None, reason=None, target=None): + def __init__(self, hotplug_volume=None, message=None, name=None, persistent_volume_claim_info=None, phase=None, reason=None, size=None, target=None): """ V1VolumeStatus - a model defined in Swagger """ @@ -61,6 +63,7 @@ def __init__(self, hotplug_volume=None, message=None, name=None, persistent_volu self._persistent_volume_claim_info = None self._phase = None self._reason = None + self._size = None self._target = None if hotplug_volume is not None: @@ -74,6 +77,8 @@ def __init__(self, hotplug_volume=None, message=None, name=None, persistent_volu self.phase = phase if reason is not None: self.reason = reason + if size is not None: + self.size = size self.target = target @property @@ -216,6 +221,29 @@ def reason(self, reason): self._reason = reason + @property + def size(self): + """ + Gets the size of this V1VolumeStatus. + Represents the size of the volume + + :return: The size of this V1VolumeStatus. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """ + Sets the size of this V1VolumeStatus. + Represents the size of the volume + + :param size: The size of this V1VolumeStatus. + :type: int + """ + + self._size = size + @property def target(self): """ diff --git a/setup.py b/setup.py index d169ce68..8e67429a 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.45.0-113-g476fd77b9" +VERSION = "v0.46.0-rc.0-25-g139f486ec" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 65fe196d..1d50207b 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.45.0-113-g476fd77b9" +"packageVersion": "v0.46.0-rc.0-25-g139f486ec" } From 6923951ca38e8c30b3c6f57ed350d77287d68247 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 6 Oct 2021 23:41:12 +0000 Subject: [PATCH 230/521] Client Python update by KubeVirt Prow build 1445888894997368832 --- README.md | 3 +- docs/V1CPU.md | 1 + docs/V1Realtime.md | 10 +++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_cpu.py | 30 +++++++- kubevirt/models/v1_realtime.py | 125 +++++++++++++++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_realtime.py | 44 ++++++++++++ 14 files changed, 221 insertions(+), 7 deletions(-) create mode 100644 docs/V1Realtime.md create mode 100644 kubevirt/models/v1_realtime.py create mode 100644 test/test_v1_realtime.py diff --git a/README.md b/README.md index 99fefb60..0d0b02d3 100644 --- a/README.md +++ b/README.md @@ -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: v0.46.0-rc.0-25-g139f486ec +- Package version: v0.46.0-rc.0-75-gd64731bde - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -395,6 +395,7 @@ Class | Method | HTTP request | Description - [V1RESTClientConfiguration](docs/V1RESTClientConfiguration.md) - [V1RTCTimer](docs/V1RTCTimer.md) - [V1RateLimiter](docs/V1RateLimiter.md) + - [V1Realtime](docs/V1Realtime.md) - [V1ReloadableComponentConfiguration](docs/V1ReloadableComponentConfiguration.md) - [V1RemoveVolumeOptions](docs/V1RemoveVolumeOptions.md) - [V1ResourceRequirements](docs/V1ResourceRequirements.md) diff --git a/docs/V1CPU.md b/docs/V1CPU.md index 5cab24f0..93931034 100644 --- a/docs/V1CPU.md +++ b/docs/V1CPU.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **isolate_emulator_thread** | **bool** | IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it. | [optional] **model** | **str** | Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. | [optional] **numa** | [**V1NUMA**](V1NUMA.md) | NUMA allows specifying settings for the guest NUMA topology | [optional] +**realtime** | [**V1Realtime**](V1Realtime.md) | Realtime instructs the virt-launcher to tune the VMI for lower latency, optional for real time workloads | [optional] **sockets** | **int** | Sockets specifies the number of sockets inside the vmi. Must be a value greater or equal 1. | [optional] **threads** | **int** | Threads specifies the number of threads inside the vmi. Must be a value greater or equal 1. | [optional] diff --git a/docs/V1Realtime.md b/docs/V1Realtime.md new file mode 100644 index 00000000..5a9c6a71 --- /dev/null +++ b/docs/V1Realtime.md @@ -0,0 +1,10 @@ +# V1Realtime + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mask** | **str** | Mask defines the vcpu mask expression that defines which vcpus are used for realtime. Format matches libvirt's expressions. Example: \"0-3,^1\",\"0,2,3\",\"2-3\" | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index df965077..0e4f01b1 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.46.0-rc.0-25-g139f486ec" + release_note="Auto-generated client v0.46.0-rc.0-75-gd64731bde" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 114cdd2c..1221d201 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -496,6 +496,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_rate_limiter.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_rate_limiter.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1RateLimiter.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_realtime.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_realtime.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Realtime.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_reloadable_component_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_reloadable_component_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ReloadableComponentConfiguration.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index d3a66cd0..0265e19d 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -173,6 +173,7 @@ from .models.v1_rest_client_configuration import V1RESTClientConfiguration from .models.v1_rtc_timer import V1RTCTimer from .models.v1_rate_limiter import V1RateLimiter +from .models.v1_realtime import V1Realtime from .models.v1_reloadable_component_configuration import V1ReloadableComponentConfiguration from .models.v1_remove_volume_options import V1RemoveVolumeOptions from .models.v1_resource_requirements import V1ResourceRequirements diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 1041db06..b70506a8 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.46.0-rc.0-25-g139f486ec/python' + self.user_agent = 'Swagger-Codegen/v0.46.0-rc.0-75-gd64731bde/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index f37df200..360dc45f 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.46.0-rc.0-25-g139f486ec".\ + "SDK Package Version: v0.46.0-rc.0-75-gd64731bde".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index b0fc7351..e4c98e9a 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -173,6 +173,7 @@ from .v1_rest_client_configuration import V1RESTClientConfiguration from .v1_rtc_timer import V1RTCTimer from .v1_rate_limiter import V1RateLimiter +from .v1_realtime import V1Realtime from .v1_reloadable_component_configuration import V1ReloadableComponentConfiguration from .v1_remove_volume_options import V1RemoveVolumeOptions from .v1_resource_requirements import V1ResourceRequirements diff --git a/kubevirt/models/v1_cpu.py b/kubevirt/models/v1_cpu.py index 11896f1a..303131c4 100644 --- a/kubevirt/models/v1_cpu.py +++ b/kubevirt/models/v1_cpu.py @@ -37,6 +37,7 @@ class V1CPU(object): 'isolate_emulator_thread': 'bool', 'model': 'str', 'numa': 'V1NUMA', + 'realtime': 'V1Realtime', 'sockets': 'int', 'threads': 'int' } @@ -48,11 +49,12 @@ class V1CPU(object): 'isolate_emulator_thread': 'isolateEmulatorThread', 'model': 'model', 'numa': 'numa', + 'realtime': 'realtime', 'sockets': 'sockets', 'threads': 'threads' } - def __init__(self, cores=None, dedicated_cpu_placement=None, features=None, isolate_emulator_thread=None, model=None, numa=None, sockets=None, threads=None): + def __init__(self, cores=None, dedicated_cpu_placement=None, features=None, isolate_emulator_thread=None, model=None, numa=None, realtime=None, sockets=None, threads=None): """ V1CPU - a model defined in Swagger """ @@ -63,6 +65,7 @@ def __init__(self, cores=None, dedicated_cpu_placement=None, features=None, isol self._isolate_emulator_thread = None self._model = None self._numa = None + self._realtime = None self._sockets = None self._threads = None @@ -78,6 +81,8 @@ def __init__(self, cores=None, dedicated_cpu_placement=None, features=None, isol self.model = model if numa is not None: self.numa = numa + if realtime is not None: + self.realtime = realtime if sockets is not None: self.sockets = sockets if threads is not None: @@ -221,6 +226,29 @@ def numa(self, numa): self._numa = numa + @property + def realtime(self): + """ + Gets the realtime of this V1CPU. + Realtime instructs the virt-launcher to tune the VMI for lower latency, optional for real time workloads + + :return: The realtime of this V1CPU. + :rtype: V1Realtime + """ + return self._realtime + + @realtime.setter + def realtime(self, realtime): + """ + Sets the realtime of this V1CPU. + Realtime instructs the virt-launcher to tune the VMI for lower latency, optional for real time workloads + + :param realtime: The realtime of this V1CPU. + :type: V1Realtime + """ + + self._realtime = realtime + @property def sockets(self): """ diff --git a/kubevirt/models/v1_realtime.py b/kubevirt/models/v1_realtime.py new file mode 100644 index 00000000..26e3a02d --- /dev/null +++ b/kubevirt/models/v1_realtime.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Realtime(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'mask': 'str' + } + + attribute_map = { + 'mask': 'mask' + } + + def __init__(self, mask=None): + """ + V1Realtime - a model defined in Swagger + """ + + self._mask = None + + if mask is not None: + self.mask = mask + + @property + def mask(self): + """ + Gets the mask of this V1Realtime. + Mask defines the vcpu mask expression that defines which vcpus are used for realtime. Format matches libvirt's expressions. Example: \"0-3,^1\",\"0,2,3\",\"2-3\" + + :return: The mask of this V1Realtime. + :rtype: str + """ + return self._mask + + @mask.setter + def mask(self, mask): + """ + Sets the mask of this V1Realtime. + Mask defines the vcpu mask expression that defines which vcpus are used for realtime. Format matches libvirt's expressions. Example: \"0-3,^1\",\"0,2,3\",\"2-3\" + + :param mask: The mask of this V1Realtime. + :type: str + """ + + self._mask = mask + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1Realtime): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 8e67429a..822e1618 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.46.0-rc.0-25-g139f486ec" +VERSION = "v0.46.0-rc.0-75-gd64731bde" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 1d50207b..0baf0673 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.46.0-rc.0-25-g139f486ec" +"packageVersion": "v0.46.0-rc.0-75-gd64731bde" } diff --git a/test/test_v1_realtime.py b/test/test_v1_realtime.py new file mode 100644 index 00000000..e9aa245d --- /dev/null +++ b/test/test_v1_realtime.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_realtime import V1Realtime + + +class TestV1Realtime(unittest.TestCase): + """ V1Realtime unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Realtime(self): + """ + Test V1Realtime + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_realtime.V1Realtime() + pass + + +if __name__ == '__main__': + unittest.main() From c9f9d3bc429f783076982b46b194d5f7669eab1b Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 13 Oct 2021 23:33:04 +0000 Subject: [PATCH 231/521] Client Python update by KubeVirt Prow build 1448420616431472640 --- README.md | 28 +- docs/DefaultApi.md | 1214 ++- docs/V1FlavorMatcher.md | 12 + docs/V1VirtualMachineSpec.md | 1 + docs/V1alpha1VirtualMachineClusterFlavor.md | 13 + ...V1alpha1VirtualMachineClusterFlavorList.md | 13 + docs/V1alpha1VirtualMachineFlavor.md | 13 + docs/V1alpha1VirtualMachineFlavorList.md | 13 + docs/V1alpha1VirtualMachineFlavorProfile.md | 12 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 18 + kubevirt/__init__.py | 6 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 8363 +++++++++++------ kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 6 + kubevirt/models/v1_flavor_matcher.py | 182 + kubevirt/models/v1_virtual_machine_spec.py | 30 +- ...v1alpha1_virtual_machine_cluster_flavor.py | 206 + ...ha1_virtual_machine_cluster_flavor_list.py | 206 + .../models/v1alpha1_virtual_machine_flavor.py | 206 + .../v1alpha1_virtual_machine_flavor_list.py | 206 + ...v1alpha1_virtual_machine_flavor_profile.py | 180 + setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 160 + test/test_v1_flavor_matcher.py | 44 + ...v1alpha1_virtual_machine_cluster_flavor.py | 44 + ...ha1_virtual_machine_cluster_flavor_list.py | 44 + test/test_v1alpha1_virtual_machine_flavor.py | 44 + ...st_v1alpha1_virtual_machine_flavor_list.py | 44 + ...v1alpha1_virtual_machine_flavor_profile.py | 44 + 32 files changed, 8295 insertions(+), 3067 deletions(-) create mode 100644 docs/V1FlavorMatcher.md create mode 100644 docs/V1alpha1VirtualMachineClusterFlavor.md create mode 100644 docs/V1alpha1VirtualMachineClusterFlavorList.md create mode 100644 docs/V1alpha1VirtualMachineFlavor.md create mode 100644 docs/V1alpha1VirtualMachineFlavorList.md create mode 100644 docs/V1alpha1VirtualMachineFlavorProfile.md create mode 100644 kubevirt/models/v1_flavor_matcher.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_cluster_flavor.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_cluster_flavor_list.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_flavor.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_flavor_list.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_flavor_profile.py create mode 100644 test/test_v1_flavor_matcher.py create mode 100644 test/test_v1alpha1_virtual_machine_cluster_flavor.py create mode 100644 test/test_v1alpha1_virtual_machine_cluster_flavor_list.py create mode 100644 test/test_v1alpha1_virtual_machine_flavor.py create mode 100644 test/test_v1alpha1_virtual_machine_flavor_list.py create mode 100644 test/test_v1alpha1_virtual_machine_flavor_profile.py diff --git a/README.md b/README.md index 0d0b02d3..3e6e9025 100644 --- a/README.md +++ b/README.md @@ -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: v0.46.0-rc.0-75-gd64731bde +- Package version: v0.46.0-134-gbbbcd3a73 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -72,6 +72,7 @@ Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *DefaultApi* | [**create_namespaced_kube_virt**](docs/DefaultApi.md#create_namespaced_kube_virt) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | *DefaultApi* | [**create_namespaced_virtual_machine**](docs/DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +*DefaultApi* | [**create_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#create_namespaced_virtual_machine_flavor) | **POST** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | *DefaultApi* | [**create_namespaced_virtual_machine_instance**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | *DefaultApi* | [**create_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | *DefaultApi* | [**create_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | @@ -79,8 +80,10 @@ Class | Method | HTTP request | Description *DefaultApi* | [**create_namespaced_virtual_machine_restore**](docs/DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**create_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**create_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | +*DefaultApi* | [**create_virtual_machine_cluster_flavor**](docs/DefaultApi.md#create_virtual_machine_cluster_flavor) | **POST** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | *DefaultApi* | [**delete_collection_namespaced_kube_virt**](docs/DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | *DefaultApi* | [**delete_collection_namespaced_virtual_machine**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | @@ -88,8 +91,10 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_collection_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | +*DefaultApi* | [**delete_collection_virtual_machine_cluster_flavor**](docs/DefaultApi.md#delete_collection_virtual_machine_cluster_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | *DefaultApi* | [**delete_namespaced_kube_virt**](docs/DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine**](docs/DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#delete_namespaced_virtual_machine_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | @@ -97,11 +102,14 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_virtual_machine_cluster_flavor**](docs/DefaultApi.md#delete_virtual_machine_cluster_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**func1**](docs/DefaultApi.md#func1) | **GET** /healthz | *DefaultApi* | [**func7**](docs/DefaultApi.md#func7) | **GET** /openapi/v2 | +*DefaultApi* | [**get_api_group_flavor_kubevirt_io**](docs/DefaultApi.md#get_api_group_flavor_kubevirt_io) | **GET** /apis/flavor.kubevirt.io/ | *DefaultApi* | [**get_api_group_kubevirt_io**](docs/DefaultApi.md#get_api_group_kubevirt_io) | **GET** /apis/kubevirt.io/ | *DefaultApi* | [**get_api_group_list**](docs/DefaultApi.md#get_api_group_list) | **GET** /apis | *DefaultApi* | [**get_api_group_snapshot_kubevirt_io**](docs/DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | +*DefaultApi* | [**get_api_resources_flavor_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_flavor_kubevirt_io_v1alpha1) | **GET** /apis/flavor.kubevirt.io/v1alpha1/ | *DefaultApi* | [**get_api_resources_kubevirt_io_v1**](docs/DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | *DefaultApi* | [**get_api_resources_snapshot_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_snapshot_kubevirt_io_v1alpha1) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/ | *DefaultApi* | [**get_root_paths**](docs/DefaultApi.md#get_root_paths) | **GET** / | @@ -111,6 +119,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_kube_virt_for_all_namespaces**](docs/DefaultApi.md#list_kube_virt_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/kubevirt | *DefaultApi* | [**list_namespaced_kube_virt**](docs/DefaultApi.md#list_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | *DefaultApi* | [**list_namespaced_virtual_machine**](docs/DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +*DefaultApi* | [**list_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#list_namespaced_virtual_machine_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | *DefaultApi* | [**list_namespaced_virtual_machine_instance**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | *DefaultApi* | [**list_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | *DefaultApi* | [**list_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | @@ -118,6 +127,8 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_namespaced_virtual_machine_restore**](docs/DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**list_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**list_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | +*DefaultApi* | [**list_virtual_machine_cluster_flavor**](docs/DefaultApi.md#list_virtual_machine_cluster_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | +*DefaultApi* | [**list_virtual_machine_flavor_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_flavor_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineflavors | *DefaultApi* | [**list_virtual_machine_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachines | *DefaultApi* | [**list_virtual_machine_instance_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstances | *DefaultApi* | [**list_virtual_machine_instance_migration_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancemigrations | @@ -128,6 +139,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_virtual_machine_snapshot_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots | *DefaultApi* | [**patch_namespaced_kube_virt**](docs/DefaultApi.md#patch_namespaced_kube_virt) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine**](docs/DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#patch_namespaced_virtual_machine_flavor) | **PATCH** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | @@ -135,8 +147,10 @@ Class | Method | HTTP request | Description *DefaultApi* | [**patch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_virtual_machine_cluster_flavor**](docs/DefaultApi.md#patch_virtual_machine_cluster_flavor) | **PATCH** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_kube_virt**](docs/DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine**](docs/DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#read_namespaced_virtual_machine_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_instance**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | @@ -144,8 +158,10 @@ Class | Method | HTTP request | Description *DefaultApi* | [**read_namespaced_virtual_machine_restore**](docs/DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_virtual_machine_cluster_flavor**](docs/DefaultApi.md#read_virtual_machine_cluster_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_kube_virt**](docs/DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine**](docs/DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#replace_namespaced_virtual_machine_flavor) | **PUT** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | @@ -153,6 +169,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**replace_namespaced_virtual_machine_restore**](docs/DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_virtual_machine_cluster_flavor**](docs/DefaultApi.md#replace_virtual_machine_cluster_flavor) | **PUT** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**v1_check_health**](docs/DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | *DefaultApi* | [**v1_console**](docs/DefaultApi.md#v1_console) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | *DefaultApi* | [**v1_filesystemlist**](docs/DefaultApi.md#v1_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | @@ -217,6 +234,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**watch_kube_virt_list_for_all_namespaces**](docs/DefaultApi.md#watch_kube_virt_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/kubevirt | *DefaultApi* | [**watch_namespaced_kube_virt**](docs/DefaultApi.md#watch_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | *DefaultApi* | [**watch_namespaced_virtual_machine**](docs/DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +*DefaultApi* | [**watch_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#watch_namespaced_virtual_machine_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | *DefaultApi* | [**watch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | *DefaultApi* | [**watch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | *DefaultApi* | [**watch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | @@ -224,6 +242,8 @@ Class | Method | HTTP request | Description *DefaultApi* | [**watch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**watch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**watch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | +*DefaultApi* | [**watch_virtual_machine_cluster_flavor_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_flavor_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineclusterflavors | +*DefaultApi* | [**watch_virtual_machine_flavor_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_flavor_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineflavors | *DefaultApi* | [**watch_virtual_machine_instance_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstances | *DefaultApi* | [**watch_virtual_machine_instance_migration_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancemigrations | *DefaultApi* | [**watch_virtual_machine_instance_preset_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancepresets | @@ -337,6 +357,7 @@ Class | Method | HTTP request | Description - [V1FilesystemVirtiofs](docs/V1FilesystemVirtiofs.md) - [V1Firmware](docs/V1Firmware.md) - [V1Flags](docs/V1Flags.md) + - [V1FlavorMatcher](docs/V1FlavorMatcher.md) - [V1FloppyTarget](docs/V1FloppyTarget.md) - [V1GPU](docs/V1GPU.md) - [V1GenerationStatus](docs/V1GenerationStatus.md) @@ -461,6 +482,11 @@ Class | Method | HTTP request | Description - [V1alpha1Error](docs/V1alpha1Error.md) - [V1alpha1PersistentVolumeClaim](docs/V1alpha1PersistentVolumeClaim.md) - [V1alpha1SourceSpec](docs/V1alpha1SourceSpec.md) + - [V1alpha1VirtualMachineClusterFlavor](docs/V1alpha1VirtualMachineClusterFlavor.md) + - [V1alpha1VirtualMachineClusterFlavorList](docs/V1alpha1VirtualMachineClusterFlavorList.md) + - [V1alpha1VirtualMachineFlavor](docs/V1alpha1VirtualMachineFlavor.md) + - [V1alpha1VirtualMachineFlavorList](docs/V1alpha1VirtualMachineFlavorList.md) + - [V1alpha1VirtualMachineFlavorProfile](docs/V1alpha1VirtualMachineFlavorProfile.md) - [V1alpha1VirtualMachineRestore](docs/V1alpha1VirtualMachineRestore.md) - [V1alpha1VirtualMachineRestoreList](docs/V1alpha1VirtualMachineRestoreList.md) - [V1alpha1VirtualMachineRestoreSpec](docs/V1alpha1VirtualMachineRestoreSpec.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index c0b1a27e..f22bc7f1 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -6,6 +6,7 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**create_namespaced_kube_virt**](DefaultApi.md#create_namespaced_kube_virt) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | [**create_namespaced_virtual_machine**](DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +[**create_namespaced_virtual_machine_flavor**](DefaultApi.md#create_namespaced_virtual_machine_flavor) | **POST** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | [**create_namespaced_virtual_machine_instance**](DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | [**create_namespaced_virtual_machine_instance_migration**](DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | [**create_namespaced_virtual_machine_instance_preset**](DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | @@ -13,8 +14,10 @@ Method | HTTP request | Description [**create_namespaced_virtual_machine_restore**](DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**create_namespaced_virtual_machine_snapshot**](DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**create_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | +[**create_virtual_machine_cluster_flavor**](DefaultApi.md#create_virtual_machine_cluster_flavor) | **POST** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | [**delete_collection_namespaced_kube_virt**](DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | [**delete_collection_namespaced_virtual_machine**](DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +[**delete_collection_namespaced_virtual_machine_flavor**](DefaultApi.md#delete_collection_namespaced_virtual_machine_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | [**delete_collection_namespaced_virtual_machine_instance**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | [**delete_collection_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | [**delete_collection_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | @@ -22,8 +25,10 @@ Method | HTTP request | Description [**delete_collection_namespaced_virtual_machine_restore**](DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**delete_collection_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**delete_collection_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | +[**delete_collection_virtual_machine_cluster_flavor**](DefaultApi.md#delete_collection_virtual_machine_cluster_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | [**delete_namespaced_kube_virt**](DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine**](DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_namespaced_virtual_machine_flavor**](DefaultApi.md#delete_namespaced_virtual_machine_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_instance**](DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | @@ -31,11 +36,14 @@ Method | HTTP request | Description [**delete_namespaced_virtual_machine_restore**](DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_virtual_machine_cluster_flavor**](DefaultApi.md#delete_virtual_machine_cluster_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | [**func1**](DefaultApi.md#func1) | **GET** /healthz | [**func7**](DefaultApi.md#func7) | **GET** /openapi/v2 | +[**get_api_group_flavor_kubevirt_io**](DefaultApi.md#get_api_group_flavor_kubevirt_io) | **GET** /apis/flavor.kubevirt.io/ | [**get_api_group_kubevirt_io**](DefaultApi.md#get_api_group_kubevirt_io) | **GET** /apis/kubevirt.io/ | [**get_api_group_list**](DefaultApi.md#get_api_group_list) | **GET** /apis | [**get_api_group_snapshot_kubevirt_io**](DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | +[**get_api_resources_flavor_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_flavor_kubevirt_io_v1alpha1) | **GET** /apis/flavor.kubevirt.io/v1alpha1/ | [**get_api_resources_kubevirt_io_v1**](DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | [**get_api_resources_snapshot_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_snapshot_kubevirt_io_v1alpha1) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/ | [**get_root_paths**](DefaultApi.md#get_root_paths) | **GET** / | @@ -45,6 +53,7 @@ Method | HTTP request | Description [**list_kube_virt_for_all_namespaces**](DefaultApi.md#list_kube_virt_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/kubevirt | [**list_namespaced_kube_virt**](DefaultApi.md#list_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | [**list_namespaced_virtual_machine**](DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +[**list_namespaced_virtual_machine_flavor**](DefaultApi.md#list_namespaced_virtual_machine_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | [**list_namespaced_virtual_machine_instance**](DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | [**list_namespaced_virtual_machine_instance_migration**](DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | [**list_namespaced_virtual_machine_instance_preset**](DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | @@ -52,6 +61,8 @@ Method | HTTP request | Description [**list_namespaced_virtual_machine_restore**](DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**list_namespaced_virtual_machine_snapshot**](DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**list_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | +[**list_virtual_machine_cluster_flavor**](DefaultApi.md#list_virtual_machine_cluster_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | +[**list_virtual_machine_flavor_for_all_namespaces**](DefaultApi.md#list_virtual_machine_flavor_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineflavors | [**list_virtual_machine_for_all_namespaces**](DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachines | [**list_virtual_machine_instance_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstances | [**list_virtual_machine_instance_migration_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancemigrations | @@ -62,6 +73,7 @@ Method | HTTP request | Description [**list_virtual_machine_snapshot_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots | [**patch_namespaced_kube_virt**](DefaultApi.md#patch_namespaced_kube_virt) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine**](DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_namespaced_virtual_machine_flavor**](DefaultApi.md#patch_namespaced_virtual_machine_flavor) | **PATCH** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_instance**](DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | @@ -69,8 +81,10 @@ Method | HTTP request | Description [**patch_namespaced_virtual_machine_restore**](DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_snapshot**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_virtual_machine_cluster_flavor**](DefaultApi.md#patch_virtual_machine_cluster_flavor) | **PATCH** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_kube_virt**](DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine**](DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +[**read_namespaced_virtual_machine_flavor**](DefaultApi.md#read_namespaced_virtual_machine_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_instance**](DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_instance_migration**](DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_instance_preset**](DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | @@ -78,8 +92,10 @@ Method | HTTP request | Description [**read_namespaced_virtual_machine_restore**](DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_snapshot**](DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | +[**read_virtual_machine_cluster_flavor**](DefaultApi.md#read_virtual_machine_cluster_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_kube_virt**](DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine**](DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_namespaced_virtual_machine_flavor**](DefaultApi.md#replace_namespaced_virtual_machine_flavor) | **PUT** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_instance**](DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_instance_migration**](DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_instance_preset**](DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | @@ -87,6 +103,7 @@ Method | HTTP request | Description [**replace_namespaced_virtual_machine_restore**](DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_snapshot**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_virtual_machine_cluster_flavor**](DefaultApi.md#replace_virtual_machine_cluster_flavor) | **PUT** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | [**v1_check_health**](DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | [**v1_console**](DefaultApi.md#v1_console) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | [**v1_filesystemlist**](DefaultApi.md#v1_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | @@ -151,6 +168,7 @@ Method | HTTP request | Description [**watch_kube_virt_list_for_all_namespaces**](DefaultApi.md#watch_kube_virt_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/kubevirt | [**watch_namespaced_kube_virt**](DefaultApi.md#watch_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | [**watch_namespaced_virtual_machine**](DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +[**watch_namespaced_virtual_machine_flavor**](DefaultApi.md#watch_namespaced_virtual_machine_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | [**watch_namespaced_virtual_machine_instance**](DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | [**watch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | [**watch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | @@ -158,6 +176,8 @@ Method | HTTP request | Description [**watch_namespaced_virtual_machine_restore**](DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**watch_namespaced_virtual_machine_snapshot**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**watch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | +[**watch_virtual_machine_cluster_flavor_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_flavor_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineclusterflavors | +[**watch_virtual_machine_flavor_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_flavor_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineflavors | [**watch_virtual_machine_instance_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstances | [**watch_virtual_machine_instance_migration_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancemigrations | [**watch_virtual_machine_instance_preset_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancepresets | @@ -266,6 +286,55 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **create_namespaced_virtual_machine_flavor** +> V1alpha1VirtualMachineFlavor create_namespaced_virtual_machine_flavor(body, namespace) + + + +Create a VirtualMachineFlavor object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +body = kubevirt.V1alpha1VirtualMachineFlavor() # V1alpha1VirtualMachineFlavor | +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.create_namespaced_virtual_machine_flavor(body, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->create_namespaced_virtual_machine_flavor: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1alpha1VirtualMachineFlavor**](V1alpha1VirtualMachineFlavor.md)| | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +[**V1alpha1VirtualMachineFlavor**](V1alpha1VirtualMachineFlavor.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **create_namespaced_virtual_machine_instance** > V1VirtualMachineInstance create_namespaced_virtual_machine_instance(body, namespace) @@ -609,6 +678,53 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **create_virtual_machine_cluster_flavor** +> V1alpha1VirtualMachineClusterFlavor create_virtual_machine_cluster_flavor(body) + + + +Create a VirtualMachineClusterFlavor object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +body = kubevirt.V1alpha1VirtualMachineClusterFlavor() # V1alpha1VirtualMachineClusterFlavor | + +try: + api_response = api_instance.create_virtual_machine_cluster_flavor(body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->create_virtual_machine_cluster_flavor: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1alpha1VirtualMachineClusterFlavor**](V1alpha1VirtualMachineClusterFlavor.md)| | + +### Return type + +[**V1alpha1VirtualMachineClusterFlavor**](V1alpha1VirtualMachineClusterFlavor.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_collection_namespaced_kube_virt** > K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_kube_virt(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -731,6 +847,67 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_collection_namespaced_virtual_machine_flavor** +> K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_flavor(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Delete a collection of VirtualMachineFlavor objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_namespaced_virtual_machine_flavor(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_flavor: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_collection_namespaced_virtual_machine_instance** > K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_instance(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -1158,6 +1335,67 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_collection_virtual_machine_cluster_flavor** +> K8sIoApimachineryPkgApisMetaV1Status delete_collection_virtual_machine_cluster_flavor(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Delete a collection of VirtualMachineClusterFlavor objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_virtual_machine_cluster_flavor(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->delete_collection_virtual_machine_cluster_flavor: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_namespaced_kube_virt** > K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_kube_virt(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -1272,6 +1510,63 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_namespaced_virtual_machine_flavor** +> K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_flavor(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + + + +Delete a VirtualMachineFlavor object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.K8sIoApimachineryPkgApisMetaV1DeleteOptions() # K8sIoApimachineryPkgApisMetaV1DeleteOptions | +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + +try: + api_response = api_instance.delete_namespaced_virtual_machine_flavor(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_flavor: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**K8sIoApimachineryPkgApisMetaV1DeleteOptions**](K8sIoApimachineryPkgApisMetaV1DeleteOptions.md)| | + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_namespaced_virtual_machine_instance** > K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_instance(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -1671,12 +1966,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **func1** -> func1() +# **delete_virtual_machine_cluster_flavor** +> K8sIoApimachineryPkgApisMetaV1Status delete_virtual_machine_cluster_flavor(name, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) -Health endpoint +Delete a VirtualMachineClusterFlavor object. ### Example ```python @@ -1688,15 +1983,70 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +body = kubevirt.K8sIoApimachineryPkgApisMetaV1DeleteOptions() # K8sIoApimachineryPkgApisMetaV1DeleteOptions | +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) try: - api_instance.func1() + api_response = api_instance.delete_virtual_machine_cluster_flavor(name, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->func1: %s\n" % e) + print("Exception when calling DefaultApi->delete_virtual_machine_cluster_flavor: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **body** | [**K8sIoApimachineryPkgApisMetaV1DeleteOptions**](K8sIoApimachineryPkgApisMetaV1DeleteOptions.md)| | + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **func1** +> func1() + + + +Health endpoint + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_instance.func1() +except ApiException as e: + print("Exception when calling DefaultApi->func1: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. ### Return type @@ -1753,6 +2103,49 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_api_group_flavor_kubevirt_io** +> K8sIoApimachineryPkgApisMetaV1APIGroup get_api_group_flavor_kubevirt_io() + + + +Get a KubeVirt API group + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.get_api_group_flavor_kubevirt_io() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->get_api_group_flavor_kubevirt_io: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1APIGroup**](K8sIoApimachineryPkgApisMetaV1APIGroup.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_api_group_kubevirt_io** > K8sIoApimachineryPkgApisMetaV1APIGroup get_api_group_kubevirt_io() @@ -1882,6 +2275,49 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_api_resources_flavor_kubevirt_io_v1alpha1** +> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_flavor_kubevirt_io_v1alpha1() + + + +Get KubeVirt API Resources + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.get_api_resources_flavor_kubevirt_io_v1alpha1() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->get_api_resources_flavor_kubevirt_io_v1alpha1: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1APIResourceList**](K8sIoApimachineryPkgApisMetaV1APIResourceList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_api_resources_kubevirt_io_v1** > K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_kubevirt_io_v1() @@ -2324,6 +2760,69 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **list_namespaced_virtual_machine_flavor** +> V1alpha1VirtualMachineFlavorList list_namespaced_virtual_machine_flavor(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Get a list of VirtualMachineFlavor objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_virtual_machine_flavor(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->list_namespaced_virtual_machine_flavor: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1VirtualMachineFlavorList**](V1alpha1VirtualMachineFlavorList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **list_namespaced_virtual_machine_instance** > V1VirtualMachineInstanceList list_namespaced_virtual_machine_instance(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -2581,7 +3080,133 @@ No authorization required -Get a list of VirtualMachineRestore objects. +Get a list of VirtualMachineRestore objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_virtual_machine_restore(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->list_namespaced_virtual_machine_restore: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1VirtualMachineRestoreList**](V1alpha1VirtualMachineRestoreList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_virtual_machine_snapshot** +> V1alpha1VirtualMachineSnapshotList list_namespaced_virtual_machine_snapshot(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Get a list of VirtualMachineSnapshot objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_virtual_machine_snapshot(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->list_namespaced_virtual_machine_snapshot: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1VirtualMachineSnapshotList**](V1alpha1VirtualMachineSnapshotList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_virtual_machine_snapshot_content** +> V1alpha1VirtualMachineSnapshotContentList list_namespaced_virtual_machine_snapshot_content(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Get a list of VirtualMachineSnapshotContent objects. ### Example ```python @@ -2604,10 +3229,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_virtual_machine_restore(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_namespaced_virtual_machine_snapshot_content(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_namespaced_virtual_machine_restore: %s\n" % e) + print("Exception when calling DefaultApi->list_namespaced_virtual_machine_snapshot_content: %s\n" % e) ``` ### Parameters @@ -2626,7 +3251,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineRestoreList**](V1alpha1VirtualMachineRestoreList.md) +[**V1alpha1VirtualMachineSnapshotContentList**](V1alpha1VirtualMachineSnapshotContentList.md) ### Authorization @@ -2639,12 +3264,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_virtual_machine_snapshot** -> V1alpha1VirtualMachineSnapshotList list_namespaced_virtual_machine_snapshot(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_virtual_machine_cluster_flavor** +> V1alpha1VirtualMachineClusterFlavorList list_virtual_machine_cluster_flavor(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of VirtualMachineSnapshot objects. +Get a list of VirtualMachineClusterFlavor objects. ### Example ```python @@ -2656,7 +3281,6 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) @@ -2667,17 +3291,16 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_virtual_machine_snapshot(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_virtual_machine_cluster_flavor(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_namespaced_virtual_machine_snapshot: %s\n" % e) + print("Exception when calling DefaultApi->list_virtual_machine_cluster_flavor: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] @@ -2689,7 +3312,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineSnapshotList**](V1alpha1VirtualMachineSnapshotList.md) +[**V1alpha1VirtualMachineClusterFlavorList**](V1alpha1VirtualMachineClusterFlavorList.md) ### Authorization @@ -2702,12 +3325,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_virtual_machine_snapshot_content** -> V1alpha1VirtualMachineSnapshotContentList list_namespaced_virtual_machine_snapshot_content(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_virtual_machine_flavor_for_all_namespaces** +> V1alpha1VirtualMachineFlavorList list_virtual_machine_flavor_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of VirtualMachineSnapshotContent objects. +Get a list of all VirtualMachineFlavor objects. ### Example ```python @@ -2719,7 +3342,6 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) @@ -2730,17 +3352,16 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_virtual_machine_snapshot_content(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_virtual_machine_flavor_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_namespaced_virtual_machine_snapshot_content: %s\n" % e) + print("Exception when calling DefaultApi->list_virtual_machine_flavor_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] @@ -2752,7 +3373,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineSnapshotContentList**](V1alpha1VirtualMachineSnapshotContentList.md) +[**V1alpha1VirtualMachineFlavorList**](V1alpha1VirtualMachineFlavorList.md) ### Authorization @@ -3355,6 +3976,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **patch_namespaced_virtual_machine_flavor** +> V1alpha1VirtualMachineFlavor patch_namespaced_virtual_machine_flavor(name, namespace, body) + + + +Patch a VirtualMachineFlavor object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | + +try: + api_response = api_instance.patch_namespaced_virtual_machine_flavor(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_flavor: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**K8sIoApimachineryPkgApisMetaV1Patch**](K8sIoApimachineryPkgApisMetaV1Patch.md)| | + +### Return type + +[**V1alpha1VirtualMachineFlavor**](V1alpha1VirtualMachineFlavor.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **patch_namespaced_virtual_machine_instance** > V1VirtualMachineInstance patch_namespaced_virtual_machine_instance(name, namespace, body) @@ -3712,6 +4384,55 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **patch_virtual_machine_cluster_flavor** +> V1alpha1VirtualMachineClusterFlavor patch_virtual_machine_cluster_flavor(name, body) + + + +Patch a VirtualMachineClusterFlavor object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | + +try: + api_response = api_instance.patch_virtual_machine_cluster_flavor(name, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->patch_virtual_machine_cluster_flavor: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **body** | [**K8sIoApimachineryPkgApisMetaV1Patch**](K8sIoApimachineryPkgApisMetaV1Patch.md)| | + +### Return type + +[**V1alpha1VirtualMachineClusterFlavor**](V1alpha1VirtualMachineClusterFlavor.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **read_namespaced_kube_virt** > V1KubeVirt read_namespaced_kube_virt(name, namespace, exact=exact, export=export) @@ -3818,6 +4539,59 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **read_namespaced_virtual_machine_flavor** +> V1alpha1VirtualMachineFlavor read_namespaced_virtual_machine_flavor(name, namespace, exact=exact, export=export) + + + +Get a VirtualMachineFlavor object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_namespaced_virtual_machine_flavor(name, namespace, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->read_namespaced_virtual_machine_flavor: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1alpha1VirtualMachineFlavor**](V1alpha1VirtualMachineFlavor.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **read_namespaced_virtual_machine_instance** > V1VirtualMachineInstance read_namespaced_virtual_machine_instance(name, namespace, exact=exact, export=export) @@ -4141,7 +4915,111 @@ No authorization required -Get a VirtualMachineSnapshotContent object. +Get a VirtualMachineSnapshotContent object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_namespaced_virtual_machine_snapshot_content(name, namespace, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->read_namespaced_virtual_machine_snapshot_content: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1alpha1VirtualMachineSnapshotContent**](V1alpha1VirtualMachineSnapshotContent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_virtual_machine_cluster_flavor** +> V1alpha1VirtualMachineClusterFlavor read_virtual_machine_cluster_flavor(name, exact=exact, export=export) + + + +Get a VirtualMachineClusterFlavor object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_virtual_machine_cluster_flavor(name, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->read_virtual_machine_cluster_flavor: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1alpha1VirtualMachineClusterFlavor**](V1alpha1VirtualMachineClusterFlavor.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_kube_virt** +> V1KubeVirt replace_namespaced_kube_virt(name, namespace, body) + + + +Update a KubeVirt object. ### Example ```python @@ -4155,14 +5033,13 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) +body = kubevirt.V1KubeVirt() # V1KubeVirt | try: - api_response = api_instance.read_namespaced_virtual_machine_snapshot_content(name, namespace, exact=exact, export=export) + api_response = api_instance.replace_namespaced_kube_virt(name, namespace, body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->read_namespaced_virtual_machine_snapshot_content: %s\n" % e) + print("Exception when calling DefaultApi->replace_namespaced_kube_virt: %s\n" % e) ``` ### Parameters @@ -4171,12 +5048,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + **body** | [**V1KubeVirt**](V1KubeVirt.md)| | ### Return type -[**V1alpha1VirtualMachineSnapshotContent**](V1alpha1VirtualMachineSnapshotContent.md) +[**V1KubeVirt**](V1KubeVirt.md) ### Authorization @@ -4184,17 +5060,17 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/json;stream=watch + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_namespaced_kube_virt** -> V1KubeVirt replace_namespaced_kube_virt(name, namespace, body) +# **replace_namespaced_virtual_machine** +> V1VirtualMachine replace_namespaced_virtual_machine(name, namespace, body) -Update a KubeVirt object. +Update a VirtualMachine object. ### Example ```python @@ -4208,13 +5084,13 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1KubeVirt() # V1KubeVirt | +body = kubevirt.V1VirtualMachine() # V1VirtualMachine | try: - api_response = api_instance.replace_namespaced_kube_virt(name, namespace, body) + api_response = api_instance.replace_namespaced_virtual_machine(name, namespace, body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->replace_namespaced_kube_virt: %s\n" % e) + print("Exception when calling DefaultApi->replace_namespaced_virtual_machine: %s\n" % e) ``` ### Parameters @@ -4223,11 +5099,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1KubeVirt**](V1KubeVirt.md)| | + **body** | [**V1VirtualMachine**](V1VirtualMachine.md)| | ### Return type -[**V1KubeVirt**](V1KubeVirt.md) +[**V1VirtualMachine**](V1VirtualMachine.md) ### Authorization @@ -4240,12 +5116,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_namespaced_virtual_machine** -> V1VirtualMachine replace_namespaced_virtual_machine(name, namespace, body) +# **replace_namespaced_virtual_machine_flavor** +> V1alpha1VirtualMachineFlavor replace_namespaced_virtual_machine_flavor(name, namespace, body) -Update a VirtualMachine object. +Update a VirtualMachineFlavor object. ### Example ```python @@ -4259,13 +5135,13 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1VirtualMachine() # V1VirtualMachine | +body = kubevirt.V1alpha1VirtualMachineFlavor() # V1alpha1VirtualMachineFlavor | try: - api_response = api_instance.replace_namespaced_virtual_machine(name, namespace, body) + api_response = api_instance.replace_namespaced_virtual_machine_flavor(name, namespace, body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->replace_namespaced_virtual_machine: %s\n" % e) + print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_flavor: %s\n" % e) ``` ### Parameters @@ -4274,11 +5150,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1VirtualMachine**](V1VirtualMachine.md)| | + **body** | [**V1alpha1VirtualMachineFlavor**](V1alpha1VirtualMachineFlavor.md)| | ### Return type -[**V1VirtualMachine**](V1VirtualMachine.md) +[**V1alpha1VirtualMachineFlavor**](V1alpha1VirtualMachineFlavor.md) ### Authorization @@ -4648,6 +5524,55 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **replace_virtual_machine_cluster_flavor** +> V1alpha1VirtualMachineClusterFlavor replace_virtual_machine_cluster_flavor(name, body) + + + +Update a VirtualMachineClusterFlavor object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +body = kubevirt.V1alpha1VirtualMachineClusterFlavor() # V1alpha1VirtualMachineClusterFlavor | + +try: + api_response = api_instance.replace_virtual_machine_cluster_flavor(name, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->replace_virtual_machine_cluster_flavor: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **body** | [**V1alpha1VirtualMachineClusterFlavor**](V1alpha1VirtualMachineClusterFlavor.md)| | + +### Return type + +[**V1alpha1VirtualMachineClusterFlavor**](V1alpha1VirtualMachineClusterFlavor.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1_check_health** > str v1_check_health() @@ -7714,6 +8639,69 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **watch_namespaced_virtual_machine_flavor** +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_flavor(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Watch a VirtualMachineFlavor object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_namespaced_virtual_machine_flavor(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->watch_namespaced_virtual_machine_flavor: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **watch_namespaced_virtual_machine_instance** > K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_instance(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -8155,6 +9143,128 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **watch_virtual_machine_cluster_flavor_list_for_all_namespaces** +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_cluster_flavor_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Watch a VirtualMachineClusterFlavorList object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_virtual_machine_cluster_flavor_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->watch_virtual_machine_cluster_flavor_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **watch_virtual_machine_flavor_list_for_all_namespaces** +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_flavor_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Watch a VirtualMachineFlavorList object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_virtual_machine_flavor_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->watch_virtual_machine_flavor_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **watch_virtual_machine_instance_list_for_all_namespaces** > K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_instance_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) diff --git a/docs/V1FlavorMatcher.md b/docs/V1FlavorMatcher.md new file mode 100644 index 00000000..9f12e6f9 --- /dev/null +++ b/docs/V1FlavorMatcher.md @@ -0,0 +1,12 @@ +# V1FlavorMatcher + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kind** | **str** | Kind specifies which flavor resource is referenced. Allowed values are: \"VirtualMachineFlavor\" and \"VirtualMachineClusterFlavor\". If not specified, \"VirtualMachineClusterFlavor\" is used by default. | [optional] +**name** | **str** | Name is the name of the VirtualMachineFlavor or VirtualMachineClusterFlavor | +**profile** | **str** | Profile is the name of a custom profile in the flavor. If left empty, the default profile is used. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineSpec.md b/docs/V1VirtualMachineSpec.md index d92af07d..f6bbcc34 100644 --- a/docs/V1VirtualMachineSpec.md +++ b/docs/V1VirtualMachineSpec.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data_volume_templates** | [**list[V1DataVolumeTemplateSpec]**](V1DataVolumeTemplateSpec.md) | dataVolumeTemplates is a list of dataVolumes that the VirtualMachineInstance template can reference. DataVolumes in this list are dynamically created for the VirtualMachine and are tied to the VirtualMachine's life-cycle. | [optional] +**flavor** | [**V1FlavorMatcher**](V1FlavorMatcher.md) | FlavorMatcher references a flavor that is used to fill fields in Template | [optional] **run_strategy** | **str** | Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running | [optional] **running** | **bool** | Running controls whether the associatied VirtualMachineInstance is created or not Mutually exclusive with RunStrategy | [optional] **template** | [**V1VirtualMachineInstanceTemplateSpec**](V1VirtualMachineInstanceTemplateSpec.md) | Template is the direct specification of VirtualMachineInstance | diff --git a/docs/V1alpha1VirtualMachineClusterFlavor.md b/docs/V1alpha1VirtualMachineClusterFlavor.md new file mode 100644 index 00000000..5bae8789 --- /dev/null +++ b/docs/V1alpha1VirtualMachineClusterFlavor.md @@ -0,0 +1,13 @@ +# V1alpha1VirtualMachineClusterFlavor + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] +**profiles** | [**list[V1alpha1VirtualMachineFlavorProfile]**](V1alpha1VirtualMachineFlavorProfile.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineClusterFlavorList.md b/docs/V1alpha1VirtualMachineClusterFlavorList.md new file mode 100644 index 00000000..b5edacc9 --- /dev/null +++ b/docs/V1alpha1VirtualMachineClusterFlavorList.md @@ -0,0 +1,13 @@ +# V1alpha1VirtualMachineClusterFlavorList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list[V1alpha1VirtualMachineClusterFlavor]**](V1alpha1VirtualMachineClusterFlavor.md) | | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineFlavor.md b/docs/V1alpha1VirtualMachineFlavor.md new file mode 100644 index 00000000..16e06415 --- /dev/null +++ b/docs/V1alpha1VirtualMachineFlavor.md @@ -0,0 +1,13 @@ +# V1alpha1VirtualMachineFlavor + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] +**profiles** | [**list[V1alpha1VirtualMachineFlavorProfile]**](V1alpha1VirtualMachineFlavorProfile.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineFlavorList.md b/docs/V1alpha1VirtualMachineFlavorList.md new file mode 100644 index 00000000..8dce1333 --- /dev/null +++ b/docs/V1alpha1VirtualMachineFlavorList.md @@ -0,0 +1,13 @@ +# V1alpha1VirtualMachineFlavorList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list[V1alpha1VirtualMachineFlavor]**](V1alpha1VirtualMachineFlavor.md) | | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineFlavorProfile.md b/docs/V1alpha1VirtualMachineFlavorProfile.md new file mode 100644 index 00000000..950997af --- /dev/null +++ b/docs/V1alpha1VirtualMachineFlavorProfile.md @@ -0,0 +1,12 @@ +# V1alpha1VirtualMachineFlavorProfile + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpu** | [**V1CPU**](V1CPU.md) | | [optional] +**default** | **bool** | Default specifies if this VirtualMachineFlavorProfile is the default for the VirtualMachineFlavor. Zero or one profile can be set to default. | [optional] +**name** | **str** | Name specifies the name of this custom profile. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 0e4f01b1..52b14edf 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.46.0-rc.0-75-gd64731bde" + release_note="Auto-generated client v0.46.0-134-gbbbcd3a73" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 1221d201..9c3c4b5a 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -322,6 +322,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_flags.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_flags.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Flags.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_flavor_matcher.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_flavor_matcher.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1FlavorMatcher.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_floppy_target.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_floppy_target.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1FloppyTarget.md @@ -694,6 +697,21 @@ 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/v1alpha1_source_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_source_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1SourceSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_cluster_flavor.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_cluster_flavor.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineClusterFlavor.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_cluster_flavor_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_cluster_flavor_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineClusterFlavorList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_flavor.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_flavor.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineFlavor.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_flavor_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_flavor_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineFlavorList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_flavor_profile.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_flavor_profile.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineFlavorProfile.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_restore.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_restore.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineRestore.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 0265e19d..49e98311 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -115,6 +115,7 @@ from .models.v1_filesystem_virtiofs import V1FilesystemVirtiofs from .models.v1_firmware import V1Firmware from .models.v1_flags import V1Flags +from .models.v1_flavor_matcher import V1FlavorMatcher from .models.v1_floppy_target import V1FloppyTarget from .models.v1_gpu import V1GPU from .models.v1_generation_status import V1GenerationStatus @@ -239,6 +240,11 @@ from .models.v1alpha1_error import V1alpha1Error from .models.v1alpha1_persistent_volume_claim import V1alpha1PersistentVolumeClaim from .models.v1alpha1_source_spec import V1alpha1SourceSpec +from .models.v1alpha1_virtual_machine_cluster_flavor import V1alpha1VirtualMachineClusterFlavor +from .models.v1alpha1_virtual_machine_cluster_flavor_list import V1alpha1VirtualMachineClusterFlavorList +from .models.v1alpha1_virtual_machine_flavor import V1alpha1VirtualMachineFlavor +from .models.v1alpha1_virtual_machine_flavor_list import V1alpha1VirtualMachineFlavorList +from .models.v1alpha1_virtual_machine_flavor_profile import V1alpha1VirtualMachineFlavorProfile from .models.v1alpha1_virtual_machine_restore import V1alpha1VirtualMachineRestore from .models.v1alpha1_virtual_machine_restore_list import V1alpha1VirtualMachineRestoreList from .models.v1alpha1_virtual_machine_restore_spec import V1alpha1VirtualMachineRestoreSpec diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index b70506a8..945211f8 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.46.0-rc.0-75-gd64731bde/python' + self.user_agent = 'Swagger-Codegen/v0.46.0-134-gbbbcd3a73/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index e572f044..4589ac4f 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -262,6 +262,117 @@ def create_namespaced_virtual_machine_with_http_info(self, body, namespace, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def create_namespaced_virtual_machine_flavor(self, body, namespace, **kwargs): + """ + Create a VirtualMachineFlavor object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_virtual_machine_flavor(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1VirtualMachineFlavor body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1alpha1VirtualMachineFlavor + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_virtual_machine_flavor_with_http_info(body, namespace, **kwargs) + else: + (data) = self.create_namespaced_virtual_machine_flavor_with_http_info(body, namespace, **kwargs) + return data + + def create_namespaced_virtual_machine_flavor_with_http_info(self, body, namespace, **kwargs): + """ + Create a VirtualMachineFlavor object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_virtual_machine_flavor_with_http_info(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1VirtualMachineFlavor body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1alpha1VirtualMachineFlavor + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_virtual_machine_flavor" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine_flavor`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_flavor`") + + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineFlavor', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def create_namespaced_virtual_machine_instance(self, body, namespace, **kwargs): """ Create a VirtualMachineInstance object. @@ -1039,65 +1150,51 @@ def create_namespaced_virtual_machine_snapshot_content_with_http_info(self, body _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_kube_virt(self, **kwargs): + def create_virtual_machine_cluster_flavor(self, body, **kwargs): """ - Delete a collection of KubeVirt objects. + Create a VirtualMachineClusterFlavor object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_kube_virt(callback=callback_function) + >>> thread = api.create_virtual_machine_cluster_flavor(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: K8sIoApimachineryPkgApisMetaV1Status + :param V1alpha1VirtualMachineClusterFlavor body: (required) + :return: V1alpha1VirtualMachineClusterFlavor If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_kube_virt_with_http_info(**kwargs) + return self.create_virtual_machine_cluster_flavor_with_http_info(body, **kwargs) else: - (data) = self.delete_collection_namespaced_kube_virt_with_http_info(**kwargs) + (data) = self.create_virtual_machine_cluster_flavor_with_http_info(body, **kwargs) return data - def delete_collection_namespaced_kube_virt_with_http_info(self, **kwargs): + def create_virtual_machine_cluster_flavor_with_http_info(self, body, **kwargs): """ - Delete a collection of KubeVirt objects. + Create a VirtualMachineClusterFlavor object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_kube_virt_with_http_info(callback=callback_function) + >>> thread = api.create_virtual_machine_cluster_flavor_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: K8sIoApimachineryPkgApisMetaV1Status + :param V1alpha1VirtualMachineClusterFlavor body: (required) + :return: V1alpha1VirtualMachineClusterFlavor If the method is called asynchronously, returns the request thread. """ - all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1108,10 +1205,13 @@ def delete_collection_namespaced_kube_virt_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_kube_virt" % key + " to method create_virtual_machine_cluster_flavor" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_virtual_machine_cluster_flavor`") collection_formats = {} @@ -1119,22 +1219,6 @@ def delete_collection_namespaced_kube_virt_with_http_info(self, **kwargs): path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'include_uninitialized' in params: - query_params.append(('includeUninitialized', params['include_uninitialized'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) header_params = {} @@ -1142,21 +1226,27 @@ def delete_collection_namespaced_kube_virt_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt', 'DELETE', + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='K8sIoApimachineryPkgApisMetaV1Status', + response_type='V1alpha1VirtualMachineClusterFlavor', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1164,16 +1254,16 @@ def delete_collection_namespaced_kube_virt_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_virtual_machine(self, **kwargs): + def delete_collection_namespaced_kube_virt(self, **kwargs): """ - Delete a collection of VirtualMachine objects. + Delete a collection of KubeVirt objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine(callback=callback_function) + >>> thread = api.delete_collection_namespaced_kube_virt(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1191,21 +1281,21 @@ def delete_collection_namespaced_virtual_machine(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_virtual_machine_with_http_info(**kwargs) + return self.delete_collection_namespaced_kube_virt_with_http_info(**kwargs) else: - (data) = self.delete_collection_namespaced_virtual_machine_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_kube_virt_with_http_info(**kwargs) return data - def delete_collection_namespaced_virtual_machine_with_http_info(self, **kwargs): + def delete_collection_namespaced_kube_virt_with_http_info(self, **kwargs): """ - Delete a collection of VirtualMachine objects. + Delete a collection of KubeVirt objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_namespaced_kube_virt_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1233,7 +1323,7 @@ def delete_collection_namespaced_virtual_machine_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_virtual_machine" % key + " to method delete_collection_namespaced_kube_virt" % key ) params[key] = val del params['kwargs'] @@ -1274,7 +1364,7 @@ def delete_collection_namespaced_virtual_machine_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt', 'DELETE', path_params, query_params, header_params, @@ -1289,16 +1379,16 @@ def delete_collection_namespaced_virtual_machine_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_virtual_machine_instance(self, **kwargs): + def delete_collection_namespaced_virtual_machine(self, **kwargs): """ - Delete a collection of VirtualMachineInstance objects. + Delete a collection of VirtualMachine objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_instance(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1316,21 +1406,21 @@ def delete_collection_namespaced_virtual_machine_instance(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_virtual_machine_instance_with_http_info(**kwargs) + return self.delete_collection_namespaced_virtual_machine_with_http_info(**kwargs) else: - (data) = self.delete_collection_namespaced_virtual_machine_instance_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_with_http_info(**kwargs) return data - def delete_collection_namespaced_virtual_machine_instance_with_http_info(self, **kwargs): + def delete_collection_namespaced_virtual_machine_with_http_info(self, **kwargs): """ - Delete a collection of VirtualMachineInstance objects. + Delete a collection of VirtualMachine objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_instance_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1358,7 +1448,7 @@ def delete_collection_namespaced_virtual_machine_instance_with_http_info(self, * if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_virtual_machine_instance" % key + " to method delete_collection_namespaced_virtual_machine" % key ) params[key] = val del params['kwargs'] @@ -1399,7 +1489,7 @@ def delete_collection_namespaced_virtual_machine_instance_with_http_info(self, * # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'DELETE', path_params, query_params, header_params, @@ -1414,16 +1504,16 @@ def delete_collection_namespaced_virtual_machine_instance_with_http_info(self, * _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_virtual_machine_instance_migration(self, **kwargs): + def delete_collection_namespaced_virtual_machine_flavor(self, **kwargs): """ - Delete a collection of VirtualMachineInstanceMigration objects. + Delete a collection of VirtualMachineFlavor objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_instance_migration(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_flavor(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1441,21 +1531,21 @@ def delete_collection_namespaced_virtual_machine_instance_migration(self, **kwar """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_virtual_machine_instance_migration_with_http_info(**kwargs) + return self.delete_collection_namespaced_virtual_machine_flavor_with_http_info(**kwargs) else: - (data) = self.delete_collection_namespaced_virtual_machine_instance_migration_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_flavor_with_http_info(**kwargs) return data - def delete_collection_namespaced_virtual_machine_instance_migration_with_http_info(self, **kwargs): + def delete_collection_namespaced_virtual_machine_flavor_with_http_info(self, **kwargs): """ - Delete a collection of VirtualMachineInstanceMigration objects. + Delete a collection of VirtualMachineFlavor objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_instance_migration_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_flavor_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1483,7 +1573,7 @@ def delete_collection_namespaced_virtual_machine_instance_migration_with_http_in if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_virtual_machine_instance_migration" % key + " to method delete_collection_namespaced_virtual_machine_flavor" % key ) params[key] = val del params['kwargs'] @@ -1524,7 +1614,7 @@ def delete_collection_namespaced_virtual_machine_instance_migration_with_http_in # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'DELETE', + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors', 'DELETE', path_params, query_params, header_params, @@ -1539,16 +1629,16 @@ def delete_collection_namespaced_virtual_machine_instance_migration_with_http_in _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_virtual_machine_instance_preset(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instance(self, **kwargs): """ - Delete a collection of VirtualMachineInstancePreset objects. + Delete a collection of VirtualMachineInstance objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_instance_preset(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_instance(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1566,21 +1656,21 @@ def delete_collection_namespaced_virtual_machine_instance_preset(self, **kwargs) """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_virtual_machine_instance_preset_with_http_info(**kwargs) + return self.delete_collection_namespaced_virtual_machine_instance_with_http_info(**kwargs) else: - (data) = self.delete_collection_namespaced_virtual_machine_instance_preset_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_instance_with_http_info(**kwargs) return data - def delete_collection_namespaced_virtual_machine_instance_preset_with_http_info(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instance_with_http_info(self, **kwargs): """ - Delete a collection of VirtualMachineInstancePreset objects. + Delete a collection of VirtualMachineInstance objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_instance_preset_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_instance_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1608,7 +1698,7 @@ def delete_collection_namespaced_virtual_machine_instance_preset_with_http_info( if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_virtual_machine_instance_preset" % key + " to method delete_collection_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] @@ -1649,7 +1739,7 @@ def delete_collection_namespaced_virtual_machine_instance_preset_with_http_info( # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'DELETE', path_params, query_params, header_params, @@ -1664,16 +1754,16 @@ def delete_collection_namespaced_virtual_machine_instance_preset_with_http_info( _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_virtual_machine_instance_replica_set(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instance_migration(self, **kwargs): """ - Delete a collection of VirtualMachineInstanceReplicaSet objects. + Delete a collection of VirtualMachineInstanceMigration objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_instance_replica_set(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_instance_migration(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1691,21 +1781,21 @@ def delete_collection_namespaced_virtual_machine_instance_replica_set(self, **kw """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_info(**kwargs) + return self.delete_collection_namespaced_virtual_machine_instance_migration_with_http_info(**kwargs) else: - (data) = self.delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_instance_migration_with_http_info(**kwargs) return data - def delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_info(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instance_migration_with_http_info(self, **kwargs): """ - Delete a collection of VirtualMachineInstanceReplicaSet objects. + Delete a collection of VirtualMachineInstanceMigration objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_instance_migration_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1733,7 +1823,7 @@ def delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_ if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_virtual_machine_instance_replica_set" % key + " to method delete_collection_namespaced_virtual_machine_instance_migration" % key ) params[key] = val del params['kwargs'] @@ -1774,7 +1864,7 @@ def delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_ # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'DELETE', path_params, query_params, header_params, @@ -1789,16 +1879,16 @@ def delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_ _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_virtual_machine_restore(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instance_preset(self, **kwargs): """ - Delete a collection of VirtualMachineRestore objects. + Delete a collection of VirtualMachineInstancePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_restore(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_instance_preset(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1816,21 +1906,21 @@ def delete_collection_namespaced_virtual_machine_restore(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_virtual_machine_restore_with_http_info(**kwargs) + return self.delete_collection_namespaced_virtual_machine_instance_preset_with_http_info(**kwargs) else: - (data) = self.delete_collection_namespaced_virtual_machine_restore_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_instance_preset_with_http_info(**kwargs) return data - def delete_collection_namespaced_virtual_machine_restore_with_http_info(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instance_preset_with_http_info(self, **kwargs): """ - Delete a collection of VirtualMachineRestore objects. + Delete a collection of VirtualMachineInstancePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_restore_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_instance_preset_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1858,7 +1948,7 @@ def delete_collection_namespaced_virtual_machine_restore_with_http_info(self, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_virtual_machine_restore" % key + " to method delete_collection_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] @@ -1899,7 +1989,7 @@ def delete_collection_namespaced_virtual_machine_restore_with_http_info(self, ** # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'DELETE', path_params, query_params, header_params, @@ -1914,16 +2004,16 @@ def delete_collection_namespaced_virtual_machine_restore_with_http_info(self, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_virtual_machine_snapshot(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instance_replica_set(self, **kwargs): """ - Delete a collection of VirtualMachineSnapshot objects. + Delete a collection of VirtualMachineInstanceReplicaSet objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_snapshot(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_instance_replica_set(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1941,21 +2031,21 @@ def delete_collection_namespaced_virtual_machine_snapshot(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_virtual_machine_snapshot_with_http_info(**kwargs) + return self.delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_info(**kwargs) else: - (data) = self.delete_collection_namespaced_virtual_machine_snapshot_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_info(**kwargs) return data - def delete_collection_namespaced_virtual_machine_snapshot_with_http_info(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_info(self, **kwargs): """ - Delete a collection of VirtualMachineSnapshot objects. + Delete a collection of VirtualMachineInstanceReplicaSet objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_snapshot_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1983,7 +2073,7 @@ def delete_collection_namespaced_virtual_machine_snapshot_with_http_info(self, * if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_virtual_machine_snapshot" % key + " to method delete_collection_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] @@ -2024,7 +2114,7 @@ def delete_collection_namespaced_virtual_machine_snapshot_with_http_info(self, * # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'DELETE', path_params, query_params, header_params, @@ -2039,16 +2129,16 @@ def delete_collection_namespaced_virtual_machine_snapshot_with_http_info(self, * _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_virtual_machine_snapshot_content(self, **kwargs): + def delete_collection_namespaced_virtual_machine_restore(self, **kwargs): """ - Delete a collection of VirtualMachineSnapshotContent objects. + Delete a collection of VirtualMachineRestore objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_snapshot_content(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_restore(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2066,21 +2156,21 @@ def delete_collection_namespaced_virtual_machine_snapshot_content(self, **kwargs """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info(**kwargs) + return self.delete_collection_namespaced_virtual_machine_restore_with_http_info(**kwargs) else: - (data) = self.delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_restore_with_http_info(**kwargs) return data - def delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info(self, **kwargs): + def delete_collection_namespaced_virtual_machine_restore_with_http_info(self, **kwargs): """ - Delete a collection of VirtualMachineSnapshotContent objects. + Delete a collection of VirtualMachineRestore objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_restore_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2108,7 +2198,7 @@ def delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_virtual_machine_snapshot_content" % key + " to method delete_collection_namespaced_virtual_machine_restore" % key ) params[key] = val del params['kwargs'] @@ -2149,7 +2239,7 @@ def delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents', 'DELETE', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores', 'DELETE', path_params, query_params, header_params, @@ -2164,61 +2254,65 @@ def delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_kube_virt(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_virtual_machine_snapshot(self, **kwargs): """ - Delete a KubeVirt object. + Delete a collection of VirtualMachineSnapshot objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_kube_virt(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_snapshot(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) + return self.delete_collection_namespaced_virtual_machine_snapshot_with_http_info(**kwargs) else: - (data) = self.delete_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_snapshot_with_http_info(**kwargs) return data - def delete_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_virtual_machine_snapshot_with_http_info(self, **kwargs): """ - Delete a KubeVirt object. + Delete a collection of VirtualMachineSnapshot objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_kube_virt_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_snapshot_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2229,36 +2323,33 @@ def delete_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_kube_virt" % key + " to method delete_collection_namespaced_virtual_machine_snapshot" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_kube_virt`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_kube_virt`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_kube_virt`") collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) header_params = {} @@ -2266,20 +2357,14 @@ def delete_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kw local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots', 'DELETE', path_params, query_params, header_params, @@ -2294,61 +2379,65 @@ def delete_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_virtual_machine_snapshot_content(self, **kwargs): """ - Delete a VirtualMachine object. + Delete a collection of VirtualMachineSnapshotContent objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_snapshot_content(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + return self.delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info(**kwargs) else: - (data) = self.delete_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info(**kwargs) return data - def delete_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info(self, **kwargs): """ - Delete a VirtualMachine object. + Delete a collection of VirtualMachineSnapshotContent objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2359,36 +2448,33 @@ def delete_namespaced_virtual_machine_with_http_info(self, name, namespace, body if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine" % key + " to method delete_collection_namespaced_virtual_machine_snapshot_content" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine`") collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) header_params = {} @@ -2396,20 +2482,14 @@ def delete_namespaced_virtual_machine_with_http_info(self, name, namespace, body local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents', 'DELETE', path_params, query_params, header_params, @@ -2424,61 +2504,65 @@ def delete_namespaced_virtual_machine_with_http_info(self, name, namespace, body _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): + def delete_collection_virtual_machine_cluster_flavor(self, **kwargs): """ - Delete a VirtualMachineInstance object. + Delete a collection of VirtualMachineClusterFlavor objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_virtual_machine_cluster_flavor(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + return self.delete_collection_virtual_machine_cluster_flavor_with_http_info(**kwargs) else: - (data) = self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_collection_virtual_machine_cluster_flavor_with_http_info(**kwargs) return data - def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): + def delete_collection_virtual_machine_cluster_flavor_with_http_info(self, **kwargs): """ - Delete a VirtualMachineInstance object. + Delete a collection of VirtualMachineClusterFlavor objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_virtual_machine_cluster_flavor_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) - :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - :return: K8sIoApimachineryPkgApisMetaV1Status - If the method is called asynchronously, - returns the request thread. - """ + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ - all_params = ['name', 'namespace', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2489,36 +2573,33 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namesp if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_instance" % key + " to method delete_collection_virtual_machine_cluster_flavor" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance`") collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) header_params = {} @@ -2526,20 +2607,14 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namesp local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/yaml']) - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors', 'DELETE', path_params, query_params, header_params, @@ -2554,16 +2629,16 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namesp _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): + def delete_namespaced_kube_virt(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstanceMigration object. + Delete a KubeVirt object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_kube_virt(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2579,21 +2654,21 @@ def delete_namespaced_virtual_machine_instance_migration(self, name, namespace, """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstanceMigration object. + Delete a KubeVirt object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_kube_virt_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2619,19 +2694,19 @@ def delete_namespaced_virtual_machine_instance_migration_with_http_info(self, na if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_instance_migration" % key + " to method delete_namespaced_kube_virt" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_kube_virt`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_kube_virt`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_kube_virt`") collection_formats = {} @@ -2669,7 +2744,7 @@ def delete_namespaced_virtual_machine_instance_migration_with_http_info(self, na # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -2684,16 +2759,16 @@ def delete_namespaced_virtual_machine_instance_migration_with_http_info(self, na _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_instance_preset(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstancePreset object. + Delete a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_preset(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2709,21 +2784,21 @@ def delete_namespaced_virtual_machine_instance_preset(self, name, namespace, bod """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstancePreset object. + Delete a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2749,19 +2824,19 @@ def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, name, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_instance_preset" % key + " to method delete_namespaced_virtual_machine" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine`") collection_formats = {} @@ -2799,7 +2874,7 @@ def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, name, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -2814,16 +2889,16 @@ def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, name, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_flavor(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstanceReplicaSet object. + Delete a VirtualMachineFlavor object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_flavor(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2839,21 +2914,21 @@ def delete_namespaced_virtual_machine_instance_replica_set(self, name, namespace """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_flavor_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_virtual_machine_flavor_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_flavor_with_http_info(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstanceReplicaSet object. + Delete a VirtualMachineFlavor object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_flavor_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2879,19 +2954,19 @@ def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_instance_replica_set" % key + " to method delete_namespaced_virtual_machine_flavor" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_flavor`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_flavor`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_flavor`") collection_formats = {} @@ -2929,7 +3004,7 @@ def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -2944,16 +3019,16 @@ def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_restore(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineRestore object. + Delete a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_restore(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2969,21 +3044,21 @@ def delete_namespaced_virtual_machine_restore(self, name, namespace, body, **kwa """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_restore_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineRestore object. + Delete a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3009,19 +3084,19 @@ def delete_namespaced_virtual_machine_restore_with_http_info(self, name, namespa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_restore" % key + " to method delete_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_restore`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_restore`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_restore`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance`") collection_formats = {} @@ -3059,7 +3134,7 @@ def delete_namespaced_virtual_machine_restore_with_http_info(self, name, namespa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -3074,16 +3149,16 @@ def delete_namespaced_virtual_machine_restore_with_http_info(self, name, namespa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_snapshot(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineSnapshot object. + Delete a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_snapshot(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3099,21 +3174,21 @@ def delete_namespaced_virtual_machine_snapshot(self, name, namespace, body, **kw """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineSnapshot object. + Delete a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3139,19 +3214,19 @@ def delete_namespaced_virtual_machine_snapshot_with_http_info(self, name, namesp if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_snapshot" % key + " to method delete_namespaced_virtual_machine_instance_migration" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_snapshot`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance_migration`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_snapshot`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_migration`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_snapshot`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_migration`") collection_formats = {} @@ -3189,7 +3264,7 @@ def delete_namespaced_virtual_machine_snapshot_with_http_info(self, name, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -3204,16 +3279,16 @@ def delete_namespaced_virtual_machine_snapshot_with_http_info(self, name, namesp _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_snapshot_content(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_instance_preset(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineSnapshotContent object. + Delete a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_snapshot_content(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_preset(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3229,21 +3304,21 @@ def delete_namespaced_virtual_machine_snapshot_content(self, name, namespace, bo """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineSnapshotContent object. + Delete a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3269,19 +3344,19 @@ def delete_namespaced_virtual_machine_snapshot_content_with_http_info(self, name if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_snapshot_content" % key + " to method delete_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_snapshot_content`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance_preset`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_snapshot_content`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_preset`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_snapshot_content`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_preset`") collection_formats = {} @@ -3319,7 +3394,7 @@ def delete_namespaced_virtual_machine_snapshot_content_with_http_info(self, name # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -3334,49 +3409,61 @@ def delete_namespaced_virtual_machine_snapshot_content_with_http_info(self, name _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def func1(self, **kwargs): + def delete_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): """ - Health endpoint + Delete a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.func1(callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.func1_with_http_info(**kwargs) + return self.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.func1_with_http_info(**kwargs) + (data) = self.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) return data - def func1_with_http_info(self, **kwargs): + def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): """ - Health endpoint + Delete a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.func1_with_http_info(callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3387,16 +3474,36 @@ def func1_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method func1" % key + " to method delete_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance_replica_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_replica_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_replica_set`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] + if 'grace_period_seconds' in params: + query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) + if 'orphan_dependents' in params: + query_params.append(('orphanDependents', params['orphan_dependents'])) + if 'propagation_policy' in params: + query_params.append(('propagationPolicy', params['propagation_policy'])) header_params = {} @@ -3404,17 +3511,27 @@ def func1_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/healthz', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3422,47 +3539,61 @@ def func1_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def func7(self, **kwargs): + def delete_namespaced_virtual_machine_restore(self, name, namespace, body, **kwargs): """ + Delete a VirtualMachineRestore object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.func7(callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_restore(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.func7_with_http_info(**kwargs) + return self.delete_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.func7_with_http_info(**kwargs) + (data) = self.delete_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) return data - def func7_with_http_info(self, **kwargs): + def delete_namespaced_virtual_machine_restore_with_http_info(self, name, namespace, body, **kwargs): """ + Delete a VirtualMachineRestore object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.func7_with_http_info(callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3473,16 +3604,36 @@ def func7_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method func7" % key + " to method delete_namespaced_virtual_machine_restore" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_restore`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_restore`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_restore`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] + if 'grace_period_seconds' in params: + query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) + if 'orphan_dependents' in params: + query_params.append(('orphanDependents', params['orphan_dependents'])) + if 'propagation_policy' in params: + query_params.append(('propagationPolicy', params['propagation_policy'])) header_params = {} @@ -3490,25 +3641,27 @@ def func7_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['application/json', 'application/yaml']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/openapi/v2', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3516,49 +3669,61 @@ def func7_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_group_kubevirt_io(self, **kwargs): + def delete_namespaced_virtual_machine_snapshot(self, name, namespace, body, **kwargs): """ - Get a KubeVirt API group + Delete a VirtualMachineSnapshot object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_group_kubevirt_io(callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_snapshot(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1APIGroup + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_group_kubevirt_io_with_http_info(**kwargs) + return self.delete_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.get_api_group_kubevirt_io_with_http_info(**kwargs) + (data) = self.delete_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) return data - def get_api_group_kubevirt_io_with_http_info(self, **kwargs): + def delete_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespace, body, **kwargs): """ - Get a KubeVirt API group + Delete a VirtualMachineSnapshot object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_group_kubevirt_io_with_http_info(callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1APIGroup + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3569,16 +3734,36 @@ def get_api_group_kubevirt_io_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_group_kubevirt_io" % key + " to method delete_namespaced_virtual_machine_snapshot" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_snapshot`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_snapshot`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_snapshot`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] + if 'grace_period_seconds' in params: + query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) + if 'orphan_dependents' in params: + query_params.append(('orphanDependents', params['orphan_dependents'])) + if 'propagation_policy' in params: + query_params.append(('propagationPolicy', params['propagation_policy'])) header_params = {} @@ -3586,21 +3771,27 @@ def get_api_group_kubevirt_io_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='K8sIoApimachineryPkgApisMetaV1APIGroup', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3608,49 +3799,61 @@ def get_api_group_kubevirt_io_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_group_list(self, **kwargs): + def delete_namespaced_virtual_machine_snapshot_content(self, name, namespace, body, **kwargs): """ - Get a KubeVirt API GroupList + Delete a VirtualMachineSnapshotContent object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_group_list(callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_snapshot_content(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1APIGroupList + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_group_list_with_http_info(**kwargs) + return self.delete_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.get_api_group_list_with_http_info(**kwargs) + (data) = self.delete_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) return data - def get_api_group_list_with_http_info(self, **kwargs): + def delete_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, namespace, body, **kwargs): """ - Get a KubeVirt API GroupList + Delete a VirtualMachineSnapshotContent object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_group_list_with_http_info(callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1APIGroupList + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3661,16 +3864,36 @@ def get_api_group_list_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_group_list" % key + " to method delete_namespaced_virtual_machine_snapshot_content" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_snapshot_content`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_snapshot_content`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_snapshot_content`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] + if 'grace_period_seconds' in params: + query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) + if 'orphan_dependents' in params: + query_params.append(('orphanDependents', params['orphan_dependents'])) + if 'propagation_policy' in params: + query_params.append(('propagationPolicy', params['propagation_policy'])) header_params = {} @@ -3678,21 +3901,27 @@ def get_api_group_list_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='K8sIoApimachineryPkgApisMetaV1APIGroupList', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3700,49 +3929,59 @@ def get_api_group_list_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_group_snapshot_kubevirt_io(self, **kwargs): + def delete_virtual_machine_cluster_flavor(self, name, body, **kwargs): """ - Get a KubeVirt API group + Delete a VirtualMachineClusterFlavor object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_group_snapshot_kubevirt_io(callback=callback_function) + >>> thread = api.delete_virtual_machine_cluster_flavor(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1APIGroup + :param str name: Name of the resource (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_group_snapshot_kubevirt_io_with_http_info(**kwargs) + return self.delete_virtual_machine_cluster_flavor_with_http_info(name, body, **kwargs) else: - (data) = self.get_api_group_snapshot_kubevirt_io_with_http_info(**kwargs) + (data) = self.delete_virtual_machine_cluster_flavor_with_http_info(name, body, **kwargs) return data - def get_api_group_snapshot_kubevirt_io_with_http_info(self, **kwargs): + def delete_virtual_machine_cluster_flavor_with_http_info(self, name, body, **kwargs): """ - Get a KubeVirt API group + Delete a VirtualMachineClusterFlavor object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_group_snapshot_kubevirt_io_with_http_info(callback=callback_function) + >>> thread = api.delete_virtual_machine_cluster_flavor_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1APIGroup + :param str name: Name of the resource (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3753,16 +3992,31 @@ def get_api_group_snapshot_kubevirt_io_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_group_snapshot_kubevirt_io" % key + " to method delete_virtual_machine_cluster_flavor" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_virtual_machine_cluster_flavor`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_virtual_machine_cluster_flavor`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] query_params = [] + if 'grace_period_seconds' in params: + query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) + if 'orphan_dependents' in params: + query_params.append(('orphanDependents', params['orphan_dependents'])) + if 'propagation_policy' in params: + query_params.append(('propagationPolicy', params['propagation_policy'])) header_params = {} @@ -3770,21 +4024,27 @@ def get_api_group_snapshot_kubevirt_io_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) - # Authentication setting + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/', 'GET', + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='K8sIoApimachineryPkgApisMetaV1APIGroup', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3792,44 +4052,44 @@ def get_api_group_snapshot_kubevirt_io_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_resources_kubevirt_io_v1(self, **kwargs): + def func1(self, **kwargs): """ - Get KubeVirt API Resources + Health endpoint This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_kubevirt_io_v1(callback=callback_function) + >>> thread = api.func1(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1APIResourceList + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_resources_kubevirt_io_v1_with_http_info(**kwargs) + return self.func1_with_http_info(**kwargs) else: - (data) = self.get_api_resources_kubevirt_io_v1_with_http_info(**kwargs) + (data) = self.func1_with_http_info(**kwargs) return data - def get_api_resources_kubevirt_io_v1_with_http_info(self, **kwargs): + def func1_with_http_info(self, **kwargs): """ - Get KubeVirt API Resources + Health endpoint This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_kubevirt_io_v1_with_http_info(callback=callback_function) + >>> thread = api.func1_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1APIResourceList + :return: None If the method is called asynchronously, returns the request thread. """ @@ -3845,7 +4105,7 @@ def get_api_resources_kubevirt_io_v1_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_resources_kubevirt_io_v1" % key + " to method func1" % key ) params[key] = val del params['kwargs'] @@ -3862,21 +4122,17 @@ def get_api_resources_kubevirt_io_v1_with_http_info(self, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/', 'GET', + return self.api_client.call_api('/healthz', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='K8sIoApimachineryPkgApisMetaV1APIResourceList', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3884,44 +4140,42 @@ def get_api_resources_kubevirt_io_v1_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_resources_snapshot_kubevirt_io_v1alpha1(self, **kwargs): + def func7(self, **kwargs): """ - Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_snapshot_kubevirt_io_v1alpha1(callback=callback_function) + >>> thread = api.func7(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1APIResourceList + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_resources_snapshot_kubevirt_io_v1alpha1_with_http_info(**kwargs) + return self.func7_with_http_info(**kwargs) else: - (data) = self.get_api_resources_snapshot_kubevirt_io_v1alpha1_with_http_info(**kwargs) + (data) = self.func7_with_http_info(**kwargs) return data - def get_api_resources_snapshot_kubevirt_io_v1alpha1_with_http_info(self, **kwargs): + def func7_with_http_info(self, **kwargs): """ - Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_snapshot_kubevirt_io_v1alpha1_with_http_info(callback=callback_function) + >>> thread = api.func7_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1APIResourceList + :return: None If the method is called asynchronously, returns the request thread. """ @@ -3937,7 +4191,7 @@ def get_api_resources_snapshot_kubevirt_io_v1alpha1_with_http_info(self, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_resources_snapshot_kubevirt_io_v1alpha1" % key + " to method func7" % key ) params[key] = val del params['kwargs'] @@ -3958,17 +4212,21 @@ def get_api_resources_snapshot_kubevirt_io_v1alpha1_with_http_info(self, **kwarg header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/', 'GET', + return self.api_client.call_api('/openapi/v2', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='K8sIoApimachineryPkgApisMetaV1APIResourceList', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3976,44 +4234,44 @@ def get_api_resources_snapshot_kubevirt_io_v1alpha1_with_http_info(self, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_root_paths(self, **kwargs): + def get_api_group_flavor_kubevirt_io(self, **kwargs): """ - Get KubeVirt API root paths + Get a KubeVirt API group This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_root_paths(callback=callback_function) + >>> thread = api.get_api_group_flavor_kubevirt_io(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1RootPaths + :return: K8sIoApimachineryPkgApisMetaV1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_root_paths_with_http_info(**kwargs) + return self.get_api_group_flavor_kubevirt_io_with_http_info(**kwargs) else: - (data) = self.get_root_paths_with_http_info(**kwargs) + (data) = self.get_api_group_flavor_kubevirt_io_with_http_info(**kwargs) return data - def get_root_paths_with_http_info(self, **kwargs): + def get_api_group_flavor_kubevirt_io_with_http_info(self, **kwargs): """ - Get KubeVirt API root paths + Get a KubeVirt API group This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_root_paths_with_http_info(callback=callback_function) + >>> thread = api.get_api_group_flavor_kubevirt_io_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1RootPaths + :return: K8sIoApimachineryPkgApisMetaV1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -4029,7 +4287,7 @@ def get_root_paths_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_root_paths" % key + " to method get_api_group_flavor_kubevirt_io" % key ) params[key] = val del params['kwargs'] @@ -4053,14 +4311,14 @@ def get_root_paths_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/', 'GET', + return self.api_client.call_api('/apis/flavor.kubevirt.io/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='K8sIoApimachineryPkgApisMetaV1RootPaths', + response_type='K8sIoApimachineryPkgApisMetaV1APIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4068,44 +4326,44 @@ def get_root_paths_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def handle_dump_profiler(self, **kwargs): + def get_api_group_kubevirt_io(self, **kwargs): """ - dump profiler results endpoint + Get a KubeVirt API group This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.handle_dump_profiler(callback=callback_function) + >>> thread = api.get_api_group_kubevirt_io(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :return: K8sIoApimachineryPkgApisMetaV1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.handle_dump_profiler_with_http_info(**kwargs) + return self.get_api_group_kubevirt_io_with_http_info(**kwargs) else: - (data) = self.handle_dump_profiler_with_http_info(**kwargs) + (data) = self.get_api_group_kubevirt_io_with_http_info(**kwargs) return data - def handle_dump_profiler_with_http_info(self, **kwargs): + def get_api_group_kubevirt_io_with_http_info(self, **kwargs): """ - dump profiler results endpoint + Get a KubeVirt API group This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.handle_dump_profiler_with_http_info(callback=callback_function) + >>> thread = api.get_api_group_kubevirt_io_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :return: K8sIoApimachineryPkgApisMetaV1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -4121,7 +4379,7 @@ def handle_dump_profiler_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method handle_dump_profiler" % key + " to method get_api_group_kubevirt_io" % key ) params[key] = val del params['kwargs'] @@ -4138,17 +4396,21 @@ def handle_dump_profiler_with_http_info(self, **kwargs): local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/dump-profiler', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='K8sIoApimachineryPkgApisMetaV1APIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4156,44 +4418,44 @@ def handle_dump_profiler_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def handle_start_profiler(self, **kwargs): + def get_api_group_list(self, **kwargs): """ - start profiler endpoint + Get a KubeVirt API GroupList This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.handle_start_profiler(callback=callback_function) + >>> thread = api.get_api_group_list(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :return: K8sIoApimachineryPkgApisMetaV1APIGroupList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.handle_start_profiler_with_http_info(**kwargs) + return self.get_api_group_list_with_http_info(**kwargs) else: - (data) = self.handle_start_profiler_with_http_info(**kwargs) + (data) = self.get_api_group_list_with_http_info(**kwargs) return data - def handle_start_profiler_with_http_info(self, **kwargs): + def get_api_group_list_with_http_info(self, **kwargs): """ - start profiler endpoint + Get a KubeVirt API GroupList This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.handle_start_profiler_with_http_info(callback=callback_function) + >>> thread = api.get_api_group_list_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :return: K8sIoApimachineryPkgApisMetaV1APIGroupList If the method is called asynchronously, returns the request thread. """ @@ -4209,7 +4471,7 @@ def handle_start_profiler_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method handle_start_profiler" % key + " to method get_api_group_list" % key ) params[key] = val del params['kwargs'] @@ -4226,17 +4488,21 @@ def handle_start_profiler_with_http_info(self, **kwargs): local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/start-profiler', 'GET', + return self.api_client.call_api('/apis', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='K8sIoApimachineryPkgApisMetaV1APIGroupList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4244,44 +4510,44 @@ def handle_start_profiler_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def handle_stop_profiler(self, **kwargs): + def get_api_group_snapshot_kubevirt_io(self, **kwargs): """ - stop profiler endpoint + Get a KubeVirt API group This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.handle_stop_profiler(callback=callback_function) + >>> thread = api.get_api_group_snapshot_kubevirt_io(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :return: K8sIoApimachineryPkgApisMetaV1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.handle_stop_profiler_with_http_info(**kwargs) + return self.get_api_group_snapshot_kubevirt_io_with_http_info(**kwargs) else: - (data) = self.handle_stop_profiler_with_http_info(**kwargs) + (data) = self.get_api_group_snapshot_kubevirt_io_with_http_info(**kwargs) return data - def handle_stop_profiler_with_http_info(self, **kwargs): + def get_api_group_snapshot_kubevirt_io_with_http_info(self, **kwargs): """ - stop profiler endpoint + Get a KubeVirt API group This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.handle_stop_profiler_with_http_info(callback=callback_function) + >>> thread = api.get_api_group_snapshot_kubevirt_io_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :return: K8sIoApimachineryPkgApisMetaV1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -4297,7 +4563,7 @@ def handle_stop_profiler_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method handle_stop_profiler" % key + " to method get_api_group_snapshot_kubevirt_io" % key ) params[key] = val del params['kwargs'] @@ -4314,17 +4580,21 @@ def handle_stop_profiler_with_http_info(self, **kwargs): local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/stop-profiler', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='K8sIoApimachineryPkgApisMetaV1APIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4332,65 +4602,49 @@ def handle_stop_profiler_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_kube_virt_for_all_namespaces(self, **kwargs): + def get_api_resources_flavor_kubevirt_io_v1alpha1(self, **kwargs): """ - Get a list of all KubeVirt objects. + Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_kube_virt_for_all_namespaces(callback=callback_function) + >>> thread = api.get_api_resources_flavor_kubevirt_io_v1alpha1(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1KubeVirtList + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_kube_virt_for_all_namespaces_with_http_info(**kwargs) + return self.get_api_resources_flavor_kubevirt_io_v1alpha1_with_http_info(**kwargs) else: - (data) = self.list_kube_virt_for_all_namespaces_with_http_info(**kwargs) + (data) = self.get_api_resources_flavor_kubevirt_io_v1alpha1_with_http_info(**kwargs) return data - def list_kube_virt_for_all_namespaces_with_http_info(self, **kwargs): + def get_api_resources_flavor_kubevirt_io_v1alpha1_with_http_info(self, **kwargs): """ - Get a list of all KubeVirt objects. + Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_kube_virt_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.get_api_resources_flavor_kubevirt_io_v1alpha1_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1KubeVirtList + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList If the method is called asynchronously, returns the request thread. """ - all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4401,33 +4655,16 @@ def list_kube_virt_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_kube_virt_for_all_namespaces" % key + " to method get_api_resources_flavor_kubevirt_io_v1alpha1" % key ) params[key] = val del params['kwargs'] - collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'include_uninitialized' in params: - query_params.append(('includeUninitialized', params['include_uninitialized'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) header_params = {} @@ -4437,19 +4674,19 @@ def list_kube_virt_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/kubevirt', 'GET', + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1KubeVirtList', + response_type='K8sIoApimachineryPkgApisMetaV1APIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4457,67 +4694,49 @@ def list_kube_virt_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_kube_virt(self, namespace, **kwargs): + def get_api_resources_kubevirt_io_v1(self, **kwargs): """ - Get a list of KubeVirt objects. + Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_kube_virt(namespace, callback=callback_function) + >>> thread = api.get_api_resources_kubevirt_io_v1(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1KubeVirtList + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_kube_virt_with_http_info(namespace, **kwargs) + return self.get_api_resources_kubevirt_io_v1_with_http_info(**kwargs) else: - (data) = self.list_namespaced_kube_virt_with_http_info(namespace, **kwargs) + (data) = self.get_api_resources_kubevirt_io_v1_with_http_info(**kwargs) return data - def list_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): + def get_api_resources_kubevirt_io_v1_with_http_info(self, **kwargs): """ - Get a list of KubeVirt objects. + Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_kube_virt_with_http_info(namespace, callback=callback_function) + >>> thread = api.get_api_resources_kubevirt_io_v1_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1KubeVirtList + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4528,38 +4747,16 @@ def list_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_kube_virt" % key + " to method get_api_resources_kubevirt_io_v1" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_kube_virt`") - collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'include_uninitialized' in params: - query_params.append(('includeUninitialized', params['include_uninitialized'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) header_params = {} @@ -4569,19 +4766,19 @@ def list_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1KubeVirtList', + response_type='K8sIoApimachineryPkgApisMetaV1APIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4589,67 +4786,49 @@ def list_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine(self, namespace, **kwargs): + def get_api_resources_snapshot_kubevirt_io_v1alpha1(self, **kwargs): """ - Get a list of VirtualMachine objects. + Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine(namespace, callback=callback_function) + >>> thread = api.get_api_resources_snapshot_kubevirt_io_v1alpha1(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + return self.get_api_resources_snapshot_kubevirt_io_v1alpha1_with_http_info(**kwargs) else: - (data) = self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + (data) = self.get_api_resources_snapshot_kubevirt_io_v1alpha1_with_http_info(**kwargs) return data - def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): + def get_api_resources_snapshot_kubevirt_io_v1alpha1_with_http_info(self, **kwargs): """ - Get a list of VirtualMachine objects. + Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_with_http_info(namespace, callback=callback_function) + >>> thread = api.get_api_resources_snapshot_kubevirt_io_v1alpha1_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4660,38 +4839,16 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine" % key + " to method get_api_resources_snapshot_kubevirt_io_v1alpha1" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine`") - collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'include_uninitialized' in params: - query_params.append(('includeUninitialized', params['include_uninitialized'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) header_params = {} @@ -4701,19 +4858,19 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineList', + response_type='K8sIoApimachineryPkgApisMetaV1APIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4721,67 +4878,49 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_instance(self, namespace, **kwargs): + def get_root_paths(self, **kwargs): """ - Get a list of VirtualMachineInstance objects. + Get KubeVirt API root paths This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance(namespace, callback=callback_function) + >>> thread = api.get_root_paths(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceList + :return: K8sIoApimachineryPkgApisMetaV1RootPaths If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) + return self.get_root_paths_with_http_info(**kwargs) else: - (data) = self.list_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) + (data) = self.get_root_paths_with_http_info(**kwargs) return data - def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **kwargs): + def get_root_paths_with_http_info(self, **kwargs): """ - Get a list of VirtualMachineInstance objects. + Get KubeVirt API root paths This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_with_http_info(namespace, callback=callback_function) + >>> thread = api.get_root_paths_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceList + :return: K8sIoApimachineryPkgApisMetaV1RootPaths If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4792,38 +4931,16 @@ def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_instance" % key + " to method get_root_paths" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance`") - collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'include_uninitialized' in params: - query_params.append(('includeUninitialized', params['include_uninitialized'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) header_params = {} @@ -4833,19 +4950,19 @@ def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **k body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'GET', + return self.api_client.call_api('/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceList', + response_type='K8sIoApimachineryPkgApisMetaV1RootPaths', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4853,67 +4970,49 @@ def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_instance_migration(self, namespace, **kwargs): + def handle_dump_profiler(self, **kwargs): """ - Get a list of VirtualMachineInstanceMigration objects. + dump profiler results endpoint This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_migration(namespace, callback=callback_function) + >>> thread = api.handle_dump_profiler(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceMigrationList + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) + return self.handle_dump_profiler_with_http_info(**kwargs) else: - (data) = self.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) + (data) = self.handle_dump_profiler_with_http_info(**kwargs) return data - def list_namespaced_virtual_machine_instance_migration_with_http_info(self, namespace, **kwargs): + def handle_dump_profiler_with_http_info(self, **kwargs): """ - Get a list of VirtualMachineInstanceMigration objects. + dump profiler results endpoint This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, callback=callback_function) + >>> thread = api.handle_dump_profiler_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceMigrationList + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4924,38 +5023,16 @@ def list_namespaced_virtual_machine_instance_migration_with_http_info(self, name if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_instance_migration" % key + " to method handle_dump_profiler" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_migration`") - collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'include_uninitialized' in params: - query_params.append(('includeUninitialized', params['include_uninitialized'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) header_params = {} @@ -4963,21 +5040,17 @@ def list_namespaced_virtual_machine_instance_migration_with_http_info(self, name local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'GET', + return self.api_client.call_api('/dump-profiler', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceMigrationList', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4985,67 +5058,49 @@ def list_namespaced_virtual_machine_instance_migration_with_http_info(self, name _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): + def handle_start_profiler(self, **kwargs): """ - Get a list of VirtualMachineInstancePreset objects. + start profiler endpoint This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_preset(namespace, callback=callback_function) + >>> thread = api.handle_start_profiler(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstancePresetList + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) + return self.handle_start_profiler_with_http_info(**kwargs) else: - (data) = self.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) + (data) = self.handle_start_profiler_with_http_info(**kwargs) return data - def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespace, **kwargs): + def handle_start_profiler_with_http_info(self, **kwargs): """ - Get a list of VirtualMachineInstancePreset objects. + start profiler endpoint This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, callback=callback_function) + >>> thread = api.handle_start_profiler_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstancePresetList + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5056,38 +5111,16 @@ def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_instance_preset" % key + " to method handle_start_profiler" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_preset`") - collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'include_uninitialized' in params: - query_params.append(('includeUninitialized', params['include_uninitialized'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) header_params = {} @@ -5095,21 +5128,17 @@ def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespa local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/start-profiler', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstancePresetList', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5117,67 +5146,49 @@ def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwargs): + def handle_stop_profiler(self, **kwargs): """ - Get a list of VirtualMachineInstanceReplicaSet objects. + stop profiler endpoint This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_replica_set(namespace, callback=callback_function) + >>> thread = api.handle_stop_profiler(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceReplicaSetList + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) + return self.handle_stop_profiler_with_http_info(**kwargs) else: - (data) = self.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) + (data) = self.handle_stop_profiler_with_http_info(**kwargs) return data - def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, namespace, **kwargs): + def handle_stop_profiler_with_http_info(self, **kwargs): """ - Get a list of VirtualMachineInstanceReplicaSet objects. + stop profiler endpoint This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, callback=callback_function) + >>> thread = api.handle_stop_profiler_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param bool include_uninitialized: If true, partially initialized resources are included in the response. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything - :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: TimeoutSeconds for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceReplicaSetList + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5188,38 +5199,16 @@ def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_instance_replica_set" % key + " to method handle_stop_profiler" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_replica_set`") - collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'include_uninitialized' in params: - query_params.append(('includeUninitialized', params['include_uninitialized'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) header_params = {} @@ -5227,21 +5216,17 @@ def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/stop-profiler', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceReplicaSetList', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5249,20 +5234,19 @@ def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_restore(self, namespace, **kwargs): + def list_kube_virt_for_all_namespaces(self, **kwargs): """ - Get a list of VirtualMachineRestore objects. + Get a list of all KubeVirt objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_restore(namespace, callback=callback_function) + >>> thread = api.list_kube_virt_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -5271,31 +5255,30 @@ def list_namespaced_virtual_machine_restore(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineRestoreList + :return: V1KubeVirtList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_restore_with_http_info(namespace, **kwargs) + return self.list_kube_virt_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_namespaced_virtual_machine_restore_with_http_info(namespace, **kwargs) + (data) = self.list_kube_virt_for_all_namespaces_with_http_info(**kwargs) return data - def list_namespaced_virtual_machine_restore_with_http_info(self, namespace, **kwargs): + def list_kube_virt_for_all_namespaces_with_http_info(self, **kwargs): """ - Get a list of VirtualMachineRestore objects. + Get a list of all KubeVirt objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_restore_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_kube_virt_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -5304,12 +5287,12 @@ def list_namespaced_virtual_machine_restore_with_http_info(self, namespace, **kw :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineRestoreList + :return: V1KubeVirtList If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5320,20 +5303,15 @@ def list_namespaced_virtual_machine_restore_with_http_info(self, namespace, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_restore" % key + " to method list_kube_virt_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_restore`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -5366,14 +5344,14 @@ def list_namespaced_virtual_machine_restore_with_http_info(self, namespace, **kw # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/kubevirt', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineRestoreList', + response_type='V1KubeVirtList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5381,16 +5359,16 @@ def list_namespaced_virtual_machine_restore_with_http_info(self, namespace, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_snapshot(self, namespace, **kwargs): + def list_namespaced_kube_virt(self, namespace, **kwargs): """ - Get a list of VirtualMachineSnapshot objects. + Get a list of KubeVirt objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_snapshot(namespace, callback=callback_function) + >>> thread = api.list_namespaced_kube_virt(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5403,27 +5381,27 @@ def list_namespaced_virtual_machine_snapshot(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotList + :return: V1KubeVirtList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_snapshot_with_http_info(namespace, **kwargs) + return self.list_namespaced_kube_virt_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_virtual_machine_snapshot_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_kube_virt_with_http_info(namespace, **kwargs) return data - def list_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, **kwargs): + def list_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): """ - Get a list of VirtualMachineSnapshot objects. + Get a list of KubeVirt objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_snapshot_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_kube_virt_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5436,7 +5414,7 @@ def list_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, **k :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotList + :return: V1KubeVirtList If the method is called asynchronously, returns the request thread. """ @@ -5452,13 +5430,13 @@ def list_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_snapshot" % key + " to method list_namespaced_kube_virt" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_snapshot`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_kube_virt`") collection_formats = {} @@ -5498,14 +5476,14 @@ def list_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, **k # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshotList', + response_type='V1KubeVirtList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5513,16 +5491,16 @@ def list_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_snapshot_content(self, namespace, **kwargs): + def list_namespaced_virtual_machine(self, namespace, **kwargs): """ - Get a list of VirtualMachineSnapshotContent objects. + Get a list of VirtualMachine objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_snapshot_content(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5535,27 +5513,27 @@ def list_namespaced_virtual_machine_snapshot_content(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotContentList + :return: V1VirtualMachineList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, **kwargs) + return self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) return data - def list_namespaced_virtual_machine_snapshot_content_with_http_info(self, namespace, **kwargs): + def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): """ - Get a list of VirtualMachineSnapshotContent objects. + Get a list of VirtualMachine objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5568,7 +5546,7 @@ def list_namespaced_virtual_machine_snapshot_content_with_http_info(self, namesp :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotContentList + :return: V1VirtualMachineList If the method is called asynchronously, returns the request thread. """ @@ -5584,13 +5562,13 @@ def list_namespaced_virtual_machine_snapshot_content_with_http_info(self, namesp if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_snapshot_content" % key + " to method list_namespaced_virtual_machine" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_snapshot_content`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine`") collection_formats = {} @@ -5630,14 +5608,14 @@ def list_namespaced_virtual_machine_snapshot_content_with_http_info(self, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshotContentList', + response_type='V1VirtualMachineList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5645,19 +5623,20 @@ def list_namespaced_virtual_machine_snapshot_content_with_http_info(self, namesp _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_for_all_namespaces(self, **kwargs): + def list_namespaced_virtual_machine_flavor(self, namespace, **kwargs): """ - Get a list of all VirtualMachine objects. + Get a list of VirtualMachineFlavor objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_for_all_namespaces(callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_flavor(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -5666,30 +5645,31 @@ def list_virtual_machine_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :return: V1alpha1VirtualMachineFlavorList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_for_all_namespaces_with_http_info(**kwargs) + return self.list_namespaced_virtual_machine_flavor_with_http_info(namespace, **kwargs) else: - (data) = self.list_virtual_machine_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_namespaced_virtual_machine_flavor_with_http_info(namespace, **kwargs) return data - def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): + def list_namespaced_virtual_machine_flavor_with_http_info(self, namespace, **kwargs): """ - Get a list of all VirtualMachine objects. + Get a list of VirtualMachineFlavor objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_flavor_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -5698,12 +5678,12 @@ def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :return: V1alpha1VirtualMachineFlavorList If the method is called asynchronously, returns the request thread. """ - all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5714,15 +5694,20 @@ def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_for_all_namespaces" % key + " to method list_namespaced_virtual_machine_flavor" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_flavor`") collection_formats = {} path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -5755,14 +5740,14 @@ def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/virtualmachines', 'GET', + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineList', + response_type='V1alpha1VirtualMachineFlavorList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5770,19 +5755,20 @@ def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_instance_for_all_namespaces(self, **kwargs): + def list_namespaced_virtual_machine_instance(self, namespace, **kwargs): """ - Get a list of all VirtualMachineInstance objects. + Get a list of VirtualMachineInstance objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_for_all_namespaces(callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -5797,24 +5783,25 @@ def list_virtual_machine_instance_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_instance_for_all_namespaces_with_http_info(**kwargs) + return self.list_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) else: - (data) = self.list_virtual_machine_instance_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) return data - def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwargs): + def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **kwargs): """ - Get a list of all VirtualMachineInstance objects. + Get a list of VirtualMachineInstance objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -5828,7 +5815,7 @@ def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwar returns the request thread. """ - all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5839,15 +5826,20 @@ def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwar if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_instance_for_all_namespaces" % key + " to method list_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance`") collection_formats = {} path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -5880,7 +5872,7 @@ def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwar # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/virtualmachineinstances', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'GET', path_params, query_params, header_params, @@ -5895,19 +5887,20 @@ def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_instance_migration_for_all_namespaces(self, **kwargs): + def list_namespaced_virtual_machine_instance_migration(self, namespace, **kwargs): """ - Get a list of all VirtualMachineInstanceMigration objects. + Get a list of VirtualMachineInstanceMigration objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_migration_for_all_namespaces(callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_migration(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -5922,24 +5915,25 @@ def list_virtual_machine_instance_migration_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(**kwargs) + return self.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) else: - (data) = self.list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) return data - def list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(self, **kwargs): + def list_namespaced_virtual_machine_instance_migration_with_http_info(self, namespace, **kwargs): """ - Get a list of all VirtualMachineInstanceMigration objects. + Get a list of VirtualMachineInstanceMigration objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -5953,7 +5947,7 @@ def list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(se returns the request thread. """ - all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5964,15 +5958,20 @@ def list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(se if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_instance_migration_for_all_namespaces" % key + " to method list_namespaced_virtual_machine_instance_migration" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_migration`") collection_formats = {} path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -6005,7 +6004,7 @@ def list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(se # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/virtualmachineinstancemigrations', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'GET', path_params, query_params, header_params, @@ -6020,19 +6019,20 @@ def list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(se _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_instance_preset_for_all_namespaces(self, **kwargs): + def list_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): """ - Get a list of all VirtualMachineInstancePreset objects. + Get a list of VirtualMachineInstancePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_preset_for_all_namespaces(callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_preset(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -6047,24 +6047,25 @@ def list_virtual_machine_instance_preset_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(**kwargs) + return self.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) else: - (data) = self.list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) return data - def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, **kwargs): + def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespace, **kwargs): """ - Get a list of all VirtualMachineInstancePreset objects. + Get a list of VirtualMachineInstancePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -6078,7 +6079,7 @@ def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, returns the request thread. """ - all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6089,15 +6090,20 @@ def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_instance_preset_for_all_namespaces" % key + " to method list_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_preset`") collection_formats = {} path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -6130,7 +6136,7 @@ def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'GET', path_params, query_params, header_params, @@ -6145,19 +6151,20 @@ def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_instance_replica_set_for_all_namespaces(self, **kwargs): + def list_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwargs): """ - Get a list of all VirtualMachineInstanceReplicaSet objects. + Get a list of VirtualMachineInstanceReplicaSet objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_replica_set_for_all_namespaces(callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_replica_set(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -6172,24 +6179,25 @@ def list_virtual_machine_instance_replica_set_for_all_namespaces(self, **kwargs) """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(**kwargs) + return self.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) else: - (data) = self.list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) return data - def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(self, **kwargs): + def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, namespace, **kwargs): """ - Get a list of all VirtualMachineInstanceReplicaSet objects. + Get a list of VirtualMachineInstanceReplicaSet objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -6203,7 +6211,7 @@ def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info( returns the request thread. """ - all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6214,15 +6222,20 @@ def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info( if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_instance_replica_set_for_all_namespaces" % key + " to method list_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_replica_set`") collection_formats = {} path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -6255,7 +6268,7 @@ def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info( # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, @@ -6270,19 +6283,20 @@ def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info( _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_restore_for_all_namespaces(self, **kwargs): + def list_namespaced_virtual_machine_restore(self, namespace, **kwargs): """ - Get a list of all VirtualMachineRestore objects. + Get a list of VirtualMachineRestore objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_restore_for_all_namespaces(callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_restore(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -6297,24 +6311,25 @@ def list_virtual_machine_restore_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_restore_for_all_namespaces_with_http_info(**kwargs) + return self.list_namespaced_virtual_machine_restore_with_http_info(namespace, **kwargs) else: - (data) = self.list_virtual_machine_restore_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_namespaced_virtual_machine_restore_with_http_info(namespace, **kwargs) return data - def list_virtual_machine_restore_for_all_namespaces_with_http_info(self, **kwargs): + def list_namespaced_virtual_machine_restore_with_http_info(self, namespace, **kwargs): """ - Get a list of all VirtualMachineRestore objects. + Get a list of VirtualMachineRestore objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_restore_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_restore_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -6328,7 +6343,7 @@ def list_virtual_machine_restore_for_all_namespaces_with_http_info(self, **kwarg returns the request thread. """ - all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6339,15 +6354,20 @@ def list_virtual_machine_restore_for_all_namespaces_with_http_info(self, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_restore_for_all_namespaces" % key + " to method list_namespaced_virtual_machine_restore" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_restore`") collection_formats = {} path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -6380,7 +6400,7 @@ def list_virtual_machine_restore_for_all_namespaces_with_http_info(self, **kwarg # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores', 'GET', path_params, query_params, header_params, @@ -6395,19 +6415,20 @@ def list_virtual_machine_restore_for_all_namespaces_with_http_info(self, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_snapshot_content_for_all_namespaces(self, **kwargs): + def list_namespaced_virtual_machine_snapshot(self, namespace, **kwargs): """ - Get a list of all VirtualMachineSnapshotContent objects. + Get a list of VirtualMachineSnapshot objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_snapshot_content_for_all_namespaces(callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_snapshot(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -6416,30 +6437,31 @@ def list_virtual_machine_snapshot_content_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotContentList + :return: V1alpha1VirtualMachineSnapshotList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(**kwargs) + return self.list_namespaced_virtual_machine_snapshot_with_http_info(namespace, **kwargs) else: - (data) = self.list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_namespaced_virtual_machine_snapshot_with_http_info(namespace, **kwargs) return data - def list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(self, **kwargs): + def list_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, **kwargs): """ - Get a list of all VirtualMachineSnapshotContent objects. + Get a list of VirtualMachineSnapshot objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_snapshot_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -6448,12 +6470,12 @@ def list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(self :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotContentList + :return: V1alpha1VirtualMachineSnapshotList If the method is called asynchronously, returns the request thread. """ - all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6464,15 +6486,20 @@ def list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(self if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_snapshot_content_for_all_namespaces" % key + " to method list_namespaced_virtual_machine_snapshot" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_snapshot`") collection_formats = {} path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -6505,14 +6532,14 @@ def list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(self # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshotContentList', + response_type='V1alpha1VirtualMachineSnapshotList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6520,19 +6547,20 @@ def list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(self _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_snapshot_for_all_namespaces(self, **kwargs): + def list_namespaced_virtual_machine_snapshot_content(self, namespace, **kwargs): """ - Get a list of all VirtualMachineSnapshot objects. + Get a list of VirtualMachineSnapshotContent objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_snapshot_for_all_namespaces(callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_snapshot_content(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -6541,30 +6569,31 @@ def list_virtual_machine_snapshot_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotList + :return: V1alpha1VirtualMachineSnapshotContentList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_snapshot_for_all_namespaces_with_http_info(**kwargs) + return self.list_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, **kwargs) else: - (data) = self.list_virtual_machine_snapshot_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, **kwargs) return data - def list_virtual_machine_snapshot_for_all_namespaces_with_http_info(self, **kwargs): + def list_namespaced_virtual_machine_snapshot_content_with_http_info(self, namespace, **kwargs): """ - Get a list of all VirtualMachineSnapshot objects. + Get a list of VirtualMachineSnapshotContent objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_snapshot_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -6573,12 +6602,12 @@ def list_virtual_machine_snapshot_for_all_namespaces_with_http_info(self, **kwar :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotList + :return: V1alpha1VirtualMachineSnapshotContentList If the method is called asynchronously, returns the request thread. """ - all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6589,15 +6618,20 @@ def list_virtual_machine_snapshot_for_all_namespaces_with_http_info(self, **kwar if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_snapshot_for_all_namespaces" % key + " to method list_namespaced_virtual_machine_snapshot_content" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_snapshot_content`") collection_formats = {} path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -6625,19 +6659,2331 @@ def list_virtual_machine_snapshot_for_all_namespaces_with_http_info(self, **kwar body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineSnapshotContentList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_virtual_machine_cluster_flavor(self, **kwargs): + """ + Get a list of VirtualMachineClusterFlavor objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_cluster_flavor(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineClusterFlavorList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_virtual_machine_cluster_flavor_with_http_info(**kwargs) + else: + (data) = self.list_virtual_machine_cluster_flavor_with_http_info(**kwargs) + return data + + def list_virtual_machine_cluster_flavor_with_http_info(self, **kwargs): + """ + Get a list of VirtualMachineClusterFlavor objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_cluster_flavor_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineClusterFlavorList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_virtual_machine_cluster_flavor" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineClusterFlavorList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_virtual_machine_flavor_for_all_namespaces(self, **kwargs): + """ + Get a list of all VirtualMachineFlavor objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_flavor_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineFlavorList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_virtual_machine_flavor_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_virtual_machine_flavor_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_virtual_machine_flavor_for_all_namespaces_with_http_info(self, **kwargs): + """ + Get a list of all VirtualMachineFlavor objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_flavor_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineFlavorList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_virtual_machine_flavor_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineflavors', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineFlavorList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_virtual_machine_for_all_namespaces(self, **kwargs): + """ + Get a list of all VirtualMachine objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_virtual_machine_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_virtual_machine_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): + """ + Get a list of all VirtualMachine objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_virtual_machine_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/virtualmachines', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_virtual_machine_instance_for_all_namespaces(self, **kwargs): + """ + Get a list of all VirtualMachineInstance objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_instance_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineInstanceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_virtual_machine_instance_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_virtual_machine_instance_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwargs): + """ + Get a list of all VirtualMachineInstance objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_instance_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineInstanceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_virtual_machine_instance_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/virtualmachineinstances', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_virtual_machine_instance_migration_for_all_namespaces(self, **kwargs): + """ + Get a list of all VirtualMachineInstanceMigration objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_instance_migration_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineInstanceMigrationList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(self, **kwargs): + """ + Get a list of all VirtualMachineInstanceMigration objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineInstanceMigrationList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_virtual_machine_instance_migration_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/virtualmachineinstancemigrations', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceMigrationList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_virtual_machine_instance_preset_for_all_namespaces(self, **kwargs): + """ + Get a list of all VirtualMachineInstancePreset objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_instance_preset_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineInstancePresetList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, **kwargs): + """ + Get a list of all VirtualMachineInstancePreset objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineInstancePresetList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_virtual_machine_instance_preset_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/virtualmachineinstancepresets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstancePresetList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_virtual_machine_instance_replica_set_for_all_namespaces(self, **kwargs): + """ + Get a list of all VirtualMachineInstanceReplicaSet objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_instance_replica_set_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineInstanceReplicaSetList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(self, **kwargs): + """ + Get a list of all VirtualMachineInstanceReplicaSet objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineInstanceReplicaSetList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_virtual_machine_instance_replica_set_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/virtualmachineinstancereplicasets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceReplicaSetList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_virtual_machine_restore_for_all_namespaces(self, **kwargs): + """ + Get a list of all VirtualMachineRestore objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_restore_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineRestoreList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_virtual_machine_restore_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_virtual_machine_restore_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_virtual_machine_restore_for_all_namespaces_with_http_info(self, **kwargs): + """ + Get a list of all VirtualMachineRestore objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_restore_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineRestoreList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_virtual_machine_restore_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineRestoreList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_virtual_machine_snapshot_content_for_all_namespaces(self, **kwargs): + """ + Get a list of all VirtualMachineSnapshotContent objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_snapshot_content_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineSnapshotContentList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(self, **kwargs): + """ + Get a list of all VirtualMachineSnapshotContent objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineSnapshotContentList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_virtual_machine_snapshot_content_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineSnapshotContentList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_virtual_machine_snapshot_for_all_namespaces(self, **kwargs): + """ + Get a list of all VirtualMachineSnapshot objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_snapshot_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineSnapshotList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_virtual_machine_snapshot_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_virtual_machine_snapshot_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_virtual_machine_snapshot_for_all_namespaces_with_http_info(self, **kwargs): + """ + Get a list of all VirtualMachineSnapshot objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_snapshot_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineSnapshotList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_virtual_machine_snapshot_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineSnapshotList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_kube_virt(self, name, namespace, body, **kwargs): + """ + Patch a KubeVirt object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_kube_virt(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1KubeVirt + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a KubeVirt object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_kube_virt_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1KubeVirt + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_kube_virt" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_kube_virt`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_kube_virt`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_kube_virt`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1KubeVirt', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_virtual_machine(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1VirtualMachine + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1VirtualMachine + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_virtual_machine" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachine', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_virtual_machine_flavor(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineFlavor object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_flavor(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1alpha1VirtualMachineFlavor + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_flavor_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_flavor_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_flavor_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineFlavor object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_flavor_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1alpha1VirtualMachineFlavor + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_virtual_machine_flavor" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_flavor`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_flavor`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_flavor`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineFlavor', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1VirtualMachineInstance + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1VirtualMachineInstance + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_virtual_machine_instance" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstance', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineInstanceMigration object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1VirtualMachineInstanceMigration + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineInstanceMigration object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1VirtualMachineInstanceMigration + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_virtual_machine_instance_migration" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_migration`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_migration`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_migration`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceMigration', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_virtual_machine_instance_preset(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineInstancePreset object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_instance_preset(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1VirtualMachineInstancePreset + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineInstancePreset object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1VirtualMachineInstancePreset + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_virtual_machine_instance_preset" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_preset`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_preset`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_preset`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstancePreset', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineInstanceReplicaSet object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1VirtualMachineInstanceReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineInstanceReplicaSet object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1VirtualMachineInstanceReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_virtual_machine_instance_replica_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_replica_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_replica_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_replica_set`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceReplicaSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_virtual_machine_restore(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineRestore object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_restore(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1alpha1VirtualMachineRestore + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_restore_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineRestore object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1alpha1VirtualMachineRestore + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_virtual_machine_restore" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_restore`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_restore`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_restore`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineRestore', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_virtual_machine_snapshot(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineSnapshot object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_snapshot(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1alpha1VirtualMachineSnapshot + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineSnapshot object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1alpha1VirtualMachineSnapshot + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_virtual_machine_snapshot" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_snapshot`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_snapshot`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_snapshot`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshotList', + response_type='V1alpha1VirtualMachineSnapshot', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6645,50 +8991,50 @@ def list_virtual_machine_snapshot_for_all_namespaces_with_http_info(self, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_kube_virt(self, name, namespace, body, **kwargs): + def patch_namespaced_virtual_machine_snapshot_content(self, name, namespace, body, **kwargs): """ - Patch a KubeVirt object. + Patch a VirtualMachineSnapshotContent object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_kube_virt(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_snapshot_content(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1KubeVirt + :return: V1alpha1VirtualMachineSnapshotContent If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, namespace, body, **kwargs): """ - Patch a KubeVirt object. + Patch a VirtualMachineSnapshotContent object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_kube_virt_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1KubeVirt + :return: V1alpha1VirtualMachineSnapshotContent If the method is called asynchronously, returns the request thread. """ @@ -6704,19 +9050,19 @@ def patch_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_kube_virt" % key + " to method patch_namespaced_virtual_machine_snapshot_content" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_kube_virt`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_snapshot_content`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_kube_virt`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_snapshot_content`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_kube_virt`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_snapshot_content`") collection_formats = {} @@ -6748,14 +9094,14 @@ def patch_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1KubeVirt', + response_type='V1alpha1VirtualMachineSnapshotContent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6763,55 +9109,53 @@ def patch_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine(self, name, namespace, body, **kwargs): + def patch_virtual_machine_cluster_flavor(self, name, body, **kwargs): """ - Patch a VirtualMachine object. + Patch a VirtualMachineClusterFlavor object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine(name, namespace, body, callback=callback_function) + >>> thread = api.patch_virtual_machine_cluster_flavor(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachine + :return: V1alpha1VirtualMachineClusterFlavor If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + return self.patch_virtual_machine_cluster_flavor_with_http_info(name, body, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_virtual_machine_cluster_flavor_with_http_info(name, body, **kwargs) return data - def patch_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): + def patch_virtual_machine_cluster_flavor_with_http_info(self, name, body, **kwargs): """ - Patch a VirtualMachine object. + Patch a VirtualMachineClusterFlavor object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_virtual_machine_cluster_flavor_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachine + :return: V1alpha1VirtualMachineClusterFlavor If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6822,19 +9166,16 @@ def patch_namespaced_virtual_machine_with_http_info(self, name, namespace, body, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine" % key + " to method patch_virtual_machine_cluster_flavor" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `name` when calling `patch_virtual_machine_cluster_flavor`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `body` when calling `patch_virtual_machine_cluster_flavor`") collection_formats = {} @@ -6842,8 +9183,6 @@ def patch_namespaced_virtual_machine_with_http_info(self, name, namespace, body, path_params = {} if 'name' in params: path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] @@ -6866,14 +9205,14 @@ def patch_namespaced_virtual_machine_with_http_info(self, name, namespace, body, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachine', + response_type='V1alpha1VirtualMachineClusterFlavor', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6881,55 +9220,57 @@ def patch_namespaced_virtual_machine_with_http_info(self, name, namespace, body, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): + def read_namespaced_kube_virt(self, name, namespace, **kwargs): """ - Patch a VirtualMachineInstance object. + Get a KubeVirt object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_kube_virt(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachineInstance + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1KubeVirt If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_kube_virt_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_kube_virt_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_kube_virt_with_http_info(self, name, namespace, **kwargs): """ - Patch a VirtualMachineInstance object. + Get a KubeVirt object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_kube_virt_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachineInstance + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1KubeVirt If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6940,19 +9281,16 @@ def patch_namespaced_virtual_machine_instance_with_http_info(self, name, namespa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine_instance" % key + " to method read_namespaced_kube_virt" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_kube_virt`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_kube_virt`") collection_formats = {} @@ -6964,6 +9302,10 @@ def patch_namespaced_virtual_machine_instance_with_http_info(self, name, namespa path_params['namespace'] = params['namespace'] query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) header_params = {} @@ -6971,27 +9313,21 @@ def patch_namespaced_virtual_machine_instance_with_http_info(self, name, namespa local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstance', + response_type='V1KubeVirt', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6999,55 +9335,57 @@ def patch_namespaced_virtual_machine_instance_with_http_info(self, name, namespa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): + def read_namespaced_virtual_machine(self, name, namespace, **kwargs): """ - Patch a VirtualMachineInstanceMigration object. + Get a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachineInstanceMigration + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_virtual_machine_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_virtual_machine_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwargs): """ - Patch a VirtualMachineInstanceMigration object. + Get a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachineInstanceMigration + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7058,19 +9396,16 @@ def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine_instance_migration" % key + " to method read_namespaced_virtual_machine" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_migration`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine`") collection_formats = {} @@ -7082,6 +9417,10 @@ def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam path_params['namespace'] = params['namespace'] query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) header_params = {} @@ -7089,27 +9428,21 @@ def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceMigration', + response_type='V1VirtualMachine', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7117,55 +9450,57 @@ def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_instance_preset(self, name, namespace, body, **kwargs): + def read_namespaced_virtual_machine_flavor(self, name, namespace, **kwargs): """ - Patch a VirtualMachineInstancePreset object. + Get a VirtualMachineFlavor object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_preset(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_flavor(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachineInstancePreset + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1VirtualMachineFlavor If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_virtual_machine_flavor_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_virtual_machine_flavor_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_virtual_machine_flavor_with_http_info(self, name, namespace, **kwargs): """ - Patch a VirtualMachineInstancePreset object. + Get a VirtualMachineFlavor object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_flavor_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachineInstancePreset + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1VirtualMachineFlavor If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7176,19 +9511,16 @@ def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine_instance_preset" % key + " to method read_namespaced_virtual_machine_flavor" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_flavor`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_preset`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_flavor`") collection_formats = {} @@ -7200,6 +9532,10 @@ def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, path_params['namespace'] = params['namespace'] query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) header_params = {} @@ -7207,27 +9543,21 @@ def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstancePreset', + response_type='V1alpha1VirtualMachineFlavor', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7235,55 +9565,57 @@ def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): + def read_namespaced_virtual_machine_instance(self, name, namespace, **kwargs): """ - Patch a VirtualMachineInstanceReplicaSet object. + Get a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_instance(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachineInstanceReplicaSet + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, **kwargs): """ - Patch a VirtualMachineInstanceReplicaSet object. + Get a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachineInstanceReplicaSet + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7294,19 +9626,16 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine_instance_replica_set" % key + " to method read_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_replica_set`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance`") collection_formats = {} @@ -7318,6 +9647,10 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n path_params['namespace'] = params['namespace'] query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) header_params = {} @@ -7325,27 +9658,21 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceReplicaSet', + response_type='V1VirtualMachineInstance', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7353,55 +9680,57 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_restore(self, name, namespace, body, **kwargs): + def read_namespaced_virtual_machine_instance_migration(self, name, namespace, **kwargs): """ - Patch a VirtualMachineRestore object. + Get a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_restore(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_instance_migration(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineRestore + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachineInstanceMigration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_virtual_machine_restore_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, **kwargs): """ - Patch a VirtualMachineRestore object. + Get a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineRestore + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachineInstanceMigration If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7412,19 +9741,16 @@ def patch_namespaced_virtual_machine_restore_with_http_info(self, name, namespac if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine_restore" % key + " to method read_namespaced_virtual_machine_instance_migration" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_restore`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance_migration`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_restore`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_restore`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_migration`") collection_formats = {} @@ -7436,6 +9762,10 @@ def patch_namespaced_virtual_machine_restore_with_http_info(self, name, namespac path_params['namespace'] = params['namespace'] query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) header_params = {} @@ -7443,27 +9773,21 @@ def patch_namespaced_virtual_machine_restore_with_http_info(self, name, namespac local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineRestore', + response_type='V1VirtualMachineInstanceMigration', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7471,55 +9795,57 @@ def patch_namespaced_virtual_machine_restore_with_http_info(self, name, namespac _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_snapshot(self, name, namespace, body, **kwargs): + def read_namespaced_virtual_machine_instance_preset(self, name, namespace, **kwargs): """ - Patch a VirtualMachineSnapshot object. + Get a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_snapshot(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_instance_preset(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineSnapshot + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, **kwargs): """ - Patch a VirtualMachineSnapshot object. + Get a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineSnapshot + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7530,19 +9856,16 @@ def patch_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine_snapshot" % key + " to method read_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_snapshot`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance_preset`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_snapshot`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_snapshot`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_preset`") collection_formats = {} @@ -7554,6 +9877,10 @@ def patch_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespa path_params['namespace'] = params['namespace'] query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) header_params = {} @@ -7561,27 +9888,21 @@ def patch_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespa local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshot', + response_type='V1VirtualMachineInstancePreset', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7589,55 +9910,57 @@ def patch_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_snapshot_content(self, name, namespace, body, **kwargs): + def read_namespaced_virtual_machine_instance_replica_set(self, name, namespace, **kwargs): """ - Patch a VirtualMachineSnapshotContent object. + Get a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_snapshot_content(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_instance_replica_set(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineSnapshotContent + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, **kwargs): """ - Patch a VirtualMachineSnapshotContent object. + Get a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineSnapshotContent + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -7648,19 +9971,16 @@ def patch_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine_snapshot_content" % key + " to method read_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_snapshot_content`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance_replica_set`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_snapshot_content`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_snapshot_content`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_replica_set`") collection_formats = {} @@ -7672,6 +9992,10 @@ def patch_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, path_params['namespace'] = params['namespace'] query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) header_params = {} @@ -7679,27 +10003,21 @@ def patch_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshotContent', + response_type='V1VirtualMachineInstanceReplicaSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7707,16 +10025,16 @@ def patch_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_kube_virt(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_restore(self, name, namespace, **kwargs): """ - Get a KubeVirt object. + Get a VirtualMachineRestore object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_kube_virt(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_restore(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7724,27 +10042,27 @@ def read_namespaced_kube_virt(self, name, namespace, **kwargs): :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1KubeVirt + :return: V1alpha1VirtualMachineRestore If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_kube_virt_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_virtual_machine_restore_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_kube_virt_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_virtual_machine_restore_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_kube_virt_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_restore_with_http_info(self, name, namespace, **kwargs): """ - Get a KubeVirt object. + Get a VirtualMachineRestore object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_kube_virt_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_restore_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7752,7 +10070,7 @@ def read_namespaced_kube_virt_with_http_info(self, name, namespace, **kwargs): :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1KubeVirt + :return: V1alpha1VirtualMachineRestore If the method is called asynchronously, returns the request thread. """ @@ -7768,16 +10086,16 @@ def read_namespaced_kube_virt_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_kube_virt" % key + " to method read_namespaced_virtual_machine_restore" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_kube_virt`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_restore`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_kube_virt`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_restore`") collection_formats = {} @@ -7807,14 +10125,14 @@ def read_namespaced_kube_virt_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1KubeVirt', + response_type='V1alpha1VirtualMachineRestore', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7822,16 +10140,16 @@ def read_namespaced_kube_virt_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_snapshot(self, name, namespace, **kwargs): """ - Get a VirtualMachine object. + Get a VirtualMachineSnapshot object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_snapshot(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7839,27 +10157,27 @@ def read_namespaced_virtual_machine(self, name, namespace, **kwargs): :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachine + :return: V1alpha1VirtualMachineSnapshot If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespace, **kwargs): """ - Get a VirtualMachine object. + Get a VirtualMachineSnapshot object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7867,7 +10185,7 @@ def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwar :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachine + :return: V1alpha1VirtualMachineSnapshot If the method is called asynchronously, returns the request thread. """ @@ -7883,16 +10201,16 @@ def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwar if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine" % key + " to method read_namespaced_virtual_machine_snapshot" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_snapshot`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_snapshot`") collection_formats = {} @@ -7922,14 +10240,14 @@ def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwar # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachine', + response_type='V1alpha1VirtualMachineSnapshot', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7937,16 +10255,16 @@ def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_instance(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_snapshot_content(self, name, namespace, **kwargs): """ - Get a VirtualMachineInstance object. + Get a VirtualMachineSnapshotContent object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_snapshot_content(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7954,27 +10272,27 @@ def read_namespaced_virtual_machine_instance(self, name, namespace, **kwargs): :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachineInstance + :return: V1alpha1VirtualMachineSnapshotContent If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, namespace, **kwargs): """ - Get a VirtualMachineInstance object. + Get a VirtualMachineSnapshotContent object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7982,7 +10300,7 @@ def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespac :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachineInstance + :return: V1alpha1VirtualMachineSnapshotContent If the method is called asynchronously, returns the request thread. """ @@ -7998,16 +10316,16 @@ def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespac if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_instance" % key + " to method read_namespaced_virtual_machine_snapshot_content" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_snapshot_content`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_snapshot_content`") collection_formats = {} @@ -8037,14 +10355,14 @@ def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespac # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstance', + response_type='V1alpha1VirtualMachineSnapshotContent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8052,57 +10370,55 @@ def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespac _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_instance_migration(self, name, namespace, **kwargs): + def read_virtual_machine_cluster_flavor(self, name, **kwargs): """ - Get a VirtualMachineInstanceMigration object. + Get a VirtualMachineClusterFlavor object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance_migration(name, namespace, callback=callback_function) + >>> thread = api.read_virtual_machine_cluster_flavor(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachineInstanceMigration + :return: V1alpha1VirtualMachineClusterFlavor If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, **kwargs) + return self.read_virtual_machine_cluster_flavor_with_http_info(name, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, **kwargs) + (data) = self.read_virtual_machine_cluster_flavor_with_http_info(name, **kwargs) return data - def read_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, **kwargs): + def read_virtual_machine_cluster_flavor_with_http_info(self, name, **kwargs): """ - Get a VirtualMachineInstanceMigration object. + Get a VirtualMachineClusterFlavor object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_virtual_machine_cluster_flavor_with_http_info(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachineInstanceMigration + :return: V1alpha1VirtualMachineClusterFlavor If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'exact', 'export'] + all_params = ['name', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -8113,16 +10429,13 @@ def read_namespaced_virtual_machine_instance_migration_with_http_info(self, name if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_instance_migration" % key + " to method read_virtual_machine_cluster_flavor" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance_migration`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `name` when calling `read_virtual_machine_cluster_flavor`") collection_formats = {} @@ -8130,8 +10443,6 @@ def read_namespaced_virtual_machine_instance_migration_with_http_info(self, name path_params = {} if 'name' in params: path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] if 'exact' in params: @@ -8152,14 +10463,14 @@ def read_namespaced_virtual_machine_instance_migration_with_http_info(self, name # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceMigration', + response_type='V1alpha1VirtualMachineClusterFlavor', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8167,57 +10478,55 @@ def read_namespaced_virtual_machine_instance_migration_with_http_info(self, name _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_instance_preset(self, name, namespace, **kwargs): + def replace_namespaced_kube_virt(self, name, namespace, body, **kwargs): """ - Get a VirtualMachineInstancePreset object. + Update a KubeVirt object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance_preset(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_kube_virt(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachineInstancePreset + :param V1KubeVirt body: (required) + :return: V1KubeVirt If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, **kwargs) + return self.replace_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, **kwargs) + (data) = self.replace_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) return data - def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, **kwargs): + def replace_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwargs): """ - Get a VirtualMachineInstancePreset object. + Update a KubeVirt object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_kube_virt_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachineInstancePreset + :param V1KubeVirt body: (required) + :return: V1KubeVirt If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'exact', 'export'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -8228,16 +10537,19 @@ def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, n if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_instance_preset" % key + " to method replace_namespaced_kube_virt" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_kube_virt`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_kube_virt`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_kube_virt`") collection_formats = {} @@ -8249,10 +10561,6 @@ def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, n path_params['namespace'] = params['namespace'] query_params = [] - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) header_params = {} @@ -8260,21 +10568,27 @@ def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, n local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstancePreset', + response_type='V1KubeVirt', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8282,57 +10596,55 @@ def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, n _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_instance_replica_set(self, name, namespace, **kwargs): + def replace_namespaced_virtual_machine(self, name, namespace, body, **kwargs): """ - Get a VirtualMachineInstanceReplicaSet object. + Update a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance_replica_set(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachineInstanceReplicaSet + :param V1VirtualMachine body: (required) + :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, **kwargs) + return self.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, **kwargs) + (data) = self.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) return data - def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, **kwargs): + def replace_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): """ - Get a VirtualMachineInstanceReplicaSet object. + Update a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachineInstanceReplicaSet + :param V1VirtualMachine body: (required) + :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'exact', 'export'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -8343,16 +10655,19 @@ def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_instance_replica_set" % key + " to method replace_namespaced_virtual_machine" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine`") collection_formats = {} @@ -8364,10 +10679,6 @@ def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na path_params['namespace'] = params['namespace'] query_params = [] - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) header_params = {} @@ -8375,21 +10686,27 @@ def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceReplicaSet', + response_type='V1VirtualMachine', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8397,57 +10714,55 @@ def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_restore(self, name, namespace, **kwargs): + def replace_namespaced_virtual_machine_flavor(self, name, namespace, body, **kwargs): """ - Get a VirtualMachineRestore object. + Update a VirtualMachineFlavor object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_restore(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_flavor(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineRestore + :param V1alpha1VirtualMachineFlavor body: (required) + :return: V1alpha1VirtualMachineFlavor If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_restore_with_http_info(name, namespace, **kwargs) + return self.replace_namespaced_virtual_machine_flavor_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_restore_with_http_info(name, namespace, **kwargs) + (data) = self.replace_namespaced_virtual_machine_flavor_with_http_info(name, namespace, body, **kwargs) return data - def read_namespaced_virtual_machine_restore_with_http_info(self, name, namespace, **kwargs): + def replace_namespaced_virtual_machine_flavor_with_http_info(self, name, namespace, body, **kwargs): """ - Get a VirtualMachineRestore object. + Update a VirtualMachineFlavor object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_restore_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_flavor_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineRestore + :param V1alpha1VirtualMachineFlavor body: (required) + :return: V1alpha1VirtualMachineFlavor If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'exact', 'export'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -8458,16 +10773,19 @@ def read_namespaced_virtual_machine_restore_with_http_info(self, name, namespace if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_restore" % key + " to method replace_namespaced_virtual_machine_flavor" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_restore`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_flavor`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_restore`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_flavor`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_flavor`") collection_formats = {} @@ -8479,10 +10797,6 @@ def read_namespaced_virtual_machine_restore_with_http_info(self, name, namespace path_params['namespace'] = params['namespace'] query_params = [] - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) header_params = {} @@ -8490,21 +10804,27 @@ def read_namespaced_virtual_machine_restore_with_http_info(self, name, namespace local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineRestore', + response_type='V1alpha1VirtualMachineFlavor', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8512,57 +10832,55 @@ def read_namespaced_virtual_machine_restore_with_http_info(self, name, namespace _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_snapshot(self, name, namespace, **kwargs): + def replace_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): """ - Get a VirtualMachineSnapshot object. + Update a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_snapshot(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineSnapshot + :param V1VirtualMachineInstance body: (required) + :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, **kwargs) + return self.replace_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, **kwargs) + (data) = self.replace_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) return data - def read_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespace, **kwargs): + def replace_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): """ - Get a VirtualMachineSnapshot object. + Update a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineSnapshot + :param V1VirtualMachineInstance body: (required) + :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'exact', 'export'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -8573,16 +10891,19 @@ def read_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespac if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_snapshot" % key + " to method replace_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_snapshot`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_snapshot`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance`") collection_formats = {} @@ -8594,10 +10915,6 @@ def read_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespac path_params['namespace'] = params['namespace'] query_params = [] - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) header_params = {} @@ -8605,21 +10922,27 @@ def read_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespac local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshot', + response_type='V1VirtualMachineInstance', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8627,57 +10950,55 @@ def read_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespac _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_snapshot_content(self, name, namespace, **kwargs): + def replace_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): """ - Get a VirtualMachineSnapshotContent object. + Update a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_snapshot_content(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineSnapshotContent + :param V1VirtualMachineInstanceMigration body: (required) + :return: V1VirtualMachineInstanceMigration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, **kwargs) + return self.replace_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, **kwargs) + (data) = self.replace_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) return data - def read_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, namespace, **kwargs): + def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, body, **kwargs): """ - Get a VirtualMachineSnapshotContent object. + Update a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineSnapshotContent + :param V1VirtualMachineInstanceMigration body: (required) + :return: V1VirtualMachineInstanceMigration If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'exact', 'export'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -8688,16 +11009,19 @@ def read_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_snapshot_content" % key + " to method replace_namespaced_virtual_machine_instance_migration" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_snapshot_content`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_migration`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_snapshot_content`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_migration`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_migration`") collection_formats = {} @@ -8709,10 +11033,6 @@ def read_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, path_params['namespace'] = params['namespace'] query_params = [] - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) header_params = {} @@ -8720,21 +11040,27 @@ def read_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshotContent', + response_type='V1VirtualMachineInstanceMigration', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8742,50 +11068,50 @@ def read_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_kube_virt(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_instance_preset(self, name, namespace, body, **kwargs): """ - Update a KubeVirt object. + Update a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_kube_virt(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_preset(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1KubeVirt body: (required) - :return: V1KubeVirt + :param V1VirtualMachineInstancePreset body: (required) + :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, body, **kwargs): """ - Update a KubeVirt object. + Update a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_kube_virt_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1KubeVirt body: (required) - :return: V1KubeVirt + :param V1VirtualMachineInstancePreset body: (required) + :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ @@ -8801,19 +11127,19 @@ def replace_namespaced_kube_virt_with_http_info(self, name, namespace, body, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_kube_virt" % key + " to method replace_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_kube_virt`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_preset`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_kube_virt`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_preset`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_kube_virt`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_preset`") collection_formats = {} @@ -8845,14 +11171,14 @@ def replace_namespaced_kube_virt_with_http_info(self, name, namespace, body, **k # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1KubeVirt', + response_type='V1VirtualMachineInstancePreset', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8860,50 +11186,50 @@ def replace_namespaced_kube_virt_with_http_info(self, name, namespace, body, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): """ - Update a VirtualMachine object. + Update a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachine body: (required) - :return: V1VirtualMachine + :param V1VirtualMachineInstanceReplicaSet body: (required) + :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): """ - Update a VirtualMachine object. + Update a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachine body: (required) - :return: V1VirtualMachine + :param V1VirtualMachineInstanceReplicaSet body: (required) + :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ @@ -8919,19 +11245,19 @@ def replace_namespaced_virtual_machine_with_http_info(self, name, namespace, bod if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine" % key + " to method replace_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_replica_set`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_replica_set`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_replica_set`") collection_formats = {} @@ -8963,14 +11289,14 @@ def replace_namespaced_virtual_machine_with_http_info(self, name, namespace, bod # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachine', + response_type='V1VirtualMachineInstanceReplicaSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8978,50 +11304,50 @@ def replace_namespaced_virtual_machine_with_http_info(self, name, namespace, bod _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_restore(self, name, namespace, body, **kwargs): """ - Update a VirtualMachineInstance object. + Update a VirtualMachineRestore object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_restore(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstance body: (required) - :return: V1VirtualMachineInstance + :param V1alpha1VirtualMachineRestore body: (required) + :return: V1alpha1VirtualMachineRestore If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_restore_with_http_info(self, name, namespace, body, **kwargs): """ - Update a VirtualMachineInstance object. + Update a VirtualMachineRestore object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstance body: (required) - :return: V1VirtualMachineInstance + :param V1alpha1VirtualMachineRestore body: (required) + :return: V1alpha1VirtualMachineRestore If the method is called asynchronously, returns the request thread. """ @@ -9037,19 +11363,19 @@ def replace_namespaced_virtual_machine_instance_with_http_info(self, name, names if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_instance" % key + " to method replace_namespaced_virtual_machine_restore" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_restore`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_restore`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_restore`") collection_formats = {} @@ -9081,14 +11407,14 @@ def replace_namespaced_virtual_machine_instance_with_http_info(self, name, names # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstance', + response_type='V1alpha1VirtualMachineRestore', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9096,50 +11422,50 @@ def replace_namespaced_virtual_machine_instance_with_http_info(self, name, names _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_snapshot(self, name, namespace, body, **kwargs): """ - Update a VirtualMachineInstanceMigration object. + Update a VirtualMachineSnapshot object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_snapshot(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstanceMigration body: (required) - :return: V1VirtualMachineInstanceMigration + :param V1alpha1VirtualMachineSnapshot body: (required) + :return: V1alpha1VirtualMachineSnapshot If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespace, body, **kwargs): """ - Update a VirtualMachineInstanceMigration object. + Update a VirtualMachineSnapshot object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstanceMigration body: (required) - :return: V1VirtualMachineInstanceMigration + :param V1alpha1VirtualMachineSnapshot body: (required) + :return: V1alpha1VirtualMachineSnapshot If the method is called asynchronously, returns the request thread. """ @@ -9155,19 +11481,19 @@ def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, n if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_instance_migration" % key + " to method replace_namespaced_virtual_machine_snapshot" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_snapshot`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_snapshot`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_snapshot`") collection_formats = {} @@ -9199,14 +11525,14 @@ def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, n # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceMigration', + response_type='V1alpha1VirtualMachineSnapshot', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9214,50 +11540,50 @@ def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, n _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_instance_preset(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_snapshot_content(self, name, namespace, body, **kwargs): """ - Update a VirtualMachineInstancePreset object. + Update a VirtualMachineSnapshotContent object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_preset(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_snapshot_content(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstancePreset body: (required) - :return: V1VirtualMachineInstancePreset + :param V1alpha1VirtualMachineSnapshotContent body: (required) + :return: V1alpha1VirtualMachineSnapshotContent If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, namespace, body, **kwargs): """ - Update a VirtualMachineInstancePreset object. + Update a VirtualMachineSnapshotContent object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstancePreset body: (required) - :return: V1VirtualMachineInstancePreset + :param V1alpha1VirtualMachineSnapshotContent body: (required) + :return: V1alpha1VirtualMachineSnapshotContent If the method is called asynchronously, returns the request thread. """ @@ -9273,19 +11599,19 @@ def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, name if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_instance_preset" % key + " to method replace_namespaced_virtual_machine_snapshot_content" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_snapshot_content`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_snapshot_content`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_snapshot_content`") collection_formats = {} @@ -9317,14 +11643,14 @@ def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, name # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstancePreset', + response_type='V1alpha1VirtualMachineSnapshotContent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9332,55 +11658,53 @@ def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, name _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): + def replace_virtual_machine_cluster_flavor(self, name, body, **kwargs): """ - Update a VirtualMachineInstanceReplicaSet object. + Update a VirtualMachineClusterFlavor object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) + >>> thread = api.replace_virtual_machine_cluster_flavor(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstanceReplicaSet body: (required) - :return: V1VirtualMachineInstanceReplicaSet + :param V1alpha1VirtualMachineClusterFlavor body: (required) + :return: V1alpha1VirtualMachineClusterFlavor If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + return self.replace_virtual_machine_cluster_flavor_with_http_info(name, body, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_virtual_machine_cluster_flavor_with_http_info(name, body, **kwargs) return data - def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): + def replace_virtual_machine_cluster_flavor_with_http_info(self, name, body, **kwargs): """ - Update a VirtualMachineInstanceReplicaSet object. + Update a VirtualMachineClusterFlavor object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_virtual_machine_cluster_flavor_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstanceReplicaSet body: (required) - :return: V1VirtualMachineInstanceReplicaSet + :param V1alpha1VirtualMachineClusterFlavor body: (required) + :return: V1alpha1VirtualMachineClusterFlavor If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9391,19 +11715,16 @@ def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_instance_replica_set" % key + " to method replace_virtual_machine_cluster_flavor" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_replica_set`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `name` when calling `replace_virtual_machine_cluster_flavor`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `body` when calling `replace_virtual_machine_cluster_flavor`") collection_formats = {} @@ -9411,8 +11732,6 @@ def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, path_params = {} if 'name' in params: path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] @@ -9435,14 +11754,14 @@ def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceReplicaSet', + response_type='V1alpha1VirtualMachineClusterFlavor', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9450,55 +11769,49 @@ def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_restore(self, name, namespace, body, **kwargs): + def v1_check_health(self, **kwargs): """ - Update a VirtualMachineRestore object. + Health endpoint This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_restore(name, namespace, body, callback=callback_function) + >>> thread = api.v1_check_health(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachineRestore body: (required) - :return: V1alpha1VirtualMachineRestore + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) + return self.v1_check_health_with_http_info(**kwargs) else: - (data) = self.replace_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1_check_health_with_http_info(**kwargs) return data - def replace_namespaced_virtual_machine_restore_with_http_info(self, name, namespace, body, **kwargs): + def v1_check_health_with_http_info(self, **kwargs): """ - Update a VirtualMachineRestore object. + Health endpoint This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1_check_health_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachineRestore body: (required) - :return: V1alpha1VirtualMachineRestore + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9509,28 +11822,14 @@ def replace_namespaced_virtual_machine_restore_with_http_info(self, name, namesp if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_restore" % key + " to method v1_check_health" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_restore`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_restore`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_restore`") - collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] @@ -9540,27 +11839,25 @@ def replace_namespaced_virtual_machine_restore_with_http_info(self, name, namesp local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml']) + select_header_accept(['application/json']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml']) + select_header_content_type(['application/json']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/healthz', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineRestore', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9568,55 +11865,53 @@ def replace_namespaced_virtual_machine_restore_with_http_info(self, name, namesp _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_snapshot(self, name, namespace, body, **kwargs): + def v1_console(self, name, namespace, **kwargs): """ - Update a VirtualMachineSnapshot object. + Open a websocket connection to a serial console on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_snapshot(name, namespace, body, callback=callback_function) + >>> thread = api.v1_console(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachineSnapshot body: (required) - :return: V1alpha1VirtualMachineSnapshot + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) + return self.v1_console_with_http_info(name, namespace, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1_console_with_http_info(name, namespace, **kwargs) return data - def replace_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespace, body, **kwargs): + def v1_console_with_http_info(self, name, namespace, **kwargs): """ - Update a VirtualMachineSnapshot object. + Open a websocket connection to a serial console on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1_console_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachineSnapshot body: (required) - :return: V1alpha1VirtualMachineSnapshot + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9627,19 +11922,16 @@ def replace_namespaced_virtual_machine_snapshot_with_http_info(self, name, names if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_snapshot" % key + " to method v1_console" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_snapshot`") + raise ValueError("Missing the required parameter `name` when calling `v1_console`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_snapshot`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_snapshot`") + raise ValueError("Missing the required parameter `namespace` when calling `v1_console`") collection_formats = {} @@ -9658,27 +11950,17 @@ def replace_namespaced_virtual_machine_snapshot_with_http_info(self, name, names local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshot', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9686,55 +11968,49 @@ def replace_namespaced_virtual_machine_snapshot_with_http_info(self, name, names _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_snapshot_content(self, name, namespace, body, **kwargs): + def v1_filesystemlist(self, **kwargs): """ - Update a VirtualMachineSnapshotContent object. + Get list of active filesystems on guest machine via guest agent This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_snapshot_content(name, namespace, body, callback=callback_function) + >>> thread = api.v1_filesystemlist(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachineSnapshotContent body: (required) - :return: V1alpha1VirtualMachineSnapshotContent + :return: V1VirtualMachineInstanceFileSystemList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) + return self.v1_filesystemlist_with_http_info(**kwargs) else: - (data) = self.replace_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1_filesystemlist_with_http_info(**kwargs) return data - def replace_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, namespace, body, **kwargs): + def v1_filesystemlist_with_http_info(self, **kwargs): """ - Update a VirtualMachineSnapshotContent object. + Get list of active filesystems on guest machine via guest agent This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1_filesystemlist_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachineSnapshotContent body: (required) - :return: V1alpha1VirtualMachineSnapshotContent + :return: V1VirtualMachineInstanceFileSystemList If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9745,28 +12021,14 @@ def replace_namespaced_virtual_machine_snapshot_content_with_http_info(self, nam if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_snapshot_content" % key + " to method v1_filesystemlist" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_snapshot_content`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_snapshot_content`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_snapshot_content`") - collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] @@ -9776,27 +12038,25 @@ def replace_namespaced_virtual_machine_snapshot_content_with_http_info(self, nam local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml']) + select_header_accept(['application/json']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml']) + select_header_content_type(['application/json']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshotContent', + response_type='V1VirtualMachineInstanceFileSystemList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9804,49 +12064,53 @@ def replace_namespaced_virtual_machine_snapshot_content_with_http_info(self, nam _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_check_health(self, **kwargs): + def v1_freeze(self, name, namespace, **kwargs): """ - Health endpoint + Freeze a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_check_health(callback=callback_function) + >>> thread = api.v1_freeze(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_check_health_with_http_info(**kwargs) + return self.v1_freeze_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1_check_health_with_http_info(**kwargs) + (data) = self.v1_freeze_with_http_info(name, namespace, **kwargs) return data - def v1_check_health_with_http_info(self, **kwargs): + def v1_freeze_with_http_info(self, name, namespace, **kwargs): """ - Health endpoint + Freeze a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_check_health_with_http_info(callback=callback_function) + >>> thread = api.v1_freeze_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: str If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9857,14 +12121,25 @@ def v1_check_health_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_check_health" % key + " to method v1_freeze" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1_freeze`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1_freeze`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -9874,18 +12149,10 @@ def v1_check_health_with_http_info(self, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/healthz', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze', 'PUT', path_params, query_params, header_params, @@ -9900,53 +12167,47 @@ def v1_check_health_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_console(self, name, namespace, **kwargs): + def v1_guestfs(self, **kwargs): """ - Open a websocket connection to a serial console on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_console(name, namespace, callback=callback_function) + >>> thread = api.v1_guestfs(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: None + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_console_with_http_info(name, namespace, **kwargs) + return self.v1_guestfs_with_http_info(**kwargs) else: - (data) = self.v1_console_with_http_info(name, namespace, **kwargs) + (data) = self.v1_guestfs_with_http_info(**kwargs) return data - def v1_console_with_http_info(self, name, namespace, **kwargs): + def v1_guestfs_with_http_info(self, **kwargs): """ - Open a websocket connection to a serial console on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_console_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1_guestfs_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: None + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9957,25 +12218,14 @@ def v1_console_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_console" % key + " to method v1_guestfs" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1_console`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1_console`") - collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] @@ -9985,17 +12235,21 @@ def v1_console_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/guestfs', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10003,49 +12257,53 @@ def v1_console_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_filesystemlist(self, **kwargs): + def v1_guestosinfo(self, name, namespace, **kwargs): """ - Get list of active filesystems on guest machine via guest agent + Get guest agent os information This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_filesystemlist(callback=callback_function) + >>> thread = api.v1_guestosinfo(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1VirtualMachineInstanceFileSystemList + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1VirtualMachineInstanceGuestAgentInfo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_filesystemlist_with_http_info(**kwargs) + return self.v1_guestosinfo_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1_filesystemlist_with_http_info(**kwargs) + (data) = self.v1_guestosinfo_with_http_info(name, namespace, **kwargs) return data - def v1_filesystemlist_with_http_info(self, **kwargs): + def v1_guestosinfo_with_http_info(self, name, namespace, **kwargs): """ - Get list of active filesystems on guest machine via guest agent + Get guest agent os information This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_filesystemlist_with_http_info(callback=callback_function) + >>> thread = api.v1_guestosinfo_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1VirtualMachineInstanceFileSystemList + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1VirtualMachineInstanceGuestAgentInfo If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10056,14 +12314,25 @@ def v1_filesystemlist_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_filesystemlist" % key + " to method v1_guestosinfo" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1_guestosinfo`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1_guestosinfo`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -10084,14 +12353,14 @@ def v1_filesystemlist_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceFileSystemList', + response_type='V1VirtualMachineInstanceGuestAgentInfo', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10099,16 +12368,16 @@ def v1_filesystemlist_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_freeze(self, name, namespace, **kwargs): + def v1_migrate(self, name, namespace, **kwargs): """ - Freeze a VirtualMachineInstance object. + Migrate a running VirtualMachine to another node. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_freeze(name, namespace, callback=callback_function) + >>> thread = api.v1_migrate(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -10120,21 +12389,21 @@ def v1_freeze(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_freeze_with_http_info(name, namespace, **kwargs) + return self.v1_migrate_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1_freeze_with_http_info(name, namespace, **kwargs) + (data) = self.v1_migrate_with_http_info(name, namespace, **kwargs) return data - def v1_freeze_with_http_info(self, name, namespace, **kwargs): + def v1_migrate_with_http_info(self, name, namespace, **kwargs): """ - Freeze a VirtualMachineInstance object. + Migrate a running VirtualMachine to another node. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_freeze_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1_migrate_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -10156,16 +12425,16 @@ def v1_freeze_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_freeze" % key + " to method v1_migrate" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1_freeze`") + raise ValueError("Missing the required parameter `name` when calling `v1_migrate`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1_freeze`") + raise ValueError("Missing the required parameter `namespace` when calling `v1_migrate`") collection_formats = {} @@ -10187,7 +12456,7 @@ def v1_freeze_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate', 'PUT', path_params, query_params, header_params, @@ -10202,47 +12471,53 @@ def v1_freeze_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_guestfs(self, **kwargs): + def v1_pause(self, name, namespace, **kwargs): """ + Pause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_guestfs(callback=callback_function) + >>> thread = api.v1_pause(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_guestfs_with_http_info(**kwargs) + return self.v1_pause_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1_guestfs_with_http_info(**kwargs) + (data) = self.v1_pause_with_http_info(name, namespace, **kwargs) return data - def v1_guestfs_with_http_info(self, **kwargs): + def v1_pause_with_http_info(self, name, namespace, **kwargs): """ + Pause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_guestfs_with_http_info(callback=callback_function) + >>> thread = api.v1_pause_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: str If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10253,14 +12528,25 @@ def v1_guestfs_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_guestfs" % key + " to method v1_pause" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1_pause`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1_pause`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -10270,14 +12556,10 @@ def v1_guestfs_with_http_info(self, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/guestfs', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause', 'PUT', path_params, query_params, header_params, @@ -10292,53 +12574,55 @@ def v1_guestfs_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_guestosinfo(self, name, namespace, **kwargs): + def v1_restart(self, name, namespace, **kwargs): """ - Get guest agent os information + Restart a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_guestosinfo(name, namespace, callback=callback_function) + >>> thread = api.v1_restart(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachineInstanceGuestAgentInfo + :param V1RestartOptions body: + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_guestosinfo_with_http_info(name, namespace, **kwargs) + return self.v1_restart_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1_guestosinfo_with_http_info(name, namespace, **kwargs) + (data) = self.v1_restart_with_http_info(name, namespace, **kwargs) return data - def v1_guestosinfo_with_http_info(self, name, namespace, **kwargs): + def v1_restart_with_http_info(self, name, namespace, **kwargs): """ - Get guest agent os information + Restart a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_guestosinfo_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1_restart_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachineInstanceGuestAgentInfo + :param V1RestartOptions body: + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10349,16 +12633,16 @@ def v1_guestosinfo_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_guestosinfo" % key + " to method v1_restart" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1_guestosinfo`") + raise ValueError("Missing the required parameter `name` when calling `v1_restart`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1_guestosinfo`") + raise ValueError("Missing the required parameter `namespace` when calling `v1_restart`") collection_formats = {} @@ -10377,25 +12661,19 @@ def v1_guestosinfo_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceGuestAgentInfo', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10403,16 +12681,16 @@ def v1_guestosinfo_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_migrate(self, name, namespace, **kwargs): + def v1_start(self, name, namespace, **kwargs): """ - Migrate a running VirtualMachine to another node. + Start a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_migrate(name, namespace, callback=callback_function) + >>> thread = api.v1_start(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -10424,21 +12702,21 @@ def v1_migrate(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_migrate_with_http_info(name, namespace, **kwargs) + return self.v1_start_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1_migrate_with_http_info(name, namespace, **kwargs) + (data) = self.v1_start_with_http_info(name, namespace, **kwargs) return data - def v1_migrate_with_http_info(self, name, namespace, **kwargs): + def v1_start_with_http_info(self, name, namespace, **kwargs): """ - Migrate a running VirtualMachine to another node. + Start a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_migrate_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1_start_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -10460,16 +12738,16 @@ def v1_migrate_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_migrate" % key + " to method v1_start" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1_migrate`") + raise ValueError("Missing the required parameter `name` when calling `v1_start`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1_migrate`") + raise ValueError("Missing the required parameter `namespace` when calling `v1_start`") collection_formats = {} @@ -10491,7 +12769,7 @@ def v1_migrate_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start', 'PUT', path_params, query_params, header_params, @@ -10506,53 +12784,55 @@ def v1_migrate_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_pause(self, name, namespace, **kwargs): + def v1_stop(self, name, namespace, **kwargs): """ - Pause a VirtualMachineInstance object. + Stop a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_pause(name, namespace, callback=callback_function) + >>> thread = api.v1_stop(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1StopOptions body: :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_pause_with_http_info(name, namespace, **kwargs) + return self.v1_stop_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1_pause_with_http_info(name, namespace, **kwargs) + (data) = self.v1_stop_with_http_info(name, namespace, **kwargs) return data - def v1_pause_with_http_info(self, name, namespace, **kwargs): + def v1_stop_with_http_info(self, name, namespace, **kwargs): """ - Pause a VirtualMachineInstance object. + Stop a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_pause_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1_stop_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1StopOptions body: :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10563,16 +12843,16 @@ def v1_pause_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_pause" % key + " to method v1_stop" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1_pause`") + raise ValueError("Missing the required parameter `name` when calling `v1_stop`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1_pause`") + raise ValueError("Missing the required parameter `namespace` when calling `v1_stop`") collection_formats = {} @@ -10591,10 +12871,12 @@ def v1_pause_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop', 'PUT', path_params, query_params, header_params, @@ -10609,55 +12891,53 @@ def v1_pause_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_restart(self, name, namespace, **kwargs): + def v1_test(self, name, namespace, **kwargs): """ - Restart a VirtualMachine object. + Test endpoint verifying apiserver connectivity. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_restart(name, namespace, callback=callback_function) + >>> thread = api.v1_test(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RestartOptions body: - :return: str + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_restart_with_http_info(name, namespace, **kwargs) + return self.v1_test_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1_restart_with_http_info(name, namespace, **kwargs) + (data) = self.v1_test_with_http_info(name, namespace, **kwargs) return data - def v1_restart_with_http_info(self, name, namespace, **kwargs): + def v1_test_with_http_info(self, name, namespace, **kwargs): """ - Restart a VirtualMachine object. + Test endpoint verifying apiserver connectivity. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_restart_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1_test_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RestartOptions body: - :return: str + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10668,16 +12948,16 @@ def v1_restart_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_restart" % key + " to method v1_test" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1_restart`") + raise ValueError("Missing the required parameter `name` when calling `v1_test`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1_restart`") + raise ValueError("Missing the required parameter `namespace` when calling `v1_test`") collection_formats = {} @@ -10696,19 +12976,17 @@ def v1_restart_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10716,16 +12994,16 @@ def v1_restart_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_start(self, name, namespace, **kwargs): + def v1_unfreeze(self, name, namespace, **kwargs): """ - Start a VirtualMachine object. + Unfreeze a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_start(name, namespace, callback=callback_function) + >>> thread = api.v1_unfreeze(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -10737,21 +13015,21 @@ def v1_start(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_start_with_http_info(name, namespace, **kwargs) + return self.v1_unfreeze_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1_start_with_http_info(name, namespace, **kwargs) + (data) = self.v1_unfreeze_with_http_info(name, namespace, **kwargs) return data - def v1_start_with_http_info(self, name, namespace, **kwargs): + def v1_unfreeze_with_http_info(self, name, namespace, **kwargs): """ - Start a VirtualMachine object. + Unfreeze a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_start_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1_unfreeze_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -10773,16 +13051,16 @@ def v1_start_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_start" % key + " to method v1_unfreeze" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1_start`") + raise ValueError("Missing the required parameter `name` when calling `v1_unfreeze`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1_start`") + raise ValueError("Missing the required parameter `namespace` when calling `v1_unfreeze`") collection_formats = {} @@ -10804,7 +13082,7 @@ def v1_start_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unfreeze', 'PUT', path_params, query_params, header_params, @@ -10819,55 +13097,53 @@ def v1_start_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_stop(self, name, namespace, **kwargs): + def v1_unpause(self, name, namespace, **kwargs): """ - Stop a VirtualMachine object. + Unpause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_stop(name, namespace, callback=callback_function) + >>> thread = api.v1_unpause(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1StopOptions body: :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_stop_with_http_info(name, namespace, **kwargs) + return self.v1_unpause_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1_stop_with_http_info(name, namespace, **kwargs) + (data) = self.v1_unpause_with_http_info(name, namespace, **kwargs) return data - def v1_stop_with_http_info(self, name, namespace, **kwargs): + def v1_unpause_with_http_info(self, name, namespace, **kwargs): """ - Stop a VirtualMachine object. + Unpause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_stop_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1_unpause_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1StopOptions body: :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10878,16 +13154,16 @@ def v1_stop_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_stop" % key + " to method v1_unpause" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1_stop`") + raise ValueError("Missing the required parameter `name` when calling `v1_unpause`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1_stop`") + raise ValueError("Missing the required parameter `namespace` when calling `v1_unpause`") collection_formats = {} @@ -10906,12 +13182,10 @@ def v1_stop_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause', 'PUT', path_params, query_params, header_params, @@ -10926,53 +13200,49 @@ def v1_stop_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_test(self, name, namespace, **kwargs): + def v1_userlist(self, **kwargs): """ - Test endpoint verifying apiserver connectivity. + Get list of active users via guest agent This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_test(name, namespace, callback=callback_function) + >>> thread = api.v1_userlist(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: None + :return: V1VirtualMachineInstanceGuestOSUserList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_test_with_http_info(name, namespace, **kwargs) + return self.v1_userlist_with_http_info(**kwargs) else: - (data) = self.v1_test_with_http_info(name, namespace, **kwargs) + (data) = self.v1_userlist_with_http_info(**kwargs) return data - def v1_test_with_http_info(self, name, namespace, **kwargs): + def v1_userlist_with_http_info(self, **kwargs): """ - Test endpoint verifying apiserver connectivity. + Get list of active users via guest agent This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_test_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1_userlist_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: None + :return: V1VirtualMachineInstanceGuestOSUserList If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10983,25 +13253,14 @@ def v1_test_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_test" % key + " to method v1_userlist" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1_test`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1_test`") - collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] @@ -11011,17 +13270,25 @@ def v1_test_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='V1VirtualMachineInstanceGuestOSUserList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11029,53 +13296,47 @@ def v1_test_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_unfreeze(self, name, namespace, **kwargs): + def v1_version(self, **kwargs): """ - Unfreeze a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_unfreeze(name, namespace, callback=callback_function) + >>> thread = api.v1_version(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_unfreeze_with_http_info(name, namespace, **kwargs) + return self.v1_version_with_http_info(**kwargs) else: - (data) = self.v1_unfreeze_with_http_info(name, namespace, **kwargs) + (data) = self.v1_version_with_http_info(**kwargs) return data - def v1_unfreeze_with_http_info(self, name, namespace, **kwargs): + def v1_version_with_http_info(self, **kwargs): """ - Unfreeze a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_unfreeze_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1_version_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -11086,25 +13347,14 @@ def v1_unfreeze_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_unfreeze" % key + " to method v1_version" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1_unfreeze`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1_unfreeze`") - collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] @@ -11114,17 +13364,21 @@ def v1_unfreeze_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unfreeze', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/version', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11132,48 +13386,48 @@ def v1_unfreeze_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_unpause(self, name, namespace, **kwargs): + def v1_vnc(self, name, namespace, **kwargs): """ - Unpause a VirtualMachineInstance object. + Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_unpause(name, namespace, callback=callback_function) + >>> thread = api.v1_vnc(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_unpause_with_http_info(name, namespace, **kwargs) + return self.v1_vnc_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1_unpause_with_http_info(name, namespace, **kwargs) + (data) = self.v1_vnc_with_http_info(name, namespace, **kwargs) return data - def v1_unpause_with_http_info(self, name, namespace, **kwargs): + def v1_vnc_with_http_info(self, name, namespace, **kwargs): """ - Unpause a VirtualMachineInstance object. + Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_unpause_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1_vnc_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :return: None If the method is called asynchronously, returns the request thread. """ @@ -11189,16 +13443,16 @@ def v1_unpause_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_unpause" % key + " to method v1_vnc" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1_unpause`") + raise ValueError("Missing the required parameter `name` when calling `v1_vnc`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1_unpause`") + raise ValueError("Missing the required parameter `namespace` when calling `v1_vnc`") collection_formats = {} @@ -11220,14 +13474,14 @@ def v1_unpause_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11235,44 +13489,44 @@ def v1_unpause_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_userlist(self, **kwargs): + def v1alpha3_check_health(self, **kwargs): """ - Get list of active users via guest agent + Health endpoint This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_userlist(callback=callback_function) + >>> thread = api.v1alpha3_check_health(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1VirtualMachineInstanceGuestOSUserList + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_userlist_with_http_info(**kwargs) + return self.v1alpha3_check_health_with_http_info(**kwargs) else: - (data) = self.v1_userlist_with_http_info(**kwargs) + (data) = self.v1alpha3_check_health_with_http_info(**kwargs) return data - def v1_userlist_with_http_info(self, **kwargs): + def v1alpha3_check_health_with_http_info(self, **kwargs): """ - Get list of active users via guest agent + Health endpoint This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_userlist_with_http_info(callback=callback_function) + >>> thread = api.v1alpha3_check_health_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1VirtualMachineInstanceGuestOSUserList + :return: str If the method is called asynchronously, returns the request thread. """ @@ -11288,7 +13542,7 @@ def v1_userlist_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_userlist" % key + " to method v1alpha3_check_health" % key ) params[key] = val del params['kwargs'] @@ -11316,14 +13570,14 @@ def v1_userlist_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/healthz', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceGuestOSUserList', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11331,47 +13585,53 @@ def v1_userlist_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_version(self, **kwargs): + def v1alpha3_console(self, name, namespace, **kwargs): """ + Open a websocket connection to a serial console on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_version(callback=callback_function) + >>> thread = api.v1alpha3_console(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_version_with_http_info(**kwargs) + return self.v1alpha3_console_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1_version_with_http_info(**kwargs) + (data) = self.v1alpha3_console_with_http_info(name, namespace, **kwargs) return data - def v1_version_with_http_info(self, **kwargs): + def v1alpha3_console_with_http_info(self, name, namespace, **kwargs): """ + Open a websocket connection to a serial console on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_version_with_http_info(callback=callback_function) + >>> thread = api.v1alpha3_console_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -11382,14 +13642,25 @@ def v1_version_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_version" % key + " to method v1alpha3_console" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_console`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_console`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -11399,14 +13670,10 @@ def v1_version_with_http_info(self, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/version', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console', 'GET', path_params, query_params, header_params, @@ -11421,53 +13688,49 @@ def v1_version_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_vnc(self, name, namespace, **kwargs): + def v1alpha3_filesystemlist(self, **kwargs): """ - Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. + Get list of active filesystems on guest machine via guest agent This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_vnc(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_filesystemlist(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: None + :return: V1VirtualMachineInstanceFileSystemList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_vnc_with_http_info(name, namespace, **kwargs) + return self.v1alpha3_filesystemlist_with_http_info(**kwargs) else: - (data) = self.v1_vnc_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3_filesystemlist_with_http_info(**kwargs) return data - def v1_vnc_with_http_info(self, name, namespace, **kwargs): + def v1alpha3_filesystemlist_with_http_info(self, **kwargs): """ - Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. + Get list of active filesystems on guest machine via guest agent This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_vnc_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_filesystemlist_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: None + :return: V1VirtualMachineInstanceFileSystemList If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -11478,25 +13741,14 @@ def v1_vnc_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_vnc" % key + " to method v1alpha3_filesystemlist" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1_vnc`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1_vnc`") - collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] @@ -11506,17 +13758,25 @@ def v1_vnc_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='V1VirtualMachineInstanceFileSystemList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11524,49 +13784,53 @@ def v1_vnc_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_check_health(self, **kwargs): + def v1alpha3_freeze(self, name, namespace, **kwargs): """ - Health endpoint + Freeze a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_check_health(callback=callback_function) + >>> thread = api.v1alpha3_freeze(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_check_health_with_http_info(**kwargs) + return self.v1alpha3_freeze_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1alpha3_check_health_with_http_info(**kwargs) + (data) = self.v1alpha3_freeze_with_http_info(name, namespace, **kwargs) return data - def v1alpha3_check_health_with_http_info(self, **kwargs): + def v1alpha3_freeze_with_http_info(self, name, namespace, **kwargs): """ - Health endpoint + Freeze a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_check_health_with_http_info(callback=callback_function) + >>> thread = api.v1alpha3_freeze_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: str If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -11577,14 +13841,25 @@ def v1alpha3_check_health_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_check_health" % key + " to method v1alpha3_freeze" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_freeze`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_freeze`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -11594,18 +13869,10 @@ def v1alpha3_check_health_with_http_info(self, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/healthz', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze', 'PUT', path_params, query_params, header_params, @@ -11620,53 +13887,49 @@ def v1alpha3_check_health_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_console(self, name, namespace, **kwargs): + def v1alpha3_get_sub_api_group(self, **kwargs): """ - Open a websocket connection to a serial console on the specified VirtualMachineInstance. + Get a KubeVirt API Group This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_console(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_get_sub_api_group(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: None + :return: K8sIoApimachineryPkgApisMetaV1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_console_with_http_info(name, namespace, **kwargs) + return self.v1alpha3_get_sub_api_group_with_http_info(**kwargs) else: - (data) = self.v1alpha3_console_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3_get_sub_api_group_with_http_info(**kwargs) return data - def v1alpha3_console_with_http_info(self, name, namespace, **kwargs): + def v1alpha3_get_sub_api_group_with_http_info(self, **kwargs): """ - Open a websocket connection to a serial console on the specified VirtualMachineInstance. + Get a KubeVirt API Group This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_console_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_get_sub_api_group_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: None + :return: K8sIoApimachineryPkgApisMetaV1APIGroup If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -11677,25 +13940,14 @@ def v1alpha3_console_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_console" % key + " to method v1alpha3_get_sub_api_group" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3_console`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_console`") - collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] @@ -11705,17 +13957,21 @@ def v1alpha3_console_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='K8sIoApimachineryPkgApisMetaV1APIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11723,44 +13979,42 @@ def v1alpha3_console_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_filesystemlist(self, **kwargs): + def v1alpha3_guestfs(self, **kwargs): """ - Get list of active filesystems on guest machine via guest agent This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_filesystemlist(callback=callback_function) + >>> thread = api.v1alpha3_guestfs(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1VirtualMachineInstanceFileSystemList + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_filesystemlist_with_http_info(**kwargs) + return self.v1alpha3_guestfs_with_http_info(**kwargs) else: - (data) = self.v1alpha3_filesystemlist_with_http_info(**kwargs) + (data) = self.v1alpha3_guestfs_with_http_info(**kwargs) return data - def v1alpha3_filesystemlist_with_http_info(self, **kwargs): + def v1alpha3_guestfs_with_http_info(self, **kwargs): """ - Get list of active filesystems on guest machine via guest agent This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_filesystemlist_with_http_info(callback=callback_function) + >>> thread = api.v1alpha3_guestfs_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1VirtualMachineInstanceFileSystemList + :return: str If the method is called asynchronously, returns the request thread. """ @@ -11776,7 +14030,7 @@ def v1alpha3_filesystemlist_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_filesystemlist" % key + " to method v1alpha3_guestfs" % key ) params[key] = val del params['kwargs'] @@ -11797,21 +14051,17 @@ def v1alpha3_filesystemlist_with_http_info(self, **kwargs): header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/guestfs', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceFileSystemList', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11819,48 +14069,48 @@ def v1alpha3_filesystemlist_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_freeze(self, name, namespace, **kwargs): + def v1alpha3_guestosinfo(self, name, namespace, **kwargs): """ - Freeze a VirtualMachineInstance object. + Get guest agent os information This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_freeze(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_guestosinfo(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :return: V1VirtualMachineInstanceGuestAgentInfo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_freeze_with_http_info(name, namespace, **kwargs) + return self.v1alpha3_guestosinfo_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1alpha3_freeze_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3_guestosinfo_with_http_info(name, namespace, **kwargs) return data - def v1alpha3_freeze_with_http_info(self, name, namespace, **kwargs): + def v1alpha3_guestosinfo_with_http_info(self, name, namespace, **kwargs): """ - Freeze a VirtualMachineInstance object. + Get guest agent os information This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_freeze_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_guestosinfo_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :return: V1VirtualMachineInstanceGuestAgentInfo If the method is called asynchronously, returns the request thread. """ @@ -11876,16 +14126,16 @@ def v1alpha3_freeze_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_freeze" % key + " to method v1alpha3_guestosinfo" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3_freeze`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_guestosinfo`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_freeze`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_guestosinfo`") collection_formats = {} @@ -11904,17 +14154,25 @@ def v1alpha3_freeze_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type='V1VirtualMachineInstanceGuestAgentInfo', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11922,49 +14180,53 @@ def v1alpha3_freeze_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_get_sub_api_group(self, **kwargs): + def v1alpha3_migrate(self, name, namespace, **kwargs): """ - Get a KubeVirt API Group + Migrate a running VirtualMachine to another node. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_get_sub_api_group(callback=callback_function) + >>> thread = api.v1alpha3_migrate(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1APIGroup + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_get_sub_api_group_with_http_info(**kwargs) + return self.v1alpha3_migrate_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1alpha3_get_sub_api_group_with_http_info(**kwargs) + (data) = self.v1alpha3_migrate_with_http_info(name, namespace, **kwargs) return data - def v1alpha3_get_sub_api_group_with_http_info(self, **kwargs): + def v1alpha3_migrate_with_http_info(self, name, namespace, **kwargs): """ - Get a KubeVirt API Group + Migrate a running VirtualMachine to another node. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_get_sub_api_group_with_http_info(callback=callback_function) + >>> thread = api.v1alpha3_migrate_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1APIGroup + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -11975,14 +14237,25 @@ def v1alpha3_get_sub_api_group_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_get_sub_api_group" % key + " to method v1alpha3_migrate" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_migrate`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_migrate`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -11992,21 +14265,17 @@ def v1alpha3_get_sub_api_group_with_http_info(self, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='K8sIoApimachineryPkgApisMetaV1APIGroup', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12014,47 +14283,53 @@ def v1alpha3_get_sub_api_group_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_guestfs(self, **kwargs): + def v1alpha3_pause(self, name, namespace, **kwargs): """ + Pause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_guestfs(callback=callback_function) + >>> thread = api.v1alpha3_pause(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_guestfs_with_http_info(**kwargs) + return self.v1alpha3_pause_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1alpha3_guestfs_with_http_info(**kwargs) + (data) = self.v1alpha3_pause_with_http_info(name, namespace, **kwargs) return data - def v1alpha3_guestfs_with_http_info(self, **kwargs): + def v1alpha3_pause_with_http_info(self, name, namespace, **kwargs): """ + Pause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_guestfs_with_http_info(callback=callback_function) + >>> thread = api.v1alpha3_pause_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: str If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -12065,14 +14340,25 @@ def v1alpha3_guestfs_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_guestfs" % key + " to method v1alpha3_pause" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_pause`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_pause`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -12082,14 +14368,10 @@ def v1alpha3_guestfs_with_http_info(self, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/guestfs', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause', 'PUT', path_params, query_params, header_params, @@ -12104,53 +14386,55 @@ def v1alpha3_guestfs_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_guestosinfo(self, name, namespace, **kwargs): + def v1alpha3_restart(self, name, namespace, **kwargs): """ - Get guest agent os information + Restart a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_guestosinfo(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_restart(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachineInstanceGuestAgentInfo + :param V1RestartOptions body: + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_guestosinfo_with_http_info(name, namespace, **kwargs) + return self.v1alpha3_restart_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1alpha3_guestosinfo_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3_restart_with_http_info(name, namespace, **kwargs) return data - def v1alpha3_guestosinfo_with_http_info(self, name, namespace, **kwargs): + def v1alpha3_restart_with_http_info(self, name, namespace, **kwargs): """ - Get guest agent os information + Restart a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_guestosinfo_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_restart_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachineInstanceGuestAgentInfo + :param V1RestartOptions body: + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -12161,16 +14445,16 @@ def v1alpha3_guestosinfo_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_guestosinfo" % key + " to method v1alpha3_restart" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3_guestosinfo`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_restart`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_guestosinfo`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_restart`") collection_formats = {} @@ -12189,25 +14473,19 @@ def v1alpha3_guestosinfo_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceGuestAgentInfo', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12215,16 +14493,16 @@ def v1alpha3_guestosinfo_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_migrate(self, name, namespace, **kwargs): + def v1alpha3_start(self, name, namespace, **kwargs): """ - Migrate a running VirtualMachine to another node. + Start a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_migrate(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_start(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -12236,21 +14514,21 @@ def v1alpha3_migrate(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_migrate_with_http_info(name, namespace, **kwargs) + return self.v1alpha3_start_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1alpha3_migrate_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3_start_with_http_info(name, namespace, **kwargs) return data - def v1alpha3_migrate_with_http_info(self, name, namespace, **kwargs): + def v1alpha3_start_with_http_info(self, name, namespace, **kwargs): """ - Migrate a running VirtualMachine to another node. + Start a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_migrate_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_start_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -12272,16 +14550,16 @@ def v1alpha3_migrate_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_migrate" % key + " to method v1alpha3_start" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3_migrate`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_start`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_migrate`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_start`") collection_formats = {} @@ -12303,7 +14581,7 @@ def v1alpha3_migrate_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start', 'PUT', path_params, query_params, header_params, @@ -12318,53 +14596,55 @@ def v1alpha3_migrate_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_pause(self, name, namespace, **kwargs): + def v1alpha3_stop(self, name, namespace, **kwargs): """ - Pause a VirtualMachineInstance object. + Stop a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_pause(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_stop(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1StopOptions body: :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_pause_with_http_info(name, namespace, **kwargs) + return self.v1alpha3_stop_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1alpha3_pause_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3_stop_with_http_info(name, namespace, **kwargs) return data - def v1alpha3_pause_with_http_info(self, name, namespace, **kwargs): + def v1alpha3_stop_with_http_info(self, name, namespace, **kwargs): """ - Pause a VirtualMachineInstance object. + Stop a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_pause_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_stop_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1StopOptions body: :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -12375,16 +14655,16 @@ def v1alpha3_pause_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_pause" % key + " to method v1alpha3_stop" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3_pause`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_stop`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_pause`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_stop`") collection_formats = {} @@ -12403,10 +14683,12 @@ def v1alpha3_pause_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop', 'PUT', path_params, query_params, header_params, @@ -12421,55 +14703,53 @@ def v1alpha3_pause_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_restart(self, name, namespace, **kwargs): + def v1alpha3_test(self, name, namespace, **kwargs): """ - Restart a VirtualMachine object. + Test endpoint verifying apiserver connectivity. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_restart(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_test(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RestartOptions body: - :return: str + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_restart_with_http_info(name, namespace, **kwargs) + return self.v1alpha3_test_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1alpha3_restart_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3_test_with_http_info(name, namespace, **kwargs) return data - def v1alpha3_restart_with_http_info(self, name, namespace, **kwargs): + def v1alpha3_test_with_http_info(self, name, namespace, **kwargs): """ - Restart a VirtualMachine object. + Test endpoint verifying apiserver connectivity. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_restart_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_test_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RestartOptions body: - :return: str + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -12480,16 +14760,16 @@ def v1alpha3_restart_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_restart" % key + " to method v1alpha3_test" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3_restart`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_test`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_restart`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_test`") collection_formats = {} @@ -12508,19 +14788,17 @@ def v1alpha3_restart_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12528,16 +14806,16 @@ def v1alpha3_restart_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_start(self, name, namespace, **kwargs): + def v1alpha3_unfreeze(self, name, namespace, **kwargs): """ - Start a VirtualMachine object. + Unfreeze a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_start(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_unfreeze(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -12549,21 +14827,21 @@ def v1alpha3_start(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_start_with_http_info(name, namespace, **kwargs) + return self.v1alpha3_unfreeze_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1alpha3_start_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3_unfreeze_with_http_info(name, namespace, **kwargs) return data - def v1alpha3_start_with_http_info(self, name, namespace, **kwargs): + def v1alpha3_unfreeze_with_http_info(self, name, namespace, **kwargs): """ - Start a VirtualMachine object. + Unfreeze a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_start_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_unfreeze_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -12585,16 +14863,16 @@ def v1alpha3_start_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_start" % key + " to method v1alpha3_unfreeze" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3_start`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_unfreeze`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_start`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_unfreeze`") collection_formats = {} @@ -12616,7 +14894,7 @@ def v1alpha3_start_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unfreeze', 'PUT', path_params, query_params, header_params, @@ -12631,55 +14909,53 @@ def v1alpha3_start_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_stop(self, name, namespace, **kwargs): + def v1alpha3_unpause(self, name, namespace, **kwargs): """ - Stop a VirtualMachine object. + Unpause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_stop(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_unpause(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1StopOptions body: :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_stop_with_http_info(name, namespace, **kwargs) + return self.v1alpha3_unpause_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1alpha3_stop_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3_unpause_with_http_info(name, namespace, **kwargs) return data - def v1alpha3_stop_with_http_info(self, name, namespace, **kwargs): + def v1alpha3_unpause_with_http_info(self, name, namespace, **kwargs): """ - Stop a VirtualMachine object. + Unpause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_stop_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_unpause_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1StopOptions body: :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -12690,16 +14966,16 @@ def v1alpha3_stop_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_stop" % key + " to method v1alpha3_unpause" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3_stop`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_unpause`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_stop`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_unpause`") collection_formats = {} @@ -12718,12 +14994,10 @@ def v1alpha3_stop_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause', 'PUT', path_params, query_params, header_params, @@ -12738,53 +15012,49 @@ def v1alpha3_stop_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_test(self, name, namespace, **kwargs): + def v1alpha3_userlist(self, **kwargs): """ - Test endpoint verifying apiserver connectivity. + Get list of active users via guest agent This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_test(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_userlist(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: None + :return: V1VirtualMachineInstanceGuestOSUserList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_test_with_http_info(name, namespace, **kwargs) + return self.v1alpha3_userlist_with_http_info(**kwargs) else: - (data) = self.v1alpha3_test_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3_userlist_with_http_info(**kwargs) return data - def v1alpha3_test_with_http_info(self, name, namespace, **kwargs): + def v1alpha3_userlist_with_http_info(self, **kwargs): """ - Test endpoint verifying apiserver connectivity. + Get list of active users via guest agent This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_test_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_userlist_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: None + :return: V1VirtualMachineInstanceGuestOSUserList If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -12795,25 +15065,14 @@ def v1alpha3_test_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_test" % key + " to method v1alpha3_userlist" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3_test`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_test`") - collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] @@ -12823,17 +15082,25 @@ def v1alpha3_test_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='V1VirtualMachineInstanceGuestOSUserList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12841,53 +15108,47 @@ def v1alpha3_test_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_unfreeze(self, name, namespace, **kwargs): + def v1alpha3_version(self, **kwargs): """ - Unfreeze a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_unfreeze(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_version(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_unfreeze_with_http_info(name, namespace, **kwargs) + return self.v1alpha3_version_with_http_info(**kwargs) else: - (data) = self.v1alpha3_unfreeze_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3_version_with_http_info(**kwargs) return data - def v1alpha3_unfreeze_with_http_info(self, name, namespace, **kwargs): + def v1alpha3_version_with_http_info(self, **kwargs): """ - Unfreeze a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_unfreeze_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_version_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -12898,25 +15159,14 @@ def v1alpha3_unfreeze_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_unfreeze" % key + " to method v1alpha3_version" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3_unfreeze`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_unfreeze`") - collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] @@ -12926,17 +15176,21 @@ def v1alpha3_unfreeze_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unfreeze', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/version', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12944,48 +15198,48 @@ def v1alpha3_unfreeze_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_unpause(self, name, namespace, **kwargs): + def v1alpha3_vnc(self, name, namespace, **kwargs): """ - Unpause a VirtualMachineInstance object. + Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_unpause(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_vnc(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_unpause_with_http_info(name, namespace, **kwargs) + return self.v1alpha3_vnc_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1alpha3_unpause_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3_vnc_with_http_info(name, namespace, **kwargs) return data - def v1alpha3_unpause_with_http_info(self, name, namespace, **kwargs): + def v1alpha3_vnc_with_http_info(self, name, namespace, **kwargs): """ - Unpause a VirtualMachineInstance object. + Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_unpause_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_vnc_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :return: None If the method is called asynchronously, returns the request thread. """ @@ -13001,16 +15255,16 @@ def v1alpha3_unpause_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_unpause" % key + " to method v1alpha3_vnc" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3_unpause`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_vnc`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_unpause`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_vnc`") collection_formats = {} @@ -13032,14 +15286,14 @@ def v1alpha3_unpause_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13047,44 +15301,42 @@ def v1alpha3_unpause_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_userlist(self, **kwargs): + def v1alpha3dump_cluster_profiler(self, **kwargs): """ - Get list of active users via guest agent This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_userlist(callback=callback_function) + >>> thread = api.v1alpha3dump_cluster_profiler(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1VirtualMachineInstanceGuestOSUserList + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_userlist_with_http_info(**kwargs) + return self.v1alpha3dump_cluster_profiler_with_http_info(**kwargs) else: - (data) = self.v1alpha3_userlist_with_http_info(**kwargs) + (data) = self.v1alpha3dump_cluster_profiler_with_http_info(**kwargs) return data - def v1alpha3_userlist_with_http_info(self, **kwargs): + def v1alpha3dump_cluster_profiler_with_http_info(self, **kwargs): """ - Get list of active users via guest agent This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_userlist_with_http_info(callback=callback_function) + >>> thread = api.v1alpha3dump_cluster_profiler_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1VirtualMachineInstanceGuestOSUserList + :return: None If the method is called asynchronously, returns the request thread. """ @@ -13100,7 +15352,7 @@ def v1alpha3_userlist_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_userlist" % key + " to method v1alpha3dump_cluster_profiler" % key ) params[key] = val del params['kwargs'] @@ -13121,21 +15373,17 @@ def v1alpha3_userlist_with_http_info(self, **kwargs): header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/dump-cluster-profiler', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceGuestOSUserList', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13143,42 +15391,44 @@ def v1alpha3_userlist_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_version(self, **kwargs): + def v1alpha3get_api_sub_resources(self, **kwargs): """ + Get a KubeVirt API resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_version(callback=callback_function) + >>> thread = api.v1alpha3get_api_sub_resources(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_version_with_http_info(**kwargs) + return self.v1alpha3get_api_sub_resources_with_http_info(**kwargs) else: - (data) = self.v1alpha3_version_with_http_info(**kwargs) + (data) = self.v1alpha3get_api_sub_resources_with_http_info(**kwargs) return data - def v1alpha3_version_with_http_info(self, **kwargs): + def v1alpha3get_api_sub_resources_with_http_info(self, **kwargs): """ + Get a KubeVirt API resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_version_with_http_info(callback=callback_function) + >>> thread = api.v1alpha3get_api_sub_resources_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList If the method is called asynchronously, returns the request thread. """ @@ -13194,7 +15444,7 @@ def v1alpha3_version_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_version" % key + " to method v1alpha3get_api_sub_resources" % key ) params[key] = val del params['kwargs'] @@ -13218,14 +15468,14 @@ def v1alpha3_version_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/version', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='K8sIoApimachineryPkgApisMetaV1APIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13233,53 +15483,47 @@ def v1alpha3_version_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_vnc(self, name, namespace, **kwargs): + def v1alpha3start_cluster_profiler(self, **kwargs): """ - Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_vnc(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3start_cluster_profiler(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_vnc_with_http_info(name, namespace, **kwargs) + return self.v1alpha3start_cluster_profiler_with_http_info(**kwargs) else: - (data) = self.v1alpha3_vnc_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3start_cluster_profiler_with_http_info(**kwargs) return data - def v1alpha3_vnc_with_http_info(self, name, namespace, **kwargs): + def v1alpha3start_cluster_profiler_with_http_info(self, **kwargs): """ - Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_vnc_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3start_cluster_profiler_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -13290,25 +15534,14 @@ def v1alpha3_vnc_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_vnc" % key + " to method v1alpha3start_cluster_profiler" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3_vnc`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_vnc`") - collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] @@ -13318,10 +15551,14 @@ def v1alpha3_vnc_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/start-cluster-profiler', 'GET', path_params, query_params, header_params, @@ -13336,7 +15573,7 @@ def v1alpha3_vnc_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3dump_cluster_profiler(self, **kwargs): + def v1alpha3stop_cluster_profiler(self, **kwargs): """ This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -13344,7 +15581,7 @@ def v1alpha3dump_cluster_profiler(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3dump_cluster_profiler(callback=callback_function) + >>> thread = api.v1alpha3stop_cluster_profiler(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -13354,12 +15591,12 @@ def v1alpha3dump_cluster_profiler(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3dump_cluster_profiler_with_http_info(**kwargs) + return self.v1alpha3stop_cluster_profiler_with_http_info(**kwargs) else: - (data) = self.v1alpha3dump_cluster_profiler_with_http_info(**kwargs) + (data) = self.v1alpha3stop_cluster_profiler_with_http_info(**kwargs) return data - def v1alpha3dump_cluster_profiler_with_http_info(self, **kwargs): + def v1alpha3stop_cluster_profiler_with_http_info(self, **kwargs): """ This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -13367,7 +15604,7 @@ def v1alpha3dump_cluster_profiler_with_http_info(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3dump_cluster_profiler_with_http_info(callback=callback_function) + >>> thread = api.v1alpha3stop_cluster_profiler_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -13387,7 +15624,7 @@ def v1alpha3dump_cluster_profiler_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3dump_cluster_profiler" % key + " to method v1alpha3stop_cluster_profiler" % key ) params[key] = val del params['kwargs'] @@ -13411,7 +15648,7 @@ def v1alpha3dump_cluster_profiler_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/dump-cluster-profiler', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/stop-cluster-profiler', 'GET', path_params, query_params, header_params, @@ -13426,49 +15663,53 @@ def v1alpha3dump_cluster_profiler_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3get_api_sub_resources(self, **kwargs): + def v1alpha3usbredir(self, name, namespace, **kwargs): """ - Get a KubeVirt API resources + Open a websocket connection to connect to USB device on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3get_api_sub_resources(callback=callback_function) + >>> thread = api.v1alpha3usbredir(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1APIResourceList + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3get_api_sub_resources_with_http_info(**kwargs) + return self.v1alpha3usbredir_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1alpha3get_api_sub_resources_with_http_info(**kwargs) + (data) = self.v1alpha3usbredir_with_http_info(name, namespace, **kwargs) return data - def v1alpha3get_api_sub_resources_with_http_info(self, **kwargs): + def v1alpha3usbredir_with_http_info(self, name, namespace, **kwargs): """ - Get a KubeVirt API resources + Open a websocket connection to connect to USB device on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3get_api_sub_resources_with_http_info(callback=callback_function) + >>> thread = api.v1alpha3usbredir_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1APIResourceList + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -13479,14 +15720,25 @@ def v1alpha3get_api_sub_resources_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3get_api_sub_resources" % key + " to method v1alpha3usbredir" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3usbredir`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3usbredir`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -13496,21 +15748,17 @@ def v1alpha3get_api_sub_resources_with_http_info(self, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='K8sIoApimachineryPkgApisMetaV1APIResourceList', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13518,47 +15766,55 @@ def v1alpha3get_api_sub_resources_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3start_cluster_profiler(self, **kwargs): + def v1alpha3vm_addvolume(self, name, namespace, body, **kwargs): """ + Add a volume and disk to a running Virtual Machine. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3start_cluster_profiler(callback=callback_function) + >>> thread = api.v1alpha3vm_addvolume(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1AddVolumeOptions body: (required) + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3start_cluster_profiler_with_http_info(**kwargs) + return self.v1alpha3vm_addvolume_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1alpha3start_cluster_profiler_with_http_info(**kwargs) + (data) = self.v1alpha3vm_addvolume_with_http_info(name, namespace, body, **kwargs) return data - def v1alpha3start_cluster_profiler_with_http_info(self, **kwargs): + def v1alpha3vm_addvolume_with_http_info(self, name, namespace, body, **kwargs): """ + Add a volume and disk to a running Virtual Machine. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3start_cluster_profiler_with_http_info(callback=callback_function) + >>> thread = api.v1alpha3vm_addvolume_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1AddVolumeOptions body: (required) + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -13569,14 +15825,28 @@ def v1alpha3start_cluster_profiler_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3start_cluster_profiler" % key + " to method v1alpha3vm_addvolume" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vm_addvolume`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vm_addvolume`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3vm_addvolume`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -13586,21 +15856,19 @@ def v1alpha3start_cluster_profiler_with_http_info(self, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/start-cluster-profiler', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13608,47 +15876,55 @@ def v1alpha3start_cluster_profiler_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3stop_cluster_profiler(self, **kwargs): + def v1alpha3vm_port_forward(self, name, namespace, port, **kwargs): """ + Open a websocket connection forwarding traffic to the running VMI for the specified VirtualMachine and port. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3stop_cluster_profiler(callback=callback_function) + >>> thread = api.v1alpha3vm_port_forward(name, namespace, port, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str port: The target port for portforward on the VirtualMachineInstance. (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3stop_cluster_profiler_with_http_info(**kwargs) + return self.v1alpha3vm_port_forward_with_http_info(name, namespace, port, **kwargs) else: - (data) = self.v1alpha3stop_cluster_profiler_with_http_info(**kwargs) + (data) = self.v1alpha3vm_port_forward_with_http_info(name, namespace, port, **kwargs) return data - def v1alpha3stop_cluster_profiler_with_http_info(self, **kwargs): + def v1alpha3vm_port_forward_with_http_info(self, name, namespace, port, **kwargs): """ + Open a websocket connection forwarding traffic to the running VMI for the specified VirtualMachine and port. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3stop_cluster_profiler_with_http_info(callback=callback_function) + >>> thread = api.v1alpha3vm_port_forward_with_http_info(name, namespace, port, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str port: The target port for portforward on the VirtualMachineInstance. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace', 'port'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -13659,14 +15935,30 @@ def v1alpha3stop_cluster_profiler_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3stop_cluster_profiler" % key + " to method v1alpha3vm_port_forward" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vm_port_forward`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vm_port_forward`") + # verify the required parameter 'port' is set + if ('port' not in params) or (params['port'] is None): + raise ValueError("Missing the required parameter `port` when calling `v1alpha3vm_port_forward`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'port' in params: + path_params['port'] = params['port'] query_params = [] @@ -13676,14 +15968,10 @@ def v1alpha3stop_cluster_profiler_with_http_info(self, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/stop-cluster-profiler', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}', 'GET', path_params, query_params, header_params, @@ -13698,53 +15986,57 @@ def v1alpha3stop_cluster_profiler_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3usbredir(self, name, namespace, **kwargs): + def v1alpha3vm_port_forward_with_protocol(self, name, namespace, port, protocol, **kwargs): """ - Open a websocket connection to connect to USB device on the specified VirtualMachineInstance. + Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachine and port. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3usbredir(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3vm_port_forward_with_protocol(name, namespace, port, protocol, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str port: The target port for portforward on the VirtualMachineInstance. (required) + :param str protocol: The protocol for portforward on the VirtualMachineInstance. (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3usbredir_with_http_info(name, namespace, **kwargs) + return self.v1alpha3vm_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, **kwargs) else: - (data) = self.v1alpha3usbredir_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3vm_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, **kwargs) return data - def v1alpha3usbredir_with_http_info(self, name, namespace, **kwargs): + def v1alpha3vm_port_forward_with_protocol_with_http_info(self, name, namespace, port, protocol, **kwargs): """ - Open a websocket connection to connect to USB device on the specified VirtualMachineInstance. + Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachine and port. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3usbredir_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3vm_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str port: The target port for portforward on the VirtualMachineInstance. (required) + :param str protocol: The protocol for portforward on the VirtualMachineInstance. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'port', 'protocol'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -13755,16 +16047,22 @@ def v1alpha3usbredir_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3usbredir" % key + " to method v1alpha3vm_port_forward_with_protocol" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3usbredir`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vm_port_forward_with_protocol`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3usbredir`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vm_port_forward_with_protocol`") + # verify the required parameter 'port' is set + if ('port' not in params) or (params['port'] is None): + raise ValueError("Missing the required parameter `port` when calling `v1alpha3vm_port_forward_with_protocol`") + # verify the required parameter 'protocol' is set + if ('protocol' not in params) or (params['protocol'] is None): + raise ValueError("Missing the required parameter `protocol` when calling `v1alpha3vm_port_forward_with_protocol`") collection_formats = {} @@ -13774,6 +16072,10 @@ def v1alpha3usbredir_with_http_info(self, name, namespace, **kwargs): path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] + if 'port' in params: + path_params['port'] = params['port'] + if 'protocol' in params: + path_params['protocol'] = params['protocol'] query_params = [] @@ -13786,7 +16088,7 @@ def v1alpha3usbredir_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp}', 'GET', path_params, query_params, header_params, @@ -13801,49 +16103,49 @@ def v1alpha3usbredir_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3vm_addvolume(self, name, namespace, body, **kwargs): + def v1alpha3vm_removevolume(self, name, namespace, body, **kwargs): """ - Add a volume and disk to a running Virtual Machine. + Removes a volume and disk from a running Virtual Machine. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vm_addvolume(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3vm_removevolume(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1AddVolumeOptions body: (required) + :param V1RemoveVolumeOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3vm_addvolume_with_http_info(name, namespace, body, **kwargs) + return self.v1alpha3vm_removevolume_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1alpha3vm_addvolume_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1alpha3vm_removevolume_with_http_info(name, namespace, body, **kwargs) return data - def v1alpha3vm_addvolume_with_http_info(self, name, namespace, body, **kwargs): + def v1alpha3vm_removevolume_with_http_info(self, name, namespace, body, **kwargs): """ - Add a volume and disk to a running Virtual Machine. + Removes a volume and disk from a running Virtual Machine. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vm_addvolume_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3vm_removevolume_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1AddVolumeOptions body: (required) + :param V1RemoveVolumeOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. @@ -13860,19 +16162,19 @@ def v1alpha3vm_addvolume_with_http_info(self, name, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3vm_addvolume" % key + " to method v1alpha3vm_removevolume" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3vm_addvolume`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vm_removevolume`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vm_addvolume`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vm_removevolume`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1alpha3vm_addvolume`") + raise ValueError("Missing the required parameter `body` when calling `v1alpha3vm_removevolume`") collection_formats = {} @@ -13896,7 +16198,7 @@ def v1alpha3vm_addvolume_with_http_info(self, name, namespace, body, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume', 'PUT', path_params, query_params, header_params, @@ -13911,55 +16213,55 @@ def v1alpha3vm_addvolume_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3vm_port_forward(self, name, namespace, port, **kwargs): + def v1alpha3vmi_addvolume(self, name, namespace, body, **kwargs): """ - Open a websocket connection forwarding traffic to the running VMI for the specified VirtualMachine and port. + Add a volume and disk to a running Virtual Machine Instance This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vm_port_forward(name, namespace, port, callback=callback_function) + >>> thread = api.v1alpha3vmi_addvolume(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str port: The target port for portforward on the VirtualMachineInstance. (required) - :return: None + :param V1AddVolumeOptions body: (required) + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3vm_port_forward_with_http_info(name, namespace, port, **kwargs) + return self.v1alpha3vmi_addvolume_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1alpha3vm_port_forward_with_http_info(name, namespace, port, **kwargs) + (data) = self.v1alpha3vmi_addvolume_with_http_info(name, namespace, body, **kwargs) return data - def v1alpha3vm_port_forward_with_http_info(self, name, namespace, port, **kwargs): + def v1alpha3vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): """ - Open a websocket connection forwarding traffic to the running VMI for the specified VirtualMachine and port. + Add a volume and disk to a running Virtual Machine Instance This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vm_port_forward_with_http_info(name, namespace, port, callback=callback_function) + >>> thread = api.v1alpha3vmi_addvolume_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str port: The target port for portforward on the VirtualMachineInstance. (required) - :return: None + :param V1AddVolumeOptions body: (required) + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'port'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -13970,19 +16272,19 @@ def v1alpha3vm_port_forward_with_http_info(self, name, namespace, port, **kwargs if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3vm_port_forward" % key + " to method v1alpha3vmi_addvolume" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3vm_port_forward`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vmi_addvolume`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vm_port_forward`") - # verify the required parameter 'port' is set - if ('port' not in params) or (params['port'] is None): - raise ValueError("Missing the required parameter `port` when calling `v1alpha3vm_port_forward`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vmi_addvolume`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3vmi_addvolume`") collection_formats = {} @@ -13992,8 +16294,6 @@ def v1alpha3vm_port_forward_with_http_info(self, name, namespace, port, **kwargs path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] - if 'port' in params: - path_params['port'] = params['port'] query_params = [] @@ -14003,17 +16303,19 @@ def v1alpha3vm_port_forward_with_http_info(self, name, namespace, port, **kwargs local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -14021,57 +16323,55 @@ def v1alpha3vm_port_forward_with_http_info(self, name, namespace, port, **kwargs _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3vm_port_forward_with_protocol(self, name, namespace, port, protocol, **kwargs): + def v1alpha3vmi_port_forward(self, name, namespace, port, **kwargs): """ - Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachine and port. + Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vm_port_forward_with_protocol(name, namespace, port, protocol, callback=callback_function) + >>> thread = api.v1alpha3vmi_port_forward(name, namespace, port, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str port: The target port for portforward on the VirtualMachineInstance. (required) - :param str protocol: The protocol for portforward on the VirtualMachineInstance. (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3vm_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, **kwargs) + return self.v1alpha3vmi_port_forward_with_http_info(name, namespace, port, **kwargs) else: - (data) = self.v1alpha3vm_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, **kwargs) + (data) = self.v1alpha3vmi_port_forward_with_http_info(name, namespace, port, **kwargs) return data - def v1alpha3vm_port_forward_with_protocol_with_http_info(self, name, namespace, port, protocol, **kwargs): + def v1alpha3vmi_port_forward_with_http_info(self, name, namespace, port, **kwargs): """ - Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachine and port. + Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vm_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, callback=callback_function) + >>> thread = api.v1alpha3vmi_port_forward_with_http_info(name, namespace, port, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str port: The target port for portforward on the VirtualMachineInstance. (required) - :param str protocol: The protocol for portforward on the VirtualMachineInstance. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'port', 'protocol'] + all_params = ['name', 'namespace', 'port'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -14082,22 +16382,19 @@ def v1alpha3vm_port_forward_with_protocol_with_http_info(self, name, namespace, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3vm_port_forward_with_protocol" % key + " to method v1alpha3vmi_port_forward" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3vm_port_forward_with_protocol`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vmi_port_forward`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vm_port_forward_with_protocol`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vmi_port_forward`") # verify the required parameter 'port' is set if ('port' not in params) or (params['port'] is None): - raise ValueError("Missing the required parameter `port` when calling `v1alpha3vm_port_forward_with_protocol`") - # verify the required parameter 'protocol' is set - if ('protocol' not in params) or (params['protocol'] is None): - raise ValueError("Missing the required parameter `protocol` when calling `v1alpha3vm_port_forward_with_protocol`") + raise ValueError("Missing the required parameter `port` when calling `v1alpha3vmi_port_forward`") collection_formats = {} @@ -14109,8 +16406,6 @@ def v1alpha3vm_port_forward_with_protocol_with_http_info(self, name, namespace, path_params['namespace'] = params['namespace'] if 'port' in params: path_params['port'] = params['port'] - if 'protocol' in params: - path_params['protocol'] = params['protocol'] query_params = [] @@ -14123,7 +16418,7 @@ def v1alpha3vm_port_forward_with_protocol_with_http_info(self, name, namespace, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp}', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}', 'GET', path_params, query_params, header_params, @@ -14138,55 +16433,57 @@ def v1alpha3vm_port_forward_with_protocol_with_http_info(self, name, namespace, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3vm_removevolume(self, name, namespace, body, **kwargs): + def v1alpha3vmi_port_forward_with_protocol(self, name, namespace, port, protocol, **kwargs): """ - Removes a volume and disk from a running Virtual Machine. + Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachineInstance and port. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vm_removevolume(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3vmi_port_forward_with_protocol(name, namespace, port, protocol, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RemoveVolumeOptions body: (required) - :return: str + :param str port: The target port for portforward on the VirtualMachineInstance. (required) + :param str protocol: The protocol for portforward on the VirtualMachineInstance. (required) + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3vm_removevolume_with_http_info(name, namespace, body, **kwargs) + return self.v1alpha3vmi_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, **kwargs) else: - (data) = self.v1alpha3vm_removevolume_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1alpha3vmi_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, **kwargs) return data - def v1alpha3vm_removevolume_with_http_info(self, name, namespace, body, **kwargs): + def v1alpha3vmi_port_forward_with_protocol_with_http_info(self, name, namespace, port, protocol, **kwargs): """ - Removes a volume and disk from a running Virtual Machine. + Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachineInstance and port. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vm_removevolume_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3vmi_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RemoveVolumeOptions body: (required) - :return: str + :param str port: The target port for portforward on the VirtualMachineInstance. (required) + :param str protocol: The protocol for portforward on the VirtualMachineInstance. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace', 'port', 'protocol'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -14197,19 +16494,22 @@ def v1alpha3vm_removevolume_with_http_info(self, name, namespace, body, **kwargs if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3vm_removevolume" % key + " to method v1alpha3vmi_port_forward_with_protocol" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3vm_removevolume`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vmi_port_forward_with_protocol`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vm_removevolume`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1alpha3vm_removevolume`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vmi_port_forward_with_protocol`") + # verify the required parameter 'port' is set + if ('port' not in params) or (params['port'] is None): + raise ValueError("Missing the required parameter `port` when calling `v1alpha3vmi_port_forward_with_protocol`") + # verify the required parameter 'protocol' is set + if ('protocol' not in params) or (params['protocol'] is None): + raise ValueError("Missing the required parameter `protocol` when calling `v1alpha3vmi_port_forward_with_protocol`") collection_formats = {} @@ -14219,6 +16519,10 @@ def v1alpha3vm_removevolume_with_http_info(self, name, namespace, body, **kwargs path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] + if 'port' in params: + path_params['port'] = params['port'] + if 'protocol' in params: + path_params['protocol'] = params['protocol'] query_params = [] @@ -14228,19 +16532,17 @@ def v1alpha3vm_removevolume_with_http_info(self, name, namespace, body, **kwargs local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -14248,49 +16550,49 @@ def v1alpha3vm_removevolume_with_http_info(self, name, namespace, body, **kwargs _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3vmi_addvolume(self, name, namespace, body, **kwargs): + def v1alpha3vmi_removevolume(self, name, namespace, body, **kwargs): """ - Add a volume and disk to a running Virtual Machine Instance + Removes a volume and disk from a running Virtual Machine Instance This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vmi_addvolume(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3vmi_removevolume(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1AddVolumeOptions body: (required) + :param V1RemoveVolumeOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3vmi_addvolume_with_http_info(name, namespace, body, **kwargs) + return self.v1alpha3vmi_removevolume_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1alpha3vmi_addvolume_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1alpha3vmi_removevolume_with_http_info(name, namespace, body, **kwargs) return data - def v1alpha3vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): + def v1alpha3vmi_removevolume_with_http_info(self, name, namespace, body, **kwargs): """ - Add a volume and disk to a running Virtual Machine Instance + Removes a volume and disk from a running Virtual Machine Instance This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vmi_addvolume_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3vmi_removevolume_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1AddVolumeOptions body: (required) + :param V1RemoveVolumeOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. @@ -14307,19 +16609,19 @@ def v1alpha3vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3vmi_addvolume" % key + " to method v1alpha3vmi_removevolume" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3vmi_addvolume`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vmi_removevolume`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vmi_addvolume`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vmi_removevolume`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1alpha3vmi_addvolume`") + raise ValueError("Missing the required parameter `body` when calling `v1alpha3vmi_removevolume`") collection_formats = {} @@ -14343,7 +16645,7 @@ def v1alpha3vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume', 'PUT', path_params, query_params, header_params, @@ -14358,55 +16660,47 @@ def v1alpha3vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3vmi_port_forward(self, name, namespace, port, **kwargs): + def v1dump_cluster_profiler(self, **kwargs): """ - Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vmi_port_forward(name, namespace, port, callback=callback_function) + >>> thread = api.v1dump_cluster_profiler(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str port: The target port for portforward on the VirtualMachineInstance. (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3vmi_port_forward_with_http_info(name, namespace, port, **kwargs) + return self.v1dump_cluster_profiler_with_http_info(**kwargs) else: - (data) = self.v1alpha3vmi_port_forward_with_http_info(name, namespace, port, **kwargs) + (data) = self.v1dump_cluster_profiler_with_http_info(**kwargs) return data - def v1alpha3vmi_port_forward_with_http_info(self, name, namespace, port, **kwargs): + def v1dump_cluster_profiler_with_http_info(self, **kwargs): """ - Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vmi_port_forward_with_http_info(name, namespace, port, callback=callback_function) + >>> thread = api.v1dump_cluster_profiler_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str port: The target port for portforward on the VirtualMachineInstance. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'port'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -14417,30 +16711,14 @@ def v1alpha3vmi_port_forward_with_http_info(self, name, namespace, port, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3vmi_port_forward" % key + " to method v1dump_cluster_profiler" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3vmi_port_forward`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vmi_port_forward`") - # verify the required parameter 'port' is set - if ('port' not in params) or (params['port'] is None): - raise ValueError("Missing the required parameter `port` when calling `v1alpha3vmi_port_forward`") - collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'port' in params: - path_params['port'] = params['port'] query_params = [] @@ -14450,10 +16728,14 @@ def v1alpha3vmi_port_forward_with_http_info(self, name, namespace, port, **kwarg local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/dump-cluster-profiler', 'GET', path_params, query_params, header_params, @@ -14468,57 +16750,49 @@ def v1alpha3vmi_port_forward_with_http_info(self, name, namespace, port, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3vmi_port_forward_with_protocol(self, name, namespace, port, protocol, **kwargs): + def v1get_api_sub_resources(self, **kwargs): """ - Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachineInstance and port. + Get a KubeVirt API resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vmi_port_forward_with_protocol(name, namespace, port, protocol, callback=callback_function) + >>> thread = api.v1get_api_sub_resources(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str port: The target port for portforward on the VirtualMachineInstance. (required) - :param str protocol: The protocol for portforward on the VirtualMachineInstance. (required) - :return: None + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3vmi_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, **kwargs) + return self.v1get_api_sub_resources_with_http_info(**kwargs) else: - (data) = self.v1alpha3vmi_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, **kwargs) + (data) = self.v1get_api_sub_resources_with_http_info(**kwargs) return data - def v1alpha3vmi_port_forward_with_protocol_with_http_info(self, name, namespace, port, protocol, **kwargs): + def v1get_api_sub_resources_with_http_info(self, **kwargs): """ - Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachineInstance and port. + Get a KubeVirt API resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vmi_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, callback=callback_function) + >>> thread = api.v1get_api_sub_resources_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str port: The target port for portforward on the VirtualMachineInstance. (required) - :param str protocol: The protocol for portforward on the VirtualMachineInstance. (required) - :return: None + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'port', 'protocol'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -14529,35 +16803,14 @@ def v1alpha3vmi_port_forward_with_protocol_with_http_info(self, name, namespace, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3vmi_port_forward_with_protocol" % key + " to method v1get_api_sub_resources" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3vmi_port_forward_with_protocol`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vmi_port_forward_with_protocol`") - # verify the required parameter 'port' is set - if ('port' not in params) or (params['port'] is None): - raise ValueError("Missing the required parameter `port` when calling `v1alpha3vmi_port_forward_with_protocol`") - # verify the required parameter 'protocol' is set - if ('protocol' not in params) or (params['protocol'] is None): - raise ValueError("Missing the required parameter `protocol` when calling `v1alpha3vmi_port_forward_with_protocol`") - collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'port' in params: - path_params['port'] = params['port'] - if 'protocol' in params: - path_params['protocol'] = params['protocol'] query_params = [] @@ -14567,17 +16820,21 @@ def v1alpha3vmi_port_forward_with_protocol_with_http_info(self, name, namespace, local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp}', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='K8sIoApimachineryPkgApisMetaV1APIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -14585,55 +16842,47 @@ def v1alpha3vmi_port_forward_with_protocol_with_http_info(self, name, namespace, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3vmi_removevolume(self, name, namespace, body, **kwargs): + def v1start_cluster_profiler(self, **kwargs): """ - Removes a volume and disk from a running Virtual Machine Instance This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vmi_removevolume(name, namespace, body, callback=callback_function) + >>> thread = api.v1start_cluster_profiler(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RemoveVolumeOptions body: (required) - :return: str + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3vmi_removevolume_with_http_info(name, namespace, body, **kwargs) + return self.v1start_cluster_profiler_with_http_info(**kwargs) else: - (data) = self.v1alpha3vmi_removevolume_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1start_cluster_profiler_with_http_info(**kwargs) return data - def v1alpha3vmi_removevolume_with_http_info(self, name, namespace, body, **kwargs): + def v1start_cluster_profiler_with_http_info(self, **kwargs): """ - Removes a volume and disk from a running Virtual Machine Instance This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3vmi_removevolume_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1start_cluster_profiler_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RemoveVolumeOptions body: (required) - :return: str + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -14644,28 +16893,14 @@ def v1alpha3vmi_removevolume_with_http_info(self, name, namespace, body, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3vmi_removevolume" % key + " to method v1start_cluster_profiler" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3vmi_removevolume`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vmi_removevolume`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1alpha3vmi_removevolume`") - collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] @@ -14675,19 +16910,21 @@ def v1alpha3vmi_removevolume_with_http_info(self, name, namespace, body, **kwarg local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/start-cluster-profiler', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -14695,7 +16932,7 @@ def v1alpha3vmi_removevolume_with_http_info(self, name, namespace, body, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1dump_cluster_profiler(self, **kwargs): + def v1stop_cluster_profiler(self, **kwargs): """ This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -14703,7 +16940,7 @@ def v1dump_cluster_profiler(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1dump_cluster_profiler(callback=callback_function) + >>> thread = api.v1stop_cluster_profiler(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -14713,12 +16950,12 @@ def v1dump_cluster_profiler(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1dump_cluster_profiler_with_http_info(**kwargs) + return self.v1stop_cluster_profiler_with_http_info(**kwargs) else: - (data) = self.v1dump_cluster_profiler_with_http_info(**kwargs) + (data) = self.v1stop_cluster_profiler_with_http_info(**kwargs) return data - def v1dump_cluster_profiler_with_http_info(self, **kwargs): + def v1stop_cluster_profiler_with_http_info(self, **kwargs): """ This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -14726,7 +16963,7 @@ def v1dump_cluster_profiler_with_http_info(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1dump_cluster_profiler_with_http_info(callback=callback_function) + >>> thread = api.v1stop_cluster_profiler_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -14746,7 +16983,7 @@ def v1dump_cluster_profiler_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1dump_cluster_profiler" % key + " to method v1stop_cluster_profiler" % key ) params[key] = val del params['kwargs'] @@ -14770,7 +17007,7 @@ def v1dump_cluster_profiler_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/dump-cluster-profiler', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/stop-cluster-profiler', 'GET', path_params, query_params, header_params, @@ -14785,49 +17022,53 @@ def v1dump_cluster_profiler_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1get_api_sub_resources(self, **kwargs): + def v1usbredir(self, name, namespace, **kwargs): """ - Get a KubeVirt API resources + Open a websocket connection to connect to USB device on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1get_api_sub_resources(callback=callback_function) + >>> thread = api.v1usbredir(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1APIResourceList + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1get_api_sub_resources_with_http_info(**kwargs) + return self.v1usbredir_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1get_api_sub_resources_with_http_info(**kwargs) + (data) = self.v1usbredir_with_http_info(name, namespace, **kwargs) return data - def v1get_api_sub_resources_with_http_info(self, **kwargs): + def v1usbredir_with_http_info(self, name, namespace, **kwargs): """ - Get a KubeVirt API resources + Open a websocket connection to connect to USB device on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1get_api_sub_resources_with_http_info(callback=callback_function) + >>> thread = api.v1usbredir_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1APIResourceList + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -14838,14 +17079,25 @@ def v1get_api_sub_resources_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1get_api_sub_resources" % key + " to method v1usbredir" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1usbredir`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1usbredir`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -14855,21 +17107,17 @@ def v1get_api_sub_resources_with_http_info(self, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='K8sIoApimachineryPkgApisMetaV1APIResourceList', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -14877,47 +17125,55 @@ def v1get_api_sub_resources_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1start_cluster_profiler(self, **kwargs): + def v1vm_addvolume(self, name, namespace, body, **kwargs): """ + Add a volume and disk to a running Virtual Machine. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1start_cluster_profiler(callback=callback_function) + >>> thread = api.v1vm_addvolume(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1AddVolumeOptions body: (required) + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1start_cluster_profiler_with_http_info(**kwargs) + return self.v1vm_addvolume_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1start_cluster_profiler_with_http_info(**kwargs) + (data) = self.v1vm_addvolume_with_http_info(name, namespace, body, **kwargs) return data - def v1start_cluster_profiler_with_http_info(self, **kwargs): + def v1vm_addvolume_with_http_info(self, name, namespace, body, **kwargs): """ + Add a volume and disk to a running Virtual Machine. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1start_cluster_profiler_with_http_info(callback=callback_function) + >>> thread = api.v1vm_addvolume_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1AddVolumeOptions body: (required) + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -14928,14 +17184,28 @@ def v1start_cluster_profiler_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1start_cluster_profiler" % key + " to method v1vm_addvolume" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1vm_addvolume`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1vm_addvolume`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1vm_addvolume`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -14945,21 +17215,19 @@ def v1start_cluster_profiler_with_http_info(self, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/start-cluster-profiler', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -14967,47 +17235,55 @@ def v1start_cluster_profiler_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1stop_cluster_profiler(self, **kwargs): + def v1vm_port_forward(self, name, namespace, port, **kwargs): """ + Open a websocket connection forwarding traffic to the running VMI for the specified VirtualMachine and port. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1stop_cluster_profiler(callback=callback_function) + >>> thread = api.v1vm_port_forward(name, namespace, port, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str port: The target port for portforward on the VirtualMachineInstance. (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1stop_cluster_profiler_with_http_info(**kwargs) + return self.v1vm_port_forward_with_http_info(name, namespace, port, **kwargs) else: - (data) = self.v1stop_cluster_profiler_with_http_info(**kwargs) + (data) = self.v1vm_port_forward_with_http_info(name, namespace, port, **kwargs) return data - def v1stop_cluster_profiler_with_http_info(self, **kwargs): + def v1vm_port_forward_with_http_info(self, name, namespace, port, **kwargs): """ + Open a websocket connection forwarding traffic to the running VMI for the specified VirtualMachine and port. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1stop_cluster_profiler_with_http_info(callback=callback_function) + >>> thread = api.v1vm_port_forward_with_http_info(name, namespace, port, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str port: The target port for portforward on the VirtualMachineInstance. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace', 'port'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -15018,14 +17294,30 @@ def v1stop_cluster_profiler_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1stop_cluster_profiler" % key + " to method v1vm_port_forward" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1vm_port_forward`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1vm_port_forward`") + # verify the required parameter 'port' is set + if ('port' not in params) or (params['port'] is None): + raise ValueError("Missing the required parameter `port` when calling `v1vm_port_forward`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + if 'port' in params: + path_params['port'] = params['port'] query_params = [] @@ -15035,14 +17327,10 @@ def v1stop_cluster_profiler_with_http_info(self, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/stop-cluster-profiler', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}', 'GET', path_params, query_params, header_params, @@ -15057,53 +17345,57 @@ def v1stop_cluster_profiler_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1usbredir(self, name, namespace, **kwargs): + def v1vm_port_forward_with_protocol(self, name, namespace, port, protocol, **kwargs): """ - Open a websocket connection to connect to USB device on the specified VirtualMachineInstance. + Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachine and port. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1usbredir(name, namespace, callback=callback_function) + >>> thread = api.v1vm_port_forward_with_protocol(name, namespace, port, protocol, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str port: The target port for portforward on the VirtualMachineInstance. (required) + :param str protocol: The protocol for portforward on the VirtualMachineInstance. (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1usbredir_with_http_info(name, namespace, **kwargs) + return self.v1vm_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, **kwargs) else: - (data) = self.v1usbredir_with_http_info(name, namespace, **kwargs) + (data) = self.v1vm_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, **kwargs) return data - def v1usbredir_with_http_info(self, name, namespace, **kwargs): + def v1vm_port_forward_with_protocol_with_http_info(self, name, namespace, port, protocol, **kwargs): """ - Open a websocket connection to connect to USB device on the specified VirtualMachineInstance. + Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachine and port. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1usbredir_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1vm_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str port: The target port for portforward on the VirtualMachineInstance. (required) + :param str protocol: The protocol for portforward on the VirtualMachineInstance. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'port', 'protocol'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -15114,16 +17406,22 @@ def v1usbredir_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1usbredir" % key + " to method v1vm_port_forward_with_protocol" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1usbredir`") + raise ValueError("Missing the required parameter `name` when calling `v1vm_port_forward_with_protocol`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1usbredir`") + raise ValueError("Missing the required parameter `namespace` when calling `v1vm_port_forward_with_protocol`") + # verify the required parameter 'port' is set + if ('port' not in params) or (params['port'] is None): + raise ValueError("Missing the required parameter `port` when calling `v1vm_port_forward_with_protocol`") + # verify the required parameter 'protocol' is set + if ('protocol' not in params) or (params['protocol'] is None): + raise ValueError("Missing the required parameter `protocol` when calling `v1vm_port_forward_with_protocol`") collection_formats = {} @@ -15133,6 +17431,10 @@ def v1usbredir_with_http_info(self, name, namespace, **kwargs): path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] + if 'port' in params: + path_params['port'] = params['port'] + if 'protocol' in params: + path_params['protocol'] = params['protocol'] query_params = [] @@ -15145,7 +17447,7 @@ def v1usbredir_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp}', 'GET', path_params, query_params, header_params, @@ -15160,49 +17462,49 @@ def v1usbredir_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1vm_addvolume(self, name, namespace, body, **kwargs): + def v1vm_removevolume(self, name, namespace, body, **kwargs): """ - Add a volume and disk to a running Virtual Machine. + Removes a volume and disk from a running Virtual Machine. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vm_addvolume(name, namespace, body, callback=callback_function) + >>> thread = api.v1vm_removevolume(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1AddVolumeOptions body: (required) + :param V1RemoveVolumeOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1vm_addvolume_with_http_info(name, namespace, body, **kwargs) + return self.v1vm_removevolume_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1vm_addvolume_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1vm_removevolume_with_http_info(name, namespace, body, **kwargs) return data - def v1vm_addvolume_with_http_info(self, name, namespace, body, **kwargs): + def v1vm_removevolume_with_http_info(self, name, namespace, body, **kwargs): """ - Add a volume and disk to a running Virtual Machine. + Removes a volume and disk from a running Virtual Machine. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vm_addvolume_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1vm_removevolume_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1AddVolumeOptions body: (required) + :param V1RemoveVolumeOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. @@ -15219,19 +17521,19 @@ def v1vm_addvolume_with_http_info(self, name, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1vm_addvolume" % key + " to method v1vm_removevolume" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1vm_addvolume`") + raise ValueError("Missing the required parameter `name` when calling `v1vm_removevolume`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1vm_addvolume`") + raise ValueError("Missing the required parameter `namespace` when calling `v1vm_removevolume`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1vm_addvolume`") + raise ValueError("Missing the required parameter `body` when calling `v1vm_removevolume`") collection_formats = {} @@ -15255,7 +17557,7 @@ def v1vm_addvolume_with_http_info(self, name, namespace, body, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume', 'PUT', path_params, query_params, header_params, @@ -15270,55 +17572,55 @@ def v1vm_addvolume_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1vm_port_forward(self, name, namespace, port, **kwargs): + def v1vmi_addvolume(self, name, namespace, body, **kwargs): """ - Open a websocket connection forwarding traffic to the running VMI for the specified VirtualMachine and port. + Add a volume and disk to a running Virtual Machine Instance This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vm_port_forward(name, namespace, port, callback=callback_function) + >>> thread = api.v1vmi_addvolume(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str port: The target port for portforward on the VirtualMachineInstance. (required) - :return: None + :param V1AddVolumeOptions body: (required) + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1vm_port_forward_with_http_info(name, namespace, port, **kwargs) + return self.v1vmi_addvolume_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1vm_port_forward_with_http_info(name, namespace, port, **kwargs) + (data) = self.v1vmi_addvolume_with_http_info(name, namespace, body, **kwargs) return data - def v1vm_port_forward_with_http_info(self, name, namespace, port, **kwargs): + def v1vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): """ - Open a websocket connection forwarding traffic to the running VMI for the specified VirtualMachine and port. + Add a volume and disk to a running Virtual Machine Instance This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vm_port_forward_with_http_info(name, namespace, port, callback=callback_function) + >>> thread = api.v1vmi_addvolume_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str port: The target port for portforward on the VirtualMachineInstance. (required) - :return: None + :param V1AddVolumeOptions body: (required) + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'port'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -15329,19 +17631,19 @@ def v1vm_port_forward_with_http_info(self, name, namespace, port, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1vm_port_forward" % key + " to method v1vmi_addvolume" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1vm_port_forward`") + raise ValueError("Missing the required parameter `name` when calling `v1vmi_addvolume`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1vm_port_forward`") - # verify the required parameter 'port' is set - if ('port' not in params) or (params['port'] is None): - raise ValueError("Missing the required parameter `port` when calling `v1vm_port_forward`") + raise ValueError("Missing the required parameter `namespace` when calling `v1vmi_addvolume`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1vmi_addvolume`") collection_formats = {} @@ -15351,8 +17653,6 @@ def v1vm_port_forward_with_http_info(self, name, namespace, port, **kwargs): path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] - if 'port' in params: - path_params['port'] = params['port'] query_params = [] @@ -15362,17 +17662,19 @@ def v1vm_port_forward_with_http_info(self, name, namespace, port, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -15380,57 +17682,55 @@ def v1vm_port_forward_with_http_info(self, name, namespace, port, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1vm_port_forward_with_protocol(self, name, namespace, port, protocol, **kwargs): + def v1vmi_port_forward(self, name, namespace, port, **kwargs): """ - Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachine and port. + Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vm_port_forward_with_protocol(name, namespace, port, protocol, callback=callback_function) + >>> thread = api.v1vmi_port_forward(name, namespace, port, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str port: The target port for portforward on the VirtualMachineInstance. (required) - :param str protocol: The protocol for portforward on the VirtualMachineInstance. (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1vm_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, **kwargs) + return self.v1vmi_port_forward_with_http_info(name, namespace, port, **kwargs) else: - (data) = self.v1vm_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, **kwargs) + (data) = self.v1vmi_port_forward_with_http_info(name, namespace, port, **kwargs) return data - def v1vm_port_forward_with_protocol_with_http_info(self, name, namespace, port, protocol, **kwargs): + def v1vmi_port_forward_with_http_info(self, name, namespace, port, **kwargs): """ - Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachine and port. + Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vm_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, callback=callback_function) + >>> thread = api.v1vmi_port_forward_with_http_info(name, namespace, port, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str port: The target port for portforward on the VirtualMachineInstance. (required) - :param str protocol: The protocol for portforward on the VirtualMachineInstance. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'port', 'protocol'] + all_params = ['name', 'namespace', 'port'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -15441,22 +17741,19 @@ def v1vm_port_forward_with_protocol_with_http_info(self, name, namespace, port, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1vm_port_forward_with_protocol" % key + " to method v1vmi_port_forward" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1vm_port_forward_with_protocol`") + raise ValueError("Missing the required parameter `name` when calling `v1vmi_port_forward`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1vm_port_forward_with_protocol`") + raise ValueError("Missing the required parameter `namespace` when calling `v1vmi_port_forward`") # verify the required parameter 'port' is set if ('port' not in params) or (params['port'] is None): - raise ValueError("Missing the required parameter `port` when calling `v1vm_port_forward_with_protocol`") - # verify the required parameter 'protocol' is set - if ('protocol' not in params) or (params['protocol'] is None): - raise ValueError("Missing the required parameter `protocol` when calling `v1vm_port_forward_with_protocol`") + raise ValueError("Missing the required parameter `port` when calling `v1vmi_port_forward`") collection_formats = {} @@ -15468,8 +17765,6 @@ def v1vm_port_forward_with_protocol_with_http_info(self, name, namespace, port, path_params['namespace'] = params['namespace'] if 'port' in params: path_params['port'] = params['port'] - if 'protocol' in params: - path_params['protocol'] = params['protocol'] query_params = [] @@ -15482,7 +17777,7 @@ def v1vm_port_forward_with_protocol_with_http_info(self, name, namespace, port, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp}', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}', 'GET', path_params, query_params, header_params, @@ -15497,55 +17792,57 @@ def v1vm_port_forward_with_protocol_with_http_info(self, name, namespace, port, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1vm_removevolume(self, name, namespace, body, **kwargs): + def v1vmi_port_forward_with_protocol(self, name, namespace, port, protocol, **kwargs): """ - Removes a volume and disk from a running Virtual Machine. + Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachineInstance and port. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vm_removevolume(name, namespace, body, callback=callback_function) + >>> thread = api.v1vmi_port_forward_with_protocol(name, namespace, port, protocol, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RemoveVolumeOptions body: (required) - :return: str + :param str port: The target port for portforward on the VirtualMachineInstance. (required) + :param str protocol: The protocol for portforward on the VirtualMachineInstance. (required) + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1vm_removevolume_with_http_info(name, namespace, body, **kwargs) + return self.v1vmi_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, **kwargs) else: - (data) = self.v1vm_removevolume_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1vmi_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, **kwargs) return data - def v1vm_removevolume_with_http_info(self, name, namespace, body, **kwargs): + def v1vmi_port_forward_with_protocol_with_http_info(self, name, namespace, port, protocol, **kwargs): """ - Removes a volume and disk from a running Virtual Machine. + Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachineInstance and port. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vm_removevolume_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1vmi_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RemoveVolumeOptions body: (required) - :return: str + :param str port: The target port for portforward on the VirtualMachineInstance. (required) + :param str protocol: The protocol for portforward on the VirtualMachineInstance. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace', 'port', 'protocol'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -15556,19 +17853,22 @@ def v1vm_removevolume_with_http_info(self, name, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1vm_removevolume" % key + " to method v1vmi_port_forward_with_protocol" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1vm_removevolume`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1vm_removevolume`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1vm_removevolume`") + raise ValueError("Missing the required parameter `name` when calling `v1vmi_port_forward_with_protocol`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1vmi_port_forward_with_protocol`") + # verify the required parameter 'port' is set + if ('port' not in params) or (params['port'] is None): + raise ValueError("Missing the required parameter `port` when calling `v1vmi_port_forward_with_protocol`") + # verify the required parameter 'protocol' is set + if ('protocol' not in params) or (params['protocol'] is None): + raise ValueError("Missing the required parameter `protocol` when calling `v1vmi_port_forward_with_protocol`") collection_formats = {} @@ -15578,6 +17878,10 @@ def v1vm_removevolume_with_http_info(self, name, namespace, body, **kwargs): path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] + if 'port' in params: + path_params['port'] = params['port'] + if 'protocol' in params: + path_params['protocol'] = params['protocol'] query_params = [] @@ -15587,19 +17891,17 @@ def v1vm_removevolume_with_http_info(self, name, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -15607,49 +17909,49 @@ def v1vm_removevolume_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1vmi_addvolume(self, name, namespace, body, **kwargs): + def v1vmi_removevolume(self, name, namespace, body, **kwargs): """ - Add a volume and disk to a running Virtual Machine Instance + Removes a volume and disk from a running Virtual Machine Instance This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vmi_addvolume(name, namespace, body, callback=callback_function) + >>> thread = api.v1vmi_removevolume(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1AddVolumeOptions body: (required) + :param V1RemoveVolumeOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1vmi_addvolume_with_http_info(name, namespace, body, **kwargs) + return self.v1vmi_removevolume_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1vmi_addvolume_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1vmi_removevolume_with_http_info(name, namespace, body, **kwargs) return data - def v1vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): + def v1vmi_removevolume_with_http_info(self, name, namespace, body, **kwargs): """ - Add a volume and disk to a running Virtual Machine Instance + Removes a volume and disk from a running Virtual Machine Instance This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vmi_addvolume_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1vmi_removevolume_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1AddVolumeOptions body: (required) + :param V1RemoveVolumeOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. @@ -15666,19 +17968,19 @@ def v1vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1vmi_addvolume" % key + " to method v1vmi_removevolume" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1vmi_addvolume`") + raise ValueError("Missing the required parameter `name` when calling `v1vmi_removevolume`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1vmi_addvolume`") + raise ValueError("Missing the required parameter `namespace` when calling `v1vmi_removevolume`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1vmi_addvolume`") + raise ValueError("Missing the required parameter `body` when calling `v1vmi_removevolume`") collection_formats = {} @@ -15702,7 +18004,7 @@ def v1vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume', 'PUT', path_params, query_params, header_params, @@ -15717,55 +18019,65 @@ def v1vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1vmi_port_forward(self, name, namespace, port, **kwargs): + def watch_kube_virt_list_for_all_namespaces(self, **kwargs): """ - Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port. + Watch a KubeVirtList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vmi_port_forward(name, namespace, port, callback=callback_function) + >>> thread = api.watch_kube_virt_list_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str port: The target port for portforward on the VirtualMachineInstance. (required) - :return: None + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1vmi_port_forward_with_http_info(name, namespace, port, **kwargs) + return self.watch_kube_virt_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.v1vmi_port_forward_with_http_info(name, namespace, port, **kwargs) + (data) = self.watch_kube_virt_list_for_all_namespaces_with_http_info(**kwargs) return data - def v1vmi_port_forward_with_http_info(self, name, namespace, port, **kwargs): + def watch_kube_virt_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port. + Watch a KubeVirtList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vmi_port_forward_with_http_info(name, namespace, port, callback=callback_function) + >>> thread = api.watch_kube_virt_list_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str port: The target port for portforward on the VirtualMachineInstance. (required) - :return: None + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'port'] + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -15776,32 +18088,33 @@ def v1vmi_port_forward_with_http_info(self, name, namespace, port, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1vmi_port_forward" % key + " to method watch_kube_virt_list_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1vmi_port_forward`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1vmi_port_forward`") - # verify the required parameter 'port' is set - if ('port' not in params) or (params['port'] is None): - raise ValueError("Missing the required parameter `port` when calling `v1vmi_port_forward`") collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'port' in params: - path_params['port'] = params['port'] query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) header_params = {} @@ -15809,17 +18122,21 @@ def v1vmi_port_forward_with_http_info(self, name, namespace, port, **kwargs): local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/kubevirt', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -15827,57 +18144,67 @@ def v1vmi_port_forward_with_http_info(self, name, namespace, port, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1vmi_port_forward_with_protocol(self, name, namespace, port, protocol, **kwargs): + def watch_namespaced_kube_virt(self, namespace, **kwargs): """ - Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachineInstance and port. + Watch a KubeVirt object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vmi_port_forward_with_protocol(name, namespace, port, protocol, callback=callback_function) + >>> thread = api.watch_namespaced_kube_virt(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str port: The target port for portforward on the VirtualMachineInstance. (required) - :param str protocol: The protocol for portforward on the VirtualMachineInstance. (required) - :return: None + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1vmi_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, **kwargs) + return self.watch_namespaced_kube_virt_with_http_info(namespace, **kwargs) else: - (data) = self.v1vmi_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, **kwargs) + (data) = self.watch_namespaced_kube_virt_with_http_info(namespace, **kwargs) return data - def v1vmi_port_forward_with_protocol_with_http_info(self, name, namespace, port, protocol, **kwargs): + def watch_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): """ - Open a websocket connection forwarding traffic of the specified protocol (either tcp or udp) to the specified VirtualMachineInstance and port. + Watch a KubeVirt object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vmi_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, callback=callback_function) + >>> thread = api.watch_namespaced_kube_virt_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param str port: The target port for portforward on the VirtualMachineInstance. (required) - :param str protocol: The protocol for portforward on the VirtualMachineInstance. (required) - :return: None + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'port', 'protocol'] + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -15888,37 +18215,38 @@ def v1vmi_port_forward_with_protocol_with_http_info(self, name, namespace, port, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1vmi_port_forward_with_protocol" % key + " to method watch_namespaced_kube_virt" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1vmi_port_forward_with_protocol`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1vmi_port_forward_with_protocol`") - # verify the required parameter 'port' is set - if ('port' not in params) or (params['port'] is None): - raise ValueError("Missing the required parameter `port` when calling `v1vmi_port_forward_with_protocol`") - # verify the required parameter 'protocol' is set - if ('protocol' not in params) or (params['protocol'] is None): - raise ValueError("Missing the required parameter `protocol` when calling `v1vmi_port_forward_with_protocol`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_kube_virt`") collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] - if 'port' in params: - path_params['port'] = params['port'] - if 'protocol' in params: - path_params['protocol'] = params['protocol'] query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) header_params = {} @@ -15926,17 +18254,21 @@ def v1vmi_port_forward_with_protocol_with_http_info(self, name, namespace, port, local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -15944,55 +18276,67 @@ def v1vmi_port_forward_with_protocol_with_http_info(self, name, namespace, port, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1vmi_removevolume(self, name, namespace, body, **kwargs): + def watch_namespaced_virtual_machine(self, namespace, **kwargs): """ - Removes a volume and disk from a running Virtual Machine Instance + Watch a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vmi_removevolume(name, namespace, body, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RemoveVolumeOptions body: (required) - :return: str + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1vmi_removevolume_with_http_info(name, namespace, body, **kwargs) + return self.watch_namespaced_virtual_machine_with_http_info(namespace, **kwargs) else: - (data) = self.v1vmi_removevolume_with_http_info(name, namespace, body, **kwargs) + (data) = self.watch_namespaced_virtual_machine_with_http_info(namespace, **kwargs) return data - def v1vmi_removevolume_with_http_info(self, name, namespace, body, **kwargs): + def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): """ - Removes a volume and disk from a running Virtual Machine Instance + Watch a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1vmi_removevolume_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RemoveVolumeOptions body: (required) - :return: str + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -16003,30 +18347,38 @@ def v1vmi_removevolume_with_http_info(self, name, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1vmi_removevolume" % key + " to method watch_namespaced_virtual_machine" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1vmi_removevolume`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1vmi_removevolume`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1vmi_removevolume`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine`") collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] if 'namespace' in params: path_params['namespace'] = params['namespace'] query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) header_params = {} @@ -16034,19 +18386,21 @@ def v1vmi_removevolume_with_http_info(self, name, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -16054,19 +18408,20 @@ def v1vmi_removevolume_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_kube_virt_list_for_all_namespaces(self, **kwargs): + def watch_namespaced_virtual_machine_flavor(self, namespace, **kwargs): """ - Watch a KubeVirtList object. + Watch a VirtualMachineFlavor object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_kube_virt_list_for_all_namespaces(callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_flavor(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -16081,24 +18436,25 @@ def watch_kube_virt_list_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_kube_virt_list_for_all_namespaces_with_http_info(**kwargs) + return self.watch_namespaced_virtual_machine_flavor_with_http_info(namespace, **kwargs) else: - (data) = self.watch_kube_virt_list_for_all_namespaces_with_http_info(**kwargs) + (data) = self.watch_namespaced_virtual_machine_flavor_with_http_info(namespace, **kwargs) return data - def watch_kube_virt_list_for_all_namespaces_with_http_info(self, **kwargs): + def watch_namespaced_virtual_machine_flavor_with_http_info(self, namespace, **kwargs): """ - Watch a KubeVirtList object. + Watch a VirtualMachineFlavor object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_kube_virt_list_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_flavor_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -16112,7 +18468,7 @@ def watch_kube_virt_list_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -16123,15 +18479,20 @@ def watch_kube_virt_list_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_kube_virt_list_for_all_namespaces" % key + " to method watch_namespaced_virtual_machine_flavor" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_flavor`") collection_formats = {} path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -16164,7 +18525,7 @@ def watch_kube_virt_list_for_all_namespaces_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/watch/kubevirt', 'GET', + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors', 'GET', path_params, query_params, header_params, @@ -16179,16 +18540,16 @@ def watch_kube_virt_list_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_kube_virt(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_instance(self, namespace, **kwargs): """ - Watch a KubeVirt object. + Watch a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_kube_virt(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -16207,21 +18568,21 @@ def watch_namespaced_kube_virt(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_kube_virt_with_http_info(namespace, **kwargs) + return self.watch_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) else: - (data) = self.watch_namespaced_kube_virt_with_http_info(namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) return data - def watch_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_instance_with_http_info(self, namespace, **kwargs): """ - Watch a KubeVirt object. + Watch a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_kube_virt_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -16250,13 +18611,13 @@ def watch_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_kube_virt" % key + " to method watch_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_kube_virt`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance`") collection_formats = {} @@ -16296,7 +18657,7 @@ def watch_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'GET', path_params, query_params, header_params, @@ -16311,16 +18672,16 @@ def watch_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_instance_migration(self, namespace, **kwargs): """ - Watch a VirtualMachine object. + Watch a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance_migration(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -16339,21 +18700,21 @@ def watch_namespaced_virtual_machine(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + return self.watch_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) else: - (data) = self.watch_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) return data - def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_instance_migration_with_http_info(self, namespace, **kwargs): """ - Watch a VirtualMachine object. + Watch a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance_migration_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -16382,13 +18743,13 @@ def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_virtual_machine" % key + " to method watch_namespaced_virtual_machine_instance_migration" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_migration`") collection_formats = {} @@ -16428,7 +18789,7 @@ def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'GET', path_params, query_params, header_params, @@ -16443,16 +18804,16 @@ def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine_instance(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): """ - Watch a VirtualMachineInstance object. + Watch a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_instance(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance_preset(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -16471,21 +18832,21 @@ def watch_namespaced_virtual_machine_instance(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) + return self.watch_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) else: - (data) = self.watch_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) return data - def watch_namespaced_virtual_machine_instance_with_http_info(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namespace, **kwargs): """ - Watch a VirtualMachineInstance object. + Watch a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_instance_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance_preset_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -16514,13 +18875,13 @@ def watch_namespaced_virtual_machine_instance_with_http_info(self, namespace, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_virtual_machine_instance" % key + " to method watch_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_preset`") collection_formats = {} @@ -16560,7 +18921,7 @@ def watch_namespaced_virtual_machine_instance_with_http_info(self, namespace, ** # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'GET', path_params, query_params, header_params, @@ -16575,16 +18936,16 @@ def watch_namespaced_virtual_machine_instance_with_http_info(self, namespace, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine_instance_migration(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwargs): """ - Watch a VirtualMachineInstanceMigration object. + Watch a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_instance_migration(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance_replica_set(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -16603,21 +18964,21 @@ def watch_namespaced_virtual_machine_instance_migration(self, namespace, **kwarg """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) + return self.watch_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) else: - (data) = self.watch_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) return data - def watch_namespaced_virtual_machine_instance_migration_with_http_info(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, namespace, **kwargs): """ - Watch a VirtualMachineInstanceMigration object. + Watch a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_instance_migration_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -16646,13 +19007,13 @@ def watch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_virtual_machine_instance_migration" % key + " to method watch_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_replica_set`") collection_formats = {} @@ -16692,7 +19053,7 @@ def watch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, @@ -16707,16 +19068,16 @@ def watch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_restore(self, namespace, **kwargs): """ - Watch a VirtualMachineInstancePreset object. + Watch a VirtualMachineRestore object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_instance_preset(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_restore(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -16735,21 +19096,21 @@ def watch_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) + return self.watch_namespaced_virtual_machine_restore_with_http_info(namespace, **kwargs) else: - (data) = self.watch_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_restore_with_http_info(namespace, **kwargs) return data - def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_restore_with_http_info(self, namespace, **kwargs): """ - Watch a VirtualMachineInstancePreset object. + Watch a VirtualMachineRestore object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_instance_preset_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_restore_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -16778,13 +19139,13 @@ def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namesp if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_virtual_machine_instance_preset" % key + " to method watch_namespaced_virtual_machine_restore" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_restore`") collection_formats = {} @@ -16824,7 +19185,7 @@ def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores', 'GET', path_params, query_params, header_params, @@ -16839,16 +19200,16 @@ def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namesp _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_snapshot(self, namespace, **kwargs): """ - Watch a VirtualMachineInstanceReplicaSet object. + Watch a VirtualMachineSnapshot object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_instance_replica_set(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_snapshot(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -16867,21 +19228,21 @@ def watch_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwa """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) + return self.watch_namespaced_virtual_machine_snapshot_with_http_info(namespace, **kwargs) else: - (data) = self.watch_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_snapshot_with_http_info(namespace, **kwargs) return data - def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, **kwargs): """ - Watch a VirtualMachineInstanceReplicaSet object. + Watch a VirtualMachineSnapshot object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_snapshot_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -16910,13 +19271,13 @@ def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_virtual_machine_instance_replica_set" % key + " to method watch_namespaced_virtual_machine_snapshot" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_snapshot`") collection_formats = {} @@ -16956,7 +19317,7 @@ def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots', 'GET', path_params, query_params, header_params, @@ -16971,16 +19332,16 @@ def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine_restore(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_snapshot_content(self, namespace, **kwargs): """ - Watch a VirtualMachineRestore object. + Watch a VirtualMachineSnapshotContent object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_restore(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_snapshot_content(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -16999,21 +19360,21 @@ def watch_namespaced_virtual_machine_restore(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_restore_with_http_info(namespace, **kwargs) + return self.watch_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, **kwargs) else: - (data) = self.watch_namespaced_virtual_machine_restore_with_http_info(namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, **kwargs) return data - def watch_namespaced_virtual_machine_restore_with_http_info(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_snapshot_content_with_http_info(self, namespace, **kwargs): """ - Watch a VirtualMachineRestore object. + Watch a VirtualMachineSnapshotContent object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_restore_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -17042,13 +19403,13 @@ def watch_namespaced_virtual_machine_restore_with_http_info(self, namespace, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_virtual_machine_restore" % key + " to method watch_namespaced_virtual_machine_snapshot_content" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_restore`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_snapshot_content`") collection_formats = {} @@ -17088,7 +19449,7 @@ def watch_namespaced_virtual_machine_restore_with_http_info(self, namespace, **k # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents', 'GET', path_params, query_params, header_params, @@ -17103,20 +19464,19 @@ def watch_namespaced_virtual_machine_restore_with_http_info(self, namespace, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine_snapshot(self, namespace, **kwargs): + def watch_virtual_machine_cluster_flavor_list_for_all_namespaces(self, **kwargs): """ - Watch a VirtualMachineSnapshot object. + Watch a VirtualMachineClusterFlavorList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_snapshot(namespace, callback=callback_function) + >>> thread = api.watch_virtual_machine_cluster_flavor_list_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -17131,25 +19491,24 @@ def watch_namespaced_virtual_machine_snapshot(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_snapshot_with_http_info(namespace, **kwargs) + return self.watch_virtual_machine_cluster_flavor_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.watch_namespaced_virtual_machine_snapshot_with_http_info(namespace, **kwargs) + (data) = self.watch_virtual_machine_cluster_flavor_list_for_all_namespaces_with_http_info(**kwargs) return data - def watch_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, **kwargs): + def watch_virtual_machine_cluster_flavor_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Watch a VirtualMachineSnapshot object. + Watch a VirtualMachineClusterFlavorList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_snapshot_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_virtual_machine_cluster_flavor_list_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -17163,7 +19522,7 @@ def watch_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, ** returns the request thread. """ - all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -17174,20 +19533,15 @@ def watch_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_virtual_machine_snapshot" % key + " to method watch_virtual_machine_cluster_flavor_list_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_snapshot`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -17220,7 +19574,7 @@ def watch_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, ** # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots', 'GET', + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineclusterflavors', 'GET', path_params, query_params, header_params, @@ -17235,20 +19589,19 @@ def watch_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine_snapshot_content(self, namespace, **kwargs): + def watch_virtual_machine_flavor_list_for_all_namespaces(self, **kwargs): """ - Watch a VirtualMachineSnapshotContent object. + Watch a VirtualMachineFlavorList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_snapshot_content(namespace, callback=callback_function) + >>> thread = api.watch_virtual_machine_flavor_list_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -17263,25 +19616,24 @@ def watch_namespaced_virtual_machine_snapshot_content(self, namespace, **kwargs) """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, **kwargs) + return self.watch_virtual_machine_flavor_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.watch_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, **kwargs) + (data) = self.watch_virtual_machine_flavor_list_for_all_namespaces_with_http_info(**kwargs) return data - def watch_namespaced_virtual_machine_snapshot_content_with_http_info(self, namespace, **kwargs): + def watch_virtual_machine_flavor_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Watch a VirtualMachineSnapshotContent object. + Watch a VirtualMachineFlavorList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_virtual_machine_flavor_list_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -17295,7 +19647,7 @@ def watch_namespaced_virtual_machine_snapshot_content_with_http_info(self, names returns the request thread. """ - all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -17306,20 +19658,15 @@ def watch_namespaced_virtual_machine_snapshot_content_with_http_info(self, names if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_virtual_machine_snapshot_content" % key + " to method watch_virtual_machine_flavor_list_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_snapshot_content`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -17352,7 +19699,7 @@ def watch_namespaced_virtual_machine_snapshot_content_with_http_info(self, names # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents', 'GET', + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineflavors', 'GET', path_params, query_params, header_params, diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 360dc45f..c6ad2700 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.46.0-rc.0-75-gd64731bde".\ + "SDK Package Version: v0.46.0-134-gbbbcd3a73".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index e4c98e9a..d8965714 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -115,6 +115,7 @@ from .v1_filesystem_virtiofs import V1FilesystemVirtiofs from .v1_firmware import V1Firmware from .v1_flags import V1Flags +from .v1_flavor_matcher import V1FlavorMatcher from .v1_floppy_target import V1FloppyTarget from .v1_gpu import V1GPU from .v1_generation_status import V1GenerationStatus @@ -239,6 +240,11 @@ from .v1alpha1_error import V1alpha1Error from .v1alpha1_persistent_volume_claim import V1alpha1PersistentVolumeClaim from .v1alpha1_source_spec import V1alpha1SourceSpec +from .v1alpha1_virtual_machine_cluster_flavor import V1alpha1VirtualMachineClusterFlavor +from .v1alpha1_virtual_machine_cluster_flavor_list import V1alpha1VirtualMachineClusterFlavorList +from .v1alpha1_virtual_machine_flavor import V1alpha1VirtualMachineFlavor +from .v1alpha1_virtual_machine_flavor_list import V1alpha1VirtualMachineFlavorList +from .v1alpha1_virtual_machine_flavor_profile import V1alpha1VirtualMachineFlavorProfile from .v1alpha1_virtual_machine_restore import V1alpha1VirtualMachineRestore from .v1alpha1_virtual_machine_restore_list import V1alpha1VirtualMachineRestoreList from .v1alpha1_virtual_machine_restore_spec import V1alpha1VirtualMachineRestoreSpec diff --git a/kubevirt/models/v1_flavor_matcher.py b/kubevirt/models/v1_flavor_matcher.py new file mode 100644 index 00000000..7c29acfc --- /dev/null +++ b/kubevirt/models/v1_flavor_matcher.py @@ -0,0 +1,182 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1FlavorMatcher(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'kind': 'str', + 'name': 'str', + 'profile': 'str' + } + + attribute_map = { + 'kind': 'kind', + 'name': 'name', + 'profile': 'profile' + } + + def __init__(self, kind=None, name=None, profile=None): + """ + V1FlavorMatcher - a model defined in Swagger + """ + + self._kind = None + self._name = None + self._profile = None + + if kind is not None: + self.kind = kind + self.name = name + if profile is not None: + self.profile = profile + + @property + def kind(self): + """ + Gets the kind of this V1FlavorMatcher. + Kind specifies which flavor resource is referenced. Allowed values are: \"VirtualMachineFlavor\" and \"VirtualMachineClusterFlavor\". If not specified, \"VirtualMachineClusterFlavor\" is used by default. + + :return: The kind of this V1FlavorMatcher. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1FlavorMatcher. + Kind specifies which flavor resource is referenced. Allowed values are: \"VirtualMachineFlavor\" and \"VirtualMachineClusterFlavor\". If not specified, \"VirtualMachineClusterFlavor\" is used by default. + + :param kind: The kind of this V1FlavorMatcher. + :type: str + """ + + self._kind = kind + + @property + def name(self): + """ + Gets the name of this V1FlavorMatcher. + Name is the name of the VirtualMachineFlavor or VirtualMachineClusterFlavor + + :return: The name of this V1FlavorMatcher. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1FlavorMatcher. + Name is the name of the VirtualMachineFlavor or VirtualMachineClusterFlavor + + :param name: The name of this V1FlavorMatcher. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def profile(self): + """ + Gets the profile of this V1FlavorMatcher. + Profile is the name of a custom profile in the flavor. If left empty, the default profile is used. + + :return: The profile of this V1FlavorMatcher. + :rtype: str + """ + return self._profile + + @profile.setter + def profile(self, profile): + """ + Sets the profile of this V1FlavorMatcher. + Profile is the name of a custom profile in the flavor. If left empty, the default profile is used. + + :param profile: The profile of this V1FlavorMatcher. + :type: str + """ + + self._profile = profile + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1FlavorMatcher): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_spec.py b/kubevirt/models/v1_virtual_machine_spec.py index ce490e1f..80b66f21 100644 --- a/kubevirt/models/v1_virtual_machine_spec.py +++ b/kubevirt/models/v1_virtual_machine_spec.py @@ -32,6 +32,7 @@ class V1VirtualMachineSpec(object): """ swagger_types = { 'data_volume_templates': 'list[V1DataVolumeTemplateSpec]', + 'flavor': 'V1FlavorMatcher', 'run_strategy': 'str', 'running': 'bool', 'template': 'V1VirtualMachineInstanceTemplateSpec' @@ -39,23 +40,27 @@ class V1VirtualMachineSpec(object): attribute_map = { 'data_volume_templates': 'dataVolumeTemplates', + 'flavor': 'flavor', 'run_strategy': 'runStrategy', 'running': 'running', 'template': 'template' } - def __init__(self, data_volume_templates=None, run_strategy=None, running=None, template=None): + def __init__(self, data_volume_templates=None, flavor=None, run_strategy=None, running=None, template=None): """ V1VirtualMachineSpec - a model defined in Swagger """ self._data_volume_templates = None + self._flavor = None self._run_strategy = None self._running = None self._template = None if data_volume_templates is not None: self.data_volume_templates = data_volume_templates + if flavor is not None: + self.flavor = flavor if run_strategy is not None: self.run_strategy = run_strategy if running is not None: @@ -85,6 +90,29 @@ def data_volume_templates(self, data_volume_templates): self._data_volume_templates = data_volume_templates + @property + def flavor(self): + """ + Gets the flavor of this V1VirtualMachineSpec. + FlavorMatcher references a flavor that is used to fill fields in Template + + :return: The flavor of this V1VirtualMachineSpec. + :rtype: V1FlavorMatcher + """ + return self._flavor + + @flavor.setter + def flavor(self, flavor): + """ + Sets the flavor of this V1VirtualMachineSpec. + FlavorMatcher references a flavor that is used to fill fields in Template + + :param flavor: The flavor of this V1VirtualMachineSpec. + :type: V1FlavorMatcher + """ + + self._flavor = flavor + @property def run_strategy(self): """ diff --git a/kubevirt/models/v1alpha1_virtual_machine_cluster_flavor.py b/kubevirt/models/v1alpha1_virtual_machine_cluster_flavor.py new file mode 100644 index 00000000..5028786c --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_cluster_flavor.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineClusterFlavor(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', + 'profiles': 'list[V1alpha1VirtualMachineFlavorProfile]' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'profiles': 'profiles' + } + + def __init__(self, api_version=None, kind=None, metadata=None, profiles=None): + """ + V1alpha1VirtualMachineClusterFlavor - a model defined in Swagger + """ + + self._api_version = None + self._kind = None + self._metadata = None + self._profiles = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + self.profiles = profiles + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1VirtualMachineClusterFlavor. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1alpha1VirtualMachineClusterFlavor. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1VirtualMachineClusterFlavor. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1VirtualMachineClusterFlavor. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1alpha1VirtualMachineClusterFlavor. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1VirtualMachineClusterFlavor. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1VirtualMachineClusterFlavor. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1VirtualMachineClusterFlavor. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1VirtualMachineClusterFlavor. + + :return: The metadata of this V1alpha1VirtualMachineClusterFlavor. + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1VirtualMachineClusterFlavor. + + :param metadata: The metadata of this V1alpha1VirtualMachineClusterFlavor. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + + self._metadata = metadata + + @property + def profiles(self): + """ + Gets the profiles of this V1alpha1VirtualMachineClusterFlavor. + + :return: The profiles of this V1alpha1VirtualMachineClusterFlavor. + :rtype: list[V1alpha1VirtualMachineFlavorProfile] + """ + return self._profiles + + @profiles.setter + def profiles(self, profiles): + """ + Sets the profiles of this V1alpha1VirtualMachineClusterFlavor. + + :param profiles: The profiles of this V1alpha1VirtualMachineClusterFlavor. + :type: list[V1alpha1VirtualMachineFlavorProfile] + """ + if profiles is None: + raise ValueError("Invalid value for `profiles`, must not be `None`") + + self._profiles = profiles + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineClusterFlavor): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_cluster_flavor_list.py b/kubevirt/models/v1alpha1_virtual_machine_cluster_flavor_list.py new file mode 100644 index 00000000..921b6f5d --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_cluster_flavor_list.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineClusterFlavorList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'items': 'list[V1alpha1VirtualMachineClusterFlavor]', + 'kind': 'str', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1alpha1VirtualMachineClusterFlavorList - a model defined in Swagger + """ + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1VirtualMachineClusterFlavorList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1alpha1VirtualMachineClusterFlavorList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1VirtualMachineClusterFlavorList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1VirtualMachineClusterFlavorList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1alpha1VirtualMachineClusterFlavorList. + + :return: The items of this V1alpha1VirtualMachineClusterFlavorList. + :rtype: list[V1alpha1VirtualMachineClusterFlavor] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1alpha1VirtualMachineClusterFlavorList. + + :param items: The items of this V1alpha1VirtualMachineClusterFlavorList. + :type: list[V1alpha1VirtualMachineClusterFlavor] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1alpha1VirtualMachineClusterFlavorList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1VirtualMachineClusterFlavorList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1VirtualMachineClusterFlavorList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1VirtualMachineClusterFlavorList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1VirtualMachineClusterFlavorList. + + :return: The metadata of this V1alpha1VirtualMachineClusterFlavorList. + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1VirtualMachineClusterFlavorList. + + :param metadata: The metadata of this V1alpha1VirtualMachineClusterFlavorList. + :type: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineClusterFlavorList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_flavor.py b/kubevirt/models/v1alpha1_virtual_machine_flavor.py new file mode 100644 index 00000000..7ffa54d6 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_flavor.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineFlavor(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', + 'profiles': 'list[V1alpha1VirtualMachineFlavorProfile]' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'profiles': 'profiles' + } + + def __init__(self, api_version=None, kind=None, metadata=None, profiles=None): + """ + V1alpha1VirtualMachineFlavor - a model defined in Swagger + """ + + self._api_version = None + self._kind = None + self._metadata = None + self._profiles = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + self.profiles = profiles + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1VirtualMachineFlavor. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1alpha1VirtualMachineFlavor. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1VirtualMachineFlavor. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1VirtualMachineFlavor. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1alpha1VirtualMachineFlavor. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1VirtualMachineFlavor. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1VirtualMachineFlavor. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1VirtualMachineFlavor. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1VirtualMachineFlavor. + + :return: The metadata of this V1alpha1VirtualMachineFlavor. + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1VirtualMachineFlavor. + + :param metadata: The metadata of this V1alpha1VirtualMachineFlavor. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + + self._metadata = metadata + + @property + def profiles(self): + """ + Gets the profiles of this V1alpha1VirtualMachineFlavor. + + :return: The profiles of this V1alpha1VirtualMachineFlavor. + :rtype: list[V1alpha1VirtualMachineFlavorProfile] + """ + return self._profiles + + @profiles.setter + def profiles(self, profiles): + """ + Sets the profiles of this V1alpha1VirtualMachineFlavor. + + :param profiles: The profiles of this V1alpha1VirtualMachineFlavor. + :type: list[V1alpha1VirtualMachineFlavorProfile] + """ + if profiles is None: + raise ValueError("Invalid value for `profiles`, must not be `None`") + + self._profiles = profiles + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineFlavor): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_flavor_list.py b/kubevirt/models/v1alpha1_virtual_machine_flavor_list.py new file mode 100644 index 00000000..8a22bfb1 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_flavor_list.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineFlavorList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'items': 'list[V1alpha1VirtualMachineFlavor]', + 'kind': 'str', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1alpha1VirtualMachineFlavorList - a model defined in Swagger + """ + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1VirtualMachineFlavorList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1alpha1VirtualMachineFlavorList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1VirtualMachineFlavorList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1VirtualMachineFlavorList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1alpha1VirtualMachineFlavorList. + + :return: The items of this V1alpha1VirtualMachineFlavorList. + :rtype: list[V1alpha1VirtualMachineFlavor] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1alpha1VirtualMachineFlavorList. + + :param items: The items of this V1alpha1VirtualMachineFlavorList. + :type: list[V1alpha1VirtualMachineFlavor] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1alpha1VirtualMachineFlavorList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1VirtualMachineFlavorList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1VirtualMachineFlavorList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1VirtualMachineFlavorList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1VirtualMachineFlavorList. + + :return: The metadata of this V1alpha1VirtualMachineFlavorList. + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1VirtualMachineFlavorList. + + :param metadata: The metadata of this V1alpha1VirtualMachineFlavorList. + :type: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineFlavorList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_flavor_profile.py b/kubevirt/models/v1alpha1_virtual_machine_flavor_profile.py new file mode 100644 index 00000000..a68b14e5 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_flavor_profile.py @@ -0,0 +1,180 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineFlavorProfile(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'cpu': 'V1CPU', + 'default': 'bool', + 'name': 'str' + } + + attribute_map = { + 'cpu': 'cpu', + 'default': 'default', + 'name': 'name' + } + + def __init__(self, cpu=None, default=None, name=None): + """ + V1alpha1VirtualMachineFlavorProfile - a model defined in Swagger + """ + + self._cpu = None + self._default = None + self._name = None + + if cpu is not None: + self.cpu = cpu + if default is not None: + self.default = default + self.name = name + + @property + def cpu(self): + """ + Gets the cpu of this V1alpha1VirtualMachineFlavorProfile. + + :return: The cpu of this V1alpha1VirtualMachineFlavorProfile. + :rtype: V1CPU + """ + return self._cpu + + @cpu.setter + def cpu(self, cpu): + """ + Sets the cpu of this V1alpha1VirtualMachineFlavorProfile. + + :param cpu: The cpu of this V1alpha1VirtualMachineFlavorProfile. + :type: V1CPU + """ + + self._cpu = cpu + + @property + def default(self): + """ + Gets the default of this V1alpha1VirtualMachineFlavorProfile. + Default specifies if this VirtualMachineFlavorProfile is the default for the VirtualMachineFlavor. Zero or one profile can be set to default. + + :return: The default of this V1alpha1VirtualMachineFlavorProfile. + :rtype: bool + """ + return self._default + + @default.setter + def default(self, default): + """ + Sets the default of this V1alpha1VirtualMachineFlavorProfile. + Default specifies if this VirtualMachineFlavorProfile is the default for the VirtualMachineFlavor. Zero or one profile can be set to default. + + :param default: The default of this V1alpha1VirtualMachineFlavorProfile. + :type: bool + """ + + self._default = default + + @property + def name(self): + """ + Gets the name of this V1alpha1VirtualMachineFlavorProfile. + Name specifies the name of this custom profile. + + :return: The name of this V1alpha1VirtualMachineFlavorProfile. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1alpha1VirtualMachineFlavorProfile. + Name specifies the name of this custom profile. + + :param name: The name of this V1alpha1VirtualMachineFlavorProfile. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineFlavorProfile): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 822e1618..6e5834f8 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.46.0-rc.0-75-gd64731bde" +VERSION = "v0.46.0-134-gbbbcd3a73" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 0baf0673..1d19385f 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.46.0-rc.0-75-gd64731bde" +"packageVersion": "v0.46.0-134-gbbbcd3a73" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 9711c517..e7615c62 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -44,6 +44,14 @@ def test_create_namespaced_virtual_machine(self): Test case for create_namespaced_virtual_machine + """ + pass + + def test_create_namespaced_virtual_machine_flavor(self): + """ + Test case for create_namespaced_virtual_machine_flavor + + """ pass @@ -100,6 +108,14 @@ def test_create_namespaced_virtual_machine_snapshot_content(self): Test case for create_namespaced_virtual_machine_snapshot_content + """ + pass + + def test_create_virtual_machine_cluster_flavor(self): + """ + Test case for create_virtual_machine_cluster_flavor + + """ pass @@ -116,6 +132,14 @@ def test_delete_collection_namespaced_virtual_machine(self): Test case for delete_collection_namespaced_virtual_machine + """ + pass + + def test_delete_collection_namespaced_virtual_machine_flavor(self): + """ + Test case for delete_collection_namespaced_virtual_machine_flavor + + """ pass @@ -172,6 +196,14 @@ def test_delete_collection_namespaced_virtual_machine_snapshot_content(self): Test case for delete_collection_namespaced_virtual_machine_snapshot_content + """ + pass + + def test_delete_collection_virtual_machine_cluster_flavor(self): + """ + Test case for delete_collection_virtual_machine_cluster_flavor + + """ pass @@ -188,6 +220,14 @@ def test_delete_namespaced_virtual_machine(self): Test case for delete_namespaced_virtual_machine + """ + pass + + def test_delete_namespaced_virtual_machine_flavor(self): + """ + Test case for delete_namespaced_virtual_machine_flavor + + """ pass @@ -244,6 +284,14 @@ def test_delete_namespaced_virtual_machine_snapshot_content(self): Test case for delete_namespaced_virtual_machine_snapshot_content + """ + pass + + def test_delete_virtual_machine_cluster_flavor(self): + """ + Test case for delete_virtual_machine_cluster_flavor + + """ pass @@ -260,6 +308,14 @@ def test_func7(self): Test case for func7 + """ + pass + + def test_get_api_group_flavor_kubevirt_io(self): + """ + Test case for get_api_group_flavor_kubevirt_io + + """ pass @@ -284,6 +340,14 @@ def test_get_api_group_snapshot_kubevirt_io(self): Test case for get_api_group_snapshot_kubevirt_io + """ + pass + + def test_get_api_resources_flavor_kubevirt_io_v1alpha1(self): + """ + Test case for get_api_resources_flavor_kubevirt_io_v1alpha1 + + """ pass @@ -356,6 +420,14 @@ def test_list_namespaced_virtual_machine(self): Test case for list_namespaced_virtual_machine + """ + pass + + def test_list_namespaced_virtual_machine_flavor(self): + """ + Test case for list_namespaced_virtual_machine_flavor + + """ pass @@ -412,6 +484,22 @@ def test_list_namespaced_virtual_machine_snapshot_content(self): Test case for list_namespaced_virtual_machine_snapshot_content + """ + pass + + def test_list_virtual_machine_cluster_flavor(self): + """ + Test case for list_virtual_machine_cluster_flavor + + + """ + pass + + def test_list_virtual_machine_flavor_for_all_namespaces(self): + """ + Test case for list_virtual_machine_flavor_for_all_namespaces + + """ pass @@ -492,6 +580,14 @@ def test_patch_namespaced_virtual_machine(self): Test case for patch_namespaced_virtual_machine + """ + pass + + def test_patch_namespaced_virtual_machine_flavor(self): + """ + Test case for patch_namespaced_virtual_machine_flavor + + """ pass @@ -548,6 +644,14 @@ def test_patch_namespaced_virtual_machine_snapshot_content(self): Test case for patch_namespaced_virtual_machine_snapshot_content + """ + pass + + def test_patch_virtual_machine_cluster_flavor(self): + """ + Test case for patch_virtual_machine_cluster_flavor + + """ pass @@ -564,6 +668,14 @@ def test_read_namespaced_virtual_machine(self): Test case for read_namespaced_virtual_machine + """ + pass + + def test_read_namespaced_virtual_machine_flavor(self): + """ + Test case for read_namespaced_virtual_machine_flavor + + """ pass @@ -620,6 +732,14 @@ def test_read_namespaced_virtual_machine_snapshot_content(self): Test case for read_namespaced_virtual_machine_snapshot_content + """ + pass + + def test_read_virtual_machine_cluster_flavor(self): + """ + Test case for read_virtual_machine_cluster_flavor + + """ pass @@ -636,6 +756,14 @@ def test_replace_namespaced_virtual_machine(self): Test case for replace_namespaced_virtual_machine + """ + pass + + def test_replace_namespaced_virtual_machine_flavor(self): + """ + Test case for replace_namespaced_virtual_machine_flavor + + """ pass @@ -692,6 +820,14 @@ def test_replace_namespaced_virtual_machine_snapshot_content(self): Test case for replace_namespaced_virtual_machine_snapshot_content + """ + pass + + def test_replace_virtual_machine_cluster_flavor(self): + """ + Test case for replace_virtual_machine_cluster_flavor + + """ pass @@ -1204,6 +1340,14 @@ def test_watch_namespaced_virtual_machine(self): Test case for watch_namespaced_virtual_machine + """ + pass + + def test_watch_namespaced_virtual_machine_flavor(self): + """ + Test case for watch_namespaced_virtual_machine_flavor + + """ pass @@ -1260,6 +1404,22 @@ def test_watch_namespaced_virtual_machine_snapshot_content(self): Test case for watch_namespaced_virtual_machine_snapshot_content + """ + pass + + def test_watch_virtual_machine_cluster_flavor_list_for_all_namespaces(self): + """ + Test case for watch_virtual_machine_cluster_flavor_list_for_all_namespaces + + + """ + pass + + def test_watch_virtual_machine_flavor_list_for_all_namespaces(self): + """ + Test case for watch_virtual_machine_flavor_list_for_all_namespaces + + """ pass diff --git a/test/test_v1_flavor_matcher.py b/test/test_v1_flavor_matcher.py new file mode 100644 index 00000000..e2aa4985 --- /dev/null +++ b/test/test_v1_flavor_matcher.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_flavor_matcher import V1FlavorMatcher + + +class TestV1FlavorMatcher(unittest.TestCase): + """ V1FlavorMatcher unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1FlavorMatcher(self): + """ + Test V1FlavorMatcher + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_flavor_matcher.V1FlavorMatcher() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_cluster_flavor.py b/test/test_v1alpha1_virtual_machine_cluster_flavor.py new file mode 100644 index 00000000..f5d44191 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_cluster_flavor.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_cluster_flavor import V1alpha1VirtualMachineClusterFlavor + + +class TestV1alpha1VirtualMachineClusterFlavor(unittest.TestCase): + """ V1alpha1VirtualMachineClusterFlavor unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineClusterFlavor(self): + """ + Test V1alpha1VirtualMachineClusterFlavor + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_cluster_flavor.V1alpha1VirtualMachineClusterFlavor() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_cluster_flavor_list.py b/test/test_v1alpha1_virtual_machine_cluster_flavor_list.py new file mode 100644 index 00000000..903a4319 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_cluster_flavor_list.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_cluster_flavor_list import V1alpha1VirtualMachineClusterFlavorList + + +class TestV1alpha1VirtualMachineClusterFlavorList(unittest.TestCase): + """ V1alpha1VirtualMachineClusterFlavorList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineClusterFlavorList(self): + """ + Test V1alpha1VirtualMachineClusterFlavorList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_cluster_flavor_list.V1alpha1VirtualMachineClusterFlavorList() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_flavor.py b/test/test_v1alpha1_virtual_machine_flavor.py new file mode 100644 index 00000000..b97f2652 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_flavor.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_flavor import V1alpha1VirtualMachineFlavor + + +class TestV1alpha1VirtualMachineFlavor(unittest.TestCase): + """ V1alpha1VirtualMachineFlavor unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineFlavor(self): + """ + Test V1alpha1VirtualMachineFlavor + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_flavor.V1alpha1VirtualMachineFlavor() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_flavor_list.py b/test/test_v1alpha1_virtual_machine_flavor_list.py new file mode 100644 index 00000000..f95626a1 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_flavor_list.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_flavor_list import V1alpha1VirtualMachineFlavorList + + +class TestV1alpha1VirtualMachineFlavorList(unittest.TestCase): + """ V1alpha1VirtualMachineFlavorList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineFlavorList(self): + """ + Test V1alpha1VirtualMachineFlavorList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_flavor_list.V1alpha1VirtualMachineFlavorList() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_flavor_profile.py b/test/test_v1alpha1_virtual_machine_flavor_profile.py new file mode 100644 index 00000000..9802abf5 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_flavor_profile.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_flavor_profile import V1alpha1VirtualMachineFlavorProfile + + +class TestV1alpha1VirtualMachineFlavorProfile(unittest.TestCase): + """ V1alpha1VirtualMachineFlavorProfile unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineFlavorProfile(self): + """ + Test V1alpha1VirtualMachineFlavorProfile + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_flavor_profile.V1alpha1VirtualMachineFlavorProfile() + pass + + +if __name__ == '__main__': + unittest.main() From e2c41c7b5f67bbdda4a570a1ba2c295a0bd47918 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 28 Oct 2021 18:49:06 +0000 Subject: [PATCH 232/521] Client Python update by KubeVirt Prow build 1453788792790978560 --- README.md | 3 +- docs/DefaultApi.md | 12 +- docs/V1FreezeUnfreezeTimeout.md | 10 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 42 ++++-- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_freeze_unfreeze_timeout.py | 124 ++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_freeze_unfreeze_timeout.py | 44 +++++++ 14 files changed, 226 insertions(+), 24 deletions(-) create mode 100644 docs/V1FreezeUnfreezeTimeout.md create mode 100644 kubevirt/models/v1_freeze_unfreeze_timeout.py create mode 100644 test/test_v1_freeze_unfreeze_timeout.py diff --git a/README.md b/README.md index 3e6e9025..48a0313f 100644 --- a/README.md +++ b/README.md @@ -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: v0.46.0-134-gbbbcd3a73 +- Package version: v0.46.0-285-ge1582c972 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -359,6 +359,7 @@ Class | Method | HTTP request | Description - [V1Flags](docs/V1Flags.md) - [V1FlavorMatcher](docs/V1FlavorMatcher.md) - [V1FloppyTarget](docs/V1FloppyTarget.md) + - [V1FreezeUnfreezeTimeout](docs/V1FreezeUnfreezeTimeout.md) - [V1GPU](docs/V1GPU.md) - [V1GenerationStatus](docs/V1GenerationStatus.md) - [V1GuestAgentCommandInfo](docs/V1GuestAgentCommandInfo.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index f22bc7f1..7d37ec50 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -5708,7 +5708,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1_freeze** -> str v1_freeze(name, namespace) +> str v1_freeze(name, namespace, body) @@ -5726,9 +5726,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1FreezeUnfreezeTimeout() # V1FreezeUnfreezeTimeout | try: - api_response = api_instance.v1_freeze(name, namespace) + api_response = api_instance.v1_freeze(name, namespace, body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->v1_freeze: %s\n" % e) @@ -5740,6 +5741,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1FreezeUnfreezeTimeout**](V1FreezeUnfreezeTimeout.md)| | ### Return type @@ -6507,7 +6509,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1alpha3_freeze** -> str v1alpha3_freeze(name, namespace) +> str v1alpha3_freeze(name, namespace, body) @@ -6525,9 +6527,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1FreezeUnfreezeTimeout() # V1FreezeUnfreezeTimeout | try: - api_response = api_instance.v1alpha3_freeze(name, namespace) + api_response = api_instance.v1alpha3_freeze(name, namespace, body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->v1alpha3_freeze: %s\n" % e) @@ -6539,6 +6542,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1FreezeUnfreezeTimeout**](V1FreezeUnfreezeTimeout.md)| | ### Return type diff --git a/docs/V1FreezeUnfreezeTimeout.md b/docs/V1FreezeUnfreezeTimeout.md new file mode 100644 index 00000000..da670e13 --- /dev/null +++ b/docs/V1FreezeUnfreezeTimeout.md @@ -0,0 +1,10 @@ +# V1FreezeUnfreezeTimeout + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**unfreeze_timeout** | [**K8sIoApimachineryPkgApisMetaV1Duration**](K8sIoApimachineryPkgApisMetaV1Duration.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 52b14edf..5900dcaf 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.46.0-134-gbbbcd3a73" + release_note="Auto-generated client v0.46.0-285-ge1582c972" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 9c3c4b5a..85ad0b26 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -328,6 +328,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_floppy_target.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_floppy_target.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1FloppyTarget.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_freeze_unfreeze_timeout.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_freeze_unfreeze_timeout.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1FreezeUnfreezeTimeout.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_gpu.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_gpu.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1GPU.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 49e98311..ac4effe4 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -117,6 +117,7 @@ from .models.v1_flags import V1Flags from .models.v1_flavor_matcher import V1FlavorMatcher from .models.v1_floppy_target import V1FloppyTarget +from .models.v1_freeze_unfreeze_timeout import V1FreezeUnfreezeTimeout from .models.v1_gpu import V1GPU from .models.v1_generation_status import V1GenerationStatus from .models.v1_guest_agent_command_info import V1GuestAgentCommandInfo diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 945211f8..6925a4e2 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.46.0-134-gbbbcd3a73/python' + self.user_agent = 'Swagger-Codegen/v0.46.0-285-ge1582c972/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 4589ac4f..5ff1ec44 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -12064,7 +12064,7 @@ def v1_filesystemlist_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_freeze(self, name, namespace, **kwargs): + def v1_freeze(self, name, namespace, body, **kwargs): """ Freeze a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an @@ -12073,24 +12073,25 @@ def v1_freeze(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_freeze(name, namespace, callback=callback_function) + >>> thread = api.v1_freeze(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1FreezeUnfreezeTimeout body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_freeze_with_http_info(name, namespace, **kwargs) + return self.v1_freeze_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1_freeze_with_http_info(name, namespace, **kwargs) + (data) = self.v1_freeze_with_http_info(name, namespace, body, **kwargs) return data - def v1_freeze_with_http_info(self, name, namespace, **kwargs): + def v1_freeze_with_http_info(self, name, namespace, body, **kwargs): """ Freeze a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an @@ -12099,18 +12100,19 @@ def v1_freeze_with_http_info(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_freeze_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1_freeze_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1FreezeUnfreezeTimeout body: (required) :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -12131,6 +12133,9 @@ def v1_freeze_with_http_info(self, name, namespace, **kwargs): # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `v1_freeze`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1_freeze`") collection_formats = {} @@ -12149,6 +12154,8 @@ def v1_freeze_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] @@ -13784,7 +13791,7 @@ def v1alpha3_filesystemlist_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_freeze(self, name, namespace, **kwargs): + def v1alpha3_freeze(self, name, namespace, body, **kwargs): """ Freeze a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an @@ -13793,24 +13800,25 @@ def v1alpha3_freeze(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_freeze(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_freeze(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1FreezeUnfreezeTimeout body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_freeze_with_http_info(name, namespace, **kwargs) + return self.v1alpha3_freeze_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1alpha3_freeze_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3_freeze_with_http_info(name, namespace, body, **kwargs) return data - def v1alpha3_freeze_with_http_info(self, name, namespace, **kwargs): + def v1alpha3_freeze_with_http_info(self, name, namespace, body, **kwargs): """ Freeze a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an @@ -13819,18 +13827,19 @@ def v1alpha3_freeze_with_http_info(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_freeze_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_freeze_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1FreezeUnfreezeTimeout body: (required) :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -13851,6 +13860,9 @@ def v1alpha3_freeze_with_http_info(self, name, namespace, **kwargs): # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_freeze`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3_freeze`") collection_formats = {} @@ -13869,6 +13881,8 @@ def v1alpha3_freeze_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c6ad2700..4294a9cc 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.46.0-134-gbbbcd3a73".\ + "SDK Package Version: v0.46.0-285-ge1582c972".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index d8965714..2199d6d9 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -117,6 +117,7 @@ from .v1_flags import V1Flags from .v1_flavor_matcher import V1FlavorMatcher from .v1_floppy_target import V1FloppyTarget +from .v1_freeze_unfreeze_timeout import V1FreezeUnfreezeTimeout from .v1_gpu import V1GPU from .v1_generation_status import V1GenerationStatus from .v1_guest_agent_command_info import V1GuestAgentCommandInfo diff --git a/kubevirt/models/v1_freeze_unfreeze_timeout.py b/kubevirt/models/v1_freeze_unfreeze_timeout.py new file mode 100644 index 00000000..ac13b570 --- /dev/null +++ b/kubevirt/models/v1_freeze_unfreeze_timeout.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1FreezeUnfreezeTimeout(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'unfreeze_timeout': 'K8sIoApimachineryPkgApisMetaV1Duration' + } + + attribute_map = { + 'unfreeze_timeout': 'unfreezeTimeout' + } + + def __init__(self, unfreeze_timeout=None): + """ + V1FreezeUnfreezeTimeout - a model defined in Swagger + """ + + self._unfreeze_timeout = None + + self.unfreeze_timeout = unfreeze_timeout + + @property + def unfreeze_timeout(self): + """ + Gets the unfreeze_timeout of this V1FreezeUnfreezeTimeout. + + :return: The unfreeze_timeout of this V1FreezeUnfreezeTimeout. + :rtype: K8sIoApimachineryPkgApisMetaV1Duration + """ + return self._unfreeze_timeout + + @unfreeze_timeout.setter + def unfreeze_timeout(self, unfreeze_timeout): + """ + Sets the unfreeze_timeout of this V1FreezeUnfreezeTimeout. + + :param unfreeze_timeout: The unfreeze_timeout of this V1FreezeUnfreezeTimeout. + :type: K8sIoApimachineryPkgApisMetaV1Duration + """ + if unfreeze_timeout is None: + raise ValueError("Invalid value for `unfreeze_timeout`, must not be `None`") + + self._unfreeze_timeout = unfreeze_timeout + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1FreezeUnfreezeTimeout): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 6e5834f8..8b827426 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.46.0-134-gbbbcd3a73" +VERSION = "v0.46.0-285-ge1582c972" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 1d19385f..3ca20b48 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.46.0-134-gbbbcd3a73" +"packageVersion": "v0.46.0-285-ge1582c972" } diff --git a/test/test_v1_freeze_unfreeze_timeout.py b/test/test_v1_freeze_unfreeze_timeout.py new file mode 100644 index 00000000..b31aafe3 --- /dev/null +++ b/test/test_v1_freeze_unfreeze_timeout.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_freeze_unfreeze_timeout import V1FreezeUnfreezeTimeout + + +class TestV1FreezeUnfreezeTimeout(unittest.TestCase): + """ V1FreezeUnfreezeTimeout unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1FreezeUnfreezeTimeout(self): + """ + Test V1FreezeUnfreezeTimeout + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_freeze_unfreeze_timeout.V1FreezeUnfreezeTimeout() + pass + + +if __name__ == '__main__': + unittest.main() From 8cb592cca50211bb41f41357005536dad2853bfe Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 4 Nov 2021 00:37:09 +0000 Subject: [PATCH 233/521] Client Python update by KubeVirt Prow build 1456050026894594048 --- README.md | 2 +- docs/V1PersistentVolumeClaimInfo.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../models/v1_persistent_volume_claim_info.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 48a0313f..ba4c8abf 100644 --- a/README.md +++ b/README.md @@ -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: v0.46.0-285-ge1582c972 +- Package version: v0.47.0-rc.0-22-g784e29ec9 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1PersistentVolumeClaimInfo.md b/docs/V1PersistentVolumeClaimInfo.md index 19f28fcc..f2322833 100644 --- a/docs/V1PersistentVolumeClaimInfo.md +++ b/docs/V1PersistentVolumeClaimInfo.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **access_modes** | **list[str]** | AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] **capacity** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Capacity represents the capacity set on the corresponding PVC spec | [optional] +**filesystem_overhead** | **str** | Percentage of filesystem's size to be reserved when resizing the PVC | [optional] **preallocated** | **bool** | Preallocated indicates if the PVC's storage is preallocated or not | [optional] **volume_mode** | **str** | VolumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. | [optional] diff --git a/git_push.sh b/git_push.sh index 5900dcaf..2d18510f 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.46.0-285-ge1582c972" + release_note="Auto-generated client v0.47.0-rc.0-22-g784e29ec9" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 6925a4e2..8ba4d6fe 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.46.0-285-ge1582c972/python' + self.user_agent = 'Swagger-Codegen/v0.47.0-rc.0-22-g784e29ec9/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 4294a9cc..bc83593f 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.46.0-285-ge1582c972".\ + "SDK Package Version: v0.47.0-rc.0-22-g784e29ec9".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_persistent_volume_claim_info.py b/kubevirt/models/v1_persistent_volume_claim_info.py index b8db57f9..feb991c0 100644 --- a/kubevirt/models/v1_persistent_volume_claim_info.py +++ b/kubevirt/models/v1_persistent_volume_claim_info.py @@ -33,6 +33,7 @@ class V1PersistentVolumeClaimInfo(object): swagger_types = { 'access_modes': 'list[str]', 'capacity': 'dict(str, K8sIoApimachineryPkgApiResourceQuantity)', + 'filesystem_overhead': 'str', 'preallocated': 'bool', 'volume_mode': 'str' } @@ -40,17 +41,19 @@ class V1PersistentVolumeClaimInfo(object): attribute_map = { 'access_modes': 'accessModes', 'capacity': 'capacity', + 'filesystem_overhead': 'filesystemOverhead', 'preallocated': 'preallocated', 'volume_mode': 'volumeMode' } - def __init__(self, access_modes=None, capacity=None, preallocated=None, volume_mode=None): + def __init__(self, access_modes=None, capacity=None, filesystem_overhead=None, preallocated=None, volume_mode=None): """ V1PersistentVolumeClaimInfo - a model defined in Swagger """ self._access_modes = None self._capacity = None + self._filesystem_overhead = None self._preallocated = None self._volume_mode = None @@ -58,6 +61,8 @@ def __init__(self, access_modes=None, capacity=None, preallocated=None, volume_m self.access_modes = access_modes if capacity is not None: self.capacity = capacity + if filesystem_overhead is not None: + self.filesystem_overhead = filesystem_overhead if preallocated is not None: self.preallocated = preallocated if volume_mode is not None: @@ -109,6 +114,29 @@ def capacity(self, capacity): self._capacity = capacity + @property + def filesystem_overhead(self): + """ + Gets the filesystem_overhead of this V1PersistentVolumeClaimInfo. + Percentage of filesystem's size to be reserved when resizing the PVC + + :return: The filesystem_overhead of this V1PersistentVolumeClaimInfo. + :rtype: str + """ + return self._filesystem_overhead + + @filesystem_overhead.setter + def filesystem_overhead(self, filesystem_overhead): + """ + Sets the filesystem_overhead of this V1PersistentVolumeClaimInfo. + Percentage of filesystem's size to be reserved when resizing the PVC + + :param filesystem_overhead: The filesystem_overhead of this V1PersistentVolumeClaimInfo. + :type: str + """ + + self._filesystem_overhead = filesystem_overhead + @property def preallocated(self): """ diff --git a/setup.py b/setup.py index 8b827426..99a0133d 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.46.0-285-ge1582c972" +VERSION = "v0.47.0-rc.0-22-g784e29ec9" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 3ca20b48..d1600197 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.46.0-285-ge1582c972" +"packageVersion": "v0.47.0-rc.0-22-g784e29ec9" } From d68ee8aa8869fc5ec90d2b2cedededef0f7eb281 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 4 Nov 2021 08:22:56 +0000 Subject: [PATCH 234/521] Client Python update by KubeVirt Prow build 1456158742889369600 --- README.md | 2 +- docs/V1ComponentConfig.md | 3 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_component_config.py | 38 ++++++++++++++++++++++---- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 41 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index ba4c8abf..b663a6bf 100644 --- a/README.md +++ b/README.md @@ -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: v0.47.0-rc.0-22-g784e29ec9 +- Package version: v0.47.0-rc.0-24-gfb8917c00 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1ComponentConfig.md b/docs/V1ComponentConfig.md index 5e105c09..74305529 100644 --- a/docs/V1ComponentConfig.md +++ b/docs/V1ComponentConfig.md @@ -3,7 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**node_placement** | [**V1NodePlacement**](V1NodePlacement.md) | nodePlacement decsribes scheduling confiuguration for specific KubeVirt components | [optional] +**node_placement** | [**V1NodePlacement**](V1NodePlacement.md) | nodePlacement describes scheduling configuration for specific KubeVirt components | [optional] +**replicas** | **int** | replicas indicates how many replicas should be created for each KubeVirt infrastructure component (like virt-api or virt-controller). Defaults to 2. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 2d18510f..b6171d2d 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.47.0-rc.0-22-g784e29ec9" + release_note="Auto-generated client v0.47.0-rc.0-24-gfb8917c00" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 8ba4d6fe..a8d6c46e 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.47.0-rc.0-22-g784e29ec9/python' + self.user_agent = 'Swagger-Codegen/v0.47.0-rc.0-24-gfb8917c00/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index bc83593f..0d00a45c 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.47.0-rc.0-22-g784e29ec9".\ + "SDK Package Version: v0.47.0-rc.0-24-gfb8917c00".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_component_config.py b/kubevirt/models/v1_component_config.py index 94b5cec6..68dc6150 100644 --- a/kubevirt/models/v1_component_config.py +++ b/kubevirt/models/v1_component_config.py @@ -31,28 +31,33 @@ class V1ComponentConfig(object): and the value is json key in definition. """ swagger_types = { - 'node_placement': 'V1NodePlacement' + 'node_placement': 'V1NodePlacement', + 'replicas': 'int' } attribute_map = { - 'node_placement': 'nodePlacement' + 'node_placement': 'nodePlacement', + 'replicas': 'replicas' } - def __init__(self, node_placement=None): + def __init__(self, node_placement=None, replicas=None): """ V1ComponentConfig - a model defined in Swagger """ self._node_placement = None + self._replicas = None if node_placement is not None: self.node_placement = node_placement + if replicas is not None: + self.replicas = replicas @property def node_placement(self): """ Gets the node_placement of this V1ComponentConfig. - nodePlacement decsribes scheduling confiuguration for specific KubeVirt components + nodePlacement describes scheduling configuration for specific KubeVirt components :return: The node_placement of this V1ComponentConfig. :rtype: V1NodePlacement @@ -63,7 +68,7 @@ def node_placement(self): def node_placement(self, node_placement): """ Sets the node_placement of this V1ComponentConfig. - nodePlacement decsribes scheduling confiuguration for specific KubeVirt components + nodePlacement describes scheduling configuration for specific KubeVirt components :param node_placement: The node_placement of this V1ComponentConfig. :type: V1NodePlacement @@ -71,6 +76,29 @@ def node_placement(self, node_placement): self._node_placement = node_placement + @property + def replicas(self): + """ + Gets the replicas of this V1ComponentConfig. + replicas indicates how many replicas should be created for each KubeVirt infrastructure component (like virt-api or virt-controller). Defaults to 2. + + :return: The replicas of this V1ComponentConfig. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this V1ComponentConfig. + replicas indicates how many replicas should be created for each KubeVirt infrastructure component (like virt-api or virt-controller). Defaults to 2. + + :param replicas: The replicas of this V1ComponentConfig. + :type: int + """ + + self._replicas = replicas + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 99a0133d..08bbc848 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.47.0-rc.0-22-g784e29ec9" +VERSION = "v0.47.0-rc.0-24-gfb8917c00" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index d1600197..4b61081c 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.47.0-rc.0-22-g784e29ec9" +"packageVersion": "v0.47.0-rc.0-24-gfb8917c00" } From 30d7dcec6096827ad44fa6bac9e762709a65dfa5 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 5 Nov 2021 06:28:06 +0000 Subject: [PATCH 235/521] Client Python update by KubeVirt Prow build 1456500508821819392 --- README.md | 3 +- docs/DefaultApi.md | 12 +- docs/V1RestartOptions.md | 3 +- docs/V1StartOptions.md | 13 ++ docs/V1StopOptions.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 42 ++++-- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_restart_options.py | 34 ++++- kubevirt/models/v1_start_options.py | 209 ++++++++++++++++++++++++++ kubevirt/models/v1_stop_options.py | 30 +++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_start_options.py | 44 ++++++ 18 files changed, 377 insertions(+), 29 deletions(-) create mode 100644 docs/V1StartOptions.md create mode 100644 kubevirt/models/v1_start_options.py create mode 100644 test/test_v1_start_options.py diff --git a/README.md b/README.md index b663a6bf..51a7b4b9 100644 --- a/README.md +++ b/README.md @@ -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: v0.47.0-rc.0-24-gfb8917c00 +- Package version: v0.47.0-rc.0-32-g48c74adf1 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -429,6 +429,7 @@ Class | Method | HTTP request | Description - [V1SSHPublicKeyAccessCredentialSource](docs/V1SSHPublicKeyAccessCredentialSource.md) - [V1SecretVolumeSource](docs/V1SecretVolumeSource.md) - [V1ServiceAccountVolumeSource](docs/V1ServiceAccountVolumeSource.md) + - [V1StartOptions](docs/V1StartOptions.md) - [V1StopOptions](docs/V1StopOptions.md) - [V1SyNICTimer](docs/V1SyNICTimer.md) - [V1SysprepSource](docs/V1SysprepSource.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 7d37ec50..a43f83e5 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -5998,7 +5998,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1_start** -> str v1_start(name, namespace) +> str v1_start(name, namespace, body) @@ -6016,9 +6016,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1StartOptions() # V1StartOptions | try: - api_response = api_instance.v1_start(name, namespace) + api_response = api_instance.v1_start(name, namespace, body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->v1_start: %s\n" % e) @@ -6030,6 +6031,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1StartOptions**](V1StartOptions.md)| | ### Return type @@ -6842,7 +6844,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1alpha3_start** -> str v1alpha3_start(name, namespace) +> str v1alpha3_start(name, namespace, body) @@ -6860,9 +6862,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1StartOptions() # V1StartOptions | try: - api_response = api_instance.v1alpha3_start(name, namespace) + api_response = api_instance.v1alpha3_start(name, namespace, body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->v1alpha3_start: %s\n" % e) @@ -6874,6 +6877,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1StartOptions**](V1StartOptions.md)| | ### Return type diff --git a/docs/V1RestartOptions.md b/docs/V1RestartOptions.md index a3834a9c..c19ff285 100644 --- a/docs/V1RestartOptions.md +++ b/docs/V1RestartOptions.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**grace_period_seconds** | **int** | The duration in seconds before the object should be force-restared. Value must be non-negative integer. The value zero indicates, restart immediately. If this value is nil, the default grace period for deletion of the corresponding VMI for the specified type will be used to determine on how much time to give the VMI to restart. Defaults to a per object value if not specified. zero means restart immediately. Allowed Values: nil and 0 | [optional] +**dry_run** | **list[str]** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**grace_period_seconds** | **int** | The duration in seconds before the object should be force-restarted. Value must be non-negative integer. The value zero indicates, restart immediately. If this value is nil, the default grace period for deletion of the corresponding VMI for the specified type will be used to determine on how much time to give the VMI to restart. Defaults to a per object value if not specified. zero means restart immediately. Allowed Values: nil and 0 | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1StartOptions.md b/docs/V1StartOptions.md new file mode 100644 index 00000000..bdfbab35 --- /dev/null +++ b/docs/V1StartOptions.md @@ -0,0 +1,13 @@ +# V1StartOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**dry_run** | **list[str]** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**paused** | **bool** | Indicates that VM will be started in paused state. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1StopOptions.md b/docs/V1StopOptions.md index ddff69fa..29a701df 100644 --- a/docs/V1StopOptions.md +++ b/docs/V1StopOptions.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**dry_run** | **list[str]** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period** | **int** | this updates the VMIs terminationGracePeriodSeconds during shutdown | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] diff --git a/git_push.sh b/git_push.sh index b6171d2d..68f36cbd 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.47.0-rc.0-24-gfb8917c00" + release_note="Auto-generated client v0.47.0-rc.0-32-g48c74adf1" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 85ad0b26..96dc2df5 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -538,6 +538,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_service_account_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_service_account_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ServiceAccountVolumeSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_start_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_start_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1StartOptions.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_stop_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_stop_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1StopOptions.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index ac4effe4..a0d53fb4 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -187,6 +187,7 @@ from .models.v1_ssh_public_key_access_credential_source import V1SSHPublicKeyAccessCredentialSource from .models.v1_secret_volume_source import V1SecretVolumeSource from .models.v1_service_account_volume_source import V1ServiceAccountVolumeSource +from .models.v1_start_options import V1StartOptions from .models.v1_stop_options import V1StopOptions from .models.v1_sy_nic_timer import V1SyNICTimer from .models.v1_sysprep_source import V1SysprepSource diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index a8d6c46e..02fb7789 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.47.0-rc.0-24-gfb8917c00/python' + self.user_agent = 'Swagger-Codegen/v0.47.0-rc.0-32-g48c74adf1/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 5ff1ec44..926c0312 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -12688,7 +12688,7 @@ def v1_restart_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_start(self, name, namespace, **kwargs): + def v1_start(self, name, namespace, body, **kwargs): """ Start a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an @@ -12697,24 +12697,25 @@ def v1_start(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_start(name, namespace, callback=callback_function) + >>> thread = api.v1_start(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1StartOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_start_with_http_info(name, namespace, **kwargs) + return self.v1_start_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1_start_with_http_info(name, namespace, **kwargs) + (data) = self.v1_start_with_http_info(name, namespace, body, **kwargs) return data - def v1_start_with_http_info(self, name, namespace, **kwargs): + def v1_start_with_http_info(self, name, namespace, body, **kwargs): """ Start a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an @@ -12723,18 +12724,19 @@ def v1_start_with_http_info(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_start_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1_start_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1StartOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -12755,6 +12757,9 @@ def v1_start_with_http_info(self, name, namespace, **kwargs): # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `v1_start`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1_start`") collection_formats = {} @@ -12773,6 +12778,8 @@ def v1_start_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] @@ -14507,7 +14514,7 @@ def v1alpha3_restart_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_start(self, name, namespace, **kwargs): + def v1alpha3_start(self, name, namespace, body, **kwargs): """ Start a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an @@ -14516,24 +14523,25 @@ def v1alpha3_start(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_start(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_start(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1StartOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_start_with_http_info(name, namespace, **kwargs) + return self.v1alpha3_start_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1alpha3_start_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3_start_with_http_info(name, namespace, body, **kwargs) return data - def v1alpha3_start_with_http_info(self, name, namespace, **kwargs): + def v1alpha3_start_with_http_info(self, name, namespace, body, **kwargs): """ Start a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an @@ -14542,18 +14550,19 @@ def v1alpha3_start_with_http_info(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_start_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_start_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1StartOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -14574,6 +14583,9 @@ def v1alpha3_start_with_http_info(self, name, namespace, **kwargs): # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_start`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3_start`") collection_formats = {} @@ -14592,6 +14604,8 @@ def v1alpha3_start_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 0d00a45c..faf1adde 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.47.0-rc.0-24-gfb8917c00".\ + "SDK Package Version: v0.47.0-rc.0-32-g48c74adf1".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 2199d6d9..cf11596d 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -187,6 +187,7 @@ from .v1_ssh_public_key_access_credential_source import V1SSHPublicKeyAccessCredentialSource from .v1_secret_volume_source import V1SecretVolumeSource from .v1_service_account_volume_source import V1ServiceAccountVolumeSource +from .v1_start_options import V1StartOptions from .v1_stop_options import V1StopOptions from .v1_sy_nic_timer import V1SyNICTimer from .v1_sysprep_source import V1SysprepSource diff --git a/kubevirt/models/v1_restart_options.py b/kubevirt/models/v1_restart_options.py index 1ef8e37e..36a86295 100644 --- a/kubevirt/models/v1_restart_options.py +++ b/kubevirt/models/v1_restart_options.py @@ -32,27 +32,32 @@ class V1RestartOptions(object): """ swagger_types = { 'api_version': 'str', + 'dry_run': 'list[str]', 'grace_period_seconds': 'int', 'kind': 'str' } attribute_map = { 'api_version': 'apiVersion', + 'dry_run': 'dryRun', 'grace_period_seconds': 'gracePeriodSeconds', 'kind': 'kind' } - def __init__(self, api_version=None, grace_period_seconds=None, kind=None): + def __init__(self, api_version=None, dry_run=None, grace_period_seconds=None, kind=None): """ V1RestartOptions - a model defined in Swagger """ self._api_version = None + self._dry_run = None self._grace_period_seconds = None self._kind = None if api_version is not None: self.api_version = api_version + if dry_run is not None: + self.dry_run = dry_run if grace_period_seconds is not None: self.grace_period_seconds = grace_period_seconds if kind is not None: @@ -81,11 +86,34 @@ def api_version(self, api_version): self._api_version = api_version + @property + def dry_run(self): + """ + Gets the dry_run of this V1RestartOptions. + When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + + :return: The dry_run of this V1RestartOptions. + :rtype: list[str] + """ + return self._dry_run + + @dry_run.setter + def dry_run(self, dry_run): + """ + Sets the dry_run of this V1RestartOptions. + When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + + :param dry_run: The dry_run of this V1RestartOptions. + :type: list[str] + """ + + self._dry_run = dry_run + @property def grace_period_seconds(self): """ Gets the grace_period_seconds of this V1RestartOptions. - The duration in seconds before the object should be force-restared. Value must be non-negative integer. The value zero indicates, restart immediately. If this value is nil, the default grace period for deletion of the corresponding VMI for the specified type will be used to determine on how much time to give the VMI to restart. Defaults to a per object value if not specified. zero means restart immediately. Allowed Values: nil and 0 + The duration in seconds before the object should be force-restarted. Value must be non-negative integer. The value zero indicates, restart immediately. If this value is nil, the default grace period for deletion of the corresponding VMI for the specified type will be used to determine on how much time to give the VMI to restart. Defaults to a per object value if not specified. zero means restart immediately. Allowed Values: nil and 0 :return: The grace_period_seconds of this V1RestartOptions. :rtype: int @@ -96,7 +124,7 @@ def grace_period_seconds(self): def grace_period_seconds(self, grace_period_seconds): """ Sets the grace_period_seconds of this V1RestartOptions. - The duration in seconds before the object should be force-restared. Value must be non-negative integer. The value zero indicates, restart immediately. If this value is nil, the default grace period for deletion of the corresponding VMI for the specified type will be used to determine on how much time to give the VMI to restart. Defaults to a per object value if not specified. zero means restart immediately. Allowed Values: nil and 0 + The duration in seconds before the object should be force-restarted. Value must be non-negative integer. The value zero indicates, restart immediately. If this value is nil, the default grace period for deletion of the corresponding VMI for the specified type will be used to determine on how much time to give the VMI to restart. Defaults to a per object value if not specified. zero means restart immediately. Allowed Values: nil and 0 :param grace_period_seconds: The grace_period_seconds of this V1RestartOptions. :type: int diff --git a/kubevirt/models/v1_start_options.py b/kubevirt/models/v1_start_options.py new file mode 100644 index 00000000..8162f8d6 --- /dev/null +++ b/kubevirt/models/v1_start_options.py @@ -0,0 +1,209 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1StartOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'dry_run': 'list[str]', + 'kind': 'str', + 'paused': 'bool' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'dry_run': 'dryRun', + 'kind': 'kind', + 'paused': 'paused' + } + + def __init__(self, api_version=None, dry_run=None, kind=None, paused=None): + """ + V1StartOptions - a model defined in Swagger + """ + + self._api_version = None + self._dry_run = None + self._kind = None + self._paused = None + + if api_version is not None: + self.api_version = api_version + if dry_run is not None: + self.dry_run = dry_run + if kind is not None: + self.kind = kind + if paused is not None: + self.paused = paused + + @property + def api_version(self): + """ + Gets the api_version of this V1StartOptions. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1StartOptions. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1StartOptions. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1StartOptions. + :type: str + """ + + self._api_version = api_version + + @property + def dry_run(self): + """ + Gets the dry_run of this V1StartOptions. + When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + + :return: The dry_run of this V1StartOptions. + :rtype: list[str] + """ + return self._dry_run + + @dry_run.setter + def dry_run(self, dry_run): + """ + Sets the dry_run of this V1StartOptions. + When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + + :param dry_run: The dry_run of this V1StartOptions. + :type: list[str] + """ + + self._dry_run = dry_run + + @property + def kind(self): + """ + Gets the kind of this V1StartOptions. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1StartOptions. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1StartOptions. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1StartOptions. + :type: str + """ + + self._kind = kind + + @property + def paused(self): + """ + Gets the paused of this V1StartOptions. + Indicates that VM will be started in paused state. + + :return: The paused of this V1StartOptions. + :rtype: bool + """ + return self._paused + + @paused.setter + def paused(self, paused): + """ + Sets the paused of this V1StartOptions. + Indicates that VM will be started in paused state. + + :param paused: The paused of this V1StartOptions. + :type: bool + """ + + self._paused = paused + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1StartOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_stop_options.py b/kubevirt/models/v1_stop_options.py index c469028a..6828da75 100644 --- a/kubevirt/models/v1_stop_options.py +++ b/kubevirt/models/v1_stop_options.py @@ -32,27 +32,32 @@ class V1StopOptions(object): """ swagger_types = { 'api_version': 'str', + 'dry_run': 'list[str]', 'grace_period': 'int', 'kind': 'str' } attribute_map = { 'api_version': 'apiVersion', + 'dry_run': 'dryRun', 'grace_period': 'gracePeriod', 'kind': 'kind' } - def __init__(self, api_version=None, grace_period=None, kind=None): + def __init__(self, api_version=None, dry_run=None, grace_period=None, kind=None): """ V1StopOptions - a model defined in Swagger """ self._api_version = None + self._dry_run = None self._grace_period = None self._kind = None if api_version is not None: self.api_version = api_version + if dry_run is not None: + self.dry_run = dry_run if grace_period is not None: self.grace_period = grace_period if kind is not None: @@ -81,6 +86,29 @@ def api_version(self, api_version): self._api_version = api_version + @property + def dry_run(self): + """ + Gets the dry_run of this V1StopOptions. + When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + + :return: The dry_run of this V1StopOptions. + :rtype: list[str] + """ + return self._dry_run + + @dry_run.setter + def dry_run(self, dry_run): + """ + Sets the dry_run of this V1StopOptions. + When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + + :param dry_run: The dry_run of this V1StopOptions. + :type: list[str] + """ + + self._dry_run = dry_run + @property def grace_period(self): """ diff --git a/setup.py b/setup.py index 08bbc848..8835c40d 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.47.0-rc.0-24-gfb8917c00" +VERSION = "v0.47.0-rc.0-32-g48c74adf1" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 4b61081c..058fc15b 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.47.0-rc.0-24-gfb8917c00" +"packageVersion": "v0.47.0-rc.0-32-g48c74adf1" } diff --git a/test/test_v1_start_options.py b/test/test_v1_start_options.py new file mode 100644 index 00000000..1beb4301 --- /dev/null +++ b/test/test_v1_start_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_start_options import V1StartOptions + + +class TestV1StartOptions(unittest.TestCase): + """ V1StartOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1StartOptions(self): + """ + Test V1StartOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_start_options.V1StartOptions() + pass + + +if __name__ == '__main__': + unittest.main() From cd5e8cb792df53de350c7ab52b942d8f2419db23 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 11 Nov 2021 02:00:25 +0000 Subject: [PATCH 236/521] Client Python update by KubeVirt Prow build 1458604802744258560 --- README.md | 2 +- docs/V1beta1DataVolumeSourceRegistry.md | 4 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1beta1_data_volume_source_registry.py | 67 +++++++++++++++++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 70 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 51a7b4b9..0ebde2db 100644 --- a/README.md +++ b/README.md @@ -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: v0.47.0-rc.0-32-g48c74adf1 +- Package version: v0.47.0-68-gf30fbe1ad - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1DataVolumeSourceRegistry.md b/docs/V1beta1DataVolumeSourceRegistry.md index 70870abf..9b1d8a4b 100644 --- a/docs/V1beta1DataVolumeSourceRegistry.md +++ b/docs/V1beta1DataVolumeSourceRegistry.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cert_config_map** | **str** | CertConfigMap provides a reference to the Registry certs | [optional] +**image_stream** | **str** | ImageStream is the name of image stream for import | [optional] +**pull_method** | **str** | PullMethod can be either \"pod\" (default import), or \"node\" (node docker cache based import) | [optional] **secret_ref** | **str** | SecretRef provides the secret reference needed to access the Registry source | [optional] -**url** | **str** | URL is the url of the Docker registry source | +**url** | **str** | URL is the url of the registry source (starting with the scheme: docker, oci-archive) | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 68f36cbd..d91c1018 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.47.0-rc.0-32-g48c74adf1" + release_note="Auto-generated client v0.47.0-68-gf30fbe1ad" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 02fb7789..c142bc2d 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.47.0-rc.0-32-g48c74adf1/python' + self.user_agent = 'Swagger-Codegen/v0.47.0-68-gf30fbe1ad/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index faf1adde..48479c9a 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.47.0-rc.0-32-g48c74adf1".\ + "SDK Package Version: v0.47.0-68-gf30fbe1ad".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_data_volume_source_registry.py b/kubevirt/models/v1beta1_data_volume_source_registry.py index d1021ed8..c6bcb75e 100644 --- a/kubevirt/models/v1beta1_data_volume_source_registry.py +++ b/kubevirt/models/v1beta1_data_volume_source_registry.py @@ -32,30 +32,41 @@ class V1beta1DataVolumeSourceRegistry(object): """ swagger_types = { 'cert_config_map': 'str', + 'image_stream': 'str', + 'pull_method': 'str', 'secret_ref': 'str', 'url': 'str' } attribute_map = { 'cert_config_map': 'certConfigMap', + 'image_stream': 'imageStream', + 'pull_method': 'pullMethod', 'secret_ref': 'secretRef', 'url': 'url' } - def __init__(self, cert_config_map=None, secret_ref=None, url=None): + def __init__(self, cert_config_map=None, image_stream=None, pull_method=None, secret_ref=None, url=None): """ V1beta1DataVolumeSourceRegistry - a model defined in Swagger """ self._cert_config_map = None + self._image_stream = None + self._pull_method = None self._secret_ref = None self._url = None if cert_config_map is not None: self.cert_config_map = cert_config_map + if image_stream is not None: + self.image_stream = image_stream + if pull_method is not None: + self.pull_method = pull_method if secret_ref is not None: self.secret_ref = secret_ref - self.url = url + if url is not None: + self.url = url @property def cert_config_map(self): @@ -80,6 +91,52 @@ def cert_config_map(self, cert_config_map): self._cert_config_map = cert_config_map + @property + def image_stream(self): + """ + Gets the image_stream of this V1beta1DataVolumeSourceRegistry. + ImageStream is the name of image stream for import + + :return: The image_stream of this V1beta1DataVolumeSourceRegistry. + :rtype: str + """ + return self._image_stream + + @image_stream.setter + def image_stream(self, image_stream): + """ + Sets the image_stream of this V1beta1DataVolumeSourceRegistry. + ImageStream is the name of image stream for import + + :param image_stream: The image_stream of this V1beta1DataVolumeSourceRegistry. + :type: str + """ + + self._image_stream = image_stream + + @property + def pull_method(self): + """ + Gets the pull_method of this V1beta1DataVolumeSourceRegistry. + PullMethod can be either \"pod\" (default import), or \"node\" (node docker cache based import) + + :return: The pull_method of this V1beta1DataVolumeSourceRegistry. + :rtype: str + """ + return self._pull_method + + @pull_method.setter + def pull_method(self, pull_method): + """ + Sets the pull_method of this V1beta1DataVolumeSourceRegistry. + PullMethod can be either \"pod\" (default import), or \"node\" (node docker cache based import) + + :param pull_method: The pull_method of this V1beta1DataVolumeSourceRegistry. + :type: str + """ + + self._pull_method = pull_method + @property def secret_ref(self): """ @@ -107,7 +164,7 @@ def secret_ref(self, secret_ref): def url(self): """ Gets the url of this V1beta1DataVolumeSourceRegistry. - URL is the url of the Docker registry source + URL is the url of the registry source (starting with the scheme: docker, oci-archive) :return: The url of this V1beta1DataVolumeSourceRegistry. :rtype: str @@ -118,13 +175,11 @@ def url(self): def url(self, url): """ Sets the url of this V1beta1DataVolumeSourceRegistry. - URL is the url of the Docker registry source + URL is the url of the registry source (starting with the scheme: docker, oci-archive) :param url: The url of this V1beta1DataVolumeSourceRegistry. :type: str """ - if url is None: - raise ValueError("Invalid value for `url`, must not be `None`") self._url = url diff --git a/setup.py b/setup.py index 8835c40d..f4639885 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.47.0-rc.0-32-g48c74adf1" +VERSION = "v0.47.0-68-gf30fbe1ad" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 058fc15b..3382d1b4 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.47.0-rc.0-32-g48c74adf1" +"packageVersion": "v0.47.0-68-gf30fbe1ad" } From b79f7c43ee771488e0241b4c5ff3391d39f68670 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 11 Nov 2021 02:16:17 +0000 Subject: [PATCH 237/521] Client Python update by KubeVirt Prow build 1458604772960505856 --- README.md | 2 +- docs/V1beta1DataVolumeSourceRegistry.md | 4 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1beta1_data_volume_source_registry.py | 67 ++----------------- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 13 insertions(+), 70 deletions(-) diff --git a/README.md b/README.md index 0ebde2db..a6a8c118 100644 --- a/README.md +++ b/README.md @@ -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: v0.47.0-68-gf30fbe1ad +- Package version: v0.47.0-66-g95042d121 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1DataVolumeSourceRegistry.md b/docs/V1beta1DataVolumeSourceRegistry.md index 9b1d8a4b..70870abf 100644 --- a/docs/V1beta1DataVolumeSourceRegistry.md +++ b/docs/V1beta1DataVolumeSourceRegistry.md @@ -4,10 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cert_config_map** | **str** | CertConfigMap provides a reference to the Registry certs | [optional] -**image_stream** | **str** | ImageStream is the name of image stream for import | [optional] -**pull_method** | **str** | PullMethod can be either \"pod\" (default import), or \"node\" (node docker cache based import) | [optional] **secret_ref** | **str** | SecretRef provides the secret reference needed to access the Registry source | [optional] -**url** | **str** | URL is the url of the registry source (starting with the scheme: docker, oci-archive) | [optional] +**url** | **str** | URL is the url of the Docker registry source | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index d91c1018..77887a8c 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.47.0-68-gf30fbe1ad" + release_note="Auto-generated client v0.47.0-66-g95042d121" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index c142bc2d..23031a18 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.47.0-68-gf30fbe1ad/python' + self.user_agent = 'Swagger-Codegen/v0.47.0-66-g95042d121/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 48479c9a..ba90f7ac 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.47.0-68-gf30fbe1ad".\ + "SDK Package Version: v0.47.0-66-g95042d121".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_data_volume_source_registry.py b/kubevirt/models/v1beta1_data_volume_source_registry.py index c6bcb75e..d1021ed8 100644 --- a/kubevirt/models/v1beta1_data_volume_source_registry.py +++ b/kubevirt/models/v1beta1_data_volume_source_registry.py @@ -32,41 +32,30 @@ class V1beta1DataVolumeSourceRegistry(object): """ swagger_types = { 'cert_config_map': 'str', - 'image_stream': 'str', - 'pull_method': 'str', 'secret_ref': 'str', 'url': 'str' } attribute_map = { 'cert_config_map': 'certConfigMap', - 'image_stream': 'imageStream', - 'pull_method': 'pullMethod', 'secret_ref': 'secretRef', 'url': 'url' } - def __init__(self, cert_config_map=None, image_stream=None, pull_method=None, secret_ref=None, url=None): + def __init__(self, cert_config_map=None, secret_ref=None, url=None): """ V1beta1DataVolumeSourceRegistry - a model defined in Swagger """ self._cert_config_map = None - self._image_stream = None - self._pull_method = None self._secret_ref = None self._url = None if cert_config_map is not None: self.cert_config_map = cert_config_map - if image_stream is not None: - self.image_stream = image_stream - if pull_method is not None: - self.pull_method = pull_method if secret_ref is not None: self.secret_ref = secret_ref - if url is not None: - self.url = url + self.url = url @property def cert_config_map(self): @@ -91,52 +80,6 @@ def cert_config_map(self, cert_config_map): self._cert_config_map = cert_config_map - @property - def image_stream(self): - """ - Gets the image_stream of this V1beta1DataVolumeSourceRegistry. - ImageStream is the name of image stream for import - - :return: The image_stream of this V1beta1DataVolumeSourceRegistry. - :rtype: str - """ - return self._image_stream - - @image_stream.setter - def image_stream(self, image_stream): - """ - Sets the image_stream of this V1beta1DataVolumeSourceRegistry. - ImageStream is the name of image stream for import - - :param image_stream: The image_stream of this V1beta1DataVolumeSourceRegistry. - :type: str - """ - - self._image_stream = image_stream - - @property - def pull_method(self): - """ - Gets the pull_method of this V1beta1DataVolumeSourceRegistry. - PullMethod can be either \"pod\" (default import), or \"node\" (node docker cache based import) - - :return: The pull_method of this V1beta1DataVolumeSourceRegistry. - :rtype: str - """ - return self._pull_method - - @pull_method.setter - def pull_method(self, pull_method): - """ - Sets the pull_method of this V1beta1DataVolumeSourceRegistry. - PullMethod can be either \"pod\" (default import), or \"node\" (node docker cache based import) - - :param pull_method: The pull_method of this V1beta1DataVolumeSourceRegistry. - :type: str - """ - - self._pull_method = pull_method - @property def secret_ref(self): """ @@ -164,7 +107,7 @@ def secret_ref(self, secret_ref): def url(self): """ Gets the url of this V1beta1DataVolumeSourceRegistry. - URL is the url of the registry source (starting with the scheme: docker, oci-archive) + URL is the url of the Docker registry source :return: The url of this V1beta1DataVolumeSourceRegistry. :rtype: str @@ -175,11 +118,13 @@ def url(self): def url(self, url): """ Sets the url of this V1beta1DataVolumeSourceRegistry. - URL is the url of the registry source (starting with the scheme: docker, oci-archive) + URL is the url of the Docker registry source :param url: The url of this V1beta1DataVolumeSourceRegistry. :type: str """ + if url is None: + raise ValueError("Invalid value for `url`, must not be `None`") self._url = url diff --git a/setup.py b/setup.py index f4639885..47decad8 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.47.0-68-gf30fbe1ad" +VERSION = "v0.47.0-66-g95042d121" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 3382d1b4..88855838 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.47.0-68-gf30fbe1ad" +"packageVersion": "v0.47.0-66-g95042d121" } From 4e1d9298bf771d74dcdafa412a4abadc4375a604 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 11 Nov 2021 02:30:19 +0000 Subject: [PATCH 238/521] Client Python update by KubeVirt Prow build 1458604856561373184 --- README.md | 2 +- docs/V1beta1DataVolumeSourceRegistry.md | 4 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1beta1_data_volume_source_registry.py | 67 +++++++++++++++++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 70 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index a6a8c118..a2b84262 100644 --- a/README.md +++ b/README.md @@ -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: v0.47.0-66-g95042d121 +- Package version: v0.47.0-72-gedb06ee7d - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1DataVolumeSourceRegistry.md b/docs/V1beta1DataVolumeSourceRegistry.md index 70870abf..9b1d8a4b 100644 --- a/docs/V1beta1DataVolumeSourceRegistry.md +++ b/docs/V1beta1DataVolumeSourceRegistry.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cert_config_map** | **str** | CertConfigMap provides a reference to the Registry certs | [optional] +**image_stream** | **str** | ImageStream is the name of image stream for import | [optional] +**pull_method** | **str** | PullMethod can be either \"pod\" (default import), or \"node\" (node docker cache based import) | [optional] **secret_ref** | **str** | SecretRef provides the secret reference needed to access the Registry source | [optional] -**url** | **str** | URL is the url of the Docker registry source | +**url** | **str** | URL is the url of the registry source (starting with the scheme: docker, oci-archive) | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 77887a8c..a00ba40f 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.47.0-66-g95042d121" + release_note="Auto-generated client v0.47.0-72-gedb06ee7d" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 23031a18..85ea2a50 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.47.0-66-g95042d121/python' + self.user_agent = 'Swagger-Codegen/v0.47.0-72-gedb06ee7d/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index ba90f7ac..3f5d5c1c 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.47.0-66-g95042d121".\ + "SDK Package Version: v0.47.0-72-gedb06ee7d".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_data_volume_source_registry.py b/kubevirt/models/v1beta1_data_volume_source_registry.py index d1021ed8..c6bcb75e 100644 --- a/kubevirt/models/v1beta1_data_volume_source_registry.py +++ b/kubevirt/models/v1beta1_data_volume_source_registry.py @@ -32,30 +32,41 @@ class V1beta1DataVolumeSourceRegistry(object): """ swagger_types = { 'cert_config_map': 'str', + 'image_stream': 'str', + 'pull_method': 'str', 'secret_ref': 'str', 'url': 'str' } attribute_map = { 'cert_config_map': 'certConfigMap', + 'image_stream': 'imageStream', + 'pull_method': 'pullMethod', 'secret_ref': 'secretRef', 'url': 'url' } - def __init__(self, cert_config_map=None, secret_ref=None, url=None): + def __init__(self, cert_config_map=None, image_stream=None, pull_method=None, secret_ref=None, url=None): """ V1beta1DataVolumeSourceRegistry - a model defined in Swagger """ self._cert_config_map = None + self._image_stream = None + self._pull_method = None self._secret_ref = None self._url = None if cert_config_map is not None: self.cert_config_map = cert_config_map + if image_stream is not None: + self.image_stream = image_stream + if pull_method is not None: + self.pull_method = pull_method if secret_ref is not None: self.secret_ref = secret_ref - self.url = url + if url is not None: + self.url = url @property def cert_config_map(self): @@ -80,6 +91,52 @@ def cert_config_map(self, cert_config_map): self._cert_config_map = cert_config_map + @property + def image_stream(self): + """ + Gets the image_stream of this V1beta1DataVolumeSourceRegistry. + ImageStream is the name of image stream for import + + :return: The image_stream of this V1beta1DataVolumeSourceRegistry. + :rtype: str + """ + return self._image_stream + + @image_stream.setter + def image_stream(self, image_stream): + """ + Sets the image_stream of this V1beta1DataVolumeSourceRegistry. + ImageStream is the name of image stream for import + + :param image_stream: The image_stream of this V1beta1DataVolumeSourceRegistry. + :type: str + """ + + self._image_stream = image_stream + + @property + def pull_method(self): + """ + Gets the pull_method of this V1beta1DataVolumeSourceRegistry. + PullMethod can be either \"pod\" (default import), or \"node\" (node docker cache based import) + + :return: The pull_method of this V1beta1DataVolumeSourceRegistry. + :rtype: str + """ + return self._pull_method + + @pull_method.setter + def pull_method(self, pull_method): + """ + Sets the pull_method of this V1beta1DataVolumeSourceRegistry. + PullMethod can be either \"pod\" (default import), or \"node\" (node docker cache based import) + + :param pull_method: The pull_method of this V1beta1DataVolumeSourceRegistry. + :type: str + """ + + self._pull_method = pull_method + @property def secret_ref(self): """ @@ -107,7 +164,7 @@ def secret_ref(self, secret_ref): def url(self): """ Gets the url of this V1beta1DataVolumeSourceRegistry. - URL is the url of the Docker registry source + URL is the url of the registry source (starting with the scheme: docker, oci-archive) :return: The url of this V1beta1DataVolumeSourceRegistry. :rtype: str @@ -118,13 +175,11 @@ def url(self): def url(self, url): """ Sets the url of this V1beta1DataVolumeSourceRegistry. - URL is the url of the Docker registry source + URL is the url of the registry source (starting with the scheme: docker, oci-archive) :param url: The url of this V1beta1DataVolumeSourceRegistry. :type: str """ - if url is None: - raise ValueError("Invalid value for `url`, must not be `None`") self._url = url diff --git a/setup.py b/setup.py index 47decad8..706fc703 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.47.0-66-g95042d121" +VERSION = "v0.47.0-72-gedb06ee7d" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 88855838..870877de 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.47.0-66-g95042d121" +"packageVersion": "v0.47.0-72-gedb06ee7d" } From 6ba25d056842fb63f806475f7785f74b2d13d798 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 12 Nov 2021 04:47:35 +0000 Subject: [PATCH 239/521] Client Python update by KubeVirt Prow build 1459009012191203328 --- README.md | 4 +- docs/V1GPU.md | 1 + docs/V1VGPUDisplayOptions.md | 11 ++ docs/V1VGPUOptions.md | 10 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 + kubevirt/__init__.py | 2 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 + kubevirt/models/v1_gpu.py | 32 ++++- kubevirt/models/v1_vgpu_display_options.py | 153 +++++++++++++++++++++ kubevirt/models/v1_vgpu_options.py | 123 +++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_vgpu_display_options.py | 44 ++++++ test/test_v1_vgpu_options.py | 44 ++++++ 17 files changed, 433 insertions(+), 9 deletions(-) create mode 100644 docs/V1VGPUDisplayOptions.md create mode 100644 docs/V1VGPUOptions.md create mode 100644 kubevirt/models/v1_vgpu_display_options.py create mode 100644 kubevirt/models/v1_vgpu_options.py create mode 100644 test/test_v1_vgpu_display_options.py create mode 100644 test/test_v1_vgpu_options.py diff --git a/README.md b/README.md index a2b84262..fb3ad258 100644 --- a/README.md +++ b/README.md @@ -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: v0.47.0-72-gedb06ee7d +- Package version: v0.47.0-rc.0-99-gcd6410b42 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -439,6 +439,8 @@ Class | Method | HTTP request | Description - [V1UserPasswordAccessCredential](docs/V1UserPasswordAccessCredential.md) - [V1UserPasswordAccessCredentialPropagationMethod](docs/V1UserPasswordAccessCredentialPropagationMethod.md) - [V1UserPasswordAccessCredentialSource](docs/V1UserPasswordAccessCredentialSource.md) + - [V1VGPUDisplayOptions](docs/V1VGPUDisplayOptions.md) + - [V1VGPUOptions](docs/V1VGPUOptions.md) - [V1VirtualMachine](docs/V1VirtualMachine.md) - [V1VirtualMachineCondition](docs/V1VirtualMachineCondition.md) - [V1VirtualMachineInstance](docs/V1VirtualMachineInstance.md) diff --git a/docs/V1GPU.md b/docs/V1GPU.md index c901254f..8adee2ba 100644 --- a/docs/V1GPU.md +++ b/docs/V1GPU.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **device_name** | **str** | | **name** | **str** | Name of the GPU device as exposed by a device plugin | +**virtual_gpu_options** | [**V1VGPUOptions**](V1VGPUOptions.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VGPUDisplayOptions.md b/docs/V1VGPUDisplayOptions.md new file mode 100644 index 00000000..1602caa4 --- /dev/null +++ b/docs/V1VGPUDisplayOptions.md @@ -0,0 +1,11 @@ +# V1VGPUDisplayOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | Enabled determines if a display addapter backed by a vGPU should be enabled or disabled on the guest. Defaults to true. | [optional] +**ram_fb** | [**V1FeatureState**](V1FeatureState.md) | Enables a boot framebuffer, until the guest OS loads a real GPU driver Defaults to true. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VGPUOptions.md b/docs/V1VGPUOptions.md new file mode 100644 index 00000000..e3e7ce02 --- /dev/null +++ b/docs/V1VGPUOptions.md @@ -0,0 +1,10 @@ +# V1VGPUOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**display** | [**V1VGPUDisplayOptions**](V1VGPUDisplayOptions.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index a00ba40f..0bebe914 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.47.0-72-gedb06ee7d" + release_note="Auto-generated client v0.47.0-rc.0-99-gcd6410b42" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 96dc2df5..27dce7ae 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -568,6 +568,12 @@ 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_user_password_access_credential_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_user_password_access_credential_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1UserPasswordAccessCredentialSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_vgpu_display_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_vgpu_display_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VGPUDisplayOptions.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_vgpu_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_vgpu_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VGPUOptions.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachine.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index a0d53fb4..e4dc66b5 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -197,6 +197,8 @@ from .models.v1_user_password_access_credential import V1UserPasswordAccessCredential from .models.v1_user_password_access_credential_propagation_method import V1UserPasswordAccessCredentialPropagationMethod from .models.v1_user_password_access_credential_source import V1UserPasswordAccessCredentialSource +from .models.v1_vgpu_display_options import V1VGPUDisplayOptions +from .models.v1_vgpu_options import V1VGPUOptions from .models.v1_virtual_machine import V1VirtualMachine from .models.v1_virtual_machine_condition import V1VirtualMachineCondition from .models.v1_virtual_machine_instance import V1VirtualMachineInstance diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 85ea2a50..b68060dd 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.47.0-72-gedb06ee7d/python' + self.user_agent = 'Swagger-Codegen/v0.47.0-rc.0-99-gcd6410b42/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 3f5d5c1c..7b6c4354 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.47.0-72-gedb06ee7d".\ + "SDK Package Version: v0.47.0-rc.0-99-gcd6410b42".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index cf11596d..ff19b8d9 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -197,6 +197,8 @@ from .v1_user_password_access_credential import V1UserPasswordAccessCredential from .v1_user_password_access_credential_propagation_method import V1UserPasswordAccessCredentialPropagationMethod from .v1_user_password_access_credential_source import V1UserPasswordAccessCredentialSource +from .v1_vgpu_display_options import V1VGPUDisplayOptions +from .v1_vgpu_options import V1VGPUOptions from .v1_virtual_machine import V1VirtualMachine from .v1_virtual_machine_condition import V1VirtualMachineCondition from .v1_virtual_machine_instance import V1VirtualMachineInstance diff --git a/kubevirt/models/v1_gpu.py b/kubevirt/models/v1_gpu.py index 16fd24e9..6eb0400e 100644 --- a/kubevirt/models/v1_gpu.py +++ b/kubevirt/models/v1_gpu.py @@ -32,24 +32,29 @@ class V1GPU(object): """ swagger_types = { 'device_name': 'str', - 'name': 'str' + 'name': 'str', + 'virtual_gpu_options': 'V1VGPUOptions' } attribute_map = { 'device_name': 'deviceName', - 'name': 'name' + 'name': 'name', + 'virtual_gpu_options': 'virtualGPUOptions' } - def __init__(self, device_name=None, name=None): + def __init__(self, device_name=None, name=None, virtual_gpu_options=None): """ V1GPU - a model defined in Swagger """ self._device_name = None self._name = None + self._virtual_gpu_options = None self.device_name = device_name self.name = name + if virtual_gpu_options is not None: + self.virtual_gpu_options = virtual_gpu_options @property def device_name(self): @@ -99,6 +104,27 @@ def name(self, name): self._name = name + @property + def virtual_gpu_options(self): + """ + Gets the virtual_gpu_options of this V1GPU. + + :return: The virtual_gpu_options of this V1GPU. + :rtype: V1VGPUOptions + """ + return self._virtual_gpu_options + + @virtual_gpu_options.setter + def virtual_gpu_options(self, virtual_gpu_options): + """ + Sets the virtual_gpu_options of this V1GPU. + + :param virtual_gpu_options: The virtual_gpu_options of this V1GPU. + :type: V1VGPUOptions + """ + + self._virtual_gpu_options = virtual_gpu_options + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_vgpu_display_options.py b/kubevirt/models/v1_vgpu_display_options.py new file mode 100644 index 00000000..0c4683e4 --- /dev/null +++ b/kubevirt/models/v1_vgpu_display_options.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VGPUDisplayOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'enabled': 'bool', + 'ram_fb': 'V1FeatureState' + } + + attribute_map = { + 'enabled': 'enabled', + 'ram_fb': 'ramFB' + } + + def __init__(self, enabled=None, ram_fb=None): + """ + V1VGPUDisplayOptions - a model defined in Swagger + """ + + self._enabled = None + self._ram_fb = None + + if enabled is not None: + self.enabled = enabled + if ram_fb is not None: + self.ram_fb = ram_fb + + @property + def enabled(self): + """ + Gets the enabled of this V1VGPUDisplayOptions. + Enabled determines if a display addapter backed by a vGPU should be enabled or disabled on the guest. Defaults to true. + + :return: The enabled of this V1VGPUDisplayOptions. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """ + Sets the enabled of this V1VGPUDisplayOptions. + Enabled determines if a display addapter backed by a vGPU should be enabled or disabled on the guest. Defaults to true. + + :param enabled: The enabled of this V1VGPUDisplayOptions. + :type: bool + """ + + self._enabled = enabled + + @property + def ram_fb(self): + """ + Gets the ram_fb of this V1VGPUDisplayOptions. + Enables a boot framebuffer, until the guest OS loads a real GPU driver Defaults to true. + + :return: The ram_fb of this V1VGPUDisplayOptions. + :rtype: V1FeatureState + """ + return self._ram_fb + + @ram_fb.setter + def ram_fb(self, ram_fb): + """ + Sets the ram_fb of this V1VGPUDisplayOptions. + Enables a boot framebuffer, until the guest OS loads a real GPU driver Defaults to true. + + :param ram_fb: The ram_fb of this V1VGPUDisplayOptions. + :type: V1FeatureState + """ + + self._ram_fb = ram_fb + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VGPUDisplayOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_vgpu_options.py b/kubevirt/models/v1_vgpu_options.py new file mode 100644 index 00000000..f3dd0a71 --- /dev/null +++ b/kubevirt/models/v1_vgpu_options.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VGPUOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'display': 'V1VGPUDisplayOptions' + } + + attribute_map = { + 'display': 'display' + } + + def __init__(self, display=None): + """ + V1VGPUOptions - a model defined in Swagger + """ + + self._display = None + + if display is not None: + self.display = display + + @property + def display(self): + """ + Gets the display of this V1VGPUOptions. + + :return: The display of this V1VGPUOptions. + :rtype: V1VGPUDisplayOptions + """ + return self._display + + @display.setter + def display(self, display): + """ + Sets the display of this V1VGPUOptions. + + :param display: The display of this V1VGPUOptions. + :type: V1VGPUDisplayOptions + """ + + self._display = display + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VGPUOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 706fc703..1e466987 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.47.0-72-gedb06ee7d" +VERSION = "v0.47.0-rc.0-99-gcd6410b42" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 870877de..1052a883 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.47.0-72-gedb06ee7d" +"packageVersion": "v0.47.0-rc.0-99-gcd6410b42" } diff --git a/test/test_v1_vgpu_display_options.py b/test/test_v1_vgpu_display_options.py new file mode 100644 index 00000000..74298cec --- /dev/null +++ b/test/test_v1_vgpu_display_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_vgpu_display_options import V1VGPUDisplayOptions + + +class TestV1VGPUDisplayOptions(unittest.TestCase): + """ V1VGPUDisplayOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VGPUDisplayOptions(self): + """ + Test V1VGPUDisplayOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_vgpu_display_options.V1VGPUDisplayOptions() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_vgpu_options.py b/test/test_v1_vgpu_options.py new file mode 100644 index 00000000..36c05dfc --- /dev/null +++ b/test/test_v1_vgpu_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_vgpu_options import V1VGPUOptions + + +class TestV1VGPUOptions(unittest.TestCase): + """ V1VGPUOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VGPUOptions(self): + """ + Test V1VGPUOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_vgpu_options.V1VGPUOptions() + pass + + +if __name__ == '__main__': + unittest.main() From d2b5f13cb26e97535879f6f370e054d1e8a56ee3 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 18 Nov 2021 13:57:27 +0000 Subject: [PATCH 240/521] Client Python update by KubeVirt Prow build 1461318052128755712 --- README.md | 3 +- docs/V1Devices.md | 1 + docs/V1SoundDevice.md | 10 +++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_devices.py | 30 ++++++- kubevirt/models/v1_sound_device.py | 125 +++++++++++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_sound_device.py | 44 ++++++++++ 14 files changed, 221 insertions(+), 7 deletions(-) create mode 100644 docs/V1SoundDevice.md create mode 100644 kubevirt/models/v1_sound_device.py create mode 100644 test/test_v1_sound_device.py diff --git a/README.md b/README.md index fb3ad258..c9c8a751 100644 --- a/README.md +++ b/README.md @@ -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: v0.47.0-rc.0-99-gcd6410b42 +- Package version: v0.47.0-rc.0-143-g8d8fad326 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -429,6 +429,7 @@ Class | Method | HTTP request | Description - [V1SSHPublicKeyAccessCredentialSource](docs/V1SSHPublicKeyAccessCredentialSource.md) - [V1SecretVolumeSource](docs/V1SecretVolumeSource.md) - [V1ServiceAccountVolumeSource](docs/V1ServiceAccountVolumeSource.md) + - [V1SoundDevice](docs/V1SoundDevice.md) - [V1StartOptions](docs/V1StartOptions.md) - [V1StopOptions](docs/V1StopOptions.md) - [V1SyNICTimer](docs/V1SyNICTimer.md) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index 48717623..8063ed3f 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **interfaces** | [**list[V1Interface]**](V1Interface.md) | Interfaces describe network interfaces which are added to the vmi. | [optional] **network_interface_multiqueue** | **bool** | If specified, virtual network interfaces configured with a virtio bus will also enable the vhost multiqueue feature for network devices. The number of queues created depends on additional factors of the VirtualMachineInstance, like the number of guest CPUs. | [optional] **rng** | [**V1Rng**](V1Rng.md) | Whether to have random number generator from host | [optional] +**sound** | [**V1SoundDevice**](V1SoundDevice.md) | Whether to emulate a sound device. | [optional] **use_virtio_transitional** | **bool** | Fall back to legacy virtio 0.9 support if virtio bus is selected on devices. This is helpful for old machines like CentOS6 or RHEL6 which do not understand virtio_non_transitional (virtio 1.0). | [optional] **watchdog** | [**V1Watchdog**](V1Watchdog.md) | Watchdog describes a watchdog device which can be added to the vmi. | [optional] diff --git a/docs/V1SoundDevice.md b/docs/V1SoundDevice.md new file mode 100644 index 00000000..ac86c1c8 --- /dev/null +++ b/docs/V1SoundDevice.md @@ -0,0 +1,10 @@ +# V1SoundDevice + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**model** | **str** | We only support ich9 or ac97. If SoundDevice is not set: No sound card is emulated. If SoundDevice is set but Model is not: ich9 | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 0bebe914..f2a92e45 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.47.0-rc.0-99-gcd6410b42" + release_note="Auto-generated client v0.47.0-rc.0-143-g8d8fad326" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 27dce7ae..5bb90e24 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -538,6 +538,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_service_account_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_service_account_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ServiceAccountVolumeSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_sound_device.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sound_device.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SoundDevice.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_start_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_start_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1StartOptions.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index e4dc66b5..6042ddbd 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -187,6 +187,7 @@ from .models.v1_ssh_public_key_access_credential_source import V1SSHPublicKeyAccessCredentialSource from .models.v1_secret_volume_source import V1SecretVolumeSource from .models.v1_service_account_volume_source import V1ServiceAccountVolumeSource +from .models.v1_sound_device import V1SoundDevice from .models.v1_start_options import V1StartOptions from .models.v1_stop_options import V1StopOptions from .models.v1_sy_nic_timer import V1SyNICTimer diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index b68060dd..28b64b39 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.47.0-rc.0-99-gcd6410b42/python' + self.user_agent = 'Swagger-Codegen/v0.47.0-rc.0-143-g8d8fad326/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 7b6c4354..b84ec57e 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.47.0-rc.0-99-gcd6410b42".\ + "SDK Package Version: v0.47.0-rc.0-143-g8d8fad326".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index ff19b8d9..58046263 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -187,6 +187,7 @@ from .v1_ssh_public_key_access_credential_source import V1SSHPublicKeyAccessCredentialSource from .v1_secret_volume_source import V1SecretVolumeSource from .v1_service_account_volume_source import V1ServiceAccountVolumeSource +from .v1_sound_device import V1SoundDevice from .v1_start_options import V1StartOptions from .v1_stop_options import V1StopOptions from .v1_sy_nic_timer import V1SyNICTimer diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index 474bd17b..c587f510 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -46,6 +46,7 @@ class V1Devices(object): 'interfaces': 'list[V1Interface]', 'network_interface_multiqueue': 'bool', 'rng': 'V1Rng', + 'sound': 'V1SoundDevice', 'use_virtio_transitional': 'bool', 'watchdog': 'V1Watchdog' } @@ -66,11 +67,12 @@ class V1Devices(object): 'interfaces': 'interfaces', 'network_interface_multiqueue': 'networkInterfaceMultiqueue', 'rng': 'rng', + 'sound': 'sound', 'use_virtio_transitional': 'useVirtioTransitional', 'watchdog': 'watchdog' } - def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, autoattach_pod_interface=None, autoattach_serial_console=None, block_multi_queue=None, client_passthrough=None, disable_hotplug=None, disks=None, filesystems=None, gpus=None, host_devices=None, inputs=None, interfaces=None, network_interface_multiqueue=None, rng=None, use_virtio_transitional=None, watchdog=None): + def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, autoattach_pod_interface=None, autoattach_serial_console=None, block_multi_queue=None, client_passthrough=None, disable_hotplug=None, disks=None, filesystems=None, gpus=None, host_devices=None, inputs=None, interfaces=None, network_interface_multiqueue=None, rng=None, sound=None, use_virtio_transitional=None, watchdog=None): """ V1Devices - a model defined in Swagger """ @@ -90,6 +92,7 @@ def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, self._interfaces = None self._network_interface_multiqueue = None self._rng = None + self._sound = None self._use_virtio_transitional = None self._watchdog = None @@ -123,6 +126,8 @@ def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, self.network_interface_multiqueue = network_interface_multiqueue if rng is not None: self.rng = rng + if sound is not None: + self.sound = sound if use_virtio_transitional is not None: self.use_virtio_transitional = use_virtio_transitional if watchdog is not None: @@ -473,6 +478,29 @@ def rng(self, rng): self._rng = rng + @property + def sound(self): + """ + Gets the sound of this V1Devices. + Whether to emulate a sound device. + + :return: The sound of this V1Devices. + :rtype: V1SoundDevice + """ + return self._sound + + @sound.setter + def sound(self, sound): + """ + Sets the sound of this V1Devices. + Whether to emulate a sound device. + + :param sound: The sound of this V1Devices. + :type: V1SoundDevice + """ + + self._sound = sound + @property def use_virtio_transitional(self): """ diff --git a/kubevirt/models/v1_sound_device.py b/kubevirt/models/v1_sound_device.py new file mode 100644 index 00000000..1b2a44dd --- /dev/null +++ b/kubevirt/models/v1_sound_device.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SoundDevice(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'model': 'str' + } + + attribute_map = { + 'model': 'model' + } + + def __init__(self, model=None): + """ + V1SoundDevice - a model defined in Swagger + """ + + self._model = None + + if model is not None: + self.model = model + + @property + def model(self): + """ + Gets the model of this V1SoundDevice. + We only support ich9 or ac97. If SoundDevice is not set: No sound card is emulated. If SoundDevice is set but Model is not: ich9 + + :return: The model of this V1SoundDevice. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """ + Sets the model of this V1SoundDevice. + We only support ich9 or ac97. If SoundDevice is not set: No sound card is emulated. If SoundDevice is set but Model is not: ich9 + + :param model: The model of this V1SoundDevice. + :type: str + """ + + self._model = model + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1SoundDevice): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 1e466987..fceb4554 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.47.0-rc.0-99-gcd6410b42" +VERSION = "v0.47.0-rc.0-143-g8d8fad326" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 1052a883..c30a7c67 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.47.0-rc.0-99-gcd6410b42" +"packageVersion": "v0.47.0-rc.0-143-g8d8fad326" } diff --git a/test/test_v1_sound_device.py b/test/test_v1_sound_device.py new file mode 100644 index 00000000..6c2a92d6 --- /dev/null +++ b/test/test_v1_sound_device.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_sound_device import V1SoundDevice + + +class TestV1SoundDevice(unittest.TestCase): + """ V1SoundDevice unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SoundDevice(self): + """ + Test V1SoundDevice + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_sound_device.V1SoundDevice() + pass + + +if __name__ == '__main__': + unittest.main() From fc2116ee0e8b0e85c4803c72c98ca8566b2b51f1 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 19 Nov 2021 02:41:22 +0000 Subject: [PATCH 241/521] Client Python update by KubeVirt Prow build 1461513901857312768 --- README.md | 2 +- docs/V1KubeVirtSpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_kube_virt_spec.py | 30 +++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c9c8a751..1020e702 100644 --- a/README.md +++ b/README.md @@ -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: v0.47.0-rc.0-143-g8d8fad326 +- Package version: v0.47.0-rc.0-152-g059646307 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1KubeVirtSpec.md b/docs/V1KubeVirtSpec.md index 6cc9ed2d..c727146e 100644 --- a/docs/V1KubeVirtSpec.md +++ b/docs/V1KubeVirtSpec.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **infra** | [**V1ComponentConfig**](V1ComponentConfig.md) | selectors and tolerations that should apply to KubeVirt infrastructure components | [optional] **monitor_account** | **str** | The name of the Prometheus service account that needs read-access to KubeVirt endpoints Defaults to prometheus-k8s | [optional] **monitor_namespace** | **str** | The namespace Prometheus is deployed in Defaults to openshift-monitor | [optional] +**product_component** | **str** | Designate the apps.kubevirt.io/component label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductComponent is not specified, the component label default value is kubevirt. | [optional] **product_name** | **str** | Designate the apps.kubevirt.io/part-of label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductName is not specified, the part-of label will be omitted. | [optional] **product_version** | **str** | Designate the apps.kubevirt.io/version label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductVersion is not specified, KubeVirt's version will be used. | [optional] **uninstall_strategy** | **str** | Specifies if kubevirt can be deleted if workloads are still present. This is mainly a precaution to avoid accidental data loss | [optional] diff --git a/git_push.sh b/git_push.sh index f2a92e45..fc92ae72 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.47.0-rc.0-143-g8d8fad326" + release_note="Auto-generated client v0.47.0-rc.0-152-g059646307" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 28b64b39..3dcb2422 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.47.0-rc.0-143-g8d8fad326/python' + self.user_agent = 'Swagger-Codegen/v0.47.0-rc.0-152-g059646307/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index b84ec57e..8b2a9208 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.47.0-rc.0-143-g8d8fad326".\ + "SDK Package Version: v0.47.0-rc.0-152-g059646307".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_kube_virt_spec.py b/kubevirt/models/v1_kube_virt_spec.py index c6d47c8d..1f5bfb1a 100644 --- a/kubevirt/models/v1_kube_virt_spec.py +++ b/kubevirt/models/v1_kube_virt_spec.py @@ -40,6 +40,7 @@ class V1KubeVirtSpec(object): 'infra': 'V1ComponentConfig', 'monitor_account': 'str', 'monitor_namespace': 'str', + 'product_component': 'str', 'product_name': 'str', 'product_version': 'str', 'uninstall_strategy': 'str', @@ -57,6 +58,7 @@ class V1KubeVirtSpec(object): 'infra': 'infra', 'monitor_account': 'monitorAccount', 'monitor_namespace': 'monitorNamespace', + 'product_component': 'productComponent', 'product_name': 'productName', 'product_version': 'productVersion', 'uninstall_strategy': 'uninstallStrategy', @@ -64,7 +66,7 @@ class V1KubeVirtSpec(object): 'workloads': 'workloads' } - def __init__(self, certificate_rotate_strategy=None, configuration=None, customize_components=None, image_pull_policy=None, image_registry=None, image_tag=None, infra=None, monitor_account=None, monitor_namespace=None, product_name=None, product_version=None, uninstall_strategy=None, workload_update_strategy=None, workloads=None): + def __init__(self, certificate_rotate_strategy=None, configuration=None, customize_components=None, image_pull_policy=None, image_registry=None, image_tag=None, infra=None, monitor_account=None, monitor_namespace=None, product_component=None, product_name=None, product_version=None, uninstall_strategy=None, workload_update_strategy=None, workloads=None): """ V1KubeVirtSpec - a model defined in Swagger """ @@ -78,6 +80,7 @@ def __init__(self, certificate_rotate_strategy=None, configuration=None, customi self._infra = None self._monitor_account = None self._monitor_namespace = None + self._product_component = None self._product_name = None self._product_version = None self._uninstall_strategy = None @@ -102,6 +105,8 @@ def __init__(self, certificate_rotate_strategy=None, configuration=None, customi self.monitor_account = monitor_account if monitor_namespace is not None: self.monitor_namespace = monitor_namespace + if product_component is not None: + self.product_component = product_component if product_name is not None: self.product_name = product_name if product_version is not None: @@ -316,6 +321,29 @@ def monitor_namespace(self, monitor_namespace): self._monitor_namespace = monitor_namespace + @property + def product_component(self): + """ + Gets the product_component of this V1KubeVirtSpec. + Designate the apps.kubevirt.io/component label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductComponent is not specified, the component label default value is kubevirt. + + :return: The product_component of this V1KubeVirtSpec. + :rtype: str + """ + return self._product_component + + @product_component.setter + def product_component(self, product_component): + """ + Sets the product_component of this V1KubeVirtSpec. + Designate the apps.kubevirt.io/component label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductComponent is not specified, the component label default value is kubevirt. + + :param product_component: The product_component of this V1KubeVirtSpec. + :type: str + """ + + self._product_component = product_component + @property def product_name(self): """ diff --git a/setup.py b/setup.py index fceb4554..49c4efd7 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.47.0-rc.0-143-g8d8fad326" +VERSION = "v0.47.0-rc.0-152-g059646307" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index c30a7c67..bc9b7fa1 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.47.0-rc.0-143-g8d8fad326" +"packageVersion": "v0.47.0-rc.0-152-g059646307" } From 8acfea1ece7d7cc4d9c59c100382c41f6d5946b4 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Mon, 22 Nov 2021 18:12:32 +0000 Subject: [PATCH 242/521] Client Python update by KubeVirt Prow build 1462837742848184320 --- README.md | 4 +- docs/DefaultApi.md | 24 ++-- docs/V1PauseOptions.md | 12 ++ docs/V1UnpauseOptions.md | 12 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 + kubevirt/__init__.py | 2 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 84 ++++++++---- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 + kubevirt/models/v1_pause_options.py | 181 ++++++++++++++++++++++++++ kubevirt/models/v1_unpause_options.py | 181 ++++++++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_pause_options.py | 44 +++++++ test/test_v1_unpause_options.py | 44 +++++++ 17 files changed, 564 insertions(+), 42 deletions(-) create mode 100644 docs/V1PauseOptions.md create mode 100644 docs/V1UnpauseOptions.md create mode 100644 kubevirt/models/v1_pause_options.py create mode 100644 kubevirt/models/v1_unpause_options.py create mode 100644 test/test_v1_pause_options.py create mode 100644 test/test_v1_unpause_options.py diff --git a/README.md b/README.md index 1020e702..c17d2f2b 100644 --- a/README.md +++ b/README.md @@ -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: v0.47.0-rc.0-152-g059646307 +- Package version: v0.47.0-rc.0-179-ge55d7257b - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -405,6 +405,7 @@ Class | Method | HTTP request | Description - [V1NetworkConfiguration](docs/V1NetworkConfiguration.md) - [V1NodePlacement](docs/V1NodePlacement.md) - [V1PITTimer](docs/V1PITTimer.md) + - [V1PauseOptions](docs/V1PauseOptions.md) - [V1PciHostDevice](docs/V1PciHostDevice.md) - [V1PermittedHostDevices](docs/V1PermittedHostDevices.md) - [V1PersistentVolumeClaimInfo](docs/V1PersistentVolumeClaimInfo.md) @@ -437,6 +438,7 @@ Class | Method | HTTP request | Description - [V1Timer](docs/V1Timer.md) - [V1TokenBucketRateLimiter](docs/V1TokenBucketRateLimiter.md) - [V1TopologyHints](docs/V1TopologyHints.md) + - [V1UnpauseOptions](docs/V1UnpauseOptions.md) - [V1UserPasswordAccessCredential](docs/V1UserPasswordAccessCredential.md) - [V1UserPasswordAccessCredentialPropagationMethod](docs/V1UserPasswordAccessCredentialPropagationMethod.md) - [V1UserPasswordAccessCredentialSource](docs/V1UserPasswordAccessCredentialSource.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index a43f83e5..7e89f971 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -5898,7 +5898,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1_pause** -> str v1_pause(name, namespace) +> str v1_pause(name, namespace, body) @@ -5916,9 +5916,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1PauseOptions() # V1PauseOptions | try: - api_response = api_instance.v1_pause(name, namespace) + api_response = api_instance.v1_pause(name, namespace, body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->v1_pause: %s\n" % e) @@ -5930,6 +5931,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1PauseOptions**](V1PauseOptions.md)| | ### Return type @@ -6197,7 +6199,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1_unpause** -> str v1_unpause(name, namespace) +> str v1_unpause(name, namespace, body) @@ -6215,9 +6217,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1UnpauseOptions() # V1UnpauseOptions | try: - api_response = api_instance.v1_unpause(name, namespace) + api_response = api_instance.v1_unpause(name, namespace, body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->v1_unpause: %s\n" % e) @@ -6229,6 +6232,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1UnpauseOptions**](V1UnpauseOptions.md)| | ### Return type @@ -6744,7 +6748,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1alpha3_pause** -> str v1alpha3_pause(name, namespace) +> str v1alpha3_pause(name, namespace, body) @@ -6762,9 +6766,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1PauseOptions() # V1PauseOptions | try: - api_response = api_instance.v1alpha3_pause(name, namespace) + api_response = api_instance.v1alpha3_pause(name, namespace, body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->v1alpha3_pause: %s\n" % e) @@ -6776,6 +6781,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1PauseOptions**](V1PauseOptions.md)| | ### Return type @@ -7043,7 +7049,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1alpha3_unpause** -> str v1alpha3_unpause(name, namespace) +> str v1alpha3_unpause(name, namespace, body) @@ -7061,9 +7067,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1UnpauseOptions() # V1UnpauseOptions | try: - api_response = api_instance.v1alpha3_unpause(name, namespace) + api_response = api_instance.v1alpha3_unpause(name, namespace, body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->v1alpha3_unpause: %s\n" % e) @@ -7075,6 +7082,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1UnpauseOptions**](V1UnpauseOptions.md)| | ### Return type diff --git a/docs/V1PauseOptions.md b/docs/V1PauseOptions.md new file mode 100644 index 00000000..7dee512e --- /dev/null +++ b/docs/V1PauseOptions.md @@ -0,0 +1,12 @@ +# V1PauseOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**dry_run** | **list[str]** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1UnpauseOptions.md b/docs/V1UnpauseOptions.md new file mode 100644 index 00000000..9299053f --- /dev/null +++ b/docs/V1UnpauseOptions.md @@ -0,0 +1,12 @@ +# V1UnpauseOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**dry_run** | **list[str]** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index fc92ae72..81b10975 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.47.0-rc.0-152-g059646307" + release_note="Auto-generated client v0.47.0-rc.0-179-ge55d7257b" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 5bb90e24..a4356dc7 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -466,6 +466,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_pit_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pit_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PITTimer.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_pause_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pause_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PauseOptions.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_pci_host_device.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pci_host_device.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PciHostDevice.md @@ -562,6 +565,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_topology_hints.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_topology_hints.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1TopologyHints.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_unpause_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_unpause_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1UnpauseOptions.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_user_password_access_credential.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_user_password_access_credential.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1UserPasswordAccessCredential.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 6042ddbd..77200ff1 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -163,6 +163,7 @@ from .models.v1_network_configuration import V1NetworkConfiguration from .models.v1_node_placement import V1NodePlacement from .models.v1_pit_timer import V1PITTimer +from .models.v1_pause_options import V1PauseOptions from .models.v1_pci_host_device import V1PciHostDevice from .models.v1_permitted_host_devices import V1PermittedHostDevices from .models.v1_persistent_volume_claim_info import V1PersistentVolumeClaimInfo @@ -195,6 +196,7 @@ from .models.v1_timer import V1Timer from .models.v1_token_bucket_rate_limiter import V1TokenBucketRateLimiter from .models.v1_topology_hints import V1TopologyHints +from .models.v1_unpause_options import V1UnpauseOptions from .models.v1_user_password_access_credential import V1UserPasswordAccessCredential from .models.v1_user_password_access_credential_propagation_method import V1UserPasswordAccessCredentialPropagationMethod from .models.v1_user_password_access_credential_source import V1UserPasswordAccessCredentialSource diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 3dcb2422..6e0b5d10 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.47.0-rc.0-152-g059646307/python' + self.user_agent = 'Swagger-Codegen/v0.47.0-rc.0-179-ge55d7257b/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 926c0312..22732a52 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -12478,7 +12478,7 @@ def v1_migrate_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_pause(self, name, namespace, **kwargs): + def v1_pause(self, name, namespace, body, **kwargs): """ Pause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an @@ -12487,24 +12487,25 @@ def v1_pause(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_pause(name, namespace, callback=callback_function) + >>> thread = api.v1_pause(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1PauseOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_pause_with_http_info(name, namespace, **kwargs) + return self.v1_pause_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1_pause_with_http_info(name, namespace, **kwargs) + (data) = self.v1_pause_with_http_info(name, namespace, body, **kwargs) return data - def v1_pause_with_http_info(self, name, namespace, **kwargs): + def v1_pause_with_http_info(self, name, namespace, body, **kwargs): """ Pause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an @@ -12513,18 +12514,19 @@ def v1_pause_with_http_info(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_pause_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1_pause_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1PauseOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -12545,6 +12547,9 @@ def v1_pause_with_http_info(self, name, namespace, **kwargs): # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `v1_pause`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1_pause`") collection_formats = {} @@ -12563,6 +12568,8 @@ def v1_pause_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] @@ -13111,7 +13118,7 @@ def v1_unfreeze_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_unpause(self, name, namespace, **kwargs): + def v1_unpause(self, name, namespace, body, **kwargs): """ Unpause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an @@ -13120,24 +13127,25 @@ def v1_unpause(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_unpause(name, namespace, callback=callback_function) + >>> thread = api.v1_unpause(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1UnpauseOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_unpause_with_http_info(name, namespace, **kwargs) + return self.v1_unpause_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1_unpause_with_http_info(name, namespace, **kwargs) + (data) = self.v1_unpause_with_http_info(name, namespace, body, **kwargs) return data - def v1_unpause_with_http_info(self, name, namespace, **kwargs): + def v1_unpause_with_http_info(self, name, namespace, body, **kwargs): """ Unpause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an @@ -13146,18 +13154,19 @@ def v1_unpause_with_http_info(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_unpause_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1_unpause_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1UnpauseOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -13178,6 +13187,9 @@ def v1_unpause_with_http_info(self, name, namespace, **kwargs): # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `v1_unpause`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1_unpause`") collection_formats = {} @@ -13196,6 +13208,8 @@ def v1_unpause_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] @@ -14304,7 +14318,7 @@ def v1alpha3_migrate_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_pause(self, name, namespace, **kwargs): + def v1alpha3_pause(self, name, namespace, body, **kwargs): """ Pause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an @@ -14313,24 +14327,25 @@ def v1alpha3_pause(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_pause(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_pause(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1PauseOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_pause_with_http_info(name, namespace, **kwargs) + return self.v1alpha3_pause_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1alpha3_pause_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3_pause_with_http_info(name, namespace, body, **kwargs) return data - def v1alpha3_pause_with_http_info(self, name, namespace, **kwargs): + def v1alpha3_pause_with_http_info(self, name, namespace, body, **kwargs): """ Pause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an @@ -14339,18 +14354,19 @@ def v1alpha3_pause_with_http_info(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_pause_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_pause_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1PauseOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -14371,6 +14387,9 @@ def v1alpha3_pause_with_http_info(self, name, namespace, **kwargs): # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_pause`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3_pause`") collection_formats = {} @@ -14389,6 +14408,8 @@ def v1alpha3_pause_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] @@ -14937,7 +14958,7 @@ def v1alpha3_unfreeze_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_unpause(self, name, namespace, **kwargs): + def v1alpha3_unpause(self, name, namespace, body, **kwargs): """ Unpause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an @@ -14946,24 +14967,25 @@ def v1alpha3_unpause(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_unpause(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_unpause(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1UnpauseOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_unpause_with_http_info(name, namespace, **kwargs) + return self.v1alpha3_unpause_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1alpha3_unpause_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3_unpause_with_http_info(name, namespace, body, **kwargs) return data - def v1alpha3_unpause_with_http_info(self, name, namespace, **kwargs): + def v1alpha3_unpause_with_http_info(self, name, namespace, body, **kwargs): """ Unpause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an @@ -14972,18 +14994,19 @@ def v1alpha3_unpause_with_http_info(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_unpause_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_unpause_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1UnpauseOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -15004,6 +15027,9 @@ def v1alpha3_unpause_with_http_info(self, name, namespace, **kwargs): # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_unpause`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3_unpause`") collection_formats = {} @@ -15022,6 +15048,8 @@ def v1alpha3_unpause_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 8b2a9208..51fcade7 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.47.0-rc.0-152-g059646307".\ + "SDK Package Version: v0.47.0-rc.0-179-ge55d7257b".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 58046263..fb1e99b7 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -163,6 +163,7 @@ from .v1_network_configuration import V1NetworkConfiguration from .v1_node_placement import V1NodePlacement from .v1_pit_timer import V1PITTimer +from .v1_pause_options import V1PauseOptions from .v1_pci_host_device import V1PciHostDevice from .v1_permitted_host_devices import V1PermittedHostDevices from .v1_persistent_volume_claim_info import V1PersistentVolumeClaimInfo @@ -195,6 +196,7 @@ from .v1_timer import V1Timer from .v1_token_bucket_rate_limiter import V1TokenBucketRateLimiter from .v1_topology_hints import V1TopologyHints +from .v1_unpause_options import V1UnpauseOptions from .v1_user_password_access_credential import V1UserPasswordAccessCredential from .v1_user_password_access_credential_propagation_method import V1UserPasswordAccessCredentialPropagationMethod from .v1_user_password_access_credential_source import V1UserPasswordAccessCredentialSource diff --git a/kubevirt/models/v1_pause_options.py b/kubevirt/models/v1_pause_options.py new file mode 100644 index 00000000..9ed00f27 --- /dev/null +++ b/kubevirt/models/v1_pause_options.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PauseOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'dry_run': 'list[str]', + 'kind': 'str' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'dry_run': 'dryRun', + 'kind': 'kind' + } + + def __init__(self, api_version=None, dry_run=None, kind=None): + """ + V1PauseOptions - a model defined in Swagger + """ + + self._api_version = None + self._dry_run = None + self._kind = None + + if api_version is not None: + self.api_version = api_version + if dry_run is not None: + self.dry_run = dry_run + if kind is not None: + self.kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1PauseOptions. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1PauseOptions. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1PauseOptions. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1PauseOptions. + :type: str + """ + + self._api_version = api_version + + @property + def dry_run(self): + """ + Gets the dry_run of this V1PauseOptions. + When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + + :return: The dry_run of this V1PauseOptions. + :rtype: list[str] + """ + return self._dry_run + + @dry_run.setter + def dry_run(self, dry_run): + """ + Sets the dry_run of this V1PauseOptions. + When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + + :param dry_run: The dry_run of this V1PauseOptions. + :type: list[str] + """ + + self._dry_run = dry_run + + @property + def kind(self): + """ + Gets the kind of this V1PauseOptions. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1PauseOptions. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1PauseOptions. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1PauseOptions. + :type: str + """ + + self._kind = kind + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1PauseOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_unpause_options.py b/kubevirt/models/v1_unpause_options.py new file mode 100644 index 00000000..b1350985 --- /dev/null +++ b/kubevirt/models/v1_unpause_options.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1UnpauseOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'dry_run': 'list[str]', + 'kind': 'str' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'dry_run': 'dryRun', + 'kind': 'kind' + } + + def __init__(self, api_version=None, dry_run=None, kind=None): + """ + V1UnpauseOptions - a model defined in Swagger + """ + + self._api_version = None + self._dry_run = None + self._kind = None + + if api_version is not None: + self.api_version = api_version + if dry_run is not None: + self.dry_run = dry_run + if kind is not None: + self.kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1UnpauseOptions. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1UnpauseOptions. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1UnpauseOptions. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1UnpauseOptions. + :type: str + """ + + self._api_version = api_version + + @property + def dry_run(self): + """ + Gets the dry_run of this V1UnpauseOptions. + When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + + :return: The dry_run of this V1UnpauseOptions. + :rtype: list[str] + """ + return self._dry_run + + @dry_run.setter + def dry_run(self, dry_run): + """ + Sets the dry_run of this V1UnpauseOptions. + When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + + :param dry_run: The dry_run of this V1UnpauseOptions. + :type: list[str] + """ + + self._dry_run = dry_run + + @property + def kind(self): + """ + Gets the kind of this V1UnpauseOptions. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1UnpauseOptions. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1UnpauseOptions. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1UnpauseOptions. + :type: str + """ + + self._kind = kind + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1UnpauseOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 49c4efd7..07fa4c77 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.47.0-rc.0-152-g059646307" +VERSION = "v0.47.0-rc.0-179-ge55d7257b" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index bc9b7fa1..8679df82 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.47.0-rc.0-152-g059646307" +"packageVersion": "v0.47.0-rc.0-179-ge55d7257b" } diff --git a/test/test_v1_pause_options.py b/test/test_v1_pause_options.py new file mode 100644 index 00000000..e0587100 --- /dev/null +++ b/test/test_v1_pause_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_pause_options import V1PauseOptions + + +class TestV1PauseOptions(unittest.TestCase): + """ V1PauseOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PauseOptions(self): + """ + Test V1PauseOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_pause_options.V1PauseOptions() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_unpause_options.py b/test/test_v1_unpause_options.py new file mode 100644 index 00000000..462704bd --- /dev/null +++ b/test/test_v1_unpause_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_unpause_options import V1UnpauseOptions + + +class TestV1UnpauseOptions(unittest.TestCase): + """ V1UnpauseOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1UnpauseOptions(self): + """ + Test V1UnpauseOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_unpause_options.V1UnpauseOptions() + pass + + +if __name__ == '__main__': + unittest.main() From 54fbb71fff3d72ec3083db7e49121a4b026eb0ba Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 25 Nov 2021 20:43:00 +0000 Subject: [PATCH 243/521] Client Python update by KubeVirt Prow build 1463962678178353152 --- README.md | 2 +- docs/V1KernelBootContainer.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_kernel_boot_container.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index c17d2f2b..2e6c9d49 100644 --- a/README.md +++ b/README.md @@ -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: v0.47.0-rc.0-179-ge55d7257b +- Package version: v0.47.0-rc.0-210-g0dec0afa9 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1KernelBootContainer.md b/docs/V1KernelBootContainer.md index c8360309..452a7d68 100644 --- a/docs/V1KernelBootContainer.md +++ b/docs/V1KernelBootContainer.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**image** | **str** | Image that container initrd / kernel files. | +**image** | **str** | Image that contains initrd / kernel files. | **image_pull_policy** | **str** | Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images | [optional] **image_pull_secret** | **str** | ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist. | [optional] **initrd_path** | **str** | the fully-qualified path to the ramdisk image in the host OS | [optional] diff --git a/git_push.sh b/git_push.sh index 81b10975..d46d1249 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.47.0-rc.0-179-ge55d7257b" + release_note="Auto-generated client v0.47.0-rc.0-210-g0dec0afa9" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 6e0b5d10..44de4f48 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.47.0-rc.0-179-ge55d7257b/python' + self.user_agent = 'Swagger-Codegen/v0.47.0-rc.0-210-g0dec0afa9/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 51fcade7..95a7925a 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.47.0-rc.0-179-ge55d7257b".\ + "SDK Package Version: v0.47.0-rc.0-210-g0dec0afa9".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_kernel_boot_container.py b/kubevirt/models/v1_kernel_boot_container.py index 58e74d04..2e2f944c 100644 --- a/kubevirt/models/v1_kernel_boot_container.py +++ b/kubevirt/models/v1_kernel_boot_container.py @@ -71,7 +71,7 @@ def __init__(self, image=None, image_pull_policy=None, image_pull_secret=None, i def image(self): """ Gets the image of this V1KernelBootContainer. - Image that container initrd / kernel files. + Image that contains initrd / kernel files. :return: The image of this V1KernelBootContainer. :rtype: str @@ -82,7 +82,7 @@ def image(self): def image(self, image): """ Sets the image of this V1KernelBootContainer. - Image that container initrd / kernel files. + Image that contains initrd / kernel files. :param image: The image of this V1KernelBootContainer. :type: str diff --git a/setup.py b/setup.py index 07fa4c77..5aa39ae6 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.47.0-rc.0-179-ge55d7257b" +VERSION = "v0.47.0-rc.0-210-g0dec0afa9" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 8679df82..cf9d2fef 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.47.0-rc.0-179-ge55d7257b" +"packageVersion": "v0.47.0-rc.0-210-g0dec0afa9" } From aff667c748be1d13349a269874b2bf0e038019e4 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 25 Nov 2021 20:58:06 +0000 Subject: [PATCH 244/521] Client Python update by KubeVirt Prow build 1463962651636797440 --- README.md | 2 +- docs/V1KernelBootContainer.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_kernel_boot_container.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 2e6c9d49..19a557c8 100644 --- a/README.md +++ b/README.md @@ -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: v0.47.0-rc.0-210-g0dec0afa9 +- Package version: v0.47.0-rc.0-207-g9f688a487 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1KernelBootContainer.md b/docs/V1KernelBootContainer.md index 452a7d68..c8360309 100644 --- a/docs/V1KernelBootContainer.md +++ b/docs/V1KernelBootContainer.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**image** | **str** | Image that contains initrd / kernel files. | +**image** | **str** | Image that container initrd / kernel files. | **image_pull_policy** | **str** | Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images | [optional] **image_pull_secret** | **str** | ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist. | [optional] **initrd_path** | **str** | the fully-qualified path to the ramdisk image in the host OS | [optional] diff --git a/git_push.sh b/git_push.sh index d46d1249..535eb4e8 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.47.0-rc.0-210-g0dec0afa9" + release_note="Auto-generated client v0.47.0-rc.0-207-g9f688a487" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 44de4f48..5bdf94f5 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.47.0-rc.0-210-g0dec0afa9/python' + self.user_agent = 'Swagger-Codegen/v0.47.0-rc.0-207-g9f688a487/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 95a7925a..d3de00c5 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.47.0-rc.0-210-g0dec0afa9".\ + "SDK Package Version: v0.47.0-rc.0-207-g9f688a487".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_kernel_boot_container.py b/kubevirt/models/v1_kernel_boot_container.py index 2e2f944c..58e74d04 100644 --- a/kubevirt/models/v1_kernel_boot_container.py +++ b/kubevirt/models/v1_kernel_boot_container.py @@ -71,7 +71,7 @@ def __init__(self, image=None, image_pull_policy=None, image_pull_secret=None, i def image(self): """ Gets the image of this V1KernelBootContainer. - Image that contains initrd / kernel files. + Image that container initrd / kernel files. :return: The image of this V1KernelBootContainer. :rtype: str @@ -82,7 +82,7 @@ def image(self): def image(self, image): """ Sets the image of this V1KernelBootContainer. - Image that contains initrd / kernel files. + Image that container initrd / kernel files. :param image: The image of this V1KernelBootContainer. :type: str diff --git a/setup.py b/setup.py index 5aa39ae6..9889d30f 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.47.0-rc.0-210-g0dec0afa9" +VERSION = "v0.47.0-rc.0-207-g9f688a487" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index cf9d2fef..3f2a5e6b 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.47.0-rc.0-210-g0dec0afa9" +"packageVersion": "v0.47.0-rc.0-207-g9f688a487" } From e09df3f1e01f3b2e83b9af0b527a690994ad0fa1 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 26 Nov 2021 03:11:28 +0000 Subject: [PATCH 245/521] Client Python update by KubeVirt Prow build 1464059886022168576 --- README.md | 2 +- docs/V1KernelBootContainer.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_kernel_boot_container.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 19a557c8..764810e3 100644 --- a/README.md +++ b/README.md @@ -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: v0.47.0-rc.0-207-g9f688a487 +- Package version: v0.47.0-rc.0-212-g9fd7bd484 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1KernelBootContainer.md b/docs/V1KernelBootContainer.md index c8360309..452a7d68 100644 --- a/docs/V1KernelBootContainer.md +++ b/docs/V1KernelBootContainer.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**image** | **str** | Image that container initrd / kernel files. | +**image** | **str** | Image that contains initrd / kernel files. | **image_pull_policy** | **str** | Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images | [optional] **image_pull_secret** | **str** | ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist. | [optional] **initrd_path** | **str** | the fully-qualified path to the ramdisk image in the host OS | [optional] diff --git a/git_push.sh b/git_push.sh index 535eb4e8..51f2ae1b 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.47.0-rc.0-207-g9f688a487" + release_note="Auto-generated client v0.47.0-rc.0-212-g9fd7bd484" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 5bdf94f5..93db9262 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.47.0-rc.0-207-g9f688a487/python' + self.user_agent = 'Swagger-Codegen/v0.47.0-rc.0-212-g9fd7bd484/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index d3de00c5..822cf36c 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.47.0-rc.0-207-g9f688a487".\ + "SDK Package Version: v0.47.0-rc.0-212-g9fd7bd484".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_kernel_boot_container.py b/kubevirt/models/v1_kernel_boot_container.py index 58e74d04..2e2f944c 100644 --- a/kubevirt/models/v1_kernel_boot_container.py +++ b/kubevirt/models/v1_kernel_boot_container.py @@ -71,7 +71,7 @@ def __init__(self, image=None, image_pull_policy=None, image_pull_secret=None, i def image(self): """ Gets the image of this V1KernelBootContainer. - Image that container initrd / kernel files. + Image that contains initrd / kernel files. :return: The image of this V1KernelBootContainer. :rtype: str @@ -82,7 +82,7 @@ def image(self): def image(self, image): """ Sets the image of this V1KernelBootContainer. - Image that container initrd / kernel files. + Image that contains initrd / kernel files. :param image: The image of this V1KernelBootContainer. :type: str diff --git a/setup.py b/setup.py index 9889d30f..b421f3d5 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.47.0-rc.0-207-g9f688a487" +VERSION = "v0.47.0-rc.0-212-g9fd7bd484" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 3f2a5e6b..c68884a2 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.47.0-rc.0-207-g9f688a487" +"packageVersion": "v0.47.0-rc.0-212-g9fd7bd484" } From 690d83002541513acef1d82f3f7e2b32e1f29c33 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Mon, 29 Nov 2021 00:31:26 +0000 Subject: [PATCH 246/521] Client Python update by KubeVirt Prow build 1465109970642014208 --- README.md | 2 +- docs/V1SoundDevice.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_sound_device.py | 35 +++++++++++++++++++++++++++--- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 39 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 764810e3..901d1ee7 100644 --- a/README.md +++ b/README.md @@ -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: v0.47.0-rc.0-212-g9fd7bd484 +- Package version: v0.47.0-rc.0-227-g4b4e3ab09 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1SoundDevice.md b/docs/V1SoundDevice.md index ac86c1c8..ce2029bf 100644 --- a/docs/V1SoundDevice.md +++ b/docs/V1SoundDevice.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **model** | **str** | We only support ich9 or ac97. If SoundDevice is not set: No sound card is emulated. If SoundDevice is set but Model is not: ich9 | [optional] +**name** | **str** | User's defined name for this sound device | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 51f2ae1b..29aa3561 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.47.0-rc.0-212-g9fd7bd484" + release_note="Auto-generated client v0.47.0-rc.0-227-g4b4e3ab09" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 93db9262..27b99b9a 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.47.0-rc.0-212-g9fd7bd484/python' + self.user_agent = 'Swagger-Codegen/v0.47.0-rc.0-227-g4b4e3ab09/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 822cf36c..6b11a064 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.47.0-rc.0-212-g9fd7bd484".\ + "SDK Package Version: v0.47.0-rc.0-227-g4b4e3ab09".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_sound_device.py b/kubevirt/models/v1_sound_device.py index 1b2a44dd..46385198 100644 --- a/kubevirt/models/v1_sound_device.py +++ b/kubevirt/models/v1_sound_device.py @@ -31,22 +31,26 @@ class V1SoundDevice(object): and the value is json key in definition. """ swagger_types = { - 'model': 'str' + 'model': 'str', + 'name': 'str' } attribute_map = { - 'model': 'model' + 'model': 'model', + 'name': 'name' } - def __init__(self, model=None): + def __init__(self, model=None, name=None): """ V1SoundDevice - a model defined in Swagger """ self._model = None + self._name = None if model is not None: self.model = model + self.name = name @property def model(self): @@ -71,6 +75,31 @@ def model(self, model): self._model = model + @property + def name(self): + """ + Gets the name of this V1SoundDevice. + User's defined name for this sound device + + :return: The name of this V1SoundDevice. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1SoundDevice. + User's defined name for this sound device + + :param name: The name of this V1SoundDevice. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index b421f3d5..050a3403 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.47.0-rc.0-212-g9fd7bd484" +VERSION = "v0.47.0-rc.0-227-g4b4e3ab09" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index c68884a2..38699064 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.47.0-rc.0-212-g9fd7bd484" +"packageVersion": "v0.47.0-rc.0-227-g4b4e3ab09" } From 6ba83ad7d038f6a8e7e61879eccd9bb545d3d2c0 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 1 Dec 2021 05:21:09 +0000 Subject: [PATCH 247/521] Client Python update by KubeVirt Prow build 1465905134960644096 --- README.md | 4 +- docs/DefaultApi.md | 100 +++++++++++++++++ git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 206 +++++++++++++++++++++++++++++++++++ kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 16 +++ 9 files changed, 330 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 901d1ee7..3cd133cb 100644 --- a/README.md +++ b/README.md @@ -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: v0.47.0-rc.0-227-g4b4e3ab09 +- Package version: v0.47.0-rc.0-274-g0119f397a - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -179,6 +179,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1_migrate**](docs/DefaultApi.md#v1_migrate) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | *DefaultApi* | [**v1_pause**](docs/DefaultApi.md#v1_pause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | *DefaultApi* | [**v1_restart**](docs/DefaultApi.md#v1_restart) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | +*DefaultApi* | [**v1_soft_reboot**](docs/DefaultApi.md#v1_soft_reboot) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/softreboot | *DefaultApi* | [**v1_start**](docs/DefaultApi.md#v1_start) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | *DefaultApi* | [**v1_stop**](docs/DefaultApi.md#v1_stop) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | *DefaultApi* | [**v1_test**](docs/DefaultApi.md#v1_test) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test | @@ -197,6 +198,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3_migrate**](docs/DefaultApi.md#v1alpha3_migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | *DefaultApi* | [**v1alpha3_pause**](docs/DefaultApi.md#v1alpha3_pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | *DefaultApi* | [**v1alpha3_restart**](docs/DefaultApi.md#v1alpha3_restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | +*DefaultApi* | [**v1alpha3_soft_reboot**](docs/DefaultApi.md#v1alpha3_soft_reboot) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/softreboot | *DefaultApi* | [**v1alpha3_start**](docs/DefaultApi.md#v1alpha3_start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | *DefaultApi* | [**v1alpha3_stop**](docs/DefaultApi.md#v1alpha3_stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | *DefaultApi* | [**v1alpha3_test**](docs/DefaultApi.md#v1alpha3_test) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test | diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 7e89f971..1e4f2a8d 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -113,6 +113,7 @@ Method | HTTP request | Description [**v1_migrate**](DefaultApi.md#v1_migrate) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | [**v1_pause**](DefaultApi.md#v1_pause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | [**v1_restart**](DefaultApi.md#v1_restart) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | +[**v1_soft_reboot**](DefaultApi.md#v1_soft_reboot) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/softreboot | [**v1_start**](DefaultApi.md#v1_start) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | [**v1_stop**](DefaultApi.md#v1_stop) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | [**v1_test**](DefaultApi.md#v1_test) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test | @@ -131,6 +132,7 @@ Method | HTTP request | Description [**v1alpha3_migrate**](DefaultApi.md#v1alpha3_migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | [**v1alpha3_pause**](DefaultApi.md#v1alpha3_pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | [**v1alpha3_restart**](DefaultApi.md#v1alpha3_restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | +[**v1alpha3_soft_reboot**](DefaultApi.md#v1alpha3_soft_reboot) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/softreboot | [**v1alpha3_start**](DefaultApi.md#v1alpha3_start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | [**v1alpha3_stop**](DefaultApi.md#v1alpha3_stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | [**v1alpha3_test**](DefaultApi.md#v1alpha3_test) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test | @@ -5999,6 +6001,55 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1_soft_reboot** +> str v1_soft_reboot(name, namespace) + + + +Soft reboot a VirtualMachineInstance object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1_soft_reboot(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1_soft_reboot: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1_start** > str v1_start(name, namespace, body) @@ -6849,6 +6900,55 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3_soft_reboot** +> str v1alpha3_soft_reboot(name, namespace) + + + +Soft reboot a VirtualMachineInstance object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1alpha3_soft_reboot(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_soft_reboot: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3_start** > str v1alpha3_start(name, namespace, body) diff --git a/git_push.sh b/git_push.sh index 29aa3561..2e854557 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.47.0-rc.0-227-g4b4e3ab09" + release_note="Auto-generated client v0.47.0-rc.0-274-g0119f397a" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 27b99b9a..acb04a5f 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.47.0-rc.0-227-g4b4e3ab09/python' + self.user_agent = 'Swagger-Codegen/v0.47.0-rc.0-274-g0119f397a/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 22732a52..deff64d0 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -12695,6 +12695,109 @@ def v1_restart_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1_soft_reboot(self, name, namespace, **kwargs): + """ + Soft reboot a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_soft_reboot(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1_soft_reboot_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1_soft_reboot_with_http_info(name, namespace, **kwargs) + return data + + def v1_soft_reboot_with_http_info(self, name, namespace, **kwargs): + """ + Soft reboot a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_soft_reboot_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1_soft_reboot" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1_soft_reboot`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1_soft_reboot`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/softreboot', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1_start(self, name, namespace, body, **kwargs): """ Start a VirtualMachine object. @@ -14535,6 +14638,109 @@ def v1alpha3_restart_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1alpha3_soft_reboot(self, name, namespace, **kwargs): + """ + Soft reboot a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_soft_reboot(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3_soft_reboot_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1alpha3_soft_reboot_with_http_info(name, namespace, **kwargs) + return data + + def v1alpha3_soft_reboot_with_http_info(self, name, namespace, **kwargs): + """ + Soft reboot a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_soft_reboot_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3_soft_reboot" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_soft_reboot`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_soft_reboot`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/softreboot', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1alpha3_start(self, name, namespace, body, **kwargs): """ Start a VirtualMachine object. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 6b11a064..35fdbdca 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.47.0-rc.0-227-g4b4e3ab09".\ + "SDK Package Version: v0.47.0-rc.0-274-g0119f397a".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index 050a3403..9a71d17d 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.47.0-rc.0-227-g4b4e3ab09" +VERSION = "v0.47.0-rc.0-274-g0119f397a" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 38699064..c7059e8c 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.47.0-rc.0-227-g4b4e3ab09" +"packageVersion": "v0.47.0-rc.0-274-g0119f397a" } diff --git a/test/test_default_api.py b/test/test_default_api.py index e7615c62..51370738 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -900,6 +900,14 @@ def test_v1_restart(self): Test case for v1_restart + """ + pass + + def test_v1_soft_reboot(self): + """ + Test case for v1_soft_reboot + + """ pass @@ -1044,6 +1052,14 @@ def test_v1alpha3_restart(self): Test case for v1alpha3_restart + """ + pass + + def test_v1alpha3_soft_reboot(self): + """ + Test case for v1alpha3_soft_reboot + + """ pass From 93b4ed1fbff1a338c360cf68eed58414ebfe73ad Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Sat, 4 Dec 2021 16:17:42 +0000 Subject: [PATCH 248/521] Client Python update by KubeVirt Prow build 1467158110563995648 --- README.md | 3 +- docs/DefaultApi.md | 12 +- docs/V1MigrateOptions.md | 12 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 42 ++++-- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_migrate_options.py | 181 ++++++++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_migrate_options.py | 44 +++++++ 14 files changed, 285 insertions(+), 24 deletions(-) create mode 100644 docs/V1MigrateOptions.md create mode 100644 kubevirt/models/v1_migrate_options.py create mode 100644 test/test_v1_migrate_options.py diff --git a/README.md b/README.md index 3cd133cb..67541d90 100644 --- a/README.md +++ b/README.md @@ -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: v0.47.0-rc.0-274-g0119f397a +- Package version: v0.48.0-rc.0-20-g77193f178 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -399,6 +399,7 @@ Class | Method | HTTP request | Description - [V1MediatedDevicesConfiguration](docs/V1MediatedDevicesConfiguration.md) - [V1MediatedHostDevice](docs/V1MediatedHostDevice.md) - [V1Memory](docs/V1Memory.md) + - [V1MigrateOptions](docs/V1MigrateOptions.md) - [V1MigrationConfiguration](docs/V1MigrationConfiguration.md) - [V1MultusNetwork](docs/V1MultusNetwork.md) - [V1NUMA](docs/V1NUMA.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 1e4f2a8d..c7597c08 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -5851,7 +5851,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1_migrate** -> str v1_migrate(name, namespace) +> str v1_migrate(name, namespace, body) @@ -5869,9 +5869,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1MigrateOptions() # V1MigrateOptions | try: - api_response = api_instance.v1_migrate(name, namespace) + api_response = api_instance.v1_migrate(name, namespace, body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->v1_migrate: %s\n" % e) @@ -5883,6 +5884,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1MigrateOptions**](V1MigrateOptions.md)| | ### Return type @@ -6750,7 +6752,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1alpha3_migrate** -> str v1alpha3_migrate(name, namespace) +> str v1alpha3_migrate(name, namespace, body) @@ -6768,9 +6770,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1MigrateOptions() # V1MigrateOptions | try: - api_response = api_instance.v1alpha3_migrate(name, namespace) + api_response = api_instance.v1alpha3_migrate(name, namespace, body) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->v1alpha3_migrate: %s\n" % e) @@ -6782,6 +6785,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1MigrateOptions**](V1MigrateOptions.md)| | ### Return type diff --git a/docs/V1MigrateOptions.md b/docs/V1MigrateOptions.md new file mode 100644 index 00000000..457cc292 --- /dev/null +++ b/docs/V1MigrateOptions.md @@ -0,0 +1,12 @@ +# V1MigrateOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**dry_run** | **list[str]** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 2e854557..ce9022f1 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.47.0-rc.0-274-g0119f397a" + release_note="Auto-generated client v0.48.0-rc.0-20-g77193f178" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index a4356dc7..d8f5793a 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -442,6 +442,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_memory.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_memory.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Memory.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_migrate_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_migrate_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1MigrateOptions.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_migration_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_migration_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1MigrationConfiguration.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 77200ff1..7cb6ca71 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -155,6 +155,7 @@ from .models.v1_mediated_devices_configuration import V1MediatedDevicesConfiguration from .models.v1_mediated_host_device import V1MediatedHostDevice from .models.v1_memory import V1Memory +from .models.v1_migrate_options import V1MigrateOptions from .models.v1_migration_configuration import V1MigrationConfiguration from .models.v1_multus_network import V1MultusNetwork from .models.v1_numa import V1NUMA diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index acb04a5f..b243d553 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.47.0-rc.0-274-g0119f397a/python' + self.user_agent = 'Swagger-Codegen/v0.48.0-rc.0-20-g77193f178/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index deff64d0..7e2e6fed 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -12375,7 +12375,7 @@ def v1_guestosinfo_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_migrate(self, name, namespace, **kwargs): + def v1_migrate(self, name, namespace, body, **kwargs): """ Migrate a running VirtualMachine to another node. This method makes a synchronous HTTP request by default. To make an @@ -12384,24 +12384,25 @@ def v1_migrate(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_migrate(name, namespace, callback=callback_function) + >>> thread = api.v1_migrate(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1MigrateOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_migrate_with_http_info(name, namespace, **kwargs) + return self.v1_migrate_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1_migrate_with_http_info(name, namespace, **kwargs) + (data) = self.v1_migrate_with_http_info(name, namespace, body, **kwargs) return data - def v1_migrate_with_http_info(self, name, namespace, **kwargs): + def v1_migrate_with_http_info(self, name, namespace, body, **kwargs): """ Migrate a running VirtualMachine to another node. This method makes a synchronous HTTP request by default. To make an @@ -12410,18 +12411,19 @@ def v1_migrate_with_http_info(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_migrate_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1_migrate_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1MigrateOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -12442,6 +12444,9 @@ def v1_migrate_with_http_info(self, name, namespace, **kwargs): # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `v1_migrate`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1_migrate`") collection_formats = {} @@ -12460,6 +12465,8 @@ def v1_migrate_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] @@ -14318,7 +14325,7 @@ def v1alpha3_guestosinfo_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_migrate(self, name, namespace, **kwargs): + def v1alpha3_migrate(self, name, namespace, body, **kwargs): """ Migrate a running VirtualMachine to another node. This method makes a synchronous HTTP request by default. To make an @@ -14327,24 +14334,25 @@ def v1alpha3_migrate(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_migrate(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_migrate(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1MigrateOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_migrate_with_http_info(name, namespace, **kwargs) + return self.v1alpha3_migrate_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1alpha3_migrate_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3_migrate_with_http_info(name, namespace, body, **kwargs) return data - def v1alpha3_migrate_with_http_info(self, name, namespace, **kwargs): + def v1alpha3_migrate_with_http_info(self, name, namespace, body, **kwargs): """ Migrate a running VirtualMachine to another node. This method makes a synchronous HTTP request by default. To make an @@ -14353,18 +14361,19 @@ def v1alpha3_migrate_with_http_info(self, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_migrate_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_migrate_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1MigrateOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -14385,6 +14394,9 @@ def v1alpha3_migrate_with_http_info(self, name, namespace, **kwargs): # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_migrate`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3_migrate`") collection_formats = {} @@ -14403,6 +14415,8 @@ def v1alpha3_migrate_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 35fdbdca..b839ed54 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.47.0-rc.0-274-g0119f397a".\ + "SDK Package Version: v0.48.0-rc.0-20-g77193f178".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index fb1e99b7..e5e4b342 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -155,6 +155,7 @@ from .v1_mediated_devices_configuration import V1MediatedDevicesConfiguration from .v1_mediated_host_device import V1MediatedHostDevice from .v1_memory import V1Memory +from .v1_migrate_options import V1MigrateOptions from .v1_migration_configuration import V1MigrationConfiguration from .v1_multus_network import V1MultusNetwork from .v1_numa import V1NUMA diff --git a/kubevirt/models/v1_migrate_options.py b/kubevirt/models/v1_migrate_options.py new file mode 100644 index 00000000..9f3b3f47 --- /dev/null +++ b/kubevirt/models/v1_migrate_options.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1MigrateOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'dry_run': 'list[str]', + 'kind': 'str' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'dry_run': 'dryRun', + 'kind': 'kind' + } + + def __init__(self, api_version=None, dry_run=None, kind=None): + """ + V1MigrateOptions - a model defined in Swagger + """ + + self._api_version = None + self._dry_run = None + self._kind = None + + if api_version is not None: + self.api_version = api_version + if dry_run is not None: + self.dry_run = dry_run + if kind is not None: + self.kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1MigrateOptions. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1MigrateOptions. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1MigrateOptions. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1MigrateOptions. + :type: str + """ + + self._api_version = api_version + + @property + def dry_run(self): + """ + Gets the dry_run of this V1MigrateOptions. + When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + + :return: The dry_run of this V1MigrateOptions. + :rtype: list[str] + """ + return self._dry_run + + @dry_run.setter + def dry_run(self, dry_run): + """ + Sets the dry_run of this V1MigrateOptions. + When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + + :param dry_run: The dry_run of this V1MigrateOptions. + :type: list[str] + """ + + self._dry_run = dry_run + + @property + def kind(self): + """ + Gets the kind of this V1MigrateOptions. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1MigrateOptions. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1MigrateOptions. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1MigrateOptions. + :type: str + """ + + self._kind = kind + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1MigrateOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 9a71d17d..df345966 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.47.0-rc.0-274-g0119f397a" +VERSION = "v0.48.0-rc.0-20-g77193f178" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index c7059e8c..83652166 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.47.0-rc.0-274-g0119f397a" +"packageVersion": "v0.48.0-rc.0-20-g77193f178" } diff --git a/test/test_v1_migrate_options.py b/test/test_v1_migrate_options.py new file mode 100644 index 00000000..2d4a6cc3 --- /dev/null +++ b/test/test_v1_migrate_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_migrate_options import V1MigrateOptions + + +class TestV1MigrateOptions(unittest.TestCase): + """ V1MigrateOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1MigrateOptions(self): + """ + Test V1MigrateOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_migrate_options.V1MigrateOptions() + pass + + +if __name__ == '__main__': + unittest.main() From c1c714c24d52cfd078f13a361faf2de6b424a179 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Sun, 12 Dec 2021 00:26:58 +0000 Subject: [PATCH 249/521] Client Python update by KubeVirt Prow build 1469817795989475328 --- README.md | 24 +- docs/DefaultApi.md | 530 +++++++ .../V1VirtualMachineInstanceMigrationState.md | 2 + docs/V1alpha1MigrationPolicy.md | 14 + docs/V1alpha1MigrationPolicyList.md | 13 + docs/V1alpha1MigrationPolicySpec.md | 15 + docs/V1alpha1MigrationPolicyStatus.md | 9 + docs/V1alpha1Selectors.md | 11 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 15 + kubevirt/__init__.py | 5 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 1286 +++++++++++++++-- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 5 + ...irtual_machine_instance_migration_state.py | 58 +- kubevirt/models/v1alpha1_migration_policy.py | 232 +++ .../models/v1alpha1_migration_policy_list.py | 206 +++ .../models/v1alpha1_migration_policy_spec.py | 254 ++++ .../v1alpha1_migration_policy_status.py | 99 ++ kubevirt/models/v1alpha1_selectors.py | 149 ++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 80 + test/test_v1alpha1_migration_policy.py | 44 + test/test_v1alpha1_migration_policy_list.py | 44 + test/test_v1alpha1_migration_policy_spec.py | 44 + test/test_v1alpha1_migration_policy_status.py | 44 + test/test_v1alpha1_selectors.py | 44 + 29 files changed, 3141 insertions(+), 96 deletions(-) create mode 100644 docs/V1alpha1MigrationPolicy.md create mode 100644 docs/V1alpha1MigrationPolicyList.md create mode 100644 docs/V1alpha1MigrationPolicySpec.md create mode 100644 docs/V1alpha1MigrationPolicyStatus.md create mode 100644 docs/V1alpha1Selectors.md create mode 100644 kubevirt/models/v1alpha1_migration_policy.py create mode 100644 kubevirt/models/v1alpha1_migration_policy_list.py create mode 100644 kubevirt/models/v1alpha1_migration_policy_spec.py create mode 100644 kubevirt/models/v1alpha1_migration_policy_status.py create mode 100644 kubevirt/models/v1alpha1_selectors.py create mode 100644 test/test_v1alpha1_migration_policy.py create mode 100644 test/test_v1alpha1_migration_policy_list.py create mode 100644 test/test_v1alpha1_migration_policy_spec.py create mode 100644 test/test_v1alpha1_migration_policy_status.py create mode 100644 test/test_v1alpha1_selectors.py diff --git a/README.md b/README.md index 67541d90..80e614b7 100644 --- a/README.md +++ b/README.md @@ -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: v0.48.0-rc.0-20-g77193f178 +- Package version: v0.48.0-98-g69ed3d661 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -53,14 +53,13 @@ from kubevirt.rest import ApiException from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1KubeVirt() # V1KubeVirt | -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1alpha1MigrationPolicy() # V1alpha1MigrationPolicy | try: - api_response = api_instance.create_namespaced_kube_virt(body, namespace) + api_response = api_instance.create_migration_policy(body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->create_namespaced_kube_virt: %s\n" % e) + print("Exception when calling DefaultApi->create_migration_policy: %s\n" % e) ``` @@ -70,6 +69,7 @@ All URIs are relative to *https://localhost* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**create_migration_policy**](docs/DefaultApi.md#create_migration_policy) | **POST** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | *DefaultApi* | [**create_namespaced_kube_virt**](docs/DefaultApi.md#create_namespaced_kube_virt) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | *DefaultApi* | [**create_namespaced_virtual_machine**](docs/DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | *DefaultApi* | [**create_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#create_namespaced_virtual_machine_flavor) | **POST** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | @@ -81,6 +81,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**create_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**create_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | *DefaultApi* | [**create_virtual_machine_cluster_flavor**](docs/DefaultApi.md#create_virtual_machine_cluster_flavor) | **POST** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | +*DefaultApi* | [**delete_collection_migration_policy**](docs/DefaultApi.md#delete_collection_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | *DefaultApi* | [**delete_collection_namespaced_kube_virt**](docs/DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | *DefaultApi* | [**delete_collection_namespaced_virtual_machine**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | @@ -92,6 +93,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | *DefaultApi* | [**delete_collection_virtual_machine_cluster_flavor**](docs/DefaultApi.md#delete_collection_virtual_machine_cluster_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | +*DefaultApi* | [**delete_migration_policy**](docs/DefaultApi.md#delete_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_kube_virt**](docs/DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine**](docs/DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#delete_namespaced_virtual_machine_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | @@ -108,15 +110,18 @@ Class | Method | HTTP request | Description *DefaultApi* | [**get_api_group_flavor_kubevirt_io**](docs/DefaultApi.md#get_api_group_flavor_kubevirt_io) | **GET** /apis/flavor.kubevirt.io/ | *DefaultApi* | [**get_api_group_kubevirt_io**](docs/DefaultApi.md#get_api_group_kubevirt_io) | **GET** /apis/kubevirt.io/ | *DefaultApi* | [**get_api_group_list**](docs/DefaultApi.md#get_api_group_list) | **GET** /apis | +*DefaultApi* | [**get_api_group_migrations_kubevirt_io**](docs/DefaultApi.md#get_api_group_migrations_kubevirt_io) | **GET** /apis/migrations.kubevirt.io/ | *DefaultApi* | [**get_api_group_snapshot_kubevirt_io**](docs/DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | *DefaultApi* | [**get_api_resources_flavor_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_flavor_kubevirt_io_v1alpha1) | **GET** /apis/flavor.kubevirt.io/v1alpha1/ | *DefaultApi* | [**get_api_resources_kubevirt_io_v1**](docs/DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | +*DefaultApi* | [**get_api_resources_migrations_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_migrations_kubevirt_io_v1alpha1) | **GET** /apis/migrations.kubevirt.io/v1alpha1/ | *DefaultApi* | [**get_api_resources_snapshot_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_snapshot_kubevirt_io_v1alpha1) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/ | *DefaultApi* | [**get_root_paths**](docs/DefaultApi.md#get_root_paths) | **GET** / | *DefaultApi* | [**handle_dump_profiler**](docs/DefaultApi.md#handle_dump_profiler) | **GET** /dump-profiler | *DefaultApi* | [**handle_start_profiler**](docs/DefaultApi.md#handle_start_profiler) | **GET** /start-profiler | *DefaultApi* | [**handle_stop_profiler**](docs/DefaultApi.md#handle_stop_profiler) | **GET** /stop-profiler | *DefaultApi* | [**list_kube_virt_for_all_namespaces**](docs/DefaultApi.md#list_kube_virt_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/kubevirt | +*DefaultApi* | [**list_migration_policy**](docs/DefaultApi.md#list_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | *DefaultApi* | [**list_namespaced_kube_virt**](docs/DefaultApi.md#list_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | *DefaultApi* | [**list_namespaced_virtual_machine**](docs/DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | *DefaultApi* | [**list_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#list_namespaced_virtual_machine_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | @@ -137,6 +142,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_virtual_machine_restore_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_restore_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores | *DefaultApi* | [**list_virtual_machine_snapshot_content_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents | *DefaultApi* | [**list_virtual_machine_snapshot_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots | +*DefaultApi* | [**patch_migration_policy**](docs/DefaultApi.md#patch_migration_policy) | **PATCH** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_kube_virt**](docs/DefaultApi.md#patch_namespaced_kube_virt) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine**](docs/DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#patch_namespaced_virtual_machine_flavor) | **PATCH** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | @@ -148,6 +154,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**patch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_virtual_machine_cluster_flavor**](docs/DefaultApi.md#patch_virtual_machine_cluster_flavor) | **PATCH** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_migration_policy**](docs/DefaultApi.md#read_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_kube_virt**](docs/DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine**](docs/DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#read_namespaced_virtual_machine_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | @@ -159,6 +166,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**read_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_virtual_machine_cluster_flavor**](docs/DefaultApi.md#read_virtual_machine_cluster_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_migration_policy**](docs/DefaultApi.md#replace_migration_policy) | **PUT** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_kube_virt**](docs/DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine**](docs/DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#replace_namespaced_virtual_machine_flavor) | **PUT** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | @@ -234,6 +242,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1vmi_port_forward_with_protocol**](docs/DefaultApi.md#v1vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | *DefaultApi* | [**v1vmi_removevolume**](docs/DefaultApi.md#v1vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | *DefaultApi* | [**watch_kube_virt_list_for_all_namespaces**](docs/DefaultApi.md#watch_kube_virt_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/kubevirt | +*DefaultApi* | [**watch_migration_policy_list_for_all_namespaces**](docs/DefaultApi.md#watch_migration_policy_list_for_all_namespaces) | **GET** /apis/migrations.kubevirt.io/v1alpha1/watch/migrationpolicies | *DefaultApi* | [**watch_namespaced_kube_virt**](docs/DefaultApi.md#watch_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | *DefaultApi* | [**watch_namespaced_virtual_machine**](docs/DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | *DefaultApi* | [**watch_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#watch_namespaced_virtual_machine_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | @@ -490,7 +499,12 @@ Class | Method | HTTP request | Description - [V1Watchdog](docs/V1Watchdog.md) - [V1alpha1Condition](docs/V1alpha1Condition.md) - [V1alpha1Error](docs/V1alpha1Error.md) + - [V1alpha1MigrationPolicy](docs/V1alpha1MigrationPolicy.md) + - [V1alpha1MigrationPolicyList](docs/V1alpha1MigrationPolicyList.md) + - [V1alpha1MigrationPolicySpec](docs/V1alpha1MigrationPolicySpec.md) + - [V1alpha1MigrationPolicyStatus](docs/V1alpha1MigrationPolicyStatus.md) - [V1alpha1PersistentVolumeClaim](docs/V1alpha1PersistentVolumeClaim.md) + - [V1alpha1Selectors](docs/V1alpha1Selectors.md) - [V1alpha1SourceSpec](docs/V1alpha1SourceSpec.md) - [V1alpha1VirtualMachineClusterFlavor](docs/V1alpha1VirtualMachineClusterFlavor.md) - [V1alpha1VirtualMachineClusterFlavorList](docs/V1alpha1VirtualMachineClusterFlavorList.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index c7597c08..6fe392c1 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -4,6 +4,7 @@ All URIs are relative to *https://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- +[**create_migration_policy**](DefaultApi.md#create_migration_policy) | **POST** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | [**create_namespaced_kube_virt**](DefaultApi.md#create_namespaced_kube_virt) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | [**create_namespaced_virtual_machine**](DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | [**create_namespaced_virtual_machine_flavor**](DefaultApi.md#create_namespaced_virtual_machine_flavor) | **POST** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | @@ -15,6 +16,7 @@ Method | HTTP request | Description [**create_namespaced_virtual_machine_snapshot**](DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**create_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | [**create_virtual_machine_cluster_flavor**](DefaultApi.md#create_virtual_machine_cluster_flavor) | **POST** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | +[**delete_collection_migration_policy**](DefaultApi.md#delete_collection_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | [**delete_collection_namespaced_kube_virt**](DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | [**delete_collection_namespaced_virtual_machine**](DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | [**delete_collection_namespaced_virtual_machine_flavor**](DefaultApi.md#delete_collection_namespaced_virtual_machine_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | @@ -26,6 +28,7 @@ Method | HTTP request | Description [**delete_collection_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**delete_collection_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | [**delete_collection_virtual_machine_cluster_flavor**](DefaultApi.md#delete_collection_virtual_machine_cluster_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | +[**delete_migration_policy**](DefaultApi.md#delete_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_kube_virt**](DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine**](DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_flavor**](DefaultApi.md#delete_namespaced_virtual_machine_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | @@ -42,15 +45,18 @@ Method | HTTP request | Description [**get_api_group_flavor_kubevirt_io**](DefaultApi.md#get_api_group_flavor_kubevirt_io) | **GET** /apis/flavor.kubevirt.io/ | [**get_api_group_kubevirt_io**](DefaultApi.md#get_api_group_kubevirt_io) | **GET** /apis/kubevirt.io/ | [**get_api_group_list**](DefaultApi.md#get_api_group_list) | **GET** /apis | +[**get_api_group_migrations_kubevirt_io**](DefaultApi.md#get_api_group_migrations_kubevirt_io) | **GET** /apis/migrations.kubevirt.io/ | [**get_api_group_snapshot_kubevirt_io**](DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | [**get_api_resources_flavor_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_flavor_kubevirt_io_v1alpha1) | **GET** /apis/flavor.kubevirt.io/v1alpha1/ | [**get_api_resources_kubevirt_io_v1**](DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | +[**get_api_resources_migrations_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_migrations_kubevirt_io_v1alpha1) | **GET** /apis/migrations.kubevirt.io/v1alpha1/ | [**get_api_resources_snapshot_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_snapshot_kubevirt_io_v1alpha1) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/ | [**get_root_paths**](DefaultApi.md#get_root_paths) | **GET** / | [**handle_dump_profiler**](DefaultApi.md#handle_dump_profiler) | **GET** /dump-profiler | [**handle_start_profiler**](DefaultApi.md#handle_start_profiler) | **GET** /start-profiler | [**handle_stop_profiler**](DefaultApi.md#handle_stop_profiler) | **GET** /stop-profiler | [**list_kube_virt_for_all_namespaces**](DefaultApi.md#list_kube_virt_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/kubevirt | +[**list_migration_policy**](DefaultApi.md#list_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | [**list_namespaced_kube_virt**](DefaultApi.md#list_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | [**list_namespaced_virtual_machine**](DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | [**list_namespaced_virtual_machine_flavor**](DefaultApi.md#list_namespaced_virtual_machine_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | @@ -71,6 +77,7 @@ Method | HTTP request | Description [**list_virtual_machine_restore_for_all_namespaces**](DefaultApi.md#list_virtual_machine_restore_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores | [**list_virtual_machine_snapshot_content_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents | [**list_virtual_machine_snapshot_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots | +[**patch_migration_policy**](DefaultApi.md#patch_migration_policy) | **PATCH** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_kube_virt**](DefaultApi.md#patch_namespaced_kube_virt) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine**](DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_flavor**](DefaultApi.md#patch_namespaced_virtual_machine_flavor) | **PATCH** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | @@ -82,6 +89,7 @@ Method | HTTP request | Description [**patch_namespaced_virtual_machine_snapshot**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**patch_virtual_machine_cluster_flavor**](DefaultApi.md#patch_virtual_machine_cluster_flavor) | **PATCH** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | +[**read_migration_policy**](DefaultApi.md#read_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_kube_virt**](DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine**](DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_flavor**](DefaultApi.md#read_namespaced_virtual_machine_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | @@ -93,6 +101,7 @@ Method | HTTP request | Description [**read_namespaced_virtual_machine_snapshot**](DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**read_virtual_machine_cluster_flavor**](DefaultApi.md#read_virtual_machine_cluster_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_migration_policy**](DefaultApi.md#replace_migration_policy) | **PUT** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_kube_virt**](DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine**](DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_flavor**](DefaultApi.md#replace_namespaced_virtual_machine_flavor) | **PUT** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | @@ -168,6 +177,7 @@ Method | HTTP request | Description [**v1vmi_port_forward_with_protocol**](DefaultApi.md#v1vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | [**v1vmi_removevolume**](DefaultApi.md#v1vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | [**watch_kube_virt_list_for_all_namespaces**](DefaultApi.md#watch_kube_virt_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/kubevirt | +[**watch_migration_policy_list_for_all_namespaces**](DefaultApi.md#watch_migration_policy_list_for_all_namespaces) | **GET** /apis/migrations.kubevirt.io/v1alpha1/watch/migrationpolicies | [**watch_namespaced_kube_virt**](DefaultApi.md#watch_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | [**watch_namespaced_virtual_machine**](DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | [**watch_namespaced_virtual_machine_flavor**](DefaultApi.md#watch_namespaced_virtual_machine_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | @@ -190,6 +200,53 @@ Method | HTTP request | Description [**watch_virtual_machine_snapshot_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_snapshot_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshots | +# **create_migration_policy** +> V1alpha1MigrationPolicy create_migration_policy(body) + + + +Create a MigrationPolicy object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +body = kubevirt.V1alpha1MigrationPolicy() # V1alpha1MigrationPolicy | + +try: + api_response = api_instance.create_migration_policy(body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->create_migration_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1alpha1MigrationPolicy**](V1alpha1MigrationPolicy.md)| | + +### Return type + +[**V1alpha1MigrationPolicy**](V1alpha1MigrationPolicy.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **create_namespaced_kube_virt** > V1KubeVirt create_namespaced_kube_virt(body, namespace) @@ -727,6 +784,67 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_collection_migration_policy** +> K8sIoApimachineryPkgApisMetaV1Status delete_collection_migration_policy(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Delete a collection of MigrationPolicy objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_migration_policy(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->delete_collection_migration_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_collection_namespaced_kube_virt** > K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_kube_virt(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -1398,6 +1516,61 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_migration_policy** +> K8sIoApimachineryPkgApisMetaV1Status delete_migration_policy(name, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + + + +Delete a MigrationPolicy object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +body = kubevirt.K8sIoApimachineryPkgApisMetaV1DeleteOptions() # K8sIoApimachineryPkgApisMetaV1DeleteOptions | +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + +try: + api_response = api_instance.delete_migration_policy(name, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->delete_migration_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **body** | [**K8sIoApimachineryPkgApisMetaV1DeleteOptions**](K8sIoApimachineryPkgApisMetaV1DeleteOptions.md)| | + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_namespaced_kube_virt** > K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_kube_virt(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -2234,6 +2407,49 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_api_group_migrations_kubevirt_io** +> K8sIoApimachineryPkgApisMetaV1APIGroup get_api_group_migrations_kubevirt_io() + + + +Get a KubeVirt API group + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.get_api_group_migrations_kubevirt_io() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->get_api_group_migrations_kubevirt_io: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1APIGroup**](K8sIoApimachineryPkgApisMetaV1APIGroup.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_api_group_snapshot_kubevirt_io** > K8sIoApimachineryPkgApisMetaV1APIGroup get_api_group_snapshot_kubevirt_io() @@ -2363,6 +2579,49 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_api_resources_migrations_kubevirt_io_v1alpha1** +> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_migrations_kubevirt_io_v1alpha1() + + + +Get KubeVirt API Resources + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.get_api_resources_migrations_kubevirt_io_v1alpha1() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->get_api_resources_migrations_kubevirt_io_v1alpha1: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1APIResourceList**](K8sIoApimachineryPkgApisMetaV1APIResourceList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_api_resources_snapshot_kubevirt_io_v1alpha1** > K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_snapshot_kubevirt_io_v1alpha1() @@ -2636,6 +2895,67 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **list_migration_policy** +> V1alpha1MigrationPolicyList list_migration_policy(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Get a list of MigrationPolicy objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_migration_policy(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->list_migration_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1MigrationPolicyList**](V1alpha1MigrationPolicyList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **list_namespaced_kube_virt** > V1KubeVirtList list_namespaced_kube_virt(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -3876,6 +4196,55 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **patch_migration_policy** +> V1alpha1MigrationPolicy patch_migration_policy(name, body) + + + +Patch a MigrationPolicy object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | + +try: + api_response = api_instance.patch_migration_policy(name, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->patch_migration_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **body** | [**K8sIoApimachineryPkgApisMetaV1Patch**](K8sIoApimachineryPkgApisMetaV1Patch.md)| | + +### Return type + +[**V1alpha1MigrationPolicy**](V1alpha1MigrationPolicy.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **patch_namespaced_kube_virt** > V1KubeVirt patch_namespaced_kube_virt(name, namespace, body) @@ -4435,6 +4804,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **read_migration_policy** +> V1alpha1MigrationPolicy read_migration_policy(name, exact=exact, export=export) + + + +Get a MigrationPolicy object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_migration_policy(name, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->read_migration_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1alpha1MigrationPolicy**](V1alpha1MigrationPolicy.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **read_namespaced_kube_virt** > V1KubeVirt read_namespaced_kube_virt(name, namespace, exact=exact, export=export) @@ -5016,6 +5436,55 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **replace_migration_policy** +> V1alpha1MigrationPolicy replace_migration_policy(name, body) + + + +Update a MigrationPolicy object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +body = kubevirt.V1alpha1MigrationPolicy() # V1alpha1MigrationPolicy | + +try: + api_response = api_instance.replace_migration_policy(name, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->replace_migration_policy: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **body** | [**V1alpha1MigrationPolicy**](V1alpha1MigrationPolicy.md)| | + +### Return type + +[**V1alpha1MigrationPolicy**](V1alpha1MigrationPolicy.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **replace_namespaced_kube_virt** > V1KubeVirt replace_namespaced_kube_virt(name, namespace, body) @@ -8633,6 +9102,67 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **watch_migration_policy_list_for_all_namespaces** +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_migration_policy_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Watch a MigrationPolicyList object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_migration_policy_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->watch_migration_policy_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **watch_namespaced_kube_virt** > K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_kube_virt(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) diff --git a/docs/V1VirtualMachineInstanceMigrationState.md b/docs/V1VirtualMachineInstanceMigrationState.md index d68a91f2..b2bffc83 100644 --- a/docs/V1VirtualMachineInstanceMigrationState.md +++ b/docs/V1VirtualMachineInstanceMigrationState.md @@ -8,6 +8,8 @@ Name | Type | Description | Notes **completed** | **bool** | Indicates the migration completed | [optional] **end_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | The time the migration action ended | [optional] **failed** | **bool** | Indicates that the migration failed | [optional] +**migration_configuration** | [**V1MigrationConfiguration**](V1MigrationConfiguration.md) | Migration configurations to apply | [optional] +**migration_policy_name** | **str** | Name of the migration policy. If string is empty, no policy is matched | [optional] **migration_uid** | **str** | The VirtualMachineInstanceMigration object associated with this migration | [optional] **mode** | **str** | Lets us know if the vmi is currently running pre or post copy migration | [optional] **source_node** | **str** | The source node that the VMI originated on | [optional] diff --git a/docs/V1alpha1MigrationPolicy.md b/docs/V1alpha1MigrationPolicy.md new file mode 100644 index 00000000..1f54ab7b --- /dev/null +++ b/docs/V1alpha1MigrationPolicy.md @@ -0,0 +1,14 @@ +# V1alpha1MigrationPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha1MigrationPolicySpec**](V1alpha1MigrationPolicySpec.md) | | +**status** | [**V1alpha1MigrationPolicyStatus**](V1alpha1MigrationPolicyStatus.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1MigrationPolicyList.md b/docs/V1alpha1MigrationPolicyList.md new file mode 100644 index 00000000..e8136b21 --- /dev/null +++ b/docs/V1alpha1MigrationPolicyList.md @@ -0,0 +1,13 @@ +# V1alpha1MigrationPolicyList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list[V1alpha1MigrationPolicy]**](V1alpha1MigrationPolicy.md) | | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1MigrationPolicySpec.md b/docs/V1alpha1MigrationPolicySpec.md new file mode 100644 index 00000000..b4ce0a3b --- /dev/null +++ b/docs/V1alpha1MigrationPolicySpec.md @@ -0,0 +1,15 @@ +# V1alpha1MigrationPolicySpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allow_auto_converge** | **bool** | | [optional] +**allow_post_copy** | **bool** | | [optional] +**bandwidth_per_migration** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | | [optional] +**completion_timeout_per_gi_b** | **int** | | [optional] +**disable_tls** | **bool** | | [optional] +**selectors** | [**V1alpha1Selectors**](V1alpha1Selectors.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1MigrationPolicyStatus.md b/docs/V1alpha1MigrationPolicyStatus.md new file mode 100644 index 00000000..c87ab3b8 --- /dev/null +++ b/docs/V1alpha1MigrationPolicyStatus.md @@ -0,0 +1,9 @@ +# V1alpha1MigrationPolicyStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1Selectors.md b/docs/V1alpha1Selectors.md new file mode 100644 index 00000000..ecc29c03 --- /dev/null +++ b/docs/V1alpha1Selectors.md @@ -0,0 +1,11 @@ +# V1alpha1Selectors + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**namespace_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | | [optional] +**virtual_machine_instance_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index ce9022f1..d846b365 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.48.0-rc.0-20-g77193f178" + release_note="Auto-generated client v0.48.0-98-g69ed3d661" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index d8f5793a..a8acddeb 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -715,9 +715,24 @@ 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/v1alpha1_error.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_error.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1Error.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_migration_policy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_migration_policy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1MigrationPolicy.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_migration_policy_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_migration_policy_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1MigrationPolicyList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_migration_policy_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_migration_policy_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1MigrationPolicySpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_migration_policy_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_migration_policy_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1MigrationPolicyStatus.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_persistent_volume_claim.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_persistent_volume_claim.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1PersistentVolumeClaim.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_selectors.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_selectors.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1Selectors.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_source_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_source_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1SourceSpec.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 7cb6ca71..9261b557 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -246,7 +246,12 @@ from .models.v1_watchdog import V1Watchdog from .models.v1alpha1_condition import V1alpha1Condition from .models.v1alpha1_error import V1alpha1Error +from .models.v1alpha1_migration_policy import V1alpha1MigrationPolicy +from .models.v1alpha1_migration_policy_list import V1alpha1MigrationPolicyList +from .models.v1alpha1_migration_policy_spec import V1alpha1MigrationPolicySpec +from .models.v1alpha1_migration_policy_status import V1alpha1MigrationPolicyStatus from .models.v1alpha1_persistent_volume_claim import V1alpha1PersistentVolumeClaim +from .models.v1alpha1_selectors import V1alpha1Selectors from .models.v1alpha1_source_spec import V1alpha1SourceSpec from .models.v1alpha1_virtual_machine_cluster_flavor import V1alpha1VirtualMachineClusterFlavor from .models.v1alpha1_virtual_machine_cluster_flavor_list import V1alpha1VirtualMachineClusterFlavorList diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index b243d553..df0e074a 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.48.0-rc.0-20-g77193f178/python' + self.user_agent = 'Swagger-Codegen/v0.48.0-98-g69ed3d661/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 7e2e6fed..8826c8e1 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -40,6 +40,110 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client + def create_migration_policy(self, body, **kwargs): + """ + Create a MigrationPolicy object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_migration_policy(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1MigrationPolicy body: (required) + :return: V1alpha1MigrationPolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_migration_policy_with_http_info(body, **kwargs) + else: + (data) = self.create_migration_policy_with_http_info(body, **kwargs) + return data + + def create_migration_policy_with_http_info(self, body, **kwargs): + """ + Create a MigrationPolicy object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_migration_policy_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1MigrationPolicy body: (required) + :return: V1alpha1MigrationPolicy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_migration_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_migration_policy`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/migrations.kubevirt.io/v1alpha1/migrationpolicies', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1MigrationPolicy', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def create_namespaced_kube_virt(self, body, namespace, **kwargs): """ Create a KubeVirt object. @@ -1254,6 +1358,131 @@ def create_virtual_machine_cluster_flavor_with_http_info(self, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def delete_collection_migration_policy(self, **kwargs): + """ + Delete a collection of MigrationPolicy objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_migration_policy(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_migration_policy_with_http_info(**kwargs) + else: + (data) = self.delete_collection_migration_policy_with_http_info(**kwargs) + return data + + def delete_collection_migration_policy_with_http_info(self, **kwargs): + """ + Delete a collection of MigrationPolicy objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_migration_policy_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_migration_policy" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/migrations.kubevirt.io/v1alpha1/migrationpolicies', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def delete_collection_namespaced_kube_virt(self, **kwargs): """ Delete a collection of KubeVirt objects. @@ -2629,21 +2858,20 @@ def delete_collection_virtual_machine_cluster_flavor_with_http_info(self, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_kube_virt(self, name, namespace, body, **kwargs): + def delete_migration_policy(self, name, body, **kwargs): """ - Delete a KubeVirt object. + Delete a MigrationPolicy object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_kube_virt(name, namespace, body, callback=callback_function) + >>> thread = api.delete_migration_policy(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. @@ -2654,26 +2882,25 @@ def delete_namespaced_kube_virt(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) + return self.delete_migration_policy_with_http_info(name, body, **kwargs) else: - (data) = self.delete_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_migration_policy_with_http_info(name, body, **kwargs) return data - def delete_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwargs): + def delete_migration_policy_with_http_info(self, name, body, **kwargs): """ - Delete a KubeVirt object. + Delete a MigrationPolicy object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_kube_virt_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_migration_policy_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. @@ -2683,7 +2910,7 @@ def delete_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kw returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['name', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2694,19 +2921,16 @@ def delete_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_kube_virt" % key + " to method delete_migration_policy" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_kube_virt`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_kube_virt`") + raise ValueError("Missing the required parameter `name` when calling `delete_migration_policy`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_kube_virt`") + raise ValueError("Missing the required parameter `body` when calling `delete_migration_policy`") collection_formats = {} @@ -2714,8 +2938,6 @@ def delete_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kw path_params = {} if 'name' in params: path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] if 'grace_period_seconds' in params: @@ -2744,7 +2966,7 @@ def delete_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kw # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -2759,16 +2981,16 @@ def delete_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine(self, name, namespace, body, **kwargs): + def delete_namespaced_kube_virt(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachine object. + Delete a KubeVirt object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_kube_virt(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2784,21 +3006,21 @@ def delete_namespaced_virtual_machine(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachine object. + Delete a KubeVirt object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_kube_virt_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2824,19 +3046,19 @@ def delete_namespaced_virtual_machine_with_http_info(self, name, namespace, body if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine" % key + " to method delete_namespaced_kube_virt" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_kube_virt`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_kube_virt`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_kube_virt`") collection_formats = {} @@ -2874,7 +3096,7 @@ def delete_namespaced_virtual_machine_with_http_info(self, name, namespace, body # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -2889,16 +3111,146 @@ def delete_namespaced_virtual_machine_with_http_info(self, name, namespace, body _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_flavor(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineFlavor object. + Delete a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_flavor(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): + """ + Delete a VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_virtual_machine" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'grace_period_seconds' in params: + query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) + if 'orphan_dependents' in params: + query_params.append(('orphanDependents', params['orphan_dependents'])) + if 'propagation_policy' in params: + query_params.append(('propagationPolicy', params['propagation_policy'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_virtual_machine_flavor(self, name, namespace, body, **kwargs): + """ + Delete a VirtualMachineFlavor object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_virtual_machine_flavor(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4510,6 +4862,98 @@ def get_api_group_list_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def get_api_group_migrations_kubevirt_io(self, **kwargs): + """ + Get a KubeVirt API group + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_group_migrations_kubevirt_io(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_api_group_migrations_kubevirt_io_with_http_info(**kwargs) + else: + (data) = self.get_api_group_migrations_kubevirt_io_with_http_info(**kwargs) + return data + + def get_api_group_migrations_kubevirt_io_with_http_info(self, **kwargs): + """ + Get a KubeVirt API group + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_group_migrations_kubevirt_io_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_group_migrations_kubevirt_io" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/migrations.kubevirt.io/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1APIGroup', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def get_api_group_snapshot_kubevirt_io(self, **kwargs): """ Get a KubeVirt API group @@ -4786,6 +5230,98 @@ def get_api_resources_kubevirt_io_v1_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def get_api_resources_migrations_kubevirt_io_v1alpha1(self, **kwargs): + """ + Get KubeVirt API Resources + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_resources_migrations_kubevirt_io_v1alpha1(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_api_resources_migrations_kubevirt_io_v1alpha1_with_http_info(**kwargs) + else: + (data) = self.get_api_resources_migrations_kubevirt_io_v1alpha1_with_http_info(**kwargs) + return data + + def get_api_resources_migrations_kubevirt_io_v1alpha1_with_http_info(self, **kwargs): + """ + Get KubeVirt API Resources + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_resources_migrations_kubevirt_io_v1alpha1_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_resources_migrations_kubevirt_io_v1alpha1" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/migrations.kubevirt.io/v1alpha1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1APIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def get_api_resources_snapshot_kubevirt_io_v1alpha1(self, **kwargs): """ Get KubeVirt API Resources @@ -5188,7 +5724,111 @@ def handle_stop_profiler_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method handle_stop_profiler" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/stop-profiler', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_kube_virt_for_all_namespaces(self, **kwargs): + """ + Get a list of all KubeVirt objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_kube_virt_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1KubeVirtList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_kube_virt_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_kube_virt_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_kube_virt_for_all_namespaces_with_http_info(self, **kwargs): + """ + Get a list of all KubeVirt objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_kube_virt_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1KubeVirtList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5199,16 +5839,33 @@ def handle_stop_profiler_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method handle_stop_profiler" % key + " to method list_kube_virt_for_all_namespaces" % key ) params[key] = val del params['kwargs'] + collection_formats = {} path_params = {} query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) header_params = {} @@ -5216,17 +5873,21 @@ def handle_stop_profiler_with_http_info(self, **kwargs): local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/stop-profiler', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/kubevirt', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='V1KubeVirtList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5234,16 +5895,16 @@ def handle_stop_profiler_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_kube_virt_for_all_namespaces(self, **kwargs): + def list_migration_policy(self, **kwargs): """ - Get a list of all KubeVirt objects. + Get a list of MigrationPolicy objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_kube_virt_for_all_namespaces(callback=callback_function) + >>> thread = api.list_migration_policy(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5255,27 +5916,27 @@ def list_kube_virt_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1KubeVirtList + :return: V1alpha1MigrationPolicyList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_kube_virt_for_all_namespaces_with_http_info(**kwargs) + return self.list_migration_policy_with_http_info(**kwargs) else: - (data) = self.list_kube_virt_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_migration_policy_with_http_info(**kwargs) return data - def list_kube_virt_for_all_namespaces_with_http_info(self, **kwargs): + def list_migration_policy_with_http_info(self, **kwargs): """ - Get a list of all KubeVirt objects. + Get a list of MigrationPolicy objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_kube_virt_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_migration_policy_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5287,7 +5948,7 @@ def list_kube_virt_for_all_namespaces_with_http_info(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1KubeVirtList + :return: V1alpha1MigrationPolicyList If the method is called asynchronously, returns the request thread. """ @@ -5303,7 +5964,7 @@ def list_kube_virt_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_kube_virt_for_all_namespaces" % key + " to method list_migration_policy" % key ) params[key] = val del params['kwargs'] @@ -5344,14 +6005,14 @@ def list_kube_virt_for_all_namespaces_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/kubevirt', 'GET', + return self.api_client.call_api('/apis/migrations.kubevirt.io/v1alpha1/migrationpolicies', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1KubeVirtList', + response_type='V1alpha1MigrationPolicyList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7929,6 +8590,117 @@ def list_virtual_machine_snapshot_for_all_namespaces_with_http_info(self, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def patch_migration_policy(self, name, body, **kwargs): + """ + Patch a MigrationPolicy object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_migration_policy(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1alpha1MigrationPolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_migration_policy_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_migration_policy_with_http_info(name, body, **kwargs) + return data + + def patch_migration_policy_with_http_info(self, name, body, **kwargs): + """ + Patch a MigrationPolicy object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_migration_policy_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1alpha1MigrationPolicy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_migration_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_migration_policy`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_migration_policy`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1MigrationPolicy', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def patch_namespaced_kube_virt(self, name, namespace, body, **kwargs): """ Patch a KubeVirt object. @@ -9062,7 +9834,120 @@ def patch_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_snapshot_content`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_snapshot_content`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_snapshot_content`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineSnapshotContent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_virtual_machine_cluster_flavor(self, name, body, **kwargs): + """ + Patch a VirtualMachineClusterFlavor object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_virtual_machine_cluster_flavor(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1alpha1VirtualMachineClusterFlavor + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_virtual_machine_cluster_flavor_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_virtual_machine_cluster_flavor_with_http_info(name, body, **kwargs) + return data + + def patch_virtual_machine_cluster_flavor_with_http_info(self, name, body, **kwargs): + """ + Patch a VirtualMachineClusterFlavor object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_virtual_machine_cluster_flavor_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1alpha1VirtualMachineClusterFlavor + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_virtual_machine_cluster_flavor" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_virtual_machine_cluster_flavor`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_virtual_machine_cluster_flavor`") collection_formats = {} @@ -9070,8 +9955,6 @@ def patch_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, path_params = {} if 'name' in params: path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] @@ -9094,14 +9977,14 @@ def patch_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshotContent', + response_type='V1alpha1VirtualMachineClusterFlavor', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9109,53 +9992,55 @@ def patch_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_virtual_machine_cluster_flavor(self, name, body, **kwargs): + def read_migration_policy(self, name, **kwargs): """ - Patch a VirtualMachineClusterFlavor object. + Get a MigrationPolicy object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_virtual_machine_cluster_flavor(name, body, callback=callback_function) + >>> thread = api.read_migration_policy(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineClusterFlavor + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1MigrationPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_virtual_machine_cluster_flavor_with_http_info(name, body, **kwargs) + return self.read_migration_policy_with_http_info(name, **kwargs) else: - (data) = self.patch_virtual_machine_cluster_flavor_with_http_info(name, body, **kwargs) + (data) = self.read_migration_policy_with_http_info(name, **kwargs) return data - def patch_virtual_machine_cluster_flavor_with_http_info(self, name, body, **kwargs): + def read_migration_policy_with_http_info(self, name, **kwargs): """ - Patch a VirtualMachineClusterFlavor object. + Get a MigrationPolicy object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_virtual_machine_cluster_flavor_with_http_info(name, body, callback=callback_function) + >>> thread = api.read_migration_policy_with_http_info(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineClusterFlavor + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1MigrationPolicy If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'body'] + all_params = ['name', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9166,16 +10051,13 @@ def patch_virtual_machine_cluster_flavor_with_http_info(self, name, body, **kwar if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_virtual_machine_cluster_flavor" % key + " to method read_migration_policy" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_virtual_machine_cluster_flavor`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_virtual_machine_cluster_flavor`") + raise ValueError("Missing the required parameter `name` when calling `read_migration_policy`") collection_formats = {} @@ -9185,6 +10067,10 @@ def patch_virtual_machine_cluster_flavor_with_http_info(self, name, body, **kwar path_params['name'] = params['name'] query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) header_params = {} @@ -9192,27 +10078,21 @@ def patch_virtual_machine_cluster_flavor_with_http_info(self, name, body, **kwar local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineClusterFlavor', + response_type='V1alpha1MigrationPolicy', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10478,6 +11358,117 @@ def read_virtual_machine_cluster_flavor_with_http_info(self, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def replace_migration_policy(self, name, body, **kwargs): + """ + Update a MigrationPolicy object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_migration_policy(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param V1alpha1MigrationPolicy body: (required) + :return: V1alpha1MigrationPolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_migration_policy_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_migration_policy_with_http_info(name, body, **kwargs) + return data + + def replace_migration_policy_with_http_info(self, name, body, **kwargs): + """ + Update a MigrationPolicy object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_migration_policy_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param V1alpha1MigrationPolicy body: (required) + :return: V1alpha1MigrationPolicy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_migration_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_migration_policy`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_migration_policy`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1MigrationPolicy', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def replace_namespaced_kube_virt(self, name, namespace, body, **kwargs): """ Update a KubeVirt object. @@ -18420,6 +19411,131 @@ def watch_kube_virt_list_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def watch_migration_policy_list_for_all_namespaces(self, **kwargs): + """ + Watch a MigrationPolicyList object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_migration_policy_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_migration_policy_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_migration_policy_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_migration_policy_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + Watch a MigrationPolicyList object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_migration_policy_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_migration_policy_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/migrations.kubevirt.io/v1alpha1/watch/migrationpolicies', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def watch_namespaced_kube_virt(self, namespace, **kwargs): """ Watch a KubeVirt object. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index b839ed54..a4fefe62 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.48.0-rc.0-20-g77193f178".\ + "SDK Package Version: v0.48.0-98-g69ed3d661".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index e5e4b342..ecd253ef 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -246,7 +246,12 @@ from .v1_watchdog import V1Watchdog from .v1alpha1_condition import V1alpha1Condition from .v1alpha1_error import V1alpha1Error +from .v1alpha1_migration_policy import V1alpha1MigrationPolicy +from .v1alpha1_migration_policy_list import V1alpha1MigrationPolicyList +from .v1alpha1_migration_policy_spec import V1alpha1MigrationPolicySpec +from .v1alpha1_migration_policy_status import V1alpha1MigrationPolicyStatus from .v1alpha1_persistent_volume_claim import V1alpha1PersistentVolumeClaim +from .v1alpha1_selectors import V1alpha1Selectors from .v1alpha1_source_spec import V1alpha1SourceSpec from .v1alpha1_virtual_machine_cluster_flavor import V1alpha1VirtualMachineClusterFlavor from .v1alpha1_virtual_machine_cluster_flavor_list import V1alpha1VirtualMachineClusterFlavorList diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_state.py b/kubevirt/models/v1_virtual_machine_instance_migration_state.py index 701580a4..8dd3f5ed 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_state.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_state.py @@ -36,6 +36,8 @@ class V1VirtualMachineInstanceMigrationState(object): 'completed': 'bool', 'end_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', 'failed': 'bool', + 'migration_configuration': 'V1MigrationConfiguration', + 'migration_policy_name': 'str', 'migration_uid': 'str', 'mode': 'str', 'source_node': 'str', @@ -54,6 +56,8 @@ class V1VirtualMachineInstanceMigrationState(object): 'completed': 'completed', 'end_timestamp': 'endTimestamp', 'failed': 'failed', + 'migration_configuration': 'migrationConfiguration', + 'migration_policy_name': 'migrationPolicyName', 'migration_uid': 'migrationUid', 'mode': 'mode', 'source_node': 'sourceNode', @@ -66,7 +70,7 @@ class V1VirtualMachineInstanceMigrationState(object): 'target_pod': 'targetPod' } - def __init__(self, abort_requested=None, abort_status=None, completed=None, end_timestamp=None, failed=None, migration_uid=None, mode=None, source_node=None, start_timestamp=None, target_attachment_pod_uid=None, target_direct_migration_node_ports=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_pod=None): + def __init__(self, abort_requested=None, abort_status=None, completed=None, end_timestamp=None, failed=None, migration_configuration=None, migration_policy_name=None, migration_uid=None, mode=None, source_node=None, start_timestamp=None, target_attachment_pod_uid=None, target_direct_migration_node_ports=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_pod=None): """ V1VirtualMachineInstanceMigrationState - a model defined in Swagger """ @@ -76,6 +80,8 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self._completed = None self._end_timestamp = None self._failed = None + self._migration_configuration = None + self._migration_policy_name = None self._migration_uid = None self._mode = None self._source_node = None @@ -97,6 +103,10 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self.end_timestamp = end_timestamp if failed is not None: self.failed = failed + if migration_configuration is not None: + self.migration_configuration = migration_configuration + if migration_policy_name is not None: + self.migration_policy_name = migration_policy_name if migration_uid is not None: self.migration_uid = migration_uid if mode is not None: @@ -233,6 +243,52 @@ def failed(self, failed): self._failed = failed + @property + def migration_configuration(self): + """ + Gets the migration_configuration of this V1VirtualMachineInstanceMigrationState. + Migration configurations to apply + + :return: The migration_configuration of this V1VirtualMachineInstanceMigrationState. + :rtype: V1MigrationConfiguration + """ + return self._migration_configuration + + @migration_configuration.setter + def migration_configuration(self, migration_configuration): + """ + Sets the migration_configuration of this V1VirtualMachineInstanceMigrationState. + Migration configurations to apply + + :param migration_configuration: The migration_configuration of this V1VirtualMachineInstanceMigrationState. + :type: V1MigrationConfiguration + """ + + self._migration_configuration = migration_configuration + + @property + def migration_policy_name(self): + """ + Gets the migration_policy_name of this V1VirtualMachineInstanceMigrationState. + Name of the migration policy. If string is empty, no policy is matched + + :return: The migration_policy_name of this V1VirtualMachineInstanceMigrationState. + :rtype: str + """ + return self._migration_policy_name + + @migration_policy_name.setter + def migration_policy_name(self, migration_policy_name): + """ + Sets the migration_policy_name of this V1VirtualMachineInstanceMigrationState. + Name of the migration policy. If string is empty, no policy is matched + + :param migration_policy_name: The migration_policy_name of this V1VirtualMachineInstanceMigrationState. + :type: str + """ + + self._migration_policy_name = migration_policy_name + @property def migration_uid(self): """ diff --git a/kubevirt/models/v1alpha1_migration_policy.py b/kubevirt/models/v1alpha1_migration_policy.py new file mode 100644 index 00000000..60e5822f --- /dev/null +++ b/kubevirt/models/v1alpha1_migration_policy.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1MigrationPolicy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', + 'spec': 'V1alpha1MigrationPolicySpec', + 'status': 'V1alpha1MigrationPolicyStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + """ + V1alpha1MigrationPolicy - a model defined in Swagger + """ + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1MigrationPolicy. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1alpha1MigrationPolicy. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1MigrationPolicy. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1MigrationPolicy. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1alpha1MigrationPolicy. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1MigrationPolicy. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1MigrationPolicy. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1MigrationPolicy. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1MigrationPolicy. + + :return: The metadata of this V1alpha1MigrationPolicy. + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1MigrationPolicy. + + :param metadata: The metadata of this V1alpha1MigrationPolicy. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1alpha1MigrationPolicy. + + :return: The spec of this V1alpha1MigrationPolicy. + :rtype: V1alpha1MigrationPolicySpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1alpha1MigrationPolicy. + + :param spec: The spec of this V1alpha1MigrationPolicy. + :type: V1alpha1MigrationPolicySpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1alpha1MigrationPolicy. + + :return: The status of this V1alpha1MigrationPolicy. + :rtype: V1alpha1MigrationPolicyStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1alpha1MigrationPolicy. + + :param status: The status of this V1alpha1MigrationPolicy. + :type: V1alpha1MigrationPolicyStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1MigrationPolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_migration_policy_list.py b/kubevirt/models/v1alpha1_migration_policy_list.py new file mode 100644 index 00000000..c2fd97b5 --- /dev/null +++ b/kubevirt/models/v1alpha1_migration_policy_list.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1MigrationPolicyList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'items': 'list[V1alpha1MigrationPolicy]', + 'kind': 'str', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1alpha1MigrationPolicyList - a model defined in Swagger + """ + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1MigrationPolicyList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1alpha1MigrationPolicyList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1MigrationPolicyList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1MigrationPolicyList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1alpha1MigrationPolicyList. + + :return: The items of this V1alpha1MigrationPolicyList. + :rtype: list[V1alpha1MigrationPolicy] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1alpha1MigrationPolicyList. + + :param items: The items of this V1alpha1MigrationPolicyList. + :type: list[V1alpha1MigrationPolicy] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1alpha1MigrationPolicyList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1MigrationPolicyList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1MigrationPolicyList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1MigrationPolicyList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1MigrationPolicyList. + + :return: The metadata of this V1alpha1MigrationPolicyList. + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1MigrationPolicyList. + + :param metadata: The metadata of this V1alpha1MigrationPolicyList. + :type: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1MigrationPolicyList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_migration_policy_spec.py b/kubevirt/models/v1alpha1_migration_policy_spec.py new file mode 100644 index 00000000..86899b14 --- /dev/null +++ b/kubevirt/models/v1alpha1_migration_policy_spec.py @@ -0,0 +1,254 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1MigrationPolicySpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'allow_auto_converge': 'bool', + 'allow_post_copy': 'bool', + 'bandwidth_per_migration': 'K8sIoApimachineryPkgApiResourceQuantity', + 'completion_timeout_per_gi_b': 'int', + 'disable_tls': 'bool', + 'selectors': 'V1alpha1Selectors' + } + + attribute_map = { + 'allow_auto_converge': 'allowAutoConverge', + 'allow_post_copy': 'allowPostCopy', + 'bandwidth_per_migration': 'bandwidthPerMigration', + 'completion_timeout_per_gi_b': 'completionTimeoutPerGiB', + 'disable_tls': 'disableTLS', + 'selectors': 'selectors' + } + + def __init__(self, allow_auto_converge=None, allow_post_copy=None, bandwidth_per_migration=None, completion_timeout_per_gi_b=None, disable_tls=None, selectors=None): + """ + V1alpha1MigrationPolicySpec - a model defined in Swagger + """ + + self._allow_auto_converge = None + self._allow_post_copy = None + self._bandwidth_per_migration = None + self._completion_timeout_per_gi_b = None + self._disable_tls = None + self._selectors = None + + if allow_auto_converge is not None: + self.allow_auto_converge = allow_auto_converge + if allow_post_copy is not None: + self.allow_post_copy = allow_post_copy + if bandwidth_per_migration is not None: + self.bandwidth_per_migration = bandwidth_per_migration + if completion_timeout_per_gi_b is not None: + self.completion_timeout_per_gi_b = completion_timeout_per_gi_b + if disable_tls is not None: + self.disable_tls = disable_tls + self.selectors = selectors + + @property + def allow_auto_converge(self): + """ + Gets the allow_auto_converge of this V1alpha1MigrationPolicySpec. + + :return: The allow_auto_converge of this V1alpha1MigrationPolicySpec. + :rtype: bool + """ + return self._allow_auto_converge + + @allow_auto_converge.setter + def allow_auto_converge(self, allow_auto_converge): + """ + Sets the allow_auto_converge of this V1alpha1MigrationPolicySpec. + + :param allow_auto_converge: The allow_auto_converge of this V1alpha1MigrationPolicySpec. + :type: bool + """ + + self._allow_auto_converge = allow_auto_converge + + @property + def allow_post_copy(self): + """ + Gets the allow_post_copy of this V1alpha1MigrationPolicySpec. + + :return: The allow_post_copy of this V1alpha1MigrationPolicySpec. + :rtype: bool + """ + return self._allow_post_copy + + @allow_post_copy.setter + def allow_post_copy(self, allow_post_copy): + """ + Sets the allow_post_copy of this V1alpha1MigrationPolicySpec. + + :param allow_post_copy: The allow_post_copy of this V1alpha1MigrationPolicySpec. + :type: bool + """ + + self._allow_post_copy = allow_post_copy + + @property + def bandwidth_per_migration(self): + """ + Gets the bandwidth_per_migration of this V1alpha1MigrationPolicySpec. + + :return: The bandwidth_per_migration of this V1alpha1MigrationPolicySpec. + :rtype: K8sIoApimachineryPkgApiResourceQuantity + """ + return self._bandwidth_per_migration + + @bandwidth_per_migration.setter + def bandwidth_per_migration(self, bandwidth_per_migration): + """ + Sets the bandwidth_per_migration of this V1alpha1MigrationPolicySpec. + + :param bandwidth_per_migration: The bandwidth_per_migration of this V1alpha1MigrationPolicySpec. + :type: K8sIoApimachineryPkgApiResourceQuantity + """ + + self._bandwidth_per_migration = bandwidth_per_migration + + @property + def completion_timeout_per_gi_b(self): + """ + Gets the completion_timeout_per_gi_b of this V1alpha1MigrationPolicySpec. + + :return: The completion_timeout_per_gi_b of this V1alpha1MigrationPolicySpec. + :rtype: int + """ + return self._completion_timeout_per_gi_b + + @completion_timeout_per_gi_b.setter + def completion_timeout_per_gi_b(self, completion_timeout_per_gi_b): + """ + Sets the completion_timeout_per_gi_b of this V1alpha1MigrationPolicySpec. + + :param completion_timeout_per_gi_b: The completion_timeout_per_gi_b of this V1alpha1MigrationPolicySpec. + :type: int + """ + + self._completion_timeout_per_gi_b = completion_timeout_per_gi_b + + @property + def disable_tls(self): + """ + Gets the disable_tls of this V1alpha1MigrationPolicySpec. + + :return: The disable_tls of this V1alpha1MigrationPolicySpec. + :rtype: bool + """ + return self._disable_tls + + @disable_tls.setter + def disable_tls(self, disable_tls): + """ + Sets the disable_tls of this V1alpha1MigrationPolicySpec. + + :param disable_tls: The disable_tls of this V1alpha1MigrationPolicySpec. + :type: bool + """ + + self._disable_tls = disable_tls + + @property + def selectors(self): + """ + Gets the selectors of this V1alpha1MigrationPolicySpec. + + :return: The selectors of this V1alpha1MigrationPolicySpec. + :rtype: V1alpha1Selectors + """ + return self._selectors + + @selectors.setter + def selectors(self, selectors): + """ + Sets the selectors of this V1alpha1MigrationPolicySpec. + + :param selectors: The selectors of this V1alpha1MigrationPolicySpec. + :type: V1alpha1Selectors + """ + if selectors is None: + raise ValueError("Invalid value for `selectors`, must not be `None`") + + self._selectors = selectors + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1MigrationPolicySpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_migration_policy_status.py b/kubevirt/models/v1alpha1_migration_policy_status.py new file mode 100644 index 00000000..b191231a --- /dev/null +++ b/kubevirt/models/v1alpha1_migration_policy_status.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1MigrationPolicyStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1alpha1MigrationPolicyStatus - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1MigrationPolicyStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_selectors.py b/kubevirt/models/v1alpha1_selectors.py new file mode 100644 index 00000000..8fa4aee7 --- /dev/null +++ b/kubevirt/models/v1alpha1_selectors.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1Selectors(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'namespace_selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', + 'virtual_machine_instance_selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector' + } + + attribute_map = { + 'namespace_selector': 'namespaceSelector', + 'virtual_machine_instance_selector': 'virtualMachineInstanceSelector' + } + + def __init__(self, namespace_selector=None, virtual_machine_instance_selector=None): + """ + V1alpha1Selectors - a model defined in Swagger + """ + + self._namespace_selector = None + self._virtual_machine_instance_selector = None + + if namespace_selector is not None: + self.namespace_selector = namespace_selector + if virtual_machine_instance_selector is not None: + self.virtual_machine_instance_selector = virtual_machine_instance_selector + + @property + def namespace_selector(self): + """ + Gets the namespace_selector of this V1alpha1Selectors. + + :return: The namespace_selector of this V1alpha1Selectors. + :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + return self._namespace_selector + + @namespace_selector.setter + def namespace_selector(self, namespace_selector): + """ + Sets the namespace_selector of this V1alpha1Selectors. + + :param namespace_selector: The namespace_selector of this V1alpha1Selectors. + :type: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + + self._namespace_selector = namespace_selector + + @property + def virtual_machine_instance_selector(self): + """ + Gets the virtual_machine_instance_selector of this V1alpha1Selectors. + + :return: The virtual_machine_instance_selector of this V1alpha1Selectors. + :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + return self._virtual_machine_instance_selector + + @virtual_machine_instance_selector.setter + def virtual_machine_instance_selector(self, virtual_machine_instance_selector): + """ + Sets the virtual_machine_instance_selector of this V1alpha1Selectors. + + :param virtual_machine_instance_selector: The virtual_machine_instance_selector of this V1alpha1Selectors. + :type: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + + self._virtual_machine_instance_selector = virtual_machine_instance_selector + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1Selectors): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index df345966..cb61b1b2 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.48.0-rc.0-20-g77193f178" +VERSION = "v0.48.0-98-g69ed3d661" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 83652166..acb1fbe9 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.48.0-rc.0-20-g77193f178" +"packageVersion": "v0.48.0-98-g69ed3d661" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 51370738..28fbbafa 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -31,6 +31,14 @@ def setUp(self): def tearDown(self): pass + def test_create_migration_policy(self): + """ + Test case for create_migration_policy + + + """ + pass + def test_create_namespaced_kube_virt(self): """ Test case for create_namespaced_kube_virt @@ -116,6 +124,14 @@ def test_create_virtual_machine_cluster_flavor(self): Test case for create_virtual_machine_cluster_flavor + """ + pass + + def test_delete_collection_migration_policy(self): + """ + Test case for delete_collection_migration_policy + + """ pass @@ -204,6 +220,14 @@ def test_delete_collection_virtual_machine_cluster_flavor(self): Test case for delete_collection_virtual_machine_cluster_flavor + """ + pass + + def test_delete_migration_policy(self): + """ + Test case for delete_migration_policy + + """ pass @@ -332,6 +356,14 @@ def test_get_api_group_list(self): Test case for get_api_group_list + """ + pass + + def test_get_api_group_migrations_kubevirt_io(self): + """ + Test case for get_api_group_migrations_kubevirt_io + + """ pass @@ -356,6 +388,14 @@ def test_get_api_resources_kubevirt_io_v1(self): Test case for get_api_resources_kubevirt_io_v1 + """ + pass + + def test_get_api_resources_migrations_kubevirt_io_v1alpha1(self): + """ + Test case for get_api_resources_migrations_kubevirt_io_v1alpha1 + + """ pass @@ -404,6 +444,14 @@ def test_list_kube_virt_for_all_namespaces(self): Test case for list_kube_virt_for_all_namespaces + """ + pass + + def test_list_migration_policy(self): + """ + Test case for list_migration_policy + + """ pass @@ -564,6 +612,14 @@ def test_list_virtual_machine_snapshot_for_all_namespaces(self): Test case for list_virtual_machine_snapshot_for_all_namespaces + """ + pass + + def test_patch_migration_policy(self): + """ + Test case for patch_migration_policy + + """ pass @@ -652,6 +708,14 @@ def test_patch_virtual_machine_cluster_flavor(self): Test case for patch_virtual_machine_cluster_flavor + """ + pass + + def test_read_migration_policy(self): + """ + Test case for read_migration_policy + + """ pass @@ -740,6 +804,14 @@ def test_read_virtual_machine_cluster_flavor(self): Test case for read_virtual_machine_cluster_flavor + """ + pass + + def test_replace_migration_policy(self): + """ + Test case for replace_migration_policy + + """ pass @@ -1340,6 +1412,14 @@ def test_watch_kube_virt_list_for_all_namespaces(self): Test case for watch_kube_virt_list_for_all_namespaces + """ + pass + + def test_watch_migration_policy_list_for_all_namespaces(self): + """ + Test case for watch_migration_policy_list_for_all_namespaces + + """ pass diff --git a/test/test_v1alpha1_migration_policy.py b/test/test_v1alpha1_migration_policy.py new file mode 100644 index 00000000..5a424642 --- /dev/null +++ b/test/test_v1alpha1_migration_policy.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_migration_policy import V1alpha1MigrationPolicy + + +class TestV1alpha1MigrationPolicy(unittest.TestCase): + """ V1alpha1MigrationPolicy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1MigrationPolicy(self): + """ + Test V1alpha1MigrationPolicy + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_migration_policy.V1alpha1MigrationPolicy() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_migration_policy_list.py b/test/test_v1alpha1_migration_policy_list.py new file mode 100644 index 00000000..0c199f1a --- /dev/null +++ b/test/test_v1alpha1_migration_policy_list.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_migration_policy_list import V1alpha1MigrationPolicyList + + +class TestV1alpha1MigrationPolicyList(unittest.TestCase): + """ V1alpha1MigrationPolicyList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1MigrationPolicyList(self): + """ + Test V1alpha1MigrationPolicyList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_migration_policy_list.V1alpha1MigrationPolicyList() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_migration_policy_spec.py b/test/test_v1alpha1_migration_policy_spec.py new file mode 100644 index 00000000..bec65214 --- /dev/null +++ b/test/test_v1alpha1_migration_policy_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_migration_policy_spec import V1alpha1MigrationPolicySpec + + +class TestV1alpha1MigrationPolicySpec(unittest.TestCase): + """ V1alpha1MigrationPolicySpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1MigrationPolicySpec(self): + """ + Test V1alpha1MigrationPolicySpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_migration_policy_spec.V1alpha1MigrationPolicySpec() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_migration_policy_status.py b/test/test_v1alpha1_migration_policy_status.py new file mode 100644 index 00000000..d8914180 --- /dev/null +++ b/test/test_v1alpha1_migration_policy_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_migration_policy_status import V1alpha1MigrationPolicyStatus + + +class TestV1alpha1MigrationPolicyStatus(unittest.TestCase): + """ V1alpha1MigrationPolicyStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1MigrationPolicyStatus(self): + """ + Test V1alpha1MigrationPolicyStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_migration_policy_status.V1alpha1MigrationPolicyStatus() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_selectors.py b/test/test_v1alpha1_selectors.py new file mode 100644 index 00000000..c99167ff --- /dev/null +++ b/test/test_v1alpha1_selectors.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_selectors import V1alpha1Selectors + + +class TestV1alpha1Selectors(unittest.TestCase): + """ V1alpha1Selectors unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1Selectors(self): + """ + Test V1alpha1Selectors + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_selectors.V1alpha1Selectors() + pass + + +if __name__ == '__main__': + unittest.main() From 5c98262752cbe29a641d562235b7c2cd7e2831ca Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 15 Dec 2021 02:02:31 +0000 Subject: [PATCH 250/521] Client Python update by KubeVirt Prow build 1470929013349289984 --- README.md | 2 +- docs/V1AddVolumeOptions.md | 1 + docs/V1RemoveVolumeOptions.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_add_volume_options.py | 30 ++++++++++++++++++++- kubevirt/models/v1_remove_volume_options.py | 30 ++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 66 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 80e614b7..26caccac 100644 --- a/README.md +++ b/README.md @@ -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: v0.48.0-98-g69ed3d661 +- Package version: v0.48.0-116-g4beef45d5 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1AddVolumeOptions.md b/docs/V1AddVolumeOptions.md index ced921e2..14333e6a 100644 --- a/docs/V1AddVolumeOptions.md +++ b/docs/V1AddVolumeOptions.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **disk** | [**V1Disk**](V1Disk.md) | Disk represents the hotplug disk that will be plugged into the running VMI | +**dry_run** | **list[str]** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **name** | **str** | Name represents the name that will be used to map the disk to the corresponding volume. This overrides any name set inside the Disk struct itself. | **volume_source** | [**V1HotplugVolumeSource**](V1HotplugVolumeSource.md) | VolumeSource represents the source of the volume to map to the disk. | diff --git a/docs/V1RemoveVolumeOptions.md b/docs/V1RemoveVolumeOptions.md index 5568dba6..f8d08edd 100644 --- a/docs/V1RemoveVolumeOptions.md +++ b/docs/V1RemoveVolumeOptions.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**dry_run** | **list[str]** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **name** | **str** | Name represents the name that maps to both the disk and volume that should be removed | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index d846b365..fdde2985 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.48.0-98-g69ed3d661" + release_note="Auto-generated client v0.48.0-116-g4beef45d5" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index df0e074a..ee65f4d3 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.48.0-98-g69ed3d661/python' + self.user_agent = 'Swagger-Codegen/v0.48.0-116-g4beef45d5/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index a4fefe62..d7c6a48b 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.48.0-98-g69ed3d661".\ + "SDK Package Version: v0.48.0-116-g4beef45d5".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_add_volume_options.py b/kubevirt/models/v1_add_volume_options.py index 88749a71..86df0bfa 100644 --- a/kubevirt/models/v1_add_volume_options.py +++ b/kubevirt/models/v1_add_volume_options.py @@ -32,26 +32,31 @@ class V1AddVolumeOptions(object): """ swagger_types = { 'disk': 'V1Disk', + 'dry_run': 'list[str]', 'name': 'str', 'volume_source': 'V1HotplugVolumeSource' } attribute_map = { 'disk': 'disk', + 'dry_run': 'dryRun', 'name': 'name', 'volume_source': 'volumeSource' } - def __init__(self, disk=None, name=None, volume_source=None): + def __init__(self, disk=None, dry_run=None, name=None, volume_source=None): """ V1AddVolumeOptions - a model defined in Swagger """ self._disk = None + self._dry_run = None self._name = None self._volume_source = None self.disk = disk + if dry_run is not None: + self.dry_run = dry_run self.name = name self.volume_source = volume_source @@ -80,6 +85,29 @@ def disk(self, disk): self._disk = disk + @property + def dry_run(self): + """ + Gets the dry_run of this V1AddVolumeOptions. + When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + + :return: The dry_run of this V1AddVolumeOptions. + :rtype: list[str] + """ + return self._dry_run + + @dry_run.setter + def dry_run(self, dry_run): + """ + Sets the dry_run of this V1AddVolumeOptions. + When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + + :param dry_run: The dry_run of this V1AddVolumeOptions. + :type: list[str] + """ + + self._dry_run = dry_run + @property def name(self): """ diff --git a/kubevirt/models/v1_remove_volume_options.py b/kubevirt/models/v1_remove_volume_options.py index fce80907..09f3a2ff 100644 --- a/kubevirt/models/v1_remove_volume_options.py +++ b/kubevirt/models/v1_remove_volume_options.py @@ -31,22 +31,50 @@ class V1RemoveVolumeOptions(object): and the value is json key in definition. """ swagger_types = { + 'dry_run': 'list[str]', 'name': 'str' } attribute_map = { + 'dry_run': 'dryRun', 'name': 'name' } - def __init__(self, name=None): + def __init__(self, dry_run=None, name=None): """ V1RemoveVolumeOptions - a model defined in Swagger """ + self._dry_run = None self._name = None + if dry_run is not None: + self.dry_run = dry_run self.name = name + @property + def dry_run(self): + """ + Gets the dry_run of this V1RemoveVolumeOptions. + When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + + :return: The dry_run of this V1RemoveVolumeOptions. + :rtype: list[str] + """ + return self._dry_run + + @dry_run.setter + def dry_run(self, dry_run): + """ + Sets the dry_run of this V1RemoveVolumeOptions. + When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + + :param dry_run: The dry_run of this V1RemoveVolumeOptions. + :type: list[str] + """ + + self._dry_run = dry_run + @property def name(self): """ diff --git a/setup.py b/setup.py index cb61b1b2..931a193e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.48.0-98-g69ed3d661" +VERSION = "v0.48.0-116-g4beef45d5" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index acb1fbe9..fa802ca9 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.48.0-98-g69ed3d661" +"packageVersion": "v0.48.0-116-g4beef45d5" } From d0770dbdc01e0b06588eb9c294e96c0a39615bc6 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 17 Dec 2021 18:12:08 +0000 Subject: [PATCH 251/521] Client Python update by KubeVirt Prow build 1471891034693701632 --- README.md | 20 +- docs/DefaultApi.md | 680 ++++++- docs/V1alpha1VirtualMachinePool.md | 14 + docs/V1alpha1VirtualMachinePoolCondition.md | 13 + docs/V1alpha1VirtualMachinePoolList.md | 13 + docs/V1alpha1VirtualMachinePoolSpec.md | 13 + docs/V1alpha1VirtualMachinePoolStatus.md | 12 + docs/V1alpha1VirtualMachineTemplateSpec.md | 11 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 20 + kubevirt/__init__.py | 6 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 1607 ++++++++++++++++- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 6 + .../models/v1alpha1_virtual_machine_pool.py | 232 +++ ...v1alpha1_virtual_machine_pool_condition.py | 203 +++ .../v1alpha1_virtual_machine_pool_list.py | 206 +++ .../v1alpha1_virtual_machine_pool_spec.py | 211 +++ .../v1alpha1_virtual_machine_pool_status.py | 177 ++ .../v1alpha1_virtual_machine_template_spec.py | 151 ++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 96 + test/test_v1alpha1_virtual_machine_pool.py | 44 + ...v1alpha1_virtual_machine_pool_condition.py | 44 + ...test_v1alpha1_virtual_machine_pool_list.py | 44 + ...test_v1alpha1_virtual_machine_pool_spec.py | 44 + ...st_v1alpha1_virtual_machine_pool_status.py | 44 + ..._v1alpha1_virtual_machine_template_spec.py | 44 + 30 files changed, 3857 insertions(+), 108 deletions(-) create mode 100644 docs/V1alpha1VirtualMachinePool.md create mode 100644 docs/V1alpha1VirtualMachinePoolCondition.md create mode 100644 docs/V1alpha1VirtualMachinePoolList.md create mode 100644 docs/V1alpha1VirtualMachinePoolSpec.md create mode 100644 docs/V1alpha1VirtualMachinePoolStatus.md create mode 100644 docs/V1alpha1VirtualMachineTemplateSpec.md create mode 100644 kubevirt/models/v1alpha1_virtual_machine_pool.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_pool_condition.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_pool_list.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_pool_spec.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_pool_status.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_template_spec.py create mode 100644 test/test_v1alpha1_virtual_machine_pool.py create mode 100644 test/test_v1alpha1_virtual_machine_pool_condition.py create mode 100644 test/test_v1alpha1_virtual_machine_pool_list.py create mode 100644 test/test_v1alpha1_virtual_machine_pool_spec.py create mode 100644 test/test_v1alpha1_virtual_machine_pool_status.py create mode 100644 test/test_v1alpha1_virtual_machine_template_spec.py diff --git a/README.md b/README.md index 26caccac..1b80096a 100644 --- a/README.md +++ b/README.md @@ -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: v0.48.0-116-g4beef45d5 +- Package version: v0.48.0-142-g76447bdba - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -77,6 +77,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**create_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | *DefaultApi* | [**create_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | *DefaultApi* | [**create_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +*DefaultApi* | [**create_namespaced_virtual_machine_pool**](docs/DefaultApi.md#create_namespaced_virtual_machine_pool) | **POST** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | *DefaultApi* | [**create_namespaced_virtual_machine_restore**](docs/DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**create_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**create_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | @@ -89,6 +90,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_pool**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | @@ -101,6 +103,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_namespaced_virtual_machine_pool**](docs/DefaultApi.md#delete_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | @@ -111,10 +114,12 @@ Class | Method | HTTP request | Description *DefaultApi* | [**get_api_group_kubevirt_io**](docs/DefaultApi.md#get_api_group_kubevirt_io) | **GET** /apis/kubevirt.io/ | *DefaultApi* | [**get_api_group_list**](docs/DefaultApi.md#get_api_group_list) | **GET** /apis | *DefaultApi* | [**get_api_group_migrations_kubevirt_io**](docs/DefaultApi.md#get_api_group_migrations_kubevirt_io) | **GET** /apis/migrations.kubevirt.io/ | +*DefaultApi* | [**get_api_group_pool_kubevirt_io**](docs/DefaultApi.md#get_api_group_pool_kubevirt_io) | **GET** /apis/pool.kubevirt.io/ | *DefaultApi* | [**get_api_group_snapshot_kubevirt_io**](docs/DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | *DefaultApi* | [**get_api_resources_flavor_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_flavor_kubevirt_io_v1alpha1) | **GET** /apis/flavor.kubevirt.io/v1alpha1/ | *DefaultApi* | [**get_api_resources_kubevirt_io_v1**](docs/DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | *DefaultApi* | [**get_api_resources_migrations_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_migrations_kubevirt_io_v1alpha1) | **GET** /apis/migrations.kubevirt.io/v1alpha1/ | +*DefaultApi* | [**get_api_resources_pool_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_pool_kubevirt_io_v1alpha1) | **GET** /apis/pool.kubevirt.io/v1alpha1/ | *DefaultApi* | [**get_api_resources_snapshot_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_snapshot_kubevirt_io_v1alpha1) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/ | *DefaultApi* | [**get_root_paths**](docs/DefaultApi.md#get_root_paths) | **GET** / | *DefaultApi* | [**handle_dump_profiler**](docs/DefaultApi.md#handle_dump_profiler) | **GET** /dump-profiler | @@ -129,6 +134,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | *DefaultApi* | [**list_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | *DefaultApi* | [**list_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +*DefaultApi* | [**list_namespaced_virtual_machine_pool**](docs/DefaultApi.md#list_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | *DefaultApi* | [**list_namespaced_virtual_machine_restore**](docs/DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**list_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**list_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | @@ -139,6 +145,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_virtual_machine_instance_migration_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancemigrations | *DefaultApi* | [**list_virtual_machine_instance_preset_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancepresets | *DefaultApi* | [**list_virtual_machine_instance_replica_set_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancereplicasets | +*DefaultApi* | [**list_virtual_machine_pool_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_pool_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/virtualmachinepools | *DefaultApi* | [**list_virtual_machine_restore_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_restore_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores | *DefaultApi* | [**list_virtual_machine_snapshot_content_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents | *DefaultApi* | [**list_virtual_machine_snapshot_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots | @@ -150,6 +157,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**patch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_namespaced_virtual_machine_pool**](docs/DefaultApi.md#patch_namespaced_virtual_machine_pool) | **PATCH** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | @@ -162,6 +170,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**read_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_namespaced_virtual_machine_pool**](docs/DefaultApi.md#read_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_restore**](docs/DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | @@ -174,6 +183,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**replace_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_namespaced_virtual_machine_pool**](docs/DefaultApi.md#replace_namespaced_virtual_machine_pool) | **PUT** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_restore**](docs/DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | @@ -250,6 +260,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**watch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | *DefaultApi* | [**watch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | *DefaultApi* | [**watch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +*DefaultApi* | [**watch_namespaced_virtual_machine_pool**](docs/DefaultApi.md#watch_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | *DefaultApi* | [**watch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**watch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**watch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | @@ -260,6 +271,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**watch_virtual_machine_instance_preset_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancepresets | *DefaultApi* | [**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancereplicasets | *DefaultApi* | [**watch_virtual_machine_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachines | +*DefaultApi* | [**watch_virtual_machine_pool_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_pool_list_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/virtualmachinepools | *DefaultApi* | [**watch_virtual_machine_restore_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_restore_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinerestores | *DefaultApi* | [**watch_virtual_machine_snapshot_content_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_snapshot_content_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshotcontents | *DefaultApi* | [**watch_virtual_machine_snapshot_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_snapshot_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshots | @@ -511,6 +523,11 @@ Class | Method | HTTP request | Description - [V1alpha1VirtualMachineFlavor](docs/V1alpha1VirtualMachineFlavor.md) - [V1alpha1VirtualMachineFlavorList](docs/V1alpha1VirtualMachineFlavorList.md) - [V1alpha1VirtualMachineFlavorProfile](docs/V1alpha1VirtualMachineFlavorProfile.md) + - [V1alpha1VirtualMachinePool](docs/V1alpha1VirtualMachinePool.md) + - [V1alpha1VirtualMachinePoolCondition](docs/V1alpha1VirtualMachinePoolCondition.md) + - [V1alpha1VirtualMachinePoolList](docs/V1alpha1VirtualMachinePoolList.md) + - [V1alpha1VirtualMachinePoolSpec](docs/V1alpha1VirtualMachinePoolSpec.md) + - [V1alpha1VirtualMachinePoolStatus](docs/V1alpha1VirtualMachinePoolStatus.md) - [V1alpha1VirtualMachineRestore](docs/V1alpha1VirtualMachineRestore.md) - [V1alpha1VirtualMachineRestoreList](docs/V1alpha1VirtualMachineRestoreList.md) - [V1alpha1VirtualMachineRestoreSpec](docs/V1alpha1VirtualMachineRestoreSpec.md) @@ -523,6 +540,7 @@ Class | Method | HTTP request | Description - [V1alpha1VirtualMachineSnapshotList](docs/V1alpha1VirtualMachineSnapshotList.md) - [V1alpha1VirtualMachineSnapshotSpec](docs/V1alpha1VirtualMachineSnapshotSpec.md) - [V1alpha1VirtualMachineSnapshotStatus](docs/V1alpha1VirtualMachineSnapshotStatus.md) + - [V1alpha1VirtualMachineTemplateSpec](docs/V1alpha1VirtualMachineTemplateSpec.md) - [V1alpha1VolumeBackup](docs/V1alpha1VolumeBackup.md) - [V1alpha1VolumeRestore](docs/V1alpha1VolumeRestore.md) - [V1alpha1VolumeSnapshotStatus](docs/V1alpha1VolumeSnapshotStatus.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 6fe392c1..3f0d2a6f 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -12,6 +12,7 @@ Method | HTTP request | Description [**create_namespaced_virtual_machine_instance_migration**](DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | [**create_namespaced_virtual_machine_instance_preset**](DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | [**create_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +[**create_namespaced_virtual_machine_pool**](DefaultApi.md#create_namespaced_virtual_machine_pool) | **POST** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | [**create_namespaced_virtual_machine_restore**](DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**create_namespaced_virtual_machine_snapshot**](DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**create_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | @@ -24,6 +25,7 @@ Method | HTTP request | Description [**delete_collection_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | [**delete_collection_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +[**delete_collection_namespaced_virtual_machine_pool**](DefaultApi.md#delete_collection_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | [**delete_collection_namespaced_virtual_machine_restore**](DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**delete_collection_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**delete_collection_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | @@ -36,6 +38,7 @@ Method | HTTP request | Description [**delete_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_namespaced_virtual_machine_pool**](DefaultApi.md#delete_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_restore**](DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | @@ -46,10 +49,12 @@ Method | HTTP request | Description [**get_api_group_kubevirt_io**](DefaultApi.md#get_api_group_kubevirt_io) | **GET** /apis/kubevirt.io/ | [**get_api_group_list**](DefaultApi.md#get_api_group_list) | **GET** /apis | [**get_api_group_migrations_kubevirt_io**](DefaultApi.md#get_api_group_migrations_kubevirt_io) | **GET** /apis/migrations.kubevirt.io/ | +[**get_api_group_pool_kubevirt_io**](DefaultApi.md#get_api_group_pool_kubevirt_io) | **GET** /apis/pool.kubevirt.io/ | [**get_api_group_snapshot_kubevirt_io**](DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | [**get_api_resources_flavor_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_flavor_kubevirt_io_v1alpha1) | **GET** /apis/flavor.kubevirt.io/v1alpha1/ | [**get_api_resources_kubevirt_io_v1**](DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | [**get_api_resources_migrations_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_migrations_kubevirt_io_v1alpha1) | **GET** /apis/migrations.kubevirt.io/v1alpha1/ | +[**get_api_resources_pool_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_pool_kubevirt_io_v1alpha1) | **GET** /apis/pool.kubevirt.io/v1alpha1/ | [**get_api_resources_snapshot_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_snapshot_kubevirt_io_v1alpha1) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/ | [**get_root_paths**](DefaultApi.md#get_root_paths) | **GET** / | [**handle_dump_profiler**](DefaultApi.md#handle_dump_profiler) | **GET** /dump-profiler | @@ -64,6 +69,7 @@ Method | HTTP request | Description [**list_namespaced_virtual_machine_instance_migration**](DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | [**list_namespaced_virtual_machine_instance_preset**](DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | [**list_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +[**list_namespaced_virtual_machine_pool**](DefaultApi.md#list_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | [**list_namespaced_virtual_machine_restore**](DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**list_namespaced_virtual_machine_snapshot**](DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**list_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | @@ -74,6 +80,7 @@ Method | HTTP request | Description [**list_virtual_machine_instance_migration_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancemigrations | [**list_virtual_machine_instance_preset_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancepresets | [**list_virtual_machine_instance_replica_set_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancereplicasets | +[**list_virtual_machine_pool_for_all_namespaces**](DefaultApi.md#list_virtual_machine_pool_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/virtualmachinepools | [**list_virtual_machine_restore_for_all_namespaces**](DefaultApi.md#list_virtual_machine_restore_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores | [**list_virtual_machine_snapshot_content_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents | [**list_virtual_machine_snapshot_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots | @@ -85,6 +92,7 @@ Method | HTTP request | Description [**patch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_namespaced_virtual_machine_pool**](DefaultApi.md#patch_namespaced_virtual_machine_pool) | **PATCH** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_restore**](DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_snapshot**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | @@ -97,6 +105,7 @@ Method | HTTP request | Description [**read_namespaced_virtual_machine_instance_migration**](DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_instance_preset**](DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +[**read_namespaced_virtual_machine_pool**](DefaultApi.md#read_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_restore**](DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_snapshot**](DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | @@ -109,6 +118,7 @@ Method | HTTP request | Description [**replace_namespaced_virtual_machine_instance_migration**](DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_instance_preset**](DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_namespaced_virtual_machine_pool**](DefaultApi.md#replace_namespaced_virtual_machine_pool) | **PUT** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_restore**](DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_snapshot**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | @@ -185,6 +195,7 @@ Method | HTTP request | Description [**watch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | [**watch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | [**watch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +[**watch_namespaced_virtual_machine_pool**](DefaultApi.md#watch_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | [**watch_namespaced_virtual_machine_restore**](DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**watch_namespaced_virtual_machine_snapshot**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**watch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | @@ -195,6 +206,7 @@ Method | HTTP request | Description [**watch_virtual_machine_instance_preset_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancepresets | [**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancereplicasets | [**watch_virtual_machine_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachines | +[**watch_virtual_machine_pool_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_pool_list_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/virtualmachinepools | [**watch_virtual_machine_restore_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_restore_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinerestores | [**watch_virtual_machine_snapshot_content_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_snapshot_content_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshotcontents | [**watch_virtual_machine_snapshot_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_snapshot_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshots | @@ -590,6 +602,55 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **create_namespaced_virtual_machine_pool** +> V1alpha1VirtualMachinePool create_namespaced_virtual_machine_pool(body, namespace) + + + +Create a VirtualMachinePool object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +body = kubevirt.V1alpha1VirtualMachinePool() # V1alpha1VirtualMachinePool | +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.create_namespaced_virtual_machine_pool(body, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->create_namespaced_virtual_machine_pool: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1alpha1VirtualMachinePool**](V1alpha1VirtualMachinePool.md)| | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +[**V1alpha1VirtualMachinePool**](V1alpha1VirtualMachinePool.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **create_namespaced_virtual_machine_restore** > V1alpha1VirtualMachineRestore create_namespaced_virtual_machine_restore(body, namespace) @@ -1272,6 +1333,67 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_collection_namespaced_virtual_machine_pool** +> K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_pool(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Delete a collection of VirtualMachinePool objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_namespaced_virtual_machine_pool(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_pool: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_collection_namespaced_virtual_machine_restore** > K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_restore(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -1970,6 +2092,63 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_namespaced_virtual_machine_pool** +> K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_pool(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + + + +Delete a VirtualMachinePool object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.K8sIoApimachineryPkgApisMetaV1DeleteOptions() # K8sIoApimachineryPkgApisMetaV1DeleteOptions | +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + +try: + api_response = api_instance.delete_namespaced_virtual_machine_pool(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_pool: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**K8sIoApimachineryPkgApisMetaV1DeleteOptions**](K8sIoApimachineryPkgApisMetaV1DeleteOptions.md)| | + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_namespaced_virtual_machine_restore** > K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_restore(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -2450,6 +2629,49 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_api_group_pool_kubevirt_io** +> K8sIoApimachineryPkgApisMetaV1APIGroup get_api_group_pool_kubevirt_io() + + + +Get a KubeVirt API group + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.get_api_group_pool_kubevirt_io() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->get_api_group_pool_kubevirt_io: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1APIGroup**](K8sIoApimachineryPkgApisMetaV1APIGroup.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_api_group_snapshot_kubevirt_io** > K8sIoApimachineryPkgApisMetaV1APIGroup get_api_group_snapshot_kubevirt_io() @@ -2622,6 +2844,49 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_api_resources_pool_kubevirt_io_v1alpha1** +> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_pool_kubevirt_io_v1alpha1() + + + +Get KubeVirt API Resources + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.get_api_resources_pool_kubevirt_io_v1alpha1() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->get_api_resources_pool_kubevirt_io_v1alpha1: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1APIResourceList**](K8sIoApimachineryPkgApisMetaV1APIResourceList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_api_resources_snapshot_kubevirt_io_v1alpha1** > K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_snapshot_kubevirt_io_v1alpha1() @@ -3397,6 +3662,69 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **list_namespaced_virtual_machine_pool** +> V1alpha1VirtualMachinePoolList list_namespaced_virtual_machine_pool(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Get a list of VirtualMachinePool objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_virtual_machine_pool(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->list_namespaced_virtual_machine_pool: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1VirtualMachinePoolList**](V1alpha1VirtualMachinePoolList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **list_namespaced_virtual_machine_restore** > V1alpha1VirtualMachineRestoreList list_namespaced_virtual_machine_restore(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -3952,12 +4280,73 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_virtual_machine_instance_replica_set_for_all_namespaces** -> V1VirtualMachineInstanceReplicaSetList list_virtual_machine_instance_replica_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_virtual_machine_instance_replica_set_for_all_namespaces** +> V1VirtualMachineInstanceReplicaSetList list_virtual_machine_instance_replica_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Get a list of all VirtualMachineInstanceReplicaSet objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_virtual_machine_instance_replica_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->list_virtual_machine_instance_replica_set_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1VirtualMachineInstanceReplicaSetList**](V1VirtualMachineInstanceReplicaSetList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_virtual_machine_pool_for_all_namespaces** +> V1alpha1VirtualMachinePoolList list_virtual_machine_pool_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of all VirtualMachineInstanceReplicaSet objects. +Get a list of all VirtualMachinePool objects. ### Example ```python @@ -3979,10 +4368,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_virtual_machine_instance_replica_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_virtual_machine_pool_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_virtual_machine_instance_replica_set_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->list_virtual_machine_pool_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -4000,7 +4389,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstanceReplicaSetList**](V1VirtualMachineInstanceReplicaSetList.md) +[**V1alpha1VirtualMachinePoolList**](V1alpha1VirtualMachinePoolList.md) ### Authorization @@ -4602,6 +4991,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **patch_namespaced_virtual_machine_pool** +> V1alpha1VirtualMachinePool patch_namespaced_virtual_machine_pool(name, namespace, body) + + + +Patch a VirtualMachinePool object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | + +try: + api_response = api_instance.patch_namespaced_virtual_machine_pool(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_pool: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**K8sIoApimachineryPkgApisMetaV1Patch**](K8sIoApimachineryPkgApisMetaV1Patch.md)| | + +### Return type + +[**V1alpha1VirtualMachinePool**](V1alpha1VirtualMachinePool.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **patch_namespaced_virtual_machine_restore** > V1alpha1VirtualMachineRestore patch_namespaced_virtual_machine_restore(name, namespace, body) @@ -5226,6 +5666,59 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **read_namespaced_virtual_machine_pool** +> V1alpha1VirtualMachinePool read_namespaced_virtual_machine_pool(name, namespace, exact=exact, export=export) + + + +Get a VirtualMachinePool object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_namespaced_virtual_machine_pool(name, namespace, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->read_namespaced_virtual_machine_pool: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1alpha1VirtualMachinePool**](V1alpha1VirtualMachinePool.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **read_namespaced_virtual_machine_restore** > V1alpha1VirtualMachineRestore read_namespaced_virtual_machine_restore(name, namespace, exact=exact, export=export) @@ -5842,6 +6335,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **replace_namespaced_virtual_machine_pool** +> V1alpha1VirtualMachinePool replace_namespaced_virtual_machine_pool(name, namespace, body) + + + +Update a VirtualMachinePool object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1alpha1VirtualMachinePool() # V1alpha1VirtualMachinePool | + +try: + api_response = api_instance.replace_namespaced_virtual_machine_pool(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_pool: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1VirtualMachinePool**](V1alpha1VirtualMachinePool.md)| | + +### Return type + +[**V1alpha1VirtualMachinePool**](V1alpha1VirtualMachinePool.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **replace_namespaced_virtual_machine_restore** > V1alpha1VirtualMachineRestore replace_namespaced_virtual_machine_restore(name, namespace, body) @@ -9604,6 +10148,69 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **watch_namespaced_virtual_machine_pool** +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_pool(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Watch a VirtualMachinePool object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_namespaced_virtual_machine_pool(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->watch_namespaced_virtual_machine_pool: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **watch_namespaced_virtual_machine_restore** > K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_restore(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -10220,6 +10827,67 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **watch_virtual_machine_pool_list_for_all_namespaces** +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_pool_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Watch a VirtualMachinePoolList object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_virtual_machine_pool_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->watch_virtual_machine_pool_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **watch_virtual_machine_restore_list_for_all_namespaces** > K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_restore_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) diff --git a/docs/V1alpha1VirtualMachinePool.md b/docs/V1alpha1VirtualMachinePool.md new file mode 100644 index 00000000..5cf6184d --- /dev/null +++ b/docs/V1alpha1VirtualMachinePool.md @@ -0,0 +1,14 @@ +# V1alpha1VirtualMachinePool + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha1VirtualMachinePoolSpec**](V1alpha1VirtualMachinePoolSpec.md) | | +**status** | [**V1alpha1VirtualMachinePoolStatus**](V1alpha1VirtualMachinePoolStatus.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachinePoolCondition.md b/docs/V1alpha1VirtualMachinePoolCondition.md new file mode 100644 index 00000000..0368d3e1 --- /dev/null +++ b/docs/V1alpha1VirtualMachinePoolCondition.md @@ -0,0 +1,13 @@ +# V1alpha1VirtualMachinePoolCondition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | | [optional] +**reason** | **str** | | [optional] +**status** | **str** | | +**type** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachinePoolList.md b/docs/V1alpha1VirtualMachinePoolList.md new file mode 100644 index 00000000..fd07f333 --- /dev/null +++ b/docs/V1alpha1VirtualMachinePoolList.md @@ -0,0 +1,13 @@ +# V1alpha1VirtualMachinePoolList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list[V1alpha1VirtualMachinePool]**](V1alpha1VirtualMachinePool.md) | | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachinePoolSpec.md b/docs/V1alpha1VirtualMachinePoolSpec.md new file mode 100644 index 00000000..6fc9d2f2 --- /dev/null +++ b/docs/V1alpha1VirtualMachinePoolSpec.md @@ -0,0 +1,13 @@ +# V1alpha1VirtualMachinePoolSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**paused** | **bool** | Indicates that the pool is paused. | [optional] +**replicas** | **int** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] +**selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | Label selector for pods. Existing Poolss whose pods are selected by this will be the ones affected by this deployment. | +**virtual_machine_template** | [**V1alpha1VirtualMachineTemplateSpec**](V1alpha1VirtualMachineTemplateSpec.md) | Template describes the VM that will be created. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachinePoolStatus.md b/docs/V1alpha1VirtualMachinePoolStatus.md new file mode 100644 index 00000000..2bdcc2fb --- /dev/null +++ b/docs/V1alpha1VirtualMachinePoolStatus.md @@ -0,0 +1,12 @@ +# V1alpha1VirtualMachinePoolStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**list[V1alpha1VirtualMachinePoolCondition]**](V1alpha1VirtualMachinePoolCondition.md) | | [optional] +**label_selector** | **str** | Canonical form of the label selector for HPA which consumes it through the scale subresource. | [optional] +**replicas** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineTemplateSpec.md b/docs/V1alpha1VirtualMachineTemplateSpec.md new file mode 100644 index 00000000..50f1fa9c --- /dev/null +++ b/docs/V1alpha1VirtualMachineTemplateSpec.md @@ -0,0 +1,11 @@ +# V1alpha1VirtualMachineTemplateSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] +**spec** | [**V1VirtualMachineSpec**](V1VirtualMachineSpec.md) | VirtualMachineSpec contains the VirtualMachine specification. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index fdde2985..6b02ae52 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.48.0-116-g4beef45d5" + release_note="Auto-generated client v0.48.0-142-g76447bdba" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index a8acddeb..0874f83e 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -16,6 +16,8 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] INFO io.swagger.codegen.ignore.CodegenIgnoreProcessor - No .swagger-codegen-ignore file found. [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default appVersion set to 1.0.0 [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default version set to 1.0.0 @@ -751,6 +753,21 @@ 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/v1alpha1_virtual_machine_flavor_profile.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_flavor_profile.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineFlavorProfile.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePool.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolCondition.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolStatus.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_restore.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_restore.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineRestore.md @@ -787,6 +804,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/v1alpha1_virtual_machine_snapshot_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_snapshot_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineSnapshotStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_template_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_template_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineTemplateSpec.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_volume_backup.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_volume_backup.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VolumeBackup.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 9261b557..22428ad9 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -258,6 +258,11 @@ from .models.v1alpha1_virtual_machine_flavor import V1alpha1VirtualMachineFlavor from .models.v1alpha1_virtual_machine_flavor_list import V1alpha1VirtualMachineFlavorList from .models.v1alpha1_virtual_machine_flavor_profile import V1alpha1VirtualMachineFlavorProfile +from .models.v1alpha1_virtual_machine_pool import V1alpha1VirtualMachinePool +from .models.v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition +from .models.v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList +from .models.v1alpha1_virtual_machine_pool_spec import V1alpha1VirtualMachinePoolSpec +from .models.v1alpha1_virtual_machine_pool_status import V1alpha1VirtualMachinePoolStatus from .models.v1alpha1_virtual_machine_restore import V1alpha1VirtualMachineRestore from .models.v1alpha1_virtual_machine_restore_list import V1alpha1VirtualMachineRestoreList from .models.v1alpha1_virtual_machine_restore_spec import V1alpha1VirtualMachineRestoreSpec @@ -270,6 +275,7 @@ from .models.v1alpha1_virtual_machine_snapshot_list import V1alpha1VirtualMachineSnapshotList from .models.v1alpha1_virtual_machine_snapshot_spec import V1alpha1VirtualMachineSnapshotSpec from .models.v1alpha1_virtual_machine_snapshot_status import V1alpha1VirtualMachineSnapshotStatus +from .models.v1alpha1_virtual_machine_template_spec import V1alpha1VirtualMachineTemplateSpec from .models.v1alpha1_volume_backup import V1alpha1VolumeBackup from .models.v1alpha1_volume_restore import V1alpha1VolumeRestore from .models.v1alpha1_volume_snapshot_status import V1alpha1VolumeSnapshotStatus diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index ee65f4d3..788f0064 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.48.0-116-g4beef45d5/python' + self.user_agent = 'Swagger-Codegen/v0.48.0-142-g76447bdba/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 8826c8e1..f02f980e 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -921,6 +921,117 @@ def create_namespaced_virtual_machine_instance_replica_set_with_http_info(self, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def create_namespaced_virtual_machine_pool(self, body, namespace, **kwargs): + """ + Create a VirtualMachinePool object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_virtual_machine_pool(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1VirtualMachinePool body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1alpha1VirtualMachinePool + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_virtual_machine_pool_with_http_info(body, namespace, **kwargs) + else: + (data) = self.create_namespaced_virtual_machine_pool_with_http_info(body, namespace, **kwargs) + return data + + def create_namespaced_virtual_machine_pool_with_http_info(self, body, namespace, **kwargs): + """ + Create a VirtualMachinePool object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_virtual_machine_pool_with_http_info(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1VirtualMachinePool body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1alpha1VirtualMachinePool + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_virtual_machine_pool" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine_pool`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_pool`") + + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachinePool', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def create_namespaced_virtual_machine_restore(self, body, namespace, **kwargs): """ Create a VirtualMachineRestore object. @@ -2358,6 +2469,131 @@ def delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_ _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def delete_collection_namespaced_virtual_machine_pool(self, **kwargs): + """ + Delete a collection of VirtualMachinePool objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_virtual_machine_pool(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_namespaced_virtual_machine_pool_with_http_info(**kwargs) + else: + (data) = self.delete_collection_namespaced_virtual_machine_pool_with_http_info(**kwargs) + return data + + def delete_collection_namespaced_virtual_machine_pool_with_http_info(self, **kwargs): + """ + Delete a collection of VirtualMachinePool objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_virtual_machine_pool_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_namespaced_virtual_machine_pool" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def delete_collection_namespaced_virtual_machine_restore(self, **kwargs): """ Delete a collection of VirtualMachineRestore objects. @@ -3891,16 +4127,16 @@ def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_restore(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_pool(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineRestore object. + Delete a VirtualMachinePool object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_restore(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_pool(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3916,21 +4152,21 @@ def delete_namespaced_virtual_machine_restore(self, name, namespace, body, **kwa """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_pool_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_virtual_machine_pool_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_restore_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_pool_with_http_info(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineRestore object. + Delete a VirtualMachinePool object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_pool_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3956,19 +4192,19 @@ def delete_namespaced_virtual_machine_restore_with_http_info(self, name, namespa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_restore" % key + " to method delete_namespaced_virtual_machine_pool" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_restore`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_pool`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_restore`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_pool`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_restore`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_pool`") collection_formats = {} @@ -4006,7 +4242,7 @@ def delete_namespaced_virtual_machine_restore_with_http_info(self, name, namespa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -4021,16 +4257,16 @@ def delete_namespaced_virtual_machine_restore_with_http_info(self, name, namespa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_snapshot(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_restore(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineSnapshot object. + Delete a VirtualMachineRestore object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_snapshot(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_restore(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4046,21 +4282,21 @@ def delete_namespaced_virtual_machine_snapshot(self, name, namespace, body, **kw """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_restore_with_http_info(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineSnapshot object. + Delete a VirtualMachineRestore object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4086,19 +4322,19 @@ def delete_namespaced_virtual_machine_snapshot_with_http_info(self, name, namesp if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_snapshot" % key + " to method delete_namespaced_virtual_machine_restore" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_snapshot`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_restore`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_snapshot`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_restore`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_snapshot`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_restore`") collection_formats = {} @@ -4136,7 +4372,7 @@ def delete_namespaced_virtual_machine_snapshot_with_http_info(self, name, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -4151,16 +4387,16 @@ def delete_namespaced_virtual_machine_snapshot_with_http_info(self, name, namesp _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_snapshot_content(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_snapshot(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineSnapshotContent object. + Delete a VirtualMachineSnapshot object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_snapshot_content(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_snapshot(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4176,7 +4412,137 @@ def delete_namespaced_virtual_machine_snapshot_content(self, name, namespace, bo """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespace, body, **kwargs): + """ + Delete a VirtualMachineSnapshot object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_virtual_machine_snapshot" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_snapshot`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_snapshot`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_snapshot`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'grace_period_seconds' in params: + query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) + if 'orphan_dependents' in params: + query_params.append(('orphanDependents', params['orphan_dependents'])) + if 'propagation_policy' in params: + query_params.append(('propagationPolicy', params['propagation_policy'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_virtual_machine_snapshot_content(self, name, namespace, body, **kwargs): + """ + Delete a VirtualMachineSnapshotContent object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_virtual_machine_snapshot_content(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) else: (data) = self.delete_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) return data @@ -4954,6 +5320,98 @@ def get_api_group_migrations_kubevirt_io_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def get_api_group_pool_kubevirt_io(self, **kwargs): + """ + Get a KubeVirt API group + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_group_pool_kubevirt_io(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_api_group_pool_kubevirt_io_with_http_info(**kwargs) + else: + (data) = self.get_api_group_pool_kubevirt_io_with_http_info(**kwargs) + return data + + def get_api_group_pool_kubevirt_io_with_http_info(self, **kwargs): + """ + Get a KubeVirt API group + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_group_pool_kubevirt_io_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_group_pool_kubevirt_io" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/pool.kubevirt.io/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1APIGroup', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def get_api_group_snapshot_kubevirt_io(self, **kwargs): """ Get a KubeVirt API group @@ -5322,6 +5780,98 @@ def get_api_resources_migrations_kubevirt_io_v1alpha1_with_http_info(self, **kwa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def get_api_resources_pool_kubevirt_io_v1alpha1(self, **kwargs): + """ + Get KubeVirt API Resources + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_resources_pool_kubevirt_io_v1alpha1(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_api_resources_pool_kubevirt_io_v1alpha1_with_http_info(**kwargs) + else: + (data) = self.get_api_resources_pool_kubevirt_io_v1alpha1_with_http_info(**kwargs) + return data + + def get_api_resources_pool_kubevirt_io_v1alpha1_with_http_info(self, **kwargs): + """ + Get KubeVirt API Resources + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_resources_pool_kubevirt_io_v1alpha1_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_resources_pool_kubevirt_io_v1alpha1" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1APIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def get_api_resources_snapshot_kubevirt_io_v1alpha1(self, **kwargs): """ Get KubeVirt API Resources @@ -6722,7 +7272,139 @@ def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespa >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineInstancePresetList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_virtual_machine_instance_preset" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_preset`") + + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstancePresetList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwargs): + """ + Get a list of VirtualMachineInstanceReplicaSet objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_virtual_machine_instance_replica_set(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineInstanceReplicaSetList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, namespace, **kwargs): + """ + Get a list of VirtualMachineInstanceReplicaSet objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -6735,7 +7417,7 @@ def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespa :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstancePresetList + :return: V1VirtualMachineInstanceReplicaSetList If the method is called asynchronously, returns the request thread. """ @@ -6751,13 +7433,13 @@ def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_instance_preset" % key + " to method list_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_replica_set`") collection_formats = {} @@ -6797,14 +7479,14 @@ def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstancePresetList', + response_type='V1VirtualMachineInstanceReplicaSetList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6812,16 +7494,16 @@ def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwargs): + def list_namespaced_virtual_machine_pool(self, namespace, **kwargs): """ - Get a list of VirtualMachineInstanceReplicaSet objects. + Get a list of VirtualMachinePool objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_replica_set(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_pool(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -6834,27 +7516,27 @@ def list_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwar :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceReplicaSetList + :return: V1alpha1VirtualMachinePoolList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) + return self.list_namespaced_virtual_machine_pool_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_virtual_machine_pool_with_http_info(namespace, **kwargs) return data - def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, namespace, **kwargs): + def list_namespaced_virtual_machine_pool_with_http_info(self, namespace, **kwargs): """ - Get a list of VirtualMachineInstanceReplicaSet objects. + Get a list of VirtualMachinePool objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_pool_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -6867,7 +7549,7 @@ def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceReplicaSetList + :return: V1alpha1VirtualMachinePoolList If the method is called asynchronously, returns the request thread. """ @@ -6883,13 +7565,13 @@ def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_instance_replica_set" % key + " to method list_namespaced_virtual_machine_pool" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_pool`") collection_formats = {} @@ -6929,14 +7611,14 @@ def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceReplicaSetList', + response_type='V1alpha1VirtualMachinePoolList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8215,6 +8897,131 @@ def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info( _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def list_virtual_machine_pool_for_all_namespaces(self, **kwargs): + """ + Get a list of all VirtualMachinePool objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_pool_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachinePoolList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_virtual_machine_pool_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_virtual_machine_pool_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_virtual_machine_pool_for_all_namespaces_with_http_info(self, **kwargs): + """ + Get a list of all VirtualMachinePool objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_pool_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachinePoolList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_virtual_machine_pool_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/virtualmachinepools', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachinePoolList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def list_virtual_machine_restore_for_all_namespaces(self, **kwargs): """ Get a list of all VirtualMachineRestore objects. @@ -9315,26 +10122,144 @@ def patch_namespaced_virtual_machine_instance_preset(self, name, namespace, body if kwargs.get('callback'): return self.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineInstancePreset object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1VirtualMachineInstancePreset + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_virtual_machine_instance_preset" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_preset`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_preset`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_preset`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstancePreset', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachineInstanceReplicaSet object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1VirtualMachineInstanceReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): """ - Patch a VirtualMachineInstancePreset object. + Patch a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachineInstancePreset + :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ @@ -9350,19 +10275,19 @@ def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine_instance_preset" % key + " to method patch_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_replica_set`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_replica_set`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_replica_set`") collection_formats = {} @@ -9394,14 +10319,14 @@ def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstancePreset', + response_type='V1VirtualMachineInstanceReplicaSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9409,50 +10334,50 @@ def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): + def patch_namespaced_virtual_machine_pool(self, name, namespace, body, **kwargs): """ - Patch a VirtualMachineInstanceReplicaSet object. + Patch a VirtualMachinePool object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_pool(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachineInstanceReplicaSet + :return: V1alpha1VirtualMachinePool If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_virtual_machine_pool_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_virtual_machine_pool_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_virtual_machine_pool_with_http_info(self, name, namespace, body, **kwargs): """ - Patch a VirtualMachineInstanceReplicaSet object. + Patch a VirtualMachinePool object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_pool_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachineInstanceReplicaSet + :return: V1alpha1VirtualMachinePool If the method is called asynchronously, returns the request thread. """ @@ -9468,19 +10393,19 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine_instance_replica_set" % key + " to method patch_namespaced_virtual_machine_pool" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_pool`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_pool`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_pool`") collection_formats = {} @@ -9512,14 +10437,14 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceReplicaSet', + response_type='V1alpha1VirtualMachinePool', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10905,6 +11830,121 @@ def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def read_namespaced_virtual_machine_pool(self, name, namespace, **kwargs): + """ + Get a VirtualMachinePool object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_pool(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1VirtualMachinePool + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_virtual_machine_pool_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_virtual_machine_pool_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_virtual_machine_pool_with_http_info(self, name, namespace, **kwargs): + """ + Get a VirtualMachinePool object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_pool_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1VirtualMachinePool + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_virtual_machine_pool" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_pool`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_pool`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachinePool', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def read_namespaced_virtual_machine_restore(self, name, namespace, **kwargs): """ Get a VirtualMachineRestore object. @@ -12169,7 +13209,125 @@ def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, name body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstancePreset', + response_type='V1VirtualMachineInstancePreset', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): + """ + Update a VirtualMachineInstanceReplicaSet object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachineInstanceReplicaSet body: (required) + :return: V1VirtualMachineInstanceReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): + """ + Update a VirtualMachineInstanceReplicaSet object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachineInstanceReplicaSet body: (required) + :return: V1VirtualMachineInstanceReplicaSet + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_virtual_machine_instance_replica_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_replica_set`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_replica_set`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_replica_set`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceReplicaSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12177,50 +13335,50 @@ def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, name _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_pool(self, name, namespace, body, **kwargs): """ - Update a VirtualMachineInstanceReplicaSet object. + Update a VirtualMachinePool object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_pool(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstanceReplicaSet body: (required) - :return: V1VirtualMachineInstanceReplicaSet + :param V1alpha1VirtualMachinePool body: (required) + :return: V1alpha1VirtualMachinePool If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_virtual_machine_pool_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_virtual_machine_pool_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_pool_with_http_info(self, name, namespace, body, **kwargs): """ - Update a VirtualMachineInstanceReplicaSet object. + Update a VirtualMachinePool object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_pool_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstanceReplicaSet body: (required) - :return: V1VirtualMachineInstanceReplicaSet + :param V1alpha1VirtualMachinePool body: (required) + :return: V1alpha1VirtualMachinePool If the method is called asynchronously, returns the request thread. """ @@ -12236,19 +13394,19 @@ def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_instance_replica_set" % key + " to method replace_namespaced_virtual_machine_pool" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_pool`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_pool`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_pool`") collection_formats = {} @@ -12280,14 +13438,14 @@ def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceReplicaSet', + response_type='V1alpha1VirtualMachinePool', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -20460,6 +21618,138 @@ def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def watch_namespaced_virtual_machine_pool(self, namespace, **kwargs): + """ + Watch a VirtualMachinePool object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_virtual_machine_pool(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_namespaced_virtual_machine_pool_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_namespaced_virtual_machine_pool_with_http_info(namespace, **kwargs) + return data + + def watch_namespaced_virtual_machine_pool_with_http_info(self, namespace, **kwargs): + """ + Watch a VirtualMachinePool object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_virtual_machine_pool_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_virtual_machine_pool" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_pool`") + + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def watch_namespaced_virtual_machine_restore(self, namespace, **kwargs): """ Watch a VirtualMachineRestore object. @@ -21731,6 +23021,131 @@ def watch_virtual_machine_list_for_all_namespaces_with_http_info(self, **kwargs) _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def watch_virtual_machine_pool_list_for_all_namespaces(self, **kwargs): + """ + Watch a VirtualMachinePoolList object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_virtual_machine_pool_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_virtual_machine_pool_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_virtual_machine_pool_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_virtual_machine_pool_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + Watch a VirtualMachinePoolList object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_virtual_machine_pool_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_virtual_machine_pool_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/watch/virtualmachinepools', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def watch_virtual_machine_restore_list_for_all_namespaces(self, **kwargs): """ Watch a VirtualMachineRestoreList object. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index d7c6a48b..639e1bb9 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.48.0-116-g4beef45d5".\ + "SDK Package Version: v0.48.0-142-g76447bdba".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index ecd253ef..901bcee1 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -258,6 +258,11 @@ from .v1alpha1_virtual_machine_flavor import V1alpha1VirtualMachineFlavor from .v1alpha1_virtual_machine_flavor_list import V1alpha1VirtualMachineFlavorList from .v1alpha1_virtual_machine_flavor_profile import V1alpha1VirtualMachineFlavorProfile +from .v1alpha1_virtual_machine_pool import V1alpha1VirtualMachinePool +from .v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition +from .v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList +from .v1alpha1_virtual_machine_pool_spec import V1alpha1VirtualMachinePoolSpec +from .v1alpha1_virtual_machine_pool_status import V1alpha1VirtualMachinePoolStatus from .v1alpha1_virtual_machine_restore import V1alpha1VirtualMachineRestore from .v1alpha1_virtual_machine_restore_list import V1alpha1VirtualMachineRestoreList from .v1alpha1_virtual_machine_restore_spec import V1alpha1VirtualMachineRestoreSpec @@ -270,6 +275,7 @@ from .v1alpha1_virtual_machine_snapshot_list import V1alpha1VirtualMachineSnapshotList from .v1alpha1_virtual_machine_snapshot_spec import V1alpha1VirtualMachineSnapshotSpec from .v1alpha1_virtual_machine_snapshot_status import V1alpha1VirtualMachineSnapshotStatus +from .v1alpha1_virtual_machine_template_spec import V1alpha1VirtualMachineTemplateSpec from .v1alpha1_volume_backup import V1alpha1VolumeBackup from .v1alpha1_volume_restore import V1alpha1VolumeRestore from .v1alpha1_volume_snapshot_status import V1alpha1VolumeSnapshotStatus diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool.py b/kubevirt/models/v1alpha1_virtual_machine_pool.py new file mode 100644 index 00000000..7ca74087 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_pool.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachinePool(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', + 'spec': 'V1alpha1VirtualMachinePoolSpec', + 'status': 'V1alpha1VirtualMachinePoolStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + """ + V1alpha1VirtualMachinePool - a model defined in Swagger + """ + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1VirtualMachinePool. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1alpha1VirtualMachinePool. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1VirtualMachinePool. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1VirtualMachinePool. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1alpha1VirtualMachinePool. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1VirtualMachinePool. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1VirtualMachinePool. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1VirtualMachinePool. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1VirtualMachinePool. + + :return: The metadata of this V1alpha1VirtualMachinePool. + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1VirtualMachinePool. + + :param metadata: The metadata of this V1alpha1VirtualMachinePool. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1alpha1VirtualMachinePool. + + :return: The spec of this V1alpha1VirtualMachinePool. + :rtype: V1alpha1VirtualMachinePoolSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1alpha1VirtualMachinePool. + + :param spec: The spec of this V1alpha1VirtualMachinePool. + :type: V1alpha1VirtualMachinePoolSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1alpha1VirtualMachinePool. + + :return: The status of this V1alpha1VirtualMachinePool. + :rtype: V1alpha1VirtualMachinePoolStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1alpha1VirtualMachinePool. + + :param status: The status of this V1alpha1VirtualMachinePool. + :type: V1alpha1VirtualMachinePoolStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachinePool): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_condition.py b/kubevirt/models/v1alpha1_virtual_machine_pool_condition.py new file mode 100644 index 00000000..c1025e69 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_pool_condition.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachinePoolCondition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + attribute_map = { + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + def __init__(self, message=None, reason=None, status=None, type=None): + """ + V1alpha1VirtualMachinePoolCondition - a model defined in Swagger + """ + + self._message = None + self._reason = None + self._status = None + self._type = None + + if message is not None: + self.message = message + if reason is not None: + self.reason = reason + self.status = status + self.type = type + + @property + def message(self): + """ + Gets the message of this V1alpha1VirtualMachinePoolCondition. + + :return: The message of this V1alpha1VirtualMachinePoolCondition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1alpha1VirtualMachinePoolCondition. + + :param message: The message of this V1alpha1VirtualMachinePoolCondition. + :type: str + """ + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1alpha1VirtualMachinePoolCondition. + + :return: The reason of this V1alpha1VirtualMachinePoolCondition. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1alpha1VirtualMachinePoolCondition. + + :param reason: The reason of this V1alpha1VirtualMachinePoolCondition. + :type: str + """ + + self._reason = reason + + @property + def status(self): + """ + Gets the status of this V1alpha1VirtualMachinePoolCondition. + + :return: The status of this V1alpha1VirtualMachinePoolCondition. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1alpha1VirtualMachinePoolCondition. + + :param status: The status of this V1alpha1VirtualMachinePoolCondition. + :type: str + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def type(self): + """ + Gets the type of this V1alpha1VirtualMachinePoolCondition. + + :return: The type of this V1alpha1VirtualMachinePoolCondition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1alpha1VirtualMachinePoolCondition. + + :param type: The type of this V1alpha1VirtualMachinePoolCondition. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachinePoolCondition): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_list.py b/kubevirt/models/v1alpha1_virtual_machine_pool_list.py new file mode 100644 index 00000000..c2ecacdb --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_pool_list.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachinePoolList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'items': 'list[V1alpha1VirtualMachinePool]', + 'kind': 'str', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1alpha1VirtualMachinePoolList - a model defined in Swagger + """ + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1VirtualMachinePoolList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1alpha1VirtualMachinePoolList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1VirtualMachinePoolList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1VirtualMachinePoolList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1alpha1VirtualMachinePoolList. + + :return: The items of this V1alpha1VirtualMachinePoolList. + :rtype: list[V1alpha1VirtualMachinePool] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1alpha1VirtualMachinePoolList. + + :param items: The items of this V1alpha1VirtualMachinePoolList. + :type: list[V1alpha1VirtualMachinePool] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1alpha1VirtualMachinePoolList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1VirtualMachinePoolList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1VirtualMachinePoolList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1VirtualMachinePoolList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1VirtualMachinePoolList. + + :return: The metadata of this V1alpha1VirtualMachinePoolList. + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1VirtualMachinePoolList. + + :param metadata: The metadata of this V1alpha1VirtualMachinePoolList. + :type: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachinePoolList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py b/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py new file mode 100644 index 00000000..13d31488 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py @@ -0,0 +1,211 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachinePoolSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'paused': 'bool', + 'replicas': 'int', + 'selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', + 'virtual_machine_template': 'V1alpha1VirtualMachineTemplateSpec' + } + + attribute_map = { + 'paused': 'paused', + 'replicas': 'replicas', + 'selector': 'selector', + 'virtual_machine_template': 'virtualMachineTemplate' + } + + def __init__(self, paused=None, replicas=None, selector=None, virtual_machine_template=None): + """ + V1alpha1VirtualMachinePoolSpec - a model defined in Swagger + """ + + self._paused = None + self._replicas = None + self._selector = None + self._virtual_machine_template = None + + if paused is not None: + self.paused = paused + if replicas is not None: + self.replicas = replicas + self.selector = selector + self.virtual_machine_template = virtual_machine_template + + @property + def paused(self): + """ + Gets the paused of this V1alpha1VirtualMachinePoolSpec. + Indicates that the pool is paused. + + :return: The paused of this V1alpha1VirtualMachinePoolSpec. + :rtype: bool + """ + return self._paused + + @paused.setter + def paused(self, paused): + """ + Sets the paused of this V1alpha1VirtualMachinePoolSpec. + Indicates that the pool is paused. + + :param paused: The paused of this V1alpha1VirtualMachinePoolSpec. + :type: bool + """ + + self._paused = paused + + @property + def replicas(self): + """ + Gets the replicas of this V1alpha1VirtualMachinePoolSpec. + Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + + :return: The replicas of this V1alpha1VirtualMachinePoolSpec. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this V1alpha1VirtualMachinePoolSpec. + Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + + :param replicas: The replicas of this V1alpha1VirtualMachinePoolSpec. + :type: int + """ + + self._replicas = replicas + + @property + def selector(self): + """ + Gets the selector of this V1alpha1VirtualMachinePoolSpec. + Label selector for pods. Existing Poolss whose pods are selected by this will be the ones affected by this deployment. + + :return: The selector of this V1alpha1VirtualMachinePoolSpec. + :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this V1alpha1VirtualMachinePoolSpec. + Label selector for pods. Existing Poolss whose pods are selected by this will be the ones affected by this deployment. + + :param selector: The selector of this V1alpha1VirtualMachinePoolSpec. + :type: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + if selector is None: + raise ValueError("Invalid value for `selector`, must not be `None`") + + self._selector = selector + + @property + def virtual_machine_template(self): + """ + Gets the virtual_machine_template of this V1alpha1VirtualMachinePoolSpec. + Template describes the VM that will be created. + + :return: The virtual_machine_template of this V1alpha1VirtualMachinePoolSpec. + :rtype: V1alpha1VirtualMachineTemplateSpec + """ + return self._virtual_machine_template + + @virtual_machine_template.setter + def virtual_machine_template(self, virtual_machine_template): + """ + Sets the virtual_machine_template of this V1alpha1VirtualMachinePoolSpec. + Template describes the VM that will be created. + + :param virtual_machine_template: The virtual_machine_template of this V1alpha1VirtualMachinePoolSpec. + :type: V1alpha1VirtualMachineTemplateSpec + """ + if virtual_machine_template is None: + raise ValueError("Invalid value for `virtual_machine_template`, must not be `None`") + + self._virtual_machine_template = virtual_machine_template + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachinePoolSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_status.py b/kubevirt/models/v1alpha1_virtual_machine_pool_status.py new file mode 100644 index 00000000..17ec80b4 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_pool_status.py @@ -0,0 +1,177 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachinePoolStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'conditions': 'list[V1alpha1VirtualMachinePoolCondition]', + 'label_selector': 'str', + 'replicas': 'int' + } + + attribute_map = { + 'conditions': 'conditions', + 'label_selector': 'labelSelector', + 'replicas': 'replicas' + } + + def __init__(self, conditions=None, label_selector=None, replicas=None): + """ + V1alpha1VirtualMachinePoolStatus - a model defined in Swagger + """ + + self._conditions = None + self._label_selector = None + self._replicas = None + + if conditions is not None: + self.conditions = conditions + if label_selector is not None: + self.label_selector = label_selector + if replicas is not None: + self.replicas = replicas + + @property + def conditions(self): + """ + Gets the conditions of this V1alpha1VirtualMachinePoolStatus. + + :return: The conditions of this V1alpha1VirtualMachinePoolStatus. + :rtype: list[V1alpha1VirtualMachinePoolCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1alpha1VirtualMachinePoolStatus. + + :param conditions: The conditions of this V1alpha1VirtualMachinePoolStatus. + :type: list[V1alpha1VirtualMachinePoolCondition] + """ + + self._conditions = conditions + + @property + def label_selector(self): + """ + Gets the label_selector of this V1alpha1VirtualMachinePoolStatus. + Canonical form of the label selector for HPA which consumes it through the scale subresource. + + :return: The label_selector of this V1alpha1VirtualMachinePoolStatus. + :rtype: str + """ + return self._label_selector + + @label_selector.setter + def label_selector(self, label_selector): + """ + Sets the label_selector of this V1alpha1VirtualMachinePoolStatus. + Canonical form of the label selector for HPA which consumes it through the scale subresource. + + :param label_selector: The label_selector of this V1alpha1VirtualMachinePoolStatus. + :type: str + """ + + self._label_selector = label_selector + + @property + def replicas(self): + """ + Gets the replicas of this V1alpha1VirtualMachinePoolStatus. + + :return: The replicas of this V1alpha1VirtualMachinePoolStatus. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this V1alpha1VirtualMachinePoolStatus. + + :param replicas: The replicas of this V1alpha1VirtualMachinePoolStatus. + :type: int + """ + + self._replicas = replicas + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachinePoolStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_template_spec.py b/kubevirt/models/v1alpha1_virtual_machine_template_spec.py new file mode 100644 index 00000000..bb82ef31 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_template_spec.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineTemplateSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', + 'spec': 'V1VirtualMachineSpec' + } + + attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec' + } + + def __init__(self, metadata=None, spec=None): + """ + V1alpha1VirtualMachineTemplateSpec - a model defined in Swagger + """ + + self._metadata = None + self._spec = None + + if metadata is not None: + self.metadata = metadata + if spec is not None: + self.spec = spec + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1VirtualMachineTemplateSpec. + + :return: The metadata of this V1alpha1VirtualMachineTemplateSpec. + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1VirtualMachineTemplateSpec. + + :param metadata: The metadata of this V1alpha1VirtualMachineTemplateSpec. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1alpha1VirtualMachineTemplateSpec. + VirtualMachineSpec contains the VirtualMachine specification. + + :return: The spec of this V1alpha1VirtualMachineTemplateSpec. + :rtype: V1VirtualMachineSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1alpha1VirtualMachineTemplateSpec. + VirtualMachineSpec contains the VirtualMachine specification. + + :param spec: The spec of this V1alpha1VirtualMachineTemplateSpec. + :type: V1VirtualMachineSpec + """ + + self._spec = spec + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineTemplateSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 931a193e..2080410d 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.48.0-116-g4beef45d5" +VERSION = "v0.48.0-142-g76447bdba" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index fa802ca9..c229f306 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.48.0-116-g4beef45d5" +"packageVersion": "v0.48.0-142-g76447bdba" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 28fbbafa..99b95a02 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -92,6 +92,14 @@ def test_create_namespaced_virtual_machine_instance_replica_set(self): Test case for create_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_create_namespaced_virtual_machine_pool(self): + """ + Test case for create_namespaced_virtual_machine_pool + + """ pass @@ -188,6 +196,14 @@ def test_delete_collection_namespaced_virtual_machine_instance_replica_set(self) Test case for delete_collection_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_delete_collection_namespaced_virtual_machine_pool(self): + """ + Test case for delete_collection_namespaced_virtual_machine_pool + + """ pass @@ -284,6 +300,14 @@ def test_delete_namespaced_virtual_machine_instance_replica_set(self): Test case for delete_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_delete_namespaced_virtual_machine_pool(self): + """ + Test case for delete_namespaced_virtual_machine_pool + + """ pass @@ -364,6 +388,14 @@ def test_get_api_group_migrations_kubevirt_io(self): Test case for get_api_group_migrations_kubevirt_io + """ + pass + + def test_get_api_group_pool_kubevirt_io(self): + """ + Test case for get_api_group_pool_kubevirt_io + + """ pass @@ -396,6 +428,14 @@ def test_get_api_resources_migrations_kubevirt_io_v1alpha1(self): Test case for get_api_resources_migrations_kubevirt_io_v1alpha1 + """ + pass + + def test_get_api_resources_pool_kubevirt_io_v1alpha1(self): + """ + Test case for get_api_resources_pool_kubevirt_io_v1alpha1 + + """ pass @@ -508,6 +548,14 @@ def test_list_namespaced_virtual_machine_instance_replica_set(self): Test case for list_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_list_namespaced_virtual_machine_pool(self): + """ + Test case for list_namespaced_virtual_machine_pool + + """ pass @@ -588,6 +636,14 @@ def test_list_virtual_machine_instance_replica_set_for_all_namespaces(self): Test case for list_virtual_machine_instance_replica_set_for_all_namespaces + """ + pass + + def test_list_virtual_machine_pool_for_all_namespaces(self): + """ + Test case for list_virtual_machine_pool_for_all_namespaces + + """ pass @@ -676,6 +732,14 @@ def test_patch_namespaced_virtual_machine_instance_replica_set(self): Test case for patch_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_patch_namespaced_virtual_machine_pool(self): + """ + Test case for patch_namespaced_virtual_machine_pool + + """ pass @@ -772,6 +836,14 @@ def test_read_namespaced_virtual_machine_instance_replica_set(self): Test case for read_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_read_namespaced_virtual_machine_pool(self): + """ + Test case for read_namespaced_virtual_machine_pool + + """ pass @@ -868,6 +940,14 @@ def test_replace_namespaced_virtual_machine_instance_replica_set(self): Test case for replace_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_replace_namespaced_virtual_machine_pool(self): + """ + Test case for replace_namespaced_virtual_machine_pool + + """ pass @@ -1476,6 +1556,14 @@ def test_watch_namespaced_virtual_machine_instance_replica_set(self): Test case for watch_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_watch_namespaced_virtual_machine_pool(self): + """ + Test case for watch_namespaced_virtual_machine_pool + + """ pass @@ -1556,6 +1644,14 @@ def test_watch_virtual_machine_list_for_all_namespaces(self): Test case for watch_virtual_machine_list_for_all_namespaces + """ + pass + + def test_watch_virtual_machine_pool_list_for_all_namespaces(self): + """ + Test case for watch_virtual_machine_pool_list_for_all_namespaces + + """ pass diff --git a/test/test_v1alpha1_virtual_machine_pool.py b/test/test_v1alpha1_virtual_machine_pool.py new file mode 100644 index 00000000..16cd154b --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_pool.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_pool import V1alpha1VirtualMachinePool + + +class TestV1alpha1VirtualMachinePool(unittest.TestCase): + """ V1alpha1VirtualMachinePool unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachinePool(self): + """ + Test V1alpha1VirtualMachinePool + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_pool.V1alpha1VirtualMachinePool() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_pool_condition.py b/test/test_v1alpha1_virtual_machine_pool_condition.py new file mode 100644 index 00000000..de3c864c --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_pool_condition.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition + + +class TestV1alpha1VirtualMachinePoolCondition(unittest.TestCase): + """ V1alpha1VirtualMachinePoolCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachinePoolCondition(self): + """ + Test V1alpha1VirtualMachinePoolCondition + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_pool_condition.V1alpha1VirtualMachinePoolCondition() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_pool_list.py b/test/test_v1alpha1_virtual_machine_pool_list.py new file mode 100644 index 00000000..af955975 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_pool_list.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList + + +class TestV1alpha1VirtualMachinePoolList(unittest.TestCase): + """ V1alpha1VirtualMachinePoolList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachinePoolList(self): + """ + Test V1alpha1VirtualMachinePoolList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_pool_list.V1alpha1VirtualMachinePoolList() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_pool_spec.py b/test/test_v1alpha1_virtual_machine_pool_spec.py new file mode 100644 index 00000000..006fb2e4 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_pool_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_pool_spec import V1alpha1VirtualMachinePoolSpec + + +class TestV1alpha1VirtualMachinePoolSpec(unittest.TestCase): + """ V1alpha1VirtualMachinePoolSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachinePoolSpec(self): + """ + Test V1alpha1VirtualMachinePoolSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_pool_spec.V1alpha1VirtualMachinePoolSpec() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_pool_status.py b/test/test_v1alpha1_virtual_machine_pool_status.py new file mode 100644 index 00000000..fc6ccdfa --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_pool_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_pool_status import V1alpha1VirtualMachinePoolStatus + + +class TestV1alpha1VirtualMachinePoolStatus(unittest.TestCase): + """ V1alpha1VirtualMachinePoolStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachinePoolStatus(self): + """ + Test V1alpha1VirtualMachinePoolStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_pool_status.V1alpha1VirtualMachinePoolStatus() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_template_spec.py b/test/test_v1alpha1_virtual_machine_template_spec.py new file mode 100644 index 00000000..6e6a80d1 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_template_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_template_spec import V1alpha1VirtualMachineTemplateSpec + + +class TestV1alpha1VirtualMachineTemplateSpec(unittest.TestCase): + """ V1alpha1VirtualMachineTemplateSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineTemplateSpec(self): + """ + Test V1alpha1VirtualMachineTemplateSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_template_spec.V1alpha1VirtualMachineTemplateSpec() + pass + + +if __name__ == '__main__': + unittest.main() From 060131261de44c9b0b903e079aa65aa2650f8e96 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Sat, 18 Dec 2021 08:06:26 +0000 Subject: [PATCH 252/521] Client Python update by KubeVirt Prow build 1472107488076632064 --- README.md | 2 +- docs/V1MigrationConfiguration.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_migration_configuration.py | 28 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 34 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 1b80096a..7ac02c31 100644 --- a/README.md +++ b/README.md @@ -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: v0.48.0-142-g76447bdba +- Package version: v0.48.0-161-g7e3d50f91 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1MigrationConfiguration.md b/docs/V1MigrationConfiguration.md index 736990ef..0121231c 100644 --- a/docs/V1MigrationConfiguration.md +++ b/docs/V1MigrationConfiguration.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **bandwidth_per_migration** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | | [optional] **completion_timeout_per_gi_b** | **int** | | [optional] **disable_tls** | **bool** | | [optional] +**network** | **str** | | [optional] **node_drain_taint_key** | **str** | | [optional] **parallel_migrations_per_cluster** | **int** | | [optional] **parallel_outbound_migrations_per_node** | **int** | | [optional] diff --git a/git_push.sh b/git_push.sh index 6b02ae52..ef99b4c0 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.48.0-142-g76447bdba" + release_note="Auto-generated client v0.48.0-161-g7e3d50f91" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 788f0064..9a14313b 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.48.0-142-g76447bdba/python' + self.user_agent = 'Swagger-Codegen/v0.48.0-161-g7e3d50f91/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 639e1bb9..53be690e 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.48.0-142-g76447bdba".\ + "SDK Package Version: v0.48.0-161-g7e3d50f91".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_migration_configuration.py b/kubevirt/models/v1_migration_configuration.py index 4e7c1895..a5d75e05 100644 --- a/kubevirt/models/v1_migration_configuration.py +++ b/kubevirt/models/v1_migration_configuration.py @@ -36,6 +36,7 @@ class V1MigrationConfiguration(object): 'bandwidth_per_migration': 'K8sIoApimachineryPkgApiResourceQuantity', 'completion_timeout_per_gi_b': 'int', 'disable_tls': 'bool', + 'network': 'str', 'node_drain_taint_key': 'str', 'parallel_migrations_per_cluster': 'int', 'parallel_outbound_migrations_per_node': 'int', @@ -49,6 +50,7 @@ class V1MigrationConfiguration(object): 'bandwidth_per_migration': 'bandwidthPerMigration', 'completion_timeout_per_gi_b': 'completionTimeoutPerGiB', 'disable_tls': 'disableTLS', + 'network': 'network', 'node_drain_taint_key': 'nodeDrainTaintKey', 'parallel_migrations_per_cluster': 'parallelMigrationsPerCluster', 'parallel_outbound_migrations_per_node': 'parallelOutboundMigrationsPerNode', @@ -56,7 +58,7 @@ class V1MigrationConfiguration(object): 'unsafe_migration_override': 'unsafeMigrationOverride' } - def __init__(self, allow_auto_converge=None, allow_post_copy=None, bandwidth_per_migration=None, completion_timeout_per_gi_b=None, disable_tls=None, node_drain_taint_key=None, parallel_migrations_per_cluster=None, parallel_outbound_migrations_per_node=None, progress_timeout=None, unsafe_migration_override=None): + def __init__(self, allow_auto_converge=None, allow_post_copy=None, bandwidth_per_migration=None, completion_timeout_per_gi_b=None, disable_tls=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): """ V1MigrationConfiguration - a model defined in Swagger """ @@ -66,6 +68,7 @@ def __init__(self, allow_auto_converge=None, allow_post_copy=None, bandwidth_per self._bandwidth_per_migration = None self._completion_timeout_per_gi_b = None self._disable_tls = None + self._network = None self._node_drain_taint_key = None self._parallel_migrations_per_cluster = None self._parallel_outbound_migrations_per_node = None @@ -82,6 +85,8 @@ def __init__(self, allow_auto_converge=None, allow_post_copy=None, bandwidth_per self.completion_timeout_per_gi_b = completion_timeout_per_gi_b if disable_tls is not None: self.disable_tls = disable_tls + if network is not None: + self.network = network if node_drain_taint_key is not None: self.node_drain_taint_key = node_drain_taint_key if parallel_migrations_per_cluster is not None: @@ -198,6 +203,27 @@ def disable_tls(self, disable_tls): self._disable_tls = disable_tls + @property + def network(self): + """ + Gets the network of this V1MigrationConfiguration. + + :return: The network of this V1MigrationConfiguration. + :rtype: str + """ + return self._network + + @network.setter + def network(self, network): + """ + Sets the network of this V1MigrationConfiguration. + + :param network: The network of this V1MigrationConfiguration. + :type: str + """ + + self._network = network + @property def node_drain_taint_key(self): """ diff --git a/setup.py b/setup.py index 2080410d..c02c61de 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.48.0-142-g76447bdba" +VERSION = "v0.48.0-161-g7e3d50f91" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index c229f306..b2df9a74 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.48.0-142-g76447bdba" +"packageVersion": "v0.48.0-161-g7e3d50f91" } From baf20e0700f61ccfa6a46f7279af9339995b4a73 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 21 Dec 2021 12:31:53 +0000 Subject: [PATCH 253/521] Client Python update by KubeVirt Prow build 1473262355210047488 --- README.md | 2 +- docs/V1alpha1MigrationPolicySpec.md | 1 - git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../models/v1alpha1_migration_policy_spec.py | 28 +------------------ setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 7 insertions(+), 34 deletions(-) diff --git a/README.md b/README.md index 7ac02c31..5fa1cd92 100644 --- a/README.md +++ b/README.md @@ -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: v0.48.0-161-g7e3d50f91 +- Package version: v0.48.0-182-g3ef8b9d61 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1alpha1MigrationPolicySpec.md b/docs/V1alpha1MigrationPolicySpec.md index b4ce0a3b..48af55b0 100644 --- a/docs/V1alpha1MigrationPolicySpec.md +++ b/docs/V1alpha1MigrationPolicySpec.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes **allow_post_copy** | **bool** | | [optional] **bandwidth_per_migration** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | | [optional] **completion_timeout_per_gi_b** | **int** | | [optional] -**disable_tls** | **bool** | | [optional] **selectors** | [**V1alpha1Selectors**](V1alpha1Selectors.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index ef99b4c0..b4906969 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.48.0-161-g7e3d50f91" + release_note="Auto-generated client v0.48.0-182-g3ef8b9d61" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 9a14313b..c0099c58 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.48.0-161-g7e3d50f91/python' + self.user_agent = 'Swagger-Codegen/v0.48.0-182-g3ef8b9d61/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 53be690e..0be705da 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.48.0-161-g7e3d50f91".\ + "SDK Package Version: v0.48.0-182-g3ef8b9d61".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1alpha1_migration_policy_spec.py b/kubevirt/models/v1alpha1_migration_policy_spec.py index 86899b14..14abb887 100644 --- a/kubevirt/models/v1alpha1_migration_policy_spec.py +++ b/kubevirt/models/v1alpha1_migration_policy_spec.py @@ -35,7 +35,6 @@ class V1alpha1MigrationPolicySpec(object): 'allow_post_copy': 'bool', 'bandwidth_per_migration': 'K8sIoApimachineryPkgApiResourceQuantity', 'completion_timeout_per_gi_b': 'int', - 'disable_tls': 'bool', 'selectors': 'V1alpha1Selectors' } @@ -44,11 +43,10 @@ class V1alpha1MigrationPolicySpec(object): 'allow_post_copy': 'allowPostCopy', 'bandwidth_per_migration': 'bandwidthPerMigration', 'completion_timeout_per_gi_b': 'completionTimeoutPerGiB', - 'disable_tls': 'disableTLS', 'selectors': 'selectors' } - def __init__(self, allow_auto_converge=None, allow_post_copy=None, bandwidth_per_migration=None, completion_timeout_per_gi_b=None, disable_tls=None, selectors=None): + def __init__(self, allow_auto_converge=None, allow_post_copy=None, bandwidth_per_migration=None, completion_timeout_per_gi_b=None, selectors=None): """ V1alpha1MigrationPolicySpec - a model defined in Swagger """ @@ -57,7 +55,6 @@ def __init__(self, allow_auto_converge=None, allow_post_copy=None, bandwidth_per self._allow_post_copy = None self._bandwidth_per_migration = None self._completion_timeout_per_gi_b = None - self._disable_tls = None self._selectors = None if allow_auto_converge is not None: @@ -68,8 +65,6 @@ def __init__(self, allow_auto_converge=None, allow_post_copy=None, bandwidth_per self.bandwidth_per_migration = bandwidth_per_migration if completion_timeout_per_gi_b is not None: self.completion_timeout_per_gi_b = completion_timeout_per_gi_b - if disable_tls is not None: - self.disable_tls = disable_tls self.selectors = selectors @property @@ -156,27 +151,6 @@ def completion_timeout_per_gi_b(self, completion_timeout_per_gi_b): self._completion_timeout_per_gi_b = completion_timeout_per_gi_b - @property - def disable_tls(self): - """ - Gets the disable_tls of this V1alpha1MigrationPolicySpec. - - :return: The disable_tls of this V1alpha1MigrationPolicySpec. - :rtype: bool - """ - return self._disable_tls - - @disable_tls.setter - def disable_tls(self, disable_tls): - """ - Sets the disable_tls of this V1alpha1MigrationPolicySpec. - - :param disable_tls: The disable_tls of this V1alpha1MigrationPolicySpec. - :type: bool - """ - - self._disable_tls = disable_tls - @property def selectors(self): """ diff --git a/setup.py b/setup.py index c02c61de..2cc09bda 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.48.0-161-g7e3d50f91" +VERSION = "v0.48.0-182-g3ef8b9d61" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b2df9a74..1dd3fec4 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.48.0-161-g7e3d50f91" +"packageVersion": "v0.48.0-182-g3ef8b9d61" } From f8650eaf1c486ac85b2daf53159095efb33b0158 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 21 Dec 2021 21:26:13 +0000 Subject: [PATCH 254/521] Client Python update by KubeVirt Prow build 1473387486699851776 --- README.md | 3 +- docs/V1MediatedDevicesConfiguration.md | 1 + docs/V1NodeMediatedDeviceTypesConfig.md | 11 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + .../v1_mediated_devices_configuration.py | 32 +++- .../v1_node_mediated_device_types_config.py | 153 ++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- ...st_v1_node_mediated_device_types_config.py | 44 +++++ 14 files changed, 250 insertions(+), 9 deletions(-) create mode 100644 docs/V1NodeMediatedDeviceTypesConfig.md create mode 100644 kubevirt/models/v1_node_mediated_device_types_config.py create mode 100644 test/test_v1_node_mediated_device_types_config.py diff --git a/README.md b/README.md index 5fa1cd92..0d8690ba 100644 --- a/README.md +++ b/README.md @@ -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: v0.48.0-182-g3ef8b9d61 +- Package version: v0.48.0-189-g7a2387da3 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -427,6 +427,7 @@ Class | Method | HTTP request | Description - [V1NUMAGuestMappingPassthrough](docs/V1NUMAGuestMappingPassthrough.md) - [V1Network](docs/V1Network.md) - [V1NetworkConfiguration](docs/V1NetworkConfiguration.md) + - [V1NodeMediatedDeviceTypesConfig](docs/V1NodeMediatedDeviceTypesConfig.md) - [V1NodePlacement](docs/V1NodePlacement.md) - [V1PITTimer](docs/V1PITTimer.md) - [V1PauseOptions](docs/V1PauseOptions.md) diff --git a/docs/V1MediatedDevicesConfiguration.md b/docs/V1MediatedDevicesConfiguration.md index 05cc6ee0..2dcf6bd9 100644 --- a/docs/V1MediatedDevicesConfiguration.md +++ b/docs/V1MediatedDevicesConfiguration.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **mediated_devices_types** | **list[str]** | | [optional] +**node_mediated_device_types** | [**list[V1NodeMediatedDeviceTypesConfig]**](V1NodeMediatedDeviceTypesConfig.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1NodeMediatedDeviceTypesConfig.md b/docs/V1NodeMediatedDeviceTypesConfig.md new file mode 100644 index 00000000..9e097d73 --- /dev/null +++ b/docs/V1NodeMediatedDeviceTypesConfig.md @@ -0,0 +1,11 @@ +# V1NodeMediatedDeviceTypesConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mediated_devices_types** | **list[str]** | | +**node_selector** | **dict(str, str)** | NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index b4906969..6fb4242c 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.48.0-182-g3ef8b9d61" + release_note="Auto-generated client v0.48.0-189-g7a2387da3" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 0874f83e..47200a35 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -465,6 +465,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_network_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_network_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1NetworkConfiguration.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_node_mediated_device_types_config.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_node_mediated_device_types_config.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1NodeMediatedDeviceTypesConfig.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_node_placement.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_node_placement.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1NodePlacement.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 22428ad9..8b6733bf 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -162,6 +162,7 @@ from .models.v1_numa_guest_mapping_passthrough import V1NUMAGuestMappingPassthrough from .models.v1_network import V1Network from .models.v1_network_configuration import V1NetworkConfiguration +from .models.v1_node_mediated_device_types_config import V1NodeMediatedDeviceTypesConfig from .models.v1_node_placement import V1NodePlacement from .models.v1_pit_timer import V1PITTimer from .models.v1_pause_options import V1PauseOptions diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index c0099c58..a677a5d0 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.48.0-182-g3ef8b9d61/python' + self.user_agent = 'Swagger-Codegen/v0.48.0-189-g7a2387da3/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 0be705da..bae509b3 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.48.0-182-g3ef8b9d61".\ + "SDK Package Version: v0.48.0-189-g7a2387da3".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 901bcee1..d98465ee 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -162,6 +162,7 @@ from .v1_numa_guest_mapping_passthrough import V1NUMAGuestMappingPassthrough from .v1_network import V1Network from .v1_network_configuration import V1NetworkConfiguration +from .v1_node_mediated_device_types_config import V1NodeMediatedDeviceTypesConfig from .v1_node_placement import V1NodePlacement from .v1_pit_timer import V1PITTimer from .v1_pause_options import V1PauseOptions diff --git a/kubevirt/models/v1_mediated_devices_configuration.py b/kubevirt/models/v1_mediated_devices_configuration.py index d0dcd10e..9189fffc 100644 --- a/kubevirt/models/v1_mediated_devices_configuration.py +++ b/kubevirt/models/v1_mediated_devices_configuration.py @@ -31,22 +31,27 @@ class V1MediatedDevicesConfiguration(object): and the value is json key in definition. """ swagger_types = { - 'mediated_devices_types': 'list[str]' + 'mediated_devices_types': 'list[str]', + 'node_mediated_device_types': 'list[V1NodeMediatedDeviceTypesConfig]' } attribute_map = { - 'mediated_devices_types': 'mediatedDevicesTypes' + 'mediated_devices_types': 'mediatedDevicesTypes', + 'node_mediated_device_types': 'nodeMediatedDeviceTypes' } - def __init__(self, mediated_devices_types=None): + def __init__(self, mediated_devices_types=None, node_mediated_device_types=None): """ V1MediatedDevicesConfiguration - a model defined in Swagger """ self._mediated_devices_types = None + self._node_mediated_device_types = None if mediated_devices_types is not None: self.mediated_devices_types = mediated_devices_types + if node_mediated_device_types is not None: + self.node_mediated_device_types = node_mediated_device_types @property def mediated_devices_types(self): @@ -69,6 +74,27 @@ def mediated_devices_types(self, mediated_devices_types): self._mediated_devices_types = mediated_devices_types + @property + def node_mediated_device_types(self): + """ + Gets the node_mediated_device_types of this V1MediatedDevicesConfiguration. + + :return: The node_mediated_device_types of this V1MediatedDevicesConfiguration. + :rtype: list[V1NodeMediatedDeviceTypesConfig] + """ + return self._node_mediated_device_types + + @node_mediated_device_types.setter + def node_mediated_device_types(self, node_mediated_device_types): + """ + Sets the node_mediated_device_types of this V1MediatedDevicesConfiguration. + + :param node_mediated_device_types: The node_mediated_device_types of this V1MediatedDevicesConfiguration. + :type: list[V1NodeMediatedDeviceTypesConfig] + """ + + self._node_mediated_device_types = node_mediated_device_types + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_node_mediated_device_types_config.py b/kubevirt/models/v1_node_mediated_device_types_config.py new file mode 100644 index 00000000..154141b3 --- /dev/null +++ b/kubevirt/models/v1_node_mediated_device_types_config.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1NodeMediatedDeviceTypesConfig(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'mediated_devices_types': 'list[str]', + 'node_selector': 'dict(str, str)' + } + + attribute_map = { + 'mediated_devices_types': 'mediatedDevicesTypes', + 'node_selector': 'nodeSelector' + } + + def __init__(self, mediated_devices_types=None, node_selector=None): + """ + V1NodeMediatedDeviceTypesConfig - a model defined in Swagger + """ + + self._mediated_devices_types = None + self._node_selector = None + + self.mediated_devices_types = mediated_devices_types + self.node_selector = node_selector + + @property + def mediated_devices_types(self): + """ + Gets the mediated_devices_types of this V1NodeMediatedDeviceTypesConfig. + + :return: The mediated_devices_types of this V1NodeMediatedDeviceTypesConfig. + :rtype: list[str] + """ + return self._mediated_devices_types + + @mediated_devices_types.setter + def mediated_devices_types(self, mediated_devices_types): + """ + Sets the mediated_devices_types of this V1NodeMediatedDeviceTypesConfig. + + :param mediated_devices_types: The mediated_devices_types of this V1NodeMediatedDeviceTypesConfig. + :type: list[str] + """ + if mediated_devices_types is None: + raise ValueError("Invalid value for `mediated_devices_types`, must not be `None`") + + self._mediated_devices_types = mediated_devices_types + + @property + def node_selector(self): + """ + Gets the node_selector of this V1NodeMediatedDeviceTypesConfig. + NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + + :return: The node_selector of this V1NodeMediatedDeviceTypesConfig. + :rtype: dict(str, str) + """ + return self._node_selector + + @node_selector.setter + def node_selector(self, node_selector): + """ + Sets the node_selector of this V1NodeMediatedDeviceTypesConfig. + NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + + :param node_selector: The node_selector of this V1NodeMediatedDeviceTypesConfig. + :type: dict(str, str) + """ + if node_selector is None: + raise ValueError("Invalid value for `node_selector`, must not be `None`") + + self._node_selector = node_selector + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1NodeMediatedDeviceTypesConfig): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 2cc09bda..28280b8c 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.48.0-182-g3ef8b9d61" +VERSION = "v0.48.0-189-g7a2387da3" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 1dd3fec4..9331db4e 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.48.0-182-g3ef8b9d61" +"packageVersion": "v0.48.0-189-g7a2387da3" } diff --git a/test/test_v1_node_mediated_device_types_config.py b/test/test_v1_node_mediated_device_types_config.py new file mode 100644 index 00000000..d83eadab --- /dev/null +++ b/test/test_v1_node_mediated_device_types_config.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_node_mediated_device_types_config import V1NodeMediatedDeviceTypesConfig + + +class TestV1NodeMediatedDeviceTypesConfig(unittest.TestCase): + """ V1NodeMediatedDeviceTypesConfig unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1NodeMediatedDeviceTypesConfig(self): + """ + Test V1NodeMediatedDeviceTypesConfig + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_node_mediated_device_types_config.V1NodeMediatedDeviceTypesConfig() + pass + + +if __name__ == '__main__': + unittest.main() From 4117a28dde9e9c0df3d4450418ab2ed99e382af7 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 22 Dec 2021 04:30:07 +0000 Subject: [PATCH 255/521] Client Python update by KubeVirt Prow build 1473502705518383104 --- README.md | 4 +- docs/V1DomainSpec.md | 1 + docs/V1LaunchSecurity.md | 10 +++ docs/V1SEV.md | 9 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 ++ kubevirt/__init__.py | 2 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 + kubevirt/models/v1_domain_spec.py | 30 ++++++- kubevirt/models/v1_launch_security.py | 125 ++++++++++++++++++++++++++ kubevirt/models/v1_sev.py | 99 ++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_launch_security.py | 44 +++++++++ test/test_v1_sev.py | 44 +++++++++ 17 files changed, 379 insertions(+), 7 deletions(-) create mode 100644 docs/V1LaunchSecurity.md create mode 100644 docs/V1SEV.md create mode 100644 kubevirt/models/v1_launch_security.py create mode 100644 kubevirt/models/v1_sev.py create mode 100644 test/test_v1_launch_security.py create mode 100644 test/test_v1_sev.py diff --git a/README.md b/README.md index 0d8690ba..232e5c3f 100644 --- a/README.md +++ b/README.md @@ -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: v0.48.0-189-g7a2387da3 +- Package version: v0.48.0-211-gfaaf20b29 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -414,6 +414,7 @@ Class | Method | HTTP request | Description - [V1KubeVirtSpec](docs/V1KubeVirtSpec.md) - [V1KubeVirtStatus](docs/V1KubeVirtStatus.md) - [V1KubeVirtWorkloadUpdateStrategy](docs/V1KubeVirtWorkloadUpdateStrategy.md) + - [V1LaunchSecurity](docs/V1LaunchSecurity.md) - [V1LogVerbosity](docs/V1LogVerbosity.md) - [V1LunTarget](docs/V1LunTarget.md) - [V1Machine](docs/V1Machine.md) @@ -449,6 +450,7 @@ Class | Method | HTTP request | Description - [V1ResourceRequirements](docs/V1ResourceRequirements.md) - [V1RestartOptions](docs/V1RestartOptions.md) - [V1Rng](docs/V1Rng.md) + - [V1SEV](docs/V1SEV.md) - [V1SMBiosConfiguration](docs/V1SMBiosConfiguration.md) - [V1SSHPublicKeyAccessCredential](docs/V1SSHPublicKeyAccessCredential.md) - [V1SSHPublicKeyAccessCredentialPropagationMethod](docs/V1SSHPublicKeyAccessCredentialPropagationMethod.md) diff --git a/docs/V1DomainSpec.md b/docs/V1DomainSpec.md index 54455d53..738572ed 100644 --- a/docs/V1DomainSpec.md +++ b/docs/V1DomainSpec.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **features** | [**V1Features**](V1Features.md) | Features like acpi, apic, hyperv, smm. | [optional] **firmware** | [**V1Firmware**](V1Firmware.md) | Firmware. | [optional] **io_threads_policy** | **str** | Controls whether or not disks will share IOThreads. Omitting IOThreadsPolicy disables use of IOThreads. One of: shared, auto | [optional] +**launch_security** | [**V1LaunchSecurity**](V1LaunchSecurity.md) | Launch Security setting of the vmi. | [optional] **machine** | [**V1Machine**](V1Machine.md) | Machine type. | [optional] **memory** | [**V1Memory**](V1Memory.md) | Memory allow specifying the VMI memory features. | [optional] **resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | Resources describes the Compute Resources required by this vmi. | [optional] diff --git a/docs/V1LaunchSecurity.md b/docs/V1LaunchSecurity.md new file mode 100644 index 00000000..72cd51d8 --- /dev/null +++ b/docs/V1LaunchSecurity.md @@ -0,0 +1,10 @@ +# V1LaunchSecurity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sev** | [**V1SEV**](V1SEV.md) | AMD Secure Encrypted Virtualization (SEV). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1SEV.md b/docs/V1SEV.md new file mode 100644 index 00000000..5cbd2b32 --- /dev/null +++ b/docs/V1SEV.md @@ -0,0 +1,9 @@ +# V1SEV + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 6fb4242c..4bfd62c7 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.48.0-189-g7a2387da3" + release_note="Auto-generated client v0.48.0-211-gfaaf20b29" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 47200a35..b776b5d5 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -426,6 +426,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_kube_virt_workload_update_strategy.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kube_virt_workload_update_strategy.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KubeVirtWorkloadUpdateStrategy.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_launch_security.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_launch_security.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1LaunchSecurity.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_log_verbosity.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_log_verbosity.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1LogVerbosity.md @@ -531,6 +534,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_rng.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_rng.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Rng.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_sev.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sev.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SEV.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_sm_bios_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sm_bios_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SMBiosConfiguration.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 8b6733bf..eaf0b38e 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -149,6 +149,7 @@ from .models.v1_kube_virt_spec import V1KubeVirtSpec from .models.v1_kube_virt_status import V1KubeVirtStatus from .models.v1_kube_virt_workload_update_strategy import V1KubeVirtWorkloadUpdateStrategy +from .models.v1_launch_security import V1LaunchSecurity from .models.v1_log_verbosity import V1LogVerbosity from .models.v1_lun_target import V1LunTarget from .models.v1_machine import V1Machine @@ -184,6 +185,7 @@ from .models.v1_resource_requirements import V1ResourceRequirements from .models.v1_restart_options import V1RestartOptions from .models.v1_rng import V1Rng +from .models.v1_sev import V1SEV from .models.v1_sm_bios_configuration import V1SMBiosConfiguration from .models.v1_ssh_public_key_access_credential import V1SSHPublicKeyAccessCredential from .models.v1_ssh_public_key_access_credential_propagation_method import V1SSHPublicKeyAccessCredentialPropagationMethod diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index a677a5d0..5d28f29c 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.48.0-189-g7a2387da3/python' + self.user_agent = 'Swagger-Codegen/v0.48.0-211-gfaaf20b29/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index bae509b3..f51e52bf 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.48.0-189-g7a2387da3".\ + "SDK Package Version: v0.48.0-211-gfaaf20b29".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index d98465ee..bc936008 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -149,6 +149,7 @@ from .v1_kube_virt_spec import V1KubeVirtSpec from .v1_kube_virt_status import V1KubeVirtStatus from .v1_kube_virt_workload_update_strategy import V1KubeVirtWorkloadUpdateStrategy +from .v1_launch_security import V1LaunchSecurity from .v1_log_verbosity import V1LogVerbosity from .v1_lun_target import V1LunTarget from .v1_machine import V1Machine @@ -184,6 +185,7 @@ from .v1_resource_requirements import V1ResourceRequirements from .v1_restart_options import V1RestartOptions from .v1_rng import V1Rng +from .v1_sev import V1SEV from .v1_sm_bios_configuration import V1SMBiosConfiguration from .v1_ssh_public_key_access_credential import V1SSHPublicKeyAccessCredential from .v1_ssh_public_key_access_credential_propagation_method import V1SSHPublicKeyAccessCredentialPropagationMethod diff --git a/kubevirt/models/v1_domain_spec.py b/kubevirt/models/v1_domain_spec.py index 81b271be..b6c9743c 100644 --- a/kubevirt/models/v1_domain_spec.py +++ b/kubevirt/models/v1_domain_spec.py @@ -38,6 +38,7 @@ class V1DomainSpec(object): 'features': 'V1Features', 'firmware': 'V1Firmware', 'io_threads_policy': 'str', + 'launch_security': 'V1LaunchSecurity', 'machine': 'V1Machine', 'memory': 'V1Memory', 'resources': 'V1ResourceRequirements' @@ -51,12 +52,13 @@ class V1DomainSpec(object): 'features': 'features', 'firmware': 'firmware', 'io_threads_policy': 'ioThreadsPolicy', + 'launch_security': 'launchSecurity', 'machine': 'machine', 'memory': 'memory', 'resources': 'resources' } - def __init__(self, chassis=None, clock=None, cpu=None, devices=None, features=None, firmware=None, io_threads_policy=None, machine=None, memory=None, resources=None): + def __init__(self, chassis=None, clock=None, cpu=None, devices=None, features=None, firmware=None, io_threads_policy=None, launch_security=None, machine=None, memory=None, resources=None): """ V1DomainSpec - a model defined in Swagger """ @@ -68,6 +70,7 @@ def __init__(self, chassis=None, clock=None, cpu=None, devices=None, features=No self._features = None self._firmware = None self._io_threads_policy = None + self._launch_security = None self._machine = None self._memory = None self._resources = None @@ -85,6 +88,8 @@ def __init__(self, chassis=None, clock=None, cpu=None, devices=None, features=No self.firmware = firmware if io_threads_policy is not None: self.io_threads_policy = io_threads_policy + if launch_security is not None: + self.launch_security = launch_security if machine is not None: self.machine = machine if memory is not None: @@ -255,6 +260,29 @@ def io_threads_policy(self, io_threads_policy): self._io_threads_policy = io_threads_policy + @property + def launch_security(self): + """ + Gets the launch_security of this V1DomainSpec. + Launch Security setting of the vmi. + + :return: The launch_security of this V1DomainSpec. + :rtype: V1LaunchSecurity + """ + return self._launch_security + + @launch_security.setter + def launch_security(self, launch_security): + """ + Sets the launch_security of this V1DomainSpec. + Launch Security setting of the vmi. + + :param launch_security: The launch_security of this V1DomainSpec. + :type: V1LaunchSecurity + """ + + self._launch_security = launch_security + @property def machine(self): """ diff --git a/kubevirt/models/v1_launch_security.py b/kubevirt/models/v1_launch_security.py new file mode 100644 index 00000000..37a1d552 --- /dev/null +++ b/kubevirt/models/v1_launch_security.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1LaunchSecurity(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'sev': 'V1SEV' + } + + attribute_map = { + 'sev': 'sev' + } + + def __init__(self, sev=None): + """ + V1LaunchSecurity - a model defined in Swagger + """ + + self._sev = None + + if sev is not None: + self.sev = sev + + @property + def sev(self): + """ + Gets the sev of this V1LaunchSecurity. + AMD Secure Encrypted Virtualization (SEV). + + :return: The sev of this V1LaunchSecurity. + :rtype: V1SEV + """ + return self._sev + + @sev.setter + def sev(self, sev): + """ + Sets the sev of this V1LaunchSecurity. + AMD Secure Encrypted Virtualization (SEV). + + :param sev: The sev of this V1LaunchSecurity. + :type: V1SEV + """ + + self._sev = sev + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1LaunchSecurity): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_sev.py b/kubevirt/models/v1_sev.py new file mode 100644 index 00000000..dcc438f6 --- /dev/null +++ b/kubevirt/models/v1_sev.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SEV(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1SEV - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1SEV): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 28280b8c..c276bd12 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.48.0-189-g7a2387da3" +VERSION = "v0.48.0-211-gfaaf20b29" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 9331db4e..b3ca1904 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.48.0-189-g7a2387da3" +"packageVersion": "v0.48.0-211-gfaaf20b29" } diff --git a/test/test_v1_launch_security.py b/test/test_v1_launch_security.py new file mode 100644 index 00000000..67839747 --- /dev/null +++ b/test/test_v1_launch_security.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_launch_security import V1LaunchSecurity + + +class TestV1LaunchSecurity(unittest.TestCase): + """ V1LaunchSecurity unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1LaunchSecurity(self): + """ + Test V1LaunchSecurity + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_launch_security.V1LaunchSecurity() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_sev.py b/test/test_v1_sev.py new file mode 100644 index 00000000..8666f2d6 --- /dev/null +++ b/test/test_v1_sev.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_sev import V1SEV + + +class TestV1SEV(unittest.TestCase): + """ V1SEV unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SEV(self): + """ + Test V1SEV + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_sev.V1SEV() + pass + + +if __name__ == '__main__': + unittest.main() From f1cc3c2d2384195ecf06d15488f5eacdee4fedb9 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 5 Jan 2022 20:54:59 +0000 Subject: [PATCH 256/521] Client Python update by KubeVirt Prow build 1478823711623614464 --- README.md | 2 +- ...1VirtualMachineInstanceNetworkInterface.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...tual_machine_instance_network_interface.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 232e5c3f..c676904b 100644 --- a/README.md +++ b/README.md @@ -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: v0.48.0-211-gfaaf20b29 +- Package version: v0.49.0-rc.0-11-g87ef225e3 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceNetworkInterface.md b/docs/V1VirtualMachineInstanceNetworkInterface.md index 96834712..f18b0553 100644 --- a/docs/V1VirtualMachineInstanceNetworkInterface.md +++ b/docs/V1VirtualMachineInstanceNetworkInterface.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**info_source** | **str** | Specifies the origin of the interface data collected. values: domain, guest-agent, or both | [optional] **interface_name** | **str** | The interface name inside the Virtual Machine | [optional] **ip_address** | **str** | IP address of a Virtual Machine interface. It is always the first item of IPs | [optional] **ip_addresses** | **list[str]** | List of all IP addresses of a Virtual Machine interface | [optional] diff --git a/git_push.sh b/git_push.sh index 4bfd62c7..c60a4e5d 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.48.0-211-gfaaf20b29" + release_note="Auto-generated client v0.49.0-rc.0-11-g87ef225e3" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 5d28f29c..733542ed 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.48.0-211-gfaaf20b29/python' + self.user_agent = 'Swagger-Codegen/v0.49.0-rc.0-11-g87ef225e3/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index f51e52bf..a1fe86d2 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.48.0-211-gfaaf20b29".\ + "SDK Package Version: v0.49.0-rc.0-11-g87ef225e3".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_network_interface.py b/kubevirt/models/v1_virtual_machine_instance_network_interface.py index e9f0e0d4..5c0dcfcc 100644 --- a/kubevirt/models/v1_virtual_machine_instance_network_interface.py +++ b/kubevirt/models/v1_virtual_machine_instance_network_interface.py @@ -31,6 +31,7 @@ class V1VirtualMachineInstanceNetworkInterface(object): and the value is json key in definition. """ swagger_types = { + 'info_source': 'str', 'interface_name': 'str', 'ip_address': 'str', 'ip_addresses': 'list[str]', @@ -39,6 +40,7 @@ class V1VirtualMachineInstanceNetworkInterface(object): } attribute_map = { + 'info_source': 'infoSource', 'interface_name': 'interfaceName', 'ip_address': 'ipAddress', 'ip_addresses': 'ipAddresses', @@ -46,17 +48,20 @@ class V1VirtualMachineInstanceNetworkInterface(object): 'name': 'name' } - def __init__(self, interface_name=None, ip_address=None, ip_addresses=None, mac=None, name=None): + def __init__(self, info_source=None, interface_name=None, ip_address=None, ip_addresses=None, mac=None, name=None): """ V1VirtualMachineInstanceNetworkInterface - a model defined in Swagger """ + self._info_source = None self._interface_name = None self._ip_address = None self._ip_addresses = None self._mac = None self._name = None + if info_source is not None: + self.info_source = info_source if interface_name is not None: self.interface_name = interface_name if ip_address is not None: @@ -68,6 +73,29 @@ def __init__(self, interface_name=None, ip_address=None, ip_addresses=None, mac= if name is not None: self.name = name + @property + def info_source(self): + """ + Gets the info_source of this V1VirtualMachineInstanceNetworkInterface. + Specifies the origin of the interface data collected. values: domain, guest-agent, or both + + :return: The info_source of this V1VirtualMachineInstanceNetworkInterface. + :rtype: str + """ + return self._info_source + + @info_source.setter + def info_source(self, info_source): + """ + Sets the info_source of this V1VirtualMachineInstanceNetworkInterface. + Specifies the origin of the interface data collected. values: domain, guest-agent, or both + + :param info_source: The info_source of this V1VirtualMachineInstanceNetworkInterface. + :type: str + """ + + self._info_source = info_source + @property def interface_name(self): """ diff --git a/setup.py b/setup.py index c276bd12..aa70441e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.48.0-211-gfaaf20b29" +VERSION = "v0.49.0-rc.0-11-g87ef225e3" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b3ca1904..4aedbbb2 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.48.0-211-gfaaf20b29" +"packageVersion": "v0.49.0-rc.0-11-g87ef225e3" } From bf6e34151c4e4ac550f1cf411f216038b9fd3b26 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 6 Jan 2022 01:27:03 +0000 Subject: [PATCH 257/521] Client Python update by KubeVirt Prow build 1478889668530409472 --- README.md | 2 +- .../V1VirtualMachineInstanceMigrationState.md | 2 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...irtual_machine_instance_migration_state.py | 58 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 65 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c676904b..a0e5ebfb 100644 --- a/README.md +++ b/README.md @@ -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: v0.49.0-rc.0-11-g87ef225e3 +- Package version: v0.49.0-rc.0-27-g1840e40b5 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceMigrationState.md b/docs/V1VirtualMachineInstanceMigrationState.md index b2bffc83..4aa5ebf4 100644 --- a/docs/V1VirtualMachineInstanceMigrationState.md +++ b/docs/V1VirtualMachineInstanceMigrationState.md @@ -15,10 +15,12 @@ Name | Type | Description | Notes **source_node** | **str** | The source node that the VMI originated on | [optional] **start_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | The time the migration action began | [optional] **target_attachment_pod_uid** | **str** | The UID of the target attachment pod for hotplug volumes | [optional] +**target_cpu_set** | **list[int]** | If the VMI requires dedicated CPUs, this field will hold the dedicated CPU set on the target node | [optional] **target_direct_migration_node_ports** | **dict(str, int)** | The list of ports opened for live migration on the destination node | [optional] **target_node** | **str** | The target node that the VMI is moving to | [optional] **target_node_address** | **str** | The address of the target node to use for the migration | [optional] **target_node_domain_detected** | **bool** | The Target Node has seen the Domain Start Event | [optional] +**target_node_topology** | **str** | If the VMI requires dedicated CPUs, this field will hold the numa topology on the target node | [optional] **target_pod** | **str** | The target pod that the VMI is moving to | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index c60a4e5d..d20bb3de 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.49.0-rc.0-11-g87ef225e3" + release_note="Auto-generated client v0.49.0-rc.0-27-g1840e40b5" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 733542ed..0f9d78f2 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.49.0-rc.0-11-g87ef225e3/python' + self.user_agent = 'Swagger-Codegen/v0.49.0-rc.0-27-g1840e40b5/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index a1fe86d2..2d21ced3 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.49.0-rc.0-11-g87ef225e3".\ + "SDK Package Version: v0.49.0-rc.0-27-g1840e40b5".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_state.py b/kubevirt/models/v1_virtual_machine_instance_migration_state.py index 8dd3f5ed..3d9c4e8d 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_state.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_state.py @@ -43,10 +43,12 @@ class V1VirtualMachineInstanceMigrationState(object): 'source_node': 'str', 'start_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', 'target_attachment_pod_uid': 'str', + 'target_cpu_set': 'list[int]', 'target_direct_migration_node_ports': 'dict(str, int)', 'target_node': 'str', 'target_node_address': 'str', 'target_node_domain_detected': 'bool', + 'target_node_topology': 'str', 'target_pod': 'str' } @@ -63,14 +65,16 @@ class V1VirtualMachineInstanceMigrationState(object): 'source_node': 'sourceNode', 'start_timestamp': 'startTimestamp', 'target_attachment_pod_uid': 'targetAttachmentPodUID', + 'target_cpu_set': 'targetCPUSet', 'target_direct_migration_node_ports': 'targetDirectMigrationNodePorts', 'target_node': 'targetNode', 'target_node_address': 'targetNodeAddress', 'target_node_domain_detected': 'targetNodeDomainDetected', + 'target_node_topology': 'targetNodeTopology', 'target_pod': 'targetPod' } - def __init__(self, abort_requested=None, abort_status=None, completed=None, end_timestamp=None, failed=None, migration_configuration=None, migration_policy_name=None, migration_uid=None, mode=None, source_node=None, start_timestamp=None, target_attachment_pod_uid=None, target_direct_migration_node_ports=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_pod=None): + def __init__(self, abort_requested=None, abort_status=None, completed=None, end_timestamp=None, failed=None, migration_configuration=None, migration_policy_name=None, migration_uid=None, mode=None, source_node=None, start_timestamp=None, target_attachment_pod_uid=None, target_cpu_set=None, target_direct_migration_node_ports=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_node_topology=None, target_pod=None): """ V1VirtualMachineInstanceMigrationState - a model defined in Swagger """ @@ -87,10 +91,12 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self._source_node = None self._start_timestamp = None self._target_attachment_pod_uid = None + self._target_cpu_set = None self._target_direct_migration_node_ports = None self._target_node = None self._target_node_address = None self._target_node_domain_detected = None + self._target_node_topology = None self._target_pod = None if abort_requested is not None: @@ -117,6 +123,8 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self.start_timestamp = start_timestamp if target_attachment_pod_uid is not None: self.target_attachment_pod_uid = target_attachment_pod_uid + if target_cpu_set is not None: + self.target_cpu_set = target_cpu_set if target_direct_migration_node_ports is not None: self.target_direct_migration_node_ports = target_direct_migration_node_ports if target_node is not None: @@ -125,6 +133,8 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self.target_node_address = target_node_address if target_node_domain_detected is not None: self.target_node_domain_detected = target_node_domain_detected + if target_node_topology is not None: + self.target_node_topology = target_node_topology if target_pod is not None: self.target_pod = target_pod @@ -404,6 +414,29 @@ def target_attachment_pod_uid(self, target_attachment_pod_uid): self._target_attachment_pod_uid = target_attachment_pod_uid + @property + def target_cpu_set(self): + """ + Gets the target_cpu_set of this V1VirtualMachineInstanceMigrationState. + If the VMI requires dedicated CPUs, this field will hold the dedicated CPU set on the target node + + :return: The target_cpu_set of this V1VirtualMachineInstanceMigrationState. + :rtype: list[int] + """ + return self._target_cpu_set + + @target_cpu_set.setter + def target_cpu_set(self, target_cpu_set): + """ + Sets the target_cpu_set of this V1VirtualMachineInstanceMigrationState. + If the VMI requires dedicated CPUs, this field will hold the dedicated CPU set on the target node + + :param target_cpu_set: The target_cpu_set of this V1VirtualMachineInstanceMigrationState. + :type: list[int] + """ + + self._target_cpu_set = target_cpu_set + @property def target_direct_migration_node_ports(self): """ @@ -496,6 +529,29 @@ def target_node_domain_detected(self, target_node_domain_detected): self._target_node_domain_detected = target_node_domain_detected + @property + def target_node_topology(self): + """ + Gets the target_node_topology of this V1VirtualMachineInstanceMigrationState. + If the VMI requires dedicated CPUs, this field will hold the numa topology on the target node + + :return: The target_node_topology of this V1VirtualMachineInstanceMigrationState. + :rtype: str + """ + return self._target_node_topology + + @target_node_topology.setter + def target_node_topology(self, target_node_topology): + """ + Sets the target_node_topology of this V1VirtualMachineInstanceMigrationState. + If the VMI requires dedicated CPUs, this field will hold the numa topology on the target node + + :param target_node_topology: The target_node_topology of this V1VirtualMachineInstanceMigrationState. + :type: str + """ + + self._target_node_topology = target_node_topology + @property def target_pod(self): """ diff --git a/setup.py b/setup.py index aa70441e..f80e0399 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.49.0-rc.0-11-g87ef225e3" +VERSION = "v0.49.0-rc.0-27-g1840e40b5" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 4aedbbb2..5566e1aa 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.49.0-rc.0-11-g87ef225e3" +"packageVersion": "v0.49.0-rc.0-27-g1840e40b5" } From 0d0dd9d15c52dad2d778ff128d072c99f0bcba22 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 12 Jan 2022 23:44:35 +0000 Subject: [PATCH 258/521] Client Python update by KubeVirt Prow build 1481403648507383808 --- README.md | 2 +- docs/V1GPU.md | 1 + docs/V1HostDevice.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_gpu.py | 30 ++++++++++++++++++++++++++- kubevirt/models/v1_host_device.py | 34 ++++++++++++++++++++++++++++--- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 68 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index a0e5ebfb..8200ab5e 100644 --- a/README.md +++ b/README.md @@ -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: v0.49.0-rc.0-27-g1840e40b5 +- Package version: v0.49.0-88-g825e01929 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1GPU.md b/docs/V1GPU.md index 8adee2ba..e5118d78 100644 --- a/docs/V1GPU.md +++ b/docs/V1GPU.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **device_name** | **str** | | **name** | **str** | Name of the GPU device as exposed by a device plugin | +**tag** | **str** | If specified, the virtual network interface address and its tag will be provided to the guest via config drive | [optional] **virtual_gpu_options** | [**V1VGPUOptions**](V1VGPUOptions.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1HostDevice.md b/docs/V1HostDevice.md index 83e8366e..bb2598c6 100644 --- a/docs/V1HostDevice.md +++ b/docs/V1HostDevice.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **device_name** | **str** | DeviceName is the resource name of the host device exposed by a device plugin | **name** | **str** | | +**tag** | **str** | If specified, the virtual network interface address and its tag will be provided to the guest via config drive | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index d20bb3de..4c309f21 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.49.0-rc.0-27-g1840e40b5" + release_note="Auto-generated client v0.49.0-88-g825e01929" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 0f9d78f2..30927ac1 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.49.0-rc.0-27-g1840e40b5/python' + self.user_agent = 'Swagger-Codegen/v0.49.0-88-g825e01929/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 2d21ced3..97611a28 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.49.0-rc.0-27-g1840e40b5".\ + "SDK Package Version: v0.49.0-88-g825e01929".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_gpu.py b/kubevirt/models/v1_gpu.py index 6eb0400e..3d542e5c 100644 --- a/kubevirt/models/v1_gpu.py +++ b/kubevirt/models/v1_gpu.py @@ -33,26 +33,31 @@ class V1GPU(object): swagger_types = { 'device_name': 'str', 'name': 'str', + 'tag': 'str', 'virtual_gpu_options': 'V1VGPUOptions' } attribute_map = { 'device_name': 'deviceName', 'name': 'name', + 'tag': 'tag', 'virtual_gpu_options': 'virtualGPUOptions' } - def __init__(self, device_name=None, name=None, virtual_gpu_options=None): + def __init__(self, device_name=None, name=None, tag=None, virtual_gpu_options=None): """ V1GPU - a model defined in Swagger """ self._device_name = None self._name = None + self._tag = None self._virtual_gpu_options = None self.device_name = device_name self.name = name + if tag is not None: + self.tag = tag if virtual_gpu_options is not None: self.virtual_gpu_options = virtual_gpu_options @@ -104,6 +109,29 @@ def name(self, name): self._name = name + @property + def tag(self): + """ + Gets the tag of this V1GPU. + If specified, the virtual network interface address and its tag will be provided to the guest via config drive + + :return: The tag of this V1GPU. + :rtype: str + """ + return self._tag + + @tag.setter + def tag(self, tag): + """ + Sets the tag of this V1GPU. + If specified, the virtual network interface address and its tag will be provided to the guest via config drive + + :param tag: The tag of this V1GPU. + :type: str + """ + + self._tag = tag + @property def virtual_gpu_options(self): """ diff --git a/kubevirt/models/v1_host_device.py b/kubevirt/models/v1_host_device.py index f12f35a4..3c7dbd1e 100644 --- a/kubevirt/models/v1_host_device.py +++ b/kubevirt/models/v1_host_device.py @@ -32,24 +32,29 @@ class V1HostDevice(object): """ swagger_types = { 'device_name': 'str', - 'name': 'str' + 'name': 'str', + 'tag': 'str' } attribute_map = { 'device_name': 'deviceName', - 'name': 'name' + 'name': 'name', + 'tag': 'tag' } - def __init__(self, device_name=None, name=None): + def __init__(self, device_name=None, name=None, tag=None): """ V1HostDevice - a model defined in Swagger """ self._device_name = None self._name = None + self._tag = None self.device_name = device_name self.name = name + if tag is not None: + self.tag = tag @property def device_name(self): @@ -99,6 +104,29 @@ def name(self, name): self._name = name + @property + def tag(self): + """ + Gets the tag of this V1HostDevice. + If specified, the virtual network interface address and its tag will be provided to the guest via config drive + + :return: The tag of this V1HostDevice. + :rtype: str + """ + return self._tag + + @tag.setter + def tag(self, tag): + """ + Sets the tag of this V1HostDevice. + If specified, the virtual network interface address and its tag will be provided to the guest via config drive + + :param tag: The tag of this V1HostDevice. + :type: str + """ + + self._tag = tag + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index f80e0399..ec076a2d 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.49.0-rc.0-27-g1840e40b5" +VERSION = "v0.49.0-88-g825e01929" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 5566e1aa..2c19ab07 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.49.0-rc.0-27-g1840e40b5" +"packageVersion": "v0.49.0-88-g825e01929" } From e80cea9349879caf553403dd5e45eaeb27f89b34 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 13 Jan 2022 08:34:42 +0000 Subject: [PATCH 259/521] Client Python update by KubeVirt Prow build 1481536018757718016 --- README.md | 2 +- docs/V1PersistentVolumeClaimInfo.md | 3 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../models/v1_persistent_volume_claim_info.py | 34 +++++++++++++++++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 39 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 8200ab5e..fe641dc7 100644 --- a/README.md +++ b/README.md @@ -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: v0.49.0-88-g825e01929 +- Package version: v0.49.0-90-g49b9e4a71 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1PersistentVolumeClaimInfo.md b/docs/V1PersistentVolumeClaimInfo.md index f2322833..99260ab4 100644 --- a/docs/V1PersistentVolumeClaimInfo.md +++ b/docs/V1PersistentVolumeClaimInfo.md @@ -4,9 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **access_modes** | **list[str]** | AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] -**capacity** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Capacity represents the capacity set on the corresponding PVC spec | [optional] +**capacity** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Capacity represents the capacity set on the corresponding PVC status | [optional] **filesystem_overhead** | **str** | Percentage of filesystem's size to be reserved when resizing the PVC | [optional] **preallocated** | **bool** | Preallocated indicates if the PVC's storage is preallocated or not | [optional] +**requests** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Requests represents the resources requested by the corresponding PVC spec | [optional] **volume_mode** | **str** | VolumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 4c309f21..281e242f 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.49.0-88-g825e01929" + release_note="Auto-generated client v0.49.0-90-g49b9e4a71" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 30927ac1..f500b05c 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.49.0-88-g825e01929/python' + self.user_agent = 'Swagger-Codegen/v0.49.0-90-g49b9e4a71/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 97611a28..5577682a 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.49.0-88-g825e01929".\ + "SDK Package Version: v0.49.0-90-g49b9e4a71".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_persistent_volume_claim_info.py b/kubevirt/models/v1_persistent_volume_claim_info.py index feb991c0..7043779d 100644 --- a/kubevirt/models/v1_persistent_volume_claim_info.py +++ b/kubevirt/models/v1_persistent_volume_claim_info.py @@ -35,6 +35,7 @@ class V1PersistentVolumeClaimInfo(object): 'capacity': 'dict(str, K8sIoApimachineryPkgApiResourceQuantity)', 'filesystem_overhead': 'str', 'preallocated': 'bool', + 'requests': 'dict(str, K8sIoApimachineryPkgApiResourceQuantity)', 'volume_mode': 'str' } @@ -43,10 +44,11 @@ class V1PersistentVolumeClaimInfo(object): 'capacity': 'capacity', 'filesystem_overhead': 'filesystemOverhead', 'preallocated': 'preallocated', + 'requests': 'requests', 'volume_mode': 'volumeMode' } - def __init__(self, access_modes=None, capacity=None, filesystem_overhead=None, preallocated=None, volume_mode=None): + def __init__(self, access_modes=None, capacity=None, filesystem_overhead=None, preallocated=None, requests=None, volume_mode=None): """ V1PersistentVolumeClaimInfo - a model defined in Swagger """ @@ -55,6 +57,7 @@ def __init__(self, access_modes=None, capacity=None, filesystem_overhead=None, p self._capacity = None self._filesystem_overhead = None self._preallocated = None + self._requests = None self._volume_mode = None if access_modes is not None: @@ -65,6 +68,8 @@ def __init__(self, access_modes=None, capacity=None, filesystem_overhead=None, p self.filesystem_overhead = filesystem_overhead if preallocated is not None: self.preallocated = preallocated + if requests is not None: + self.requests = requests if volume_mode is not None: self.volume_mode = volume_mode @@ -95,7 +100,7 @@ def access_modes(self, access_modes): def capacity(self): """ Gets the capacity of this V1PersistentVolumeClaimInfo. - Capacity represents the capacity set on the corresponding PVC spec + Capacity represents the capacity set on the corresponding PVC status :return: The capacity of this V1PersistentVolumeClaimInfo. :rtype: dict(str, K8sIoApimachineryPkgApiResourceQuantity) @@ -106,7 +111,7 @@ def capacity(self): def capacity(self, capacity): """ Sets the capacity of this V1PersistentVolumeClaimInfo. - Capacity represents the capacity set on the corresponding PVC spec + Capacity represents the capacity set on the corresponding PVC status :param capacity: The capacity of this V1PersistentVolumeClaimInfo. :type: dict(str, K8sIoApimachineryPkgApiResourceQuantity) @@ -160,6 +165,29 @@ def preallocated(self, preallocated): self._preallocated = preallocated + @property + def requests(self): + """ + Gets the requests of this V1PersistentVolumeClaimInfo. + Requests represents the resources requested by the corresponding PVC spec + + :return: The requests of this V1PersistentVolumeClaimInfo. + :rtype: dict(str, K8sIoApimachineryPkgApiResourceQuantity) + """ + return self._requests + + @requests.setter + def requests(self, requests): + """ + Sets the requests of this V1PersistentVolumeClaimInfo. + Requests represents the resources requested by the corresponding PVC spec + + :param requests: The requests of this V1PersistentVolumeClaimInfo. + :type: dict(str, K8sIoApimachineryPkgApiResourceQuantity) + """ + + self._requests = requests + @property def volume_mode(self): """ diff --git a/setup.py b/setup.py index ec076a2d..2ef46a26 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.49.0-88-g825e01929" +VERSION = "v0.49.0-90-g49b9e4a71" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 2c19ab07..90063615 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.49.0-88-g825e01929" +"packageVersion": "v0.49.0-90-g49b9e4a71" } From 34ae111298c98a8cc69210b6e7cf97cadd404c3f Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Mon, 31 Jan 2022 13:28:14 +0000 Subject: [PATCH 260/521] Client Python update by KubeVirt Prow build 1488135828713508864 --- README.md | 2 +- ...K8sIoApiCoreV1PersistentVolumeClaimSpec.md | 5 +- docs/K8sIoApiCoreV1PodAffinityTerm.md | 3 +- docs/K8sIoApiCoreV1ResourceRequirements.md | 4 +- ...achineryPkgApisMetaV1ManagedFieldsEntry.md | 1 + docs/V1beta1DataVolumeSourceHTTP.md | 2 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...pi_core_v1_persistent_volume_claim_spec.py | 38 ++++++++++-- .../k8s_io_api_core_v1_pod_affinity_term.py | 34 ++++++++++- ...8s_io_api_core_v1_resource_requirements.py | 8 +-- ...y_pkg_apis_meta_v1_managed_fields_entry.py | 30 +++++++++- .../models/v1beta1_data_volume_source_http.py | 58 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 16 files changed, 170 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index fe641dc7..46671c5e 100644 --- a/README.md +++ b/README.md @@ -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: v0.49.0-90-g49b9e4a71 +- Package version: v0.49.0-277-gf16dd5109 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md b/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md index ce8a933b..07193b58 100644 --- a/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md +++ b/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md @@ -4,8 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **access_modes** | **list[str]** | AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] -**data_source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) * An existing custom resource that implements data population (Alpha) In order to use custom resource types that implement data population, the AnyVolumeDataSource feature gate must be enabled. If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. | [optional] -**resources** | [**K8sIoApiCoreV1ResourceRequirements**](K8sIoApiCoreV1ResourceRequirements.md) | Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources | [optional] +**data_source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. | [optional] +**data_source_ref** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled. | [optional] +**resources** | [**K8sIoApiCoreV1ResourceRequirements**](K8sIoApiCoreV1ResourceRequirements.md) | Resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources | [optional] **selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | A label query over volumes to consider for binding. | [optional] **storage_class_name** | **str** | Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] **volume_mode** | **str** | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. | [optional] diff --git a/docs/K8sIoApiCoreV1PodAffinityTerm.md b/docs/K8sIoApiCoreV1PodAffinityTerm.md index 4c9d196d..3c0b046d 100644 --- a/docs/K8sIoApiCoreV1PodAffinityTerm.md +++ b/docs/K8sIoApiCoreV1PodAffinityTerm.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **label_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | A label query over a set of resources, in this case pods. | [optional] -**namespaces** | **list[str]** | namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\" | [optional] +**namespace_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled. | [optional] +**namespaces** | **list[str]** | namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\" | [optional] **topology_key** | **str** | This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApiCoreV1ResourceRequirements.md b/docs/K8sIoApiCoreV1ResourceRequirements.md index 27bbeeb3..ca74fff2 100644 --- a/docs/K8sIoApiCoreV1ResourceRequirements.md +++ b/docs/K8sIoApiCoreV1ResourceRequirements.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**limits** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ | [optional] -**requests** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ | [optional] +**limits** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] +**requests** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry.md b/docs/K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry.md index 2bc82d74..55284f83 100644 --- a/docs/K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **fields_v1** | [**K8sIoApimachineryPkgApisMetaV1FieldsV1**](K8sIoApimachineryPkgApisMetaV1FieldsV1.md) | FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type. | [optional] **manager** | **str** | Manager is an identifier of the workflow managing these fields. | [optional] **operation** | **str** | Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. | [optional] +**subresource** | **str** | Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource. | [optional] **time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1beta1DataVolumeSourceHTTP.md b/docs/V1beta1DataVolumeSourceHTTP.md index fb2ca5f2..e3cd53af 100644 --- a/docs/V1beta1DataVolumeSourceHTTP.md +++ b/docs/V1beta1DataVolumeSourceHTTP.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cert_config_map** | **str** | CertConfigMap is a configmap reference, containing a Certificate Authority(CA) public key, and a base64 encoded pem certificate | [optional] +**extra_headers** | **list[str]** | ExtraHeaders is a list of strings containing extra headers to include with HTTP transfer requests | [optional] +**secret_extra_headers** | **list[str]** | SecretExtraHeaders is a list of Secret references, each containing an extra HTTP header that may include sensitive information | [optional] **secret_ref** | **str** | SecretRef A Secret reference, the secret should contain accessKeyId (user name) base64 encoded, and secretKey (password) also base64 encoded | [optional] **url** | **str** | URL is the URL of the http(s) endpoint | diff --git a/git_push.sh b/git_push.sh index 281e242f..5e77d5e6 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.49.0-90-g49b9e4a71" + release_note="Auto-generated client v0.49.0-277-gf16dd5109" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index f500b05c..bbb51ae0 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.49.0-90-g49b9e4a71/python' + self.user_agent = 'Swagger-Codegen/v0.49.0-277-gf16dd5109/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 5577682a..b2b20da8 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.49.0-90-g49b9e4a71".\ + "SDK Package Version: v0.49.0-277-gf16dd5109".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py index ddd5afd9..6bfd644b 100644 --- a/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py +++ b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py @@ -33,6 +33,7 @@ class K8sIoApiCoreV1PersistentVolumeClaimSpec(object): swagger_types = { 'access_modes': 'list[str]', 'data_source': 'K8sIoApiCoreV1TypedLocalObjectReference', + 'data_source_ref': 'K8sIoApiCoreV1TypedLocalObjectReference', 'resources': 'K8sIoApiCoreV1ResourceRequirements', 'selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', 'storage_class_name': 'str', @@ -43,6 +44,7 @@ class K8sIoApiCoreV1PersistentVolumeClaimSpec(object): attribute_map = { 'access_modes': 'accessModes', 'data_source': 'dataSource', + 'data_source_ref': 'dataSourceRef', 'resources': 'resources', 'selector': 'selector', 'storage_class_name': 'storageClassName', @@ -50,13 +52,14 @@ class K8sIoApiCoreV1PersistentVolumeClaimSpec(object): 'volume_name': 'volumeName' } - def __init__(self, access_modes=None, data_source=None, resources=None, selector=None, storage_class_name=None, volume_mode=None, volume_name=None): + def __init__(self, access_modes=None, data_source=None, data_source_ref=None, resources=None, selector=None, storage_class_name=None, volume_mode=None, volume_name=None): """ K8sIoApiCoreV1PersistentVolumeClaimSpec - a model defined in Swagger """ self._access_modes = None self._data_source = None + self._data_source_ref = None self._resources = None self._selector = None self._storage_class_name = None @@ -67,6 +70,8 @@ def __init__(self, access_modes=None, data_source=None, resources=None, selector self.access_modes = access_modes if data_source is not None: self.data_source = data_source + if data_source_ref is not None: + self.data_source_ref = data_source_ref if resources is not None: self.resources = resources if selector is not None: @@ -105,7 +110,7 @@ def access_modes(self, access_modes): def data_source(self): """ Gets the data_source of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) * An existing custom resource that implements data population (Alpha) In order to use custom resource types that implement data population, the AnyVolumeDataSource feature gate must be enabled. If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. + This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. :return: The data_source of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :rtype: K8sIoApiCoreV1TypedLocalObjectReference @@ -116,7 +121,7 @@ def data_source(self): def data_source(self, data_source): """ Sets the data_source of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) * An existing custom resource that implements data population (Alpha) In order to use custom resource types that implement data population, the AnyVolumeDataSource feature gate must be enabled. If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. + This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. :param data_source: The data_source of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :type: K8sIoApiCoreV1TypedLocalObjectReference @@ -124,11 +129,34 @@ def data_source(self, data_source): self._data_source = data_source + @property + def data_source_ref(self): + """ + Gets the data_source_ref of this K8sIoApiCoreV1PersistentVolumeClaimSpec. + Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled. + + :return: The data_source_ref of this K8sIoApiCoreV1PersistentVolumeClaimSpec. + :rtype: K8sIoApiCoreV1TypedLocalObjectReference + """ + return self._data_source_ref + + @data_source_ref.setter + def data_source_ref(self, data_source_ref): + """ + Sets the data_source_ref of this K8sIoApiCoreV1PersistentVolumeClaimSpec. + Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled. + + :param data_source_ref: The data_source_ref of this K8sIoApiCoreV1PersistentVolumeClaimSpec. + :type: K8sIoApiCoreV1TypedLocalObjectReference + """ + + self._data_source_ref = data_source_ref + @property def resources(self): """ Gets the resources of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + Resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources :return: The resources of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :rtype: K8sIoApiCoreV1ResourceRequirements @@ -139,7 +167,7 @@ def resources(self): def resources(self, resources): """ Sets the resources of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + Resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources :param resources: The resources of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :type: K8sIoApiCoreV1ResourceRequirements diff --git a/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py b/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py index 3eb42da8..92c9eeef 100644 --- a/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py +++ b/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py @@ -32,27 +32,32 @@ class K8sIoApiCoreV1PodAffinityTerm(object): """ swagger_types = { 'label_selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', + 'namespace_selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', 'namespaces': 'list[str]', 'topology_key': 'str' } attribute_map = { 'label_selector': 'labelSelector', + 'namespace_selector': 'namespaceSelector', 'namespaces': 'namespaces', 'topology_key': 'topologyKey' } - def __init__(self, label_selector=None, namespaces=None, topology_key=None): + def __init__(self, label_selector=None, namespace_selector=None, namespaces=None, topology_key=None): """ K8sIoApiCoreV1PodAffinityTerm - a model defined in Swagger """ self._label_selector = None + self._namespace_selector = None self._namespaces = None self._topology_key = None if label_selector is not None: self.label_selector = label_selector + if namespace_selector is not None: + self.namespace_selector = namespace_selector if namespaces is not None: self.namespaces = namespaces self.topology_key = topology_key @@ -80,11 +85,34 @@ def label_selector(self, label_selector): self._label_selector = label_selector + @property + def namespace_selector(self): + """ + Gets the namespace_selector of this K8sIoApiCoreV1PodAffinityTerm. + A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled. + + :return: The namespace_selector of this K8sIoApiCoreV1PodAffinityTerm. + :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + return self._namespace_selector + + @namespace_selector.setter + def namespace_selector(self, namespace_selector): + """ + Sets the namespace_selector of this K8sIoApiCoreV1PodAffinityTerm. + A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled. + + :param namespace_selector: The namespace_selector of this K8sIoApiCoreV1PodAffinityTerm. + :type: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + + self._namespace_selector = namespace_selector + @property def namespaces(self): """ Gets the namespaces of this K8sIoApiCoreV1PodAffinityTerm. - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\" + namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\" :return: The namespaces of this K8sIoApiCoreV1PodAffinityTerm. :rtype: list[str] @@ -95,7 +123,7 @@ def namespaces(self): def namespaces(self, namespaces): """ Sets the namespaces of this K8sIoApiCoreV1PodAffinityTerm. - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\" + namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\" :param namespaces: The namespaces of this K8sIoApiCoreV1PodAffinityTerm. :type: list[str] diff --git a/kubevirt/models/k8s_io_api_core_v1_resource_requirements.py b/kubevirt/models/k8s_io_api_core_v1_resource_requirements.py index 3204fc07..96792d19 100644 --- a/kubevirt/models/k8s_io_api_core_v1_resource_requirements.py +++ b/kubevirt/models/k8s_io_api_core_v1_resource_requirements.py @@ -57,7 +57,7 @@ def __init__(self, limits=None, requests=None): def limits(self): """ Gets the limits of this K8sIoApiCoreV1ResourceRequirements. - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ :return: The limits of this K8sIoApiCoreV1ResourceRequirements. :rtype: dict(str, K8sIoApimachineryPkgApiResourceQuantity) @@ -68,7 +68,7 @@ def limits(self): def limits(self, limits): """ Sets the limits of this K8sIoApiCoreV1ResourceRequirements. - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ :param limits: The limits of this K8sIoApiCoreV1ResourceRequirements. :type: dict(str, K8sIoApimachineryPkgApiResourceQuantity) @@ -80,7 +80,7 @@ def limits(self, limits): def requests(self): """ Gets the requests of this K8sIoApiCoreV1ResourceRequirements. - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ :return: The requests of this K8sIoApiCoreV1ResourceRequirements. :rtype: dict(str, K8sIoApimachineryPkgApiResourceQuantity) @@ -91,7 +91,7 @@ def requests(self): def requests(self, requests): """ Sets the requests of this K8sIoApiCoreV1ResourceRequirements. - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ :param requests: The requests of this K8sIoApiCoreV1ResourceRequirements. :type: dict(str, K8sIoApimachineryPkgApiResourceQuantity) diff --git a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry.py index 11afac9c..3af9622b 100644 --- a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry.py @@ -36,6 +36,7 @@ class K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry(object): 'fields_v1': 'K8sIoApimachineryPkgApisMetaV1FieldsV1', 'manager': 'str', 'operation': 'str', + 'subresource': 'str', 'time': 'K8sIoApimachineryPkgApisMetaV1Time' } @@ -45,10 +46,11 @@ class K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry(object): 'fields_v1': 'fieldsV1', 'manager': 'manager', 'operation': 'operation', + 'subresource': 'subresource', 'time': 'time' } - def __init__(self, api_version=None, fields_type=None, fields_v1=None, manager=None, operation=None, time=None): + def __init__(self, api_version=None, fields_type=None, fields_v1=None, manager=None, operation=None, subresource=None, time=None): """ K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry - a model defined in Swagger """ @@ -58,6 +60,7 @@ def __init__(self, api_version=None, fields_type=None, fields_v1=None, manager=N self._fields_v1 = None self._manager = None self._operation = None + self._subresource = None self._time = None if api_version is not None: @@ -70,6 +73,8 @@ def __init__(self, api_version=None, fields_type=None, fields_v1=None, manager=N self.manager = manager if operation is not None: self.operation = operation + if subresource is not None: + self.subresource = subresource if time is not None: self.time = time @@ -188,6 +193,29 @@ def operation(self, operation): self._operation = operation + @property + def subresource(self): + """ + Gets the subresource of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. + Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource. + + :return: The subresource of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. + :rtype: str + """ + return self._subresource + + @subresource.setter + def subresource(self, subresource): + """ + Sets the subresource of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. + Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource. + + :param subresource: The subresource of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. + :type: str + """ + + self._subresource = subresource + @property def time(self): """ diff --git a/kubevirt/models/v1beta1_data_volume_source_http.py b/kubevirt/models/v1beta1_data_volume_source_http.py index f4413da7..a6c2aeb4 100644 --- a/kubevirt/models/v1beta1_data_volume_source_http.py +++ b/kubevirt/models/v1beta1_data_volume_source_http.py @@ -32,27 +32,37 @@ class V1beta1DataVolumeSourceHTTP(object): """ swagger_types = { 'cert_config_map': 'str', + 'extra_headers': 'list[str]', + 'secret_extra_headers': 'list[str]', 'secret_ref': 'str', 'url': 'str' } attribute_map = { 'cert_config_map': 'certConfigMap', + 'extra_headers': 'extraHeaders', + 'secret_extra_headers': 'secretExtraHeaders', 'secret_ref': 'secretRef', 'url': 'url' } - def __init__(self, cert_config_map=None, secret_ref=None, url=None): + def __init__(self, cert_config_map=None, extra_headers=None, secret_extra_headers=None, secret_ref=None, url=None): """ V1beta1DataVolumeSourceHTTP - a model defined in Swagger """ self._cert_config_map = None + self._extra_headers = None + self._secret_extra_headers = None self._secret_ref = None self._url = None if cert_config_map is not None: self.cert_config_map = cert_config_map + if extra_headers is not None: + self.extra_headers = extra_headers + if secret_extra_headers is not None: + self.secret_extra_headers = secret_extra_headers if secret_ref is not None: self.secret_ref = secret_ref self.url = url @@ -80,6 +90,52 @@ def cert_config_map(self, cert_config_map): self._cert_config_map = cert_config_map + @property + def extra_headers(self): + """ + Gets the extra_headers of this V1beta1DataVolumeSourceHTTP. + ExtraHeaders is a list of strings containing extra headers to include with HTTP transfer requests + + :return: The extra_headers of this V1beta1DataVolumeSourceHTTP. + :rtype: list[str] + """ + return self._extra_headers + + @extra_headers.setter + def extra_headers(self, extra_headers): + """ + Sets the extra_headers of this V1beta1DataVolumeSourceHTTP. + ExtraHeaders is a list of strings containing extra headers to include with HTTP transfer requests + + :param extra_headers: The extra_headers of this V1beta1DataVolumeSourceHTTP. + :type: list[str] + """ + + self._extra_headers = extra_headers + + @property + def secret_extra_headers(self): + """ + Gets the secret_extra_headers of this V1beta1DataVolumeSourceHTTP. + SecretExtraHeaders is a list of Secret references, each containing an extra HTTP header that may include sensitive information + + :return: The secret_extra_headers of this V1beta1DataVolumeSourceHTTP. + :rtype: list[str] + """ + return self._secret_extra_headers + + @secret_extra_headers.setter + def secret_extra_headers(self, secret_extra_headers): + """ + Sets the secret_extra_headers of this V1beta1DataVolumeSourceHTTP. + SecretExtraHeaders is a list of Secret references, each containing an extra HTTP header that may include sensitive information + + :param secret_extra_headers: The secret_extra_headers of this V1beta1DataVolumeSourceHTTP. + :type: list[str] + """ + + self._secret_extra_headers = secret_extra_headers + @property def secret_ref(self): """ diff --git a/setup.py b/setup.py index 2ef46a26..795e1fa5 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.49.0-90-g49b9e4a71" +VERSION = "v0.49.0-277-gf16dd5109" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 90063615..b8e01f58 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.49.0-90-g49b9e4a71" +"packageVersion": "v0.49.0-277-gf16dd5109" } From 7704fbad743b443ffc6716171eb650a40fb5706f Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 3 Feb 2022 00:50:59 +0000 Subject: [PATCH 261/521] Client Python update by KubeVirt Prow build 1489028665256710144 --- README.md | 2 +- docs/V1Disk.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_disk.py | 30 +++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 46671c5e..215e1f25 100644 --- a/README.md +++ b/README.md @@ -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: v0.49.0-277-gf16dd5109 +- Package version: v0.50.0-rc.0-22-g4e65f1a1d - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Disk.md b/docs/V1Disk.md index abd17084..66bc6234 100644 --- a/docs/V1Disk.md +++ b/docs/V1Disk.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **lun** | [**V1LunTarget**](V1LunTarget.md) | Attach a volume as a LUN to the vmi. | [optional] **name** | **str** | Name is the device name | **serial** | **str** | Serial provides the ability to specify a serial number for the disk device. | [optional] +**shareable** | **bool** | If specified the disk is made sharable and multiple write from different VMs are permitted | [optional] **tag** | **str** | If specified, disk address and its tag will be provided to the guest via config drive metadata | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 5e77d5e6..178ef296 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.49.0-277-gf16dd5109" + release_note="Auto-generated client v0.50.0-rc.0-22-g4e65f1a1d" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index bbb51ae0..edc288b7 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.49.0-277-gf16dd5109/python' + self.user_agent = 'Swagger-Codegen/v0.50.0-rc.0-22-g4e65f1a1d/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index b2b20da8..53933811 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.49.0-277-gf16dd5109".\ + "SDK Package Version: v0.50.0-rc.0-22-g4e65f1a1d".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_disk.py b/kubevirt/models/v1_disk.py index d6fc8351..b341d929 100644 --- a/kubevirt/models/v1_disk.py +++ b/kubevirt/models/v1_disk.py @@ -42,6 +42,7 @@ class V1Disk(object): 'lun': 'V1LunTarget', 'name': 'str', 'serial': 'str', + 'shareable': 'bool', 'tag': 'str' } @@ -57,10 +58,11 @@ class V1Disk(object): 'lun': 'lun', 'name': 'name', 'serial': 'serial', + 'shareable': 'shareable', 'tag': 'tag' } - def __init__(self, block_size=None, boot_order=None, cache=None, cdrom=None, dedicated_io_thread=None, disk=None, floppy=None, io=None, lun=None, name=None, serial=None, tag=None): + def __init__(self, block_size=None, boot_order=None, cache=None, cdrom=None, dedicated_io_thread=None, disk=None, floppy=None, io=None, lun=None, name=None, serial=None, shareable=None, tag=None): """ V1Disk - a model defined in Swagger """ @@ -76,6 +78,7 @@ def __init__(self, block_size=None, boot_order=None, cache=None, cdrom=None, ded self._lun = None self._name = None self._serial = None + self._shareable = None self._tag = None if block_size is not None: @@ -99,6 +102,8 @@ def __init__(self, block_size=None, boot_order=None, cache=None, cdrom=None, ded self.name = name if serial is not None: self.serial = serial + if shareable is not None: + self.shareable = shareable if tag is not None: self.tag = tag @@ -357,6 +362,29 @@ def serial(self, serial): self._serial = serial + @property + def shareable(self): + """ + Gets the shareable of this V1Disk. + If specified the disk is made sharable and multiple write from different VMs are permitted + + :return: The shareable of this V1Disk. + :rtype: bool + """ + return self._shareable + + @shareable.setter + def shareable(self, shareable): + """ + Sets the shareable of this V1Disk. + If specified the disk is made sharable and multiple write from different VMs are permitted + + :param shareable: The shareable of this V1Disk. + :type: bool + """ + + self._shareable = shareable + @property def tag(self): """ diff --git a/setup.py b/setup.py index 795e1fa5..7bbb523e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.49.0-277-gf16dd5109" +VERSION = "v0.50.0-rc.0-22-g4e65f1a1d" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b8e01f58..825b1c55 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.49.0-277-gf16dd5109" +"packageVersion": "v0.50.0-rc.0-22-g4e65f1a1d" } From 40f0bf83ba9b51b4977464d9309b9df07b6c259e Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 16 Feb 2022 01:36:51 +0000 Subject: [PATCH 262/521] Client Python update by KubeVirt Prow build 1493751053831639040 --- README.md | 2 +- docs/V1KubeVirtConfiguration.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_kube_virt_configuration.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 215e1f25..96f32ac8 100644 --- a/README.md +++ b/README.md @@ -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: v0.50.0-rc.0-22-g4e65f1a1d +- Package version: v0.50.0-127-g66cedbfcc - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index 89e5be0f..0b2db065 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **default_runtime_class** | **str** | | [optional] **developer_configuration** | [**V1DeveloperConfiguration**](V1DeveloperConfiguration.md) | | [optional] **emulated_machines** | **list[str]** | | [optional] +**eviction_strategy** | **str** | EvictionStrategy defines at the cluster level if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain. If the VirtualMachineInstance specific field is set it overrides the cluster level one. | [optional] **handler_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] **image_pull_policy** | **str** | | [optional] **machine_type** | **str** | | [optional] diff --git a/git_push.sh b/git_push.sh index 178ef296..ce4d7edf 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.50.0-rc.0-22-g4e65f1a1d" + release_note="Auto-generated client v0.50.0-127-g66cedbfcc" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index edc288b7..da3ee322 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.50.0-rc.0-22-g4e65f1a1d/python' + self.user_agent = 'Swagger-Codegen/v0.50.0-127-g66cedbfcc/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 53933811..33e4d414 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.50.0-rc.0-22-g4e65f1a1d".\ + "SDK Package Version: v0.50.0-127-g66cedbfcc".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index f4c5bb5f..23162c13 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -38,6 +38,7 @@ class V1KubeVirtConfiguration(object): 'default_runtime_class': 'str', 'developer_configuration': 'V1DeveloperConfiguration', 'emulated_machines': 'list[str]', + 'eviction_strategy': 'str', 'handler_configuration': 'V1ReloadableComponentConfiguration', 'image_pull_policy': 'str', 'machine_type': 'str', @@ -64,6 +65,7 @@ class V1KubeVirtConfiguration(object): 'default_runtime_class': 'defaultRuntimeClass', 'developer_configuration': 'developerConfiguration', 'emulated_machines': 'emulatedMachines', + 'eviction_strategy': 'evictionStrategy', 'handler_configuration': 'handlerConfiguration', 'image_pull_policy': 'imagePullPolicy', 'machine_type': 'machineType', @@ -82,7 +84,7 @@ class V1KubeVirtConfiguration(object): 'webhook_configuration': 'webhookConfiguration' } - def __init__(self, api_configuration=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, handler_configuration=None, image_pull_policy=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, selinux_launcher_type=None, smbios=None, supported_guest_agent_versions=None, virtual_machine_instances_per_node=None, webhook_configuration=None): + def __init__(self, api_configuration=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, selinux_launcher_type=None, smbios=None, supported_guest_agent_versions=None, virtual_machine_instances_per_node=None, webhook_configuration=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ @@ -94,6 +96,7 @@ def __init__(self, api_configuration=None, controller_configuration=None, cpu_mo self._default_runtime_class = None self._developer_configuration = None self._emulated_machines = None + self._eviction_strategy = None self._handler_configuration = None self._image_pull_policy = None self._machine_type = None @@ -125,6 +128,8 @@ def __init__(self, api_configuration=None, controller_configuration=None, cpu_mo self.developer_configuration = developer_configuration if emulated_machines is not None: self.emulated_machines = emulated_machines + if eviction_strategy is not None: + self.eviction_strategy = eviction_strategy if handler_configuration is not None: self.handler_configuration = handler_configuration if image_pull_policy is not None: @@ -305,6 +310,29 @@ def emulated_machines(self, emulated_machines): self._emulated_machines = emulated_machines + @property + def eviction_strategy(self): + """ + Gets the eviction_strategy of this V1KubeVirtConfiguration. + EvictionStrategy defines at the cluster level if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain. If the VirtualMachineInstance specific field is set it overrides the cluster level one. + + :return: The eviction_strategy of this V1KubeVirtConfiguration. + :rtype: str + """ + return self._eviction_strategy + + @eviction_strategy.setter + def eviction_strategy(self, eviction_strategy): + """ + Sets the eviction_strategy of this V1KubeVirtConfiguration. + EvictionStrategy defines at the cluster level if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain. If the VirtualMachineInstance specific field is set it overrides the cluster level one. + + :param eviction_strategy: The eviction_strategy of this V1KubeVirtConfiguration. + :type: str + """ + + self._eviction_strategy = eviction_strategy + @property def handler_configuration(self): """ diff --git a/setup.py b/setup.py index 7bbb523e..70b72f89 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.50.0-rc.0-22-g4e65f1a1d" +VERSION = "v0.50.0-127-g66cedbfcc" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 825b1c55..7c564e1e 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.50.0-rc.0-22-g4e65f1a1d" +"packageVersion": "v0.50.0-127-g66cedbfcc" } From 51fedb207ef6ed08b05b84f971db3d52a1b20ba4 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 25 Feb 2022 23:00:23 +0000 Subject: [PATCH 263/521] Client Python update by KubeVirt Prow build 1497336597467631616 --- README.md | 3 +- docs/V1Devices.md | 2 +- docs/V1Disk.md | 1 - docs/V1FloppyTarget.md | 11 -- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 - kubevirt/__init__.py | 1 - kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 - kubevirt/models/v1_devices.py | 4 +- kubevirt/models/v1_disk.py | 30 +----- kubevirt/models/v1_floppy_target.py | 153 ---------------------------- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_floppy_target.py | 44 -------- 16 files changed, 10 insertions(+), 253 deletions(-) delete mode 100644 docs/V1FloppyTarget.md delete mode 100644 kubevirt/models/v1_floppy_target.py delete mode 100644 test/test_v1_floppy_target.py diff --git a/README.md b/README.md index 96f32ac8..4e8d3fcf 100644 --- a/README.md +++ b/README.md @@ -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: v0.50.0-127-g66cedbfcc +- Package version: v0.50.0-173-g2eb856983 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -381,7 +381,6 @@ Class | Method | HTTP request | Description - [V1Firmware](docs/V1Firmware.md) - [V1Flags](docs/V1Flags.md) - [V1FlavorMatcher](docs/V1FlavorMatcher.md) - - [V1FloppyTarget](docs/V1FloppyTarget.md) - [V1FreezeUnfreezeTimeout](docs/V1FreezeUnfreezeTimeout.md) - [V1GPU](docs/V1GPU.md) - [V1GenerationStatus](docs/V1GenerationStatus.md) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index 8063ed3f..2555b671 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **block_multi_queue** | **bool** | Whether or not to enable virtio multi-queue for block devices. Defaults to false. | [optional] **client_passthrough** | [**V1ClientPassthroughDevices**](V1ClientPassthroughDevices.md) | To configure and access client devices such as redirecting USB | [optional] **disable_hotplug** | **bool** | DisableHotplug disabled the ability to hotplug disks. | [optional] -**disks** | [**list[V1Disk]**](V1Disk.md) | Disks describes disks, cdroms, floppy and luns which are connected to the vmi. | [optional] +**disks** | [**list[V1Disk]**](V1Disk.md) | Disks describes disks, cdroms and luns which are connected to the vmi. | [optional] **filesystems** | [**list[V1Filesystem]**](V1Filesystem.md) | Filesystems describes filesystem which is connected to the vmi. | [optional] **gpus** | [**list[V1GPU]**](V1GPU.md) | Whether to attach a GPU device to the vmi. | [optional] **host_devices** | [**list[V1HostDevice]**](V1HostDevice.md) | Whether to attach a host device to the vmi. | [optional] diff --git a/docs/V1Disk.md b/docs/V1Disk.md index 66bc6234..bb20a9cd 100644 --- a/docs/V1Disk.md +++ b/docs/V1Disk.md @@ -9,7 +9,6 @@ Name | Type | Description | Notes **cdrom** | [**V1CDRomTarget**](V1CDRomTarget.md) | Attach a volume as a cdrom to the vmi. | [optional] **dedicated_io_thread** | **bool** | dedicatedIOThread indicates this disk should have an exclusive IO Thread. Enabling this implies useIOThreads = true. Defaults to false. | [optional] **disk** | [**V1DiskTarget**](V1DiskTarget.md) | Attach a volume as a disk to the vmi. | [optional] -**floppy** | [**V1FloppyTarget**](V1FloppyTarget.md) | Attach a volume as a floppy to the vmi. | [optional] **io** | **str** | IO specifies which QEMU disk IO mode should be used. Supported values are: native, default, threads. | [optional] **lun** | [**V1LunTarget**](V1LunTarget.md) | Attach a volume as a LUN to the vmi. | [optional] **name** | **str** | Name is the device name | diff --git a/docs/V1FloppyTarget.md b/docs/V1FloppyTarget.md deleted file mode 100644 index e6677666..00000000 --- a/docs/V1FloppyTarget.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1FloppyTarget - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**readonly** | **bool** | ReadOnly. Defaults to false. | [optional] -**tray** | **str** | Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\". Defaults to closed. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/git_push.sh b/git_push.sh index ce4d7edf..b348c627 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.50.0-127-g66cedbfcc" + release_note="Auto-generated client v0.50.0-173-g2eb856983" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index b776b5d5..b10ba205 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -327,9 +327,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_flavor_matcher.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_flavor_matcher.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1FlavorMatcher.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_floppy_target.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_floppy_target.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1FloppyTarget.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_freeze_unfreeze_timeout.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_freeze_unfreeze_timeout.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1FreezeUnfreezeTimeout.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index eaf0b38e..161abfb4 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -116,7 +116,6 @@ from .models.v1_firmware import V1Firmware from .models.v1_flags import V1Flags from .models.v1_flavor_matcher import V1FlavorMatcher -from .models.v1_floppy_target import V1FloppyTarget from .models.v1_freeze_unfreeze_timeout import V1FreezeUnfreezeTimeout from .models.v1_gpu import V1GPU from .models.v1_generation_status import V1GenerationStatus diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index da3ee322..2dfb828d 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.50.0-127-g66cedbfcc/python' + self.user_agent = 'Swagger-Codegen/v0.50.0-173-g2eb856983/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 33e4d414..43641ec5 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.50.0-127-g66cedbfcc".\ + "SDK Package Version: v0.50.0-173-g2eb856983".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index bc936008..ad5bfb54 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -116,7 +116,6 @@ from .v1_firmware import V1Firmware from .v1_flags import V1Flags from .v1_flavor_matcher import V1FlavorMatcher -from .v1_floppy_target import V1FloppyTarget from .v1_freeze_unfreeze_timeout import V1FreezeUnfreezeTimeout from .v1_gpu import V1GPU from .v1_generation_status import V1GenerationStatus diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index c587f510..4648db9d 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -298,7 +298,7 @@ def disable_hotplug(self, disable_hotplug): def disks(self): """ Gets the disks of this V1Devices. - Disks describes disks, cdroms, floppy and luns which are connected to the vmi. + Disks describes disks, cdroms and luns which are connected to the vmi. :return: The disks of this V1Devices. :rtype: list[V1Disk] @@ -309,7 +309,7 @@ def disks(self): def disks(self, disks): """ Sets the disks of this V1Devices. - Disks describes disks, cdroms, floppy and luns which are connected to the vmi. + Disks describes disks, cdroms and luns which are connected to the vmi. :param disks: The disks of this V1Devices. :type: list[V1Disk] diff --git a/kubevirt/models/v1_disk.py b/kubevirt/models/v1_disk.py index b341d929..19b2880b 100644 --- a/kubevirt/models/v1_disk.py +++ b/kubevirt/models/v1_disk.py @@ -37,7 +37,6 @@ class V1Disk(object): 'cdrom': 'V1CDRomTarget', 'dedicated_io_thread': 'bool', 'disk': 'V1DiskTarget', - 'floppy': 'V1FloppyTarget', 'io': 'str', 'lun': 'V1LunTarget', 'name': 'str', @@ -53,7 +52,6 @@ class V1Disk(object): 'cdrom': 'cdrom', 'dedicated_io_thread': 'dedicatedIOThread', 'disk': 'disk', - 'floppy': 'floppy', 'io': 'io', 'lun': 'lun', 'name': 'name', @@ -62,7 +60,7 @@ class V1Disk(object): 'tag': 'tag' } - def __init__(self, block_size=None, boot_order=None, cache=None, cdrom=None, dedicated_io_thread=None, disk=None, floppy=None, io=None, lun=None, name=None, serial=None, shareable=None, tag=None): + def __init__(self, block_size=None, boot_order=None, cache=None, cdrom=None, dedicated_io_thread=None, disk=None, io=None, lun=None, name=None, serial=None, shareable=None, tag=None): """ V1Disk - a model defined in Swagger """ @@ -73,7 +71,6 @@ def __init__(self, block_size=None, boot_order=None, cache=None, cdrom=None, ded self._cdrom = None self._dedicated_io_thread = None self._disk = None - self._floppy = None self._io = None self._lun = None self._name = None @@ -93,8 +90,6 @@ def __init__(self, block_size=None, boot_order=None, cache=None, cdrom=None, ded self.dedicated_io_thread = dedicated_io_thread if disk is not None: self.disk = disk - if floppy is not None: - self.floppy = floppy if io is not None: self.io = io if lun is not None: @@ -245,29 +240,6 @@ def disk(self, disk): self._disk = disk - @property - def floppy(self): - """ - Gets the floppy of this V1Disk. - Attach a volume as a floppy to the vmi. - - :return: The floppy of this V1Disk. - :rtype: V1FloppyTarget - """ - return self._floppy - - @floppy.setter - def floppy(self, floppy): - """ - Sets the floppy of this V1Disk. - Attach a volume as a floppy to the vmi. - - :param floppy: The floppy of this V1Disk. - :type: V1FloppyTarget - """ - - self._floppy = floppy - @property def io(self): """ diff --git a/kubevirt/models/v1_floppy_target.py b/kubevirt/models/v1_floppy_target.py deleted file mode 100644 index 597dbe5e..00000000 --- a/kubevirt/models/v1_floppy_target.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1FloppyTarget(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'readonly': 'bool', - 'tray': 'str' - } - - attribute_map = { - 'readonly': 'readonly', - 'tray': 'tray' - } - - def __init__(self, readonly=None, tray=None): - """ - V1FloppyTarget - a model defined in Swagger - """ - - self._readonly = None - self._tray = None - - if readonly is not None: - self.readonly = readonly - if tray is not None: - self.tray = tray - - @property - def readonly(self): - """ - Gets the readonly of this V1FloppyTarget. - ReadOnly. Defaults to false. - - :return: The readonly of this V1FloppyTarget. - :rtype: bool - """ - return self._readonly - - @readonly.setter - def readonly(self, readonly): - """ - Sets the readonly of this V1FloppyTarget. - ReadOnly. Defaults to false. - - :param readonly: The readonly of this V1FloppyTarget. - :type: bool - """ - - self._readonly = readonly - - @property - def tray(self): - """ - Gets the tray of this V1FloppyTarget. - Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\". Defaults to closed. - - :return: The tray of this V1FloppyTarget. - :rtype: str - """ - return self._tray - - @tray.setter - def tray(self, tray): - """ - Sets the tray of this V1FloppyTarget. - Tray indicates if the tray of the device is open or closed. Allowed values are \"open\" and \"closed\". Defaults to closed. - - :param tray: The tray of this V1FloppyTarget. - :type: str - """ - - self._tray = tray - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1FloppyTarget): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/setup.py b/setup.py index 70b72f89..4cf3dbd9 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.50.0-127-g66cedbfcc" +VERSION = "v0.50.0-173-g2eb856983" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 7c564e1e..b376ff2d 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.50.0-127-g66cedbfcc" +"packageVersion": "v0.50.0-173-g2eb856983" } diff --git a/test/test_v1_floppy_target.py b/test/test_v1_floppy_target.py deleted file mode 100644 index 1c7bdac4..00000000 --- a/test/test_v1_floppy_target.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_floppy_target import V1FloppyTarget - - -class TestV1FloppyTarget(unittest.TestCase): - """ V1FloppyTarget unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1FloppyTarget(self): - """ - Test V1FloppyTarget - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_floppy_target.V1FloppyTarget() - pass - - -if __name__ == '__main__': - unittest.main() From 58d967f4141f3748fb9382b06877e6a8fe1e98e9 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 4 Mar 2022 05:04:10 +0000 Subject: [PATCH 264/521] Client Python update by KubeVirt Prow build 1499602584661397504 --- README.md | 2 +- docs/V1VirtualMachineInstanceStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1_virtual_machine_instance_status.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 4e8d3fcf..4c3ab307 100644 --- a/README.md +++ b/README.md @@ -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: v0.50.0-173-g2eb856983 +- Package version: v0.51.0-rc.0-38-g67fc3608d - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index 9f7500c9..4ef988fe 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **phase_transition_timestamps** | [**list[V1VirtualMachineInstancePhaseTransitionTimestamp]**](V1VirtualMachineInstancePhaseTransitionTimestamp.md) | PhaseTransitionTimestamp is the timestamp of when the last phase change occurred | [optional] **qos_class** | **str** | The Quality of Service (QOS) classification assigned to the virtual machine instance based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md | [optional] **reason** | **str** | A brief CamelCase message indicating details about why the VMI is in this state. e.g. 'NodeUnresponsive' | [optional] +**runtime_user** | **int** | RuntimeUser is used to determine what user will be used in launcher | [optional] **topology_hints** | [**V1TopologyHints**](V1TopologyHints.md) | | [optional] **virtual_machine_revision_name** | **str** | VirtualMachineRevisionName is used to get the vm revision of the vmi when doing an online vm snapshot | [optional] **volume_status** | [**list[V1VolumeStatus]**](V1VolumeStatus.md) | VolumeStatus contains the statuses of all the volumes | [optional] diff --git a/git_push.sh b/git_push.sh index b348c627..bccf8199 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.50.0-173-g2eb856983" + release_note="Auto-generated client v0.51.0-rc.0-38-g67fc3608d" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 2dfb828d..f5735239 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.50.0-173-g2eb856983/python' + self.user_agent = 'Swagger-Codegen/v0.51.0-rc.0-38-g67fc3608d/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 43641ec5..9e4cb024 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.50.0-173-g2eb856983".\ + "SDK Package Version: v0.51.0-rc.0-38-g67fc3608d".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index 13922360..db3771ce 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -46,6 +46,7 @@ class V1VirtualMachineInstanceStatus(object): 'phase_transition_timestamps': 'list[V1VirtualMachineInstancePhaseTransitionTimestamp]', 'qos_class': 'str', 'reason': 'str', + 'runtime_user': 'int', 'topology_hints': 'V1TopologyHints', 'virtual_machine_revision_name': 'str', 'volume_status': 'list[V1VolumeStatus]' @@ -67,12 +68,13 @@ class V1VirtualMachineInstanceStatus(object): 'phase_transition_timestamps': 'phaseTransitionTimestamps', 'qos_class': 'qosClass', 'reason': 'reason', + 'runtime_user': 'runtimeUser', 'topology_hints': 'topologyHints', 'virtual_machine_revision_name': 'virtualMachineRevisionName', 'volume_status': 'volumeStatus' } - def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): + def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ @@ -92,6 +94,7 @@ def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, self._phase_transition_timestamps = None self._qos_class = None self._reason = None + self._runtime_user = None self._topology_hints = None self._virtual_machine_revision_name = None self._volume_status = None @@ -126,6 +129,8 @@ def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, self.qos_class = qos_class if reason is not None: self.reason = reason + if runtime_user is not None: + self.runtime_user = runtime_user if topology_hints is not None: self.topology_hints = topology_hints if virtual_machine_revision_name is not None: @@ -478,6 +483,29 @@ def reason(self, reason): self._reason = reason + @property + def runtime_user(self): + """ + Gets the runtime_user of this V1VirtualMachineInstanceStatus. + RuntimeUser is used to determine what user will be used in launcher + + :return: The runtime_user of this V1VirtualMachineInstanceStatus. + :rtype: int + """ + return self._runtime_user + + @runtime_user.setter + def runtime_user(self, runtime_user): + """ + Sets the runtime_user of this V1VirtualMachineInstanceStatus. + RuntimeUser is used to determine what user will be used in launcher + + :param runtime_user: The runtime_user of this V1VirtualMachineInstanceStatus. + :type: int + """ + + self._runtime_user = runtime_user + @property def topology_hints(self): """ diff --git a/setup.py b/setup.py index 4cf3dbd9..c2ece88a 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.50.0-173-g2eb856983" +VERSION = "v0.51.0-rc.0-38-g67fc3608d" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b376ff2d..aa4b71fa 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.50.0-173-g2eb856983" +"packageVersion": "v0.51.0-rc.0-38-g67fc3608d" } From 1f939bc21fb8288d958eb3a7d5cf58b136e75d0f Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Sat, 12 Mar 2022 05:21:06 +0000 Subject: [PATCH 265/521] Client Python update by KubeVirt Prow build 1502505756765720576 --- README.md | 2 +- docs/V1KubeVirtStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_kube_virt_status.py | 28 +++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 34 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 4c3ab307..8e7672e7 100644 --- a/README.md +++ b/README.md @@ -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: v0.51.0-rc.0-38-g67fc3608d +- Package version: v0.51.0-114-g46e7c27c7 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1KubeVirtStatus.md b/docs/V1KubeVirtStatus.md index 82987d7f..0dbdb370 100644 --- a/docs/V1KubeVirtStatus.md +++ b/docs/V1KubeVirtStatus.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **generations** | [**list[V1GenerationStatus]**](V1GenerationStatus.md) | | [optional] **observed_deployment_config** | **str** | | [optional] **observed_deployment_id** | **str** | | [optional] +**observed_generation** | **int** | | [optional] **observed_kube_virt_registry** | **str** | | [optional] **observed_kube_virt_version** | **str** | | [optional] **operator_version** | **str** | | [optional] diff --git a/git_push.sh b/git_push.sh index bccf8199..86908392 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.51.0-rc.0-38-g67fc3608d" + release_note="Auto-generated client v0.51.0-114-g46e7c27c7" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index f5735239..ff9a99c7 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.51.0-rc.0-38-g67fc3608d/python' + self.user_agent = 'Swagger-Codegen/v0.51.0-114-g46e7c27c7/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 9e4cb024..6fb9676e 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.51.0-rc.0-38-g67fc3608d".\ + "SDK Package Version: v0.51.0-114-g46e7c27c7".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_kube_virt_status.py b/kubevirt/models/v1_kube_virt_status.py index 0be12d1a..b26e9ea9 100644 --- a/kubevirt/models/v1_kube_virt_status.py +++ b/kubevirt/models/v1_kube_virt_status.py @@ -35,6 +35,7 @@ class V1KubeVirtStatus(object): 'generations': 'list[V1GenerationStatus]', 'observed_deployment_config': 'str', 'observed_deployment_id': 'str', + 'observed_generation': 'int', 'observed_kube_virt_registry': 'str', 'observed_kube_virt_version': 'str', 'operator_version': 'str', @@ -51,6 +52,7 @@ class V1KubeVirtStatus(object): 'generations': 'generations', 'observed_deployment_config': 'observedDeploymentConfig', 'observed_deployment_id': 'observedDeploymentID', + 'observed_generation': 'observedGeneration', 'observed_kube_virt_registry': 'observedKubeVirtRegistry', 'observed_kube_virt_version': 'observedKubeVirtVersion', 'operator_version': 'operatorVersion', @@ -62,7 +64,7 @@ class V1KubeVirtStatus(object): 'target_kube_virt_version': 'targetKubeVirtVersion' } - def __init__(self, conditions=None, generations=None, observed_deployment_config=None, observed_deployment_id=None, observed_kube_virt_registry=None, observed_kube_virt_version=None, operator_version=None, outdated_virtual_machine_instance_workloads=None, phase=None, target_deployment_config=None, target_deployment_id=None, target_kube_virt_registry=None, target_kube_virt_version=None): + def __init__(self, conditions=None, generations=None, observed_deployment_config=None, observed_deployment_id=None, observed_generation=None, observed_kube_virt_registry=None, observed_kube_virt_version=None, operator_version=None, outdated_virtual_machine_instance_workloads=None, phase=None, target_deployment_config=None, target_deployment_id=None, target_kube_virt_registry=None, target_kube_virt_version=None): """ V1KubeVirtStatus - a model defined in Swagger """ @@ -71,6 +73,7 @@ def __init__(self, conditions=None, generations=None, observed_deployment_config self._generations = None self._observed_deployment_config = None self._observed_deployment_id = None + self._observed_generation = None self._observed_kube_virt_registry = None self._observed_kube_virt_version = None self._operator_version = None @@ -89,6 +92,8 @@ def __init__(self, conditions=None, generations=None, observed_deployment_config self.observed_deployment_config = observed_deployment_config if observed_deployment_id is not None: self.observed_deployment_id = observed_deployment_id + if observed_generation is not None: + self.observed_generation = observed_generation if observed_kube_virt_registry is not None: self.observed_kube_virt_registry = observed_kube_virt_registry if observed_kube_virt_version is not None: @@ -192,6 +197,27 @@ def observed_deployment_id(self, observed_deployment_id): self._observed_deployment_id = observed_deployment_id + @property + def observed_generation(self): + """ + Gets the observed_generation of this V1KubeVirtStatus. + + :return: The observed_generation of this V1KubeVirtStatus. + :rtype: int + """ + return self._observed_generation + + @observed_generation.setter + def observed_generation(self, observed_generation): + """ + Sets the observed_generation of this V1KubeVirtStatus. + + :param observed_generation: The observed_generation of this V1KubeVirtStatus. + :type: int + """ + + self._observed_generation = observed_generation + @property def observed_kube_virt_registry(self): """ diff --git a/setup.py b/setup.py index c2ece88a..6469f491 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.51.0-rc.0-38-g67fc3608d" +VERSION = "v0.51.0-114-g46e7c27c7" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index aa4b71fa..58132066 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.51.0-rc.0-38-g67fc3608d" +"packageVersion": "v0.51.0-114-g46e7c27c7" } From 9a8bd09ec42fa6f2c1c7634679d73f513cc0b5c2 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 29 Mar 2022 16:58:34 +0000 Subject: [PATCH 266/521] Client Python update by KubeVirt Prow build 1508841032312164352 --- README.md | 2 +- docs/V1ComponentConfig.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_component_config.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 8e7672e7..11a80a57 100644 --- a/README.md +++ b/README.md @@ -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: v0.51.0-114-g46e7c27c7 +- Package version: v0.51.0-298-g28a4fff2e - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1ComponentConfig.md b/docs/V1ComponentConfig.md index 74305529..55842c5a 100644 --- a/docs/V1ComponentConfig.md +++ b/docs/V1ComponentConfig.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **node_placement** | [**V1NodePlacement**](V1NodePlacement.md) | nodePlacement describes scheduling configuration for specific KubeVirt components | [optional] -**replicas** | **int** | replicas indicates how many replicas should be created for each KubeVirt infrastructure component (like virt-api or virt-controller). Defaults to 2. | [optional] +**replicas** | **int** | replicas indicates how many replicas should be created for each KubeVirt infrastructure component (like virt-api or virt-controller). Defaults to 2. WARNING: this is an advanced feature that prevents auto-scaling for core kubevirt components. Please use with caution! | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 86908392..fd4d4205 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.51.0-114-g46e7c27c7" + release_note="Auto-generated client v0.51.0-298-g28a4fff2e" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index ff9a99c7..3107f752 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.51.0-114-g46e7c27c7/python' + self.user_agent = 'Swagger-Codegen/v0.51.0-298-g28a4fff2e/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 6fb9676e..502f466d 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.51.0-114-g46e7c27c7".\ + "SDK Package Version: v0.51.0-298-g28a4fff2e".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_component_config.py b/kubevirt/models/v1_component_config.py index 68dc6150..0cc37092 100644 --- a/kubevirt/models/v1_component_config.py +++ b/kubevirt/models/v1_component_config.py @@ -80,7 +80,7 @@ def node_placement(self, node_placement): def replicas(self): """ Gets the replicas of this V1ComponentConfig. - replicas indicates how many replicas should be created for each KubeVirt infrastructure component (like virt-api or virt-controller). Defaults to 2. + replicas indicates how many replicas should be created for each KubeVirt infrastructure component (like virt-api or virt-controller). Defaults to 2. WARNING: this is an advanced feature that prevents auto-scaling for core kubevirt components. Please use with caution! :return: The replicas of this V1ComponentConfig. :rtype: int @@ -91,7 +91,7 @@ def replicas(self): def replicas(self, replicas): """ Sets the replicas of this V1ComponentConfig. - replicas indicates how many replicas should be created for each KubeVirt infrastructure component (like virt-api or virt-controller). Defaults to 2. + replicas indicates how many replicas should be created for each KubeVirt infrastructure component (like virt-api or virt-controller). Defaults to 2. WARNING: this is an advanced feature that prevents auto-scaling for core kubevirt components. Please use with caution! :param replicas: The replicas of this V1ComponentConfig. :type: int diff --git a/setup.py b/setup.py index 6469f491..4c76f150 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.51.0-114-g46e7c27c7" +VERSION = "v0.51.0-298-g28a4fff2e" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 58132066..e6d0663e 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.51.0-114-g46e7c27c7" +"packageVersion": "v0.51.0-298-g28a4fff2e" } From 91c2f83aa84ca9ac320564225bbd6b8fc02b185c Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 5 Apr 2022 15:31:02 +0000 Subject: [PATCH 267/521] Client Python update by KubeVirt Prow build 1511351833078009856 --- README.md | 2 +- docs/V1KubeVirtSpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_kube_virt_spec.py | 30 +++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 11a80a57..ea8b6163 100644 --- a/README.md +++ b/README.md @@ -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: v0.51.0-298-g28a4fff2e +- Package version: v0.52.0-rc.0-49-g9d2b473cc - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1KubeVirtSpec.md b/docs/V1KubeVirtSpec.md index c727146e..da12251c 100644 --- a/docs/V1KubeVirtSpec.md +++ b/docs/V1KubeVirtSpec.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **product_component** | **str** | Designate the apps.kubevirt.io/component label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductComponent is not specified, the component label default value is kubevirt. | [optional] **product_name** | **str** | Designate the apps.kubevirt.io/part-of label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductName is not specified, the part-of label will be omitted. | [optional] **product_version** | **str** | Designate the apps.kubevirt.io/version label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductVersion is not specified, KubeVirt's version will be used. | [optional] +**service_monitor_namespace** | **str** | The namespace the service monitor will be deployed When ServiceMonitorNamespace is set, then we'll install the service monitor object in that namespace otherwise we will use the monitoring namespace. | [optional] **uninstall_strategy** | **str** | Specifies if kubevirt can be deleted if workloads are still present. This is mainly a precaution to avoid accidental data loss | [optional] **workload_update_strategy** | [**V1KubeVirtWorkloadUpdateStrategy**](V1KubeVirtWorkloadUpdateStrategy.md) | WorkloadUpdateStrategy defines at the cluster level how to handle automated workload updates | [optional] **workloads** | [**V1ComponentConfig**](V1ComponentConfig.md) | selectors and tolerations that should apply to KubeVirt workloads | [optional] diff --git a/git_push.sh b/git_push.sh index fd4d4205..7ae92f2e 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.51.0-298-g28a4fff2e" + release_note="Auto-generated client v0.52.0-rc.0-49-g9d2b473cc" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 3107f752..7fac2333 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.51.0-298-g28a4fff2e/python' + self.user_agent = 'Swagger-Codegen/v0.52.0-rc.0-49-g9d2b473cc/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 502f466d..ac4a4d9b 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.51.0-298-g28a4fff2e".\ + "SDK Package Version: v0.52.0-rc.0-49-g9d2b473cc".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_kube_virt_spec.py b/kubevirt/models/v1_kube_virt_spec.py index 1f5bfb1a..4aa4fa16 100644 --- a/kubevirt/models/v1_kube_virt_spec.py +++ b/kubevirt/models/v1_kube_virt_spec.py @@ -43,6 +43,7 @@ class V1KubeVirtSpec(object): 'product_component': 'str', 'product_name': 'str', 'product_version': 'str', + 'service_monitor_namespace': 'str', 'uninstall_strategy': 'str', 'workload_update_strategy': 'V1KubeVirtWorkloadUpdateStrategy', 'workloads': 'V1ComponentConfig' @@ -61,12 +62,13 @@ class V1KubeVirtSpec(object): 'product_component': 'productComponent', 'product_name': 'productName', 'product_version': 'productVersion', + 'service_monitor_namespace': 'serviceMonitorNamespace', 'uninstall_strategy': 'uninstallStrategy', 'workload_update_strategy': 'workloadUpdateStrategy', 'workloads': 'workloads' } - def __init__(self, certificate_rotate_strategy=None, configuration=None, customize_components=None, image_pull_policy=None, image_registry=None, image_tag=None, infra=None, monitor_account=None, monitor_namespace=None, product_component=None, product_name=None, product_version=None, uninstall_strategy=None, workload_update_strategy=None, workloads=None): + def __init__(self, certificate_rotate_strategy=None, configuration=None, customize_components=None, image_pull_policy=None, image_registry=None, image_tag=None, infra=None, monitor_account=None, monitor_namespace=None, product_component=None, product_name=None, product_version=None, service_monitor_namespace=None, uninstall_strategy=None, workload_update_strategy=None, workloads=None): """ V1KubeVirtSpec - a model defined in Swagger """ @@ -83,6 +85,7 @@ def __init__(self, certificate_rotate_strategy=None, configuration=None, customi self._product_component = None self._product_name = None self._product_version = None + self._service_monitor_namespace = None self._uninstall_strategy = None self._workload_update_strategy = None self._workloads = None @@ -111,6 +114,8 @@ def __init__(self, certificate_rotate_strategy=None, configuration=None, customi self.product_name = product_name if product_version is not None: self.product_version = product_version + if service_monitor_namespace is not None: + self.service_monitor_namespace = service_monitor_namespace if uninstall_strategy is not None: self.uninstall_strategy = uninstall_strategy if workload_update_strategy is not None: @@ -390,6 +395,29 @@ def product_version(self, product_version): self._product_version = product_version + @property + def service_monitor_namespace(self): + """ + Gets the service_monitor_namespace of this V1KubeVirtSpec. + The namespace the service monitor will be deployed When ServiceMonitorNamespace is set, then we'll install the service monitor object in that namespace otherwise we will use the monitoring namespace. + + :return: The service_monitor_namespace of this V1KubeVirtSpec. + :rtype: str + """ + return self._service_monitor_namespace + + @service_monitor_namespace.setter + def service_monitor_namespace(self, service_monitor_namespace): + """ + Sets the service_monitor_namespace of this V1KubeVirtSpec. + The namespace the service monitor will be deployed When ServiceMonitorNamespace is set, then we'll install the service monitor object in that namespace otherwise we will use the monitoring namespace. + + :param service_monitor_namespace: The service_monitor_namespace of this V1KubeVirtSpec. + :type: str + """ + + self._service_monitor_namespace = service_monitor_namespace + @property def uninstall_strategy(self): """ diff --git a/setup.py b/setup.py index 4c76f150..e8d1b8ea 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.51.0-298-g28a4fff2e" +VERSION = "v0.52.0-rc.0-49-g9d2b473cc" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index e6d0663e..a91d3ad1 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.51.0-298-g28a4fff2e" +"packageVersion": "v0.52.0-rc.0-49-g9d2b473cc" } From 218264a708f530df008cead64ea4b9272083d11c Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 6 Apr 2022 20:45:55 +0000 Subject: [PATCH 268/521] Client Python update by KubeVirt Prow build 1511797935111671808 --- README.md | 3 +- docs/V1Devices.md | 1 + docs/V1TPMDevice.md | 9 +++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_devices.py | 30 +++++++++- kubevirt/models/v1_tpm_device.py | 99 ++++++++++++++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_tpm_device.py | 44 ++++++++++++++ 14 files changed, 194 insertions(+), 7 deletions(-) create mode 100644 docs/V1TPMDevice.md create mode 100644 kubevirt/models/v1_tpm_device.py create mode 100644 test/test_v1_tpm_device.py diff --git a/README.md b/README.md index ea8b6163..96f1685b 100644 --- a/README.md +++ b/README.md @@ -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: v0.52.0-rc.0-49-g9d2b473cc +- Package version: v0.52.0-rc.0-72-g0db065c1b - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -461,6 +461,7 @@ Class | Method | HTTP request | Description - [V1StopOptions](docs/V1StopOptions.md) - [V1SyNICTimer](docs/V1SyNICTimer.md) - [V1SysprepSource](docs/V1SysprepSource.md) + - [V1TPMDevice](docs/V1TPMDevice.md) - [V1Timer](docs/V1Timer.md) - [V1TokenBucketRateLimiter](docs/V1TokenBucketRateLimiter.md) - [V1TopologyHints](docs/V1TopologyHints.md) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index 2555b671..ad89dee0 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -19,6 +19,7 @@ Name | Type | Description | Notes **network_interface_multiqueue** | **bool** | If specified, virtual network interfaces configured with a virtio bus will also enable the vhost multiqueue feature for network devices. The number of queues created depends on additional factors of the VirtualMachineInstance, like the number of guest CPUs. | [optional] **rng** | [**V1Rng**](V1Rng.md) | Whether to have random number generator from host | [optional] **sound** | [**V1SoundDevice**](V1SoundDevice.md) | Whether to emulate a sound device. | [optional] +**tpm** | [**V1TPMDevice**](V1TPMDevice.md) | Whether to emulate a TPM device. | [optional] **use_virtio_transitional** | **bool** | Fall back to legacy virtio 0.9 support if virtio bus is selected on devices. This is helpful for old machines like CentOS6 or RHEL6 which do not understand virtio_non_transitional (virtio 1.0). | [optional] **watchdog** | [**V1Watchdog**](V1Watchdog.md) | Watchdog describes a watchdog device which can be added to the vmi. | [optional] diff --git a/docs/V1TPMDevice.md b/docs/V1TPMDevice.md new file mode 100644 index 00000000..4230d334 --- /dev/null +++ b/docs/V1TPMDevice.md @@ -0,0 +1,9 @@ +# V1TPMDevice + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 7ae92f2e..310767d2 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.52.0-rc.0-49-g9d2b473cc" + release_note="Auto-generated client v0.52.0-rc.0-72-g0db065c1b" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index b10ba205..8ddcb412 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -567,6 +567,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_sysprep_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sysprep_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SysprepSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_tpm_device.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_tpm_device.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1TPMDevice.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Timer.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 161abfb4..22973a71 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -196,6 +196,7 @@ from .models.v1_stop_options import V1StopOptions from .models.v1_sy_nic_timer import V1SyNICTimer from .models.v1_sysprep_source import V1SysprepSource +from .models.v1_tpm_device import V1TPMDevice from .models.v1_timer import V1Timer from .models.v1_token_bucket_rate_limiter import V1TokenBucketRateLimiter from .models.v1_topology_hints import V1TopologyHints diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 7fac2333..db3322b5 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.52.0-rc.0-49-g9d2b473cc/python' + self.user_agent = 'Swagger-Codegen/v0.52.0-rc.0-72-g0db065c1b/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index ac4a4d9b..ef459ad5 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.52.0-rc.0-49-g9d2b473cc".\ + "SDK Package Version: v0.52.0-rc.0-72-g0db065c1b".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index ad5bfb54..7825e6c1 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -196,6 +196,7 @@ from .v1_stop_options import V1StopOptions from .v1_sy_nic_timer import V1SyNICTimer from .v1_sysprep_source import V1SysprepSource +from .v1_tpm_device import V1TPMDevice from .v1_timer import V1Timer from .v1_token_bucket_rate_limiter import V1TokenBucketRateLimiter from .v1_topology_hints import V1TopologyHints diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index 4648db9d..f0521979 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -47,6 +47,7 @@ class V1Devices(object): 'network_interface_multiqueue': 'bool', 'rng': 'V1Rng', 'sound': 'V1SoundDevice', + 'tpm': 'V1TPMDevice', 'use_virtio_transitional': 'bool', 'watchdog': 'V1Watchdog' } @@ -68,11 +69,12 @@ class V1Devices(object): 'network_interface_multiqueue': 'networkInterfaceMultiqueue', 'rng': 'rng', 'sound': 'sound', + 'tpm': 'tpm', 'use_virtio_transitional': 'useVirtioTransitional', 'watchdog': 'watchdog' } - def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, autoattach_pod_interface=None, autoattach_serial_console=None, block_multi_queue=None, client_passthrough=None, disable_hotplug=None, disks=None, filesystems=None, gpus=None, host_devices=None, inputs=None, interfaces=None, network_interface_multiqueue=None, rng=None, sound=None, use_virtio_transitional=None, watchdog=None): + def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, autoattach_pod_interface=None, autoattach_serial_console=None, block_multi_queue=None, client_passthrough=None, disable_hotplug=None, disks=None, filesystems=None, gpus=None, host_devices=None, inputs=None, interfaces=None, network_interface_multiqueue=None, rng=None, sound=None, tpm=None, use_virtio_transitional=None, watchdog=None): """ V1Devices - a model defined in Swagger """ @@ -93,6 +95,7 @@ def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, self._network_interface_multiqueue = None self._rng = None self._sound = None + self._tpm = None self._use_virtio_transitional = None self._watchdog = None @@ -128,6 +131,8 @@ def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, self.rng = rng if sound is not None: self.sound = sound + if tpm is not None: + self.tpm = tpm if use_virtio_transitional is not None: self.use_virtio_transitional = use_virtio_transitional if watchdog is not None: @@ -501,6 +506,29 @@ def sound(self, sound): self._sound = sound + @property + def tpm(self): + """ + Gets the tpm of this V1Devices. + Whether to emulate a TPM device. + + :return: The tpm of this V1Devices. + :rtype: V1TPMDevice + """ + return self._tpm + + @tpm.setter + def tpm(self, tpm): + """ + Sets the tpm of this V1Devices. + Whether to emulate a TPM device. + + :param tpm: The tpm of this V1Devices. + :type: V1TPMDevice + """ + + self._tpm = tpm + @property def use_virtio_transitional(self): """ diff --git a/kubevirt/models/v1_tpm_device.py b/kubevirt/models/v1_tpm_device.py new file mode 100644 index 00000000..105de18b --- /dev/null +++ b/kubevirt/models/v1_tpm_device.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1TPMDevice(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1TPMDevice - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1TPMDevice): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index e8d1b8ea..8af6390c 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.52.0-rc.0-49-g9d2b473cc" +VERSION = "v0.52.0-rc.0-72-g0db065c1b" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index a91d3ad1..0313d13a 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.52.0-rc.0-49-g9d2b473cc" +"packageVersion": "v0.52.0-rc.0-72-g0db065c1b" } diff --git a/test/test_v1_tpm_device.py b/test/test_v1_tpm_device.py new file mode 100644 index 00000000..73a5547c --- /dev/null +++ b/test/test_v1_tpm_device.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_tpm_device import V1TPMDevice + + +class TestV1TPMDevice(unittest.TestCase): + """ V1TPMDevice unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1TPMDevice(self): + """ + Test V1TPMDevice + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_tpm_device.V1TPMDevice() + pass + + +if __name__ == '__main__': + unittest.main() From c3a9035a79e0eb6fd33d5fb9bf7752037a3a5a2d Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 28 Apr 2022 03:50:30 +0000 Subject: [PATCH 269/521] Client Python update by KubeVirt Prow build 1519514690609221632 --- README.md | 2 +- docs/V1alpha1VirtualMachineRestoreSpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1alpha1_virtual_machine_restore_spec.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 96f1685b..5dc18419 100644 --- a/README.md +++ b/README.md @@ -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: v0.52.0-rc.0-72-g0db065c1b +- Package version: v0.52.0-239-gfb926089c - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1alpha1VirtualMachineRestoreSpec.md b/docs/V1alpha1VirtualMachineRestoreSpec.md index cec5d31e..eab2f420 100644 --- a/docs/V1alpha1VirtualMachineRestoreSpec.md +++ b/docs/V1alpha1VirtualMachineRestoreSpec.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**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] **target** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | initially only VirtualMachine type supported | **virtual_machine_snapshot_name** | **str** | | diff --git a/git_push.sh b/git_push.sh index 310767d2..3baa9c1a 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.52.0-rc.0-72-g0db065c1b" + release_note="Auto-generated client v0.52.0-239-gfb926089c" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index db3322b5..b3e244a5 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.52.0-rc.0-72-g0db065c1b/python' + self.user_agent = 'Swagger-Codegen/v0.52.0-239-gfb926089c/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index ef459ad5..eb949e5e 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.52.0-rc.0-72-g0db065c1b".\ + "SDK Package Version: v0.52.0-239-gfb926089c".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1alpha1_virtual_machine_restore_spec.py b/kubevirt/models/v1alpha1_virtual_machine_restore_spec.py index ae3e2da9..c8989e8d 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_restore_spec.py +++ b/kubevirt/models/v1alpha1_virtual_machine_restore_spec.py @@ -31,26 +31,54 @@ class V1alpha1VirtualMachineRestoreSpec(object): and the value is json key in definition. """ swagger_types = { + 'patches': 'list[str]', 'target': 'K8sIoApiCoreV1TypedLocalObjectReference', 'virtual_machine_snapshot_name': 'str' } attribute_map = { + 'patches': 'patches', 'target': 'target', 'virtual_machine_snapshot_name': 'virtualMachineSnapshotName' } - def __init__(self, target=None, virtual_machine_snapshot_name=None): + def __init__(self, patches=None, target=None, virtual_machine_snapshot_name=None): """ V1alpha1VirtualMachineRestoreSpec - a model defined in Swagger """ + self._patches = None self._target = None self._virtual_machine_snapshot_name = None + if patches is not None: + self.patches = patches self.target = target self.virtual_machine_snapshot_name = virtual_machine_snapshot_name + @property + def patches(self): + """ + Gets the patches of this V1alpha1VirtualMachineRestoreSpec. + 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\"} + + :return: The patches of this V1alpha1VirtualMachineRestoreSpec. + :rtype: list[str] + """ + return self._patches + + @patches.setter + def patches(self, patches): + """ + Sets the patches of this V1alpha1VirtualMachineRestoreSpec. + 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\"} + + :param patches: The patches of this V1alpha1VirtualMachineRestoreSpec. + :type: list[str] + """ + + self._patches = patches + @property def target(self): """ diff --git a/setup.py b/setup.py index 8af6390c..4fe457df 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.52.0-rc.0-72-g0db065c1b" +VERSION = "v0.52.0-239-gfb926089c" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 0313d13a..fb13f009 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.52.0-rc.0-72-g0db065c1b" +"packageVersion": "v0.52.0-239-gfb926089c" } From 76dfd0224a7faaa409c77e6b5008aac134e2c7b3 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 29 Apr 2022 20:50:32 +0000 Subject: [PATCH 270/521] Client Python update by KubeVirt Prow build 1520134223237746688 --- README.md | 3 +- docs/V1alpha1SourceSpec.md | 2 +- docs/V1alpha1VirtualMachine.md | 12 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1alpha1_source_spec.py | 6 +- kubevirt/models/v1alpha1_virtual_machine.py | 179 ++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1alpha1_virtual_machine.py | 44 +++++ 14 files changed, 251 insertions(+), 10 deletions(-) create mode 100644 docs/V1alpha1VirtualMachine.md create mode 100644 kubevirt/models/v1alpha1_virtual_machine.py create mode 100644 test/test_v1alpha1_virtual_machine.py diff --git a/README.md b/README.md index 5dc18419..dc4a243d 100644 --- a/README.md +++ b/README.md @@ -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: v0.52.0-239-gfb926089c +- Package version: v0.52.0-277-g7858b39bf - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -521,6 +521,7 @@ Class | Method | HTTP request | Description - [V1alpha1PersistentVolumeClaim](docs/V1alpha1PersistentVolumeClaim.md) - [V1alpha1Selectors](docs/V1alpha1Selectors.md) - [V1alpha1SourceSpec](docs/V1alpha1SourceSpec.md) + - [V1alpha1VirtualMachine](docs/V1alpha1VirtualMachine.md) - [V1alpha1VirtualMachineClusterFlavor](docs/V1alpha1VirtualMachineClusterFlavor.md) - [V1alpha1VirtualMachineClusterFlavorList](docs/V1alpha1VirtualMachineClusterFlavorList.md) - [V1alpha1VirtualMachineFlavor](docs/V1alpha1VirtualMachineFlavor.md) diff --git a/docs/V1alpha1SourceSpec.md b/docs/V1alpha1SourceSpec.md index e251d5bc..153619f3 100644 --- a/docs/V1alpha1SourceSpec.md +++ b/docs/V1alpha1SourceSpec.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**virtual_machine** | [**V1VirtualMachine**](V1VirtualMachine.md) | | [optional] +**virtual_machine** | [**V1alpha1VirtualMachine**](V1alpha1VirtualMachine.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachine.md b/docs/V1alpha1VirtualMachine.md new file mode 100644 index 00000000..7e0b362a --- /dev/null +++ b/docs/V1alpha1VirtualMachine.md @@ -0,0 +1,12 @@ +# V1alpha1VirtualMachine + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] +**spec** | [**V1VirtualMachineSpec**](V1VirtualMachineSpec.md) | VirtualMachineSpec contains the VirtualMachine specification. | [optional] +**status** | [**V1VirtualMachineStatus**](V1VirtualMachineStatus.md) | Status holds the current state of the controller and brief information about its associated VirtualMachineInstance | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 3baa9c1a..321b19ab 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.52.0-239-gfb926089c" + release_note="Auto-generated client v0.52.0-277-g7858b39bf" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 8ddcb412..3565d632 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -747,6 +747,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/v1alpha1_source_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_source_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1SourceSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachine.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_cluster_flavor.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_cluster_flavor.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineClusterFlavor.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 22973a71..d13990ba 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -256,6 +256,7 @@ from .models.v1alpha1_persistent_volume_claim import V1alpha1PersistentVolumeClaim from .models.v1alpha1_selectors import V1alpha1Selectors from .models.v1alpha1_source_spec import V1alpha1SourceSpec +from .models.v1alpha1_virtual_machine import V1alpha1VirtualMachine from .models.v1alpha1_virtual_machine_cluster_flavor import V1alpha1VirtualMachineClusterFlavor from .models.v1alpha1_virtual_machine_cluster_flavor_list import V1alpha1VirtualMachineClusterFlavorList from .models.v1alpha1_virtual_machine_flavor import V1alpha1VirtualMachineFlavor diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index b3e244a5..e90b0e0f 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.52.0-239-gfb926089c/python' + self.user_agent = 'Swagger-Codegen/v0.52.0-277-g7858b39bf/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index eb949e5e..c6a5cae8 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.52.0-239-gfb926089c".\ + "SDK Package Version: v0.52.0-277-g7858b39bf".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 7825e6c1..8178e520 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -256,6 +256,7 @@ from .v1alpha1_persistent_volume_claim import V1alpha1PersistentVolumeClaim from .v1alpha1_selectors import V1alpha1Selectors from .v1alpha1_source_spec import V1alpha1SourceSpec +from .v1alpha1_virtual_machine import V1alpha1VirtualMachine from .v1alpha1_virtual_machine_cluster_flavor import V1alpha1VirtualMachineClusterFlavor from .v1alpha1_virtual_machine_cluster_flavor_list import V1alpha1VirtualMachineClusterFlavorList from .v1alpha1_virtual_machine_flavor import V1alpha1VirtualMachineFlavor diff --git a/kubevirt/models/v1alpha1_source_spec.py b/kubevirt/models/v1alpha1_source_spec.py index d3fd3b86..7a886390 100644 --- a/kubevirt/models/v1alpha1_source_spec.py +++ b/kubevirt/models/v1alpha1_source_spec.py @@ -31,7 +31,7 @@ class V1alpha1SourceSpec(object): and the value is json key in definition. """ swagger_types = { - 'virtual_machine': 'V1VirtualMachine' + 'virtual_machine': 'V1alpha1VirtualMachine' } attribute_map = { @@ -54,7 +54,7 @@ def virtual_machine(self): Gets the virtual_machine of this V1alpha1SourceSpec. :return: The virtual_machine of this V1alpha1SourceSpec. - :rtype: V1VirtualMachine + :rtype: V1alpha1VirtualMachine """ return self._virtual_machine @@ -64,7 +64,7 @@ def virtual_machine(self, virtual_machine): Sets the virtual_machine of this V1alpha1SourceSpec. :param virtual_machine: The virtual_machine of this V1alpha1SourceSpec. - :type: V1VirtualMachine + :type: V1alpha1VirtualMachine """ self._virtual_machine = virtual_machine diff --git a/kubevirt/models/v1alpha1_virtual_machine.py b/kubevirt/models/v1alpha1_virtual_machine.py new file mode 100644 index 00000000..687290d0 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine.py @@ -0,0 +1,179 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachine(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', + 'spec': 'V1VirtualMachineSpec', + 'status': 'V1VirtualMachineStatus' + } + + attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, metadata=None, spec=None, status=None): + """ + V1alpha1VirtualMachine - a model defined in Swagger + """ + + self._metadata = None + self._spec = None + self._status = None + + if metadata is not None: + self.metadata = metadata + if spec is not None: + self.spec = spec + if status is not None: + self.status = status + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1VirtualMachine. + + :return: The metadata of this V1alpha1VirtualMachine. + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1VirtualMachine. + + :param metadata: The metadata of this V1alpha1VirtualMachine. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1alpha1VirtualMachine. + VirtualMachineSpec contains the VirtualMachine specification. + + :return: The spec of this V1alpha1VirtualMachine. + :rtype: V1VirtualMachineSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1alpha1VirtualMachine. + VirtualMachineSpec contains the VirtualMachine specification. + + :param spec: The spec of this V1alpha1VirtualMachine. + :type: V1VirtualMachineSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1alpha1VirtualMachine. + Status holds the current state of the controller and brief information about its associated VirtualMachineInstance + + :return: The status of this V1alpha1VirtualMachine. + :rtype: V1VirtualMachineStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1alpha1VirtualMachine. + Status holds the current state of the controller and brief information about its associated VirtualMachineInstance + + :param status: The status of this V1alpha1VirtualMachine. + :type: V1VirtualMachineStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachine): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 4fe457df..200ed7d1 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.52.0-239-gfb926089c" +VERSION = "v0.52.0-277-g7858b39bf" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index fb13f009..b6418311 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.52.0-239-gfb926089c" +"packageVersion": "v0.52.0-277-g7858b39bf" } diff --git a/test/test_v1alpha1_virtual_machine.py b/test/test_v1alpha1_virtual_machine.py new file mode 100644 index 00000000..196a1ede --- /dev/null +++ b/test/test_v1alpha1_virtual_machine.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine import V1alpha1VirtualMachine + + +class TestV1alpha1VirtualMachine(unittest.TestCase): + """ V1alpha1VirtualMachine unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachine(self): + """ + Test V1alpha1VirtualMachine + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine.V1alpha1VirtualMachine() + pass + + +if __name__ == '__main__': + unittest.main() From 84c4d675dd3563d3b3e4df577bfac649246c5492 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Sat, 30 Apr 2022 22:18:51 +0000 Subject: [PATCH 271/521] Client Python update by KubeVirt Prow build 1520516184640851968 --- README.md | 4 +- docs/V1FlavorMatcher.md | 1 - docs/V1alpha1VirtualMachineClusterFlavor.md | 2 +- docs/V1alpha1VirtualMachineFlavor.md | 2 +- ...md => V1alpha1VirtualMachineFlavorSpec.md} | 4 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 +- kubevirt/__init__.py | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 +- kubevirt/models/v1_flavor_matcher.py | 34 +------- ...v1alpha1_virtual_machine_cluster_flavor.py | 38 ++++----- .../models/v1alpha1_virtual_machine_flavor.py | 38 ++++----- ...> v1alpha1_virtual_machine_flavor_spec.py} | 77 +++---------------- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...t_v1alpha1_virtual_machine_flavor_spec.py} | 12 +-- 18 files changed, 74 insertions(+), 158 deletions(-) rename docs/{V1alpha1VirtualMachineFlavorProfile.md => V1alpha1VirtualMachineFlavorSpec.md} (52%) rename kubevirt/models/{v1alpha1_virtual_machine_flavor_profile.py => v1alpha1_virtual_machine_flavor_spec.py} (52%) rename test/{test_v1alpha1_virtual_machine_flavor_profile.py => test_v1alpha1_virtual_machine_flavor_spec.py} (63%) diff --git a/README.md b/README.md index dc4a243d..ecc9990b 100644 --- a/README.md +++ b/README.md @@ -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: v0.52.0-277-g7858b39bf +- Package version: v0.52.0-289-gf5973335f - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -526,7 +526,7 @@ Class | Method | HTTP request | Description - [V1alpha1VirtualMachineClusterFlavorList](docs/V1alpha1VirtualMachineClusterFlavorList.md) - [V1alpha1VirtualMachineFlavor](docs/V1alpha1VirtualMachineFlavor.md) - [V1alpha1VirtualMachineFlavorList](docs/V1alpha1VirtualMachineFlavorList.md) - - [V1alpha1VirtualMachineFlavorProfile](docs/V1alpha1VirtualMachineFlavorProfile.md) + - [V1alpha1VirtualMachineFlavorSpec](docs/V1alpha1VirtualMachineFlavorSpec.md) - [V1alpha1VirtualMachinePool](docs/V1alpha1VirtualMachinePool.md) - [V1alpha1VirtualMachinePoolCondition](docs/V1alpha1VirtualMachinePoolCondition.md) - [V1alpha1VirtualMachinePoolList](docs/V1alpha1VirtualMachinePoolList.md) diff --git a/docs/V1FlavorMatcher.md b/docs/V1FlavorMatcher.md index 9f12e6f9..3c80525d 100644 --- a/docs/V1FlavorMatcher.md +++ b/docs/V1FlavorMatcher.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **kind** | **str** | Kind specifies which flavor resource is referenced. Allowed values are: \"VirtualMachineFlavor\" and \"VirtualMachineClusterFlavor\". If not specified, \"VirtualMachineClusterFlavor\" is used by default. | [optional] **name** | **str** | Name is the name of the VirtualMachineFlavor or VirtualMachineClusterFlavor | -**profile** | **str** | Profile is the name of a custom profile in the flavor. If left empty, the default profile is used. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineClusterFlavor.md b/docs/V1alpha1VirtualMachineClusterFlavor.md index 5bae8789..6e7fcc70 100644 --- a/docs/V1alpha1VirtualMachineClusterFlavor.md +++ b/docs/V1alpha1VirtualMachineClusterFlavor.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] -**profiles** | [**list[V1alpha1VirtualMachineFlavorProfile]**](V1alpha1VirtualMachineFlavorProfile.md) | | +**spec** | [**V1alpha1VirtualMachineFlavorSpec**](V1alpha1VirtualMachineFlavorSpec.md) | VirtualMachineFlavorSpec for the flavor | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineFlavor.md b/docs/V1alpha1VirtualMachineFlavor.md index 16e06415..b7a654f2 100644 --- a/docs/V1alpha1VirtualMachineFlavor.md +++ b/docs/V1alpha1VirtualMachineFlavor.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] -**profiles** | [**list[V1alpha1VirtualMachineFlavorProfile]**](V1alpha1VirtualMachineFlavorProfile.md) | | +**spec** | [**V1alpha1VirtualMachineFlavorSpec**](V1alpha1VirtualMachineFlavorSpec.md) | VirtualMachineFlavorSpec for the flavor | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineFlavorProfile.md b/docs/V1alpha1VirtualMachineFlavorSpec.md similarity index 52% rename from docs/V1alpha1VirtualMachineFlavorProfile.md rename to docs/V1alpha1VirtualMachineFlavorSpec.md index 950997af..edbde182 100644 --- a/docs/V1alpha1VirtualMachineFlavorProfile.md +++ b/docs/V1alpha1VirtualMachineFlavorSpec.md @@ -1,11 +1,9 @@ -# V1alpha1VirtualMachineFlavorProfile +# V1alpha1VirtualMachineFlavorSpec ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cpu** | [**V1CPU**](V1CPU.md) | | [optional] -**default** | **bool** | Default specifies if this VirtualMachineFlavorProfile is the default for the VirtualMachineFlavor. Zero or one profile can be set to default. | [optional] -**name** | **str** | Name specifies the name of this custom profile. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 321b19ab..8f79cf41 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.52.0-277-g7858b39bf" + release_note="Auto-generated client v0.52.0-289-gf5973335f" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 3565d632..484ae8b2 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -762,9 +762,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/v1alpha1_virtual_machine_flavor_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_flavor_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineFlavorList.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_flavor_profile.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_flavor_profile.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineFlavorProfile.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_flavor_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_flavor_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineFlavorSpec.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePool.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index d13990ba..973f2a21 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -261,7 +261,7 @@ from .models.v1alpha1_virtual_machine_cluster_flavor_list import V1alpha1VirtualMachineClusterFlavorList from .models.v1alpha1_virtual_machine_flavor import V1alpha1VirtualMachineFlavor from .models.v1alpha1_virtual_machine_flavor_list import V1alpha1VirtualMachineFlavorList -from .models.v1alpha1_virtual_machine_flavor_profile import V1alpha1VirtualMachineFlavorProfile +from .models.v1alpha1_virtual_machine_flavor_spec import V1alpha1VirtualMachineFlavorSpec from .models.v1alpha1_virtual_machine_pool import V1alpha1VirtualMachinePool from .models.v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition from .models.v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index e90b0e0f..14ca2dad 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.52.0-277-g7858b39bf/python' + self.user_agent = 'Swagger-Codegen/v0.52.0-289-gf5973335f/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c6a5cae8..5a5f4a7c 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.52.0-277-g7858b39bf".\ + "SDK Package Version: v0.52.0-289-gf5973335f".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 8178e520..45752d14 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -261,7 +261,7 @@ from .v1alpha1_virtual_machine_cluster_flavor_list import V1alpha1VirtualMachineClusterFlavorList from .v1alpha1_virtual_machine_flavor import V1alpha1VirtualMachineFlavor from .v1alpha1_virtual_machine_flavor_list import V1alpha1VirtualMachineFlavorList -from .v1alpha1_virtual_machine_flavor_profile import V1alpha1VirtualMachineFlavorProfile +from .v1alpha1_virtual_machine_flavor_spec import V1alpha1VirtualMachineFlavorSpec from .v1alpha1_virtual_machine_pool import V1alpha1VirtualMachinePool from .v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition from .v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList diff --git a/kubevirt/models/v1_flavor_matcher.py b/kubevirt/models/v1_flavor_matcher.py index 7c29acfc..fac9e8fa 100644 --- a/kubevirt/models/v1_flavor_matcher.py +++ b/kubevirt/models/v1_flavor_matcher.py @@ -32,30 +32,25 @@ class V1FlavorMatcher(object): """ swagger_types = { 'kind': 'str', - 'name': 'str', - 'profile': 'str' + 'name': 'str' } attribute_map = { 'kind': 'kind', - 'name': 'name', - 'profile': 'profile' + 'name': 'name' } - def __init__(self, kind=None, name=None, profile=None): + def __init__(self, kind=None, name=None): """ V1FlavorMatcher - a model defined in Swagger """ self._kind = None self._name = None - self._profile = None if kind is not None: self.kind = kind self.name = name - if profile is not None: - self.profile = profile @property def kind(self): @@ -105,29 +100,6 @@ def name(self, name): self._name = name - @property - def profile(self): - """ - Gets the profile of this V1FlavorMatcher. - Profile is the name of a custom profile in the flavor. If left empty, the default profile is used. - - :return: The profile of this V1FlavorMatcher. - :rtype: str - """ - return self._profile - - @profile.setter - def profile(self, profile): - """ - Sets the profile of this V1FlavorMatcher. - Profile is the name of a custom profile in the flavor. If left empty, the default profile is used. - - :param profile: The profile of this V1FlavorMatcher. - :type: str - """ - - self._profile = profile - def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1alpha1_virtual_machine_cluster_flavor.py b/kubevirt/models/v1alpha1_virtual_machine_cluster_flavor.py index 5028786c..503b58e8 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_cluster_flavor.py +++ b/kubevirt/models/v1alpha1_virtual_machine_cluster_flavor.py @@ -34,17 +34,17 @@ class V1alpha1VirtualMachineClusterFlavor(object): 'api_version': 'str', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', - 'profiles': 'list[V1alpha1VirtualMachineFlavorProfile]' + 'spec': 'V1alpha1VirtualMachineFlavorSpec' } attribute_map = { 'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', - 'profiles': 'profiles' + 'spec': 'spec' } - def __init__(self, api_version=None, kind=None, metadata=None, profiles=None): + def __init__(self, api_version=None, kind=None, metadata=None, spec=None): """ V1alpha1VirtualMachineClusterFlavor - a model defined in Swagger """ @@ -52,7 +52,7 @@ def __init__(self, api_version=None, kind=None, metadata=None, profiles=None): self._api_version = None self._kind = None self._metadata = None - self._profiles = None + self._spec = None if api_version is not None: self.api_version = api_version @@ -60,7 +60,7 @@ def __init__(self, api_version=None, kind=None, metadata=None, profiles=None): self.kind = kind if metadata is not None: self.metadata = metadata - self.profiles = profiles + self.spec = spec @property def api_version(self): @@ -130,27 +130,29 @@ def metadata(self, metadata): self._metadata = metadata @property - def profiles(self): + def spec(self): """ - Gets the profiles of this V1alpha1VirtualMachineClusterFlavor. + Gets the spec of this V1alpha1VirtualMachineClusterFlavor. + VirtualMachineFlavorSpec for the flavor - :return: The profiles of this V1alpha1VirtualMachineClusterFlavor. - :rtype: list[V1alpha1VirtualMachineFlavorProfile] + :return: The spec of this V1alpha1VirtualMachineClusterFlavor. + :rtype: V1alpha1VirtualMachineFlavorSpec """ - return self._profiles + return self._spec - @profiles.setter - def profiles(self, profiles): + @spec.setter + def spec(self, spec): """ - Sets the profiles of this V1alpha1VirtualMachineClusterFlavor. + Sets the spec of this V1alpha1VirtualMachineClusterFlavor. + VirtualMachineFlavorSpec for the flavor - :param profiles: The profiles of this V1alpha1VirtualMachineClusterFlavor. - :type: list[V1alpha1VirtualMachineFlavorProfile] + :param spec: The spec of this V1alpha1VirtualMachineClusterFlavor. + :type: V1alpha1VirtualMachineFlavorSpec """ - if profiles is None: - raise ValueError("Invalid value for `profiles`, must not be `None`") + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") - self._profiles = profiles + self._spec = spec def to_dict(self): """ diff --git a/kubevirt/models/v1alpha1_virtual_machine_flavor.py b/kubevirt/models/v1alpha1_virtual_machine_flavor.py index 7ffa54d6..44be4397 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_flavor.py +++ b/kubevirt/models/v1alpha1_virtual_machine_flavor.py @@ -34,17 +34,17 @@ class V1alpha1VirtualMachineFlavor(object): 'api_version': 'str', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', - 'profiles': 'list[V1alpha1VirtualMachineFlavorProfile]' + 'spec': 'V1alpha1VirtualMachineFlavorSpec' } attribute_map = { 'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', - 'profiles': 'profiles' + 'spec': 'spec' } - def __init__(self, api_version=None, kind=None, metadata=None, profiles=None): + def __init__(self, api_version=None, kind=None, metadata=None, spec=None): """ V1alpha1VirtualMachineFlavor - a model defined in Swagger """ @@ -52,7 +52,7 @@ def __init__(self, api_version=None, kind=None, metadata=None, profiles=None): self._api_version = None self._kind = None self._metadata = None - self._profiles = None + self._spec = None if api_version is not None: self.api_version = api_version @@ -60,7 +60,7 @@ def __init__(self, api_version=None, kind=None, metadata=None, profiles=None): self.kind = kind if metadata is not None: self.metadata = metadata - self.profiles = profiles + self.spec = spec @property def api_version(self): @@ -130,27 +130,29 @@ def metadata(self, metadata): self._metadata = metadata @property - def profiles(self): + def spec(self): """ - Gets the profiles of this V1alpha1VirtualMachineFlavor. + Gets the spec of this V1alpha1VirtualMachineFlavor. + VirtualMachineFlavorSpec for the flavor - :return: The profiles of this V1alpha1VirtualMachineFlavor. - :rtype: list[V1alpha1VirtualMachineFlavorProfile] + :return: The spec of this V1alpha1VirtualMachineFlavor. + :rtype: V1alpha1VirtualMachineFlavorSpec """ - return self._profiles + return self._spec - @profiles.setter - def profiles(self, profiles): + @spec.setter + def spec(self, spec): """ - Sets the profiles of this V1alpha1VirtualMachineFlavor. + Sets the spec of this V1alpha1VirtualMachineFlavor. + VirtualMachineFlavorSpec for the flavor - :param profiles: The profiles of this V1alpha1VirtualMachineFlavor. - :type: list[V1alpha1VirtualMachineFlavorProfile] + :param spec: The spec of this V1alpha1VirtualMachineFlavor. + :type: V1alpha1VirtualMachineFlavorSpec """ - if profiles is None: - raise ValueError("Invalid value for `profiles`, must not be `None`") + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") - self._profiles = profiles + self._spec = spec def to_dict(self): """ diff --git a/kubevirt/models/v1alpha1_virtual_machine_flavor_profile.py b/kubevirt/models/v1alpha1_virtual_machine_flavor_spec.py similarity index 52% rename from kubevirt/models/v1alpha1_virtual_machine_flavor_profile.py rename to kubevirt/models/v1alpha1_virtual_machine_flavor_spec.py index a68b14e5..b169f87d 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_flavor_profile.py +++ b/kubevirt/models/v1alpha1_virtual_machine_flavor_spec.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineFlavorProfile(object): +class V1alpha1VirtualMachineFlavorSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,38 +31,29 @@ class V1alpha1VirtualMachineFlavorProfile(object): and the value is json key in definition. """ swagger_types = { - 'cpu': 'V1CPU', - 'default': 'bool', - 'name': 'str' + 'cpu': 'V1CPU' } attribute_map = { - 'cpu': 'cpu', - 'default': 'default', - 'name': 'name' + 'cpu': 'cpu' } - def __init__(self, cpu=None, default=None, name=None): + def __init__(self, cpu=None): """ - V1alpha1VirtualMachineFlavorProfile - a model defined in Swagger + V1alpha1VirtualMachineFlavorSpec - a model defined in Swagger """ self._cpu = None - self._default = None - self._name = None if cpu is not None: self.cpu = cpu - if default is not None: - self.default = default - self.name = name @property def cpu(self): """ - Gets the cpu of this V1alpha1VirtualMachineFlavorProfile. + Gets the cpu of this V1alpha1VirtualMachineFlavorSpec. - :return: The cpu of this V1alpha1VirtualMachineFlavorProfile. + :return: The cpu of this V1alpha1VirtualMachineFlavorSpec. :rtype: V1CPU """ return self._cpu @@ -70,62 +61,14 @@ def cpu(self): @cpu.setter def cpu(self, cpu): """ - Sets the cpu of this V1alpha1VirtualMachineFlavorProfile. + Sets the cpu of this V1alpha1VirtualMachineFlavorSpec. - :param cpu: The cpu of this V1alpha1VirtualMachineFlavorProfile. + :param cpu: The cpu of this V1alpha1VirtualMachineFlavorSpec. :type: V1CPU """ self._cpu = cpu - @property - def default(self): - """ - Gets the default of this V1alpha1VirtualMachineFlavorProfile. - Default specifies if this VirtualMachineFlavorProfile is the default for the VirtualMachineFlavor. Zero or one profile can be set to default. - - :return: The default of this V1alpha1VirtualMachineFlavorProfile. - :rtype: bool - """ - return self._default - - @default.setter - def default(self, default): - """ - Sets the default of this V1alpha1VirtualMachineFlavorProfile. - Default specifies if this VirtualMachineFlavorProfile is the default for the VirtualMachineFlavor. Zero or one profile can be set to default. - - :param default: The default of this V1alpha1VirtualMachineFlavorProfile. - :type: bool - """ - - self._default = default - - @property - def name(self): - """ - Gets the name of this V1alpha1VirtualMachineFlavorProfile. - Name specifies the name of this custom profile. - - :return: The name of this V1alpha1VirtualMachineFlavorProfile. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V1alpha1VirtualMachineFlavorProfile. - Name specifies the name of this custom profile. - - :param name: The name of this V1alpha1VirtualMachineFlavorProfile. - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") - - self._name = name - def to_dict(self): """ Returns the model properties as a dict @@ -168,7 +111,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineFlavorProfile): + if not isinstance(other, V1alpha1VirtualMachineFlavorSpec): return False return self.__dict__ == other.__dict__ diff --git a/setup.py b/setup.py index 200ed7d1..1345faa0 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.52.0-277-g7858b39bf" +VERSION = "v0.52.0-289-gf5973335f" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b6418311..05d33d00 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.52.0-277-g7858b39bf" +"packageVersion": "v0.52.0-289-gf5973335f" } diff --git a/test/test_v1alpha1_virtual_machine_flavor_profile.py b/test/test_v1alpha1_virtual_machine_flavor_spec.py similarity index 63% rename from test/test_v1alpha1_virtual_machine_flavor_profile.py rename to test/test_v1alpha1_virtual_machine_flavor_spec.py index 9802abf5..0f7d89e7 100644 --- a/test/test_v1alpha1_virtual_machine_flavor_profile.py +++ b/test/test_v1alpha1_virtual_machine_flavor_spec.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_flavor_profile import V1alpha1VirtualMachineFlavorProfile +from kubevirt.models.v1alpha1_virtual_machine_flavor_spec import V1alpha1VirtualMachineFlavorSpec -class TestV1alpha1VirtualMachineFlavorProfile(unittest.TestCase): - """ V1alpha1VirtualMachineFlavorProfile unit test stubs """ +class TestV1alpha1VirtualMachineFlavorSpec(unittest.TestCase): + """ V1alpha1VirtualMachineFlavorSpec unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachineFlavorProfile(self): + def testV1alpha1VirtualMachineFlavorSpec(self): """ - Test V1alpha1VirtualMachineFlavorProfile + Test V1alpha1VirtualMachineFlavorSpec """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_flavor_profile.V1alpha1VirtualMachineFlavorProfile() + #model = kubevirt.models.v1alpha1_virtual_machine_flavor_spec.V1alpha1VirtualMachineFlavorSpec() pass From 1ca41dce75306c493f8bb6f4e0e333040bd13459 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Mon, 23 May 2022 21:15:38 +0000 Subject: [PATCH 272/521] Client Python update by KubeVirt Prow build 1528837162517139456 --- README.md | 35 +- docs/DefaultApi.md | 1050 ++++++- docs/V1ClockOffset.md | 11 + docs/V1PreferenceMatcher.md | 11 + docs/V1VirtualMachineSpec.md | 1 + docs/V1alpha1CPUFlavor.md | 15 + docs/V1alpha1CPUPreferences.md | 10 + docs/V1alpha1ClockPreferences.md | 11 + docs/V1alpha1DevicePreferences.md | 31 + docs/V1alpha1FeaturePreferences.md | 15 + docs/V1alpha1FirmwarePreferences.md | 13 + docs/V1alpha1MachinePreferences.md | 10 + docs/V1alpha1MemoryFlavor.md | 11 + docs/V1alpha1VirtualMachineClusterFlavor.md | 2 +- ...V1alpha1VirtualMachineClusterPreference.md | 13 + ...pha1VirtualMachineClusterPreferenceList.md | 13 + docs/V1alpha1VirtualMachineFlavor.md | 2 +- docs/V1alpha1VirtualMachineFlavorSpec.md | 7 +- docs/V1alpha1VirtualMachinePreference.md | 13 + docs/V1alpha1VirtualMachinePreferenceList.md | 13 + docs/V1alpha1VirtualMachinePreferenceSpec.md | 15 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 45 + kubevirt/__init__.py | 15 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 2653 +++++++++++++++-- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 15 + kubevirt/models/v1_clock_offset.py | 153 + kubevirt/models/v1_preference_matcher.py | 154 + kubevirt/models/v1_virtual_machine_spec.py | 30 +- kubevirt/models/v1alpha1_clock_preferences.py | 153 + kubevirt/models/v1alpha1_cpu_flavor.py | 266 ++ kubevirt/models/v1alpha1_cpu_preferences.py | 125 + .../models/v1alpha1_device_preferences.py | 713 +++++ .../models/v1alpha1_feature_preferences.py | 265 ++ .../models/v1alpha1_firmware_preferences.py | 209 ++ .../models/v1alpha1_machine_preferences.py | 125 + kubevirt/models/v1alpha1_memory_flavor.py | 153 + ...v1alpha1_virtual_machine_cluster_flavor.py | 4 +- ...pha1_virtual_machine_cluster_preference.py | 208 ++ ...virtual_machine_cluster_preference_list.py | 206 ++ .../models/v1alpha1_virtual_machine_flavor.py | 4 +- .../v1alpha1_virtual_machine_flavor_spec.py | 158 +- .../v1alpha1_virtual_machine_preference.py | 208 ++ ...1alpha1_virtual_machine_preference_list.py | 206 ++ ...1alpha1_virtual_machine_preference_spec.py | 265 ++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 144 + test/test_v1_clock_offset.py | 44 + test/test_v1_preference_matcher.py | 44 + test/test_v1alpha1_clock_preferences.py | 44 + test/test_v1alpha1_cpu_flavor.py | 44 + test/test_v1alpha1_cpu_preferences.py | 44 + test/test_v1alpha1_device_preferences.py | 44 + test/test_v1alpha1_feature_preferences.py | 44 + test/test_v1alpha1_firmware_preferences.py | 44 + test/test_v1alpha1_machine_preferences.py | 44 + test/test_v1alpha1_memory_flavor.py | 44 + ...pha1_virtual_machine_cluster_preference.py | 44 + ...virtual_machine_cluster_preference_list.py | 44 + ...est_v1alpha1_virtual_machine_preference.py | 44 + ...1alpha1_virtual_machine_preference_list.py | 44 + ...1alpha1_virtual_machine_preference_spec.py | 44 + 65 files changed, 8169 insertions(+), 280 deletions(-) create mode 100644 docs/V1ClockOffset.md create mode 100644 docs/V1PreferenceMatcher.md create mode 100644 docs/V1alpha1CPUFlavor.md create mode 100644 docs/V1alpha1CPUPreferences.md create mode 100644 docs/V1alpha1ClockPreferences.md create mode 100644 docs/V1alpha1DevicePreferences.md create mode 100644 docs/V1alpha1FeaturePreferences.md create mode 100644 docs/V1alpha1FirmwarePreferences.md create mode 100644 docs/V1alpha1MachinePreferences.md create mode 100644 docs/V1alpha1MemoryFlavor.md create mode 100644 docs/V1alpha1VirtualMachineClusterPreference.md create mode 100644 docs/V1alpha1VirtualMachineClusterPreferenceList.md create mode 100644 docs/V1alpha1VirtualMachinePreference.md create mode 100644 docs/V1alpha1VirtualMachinePreferenceList.md create mode 100644 docs/V1alpha1VirtualMachinePreferenceSpec.md create mode 100644 kubevirt/models/v1_clock_offset.py create mode 100644 kubevirt/models/v1_preference_matcher.py create mode 100644 kubevirt/models/v1alpha1_clock_preferences.py create mode 100644 kubevirt/models/v1alpha1_cpu_flavor.py create mode 100644 kubevirt/models/v1alpha1_cpu_preferences.py create mode 100644 kubevirt/models/v1alpha1_device_preferences.py create mode 100644 kubevirt/models/v1alpha1_feature_preferences.py create mode 100644 kubevirt/models/v1alpha1_firmware_preferences.py create mode 100644 kubevirt/models/v1alpha1_machine_preferences.py create mode 100644 kubevirt/models/v1alpha1_memory_flavor.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_cluster_preference.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_cluster_preference_list.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_preference.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_preference_list.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_preference_spec.py create mode 100644 test/test_v1_clock_offset.py create mode 100644 test/test_v1_preference_matcher.py create mode 100644 test/test_v1alpha1_clock_preferences.py create mode 100644 test/test_v1alpha1_cpu_flavor.py create mode 100644 test/test_v1alpha1_cpu_preferences.py create mode 100644 test/test_v1alpha1_device_preferences.py create mode 100644 test/test_v1alpha1_feature_preferences.py create mode 100644 test/test_v1alpha1_firmware_preferences.py create mode 100644 test/test_v1alpha1_machine_preferences.py create mode 100644 test/test_v1alpha1_memory_flavor.py create mode 100644 test/test_v1alpha1_virtual_machine_cluster_preference.py create mode 100644 test/test_v1alpha1_virtual_machine_cluster_preference_list.py create mode 100644 test/test_v1alpha1_virtual_machine_preference.py create mode 100644 test/test_v1alpha1_virtual_machine_preference_list.py create mode 100644 test/test_v1alpha1_virtual_machine_preference_spec.py diff --git a/README.md b/README.md index ecc9990b..fee5952b 100644 --- a/README.md +++ b/README.md @@ -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: v0.52.0-289-gf5973335f +- Package version: v0.53.0-157-gdf7ac17a4 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -78,10 +78,12 @@ Class | Method | HTTP request | Description *DefaultApi* | [**create_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | *DefaultApi* | [**create_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | *DefaultApi* | [**create_namespaced_virtual_machine_pool**](docs/DefaultApi.md#create_namespaced_virtual_machine_pool) | **POST** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | +*DefaultApi* | [**create_namespaced_virtual_machine_preference**](docs/DefaultApi.md#create_namespaced_virtual_machine_preference) | **POST** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | *DefaultApi* | [**create_namespaced_virtual_machine_restore**](docs/DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**create_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**create_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | *DefaultApi* | [**create_virtual_machine_cluster_flavor**](docs/DefaultApi.md#create_virtual_machine_cluster_flavor) | **POST** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | +*DefaultApi* | [**create_virtual_machine_cluster_preference**](docs/DefaultApi.md#create_virtual_machine_cluster_preference) | **POST** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | *DefaultApi* | [**delete_collection_migration_policy**](docs/DefaultApi.md#delete_collection_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | *DefaultApi* | [**delete_collection_namespaced_kube_virt**](docs/DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | *DefaultApi* | [**delete_collection_namespaced_virtual_machine**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | @@ -91,10 +93,12 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_pool**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_preference**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_preference) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | *DefaultApi* | [**delete_collection_virtual_machine_cluster_flavor**](docs/DefaultApi.md#delete_collection_virtual_machine_cluster_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | +*DefaultApi* | [**delete_collection_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_collection_virtual_machine_cluster_preference) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | *DefaultApi* | [**delete_migration_policy**](docs/DefaultApi.md#delete_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_kube_virt**](docs/DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine**](docs/DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | @@ -104,10 +108,12 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_pool**](docs/DefaultApi.md#delete_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_namespaced_virtual_machine_preference**](docs/DefaultApi.md#delete_namespaced_virtual_machine_preference) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_virtual_machine_cluster_flavor**](docs/DefaultApi.md#delete_virtual_machine_cluster_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**func1**](docs/DefaultApi.md#func1) | **GET** /healthz | *DefaultApi* | [**func7**](docs/DefaultApi.md#func7) | **GET** /openapi/v2 | *DefaultApi* | [**get_api_group_flavor_kubevirt_io**](docs/DefaultApi.md#get_api_group_flavor_kubevirt_io) | **GET** /apis/flavor.kubevirt.io/ | @@ -135,10 +141,12 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | *DefaultApi* | [**list_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | *DefaultApi* | [**list_namespaced_virtual_machine_pool**](docs/DefaultApi.md#list_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | +*DefaultApi* | [**list_namespaced_virtual_machine_preference**](docs/DefaultApi.md#list_namespaced_virtual_machine_preference) | **GET** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | *DefaultApi* | [**list_namespaced_virtual_machine_restore**](docs/DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**list_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**list_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | *DefaultApi* | [**list_virtual_machine_cluster_flavor**](docs/DefaultApi.md#list_virtual_machine_cluster_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | +*DefaultApi* | [**list_virtual_machine_cluster_preference**](docs/DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | *DefaultApi* | [**list_virtual_machine_flavor_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_flavor_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineflavors | *DefaultApi* | [**list_virtual_machine_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachines | *DefaultApi* | [**list_virtual_machine_instance_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstances | @@ -146,6 +154,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_virtual_machine_instance_preset_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancepresets | *DefaultApi* | [**list_virtual_machine_instance_replica_set_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancereplicasets | *DefaultApi* | [**list_virtual_machine_pool_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_pool_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/virtualmachinepools | +*DefaultApi* | [**list_virtual_machine_preference_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_preference_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachinepreferences | *DefaultApi* | [**list_virtual_machine_restore_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_restore_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores | *DefaultApi* | [**list_virtual_machine_snapshot_content_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents | *DefaultApi* | [**list_virtual_machine_snapshot_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots | @@ -158,10 +167,12 @@ Class | Method | HTTP request | Description *DefaultApi* | [**patch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_pool**](docs/DefaultApi.md#patch_namespaced_virtual_machine_pool) | **PATCH** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_namespaced_virtual_machine_preference**](docs/DefaultApi.md#patch_namespaced_virtual_machine_preference) | **PATCH** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_virtual_machine_cluster_flavor**](docs/DefaultApi.md#patch_virtual_machine_cluster_flavor) | **PATCH** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_virtual_machine_cluster_preference**](docs/DefaultApi.md#patch_virtual_machine_cluster_preference) | **PATCH** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_migration_policy**](docs/DefaultApi.md#read_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_kube_virt**](docs/DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine**](docs/DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | @@ -171,10 +182,12 @@ Class | Method | HTTP request | Description *DefaultApi* | [**read_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_pool**](docs/DefaultApi.md#read_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_namespaced_virtual_machine_preference**](docs/DefaultApi.md#read_namespaced_virtual_machine_preference) | **GET** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_restore**](docs/DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_virtual_machine_cluster_flavor**](docs/DefaultApi.md#read_virtual_machine_cluster_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_virtual_machine_cluster_preference**](docs/DefaultApi.md#read_virtual_machine_cluster_preference) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_migration_policy**](docs/DefaultApi.md#replace_migration_policy) | **PUT** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_kube_virt**](docs/DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine**](docs/DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | @@ -184,10 +197,12 @@ Class | Method | HTTP request | Description *DefaultApi* | [**replace_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_pool**](docs/DefaultApi.md#replace_namespaced_virtual_machine_pool) | **PUT** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_namespaced_virtual_machine_preference**](docs/DefaultApi.md#replace_namespaced_virtual_machine_preference) | **PUT** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_restore**](docs/DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_virtual_machine_cluster_flavor**](docs/DefaultApi.md#replace_virtual_machine_cluster_flavor) | **PUT** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_virtual_machine_cluster_preference**](docs/DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**v1_check_health**](docs/DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | *DefaultApi* | [**v1_console**](docs/DefaultApi.md#v1_console) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | *DefaultApi* | [**v1_filesystemlist**](docs/DefaultApi.md#v1_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | @@ -261,10 +276,12 @@ Class | Method | HTTP request | Description *DefaultApi* | [**watch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | *DefaultApi* | [**watch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | *DefaultApi* | [**watch_namespaced_virtual_machine_pool**](docs/DefaultApi.md#watch_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | +*DefaultApi* | [**watch_namespaced_virtual_machine_preference**](docs/DefaultApi.md#watch_namespaced_virtual_machine_preference) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | *DefaultApi* | [**watch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**watch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**watch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | *DefaultApi* | [**watch_virtual_machine_cluster_flavor_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_flavor_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineclusterflavors | +*DefaultApi* | [**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineclusterpreferences | *DefaultApi* | [**watch_virtual_machine_flavor_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_flavor_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineflavors | *DefaultApi* | [**watch_virtual_machine_instance_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstances | *DefaultApi* | [**watch_virtual_machine_instance_migration_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancemigrations | @@ -272,6 +289,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancereplicasets | *DefaultApi* | [**watch_virtual_machine_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachines | *DefaultApi* | [**watch_virtual_machine_pool_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_pool_list_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/virtualmachinepools | +*DefaultApi* | [**watch_virtual_machine_preference_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_preference_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachinepreferences | *DefaultApi* | [**watch_virtual_machine_restore_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_restore_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinerestores | *DefaultApi* | [**watch_virtual_machine_snapshot_content_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_snapshot_content_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshotcontents | *DefaultApi* | [**watch_virtual_machine_snapshot_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_snapshot_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshots | @@ -343,6 +361,7 @@ Class | Method | HTTP request | Description - [V1Chassis](docs/V1Chassis.md) - [V1ClientPassthroughDevices](docs/V1ClientPassthroughDevices.md) - [V1Clock](docs/V1Clock.md) + - [V1ClockOffset](docs/V1ClockOffset.md) - [V1ClockOffsetUTC](docs/V1ClockOffsetUTC.md) - [V1CloudInitConfigDriveSource](docs/V1CloudInitConfigDriveSource.md) - [V1CloudInitNoCloudSource](docs/V1CloudInitNoCloudSource.md) @@ -437,6 +456,7 @@ Class | Method | HTTP request | Description - [V1PersistentVolumeClaimVolumeSource](docs/V1PersistentVolumeClaimVolumeSource.md) - [V1PodNetwork](docs/V1PodNetwork.md) - [V1Port](docs/V1Port.md) + - [V1PreferenceMatcher](docs/V1PreferenceMatcher.md) - [V1Probe](docs/V1Probe.md) - [V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation](docs/V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation.md) - [V1QemuGuestAgentUserPasswordAccessCredentialPropagation](docs/V1QemuGuestAgentUserPasswordAccessCredentialPropagation.md) @@ -512,8 +532,16 @@ Class | Method | HTTP request | Description - [V1VolumeSnapshotStatus](docs/V1VolumeSnapshotStatus.md) - [V1VolumeStatus](docs/V1VolumeStatus.md) - [V1Watchdog](docs/V1Watchdog.md) + - [V1alpha1CPUFlavor](docs/V1alpha1CPUFlavor.md) + - [V1alpha1CPUPreferences](docs/V1alpha1CPUPreferences.md) + - [V1alpha1ClockPreferences](docs/V1alpha1ClockPreferences.md) - [V1alpha1Condition](docs/V1alpha1Condition.md) + - [V1alpha1DevicePreferences](docs/V1alpha1DevicePreferences.md) - [V1alpha1Error](docs/V1alpha1Error.md) + - [V1alpha1FeaturePreferences](docs/V1alpha1FeaturePreferences.md) + - [V1alpha1FirmwarePreferences](docs/V1alpha1FirmwarePreferences.md) + - [V1alpha1MachinePreferences](docs/V1alpha1MachinePreferences.md) + - [V1alpha1MemoryFlavor](docs/V1alpha1MemoryFlavor.md) - [V1alpha1MigrationPolicy](docs/V1alpha1MigrationPolicy.md) - [V1alpha1MigrationPolicyList](docs/V1alpha1MigrationPolicyList.md) - [V1alpha1MigrationPolicySpec](docs/V1alpha1MigrationPolicySpec.md) @@ -524,6 +552,8 @@ Class | Method | HTTP request | Description - [V1alpha1VirtualMachine](docs/V1alpha1VirtualMachine.md) - [V1alpha1VirtualMachineClusterFlavor](docs/V1alpha1VirtualMachineClusterFlavor.md) - [V1alpha1VirtualMachineClusterFlavorList](docs/V1alpha1VirtualMachineClusterFlavorList.md) + - [V1alpha1VirtualMachineClusterPreference](docs/V1alpha1VirtualMachineClusterPreference.md) + - [V1alpha1VirtualMachineClusterPreferenceList](docs/V1alpha1VirtualMachineClusterPreferenceList.md) - [V1alpha1VirtualMachineFlavor](docs/V1alpha1VirtualMachineFlavor.md) - [V1alpha1VirtualMachineFlavorList](docs/V1alpha1VirtualMachineFlavorList.md) - [V1alpha1VirtualMachineFlavorSpec](docs/V1alpha1VirtualMachineFlavorSpec.md) @@ -532,6 +562,9 @@ Class | Method | HTTP request | Description - [V1alpha1VirtualMachinePoolList](docs/V1alpha1VirtualMachinePoolList.md) - [V1alpha1VirtualMachinePoolSpec](docs/V1alpha1VirtualMachinePoolSpec.md) - [V1alpha1VirtualMachinePoolStatus](docs/V1alpha1VirtualMachinePoolStatus.md) + - [V1alpha1VirtualMachinePreference](docs/V1alpha1VirtualMachinePreference.md) + - [V1alpha1VirtualMachinePreferenceList](docs/V1alpha1VirtualMachinePreferenceList.md) + - [V1alpha1VirtualMachinePreferenceSpec](docs/V1alpha1VirtualMachinePreferenceSpec.md) - [V1alpha1VirtualMachineRestore](docs/V1alpha1VirtualMachineRestore.md) - [V1alpha1VirtualMachineRestoreList](docs/V1alpha1VirtualMachineRestoreList.md) - [V1alpha1VirtualMachineRestoreSpec](docs/V1alpha1VirtualMachineRestoreSpec.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 3f0d2a6f..ff972838 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -13,10 +13,12 @@ Method | HTTP request | Description [**create_namespaced_virtual_machine_instance_preset**](DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | [**create_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | [**create_namespaced_virtual_machine_pool**](DefaultApi.md#create_namespaced_virtual_machine_pool) | **POST** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | +[**create_namespaced_virtual_machine_preference**](DefaultApi.md#create_namespaced_virtual_machine_preference) | **POST** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | [**create_namespaced_virtual_machine_restore**](DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**create_namespaced_virtual_machine_snapshot**](DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**create_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | [**create_virtual_machine_cluster_flavor**](DefaultApi.md#create_virtual_machine_cluster_flavor) | **POST** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | +[**create_virtual_machine_cluster_preference**](DefaultApi.md#create_virtual_machine_cluster_preference) | **POST** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | [**delete_collection_migration_policy**](DefaultApi.md#delete_collection_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | [**delete_collection_namespaced_kube_virt**](DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | [**delete_collection_namespaced_virtual_machine**](DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | @@ -26,10 +28,12 @@ Method | HTTP request | Description [**delete_collection_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | [**delete_collection_namespaced_virtual_machine_pool**](DefaultApi.md#delete_collection_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | +[**delete_collection_namespaced_virtual_machine_preference**](DefaultApi.md#delete_collection_namespaced_virtual_machine_preference) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | [**delete_collection_namespaced_virtual_machine_restore**](DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**delete_collection_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**delete_collection_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | [**delete_collection_virtual_machine_cluster_flavor**](DefaultApi.md#delete_collection_virtual_machine_cluster_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | +[**delete_collection_virtual_machine_cluster_preference**](DefaultApi.md#delete_collection_virtual_machine_cluster_preference) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | [**delete_migration_policy**](DefaultApi.md#delete_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_kube_virt**](DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine**](DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | @@ -39,10 +43,12 @@ Method | HTTP request | Description [**delete_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_pool**](DefaultApi.md#delete_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_namespaced_virtual_machine_preference**](DefaultApi.md#delete_namespaced_virtual_machine_preference) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_restore**](DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**delete_virtual_machine_cluster_flavor**](DefaultApi.md#delete_virtual_machine_cluster_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_virtual_machine_cluster_preference**](DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | [**func1**](DefaultApi.md#func1) | **GET** /healthz | [**func7**](DefaultApi.md#func7) | **GET** /openapi/v2 | [**get_api_group_flavor_kubevirt_io**](DefaultApi.md#get_api_group_flavor_kubevirt_io) | **GET** /apis/flavor.kubevirt.io/ | @@ -70,10 +76,12 @@ Method | HTTP request | Description [**list_namespaced_virtual_machine_instance_preset**](DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | [**list_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | [**list_namespaced_virtual_machine_pool**](DefaultApi.md#list_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | +[**list_namespaced_virtual_machine_preference**](DefaultApi.md#list_namespaced_virtual_machine_preference) | **GET** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | [**list_namespaced_virtual_machine_restore**](DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**list_namespaced_virtual_machine_snapshot**](DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**list_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | [**list_virtual_machine_cluster_flavor**](DefaultApi.md#list_virtual_machine_cluster_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | +[**list_virtual_machine_cluster_preference**](DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | [**list_virtual_machine_flavor_for_all_namespaces**](DefaultApi.md#list_virtual_machine_flavor_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineflavors | [**list_virtual_machine_for_all_namespaces**](DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachines | [**list_virtual_machine_instance_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstances | @@ -81,6 +89,7 @@ Method | HTTP request | Description [**list_virtual_machine_instance_preset_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancepresets | [**list_virtual_machine_instance_replica_set_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancereplicasets | [**list_virtual_machine_pool_for_all_namespaces**](DefaultApi.md#list_virtual_machine_pool_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/virtualmachinepools | +[**list_virtual_machine_preference_for_all_namespaces**](DefaultApi.md#list_virtual_machine_preference_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachinepreferences | [**list_virtual_machine_restore_for_all_namespaces**](DefaultApi.md#list_virtual_machine_restore_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores | [**list_virtual_machine_snapshot_content_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents | [**list_virtual_machine_snapshot_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots | @@ -93,10 +102,12 @@ Method | HTTP request | Description [**patch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_pool**](DefaultApi.md#patch_namespaced_virtual_machine_pool) | **PATCH** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_namespaced_virtual_machine_preference**](DefaultApi.md#patch_namespaced_virtual_machine_preference) | **PATCH** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_restore**](DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_snapshot**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**patch_virtual_machine_cluster_flavor**](DefaultApi.md#patch_virtual_machine_cluster_flavor) | **PATCH** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_virtual_machine_cluster_preference**](DefaultApi.md#patch_virtual_machine_cluster_preference) | **PATCH** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | [**read_migration_policy**](DefaultApi.md#read_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_kube_virt**](DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine**](DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | @@ -106,10 +117,12 @@ Method | HTTP request | Description [**read_namespaced_virtual_machine_instance_preset**](DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_pool**](DefaultApi.md#read_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | +[**read_namespaced_virtual_machine_preference**](DefaultApi.md#read_namespaced_virtual_machine_preference) | **GET** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_restore**](DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_snapshot**](DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**read_virtual_machine_cluster_flavor**](DefaultApi.md#read_virtual_machine_cluster_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | +[**read_virtual_machine_cluster_preference**](DefaultApi.md#read_virtual_machine_cluster_preference) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | [**replace_migration_policy**](DefaultApi.md#replace_migration_policy) | **PUT** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_kube_virt**](DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine**](DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | @@ -119,10 +132,12 @@ Method | HTTP request | Description [**replace_namespaced_virtual_machine_instance_preset**](DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_pool**](DefaultApi.md#replace_namespaced_virtual_machine_pool) | **PUT** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_namespaced_virtual_machine_preference**](DefaultApi.md#replace_namespaced_virtual_machine_preference) | **PUT** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_restore**](DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_snapshot**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**replace_virtual_machine_cluster_flavor**](DefaultApi.md#replace_virtual_machine_cluster_flavor) | **PUT** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_virtual_machine_cluster_preference**](DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | [**v1_check_health**](DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | [**v1_console**](DefaultApi.md#v1_console) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | [**v1_filesystemlist**](DefaultApi.md#v1_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | @@ -196,10 +211,12 @@ Method | HTTP request | Description [**watch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | [**watch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | [**watch_namespaced_virtual_machine_pool**](DefaultApi.md#watch_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | +[**watch_namespaced_virtual_machine_preference**](DefaultApi.md#watch_namespaced_virtual_machine_preference) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | [**watch_namespaced_virtual_machine_restore**](DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**watch_namespaced_virtual_machine_snapshot**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**watch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | [**watch_virtual_machine_cluster_flavor_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_flavor_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineclusterflavors | +[**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineclusterpreferences | [**watch_virtual_machine_flavor_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_flavor_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineflavors | [**watch_virtual_machine_instance_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstances | [**watch_virtual_machine_instance_migration_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancemigrations | @@ -207,6 +224,7 @@ Method | HTTP request | Description [**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancereplicasets | [**watch_virtual_machine_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachines | [**watch_virtual_machine_pool_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_pool_list_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/virtualmachinepools | +[**watch_virtual_machine_preference_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_preference_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachinepreferences | [**watch_virtual_machine_restore_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_restore_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinerestores | [**watch_virtual_machine_snapshot_content_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_snapshot_content_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshotcontents | [**watch_virtual_machine_snapshot_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_snapshot_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshots | @@ -651,6 +669,55 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **create_namespaced_virtual_machine_preference** +> V1alpha1VirtualMachinePreference create_namespaced_virtual_machine_preference(body, namespace) + + + +Create a VirtualMachinePreference object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +body = kubevirt.V1alpha1VirtualMachinePreference() # V1alpha1VirtualMachinePreference | +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.create_namespaced_virtual_machine_preference(body, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->create_namespaced_virtual_machine_preference: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1alpha1VirtualMachinePreference**](V1alpha1VirtualMachinePreference.md)| | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +[**V1alpha1VirtualMachinePreference**](V1alpha1VirtualMachinePreference.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **create_namespaced_virtual_machine_restore** > V1alpha1VirtualMachineRestore create_namespaced_virtual_machine_restore(body, namespace) @@ -845,6 +912,53 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **create_virtual_machine_cluster_preference** +> V1alpha1VirtualMachineClusterPreference create_virtual_machine_cluster_preference(body) + + + +Create a VirtualMachineClusterPreference object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +body = kubevirt.V1alpha1VirtualMachineClusterPreference() # V1alpha1VirtualMachineClusterPreference | + +try: + api_response = api_instance.create_virtual_machine_cluster_preference(body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->create_virtual_machine_cluster_preference: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1alpha1VirtualMachineClusterPreference**](V1alpha1VirtualMachineClusterPreference.md)| | + +### Return type + +[**V1alpha1VirtualMachineClusterPreference**](V1alpha1VirtualMachineClusterPreference.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_collection_migration_policy** > K8sIoApimachineryPkgApisMetaV1Status delete_collection_migration_policy(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -1394,6 +1508,67 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_collection_namespaced_virtual_machine_preference** +> K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_preference(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Delete a collection of VirtualMachinePreference objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_namespaced_virtual_machine_preference(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_preference: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_collection_namespaced_virtual_machine_restore** > K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_restore(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -1638,6 +1813,67 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_collection_virtual_machine_cluster_preference** +> K8sIoApimachineryPkgApisMetaV1Status delete_collection_virtual_machine_cluster_preference(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Delete a collection of VirtualMachineClusterPreference objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_virtual_machine_cluster_preference(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->delete_collection_virtual_machine_cluster_preference: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_migration_policy** > K8sIoApimachineryPkgApisMetaV1Status delete_migration_policy(name, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -2149,6 +2385,63 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_namespaced_virtual_machine_preference** +> K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_preference(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + + + +Delete a VirtualMachinePreference object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.K8sIoApimachineryPkgApisMetaV1DeleteOptions() # K8sIoApimachineryPkgApisMetaV1DeleteOptions | +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + +try: + api_response = api_instance.delete_namespaced_virtual_machine_preference(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_preference: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**K8sIoApimachineryPkgApisMetaV1DeleteOptions**](K8sIoApimachineryPkgApisMetaV1DeleteOptions.md)| | + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_namespaced_virtual_machine_restore** > K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_restore(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -2375,6 +2668,61 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_virtual_machine_cluster_preference** +> K8sIoApimachineryPkgApisMetaV1Status delete_virtual_machine_cluster_preference(name, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + + + +Delete a VirtualMachineClusterPreference object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +body = kubevirt.K8sIoApimachineryPkgApisMetaV1DeleteOptions() # K8sIoApimachineryPkgApisMetaV1DeleteOptions | +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + +try: + api_response = api_instance.delete_virtual_machine_cluster_preference(name, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->delete_virtual_machine_cluster_preference: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **body** | [**K8sIoApimachineryPkgApisMetaV1DeleteOptions**](K8sIoApimachineryPkgApisMetaV1DeleteOptions.md)| | + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **func1** > func1() @@ -3725,6 +4073,69 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **list_namespaced_virtual_machine_preference** +> V1alpha1VirtualMachinePreferenceList list_namespaced_virtual_machine_preference(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Get a list of VirtualMachinePreference objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_virtual_machine_preference(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->list_namespaced_virtual_machine_preference: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1VirtualMachinePreferenceList**](V1alpha1VirtualMachinePreferenceList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **list_namespaced_virtual_machine_restore** > V1alpha1VirtualMachineRestoreList list_namespaced_virtual_machine_restore(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -3856,7 +4267,70 @@ No authorization required -Get a list of VirtualMachineSnapshotContent objects. +Get a list of VirtualMachineSnapshotContent objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_virtual_machine_snapshot_content(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->list_namespaced_virtual_machine_snapshot_content: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1VirtualMachineSnapshotContentList**](V1alpha1VirtualMachineSnapshotContentList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_virtual_machine_cluster_flavor** +> V1alpha1VirtualMachineClusterFlavorList list_virtual_machine_cluster_flavor(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Get a list of VirtualMachineClusterFlavor objects. ### Example ```python @@ -3868,7 +4342,6 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) @@ -3879,17 +4352,16 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_virtual_machine_snapshot_content(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_virtual_machine_cluster_flavor(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_namespaced_virtual_machine_snapshot_content: %s\n" % e) + print("Exception when calling DefaultApi->list_virtual_machine_cluster_flavor: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| Object name and auth scope, such as for teams and projects | **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] @@ -3901,7 +4373,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineSnapshotContentList**](V1alpha1VirtualMachineSnapshotContentList.md) +[**V1alpha1VirtualMachineClusterFlavorList**](V1alpha1VirtualMachineClusterFlavorList.md) ### Authorization @@ -3914,12 +4386,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_virtual_machine_cluster_flavor** -> V1alpha1VirtualMachineClusterFlavorList list_virtual_machine_cluster_flavor(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_virtual_machine_cluster_preference** +> V1alpha1VirtualMachineClusterPreferenceList list_virtual_machine_cluster_preference(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of VirtualMachineClusterFlavor objects. +Get a list of VirtualMachineClusterPreference objects. ### Example ```python @@ -3941,10 +4413,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_virtual_machine_cluster_flavor(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_virtual_machine_cluster_preference(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_virtual_machine_cluster_flavor: %s\n" % e) + print("Exception when calling DefaultApi->list_virtual_machine_cluster_preference: %s\n" % e) ``` ### Parameters @@ -3962,7 +4434,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineClusterFlavorList**](V1alpha1VirtualMachineClusterFlavorList.md) +[**V1alpha1VirtualMachineClusterPreferenceList**](V1alpha1VirtualMachineClusterPreferenceList.md) ### Authorization @@ -4402,6 +4874,67 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **list_virtual_machine_preference_for_all_namespaces** +> V1alpha1VirtualMachinePreferenceList list_virtual_machine_preference_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Get a list of all VirtualMachinePreference objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_virtual_machine_preference_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->list_virtual_machine_preference_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1VirtualMachinePreferenceList**](V1alpha1VirtualMachinePreferenceList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **list_virtual_machine_restore_for_all_namespaces** > V1alpha1VirtualMachineRestoreList list_virtual_machine_restore_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -5042,6 +5575,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **patch_namespaced_virtual_machine_preference** +> V1alpha1VirtualMachinePreference patch_namespaced_virtual_machine_preference(name, namespace, body) + + + +Patch a VirtualMachinePreference object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | + +try: + api_response = api_instance.patch_namespaced_virtual_machine_preference(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_preference: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**K8sIoApimachineryPkgApisMetaV1Patch**](K8sIoApimachineryPkgApisMetaV1Patch.md)| | + +### Return type + +[**V1alpha1VirtualMachinePreference**](V1alpha1VirtualMachinePreference.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **patch_namespaced_virtual_machine_restore** > V1alpha1VirtualMachineRestore patch_namespaced_virtual_machine_restore(name, namespace, body) @@ -5244,6 +5828,55 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **patch_virtual_machine_cluster_preference** +> V1alpha1VirtualMachineClusterPreference patch_virtual_machine_cluster_preference(name, body) + + + +Patch a VirtualMachineClusterPreference object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | + +try: + api_response = api_instance.patch_virtual_machine_cluster_preference(name, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->patch_virtual_machine_cluster_preference: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **body** | [**K8sIoApimachineryPkgApisMetaV1Patch**](K8sIoApimachineryPkgApisMetaV1Patch.md)| | + +### Return type + +[**V1alpha1VirtualMachineClusterPreference**](V1alpha1VirtualMachineClusterPreference.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **read_migration_policy** > V1alpha1MigrationPolicy read_migration_policy(name, exact=exact, export=export) @@ -5719,6 +6352,59 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **read_namespaced_virtual_machine_preference** +> V1alpha1VirtualMachinePreference read_namespaced_virtual_machine_preference(name, namespace, exact=exact, export=export) + + + +Get a VirtualMachinePreference object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_namespaced_virtual_machine_preference(name, namespace, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->read_namespaced_virtual_machine_preference: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1alpha1VirtualMachinePreference**](V1alpha1VirtualMachinePreference.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **read_namespaced_virtual_machine_restore** > V1alpha1VirtualMachineRestore read_namespaced_virtual_machine_restore(name, namespace, exact=exact, export=export) @@ -5903,7 +6589,58 @@ try: api_response = api_instance.read_virtual_machine_cluster_flavor(name, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->read_virtual_machine_cluster_flavor: %s\n" % e) + print("Exception when calling DefaultApi->read_virtual_machine_cluster_flavor: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1alpha1VirtualMachineClusterFlavor**](V1alpha1VirtualMachineClusterFlavor.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_virtual_machine_cluster_preference** +> V1alpha1VirtualMachineClusterPreference read_virtual_machine_cluster_preference(name, exact=exact, export=export) + + + +Get a VirtualMachineClusterPreference object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_virtual_machine_cluster_preference(name, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->read_virtual_machine_cluster_preference: %s\n" % e) ``` ### Parameters @@ -5916,7 +6653,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineClusterFlavor**](V1alpha1VirtualMachineClusterFlavor.md) +[**V1alpha1VirtualMachineClusterPreference**](V1alpha1VirtualMachineClusterPreference.md) ### Authorization @@ -6386,6 +7123,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **replace_namespaced_virtual_machine_preference** +> V1alpha1VirtualMachinePreference replace_namespaced_virtual_machine_preference(name, namespace, body) + + + +Update a VirtualMachinePreference object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1alpha1VirtualMachinePreference() # V1alpha1VirtualMachinePreference | + +try: + api_response = api_instance.replace_namespaced_virtual_machine_preference(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_preference: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1VirtualMachinePreference**](V1alpha1VirtualMachinePreference.md)| | + +### Return type + +[**V1alpha1VirtualMachinePreference**](V1alpha1VirtualMachinePreference.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **replace_namespaced_virtual_machine_restore** > V1alpha1VirtualMachineRestore replace_namespaced_virtual_machine_restore(name, namespace, body) @@ -6588,6 +7376,55 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **replace_virtual_machine_cluster_preference** +> V1alpha1VirtualMachineClusterPreference replace_virtual_machine_cluster_preference(name, body) + + + +Update a VirtualMachineClusterPreference object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +body = kubevirt.V1alpha1VirtualMachineClusterPreference() # V1alpha1VirtualMachineClusterPreference | + +try: + api_response = api_instance.replace_virtual_machine_cluster_preference(name, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->replace_virtual_machine_cluster_preference: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **body** | [**V1alpha1VirtualMachineClusterPreference**](V1alpha1VirtualMachineClusterPreference.md)| | + +### Return type + +[**V1alpha1VirtualMachineClusterPreference**](V1alpha1VirtualMachineClusterPreference.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1_check_health** > str v1_check_health() @@ -10211,6 +11048,69 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **watch_namespaced_virtual_machine_preference** +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_preference(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Watch a VirtualMachinePreference object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_namespaced_virtual_machine_preference(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->watch_namespaced_virtual_machine_preference: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **watch_namespaced_virtual_machine_restore** > K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_restore(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -10461,6 +11361,67 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **watch_virtual_machine_cluster_preference_list_for_all_namespaces** +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_cluster_preference_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Watch a VirtualMachineClusterPreferenceList object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_virtual_machine_cluster_preference_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->watch_virtual_machine_cluster_preference_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **watch_virtual_machine_flavor_list_for_all_namespaces** > K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_flavor_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -10888,6 +11849,67 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **watch_virtual_machine_preference_list_for_all_namespaces** +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_preference_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Watch a VirtualMachinePreferenceList object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_virtual_machine_preference_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->watch_virtual_machine_preference_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **watch_virtual_machine_restore_list_for_all_namespaces** > K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_restore_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) diff --git a/docs/V1ClockOffset.md b/docs/V1ClockOffset.md new file mode 100644 index 00000000..f134ce43 --- /dev/null +++ b/docs/V1ClockOffset.md @@ -0,0 +1,11 @@ +# V1ClockOffset + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**timezone** | **str** | Timezone sets the guest clock to the specified timezone. Zone name follows the TZ environment variable format (e.g. 'America/New_York'). | [optional] +**utc** | [**V1ClockOffsetUTC**](V1ClockOffsetUTC.md) | UTC sets the guest clock to UTC on each boot. If an offset is specified, guest changes to the clock will be kept during reboots and are not reset. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PreferenceMatcher.md b/docs/V1PreferenceMatcher.md new file mode 100644 index 00000000..8a5d1908 --- /dev/null +++ b/docs/V1PreferenceMatcher.md @@ -0,0 +1,11 @@ +# V1PreferenceMatcher + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kind** | **str** | Kind specifies which preference resource is referenced. Allowed values are: \"VirtualMachinePreference\" and \"VirtualMachineClusterPreference\". If not specified, \"VirtualMachineClusterPreference\" is used by default. | [optional] +**name** | **str** | Name is the name of the VirtualMachinePreference or VirtualMachineClusterPreference | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineSpec.md b/docs/V1VirtualMachineSpec.md index f6bbcc34..62a3280a 100644 --- a/docs/V1VirtualMachineSpec.md +++ b/docs/V1VirtualMachineSpec.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data_volume_templates** | [**list[V1DataVolumeTemplateSpec]**](V1DataVolumeTemplateSpec.md) | dataVolumeTemplates is a list of dataVolumes that the VirtualMachineInstance template can reference. DataVolumes in this list are dynamically created for the VirtualMachine and are tied to the VirtualMachine's life-cycle. | [optional] **flavor** | [**V1FlavorMatcher**](V1FlavorMatcher.md) | FlavorMatcher references a flavor that is used to fill fields in Template | [optional] +**preference** | [**V1PreferenceMatcher**](V1PreferenceMatcher.md) | PreferenceMatcher references a set of preference that is used to fill fields in Template | [optional] **run_strategy** | **str** | Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running | [optional] **running** | **bool** | Running controls whether the associatied VirtualMachineInstance is created or not Mutually exclusive with RunStrategy | [optional] **template** | [**V1VirtualMachineInstanceTemplateSpec**](V1VirtualMachineInstanceTemplateSpec.md) | Template is the direct specification of VirtualMachineInstance | diff --git a/docs/V1alpha1CPUFlavor.md b/docs/V1alpha1CPUFlavor.md new file mode 100644 index 00000000..51635064 --- /dev/null +++ b/docs/V1alpha1CPUFlavor.md @@ -0,0 +1,15 @@ +# V1alpha1CPUFlavor + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dedicated_cpu_placement** | **bool** | DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. | [optional] +**guest** | **int** | Required number of vCPUs to expose to the guest. The resulting CPU topology being derived from the optional PreferredCPUTopology attribute of CPUPreferences that itself defaults to PreferCores. | +**isolate_emulator_thread** | **bool** | IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it. | [optional] +**model** | **str** | Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. | [optional] +**numa** | [**V1NUMA**](V1NUMA.md) | NUMA allows specifying settings for the guest NUMA topology | [optional] +**realtime** | [**V1Realtime**](V1Realtime.md) | Realtime instructs the virt-launcher to tune the VMI for lower latency, optional for real time workloads | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1CPUPreferences.md b/docs/V1alpha1CPUPreferences.md new file mode 100644 index 00000000..13a07c3c --- /dev/null +++ b/docs/V1alpha1CPUPreferences.md @@ -0,0 +1,10 @@ +# V1alpha1CPUPreferences + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferred_cpu_topology** | **str** | PreferredCPUTopology optionally defines the preferred guest visible CPU topology, defaults to PreferCores. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1ClockPreferences.md b/docs/V1alpha1ClockPreferences.md new file mode 100644 index 00000000..aa9b70a7 --- /dev/null +++ b/docs/V1alpha1ClockPreferences.md @@ -0,0 +1,11 @@ +# V1alpha1ClockPreferences + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferred_clock_offset** | [**V1ClockOffset**](V1ClockOffset.md) | ClockOffset allows specifying the UTC offset or the timezone of the guest clock. | [optional] +**preferred_timer** | [**V1Timer**](V1Timer.md) | Timer specifies whih timers are attached to the vmi. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1DevicePreferences.md b/docs/V1alpha1DevicePreferences.md new file mode 100644 index 00000000..ad61ac2d --- /dev/null +++ b/docs/V1alpha1DevicePreferences.md @@ -0,0 +1,31 @@ +# V1alpha1DevicePreferences + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferred_autoattach_graphics_device** | **bool** | PreferredAutoattachGraphicsDevice optionally defines the preferred value of AutoattachGraphicsDevice | [optional] +**preferred_autoattach_mem_balloon** | **bool** | PreferredAutoattachMemBalloon optionally defines the preferred value of AutoattachMemBalloon | [optional] +**preferred_autoattach_pod_interface** | **bool** | PreferredAutoattachPodInterface optionally defines the preferred value of AutoattachPodInterface | [optional] +**preferred_autoattach_serial_console** | **bool** | PreferredAutoattachSerialConsole optionally defines the preferred value of AutoattachSerialConsole | [optional] +**preferred_block_multi_queue** | **bool** | PreferredBlockMultiQueue optionally enables the vhost multiqueue feature for virtio disks. | [optional] +**preferred_cdrom_bus** | **str** | PreferredCdromBus optionally defines the preferred bus for Cdrom Disk devices. | [optional] +**preferred_disable_hotplug** | **bool** | PreferredDisableHotplug optionally defines the preferred value of DisableHotplug | [optional] +**preferred_disk_block_size** | [**V1BlockSize**](V1BlockSize.md) | PreferredBlockSize optionally defines the block size of Disk devices. | [optional] +**preferred_disk_bus** | **str** | PreferredDiskBus optionally defines the preferred bus for Disk Disk devices. | [optional] +**preferred_disk_cache** | **str** | PreferredCache optionally defines the DriverCache to be used by Disk devices. | [optional] +**preferred_disk_dedicated_io_thread** | **bool** | PreferredDedicatedIoThread optionally enables dedicated IO threads for Disk devices. | [optional] +**preferred_disk_io** | **str** | PreferredIo optionally defines the QEMU disk IO mode to be used by Disk devices. | [optional] +**preferred_input_bus** | **str** | PreferredInputBus optionally defines the preferred bus for Input devices. | [optional] +**preferred_input_type** | **str** | PreferredInputType optionally defines the preferred type for Input devices. | [optional] +**preferred_interface_model** | **str** | PreferredInterfaceModel optionally defines the preferred model to be used by Interface devices. | [optional] +**preferred_lun_bus** | **str** | PreferredLunBus optionally defines the preferred bus for Lun Disk devices. | [optional] +**preferred_network_interface_multi_queue** | **bool** | PreferredNetworkInterfaceMultiQueue optionally enables the vhost multiqueue feature for virtio interfaces. | [optional] +**preferred_rng** | [**V1Rng**](V1Rng.md) | PreferredRng optionally defines the preferred rng device to be used. | [optional] +**preferred_sound_model** | **str** | PreferredSoundModel optionally defines the preferred model for Sound devices. | [optional] +**preferred_tpm** | [**V1TPMDevice**](V1TPMDevice.md) | PreferredTPM optionally defines the preferred TPM device to be used. | [optional] +**preferred_use_virtio_transitional** | **bool** | PreferredUseVirtioTransitional optionally defines the preferred value of UseVirtioTransitional | [optional] +**preferred_virtual_gpu_options** | [**V1VGPUOptions**](V1VGPUOptions.md) | PreferredVirtualGPUOptions optionally defines the preferred value of VirtualGPUOptions | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1FeaturePreferences.md b/docs/V1alpha1FeaturePreferences.md new file mode 100644 index 00000000..7c06abe7 --- /dev/null +++ b/docs/V1alpha1FeaturePreferences.md @@ -0,0 +1,15 @@ +# V1alpha1FeaturePreferences + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferred_acpi** | [**V1FeatureState**](V1FeatureState.md) | PreferredAcpi optionally enables the ACPI feature | [optional] +**preferred_apic** | [**V1FeatureAPIC**](V1FeatureAPIC.md) | PreferredApic optionally enables and configures the APIC feature | [optional] +**preferred_hyperv** | [**V1FeatureHyperv**](V1FeatureHyperv.md) | PreferredHyperv optionally enables and configures HyperV features | [optional] +**preferred_kvm** | [**V1FeatureKVM**](V1FeatureKVM.md) | PreferredKvm optionally enables and configures KVM features | [optional] +**preferred_pvspinlock** | [**V1FeatureState**](V1FeatureState.md) | PreferredPvspinlock optionally enables the Pvspinlock feature | [optional] +**preferred_smm** | [**V1FeatureState**](V1FeatureState.md) | PreferredSmm optionally enables the SMM feature | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1FirmwarePreferences.md b/docs/V1alpha1FirmwarePreferences.md new file mode 100644 index 00000000..6dd4f793 --- /dev/null +++ b/docs/V1alpha1FirmwarePreferences.md @@ -0,0 +1,13 @@ +# V1alpha1FirmwarePreferences + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferred_use_bios** | **bool** | PreferredUseBios optionally enables BIOS | [optional] +**preferred_use_bios_serial** | **bool** | PreferredUseBiosSerial optionally transmitts BIOS output over the serial. Requires PreferredUseBios to be enabled. | [optional] +**preferred_use_efi** | **bool** | PreferredUseEfi optionally enables EFI | [optional] +**preferred_use_secure_boot** | **bool** | PreferredUseSecureBoot optionally enables SecureBoot and the OVMF roms will be swapped for SecureBoot-enabled ones. Requires PreferredUseEfi and PreferredSmm to be enabled. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1MachinePreferences.md b/docs/V1alpha1MachinePreferences.md new file mode 100644 index 00000000..4abd2343 --- /dev/null +++ b/docs/V1alpha1MachinePreferences.md @@ -0,0 +1,10 @@ +# V1alpha1MachinePreferences + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferred_machine_type** | **str** | PreferredMachineType optionally defines the preferred machine type to use. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1MemoryFlavor.md b/docs/V1alpha1MemoryFlavor.md new file mode 100644 index 00000000..b43027b4 --- /dev/null +++ b/docs/V1alpha1MemoryFlavor.md @@ -0,0 +1,11 @@ +# V1alpha1MemoryFlavor + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guest** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | Required amount of memory which is visible inside the guest OS. | [optional] +**hugepages** | [**V1Hugepages**](V1Hugepages.md) | Optionally enables the use of hugepages for the VirtualMachineInstance instead of regular memory. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineClusterFlavor.md b/docs/V1alpha1VirtualMachineClusterFlavor.md index 6e7fcc70..6dca92d7 100644 --- a/docs/V1alpha1VirtualMachineClusterFlavor.md +++ b/docs/V1alpha1VirtualMachineClusterFlavor.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1VirtualMachineFlavorSpec**](V1alpha1VirtualMachineFlavorSpec.md) | VirtualMachineFlavorSpec for the flavor | +**spec** | [**V1alpha1VirtualMachineFlavorSpec**](V1alpha1VirtualMachineFlavorSpec.md) | Required spec describing the flavor | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineClusterPreference.md b/docs/V1alpha1VirtualMachineClusterPreference.md new file mode 100644 index 00000000..e9fcf6c8 --- /dev/null +++ b/docs/V1alpha1VirtualMachineClusterPreference.md @@ -0,0 +1,13 @@ +# V1alpha1VirtualMachineClusterPreference + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha1VirtualMachinePreferenceSpec**](V1alpha1VirtualMachinePreferenceSpec.md) | Required spec describing the preferences | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineClusterPreferenceList.md b/docs/V1alpha1VirtualMachineClusterPreferenceList.md new file mode 100644 index 00000000..fcbaf39c --- /dev/null +++ b/docs/V1alpha1VirtualMachineClusterPreferenceList.md @@ -0,0 +1,13 @@ +# V1alpha1VirtualMachineClusterPreferenceList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list[V1alpha1VirtualMachineClusterPreference]**](V1alpha1VirtualMachineClusterPreference.md) | | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineFlavor.md b/docs/V1alpha1VirtualMachineFlavor.md index b7a654f2..f3962f4a 100644 --- a/docs/V1alpha1VirtualMachineFlavor.md +++ b/docs/V1alpha1VirtualMachineFlavor.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1VirtualMachineFlavorSpec**](V1alpha1VirtualMachineFlavorSpec.md) | VirtualMachineFlavorSpec for the flavor | +**spec** | [**V1alpha1VirtualMachineFlavorSpec**](V1alpha1VirtualMachineFlavorSpec.md) | Required spec describing the flavor | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineFlavorSpec.md b/docs/V1alpha1VirtualMachineFlavorSpec.md index edbde182..687b99dc 100644 --- a/docs/V1alpha1VirtualMachineFlavorSpec.md +++ b/docs/V1alpha1VirtualMachineFlavorSpec.md @@ -3,7 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cpu** | [**V1CPU**](V1CPU.md) | | [optional] +**cpu** | [**V1alpha1CPUFlavor**](V1alpha1CPUFlavor.md) | Required CPU related attributes of the flavor. | +**gpus** | [**list[V1GPU]**](V1GPU.md) | Optionally defines any GPU devices associated with the flavor. | [optional] +**host_devices** | [**list[V1HostDevice]**](V1HostDevice.md) | Optionally defines any HostDevices associated with the flavor. | [optional] +**io_threads_policy** | **str** | Optionally defines the IOThreadsPolicy to be used by the flavor. | [optional] +**launch_security** | [**V1LaunchSecurity**](V1LaunchSecurity.md) | Optionally defines the LaunchSecurity to be used by the flavor. | [optional] +**memory** | [**V1alpha1MemoryFlavor**](V1alpha1MemoryFlavor.md) | Required Memory related attributes of the flavor. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachinePreference.md b/docs/V1alpha1VirtualMachinePreference.md new file mode 100644 index 00000000..5fd345e9 --- /dev/null +++ b/docs/V1alpha1VirtualMachinePreference.md @@ -0,0 +1,13 @@ +# V1alpha1VirtualMachinePreference + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha1VirtualMachinePreferenceSpec**](V1alpha1VirtualMachinePreferenceSpec.md) | Required spec describing the preferences | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachinePreferenceList.md b/docs/V1alpha1VirtualMachinePreferenceList.md new file mode 100644 index 00000000..7380e139 --- /dev/null +++ b/docs/V1alpha1VirtualMachinePreferenceList.md @@ -0,0 +1,13 @@ +# V1alpha1VirtualMachinePreferenceList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list[V1alpha1VirtualMachinePreference]**](V1alpha1VirtualMachinePreference.md) | | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachinePreferenceSpec.md b/docs/V1alpha1VirtualMachinePreferenceSpec.md new file mode 100644 index 00000000..9686656d --- /dev/null +++ b/docs/V1alpha1VirtualMachinePreferenceSpec.md @@ -0,0 +1,15 @@ +# V1alpha1VirtualMachinePreferenceSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**clock** | [**V1alpha1ClockPreferences**](V1alpha1ClockPreferences.md) | Clock optionally defines preferences associated with the Clock attribute of a VirtualMachineInstance DomainSpec | [optional] +**cpu** | [**V1alpha1CPUPreferences**](V1alpha1CPUPreferences.md) | CPU optionally defines preferences associated with the CPU attribute of a VirtualMachineInstance DomainSpec | [optional] +**devices** | [**V1alpha1DevicePreferences**](V1alpha1DevicePreferences.md) | Devices optionally defines preferences associated with the Devices attribute of a VirtualMachineInstance DomainSpec | [optional] +**features** | [**V1alpha1FeaturePreferences**](V1alpha1FeaturePreferences.md) | Features optionally defines preferences associated with the Features attribute of a VirtualMachineInstance DomainSpec | [optional] +**firmware** | [**V1alpha1FirmwarePreferences**](V1alpha1FirmwarePreferences.md) | Firmware optionally defines preferences associated with the Firmware attribute of a VirtualMachineInstance DomainSpec | [optional] +**machine** | [**V1alpha1MachinePreferences**](V1alpha1MachinePreferences.md) | Machine optionally defines preferences associated with the Machine attribute of a VirtualMachineInstance DomainSpec | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 8f79cf41..312925bf 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.52.0-289-gf5973335f" + release_note="Auto-generated client v0.53.0-157-gdf7ac17a4" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 484ae8b2..6a5c558d 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -213,6 +213,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_clock.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_clock.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Clock.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_clock_offset.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_clock_offset.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ClockOffset.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_clock_offset_utc.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_clock_offset_utc.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ClockOffsetUTC.md @@ -495,6 +498,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_port.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_port.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Port.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_preference_matcher.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_preference_matcher.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PreferenceMatcher.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_probe.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_probe.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Probe.md @@ -720,12 +726,36 @@ 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_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Watchdog.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_cpu_flavor.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_cpu_flavor.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1CPUFlavor.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_cpu_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_cpu_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1CPUPreferences.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_clock_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_clock_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1ClockPreferences.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_condition.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_condition.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1Condition.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_device_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_device_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DevicePreferences.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_error.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_error.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1Error.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_feature_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_feature_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1FeaturePreferences.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_firmware_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_firmware_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1FirmwarePreferences.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_machine_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_machine_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1MachinePreferences.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_memory_flavor.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_memory_flavor.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1MemoryFlavor.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_migration_policy.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_migration_policy.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1MigrationPolicy.md @@ -756,6 +786,12 @@ 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/v1alpha1_virtual_machine_cluster_flavor_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_cluster_flavor_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineClusterFlavorList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_cluster_preference.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_cluster_preference.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineClusterPreference.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_cluster_preference_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_cluster_preference_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineClusterPreferenceList.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_flavor.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_flavor.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineFlavor.md @@ -780,6 +816,15 @@ 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/v1alpha1_virtual_machine_pool_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_preference.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_preference.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePreference.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_preference_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_preference_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePreferenceList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_preference_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_preference_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePreferenceSpec.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_restore.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_restore.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineRestore.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 973f2a21..40e3ba5b 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -78,6 +78,7 @@ from .models.v1_chassis import V1Chassis from .models.v1_client_passthrough_devices import V1ClientPassthroughDevices from .models.v1_clock import V1Clock +from .models.v1_clock_offset import V1ClockOffset from .models.v1_clock_offset_utc import V1ClockOffsetUTC from .models.v1_cloud_init_config_drive_source import V1CloudInitConfigDriveSource from .models.v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource @@ -172,6 +173,7 @@ from .models.v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource from .models.v1_pod_network import V1PodNetwork from .models.v1_port import V1Port +from .models.v1_preference_matcher import V1PreferenceMatcher from .models.v1_probe import V1Probe from .models.v1_qemu_guest_agent_ssh_public_key_access_credential_propagation import V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation from .models.v1_qemu_guest_agent_user_password_access_credential_propagation import V1QemuGuestAgentUserPasswordAccessCredentialPropagation @@ -247,8 +249,16 @@ from .models.v1_volume_snapshot_status import V1VolumeSnapshotStatus from .models.v1_volume_status import V1VolumeStatus from .models.v1_watchdog import V1Watchdog +from .models.v1alpha1_cpu_flavor import V1alpha1CPUFlavor +from .models.v1alpha1_cpu_preferences import V1alpha1CPUPreferences +from .models.v1alpha1_clock_preferences import V1alpha1ClockPreferences from .models.v1alpha1_condition import V1alpha1Condition +from .models.v1alpha1_device_preferences import V1alpha1DevicePreferences from .models.v1alpha1_error import V1alpha1Error +from .models.v1alpha1_feature_preferences import V1alpha1FeaturePreferences +from .models.v1alpha1_firmware_preferences import V1alpha1FirmwarePreferences +from .models.v1alpha1_machine_preferences import V1alpha1MachinePreferences +from .models.v1alpha1_memory_flavor import V1alpha1MemoryFlavor from .models.v1alpha1_migration_policy import V1alpha1MigrationPolicy from .models.v1alpha1_migration_policy_list import V1alpha1MigrationPolicyList from .models.v1alpha1_migration_policy_spec import V1alpha1MigrationPolicySpec @@ -259,6 +269,8 @@ from .models.v1alpha1_virtual_machine import V1alpha1VirtualMachine from .models.v1alpha1_virtual_machine_cluster_flavor import V1alpha1VirtualMachineClusterFlavor from .models.v1alpha1_virtual_machine_cluster_flavor_list import V1alpha1VirtualMachineClusterFlavorList +from .models.v1alpha1_virtual_machine_cluster_preference import V1alpha1VirtualMachineClusterPreference +from .models.v1alpha1_virtual_machine_cluster_preference_list import V1alpha1VirtualMachineClusterPreferenceList from .models.v1alpha1_virtual_machine_flavor import V1alpha1VirtualMachineFlavor from .models.v1alpha1_virtual_machine_flavor_list import V1alpha1VirtualMachineFlavorList from .models.v1alpha1_virtual_machine_flavor_spec import V1alpha1VirtualMachineFlavorSpec @@ -267,6 +279,9 @@ from .models.v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList from .models.v1alpha1_virtual_machine_pool_spec import V1alpha1VirtualMachinePoolSpec from .models.v1alpha1_virtual_machine_pool_status import V1alpha1VirtualMachinePoolStatus +from .models.v1alpha1_virtual_machine_preference import V1alpha1VirtualMachinePreference +from .models.v1alpha1_virtual_machine_preference_list import V1alpha1VirtualMachinePreferenceList +from .models.v1alpha1_virtual_machine_preference_spec import V1alpha1VirtualMachinePreferenceSpec from .models.v1alpha1_virtual_machine_restore import V1alpha1VirtualMachineRestore from .models.v1alpha1_virtual_machine_restore_list import V1alpha1VirtualMachineRestoreList from .models.v1alpha1_virtual_machine_restore_spec import V1alpha1VirtualMachineRestoreSpec diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 14ca2dad..0891e0d2 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.52.0-289-gf5973335f/python' + self.user_agent = 'Swagger-Codegen/v0.53.0-157-gdf7ac17a4/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index f02f980e..c2eb8afa 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -1032,6 +1032,117 @@ def create_namespaced_virtual_machine_pool_with_http_info(self, body, namespace, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def create_namespaced_virtual_machine_preference(self, body, namespace, **kwargs): + """ + Create a VirtualMachinePreference object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_virtual_machine_preference(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1VirtualMachinePreference body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1alpha1VirtualMachinePreference + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_virtual_machine_preference_with_http_info(body, namespace, **kwargs) + else: + (data) = self.create_namespaced_virtual_machine_preference_with_http_info(body, namespace, **kwargs) + return data + + def create_namespaced_virtual_machine_preference_with_http_info(self, body, namespace, **kwargs): + """ + Create a VirtualMachinePreference object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_virtual_machine_preference_with_http_info(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1VirtualMachinePreference body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1alpha1VirtualMachinePreference + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_virtual_machine_preference" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine_preference`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_preference`") + + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachinePreference', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def create_namespaced_virtual_machine_restore(self, body, namespace, **kwargs): """ Create a VirtualMachineRestore object. @@ -1469,6 +1580,110 @@ def create_virtual_machine_cluster_flavor_with_http_info(self, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def create_virtual_machine_cluster_preference(self, body, **kwargs): + """ + Create a VirtualMachineClusterPreference object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_virtual_machine_cluster_preference(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1VirtualMachineClusterPreference body: (required) + :return: V1alpha1VirtualMachineClusterPreference + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_virtual_machine_cluster_preference_with_http_info(body, **kwargs) + else: + (data) = self.create_virtual_machine_cluster_preference_with_http_info(body, **kwargs) + return data + + def create_virtual_machine_cluster_preference_with_http_info(self, body, **kwargs): + """ + Create a VirtualMachineClusterPreference object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_virtual_machine_cluster_preference_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1VirtualMachineClusterPreference body: (required) + :return: V1alpha1VirtualMachineClusterPreference + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_virtual_machine_cluster_preference" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_virtual_machine_cluster_preference`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineClusterPreference', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def delete_collection_migration_policy(self, **kwargs): """ Delete a collection of MigrationPolicy objects. @@ -2594,16 +2809,16 @@ def delete_collection_namespaced_virtual_machine_pool_with_http_info(self, **kwa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_virtual_machine_restore(self, **kwargs): + def delete_collection_namespaced_virtual_machine_preference(self, **kwargs): """ - Delete a collection of VirtualMachineRestore objects. + Delete a collection of VirtualMachinePreference objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_restore(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_preference(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2621,21 +2836,21 @@ def delete_collection_namespaced_virtual_machine_restore(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_virtual_machine_restore_with_http_info(**kwargs) + return self.delete_collection_namespaced_virtual_machine_preference_with_http_info(**kwargs) else: - (data) = self.delete_collection_namespaced_virtual_machine_restore_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_preference_with_http_info(**kwargs) return data - def delete_collection_namespaced_virtual_machine_restore_with_http_info(self, **kwargs): + def delete_collection_namespaced_virtual_machine_preference_with_http_info(self, **kwargs): """ - Delete a collection of VirtualMachineRestore objects. + Delete a collection of VirtualMachinePreference objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_restore_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_preference_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2663,7 +2878,7 @@ def delete_collection_namespaced_virtual_machine_restore_with_http_info(self, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_virtual_machine_restore" % key + " to method delete_collection_namespaced_virtual_machine_preference" % key ) params[key] = val del params['kwargs'] @@ -2704,7 +2919,7 @@ def delete_collection_namespaced_virtual_machine_restore_with_http_info(self, ** # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores', 'DELETE', + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'DELETE', path_params, query_params, header_params, @@ -2719,16 +2934,16 @@ def delete_collection_namespaced_virtual_machine_restore_with_http_info(self, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_virtual_machine_snapshot(self, **kwargs): + def delete_collection_namespaced_virtual_machine_restore(self, **kwargs): """ - Delete a collection of VirtualMachineSnapshot objects. + Delete a collection of VirtualMachineRestore objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_snapshot(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_restore(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2746,21 +2961,21 @@ def delete_collection_namespaced_virtual_machine_snapshot(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_virtual_machine_snapshot_with_http_info(**kwargs) + return self.delete_collection_namespaced_virtual_machine_restore_with_http_info(**kwargs) else: - (data) = self.delete_collection_namespaced_virtual_machine_snapshot_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_restore_with_http_info(**kwargs) return data - def delete_collection_namespaced_virtual_machine_snapshot_with_http_info(self, **kwargs): + def delete_collection_namespaced_virtual_machine_restore_with_http_info(self, **kwargs): """ - Delete a collection of VirtualMachineSnapshot objects. + Delete a collection of VirtualMachineRestore objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_snapshot_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_restore_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2788,7 +3003,7 @@ def delete_collection_namespaced_virtual_machine_snapshot_with_http_info(self, * if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_virtual_machine_snapshot" % key + " to method delete_collection_namespaced_virtual_machine_restore" % key ) params[key] = val del params['kwargs'] @@ -2829,7 +3044,7 @@ def delete_collection_namespaced_virtual_machine_snapshot_with_http_info(self, * # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots', 'DELETE', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores', 'DELETE', path_params, query_params, header_params, @@ -2844,16 +3059,16 @@ def delete_collection_namespaced_virtual_machine_snapshot_with_http_info(self, * _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_virtual_machine_snapshot_content(self, **kwargs): + def delete_collection_namespaced_virtual_machine_snapshot(self, **kwargs): """ - Delete a collection of VirtualMachineSnapshotContent objects. + Delete a collection of VirtualMachineSnapshot objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_snapshot_content(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_snapshot(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2871,21 +3086,21 @@ def delete_collection_namespaced_virtual_machine_snapshot_content(self, **kwargs """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info(**kwargs) + return self.delete_collection_namespaced_virtual_machine_snapshot_with_http_info(**kwargs) else: - (data) = self.delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_snapshot_with_http_info(**kwargs) return data - def delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info(self, **kwargs): + def delete_collection_namespaced_virtual_machine_snapshot_with_http_info(self, **kwargs): """ - Delete a collection of VirtualMachineSnapshotContent objects. + Delete a collection of VirtualMachineSnapshot objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_snapshot_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2913,7 +3128,7 @@ def delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_virtual_machine_snapshot_content" % key + " to method delete_collection_namespaced_virtual_machine_snapshot" % key ) params[key] = val del params['kwargs'] @@ -2954,7 +3169,7 @@ def delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents', 'DELETE', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots', 'DELETE', path_params, query_params, header_params, @@ -2969,16 +3184,16 @@ def delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_virtual_machine_cluster_flavor(self, **kwargs): + def delete_collection_namespaced_virtual_machine_snapshot_content(self, **kwargs): """ - Delete a collection of VirtualMachineClusterFlavor objects. + Delete a collection of VirtualMachineSnapshotContent objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_virtual_machine_cluster_flavor(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_snapshot_content(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2996,21 +3211,21 @@ def delete_collection_virtual_machine_cluster_flavor(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_virtual_machine_cluster_flavor_with_http_info(**kwargs) + return self.delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info(**kwargs) else: - (data) = self.delete_collection_virtual_machine_cluster_flavor_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info(**kwargs) return data - def delete_collection_virtual_machine_cluster_flavor_with_http_info(self, **kwargs): + def delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info(self, **kwargs): """ - Delete a collection of VirtualMachineClusterFlavor objects. + Delete a collection of VirtualMachineSnapshotContent objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_virtual_machine_cluster_flavor_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3038,7 +3253,7 @@ def delete_collection_virtual_machine_cluster_flavor_with_http_info(self, **kwar if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_virtual_machine_cluster_flavor" % key + " to method delete_collection_namespaced_virtual_machine_snapshot_content" % key ) params[key] = val del params['kwargs'] @@ -3079,7 +3294,7 @@ def delete_collection_virtual_machine_cluster_flavor_with_http_info(self, **kwar # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors', 'DELETE', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents', 'DELETE', path_params, query_params, header_params, @@ -3094,9 +3309,259 @@ def delete_collection_virtual_machine_cluster_flavor_with_http_info(self, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_migration_policy(self, name, body, **kwargs): + def delete_collection_virtual_machine_cluster_flavor(self, **kwargs): """ - Delete a MigrationPolicy object. + Delete a collection of VirtualMachineClusterFlavor objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_virtual_machine_cluster_flavor(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_virtual_machine_cluster_flavor_with_http_info(**kwargs) + else: + (data) = self.delete_collection_virtual_machine_cluster_flavor_with_http_info(**kwargs) + return data + + def delete_collection_virtual_machine_cluster_flavor_with_http_info(self, **kwargs): + """ + Delete a collection of VirtualMachineClusterFlavor objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_virtual_machine_cluster_flavor_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_virtual_machine_cluster_flavor" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_virtual_machine_cluster_preference(self, **kwargs): + """ + Delete a collection of VirtualMachineClusterPreference objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_virtual_machine_cluster_preference(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_virtual_machine_cluster_preference_with_http_info(**kwargs) + else: + (data) = self.delete_collection_virtual_machine_cluster_preference_with_http_info(**kwargs) + return data + + def delete_collection_virtual_machine_cluster_preference_with_http_info(self, **kwargs): + """ + Delete a collection of VirtualMachineClusterPreference objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_virtual_machine_cluster_preference_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_virtual_machine_cluster_preference" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_migration_policy(self, name, body, **kwargs): + """ + Delete a MigrationPolicy object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -4257,16 +4722,16 @@ def delete_namespaced_virtual_machine_pool_with_http_info(self, name, namespace, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_restore(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_preference(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineRestore object. + Delete a VirtualMachinePreference object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_restore(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_preference(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4282,21 +4747,21 @@ def delete_namespaced_virtual_machine_restore(self, name, namespace, body, **kwa """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_preference_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_virtual_machine_preference_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_restore_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_preference_with_http_info(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineRestore object. + Delete a VirtualMachinePreference object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_preference_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4322,19 +4787,19 @@ def delete_namespaced_virtual_machine_restore_with_http_info(self, name, namespa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_restore" % key + " to method delete_namespaced_virtual_machine_preference" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_restore`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_preference`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_restore`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_preference`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_restore`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_preference`") collection_formats = {} @@ -4372,7 +4837,7 @@ def delete_namespaced_virtual_machine_restore_with_http_info(self, name, namespa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -4387,9 +4852,139 @@ def delete_namespaced_virtual_machine_restore_with_http_info(self, name, namespa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_snapshot(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_restore(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineSnapshot object. + Delete a VirtualMachineRestore object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_virtual_machine_restore(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_virtual_machine_restore_with_http_info(self, name, namespace, body, **kwargs): + """ + Delete a VirtualMachineRestore object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_virtual_machine_restore" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_restore`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_restore`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_restore`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'grace_period_seconds' in params: + query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) + if 'orphan_dependents' in params: + query_params.append(('orphanDependents', params['orphan_dependents'])) + if 'propagation_policy' in params: + query_params.append(('propagationPolicy', params['propagation_policy'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_virtual_machine_snapshot(self, name, namespace, body, **kwargs): + """ + Delete a VirtualMachineSnapshot object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -4770,6 +5365,129 @@ def delete_virtual_machine_cluster_flavor_with_http_info(self, name, body, **kwa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def delete_virtual_machine_cluster_preference(self, name, body, **kwargs): + """ + Delete a VirtualMachineClusterPreference object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_virtual_machine_cluster_preference(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_virtual_machine_cluster_preference_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_virtual_machine_cluster_preference_with_http_info(name, body, **kwargs) + return data + + def delete_virtual_machine_cluster_preference_with_http_info(self, name, body, **kwargs): + """ + Delete a VirtualMachineClusterPreference object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_virtual_machine_cluster_preference_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_virtual_machine_cluster_preference" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_virtual_machine_cluster_preference`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_virtual_machine_cluster_preference`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = [] + if 'grace_period_seconds' in params: + query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) + if 'orphan_dependents' in params: + query_params.append(('orphanDependents', params['orphan_dependents'])) + if 'propagation_policy' in params: + query_params.append(('propagationPolicy', params['propagation_policy'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def func1(self, **kwargs): """ Health endpoint @@ -7626,16 +8344,16 @@ def list_namespaced_virtual_machine_pool_with_http_info(self, namespace, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_restore(self, namespace, **kwargs): + def list_namespaced_virtual_machine_preference(self, namespace, **kwargs): """ - Get a list of VirtualMachineRestore objects. + Get a list of VirtualMachinePreference objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_restore(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_preference(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7648,27 +8366,27 @@ def list_namespaced_virtual_machine_restore(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineRestoreList + :return: V1alpha1VirtualMachinePreferenceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_restore_with_http_info(namespace, **kwargs) + return self.list_namespaced_virtual_machine_preference_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_virtual_machine_restore_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_virtual_machine_preference_with_http_info(namespace, **kwargs) return data - def list_namespaced_virtual_machine_restore_with_http_info(self, namespace, **kwargs): + def list_namespaced_virtual_machine_preference_with_http_info(self, namespace, **kwargs): """ - Get a list of VirtualMachineRestore objects. + Get a list of VirtualMachinePreference objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_restore_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_preference_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7681,7 +8399,7 @@ def list_namespaced_virtual_machine_restore_with_http_info(self, namespace, **kw :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineRestoreList + :return: V1alpha1VirtualMachinePreferenceList If the method is called asynchronously, returns the request thread. """ @@ -7697,13 +8415,13 @@ def list_namespaced_virtual_machine_restore_with_http_info(self, namespace, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_restore" % key + " to method list_namespaced_virtual_machine_preference" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_restore`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_preference`") collection_formats = {} @@ -7743,14 +8461,146 @@ def list_namespaced_virtual_machine_restore_with_http_info(self, namespace, **kw # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores', 'GET', + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineRestoreList', + response_type='V1alpha1VirtualMachinePreferenceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_virtual_machine_restore(self, namespace, **kwargs): + """ + Get a list of VirtualMachineRestore objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_virtual_machine_restore(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineRestoreList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_virtual_machine_restore_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_virtual_machine_restore_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_virtual_machine_restore_with_http_info(self, namespace, **kwargs): + """ + Get a list of VirtualMachineRestore objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_virtual_machine_restore_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineRestoreList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_virtual_machine_restore" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_restore`") + + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineRestoreList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8147,6 +8997,131 @@ def list_virtual_machine_cluster_flavor_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def list_virtual_machine_cluster_preference(self, **kwargs): + """ + Get a list of VirtualMachineClusterPreference objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_cluster_preference(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineClusterPreferenceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_virtual_machine_cluster_preference_with_http_info(**kwargs) + else: + (data) = self.list_virtual_machine_cluster_preference_with_http_info(**kwargs) + return data + + def list_virtual_machine_cluster_preference_with_http_info(self, **kwargs): + """ + Get a list of VirtualMachineClusterPreference objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_cluster_preference_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineClusterPreferenceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_virtual_machine_cluster_preference" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineClusterPreferenceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def list_virtual_machine_flavor_for_all_namespaces(self, **kwargs): """ Get a list of all VirtualMachineFlavor objects. @@ -9022,16 +9997,16 @@ def list_virtual_machine_pool_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_restore_for_all_namespaces(self, **kwargs): + def list_virtual_machine_preference_for_all_namespaces(self, **kwargs): """ - Get a list of all VirtualMachineRestore objects. + Get a list of all VirtualMachinePreference objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_restore_for_all_namespaces(callback=callback_function) + >>> thread = api.list_virtual_machine_preference_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -9043,27 +10018,27 @@ def list_virtual_machine_restore_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineRestoreList + :return: V1alpha1VirtualMachinePreferenceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_restore_for_all_namespaces_with_http_info(**kwargs) + return self.list_virtual_machine_preference_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_virtual_machine_restore_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_virtual_machine_preference_for_all_namespaces_with_http_info(**kwargs) return data - def list_virtual_machine_restore_for_all_namespaces_with_http_info(self, **kwargs): + def list_virtual_machine_preference_for_all_namespaces_with_http_info(self, **kwargs): """ - Get a list of all VirtualMachineRestore objects. + Get a list of all VirtualMachinePreference objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_restore_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_virtual_machine_preference_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -9075,7 +10050,7 @@ def list_virtual_machine_restore_for_all_namespaces_with_http_info(self, **kwarg :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineRestoreList + :return: V1alpha1VirtualMachinePreferenceList If the method is called asynchronously, returns the request thread. """ @@ -9091,7 +10066,7 @@ def list_virtual_machine_restore_for_all_namespaces_with_http_info(self, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_restore_for_all_namespaces" % key + " to method list_virtual_machine_preference_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -9132,7 +10107,132 @@ def list_virtual_machine_restore_for_all_namespaces_with_http_info(self, **kwarg # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores', 'GET', + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachinepreferences', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachinePreferenceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_virtual_machine_restore_for_all_namespaces(self, **kwargs): + """ + Get a list of all VirtualMachineRestore objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_restore_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineRestoreList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_virtual_machine_restore_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_virtual_machine_restore_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_virtual_machine_restore_for_all_namespaces_with_http_info(self, **kwargs): + """ + Get a list of all VirtualMachineRestore objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_restore_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineRestoreList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_virtual_machine_restore_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores', 'GET', path_params, query_params, header_params, @@ -10452,6 +11552,124 @@ def patch_namespaced_virtual_machine_pool_with_http_info(self, name, namespace, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def patch_namespaced_virtual_machine_preference(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachinePreference object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_preference(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1alpha1VirtualMachinePreference + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_preference_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_preference_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_preference_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachinePreference object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine_preference_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1alpha1VirtualMachinePreference + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_virtual_machine_preference" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_preference`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_preference`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_preference`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachinePreference', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def patch_namespaced_virtual_machine_restore(self, name, namespace, body, **kwargs): """ Patch a VirtualMachineRestore object. @@ -10917,55 +12135,53 @@ def patch_virtual_machine_cluster_flavor_with_http_info(self, name, body, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_migration_policy(self, name, **kwargs): + def patch_virtual_machine_cluster_preference(self, name, body, **kwargs): """ - Get a MigrationPolicy object. + Patch a VirtualMachineClusterPreference object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_migration_policy(name, callback=callback_function) + >>> thread = api.patch_virtual_machine_cluster_preference(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1MigrationPolicy + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1alpha1VirtualMachineClusterPreference If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_migration_policy_with_http_info(name, **kwargs) + return self.patch_virtual_machine_cluster_preference_with_http_info(name, body, **kwargs) else: - (data) = self.read_migration_policy_with_http_info(name, **kwargs) + (data) = self.patch_virtual_machine_cluster_preference_with_http_info(name, body, **kwargs) return data - def read_migration_policy_with_http_info(self, name, **kwargs): + def patch_virtual_machine_cluster_preference_with_http_info(self, name, body, **kwargs): """ - Get a MigrationPolicy object. + Patch a VirtualMachineClusterPreference object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_migration_policy_with_http_info(name, callback=callback_function) + >>> thread = api.patch_virtual_machine_cluster_preference_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1MigrationPolicy + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1alpha1VirtualMachineClusterPreference If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'exact', 'export'] + all_params = ['name', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10976,13 +12192,16 @@ def read_migration_policy_with_http_info(self, name, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_migration_policy" % key + " to method patch_virtual_machine_cluster_preference" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_migration_policy`") + raise ValueError("Missing the required parameter `name` when calling `patch_virtual_machine_cluster_preference`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_virtual_machine_cluster_preference`") collection_formats = {} @@ -10992,10 +12211,6 @@ def read_migration_policy_with_http_info(self, name, **kwargs): path_params['name'] = params['name'] query_params = [] - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) header_params = {} @@ -11003,9 +12218,123 @@ def read_migration_policy_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineClusterPreference', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_migration_policy(self, name, **kwargs): + """ + Get a MigrationPolicy object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_migration_policy(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1MigrationPolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_migration_policy_with_http_info(name, **kwargs) + else: + (data) = self.read_migration_policy_with_http_info(name, **kwargs) + return data + + def read_migration_policy_with_http_info(self, name, **kwargs): + """ + Get a MigrationPolicy object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_migration_policy_with_http_info(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1MigrationPolicy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_migration_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_migration_policy`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting auth_settings = [] @@ -11945,6 +13274,121 @@ def read_namespaced_virtual_machine_pool_with_http_info(self, name, namespace, * _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def read_namespaced_virtual_machine_preference(self, name, namespace, **kwargs): + """ + Get a VirtualMachinePreference object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_preference(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1VirtualMachinePreference + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_virtual_machine_preference_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_virtual_machine_preference_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_virtual_machine_preference_with_http_info(self, name, namespace, **kwargs): + """ + Get a VirtualMachinePreference object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_preference_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1VirtualMachinePreference + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_virtual_machine_preference" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_preference`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_preference`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachinePreference', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def read_namespaced_virtual_machine_restore(self, name, namespace, **kwargs): """ Get a VirtualMachineRestore object. @@ -12398,53 +13842,55 @@ def read_virtual_machine_cluster_flavor_with_http_info(self, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_migration_policy(self, name, body, **kwargs): + def read_virtual_machine_cluster_preference(self, name, **kwargs): """ - Update a MigrationPolicy object. + Get a VirtualMachineClusterPreference object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_migration_policy(name, body, callback=callback_function) + >>> thread = api.read_virtual_machine_cluster_preference(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param V1alpha1MigrationPolicy body: (required) - :return: V1alpha1MigrationPolicy + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1VirtualMachineClusterPreference If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_migration_policy_with_http_info(name, body, **kwargs) + return self.read_virtual_machine_cluster_preference_with_http_info(name, **kwargs) else: - (data) = self.replace_migration_policy_with_http_info(name, body, **kwargs) + (data) = self.read_virtual_machine_cluster_preference_with_http_info(name, **kwargs) return data - def replace_migration_policy_with_http_info(self, name, body, **kwargs): + def read_virtual_machine_cluster_preference_with_http_info(self, name, **kwargs): """ - Update a MigrationPolicy object. + Get a VirtualMachineClusterPreference object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_migration_policy_with_http_info(name, body, callback=callback_function) + >>> thread = api.read_virtual_machine_cluster_preference_with_http_info(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param V1alpha1MigrationPolicy body: (required) - :return: V1alpha1MigrationPolicy + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1VirtualMachineClusterPreference If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'body'] + all_params = ['name', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -12455,16 +13901,13 @@ def replace_migration_policy_with_http_info(self, name, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_migration_policy" % key + " to method read_virtual_machine_cluster_preference" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_migration_policy`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_migration_policy`") + raise ValueError("Missing the required parameter `name` when calling `read_virtual_machine_cluster_preference`") collection_formats = {} @@ -12474,6 +13917,10 @@ def replace_migration_policy_with_http_info(self, name, body, **kwargs): path_params['name'] = params['name'] query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) header_params = {} @@ -12481,27 +13928,21 @@ def replace_migration_policy_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml']) + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1MigrationPolicy', + response_type='V1alpha1VirtualMachineClusterPreference', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12509,23 +13950,134 @@ def replace_migration_policy_with_http_info(self, name, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_kube_virt(self, name, namespace, body, **kwargs): + def replace_migration_policy(self, name, body, **kwargs): """ - Update a KubeVirt object. + Update a MigrationPolicy object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_kube_virt(name, namespace, body, callback=callback_function) + >>> thread = api.replace_migration_policy(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1KubeVirt body: (required) - :return: V1KubeVirt + :param V1alpha1MigrationPolicy body: (required) + :return: V1alpha1MigrationPolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_migration_policy_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_migration_policy_with_http_info(name, body, **kwargs) + return data + + def replace_migration_policy_with_http_info(self, name, body, **kwargs): + """ + Update a MigrationPolicy object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_migration_policy_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param V1alpha1MigrationPolicy body: (required) + :return: V1alpha1MigrationPolicy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_migration_policy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_migration_policy`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_migration_policy`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1MigrationPolicy', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_kube_virt(self, name, namespace, body, **kwargs): + """ + Update a KubeVirt object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_kube_virt(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1KubeVirt body: (required) + :return: V1KubeVirt If the method is called asynchronously, returns the request thread. """ @@ -13453,6 +15005,124 @@ def replace_namespaced_virtual_machine_pool_with_http_info(self, name, namespace _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def replace_namespaced_virtual_machine_preference(self, name, namespace, body, **kwargs): + """ + Update a VirtualMachinePreference object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_virtual_machine_preference(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1alpha1VirtualMachinePreference body: (required) + :return: V1alpha1VirtualMachinePreference + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_virtual_machine_preference_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_virtual_machine_preference_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_virtual_machine_preference_with_http_info(self, name, namespace, body, **kwargs): + """ + Update a VirtualMachinePreference object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_virtual_machine_preference_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1alpha1VirtualMachinePreference body: (required) + :return: V1alpha1VirtualMachinePreference + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_virtual_machine_preference" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_preference`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_preference`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_preference`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachinePreference', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def replace_namespaced_virtual_machine_restore(self, name, namespace, body, **kwargs): """ Update a VirtualMachineRestore object. @@ -13918,49 +15588,53 @@ def replace_virtual_machine_cluster_flavor_with_http_info(self, name, body, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_check_health(self, **kwargs): + def replace_virtual_machine_cluster_preference(self, name, body, **kwargs): """ - Health endpoint + Update a VirtualMachineClusterPreference object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_check_health(callback=callback_function) + >>> thread = api.replace_virtual_machine_cluster_preference(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: str + :param str name: Name of the resource (required) + :param V1alpha1VirtualMachineClusterPreference body: (required) + :return: V1alpha1VirtualMachineClusterPreference If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_check_health_with_http_info(**kwargs) + return self.replace_virtual_machine_cluster_preference_with_http_info(name, body, **kwargs) else: - (data) = self.v1_check_health_with_http_info(**kwargs) + (data) = self.replace_virtual_machine_cluster_preference_with_http_info(name, body, **kwargs) return data - def v1_check_health_with_http_info(self, **kwargs): + def replace_virtual_machine_cluster_preference_with_http_info(self, name, body, **kwargs): """ - Health endpoint + Update a VirtualMachineClusterPreference object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_check_health_with_http_info(callback=callback_function) + >>> thread = api.replace_virtual_machine_cluster_preference_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: str + :param str name: Name of the resource (required) + :param V1alpha1VirtualMachineClusterPreference body: (required) + :return: V1alpha1VirtualMachineClusterPreference If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -13971,14 +15645,23 @@ def v1_check_health_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_check_health" % key + " to method replace_virtual_machine_cluster_preference" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_virtual_machine_cluster_preference`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_virtual_machine_cluster_preference`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] query_params = [] @@ -13988,25 +15671,27 @@ def v1_check_health_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + select_header_accept(['application/json', 'application/yaml']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['application/json', 'application/yaml']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/healthz', 'GET', + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type='V1alpha1VirtualMachineClusterPreference', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -14014,28 +15699,124 @@ def v1_check_health_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_console(self, name, namespace, **kwargs): + def v1_check_health(self, **kwargs): """ - Open a websocket connection to a serial console on the specified VirtualMachineInstance. + Health endpoint This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_console(name, namespace, callback=callback_function) + >>> thread = api.v1_check_health(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: None + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_console_with_http_info(name, namespace, **kwargs) + return self.v1_check_health_with_http_info(**kwargs) + else: + (data) = self.v1_check_health_with_http_info(**kwargs) + return data + + def v1_check_health_with_http_info(self, **kwargs): + """ + Health endpoint + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_check_health_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1_check_health" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/healthz', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def v1_console(self, name, namespace, **kwargs): + """ + Open a websocket connection to a serial console on the specified VirtualMachineInstance. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_console(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1_console_with_http_info(name, namespace, **kwargs) else: (data) = self.v1_console_with_http_info(name, namespace, **kwargs) return data @@ -21339,7 +23120,271 @@ def watch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def watch_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): + """ + Watch a VirtualMachineInstancePreset object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_virtual_machine_instance_preset(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) + return data + + def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namespace, **kwargs): + """ + Watch a VirtualMachineInstancePreset object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_virtual_machine_instance_preset_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_virtual_machine_instance_preset" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_preset`") + + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def watch_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwargs): + """ + Watch a VirtualMachineInstanceReplicaSet object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_virtual_machine_instance_replica_set(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) + return data + + def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, namespace, **kwargs): + """ + Watch a VirtualMachineInstanceReplicaSet object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_virtual_machine_instance_replica_set" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_replica_set`") + + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, @@ -21354,16 +23399,16 @@ def watch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_pool(self, namespace, **kwargs): """ - Watch a VirtualMachineInstancePreset object. + Watch a VirtualMachinePool object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_instance_preset(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_pool(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -21382,21 +23427,21 @@ def watch_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) + return self.watch_namespaced_virtual_machine_pool_with_http_info(namespace, **kwargs) else: - (data) = self.watch_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_pool_with_http_info(namespace, **kwargs) return data - def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_pool_with_http_info(self, namespace, **kwargs): """ - Watch a VirtualMachineInstancePreset object. + Watch a VirtualMachinePool object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_instance_preset_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_pool_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -21425,13 +23470,13 @@ def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namesp if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_virtual_machine_instance_preset" % key + " to method watch_namespaced_virtual_machine_pool" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_pool`") collection_formats = {} @@ -21471,7 +23516,7 @@ def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools', 'GET', path_params, query_params, header_params, @@ -21486,16 +23531,16 @@ def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namesp _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_preference(self, namespace, **kwargs): """ - Watch a VirtualMachineInstanceReplicaSet object. + Watch a VirtualMachinePreference object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_instance_replica_set(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_preference(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -21514,21 +23559,21 @@ def watch_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwa """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) + return self.watch_namespaced_virtual_machine_preference_with_http_info(namespace, **kwargs) else: - (data) = self.watch_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_preference_with_http_info(namespace, **kwargs) return data - def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_preference_with_http_info(self, namespace, **kwargs): """ - Watch a VirtualMachineInstanceReplicaSet object. + Watch a VirtualMachinePreference object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_preference_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -21557,13 +23602,13 @@ def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_virtual_machine_instance_replica_set" % key + " to method watch_namespaced_virtual_machine_preference" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_preference`") collection_formats = {} @@ -21603,7 +23648,7 @@ def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'GET', path_params, query_params, header_params, @@ -21618,16 +23663,16 @@ def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine_pool(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_restore(self, namespace, **kwargs): """ - Watch a VirtualMachinePool object. + Watch a VirtualMachineRestore object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_pool(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_restore(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -21646,21 +23691,21 @@ def watch_namespaced_virtual_machine_pool(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_pool_with_http_info(namespace, **kwargs) + return self.watch_namespaced_virtual_machine_restore_with_http_info(namespace, **kwargs) else: - (data) = self.watch_namespaced_virtual_machine_pool_with_http_info(namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_restore_with_http_info(namespace, **kwargs) return data - def watch_namespaced_virtual_machine_pool_with_http_info(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_restore_with_http_info(self, namespace, **kwargs): """ - Watch a VirtualMachinePool object. + Watch a VirtualMachineRestore object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_pool_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_restore_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -21689,13 +23734,13 @@ def watch_namespaced_virtual_machine_pool_with_http_info(self, namespace, **kwar if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_virtual_machine_pool" % key + " to method watch_namespaced_virtual_machine_restore" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_pool`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_restore`") collection_formats = {} @@ -21735,7 +23780,7 @@ def watch_namespaced_virtual_machine_pool_with_http_info(self, namespace, **kwar # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores', 'GET', path_params, query_params, header_params, @@ -21750,16 +23795,16 @@ def watch_namespaced_virtual_machine_pool_with_http_info(self, namespace, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine_restore(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_snapshot(self, namespace, **kwargs): """ - Watch a VirtualMachineRestore object. + Watch a VirtualMachineSnapshot object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_restore(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_snapshot(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -21778,21 +23823,21 @@ def watch_namespaced_virtual_machine_restore(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_restore_with_http_info(namespace, **kwargs) + return self.watch_namespaced_virtual_machine_snapshot_with_http_info(namespace, **kwargs) else: - (data) = self.watch_namespaced_virtual_machine_restore_with_http_info(namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_snapshot_with_http_info(namespace, **kwargs) return data - def watch_namespaced_virtual_machine_restore_with_http_info(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, **kwargs): """ - Watch a VirtualMachineRestore object. + Watch a VirtualMachineSnapshot object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_restore_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_snapshot_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -21821,13 +23866,13 @@ def watch_namespaced_virtual_machine_restore_with_http_info(self, namespace, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_virtual_machine_restore" % key + " to method watch_namespaced_virtual_machine_snapshot" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_restore`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_snapshot`") collection_formats = {} @@ -21867,7 +23912,7 @@ def watch_namespaced_virtual_machine_restore_with_http_info(self, namespace, **k # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots', 'GET', path_params, query_params, header_params, @@ -21882,16 +23927,16 @@ def watch_namespaced_virtual_machine_restore_with_http_info(self, namespace, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine_snapshot(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_snapshot_content(self, namespace, **kwargs): """ - Watch a VirtualMachineSnapshot object. + Watch a VirtualMachineSnapshotContent object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_snapshot(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_snapshot_content(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -21910,21 +23955,21 @@ def watch_namespaced_virtual_machine_snapshot(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_snapshot_with_http_info(namespace, **kwargs) + return self.watch_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, **kwargs) else: - (data) = self.watch_namespaced_virtual_machine_snapshot_with_http_info(namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, **kwargs) return data - def watch_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_snapshot_content_with_http_info(self, namespace, **kwargs): """ - Watch a VirtualMachineSnapshot object. + Watch a VirtualMachineSnapshotContent object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_snapshot_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -21953,13 +23998,13 @@ def watch_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_virtual_machine_snapshot" % key + " to method watch_namespaced_virtual_machine_snapshot_content" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_snapshot`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_snapshot_content`") collection_formats = {} @@ -21999,7 +24044,7 @@ def watch_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, ** # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents', 'GET', path_params, query_params, header_params, @@ -22014,20 +24059,19 @@ def watch_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine_snapshot_content(self, namespace, **kwargs): + def watch_virtual_machine_cluster_flavor_list_for_all_namespaces(self, **kwargs): """ - Watch a VirtualMachineSnapshotContent object. + Watch a VirtualMachineClusterFlavorList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_snapshot_content(namespace, callback=callback_function) + >>> thread = api.watch_virtual_machine_cluster_flavor_list_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -22042,25 +24086,24 @@ def watch_namespaced_virtual_machine_snapshot_content(self, namespace, **kwargs) """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, **kwargs) + return self.watch_virtual_machine_cluster_flavor_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.watch_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, **kwargs) + (data) = self.watch_virtual_machine_cluster_flavor_list_for_all_namespaces_with_http_info(**kwargs) return data - def watch_namespaced_virtual_machine_snapshot_content_with_http_info(self, namespace, **kwargs): + def watch_virtual_machine_cluster_flavor_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Watch a VirtualMachineSnapshotContent object. + Watch a VirtualMachineClusterFlavorList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_virtual_machine_cluster_flavor_list_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -22074,7 +24117,7 @@ def watch_namespaced_virtual_machine_snapshot_content_with_http_info(self, names returns the request thread. """ - all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -22085,20 +24128,15 @@ def watch_namespaced_virtual_machine_snapshot_content_with_http_info(self, names if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_virtual_machine_snapshot_content" % key + " to method watch_virtual_machine_cluster_flavor_list_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_snapshot_content`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -22131,7 +24169,7 @@ def watch_namespaced_virtual_machine_snapshot_content_with_http_info(self, names # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents', 'GET', + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineclusterflavors', 'GET', path_params, query_params, header_params, @@ -22146,16 +24184,16 @@ def watch_namespaced_virtual_machine_snapshot_content_with_http_info(self, names _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_virtual_machine_cluster_flavor_list_for_all_namespaces(self, **kwargs): + def watch_virtual_machine_cluster_preference_list_for_all_namespaces(self, **kwargs): """ - Watch a VirtualMachineClusterFlavorList object. + Watch a VirtualMachineClusterPreferenceList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_cluster_flavor_list_for_all_namespaces(callback=callback_function) + >>> thread = api.watch_virtual_machine_cluster_preference_list_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -22173,21 +24211,21 @@ def watch_virtual_machine_cluster_flavor_list_for_all_namespaces(self, **kwargs) """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_virtual_machine_cluster_flavor_list_for_all_namespaces_with_http_info(**kwargs) + return self.watch_virtual_machine_cluster_preference_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.watch_virtual_machine_cluster_flavor_list_for_all_namespaces_with_http_info(**kwargs) + (data) = self.watch_virtual_machine_cluster_preference_list_for_all_namespaces_with_http_info(**kwargs) return data - def watch_virtual_machine_cluster_flavor_list_for_all_namespaces_with_http_info(self, **kwargs): + def watch_virtual_machine_cluster_preference_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Watch a VirtualMachineClusterFlavorList object. + Watch a VirtualMachineClusterPreferenceList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_cluster_flavor_list_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.watch_virtual_machine_cluster_preference_list_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -22215,7 +24253,7 @@ def watch_virtual_machine_cluster_flavor_list_for_all_namespaces_with_http_info( if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_virtual_machine_cluster_flavor_list_for_all_namespaces" % key + " to method watch_virtual_machine_cluster_preference_list_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -22256,7 +24294,7 @@ def watch_virtual_machine_cluster_flavor_list_for_all_namespaces_with_http_info( # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineclusterflavors', 'GET', + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineclusterpreferences', 'GET', path_params, query_params, header_params, @@ -23146,6 +25184,131 @@ def watch_virtual_machine_pool_list_for_all_namespaces_with_http_info(self, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def watch_virtual_machine_preference_list_for_all_namespaces(self, **kwargs): + """ + Watch a VirtualMachinePreferenceList object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_virtual_machine_preference_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_virtual_machine_preference_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_virtual_machine_preference_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_virtual_machine_preference_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + Watch a VirtualMachinePreferenceList object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_virtual_machine_preference_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_virtual_machine_preference_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachinepreferences', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def watch_virtual_machine_restore_list_for_all_namespaces(self, **kwargs): """ Watch a VirtualMachineRestoreList object. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 5a5f4a7c..0be9154a 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.52.0-289-gf5973335f".\ + "SDK Package Version: v0.53.0-157-gdf7ac17a4".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 45752d14..74686931 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -78,6 +78,7 @@ from .v1_chassis import V1Chassis from .v1_client_passthrough_devices import V1ClientPassthroughDevices from .v1_clock import V1Clock +from .v1_clock_offset import V1ClockOffset from .v1_clock_offset_utc import V1ClockOffsetUTC from .v1_cloud_init_config_drive_source import V1CloudInitConfigDriveSource from .v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource @@ -172,6 +173,7 @@ from .v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource from .v1_pod_network import V1PodNetwork from .v1_port import V1Port +from .v1_preference_matcher import V1PreferenceMatcher from .v1_probe import V1Probe from .v1_qemu_guest_agent_ssh_public_key_access_credential_propagation import V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation from .v1_qemu_guest_agent_user_password_access_credential_propagation import V1QemuGuestAgentUserPasswordAccessCredentialPropagation @@ -247,8 +249,16 @@ from .v1_volume_snapshot_status import V1VolumeSnapshotStatus from .v1_volume_status import V1VolumeStatus from .v1_watchdog import V1Watchdog +from .v1alpha1_cpu_flavor import V1alpha1CPUFlavor +from .v1alpha1_cpu_preferences import V1alpha1CPUPreferences +from .v1alpha1_clock_preferences import V1alpha1ClockPreferences from .v1alpha1_condition import V1alpha1Condition +from .v1alpha1_device_preferences import V1alpha1DevicePreferences from .v1alpha1_error import V1alpha1Error +from .v1alpha1_feature_preferences import V1alpha1FeaturePreferences +from .v1alpha1_firmware_preferences import V1alpha1FirmwarePreferences +from .v1alpha1_machine_preferences import V1alpha1MachinePreferences +from .v1alpha1_memory_flavor import V1alpha1MemoryFlavor from .v1alpha1_migration_policy import V1alpha1MigrationPolicy from .v1alpha1_migration_policy_list import V1alpha1MigrationPolicyList from .v1alpha1_migration_policy_spec import V1alpha1MigrationPolicySpec @@ -259,6 +269,8 @@ from .v1alpha1_virtual_machine import V1alpha1VirtualMachine from .v1alpha1_virtual_machine_cluster_flavor import V1alpha1VirtualMachineClusterFlavor from .v1alpha1_virtual_machine_cluster_flavor_list import V1alpha1VirtualMachineClusterFlavorList +from .v1alpha1_virtual_machine_cluster_preference import V1alpha1VirtualMachineClusterPreference +from .v1alpha1_virtual_machine_cluster_preference_list import V1alpha1VirtualMachineClusterPreferenceList from .v1alpha1_virtual_machine_flavor import V1alpha1VirtualMachineFlavor from .v1alpha1_virtual_machine_flavor_list import V1alpha1VirtualMachineFlavorList from .v1alpha1_virtual_machine_flavor_spec import V1alpha1VirtualMachineFlavorSpec @@ -267,6 +279,9 @@ from .v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList from .v1alpha1_virtual_machine_pool_spec import V1alpha1VirtualMachinePoolSpec from .v1alpha1_virtual_machine_pool_status import V1alpha1VirtualMachinePoolStatus +from .v1alpha1_virtual_machine_preference import V1alpha1VirtualMachinePreference +from .v1alpha1_virtual_machine_preference_list import V1alpha1VirtualMachinePreferenceList +from .v1alpha1_virtual_machine_preference_spec import V1alpha1VirtualMachinePreferenceSpec from .v1alpha1_virtual_machine_restore import V1alpha1VirtualMachineRestore from .v1alpha1_virtual_machine_restore_list import V1alpha1VirtualMachineRestoreList from .v1alpha1_virtual_machine_restore_spec import V1alpha1VirtualMachineRestoreSpec diff --git a/kubevirt/models/v1_clock_offset.py b/kubevirt/models/v1_clock_offset.py new file mode 100644 index 00000000..b915b530 --- /dev/null +++ b/kubevirt/models/v1_clock_offset.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ClockOffset(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'timezone': 'str', + 'utc': 'V1ClockOffsetUTC' + } + + attribute_map = { + 'timezone': 'timezone', + 'utc': 'utc' + } + + def __init__(self, timezone=None, utc=None): + """ + V1ClockOffset - a model defined in Swagger + """ + + self._timezone = None + self._utc = None + + if timezone is not None: + self.timezone = timezone + if utc is not None: + self.utc = utc + + @property + def timezone(self): + """ + Gets the timezone of this V1ClockOffset. + Timezone sets the guest clock to the specified timezone. Zone name follows the TZ environment variable format (e.g. 'America/New_York'). + + :return: The timezone of this V1ClockOffset. + :rtype: str + """ + return self._timezone + + @timezone.setter + def timezone(self, timezone): + """ + Sets the timezone of this V1ClockOffset. + Timezone sets the guest clock to the specified timezone. Zone name follows the TZ environment variable format (e.g. 'America/New_York'). + + :param timezone: The timezone of this V1ClockOffset. + :type: str + """ + + self._timezone = timezone + + @property + def utc(self): + """ + Gets the utc of this V1ClockOffset. + UTC sets the guest clock to UTC on each boot. If an offset is specified, guest changes to the clock will be kept during reboots and are not reset. + + :return: The utc of this V1ClockOffset. + :rtype: V1ClockOffsetUTC + """ + return self._utc + + @utc.setter + def utc(self, utc): + """ + Sets the utc of this V1ClockOffset. + UTC sets the guest clock to UTC on each boot. If an offset is specified, guest changes to the clock will be kept during reboots and are not reset. + + :param utc: The utc of this V1ClockOffset. + :type: V1ClockOffsetUTC + """ + + self._utc = utc + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1ClockOffset): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_preference_matcher.py b/kubevirt/models/v1_preference_matcher.py new file mode 100644 index 00000000..3209e4ea --- /dev/null +++ b/kubevirt/models/v1_preference_matcher.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PreferenceMatcher(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'kind': 'str', + 'name': 'str' + } + + attribute_map = { + 'kind': 'kind', + 'name': 'name' + } + + def __init__(self, kind=None, name=None): + """ + V1PreferenceMatcher - a model defined in Swagger + """ + + self._kind = None + self._name = None + + if kind is not None: + self.kind = kind + self.name = name + + @property + def kind(self): + """ + Gets the kind of this V1PreferenceMatcher. + Kind specifies which preference resource is referenced. Allowed values are: \"VirtualMachinePreference\" and \"VirtualMachineClusterPreference\". If not specified, \"VirtualMachineClusterPreference\" is used by default. + + :return: The kind of this V1PreferenceMatcher. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1PreferenceMatcher. + Kind specifies which preference resource is referenced. Allowed values are: \"VirtualMachinePreference\" and \"VirtualMachineClusterPreference\". If not specified, \"VirtualMachineClusterPreference\" is used by default. + + :param kind: The kind of this V1PreferenceMatcher. + :type: str + """ + + self._kind = kind + + @property + def name(self): + """ + Gets the name of this V1PreferenceMatcher. + Name is the name of the VirtualMachinePreference or VirtualMachineClusterPreference + + :return: The name of this V1PreferenceMatcher. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1PreferenceMatcher. + Name is the name of the VirtualMachinePreference or VirtualMachineClusterPreference + + :param name: The name of this V1PreferenceMatcher. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1PreferenceMatcher): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_spec.py b/kubevirt/models/v1_virtual_machine_spec.py index 80b66f21..902e862e 100644 --- a/kubevirt/models/v1_virtual_machine_spec.py +++ b/kubevirt/models/v1_virtual_machine_spec.py @@ -33,6 +33,7 @@ class V1VirtualMachineSpec(object): swagger_types = { 'data_volume_templates': 'list[V1DataVolumeTemplateSpec]', 'flavor': 'V1FlavorMatcher', + 'preference': 'V1PreferenceMatcher', 'run_strategy': 'str', 'running': 'bool', 'template': 'V1VirtualMachineInstanceTemplateSpec' @@ -41,18 +42,20 @@ class V1VirtualMachineSpec(object): attribute_map = { 'data_volume_templates': 'dataVolumeTemplates', 'flavor': 'flavor', + 'preference': 'preference', 'run_strategy': 'runStrategy', 'running': 'running', 'template': 'template' } - def __init__(self, data_volume_templates=None, flavor=None, run_strategy=None, running=None, template=None): + def __init__(self, data_volume_templates=None, flavor=None, preference=None, run_strategy=None, running=None, template=None): """ V1VirtualMachineSpec - a model defined in Swagger """ self._data_volume_templates = None self._flavor = None + self._preference = None self._run_strategy = None self._running = None self._template = None @@ -61,6 +64,8 @@ def __init__(self, data_volume_templates=None, flavor=None, run_strategy=None, r self.data_volume_templates = data_volume_templates if flavor is not None: self.flavor = flavor + if preference is not None: + self.preference = preference if run_strategy is not None: self.run_strategy = run_strategy if running is not None: @@ -113,6 +118,29 @@ def flavor(self, flavor): self._flavor = flavor + @property + def preference(self): + """ + Gets the preference of this V1VirtualMachineSpec. + PreferenceMatcher references a set of preference that is used to fill fields in Template + + :return: The preference of this V1VirtualMachineSpec. + :rtype: V1PreferenceMatcher + """ + return self._preference + + @preference.setter + def preference(self, preference): + """ + Sets the preference of this V1VirtualMachineSpec. + PreferenceMatcher references a set of preference that is used to fill fields in Template + + :param preference: The preference of this V1VirtualMachineSpec. + :type: V1PreferenceMatcher + """ + + self._preference = preference + @property def run_strategy(self): """ diff --git a/kubevirt/models/v1alpha1_clock_preferences.py b/kubevirt/models/v1alpha1_clock_preferences.py new file mode 100644 index 00000000..beb04789 --- /dev/null +++ b/kubevirt/models/v1alpha1_clock_preferences.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1ClockPreferences(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'preferred_clock_offset': 'V1ClockOffset', + 'preferred_timer': 'V1Timer' + } + + attribute_map = { + 'preferred_clock_offset': 'preferredClockOffset', + 'preferred_timer': 'preferredTimer' + } + + def __init__(self, preferred_clock_offset=None, preferred_timer=None): + """ + V1alpha1ClockPreferences - a model defined in Swagger + """ + + self._preferred_clock_offset = None + self._preferred_timer = None + + if preferred_clock_offset is not None: + self.preferred_clock_offset = preferred_clock_offset + if preferred_timer is not None: + self.preferred_timer = preferred_timer + + @property + def preferred_clock_offset(self): + """ + Gets the preferred_clock_offset of this V1alpha1ClockPreferences. + ClockOffset allows specifying the UTC offset or the timezone of the guest clock. + + :return: The preferred_clock_offset of this V1alpha1ClockPreferences. + :rtype: V1ClockOffset + """ + return self._preferred_clock_offset + + @preferred_clock_offset.setter + def preferred_clock_offset(self, preferred_clock_offset): + """ + Sets the preferred_clock_offset of this V1alpha1ClockPreferences. + ClockOffset allows specifying the UTC offset or the timezone of the guest clock. + + :param preferred_clock_offset: The preferred_clock_offset of this V1alpha1ClockPreferences. + :type: V1ClockOffset + """ + + self._preferred_clock_offset = preferred_clock_offset + + @property + def preferred_timer(self): + """ + Gets the preferred_timer of this V1alpha1ClockPreferences. + Timer specifies whih timers are attached to the vmi. + + :return: The preferred_timer of this V1alpha1ClockPreferences. + :rtype: V1Timer + """ + return self._preferred_timer + + @preferred_timer.setter + def preferred_timer(self, preferred_timer): + """ + Sets the preferred_timer of this V1alpha1ClockPreferences. + Timer specifies whih timers are attached to the vmi. + + :param preferred_timer: The preferred_timer of this V1alpha1ClockPreferences. + :type: V1Timer + """ + + self._preferred_timer = preferred_timer + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1ClockPreferences): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_cpu_flavor.py b/kubevirt/models/v1alpha1_cpu_flavor.py new file mode 100644 index 00000000..bfee3463 --- /dev/null +++ b/kubevirt/models/v1alpha1_cpu_flavor.py @@ -0,0 +1,266 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1CPUFlavor(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'dedicated_cpu_placement': 'bool', + 'guest': 'int', + 'isolate_emulator_thread': 'bool', + 'model': 'str', + 'numa': 'V1NUMA', + 'realtime': 'V1Realtime' + } + + attribute_map = { + 'dedicated_cpu_placement': 'dedicatedCPUPlacement', + 'guest': 'guest', + 'isolate_emulator_thread': 'isolateEmulatorThread', + 'model': 'model', + 'numa': 'numa', + 'realtime': 'realtime' + } + + def __init__(self, dedicated_cpu_placement=None, guest=None, isolate_emulator_thread=None, model=None, numa=None, realtime=None): + """ + V1alpha1CPUFlavor - a model defined in Swagger + """ + + self._dedicated_cpu_placement = None + self._guest = None + self._isolate_emulator_thread = None + self._model = None + self._numa = None + self._realtime = None + + if dedicated_cpu_placement is not None: + self.dedicated_cpu_placement = dedicated_cpu_placement + self.guest = guest + if isolate_emulator_thread is not None: + self.isolate_emulator_thread = isolate_emulator_thread + if model is not None: + self.model = model + if numa is not None: + self.numa = numa + if realtime is not None: + self.realtime = realtime + + @property + def dedicated_cpu_placement(self): + """ + Gets the dedicated_cpu_placement of this V1alpha1CPUFlavor. + DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. + + :return: The dedicated_cpu_placement of this V1alpha1CPUFlavor. + :rtype: bool + """ + return self._dedicated_cpu_placement + + @dedicated_cpu_placement.setter + def dedicated_cpu_placement(self, dedicated_cpu_placement): + """ + Sets the dedicated_cpu_placement of this V1alpha1CPUFlavor. + DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. + + :param dedicated_cpu_placement: The dedicated_cpu_placement of this V1alpha1CPUFlavor. + :type: bool + """ + + self._dedicated_cpu_placement = dedicated_cpu_placement + + @property + def guest(self): + """ + Gets the guest of this V1alpha1CPUFlavor. + Required number of vCPUs to expose to the guest. The resulting CPU topology being derived from the optional PreferredCPUTopology attribute of CPUPreferences that itself defaults to PreferCores. + + :return: The guest of this V1alpha1CPUFlavor. + :rtype: int + """ + return self._guest + + @guest.setter + def guest(self, guest): + """ + Sets the guest of this V1alpha1CPUFlavor. + Required number of vCPUs to expose to the guest. The resulting CPU topology being derived from the optional PreferredCPUTopology attribute of CPUPreferences that itself defaults to PreferCores. + + :param guest: The guest of this V1alpha1CPUFlavor. + :type: int + """ + if guest is None: + raise ValueError("Invalid value for `guest`, must not be `None`") + + self._guest = guest + + @property + def isolate_emulator_thread(self): + """ + Gets the isolate_emulator_thread of this V1alpha1CPUFlavor. + IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it. + + :return: The isolate_emulator_thread of this V1alpha1CPUFlavor. + :rtype: bool + """ + return self._isolate_emulator_thread + + @isolate_emulator_thread.setter + def isolate_emulator_thread(self, isolate_emulator_thread): + """ + Sets the isolate_emulator_thread of this V1alpha1CPUFlavor. + IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it. + + :param isolate_emulator_thread: The isolate_emulator_thread of this V1alpha1CPUFlavor. + :type: bool + """ + + self._isolate_emulator_thread = isolate_emulator_thread + + @property + def model(self): + """ + Gets the model of this V1alpha1CPUFlavor. + Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. + + :return: The model of this V1alpha1CPUFlavor. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """ + Sets the model of this V1alpha1CPUFlavor. + Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. + + :param model: The model of this V1alpha1CPUFlavor. + :type: str + """ + + self._model = model + + @property + def numa(self): + """ + Gets the numa of this V1alpha1CPUFlavor. + NUMA allows specifying settings for the guest NUMA topology + + :return: The numa of this V1alpha1CPUFlavor. + :rtype: V1NUMA + """ + return self._numa + + @numa.setter + def numa(self, numa): + """ + Sets the numa of this V1alpha1CPUFlavor. + NUMA allows specifying settings for the guest NUMA topology + + :param numa: The numa of this V1alpha1CPUFlavor. + :type: V1NUMA + """ + + self._numa = numa + + @property + def realtime(self): + """ + Gets the realtime of this V1alpha1CPUFlavor. + Realtime instructs the virt-launcher to tune the VMI for lower latency, optional for real time workloads + + :return: The realtime of this V1alpha1CPUFlavor. + :rtype: V1Realtime + """ + return self._realtime + + @realtime.setter + def realtime(self, realtime): + """ + Sets the realtime of this V1alpha1CPUFlavor. + Realtime instructs the virt-launcher to tune the VMI for lower latency, optional for real time workloads + + :param realtime: The realtime of this V1alpha1CPUFlavor. + :type: V1Realtime + """ + + self._realtime = realtime + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1CPUFlavor): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_cpu_preferences.py b/kubevirt/models/v1alpha1_cpu_preferences.py new file mode 100644 index 00000000..39cbd4a4 --- /dev/null +++ b/kubevirt/models/v1alpha1_cpu_preferences.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1CPUPreferences(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'preferred_cpu_topology': 'str' + } + + attribute_map = { + 'preferred_cpu_topology': 'preferredCPUTopology' + } + + def __init__(self, preferred_cpu_topology=None): + """ + V1alpha1CPUPreferences - a model defined in Swagger + """ + + self._preferred_cpu_topology = None + + if preferred_cpu_topology is not None: + self.preferred_cpu_topology = preferred_cpu_topology + + @property + def preferred_cpu_topology(self): + """ + Gets the preferred_cpu_topology of this V1alpha1CPUPreferences. + PreferredCPUTopology optionally defines the preferred guest visible CPU topology, defaults to PreferCores. + + :return: The preferred_cpu_topology of this V1alpha1CPUPreferences. + :rtype: str + """ + return self._preferred_cpu_topology + + @preferred_cpu_topology.setter + def preferred_cpu_topology(self, preferred_cpu_topology): + """ + Sets the preferred_cpu_topology of this V1alpha1CPUPreferences. + PreferredCPUTopology optionally defines the preferred guest visible CPU topology, defaults to PreferCores. + + :param preferred_cpu_topology: The preferred_cpu_topology of this V1alpha1CPUPreferences. + :type: str + """ + + self._preferred_cpu_topology = preferred_cpu_topology + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1CPUPreferences): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_device_preferences.py b/kubevirt/models/v1alpha1_device_preferences.py new file mode 100644 index 00000000..3dede984 --- /dev/null +++ b/kubevirt/models/v1alpha1_device_preferences.py @@ -0,0 +1,713 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1DevicePreferences(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'preferred_autoattach_graphics_device': 'bool', + 'preferred_autoattach_mem_balloon': 'bool', + 'preferred_autoattach_pod_interface': 'bool', + 'preferred_autoattach_serial_console': 'bool', + 'preferred_block_multi_queue': 'bool', + 'preferred_cdrom_bus': 'str', + 'preferred_disable_hotplug': 'bool', + 'preferred_disk_block_size': 'V1BlockSize', + 'preferred_disk_bus': 'str', + 'preferred_disk_cache': 'str', + 'preferred_disk_dedicated_io_thread': 'bool', + 'preferred_disk_io': 'str', + 'preferred_input_bus': 'str', + 'preferred_input_type': 'str', + 'preferred_interface_model': 'str', + 'preferred_lun_bus': 'str', + 'preferred_network_interface_multi_queue': 'bool', + 'preferred_rng': 'V1Rng', + 'preferred_sound_model': 'str', + 'preferred_tpm': 'V1TPMDevice', + 'preferred_use_virtio_transitional': 'bool', + 'preferred_virtual_gpu_options': 'V1VGPUOptions' + } + + attribute_map = { + 'preferred_autoattach_graphics_device': 'preferredAutoattachGraphicsDevice', + 'preferred_autoattach_mem_balloon': 'preferredAutoattachMemBalloon', + 'preferred_autoattach_pod_interface': 'preferredAutoattachPodInterface', + 'preferred_autoattach_serial_console': 'preferredAutoattachSerialConsole', + 'preferred_block_multi_queue': 'preferredBlockMultiQueue', + 'preferred_cdrom_bus': 'preferredCdromBus', + 'preferred_disable_hotplug': 'preferredDisableHotplug', + 'preferred_disk_block_size': 'preferredDiskBlockSize', + 'preferred_disk_bus': 'preferredDiskBus', + 'preferred_disk_cache': 'preferredDiskCache', + 'preferred_disk_dedicated_io_thread': 'preferredDiskDedicatedIoThread', + 'preferred_disk_io': 'preferredDiskIO', + 'preferred_input_bus': 'preferredInputBus', + 'preferred_input_type': 'preferredInputType', + 'preferred_interface_model': 'preferredInterfaceModel', + 'preferred_lun_bus': 'preferredLunBus', + 'preferred_network_interface_multi_queue': 'preferredNetworkInterfaceMultiQueue', + 'preferred_rng': 'preferredRng', + 'preferred_sound_model': 'preferredSoundModel', + 'preferred_tpm': 'preferredTPM', + 'preferred_use_virtio_transitional': 'preferredUseVirtioTransitional', + 'preferred_virtual_gpu_options': 'preferredVirtualGPUOptions' + } + + def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoattach_mem_balloon=None, preferred_autoattach_pod_interface=None, preferred_autoattach_serial_console=None, preferred_block_multi_queue=None, preferred_cdrom_bus=None, preferred_disable_hotplug=None, preferred_disk_block_size=None, preferred_disk_bus=None, preferred_disk_cache=None, preferred_disk_dedicated_io_thread=None, preferred_disk_io=None, preferred_input_bus=None, preferred_input_type=None, preferred_interface_model=None, preferred_lun_bus=None, preferred_network_interface_multi_queue=None, preferred_rng=None, preferred_sound_model=None, preferred_tpm=None, preferred_use_virtio_transitional=None, preferred_virtual_gpu_options=None): + """ + V1alpha1DevicePreferences - a model defined in Swagger + """ + + self._preferred_autoattach_graphics_device = None + self._preferred_autoattach_mem_balloon = None + self._preferred_autoattach_pod_interface = None + self._preferred_autoattach_serial_console = None + self._preferred_block_multi_queue = None + self._preferred_cdrom_bus = None + self._preferred_disable_hotplug = None + self._preferred_disk_block_size = None + self._preferred_disk_bus = None + self._preferred_disk_cache = None + self._preferred_disk_dedicated_io_thread = None + self._preferred_disk_io = None + self._preferred_input_bus = None + self._preferred_input_type = None + self._preferred_interface_model = None + self._preferred_lun_bus = None + self._preferred_network_interface_multi_queue = None + self._preferred_rng = None + self._preferred_sound_model = None + self._preferred_tpm = None + self._preferred_use_virtio_transitional = None + self._preferred_virtual_gpu_options = None + + if preferred_autoattach_graphics_device is not None: + self.preferred_autoattach_graphics_device = preferred_autoattach_graphics_device + if preferred_autoattach_mem_balloon is not None: + self.preferred_autoattach_mem_balloon = preferred_autoattach_mem_balloon + if preferred_autoattach_pod_interface is not None: + self.preferred_autoattach_pod_interface = preferred_autoattach_pod_interface + if preferred_autoattach_serial_console is not None: + self.preferred_autoattach_serial_console = preferred_autoattach_serial_console + if preferred_block_multi_queue is not None: + self.preferred_block_multi_queue = preferred_block_multi_queue + if preferred_cdrom_bus is not None: + self.preferred_cdrom_bus = preferred_cdrom_bus + if preferred_disable_hotplug is not None: + self.preferred_disable_hotplug = preferred_disable_hotplug + if preferred_disk_block_size is not None: + self.preferred_disk_block_size = preferred_disk_block_size + if preferred_disk_bus is not None: + self.preferred_disk_bus = preferred_disk_bus + if preferred_disk_cache is not None: + self.preferred_disk_cache = preferred_disk_cache + if preferred_disk_dedicated_io_thread is not None: + self.preferred_disk_dedicated_io_thread = preferred_disk_dedicated_io_thread + if preferred_disk_io is not None: + self.preferred_disk_io = preferred_disk_io + if preferred_input_bus is not None: + self.preferred_input_bus = preferred_input_bus + if preferred_input_type is not None: + self.preferred_input_type = preferred_input_type + if preferred_interface_model is not None: + self.preferred_interface_model = preferred_interface_model + if preferred_lun_bus is not None: + self.preferred_lun_bus = preferred_lun_bus + if preferred_network_interface_multi_queue is not None: + self.preferred_network_interface_multi_queue = preferred_network_interface_multi_queue + if preferred_rng is not None: + self.preferred_rng = preferred_rng + if preferred_sound_model is not None: + self.preferred_sound_model = preferred_sound_model + if preferred_tpm is not None: + self.preferred_tpm = preferred_tpm + if preferred_use_virtio_transitional is not None: + self.preferred_use_virtio_transitional = preferred_use_virtio_transitional + if preferred_virtual_gpu_options is not None: + self.preferred_virtual_gpu_options = preferred_virtual_gpu_options + + @property + def preferred_autoattach_graphics_device(self): + """ + Gets the preferred_autoattach_graphics_device of this V1alpha1DevicePreferences. + PreferredAutoattachGraphicsDevice optionally defines the preferred value of AutoattachGraphicsDevice + + :return: The preferred_autoattach_graphics_device of this V1alpha1DevicePreferences. + :rtype: bool + """ + return self._preferred_autoattach_graphics_device + + @preferred_autoattach_graphics_device.setter + def preferred_autoattach_graphics_device(self, preferred_autoattach_graphics_device): + """ + Sets the preferred_autoattach_graphics_device of this V1alpha1DevicePreferences. + PreferredAutoattachGraphicsDevice optionally defines the preferred value of AutoattachGraphicsDevice + + :param preferred_autoattach_graphics_device: The preferred_autoattach_graphics_device of this V1alpha1DevicePreferences. + :type: bool + """ + + self._preferred_autoattach_graphics_device = preferred_autoattach_graphics_device + + @property + def preferred_autoattach_mem_balloon(self): + """ + Gets the preferred_autoattach_mem_balloon of this V1alpha1DevicePreferences. + PreferredAutoattachMemBalloon optionally defines the preferred value of AutoattachMemBalloon + + :return: The preferred_autoattach_mem_balloon of this V1alpha1DevicePreferences. + :rtype: bool + """ + return self._preferred_autoattach_mem_balloon + + @preferred_autoattach_mem_balloon.setter + def preferred_autoattach_mem_balloon(self, preferred_autoattach_mem_balloon): + """ + Sets the preferred_autoattach_mem_balloon of this V1alpha1DevicePreferences. + PreferredAutoattachMemBalloon optionally defines the preferred value of AutoattachMemBalloon + + :param preferred_autoattach_mem_balloon: The preferred_autoattach_mem_balloon of this V1alpha1DevicePreferences. + :type: bool + """ + + self._preferred_autoattach_mem_balloon = preferred_autoattach_mem_balloon + + @property + def preferred_autoattach_pod_interface(self): + """ + Gets the preferred_autoattach_pod_interface of this V1alpha1DevicePreferences. + PreferredAutoattachPodInterface optionally defines the preferred value of AutoattachPodInterface + + :return: The preferred_autoattach_pod_interface of this V1alpha1DevicePreferences. + :rtype: bool + """ + return self._preferred_autoattach_pod_interface + + @preferred_autoattach_pod_interface.setter + def preferred_autoattach_pod_interface(self, preferred_autoattach_pod_interface): + """ + Sets the preferred_autoattach_pod_interface of this V1alpha1DevicePreferences. + PreferredAutoattachPodInterface optionally defines the preferred value of AutoattachPodInterface + + :param preferred_autoattach_pod_interface: The preferred_autoattach_pod_interface of this V1alpha1DevicePreferences. + :type: bool + """ + + self._preferred_autoattach_pod_interface = preferred_autoattach_pod_interface + + @property + def preferred_autoattach_serial_console(self): + """ + Gets the preferred_autoattach_serial_console of this V1alpha1DevicePreferences. + PreferredAutoattachSerialConsole optionally defines the preferred value of AutoattachSerialConsole + + :return: The preferred_autoattach_serial_console of this V1alpha1DevicePreferences. + :rtype: bool + """ + return self._preferred_autoattach_serial_console + + @preferred_autoattach_serial_console.setter + def preferred_autoattach_serial_console(self, preferred_autoattach_serial_console): + """ + Sets the preferred_autoattach_serial_console of this V1alpha1DevicePreferences. + PreferredAutoattachSerialConsole optionally defines the preferred value of AutoattachSerialConsole + + :param preferred_autoattach_serial_console: The preferred_autoattach_serial_console of this V1alpha1DevicePreferences. + :type: bool + """ + + self._preferred_autoattach_serial_console = preferred_autoattach_serial_console + + @property + def preferred_block_multi_queue(self): + """ + Gets the preferred_block_multi_queue of this V1alpha1DevicePreferences. + PreferredBlockMultiQueue optionally enables the vhost multiqueue feature for virtio disks. + + :return: The preferred_block_multi_queue of this V1alpha1DevicePreferences. + :rtype: bool + """ + return self._preferred_block_multi_queue + + @preferred_block_multi_queue.setter + def preferred_block_multi_queue(self, preferred_block_multi_queue): + """ + Sets the preferred_block_multi_queue of this V1alpha1DevicePreferences. + PreferredBlockMultiQueue optionally enables the vhost multiqueue feature for virtio disks. + + :param preferred_block_multi_queue: The preferred_block_multi_queue of this V1alpha1DevicePreferences. + :type: bool + """ + + self._preferred_block_multi_queue = preferred_block_multi_queue + + @property + def preferred_cdrom_bus(self): + """ + Gets the preferred_cdrom_bus of this V1alpha1DevicePreferences. + PreferredCdromBus optionally defines the preferred bus for Cdrom Disk devices. + + :return: The preferred_cdrom_bus of this V1alpha1DevicePreferences. + :rtype: str + """ + return self._preferred_cdrom_bus + + @preferred_cdrom_bus.setter + def preferred_cdrom_bus(self, preferred_cdrom_bus): + """ + Sets the preferred_cdrom_bus of this V1alpha1DevicePreferences. + PreferredCdromBus optionally defines the preferred bus for Cdrom Disk devices. + + :param preferred_cdrom_bus: The preferred_cdrom_bus of this V1alpha1DevicePreferences. + :type: str + """ + + self._preferred_cdrom_bus = preferred_cdrom_bus + + @property + def preferred_disable_hotplug(self): + """ + Gets the preferred_disable_hotplug of this V1alpha1DevicePreferences. + PreferredDisableHotplug optionally defines the preferred value of DisableHotplug + + :return: The preferred_disable_hotplug of this V1alpha1DevicePreferences. + :rtype: bool + """ + return self._preferred_disable_hotplug + + @preferred_disable_hotplug.setter + def preferred_disable_hotplug(self, preferred_disable_hotplug): + """ + Sets the preferred_disable_hotplug of this V1alpha1DevicePreferences. + PreferredDisableHotplug optionally defines the preferred value of DisableHotplug + + :param preferred_disable_hotplug: The preferred_disable_hotplug of this V1alpha1DevicePreferences. + :type: bool + """ + + self._preferred_disable_hotplug = preferred_disable_hotplug + + @property + def preferred_disk_block_size(self): + """ + Gets the preferred_disk_block_size of this V1alpha1DevicePreferences. + PreferredBlockSize optionally defines the block size of Disk devices. + + :return: The preferred_disk_block_size of this V1alpha1DevicePreferences. + :rtype: V1BlockSize + """ + return self._preferred_disk_block_size + + @preferred_disk_block_size.setter + def preferred_disk_block_size(self, preferred_disk_block_size): + """ + Sets the preferred_disk_block_size of this V1alpha1DevicePreferences. + PreferredBlockSize optionally defines the block size of Disk devices. + + :param preferred_disk_block_size: The preferred_disk_block_size of this V1alpha1DevicePreferences. + :type: V1BlockSize + """ + + self._preferred_disk_block_size = preferred_disk_block_size + + @property + def preferred_disk_bus(self): + """ + Gets the preferred_disk_bus of this V1alpha1DevicePreferences. + PreferredDiskBus optionally defines the preferred bus for Disk Disk devices. + + :return: The preferred_disk_bus of this V1alpha1DevicePreferences. + :rtype: str + """ + return self._preferred_disk_bus + + @preferred_disk_bus.setter + def preferred_disk_bus(self, preferred_disk_bus): + """ + Sets the preferred_disk_bus of this V1alpha1DevicePreferences. + PreferredDiskBus optionally defines the preferred bus for Disk Disk devices. + + :param preferred_disk_bus: The preferred_disk_bus of this V1alpha1DevicePreferences. + :type: str + """ + + self._preferred_disk_bus = preferred_disk_bus + + @property + def preferred_disk_cache(self): + """ + Gets the preferred_disk_cache of this V1alpha1DevicePreferences. + PreferredCache optionally defines the DriverCache to be used by Disk devices. + + :return: The preferred_disk_cache of this V1alpha1DevicePreferences. + :rtype: str + """ + return self._preferred_disk_cache + + @preferred_disk_cache.setter + def preferred_disk_cache(self, preferred_disk_cache): + """ + Sets the preferred_disk_cache of this V1alpha1DevicePreferences. + PreferredCache optionally defines the DriverCache to be used by Disk devices. + + :param preferred_disk_cache: The preferred_disk_cache of this V1alpha1DevicePreferences. + :type: str + """ + + self._preferred_disk_cache = preferred_disk_cache + + @property + def preferred_disk_dedicated_io_thread(self): + """ + Gets the preferred_disk_dedicated_io_thread of this V1alpha1DevicePreferences. + PreferredDedicatedIoThread optionally enables dedicated IO threads for Disk devices. + + :return: The preferred_disk_dedicated_io_thread of this V1alpha1DevicePreferences. + :rtype: bool + """ + return self._preferred_disk_dedicated_io_thread + + @preferred_disk_dedicated_io_thread.setter + def preferred_disk_dedicated_io_thread(self, preferred_disk_dedicated_io_thread): + """ + Sets the preferred_disk_dedicated_io_thread of this V1alpha1DevicePreferences. + PreferredDedicatedIoThread optionally enables dedicated IO threads for Disk devices. + + :param preferred_disk_dedicated_io_thread: The preferred_disk_dedicated_io_thread of this V1alpha1DevicePreferences. + :type: bool + """ + + self._preferred_disk_dedicated_io_thread = preferred_disk_dedicated_io_thread + + @property + def preferred_disk_io(self): + """ + Gets the preferred_disk_io of this V1alpha1DevicePreferences. + PreferredIo optionally defines the QEMU disk IO mode to be used by Disk devices. + + :return: The preferred_disk_io of this V1alpha1DevicePreferences. + :rtype: str + """ + return self._preferred_disk_io + + @preferred_disk_io.setter + def preferred_disk_io(self, preferred_disk_io): + """ + Sets the preferred_disk_io of this V1alpha1DevicePreferences. + PreferredIo optionally defines the QEMU disk IO mode to be used by Disk devices. + + :param preferred_disk_io: The preferred_disk_io of this V1alpha1DevicePreferences. + :type: str + """ + + self._preferred_disk_io = preferred_disk_io + + @property + def preferred_input_bus(self): + """ + Gets the preferred_input_bus of this V1alpha1DevicePreferences. + PreferredInputBus optionally defines the preferred bus for Input devices. + + :return: The preferred_input_bus of this V1alpha1DevicePreferences. + :rtype: str + """ + return self._preferred_input_bus + + @preferred_input_bus.setter + def preferred_input_bus(self, preferred_input_bus): + """ + Sets the preferred_input_bus of this V1alpha1DevicePreferences. + PreferredInputBus optionally defines the preferred bus for Input devices. + + :param preferred_input_bus: The preferred_input_bus of this V1alpha1DevicePreferences. + :type: str + """ + + self._preferred_input_bus = preferred_input_bus + + @property + def preferred_input_type(self): + """ + Gets the preferred_input_type of this V1alpha1DevicePreferences. + PreferredInputType optionally defines the preferred type for Input devices. + + :return: The preferred_input_type of this V1alpha1DevicePreferences. + :rtype: str + """ + return self._preferred_input_type + + @preferred_input_type.setter + def preferred_input_type(self, preferred_input_type): + """ + Sets the preferred_input_type of this V1alpha1DevicePreferences. + PreferredInputType optionally defines the preferred type for Input devices. + + :param preferred_input_type: The preferred_input_type of this V1alpha1DevicePreferences. + :type: str + """ + + self._preferred_input_type = preferred_input_type + + @property + def preferred_interface_model(self): + """ + Gets the preferred_interface_model of this V1alpha1DevicePreferences. + PreferredInterfaceModel optionally defines the preferred model to be used by Interface devices. + + :return: The preferred_interface_model of this V1alpha1DevicePreferences. + :rtype: str + """ + return self._preferred_interface_model + + @preferred_interface_model.setter + def preferred_interface_model(self, preferred_interface_model): + """ + Sets the preferred_interface_model of this V1alpha1DevicePreferences. + PreferredInterfaceModel optionally defines the preferred model to be used by Interface devices. + + :param preferred_interface_model: The preferred_interface_model of this V1alpha1DevicePreferences. + :type: str + """ + + self._preferred_interface_model = preferred_interface_model + + @property + def preferred_lun_bus(self): + """ + Gets the preferred_lun_bus of this V1alpha1DevicePreferences. + PreferredLunBus optionally defines the preferred bus for Lun Disk devices. + + :return: The preferred_lun_bus of this V1alpha1DevicePreferences. + :rtype: str + """ + return self._preferred_lun_bus + + @preferred_lun_bus.setter + def preferred_lun_bus(self, preferred_lun_bus): + """ + Sets the preferred_lun_bus of this V1alpha1DevicePreferences. + PreferredLunBus optionally defines the preferred bus for Lun Disk devices. + + :param preferred_lun_bus: The preferred_lun_bus of this V1alpha1DevicePreferences. + :type: str + """ + + self._preferred_lun_bus = preferred_lun_bus + + @property + def preferred_network_interface_multi_queue(self): + """ + Gets the preferred_network_interface_multi_queue of this V1alpha1DevicePreferences. + PreferredNetworkInterfaceMultiQueue optionally enables the vhost multiqueue feature for virtio interfaces. + + :return: The preferred_network_interface_multi_queue of this V1alpha1DevicePreferences. + :rtype: bool + """ + return self._preferred_network_interface_multi_queue + + @preferred_network_interface_multi_queue.setter + def preferred_network_interface_multi_queue(self, preferred_network_interface_multi_queue): + """ + Sets the preferred_network_interface_multi_queue of this V1alpha1DevicePreferences. + PreferredNetworkInterfaceMultiQueue optionally enables the vhost multiqueue feature for virtio interfaces. + + :param preferred_network_interface_multi_queue: The preferred_network_interface_multi_queue of this V1alpha1DevicePreferences. + :type: bool + """ + + self._preferred_network_interface_multi_queue = preferred_network_interface_multi_queue + + @property + def preferred_rng(self): + """ + Gets the preferred_rng of this V1alpha1DevicePreferences. + PreferredRng optionally defines the preferred rng device to be used. + + :return: The preferred_rng of this V1alpha1DevicePreferences. + :rtype: V1Rng + """ + return self._preferred_rng + + @preferred_rng.setter + def preferred_rng(self, preferred_rng): + """ + Sets the preferred_rng of this V1alpha1DevicePreferences. + PreferredRng optionally defines the preferred rng device to be used. + + :param preferred_rng: The preferred_rng of this V1alpha1DevicePreferences. + :type: V1Rng + """ + + self._preferred_rng = preferred_rng + + @property + def preferred_sound_model(self): + """ + Gets the preferred_sound_model of this V1alpha1DevicePreferences. + PreferredSoundModel optionally defines the preferred model for Sound devices. + + :return: The preferred_sound_model of this V1alpha1DevicePreferences. + :rtype: str + """ + return self._preferred_sound_model + + @preferred_sound_model.setter + def preferred_sound_model(self, preferred_sound_model): + """ + Sets the preferred_sound_model of this V1alpha1DevicePreferences. + PreferredSoundModel optionally defines the preferred model for Sound devices. + + :param preferred_sound_model: The preferred_sound_model of this V1alpha1DevicePreferences. + :type: str + """ + + self._preferred_sound_model = preferred_sound_model + + @property + def preferred_tpm(self): + """ + Gets the preferred_tpm of this V1alpha1DevicePreferences. + PreferredTPM optionally defines the preferred TPM device to be used. + + :return: The preferred_tpm of this V1alpha1DevicePreferences. + :rtype: V1TPMDevice + """ + return self._preferred_tpm + + @preferred_tpm.setter + def preferred_tpm(self, preferred_tpm): + """ + Sets the preferred_tpm of this V1alpha1DevicePreferences. + PreferredTPM optionally defines the preferred TPM device to be used. + + :param preferred_tpm: The preferred_tpm of this V1alpha1DevicePreferences. + :type: V1TPMDevice + """ + + self._preferred_tpm = preferred_tpm + + @property + def preferred_use_virtio_transitional(self): + """ + Gets the preferred_use_virtio_transitional of this V1alpha1DevicePreferences. + PreferredUseVirtioTransitional optionally defines the preferred value of UseVirtioTransitional + + :return: The preferred_use_virtio_transitional of this V1alpha1DevicePreferences. + :rtype: bool + """ + return self._preferred_use_virtio_transitional + + @preferred_use_virtio_transitional.setter + def preferred_use_virtio_transitional(self, preferred_use_virtio_transitional): + """ + Sets the preferred_use_virtio_transitional of this V1alpha1DevicePreferences. + PreferredUseVirtioTransitional optionally defines the preferred value of UseVirtioTransitional + + :param preferred_use_virtio_transitional: The preferred_use_virtio_transitional of this V1alpha1DevicePreferences. + :type: bool + """ + + self._preferred_use_virtio_transitional = preferred_use_virtio_transitional + + @property + def preferred_virtual_gpu_options(self): + """ + Gets the preferred_virtual_gpu_options of this V1alpha1DevicePreferences. + PreferredVirtualGPUOptions optionally defines the preferred value of VirtualGPUOptions + + :return: The preferred_virtual_gpu_options of this V1alpha1DevicePreferences. + :rtype: V1VGPUOptions + """ + return self._preferred_virtual_gpu_options + + @preferred_virtual_gpu_options.setter + def preferred_virtual_gpu_options(self, preferred_virtual_gpu_options): + """ + Sets the preferred_virtual_gpu_options of this V1alpha1DevicePreferences. + PreferredVirtualGPUOptions optionally defines the preferred value of VirtualGPUOptions + + :param preferred_virtual_gpu_options: The preferred_virtual_gpu_options of this V1alpha1DevicePreferences. + :type: V1VGPUOptions + """ + + self._preferred_virtual_gpu_options = preferred_virtual_gpu_options + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1DevicePreferences): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_feature_preferences.py b/kubevirt/models/v1alpha1_feature_preferences.py new file mode 100644 index 00000000..26a0c7b6 --- /dev/null +++ b/kubevirt/models/v1alpha1_feature_preferences.py @@ -0,0 +1,265 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1FeaturePreferences(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'preferred_acpi': 'V1FeatureState', + 'preferred_apic': 'V1FeatureAPIC', + 'preferred_hyperv': 'V1FeatureHyperv', + 'preferred_kvm': 'V1FeatureKVM', + 'preferred_pvspinlock': 'V1FeatureState', + 'preferred_smm': 'V1FeatureState' + } + + attribute_map = { + 'preferred_acpi': 'preferredAcpi', + 'preferred_apic': 'preferredApic', + 'preferred_hyperv': 'preferredHyperv', + 'preferred_kvm': 'preferredKvm', + 'preferred_pvspinlock': 'preferredPvspinlock', + 'preferred_smm': 'preferredSmm' + } + + def __init__(self, preferred_acpi=None, preferred_apic=None, preferred_hyperv=None, preferred_kvm=None, preferred_pvspinlock=None, preferred_smm=None): + """ + V1alpha1FeaturePreferences - a model defined in Swagger + """ + + self._preferred_acpi = None + self._preferred_apic = None + self._preferred_hyperv = None + self._preferred_kvm = None + self._preferred_pvspinlock = None + self._preferred_smm = None + + if preferred_acpi is not None: + self.preferred_acpi = preferred_acpi + if preferred_apic is not None: + self.preferred_apic = preferred_apic + if preferred_hyperv is not None: + self.preferred_hyperv = preferred_hyperv + if preferred_kvm is not None: + self.preferred_kvm = preferred_kvm + if preferred_pvspinlock is not None: + self.preferred_pvspinlock = preferred_pvspinlock + if preferred_smm is not None: + self.preferred_smm = preferred_smm + + @property + def preferred_acpi(self): + """ + Gets the preferred_acpi of this V1alpha1FeaturePreferences. + PreferredAcpi optionally enables the ACPI feature + + :return: The preferred_acpi of this V1alpha1FeaturePreferences. + :rtype: V1FeatureState + """ + return self._preferred_acpi + + @preferred_acpi.setter + def preferred_acpi(self, preferred_acpi): + """ + Sets the preferred_acpi of this V1alpha1FeaturePreferences. + PreferredAcpi optionally enables the ACPI feature + + :param preferred_acpi: The preferred_acpi of this V1alpha1FeaturePreferences. + :type: V1FeatureState + """ + + self._preferred_acpi = preferred_acpi + + @property + def preferred_apic(self): + """ + Gets the preferred_apic of this V1alpha1FeaturePreferences. + PreferredApic optionally enables and configures the APIC feature + + :return: The preferred_apic of this V1alpha1FeaturePreferences. + :rtype: V1FeatureAPIC + """ + return self._preferred_apic + + @preferred_apic.setter + def preferred_apic(self, preferred_apic): + """ + Sets the preferred_apic of this V1alpha1FeaturePreferences. + PreferredApic optionally enables and configures the APIC feature + + :param preferred_apic: The preferred_apic of this V1alpha1FeaturePreferences. + :type: V1FeatureAPIC + """ + + self._preferred_apic = preferred_apic + + @property + def preferred_hyperv(self): + """ + Gets the preferred_hyperv of this V1alpha1FeaturePreferences. + PreferredHyperv optionally enables and configures HyperV features + + :return: The preferred_hyperv of this V1alpha1FeaturePreferences. + :rtype: V1FeatureHyperv + """ + return self._preferred_hyperv + + @preferred_hyperv.setter + def preferred_hyperv(self, preferred_hyperv): + """ + Sets the preferred_hyperv of this V1alpha1FeaturePreferences. + PreferredHyperv optionally enables and configures HyperV features + + :param preferred_hyperv: The preferred_hyperv of this V1alpha1FeaturePreferences. + :type: V1FeatureHyperv + """ + + self._preferred_hyperv = preferred_hyperv + + @property + def preferred_kvm(self): + """ + Gets the preferred_kvm of this V1alpha1FeaturePreferences. + PreferredKvm optionally enables and configures KVM features + + :return: The preferred_kvm of this V1alpha1FeaturePreferences. + :rtype: V1FeatureKVM + """ + return self._preferred_kvm + + @preferred_kvm.setter + def preferred_kvm(self, preferred_kvm): + """ + Sets the preferred_kvm of this V1alpha1FeaturePreferences. + PreferredKvm optionally enables and configures KVM features + + :param preferred_kvm: The preferred_kvm of this V1alpha1FeaturePreferences. + :type: V1FeatureKVM + """ + + self._preferred_kvm = preferred_kvm + + @property + def preferred_pvspinlock(self): + """ + Gets the preferred_pvspinlock of this V1alpha1FeaturePreferences. + PreferredPvspinlock optionally enables the Pvspinlock feature + + :return: The preferred_pvspinlock of this V1alpha1FeaturePreferences. + :rtype: V1FeatureState + """ + return self._preferred_pvspinlock + + @preferred_pvspinlock.setter + def preferred_pvspinlock(self, preferred_pvspinlock): + """ + Sets the preferred_pvspinlock of this V1alpha1FeaturePreferences. + PreferredPvspinlock optionally enables the Pvspinlock feature + + :param preferred_pvspinlock: The preferred_pvspinlock of this V1alpha1FeaturePreferences. + :type: V1FeatureState + """ + + self._preferred_pvspinlock = preferred_pvspinlock + + @property + def preferred_smm(self): + """ + Gets the preferred_smm of this V1alpha1FeaturePreferences. + PreferredSmm optionally enables the SMM feature + + :return: The preferred_smm of this V1alpha1FeaturePreferences. + :rtype: V1FeatureState + """ + return self._preferred_smm + + @preferred_smm.setter + def preferred_smm(self, preferred_smm): + """ + Sets the preferred_smm of this V1alpha1FeaturePreferences. + PreferredSmm optionally enables the SMM feature + + :param preferred_smm: The preferred_smm of this V1alpha1FeaturePreferences. + :type: V1FeatureState + """ + + self._preferred_smm = preferred_smm + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1FeaturePreferences): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_firmware_preferences.py b/kubevirt/models/v1alpha1_firmware_preferences.py new file mode 100644 index 00000000..068d09d7 --- /dev/null +++ b/kubevirt/models/v1alpha1_firmware_preferences.py @@ -0,0 +1,209 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1FirmwarePreferences(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'preferred_use_bios': 'bool', + 'preferred_use_bios_serial': 'bool', + 'preferred_use_efi': 'bool', + 'preferred_use_secure_boot': 'bool' + } + + attribute_map = { + 'preferred_use_bios': 'preferredUseBios', + 'preferred_use_bios_serial': 'preferredUseBiosSerial', + 'preferred_use_efi': 'preferredUseEfi', + 'preferred_use_secure_boot': 'preferredUseSecureBoot' + } + + def __init__(self, preferred_use_bios=None, preferred_use_bios_serial=None, preferred_use_efi=None, preferred_use_secure_boot=None): + """ + V1alpha1FirmwarePreferences - a model defined in Swagger + """ + + self._preferred_use_bios = None + self._preferred_use_bios_serial = None + self._preferred_use_efi = None + self._preferred_use_secure_boot = None + + if preferred_use_bios is not None: + self.preferred_use_bios = preferred_use_bios + if preferred_use_bios_serial is not None: + self.preferred_use_bios_serial = preferred_use_bios_serial + if preferred_use_efi is not None: + self.preferred_use_efi = preferred_use_efi + if preferred_use_secure_boot is not None: + self.preferred_use_secure_boot = preferred_use_secure_boot + + @property + def preferred_use_bios(self): + """ + Gets the preferred_use_bios of this V1alpha1FirmwarePreferences. + PreferredUseBios optionally enables BIOS + + :return: The preferred_use_bios of this V1alpha1FirmwarePreferences. + :rtype: bool + """ + return self._preferred_use_bios + + @preferred_use_bios.setter + def preferred_use_bios(self, preferred_use_bios): + """ + Sets the preferred_use_bios of this V1alpha1FirmwarePreferences. + PreferredUseBios optionally enables BIOS + + :param preferred_use_bios: The preferred_use_bios of this V1alpha1FirmwarePreferences. + :type: bool + """ + + self._preferred_use_bios = preferred_use_bios + + @property + def preferred_use_bios_serial(self): + """ + Gets the preferred_use_bios_serial of this V1alpha1FirmwarePreferences. + PreferredUseBiosSerial optionally transmitts BIOS output over the serial. Requires PreferredUseBios to be enabled. + + :return: The preferred_use_bios_serial of this V1alpha1FirmwarePreferences. + :rtype: bool + """ + return self._preferred_use_bios_serial + + @preferred_use_bios_serial.setter + def preferred_use_bios_serial(self, preferred_use_bios_serial): + """ + Sets the preferred_use_bios_serial of this V1alpha1FirmwarePreferences. + PreferredUseBiosSerial optionally transmitts BIOS output over the serial. Requires PreferredUseBios to be enabled. + + :param preferred_use_bios_serial: The preferred_use_bios_serial of this V1alpha1FirmwarePreferences. + :type: bool + """ + + self._preferred_use_bios_serial = preferred_use_bios_serial + + @property + def preferred_use_efi(self): + """ + Gets the preferred_use_efi of this V1alpha1FirmwarePreferences. + PreferredUseEfi optionally enables EFI + + :return: The preferred_use_efi of this V1alpha1FirmwarePreferences. + :rtype: bool + """ + return self._preferred_use_efi + + @preferred_use_efi.setter + def preferred_use_efi(self, preferred_use_efi): + """ + Sets the preferred_use_efi of this V1alpha1FirmwarePreferences. + PreferredUseEfi optionally enables EFI + + :param preferred_use_efi: The preferred_use_efi of this V1alpha1FirmwarePreferences. + :type: bool + """ + + self._preferred_use_efi = preferred_use_efi + + @property + def preferred_use_secure_boot(self): + """ + Gets the preferred_use_secure_boot of this V1alpha1FirmwarePreferences. + PreferredUseSecureBoot optionally enables SecureBoot and the OVMF roms will be swapped for SecureBoot-enabled ones. Requires PreferredUseEfi and PreferredSmm to be enabled. + + :return: The preferred_use_secure_boot of this V1alpha1FirmwarePreferences. + :rtype: bool + """ + return self._preferred_use_secure_boot + + @preferred_use_secure_boot.setter + def preferred_use_secure_boot(self, preferred_use_secure_boot): + """ + Sets the preferred_use_secure_boot of this V1alpha1FirmwarePreferences. + PreferredUseSecureBoot optionally enables SecureBoot and the OVMF roms will be swapped for SecureBoot-enabled ones. Requires PreferredUseEfi and PreferredSmm to be enabled. + + :param preferred_use_secure_boot: The preferred_use_secure_boot of this V1alpha1FirmwarePreferences. + :type: bool + """ + + self._preferred_use_secure_boot = preferred_use_secure_boot + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1FirmwarePreferences): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_machine_preferences.py b/kubevirt/models/v1alpha1_machine_preferences.py new file mode 100644 index 00000000..1b1ac749 --- /dev/null +++ b/kubevirt/models/v1alpha1_machine_preferences.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1MachinePreferences(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'preferred_machine_type': 'str' + } + + attribute_map = { + 'preferred_machine_type': 'preferredMachineType' + } + + def __init__(self, preferred_machine_type=None): + """ + V1alpha1MachinePreferences - a model defined in Swagger + """ + + self._preferred_machine_type = None + + if preferred_machine_type is not None: + self.preferred_machine_type = preferred_machine_type + + @property + def preferred_machine_type(self): + """ + Gets the preferred_machine_type of this V1alpha1MachinePreferences. + PreferredMachineType optionally defines the preferred machine type to use. + + :return: The preferred_machine_type of this V1alpha1MachinePreferences. + :rtype: str + """ + return self._preferred_machine_type + + @preferred_machine_type.setter + def preferred_machine_type(self, preferred_machine_type): + """ + Sets the preferred_machine_type of this V1alpha1MachinePreferences. + PreferredMachineType optionally defines the preferred machine type to use. + + :param preferred_machine_type: The preferred_machine_type of this V1alpha1MachinePreferences. + :type: str + """ + + self._preferred_machine_type = preferred_machine_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1MachinePreferences): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_memory_flavor.py b/kubevirt/models/v1alpha1_memory_flavor.py new file mode 100644 index 00000000..ccdfe0a1 --- /dev/null +++ b/kubevirt/models/v1alpha1_memory_flavor.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1MemoryFlavor(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'guest': 'K8sIoApimachineryPkgApiResourceQuantity', + 'hugepages': 'V1Hugepages' + } + + attribute_map = { + 'guest': 'guest', + 'hugepages': 'hugepages' + } + + def __init__(self, guest=None, hugepages=None): + """ + V1alpha1MemoryFlavor - a model defined in Swagger + """ + + self._guest = None + self._hugepages = None + + if guest is not None: + self.guest = guest + if hugepages is not None: + self.hugepages = hugepages + + @property + def guest(self): + """ + Gets the guest of this V1alpha1MemoryFlavor. + Required amount of memory which is visible inside the guest OS. + + :return: The guest of this V1alpha1MemoryFlavor. + :rtype: K8sIoApimachineryPkgApiResourceQuantity + """ + return self._guest + + @guest.setter + def guest(self, guest): + """ + Sets the guest of this V1alpha1MemoryFlavor. + Required amount of memory which is visible inside the guest OS. + + :param guest: The guest of this V1alpha1MemoryFlavor. + :type: K8sIoApimachineryPkgApiResourceQuantity + """ + + self._guest = guest + + @property + def hugepages(self): + """ + Gets the hugepages of this V1alpha1MemoryFlavor. + Optionally enables the use of hugepages for the VirtualMachineInstance instead of regular memory. + + :return: The hugepages of this V1alpha1MemoryFlavor. + :rtype: V1Hugepages + """ + return self._hugepages + + @hugepages.setter + def hugepages(self, hugepages): + """ + Sets the hugepages of this V1alpha1MemoryFlavor. + Optionally enables the use of hugepages for the VirtualMachineInstance instead of regular memory. + + :param hugepages: The hugepages of this V1alpha1MemoryFlavor. + :type: V1Hugepages + """ + + self._hugepages = hugepages + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1MemoryFlavor): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_cluster_flavor.py b/kubevirt/models/v1alpha1_virtual_machine_cluster_flavor.py index 503b58e8..bde53c30 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_cluster_flavor.py +++ b/kubevirt/models/v1alpha1_virtual_machine_cluster_flavor.py @@ -133,7 +133,7 @@ def metadata(self, metadata): def spec(self): """ Gets the spec of this V1alpha1VirtualMachineClusterFlavor. - VirtualMachineFlavorSpec for the flavor + Required spec describing the flavor :return: The spec of this V1alpha1VirtualMachineClusterFlavor. :rtype: V1alpha1VirtualMachineFlavorSpec @@ -144,7 +144,7 @@ def spec(self): def spec(self, spec): """ Sets the spec of this V1alpha1VirtualMachineClusterFlavor. - VirtualMachineFlavorSpec for the flavor + Required spec describing the flavor :param spec: The spec of this V1alpha1VirtualMachineClusterFlavor. :type: V1alpha1VirtualMachineFlavorSpec diff --git a/kubevirt/models/v1alpha1_virtual_machine_cluster_preference.py b/kubevirt/models/v1alpha1_virtual_machine_cluster_preference.py new file mode 100644 index 00000000..ad55099d --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_cluster_preference.py @@ -0,0 +1,208 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineClusterPreference(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', + 'spec': 'V1alpha1VirtualMachinePreferenceSpec' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None): + """ + V1alpha1VirtualMachineClusterPreference - a model defined in Swagger + """ + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + self.spec = spec + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1VirtualMachineClusterPreference. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1alpha1VirtualMachineClusterPreference. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1VirtualMachineClusterPreference. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1VirtualMachineClusterPreference. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1alpha1VirtualMachineClusterPreference. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1VirtualMachineClusterPreference. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1VirtualMachineClusterPreference. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1VirtualMachineClusterPreference. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1VirtualMachineClusterPreference. + + :return: The metadata of this V1alpha1VirtualMachineClusterPreference. + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1VirtualMachineClusterPreference. + + :param metadata: The metadata of this V1alpha1VirtualMachineClusterPreference. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1alpha1VirtualMachineClusterPreference. + Required spec describing the preferences + + :return: The spec of this V1alpha1VirtualMachineClusterPreference. + :rtype: V1alpha1VirtualMachinePreferenceSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1alpha1VirtualMachineClusterPreference. + Required spec describing the preferences + + :param spec: The spec of this V1alpha1VirtualMachineClusterPreference. + :type: V1alpha1VirtualMachinePreferenceSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineClusterPreference): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_cluster_preference_list.py b/kubevirt/models/v1alpha1_virtual_machine_cluster_preference_list.py new file mode 100644 index 00000000..1d9909f5 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_cluster_preference_list.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineClusterPreferenceList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'items': 'list[V1alpha1VirtualMachineClusterPreference]', + 'kind': 'str', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1alpha1VirtualMachineClusterPreferenceList - a model defined in Swagger + """ + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1VirtualMachineClusterPreferenceList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1alpha1VirtualMachineClusterPreferenceList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1VirtualMachineClusterPreferenceList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1VirtualMachineClusterPreferenceList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1alpha1VirtualMachineClusterPreferenceList. + + :return: The items of this V1alpha1VirtualMachineClusterPreferenceList. + :rtype: list[V1alpha1VirtualMachineClusterPreference] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1alpha1VirtualMachineClusterPreferenceList. + + :param items: The items of this V1alpha1VirtualMachineClusterPreferenceList. + :type: list[V1alpha1VirtualMachineClusterPreference] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1alpha1VirtualMachineClusterPreferenceList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1VirtualMachineClusterPreferenceList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1VirtualMachineClusterPreferenceList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1VirtualMachineClusterPreferenceList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1VirtualMachineClusterPreferenceList. + + :return: The metadata of this V1alpha1VirtualMachineClusterPreferenceList. + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1VirtualMachineClusterPreferenceList. + + :param metadata: The metadata of this V1alpha1VirtualMachineClusterPreferenceList. + :type: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineClusterPreferenceList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_flavor.py b/kubevirt/models/v1alpha1_virtual_machine_flavor.py index 44be4397..b9e16c64 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_flavor.py +++ b/kubevirt/models/v1alpha1_virtual_machine_flavor.py @@ -133,7 +133,7 @@ def metadata(self, metadata): def spec(self): """ Gets the spec of this V1alpha1VirtualMachineFlavor. - VirtualMachineFlavorSpec for the flavor + Required spec describing the flavor :return: The spec of this V1alpha1VirtualMachineFlavor. :rtype: V1alpha1VirtualMachineFlavorSpec @@ -144,7 +144,7 @@ def spec(self): def spec(self, spec): """ Sets the spec of this V1alpha1VirtualMachineFlavor. - VirtualMachineFlavorSpec for the flavor + Required spec describing the flavor :param spec: The spec of this V1alpha1VirtualMachineFlavor. :type: V1alpha1VirtualMachineFlavorSpec diff --git a/kubevirt/models/v1alpha1_virtual_machine_flavor_spec.py b/kubevirt/models/v1alpha1_virtual_machine_flavor_spec.py index b169f87d..3d0afdbe 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_flavor_spec.py +++ b/kubevirt/models/v1alpha1_virtual_machine_flavor_spec.py @@ -31,30 +31,54 @@ class V1alpha1VirtualMachineFlavorSpec(object): and the value is json key in definition. """ swagger_types = { - 'cpu': 'V1CPU' + 'cpu': 'V1alpha1CPUFlavor', + 'gpus': 'list[V1GPU]', + 'host_devices': 'list[V1HostDevice]', + 'io_threads_policy': 'str', + 'launch_security': 'V1LaunchSecurity', + 'memory': 'V1alpha1MemoryFlavor' } attribute_map = { - 'cpu': 'cpu' + 'cpu': 'cpu', + 'gpus': 'gpus', + 'host_devices': 'hostDevices', + 'io_threads_policy': 'ioThreadsPolicy', + 'launch_security': 'launchSecurity', + 'memory': 'memory' } - def __init__(self, cpu=None): + def __init__(self, cpu=None, gpus=None, host_devices=None, io_threads_policy=None, launch_security=None, memory=None): """ V1alpha1VirtualMachineFlavorSpec - a model defined in Swagger """ self._cpu = None + self._gpus = None + self._host_devices = None + self._io_threads_policy = None + self._launch_security = None + self._memory = None - if cpu is not None: - self.cpu = cpu + self.cpu = cpu + if gpus is not None: + self.gpus = gpus + if host_devices is not None: + self.host_devices = host_devices + if io_threads_policy is not None: + self.io_threads_policy = io_threads_policy + if launch_security is not None: + self.launch_security = launch_security + self.memory = memory @property def cpu(self): """ Gets the cpu of this V1alpha1VirtualMachineFlavorSpec. + Required CPU related attributes of the flavor. :return: The cpu of this V1alpha1VirtualMachineFlavorSpec. - :rtype: V1CPU + :rtype: V1alpha1CPUFlavor """ return self._cpu @@ -62,13 +86,133 @@ def cpu(self): def cpu(self, cpu): """ Sets the cpu of this V1alpha1VirtualMachineFlavorSpec. + Required CPU related attributes of the flavor. :param cpu: The cpu of this V1alpha1VirtualMachineFlavorSpec. - :type: V1CPU + :type: V1alpha1CPUFlavor """ + if cpu is None: + raise ValueError("Invalid value for `cpu`, must not be `None`") self._cpu = cpu + @property + def gpus(self): + """ + Gets the gpus of this V1alpha1VirtualMachineFlavorSpec. + Optionally defines any GPU devices associated with the flavor. + + :return: The gpus of this V1alpha1VirtualMachineFlavorSpec. + :rtype: list[V1GPU] + """ + return self._gpus + + @gpus.setter + def gpus(self, gpus): + """ + Sets the gpus of this V1alpha1VirtualMachineFlavorSpec. + Optionally defines any GPU devices associated with the flavor. + + :param gpus: The gpus of this V1alpha1VirtualMachineFlavorSpec. + :type: list[V1GPU] + """ + + self._gpus = gpus + + @property + def host_devices(self): + """ + Gets the host_devices of this V1alpha1VirtualMachineFlavorSpec. + Optionally defines any HostDevices associated with the flavor. + + :return: The host_devices of this V1alpha1VirtualMachineFlavorSpec. + :rtype: list[V1HostDevice] + """ + return self._host_devices + + @host_devices.setter + def host_devices(self, host_devices): + """ + Sets the host_devices of this V1alpha1VirtualMachineFlavorSpec. + Optionally defines any HostDevices associated with the flavor. + + :param host_devices: The host_devices of this V1alpha1VirtualMachineFlavorSpec. + :type: list[V1HostDevice] + """ + + self._host_devices = host_devices + + @property + def io_threads_policy(self): + """ + Gets the io_threads_policy of this V1alpha1VirtualMachineFlavorSpec. + Optionally defines the IOThreadsPolicy to be used by the flavor. + + :return: The io_threads_policy of this V1alpha1VirtualMachineFlavorSpec. + :rtype: str + """ + return self._io_threads_policy + + @io_threads_policy.setter + def io_threads_policy(self, io_threads_policy): + """ + Sets the io_threads_policy of this V1alpha1VirtualMachineFlavorSpec. + Optionally defines the IOThreadsPolicy to be used by the flavor. + + :param io_threads_policy: The io_threads_policy of this V1alpha1VirtualMachineFlavorSpec. + :type: str + """ + + self._io_threads_policy = io_threads_policy + + @property + def launch_security(self): + """ + Gets the launch_security of this V1alpha1VirtualMachineFlavorSpec. + Optionally defines the LaunchSecurity to be used by the flavor. + + :return: The launch_security of this V1alpha1VirtualMachineFlavorSpec. + :rtype: V1LaunchSecurity + """ + return self._launch_security + + @launch_security.setter + def launch_security(self, launch_security): + """ + Sets the launch_security of this V1alpha1VirtualMachineFlavorSpec. + Optionally defines the LaunchSecurity to be used by the flavor. + + :param launch_security: The launch_security of this V1alpha1VirtualMachineFlavorSpec. + :type: V1LaunchSecurity + """ + + self._launch_security = launch_security + + @property + def memory(self): + """ + Gets the memory of this V1alpha1VirtualMachineFlavorSpec. + Required Memory related attributes of the flavor. + + :return: The memory of this V1alpha1VirtualMachineFlavorSpec. + :rtype: V1alpha1MemoryFlavor + """ + return self._memory + + @memory.setter + def memory(self, memory): + """ + Sets the memory of this V1alpha1VirtualMachineFlavorSpec. + Required Memory related attributes of the flavor. + + :param memory: The memory of this V1alpha1VirtualMachineFlavorSpec. + :type: V1alpha1MemoryFlavor + """ + if memory is None: + raise ValueError("Invalid value for `memory`, must not be `None`") + + self._memory = memory + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1alpha1_virtual_machine_preference.py b/kubevirt/models/v1alpha1_virtual_machine_preference.py new file mode 100644 index 00000000..ee8bbc01 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_preference.py @@ -0,0 +1,208 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachinePreference(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', + 'spec': 'V1alpha1VirtualMachinePreferenceSpec' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None): + """ + V1alpha1VirtualMachinePreference - a model defined in Swagger + """ + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + self.spec = spec + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1VirtualMachinePreference. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1alpha1VirtualMachinePreference. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1VirtualMachinePreference. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1VirtualMachinePreference. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1alpha1VirtualMachinePreference. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1VirtualMachinePreference. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1VirtualMachinePreference. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1VirtualMachinePreference. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1VirtualMachinePreference. + + :return: The metadata of this V1alpha1VirtualMachinePreference. + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1VirtualMachinePreference. + + :param metadata: The metadata of this V1alpha1VirtualMachinePreference. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1alpha1VirtualMachinePreference. + Required spec describing the preferences + + :return: The spec of this V1alpha1VirtualMachinePreference. + :rtype: V1alpha1VirtualMachinePreferenceSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1alpha1VirtualMachinePreference. + Required spec describing the preferences + + :param spec: The spec of this V1alpha1VirtualMachinePreference. + :type: V1alpha1VirtualMachinePreferenceSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachinePreference): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_preference_list.py b/kubevirt/models/v1alpha1_virtual_machine_preference_list.py new file mode 100644 index 00000000..d1108d84 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_preference_list.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachinePreferenceList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'items': 'list[V1alpha1VirtualMachinePreference]', + 'kind': 'str', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1alpha1VirtualMachinePreferenceList - a model defined in Swagger + """ + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1VirtualMachinePreferenceList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1alpha1VirtualMachinePreferenceList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1VirtualMachinePreferenceList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1VirtualMachinePreferenceList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1alpha1VirtualMachinePreferenceList. + + :return: The items of this V1alpha1VirtualMachinePreferenceList. + :rtype: list[V1alpha1VirtualMachinePreference] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1alpha1VirtualMachinePreferenceList. + + :param items: The items of this V1alpha1VirtualMachinePreferenceList. + :type: list[V1alpha1VirtualMachinePreference] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1alpha1VirtualMachinePreferenceList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1VirtualMachinePreferenceList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1VirtualMachinePreferenceList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1VirtualMachinePreferenceList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1VirtualMachinePreferenceList. + + :return: The metadata of this V1alpha1VirtualMachinePreferenceList. + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1VirtualMachinePreferenceList. + + :param metadata: The metadata of this V1alpha1VirtualMachinePreferenceList. + :type: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachinePreferenceList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_preference_spec.py b/kubevirt/models/v1alpha1_virtual_machine_preference_spec.py new file mode 100644 index 00000000..556ee418 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_preference_spec.py @@ -0,0 +1,265 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachinePreferenceSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'clock': 'V1alpha1ClockPreferences', + 'cpu': 'V1alpha1CPUPreferences', + 'devices': 'V1alpha1DevicePreferences', + 'features': 'V1alpha1FeaturePreferences', + 'firmware': 'V1alpha1FirmwarePreferences', + 'machine': 'V1alpha1MachinePreferences' + } + + attribute_map = { + 'clock': 'clock', + 'cpu': 'cpu', + 'devices': 'devices', + 'features': 'features', + 'firmware': 'firmware', + 'machine': 'machine' + } + + def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None): + """ + V1alpha1VirtualMachinePreferenceSpec - a model defined in Swagger + """ + + self._clock = None + self._cpu = None + self._devices = None + self._features = None + self._firmware = None + self._machine = None + + if clock is not None: + self.clock = clock + if cpu is not None: + self.cpu = cpu + if devices is not None: + self.devices = devices + if features is not None: + self.features = features + if firmware is not None: + self.firmware = firmware + if machine is not None: + self.machine = machine + + @property + def clock(self): + """ + Gets the clock of this V1alpha1VirtualMachinePreferenceSpec. + Clock optionally defines preferences associated with the Clock attribute of a VirtualMachineInstance DomainSpec + + :return: The clock of this V1alpha1VirtualMachinePreferenceSpec. + :rtype: V1alpha1ClockPreferences + """ + return self._clock + + @clock.setter + def clock(self, clock): + """ + Sets the clock of this V1alpha1VirtualMachinePreferenceSpec. + Clock optionally defines preferences associated with the Clock attribute of a VirtualMachineInstance DomainSpec + + :param clock: The clock of this V1alpha1VirtualMachinePreferenceSpec. + :type: V1alpha1ClockPreferences + """ + + self._clock = clock + + @property + def cpu(self): + """ + Gets the cpu of this V1alpha1VirtualMachinePreferenceSpec. + CPU optionally defines preferences associated with the CPU attribute of a VirtualMachineInstance DomainSpec + + :return: The cpu of this V1alpha1VirtualMachinePreferenceSpec. + :rtype: V1alpha1CPUPreferences + """ + return self._cpu + + @cpu.setter + def cpu(self, cpu): + """ + Sets the cpu of this V1alpha1VirtualMachinePreferenceSpec. + CPU optionally defines preferences associated with the CPU attribute of a VirtualMachineInstance DomainSpec + + :param cpu: The cpu of this V1alpha1VirtualMachinePreferenceSpec. + :type: V1alpha1CPUPreferences + """ + + self._cpu = cpu + + @property + def devices(self): + """ + Gets the devices of this V1alpha1VirtualMachinePreferenceSpec. + Devices optionally defines preferences associated with the Devices attribute of a VirtualMachineInstance DomainSpec + + :return: The devices of this V1alpha1VirtualMachinePreferenceSpec. + :rtype: V1alpha1DevicePreferences + """ + return self._devices + + @devices.setter + def devices(self, devices): + """ + Sets the devices of this V1alpha1VirtualMachinePreferenceSpec. + Devices optionally defines preferences associated with the Devices attribute of a VirtualMachineInstance DomainSpec + + :param devices: The devices of this V1alpha1VirtualMachinePreferenceSpec. + :type: V1alpha1DevicePreferences + """ + + self._devices = devices + + @property + def features(self): + """ + Gets the features of this V1alpha1VirtualMachinePreferenceSpec. + Features optionally defines preferences associated with the Features attribute of a VirtualMachineInstance DomainSpec + + :return: The features of this V1alpha1VirtualMachinePreferenceSpec. + :rtype: V1alpha1FeaturePreferences + """ + return self._features + + @features.setter + def features(self, features): + """ + Sets the features of this V1alpha1VirtualMachinePreferenceSpec. + Features optionally defines preferences associated with the Features attribute of a VirtualMachineInstance DomainSpec + + :param features: The features of this V1alpha1VirtualMachinePreferenceSpec. + :type: V1alpha1FeaturePreferences + """ + + self._features = features + + @property + def firmware(self): + """ + Gets the firmware of this V1alpha1VirtualMachinePreferenceSpec. + Firmware optionally defines preferences associated with the Firmware attribute of a VirtualMachineInstance DomainSpec + + :return: The firmware of this V1alpha1VirtualMachinePreferenceSpec. + :rtype: V1alpha1FirmwarePreferences + """ + return self._firmware + + @firmware.setter + def firmware(self, firmware): + """ + Sets the firmware of this V1alpha1VirtualMachinePreferenceSpec. + Firmware optionally defines preferences associated with the Firmware attribute of a VirtualMachineInstance DomainSpec + + :param firmware: The firmware of this V1alpha1VirtualMachinePreferenceSpec. + :type: V1alpha1FirmwarePreferences + """ + + self._firmware = firmware + + @property + def machine(self): + """ + Gets the machine of this V1alpha1VirtualMachinePreferenceSpec. + Machine optionally defines preferences associated with the Machine attribute of a VirtualMachineInstance DomainSpec + + :return: The machine of this V1alpha1VirtualMachinePreferenceSpec. + :rtype: V1alpha1MachinePreferences + """ + return self._machine + + @machine.setter + def machine(self, machine): + """ + Sets the machine of this V1alpha1VirtualMachinePreferenceSpec. + Machine optionally defines preferences associated with the Machine attribute of a VirtualMachineInstance DomainSpec + + :param machine: The machine of this V1alpha1VirtualMachinePreferenceSpec. + :type: V1alpha1MachinePreferences + """ + + self._machine = machine + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachinePreferenceSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 1345faa0..94fd41b5 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.52.0-289-gf5973335f" +VERSION = "v0.53.0-157-gdf7ac17a4" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 05d33d00..a06e78f2 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.52.0-289-gf5973335f" +"packageVersion": "v0.53.0-157-gdf7ac17a4" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 99b95a02..8b7ca56d 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -100,6 +100,14 @@ def test_create_namespaced_virtual_machine_pool(self): Test case for create_namespaced_virtual_machine_pool + """ + pass + + def test_create_namespaced_virtual_machine_preference(self): + """ + Test case for create_namespaced_virtual_machine_preference + + """ pass @@ -132,6 +140,14 @@ def test_create_virtual_machine_cluster_flavor(self): Test case for create_virtual_machine_cluster_flavor + """ + pass + + def test_create_virtual_machine_cluster_preference(self): + """ + Test case for create_virtual_machine_cluster_preference + + """ pass @@ -204,6 +220,14 @@ def test_delete_collection_namespaced_virtual_machine_pool(self): Test case for delete_collection_namespaced_virtual_machine_pool + """ + pass + + def test_delete_collection_namespaced_virtual_machine_preference(self): + """ + Test case for delete_collection_namespaced_virtual_machine_preference + + """ pass @@ -236,6 +260,14 @@ def test_delete_collection_virtual_machine_cluster_flavor(self): Test case for delete_collection_virtual_machine_cluster_flavor + """ + pass + + def test_delete_collection_virtual_machine_cluster_preference(self): + """ + Test case for delete_collection_virtual_machine_cluster_preference + + """ pass @@ -308,6 +340,14 @@ def test_delete_namespaced_virtual_machine_pool(self): Test case for delete_namespaced_virtual_machine_pool + """ + pass + + def test_delete_namespaced_virtual_machine_preference(self): + """ + Test case for delete_namespaced_virtual_machine_preference + + """ pass @@ -340,6 +380,14 @@ def test_delete_virtual_machine_cluster_flavor(self): Test case for delete_virtual_machine_cluster_flavor + """ + pass + + def test_delete_virtual_machine_cluster_preference(self): + """ + Test case for delete_virtual_machine_cluster_preference + + """ pass @@ -556,6 +604,14 @@ def test_list_namespaced_virtual_machine_pool(self): Test case for list_namespaced_virtual_machine_pool + """ + pass + + def test_list_namespaced_virtual_machine_preference(self): + """ + Test case for list_namespaced_virtual_machine_preference + + """ pass @@ -588,6 +644,14 @@ def test_list_virtual_machine_cluster_flavor(self): Test case for list_virtual_machine_cluster_flavor + """ + pass + + def test_list_virtual_machine_cluster_preference(self): + """ + Test case for list_virtual_machine_cluster_preference + + """ pass @@ -644,6 +708,14 @@ def test_list_virtual_machine_pool_for_all_namespaces(self): Test case for list_virtual_machine_pool_for_all_namespaces + """ + pass + + def test_list_virtual_machine_preference_for_all_namespaces(self): + """ + Test case for list_virtual_machine_preference_for_all_namespaces + + """ pass @@ -740,6 +812,14 @@ def test_patch_namespaced_virtual_machine_pool(self): Test case for patch_namespaced_virtual_machine_pool + """ + pass + + def test_patch_namespaced_virtual_machine_preference(self): + """ + Test case for patch_namespaced_virtual_machine_preference + + """ pass @@ -772,6 +852,14 @@ def test_patch_virtual_machine_cluster_flavor(self): Test case for patch_virtual_machine_cluster_flavor + """ + pass + + def test_patch_virtual_machine_cluster_preference(self): + """ + Test case for patch_virtual_machine_cluster_preference + + """ pass @@ -844,6 +932,14 @@ def test_read_namespaced_virtual_machine_pool(self): Test case for read_namespaced_virtual_machine_pool + """ + pass + + def test_read_namespaced_virtual_machine_preference(self): + """ + Test case for read_namespaced_virtual_machine_preference + + """ pass @@ -876,6 +972,14 @@ def test_read_virtual_machine_cluster_flavor(self): Test case for read_virtual_machine_cluster_flavor + """ + pass + + def test_read_virtual_machine_cluster_preference(self): + """ + Test case for read_virtual_machine_cluster_preference + + """ pass @@ -948,6 +1052,14 @@ def test_replace_namespaced_virtual_machine_pool(self): Test case for replace_namespaced_virtual_machine_pool + """ + pass + + def test_replace_namespaced_virtual_machine_preference(self): + """ + Test case for replace_namespaced_virtual_machine_preference + + """ pass @@ -980,6 +1092,14 @@ def test_replace_virtual_machine_cluster_flavor(self): Test case for replace_virtual_machine_cluster_flavor + """ + pass + + def test_replace_virtual_machine_cluster_preference(self): + """ + Test case for replace_virtual_machine_cluster_preference + + """ pass @@ -1564,6 +1684,14 @@ def test_watch_namespaced_virtual_machine_pool(self): Test case for watch_namespaced_virtual_machine_pool + """ + pass + + def test_watch_namespaced_virtual_machine_preference(self): + """ + Test case for watch_namespaced_virtual_machine_preference + + """ pass @@ -1596,6 +1724,14 @@ def test_watch_virtual_machine_cluster_flavor_list_for_all_namespaces(self): Test case for watch_virtual_machine_cluster_flavor_list_for_all_namespaces + """ + pass + + def test_watch_virtual_machine_cluster_preference_list_for_all_namespaces(self): + """ + Test case for watch_virtual_machine_cluster_preference_list_for_all_namespaces + + """ pass @@ -1652,6 +1788,14 @@ def test_watch_virtual_machine_pool_list_for_all_namespaces(self): Test case for watch_virtual_machine_pool_list_for_all_namespaces + """ + pass + + def test_watch_virtual_machine_preference_list_for_all_namespaces(self): + """ + Test case for watch_virtual_machine_preference_list_for_all_namespaces + + """ pass diff --git a/test/test_v1_clock_offset.py b/test/test_v1_clock_offset.py new file mode 100644 index 00000000..cbf4a4c9 --- /dev/null +++ b/test/test_v1_clock_offset.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_clock_offset import V1ClockOffset + + +class TestV1ClockOffset(unittest.TestCase): + """ V1ClockOffset unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ClockOffset(self): + """ + Test V1ClockOffset + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_clock_offset.V1ClockOffset() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_preference_matcher.py b/test/test_v1_preference_matcher.py new file mode 100644 index 00000000..9dab8deb --- /dev/null +++ b/test/test_v1_preference_matcher.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_preference_matcher import V1PreferenceMatcher + + +class TestV1PreferenceMatcher(unittest.TestCase): + """ V1PreferenceMatcher unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PreferenceMatcher(self): + """ + Test V1PreferenceMatcher + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_preference_matcher.V1PreferenceMatcher() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_clock_preferences.py b/test/test_v1alpha1_clock_preferences.py new file mode 100644 index 00000000..9a301b4e --- /dev/null +++ b/test/test_v1alpha1_clock_preferences.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_clock_preferences import V1alpha1ClockPreferences + + +class TestV1alpha1ClockPreferences(unittest.TestCase): + """ V1alpha1ClockPreferences unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1ClockPreferences(self): + """ + Test V1alpha1ClockPreferences + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_clock_preferences.V1alpha1ClockPreferences() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_cpu_flavor.py b/test/test_v1alpha1_cpu_flavor.py new file mode 100644 index 00000000..e97149a8 --- /dev/null +++ b/test/test_v1alpha1_cpu_flavor.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_cpu_flavor import V1alpha1CPUFlavor + + +class TestV1alpha1CPUFlavor(unittest.TestCase): + """ V1alpha1CPUFlavor unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1CPUFlavor(self): + """ + Test V1alpha1CPUFlavor + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_cpu_flavor.V1alpha1CPUFlavor() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_cpu_preferences.py b/test/test_v1alpha1_cpu_preferences.py new file mode 100644 index 00000000..c1cff36c --- /dev/null +++ b/test/test_v1alpha1_cpu_preferences.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_cpu_preferences import V1alpha1CPUPreferences + + +class TestV1alpha1CPUPreferences(unittest.TestCase): + """ V1alpha1CPUPreferences unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1CPUPreferences(self): + """ + Test V1alpha1CPUPreferences + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_cpu_preferences.V1alpha1CPUPreferences() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_device_preferences.py b/test/test_v1alpha1_device_preferences.py new file mode 100644 index 00000000..72588485 --- /dev/null +++ b/test/test_v1alpha1_device_preferences.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_device_preferences import V1alpha1DevicePreferences + + +class TestV1alpha1DevicePreferences(unittest.TestCase): + """ V1alpha1DevicePreferences unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1DevicePreferences(self): + """ + Test V1alpha1DevicePreferences + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_device_preferences.V1alpha1DevicePreferences() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_feature_preferences.py b/test/test_v1alpha1_feature_preferences.py new file mode 100644 index 00000000..cea75fe4 --- /dev/null +++ b/test/test_v1alpha1_feature_preferences.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_feature_preferences import V1alpha1FeaturePreferences + + +class TestV1alpha1FeaturePreferences(unittest.TestCase): + """ V1alpha1FeaturePreferences unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1FeaturePreferences(self): + """ + Test V1alpha1FeaturePreferences + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_feature_preferences.V1alpha1FeaturePreferences() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_firmware_preferences.py b/test/test_v1alpha1_firmware_preferences.py new file mode 100644 index 00000000..eaa23a52 --- /dev/null +++ b/test/test_v1alpha1_firmware_preferences.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_firmware_preferences import V1alpha1FirmwarePreferences + + +class TestV1alpha1FirmwarePreferences(unittest.TestCase): + """ V1alpha1FirmwarePreferences unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1FirmwarePreferences(self): + """ + Test V1alpha1FirmwarePreferences + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_firmware_preferences.V1alpha1FirmwarePreferences() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_machine_preferences.py b/test/test_v1alpha1_machine_preferences.py new file mode 100644 index 00000000..dac92b30 --- /dev/null +++ b/test/test_v1alpha1_machine_preferences.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_machine_preferences import V1alpha1MachinePreferences + + +class TestV1alpha1MachinePreferences(unittest.TestCase): + """ V1alpha1MachinePreferences unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1MachinePreferences(self): + """ + Test V1alpha1MachinePreferences + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_machine_preferences.V1alpha1MachinePreferences() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_memory_flavor.py b/test/test_v1alpha1_memory_flavor.py new file mode 100644 index 00000000..e9f45eca --- /dev/null +++ b/test/test_v1alpha1_memory_flavor.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_memory_flavor import V1alpha1MemoryFlavor + + +class TestV1alpha1MemoryFlavor(unittest.TestCase): + """ V1alpha1MemoryFlavor unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1MemoryFlavor(self): + """ + Test V1alpha1MemoryFlavor + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_memory_flavor.V1alpha1MemoryFlavor() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_cluster_preference.py b/test/test_v1alpha1_virtual_machine_cluster_preference.py new file mode 100644 index 00000000..d725cdb8 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_cluster_preference.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_cluster_preference import V1alpha1VirtualMachineClusterPreference + + +class TestV1alpha1VirtualMachineClusterPreference(unittest.TestCase): + """ V1alpha1VirtualMachineClusterPreference unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineClusterPreference(self): + """ + Test V1alpha1VirtualMachineClusterPreference + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_cluster_preference.V1alpha1VirtualMachineClusterPreference() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_cluster_preference_list.py b/test/test_v1alpha1_virtual_machine_cluster_preference_list.py new file mode 100644 index 00000000..c831523f --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_cluster_preference_list.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_cluster_preference_list import V1alpha1VirtualMachineClusterPreferenceList + + +class TestV1alpha1VirtualMachineClusterPreferenceList(unittest.TestCase): + """ V1alpha1VirtualMachineClusterPreferenceList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineClusterPreferenceList(self): + """ + Test V1alpha1VirtualMachineClusterPreferenceList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_cluster_preference_list.V1alpha1VirtualMachineClusterPreferenceList() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_preference.py b/test/test_v1alpha1_virtual_machine_preference.py new file mode 100644 index 00000000..9d78edec --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_preference.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_preference import V1alpha1VirtualMachinePreference + + +class TestV1alpha1VirtualMachinePreference(unittest.TestCase): + """ V1alpha1VirtualMachinePreference unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachinePreference(self): + """ + Test V1alpha1VirtualMachinePreference + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_preference.V1alpha1VirtualMachinePreference() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_preference_list.py b/test/test_v1alpha1_virtual_machine_preference_list.py new file mode 100644 index 00000000..e9bfd1ed --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_preference_list.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_preference_list import V1alpha1VirtualMachinePreferenceList + + +class TestV1alpha1VirtualMachinePreferenceList(unittest.TestCase): + """ V1alpha1VirtualMachinePreferenceList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachinePreferenceList(self): + """ + Test V1alpha1VirtualMachinePreferenceList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_preference_list.V1alpha1VirtualMachinePreferenceList() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_preference_spec.py b/test/test_v1alpha1_virtual_machine_preference_spec.py new file mode 100644 index 00000000..5d0b5b39 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_preference_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_preference_spec import V1alpha1VirtualMachinePreferenceSpec + + +class TestV1alpha1VirtualMachinePreferenceSpec(unittest.TestCase): + """ V1alpha1VirtualMachinePreferenceSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachinePreferenceSpec(self): + """ + Test V1alpha1VirtualMachinePreferenceSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_preference_spec.V1alpha1VirtualMachinePreferenceSpec() + pass + + +if __name__ == '__main__': + unittest.main() From e254667e99c2c52a6d9e96337f7b236f09c7e54e Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 27 May 2022 23:28:26 +0000 Subject: [PATCH 273/521] Client Python update by KubeVirt Prow build 1530323384909434880 --- README.md | 9 +- docs/DefaultApi.md | 204 +++++++++ docs/V1DomainMemoryDumpInfo.md | 13 + docs/V1MemoryDumpVolumeSource.md | 12 + docs/V1VirtualMachineMemoryDumpRequest.md | 15 + docs/V1VirtualMachineStatus.md | 1 + docs/V1Volume.md | 1 + docs/V1VolumeStatus.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 9 + kubevirt/__init__.py | 3 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 426 ++++++++++++++++++ kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 3 + kubevirt/models/v1_domain_memory_dump_info.py | 209 +++++++++ .../models/v1_memory_dump_volume_source.py | 182 ++++++++ .../v1_virtual_machine_memory_dump_request.py | 267 +++++++++++ kubevirt/models/v1_virtual_machine_status.py | 30 +- kubevirt/models/v1_volume.py | 30 +- kubevirt/models/v1_volume_status.py | 30 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 32 ++ test/test_v1_domain_memory_dump_info.py | 44 ++ test/test_v1_memory_dump_volume_source.py | 44 ++ ..._v1_virtual_machine_memory_dump_request.py | 44 ++ 27 files changed, 1610 insertions(+), 9 deletions(-) create mode 100644 docs/V1DomainMemoryDumpInfo.md create mode 100644 docs/V1MemoryDumpVolumeSource.md create mode 100644 docs/V1VirtualMachineMemoryDumpRequest.md create mode 100644 kubevirt/models/v1_domain_memory_dump_info.py create mode 100644 kubevirt/models/v1_memory_dump_volume_source.py create mode 100644 kubevirt/models/v1_virtual_machine_memory_dump_request.py create mode 100644 test/test_v1_domain_memory_dump_info.py create mode 100644 test/test_v1_memory_dump_volume_source.py create mode 100644 test/test_v1_virtual_machine_memory_dump_request.py diff --git a/README.md b/README.md index fee5952b..d8d09f3a 100644 --- a/README.md +++ b/README.md @@ -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: v0.53.0-157-gdf7ac17a4 +- Package version: v0.53.0-207-g5bf939408 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -209,8 +209,10 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1_freeze**](docs/DefaultApi.md#v1_freeze) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze | *DefaultApi* | [**v1_guestfs**](docs/DefaultApi.md#v1_guestfs) | **GET** /apis/subresources.kubevirt.io/v1/guestfs | *DefaultApi* | [**v1_guestosinfo**](docs/DefaultApi.md#v1_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | +*DefaultApi* | [**v1_memory_dump**](docs/DefaultApi.md#v1_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/memorydump | *DefaultApi* | [**v1_migrate**](docs/DefaultApi.md#v1_migrate) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | *DefaultApi* | [**v1_pause**](docs/DefaultApi.md#v1_pause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | +*DefaultApi* | [**v1_remove_memory_dump**](docs/DefaultApi.md#v1_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removememorydump | *DefaultApi* | [**v1_restart**](docs/DefaultApi.md#v1_restart) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | *DefaultApi* | [**v1_soft_reboot**](docs/DefaultApi.md#v1_soft_reboot) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/softreboot | *DefaultApi* | [**v1_start**](docs/DefaultApi.md#v1_start) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | @@ -228,8 +230,10 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3_get_sub_api_group**](docs/DefaultApi.md#v1alpha3_get_sub_api_group) | **GET** /apis/subresources.kubevirt.io | *DefaultApi* | [**v1alpha3_guestfs**](docs/DefaultApi.md#v1alpha3_guestfs) | **GET** /apis/subresources.kubevirt.io/v1alpha3/guestfs | *DefaultApi* | [**v1alpha3_guestosinfo**](docs/DefaultApi.md#v1alpha3_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | +*DefaultApi* | [**v1alpha3_memory_dump**](docs/DefaultApi.md#v1alpha3_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/memorydump | *DefaultApi* | [**v1alpha3_migrate**](docs/DefaultApi.md#v1alpha3_migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | *DefaultApi* | [**v1alpha3_pause**](docs/DefaultApi.md#v1alpha3_pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | +*DefaultApi* | [**v1alpha3_remove_memory_dump**](docs/DefaultApi.md#v1alpha3_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removememorydump | *DefaultApi* | [**v1alpha3_restart**](docs/DefaultApi.md#v1alpha3_restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | *DefaultApi* | [**v1alpha3_soft_reboot**](docs/DefaultApi.md#v1alpha3_soft_reboot) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/softreboot | *DefaultApi* | [**v1alpha3_start**](docs/DefaultApi.md#v1alpha3_start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | @@ -382,6 +386,7 @@ Class | Method | HTTP request | Description - [V1Disk](docs/V1Disk.md) - [V1DiskTarget](docs/V1DiskTarget.md) - [V1DiskVerification](docs/V1DiskVerification.md) + - [V1DomainMemoryDumpInfo](docs/V1DomainMemoryDumpInfo.md) - [V1DomainSpec](docs/V1DomainSpec.md) - [V1DownwardAPIVolumeSource](docs/V1DownwardAPIVolumeSource.md) - [V1DownwardMetricsVolumeSource](docs/V1DownwardMetricsVolumeSource.md) @@ -439,6 +444,7 @@ Class | Method | HTTP request | Description - [V1MediatedDevicesConfiguration](docs/V1MediatedDevicesConfiguration.md) - [V1MediatedHostDevice](docs/V1MediatedHostDevice.md) - [V1Memory](docs/V1Memory.md) + - [V1MemoryDumpVolumeSource](docs/V1MemoryDumpVolumeSource.md) - [V1MigrateOptions](docs/V1MigrateOptions.md) - [V1MigrationConfiguration](docs/V1MigrationConfiguration.md) - [V1MultusNetwork](docs/V1MultusNetwork.md) @@ -523,6 +529,7 @@ Class | Method | HTTP request | Description - [V1VirtualMachineInstanceStatus](docs/V1VirtualMachineInstanceStatus.md) - [V1VirtualMachineInstanceTemplateSpec](docs/V1VirtualMachineInstanceTemplateSpec.md) - [V1VirtualMachineList](docs/V1VirtualMachineList.md) + - [V1VirtualMachineMemoryDumpRequest](docs/V1VirtualMachineMemoryDumpRequest.md) - [V1VirtualMachineSpec](docs/V1VirtualMachineSpec.md) - [V1VirtualMachineStartFailure](docs/V1VirtualMachineStartFailure.md) - [V1VirtualMachineStateChangeRequest](docs/V1VirtualMachineStateChangeRequest.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index ff972838..99aad425 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -144,8 +144,10 @@ Method | HTTP request | Description [**v1_freeze**](DefaultApi.md#v1_freeze) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze | [**v1_guestfs**](DefaultApi.md#v1_guestfs) | **GET** /apis/subresources.kubevirt.io/v1/guestfs | [**v1_guestosinfo**](DefaultApi.md#v1_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | +[**v1_memory_dump**](DefaultApi.md#v1_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/memorydump | [**v1_migrate**](DefaultApi.md#v1_migrate) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | [**v1_pause**](DefaultApi.md#v1_pause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | +[**v1_remove_memory_dump**](DefaultApi.md#v1_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removememorydump | [**v1_restart**](DefaultApi.md#v1_restart) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | [**v1_soft_reboot**](DefaultApi.md#v1_soft_reboot) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/softreboot | [**v1_start**](DefaultApi.md#v1_start) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | @@ -163,8 +165,10 @@ Method | HTTP request | Description [**v1alpha3_get_sub_api_group**](DefaultApi.md#v1alpha3_get_sub_api_group) | **GET** /apis/subresources.kubevirt.io | [**v1alpha3_guestfs**](DefaultApi.md#v1alpha3_guestfs) | **GET** /apis/subresources.kubevirt.io/v1alpha3/guestfs | [**v1alpha3_guestosinfo**](DefaultApi.md#v1alpha3_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | +[**v1alpha3_memory_dump**](DefaultApi.md#v1alpha3_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/memorydump | [**v1alpha3_migrate**](DefaultApi.md#v1alpha3_migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | [**v1alpha3_pause**](DefaultApi.md#v1alpha3_pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | +[**v1alpha3_remove_memory_dump**](DefaultApi.md#v1alpha3_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removememorydump | [**v1alpha3_restart**](DefaultApi.md#v1alpha3_restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | [**v1alpha3_soft_reboot**](DefaultApi.md#v1alpha3_soft_reboot) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/softreboot | [**v1alpha3_start**](DefaultApi.md#v1alpha3_start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | @@ -7700,6 +7704,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1_memory_dump** +> str v1_memory_dump(name, namespace, body) + + + +Dumps a VirtualMachineInstance memory. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1VirtualMachineMemoryDumpRequest() # V1VirtualMachineMemoryDumpRequest | + +try: + api_response = api_instance.v1_memory_dump(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1_memory_dump: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1VirtualMachineMemoryDumpRequest**](V1VirtualMachineMemoryDumpRequest.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1_migrate** > str v1_migrate(name, namespace, body) @@ -7802,6 +7857,55 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1_remove_memory_dump** +> str v1_remove_memory_dump(name, namespace) + + + +Remove memory dump association. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1_remove_memory_dump(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1_remove_memory_dump: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1_restart** > str v1_restart(name, namespace, body=body) @@ -8601,6 +8705,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3_memory_dump** +> str v1alpha3_memory_dump(name, namespace, body) + + + +Dumps a VirtualMachineInstance memory. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1VirtualMachineMemoryDumpRequest() # V1VirtualMachineMemoryDumpRequest | + +try: + api_response = api_instance.v1alpha3_memory_dump(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_memory_dump: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1VirtualMachineMemoryDumpRequest**](V1VirtualMachineMemoryDumpRequest.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3_migrate** > str v1alpha3_migrate(name, namespace, body) @@ -8703,6 +8858,55 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3_remove_memory_dump** +> str v1alpha3_remove_memory_dump(name, namespace) + + + +Remove memory dump association. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1alpha3_remove_memory_dump(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_remove_memory_dump: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3_restart** > str v1alpha3_restart(name, namespace, body=body) diff --git a/docs/V1DomainMemoryDumpInfo.md b/docs/V1DomainMemoryDumpInfo.md new file mode 100644 index 00000000..ea6843c7 --- /dev/null +++ b/docs/V1DomainMemoryDumpInfo.md @@ -0,0 +1,13 @@ +# V1DomainMemoryDumpInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**claim_name** | **str** | ClaimName is the name of the pvc the memory was dumped to | [optional] +**end_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | EndTimestamp is the time when the memory dump completed | [optional] +**start_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | StartTimestamp is the time when the memory dump started | [optional] +**target_file_name** | **str** | TargetFileName is the name of the memory dump output | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1MemoryDumpVolumeSource.md b/docs/V1MemoryDumpVolumeSource.md new file mode 100644 index 00000000..85b8a60c --- /dev/null +++ b/docs/V1MemoryDumpVolumeSource.md @@ -0,0 +1,12 @@ +# V1MemoryDumpVolumeSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**claim_name** | **str** | ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | +**hotpluggable** | **bool** | Hotpluggable indicates whether the volume can be hotplugged and hotunplugged. | [optional] +**read_only** | **bool** | Will force the ReadOnly setting in VolumeMounts. Default false. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineMemoryDumpRequest.md b/docs/V1VirtualMachineMemoryDumpRequest.md new file mode 100644 index 00000000..b01f3e0f --- /dev/null +++ b/docs/V1VirtualMachineMemoryDumpRequest.md @@ -0,0 +1,15 @@ +# V1VirtualMachineMemoryDumpRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**claim_name** | **str** | ClaimName is the name of the pvc that will contain the memory dump | +**end_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | EndTimestamp represents the time the memory dump was completed | [optional] +**file_name** | **str** | FileName represents the name of the output file | [optional] +**message** | **str** | Message is a detailed message about failure of the memory dump | [optional] +**phase** | **str** | Phase represents the memory dump phase | +**start_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | StartTimestamp represents the time the memory dump started | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineStatus.md b/docs/V1VirtualMachineStatus.md index 9ade0184..974a3c54 100644 --- a/docs/V1VirtualMachineStatus.md +++ b/docs/V1VirtualMachineStatus.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **conditions** | [**list[V1VirtualMachineCondition]**](V1VirtualMachineCondition.md) | Hold the state information of the VirtualMachine and its VirtualMachineInstance | [optional] **created** | **bool** | Created indicates if the virtual machine is created in the cluster | [optional] +**memory_dump_request** | [**V1VirtualMachineMemoryDumpRequest**](V1VirtualMachineMemoryDumpRequest.md) | MemoryDumpRequest tracks memory dump request phase and info of getting a memory dump to the given pvc | [optional] **printable_status** | **str** | PrintableStatus is a human readable, high-level representation of the status of the virtual machine | [optional] **ready** | **bool** | Ready indicates if the virtual machine is running and ready | [optional] **restore_in_progress** | **str** | RestoreInProgress is the name of the VirtualMachineRestore currently executing | [optional] diff --git a/docs/V1Volume.md b/docs/V1Volume.md index e6d518ff..a9822f6a 100644 --- a/docs/V1Volume.md +++ b/docs/V1Volume.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **empty_disk** | [**V1EmptyDiskSource**](V1EmptyDiskSource.md) | EmptyDisk represents a temporary disk which shares the vmis lifecycle. More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html | [optional] **ephemeral** | [**V1EphemeralVolumeSource**](V1EphemeralVolumeSource.md) | Ephemeral is a special volume source that \"wraps\" specified source and provides copy-on-write image on top of it. | [optional] **host_disk** | [**V1HostDisk**](V1HostDisk.md) | HostDisk represents a disk created on the cluster level | [optional] +**memory_dump** | [**V1MemoryDumpVolumeSource**](V1MemoryDumpVolumeSource.md) | MemoryDump is attached to the virt launcher and is populated with a memory dump of the vmi | [optional] **name** | **str** | Volume's name. Must be a DNS_LABEL and unique within the vmi. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | **persistent_volume_claim** | [**V1PersistentVolumeClaimVolumeSource**](V1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] **secret** | [**V1SecretVolumeSource**](V1SecretVolumeSource.md) | SecretVolumeSource represents a reference to a secret data in the same namespace. More info: https://kubernetes.io/docs/concepts/configuration/secret/ | [optional] diff --git a/docs/V1VolumeStatus.md b/docs/V1VolumeStatus.md index c7f05d6c..7cf5e845 100644 --- a/docs/V1VolumeStatus.md +++ b/docs/V1VolumeStatus.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hotplug_volume** | [**V1HotplugVolumeStatus**](V1HotplugVolumeStatus.md) | If the volume is hotplug, this will contain the hotplug status. | [optional] +**memory_dump_volume** | [**V1DomainMemoryDumpInfo**](V1DomainMemoryDumpInfo.md) | If the volume is memorydump volume, this will contain the memorydump info. | [optional] **message** | **str** | Message is a detailed message about the current hotplug volume phase | [optional] **name** | **str** | Name is the name of the volume | **persistent_volume_claim_info** | [**V1PersistentVolumeClaimInfo**](V1PersistentVolumeClaimInfo.md) | PersistentVolumeClaimInfo is information about the PVC that handler requires during start flow | [optional] diff --git a/git_push.sh b/git_push.sh index 312925bf..109e299d 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.53.0-157-gdf7ac17a4" + release_note="Auto-generated client v0.53.0-207-g5bf939408" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 6a5c558d..6c601f59 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -276,6 +276,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_disk_verification.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_disk_verification.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DiskVerification.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_domain_memory_dump_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_domain_memory_dump_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DomainMemoryDumpInfo.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_domain_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_domain_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DomainSpec.md @@ -447,6 +450,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_memory.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_memory.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Memory.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_memory_dump_volume_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_memory_dump_volume_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1MemoryDumpVolumeSource.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_migrate_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_migrate_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1MigrateOptions.md @@ -699,6 +705,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_virtual_machine_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_memory_dump_request.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_memory_dump_request.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineMemoryDumpRequest.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineSpec.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 40e3ba5b..7297719b 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -99,6 +99,7 @@ from .models.v1_disk import V1Disk from .models.v1_disk_target import V1DiskTarget from .models.v1_disk_verification import V1DiskVerification +from .models.v1_domain_memory_dump_info import V1DomainMemoryDumpInfo from .models.v1_domain_spec import V1DomainSpec from .models.v1_downward_api_volume_source import V1DownwardAPIVolumeSource from .models.v1_downward_metrics_volume_source import V1DownwardMetricsVolumeSource @@ -156,6 +157,7 @@ from .models.v1_mediated_devices_configuration import V1MediatedDevicesConfiguration from .models.v1_mediated_host_device import V1MediatedHostDevice from .models.v1_memory import V1Memory +from .models.v1_memory_dump_volume_source import V1MemoryDumpVolumeSource from .models.v1_migrate_options import V1MigrateOptions from .models.v1_migration_configuration import V1MigrationConfiguration from .models.v1_multus_network import V1MultusNetwork @@ -240,6 +242,7 @@ from .models.v1_virtual_machine_instance_status import V1VirtualMachineInstanceStatus from .models.v1_virtual_machine_instance_template_spec import V1VirtualMachineInstanceTemplateSpec from .models.v1_virtual_machine_list import V1VirtualMachineList +from .models.v1_virtual_machine_memory_dump_request import V1VirtualMachineMemoryDumpRequest from .models.v1_virtual_machine_spec import V1VirtualMachineSpec from .models.v1_virtual_machine_start_failure import V1VirtualMachineStartFailure from .models.v1_virtual_machine_state_change_request import V1VirtualMachineStateChangeRequest diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 0891e0d2..6fe5e655 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.53.0-157-gdf7ac17a4/python' + self.user_agent = 'Swagger-Codegen/v0.53.0-207-g5bf939408/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index c2eb8afa..f94ef599 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -16305,6 +16305,116 @@ def v1_guestosinfo_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1_memory_dump(self, name, namespace, body, **kwargs): + """ + Dumps a VirtualMachineInstance memory. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_memory_dump(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachineMemoryDumpRequest body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1_memory_dump_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1_memory_dump_with_http_info(name, namespace, body, **kwargs) + return data + + def v1_memory_dump_with_http_info(self, name, namespace, body, **kwargs): + """ + Dumps a VirtualMachineInstance memory. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_memory_dump_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachineMemoryDumpRequest body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1_memory_dump" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1_memory_dump`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1_memory_dump`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1_memory_dump`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/memorydump', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1_migrate(self, name, namespace, body, **kwargs): """ Migrate a running VirtualMachine to another node. @@ -16525,6 +16635,109 @@ def v1_pause_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1_remove_memory_dump(self, name, namespace, **kwargs): + """ + Remove memory dump association. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_remove_memory_dump(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1_remove_memory_dump_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1_remove_memory_dump_with_http_info(name, namespace, **kwargs) + return data + + def v1_remove_memory_dump_with_http_info(self, name, namespace, **kwargs): + """ + Remove memory dump association. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_remove_memory_dump_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1_remove_memory_dump" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1_remove_memory_dump`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1_remove_memory_dump`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removememorydump', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1_restart(self, name, namespace, **kwargs): """ Restart a VirtualMachine object. @@ -18255,6 +18468,116 @@ def v1alpha3_guestosinfo_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1alpha3_memory_dump(self, name, namespace, body, **kwargs): + """ + Dumps a VirtualMachineInstance memory. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_memory_dump(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachineMemoryDumpRequest body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3_memory_dump_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1alpha3_memory_dump_with_http_info(name, namespace, body, **kwargs) + return data + + def v1alpha3_memory_dump_with_http_info(self, name, namespace, body, **kwargs): + """ + Dumps a VirtualMachineInstance memory. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_memory_dump_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachineMemoryDumpRequest body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3_memory_dump" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_memory_dump`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_memory_dump`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3_memory_dump`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/memorydump', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1alpha3_migrate(self, name, namespace, body, **kwargs): """ Migrate a running VirtualMachine to another node. @@ -18475,6 +18798,109 @@ def v1alpha3_pause_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1alpha3_remove_memory_dump(self, name, namespace, **kwargs): + """ + Remove memory dump association. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_remove_memory_dump(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3_remove_memory_dump_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1alpha3_remove_memory_dump_with_http_info(name, namespace, **kwargs) + return data + + def v1alpha3_remove_memory_dump_with_http_info(self, name, namespace, **kwargs): + """ + Remove memory dump association. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_remove_memory_dump_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3_remove_memory_dump" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_remove_memory_dump`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_remove_memory_dump`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removememorydump', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1alpha3_restart(self, name, namespace, **kwargs): """ Restart a VirtualMachine object. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 0be9154a..8ede6cd5 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.53.0-157-gdf7ac17a4".\ + "SDK Package Version: v0.53.0-207-g5bf939408".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 74686931..eedc5e35 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -99,6 +99,7 @@ from .v1_disk import V1Disk from .v1_disk_target import V1DiskTarget from .v1_disk_verification import V1DiskVerification +from .v1_domain_memory_dump_info import V1DomainMemoryDumpInfo from .v1_domain_spec import V1DomainSpec from .v1_downward_api_volume_source import V1DownwardAPIVolumeSource from .v1_downward_metrics_volume_source import V1DownwardMetricsVolumeSource @@ -156,6 +157,7 @@ from .v1_mediated_devices_configuration import V1MediatedDevicesConfiguration from .v1_mediated_host_device import V1MediatedHostDevice from .v1_memory import V1Memory +from .v1_memory_dump_volume_source import V1MemoryDumpVolumeSource from .v1_migrate_options import V1MigrateOptions from .v1_migration_configuration import V1MigrationConfiguration from .v1_multus_network import V1MultusNetwork @@ -240,6 +242,7 @@ from .v1_virtual_machine_instance_status import V1VirtualMachineInstanceStatus from .v1_virtual_machine_instance_template_spec import V1VirtualMachineInstanceTemplateSpec from .v1_virtual_machine_list import V1VirtualMachineList +from .v1_virtual_machine_memory_dump_request import V1VirtualMachineMemoryDumpRequest from .v1_virtual_machine_spec import V1VirtualMachineSpec from .v1_virtual_machine_start_failure import V1VirtualMachineStartFailure from .v1_virtual_machine_state_change_request import V1VirtualMachineStateChangeRequest diff --git a/kubevirt/models/v1_domain_memory_dump_info.py b/kubevirt/models/v1_domain_memory_dump_info.py new file mode 100644 index 00000000..37116ed9 --- /dev/null +++ b/kubevirt/models/v1_domain_memory_dump_info.py @@ -0,0 +1,209 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DomainMemoryDumpInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'claim_name': 'str', + 'end_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', + 'start_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', + 'target_file_name': 'str' + } + + attribute_map = { + 'claim_name': 'claimName', + 'end_timestamp': 'endTimestamp', + 'start_timestamp': 'startTimestamp', + 'target_file_name': 'targetFileName' + } + + def __init__(self, claim_name=None, end_timestamp=None, start_timestamp=None, target_file_name=None): + """ + V1DomainMemoryDumpInfo - a model defined in Swagger + """ + + self._claim_name = None + self._end_timestamp = None + self._start_timestamp = None + self._target_file_name = None + + if claim_name is not None: + self.claim_name = claim_name + if end_timestamp is not None: + self.end_timestamp = end_timestamp + if start_timestamp is not None: + self.start_timestamp = start_timestamp + if target_file_name is not None: + self.target_file_name = target_file_name + + @property + def claim_name(self): + """ + Gets the claim_name of this V1DomainMemoryDumpInfo. + ClaimName is the name of the pvc the memory was dumped to + + :return: The claim_name of this V1DomainMemoryDumpInfo. + :rtype: str + """ + return self._claim_name + + @claim_name.setter + def claim_name(self, claim_name): + """ + Sets the claim_name of this V1DomainMemoryDumpInfo. + ClaimName is the name of the pvc the memory was dumped to + + :param claim_name: The claim_name of this V1DomainMemoryDumpInfo. + :type: str + """ + + self._claim_name = claim_name + + @property + def end_timestamp(self): + """ + Gets the end_timestamp of this V1DomainMemoryDumpInfo. + EndTimestamp is the time when the memory dump completed + + :return: The end_timestamp of this V1DomainMemoryDumpInfo. + :rtype: K8sIoApimachineryPkgApisMetaV1Time + """ + return self._end_timestamp + + @end_timestamp.setter + def end_timestamp(self, end_timestamp): + """ + Sets the end_timestamp of this V1DomainMemoryDumpInfo. + EndTimestamp is the time when the memory dump completed + + :param end_timestamp: The end_timestamp of this V1DomainMemoryDumpInfo. + :type: K8sIoApimachineryPkgApisMetaV1Time + """ + + self._end_timestamp = end_timestamp + + @property + def start_timestamp(self): + """ + Gets the start_timestamp of this V1DomainMemoryDumpInfo. + StartTimestamp is the time when the memory dump started + + :return: The start_timestamp of this V1DomainMemoryDumpInfo. + :rtype: K8sIoApimachineryPkgApisMetaV1Time + """ + return self._start_timestamp + + @start_timestamp.setter + def start_timestamp(self, start_timestamp): + """ + Sets the start_timestamp of this V1DomainMemoryDumpInfo. + StartTimestamp is the time when the memory dump started + + :param start_timestamp: The start_timestamp of this V1DomainMemoryDumpInfo. + :type: K8sIoApimachineryPkgApisMetaV1Time + """ + + self._start_timestamp = start_timestamp + + @property + def target_file_name(self): + """ + Gets the target_file_name of this V1DomainMemoryDumpInfo. + TargetFileName is the name of the memory dump output + + :return: The target_file_name of this V1DomainMemoryDumpInfo. + :rtype: str + """ + return self._target_file_name + + @target_file_name.setter + def target_file_name(self, target_file_name): + """ + Sets the target_file_name of this V1DomainMemoryDumpInfo. + TargetFileName is the name of the memory dump output + + :param target_file_name: The target_file_name of this V1DomainMemoryDumpInfo. + :type: str + """ + + self._target_file_name = target_file_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1DomainMemoryDumpInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_memory_dump_volume_source.py b/kubevirt/models/v1_memory_dump_volume_source.py new file mode 100644 index 00000000..40b066c0 --- /dev/null +++ b/kubevirt/models/v1_memory_dump_volume_source.py @@ -0,0 +1,182 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1MemoryDumpVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'claim_name': 'str', + 'hotpluggable': 'bool', + 'read_only': 'bool' + } + + attribute_map = { + 'claim_name': 'claimName', + 'hotpluggable': 'hotpluggable', + 'read_only': 'readOnly' + } + + def __init__(self, claim_name=None, hotpluggable=None, read_only=None): + """ + V1MemoryDumpVolumeSource - a model defined in Swagger + """ + + self._claim_name = None + self._hotpluggable = None + self._read_only = None + + self.claim_name = claim_name + if hotpluggable is not None: + self.hotpluggable = hotpluggable + if read_only is not None: + self.read_only = read_only + + @property + def claim_name(self): + """ + Gets the claim_name of this V1MemoryDumpVolumeSource. + ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + + :return: The claim_name of this V1MemoryDumpVolumeSource. + :rtype: str + """ + return self._claim_name + + @claim_name.setter + def claim_name(self, claim_name): + """ + Sets the claim_name of this V1MemoryDumpVolumeSource. + ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + + :param claim_name: The claim_name of this V1MemoryDumpVolumeSource. + :type: str + """ + if claim_name is None: + raise ValueError("Invalid value for `claim_name`, must not be `None`") + + self._claim_name = claim_name + + @property + def hotpluggable(self): + """ + Gets the hotpluggable of this V1MemoryDumpVolumeSource. + Hotpluggable indicates whether the volume can be hotplugged and hotunplugged. + + :return: The hotpluggable of this V1MemoryDumpVolumeSource. + :rtype: bool + """ + return self._hotpluggable + + @hotpluggable.setter + def hotpluggable(self, hotpluggable): + """ + Sets the hotpluggable of this V1MemoryDumpVolumeSource. + Hotpluggable indicates whether the volume can be hotplugged and hotunplugged. + + :param hotpluggable: The hotpluggable of this V1MemoryDumpVolumeSource. + :type: bool + """ + + self._hotpluggable = hotpluggable + + @property + def read_only(self): + """ + Gets the read_only of this V1MemoryDumpVolumeSource. + Will force the ReadOnly setting in VolumeMounts. Default false. + + :return: The read_only of this V1MemoryDumpVolumeSource. + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """ + Sets the read_only of this V1MemoryDumpVolumeSource. + Will force the ReadOnly setting in VolumeMounts. Default false. + + :param read_only: The read_only of this V1MemoryDumpVolumeSource. + :type: bool + """ + + self._read_only = read_only + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1MemoryDumpVolumeSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_memory_dump_request.py b/kubevirt/models/v1_virtual_machine_memory_dump_request.py new file mode 100644 index 00000000..910cb67f --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_memory_dump_request.py @@ -0,0 +1,267 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineMemoryDumpRequest(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'claim_name': 'str', + 'end_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', + 'file_name': 'str', + 'message': 'str', + 'phase': 'str', + 'start_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time' + } + + attribute_map = { + 'claim_name': 'claimName', + 'end_timestamp': 'endTimestamp', + 'file_name': 'fileName', + 'message': 'message', + 'phase': 'phase', + 'start_timestamp': 'startTimestamp' + } + + def __init__(self, claim_name=None, end_timestamp=None, file_name=None, message=None, phase=None, start_timestamp=None): + """ + V1VirtualMachineMemoryDumpRequest - a model defined in Swagger + """ + + self._claim_name = None + self._end_timestamp = None + self._file_name = None + self._message = None + self._phase = None + self._start_timestamp = None + + self.claim_name = claim_name + if end_timestamp is not None: + self.end_timestamp = end_timestamp + if file_name is not None: + self.file_name = file_name + if message is not None: + self.message = message + self.phase = phase + if start_timestamp is not None: + self.start_timestamp = start_timestamp + + @property + def claim_name(self): + """ + Gets the claim_name of this V1VirtualMachineMemoryDumpRequest. + ClaimName is the name of the pvc that will contain the memory dump + + :return: The claim_name of this V1VirtualMachineMemoryDumpRequest. + :rtype: str + """ + return self._claim_name + + @claim_name.setter + def claim_name(self, claim_name): + """ + Sets the claim_name of this V1VirtualMachineMemoryDumpRequest. + ClaimName is the name of the pvc that will contain the memory dump + + :param claim_name: The claim_name of this V1VirtualMachineMemoryDumpRequest. + :type: str + """ + if claim_name is None: + raise ValueError("Invalid value for `claim_name`, must not be `None`") + + self._claim_name = claim_name + + @property + def end_timestamp(self): + """ + Gets the end_timestamp of this V1VirtualMachineMemoryDumpRequest. + EndTimestamp represents the time the memory dump was completed + + :return: The end_timestamp of this V1VirtualMachineMemoryDumpRequest. + :rtype: K8sIoApimachineryPkgApisMetaV1Time + """ + return self._end_timestamp + + @end_timestamp.setter + def end_timestamp(self, end_timestamp): + """ + Sets the end_timestamp of this V1VirtualMachineMemoryDumpRequest. + EndTimestamp represents the time the memory dump was completed + + :param end_timestamp: The end_timestamp of this V1VirtualMachineMemoryDumpRequest. + :type: K8sIoApimachineryPkgApisMetaV1Time + """ + + self._end_timestamp = end_timestamp + + @property + def file_name(self): + """ + Gets the file_name of this V1VirtualMachineMemoryDumpRequest. + FileName represents the name of the output file + + :return: The file_name of this V1VirtualMachineMemoryDumpRequest. + :rtype: str + """ + return self._file_name + + @file_name.setter + def file_name(self, file_name): + """ + Sets the file_name of this V1VirtualMachineMemoryDumpRequest. + FileName represents the name of the output file + + :param file_name: The file_name of this V1VirtualMachineMemoryDumpRequest. + :type: str + """ + + self._file_name = file_name + + @property + def message(self): + """ + Gets the message of this V1VirtualMachineMemoryDumpRequest. + Message is a detailed message about failure of the memory dump + + :return: The message of this V1VirtualMachineMemoryDumpRequest. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1VirtualMachineMemoryDumpRequest. + Message is a detailed message about failure of the memory dump + + :param message: The message of this V1VirtualMachineMemoryDumpRequest. + :type: str + """ + + self._message = message + + @property + def phase(self): + """ + Gets the phase of this V1VirtualMachineMemoryDumpRequest. + Phase represents the memory dump phase + + :return: The phase of this V1VirtualMachineMemoryDumpRequest. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """ + Sets the phase of this V1VirtualMachineMemoryDumpRequest. + Phase represents the memory dump phase + + :param phase: The phase of this V1VirtualMachineMemoryDumpRequest. + :type: str + """ + if phase is None: + raise ValueError("Invalid value for `phase`, must not be `None`") + + self._phase = phase + + @property + def start_timestamp(self): + """ + Gets the start_timestamp of this V1VirtualMachineMemoryDumpRequest. + StartTimestamp represents the time the memory dump started + + :return: The start_timestamp of this V1VirtualMachineMemoryDumpRequest. + :rtype: K8sIoApimachineryPkgApisMetaV1Time + """ + return self._start_timestamp + + @start_timestamp.setter + def start_timestamp(self, start_timestamp): + """ + Sets the start_timestamp of this V1VirtualMachineMemoryDumpRequest. + StartTimestamp represents the time the memory dump started + + :param start_timestamp: The start_timestamp of this V1VirtualMachineMemoryDumpRequest. + :type: K8sIoApimachineryPkgApisMetaV1Time + """ + + self._start_timestamp = start_timestamp + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineMemoryDumpRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_status.py b/kubevirt/models/v1_virtual_machine_status.py index 47e4054e..52563511 100644 --- a/kubevirt/models/v1_virtual_machine_status.py +++ b/kubevirt/models/v1_virtual_machine_status.py @@ -33,6 +33,7 @@ class V1VirtualMachineStatus(object): swagger_types = { 'conditions': 'list[V1VirtualMachineCondition]', 'created': 'bool', + 'memory_dump_request': 'V1VirtualMachineMemoryDumpRequest', 'printable_status': 'str', 'ready': 'bool', 'restore_in_progress': 'str', @@ -46,6 +47,7 @@ class V1VirtualMachineStatus(object): attribute_map = { 'conditions': 'conditions', 'created': 'created', + 'memory_dump_request': 'memoryDumpRequest', 'printable_status': 'printableStatus', 'ready': 'ready', 'restore_in_progress': 'restoreInProgress', @@ -56,13 +58,14 @@ class V1VirtualMachineStatus(object): 'volume_snapshot_statuses': 'volumeSnapshotStatuses' } - def __init__(self, conditions=None, created=None, printable_status=None, ready=None, restore_in_progress=None, snapshot_in_progress=None, start_failure=None, state_change_requests=None, volume_requests=None, volume_snapshot_statuses=None): + def __init__(self, conditions=None, created=None, memory_dump_request=None, printable_status=None, ready=None, restore_in_progress=None, snapshot_in_progress=None, start_failure=None, state_change_requests=None, volume_requests=None, volume_snapshot_statuses=None): """ V1VirtualMachineStatus - a model defined in Swagger """ self._conditions = None self._created = None + self._memory_dump_request = None self._printable_status = None self._ready = None self._restore_in_progress = None @@ -76,6 +79,8 @@ def __init__(self, conditions=None, created=None, printable_status=None, ready=N self.conditions = conditions if created is not None: self.created = created + if memory_dump_request is not None: + self.memory_dump_request = memory_dump_request if printable_status is not None: self.printable_status = printable_status if ready is not None: @@ -139,6 +144,29 @@ def created(self, created): self._created = created + @property + def memory_dump_request(self): + """ + Gets the memory_dump_request of this V1VirtualMachineStatus. + MemoryDumpRequest tracks memory dump request phase and info of getting a memory dump to the given pvc + + :return: The memory_dump_request of this V1VirtualMachineStatus. + :rtype: V1VirtualMachineMemoryDumpRequest + """ + return self._memory_dump_request + + @memory_dump_request.setter + def memory_dump_request(self, memory_dump_request): + """ + Sets the memory_dump_request of this V1VirtualMachineStatus. + MemoryDumpRequest tracks memory dump request phase and info of getting a memory dump to the given pvc + + :param memory_dump_request: The memory_dump_request of this V1VirtualMachineStatus. + :type: V1VirtualMachineMemoryDumpRequest + """ + + self._memory_dump_request = memory_dump_request + @property def printable_status(self): """ diff --git a/kubevirt/models/v1_volume.py b/kubevirt/models/v1_volume.py index 641800ae..585a65b0 100644 --- a/kubevirt/models/v1_volume.py +++ b/kubevirt/models/v1_volume.py @@ -41,6 +41,7 @@ class V1Volume(object): 'empty_disk': 'V1EmptyDiskSource', 'ephemeral': 'V1EphemeralVolumeSource', 'host_disk': 'V1HostDisk', + 'memory_dump': 'V1MemoryDumpVolumeSource', 'name': 'str', 'persistent_volume_claim': 'V1PersistentVolumeClaimVolumeSource', 'secret': 'V1SecretVolumeSource', @@ -59,6 +60,7 @@ class V1Volume(object): 'empty_disk': 'emptyDisk', 'ephemeral': 'ephemeral', 'host_disk': 'hostDisk', + 'memory_dump': 'memoryDump', 'name': 'name', 'persistent_volume_claim': 'persistentVolumeClaim', 'secret': 'secret', @@ -66,7 +68,7 @@ class V1Volume(object): 'sysprep': 'sysprep' } - def __init__(self, cloud_init_config_drive=None, cloud_init_no_cloud=None, config_map=None, container_disk=None, data_volume=None, downward_api=None, downward_metrics=None, empty_disk=None, ephemeral=None, host_disk=None, name=None, persistent_volume_claim=None, secret=None, service_account=None, sysprep=None): + def __init__(self, cloud_init_config_drive=None, cloud_init_no_cloud=None, config_map=None, container_disk=None, data_volume=None, downward_api=None, downward_metrics=None, empty_disk=None, ephemeral=None, host_disk=None, memory_dump=None, name=None, persistent_volume_claim=None, secret=None, service_account=None, sysprep=None): """ V1Volume - a model defined in Swagger """ @@ -81,6 +83,7 @@ def __init__(self, cloud_init_config_drive=None, cloud_init_no_cloud=None, confi self._empty_disk = None self._ephemeral = None self._host_disk = None + self._memory_dump = None self._name = None self._persistent_volume_claim = None self._secret = None @@ -107,6 +110,8 @@ def __init__(self, cloud_init_config_drive=None, cloud_init_no_cloud=None, confi self.ephemeral = ephemeral if host_disk is not None: self.host_disk = host_disk + if memory_dump is not None: + self.memory_dump = memory_dump self.name = name if persistent_volume_claim is not None: self.persistent_volume_claim = persistent_volume_claim @@ -347,6 +352,29 @@ def host_disk(self, host_disk): self._host_disk = host_disk + @property + def memory_dump(self): + """ + Gets the memory_dump of this V1Volume. + MemoryDump is attached to the virt launcher and is populated with a memory dump of the vmi + + :return: The memory_dump of this V1Volume. + :rtype: V1MemoryDumpVolumeSource + """ + return self._memory_dump + + @memory_dump.setter + def memory_dump(self, memory_dump): + """ + Sets the memory_dump of this V1Volume. + MemoryDump is attached to the virt launcher and is populated with a memory dump of the vmi + + :param memory_dump: The memory_dump of this V1Volume. + :type: V1MemoryDumpVolumeSource + """ + + self._memory_dump = memory_dump + @property def name(self): """ diff --git a/kubevirt/models/v1_volume_status.py b/kubevirt/models/v1_volume_status.py index e98cc251..09cdd97d 100644 --- a/kubevirt/models/v1_volume_status.py +++ b/kubevirt/models/v1_volume_status.py @@ -32,6 +32,7 @@ class V1VolumeStatus(object): """ swagger_types = { 'hotplug_volume': 'V1HotplugVolumeStatus', + 'memory_dump_volume': 'V1DomainMemoryDumpInfo', 'message': 'str', 'name': 'str', 'persistent_volume_claim_info': 'V1PersistentVolumeClaimInfo', @@ -43,6 +44,7 @@ class V1VolumeStatus(object): attribute_map = { 'hotplug_volume': 'hotplugVolume', + 'memory_dump_volume': 'memoryDumpVolume', 'message': 'message', 'name': 'name', 'persistent_volume_claim_info': 'persistentVolumeClaimInfo', @@ -52,12 +54,13 @@ class V1VolumeStatus(object): 'target': 'target' } - def __init__(self, hotplug_volume=None, message=None, name=None, persistent_volume_claim_info=None, phase=None, reason=None, size=None, target=None): + def __init__(self, hotplug_volume=None, memory_dump_volume=None, message=None, name=None, persistent_volume_claim_info=None, phase=None, reason=None, size=None, target=None): """ V1VolumeStatus - a model defined in Swagger """ self._hotplug_volume = None + self._memory_dump_volume = None self._message = None self._name = None self._persistent_volume_claim_info = None @@ -68,6 +71,8 @@ def __init__(self, hotplug_volume=None, message=None, name=None, persistent_volu if hotplug_volume is not None: self.hotplug_volume = hotplug_volume + if memory_dump_volume is not None: + self.memory_dump_volume = memory_dump_volume if message is not None: self.message = message self.name = name @@ -104,6 +109,29 @@ def hotplug_volume(self, hotplug_volume): self._hotplug_volume = hotplug_volume + @property + def memory_dump_volume(self): + """ + Gets the memory_dump_volume of this V1VolumeStatus. + If the volume is memorydump volume, this will contain the memorydump info. + + :return: The memory_dump_volume of this V1VolumeStatus. + :rtype: V1DomainMemoryDumpInfo + """ + return self._memory_dump_volume + + @memory_dump_volume.setter + def memory_dump_volume(self, memory_dump_volume): + """ + Sets the memory_dump_volume of this V1VolumeStatus. + If the volume is memorydump volume, this will contain the memorydump info. + + :param memory_dump_volume: The memory_dump_volume of this V1VolumeStatus. + :type: V1DomainMemoryDumpInfo + """ + + self._memory_dump_volume = memory_dump_volume + @property def message(self): """ diff --git a/setup.py b/setup.py index 94fd41b5..bb3041bd 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.53.0-157-gdf7ac17a4" +VERSION = "v0.53.0-207-g5bf939408" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index a06e78f2..4711b03b 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.53.0-157-gdf7ac17a4" +"packageVersion": "v0.53.0-207-g5bf939408" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 8b7ca56d..a8a6ef5f 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -1148,6 +1148,14 @@ def test_v1_guestosinfo(self): Test case for v1_guestosinfo + """ + pass + + def test_v1_memory_dump(self): + """ + Test case for v1_memory_dump + + """ pass @@ -1164,6 +1172,14 @@ def test_v1_pause(self): Test case for v1_pause + """ + pass + + def test_v1_remove_memory_dump(self): + """ + Test case for v1_remove_memory_dump + + """ pass @@ -1300,6 +1316,14 @@ def test_v1alpha3_guestosinfo(self): Test case for v1alpha3_guestosinfo + """ + pass + + def test_v1alpha3_memory_dump(self): + """ + Test case for v1alpha3_memory_dump + + """ pass @@ -1316,6 +1340,14 @@ def test_v1alpha3_pause(self): Test case for v1alpha3_pause + """ + pass + + def test_v1alpha3_remove_memory_dump(self): + """ + Test case for v1alpha3_remove_memory_dump + + """ pass diff --git a/test/test_v1_domain_memory_dump_info.py b/test/test_v1_domain_memory_dump_info.py new file mode 100644 index 00000000..456ee982 --- /dev/null +++ b/test/test_v1_domain_memory_dump_info.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_domain_memory_dump_info import V1DomainMemoryDumpInfo + + +class TestV1DomainMemoryDumpInfo(unittest.TestCase): + """ V1DomainMemoryDumpInfo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DomainMemoryDumpInfo(self): + """ + Test V1DomainMemoryDumpInfo + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_domain_memory_dump_info.V1DomainMemoryDumpInfo() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_memory_dump_volume_source.py b/test/test_v1_memory_dump_volume_source.py new file mode 100644 index 00000000..07029649 --- /dev/null +++ b/test/test_v1_memory_dump_volume_source.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_memory_dump_volume_source import V1MemoryDumpVolumeSource + + +class TestV1MemoryDumpVolumeSource(unittest.TestCase): + """ V1MemoryDumpVolumeSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1MemoryDumpVolumeSource(self): + """ + Test V1MemoryDumpVolumeSource + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_memory_dump_volume_source.V1MemoryDumpVolumeSource() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_virtual_machine_memory_dump_request.py b/test/test_v1_virtual_machine_memory_dump_request.py new file mode 100644 index 00000000..d028acae --- /dev/null +++ b/test/test_v1_virtual_machine_memory_dump_request.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_memory_dump_request import V1VirtualMachineMemoryDumpRequest + + +class TestV1VirtualMachineMemoryDumpRequest(unittest.TestCase): + """ V1VirtualMachineMemoryDumpRequest unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineMemoryDumpRequest(self): + """ + Test V1VirtualMachineMemoryDumpRequest + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_memory_dump_request.V1VirtualMachineMemoryDumpRequest() + pass + + +if __name__ == '__main__': + unittest.main() From 1e43e6e68c06c6e9381660f408d671475a64db60 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 3 Jun 2022 12:42:03 +0000 Subject: [PATCH 274/521] Client Python update by KubeVirt Prow build 1532692465230811136 --- README.md | 22 +- docs/DefaultApi.md | 680 ++++++- docs/V1alpha1VirtualMachineExport.md | 14 + docs/V1alpha1VirtualMachineExportLink.md | 11 + docs/V1alpha1VirtualMachineExportLinks.md | 11 + docs/V1alpha1VirtualMachineExportList.md | 13 + docs/V1alpha1VirtualMachineExportSpec.md | 11 + docs/V1alpha1VirtualMachineExportStatus.md | 13 + docs/V1alpha1VirtualMachineExportVolume.md | 11 + ...1alpha1VirtualMachineExportVolumeFormat.md | 11 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 24 + kubevirt/__init__.py | 8 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 1607 ++++++++++++++++- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 8 + .../models/v1alpha1_virtual_machine_export.py | 232 +++ .../v1alpha1_virtual_machine_export_link.py | 154 ++ .../v1alpha1_virtual_machine_export_links.py | 149 ++ .../v1alpha1_virtual_machine_export_list.py | 207 +++ .../v1alpha1_virtual_machine_export_spec.py | 153 ++ .../v1alpha1_virtual_machine_export_status.py | 203 +++ .../v1alpha1_virtual_machine_export_volume.py | 152 ++ ...a1_virtual_machine_export_volume_format.py | 155 ++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 96 + test/test_v1alpha1_virtual_machine_export.py | 44 + ...st_v1alpha1_virtual_machine_export_link.py | 44 + ...t_v1alpha1_virtual_machine_export_links.py | 44 + ...st_v1alpha1_virtual_machine_export_list.py | 44 + ...st_v1alpha1_virtual_machine_export_spec.py | 44 + ..._v1alpha1_virtual_machine_export_status.py | 44 + ..._v1alpha1_virtual_machine_export_volume.py | 44 + ...a1_virtual_machine_export_volume_format.py | 44 + 36 files changed, 4199 insertions(+), 108 deletions(-) create mode 100644 docs/V1alpha1VirtualMachineExport.md create mode 100644 docs/V1alpha1VirtualMachineExportLink.md create mode 100644 docs/V1alpha1VirtualMachineExportLinks.md create mode 100644 docs/V1alpha1VirtualMachineExportList.md create mode 100644 docs/V1alpha1VirtualMachineExportSpec.md create mode 100644 docs/V1alpha1VirtualMachineExportStatus.md create mode 100644 docs/V1alpha1VirtualMachineExportVolume.md create mode 100644 docs/V1alpha1VirtualMachineExportVolumeFormat.md create mode 100644 kubevirt/models/v1alpha1_virtual_machine_export.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_export_link.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_export_links.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_export_list.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_export_spec.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_export_status.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_export_volume.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_export_volume_format.py create mode 100644 test/test_v1alpha1_virtual_machine_export.py create mode 100644 test/test_v1alpha1_virtual_machine_export_link.py create mode 100644 test/test_v1alpha1_virtual_machine_export_links.py create mode 100644 test/test_v1alpha1_virtual_machine_export_list.py create mode 100644 test/test_v1alpha1_virtual_machine_export_spec.py create mode 100644 test/test_v1alpha1_virtual_machine_export_status.py create mode 100644 test/test_v1alpha1_virtual_machine_export_volume.py create mode 100644 test/test_v1alpha1_virtual_machine_export_volume_format.py diff --git a/README.md b/README.md index d8d09f3a..3371f68c 100644 --- a/README.md +++ b/README.md @@ -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: v0.53.0-207-g5bf939408 +- Package version: v0.54.0-rc.0-47-gabc9d0d07 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -72,6 +72,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**create_migration_policy**](docs/DefaultApi.md#create_migration_policy) | **POST** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | *DefaultApi* | [**create_namespaced_kube_virt**](docs/DefaultApi.md#create_namespaced_kube_virt) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | *DefaultApi* | [**create_namespaced_virtual_machine**](docs/DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +*DefaultApi* | [**create_namespaced_virtual_machine_export**](docs/DefaultApi.md#create_namespaced_virtual_machine_export) | **POST** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports | *DefaultApi* | [**create_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#create_namespaced_virtual_machine_flavor) | **POST** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | *DefaultApi* | [**create_namespaced_virtual_machine_instance**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | *DefaultApi* | [**create_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | @@ -87,6 +88,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_collection_migration_policy**](docs/DefaultApi.md#delete_collection_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | *DefaultApi* | [**delete_collection_namespaced_kube_virt**](docs/DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | *DefaultApi* | [**delete_collection_namespaced_virtual_machine**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_export**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | @@ -102,6 +104,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_migration_policy**](docs/DefaultApi.md#delete_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_kube_virt**](docs/DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine**](docs/DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_namespaced_virtual_machine_export**](docs/DefaultApi.md#delete_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#delete_namespaced_virtual_machine_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | @@ -116,12 +119,14 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**func1**](docs/DefaultApi.md#func1) | **GET** /healthz | *DefaultApi* | [**func7**](docs/DefaultApi.md#func7) | **GET** /openapi/v2 | +*DefaultApi* | [**get_api_group_export_kubevirt_io**](docs/DefaultApi.md#get_api_group_export_kubevirt_io) | **GET** /apis/export.kubevirt.io/ | *DefaultApi* | [**get_api_group_flavor_kubevirt_io**](docs/DefaultApi.md#get_api_group_flavor_kubevirt_io) | **GET** /apis/flavor.kubevirt.io/ | *DefaultApi* | [**get_api_group_kubevirt_io**](docs/DefaultApi.md#get_api_group_kubevirt_io) | **GET** /apis/kubevirt.io/ | *DefaultApi* | [**get_api_group_list**](docs/DefaultApi.md#get_api_group_list) | **GET** /apis | *DefaultApi* | [**get_api_group_migrations_kubevirt_io**](docs/DefaultApi.md#get_api_group_migrations_kubevirt_io) | **GET** /apis/migrations.kubevirt.io/ | *DefaultApi* | [**get_api_group_pool_kubevirt_io**](docs/DefaultApi.md#get_api_group_pool_kubevirt_io) | **GET** /apis/pool.kubevirt.io/ | *DefaultApi* | [**get_api_group_snapshot_kubevirt_io**](docs/DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | +*DefaultApi* | [**get_api_resources_export_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_export_kubevirt_io_v1alpha1) | **GET** /apis/export.kubevirt.io/v1alpha1/ | *DefaultApi* | [**get_api_resources_flavor_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_flavor_kubevirt_io_v1alpha1) | **GET** /apis/flavor.kubevirt.io/v1alpha1/ | *DefaultApi* | [**get_api_resources_kubevirt_io_v1**](docs/DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | *DefaultApi* | [**get_api_resources_migrations_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_migrations_kubevirt_io_v1alpha1) | **GET** /apis/migrations.kubevirt.io/v1alpha1/ | @@ -135,6 +140,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_migration_policy**](docs/DefaultApi.md#list_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | *DefaultApi* | [**list_namespaced_kube_virt**](docs/DefaultApi.md#list_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | *DefaultApi* | [**list_namespaced_virtual_machine**](docs/DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +*DefaultApi* | [**list_namespaced_virtual_machine_export**](docs/DefaultApi.md#list_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports | *DefaultApi* | [**list_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#list_namespaced_virtual_machine_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | *DefaultApi* | [**list_namespaced_virtual_machine_instance**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | *DefaultApi* | [**list_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | @@ -147,6 +153,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | *DefaultApi* | [**list_virtual_machine_cluster_flavor**](docs/DefaultApi.md#list_virtual_machine_cluster_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | *DefaultApi* | [**list_virtual_machine_cluster_preference**](docs/DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | +*DefaultApi* | [**list_virtual_machine_export_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_export_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1alpha1/virtualmachineexports | *DefaultApi* | [**list_virtual_machine_flavor_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_flavor_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineflavors | *DefaultApi* | [**list_virtual_machine_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachines | *DefaultApi* | [**list_virtual_machine_instance_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstances | @@ -161,6 +168,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**patch_migration_policy**](docs/DefaultApi.md#patch_migration_policy) | **PATCH** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_kube_virt**](docs/DefaultApi.md#patch_namespaced_kube_virt) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine**](docs/DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_namespaced_virtual_machine_export**](docs/DefaultApi.md#patch_namespaced_virtual_machine_export) | **PATCH** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#patch_namespaced_virtual_machine_flavor) | **PATCH** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | @@ -176,6 +184,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**read_migration_policy**](docs/DefaultApi.md#read_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_kube_virt**](docs/DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine**](docs/DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_namespaced_virtual_machine_export**](docs/DefaultApi.md#read_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#read_namespaced_virtual_machine_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_instance**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | @@ -191,6 +200,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**replace_migration_policy**](docs/DefaultApi.md#replace_migration_policy) | **PUT** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_kube_virt**](docs/DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine**](docs/DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_namespaced_virtual_machine_export**](docs/DefaultApi.md#replace_namespaced_virtual_machine_export) | **PUT** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#replace_namespaced_virtual_machine_flavor) | **PUT** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | @@ -274,6 +284,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**watch_migration_policy_list_for_all_namespaces**](docs/DefaultApi.md#watch_migration_policy_list_for_all_namespaces) | **GET** /apis/migrations.kubevirt.io/v1alpha1/watch/migrationpolicies | *DefaultApi* | [**watch_namespaced_kube_virt**](docs/DefaultApi.md#watch_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | *DefaultApi* | [**watch_namespaced_virtual_machine**](docs/DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +*DefaultApi* | [**watch_namespaced_virtual_machine_export**](docs/DefaultApi.md#watch_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports | *DefaultApi* | [**watch_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#watch_namespaced_virtual_machine_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | *DefaultApi* | [**watch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | *DefaultApi* | [**watch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | @@ -286,6 +297,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**watch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | *DefaultApi* | [**watch_virtual_machine_cluster_flavor_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_flavor_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineclusterflavors | *DefaultApi* | [**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineclusterpreferences | +*DefaultApi* | [**watch_virtual_machine_export_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_export_list_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1alpha1/watch/virtualmachineexports | *DefaultApi* | [**watch_virtual_machine_flavor_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_flavor_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineflavors | *DefaultApi* | [**watch_virtual_machine_instance_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstances | *DefaultApi* | [**watch_virtual_machine_instance_migration_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancemigrations | @@ -561,6 +573,14 @@ Class | Method | HTTP request | Description - [V1alpha1VirtualMachineClusterFlavorList](docs/V1alpha1VirtualMachineClusterFlavorList.md) - [V1alpha1VirtualMachineClusterPreference](docs/V1alpha1VirtualMachineClusterPreference.md) - [V1alpha1VirtualMachineClusterPreferenceList](docs/V1alpha1VirtualMachineClusterPreferenceList.md) + - [V1alpha1VirtualMachineExport](docs/V1alpha1VirtualMachineExport.md) + - [V1alpha1VirtualMachineExportLink](docs/V1alpha1VirtualMachineExportLink.md) + - [V1alpha1VirtualMachineExportLinks](docs/V1alpha1VirtualMachineExportLinks.md) + - [V1alpha1VirtualMachineExportList](docs/V1alpha1VirtualMachineExportList.md) + - [V1alpha1VirtualMachineExportSpec](docs/V1alpha1VirtualMachineExportSpec.md) + - [V1alpha1VirtualMachineExportStatus](docs/V1alpha1VirtualMachineExportStatus.md) + - [V1alpha1VirtualMachineExportVolume](docs/V1alpha1VirtualMachineExportVolume.md) + - [V1alpha1VirtualMachineExportVolumeFormat](docs/V1alpha1VirtualMachineExportVolumeFormat.md) - [V1alpha1VirtualMachineFlavor](docs/V1alpha1VirtualMachineFlavor.md) - [V1alpha1VirtualMachineFlavorList](docs/V1alpha1VirtualMachineFlavorList.md) - [V1alpha1VirtualMachineFlavorSpec](docs/V1alpha1VirtualMachineFlavorSpec.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 99aad425..99ef49a7 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -7,6 +7,7 @@ Method | HTTP request | Description [**create_migration_policy**](DefaultApi.md#create_migration_policy) | **POST** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | [**create_namespaced_kube_virt**](DefaultApi.md#create_namespaced_kube_virt) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | [**create_namespaced_virtual_machine**](DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +[**create_namespaced_virtual_machine_export**](DefaultApi.md#create_namespaced_virtual_machine_export) | **POST** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports | [**create_namespaced_virtual_machine_flavor**](DefaultApi.md#create_namespaced_virtual_machine_flavor) | **POST** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | [**create_namespaced_virtual_machine_instance**](DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | [**create_namespaced_virtual_machine_instance_migration**](DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | @@ -22,6 +23,7 @@ Method | HTTP request | Description [**delete_collection_migration_policy**](DefaultApi.md#delete_collection_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | [**delete_collection_namespaced_kube_virt**](DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | [**delete_collection_namespaced_virtual_machine**](DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +[**delete_collection_namespaced_virtual_machine_export**](DefaultApi.md#delete_collection_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports | [**delete_collection_namespaced_virtual_machine_flavor**](DefaultApi.md#delete_collection_namespaced_virtual_machine_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | [**delete_collection_namespaced_virtual_machine_instance**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | [**delete_collection_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | @@ -37,6 +39,7 @@ Method | HTTP request | Description [**delete_migration_policy**](DefaultApi.md#delete_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_kube_virt**](DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine**](DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_namespaced_virtual_machine_export**](DefaultApi.md#delete_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_flavor**](DefaultApi.md#delete_namespaced_virtual_machine_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_instance**](DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | @@ -51,12 +54,14 @@ Method | HTTP request | Description [**delete_virtual_machine_cluster_preference**](DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | [**func1**](DefaultApi.md#func1) | **GET** /healthz | [**func7**](DefaultApi.md#func7) | **GET** /openapi/v2 | +[**get_api_group_export_kubevirt_io**](DefaultApi.md#get_api_group_export_kubevirt_io) | **GET** /apis/export.kubevirt.io/ | [**get_api_group_flavor_kubevirt_io**](DefaultApi.md#get_api_group_flavor_kubevirt_io) | **GET** /apis/flavor.kubevirt.io/ | [**get_api_group_kubevirt_io**](DefaultApi.md#get_api_group_kubevirt_io) | **GET** /apis/kubevirt.io/ | [**get_api_group_list**](DefaultApi.md#get_api_group_list) | **GET** /apis | [**get_api_group_migrations_kubevirt_io**](DefaultApi.md#get_api_group_migrations_kubevirt_io) | **GET** /apis/migrations.kubevirt.io/ | [**get_api_group_pool_kubevirt_io**](DefaultApi.md#get_api_group_pool_kubevirt_io) | **GET** /apis/pool.kubevirt.io/ | [**get_api_group_snapshot_kubevirt_io**](DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | +[**get_api_resources_export_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_export_kubevirt_io_v1alpha1) | **GET** /apis/export.kubevirt.io/v1alpha1/ | [**get_api_resources_flavor_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_flavor_kubevirt_io_v1alpha1) | **GET** /apis/flavor.kubevirt.io/v1alpha1/ | [**get_api_resources_kubevirt_io_v1**](DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | [**get_api_resources_migrations_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_migrations_kubevirt_io_v1alpha1) | **GET** /apis/migrations.kubevirt.io/v1alpha1/ | @@ -70,6 +75,7 @@ Method | HTTP request | Description [**list_migration_policy**](DefaultApi.md#list_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | [**list_namespaced_kube_virt**](DefaultApi.md#list_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | [**list_namespaced_virtual_machine**](DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +[**list_namespaced_virtual_machine_export**](DefaultApi.md#list_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports | [**list_namespaced_virtual_machine_flavor**](DefaultApi.md#list_namespaced_virtual_machine_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | [**list_namespaced_virtual_machine_instance**](DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | [**list_namespaced_virtual_machine_instance_migration**](DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | @@ -82,6 +88,7 @@ Method | HTTP request | Description [**list_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | [**list_virtual_machine_cluster_flavor**](DefaultApi.md#list_virtual_machine_cluster_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | [**list_virtual_machine_cluster_preference**](DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | +[**list_virtual_machine_export_for_all_namespaces**](DefaultApi.md#list_virtual_machine_export_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1alpha1/virtualmachineexports | [**list_virtual_machine_flavor_for_all_namespaces**](DefaultApi.md#list_virtual_machine_flavor_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineflavors | [**list_virtual_machine_for_all_namespaces**](DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachines | [**list_virtual_machine_instance_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstances | @@ -96,6 +103,7 @@ Method | HTTP request | Description [**patch_migration_policy**](DefaultApi.md#patch_migration_policy) | **PATCH** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_kube_virt**](DefaultApi.md#patch_namespaced_kube_virt) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine**](DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_namespaced_virtual_machine_export**](DefaultApi.md#patch_namespaced_virtual_machine_export) | **PATCH** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_flavor**](DefaultApi.md#patch_namespaced_virtual_machine_flavor) | **PATCH** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_instance**](DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | @@ -111,6 +119,7 @@ Method | HTTP request | Description [**read_migration_policy**](DefaultApi.md#read_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_kube_virt**](DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine**](DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +[**read_namespaced_virtual_machine_export**](DefaultApi.md#read_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_flavor**](DefaultApi.md#read_namespaced_virtual_machine_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_instance**](DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_instance_migration**](DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | @@ -126,6 +135,7 @@ Method | HTTP request | Description [**replace_migration_policy**](DefaultApi.md#replace_migration_policy) | **PUT** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_kube_virt**](DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine**](DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_namespaced_virtual_machine_export**](DefaultApi.md#replace_namespaced_virtual_machine_export) | **PUT** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_flavor**](DefaultApi.md#replace_namespaced_virtual_machine_flavor) | **PUT** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_instance**](DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_instance_migration**](DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | @@ -209,6 +219,7 @@ Method | HTTP request | Description [**watch_migration_policy_list_for_all_namespaces**](DefaultApi.md#watch_migration_policy_list_for_all_namespaces) | **GET** /apis/migrations.kubevirt.io/v1alpha1/watch/migrationpolicies | [**watch_namespaced_kube_virt**](DefaultApi.md#watch_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | [**watch_namespaced_virtual_machine**](DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | +[**watch_namespaced_virtual_machine_export**](DefaultApi.md#watch_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports | [**watch_namespaced_virtual_machine_flavor**](DefaultApi.md#watch_namespaced_virtual_machine_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | [**watch_namespaced_virtual_machine_instance**](DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | [**watch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | @@ -221,6 +232,7 @@ Method | HTTP request | Description [**watch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | [**watch_virtual_machine_cluster_flavor_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_flavor_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineclusterflavors | [**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineclusterpreferences | +[**watch_virtual_machine_export_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_export_list_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1alpha1/watch/virtualmachineexports | [**watch_virtual_machine_flavor_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_flavor_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineflavors | [**watch_virtual_machine_instance_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstances | [**watch_virtual_machine_instance_migration_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancemigrations | @@ -379,6 +391,55 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **create_namespaced_virtual_machine_export** +> V1alpha1VirtualMachineExport create_namespaced_virtual_machine_export(body, namespace) + + + +Create a VirtualMachineExport object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +body = kubevirt.V1alpha1VirtualMachineExport() # V1alpha1VirtualMachineExport | +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.create_namespaced_virtual_machine_export(body, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->create_namespaced_virtual_machine_export: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1alpha1VirtualMachineExport**](V1alpha1VirtualMachineExport.md)| | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +[**V1alpha1VirtualMachineExport**](V1alpha1VirtualMachineExport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **create_namespaced_virtual_machine_flavor** > V1alpha1VirtualMachineFlavor create_namespaced_virtual_machine_flavor(body, namespace) @@ -1146,6 +1207,67 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_collection_namespaced_virtual_machine_export** +> K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_export(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Delete a collection of VirtualMachineExport objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_namespaced_virtual_machine_export(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_export: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_collection_namespaced_virtual_machine_flavor** > K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_flavor(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -2047,6 +2169,63 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_namespaced_virtual_machine_export** +> K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_export(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + + + +Delete a VirtualMachineExport object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.K8sIoApimachineryPkgApisMetaV1DeleteOptions() # K8sIoApimachineryPkgApisMetaV1DeleteOptions | +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + +try: + api_response = api_instance.delete_namespaced_virtual_machine_export(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_export: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**K8sIoApimachineryPkgApisMetaV1DeleteOptions**](K8sIoApimachineryPkgApisMetaV1DeleteOptions.md)| | + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_namespaced_virtual_machine_flavor** > K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_flavor(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -2809,6 +2988,49 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_api_group_export_kubevirt_io** +> K8sIoApimachineryPkgApisMetaV1APIGroup get_api_group_export_kubevirt_io() + + + +Get a KubeVirt API group + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.get_api_group_export_kubevirt_io() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->get_api_group_export_kubevirt_io: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1APIGroup**](K8sIoApimachineryPkgApisMetaV1APIGroup.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_api_group_flavor_kubevirt_io** > K8sIoApimachineryPkgApisMetaV1APIGroup get_api_group_flavor_kubevirt_io() @@ -3067,6 +3289,49 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_api_resources_export_kubevirt_io_v1alpha1** +> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_export_kubevirt_io_v1alpha1() + + + +Get KubeVirt API Resources + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.get_api_resources_export_kubevirt_io_v1alpha1() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->get_api_resources_export_kubevirt_io_v1alpha1: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1APIResourceList**](K8sIoApimachineryPkgApisMetaV1APIResourceList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_api_resources_flavor_kubevirt_io_v1alpha1** > K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_flavor_kubevirt_io_v1alpha1() @@ -3699,6 +3964,69 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **list_namespaced_virtual_machine_export** +> V1alpha1VirtualMachineExportList list_namespaced_virtual_machine_export(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Get a list of VirtualMachineExport objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_virtual_machine_export(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->list_namespaced_virtual_machine_export: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1VirtualMachineExportList**](V1alpha1VirtualMachineExportList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **list_namespaced_virtual_machine_flavor** > V1alpha1VirtualMachineFlavorList list_namespaced_virtual_machine_flavor(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -4390,12 +4718,73 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_virtual_machine_cluster_preference** -> V1alpha1VirtualMachineClusterPreferenceList list_virtual_machine_cluster_preference(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_virtual_machine_cluster_preference** +> V1alpha1VirtualMachineClusterPreferenceList list_virtual_machine_cluster_preference(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Get a list of VirtualMachineClusterPreference objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_virtual_machine_cluster_preference(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->list_virtual_machine_cluster_preference: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1VirtualMachineClusterPreferenceList**](V1alpha1VirtualMachineClusterPreferenceList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_virtual_machine_export_for_all_namespaces** +> V1alpha1VirtualMachineExportList list_virtual_machine_export_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of VirtualMachineClusterPreference objects. +Get a list of all VirtualMachineExport objects. ### Example ```python @@ -4417,10 +4806,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_virtual_machine_cluster_preference(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_virtual_machine_export_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_virtual_machine_cluster_preference: %s\n" % e) + print("Exception when calling DefaultApi->list_virtual_machine_export_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -4438,7 +4827,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineClusterPreferenceList**](V1alpha1VirtualMachineClusterPreferenceList.md) +[**V1alpha1VirtualMachineExportList**](V1alpha1VirtualMachineExportList.md) ### Authorization @@ -5273,6 +5662,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **patch_namespaced_virtual_machine_export** +> V1alpha1VirtualMachineExport patch_namespaced_virtual_machine_export(name, namespace, body) + + + +Patch a VirtualMachineExport object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | + +try: + api_response = api_instance.patch_namespaced_virtual_machine_export(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_export: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**K8sIoApimachineryPkgApisMetaV1Patch**](K8sIoApimachineryPkgApisMetaV1Patch.md)| | + +### Return type + +[**V1alpha1VirtualMachineExport**](V1alpha1VirtualMachineExport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **patch_namespaced_virtual_machine_flavor** > V1alpha1VirtualMachineFlavor patch_namespaced_virtual_machine_flavor(name, namespace, body) @@ -6038,6 +6478,59 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **read_namespaced_virtual_machine_export** +> V1alpha1VirtualMachineExport read_namespaced_virtual_machine_export(name, namespace, exact=exact, export=export) + + + +Get a VirtualMachineExport object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_namespaced_virtual_machine_export(name, namespace, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->read_namespaced_virtual_machine_export: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1alpha1VirtualMachineExport**](V1alpha1VirtualMachineExport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **read_namespaced_virtual_machine_flavor** > V1alpha1VirtualMachineFlavor read_namespaced_virtual_machine_flavor(name, namespace, exact=exact, export=export) @@ -6821,6 +7314,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **replace_namespaced_virtual_machine_export** +> V1alpha1VirtualMachineExport replace_namespaced_virtual_machine_export(name, namespace, body) + + + +Update a VirtualMachineExport object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1alpha1VirtualMachineExport() # V1alpha1VirtualMachineExport | + +try: + api_response = api_instance.replace_namespaced_virtual_machine_export(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_export: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1VirtualMachineExport**](V1alpha1VirtualMachineExport.md)| | + +### Return type + +[**V1alpha1VirtualMachineExport**](V1alpha1VirtualMachineExport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **replace_namespaced_virtual_machine_flavor** > V1alpha1VirtualMachineFlavor replace_namespaced_virtual_machine_flavor(name, namespace, body) @@ -10874,6 +11418,69 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **watch_namespaced_virtual_machine_export** +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_export(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Watch a VirtualMachineExport object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_namespaced_virtual_machine_export(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->watch_namespaced_virtual_machine_export: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **watch_namespaced_virtual_machine_flavor** > K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_flavor(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -11626,6 +12233,67 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **watch_virtual_machine_export_list_for_all_namespaces** +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_export_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Watch a VirtualMachineExportList object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_virtual_machine_export_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->watch_virtual_machine_export_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **watch_virtual_machine_flavor_list_for_all_namespaces** > K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_flavor_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) diff --git a/docs/V1alpha1VirtualMachineExport.md b/docs/V1alpha1VirtualMachineExport.md new file mode 100644 index 00000000..b7a831bf --- /dev/null +++ b/docs/V1alpha1VirtualMachineExport.md @@ -0,0 +1,14 @@ +# V1alpha1VirtualMachineExport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha1VirtualMachineExportSpec**](V1alpha1VirtualMachineExportSpec.md) | | +**status** | [**V1alpha1VirtualMachineExportStatus**](V1alpha1VirtualMachineExportStatus.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineExportLink.md b/docs/V1alpha1VirtualMachineExportLink.md new file mode 100644 index 00000000..5eb9e11a --- /dev/null +++ b/docs/V1alpha1VirtualMachineExportLink.md @@ -0,0 +1,11 @@ +# V1alpha1VirtualMachineExportLink + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cert** | **str** | Cert is the public CA certificate base64 encoded | +**volumes** | [**list[V1alpha1VirtualMachineExportVolume]**](V1alpha1VirtualMachineExportVolume.md) | Volumes is a list of available volumes to export | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineExportLinks.md b/docs/V1alpha1VirtualMachineExportLinks.md new file mode 100644 index 00000000..4632dfd0 --- /dev/null +++ b/docs/V1alpha1VirtualMachineExportLinks.md @@ -0,0 +1,11 @@ +# V1alpha1VirtualMachineExportLinks + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**external** | [**V1alpha1VirtualMachineExportLink**](V1alpha1VirtualMachineExportLink.md) | | [optional] +**internal** | [**V1alpha1VirtualMachineExportLink**](V1alpha1VirtualMachineExportLink.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineExportList.md b/docs/V1alpha1VirtualMachineExportList.md new file mode 100644 index 00000000..7c871120 --- /dev/null +++ b/docs/V1alpha1VirtualMachineExportList.md @@ -0,0 +1,13 @@ +# V1alpha1VirtualMachineExportList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list[V1alpha1VirtualMachineExport]**](V1alpha1VirtualMachineExport.md) | | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineExportSpec.md b/docs/V1alpha1VirtualMachineExportSpec.md new file mode 100644 index 00000000..5ce72bcd --- /dev/null +++ b/docs/V1alpha1VirtualMachineExportSpec.md @@ -0,0 +1,11 @@ +# V1alpha1VirtualMachineExportSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | | +**token_secret_ref** | **str** | TokenSecretRef is the name of the secret that contains the token used by the export server pod | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineExportStatus.md b/docs/V1alpha1VirtualMachineExportStatus.md new file mode 100644 index 00000000..80186342 --- /dev/null +++ b/docs/V1alpha1VirtualMachineExportStatus.md @@ -0,0 +1,13 @@ +# V1alpha1VirtualMachineExportStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**list[V1alpha1Condition]**](V1alpha1Condition.md) | | [optional] +**links** | [**V1alpha1VirtualMachineExportLinks**](V1alpha1VirtualMachineExportLinks.md) | | [optional] +**phase** | **str** | | [optional] +**service_name** | **str** | ServiceName is the name of the service created associated with the Virtual Machine export. It will be used to create the internal URLs for downloading the images | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineExportVolume.md b/docs/V1alpha1VirtualMachineExportVolume.md new file mode 100644 index 00000000..0433fcbc --- /dev/null +++ b/docs/V1alpha1VirtualMachineExportVolume.md @@ -0,0 +1,11 @@ +# V1alpha1VirtualMachineExportVolume + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**formats** | [**list[V1alpha1VirtualMachineExportVolumeFormat]**](V1alpha1VirtualMachineExportVolumeFormat.md) | | [optional] +**name** | **str** | Name is the name of the exported volume | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineExportVolumeFormat.md b/docs/V1alpha1VirtualMachineExportVolumeFormat.md new file mode 100644 index 00000000..fdbdda78 --- /dev/null +++ b/docs/V1alpha1VirtualMachineExportVolumeFormat.md @@ -0,0 +1,11 @@ +# V1alpha1VirtualMachineExportVolumeFormat + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**format** | **str** | Format is the format of the image at the specified URL | +**url** | **str** | Url is the url that contains the volume in the format specified | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 109e299d..fc073a62 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.53.0-207-g5bf939408" + release_note="Auto-generated client v0.54.0-rc.0-47-gabc9d0d07" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 6c601f59..75f148d1 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -801,6 +801,30 @@ 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/v1alpha1_virtual_machine_cluster_preference_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_cluster_preference_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineClusterPreferenceList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_export.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_export.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineExport.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_export_link.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_export_link.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineExportLink.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_export_links.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_export_links.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineExportLinks.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_export_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_export_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineExportList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_export_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_export_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineExportSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_export_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_export_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineExportStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_export_volume.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_export_volume.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineExportVolume.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_export_volume_format.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_export_volume_format.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineExportVolumeFormat.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_flavor.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_flavor.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineFlavor.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 7297719b..e03cc4d6 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -274,6 +274,14 @@ from .models.v1alpha1_virtual_machine_cluster_flavor_list import V1alpha1VirtualMachineClusterFlavorList from .models.v1alpha1_virtual_machine_cluster_preference import V1alpha1VirtualMachineClusterPreference from .models.v1alpha1_virtual_machine_cluster_preference_list import V1alpha1VirtualMachineClusterPreferenceList +from .models.v1alpha1_virtual_machine_export import V1alpha1VirtualMachineExport +from .models.v1alpha1_virtual_machine_export_link import V1alpha1VirtualMachineExportLink +from .models.v1alpha1_virtual_machine_export_links import V1alpha1VirtualMachineExportLinks +from .models.v1alpha1_virtual_machine_export_list import V1alpha1VirtualMachineExportList +from .models.v1alpha1_virtual_machine_export_spec import V1alpha1VirtualMachineExportSpec +from .models.v1alpha1_virtual_machine_export_status import V1alpha1VirtualMachineExportStatus +from .models.v1alpha1_virtual_machine_export_volume import V1alpha1VirtualMachineExportVolume +from .models.v1alpha1_virtual_machine_export_volume_format import V1alpha1VirtualMachineExportVolumeFormat from .models.v1alpha1_virtual_machine_flavor import V1alpha1VirtualMachineFlavor from .models.v1alpha1_virtual_machine_flavor_list import V1alpha1VirtualMachineFlavorList from .models.v1alpha1_virtual_machine_flavor_spec import V1alpha1VirtualMachineFlavorSpec diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 6fe5e655..46a55bde 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.53.0-207-g5bf939408/python' + self.user_agent = 'Swagger-Codegen/v0.54.0-rc.0-47-gabc9d0d07/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index f94ef599..a1a9eed7 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -366,6 +366,117 @@ def create_namespaced_virtual_machine_with_http_info(self, body, namespace, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def create_namespaced_virtual_machine_export(self, body, namespace, **kwargs): + """ + Create a VirtualMachineExport object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_virtual_machine_export(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1VirtualMachineExport body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1alpha1VirtualMachineExport + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_virtual_machine_export_with_http_info(body, namespace, **kwargs) + else: + (data) = self.create_namespaced_virtual_machine_export_with_http_info(body, namespace, **kwargs) + return data + + def create_namespaced_virtual_machine_export_with_http_info(self, body, namespace, **kwargs): + """ + Create a VirtualMachineExport object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_virtual_machine_export_with_http_info(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1VirtualMachineExport body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1alpha1VirtualMachineExport + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_virtual_machine_export" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine_export`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_export`") + + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineExport', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def create_namespaced_virtual_machine_flavor(self, body, namespace, **kwargs): """ Create a VirtualMachineFlavor object. @@ -2059,6 +2170,131 @@ def delete_collection_namespaced_virtual_machine_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def delete_collection_namespaced_virtual_machine_export(self, **kwargs): + """ + Delete a collection of VirtualMachineExport objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_virtual_machine_export(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_namespaced_virtual_machine_export_with_http_info(**kwargs) + else: + (data) = self.delete_collection_namespaced_virtual_machine_export_with_http_info(**kwargs) + return data + + def delete_collection_namespaced_virtual_machine_export_with_http_info(self, **kwargs): + """ + Delete a collection of VirtualMachineExport objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_virtual_machine_export_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_namespaced_virtual_machine_export" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def delete_collection_namespaced_virtual_machine_flavor(self, **kwargs): """ Delete a collection of VirtualMachineFlavor objects. @@ -3942,16 +4178,16 @@ def delete_namespaced_virtual_machine_with_http_info(self, name, namespace, body _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_flavor(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_export(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineFlavor object. + Delete a VirtualMachineExport object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_flavor(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_export(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3967,21 +4203,21 @@ def delete_namespaced_virtual_machine_flavor(self, name, namespace, body, **kwar """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_flavor_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_export_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_flavor_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_virtual_machine_export_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_flavor_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_export_with_http_info(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineFlavor object. + Delete a VirtualMachineExport object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_flavor_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_export_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4007,19 +4243,19 @@ def delete_namespaced_virtual_machine_flavor_with_http_info(self, name, namespac if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_flavor" % key + " to method delete_namespaced_virtual_machine_export" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_flavor`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_export`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_flavor`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_export`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_flavor`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_export`") collection_formats = {} @@ -4057,7 +4293,7 @@ def delete_namespaced_virtual_machine_flavor_with_http_info(self, name, namespac # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -4072,16 +4308,16 @@ def delete_namespaced_virtual_machine_flavor_with_http_info(self, name, namespac _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_flavor(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstance object. + Delete a VirtualMachineFlavor object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_flavor(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4097,21 +4333,21 @@ def delete_namespaced_virtual_machine_instance(self, name, namespace, body, **kw """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_flavor_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_virtual_machine_flavor_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_flavor_with_http_info(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstance object. + Delete a VirtualMachineFlavor object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_flavor_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4137,19 +4373,19 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namesp if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_instance" % key + " to method delete_namespaced_virtual_machine_flavor" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_flavor`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_flavor`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_flavor`") collection_formats = {} @@ -4187,7 +4423,7 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -4202,16 +4438,16 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namesp _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstanceMigration object. + Delete a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4227,7 +4463,137 @@ def delete_namespaced_virtual_machine_instance_migration(self, name, namespace, """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): + """ + Delete a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_virtual_machine_instance" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'grace_period_seconds' in params: + query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) + if 'orphan_dependents' in params: + query_params.append(('orphanDependents', params['orphan_dependents'])) + if 'propagation_policy' in params: + query_params.append(('propagationPolicy', params['propagation_policy'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): + """ + Delete a VirtualMachineInstanceMigration object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) else: (data) = self.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) return data @@ -5670,6 +6036,98 @@ def func7_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def get_api_group_export_kubevirt_io(self, **kwargs): + """ + Get a KubeVirt API group + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_group_export_kubevirt_io(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_api_group_export_kubevirt_io_with_http_info(**kwargs) + else: + (data) = self.get_api_group_export_kubevirt_io_with_http_info(**kwargs) + return data + + def get_api_group_export_kubevirt_io_with_http_info(self, **kwargs): + """ + Get a KubeVirt API group + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_group_export_kubevirt_io_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_group_export_kubevirt_io" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/export.kubevirt.io/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1APIGroup', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def get_api_group_flavor_kubevirt_io(self, **kwargs): """ Get a KubeVirt API group @@ -6222,6 +6680,98 @@ def get_api_group_snapshot_kubevirt_io_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def get_api_resources_export_kubevirt_io_v1alpha1(self, **kwargs): + """ + Get KubeVirt API Resources + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_resources_export_kubevirt_io_v1alpha1(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_api_resources_export_kubevirt_io_v1alpha1_with_http_info(**kwargs) + else: + (data) = self.get_api_resources_export_kubevirt_io_v1alpha1_with_http_info(**kwargs) + return data + + def get_api_resources_export_kubevirt_io_v1alpha1_with_http_info(self, **kwargs): + """ + Get KubeVirt API Resources + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_resources_export_kubevirt_io_v1alpha1_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_resources_export_kubevirt_io_v1alpha1" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1APIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def get_api_resources_flavor_kubevirt_io_v1alpha1(self, **kwargs): """ Get KubeVirt API Resources @@ -7330,7 +7880,139 @@ def list_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_kube_virt_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_kube_virt_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1KubeVirtList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_kube_virt" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_kube_virt`") + + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1KubeVirtList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_virtual_machine(self, namespace, **kwargs): + """ + Get a list of VirtualMachine objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_virtual_machine(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): + """ + Get a list of VirtualMachine objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_virtual_machine_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7343,7 +8025,7 @@ def list_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1KubeVirtList + :return: V1VirtualMachineList If the method is called asynchronously, returns the request thread. """ @@ -7359,13 +8041,13 @@ def list_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_kube_virt" % key + " to method list_namespaced_virtual_machine" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_kube_virt`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine`") collection_formats = {} @@ -7405,14 +8087,14 @@ def list_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1KubeVirtList', + response_type='V1VirtualMachineList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7420,16 +8102,16 @@ def list_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine(self, namespace, **kwargs): + def list_namespaced_virtual_machine_export(self, namespace, **kwargs): """ - Get a list of VirtualMachine objects. + Get a list of VirtualMachineExport objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_export(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7442,27 +8124,27 @@ def list_namespaced_virtual_machine(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :return: V1alpha1VirtualMachineExportList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + return self.list_namespaced_virtual_machine_export_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_virtual_machine_export_with_http_info(namespace, **kwargs) return data - def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): + def list_namespaced_virtual_machine_export_with_http_info(self, namespace, **kwargs): """ - Get a list of VirtualMachine objects. + Get a list of VirtualMachineExport objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_export_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7475,7 +8157,7 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :return: V1alpha1VirtualMachineExportList If the method is called asynchronously, returns the request thread. """ @@ -7491,13 +8173,13 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine" % key + " to method list_namespaced_virtual_machine_export" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_export`") collection_formats = {} @@ -7537,14 +8219,14 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'GET', + return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineList', + response_type='V1alpha1VirtualMachineExportList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9122,6 +9804,131 @@ def list_virtual_machine_cluster_preference_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def list_virtual_machine_export_for_all_namespaces(self, **kwargs): + """ + Get a list of all VirtualMachineExport objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_export_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineExportList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_virtual_machine_export_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_virtual_machine_export_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_virtual_machine_export_for_all_namespaces_with_http_info(self, **kwargs): + """ + Get a list of all VirtualMachineExport objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_export_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineExportList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_virtual_machine_export_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/virtualmachineexports', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineExportList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def list_virtual_machine_flavor_for_all_namespaces(self, **kwargs): """ Get a list of all VirtualMachineFlavor objects. @@ -10632,26 +11439,144 @@ def patch_namespaced_kube_virt(self, name, namespace, body, **kwargs): if kwargs.get('callback'): return self.patch_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a KubeVirt object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_kube_virt_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1KubeVirt + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_kube_virt" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_kube_virt`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_kube_virt`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_kube_virt`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1KubeVirt', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_virtual_machine(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1VirtualMachine + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): """ - Patch a KubeVirt object. + Patch a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_kube_virt_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1KubeVirt + :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ @@ -10667,19 +11592,19 @@ def patch_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_kube_virt" % key + " to method patch_namespaced_virtual_machine" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_kube_virt`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_kube_virt`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_kube_virt`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine`") collection_formats = {} @@ -10711,14 +11636,14 @@ def patch_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1KubeVirt', + response_type='V1VirtualMachine', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10726,50 +11651,50 @@ def patch_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine(self, name, namespace, body, **kwargs): + def patch_namespaced_virtual_machine_export(self, name, namespace, body, **kwargs): """ - Patch a VirtualMachine object. + Patch a VirtualMachineExport object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_export(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachine + :return: V1alpha1VirtualMachineExport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_virtual_machine_export_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_virtual_machine_export_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_virtual_machine_export_with_http_info(self, name, namespace, body, **kwargs): """ - Patch a VirtualMachine object. + Patch a VirtualMachineExport object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_export_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachine + :return: V1alpha1VirtualMachineExport If the method is called asynchronously, returns the request thread. """ @@ -10785,19 +11710,19 @@ def patch_namespaced_virtual_machine_with_http_info(self, name, namespace, body, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine" % key + " to method patch_namespaced_virtual_machine_export" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_export`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_export`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_export`") collection_formats = {} @@ -10829,14 +11754,14 @@ def patch_namespaced_virtual_machine_with_http_info(self, name, namespace, body, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachine', + response_type='V1alpha1VirtualMachineExport', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12584,6 +13509,121 @@ def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def read_namespaced_virtual_machine_export(self, name, namespace, **kwargs): + """ + Get a VirtualMachineExport object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_export(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1VirtualMachineExport + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_virtual_machine_export_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_virtual_machine_export_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_virtual_machine_export_with_http_info(self, name, namespace, **kwargs): + """ + Get a VirtualMachineExport object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_export_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1VirtualMachineExport + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_virtual_machine_export" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_export`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_export`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineExport', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def read_namespaced_virtual_machine_flavor(self, name, namespace, **kwargs): """ Get a VirtualMachineFlavor object. @@ -14171,7 +15211,125 @@ def replace_namespaced_kube_virt_with_http_info(self, name, namespace, body, **k body=body_params, post_params=form_params, files=local_var_files, - response_type='V1KubeVirt', + response_type='V1KubeVirt', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_virtual_machine(self, name, namespace, body, **kwargs): + """ + Update a VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_virtual_machine(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachine body: (required) + :return: V1VirtualMachine + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): + """ + Update a VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachine body: (required) + :return: V1VirtualMachine + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_virtual_machine" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachine', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -14179,50 +15337,50 @@ def replace_namespaced_kube_virt_with_http_info(self, name, namespace, body, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_export(self, name, namespace, body, **kwargs): """ - Update a VirtualMachine object. + Update a VirtualMachineExport object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_export(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachine body: (required) - :return: V1VirtualMachine + :param V1alpha1VirtualMachineExport body: (required) + :return: V1alpha1VirtualMachineExport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_virtual_machine_export_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_virtual_machine_export_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_export_with_http_info(self, name, namespace, body, **kwargs): """ - Update a VirtualMachine object. + Update a VirtualMachineExport object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_export_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachine body: (required) - :return: V1VirtualMachine + :param V1alpha1VirtualMachineExport body: (required) + :return: V1alpha1VirtualMachineExport If the method is called asynchronously, returns the request thread. """ @@ -14238,19 +15396,19 @@ def replace_namespaced_virtual_machine_with_http_info(self, name, namespace, bod if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine" % key + " to method replace_namespaced_virtual_machine_export" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_export`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_export`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_export`") collection_formats = {} @@ -14282,14 +15440,14 @@ def replace_namespaced_virtual_machine_with_http_info(self, name, namespace, bod # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachine', + response_type='V1alpha1VirtualMachineExport', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -23165,6 +24323,138 @@ def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def watch_namespaced_virtual_machine_export(self, namespace, **kwargs): + """ + Watch a VirtualMachineExport object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_virtual_machine_export(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_namespaced_virtual_machine_export_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_namespaced_virtual_machine_export_with_http_info(namespace, **kwargs) + return data + + def watch_namespaced_virtual_machine_export_with_http_info(self, namespace, **kwargs): + """ + Watch a VirtualMachineExport object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_virtual_machine_export_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_virtual_machine_export" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_export`") + + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def watch_namespaced_virtual_machine_flavor(self, namespace, **kwargs): """ Watch a VirtualMachineFlavor object. @@ -24735,6 +26025,131 @@ def watch_virtual_machine_cluster_preference_list_for_all_namespaces_with_http_i _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def watch_virtual_machine_export_list_for_all_namespaces(self, **kwargs): + """ + Watch a VirtualMachineExportList object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_virtual_machine_export_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_virtual_machine_export_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_virtual_machine_export_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_virtual_machine_export_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + Watch a VirtualMachineExportList object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_virtual_machine_export_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_virtual_machine_export_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/watch/virtualmachineexports', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def watch_virtual_machine_flavor_list_for_all_namespaces(self, **kwargs): """ Watch a VirtualMachineFlavorList object. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 8ede6cd5..2849b99c 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.53.0-207-g5bf939408".\ + "SDK Package Version: v0.54.0-rc.0-47-gabc9d0d07".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index eedc5e35..0a0d4fcf 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -274,6 +274,14 @@ from .v1alpha1_virtual_machine_cluster_flavor_list import V1alpha1VirtualMachineClusterFlavorList from .v1alpha1_virtual_machine_cluster_preference import V1alpha1VirtualMachineClusterPreference from .v1alpha1_virtual_machine_cluster_preference_list import V1alpha1VirtualMachineClusterPreferenceList +from .v1alpha1_virtual_machine_export import V1alpha1VirtualMachineExport +from .v1alpha1_virtual_machine_export_link import V1alpha1VirtualMachineExportLink +from .v1alpha1_virtual_machine_export_links import V1alpha1VirtualMachineExportLinks +from .v1alpha1_virtual_machine_export_list import V1alpha1VirtualMachineExportList +from .v1alpha1_virtual_machine_export_spec import V1alpha1VirtualMachineExportSpec +from .v1alpha1_virtual_machine_export_status import V1alpha1VirtualMachineExportStatus +from .v1alpha1_virtual_machine_export_volume import V1alpha1VirtualMachineExportVolume +from .v1alpha1_virtual_machine_export_volume_format import V1alpha1VirtualMachineExportVolumeFormat from .v1alpha1_virtual_machine_flavor import V1alpha1VirtualMachineFlavor from .v1alpha1_virtual_machine_flavor_list import V1alpha1VirtualMachineFlavorList from .v1alpha1_virtual_machine_flavor_spec import V1alpha1VirtualMachineFlavorSpec diff --git a/kubevirt/models/v1alpha1_virtual_machine_export.py b/kubevirt/models/v1alpha1_virtual_machine_export.py new file mode 100644 index 00000000..e5b4a619 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_export.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineExport(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', + 'spec': 'V1alpha1VirtualMachineExportSpec', + 'status': 'V1alpha1VirtualMachineExportStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + """ + V1alpha1VirtualMachineExport - a model defined in Swagger + """ + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1VirtualMachineExport. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1alpha1VirtualMachineExport. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1VirtualMachineExport. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1VirtualMachineExport. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1alpha1VirtualMachineExport. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1VirtualMachineExport. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1VirtualMachineExport. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1VirtualMachineExport. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1VirtualMachineExport. + + :return: The metadata of this V1alpha1VirtualMachineExport. + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1VirtualMachineExport. + + :param metadata: The metadata of this V1alpha1VirtualMachineExport. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1alpha1VirtualMachineExport. + + :return: The spec of this V1alpha1VirtualMachineExport. + :rtype: V1alpha1VirtualMachineExportSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1alpha1VirtualMachineExport. + + :param spec: The spec of this V1alpha1VirtualMachineExport. + :type: V1alpha1VirtualMachineExportSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1alpha1VirtualMachineExport. + + :return: The status of this V1alpha1VirtualMachineExport. + :rtype: V1alpha1VirtualMachineExportStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1alpha1VirtualMachineExport. + + :param status: The status of this V1alpha1VirtualMachineExport. + :type: V1alpha1VirtualMachineExportStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineExport): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_export_link.py b/kubevirt/models/v1alpha1_virtual_machine_export_link.py new file mode 100644 index 00000000..f64ab912 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_export_link.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineExportLink(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'cert': 'str', + 'volumes': 'list[V1alpha1VirtualMachineExportVolume]' + } + + attribute_map = { + 'cert': 'cert', + 'volumes': 'volumes' + } + + def __init__(self, cert=None, volumes=None): + """ + V1alpha1VirtualMachineExportLink - a model defined in Swagger + """ + + self._cert = None + self._volumes = None + + self.cert = cert + if volumes is not None: + self.volumes = volumes + + @property + def cert(self): + """ + Gets the cert of this V1alpha1VirtualMachineExportLink. + Cert is the public CA certificate base64 encoded + + :return: The cert of this V1alpha1VirtualMachineExportLink. + :rtype: str + """ + return self._cert + + @cert.setter + def cert(self, cert): + """ + Sets the cert of this V1alpha1VirtualMachineExportLink. + Cert is the public CA certificate base64 encoded + + :param cert: The cert of this V1alpha1VirtualMachineExportLink. + :type: str + """ + if cert is None: + raise ValueError("Invalid value for `cert`, must not be `None`") + + self._cert = cert + + @property + def volumes(self): + """ + Gets the volumes of this V1alpha1VirtualMachineExportLink. + Volumes is a list of available volumes to export + + :return: The volumes of this V1alpha1VirtualMachineExportLink. + :rtype: list[V1alpha1VirtualMachineExportVolume] + """ + return self._volumes + + @volumes.setter + def volumes(self, volumes): + """ + Sets the volumes of this V1alpha1VirtualMachineExportLink. + Volumes is a list of available volumes to export + + :param volumes: The volumes of this V1alpha1VirtualMachineExportLink. + :type: list[V1alpha1VirtualMachineExportVolume] + """ + + self._volumes = volumes + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineExportLink): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_export_links.py b/kubevirt/models/v1alpha1_virtual_machine_export_links.py new file mode 100644 index 00000000..f2492339 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_export_links.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineExportLinks(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'external': 'V1alpha1VirtualMachineExportLink', + 'internal': 'V1alpha1VirtualMachineExportLink' + } + + attribute_map = { + 'external': 'external', + 'internal': 'internal' + } + + def __init__(self, external=None, internal=None): + """ + V1alpha1VirtualMachineExportLinks - a model defined in Swagger + """ + + self._external = None + self._internal = None + + if external is not None: + self.external = external + if internal is not None: + self.internal = internal + + @property + def external(self): + """ + Gets the external of this V1alpha1VirtualMachineExportLinks. + + :return: The external of this V1alpha1VirtualMachineExportLinks. + :rtype: V1alpha1VirtualMachineExportLink + """ + return self._external + + @external.setter + def external(self, external): + """ + Sets the external of this V1alpha1VirtualMachineExportLinks. + + :param external: The external of this V1alpha1VirtualMachineExportLinks. + :type: V1alpha1VirtualMachineExportLink + """ + + self._external = external + + @property + def internal(self): + """ + Gets the internal of this V1alpha1VirtualMachineExportLinks. + + :return: The internal of this V1alpha1VirtualMachineExportLinks. + :rtype: V1alpha1VirtualMachineExportLink + """ + return self._internal + + @internal.setter + def internal(self, internal): + """ + Sets the internal of this V1alpha1VirtualMachineExportLinks. + + :param internal: The internal of this V1alpha1VirtualMachineExportLinks. + :type: V1alpha1VirtualMachineExportLink + """ + + self._internal = internal + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineExportLinks): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_export_list.py b/kubevirt/models/v1alpha1_virtual_machine_export_list.py new file mode 100644 index 00000000..ff5a9eea --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_export_list.py @@ -0,0 +1,207 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineExportList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'items': 'list[V1alpha1VirtualMachineExport]', + 'kind': 'str', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1alpha1VirtualMachineExportList - a model defined in Swagger + """ + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + self.metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1VirtualMachineExportList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1alpha1VirtualMachineExportList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1VirtualMachineExportList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1VirtualMachineExportList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1alpha1VirtualMachineExportList. + + :return: The items of this V1alpha1VirtualMachineExportList. + :rtype: list[V1alpha1VirtualMachineExport] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1alpha1VirtualMachineExportList. + + :param items: The items of this V1alpha1VirtualMachineExportList. + :type: list[V1alpha1VirtualMachineExport] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1alpha1VirtualMachineExportList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1VirtualMachineExportList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1VirtualMachineExportList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1VirtualMachineExportList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1VirtualMachineExportList. + + :return: The metadata of this V1alpha1VirtualMachineExportList. + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1VirtualMachineExportList. + + :param metadata: The metadata of this V1alpha1VirtualMachineExportList. + :type: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + if metadata is None: + raise ValueError("Invalid value for `metadata`, must not be `None`") + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineExportList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_export_spec.py b/kubevirt/models/v1alpha1_virtual_machine_export_spec.py new file mode 100644 index 00000000..79909c70 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_export_spec.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineExportSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'source': 'K8sIoApiCoreV1TypedLocalObjectReference', + 'token_secret_ref': 'str' + } + + attribute_map = { + 'source': 'source', + 'token_secret_ref': 'tokenSecretRef' + } + + def __init__(self, source=None, token_secret_ref=None): + """ + V1alpha1VirtualMachineExportSpec - a model defined in Swagger + """ + + self._source = None + self._token_secret_ref = None + + self.source = source + self.token_secret_ref = token_secret_ref + + @property + def source(self): + """ + Gets the source of this V1alpha1VirtualMachineExportSpec. + + :return: The source of this V1alpha1VirtualMachineExportSpec. + :rtype: K8sIoApiCoreV1TypedLocalObjectReference + """ + return self._source + + @source.setter + def source(self, source): + """ + Sets the source of this V1alpha1VirtualMachineExportSpec. + + :param source: The source of this V1alpha1VirtualMachineExportSpec. + :type: K8sIoApiCoreV1TypedLocalObjectReference + """ + if source is None: + raise ValueError("Invalid value for `source`, must not be `None`") + + self._source = source + + @property + def token_secret_ref(self): + """ + Gets the token_secret_ref of this V1alpha1VirtualMachineExportSpec. + TokenSecretRef is the name of the secret that contains the token used by the export server pod + + :return: The token_secret_ref of this V1alpha1VirtualMachineExportSpec. + :rtype: str + """ + return self._token_secret_ref + + @token_secret_ref.setter + def token_secret_ref(self, token_secret_ref): + """ + Sets the token_secret_ref of this V1alpha1VirtualMachineExportSpec. + TokenSecretRef is the name of the secret that contains the token used by the export server pod + + :param token_secret_ref: The token_secret_ref of this V1alpha1VirtualMachineExportSpec. + :type: str + """ + if token_secret_ref is None: + raise ValueError("Invalid value for `token_secret_ref`, must not be `None`") + + self._token_secret_ref = token_secret_ref + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineExportSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_export_status.py b/kubevirt/models/v1alpha1_virtual_machine_export_status.py new file mode 100644 index 00000000..13080b21 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_export_status.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineExportStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'conditions': 'list[V1alpha1Condition]', + 'links': 'V1alpha1VirtualMachineExportLinks', + 'phase': 'str', + 'service_name': 'str' + } + + attribute_map = { + 'conditions': 'conditions', + 'links': 'links', + 'phase': 'phase', + 'service_name': 'serviceName' + } + + def __init__(self, conditions=None, links=None, phase=None, service_name=None): + """ + V1alpha1VirtualMachineExportStatus - a model defined in Swagger + """ + + self._conditions = None + self._links = None + self._phase = None + self._service_name = None + + if conditions is not None: + self.conditions = conditions + if links is not None: + self.links = links + if phase is not None: + self.phase = phase + if service_name is not None: + self.service_name = service_name + + @property + def conditions(self): + """ + Gets the conditions of this V1alpha1VirtualMachineExportStatus. + + :return: The conditions of this V1alpha1VirtualMachineExportStatus. + :rtype: list[V1alpha1Condition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1alpha1VirtualMachineExportStatus. + + :param conditions: The conditions of this V1alpha1VirtualMachineExportStatus. + :type: list[V1alpha1Condition] + """ + + self._conditions = conditions + + @property + def links(self): + """ + Gets the links of this V1alpha1VirtualMachineExportStatus. + + :return: The links of this V1alpha1VirtualMachineExportStatus. + :rtype: V1alpha1VirtualMachineExportLinks + """ + return self._links + + @links.setter + def links(self, links): + """ + Sets the links of this V1alpha1VirtualMachineExportStatus. + + :param links: The links of this V1alpha1VirtualMachineExportStatus. + :type: V1alpha1VirtualMachineExportLinks + """ + + self._links = links + + @property + def phase(self): + """ + Gets the phase of this V1alpha1VirtualMachineExportStatus. + + :return: The phase of this V1alpha1VirtualMachineExportStatus. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """ + Sets the phase of this V1alpha1VirtualMachineExportStatus. + + :param phase: The phase of this V1alpha1VirtualMachineExportStatus. + :type: str + """ + + self._phase = phase + + @property + def service_name(self): + """ + Gets the service_name of this V1alpha1VirtualMachineExportStatus. + ServiceName is the name of the service created associated with the Virtual Machine export. It will be used to create the internal URLs for downloading the images + + :return: The service_name of this V1alpha1VirtualMachineExportStatus. + :rtype: str + """ + return self._service_name + + @service_name.setter + def service_name(self, service_name): + """ + Sets the service_name of this V1alpha1VirtualMachineExportStatus. + ServiceName is the name of the service created associated with the Virtual Machine export. It will be used to create the internal URLs for downloading the images + + :param service_name: The service_name of this V1alpha1VirtualMachineExportStatus. + :type: str + """ + + self._service_name = service_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineExportStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_export_volume.py b/kubevirt/models/v1alpha1_virtual_machine_export_volume.py new file mode 100644 index 00000000..614b20e6 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_export_volume.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineExportVolume(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'formats': 'list[V1alpha1VirtualMachineExportVolumeFormat]', + 'name': 'str' + } + + attribute_map = { + 'formats': 'formats', + 'name': 'name' + } + + def __init__(self, formats=None, name=None): + """ + V1alpha1VirtualMachineExportVolume - a model defined in Swagger + """ + + self._formats = None + self._name = None + + if formats is not None: + self.formats = formats + self.name = name + + @property + def formats(self): + """ + Gets the formats of this V1alpha1VirtualMachineExportVolume. + + :return: The formats of this V1alpha1VirtualMachineExportVolume. + :rtype: list[V1alpha1VirtualMachineExportVolumeFormat] + """ + return self._formats + + @formats.setter + def formats(self, formats): + """ + Sets the formats of this V1alpha1VirtualMachineExportVolume. + + :param formats: The formats of this V1alpha1VirtualMachineExportVolume. + :type: list[V1alpha1VirtualMachineExportVolumeFormat] + """ + + self._formats = formats + + @property + def name(self): + """ + Gets the name of this V1alpha1VirtualMachineExportVolume. + Name is the name of the exported volume + + :return: The name of this V1alpha1VirtualMachineExportVolume. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1alpha1VirtualMachineExportVolume. + Name is the name of the exported volume + + :param name: The name of this V1alpha1VirtualMachineExportVolume. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineExportVolume): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_export_volume_format.py b/kubevirt/models/v1alpha1_virtual_machine_export_volume_format.py new file mode 100644 index 00000000..e8b95f18 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_export_volume_format.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineExportVolumeFormat(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'format': 'str', + 'url': 'str' + } + + attribute_map = { + 'format': 'format', + 'url': 'url' + } + + def __init__(self, format=None, url=None): + """ + V1alpha1VirtualMachineExportVolumeFormat - a model defined in Swagger + """ + + self._format = None + self._url = None + + self.format = format + self.url = url + + @property + def format(self): + """ + Gets the format of this V1alpha1VirtualMachineExportVolumeFormat. + Format is the format of the image at the specified URL + + :return: The format of this V1alpha1VirtualMachineExportVolumeFormat. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """ + Sets the format of this V1alpha1VirtualMachineExportVolumeFormat. + Format is the format of the image at the specified URL + + :param format: The format of this V1alpha1VirtualMachineExportVolumeFormat. + :type: str + """ + if format is None: + raise ValueError("Invalid value for `format`, must not be `None`") + + self._format = format + + @property + def url(self): + """ + Gets the url of this V1alpha1VirtualMachineExportVolumeFormat. + Url is the url that contains the volume in the format specified + + :return: The url of this V1alpha1VirtualMachineExportVolumeFormat. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """ + Sets the url of this V1alpha1VirtualMachineExportVolumeFormat. + Url is the url that contains the volume in the format specified + + :param url: The url of this V1alpha1VirtualMachineExportVolumeFormat. + :type: str + """ + if url is None: + raise ValueError("Invalid value for `url`, must not be `None`") + + self._url = url + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineExportVolumeFormat): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index bb3041bd..eaf3eea9 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.53.0-207-g5bf939408" +VERSION = "v0.54.0-rc.0-47-gabc9d0d07" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 4711b03b..1139ca1b 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.53.0-207-g5bf939408" +"packageVersion": "v0.54.0-rc.0-47-gabc9d0d07" } diff --git a/test/test_default_api.py b/test/test_default_api.py index a8a6ef5f..ccefa02b 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -52,6 +52,14 @@ def test_create_namespaced_virtual_machine(self): Test case for create_namespaced_virtual_machine + """ + pass + + def test_create_namespaced_virtual_machine_export(self): + """ + Test case for create_namespaced_virtual_machine_export + + """ pass @@ -172,6 +180,14 @@ def test_delete_collection_namespaced_virtual_machine(self): Test case for delete_collection_namespaced_virtual_machine + """ + pass + + def test_delete_collection_namespaced_virtual_machine_export(self): + """ + Test case for delete_collection_namespaced_virtual_machine_export + + """ pass @@ -292,6 +308,14 @@ def test_delete_namespaced_virtual_machine(self): Test case for delete_namespaced_virtual_machine + """ + pass + + def test_delete_namespaced_virtual_machine_export(self): + """ + Test case for delete_namespaced_virtual_machine_export + + """ pass @@ -404,6 +428,14 @@ def test_func7(self): Test case for func7 + """ + pass + + def test_get_api_group_export_kubevirt_io(self): + """ + Test case for get_api_group_export_kubevirt_io + + """ pass @@ -452,6 +484,14 @@ def test_get_api_group_snapshot_kubevirt_io(self): Test case for get_api_group_snapshot_kubevirt_io + """ + pass + + def test_get_api_resources_export_kubevirt_io_v1alpha1(self): + """ + Test case for get_api_resources_export_kubevirt_io_v1alpha1 + + """ pass @@ -556,6 +596,14 @@ def test_list_namespaced_virtual_machine(self): Test case for list_namespaced_virtual_machine + """ + pass + + def test_list_namespaced_virtual_machine_export(self): + """ + Test case for list_namespaced_virtual_machine_export + + """ pass @@ -652,6 +700,14 @@ def test_list_virtual_machine_cluster_preference(self): Test case for list_virtual_machine_cluster_preference + """ + pass + + def test_list_virtual_machine_export_for_all_namespaces(self): + """ + Test case for list_virtual_machine_export_for_all_namespaces + + """ pass @@ -764,6 +820,14 @@ def test_patch_namespaced_virtual_machine(self): Test case for patch_namespaced_virtual_machine + """ + pass + + def test_patch_namespaced_virtual_machine_export(self): + """ + Test case for patch_namespaced_virtual_machine_export + + """ pass @@ -884,6 +948,14 @@ def test_read_namespaced_virtual_machine(self): Test case for read_namespaced_virtual_machine + """ + pass + + def test_read_namespaced_virtual_machine_export(self): + """ + Test case for read_namespaced_virtual_machine_export + + """ pass @@ -1004,6 +1076,14 @@ def test_replace_namespaced_virtual_machine(self): Test case for replace_namespaced_virtual_machine + """ + pass + + def test_replace_namespaced_virtual_machine_export(self): + """ + Test case for replace_namespaced_virtual_machine_export + + """ pass @@ -1668,6 +1748,14 @@ def test_watch_namespaced_virtual_machine(self): Test case for watch_namespaced_virtual_machine + """ + pass + + def test_watch_namespaced_virtual_machine_export(self): + """ + Test case for watch_namespaced_virtual_machine_export + + """ pass @@ -1764,6 +1852,14 @@ def test_watch_virtual_machine_cluster_preference_list_for_all_namespaces(self): Test case for watch_virtual_machine_cluster_preference_list_for_all_namespaces + """ + pass + + def test_watch_virtual_machine_export_list_for_all_namespaces(self): + """ + Test case for watch_virtual_machine_export_list_for_all_namespaces + + """ pass diff --git a/test/test_v1alpha1_virtual_machine_export.py b/test/test_v1alpha1_virtual_machine_export.py new file mode 100644 index 00000000..066f9721 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_export.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_export import V1alpha1VirtualMachineExport + + +class TestV1alpha1VirtualMachineExport(unittest.TestCase): + """ V1alpha1VirtualMachineExport unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineExport(self): + """ + Test V1alpha1VirtualMachineExport + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_export.V1alpha1VirtualMachineExport() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_export_link.py b/test/test_v1alpha1_virtual_machine_export_link.py new file mode 100644 index 00000000..d356e0a7 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_export_link.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_export_link import V1alpha1VirtualMachineExportLink + + +class TestV1alpha1VirtualMachineExportLink(unittest.TestCase): + """ V1alpha1VirtualMachineExportLink unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineExportLink(self): + """ + Test V1alpha1VirtualMachineExportLink + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_export_link.V1alpha1VirtualMachineExportLink() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_export_links.py b/test/test_v1alpha1_virtual_machine_export_links.py new file mode 100644 index 00000000..9987ca64 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_export_links.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_export_links import V1alpha1VirtualMachineExportLinks + + +class TestV1alpha1VirtualMachineExportLinks(unittest.TestCase): + """ V1alpha1VirtualMachineExportLinks unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineExportLinks(self): + """ + Test V1alpha1VirtualMachineExportLinks + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_export_links.V1alpha1VirtualMachineExportLinks() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_export_list.py b/test/test_v1alpha1_virtual_machine_export_list.py new file mode 100644 index 00000000..58b68f59 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_export_list.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_export_list import V1alpha1VirtualMachineExportList + + +class TestV1alpha1VirtualMachineExportList(unittest.TestCase): + """ V1alpha1VirtualMachineExportList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineExportList(self): + """ + Test V1alpha1VirtualMachineExportList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_export_list.V1alpha1VirtualMachineExportList() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_export_spec.py b/test/test_v1alpha1_virtual_machine_export_spec.py new file mode 100644 index 00000000..a868172e --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_export_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_export_spec import V1alpha1VirtualMachineExportSpec + + +class TestV1alpha1VirtualMachineExportSpec(unittest.TestCase): + """ V1alpha1VirtualMachineExportSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineExportSpec(self): + """ + Test V1alpha1VirtualMachineExportSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_export_spec.V1alpha1VirtualMachineExportSpec() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_export_status.py b/test/test_v1alpha1_virtual_machine_export_status.py new file mode 100644 index 00000000..59132961 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_export_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_export_status import V1alpha1VirtualMachineExportStatus + + +class TestV1alpha1VirtualMachineExportStatus(unittest.TestCase): + """ V1alpha1VirtualMachineExportStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineExportStatus(self): + """ + Test V1alpha1VirtualMachineExportStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_export_status.V1alpha1VirtualMachineExportStatus() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_export_volume.py b/test/test_v1alpha1_virtual_machine_export_volume.py new file mode 100644 index 00000000..c3135a6a --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_export_volume.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_export_volume import V1alpha1VirtualMachineExportVolume + + +class TestV1alpha1VirtualMachineExportVolume(unittest.TestCase): + """ V1alpha1VirtualMachineExportVolume unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineExportVolume(self): + """ + Test V1alpha1VirtualMachineExportVolume + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_export_volume.V1alpha1VirtualMachineExportVolume() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_export_volume_format.py b/test/test_v1alpha1_virtual_machine_export_volume_format.py new file mode 100644 index 00000000..143b2e4c --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_export_volume_format.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_export_volume_format import V1alpha1VirtualMachineExportVolumeFormat + + +class TestV1alpha1VirtualMachineExportVolumeFormat(unittest.TestCase): + """ V1alpha1VirtualMachineExportVolumeFormat unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineExportVolumeFormat(self): + """ + Test V1alpha1VirtualMachineExportVolumeFormat + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_export_volume_format.V1alpha1VirtualMachineExportVolumeFormat() + pass + + +if __name__ == '__main__': + unittest.main() From 3805e88118b85620d2cb1698df539020f80e2f7c Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 7 Jun 2022 12:21:24 +0000 Subject: [PATCH 275/521] Client Python update by KubeVirt Prow build 1534133115801309184 --- README.md | 2 +- docs/V1alpha1Selectors.md | 4 ++-- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1alpha1_selectors.py | 12 ++++++------ setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 3371f68c..bff7cb79 100644 --- a/README.md +++ b/README.md @@ -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: v0.54.0-rc.0-47-gabc9d0d07 +- Package version: v0.54.0-rc.0-58-gfed03a07b - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1alpha1Selectors.md b/docs/V1alpha1Selectors.md index ecc29c03..a83a7a0f 100644 --- a/docs/V1alpha1Selectors.md +++ b/docs/V1alpha1Selectors.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**namespace_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | | [optional] -**virtual_machine_instance_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | | [optional] +**namespace_selector** | **dict(str, str)** | | [optional] +**virtual_machine_instance_selector** | **dict(str, str)** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index fc073a62..5394cd34 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.54.0-rc.0-47-gabc9d0d07" + release_note="Auto-generated client v0.54.0-rc.0-58-gfed03a07b" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 46a55bde..b640d690 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.54.0-rc.0-47-gabc9d0d07/python' + self.user_agent = 'Swagger-Codegen/v0.54.0-rc.0-58-gfed03a07b/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 2849b99c..f84c27e5 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.54.0-rc.0-47-gabc9d0d07".\ + "SDK Package Version: v0.54.0-rc.0-58-gfed03a07b".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1alpha1_selectors.py b/kubevirt/models/v1alpha1_selectors.py index 8fa4aee7..19479b95 100644 --- a/kubevirt/models/v1alpha1_selectors.py +++ b/kubevirt/models/v1alpha1_selectors.py @@ -31,8 +31,8 @@ class V1alpha1Selectors(object): and the value is json key in definition. """ swagger_types = { - 'namespace_selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', - 'virtual_machine_instance_selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector' + 'namespace_selector': 'dict(str, str)', + 'virtual_machine_instance_selector': 'dict(str, str)' } attribute_map = { @@ -59,7 +59,7 @@ def namespace_selector(self): Gets the namespace_selector of this V1alpha1Selectors. :return: The namespace_selector of this V1alpha1Selectors. - :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector + :rtype: dict(str, str) """ return self._namespace_selector @@ -69,7 +69,7 @@ def namespace_selector(self, namespace_selector): Sets the namespace_selector of this V1alpha1Selectors. :param namespace_selector: The namespace_selector of this V1alpha1Selectors. - :type: K8sIoApimachineryPkgApisMetaV1LabelSelector + :type: dict(str, str) """ self._namespace_selector = namespace_selector @@ -80,7 +80,7 @@ def virtual_machine_instance_selector(self): Gets the virtual_machine_instance_selector of this V1alpha1Selectors. :return: The virtual_machine_instance_selector of this V1alpha1Selectors. - :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector + :rtype: dict(str, str) """ return self._virtual_machine_instance_selector @@ -90,7 +90,7 @@ def virtual_machine_instance_selector(self, virtual_machine_instance_selector): Sets the virtual_machine_instance_selector of this V1alpha1Selectors. :param virtual_machine_instance_selector: The virtual_machine_instance_selector of this V1alpha1Selectors. - :type: K8sIoApimachineryPkgApisMetaV1LabelSelector + :type: dict(str, str) """ self._virtual_machine_instance_selector = virtual_machine_instance_selector diff --git a/setup.py b/setup.py index eaf3eea9..296b4290 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.54.0-rc.0-47-gabc9d0d07" +VERSION = "v0.54.0-rc.0-58-gfed03a07b" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 1139ca1b..7c9b6baa 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.54.0-rc.0-47-gabc9d0d07" +"packageVersion": "v0.54.0-rc.0-58-gfed03a07b" } From b5808dbc20357546dc082749372ce3d5d60f4fbe Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 9 Jun 2022 12:08:06 +0000 Subject: [PATCH 276/521] Client Python update by KubeVirt Prow build 1534861154973650944 --- README.md | 2 +- docs/V1alpha1CPUPreferences.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1alpha1_cpu_preferences.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index bff7cb79..59937217 100644 --- a/README.md +++ b/README.md @@ -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: v0.54.0-rc.0-58-gfed03a07b +- Package version: v0.54.0-87-g376af4319 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1alpha1CPUPreferences.md b/docs/V1alpha1CPUPreferences.md index 13a07c3c..df9696eb 100644 --- a/docs/V1alpha1CPUPreferences.md +++ b/docs/V1alpha1CPUPreferences.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**preferred_cpu_topology** | **str** | PreferredCPUTopology optionally defines the preferred guest visible CPU topology, defaults to PreferCores. | [optional] +**preferred_cpu_topology** | **str** | PreferredCPUTopology optionally defines the preferred guest visible CPU topology, defaults to PreferSockets. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 5394cd34..6a079aa3 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.54.0-rc.0-58-gfed03a07b" + release_note="Auto-generated client v0.54.0-87-g376af4319" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index b640d690..b5ca7b49 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.54.0-rc.0-58-gfed03a07b/python' + self.user_agent = 'Swagger-Codegen/v0.54.0-87-g376af4319/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index f84c27e5..22cc254c 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.54.0-rc.0-58-gfed03a07b".\ + "SDK Package Version: v0.54.0-87-g376af4319".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1alpha1_cpu_preferences.py b/kubevirt/models/v1alpha1_cpu_preferences.py index 39cbd4a4..1b83d718 100644 --- a/kubevirt/models/v1alpha1_cpu_preferences.py +++ b/kubevirt/models/v1alpha1_cpu_preferences.py @@ -52,7 +52,7 @@ def __init__(self, preferred_cpu_topology=None): def preferred_cpu_topology(self): """ Gets the preferred_cpu_topology of this V1alpha1CPUPreferences. - PreferredCPUTopology optionally defines the preferred guest visible CPU topology, defaults to PreferCores. + PreferredCPUTopology optionally defines the preferred guest visible CPU topology, defaults to PreferSockets. :return: The preferred_cpu_topology of this V1alpha1CPUPreferences. :rtype: str @@ -63,7 +63,7 @@ def preferred_cpu_topology(self): def preferred_cpu_topology(self, preferred_cpu_topology): """ Sets the preferred_cpu_topology of this V1alpha1CPUPreferences. - PreferredCPUTopology optionally defines the preferred guest visible CPU topology, defaults to PreferCores. + PreferredCPUTopology optionally defines the preferred guest visible CPU topology, defaults to PreferSockets. :param preferred_cpu_topology: The preferred_cpu_topology of this V1alpha1CPUPreferences. :type: str diff --git a/setup.py b/setup.py index 296b4290..6141b9a9 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.54.0-rc.0-58-gfed03a07b" +VERSION = "v0.54.0-87-g376af4319" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 7c9b6baa..f6b99183 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.54.0-rc.0-58-gfed03a07b" +"packageVersion": "v0.54.0-87-g376af4319" } From 0d48cfbefb33b8e78a166942f6f87d2e0dc77f14 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 16 Jun 2022 10:09:31 +0000 Subject: [PATCH 277/521] Client Python update by KubeVirt Prow build 1537342269571469312 --- README.md | 2 +- docs/V1beta1DataVolumeSourceVDDK.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../models/v1beta1_data_volume_source_vddk.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 59937217..d14aefc1 100644 --- a/README.md +++ b/README.md @@ -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: v0.54.0-87-g376af4319 +- Package version: v0.54.0-162-g75674879e - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1DataVolumeSourceVDDK.md b/docs/V1beta1DataVolumeSourceVDDK.md index af9139ee..c9260482 100644 --- a/docs/V1beta1DataVolumeSourceVDDK.md +++ b/docs/V1beta1DataVolumeSourceVDDK.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **backing_file** | **str** | BackingFile is the path to the virtual hard disk to migrate from vCenter/ESXi | [optional] +**init_image_url** | **str** | InitImageURL is an optional URL to an image containing an extracted VDDK library, overrides v2v-vmware config map | [optional] **secret_ref** | **str** | SecretRef provides a reference to a secret containing the username and password needed to access the vCenter or ESXi host | [optional] **thumbprint** | **str** | Thumbprint is the certificate thumbprint of the vCenter or ESXi host | [optional] **url** | **str** | URL is the URL of the vCenter or ESXi host with the VM to migrate | [optional] diff --git a/git_push.sh b/git_push.sh index 6a079aa3..b3a37d57 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.54.0-87-g376af4319" + release_note="Auto-generated client v0.54.0-162-g75674879e" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index b5ca7b49..5dd7f54f 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.54.0-87-g376af4319/python' + self.user_agent = 'Swagger-Codegen/v0.54.0-162-g75674879e/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 22cc254c..1b1eb342 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.54.0-87-g376af4319".\ + "SDK Package Version: v0.54.0-162-g75674879e".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_data_volume_source_vddk.py b/kubevirt/models/v1beta1_data_volume_source_vddk.py index d6f94261..9a208b9a 100644 --- a/kubevirt/models/v1beta1_data_volume_source_vddk.py +++ b/kubevirt/models/v1beta1_data_volume_source_vddk.py @@ -32,6 +32,7 @@ class V1beta1DataVolumeSourceVDDK(object): """ swagger_types = { 'backing_file': 'str', + 'init_image_url': 'str', 'secret_ref': 'str', 'thumbprint': 'str', 'url': 'str', @@ -40,18 +41,20 @@ class V1beta1DataVolumeSourceVDDK(object): attribute_map = { 'backing_file': 'backingFile', + 'init_image_url': 'initImageURL', 'secret_ref': 'secretRef', 'thumbprint': 'thumbprint', 'url': 'url', 'uuid': 'uuid' } - def __init__(self, backing_file=None, secret_ref=None, thumbprint=None, url=None, uuid=None): + def __init__(self, backing_file=None, init_image_url=None, secret_ref=None, thumbprint=None, url=None, uuid=None): """ V1beta1DataVolumeSourceVDDK - a model defined in Swagger """ self._backing_file = None + self._init_image_url = None self._secret_ref = None self._thumbprint = None self._url = None @@ -59,6 +62,8 @@ def __init__(self, backing_file=None, secret_ref=None, thumbprint=None, url=None if backing_file is not None: self.backing_file = backing_file + if init_image_url is not None: + self.init_image_url = init_image_url if secret_ref is not None: self.secret_ref = secret_ref if thumbprint is not None: @@ -91,6 +96,29 @@ def backing_file(self, backing_file): self._backing_file = backing_file + @property + def init_image_url(self): + """ + Gets the init_image_url of this V1beta1DataVolumeSourceVDDK. + InitImageURL is an optional URL to an image containing an extracted VDDK library, overrides v2v-vmware config map + + :return: The init_image_url of this V1beta1DataVolumeSourceVDDK. + :rtype: str + """ + return self._init_image_url + + @init_image_url.setter + def init_image_url(self, init_image_url): + """ + Sets the init_image_url of this V1beta1DataVolumeSourceVDDK. + InitImageURL is an optional URL to an image containing an extracted VDDK library, overrides v2v-vmware config map + + :param init_image_url: The init_image_url of this V1beta1DataVolumeSourceVDDK. + :type: str + """ + + self._init_image_url = init_image_url + @property def secret_ref(self): """ diff --git a/setup.py b/setup.py index 6141b9a9..752ad342 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.54.0-87-g376af4319" +VERSION = "v0.54.0-162-g75674879e" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index f6b99183..38d687ec 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.54.0-87-g376af4319" +"packageVersion": "v0.54.0-162-g75674879e" } From f0597d4f096aed46734e610a8b1523306ac25ff7 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 24 Jun 2022 11:39:20 +0000 Subject: [PATCH 278/521] Client Python update by KubeVirt Prow build 1540286951783927808 --- README.md | 3 +- ...stanceMigrationPhaseTransitionTimestamp.md | 11 ++ ...V1VirtualMachineInstanceMigrationStatus.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + ...ce_migration_phase_transition_timestamp.py | 153 ++++++++++++++++++ ...rtual_machine_instance_migration_status.py | 34 +++- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...ce_migration_phase_transition_timestamp.py | 44 +++++ 14 files changed, 252 insertions(+), 9 deletions(-) create mode 100644 docs/V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp.md create mode 100644 kubevirt/models/v1_virtual_machine_instance_migration_phase_transition_timestamp.py create mode 100644 test/test_v1_virtual_machine_instance_migration_phase_transition_timestamp.py diff --git a/README.md b/README.md index d14aefc1..6548ac2d 100644 --- a/README.md +++ b/README.md @@ -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: v0.54.0-162-g75674879e +- Package version: v0.54.0-273-g0b8aeaf12 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -524,6 +524,7 @@ Class | Method | HTTP request | Description - [V1VirtualMachineInstanceMigration](docs/V1VirtualMachineInstanceMigration.md) - [V1VirtualMachineInstanceMigrationCondition](docs/V1VirtualMachineInstanceMigrationCondition.md) - [V1VirtualMachineInstanceMigrationList](docs/V1VirtualMachineInstanceMigrationList.md) + - [V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp](docs/V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp.md) - [V1VirtualMachineInstanceMigrationSpec](docs/V1VirtualMachineInstanceMigrationSpec.md) - [V1VirtualMachineInstanceMigrationState](docs/V1VirtualMachineInstanceMigrationState.md) - [V1VirtualMachineInstanceMigrationStatus](docs/V1VirtualMachineInstanceMigrationStatus.md) diff --git a/docs/V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp.md b/docs/V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp.md new file mode 100644 index 00000000..999f2a95 --- /dev/null +++ b/docs/V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp.md @@ -0,0 +1,11 @@ +# V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**phase** | **str** | Phase is the status of the VirtualMachineInstanceMigrationPhase in kubernetes world. It is not the VirtualMachineInstanceMigrationPhase status, but partially correlates to it. | [optional] +**phase_transition_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | PhaseTransitionTimestamp is the timestamp of when the phase change occurred | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceMigrationStatus.md b/docs/V1VirtualMachineInstanceMigrationStatus.md index 618ec5f5..4c8aa2c1 100644 --- a/docs/V1VirtualMachineInstanceMigrationStatus.md +++ b/docs/V1VirtualMachineInstanceMigrationStatus.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **conditions** | [**list[V1VirtualMachineInstanceMigrationCondition]**](V1VirtualMachineInstanceMigrationCondition.md) | | [optional] **phase** | **str** | | [optional] +**phase_transition_timestamps** | [**list[V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp]**](V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp.md) | PhaseTransitionTimestamp is the timestamp of when the last phase change occurred | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index b3a37d57..c2a1f2d3 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.54.0-162-g75674879e" + release_note="Auto-generated client v0.54.0-273-g0b8aeaf12" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 75f148d1..02e30d01 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -654,6 +654,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_virtual_machine_instance_migration_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_migration_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceMigrationList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_migration_phase_transition_timestamp.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_migration_phase_transition_timestamp.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_migration_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_migration_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceMigrationSpec.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index e03cc4d6..1ec44efe 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -225,6 +225,7 @@ from .models.v1_virtual_machine_instance_migration import V1VirtualMachineInstanceMigration from .models.v1_virtual_machine_instance_migration_condition import V1VirtualMachineInstanceMigrationCondition from .models.v1_virtual_machine_instance_migration_list import V1VirtualMachineInstanceMigrationList +from .models.v1_virtual_machine_instance_migration_phase_transition_timestamp import V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp from .models.v1_virtual_machine_instance_migration_spec import V1VirtualMachineInstanceMigrationSpec from .models.v1_virtual_machine_instance_migration_state import V1VirtualMachineInstanceMigrationState from .models.v1_virtual_machine_instance_migration_status import V1VirtualMachineInstanceMigrationStatus diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 5dd7f54f..d5106e51 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.54.0-162-g75674879e/python' + self.user_agent = 'Swagger-Codegen/v0.54.0-273-g0b8aeaf12/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 1b1eb342..e457c554 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.54.0-162-g75674879e".\ + "SDK Package Version: v0.54.0-273-g0b8aeaf12".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 0a0d4fcf..d0e8b920 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -225,6 +225,7 @@ from .v1_virtual_machine_instance_migration import V1VirtualMachineInstanceMigration from .v1_virtual_machine_instance_migration_condition import V1VirtualMachineInstanceMigrationCondition from .v1_virtual_machine_instance_migration_list import V1VirtualMachineInstanceMigrationList +from .v1_virtual_machine_instance_migration_phase_transition_timestamp import V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp from .v1_virtual_machine_instance_migration_spec import V1VirtualMachineInstanceMigrationSpec from .v1_virtual_machine_instance_migration_state import V1VirtualMachineInstanceMigrationState from .v1_virtual_machine_instance_migration_status import V1VirtualMachineInstanceMigrationStatus diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_phase_transition_timestamp.py b/kubevirt/models/v1_virtual_machine_instance_migration_phase_transition_timestamp.py new file mode 100644 index 00000000..0e4c2585 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_migration_phase_transition_timestamp.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'phase': 'str', + 'phase_transition_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time' + } + + attribute_map = { + 'phase': 'phase', + 'phase_transition_timestamp': 'phaseTransitionTimestamp' + } + + def __init__(self, phase=None, phase_transition_timestamp=None): + """ + V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp - a model defined in Swagger + """ + + self._phase = None + self._phase_transition_timestamp = None + + if phase is not None: + self.phase = phase + if phase_transition_timestamp is not None: + self.phase_transition_timestamp = phase_transition_timestamp + + @property + def phase(self): + """ + Gets the phase of this V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp. + Phase is the status of the VirtualMachineInstanceMigrationPhase in kubernetes world. It is not the VirtualMachineInstanceMigrationPhase status, but partially correlates to it. + + :return: The phase of this V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """ + Sets the phase of this V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp. + Phase is the status of the VirtualMachineInstanceMigrationPhase in kubernetes world. It is not the VirtualMachineInstanceMigrationPhase status, but partially correlates to it. + + :param phase: The phase of this V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp. + :type: str + """ + + self._phase = phase + + @property + def phase_transition_timestamp(self): + """ + Gets the phase_transition_timestamp of this V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp. + PhaseTransitionTimestamp is the timestamp of when the phase change occurred + + :return: The phase_transition_timestamp of this V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp. + :rtype: K8sIoApimachineryPkgApisMetaV1Time + """ + return self._phase_transition_timestamp + + @phase_transition_timestamp.setter + def phase_transition_timestamp(self, phase_transition_timestamp): + """ + Sets the phase_transition_timestamp of this V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp. + PhaseTransitionTimestamp is the timestamp of when the phase change occurred + + :param phase_transition_timestamp: The phase_transition_timestamp of this V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp. + :type: K8sIoApimachineryPkgApisMetaV1Time + """ + + self._phase_transition_timestamp = phase_transition_timestamp + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_status.py b/kubevirt/models/v1_virtual_machine_instance_migration_status.py index e50fe360..b68c0d11 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_status.py @@ -32,26 +32,31 @@ class V1VirtualMachineInstanceMigrationStatus(object): """ swagger_types = { 'conditions': 'list[V1VirtualMachineInstanceMigrationCondition]', - 'phase': 'str' + 'phase': 'str', + 'phase_transition_timestamps': 'list[V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp]' } attribute_map = { 'conditions': 'conditions', - 'phase': 'phase' + 'phase': 'phase', + 'phase_transition_timestamps': 'phaseTransitionTimestamps' } - def __init__(self, conditions=None, phase=None): + def __init__(self, conditions=None, phase=None, phase_transition_timestamps=None): """ V1VirtualMachineInstanceMigrationStatus - a model defined in Swagger """ self._conditions = None self._phase = None + self._phase_transition_timestamps = None if conditions is not None: self.conditions = conditions if phase is not None: self.phase = phase + if phase_transition_timestamps is not None: + self.phase_transition_timestamps = phase_transition_timestamps @property def conditions(self): @@ -95,6 +100,29 @@ def phase(self, phase): self._phase = phase + @property + def phase_transition_timestamps(self): + """ + Gets the phase_transition_timestamps of this V1VirtualMachineInstanceMigrationStatus. + PhaseTransitionTimestamp is the timestamp of when the last phase change occurred + + :return: The phase_transition_timestamps of this V1VirtualMachineInstanceMigrationStatus. + :rtype: list[V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp] + """ + return self._phase_transition_timestamps + + @phase_transition_timestamps.setter + def phase_transition_timestamps(self, phase_transition_timestamps): + """ + Sets the phase_transition_timestamps of this V1VirtualMachineInstanceMigrationStatus. + PhaseTransitionTimestamp is the timestamp of when the last phase change occurred + + :param phase_transition_timestamps: The phase_transition_timestamps of this V1VirtualMachineInstanceMigrationStatus. + :type: list[V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp] + """ + + self._phase_transition_timestamps = phase_transition_timestamps + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 752ad342..93884984 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.54.0-162-g75674879e" +VERSION = "v0.54.0-273-g0b8aeaf12" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 38d687ec..0377f6d9 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.54.0-162-g75674879e" +"packageVersion": "v0.54.0-273-g0b8aeaf12" } diff --git a/test/test_v1_virtual_machine_instance_migration_phase_transition_timestamp.py b/test/test_v1_virtual_machine_instance_migration_phase_transition_timestamp.py new file mode 100644 index 00000000..55a66825 --- /dev/null +++ b/test/test_v1_virtual_machine_instance_migration_phase_transition_timestamp.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_migration_phase_transition_timestamp import V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp + + +class TestV1VirtualMachineInstanceMigrationPhaseTransitionTimestamp(unittest.TestCase): + """ V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceMigrationPhaseTransitionTimestamp(self): + """ + Test V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_migration_phase_transition_timestamp.V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp() + pass + + +if __name__ == '__main__': + unittest.main() From 2c71bf522adff8ae9cbf8a0dd3eb723f04e5a497 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 1 Jul 2022 19:52:21 +0000 Subject: [PATCH 279/521] Client Python update by KubeVirt Prow build 1542948707811463168 --- README.md | 2 +- docs/V1FlavorMatcher.md | 1 + docs/V1PreferenceMatcher.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_flavor_matcher.py | 34 +++++++++++++++++++++--- kubevirt/models/v1_preference_matcher.py | 34 +++++++++++++++++++++--- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 70 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 6548ac2d..b79aae78 100644 --- a/README.md +++ b/README.md @@ -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: v0.54.0-273-g0b8aeaf12 +- Package version: v0.54.0-349-g39b7b1353 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1FlavorMatcher.md b/docs/V1FlavorMatcher.md index 3c80525d..2d1521d1 100644 --- a/docs/V1FlavorMatcher.md +++ b/docs/V1FlavorMatcher.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **kind** | **str** | Kind specifies which flavor resource is referenced. Allowed values are: \"VirtualMachineFlavor\" and \"VirtualMachineClusterFlavor\". If not specified, \"VirtualMachineClusterFlavor\" is used by default. | [optional] **name** | **str** | Name is the name of the VirtualMachineFlavor or VirtualMachineClusterFlavor | +**revision_name** | **str** | RevisionName specifies a ControllerRevision containing a specific copy of the VirtualMachineFlavor or VirtualMachineClusterFlavor to be used. This is initially captured the first time the flavor is applied to the VirtualMachineInstance. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1PreferenceMatcher.md b/docs/V1PreferenceMatcher.md index 8a5d1908..e41995e2 100644 --- a/docs/V1PreferenceMatcher.md +++ b/docs/V1PreferenceMatcher.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **kind** | **str** | Kind specifies which preference resource is referenced. Allowed values are: \"VirtualMachinePreference\" and \"VirtualMachineClusterPreference\". If not specified, \"VirtualMachineClusterPreference\" is used by default. | [optional] **name** | **str** | Name is the name of the VirtualMachinePreference or VirtualMachineClusterPreference | +**revision_name** | **str** | RevisionName specifies a ControllerRevision containing a specific copy of the VirtualMachinePreference or VirtualMachineClusterPreference to be used. This is initially captured the first time the flavor is applied to the VirtualMachineInstance. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index c2a1f2d3..d163f36a 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.54.0-273-g0b8aeaf12" + release_note="Auto-generated client v0.54.0-349-g39b7b1353" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index d5106e51..4f5f75ac 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.54.0-273-g0b8aeaf12/python' + self.user_agent = 'Swagger-Codegen/v0.54.0-349-g39b7b1353/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index e457c554..dd23438f 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.54.0-273-g0b8aeaf12".\ + "SDK Package Version: v0.54.0-349-g39b7b1353".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_flavor_matcher.py b/kubevirt/models/v1_flavor_matcher.py index fac9e8fa..92537626 100644 --- a/kubevirt/models/v1_flavor_matcher.py +++ b/kubevirt/models/v1_flavor_matcher.py @@ -32,25 +32,30 @@ class V1FlavorMatcher(object): """ swagger_types = { 'kind': 'str', - 'name': 'str' + 'name': 'str', + 'revision_name': 'str' } attribute_map = { 'kind': 'kind', - 'name': 'name' + 'name': 'name', + 'revision_name': 'revisionName' } - def __init__(self, kind=None, name=None): + def __init__(self, kind=None, name=None, revision_name=None): """ V1FlavorMatcher - a model defined in Swagger """ self._kind = None self._name = None + self._revision_name = None if kind is not None: self.kind = kind self.name = name + if revision_name is not None: + self.revision_name = revision_name @property def kind(self): @@ -100,6 +105,29 @@ def name(self, name): self._name = name + @property + def revision_name(self): + """ + Gets the revision_name of this V1FlavorMatcher. + RevisionName specifies a ControllerRevision containing a specific copy of the VirtualMachineFlavor or VirtualMachineClusterFlavor to be used. This is initially captured the first time the flavor is applied to the VirtualMachineInstance. + + :return: The revision_name of this V1FlavorMatcher. + :rtype: str + """ + return self._revision_name + + @revision_name.setter + def revision_name(self, revision_name): + """ + Sets the revision_name of this V1FlavorMatcher. + RevisionName specifies a ControllerRevision containing a specific copy of the VirtualMachineFlavor or VirtualMachineClusterFlavor to be used. This is initially captured the first time the flavor is applied to the VirtualMachineInstance. + + :param revision_name: The revision_name of this V1FlavorMatcher. + :type: str + """ + + self._revision_name = revision_name + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_preference_matcher.py b/kubevirt/models/v1_preference_matcher.py index 3209e4ea..7593fee9 100644 --- a/kubevirt/models/v1_preference_matcher.py +++ b/kubevirt/models/v1_preference_matcher.py @@ -32,25 +32,30 @@ class V1PreferenceMatcher(object): """ swagger_types = { 'kind': 'str', - 'name': 'str' + 'name': 'str', + 'revision_name': 'str' } attribute_map = { 'kind': 'kind', - 'name': 'name' + 'name': 'name', + 'revision_name': 'revisionName' } - def __init__(self, kind=None, name=None): + def __init__(self, kind=None, name=None, revision_name=None): """ V1PreferenceMatcher - a model defined in Swagger """ self._kind = None self._name = None + self._revision_name = None if kind is not None: self.kind = kind self.name = name + if revision_name is not None: + self.revision_name = revision_name @property def kind(self): @@ -100,6 +105,29 @@ def name(self, name): self._name = name + @property + def revision_name(self): + """ + Gets the revision_name of this V1PreferenceMatcher. + RevisionName specifies a ControllerRevision containing a specific copy of the VirtualMachinePreference or VirtualMachineClusterPreference to be used. This is initially captured the first time the flavor is applied to the VirtualMachineInstance. + + :return: The revision_name of this V1PreferenceMatcher. + :rtype: str + """ + return self._revision_name + + @revision_name.setter + def revision_name(self, revision_name): + """ + Sets the revision_name of this V1PreferenceMatcher. + RevisionName specifies a ControllerRevision containing a specific copy of the VirtualMachinePreference or VirtualMachineClusterPreference to be used. This is initially captured the first time the flavor is applied to the VirtualMachineInstance. + + :param revision_name: The revision_name of this V1PreferenceMatcher. + :type: str + """ + + self._revision_name = revision_name + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 93884984..da5a7aeb 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.54.0-273-g0b8aeaf12" +VERSION = "v0.54.0-349-g39b7b1353" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 0377f6d9..f89a812c 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.54.0-273-g0b8aeaf12" +"packageVersion": "v0.54.0-349-g39b7b1353" } From 3fb4a8a18a7e53a3f88f1f0350e1ed578bc63b5f Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Mon, 4 Jul 2022 10:41:37 +0000 Subject: [PATCH 280/521] Client Python update by KubeVirt Prow build 1543891513237311488 --- README.md | 16 +- docs/DefaultApi.md | 530 +++++++ docs/V1alpha1VirtualMachineClone.md | 14 + docs/V1alpha1VirtualMachineCloneList.md | 13 + docs/V1alpha1VirtualMachineCloneSpec.md | 15 + docs/V1alpha1VirtualMachineCloneStatus.md | 15 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 12 + kubevirt/__init__.py | 4 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 1308 +++++++++++++++-- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 4 + .../models/v1alpha1_virtual_machine_clone.py | 232 +++ .../v1alpha1_virtual_machine_clone_list.py | 206 +++ .../v1alpha1_virtual_machine_clone_spec.py | 260 ++++ .../v1alpha1_virtual_machine_clone_status.py | 253 ++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 80 + test/test_v1alpha1_virtual_machine_clone.py | 44 + ...est_v1alpha1_virtual_machine_clone_list.py | 44 + ...est_v1alpha1_virtual_machine_clone_spec.py | 44 + ...t_v1alpha1_virtual_machine_clone_status.py | 44 + 24 files changed, 3046 insertions(+), 102 deletions(-) create mode 100644 docs/V1alpha1VirtualMachineClone.md create mode 100644 docs/V1alpha1VirtualMachineCloneList.md create mode 100644 docs/V1alpha1VirtualMachineCloneSpec.md create mode 100644 docs/V1alpha1VirtualMachineCloneStatus.md create mode 100644 kubevirt/models/v1alpha1_virtual_machine_clone.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_clone_list.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_clone_spec.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_clone_status.py create mode 100644 test/test_v1alpha1_virtual_machine_clone.py create mode 100644 test/test_v1alpha1_virtual_machine_clone_list.py create mode 100644 test/test_v1alpha1_virtual_machine_clone_spec.py create mode 100644 test/test_v1alpha1_virtual_machine_clone_status.py diff --git a/README.md b/README.md index b79aae78..3aeac8d8 100644 --- a/README.md +++ b/README.md @@ -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: v0.54.0-349-g39b7b1353 +- Package version: v0.54.0-372-gf8423f7a4 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -83,6 +83,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**create_namespaced_virtual_machine_restore**](docs/DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**create_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**create_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | +*DefaultApi* | [**create_virtual_machine_clone**](docs/DefaultApi.md#create_virtual_machine_clone) | **POST** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | *DefaultApi* | [**create_virtual_machine_cluster_flavor**](docs/DefaultApi.md#create_virtual_machine_cluster_flavor) | **POST** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | *DefaultApi* | [**create_virtual_machine_cluster_preference**](docs/DefaultApi.md#create_virtual_machine_cluster_preference) | **POST** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | *DefaultApi* | [**delete_collection_migration_policy**](docs/DefaultApi.md#delete_collection_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | @@ -99,6 +100,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_collection_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | +*DefaultApi* | [**delete_collection_virtual_machine_clone**](docs/DefaultApi.md#delete_collection_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | *DefaultApi* | [**delete_collection_virtual_machine_cluster_flavor**](docs/DefaultApi.md#delete_collection_virtual_machine_cluster_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | *DefaultApi* | [**delete_collection_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_collection_virtual_machine_cluster_preference) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | *DefaultApi* | [**delete_migration_policy**](docs/DefaultApi.md#delete_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | @@ -115,10 +117,12 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_virtual_machine_clone**](docs/DefaultApi.md#delete_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_virtual_machine_cluster_flavor**](docs/DefaultApi.md#delete_virtual_machine_cluster_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**func1**](docs/DefaultApi.md#func1) | **GET** /healthz | *DefaultApi* | [**func7**](docs/DefaultApi.md#func7) | **GET** /openapi/v2 | +*DefaultApi* | [**get_api_group_clone_kubevirt_io**](docs/DefaultApi.md#get_api_group_clone_kubevirt_io) | **GET** /apis/clone.kubevirt.io/ | *DefaultApi* | [**get_api_group_export_kubevirt_io**](docs/DefaultApi.md#get_api_group_export_kubevirt_io) | **GET** /apis/export.kubevirt.io/ | *DefaultApi* | [**get_api_group_flavor_kubevirt_io**](docs/DefaultApi.md#get_api_group_flavor_kubevirt_io) | **GET** /apis/flavor.kubevirt.io/ | *DefaultApi* | [**get_api_group_kubevirt_io**](docs/DefaultApi.md#get_api_group_kubevirt_io) | **GET** /apis/kubevirt.io/ | @@ -126,6 +130,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**get_api_group_migrations_kubevirt_io**](docs/DefaultApi.md#get_api_group_migrations_kubevirt_io) | **GET** /apis/migrations.kubevirt.io/ | *DefaultApi* | [**get_api_group_pool_kubevirt_io**](docs/DefaultApi.md#get_api_group_pool_kubevirt_io) | **GET** /apis/pool.kubevirt.io/ | *DefaultApi* | [**get_api_group_snapshot_kubevirt_io**](docs/DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | +*DefaultApi* | [**get_api_resources_clone_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_clone_kubevirt_io_v1alpha1) | **GET** /apis/clone.kubevirt.io/v1alpha1/ | *DefaultApi* | [**get_api_resources_export_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_export_kubevirt_io_v1alpha1) | **GET** /apis/export.kubevirt.io/v1alpha1/ | *DefaultApi* | [**get_api_resources_flavor_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_flavor_kubevirt_io_v1alpha1) | **GET** /apis/flavor.kubevirt.io/v1alpha1/ | *DefaultApi* | [**get_api_resources_kubevirt_io_v1**](docs/DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | @@ -151,6 +156,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_namespaced_virtual_machine_restore**](docs/DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**list_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**list_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | +*DefaultApi* | [**list_virtual_machine_clone**](docs/DefaultApi.md#list_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | *DefaultApi* | [**list_virtual_machine_cluster_flavor**](docs/DefaultApi.md#list_virtual_machine_cluster_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | *DefaultApi* | [**list_virtual_machine_cluster_preference**](docs/DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | *DefaultApi* | [**list_virtual_machine_export_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_export_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1alpha1/virtualmachineexports | @@ -179,6 +185,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**patch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_virtual_machine_clone**](docs/DefaultApi.md#patch_virtual_machine_clone) | **PATCH** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_virtual_machine_cluster_flavor**](docs/DefaultApi.md#patch_virtual_machine_cluster_flavor) | **PATCH** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_virtual_machine_cluster_preference**](docs/DefaultApi.md#patch_virtual_machine_cluster_preference) | **PATCH** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_migration_policy**](docs/DefaultApi.md#read_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | @@ -195,6 +202,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**read_namespaced_virtual_machine_restore**](docs/DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_virtual_machine_clone**](docs/DefaultApi.md#read_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_virtual_machine_cluster_flavor**](docs/DefaultApi.md#read_virtual_machine_cluster_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_virtual_machine_cluster_preference**](docs/DefaultApi.md#read_virtual_machine_cluster_preference) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_migration_policy**](docs/DefaultApi.md#replace_migration_policy) | **PUT** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | @@ -211,6 +219,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**replace_namespaced_virtual_machine_restore**](docs/DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_virtual_machine_clone**](docs/DefaultApi.md#replace_virtual_machine_clone) | **PUT** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_virtual_machine_cluster_flavor**](docs/DefaultApi.md#replace_virtual_machine_cluster_flavor) | **PUT** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_virtual_machine_cluster_preference**](docs/DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**v1_check_health**](docs/DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | @@ -295,6 +304,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**watch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**watch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**watch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | +*DefaultApi* | [**watch_virtual_machine_clone_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_clone_list_for_all_namespaces) | **GET** /apis/clone.kubevirt.io/v1alpha1/watch/virtualmachineclones | *DefaultApi* | [**watch_virtual_machine_cluster_flavor_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_flavor_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineclusterflavors | *DefaultApi* | [**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineclusterpreferences | *DefaultApi* | [**watch_virtual_machine_export_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_export_list_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1alpha1/watch/virtualmachineexports | @@ -570,6 +580,10 @@ Class | Method | HTTP request | Description - [V1alpha1Selectors](docs/V1alpha1Selectors.md) - [V1alpha1SourceSpec](docs/V1alpha1SourceSpec.md) - [V1alpha1VirtualMachine](docs/V1alpha1VirtualMachine.md) + - [V1alpha1VirtualMachineClone](docs/V1alpha1VirtualMachineClone.md) + - [V1alpha1VirtualMachineCloneList](docs/V1alpha1VirtualMachineCloneList.md) + - [V1alpha1VirtualMachineCloneSpec](docs/V1alpha1VirtualMachineCloneSpec.md) + - [V1alpha1VirtualMachineCloneStatus](docs/V1alpha1VirtualMachineCloneStatus.md) - [V1alpha1VirtualMachineClusterFlavor](docs/V1alpha1VirtualMachineClusterFlavor.md) - [V1alpha1VirtualMachineClusterFlavorList](docs/V1alpha1VirtualMachineClusterFlavorList.md) - [V1alpha1VirtualMachineClusterPreference](docs/V1alpha1VirtualMachineClusterPreference.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 99ef49a7..35138b9a 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -18,6 +18,7 @@ Method | HTTP request | Description [**create_namespaced_virtual_machine_restore**](DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**create_namespaced_virtual_machine_snapshot**](DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**create_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | +[**create_virtual_machine_clone**](DefaultApi.md#create_virtual_machine_clone) | **POST** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | [**create_virtual_machine_cluster_flavor**](DefaultApi.md#create_virtual_machine_cluster_flavor) | **POST** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | [**create_virtual_machine_cluster_preference**](DefaultApi.md#create_virtual_machine_cluster_preference) | **POST** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | [**delete_collection_migration_policy**](DefaultApi.md#delete_collection_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | @@ -34,6 +35,7 @@ Method | HTTP request | Description [**delete_collection_namespaced_virtual_machine_restore**](DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**delete_collection_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**delete_collection_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | +[**delete_collection_virtual_machine_clone**](DefaultApi.md#delete_collection_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | [**delete_collection_virtual_machine_cluster_flavor**](DefaultApi.md#delete_collection_virtual_machine_cluster_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | [**delete_collection_virtual_machine_cluster_preference**](DefaultApi.md#delete_collection_virtual_machine_cluster_preference) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | [**delete_migration_policy**](DefaultApi.md#delete_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | @@ -50,10 +52,12 @@ Method | HTTP request | Description [**delete_namespaced_virtual_machine_restore**](DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_virtual_machine_clone**](DefaultApi.md#delete_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | [**delete_virtual_machine_cluster_flavor**](DefaultApi.md#delete_virtual_machine_cluster_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | [**delete_virtual_machine_cluster_preference**](DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | [**func1**](DefaultApi.md#func1) | **GET** /healthz | [**func7**](DefaultApi.md#func7) | **GET** /openapi/v2 | +[**get_api_group_clone_kubevirt_io**](DefaultApi.md#get_api_group_clone_kubevirt_io) | **GET** /apis/clone.kubevirt.io/ | [**get_api_group_export_kubevirt_io**](DefaultApi.md#get_api_group_export_kubevirt_io) | **GET** /apis/export.kubevirt.io/ | [**get_api_group_flavor_kubevirt_io**](DefaultApi.md#get_api_group_flavor_kubevirt_io) | **GET** /apis/flavor.kubevirt.io/ | [**get_api_group_kubevirt_io**](DefaultApi.md#get_api_group_kubevirt_io) | **GET** /apis/kubevirt.io/ | @@ -61,6 +65,7 @@ Method | HTTP request | Description [**get_api_group_migrations_kubevirt_io**](DefaultApi.md#get_api_group_migrations_kubevirt_io) | **GET** /apis/migrations.kubevirt.io/ | [**get_api_group_pool_kubevirt_io**](DefaultApi.md#get_api_group_pool_kubevirt_io) | **GET** /apis/pool.kubevirt.io/ | [**get_api_group_snapshot_kubevirt_io**](DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | +[**get_api_resources_clone_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_clone_kubevirt_io_v1alpha1) | **GET** /apis/clone.kubevirt.io/v1alpha1/ | [**get_api_resources_export_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_export_kubevirt_io_v1alpha1) | **GET** /apis/export.kubevirt.io/v1alpha1/ | [**get_api_resources_flavor_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_flavor_kubevirt_io_v1alpha1) | **GET** /apis/flavor.kubevirt.io/v1alpha1/ | [**get_api_resources_kubevirt_io_v1**](DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | @@ -86,6 +91,7 @@ Method | HTTP request | Description [**list_namespaced_virtual_machine_restore**](DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**list_namespaced_virtual_machine_snapshot**](DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**list_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | +[**list_virtual_machine_clone**](DefaultApi.md#list_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | [**list_virtual_machine_cluster_flavor**](DefaultApi.md#list_virtual_machine_cluster_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | [**list_virtual_machine_cluster_preference**](DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | [**list_virtual_machine_export_for_all_namespaces**](DefaultApi.md#list_virtual_machine_export_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1alpha1/virtualmachineexports | @@ -114,6 +120,7 @@ Method | HTTP request | Description [**patch_namespaced_virtual_machine_restore**](DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_snapshot**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_virtual_machine_clone**](DefaultApi.md#patch_virtual_machine_clone) | **PATCH** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | [**patch_virtual_machine_cluster_flavor**](DefaultApi.md#patch_virtual_machine_cluster_flavor) | **PATCH** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | [**patch_virtual_machine_cluster_preference**](DefaultApi.md#patch_virtual_machine_cluster_preference) | **PATCH** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | [**read_migration_policy**](DefaultApi.md#read_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | @@ -130,6 +137,7 @@ Method | HTTP request | Description [**read_namespaced_virtual_machine_restore**](DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_snapshot**](DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | +[**read_virtual_machine_clone**](DefaultApi.md#read_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | [**read_virtual_machine_cluster_flavor**](DefaultApi.md#read_virtual_machine_cluster_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | [**read_virtual_machine_cluster_preference**](DefaultApi.md#read_virtual_machine_cluster_preference) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | [**replace_migration_policy**](DefaultApi.md#replace_migration_policy) | **PUT** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | @@ -146,6 +154,7 @@ Method | HTTP request | Description [**replace_namespaced_virtual_machine_restore**](DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_snapshot**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_virtual_machine_clone**](DefaultApi.md#replace_virtual_machine_clone) | **PUT** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | [**replace_virtual_machine_cluster_flavor**](DefaultApi.md#replace_virtual_machine_cluster_flavor) | **PUT** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | [**replace_virtual_machine_cluster_preference**](DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | [**v1_check_health**](DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | @@ -230,6 +239,7 @@ Method | HTTP request | Description [**watch_namespaced_virtual_machine_restore**](DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**watch_namespaced_virtual_machine_snapshot**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**watch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | +[**watch_virtual_machine_clone_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_clone_list_for_all_namespaces) | **GET** /apis/clone.kubevirt.io/v1alpha1/watch/virtualmachineclones | [**watch_virtual_machine_cluster_flavor_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_flavor_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineclusterflavors | [**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineclusterpreferences | [**watch_virtual_machine_export_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_export_list_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1alpha1/watch/virtualmachineexports | @@ -930,6 +940,53 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **create_virtual_machine_clone** +> V1alpha1VirtualMachineClone create_virtual_machine_clone(body) + + + +Create a VirtualMachineClone object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +body = kubevirt.V1alpha1VirtualMachineClone() # V1alpha1VirtualMachineClone | + +try: + api_response = api_instance.create_virtual_machine_clone(body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->create_virtual_machine_clone: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1alpha1VirtualMachineClone**](V1alpha1VirtualMachineClone.md)| | + +### Return type + +[**V1alpha1VirtualMachineClone**](V1alpha1VirtualMachineClone.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **create_virtual_machine_cluster_flavor** > V1alpha1VirtualMachineClusterFlavor create_virtual_machine_cluster_flavor(body) @@ -1878,6 +1935,67 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_collection_virtual_machine_clone** +> K8sIoApimachineryPkgApisMetaV1Status delete_collection_virtual_machine_clone(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Delete a collection of VirtualMachineClone objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_virtual_machine_clone(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->delete_collection_virtual_machine_clone: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_collection_virtual_machine_cluster_flavor** > K8sIoApimachineryPkgApisMetaV1Status delete_collection_virtual_machine_cluster_flavor(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -2796,6 +2914,61 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_virtual_machine_clone** +> K8sIoApimachineryPkgApisMetaV1Status delete_virtual_machine_clone(name, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + + + +Delete a VirtualMachineClone object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +body = kubevirt.K8sIoApimachineryPkgApisMetaV1DeleteOptions() # K8sIoApimachineryPkgApisMetaV1DeleteOptions | +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + +try: + api_response = api_instance.delete_virtual_machine_clone(name, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->delete_virtual_machine_clone: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **body** | [**K8sIoApimachineryPkgApisMetaV1DeleteOptions**](K8sIoApimachineryPkgApisMetaV1DeleteOptions.md)| | + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_virtual_machine_cluster_flavor** > K8sIoApimachineryPkgApisMetaV1Status delete_virtual_machine_cluster_flavor(name, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -2988,6 +3161,49 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_api_group_clone_kubevirt_io** +> K8sIoApimachineryPkgApisMetaV1APIGroup get_api_group_clone_kubevirt_io() + + + +Get a KubeVirt API group + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.get_api_group_clone_kubevirt_io() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->get_api_group_clone_kubevirt_io: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1APIGroup**](K8sIoApimachineryPkgApisMetaV1APIGroup.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_api_group_export_kubevirt_io** > K8sIoApimachineryPkgApisMetaV1APIGroup get_api_group_export_kubevirt_io() @@ -3289,6 +3505,49 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_api_resources_clone_kubevirt_io_v1alpha1** +> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_clone_kubevirt_io_v1alpha1() + + + +Get KubeVirt API Resources + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.get_api_resources_clone_kubevirt_io_v1alpha1() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->get_api_resources_clone_kubevirt_io_v1alpha1: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1APIResourceList**](K8sIoApimachineryPkgApisMetaV1APIResourceList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_api_resources_export_kubevirt_io_v1alpha1** > K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_export_kubevirt_io_v1alpha1() @@ -4657,6 +4916,67 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **list_virtual_machine_clone** +> V1alpha1VirtualMachineCloneList list_virtual_machine_clone(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Get a list of VirtualMachineClone objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_virtual_machine_clone(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->list_virtual_machine_clone: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1VirtualMachineCloneList**](V1alpha1VirtualMachineCloneList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **list_virtual_machine_cluster_flavor** > V1alpha1VirtualMachineClusterFlavorList list_virtual_machine_cluster_flavor(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -6223,6 +6543,55 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **patch_virtual_machine_clone** +> V1alpha1VirtualMachineClone patch_virtual_machine_clone(name, body) + + + +Patch a VirtualMachineClone object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | + +try: + api_response = api_instance.patch_virtual_machine_clone(name, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->patch_virtual_machine_clone: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **body** | [**K8sIoApimachineryPkgApisMetaV1Patch**](K8sIoApimachineryPkgApisMetaV1Patch.md)| | + +### Return type + +[**V1alpha1VirtualMachineClone**](V1alpha1VirtualMachineClone.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **patch_virtual_machine_cluster_flavor** > V1alpha1VirtualMachineClusterFlavor patch_virtual_machine_cluster_flavor(name, body) @@ -7061,6 +7430,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **read_virtual_machine_clone** +> V1alpha1VirtualMachineClone read_virtual_machine_clone(name, exact=exact, export=export) + + + +Get a VirtualMachineClone object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_virtual_machine_clone(name, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->read_virtual_machine_clone: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1alpha1VirtualMachineClone**](V1alpha1VirtualMachineClone.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **read_virtual_machine_cluster_flavor** > V1alpha1VirtualMachineClusterFlavor read_virtual_machine_cluster_flavor(name, exact=exact, export=export) @@ -7875,6 +8295,55 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **replace_virtual_machine_clone** +> V1alpha1VirtualMachineClone replace_virtual_machine_clone(name, body) + + + +Update a VirtualMachineClone object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +body = kubevirt.V1alpha1VirtualMachineClone() # V1alpha1VirtualMachineClone | + +try: + api_response = api_instance.replace_virtual_machine_clone(name, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->replace_virtual_machine_clone: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **body** | [**V1alpha1VirtualMachineClone**](V1alpha1VirtualMachineClone.md)| | + +### Return type + +[**V1alpha1VirtualMachineClone**](V1alpha1VirtualMachineClone.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **replace_virtual_machine_cluster_flavor** > V1alpha1VirtualMachineClusterFlavor replace_virtual_machine_cluster_flavor(name, body) @@ -12111,6 +12580,67 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **watch_virtual_machine_clone_list_for_all_namespaces** +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_clone_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Watch a VirtualMachineCloneList object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_virtual_machine_clone_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->watch_virtual_machine_clone_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **watch_virtual_machine_cluster_flavor_list_for_all_namespaces** > K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_cluster_flavor_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) diff --git a/docs/V1alpha1VirtualMachineClone.md b/docs/V1alpha1VirtualMachineClone.md new file mode 100644 index 00000000..52f68e54 --- /dev/null +++ b/docs/V1alpha1VirtualMachineClone.md @@ -0,0 +1,14 @@ +# V1alpha1VirtualMachineClone + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha1VirtualMachineCloneSpec**](V1alpha1VirtualMachineCloneSpec.md) | | +**status** | [**V1alpha1VirtualMachineCloneStatus**](V1alpha1VirtualMachineCloneStatus.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineCloneList.md b/docs/V1alpha1VirtualMachineCloneList.md new file mode 100644 index 00000000..05416608 --- /dev/null +++ b/docs/V1alpha1VirtualMachineCloneList.md @@ -0,0 +1,13 @@ +# V1alpha1VirtualMachineCloneList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list[V1alpha1VirtualMachineClone]**](V1alpha1VirtualMachineClone.md) | | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineCloneSpec.md b/docs/V1alpha1VirtualMachineCloneSpec.md new file mode 100644 index 00000000..f85a9429 --- /dev/null +++ b/docs/V1alpha1VirtualMachineCloneSpec.md @@ -0,0 +1,15 @@ +# V1alpha1VirtualMachineCloneSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**annotation_filters** | **list[str]** | | [optional] +**label_filters** | **list[str]** | | [optional] +**new_mac_addresses** | **dict(str, str)** | NewMacAddresses manually sets that target interfaces' mac addresses. The key is the interface name and the value is the new mac address. If this field is not specified, a new MAC address will be generated automatically, as for any interface that is not included in this map. | [optional] +**new_sm_bios_serial** | **str** | NewSMBiosSerial manually sets that target's SMbios serial. If this field is not specified, a new serial will be generated automatically. | [optional] +**source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | | +**target** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | If the target is not provided, a random name would be generated for the target. The target's name can be viewed by inspecting status \"TargetName\" field below. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineCloneStatus.md b/docs/V1alpha1VirtualMachineCloneStatus.md new file mode 100644 index 00000000..8753eca4 --- /dev/null +++ b/docs/V1alpha1VirtualMachineCloneStatus.md @@ -0,0 +1,15 @@ +# V1alpha1VirtualMachineCloneStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**list[V1alpha1Condition]**](V1alpha1Condition.md) | | [optional] +**creation_time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | | [optional] +**phase** | **str** | | [optional] +**restore_name** | **str** | | [optional] +**snapshot_name** | **str** | | [optional] +**target_name** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index d163f36a..30e78b6d 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.54.0-349-g39b7b1353" + release_note="Auto-generated client v0.54.0-372-gf8423f7a4" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 02e30d01..96c43d67 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -792,6 +792,18 @@ 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/v1alpha1_virtual_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachine.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_clone.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_clone.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineClone.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_clone_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_clone_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineCloneList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_clone_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_clone_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineCloneSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_clone_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_clone_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineCloneStatus.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_cluster_flavor.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_cluster_flavor.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineClusterFlavor.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 1ec44efe..9755e4f9 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -271,6 +271,10 @@ from .models.v1alpha1_selectors import V1alpha1Selectors from .models.v1alpha1_source_spec import V1alpha1SourceSpec from .models.v1alpha1_virtual_machine import V1alpha1VirtualMachine +from .models.v1alpha1_virtual_machine_clone import V1alpha1VirtualMachineClone +from .models.v1alpha1_virtual_machine_clone_list import V1alpha1VirtualMachineCloneList +from .models.v1alpha1_virtual_machine_clone_spec import V1alpha1VirtualMachineCloneSpec +from .models.v1alpha1_virtual_machine_clone_status import V1alpha1VirtualMachineCloneStatus from .models.v1alpha1_virtual_machine_cluster_flavor import V1alpha1VirtualMachineClusterFlavor from .models.v1alpha1_virtual_machine_cluster_flavor_list import V1alpha1VirtualMachineClusterFlavorList from .models.v1alpha1_virtual_machine_cluster_preference import V1alpha1VirtualMachineClusterPreference diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 4f5f75ac..373f798c 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.54.0-349-g39b7b1353/python' + self.user_agent = 'Swagger-Codegen/v0.54.0-372-gf8423f7a4/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index a1a9eed7..63528416 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -1587,6 +1587,110 @@ def create_namespaced_virtual_machine_snapshot_content_with_http_info(self, body _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def create_virtual_machine_clone(self, body, **kwargs): + """ + Create a VirtualMachineClone object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_virtual_machine_clone(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1VirtualMachineClone body: (required) + :return: V1alpha1VirtualMachineClone + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_virtual_machine_clone_with_http_info(body, **kwargs) + else: + (data) = self.create_virtual_machine_clone_with_http_info(body, **kwargs) + return data + + def create_virtual_machine_clone_with_http_info(self, body, **kwargs): + """ + Create a VirtualMachineClone object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_virtual_machine_clone_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1VirtualMachineClone body: (required) + :return: V1alpha1VirtualMachineClone + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_virtual_machine_clone" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_virtual_machine_clone`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineClone', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def create_virtual_machine_cluster_flavor(self, body, **kwargs): """ Create a VirtualMachineClusterFlavor object. @@ -3545,6 +3649,131 @@ def delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def delete_collection_virtual_machine_clone(self, **kwargs): + """ + Delete a collection of VirtualMachineClone objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_virtual_machine_clone(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_virtual_machine_clone_with_http_info(**kwargs) + else: + (data) = self.delete_collection_virtual_machine_clone_with_http_info(**kwargs) + return data + + def delete_collection_virtual_machine_clone_with_http_info(self, **kwargs): + """ + Delete a collection of VirtualMachineClone objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_virtual_machine_clone_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_virtual_machine_clone" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def delete_collection_virtual_machine_cluster_flavor(self, **kwargs): """ Delete a collection of VirtualMachineClusterFlavor objects. @@ -5608,16 +5837,16 @@ def delete_namespaced_virtual_machine_snapshot_content_with_http_info(self, name _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_virtual_machine_cluster_flavor(self, name, body, **kwargs): + def delete_virtual_machine_clone(self, name, body, **kwargs): """ - Delete a VirtualMachineClusterFlavor object. + Delete a VirtualMachineClone object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_virtual_machine_cluster_flavor(name, body, callback=callback_function) + >>> thread = api.delete_virtual_machine_clone(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5632,21 +5861,21 @@ def delete_virtual_machine_cluster_flavor(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_virtual_machine_cluster_flavor_with_http_info(name, body, **kwargs) + return self.delete_virtual_machine_clone_with_http_info(name, body, **kwargs) else: - (data) = self.delete_virtual_machine_cluster_flavor_with_http_info(name, body, **kwargs) + (data) = self.delete_virtual_machine_clone_with_http_info(name, body, **kwargs) return data - def delete_virtual_machine_cluster_flavor_with_http_info(self, name, body, **kwargs): + def delete_virtual_machine_clone_with_http_info(self, name, body, **kwargs): """ - Delete a VirtualMachineClusterFlavor object. + Delete a VirtualMachineClone object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_virtual_machine_cluster_flavor_with_http_info(name, body, callback=callback_function) + >>> thread = api.delete_virtual_machine_clone_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5671,16 +5900,16 @@ def delete_virtual_machine_cluster_flavor_with_http_info(self, name, body, **kwa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_virtual_machine_cluster_flavor" % key + " to method delete_virtual_machine_clone" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_virtual_machine_cluster_flavor`") + raise ValueError("Missing the required parameter `name` when calling `delete_virtual_machine_clone`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_virtual_machine_cluster_flavor`") + raise ValueError("Missing the required parameter `body` when calling `delete_virtual_machine_clone`") collection_formats = {} @@ -5716,7 +5945,7 @@ def delete_virtual_machine_cluster_flavor_with_http_info(self, name, body, **kwa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -5731,16 +5960,16 @@ def delete_virtual_machine_cluster_flavor_with_http_info(self, name, body, **kwa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_virtual_machine_cluster_preference(self, name, body, **kwargs): + def delete_virtual_machine_cluster_flavor(self, name, body, **kwargs): """ - Delete a VirtualMachineClusterPreference object. + Delete a VirtualMachineClusterFlavor object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_virtual_machine_cluster_preference(name, body, callback=callback_function) + >>> thread = api.delete_virtual_machine_cluster_flavor(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5755,21 +5984,21 @@ def delete_virtual_machine_cluster_preference(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_virtual_machine_cluster_preference_with_http_info(name, body, **kwargs) + return self.delete_virtual_machine_cluster_flavor_with_http_info(name, body, **kwargs) else: - (data) = self.delete_virtual_machine_cluster_preference_with_http_info(name, body, **kwargs) + (data) = self.delete_virtual_machine_cluster_flavor_with_http_info(name, body, **kwargs) return data - def delete_virtual_machine_cluster_preference_with_http_info(self, name, body, **kwargs): + def delete_virtual_machine_cluster_flavor_with_http_info(self, name, body, **kwargs): """ - Delete a VirtualMachineClusterPreference object. + Delete a VirtualMachineClusterFlavor object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_virtual_machine_cluster_preference_with_http_info(name, body, callback=callback_function) + >>> thread = api.delete_virtual_machine_cluster_flavor_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5794,16 +6023,16 @@ def delete_virtual_machine_cluster_preference_with_http_info(self, name, body, * if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_virtual_machine_cluster_preference" % key + " to method delete_virtual_machine_cluster_flavor" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_virtual_machine_cluster_preference`") + raise ValueError("Missing the required parameter `name` when calling `delete_virtual_machine_cluster_flavor`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_virtual_machine_cluster_preference`") + raise ValueError("Missing the required parameter `body` when calling `delete_virtual_machine_cluster_flavor`") collection_formats = {} @@ -5839,7 +6068,7 @@ def delete_virtual_machine_cluster_preference_with_http_info(self, name, body, * # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -5854,28 +6083,151 @@ def delete_virtual_machine_cluster_preference_with_http_info(self, name, body, * _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def func1(self, **kwargs): + def delete_virtual_machine_cluster_preference(self, name, body, **kwargs): """ - Health endpoint + Delete a VirtualMachineClusterPreference object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.func1(callback=callback_function) + >>> thread = api.delete_virtual_machine_cluster_preference(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :param str name: Name of the resource (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.func1_with_http_info(**kwargs) + return self.delete_virtual_machine_cluster_preference_with_http_info(name, body, **kwargs) else: - (data) = self.func1_with_http_info(**kwargs) + (data) = self.delete_virtual_machine_cluster_preference_with_http_info(name, body, **kwargs) + return data + + def delete_virtual_machine_cluster_preference_with_http_info(self, name, body, **kwargs): + """ + Delete a VirtualMachineClusterPreference object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_virtual_machine_cluster_preference_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_virtual_machine_cluster_preference" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_virtual_machine_cluster_preference`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_virtual_machine_cluster_preference`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = [] + if 'grace_period_seconds' in params: + query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) + if 'orphan_dependents' in params: + query_params.append(('orphanDependents', params['orphan_dependents'])) + if 'propagation_policy' in params: + query_params.append(('propagationPolicy', params['propagation_policy'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def func1(self, **kwargs): + """ + Health endpoint + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.func1(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.func1_with_http_info(**kwargs) + else: + (data) = self.func1_with_http_info(**kwargs) return data def func1_with_http_info(self, **kwargs): @@ -6036,6 +6388,98 @@ def func7_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def get_api_group_clone_kubevirt_io(self, **kwargs): + """ + Get a KubeVirt API group + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_group_clone_kubevirt_io(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_api_group_clone_kubevirt_io_with_http_info(**kwargs) + else: + (data) = self.get_api_group_clone_kubevirt_io_with_http_info(**kwargs) + return data + + def get_api_group_clone_kubevirt_io_with_http_info(self, **kwargs): + """ + Get a KubeVirt API group + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_group_clone_kubevirt_io_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_group_clone_kubevirt_io" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/clone.kubevirt.io/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1APIGroup', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def get_api_group_export_kubevirt_io(self, **kwargs): """ Get a KubeVirt API group @@ -6680,6 +7124,98 @@ def get_api_group_snapshot_kubevirt_io_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def get_api_resources_clone_kubevirt_io_v1alpha1(self, **kwargs): + """ + Get KubeVirt API Resources + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_resources_clone_kubevirt_io_v1alpha1(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_api_resources_clone_kubevirt_io_v1alpha1_with_http_info(**kwargs) + else: + (data) = self.get_api_resources_clone_kubevirt_io_v1alpha1_with_http_info(**kwargs) + return data + + def get_api_resources_clone_kubevirt_io_v1alpha1_with_http_info(self, **kwargs): + """ + Get KubeVirt API Resources + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_resources_clone_kubevirt_io_v1alpha1_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_resources_clone_kubevirt_io_v1alpha1" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/clone.kubevirt.io/v1alpha1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1APIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def get_api_resources_export_kubevirt_io_v1alpha1(self, **kwargs): """ Get KubeVirt API Resources @@ -9312,27 +9848,159 @@ def list_namespaced_virtual_machine_snapshot(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotList + :return: V1alpha1VirtualMachineSnapshotList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_virtual_machine_snapshot_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_virtual_machine_snapshot_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, **kwargs): + """ + Get a list of VirtualMachineSnapshot objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_virtual_machine_snapshot_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineSnapshotList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_virtual_machine_snapshot" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_snapshot`") + + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineSnapshotList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_virtual_machine_snapshot_content(self, namespace, **kwargs): + """ + Get a list of VirtualMachineSnapshotContent objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_virtual_machine_snapshot_content(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineSnapshotContentList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_snapshot_with_http_info(namespace, **kwargs) + return self.list_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_virtual_machine_snapshot_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, **kwargs) return data - def list_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, **kwargs): + def list_namespaced_virtual_machine_snapshot_content_with_http_info(self, namespace, **kwargs): """ - Get a list of VirtualMachineSnapshot objects. + Get a list of VirtualMachineSnapshotContent objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_snapshot_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -9345,7 +10013,7 @@ def list_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, **k :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotList + :return: V1alpha1VirtualMachineSnapshotContentList If the method is called asynchronously, returns the request thread. """ @@ -9361,13 +10029,13 @@ def list_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_snapshot" % key + " to method list_namespaced_virtual_machine_snapshot_content" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_snapshot`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_snapshot_content`") collection_formats = {} @@ -9407,14 +10075,14 @@ def list_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, **k # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshotList', + response_type='V1alpha1VirtualMachineSnapshotContentList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9422,20 +10090,19 @@ def list_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_snapshot_content(self, namespace, **kwargs): + def list_virtual_machine_clone(self, **kwargs): """ - Get a list of VirtualMachineSnapshotContent objects. + Get a list of VirtualMachineClone objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_snapshot_content(namespace, callback=callback_function) + >>> thread = api.list_virtual_machine_clone(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -9444,31 +10111,30 @@ def list_namespaced_virtual_machine_snapshot_content(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotContentList + :return: V1alpha1VirtualMachineCloneList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, **kwargs) + return self.list_virtual_machine_clone_with_http_info(**kwargs) else: - (data) = self.list_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, **kwargs) + (data) = self.list_virtual_machine_clone_with_http_info(**kwargs) return data - def list_namespaced_virtual_machine_snapshot_content_with_http_info(self, namespace, **kwargs): + def list_virtual_machine_clone_with_http_info(self, **kwargs): """ - Get a list of VirtualMachineSnapshotContent objects. + Get a list of VirtualMachineClone objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_virtual_machine_clone_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param bool include_uninitialized: If true, partially initialized resources are included in the response. @@ -9477,12 +10143,12 @@ def list_namespaced_virtual_machine_snapshot_content_with_http_info(self, namesp :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotContentList + :return: V1alpha1VirtualMachineCloneList If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9493,20 +10159,15 @@ def list_namespaced_virtual_machine_snapshot_content_with_http_info(self, namesp if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_snapshot_content" % key + " to method list_virtual_machine_clone" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_snapshot_content`") collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -9539,14 +10200,14 @@ def list_namespaced_virtual_machine_snapshot_content_with_http_info(self, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents', 'GET', + return self.api_client.call_api('/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshotContentList', + response_type='V1alpha1VirtualMachineCloneList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12949,6 +13610,117 @@ def patch_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def patch_virtual_machine_clone(self, name, body, **kwargs): + """ + Patch a VirtualMachineClone object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_virtual_machine_clone(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1alpha1VirtualMachineClone + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_virtual_machine_clone_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_virtual_machine_clone_with_http_info(name, body, **kwargs) + return data + + def patch_virtual_machine_clone_with_http_info(self, name, body, **kwargs): + """ + Patch a VirtualMachineClone object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_virtual_machine_clone_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1alpha1VirtualMachineClone + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_virtual_machine_clone" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_virtual_machine_clone`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_virtual_machine_clone`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineClone', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def patch_virtual_machine_cluster_flavor(self, name, body, **kwargs): """ Patch a VirtualMachineClusterFlavor object. @@ -14561,27 +15333,142 @@ def read_namespaced_virtual_machine_snapshot(self, name, namespace, **kwargs): :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineSnapshot + :return: V1alpha1VirtualMachineSnapshot + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespace, **kwargs): + """ + Get a VirtualMachineSnapshot object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1VirtualMachineSnapshot + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_virtual_machine_snapshot" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_snapshot`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_snapshot`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineSnapshot', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_virtual_machine_snapshot_content(self, name, namespace, **kwargs): + """ + Get a VirtualMachineSnapshotContent object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_snapshot_content(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1VirtualMachineSnapshotContent If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, namespace, **kwargs): """ - Get a VirtualMachineSnapshot object. + Get a VirtualMachineSnapshotContent object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -14589,7 +15476,7 @@ def read_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespac :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineSnapshot + :return: V1alpha1VirtualMachineSnapshotContent If the method is called asynchronously, returns the request thread. """ @@ -14605,16 +15492,16 @@ def read_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespac if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_snapshot" % key + " to method read_namespaced_virtual_machine_snapshot_content" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_snapshot`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_snapshot_content`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_snapshot`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_snapshot_content`") collection_formats = {} @@ -14644,14 +15531,14 @@ def read_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespac # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshot', + response_type='V1alpha1VirtualMachineSnapshotContent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -14659,57 +15546,55 @@ def read_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespac _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_snapshot_content(self, name, namespace, **kwargs): + def read_virtual_machine_clone(self, name, **kwargs): """ - Get a VirtualMachineSnapshotContent object. + Get a VirtualMachineClone object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_snapshot_content(name, namespace, callback=callback_function) + >>> thread = api.read_virtual_machine_clone(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineSnapshotContent + :return: V1alpha1VirtualMachineClone If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, **kwargs) + return self.read_virtual_machine_clone_with_http_info(name, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, **kwargs) + (data) = self.read_virtual_machine_clone_with_http_info(name, **kwargs) return data - def read_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, namespace, **kwargs): + def read_virtual_machine_clone_with_http_info(self, name, **kwargs): """ - Get a VirtualMachineSnapshotContent object. + Get a VirtualMachineClone object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_virtual_machine_clone_with_http_info(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineSnapshotContent + :return: V1alpha1VirtualMachineClone If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'exact', 'export'] + all_params = ['name', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -14720,16 +15605,13 @@ def read_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_snapshot_content" % key + " to method read_virtual_machine_clone" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_snapshot_content`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_snapshot_content`") + raise ValueError("Missing the required parameter `name` when calling `read_virtual_machine_clone`") collection_formats = {} @@ -14737,8 +15619,6 @@ def read_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, path_params = {} if 'name' in params: path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] if 'exact' in params: @@ -14759,14 +15639,14 @@ def read_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshotContent', + response_type='V1alpha1VirtualMachineClone', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -16635,6 +17515,117 @@ def replace_namespaced_virtual_machine_snapshot_content_with_http_info(self, nam _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def replace_virtual_machine_clone(self, name, body, **kwargs): + """ + Update a VirtualMachineClone object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_virtual_machine_clone(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param V1alpha1VirtualMachineClone body: (required) + :return: V1alpha1VirtualMachineClone + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_virtual_machine_clone_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_virtual_machine_clone_with_http_info(name, body, **kwargs) + return data + + def replace_virtual_machine_clone_with_http_info(self, name, body, **kwargs): + """ + Update a VirtualMachineClone object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_virtual_machine_clone_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param V1alpha1VirtualMachineClone body: (required) + :return: V1alpha1VirtualMachineClone + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_virtual_machine_clone" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_virtual_machine_clone`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_virtual_machine_clone`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineClone', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def replace_virtual_machine_cluster_flavor(self, name, body, **kwargs): """ Update a VirtualMachineClusterFlavor object. @@ -25775,6 +26766,131 @@ def watch_namespaced_virtual_machine_snapshot_content_with_http_info(self, names _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def watch_virtual_machine_clone_list_for_all_namespaces(self, **kwargs): + """ + Watch a VirtualMachineCloneList object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_virtual_machine_clone_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_virtual_machine_clone_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_virtual_machine_clone_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_virtual_machine_clone_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + Watch a VirtualMachineCloneList object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_virtual_machine_clone_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_virtual_machine_clone_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/clone.kubevirt.io/v1alpha1/watch/virtualmachineclones', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def watch_virtual_machine_cluster_flavor_list_for_all_namespaces(self, **kwargs): """ Watch a VirtualMachineClusterFlavorList object. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index dd23438f..24f3190b 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.54.0-349-g39b7b1353".\ + "SDK Package Version: v0.54.0-372-gf8423f7a4".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index d0e8b920..7566350a 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -271,6 +271,10 @@ from .v1alpha1_selectors import V1alpha1Selectors from .v1alpha1_source_spec import V1alpha1SourceSpec from .v1alpha1_virtual_machine import V1alpha1VirtualMachine +from .v1alpha1_virtual_machine_clone import V1alpha1VirtualMachineClone +from .v1alpha1_virtual_machine_clone_list import V1alpha1VirtualMachineCloneList +from .v1alpha1_virtual_machine_clone_spec import V1alpha1VirtualMachineCloneSpec +from .v1alpha1_virtual_machine_clone_status import V1alpha1VirtualMachineCloneStatus from .v1alpha1_virtual_machine_cluster_flavor import V1alpha1VirtualMachineClusterFlavor from .v1alpha1_virtual_machine_cluster_flavor_list import V1alpha1VirtualMachineClusterFlavorList from .v1alpha1_virtual_machine_cluster_preference import V1alpha1VirtualMachineClusterPreference diff --git a/kubevirt/models/v1alpha1_virtual_machine_clone.py b/kubevirt/models/v1alpha1_virtual_machine_clone.py new file mode 100644 index 00000000..6357f4fc --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_clone.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineClone(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', + 'spec': 'V1alpha1VirtualMachineCloneSpec', + 'status': 'V1alpha1VirtualMachineCloneStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + """ + V1alpha1VirtualMachineClone - a model defined in Swagger + """ + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1VirtualMachineClone. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1alpha1VirtualMachineClone. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1VirtualMachineClone. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1VirtualMachineClone. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1alpha1VirtualMachineClone. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1VirtualMachineClone. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1VirtualMachineClone. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1VirtualMachineClone. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1VirtualMachineClone. + + :return: The metadata of this V1alpha1VirtualMachineClone. + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1VirtualMachineClone. + + :param metadata: The metadata of this V1alpha1VirtualMachineClone. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1alpha1VirtualMachineClone. + + :return: The spec of this V1alpha1VirtualMachineClone. + :rtype: V1alpha1VirtualMachineCloneSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1alpha1VirtualMachineClone. + + :param spec: The spec of this V1alpha1VirtualMachineClone. + :type: V1alpha1VirtualMachineCloneSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1alpha1VirtualMachineClone. + + :return: The status of this V1alpha1VirtualMachineClone. + :rtype: V1alpha1VirtualMachineCloneStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1alpha1VirtualMachineClone. + + :param status: The status of this V1alpha1VirtualMachineClone. + :type: V1alpha1VirtualMachineCloneStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineClone): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_clone_list.py b/kubevirt/models/v1alpha1_virtual_machine_clone_list.py new file mode 100644 index 00000000..69ac5f7c --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_clone_list.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineCloneList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'items': 'list[V1alpha1VirtualMachineClone]', + 'kind': 'str', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1alpha1VirtualMachineCloneList - a model defined in Swagger + """ + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1VirtualMachineCloneList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1alpha1VirtualMachineCloneList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1VirtualMachineCloneList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1VirtualMachineCloneList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1alpha1VirtualMachineCloneList. + + :return: The items of this V1alpha1VirtualMachineCloneList. + :rtype: list[V1alpha1VirtualMachineClone] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1alpha1VirtualMachineCloneList. + + :param items: The items of this V1alpha1VirtualMachineCloneList. + :type: list[V1alpha1VirtualMachineClone] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1alpha1VirtualMachineCloneList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1VirtualMachineCloneList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1VirtualMachineCloneList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1VirtualMachineCloneList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1VirtualMachineCloneList. + + :return: The metadata of this V1alpha1VirtualMachineCloneList. + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1VirtualMachineCloneList. + + :param metadata: The metadata of this V1alpha1VirtualMachineCloneList. + :type: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineCloneList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_clone_spec.py b/kubevirt/models/v1alpha1_virtual_machine_clone_spec.py new file mode 100644 index 00000000..55e2107b --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_clone_spec.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineCloneSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'annotation_filters': 'list[str]', + 'label_filters': 'list[str]', + 'new_mac_addresses': 'dict(str, str)', + 'new_sm_bios_serial': 'str', + 'source': 'K8sIoApiCoreV1TypedLocalObjectReference', + 'target': 'K8sIoApiCoreV1TypedLocalObjectReference' + } + + attribute_map = { + 'annotation_filters': 'annotationFilters', + 'label_filters': 'labelFilters', + 'new_mac_addresses': 'newMacAddresses', + 'new_sm_bios_serial': 'newSMBiosSerial', + 'source': 'source', + 'target': 'target' + } + + def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresses=None, new_sm_bios_serial=None, source=None, target=None): + """ + V1alpha1VirtualMachineCloneSpec - a model defined in Swagger + """ + + self._annotation_filters = None + self._label_filters = None + self._new_mac_addresses = None + self._new_sm_bios_serial = None + self._source = None + self._target = None + + if annotation_filters is not None: + self.annotation_filters = annotation_filters + if label_filters is not None: + self.label_filters = label_filters + if new_mac_addresses is not None: + self.new_mac_addresses = new_mac_addresses + if new_sm_bios_serial is not None: + self.new_sm_bios_serial = new_sm_bios_serial + self.source = source + if target is not None: + self.target = target + + @property + def annotation_filters(self): + """ + Gets the annotation_filters of this V1alpha1VirtualMachineCloneSpec. + + :return: The annotation_filters of this V1alpha1VirtualMachineCloneSpec. + :rtype: list[str] + """ + return self._annotation_filters + + @annotation_filters.setter + def annotation_filters(self, annotation_filters): + """ + Sets the annotation_filters of this V1alpha1VirtualMachineCloneSpec. + + :param annotation_filters: The annotation_filters of this V1alpha1VirtualMachineCloneSpec. + :type: list[str] + """ + + self._annotation_filters = annotation_filters + + @property + def label_filters(self): + """ + Gets the label_filters of this V1alpha1VirtualMachineCloneSpec. + + :return: The label_filters of this V1alpha1VirtualMachineCloneSpec. + :rtype: list[str] + """ + return self._label_filters + + @label_filters.setter + def label_filters(self, label_filters): + """ + Sets the label_filters of this V1alpha1VirtualMachineCloneSpec. + + :param label_filters: The label_filters of this V1alpha1VirtualMachineCloneSpec. + :type: list[str] + """ + + self._label_filters = label_filters + + @property + def new_mac_addresses(self): + """ + Gets the new_mac_addresses of this V1alpha1VirtualMachineCloneSpec. + NewMacAddresses manually sets that target interfaces' mac addresses. The key is the interface name and the value is the new mac address. If this field is not specified, a new MAC address will be generated automatically, as for any interface that is not included in this map. + + :return: The new_mac_addresses of this V1alpha1VirtualMachineCloneSpec. + :rtype: dict(str, str) + """ + return self._new_mac_addresses + + @new_mac_addresses.setter + def new_mac_addresses(self, new_mac_addresses): + """ + Sets the new_mac_addresses of this V1alpha1VirtualMachineCloneSpec. + NewMacAddresses manually sets that target interfaces' mac addresses. The key is the interface name and the value is the new mac address. If this field is not specified, a new MAC address will be generated automatically, as for any interface that is not included in this map. + + :param new_mac_addresses: The new_mac_addresses of this V1alpha1VirtualMachineCloneSpec. + :type: dict(str, str) + """ + + self._new_mac_addresses = new_mac_addresses + + @property + def new_sm_bios_serial(self): + """ + Gets the new_sm_bios_serial of this V1alpha1VirtualMachineCloneSpec. + NewSMBiosSerial manually sets that target's SMbios serial. If this field is not specified, a new serial will be generated automatically. + + :return: The new_sm_bios_serial of this V1alpha1VirtualMachineCloneSpec. + :rtype: str + """ + return self._new_sm_bios_serial + + @new_sm_bios_serial.setter + def new_sm_bios_serial(self, new_sm_bios_serial): + """ + Sets the new_sm_bios_serial of this V1alpha1VirtualMachineCloneSpec. + NewSMBiosSerial manually sets that target's SMbios serial. If this field is not specified, a new serial will be generated automatically. + + :param new_sm_bios_serial: The new_sm_bios_serial of this V1alpha1VirtualMachineCloneSpec. + :type: str + """ + + self._new_sm_bios_serial = new_sm_bios_serial + + @property + def source(self): + """ + Gets the source of this V1alpha1VirtualMachineCloneSpec. + + :return: The source of this V1alpha1VirtualMachineCloneSpec. + :rtype: K8sIoApiCoreV1TypedLocalObjectReference + """ + return self._source + + @source.setter + def source(self, source): + """ + Sets the source of this V1alpha1VirtualMachineCloneSpec. + + :param source: The source of this V1alpha1VirtualMachineCloneSpec. + :type: K8sIoApiCoreV1TypedLocalObjectReference + """ + if source is None: + raise ValueError("Invalid value for `source`, must not be `None`") + + self._source = source + + @property + def target(self): + """ + Gets the target of this V1alpha1VirtualMachineCloneSpec. + If the target is not provided, a random name would be generated for the target. The target's name can be viewed by inspecting status \"TargetName\" field below. + + :return: The target of this V1alpha1VirtualMachineCloneSpec. + :rtype: K8sIoApiCoreV1TypedLocalObjectReference + """ + return self._target + + @target.setter + def target(self, target): + """ + Sets the target of this V1alpha1VirtualMachineCloneSpec. + If the target is not provided, a random name would be generated for the target. The target's name can be viewed by inspecting status \"TargetName\" field below. + + :param target: The target of this V1alpha1VirtualMachineCloneSpec. + :type: K8sIoApiCoreV1TypedLocalObjectReference + """ + + self._target = target + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineCloneSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_clone_status.py b/kubevirt/models/v1alpha1_virtual_machine_clone_status.py new file mode 100644 index 00000000..090576b7 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_clone_status.py @@ -0,0 +1,253 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineCloneStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'conditions': 'list[V1alpha1Condition]', + 'creation_time': 'K8sIoApimachineryPkgApisMetaV1Time', + 'phase': 'str', + 'restore_name': 'str', + 'snapshot_name': 'str', + 'target_name': 'str' + } + + attribute_map = { + 'conditions': 'conditions', + 'creation_time': 'creationTime', + 'phase': 'phase', + 'restore_name': 'restoreName', + 'snapshot_name': 'snapshotName', + 'target_name': 'targetName' + } + + def __init__(self, conditions=None, creation_time=None, phase=None, restore_name=None, snapshot_name=None, target_name=None): + """ + V1alpha1VirtualMachineCloneStatus - a model defined in Swagger + """ + + self._conditions = None + self._creation_time = None + self._phase = None + self._restore_name = None + self._snapshot_name = None + self._target_name = None + + if conditions is not None: + self.conditions = conditions + if creation_time is not None: + self.creation_time = creation_time + if phase is not None: + self.phase = phase + if restore_name is not None: + self.restore_name = restore_name + if snapshot_name is not None: + self.snapshot_name = snapshot_name + if target_name is not None: + self.target_name = target_name + + @property + def conditions(self): + """ + Gets the conditions of this V1alpha1VirtualMachineCloneStatus. + + :return: The conditions of this V1alpha1VirtualMachineCloneStatus. + :rtype: list[V1alpha1Condition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1alpha1VirtualMachineCloneStatus. + + :param conditions: The conditions of this V1alpha1VirtualMachineCloneStatus. + :type: list[V1alpha1Condition] + """ + + self._conditions = conditions + + @property + def creation_time(self): + """ + Gets the creation_time of this V1alpha1VirtualMachineCloneStatus. + + :return: The creation_time of this V1alpha1VirtualMachineCloneStatus. + :rtype: K8sIoApimachineryPkgApisMetaV1Time + """ + return self._creation_time + + @creation_time.setter + def creation_time(self, creation_time): + """ + Sets the creation_time of this V1alpha1VirtualMachineCloneStatus. + + :param creation_time: The creation_time of this V1alpha1VirtualMachineCloneStatus. + :type: K8sIoApimachineryPkgApisMetaV1Time + """ + + self._creation_time = creation_time + + @property + def phase(self): + """ + Gets the phase of this V1alpha1VirtualMachineCloneStatus. + + :return: The phase of this V1alpha1VirtualMachineCloneStatus. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """ + Sets the phase of this V1alpha1VirtualMachineCloneStatus. + + :param phase: The phase of this V1alpha1VirtualMachineCloneStatus. + :type: str + """ + + self._phase = phase + + @property + def restore_name(self): + """ + Gets the restore_name of this V1alpha1VirtualMachineCloneStatus. + + :return: The restore_name of this V1alpha1VirtualMachineCloneStatus. + :rtype: str + """ + return self._restore_name + + @restore_name.setter + def restore_name(self, restore_name): + """ + Sets the restore_name of this V1alpha1VirtualMachineCloneStatus. + + :param restore_name: The restore_name of this V1alpha1VirtualMachineCloneStatus. + :type: str + """ + + self._restore_name = restore_name + + @property + def snapshot_name(self): + """ + Gets the snapshot_name of this V1alpha1VirtualMachineCloneStatus. + + :return: The snapshot_name of this V1alpha1VirtualMachineCloneStatus. + :rtype: str + """ + return self._snapshot_name + + @snapshot_name.setter + def snapshot_name(self, snapshot_name): + """ + Sets the snapshot_name of this V1alpha1VirtualMachineCloneStatus. + + :param snapshot_name: The snapshot_name of this V1alpha1VirtualMachineCloneStatus. + :type: str + """ + + self._snapshot_name = snapshot_name + + @property + def target_name(self): + """ + Gets the target_name of this V1alpha1VirtualMachineCloneStatus. + + :return: The target_name of this V1alpha1VirtualMachineCloneStatus. + :rtype: str + """ + return self._target_name + + @target_name.setter + def target_name(self, target_name): + """ + Sets the target_name of this V1alpha1VirtualMachineCloneStatus. + + :param target_name: The target_name of this V1alpha1VirtualMachineCloneStatus. + :type: str + """ + + self._target_name = target_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineCloneStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index da5a7aeb..240bdd00 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.54.0-349-g39b7b1353" +VERSION = "v0.54.0-372-gf8423f7a4" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index f89a812c..2ef9e687 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.54.0-349-g39b7b1353" +"packageVersion": "v0.54.0-372-gf8423f7a4" } diff --git a/test/test_default_api.py b/test/test_default_api.py index ccefa02b..e7444134 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -140,6 +140,14 @@ def test_create_namespaced_virtual_machine_snapshot_content(self): Test case for create_namespaced_virtual_machine_snapshot_content + """ + pass + + def test_create_virtual_machine_clone(self): + """ + Test case for create_virtual_machine_clone + + """ pass @@ -268,6 +276,14 @@ def test_delete_collection_namespaced_virtual_machine_snapshot_content(self): Test case for delete_collection_namespaced_virtual_machine_snapshot_content + """ + pass + + def test_delete_collection_virtual_machine_clone(self): + """ + Test case for delete_collection_virtual_machine_clone + + """ pass @@ -396,6 +412,14 @@ def test_delete_namespaced_virtual_machine_snapshot_content(self): Test case for delete_namespaced_virtual_machine_snapshot_content + """ + pass + + def test_delete_virtual_machine_clone(self): + """ + Test case for delete_virtual_machine_clone + + """ pass @@ -428,6 +452,14 @@ def test_func7(self): Test case for func7 + """ + pass + + def test_get_api_group_clone_kubevirt_io(self): + """ + Test case for get_api_group_clone_kubevirt_io + + """ pass @@ -484,6 +516,14 @@ def test_get_api_group_snapshot_kubevirt_io(self): Test case for get_api_group_snapshot_kubevirt_io + """ + pass + + def test_get_api_resources_clone_kubevirt_io_v1alpha1(self): + """ + Test case for get_api_resources_clone_kubevirt_io_v1alpha1 + + """ pass @@ -684,6 +724,14 @@ def test_list_namespaced_virtual_machine_snapshot_content(self): Test case for list_namespaced_virtual_machine_snapshot_content + """ + pass + + def test_list_virtual_machine_clone(self): + """ + Test case for list_virtual_machine_clone + + """ pass @@ -908,6 +956,14 @@ def test_patch_namespaced_virtual_machine_snapshot_content(self): Test case for patch_namespaced_virtual_machine_snapshot_content + """ + pass + + def test_patch_virtual_machine_clone(self): + """ + Test case for patch_virtual_machine_clone + + """ pass @@ -1036,6 +1092,14 @@ def test_read_namespaced_virtual_machine_snapshot_content(self): Test case for read_namespaced_virtual_machine_snapshot_content + """ + pass + + def test_read_virtual_machine_clone(self): + """ + Test case for read_virtual_machine_clone + + """ pass @@ -1164,6 +1228,14 @@ def test_replace_namespaced_virtual_machine_snapshot_content(self): Test case for replace_namespaced_virtual_machine_snapshot_content + """ + pass + + def test_replace_virtual_machine_clone(self): + """ + Test case for replace_virtual_machine_clone + + """ pass @@ -1836,6 +1908,14 @@ def test_watch_namespaced_virtual_machine_snapshot_content(self): Test case for watch_namespaced_virtual_machine_snapshot_content + """ + pass + + def test_watch_virtual_machine_clone_list_for_all_namespaces(self): + """ + Test case for watch_virtual_machine_clone_list_for_all_namespaces + + """ pass diff --git a/test/test_v1alpha1_virtual_machine_clone.py b/test/test_v1alpha1_virtual_machine_clone.py new file mode 100644 index 00000000..4fcc3c87 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_clone.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_clone import V1alpha1VirtualMachineClone + + +class TestV1alpha1VirtualMachineClone(unittest.TestCase): + """ V1alpha1VirtualMachineClone unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineClone(self): + """ + Test V1alpha1VirtualMachineClone + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_clone.V1alpha1VirtualMachineClone() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_clone_list.py b/test/test_v1alpha1_virtual_machine_clone_list.py new file mode 100644 index 00000000..26a7ea8b --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_clone_list.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_clone_list import V1alpha1VirtualMachineCloneList + + +class TestV1alpha1VirtualMachineCloneList(unittest.TestCase): + """ V1alpha1VirtualMachineCloneList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineCloneList(self): + """ + Test V1alpha1VirtualMachineCloneList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_clone_list.V1alpha1VirtualMachineCloneList() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_clone_spec.py b/test/test_v1alpha1_virtual_machine_clone_spec.py new file mode 100644 index 00000000..90754c66 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_clone_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_clone_spec import V1alpha1VirtualMachineCloneSpec + + +class TestV1alpha1VirtualMachineCloneSpec(unittest.TestCase): + """ V1alpha1VirtualMachineCloneSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineCloneSpec(self): + """ + Test V1alpha1VirtualMachineCloneSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_clone_spec.V1alpha1VirtualMachineCloneSpec() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_clone_status.py b/test/test_v1alpha1_virtual_machine_clone_status.py new file mode 100644 index 00000000..40dc04f2 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_clone_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_clone_status import V1alpha1VirtualMachineCloneStatus + + +class TestV1alpha1VirtualMachineCloneStatus(unittest.TestCase): + """ V1alpha1VirtualMachineCloneStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineCloneStatus(self): + """ + Test V1alpha1VirtualMachineCloneStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_clone_status.V1alpha1VirtualMachineCloneStatus() + pass + + +if __name__ == '__main__': + unittest.main() From de269804db2285f08d6d7deb6526160d6805bc89 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 19 Jul 2022 13:47:16 +0000 Subject: [PATCH 281/521] Client Python update by KubeVirt Prow build 1549379308424794112 --- README.md | 94 +- docs/DefaultApi.md | 802 ++++---- docs/V1FlavorMatcher.md | 12 - docs/V1InstancetypeMatcher.md | 12 + docs/V1PreferenceMatcher.md | 2 +- docs/V1VirtualMachineSpec.md | 2 +- ...PUFlavor.md => V1alpha1CPUInstancetype.md} | 2 +- ...lavor.md => V1alpha1MemoryInstancetype.md} | 2 +- ...lpha1VirtualMachineClusterInstancetype.md} | 4 +- ...1VirtualMachineClusterInstancetypeList.md} | 4 +- docs/V1alpha1VirtualMachineFlavorSpec.md | 15 - ... => V1alpha1VirtualMachineInstancetype.md} | 4 +- ...V1alpha1VirtualMachineInstancetypeList.md} | 4 +- .../V1alpha1VirtualMachineInstancetypeSpec.md | 15 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 48 +- kubevirt/__init__.py | 16 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 1678 ++++++++--------- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 16 +- ..._matcher.py => v1_instancetype_matcher.py} | 42 +- kubevirt/models/v1_preference_matcher.py | 4 +- kubevirt/models/v1_virtual_machine_spec.py | 38 +- ...flavor.py => v1alpha1_cpu_instancetype.py} | 54 +- ...vor.py => v1alpha1_memory_instancetype.py} | 22 +- ...1_virtual_machine_cluster_instancetype.py} | 48 +- ...tual_machine_cluster_instancetype_list.py} | 44 +- ... v1alpha1_virtual_machine_instancetype.py} | 48 +- ...pha1_virtual_machine_instancetype_list.py} | 44 +- ...pha1_virtual_machine_instancetype_spec.py} | 90 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 200 +- ...vor.py => test_v1_instancetype_matcher.py} | 12 +- ...r.py => test_v1alpha1_cpu_instancetype.py} | 12 +- ...y => test_v1alpha1_memory_instancetype.py} | 12 +- ...1_virtual_machine_cluster_instancetype.py} | 12 +- ...tual_machine_cluster_instancetype_list.py} | 12 +- ...st_v1alpha1_virtual_machine_flavor_list.py | 44 - ...st_v1alpha1_virtual_machine_flavor_spec.py | 44 - ..._v1alpha1_virtual_machine_instancetype.py} | 12 +- ...lpha1_virtual_machine_instancetype_list.py | 44 + ...lpha1_virtual_machine_instancetype_spec.py | 44 + 44 files changed, 1812 insertions(+), 1812 deletions(-) delete mode 100644 docs/V1FlavorMatcher.md create mode 100644 docs/V1InstancetypeMatcher.md rename docs/{V1alpha1CPUFlavor.md => V1alpha1CPUInstancetype.md} (98%) rename docs/{V1alpha1MemoryFlavor.md => V1alpha1MemoryInstancetype.md} (95%) rename docs/{V1alpha1VirtualMachineClusterFlavor.md => V1alpha1VirtualMachineClusterInstancetype.md} (84%) rename docs/{V1alpha1VirtualMachineClusterFlavorList.md => V1alpha1VirtualMachineClusterInstancetypeList.md} (86%) delete mode 100644 docs/V1alpha1VirtualMachineFlavorSpec.md rename docs/{V1alpha1VirtualMachineFlavor.md => V1alpha1VirtualMachineInstancetype.md} (85%) rename docs/{V1alpha1VirtualMachineFlavorList.md => V1alpha1VirtualMachineInstancetypeList.md} (87%) create mode 100644 docs/V1alpha1VirtualMachineInstancetypeSpec.md rename kubevirt/models/{v1_flavor_matcher.py => v1_instancetype_matcher.py} (65%) rename kubevirt/models/{v1alpha1_cpu_flavor.py => v1alpha1_cpu_instancetype.py} (82%) rename kubevirt/models/{v1alpha1_memory_flavor.py => v1alpha1_memory_instancetype.py} (83%) rename kubevirt/models/{v1alpha1_virtual_machine_cluster_flavor.py => v1alpha1_virtual_machine_cluster_instancetype.py} (82%) rename kubevirt/models/{v1alpha1_virtual_machine_cluster_flavor_list.py => v1alpha1_virtual_machine_cluster_instancetype_list.py} (82%) rename kubevirt/models/{v1alpha1_virtual_machine_flavor.py => v1alpha1_virtual_machine_instancetype.py} (77%) rename kubevirt/models/{v1alpha1_virtual_machine_flavor_list.py => v1alpha1_virtual_machine_instancetype_list.py} (78%) rename kubevirt/models/{v1alpha1_virtual_machine_flavor_spec.py => v1alpha1_virtual_machine_instancetype_spec.py} (70%) rename test/{test_v1alpha1_memory_flavor.py => test_v1_instancetype_matcher.py} (64%) rename test/{test_v1alpha1_cpu_flavor.py => test_v1alpha1_cpu_instancetype.py} (63%) rename test/{test_v1_flavor_matcher.py => test_v1alpha1_memory_instancetype.py} (62%) rename test/{test_v1alpha1_virtual_machine_cluster_flavor_list.py => test_v1alpha1_virtual_machine_cluster_instancetype.py} (61%) rename test/{test_v1alpha1_virtual_machine_cluster_flavor.py => test_v1alpha1_virtual_machine_cluster_instancetype_list.py} (59%) delete mode 100644 test/test_v1alpha1_virtual_machine_flavor_list.py delete mode 100644 test/test_v1alpha1_virtual_machine_flavor_spec.py rename test/{test_v1alpha1_virtual_machine_flavor.py => test_v1alpha1_virtual_machine_instancetype.py} (58%) create mode 100644 test/test_v1alpha1_virtual_machine_instancetype_list.py create mode 100644 test/test_v1alpha1_virtual_machine_instancetype_spec.py diff --git a/README.md b/README.md index 3aeac8d8..12548d39 100644 --- a/README.md +++ b/README.md @@ -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: v0.54.0-372-gf8423f7a4 +- Package version: v0.55.0-113-gc59eef791 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -73,58 +73,58 @@ Class | Method | HTTP request | Description *DefaultApi* | [**create_namespaced_kube_virt**](docs/DefaultApi.md#create_namespaced_kube_virt) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | *DefaultApi* | [**create_namespaced_virtual_machine**](docs/DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | *DefaultApi* | [**create_namespaced_virtual_machine_export**](docs/DefaultApi.md#create_namespaced_virtual_machine_export) | **POST** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports | -*DefaultApi* | [**create_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#create_namespaced_virtual_machine_flavor) | **POST** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | *DefaultApi* | [**create_namespaced_virtual_machine_instance**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | *DefaultApi* | [**create_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | *DefaultApi* | [**create_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | *DefaultApi* | [**create_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +*DefaultApi* | [**create_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#create_namespaced_virtual_machine_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | *DefaultApi* | [**create_namespaced_virtual_machine_pool**](docs/DefaultApi.md#create_namespaced_virtual_machine_pool) | **POST** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -*DefaultApi* | [**create_namespaced_virtual_machine_preference**](docs/DefaultApi.md#create_namespaced_virtual_machine_preference) | **POST** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | +*DefaultApi* | [**create_namespaced_virtual_machine_preference**](docs/DefaultApi.md#create_namespaced_virtual_machine_preference) | **POST** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | *DefaultApi* | [**create_namespaced_virtual_machine_restore**](docs/DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**create_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**create_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | *DefaultApi* | [**create_virtual_machine_clone**](docs/DefaultApi.md#create_virtual_machine_clone) | **POST** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | -*DefaultApi* | [**create_virtual_machine_cluster_flavor**](docs/DefaultApi.md#create_virtual_machine_cluster_flavor) | **POST** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | -*DefaultApi* | [**create_virtual_machine_cluster_preference**](docs/DefaultApi.md#create_virtual_machine_cluster_preference) | **POST** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | +*DefaultApi* | [**create_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#create_virtual_machine_cluster_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes | +*DefaultApi* | [**create_virtual_machine_cluster_preference**](docs/DefaultApi.md#create_virtual_machine_cluster_preference) | **POST** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | *DefaultApi* | [**delete_collection_migration_policy**](docs/DefaultApi.md#delete_collection_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | *DefaultApi* | [**delete_collection_namespaced_kube_virt**](docs/DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | *DefaultApi* | [**delete_collection_namespaced_virtual_machine**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_export**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_pool**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_preference**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_preference) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_preference**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | *DefaultApi* | [**delete_collection_virtual_machine_clone**](docs/DefaultApi.md#delete_collection_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | -*DefaultApi* | [**delete_collection_virtual_machine_cluster_flavor**](docs/DefaultApi.md#delete_collection_virtual_machine_cluster_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | -*DefaultApi* | [**delete_collection_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_collection_virtual_machine_cluster_preference) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | +*DefaultApi* | [**delete_collection_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#delete_collection_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes | +*DefaultApi* | [**delete_collection_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_collection_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | *DefaultApi* | [**delete_migration_policy**](docs/DefaultApi.md#delete_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_kube_virt**](docs/DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine**](docs/DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_export**](docs/DefaultApi.md#delete_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#delete_namespaced_virtual_machine_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_pool**](docs/DefaultApi.md#delete_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_namespaced_virtual_machine_preference**](docs/DefaultApi.md#delete_namespaced_virtual_machine_preference) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_namespaced_virtual_machine_preference**](docs/DefaultApi.md#delete_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_virtual_machine_clone**](docs/DefaultApi.md#delete_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_virtual_machine_cluster_flavor**](docs/DefaultApi.md#delete_virtual_machine_cluster_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#delete_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**func1**](docs/DefaultApi.md#func1) | **GET** /healthz | *DefaultApi* | [**func7**](docs/DefaultApi.md#func7) | **GET** /openapi/v2 | *DefaultApi* | [**get_api_group_clone_kubevirt_io**](docs/DefaultApi.md#get_api_group_clone_kubevirt_io) | **GET** /apis/clone.kubevirt.io/ | *DefaultApi* | [**get_api_group_export_kubevirt_io**](docs/DefaultApi.md#get_api_group_export_kubevirt_io) | **GET** /apis/export.kubevirt.io/ | -*DefaultApi* | [**get_api_group_flavor_kubevirt_io**](docs/DefaultApi.md#get_api_group_flavor_kubevirt_io) | **GET** /apis/flavor.kubevirt.io/ | +*DefaultApi* | [**get_api_group_instancetype_kubevirt_io**](docs/DefaultApi.md#get_api_group_instancetype_kubevirt_io) | **GET** /apis/instancetype.kubevirt.io/ | *DefaultApi* | [**get_api_group_kubevirt_io**](docs/DefaultApi.md#get_api_group_kubevirt_io) | **GET** /apis/kubevirt.io/ | *DefaultApi* | [**get_api_group_list**](docs/DefaultApi.md#get_api_group_list) | **GET** /apis | *DefaultApi* | [**get_api_group_migrations_kubevirt_io**](docs/DefaultApi.md#get_api_group_migrations_kubevirt_io) | **GET** /apis/migrations.kubevirt.io/ | @@ -132,7 +132,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**get_api_group_snapshot_kubevirt_io**](docs/DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | *DefaultApi* | [**get_api_resources_clone_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_clone_kubevirt_io_v1alpha1) | **GET** /apis/clone.kubevirt.io/v1alpha1/ | *DefaultApi* | [**get_api_resources_export_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_export_kubevirt_io_v1alpha1) | **GET** /apis/export.kubevirt.io/v1alpha1/ | -*DefaultApi* | [**get_api_resources_flavor_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_flavor_kubevirt_io_v1alpha1) | **GET** /apis/flavor.kubevirt.io/v1alpha1/ | +*DefaultApi* | [**get_api_resources_instancetype_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_instancetype_kubevirt_io_v1alpha1) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/ | *DefaultApi* | [**get_api_resources_kubevirt_io_v1**](docs/DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | *DefaultApi* | [**get_api_resources_migrations_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_migrations_kubevirt_io_v1alpha1) | **GET** /apis/migrations.kubevirt.io/v1alpha1/ | *DefaultApi* | [**get_api_resources_pool_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_pool_kubevirt_io_v1alpha1) | **GET** /apis/pool.kubevirt.io/v1alpha1/ | @@ -146,28 +146,28 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_namespaced_kube_virt**](docs/DefaultApi.md#list_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | *DefaultApi* | [**list_namespaced_virtual_machine**](docs/DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | *DefaultApi* | [**list_namespaced_virtual_machine_export**](docs/DefaultApi.md#list_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports | -*DefaultApi* | [**list_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#list_namespaced_virtual_machine_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | *DefaultApi* | [**list_namespaced_virtual_machine_instance**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | *DefaultApi* | [**list_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | *DefaultApi* | [**list_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | *DefaultApi* | [**list_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +*DefaultApi* | [**list_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#list_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | *DefaultApi* | [**list_namespaced_virtual_machine_pool**](docs/DefaultApi.md#list_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -*DefaultApi* | [**list_namespaced_virtual_machine_preference**](docs/DefaultApi.md#list_namespaced_virtual_machine_preference) | **GET** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | +*DefaultApi* | [**list_namespaced_virtual_machine_preference**](docs/DefaultApi.md#list_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | *DefaultApi* | [**list_namespaced_virtual_machine_restore**](docs/DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**list_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**list_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | *DefaultApi* | [**list_virtual_machine_clone**](docs/DefaultApi.md#list_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | -*DefaultApi* | [**list_virtual_machine_cluster_flavor**](docs/DefaultApi.md#list_virtual_machine_cluster_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | -*DefaultApi* | [**list_virtual_machine_cluster_preference**](docs/DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | +*DefaultApi* | [**list_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#list_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes | +*DefaultApi* | [**list_virtual_machine_cluster_preference**](docs/DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | *DefaultApi* | [**list_virtual_machine_export_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_export_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1alpha1/virtualmachineexports | -*DefaultApi* | [**list_virtual_machine_flavor_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_flavor_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineflavors | *DefaultApi* | [**list_virtual_machine_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachines | *DefaultApi* | [**list_virtual_machine_instance_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstances | *DefaultApi* | [**list_virtual_machine_instance_migration_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancemigrations | *DefaultApi* | [**list_virtual_machine_instance_preset_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancepresets | *DefaultApi* | [**list_virtual_machine_instance_replica_set_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancereplicasets | +*DefaultApi* | [**list_virtual_machine_instancetype_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instancetype_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineinstancetypes | *DefaultApi* | [**list_virtual_machine_pool_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_pool_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/virtualmachinepools | -*DefaultApi* | [**list_virtual_machine_preference_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_preference_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachinepreferences | +*DefaultApi* | [**list_virtual_machine_preference_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_preference_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachinepreferences | *DefaultApi* | [**list_virtual_machine_restore_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_restore_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores | *DefaultApi* | [**list_virtual_machine_snapshot_content_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents | *DefaultApi* | [**list_virtual_machine_snapshot_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots | @@ -175,53 +175,53 @@ Class | Method | HTTP request | Description *DefaultApi* | [**patch_namespaced_kube_virt**](docs/DefaultApi.md#patch_namespaced_kube_virt) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine**](docs/DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_export**](docs/DefaultApi.md#patch_namespaced_virtual_machine_export) | **PATCH** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#patch_namespaced_virtual_machine_flavor) | **PATCH** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_pool**](docs/DefaultApi.md#patch_namespaced_virtual_machine_pool) | **PATCH** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_namespaced_virtual_machine_preference**](docs/DefaultApi.md#patch_namespaced_virtual_machine_preference) | **PATCH** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_namespaced_virtual_machine_preference**](docs/DefaultApi.md#patch_namespaced_virtual_machine_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_virtual_machine_clone**](docs/DefaultApi.md#patch_virtual_machine_clone) | **PATCH** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_virtual_machine_cluster_flavor**](docs/DefaultApi.md#patch_virtual_machine_cluster_flavor) | **PATCH** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_virtual_machine_cluster_preference**](docs/DefaultApi.md#patch_virtual_machine_cluster_preference) | **PATCH** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#patch_virtual_machine_cluster_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_virtual_machine_cluster_preference**](docs/DefaultApi.md#patch_virtual_machine_cluster_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_migration_policy**](docs/DefaultApi.md#read_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_kube_virt**](docs/DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine**](docs/DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_export**](docs/DefaultApi.md#read_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#read_namespaced_virtual_machine_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_instance**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#read_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_pool**](docs/DefaultApi.md#read_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_namespaced_virtual_machine_preference**](docs/DefaultApi.md#read_namespaced_virtual_machine_preference) | **GET** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_namespaced_virtual_machine_preference**](docs/DefaultApi.md#read_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_restore**](docs/DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_virtual_machine_clone**](docs/DefaultApi.md#read_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_virtual_machine_cluster_flavor**](docs/DefaultApi.md#read_virtual_machine_cluster_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_virtual_machine_cluster_preference**](docs/DefaultApi.md#read_virtual_machine_cluster_preference) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#read_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_virtual_machine_cluster_preference**](docs/DefaultApi.md#read_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_migration_policy**](docs/DefaultApi.md#replace_migration_policy) | **PUT** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_kube_virt**](docs/DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine**](docs/DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_export**](docs/DefaultApi.md#replace_namespaced_virtual_machine_export) | **PUT** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#replace_namespaced_virtual_machine_flavor) | **PUT** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_pool**](docs/DefaultApi.md#replace_namespaced_virtual_machine_pool) | **PUT** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_namespaced_virtual_machine_preference**](docs/DefaultApi.md#replace_namespaced_virtual_machine_preference) | **PUT** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_namespaced_virtual_machine_preference**](docs/DefaultApi.md#replace_namespaced_virtual_machine_preference) | **PUT** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_restore**](docs/DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_virtual_machine_clone**](docs/DefaultApi.md#replace_virtual_machine_clone) | **PUT** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_virtual_machine_cluster_flavor**](docs/DefaultApi.md#replace_virtual_machine_cluster_flavor) | **PUT** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_virtual_machine_cluster_preference**](docs/DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#replace_virtual_machine_cluster_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_virtual_machine_cluster_preference**](docs/DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**v1_check_health**](docs/DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | *DefaultApi* | [**v1_console**](docs/DefaultApi.md#v1_console) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | *DefaultApi* | [**v1_filesystemlist**](docs/DefaultApi.md#v1_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | @@ -294,28 +294,28 @@ Class | Method | HTTP request | Description *DefaultApi* | [**watch_namespaced_kube_virt**](docs/DefaultApi.md#watch_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | *DefaultApi* | [**watch_namespaced_virtual_machine**](docs/DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | *DefaultApi* | [**watch_namespaced_virtual_machine_export**](docs/DefaultApi.md#watch_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports | -*DefaultApi* | [**watch_namespaced_virtual_machine_flavor**](docs/DefaultApi.md#watch_namespaced_virtual_machine_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | *DefaultApi* | [**watch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | *DefaultApi* | [**watch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | *DefaultApi* | [**watch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | *DefaultApi* | [**watch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +*DefaultApi* | [**watch_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | *DefaultApi* | [**watch_namespaced_virtual_machine_pool**](docs/DefaultApi.md#watch_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -*DefaultApi* | [**watch_namespaced_virtual_machine_preference**](docs/DefaultApi.md#watch_namespaced_virtual_machine_preference) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | +*DefaultApi* | [**watch_namespaced_virtual_machine_preference**](docs/DefaultApi.md#watch_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | *DefaultApi* | [**watch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**watch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**watch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | *DefaultApi* | [**watch_virtual_machine_clone_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_clone_list_for_all_namespaces) | **GET** /apis/clone.kubevirt.io/v1alpha1/watch/virtualmachineclones | -*DefaultApi* | [**watch_virtual_machine_cluster_flavor_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_flavor_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineclusterflavors | -*DefaultApi* | [**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineclusterpreferences | +*DefaultApi* | [**watch_virtual_machine_cluster_instancetype_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/watch/virtualmachineclusterinstancetypes | +*DefaultApi* | [**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/watch/virtualmachineclusterpreferences | *DefaultApi* | [**watch_virtual_machine_export_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_export_list_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1alpha1/watch/virtualmachineexports | -*DefaultApi* | [**watch_virtual_machine_flavor_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_flavor_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineflavors | *DefaultApi* | [**watch_virtual_machine_instance_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstances | *DefaultApi* | [**watch_virtual_machine_instance_migration_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancemigrations | *DefaultApi* | [**watch_virtual_machine_instance_preset_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancepresets | *DefaultApi* | [**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancereplicasets | +*DefaultApi* | [**watch_virtual_machine_instancetype_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/watch/virtualmachineinstancetypes | *DefaultApi* | [**watch_virtual_machine_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachines | *DefaultApi* | [**watch_virtual_machine_pool_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_pool_list_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/virtualmachinepools | -*DefaultApi* | [**watch_virtual_machine_preference_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_preference_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachinepreferences | +*DefaultApi* | [**watch_virtual_machine_preference_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/watch/virtualmachinepreferences | *DefaultApi* | [**watch_virtual_machine_restore_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_restore_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinerestores | *DefaultApi* | [**watch_virtual_machine_snapshot_content_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_snapshot_content_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshotcontents | *DefaultApi* | [**watch_virtual_machine_snapshot_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_snapshot_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshots | @@ -426,7 +426,6 @@ Class | Method | HTTP request | Description - [V1FilesystemVirtiofs](docs/V1FilesystemVirtiofs.md) - [V1Firmware](docs/V1Firmware.md) - [V1Flags](docs/V1Flags.md) - - [V1FlavorMatcher](docs/V1FlavorMatcher.md) - [V1FreezeUnfreezeTimeout](docs/V1FreezeUnfreezeTimeout.md) - [V1GPU](docs/V1GPU.md) - [V1GenerationStatus](docs/V1GenerationStatus.md) @@ -441,6 +440,7 @@ Class | Method | HTTP request | Description - [V1HypervTimer](docs/V1HypervTimer.md) - [V1I6300ESBWatchdog](docs/V1I6300ESBWatchdog.md) - [V1Input](docs/V1Input.md) + - [V1InstancetypeMatcher](docs/V1InstancetypeMatcher.md) - [V1Interface](docs/V1Interface.md) - [V1InterfaceBridge](docs/V1InterfaceBridge.md) - [V1InterfaceMacvtap](docs/V1InterfaceMacvtap.md) @@ -562,7 +562,7 @@ Class | Method | HTTP request | Description - [V1VolumeSnapshotStatus](docs/V1VolumeSnapshotStatus.md) - [V1VolumeStatus](docs/V1VolumeStatus.md) - [V1Watchdog](docs/V1Watchdog.md) - - [V1alpha1CPUFlavor](docs/V1alpha1CPUFlavor.md) + - [V1alpha1CPUInstancetype](docs/V1alpha1CPUInstancetype.md) - [V1alpha1CPUPreferences](docs/V1alpha1CPUPreferences.md) - [V1alpha1ClockPreferences](docs/V1alpha1ClockPreferences.md) - [V1alpha1Condition](docs/V1alpha1Condition.md) @@ -571,7 +571,7 @@ Class | Method | HTTP request | Description - [V1alpha1FeaturePreferences](docs/V1alpha1FeaturePreferences.md) - [V1alpha1FirmwarePreferences](docs/V1alpha1FirmwarePreferences.md) - [V1alpha1MachinePreferences](docs/V1alpha1MachinePreferences.md) - - [V1alpha1MemoryFlavor](docs/V1alpha1MemoryFlavor.md) + - [V1alpha1MemoryInstancetype](docs/V1alpha1MemoryInstancetype.md) - [V1alpha1MigrationPolicy](docs/V1alpha1MigrationPolicy.md) - [V1alpha1MigrationPolicyList](docs/V1alpha1MigrationPolicyList.md) - [V1alpha1MigrationPolicySpec](docs/V1alpha1MigrationPolicySpec.md) @@ -584,8 +584,8 @@ Class | Method | HTTP request | Description - [V1alpha1VirtualMachineCloneList](docs/V1alpha1VirtualMachineCloneList.md) - [V1alpha1VirtualMachineCloneSpec](docs/V1alpha1VirtualMachineCloneSpec.md) - [V1alpha1VirtualMachineCloneStatus](docs/V1alpha1VirtualMachineCloneStatus.md) - - [V1alpha1VirtualMachineClusterFlavor](docs/V1alpha1VirtualMachineClusterFlavor.md) - - [V1alpha1VirtualMachineClusterFlavorList](docs/V1alpha1VirtualMachineClusterFlavorList.md) + - [V1alpha1VirtualMachineClusterInstancetype](docs/V1alpha1VirtualMachineClusterInstancetype.md) + - [V1alpha1VirtualMachineClusterInstancetypeList](docs/V1alpha1VirtualMachineClusterInstancetypeList.md) - [V1alpha1VirtualMachineClusterPreference](docs/V1alpha1VirtualMachineClusterPreference.md) - [V1alpha1VirtualMachineClusterPreferenceList](docs/V1alpha1VirtualMachineClusterPreferenceList.md) - [V1alpha1VirtualMachineExport](docs/V1alpha1VirtualMachineExport.md) @@ -596,9 +596,9 @@ Class | Method | HTTP request | Description - [V1alpha1VirtualMachineExportStatus](docs/V1alpha1VirtualMachineExportStatus.md) - [V1alpha1VirtualMachineExportVolume](docs/V1alpha1VirtualMachineExportVolume.md) - [V1alpha1VirtualMachineExportVolumeFormat](docs/V1alpha1VirtualMachineExportVolumeFormat.md) - - [V1alpha1VirtualMachineFlavor](docs/V1alpha1VirtualMachineFlavor.md) - - [V1alpha1VirtualMachineFlavorList](docs/V1alpha1VirtualMachineFlavorList.md) - - [V1alpha1VirtualMachineFlavorSpec](docs/V1alpha1VirtualMachineFlavorSpec.md) + - [V1alpha1VirtualMachineInstancetype](docs/V1alpha1VirtualMachineInstancetype.md) + - [V1alpha1VirtualMachineInstancetypeList](docs/V1alpha1VirtualMachineInstancetypeList.md) + - [V1alpha1VirtualMachineInstancetypeSpec](docs/V1alpha1VirtualMachineInstancetypeSpec.md) - [V1alpha1VirtualMachinePool](docs/V1alpha1VirtualMachinePool.md) - [V1alpha1VirtualMachinePoolCondition](docs/V1alpha1VirtualMachinePoolCondition.md) - [V1alpha1VirtualMachinePoolList](docs/V1alpha1VirtualMachinePoolList.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 35138b9a..c0cabe90 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -8,58 +8,58 @@ Method | HTTP request | Description [**create_namespaced_kube_virt**](DefaultApi.md#create_namespaced_kube_virt) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | [**create_namespaced_virtual_machine**](DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | [**create_namespaced_virtual_machine_export**](DefaultApi.md#create_namespaced_virtual_machine_export) | **POST** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports | -[**create_namespaced_virtual_machine_flavor**](DefaultApi.md#create_namespaced_virtual_machine_flavor) | **POST** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | [**create_namespaced_virtual_machine_instance**](DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | [**create_namespaced_virtual_machine_instance_migration**](DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | [**create_namespaced_virtual_machine_instance_preset**](DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | [**create_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +[**create_namespaced_virtual_machine_instancetype**](DefaultApi.md#create_namespaced_virtual_machine_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | [**create_namespaced_virtual_machine_pool**](DefaultApi.md#create_namespaced_virtual_machine_pool) | **POST** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -[**create_namespaced_virtual_machine_preference**](DefaultApi.md#create_namespaced_virtual_machine_preference) | **POST** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | +[**create_namespaced_virtual_machine_preference**](DefaultApi.md#create_namespaced_virtual_machine_preference) | **POST** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | [**create_namespaced_virtual_machine_restore**](DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**create_namespaced_virtual_machine_snapshot**](DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**create_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | [**create_virtual_machine_clone**](DefaultApi.md#create_virtual_machine_clone) | **POST** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | -[**create_virtual_machine_cluster_flavor**](DefaultApi.md#create_virtual_machine_cluster_flavor) | **POST** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | -[**create_virtual_machine_cluster_preference**](DefaultApi.md#create_virtual_machine_cluster_preference) | **POST** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | +[**create_virtual_machine_cluster_instancetype**](DefaultApi.md#create_virtual_machine_cluster_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes | +[**create_virtual_machine_cluster_preference**](DefaultApi.md#create_virtual_machine_cluster_preference) | **POST** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | [**delete_collection_migration_policy**](DefaultApi.md#delete_collection_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | [**delete_collection_namespaced_kube_virt**](DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | [**delete_collection_namespaced_virtual_machine**](DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | [**delete_collection_namespaced_virtual_machine_export**](DefaultApi.md#delete_collection_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports | -[**delete_collection_namespaced_virtual_machine_flavor**](DefaultApi.md#delete_collection_namespaced_virtual_machine_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | [**delete_collection_namespaced_virtual_machine_instance**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | [**delete_collection_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | [**delete_collection_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +[**delete_collection_namespaced_virtual_machine_instancetype**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | [**delete_collection_namespaced_virtual_machine_pool**](DefaultApi.md#delete_collection_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -[**delete_collection_namespaced_virtual_machine_preference**](DefaultApi.md#delete_collection_namespaced_virtual_machine_preference) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | +[**delete_collection_namespaced_virtual_machine_preference**](DefaultApi.md#delete_collection_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | [**delete_collection_namespaced_virtual_machine_restore**](DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**delete_collection_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**delete_collection_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | [**delete_collection_virtual_machine_clone**](DefaultApi.md#delete_collection_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | -[**delete_collection_virtual_machine_cluster_flavor**](DefaultApi.md#delete_collection_virtual_machine_cluster_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | -[**delete_collection_virtual_machine_cluster_preference**](DefaultApi.md#delete_collection_virtual_machine_cluster_preference) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | +[**delete_collection_virtual_machine_cluster_instancetype**](DefaultApi.md#delete_collection_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes | +[**delete_collection_virtual_machine_cluster_preference**](DefaultApi.md#delete_collection_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | [**delete_migration_policy**](DefaultApi.md#delete_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_kube_virt**](DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine**](DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_export**](DefaultApi.md#delete_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_namespaced_virtual_machine_flavor**](DefaultApi.md#delete_namespaced_virtual_machine_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_instance**](DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_namespaced_virtual_machine_instancetype**](DefaultApi.md#delete_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_pool**](DefaultApi.md#delete_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_namespaced_virtual_machine_preference**](DefaultApi.md#delete_namespaced_virtual_machine_preference) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_namespaced_virtual_machine_preference**](DefaultApi.md#delete_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_restore**](DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**delete_virtual_machine_clone**](DefaultApi.md#delete_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_virtual_machine_cluster_flavor**](DefaultApi.md#delete_virtual_machine_cluster_flavor) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_virtual_machine_cluster_preference**](DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_virtual_machine_cluster_instancetype**](DefaultApi.md#delete_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_virtual_machine_cluster_preference**](DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | [**func1**](DefaultApi.md#func1) | **GET** /healthz | [**func7**](DefaultApi.md#func7) | **GET** /openapi/v2 | [**get_api_group_clone_kubevirt_io**](DefaultApi.md#get_api_group_clone_kubevirt_io) | **GET** /apis/clone.kubevirt.io/ | [**get_api_group_export_kubevirt_io**](DefaultApi.md#get_api_group_export_kubevirt_io) | **GET** /apis/export.kubevirt.io/ | -[**get_api_group_flavor_kubevirt_io**](DefaultApi.md#get_api_group_flavor_kubevirt_io) | **GET** /apis/flavor.kubevirt.io/ | +[**get_api_group_instancetype_kubevirt_io**](DefaultApi.md#get_api_group_instancetype_kubevirt_io) | **GET** /apis/instancetype.kubevirt.io/ | [**get_api_group_kubevirt_io**](DefaultApi.md#get_api_group_kubevirt_io) | **GET** /apis/kubevirt.io/ | [**get_api_group_list**](DefaultApi.md#get_api_group_list) | **GET** /apis | [**get_api_group_migrations_kubevirt_io**](DefaultApi.md#get_api_group_migrations_kubevirt_io) | **GET** /apis/migrations.kubevirt.io/ | @@ -67,7 +67,7 @@ Method | HTTP request | Description [**get_api_group_snapshot_kubevirt_io**](DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | [**get_api_resources_clone_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_clone_kubevirt_io_v1alpha1) | **GET** /apis/clone.kubevirt.io/v1alpha1/ | [**get_api_resources_export_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_export_kubevirt_io_v1alpha1) | **GET** /apis/export.kubevirt.io/v1alpha1/ | -[**get_api_resources_flavor_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_flavor_kubevirt_io_v1alpha1) | **GET** /apis/flavor.kubevirt.io/v1alpha1/ | +[**get_api_resources_instancetype_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_instancetype_kubevirt_io_v1alpha1) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/ | [**get_api_resources_kubevirt_io_v1**](DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | [**get_api_resources_migrations_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_migrations_kubevirt_io_v1alpha1) | **GET** /apis/migrations.kubevirt.io/v1alpha1/ | [**get_api_resources_pool_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_pool_kubevirt_io_v1alpha1) | **GET** /apis/pool.kubevirt.io/v1alpha1/ | @@ -81,28 +81,28 @@ Method | HTTP request | Description [**list_namespaced_kube_virt**](DefaultApi.md#list_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | [**list_namespaced_virtual_machine**](DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | [**list_namespaced_virtual_machine_export**](DefaultApi.md#list_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports | -[**list_namespaced_virtual_machine_flavor**](DefaultApi.md#list_namespaced_virtual_machine_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | [**list_namespaced_virtual_machine_instance**](DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | [**list_namespaced_virtual_machine_instance_migration**](DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | [**list_namespaced_virtual_machine_instance_preset**](DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | [**list_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +[**list_namespaced_virtual_machine_instancetype**](DefaultApi.md#list_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | [**list_namespaced_virtual_machine_pool**](DefaultApi.md#list_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -[**list_namespaced_virtual_machine_preference**](DefaultApi.md#list_namespaced_virtual_machine_preference) | **GET** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | +[**list_namespaced_virtual_machine_preference**](DefaultApi.md#list_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | [**list_namespaced_virtual_machine_restore**](DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**list_namespaced_virtual_machine_snapshot**](DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**list_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | [**list_virtual_machine_clone**](DefaultApi.md#list_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | -[**list_virtual_machine_cluster_flavor**](DefaultApi.md#list_virtual_machine_cluster_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors | -[**list_virtual_machine_cluster_preference**](DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | +[**list_virtual_machine_cluster_instancetype**](DefaultApi.md#list_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes | +[**list_virtual_machine_cluster_preference**](DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | [**list_virtual_machine_export_for_all_namespaces**](DefaultApi.md#list_virtual_machine_export_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1alpha1/virtualmachineexports | -[**list_virtual_machine_flavor_for_all_namespaces**](DefaultApi.md#list_virtual_machine_flavor_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineflavors | [**list_virtual_machine_for_all_namespaces**](DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachines | [**list_virtual_machine_instance_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstances | [**list_virtual_machine_instance_migration_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancemigrations | [**list_virtual_machine_instance_preset_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancepresets | [**list_virtual_machine_instance_replica_set_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancereplicasets | +[**list_virtual_machine_instancetype_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instancetype_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineinstancetypes | [**list_virtual_machine_pool_for_all_namespaces**](DefaultApi.md#list_virtual_machine_pool_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/virtualmachinepools | -[**list_virtual_machine_preference_for_all_namespaces**](DefaultApi.md#list_virtual_machine_preference_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachinepreferences | +[**list_virtual_machine_preference_for_all_namespaces**](DefaultApi.md#list_virtual_machine_preference_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachinepreferences | [**list_virtual_machine_restore_for_all_namespaces**](DefaultApi.md#list_virtual_machine_restore_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores | [**list_virtual_machine_snapshot_content_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents | [**list_virtual_machine_snapshot_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots | @@ -110,53 +110,53 @@ Method | HTTP request | Description [**patch_namespaced_kube_virt**](DefaultApi.md#patch_namespaced_kube_virt) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine**](DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_export**](DefaultApi.md#patch_namespaced_virtual_machine_export) | **PATCH** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_namespaced_virtual_machine_flavor**](DefaultApi.md#patch_namespaced_virtual_machine_flavor) | **PATCH** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_instance**](DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_namespaced_virtual_machine_instancetype**](DefaultApi.md#patch_namespaced_virtual_machine_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_pool**](DefaultApi.md#patch_namespaced_virtual_machine_pool) | **PATCH** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_namespaced_virtual_machine_preference**](DefaultApi.md#patch_namespaced_virtual_machine_preference) | **PATCH** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_namespaced_virtual_machine_preference**](DefaultApi.md#patch_namespaced_virtual_machine_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_restore**](DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_snapshot**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**patch_virtual_machine_clone**](DefaultApi.md#patch_virtual_machine_clone) | **PATCH** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_virtual_machine_cluster_flavor**](DefaultApi.md#patch_virtual_machine_cluster_flavor) | **PATCH** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_virtual_machine_cluster_preference**](DefaultApi.md#patch_virtual_machine_cluster_preference) | **PATCH** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_virtual_machine_cluster_instancetype**](DefaultApi.md#patch_virtual_machine_cluster_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_virtual_machine_cluster_preference**](DefaultApi.md#patch_virtual_machine_cluster_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | [**read_migration_policy**](DefaultApi.md#read_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_kube_virt**](DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine**](DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_export**](DefaultApi.md#read_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*} | -[**read_namespaced_virtual_machine_flavor**](DefaultApi.md#read_namespaced_virtual_machine_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_instance**](DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_instance_migration**](DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_instance_preset**](DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +[**read_namespaced_virtual_machine_instancetype**](DefaultApi.md#read_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_pool**](DefaultApi.md#read_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -[**read_namespaced_virtual_machine_preference**](DefaultApi.md#read_namespaced_virtual_machine_preference) | **GET** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | +[**read_namespaced_virtual_machine_preference**](DefaultApi.md#read_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_restore**](DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_snapshot**](DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**read_virtual_machine_clone**](DefaultApi.md#read_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -[**read_virtual_machine_cluster_flavor**](DefaultApi.md#read_virtual_machine_cluster_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | -[**read_virtual_machine_cluster_preference**](DefaultApi.md#read_virtual_machine_cluster_preference) | **GET** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | +[**read_virtual_machine_cluster_instancetype**](DefaultApi.md#read_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +[**read_virtual_machine_cluster_preference**](DefaultApi.md#read_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | [**replace_migration_policy**](DefaultApi.md#replace_migration_policy) | **PUT** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_kube_virt**](DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine**](DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_export**](DefaultApi.md#replace_namespaced_virtual_machine_export) | **PUT** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_namespaced_virtual_machine_flavor**](DefaultApi.md#replace_namespaced_virtual_machine_flavor) | **PUT** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_instance**](DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_instance_migration**](DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_instance_preset**](DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_namespaced_virtual_machine_instancetype**](DefaultApi.md#replace_namespaced_virtual_machine_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_pool**](DefaultApi.md#replace_namespaced_virtual_machine_pool) | **PUT** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_namespaced_virtual_machine_preference**](DefaultApi.md#replace_namespaced_virtual_machine_preference) | **PUT** /apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_namespaced_virtual_machine_preference**](DefaultApi.md#replace_namespaced_virtual_machine_preference) | **PUT** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_restore**](DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_snapshot**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**replace_virtual_machine_clone**](DefaultApi.md#replace_virtual_machine_clone) | **PUT** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_virtual_machine_cluster_flavor**](DefaultApi.md#replace_virtual_machine_cluster_flavor) | **PUT** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_virtual_machine_cluster_preference**](DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_virtual_machine_cluster_instancetype**](DefaultApi.md#replace_virtual_machine_cluster_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_virtual_machine_cluster_preference**](DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | [**v1_check_health**](DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | [**v1_console**](DefaultApi.md#v1_console) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | [**v1_filesystemlist**](DefaultApi.md#v1_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | @@ -229,28 +229,28 @@ Method | HTTP request | Description [**watch_namespaced_kube_virt**](DefaultApi.md#watch_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | [**watch_namespaced_virtual_machine**](DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | [**watch_namespaced_virtual_machine_export**](DefaultApi.md#watch_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports | -[**watch_namespaced_virtual_machine_flavor**](DefaultApi.md#watch_namespaced_virtual_machine_flavor) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors | [**watch_namespaced_virtual_machine_instance**](DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | [**watch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | [**watch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | [**watch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | +[**watch_namespaced_virtual_machine_instancetype**](DefaultApi.md#watch_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | [**watch_namespaced_virtual_machine_pool**](DefaultApi.md#watch_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -[**watch_namespaced_virtual_machine_preference**](DefaultApi.md#watch_namespaced_virtual_machine_preference) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | +[**watch_namespaced_virtual_machine_preference**](DefaultApi.md#watch_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | [**watch_namespaced_virtual_machine_restore**](DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**watch_namespaced_virtual_machine_snapshot**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**watch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | [**watch_virtual_machine_clone_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_clone_list_for_all_namespaces) | **GET** /apis/clone.kubevirt.io/v1alpha1/watch/virtualmachineclones | -[**watch_virtual_machine_cluster_flavor_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_flavor_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineclusterflavors | -[**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineclusterpreferences | +[**watch_virtual_machine_cluster_instancetype_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/watch/virtualmachineclusterinstancetypes | +[**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/watch/virtualmachineclusterpreferences | [**watch_virtual_machine_export_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_export_list_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1alpha1/watch/virtualmachineexports | -[**watch_virtual_machine_flavor_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_flavor_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineflavors | [**watch_virtual_machine_instance_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstances | [**watch_virtual_machine_instance_migration_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancemigrations | [**watch_virtual_machine_instance_preset_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancepresets | [**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancereplicasets | +[**watch_virtual_machine_instancetype_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/watch/virtualmachineinstancetypes | [**watch_virtual_machine_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachines | [**watch_virtual_machine_pool_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_pool_list_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/virtualmachinepools | -[**watch_virtual_machine_preference_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_preference_list_for_all_namespaces) | **GET** /apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachinepreferences | +[**watch_virtual_machine_preference_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/watch/virtualmachinepreferences | [**watch_virtual_machine_restore_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_restore_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinerestores | [**watch_virtual_machine_snapshot_content_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_snapshot_content_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshotcontents | [**watch_virtual_machine_snapshot_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_snapshot_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshots | @@ -450,12 +450,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_virtual_machine_flavor** -> V1alpha1VirtualMachineFlavor create_namespaced_virtual_machine_flavor(body, namespace) +# **create_namespaced_virtual_machine_instance** +> V1VirtualMachineInstance create_namespaced_virtual_machine_instance(body, namespace) -Create a VirtualMachineFlavor object. +Create a VirtualMachineInstance object. ### Example ```python @@ -467,26 +467,26 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1alpha1VirtualMachineFlavor() # V1alpha1VirtualMachineFlavor | +body = kubevirt.V1VirtualMachineInstance() # V1VirtualMachineInstance | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - api_response = api_instance.create_namespaced_virtual_machine_flavor(body, namespace) + api_response = api_instance.create_namespaced_virtual_machine_instance(body, namespace) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->create_namespaced_virtual_machine_flavor: %s\n" % e) + print("Exception when calling DefaultApi->create_namespaced_virtual_machine_instance: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1VirtualMachineFlavor**](V1alpha1VirtualMachineFlavor.md)| | + **body** | [**V1VirtualMachineInstance**](V1VirtualMachineInstance.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1alpha1VirtualMachineFlavor**](V1alpha1VirtualMachineFlavor.md) +[**V1VirtualMachineInstance**](V1VirtualMachineInstance.md) ### Authorization @@ -499,12 +499,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_virtual_machine_instance** -> V1VirtualMachineInstance create_namespaced_virtual_machine_instance(body, namespace) +# **create_namespaced_virtual_machine_instance_migration** +> V1VirtualMachineInstanceMigration create_namespaced_virtual_machine_instance_migration(body, namespace) -Create a VirtualMachineInstance object. +Create a VirtualMachineInstanceMigration object. ### Example ```python @@ -516,26 +516,26 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1VirtualMachineInstance() # V1VirtualMachineInstance | +body = kubevirt.V1VirtualMachineInstanceMigration() # V1VirtualMachineInstanceMigration | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - api_response = api_instance.create_namespaced_virtual_machine_instance(body, namespace) + api_response = api_instance.create_namespaced_virtual_machine_instance_migration(body, namespace) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->create_namespaced_virtual_machine_instance: %s\n" % e) + print("Exception when calling DefaultApi->create_namespaced_virtual_machine_instance_migration: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1VirtualMachineInstance**](V1VirtualMachineInstance.md)| | + **body** | [**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1VirtualMachineInstance**](V1VirtualMachineInstance.md) +[**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.md) ### Authorization @@ -548,12 +548,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_virtual_machine_instance_migration** -> V1VirtualMachineInstanceMigration create_namespaced_virtual_machine_instance_migration(body, namespace) +# **create_namespaced_virtual_machine_instance_preset** +> V1VirtualMachineInstancePreset create_namespaced_virtual_machine_instance_preset(body, namespace) -Create a VirtualMachineInstanceMigration object. +Create a VirtualMachineInstancePreset object. ### Example ```python @@ -565,26 +565,26 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1VirtualMachineInstanceMigration() # V1VirtualMachineInstanceMigration | +body = kubevirt.V1VirtualMachineInstancePreset() # V1VirtualMachineInstancePreset | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - api_response = api_instance.create_namespaced_virtual_machine_instance_migration(body, namespace) + api_response = api_instance.create_namespaced_virtual_machine_instance_preset(body, namespace) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->create_namespaced_virtual_machine_instance_migration: %s\n" % e) + print("Exception when calling DefaultApi->create_namespaced_virtual_machine_instance_preset: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.md)| | + **body** | [**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.md) +[**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md) ### Authorization @@ -597,12 +597,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_virtual_machine_instance_preset** -> V1VirtualMachineInstancePreset create_namespaced_virtual_machine_instance_preset(body, namespace) +# **create_namespaced_virtual_machine_instance_replica_set** +> V1VirtualMachineInstanceReplicaSet create_namespaced_virtual_machine_instance_replica_set(body, namespace) -Create a VirtualMachineInstancePreset object. +Create a VirtualMachineInstanceReplicaSet object. ### Example ```python @@ -614,26 +614,26 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1VirtualMachineInstancePreset() # V1VirtualMachineInstancePreset | +body = kubevirt.V1VirtualMachineInstanceReplicaSet() # V1VirtualMachineInstanceReplicaSet | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - api_response = api_instance.create_namespaced_virtual_machine_instance_preset(body, namespace) + api_response = api_instance.create_namespaced_virtual_machine_instance_replica_set(body, namespace) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->create_namespaced_virtual_machine_instance_preset: %s\n" % e) + print("Exception when calling DefaultApi->create_namespaced_virtual_machine_instance_replica_set: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md)| | + **body** | [**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md) +[**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md) ### Authorization @@ -646,12 +646,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_namespaced_virtual_machine_instance_replica_set** -> V1VirtualMachineInstanceReplicaSet create_namespaced_virtual_machine_instance_replica_set(body, namespace) +# **create_namespaced_virtual_machine_instancetype** +> V1alpha1VirtualMachineInstancetype create_namespaced_virtual_machine_instancetype(body, namespace) -Create a VirtualMachineInstanceReplicaSet object. +Create a VirtualMachineInstancetype object. ### Example ```python @@ -663,26 +663,26 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1VirtualMachineInstanceReplicaSet() # V1VirtualMachineInstanceReplicaSet | +body = kubevirt.V1alpha1VirtualMachineInstancetype() # V1alpha1VirtualMachineInstancetype | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - api_response = api_instance.create_namespaced_virtual_machine_instance_replica_set(body, namespace) + api_response = api_instance.create_namespaced_virtual_machine_instancetype(body, namespace) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->create_namespaced_virtual_machine_instance_replica_set: %s\n" % e) + print("Exception when calling DefaultApi->create_namespaced_virtual_machine_instancetype: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md)| | + **body** | [**V1alpha1VirtualMachineInstancetype**](V1alpha1VirtualMachineInstancetype.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md) +[**V1alpha1VirtualMachineInstancetype**](V1alpha1VirtualMachineInstancetype.md) ### Authorization @@ -987,12 +987,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_virtual_machine_cluster_flavor** -> V1alpha1VirtualMachineClusterFlavor create_virtual_machine_cluster_flavor(body) +# **create_virtual_machine_cluster_instancetype** +> V1alpha1VirtualMachineClusterInstancetype create_virtual_machine_cluster_instancetype(body) -Create a VirtualMachineClusterFlavor object. +Create a VirtualMachineClusterInstancetype object. ### Example ```python @@ -1004,24 +1004,24 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1alpha1VirtualMachineClusterFlavor() # V1alpha1VirtualMachineClusterFlavor | +body = kubevirt.V1alpha1VirtualMachineClusterInstancetype() # V1alpha1VirtualMachineClusterInstancetype | try: - api_response = api_instance.create_virtual_machine_cluster_flavor(body) + api_response = api_instance.create_virtual_machine_cluster_instancetype(body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->create_virtual_machine_cluster_flavor: %s\n" % e) + print("Exception when calling DefaultApi->create_virtual_machine_cluster_instancetype: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1VirtualMachineClusterFlavor**](V1alpha1VirtualMachineClusterFlavor.md)| | + **body** | [**V1alpha1VirtualMachineClusterInstancetype**](V1alpha1VirtualMachineClusterInstancetype.md)| | ### Return type -[**V1alpha1VirtualMachineClusterFlavor**](V1alpha1VirtualMachineClusterFlavor.md) +[**V1alpha1VirtualMachineClusterInstancetype**](V1alpha1VirtualMachineClusterInstancetype.md) ### Authorization @@ -1325,12 +1325,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_namespaced_virtual_machine_flavor** -> K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_flavor(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **delete_collection_namespaced_virtual_machine_instance** +> K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_instance(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Delete a collection of VirtualMachineFlavor objects. +Delete a collection of VirtualMachineInstance objects. ### Example ```python @@ -1352,10 +1352,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.delete_collection_namespaced_virtual_machine_flavor(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.delete_collection_namespaced_virtual_machine_instance(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_flavor: %s\n" % e) + print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_instance: %s\n" % e) ``` ### Parameters @@ -1386,12 +1386,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_namespaced_virtual_machine_instance** -> K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_instance(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **delete_collection_namespaced_virtual_machine_instance_migration** +> K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_instance_migration(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Delete a collection of VirtualMachineInstance objects. +Delete a collection of VirtualMachineInstanceMigration objects. ### Example ```python @@ -1413,10 +1413,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.delete_collection_namespaced_virtual_machine_instance(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.delete_collection_namespaced_virtual_machine_instance_migration(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_instance: %s\n" % e) + print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_instance_migration: %s\n" % e) ``` ### Parameters @@ -1447,12 +1447,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_namespaced_virtual_machine_instance_migration** -> K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_instance_migration(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **delete_collection_namespaced_virtual_machine_instance_preset** +> K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_instance_preset(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Delete a collection of VirtualMachineInstanceMigration objects. +Delete a collection of VirtualMachineInstancePreset objects. ### Example ```python @@ -1474,10 +1474,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.delete_collection_namespaced_virtual_machine_instance_migration(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.delete_collection_namespaced_virtual_machine_instance_preset(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_instance_migration: %s\n" % e) + print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_instance_preset: %s\n" % e) ``` ### Parameters @@ -1508,12 +1508,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_namespaced_virtual_machine_instance_preset** -> K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_instance_preset(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **delete_collection_namespaced_virtual_machine_instance_replica_set** +> K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_instance_replica_set(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Delete a collection of VirtualMachineInstancePreset objects. +Delete a collection of VirtualMachineInstanceReplicaSet objects. ### Example ```python @@ -1535,10 +1535,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.delete_collection_namespaced_virtual_machine_instance_preset(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.delete_collection_namespaced_virtual_machine_instance_replica_set(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_instance_preset: %s\n" % e) + print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_instance_replica_set: %s\n" % e) ``` ### Parameters @@ -1569,12 +1569,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_namespaced_virtual_machine_instance_replica_set** -> K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_instance_replica_set(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **delete_collection_namespaced_virtual_machine_instancetype** +> K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_instancetype(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Delete a collection of VirtualMachineInstanceReplicaSet objects. +Delete a collection of VirtualMachineInstancetype objects. ### Example ```python @@ -1596,10 +1596,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.delete_collection_namespaced_virtual_machine_instance_replica_set(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.delete_collection_namespaced_virtual_machine_instancetype(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_instance_replica_set: %s\n" % e) + print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_instancetype: %s\n" % e) ``` ### Parameters @@ -1996,12 +1996,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_virtual_machine_cluster_flavor** -> K8sIoApimachineryPkgApisMetaV1Status delete_collection_virtual_machine_cluster_flavor(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **delete_collection_virtual_machine_cluster_instancetype** +> K8sIoApimachineryPkgApisMetaV1Status delete_collection_virtual_machine_cluster_instancetype(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Delete a collection of VirtualMachineClusterFlavor objects. +Delete a collection of VirtualMachineClusterInstancetype objects. ### Example ```python @@ -2023,10 +2023,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.delete_collection_virtual_machine_cluster_flavor(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.delete_collection_virtual_machine_cluster_instancetype(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->delete_collection_virtual_machine_cluster_flavor: %s\n" % e) + print("Exception when calling DefaultApi->delete_collection_virtual_machine_cluster_instancetype: %s\n" % e) ``` ### Parameters @@ -2344,12 +2344,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_namespaced_virtual_machine_flavor** -> K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_flavor(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +# **delete_namespaced_virtual_machine_instance** +> K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_instance(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) -Delete a VirtualMachineFlavor object. +Delete a VirtualMachineInstance object. ### Example ```python @@ -2369,10 +2369,10 @@ orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) try: - api_response = api_instance.delete_namespaced_virtual_machine_flavor(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_namespaced_virtual_machine_instance(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_flavor: %s\n" % e) + print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_instance: %s\n" % e) ``` ### Parameters @@ -2401,12 +2401,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_namespaced_virtual_machine_instance** -> K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_instance(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +# **delete_namespaced_virtual_machine_instance_migration** +> K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_instance_migration(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) -Delete a VirtualMachineInstance object. +Delete a VirtualMachineInstanceMigration object. ### Example ```python @@ -2426,10 +2426,10 @@ orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) try: - api_response = api_instance.delete_namespaced_virtual_machine_instance(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_namespaced_virtual_machine_instance_migration(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_instance: %s\n" % e) + print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_instance_migration: %s\n" % e) ``` ### Parameters @@ -2458,12 +2458,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_namespaced_virtual_machine_instance_migration** -> K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_instance_migration(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +# **delete_namespaced_virtual_machine_instance_preset** +> K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_instance_preset(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) -Delete a VirtualMachineInstanceMigration object. +Delete a VirtualMachineInstancePreset object. ### Example ```python @@ -2483,10 +2483,10 @@ orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) try: - api_response = api_instance.delete_namespaced_virtual_machine_instance_migration(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_namespaced_virtual_machine_instance_preset(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_instance_migration: %s\n" % e) + print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_instance_preset: %s\n" % e) ``` ### Parameters @@ -2515,12 +2515,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_namespaced_virtual_machine_instance_preset** -> K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_instance_preset(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +# **delete_namespaced_virtual_machine_instance_replica_set** +> K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_instance_replica_set(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) -Delete a VirtualMachineInstancePreset object. +Delete a VirtualMachineInstanceReplicaSet object. ### Example ```python @@ -2540,10 +2540,10 @@ orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) try: - api_response = api_instance.delete_namespaced_virtual_machine_instance_preset(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_namespaced_virtual_machine_instance_replica_set(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_instance_preset: %s\n" % e) + print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_instance_replica_set: %s\n" % e) ``` ### Parameters @@ -2572,12 +2572,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_namespaced_virtual_machine_instance_replica_set** -> K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_instance_replica_set(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +# **delete_namespaced_virtual_machine_instancetype** +> K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_instancetype(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) -Delete a VirtualMachineInstanceReplicaSet object. +Delete a VirtualMachineInstancetype object. ### Example ```python @@ -2597,10 +2597,10 @@ orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) try: - api_response = api_instance.delete_namespaced_virtual_machine_instance_replica_set(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_namespaced_virtual_machine_instancetype(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_instance_replica_set: %s\n" % e) + print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_instancetype: %s\n" % e) ``` ### Parameters @@ -2969,12 +2969,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_virtual_machine_cluster_flavor** -> K8sIoApimachineryPkgApisMetaV1Status delete_virtual_machine_cluster_flavor(name, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +# **delete_virtual_machine_cluster_instancetype** +> K8sIoApimachineryPkgApisMetaV1Status delete_virtual_machine_cluster_instancetype(name, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) -Delete a VirtualMachineClusterFlavor object. +Delete a VirtualMachineClusterInstancetype object. ### Example ```python @@ -2993,10 +2993,10 @@ orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) try: - api_response = api_instance.delete_virtual_machine_cluster_flavor(name, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + api_response = api_instance.delete_virtual_machine_cluster_instancetype(name, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->delete_virtual_machine_cluster_flavor: %s\n" % e) + print("Exception when calling DefaultApi->delete_virtual_machine_cluster_instancetype: %s\n" % e) ``` ### Parameters @@ -3247,8 +3247,8 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_api_group_flavor_kubevirt_io** -> K8sIoApimachineryPkgApisMetaV1APIGroup get_api_group_flavor_kubevirt_io() +# **get_api_group_instancetype_kubevirt_io** +> K8sIoApimachineryPkgApisMetaV1APIGroup get_api_group_instancetype_kubevirt_io() @@ -3266,10 +3266,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() try: - api_response = api_instance.get_api_group_flavor_kubevirt_io() + api_response = api_instance.get_api_group_instancetype_kubevirt_io() pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->get_api_group_flavor_kubevirt_io: %s\n" % e) + print("Exception when calling DefaultApi->get_api_group_instancetype_kubevirt_io: %s\n" % e) ``` ### Parameters @@ -3591,8 +3591,8 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_api_resources_flavor_kubevirt_io_v1alpha1** -> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_flavor_kubevirt_io_v1alpha1() +# **get_api_resources_instancetype_kubevirt_io_v1alpha1** +> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_instancetype_kubevirt_io_v1alpha1() @@ -3610,10 +3610,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() try: - api_response = api_instance.get_api_resources_flavor_kubevirt_io_v1alpha1() + api_response = api_instance.get_api_resources_instancetype_kubevirt_io_v1alpha1() pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->get_api_resources_flavor_kubevirt_io_v1alpha1: %s\n" % e) + print("Exception when calling DefaultApi->get_api_resources_instancetype_kubevirt_io_v1alpha1: %s\n" % e) ``` ### Parameters @@ -4286,12 +4286,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_virtual_machine_flavor** -> V1alpha1VirtualMachineFlavorList list_namespaced_virtual_machine_flavor(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_virtual_machine_instance** +> V1VirtualMachineInstanceList list_namespaced_virtual_machine_instance(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of VirtualMachineFlavor objects. +Get a list of VirtualMachineInstance objects. ### Example ```python @@ -4314,10 +4314,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_virtual_machine_flavor(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_namespaced_virtual_machine_instance(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_namespaced_virtual_machine_flavor: %s\n" % e) + print("Exception when calling DefaultApi->list_namespaced_virtual_machine_instance: %s\n" % e) ``` ### Parameters @@ -4336,7 +4336,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineFlavorList**](V1alpha1VirtualMachineFlavorList.md) +[**V1VirtualMachineInstanceList**](V1VirtualMachineInstanceList.md) ### Authorization @@ -4349,12 +4349,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_virtual_machine_instance** -> V1VirtualMachineInstanceList list_namespaced_virtual_machine_instance(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_virtual_machine_instance_migration** +> V1VirtualMachineInstanceMigrationList list_namespaced_virtual_machine_instance_migration(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of VirtualMachineInstance objects. +Get a list of VirtualMachineInstanceMigration objects. ### Example ```python @@ -4377,10 +4377,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_virtual_machine_instance(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_namespaced_virtual_machine_instance_migration(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_namespaced_virtual_machine_instance: %s\n" % e) + print("Exception when calling DefaultApi->list_namespaced_virtual_machine_instance_migration: %s\n" % e) ``` ### Parameters @@ -4399,7 +4399,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstanceList**](V1VirtualMachineInstanceList.md) +[**V1VirtualMachineInstanceMigrationList**](V1VirtualMachineInstanceMigrationList.md) ### Authorization @@ -4412,12 +4412,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_virtual_machine_instance_migration** -> V1VirtualMachineInstanceMigrationList list_namespaced_virtual_machine_instance_migration(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_virtual_machine_instance_preset** +> V1VirtualMachineInstancePresetList list_namespaced_virtual_machine_instance_preset(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of VirtualMachineInstanceMigration objects. +Get a list of VirtualMachineInstancePreset objects. ### Example ```python @@ -4440,10 +4440,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_virtual_machine_instance_migration(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_namespaced_virtual_machine_instance_preset(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_namespaced_virtual_machine_instance_migration: %s\n" % e) + print("Exception when calling DefaultApi->list_namespaced_virtual_machine_instance_preset: %s\n" % e) ``` ### Parameters @@ -4462,7 +4462,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstanceMigrationList**](V1VirtualMachineInstanceMigrationList.md) +[**V1VirtualMachineInstancePresetList**](V1VirtualMachineInstancePresetList.md) ### Authorization @@ -4475,12 +4475,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_virtual_machine_instance_preset** -> V1VirtualMachineInstancePresetList list_namespaced_virtual_machine_instance_preset(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_virtual_machine_instance_replica_set** +> V1VirtualMachineInstanceReplicaSetList list_namespaced_virtual_machine_instance_replica_set(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of VirtualMachineInstancePreset objects. +Get a list of VirtualMachineInstanceReplicaSet objects. ### Example ```python @@ -4503,10 +4503,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_virtual_machine_instance_preset(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_namespaced_virtual_machine_instance_replica_set(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_namespaced_virtual_machine_instance_preset: %s\n" % e) + print("Exception when calling DefaultApi->list_namespaced_virtual_machine_instance_replica_set: %s\n" % e) ``` ### Parameters @@ -4525,7 +4525,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstancePresetList**](V1VirtualMachineInstancePresetList.md) +[**V1VirtualMachineInstanceReplicaSetList**](V1VirtualMachineInstanceReplicaSetList.md) ### Authorization @@ -4538,12 +4538,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_virtual_machine_instance_replica_set** -> V1VirtualMachineInstanceReplicaSetList list_namespaced_virtual_machine_instance_replica_set(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_virtual_machine_instancetype** +> V1alpha1VirtualMachineInstancetypeList list_namespaced_virtual_machine_instancetype(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of VirtualMachineInstanceReplicaSet objects. +Get a list of VirtualMachineInstancetype objects. ### Example ```python @@ -4566,10 +4566,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_virtual_machine_instance_replica_set(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_namespaced_virtual_machine_instancetype(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_namespaced_virtual_machine_instance_replica_set: %s\n" % e) + print("Exception when calling DefaultApi->list_namespaced_virtual_machine_instancetype: %s\n" % e) ``` ### Parameters @@ -4588,7 +4588,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstanceReplicaSetList**](V1VirtualMachineInstanceReplicaSetList.md) +[**V1alpha1VirtualMachineInstancetypeList**](V1alpha1VirtualMachineInstancetypeList.md) ### Authorization @@ -4977,12 +4977,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_virtual_machine_cluster_flavor** -> V1alpha1VirtualMachineClusterFlavorList list_virtual_machine_cluster_flavor(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_virtual_machine_cluster_instancetype** +> V1alpha1VirtualMachineClusterInstancetypeList list_virtual_machine_cluster_instancetype(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of VirtualMachineClusterFlavor objects. +Get a list of VirtualMachineClusterInstancetype objects. ### Example ```python @@ -5004,10 +5004,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_virtual_machine_cluster_flavor(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_virtual_machine_cluster_instancetype(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_virtual_machine_cluster_flavor: %s\n" % e) + print("Exception when calling DefaultApi->list_virtual_machine_cluster_instancetype: %s\n" % e) ``` ### Parameters @@ -5025,7 +5025,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineClusterFlavorList**](V1alpha1VirtualMachineClusterFlavorList.md) +[**V1alpha1VirtualMachineClusterInstancetypeList**](V1alpha1VirtualMachineClusterInstancetypeList.md) ### Authorization @@ -5160,12 +5160,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_virtual_machine_flavor_for_all_namespaces** -> V1alpha1VirtualMachineFlavorList list_virtual_machine_flavor_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_virtual_machine_for_all_namespaces** +> V1VirtualMachineList list_virtual_machine_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of all VirtualMachineFlavor objects. +Get a list of all VirtualMachine objects. ### Example ```python @@ -5187,10 +5187,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_virtual_machine_flavor_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_virtual_machine_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_virtual_machine_flavor_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->list_virtual_machine_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -5208,7 +5208,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineFlavorList**](V1alpha1VirtualMachineFlavorList.md) +[**V1VirtualMachineList**](V1VirtualMachineList.md) ### Authorization @@ -5221,12 +5221,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_virtual_machine_for_all_namespaces** -> V1VirtualMachineList list_virtual_machine_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_virtual_machine_instance_for_all_namespaces** +> V1VirtualMachineInstanceList list_virtual_machine_instance_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of all VirtualMachine objects. +Get a list of all VirtualMachineInstance objects. ### Example ```python @@ -5248,10 +5248,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_virtual_machine_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_virtual_machine_instance_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_virtual_machine_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->list_virtual_machine_instance_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -5269,7 +5269,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineList**](V1VirtualMachineList.md) +[**V1VirtualMachineInstanceList**](V1VirtualMachineInstanceList.md) ### Authorization @@ -5282,12 +5282,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_virtual_machine_instance_for_all_namespaces** -> V1VirtualMachineInstanceList list_virtual_machine_instance_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_virtual_machine_instance_migration_for_all_namespaces** +> V1VirtualMachineInstanceMigrationList list_virtual_machine_instance_migration_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of all VirtualMachineInstance objects. +Get a list of all VirtualMachineInstanceMigration objects. ### Example ```python @@ -5309,10 +5309,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_virtual_machine_instance_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_virtual_machine_instance_migration_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_virtual_machine_instance_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->list_virtual_machine_instance_migration_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -5330,7 +5330,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstanceList**](V1VirtualMachineInstanceList.md) +[**V1VirtualMachineInstanceMigrationList**](V1VirtualMachineInstanceMigrationList.md) ### Authorization @@ -5343,12 +5343,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_virtual_machine_instance_migration_for_all_namespaces** -> V1VirtualMachineInstanceMigrationList list_virtual_machine_instance_migration_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_virtual_machine_instance_preset_for_all_namespaces** +> V1VirtualMachineInstancePresetList list_virtual_machine_instance_preset_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of all VirtualMachineInstanceMigration objects. +Get a list of all VirtualMachineInstancePreset objects. ### Example ```python @@ -5370,10 +5370,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_virtual_machine_instance_migration_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_virtual_machine_instance_preset_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_virtual_machine_instance_migration_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->list_virtual_machine_instance_preset_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -5391,7 +5391,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstanceMigrationList**](V1VirtualMachineInstanceMigrationList.md) +[**V1VirtualMachineInstancePresetList**](V1VirtualMachineInstancePresetList.md) ### Authorization @@ -5404,12 +5404,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_virtual_machine_instance_preset_for_all_namespaces** -> V1VirtualMachineInstancePresetList list_virtual_machine_instance_preset_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_virtual_machine_instance_replica_set_for_all_namespaces** +> V1VirtualMachineInstanceReplicaSetList list_virtual_machine_instance_replica_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of all VirtualMachineInstancePreset objects. +Get a list of all VirtualMachineInstanceReplicaSet objects. ### Example ```python @@ -5431,10 +5431,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_virtual_machine_instance_preset_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_virtual_machine_instance_replica_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_virtual_machine_instance_preset_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->list_virtual_machine_instance_replica_set_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -5452,7 +5452,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstancePresetList**](V1VirtualMachineInstancePresetList.md) +[**V1VirtualMachineInstanceReplicaSetList**](V1VirtualMachineInstanceReplicaSetList.md) ### Authorization @@ -5465,12 +5465,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_virtual_machine_instance_replica_set_for_all_namespaces** -> V1VirtualMachineInstanceReplicaSetList list_virtual_machine_instance_replica_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_virtual_machine_instancetype_for_all_namespaces** +> V1alpha1VirtualMachineInstancetypeList list_virtual_machine_instancetype_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Get a list of all VirtualMachineInstanceReplicaSet objects. +Get a list of all VirtualMachineInstancetype objects. ### Example ```python @@ -5492,10 +5492,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_virtual_machine_instance_replica_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_virtual_machine_instancetype_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_virtual_machine_instance_replica_set_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->list_virtual_machine_instancetype_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -5513,7 +5513,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstanceReplicaSetList**](V1VirtualMachineInstanceReplicaSetList.md) +[**V1alpha1VirtualMachineInstancetypeList**](V1alpha1VirtualMachineInstancetypeList.md) ### Authorization @@ -6033,12 +6033,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_virtual_machine_flavor** -> V1alpha1VirtualMachineFlavor patch_namespaced_virtual_machine_flavor(name, namespace, body) +# **patch_namespaced_virtual_machine_instance** +> V1VirtualMachineInstance patch_namespaced_virtual_machine_instance(name, namespace, body) -Patch a VirtualMachineFlavor object. +Patch a VirtualMachineInstance object. ### Example ```python @@ -6055,10 +6055,10 @@ namespace = 'namespace_example' # str | Object name and auth scope, such as for body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | try: - api_response = api_instance.patch_namespaced_virtual_machine_flavor(name, namespace, body) + api_response = api_instance.patch_namespaced_virtual_machine_instance(name, namespace, body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_flavor: %s\n" % e) + print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instance: %s\n" % e) ``` ### Parameters @@ -6071,7 +6071,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineFlavor**](V1alpha1VirtualMachineFlavor.md) +[**V1VirtualMachineInstance**](V1VirtualMachineInstance.md) ### Authorization @@ -6084,12 +6084,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_virtual_machine_instance** -> V1VirtualMachineInstance patch_namespaced_virtual_machine_instance(name, namespace, body) +# **patch_namespaced_virtual_machine_instance_migration** +> V1VirtualMachineInstanceMigration patch_namespaced_virtual_machine_instance_migration(name, namespace, body) -Patch a VirtualMachineInstance object. +Patch a VirtualMachineInstanceMigration object. ### Example ```python @@ -6106,10 +6106,10 @@ namespace = 'namespace_example' # str | Object name and auth scope, such as for body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | try: - api_response = api_instance.patch_namespaced_virtual_machine_instance(name, namespace, body) + api_response = api_instance.patch_namespaced_virtual_machine_instance_migration(name, namespace, body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instance: %s\n" % e) + print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instance_migration: %s\n" % e) ``` ### Parameters @@ -6122,7 +6122,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstance**](V1VirtualMachineInstance.md) +[**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.md) ### Authorization @@ -6135,12 +6135,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_virtual_machine_instance_migration** -> V1VirtualMachineInstanceMigration patch_namespaced_virtual_machine_instance_migration(name, namespace, body) +# **patch_namespaced_virtual_machine_instance_preset** +> V1VirtualMachineInstancePreset patch_namespaced_virtual_machine_instance_preset(name, namespace, body) -Patch a VirtualMachineInstanceMigration object. +Patch a VirtualMachineInstancePreset object. ### Example ```python @@ -6157,10 +6157,10 @@ namespace = 'namespace_example' # str | Object name and auth scope, such as for body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | try: - api_response = api_instance.patch_namespaced_virtual_machine_instance_migration(name, namespace, body) + api_response = api_instance.patch_namespaced_virtual_machine_instance_preset(name, namespace, body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instance_migration: %s\n" % e) + print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instance_preset: %s\n" % e) ``` ### Parameters @@ -6173,7 +6173,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.md) +[**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md) ### Authorization @@ -6186,12 +6186,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_virtual_machine_instance_preset** -> V1VirtualMachineInstancePreset patch_namespaced_virtual_machine_instance_preset(name, namespace, body) +# **patch_namespaced_virtual_machine_instance_replica_set** +> V1VirtualMachineInstanceReplicaSet patch_namespaced_virtual_machine_instance_replica_set(name, namespace, body) -Patch a VirtualMachineInstancePreset object. +Patch a VirtualMachineInstanceReplicaSet object. ### Example ```python @@ -6208,10 +6208,10 @@ namespace = 'namespace_example' # str | Object name and auth scope, such as for body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | try: - api_response = api_instance.patch_namespaced_virtual_machine_instance_preset(name, namespace, body) + api_response = api_instance.patch_namespaced_virtual_machine_instance_replica_set(name, namespace, body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instance_preset: %s\n" % e) + print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instance_replica_set: %s\n" % e) ``` ### Parameters @@ -6224,7 +6224,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md) +[**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md) ### Authorization @@ -6237,12 +6237,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_virtual_machine_instance_replica_set** -> V1VirtualMachineInstanceReplicaSet patch_namespaced_virtual_machine_instance_replica_set(name, namespace, body) +# **patch_namespaced_virtual_machine_instancetype** +> V1alpha1VirtualMachineInstancetype patch_namespaced_virtual_machine_instancetype(name, namespace, body) -Patch a VirtualMachineInstanceReplicaSet object. +Patch a VirtualMachineInstancetype object. ### Example ```python @@ -6259,10 +6259,10 @@ namespace = 'namespace_example' # str | Object name and auth scope, such as for body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | try: - api_response = api_instance.patch_namespaced_virtual_machine_instance_replica_set(name, namespace, body) + api_response = api_instance.patch_namespaced_virtual_machine_instancetype(name, namespace, body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instance_replica_set: %s\n" % e) + print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instancetype: %s\n" % e) ``` ### Parameters @@ -6275,7 +6275,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md) +[**V1alpha1VirtualMachineInstancetype**](V1alpha1VirtualMachineInstancetype.md) ### Authorization @@ -6592,12 +6592,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_virtual_machine_cluster_flavor** -> V1alpha1VirtualMachineClusterFlavor patch_virtual_machine_cluster_flavor(name, body) +# **patch_virtual_machine_cluster_instancetype** +> V1alpha1VirtualMachineClusterInstancetype patch_virtual_machine_cluster_instancetype(name, body) -Patch a VirtualMachineClusterFlavor object. +Patch a VirtualMachineClusterInstancetype object. ### Example ```python @@ -6613,10 +6613,10 @@ name = 'name_example' # str | Name of the resource body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | try: - api_response = api_instance.patch_virtual_machine_cluster_flavor(name, body) + api_response = api_instance.patch_virtual_machine_cluster_instancetype(name, body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->patch_virtual_machine_cluster_flavor: %s\n" % e) + print("Exception when calling DefaultApi->patch_virtual_machine_cluster_instancetype: %s\n" % e) ``` ### Parameters @@ -6628,7 +6628,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineClusterFlavor**](V1alpha1VirtualMachineClusterFlavor.md) +[**V1alpha1VirtualMachineClusterInstancetype**](V1alpha1VirtualMachineClusterInstancetype.md) ### Authorization @@ -6900,12 +6900,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_namespaced_virtual_machine_flavor** -> V1alpha1VirtualMachineFlavor read_namespaced_virtual_machine_flavor(name, namespace, exact=exact, export=export) +# **read_namespaced_virtual_machine_instance** +> V1VirtualMachineInstance read_namespaced_virtual_machine_instance(name, namespace, exact=exact, export=export) -Get a VirtualMachineFlavor object. +Get a VirtualMachineInstance object. ### Example ```python @@ -6923,10 +6923,10 @@ exact = true # bool | Should the export be exact. Exact export maintains cluster export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - api_response = api_instance.read_namespaced_virtual_machine_flavor(name, namespace, exact=exact, export=export) + api_response = api_instance.read_namespaced_virtual_machine_instance(name, namespace, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->read_namespaced_virtual_machine_flavor: %s\n" % e) + print("Exception when calling DefaultApi->read_namespaced_virtual_machine_instance: %s\n" % e) ``` ### Parameters @@ -6940,7 +6940,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineFlavor**](V1alpha1VirtualMachineFlavor.md) +[**V1VirtualMachineInstance**](V1VirtualMachineInstance.md) ### Authorization @@ -6953,12 +6953,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_namespaced_virtual_machine_instance** -> V1VirtualMachineInstance read_namespaced_virtual_machine_instance(name, namespace, exact=exact, export=export) +# **read_namespaced_virtual_machine_instance_migration** +> V1VirtualMachineInstanceMigration read_namespaced_virtual_machine_instance_migration(name, namespace, exact=exact, export=export) -Get a VirtualMachineInstance object. +Get a VirtualMachineInstanceMigration object. ### Example ```python @@ -6976,10 +6976,10 @@ exact = true # bool | Should the export be exact. Exact export maintains cluster export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - api_response = api_instance.read_namespaced_virtual_machine_instance(name, namespace, exact=exact, export=export) + api_response = api_instance.read_namespaced_virtual_machine_instance_migration(name, namespace, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->read_namespaced_virtual_machine_instance: %s\n" % e) + print("Exception when calling DefaultApi->read_namespaced_virtual_machine_instance_migration: %s\n" % e) ``` ### Parameters @@ -6993,7 +6993,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstance**](V1VirtualMachineInstance.md) +[**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.md) ### Authorization @@ -7006,12 +7006,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_namespaced_virtual_machine_instance_migration** -> V1VirtualMachineInstanceMigration read_namespaced_virtual_machine_instance_migration(name, namespace, exact=exact, export=export) +# **read_namespaced_virtual_machine_instance_preset** +> V1VirtualMachineInstancePreset read_namespaced_virtual_machine_instance_preset(name, namespace, exact=exact, export=export) -Get a VirtualMachineInstanceMigration object. +Get a VirtualMachineInstancePreset object. ### Example ```python @@ -7029,10 +7029,10 @@ exact = true # bool | Should the export be exact. Exact export maintains cluster export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - api_response = api_instance.read_namespaced_virtual_machine_instance_migration(name, namespace, exact=exact, export=export) + api_response = api_instance.read_namespaced_virtual_machine_instance_preset(name, namespace, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->read_namespaced_virtual_machine_instance_migration: %s\n" % e) + print("Exception when calling DefaultApi->read_namespaced_virtual_machine_instance_preset: %s\n" % e) ``` ### Parameters @@ -7046,7 +7046,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.md) +[**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md) ### Authorization @@ -7059,12 +7059,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_namespaced_virtual_machine_instance_preset** -> V1VirtualMachineInstancePreset read_namespaced_virtual_machine_instance_preset(name, namespace, exact=exact, export=export) +# **read_namespaced_virtual_machine_instance_replica_set** +> V1VirtualMachineInstanceReplicaSet read_namespaced_virtual_machine_instance_replica_set(name, namespace, exact=exact, export=export) -Get a VirtualMachineInstancePreset object. +Get a VirtualMachineInstanceReplicaSet object. ### Example ```python @@ -7082,10 +7082,10 @@ exact = true # bool | Should the export be exact. Exact export maintains cluster export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - api_response = api_instance.read_namespaced_virtual_machine_instance_preset(name, namespace, exact=exact, export=export) + api_response = api_instance.read_namespaced_virtual_machine_instance_replica_set(name, namespace, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->read_namespaced_virtual_machine_instance_preset: %s\n" % e) + print("Exception when calling DefaultApi->read_namespaced_virtual_machine_instance_replica_set: %s\n" % e) ``` ### Parameters @@ -7099,7 +7099,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md) +[**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md) ### Authorization @@ -7112,12 +7112,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_namespaced_virtual_machine_instance_replica_set** -> V1VirtualMachineInstanceReplicaSet read_namespaced_virtual_machine_instance_replica_set(name, namespace, exact=exact, export=export) +# **read_namespaced_virtual_machine_instancetype** +> V1alpha1VirtualMachineInstancetype read_namespaced_virtual_machine_instancetype(name, namespace, exact=exact, export=export) -Get a VirtualMachineInstanceReplicaSet object. +Get a VirtualMachineInstancetype object. ### Example ```python @@ -7135,10 +7135,10 @@ exact = true # bool | Should the export be exact. Exact export maintains cluster export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - api_response = api_instance.read_namespaced_virtual_machine_instance_replica_set(name, namespace, exact=exact, export=export) + api_response = api_instance.read_namespaced_virtual_machine_instancetype(name, namespace, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->read_namespaced_virtual_machine_instance_replica_set: %s\n" % e) + print("Exception when calling DefaultApi->read_namespaced_virtual_machine_instancetype: %s\n" % e) ``` ### Parameters @@ -7152,7 +7152,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md) +[**V1alpha1VirtualMachineInstancetype**](V1alpha1VirtualMachineInstancetype.md) ### Authorization @@ -7481,12 +7481,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_virtual_machine_cluster_flavor** -> V1alpha1VirtualMachineClusterFlavor read_virtual_machine_cluster_flavor(name, exact=exact, export=export) +# **read_virtual_machine_cluster_instancetype** +> V1alpha1VirtualMachineClusterInstancetype read_virtual_machine_cluster_instancetype(name, exact=exact, export=export) -Get a VirtualMachineClusterFlavor object. +Get a VirtualMachineClusterInstancetype object. ### Example ```python @@ -7503,10 +7503,10 @@ exact = true # bool | Should the export be exact. Exact export maintains cluster export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - api_response = api_instance.read_virtual_machine_cluster_flavor(name, exact=exact, export=export) + api_response = api_instance.read_virtual_machine_cluster_instancetype(name, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->read_virtual_machine_cluster_flavor: %s\n" % e) + print("Exception when calling DefaultApi->read_virtual_machine_cluster_instancetype: %s\n" % e) ``` ### Parameters @@ -7519,7 +7519,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineClusterFlavor**](V1alpha1VirtualMachineClusterFlavor.md) +[**V1alpha1VirtualMachineClusterInstancetype**](V1alpha1VirtualMachineClusterInstancetype.md) ### Authorization @@ -7785,12 +7785,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_namespaced_virtual_machine_flavor** -> V1alpha1VirtualMachineFlavor replace_namespaced_virtual_machine_flavor(name, namespace, body) +# **replace_namespaced_virtual_machine_instance** +> V1VirtualMachineInstance replace_namespaced_virtual_machine_instance(name, namespace, body) -Update a VirtualMachineFlavor object. +Update a VirtualMachineInstance object. ### Example ```python @@ -7804,13 +7804,13 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1alpha1VirtualMachineFlavor() # V1alpha1VirtualMachineFlavor | +body = kubevirt.V1VirtualMachineInstance() # V1VirtualMachineInstance | try: - api_response = api_instance.replace_namespaced_virtual_machine_flavor(name, namespace, body) + api_response = api_instance.replace_namespaced_virtual_machine_instance(name, namespace, body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_flavor: %s\n" % e) + print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_instance: %s\n" % e) ``` ### Parameters @@ -7819,11 +7819,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1alpha1VirtualMachineFlavor**](V1alpha1VirtualMachineFlavor.md)| | + **body** | [**V1VirtualMachineInstance**](V1VirtualMachineInstance.md)| | ### Return type -[**V1alpha1VirtualMachineFlavor**](V1alpha1VirtualMachineFlavor.md) +[**V1VirtualMachineInstance**](V1VirtualMachineInstance.md) ### Authorization @@ -7836,12 +7836,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_namespaced_virtual_machine_instance** -> V1VirtualMachineInstance replace_namespaced_virtual_machine_instance(name, namespace, body) +# **replace_namespaced_virtual_machine_instance_migration** +> V1VirtualMachineInstanceMigration replace_namespaced_virtual_machine_instance_migration(name, namespace, body) -Update a VirtualMachineInstance object. +Update a VirtualMachineInstanceMigration object. ### Example ```python @@ -7855,13 +7855,13 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1VirtualMachineInstance() # V1VirtualMachineInstance | +body = kubevirt.V1VirtualMachineInstanceMigration() # V1VirtualMachineInstanceMigration | try: - api_response = api_instance.replace_namespaced_virtual_machine_instance(name, namespace, body) + api_response = api_instance.replace_namespaced_virtual_machine_instance_migration(name, namespace, body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_instance: %s\n" % e) + print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_instance_migration: %s\n" % e) ``` ### Parameters @@ -7870,11 +7870,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1VirtualMachineInstance**](V1VirtualMachineInstance.md)| | + **body** | [**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.md)| | ### Return type -[**V1VirtualMachineInstance**](V1VirtualMachineInstance.md) +[**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.md) ### Authorization @@ -7887,12 +7887,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_namespaced_virtual_machine_instance_migration** -> V1VirtualMachineInstanceMigration replace_namespaced_virtual_machine_instance_migration(name, namespace, body) +# **replace_namespaced_virtual_machine_instance_preset** +> V1VirtualMachineInstancePreset replace_namespaced_virtual_machine_instance_preset(name, namespace, body) -Update a VirtualMachineInstanceMigration object. +Update a VirtualMachineInstancePreset object. ### Example ```python @@ -7906,13 +7906,13 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1VirtualMachineInstanceMigration() # V1VirtualMachineInstanceMigration | +body = kubevirt.V1VirtualMachineInstancePreset() # V1VirtualMachineInstancePreset | try: - api_response = api_instance.replace_namespaced_virtual_machine_instance_migration(name, namespace, body) + api_response = api_instance.replace_namespaced_virtual_machine_instance_preset(name, namespace, body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_instance_migration: %s\n" % e) + print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_instance_preset: %s\n" % e) ``` ### Parameters @@ -7921,11 +7921,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.md)| | + **body** | [**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md)| | ### Return type -[**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.md) +[**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md) ### Authorization @@ -7938,12 +7938,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_namespaced_virtual_machine_instance_preset** -> V1VirtualMachineInstancePreset replace_namespaced_virtual_machine_instance_preset(name, namespace, body) +# **replace_namespaced_virtual_machine_instance_replica_set** +> V1VirtualMachineInstanceReplicaSet replace_namespaced_virtual_machine_instance_replica_set(name, namespace, body) -Update a VirtualMachineInstancePreset object. +Update a VirtualMachineInstanceReplicaSet object. ### Example ```python @@ -7957,13 +7957,13 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1VirtualMachineInstancePreset() # V1VirtualMachineInstancePreset | +body = kubevirt.V1VirtualMachineInstanceReplicaSet() # V1VirtualMachineInstanceReplicaSet | try: - api_response = api_instance.replace_namespaced_virtual_machine_instance_preset(name, namespace, body) + api_response = api_instance.replace_namespaced_virtual_machine_instance_replica_set(name, namespace, body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_instance_preset: %s\n" % e) + print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_instance_replica_set: %s\n" % e) ``` ### Parameters @@ -7972,11 +7972,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md)| | + **body** | [**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md)| | ### Return type -[**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md) +[**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md) ### Authorization @@ -7989,12 +7989,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_namespaced_virtual_machine_instance_replica_set** -> V1VirtualMachineInstanceReplicaSet replace_namespaced_virtual_machine_instance_replica_set(name, namespace, body) +# **replace_namespaced_virtual_machine_instancetype** +> V1alpha1VirtualMachineInstancetype replace_namespaced_virtual_machine_instancetype(name, namespace, body) -Update a VirtualMachineInstanceReplicaSet object. +Update a VirtualMachineInstancetype object. ### Example ```python @@ -8008,13 +8008,13 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1VirtualMachineInstanceReplicaSet() # V1VirtualMachineInstanceReplicaSet | +body = kubevirt.V1alpha1VirtualMachineInstancetype() # V1alpha1VirtualMachineInstancetype | try: - api_response = api_instance.replace_namespaced_virtual_machine_instance_replica_set(name, namespace, body) + api_response = api_instance.replace_namespaced_virtual_machine_instancetype(name, namespace, body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_instance_replica_set: %s\n" % e) + print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_instancetype: %s\n" % e) ``` ### Parameters @@ -8023,11 +8023,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md)| | + **body** | [**V1alpha1VirtualMachineInstancetype**](V1alpha1VirtualMachineInstancetype.md)| | ### Return type -[**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md) +[**V1alpha1VirtualMachineInstancetype**](V1alpha1VirtualMachineInstancetype.md) ### Authorization @@ -8344,12 +8344,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_virtual_machine_cluster_flavor** -> V1alpha1VirtualMachineClusterFlavor replace_virtual_machine_cluster_flavor(name, body) +# **replace_virtual_machine_cluster_instancetype** +> V1alpha1VirtualMachineClusterInstancetype replace_virtual_machine_cluster_instancetype(name, body) -Update a VirtualMachineClusterFlavor object. +Update a VirtualMachineClusterInstancetype object. ### Example ```python @@ -8362,13 +8362,13 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource -body = kubevirt.V1alpha1VirtualMachineClusterFlavor() # V1alpha1VirtualMachineClusterFlavor | +body = kubevirt.V1alpha1VirtualMachineClusterInstancetype() # V1alpha1VirtualMachineClusterInstancetype | try: - api_response = api_instance.replace_virtual_machine_cluster_flavor(name, body) + api_response = api_instance.replace_virtual_machine_cluster_instancetype(name, body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->replace_virtual_machine_cluster_flavor: %s\n" % e) + print("Exception when calling DefaultApi->replace_virtual_machine_cluster_instancetype: %s\n" % e) ``` ### Parameters @@ -8376,11 +8376,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | - **body** | [**V1alpha1VirtualMachineClusterFlavor**](V1alpha1VirtualMachineClusterFlavor.md)| | + **body** | [**V1alpha1VirtualMachineClusterInstancetype**](V1alpha1VirtualMachineClusterInstancetype.md)| | ### Return type -[**V1alpha1VirtualMachineClusterFlavor**](V1alpha1VirtualMachineClusterFlavor.md) +[**V1alpha1VirtualMachineClusterInstancetype**](V1alpha1VirtualMachineClusterInstancetype.md) ### Authorization @@ -11950,12 +11950,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **watch_namespaced_virtual_machine_flavor** -> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_flavor(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **watch_namespaced_virtual_machine_instance** +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_instance(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Watch a VirtualMachineFlavor object. +Watch a VirtualMachineInstance object. ### Example ```python @@ -11978,10 +11978,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.watch_namespaced_virtual_machine_flavor(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.watch_namespaced_virtual_machine_instance(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->watch_namespaced_virtual_machine_flavor: %s\n" % e) + print("Exception when calling DefaultApi->watch_namespaced_virtual_machine_instance: %s\n" % e) ``` ### Parameters @@ -12013,12 +12013,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **watch_namespaced_virtual_machine_instance** -> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_instance(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **watch_namespaced_virtual_machine_instance_migration** +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_instance_migration(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Watch a VirtualMachineInstance object. +Watch a VirtualMachineInstanceMigration object. ### Example ```python @@ -12041,10 +12041,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.watch_namespaced_virtual_machine_instance(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.watch_namespaced_virtual_machine_instance_migration(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->watch_namespaced_virtual_machine_instance: %s\n" % e) + print("Exception when calling DefaultApi->watch_namespaced_virtual_machine_instance_migration: %s\n" % e) ``` ### Parameters @@ -12076,12 +12076,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **watch_namespaced_virtual_machine_instance_migration** -> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_instance_migration(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **watch_namespaced_virtual_machine_instance_preset** +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_instance_preset(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Watch a VirtualMachineInstanceMigration object. +Watch a VirtualMachineInstancePreset object. ### Example ```python @@ -12104,10 +12104,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.watch_namespaced_virtual_machine_instance_migration(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.watch_namespaced_virtual_machine_instance_preset(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->watch_namespaced_virtual_machine_instance_migration: %s\n" % e) + print("Exception when calling DefaultApi->watch_namespaced_virtual_machine_instance_preset: %s\n" % e) ``` ### Parameters @@ -12139,12 +12139,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **watch_namespaced_virtual_machine_instance_preset** -> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_instance_preset(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **watch_namespaced_virtual_machine_instance_replica_set** +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_instance_replica_set(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Watch a VirtualMachineInstancePreset object. +Watch a VirtualMachineInstanceReplicaSet object. ### Example ```python @@ -12167,10 +12167,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.watch_namespaced_virtual_machine_instance_preset(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.watch_namespaced_virtual_machine_instance_replica_set(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->watch_namespaced_virtual_machine_instance_preset: %s\n" % e) + print("Exception when calling DefaultApi->watch_namespaced_virtual_machine_instance_replica_set: %s\n" % e) ``` ### Parameters @@ -12202,12 +12202,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **watch_namespaced_virtual_machine_instance_replica_set** -> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_instance_replica_set(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **watch_namespaced_virtual_machine_instancetype** +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_instancetype(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Watch a VirtualMachineInstanceReplicaSet object. +Watch a VirtualMachineInstancetype object. ### Example ```python @@ -12230,10 +12230,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.watch_namespaced_virtual_machine_instance_replica_set(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.watch_namespaced_virtual_machine_instancetype(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->watch_namespaced_virtual_machine_instance_replica_set: %s\n" % e) + print("Exception when calling DefaultApi->watch_namespaced_virtual_machine_instancetype: %s\n" % e) ``` ### Parameters @@ -12641,12 +12641,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **watch_virtual_machine_cluster_flavor_list_for_all_namespaces** -> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_cluster_flavor_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **watch_virtual_machine_cluster_instancetype_list_for_all_namespaces** +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_cluster_instancetype_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Watch a VirtualMachineClusterFlavorList object. +Watch a VirtualMachineClusterInstancetypeList object. ### Example ```python @@ -12668,10 +12668,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.watch_virtual_machine_cluster_flavor_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.watch_virtual_machine_cluster_instancetype_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->watch_virtual_machine_cluster_flavor_list_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->watch_virtual_machine_cluster_instancetype_list_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -12824,12 +12824,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **watch_virtual_machine_flavor_list_for_all_namespaces** -> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_flavor_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **watch_virtual_machine_instance_list_for_all_namespaces** +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_instance_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Watch a VirtualMachineFlavorList object. +Watch a VirtualMachineInstanceList object. ### Example ```python @@ -12851,10 +12851,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.watch_virtual_machine_flavor_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.watch_virtual_machine_instance_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->watch_virtual_machine_flavor_list_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->watch_virtual_machine_instance_list_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -12885,12 +12885,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **watch_virtual_machine_instance_list_for_all_namespaces** -> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_instance_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **watch_virtual_machine_instance_migration_list_for_all_namespaces** +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_instance_migration_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Watch a VirtualMachineInstanceList object. +Watch a VirtualMachineInstanceMigrationList object. ### Example ```python @@ -12912,10 +12912,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.watch_virtual_machine_instance_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.watch_virtual_machine_instance_migration_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->watch_virtual_machine_instance_list_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->watch_virtual_machine_instance_migration_list_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -12946,12 +12946,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **watch_virtual_machine_instance_migration_list_for_all_namespaces** -> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_instance_migration_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **watch_virtual_machine_instance_preset_list_for_all_namespaces** +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_instance_preset_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Watch a VirtualMachineInstanceMigrationList object. +Watch a VirtualMachineInstancePresetList object. ### Example ```python @@ -12973,10 +12973,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.watch_virtual_machine_instance_migration_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.watch_virtual_machine_instance_preset_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->watch_virtual_machine_instance_migration_list_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->watch_virtual_machine_instance_preset_list_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -13007,12 +13007,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **watch_virtual_machine_instance_preset_list_for_all_namespaces** -> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_instance_preset_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **watch_virtual_machine_instance_replica_set_list_for_all_namespaces** +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_instance_replica_set_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Watch a VirtualMachineInstancePresetList object. +Watch a VirtualMachineInstanceReplicaSetList object. ### Example ```python @@ -13034,10 +13034,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.watch_virtual_machine_instance_preset_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.watch_virtual_machine_instance_replica_set_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->watch_virtual_machine_instance_preset_list_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->watch_virtual_machine_instance_replica_set_list_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -13068,12 +13068,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **watch_virtual_machine_instance_replica_set_list_for_all_namespaces** -> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_instance_replica_set_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **watch_virtual_machine_instancetype_list_for_all_namespaces** +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_instancetype_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -Watch a VirtualMachineInstanceReplicaSetList object. +Watch a VirtualMachineInstancetypeList object. ### Example ```python @@ -13095,10 +13095,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.watch_virtual_machine_instance_replica_set_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.watch_virtual_machine_instancetype_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->watch_virtual_machine_instance_replica_set_list_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->watch_virtual_machine_instancetype_list_for_all_namespaces: %s\n" % e) ``` ### Parameters diff --git a/docs/V1FlavorMatcher.md b/docs/V1FlavorMatcher.md deleted file mode 100644 index 2d1521d1..00000000 --- a/docs/V1FlavorMatcher.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1FlavorMatcher - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**kind** | **str** | Kind specifies which flavor resource is referenced. Allowed values are: \"VirtualMachineFlavor\" and \"VirtualMachineClusterFlavor\". If not specified, \"VirtualMachineClusterFlavor\" is used by default. | [optional] -**name** | **str** | Name is the name of the VirtualMachineFlavor or VirtualMachineClusterFlavor | -**revision_name** | **str** | RevisionName specifies a ControllerRevision containing a specific copy of the VirtualMachineFlavor or VirtualMachineClusterFlavor to be used. This is initially captured the first time the flavor is applied to the VirtualMachineInstance. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1InstancetypeMatcher.md b/docs/V1InstancetypeMatcher.md new file mode 100644 index 00000000..d404a333 --- /dev/null +++ b/docs/V1InstancetypeMatcher.md @@ -0,0 +1,12 @@ +# V1InstancetypeMatcher + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kind** | **str** | Kind specifies which instancetype resource is referenced. Allowed values are: \"VirtualMachineInstancetype\" and \"VirtualMachineClusterInstancetype\". If not specified, \"VirtualMachineClusterInstancetype\" is used by default. | [optional] +**name** | **str** | Name is the name of the VirtualMachineInstancetype or VirtualMachineClusterInstancetype | +**revision_name** | **str** | RevisionName specifies a ControllerRevision containing a specific copy of the VirtualMachineInstancetype or VirtualMachineClusterInstancetype to be used. This is initially captured the first time the instancetype is applied to the VirtualMachineInstance. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1PreferenceMatcher.md b/docs/V1PreferenceMatcher.md index e41995e2..37bbef21 100644 --- a/docs/V1PreferenceMatcher.md +++ b/docs/V1PreferenceMatcher.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **kind** | **str** | Kind specifies which preference resource is referenced. Allowed values are: \"VirtualMachinePreference\" and \"VirtualMachineClusterPreference\". If not specified, \"VirtualMachineClusterPreference\" is used by default. | [optional] **name** | **str** | Name is the name of the VirtualMachinePreference or VirtualMachineClusterPreference | -**revision_name** | **str** | RevisionName specifies a ControllerRevision containing a specific copy of the VirtualMachinePreference or VirtualMachineClusterPreference to be used. This is initially captured the first time the flavor is applied to the VirtualMachineInstance. | [optional] +**revision_name** | **str** | RevisionName specifies a ControllerRevision containing a specific copy of the VirtualMachinePreference or VirtualMachineClusterPreference to be used. This is initially captured the first time the instancetype is applied to the VirtualMachineInstance. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineSpec.md b/docs/V1VirtualMachineSpec.md index 62a3280a..8d4ca153 100644 --- a/docs/V1VirtualMachineSpec.md +++ b/docs/V1VirtualMachineSpec.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data_volume_templates** | [**list[V1DataVolumeTemplateSpec]**](V1DataVolumeTemplateSpec.md) | dataVolumeTemplates is a list of dataVolumes that the VirtualMachineInstance template can reference. DataVolumes in this list are dynamically created for the VirtualMachine and are tied to the VirtualMachine's life-cycle. | [optional] -**flavor** | [**V1FlavorMatcher**](V1FlavorMatcher.md) | FlavorMatcher references a flavor that is used to fill fields in Template | [optional] +**instancetype** | [**V1InstancetypeMatcher**](V1InstancetypeMatcher.md) | InstancetypeMatcher references a instancetype that is used to fill fields in Template | [optional] **preference** | [**V1PreferenceMatcher**](V1PreferenceMatcher.md) | PreferenceMatcher references a set of preference that is used to fill fields in Template | [optional] **run_strategy** | **str** | Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running | [optional] **running** | **bool** | Running controls whether the associatied VirtualMachineInstance is created or not Mutually exclusive with RunStrategy | [optional] diff --git a/docs/V1alpha1CPUFlavor.md b/docs/V1alpha1CPUInstancetype.md similarity index 98% rename from docs/V1alpha1CPUFlavor.md rename to docs/V1alpha1CPUInstancetype.md index 51635064..074755b7 100644 --- a/docs/V1alpha1CPUFlavor.md +++ b/docs/V1alpha1CPUInstancetype.md @@ -1,4 +1,4 @@ -# V1alpha1CPUFlavor +# V1alpha1CPUInstancetype ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1MemoryFlavor.md b/docs/V1alpha1MemoryInstancetype.md similarity index 95% rename from docs/V1alpha1MemoryFlavor.md rename to docs/V1alpha1MemoryInstancetype.md index b43027b4..a7522480 100644 --- a/docs/V1alpha1MemoryFlavor.md +++ b/docs/V1alpha1MemoryInstancetype.md @@ -1,4 +1,4 @@ -# V1alpha1MemoryFlavor +# V1alpha1MemoryInstancetype ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1VirtualMachineClusterFlavor.md b/docs/V1alpha1VirtualMachineClusterInstancetype.md similarity index 84% rename from docs/V1alpha1VirtualMachineClusterFlavor.md rename to docs/V1alpha1VirtualMachineClusterInstancetype.md index 6dca92d7..21fd852c 100644 --- a/docs/V1alpha1VirtualMachineClusterFlavor.md +++ b/docs/V1alpha1VirtualMachineClusterInstancetype.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachineClusterFlavor +# V1alpha1VirtualMachineClusterInstancetype ## Properties Name | Type | Description | Notes @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1VirtualMachineFlavorSpec**](V1alpha1VirtualMachineFlavorSpec.md) | Required spec describing the flavor | +**spec** | [**V1alpha1VirtualMachineInstancetypeSpec**](V1alpha1VirtualMachineInstancetypeSpec.md) | Required spec describing the instancetype | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineClusterFlavorList.md b/docs/V1alpha1VirtualMachineClusterInstancetypeList.md similarity index 86% rename from docs/V1alpha1VirtualMachineClusterFlavorList.md rename to docs/V1alpha1VirtualMachineClusterInstancetypeList.md index b5edacc9..0daad305 100644 --- a/docs/V1alpha1VirtualMachineClusterFlavorList.md +++ b/docs/V1alpha1VirtualMachineClusterInstancetypeList.md @@ -1,10 +1,10 @@ -# V1alpha1VirtualMachineClusterFlavorList +# V1alpha1VirtualMachineClusterInstancetypeList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**list[V1alpha1VirtualMachineClusterFlavor]**](V1alpha1VirtualMachineClusterFlavor.md) | | +**items** | [**list[V1alpha1VirtualMachineClusterInstancetype]**](V1alpha1VirtualMachineClusterInstancetype.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [optional] diff --git a/docs/V1alpha1VirtualMachineFlavorSpec.md b/docs/V1alpha1VirtualMachineFlavorSpec.md deleted file mode 100644 index 687b99dc..00000000 --- a/docs/V1alpha1VirtualMachineFlavorSpec.md +++ /dev/null @@ -1,15 +0,0 @@ -# V1alpha1VirtualMachineFlavorSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cpu** | [**V1alpha1CPUFlavor**](V1alpha1CPUFlavor.md) | Required CPU related attributes of the flavor. | -**gpus** | [**list[V1GPU]**](V1GPU.md) | Optionally defines any GPU devices associated with the flavor. | [optional] -**host_devices** | [**list[V1HostDevice]**](V1HostDevice.md) | Optionally defines any HostDevices associated with the flavor. | [optional] -**io_threads_policy** | **str** | Optionally defines the IOThreadsPolicy to be used by the flavor. | [optional] -**launch_security** | [**V1LaunchSecurity**](V1LaunchSecurity.md) | Optionally defines the LaunchSecurity to be used by the flavor. | [optional] -**memory** | [**V1alpha1MemoryFlavor**](V1alpha1MemoryFlavor.md) | Required Memory related attributes of the flavor. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1alpha1VirtualMachineFlavor.md b/docs/V1alpha1VirtualMachineInstancetype.md similarity index 85% rename from docs/V1alpha1VirtualMachineFlavor.md rename to docs/V1alpha1VirtualMachineInstancetype.md index f3962f4a..2b7d7d6f 100644 --- a/docs/V1alpha1VirtualMachineFlavor.md +++ b/docs/V1alpha1VirtualMachineInstancetype.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachineFlavor +# V1alpha1VirtualMachineInstancetype ## Properties Name | Type | Description | Notes @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1VirtualMachineFlavorSpec**](V1alpha1VirtualMachineFlavorSpec.md) | Required spec describing the flavor | +**spec** | [**V1alpha1VirtualMachineInstancetypeSpec**](V1alpha1VirtualMachineInstancetypeSpec.md) | Required spec describing the instancetype | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineFlavorList.md b/docs/V1alpha1VirtualMachineInstancetypeList.md similarity index 87% rename from docs/V1alpha1VirtualMachineFlavorList.md rename to docs/V1alpha1VirtualMachineInstancetypeList.md index 8dce1333..ee050ade 100644 --- a/docs/V1alpha1VirtualMachineFlavorList.md +++ b/docs/V1alpha1VirtualMachineInstancetypeList.md @@ -1,10 +1,10 @@ -# V1alpha1VirtualMachineFlavorList +# V1alpha1VirtualMachineInstancetypeList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**list[V1alpha1VirtualMachineFlavor]**](V1alpha1VirtualMachineFlavor.md) | | +**items** | [**list[V1alpha1VirtualMachineInstancetype]**](V1alpha1VirtualMachineInstancetype.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [optional] diff --git a/docs/V1alpha1VirtualMachineInstancetypeSpec.md b/docs/V1alpha1VirtualMachineInstancetypeSpec.md new file mode 100644 index 00000000..89c5d676 --- /dev/null +++ b/docs/V1alpha1VirtualMachineInstancetypeSpec.md @@ -0,0 +1,15 @@ +# V1alpha1VirtualMachineInstancetypeSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpu** | [**V1alpha1CPUInstancetype**](V1alpha1CPUInstancetype.md) | Required CPU related attributes of the instancetype. | +**gpus** | [**list[V1GPU]**](V1GPU.md) | Optionally defines any GPU devices associated with the instancetype. | [optional] +**host_devices** | [**list[V1HostDevice]**](V1HostDevice.md) | Optionally defines any HostDevices associated with the instancetype. | [optional] +**io_threads_policy** | **str** | Optionally defines the IOThreadsPolicy to be used by the instancetype. | [optional] +**launch_security** | [**V1LaunchSecurity**](V1LaunchSecurity.md) | Optionally defines the LaunchSecurity to be used by the instancetype. | [optional] +**memory** | [**V1alpha1MemoryInstancetype**](V1alpha1MemoryInstancetype.md) | Required Memory related attributes of the instancetype. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 30e78b6d..aea6032c 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.54.0-372-gf8423f7a4" + release_note="Auto-generated client v0.55.0-113-gc59eef791" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 96c43d67..94b17e3c 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -330,9 +330,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_flags.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_flags.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Flags.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_flavor_matcher.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_flavor_matcher.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1FlavorMatcher.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_freeze_unfreeze_timeout.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_freeze_unfreeze_timeout.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1FreezeUnfreezeTimeout.md @@ -375,6 +372,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_input.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_input.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Input.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_instancetype_matcher.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_instancetype_matcher.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InstancetypeMatcher.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_interface.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Interface.md @@ -738,9 +738,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_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Watchdog.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_cpu_flavor.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_cpu_flavor.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1CPUFlavor.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_cpu_instancetype.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_cpu_instancetype.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1CPUInstancetype.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_cpu_preferences.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_cpu_preferences.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1CPUPreferences.md @@ -765,9 +765,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/v1alpha1_machine_preferences.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_machine_preferences.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1MachinePreferences.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_memory_flavor.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_memory_flavor.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1MemoryFlavor.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_memory_instancetype.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_memory_instancetype.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1MemoryInstancetype.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_migration_policy.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_migration_policy.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1MigrationPolicy.md @@ -804,12 +804,12 @@ 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/v1alpha1_virtual_machine_clone_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_clone_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineCloneStatus.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_cluster_flavor.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_cluster_flavor.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineClusterFlavor.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_cluster_flavor_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_cluster_flavor_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineClusterFlavorList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_cluster_instancetype.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_cluster_instancetype.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineClusterInstancetype.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_cluster_instancetype_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_cluster_instancetype_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineClusterInstancetypeList.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_cluster_preference.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_cluster_preference.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineClusterPreference.md @@ -840,15 +840,15 @@ 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/v1alpha1_virtual_machine_export_volume_format.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_export_volume_format.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineExportVolumeFormat.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_flavor.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_flavor.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineFlavor.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_flavor_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_flavor_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineFlavorList.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_flavor_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_flavor_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineFlavorSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_instancetype.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_instancetype.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineInstancetype.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_instancetype_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_instancetype_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineInstancetypeList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_instancetype_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_instancetype_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineInstancetypeSpec.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePool.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 9755e4f9..1d6d76cb 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -117,7 +117,6 @@ from .models.v1_filesystem_virtiofs import V1FilesystemVirtiofs from .models.v1_firmware import V1Firmware from .models.v1_flags import V1Flags -from .models.v1_flavor_matcher import V1FlavorMatcher from .models.v1_freeze_unfreeze_timeout import V1FreezeUnfreezeTimeout from .models.v1_gpu import V1GPU from .models.v1_generation_status import V1GenerationStatus @@ -132,6 +131,7 @@ from .models.v1_hyperv_timer import V1HypervTimer from .models.v1_i6300_esb_watchdog import V1I6300ESBWatchdog from .models.v1_input import V1Input +from .models.v1_instancetype_matcher import V1InstancetypeMatcher from .models.v1_interface import V1Interface from .models.v1_interface_bridge import V1InterfaceBridge from .models.v1_interface_macvtap import V1InterfaceMacvtap @@ -253,7 +253,7 @@ from .models.v1_volume_snapshot_status import V1VolumeSnapshotStatus from .models.v1_volume_status import V1VolumeStatus from .models.v1_watchdog import V1Watchdog -from .models.v1alpha1_cpu_flavor import V1alpha1CPUFlavor +from .models.v1alpha1_cpu_instancetype import V1alpha1CPUInstancetype from .models.v1alpha1_cpu_preferences import V1alpha1CPUPreferences from .models.v1alpha1_clock_preferences import V1alpha1ClockPreferences from .models.v1alpha1_condition import V1alpha1Condition @@ -262,7 +262,7 @@ from .models.v1alpha1_feature_preferences import V1alpha1FeaturePreferences from .models.v1alpha1_firmware_preferences import V1alpha1FirmwarePreferences from .models.v1alpha1_machine_preferences import V1alpha1MachinePreferences -from .models.v1alpha1_memory_flavor import V1alpha1MemoryFlavor +from .models.v1alpha1_memory_instancetype import V1alpha1MemoryInstancetype from .models.v1alpha1_migration_policy import V1alpha1MigrationPolicy from .models.v1alpha1_migration_policy_list import V1alpha1MigrationPolicyList from .models.v1alpha1_migration_policy_spec import V1alpha1MigrationPolicySpec @@ -275,8 +275,8 @@ from .models.v1alpha1_virtual_machine_clone_list import V1alpha1VirtualMachineCloneList from .models.v1alpha1_virtual_machine_clone_spec import V1alpha1VirtualMachineCloneSpec from .models.v1alpha1_virtual_machine_clone_status import V1alpha1VirtualMachineCloneStatus -from .models.v1alpha1_virtual_machine_cluster_flavor import V1alpha1VirtualMachineClusterFlavor -from .models.v1alpha1_virtual_machine_cluster_flavor_list import V1alpha1VirtualMachineClusterFlavorList +from .models.v1alpha1_virtual_machine_cluster_instancetype import V1alpha1VirtualMachineClusterInstancetype +from .models.v1alpha1_virtual_machine_cluster_instancetype_list import V1alpha1VirtualMachineClusterInstancetypeList from .models.v1alpha1_virtual_machine_cluster_preference import V1alpha1VirtualMachineClusterPreference from .models.v1alpha1_virtual_machine_cluster_preference_list import V1alpha1VirtualMachineClusterPreferenceList from .models.v1alpha1_virtual_machine_export import V1alpha1VirtualMachineExport @@ -287,9 +287,9 @@ from .models.v1alpha1_virtual_machine_export_status import V1alpha1VirtualMachineExportStatus from .models.v1alpha1_virtual_machine_export_volume import V1alpha1VirtualMachineExportVolume from .models.v1alpha1_virtual_machine_export_volume_format import V1alpha1VirtualMachineExportVolumeFormat -from .models.v1alpha1_virtual_machine_flavor import V1alpha1VirtualMachineFlavor -from .models.v1alpha1_virtual_machine_flavor_list import V1alpha1VirtualMachineFlavorList -from .models.v1alpha1_virtual_machine_flavor_spec import V1alpha1VirtualMachineFlavorSpec +from .models.v1alpha1_virtual_machine_instancetype import V1alpha1VirtualMachineInstancetype +from .models.v1alpha1_virtual_machine_instancetype_list import V1alpha1VirtualMachineInstancetypeList +from .models.v1alpha1_virtual_machine_instancetype_spec import V1alpha1VirtualMachineInstancetypeSpec from .models.v1alpha1_virtual_machine_pool import V1alpha1VirtualMachinePool from .models.v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition from .models.v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 373f798c..6a5853d6 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.54.0-372-gf8423f7a4/python' + self.user_agent = 'Swagger-Codegen/v0.55.0-113-gc59eef791/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 63528416..056eaae9 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -477,48 +477,48 @@ def create_namespaced_virtual_machine_export_with_http_info(self, body, namespac _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_virtual_machine_flavor(self, body, namespace, **kwargs): + def create_namespaced_virtual_machine_instance(self, body, namespace, **kwargs): """ - Create a VirtualMachineFlavor object. + Create a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_virtual_machine_flavor(body, namespace, callback=callback_function) + >>> thread = api.create_namespaced_virtual_machine_instance(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha1VirtualMachineFlavor body: (required) + :param V1VirtualMachineInstance body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1alpha1VirtualMachineFlavor + :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_virtual_machine_flavor_with_http_info(body, namespace, **kwargs) + return self.create_namespaced_virtual_machine_instance_with_http_info(body, namespace, **kwargs) else: - (data) = self.create_namespaced_virtual_machine_flavor_with_http_info(body, namespace, **kwargs) + (data) = self.create_namespaced_virtual_machine_instance_with_http_info(body, namespace, **kwargs) return data - def create_namespaced_virtual_machine_flavor_with_http_info(self, body, namespace, **kwargs): + def create_namespaced_virtual_machine_instance_with_http_info(self, body, namespace, **kwargs): """ - Create a VirtualMachineFlavor object. + Create a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_virtual_machine_flavor_with_http_info(body, namespace, callback=callback_function) + >>> thread = api.create_namespaced_virtual_machine_instance_with_http_info(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha1VirtualMachineFlavor body: (required) + :param V1VirtualMachineInstance body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1alpha1VirtualMachineFlavor + :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ @@ -534,16 +534,16 @@ def create_namespaced_virtual_machine_flavor_with_http_info(self, body, namespac if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_virtual_machine_flavor" % key + " to method create_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine_flavor`") + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine_instance`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_flavor`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_instance`") collection_formats = {} @@ -573,14 +573,14 @@ def create_namespaced_virtual_machine_flavor_with_http_info(self, body, namespac # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineFlavor', + response_type='V1VirtualMachineInstance', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -588,48 +588,48 @@ def create_namespaced_virtual_machine_flavor_with_http_info(self, body, namespac _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_virtual_machine_instance(self, body, namespace, **kwargs): + def create_namespaced_virtual_machine_instance_migration(self, body, namespace, **kwargs): """ - Create a VirtualMachineInstance object. + Create a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_virtual_machine_instance(body, namespace, callback=callback_function) + >>> thread = api.create_namespaced_virtual_machine_instance_migration(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachineInstance body: (required) + :param V1VirtualMachineInstanceMigration body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachineInstance + :return: V1VirtualMachineInstanceMigration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_virtual_machine_instance_with_http_info(body, namespace, **kwargs) + return self.create_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, **kwargs) else: - (data) = self.create_namespaced_virtual_machine_instance_with_http_info(body, namespace, **kwargs) + (data) = self.create_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, **kwargs) return data - def create_namespaced_virtual_machine_instance_with_http_info(self, body, namespace, **kwargs): + def create_namespaced_virtual_machine_instance_migration_with_http_info(self, body, namespace, **kwargs): """ - Create a VirtualMachineInstance object. + Create a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_virtual_machine_instance_with_http_info(body, namespace, callback=callback_function) + >>> thread = api.create_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachineInstance body: (required) + :param V1VirtualMachineInstanceMigration body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachineInstance + :return: V1VirtualMachineInstanceMigration If the method is called asynchronously, returns the request thread. """ @@ -645,16 +645,16 @@ def create_namespaced_virtual_machine_instance_with_http_info(self, body, namesp if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_virtual_machine_instance" % key + " to method create_namespaced_virtual_machine_instance_migration" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine_instance_migration`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_instance_migration`") collection_formats = {} @@ -684,14 +684,14 @@ def create_namespaced_virtual_machine_instance_with_http_info(self, body, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstance', + response_type='V1VirtualMachineInstanceMigration', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -699,48 +699,48 @@ def create_namespaced_virtual_machine_instance_with_http_info(self, body, namesp _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_virtual_machine_instance_migration(self, body, namespace, **kwargs): + def create_namespaced_virtual_machine_instance_preset(self, body, namespace, **kwargs): """ - Create a VirtualMachineInstanceMigration object. + Create a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_virtual_machine_instance_migration(body, namespace, callback=callback_function) + >>> thread = api.create_namespaced_virtual_machine_instance_preset(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachineInstanceMigration body: (required) + :param V1VirtualMachineInstancePreset body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachineInstanceMigration + :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, **kwargs) + return self.create_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, **kwargs) else: - (data) = self.create_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, **kwargs) + (data) = self.create_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, **kwargs) return data - def create_namespaced_virtual_machine_instance_migration_with_http_info(self, body, namespace, **kwargs): + def create_namespaced_virtual_machine_instance_preset_with_http_info(self, body, namespace, **kwargs): """ - Create a VirtualMachineInstanceMigration object. + Create a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, callback=callback_function) + >>> thread = api.create_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachineInstanceMigration body: (required) + :param V1VirtualMachineInstancePreset body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachineInstanceMigration + :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ @@ -756,16 +756,16 @@ def create_namespaced_virtual_machine_instance_migration_with_http_info(self, bo if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_virtual_machine_instance_migration" % key + " to method create_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine_instance_preset`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_instance_preset`") collection_formats = {} @@ -795,14 +795,14 @@ def create_namespaced_virtual_machine_instance_migration_with_http_info(self, bo # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceMigration', + response_type='V1VirtualMachineInstancePreset', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -810,48 +810,48 @@ def create_namespaced_virtual_machine_instance_migration_with_http_info(self, bo _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_virtual_machine_instance_preset(self, body, namespace, **kwargs): + def create_namespaced_virtual_machine_instance_replica_set(self, body, namespace, **kwargs): """ - Create a VirtualMachineInstancePreset object. + Create a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_virtual_machine_instance_preset(body, namespace, callback=callback_function) + >>> thread = api.create_namespaced_virtual_machine_instance_replica_set(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachineInstancePreset body: (required) + :param V1VirtualMachineInstanceReplicaSet body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachineInstancePreset + :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, **kwargs) + return self.create_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, **kwargs) else: - (data) = self.create_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, **kwargs) + (data) = self.create_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, **kwargs) return data - def create_namespaced_virtual_machine_instance_preset_with_http_info(self, body, namespace, **kwargs): + def create_namespaced_virtual_machine_instance_replica_set_with_http_info(self, body, namespace, **kwargs): """ - Create a VirtualMachineInstancePreset object. + Create a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, callback=callback_function) + >>> thread = api.create_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachineInstancePreset body: (required) + :param V1VirtualMachineInstanceReplicaSet body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachineInstancePreset + :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ @@ -867,16 +867,16 @@ def create_namespaced_virtual_machine_instance_preset_with_http_info(self, body, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_virtual_machine_instance_preset" % key + " to method create_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine_instance_replica_set`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_instance_replica_set`") collection_formats = {} @@ -906,14 +906,14 @@ def create_namespaced_virtual_machine_instance_preset_with_http_info(self, body, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstancePreset', + response_type='V1VirtualMachineInstanceReplicaSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -921,48 +921,48 @@ def create_namespaced_virtual_machine_instance_preset_with_http_info(self, body, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_virtual_machine_instance_replica_set(self, body, namespace, **kwargs): + def create_namespaced_virtual_machine_instancetype(self, body, namespace, **kwargs): """ - Create a VirtualMachineInstanceReplicaSet object. + Create a VirtualMachineInstancetype object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_virtual_machine_instance_replica_set(body, namespace, callback=callback_function) + >>> thread = api.create_namespaced_virtual_machine_instancetype(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachineInstanceReplicaSet body: (required) + :param V1alpha1VirtualMachineInstancetype body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachineInstanceReplicaSet + :return: V1alpha1VirtualMachineInstancetype If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, **kwargs) + return self.create_namespaced_virtual_machine_instancetype_with_http_info(body, namespace, **kwargs) else: - (data) = self.create_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, **kwargs) + (data) = self.create_namespaced_virtual_machine_instancetype_with_http_info(body, namespace, **kwargs) return data - def create_namespaced_virtual_machine_instance_replica_set_with_http_info(self, body, namespace, **kwargs): + def create_namespaced_virtual_machine_instancetype_with_http_info(self, body, namespace, **kwargs): """ - Create a VirtualMachineInstanceReplicaSet object. + Create a VirtualMachineInstancetype object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, callback=callback_function) + >>> thread = api.create_namespaced_virtual_machine_instancetype_with_http_info(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachineInstanceReplicaSet body: (required) + :param V1alpha1VirtualMachineInstancetype body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachineInstanceReplicaSet + :return: V1alpha1VirtualMachineInstancetype If the method is called asynchronously, returns the request thread. """ @@ -978,16 +978,16 @@ def create_namespaced_virtual_machine_instance_replica_set_with_http_info(self, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_virtual_machine_instance_replica_set" % key + " to method create_namespaced_virtual_machine_instancetype" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine_instancetype`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_instancetype`") collection_formats = {} @@ -1017,14 +1017,14 @@ def create_namespaced_virtual_machine_instance_replica_set_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'POST', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceReplicaSet', + response_type='V1alpha1VirtualMachineInstancetype', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1239,7 +1239,7 @@ def create_namespaced_virtual_machine_preference_with_http_info(self, body, name # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'POST', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'POST', path_params, query_params, header_params, @@ -1691,46 +1691,46 @@ def create_virtual_machine_clone_with_http_info(self, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_virtual_machine_cluster_flavor(self, body, **kwargs): + def create_virtual_machine_cluster_instancetype(self, body, **kwargs): """ - Create a VirtualMachineClusterFlavor object. + Create a VirtualMachineClusterInstancetype object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_virtual_machine_cluster_flavor(body, callback=callback_function) + >>> thread = api.create_virtual_machine_cluster_instancetype(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha1VirtualMachineClusterFlavor body: (required) - :return: V1alpha1VirtualMachineClusterFlavor + :param V1alpha1VirtualMachineClusterInstancetype body: (required) + :return: V1alpha1VirtualMachineClusterInstancetype If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_virtual_machine_cluster_flavor_with_http_info(body, **kwargs) + return self.create_virtual_machine_cluster_instancetype_with_http_info(body, **kwargs) else: - (data) = self.create_virtual_machine_cluster_flavor_with_http_info(body, **kwargs) + (data) = self.create_virtual_machine_cluster_instancetype_with_http_info(body, **kwargs) return data - def create_virtual_machine_cluster_flavor_with_http_info(self, body, **kwargs): + def create_virtual_machine_cluster_instancetype_with_http_info(self, body, **kwargs): """ - Create a VirtualMachineClusterFlavor object. + Create a VirtualMachineClusterInstancetype object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_virtual_machine_cluster_flavor_with_http_info(body, callback=callback_function) + >>> thread = api.create_virtual_machine_cluster_instancetype_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha1VirtualMachineClusterFlavor body: (required) - :return: V1alpha1VirtualMachineClusterFlavor + :param V1alpha1VirtualMachineClusterInstancetype body: (required) + :return: V1alpha1VirtualMachineClusterInstancetype If the method is called asynchronously, returns the request thread. """ @@ -1746,13 +1746,13 @@ def create_virtual_machine_cluster_flavor_with_http_info(self, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_virtual_machine_cluster_flavor" % key + " to method create_virtual_machine_cluster_instancetype" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_virtual_machine_cluster_flavor`") + raise ValueError("Missing the required parameter `body` when calling `create_virtual_machine_cluster_instancetype`") collection_formats = {} @@ -1780,14 +1780,14 @@ def create_virtual_machine_cluster_flavor_with_http_info(self, body, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors', 'POST', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineClusterFlavor', + response_type='V1alpha1VirtualMachineClusterInstancetype', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1884,7 +1884,7 @@ def create_virtual_machine_cluster_preference_with_http_info(self, body, **kwarg # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences', 'POST', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences', 'POST', path_params, query_params, header_params, @@ -2399,16 +2399,16 @@ def delete_collection_namespaced_virtual_machine_export_with_http_info(self, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_virtual_machine_flavor(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instance(self, **kwargs): """ - Delete a collection of VirtualMachineFlavor objects. + Delete a collection of VirtualMachineInstance objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_flavor(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_instance(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2426,21 +2426,21 @@ def delete_collection_namespaced_virtual_machine_flavor(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_virtual_machine_flavor_with_http_info(**kwargs) + return self.delete_collection_namespaced_virtual_machine_instance_with_http_info(**kwargs) else: - (data) = self.delete_collection_namespaced_virtual_machine_flavor_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_instance_with_http_info(**kwargs) return data - def delete_collection_namespaced_virtual_machine_flavor_with_http_info(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instance_with_http_info(self, **kwargs): """ - Delete a collection of VirtualMachineFlavor objects. + Delete a collection of VirtualMachineInstance objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_flavor_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_instance_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2468,7 +2468,7 @@ def delete_collection_namespaced_virtual_machine_flavor_with_http_info(self, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_virtual_machine_flavor" % key + " to method delete_collection_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] @@ -2509,7 +2509,7 @@ def delete_collection_namespaced_virtual_machine_flavor_with_http_info(self, **k # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'DELETE', path_params, query_params, header_params, @@ -2524,16 +2524,16 @@ def delete_collection_namespaced_virtual_machine_flavor_with_http_info(self, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_virtual_machine_instance(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instance_migration(self, **kwargs): """ - Delete a collection of VirtualMachineInstance objects. + Delete a collection of VirtualMachineInstanceMigration objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_instance(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_instance_migration(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2551,21 +2551,21 @@ def delete_collection_namespaced_virtual_machine_instance(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_virtual_machine_instance_with_http_info(**kwargs) + return self.delete_collection_namespaced_virtual_machine_instance_migration_with_http_info(**kwargs) else: - (data) = self.delete_collection_namespaced_virtual_machine_instance_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_instance_migration_with_http_info(**kwargs) return data - def delete_collection_namespaced_virtual_machine_instance_with_http_info(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instance_migration_with_http_info(self, **kwargs): """ - Delete a collection of VirtualMachineInstance objects. + Delete a collection of VirtualMachineInstanceMigration objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_instance_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_instance_migration_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2593,7 +2593,7 @@ def delete_collection_namespaced_virtual_machine_instance_with_http_info(self, * if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_virtual_machine_instance" % key + " to method delete_collection_namespaced_virtual_machine_instance_migration" % key ) params[key] = val del params['kwargs'] @@ -2634,7 +2634,7 @@ def delete_collection_namespaced_virtual_machine_instance_with_http_info(self, * # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'DELETE', path_params, query_params, header_params, @@ -2649,16 +2649,16 @@ def delete_collection_namespaced_virtual_machine_instance_with_http_info(self, * _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_virtual_machine_instance_migration(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instance_preset(self, **kwargs): """ - Delete a collection of VirtualMachineInstanceMigration objects. + Delete a collection of VirtualMachineInstancePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_instance_migration(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_instance_preset(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2676,21 +2676,21 @@ def delete_collection_namespaced_virtual_machine_instance_migration(self, **kwar """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_virtual_machine_instance_migration_with_http_info(**kwargs) + return self.delete_collection_namespaced_virtual_machine_instance_preset_with_http_info(**kwargs) else: - (data) = self.delete_collection_namespaced_virtual_machine_instance_migration_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_instance_preset_with_http_info(**kwargs) return data - def delete_collection_namespaced_virtual_machine_instance_migration_with_http_info(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instance_preset_with_http_info(self, **kwargs): """ - Delete a collection of VirtualMachineInstanceMigration objects. + Delete a collection of VirtualMachineInstancePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_instance_migration_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_instance_preset_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2718,7 +2718,7 @@ def delete_collection_namespaced_virtual_machine_instance_migration_with_http_in if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_virtual_machine_instance_migration" % key + " to method delete_collection_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] @@ -2759,7 +2759,7 @@ def delete_collection_namespaced_virtual_machine_instance_migration_with_http_in # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'DELETE', path_params, query_params, header_params, @@ -2774,16 +2774,16 @@ def delete_collection_namespaced_virtual_machine_instance_migration_with_http_in _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_virtual_machine_instance_preset(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instance_replica_set(self, **kwargs): """ - Delete a collection of VirtualMachineInstancePreset objects. + Delete a collection of VirtualMachineInstanceReplicaSet objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_instance_preset(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_instance_replica_set(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2801,21 +2801,21 @@ def delete_collection_namespaced_virtual_machine_instance_preset(self, **kwargs) """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_virtual_machine_instance_preset_with_http_info(**kwargs) + return self.delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_info(**kwargs) else: - (data) = self.delete_collection_namespaced_virtual_machine_instance_preset_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_info(**kwargs) return data - def delete_collection_namespaced_virtual_machine_instance_preset_with_http_info(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_info(self, **kwargs): """ - Delete a collection of VirtualMachineInstancePreset objects. + Delete a collection of VirtualMachineInstanceReplicaSet objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_instance_preset_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2843,7 +2843,7 @@ def delete_collection_namespaced_virtual_machine_instance_preset_with_http_info( if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_virtual_machine_instance_preset" % key + " to method delete_collection_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] @@ -2884,7 +2884,7 @@ def delete_collection_namespaced_virtual_machine_instance_preset_with_http_info( # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'DELETE', path_params, query_params, header_params, @@ -2899,16 +2899,16 @@ def delete_collection_namespaced_virtual_machine_instance_preset_with_http_info( _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_virtual_machine_instance_replica_set(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instancetype(self, **kwargs): """ - Delete a collection of VirtualMachineInstanceReplicaSet objects. + Delete a collection of VirtualMachineInstancetype objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_instance_replica_set(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_instancetype(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2926,21 +2926,21 @@ def delete_collection_namespaced_virtual_machine_instance_replica_set(self, **kw """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_info(**kwargs) + return self.delete_collection_namespaced_virtual_machine_instancetype_with_http_info(**kwargs) else: - (data) = self.delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_instancetype_with_http_info(**kwargs) return data - def delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_info(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instancetype_with_http_info(self, **kwargs): """ - Delete a collection of VirtualMachineInstanceReplicaSet objects. + Delete a collection of VirtualMachineInstancetype objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_instancetype_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2968,7 +2968,7 @@ def delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_ if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_virtual_machine_instance_replica_set" % key + " to method delete_collection_namespaced_virtual_machine_instancetype" % key ) params[key] = val del params['kwargs'] @@ -3009,7 +3009,7 @@ def delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_ # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes', 'DELETE', path_params, query_params, header_params, @@ -3259,7 +3259,7 @@ def delete_collection_namespaced_virtual_machine_preference_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'DELETE', path_params, query_params, header_params, @@ -3774,16 +3774,16 @@ def delete_collection_virtual_machine_clone_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_virtual_machine_cluster_flavor(self, **kwargs): + def delete_collection_virtual_machine_cluster_instancetype(self, **kwargs): """ - Delete a collection of VirtualMachineClusterFlavor objects. + Delete a collection of VirtualMachineClusterInstancetype objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_virtual_machine_cluster_flavor(callback=callback_function) + >>> thread = api.delete_collection_virtual_machine_cluster_instancetype(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3801,21 +3801,21 @@ def delete_collection_virtual_machine_cluster_flavor(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_virtual_machine_cluster_flavor_with_http_info(**kwargs) + return self.delete_collection_virtual_machine_cluster_instancetype_with_http_info(**kwargs) else: - (data) = self.delete_collection_virtual_machine_cluster_flavor_with_http_info(**kwargs) + (data) = self.delete_collection_virtual_machine_cluster_instancetype_with_http_info(**kwargs) return data - def delete_collection_virtual_machine_cluster_flavor_with_http_info(self, **kwargs): + def delete_collection_virtual_machine_cluster_instancetype_with_http_info(self, **kwargs): """ - Delete a collection of VirtualMachineClusterFlavor objects. + Delete a collection of VirtualMachineClusterInstancetype objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_collection_virtual_machine_cluster_flavor_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_virtual_machine_cluster_instancetype_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3843,7 +3843,7 @@ def delete_collection_virtual_machine_cluster_flavor_with_http_info(self, **kwar if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_virtual_machine_cluster_flavor" % key + " to method delete_collection_virtual_machine_cluster_instancetype" % key ) params[key] = val del params['kwargs'] @@ -3884,7 +3884,7 @@ def delete_collection_virtual_machine_cluster_flavor_with_http_info(self, **kwar # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes', 'DELETE', path_params, query_params, header_params, @@ -4009,7 +4009,7 @@ def delete_collection_virtual_machine_cluster_preference_with_http_info(self, ** # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences', 'DELETE', path_params, query_params, header_params, @@ -4537,16 +4537,16 @@ def delete_namespaced_virtual_machine_export_with_http_info(self, name, namespac _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_flavor(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineFlavor object. + Delete a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_flavor(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4562,21 +4562,21 @@ def delete_namespaced_virtual_machine_flavor(self, name, namespace, body, **kwar """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_flavor_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_flavor_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_flavor_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineFlavor object. + Delete a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_flavor_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4602,19 +4602,19 @@ def delete_namespaced_virtual_machine_flavor_with_http_info(self, name, namespac if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_flavor" % key + " to method delete_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_flavor`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_flavor`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_flavor`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance`") collection_formats = {} @@ -4652,7 +4652,7 @@ def delete_namespaced_virtual_machine_flavor_with_http_info(self, name, namespac # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -4667,16 +4667,16 @@ def delete_namespaced_virtual_machine_flavor_with_http_info(self, name, namespac _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstance object. + Delete a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4692,21 +4692,21 @@ def delete_namespaced_virtual_machine_instance(self, name, namespace, body, **kw """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstance object. + Delete a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4732,19 +4732,19 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namesp if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_instance" % key + " to method delete_namespaced_virtual_machine_instance_migration" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance_migration`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_migration`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_migration`") collection_formats = {} @@ -4782,7 +4782,7 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -4797,16 +4797,16 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namesp _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_instance_preset(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstanceMigration object. + Delete a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_preset(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4822,21 +4822,21 @@ def delete_namespaced_virtual_machine_instance_migration(self, name, namespace, """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstanceMigration object. + Delete a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4862,19 +4862,19 @@ def delete_namespaced_virtual_machine_instance_migration_with_http_info(self, na if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_instance_migration" % key + " to method delete_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance_preset`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_preset`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_preset`") collection_formats = {} @@ -4912,7 +4912,7 @@ def delete_namespaced_virtual_machine_instance_migration_with_http_info(self, na # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -4927,16 +4927,16 @@ def delete_namespaced_virtual_machine_instance_migration_with_http_info(self, na _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_instance_preset(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstancePreset object. + Delete a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_preset(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4952,21 +4952,21 @@ def delete_namespaced_virtual_machine_instance_preset(self, name, namespace, bod """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstancePreset object. + Delete a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4992,19 +4992,19 @@ def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, name, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_instance_preset" % key + " to method delete_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance_replica_set`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_replica_set`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_replica_set`") collection_formats = {} @@ -5042,7 +5042,7 @@ def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, name, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -5057,16 +5057,16 @@ def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, name, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_instancetype(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstanceReplicaSet object. + Delete a VirtualMachineInstancetype object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instancetype(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5082,21 +5082,21 @@ def delete_namespaced_virtual_machine_instance_replica_set(self, name, namespace """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_instancetype_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_virtual_machine_instancetype_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_instancetype_with_http_info(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstanceReplicaSet object. + Delete a VirtualMachineInstancetype object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instancetype_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5122,19 +5122,19 @@ def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_instance_replica_set" % key + " to method delete_namespaced_virtual_machine_instancetype" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instancetype`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instancetype`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instancetype`") collection_formats = {} @@ -5172,7 +5172,7 @@ def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -5432,7 +5432,7 @@ def delete_namespaced_virtual_machine_preference_with_http_info(self, name, name # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -5960,16 +5960,16 @@ def delete_virtual_machine_clone_with_http_info(self, name, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_virtual_machine_cluster_flavor(self, name, body, **kwargs): + def delete_virtual_machine_cluster_instancetype(self, name, body, **kwargs): """ - Delete a VirtualMachineClusterFlavor object. + Delete a VirtualMachineClusterInstancetype object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_virtual_machine_cluster_flavor(name, body, callback=callback_function) + >>> thread = api.delete_virtual_machine_cluster_instancetype(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5984,21 +5984,21 @@ def delete_virtual_machine_cluster_flavor(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_virtual_machine_cluster_flavor_with_http_info(name, body, **kwargs) + return self.delete_virtual_machine_cluster_instancetype_with_http_info(name, body, **kwargs) else: - (data) = self.delete_virtual_machine_cluster_flavor_with_http_info(name, body, **kwargs) + (data) = self.delete_virtual_machine_cluster_instancetype_with_http_info(name, body, **kwargs) return data - def delete_virtual_machine_cluster_flavor_with_http_info(self, name, body, **kwargs): + def delete_virtual_machine_cluster_instancetype_with_http_info(self, name, body, **kwargs): """ - Delete a VirtualMachineClusterFlavor object. + Delete a VirtualMachineClusterInstancetype object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_virtual_machine_cluster_flavor_with_http_info(name, body, callback=callback_function) + >>> thread = api.delete_virtual_machine_cluster_instancetype_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -6023,16 +6023,16 @@ def delete_virtual_machine_cluster_flavor_with_http_info(self, name, body, **kwa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_virtual_machine_cluster_flavor" % key + " to method delete_virtual_machine_cluster_instancetype" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_virtual_machine_cluster_flavor`") + raise ValueError("Missing the required parameter `name` when calling `delete_virtual_machine_cluster_instancetype`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_virtual_machine_cluster_flavor`") + raise ValueError("Missing the required parameter `body` when calling `delete_virtual_machine_cluster_instancetype`") collection_formats = {} @@ -6068,7 +6068,7 @@ def delete_virtual_machine_cluster_flavor_with_http_info(self, name, body, **kwa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -6191,7 +6191,7 @@ def delete_virtual_machine_cluster_preference_with_http_info(self, name, body, * # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -6572,7 +6572,7 @@ def get_api_group_export_kubevirt_io_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_group_flavor_kubevirt_io(self, **kwargs): + def get_api_group_instancetype_kubevirt_io(self, **kwargs): """ Get a KubeVirt API group This method makes a synchronous HTTP request by default. To make an @@ -6581,7 +6581,7 @@ def get_api_group_flavor_kubevirt_io(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_group_flavor_kubevirt_io(callback=callback_function) + >>> thread = api.get_api_group_instancetype_kubevirt_io(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -6591,12 +6591,12 @@ def get_api_group_flavor_kubevirt_io(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_group_flavor_kubevirt_io_with_http_info(**kwargs) + return self.get_api_group_instancetype_kubevirt_io_with_http_info(**kwargs) else: - (data) = self.get_api_group_flavor_kubevirt_io_with_http_info(**kwargs) + (data) = self.get_api_group_instancetype_kubevirt_io_with_http_info(**kwargs) return data - def get_api_group_flavor_kubevirt_io_with_http_info(self, **kwargs): + def get_api_group_instancetype_kubevirt_io_with_http_info(self, **kwargs): """ Get a KubeVirt API group This method makes a synchronous HTTP request by default. To make an @@ -6605,7 +6605,7 @@ def get_api_group_flavor_kubevirt_io_with_http_info(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_group_flavor_kubevirt_io_with_http_info(callback=callback_function) + >>> thread = api.get_api_group_instancetype_kubevirt_io_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -6625,7 +6625,7 @@ def get_api_group_flavor_kubevirt_io_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_group_flavor_kubevirt_io" % key + " to method get_api_group_instancetype_kubevirt_io" % key ) params[key] = val del params['kwargs'] @@ -6649,7 +6649,7 @@ def get_api_group_flavor_kubevirt_io_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/', 'GET', path_params, query_params, header_params, @@ -7308,7 +7308,7 @@ def get_api_resources_export_kubevirt_io_v1alpha1_with_http_info(self, **kwargs) _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_resources_flavor_kubevirt_io_v1alpha1(self, **kwargs): + def get_api_resources_instancetype_kubevirt_io_v1alpha1(self, **kwargs): """ Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an @@ -7317,7 +7317,7 @@ def get_api_resources_flavor_kubevirt_io_v1alpha1(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_flavor_kubevirt_io_v1alpha1(callback=callback_function) + >>> thread = api.get_api_resources_instancetype_kubevirt_io_v1alpha1(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7327,12 +7327,12 @@ def get_api_resources_flavor_kubevirt_io_v1alpha1(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_resources_flavor_kubevirt_io_v1alpha1_with_http_info(**kwargs) + return self.get_api_resources_instancetype_kubevirt_io_v1alpha1_with_http_info(**kwargs) else: - (data) = self.get_api_resources_flavor_kubevirt_io_v1alpha1_with_http_info(**kwargs) + (data) = self.get_api_resources_instancetype_kubevirt_io_v1alpha1_with_http_info(**kwargs) return data - def get_api_resources_flavor_kubevirt_io_v1alpha1_with_http_info(self, **kwargs): + def get_api_resources_instancetype_kubevirt_io_v1alpha1_with_http_info(self, **kwargs): """ Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an @@ -7341,7 +7341,7 @@ def get_api_resources_flavor_kubevirt_io_v1alpha1_with_http_info(self, **kwargs) >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_flavor_kubevirt_io_v1alpha1_with_http_info(callback=callback_function) + >>> thread = api.get_api_resources_instancetype_kubevirt_io_v1alpha1_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7361,7 +7361,7 @@ def get_api_resources_flavor_kubevirt_io_v1alpha1_with_http_info(self, **kwargs) if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_resources_flavor_kubevirt_io_v1alpha1" % key + " to method get_api_resources_instancetype_kubevirt_io_v1alpha1" % key ) params[key] = val del params['kwargs'] @@ -7385,7 +7385,7 @@ def get_api_resources_flavor_kubevirt_io_v1alpha1_with_http_info(self, **kwargs) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/', 'GET', path_params, query_params, header_params, @@ -8770,16 +8770,16 @@ def list_namespaced_virtual_machine_export_with_http_info(self, namespace, **kwa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_flavor(self, namespace, **kwargs): + def list_namespaced_virtual_machine_instance(self, namespace, **kwargs): """ - Get a list of VirtualMachineFlavor objects. + Get a list of VirtualMachineInstance objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_flavor(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -8792,27 +8792,27 @@ def list_namespaced_virtual_machine_flavor(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineFlavorList + :return: V1VirtualMachineInstanceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_flavor_with_http_info(namespace, **kwargs) + return self.list_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_virtual_machine_flavor_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) return data - def list_namespaced_virtual_machine_flavor_with_http_info(self, namespace, **kwargs): + def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **kwargs): """ - Get a list of VirtualMachineFlavor objects. + Get a list of VirtualMachineInstance objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_flavor_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -8825,7 +8825,7 @@ def list_namespaced_virtual_machine_flavor_with_http_info(self, namespace, **kwa :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineFlavorList + :return: V1VirtualMachineInstanceList If the method is called asynchronously, returns the request thread. """ @@ -8841,13 +8841,13 @@ def list_namespaced_virtual_machine_flavor_with_http_info(self, namespace, **kwa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_flavor" % key + " to method list_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_flavor`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance`") collection_formats = {} @@ -8887,14 +8887,14 @@ def list_namespaced_virtual_machine_flavor_with_http_info(self, namespace, **kwa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineFlavorList', + response_type='V1VirtualMachineInstanceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8902,16 +8902,16 @@ def list_namespaced_virtual_machine_flavor_with_http_info(self, namespace, **kwa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_instance(self, namespace, **kwargs): + def list_namespaced_virtual_machine_instance_migration(self, namespace, **kwargs): """ - Get a list of VirtualMachineInstance objects. + Get a list of VirtualMachineInstanceMigration objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_migration(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -8924,27 +8924,27 @@ def list_namespaced_virtual_machine_instance(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceList + :return: V1VirtualMachineInstanceMigrationList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) + return self.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) return data - def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **kwargs): + def list_namespaced_virtual_machine_instance_migration_with_http_info(self, namespace, **kwargs): """ - Get a list of VirtualMachineInstance objects. + Get a list of VirtualMachineInstanceMigration objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -8957,7 +8957,7 @@ def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **k :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceList + :return: V1VirtualMachineInstanceMigrationList If the method is called asynchronously, returns the request thread. """ @@ -8973,13 +8973,13 @@ def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_instance" % key + " to method list_namespaced_virtual_machine_instance_migration" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_migration`") collection_formats = {} @@ -9019,14 +9019,14 @@ def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **k # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceList', + response_type='V1VirtualMachineInstanceMigrationList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9034,16 +9034,16 @@ def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_instance_migration(self, namespace, **kwargs): + def list_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): """ - Get a list of VirtualMachineInstanceMigration objects. + Get a list of VirtualMachineInstancePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_migration(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_preset(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -9056,27 +9056,27 @@ def list_namespaced_virtual_machine_instance_migration(self, namespace, **kwargs :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceMigrationList + :return: V1VirtualMachineInstancePresetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) + return self.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) return data - def list_namespaced_virtual_machine_instance_migration_with_http_info(self, namespace, **kwargs): + def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespace, **kwargs): """ - Get a list of VirtualMachineInstanceMigration objects. + Get a list of VirtualMachineInstancePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_migration_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -9089,7 +9089,7 @@ def list_namespaced_virtual_machine_instance_migration_with_http_info(self, name :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceMigrationList + :return: V1VirtualMachineInstancePresetList If the method is called asynchronously, returns the request thread. """ @@ -9105,13 +9105,13 @@ def list_namespaced_virtual_machine_instance_migration_with_http_info(self, name if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_instance_migration" % key + " to method list_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_preset`") collection_formats = {} @@ -9151,14 +9151,14 @@ def list_namespaced_virtual_machine_instance_migration_with_http_info(self, name # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceMigrationList', + response_type='V1VirtualMachineInstancePresetList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9166,16 +9166,16 @@ def list_namespaced_virtual_machine_instance_migration_with_http_info(self, name _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): + def list_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwargs): """ - Get a list of VirtualMachineInstancePreset objects. + Get a list of VirtualMachineInstanceReplicaSet objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_preset(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_replica_set(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -9188,27 +9188,27 @@ def list_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstancePresetList + :return: V1VirtualMachineInstanceReplicaSetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) + return self.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) return data - def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespace, **kwargs): + def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, namespace, **kwargs): """ - Get a list of VirtualMachineInstancePreset objects. + Get a list of VirtualMachineInstanceReplicaSet objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -9221,7 +9221,7 @@ def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespa :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstancePresetList + :return: V1VirtualMachineInstanceReplicaSetList If the method is called asynchronously, returns the request thread. """ @@ -9237,13 +9237,13 @@ def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_instance_preset" % key + " to method list_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_replica_set`") collection_formats = {} @@ -9283,14 +9283,14 @@ def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstancePresetList', + response_type='V1VirtualMachineInstanceReplicaSetList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9298,16 +9298,16 @@ def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwargs): + def list_namespaced_virtual_machine_instancetype(self, namespace, **kwargs): """ - Get a list of VirtualMachineInstanceReplicaSet objects. + Get a list of VirtualMachineInstancetype objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_replica_set(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instancetype(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -9320,27 +9320,27 @@ def list_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwar :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceReplicaSetList + :return: V1alpha1VirtualMachineInstancetypeList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) + return self.list_namespaced_virtual_machine_instancetype_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_virtual_machine_instancetype_with_http_info(namespace, **kwargs) return data - def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, namespace, **kwargs): + def list_namespaced_virtual_machine_instancetype_with_http_info(self, namespace, **kwargs): """ - Get a list of VirtualMachineInstanceReplicaSet objects. + Get a list of VirtualMachineInstancetype objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_instancetype_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -9353,7 +9353,7 @@ def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceReplicaSetList + :return: V1alpha1VirtualMachineInstancetypeList If the method is called asynchronously, returns the request thread. """ @@ -9369,13 +9369,13 @@ def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine_instance_replica_set" % key + " to method list_namespaced_virtual_machine_instancetype" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_instancetype`") collection_formats = {} @@ -9415,14 +9415,14 @@ def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceReplicaSetList', + response_type='V1alpha1VirtualMachineInstancetypeList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9679,7 +9679,7 @@ def list_namespaced_virtual_machine_preference_with_http_info(self, namespace, * # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'GET', path_params, query_params, header_params, @@ -10215,16 +10215,16 @@ def list_virtual_machine_clone_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_cluster_flavor(self, **kwargs): + def list_virtual_machine_cluster_instancetype(self, **kwargs): """ - Get a list of VirtualMachineClusterFlavor objects. + Get a list of VirtualMachineClusterInstancetype objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_cluster_flavor(callback=callback_function) + >>> thread = api.list_virtual_machine_cluster_instancetype(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -10236,27 +10236,27 @@ def list_virtual_machine_cluster_flavor(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineClusterFlavorList + :return: V1alpha1VirtualMachineClusterInstancetypeList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_cluster_flavor_with_http_info(**kwargs) + return self.list_virtual_machine_cluster_instancetype_with_http_info(**kwargs) else: - (data) = self.list_virtual_machine_cluster_flavor_with_http_info(**kwargs) + (data) = self.list_virtual_machine_cluster_instancetype_with_http_info(**kwargs) return data - def list_virtual_machine_cluster_flavor_with_http_info(self, **kwargs): + def list_virtual_machine_cluster_instancetype_with_http_info(self, **kwargs): """ - Get a list of VirtualMachineClusterFlavor objects. + Get a list of VirtualMachineClusterInstancetype objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_cluster_flavor_with_http_info(callback=callback_function) + >>> thread = api.list_virtual_machine_cluster_instancetype_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -10268,7 +10268,7 @@ def list_virtual_machine_cluster_flavor_with_http_info(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineClusterFlavorList + :return: V1alpha1VirtualMachineClusterInstancetypeList If the method is called asynchronously, returns the request thread. """ @@ -10284,7 +10284,7 @@ def list_virtual_machine_cluster_flavor_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_cluster_flavor" % key + " to method list_virtual_machine_cluster_instancetype" % key ) params[key] = val del params['kwargs'] @@ -10325,14 +10325,14 @@ def list_virtual_machine_cluster_flavor_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineClusterFlavorList', + response_type='V1alpha1VirtualMachineClusterInstancetypeList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10450,7 +10450,7 @@ def list_virtual_machine_cluster_preference_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences', 'GET', path_params, query_params, header_params, @@ -10590,16 +10590,16 @@ def list_virtual_machine_export_for_all_namespaces_with_http_info(self, **kwargs _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_flavor_for_all_namespaces(self, **kwargs): + def list_virtual_machine_for_all_namespaces(self, **kwargs): """ - Get a list of all VirtualMachineFlavor objects. + Get a list of all VirtualMachine objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_flavor_for_all_namespaces(callback=callback_function) + >>> thread = api.list_virtual_machine_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -10611,27 +10611,27 @@ def list_virtual_machine_flavor_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineFlavorList + :return: V1VirtualMachineList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_flavor_for_all_namespaces_with_http_info(**kwargs) + return self.list_virtual_machine_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_virtual_machine_flavor_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_virtual_machine_for_all_namespaces_with_http_info(**kwargs) return data - def list_virtual_machine_flavor_for_all_namespaces_with_http_info(self, **kwargs): + def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): """ - Get a list of all VirtualMachineFlavor objects. + Get a list of all VirtualMachine objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_flavor_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_virtual_machine_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -10643,7 +10643,7 @@ def list_virtual_machine_flavor_for_all_namespaces_with_http_info(self, **kwargs :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineFlavorList + :return: V1VirtualMachineList If the method is called asynchronously, returns the request thread. """ @@ -10659,7 +10659,7 @@ def list_virtual_machine_flavor_for_all_namespaces_with_http_info(self, **kwargs if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_flavor_for_all_namespaces" % key + " to method list_virtual_machine_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -10700,14 +10700,14 @@ def list_virtual_machine_flavor_for_all_namespaces_with_http_info(self, **kwargs # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineflavors', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/virtualmachines', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineFlavorList', + response_type='V1VirtualMachineList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10715,16 +10715,16 @@ def list_virtual_machine_flavor_for_all_namespaces_with_http_info(self, **kwargs _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_for_all_namespaces(self, **kwargs): + def list_virtual_machine_instance_for_all_namespaces(self, **kwargs): """ - Get a list of all VirtualMachine objects. + Get a list of all VirtualMachineInstance objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_for_all_namespaces(callback=callback_function) + >>> thread = api.list_virtual_machine_instance_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -10736,27 +10736,27 @@ def list_virtual_machine_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :return: V1VirtualMachineInstanceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_for_all_namespaces_with_http_info(**kwargs) + return self.list_virtual_machine_instance_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_virtual_machine_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_virtual_machine_instance_for_all_namespaces_with_http_info(**kwargs) return data - def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): + def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwargs): """ - Get a list of all VirtualMachine objects. + Get a list of all VirtualMachineInstance objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_virtual_machine_instance_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -10768,7 +10768,7 @@ def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :return: V1VirtualMachineInstanceList If the method is called asynchronously, returns the request thread. """ @@ -10784,7 +10784,7 @@ def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_for_all_namespaces" % key + " to method list_virtual_machine_instance_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -10825,14 +10825,14 @@ def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/virtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/virtualmachineinstances', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineList', + response_type='V1VirtualMachineInstanceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10840,16 +10840,16 @@ def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_instance_for_all_namespaces(self, **kwargs): + def list_virtual_machine_instance_migration_for_all_namespaces(self, **kwargs): """ - Get a list of all VirtualMachineInstance objects. + Get a list of all VirtualMachineInstanceMigration objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_for_all_namespaces(callback=callback_function) + >>> thread = api.list_virtual_machine_instance_migration_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -10861,27 +10861,27 @@ def list_virtual_machine_instance_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceList + :return: V1VirtualMachineInstanceMigrationList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_instance_for_all_namespaces_with_http_info(**kwargs) + return self.list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_virtual_machine_instance_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(**kwargs) return data - def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwargs): + def list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(self, **kwargs): """ - Get a list of all VirtualMachineInstance objects. + Get a list of all VirtualMachineInstanceMigration objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -10893,7 +10893,7 @@ def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwar :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceList + :return: V1VirtualMachineInstanceMigrationList If the method is called asynchronously, returns the request thread. """ @@ -10909,7 +10909,7 @@ def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwar if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_instance_for_all_namespaces" % key + " to method list_virtual_machine_instance_migration_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -10950,14 +10950,14 @@ def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwar # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/virtualmachineinstances', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/virtualmachineinstancemigrations', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceList', + response_type='V1VirtualMachineInstanceMigrationList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10965,16 +10965,16 @@ def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_instance_migration_for_all_namespaces(self, **kwargs): + def list_virtual_machine_instance_preset_for_all_namespaces(self, **kwargs): """ - Get a list of all VirtualMachineInstanceMigration objects. + Get a list of all VirtualMachineInstancePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_migration_for_all_namespaces(callback=callback_function) + >>> thread = api.list_virtual_machine_instance_preset_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -10986,27 +10986,27 @@ def list_virtual_machine_instance_migration_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceMigrationList + :return: V1VirtualMachineInstancePresetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(**kwargs) + return self.list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(**kwargs) return data - def list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(self, **kwargs): + def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, **kwargs): """ - Get a list of all VirtualMachineInstanceMigration objects. + Get a list of all VirtualMachineInstancePreset objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -11018,7 +11018,7 @@ def list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(se :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceMigrationList + :return: V1VirtualMachineInstancePresetList If the method is called asynchronously, returns the request thread. """ @@ -11034,7 +11034,7 @@ def list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(se if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_instance_migration_for_all_namespaces" % key + " to method list_virtual_machine_instance_preset_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -11075,14 +11075,14 @@ def list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(se # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/virtualmachineinstancemigrations', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/virtualmachineinstancepresets', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceMigrationList', + response_type='V1VirtualMachineInstancePresetList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11090,16 +11090,16 @@ def list_virtual_machine_instance_migration_for_all_namespaces_with_http_info(se _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_instance_preset_for_all_namespaces(self, **kwargs): + def list_virtual_machine_instance_replica_set_for_all_namespaces(self, **kwargs): """ - Get a list of all VirtualMachineInstancePreset objects. + Get a list of all VirtualMachineInstanceReplicaSet objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_preset_for_all_namespaces(callback=callback_function) + >>> thread = api.list_virtual_machine_instance_replica_set_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -11111,27 +11111,27 @@ def list_virtual_machine_instance_preset_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstancePresetList + :return: V1VirtualMachineInstanceReplicaSetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(**kwargs) + return self.list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(**kwargs) return data - def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, **kwargs): + def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(self, **kwargs): """ - Get a list of all VirtualMachineInstancePreset objects. + Get a list of all VirtualMachineInstanceReplicaSet objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -11143,7 +11143,7 @@ def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstancePresetList + :return: V1VirtualMachineInstanceReplicaSetList If the method is called asynchronously, returns the request thread. """ @@ -11159,7 +11159,7 @@ def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_instance_preset_for_all_namespaces" % key + " to method list_virtual_machine_instance_replica_set_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -11200,14 +11200,14 @@ def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstancePresetList', + response_type='V1VirtualMachineInstanceReplicaSetList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11215,16 +11215,16 @@ def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_instance_replica_set_for_all_namespaces(self, **kwargs): + def list_virtual_machine_instancetype_for_all_namespaces(self, **kwargs): """ - Get a list of all VirtualMachineInstanceReplicaSet objects. + Get a list of all VirtualMachineInstancetype objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_replica_set_for_all_namespaces(callback=callback_function) + >>> thread = api.list_virtual_machine_instancetype_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -11236,27 +11236,27 @@ def list_virtual_machine_instance_replica_set_for_all_namespaces(self, **kwargs) :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceReplicaSetList + :return: V1alpha1VirtualMachineInstancetypeList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(**kwargs) + return self.list_virtual_machine_instancetype_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_virtual_machine_instancetype_for_all_namespaces_with_http_info(**kwargs) return data - def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(self, **kwargs): + def list_virtual_machine_instancetype_for_all_namespaces_with_http_info(self, **kwargs): """ - Get a list of all VirtualMachineInstanceReplicaSet objects. + Get a list of all VirtualMachineInstancetype objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_virtual_machine_instancetype_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -11268,7 +11268,7 @@ def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info( :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineInstanceReplicaSetList + :return: V1alpha1VirtualMachineInstancetypeList If the method is called asynchronously, returns the request thread. """ @@ -11284,7 +11284,7 @@ def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info( if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_instance_replica_set_for_all_namespaces" % key + " to method list_virtual_machine_instancetype_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -11325,14 +11325,14 @@ def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info( # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineinstancetypes', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceReplicaSetList', + response_type='V1alpha1VirtualMachineInstancetypeList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11575,7 +11575,7 @@ def list_virtual_machine_preference_for_all_namespaces_with_http_info(self, **kw # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachinepreferences', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachinepreferences', 'GET', path_params, query_params, header_params, @@ -12430,50 +12430,50 @@ def patch_namespaced_virtual_machine_export_with_http_info(self, name, namespace _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_flavor(self, name, namespace, body, **kwargs): + def patch_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): """ - Patch a VirtualMachineFlavor object. + Patch a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_flavor(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineFlavor + :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_flavor_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_flavor_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_virtual_machine_flavor_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): """ - Patch a VirtualMachineFlavor object. + Patch a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_flavor_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineFlavor + :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ @@ -12489,19 +12489,19 @@ def patch_namespaced_virtual_machine_flavor_with_http_info(self, name, namespace if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine_flavor" % key + " to method patch_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_flavor`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_flavor`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_flavor`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance`") collection_formats = {} @@ -12533,14 +12533,14 @@ def patch_namespaced_virtual_machine_flavor_with_http_info(self, name, namespace # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineFlavor', + response_type='V1VirtualMachineInstance', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12548,50 +12548,50 @@ def patch_namespaced_virtual_machine_flavor_with_http_info(self, name, namespace _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): + def patch_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): """ - Patch a VirtualMachineInstance object. + Patch a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachineInstance + :return: V1VirtualMachineInstanceMigration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, body, **kwargs): """ - Patch a VirtualMachineInstance object. + Patch a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachineInstance + :return: V1VirtualMachineInstanceMigration If the method is called asynchronously, returns the request thread. """ @@ -12607,19 +12607,19 @@ def patch_namespaced_virtual_machine_instance_with_http_info(self, name, namespa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine_instance" % key + " to method patch_namespaced_virtual_machine_instance_migration" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_migration`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_migration`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_migration`") collection_formats = {} @@ -12651,14 +12651,14 @@ def patch_namespaced_virtual_machine_instance_with_http_info(self, name, namespa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstance', + response_type='V1VirtualMachineInstanceMigration', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12666,50 +12666,50 @@ def patch_namespaced_virtual_machine_instance_with_http_info(self, name, namespa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): + def patch_namespaced_virtual_machine_instance_preset(self, name, namespace, body, **kwargs): """ - Patch a VirtualMachineInstanceMigration object. + Patch a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance_preset(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachineInstanceMigration + :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, body, **kwargs): """ - Patch a VirtualMachineInstanceMigration object. + Patch a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachineInstanceMigration + :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ @@ -12725,19 +12725,19 @@ def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine_instance_migration" % key + " to method patch_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_preset`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_preset`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_preset`") collection_formats = {} @@ -12769,14 +12769,14 @@ def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceMigration', + response_type='V1VirtualMachineInstancePreset', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12784,50 +12784,50 @@ def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_instance_preset(self, name, namespace, body, **kwargs): + def patch_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): """ - Patch a VirtualMachineInstancePreset object. + Patch a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_preset(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachineInstancePreset + :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): """ - Patch a VirtualMachineInstancePreset object. + Patch a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachineInstancePreset + :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ @@ -12843,19 +12843,19 @@ def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine_instance_preset" % key + " to method patch_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_replica_set`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_replica_set`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_replica_set`") collection_formats = {} @@ -12887,14 +12887,14 @@ def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstancePreset', + response_type='V1VirtualMachineInstanceReplicaSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12902,50 +12902,50 @@ def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): + def patch_namespaced_virtual_machine_instancetype(self, name, namespace, body, **kwargs): """ - Patch a VirtualMachineInstanceReplicaSet object. + Patch a VirtualMachineInstancetype object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instancetype(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachineInstanceReplicaSet + :return: V1alpha1VirtualMachineInstancetype If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_virtual_machine_instancetype_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_virtual_machine_instancetype_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_virtual_machine_instancetype_with_http_info(self, name, namespace, body, **kwargs): """ - Patch a VirtualMachineInstanceReplicaSet object. + Patch a VirtualMachineInstancetype object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_instancetype_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachineInstanceReplicaSet + :return: V1alpha1VirtualMachineInstancetype If the method is called asynchronously, returns the request thread. """ @@ -12961,19 +12961,19 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine_instance_replica_set" % key + " to method patch_namespaced_virtual_machine_instancetype" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_instancetype`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_instancetype`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_instancetype`") collection_formats = {} @@ -13005,14 +13005,14 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceReplicaSet', + response_type='V1alpha1VirtualMachineInstancetype', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13241,7 +13241,7 @@ def patch_namespaced_virtual_machine_preference_with_http_info(self, name, names # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, @@ -13721,48 +13721,48 @@ def patch_virtual_machine_clone_with_http_info(self, name, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_virtual_machine_cluster_flavor(self, name, body, **kwargs): + def patch_virtual_machine_cluster_instancetype(self, name, body, **kwargs): """ - Patch a VirtualMachineClusterFlavor object. + Patch a VirtualMachineClusterInstancetype object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_virtual_machine_cluster_flavor(name, body, callback=callback_function) + >>> thread = api.patch_virtual_machine_cluster_instancetype(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineClusterFlavor + :return: V1alpha1VirtualMachineClusterInstancetype If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_virtual_machine_cluster_flavor_with_http_info(name, body, **kwargs) + return self.patch_virtual_machine_cluster_instancetype_with_http_info(name, body, **kwargs) else: - (data) = self.patch_virtual_machine_cluster_flavor_with_http_info(name, body, **kwargs) + (data) = self.patch_virtual_machine_cluster_instancetype_with_http_info(name, body, **kwargs) return data - def patch_virtual_machine_cluster_flavor_with_http_info(self, name, body, **kwargs): + def patch_virtual_machine_cluster_instancetype_with_http_info(self, name, body, **kwargs): """ - Patch a VirtualMachineClusterFlavor object. + Patch a VirtualMachineClusterInstancetype object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_virtual_machine_cluster_flavor_with_http_info(name, body, callback=callback_function) + >>> thread = api.patch_virtual_machine_cluster_instancetype_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineClusterFlavor + :return: V1alpha1VirtualMachineClusterInstancetype If the method is called asynchronously, returns the request thread. """ @@ -13778,16 +13778,16 @@ def patch_virtual_machine_cluster_flavor_with_http_info(self, name, body, **kwar if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_virtual_machine_cluster_flavor" % key + " to method patch_virtual_machine_cluster_instancetype" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_virtual_machine_cluster_flavor`") + raise ValueError("Missing the required parameter `name` when calling `patch_virtual_machine_cluster_instancetype`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_virtual_machine_cluster_flavor`") + raise ValueError("Missing the required parameter `body` when calling `patch_virtual_machine_cluster_instancetype`") collection_formats = {} @@ -13817,14 +13817,14 @@ def patch_virtual_machine_cluster_flavor_with_http_info(self, name, body, **kwar # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineClusterFlavor', + response_type='V1alpha1VirtualMachineClusterInstancetype', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13928,7 +13928,7 @@ def patch_virtual_machine_cluster_preference_with_http_info(self, name, body, ** # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, @@ -14396,16 +14396,16 @@ def read_namespaced_virtual_machine_export_with_http_info(self, name, namespace, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_flavor(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_instance(self, name, namespace, **kwargs): """ - Get a VirtualMachineFlavor object. + Get a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_flavor(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_instance(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -14413,27 +14413,27 @@ def read_namespaced_virtual_machine_flavor(self, name, namespace, **kwargs): :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineFlavor + :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_flavor_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_flavor_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_virtual_machine_flavor_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, **kwargs): """ - Get a VirtualMachineFlavor object. + Get a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_flavor_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -14441,7 +14441,7 @@ def read_namespaced_virtual_machine_flavor_with_http_info(self, name, namespace, :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineFlavor + :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ @@ -14457,16 +14457,16 @@ def read_namespaced_virtual_machine_flavor_with_http_info(self, name, namespace, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_flavor" % key + " to method read_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_flavor`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_flavor`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance`") collection_formats = {} @@ -14496,14 +14496,14 @@ def read_namespaced_virtual_machine_flavor_with_http_info(self, name, namespace, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineFlavor', + response_type='V1VirtualMachineInstance', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -14511,16 +14511,16 @@ def read_namespaced_virtual_machine_flavor_with_http_info(self, name, namespace, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_instance(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_instance_migration(self, name, namespace, **kwargs): """ - Get a VirtualMachineInstance object. + Get a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_instance_migration(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -14528,27 +14528,27 @@ def read_namespaced_virtual_machine_instance(self, name, namespace, **kwargs): :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachineInstance + :return: V1VirtualMachineInstanceMigration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, **kwargs): """ - Get a VirtualMachineInstance object. + Get a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -14556,7 +14556,7 @@ def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespac :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachineInstance + :return: V1VirtualMachineInstanceMigration If the method is called asynchronously, returns the request thread. """ @@ -14572,16 +14572,16 @@ def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespac if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_instance" % key + " to method read_namespaced_virtual_machine_instance_migration" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance_migration`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_migration`") collection_formats = {} @@ -14611,14 +14611,14 @@ def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespac # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstance', + response_type='V1VirtualMachineInstanceMigration', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -14626,16 +14626,16 @@ def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespac _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_instance_migration(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_instance_preset(self, name, namespace, **kwargs): """ - Get a VirtualMachineInstanceMigration object. + Get a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance_migration(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_instance_preset(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -14643,27 +14643,27 @@ def read_namespaced_virtual_machine_instance_migration(self, name, namespace, ** :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachineInstanceMigration + :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, **kwargs): """ - Get a VirtualMachineInstanceMigration object. + Get a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -14671,7 +14671,7 @@ def read_namespaced_virtual_machine_instance_migration_with_http_info(self, name :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachineInstanceMigration + :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ @@ -14687,16 +14687,16 @@ def read_namespaced_virtual_machine_instance_migration_with_http_info(self, name if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_instance_migration" % key + " to method read_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance_preset`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_preset`") collection_formats = {} @@ -14726,14 +14726,14 @@ def read_namespaced_virtual_machine_instance_migration_with_http_info(self, name # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceMigration', + response_type='V1VirtualMachineInstancePreset', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -14741,16 +14741,16 @@ def read_namespaced_virtual_machine_instance_migration_with_http_info(self, name _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_instance_preset(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_instance_replica_set(self, name, namespace, **kwargs): """ - Get a VirtualMachineInstancePreset object. + Get a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance_preset(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_instance_replica_set(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -14758,27 +14758,27 @@ def read_namespaced_virtual_machine_instance_preset(self, name, namespace, **kwa :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachineInstancePreset + :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, **kwargs): """ - Get a VirtualMachineInstancePreset object. + Get a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -14786,7 +14786,7 @@ def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, n :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachineInstancePreset + :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ @@ -14802,16 +14802,16 @@ def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, n if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_instance_preset" % key + " to method read_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance_replica_set`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_replica_set`") collection_formats = {} @@ -14841,14 +14841,14 @@ def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, n # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstancePreset', + response_type='V1VirtualMachineInstanceReplicaSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -14856,16 +14856,16 @@ def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, n _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_instance_replica_set(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_instancetype(self, name, namespace, **kwargs): """ - Get a VirtualMachineInstanceReplicaSet object. + Get a VirtualMachineInstancetype object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance_replica_set(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_instancetype(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -14873,27 +14873,27 @@ def read_namespaced_virtual_machine_instance_replica_set(self, name, namespace, :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachineInstanceReplicaSet + :return: V1alpha1VirtualMachineInstancetype If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_virtual_machine_instancetype_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_virtual_machine_instancetype_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_instancetype_with_http_info(self, name, namespace, **kwargs): """ - Get a VirtualMachineInstanceReplicaSet object. + Get a VirtualMachineInstancetype object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_instancetype_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -14901,7 +14901,7 @@ def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachineInstanceReplicaSet + :return: V1alpha1VirtualMachineInstancetype If the method is called asynchronously, returns the request thread. """ @@ -14917,16 +14917,16 @@ def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_instance_replica_set" % key + " to method read_namespaced_virtual_machine_instancetype" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_instancetype`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_instancetype`") collection_formats = {} @@ -14956,14 +14956,14 @@ def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceReplicaSet', + response_type='V1alpha1VirtualMachineInstancetype', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -15186,7 +15186,7 @@ def read_namespaced_virtual_machine_preference_with_http_info(self, name, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, @@ -15654,50 +15654,50 @@ def read_virtual_machine_clone_with_http_info(self, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_virtual_machine_cluster_flavor(self, name, **kwargs): + def read_virtual_machine_cluster_instancetype(self, name, **kwargs): """ - Get a VirtualMachineClusterFlavor object. + Get a VirtualMachineClusterInstancetype object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_virtual_machine_cluster_flavor(name, callback=callback_function) + >>> thread = api.read_virtual_machine_cluster_instancetype(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineClusterFlavor + :return: V1alpha1VirtualMachineClusterInstancetype If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_virtual_machine_cluster_flavor_with_http_info(name, **kwargs) + return self.read_virtual_machine_cluster_instancetype_with_http_info(name, **kwargs) else: - (data) = self.read_virtual_machine_cluster_flavor_with_http_info(name, **kwargs) + (data) = self.read_virtual_machine_cluster_instancetype_with_http_info(name, **kwargs) return data - def read_virtual_machine_cluster_flavor_with_http_info(self, name, **kwargs): + def read_virtual_machine_cluster_instancetype_with_http_info(self, name, **kwargs): """ - Get a VirtualMachineClusterFlavor object. + Get a VirtualMachineClusterInstancetype object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.read_virtual_machine_cluster_flavor_with_http_info(name, callback=callback_function) + >>> thread = api.read_virtual_machine_cluster_instancetype_with_http_info(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineClusterFlavor + :return: V1alpha1VirtualMachineClusterInstancetype If the method is called asynchronously, returns the request thread. """ @@ -15713,13 +15713,13 @@ def read_virtual_machine_cluster_flavor_with_http_info(self, name, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_virtual_machine_cluster_flavor" % key + " to method read_virtual_machine_cluster_instancetype" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_virtual_machine_cluster_flavor`") + raise ValueError("Missing the required parameter `name` when calling `read_virtual_machine_cluster_instancetype`") collection_formats = {} @@ -15747,14 +15747,14 @@ def read_virtual_machine_cluster_flavor_with_http_info(self, name, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineClusterFlavor', + response_type='V1alpha1VirtualMachineClusterInstancetype', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -15855,7 +15855,7 @@ def read_virtual_machine_cluster_preference_with_http_info(self, name, **kwargs) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, @@ -16335,50 +16335,50 @@ def replace_namespaced_virtual_machine_export_with_http_info(self, name, namespa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_flavor(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): """ - Update a VirtualMachineFlavor object. + Update a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_flavor(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachineFlavor body: (required) - :return: V1alpha1VirtualMachineFlavor + :param V1VirtualMachineInstance body: (required) + :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_flavor_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_flavor_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_virtual_machine_flavor_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): """ - Update a VirtualMachineFlavor object. + Update a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_flavor_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachineFlavor body: (required) - :return: V1alpha1VirtualMachineFlavor + :param V1VirtualMachineInstance body: (required) + :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ @@ -16394,19 +16394,19 @@ def replace_namespaced_virtual_machine_flavor_with_http_info(self, name, namespa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_flavor" % key + " to method replace_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_flavor`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_flavor`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_flavor`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance`") collection_formats = {} @@ -16438,14 +16438,14 @@ def replace_namespaced_virtual_machine_flavor_with_http_info(self, name, namespa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineFlavor', + response_type='V1VirtualMachineInstance', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -16453,50 +16453,50 @@ def replace_namespaced_virtual_machine_flavor_with_http_info(self, name, namespa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): """ - Update a VirtualMachineInstance object. + Update a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstance body: (required) - :return: V1VirtualMachineInstance + :param V1VirtualMachineInstanceMigration body: (required) + :return: V1VirtualMachineInstanceMigration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, body, **kwargs): """ - Update a VirtualMachineInstance object. + Update a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstance body: (required) - :return: V1VirtualMachineInstance + :param V1VirtualMachineInstanceMigration body: (required) + :return: V1VirtualMachineInstanceMigration If the method is called asynchronously, returns the request thread. """ @@ -16512,19 +16512,19 @@ def replace_namespaced_virtual_machine_instance_with_http_info(self, name, names if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_instance" % key + " to method replace_namespaced_virtual_machine_instance_migration" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_migration`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_migration`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_migration`") collection_formats = {} @@ -16556,14 +16556,14 @@ def replace_namespaced_virtual_machine_instance_with_http_info(self, name, names # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstance', + response_type='V1VirtualMachineInstanceMigration', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -16571,50 +16571,50 @@ def replace_namespaced_virtual_machine_instance_with_http_info(self, name, names _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_instance_preset(self, name, namespace, body, **kwargs): """ - Update a VirtualMachineInstanceMigration object. + Update a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_preset(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstanceMigration body: (required) - :return: V1VirtualMachineInstanceMigration + :param V1VirtualMachineInstancePreset body: (required) + :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, body, **kwargs): """ - Update a VirtualMachineInstanceMigration object. + Update a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstanceMigration body: (required) - :return: V1VirtualMachineInstanceMigration + :param V1VirtualMachineInstancePreset body: (required) + :return: V1VirtualMachineInstancePreset If the method is called asynchronously, returns the request thread. """ @@ -16630,19 +16630,19 @@ def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, n if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_instance_migration" % key + " to method replace_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_preset`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_preset`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_preset`") collection_formats = {} @@ -16674,14 +16674,14 @@ def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, n # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceMigration', + response_type='V1VirtualMachineInstancePreset', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -16689,50 +16689,50 @@ def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, n _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_instance_preset(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): """ - Update a VirtualMachineInstancePreset object. + Update a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_preset(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstancePreset body: (required) - :return: V1VirtualMachineInstancePreset + :param V1VirtualMachineInstanceReplicaSet body: (required) + :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): """ - Update a VirtualMachineInstancePreset object. + Update a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstancePreset body: (required) - :return: V1VirtualMachineInstancePreset + :param V1VirtualMachineInstanceReplicaSet body: (required) + :return: V1VirtualMachineInstanceReplicaSet If the method is called asynchronously, returns the request thread. """ @@ -16748,19 +16748,19 @@ def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, name if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_instance_preset" % key + " to method replace_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_replica_set`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_replica_set`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_replica_set`") collection_formats = {} @@ -16792,14 +16792,14 @@ def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, name # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstancePreset', + response_type='V1VirtualMachineInstanceReplicaSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -16807,50 +16807,50 @@ def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, name _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine_instance_replica_set(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_instancetype(self, name, namespace, body, **kwargs): """ - Update a VirtualMachineInstanceReplicaSet object. + Update a VirtualMachineInstancetype object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instancetype(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstanceReplicaSet body: (required) - :return: V1VirtualMachineInstanceReplicaSet + :param V1alpha1VirtualMachineInstancetype body: (required) + :return: V1alpha1VirtualMachineInstancetype If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_virtual_machine_instancetype_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_virtual_machine_instancetype_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_instancetype_with_http_info(self, name, namespace, body, **kwargs): """ - Update a VirtualMachineInstanceReplicaSet object. + Update a VirtualMachineInstancetype object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_instancetype_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineInstanceReplicaSet body: (required) - :return: V1VirtualMachineInstanceReplicaSet + :param V1alpha1VirtualMachineInstancetype body: (required) + :return: V1alpha1VirtualMachineInstancetype If the method is called asynchronously, returns the request thread. """ @@ -16866,19 +16866,19 @@ def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine_instance_replica_set" % key + " to method replace_namespaced_virtual_machine_instancetype" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_instancetype`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_instancetype`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_instancetype`") collection_formats = {} @@ -16910,14 +16910,14 @@ def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceReplicaSet', + response_type='V1alpha1VirtualMachineInstancetype', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -17146,7 +17146,7 @@ def replace_namespaced_virtual_machine_preference_with_http_info(self, name, nam # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, @@ -17626,48 +17626,48 @@ def replace_virtual_machine_clone_with_http_info(self, name, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_virtual_machine_cluster_flavor(self, name, body, **kwargs): + def replace_virtual_machine_cluster_instancetype(self, name, body, **kwargs): """ - Update a VirtualMachineClusterFlavor object. + Update a VirtualMachineClusterInstancetype object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_virtual_machine_cluster_flavor(name, body, callback=callback_function) + >>> thread = api.replace_virtual_machine_cluster_instancetype(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param V1alpha1VirtualMachineClusterFlavor body: (required) - :return: V1alpha1VirtualMachineClusterFlavor + :param V1alpha1VirtualMachineClusterInstancetype body: (required) + :return: V1alpha1VirtualMachineClusterInstancetype If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_virtual_machine_cluster_flavor_with_http_info(name, body, **kwargs) + return self.replace_virtual_machine_cluster_instancetype_with_http_info(name, body, **kwargs) else: - (data) = self.replace_virtual_machine_cluster_flavor_with_http_info(name, body, **kwargs) + (data) = self.replace_virtual_machine_cluster_instancetype_with_http_info(name, body, **kwargs) return data - def replace_virtual_machine_cluster_flavor_with_http_info(self, name, body, **kwargs): + def replace_virtual_machine_cluster_instancetype_with_http_info(self, name, body, **kwargs): """ - Update a VirtualMachineClusterFlavor object. + Update a VirtualMachineClusterInstancetype object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_virtual_machine_cluster_flavor_with_http_info(name, body, callback=callback_function) + >>> thread = api.replace_virtual_machine_cluster_instancetype_with_http_info(name, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param V1alpha1VirtualMachineClusterFlavor body: (required) - :return: V1alpha1VirtualMachineClusterFlavor + :param V1alpha1VirtualMachineClusterInstancetype body: (required) + :return: V1alpha1VirtualMachineClusterInstancetype If the method is called asynchronously, returns the request thread. """ @@ -17683,16 +17683,16 @@ def replace_virtual_machine_cluster_flavor_with_http_info(self, name, body, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_virtual_machine_cluster_flavor" % key + " to method replace_virtual_machine_cluster_instancetype" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_virtual_machine_cluster_flavor`") + raise ValueError("Missing the required parameter `name` when calling `replace_virtual_machine_cluster_instancetype`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_virtual_machine_cluster_flavor`") + raise ValueError("Missing the required parameter `body` when calling `replace_virtual_machine_cluster_instancetype`") collection_formats = {} @@ -17722,14 +17722,14 @@ def replace_virtual_machine_cluster_flavor_with_http_info(self, name, body, **kw # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterflavors/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineClusterFlavor', + response_type='V1alpha1VirtualMachineClusterInstancetype', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -17833,7 +17833,7 @@ def replace_virtual_machine_cluster_preference_with_http_info(self, name, body, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, @@ -25446,16 +25446,16 @@ def watch_namespaced_virtual_machine_export_with_http_info(self, namespace, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine_flavor(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_instance(self, namespace, **kwargs): """ - Watch a VirtualMachineFlavor object. + Watch a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_flavor(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -25474,21 +25474,21 @@ def watch_namespaced_virtual_machine_flavor(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_flavor_with_http_info(namespace, **kwargs) + return self.watch_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) else: - (data) = self.watch_namespaced_virtual_machine_flavor_with_http_info(namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) return data - def watch_namespaced_virtual_machine_flavor_with_http_info(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_instance_with_http_info(self, namespace, **kwargs): """ - Watch a VirtualMachineFlavor object. + Watch a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_flavor_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -25517,13 +25517,13 @@ def watch_namespaced_virtual_machine_flavor_with_http_info(self, namespace, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_virtual_machine_flavor" % key + " to method watch_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_flavor`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance`") collection_formats = {} @@ -25563,7 +25563,7 @@ def watch_namespaced_virtual_machine_flavor_with_http_info(self, namespace, **kw # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineflavors', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'GET', path_params, query_params, header_params, @@ -25578,16 +25578,16 @@ def watch_namespaced_virtual_machine_flavor_with_http_info(self, namespace, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine_instance(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_instance_migration(self, namespace, **kwargs): """ - Watch a VirtualMachineInstance object. + Watch a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_instance(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance_migration(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -25606,21 +25606,21 @@ def watch_namespaced_virtual_machine_instance(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) + return self.watch_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) else: - (data) = self.watch_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) return data - def watch_namespaced_virtual_machine_instance_with_http_info(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_instance_migration_with_http_info(self, namespace, **kwargs): """ - Watch a VirtualMachineInstance object. + Watch a VirtualMachineInstanceMigration object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_instance_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance_migration_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -25649,13 +25649,13 @@ def watch_namespaced_virtual_machine_instance_with_http_info(self, namespace, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_virtual_machine_instance" % key + " to method watch_namespaced_virtual_machine_instance_migration" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_migration`") collection_formats = {} @@ -25695,7 +25695,7 @@ def watch_namespaced_virtual_machine_instance_with_http_info(self, namespace, ** # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'GET', path_params, query_params, header_params, @@ -25710,16 +25710,16 @@ def watch_namespaced_virtual_machine_instance_with_http_info(self, namespace, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine_instance_migration(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): """ - Watch a VirtualMachineInstanceMigration object. + Watch a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_instance_migration(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance_preset(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -25738,21 +25738,21 @@ def watch_namespaced_virtual_machine_instance_migration(self, namespace, **kwarg """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) + return self.watch_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) else: - (data) = self.watch_namespaced_virtual_machine_instance_migration_with_http_info(namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) return data - def watch_namespaced_virtual_machine_instance_migration_with_http_info(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namespace, **kwargs): """ - Watch a VirtualMachineInstanceMigration object. + Watch a VirtualMachineInstancePreset object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_instance_migration_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance_preset_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -25781,13 +25781,13 @@ def watch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_virtual_machine_instance_migration" % key + " to method watch_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_migration`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_preset`") collection_formats = {} @@ -25827,7 +25827,7 @@ def watch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'GET', path_params, query_params, header_params, @@ -25842,16 +25842,16 @@ def watch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwargs): """ - Watch a VirtualMachineInstancePreset object. + Watch a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_instance_preset(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance_replica_set(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -25870,21 +25870,21 @@ def watch_namespaced_virtual_machine_instance_preset(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) + return self.watch_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) else: - (data) = self.watch_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) return data - def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, namespace, **kwargs): """ - Watch a VirtualMachineInstancePreset object. + Watch a VirtualMachineInstanceReplicaSet object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_instance_preset_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -25913,13 +25913,13 @@ def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namesp if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_virtual_machine_instance_preset" % key + " to method watch_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_replica_set`") collection_formats = {} @@ -25959,7 +25959,7 @@ def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, @@ -25974,16 +25974,16 @@ def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namesp _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_instancetype(self, namespace, **kwargs): """ - Watch a VirtualMachineInstanceReplicaSet object. + Watch a VirtualMachineInstancetype object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_instance_replica_set(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instancetype(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -26002,21 +26002,21 @@ def watch_namespaced_virtual_machine_instance_replica_set(self, namespace, **kwa """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) + return self.watch_namespaced_virtual_machine_instancetype_with_http_info(namespace, **kwargs) else: - (data) = self.watch_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_instancetype_with_http_info(namespace, **kwargs) return data - def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, namespace, **kwargs): + def watch_namespaced_virtual_machine_instancetype_with_http_info(self, namespace, **kwargs): """ - Watch a VirtualMachineInstanceReplicaSet object. + Watch a VirtualMachineInstancetype object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instancetype_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -26045,13 +26045,13 @@ def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_namespaced_virtual_machine_instance_replica_set" % key + " to method watch_namespaced_virtual_machine_instancetype" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instance_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instancetype`") collection_formats = {} @@ -26091,7 +26091,7 @@ def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes', 'GET', path_params, query_params, header_params, @@ -26355,7 +26355,7 @@ def watch_namespaced_virtual_machine_preference_with_http_info(self, namespace, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'GET', path_params, query_params, header_params, @@ -26891,16 +26891,16 @@ def watch_virtual_machine_clone_list_for_all_namespaces_with_http_info(self, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_virtual_machine_cluster_flavor_list_for_all_namespaces(self, **kwargs): + def watch_virtual_machine_cluster_instancetype_list_for_all_namespaces(self, **kwargs): """ - Watch a VirtualMachineClusterFlavorList object. + Watch a VirtualMachineClusterInstancetypeList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_cluster_flavor_list_for_all_namespaces(callback=callback_function) + >>> thread = api.watch_virtual_machine_cluster_instancetype_list_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -26918,21 +26918,21 @@ def watch_virtual_machine_cluster_flavor_list_for_all_namespaces(self, **kwargs) """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_virtual_machine_cluster_flavor_list_for_all_namespaces_with_http_info(**kwargs) + return self.watch_virtual_machine_cluster_instancetype_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.watch_virtual_machine_cluster_flavor_list_for_all_namespaces_with_http_info(**kwargs) + (data) = self.watch_virtual_machine_cluster_instancetype_list_for_all_namespaces_with_http_info(**kwargs) return data - def watch_virtual_machine_cluster_flavor_list_for_all_namespaces_with_http_info(self, **kwargs): + def watch_virtual_machine_cluster_instancetype_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Watch a VirtualMachineClusterFlavorList object. + Watch a VirtualMachineClusterInstancetypeList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_cluster_flavor_list_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.watch_virtual_machine_cluster_instancetype_list_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -26960,7 +26960,7 @@ def watch_virtual_machine_cluster_flavor_list_for_all_namespaces_with_http_info( if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_virtual_machine_cluster_flavor_list_for_all_namespaces" % key + " to method watch_virtual_machine_cluster_instancetype_list_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -27001,7 +27001,7 @@ def watch_virtual_machine_cluster_flavor_list_for_all_namespaces_with_http_info( # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineclusterflavors', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/watch/virtualmachineclusterinstancetypes', 'GET', path_params, query_params, header_params, @@ -27126,7 +27126,7 @@ def watch_virtual_machine_cluster_preference_list_for_all_namespaces_with_http_i # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineclusterpreferences', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/watch/virtualmachineclusterpreferences', 'GET', path_params, query_params, header_params, @@ -27266,16 +27266,16 @@ def watch_virtual_machine_export_list_for_all_namespaces_with_http_info(self, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_virtual_machine_flavor_list_for_all_namespaces(self, **kwargs): + def watch_virtual_machine_instance_list_for_all_namespaces(self, **kwargs): """ - Watch a VirtualMachineFlavorList object. + Watch a VirtualMachineInstanceList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_flavor_list_for_all_namespaces(callback=callback_function) + >>> thread = api.watch_virtual_machine_instance_list_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -27293,21 +27293,21 @@ def watch_virtual_machine_flavor_list_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_virtual_machine_flavor_list_for_all_namespaces_with_http_info(**kwargs) + return self.watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.watch_virtual_machine_flavor_list_for_all_namespaces_with_http_info(**kwargs) + (data) = self.watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(**kwargs) return data - def watch_virtual_machine_flavor_list_for_all_namespaces_with_http_info(self, **kwargs): + def watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Watch a VirtualMachineFlavorList object. + Watch a VirtualMachineInstanceList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_flavor_list_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -27335,7 +27335,7 @@ def watch_virtual_machine_flavor_list_for_all_namespaces_with_http_info(self, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_virtual_machine_flavor_list_for_all_namespaces" % key + " to method watch_virtual_machine_instance_list_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -27376,7 +27376,7 @@ def watch_virtual_machine_flavor_list_for_all_namespaces_with_http_info(self, ** # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachineflavors', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/virtualmachineinstances', 'GET', path_params, query_params, header_params, @@ -27391,16 +27391,16 @@ def watch_virtual_machine_flavor_list_for_all_namespaces_with_http_info(self, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_virtual_machine_instance_list_for_all_namespaces(self, **kwargs): + def watch_virtual_machine_instance_migration_list_for_all_namespaces(self, **kwargs): """ - Watch a VirtualMachineInstanceList object. + Watch a VirtualMachineInstanceMigrationList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_instance_list_for_all_namespaces(callback=callback_function) + >>> thread = api.watch_virtual_machine_instance_migration_list_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -27418,21 +27418,21 @@ def watch_virtual_machine_instance_list_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(**kwargs) + return self.watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(**kwargs) + (data) = self.watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_info(**kwargs) return data - def watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(self, **kwargs): + def watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Watch a VirtualMachineInstanceList object. + Watch a VirtualMachineInstanceMigrationList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -27460,7 +27460,7 @@ def watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(self, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_virtual_machine_instance_list_for_all_namespaces" % key + " to method watch_virtual_machine_instance_migration_list_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -27501,7 +27501,7 @@ def watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/watch/virtualmachineinstances', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/virtualmachineinstancemigrations', 'GET', path_params, query_params, header_params, @@ -27516,16 +27516,16 @@ def watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(self, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_virtual_machine_instance_migration_list_for_all_namespaces(self, **kwargs): + def watch_virtual_machine_instance_preset_list_for_all_namespaces(self, **kwargs): """ - Watch a VirtualMachineInstanceMigrationList object. + Watch a VirtualMachineInstancePresetList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_instance_migration_list_for_all_namespaces(callback=callback_function) + >>> thread = api.watch_virtual_machine_instance_preset_list_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -27543,21 +27543,21 @@ def watch_virtual_machine_instance_migration_list_for_all_namespaces(self, **kwa """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_info(**kwargs) + return self.watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_info(**kwargs) + (data) = self.watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info(**kwargs) return data - def watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_info(self, **kwargs): + def watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Watch a VirtualMachineInstanceMigrationList object. + Watch a VirtualMachineInstancePresetList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -27585,7 +27585,7 @@ def watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_i if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_virtual_machine_instance_migration_list_for_all_namespaces" % key + " to method watch_virtual_machine_instance_preset_list_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -27626,7 +27626,7 @@ def watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_i # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/watch/virtualmachineinstancemigrations', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/virtualmachineinstancepresets', 'GET', path_params, query_params, header_params, @@ -27641,16 +27641,16 @@ def watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_i _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_virtual_machine_instance_preset_list_for_all_namespaces(self, **kwargs): + def watch_virtual_machine_instance_replica_set_list_for_all_namespaces(self, **kwargs): """ - Watch a VirtualMachineInstancePresetList object. + Watch a VirtualMachineInstanceReplicaSetList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_instance_preset_list_for_all_namespaces(callback=callback_function) + >>> thread = api.watch_virtual_machine_instance_replica_set_list_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -27668,21 +27668,21 @@ def watch_virtual_machine_instance_preset_list_for_all_namespaces(self, **kwargs """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info(**kwargs) + return self.watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info(**kwargs) + (data) = self.watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http_info(**kwargs) return data - def watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info(self, **kwargs): + def watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Watch a VirtualMachineInstancePresetList object. + Watch a VirtualMachineInstanceReplicaSetList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -27710,7 +27710,7 @@ def watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_virtual_machine_instance_preset_list_for_all_namespaces" % key + " to method watch_virtual_machine_instance_replica_set_list_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -27751,7 +27751,7 @@ def watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/watch/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, @@ -27766,16 +27766,16 @@ def watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_virtual_machine_instance_replica_set_list_for_all_namespaces(self, **kwargs): + def watch_virtual_machine_instancetype_list_for_all_namespaces(self, **kwargs): """ - Watch a VirtualMachineInstanceReplicaSetList object. + Watch a VirtualMachineInstancetypeList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_instance_replica_set_list_for_all_namespaces(callback=callback_function) + >>> thread = api.watch_virtual_machine_instancetype_list_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -27793,21 +27793,21 @@ def watch_virtual_machine_instance_replica_set_list_for_all_namespaces(self, **k """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http_info(**kwargs) + return self.watch_virtual_machine_instancetype_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http_info(**kwargs) + (data) = self.watch_virtual_machine_instancetype_list_for_all_namespaces_with_http_info(**kwargs) return data - def watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http_info(self, **kwargs): + def watch_virtual_machine_instancetype_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Watch a VirtualMachineInstanceReplicaSetList object. + Watch a VirtualMachineInstancetypeList object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.watch_virtual_machine_instancetype_list_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -27835,7 +27835,7 @@ def watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method watch_virtual_machine_instance_replica_set_list_for_all_namespaces" % key + " to method watch_virtual_machine_instancetype_list_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -27876,7 +27876,7 @@ def watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/watch/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/watch/virtualmachineinstancetypes', 'GET', path_params, query_params, header_params, @@ -28251,7 +28251,7 @@ def watch_virtual_machine_preference_list_for_all_namespaces_with_http_info(self # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/flavor.kubevirt.io/v1alpha1/watch/virtualmachinepreferences', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/watch/virtualmachinepreferences', 'GET', path_params, query_params, header_params, diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 24f3190b..bc264e23 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.54.0-372-gf8423f7a4".\ + "SDK Package Version: v0.55.0-113-gc59eef791".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 7566350a..0aa9d2bc 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -117,7 +117,6 @@ from .v1_filesystem_virtiofs import V1FilesystemVirtiofs from .v1_firmware import V1Firmware from .v1_flags import V1Flags -from .v1_flavor_matcher import V1FlavorMatcher from .v1_freeze_unfreeze_timeout import V1FreezeUnfreezeTimeout from .v1_gpu import V1GPU from .v1_generation_status import V1GenerationStatus @@ -132,6 +131,7 @@ from .v1_hyperv_timer import V1HypervTimer from .v1_i6300_esb_watchdog import V1I6300ESBWatchdog from .v1_input import V1Input +from .v1_instancetype_matcher import V1InstancetypeMatcher from .v1_interface import V1Interface from .v1_interface_bridge import V1InterfaceBridge from .v1_interface_macvtap import V1InterfaceMacvtap @@ -253,7 +253,7 @@ from .v1_volume_snapshot_status import V1VolumeSnapshotStatus from .v1_volume_status import V1VolumeStatus from .v1_watchdog import V1Watchdog -from .v1alpha1_cpu_flavor import V1alpha1CPUFlavor +from .v1alpha1_cpu_instancetype import V1alpha1CPUInstancetype from .v1alpha1_cpu_preferences import V1alpha1CPUPreferences from .v1alpha1_clock_preferences import V1alpha1ClockPreferences from .v1alpha1_condition import V1alpha1Condition @@ -262,7 +262,7 @@ from .v1alpha1_feature_preferences import V1alpha1FeaturePreferences from .v1alpha1_firmware_preferences import V1alpha1FirmwarePreferences from .v1alpha1_machine_preferences import V1alpha1MachinePreferences -from .v1alpha1_memory_flavor import V1alpha1MemoryFlavor +from .v1alpha1_memory_instancetype import V1alpha1MemoryInstancetype from .v1alpha1_migration_policy import V1alpha1MigrationPolicy from .v1alpha1_migration_policy_list import V1alpha1MigrationPolicyList from .v1alpha1_migration_policy_spec import V1alpha1MigrationPolicySpec @@ -275,8 +275,8 @@ from .v1alpha1_virtual_machine_clone_list import V1alpha1VirtualMachineCloneList from .v1alpha1_virtual_machine_clone_spec import V1alpha1VirtualMachineCloneSpec from .v1alpha1_virtual_machine_clone_status import V1alpha1VirtualMachineCloneStatus -from .v1alpha1_virtual_machine_cluster_flavor import V1alpha1VirtualMachineClusterFlavor -from .v1alpha1_virtual_machine_cluster_flavor_list import V1alpha1VirtualMachineClusterFlavorList +from .v1alpha1_virtual_machine_cluster_instancetype import V1alpha1VirtualMachineClusterInstancetype +from .v1alpha1_virtual_machine_cluster_instancetype_list import V1alpha1VirtualMachineClusterInstancetypeList from .v1alpha1_virtual_machine_cluster_preference import V1alpha1VirtualMachineClusterPreference from .v1alpha1_virtual_machine_cluster_preference_list import V1alpha1VirtualMachineClusterPreferenceList from .v1alpha1_virtual_machine_export import V1alpha1VirtualMachineExport @@ -287,9 +287,9 @@ from .v1alpha1_virtual_machine_export_status import V1alpha1VirtualMachineExportStatus from .v1alpha1_virtual_machine_export_volume import V1alpha1VirtualMachineExportVolume from .v1alpha1_virtual_machine_export_volume_format import V1alpha1VirtualMachineExportVolumeFormat -from .v1alpha1_virtual_machine_flavor import V1alpha1VirtualMachineFlavor -from .v1alpha1_virtual_machine_flavor_list import V1alpha1VirtualMachineFlavorList -from .v1alpha1_virtual_machine_flavor_spec import V1alpha1VirtualMachineFlavorSpec +from .v1alpha1_virtual_machine_instancetype import V1alpha1VirtualMachineInstancetype +from .v1alpha1_virtual_machine_instancetype_list import V1alpha1VirtualMachineInstancetypeList +from .v1alpha1_virtual_machine_instancetype_spec import V1alpha1VirtualMachineInstancetypeSpec from .v1alpha1_virtual_machine_pool import V1alpha1VirtualMachinePool from .v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition from .v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList diff --git a/kubevirt/models/v1_flavor_matcher.py b/kubevirt/models/v1_instancetype_matcher.py similarity index 65% rename from kubevirt/models/v1_flavor_matcher.py rename to kubevirt/models/v1_instancetype_matcher.py index 92537626..9a0dcb50 100644 --- a/kubevirt/models/v1_flavor_matcher.py +++ b/kubevirt/models/v1_instancetype_matcher.py @@ -16,7 +16,7 @@ import re -class V1FlavorMatcher(object): +class V1InstancetypeMatcher(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -44,7 +44,7 @@ class V1FlavorMatcher(object): def __init__(self, kind=None, name=None, revision_name=None): """ - V1FlavorMatcher - a model defined in Swagger + V1InstancetypeMatcher - a model defined in Swagger """ self._kind = None @@ -60,10 +60,10 @@ def __init__(self, kind=None, name=None, revision_name=None): @property def kind(self): """ - Gets the kind of this V1FlavorMatcher. - Kind specifies which flavor resource is referenced. Allowed values are: \"VirtualMachineFlavor\" and \"VirtualMachineClusterFlavor\". If not specified, \"VirtualMachineClusterFlavor\" is used by default. + Gets the kind of this V1InstancetypeMatcher. + Kind specifies which instancetype resource is referenced. Allowed values are: \"VirtualMachineInstancetype\" and \"VirtualMachineClusterInstancetype\". If not specified, \"VirtualMachineClusterInstancetype\" is used by default. - :return: The kind of this V1FlavorMatcher. + :return: The kind of this V1InstancetypeMatcher. :rtype: str """ return self._kind @@ -71,10 +71,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1FlavorMatcher. - Kind specifies which flavor resource is referenced. Allowed values are: \"VirtualMachineFlavor\" and \"VirtualMachineClusterFlavor\". If not specified, \"VirtualMachineClusterFlavor\" is used by default. + Sets the kind of this V1InstancetypeMatcher. + Kind specifies which instancetype resource is referenced. Allowed values are: \"VirtualMachineInstancetype\" and \"VirtualMachineClusterInstancetype\". If not specified, \"VirtualMachineClusterInstancetype\" is used by default. - :param kind: The kind of this V1FlavorMatcher. + :param kind: The kind of this V1InstancetypeMatcher. :type: str """ @@ -83,10 +83,10 @@ def kind(self, kind): @property def name(self): """ - Gets the name of this V1FlavorMatcher. - Name is the name of the VirtualMachineFlavor or VirtualMachineClusterFlavor + Gets the name of this V1InstancetypeMatcher. + Name is the name of the VirtualMachineInstancetype or VirtualMachineClusterInstancetype - :return: The name of this V1FlavorMatcher. + :return: The name of this V1InstancetypeMatcher. :rtype: str """ return self._name @@ -94,10 +94,10 @@ def name(self): @name.setter def name(self, name): """ - Sets the name of this V1FlavorMatcher. - Name is the name of the VirtualMachineFlavor or VirtualMachineClusterFlavor + Sets the name of this V1InstancetypeMatcher. + Name is the name of the VirtualMachineInstancetype or VirtualMachineClusterInstancetype - :param name: The name of this V1FlavorMatcher. + :param name: The name of this V1InstancetypeMatcher. :type: str """ if name is None: @@ -108,10 +108,10 @@ def name(self, name): @property def revision_name(self): """ - Gets the revision_name of this V1FlavorMatcher. - RevisionName specifies a ControllerRevision containing a specific copy of the VirtualMachineFlavor or VirtualMachineClusterFlavor to be used. This is initially captured the first time the flavor is applied to the VirtualMachineInstance. + Gets the revision_name of this V1InstancetypeMatcher. + RevisionName specifies a ControllerRevision containing a specific copy of the VirtualMachineInstancetype or VirtualMachineClusterInstancetype to be used. This is initially captured the first time the instancetype is applied to the VirtualMachineInstance. - :return: The revision_name of this V1FlavorMatcher. + :return: The revision_name of this V1InstancetypeMatcher. :rtype: str """ return self._revision_name @@ -119,10 +119,10 @@ def revision_name(self): @revision_name.setter def revision_name(self, revision_name): """ - Sets the revision_name of this V1FlavorMatcher. - RevisionName specifies a ControllerRevision containing a specific copy of the VirtualMachineFlavor or VirtualMachineClusterFlavor to be used. This is initially captured the first time the flavor is applied to the VirtualMachineInstance. + Sets the revision_name of this V1InstancetypeMatcher. + RevisionName specifies a ControllerRevision containing a specific copy of the VirtualMachineInstancetype or VirtualMachineClusterInstancetype to be used. This is initially captured the first time the instancetype is applied to the VirtualMachineInstance. - :param revision_name: The revision_name of this V1FlavorMatcher. + :param revision_name: The revision_name of this V1InstancetypeMatcher. :type: str """ @@ -170,7 +170,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1FlavorMatcher): + if not isinstance(other, V1InstancetypeMatcher): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_preference_matcher.py b/kubevirt/models/v1_preference_matcher.py index 7593fee9..b3f73f92 100644 --- a/kubevirt/models/v1_preference_matcher.py +++ b/kubevirt/models/v1_preference_matcher.py @@ -109,7 +109,7 @@ def name(self, name): def revision_name(self): """ Gets the revision_name of this V1PreferenceMatcher. - RevisionName specifies a ControllerRevision containing a specific copy of the VirtualMachinePreference or VirtualMachineClusterPreference to be used. This is initially captured the first time the flavor is applied to the VirtualMachineInstance. + RevisionName specifies a ControllerRevision containing a specific copy of the VirtualMachinePreference or VirtualMachineClusterPreference to be used. This is initially captured the first time the instancetype is applied to the VirtualMachineInstance. :return: The revision_name of this V1PreferenceMatcher. :rtype: str @@ -120,7 +120,7 @@ def revision_name(self): def revision_name(self, revision_name): """ Sets the revision_name of this V1PreferenceMatcher. - RevisionName specifies a ControllerRevision containing a specific copy of the VirtualMachinePreference or VirtualMachineClusterPreference to be used. This is initially captured the first time the flavor is applied to the VirtualMachineInstance. + RevisionName specifies a ControllerRevision containing a specific copy of the VirtualMachinePreference or VirtualMachineClusterPreference to be used. This is initially captured the first time the instancetype is applied to the VirtualMachineInstance. :param revision_name: The revision_name of this V1PreferenceMatcher. :type: str diff --git a/kubevirt/models/v1_virtual_machine_spec.py b/kubevirt/models/v1_virtual_machine_spec.py index 902e862e..47b3eb38 100644 --- a/kubevirt/models/v1_virtual_machine_spec.py +++ b/kubevirt/models/v1_virtual_machine_spec.py @@ -32,7 +32,7 @@ class V1VirtualMachineSpec(object): """ swagger_types = { 'data_volume_templates': 'list[V1DataVolumeTemplateSpec]', - 'flavor': 'V1FlavorMatcher', + 'instancetype': 'V1InstancetypeMatcher', 'preference': 'V1PreferenceMatcher', 'run_strategy': 'str', 'running': 'bool', @@ -41,20 +41,20 @@ class V1VirtualMachineSpec(object): attribute_map = { 'data_volume_templates': 'dataVolumeTemplates', - 'flavor': 'flavor', + 'instancetype': 'instancetype', 'preference': 'preference', 'run_strategy': 'runStrategy', 'running': 'running', 'template': 'template' } - def __init__(self, data_volume_templates=None, flavor=None, preference=None, run_strategy=None, running=None, template=None): + def __init__(self, data_volume_templates=None, instancetype=None, preference=None, run_strategy=None, running=None, template=None): """ V1VirtualMachineSpec - a model defined in Swagger """ self._data_volume_templates = None - self._flavor = None + self._instancetype = None self._preference = None self._run_strategy = None self._running = None @@ -62,8 +62,8 @@ def __init__(self, data_volume_templates=None, flavor=None, preference=None, run if data_volume_templates is not None: self.data_volume_templates = data_volume_templates - if flavor is not None: - self.flavor = flavor + if instancetype is not None: + self.instancetype = instancetype if preference is not None: self.preference = preference if run_strategy is not None: @@ -96,27 +96,27 @@ def data_volume_templates(self, data_volume_templates): self._data_volume_templates = data_volume_templates @property - def flavor(self): + def instancetype(self): """ - Gets the flavor of this V1VirtualMachineSpec. - FlavorMatcher references a flavor that is used to fill fields in Template + Gets the instancetype of this V1VirtualMachineSpec. + InstancetypeMatcher references a instancetype that is used to fill fields in Template - :return: The flavor of this V1VirtualMachineSpec. - :rtype: V1FlavorMatcher + :return: The instancetype of this V1VirtualMachineSpec. + :rtype: V1InstancetypeMatcher """ - return self._flavor + return self._instancetype - @flavor.setter - def flavor(self, flavor): + @instancetype.setter + def instancetype(self, instancetype): """ - Sets the flavor of this V1VirtualMachineSpec. - FlavorMatcher references a flavor that is used to fill fields in Template + Sets the instancetype of this V1VirtualMachineSpec. + InstancetypeMatcher references a instancetype that is used to fill fields in Template - :param flavor: The flavor of this V1VirtualMachineSpec. - :type: V1FlavorMatcher + :param instancetype: The instancetype of this V1VirtualMachineSpec. + :type: V1InstancetypeMatcher """ - self._flavor = flavor + self._instancetype = instancetype @property def preference(self): diff --git a/kubevirt/models/v1alpha1_cpu_flavor.py b/kubevirt/models/v1alpha1_cpu_instancetype.py similarity index 82% rename from kubevirt/models/v1alpha1_cpu_flavor.py rename to kubevirt/models/v1alpha1_cpu_instancetype.py index bfee3463..98d1294f 100644 --- a/kubevirt/models/v1alpha1_cpu_flavor.py +++ b/kubevirt/models/v1alpha1_cpu_instancetype.py @@ -16,7 +16,7 @@ import re -class V1alpha1CPUFlavor(object): +class V1alpha1CPUInstancetype(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -50,7 +50,7 @@ class V1alpha1CPUFlavor(object): def __init__(self, dedicated_cpu_placement=None, guest=None, isolate_emulator_thread=None, model=None, numa=None, realtime=None): """ - V1alpha1CPUFlavor - a model defined in Swagger + V1alpha1CPUInstancetype - a model defined in Swagger """ self._dedicated_cpu_placement = None @@ -75,10 +75,10 @@ def __init__(self, dedicated_cpu_placement=None, guest=None, isolate_emulator_th @property def dedicated_cpu_placement(self): """ - Gets the dedicated_cpu_placement of this V1alpha1CPUFlavor. + Gets the dedicated_cpu_placement of this V1alpha1CPUInstancetype. DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. - :return: The dedicated_cpu_placement of this V1alpha1CPUFlavor. + :return: The dedicated_cpu_placement of this V1alpha1CPUInstancetype. :rtype: bool """ return self._dedicated_cpu_placement @@ -86,10 +86,10 @@ def dedicated_cpu_placement(self): @dedicated_cpu_placement.setter def dedicated_cpu_placement(self, dedicated_cpu_placement): """ - Sets the dedicated_cpu_placement of this V1alpha1CPUFlavor. + Sets the dedicated_cpu_placement of this V1alpha1CPUInstancetype. DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. - :param dedicated_cpu_placement: The dedicated_cpu_placement of this V1alpha1CPUFlavor. + :param dedicated_cpu_placement: The dedicated_cpu_placement of this V1alpha1CPUInstancetype. :type: bool """ @@ -98,10 +98,10 @@ def dedicated_cpu_placement(self, dedicated_cpu_placement): @property def guest(self): """ - Gets the guest of this V1alpha1CPUFlavor. + Gets the guest of this V1alpha1CPUInstancetype. Required number of vCPUs to expose to the guest. The resulting CPU topology being derived from the optional PreferredCPUTopology attribute of CPUPreferences that itself defaults to PreferCores. - :return: The guest of this V1alpha1CPUFlavor. + :return: The guest of this V1alpha1CPUInstancetype. :rtype: int """ return self._guest @@ -109,10 +109,10 @@ def guest(self): @guest.setter def guest(self, guest): """ - Sets the guest of this V1alpha1CPUFlavor. + Sets the guest of this V1alpha1CPUInstancetype. Required number of vCPUs to expose to the guest. The resulting CPU topology being derived from the optional PreferredCPUTopology attribute of CPUPreferences that itself defaults to PreferCores. - :param guest: The guest of this V1alpha1CPUFlavor. + :param guest: The guest of this V1alpha1CPUInstancetype. :type: int """ if guest is None: @@ -123,10 +123,10 @@ def guest(self, guest): @property def isolate_emulator_thread(self): """ - Gets the isolate_emulator_thread of this V1alpha1CPUFlavor. + Gets the isolate_emulator_thread of this V1alpha1CPUInstancetype. IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it. - :return: The isolate_emulator_thread of this V1alpha1CPUFlavor. + :return: The isolate_emulator_thread of this V1alpha1CPUInstancetype. :rtype: bool """ return self._isolate_emulator_thread @@ -134,10 +134,10 @@ def isolate_emulator_thread(self): @isolate_emulator_thread.setter def isolate_emulator_thread(self, isolate_emulator_thread): """ - Sets the isolate_emulator_thread of this V1alpha1CPUFlavor. + Sets the isolate_emulator_thread of this V1alpha1CPUInstancetype. IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it. - :param isolate_emulator_thread: The isolate_emulator_thread of this V1alpha1CPUFlavor. + :param isolate_emulator_thread: The isolate_emulator_thread of this V1alpha1CPUInstancetype. :type: bool """ @@ -146,10 +146,10 @@ def isolate_emulator_thread(self, isolate_emulator_thread): @property def model(self): """ - Gets the model of this V1alpha1CPUFlavor. + Gets the model of this V1alpha1CPUInstancetype. Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. - :return: The model of this V1alpha1CPUFlavor. + :return: The model of this V1alpha1CPUInstancetype. :rtype: str """ return self._model @@ -157,10 +157,10 @@ def model(self): @model.setter def model(self, model): """ - Sets the model of this V1alpha1CPUFlavor. + Sets the model of this V1alpha1CPUInstancetype. Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. - :param model: The model of this V1alpha1CPUFlavor. + :param model: The model of this V1alpha1CPUInstancetype. :type: str """ @@ -169,10 +169,10 @@ def model(self, model): @property def numa(self): """ - Gets the numa of this V1alpha1CPUFlavor. + Gets the numa of this V1alpha1CPUInstancetype. NUMA allows specifying settings for the guest NUMA topology - :return: The numa of this V1alpha1CPUFlavor. + :return: The numa of this V1alpha1CPUInstancetype. :rtype: V1NUMA """ return self._numa @@ -180,10 +180,10 @@ def numa(self): @numa.setter def numa(self, numa): """ - Sets the numa of this V1alpha1CPUFlavor. + Sets the numa of this V1alpha1CPUInstancetype. NUMA allows specifying settings for the guest NUMA topology - :param numa: The numa of this V1alpha1CPUFlavor. + :param numa: The numa of this V1alpha1CPUInstancetype. :type: V1NUMA """ @@ -192,10 +192,10 @@ def numa(self, numa): @property def realtime(self): """ - Gets the realtime of this V1alpha1CPUFlavor. + Gets the realtime of this V1alpha1CPUInstancetype. Realtime instructs the virt-launcher to tune the VMI for lower latency, optional for real time workloads - :return: The realtime of this V1alpha1CPUFlavor. + :return: The realtime of this V1alpha1CPUInstancetype. :rtype: V1Realtime """ return self._realtime @@ -203,10 +203,10 @@ def realtime(self): @realtime.setter def realtime(self, realtime): """ - Sets the realtime of this V1alpha1CPUFlavor. + Sets the realtime of this V1alpha1CPUInstancetype. Realtime instructs the virt-launcher to tune the VMI for lower latency, optional for real time workloads - :param realtime: The realtime of this V1alpha1CPUFlavor. + :param realtime: The realtime of this V1alpha1CPUInstancetype. :type: V1Realtime """ @@ -254,7 +254,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1CPUFlavor): + if not isinstance(other, V1alpha1CPUInstancetype): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_memory_flavor.py b/kubevirt/models/v1alpha1_memory_instancetype.py similarity index 83% rename from kubevirt/models/v1alpha1_memory_flavor.py rename to kubevirt/models/v1alpha1_memory_instancetype.py index ccdfe0a1..338d134c 100644 --- a/kubevirt/models/v1alpha1_memory_flavor.py +++ b/kubevirt/models/v1alpha1_memory_instancetype.py @@ -16,7 +16,7 @@ import re -class V1alpha1MemoryFlavor(object): +class V1alpha1MemoryInstancetype(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class V1alpha1MemoryFlavor(object): def __init__(self, guest=None, hugepages=None): """ - V1alpha1MemoryFlavor - a model defined in Swagger + V1alpha1MemoryInstancetype - a model defined in Swagger """ self._guest = None @@ -56,10 +56,10 @@ def __init__(self, guest=None, hugepages=None): @property def guest(self): """ - Gets the guest of this V1alpha1MemoryFlavor. + Gets the guest of this V1alpha1MemoryInstancetype. Required amount of memory which is visible inside the guest OS. - :return: The guest of this V1alpha1MemoryFlavor. + :return: The guest of this V1alpha1MemoryInstancetype. :rtype: K8sIoApimachineryPkgApiResourceQuantity """ return self._guest @@ -67,10 +67,10 @@ def guest(self): @guest.setter def guest(self, guest): """ - Sets the guest of this V1alpha1MemoryFlavor. + Sets the guest of this V1alpha1MemoryInstancetype. Required amount of memory which is visible inside the guest OS. - :param guest: The guest of this V1alpha1MemoryFlavor. + :param guest: The guest of this V1alpha1MemoryInstancetype. :type: K8sIoApimachineryPkgApiResourceQuantity """ @@ -79,10 +79,10 @@ def guest(self, guest): @property def hugepages(self): """ - Gets the hugepages of this V1alpha1MemoryFlavor. + Gets the hugepages of this V1alpha1MemoryInstancetype. Optionally enables the use of hugepages for the VirtualMachineInstance instead of regular memory. - :return: The hugepages of this V1alpha1MemoryFlavor. + :return: The hugepages of this V1alpha1MemoryInstancetype. :rtype: V1Hugepages """ return self._hugepages @@ -90,10 +90,10 @@ def hugepages(self): @hugepages.setter def hugepages(self, hugepages): """ - Sets the hugepages of this V1alpha1MemoryFlavor. + Sets the hugepages of this V1alpha1MemoryInstancetype. Optionally enables the use of hugepages for the VirtualMachineInstance instead of regular memory. - :param hugepages: The hugepages of this V1alpha1MemoryFlavor. + :param hugepages: The hugepages of this V1alpha1MemoryInstancetype. :type: V1Hugepages """ @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1MemoryFlavor): + if not isinstance(other, V1alpha1MemoryInstancetype): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_cluster_flavor.py b/kubevirt/models/v1alpha1_virtual_machine_cluster_instancetype.py similarity index 82% rename from kubevirt/models/v1alpha1_virtual_machine_cluster_flavor.py rename to kubevirt/models/v1alpha1_virtual_machine_cluster_instancetype.py index bde53c30..338acdf8 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_cluster_flavor.py +++ b/kubevirt/models/v1alpha1_virtual_machine_cluster_instancetype.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineClusterFlavor(object): +class V1alpha1VirtualMachineClusterInstancetype(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -34,7 +34,7 @@ class V1alpha1VirtualMachineClusterFlavor(object): 'api_version': 'str', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', - 'spec': 'V1alpha1VirtualMachineFlavorSpec' + 'spec': 'V1alpha1VirtualMachineInstancetypeSpec' } attribute_map = { @@ -46,7 +46,7 @@ class V1alpha1VirtualMachineClusterFlavor(object): def __init__(self, api_version=None, kind=None, metadata=None, spec=None): """ - V1alpha1VirtualMachineClusterFlavor - a model defined in Swagger + V1alpha1VirtualMachineClusterInstancetype - a model defined in Swagger """ self._api_version = None @@ -65,10 +65,10 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None): @property def api_version(self): """ - Gets the api_version of this V1alpha1VirtualMachineClusterFlavor. + Gets the api_version of this V1alpha1VirtualMachineClusterInstancetype. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha1VirtualMachineClusterFlavor. + :return: The api_version of this V1alpha1VirtualMachineClusterInstancetype. :rtype: str """ return self._api_version @@ -76,10 +76,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha1VirtualMachineClusterFlavor. + Sets the api_version of this V1alpha1VirtualMachineClusterInstancetype. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha1VirtualMachineClusterFlavor. + :param api_version: The api_version of this V1alpha1VirtualMachineClusterInstancetype. :type: str """ @@ -88,10 +88,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V1alpha1VirtualMachineClusterFlavor. + Gets the kind of this V1alpha1VirtualMachineClusterInstancetype. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha1VirtualMachineClusterFlavor. + :return: The kind of this V1alpha1VirtualMachineClusterInstancetype. :rtype: str """ return self._kind @@ -99,10 +99,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha1VirtualMachineClusterFlavor. + Sets the kind of this V1alpha1VirtualMachineClusterInstancetype. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha1VirtualMachineClusterFlavor. + :param kind: The kind of this V1alpha1VirtualMachineClusterInstancetype. :type: str """ @@ -111,9 +111,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachineClusterFlavor. + Gets the metadata of this V1alpha1VirtualMachineClusterInstancetype. - :return: The metadata of this V1alpha1VirtualMachineClusterFlavor. + :return: The metadata of this V1alpha1VirtualMachineClusterInstancetype. :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -121,9 +121,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachineClusterFlavor. + Sets the metadata of this V1alpha1VirtualMachineClusterInstancetype. - :param metadata: The metadata of this V1alpha1VirtualMachineClusterFlavor. + :param metadata: The metadata of this V1alpha1VirtualMachineClusterInstancetype. :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ @@ -132,22 +132,22 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1alpha1VirtualMachineClusterFlavor. - Required spec describing the flavor + Gets the spec of this V1alpha1VirtualMachineClusterInstancetype. + Required spec describing the instancetype - :return: The spec of this V1alpha1VirtualMachineClusterFlavor. - :rtype: V1alpha1VirtualMachineFlavorSpec + :return: The spec of this V1alpha1VirtualMachineClusterInstancetype. + :rtype: V1alpha1VirtualMachineInstancetypeSpec """ return self._spec @spec.setter def spec(self, spec): """ - Sets the spec of this V1alpha1VirtualMachineClusterFlavor. - Required spec describing the flavor + Sets the spec of this V1alpha1VirtualMachineClusterInstancetype. + Required spec describing the instancetype - :param spec: The spec of this V1alpha1VirtualMachineClusterFlavor. - :type: V1alpha1VirtualMachineFlavorSpec + :param spec: The spec of this V1alpha1VirtualMachineClusterInstancetype. + :type: V1alpha1VirtualMachineInstancetypeSpec """ if spec is None: raise ValueError("Invalid value for `spec`, must not be `None`") @@ -196,7 +196,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineClusterFlavor): + if not isinstance(other, V1alpha1VirtualMachineClusterInstancetype): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_cluster_flavor_list.py b/kubevirt/models/v1alpha1_virtual_machine_cluster_instancetype_list.py similarity index 82% rename from kubevirt/models/v1alpha1_virtual_machine_cluster_flavor_list.py rename to kubevirt/models/v1alpha1_virtual_machine_cluster_instancetype_list.py index 921b6f5d..03434ead 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_cluster_flavor_list.py +++ b/kubevirt/models/v1alpha1_virtual_machine_cluster_instancetype_list.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineClusterFlavorList(object): +class V1alpha1VirtualMachineClusterInstancetypeList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class V1alpha1VirtualMachineClusterFlavorList(object): """ swagger_types = { 'api_version': 'str', - 'items': 'list[V1alpha1VirtualMachineClusterFlavor]', + 'items': 'list[V1alpha1VirtualMachineClusterInstancetype]', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' } @@ -46,7 +46,7 @@ class V1alpha1VirtualMachineClusterFlavorList(object): def __init__(self, api_version=None, items=None, kind=None, metadata=None): """ - V1alpha1VirtualMachineClusterFlavorList - a model defined in Swagger + V1alpha1VirtualMachineClusterInstancetypeList - a model defined in Swagger """ self._api_version = None @@ -65,10 +65,10 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): @property def api_version(self): """ - Gets the api_version of this V1alpha1VirtualMachineClusterFlavorList. + Gets the api_version of this V1alpha1VirtualMachineClusterInstancetypeList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha1VirtualMachineClusterFlavorList. + :return: The api_version of this V1alpha1VirtualMachineClusterInstancetypeList. :rtype: str """ return self._api_version @@ -76,10 +76,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha1VirtualMachineClusterFlavorList. + Sets the api_version of this V1alpha1VirtualMachineClusterInstancetypeList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha1VirtualMachineClusterFlavorList. + :param api_version: The api_version of this V1alpha1VirtualMachineClusterInstancetypeList. :type: str """ @@ -88,20 +88,20 @@ def api_version(self, api_version): @property def items(self): """ - Gets the items of this V1alpha1VirtualMachineClusterFlavorList. + Gets the items of this V1alpha1VirtualMachineClusterInstancetypeList. - :return: The items of this V1alpha1VirtualMachineClusterFlavorList. - :rtype: list[V1alpha1VirtualMachineClusterFlavor] + :return: The items of this V1alpha1VirtualMachineClusterInstancetypeList. + :rtype: list[V1alpha1VirtualMachineClusterInstancetype] """ return self._items @items.setter def items(self, items): """ - Sets the items of this V1alpha1VirtualMachineClusterFlavorList. + Sets the items of this V1alpha1VirtualMachineClusterInstancetypeList. - :param items: The items of this V1alpha1VirtualMachineClusterFlavorList. - :type: list[V1alpha1VirtualMachineClusterFlavor] + :param items: The items of this V1alpha1VirtualMachineClusterInstancetypeList. + :type: list[V1alpha1VirtualMachineClusterInstancetype] """ if items is None: raise ValueError("Invalid value for `items`, must not be `None`") @@ -111,10 +111,10 @@ def items(self, items): @property def kind(self): """ - Gets the kind of this V1alpha1VirtualMachineClusterFlavorList. + Gets the kind of this V1alpha1VirtualMachineClusterInstancetypeList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha1VirtualMachineClusterFlavorList. + :return: The kind of this V1alpha1VirtualMachineClusterInstancetypeList. :rtype: str """ return self._kind @@ -122,10 +122,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha1VirtualMachineClusterFlavorList. + Sets the kind of this V1alpha1VirtualMachineClusterInstancetypeList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha1VirtualMachineClusterFlavorList. + :param kind: The kind of this V1alpha1VirtualMachineClusterInstancetypeList. :type: str """ @@ -134,9 +134,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachineClusterFlavorList. + Gets the metadata of this V1alpha1VirtualMachineClusterInstancetypeList. - :return: The metadata of this V1alpha1VirtualMachineClusterFlavorList. + :return: The metadata of this V1alpha1VirtualMachineClusterInstancetypeList. :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @@ -144,9 +144,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachineClusterFlavorList. + Sets the metadata of this V1alpha1VirtualMachineClusterInstancetypeList. - :param metadata: The metadata of this V1alpha1VirtualMachineClusterFlavorList. + :param metadata: The metadata of this V1alpha1VirtualMachineClusterInstancetypeList. :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ @@ -194,7 +194,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineClusterFlavorList): + if not isinstance(other, V1alpha1VirtualMachineClusterInstancetypeList): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_flavor.py b/kubevirt/models/v1alpha1_virtual_machine_instancetype.py similarity index 77% rename from kubevirt/models/v1alpha1_virtual_machine_flavor.py rename to kubevirt/models/v1alpha1_virtual_machine_instancetype.py index b9e16c64..051481b0 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_flavor.py +++ b/kubevirt/models/v1alpha1_virtual_machine_instancetype.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineFlavor(object): +class V1alpha1VirtualMachineInstancetype(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -34,7 +34,7 @@ class V1alpha1VirtualMachineFlavor(object): 'api_version': 'str', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', - 'spec': 'V1alpha1VirtualMachineFlavorSpec' + 'spec': 'V1alpha1VirtualMachineInstancetypeSpec' } attribute_map = { @@ -46,7 +46,7 @@ class V1alpha1VirtualMachineFlavor(object): def __init__(self, api_version=None, kind=None, metadata=None, spec=None): """ - V1alpha1VirtualMachineFlavor - a model defined in Swagger + V1alpha1VirtualMachineInstancetype - a model defined in Swagger """ self._api_version = None @@ -65,10 +65,10 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None): @property def api_version(self): """ - Gets the api_version of this V1alpha1VirtualMachineFlavor. + Gets the api_version of this V1alpha1VirtualMachineInstancetype. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha1VirtualMachineFlavor. + :return: The api_version of this V1alpha1VirtualMachineInstancetype. :rtype: str """ return self._api_version @@ -76,10 +76,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha1VirtualMachineFlavor. + Sets the api_version of this V1alpha1VirtualMachineInstancetype. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha1VirtualMachineFlavor. + :param api_version: The api_version of this V1alpha1VirtualMachineInstancetype. :type: str """ @@ -88,10 +88,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V1alpha1VirtualMachineFlavor. + Gets the kind of this V1alpha1VirtualMachineInstancetype. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha1VirtualMachineFlavor. + :return: The kind of this V1alpha1VirtualMachineInstancetype. :rtype: str """ return self._kind @@ -99,10 +99,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha1VirtualMachineFlavor. + Sets the kind of this V1alpha1VirtualMachineInstancetype. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha1VirtualMachineFlavor. + :param kind: The kind of this V1alpha1VirtualMachineInstancetype. :type: str """ @@ -111,9 +111,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachineFlavor. + Gets the metadata of this V1alpha1VirtualMachineInstancetype. - :return: The metadata of this V1alpha1VirtualMachineFlavor. + :return: The metadata of this V1alpha1VirtualMachineInstancetype. :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -121,9 +121,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachineFlavor. + Sets the metadata of this V1alpha1VirtualMachineInstancetype. - :param metadata: The metadata of this V1alpha1VirtualMachineFlavor. + :param metadata: The metadata of this V1alpha1VirtualMachineInstancetype. :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ @@ -132,22 +132,22 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1alpha1VirtualMachineFlavor. - Required spec describing the flavor + Gets the spec of this V1alpha1VirtualMachineInstancetype. + Required spec describing the instancetype - :return: The spec of this V1alpha1VirtualMachineFlavor. - :rtype: V1alpha1VirtualMachineFlavorSpec + :return: The spec of this V1alpha1VirtualMachineInstancetype. + :rtype: V1alpha1VirtualMachineInstancetypeSpec """ return self._spec @spec.setter def spec(self, spec): """ - Sets the spec of this V1alpha1VirtualMachineFlavor. - Required spec describing the flavor + Sets the spec of this V1alpha1VirtualMachineInstancetype. + Required spec describing the instancetype - :param spec: The spec of this V1alpha1VirtualMachineFlavor. - :type: V1alpha1VirtualMachineFlavorSpec + :param spec: The spec of this V1alpha1VirtualMachineInstancetype. + :type: V1alpha1VirtualMachineInstancetypeSpec """ if spec is None: raise ValueError("Invalid value for `spec`, must not be `None`") @@ -196,7 +196,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineFlavor): + if not isinstance(other, V1alpha1VirtualMachineInstancetype): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_flavor_list.py b/kubevirt/models/v1alpha1_virtual_machine_instancetype_list.py similarity index 78% rename from kubevirt/models/v1alpha1_virtual_machine_flavor_list.py rename to kubevirt/models/v1alpha1_virtual_machine_instancetype_list.py index 8a22bfb1..3413f18e 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_flavor_list.py +++ b/kubevirt/models/v1alpha1_virtual_machine_instancetype_list.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineFlavorList(object): +class V1alpha1VirtualMachineInstancetypeList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class V1alpha1VirtualMachineFlavorList(object): """ swagger_types = { 'api_version': 'str', - 'items': 'list[V1alpha1VirtualMachineFlavor]', + 'items': 'list[V1alpha1VirtualMachineInstancetype]', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' } @@ -46,7 +46,7 @@ class V1alpha1VirtualMachineFlavorList(object): def __init__(self, api_version=None, items=None, kind=None, metadata=None): """ - V1alpha1VirtualMachineFlavorList - a model defined in Swagger + V1alpha1VirtualMachineInstancetypeList - a model defined in Swagger """ self._api_version = None @@ -65,10 +65,10 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): @property def api_version(self): """ - Gets the api_version of this V1alpha1VirtualMachineFlavorList. + Gets the api_version of this V1alpha1VirtualMachineInstancetypeList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha1VirtualMachineFlavorList. + :return: The api_version of this V1alpha1VirtualMachineInstancetypeList. :rtype: str """ return self._api_version @@ -76,10 +76,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha1VirtualMachineFlavorList. + Sets the api_version of this V1alpha1VirtualMachineInstancetypeList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha1VirtualMachineFlavorList. + :param api_version: The api_version of this V1alpha1VirtualMachineInstancetypeList. :type: str """ @@ -88,20 +88,20 @@ def api_version(self, api_version): @property def items(self): """ - Gets the items of this V1alpha1VirtualMachineFlavorList. + Gets the items of this V1alpha1VirtualMachineInstancetypeList. - :return: The items of this V1alpha1VirtualMachineFlavorList. - :rtype: list[V1alpha1VirtualMachineFlavor] + :return: The items of this V1alpha1VirtualMachineInstancetypeList. + :rtype: list[V1alpha1VirtualMachineInstancetype] """ return self._items @items.setter def items(self, items): """ - Sets the items of this V1alpha1VirtualMachineFlavorList. + Sets the items of this V1alpha1VirtualMachineInstancetypeList. - :param items: The items of this V1alpha1VirtualMachineFlavorList. - :type: list[V1alpha1VirtualMachineFlavor] + :param items: The items of this V1alpha1VirtualMachineInstancetypeList. + :type: list[V1alpha1VirtualMachineInstancetype] """ if items is None: raise ValueError("Invalid value for `items`, must not be `None`") @@ -111,10 +111,10 @@ def items(self, items): @property def kind(self): """ - Gets the kind of this V1alpha1VirtualMachineFlavorList. + Gets the kind of this V1alpha1VirtualMachineInstancetypeList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha1VirtualMachineFlavorList. + :return: The kind of this V1alpha1VirtualMachineInstancetypeList. :rtype: str """ return self._kind @@ -122,10 +122,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha1VirtualMachineFlavorList. + Sets the kind of this V1alpha1VirtualMachineInstancetypeList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha1VirtualMachineFlavorList. + :param kind: The kind of this V1alpha1VirtualMachineInstancetypeList. :type: str """ @@ -134,9 +134,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachineFlavorList. + Gets the metadata of this V1alpha1VirtualMachineInstancetypeList. - :return: The metadata of this V1alpha1VirtualMachineFlavorList. + :return: The metadata of this V1alpha1VirtualMachineInstancetypeList. :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @@ -144,9 +144,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachineFlavorList. + Sets the metadata of this V1alpha1VirtualMachineInstancetypeList. - :param metadata: The metadata of this V1alpha1VirtualMachineFlavorList. + :param metadata: The metadata of this V1alpha1VirtualMachineInstancetypeList. :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ @@ -194,7 +194,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineFlavorList): + if not isinstance(other, V1alpha1VirtualMachineInstancetypeList): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_flavor_spec.py b/kubevirt/models/v1alpha1_virtual_machine_instancetype_spec.py similarity index 70% rename from kubevirt/models/v1alpha1_virtual_machine_flavor_spec.py rename to kubevirt/models/v1alpha1_virtual_machine_instancetype_spec.py index 3d0afdbe..167dcdd8 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_flavor_spec.py +++ b/kubevirt/models/v1alpha1_virtual_machine_instancetype_spec.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineFlavorSpec(object): +class V1alpha1VirtualMachineInstancetypeSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,12 +31,12 @@ class V1alpha1VirtualMachineFlavorSpec(object): and the value is json key in definition. """ swagger_types = { - 'cpu': 'V1alpha1CPUFlavor', + 'cpu': 'V1alpha1CPUInstancetype', 'gpus': 'list[V1GPU]', 'host_devices': 'list[V1HostDevice]', 'io_threads_policy': 'str', 'launch_security': 'V1LaunchSecurity', - 'memory': 'V1alpha1MemoryFlavor' + 'memory': 'V1alpha1MemoryInstancetype' } attribute_map = { @@ -50,7 +50,7 @@ class V1alpha1VirtualMachineFlavorSpec(object): def __init__(self, cpu=None, gpus=None, host_devices=None, io_threads_policy=None, launch_security=None, memory=None): """ - V1alpha1VirtualMachineFlavorSpec - a model defined in Swagger + V1alpha1VirtualMachineInstancetypeSpec - a model defined in Swagger """ self._cpu = None @@ -74,22 +74,22 @@ def __init__(self, cpu=None, gpus=None, host_devices=None, io_threads_policy=Non @property def cpu(self): """ - Gets the cpu of this V1alpha1VirtualMachineFlavorSpec. - Required CPU related attributes of the flavor. + Gets the cpu of this V1alpha1VirtualMachineInstancetypeSpec. + Required CPU related attributes of the instancetype. - :return: The cpu of this V1alpha1VirtualMachineFlavorSpec. - :rtype: V1alpha1CPUFlavor + :return: The cpu of this V1alpha1VirtualMachineInstancetypeSpec. + :rtype: V1alpha1CPUInstancetype """ return self._cpu @cpu.setter def cpu(self, cpu): """ - Sets the cpu of this V1alpha1VirtualMachineFlavorSpec. - Required CPU related attributes of the flavor. + Sets the cpu of this V1alpha1VirtualMachineInstancetypeSpec. + Required CPU related attributes of the instancetype. - :param cpu: The cpu of this V1alpha1VirtualMachineFlavorSpec. - :type: V1alpha1CPUFlavor + :param cpu: The cpu of this V1alpha1VirtualMachineInstancetypeSpec. + :type: V1alpha1CPUInstancetype """ if cpu is None: raise ValueError("Invalid value for `cpu`, must not be `None`") @@ -99,10 +99,10 @@ def cpu(self, cpu): @property def gpus(self): """ - Gets the gpus of this V1alpha1VirtualMachineFlavorSpec. - Optionally defines any GPU devices associated with the flavor. + Gets the gpus of this V1alpha1VirtualMachineInstancetypeSpec. + Optionally defines any GPU devices associated with the instancetype. - :return: The gpus of this V1alpha1VirtualMachineFlavorSpec. + :return: The gpus of this V1alpha1VirtualMachineInstancetypeSpec. :rtype: list[V1GPU] """ return self._gpus @@ -110,10 +110,10 @@ def gpus(self): @gpus.setter def gpus(self, gpus): """ - Sets the gpus of this V1alpha1VirtualMachineFlavorSpec. - Optionally defines any GPU devices associated with the flavor. + Sets the gpus of this V1alpha1VirtualMachineInstancetypeSpec. + Optionally defines any GPU devices associated with the instancetype. - :param gpus: The gpus of this V1alpha1VirtualMachineFlavorSpec. + :param gpus: The gpus of this V1alpha1VirtualMachineInstancetypeSpec. :type: list[V1GPU] """ @@ -122,10 +122,10 @@ def gpus(self, gpus): @property def host_devices(self): """ - Gets the host_devices of this V1alpha1VirtualMachineFlavorSpec. - Optionally defines any HostDevices associated with the flavor. + Gets the host_devices of this V1alpha1VirtualMachineInstancetypeSpec. + Optionally defines any HostDevices associated with the instancetype. - :return: The host_devices of this V1alpha1VirtualMachineFlavorSpec. + :return: The host_devices of this V1alpha1VirtualMachineInstancetypeSpec. :rtype: list[V1HostDevice] """ return self._host_devices @@ -133,10 +133,10 @@ def host_devices(self): @host_devices.setter def host_devices(self, host_devices): """ - Sets the host_devices of this V1alpha1VirtualMachineFlavorSpec. - Optionally defines any HostDevices associated with the flavor. + Sets the host_devices of this V1alpha1VirtualMachineInstancetypeSpec. + Optionally defines any HostDevices associated with the instancetype. - :param host_devices: The host_devices of this V1alpha1VirtualMachineFlavorSpec. + :param host_devices: The host_devices of this V1alpha1VirtualMachineInstancetypeSpec. :type: list[V1HostDevice] """ @@ -145,10 +145,10 @@ def host_devices(self, host_devices): @property def io_threads_policy(self): """ - Gets the io_threads_policy of this V1alpha1VirtualMachineFlavorSpec. - Optionally defines the IOThreadsPolicy to be used by the flavor. + Gets the io_threads_policy of this V1alpha1VirtualMachineInstancetypeSpec. + Optionally defines the IOThreadsPolicy to be used by the instancetype. - :return: The io_threads_policy of this V1alpha1VirtualMachineFlavorSpec. + :return: The io_threads_policy of this V1alpha1VirtualMachineInstancetypeSpec. :rtype: str """ return self._io_threads_policy @@ -156,10 +156,10 @@ def io_threads_policy(self): @io_threads_policy.setter def io_threads_policy(self, io_threads_policy): """ - Sets the io_threads_policy of this V1alpha1VirtualMachineFlavorSpec. - Optionally defines the IOThreadsPolicy to be used by the flavor. + Sets the io_threads_policy of this V1alpha1VirtualMachineInstancetypeSpec. + Optionally defines the IOThreadsPolicy to be used by the instancetype. - :param io_threads_policy: The io_threads_policy of this V1alpha1VirtualMachineFlavorSpec. + :param io_threads_policy: The io_threads_policy of this V1alpha1VirtualMachineInstancetypeSpec. :type: str """ @@ -168,10 +168,10 @@ def io_threads_policy(self, io_threads_policy): @property def launch_security(self): """ - Gets the launch_security of this V1alpha1VirtualMachineFlavorSpec. - Optionally defines the LaunchSecurity to be used by the flavor. + Gets the launch_security of this V1alpha1VirtualMachineInstancetypeSpec. + Optionally defines the LaunchSecurity to be used by the instancetype. - :return: The launch_security of this V1alpha1VirtualMachineFlavorSpec. + :return: The launch_security of this V1alpha1VirtualMachineInstancetypeSpec. :rtype: V1LaunchSecurity """ return self._launch_security @@ -179,10 +179,10 @@ def launch_security(self): @launch_security.setter def launch_security(self, launch_security): """ - Sets the launch_security of this V1alpha1VirtualMachineFlavorSpec. - Optionally defines the LaunchSecurity to be used by the flavor. + Sets the launch_security of this V1alpha1VirtualMachineInstancetypeSpec. + Optionally defines the LaunchSecurity to be used by the instancetype. - :param launch_security: The launch_security of this V1alpha1VirtualMachineFlavorSpec. + :param launch_security: The launch_security of this V1alpha1VirtualMachineInstancetypeSpec. :type: V1LaunchSecurity """ @@ -191,22 +191,22 @@ def launch_security(self, launch_security): @property def memory(self): """ - Gets the memory of this V1alpha1VirtualMachineFlavorSpec. - Required Memory related attributes of the flavor. + Gets the memory of this V1alpha1VirtualMachineInstancetypeSpec. + Required Memory related attributes of the instancetype. - :return: The memory of this V1alpha1VirtualMachineFlavorSpec. - :rtype: V1alpha1MemoryFlavor + :return: The memory of this V1alpha1VirtualMachineInstancetypeSpec. + :rtype: V1alpha1MemoryInstancetype """ return self._memory @memory.setter def memory(self, memory): """ - Sets the memory of this V1alpha1VirtualMachineFlavorSpec. - Required Memory related attributes of the flavor. + Sets the memory of this V1alpha1VirtualMachineInstancetypeSpec. + Required Memory related attributes of the instancetype. - :param memory: The memory of this V1alpha1VirtualMachineFlavorSpec. - :type: V1alpha1MemoryFlavor + :param memory: The memory of this V1alpha1VirtualMachineInstancetypeSpec. + :type: V1alpha1MemoryInstancetype """ if memory is None: raise ValueError("Invalid value for `memory`, must not be `None`") @@ -255,7 +255,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineFlavorSpec): + if not isinstance(other, V1alpha1VirtualMachineInstancetypeSpec): return False return self.__dict__ == other.__dict__ diff --git a/setup.py b/setup.py index 240bdd00..a7deeec5 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.54.0-372-gf8423f7a4" +VERSION = "v0.55.0-113-gc59eef791" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 2ef9e687..25c72122 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.54.0-372-gf8423f7a4" +"packageVersion": "v0.55.0-113-gc59eef791" } diff --git a/test/test_default_api.py b/test/test_default_api.py index e7444134..edd0bd57 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -60,14 +60,6 @@ def test_create_namespaced_virtual_machine_export(self): Test case for create_namespaced_virtual_machine_export - """ - pass - - def test_create_namespaced_virtual_machine_flavor(self): - """ - Test case for create_namespaced_virtual_machine_flavor - - """ pass @@ -100,6 +92,14 @@ def test_create_namespaced_virtual_machine_instance_replica_set(self): Test case for create_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_create_namespaced_virtual_machine_instancetype(self): + """ + Test case for create_namespaced_virtual_machine_instancetype + + """ pass @@ -151,9 +151,9 @@ def test_create_virtual_machine_clone(self): """ pass - def test_create_virtual_machine_cluster_flavor(self): + def test_create_virtual_machine_cluster_instancetype(self): """ - Test case for create_virtual_machine_cluster_flavor + Test case for create_virtual_machine_cluster_instancetype """ @@ -196,14 +196,6 @@ def test_delete_collection_namespaced_virtual_machine_export(self): Test case for delete_collection_namespaced_virtual_machine_export - """ - pass - - def test_delete_collection_namespaced_virtual_machine_flavor(self): - """ - Test case for delete_collection_namespaced_virtual_machine_flavor - - """ pass @@ -236,6 +228,14 @@ def test_delete_collection_namespaced_virtual_machine_instance_replica_set(self) Test case for delete_collection_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_delete_collection_namespaced_virtual_machine_instancetype(self): + """ + Test case for delete_collection_namespaced_virtual_machine_instancetype + + """ pass @@ -287,9 +287,9 @@ def test_delete_collection_virtual_machine_clone(self): """ pass - def test_delete_collection_virtual_machine_cluster_flavor(self): + def test_delete_collection_virtual_machine_cluster_instancetype(self): """ - Test case for delete_collection_virtual_machine_cluster_flavor + Test case for delete_collection_virtual_machine_cluster_instancetype """ @@ -332,14 +332,6 @@ def test_delete_namespaced_virtual_machine_export(self): Test case for delete_namespaced_virtual_machine_export - """ - pass - - def test_delete_namespaced_virtual_machine_flavor(self): - """ - Test case for delete_namespaced_virtual_machine_flavor - - """ pass @@ -372,6 +364,14 @@ def test_delete_namespaced_virtual_machine_instance_replica_set(self): Test case for delete_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_delete_namespaced_virtual_machine_instancetype(self): + """ + Test case for delete_namespaced_virtual_machine_instancetype + + """ pass @@ -423,9 +423,9 @@ def test_delete_virtual_machine_clone(self): """ pass - def test_delete_virtual_machine_cluster_flavor(self): + def test_delete_virtual_machine_cluster_instancetype(self): """ - Test case for delete_virtual_machine_cluster_flavor + Test case for delete_virtual_machine_cluster_instancetype """ @@ -471,9 +471,9 @@ def test_get_api_group_export_kubevirt_io(self): """ pass - def test_get_api_group_flavor_kubevirt_io(self): + def test_get_api_group_instancetype_kubevirt_io(self): """ - Test case for get_api_group_flavor_kubevirt_io + Test case for get_api_group_instancetype_kubevirt_io """ @@ -535,9 +535,9 @@ def test_get_api_resources_export_kubevirt_io_v1alpha1(self): """ pass - def test_get_api_resources_flavor_kubevirt_io_v1alpha1(self): + def test_get_api_resources_instancetype_kubevirt_io_v1alpha1(self): """ - Test case for get_api_resources_flavor_kubevirt_io_v1alpha1 + Test case for get_api_resources_instancetype_kubevirt_io_v1alpha1 """ @@ -644,14 +644,6 @@ def test_list_namespaced_virtual_machine_export(self): Test case for list_namespaced_virtual_machine_export - """ - pass - - def test_list_namespaced_virtual_machine_flavor(self): - """ - Test case for list_namespaced_virtual_machine_flavor - - """ pass @@ -684,6 +676,14 @@ def test_list_namespaced_virtual_machine_instance_replica_set(self): Test case for list_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_list_namespaced_virtual_machine_instancetype(self): + """ + Test case for list_namespaced_virtual_machine_instancetype + + """ pass @@ -735,9 +735,9 @@ def test_list_virtual_machine_clone(self): """ pass - def test_list_virtual_machine_cluster_flavor(self): + def test_list_virtual_machine_cluster_instancetype(self): """ - Test case for list_virtual_machine_cluster_flavor + Test case for list_virtual_machine_cluster_instancetype """ @@ -756,14 +756,6 @@ def test_list_virtual_machine_export_for_all_namespaces(self): Test case for list_virtual_machine_export_for_all_namespaces - """ - pass - - def test_list_virtual_machine_flavor_for_all_namespaces(self): - """ - Test case for list_virtual_machine_flavor_for_all_namespaces - - """ pass @@ -804,6 +796,14 @@ def test_list_virtual_machine_instance_replica_set_for_all_namespaces(self): Test case for list_virtual_machine_instance_replica_set_for_all_namespaces + """ + pass + + def test_list_virtual_machine_instancetype_for_all_namespaces(self): + """ + Test case for list_virtual_machine_instancetype_for_all_namespaces + + """ pass @@ -876,14 +876,6 @@ def test_patch_namespaced_virtual_machine_export(self): Test case for patch_namespaced_virtual_machine_export - """ - pass - - def test_patch_namespaced_virtual_machine_flavor(self): - """ - Test case for patch_namespaced_virtual_machine_flavor - - """ pass @@ -916,6 +908,14 @@ def test_patch_namespaced_virtual_machine_instance_replica_set(self): Test case for patch_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_patch_namespaced_virtual_machine_instancetype(self): + """ + Test case for patch_namespaced_virtual_machine_instancetype + + """ pass @@ -967,9 +967,9 @@ def test_patch_virtual_machine_clone(self): """ pass - def test_patch_virtual_machine_cluster_flavor(self): + def test_patch_virtual_machine_cluster_instancetype(self): """ - Test case for patch_virtual_machine_cluster_flavor + Test case for patch_virtual_machine_cluster_instancetype """ @@ -1012,14 +1012,6 @@ def test_read_namespaced_virtual_machine_export(self): Test case for read_namespaced_virtual_machine_export - """ - pass - - def test_read_namespaced_virtual_machine_flavor(self): - """ - Test case for read_namespaced_virtual_machine_flavor - - """ pass @@ -1052,6 +1044,14 @@ def test_read_namespaced_virtual_machine_instance_replica_set(self): Test case for read_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_read_namespaced_virtual_machine_instancetype(self): + """ + Test case for read_namespaced_virtual_machine_instancetype + + """ pass @@ -1103,9 +1103,9 @@ def test_read_virtual_machine_clone(self): """ pass - def test_read_virtual_machine_cluster_flavor(self): + def test_read_virtual_machine_cluster_instancetype(self): """ - Test case for read_virtual_machine_cluster_flavor + Test case for read_virtual_machine_cluster_instancetype """ @@ -1148,14 +1148,6 @@ def test_replace_namespaced_virtual_machine_export(self): Test case for replace_namespaced_virtual_machine_export - """ - pass - - def test_replace_namespaced_virtual_machine_flavor(self): - """ - Test case for replace_namespaced_virtual_machine_flavor - - """ pass @@ -1188,6 +1180,14 @@ def test_replace_namespaced_virtual_machine_instance_replica_set(self): Test case for replace_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_replace_namespaced_virtual_machine_instancetype(self): + """ + Test case for replace_namespaced_virtual_machine_instancetype + + """ pass @@ -1239,9 +1239,9 @@ def test_replace_virtual_machine_clone(self): """ pass - def test_replace_virtual_machine_cluster_flavor(self): + def test_replace_virtual_machine_cluster_instancetype(self): """ - Test case for replace_virtual_machine_cluster_flavor + Test case for replace_virtual_machine_cluster_instancetype """ @@ -1828,14 +1828,6 @@ def test_watch_namespaced_virtual_machine_export(self): Test case for watch_namespaced_virtual_machine_export - """ - pass - - def test_watch_namespaced_virtual_machine_flavor(self): - """ - Test case for watch_namespaced_virtual_machine_flavor - - """ pass @@ -1868,6 +1860,14 @@ def test_watch_namespaced_virtual_machine_instance_replica_set(self): Test case for watch_namespaced_virtual_machine_instance_replica_set + """ + pass + + def test_watch_namespaced_virtual_machine_instancetype(self): + """ + Test case for watch_namespaced_virtual_machine_instancetype + + """ pass @@ -1919,9 +1919,9 @@ def test_watch_virtual_machine_clone_list_for_all_namespaces(self): """ pass - def test_watch_virtual_machine_cluster_flavor_list_for_all_namespaces(self): + def test_watch_virtual_machine_cluster_instancetype_list_for_all_namespaces(self): """ - Test case for watch_virtual_machine_cluster_flavor_list_for_all_namespaces + Test case for watch_virtual_machine_cluster_instancetype_list_for_all_namespaces """ @@ -1940,14 +1940,6 @@ def test_watch_virtual_machine_export_list_for_all_namespaces(self): Test case for watch_virtual_machine_export_list_for_all_namespaces - """ - pass - - def test_watch_virtual_machine_flavor_list_for_all_namespaces(self): - """ - Test case for watch_virtual_machine_flavor_list_for_all_namespaces - - """ pass @@ -1980,6 +1972,14 @@ def test_watch_virtual_machine_instance_replica_set_list_for_all_namespaces(self Test case for watch_virtual_machine_instance_replica_set_list_for_all_namespaces + """ + pass + + def test_watch_virtual_machine_instancetype_list_for_all_namespaces(self): + """ + Test case for watch_virtual_machine_instancetype_list_for_all_namespaces + + """ pass diff --git a/test/test_v1alpha1_memory_flavor.py b/test/test_v1_instancetype_matcher.py similarity index 64% rename from test/test_v1alpha1_memory_flavor.py rename to test/test_v1_instancetype_matcher.py index e9f45eca..a323ec69 100644 --- a/test/test_v1alpha1_memory_flavor.py +++ b/test/test_v1_instancetype_matcher.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_memory_flavor import V1alpha1MemoryFlavor +from kubevirt.models.v1_instancetype_matcher import V1InstancetypeMatcher -class TestV1alpha1MemoryFlavor(unittest.TestCase): - """ V1alpha1MemoryFlavor unit test stubs """ +class TestV1InstancetypeMatcher(unittest.TestCase): + """ V1InstancetypeMatcher unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1MemoryFlavor(self): + def testV1InstancetypeMatcher(self): """ - Test V1alpha1MemoryFlavor + Test V1InstancetypeMatcher """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_memory_flavor.V1alpha1MemoryFlavor() + #model = kubevirt.models.v1_instancetype_matcher.V1InstancetypeMatcher() pass diff --git a/test/test_v1alpha1_cpu_flavor.py b/test/test_v1alpha1_cpu_instancetype.py similarity index 63% rename from test/test_v1alpha1_cpu_flavor.py rename to test/test_v1alpha1_cpu_instancetype.py index e97149a8..3680fd3b 100644 --- a/test/test_v1alpha1_cpu_flavor.py +++ b/test/test_v1alpha1_cpu_instancetype.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_cpu_flavor import V1alpha1CPUFlavor +from kubevirt.models.v1alpha1_cpu_instancetype import V1alpha1CPUInstancetype -class TestV1alpha1CPUFlavor(unittest.TestCase): - """ V1alpha1CPUFlavor unit test stubs """ +class TestV1alpha1CPUInstancetype(unittest.TestCase): + """ V1alpha1CPUInstancetype unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1CPUFlavor(self): + def testV1alpha1CPUInstancetype(self): """ - Test V1alpha1CPUFlavor + Test V1alpha1CPUInstancetype """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_cpu_flavor.V1alpha1CPUFlavor() + #model = kubevirt.models.v1alpha1_cpu_instancetype.V1alpha1CPUInstancetype() pass diff --git a/test/test_v1_flavor_matcher.py b/test/test_v1alpha1_memory_instancetype.py similarity index 62% rename from test/test_v1_flavor_matcher.py rename to test/test_v1alpha1_memory_instancetype.py index e2aa4985..96130ab0 100644 --- a/test/test_v1_flavor_matcher.py +++ b/test/test_v1alpha1_memory_instancetype.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_flavor_matcher import V1FlavorMatcher +from kubevirt.models.v1alpha1_memory_instancetype import V1alpha1MemoryInstancetype -class TestV1FlavorMatcher(unittest.TestCase): - """ V1FlavorMatcher unit test stubs """ +class TestV1alpha1MemoryInstancetype(unittest.TestCase): + """ V1alpha1MemoryInstancetype unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1FlavorMatcher(self): + def testV1alpha1MemoryInstancetype(self): """ - Test V1FlavorMatcher + Test V1alpha1MemoryInstancetype """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_flavor_matcher.V1FlavorMatcher() + #model = kubevirt.models.v1alpha1_memory_instancetype.V1alpha1MemoryInstancetype() pass diff --git a/test/test_v1alpha1_virtual_machine_cluster_flavor_list.py b/test/test_v1alpha1_virtual_machine_cluster_instancetype.py similarity index 61% rename from test/test_v1alpha1_virtual_machine_cluster_flavor_list.py rename to test/test_v1alpha1_virtual_machine_cluster_instancetype.py index 903a4319..14499587 100644 --- a/test/test_v1alpha1_virtual_machine_cluster_flavor_list.py +++ b/test/test_v1alpha1_virtual_machine_cluster_instancetype.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_cluster_flavor_list import V1alpha1VirtualMachineClusterFlavorList +from kubevirt.models.v1alpha1_virtual_machine_cluster_instancetype import V1alpha1VirtualMachineClusterInstancetype -class TestV1alpha1VirtualMachineClusterFlavorList(unittest.TestCase): - """ V1alpha1VirtualMachineClusterFlavorList unit test stubs """ +class TestV1alpha1VirtualMachineClusterInstancetype(unittest.TestCase): + """ V1alpha1VirtualMachineClusterInstancetype unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachineClusterFlavorList(self): + def testV1alpha1VirtualMachineClusterInstancetype(self): """ - Test V1alpha1VirtualMachineClusterFlavorList + Test V1alpha1VirtualMachineClusterInstancetype """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_cluster_flavor_list.V1alpha1VirtualMachineClusterFlavorList() + #model = kubevirt.models.v1alpha1_virtual_machine_cluster_instancetype.V1alpha1VirtualMachineClusterInstancetype() pass diff --git a/test/test_v1alpha1_virtual_machine_cluster_flavor.py b/test/test_v1alpha1_virtual_machine_cluster_instancetype_list.py similarity index 59% rename from test/test_v1alpha1_virtual_machine_cluster_flavor.py rename to test/test_v1alpha1_virtual_machine_cluster_instancetype_list.py index f5d44191..a8ec0246 100644 --- a/test/test_v1alpha1_virtual_machine_cluster_flavor.py +++ b/test/test_v1alpha1_virtual_machine_cluster_instancetype_list.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_cluster_flavor import V1alpha1VirtualMachineClusterFlavor +from kubevirt.models.v1alpha1_virtual_machine_cluster_instancetype_list import V1alpha1VirtualMachineClusterInstancetypeList -class TestV1alpha1VirtualMachineClusterFlavor(unittest.TestCase): - """ V1alpha1VirtualMachineClusterFlavor unit test stubs """ +class TestV1alpha1VirtualMachineClusterInstancetypeList(unittest.TestCase): + """ V1alpha1VirtualMachineClusterInstancetypeList unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachineClusterFlavor(self): + def testV1alpha1VirtualMachineClusterInstancetypeList(self): """ - Test V1alpha1VirtualMachineClusterFlavor + Test V1alpha1VirtualMachineClusterInstancetypeList """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_cluster_flavor.V1alpha1VirtualMachineClusterFlavor() + #model = kubevirt.models.v1alpha1_virtual_machine_cluster_instancetype_list.V1alpha1VirtualMachineClusterInstancetypeList() pass diff --git a/test/test_v1alpha1_virtual_machine_flavor_list.py b/test/test_v1alpha1_virtual_machine_flavor_list.py deleted file mode 100644 index f95626a1..00000000 --- a/test/test_v1alpha1_virtual_machine_flavor_list.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_flavor_list import V1alpha1VirtualMachineFlavorList - - -class TestV1alpha1VirtualMachineFlavorList(unittest.TestCase): - """ V1alpha1VirtualMachineFlavorList unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachineFlavorList(self): - """ - Test V1alpha1VirtualMachineFlavorList - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_flavor_list.V1alpha1VirtualMachineFlavorList() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_flavor_spec.py b/test/test_v1alpha1_virtual_machine_flavor_spec.py deleted file mode 100644 index 0f7d89e7..00000000 --- a/test/test_v1alpha1_virtual_machine_flavor_spec.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_flavor_spec import V1alpha1VirtualMachineFlavorSpec - - -class TestV1alpha1VirtualMachineFlavorSpec(unittest.TestCase): - """ V1alpha1VirtualMachineFlavorSpec unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachineFlavorSpec(self): - """ - Test V1alpha1VirtualMachineFlavorSpec - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_flavor_spec.V1alpha1VirtualMachineFlavorSpec() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_flavor.py b/test/test_v1alpha1_virtual_machine_instancetype.py similarity index 58% rename from test/test_v1alpha1_virtual_machine_flavor.py rename to test/test_v1alpha1_virtual_machine_instancetype.py index b97f2652..472b58b8 100644 --- a/test/test_v1alpha1_virtual_machine_flavor.py +++ b/test/test_v1alpha1_virtual_machine_instancetype.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_flavor import V1alpha1VirtualMachineFlavor +from kubevirt.models.v1alpha1_virtual_machine_instancetype import V1alpha1VirtualMachineInstancetype -class TestV1alpha1VirtualMachineFlavor(unittest.TestCase): - """ V1alpha1VirtualMachineFlavor unit test stubs """ +class TestV1alpha1VirtualMachineInstancetype(unittest.TestCase): + """ V1alpha1VirtualMachineInstancetype unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachineFlavor(self): + def testV1alpha1VirtualMachineInstancetype(self): """ - Test V1alpha1VirtualMachineFlavor + Test V1alpha1VirtualMachineInstancetype """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_flavor.V1alpha1VirtualMachineFlavor() + #model = kubevirt.models.v1alpha1_virtual_machine_instancetype.V1alpha1VirtualMachineInstancetype() pass diff --git a/test/test_v1alpha1_virtual_machine_instancetype_list.py b/test/test_v1alpha1_virtual_machine_instancetype_list.py new file mode 100644 index 00000000..4d1dd693 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_instancetype_list.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_instancetype_list import V1alpha1VirtualMachineInstancetypeList + + +class TestV1alpha1VirtualMachineInstancetypeList(unittest.TestCase): + """ V1alpha1VirtualMachineInstancetypeList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineInstancetypeList(self): + """ + Test V1alpha1VirtualMachineInstancetypeList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_instancetype_list.V1alpha1VirtualMachineInstancetypeList() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_instancetype_spec.py b/test/test_v1alpha1_virtual_machine_instancetype_spec.py new file mode 100644 index 00000000..740c04d4 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_instancetype_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_instancetype_spec import V1alpha1VirtualMachineInstancetypeSpec + + +class TestV1alpha1VirtualMachineInstancetypeSpec(unittest.TestCase): + """ V1alpha1VirtualMachineInstancetypeSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineInstancetypeSpec(self): + """ + Test V1alpha1VirtualMachineInstancetypeSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_instancetype_spec.V1alpha1VirtualMachineInstancetypeSpec() + pass + + +if __name__ == '__main__': + unittest.main() From 456f5800f64fed4c0ad1fe5f55206dce8ead2e26 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 21 Jul 2022 22:44:27 +0000 Subject: [PATCH 282/521] Client Python update by KubeVirt Prow build 1550239556152856576 --- README.md | 2 +- docs/V1VirtualMachineMemoryDumpRequest.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1_virtual_machine_memory_dump_request.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 12548d39..35bc7456 100644 --- a/README.md +++ b/README.md @@ -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: v0.55.0-113-gc59eef791 +- Package version: v0.55.0-130-g3c1d4bc29 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineMemoryDumpRequest.md b/docs/V1VirtualMachineMemoryDumpRequest.md index b01f3e0f..38ab87b3 100644 --- a/docs/V1VirtualMachineMemoryDumpRequest.md +++ b/docs/V1VirtualMachineMemoryDumpRequest.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **file_name** | **str** | FileName represents the name of the output file | [optional] **message** | **str** | Message is a detailed message about failure of the memory dump | [optional] **phase** | **str** | Phase represents the memory dump phase | +**remove** | **bool** | Remove represents request of dissociating the memory dump pvc | [optional] **start_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | StartTimestamp represents the time the memory dump started | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index aea6032c..ca1b2355 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.55.0-113-gc59eef791" + release_note="Auto-generated client v0.55.0-130-g3c1d4bc29" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 6a5853d6..0d7099c0 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.55.0-113-gc59eef791/python' + self.user_agent = 'Swagger-Codegen/v0.55.0-130-g3c1d4bc29/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index bc264e23..c24dccdb 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.55.0-113-gc59eef791".\ + "SDK Package Version: v0.55.0-130-g3c1d4bc29".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_memory_dump_request.py b/kubevirt/models/v1_virtual_machine_memory_dump_request.py index 910cb67f..ba559fc0 100644 --- a/kubevirt/models/v1_virtual_machine_memory_dump_request.py +++ b/kubevirt/models/v1_virtual_machine_memory_dump_request.py @@ -36,6 +36,7 @@ class V1VirtualMachineMemoryDumpRequest(object): 'file_name': 'str', 'message': 'str', 'phase': 'str', + 'remove': 'bool', 'start_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time' } @@ -45,10 +46,11 @@ class V1VirtualMachineMemoryDumpRequest(object): 'file_name': 'fileName', 'message': 'message', 'phase': 'phase', + 'remove': 'remove', 'start_timestamp': 'startTimestamp' } - def __init__(self, claim_name=None, end_timestamp=None, file_name=None, message=None, phase=None, start_timestamp=None): + def __init__(self, claim_name=None, end_timestamp=None, file_name=None, message=None, phase=None, remove=None, start_timestamp=None): """ V1VirtualMachineMemoryDumpRequest - a model defined in Swagger """ @@ -58,6 +60,7 @@ def __init__(self, claim_name=None, end_timestamp=None, file_name=None, message= self._file_name = None self._message = None self._phase = None + self._remove = None self._start_timestamp = None self.claim_name = claim_name @@ -68,6 +71,8 @@ def __init__(self, claim_name=None, end_timestamp=None, file_name=None, message= if message is not None: self.message = message self.phase = phase + if remove is not None: + self.remove = remove if start_timestamp is not None: self.start_timestamp = start_timestamp @@ -190,6 +195,29 @@ def phase(self, phase): self._phase = phase + @property + def remove(self): + """ + Gets the remove of this V1VirtualMachineMemoryDumpRequest. + Remove represents request of dissociating the memory dump pvc + + :return: The remove of this V1VirtualMachineMemoryDumpRequest. + :rtype: bool + """ + return self._remove + + @remove.setter + def remove(self, remove): + """ + Sets the remove of this V1VirtualMachineMemoryDumpRequest. + Remove represents request of dissociating the memory dump pvc + + :param remove: The remove of this V1VirtualMachineMemoryDumpRequest. + :type: bool + """ + + self._remove = remove + @property def start_timestamp(self): """ diff --git a/setup.py b/setup.py index a7deeec5..745dd3cf 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.55.0-113-gc59eef791" +VERSION = "v0.55.0-130-g3c1d4bc29" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 25c72122..2e2e7566 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.55.0-113-gc59eef791" +"packageVersion": "v0.55.0-130-g3c1d4bc29" } From d531b3337da6266dc0ec8e61a2d99c8a31dab49b Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 22 Jul 2022 15:29:19 +0000 Subject: [PATCH 283/521] Client Python update by KubeVirt Prow build 1550486767956660224 --- README.md | 3 +- docs/V1Interface.md | 1 + docs/V1InterfacePasst.md | 9 +++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_interface.py | 28 +++++++- kubevirt/models/v1_interface_passt.py | 99 +++++++++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_interface_passt.py | 44 ++++++++++++ 14 files changed, 192 insertions(+), 7 deletions(-) create mode 100644 docs/V1InterfacePasst.md create mode 100644 kubevirt/models/v1_interface_passt.py create mode 100644 test/test_v1_interface_passt.py diff --git a/README.md b/README.md index 35bc7456..063e41a3 100644 --- a/README.md +++ b/README.md @@ -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: v0.55.0-130-g3c1d4bc29 +- Package version: v0.55.0-160-ge4ab05884 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -445,6 +445,7 @@ Class | Method | HTTP request | Description - [V1InterfaceBridge](docs/V1InterfaceBridge.md) - [V1InterfaceMacvtap](docs/V1InterfaceMacvtap.md) - [V1InterfaceMasquerade](docs/V1InterfaceMasquerade.md) + - [V1InterfacePasst](docs/V1InterfacePasst.md) - [V1InterfaceSRIOV](docs/V1InterfaceSRIOV.md) - [V1InterfaceSlirp](docs/V1InterfaceSlirp.md) - [V1KVMTimer](docs/V1KVMTimer.md) diff --git a/docs/V1Interface.md b/docs/V1Interface.md index 109b6939..58487e12 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **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. | +**passt** | [**V1InterfacePasst**](V1InterfacePasst.md) | | [optional] **pci_address** | **str** | If specified, the virtual network interface will be placed on the guests pci address with the specified PCI address. For example: 0000:81:01.10 | [optional] **ports** | [**list[V1Port]**](V1Port.md) | List of ports to be forwarded to the virtual machine. | [optional] **slirp** | [**V1InterfaceSlirp**](V1InterfaceSlirp.md) | | [optional] diff --git a/docs/V1InterfacePasst.md b/docs/V1InterfacePasst.md new file mode 100644 index 00000000..16038ea6 --- /dev/null +++ b/docs/V1InterfacePasst.md @@ -0,0 +1,9 @@ +# V1InterfacePasst + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index ca1b2355..8ab96b66 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.55.0-130-g3c1d4bc29" + release_note="Auto-generated client v0.55.0-160-ge4ab05884" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 94b17e3c..d8f77043 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -387,6 +387,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_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 +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_interface_passt.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface_passt.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InterfacePasst.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_interface_sriov.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface_sriov.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InterfaceSRIOV.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 1d6d76cb..af40d0b4 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -136,6 +136,7 @@ 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 from .models.v1_interface_slirp import V1InterfaceSlirp from .models.v1_kvm_timer import V1KVMTimer diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 0d7099c0..36d32790 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.55.0-130-g3c1d4bc29/python' + self.user_agent = 'Swagger-Codegen/v0.55.0-160-ge4ab05884/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c24dccdb..c67c090e 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.55.0-130-g3c1d4bc29".\ + "SDK Package Version: v0.55.0-160-ge4ab05884".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 0aa9d2bc..96a3f69b 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -136,6 +136,7 @@ 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 from .v1_interface_slirp import V1InterfaceSlirp from .v1_kvm_timer import V1KVMTimer diff --git a/kubevirt/models/v1_interface.py b/kubevirt/models/v1_interface.py index 98c6e0a6..811fede2 100644 --- a/kubevirt/models/v1_interface.py +++ b/kubevirt/models/v1_interface.py @@ -39,6 +39,7 @@ class V1Interface(object): 'masquerade': 'V1InterfaceMasquerade', 'model': 'str', 'name': 'str', + 'passt': 'V1InterfacePasst', 'pci_address': 'str', 'ports': 'list[V1Port]', 'slirp': 'V1InterfaceSlirp', @@ -55,6 +56,7 @@ class V1Interface(object): 'masquerade': 'masquerade', 'model': 'model', 'name': 'name', + 'passt': 'passt', 'pci_address': 'pciAddress', 'ports': 'ports', 'slirp': 'slirp', @@ -62,7 +64,7 @@ class V1Interface(object): 'tag': 'tag' } - def __init__(self, boot_order=None, bridge=None, dhcp_options=None, mac_address=None, macvtap=None, masquerade=None, model=None, name=None, pci_address=None, ports=None, slirp=None, sriov=None, tag=None): + def __init__(self, boot_order=None, bridge=None, dhcp_options=None, mac_address=None, macvtap=None, masquerade=None, model=None, name=None, passt=None, pci_address=None, ports=None, slirp=None, sriov=None, tag=None): """ V1Interface - a model defined in Swagger """ @@ -75,6 +77,7 @@ def __init__(self, boot_order=None, bridge=None, dhcp_options=None, mac_address= self._masquerade = None self._model = None self._name = None + self._passt = None self._pci_address = None self._ports = None self._slirp = None @@ -96,6 +99,8 @@ def __init__(self, boot_order=None, bridge=None, dhcp_options=None, mac_address= if model is not None: self.model = model self.name = name + if passt is not None: + self.passt = passt if pci_address is not None: self.pci_address = pci_address if ports is not None: @@ -287,6 +292,27 @@ def name(self, name): self._name = name + @property + def passt(self): + """ + Gets the passt of this V1Interface. + + :return: The passt of this V1Interface. + :rtype: V1InterfacePasst + """ + return self._passt + + @passt.setter + def passt(self, passt): + """ + Sets the passt of this V1Interface. + + :param passt: The passt of this V1Interface. + :type: V1InterfacePasst + """ + + self._passt = passt + @property def pci_address(self): """ diff --git a/kubevirt/models/v1_interface_passt.py b/kubevirt/models/v1_interface_passt.py new file mode 100644 index 00000000..453e252f --- /dev/null +++ b/kubevirt/models/v1_interface_passt.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1InterfacePasst(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1InterfacePasst - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1InterfacePasst): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 745dd3cf..7a0d7c0e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.55.0-130-g3c1d4bc29" +VERSION = "v0.55.0-160-ge4ab05884" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 2e2e7566..f1f6c617 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.55.0-130-g3c1d4bc29" +"packageVersion": "v0.55.0-160-ge4ab05884" } diff --git a/test/test_v1_interface_passt.py b/test/test_v1_interface_passt.py new file mode 100644 index 00000000..a4bcb498 --- /dev/null +++ b/test/test_v1_interface_passt.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_interface_passt import V1InterfacePasst + + +class TestV1InterfacePasst(unittest.TestCase): + """ V1InterfacePasst unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1InterfacePasst(self): + """ + Test V1InterfacePasst + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_interface_passt.V1InterfacePasst() + pass + + +if __name__ == '__main__': + unittest.main() From 2184d50bd814f93230e7d4dc17b38bc2b42ead21 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Sat, 30 Jul 2022 06:36:09 +0000 Subject: [PATCH 284/521] Client Python update by KubeVirt Prow build 1553261070607454208 --- README.md | 2 +- docs/V1alpha1MemoryInstancetype.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1alpha1_memory_instancetype.py | 5 +++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 063e41a3..dfd4c3d3 100644 --- a/README.md +++ b/README.md @@ -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: v0.55.0-160-ge4ab05884 +- Package version: v0.55.0-294-gea553ba44 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1alpha1MemoryInstancetype.md b/docs/V1alpha1MemoryInstancetype.md index a7522480..6b75d341 100644 --- a/docs/V1alpha1MemoryInstancetype.md +++ b/docs/V1alpha1MemoryInstancetype.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**guest** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | Required amount of memory which is visible inside the guest OS. | [optional] +**guest** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | Required amount of memory which is visible inside the guest OS. | **hugepages** | [**V1Hugepages**](V1Hugepages.md) | Optionally enables the use of hugepages for the VirtualMachineInstance instead of regular memory. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 8ab96b66..ee394145 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.55.0-160-ge4ab05884" + release_note="Auto-generated client v0.55.0-294-gea553ba44" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 36d32790..5e63f5f3 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.55.0-160-ge4ab05884/python' + self.user_agent = 'Swagger-Codegen/v0.55.0-294-gea553ba44/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c67c090e..52ef113d 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.55.0-160-ge4ab05884".\ + "SDK Package Version: v0.55.0-294-gea553ba44".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1alpha1_memory_instancetype.py b/kubevirt/models/v1alpha1_memory_instancetype.py index 338d134c..60814019 100644 --- a/kubevirt/models/v1alpha1_memory_instancetype.py +++ b/kubevirt/models/v1alpha1_memory_instancetype.py @@ -48,8 +48,7 @@ def __init__(self, guest=None, hugepages=None): self._guest = None self._hugepages = None - if guest is not None: - self.guest = guest + self.guest = guest if hugepages is not None: self.hugepages = hugepages @@ -73,6 +72,8 @@ def guest(self, guest): :param guest: The guest of this V1alpha1MemoryInstancetype. :type: K8sIoApimachineryPkgApiResourceQuantity """ + if guest is None: + raise ValueError("Invalid value for `guest`, must not be `None`") self._guest = guest diff --git a/setup.py b/setup.py index 7a0d7c0e..fd3b73bd 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.55.0-160-ge4ab05884" +VERSION = "v0.55.0-294-gea553ba44" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index f1f6c617..a2642674 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.55.0-160-ge4ab05884" +"packageVersion": "v0.55.0-294-gea553ba44" } From 6d87ebca99da501adbcceffea6ec4cd7a4d44791 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 4 Aug 2022 01:58:33 +0000 Subject: [PATCH 285/521] Client Python update by KubeVirt Prow build 1554998924354260992 --- README.md | 6 +- docs/DefaultApi.md | 188 ++++++++++++++++ git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 406 +++++++++++++++++++++++++++++++++++ kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 32 +++ 9 files changed, 636 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index dfd4c3d3..62368b4b 100644 --- a/README.md +++ b/README.md @@ -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: v0.55.0-294-gea553ba44 +- Package version: v0.56.0-rc.0-14-gd781a75f0 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -224,6 +224,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**replace_virtual_machine_cluster_preference**](docs/DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**v1_check_health**](docs/DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | *DefaultApi* | [**v1_console**](docs/DefaultApi.md#v1_console) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | +*DefaultApi* | [**v1_expand_spec**](docs/DefaultApi.md#v1_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1/expand-spec | *DefaultApi* | [**v1_filesystemlist**](docs/DefaultApi.md#v1_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | *DefaultApi* | [**v1_freeze**](docs/DefaultApi.md#v1_freeze) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze | *DefaultApi* | [**v1_guestfs**](docs/DefaultApi.md#v1_guestfs) | **GET** /apis/subresources.kubevirt.io/v1/guestfs | @@ -244,6 +245,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1_vnc**](docs/DefaultApi.md#v1_vnc) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | *DefaultApi* | [**v1alpha3_check_health**](docs/DefaultApi.md#v1alpha3_check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha3/healthz | *DefaultApi* | [**v1alpha3_console**](docs/DefaultApi.md#v1alpha3_console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | +*DefaultApi* | [**v1alpha3_expand_spec**](docs/DefaultApi.md#v1alpha3_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/expand-spec | *DefaultApi* | [**v1alpha3_filesystemlist**](docs/DefaultApi.md#v1alpha3_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | *DefaultApi* | [**v1alpha3_freeze**](docs/DefaultApi.md#v1alpha3_freeze) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze | *DefaultApi* | [**v1alpha3_get_sub_api_group**](docs/DefaultApi.md#v1alpha3_get_sub_api_group) | **GET** /apis/subresources.kubevirt.io | @@ -269,6 +271,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3stop_cluster_profiler**](docs/DefaultApi.md#v1alpha3stop_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/stop-cluster-profiler | *DefaultApi* | [**v1alpha3usbredir**](docs/DefaultApi.md#v1alpha3usbredir) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir | *DefaultApi* | [**v1alpha3vm_addvolume**](docs/DefaultApi.md#v1alpha3vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | +*DefaultApi* | [**v1alpha3vm_expand_spec**](docs/DefaultApi.md#v1alpha3vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec | *DefaultApi* | [**v1alpha3vm_port_forward**](docs/DefaultApi.md#v1alpha3vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | *DefaultApi* | [**v1alpha3vm_port_forward_with_protocol**](docs/DefaultApi.md#v1alpha3vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | *DefaultApi* | [**v1alpha3vm_removevolume**](docs/DefaultApi.md#v1alpha3vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | @@ -282,6 +285,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1stop_cluster_profiler**](docs/DefaultApi.md#v1stop_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/stop-cluster-profiler | *DefaultApi* | [**v1usbredir**](docs/DefaultApi.md#v1usbredir) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir | *DefaultApi* | [**v1vm_addvolume**](docs/DefaultApi.md#v1vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | +*DefaultApi* | [**v1vm_expand_spec**](docs/DefaultApi.md#v1vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec | *DefaultApi* | [**v1vm_port_forward**](docs/DefaultApi.md#v1vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | *DefaultApi* | [**v1vm_port_forward_with_protocol**](docs/DefaultApi.md#v1vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | *DefaultApi* | [**v1vm_removevolume**](docs/DefaultApi.md#v1vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index c0cabe90..4954a7e7 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -159,6 +159,7 @@ Method | HTTP request | Description [**replace_virtual_machine_cluster_preference**](DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | [**v1_check_health**](DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | [**v1_console**](DefaultApi.md#v1_console) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | +[**v1_expand_spec**](DefaultApi.md#v1_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1/expand-spec | [**v1_filesystemlist**](DefaultApi.md#v1_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | [**v1_freeze**](DefaultApi.md#v1_freeze) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze | [**v1_guestfs**](DefaultApi.md#v1_guestfs) | **GET** /apis/subresources.kubevirt.io/v1/guestfs | @@ -179,6 +180,7 @@ Method | HTTP request | Description [**v1_vnc**](DefaultApi.md#v1_vnc) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | [**v1alpha3_check_health**](DefaultApi.md#v1alpha3_check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha3/healthz | [**v1alpha3_console**](DefaultApi.md#v1alpha3_console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | +[**v1alpha3_expand_spec**](DefaultApi.md#v1alpha3_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/expand-spec | [**v1alpha3_filesystemlist**](DefaultApi.md#v1alpha3_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | [**v1alpha3_freeze**](DefaultApi.md#v1alpha3_freeze) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze | [**v1alpha3_get_sub_api_group**](DefaultApi.md#v1alpha3_get_sub_api_group) | **GET** /apis/subresources.kubevirt.io | @@ -204,6 +206,7 @@ Method | HTTP request | Description [**v1alpha3stop_cluster_profiler**](DefaultApi.md#v1alpha3stop_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/stop-cluster-profiler | [**v1alpha3usbredir**](DefaultApi.md#v1alpha3usbredir) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir | [**v1alpha3vm_addvolume**](DefaultApi.md#v1alpha3vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | +[**v1alpha3vm_expand_spec**](DefaultApi.md#v1alpha3vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec | [**v1alpha3vm_port_forward**](DefaultApi.md#v1alpha3vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | [**v1alpha3vm_port_forward_with_protocol**](DefaultApi.md#v1alpha3vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | [**v1alpha3vm_removevolume**](DefaultApi.md#v1alpha3vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | @@ -217,6 +220,7 @@ Method | HTTP request | Description [**v1stop_cluster_profiler**](DefaultApi.md#v1stop_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/stop-cluster-profiler | [**v1usbredir**](DefaultApi.md#v1usbredir) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir | [**v1vm_addvolume**](DefaultApi.md#v1vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | +[**v1vm_expand_spec**](DefaultApi.md#v1vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec | [**v1vm_port_forward**](DefaultApi.md#v1vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | [**v1vm_port_forward_with_protocol**](DefaultApi.md#v1vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | [**v1vm_removevolume**](DefaultApi.md#v1vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | @@ -8533,6 +8537,49 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1_expand_spec** +> str v1_expand_spec() + + + +Expands instancetype and preference into the passed VirtualMachine object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.v1_expand_spec() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1_expand_spec: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1_filesystemlist** > V1VirtualMachineInstanceFileSystemList v1_filesystemlist() @@ -9491,6 +9538,49 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3_expand_spec** +> str v1alpha3_expand_spec() + + + +Expands instancetype and preference into the passed VirtualMachine object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.v1alpha3_expand_spec() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_expand_spec: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3_filesystemlist** > V1VirtualMachineInstanceFileSystemList v1alpha3_filesystemlist() @@ -10663,6 +10753,55 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3vm_expand_spec** +> str v1alpha3vm_expand_spec(name, namespace) + + + +Get VirtualMachine object with expanded instancetype and preference. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1alpha3vm_expand_spec(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3vm_expand_spec: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3vm_port_forward** > v1alpha3vm_port_forward(name, namespace, port) @@ -11282,6 +11421,55 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1vm_expand_spec** +> str v1vm_expand_spec(name, namespace) + + + +Get VirtualMachine object with expanded instancetype and preference. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1vm_expand_spec(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1vm_expand_spec: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1vm_port_forward** > v1vm_port_forward(name, namespace, port) diff --git a/git_push.sh b/git_push.sh index ee394145..ca051fbc 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.55.0-294-gea553ba44" + release_note="Auto-generated client v0.56.0-rc.0-14-gd781a75f0" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 5e63f5f3..f03f3238 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.55.0-294-gea553ba44/python' + self.user_agent = 'Swagger-Codegen/v0.56.0-rc.0-14-gd781a75f0/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 056eaae9..664b70b4 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -18047,6 +18047,102 @@ def v1_console_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1_expand_spec(self, **kwargs): + """ + Expands instancetype and preference into the passed VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_expand_spec(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1_expand_spec_with_http_info(**kwargs) + else: + (data) = self.v1_expand_spec_with_http_info(**kwargs) + return data + + def v1_expand_spec_with_http_info(self, **kwargs): + """ + Expands instancetype and preference into the passed VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_expand_spec_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1_expand_spec" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/expand-spec', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1_filesystemlist(self, **kwargs): """ Get list of active filesystems on guest machine via guest agent @@ -20118,6 +20214,102 @@ def v1alpha3_console_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1alpha3_expand_spec(self, **kwargs): + """ + Expands instancetype and preference into the passed VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_expand_spec(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3_expand_spec_with_http_info(**kwargs) + else: + (data) = self.v1alpha3_expand_spec_with_http_info(**kwargs) + return data + + def v1alpha3_expand_spec_with_http_info(self, **kwargs): + """ + Expands instancetype and preference into the passed VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_expand_spec_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3_expand_spec" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/expand-spec', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1alpha3_filesystemlist(self, **kwargs): """ Get list of active filesystems on guest machine via guest agent @@ -22657,6 +22849,113 @@ def v1alpha3vm_addvolume_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1alpha3vm_expand_spec(self, name, namespace, **kwargs): + """ + Get VirtualMachine object with expanded instancetype and preference. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vm_expand_spec(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3vm_expand_spec_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1alpha3vm_expand_spec_with_http_info(name, namespace, **kwargs) + return data + + def v1alpha3vm_expand_spec_with_http_info(self, name, namespace, **kwargs): + """ + Get VirtualMachine object with expanded instancetype and preference. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vm_expand_spec_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3vm_expand_spec" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vm_expand_spec`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vm_expand_spec`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1alpha3vm_port_forward(self, name, namespace, port, **kwargs): """ Open a websocket connection forwarding traffic to the running VMI for the specified VirtualMachine and port. @@ -24016,6 +24315,113 @@ def v1vm_addvolume_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1vm_expand_spec(self, name, namespace, **kwargs): + """ + Get VirtualMachine object with expanded instancetype and preference. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1vm_expand_spec(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1vm_expand_spec_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1vm_expand_spec_with_http_info(name, namespace, **kwargs) + return data + + def v1vm_expand_spec_with_http_info(self, name, namespace, **kwargs): + """ + Get VirtualMachine object with expanded instancetype and preference. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1vm_expand_spec_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1vm_expand_spec" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1vm_expand_spec`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1vm_expand_spec`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1vm_port_forward(self, name, namespace, port, **kwargs): """ Open a websocket connection forwarding traffic to the running VMI for the specified VirtualMachine and port. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 52ef113d..f38c101c 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.55.0-294-gea553ba44".\ + "SDK Package Version: v0.56.0-rc.0-14-gd781a75f0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index fd3b73bd..fe63f368 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.55.0-294-gea553ba44" +VERSION = "v0.56.0-rc.0-14-gd781a75f0" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index a2642674..34096be9 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.55.0-294-gea553ba44" +"packageVersion": "v0.56.0-rc.0-14-gd781a75f0" } diff --git a/test/test_default_api.py b/test/test_default_api.py index edd0bd57..b639d0f2 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -1268,6 +1268,14 @@ def test_v1_console(self): Test case for v1_console + """ + pass + + def test_v1_expand_spec(self): + """ + Test case for v1_expand_spec + + """ pass @@ -1428,6 +1436,14 @@ def test_v1alpha3_console(self): Test case for v1alpha3_console + """ + pass + + def test_v1alpha3_expand_spec(self): + """ + Test case for v1alpha3_expand_spec + + """ pass @@ -1628,6 +1644,14 @@ def test_v1alpha3vm_addvolume(self): Test case for v1alpha3vm_addvolume + """ + pass + + def test_v1alpha3vm_expand_spec(self): + """ + Test case for v1alpha3vm_expand_spec + + """ pass @@ -1732,6 +1756,14 @@ def test_v1vm_addvolume(self): Test case for v1vm_addvolume + """ + pass + + def test_v1vm_expand_spec(self): + """ + Test case for v1vm_expand_spec + + """ pass From 8268baeeceac87b4fd87400bba7fc0545412a13a Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 4 Aug 2022 08:39:38 +0000 Subject: [PATCH 286/521] Client Python update by KubeVirt Prow build 1555098641109094400 --- README.md | 2 +- ...1VirtualMachineInstanceNetworkInterface.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...tual_machine_instance_network_interface.py | 34 +++++++++++++++++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 38 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 62368b4b..9b0802f3 100644 --- a/README.md +++ b/README.md @@ -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: v0.56.0-rc.0-14-gd781a75f0 +- Package version: v0.56.0-rc.0-18-g7e1e12289 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceNetworkInterface.md b/docs/V1VirtualMachineInstanceNetworkInterface.md index f18b0553..27fe2a4c 100644 --- a/docs/V1VirtualMachineInstanceNetworkInterface.md +++ b/docs/V1VirtualMachineInstanceNetworkInterface.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **ip_addresses** | **list[str]** | List of all IP addresses of a Virtual Machine interface | [optional] **mac** | **str** | Hardware address of a Virtual Machine interface | [optional] **name** | **str** | Name of the interface, corresponds to name of the network assigned to the interface | [optional] +**queue_count** | **int** | Specifies how many queues are allocated by MultiQueue | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index ca051fbc..8095a856 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.56.0-rc.0-14-gd781a75f0" + release_note="Auto-generated client v0.56.0-rc.0-18-g7e1e12289" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index f03f3238..547116b2 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.56.0-rc.0-14-gd781a75f0/python' + self.user_agent = 'Swagger-Codegen/v0.56.0-rc.0-18-g7e1e12289/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index f38c101c..bac14ecf 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.56.0-rc.0-14-gd781a75f0".\ + "SDK Package Version: v0.56.0-rc.0-18-g7e1e12289".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_network_interface.py b/kubevirt/models/v1_virtual_machine_instance_network_interface.py index 5c0dcfcc..d8b9decc 100644 --- a/kubevirt/models/v1_virtual_machine_instance_network_interface.py +++ b/kubevirt/models/v1_virtual_machine_instance_network_interface.py @@ -36,7 +36,8 @@ class V1VirtualMachineInstanceNetworkInterface(object): 'ip_address': 'str', 'ip_addresses': 'list[str]', 'mac': 'str', - 'name': 'str' + 'name': 'str', + 'queue_count': 'int' } attribute_map = { @@ -45,10 +46,11 @@ class V1VirtualMachineInstanceNetworkInterface(object): 'ip_address': 'ipAddress', 'ip_addresses': 'ipAddresses', 'mac': 'mac', - 'name': 'name' + 'name': 'name', + 'queue_count': 'queueCount' } - def __init__(self, info_source=None, interface_name=None, ip_address=None, ip_addresses=None, mac=None, name=None): + def __init__(self, info_source=None, interface_name=None, ip_address=None, ip_addresses=None, mac=None, name=None, queue_count=None): """ V1VirtualMachineInstanceNetworkInterface - a model defined in Swagger """ @@ -59,6 +61,7 @@ def __init__(self, info_source=None, interface_name=None, ip_address=None, ip_ad self._ip_addresses = None self._mac = None self._name = None + self._queue_count = None if info_source is not None: self.info_source = info_source @@ -72,6 +75,8 @@ def __init__(self, info_source=None, interface_name=None, ip_address=None, ip_ad self.mac = mac if name is not None: self.name = name + if queue_count is not None: + self.queue_count = queue_count @property def info_source(self): @@ -211,6 +216,29 @@ def name(self, name): self._name = name + @property + def queue_count(self): + """ + Gets the queue_count of this V1VirtualMachineInstanceNetworkInterface. + Specifies how many queues are allocated by MultiQueue + + :return: The queue_count of this V1VirtualMachineInstanceNetworkInterface. + :rtype: int + """ + return self._queue_count + + @queue_count.setter + def queue_count(self, queue_count): + """ + Sets the queue_count of this V1VirtualMachineInstanceNetworkInterface. + Specifies how many queues are allocated by MultiQueue + + :param queue_count: The queue_count of this V1VirtualMachineInstanceNetworkInterface. + :type: int + """ + + self._queue_count = queue_count + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index fe63f368..5894c420 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.56.0-rc.0-14-gd781a75f0" +VERSION = "v0.56.0-rc.0-18-g7e1e12289" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 34096be9..72aa75b5 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.56.0-rc.0-14-gd781a75f0" +"packageVersion": "v0.56.0-rc.0-18-g7e1e12289" } From aa410bbdda028bae6e2e5f0f448074ff93a67a19 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Sat, 6 Aug 2022 02:20:24 +0000 Subject: [PATCH 287/521] Client Python update by KubeVirt Prow build 1555728976310177792 --- README.md | 3 +- .../K8sIoApiCoreV1TopologySpreadConstraint.md | 13 ++ docs/V1VirtualMachineInstanceSpec.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + ..._api_core_v1_topology_spread_constraint.py | 212 ++++++++++++++++++ .../v1_virtual_machine_instance_spec.py | 30 ++- setup.py | 2 +- swagger-codegen-config.json | 2 +- ..._api_core_v1_topology_spread_constraint.py | 44 ++++ 14 files changed, 311 insertions(+), 7 deletions(-) create mode 100644 docs/K8sIoApiCoreV1TopologySpreadConstraint.md create mode 100644 kubevirt/models/k8s_io_api_core_v1_topology_spread_constraint.py create mode 100644 test/test_k8s_io_api_core_v1_topology_spread_constraint.py diff --git a/README.md b/README.md index 9b0802f3..26872f67 100644 --- a/README.md +++ b/README.md @@ -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: v0.56.0-rc.0-18-g7e1e12289 +- Package version: v0.56.0-rc.0-42-gf3ddc0c65 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -350,6 +350,7 @@ Class | Method | HTTP request | Description - [K8sIoApiCoreV1ResourceRequirements](docs/K8sIoApiCoreV1ResourceRequirements.md) - [K8sIoApiCoreV1TCPSocketAction](docs/K8sIoApiCoreV1TCPSocketAction.md) - [K8sIoApiCoreV1Toleration](docs/K8sIoApiCoreV1Toleration.md) + - [K8sIoApiCoreV1TopologySpreadConstraint](docs/K8sIoApiCoreV1TopologySpreadConstraint.md) - [K8sIoApiCoreV1TypedLocalObjectReference](docs/K8sIoApiCoreV1TypedLocalObjectReference.md) - [K8sIoApiCoreV1WeightedPodAffinityTerm](docs/K8sIoApiCoreV1WeightedPodAffinityTerm.md) - [K8sIoApimachineryPkgApiResourceQuantity](docs/K8sIoApimachineryPkgApiResourceQuantity.md) diff --git a/docs/K8sIoApiCoreV1TopologySpreadConstraint.md b/docs/K8sIoApiCoreV1TopologySpreadConstraint.md new file mode 100644 index 00000000..52655b46 --- /dev/null +++ b/docs/K8sIoApiCoreV1TopologySpreadConstraint.md @@ -0,0 +1,13 @@ +# K8sIoApiCoreV1TopologySpreadConstraint + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**label_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. | [optional] +**max_skew** | **int** | MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. | +**topology_key** | **str** | TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each <key, value> as a \"bucket\", and try to put balanced number of pods into each bucket. It's a required field. | +**when_unsatisfiable** | **str** | WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, but giving higher precedence to topologies that would help reduce the skew. A constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceSpec.md b/docs/V1VirtualMachineInstanceSpec.md index b40803ff..215164cf 100644 --- a/docs/V1VirtualMachineInstanceSpec.md +++ b/docs/V1VirtualMachineInstanceSpec.md @@ -20,6 +20,7 @@ Name | Type | Description | Notes **subdomain** | **str** | If specified, the fully qualified vmi hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the vmi will not have a domainname at all. The DNS entry will resolve to the vmi, no matter if the vmi itself can pick up a hostname. | [optional] **termination_grace_period_seconds** | **int** | Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. | [optional] **tolerations** | [**list[K8sIoApiCoreV1Toleration]**](K8sIoApiCoreV1Toleration.md) | If toleration is specified, obey all the toleration rules. | [optional] +**topology_spread_constraints** | [**list[K8sIoApiCoreV1TopologySpreadConstraint]**](K8sIoApiCoreV1TopologySpreadConstraint.md) | TopologySpreadConstraints describes how a group of VMIs will be spread across a given topology domains. K8s scheduler will schedule VMI pods in a way which abides by the constraints. | [optional] **volumes** | [**list[V1Volume]**](V1Volume.md) | List of volumes that can be mounted by disks belonging to the vmi. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 8095a856..e981ab46 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.56.0-rc.0-18-g7e1e12289" + release_note="Auto-generated client v0.56.0-rc.0-42-gf3ddc0c65" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index d8f77043..f3b5fd93 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -90,6 +90,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/k8s_io_api_core_v1_toleration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_toleration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1Toleration.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_topology_spread_constraint.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_topology_spread_constraint.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1TopologySpreadConstraint.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_typed_local_object_reference.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_typed_local_object_reference.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1TypedLocalObjectReference.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index af40d0b4..b0a59d65 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -37,6 +37,7 @@ from .models.k8s_io_api_core_v1_resource_requirements import K8sIoApiCoreV1ResourceRequirements from .models.k8s_io_api_core_v1_tcp_socket_action import K8sIoApiCoreV1TCPSocketAction from .models.k8s_io_api_core_v1_toleration import K8sIoApiCoreV1Toleration +from .models.k8s_io_api_core_v1_topology_spread_constraint import K8sIoApiCoreV1TopologySpreadConstraint from .models.k8s_io_api_core_v1_typed_local_object_reference import K8sIoApiCoreV1TypedLocalObjectReference from .models.k8s_io_api_core_v1_weighted_pod_affinity_term import K8sIoApiCoreV1WeightedPodAffinityTerm from .models.k8s_io_apimachinery_pkg_api_resource_quantity import K8sIoApimachineryPkgApiResourceQuantity diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 547116b2..49121eca 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.56.0-rc.0-18-g7e1e12289/python' + self.user_agent = 'Swagger-Codegen/v0.56.0-rc.0-42-gf3ddc0c65/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index bac14ecf..6039f088 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.56.0-rc.0-18-g7e1e12289".\ + "SDK Package Version: v0.56.0-rc.0-42-gf3ddc0c65".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 96a3f69b..dafc698c 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -37,6 +37,7 @@ from .k8s_io_api_core_v1_resource_requirements import K8sIoApiCoreV1ResourceRequirements from .k8s_io_api_core_v1_tcp_socket_action import K8sIoApiCoreV1TCPSocketAction from .k8s_io_api_core_v1_toleration import K8sIoApiCoreV1Toleration +from .k8s_io_api_core_v1_topology_spread_constraint import K8sIoApiCoreV1TopologySpreadConstraint from .k8s_io_api_core_v1_typed_local_object_reference import K8sIoApiCoreV1TypedLocalObjectReference from .k8s_io_api_core_v1_weighted_pod_affinity_term import K8sIoApiCoreV1WeightedPodAffinityTerm from .k8s_io_apimachinery_pkg_api_resource_quantity import K8sIoApimachineryPkgApiResourceQuantity diff --git a/kubevirt/models/k8s_io_api_core_v1_topology_spread_constraint.py b/kubevirt/models/k8s_io_api_core_v1_topology_spread_constraint.py new file mode 100644 index 00000000..d68bb51e --- /dev/null +++ b/kubevirt/models/k8s_io_api_core_v1_topology_spread_constraint.py @@ -0,0 +1,212 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class K8sIoApiCoreV1TopologySpreadConstraint(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'label_selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', + 'max_skew': 'int', + 'topology_key': 'str', + 'when_unsatisfiable': 'str' + } + + attribute_map = { + 'label_selector': 'labelSelector', + 'max_skew': 'maxSkew', + 'topology_key': 'topologyKey', + 'when_unsatisfiable': 'whenUnsatisfiable' + } + + def __init__(self, label_selector=None, max_skew=None, topology_key=None, when_unsatisfiable=None): + """ + K8sIoApiCoreV1TopologySpreadConstraint - a model defined in Swagger + """ + + self._label_selector = None + self._max_skew = None + self._topology_key = None + self._when_unsatisfiable = None + + if label_selector is not None: + self.label_selector = label_selector + self.max_skew = max_skew + self.topology_key = topology_key + self.when_unsatisfiable = when_unsatisfiable + + @property + def label_selector(self): + """ + Gets the label_selector of this K8sIoApiCoreV1TopologySpreadConstraint. + LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + + :return: The label_selector of this K8sIoApiCoreV1TopologySpreadConstraint. + :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + return self._label_selector + + @label_selector.setter + def label_selector(self, label_selector): + """ + Sets the label_selector of this K8sIoApiCoreV1TopologySpreadConstraint. + LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + + :param label_selector: The label_selector of this K8sIoApiCoreV1TopologySpreadConstraint. + :type: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + + self._label_selector = label_selector + + @property + def max_skew(self): + """ + Gets the max_skew of this K8sIoApiCoreV1TopologySpreadConstraint. + MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. + + :return: The max_skew of this K8sIoApiCoreV1TopologySpreadConstraint. + :rtype: int + """ + return self._max_skew + + @max_skew.setter + def max_skew(self, max_skew): + """ + Sets the max_skew of this K8sIoApiCoreV1TopologySpreadConstraint. + MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. + + :param max_skew: The max_skew of this K8sIoApiCoreV1TopologySpreadConstraint. + :type: int + """ + if max_skew is None: + raise ValueError("Invalid value for `max_skew`, must not be `None`") + + self._max_skew = max_skew + + @property + def topology_key(self): + """ + Gets the topology_key of this K8sIoApiCoreV1TopologySpreadConstraint. + TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a \"bucket\", and try to put balanced number of pods into each bucket. It's a required field. + + :return: The topology_key of this K8sIoApiCoreV1TopologySpreadConstraint. + :rtype: str + """ + return self._topology_key + + @topology_key.setter + def topology_key(self, topology_key): + """ + Sets the topology_key of this K8sIoApiCoreV1TopologySpreadConstraint. + TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a \"bucket\", and try to put balanced number of pods into each bucket. It's a required field. + + :param topology_key: The topology_key of this K8sIoApiCoreV1TopologySpreadConstraint. + :type: str + """ + if topology_key is None: + raise ValueError("Invalid value for `topology_key`, must not be `None`") + + self._topology_key = topology_key + + @property + def when_unsatisfiable(self): + """ + Gets the when_unsatisfiable of this K8sIoApiCoreV1TopologySpreadConstraint. + WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, but giving higher precedence to topologies that would help reduce the skew. A constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + :return: The when_unsatisfiable of this K8sIoApiCoreV1TopologySpreadConstraint. + :rtype: str + """ + return self._when_unsatisfiable + + @when_unsatisfiable.setter + def when_unsatisfiable(self, when_unsatisfiable): + """ + Sets the when_unsatisfiable of this K8sIoApiCoreV1TopologySpreadConstraint. + WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, but giving higher precedence to topologies that would help reduce the skew. A constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + :param when_unsatisfiable: The when_unsatisfiable of this K8sIoApiCoreV1TopologySpreadConstraint. + :type: str + """ + if when_unsatisfiable is None: + raise ValueError("Invalid value for `when_unsatisfiable`, must not be `None`") + + self._when_unsatisfiable = when_unsatisfiable + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, K8sIoApiCoreV1TopologySpreadConstraint): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_spec.py b/kubevirt/models/v1_virtual_machine_instance_spec.py index a20bc516..d3768d9c 100644 --- a/kubevirt/models/v1_virtual_machine_instance_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_spec.py @@ -48,6 +48,7 @@ class V1VirtualMachineInstanceSpec(object): 'subdomain': 'str', 'termination_grace_period_seconds': 'int', 'tolerations': 'list[K8sIoApiCoreV1Toleration]', + 'topology_spread_constraints': 'list[K8sIoApiCoreV1TopologySpreadConstraint]', 'volumes': 'list[V1Volume]' } @@ -69,10 +70,11 @@ class V1VirtualMachineInstanceSpec(object): 'subdomain': 'subdomain', 'termination_grace_period_seconds': 'terminationGracePeriodSeconds', 'tolerations': 'tolerations', + 'topology_spread_constraints': 'topologySpreadConstraints', 'volumes': 'volumes' } - def __init__(self, access_credentials=None, affinity=None, dns_config=None, dns_policy=None, domain=None, eviction_strategy=None, hostname=None, liveness_probe=None, networks=None, node_selector=None, priority_class_name=None, readiness_probe=None, scheduler_name=None, start_strategy=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, volumes=None): + def __init__(self, access_credentials=None, affinity=None, dns_config=None, dns_policy=None, domain=None, eviction_strategy=None, hostname=None, liveness_probe=None, networks=None, node_selector=None, priority_class_name=None, readiness_probe=None, scheduler_name=None, start_strategy=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, topology_spread_constraints=None, volumes=None): """ V1VirtualMachineInstanceSpec - a model defined in Swagger """ @@ -94,6 +96,7 @@ def __init__(self, access_credentials=None, affinity=None, dns_config=None, dns_ self._subdomain = None self._termination_grace_period_seconds = None self._tolerations = None + self._topology_spread_constraints = None self._volumes = None if access_credentials is not None: @@ -129,6 +132,8 @@ def __init__(self, access_credentials=None, affinity=None, dns_config=None, dns_ self.termination_grace_period_seconds = termination_grace_period_seconds if tolerations is not None: self.tolerations = tolerations + if topology_spread_constraints is not None: + self.topology_spread_constraints = topology_spread_constraints if volumes is not None: self.volumes = volumes @@ -525,6 +530,29 @@ def tolerations(self, tolerations): self._tolerations = tolerations + @property + def topology_spread_constraints(self): + """ + Gets the topology_spread_constraints of this V1VirtualMachineInstanceSpec. + TopologySpreadConstraints describes how a group of VMIs will be spread across a given topology domains. K8s scheduler will schedule VMI pods in a way which abides by the constraints. + + :return: The topology_spread_constraints of this V1VirtualMachineInstanceSpec. + :rtype: list[K8sIoApiCoreV1TopologySpreadConstraint] + """ + return self._topology_spread_constraints + + @topology_spread_constraints.setter + def topology_spread_constraints(self, topology_spread_constraints): + """ + Sets the topology_spread_constraints of this V1VirtualMachineInstanceSpec. + TopologySpreadConstraints describes how a group of VMIs will be spread across a given topology domains. K8s scheduler will schedule VMI pods in a way which abides by the constraints. + + :param topology_spread_constraints: The topology_spread_constraints of this V1VirtualMachineInstanceSpec. + :type: list[K8sIoApiCoreV1TopologySpreadConstraint] + """ + + self._topology_spread_constraints = topology_spread_constraints + @property def volumes(self): """ diff --git a/setup.py b/setup.py index 5894c420..bf38cd31 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.56.0-rc.0-18-g7e1e12289" +VERSION = "v0.56.0-rc.0-42-gf3ddc0c65" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 72aa75b5..81526760 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.56.0-rc.0-18-g7e1e12289" +"packageVersion": "v0.56.0-rc.0-42-gf3ddc0c65" } diff --git a/test/test_k8s_io_api_core_v1_topology_spread_constraint.py b/test/test_k8s_io_api_core_v1_topology_spread_constraint.py new file mode 100644 index 00000000..6d621487 --- /dev/null +++ b/test/test_k8s_io_api_core_v1_topology_spread_constraint.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_api_core_v1_topology_spread_constraint import K8sIoApiCoreV1TopologySpreadConstraint + + +class TestK8sIoApiCoreV1TopologySpreadConstraint(unittest.TestCase): + """ K8sIoApiCoreV1TopologySpreadConstraint unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1TopologySpreadConstraint(self): + """ + Test K8sIoApiCoreV1TopologySpreadConstraint + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_topology_spread_constraint.K8sIoApiCoreV1TopologySpreadConstraint() + pass + + +if __name__ == '__main__': + unittest.main() From 3033f10ac6ab809e99876014261ba691af36b39a Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Sun, 21 Aug 2022 21:38:00 +0000 Subject: [PATCH 288/521] Client Python update by KubeVirt Prow build 1561456040359235584 --- README.md | 2 +- docs/V1Devices.md | 1 + docs/V1alpha1DevicePreferences.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_devices.py | 30 ++++++++++++++++++- .../models/v1alpha1_device_preferences.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 66 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 26872f67..15b196a6 100644 --- a/README.md +++ b/README.md @@ -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: v0.56.0-rc.0-42-gf3ddc0c65 +- Package version: v0.56.0-rc.0-152-gf161cea94 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index ad89dee0..5afb2753 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **autoattach_graphics_device** | **bool** | Whether to attach the default graphics device or not. VNC will not be available if set to false. Defaults to true. | [optional] +**autoattach_input_device** | **bool** | Whether to attach an Input Device. Defaults to false. | [optional] **autoattach_mem_balloon** | **bool** | Whether to attach the Memory balloon device with default period. Period can be adjusted in virt-config. Defaults to true. | [optional] **autoattach_pod_interface** | **bool** | Whether to attach a pod network interface. Defaults to true. | [optional] **autoattach_serial_console** | **bool** | Whether to attach the default serial console or not. Serial console access will not be available if set to false. Defaults to true. | [optional] diff --git a/docs/V1alpha1DevicePreferences.md b/docs/V1alpha1DevicePreferences.md index ad61ac2d..30750b37 100644 --- a/docs/V1alpha1DevicePreferences.md +++ b/docs/V1alpha1DevicePreferences.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **preferred_autoattach_graphics_device** | **bool** | PreferredAutoattachGraphicsDevice optionally defines the preferred value of AutoattachGraphicsDevice | [optional] +**preferred_autoattach_input_device** | **bool** | PreferredAutoattachInputDevice optionally defines the preferred value of AutoattachInputDevice | [optional] **preferred_autoattach_mem_balloon** | **bool** | PreferredAutoattachMemBalloon optionally defines the preferred value of AutoattachMemBalloon | [optional] **preferred_autoattach_pod_interface** | **bool** | PreferredAutoattachPodInterface optionally defines the preferred value of AutoattachPodInterface | [optional] **preferred_autoattach_serial_console** | **bool** | PreferredAutoattachSerialConsole optionally defines the preferred value of AutoattachSerialConsole | [optional] diff --git a/git_push.sh b/git_push.sh index e981ab46..ae918bfc 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.56.0-rc.0-42-gf3ddc0c65" + release_note="Auto-generated client v0.56.0-rc.0-152-gf161cea94" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 49121eca..a7822a7a 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.56.0-rc.0-42-gf3ddc0c65/python' + self.user_agent = 'Swagger-Codegen/v0.56.0-rc.0-152-gf161cea94/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 6039f088..c19fcc19 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.56.0-rc.0-42-gf3ddc0c65".\ + "SDK Package Version: v0.56.0-rc.0-152-gf161cea94".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index f0521979..c3d676f0 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -32,6 +32,7 @@ class V1Devices(object): """ swagger_types = { 'autoattach_graphics_device': 'bool', + 'autoattach_input_device': 'bool', 'autoattach_mem_balloon': 'bool', 'autoattach_pod_interface': 'bool', 'autoattach_serial_console': 'bool', @@ -54,6 +55,7 @@ class V1Devices(object): attribute_map = { 'autoattach_graphics_device': 'autoattachGraphicsDevice', + 'autoattach_input_device': 'autoattachInputDevice', 'autoattach_mem_balloon': 'autoattachMemBalloon', 'autoattach_pod_interface': 'autoattachPodInterface', 'autoattach_serial_console': 'autoattachSerialConsole', @@ -74,12 +76,13 @@ class V1Devices(object): 'watchdog': 'watchdog' } - def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, autoattach_pod_interface=None, autoattach_serial_console=None, block_multi_queue=None, client_passthrough=None, disable_hotplug=None, disks=None, filesystems=None, gpus=None, host_devices=None, inputs=None, interfaces=None, network_interface_multiqueue=None, rng=None, sound=None, tpm=None, use_virtio_transitional=None, watchdog=None): + def __init__(self, autoattach_graphics_device=None, autoattach_input_device=None, autoattach_mem_balloon=None, autoattach_pod_interface=None, autoattach_serial_console=None, block_multi_queue=None, client_passthrough=None, disable_hotplug=None, disks=None, filesystems=None, gpus=None, host_devices=None, inputs=None, interfaces=None, network_interface_multiqueue=None, rng=None, sound=None, tpm=None, use_virtio_transitional=None, watchdog=None): """ V1Devices - a model defined in Swagger """ self._autoattach_graphics_device = None + self._autoattach_input_device = None self._autoattach_mem_balloon = None self._autoattach_pod_interface = None self._autoattach_serial_console = None @@ -101,6 +104,8 @@ def __init__(self, autoattach_graphics_device=None, autoattach_mem_balloon=None, if autoattach_graphics_device is not None: self.autoattach_graphics_device = autoattach_graphics_device + if autoattach_input_device is not None: + self.autoattach_input_device = autoattach_input_device if autoattach_mem_balloon is not None: self.autoattach_mem_balloon = autoattach_mem_balloon if autoattach_pod_interface is not None: @@ -161,6 +166,29 @@ def autoattach_graphics_device(self, autoattach_graphics_device): self._autoattach_graphics_device = autoattach_graphics_device + @property + def autoattach_input_device(self): + """ + Gets the autoattach_input_device of this V1Devices. + Whether to attach an Input Device. Defaults to false. + + :return: The autoattach_input_device of this V1Devices. + :rtype: bool + """ + return self._autoattach_input_device + + @autoattach_input_device.setter + def autoattach_input_device(self, autoattach_input_device): + """ + Sets the autoattach_input_device of this V1Devices. + Whether to attach an Input Device. Defaults to false. + + :param autoattach_input_device: The autoattach_input_device of this V1Devices. + :type: bool + """ + + self._autoattach_input_device = autoattach_input_device + @property def autoattach_mem_balloon(self): """ diff --git a/kubevirt/models/v1alpha1_device_preferences.py b/kubevirt/models/v1alpha1_device_preferences.py index 3dede984..56033b1c 100644 --- a/kubevirt/models/v1alpha1_device_preferences.py +++ b/kubevirt/models/v1alpha1_device_preferences.py @@ -32,6 +32,7 @@ class V1alpha1DevicePreferences(object): """ swagger_types = { 'preferred_autoattach_graphics_device': 'bool', + 'preferred_autoattach_input_device': 'bool', 'preferred_autoattach_mem_balloon': 'bool', 'preferred_autoattach_pod_interface': 'bool', 'preferred_autoattach_serial_console': 'bool', @@ -57,6 +58,7 @@ class V1alpha1DevicePreferences(object): attribute_map = { 'preferred_autoattach_graphics_device': 'preferredAutoattachGraphicsDevice', + 'preferred_autoattach_input_device': 'preferredAutoattachInputDevice', 'preferred_autoattach_mem_balloon': 'preferredAutoattachMemBalloon', 'preferred_autoattach_pod_interface': 'preferredAutoattachPodInterface', 'preferred_autoattach_serial_console': 'preferredAutoattachSerialConsole', @@ -80,12 +82,13 @@ class V1alpha1DevicePreferences(object): 'preferred_virtual_gpu_options': 'preferredVirtualGPUOptions' } - def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoattach_mem_balloon=None, preferred_autoattach_pod_interface=None, preferred_autoattach_serial_console=None, preferred_block_multi_queue=None, preferred_cdrom_bus=None, preferred_disable_hotplug=None, preferred_disk_block_size=None, preferred_disk_bus=None, preferred_disk_cache=None, preferred_disk_dedicated_io_thread=None, preferred_disk_io=None, preferred_input_bus=None, preferred_input_type=None, preferred_interface_model=None, preferred_lun_bus=None, preferred_network_interface_multi_queue=None, preferred_rng=None, preferred_sound_model=None, preferred_tpm=None, preferred_use_virtio_transitional=None, preferred_virtual_gpu_options=None): + def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoattach_input_device=None, preferred_autoattach_mem_balloon=None, preferred_autoattach_pod_interface=None, preferred_autoattach_serial_console=None, preferred_block_multi_queue=None, preferred_cdrom_bus=None, preferred_disable_hotplug=None, preferred_disk_block_size=None, preferred_disk_bus=None, preferred_disk_cache=None, preferred_disk_dedicated_io_thread=None, preferred_disk_io=None, preferred_input_bus=None, preferred_input_type=None, preferred_interface_model=None, preferred_lun_bus=None, preferred_network_interface_multi_queue=None, preferred_rng=None, preferred_sound_model=None, preferred_tpm=None, preferred_use_virtio_transitional=None, preferred_virtual_gpu_options=None): """ V1alpha1DevicePreferences - a model defined in Swagger """ self._preferred_autoattach_graphics_device = None + self._preferred_autoattach_input_device = None self._preferred_autoattach_mem_balloon = None self._preferred_autoattach_pod_interface = None self._preferred_autoattach_serial_console = None @@ -110,6 +113,8 @@ def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoatta if preferred_autoattach_graphics_device is not None: self.preferred_autoattach_graphics_device = preferred_autoattach_graphics_device + if preferred_autoattach_input_device is not None: + self.preferred_autoattach_input_device = preferred_autoattach_input_device if preferred_autoattach_mem_balloon is not None: self.preferred_autoattach_mem_balloon = preferred_autoattach_mem_balloon if preferred_autoattach_pod_interface is not None: @@ -176,6 +181,29 @@ def preferred_autoattach_graphics_device(self, preferred_autoattach_graphics_dev self._preferred_autoattach_graphics_device = preferred_autoattach_graphics_device + @property + def preferred_autoattach_input_device(self): + """ + Gets the preferred_autoattach_input_device of this V1alpha1DevicePreferences. + PreferredAutoattachInputDevice optionally defines the preferred value of AutoattachInputDevice + + :return: The preferred_autoattach_input_device of this V1alpha1DevicePreferences. + :rtype: bool + """ + return self._preferred_autoattach_input_device + + @preferred_autoattach_input_device.setter + def preferred_autoattach_input_device(self, preferred_autoattach_input_device): + """ + Sets the preferred_autoattach_input_device of this V1alpha1DevicePreferences. + PreferredAutoattachInputDevice optionally defines the preferred value of AutoattachInputDevice + + :param preferred_autoattach_input_device: The preferred_autoattach_input_device of this V1alpha1DevicePreferences. + :type: bool + """ + + self._preferred_autoattach_input_device = preferred_autoattach_input_device + @property def preferred_autoattach_mem_balloon(self): """ diff --git a/setup.py b/setup.py index bf38cd31..15304ead 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.56.0-rc.0-42-gf3ddc0c65" +VERSION = "v0.56.0-rc.0-152-gf161cea94" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 81526760..9048a7fe 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.56.0-rc.0-42-gf3ddc0c65" +"packageVersion": "v0.56.0-rc.0-152-gf161cea94" } From 11b54be46caca06f162d2ee3f1ed0d2b1496e072 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 23 Aug 2022 04:08:06 +0000 Subject: [PATCH 289/521] Client Python update by KubeVirt Prow build 1561915606389755904 --- README.md | 2 +- docs/V1DiskTarget.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_disk_target.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 15b196a6..c4dc793d 100644 --- a/README.md +++ b/README.md @@ -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: v0.56.0-rc.0-152-gf161cea94 +- Package version: v0.56.0-rc.0-163-g41b54ab2b - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1DiskTarget.md b/docs/V1DiskTarget.md index 1c57c8da..fb78ad64 100644 --- a/docs/V1DiskTarget.md +++ b/docs/V1DiskTarget.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bus** | **str** | Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi. | [optional] +**bus** | **str** | Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, usb. | [optional] **pci_address** | **str** | If specified, the virtual disk will be placed on the guests pci address with the specified PCI address. For example: 0000:81:01.10 | [optional] **readonly** | **bool** | ReadOnly. Defaults to false. | [optional] diff --git a/git_push.sh b/git_push.sh index ae918bfc..a2a0a8b8 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.56.0-rc.0-152-gf161cea94" + release_note="Auto-generated client v0.56.0-rc.0-163-g41b54ab2b" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index a7822a7a..2b8305e6 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.56.0-rc.0-152-gf161cea94/python' + self.user_agent = 'Swagger-Codegen/v0.56.0-rc.0-163-g41b54ab2b/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c19fcc19..f7e6b6a9 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.56.0-rc.0-152-gf161cea94".\ + "SDK Package Version: v0.56.0-rc.0-163-g41b54ab2b".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_disk_target.py b/kubevirt/models/v1_disk_target.py index 3c0a5372..ac6473d6 100644 --- a/kubevirt/models/v1_disk_target.py +++ b/kubevirt/models/v1_disk_target.py @@ -62,7 +62,7 @@ def __init__(self, bus=None, pci_address=None, readonly=None): def bus(self): """ Gets the bus of this V1DiskTarget. - Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi. + Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, usb. :return: The bus of this V1DiskTarget. :rtype: str @@ -73,7 +73,7 @@ def bus(self): def bus(self, bus): """ Sets the bus of this V1DiskTarget. - Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi. + Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, usb. :param bus: The bus of this V1DiskTarget. :type: str diff --git a/setup.py b/setup.py index 15304ead..6609b4b1 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.56.0-rc.0-152-gf161cea94" +VERSION = "v0.56.0-rc.0-163-g41b54ab2b" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 9048a7fe..c25678a3 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.56.0-rc.0-152-gf161cea94" +"packageVersion": "v0.56.0-rc.0-163-g41b54ab2b" } From e24c6b37e40d3d7fc9ab7b5758d94099b120371c Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 14 Sep 2022 21:37:17 +0000 Subject: [PATCH 290/521] Client Python update by KubeVirt Prow build 1570151018568617984 --- README.md | 3 +- docs/V1KubeVirtConfiguration.md | 1 + docs/V1TLSConfiguration.md | 11 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_kube_virt_configuration.py | 28 +++- kubevirt/models/v1_tls_configuration.py | 151 ++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_tls_configuration.py | 44 +++++ 14 files changed, 246 insertions(+), 7 deletions(-) create mode 100644 docs/V1TLSConfiguration.md create mode 100644 kubevirt/models/v1_tls_configuration.py create mode 100644 test/test_v1_tls_configuration.py diff --git a/README.md b/README.md index c4dc793d..ab8b2d4b 100644 --- a/README.md +++ b/README.md @@ -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: v0.56.0-rc.0-163-g41b54ab2b +- Package version: v0.57.0-103-gc2478d37b - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -515,6 +515,7 @@ Class | Method | HTTP request | Description - [V1StopOptions](docs/V1StopOptions.md) - [V1SyNICTimer](docs/V1SyNICTimer.md) - [V1SysprepSource](docs/V1SysprepSource.md) + - [V1TLSConfiguration](docs/V1TLSConfiguration.md) - [V1TPMDevice](docs/V1TPMDevice.md) - [V1Timer](docs/V1Timer.md) - [V1TokenBucketRateLimiter](docs/V1TokenBucketRateLimiter.md) diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index 0b2db065..19e2cc10 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -25,6 +25,7 @@ Name | Type | Description | Notes **selinux_launcher_type** | **str** | | [optional] **smbios** | [**V1SMBiosConfiguration**](V1SMBiosConfiguration.md) | | [optional] **supported_guest_agent_versions** | **list[str]** | deprecated | [optional] +**tls_configuration** | [**V1TLSConfiguration**](V1TLSConfiguration.md) | | [optional] **virtual_machine_instances_per_node** | **int** | | [optional] **webhook_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] diff --git a/docs/V1TLSConfiguration.md b/docs/V1TLSConfiguration.md new file mode 100644 index 00000000..0867c11e --- /dev/null +++ b/docs/V1TLSConfiguration.md @@ -0,0 +1,11 @@ +# V1TLSConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ciphers** | **list[str]** | | [optional] +**min_tls_version** | **str** | MinTLSVersion is a way to specify the minimum protocol version that is acceptable for TLS connections. Protocol versions are based on the following most common TLS configurations: https://ssl-config.mozilla.org/ Note that SSLv3.0 is not a supported protocol version due to well known vulnerabilities such as POODLE: https://en.wikipedia.org/wiki/POODLE | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index a2a0a8b8..26b3381d 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.56.0-rc.0-163-g41b54ab2b" + release_note="Auto-generated client v0.57.0-103-gc2478d37b" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index f3b5fd93..59bead21 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -585,6 +585,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_sysprep_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sysprep_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SysprepSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_tls_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_tls_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1TLSConfiguration.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_tpm_device.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_tpm_device.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1TPMDevice.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index b0a59d65..76500c42 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -202,6 +202,7 @@ from .models.v1_stop_options import V1StopOptions from .models.v1_sy_nic_timer import V1SyNICTimer from .models.v1_sysprep_source import V1SysprepSource +from .models.v1_tls_configuration import V1TLSConfiguration from .models.v1_tpm_device import V1TPMDevice from .models.v1_timer import V1Timer from .models.v1_token_bucket_rate_limiter import V1TokenBucketRateLimiter diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 2b8305e6..5e03022a 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.56.0-rc.0-163-g41b54ab2b/python' + self.user_agent = 'Swagger-Codegen/v0.57.0-103-gc2478d37b/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index f7e6b6a9..7cbe040f 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.56.0-rc.0-163-g41b54ab2b".\ + "SDK Package Version: v0.57.0-103-gc2478d37b".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index dafc698c..e6e06936 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -202,6 +202,7 @@ from .v1_stop_options import V1StopOptions from .v1_sy_nic_timer import V1SyNICTimer from .v1_sysprep_source import V1SysprepSource +from .v1_tls_configuration import V1TLSConfiguration from .v1_tpm_device import V1TPMDevice from .v1_timer import V1Timer from .v1_token_bucket_rate_limiter import V1TokenBucketRateLimiter diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index 23162c13..993114a7 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -53,6 +53,7 @@ class V1KubeVirtConfiguration(object): 'selinux_launcher_type': 'str', 'smbios': 'V1SMBiosConfiguration', 'supported_guest_agent_versions': 'list[str]', + 'tls_configuration': 'V1TLSConfiguration', 'virtual_machine_instances_per_node': 'int', 'webhook_configuration': 'V1ReloadableComponentConfiguration' } @@ -80,11 +81,12 @@ class V1KubeVirtConfiguration(object): 'selinux_launcher_type': 'selinuxLauncherType', 'smbios': 'smbios', 'supported_guest_agent_versions': 'supportedGuestAgentVersions', + 'tls_configuration': 'tlsConfiguration', 'virtual_machine_instances_per_node': 'virtualMachineInstancesPerNode', 'webhook_configuration': 'webhookConfiguration' } - def __init__(self, api_configuration=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, selinux_launcher_type=None, smbios=None, supported_guest_agent_versions=None, virtual_machine_instances_per_node=None, webhook_configuration=None): + def __init__(self, api_configuration=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, selinux_launcher_type=None, smbios=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, webhook_configuration=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ @@ -111,6 +113,7 @@ def __init__(self, api_configuration=None, controller_configuration=None, cpu_mo self._selinux_launcher_type = None self._smbios = None self._supported_guest_agent_versions = None + self._tls_configuration = None self._virtual_machine_instances_per_node = None self._webhook_configuration = None @@ -158,6 +161,8 @@ def __init__(self, api_configuration=None, controller_configuration=None, cpu_mo self.smbios = smbios if supported_guest_agent_versions is not None: self.supported_guest_agent_versions = supported_guest_agent_versions + if tls_configuration is not None: + self.tls_configuration = tls_configuration if virtual_machine_instances_per_node is not None: self.virtual_machine_instances_per_node = virtual_machine_instances_per_node if webhook_configuration is not None: @@ -629,6 +634,27 @@ def supported_guest_agent_versions(self, supported_guest_agent_versions): self._supported_guest_agent_versions = supported_guest_agent_versions + @property + def tls_configuration(self): + """ + Gets the tls_configuration of this V1KubeVirtConfiguration. + + :return: The tls_configuration of this V1KubeVirtConfiguration. + :rtype: V1TLSConfiguration + """ + return self._tls_configuration + + @tls_configuration.setter + def tls_configuration(self, tls_configuration): + """ + Sets the tls_configuration of this V1KubeVirtConfiguration. + + :param tls_configuration: The tls_configuration of this V1KubeVirtConfiguration. + :type: V1TLSConfiguration + """ + + self._tls_configuration = tls_configuration + @property def virtual_machine_instances_per_node(self): """ diff --git a/kubevirt/models/v1_tls_configuration.py b/kubevirt/models/v1_tls_configuration.py new file mode 100644 index 00000000..25666520 --- /dev/null +++ b/kubevirt/models/v1_tls_configuration.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1TLSConfiguration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'ciphers': 'list[str]', + 'min_tls_version': 'str' + } + + attribute_map = { + 'ciphers': 'ciphers', + 'min_tls_version': 'minTLSVersion' + } + + def __init__(self, ciphers=None, min_tls_version=None): + """ + V1TLSConfiguration - a model defined in Swagger + """ + + self._ciphers = None + self._min_tls_version = None + + if ciphers is not None: + self.ciphers = ciphers + if min_tls_version is not None: + self.min_tls_version = min_tls_version + + @property + def ciphers(self): + """ + Gets the ciphers of this V1TLSConfiguration. + + :return: The ciphers of this V1TLSConfiguration. + :rtype: list[str] + """ + return self._ciphers + + @ciphers.setter + def ciphers(self, ciphers): + """ + Sets the ciphers of this V1TLSConfiguration. + + :param ciphers: The ciphers of this V1TLSConfiguration. + :type: list[str] + """ + + self._ciphers = ciphers + + @property + def min_tls_version(self): + """ + Gets the min_tls_version of this V1TLSConfiguration. + MinTLSVersion is a way to specify the minimum protocol version that is acceptable for TLS connections. Protocol versions are based on the following most common TLS configurations: https://ssl-config.mozilla.org/ Note that SSLv3.0 is not a supported protocol version due to well known vulnerabilities such as POODLE: https://en.wikipedia.org/wiki/POODLE + + :return: The min_tls_version of this V1TLSConfiguration. + :rtype: str + """ + return self._min_tls_version + + @min_tls_version.setter + def min_tls_version(self, min_tls_version): + """ + Sets the min_tls_version of this V1TLSConfiguration. + MinTLSVersion is a way to specify the minimum protocol version that is acceptable for TLS connections. Protocol versions are based on the following most common TLS configurations: https://ssl-config.mozilla.org/ Note that SSLv3.0 is not a supported protocol version due to well known vulnerabilities such as POODLE: https://en.wikipedia.org/wiki/POODLE + + :param min_tls_version: The min_tls_version of this V1TLSConfiguration. + :type: str + """ + + self._min_tls_version = min_tls_version + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1TLSConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 6609b4b1..7f04cacf 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.56.0-rc.0-163-g41b54ab2b" +VERSION = "v0.57.0-103-gc2478d37b" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index c25678a3..66b7494f 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.56.0-rc.0-163-g41b54ab2b" +"packageVersion": "v0.57.0-103-gc2478d37b" } diff --git a/test/test_v1_tls_configuration.py b/test/test_v1_tls_configuration.py new file mode 100644 index 00000000..eb834412 --- /dev/null +++ b/test/test_v1_tls_configuration.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_tls_configuration import V1TLSConfiguration + + +class TestV1TLSConfiguration(unittest.TestCase): + """ V1TLSConfiguration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1TLSConfiguration(self): + """ + Test V1TLSConfiguration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_tls_configuration.V1TLSConfiguration() + pass + + +if __name__ == '__main__': + unittest.main() From b5e839c68e4461bcdefee6c6132c2e00be0519f4 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Sat, 24 Sep 2022 06:44:18 +0000 Subject: [PATCH 291/521] Client Python update by KubeVirt Prow build 1573551082779447296 --- README.md | 2 +- docs/V1alpha1VirtualMachineExportSpec.md | 2 +- docs/V1alpha1VirtualMachineExportStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1alpha1_virtual_machine_export_spec.py | 9 +++-- .../v1alpha1_virtual_machine_export_status.py | 34 +++++++++++++++++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 43 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index ab8b2d4b..eb9cd8d8 100644 --- a/README.md +++ b/README.md @@ -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: v0.57.0-103-gc2478d37b +- Package version: v0.57.0-193-gaf00da884 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1alpha1VirtualMachineExportSpec.md b/docs/V1alpha1VirtualMachineExportSpec.md index 5ce72bcd..6cac886e 100644 --- a/docs/V1alpha1VirtualMachineExportSpec.md +++ b/docs/V1alpha1VirtualMachineExportSpec.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | | -**token_secret_ref** | **str** | TokenSecretRef is the name of the secret that contains the token used by the export server pod | +**token_secret_ref** | **str** | TokenSecretRef is the name of the custom-defined secret that contains the token used by the export server pod | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineExportStatus.md b/docs/V1alpha1VirtualMachineExportStatus.md index 80186342..23ce3aa6 100644 --- a/docs/V1alpha1VirtualMachineExportStatus.md +++ b/docs/V1alpha1VirtualMachineExportStatus.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **links** | [**V1alpha1VirtualMachineExportLinks**](V1alpha1VirtualMachineExportLinks.md) | | [optional] **phase** | **str** | | [optional] **service_name** | **str** | ServiceName is the name of the service created associated with the Virtual Machine export. It will be used to create the internal URLs for downloading the images | [optional] +**token_secret_ref** | **str** | TokenSecretRef is the name of the secret that contains the token used by the export server pod | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 26b3381d..9e98a1e9 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.57.0-103-gc2478d37b" + release_note="Auto-generated client v0.57.0-193-gaf00da884" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 5e03022a..1479bff8 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.57.0-103-gc2478d37b/python' + self.user_agent = 'Swagger-Codegen/v0.57.0-193-gaf00da884/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 7cbe040f..57e2c2a8 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.57.0-103-gc2478d37b".\ + "SDK Package Version: v0.57.0-193-gaf00da884".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1alpha1_virtual_machine_export_spec.py b/kubevirt/models/v1alpha1_virtual_machine_export_spec.py index 79909c70..60bebf6e 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_export_spec.py +++ b/kubevirt/models/v1alpha1_virtual_machine_export_spec.py @@ -49,7 +49,8 @@ def __init__(self, source=None, token_secret_ref=None): self._token_secret_ref = None self.source = source - self.token_secret_ref = token_secret_ref + if token_secret_ref is not None: + self.token_secret_ref = token_secret_ref @property def source(self): @@ -78,7 +79,7 @@ def source(self, source): def token_secret_ref(self): """ Gets the token_secret_ref of this V1alpha1VirtualMachineExportSpec. - TokenSecretRef is the name of the secret that contains the token used by the export server pod + TokenSecretRef is the name of the custom-defined secret that contains the token used by the export server pod :return: The token_secret_ref of this V1alpha1VirtualMachineExportSpec. :rtype: str @@ -89,13 +90,11 @@ def token_secret_ref(self): def token_secret_ref(self, token_secret_ref): """ Sets the token_secret_ref of this V1alpha1VirtualMachineExportSpec. - TokenSecretRef is the name of the secret that contains the token used by the export server pod + TokenSecretRef is the name of the custom-defined secret that contains the token used by the export server pod :param token_secret_ref: The token_secret_ref of this V1alpha1VirtualMachineExportSpec. :type: str """ - if token_secret_ref is None: - raise ValueError("Invalid value for `token_secret_ref`, must not be `None`") self._token_secret_ref = token_secret_ref diff --git a/kubevirt/models/v1alpha1_virtual_machine_export_status.py b/kubevirt/models/v1alpha1_virtual_machine_export_status.py index 13080b21..33f8abd1 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_export_status.py +++ b/kubevirt/models/v1alpha1_virtual_machine_export_status.py @@ -34,17 +34,19 @@ class V1alpha1VirtualMachineExportStatus(object): 'conditions': 'list[V1alpha1Condition]', 'links': 'V1alpha1VirtualMachineExportLinks', 'phase': 'str', - 'service_name': 'str' + 'service_name': 'str', + 'token_secret_ref': 'str' } attribute_map = { 'conditions': 'conditions', 'links': 'links', 'phase': 'phase', - 'service_name': 'serviceName' + 'service_name': 'serviceName', + 'token_secret_ref': 'tokenSecretRef' } - def __init__(self, conditions=None, links=None, phase=None, service_name=None): + def __init__(self, conditions=None, links=None, phase=None, service_name=None, token_secret_ref=None): """ V1alpha1VirtualMachineExportStatus - a model defined in Swagger """ @@ -53,6 +55,7 @@ def __init__(self, conditions=None, links=None, phase=None, service_name=None): self._links = None self._phase = None self._service_name = None + self._token_secret_ref = None if conditions is not None: self.conditions = conditions @@ -62,6 +65,8 @@ def __init__(self, conditions=None, links=None, phase=None, service_name=None): self.phase = phase if service_name is not None: self.service_name = service_name + if token_secret_ref is not None: + self.token_secret_ref = token_secret_ref @property def conditions(self): @@ -149,6 +154,29 @@ def service_name(self, service_name): self._service_name = service_name + @property + def token_secret_ref(self): + """ + Gets the token_secret_ref of this V1alpha1VirtualMachineExportStatus. + TokenSecretRef is the name of the secret that contains the token used by the export server pod + + :return: The token_secret_ref of this V1alpha1VirtualMachineExportStatus. + :rtype: str + """ + return self._token_secret_ref + + @token_secret_ref.setter + def token_secret_ref(self, token_secret_ref): + """ + Sets the token_secret_ref of this V1alpha1VirtualMachineExportStatus. + TokenSecretRef is the name of the secret that contains the token used by the export server pod + + :param token_secret_ref: The token_secret_ref of this V1alpha1VirtualMachineExportStatus. + :type: str + """ + + self._token_secret_ref = token_secret_ref + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 7f04cacf..52c8afbf 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.57.0-103-gc2478d37b" +VERSION = "v0.57.0-193-gaf00da884" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 66b7494f..219559b0 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.57.0-103-gc2478d37b" +"packageVersion": "v0.57.0-193-gaf00da884" } From 4764d999f2eadf3f064d1e1e006cf8020778e293 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Mon, 26 Sep 2022 16:31:31 +0000 Subject: [PATCH 292/521] Client Python update by KubeVirt Prow build 1574425095571509248 --- README.md | 4 +- docs/DefaultApi.md | 102 +++++++++++++++++ git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 214 +++++++++++++++++++++++++++++++++++ kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 16 +++ 9 files changed, 340 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index eb9cd8d8..b6718379 100644 --- a/README.md +++ b/README.md @@ -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: v0.57.0-193-gaf00da884 +- Package version: v0.57.0-213-g16a931384 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -243,6 +243,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1_userlist**](docs/DefaultApi.md#v1_userlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | *DefaultApi* | [**v1_version**](docs/DefaultApi.md#v1_version) | **GET** /apis/subresources.kubevirt.io/v1/version | *DefaultApi* | [**v1_vnc**](docs/DefaultApi.md#v1_vnc) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | +*DefaultApi* | [**v1_vnc_screenshot**](docs/DefaultApi.md#v1_vnc_screenshot) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc/screenshot | *DefaultApi* | [**v1alpha3_check_health**](docs/DefaultApi.md#v1alpha3_check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha3/healthz | *DefaultApi* | [**v1alpha3_console**](docs/DefaultApi.md#v1alpha3_console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | *DefaultApi* | [**v1alpha3_expand_spec**](docs/DefaultApi.md#v1alpha3_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/expand-spec | @@ -265,6 +266,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3_userlist**](docs/DefaultApi.md#v1alpha3_userlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | *DefaultApi* | [**v1alpha3_version**](docs/DefaultApi.md#v1alpha3_version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | *DefaultApi* | [**v1alpha3_vnc**](docs/DefaultApi.md#v1alpha3_vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | +*DefaultApi* | [**v1alpha3_vnc_screenshot**](docs/DefaultApi.md#v1alpha3_vnc_screenshot) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc/screenshot | *DefaultApi* | [**v1alpha3dump_cluster_profiler**](docs/DefaultApi.md#v1alpha3dump_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/dump-cluster-profiler | *DefaultApi* | [**v1alpha3get_api_sub_resources**](docs/DefaultApi.md#v1alpha3get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1alpha3/ | *DefaultApi* | [**v1alpha3start_cluster_profiler**](docs/DefaultApi.md#v1alpha3start_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/start-cluster-profiler | diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 4954a7e7..72f264f1 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -178,6 +178,7 @@ Method | HTTP request | Description [**v1_userlist**](DefaultApi.md#v1_userlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | [**v1_version**](DefaultApi.md#v1_version) | **GET** /apis/subresources.kubevirt.io/v1/version | [**v1_vnc**](DefaultApi.md#v1_vnc) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | +[**v1_vnc_screenshot**](DefaultApi.md#v1_vnc_screenshot) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc/screenshot | [**v1alpha3_check_health**](DefaultApi.md#v1alpha3_check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha3/healthz | [**v1alpha3_console**](DefaultApi.md#v1alpha3_console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | [**v1alpha3_expand_spec**](DefaultApi.md#v1alpha3_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/expand-spec | @@ -200,6 +201,7 @@ Method | HTTP request | Description [**v1alpha3_userlist**](DefaultApi.md#v1alpha3_userlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | [**v1alpha3_version**](DefaultApi.md#v1alpha3_version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | [**v1alpha3_vnc**](DefaultApi.md#v1alpha3_vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | +[**v1alpha3_vnc_screenshot**](DefaultApi.md#v1alpha3_vnc_screenshot) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc/screenshot | [**v1alpha3dump_cluster_profiler**](DefaultApi.md#v1alpha3dump_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/dump-cluster-profiler | [**v1alpha3get_api_sub_resources**](DefaultApi.md#v1alpha3get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1alpha3/ | [**v1alpha3start_cluster_profiler**](DefaultApi.md#v1alpha3start_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/start-cluster-profiler | @@ -9447,6 +9449,56 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1_vnc_screenshot** +> v1_vnc_screenshot(name, namespace, move_cursor=move_cursor) + + + +Get a PNG VNC screenshot of the specified VirtualMachineInstance. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +move_cursor = true # bool | Move the cursor on the VNC display to wake up the screen (optional) + +try: + api_instance.v1_vnc_screenshot(name, namespace, move_cursor=move_cursor) +except ApiException as e: + print("Exception when calling DefaultApi->v1_vnc_screenshot: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **move_cursor** | **bool**| Move the cursor on the VNC display to wake up the screen | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3_check_health** > str v1alpha3_check_health() @@ -10491,6 +10543,56 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3_vnc_screenshot** +> v1alpha3_vnc_screenshot(name, namespace, move_cursor=move_cursor) + + + +Get a PNG VNC screenshot of the specified VirtualMachineInstance. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +move_cursor = true # bool | Move the cursor on the VNC display to wake up the screen (optional) + +try: + api_instance.v1alpha3_vnc_screenshot(name, namespace, move_cursor=move_cursor) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_vnc_screenshot: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **move_cursor** | **bool**| Move the cursor on the VNC display to wake up the screen | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3dump_cluster_profiler** > v1alpha3dump_cluster_profiler() diff --git a/git_push.sh b/git_push.sh index 9e98a1e9..aaa9b4dd 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.57.0-193-gaf00da884" + release_note="Auto-generated client v0.57.0-213-g16a931384" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 1479bff8..a387d838 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.57.0-193-gaf00da884/python' + self.user_agent = 'Swagger-Codegen/v0.57.0-213-g16a931384/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 664b70b4..3a475a8d 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -20015,6 +20015,113 @@ def v1_vnc_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1_vnc_screenshot(self, name, namespace, **kwargs): + """ + Get a PNG VNC screenshot of the specified VirtualMachineInstance. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_vnc_screenshot(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool move_cursor: Move the cursor on the VNC display to wake up the screen + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1_vnc_screenshot_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1_vnc_screenshot_with_http_info(name, namespace, **kwargs) + return data + + def v1_vnc_screenshot_with_http_info(self, name, namespace, **kwargs): + """ + Get a PNG VNC screenshot of the specified VirtualMachineInstance. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_vnc_screenshot_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool move_cursor: Move the cursor on the VNC display to wake up the screen + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'move_cursor'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1_vnc_screenshot" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1_vnc_screenshot`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1_vnc_screenshot`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'move_cursor' in params: + query_params.append(('moveCursor', params['move_cursor'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc/screenshot', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1alpha3_check_health(self, **kwargs): """ Health endpoint @@ -22274,6 +22381,113 @@ def v1alpha3_vnc_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1alpha3_vnc_screenshot(self, name, namespace, **kwargs): + """ + Get a PNG VNC screenshot of the specified VirtualMachineInstance. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_vnc_screenshot(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool move_cursor: Move the cursor on the VNC display to wake up the screen + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3_vnc_screenshot_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1alpha3_vnc_screenshot_with_http_info(name, namespace, **kwargs) + return data + + def v1alpha3_vnc_screenshot_with_http_info(self, name, namespace, **kwargs): + """ + Get a PNG VNC screenshot of the specified VirtualMachineInstance. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_vnc_screenshot_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool move_cursor: Move the cursor on the VNC display to wake up the screen + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'move_cursor'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3_vnc_screenshot" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_vnc_screenshot`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_vnc_screenshot`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'move_cursor' in params: + query_params.append(('moveCursor', params['move_cursor'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc/screenshot', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1alpha3dump_cluster_profiler(self, **kwargs): """ This method makes a synchronous HTTP request by default. To make an diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 57e2c2a8..96805d4b 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.57.0-193-gaf00da884".\ + "SDK Package Version: v0.57.0-213-g16a931384".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index 52c8afbf..0510eb0a 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.57.0-193-gaf00da884" +VERSION = "v0.57.0-213-g16a931384" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 219559b0..2d46747e 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.57.0-193-gaf00da884" +"packageVersion": "v0.57.0-213-g16a931384" } diff --git a/test/test_default_api.py b/test/test_default_api.py index b639d0f2..d16b0190 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -1420,6 +1420,14 @@ def test_v1_vnc(self): Test case for v1_vnc + """ + pass + + def test_v1_vnc_screenshot(self): + """ + Test case for v1_vnc_screenshot + + """ pass @@ -1596,6 +1604,14 @@ def test_v1alpha3_vnc(self): Test case for v1alpha3_vnc + """ + pass + + def test_v1alpha3_vnc_screenshot(self): + """ + Test case for v1alpha3_vnc_screenshot + + """ pass From 4d5377b7cdf484988ce057ce8e16206957068f48 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 30 Sep 2022 12:29:41 +0000 Subject: [PATCH 293/521] Client Python update by KubeVirt Prow build 1575808389923999744 --- README.md | 2 +- docs/V1DeveloperConfiguration.md | 14 ++++++------ docs/V1MigrationConfiguration.md | 22 +++++++++---------- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_developer_configuration.py | 16 ++++++++++++-- kubevirt/models/v1_migration_configuration.py | 22 +++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 60 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index b6718379..22b7e319 100644 --- a/README.md +++ b/README.md @@ -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: v0.57.0-213-g16a931384 +- Package version: v0.57.0-257-g9ec8c6040 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1DeveloperConfiguration.md b/docs/V1DeveloperConfiguration.md index 6d8dcb63..b2cb4efc 100644 --- a/docs/V1DeveloperConfiguration.md +++ b/docs/V1DeveloperConfiguration.md @@ -3,16 +3,16 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cpu_allocation_ratio** | **int** | | [optional] +**cpu_allocation_ratio** | **int** | For each requested virtual CPU, CPUAllocationRatio defines how much physical CPU to request per VMI from the hosting node. The value is in fraction of a CPU thread (or core on non-hyperthreaded nodes). For example, a value of 1 means 1 physical CPU thread per VMI CPU thread. A value of 100 would be 1% of a physical thread allocated for each requested VMI thread. This option has no effect on VMIs that request dedicated CPUs. More information at: https://kubevirt.io/user-guide/operations/node_overcommit/#node-cpu-allocation-ratio Defaults to 10 | [optional] **disk_verification** | [**V1DiskVerification**](V1DiskVerification.md) | | [optional] -**feature_gates** | **list[str]** | | [optional] +**feature_gates** | **list[str]** | FeatureGates is the list of experimental features to enable. Defaults to none | [optional] **log_verbosity** | [**V1LogVerbosity**](V1LogVerbosity.md) | | [optional] -**memory_overcommit** | **int** | | [optional] +**memory_overcommit** | **int** | MemoryOvercommit is the percentage of memory we want to give VMIs compared to the amount given to its parent pod (virt-launcher). For example, a value of 102 means the VMI will \"see\" 2% more memory than its parent pod. Values under 100 are effectively \"undercommits\". Overcommits can lead to memory exhaustion, which in turn can lead to crashes. Use carefully. Defaults to 100 | [optional] **minimum_cluster_tsc_frequency** | **int** | Allow overriding the automatically determined minimum TSC frequency of the cluster and fixate the minimum to this frequency. | [optional] -**minimum_reserve_pvc_bytes** | **int** | | [optional] -**node_selectors** | **dict(str, str)** | | [optional] -**pvc_tolerate_less_space_up_to_percent** | **int** | | [optional] -**use_emulation** | **bool** | UseEmulation can be set to true to allow fallback to software emulation in case hardware-assisted emulation is not available. | [optional] +**minimum_reserve_pvc_bytes** | **int** | MinimumReservePVCBytes is the amount of space, in bytes, to leave unused on disks. Defaults to 131072 (128KiB) | [optional] +**node_selectors** | **dict(str, str)** | NodeSelectors allows restricting VMI creation to nodes that match a set of labels. Defaults to none | [optional] +**pvc_tolerate_less_space_up_to_percent** | **int** | LessPVCSpaceToleration determines how much smaller, in percentage, disk PVCs are allowed to be compared to the requested size (to account for various overheads). Defaults to 10 | [optional] +**use_emulation** | **bool** | UseEmulation can be set to true to allow fallback to software emulation in case hardware-assisted emulation is not available. Defaults to false | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1MigrationConfiguration.md b/docs/V1MigrationConfiguration.md index 0121231c..4ec291d3 100644 --- a/docs/V1MigrationConfiguration.md +++ b/docs/V1MigrationConfiguration.md @@ -3,17 +3,17 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**allow_auto_converge** | **bool** | | [optional] -**allow_post_copy** | **bool** | | [optional] -**bandwidth_per_migration** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | | [optional] -**completion_timeout_per_gi_b** | **int** | | [optional] -**disable_tls** | **bool** | | [optional] -**network** | **str** | | [optional] -**node_drain_taint_key** | **str** | | [optional] -**parallel_migrations_per_cluster** | **int** | | [optional] -**parallel_outbound_migrations_per_node** | **int** | | [optional] -**progress_timeout** | **int** | | [optional] -**unsafe_migration_override** | **bool** | | [optional] +**allow_auto_converge** | **bool** | AllowAutoConverge allows the platform to compromise performance/availability of VMIs to guarantee successful VMI live migrations. Defaults to false | [optional] +**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] +**bandwidth_per_migration** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | BandwidthPerMigration limits the amount of network bandwith live migrations are allowed to use. The value is in quantity per second. Defaults to 0 (no limit) | [optional] +**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 800 | [optional] +**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] +**network** | **str** | Network is the name of the CNI network to use for live migrations. By default, migrations go through the pod network. | [optional] +**node_drain_taint_key** | **str** | NodeDrainTaintKey defines the taint key that indicates a node should be drained. Note: this option relies on the deprecated node taint feature. Default: kubevirt.io/drain | [optional] +**parallel_migrations_per_cluster** | **int** | ParallelMigrationsPerCluster is the total number of concurrent live migrations allowed cluster-wide. Defaults to 5 | [optional] +**parallel_outbound_migrations_per_node** | **int** | ParallelOutboundMigrationsPerNode is the maximum number of concurrent outgoing live migrations allowed per node. Defaults to 2 | [optional] +**progress_timeout** | **int** | ProgressTimeout is the maximum number of seconds a live migration is allowed to make no progress. Hitting this timeout means a migration transferred 0 data for that many seconds. The migration is then considered stuck and therefore cancelled. Defaults to 150 | [optional] +**unsafe_migration_override** | **bool** | UnsafeMigrationOverride allows live migrations to occur even if the compatibility check indicates the migration will be unsafe to the guest. Defaults to false | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index aaa9b4dd..0f2fcf5b 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.57.0-213-g16a931384" + release_note="Auto-generated client v0.57.0-257-g9ec8c6040" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index a387d838..f20681a3 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.57.0-213-g16a931384/python' + self.user_agent = 'Swagger-Codegen/v0.57.0-257-g9ec8c6040/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 96805d4b..332f4c24 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.57.0-213-g16a931384".\ + "SDK Package Version: v0.57.0-257-g9ec8c6040".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_developer_configuration.py b/kubevirt/models/v1_developer_configuration.py index f7e29328..afd3d0aa 100644 --- a/kubevirt/models/v1_developer_configuration.py +++ b/kubevirt/models/v1_developer_configuration.py @@ -97,6 +97,7 @@ def __init__(self, cpu_allocation_ratio=None, disk_verification=None, feature_ga def cpu_allocation_ratio(self): """ Gets the cpu_allocation_ratio of this V1DeveloperConfiguration. + For each requested virtual CPU, CPUAllocationRatio defines how much physical CPU to request per VMI from the hosting node. The value is in fraction of a CPU thread (or core on non-hyperthreaded nodes). For example, a value of 1 means 1 physical CPU thread per VMI CPU thread. A value of 100 would be 1% of a physical thread allocated for each requested VMI thread. This option has no effect on VMIs that request dedicated CPUs. More information at: https://kubevirt.io/user-guide/operations/node_overcommit/#node-cpu-allocation-ratio Defaults to 10 :return: The cpu_allocation_ratio of this V1DeveloperConfiguration. :rtype: int @@ -107,6 +108,7 @@ def cpu_allocation_ratio(self): def cpu_allocation_ratio(self, cpu_allocation_ratio): """ Sets the cpu_allocation_ratio of this V1DeveloperConfiguration. + For each requested virtual CPU, CPUAllocationRatio defines how much physical CPU to request per VMI from the hosting node. The value is in fraction of a CPU thread (or core on non-hyperthreaded nodes). For example, a value of 1 means 1 physical CPU thread per VMI CPU thread. A value of 100 would be 1% of a physical thread allocated for each requested VMI thread. This option has no effect on VMIs that request dedicated CPUs. More information at: https://kubevirt.io/user-guide/operations/node_overcommit/#node-cpu-allocation-ratio Defaults to 10 :param cpu_allocation_ratio: The cpu_allocation_ratio of this V1DeveloperConfiguration. :type: int @@ -139,6 +141,7 @@ def disk_verification(self, disk_verification): def feature_gates(self): """ Gets the feature_gates of this V1DeveloperConfiguration. + FeatureGates is the list of experimental features to enable. Defaults to none :return: The feature_gates of this V1DeveloperConfiguration. :rtype: list[str] @@ -149,6 +152,7 @@ def feature_gates(self): def feature_gates(self, feature_gates): """ Sets the feature_gates of this V1DeveloperConfiguration. + FeatureGates is the list of experimental features to enable. Defaults to none :param feature_gates: The feature_gates of this V1DeveloperConfiguration. :type: list[str] @@ -181,6 +185,7 @@ def log_verbosity(self, log_verbosity): def memory_overcommit(self): """ Gets the memory_overcommit of this V1DeveloperConfiguration. + MemoryOvercommit is the percentage of memory we want to give VMIs compared to the amount given to its parent pod (virt-launcher). For example, a value of 102 means the VMI will \"see\" 2% more memory than its parent pod. Values under 100 are effectively \"undercommits\". Overcommits can lead to memory exhaustion, which in turn can lead to crashes. Use carefully. Defaults to 100 :return: The memory_overcommit of this V1DeveloperConfiguration. :rtype: int @@ -191,6 +196,7 @@ def memory_overcommit(self): def memory_overcommit(self, memory_overcommit): """ Sets the memory_overcommit of this V1DeveloperConfiguration. + MemoryOvercommit is the percentage of memory we want to give VMIs compared to the amount given to its parent pod (virt-launcher). For example, a value of 102 means the VMI will \"see\" 2% more memory than its parent pod. Values under 100 are effectively \"undercommits\". Overcommits can lead to memory exhaustion, which in turn can lead to crashes. Use carefully. Defaults to 100 :param memory_overcommit: The memory_overcommit of this V1DeveloperConfiguration. :type: int @@ -225,6 +231,7 @@ def minimum_cluster_tsc_frequency(self, minimum_cluster_tsc_frequency): def minimum_reserve_pvc_bytes(self): """ Gets the minimum_reserve_pvc_bytes of this V1DeveloperConfiguration. + MinimumReservePVCBytes is the amount of space, in bytes, to leave unused on disks. Defaults to 131072 (128KiB) :return: The minimum_reserve_pvc_bytes of this V1DeveloperConfiguration. :rtype: int @@ -235,6 +242,7 @@ def minimum_reserve_pvc_bytes(self): def minimum_reserve_pvc_bytes(self, minimum_reserve_pvc_bytes): """ Sets the minimum_reserve_pvc_bytes of this V1DeveloperConfiguration. + MinimumReservePVCBytes is the amount of space, in bytes, to leave unused on disks. Defaults to 131072 (128KiB) :param minimum_reserve_pvc_bytes: The minimum_reserve_pvc_bytes of this V1DeveloperConfiguration. :type: int @@ -246,6 +254,7 @@ def minimum_reserve_pvc_bytes(self, minimum_reserve_pvc_bytes): def node_selectors(self): """ Gets the node_selectors of this V1DeveloperConfiguration. + NodeSelectors allows restricting VMI creation to nodes that match a set of labels. Defaults to none :return: The node_selectors of this V1DeveloperConfiguration. :rtype: dict(str, str) @@ -256,6 +265,7 @@ def node_selectors(self): def node_selectors(self, node_selectors): """ Sets the node_selectors of this V1DeveloperConfiguration. + NodeSelectors allows restricting VMI creation to nodes that match a set of labels. Defaults to none :param node_selectors: The node_selectors of this V1DeveloperConfiguration. :type: dict(str, str) @@ -267,6 +277,7 @@ def node_selectors(self, node_selectors): def pvc_tolerate_less_space_up_to_percent(self): """ Gets the pvc_tolerate_less_space_up_to_percent of this V1DeveloperConfiguration. + LessPVCSpaceToleration determines how much smaller, in percentage, disk PVCs are allowed to be compared to the requested size (to account for various overheads). Defaults to 10 :return: The pvc_tolerate_less_space_up_to_percent of this V1DeveloperConfiguration. :rtype: int @@ -277,6 +288,7 @@ def pvc_tolerate_less_space_up_to_percent(self): def pvc_tolerate_less_space_up_to_percent(self, pvc_tolerate_less_space_up_to_percent): """ Sets the pvc_tolerate_less_space_up_to_percent of this V1DeveloperConfiguration. + LessPVCSpaceToleration determines how much smaller, in percentage, disk PVCs are allowed to be compared to the requested size (to account for various overheads). Defaults to 10 :param pvc_tolerate_less_space_up_to_percent: The pvc_tolerate_less_space_up_to_percent of this V1DeveloperConfiguration. :type: int @@ -288,7 +300,7 @@ def pvc_tolerate_less_space_up_to_percent(self, pvc_tolerate_less_space_up_to_pe def use_emulation(self): """ Gets the use_emulation of this V1DeveloperConfiguration. - UseEmulation can be set to true to allow fallback to software emulation in case hardware-assisted emulation is not available. + UseEmulation can be set to true to allow fallback to software emulation in case hardware-assisted emulation is not available. Defaults to false :return: The use_emulation of this V1DeveloperConfiguration. :rtype: bool @@ -299,7 +311,7 @@ def use_emulation(self): def use_emulation(self, use_emulation): """ Sets the use_emulation of this V1DeveloperConfiguration. - UseEmulation can be set to true to allow fallback to software emulation in case hardware-assisted emulation is not available. + UseEmulation can be set to true to allow fallback to software emulation in case hardware-assisted emulation is not available. Defaults to false :param use_emulation: The use_emulation of this V1DeveloperConfiguration. :type: bool diff --git a/kubevirt/models/v1_migration_configuration.py b/kubevirt/models/v1_migration_configuration.py index a5d75e05..d7c289a5 100644 --- a/kubevirt/models/v1_migration_configuration.py +++ b/kubevirt/models/v1_migration_configuration.py @@ -102,6 +102,7 @@ def __init__(self, allow_auto_converge=None, allow_post_copy=None, bandwidth_per def allow_auto_converge(self): """ Gets the allow_auto_converge of this V1MigrationConfiguration. + AllowAutoConverge allows the platform to compromise performance/availability of VMIs to guarantee successful VMI live migrations. Defaults to false :return: The allow_auto_converge of this V1MigrationConfiguration. :rtype: bool @@ -112,6 +113,7 @@ def allow_auto_converge(self): def allow_auto_converge(self, allow_auto_converge): """ Sets the allow_auto_converge of this V1MigrationConfiguration. + AllowAutoConverge allows the platform to compromise performance/availability of VMIs to guarantee successful VMI live migrations. Defaults to false :param allow_auto_converge: The allow_auto_converge of this V1MigrationConfiguration. :type: bool @@ -123,6 +125,7 @@ def allow_auto_converge(self, allow_auto_converge): def allow_post_copy(self): """ Gets the allow_post_copy of this V1MigrationConfiguration. + 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 :return: The allow_post_copy of this V1MigrationConfiguration. :rtype: bool @@ -133,6 +136,7 @@ def allow_post_copy(self): def allow_post_copy(self, allow_post_copy): """ Sets the allow_post_copy of this V1MigrationConfiguration. + 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 :param allow_post_copy: The allow_post_copy of this V1MigrationConfiguration. :type: bool @@ -144,6 +148,7 @@ def allow_post_copy(self, allow_post_copy): def bandwidth_per_migration(self): """ Gets the bandwidth_per_migration of this V1MigrationConfiguration. + BandwidthPerMigration limits the amount of network bandwith live migrations are allowed to use. The value is in quantity per second. Defaults to 0 (no limit) :return: The bandwidth_per_migration of this V1MigrationConfiguration. :rtype: K8sIoApimachineryPkgApiResourceQuantity @@ -154,6 +159,7 @@ def bandwidth_per_migration(self): def bandwidth_per_migration(self, bandwidth_per_migration): """ Sets the bandwidth_per_migration of this V1MigrationConfiguration. + BandwidthPerMigration limits the amount of network bandwith live migrations are allowed to use. The value is in quantity per second. Defaults to 0 (no limit) :param bandwidth_per_migration: The bandwidth_per_migration of this V1MigrationConfiguration. :type: K8sIoApimachineryPkgApiResourceQuantity @@ -165,6 +171,7 @@ def bandwidth_per_migration(self, bandwidth_per_migration): def completion_timeout_per_gi_b(self): """ Gets the completion_timeout_per_gi_b of this V1MigrationConfiguration. + 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 800 :return: The completion_timeout_per_gi_b of this V1MigrationConfiguration. :rtype: int @@ -175,6 +182,7 @@ def completion_timeout_per_gi_b(self): def completion_timeout_per_gi_b(self, completion_timeout_per_gi_b): """ Sets the completion_timeout_per_gi_b of this V1MigrationConfiguration. + 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 800 :param completion_timeout_per_gi_b: The completion_timeout_per_gi_b of this V1MigrationConfiguration. :type: int @@ -186,6 +194,7 @@ def completion_timeout_per_gi_b(self, completion_timeout_per_gi_b): def disable_tls(self): """ Gets the disable_tls of this V1MigrationConfiguration. + 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 :return: The disable_tls of this V1MigrationConfiguration. :rtype: bool @@ -196,6 +205,7 @@ def disable_tls(self): def disable_tls(self, disable_tls): """ Sets the disable_tls of this V1MigrationConfiguration. + 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 :param disable_tls: The disable_tls of this V1MigrationConfiguration. :type: bool @@ -207,6 +217,7 @@ def disable_tls(self, disable_tls): def network(self): """ Gets the network of this V1MigrationConfiguration. + Network is the name of the CNI network to use for live migrations. By default, migrations go through the pod network. :return: The network of this V1MigrationConfiguration. :rtype: str @@ -217,6 +228,7 @@ def network(self): def network(self, network): """ Sets the network of this V1MigrationConfiguration. + Network is the name of the CNI network to use for live migrations. By default, migrations go through the pod network. :param network: The network of this V1MigrationConfiguration. :type: str @@ -228,6 +240,7 @@ def network(self, network): def node_drain_taint_key(self): """ Gets the node_drain_taint_key of this V1MigrationConfiguration. + NodeDrainTaintKey defines the taint key that indicates a node should be drained. Note: this option relies on the deprecated node taint feature. Default: kubevirt.io/drain :return: The node_drain_taint_key of this V1MigrationConfiguration. :rtype: str @@ -238,6 +251,7 @@ def node_drain_taint_key(self): def node_drain_taint_key(self, node_drain_taint_key): """ Sets the node_drain_taint_key of this V1MigrationConfiguration. + NodeDrainTaintKey defines the taint key that indicates a node should be drained. Note: this option relies on the deprecated node taint feature. Default: kubevirt.io/drain :param node_drain_taint_key: The node_drain_taint_key of this V1MigrationConfiguration. :type: str @@ -249,6 +263,7 @@ def node_drain_taint_key(self, node_drain_taint_key): def parallel_migrations_per_cluster(self): """ Gets the parallel_migrations_per_cluster of this V1MigrationConfiguration. + ParallelMigrationsPerCluster is the total number of concurrent live migrations allowed cluster-wide. Defaults to 5 :return: The parallel_migrations_per_cluster of this V1MigrationConfiguration. :rtype: int @@ -259,6 +274,7 @@ def parallel_migrations_per_cluster(self): def parallel_migrations_per_cluster(self, parallel_migrations_per_cluster): """ Sets the parallel_migrations_per_cluster of this V1MigrationConfiguration. + ParallelMigrationsPerCluster is the total number of concurrent live migrations allowed cluster-wide. Defaults to 5 :param parallel_migrations_per_cluster: The parallel_migrations_per_cluster of this V1MigrationConfiguration. :type: int @@ -270,6 +286,7 @@ def parallel_migrations_per_cluster(self, parallel_migrations_per_cluster): def parallel_outbound_migrations_per_node(self): """ Gets the parallel_outbound_migrations_per_node of this V1MigrationConfiguration. + ParallelOutboundMigrationsPerNode is the maximum number of concurrent outgoing live migrations allowed per node. Defaults to 2 :return: The parallel_outbound_migrations_per_node of this V1MigrationConfiguration. :rtype: int @@ -280,6 +297,7 @@ def parallel_outbound_migrations_per_node(self): def parallel_outbound_migrations_per_node(self, parallel_outbound_migrations_per_node): """ Sets the parallel_outbound_migrations_per_node of this V1MigrationConfiguration. + ParallelOutboundMigrationsPerNode is the maximum number of concurrent outgoing live migrations allowed per node. Defaults to 2 :param parallel_outbound_migrations_per_node: The parallel_outbound_migrations_per_node of this V1MigrationConfiguration. :type: int @@ -291,6 +309,7 @@ def parallel_outbound_migrations_per_node(self, parallel_outbound_migrations_per def progress_timeout(self): """ Gets the progress_timeout of this V1MigrationConfiguration. + ProgressTimeout is the maximum number of seconds a live migration is allowed to make no progress. Hitting this timeout means a migration transferred 0 data for that many seconds. The migration is then considered stuck and therefore cancelled. Defaults to 150 :return: The progress_timeout of this V1MigrationConfiguration. :rtype: int @@ -301,6 +320,7 @@ def progress_timeout(self): def progress_timeout(self, progress_timeout): """ Sets the progress_timeout of this V1MigrationConfiguration. + ProgressTimeout is the maximum number of seconds a live migration is allowed to make no progress. Hitting this timeout means a migration transferred 0 data for that many seconds. The migration is then considered stuck and therefore cancelled. Defaults to 150 :param progress_timeout: The progress_timeout of this V1MigrationConfiguration. :type: int @@ -312,6 +332,7 @@ def progress_timeout(self, progress_timeout): def unsafe_migration_override(self): """ Gets the unsafe_migration_override of this V1MigrationConfiguration. + UnsafeMigrationOverride allows live migrations to occur even if the compatibility check indicates the migration will be unsafe to the guest. Defaults to false :return: The unsafe_migration_override of this V1MigrationConfiguration. :rtype: bool @@ -322,6 +343,7 @@ def unsafe_migration_override(self): def unsafe_migration_override(self, unsafe_migration_override): """ Sets the unsafe_migration_override of this V1MigrationConfiguration. + UnsafeMigrationOverride allows live migrations to occur even if the compatibility check indicates the migration will be unsafe to the guest. Defaults to false :param unsafe_migration_override: The unsafe_migration_override of this V1MigrationConfiguration. :type: bool diff --git a/setup.py b/setup.py index 0510eb0a..38ac47d7 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.57.0-213-g16a931384" +VERSION = "v0.57.0-257-g9ec8c6040" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 2d46747e..c68c74e2 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.57.0-213-g16a931384" +"packageVersion": "v0.57.0-257-g9ec8c6040" } From 19982dc0719c668779e5c580d8f919b8bb4ab57e Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 30 Sep 2022 12:30:00 +0000 Subject: [PATCH 294/521] Client Python update by KubeVirt Prow build 1575808417644154880 --- README.md | 112 ++++---- docs/DefaultApi.md | 202 +++++++------- ...ancetype.md => V1alpha2CPUInstancetype.md} | 2 +- ...eferences.md => V1alpha2CPUPreferences.md} | 2 +- ...erences.md => V1alpha2ClockPreferences.md} | 2 +- ...rences.md => V1alpha2DevicePreferences.md} | 2 +- ...ences.md => V1alpha2FeaturePreferences.md} | 2 +- ...nces.md => V1alpha2FirmwarePreferences.md} | 2 +- ...ences.md => V1alpha2MachinePreferences.md} | 2 +- ...etype.md => V1alpha2MemoryInstancetype.md} | 2 +- ...lpha2VirtualMachineClusterInstancetype.md} | 4 +- ...2VirtualMachineClusterInstancetypeList.md} | 4 +- ...1alpha2VirtualMachineClusterPreference.md} | 4 +- ...ha2VirtualMachineClusterPreferenceList.md} | 4 +- ... => V1alpha2VirtualMachineInstancetype.md} | 4 +- ...V1alpha2VirtualMachineInstancetypeList.md} | 4 +- ...V1alpha2VirtualMachineInstancetypeSpec.md} | 6 +- ...md => V1alpha2VirtualMachinePreference.md} | 4 +- ...> V1alpha2VirtualMachinePreferenceList.md} | 4 +- ...> V1alpha2VirtualMachinePreferenceSpec.md} | 14 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 108 ++++---- kubevirt/__init__.py | 36 +-- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 252 +++++++++--------- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 36 +-- ...ences.py => v1alpha2_clock_preferences.py} | 22 +- ...cetype.py => v1alpha2_cpu_instancetype.py} | 54 ++-- ...erences.py => v1alpha2_cpu_preferences.py} | 14 +- ...nces.py => v1alpha2_device_preferences.py} | 190 ++++++------- ...ces.py => v1alpha2_feature_preferences.py} | 54 ++-- ...es.py => v1alpha2_firmware_preferences.py} | 38 +-- ...ces.py => v1alpha2_machine_preferences.py} | 14 +- ...ype.py => v1alpha2_memory_instancetype.py} | 22 +- ...2_virtual_machine_cluster_instancetype.py} | 44 +-- ...tual_machine_cluster_instancetype_list.py} | 44 +-- ...ha2_virtual_machine_cluster_preference.py} | 44 +-- ...irtual_machine_cluster_preference_list.py} | 44 +-- ... v1alpha2_virtual_machine_instancetype.py} | 44 +-- ...pha2_virtual_machine_instancetype_list.py} | 44 +-- ...pha2_virtual_machine_instancetype_spec.py} | 66 ++--- ...=> v1alpha2_virtual_machine_preference.py} | 44 +-- ...alpha2_virtual_machine_preference_list.py} | 44 +-- ...alpha2_virtual_machine_preference_spec.py} | 90 +++---- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 4 +- test/test_v1alpha1_feature_preferences.py | 44 --- test/test_v1alpha1_firmware_preferences.py | 44 --- test/test_v1alpha1_machine_preferences.py | 44 --- test/test_v1alpha1_memory_instancetype.py | 44 --- ...est_v1alpha1_virtual_machine_preference.py | 44 --- ....py => test_v1alpha2_clock_preferences.py} | 12 +- ...e.py => test_v1alpha2_cpu_instancetype.py} | 12 +- ...es.py => test_v1alpha2_cpu_preferences.py} | 12 +- ...py => test_v1alpha2_device_preferences.py} | 12 +- test/test_v1alpha2_feature_preferences.py | 44 +++ test/test_v1alpha2_firmware_preferences.py | 44 +++ test/test_v1alpha2_machine_preferences.py | 44 +++ test/test_v1alpha2_memory_instancetype.py | 44 +++ ...2_virtual_machine_cluster_instancetype.py} | 12 +- ...tual_machine_cluster_instancetype_list.py} | 12 +- ...ha2_virtual_machine_cluster_preference.py} | 12 +- ...irtual_machine_cluster_preference_list.py} | 12 +- ..._v1alpha2_virtual_machine_instancetype.py} | 12 +- ...pha2_virtual_machine_instancetype_list.py} | 12 +- ...pha2_virtual_machine_instancetype_spec.py} | 12 +- ...est_v1alpha2_virtual_machine_preference.py | 44 +++ ...alpha2_virtual_machine_preference_list.py} | 12 +- ...alpha2_virtual_machine_preference_spec.py} | 12 +- 71 files changed, 1170 insertions(+), 1170 deletions(-) rename docs/{V1alpha1CPUInstancetype.md => V1alpha2CPUInstancetype.md} (98%) rename docs/{V1alpha1CPUPreferences.md => V1alpha2CPUPreferences.md} (94%) rename docs/{V1alpha1ClockPreferences.md => V1alpha2ClockPreferences.md} (95%) rename docs/{V1alpha1DevicePreferences.md => V1alpha2DevicePreferences.md} (99%) rename docs/{V1alpha1FeaturePreferences.md => V1alpha2FeaturePreferences.md} (97%) rename docs/{V1alpha1FirmwarePreferences.md => V1alpha2FirmwarePreferences.md} (96%) rename docs/{V1alpha1MachinePreferences.md => V1alpha2MachinePreferences.md} (93%) rename docs/{V1alpha1MemoryInstancetype.md => V1alpha2MemoryInstancetype.md} (95%) rename docs/{V1alpha1VirtualMachineClusterInstancetype.md => V1alpha2VirtualMachineClusterInstancetype.md} (91%) rename docs/{V1alpha1VirtualMachineClusterInstancetypeList.md => V1alpha2VirtualMachineClusterInstancetypeList.md} (86%) rename docs/{V1alpha1VirtualMachineClusterPreference.md => V1alpha2VirtualMachineClusterPreference.md} (91%) rename docs/{V1alpha1VirtualMachineClusterPreferenceList.md => V1alpha2VirtualMachineClusterPreferenceList.md} (86%) rename docs/{V1alpha1VirtualMachineInstancetype.md => V1alpha2VirtualMachineInstancetype.md} (91%) rename docs/{V1alpha1VirtualMachineInstancetypeList.md => V1alpha2VirtualMachineInstancetypeList.md} (87%) rename docs/{V1alpha1VirtualMachineInstancetypeSpec.md => V1alpha2VirtualMachineInstancetypeSpec.md} (84%) rename docs/{V1alpha1VirtualMachinePreference.md => V1alpha2VirtualMachinePreference.md} (91%) rename docs/{V1alpha1VirtualMachinePreferenceList.md => V1alpha2VirtualMachinePreferenceList.md} (88%) rename docs/{V1alpha1VirtualMachinePreferenceSpec.md => V1alpha2VirtualMachinePreferenceSpec.md} (72%) rename kubevirt/models/{v1alpha1_clock_preferences.py => v1alpha2_clock_preferences.py} (86%) rename kubevirt/models/{v1alpha1_cpu_instancetype.py => v1alpha2_cpu_instancetype.py} (82%) rename kubevirt/models/{v1alpha1_cpu_preferences.py => v1alpha2_cpu_preferences.py} (89%) rename kubevirt/models/{v1alpha1_device_preferences.py => v1alpha2_device_preferences.py} (84%) rename kubevirt/models/{v1alpha1_feature_preferences.py => v1alpha2_feature_preferences.py} (81%) rename kubevirt/models/{v1alpha1_firmware_preferences.py => v1alpha2_firmware_preferences.py} (84%) rename kubevirt/models/{v1alpha1_machine_preferences.py => v1alpha2_machine_preferences.py} (88%) rename kubevirt/models/{v1alpha1_memory_instancetype.py => v1alpha2_memory_instancetype.py} (84%) rename kubevirt/models/{v1alpha1_virtual_machine_cluster_instancetype.py => v1alpha2_virtual_machine_cluster_instancetype.py} (80%) rename kubevirt/models/{v1alpha1_virtual_machine_cluster_instancetype_list.py => v1alpha2_virtual_machine_cluster_instancetype_list.py} (79%) rename kubevirt/models/{v1alpha1_virtual_machine_cluster_preference.py => v1alpha2_virtual_machine_cluster_preference.py} (80%) rename kubevirt/models/{v1alpha1_virtual_machine_cluster_preference_list.py => v1alpha2_virtual_machine_cluster_preference_list.py} (79%) rename kubevirt/models/{v1alpha1_virtual_machine_instancetype.py => v1alpha2_virtual_machine_instancetype.py} (79%) rename kubevirt/models/{v1alpha1_virtual_machine_instancetype_list.py => v1alpha2_virtual_machine_instancetype_list.py} (79%) rename kubevirt/models/{v1alpha1_virtual_machine_instancetype_spec.py => v1alpha2_virtual_machine_instancetype_spec.py} (76%) rename kubevirt/models/{v1alpha1_virtual_machine_preference.py => v1alpha2_virtual_machine_preference.py} (79%) rename kubevirt/models/{v1alpha1_virtual_machine_preference_list.py => v1alpha2_virtual_machine_preference_list.py} (79%) rename kubevirt/models/{v1alpha1_virtual_machine_preference_spec.py => v1alpha2_virtual_machine_preference_spec.py} (70%) delete mode 100644 test/test_v1alpha1_feature_preferences.py delete mode 100644 test/test_v1alpha1_firmware_preferences.py delete mode 100644 test/test_v1alpha1_machine_preferences.py delete mode 100644 test/test_v1alpha1_memory_instancetype.py delete mode 100644 test/test_v1alpha1_virtual_machine_preference.py rename test/{test_v1alpha1_clock_preferences.py => test_v1alpha2_clock_preferences.py} (64%) rename test/{test_v1alpha1_cpu_instancetype.py => test_v1alpha2_cpu_instancetype.py} (65%) rename test/{test_v1alpha1_cpu_preferences.py => test_v1alpha2_cpu_preferences.py} (65%) rename test/{test_v1alpha1_device_preferences.py => test_v1alpha2_device_preferences.py} (64%) create mode 100644 test/test_v1alpha2_feature_preferences.py create mode 100644 test/test_v1alpha2_firmware_preferences.py create mode 100644 test/test_v1alpha2_machine_preferences.py create mode 100644 test/test_v1alpha2_memory_instancetype.py rename test/{test_v1alpha1_virtual_machine_cluster_instancetype.py => test_v1alpha2_virtual_machine_cluster_instancetype.py} (56%) rename test/{test_v1alpha1_virtual_machine_cluster_instancetype_list.py => test_v1alpha2_virtual_machine_cluster_instancetype_list.py} (56%) rename test/{test_v1alpha1_virtual_machine_cluster_preference.py => test_v1alpha2_virtual_machine_cluster_preference.py} (57%) rename test/{test_v1alpha1_virtual_machine_cluster_preference_list.py => test_v1alpha2_virtual_machine_cluster_preference_list.py} (56%) rename test/{test_v1alpha1_virtual_machine_instancetype.py => test_v1alpha2_virtual_machine_instancetype.py} (58%) rename test/{test_v1alpha1_virtual_machine_instancetype_list.py => test_v1alpha2_virtual_machine_instancetype_list.py} (57%) rename test/{test_v1alpha1_virtual_machine_instancetype_spec.py => test_v1alpha2_virtual_machine_instancetype_spec.py} (57%) create mode 100644 test/test_v1alpha2_virtual_machine_preference.py rename test/{test_v1alpha1_virtual_machine_preference_list.py => test_v1alpha2_virtual_machine_preference_list.py} (57%) rename test/{test_v1alpha1_virtual_machine_preference_spec.py => test_v1alpha2_virtual_machine_preference_spec.py} (57%) diff --git a/README.md b/README.md index 22b7e319..37de54c1 100644 --- a/README.md +++ b/README.md @@ -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: v0.57.0-257-g9ec8c6040 +- Package version: v0.57.0-270-g661b2dc80 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -77,15 +77,15 @@ Class | Method | HTTP request | Description *DefaultApi* | [**create_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | *DefaultApi* | [**create_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | *DefaultApi* | [**create_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | -*DefaultApi* | [**create_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#create_namespaced_virtual_machine_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | +*DefaultApi* | [**create_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#create_namespaced_virtual_machine_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | *DefaultApi* | [**create_namespaced_virtual_machine_pool**](docs/DefaultApi.md#create_namespaced_virtual_machine_pool) | **POST** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -*DefaultApi* | [**create_namespaced_virtual_machine_preference**](docs/DefaultApi.md#create_namespaced_virtual_machine_preference) | **POST** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | +*DefaultApi* | [**create_namespaced_virtual_machine_preference**](docs/DefaultApi.md#create_namespaced_virtual_machine_preference) | **POST** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | *DefaultApi* | [**create_namespaced_virtual_machine_restore**](docs/DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**create_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**create_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | *DefaultApi* | [**create_virtual_machine_clone**](docs/DefaultApi.md#create_virtual_machine_clone) | **POST** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | -*DefaultApi* | [**create_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#create_virtual_machine_cluster_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes | -*DefaultApi* | [**create_virtual_machine_cluster_preference**](docs/DefaultApi.md#create_virtual_machine_cluster_preference) | **POST** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | +*DefaultApi* | [**create_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#create_virtual_machine_cluster_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes | +*DefaultApi* | [**create_virtual_machine_cluster_preference**](docs/DefaultApi.md#create_virtual_machine_cluster_preference) | **POST** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences | *DefaultApi* | [**delete_collection_migration_policy**](docs/DefaultApi.md#delete_collection_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | *DefaultApi* | [**delete_collection_namespaced_kube_virt**](docs/DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | *DefaultApi* | [**delete_collection_namespaced_virtual_machine**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | @@ -94,15 +94,15 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_pool**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_preference**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_preference**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | *DefaultApi* | [**delete_collection_virtual_machine_clone**](docs/DefaultApi.md#delete_collection_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | -*DefaultApi* | [**delete_collection_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#delete_collection_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes | -*DefaultApi* | [**delete_collection_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_collection_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | +*DefaultApi* | [**delete_collection_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#delete_collection_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes | +*DefaultApi* | [**delete_collection_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_collection_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences | *DefaultApi* | [**delete_migration_policy**](docs/DefaultApi.md#delete_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_kube_virt**](docs/DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine**](docs/DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | @@ -111,15 +111,15 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_pool**](docs/DefaultApi.md#delete_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_namespaced_virtual_machine_preference**](docs/DefaultApi.md#delete_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_namespaced_virtual_machine_preference**](docs/DefaultApi.md#delete_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_virtual_machine_clone**](docs/DefaultApi.md#delete_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#delete_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#delete_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**func1**](docs/DefaultApi.md#func1) | **GET** /healthz | *DefaultApi* | [**func7**](docs/DefaultApi.md#func7) | **GET** /openapi/v2 | *DefaultApi* | [**get_api_group_clone_kubevirt_io**](docs/DefaultApi.md#get_api_group_clone_kubevirt_io) | **GET** /apis/clone.kubevirt.io/ | @@ -132,7 +132,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**get_api_group_snapshot_kubevirt_io**](docs/DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | *DefaultApi* | [**get_api_resources_clone_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_clone_kubevirt_io_v1alpha1) | **GET** /apis/clone.kubevirt.io/v1alpha1/ | *DefaultApi* | [**get_api_resources_export_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_export_kubevirt_io_v1alpha1) | **GET** /apis/export.kubevirt.io/v1alpha1/ | -*DefaultApi* | [**get_api_resources_instancetype_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_instancetype_kubevirt_io_v1alpha1) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/ | +*DefaultApi* | [**get_api_resources_instancetype_kubevirt_io_v1alpha2**](docs/DefaultApi.md#get_api_resources_instancetype_kubevirt_io_v1alpha2) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/ | *DefaultApi* | [**get_api_resources_kubevirt_io_v1**](docs/DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | *DefaultApi* | [**get_api_resources_migrations_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_migrations_kubevirt_io_v1alpha1) | **GET** /apis/migrations.kubevirt.io/v1alpha1/ | *DefaultApi* | [**get_api_resources_pool_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_pool_kubevirt_io_v1alpha1) | **GET** /apis/pool.kubevirt.io/v1alpha1/ | @@ -150,24 +150,24 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | *DefaultApi* | [**list_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | *DefaultApi* | [**list_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | -*DefaultApi* | [**list_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#list_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | +*DefaultApi* | [**list_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#list_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | *DefaultApi* | [**list_namespaced_virtual_machine_pool**](docs/DefaultApi.md#list_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -*DefaultApi* | [**list_namespaced_virtual_machine_preference**](docs/DefaultApi.md#list_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | +*DefaultApi* | [**list_namespaced_virtual_machine_preference**](docs/DefaultApi.md#list_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | *DefaultApi* | [**list_namespaced_virtual_machine_restore**](docs/DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**list_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**list_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | *DefaultApi* | [**list_virtual_machine_clone**](docs/DefaultApi.md#list_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | -*DefaultApi* | [**list_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#list_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes | -*DefaultApi* | [**list_virtual_machine_cluster_preference**](docs/DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | +*DefaultApi* | [**list_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#list_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes | +*DefaultApi* | [**list_virtual_machine_cluster_preference**](docs/DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences | *DefaultApi* | [**list_virtual_machine_export_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_export_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1alpha1/virtualmachineexports | *DefaultApi* | [**list_virtual_machine_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachines | *DefaultApi* | [**list_virtual_machine_instance_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstances | *DefaultApi* | [**list_virtual_machine_instance_migration_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancemigrations | *DefaultApi* | [**list_virtual_machine_instance_preset_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancepresets | *DefaultApi* | [**list_virtual_machine_instance_replica_set_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancereplicasets | -*DefaultApi* | [**list_virtual_machine_instancetype_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instancetype_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineinstancetypes | +*DefaultApi* | [**list_virtual_machine_instancetype_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instancetype_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineinstancetypes | *DefaultApi* | [**list_virtual_machine_pool_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_pool_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/virtualmachinepools | -*DefaultApi* | [**list_virtual_machine_preference_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_preference_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachinepreferences | +*DefaultApi* | [**list_virtual_machine_preference_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_preference_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachinepreferences | *DefaultApi* | [**list_virtual_machine_restore_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_restore_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores | *DefaultApi* | [**list_virtual_machine_snapshot_content_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents | *DefaultApi* | [**list_virtual_machine_snapshot_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots | @@ -179,15 +179,15 @@ Class | Method | HTTP request | Description *DefaultApi* | [**patch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_pool**](docs/DefaultApi.md#patch_namespaced_virtual_machine_pool) | **PATCH** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_namespaced_virtual_machine_preference**](docs/DefaultApi.md#patch_namespaced_virtual_machine_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_namespaced_virtual_machine_preference**](docs/DefaultApi.md#patch_namespaced_virtual_machine_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_virtual_machine_clone**](docs/DefaultApi.md#patch_virtual_machine_clone) | **PATCH** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#patch_virtual_machine_cluster_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_virtual_machine_cluster_preference**](docs/DefaultApi.md#patch_virtual_machine_cluster_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#patch_virtual_machine_cluster_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_virtual_machine_cluster_preference**](docs/DefaultApi.md#patch_virtual_machine_cluster_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_migration_policy**](docs/DefaultApi.md#read_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_kube_virt**](docs/DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine**](docs/DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | @@ -196,15 +196,15 @@ Class | Method | HTTP request | Description *DefaultApi* | [**read_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#read_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#read_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_pool**](docs/DefaultApi.md#read_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_namespaced_virtual_machine_preference**](docs/DefaultApi.md#read_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_namespaced_virtual_machine_preference**](docs/DefaultApi.md#read_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_restore**](docs/DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_virtual_machine_clone**](docs/DefaultApi.md#read_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#read_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_virtual_machine_cluster_preference**](docs/DefaultApi.md#read_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#read_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_virtual_machine_cluster_preference**](docs/DefaultApi.md#read_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_migration_policy**](docs/DefaultApi.md#replace_migration_policy) | **PUT** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_kube_virt**](docs/DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine**](docs/DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | @@ -213,15 +213,15 @@ Class | Method | HTTP request | Description *DefaultApi* | [**replace_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_pool**](docs/DefaultApi.md#replace_namespaced_virtual_machine_pool) | **PUT** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_namespaced_virtual_machine_preference**](docs/DefaultApi.md#replace_namespaced_virtual_machine_preference) | **PUT** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_namespaced_virtual_machine_preference**](docs/DefaultApi.md#replace_namespaced_virtual_machine_preference) | **PUT** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_restore**](docs/DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_virtual_machine_clone**](docs/DefaultApi.md#replace_virtual_machine_clone) | **PUT** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#replace_virtual_machine_cluster_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_virtual_machine_cluster_preference**](docs/DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#replace_virtual_machine_cluster_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_virtual_machine_cluster_preference**](docs/DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**v1_check_health**](docs/DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | *DefaultApi* | [**v1_console**](docs/DefaultApi.md#v1_console) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | *DefaultApi* | [**v1_expand_spec**](docs/DefaultApi.md#v1_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1/expand-spec | @@ -304,24 +304,24 @@ Class | Method | HTTP request | Description *DefaultApi* | [**watch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | *DefaultApi* | [**watch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | *DefaultApi* | [**watch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | -*DefaultApi* | [**watch_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | +*DefaultApi* | [**watch_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | *DefaultApi* | [**watch_namespaced_virtual_machine_pool**](docs/DefaultApi.md#watch_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -*DefaultApi* | [**watch_namespaced_virtual_machine_preference**](docs/DefaultApi.md#watch_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | +*DefaultApi* | [**watch_namespaced_virtual_machine_preference**](docs/DefaultApi.md#watch_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | *DefaultApi* | [**watch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**watch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**watch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | *DefaultApi* | [**watch_virtual_machine_clone_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_clone_list_for_all_namespaces) | **GET** /apis/clone.kubevirt.io/v1alpha1/watch/virtualmachineclones | -*DefaultApi* | [**watch_virtual_machine_cluster_instancetype_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/watch/virtualmachineclusterinstancetypes | -*DefaultApi* | [**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/watch/virtualmachineclusterpreferences | +*DefaultApi* | [**watch_virtual_machine_cluster_instancetype_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/watch/virtualmachineclusterinstancetypes | +*DefaultApi* | [**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/watch/virtualmachineclusterpreferences | *DefaultApi* | [**watch_virtual_machine_export_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_export_list_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1alpha1/watch/virtualmachineexports | *DefaultApi* | [**watch_virtual_machine_instance_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstances | *DefaultApi* | [**watch_virtual_machine_instance_migration_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancemigrations | *DefaultApi* | [**watch_virtual_machine_instance_preset_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancepresets | *DefaultApi* | [**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancereplicasets | -*DefaultApi* | [**watch_virtual_machine_instancetype_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/watch/virtualmachineinstancetypes | +*DefaultApi* | [**watch_virtual_machine_instancetype_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/watch/virtualmachineinstancetypes | *DefaultApi* | [**watch_virtual_machine_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachines | *DefaultApi* | [**watch_virtual_machine_pool_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_pool_list_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/virtualmachinepools | -*DefaultApi* | [**watch_virtual_machine_preference_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/watch/virtualmachinepreferences | +*DefaultApi* | [**watch_virtual_machine_preference_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/watch/virtualmachinepreferences | *DefaultApi* | [**watch_virtual_machine_restore_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_restore_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinerestores | *DefaultApi* | [**watch_virtual_machine_snapshot_content_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_snapshot_content_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshotcontents | *DefaultApi* | [**watch_virtual_machine_snapshot_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_snapshot_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshots | @@ -571,16 +571,8 @@ Class | Method | HTTP request | Description - [V1VolumeSnapshotStatus](docs/V1VolumeSnapshotStatus.md) - [V1VolumeStatus](docs/V1VolumeStatus.md) - [V1Watchdog](docs/V1Watchdog.md) - - [V1alpha1CPUInstancetype](docs/V1alpha1CPUInstancetype.md) - - [V1alpha1CPUPreferences](docs/V1alpha1CPUPreferences.md) - - [V1alpha1ClockPreferences](docs/V1alpha1ClockPreferences.md) - [V1alpha1Condition](docs/V1alpha1Condition.md) - - [V1alpha1DevicePreferences](docs/V1alpha1DevicePreferences.md) - [V1alpha1Error](docs/V1alpha1Error.md) - - [V1alpha1FeaturePreferences](docs/V1alpha1FeaturePreferences.md) - - [V1alpha1FirmwarePreferences](docs/V1alpha1FirmwarePreferences.md) - - [V1alpha1MachinePreferences](docs/V1alpha1MachinePreferences.md) - - [V1alpha1MemoryInstancetype](docs/V1alpha1MemoryInstancetype.md) - [V1alpha1MigrationPolicy](docs/V1alpha1MigrationPolicy.md) - [V1alpha1MigrationPolicyList](docs/V1alpha1MigrationPolicyList.md) - [V1alpha1MigrationPolicySpec](docs/V1alpha1MigrationPolicySpec.md) @@ -593,10 +585,6 @@ Class | Method | HTTP request | Description - [V1alpha1VirtualMachineCloneList](docs/V1alpha1VirtualMachineCloneList.md) - [V1alpha1VirtualMachineCloneSpec](docs/V1alpha1VirtualMachineCloneSpec.md) - [V1alpha1VirtualMachineCloneStatus](docs/V1alpha1VirtualMachineCloneStatus.md) - - [V1alpha1VirtualMachineClusterInstancetype](docs/V1alpha1VirtualMachineClusterInstancetype.md) - - [V1alpha1VirtualMachineClusterInstancetypeList](docs/V1alpha1VirtualMachineClusterInstancetypeList.md) - - [V1alpha1VirtualMachineClusterPreference](docs/V1alpha1VirtualMachineClusterPreference.md) - - [V1alpha1VirtualMachineClusterPreferenceList](docs/V1alpha1VirtualMachineClusterPreferenceList.md) - [V1alpha1VirtualMachineExport](docs/V1alpha1VirtualMachineExport.md) - [V1alpha1VirtualMachineExportLink](docs/V1alpha1VirtualMachineExportLink.md) - [V1alpha1VirtualMachineExportLinks](docs/V1alpha1VirtualMachineExportLinks.md) @@ -605,17 +593,11 @@ Class | Method | HTTP request | Description - [V1alpha1VirtualMachineExportStatus](docs/V1alpha1VirtualMachineExportStatus.md) - [V1alpha1VirtualMachineExportVolume](docs/V1alpha1VirtualMachineExportVolume.md) - [V1alpha1VirtualMachineExportVolumeFormat](docs/V1alpha1VirtualMachineExportVolumeFormat.md) - - [V1alpha1VirtualMachineInstancetype](docs/V1alpha1VirtualMachineInstancetype.md) - - [V1alpha1VirtualMachineInstancetypeList](docs/V1alpha1VirtualMachineInstancetypeList.md) - - [V1alpha1VirtualMachineInstancetypeSpec](docs/V1alpha1VirtualMachineInstancetypeSpec.md) - [V1alpha1VirtualMachinePool](docs/V1alpha1VirtualMachinePool.md) - [V1alpha1VirtualMachinePoolCondition](docs/V1alpha1VirtualMachinePoolCondition.md) - [V1alpha1VirtualMachinePoolList](docs/V1alpha1VirtualMachinePoolList.md) - [V1alpha1VirtualMachinePoolSpec](docs/V1alpha1VirtualMachinePoolSpec.md) - [V1alpha1VirtualMachinePoolStatus](docs/V1alpha1VirtualMachinePoolStatus.md) - - [V1alpha1VirtualMachinePreference](docs/V1alpha1VirtualMachinePreference.md) - - [V1alpha1VirtualMachinePreferenceList](docs/V1alpha1VirtualMachinePreferenceList.md) - - [V1alpha1VirtualMachinePreferenceSpec](docs/V1alpha1VirtualMachinePreferenceSpec.md) - [V1alpha1VirtualMachineRestore](docs/V1alpha1VirtualMachineRestore.md) - [V1alpha1VirtualMachineRestoreList](docs/V1alpha1VirtualMachineRestoreList.md) - [V1alpha1VirtualMachineRestoreSpec](docs/V1alpha1VirtualMachineRestoreSpec.md) @@ -632,6 +614,24 @@ Class | Method | HTTP request | Description - [V1alpha1VolumeBackup](docs/V1alpha1VolumeBackup.md) - [V1alpha1VolumeRestore](docs/V1alpha1VolumeRestore.md) - [V1alpha1VolumeSnapshotStatus](docs/V1alpha1VolumeSnapshotStatus.md) + - [V1alpha2CPUInstancetype](docs/V1alpha2CPUInstancetype.md) + - [V1alpha2CPUPreferences](docs/V1alpha2CPUPreferences.md) + - [V1alpha2ClockPreferences](docs/V1alpha2ClockPreferences.md) + - [V1alpha2DevicePreferences](docs/V1alpha2DevicePreferences.md) + - [V1alpha2FeaturePreferences](docs/V1alpha2FeaturePreferences.md) + - [V1alpha2FirmwarePreferences](docs/V1alpha2FirmwarePreferences.md) + - [V1alpha2MachinePreferences](docs/V1alpha2MachinePreferences.md) + - [V1alpha2MemoryInstancetype](docs/V1alpha2MemoryInstancetype.md) + - [V1alpha2VirtualMachineClusterInstancetype](docs/V1alpha2VirtualMachineClusterInstancetype.md) + - [V1alpha2VirtualMachineClusterInstancetypeList](docs/V1alpha2VirtualMachineClusterInstancetypeList.md) + - [V1alpha2VirtualMachineClusterPreference](docs/V1alpha2VirtualMachineClusterPreference.md) + - [V1alpha2VirtualMachineClusterPreferenceList](docs/V1alpha2VirtualMachineClusterPreferenceList.md) + - [V1alpha2VirtualMachineInstancetype](docs/V1alpha2VirtualMachineInstancetype.md) + - [V1alpha2VirtualMachineInstancetypeList](docs/V1alpha2VirtualMachineInstancetypeList.md) + - [V1alpha2VirtualMachineInstancetypeSpec](docs/V1alpha2VirtualMachineInstancetypeSpec.md) + - [V1alpha2VirtualMachinePreference](docs/V1alpha2VirtualMachinePreference.md) + - [V1alpha2VirtualMachinePreferenceList](docs/V1alpha2VirtualMachinePreferenceList.md) + - [V1alpha2VirtualMachinePreferenceSpec](docs/V1alpha2VirtualMachinePreferenceSpec.md) - [V1beta1DataVolumeBlankImage](docs/V1beta1DataVolumeBlankImage.md) - [V1beta1DataVolumeCheckpoint](docs/V1beta1DataVolumeCheckpoint.md) - [V1beta1DataVolumeSource](docs/V1beta1DataVolumeSource.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 72f264f1..0ced9a55 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -12,15 +12,15 @@ Method | HTTP request | Description [**create_namespaced_virtual_machine_instance_migration**](DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | [**create_namespaced_virtual_machine_instance_preset**](DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | [**create_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | -[**create_namespaced_virtual_machine_instancetype**](DefaultApi.md#create_namespaced_virtual_machine_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | +[**create_namespaced_virtual_machine_instancetype**](DefaultApi.md#create_namespaced_virtual_machine_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | [**create_namespaced_virtual_machine_pool**](DefaultApi.md#create_namespaced_virtual_machine_pool) | **POST** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -[**create_namespaced_virtual_machine_preference**](DefaultApi.md#create_namespaced_virtual_machine_preference) | **POST** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | +[**create_namespaced_virtual_machine_preference**](DefaultApi.md#create_namespaced_virtual_machine_preference) | **POST** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | [**create_namespaced_virtual_machine_restore**](DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**create_namespaced_virtual_machine_snapshot**](DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**create_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | [**create_virtual_machine_clone**](DefaultApi.md#create_virtual_machine_clone) | **POST** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | -[**create_virtual_machine_cluster_instancetype**](DefaultApi.md#create_virtual_machine_cluster_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes | -[**create_virtual_machine_cluster_preference**](DefaultApi.md#create_virtual_machine_cluster_preference) | **POST** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | +[**create_virtual_machine_cluster_instancetype**](DefaultApi.md#create_virtual_machine_cluster_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes | +[**create_virtual_machine_cluster_preference**](DefaultApi.md#create_virtual_machine_cluster_preference) | **POST** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences | [**delete_collection_migration_policy**](DefaultApi.md#delete_collection_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | [**delete_collection_namespaced_kube_virt**](DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | [**delete_collection_namespaced_virtual_machine**](DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | @@ -29,15 +29,15 @@ Method | HTTP request | Description [**delete_collection_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | [**delete_collection_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | -[**delete_collection_namespaced_virtual_machine_instancetype**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | +[**delete_collection_namespaced_virtual_machine_instancetype**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | [**delete_collection_namespaced_virtual_machine_pool**](DefaultApi.md#delete_collection_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -[**delete_collection_namespaced_virtual_machine_preference**](DefaultApi.md#delete_collection_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | +[**delete_collection_namespaced_virtual_machine_preference**](DefaultApi.md#delete_collection_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | [**delete_collection_namespaced_virtual_machine_restore**](DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**delete_collection_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**delete_collection_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | [**delete_collection_virtual_machine_clone**](DefaultApi.md#delete_collection_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | -[**delete_collection_virtual_machine_cluster_instancetype**](DefaultApi.md#delete_collection_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes | -[**delete_collection_virtual_machine_cluster_preference**](DefaultApi.md#delete_collection_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | +[**delete_collection_virtual_machine_cluster_instancetype**](DefaultApi.md#delete_collection_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes | +[**delete_collection_virtual_machine_cluster_preference**](DefaultApi.md#delete_collection_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences | [**delete_migration_policy**](DefaultApi.md#delete_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_kube_virt**](DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine**](DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | @@ -46,15 +46,15 @@ Method | HTTP request | Description [**delete_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_namespaced_virtual_machine_instancetype**](DefaultApi.md#delete_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_namespaced_virtual_machine_instancetype**](DefaultApi.md#delete_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_pool**](DefaultApi.md#delete_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_namespaced_virtual_machine_preference**](DefaultApi.md#delete_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_namespaced_virtual_machine_preference**](DefaultApi.md#delete_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_restore**](DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**delete_virtual_machine_clone**](DefaultApi.md#delete_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_virtual_machine_cluster_instancetype**](DefaultApi.md#delete_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_virtual_machine_cluster_preference**](DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_virtual_machine_cluster_instancetype**](DefaultApi.md#delete_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_virtual_machine_cluster_preference**](DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | [**func1**](DefaultApi.md#func1) | **GET** /healthz | [**func7**](DefaultApi.md#func7) | **GET** /openapi/v2 | [**get_api_group_clone_kubevirt_io**](DefaultApi.md#get_api_group_clone_kubevirt_io) | **GET** /apis/clone.kubevirt.io/ | @@ -67,7 +67,7 @@ Method | HTTP request | Description [**get_api_group_snapshot_kubevirt_io**](DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | [**get_api_resources_clone_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_clone_kubevirt_io_v1alpha1) | **GET** /apis/clone.kubevirt.io/v1alpha1/ | [**get_api_resources_export_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_export_kubevirt_io_v1alpha1) | **GET** /apis/export.kubevirt.io/v1alpha1/ | -[**get_api_resources_instancetype_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_instancetype_kubevirt_io_v1alpha1) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/ | +[**get_api_resources_instancetype_kubevirt_io_v1alpha2**](DefaultApi.md#get_api_resources_instancetype_kubevirt_io_v1alpha2) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/ | [**get_api_resources_kubevirt_io_v1**](DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | [**get_api_resources_migrations_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_migrations_kubevirt_io_v1alpha1) | **GET** /apis/migrations.kubevirt.io/v1alpha1/ | [**get_api_resources_pool_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_pool_kubevirt_io_v1alpha1) | **GET** /apis/pool.kubevirt.io/v1alpha1/ | @@ -85,24 +85,24 @@ Method | HTTP request | Description [**list_namespaced_virtual_machine_instance_migration**](DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | [**list_namespaced_virtual_machine_instance_preset**](DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | [**list_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | -[**list_namespaced_virtual_machine_instancetype**](DefaultApi.md#list_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | +[**list_namespaced_virtual_machine_instancetype**](DefaultApi.md#list_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | [**list_namespaced_virtual_machine_pool**](DefaultApi.md#list_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -[**list_namespaced_virtual_machine_preference**](DefaultApi.md#list_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | +[**list_namespaced_virtual_machine_preference**](DefaultApi.md#list_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | [**list_namespaced_virtual_machine_restore**](DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**list_namespaced_virtual_machine_snapshot**](DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**list_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | [**list_virtual_machine_clone**](DefaultApi.md#list_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | -[**list_virtual_machine_cluster_instancetype**](DefaultApi.md#list_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes | -[**list_virtual_machine_cluster_preference**](DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences | +[**list_virtual_machine_cluster_instancetype**](DefaultApi.md#list_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes | +[**list_virtual_machine_cluster_preference**](DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences | [**list_virtual_machine_export_for_all_namespaces**](DefaultApi.md#list_virtual_machine_export_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1alpha1/virtualmachineexports | [**list_virtual_machine_for_all_namespaces**](DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachines | [**list_virtual_machine_instance_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstances | [**list_virtual_machine_instance_migration_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancemigrations | [**list_virtual_machine_instance_preset_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancepresets | [**list_virtual_machine_instance_replica_set_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancereplicasets | -[**list_virtual_machine_instancetype_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instancetype_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineinstancetypes | +[**list_virtual_machine_instancetype_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instancetype_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineinstancetypes | [**list_virtual_machine_pool_for_all_namespaces**](DefaultApi.md#list_virtual_machine_pool_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/virtualmachinepools | -[**list_virtual_machine_preference_for_all_namespaces**](DefaultApi.md#list_virtual_machine_preference_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachinepreferences | +[**list_virtual_machine_preference_for_all_namespaces**](DefaultApi.md#list_virtual_machine_preference_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachinepreferences | [**list_virtual_machine_restore_for_all_namespaces**](DefaultApi.md#list_virtual_machine_restore_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores | [**list_virtual_machine_snapshot_content_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents | [**list_virtual_machine_snapshot_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots | @@ -114,15 +114,15 @@ Method | HTTP request | Description [**patch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_namespaced_virtual_machine_instancetype**](DefaultApi.md#patch_namespaced_virtual_machine_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_namespaced_virtual_machine_instancetype**](DefaultApi.md#patch_namespaced_virtual_machine_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_pool**](DefaultApi.md#patch_namespaced_virtual_machine_pool) | **PATCH** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_namespaced_virtual_machine_preference**](DefaultApi.md#patch_namespaced_virtual_machine_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_namespaced_virtual_machine_preference**](DefaultApi.md#patch_namespaced_virtual_machine_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_restore**](DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_snapshot**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**patch_virtual_machine_clone**](DefaultApi.md#patch_virtual_machine_clone) | **PATCH** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_virtual_machine_cluster_instancetype**](DefaultApi.md#patch_virtual_machine_cluster_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_virtual_machine_cluster_preference**](DefaultApi.md#patch_virtual_machine_cluster_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_virtual_machine_cluster_instancetype**](DefaultApi.md#patch_virtual_machine_cluster_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_virtual_machine_cluster_preference**](DefaultApi.md#patch_virtual_machine_cluster_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | [**read_migration_policy**](DefaultApi.md#read_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_kube_virt**](DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine**](DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | @@ -131,15 +131,15 @@ Method | HTTP request | Description [**read_namespaced_virtual_machine_instance_migration**](DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_instance_preset**](DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | -[**read_namespaced_virtual_machine_instancetype**](DefaultApi.md#read_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +[**read_namespaced_virtual_machine_instancetype**](DefaultApi.md#read_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_pool**](DefaultApi.md#read_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -[**read_namespaced_virtual_machine_preference**](DefaultApi.md#read_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | +[**read_namespaced_virtual_machine_preference**](DefaultApi.md#read_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_restore**](DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_snapshot**](DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**read_virtual_machine_clone**](DefaultApi.md#read_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -[**read_virtual_machine_cluster_instancetype**](DefaultApi.md#read_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -[**read_virtual_machine_cluster_preference**](DefaultApi.md#read_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | +[**read_virtual_machine_cluster_instancetype**](DefaultApi.md#read_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +[**read_virtual_machine_cluster_preference**](DefaultApi.md#read_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | [**replace_migration_policy**](DefaultApi.md#replace_migration_policy) | **PUT** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_kube_virt**](DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine**](DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | @@ -148,15 +148,15 @@ Method | HTTP request | Description [**replace_namespaced_virtual_machine_instance_migration**](DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_instance_preset**](DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_namespaced_virtual_machine_instancetype**](DefaultApi.md#replace_namespaced_virtual_machine_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_namespaced_virtual_machine_instancetype**](DefaultApi.md#replace_namespaced_virtual_machine_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_pool**](DefaultApi.md#replace_namespaced_virtual_machine_pool) | **PUT** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_namespaced_virtual_machine_preference**](DefaultApi.md#replace_namespaced_virtual_machine_preference) | **PUT** /apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_namespaced_virtual_machine_preference**](DefaultApi.md#replace_namespaced_virtual_machine_preference) | **PUT** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_restore**](DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_snapshot**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**replace_virtual_machine_clone**](DefaultApi.md#replace_virtual_machine_clone) | **PUT** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_virtual_machine_cluster_instancetype**](DefaultApi.md#replace_virtual_machine_cluster_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_virtual_machine_cluster_preference**](DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_virtual_machine_cluster_instancetype**](DefaultApi.md#replace_virtual_machine_cluster_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_virtual_machine_cluster_preference**](DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | [**v1_check_health**](DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | [**v1_console**](DefaultApi.md#v1_console) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | [**v1_expand_spec**](DefaultApi.md#v1_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1/expand-spec | @@ -239,24 +239,24 @@ Method | HTTP request | Description [**watch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | [**watch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | [**watch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | -[**watch_namespaced_virtual_machine_instancetype**](DefaultApi.md#watch_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | +[**watch_namespaced_virtual_machine_instancetype**](DefaultApi.md#watch_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | [**watch_namespaced_virtual_machine_pool**](DefaultApi.md#watch_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -[**watch_namespaced_virtual_machine_preference**](DefaultApi.md#watch_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | +[**watch_namespaced_virtual_machine_preference**](DefaultApi.md#watch_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | [**watch_namespaced_virtual_machine_restore**](DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**watch_namespaced_virtual_machine_snapshot**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**watch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | [**watch_virtual_machine_clone_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_clone_list_for_all_namespaces) | **GET** /apis/clone.kubevirt.io/v1alpha1/watch/virtualmachineclones | -[**watch_virtual_machine_cluster_instancetype_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/watch/virtualmachineclusterinstancetypes | -[**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/watch/virtualmachineclusterpreferences | +[**watch_virtual_machine_cluster_instancetype_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/watch/virtualmachineclusterinstancetypes | +[**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/watch/virtualmachineclusterpreferences | [**watch_virtual_machine_export_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_export_list_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1alpha1/watch/virtualmachineexports | [**watch_virtual_machine_instance_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstances | [**watch_virtual_machine_instance_migration_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancemigrations | [**watch_virtual_machine_instance_preset_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancepresets | [**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancereplicasets | -[**watch_virtual_machine_instancetype_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/watch/virtualmachineinstancetypes | +[**watch_virtual_machine_instancetype_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/watch/virtualmachineinstancetypes | [**watch_virtual_machine_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachines | [**watch_virtual_machine_pool_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_pool_list_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/virtualmachinepools | -[**watch_virtual_machine_preference_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha1/watch/virtualmachinepreferences | +[**watch_virtual_machine_preference_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/watch/virtualmachinepreferences | [**watch_virtual_machine_restore_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_restore_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinerestores | [**watch_virtual_machine_snapshot_content_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_snapshot_content_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshotcontents | [**watch_virtual_machine_snapshot_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_snapshot_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshots | @@ -653,7 +653,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_virtual_machine_instancetype** -> V1alpha1VirtualMachineInstancetype create_namespaced_virtual_machine_instancetype(body, namespace) +> V1alpha2VirtualMachineInstancetype create_namespaced_virtual_machine_instancetype(body, namespace) @@ -669,7 +669,7 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1alpha1VirtualMachineInstancetype() # V1alpha1VirtualMachineInstancetype | +body = kubevirt.V1alpha2VirtualMachineInstancetype() # V1alpha2VirtualMachineInstancetype | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: @@ -683,12 +683,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1VirtualMachineInstancetype**](V1alpha1VirtualMachineInstancetype.md)| | + **body** | [**V1alpha2VirtualMachineInstancetype**](V1alpha2VirtualMachineInstancetype.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1alpha1VirtualMachineInstancetype**](V1alpha1VirtualMachineInstancetype.md) +[**V1alpha2VirtualMachineInstancetype**](V1alpha2VirtualMachineInstancetype.md) ### Authorization @@ -751,7 +751,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_virtual_machine_preference** -> V1alpha1VirtualMachinePreference create_namespaced_virtual_machine_preference(body, namespace) +> V1alpha2VirtualMachinePreference create_namespaced_virtual_machine_preference(body, namespace) @@ -767,7 +767,7 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1alpha1VirtualMachinePreference() # V1alpha1VirtualMachinePreference | +body = kubevirt.V1alpha2VirtualMachinePreference() # V1alpha2VirtualMachinePreference | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: @@ -781,12 +781,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1VirtualMachinePreference**](V1alpha1VirtualMachinePreference.md)| | + **body** | [**V1alpha2VirtualMachinePreference**](V1alpha2VirtualMachinePreference.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1alpha1VirtualMachinePreference**](V1alpha1VirtualMachinePreference.md) +[**V1alpha2VirtualMachinePreference**](V1alpha2VirtualMachinePreference.md) ### Authorization @@ -994,7 +994,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_virtual_machine_cluster_instancetype** -> V1alpha1VirtualMachineClusterInstancetype create_virtual_machine_cluster_instancetype(body) +> V1alpha2VirtualMachineClusterInstancetype create_virtual_machine_cluster_instancetype(body) @@ -1010,7 +1010,7 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1alpha1VirtualMachineClusterInstancetype() # V1alpha1VirtualMachineClusterInstancetype | +body = kubevirt.V1alpha2VirtualMachineClusterInstancetype() # V1alpha2VirtualMachineClusterInstancetype | try: api_response = api_instance.create_virtual_machine_cluster_instancetype(body) @@ -1023,11 +1023,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1VirtualMachineClusterInstancetype**](V1alpha1VirtualMachineClusterInstancetype.md)| | + **body** | [**V1alpha2VirtualMachineClusterInstancetype**](V1alpha2VirtualMachineClusterInstancetype.md)| | ### Return type -[**V1alpha1VirtualMachineClusterInstancetype**](V1alpha1VirtualMachineClusterInstancetype.md) +[**V1alpha2VirtualMachineClusterInstancetype**](V1alpha2VirtualMachineClusterInstancetype.md) ### Authorization @@ -1041,7 +1041,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_virtual_machine_cluster_preference** -> V1alpha1VirtualMachineClusterPreference create_virtual_machine_cluster_preference(body) +> V1alpha2VirtualMachineClusterPreference create_virtual_machine_cluster_preference(body) @@ -1057,7 +1057,7 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1alpha1VirtualMachineClusterPreference() # V1alpha1VirtualMachineClusterPreference | +body = kubevirt.V1alpha2VirtualMachineClusterPreference() # V1alpha2VirtualMachineClusterPreference | try: api_response = api_instance.create_virtual_machine_cluster_preference(body) @@ -1070,11 +1070,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1VirtualMachineClusterPreference**](V1alpha1VirtualMachineClusterPreference.md)| | + **body** | [**V1alpha2VirtualMachineClusterPreference**](V1alpha2VirtualMachineClusterPreference.md)| | ### Return type -[**V1alpha1VirtualMachineClusterPreference**](V1alpha1VirtualMachineClusterPreference.md) +[**V1alpha2VirtualMachineClusterPreference**](V1alpha2VirtualMachineClusterPreference.md) ### Authorization @@ -3597,8 +3597,8 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_api_resources_instancetype_kubevirt_io_v1alpha1** -> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_instancetype_kubevirt_io_v1alpha1() +# **get_api_resources_instancetype_kubevirt_io_v1alpha2** +> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_instancetype_kubevirt_io_v1alpha2() @@ -3616,10 +3616,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() try: - api_response = api_instance.get_api_resources_instancetype_kubevirt_io_v1alpha1() + api_response = api_instance.get_api_resources_instancetype_kubevirt_io_v1alpha2() pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->get_api_resources_instancetype_kubevirt_io_v1alpha1: %s\n" % e) + print("Exception when calling DefaultApi->get_api_resources_instancetype_kubevirt_io_v1alpha2: %s\n" % e) ``` ### Parameters @@ -4545,7 +4545,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_virtual_machine_instancetype** -> V1alpha1VirtualMachineInstancetypeList list_namespaced_virtual_machine_instancetype(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1alpha2VirtualMachineInstancetypeList list_namespaced_virtual_machine_instancetype(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -4594,7 +4594,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineInstancetypeList**](V1alpha1VirtualMachineInstancetypeList.md) +[**V1alpha2VirtualMachineInstancetypeList**](V1alpha2VirtualMachineInstancetypeList.md) ### Authorization @@ -4671,7 +4671,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_virtual_machine_preference** -> V1alpha1VirtualMachinePreferenceList list_namespaced_virtual_machine_preference(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1alpha2VirtualMachinePreferenceList list_namespaced_virtual_machine_preference(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -4720,7 +4720,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachinePreferenceList**](V1alpha1VirtualMachinePreferenceList.md) +[**V1alpha2VirtualMachinePreferenceList**](V1alpha2VirtualMachinePreferenceList.md) ### Authorization @@ -4984,7 +4984,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_virtual_machine_cluster_instancetype** -> V1alpha1VirtualMachineClusterInstancetypeList list_virtual_machine_cluster_instancetype(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1alpha2VirtualMachineClusterInstancetypeList list_virtual_machine_cluster_instancetype(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -5031,7 +5031,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineClusterInstancetypeList**](V1alpha1VirtualMachineClusterInstancetypeList.md) +[**V1alpha2VirtualMachineClusterInstancetypeList**](V1alpha2VirtualMachineClusterInstancetypeList.md) ### Authorization @@ -5045,7 +5045,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_virtual_machine_cluster_preference** -> V1alpha1VirtualMachineClusterPreferenceList list_virtual_machine_cluster_preference(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1alpha2VirtualMachineClusterPreferenceList list_virtual_machine_cluster_preference(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -5092,7 +5092,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineClusterPreferenceList**](V1alpha1VirtualMachineClusterPreferenceList.md) +[**V1alpha2VirtualMachineClusterPreferenceList**](V1alpha2VirtualMachineClusterPreferenceList.md) ### Authorization @@ -5472,7 +5472,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_virtual_machine_instancetype_for_all_namespaces** -> V1alpha1VirtualMachineInstancetypeList list_virtual_machine_instancetype_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1alpha2VirtualMachineInstancetypeList list_virtual_machine_instancetype_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -5519,7 +5519,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineInstancetypeList**](V1alpha1VirtualMachineInstancetypeList.md) +[**V1alpha2VirtualMachineInstancetypeList**](V1alpha2VirtualMachineInstancetypeList.md) ### Authorization @@ -5594,7 +5594,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_virtual_machine_preference_for_all_namespaces** -> V1alpha1VirtualMachinePreferenceList list_virtual_machine_preference_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1alpha2VirtualMachinePreferenceList list_virtual_machine_preference_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -5641,7 +5641,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachinePreferenceList**](V1alpha1VirtualMachinePreferenceList.md) +[**V1alpha2VirtualMachinePreferenceList**](V1alpha2VirtualMachinePreferenceList.md) ### Authorization @@ -6244,7 +6244,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_virtual_machine_instancetype** -> V1alpha1VirtualMachineInstancetype patch_namespaced_virtual_machine_instancetype(name, namespace, body) +> V1alpha2VirtualMachineInstancetype patch_namespaced_virtual_machine_instancetype(name, namespace, body) @@ -6281,7 +6281,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineInstancetype**](V1alpha1VirtualMachineInstancetype.md) +[**V1alpha2VirtualMachineInstancetype**](V1alpha2VirtualMachineInstancetype.md) ### Authorization @@ -6346,7 +6346,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_virtual_machine_preference** -> V1alpha1VirtualMachinePreference patch_namespaced_virtual_machine_preference(name, namespace, body) +> V1alpha2VirtualMachinePreference patch_namespaced_virtual_machine_preference(name, namespace, body) @@ -6383,7 +6383,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachinePreference**](V1alpha1VirtualMachinePreference.md) +[**V1alpha2VirtualMachinePreference**](V1alpha2VirtualMachinePreference.md) ### Authorization @@ -6599,7 +6599,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_virtual_machine_cluster_instancetype** -> V1alpha1VirtualMachineClusterInstancetype patch_virtual_machine_cluster_instancetype(name, body) +> V1alpha2VirtualMachineClusterInstancetype patch_virtual_machine_cluster_instancetype(name, body) @@ -6634,7 +6634,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineClusterInstancetype**](V1alpha1VirtualMachineClusterInstancetype.md) +[**V1alpha2VirtualMachineClusterInstancetype**](V1alpha2VirtualMachineClusterInstancetype.md) ### Authorization @@ -6648,7 +6648,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_virtual_machine_cluster_preference** -> V1alpha1VirtualMachineClusterPreference patch_virtual_machine_cluster_preference(name, body) +> V1alpha2VirtualMachineClusterPreference patch_virtual_machine_cluster_preference(name, body) @@ -6683,7 +6683,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineClusterPreference**](V1alpha1VirtualMachineClusterPreference.md) +[**V1alpha2VirtualMachineClusterPreference**](V1alpha2VirtualMachineClusterPreference.md) ### Authorization @@ -7119,7 +7119,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_virtual_machine_instancetype** -> V1alpha1VirtualMachineInstancetype read_namespaced_virtual_machine_instancetype(name, namespace, exact=exact, export=export) +> V1alpha2VirtualMachineInstancetype read_namespaced_virtual_machine_instancetype(name, namespace, exact=exact, export=export) @@ -7158,7 +7158,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineInstancetype**](V1alpha1VirtualMachineInstancetype.md) +[**V1alpha2VirtualMachineInstancetype**](V1alpha2VirtualMachineInstancetype.md) ### Authorization @@ -7225,7 +7225,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_virtual_machine_preference** -> V1alpha1VirtualMachinePreference read_namespaced_virtual_machine_preference(name, namespace, exact=exact, export=export) +> V1alpha2VirtualMachinePreference read_namespaced_virtual_machine_preference(name, namespace, exact=exact, export=export) @@ -7264,7 +7264,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachinePreference**](V1alpha1VirtualMachinePreference.md) +[**V1alpha2VirtualMachinePreference**](V1alpha2VirtualMachinePreference.md) ### Authorization @@ -7488,7 +7488,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_virtual_machine_cluster_instancetype** -> V1alpha1VirtualMachineClusterInstancetype read_virtual_machine_cluster_instancetype(name, exact=exact, export=export) +> V1alpha2VirtualMachineClusterInstancetype read_virtual_machine_cluster_instancetype(name, exact=exact, export=export) @@ -7525,7 +7525,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineClusterInstancetype**](V1alpha1VirtualMachineClusterInstancetype.md) +[**V1alpha2VirtualMachineClusterInstancetype**](V1alpha2VirtualMachineClusterInstancetype.md) ### Authorization @@ -7539,7 +7539,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_virtual_machine_cluster_preference** -> V1alpha1VirtualMachineClusterPreference read_virtual_machine_cluster_preference(name, exact=exact, export=export) +> V1alpha2VirtualMachineClusterPreference read_virtual_machine_cluster_preference(name, exact=exact, export=export) @@ -7576,7 +7576,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineClusterPreference**](V1alpha1VirtualMachineClusterPreference.md) +[**V1alpha2VirtualMachineClusterPreference**](V1alpha2VirtualMachineClusterPreference.md) ### Authorization @@ -7996,7 +7996,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_virtual_machine_instancetype** -> V1alpha1VirtualMachineInstancetype replace_namespaced_virtual_machine_instancetype(name, namespace, body) +> V1alpha2VirtualMachineInstancetype replace_namespaced_virtual_machine_instancetype(name, namespace, body) @@ -8014,7 +8014,7 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1alpha1VirtualMachineInstancetype() # V1alpha1VirtualMachineInstancetype | +body = kubevirt.V1alpha2VirtualMachineInstancetype() # V1alpha2VirtualMachineInstancetype | try: api_response = api_instance.replace_namespaced_virtual_machine_instancetype(name, namespace, body) @@ -8029,11 +8029,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1alpha1VirtualMachineInstancetype**](V1alpha1VirtualMachineInstancetype.md)| | + **body** | [**V1alpha2VirtualMachineInstancetype**](V1alpha2VirtualMachineInstancetype.md)| | ### Return type -[**V1alpha1VirtualMachineInstancetype**](V1alpha1VirtualMachineInstancetype.md) +[**V1alpha2VirtualMachineInstancetype**](V1alpha2VirtualMachineInstancetype.md) ### Authorization @@ -8098,7 +8098,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_virtual_machine_preference** -> V1alpha1VirtualMachinePreference replace_namespaced_virtual_machine_preference(name, namespace, body) +> V1alpha2VirtualMachinePreference replace_namespaced_virtual_machine_preference(name, namespace, body) @@ -8116,7 +8116,7 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1alpha1VirtualMachinePreference() # V1alpha1VirtualMachinePreference | +body = kubevirt.V1alpha2VirtualMachinePreference() # V1alpha2VirtualMachinePreference | try: api_response = api_instance.replace_namespaced_virtual_machine_preference(name, namespace, body) @@ -8131,11 +8131,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1alpha1VirtualMachinePreference**](V1alpha1VirtualMachinePreference.md)| | + **body** | [**V1alpha2VirtualMachinePreference**](V1alpha2VirtualMachinePreference.md)| | ### Return type -[**V1alpha1VirtualMachinePreference**](V1alpha1VirtualMachinePreference.md) +[**V1alpha2VirtualMachinePreference**](V1alpha2VirtualMachinePreference.md) ### Authorization @@ -8351,7 +8351,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_virtual_machine_cluster_instancetype** -> V1alpha1VirtualMachineClusterInstancetype replace_virtual_machine_cluster_instancetype(name, body) +> V1alpha2VirtualMachineClusterInstancetype replace_virtual_machine_cluster_instancetype(name, body) @@ -8368,7 +8368,7 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource -body = kubevirt.V1alpha1VirtualMachineClusterInstancetype() # V1alpha1VirtualMachineClusterInstancetype | +body = kubevirt.V1alpha2VirtualMachineClusterInstancetype() # V1alpha2VirtualMachineClusterInstancetype | try: api_response = api_instance.replace_virtual_machine_cluster_instancetype(name, body) @@ -8382,11 +8382,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | - **body** | [**V1alpha1VirtualMachineClusterInstancetype**](V1alpha1VirtualMachineClusterInstancetype.md)| | + **body** | [**V1alpha2VirtualMachineClusterInstancetype**](V1alpha2VirtualMachineClusterInstancetype.md)| | ### Return type -[**V1alpha1VirtualMachineClusterInstancetype**](V1alpha1VirtualMachineClusterInstancetype.md) +[**V1alpha2VirtualMachineClusterInstancetype**](V1alpha2VirtualMachineClusterInstancetype.md) ### Authorization @@ -8400,7 +8400,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_virtual_machine_cluster_preference** -> V1alpha1VirtualMachineClusterPreference replace_virtual_machine_cluster_preference(name, body) +> V1alpha2VirtualMachineClusterPreference replace_virtual_machine_cluster_preference(name, body) @@ -8417,7 +8417,7 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource -body = kubevirt.V1alpha1VirtualMachineClusterPreference() # V1alpha1VirtualMachineClusterPreference | +body = kubevirt.V1alpha2VirtualMachineClusterPreference() # V1alpha2VirtualMachineClusterPreference | try: api_response = api_instance.replace_virtual_machine_cluster_preference(name, body) @@ -8431,11 +8431,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | - **body** | [**V1alpha1VirtualMachineClusterPreference**](V1alpha1VirtualMachineClusterPreference.md)| | + **body** | [**V1alpha2VirtualMachineClusterPreference**](V1alpha2VirtualMachineClusterPreference.md)| | ### Return type -[**V1alpha1VirtualMachineClusterPreference**](V1alpha1VirtualMachineClusterPreference.md) +[**V1alpha2VirtualMachineClusterPreference**](V1alpha2VirtualMachineClusterPreference.md) ### Authorization diff --git a/docs/V1alpha1CPUInstancetype.md b/docs/V1alpha2CPUInstancetype.md similarity index 98% rename from docs/V1alpha1CPUInstancetype.md rename to docs/V1alpha2CPUInstancetype.md index 074755b7..5c8aa524 100644 --- a/docs/V1alpha1CPUInstancetype.md +++ b/docs/V1alpha2CPUInstancetype.md @@ -1,4 +1,4 @@ -# V1alpha1CPUInstancetype +# V1alpha2CPUInstancetype ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1CPUPreferences.md b/docs/V1alpha2CPUPreferences.md similarity index 94% rename from docs/V1alpha1CPUPreferences.md rename to docs/V1alpha2CPUPreferences.md index df9696eb..a7423c7b 100644 --- a/docs/V1alpha1CPUPreferences.md +++ b/docs/V1alpha2CPUPreferences.md @@ -1,4 +1,4 @@ -# V1alpha1CPUPreferences +# V1alpha2CPUPreferences ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1ClockPreferences.md b/docs/V1alpha2ClockPreferences.md similarity index 95% rename from docs/V1alpha1ClockPreferences.md rename to docs/V1alpha2ClockPreferences.md index aa9b70a7..c5a67c05 100644 --- a/docs/V1alpha1ClockPreferences.md +++ b/docs/V1alpha2ClockPreferences.md @@ -1,4 +1,4 @@ -# V1alpha1ClockPreferences +# V1alpha2ClockPreferences ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1DevicePreferences.md b/docs/V1alpha2DevicePreferences.md similarity index 99% rename from docs/V1alpha1DevicePreferences.md rename to docs/V1alpha2DevicePreferences.md index 30750b37..69e43954 100644 --- a/docs/V1alpha1DevicePreferences.md +++ b/docs/V1alpha2DevicePreferences.md @@ -1,4 +1,4 @@ -# V1alpha1DevicePreferences +# V1alpha2DevicePreferences ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1FeaturePreferences.md b/docs/V1alpha2FeaturePreferences.md similarity index 97% rename from docs/V1alpha1FeaturePreferences.md rename to docs/V1alpha2FeaturePreferences.md index 7c06abe7..ed98088e 100644 --- a/docs/V1alpha1FeaturePreferences.md +++ b/docs/V1alpha2FeaturePreferences.md @@ -1,4 +1,4 @@ -# V1alpha1FeaturePreferences +# V1alpha2FeaturePreferences ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1FirmwarePreferences.md b/docs/V1alpha2FirmwarePreferences.md similarity index 96% rename from docs/V1alpha1FirmwarePreferences.md rename to docs/V1alpha2FirmwarePreferences.md index 6dd4f793..ed115e69 100644 --- a/docs/V1alpha1FirmwarePreferences.md +++ b/docs/V1alpha2FirmwarePreferences.md @@ -1,4 +1,4 @@ -# V1alpha1FirmwarePreferences +# V1alpha2FirmwarePreferences ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1MachinePreferences.md b/docs/V1alpha2MachinePreferences.md similarity index 93% rename from docs/V1alpha1MachinePreferences.md rename to docs/V1alpha2MachinePreferences.md index 4abd2343..b1cd3ade 100644 --- a/docs/V1alpha1MachinePreferences.md +++ b/docs/V1alpha2MachinePreferences.md @@ -1,4 +1,4 @@ -# V1alpha1MachinePreferences +# V1alpha2MachinePreferences ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1MemoryInstancetype.md b/docs/V1alpha2MemoryInstancetype.md similarity index 95% rename from docs/V1alpha1MemoryInstancetype.md rename to docs/V1alpha2MemoryInstancetype.md index 6b75d341..681f3f91 100644 --- a/docs/V1alpha1MemoryInstancetype.md +++ b/docs/V1alpha2MemoryInstancetype.md @@ -1,4 +1,4 @@ -# V1alpha1MemoryInstancetype +# V1alpha2MemoryInstancetype ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1VirtualMachineClusterInstancetype.md b/docs/V1alpha2VirtualMachineClusterInstancetype.md similarity index 91% rename from docs/V1alpha1VirtualMachineClusterInstancetype.md rename to docs/V1alpha2VirtualMachineClusterInstancetype.md index 21fd852c..bb8480b5 100644 --- a/docs/V1alpha1VirtualMachineClusterInstancetype.md +++ b/docs/V1alpha2VirtualMachineClusterInstancetype.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachineClusterInstancetype +# V1alpha2VirtualMachineClusterInstancetype ## Properties Name | Type | Description | Notes @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1VirtualMachineInstancetypeSpec**](V1alpha1VirtualMachineInstancetypeSpec.md) | Required spec describing the instancetype | +**spec** | [**V1alpha2VirtualMachineInstancetypeSpec**](V1alpha2VirtualMachineInstancetypeSpec.md) | Required spec describing the instancetype | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineClusterInstancetypeList.md b/docs/V1alpha2VirtualMachineClusterInstancetypeList.md similarity index 86% rename from docs/V1alpha1VirtualMachineClusterInstancetypeList.md rename to docs/V1alpha2VirtualMachineClusterInstancetypeList.md index 0daad305..ec5cbf52 100644 --- a/docs/V1alpha1VirtualMachineClusterInstancetypeList.md +++ b/docs/V1alpha2VirtualMachineClusterInstancetypeList.md @@ -1,10 +1,10 @@ -# V1alpha1VirtualMachineClusterInstancetypeList +# V1alpha2VirtualMachineClusterInstancetypeList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**list[V1alpha1VirtualMachineClusterInstancetype]**](V1alpha1VirtualMachineClusterInstancetype.md) | | +**items** | [**list[V1alpha2VirtualMachineClusterInstancetype]**](V1alpha2VirtualMachineClusterInstancetype.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [optional] diff --git a/docs/V1alpha1VirtualMachineClusterPreference.md b/docs/V1alpha2VirtualMachineClusterPreference.md similarity index 91% rename from docs/V1alpha1VirtualMachineClusterPreference.md rename to docs/V1alpha2VirtualMachineClusterPreference.md index e9fcf6c8..71c39dec 100644 --- a/docs/V1alpha1VirtualMachineClusterPreference.md +++ b/docs/V1alpha2VirtualMachineClusterPreference.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachineClusterPreference +# V1alpha2VirtualMachineClusterPreference ## Properties Name | Type | Description | Notes @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1VirtualMachinePreferenceSpec**](V1alpha1VirtualMachinePreferenceSpec.md) | Required spec describing the preferences | +**spec** | [**V1alpha2VirtualMachinePreferenceSpec**](V1alpha2VirtualMachinePreferenceSpec.md) | Required spec describing the preferences | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineClusterPreferenceList.md b/docs/V1alpha2VirtualMachineClusterPreferenceList.md similarity index 86% rename from docs/V1alpha1VirtualMachineClusterPreferenceList.md rename to docs/V1alpha2VirtualMachineClusterPreferenceList.md index fcbaf39c..577077a8 100644 --- a/docs/V1alpha1VirtualMachineClusterPreferenceList.md +++ b/docs/V1alpha2VirtualMachineClusterPreferenceList.md @@ -1,10 +1,10 @@ -# V1alpha1VirtualMachineClusterPreferenceList +# V1alpha2VirtualMachineClusterPreferenceList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**list[V1alpha1VirtualMachineClusterPreference]**](V1alpha1VirtualMachineClusterPreference.md) | | +**items** | [**list[V1alpha2VirtualMachineClusterPreference]**](V1alpha2VirtualMachineClusterPreference.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [optional] diff --git a/docs/V1alpha1VirtualMachineInstancetype.md b/docs/V1alpha2VirtualMachineInstancetype.md similarity index 91% rename from docs/V1alpha1VirtualMachineInstancetype.md rename to docs/V1alpha2VirtualMachineInstancetype.md index 2b7d7d6f..22c79949 100644 --- a/docs/V1alpha1VirtualMachineInstancetype.md +++ b/docs/V1alpha2VirtualMachineInstancetype.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachineInstancetype +# V1alpha2VirtualMachineInstancetype ## Properties Name | Type | Description | Notes @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1VirtualMachineInstancetypeSpec**](V1alpha1VirtualMachineInstancetypeSpec.md) | Required spec describing the instancetype | +**spec** | [**V1alpha2VirtualMachineInstancetypeSpec**](V1alpha2VirtualMachineInstancetypeSpec.md) | Required spec describing the instancetype | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineInstancetypeList.md b/docs/V1alpha2VirtualMachineInstancetypeList.md similarity index 87% rename from docs/V1alpha1VirtualMachineInstancetypeList.md rename to docs/V1alpha2VirtualMachineInstancetypeList.md index ee050ade..473c4c6e 100644 --- a/docs/V1alpha1VirtualMachineInstancetypeList.md +++ b/docs/V1alpha2VirtualMachineInstancetypeList.md @@ -1,10 +1,10 @@ -# V1alpha1VirtualMachineInstancetypeList +# V1alpha2VirtualMachineInstancetypeList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**list[V1alpha1VirtualMachineInstancetype]**](V1alpha1VirtualMachineInstancetype.md) | | +**items** | [**list[V1alpha2VirtualMachineInstancetype]**](V1alpha2VirtualMachineInstancetype.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [optional] diff --git a/docs/V1alpha1VirtualMachineInstancetypeSpec.md b/docs/V1alpha2VirtualMachineInstancetypeSpec.md similarity index 84% rename from docs/V1alpha1VirtualMachineInstancetypeSpec.md rename to docs/V1alpha2VirtualMachineInstancetypeSpec.md index 89c5d676..d512262c 100644 --- a/docs/V1alpha1VirtualMachineInstancetypeSpec.md +++ b/docs/V1alpha2VirtualMachineInstancetypeSpec.md @@ -1,14 +1,14 @@ -# V1alpha1VirtualMachineInstancetypeSpec +# V1alpha2VirtualMachineInstancetypeSpec ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cpu** | [**V1alpha1CPUInstancetype**](V1alpha1CPUInstancetype.md) | Required CPU related attributes of the instancetype. | +**cpu** | [**V1alpha2CPUInstancetype**](V1alpha2CPUInstancetype.md) | Required CPU related attributes of the instancetype. | **gpus** | [**list[V1GPU]**](V1GPU.md) | Optionally defines any GPU devices associated with the instancetype. | [optional] **host_devices** | [**list[V1HostDevice]**](V1HostDevice.md) | Optionally defines any HostDevices associated with the instancetype. | [optional] **io_threads_policy** | **str** | Optionally defines the IOThreadsPolicy to be used by the instancetype. | [optional] **launch_security** | [**V1LaunchSecurity**](V1LaunchSecurity.md) | Optionally defines the LaunchSecurity to be used by the instancetype. | [optional] -**memory** | [**V1alpha1MemoryInstancetype**](V1alpha1MemoryInstancetype.md) | Required Memory related attributes of the instancetype. | +**memory** | [**V1alpha2MemoryInstancetype**](V1alpha2MemoryInstancetype.md) | Required Memory related attributes of the instancetype. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachinePreference.md b/docs/V1alpha2VirtualMachinePreference.md similarity index 91% rename from docs/V1alpha1VirtualMachinePreference.md rename to docs/V1alpha2VirtualMachinePreference.md index 5fd345e9..24000a99 100644 --- a/docs/V1alpha1VirtualMachinePreference.md +++ b/docs/V1alpha2VirtualMachinePreference.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachinePreference +# V1alpha2VirtualMachinePreference ## Properties Name | Type | Description | Notes @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1VirtualMachinePreferenceSpec**](V1alpha1VirtualMachinePreferenceSpec.md) | Required spec describing the preferences | +**spec** | [**V1alpha2VirtualMachinePreferenceSpec**](V1alpha2VirtualMachinePreferenceSpec.md) | Required spec describing the preferences | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachinePreferenceList.md b/docs/V1alpha2VirtualMachinePreferenceList.md similarity index 88% rename from docs/V1alpha1VirtualMachinePreferenceList.md rename to docs/V1alpha2VirtualMachinePreferenceList.md index 7380e139..27b6a174 100644 --- a/docs/V1alpha1VirtualMachinePreferenceList.md +++ b/docs/V1alpha2VirtualMachinePreferenceList.md @@ -1,10 +1,10 @@ -# V1alpha1VirtualMachinePreferenceList +# V1alpha2VirtualMachinePreferenceList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**list[V1alpha1VirtualMachinePreference]**](V1alpha1VirtualMachinePreference.md) | | +**items** | [**list[V1alpha2VirtualMachinePreference]**](V1alpha2VirtualMachinePreference.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [optional] diff --git a/docs/V1alpha1VirtualMachinePreferenceSpec.md b/docs/V1alpha2VirtualMachinePreferenceSpec.md similarity index 72% rename from docs/V1alpha1VirtualMachinePreferenceSpec.md rename to docs/V1alpha2VirtualMachinePreferenceSpec.md index 9686656d..13ee9e07 100644 --- a/docs/V1alpha1VirtualMachinePreferenceSpec.md +++ b/docs/V1alpha2VirtualMachinePreferenceSpec.md @@ -1,14 +1,14 @@ -# V1alpha1VirtualMachinePreferenceSpec +# V1alpha2VirtualMachinePreferenceSpec ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**clock** | [**V1alpha1ClockPreferences**](V1alpha1ClockPreferences.md) | Clock optionally defines preferences associated with the Clock attribute of a VirtualMachineInstance DomainSpec | [optional] -**cpu** | [**V1alpha1CPUPreferences**](V1alpha1CPUPreferences.md) | CPU optionally defines preferences associated with the CPU attribute of a VirtualMachineInstance DomainSpec | [optional] -**devices** | [**V1alpha1DevicePreferences**](V1alpha1DevicePreferences.md) | Devices optionally defines preferences associated with the Devices attribute of a VirtualMachineInstance DomainSpec | [optional] -**features** | [**V1alpha1FeaturePreferences**](V1alpha1FeaturePreferences.md) | Features optionally defines preferences associated with the Features attribute of a VirtualMachineInstance DomainSpec | [optional] -**firmware** | [**V1alpha1FirmwarePreferences**](V1alpha1FirmwarePreferences.md) | Firmware optionally defines preferences associated with the Firmware attribute of a VirtualMachineInstance DomainSpec | [optional] -**machine** | [**V1alpha1MachinePreferences**](V1alpha1MachinePreferences.md) | Machine optionally defines preferences associated with the Machine attribute of a VirtualMachineInstance DomainSpec | [optional] +**clock** | [**V1alpha2ClockPreferences**](V1alpha2ClockPreferences.md) | Clock optionally defines preferences associated with the Clock attribute of a VirtualMachineInstance DomainSpec | [optional] +**cpu** | [**V1alpha2CPUPreferences**](V1alpha2CPUPreferences.md) | CPU optionally defines preferences associated with the CPU attribute of a VirtualMachineInstance DomainSpec | [optional] +**devices** | [**V1alpha2DevicePreferences**](V1alpha2DevicePreferences.md) | Devices optionally defines preferences associated with the Devices attribute of a VirtualMachineInstance DomainSpec | [optional] +**features** | [**V1alpha2FeaturePreferences**](V1alpha2FeaturePreferences.md) | Features optionally defines preferences associated with the Features attribute of a VirtualMachineInstance DomainSpec | [optional] +**firmware** | [**V1alpha2FirmwarePreferences**](V1alpha2FirmwarePreferences.md) | Firmware optionally defines preferences associated with the Firmware attribute of a VirtualMachineInstance DomainSpec | [optional] +**machine** | [**V1alpha2MachinePreferences**](V1alpha2MachinePreferences.md) | Machine optionally defines preferences associated with the Machine attribute of a VirtualMachineInstance DomainSpec | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 0f2fcf5b..fbbd961e 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.57.0-257-g9ec8c6040" + release_note="Auto-generated client v0.57.0-270-g661b2dc80" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 59bead21..7c3521a0 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -747,36 +747,12 @@ 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_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Watchdog.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_cpu_instancetype.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_cpu_instancetype.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1CPUInstancetype.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_cpu_preferences.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_cpu_preferences.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1CPUPreferences.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_clock_preferences.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_clock_preferences.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1ClockPreferences.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_condition.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_condition.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1Condition.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_device_preferences.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_device_preferences.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1DevicePreferences.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_error.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_error.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1Error.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_feature_preferences.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_feature_preferences.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1FeaturePreferences.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_firmware_preferences.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_firmware_preferences.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1FirmwarePreferences.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_machine_preferences.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_machine_preferences.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1MachinePreferences.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_memory_instancetype.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_memory_instancetype.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1MemoryInstancetype.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_migration_policy.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_migration_policy.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1MigrationPolicy.md @@ -813,18 +789,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/v1alpha1_virtual_machine_clone_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_clone_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineCloneStatus.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_cluster_instancetype.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_cluster_instancetype.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineClusterInstancetype.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_cluster_instancetype_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_cluster_instancetype_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineClusterInstancetypeList.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_cluster_preference.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_cluster_preference.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineClusterPreference.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_cluster_preference_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_cluster_preference_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineClusterPreferenceList.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_export.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_export.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineExport.md @@ -849,15 +813,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/v1alpha1_virtual_machine_export_volume_format.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_export_volume_format.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineExportVolumeFormat.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_instancetype.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_instancetype.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineInstancetype.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_instancetype_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_instancetype_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineInstancetypeList.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_instancetype_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_instancetype_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineInstancetypeSpec.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePool.md @@ -873,15 +828,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/v1alpha1_virtual_machine_pool_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolStatus.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_preference.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_preference.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePreference.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_preference_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_preference_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePreferenceList.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_preference_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_preference_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePreferenceSpec.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_restore.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_restore.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineRestore.md @@ -930,6 +876,60 @@ 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/v1alpha1_volume_snapshot_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_volume_snapshot_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VolumeSnapshotStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_cpu_instancetype.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_cpu_instancetype.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2CPUInstancetype.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_cpu_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_cpu_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2CPUPreferences.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_clock_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_clock_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2ClockPreferences.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_device_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_device_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2DevicePreferences.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_feature_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_feature_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2FeaturePreferences.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_firmware_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_firmware_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2FirmwarePreferences.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_machine_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_machine_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2MachinePreferences.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_memory_instancetype.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_memory_instancetype.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2MemoryInstancetype.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_virtual_machine_cluster_instancetype.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_virtual_machine_cluster_instancetype.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2VirtualMachineClusterInstancetype.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_virtual_machine_cluster_instancetype_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_virtual_machine_cluster_instancetype_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2VirtualMachineClusterInstancetypeList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_virtual_machine_cluster_preference.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_virtual_machine_cluster_preference.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2VirtualMachineClusterPreference.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_virtual_machine_cluster_preference_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_virtual_machine_cluster_preference_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2VirtualMachineClusterPreferenceList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_virtual_machine_instancetype.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_virtual_machine_instancetype.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2VirtualMachineInstancetype.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_virtual_machine_instancetype_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_virtual_machine_instancetype_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2VirtualMachineInstancetypeList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_virtual_machine_instancetype_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_virtual_machine_instancetype_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2VirtualMachineInstancetypeSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_virtual_machine_preference.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_virtual_machine_preference.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2VirtualMachinePreference.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_virtual_machine_preference_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_virtual_machine_preference_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2VirtualMachinePreferenceList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_virtual_machine_preference_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_virtual_machine_preference_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2VirtualMachinePreferenceSpec.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_data_volume_blank_image.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_blank_image.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeBlankImage.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 76500c42..b51bee83 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -256,16 +256,8 @@ from .models.v1_volume_snapshot_status import V1VolumeSnapshotStatus from .models.v1_volume_status import V1VolumeStatus from .models.v1_watchdog import V1Watchdog -from .models.v1alpha1_cpu_instancetype import V1alpha1CPUInstancetype -from .models.v1alpha1_cpu_preferences import V1alpha1CPUPreferences -from .models.v1alpha1_clock_preferences import V1alpha1ClockPreferences from .models.v1alpha1_condition import V1alpha1Condition -from .models.v1alpha1_device_preferences import V1alpha1DevicePreferences from .models.v1alpha1_error import V1alpha1Error -from .models.v1alpha1_feature_preferences import V1alpha1FeaturePreferences -from .models.v1alpha1_firmware_preferences import V1alpha1FirmwarePreferences -from .models.v1alpha1_machine_preferences import V1alpha1MachinePreferences -from .models.v1alpha1_memory_instancetype import V1alpha1MemoryInstancetype from .models.v1alpha1_migration_policy import V1alpha1MigrationPolicy from .models.v1alpha1_migration_policy_list import V1alpha1MigrationPolicyList from .models.v1alpha1_migration_policy_spec import V1alpha1MigrationPolicySpec @@ -278,10 +270,6 @@ from .models.v1alpha1_virtual_machine_clone_list import V1alpha1VirtualMachineCloneList from .models.v1alpha1_virtual_machine_clone_spec import V1alpha1VirtualMachineCloneSpec from .models.v1alpha1_virtual_machine_clone_status import V1alpha1VirtualMachineCloneStatus -from .models.v1alpha1_virtual_machine_cluster_instancetype import V1alpha1VirtualMachineClusterInstancetype -from .models.v1alpha1_virtual_machine_cluster_instancetype_list import V1alpha1VirtualMachineClusterInstancetypeList -from .models.v1alpha1_virtual_machine_cluster_preference import V1alpha1VirtualMachineClusterPreference -from .models.v1alpha1_virtual_machine_cluster_preference_list import V1alpha1VirtualMachineClusterPreferenceList from .models.v1alpha1_virtual_machine_export import V1alpha1VirtualMachineExport from .models.v1alpha1_virtual_machine_export_link import V1alpha1VirtualMachineExportLink from .models.v1alpha1_virtual_machine_export_links import V1alpha1VirtualMachineExportLinks @@ -290,17 +278,11 @@ from .models.v1alpha1_virtual_machine_export_status import V1alpha1VirtualMachineExportStatus from .models.v1alpha1_virtual_machine_export_volume import V1alpha1VirtualMachineExportVolume from .models.v1alpha1_virtual_machine_export_volume_format import V1alpha1VirtualMachineExportVolumeFormat -from .models.v1alpha1_virtual_machine_instancetype import V1alpha1VirtualMachineInstancetype -from .models.v1alpha1_virtual_machine_instancetype_list import V1alpha1VirtualMachineInstancetypeList -from .models.v1alpha1_virtual_machine_instancetype_spec import V1alpha1VirtualMachineInstancetypeSpec from .models.v1alpha1_virtual_machine_pool import V1alpha1VirtualMachinePool from .models.v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition from .models.v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList from .models.v1alpha1_virtual_machine_pool_spec import V1alpha1VirtualMachinePoolSpec from .models.v1alpha1_virtual_machine_pool_status import V1alpha1VirtualMachinePoolStatus -from .models.v1alpha1_virtual_machine_preference import V1alpha1VirtualMachinePreference -from .models.v1alpha1_virtual_machine_preference_list import V1alpha1VirtualMachinePreferenceList -from .models.v1alpha1_virtual_machine_preference_spec import V1alpha1VirtualMachinePreferenceSpec from .models.v1alpha1_virtual_machine_restore import V1alpha1VirtualMachineRestore from .models.v1alpha1_virtual_machine_restore_list import V1alpha1VirtualMachineRestoreList from .models.v1alpha1_virtual_machine_restore_spec import V1alpha1VirtualMachineRestoreSpec @@ -317,6 +299,24 @@ from .models.v1alpha1_volume_backup import V1alpha1VolumeBackup from .models.v1alpha1_volume_restore import V1alpha1VolumeRestore from .models.v1alpha1_volume_snapshot_status import V1alpha1VolumeSnapshotStatus +from .models.v1alpha2_cpu_instancetype import V1alpha2CPUInstancetype +from .models.v1alpha2_cpu_preferences import V1alpha2CPUPreferences +from .models.v1alpha2_clock_preferences import V1alpha2ClockPreferences +from .models.v1alpha2_device_preferences import V1alpha2DevicePreferences +from .models.v1alpha2_feature_preferences import V1alpha2FeaturePreferences +from .models.v1alpha2_firmware_preferences import V1alpha2FirmwarePreferences +from .models.v1alpha2_machine_preferences import V1alpha2MachinePreferences +from .models.v1alpha2_memory_instancetype import V1alpha2MemoryInstancetype +from .models.v1alpha2_virtual_machine_cluster_instancetype import V1alpha2VirtualMachineClusterInstancetype +from .models.v1alpha2_virtual_machine_cluster_instancetype_list import V1alpha2VirtualMachineClusterInstancetypeList +from .models.v1alpha2_virtual_machine_cluster_preference import V1alpha2VirtualMachineClusterPreference +from .models.v1alpha2_virtual_machine_cluster_preference_list import V1alpha2VirtualMachineClusterPreferenceList +from .models.v1alpha2_virtual_machine_instancetype import V1alpha2VirtualMachineInstancetype +from .models.v1alpha2_virtual_machine_instancetype_list import V1alpha2VirtualMachineInstancetypeList +from .models.v1alpha2_virtual_machine_instancetype_spec import V1alpha2VirtualMachineInstancetypeSpec +from .models.v1alpha2_virtual_machine_preference import V1alpha2VirtualMachinePreference +from .models.v1alpha2_virtual_machine_preference_list import V1alpha2VirtualMachinePreferenceList +from .models.v1alpha2_virtual_machine_preference_spec import V1alpha2VirtualMachinePreferenceSpec from .models.v1beta1_data_volume_blank_image import V1beta1DataVolumeBlankImage from .models.v1beta1_data_volume_checkpoint import V1beta1DataVolumeCheckpoint from .models.v1beta1_data_volume_source import V1beta1DataVolumeSource diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index f20681a3..1d9eea56 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.57.0-257-g9ec8c6040/python' + self.user_agent = 'Swagger-Codegen/v0.57.0-270-g661b2dc80/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 3a475a8d..11105bce 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -934,9 +934,9 @@ def create_namespaced_virtual_machine_instancetype(self, body, namespace, **kwar :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha1VirtualMachineInstancetype body: (required) + :param V1alpha2VirtualMachineInstancetype body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1alpha1VirtualMachineInstancetype + :return: V1alpha2VirtualMachineInstancetype If the method is called asynchronously, returns the request thread. """ @@ -960,9 +960,9 @@ def create_namespaced_virtual_machine_instancetype_with_http_info(self, body, na :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha1VirtualMachineInstancetype body: (required) + :param V1alpha2VirtualMachineInstancetype body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1alpha1VirtualMachineInstancetype + :return: V1alpha2VirtualMachineInstancetype If the method is called asynchronously, returns the request thread. """ @@ -1017,14 +1017,14 @@ def create_namespaced_virtual_machine_instancetype_with_http_info(self, body, na # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes', 'POST', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineInstancetype', + response_type='V1alpha2VirtualMachineInstancetype', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1156,9 +1156,9 @@ def create_namespaced_virtual_machine_preference(self, body, namespace, **kwargs :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha1VirtualMachinePreference body: (required) + :param V1alpha2VirtualMachinePreference body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1alpha1VirtualMachinePreference + :return: V1alpha2VirtualMachinePreference If the method is called asynchronously, returns the request thread. """ @@ -1182,9 +1182,9 @@ def create_namespaced_virtual_machine_preference_with_http_info(self, body, name :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha1VirtualMachinePreference body: (required) + :param V1alpha2VirtualMachinePreference body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1alpha1VirtualMachinePreference + :return: V1alpha2VirtualMachinePreference If the method is called asynchronously, returns the request thread. """ @@ -1239,14 +1239,14 @@ def create_namespaced_virtual_machine_preference_with_http_info(self, body, name # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'POST', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachinePreference', + response_type='V1alpha2VirtualMachinePreference', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1704,8 +1704,8 @@ def create_virtual_machine_cluster_instancetype(self, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha1VirtualMachineClusterInstancetype body: (required) - :return: V1alpha1VirtualMachineClusterInstancetype + :param V1alpha2VirtualMachineClusterInstancetype body: (required) + :return: V1alpha2VirtualMachineClusterInstancetype If the method is called asynchronously, returns the request thread. """ @@ -1729,8 +1729,8 @@ def create_virtual_machine_cluster_instancetype_with_http_info(self, body, **kwa :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha1VirtualMachineClusterInstancetype body: (required) - :return: V1alpha1VirtualMachineClusterInstancetype + :param V1alpha2VirtualMachineClusterInstancetype body: (required) + :return: V1alpha2VirtualMachineClusterInstancetype If the method is called asynchronously, returns the request thread. """ @@ -1780,14 +1780,14 @@ def create_virtual_machine_cluster_instancetype_with_http_info(self, body, **kwa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes', 'POST', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineClusterInstancetype', + response_type='V1alpha2VirtualMachineClusterInstancetype', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1808,8 +1808,8 @@ def create_virtual_machine_cluster_preference(self, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha1VirtualMachineClusterPreference body: (required) - :return: V1alpha1VirtualMachineClusterPreference + :param V1alpha2VirtualMachineClusterPreference body: (required) + :return: V1alpha2VirtualMachineClusterPreference If the method is called asynchronously, returns the request thread. """ @@ -1833,8 +1833,8 @@ def create_virtual_machine_cluster_preference_with_http_info(self, body, **kwarg :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha1VirtualMachineClusterPreference body: (required) - :return: V1alpha1VirtualMachineClusterPreference + :param V1alpha2VirtualMachineClusterPreference body: (required) + :return: V1alpha2VirtualMachineClusterPreference If the method is called asynchronously, returns the request thread. """ @@ -1884,14 +1884,14 @@ def create_virtual_machine_cluster_preference_with_http_info(self, body, **kwarg # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences', 'POST', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineClusterPreference', + response_type='V1alpha2VirtualMachineClusterPreference', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3009,7 +3009,7 @@ def delete_collection_namespaced_virtual_machine_instancetype_with_http_info(sel # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes', 'DELETE', path_params, query_params, header_params, @@ -3259,7 +3259,7 @@ def delete_collection_namespaced_virtual_machine_preference_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'DELETE', path_params, query_params, header_params, @@ -3884,7 +3884,7 @@ def delete_collection_virtual_machine_cluster_instancetype_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes', 'DELETE', path_params, query_params, header_params, @@ -4009,7 +4009,7 @@ def delete_collection_virtual_machine_cluster_preference_with_http_info(self, ** # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences', 'DELETE', path_params, query_params, header_params, @@ -5172,7 +5172,7 @@ def delete_namespaced_virtual_machine_instancetype_with_http_info(self, name, na # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -5432,7 +5432,7 @@ def delete_namespaced_virtual_machine_preference_with_http_info(self, name, name # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -6068,7 +6068,7 @@ def delete_virtual_machine_cluster_instancetype_with_http_info(self, name, body, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -6191,7 +6191,7 @@ def delete_virtual_machine_cluster_preference_with_http_info(self, name, body, * # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -7308,7 +7308,7 @@ def get_api_resources_export_kubevirt_io_v1alpha1_with_http_info(self, **kwargs) _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_resources_instancetype_kubevirt_io_v1alpha1(self, **kwargs): + def get_api_resources_instancetype_kubevirt_io_v1alpha2(self, **kwargs): """ Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an @@ -7317,7 +7317,7 @@ def get_api_resources_instancetype_kubevirt_io_v1alpha1(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_instancetype_kubevirt_io_v1alpha1(callback=callback_function) + >>> thread = api.get_api_resources_instancetype_kubevirt_io_v1alpha2(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7327,12 +7327,12 @@ def get_api_resources_instancetype_kubevirt_io_v1alpha1(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_resources_instancetype_kubevirt_io_v1alpha1_with_http_info(**kwargs) + return self.get_api_resources_instancetype_kubevirt_io_v1alpha2_with_http_info(**kwargs) else: - (data) = self.get_api_resources_instancetype_kubevirt_io_v1alpha1_with_http_info(**kwargs) + (data) = self.get_api_resources_instancetype_kubevirt_io_v1alpha2_with_http_info(**kwargs) return data - def get_api_resources_instancetype_kubevirt_io_v1alpha1_with_http_info(self, **kwargs): + def get_api_resources_instancetype_kubevirt_io_v1alpha2_with_http_info(self, **kwargs): """ Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an @@ -7341,7 +7341,7 @@ def get_api_resources_instancetype_kubevirt_io_v1alpha1_with_http_info(self, **k >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_instancetype_kubevirt_io_v1alpha1_with_http_info(callback=callback_function) + >>> thread = api.get_api_resources_instancetype_kubevirt_io_v1alpha2_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7361,7 +7361,7 @@ def get_api_resources_instancetype_kubevirt_io_v1alpha1_with_http_info(self, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_resources_instancetype_kubevirt_io_v1alpha1" % key + " to method get_api_resources_instancetype_kubevirt_io_v1alpha2" % key ) params[key] = val del params['kwargs'] @@ -7385,7 +7385,7 @@ def get_api_resources_instancetype_kubevirt_io_v1alpha1_with_http_info(self, **k # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/', 'GET', path_params, query_params, header_params, @@ -9320,7 +9320,7 @@ def list_namespaced_virtual_machine_instancetype(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineInstancetypeList + :return: V1alpha2VirtualMachineInstancetypeList If the method is called asynchronously, returns the request thread. """ @@ -9353,7 +9353,7 @@ def list_namespaced_virtual_machine_instancetype_with_http_info(self, namespace, :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineInstancetypeList + :return: V1alpha2VirtualMachineInstancetypeList If the method is called asynchronously, returns the request thread. """ @@ -9415,14 +9415,14 @@ def list_namespaced_virtual_machine_instancetype_with_http_info(self, namespace, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineInstancetypeList', + response_type='V1alpha2VirtualMachineInstancetypeList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9584,7 +9584,7 @@ def list_namespaced_virtual_machine_preference(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachinePreferenceList + :return: V1alpha2VirtualMachinePreferenceList If the method is called asynchronously, returns the request thread. """ @@ -9617,7 +9617,7 @@ def list_namespaced_virtual_machine_preference_with_http_info(self, namespace, * :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachinePreferenceList + :return: V1alpha2VirtualMachinePreferenceList If the method is called asynchronously, returns the request thread. """ @@ -9679,14 +9679,14 @@ def list_namespaced_virtual_machine_preference_with_http_info(self, namespace, * # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachinePreferenceList', + response_type='V1alpha2VirtualMachinePreferenceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10236,7 +10236,7 @@ def list_virtual_machine_cluster_instancetype(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineClusterInstancetypeList + :return: V1alpha2VirtualMachineClusterInstancetypeList If the method is called asynchronously, returns the request thread. """ @@ -10268,7 +10268,7 @@ def list_virtual_machine_cluster_instancetype_with_http_info(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineClusterInstancetypeList + :return: V1alpha2VirtualMachineClusterInstancetypeList If the method is called asynchronously, returns the request thread. """ @@ -10325,14 +10325,14 @@ def list_virtual_machine_cluster_instancetype_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineClusterInstancetypeList', + response_type='V1alpha2VirtualMachineClusterInstancetypeList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10361,7 +10361,7 @@ def list_virtual_machine_cluster_preference(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineClusterPreferenceList + :return: V1alpha2VirtualMachineClusterPreferenceList If the method is called asynchronously, returns the request thread. """ @@ -10393,7 +10393,7 @@ def list_virtual_machine_cluster_preference_with_http_info(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineClusterPreferenceList + :return: V1alpha2VirtualMachineClusterPreferenceList If the method is called asynchronously, returns the request thread. """ @@ -10450,14 +10450,14 @@ def list_virtual_machine_cluster_preference_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineClusterPreferenceList', + response_type='V1alpha2VirtualMachineClusterPreferenceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11236,7 +11236,7 @@ def list_virtual_machine_instancetype_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineInstancetypeList + :return: V1alpha2VirtualMachineInstancetypeList If the method is called asynchronously, returns the request thread. """ @@ -11268,7 +11268,7 @@ def list_virtual_machine_instancetype_for_all_namespaces_with_http_info(self, ** :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineInstancetypeList + :return: V1alpha2VirtualMachineInstancetypeList If the method is called asynchronously, returns the request thread. """ @@ -11325,14 +11325,14 @@ def list_virtual_machine_instancetype_for_all_namespaces_with_http_info(self, ** # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineinstancetypes', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineinstancetypes', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineInstancetypeList', + response_type='V1alpha2VirtualMachineInstancetypeList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11486,7 +11486,7 @@ def list_virtual_machine_preference_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachinePreferenceList + :return: V1alpha2VirtualMachinePreferenceList If the method is called asynchronously, returns the request thread. """ @@ -11518,7 +11518,7 @@ def list_virtual_machine_preference_for_all_namespaces_with_http_info(self, **kw :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachinePreferenceList + :return: V1alpha2VirtualMachinePreferenceList If the method is called asynchronously, returns the request thread. """ @@ -11575,14 +11575,14 @@ def list_virtual_machine_preference_for_all_namespaces_with_http_info(self, **kw # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachinepreferences', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachinepreferences', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachinePreferenceList', + response_type='V1alpha2VirtualMachinePreferenceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12918,7 +12918,7 @@ def patch_namespaced_virtual_machine_instancetype(self, name, namespace, body, * :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineInstancetype + :return: V1alpha2VirtualMachineInstancetype If the method is called asynchronously, returns the request thread. """ @@ -12945,7 +12945,7 @@ def patch_namespaced_virtual_machine_instancetype_with_http_info(self, name, nam :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineInstancetype + :return: V1alpha2VirtualMachineInstancetype If the method is called asynchronously, returns the request thread. """ @@ -13005,14 +13005,14 @@ def patch_namespaced_virtual_machine_instancetype_with_http_info(self, name, nam # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineInstancetype', + response_type='V1alpha2VirtualMachineInstancetype', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13154,7 +13154,7 @@ def patch_namespaced_virtual_machine_preference(self, name, namespace, body, **k :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachinePreference + :return: V1alpha2VirtualMachinePreference If the method is called asynchronously, returns the request thread. """ @@ -13181,7 +13181,7 @@ def patch_namespaced_virtual_machine_preference_with_http_info(self, name, names :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachinePreference + :return: V1alpha2VirtualMachinePreference If the method is called asynchronously, returns the request thread. """ @@ -13241,14 +13241,14 @@ def patch_namespaced_virtual_machine_preference_with_http_info(self, name, names # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachinePreference', + response_type='V1alpha2VirtualMachinePreference', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13736,7 +13736,7 @@ def patch_virtual_machine_cluster_instancetype(self, name, body, **kwargs): for asynchronous request. (optional) :param str name: Name of the resource (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineClusterInstancetype + :return: V1alpha2VirtualMachineClusterInstancetype If the method is called asynchronously, returns the request thread. """ @@ -13762,7 +13762,7 @@ def patch_virtual_machine_cluster_instancetype_with_http_info(self, name, body, for asynchronous request. (optional) :param str name: Name of the resource (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineClusterInstancetype + :return: V1alpha2VirtualMachineClusterInstancetype If the method is called asynchronously, returns the request thread. """ @@ -13817,14 +13817,14 @@ def patch_virtual_machine_cluster_instancetype_with_http_info(self, name, body, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineClusterInstancetype', + response_type='V1alpha2VirtualMachineClusterInstancetype', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13847,7 +13847,7 @@ def patch_virtual_machine_cluster_preference(self, name, body, **kwargs): for asynchronous request. (optional) :param str name: Name of the resource (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineClusterPreference + :return: V1alpha2VirtualMachineClusterPreference If the method is called asynchronously, returns the request thread. """ @@ -13873,7 +13873,7 @@ def patch_virtual_machine_cluster_preference_with_http_info(self, name, body, ** for asynchronous request. (optional) :param str name: Name of the resource (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineClusterPreference + :return: V1alpha2VirtualMachineClusterPreference If the method is called asynchronously, returns the request thread. """ @@ -13928,14 +13928,14 @@ def patch_virtual_machine_cluster_preference_with_http_info(self, name, body, ** # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineClusterPreference', + response_type='V1alpha2VirtualMachineClusterPreference', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -14873,7 +14873,7 @@ def read_namespaced_virtual_machine_instancetype(self, name, namespace, **kwargs :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineInstancetype + :return: V1alpha2VirtualMachineInstancetype If the method is called asynchronously, returns the request thread. """ @@ -14901,7 +14901,7 @@ def read_namespaced_virtual_machine_instancetype_with_http_info(self, name, name :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineInstancetype + :return: V1alpha2VirtualMachineInstancetype If the method is called asynchronously, returns the request thread. """ @@ -14956,14 +14956,14 @@ def read_namespaced_virtual_machine_instancetype_with_http_info(self, name, name # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineInstancetype', + response_type='V1alpha2VirtualMachineInstancetype', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -15103,7 +15103,7 @@ def read_namespaced_virtual_machine_preference(self, name, namespace, **kwargs): :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachinePreference + :return: V1alpha2VirtualMachinePreference If the method is called asynchronously, returns the request thread. """ @@ -15131,7 +15131,7 @@ def read_namespaced_virtual_machine_preference_with_http_info(self, name, namesp :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachinePreference + :return: V1alpha2VirtualMachinePreference If the method is called asynchronously, returns the request thread. """ @@ -15186,14 +15186,14 @@ def read_namespaced_virtual_machine_preference_with_http_info(self, name, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachinePreference', + response_type='V1alpha2VirtualMachinePreference', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -15670,7 +15670,7 @@ def read_virtual_machine_cluster_instancetype(self, name, **kwargs): :param str name: Name of the resource (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineClusterInstancetype + :return: V1alpha2VirtualMachineClusterInstancetype If the method is called asynchronously, returns the request thread. """ @@ -15697,7 +15697,7 @@ def read_virtual_machine_cluster_instancetype_with_http_info(self, name, **kwarg :param str name: Name of the resource (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineClusterInstancetype + :return: V1alpha2VirtualMachineClusterInstancetype If the method is called asynchronously, returns the request thread. """ @@ -15747,14 +15747,14 @@ def read_virtual_machine_cluster_instancetype_with_http_info(self, name, **kwarg # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineClusterInstancetype', + response_type='V1alpha2VirtualMachineClusterInstancetype', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -15778,7 +15778,7 @@ def read_virtual_machine_cluster_preference(self, name, **kwargs): :param str name: Name of the resource (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineClusterPreference + :return: V1alpha2VirtualMachineClusterPreference If the method is called asynchronously, returns the request thread. """ @@ -15805,7 +15805,7 @@ def read_virtual_machine_cluster_preference_with_http_info(self, name, **kwargs) :param str name: Name of the resource (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineClusterPreference + :return: V1alpha2VirtualMachineClusterPreference If the method is called asynchronously, returns the request thread. """ @@ -15855,14 +15855,14 @@ def read_virtual_machine_cluster_preference_with_http_info(self, name, **kwargs) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineClusterPreference', + response_type='V1alpha2VirtualMachineClusterPreference', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -16822,8 +16822,8 @@ def replace_namespaced_virtual_machine_instancetype(self, name, namespace, body, for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachineInstancetype body: (required) - :return: V1alpha1VirtualMachineInstancetype + :param V1alpha2VirtualMachineInstancetype body: (required) + :return: V1alpha2VirtualMachineInstancetype If the method is called asynchronously, returns the request thread. """ @@ -16849,8 +16849,8 @@ def replace_namespaced_virtual_machine_instancetype_with_http_info(self, name, n for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachineInstancetype body: (required) - :return: V1alpha1VirtualMachineInstancetype + :param V1alpha2VirtualMachineInstancetype body: (required) + :return: V1alpha2VirtualMachineInstancetype If the method is called asynchronously, returns the request thread. """ @@ -16910,14 +16910,14 @@ def replace_namespaced_virtual_machine_instancetype_with_http_info(self, name, n # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineInstancetype', + response_type='V1alpha2VirtualMachineInstancetype', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -17058,8 +17058,8 @@ def replace_namespaced_virtual_machine_preference(self, name, namespace, body, * for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachinePreference body: (required) - :return: V1alpha1VirtualMachinePreference + :param V1alpha2VirtualMachinePreference body: (required) + :return: V1alpha2VirtualMachinePreference If the method is called asynchronously, returns the request thread. """ @@ -17085,8 +17085,8 @@ def replace_namespaced_virtual_machine_preference_with_http_info(self, name, nam for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachinePreference body: (required) - :return: V1alpha1VirtualMachinePreference + :param V1alpha2VirtualMachinePreference body: (required) + :return: V1alpha2VirtualMachinePreference If the method is called asynchronously, returns the request thread. """ @@ -17146,14 +17146,14 @@ def replace_namespaced_virtual_machine_preference_with_http_info(self, name, nam # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachinePreference', + response_type='V1alpha2VirtualMachinePreference', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -17640,8 +17640,8 @@ def replace_virtual_machine_cluster_instancetype(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param V1alpha1VirtualMachineClusterInstancetype body: (required) - :return: V1alpha1VirtualMachineClusterInstancetype + :param V1alpha2VirtualMachineClusterInstancetype body: (required) + :return: V1alpha2VirtualMachineClusterInstancetype If the method is called asynchronously, returns the request thread. """ @@ -17666,8 +17666,8 @@ def replace_virtual_machine_cluster_instancetype_with_http_info(self, name, body :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param V1alpha1VirtualMachineClusterInstancetype body: (required) - :return: V1alpha1VirtualMachineClusterInstancetype + :param V1alpha2VirtualMachineClusterInstancetype body: (required) + :return: V1alpha2VirtualMachineClusterInstancetype If the method is called asynchronously, returns the request thread. """ @@ -17722,14 +17722,14 @@ def replace_virtual_machine_cluster_instancetype_with_http_info(self, name, body # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineClusterInstancetype', + response_type='V1alpha2VirtualMachineClusterInstancetype', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -17751,8 +17751,8 @@ def replace_virtual_machine_cluster_preference(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param V1alpha1VirtualMachineClusterPreference body: (required) - :return: V1alpha1VirtualMachineClusterPreference + :param V1alpha2VirtualMachineClusterPreference body: (required) + :return: V1alpha2VirtualMachineClusterPreference If the method is called asynchronously, returns the request thread. """ @@ -17777,8 +17777,8 @@ def replace_virtual_machine_cluster_preference_with_http_info(self, name, body, :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param V1alpha1VirtualMachineClusterPreference body: (required) - :return: V1alpha1VirtualMachineClusterPreference + :param V1alpha2VirtualMachineClusterPreference body: (required) + :return: V1alpha2VirtualMachineClusterPreference If the method is called asynchronously, returns the request thread. """ @@ -17833,14 +17833,14 @@ def replace_virtual_machine_cluster_preference_with_http_info(self, name, body, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineClusterPreference', + response_type='V1alpha2VirtualMachineClusterPreference', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -26711,7 +26711,7 @@ def watch_namespaced_virtual_machine_instancetype_with_http_info(self, namespace # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes', 'GET', path_params, query_params, header_params, @@ -26975,7 +26975,7 @@ def watch_namespaced_virtual_machine_preference_with_http_info(self, namespace, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'GET', path_params, query_params, header_params, @@ -27621,7 +27621,7 @@ def watch_virtual_machine_cluster_instancetype_list_for_all_namespaces_with_http # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/watch/virtualmachineclusterinstancetypes', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/watch/virtualmachineclusterinstancetypes', 'GET', path_params, query_params, header_params, @@ -27746,7 +27746,7 @@ def watch_virtual_machine_cluster_preference_list_for_all_namespaces_with_http_i # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/watch/virtualmachineclusterpreferences', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/watch/virtualmachineclusterpreferences', 'GET', path_params, query_params, header_params, @@ -28496,7 +28496,7 @@ def watch_virtual_machine_instancetype_list_for_all_namespaces_with_http_info(se # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/watch/virtualmachineinstancetypes', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/watch/virtualmachineinstancetypes', 'GET', path_params, query_params, header_params, @@ -28871,7 +28871,7 @@ def watch_virtual_machine_preference_list_for_all_namespaces_with_http_info(self # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha1/watch/virtualmachinepreferences', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/watch/virtualmachinepreferences', 'GET', path_params, query_params, header_params, diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 332f4c24..0d392875 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.57.0-257-g9ec8c6040".\ + "SDK Package Version: v0.57.0-270-g661b2dc80".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index e6e06936..94d7810f 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -256,16 +256,8 @@ from .v1_volume_snapshot_status import V1VolumeSnapshotStatus from .v1_volume_status import V1VolumeStatus from .v1_watchdog import V1Watchdog -from .v1alpha1_cpu_instancetype import V1alpha1CPUInstancetype -from .v1alpha1_cpu_preferences import V1alpha1CPUPreferences -from .v1alpha1_clock_preferences import V1alpha1ClockPreferences from .v1alpha1_condition import V1alpha1Condition -from .v1alpha1_device_preferences import V1alpha1DevicePreferences from .v1alpha1_error import V1alpha1Error -from .v1alpha1_feature_preferences import V1alpha1FeaturePreferences -from .v1alpha1_firmware_preferences import V1alpha1FirmwarePreferences -from .v1alpha1_machine_preferences import V1alpha1MachinePreferences -from .v1alpha1_memory_instancetype import V1alpha1MemoryInstancetype from .v1alpha1_migration_policy import V1alpha1MigrationPolicy from .v1alpha1_migration_policy_list import V1alpha1MigrationPolicyList from .v1alpha1_migration_policy_spec import V1alpha1MigrationPolicySpec @@ -278,10 +270,6 @@ from .v1alpha1_virtual_machine_clone_list import V1alpha1VirtualMachineCloneList from .v1alpha1_virtual_machine_clone_spec import V1alpha1VirtualMachineCloneSpec from .v1alpha1_virtual_machine_clone_status import V1alpha1VirtualMachineCloneStatus -from .v1alpha1_virtual_machine_cluster_instancetype import V1alpha1VirtualMachineClusterInstancetype -from .v1alpha1_virtual_machine_cluster_instancetype_list import V1alpha1VirtualMachineClusterInstancetypeList -from .v1alpha1_virtual_machine_cluster_preference import V1alpha1VirtualMachineClusterPreference -from .v1alpha1_virtual_machine_cluster_preference_list import V1alpha1VirtualMachineClusterPreferenceList from .v1alpha1_virtual_machine_export import V1alpha1VirtualMachineExport from .v1alpha1_virtual_machine_export_link import V1alpha1VirtualMachineExportLink from .v1alpha1_virtual_machine_export_links import V1alpha1VirtualMachineExportLinks @@ -290,17 +278,11 @@ from .v1alpha1_virtual_machine_export_status import V1alpha1VirtualMachineExportStatus from .v1alpha1_virtual_machine_export_volume import V1alpha1VirtualMachineExportVolume from .v1alpha1_virtual_machine_export_volume_format import V1alpha1VirtualMachineExportVolumeFormat -from .v1alpha1_virtual_machine_instancetype import V1alpha1VirtualMachineInstancetype -from .v1alpha1_virtual_machine_instancetype_list import V1alpha1VirtualMachineInstancetypeList -from .v1alpha1_virtual_machine_instancetype_spec import V1alpha1VirtualMachineInstancetypeSpec from .v1alpha1_virtual_machine_pool import V1alpha1VirtualMachinePool from .v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition from .v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList from .v1alpha1_virtual_machine_pool_spec import V1alpha1VirtualMachinePoolSpec from .v1alpha1_virtual_machine_pool_status import V1alpha1VirtualMachinePoolStatus -from .v1alpha1_virtual_machine_preference import V1alpha1VirtualMachinePreference -from .v1alpha1_virtual_machine_preference_list import V1alpha1VirtualMachinePreferenceList -from .v1alpha1_virtual_machine_preference_spec import V1alpha1VirtualMachinePreferenceSpec from .v1alpha1_virtual_machine_restore import V1alpha1VirtualMachineRestore from .v1alpha1_virtual_machine_restore_list import V1alpha1VirtualMachineRestoreList from .v1alpha1_virtual_machine_restore_spec import V1alpha1VirtualMachineRestoreSpec @@ -317,6 +299,24 @@ from .v1alpha1_volume_backup import V1alpha1VolumeBackup from .v1alpha1_volume_restore import V1alpha1VolumeRestore from .v1alpha1_volume_snapshot_status import V1alpha1VolumeSnapshotStatus +from .v1alpha2_cpu_instancetype import V1alpha2CPUInstancetype +from .v1alpha2_cpu_preferences import V1alpha2CPUPreferences +from .v1alpha2_clock_preferences import V1alpha2ClockPreferences +from .v1alpha2_device_preferences import V1alpha2DevicePreferences +from .v1alpha2_feature_preferences import V1alpha2FeaturePreferences +from .v1alpha2_firmware_preferences import V1alpha2FirmwarePreferences +from .v1alpha2_machine_preferences import V1alpha2MachinePreferences +from .v1alpha2_memory_instancetype import V1alpha2MemoryInstancetype +from .v1alpha2_virtual_machine_cluster_instancetype import V1alpha2VirtualMachineClusterInstancetype +from .v1alpha2_virtual_machine_cluster_instancetype_list import V1alpha2VirtualMachineClusterInstancetypeList +from .v1alpha2_virtual_machine_cluster_preference import V1alpha2VirtualMachineClusterPreference +from .v1alpha2_virtual_machine_cluster_preference_list import V1alpha2VirtualMachineClusterPreferenceList +from .v1alpha2_virtual_machine_instancetype import V1alpha2VirtualMachineInstancetype +from .v1alpha2_virtual_machine_instancetype_list import V1alpha2VirtualMachineInstancetypeList +from .v1alpha2_virtual_machine_instancetype_spec import V1alpha2VirtualMachineInstancetypeSpec +from .v1alpha2_virtual_machine_preference import V1alpha2VirtualMachinePreference +from .v1alpha2_virtual_machine_preference_list import V1alpha2VirtualMachinePreferenceList +from .v1alpha2_virtual_machine_preference_spec import V1alpha2VirtualMachinePreferenceSpec from .v1beta1_data_volume_blank_image import V1beta1DataVolumeBlankImage from .v1beta1_data_volume_checkpoint import V1beta1DataVolumeCheckpoint from .v1beta1_data_volume_source import V1beta1DataVolumeSource diff --git a/kubevirt/models/v1alpha1_clock_preferences.py b/kubevirt/models/v1alpha2_clock_preferences.py similarity index 86% rename from kubevirt/models/v1alpha1_clock_preferences.py rename to kubevirt/models/v1alpha2_clock_preferences.py index beb04789..3ab0f53f 100644 --- a/kubevirt/models/v1alpha1_clock_preferences.py +++ b/kubevirt/models/v1alpha2_clock_preferences.py @@ -16,7 +16,7 @@ import re -class V1alpha1ClockPreferences(object): +class V1alpha2ClockPreferences(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class V1alpha1ClockPreferences(object): def __init__(self, preferred_clock_offset=None, preferred_timer=None): """ - V1alpha1ClockPreferences - a model defined in Swagger + V1alpha2ClockPreferences - a model defined in Swagger """ self._preferred_clock_offset = None @@ -56,10 +56,10 @@ def __init__(self, preferred_clock_offset=None, preferred_timer=None): @property def preferred_clock_offset(self): """ - Gets the preferred_clock_offset of this V1alpha1ClockPreferences. + Gets the preferred_clock_offset of this V1alpha2ClockPreferences. ClockOffset allows specifying the UTC offset or the timezone of the guest clock. - :return: The preferred_clock_offset of this V1alpha1ClockPreferences. + :return: The preferred_clock_offset of this V1alpha2ClockPreferences. :rtype: V1ClockOffset """ return self._preferred_clock_offset @@ -67,10 +67,10 @@ def preferred_clock_offset(self): @preferred_clock_offset.setter def preferred_clock_offset(self, preferred_clock_offset): """ - Sets the preferred_clock_offset of this V1alpha1ClockPreferences. + Sets the preferred_clock_offset of this V1alpha2ClockPreferences. ClockOffset allows specifying the UTC offset or the timezone of the guest clock. - :param preferred_clock_offset: The preferred_clock_offset of this V1alpha1ClockPreferences. + :param preferred_clock_offset: The preferred_clock_offset of this V1alpha2ClockPreferences. :type: V1ClockOffset """ @@ -79,10 +79,10 @@ def preferred_clock_offset(self, preferred_clock_offset): @property def preferred_timer(self): """ - Gets the preferred_timer of this V1alpha1ClockPreferences. + Gets the preferred_timer of this V1alpha2ClockPreferences. Timer specifies whih timers are attached to the vmi. - :return: The preferred_timer of this V1alpha1ClockPreferences. + :return: The preferred_timer of this V1alpha2ClockPreferences. :rtype: V1Timer """ return self._preferred_timer @@ -90,10 +90,10 @@ def preferred_timer(self): @preferred_timer.setter def preferred_timer(self, preferred_timer): """ - Sets the preferred_timer of this V1alpha1ClockPreferences. + Sets the preferred_timer of this V1alpha2ClockPreferences. Timer specifies whih timers are attached to the vmi. - :param preferred_timer: The preferred_timer of this V1alpha1ClockPreferences. + :param preferred_timer: The preferred_timer of this V1alpha2ClockPreferences. :type: V1Timer """ @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1ClockPreferences): + if not isinstance(other, V1alpha2ClockPreferences): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_cpu_instancetype.py b/kubevirt/models/v1alpha2_cpu_instancetype.py similarity index 82% rename from kubevirt/models/v1alpha1_cpu_instancetype.py rename to kubevirt/models/v1alpha2_cpu_instancetype.py index 98d1294f..36ea1286 100644 --- a/kubevirt/models/v1alpha1_cpu_instancetype.py +++ b/kubevirt/models/v1alpha2_cpu_instancetype.py @@ -16,7 +16,7 @@ import re -class V1alpha1CPUInstancetype(object): +class V1alpha2CPUInstancetype(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -50,7 +50,7 @@ class V1alpha1CPUInstancetype(object): def __init__(self, dedicated_cpu_placement=None, guest=None, isolate_emulator_thread=None, model=None, numa=None, realtime=None): """ - V1alpha1CPUInstancetype - a model defined in Swagger + V1alpha2CPUInstancetype - a model defined in Swagger """ self._dedicated_cpu_placement = None @@ -75,10 +75,10 @@ def __init__(self, dedicated_cpu_placement=None, guest=None, isolate_emulator_th @property def dedicated_cpu_placement(self): """ - Gets the dedicated_cpu_placement of this V1alpha1CPUInstancetype. + Gets the dedicated_cpu_placement of this V1alpha2CPUInstancetype. DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. - :return: The dedicated_cpu_placement of this V1alpha1CPUInstancetype. + :return: The dedicated_cpu_placement of this V1alpha2CPUInstancetype. :rtype: bool """ return self._dedicated_cpu_placement @@ -86,10 +86,10 @@ def dedicated_cpu_placement(self): @dedicated_cpu_placement.setter def dedicated_cpu_placement(self, dedicated_cpu_placement): """ - Sets the dedicated_cpu_placement of this V1alpha1CPUInstancetype. + Sets the dedicated_cpu_placement of this V1alpha2CPUInstancetype. DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. - :param dedicated_cpu_placement: The dedicated_cpu_placement of this V1alpha1CPUInstancetype. + :param dedicated_cpu_placement: The dedicated_cpu_placement of this V1alpha2CPUInstancetype. :type: bool """ @@ -98,10 +98,10 @@ def dedicated_cpu_placement(self, dedicated_cpu_placement): @property def guest(self): """ - Gets the guest of this V1alpha1CPUInstancetype. + Gets the guest of this V1alpha2CPUInstancetype. Required number of vCPUs to expose to the guest. The resulting CPU topology being derived from the optional PreferredCPUTopology attribute of CPUPreferences that itself defaults to PreferCores. - :return: The guest of this V1alpha1CPUInstancetype. + :return: The guest of this V1alpha2CPUInstancetype. :rtype: int """ return self._guest @@ -109,10 +109,10 @@ def guest(self): @guest.setter def guest(self, guest): """ - Sets the guest of this V1alpha1CPUInstancetype. + Sets the guest of this V1alpha2CPUInstancetype. Required number of vCPUs to expose to the guest. The resulting CPU topology being derived from the optional PreferredCPUTopology attribute of CPUPreferences that itself defaults to PreferCores. - :param guest: The guest of this V1alpha1CPUInstancetype. + :param guest: The guest of this V1alpha2CPUInstancetype. :type: int """ if guest is None: @@ -123,10 +123,10 @@ def guest(self, guest): @property def isolate_emulator_thread(self): """ - Gets the isolate_emulator_thread of this V1alpha1CPUInstancetype. + Gets the isolate_emulator_thread of this V1alpha2CPUInstancetype. IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it. - :return: The isolate_emulator_thread of this V1alpha1CPUInstancetype. + :return: The isolate_emulator_thread of this V1alpha2CPUInstancetype. :rtype: bool """ return self._isolate_emulator_thread @@ -134,10 +134,10 @@ def isolate_emulator_thread(self): @isolate_emulator_thread.setter def isolate_emulator_thread(self, isolate_emulator_thread): """ - Sets the isolate_emulator_thread of this V1alpha1CPUInstancetype. + Sets the isolate_emulator_thread of this V1alpha2CPUInstancetype. IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it. - :param isolate_emulator_thread: The isolate_emulator_thread of this V1alpha1CPUInstancetype. + :param isolate_emulator_thread: The isolate_emulator_thread of this V1alpha2CPUInstancetype. :type: bool """ @@ -146,10 +146,10 @@ def isolate_emulator_thread(self, isolate_emulator_thread): @property def model(self): """ - Gets the model of this V1alpha1CPUInstancetype. + Gets the model of this V1alpha2CPUInstancetype. Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. - :return: The model of this V1alpha1CPUInstancetype. + :return: The model of this V1alpha2CPUInstancetype. :rtype: str """ return self._model @@ -157,10 +157,10 @@ def model(self): @model.setter def model(self, model): """ - Sets the model of this V1alpha1CPUInstancetype. + Sets the model of this V1alpha2CPUInstancetype. Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. - :param model: The model of this V1alpha1CPUInstancetype. + :param model: The model of this V1alpha2CPUInstancetype. :type: str """ @@ -169,10 +169,10 @@ def model(self, model): @property def numa(self): """ - Gets the numa of this V1alpha1CPUInstancetype. + Gets the numa of this V1alpha2CPUInstancetype. NUMA allows specifying settings for the guest NUMA topology - :return: The numa of this V1alpha1CPUInstancetype. + :return: The numa of this V1alpha2CPUInstancetype. :rtype: V1NUMA """ return self._numa @@ -180,10 +180,10 @@ def numa(self): @numa.setter def numa(self, numa): """ - Sets the numa of this V1alpha1CPUInstancetype. + Sets the numa of this V1alpha2CPUInstancetype. NUMA allows specifying settings for the guest NUMA topology - :param numa: The numa of this V1alpha1CPUInstancetype. + :param numa: The numa of this V1alpha2CPUInstancetype. :type: V1NUMA """ @@ -192,10 +192,10 @@ def numa(self, numa): @property def realtime(self): """ - Gets the realtime of this V1alpha1CPUInstancetype. + Gets the realtime of this V1alpha2CPUInstancetype. Realtime instructs the virt-launcher to tune the VMI for lower latency, optional for real time workloads - :return: The realtime of this V1alpha1CPUInstancetype. + :return: The realtime of this V1alpha2CPUInstancetype. :rtype: V1Realtime """ return self._realtime @@ -203,10 +203,10 @@ def realtime(self): @realtime.setter def realtime(self, realtime): """ - Sets the realtime of this V1alpha1CPUInstancetype. + Sets the realtime of this V1alpha2CPUInstancetype. Realtime instructs the virt-launcher to tune the VMI for lower latency, optional for real time workloads - :param realtime: The realtime of this V1alpha1CPUInstancetype. + :param realtime: The realtime of this V1alpha2CPUInstancetype. :type: V1Realtime """ @@ -254,7 +254,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1CPUInstancetype): + if not isinstance(other, V1alpha2CPUInstancetype): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_cpu_preferences.py b/kubevirt/models/v1alpha2_cpu_preferences.py similarity index 89% rename from kubevirt/models/v1alpha1_cpu_preferences.py rename to kubevirt/models/v1alpha2_cpu_preferences.py index 1b83d718..48645e3f 100644 --- a/kubevirt/models/v1alpha1_cpu_preferences.py +++ b/kubevirt/models/v1alpha2_cpu_preferences.py @@ -16,7 +16,7 @@ import re -class V1alpha1CPUPreferences(object): +class V1alpha2CPUPreferences(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,7 +40,7 @@ class V1alpha1CPUPreferences(object): def __init__(self, preferred_cpu_topology=None): """ - V1alpha1CPUPreferences - a model defined in Swagger + V1alpha2CPUPreferences - a model defined in Swagger """ self._preferred_cpu_topology = None @@ -51,10 +51,10 @@ def __init__(self, preferred_cpu_topology=None): @property def preferred_cpu_topology(self): """ - Gets the preferred_cpu_topology of this V1alpha1CPUPreferences. + Gets the preferred_cpu_topology of this V1alpha2CPUPreferences. PreferredCPUTopology optionally defines the preferred guest visible CPU topology, defaults to PreferSockets. - :return: The preferred_cpu_topology of this V1alpha1CPUPreferences. + :return: The preferred_cpu_topology of this V1alpha2CPUPreferences. :rtype: str """ return self._preferred_cpu_topology @@ -62,10 +62,10 @@ def preferred_cpu_topology(self): @preferred_cpu_topology.setter def preferred_cpu_topology(self, preferred_cpu_topology): """ - Sets the preferred_cpu_topology of this V1alpha1CPUPreferences. + Sets the preferred_cpu_topology of this V1alpha2CPUPreferences. PreferredCPUTopology optionally defines the preferred guest visible CPU topology, defaults to PreferSockets. - :param preferred_cpu_topology: The preferred_cpu_topology of this V1alpha1CPUPreferences. + :param preferred_cpu_topology: The preferred_cpu_topology of this V1alpha2CPUPreferences. :type: str """ @@ -113,7 +113,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1CPUPreferences): + if not isinstance(other, V1alpha2CPUPreferences): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_device_preferences.py b/kubevirt/models/v1alpha2_device_preferences.py similarity index 84% rename from kubevirt/models/v1alpha1_device_preferences.py rename to kubevirt/models/v1alpha2_device_preferences.py index 56033b1c..229f64df 100644 --- a/kubevirt/models/v1alpha1_device_preferences.py +++ b/kubevirt/models/v1alpha2_device_preferences.py @@ -16,7 +16,7 @@ import re -class V1alpha1DevicePreferences(object): +class V1alpha2DevicePreferences(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -84,7 +84,7 @@ class V1alpha1DevicePreferences(object): def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoattach_input_device=None, preferred_autoattach_mem_balloon=None, preferred_autoattach_pod_interface=None, preferred_autoattach_serial_console=None, preferred_block_multi_queue=None, preferred_cdrom_bus=None, preferred_disable_hotplug=None, preferred_disk_block_size=None, preferred_disk_bus=None, preferred_disk_cache=None, preferred_disk_dedicated_io_thread=None, preferred_disk_io=None, preferred_input_bus=None, preferred_input_type=None, preferred_interface_model=None, preferred_lun_bus=None, preferred_network_interface_multi_queue=None, preferred_rng=None, preferred_sound_model=None, preferred_tpm=None, preferred_use_virtio_transitional=None, preferred_virtual_gpu_options=None): """ - V1alpha1DevicePreferences - a model defined in Swagger + V1alpha2DevicePreferences - a model defined in Swagger """ self._preferred_autoattach_graphics_device = None @@ -161,10 +161,10 @@ def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoatta @property def preferred_autoattach_graphics_device(self): """ - Gets the preferred_autoattach_graphics_device of this V1alpha1DevicePreferences. + Gets the preferred_autoattach_graphics_device of this V1alpha2DevicePreferences. PreferredAutoattachGraphicsDevice optionally defines the preferred value of AutoattachGraphicsDevice - :return: The preferred_autoattach_graphics_device of this V1alpha1DevicePreferences. + :return: The preferred_autoattach_graphics_device of this V1alpha2DevicePreferences. :rtype: bool """ return self._preferred_autoattach_graphics_device @@ -172,10 +172,10 @@ def preferred_autoattach_graphics_device(self): @preferred_autoattach_graphics_device.setter def preferred_autoattach_graphics_device(self, preferred_autoattach_graphics_device): """ - Sets the preferred_autoattach_graphics_device of this V1alpha1DevicePreferences. + Sets the preferred_autoattach_graphics_device of this V1alpha2DevicePreferences. PreferredAutoattachGraphicsDevice optionally defines the preferred value of AutoattachGraphicsDevice - :param preferred_autoattach_graphics_device: The preferred_autoattach_graphics_device of this V1alpha1DevicePreferences. + :param preferred_autoattach_graphics_device: The preferred_autoattach_graphics_device of this V1alpha2DevicePreferences. :type: bool """ @@ -184,10 +184,10 @@ def preferred_autoattach_graphics_device(self, preferred_autoattach_graphics_dev @property def preferred_autoattach_input_device(self): """ - Gets the preferred_autoattach_input_device of this V1alpha1DevicePreferences. + Gets the preferred_autoattach_input_device of this V1alpha2DevicePreferences. PreferredAutoattachInputDevice optionally defines the preferred value of AutoattachInputDevice - :return: The preferred_autoattach_input_device of this V1alpha1DevicePreferences. + :return: The preferred_autoattach_input_device of this V1alpha2DevicePreferences. :rtype: bool """ return self._preferred_autoattach_input_device @@ -195,10 +195,10 @@ def preferred_autoattach_input_device(self): @preferred_autoattach_input_device.setter def preferred_autoattach_input_device(self, preferred_autoattach_input_device): """ - Sets the preferred_autoattach_input_device of this V1alpha1DevicePreferences. + Sets the preferred_autoattach_input_device of this V1alpha2DevicePreferences. PreferredAutoattachInputDevice optionally defines the preferred value of AutoattachInputDevice - :param preferred_autoattach_input_device: The preferred_autoattach_input_device of this V1alpha1DevicePreferences. + :param preferred_autoattach_input_device: The preferred_autoattach_input_device of this V1alpha2DevicePreferences. :type: bool """ @@ -207,10 +207,10 @@ def preferred_autoattach_input_device(self, preferred_autoattach_input_device): @property def preferred_autoattach_mem_balloon(self): """ - Gets the preferred_autoattach_mem_balloon of this V1alpha1DevicePreferences. + Gets the preferred_autoattach_mem_balloon of this V1alpha2DevicePreferences. PreferredAutoattachMemBalloon optionally defines the preferred value of AutoattachMemBalloon - :return: The preferred_autoattach_mem_balloon of this V1alpha1DevicePreferences. + :return: The preferred_autoattach_mem_balloon of this V1alpha2DevicePreferences. :rtype: bool """ return self._preferred_autoattach_mem_balloon @@ -218,10 +218,10 @@ def preferred_autoattach_mem_balloon(self): @preferred_autoattach_mem_balloon.setter def preferred_autoattach_mem_balloon(self, preferred_autoattach_mem_balloon): """ - Sets the preferred_autoattach_mem_balloon of this V1alpha1DevicePreferences. + Sets the preferred_autoattach_mem_balloon of this V1alpha2DevicePreferences. PreferredAutoattachMemBalloon optionally defines the preferred value of AutoattachMemBalloon - :param preferred_autoattach_mem_balloon: The preferred_autoattach_mem_balloon of this V1alpha1DevicePreferences. + :param preferred_autoattach_mem_balloon: The preferred_autoattach_mem_balloon of this V1alpha2DevicePreferences. :type: bool """ @@ -230,10 +230,10 @@ def preferred_autoattach_mem_balloon(self, preferred_autoattach_mem_balloon): @property def preferred_autoattach_pod_interface(self): """ - Gets the preferred_autoattach_pod_interface of this V1alpha1DevicePreferences. + Gets the preferred_autoattach_pod_interface of this V1alpha2DevicePreferences. PreferredAutoattachPodInterface optionally defines the preferred value of AutoattachPodInterface - :return: The preferred_autoattach_pod_interface of this V1alpha1DevicePreferences. + :return: The preferred_autoattach_pod_interface of this V1alpha2DevicePreferences. :rtype: bool """ return self._preferred_autoattach_pod_interface @@ -241,10 +241,10 @@ def preferred_autoattach_pod_interface(self): @preferred_autoattach_pod_interface.setter def preferred_autoattach_pod_interface(self, preferred_autoattach_pod_interface): """ - Sets the preferred_autoattach_pod_interface of this V1alpha1DevicePreferences. + Sets the preferred_autoattach_pod_interface of this V1alpha2DevicePreferences. PreferredAutoattachPodInterface optionally defines the preferred value of AutoattachPodInterface - :param preferred_autoattach_pod_interface: The preferred_autoattach_pod_interface of this V1alpha1DevicePreferences. + :param preferred_autoattach_pod_interface: The preferred_autoattach_pod_interface of this V1alpha2DevicePreferences. :type: bool """ @@ -253,10 +253,10 @@ def preferred_autoattach_pod_interface(self, preferred_autoattach_pod_interface) @property def preferred_autoattach_serial_console(self): """ - Gets the preferred_autoattach_serial_console of this V1alpha1DevicePreferences. + Gets the preferred_autoattach_serial_console of this V1alpha2DevicePreferences. PreferredAutoattachSerialConsole optionally defines the preferred value of AutoattachSerialConsole - :return: The preferred_autoattach_serial_console of this V1alpha1DevicePreferences. + :return: The preferred_autoattach_serial_console of this V1alpha2DevicePreferences. :rtype: bool """ return self._preferred_autoattach_serial_console @@ -264,10 +264,10 @@ def preferred_autoattach_serial_console(self): @preferred_autoattach_serial_console.setter def preferred_autoattach_serial_console(self, preferred_autoattach_serial_console): """ - Sets the preferred_autoattach_serial_console of this V1alpha1DevicePreferences. + Sets the preferred_autoattach_serial_console of this V1alpha2DevicePreferences. PreferredAutoattachSerialConsole optionally defines the preferred value of AutoattachSerialConsole - :param preferred_autoattach_serial_console: The preferred_autoattach_serial_console of this V1alpha1DevicePreferences. + :param preferred_autoattach_serial_console: The preferred_autoattach_serial_console of this V1alpha2DevicePreferences. :type: bool """ @@ -276,10 +276,10 @@ def preferred_autoattach_serial_console(self, preferred_autoattach_serial_consol @property def preferred_block_multi_queue(self): """ - Gets the preferred_block_multi_queue of this V1alpha1DevicePreferences. + Gets the preferred_block_multi_queue of this V1alpha2DevicePreferences. PreferredBlockMultiQueue optionally enables the vhost multiqueue feature for virtio disks. - :return: The preferred_block_multi_queue of this V1alpha1DevicePreferences. + :return: The preferred_block_multi_queue of this V1alpha2DevicePreferences. :rtype: bool """ return self._preferred_block_multi_queue @@ -287,10 +287,10 @@ def preferred_block_multi_queue(self): @preferred_block_multi_queue.setter def preferred_block_multi_queue(self, preferred_block_multi_queue): """ - Sets the preferred_block_multi_queue of this V1alpha1DevicePreferences. + Sets the preferred_block_multi_queue of this V1alpha2DevicePreferences. PreferredBlockMultiQueue optionally enables the vhost multiqueue feature for virtio disks. - :param preferred_block_multi_queue: The preferred_block_multi_queue of this V1alpha1DevicePreferences. + :param preferred_block_multi_queue: The preferred_block_multi_queue of this V1alpha2DevicePreferences. :type: bool """ @@ -299,10 +299,10 @@ def preferred_block_multi_queue(self, preferred_block_multi_queue): @property def preferred_cdrom_bus(self): """ - Gets the preferred_cdrom_bus of this V1alpha1DevicePreferences. + Gets the preferred_cdrom_bus of this V1alpha2DevicePreferences. PreferredCdromBus optionally defines the preferred bus for Cdrom Disk devices. - :return: The preferred_cdrom_bus of this V1alpha1DevicePreferences. + :return: The preferred_cdrom_bus of this V1alpha2DevicePreferences. :rtype: str """ return self._preferred_cdrom_bus @@ -310,10 +310,10 @@ def preferred_cdrom_bus(self): @preferred_cdrom_bus.setter def preferred_cdrom_bus(self, preferred_cdrom_bus): """ - Sets the preferred_cdrom_bus of this V1alpha1DevicePreferences. + Sets the preferred_cdrom_bus of this V1alpha2DevicePreferences. PreferredCdromBus optionally defines the preferred bus for Cdrom Disk devices. - :param preferred_cdrom_bus: The preferred_cdrom_bus of this V1alpha1DevicePreferences. + :param preferred_cdrom_bus: The preferred_cdrom_bus of this V1alpha2DevicePreferences. :type: str """ @@ -322,10 +322,10 @@ def preferred_cdrom_bus(self, preferred_cdrom_bus): @property def preferred_disable_hotplug(self): """ - Gets the preferred_disable_hotplug of this V1alpha1DevicePreferences. + Gets the preferred_disable_hotplug of this V1alpha2DevicePreferences. PreferredDisableHotplug optionally defines the preferred value of DisableHotplug - :return: The preferred_disable_hotplug of this V1alpha1DevicePreferences. + :return: The preferred_disable_hotplug of this V1alpha2DevicePreferences. :rtype: bool """ return self._preferred_disable_hotplug @@ -333,10 +333,10 @@ def preferred_disable_hotplug(self): @preferred_disable_hotplug.setter def preferred_disable_hotplug(self, preferred_disable_hotplug): """ - Sets the preferred_disable_hotplug of this V1alpha1DevicePreferences. + Sets the preferred_disable_hotplug of this V1alpha2DevicePreferences. PreferredDisableHotplug optionally defines the preferred value of DisableHotplug - :param preferred_disable_hotplug: The preferred_disable_hotplug of this V1alpha1DevicePreferences. + :param preferred_disable_hotplug: The preferred_disable_hotplug of this V1alpha2DevicePreferences. :type: bool """ @@ -345,10 +345,10 @@ def preferred_disable_hotplug(self, preferred_disable_hotplug): @property def preferred_disk_block_size(self): """ - Gets the preferred_disk_block_size of this V1alpha1DevicePreferences. + Gets the preferred_disk_block_size of this V1alpha2DevicePreferences. PreferredBlockSize optionally defines the block size of Disk devices. - :return: The preferred_disk_block_size of this V1alpha1DevicePreferences. + :return: The preferred_disk_block_size of this V1alpha2DevicePreferences. :rtype: V1BlockSize """ return self._preferred_disk_block_size @@ -356,10 +356,10 @@ def preferred_disk_block_size(self): @preferred_disk_block_size.setter def preferred_disk_block_size(self, preferred_disk_block_size): """ - Sets the preferred_disk_block_size of this V1alpha1DevicePreferences. + Sets the preferred_disk_block_size of this V1alpha2DevicePreferences. PreferredBlockSize optionally defines the block size of Disk devices. - :param preferred_disk_block_size: The preferred_disk_block_size of this V1alpha1DevicePreferences. + :param preferred_disk_block_size: The preferred_disk_block_size of this V1alpha2DevicePreferences. :type: V1BlockSize """ @@ -368,10 +368,10 @@ def preferred_disk_block_size(self, preferred_disk_block_size): @property def preferred_disk_bus(self): """ - Gets the preferred_disk_bus of this V1alpha1DevicePreferences. + Gets the preferred_disk_bus of this V1alpha2DevicePreferences. PreferredDiskBus optionally defines the preferred bus for Disk Disk devices. - :return: The preferred_disk_bus of this V1alpha1DevicePreferences. + :return: The preferred_disk_bus of this V1alpha2DevicePreferences. :rtype: str """ return self._preferred_disk_bus @@ -379,10 +379,10 @@ def preferred_disk_bus(self): @preferred_disk_bus.setter def preferred_disk_bus(self, preferred_disk_bus): """ - Sets the preferred_disk_bus of this V1alpha1DevicePreferences. + Sets the preferred_disk_bus of this V1alpha2DevicePreferences. PreferredDiskBus optionally defines the preferred bus for Disk Disk devices. - :param preferred_disk_bus: The preferred_disk_bus of this V1alpha1DevicePreferences. + :param preferred_disk_bus: The preferred_disk_bus of this V1alpha2DevicePreferences. :type: str """ @@ -391,10 +391,10 @@ def preferred_disk_bus(self, preferred_disk_bus): @property def preferred_disk_cache(self): """ - Gets the preferred_disk_cache of this V1alpha1DevicePreferences. + Gets the preferred_disk_cache of this V1alpha2DevicePreferences. PreferredCache optionally defines the DriverCache to be used by Disk devices. - :return: The preferred_disk_cache of this V1alpha1DevicePreferences. + :return: The preferred_disk_cache of this V1alpha2DevicePreferences. :rtype: str """ return self._preferred_disk_cache @@ -402,10 +402,10 @@ def preferred_disk_cache(self): @preferred_disk_cache.setter def preferred_disk_cache(self, preferred_disk_cache): """ - Sets the preferred_disk_cache of this V1alpha1DevicePreferences. + Sets the preferred_disk_cache of this V1alpha2DevicePreferences. PreferredCache optionally defines the DriverCache to be used by Disk devices. - :param preferred_disk_cache: The preferred_disk_cache of this V1alpha1DevicePreferences. + :param preferred_disk_cache: The preferred_disk_cache of this V1alpha2DevicePreferences. :type: str """ @@ -414,10 +414,10 @@ def preferred_disk_cache(self, preferred_disk_cache): @property def preferred_disk_dedicated_io_thread(self): """ - Gets the preferred_disk_dedicated_io_thread of this V1alpha1DevicePreferences. + Gets the preferred_disk_dedicated_io_thread of this V1alpha2DevicePreferences. PreferredDedicatedIoThread optionally enables dedicated IO threads for Disk devices. - :return: The preferred_disk_dedicated_io_thread of this V1alpha1DevicePreferences. + :return: The preferred_disk_dedicated_io_thread of this V1alpha2DevicePreferences. :rtype: bool """ return self._preferred_disk_dedicated_io_thread @@ -425,10 +425,10 @@ def preferred_disk_dedicated_io_thread(self): @preferred_disk_dedicated_io_thread.setter def preferred_disk_dedicated_io_thread(self, preferred_disk_dedicated_io_thread): """ - Sets the preferred_disk_dedicated_io_thread of this V1alpha1DevicePreferences. + Sets the preferred_disk_dedicated_io_thread of this V1alpha2DevicePreferences. PreferredDedicatedIoThread optionally enables dedicated IO threads for Disk devices. - :param preferred_disk_dedicated_io_thread: The preferred_disk_dedicated_io_thread of this V1alpha1DevicePreferences. + :param preferred_disk_dedicated_io_thread: The preferred_disk_dedicated_io_thread of this V1alpha2DevicePreferences. :type: bool """ @@ -437,10 +437,10 @@ def preferred_disk_dedicated_io_thread(self, preferred_disk_dedicated_io_thread) @property def preferred_disk_io(self): """ - Gets the preferred_disk_io of this V1alpha1DevicePreferences. + Gets the preferred_disk_io of this V1alpha2DevicePreferences. PreferredIo optionally defines the QEMU disk IO mode to be used by Disk devices. - :return: The preferred_disk_io of this V1alpha1DevicePreferences. + :return: The preferred_disk_io of this V1alpha2DevicePreferences. :rtype: str """ return self._preferred_disk_io @@ -448,10 +448,10 @@ def preferred_disk_io(self): @preferred_disk_io.setter def preferred_disk_io(self, preferred_disk_io): """ - Sets the preferred_disk_io of this V1alpha1DevicePreferences. + Sets the preferred_disk_io of this V1alpha2DevicePreferences. PreferredIo optionally defines the QEMU disk IO mode to be used by Disk devices. - :param preferred_disk_io: The preferred_disk_io of this V1alpha1DevicePreferences. + :param preferred_disk_io: The preferred_disk_io of this V1alpha2DevicePreferences. :type: str """ @@ -460,10 +460,10 @@ def preferred_disk_io(self, preferred_disk_io): @property def preferred_input_bus(self): """ - Gets the preferred_input_bus of this V1alpha1DevicePreferences. + Gets the preferred_input_bus of this V1alpha2DevicePreferences. PreferredInputBus optionally defines the preferred bus for Input devices. - :return: The preferred_input_bus of this V1alpha1DevicePreferences. + :return: The preferred_input_bus of this V1alpha2DevicePreferences. :rtype: str """ return self._preferred_input_bus @@ -471,10 +471,10 @@ def preferred_input_bus(self): @preferred_input_bus.setter def preferred_input_bus(self, preferred_input_bus): """ - Sets the preferred_input_bus of this V1alpha1DevicePreferences. + Sets the preferred_input_bus of this V1alpha2DevicePreferences. PreferredInputBus optionally defines the preferred bus for Input devices. - :param preferred_input_bus: The preferred_input_bus of this V1alpha1DevicePreferences. + :param preferred_input_bus: The preferred_input_bus of this V1alpha2DevicePreferences. :type: str """ @@ -483,10 +483,10 @@ def preferred_input_bus(self, preferred_input_bus): @property def preferred_input_type(self): """ - Gets the preferred_input_type of this V1alpha1DevicePreferences. + Gets the preferred_input_type of this V1alpha2DevicePreferences. PreferredInputType optionally defines the preferred type for Input devices. - :return: The preferred_input_type of this V1alpha1DevicePreferences. + :return: The preferred_input_type of this V1alpha2DevicePreferences. :rtype: str """ return self._preferred_input_type @@ -494,10 +494,10 @@ def preferred_input_type(self): @preferred_input_type.setter def preferred_input_type(self, preferred_input_type): """ - Sets the preferred_input_type of this V1alpha1DevicePreferences. + Sets the preferred_input_type of this V1alpha2DevicePreferences. PreferredInputType optionally defines the preferred type for Input devices. - :param preferred_input_type: The preferred_input_type of this V1alpha1DevicePreferences. + :param preferred_input_type: The preferred_input_type of this V1alpha2DevicePreferences. :type: str """ @@ -506,10 +506,10 @@ def preferred_input_type(self, preferred_input_type): @property def preferred_interface_model(self): """ - Gets the preferred_interface_model of this V1alpha1DevicePreferences. + Gets the preferred_interface_model of this V1alpha2DevicePreferences. PreferredInterfaceModel optionally defines the preferred model to be used by Interface devices. - :return: The preferred_interface_model of this V1alpha1DevicePreferences. + :return: The preferred_interface_model of this V1alpha2DevicePreferences. :rtype: str """ return self._preferred_interface_model @@ -517,10 +517,10 @@ def preferred_interface_model(self): @preferred_interface_model.setter def preferred_interface_model(self, preferred_interface_model): """ - Sets the preferred_interface_model of this V1alpha1DevicePreferences. + Sets the preferred_interface_model of this V1alpha2DevicePreferences. PreferredInterfaceModel optionally defines the preferred model to be used by Interface devices. - :param preferred_interface_model: The preferred_interface_model of this V1alpha1DevicePreferences. + :param preferred_interface_model: The preferred_interface_model of this V1alpha2DevicePreferences. :type: str """ @@ -529,10 +529,10 @@ def preferred_interface_model(self, preferred_interface_model): @property def preferred_lun_bus(self): """ - Gets the preferred_lun_bus of this V1alpha1DevicePreferences. + Gets the preferred_lun_bus of this V1alpha2DevicePreferences. PreferredLunBus optionally defines the preferred bus for Lun Disk devices. - :return: The preferred_lun_bus of this V1alpha1DevicePreferences. + :return: The preferred_lun_bus of this V1alpha2DevicePreferences. :rtype: str """ return self._preferred_lun_bus @@ -540,10 +540,10 @@ def preferred_lun_bus(self): @preferred_lun_bus.setter def preferred_lun_bus(self, preferred_lun_bus): """ - Sets the preferred_lun_bus of this V1alpha1DevicePreferences. + Sets the preferred_lun_bus of this V1alpha2DevicePreferences. PreferredLunBus optionally defines the preferred bus for Lun Disk devices. - :param preferred_lun_bus: The preferred_lun_bus of this V1alpha1DevicePreferences. + :param preferred_lun_bus: The preferred_lun_bus of this V1alpha2DevicePreferences. :type: str """ @@ -552,10 +552,10 @@ def preferred_lun_bus(self, preferred_lun_bus): @property def preferred_network_interface_multi_queue(self): """ - Gets the preferred_network_interface_multi_queue of this V1alpha1DevicePreferences. + Gets the preferred_network_interface_multi_queue of this V1alpha2DevicePreferences. PreferredNetworkInterfaceMultiQueue optionally enables the vhost multiqueue feature for virtio interfaces. - :return: The preferred_network_interface_multi_queue of this V1alpha1DevicePreferences. + :return: The preferred_network_interface_multi_queue of this V1alpha2DevicePreferences. :rtype: bool """ return self._preferred_network_interface_multi_queue @@ -563,10 +563,10 @@ def preferred_network_interface_multi_queue(self): @preferred_network_interface_multi_queue.setter def preferred_network_interface_multi_queue(self, preferred_network_interface_multi_queue): """ - Sets the preferred_network_interface_multi_queue of this V1alpha1DevicePreferences. + Sets the preferred_network_interface_multi_queue of this V1alpha2DevicePreferences. PreferredNetworkInterfaceMultiQueue optionally enables the vhost multiqueue feature for virtio interfaces. - :param preferred_network_interface_multi_queue: The preferred_network_interface_multi_queue of this V1alpha1DevicePreferences. + :param preferred_network_interface_multi_queue: The preferred_network_interface_multi_queue of this V1alpha2DevicePreferences. :type: bool """ @@ -575,10 +575,10 @@ def preferred_network_interface_multi_queue(self, preferred_network_interface_mu @property def preferred_rng(self): """ - Gets the preferred_rng of this V1alpha1DevicePreferences. + Gets the preferred_rng of this V1alpha2DevicePreferences. PreferredRng optionally defines the preferred rng device to be used. - :return: The preferred_rng of this V1alpha1DevicePreferences. + :return: The preferred_rng of this V1alpha2DevicePreferences. :rtype: V1Rng """ return self._preferred_rng @@ -586,10 +586,10 @@ def preferred_rng(self): @preferred_rng.setter def preferred_rng(self, preferred_rng): """ - Sets the preferred_rng of this V1alpha1DevicePreferences. + Sets the preferred_rng of this V1alpha2DevicePreferences. PreferredRng optionally defines the preferred rng device to be used. - :param preferred_rng: The preferred_rng of this V1alpha1DevicePreferences. + :param preferred_rng: The preferred_rng of this V1alpha2DevicePreferences. :type: V1Rng """ @@ -598,10 +598,10 @@ def preferred_rng(self, preferred_rng): @property def preferred_sound_model(self): """ - Gets the preferred_sound_model of this V1alpha1DevicePreferences. + Gets the preferred_sound_model of this V1alpha2DevicePreferences. PreferredSoundModel optionally defines the preferred model for Sound devices. - :return: The preferred_sound_model of this V1alpha1DevicePreferences. + :return: The preferred_sound_model of this V1alpha2DevicePreferences. :rtype: str """ return self._preferred_sound_model @@ -609,10 +609,10 @@ def preferred_sound_model(self): @preferred_sound_model.setter def preferred_sound_model(self, preferred_sound_model): """ - Sets the preferred_sound_model of this V1alpha1DevicePreferences. + Sets the preferred_sound_model of this V1alpha2DevicePreferences. PreferredSoundModel optionally defines the preferred model for Sound devices. - :param preferred_sound_model: The preferred_sound_model of this V1alpha1DevicePreferences. + :param preferred_sound_model: The preferred_sound_model of this V1alpha2DevicePreferences. :type: str """ @@ -621,10 +621,10 @@ def preferred_sound_model(self, preferred_sound_model): @property def preferred_tpm(self): """ - Gets the preferred_tpm of this V1alpha1DevicePreferences. + Gets the preferred_tpm of this V1alpha2DevicePreferences. PreferredTPM optionally defines the preferred TPM device to be used. - :return: The preferred_tpm of this V1alpha1DevicePreferences. + :return: The preferred_tpm of this V1alpha2DevicePreferences. :rtype: V1TPMDevice """ return self._preferred_tpm @@ -632,10 +632,10 @@ def preferred_tpm(self): @preferred_tpm.setter def preferred_tpm(self, preferred_tpm): """ - Sets the preferred_tpm of this V1alpha1DevicePreferences. + Sets the preferred_tpm of this V1alpha2DevicePreferences. PreferredTPM optionally defines the preferred TPM device to be used. - :param preferred_tpm: The preferred_tpm of this V1alpha1DevicePreferences. + :param preferred_tpm: The preferred_tpm of this V1alpha2DevicePreferences. :type: V1TPMDevice """ @@ -644,10 +644,10 @@ def preferred_tpm(self, preferred_tpm): @property def preferred_use_virtio_transitional(self): """ - Gets the preferred_use_virtio_transitional of this V1alpha1DevicePreferences. + Gets the preferred_use_virtio_transitional of this V1alpha2DevicePreferences. PreferredUseVirtioTransitional optionally defines the preferred value of UseVirtioTransitional - :return: The preferred_use_virtio_transitional of this V1alpha1DevicePreferences. + :return: The preferred_use_virtio_transitional of this V1alpha2DevicePreferences. :rtype: bool """ return self._preferred_use_virtio_transitional @@ -655,10 +655,10 @@ def preferred_use_virtio_transitional(self): @preferred_use_virtio_transitional.setter def preferred_use_virtio_transitional(self, preferred_use_virtio_transitional): """ - Sets the preferred_use_virtio_transitional of this V1alpha1DevicePreferences. + Sets the preferred_use_virtio_transitional of this V1alpha2DevicePreferences. PreferredUseVirtioTransitional optionally defines the preferred value of UseVirtioTransitional - :param preferred_use_virtio_transitional: The preferred_use_virtio_transitional of this V1alpha1DevicePreferences. + :param preferred_use_virtio_transitional: The preferred_use_virtio_transitional of this V1alpha2DevicePreferences. :type: bool """ @@ -667,10 +667,10 @@ def preferred_use_virtio_transitional(self, preferred_use_virtio_transitional): @property def preferred_virtual_gpu_options(self): """ - Gets the preferred_virtual_gpu_options of this V1alpha1DevicePreferences. + Gets the preferred_virtual_gpu_options of this V1alpha2DevicePreferences. PreferredVirtualGPUOptions optionally defines the preferred value of VirtualGPUOptions - :return: The preferred_virtual_gpu_options of this V1alpha1DevicePreferences. + :return: The preferred_virtual_gpu_options of this V1alpha2DevicePreferences. :rtype: V1VGPUOptions """ return self._preferred_virtual_gpu_options @@ -678,10 +678,10 @@ def preferred_virtual_gpu_options(self): @preferred_virtual_gpu_options.setter def preferred_virtual_gpu_options(self, preferred_virtual_gpu_options): """ - Sets the preferred_virtual_gpu_options of this V1alpha1DevicePreferences. + Sets the preferred_virtual_gpu_options of this V1alpha2DevicePreferences. PreferredVirtualGPUOptions optionally defines the preferred value of VirtualGPUOptions - :param preferred_virtual_gpu_options: The preferred_virtual_gpu_options of this V1alpha1DevicePreferences. + :param preferred_virtual_gpu_options: The preferred_virtual_gpu_options of this V1alpha2DevicePreferences. :type: V1VGPUOptions """ @@ -729,7 +729,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1DevicePreferences): + if not isinstance(other, V1alpha2DevicePreferences): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_feature_preferences.py b/kubevirt/models/v1alpha2_feature_preferences.py similarity index 81% rename from kubevirt/models/v1alpha1_feature_preferences.py rename to kubevirt/models/v1alpha2_feature_preferences.py index 26a0c7b6..7b389249 100644 --- a/kubevirt/models/v1alpha1_feature_preferences.py +++ b/kubevirt/models/v1alpha2_feature_preferences.py @@ -16,7 +16,7 @@ import re -class V1alpha1FeaturePreferences(object): +class V1alpha2FeaturePreferences(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -50,7 +50,7 @@ class V1alpha1FeaturePreferences(object): def __init__(self, preferred_acpi=None, preferred_apic=None, preferred_hyperv=None, preferred_kvm=None, preferred_pvspinlock=None, preferred_smm=None): """ - V1alpha1FeaturePreferences - a model defined in Swagger + V1alpha2FeaturePreferences - a model defined in Swagger """ self._preferred_acpi = None @@ -76,10 +76,10 @@ def __init__(self, preferred_acpi=None, preferred_apic=None, preferred_hyperv=No @property def preferred_acpi(self): """ - Gets the preferred_acpi of this V1alpha1FeaturePreferences. + Gets the preferred_acpi of this V1alpha2FeaturePreferences. PreferredAcpi optionally enables the ACPI feature - :return: The preferred_acpi of this V1alpha1FeaturePreferences. + :return: The preferred_acpi of this V1alpha2FeaturePreferences. :rtype: V1FeatureState """ return self._preferred_acpi @@ -87,10 +87,10 @@ def preferred_acpi(self): @preferred_acpi.setter def preferred_acpi(self, preferred_acpi): """ - Sets the preferred_acpi of this V1alpha1FeaturePreferences. + Sets the preferred_acpi of this V1alpha2FeaturePreferences. PreferredAcpi optionally enables the ACPI feature - :param preferred_acpi: The preferred_acpi of this V1alpha1FeaturePreferences. + :param preferred_acpi: The preferred_acpi of this V1alpha2FeaturePreferences. :type: V1FeatureState """ @@ -99,10 +99,10 @@ def preferred_acpi(self, preferred_acpi): @property def preferred_apic(self): """ - Gets the preferred_apic of this V1alpha1FeaturePreferences. + Gets the preferred_apic of this V1alpha2FeaturePreferences. PreferredApic optionally enables and configures the APIC feature - :return: The preferred_apic of this V1alpha1FeaturePreferences. + :return: The preferred_apic of this V1alpha2FeaturePreferences. :rtype: V1FeatureAPIC """ return self._preferred_apic @@ -110,10 +110,10 @@ def preferred_apic(self): @preferred_apic.setter def preferred_apic(self, preferred_apic): """ - Sets the preferred_apic of this V1alpha1FeaturePreferences. + Sets the preferred_apic of this V1alpha2FeaturePreferences. PreferredApic optionally enables and configures the APIC feature - :param preferred_apic: The preferred_apic of this V1alpha1FeaturePreferences. + :param preferred_apic: The preferred_apic of this V1alpha2FeaturePreferences. :type: V1FeatureAPIC """ @@ -122,10 +122,10 @@ def preferred_apic(self, preferred_apic): @property def preferred_hyperv(self): """ - Gets the preferred_hyperv of this V1alpha1FeaturePreferences. + Gets the preferred_hyperv of this V1alpha2FeaturePreferences. PreferredHyperv optionally enables and configures HyperV features - :return: The preferred_hyperv of this V1alpha1FeaturePreferences. + :return: The preferred_hyperv of this V1alpha2FeaturePreferences. :rtype: V1FeatureHyperv """ return self._preferred_hyperv @@ -133,10 +133,10 @@ def preferred_hyperv(self): @preferred_hyperv.setter def preferred_hyperv(self, preferred_hyperv): """ - Sets the preferred_hyperv of this V1alpha1FeaturePreferences. + Sets the preferred_hyperv of this V1alpha2FeaturePreferences. PreferredHyperv optionally enables and configures HyperV features - :param preferred_hyperv: The preferred_hyperv of this V1alpha1FeaturePreferences. + :param preferred_hyperv: The preferred_hyperv of this V1alpha2FeaturePreferences. :type: V1FeatureHyperv """ @@ -145,10 +145,10 @@ def preferred_hyperv(self, preferred_hyperv): @property def preferred_kvm(self): """ - Gets the preferred_kvm of this V1alpha1FeaturePreferences. + Gets the preferred_kvm of this V1alpha2FeaturePreferences. PreferredKvm optionally enables and configures KVM features - :return: The preferred_kvm of this V1alpha1FeaturePreferences. + :return: The preferred_kvm of this V1alpha2FeaturePreferences. :rtype: V1FeatureKVM """ return self._preferred_kvm @@ -156,10 +156,10 @@ def preferred_kvm(self): @preferred_kvm.setter def preferred_kvm(self, preferred_kvm): """ - Sets the preferred_kvm of this V1alpha1FeaturePreferences. + Sets the preferred_kvm of this V1alpha2FeaturePreferences. PreferredKvm optionally enables and configures KVM features - :param preferred_kvm: The preferred_kvm of this V1alpha1FeaturePreferences. + :param preferred_kvm: The preferred_kvm of this V1alpha2FeaturePreferences. :type: V1FeatureKVM """ @@ -168,10 +168,10 @@ def preferred_kvm(self, preferred_kvm): @property def preferred_pvspinlock(self): """ - Gets the preferred_pvspinlock of this V1alpha1FeaturePreferences. + Gets the preferred_pvspinlock of this V1alpha2FeaturePreferences. PreferredPvspinlock optionally enables the Pvspinlock feature - :return: The preferred_pvspinlock of this V1alpha1FeaturePreferences. + :return: The preferred_pvspinlock of this V1alpha2FeaturePreferences. :rtype: V1FeatureState """ return self._preferred_pvspinlock @@ -179,10 +179,10 @@ def preferred_pvspinlock(self): @preferred_pvspinlock.setter def preferred_pvspinlock(self, preferred_pvspinlock): """ - Sets the preferred_pvspinlock of this V1alpha1FeaturePreferences. + Sets the preferred_pvspinlock of this V1alpha2FeaturePreferences. PreferredPvspinlock optionally enables the Pvspinlock feature - :param preferred_pvspinlock: The preferred_pvspinlock of this V1alpha1FeaturePreferences. + :param preferred_pvspinlock: The preferred_pvspinlock of this V1alpha2FeaturePreferences. :type: V1FeatureState """ @@ -191,10 +191,10 @@ def preferred_pvspinlock(self, preferred_pvspinlock): @property def preferred_smm(self): """ - Gets the preferred_smm of this V1alpha1FeaturePreferences. + Gets the preferred_smm of this V1alpha2FeaturePreferences. PreferredSmm optionally enables the SMM feature - :return: The preferred_smm of this V1alpha1FeaturePreferences. + :return: The preferred_smm of this V1alpha2FeaturePreferences. :rtype: V1FeatureState """ return self._preferred_smm @@ -202,10 +202,10 @@ def preferred_smm(self): @preferred_smm.setter def preferred_smm(self, preferred_smm): """ - Sets the preferred_smm of this V1alpha1FeaturePreferences. + Sets the preferred_smm of this V1alpha2FeaturePreferences. PreferredSmm optionally enables the SMM feature - :param preferred_smm: The preferred_smm of this V1alpha1FeaturePreferences. + :param preferred_smm: The preferred_smm of this V1alpha2FeaturePreferences. :type: V1FeatureState """ @@ -253,7 +253,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1FeaturePreferences): + if not isinstance(other, V1alpha2FeaturePreferences): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_firmware_preferences.py b/kubevirt/models/v1alpha2_firmware_preferences.py similarity index 84% rename from kubevirt/models/v1alpha1_firmware_preferences.py rename to kubevirt/models/v1alpha2_firmware_preferences.py index 068d09d7..a2aff447 100644 --- a/kubevirt/models/v1alpha1_firmware_preferences.py +++ b/kubevirt/models/v1alpha2_firmware_preferences.py @@ -16,7 +16,7 @@ import re -class V1alpha1FirmwarePreferences(object): +class V1alpha2FirmwarePreferences(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -46,7 +46,7 @@ class V1alpha1FirmwarePreferences(object): def __init__(self, preferred_use_bios=None, preferred_use_bios_serial=None, preferred_use_efi=None, preferred_use_secure_boot=None): """ - V1alpha1FirmwarePreferences - a model defined in Swagger + V1alpha2FirmwarePreferences - a model defined in Swagger """ self._preferred_use_bios = None @@ -66,10 +66,10 @@ def __init__(self, preferred_use_bios=None, preferred_use_bios_serial=None, pref @property def preferred_use_bios(self): """ - Gets the preferred_use_bios of this V1alpha1FirmwarePreferences. + Gets the preferred_use_bios of this V1alpha2FirmwarePreferences. PreferredUseBios optionally enables BIOS - :return: The preferred_use_bios of this V1alpha1FirmwarePreferences. + :return: The preferred_use_bios of this V1alpha2FirmwarePreferences. :rtype: bool """ return self._preferred_use_bios @@ -77,10 +77,10 @@ def preferred_use_bios(self): @preferred_use_bios.setter def preferred_use_bios(self, preferred_use_bios): """ - Sets the preferred_use_bios of this V1alpha1FirmwarePreferences. + Sets the preferred_use_bios of this V1alpha2FirmwarePreferences. PreferredUseBios optionally enables BIOS - :param preferred_use_bios: The preferred_use_bios of this V1alpha1FirmwarePreferences. + :param preferred_use_bios: The preferred_use_bios of this V1alpha2FirmwarePreferences. :type: bool """ @@ -89,10 +89,10 @@ def preferred_use_bios(self, preferred_use_bios): @property def preferred_use_bios_serial(self): """ - Gets the preferred_use_bios_serial of this V1alpha1FirmwarePreferences. + Gets the preferred_use_bios_serial of this V1alpha2FirmwarePreferences. PreferredUseBiosSerial optionally transmitts BIOS output over the serial. Requires PreferredUseBios to be enabled. - :return: The preferred_use_bios_serial of this V1alpha1FirmwarePreferences. + :return: The preferred_use_bios_serial of this V1alpha2FirmwarePreferences. :rtype: bool """ return self._preferred_use_bios_serial @@ -100,10 +100,10 @@ def preferred_use_bios_serial(self): @preferred_use_bios_serial.setter def preferred_use_bios_serial(self, preferred_use_bios_serial): """ - Sets the preferred_use_bios_serial of this V1alpha1FirmwarePreferences. + Sets the preferred_use_bios_serial of this V1alpha2FirmwarePreferences. PreferredUseBiosSerial optionally transmitts BIOS output over the serial. Requires PreferredUseBios to be enabled. - :param preferred_use_bios_serial: The preferred_use_bios_serial of this V1alpha1FirmwarePreferences. + :param preferred_use_bios_serial: The preferred_use_bios_serial of this V1alpha2FirmwarePreferences. :type: bool """ @@ -112,10 +112,10 @@ def preferred_use_bios_serial(self, preferred_use_bios_serial): @property def preferred_use_efi(self): """ - Gets the preferred_use_efi of this V1alpha1FirmwarePreferences. + Gets the preferred_use_efi of this V1alpha2FirmwarePreferences. PreferredUseEfi optionally enables EFI - :return: The preferred_use_efi of this V1alpha1FirmwarePreferences. + :return: The preferred_use_efi of this V1alpha2FirmwarePreferences. :rtype: bool """ return self._preferred_use_efi @@ -123,10 +123,10 @@ def preferred_use_efi(self): @preferred_use_efi.setter def preferred_use_efi(self, preferred_use_efi): """ - Sets the preferred_use_efi of this V1alpha1FirmwarePreferences. + Sets the preferred_use_efi of this V1alpha2FirmwarePreferences. PreferredUseEfi optionally enables EFI - :param preferred_use_efi: The preferred_use_efi of this V1alpha1FirmwarePreferences. + :param preferred_use_efi: The preferred_use_efi of this V1alpha2FirmwarePreferences. :type: bool """ @@ -135,10 +135,10 @@ def preferred_use_efi(self, preferred_use_efi): @property def preferred_use_secure_boot(self): """ - Gets the preferred_use_secure_boot of this V1alpha1FirmwarePreferences. + Gets the preferred_use_secure_boot of this V1alpha2FirmwarePreferences. PreferredUseSecureBoot optionally enables SecureBoot and the OVMF roms will be swapped for SecureBoot-enabled ones. Requires PreferredUseEfi and PreferredSmm to be enabled. - :return: The preferred_use_secure_boot of this V1alpha1FirmwarePreferences. + :return: The preferred_use_secure_boot of this V1alpha2FirmwarePreferences. :rtype: bool """ return self._preferred_use_secure_boot @@ -146,10 +146,10 @@ def preferred_use_secure_boot(self): @preferred_use_secure_boot.setter def preferred_use_secure_boot(self, preferred_use_secure_boot): """ - Sets the preferred_use_secure_boot of this V1alpha1FirmwarePreferences. + Sets the preferred_use_secure_boot of this V1alpha2FirmwarePreferences. PreferredUseSecureBoot optionally enables SecureBoot and the OVMF roms will be swapped for SecureBoot-enabled ones. Requires PreferredUseEfi and PreferredSmm to be enabled. - :param preferred_use_secure_boot: The preferred_use_secure_boot of this V1alpha1FirmwarePreferences. + :param preferred_use_secure_boot: The preferred_use_secure_boot of this V1alpha2FirmwarePreferences. :type: bool """ @@ -197,7 +197,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1FirmwarePreferences): + if not isinstance(other, V1alpha2FirmwarePreferences): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_machine_preferences.py b/kubevirt/models/v1alpha2_machine_preferences.py similarity index 88% rename from kubevirt/models/v1alpha1_machine_preferences.py rename to kubevirt/models/v1alpha2_machine_preferences.py index 1b1ac749..94f99e8d 100644 --- a/kubevirt/models/v1alpha1_machine_preferences.py +++ b/kubevirt/models/v1alpha2_machine_preferences.py @@ -16,7 +16,7 @@ import re -class V1alpha1MachinePreferences(object): +class V1alpha2MachinePreferences(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,7 +40,7 @@ class V1alpha1MachinePreferences(object): def __init__(self, preferred_machine_type=None): """ - V1alpha1MachinePreferences - a model defined in Swagger + V1alpha2MachinePreferences - a model defined in Swagger """ self._preferred_machine_type = None @@ -51,10 +51,10 @@ def __init__(self, preferred_machine_type=None): @property def preferred_machine_type(self): """ - Gets the preferred_machine_type of this V1alpha1MachinePreferences. + Gets the preferred_machine_type of this V1alpha2MachinePreferences. PreferredMachineType optionally defines the preferred machine type to use. - :return: The preferred_machine_type of this V1alpha1MachinePreferences. + :return: The preferred_machine_type of this V1alpha2MachinePreferences. :rtype: str """ return self._preferred_machine_type @@ -62,10 +62,10 @@ def preferred_machine_type(self): @preferred_machine_type.setter def preferred_machine_type(self, preferred_machine_type): """ - Sets the preferred_machine_type of this V1alpha1MachinePreferences. + Sets the preferred_machine_type of this V1alpha2MachinePreferences. PreferredMachineType optionally defines the preferred machine type to use. - :param preferred_machine_type: The preferred_machine_type of this V1alpha1MachinePreferences. + :param preferred_machine_type: The preferred_machine_type of this V1alpha2MachinePreferences. :type: str """ @@ -113,7 +113,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1MachinePreferences): + if not isinstance(other, V1alpha2MachinePreferences): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_memory_instancetype.py b/kubevirt/models/v1alpha2_memory_instancetype.py similarity index 84% rename from kubevirt/models/v1alpha1_memory_instancetype.py rename to kubevirt/models/v1alpha2_memory_instancetype.py index 60814019..a41dceb2 100644 --- a/kubevirt/models/v1alpha1_memory_instancetype.py +++ b/kubevirt/models/v1alpha2_memory_instancetype.py @@ -16,7 +16,7 @@ import re -class V1alpha1MemoryInstancetype(object): +class V1alpha2MemoryInstancetype(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class V1alpha1MemoryInstancetype(object): def __init__(self, guest=None, hugepages=None): """ - V1alpha1MemoryInstancetype - a model defined in Swagger + V1alpha2MemoryInstancetype - a model defined in Swagger """ self._guest = None @@ -55,10 +55,10 @@ def __init__(self, guest=None, hugepages=None): @property def guest(self): """ - Gets the guest of this V1alpha1MemoryInstancetype. + Gets the guest of this V1alpha2MemoryInstancetype. Required amount of memory which is visible inside the guest OS. - :return: The guest of this V1alpha1MemoryInstancetype. + :return: The guest of this V1alpha2MemoryInstancetype. :rtype: K8sIoApimachineryPkgApiResourceQuantity """ return self._guest @@ -66,10 +66,10 @@ def guest(self): @guest.setter def guest(self, guest): """ - Sets the guest of this V1alpha1MemoryInstancetype. + Sets the guest of this V1alpha2MemoryInstancetype. Required amount of memory which is visible inside the guest OS. - :param guest: The guest of this V1alpha1MemoryInstancetype. + :param guest: The guest of this V1alpha2MemoryInstancetype. :type: K8sIoApimachineryPkgApiResourceQuantity """ if guest is None: @@ -80,10 +80,10 @@ def guest(self, guest): @property def hugepages(self): """ - Gets the hugepages of this V1alpha1MemoryInstancetype. + Gets the hugepages of this V1alpha2MemoryInstancetype. Optionally enables the use of hugepages for the VirtualMachineInstance instead of regular memory. - :return: The hugepages of this V1alpha1MemoryInstancetype. + :return: The hugepages of this V1alpha2MemoryInstancetype. :rtype: V1Hugepages """ return self._hugepages @@ -91,10 +91,10 @@ def hugepages(self): @hugepages.setter def hugepages(self, hugepages): """ - Sets the hugepages of this V1alpha1MemoryInstancetype. + Sets the hugepages of this V1alpha2MemoryInstancetype. Optionally enables the use of hugepages for the VirtualMachineInstance instead of regular memory. - :param hugepages: The hugepages of this V1alpha1MemoryInstancetype. + :param hugepages: The hugepages of this V1alpha2MemoryInstancetype. :type: V1Hugepages """ @@ -142,7 +142,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1MemoryInstancetype): + if not isinstance(other, V1alpha2MemoryInstancetype): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_cluster_instancetype.py b/kubevirt/models/v1alpha2_virtual_machine_cluster_instancetype.py similarity index 80% rename from kubevirt/models/v1alpha1_virtual_machine_cluster_instancetype.py rename to kubevirt/models/v1alpha2_virtual_machine_cluster_instancetype.py index 338acdf8..67d968a2 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_cluster_instancetype.py +++ b/kubevirt/models/v1alpha2_virtual_machine_cluster_instancetype.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineClusterInstancetype(object): +class V1alpha2VirtualMachineClusterInstancetype(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -34,7 +34,7 @@ class V1alpha1VirtualMachineClusterInstancetype(object): 'api_version': 'str', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', - 'spec': 'V1alpha1VirtualMachineInstancetypeSpec' + 'spec': 'V1alpha2VirtualMachineInstancetypeSpec' } attribute_map = { @@ -46,7 +46,7 @@ class V1alpha1VirtualMachineClusterInstancetype(object): def __init__(self, api_version=None, kind=None, metadata=None, spec=None): """ - V1alpha1VirtualMachineClusterInstancetype - a model defined in Swagger + V1alpha2VirtualMachineClusterInstancetype - a model defined in Swagger """ self._api_version = None @@ -65,10 +65,10 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None): @property def api_version(self): """ - Gets the api_version of this V1alpha1VirtualMachineClusterInstancetype. + Gets the api_version of this V1alpha2VirtualMachineClusterInstancetype. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha1VirtualMachineClusterInstancetype. + :return: The api_version of this V1alpha2VirtualMachineClusterInstancetype. :rtype: str """ return self._api_version @@ -76,10 +76,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha1VirtualMachineClusterInstancetype. + Sets the api_version of this V1alpha2VirtualMachineClusterInstancetype. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha1VirtualMachineClusterInstancetype. + :param api_version: The api_version of this V1alpha2VirtualMachineClusterInstancetype. :type: str """ @@ -88,10 +88,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V1alpha1VirtualMachineClusterInstancetype. + Gets the kind of this V1alpha2VirtualMachineClusterInstancetype. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha1VirtualMachineClusterInstancetype. + :return: The kind of this V1alpha2VirtualMachineClusterInstancetype. :rtype: str """ return self._kind @@ -99,10 +99,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha1VirtualMachineClusterInstancetype. + Sets the kind of this V1alpha2VirtualMachineClusterInstancetype. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha1VirtualMachineClusterInstancetype. + :param kind: The kind of this V1alpha2VirtualMachineClusterInstancetype. :type: str """ @@ -111,9 +111,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachineClusterInstancetype. + Gets the metadata of this V1alpha2VirtualMachineClusterInstancetype. - :return: The metadata of this V1alpha1VirtualMachineClusterInstancetype. + :return: The metadata of this V1alpha2VirtualMachineClusterInstancetype. :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -121,9 +121,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachineClusterInstancetype. + Sets the metadata of this V1alpha2VirtualMachineClusterInstancetype. - :param metadata: The metadata of this V1alpha1VirtualMachineClusterInstancetype. + :param metadata: The metadata of this V1alpha2VirtualMachineClusterInstancetype. :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ @@ -132,22 +132,22 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1alpha1VirtualMachineClusterInstancetype. + Gets the spec of this V1alpha2VirtualMachineClusterInstancetype. Required spec describing the instancetype - :return: The spec of this V1alpha1VirtualMachineClusterInstancetype. - :rtype: V1alpha1VirtualMachineInstancetypeSpec + :return: The spec of this V1alpha2VirtualMachineClusterInstancetype. + :rtype: V1alpha2VirtualMachineInstancetypeSpec """ return self._spec @spec.setter def spec(self, spec): """ - Sets the spec of this V1alpha1VirtualMachineClusterInstancetype. + Sets the spec of this V1alpha2VirtualMachineClusterInstancetype. Required spec describing the instancetype - :param spec: The spec of this V1alpha1VirtualMachineClusterInstancetype. - :type: V1alpha1VirtualMachineInstancetypeSpec + :param spec: The spec of this V1alpha2VirtualMachineClusterInstancetype. + :type: V1alpha2VirtualMachineInstancetypeSpec """ if spec is None: raise ValueError("Invalid value for `spec`, must not be `None`") @@ -196,7 +196,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineClusterInstancetype): + if not isinstance(other, V1alpha2VirtualMachineClusterInstancetype): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_cluster_instancetype_list.py b/kubevirt/models/v1alpha2_virtual_machine_cluster_instancetype_list.py similarity index 79% rename from kubevirt/models/v1alpha1_virtual_machine_cluster_instancetype_list.py rename to kubevirt/models/v1alpha2_virtual_machine_cluster_instancetype_list.py index 03434ead..a40219d6 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_cluster_instancetype_list.py +++ b/kubevirt/models/v1alpha2_virtual_machine_cluster_instancetype_list.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineClusterInstancetypeList(object): +class V1alpha2VirtualMachineClusterInstancetypeList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class V1alpha1VirtualMachineClusterInstancetypeList(object): """ swagger_types = { 'api_version': 'str', - 'items': 'list[V1alpha1VirtualMachineClusterInstancetype]', + 'items': 'list[V1alpha2VirtualMachineClusterInstancetype]', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' } @@ -46,7 +46,7 @@ class V1alpha1VirtualMachineClusterInstancetypeList(object): def __init__(self, api_version=None, items=None, kind=None, metadata=None): """ - V1alpha1VirtualMachineClusterInstancetypeList - a model defined in Swagger + V1alpha2VirtualMachineClusterInstancetypeList - a model defined in Swagger """ self._api_version = None @@ -65,10 +65,10 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): @property def api_version(self): """ - Gets the api_version of this V1alpha1VirtualMachineClusterInstancetypeList. + Gets the api_version of this V1alpha2VirtualMachineClusterInstancetypeList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha1VirtualMachineClusterInstancetypeList. + :return: The api_version of this V1alpha2VirtualMachineClusterInstancetypeList. :rtype: str """ return self._api_version @@ -76,10 +76,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha1VirtualMachineClusterInstancetypeList. + Sets the api_version of this V1alpha2VirtualMachineClusterInstancetypeList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha1VirtualMachineClusterInstancetypeList. + :param api_version: The api_version of this V1alpha2VirtualMachineClusterInstancetypeList. :type: str """ @@ -88,20 +88,20 @@ def api_version(self, api_version): @property def items(self): """ - Gets the items of this V1alpha1VirtualMachineClusterInstancetypeList. + Gets the items of this V1alpha2VirtualMachineClusterInstancetypeList. - :return: The items of this V1alpha1VirtualMachineClusterInstancetypeList. - :rtype: list[V1alpha1VirtualMachineClusterInstancetype] + :return: The items of this V1alpha2VirtualMachineClusterInstancetypeList. + :rtype: list[V1alpha2VirtualMachineClusterInstancetype] """ return self._items @items.setter def items(self, items): """ - Sets the items of this V1alpha1VirtualMachineClusterInstancetypeList. + Sets the items of this V1alpha2VirtualMachineClusterInstancetypeList. - :param items: The items of this V1alpha1VirtualMachineClusterInstancetypeList. - :type: list[V1alpha1VirtualMachineClusterInstancetype] + :param items: The items of this V1alpha2VirtualMachineClusterInstancetypeList. + :type: list[V1alpha2VirtualMachineClusterInstancetype] """ if items is None: raise ValueError("Invalid value for `items`, must not be `None`") @@ -111,10 +111,10 @@ def items(self, items): @property def kind(self): """ - Gets the kind of this V1alpha1VirtualMachineClusterInstancetypeList. + Gets the kind of this V1alpha2VirtualMachineClusterInstancetypeList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha1VirtualMachineClusterInstancetypeList. + :return: The kind of this V1alpha2VirtualMachineClusterInstancetypeList. :rtype: str """ return self._kind @@ -122,10 +122,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha1VirtualMachineClusterInstancetypeList. + Sets the kind of this V1alpha2VirtualMachineClusterInstancetypeList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha1VirtualMachineClusterInstancetypeList. + :param kind: The kind of this V1alpha2VirtualMachineClusterInstancetypeList. :type: str """ @@ -134,9 +134,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachineClusterInstancetypeList. + Gets the metadata of this V1alpha2VirtualMachineClusterInstancetypeList. - :return: The metadata of this V1alpha1VirtualMachineClusterInstancetypeList. + :return: The metadata of this V1alpha2VirtualMachineClusterInstancetypeList. :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @@ -144,9 +144,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachineClusterInstancetypeList. + Sets the metadata of this V1alpha2VirtualMachineClusterInstancetypeList. - :param metadata: The metadata of this V1alpha1VirtualMachineClusterInstancetypeList. + :param metadata: The metadata of this V1alpha2VirtualMachineClusterInstancetypeList. :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ @@ -194,7 +194,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineClusterInstancetypeList): + if not isinstance(other, V1alpha2VirtualMachineClusterInstancetypeList): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_cluster_preference.py b/kubevirt/models/v1alpha2_virtual_machine_cluster_preference.py similarity index 80% rename from kubevirt/models/v1alpha1_virtual_machine_cluster_preference.py rename to kubevirt/models/v1alpha2_virtual_machine_cluster_preference.py index ad55099d..363304f2 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_cluster_preference.py +++ b/kubevirt/models/v1alpha2_virtual_machine_cluster_preference.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineClusterPreference(object): +class V1alpha2VirtualMachineClusterPreference(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -34,7 +34,7 @@ class V1alpha1VirtualMachineClusterPreference(object): 'api_version': 'str', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', - 'spec': 'V1alpha1VirtualMachinePreferenceSpec' + 'spec': 'V1alpha2VirtualMachinePreferenceSpec' } attribute_map = { @@ -46,7 +46,7 @@ class V1alpha1VirtualMachineClusterPreference(object): def __init__(self, api_version=None, kind=None, metadata=None, spec=None): """ - V1alpha1VirtualMachineClusterPreference - a model defined in Swagger + V1alpha2VirtualMachineClusterPreference - a model defined in Swagger """ self._api_version = None @@ -65,10 +65,10 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None): @property def api_version(self): """ - Gets the api_version of this V1alpha1VirtualMachineClusterPreference. + Gets the api_version of this V1alpha2VirtualMachineClusterPreference. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha1VirtualMachineClusterPreference. + :return: The api_version of this V1alpha2VirtualMachineClusterPreference. :rtype: str """ return self._api_version @@ -76,10 +76,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha1VirtualMachineClusterPreference. + Sets the api_version of this V1alpha2VirtualMachineClusterPreference. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha1VirtualMachineClusterPreference. + :param api_version: The api_version of this V1alpha2VirtualMachineClusterPreference. :type: str """ @@ -88,10 +88,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V1alpha1VirtualMachineClusterPreference. + Gets the kind of this V1alpha2VirtualMachineClusterPreference. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha1VirtualMachineClusterPreference. + :return: The kind of this V1alpha2VirtualMachineClusterPreference. :rtype: str """ return self._kind @@ -99,10 +99,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha1VirtualMachineClusterPreference. + Sets the kind of this V1alpha2VirtualMachineClusterPreference. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha1VirtualMachineClusterPreference. + :param kind: The kind of this V1alpha2VirtualMachineClusterPreference. :type: str """ @@ -111,9 +111,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachineClusterPreference. + Gets the metadata of this V1alpha2VirtualMachineClusterPreference. - :return: The metadata of this V1alpha1VirtualMachineClusterPreference. + :return: The metadata of this V1alpha2VirtualMachineClusterPreference. :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -121,9 +121,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachineClusterPreference. + Sets the metadata of this V1alpha2VirtualMachineClusterPreference. - :param metadata: The metadata of this V1alpha1VirtualMachineClusterPreference. + :param metadata: The metadata of this V1alpha2VirtualMachineClusterPreference. :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ @@ -132,22 +132,22 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1alpha1VirtualMachineClusterPreference. + Gets the spec of this V1alpha2VirtualMachineClusterPreference. Required spec describing the preferences - :return: The spec of this V1alpha1VirtualMachineClusterPreference. - :rtype: V1alpha1VirtualMachinePreferenceSpec + :return: The spec of this V1alpha2VirtualMachineClusterPreference. + :rtype: V1alpha2VirtualMachinePreferenceSpec """ return self._spec @spec.setter def spec(self, spec): """ - Sets the spec of this V1alpha1VirtualMachineClusterPreference. + Sets the spec of this V1alpha2VirtualMachineClusterPreference. Required spec describing the preferences - :param spec: The spec of this V1alpha1VirtualMachineClusterPreference. - :type: V1alpha1VirtualMachinePreferenceSpec + :param spec: The spec of this V1alpha2VirtualMachineClusterPreference. + :type: V1alpha2VirtualMachinePreferenceSpec """ if spec is None: raise ValueError("Invalid value for `spec`, must not be `None`") @@ -196,7 +196,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineClusterPreference): + if not isinstance(other, V1alpha2VirtualMachineClusterPreference): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_cluster_preference_list.py b/kubevirt/models/v1alpha2_virtual_machine_cluster_preference_list.py similarity index 79% rename from kubevirt/models/v1alpha1_virtual_machine_cluster_preference_list.py rename to kubevirt/models/v1alpha2_virtual_machine_cluster_preference_list.py index 1d9909f5..f5cbf993 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_cluster_preference_list.py +++ b/kubevirt/models/v1alpha2_virtual_machine_cluster_preference_list.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineClusterPreferenceList(object): +class V1alpha2VirtualMachineClusterPreferenceList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class V1alpha1VirtualMachineClusterPreferenceList(object): """ swagger_types = { 'api_version': 'str', - 'items': 'list[V1alpha1VirtualMachineClusterPreference]', + 'items': 'list[V1alpha2VirtualMachineClusterPreference]', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' } @@ -46,7 +46,7 @@ class V1alpha1VirtualMachineClusterPreferenceList(object): def __init__(self, api_version=None, items=None, kind=None, metadata=None): """ - V1alpha1VirtualMachineClusterPreferenceList - a model defined in Swagger + V1alpha2VirtualMachineClusterPreferenceList - a model defined in Swagger """ self._api_version = None @@ -65,10 +65,10 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): @property def api_version(self): """ - Gets the api_version of this V1alpha1VirtualMachineClusterPreferenceList. + Gets the api_version of this V1alpha2VirtualMachineClusterPreferenceList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha1VirtualMachineClusterPreferenceList. + :return: The api_version of this V1alpha2VirtualMachineClusterPreferenceList. :rtype: str """ return self._api_version @@ -76,10 +76,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha1VirtualMachineClusterPreferenceList. + Sets the api_version of this V1alpha2VirtualMachineClusterPreferenceList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha1VirtualMachineClusterPreferenceList. + :param api_version: The api_version of this V1alpha2VirtualMachineClusterPreferenceList. :type: str """ @@ -88,20 +88,20 @@ def api_version(self, api_version): @property def items(self): """ - Gets the items of this V1alpha1VirtualMachineClusterPreferenceList. + Gets the items of this V1alpha2VirtualMachineClusterPreferenceList. - :return: The items of this V1alpha1VirtualMachineClusterPreferenceList. - :rtype: list[V1alpha1VirtualMachineClusterPreference] + :return: The items of this V1alpha2VirtualMachineClusterPreferenceList. + :rtype: list[V1alpha2VirtualMachineClusterPreference] """ return self._items @items.setter def items(self, items): """ - Sets the items of this V1alpha1VirtualMachineClusterPreferenceList. + Sets the items of this V1alpha2VirtualMachineClusterPreferenceList. - :param items: The items of this V1alpha1VirtualMachineClusterPreferenceList. - :type: list[V1alpha1VirtualMachineClusterPreference] + :param items: The items of this V1alpha2VirtualMachineClusterPreferenceList. + :type: list[V1alpha2VirtualMachineClusterPreference] """ if items is None: raise ValueError("Invalid value for `items`, must not be `None`") @@ -111,10 +111,10 @@ def items(self, items): @property def kind(self): """ - Gets the kind of this V1alpha1VirtualMachineClusterPreferenceList. + Gets the kind of this V1alpha2VirtualMachineClusterPreferenceList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha1VirtualMachineClusterPreferenceList. + :return: The kind of this V1alpha2VirtualMachineClusterPreferenceList. :rtype: str """ return self._kind @@ -122,10 +122,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha1VirtualMachineClusterPreferenceList. + Sets the kind of this V1alpha2VirtualMachineClusterPreferenceList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha1VirtualMachineClusterPreferenceList. + :param kind: The kind of this V1alpha2VirtualMachineClusterPreferenceList. :type: str """ @@ -134,9 +134,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachineClusterPreferenceList. + Gets the metadata of this V1alpha2VirtualMachineClusterPreferenceList. - :return: The metadata of this V1alpha1VirtualMachineClusterPreferenceList. + :return: The metadata of this V1alpha2VirtualMachineClusterPreferenceList. :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @@ -144,9 +144,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachineClusterPreferenceList. + Sets the metadata of this V1alpha2VirtualMachineClusterPreferenceList. - :param metadata: The metadata of this V1alpha1VirtualMachineClusterPreferenceList. + :param metadata: The metadata of this V1alpha2VirtualMachineClusterPreferenceList. :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ @@ -194,7 +194,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineClusterPreferenceList): + if not isinstance(other, V1alpha2VirtualMachineClusterPreferenceList): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_instancetype.py b/kubevirt/models/v1alpha2_virtual_machine_instancetype.py similarity index 79% rename from kubevirt/models/v1alpha1_virtual_machine_instancetype.py rename to kubevirt/models/v1alpha2_virtual_machine_instancetype.py index 051481b0..1b70df40 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_instancetype.py +++ b/kubevirt/models/v1alpha2_virtual_machine_instancetype.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineInstancetype(object): +class V1alpha2VirtualMachineInstancetype(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -34,7 +34,7 @@ class V1alpha1VirtualMachineInstancetype(object): 'api_version': 'str', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', - 'spec': 'V1alpha1VirtualMachineInstancetypeSpec' + 'spec': 'V1alpha2VirtualMachineInstancetypeSpec' } attribute_map = { @@ -46,7 +46,7 @@ class V1alpha1VirtualMachineInstancetype(object): def __init__(self, api_version=None, kind=None, metadata=None, spec=None): """ - V1alpha1VirtualMachineInstancetype - a model defined in Swagger + V1alpha2VirtualMachineInstancetype - a model defined in Swagger """ self._api_version = None @@ -65,10 +65,10 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None): @property def api_version(self): """ - Gets the api_version of this V1alpha1VirtualMachineInstancetype. + Gets the api_version of this V1alpha2VirtualMachineInstancetype. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha1VirtualMachineInstancetype. + :return: The api_version of this V1alpha2VirtualMachineInstancetype. :rtype: str """ return self._api_version @@ -76,10 +76,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha1VirtualMachineInstancetype. + Sets the api_version of this V1alpha2VirtualMachineInstancetype. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha1VirtualMachineInstancetype. + :param api_version: The api_version of this V1alpha2VirtualMachineInstancetype. :type: str """ @@ -88,10 +88,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V1alpha1VirtualMachineInstancetype. + Gets the kind of this V1alpha2VirtualMachineInstancetype. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha1VirtualMachineInstancetype. + :return: The kind of this V1alpha2VirtualMachineInstancetype. :rtype: str """ return self._kind @@ -99,10 +99,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha1VirtualMachineInstancetype. + Sets the kind of this V1alpha2VirtualMachineInstancetype. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha1VirtualMachineInstancetype. + :param kind: The kind of this V1alpha2VirtualMachineInstancetype. :type: str """ @@ -111,9 +111,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachineInstancetype. + Gets the metadata of this V1alpha2VirtualMachineInstancetype. - :return: The metadata of this V1alpha1VirtualMachineInstancetype. + :return: The metadata of this V1alpha2VirtualMachineInstancetype. :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -121,9 +121,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachineInstancetype. + Sets the metadata of this V1alpha2VirtualMachineInstancetype. - :param metadata: The metadata of this V1alpha1VirtualMachineInstancetype. + :param metadata: The metadata of this V1alpha2VirtualMachineInstancetype. :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ @@ -132,22 +132,22 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1alpha1VirtualMachineInstancetype. + Gets the spec of this V1alpha2VirtualMachineInstancetype. Required spec describing the instancetype - :return: The spec of this V1alpha1VirtualMachineInstancetype. - :rtype: V1alpha1VirtualMachineInstancetypeSpec + :return: The spec of this V1alpha2VirtualMachineInstancetype. + :rtype: V1alpha2VirtualMachineInstancetypeSpec """ return self._spec @spec.setter def spec(self, spec): """ - Sets the spec of this V1alpha1VirtualMachineInstancetype. + Sets the spec of this V1alpha2VirtualMachineInstancetype. Required spec describing the instancetype - :param spec: The spec of this V1alpha1VirtualMachineInstancetype. - :type: V1alpha1VirtualMachineInstancetypeSpec + :param spec: The spec of this V1alpha2VirtualMachineInstancetype. + :type: V1alpha2VirtualMachineInstancetypeSpec """ if spec is None: raise ValueError("Invalid value for `spec`, must not be `None`") @@ -196,7 +196,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineInstancetype): + if not isinstance(other, V1alpha2VirtualMachineInstancetype): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_instancetype_list.py b/kubevirt/models/v1alpha2_virtual_machine_instancetype_list.py similarity index 79% rename from kubevirt/models/v1alpha1_virtual_machine_instancetype_list.py rename to kubevirt/models/v1alpha2_virtual_machine_instancetype_list.py index 3413f18e..ff8a4008 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_instancetype_list.py +++ b/kubevirt/models/v1alpha2_virtual_machine_instancetype_list.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineInstancetypeList(object): +class V1alpha2VirtualMachineInstancetypeList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class V1alpha1VirtualMachineInstancetypeList(object): """ swagger_types = { 'api_version': 'str', - 'items': 'list[V1alpha1VirtualMachineInstancetype]', + 'items': 'list[V1alpha2VirtualMachineInstancetype]', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' } @@ -46,7 +46,7 @@ class V1alpha1VirtualMachineInstancetypeList(object): def __init__(self, api_version=None, items=None, kind=None, metadata=None): """ - V1alpha1VirtualMachineInstancetypeList - a model defined in Swagger + V1alpha2VirtualMachineInstancetypeList - a model defined in Swagger """ self._api_version = None @@ -65,10 +65,10 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): @property def api_version(self): """ - Gets the api_version of this V1alpha1VirtualMachineInstancetypeList. + Gets the api_version of this V1alpha2VirtualMachineInstancetypeList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha1VirtualMachineInstancetypeList. + :return: The api_version of this V1alpha2VirtualMachineInstancetypeList. :rtype: str """ return self._api_version @@ -76,10 +76,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha1VirtualMachineInstancetypeList. + Sets the api_version of this V1alpha2VirtualMachineInstancetypeList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha1VirtualMachineInstancetypeList. + :param api_version: The api_version of this V1alpha2VirtualMachineInstancetypeList. :type: str """ @@ -88,20 +88,20 @@ def api_version(self, api_version): @property def items(self): """ - Gets the items of this V1alpha1VirtualMachineInstancetypeList. + Gets the items of this V1alpha2VirtualMachineInstancetypeList. - :return: The items of this V1alpha1VirtualMachineInstancetypeList. - :rtype: list[V1alpha1VirtualMachineInstancetype] + :return: The items of this V1alpha2VirtualMachineInstancetypeList. + :rtype: list[V1alpha2VirtualMachineInstancetype] """ return self._items @items.setter def items(self, items): """ - Sets the items of this V1alpha1VirtualMachineInstancetypeList. + Sets the items of this V1alpha2VirtualMachineInstancetypeList. - :param items: The items of this V1alpha1VirtualMachineInstancetypeList. - :type: list[V1alpha1VirtualMachineInstancetype] + :param items: The items of this V1alpha2VirtualMachineInstancetypeList. + :type: list[V1alpha2VirtualMachineInstancetype] """ if items is None: raise ValueError("Invalid value for `items`, must not be `None`") @@ -111,10 +111,10 @@ def items(self, items): @property def kind(self): """ - Gets the kind of this V1alpha1VirtualMachineInstancetypeList. + Gets the kind of this V1alpha2VirtualMachineInstancetypeList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha1VirtualMachineInstancetypeList. + :return: The kind of this V1alpha2VirtualMachineInstancetypeList. :rtype: str """ return self._kind @@ -122,10 +122,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha1VirtualMachineInstancetypeList. + Sets the kind of this V1alpha2VirtualMachineInstancetypeList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha1VirtualMachineInstancetypeList. + :param kind: The kind of this V1alpha2VirtualMachineInstancetypeList. :type: str """ @@ -134,9 +134,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachineInstancetypeList. + Gets the metadata of this V1alpha2VirtualMachineInstancetypeList. - :return: The metadata of this V1alpha1VirtualMachineInstancetypeList. + :return: The metadata of this V1alpha2VirtualMachineInstancetypeList. :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @@ -144,9 +144,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachineInstancetypeList. + Sets the metadata of this V1alpha2VirtualMachineInstancetypeList. - :param metadata: The metadata of this V1alpha1VirtualMachineInstancetypeList. + :param metadata: The metadata of this V1alpha2VirtualMachineInstancetypeList. :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ @@ -194,7 +194,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineInstancetypeList): + if not isinstance(other, V1alpha2VirtualMachineInstancetypeList): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_instancetype_spec.py b/kubevirt/models/v1alpha2_virtual_machine_instancetype_spec.py similarity index 76% rename from kubevirt/models/v1alpha1_virtual_machine_instancetype_spec.py rename to kubevirt/models/v1alpha2_virtual_machine_instancetype_spec.py index 167dcdd8..ed97776c 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_instancetype_spec.py +++ b/kubevirt/models/v1alpha2_virtual_machine_instancetype_spec.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineInstancetypeSpec(object): +class V1alpha2VirtualMachineInstancetypeSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,12 +31,12 @@ class V1alpha1VirtualMachineInstancetypeSpec(object): and the value is json key in definition. """ swagger_types = { - 'cpu': 'V1alpha1CPUInstancetype', + 'cpu': 'V1alpha2CPUInstancetype', 'gpus': 'list[V1GPU]', 'host_devices': 'list[V1HostDevice]', 'io_threads_policy': 'str', 'launch_security': 'V1LaunchSecurity', - 'memory': 'V1alpha1MemoryInstancetype' + 'memory': 'V1alpha2MemoryInstancetype' } attribute_map = { @@ -50,7 +50,7 @@ class V1alpha1VirtualMachineInstancetypeSpec(object): def __init__(self, cpu=None, gpus=None, host_devices=None, io_threads_policy=None, launch_security=None, memory=None): """ - V1alpha1VirtualMachineInstancetypeSpec - a model defined in Swagger + V1alpha2VirtualMachineInstancetypeSpec - a model defined in Swagger """ self._cpu = None @@ -74,22 +74,22 @@ def __init__(self, cpu=None, gpus=None, host_devices=None, io_threads_policy=Non @property def cpu(self): """ - Gets the cpu of this V1alpha1VirtualMachineInstancetypeSpec. + Gets the cpu of this V1alpha2VirtualMachineInstancetypeSpec. Required CPU related attributes of the instancetype. - :return: The cpu of this V1alpha1VirtualMachineInstancetypeSpec. - :rtype: V1alpha1CPUInstancetype + :return: The cpu of this V1alpha2VirtualMachineInstancetypeSpec. + :rtype: V1alpha2CPUInstancetype """ return self._cpu @cpu.setter def cpu(self, cpu): """ - Sets the cpu of this V1alpha1VirtualMachineInstancetypeSpec. + Sets the cpu of this V1alpha2VirtualMachineInstancetypeSpec. Required CPU related attributes of the instancetype. - :param cpu: The cpu of this V1alpha1VirtualMachineInstancetypeSpec. - :type: V1alpha1CPUInstancetype + :param cpu: The cpu of this V1alpha2VirtualMachineInstancetypeSpec. + :type: V1alpha2CPUInstancetype """ if cpu is None: raise ValueError("Invalid value for `cpu`, must not be `None`") @@ -99,10 +99,10 @@ def cpu(self, cpu): @property def gpus(self): """ - Gets the gpus of this V1alpha1VirtualMachineInstancetypeSpec. + Gets the gpus of this V1alpha2VirtualMachineInstancetypeSpec. Optionally defines any GPU devices associated with the instancetype. - :return: The gpus of this V1alpha1VirtualMachineInstancetypeSpec. + :return: The gpus of this V1alpha2VirtualMachineInstancetypeSpec. :rtype: list[V1GPU] """ return self._gpus @@ -110,10 +110,10 @@ def gpus(self): @gpus.setter def gpus(self, gpus): """ - Sets the gpus of this V1alpha1VirtualMachineInstancetypeSpec. + Sets the gpus of this V1alpha2VirtualMachineInstancetypeSpec. Optionally defines any GPU devices associated with the instancetype. - :param gpus: The gpus of this V1alpha1VirtualMachineInstancetypeSpec. + :param gpus: The gpus of this V1alpha2VirtualMachineInstancetypeSpec. :type: list[V1GPU] """ @@ -122,10 +122,10 @@ def gpus(self, gpus): @property def host_devices(self): """ - Gets the host_devices of this V1alpha1VirtualMachineInstancetypeSpec. + Gets the host_devices of this V1alpha2VirtualMachineInstancetypeSpec. Optionally defines any HostDevices associated with the instancetype. - :return: The host_devices of this V1alpha1VirtualMachineInstancetypeSpec. + :return: The host_devices of this V1alpha2VirtualMachineInstancetypeSpec. :rtype: list[V1HostDevice] """ return self._host_devices @@ -133,10 +133,10 @@ def host_devices(self): @host_devices.setter def host_devices(self, host_devices): """ - Sets the host_devices of this V1alpha1VirtualMachineInstancetypeSpec. + Sets the host_devices of this V1alpha2VirtualMachineInstancetypeSpec. Optionally defines any HostDevices associated with the instancetype. - :param host_devices: The host_devices of this V1alpha1VirtualMachineInstancetypeSpec. + :param host_devices: The host_devices of this V1alpha2VirtualMachineInstancetypeSpec. :type: list[V1HostDevice] """ @@ -145,10 +145,10 @@ def host_devices(self, host_devices): @property def io_threads_policy(self): """ - Gets the io_threads_policy of this V1alpha1VirtualMachineInstancetypeSpec. + Gets the io_threads_policy of this V1alpha2VirtualMachineInstancetypeSpec. Optionally defines the IOThreadsPolicy to be used by the instancetype. - :return: The io_threads_policy of this V1alpha1VirtualMachineInstancetypeSpec. + :return: The io_threads_policy of this V1alpha2VirtualMachineInstancetypeSpec. :rtype: str """ return self._io_threads_policy @@ -156,10 +156,10 @@ def io_threads_policy(self): @io_threads_policy.setter def io_threads_policy(self, io_threads_policy): """ - Sets the io_threads_policy of this V1alpha1VirtualMachineInstancetypeSpec. + Sets the io_threads_policy of this V1alpha2VirtualMachineInstancetypeSpec. Optionally defines the IOThreadsPolicy to be used by the instancetype. - :param io_threads_policy: The io_threads_policy of this V1alpha1VirtualMachineInstancetypeSpec. + :param io_threads_policy: The io_threads_policy of this V1alpha2VirtualMachineInstancetypeSpec. :type: str """ @@ -168,10 +168,10 @@ def io_threads_policy(self, io_threads_policy): @property def launch_security(self): """ - Gets the launch_security of this V1alpha1VirtualMachineInstancetypeSpec. + Gets the launch_security of this V1alpha2VirtualMachineInstancetypeSpec. Optionally defines the LaunchSecurity to be used by the instancetype. - :return: The launch_security of this V1alpha1VirtualMachineInstancetypeSpec. + :return: The launch_security of this V1alpha2VirtualMachineInstancetypeSpec. :rtype: V1LaunchSecurity """ return self._launch_security @@ -179,10 +179,10 @@ def launch_security(self): @launch_security.setter def launch_security(self, launch_security): """ - Sets the launch_security of this V1alpha1VirtualMachineInstancetypeSpec. + Sets the launch_security of this V1alpha2VirtualMachineInstancetypeSpec. Optionally defines the LaunchSecurity to be used by the instancetype. - :param launch_security: The launch_security of this V1alpha1VirtualMachineInstancetypeSpec. + :param launch_security: The launch_security of this V1alpha2VirtualMachineInstancetypeSpec. :type: V1LaunchSecurity """ @@ -191,22 +191,22 @@ def launch_security(self, launch_security): @property def memory(self): """ - Gets the memory of this V1alpha1VirtualMachineInstancetypeSpec. + Gets the memory of this V1alpha2VirtualMachineInstancetypeSpec. Required Memory related attributes of the instancetype. - :return: The memory of this V1alpha1VirtualMachineInstancetypeSpec. - :rtype: V1alpha1MemoryInstancetype + :return: The memory of this V1alpha2VirtualMachineInstancetypeSpec. + :rtype: V1alpha2MemoryInstancetype """ return self._memory @memory.setter def memory(self, memory): """ - Sets the memory of this V1alpha1VirtualMachineInstancetypeSpec. + Sets the memory of this V1alpha2VirtualMachineInstancetypeSpec. Required Memory related attributes of the instancetype. - :param memory: The memory of this V1alpha1VirtualMachineInstancetypeSpec. - :type: V1alpha1MemoryInstancetype + :param memory: The memory of this V1alpha2VirtualMachineInstancetypeSpec. + :type: V1alpha2MemoryInstancetype """ if memory is None: raise ValueError("Invalid value for `memory`, must not be `None`") @@ -255,7 +255,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineInstancetypeSpec): + if not isinstance(other, V1alpha2VirtualMachineInstancetypeSpec): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_preference.py b/kubevirt/models/v1alpha2_virtual_machine_preference.py similarity index 79% rename from kubevirt/models/v1alpha1_virtual_machine_preference.py rename to kubevirt/models/v1alpha2_virtual_machine_preference.py index ee8bbc01..39ddff98 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_preference.py +++ b/kubevirt/models/v1alpha2_virtual_machine_preference.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachinePreference(object): +class V1alpha2VirtualMachinePreference(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -34,7 +34,7 @@ class V1alpha1VirtualMachinePreference(object): 'api_version': 'str', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', - 'spec': 'V1alpha1VirtualMachinePreferenceSpec' + 'spec': 'V1alpha2VirtualMachinePreferenceSpec' } attribute_map = { @@ -46,7 +46,7 @@ class V1alpha1VirtualMachinePreference(object): def __init__(self, api_version=None, kind=None, metadata=None, spec=None): """ - V1alpha1VirtualMachinePreference - a model defined in Swagger + V1alpha2VirtualMachinePreference - a model defined in Swagger """ self._api_version = None @@ -65,10 +65,10 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None): @property def api_version(self): """ - Gets the api_version of this V1alpha1VirtualMachinePreference. + Gets the api_version of this V1alpha2VirtualMachinePreference. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha1VirtualMachinePreference. + :return: The api_version of this V1alpha2VirtualMachinePreference. :rtype: str """ return self._api_version @@ -76,10 +76,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha1VirtualMachinePreference. + Sets the api_version of this V1alpha2VirtualMachinePreference. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha1VirtualMachinePreference. + :param api_version: The api_version of this V1alpha2VirtualMachinePreference. :type: str """ @@ -88,10 +88,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V1alpha1VirtualMachinePreference. + Gets the kind of this V1alpha2VirtualMachinePreference. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha1VirtualMachinePreference. + :return: The kind of this V1alpha2VirtualMachinePreference. :rtype: str """ return self._kind @@ -99,10 +99,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha1VirtualMachinePreference. + Sets the kind of this V1alpha2VirtualMachinePreference. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha1VirtualMachinePreference. + :param kind: The kind of this V1alpha2VirtualMachinePreference. :type: str """ @@ -111,9 +111,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachinePreference. + Gets the metadata of this V1alpha2VirtualMachinePreference. - :return: The metadata of this V1alpha1VirtualMachinePreference. + :return: The metadata of this V1alpha2VirtualMachinePreference. :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -121,9 +121,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachinePreference. + Sets the metadata of this V1alpha2VirtualMachinePreference. - :param metadata: The metadata of this V1alpha1VirtualMachinePreference. + :param metadata: The metadata of this V1alpha2VirtualMachinePreference. :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ @@ -132,22 +132,22 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1alpha1VirtualMachinePreference. + Gets the spec of this V1alpha2VirtualMachinePreference. Required spec describing the preferences - :return: The spec of this V1alpha1VirtualMachinePreference. - :rtype: V1alpha1VirtualMachinePreferenceSpec + :return: The spec of this V1alpha2VirtualMachinePreference. + :rtype: V1alpha2VirtualMachinePreferenceSpec """ return self._spec @spec.setter def spec(self, spec): """ - Sets the spec of this V1alpha1VirtualMachinePreference. + Sets the spec of this V1alpha2VirtualMachinePreference. Required spec describing the preferences - :param spec: The spec of this V1alpha1VirtualMachinePreference. - :type: V1alpha1VirtualMachinePreferenceSpec + :param spec: The spec of this V1alpha2VirtualMachinePreference. + :type: V1alpha2VirtualMachinePreferenceSpec """ if spec is None: raise ValueError("Invalid value for `spec`, must not be `None`") @@ -196,7 +196,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachinePreference): + if not isinstance(other, V1alpha2VirtualMachinePreference): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_preference_list.py b/kubevirt/models/v1alpha2_virtual_machine_preference_list.py similarity index 79% rename from kubevirt/models/v1alpha1_virtual_machine_preference_list.py rename to kubevirt/models/v1alpha2_virtual_machine_preference_list.py index d1108d84..f3693f31 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_preference_list.py +++ b/kubevirt/models/v1alpha2_virtual_machine_preference_list.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachinePreferenceList(object): +class V1alpha2VirtualMachinePreferenceList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class V1alpha1VirtualMachinePreferenceList(object): """ swagger_types = { 'api_version': 'str', - 'items': 'list[V1alpha1VirtualMachinePreference]', + 'items': 'list[V1alpha2VirtualMachinePreference]', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' } @@ -46,7 +46,7 @@ class V1alpha1VirtualMachinePreferenceList(object): def __init__(self, api_version=None, items=None, kind=None, metadata=None): """ - V1alpha1VirtualMachinePreferenceList - a model defined in Swagger + V1alpha2VirtualMachinePreferenceList - a model defined in Swagger """ self._api_version = None @@ -65,10 +65,10 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): @property def api_version(self): """ - Gets the api_version of this V1alpha1VirtualMachinePreferenceList. + Gets the api_version of this V1alpha2VirtualMachinePreferenceList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha1VirtualMachinePreferenceList. + :return: The api_version of this V1alpha2VirtualMachinePreferenceList. :rtype: str """ return self._api_version @@ -76,10 +76,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha1VirtualMachinePreferenceList. + Sets the api_version of this V1alpha2VirtualMachinePreferenceList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha1VirtualMachinePreferenceList. + :param api_version: The api_version of this V1alpha2VirtualMachinePreferenceList. :type: str """ @@ -88,20 +88,20 @@ def api_version(self, api_version): @property def items(self): """ - Gets the items of this V1alpha1VirtualMachinePreferenceList. + Gets the items of this V1alpha2VirtualMachinePreferenceList. - :return: The items of this V1alpha1VirtualMachinePreferenceList. - :rtype: list[V1alpha1VirtualMachinePreference] + :return: The items of this V1alpha2VirtualMachinePreferenceList. + :rtype: list[V1alpha2VirtualMachinePreference] """ return self._items @items.setter def items(self, items): """ - Sets the items of this V1alpha1VirtualMachinePreferenceList. + Sets the items of this V1alpha2VirtualMachinePreferenceList. - :param items: The items of this V1alpha1VirtualMachinePreferenceList. - :type: list[V1alpha1VirtualMachinePreference] + :param items: The items of this V1alpha2VirtualMachinePreferenceList. + :type: list[V1alpha2VirtualMachinePreference] """ if items is None: raise ValueError("Invalid value for `items`, must not be `None`") @@ -111,10 +111,10 @@ def items(self, items): @property def kind(self): """ - Gets the kind of this V1alpha1VirtualMachinePreferenceList. + Gets the kind of this V1alpha2VirtualMachinePreferenceList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha1VirtualMachinePreferenceList. + :return: The kind of this V1alpha2VirtualMachinePreferenceList. :rtype: str """ return self._kind @@ -122,10 +122,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha1VirtualMachinePreferenceList. + Sets the kind of this V1alpha2VirtualMachinePreferenceList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha1VirtualMachinePreferenceList. + :param kind: The kind of this V1alpha2VirtualMachinePreferenceList. :type: str """ @@ -134,9 +134,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachinePreferenceList. + Gets the metadata of this V1alpha2VirtualMachinePreferenceList. - :return: The metadata of this V1alpha1VirtualMachinePreferenceList. + :return: The metadata of this V1alpha2VirtualMachinePreferenceList. :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @@ -144,9 +144,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachinePreferenceList. + Sets the metadata of this V1alpha2VirtualMachinePreferenceList. - :param metadata: The metadata of this V1alpha1VirtualMachinePreferenceList. + :param metadata: The metadata of this V1alpha2VirtualMachinePreferenceList. :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ @@ -194,7 +194,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachinePreferenceList): + if not isinstance(other, V1alpha2VirtualMachinePreferenceList): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_preference_spec.py b/kubevirt/models/v1alpha2_virtual_machine_preference_spec.py similarity index 70% rename from kubevirt/models/v1alpha1_virtual_machine_preference_spec.py rename to kubevirt/models/v1alpha2_virtual_machine_preference_spec.py index 556ee418..d34793d8 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_preference_spec.py +++ b/kubevirt/models/v1alpha2_virtual_machine_preference_spec.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachinePreferenceSpec(object): +class V1alpha2VirtualMachinePreferenceSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,12 +31,12 @@ class V1alpha1VirtualMachinePreferenceSpec(object): and the value is json key in definition. """ swagger_types = { - 'clock': 'V1alpha1ClockPreferences', - 'cpu': 'V1alpha1CPUPreferences', - 'devices': 'V1alpha1DevicePreferences', - 'features': 'V1alpha1FeaturePreferences', - 'firmware': 'V1alpha1FirmwarePreferences', - 'machine': 'V1alpha1MachinePreferences' + 'clock': 'V1alpha2ClockPreferences', + 'cpu': 'V1alpha2CPUPreferences', + 'devices': 'V1alpha2DevicePreferences', + 'features': 'V1alpha2FeaturePreferences', + 'firmware': 'V1alpha2FirmwarePreferences', + 'machine': 'V1alpha2MachinePreferences' } attribute_map = { @@ -50,7 +50,7 @@ class V1alpha1VirtualMachinePreferenceSpec(object): def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None): """ - V1alpha1VirtualMachinePreferenceSpec - a model defined in Swagger + V1alpha2VirtualMachinePreferenceSpec - a model defined in Swagger """ self._clock = None @@ -76,22 +76,22 @@ def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=N @property def clock(self): """ - Gets the clock of this V1alpha1VirtualMachinePreferenceSpec. + Gets the clock of this V1alpha2VirtualMachinePreferenceSpec. Clock optionally defines preferences associated with the Clock attribute of a VirtualMachineInstance DomainSpec - :return: The clock of this V1alpha1VirtualMachinePreferenceSpec. - :rtype: V1alpha1ClockPreferences + :return: The clock of this V1alpha2VirtualMachinePreferenceSpec. + :rtype: V1alpha2ClockPreferences """ return self._clock @clock.setter def clock(self, clock): """ - Sets the clock of this V1alpha1VirtualMachinePreferenceSpec. + Sets the clock of this V1alpha2VirtualMachinePreferenceSpec. Clock optionally defines preferences associated with the Clock attribute of a VirtualMachineInstance DomainSpec - :param clock: The clock of this V1alpha1VirtualMachinePreferenceSpec. - :type: V1alpha1ClockPreferences + :param clock: The clock of this V1alpha2VirtualMachinePreferenceSpec. + :type: V1alpha2ClockPreferences """ self._clock = clock @@ -99,22 +99,22 @@ def clock(self, clock): @property def cpu(self): """ - Gets the cpu of this V1alpha1VirtualMachinePreferenceSpec. + Gets the cpu of this V1alpha2VirtualMachinePreferenceSpec. CPU optionally defines preferences associated with the CPU attribute of a VirtualMachineInstance DomainSpec - :return: The cpu of this V1alpha1VirtualMachinePreferenceSpec. - :rtype: V1alpha1CPUPreferences + :return: The cpu of this V1alpha2VirtualMachinePreferenceSpec. + :rtype: V1alpha2CPUPreferences """ return self._cpu @cpu.setter def cpu(self, cpu): """ - Sets the cpu of this V1alpha1VirtualMachinePreferenceSpec. + Sets the cpu of this V1alpha2VirtualMachinePreferenceSpec. CPU optionally defines preferences associated with the CPU attribute of a VirtualMachineInstance DomainSpec - :param cpu: The cpu of this V1alpha1VirtualMachinePreferenceSpec. - :type: V1alpha1CPUPreferences + :param cpu: The cpu of this V1alpha2VirtualMachinePreferenceSpec. + :type: V1alpha2CPUPreferences """ self._cpu = cpu @@ -122,22 +122,22 @@ def cpu(self, cpu): @property def devices(self): """ - Gets the devices of this V1alpha1VirtualMachinePreferenceSpec. + Gets the devices of this V1alpha2VirtualMachinePreferenceSpec. Devices optionally defines preferences associated with the Devices attribute of a VirtualMachineInstance DomainSpec - :return: The devices of this V1alpha1VirtualMachinePreferenceSpec. - :rtype: V1alpha1DevicePreferences + :return: The devices of this V1alpha2VirtualMachinePreferenceSpec. + :rtype: V1alpha2DevicePreferences """ return self._devices @devices.setter def devices(self, devices): """ - Sets the devices of this V1alpha1VirtualMachinePreferenceSpec. + Sets the devices of this V1alpha2VirtualMachinePreferenceSpec. Devices optionally defines preferences associated with the Devices attribute of a VirtualMachineInstance DomainSpec - :param devices: The devices of this V1alpha1VirtualMachinePreferenceSpec. - :type: V1alpha1DevicePreferences + :param devices: The devices of this V1alpha2VirtualMachinePreferenceSpec. + :type: V1alpha2DevicePreferences """ self._devices = devices @@ -145,22 +145,22 @@ def devices(self, devices): @property def features(self): """ - Gets the features of this V1alpha1VirtualMachinePreferenceSpec. + Gets the features of this V1alpha2VirtualMachinePreferenceSpec. Features optionally defines preferences associated with the Features attribute of a VirtualMachineInstance DomainSpec - :return: The features of this V1alpha1VirtualMachinePreferenceSpec. - :rtype: V1alpha1FeaturePreferences + :return: The features of this V1alpha2VirtualMachinePreferenceSpec. + :rtype: V1alpha2FeaturePreferences """ return self._features @features.setter def features(self, features): """ - Sets the features of this V1alpha1VirtualMachinePreferenceSpec. + Sets the features of this V1alpha2VirtualMachinePreferenceSpec. Features optionally defines preferences associated with the Features attribute of a VirtualMachineInstance DomainSpec - :param features: The features of this V1alpha1VirtualMachinePreferenceSpec. - :type: V1alpha1FeaturePreferences + :param features: The features of this V1alpha2VirtualMachinePreferenceSpec. + :type: V1alpha2FeaturePreferences """ self._features = features @@ -168,22 +168,22 @@ def features(self, features): @property def firmware(self): """ - Gets the firmware of this V1alpha1VirtualMachinePreferenceSpec. + Gets the firmware of this V1alpha2VirtualMachinePreferenceSpec. Firmware optionally defines preferences associated with the Firmware attribute of a VirtualMachineInstance DomainSpec - :return: The firmware of this V1alpha1VirtualMachinePreferenceSpec. - :rtype: V1alpha1FirmwarePreferences + :return: The firmware of this V1alpha2VirtualMachinePreferenceSpec. + :rtype: V1alpha2FirmwarePreferences """ return self._firmware @firmware.setter def firmware(self, firmware): """ - Sets the firmware of this V1alpha1VirtualMachinePreferenceSpec. + Sets the firmware of this V1alpha2VirtualMachinePreferenceSpec. Firmware optionally defines preferences associated with the Firmware attribute of a VirtualMachineInstance DomainSpec - :param firmware: The firmware of this V1alpha1VirtualMachinePreferenceSpec. - :type: V1alpha1FirmwarePreferences + :param firmware: The firmware of this V1alpha2VirtualMachinePreferenceSpec. + :type: V1alpha2FirmwarePreferences """ self._firmware = firmware @@ -191,22 +191,22 @@ def firmware(self, firmware): @property def machine(self): """ - Gets the machine of this V1alpha1VirtualMachinePreferenceSpec. + Gets the machine of this V1alpha2VirtualMachinePreferenceSpec. Machine optionally defines preferences associated with the Machine attribute of a VirtualMachineInstance DomainSpec - :return: The machine of this V1alpha1VirtualMachinePreferenceSpec. - :rtype: V1alpha1MachinePreferences + :return: The machine of this V1alpha2VirtualMachinePreferenceSpec. + :rtype: V1alpha2MachinePreferences """ return self._machine @machine.setter def machine(self, machine): """ - Sets the machine of this V1alpha1VirtualMachinePreferenceSpec. + Sets the machine of this V1alpha2VirtualMachinePreferenceSpec. Machine optionally defines preferences associated with the Machine attribute of a VirtualMachineInstance DomainSpec - :param machine: The machine of this V1alpha1VirtualMachinePreferenceSpec. - :type: V1alpha1MachinePreferences + :param machine: The machine of this V1alpha2VirtualMachinePreferenceSpec. + :type: V1alpha2MachinePreferences """ self._machine = machine @@ -253,7 +253,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachinePreferenceSpec): + if not isinstance(other, V1alpha2VirtualMachinePreferenceSpec): return False return self.__dict__ == other.__dict__ diff --git a/setup.py b/setup.py index 38ac47d7..73c0135b 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.57.0-257-g9ec8c6040" +VERSION = "v0.57.0-270-g661b2dc80" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index c68c74e2..76e0434f 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.57.0-257-g9ec8c6040" +"packageVersion": "v0.57.0-270-g661b2dc80" } diff --git a/test/test_default_api.py b/test/test_default_api.py index d16b0190..f2591c37 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -535,9 +535,9 @@ def test_get_api_resources_export_kubevirt_io_v1alpha1(self): """ pass - def test_get_api_resources_instancetype_kubevirt_io_v1alpha1(self): + def test_get_api_resources_instancetype_kubevirt_io_v1alpha2(self): """ - Test case for get_api_resources_instancetype_kubevirt_io_v1alpha1 + Test case for get_api_resources_instancetype_kubevirt_io_v1alpha2 """ diff --git a/test/test_v1alpha1_feature_preferences.py b/test/test_v1alpha1_feature_preferences.py deleted file mode 100644 index cea75fe4..00000000 --- a/test/test_v1alpha1_feature_preferences.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_feature_preferences import V1alpha1FeaturePreferences - - -class TestV1alpha1FeaturePreferences(unittest.TestCase): - """ V1alpha1FeaturePreferences unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1FeaturePreferences(self): - """ - Test V1alpha1FeaturePreferences - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_feature_preferences.V1alpha1FeaturePreferences() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_firmware_preferences.py b/test/test_v1alpha1_firmware_preferences.py deleted file mode 100644 index eaa23a52..00000000 --- a/test/test_v1alpha1_firmware_preferences.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_firmware_preferences import V1alpha1FirmwarePreferences - - -class TestV1alpha1FirmwarePreferences(unittest.TestCase): - """ V1alpha1FirmwarePreferences unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1FirmwarePreferences(self): - """ - Test V1alpha1FirmwarePreferences - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_firmware_preferences.V1alpha1FirmwarePreferences() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_machine_preferences.py b/test/test_v1alpha1_machine_preferences.py deleted file mode 100644 index dac92b30..00000000 --- a/test/test_v1alpha1_machine_preferences.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_machine_preferences import V1alpha1MachinePreferences - - -class TestV1alpha1MachinePreferences(unittest.TestCase): - """ V1alpha1MachinePreferences unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1MachinePreferences(self): - """ - Test V1alpha1MachinePreferences - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_machine_preferences.V1alpha1MachinePreferences() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_memory_instancetype.py b/test/test_v1alpha1_memory_instancetype.py deleted file mode 100644 index 96130ab0..00000000 --- a/test/test_v1alpha1_memory_instancetype.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_memory_instancetype import V1alpha1MemoryInstancetype - - -class TestV1alpha1MemoryInstancetype(unittest.TestCase): - """ V1alpha1MemoryInstancetype unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1MemoryInstancetype(self): - """ - Test V1alpha1MemoryInstancetype - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_memory_instancetype.V1alpha1MemoryInstancetype() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_preference.py b/test/test_v1alpha1_virtual_machine_preference.py deleted file mode 100644 index 9d78edec..00000000 --- a/test/test_v1alpha1_virtual_machine_preference.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_preference import V1alpha1VirtualMachinePreference - - -class TestV1alpha1VirtualMachinePreference(unittest.TestCase): - """ V1alpha1VirtualMachinePreference unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachinePreference(self): - """ - Test V1alpha1VirtualMachinePreference - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_preference.V1alpha1VirtualMachinePreference() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_clock_preferences.py b/test/test_v1alpha2_clock_preferences.py similarity index 64% rename from test/test_v1alpha1_clock_preferences.py rename to test/test_v1alpha2_clock_preferences.py index 9a301b4e..38f84c8c 100644 --- a/test/test_v1alpha1_clock_preferences.py +++ b/test/test_v1alpha2_clock_preferences.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_clock_preferences import V1alpha1ClockPreferences +from kubevirt.models.v1alpha2_clock_preferences import V1alpha2ClockPreferences -class TestV1alpha1ClockPreferences(unittest.TestCase): - """ V1alpha1ClockPreferences unit test stubs """ +class TestV1alpha2ClockPreferences(unittest.TestCase): + """ V1alpha2ClockPreferences unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1ClockPreferences(self): + def testV1alpha2ClockPreferences(self): """ - Test V1alpha1ClockPreferences + Test V1alpha2ClockPreferences """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_clock_preferences.V1alpha1ClockPreferences() + #model = kubevirt.models.v1alpha2_clock_preferences.V1alpha2ClockPreferences() pass diff --git a/test/test_v1alpha1_cpu_instancetype.py b/test/test_v1alpha2_cpu_instancetype.py similarity index 65% rename from test/test_v1alpha1_cpu_instancetype.py rename to test/test_v1alpha2_cpu_instancetype.py index 3680fd3b..2b5f54e1 100644 --- a/test/test_v1alpha1_cpu_instancetype.py +++ b/test/test_v1alpha2_cpu_instancetype.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_cpu_instancetype import V1alpha1CPUInstancetype +from kubevirt.models.v1alpha2_cpu_instancetype import V1alpha2CPUInstancetype -class TestV1alpha1CPUInstancetype(unittest.TestCase): - """ V1alpha1CPUInstancetype unit test stubs """ +class TestV1alpha2CPUInstancetype(unittest.TestCase): + """ V1alpha2CPUInstancetype unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1CPUInstancetype(self): + def testV1alpha2CPUInstancetype(self): """ - Test V1alpha1CPUInstancetype + Test V1alpha2CPUInstancetype """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_cpu_instancetype.V1alpha1CPUInstancetype() + #model = kubevirt.models.v1alpha2_cpu_instancetype.V1alpha2CPUInstancetype() pass diff --git a/test/test_v1alpha1_cpu_preferences.py b/test/test_v1alpha2_cpu_preferences.py similarity index 65% rename from test/test_v1alpha1_cpu_preferences.py rename to test/test_v1alpha2_cpu_preferences.py index c1cff36c..cb7021f7 100644 --- a/test/test_v1alpha1_cpu_preferences.py +++ b/test/test_v1alpha2_cpu_preferences.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_cpu_preferences import V1alpha1CPUPreferences +from kubevirt.models.v1alpha2_cpu_preferences import V1alpha2CPUPreferences -class TestV1alpha1CPUPreferences(unittest.TestCase): - """ V1alpha1CPUPreferences unit test stubs """ +class TestV1alpha2CPUPreferences(unittest.TestCase): + """ V1alpha2CPUPreferences unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1CPUPreferences(self): + def testV1alpha2CPUPreferences(self): """ - Test V1alpha1CPUPreferences + Test V1alpha2CPUPreferences """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_cpu_preferences.V1alpha1CPUPreferences() + #model = kubevirt.models.v1alpha2_cpu_preferences.V1alpha2CPUPreferences() pass diff --git a/test/test_v1alpha1_device_preferences.py b/test/test_v1alpha2_device_preferences.py similarity index 64% rename from test/test_v1alpha1_device_preferences.py rename to test/test_v1alpha2_device_preferences.py index 72588485..f9302357 100644 --- a/test/test_v1alpha1_device_preferences.py +++ b/test/test_v1alpha2_device_preferences.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_device_preferences import V1alpha1DevicePreferences +from kubevirt.models.v1alpha2_device_preferences import V1alpha2DevicePreferences -class TestV1alpha1DevicePreferences(unittest.TestCase): - """ V1alpha1DevicePreferences unit test stubs """ +class TestV1alpha2DevicePreferences(unittest.TestCase): + """ V1alpha2DevicePreferences unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1DevicePreferences(self): + def testV1alpha2DevicePreferences(self): """ - Test V1alpha1DevicePreferences + Test V1alpha2DevicePreferences """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_device_preferences.V1alpha1DevicePreferences() + #model = kubevirt.models.v1alpha2_device_preferences.V1alpha2DevicePreferences() pass diff --git a/test/test_v1alpha2_feature_preferences.py b/test/test_v1alpha2_feature_preferences.py new file mode 100644 index 00000000..f072f676 --- /dev/null +++ b/test/test_v1alpha2_feature_preferences.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha2_feature_preferences import V1alpha2FeaturePreferences + + +class TestV1alpha2FeaturePreferences(unittest.TestCase): + """ V1alpha2FeaturePreferences unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha2FeaturePreferences(self): + """ + Test V1alpha2FeaturePreferences + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha2_feature_preferences.V1alpha2FeaturePreferences() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha2_firmware_preferences.py b/test/test_v1alpha2_firmware_preferences.py new file mode 100644 index 00000000..b6b560af --- /dev/null +++ b/test/test_v1alpha2_firmware_preferences.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha2_firmware_preferences import V1alpha2FirmwarePreferences + + +class TestV1alpha2FirmwarePreferences(unittest.TestCase): + """ V1alpha2FirmwarePreferences unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha2FirmwarePreferences(self): + """ + Test V1alpha2FirmwarePreferences + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha2_firmware_preferences.V1alpha2FirmwarePreferences() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha2_machine_preferences.py b/test/test_v1alpha2_machine_preferences.py new file mode 100644 index 00000000..ef00a913 --- /dev/null +++ b/test/test_v1alpha2_machine_preferences.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha2_machine_preferences import V1alpha2MachinePreferences + + +class TestV1alpha2MachinePreferences(unittest.TestCase): + """ V1alpha2MachinePreferences unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha2MachinePreferences(self): + """ + Test V1alpha2MachinePreferences + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha2_machine_preferences.V1alpha2MachinePreferences() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha2_memory_instancetype.py b/test/test_v1alpha2_memory_instancetype.py new file mode 100644 index 00000000..69c5cd57 --- /dev/null +++ b/test/test_v1alpha2_memory_instancetype.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha2_memory_instancetype import V1alpha2MemoryInstancetype + + +class TestV1alpha2MemoryInstancetype(unittest.TestCase): + """ V1alpha2MemoryInstancetype unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha2MemoryInstancetype(self): + """ + Test V1alpha2MemoryInstancetype + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha2_memory_instancetype.V1alpha2MemoryInstancetype() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_cluster_instancetype.py b/test/test_v1alpha2_virtual_machine_cluster_instancetype.py similarity index 56% rename from test/test_v1alpha1_virtual_machine_cluster_instancetype.py rename to test/test_v1alpha2_virtual_machine_cluster_instancetype.py index 14499587..c1340098 100644 --- a/test/test_v1alpha1_virtual_machine_cluster_instancetype.py +++ b/test/test_v1alpha2_virtual_machine_cluster_instancetype.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_cluster_instancetype import V1alpha1VirtualMachineClusterInstancetype +from kubevirt.models.v1alpha2_virtual_machine_cluster_instancetype import V1alpha2VirtualMachineClusterInstancetype -class TestV1alpha1VirtualMachineClusterInstancetype(unittest.TestCase): - """ V1alpha1VirtualMachineClusterInstancetype unit test stubs """ +class TestV1alpha2VirtualMachineClusterInstancetype(unittest.TestCase): + """ V1alpha2VirtualMachineClusterInstancetype unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachineClusterInstancetype(self): + def testV1alpha2VirtualMachineClusterInstancetype(self): """ - Test V1alpha1VirtualMachineClusterInstancetype + Test V1alpha2VirtualMachineClusterInstancetype """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_cluster_instancetype.V1alpha1VirtualMachineClusterInstancetype() + #model = kubevirt.models.v1alpha2_virtual_machine_cluster_instancetype.V1alpha2VirtualMachineClusterInstancetype() pass diff --git a/test/test_v1alpha1_virtual_machine_cluster_instancetype_list.py b/test/test_v1alpha2_virtual_machine_cluster_instancetype_list.py similarity index 56% rename from test/test_v1alpha1_virtual_machine_cluster_instancetype_list.py rename to test/test_v1alpha2_virtual_machine_cluster_instancetype_list.py index a8ec0246..7f076689 100644 --- a/test/test_v1alpha1_virtual_machine_cluster_instancetype_list.py +++ b/test/test_v1alpha2_virtual_machine_cluster_instancetype_list.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_cluster_instancetype_list import V1alpha1VirtualMachineClusterInstancetypeList +from kubevirt.models.v1alpha2_virtual_machine_cluster_instancetype_list import V1alpha2VirtualMachineClusterInstancetypeList -class TestV1alpha1VirtualMachineClusterInstancetypeList(unittest.TestCase): - """ V1alpha1VirtualMachineClusterInstancetypeList unit test stubs """ +class TestV1alpha2VirtualMachineClusterInstancetypeList(unittest.TestCase): + """ V1alpha2VirtualMachineClusterInstancetypeList unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachineClusterInstancetypeList(self): + def testV1alpha2VirtualMachineClusterInstancetypeList(self): """ - Test V1alpha1VirtualMachineClusterInstancetypeList + Test V1alpha2VirtualMachineClusterInstancetypeList """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_cluster_instancetype_list.V1alpha1VirtualMachineClusterInstancetypeList() + #model = kubevirt.models.v1alpha2_virtual_machine_cluster_instancetype_list.V1alpha2VirtualMachineClusterInstancetypeList() pass diff --git a/test/test_v1alpha1_virtual_machine_cluster_preference.py b/test/test_v1alpha2_virtual_machine_cluster_preference.py similarity index 57% rename from test/test_v1alpha1_virtual_machine_cluster_preference.py rename to test/test_v1alpha2_virtual_machine_cluster_preference.py index d725cdb8..2c1076f4 100644 --- a/test/test_v1alpha1_virtual_machine_cluster_preference.py +++ b/test/test_v1alpha2_virtual_machine_cluster_preference.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_cluster_preference import V1alpha1VirtualMachineClusterPreference +from kubevirt.models.v1alpha2_virtual_machine_cluster_preference import V1alpha2VirtualMachineClusterPreference -class TestV1alpha1VirtualMachineClusterPreference(unittest.TestCase): - """ V1alpha1VirtualMachineClusterPreference unit test stubs """ +class TestV1alpha2VirtualMachineClusterPreference(unittest.TestCase): + """ V1alpha2VirtualMachineClusterPreference unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachineClusterPreference(self): + def testV1alpha2VirtualMachineClusterPreference(self): """ - Test V1alpha1VirtualMachineClusterPreference + Test V1alpha2VirtualMachineClusterPreference """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_cluster_preference.V1alpha1VirtualMachineClusterPreference() + #model = kubevirt.models.v1alpha2_virtual_machine_cluster_preference.V1alpha2VirtualMachineClusterPreference() pass diff --git a/test/test_v1alpha1_virtual_machine_cluster_preference_list.py b/test/test_v1alpha2_virtual_machine_cluster_preference_list.py similarity index 56% rename from test/test_v1alpha1_virtual_machine_cluster_preference_list.py rename to test/test_v1alpha2_virtual_machine_cluster_preference_list.py index c831523f..5e069762 100644 --- a/test/test_v1alpha1_virtual_machine_cluster_preference_list.py +++ b/test/test_v1alpha2_virtual_machine_cluster_preference_list.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_cluster_preference_list import V1alpha1VirtualMachineClusterPreferenceList +from kubevirt.models.v1alpha2_virtual_machine_cluster_preference_list import V1alpha2VirtualMachineClusterPreferenceList -class TestV1alpha1VirtualMachineClusterPreferenceList(unittest.TestCase): - """ V1alpha1VirtualMachineClusterPreferenceList unit test stubs """ +class TestV1alpha2VirtualMachineClusterPreferenceList(unittest.TestCase): + """ V1alpha2VirtualMachineClusterPreferenceList unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachineClusterPreferenceList(self): + def testV1alpha2VirtualMachineClusterPreferenceList(self): """ - Test V1alpha1VirtualMachineClusterPreferenceList + Test V1alpha2VirtualMachineClusterPreferenceList """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_cluster_preference_list.V1alpha1VirtualMachineClusterPreferenceList() + #model = kubevirt.models.v1alpha2_virtual_machine_cluster_preference_list.V1alpha2VirtualMachineClusterPreferenceList() pass diff --git a/test/test_v1alpha1_virtual_machine_instancetype.py b/test/test_v1alpha2_virtual_machine_instancetype.py similarity index 58% rename from test/test_v1alpha1_virtual_machine_instancetype.py rename to test/test_v1alpha2_virtual_machine_instancetype.py index 472b58b8..0b7e7d2b 100644 --- a/test/test_v1alpha1_virtual_machine_instancetype.py +++ b/test/test_v1alpha2_virtual_machine_instancetype.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_instancetype import V1alpha1VirtualMachineInstancetype +from kubevirt.models.v1alpha2_virtual_machine_instancetype import V1alpha2VirtualMachineInstancetype -class TestV1alpha1VirtualMachineInstancetype(unittest.TestCase): - """ V1alpha1VirtualMachineInstancetype unit test stubs """ +class TestV1alpha2VirtualMachineInstancetype(unittest.TestCase): + """ V1alpha2VirtualMachineInstancetype unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachineInstancetype(self): + def testV1alpha2VirtualMachineInstancetype(self): """ - Test V1alpha1VirtualMachineInstancetype + Test V1alpha2VirtualMachineInstancetype """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_instancetype.V1alpha1VirtualMachineInstancetype() + #model = kubevirt.models.v1alpha2_virtual_machine_instancetype.V1alpha2VirtualMachineInstancetype() pass diff --git a/test/test_v1alpha1_virtual_machine_instancetype_list.py b/test/test_v1alpha2_virtual_machine_instancetype_list.py similarity index 57% rename from test/test_v1alpha1_virtual_machine_instancetype_list.py rename to test/test_v1alpha2_virtual_machine_instancetype_list.py index 4d1dd693..7e128325 100644 --- a/test/test_v1alpha1_virtual_machine_instancetype_list.py +++ b/test/test_v1alpha2_virtual_machine_instancetype_list.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_instancetype_list import V1alpha1VirtualMachineInstancetypeList +from kubevirt.models.v1alpha2_virtual_machine_instancetype_list import V1alpha2VirtualMachineInstancetypeList -class TestV1alpha1VirtualMachineInstancetypeList(unittest.TestCase): - """ V1alpha1VirtualMachineInstancetypeList unit test stubs """ +class TestV1alpha2VirtualMachineInstancetypeList(unittest.TestCase): + """ V1alpha2VirtualMachineInstancetypeList unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachineInstancetypeList(self): + def testV1alpha2VirtualMachineInstancetypeList(self): """ - Test V1alpha1VirtualMachineInstancetypeList + Test V1alpha2VirtualMachineInstancetypeList """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_instancetype_list.V1alpha1VirtualMachineInstancetypeList() + #model = kubevirt.models.v1alpha2_virtual_machine_instancetype_list.V1alpha2VirtualMachineInstancetypeList() pass diff --git a/test/test_v1alpha1_virtual_machine_instancetype_spec.py b/test/test_v1alpha2_virtual_machine_instancetype_spec.py similarity index 57% rename from test/test_v1alpha1_virtual_machine_instancetype_spec.py rename to test/test_v1alpha2_virtual_machine_instancetype_spec.py index 740c04d4..f3973464 100644 --- a/test/test_v1alpha1_virtual_machine_instancetype_spec.py +++ b/test/test_v1alpha2_virtual_machine_instancetype_spec.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_instancetype_spec import V1alpha1VirtualMachineInstancetypeSpec +from kubevirt.models.v1alpha2_virtual_machine_instancetype_spec import V1alpha2VirtualMachineInstancetypeSpec -class TestV1alpha1VirtualMachineInstancetypeSpec(unittest.TestCase): - """ V1alpha1VirtualMachineInstancetypeSpec unit test stubs """ +class TestV1alpha2VirtualMachineInstancetypeSpec(unittest.TestCase): + """ V1alpha2VirtualMachineInstancetypeSpec unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachineInstancetypeSpec(self): + def testV1alpha2VirtualMachineInstancetypeSpec(self): """ - Test V1alpha1VirtualMachineInstancetypeSpec + Test V1alpha2VirtualMachineInstancetypeSpec """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_instancetype_spec.V1alpha1VirtualMachineInstancetypeSpec() + #model = kubevirt.models.v1alpha2_virtual_machine_instancetype_spec.V1alpha2VirtualMachineInstancetypeSpec() pass diff --git a/test/test_v1alpha2_virtual_machine_preference.py b/test/test_v1alpha2_virtual_machine_preference.py new file mode 100644 index 00000000..9da1e6c3 --- /dev/null +++ b/test/test_v1alpha2_virtual_machine_preference.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha2_virtual_machine_preference import V1alpha2VirtualMachinePreference + + +class TestV1alpha2VirtualMachinePreference(unittest.TestCase): + """ V1alpha2VirtualMachinePreference unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha2VirtualMachinePreference(self): + """ + Test V1alpha2VirtualMachinePreference + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha2_virtual_machine_preference.V1alpha2VirtualMachinePreference() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_preference_list.py b/test/test_v1alpha2_virtual_machine_preference_list.py similarity index 57% rename from test/test_v1alpha1_virtual_machine_preference_list.py rename to test/test_v1alpha2_virtual_machine_preference_list.py index e9bfd1ed..7488fe06 100644 --- a/test/test_v1alpha1_virtual_machine_preference_list.py +++ b/test/test_v1alpha2_virtual_machine_preference_list.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_preference_list import V1alpha1VirtualMachinePreferenceList +from kubevirt.models.v1alpha2_virtual_machine_preference_list import V1alpha2VirtualMachinePreferenceList -class TestV1alpha1VirtualMachinePreferenceList(unittest.TestCase): - """ V1alpha1VirtualMachinePreferenceList unit test stubs """ +class TestV1alpha2VirtualMachinePreferenceList(unittest.TestCase): + """ V1alpha2VirtualMachinePreferenceList unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachinePreferenceList(self): + def testV1alpha2VirtualMachinePreferenceList(self): """ - Test V1alpha1VirtualMachinePreferenceList + Test V1alpha2VirtualMachinePreferenceList """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_preference_list.V1alpha1VirtualMachinePreferenceList() + #model = kubevirt.models.v1alpha2_virtual_machine_preference_list.V1alpha2VirtualMachinePreferenceList() pass diff --git a/test/test_v1alpha1_virtual_machine_preference_spec.py b/test/test_v1alpha2_virtual_machine_preference_spec.py similarity index 57% rename from test/test_v1alpha1_virtual_machine_preference_spec.py rename to test/test_v1alpha2_virtual_machine_preference_spec.py index 5d0b5b39..eb62eb3d 100644 --- a/test/test_v1alpha1_virtual_machine_preference_spec.py +++ b/test/test_v1alpha2_virtual_machine_preference_spec.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_preference_spec import V1alpha1VirtualMachinePreferenceSpec +from kubevirt.models.v1alpha2_virtual_machine_preference_spec import V1alpha2VirtualMachinePreferenceSpec -class TestV1alpha1VirtualMachinePreferenceSpec(unittest.TestCase): - """ V1alpha1VirtualMachinePreferenceSpec unit test stubs """ +class TestV1alpha2VirtualMachinePreferenceSpec(unittest.TestCase): + """ V1alpha2VirtualMachinePreferenceSpec unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachinePreferenceSpec(self): + def testV1alpha2VirtualMachinePreferenceSpec(self): """ - Test V1alpha1VirtualMachinePreferenceSpec + Test V1alpha2VirtualMachinePreferenceSpec """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_preference_spec.V1alpha1VirtualMachinePreferenceSpec() + #model = kubevirt.models.v1alpha2_virtual_machine_preference_spec.V1alpha2VirtualMachinePreferenceSpec() pass From cf217dcad1de251a3b0c688cb30392108453af68 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 12 Oct 2022 01:38:36 +0000 Subject: [PATCH 295/521] Client Python update by KubeVirt Prow build 1579998341004005376 --- README.md | 2 +- docs/V1alpha1VirtualMachineExportSpec.md | 1 + docs/V1alpha1VirtualMachineExportStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1alpha1_virtual_machine_export_spec.py | 34 +++++++++++++++++-- .../v1alpha1_virtual_machine_export_status.py | 34 +++++++++++++++++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 70 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 37de54c1..3389d2d4 100644 --- a/README.md +++ b/README.md @@ -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: v0.57.0-270-g661b2dc80 +- Package version: v0.58.0-rc.0-60-g84cf20513 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1alpha1VirtualMachineExportSpec.md b/docs/V1alpha1VirtualMachineExportSpec.md index 6cac886e..7f7f8c78 100644 --- a/docs/V1alpha1VirtualMachineExportSpec.md +++ b/docs/V1alpha1VirtualMachineExportSpec.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | | **token_secret_ref** | **str** | TokenSecretRef is the name of the custom-defined secret that contains the token used by the export server pod | [optional] +**ttl_duration** | [**K8sIoApimachineryPkgApisMetaV1Duration**](K8sIoApimachineryPkgApisMetaV1Duration.md) | ttlDuration limits the lifetime of an export If this field is set, after this duration has passed from counting from CreationTimestamp, the export is eligible to be automatically deleted. If this field is omitted, a reasonable default is applied. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineExportStatus.md b/docs/V1alpha1VirtualMachineExportStatus.md index 23ce3aa6..6fea5b43 100644 --- a/docs/V1alpha1VirtualMachineExportStatus.md +++ b/docs/V1alpha1VirtualMachineExportStatus.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **phase** | **str** | | [optional] **service_name** | **str** | ServiceName is the name of the service created associated with the Virtual Machine export. It will be used to create the internal URLs for downloading the images | [optional] **token_secret_ref** | **str** | TokenSecretRef is the name of the secret that contains the token used by the export server pod | [optional] +**ttl_expiration_time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | The time at which the VM Export will be completely removed according to specified TTL Formula is CreationTimestamp + TTL | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index fbbd961e..3672edc8 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.57.0-270-g661b2dc80" + release_note="Auto-generated client v0.58.0-rc.0-60-g84cf20513" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 1d9eea56..98a77c9f 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.57.0-270-g661b2dc80/python' + self.user_agent = 'Swagger-Codegen/v0.58.0-rc.0-60-g84cf20513/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 0d392875..e8773385 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.57.0-270-g661b2dc80".\ + "SDK Package Version: v0.58.0-rc.0-60-g84cf20513".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1alpha1_virtual_machine_export_spec.py b/kubevirt/models/v1alpha1_virtual_machine_export_spec.py index 60bebf6e..815a46bf 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_export_spec.py +++ b/kubevirt/models/v1alpha1_virtual_machine_export_spec.py @@ -32,25 +32,30 @@ class V1alpha1VirtualMachineExportSpec(object): """ swagger_types = { 'source': 'K8sIoApiCoreV1TypedLocalObjectReference', - 'token_secret_ref': 'str' + 'token_secret_ref': 'str', + 'ttl_duration': 'K8sIoApimachineryPkgApisMetaV1Duration' } attribute_map = { 'source': 'source', - 'token_secret_ref': 'tokenSecretRef' + 'token_secret_ref': 'tokenSecretRef', + 'ttl_duration': 'ttlDuration' } - def __init__(self, source=None, token_secret_ref=None): + def __init__(self, source=None, token_secret_ref=None, ttl_duration=None): """ V1alpha1VirtualMachineExportSpec - a model defined in Swagger """ self._source = None self._token_secret_ref = None + self._ttl_duration = None self.source = source if token_secret_ref is not None: self.token_secret_ref = token_secret_ref + if ttl_duration is not None: + self.ttl_duration = ttl_duration @property def source(self): @@ -98,6 +103,29 @@ def token_secret_ref(self, token_secret_ref): self._token_secret_ref = token_secret_ref + @property + def ttl_duration(self): + """ + Gets the ttl_duration of this V1alpha1VirtualMachineExportSpec. + ttlDuration limits the lifetime of an export If this field is set, after this duration has passed from counting from CreationTimestamp, the export is eligible to be automatically deleted. If this field is omitted, a reasonable default is applied. + + :return: The ttl_duration of this V1alpha1VirtualMachineExportSpec. + :rtype: K8sIoApimachineryPkgApisMetaV1Duration + """ + return self._ttl_duration + + @ttl_duration.setter + def ttl_duration(self, ttl_duration): + """ + Sets the ttl_duration of this V1alpha1VirtualMachineExportSpec. + ttlDuration limits the lifetime of an export If this field is set, after this duration has passed from counting from CreationTimestamp, the export is eligible to be automatically deleted. If this field is omitted, a reasonable default is applied. + + :param ttl_duration: The ttl_duration of this V1alpha1VirtualMachineExportSpec. + :type: K8sIoApimachineryPkgApisMetaV1Duration + """ + + self._ttl_duration = ttl_duration + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1alpha1_virtual_machine_export_status.py b/kubevirt/models/v1alpha1_virtual_machine_export_status.py index 33f8abd1..9a97b277 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_export_status.py +++ b/kubevirt/models/v1alpha1_virtual_machine_export_status.py @@ -35,7 +35,8 @@ class V1alpha1VirtualMachineExportStatus(object): 'links': 'V1alpha1VirtualMachineExportLinks', 'phase': 'str', 'service_name': 'str', - 'token_secret_ref': 'str' + 'token_secret_ref': 'str', + 'ttl_expiration_time': 'K8sIoApimachineryPkgApisMetaV1Time' } attribute_map = { @@ -43,10 +44,11 @@ class V1alpha1VirtualMachineExportStatus(object): 'links': 'links', 'phase': 'phase', 'service_name': 'serviceName', - 'token_secret_ref': 'tokenSecretRef' + 'token_secret_ref': 'tokenSecretRef', + 'ttl_expiration_time': 'ttlExpirationTime' } - def __init__(self, conditions=None, links=None, phase=None, service_name=None, token_secret_ref=None): + def __init__(self, conditions=None, links=None, phase=None, service_name=None, token_secret_ref=None, ttl_expiration_time=None): """ V1alpha1VirtualMachineExportStatus - a model defined in Swagger """ @@ -56,6 +58,7 @@ def __init__(self, conditions=None, links=None, phase=None, service_name=None, t self._phase = None self._service_name = None self._token_secret_ref = None + self._ttl_expiration_time = None if conditions is not None: self.conditions = conditions @@ -67,6 +70,8 @@ def __init__(self, conditions=None, links=None, phase=None, service_name=None, t self.service_name = service_name if token_secret_ref is not None: self.token_secret_ref = token_secret_ref + if ttl_expiration_time is not None: + self.ttl_expiration_time = ttl_expiration_time @property def conditions(self): @@ -177,6 +182,29 @@ def token_secret_ref(self, token_secret_ref): self._token_secret_ref = token_secret_ref + @property + def ttl_expiration_time(self): + """ + Gets the ttl_expiration_time of this V1alpha1VirtualMachineExportStatus. + The time at which the VM Export will be completely removed according to specified TTL Formula is CreationTimestamp + TTL + + :return: The ttl_expiration_time of this V1alpha1VirtualMachineExportStatus. + :rtype: K8sIoApimachineryPkgApisMetaV1Time + """ + return self._ttl_expiration_time + + @ttl_expiration_time.setter + def ttl_expiration_time(self, ttl_expiration_time): + """ + Sets the ttl_expiration_time of this V1alpha1VirtualMachineExportStatus. + The time at which the VM Export will be completely removed according to specified TTL Formula is CreationTimestamp + TTL + + :param ttl_expiration_time: The ttl_expiration_time of this V1alpha1VirtualMachineExportStatus. + :type: K8sIoApimachineryPkgApisMetaV1Time + """ + + self._ttl_expiration_time = ttl_expiration_time + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 73c0135b..313ebc96 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.57.0-270-g661b2dc80" +VERSION = "v0.58.0-rc.0-60-g84cf20513" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 76e0434f..06ef7e57 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.57.0-270-g661b2dc80" +"packageVersion": "v0.58.0-rc.0-60-g84cf20513" } From 012e6ed039445ff2a2417e8ffd5149dad57fec6c Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 18 Oct 2022 15:13:52 +0000 Subject: [PATCH 296/521] Client Python update by KubeVirt Prow build 1582377855633854464 --- README.md | 2 +- docs/V1Devices.md | 1 + docs/V1VirtualMachineInstanceStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_devices.py | 30 ++++++++++++++++++- .../v1_virtual_machine_instance_status.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 66 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 3389d2d4..b2133e3b 100644 --- a/README.md +++ b/README.md @@ -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: v0.58.0-rc.0-60-g84cf20513 +- Package version: v0.58.0-100-gcc2f93d9b - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index 5afb2753..f33442a7 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **autoattach_mem_balloon** | **bool** | Whether to attach the Memory balloon device with default period. Period can be adjusted in virt-config. Defaults to true. | [optional] **autoattach_pod_interface** | **bool** | Whether to attach a pod network interface. Defaults to true. | [optional] **autoattach_serial_console** | **bool** | Whether to attach the default serial console or not. Serial console access will not be available if set to false. Defaults to true. | [optional] +**autoattach_vsock** | **bool** | Whether to attach the VSOCK CID to the VM or not. VSOCK access will be available if set to true. Defaults to false. | [optional] **block_multi_queue** | **bool** | Whether or not to enable virtio multi-queue for block devices. Defaults to false. | [optional] **client_passthrough** | [**V1ClientPassthroughDevices**](V1ClientPassthroughDevices.md) | To configure and access client devices such as redirecting USB | [optional] **disable_hotplug** | **bool** | DisableHotplug disabled the ability to hotplug disks. | [optional] diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index 4ef988fe..69d852be 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**vsockcid** | **int** | VSOCKCID is used to track the allocated VSOCK CID in the VM. | [optional] **active_pods** | **dict(str, str)** | ActivePods is a mapping of pod UID to node name. It is possible for multiple pods to be running for a single VMI during migration. | [optional] **conditions** | [**list[V1VirtualMachineInstanceCondition]**](V1VirtualMachineInstanceCondition.md) | Conditions are specific points in VirtualMachineInstance's pod runtime. | [optional] **evacuation_node_name** | **str** | EvacuationNodeName is used to track the eviction process of a VMI. It stores the name of the node that we want to evacuate. It is meant to be used by KubeVirt core components only and can't be set or modified by users. | [optional] diff --git a/git_push.sh b/git_push.sh index 3672edc8..98605fc4 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.58.0-rc.0-60-g84cf20513" + release_note="Auto-generated client v0.58.0-100-gcc2f93d9b" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 98a77c9f..75581b21 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.58.0-rc.0-60-g84cf20513/python' + self.user_agent = 'Swagger-Codegen/v0.58.0-100-gcc2f93d9b/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index e8773385..f688519a 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.58.0-rc.0-60-g84cf20513".\ + "SDK Package Version: v0.58.0-100-gcc2f93d9b".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index c3d676f0..376f0c87 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -36,6 +36,7 @@ class V1Devices(object): 'autoattach_mem_balloon': 'bool', 'autoattach_pod_interface': 'bool', 'autoattach_serial_console': 'bool', + 'autoattach_vsock': 'bool', 'block_multi_queue': 'bool', 'client_passthrough': 'V1ClientPassthroughDevices', 'disable_hotplug': 'bool', @@ -59,6 +60,7 @@ class V1Devices(object): 'autoattach_mem_balloon': 'autoattachMemBalloon', 'autoattach_pod_interface': 'autoattachPodInterface', 'autoattach_serial_console': 'autoattachSerialConsole', + 'autoattach_vsock': 'autoattachVSOCK', 'block_multi_queue': 'blockMultiQueue', 'client_passthrough': 'clientPassthrough', 'disable_hotplug': 'disableHotplug', @@ -76,7 +78,7 @@ class V1Devices(object): 'watchdog': 'watchdog' } - def __init__(self, autoattach_graphics_device=None, autoattach_input_device=None, autoattach_mem_balloon=None, autoattach_pod_interface=None, autoattach_serial_console=None, block_multi_queue=None, client_passthrough=None, disable_hotplug=None, disks=None, filesystems=None, gpus=None, host_devices=None, inputs=None, interfaces=None, network_interface_multiqueue=None, rng=None, sound=None, tpm=None, use_virtio_transitional=None, watchdog=None): + def __init__(self, autoattach_graphics_device=None, autoattach_input_device=None, autoattach_mem_balloon=None, autoattach_pod_interface=None, autoattach_serial_console=None, autoattach_vsock=None, block_multi_queue=None, client_passthrough=None, disable_hotplug=None, disks=None, filesystems=None, gpus=None, host_devices=None, inputs=None, interfaces=None, network_interface_multiqueue=None, rng=None, sound=None, tpm=None, use_virtio_transitional=None, watchdog=None): """ V1Devices - a model defined in Swagger """ @@ -86,6 +88,7 @@ def __init__(self, autoattach_graphics_device=None, autoattach_input_device=None self._autoattach_mem_balloon = None self._autoattach_pod_interface = None self._autoattach_serial_console = None + self._autoattach_vsock = None self._block_multi_queue = None self._client_passthrough = None self._disable_hotplug = None @@ -112,6 +115,8 @@ def __init__(self, autoattach_graphics_device=None, autoattach_input_device=None self.autoattach_pod_interface = autoattach_pod_interface if autoattach_serial_console is not None: self.autoattach_serial_console = autoattach_serial_console + if autoattach_vsock is not None: + self.autoattach_vsock = autoattach_vsock if block_multi_queue is not None: self.block_multi_queue = block_multi_queue if client_passthrough is not None: @@ -258,6 +263,29 @@ def autoattach_serial_console(self, autoattach_serial_console): self._autoattach_serial_console = autoattach_serial_console + @property + def autoattach_vsock(self): + """ + Gets the autoattach_vsock of this V1Devices. + Whether to attach the VSOCK CID to the VM or not. VSOCK access will be available if set to true. Defaults to false. + + :return: The autoattach_vsock of this V1Devices. + :rtype: bool + """ + return self._autoattach_vsock + + @autoattach_vsock.setter + def autoattach_vsock(self, autoattach_vsock): + """ + Sets the autoattach_vsock of this V1Devices. + Whether to attach the VSOCK CID to the VM or not. VSOCK access will be available if set to true. Defaults to false. + + :param autoattach_vsock: The autoattach_vsock of this V1Devices. + :type: bool + """ + + self._autoattach_vsock = autoattach_vsock + @property def block_multi_queue(self): """ diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index db3771ce..1687a34c 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -31,6 +31,7 @@ class V1VirtualMachineInstanceStatus(object): and the value is json key in definition. """ swagger_types = { + 'vsockcid': 'int', 'active_pods': 'dict(str, str)', 'conditions': 'list[V1VirtualMachineInstanceCondition]', 'evacuation_node_name': 'str', @@ -53,6 +54,7 @@ class V1VirtualMachineInstanceStatus(object): } attribute_map = { + 'vsockcid': 'VSOCKCID', 'active_pods': 'activePods', 'conditions': 'conditions', 'evacuation_node_name': 'evacuationNodeName', @@ -74,11 +76,12 @@ class V1VirtualMachineInstanceStatus(object): 'volume_status': 'volumeStatus' } - def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): + def __init__(self, vsockcid=None, active_pods=None, conditions=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ + self._vsockcid = None self._active_pods = None self._conditions = None self._evacuation_node_name = None @@ -99,6 +102,8 @@ def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, self._virtual_machine_revision_name = None self._volume_status = None + if vsockcid is not None: + self.vsockcid = vsockcid if active_pods is not None: self.active_pods = active_pods if conditions is not None: @@ -138,6 +143,29 @@ def __init__(self, active_pods=None, conditions=None, evacuation_node_name=None, if volume_status is not None: self.volume_status = volume_status + @property + def vsockcid(self): + """ + Gets the vsockcid of this V1VirtualMachineInstanceStatus. + VSOCKCID is used to track the allocated VSOCK CID in the VM. + + :return: The vsockcid of this V1VirtualMachineInstanceStatus. + :rtype: int + """ + return self._vsockcid + + @vsockcid.setter + def vsockcid(self, vsockcid): + """ + Sets the vsockcid of this V1VirtualMachineInstanceStatus. + VSOCKCID is used to track the allocated VSOCK CID in the VM. + + :param vsockcid: The vsockcid of this V1VirtualMachineInstanceStatus. + :type: int + """ + + self._vsockcid = vsockcid + @property def active_pods(self): """ diff --git a/setup.py b/setup.py index 313ebc96..794728b3 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.58.0-rc.0-60-g84cf20513" +VERSION = "v0.58.0-100-gcc2f93d9b" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 06ef7e57..f5df5619 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.58.0-rc.0-60-g84cf20513" +"packageVersion": "v0.58.0-100-gcc2f93d9b" } From f1c0726b930e78e9b5253c39645e58efc19347e8 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 9 Nov 2022 07:48:41 +0000 Subject: [PATCH 297/521] Client Python update by KubeVirt Prow build 1590236688821522432 --- README.md | 4 +- docs/DefaultApi.md | 102 ++++++++++++++++ git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 220 +++++++++++++++++++++++++++++++++++ kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 16 +++ 9 files changed, 346 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b2133e3b..657a8b58 100644 --- a/README.md +++ b/README.md @@ -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: v0.58.0-100-gcc2f93d9b +- Package version: v0.59.0-alpha.0-33-g9d80854a1 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -244,6 +244,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1_version**](docs/DefaultApi.md#v1_version) | **GET** /apis/subresources.kubevirt.io/v1/version | *DefaultApi* | [**v1_vnc**](docs/DefaultApi.md#v1_vnc) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | *DefaultApi* | [**v1_vnc_screenshot**](docs/DefaultApi.md#v1_vnc_screenshot) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc/screenshot | +*DefaultApi* | [**v1_vsock**](docs/DefaultApi.md#v1_vsock) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vsock | *DefaultApi* | [**v1alpha3_check_health**](docs/DefaultApi.md#v1alpha3_check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha3/healthz | *DefaultApi* | [**v1alpha3_console**](docs/DefaultApi.md#v1alpha3_console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | *DefaultApi* | [**v1alpha3_expand_spec**](docs/DefaultApi.md#v1alpha3_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/expand-spec | @@ -267,6 +268,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3_version**](docs/DefaultApi.md#v1alpha3_version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | *DefaultApi* | [**v1alpha3_vnc**](docs/DefaultApi.md#v1alpha3_vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | *DefaultApi* | [**v1alpha3_vnc_screenshot**](docs/DefaultApi.md#v1alpha3_vnc_screenshot) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc/screenshot | +*DefaultApi* | [**v1alpha3_vsock**](docs/DefaultApi.md#v1alpha3_vsock) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vsock | *DefaultApi* | [**v1alpha3dump_cluster_profiler**](docs/DefaultApi.md#v1alpha3dump_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/dump-cluster-profiler | *DefaultApi* | [**v1alpha3get_api_sub_resources**](docs/DefaultApi.md#v1alpha3get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1alpha3/ | *DefaultApi* | [**v1alpha3start_cluster_profiler**](docs/DefaultApi.md#v1alpha3start_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/start-cluster-profiler | diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 0ced9a55..cab7a3c7 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -179,6 +179,7 @@ Method | HTTP request | Description [**v1_version**](DefaultApi.md#v1_version) | **GET** /apis/subresources.kubevirt.io/v1/version | [**v1_vnc**](DefaultApi.md#v1_vnc) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | [**v1_vnc_screenshot**](DefaultApi.md#v1_vnc_screenshot) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc/screenshot | +[**v1_vsock**](DefaultApi.md#v1_vsock) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vsock | [**v1alpha3_check_health**](DefaultApi.md#v1alpha3_check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha3/healthz | [**v1alpha3_console**](DefaultApi.md#v1alpha3_console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | [**v1alpha3_expand_spec**](DefaultApi.md#v1alpha3_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/expand-spec | @@ -202,6 +203,7 @@ Method | HTTP request | Description [**v1alpha3_version**](DefaultApi.md#v1alpha3_version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | [**v1alpha3_vnc**](DefaultApi.md#v1alpha3_vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | [**v1alpha3_vnc_screenshot**](DefaultApi.md#v1alpha3_vnc_screenshot) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc/screenshot | +[**v1alpha3_vsock**](DefaultApi.md#v1alpha3_vsock) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vsock | [**v1alpha3dump_cluster_profiler**](DefaultApi.md#v1alpha3dump_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/dump-cluster-profiler | [**v1alpha3get_api_sub_resources**](DefaultApi.md#v1alpha3get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1alpha3/ | [**v1alpha3start_cluster_profiler**](DefaultApi.md#v1alpha3start_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/start-cluster-profiler | @@ -9499,6 +9501,56 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1_vsock** +> v1_vsock(name, namespace, port) + + + +Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port via VSOCK. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +port = 56 # int | The port which the VSOCK application listens to. + +try: + api_instance.v1_vsock(name, namespace, port) +except ApiException as e: + print("Exception when calling DefaultApi->v1_vsock: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **port** | **int**| The port which the VSOCK application listens to. | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3_check_health** > str v1alpha3_check_health() @@ -10593,6 +10645,56 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3_vsock** +> v1alpha3_vsock(name, namespace, port) + + + +Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port via VSOCK. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +port = 56 # int | The port which the VSOCK application listens to. + +try: + api_instance.v1alpha3_vsock(name, namespace, port) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_vsock: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **port** | **int**| The port which the VSOCK application listens to. | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3dump_cluster_profiler** > v1alpha3dump_cluster_profiler() diff --git a/git_push.sh b/git_push.sh index 98605fc4..0ea0d126 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.58.0-100-gcc2f93d9b" + release_note="Auto-generated client v0.59.0-alpha.0-33-g9d80854a1" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 75581b21..70c8d72c 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.58.0-100-gcc2f93d9b/python' + self.user_agent = 'Swagger-Codegen/v0.59.0-alpha.0-33-g9d80854a1/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 11105bce..d24c29bd 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -20122,6 +20122,116 @@ def v1_vnc_screenshot_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1_vsock(self, name, namespace, port, **kwargs): + """ + Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port via VSOCK. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_vsock(name, namespace, port, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param int port: The port which the VSOCK application listens to. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1_vsock_with_http_info(name, namespace, port, **kwargs) + else: + (data) = self.v1_vsock_with_http_info(name, namespace, port, **kwargs) + return data + + def v1_vsock_with_http_info(self, name, namespace, port, **kwargs): + """ + Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port via VSOCK. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_vsock_with_http_info(name, namespace, port, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param int port: The port which the VSOCK application listens to. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'port'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1_vsock" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1_vsock`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1_vsock`") + # verify the required parameter 'port' is set + if ('port' not in params) or (params['port'] is None): + raise ValueError("Missing the required parameter `port` when calling `v1_vsock`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'port' in params: + query_params.append(('port', params['port'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vsock', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1alpha3_check_health(self, **kwargs): """ Health endpoint @@ -22488,6 +22598,116 @@ def v1alpha3_vnc_screenshot_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1alpha3_vsock(self, name, namespace, port, **kwargs): + """ + Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port via VSOCK. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_vsock(name, namespace, port, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param int port: The port which the VSOCK application listens to. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3_vsock_with_http_info(name, namespace, port, **kwargs) + else: + (data) = self.v1alpha3_vsock_with_http_info(name, namespace, port, **kwargs) + return data + + def v1alpha3_vsock_with_http_info(self, name, namespace, port, **kwargs): + """ + Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port via VSOCK. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_vsock_with_http_info(name, namespace, port, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param int port: The port which the VSOCK application listens to. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'port'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3_vsock" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_vsock`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_vsock`") + # verify the required parameter 'port' is set + if ('port' not in params) or (params['port'] is None): + raise ValueError("Missing the required parameter `port` when calling `v1alpha3_vsock`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'port' in params: + query_params.append(('port', params['port'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vsock', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1alpha3dump_cluster_profiler(self, **kwargs): """ This method makes a synchronous HTTP request by default. To make an diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index f688519a..d9adc19b 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.58.0-100-gcc2f93d9b".\ + "SDK Package Version: v0.59.0-alpha.0-33-g9d80854a1".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index 794728b3..9b5bd2d8 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.58.0-100-gcc2f93d9b" +VERSION = "v0.59.0-alpha.0-33-g9d80854a1" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index f5df5619..f0a75b1a 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.58.0-100-gcc2f93d9b" +"packageVersion": "v0.59.0-alpha.0-33-g9d80854a1" } diff --git a/test/test_default_api.py b/test/test_default_api.py index f2591c37..38ba8659 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -1428,6 +1428,14 @@ def test_v1_vnc_screenshot(self): Test case for v1_vnc_screenshot + """ + pass + + def test_v1_vsock(self): + """ + Test case for v1_vsock + + """ pass @@ -1612,6 +1620,14 @@ def test_v1alpha3_vnc_screenshot(self): Test case for v1alpha3_vnc_screenshot + """ + pass + + def test_v1alpha3_vsock(self): + """ + Test case for v1alpha3_vsock + + """ pass From 3364fc95c69b43c037b6c658c4bcead980d5b07b Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 10 Nov 2022 13:51:12 +0000 Subject: [PATCH 298/521] Client Python update by KubeVirt Prow build 1590673501046444032 --- README.md | 2 +- docs/V1DataVolumeSource.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_data_volume_source.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 657a8b58..2f102252 100644 --- a/README.md +++ b/README.md @@ -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: v0.59.0-alpha.0-33-g9d80854a1 +- Package version: v0.59.0-alpha.0-52-g24ec5ba33 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1DataVolumeSource.md b/docs/V1DataVolumeSource.md index 70a2d594..b2cdea2a 100644 --- a/docs/V1DataVolumeSource.md +++ b/docs/V1DataVolumeSource.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hotpluggable** | **bool** | Hotpluggable indicates whether the volume can be hotplugged and hotunplugged. | [optional] -**name** | **str** | Name represents the name of the DataVolume in the same namespace | +**name** | **str** | Name of both the DataVolume and the PVC in the same namespace. After PVC population the DataVolume is garbage collected by default. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 0ea0d126..71b8bcd6 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.59.0-alpha.0-33-g9d80854a1" + release_note="Auto-generated client v0.59.0-alpha.0-52-g24ec5ba33" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 70c8d72c..5c78a1e1 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.59.0-alpha.0-33-g9d80854a1/python' + self.user_agent = 'Swagger-Codegen/v0.59.0-alpha.0-52-g24ec5ba33/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index d9adc19b..9c7d84cd 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.59.0-alpha.0-33-g9d80854a1".\ + "SDK Package Version: v0.59.0-alpha.0-52-g24ec5ba33".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_data_volume_source.py b/kubevirt/models/v1_data_volume_source.py index 8c352bd4..05e28648 100644 --- a/kubevirt/models/v1_data_volume_source.py +++ b/kubevirt/models/v1_data_volume_source.py @@ -79,7 +79,7 @@ def hotpluggable(self, hotpluggable): def name(self): """ Gets the name of this V1DataVolumeSource. - Name represents the name of the DataVolume in the same namespace + Name of both the DataVolume and the PVC in the same namespace. After PVC population the DataVolume is garbage collected by default. :return: The name of this V1DataVolumeSource. :rtype: str @@ -90,7 +90,7 @@ def name(self): def name(self, name): """ Sets the name of this V1DataVolumeSource. - Name represents the name of the DataVolume in the same namespace + Name of both the DataVolume and the PVC in the same namespace. After PVC population the DataVolume is garbage collected by default. :param name: The name of this V1DataVolumeSource. :type: str diff --git a/setup.py b/setup.py index 9b5bd2d8..9c14e15f 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.59.0-alpha.0-33-g9d80854a1" +VERSION = "v0.59.0-alpha.0-52-g24ec5ba33" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index f0a75b1a..29d03152 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.59.0-alpha.0-33-g9d80854a1" +"packageVersion": "v0.59.0-alpha.0-52-g24ec5ba33" } From 881fa91933abd3618d841882787a9b1351d0b2b9 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 10 Nov 2022 15:15:59 +0000 Subject: [PATCH 299/521] Client Python update by KubeVirt Prow build 1590707810205700096 --- README.md | 2 +- docs/V1DataVolumeSource.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_data_volume_source.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 2f102252..e271d609 100644 --- a/README.md +++ b/README.md @@ -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: v0.59.0-alpha.0-52-g24ec5ba33 +- Package version: v0.59.0-alpha.0-50-g50b0d6436 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1DataVolumeSource.md b/docs/V1DataVolumeSource.md index b2cdea2a..70a2d594 100644 --- a/docs/V1DataVolumeSource.md +++ b/docs/V1DataVolumeSource.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hotpluggable** | **bool** | Hotpluggable indicates whether the volume can be hotplugged and hotunplugged. | [optional] -**name** | **str** | Name of both the DataVolume and the PVC in the same namespace. After PVC population the DataVolume is garbage collected by default. | +**name** | **str** | Name represents the name of the DataVolume in the same namespace | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 71b8bcd6..0be815ae 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.59.0-alpha.0-52-g24ec5ba33" + release_note="Auto-generated client v0.59.0-alpha.0-50-g50b0d6436" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 5c78a1e1..83377217 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.59.0-alpha.0-52-g24ec5ba33/python' + self.user_agent = 'Swagger-Codegen/v0.59.0-alpha.0-50-g50b0d6436/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 9c7d84cd..813820eb 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.59.0-alpha.0-52-g24ec5ba33".\ + "SDK Package Version: v0.59.0-alpha.0-50-g50b0d6436".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_data_volume_source.py b/kubevirt/models/v1_data_volume_source.py index 05e28648..8c352bd4 100644 --- a/kubevirt/models/v1_data_volume_source.py +++ b/kubevirt/models/v1_data_volume_source.py @@ -79,7 +79,7 @@ def hotpluggable(self, hotpluggable): def name(self): """ Gets the name of this V1DataVolumeSource. - Name of both the DataVolume and the PVC in the same namespace. After PVC population the DataVolume is garbage collected by default. + Name represents the name of the DataVolume in the same namespace :return: The name of this V1DataVolumeSource. :rtype: str @@ -90,7 +90,7 @@ def name(self): def name(self, name): """ Sets the name of this V1DataVolumeSource. - Name of both the DataVolume and the PVC in the same namespace. After PVC population the DataVolume is garbage collected by default. + Name represents the name of the DataVolume in the same namespace :param name: The name of this V1DataVolumeSource. :type: str diff --git a/setup.py b/setup.py index 9c14e15f..c6d8aae1 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.59.0-alpha.0-52-g24ec5ba33" +VERSION = "v0.59.0-alpha.0-50-g50b0d6436" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 29d03152..a5ba9ed9 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.59.0-alpha.0-52-g24ec5ba33" +"packageVersion": "v0.59.0-alpha.0-50-g50b0d6436" } From f193d003e842e48db6bb297011a4cf82d9563c8a Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 11 Nov 2022 04:32:57 +0000 Subject: [PATCH 300/521] Client Python update by KubeVirt Prow build 1590910762778365952 --- README.md | 2 +- docs/V1DataVolumeSource.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_data_volume_source.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index e271d609..d5946094 100644 --- a/README.md +++ b/README.md @@ -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: v0.59.0-alpha.0-50-g50b0d6436 +- Package version: v0.59.0-alpha.0-54-g3ea4ed97d - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1DataVolumeSource.md b/docs/V1DataVolumeSource.md index 70a2d594..b2cdea2a 100644 --- a/docs/V1DataVolumeSource.md +++ b/docs/V1DataVolumeSource.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hotpluggable** | **bool** | Hotpluggable indicates whether the volume can be hotplugged and hotunplugged. | [optional] -**name** | **str** | Name represents the name of the DataVolume in the same namespace | +**name** | **str** | Name of both the DataVolume and the PVC in the same namespace. After PVC population the DataVolume is garbage collected by default. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 0be815ae..984d0ca9 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.59.0-alpha.0-50-g50b0d6436" + release_note="Auto-generated client v0.59.0-alpha.0-54-g3ea4ed97d" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 83377217..56392a95 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.59.0-alpha.0-50-g50b0d6436/python' + self.user_agent = 'Swagger-Codegen/v0.59.0-alpha.0-54-g3ea4ed97d/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 813820eb..e7948bde 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.59.0-alpha.0-50-g50b0d6436".\ + "SDK Package Version: v0.59.0-alpha.0-54-g3ea4ed97d".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_data_volume_source.py b/kubevirt/models/v1_data_volume_source.py index 8c352bd4..05e28648 100644 --- a/kubevirt/models/v1_data_volume_source.py +++ b/kubevirt/models/v1_data_volume_source.py @@ -79,7 +79,7 @@ def hotpluggable(self, hotpluggable): def name(self): """ Gets the name of this V1DataVolumeSource. - Name represents the name of the DataVolume in the same namespace + Name of both the DataVolume and the PVC in the same namespace. After PVC population the DataVolume is garbage collected by default. :return: The name of this V1DataVolumeSource. :rtype: str @@ -90,7 +90,7 @@ def name(self): def name(self, name): """ Sets the name of this V1DataVolumeSource. - Name represents the name of the DataVolume in the same namespace + Name of both the DataVolume and the PVC in the same namespace. After PVC population the DataVolume is garbage collected by default. :param name: The name of this V1DataVolumeSource. :type: str diff --git a/setup.py b/setup.py index c6d8aae1..0e240c6e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.59.0-alpha.0-50-g50b0d6436" +VERSION = "v0.59.0-alpha.0-54-g3ea4ed97d" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index a5ba9ed9..381bc006 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.59.0-alpha.0-50-g50b0d6436" +"packageVersion": "v0.59.0-alpha.0-54-g3ea4ed97d" } From f2fad2b8c9332ac8db33e7303ab00c02e245cee0 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 15 Nov 2022 02:35:53 +0000 Subject: [PATCH 301/521] Client Python update by KubeVirt Prow build 1592334180174270464 --- README.md | 6 +++--- docs/DefaultApi.md | 4 ++-- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 4 ++-- kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index d5946094..b62eead2 100644 --- a/README.md +++ b/README.md @@ -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: v0.59.0-alpha.0-54-g3ea4ed97d +- Package version: v0.59.0-alpha.0-111-g1cf6a8e04 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -224,7 +224,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**replace_virtual_machine_cluster_preference**](docs/DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**v1_check_health**](docs/DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | *DefaultApi* | [**v1_console**](docs/DefaultApi.md#v1_console) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | -*DefaultApi* | [**v1_expand_spec**](docs/DefaultApi.md#v1_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1/expand-spec | +*DefaultApi* | [**v1_expand_spec**](docs/DefaultApi.md#v1_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/expand-vm-spec | *DefaultApi* | [**v1_filesystemlist**](docs/DefaultApi.md#v1_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | *DefaultApi* | [**v1_freeze**](docs/DefaultApi.md#v1_freeze) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze | *DefaultApi* | [**v1_guestfs**](docs/DefaultApi.md#v1_guestfs) | **GET** /apis/subresources.kubevirt.io/v1/guestfs | @@ -247,7 +247,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1_vsock**](docs/DefaultApi.md#v1_vsock) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vsock | *DefaultApi* | [**v1alpha3_check_health**](docs/DefaultApi.md#v1alpha3_check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha3/healthz | *DefaultApi* | [**v1alpha3_console**](docs/DefaultApi.md#v1alpha3_console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | -*DefaultApi* | [**v1alpha3_expand_spec**](docs/DefaultApi.md#v1alpha3_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/expand-spec | +*DefaultApi* | [**v1alpha3_expand_spec**](docs/DefaultApi.md#v1alpha3_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/expand-vm-spec | *DefaultApi* | [**v1alpha3_filesystemlist**](docs/DefaultApi.md#v1alpha3_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | *DefaultApi* | [**v1alpha3_freeze**](docs/DefaultApi.md#v1alpha3_freeze) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze | *DefaultApi* | [**v1alpha3_get_sub_api_group**](docs/DefaultApi.md#v1alpha3_get_sub_api_group) | **GET** /apis/subresources.kubevirt.io | diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index cab7a3c7..f45c6640 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -159,7 +159,7 @@ Method | HTTP request | Description [**replace_virtual_machine_cluster_preference**](DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | [**v1_check_health**](DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | [**v1_console**](DefaultApi.md#v1_console) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | -[**v1_expand_spec**](DefaultApi.md#v1_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1/expand-spec | +[**v1_expand_spec**](DefaultApi.md#v1_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/expand-vm-spec | [**v1_filesystemlist**](DefaultApi.md#v1_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | [**v1_freeze**](DefaultApi.md#v1_freeze) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze | [**v1_guestfs**](DefaultApi.md#v1_guestfs) | **GET** /apis/subresources.kubevirt.io/v1/guestfs | @@ -182,7 +182,7 @@ Method | HTTP request | Description [**v1_vsock**](DefaultApi.md#v1_vsock) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vsock | [**v1alpha3_check_health**](DefaultApi.md#v1alpha3_check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha3/healthz | [**v1alpha3_console**](DefaultApi.md#v1alpha3_console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | -[**v1alpha3_expand_spec**](DefaultApi.md#v1alpha3_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/expand-spec | +[**v1alpha3_expand_spec**](DefaultApi.md#v1alpha3_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/expand-vm-spec | [**v1alpha3_filesystemlist**](DefaultApi.md#v1alpha3_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | [**v1alpha3_freeze**](DefaultApi.md#v1alpha3_freeze) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze | [**v1alpha3_get_sub_api_group**](DefaultApi.md#v1alpha3_get_sub_api_group) | **GET** /apis/subresources.kubevirt.io | diff --git a/git_push.sh b/git_push.sh index 984d0ca9..ee9f0367 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.59.0-alpha.0-54-g3ea4ed97d" + release_note="Auto-generated client v0.59.0-alpha.0-111-g1cf6a8e04" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 56392a95..1ce019e1 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.59.0-alpha.0-54-g3ea4ed97d/python' + self.user_agent = 'Swagger-Codegen/v0.59.0-alpha.0-111-g1cf6a8e04/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index d24c29bd..dac57864 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -18128,7 +18128,7 @@ def v1_expand_spec_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/expand-spec', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/expand-vm-spec', 'PUT', path_params, query_params, header_params, @@ -20512,7 +20512,7 @@ def v1alpha3_expand_spec_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/expand-spec', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/expand-vm-spec', 'PUT', path_params, query_params, header_params, diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index e7948bde..a3f58e5f 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.59.0-alpha.0-54-g3ea4ed97d".\ + "SDK Package Version: v0.59.0-alpha.0-111-g1cf6a8e04".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index 0e240c6e..4dd01b4b 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.59.0-alpha.0-54-g3ea4ed97d" +VERSION = "v0.59.0-alpha.0-111-g1cf6a8e04" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 381bc006..bccc944f 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.59.0-alpha.0-54-g3ea4ed97d" +"packageVersion": "v0.59.0-alpha.0-111-g1cf6a8e04" } From adf24294647e5b16f23458d128bd6604abac2319 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 18 Nov 2022 10:34:13 +0000 Subject: [PATCH 302/521] Client Python update by KubeVirt Prow build 1593535212166320128 --- README.md | 2 +- docs/V1MediatedDevicesConfiguration.md | 3 +- docs/V1NodeMediatedDeviceTypesConfig.md | 3 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1_mediated_devices_configuration.py | 30 +++++++++++++++- .../v1_node_mediated_device_types_config.py | 35 ++++++++++++++++--- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 70 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index b62eead2..28043d05 100644 --- a/README.md +++ b/README.md @@ -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: v0.59.0-alpha.0-111-g1cf6a8e04 +- Package version: v0.59.0-alpha.0-165-g69ce86280 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1MediatedDevicesConfiguration.md b/docs/V1MediatedDevicesConfiguration.md index 2dcf6bd9..b9b82c10 100644 --- a/docs/V1MediatedDevicesConfiguration.md +++ b/docs/V1MediatedDevicesConfiguration.md @@ -3,7 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**mediated_devices_types** | **list[str]** | | [optional] +**mediated_device_types** | **list[str]** | | [optional] +**mediated_devices_types** | **list[str]** | Deprecated. Use mediatedDeviceTypes instead. | [optional] **node_mediated_device_types** | [**list[V1NodeMediatedDeviceTypesConfig]**](V1NodeMediatedDeviceTypesConfig.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1NodeMediatedDeviceTypesConfig.md b/docs/V1NodeMediatedDeviceTypesConfig.md index 9e097d73..6e5e8733 100644 --- a/docs/V1NodeMediatedDeviceTypesConfig.md +++ b/docs/V1NodeMediatedDeviceTypesConfig.md @@ -3,7 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**mediated_devices_types** | **list[str]** | | +**mediated_device_types** | **list[str]** | | [optional] +**mediated_devices_types** | **list[str]** | Deprecated. Use mediatedDeviceTypes instead. | [optional] **node_selector** | **dict(str, str)** | NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index ee9f0367..1146f81a 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.59.0-alpha.0-111-g1cf6a8e04" + release_note="Auto-generated client v0.59.0-alpha.0-165-g69ce86280" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 1ce019e1..ca500473 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.59.0-alpha.0-111-g1cf6a8e04/python' + self.user_agent = 'Swagger-Codegen/v0.59.0-alpha.0-165-g69ce86280/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index a3f58e5f..fcfe46cf 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.59.0-alpha.0-111-g1cf6a8e04".\ + "SDK Package Version: v0.59.0-alpha.0-165-g69ce86280".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_mediated_devices_configuration.py b/kubevirt/models/v1_mediated_devices_configuration.py index 9189fffc..c8ed0ac2 100644 --- a/kubevirt/models/v1_mediated_devices_configuration.py +++ b/kubevirt/models/v1_mediated_devices_configuration.py @@ -31,32 +31,59 @@ class V1MediatedDevicesConfiguration(object): and the value is json key in definition. """ swagger_types = { + 'mediated_device_types': 'list[str]', 'mediated_devices_types': 'list[str]', 'node_mediated_device_types': 'list[V1NodeMediatedDeviceTypesConfig]' } attribute_map = { + 'mediated_device_types': 'mediatedDeviceTypes', 'mediated_devices_types': 'mediatedDevicesTypes', 'node_mediated_device_types': 'nodeMediatedDeviceTypes' } - def __init__(self, mediated_devices_types=None, node_mediated_device_types=None): + def __init__(self, mediated_device_types=None, mediated_devices_types=None, node_mediated_device_types=None): """ V1MediatedDevicesConfiguration - a model defined in Swagger """ + self._mediated_device_types = None self._mediated_devices_types = None self._node_mediated_device_types = None + if mediated_device_types is not None: + self.mediated_device_types = mediated_device_types if mediated_devices_types is not None: self.mediated_devices_types = mediated_devices_types if node_mediated_device_types is not None: self.node_mediated_device_types = node_mediated_device_types + @property + def mediated_device_types(self): + """ + Gets the mediated_device_types of this V1MediatedDevicesConfiguration. + + :return: The mediated_device_types of this V1MediatedDevicesConfiguration. + :rtype: list[str] + """ + return self._mediated_device_types + + @mediated_device_types.setter + def mediated_device_types(self, mediated_device_types): + """ + Sets the mediated_device_types of this V1MediatedDevicesConfiguration. + + :param mediated_device_types: The mediated_device_types of this V1MediatedDevicesConfiguration. + :type: list[str] + """ + + self._mediated_device_types = mediated_device_types + @property def mediated_devices_types(self): """ Gets the mediated_devices_types of this V1MediatedDevicesConfiguration. + Deprecated. Use mediatedDeviceTypes instead. :return: The mediated_devices_types of this V1MediatedDevicesConfiguration. :rtype: list[str] @@ -67,6 +94,7 @@ def mediated_devices_types(self): def mediated_devices_types(self, mediated_devices_types): """ Sets the mediated_devices_types of this V1MediatedDevicesConfiguration. + Deprecated. Use mediatedDeviceTypes instead. :param mediated_devices_types: The mediated_devices_types of this V1MediatedDevicesConfiguration. :type: list[str] diff --git a/kubevirt/models/v1_node_mediated_device_types_config.py b/kubevirt/models/v1_node_mediated_device_types_config.py index 154141b3..9f9df571 100644 --- a/kubevirt/models/v1_node_mediated_device_types_config.py +++ b/kubevirt/models/v1_node_mediated_device_types_config.py @@ -31,30 +31,58 @@ class V1NodeMediatedDeviceTypesConfig(object): and the value is json key in definition. """ swagger_types = { + 'mediated_device_types': 'list[str]', 'mediated_devices_types': 'list[str]', 'node_selector': 'dict(str, str)' } attribute_map = { + 'mediated_device_types': 'mediatedDeviceTypes', 'mediated_devices_types': 'mediatedDevicesTypes', 'node_selector': 'nodeSelector' } - def __init__(self, mediated_devices_types=None, node_selector=None): + def __init__(self, mediated_device_types=None, mediated_devices_types=None, node_selector=None): """ V1NodeMediatedDeviceTypesConfig - a model defined in Swagger """ + self._mediated_device_types = None self._mediated_devices_types = None self._node_selector = None - self.mediated_devices_types = mediated_devices_types + if mediated_device_types is not None: + self.mediated_device_types = mediated_device_types + if mediated_devices_types is not None: + self.mediated_devices_types = mediated_devices_types self.node_selector = node_selector + @property + def mediated_device_types(self): + """ + Gets the mediated_device_types of this V1NodeMediatedDeviceTypesConfig. + + :return: The mediated_device_types of this V1NodeMediatedDeviceTypesConfig. + :rtype: list[str] + """ + return self._mediated_device_types + + @mediated_device_types.setter + def mediated_device_types(self, mediated_device_types): + """ + Sets the mediated_device_types of this V1NodeMediatedDeviceTypesConfig. + + :param mediated_device_types: The mediated_device_types of this V1NodeMediatedDeviceTypesConfig. + :type: list[str] + """ + + self._mediated_device_types = mediated_device_types + @property def mediated_devices_types(self): """ Gets the mediated_devices_types of this V1NodeMediatedDeviceTypesConfig. + Deprecated. Use mediatedDeviceTypes instead. :return: The mediated_devices_types of this V1NodeMediatedDeviceTypesConfig. :rtype: list[str] @@ -65,12 +93,11 @@ def mediated_devices_types(self): def mediated_devices_types(self, mediated_devices_types): """ Sets the mediated_devices_types of this V1NodeMediatedDeviceTypesConfig. + Deprecated. Use mediatedDeviceTypes instead. :param mediated_devices_types: The mediated_devices_types of this V1NodeMediatedDeviceTypesConfig. :type: list[str] """ - if mediated_devices_types is None: - raise ValueError("Invalid value for `mediated_devices_types`, must not be `None`") self._mediated_devices_types = mediated_devices_types diff --git a/setup.py b/setup.py index 4dd01b4b..5c9c242f 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.59.0-alpha.0-111-g1cf6a8e04" +VERSION = "v0.59.0-alpha.0-165-g69ce86280" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index bccc944f..c670f029 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.59.0-alpha.0-111-g1cf6a8e04" +"packageVersion": "v0.59.0-alpha.0-165-g69ce86280" } From 6c3070df5b6f5391895dbbd35c11248399c63cec Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 18 Nov 2022 16:16:06 +0000 Subject: [PATCH 303/521] Client Python update by KubeVirt Prow build 1593622708824838144 --- README.md | 2 +- docs/V1VirtualMachineInstanceStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1_virtual_machine_instance_status.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 28043d05..d071e9f7 100644 --- a/README.md +++ b/README.md @@ -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: v0.59.0-alpha.0-165-g69ce86280 +- Package version: v0.59.0-alpha.0-173-g55d7144a6 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index 69d852be..e00d94d8 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -20,6 +20,7 @@ Name | Type | Description | Notes **qos_class** | **str** | The Quality of Service (QOS) classification assigned to the virtual machine instance based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md | [optional] **reason** | **str** | A brief CamelCase message indicating details about why the VMI is in this state. e.g. 'NodeUnresponsive' | [optional] **runtime_user** | **int** | RuntimeUser is used to determine what user will be used in launcher | [optional] +**selinux_context** | **str** | SELinuxContext is the actual SELinux context of the virt-launcher pod | [optional] **topology_hints** | [**V1TopologyHints**](V1TopologyHints.md) | | [optional] **virtual_machine_revision_name** | **str** | VirtualMachineRevisionName is used to get the vm revision of the vmi when doing an online vm snapshot | [optional] **volume_status** | [**list[V1VolumeStatus]**](V1VolumeStatus.md) | VolumeStatus contains the statuses of all the volumes | [optional] diff --git a/git_push.sh b/git_push.sh index 1146f81a..470af3f8 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.59.0-alpha.0-165-g69ce86280" + release_note="Auto-generated client v0.59.0-alpha.0-173-g55d7144a6" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index ca500473..6771ca89 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.59.0-alpha.0-165-g69ce86280/python' + self.user_agent = 'Swagger-Codegen/v0.59.0-alpha.0-173-g55d7144a6/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index fcfe46cf..ded3fbd7 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.59.0-alpha.0-165-g69ce86280".\ + "SDK Package Version: v0.59.0-alpha.0-173-g55d7144a6".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index 1687a34c..f58427f9 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -48,6 +48,7 @@ class V1VirtualMachineInstanceStatus(object): 'qos_class': 'str', 'reason': 'str', 'runtime_user': 'int', + 'selinux_context': 'str', 'topology_hints': 'V1TopologyHints', 'virtual_machine_revision_name': 'str', 'volume_status': 'list[V1VolumeStatus]' @@ -71,12 +72,13 @@ class V1VirtualMachineInstanceStatus(object): 'qos_class': 'qosClass', 'reason': 'reason', 'runtime_user': 'runtimeUser', + 'selinux_context': 'selinuxContext', 'topology_hints': 'topologyHints', 'virtual_machine_revision_name': 'virtualMachineRevisionName', 'volume_status': 'volumeStatus' } - def __init__(self, vsockcid=None, active_pods=None, conditions=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): + def __init__(self, vsockcid=None, active_pods=None, conditions=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=None, selinux_context=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ @@ -98,6 +100,7 @@ def __init__(self, vsockcid=None, active_pods=None, conditions=None, evacuation_ self._qos_class = None self._reason = None self._runtime_user = None + self._selinux_context = None self._topology_hints = None self._virtual_machine_revision_name = None self._volume_status = None @@ -136,6 +139,8 @@ def __init__(self, vsockcid=None, active_pods=None, conditions=None, evacuation_ self.reason = reason if runtime_user is not None: self.runtime_user = runtime_user + if selinux_context is not None: + self.selinux_context = selinux_context if topology_hints is not None: self.topology_hints = topology_hints if virtual_machine_revision_name is not None: @@ -534,6 +539,29 @@ def runtime_user(self, runtime_user): self._runtime_user = runtime_user + @property + def selinux_context(self): + """ + Gets the selinux_context of this V1VirtualMachineInstanceStatus. + SELinuxContext is the actual SELinux context of the virt-launcher pod + + :return: The selinux_context of this V1VirtualMachineInstanceStatus. + :rtype: str + """ + return self._selinux_context + + @selinux_context.setter + def selinux_context(self, selinux_context): + """ + Sets the selinux_context of this V1VirtualMachineInstanceStatus. + SELinuxContext is the actual SELinux context of the virt-launcher pod + + :param selinux_context: The selinux_context of this V1VirtualMachineInstanceStatus. + :type: str + """ + + self._selinux_context = selinux_context + @property def topology_hints(self): """ diff --git a/setup.py b/setup.py index 5c9c242f..77d930c5 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.59.0-alpha.0-165-g69ce86280" +VERSION = "v0.59.0-alpha.0-173-g55d7144a6" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index c670f029..a5e2596a 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.59.0-alpha.0-165-g69ce86280" +"packageVersion": "v0.59.0-alpha.0-173-g55d7144a6" } From 7418b5389d47914bbb63d20ee8c450da830fbf83 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Mon, 21 Nov 2022 00:35:49 +0000 Subject: [PATCH 304/521] Client Python update by KubeVirt Prow build 1594476813613010944 --- README.md | 3 +- docs/V1alpha1SnapshotVolumesLists.md | 11 ++ docs/V1alpha1VirtualMachineSnapshotStatus.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + .../models/v1alpha1_snapshot_volumes_lists.py | 149 ++++++++++++++++++ ...1alpha1_virtual_machine_snapshot_status.py | 28 +++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1alpha1_snapshot_volumes_lists.py | 44 ++++++ 14 files changed, 244 insertions(+), 7 deletions(-) create mode 100644 docs/V1alpha1SnapshotVolumesLists.md create mode 100644 kubevirt/models/v1alpha1_snapshot_volumes_lists.py create mode 100644 test/test_v1alpha1_snapshot_volumes_lists.py diff --git a/README.md b/README.md index d071e9f7..c5c03ade 100644 --- a/README.md +++ b/README.md @@ -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: v0.59.0-alpha.0-173-g55d7144a6 +- Package version: v0.59.0-alpha.0-187-g8e6ce7f6d - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -581,6 +581,7 @@ Class | Method | HTTP request | Description - [V1alpha1MigrationPolicyStatus](docs/V1alpha1MigrationPolicyStatus.md) - [V1alpha1PersistentVolumeClaim](docs/V1alpha1PersistentVolumeClaim.md) - [V1alpha1Selectors](docs/V1alpha1Selectors.md) + - [V1alpha1SnapshotVolumesLists](docs/V1alpha1SnapshotVolumesLists.md) - [V1alpha1SourceSpec](docs/V1alpha1SourceSpec.md) - [V1alpha1VirtualMachine](docs/V1alpha1VirtualMachine.md) - [V1alpha1VirtualMachineClone](docs/V1alpha1VirtualMachineClone.md) diff --git a/docs/V1alpha1SnapshotVolumesLists.md b/docs/V1alpha1SnapshotVolumesLists.md new file mode 100644 index 00000000..69490154 --- /dev/null +++ b/docs/V1alpha1SnapshotVolumesLists.md @@ -0,0 +1,11 @@ +# V1alpha1SnapshotVolumesLists + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**excluded_volumes** | **list[str]** | | [optional] +**included_volumes** | **list[str]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineSnapshotStatus.md b/docs/V1alpha1VirtualMachineSnapshotStatus.md index 65fe5911..7b315252 100644 --- a/docs/V1alpha1VirtualMachineSnapshotStatus.md +++ b/docs/V1alpha1VirtualMachineSnapshotStatus.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **indications** | **list[str]** | | [optional] **phase** | **str** | | [optional] **ready_to_use** | **bool** | | [optional] +**snapshot_volumes** | [**V1alpha1SnapshotVolumesLists**](V1alpha1SnapshotVolumesLists.md) | | [optional] **source_uid** | **str** | | [optional] **virtual_machine_snapshot_content_name** | **str** | | [optional] diff --git a/git_push.sh b/git_push.sh index 470af3f8..4f9c7ec9 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.59.0-alpha.0-173-g55d7144a6" + release_note="Auto-generated client v0.59.0-alpha.0-187-g8e6ce7f6d" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 7c3521a0..bdb8e728 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -771,6 +771,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/v1alpha1_selectors.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_selectors.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1Selectors.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_snapshot_volumes_lists.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_snapshot_volumes_lists.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1SnapshotVolumesLists.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_source_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_source_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1SourceSpec.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index b51bee83..9f8105e6 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -264,6 +264,7 @@ from .models.v1alpha1_migration_policy_status import V1alpha1MigrationPolicyStatus from .models.v1alpha1_persistent_volume_claim import V1alpha1PersistentVolumeClaim from .models.v1alpha1_selectors import V1alpha1Selectors +from .models.v1alpha1_snapshot_volumes_lists import V1alpha1SnapshotVolumesLists from .models.v1alpha1_source_spec import V1alpha1SourceSpec from .models.v1alpha1_virtual_machine import V1alpha1VirtualMachine from .models.v1alpha1_virtual_machine_clone import V1alpha1VirtualMachineClone diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 6771ca89..e7e5e3b0 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.59.0-alpha.0-173-g55d7144a6/python' + self.user_agent = 'Swagger-Codegen/v0.59.0-alpha.0-187-g8e6ce7f6d/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index ded3fbd7..2cf6f8ea 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.59.0-alpha.0-173-g55d7144a6".\ + "SDK Package Version: v0.59.0-alpha.0-187-g8e6ce7f6d".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 94d7810f..3d0eb00e 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -264,6 +264,7 @@ from .v1alpha1_migration_policy_status import V1alpha1MigrationPolicyStatus from .v1alpha1_persistent_volume_claim import V1alpha1PersistentVolumeClaim from .v1alpha1_selectors import V1alpha1Selectors +from .v1alpha1_snapshot_volumes_lists import V1alpha1SnapshotVolumesLists from .v1alpha1_source_spec import V1alpha1SourceSpec from .v1alpha1_virtual_machine import V1alpha1VirtualMachine from .v1alpha1_virtual_machine_clone import V1alpha1VirtualMachineClone diff --git a/kubevirt/models/v1alpha1_snapshot_volumes_lists.py b/kubevirt/models/v1alpha1_snapshot_volumes_lists.py new file mode 100644 index 00000000..35a25f56 --- /dev/null +++ b/kubevirt/models/v1alpha1_snapshot_volumes_lists.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1SnapshotVolumesLists(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'excluded_volumes': 'list[str]', + 'included_volumes': 'list[str]' + } + + attribute_map = { + 'excluded_volumes': 'excludedVolumes', + 'included_volumes': 'includedVolumes' + } + + def __init__(self, excluded_volumes=None, included_volumes=None): + """ + V1alpha1SnapshotVolumesLists - a model defined in Swagger + """ + + self._excluded_volumes = None + self._included_volumes = None + + if excluded_volumes is not None: + self.excluded_volumes = excluded_volumes + if included_volumes is not None: + self.included_volumes = included_volumes + + @property + def excluded_volumes(self): + """ + Gets the excluded_volumes of this V1alpha1SnapshotVolumesLists. + + :return: The excluded_volumes of this V1alpha1SnapshotVolumesLists. + :rtype: list[str] + """ + return self._excluded_volumes + + @excluded_volumes.setter + def excluded_volumes(self, excluded_volumes): + """ + Sets the excluded_volumes of this V1alpha1SnapshotVolumesLists. + + :param excluded_volumes: The excluded_volumes of this V1alpha1SnapshotVolumesLists. + :type: list[str] + """ + + self._excluded_volumes = excluded_volumes + + @property + def included_volumes(self): + """ + Gets the included_volumes of this V1alpha1SnapshotVolumesLists. + + :return: The included_volumes of this V1alpha1SnapshotVolumesLists. + :rtype: list[str] + """ + return self._included_volumes + + @included_volumes.setter + def included_volumes(self, included_volumes): + """ + Sets the included_volumes of this V1alpha1SnapshotVolumesLists. + + :param included_volumes: The included_volumes of this V1alpha1SnapshotVolumesLists. + :type: list[str] + """ + + self._included_volumes = included_volumes + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1SnapshotVolumesLists): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py b/kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py index 17f5c9ef..374a38f1 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py +++ b/kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py @@ -37,6 +37,7 @@ class V1alpha1VirtualMachineSnapshotStatus(object): 'indications': 'list[str]', 'phase': 'str', 'ready_to_use': 'bool', + 'snapshot_volumes': 'V1alpha1SnapshotVolumesLists', 'source_uid': 'str', 'virtual_machine_snapshot_content_name': 'str' } @@ -48,11 +49,12 @@ class V1alpha1VirtualMachineSnapshotStatus(object): 'indications': 'indications', 'phase': 'phase', 'ready_to_use': 'readyToUse', + 'snapshot_volumes': 'snapshotVolumes', 'source_uid': 'sourceUID', 'virtual_machine_snapshot_content_name': 'virtualMachineSnapshotContentName' } - def __init__(self, conditions=None, creation_time=None, error=None, indications=None, phase=None, ready_to_use=None, source_uid=None, virtual_machine_snapshot_content_name=None): + def __init__(self, conditions=None, creation_time=None, error=None, indications=None, phase=None, ready_to_use=None, snapshot_volumes=None, source_uid=None, virtual_machine_snapshot_content_name=None): """ V1alpha1VirtualMachineSnapshotStatus - a model defined in Swagger """ @@ -63,6 +65,7 @@ def __init__(self, conditions=None, creation_time=None, error=None, indications= self._indications = None self._phase = None self._ready_to_use = None + self._snapshot_volumes = None self._source_uid = None self._virtual_machine_snapshot_content_name = None @@ -78,6 +81,8 @@ def __init__(self, conditions=None, creation_time=None, error=None, indications= self.phase = phase if ready_to_use is not None: self.ready_to_use = ready_to_use + if snapshot_volumes is not None: + self.snapshot_volumes = snapshot_volumes if source_uid is not None: self.source_uid = source_uid if virtual_machine_snapshot_content_name is not None: @@ -209,6 +214,27 @@ def ready_to_use(self, ready_to_use): self._ready_to_use = ready_to_use + @property + def snapshot_volumes(self): + """ + Gets the snapshot_volumes of this V1alpha1VirtualMachineSnapshotStatus. + + :return: The snapshot_volumes of this V1alpha1VirtualMachineSnapshotStatus. + :rtype: V1alpha1SnapshotVolumesLists + """ + return self._snapshot_volumes + + @snapshot_volumes.setter + def snapshot_volumes(self, snapshot_volumes): + """ + Sets the snapshot_volumes of this V1alpha1VirtualMachineSnapshotStatus. + + :param snapshot_volumes: The snapshot_volumes of this V1alpha1VirtualMachineSnapshotStatus. + :type: V1alpha1SnapshotVolumesLists + """ + + self._snapshot_volumes = snapshot_volumes + @property def source_uid(self): """ diff --git a/setup.py b/setup.py index 77d930c5..2f98170a 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.59.0-alpha.0-173-g55d7144a6" +VERSION = "v0.59.0-alpha.0-187-g8e6ce7f6d" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index a5e2596a..d2c6722a 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.59.0-alpha.0-173-g55d7144a6" +"packageVersion": "v0.59.0-alpha.0-187-g8e6ce7f6d" } diff --git a/test/test_v1alpha1_snapshot_volumes_lists.py b/test/test_v1alpha1_snapshot_volumes_lists.py new file mode 100644 index 00000000..d13871bd --- /dev/null +++ b/test/test_v1alpha1_snapshot_volumes_lists.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_snapshot_volumes_lists import V1alpha1SnapshotVolumesLists + + +class TestV1alpha1SnapshotVolumesLists(unittest.TestCase): + """ V1alpha1SnapshotVolumesLists unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1SnapshotVolumesLists(self): + """ + Test V1alpha1SnapshotVolumesLists + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_snapshot_volumes_lists.V1alpha1SnapshotVolumesLists() + pass + + +if __name__ == '__main__': + unittest.main() From 5de83bee0ff526718445f2579e1241cb6ee583ff Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 30 Nov 2022 10:57:14 +0000 Subject: [PATCH 305/521] Client Python update by KubeVirt Prow build 1597886903049261056 --- README.md | 3 +- docs/V1alpha2VirtualMachinePreferenceSpec.md | 1 + docs/V1alpha2VolumePreferences.md | 10 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + ...1alpha2_virtual_machine_preference_spec.py | 34 ++++- .../models/v1alpha2_volume_preferences.py | 125 ++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1alpha2_volume_preferences.py | 44 ++++++ 14 files changed, 223 insertions(+), 9 deletions(-) create mode 100644 docs/V1alpha2VolumePreferences.md create mode 100644 kubevirt/models/v1alpha2_volume_preferences.py create mode 100644 test/test_v1alpha2_volume_preferences.py diff --git a/README.md b/README.md index c5c03ade..d6969027 100644 --- a/README.md +++ b/README.md @@ -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: v0.59.0-alpha.0-187-g8e6ce7f6d +- Package version: v0.59.0-alpha.0-263-g8378b5423 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -635,6 +635,7 @@ Class | Method | HTTP request | Description - [V1alpha2VirtualMachinePreference](docs/V1alpha2VirtualMachinePreference.md) - [V1alpha2VirtualMachinePreferenceList](docs/V1alpha2VirtualMachinePreferenceList.md) - [V1alpha2VirtualMachinePreferenceSpec](docs/V1alpha2VirtualMachinePreferenceSpec.md) + - [V1alpha2VolumePreferences](docs/V1alpha2VolumePreferences.md) - [V1beta1DataVolumeBlankImage](docs/V1beta1DataVolumeBlankImage.md) - [V1beta1DataVolumeCheckpoint](docs/V1beta1DataVolumeCheckpoint.md) - [V1beta1DataVolumeSource](docs/V1beta1DataVolumeSource.md) diff --git a/docs/V1alpha2VirtualMachinePreferenceSpec.md b/docs/V1alpha2VirtualMachinePreferenceSpec.md index 13ee9e07..0c237669 100644 --- a/docs/V1alpha2VirtualMachinePreferenceSpec.md +++ b/docs/V1alpha2VirtualMachinePreferenceSpec.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **features** | [**V1alpha2FeaturePreferences**](V1alpha2FeaturePreferences.md) | Features optionally defines preferences associated with the Features attribute of a VirtualMachineInstance DomainSpec | [optional] **firmware** | [**V1alpha2FirmwarePreferences**](V1alpha2FirmwarePreferences.md) | Firmware optionally defines preferences associated with the Firmware attribute of a VirtualMachineInstance DomainSpec | [optional] **machine** | [**V1alpha2MachinePreferences**](V1alpha2MachinePreferences.md) | Machine optionally defines preferences associated with the Machine attribute of a VirtualMachineInstance DomainSpec | [optional] +**volumes** | [**V1alpha2VolumePreferences**](V1alpha2VolumePreferences.md) | Volumes optionally defines preferences associated with the Volumes attribute of a VirtualMachineInstace DomainSpec | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha2VolumePreferences.md b/docs/V1alpha2VolumePreferences.md new file mode 100644 index 00000000..3498f48f --- /dev/null +++ b/docs/V1alpha2VolumePreferences.md @@ -0,0 +1,10 @@ +# V1alpha2VolumePreferences + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferred_storage_class_name** | **str** | PreffereedStorageClassName optionally defines the preferred storageClass | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 4f9c7ec9..a2b5fcba 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.59.0-alpha.0-187-g8e6ce7f6d" + release_note="Auto-generated client v0.59.0-alpha.0-263-g8378b5423" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index bdb8e728..bdaf0ee4 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -933,6 +933,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/v1alpha2_virtual_machine_preference_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_virtual_machine_preference_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2VirtualMachinePreferenceSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_volume_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_volume_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2VolumePreferences.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_data_volume_blank_image.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_blank_image.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeBlankImage.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 9f8105e6..4736511b 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -318,6 +318,7 @@ from .models.v1alpha2_virtual_machine_preference import V1alpha2VirtualMachinePreference from .models.v1alpha2_virtual_machine_preference_list import V1alpha2VirtualMachinePreferenceList from .models.v1alpha2_virtual_machine_preference_spec import V1alpha2VirtualMachinePreferenceSpec +from .models.v1alpha2_volume_preferences import V1alpha2VolumePreferences from .models.v1beta1_data_volume_blank_image import V1beta1DataVolumeBlankImage from .models.v1beta1_data_volume_checkpoint import V1beta1DataVolumeCheckpoint from .models.v1beta1_data_volume_source import V1beta1DataVolumeSource diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index e7e5e3b0..a2634741 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.59.0-alpha.0-187-g8e6ce7f6d/python' + self.user_agent = 'Swagger-Codegen/v0.59.0-alpha.0-263-g8378b5423/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 2cf6f8ea..d184485a 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.59.0-alpha.0-187-g8e6ce7f6d".\ + "SDK Package Version: v0.59.0-alpha.0-263-g8378b5423".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 3d0eb00e..62c88727 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -318,6 +318,7 @@ from .v1alpha2_virtual_machine_preference import V1alpha2VirtualMachinePreference from .v1alpha2_virtual_machine_preference_list import V1alpha2VirtualMachinePreferenceList from .v1alpha2_virtual_machine_preference_spec import V1alpha2VirtualMachinePreferenceSpec +from .v1alpha2_volume_preferences import V1alpha2VolumePreferences from .v1beta1_data_volume_blank_image import V1beta1DataVolumeBlankImage from .v1beta1_data_volume_checkpoint import V1beta1DataVolumeCheckpoint from .v1beta1_data_volume_source import V1beta1DataVolumeSource diff --git a/kubevirt/models/v1alpha2_virtual_machine_preference_spec.py b/kubevirt/models/v1alpha2_virtual_machine_preference_spec.py index d34793d8..3cd71bfb 100644 --- a/kubevirt/models/v1alpha2_virtual_machine_preference_spec.py +++ b/kubevirt/models/v1alpha2_virtual_machine_preference_spec.py @@ -36,7 +36,8 @@ class V1alpha2VirtualMachinePreferenceSpec(object): 'devices': 'V1alpha2DevicePreferences', 'features': 'V1alpha2FeaturePreferences', 'firmware': 'V1alpha2FirmwarePreferences', - 'machine': 'V1alpha2MachinePreferences' + 'machine': 'V1alpha2MachinePreferences', + 'volumes': 'V1alpha2VolumePreferences' } attribute_map = { @@ -45,10 +46,11 @@ class V1alpha2VirtualMachinePreferenceSpec(object): 'devices': 'devices', 'features': 'features', 'firmware': 'firmware', - 'machine': 'machine' + 'machine': 'machine', + 'volumes': 'volumes' } - def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None): + def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, volumes=None): """ V1alpha2VirtualMachinePreferenceSpec - a model defined in Swagger """ @@ -59,6 +61,7 @@ def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=N self._features = None self._firmware = None self._machine = None + self._volumes = None if clock is not None: self.clock = clock @@ -72,6 +75,8 @@ def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=N self.firmware = firmware if machine is not None: self.machine = machine + if volumes is not None: + self.volumes = volumes @property def clock(self): @@ -211,6 +216,29 @@ def machine(self, machine): self._machine = machine + @property + def volumes(self): + """ + Gets the volumes of this V1alpha2VirtualMachinePreferenceSpec. + Volumes optionally defines preferences associated with the Volumes attribute of a VirtualMachineInstace DomainSpec + + :return: The volumes of this V1alpha2VirtualMachinePreferenceSpec. + :rtype: V1alpha2VolumePreferences + """ + return self._volumes + + @volumes.setter + def volumes(self, volumes): + """ + Sets the volumes of this V1alpha2VirtualMachinePreferenceSpec. + Volumes optionally defines preferences associated with the Volumes attribute of a VirtualMachineInstace DomainSpec + + :param volumes: The volumes of this V1alpha2VirtualMachinePreferenceSpec. + :type: V1alpha2VolumePreferences + """ + + self._volumes = volumes + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1alpha2_volume_preferences.py b/kubevirt/models/v1alpha2_volume_preferences.py new file mode 100644 index 00000000..d816713c --- /dev/null +++ b/kubevirt/models/v1alpha2_volume_preferences.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha2VolumePreferences(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'preferred_storage_class_name': 'str' + } + + attribute_map = { + 'preferred_storage_class_name': 'preferredStorageClassName' + } + + def __init__(self, preferred_storage_class_name=None): + """ + V1alpha2VolumePreferences - a model defined in Swagger + """ + + self._preferred_storage_class_name = None + + if preferred_storage_class_name is not None: + self.preferred_storage_class_name = preferred_storage_class_name + + @property + def preferred_storage_class_name(self): + """ + Gets the preferred_storage_class_name of this V1alpha2VolumePreferences. + PreffereedStorageClassName optionally defines the preferred storageClass + + :return: The preferred_storage_class_name of this V1alpha2VolumePreferences. + :rtype: str + """ + return self._preferred_storage_class_name + + @preferred_storage_class_name.setter + def preferred_storage_class_name(self, preferred_storage_class_name): + """ + Sets the preferred_storage_class_name of this V1alpha2VolumePreferences. + PreffereedStorageClassName optionally defines the preferred storageClass + + :param preferred_storage_class_name: The preferred_storage_class_name of this V1alpha2VolumePreferences. + :type: str + """ + + self._preferred_storage_class_name = preferred_storage_class_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha2VolumePreferences): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 2f98170a..974116d4 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.59.0-alpha.0-187-g8e6ce7f6d" +VERSION = "v0.59.0-alpha.0-263-g8378b5423" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index d2c6722a..ddeaf113 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.59.0-alpha.0-187-g8e6ce7f6d" +"packageVersion": "v0.59.0-alpha.0-263-g8378b5423" } diff --git a/test/test_v1alpha2_volume_preferences.py b/test/test_v1alpha2_volume_preferences.py new file mode 100644 index 00000000..ef035366 --- /dev/null +++ b/test/test_v1alpha2_volume_preferences.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha2_volume_preferences import V1alpha2VolumePreferences + + +class TestV1alpha2VolumePreferences(unittest.TestCase): + """ V1alpha2VolumePreferences unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha2VolumePreferences(self): + """ + Test V1alpha2VolumePreferences + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha2_volume_preferences.V1alpha2VolumePreferences() + pass + + +if __name__ == '__main__': + unittest.main() From c8dfc9e08fdcf51ed176dfe09e425b252f721460 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 6 Dec 2022 13:06:48 +0000 Subject: [PATCH 306/521] Client Python update by KubeVirt Prow build 1600103118412976128 --- README.md | 2 +- docs/V1KubeVirtSpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_kube_virt_spec.py | 30 +++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index d6969027..47f94aa0 100644 --- a/README.md +++ b/README.md @@ -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: v0.59.0-alpha.0-263-g8378b5423 +- Package version: v0.59.0-alpha.1-36-gbe87d8714 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1KubeVirtSpec.md b/docs/V1KubeVirtSpec.md index da12251c..3c111e44 100644 --- a/docs/V1KubeVirtSpec.md +++ b/docs/V1KubeVirtSpec.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **configuration** | [**V1KubeVirtConfiguration**](V1KubeVirtConfiguration.md) | holds kubevirt configurations. same as the virt-configMap | [optional] **customize_components** | [**V1CustomizeComponents**](V1CustomizeComponents.md) | | [optional] **image_pull_policy** | **str** | The ImagePullPolicy to use. | [optional] +**image_pull_secrets** | [**list[K8sIoApiCoreV1LocalObjectReference]**](K8sIoApiCoreV1LocalObjectReference.md) | The imagePullSecrets to pull the container images from Defaults to none | [optional] **image_registry** | **str** | The image registry to pull the container images from Defaults to the same registry the operator's container image is pulled from. | [optional] **image_tag** | **str** | The image tag to use for the continer images installed. Defaults to the same tag as the operator's container image. | [optional] **infra** | [**V1ComponentConfig**](V1ComponentConfig.md) | selectors and tolerations that should apply to KubeVirt infrastructure components | [optional] diff --git a/git_push.sh b/git_push.sh index a2b5fcba..8202a94b 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.59.0-alpha.0-263-g8378b5423" + release_note="Auto-generated client v0.59.0-alpha.1-36-gbe87d8714" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index a2634741..ebe4d889 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.59.0-alpha.0-263-g8378b5423/python' + self.user_agent = 'Swagger-Codegen/v0.59.0-alpha.1-36-gbe87d8714/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index d184485a..c5d895ca 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.59.0-alpha.0-263-g8378b5423".\ + "SDK Package Version: v0.59.0-alpha.1-36-gbe87d8714".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_kube_virt_spec.py b/kubevirt/models/v1_kube_virt_spec.py index 4aa4fa16..0be242a8 100644 --- a/kubevirt/models/v1_kube_virt_spec.py +++ b/kubevirt/models/v1_kube_virt_spec.py @@ -35,6 +35,7 @@ class V1KubeVirtSpec(object): 'configuration': 'V1KubeVirtConfiguration', 'customize_components': 'V1CustomizeComponents', 'image_pull_policy': 'str', + 'image_pull_secrets': 'list[K8sIoApiCoreV1LocalObjectReference]', 'image_registry': 'str', 'image_tag': 'str', 'infra': 'V1ComponentConfig', @@ -54,6 +55,7 @@ class V1KubeVirtSpec(object): 'configuration': 'configuration', 'customize_components': 'customizeComponents', 'image_pull_policy': 'imagePullPolicy', + 'image_pull_secrets': 'imagePullSecrets', 'image_registry': 'imageRegistry', 'image_tag': 'imageTag', 'infra': 'infra', @@ -68,7 +70,7 @@ class V1KubeVirtSpec(object): 'workloads': 'workloads' } - def __init__(self, certificate_rotate_strategy=None, configuration=None, customize_components=None, image_pull_policy=None, image_registry=None, image_tag=None, infra=None, monitor_account=None, monitor_namespace=None, product_component=None, product_name=None, product_version=None, service_monitor_namespace=None, uninstall_strategy=None, workload_update_strategy=None, workloads=None): + def __init__(self, certificate_rotate_strategy=None, configuration=None, customize_components=None, image_pull_policy=None, image_pull_secrets=None, image_registry=None, image_tag=None, infra=None, monitor_account=None, monitor_namespace=None, product_component=None, product_name=None, product_version=None, service_monitor_namespace=None, uninstall_strategy=None, workload_update_strategy=None, workloads=None): """ V1KubeVirtSpec - a model defined in Swagger """ @@ -77,6 +79,7 @@ def __init__(self, certificate_rotate_strategy=None, configuration=None, customi self._configuration = None self._customize_components = None self._image_pull_policy = None + self._image_pull_secrets = None self._image_registry = None self._image_tag = None self._infra = None @@ -98,6 +101,8 @@ def __init__(self, certificate_rotate_strategy=None, configuration=None, customi self.customize_components = customize_components if image_pull_policy is not None: self.image_pull_policy = image_pull_policy + if image_pull_secrets is not None: + self.image_pull_secrets = image_pull_secrets if image_registry is not None: self.image_registry = image_registry if image_tag is not None: @@ -211,6 +216,29 @@ def image_pull_policy(self, image_pull_policy): self._image_pull_policy = image_pull_policy + @property + def image_pull_secrets(self): + """ + Gets the image_pull_secrets of this V1KubeVirtSpec. + The imagePullSecrets to pull the container images from Defaults to none + + :return: The image_pull_secrets of this V1KubeVirtSpec. + :rtype: list[K8sIoApiCoreV1LocalObjectReference] + """ + return self._image_pull_secrets + + @image_pull_secrets.setter + def image_pull_secrets(self, image_pull_secrets): + """ + Sets the image_pull_secrets of this V1KubeVirtSpec. + The imagePullSecrets to pull the container images from Defaults to none + + :param image_pull_secrets: The image_pull_secrets of this V1KubeVirtSpec. + :type: list[K8sIoApiCoreV1LocalObjectReference] + """ + + self._image_pull_secrets = image_pull_secrets + @property def image_registry(self): """ diff --git a/setup.py b/setup.py index 974116d4..b3f7e439 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.59.0-alpha.0-263-g8378b5423" +VERSION = "v0.59.0-alpha.1-36-gbe87d8714" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index ddeaf113..0f3dacb3 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.59.0-alpha.0-263-g8378b5423" +"packageVersion": "v0.59.0-alpha.1-36-gbe87d8714" } From 590567de334e8bb8d7514732fd9a5cc6ac2fe0e8 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 14 Dec 2022 06:03:44 +0000 Subject: [PATCH 307/521] Client Python update by KubeVirt Prow build 1602894084836429824 --- README.md | 2 +- docs/V1InstancetypeMatcher.md | 3 +- docs/V1PreferenceMatcher.md | 3 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_instancetype_matcher.py | 35 +++++++++++++++++++--- kubevirt/models/v1_preference_matcher.py | 35 +++++++++++++++++++--- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 72 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 47f94aa0..b653edf5 100644 --- a/README.md +++ b/README.md @@ -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: v0.59.0-alpha.1-36-gbe87d8714 +- Package version: v0.59.0-alpha.1-79-gc7d77091b - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1InstancetypeMatcher.md b/docs/V1InstancetypeMatcher.md index d404a333..935e58cc 100644 --- a/docs/V1InstancetypeMatcher.md +++ b/docs/V1InstancetypeMatcher.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**infer_from_volume** | **str** | InferFromVolume lists the name of a volume that should be used to infer or discover the instancetype to be used through known annotations on the underlying resource. Once applied to the InstancetypeMatcher this field is removed. | [optional] **kind** | **str** | Kind specifies which instancetype resource is referenced. Allowed values are: \"VirtualMachineInstancetype\" and \"VirtualMachineClusterInstancetype\". If not specified, \"VirtualMachineClusterInstancetype\" is used by default. | [optional] -**name** | **str** | Name is the name of the VirtualMachineInstancetype or VirtualMachineClusterInstancetype | +**name** | **str** | Name is the name of the VirtualMachineInstancetype or VirtualMachineClusterInstancetype | [optional] **revision_name** | **str** | RevisionName specifies a ControllerRevision containing a specific copy of the VirtualMachineInstancetype or VirtualMachineClusterInstancetype to be used. This is initially captured the first time the instancetype is applied to the VirtualMachineInstance. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1PreferenceMatcher.md b/docs/V1PreferenceMatcher.md index 37bbef21..55dbd914 100644 --- a/docs/V1PreferenceMatcher.md +++ b/docs/V1PreferenceMatcher.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**infer_from_volume** | **str** | InferFromVolume lists the name of a volume that should be used to infer or discover the preference to be used through known annotations on the underlying resource. Once applied to the PreferenceMatcher this field is removed. | [optional] **kind** | **str** | Kind specifies which preference resource is referenced. Allowed values are: \"VirtualMachinePreference\" and \"VirtualMachineClusterPreference\". If not specified, \"VirtualMachineClusterPreference\" is used by default. | [optional] -**name** | **str** | Name is the name of the VirtualMachinePreference or VirtualMachineClusterPreference | +**name** | **str** | Name is the name of the VirtualMachinePreference or VirtualMachineClusterPreference | [optional] **revision_name** | **str** | RevisionName specifies a ControllerRevision containing a specific copy of the VirtualMachinePreference or VirtualMachineClusterPreference to be used. This is initially captured the first time the instancetype is applied to the VirtualMachineInstance. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 8202a94b..acb451f8 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.59.0-alpha.1-36-gbe87d8714" + release_note="Auto-generated client v0.59.0-alpha.1-79-gc7d77091b" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index ebe4d889..a443a8f5 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.59.0-alpha.1-36-gbe87d8714/python' + self.user_agent = 'Swagger-Codegen/v0.59.0-alpha.1-79-gc7d77091b/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c5d895ca..fd51f064 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.59.0-alpha.1-36-gbe87d8714".\ + "SDK Package Version: v0.59.0-alpha.1-79-gc7d77091b".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_instancetype_matcher.py b/kubevirt/models/v1_instancetype_matcher.py index 9a0dcb50..49413a8d 100644 --- a/kubevirt/models/v1_instancetype_matcher.py +++ b/kubevirt/models/v1_instancetype_matcher.py @@ -31,32 +31,61 @@ class V1InstancetypeMatcher(object): and the value is json key in definition. """ swagger_types = { + 'infer_from_volume': 'str', 'kind': 'str', 'name': 'str', 'revision_name': 'str' } attribute_map = { + 'infer_from_volume': 'inferFromVolume', 'kind': 'kind', 'name': 'name', 'revision_name': 'revisionName' } - def __init__(self, kind=None, name=None, revision_name=None): + def __init__(self, infer_from_volume=None, kind=None, name=None, revision_name=None): """ V1InstancetypeMatcher - a model defined in Swagger """ + self._infer_from_volume = None self._kind = None self._name = None self._revision_name = None + if infer_from_volume is not None: + self.infer_from_volume = infer_from_volume if kind is not None: self.kind = kind - self.name = name + if name is not None: + self.name = name if revision_name is not None: self.revision_name = revision_name + @property + def infer_from_volume(self): + """ + Gets the infer_from_volume of this V1InstancetypeMatcher. + InferFromVolume lists the name of a volume that should be used to infer or discover the instancetype to be used through known annotations on the underlying resource. Once applied to the InstancetypeMatcher this field is removed. + + :return: The infer_from_volume of this V1InstancetypeMatcher. + :rtype: str + """ + return self._infer_from_volume + + @infer_from_volume.setter + def infer_from_volume(self, infer_from_volume): + """ + Sets the infer_from_volume of this V1InstancetypeMatcher. + InferFromVolume lists the name of a volume that should be used to infer or discover the instancetype to be used through known annotations on the underlying resource. Once applied to the InstancetypeMatcher this field is removed. + + :param infer_from_volume: The infer_from_volume of this V1InstancetypeMatcher. + :type: str + """ + + self._infer_from_volume = infer_from_volume + @property def kind(self): """ @@ -100,8 +129,6 @@ def name(self, name): :param name: The name of this V1InstancetypeMatcher. :type: str """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") self._name = name diff --git a/kubevirt/models/v1_preference_matcher.py b/kubevirt/models/v1_preference_matcher.py index b3f73f92..4f527174 100644 --- a/kubevirt/models/v1_preference_matcher.py +++ b/kubevirt/models/v1_preference_matcher.py @@ -31,32 +31,61 @@ class V1PreferenceMatcher(object): and the value is json key in definition. """ swagger_types = { + 'infer_from_volume': 'str', 'kind': 'str', 'name': 'str', 'revision_name': 'str' } attribute_map = { + 'infer_from_volume': 'inferFromVolume', 'kind': 'kind', 'name': 'name', 'revision_name': 'revisionName' } - def __init__(self, kind=None, name=None, revision_name=None): + def __init__(self, infer_from_volume=None, kind=None, name=None, revision_name=None): """ V1PreferenceMatcher - a model defined in Swagger """ + self._infer_from_volume = None self._kind = None self._name = None self._revision_name = None + if infer_from_volume is not None: + self.infer_from_volume = infer_from_volume if kind is not None: self.kind = kind - self.name = name + if name is not None: + self.name = name if revision_name is not None: self.revision_name = revision_name + @property + def infer_from_volume(self): + """ + Gets the infer_from_volume of this V1PreferenceMatcher. + InferFromVolume lists the name of a volume that should be used to infer or discover the preference to be used through known annotations on the underlying resource. Once applied to the PreferenceMatcher this field is removed. + + :return: The infer_from_volume of this V1PreferenceMatcher. + :rtype: str + """ + return self._infer_from_volume + + @infer_from_volume.setter + def infer_from_volume(self, infer_from_volume): + """ + Sets the infer_from_volume of this V1PreferenceMatcher. + InferFromVolume lists the name of a volume that should be used to infer or discover the preference to be used through known annotations on the underlying resource. Once applied to the PreferenceMatcher this field is removed. + + :param infer_from_volume: The infer_from_volume of this V1PreferenceMatcher. + :type: str + """ + + self._infer_from_volume = infer_from_volume + @property def kind(self): """ @@ -100,8 +129,6 @@ def name(self, name): :param name: The name of this V1PreferenceMatcher. :type: str """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") self._name = name diff --git a/setup.py b/setup.py index b3f7e439..87a77fa9 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.59.0-alpha.1-36-gbe87d8714" +VERSION = "v0.59.0-alpha.1-79-gc7d77091b" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 0f3dacb3..9faad0fc 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.59.0-alpha.1-36-gbe87d8714" +"packageVersion": "v0.59.0-alpha.1-79-gc7d77091b" } From fad5dd5a21de029dbd1be85c4510f81e60b810c3 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 22 Dec 2022 14:15:12 +0000 Subject: [PATCH 308/521] Client Python update by KubeVirt Prow build 1605920647559516160 --- README.md | 2 +- docs/DefaultApi.md | 12 ++++++++---- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 12 ++++++++++-- kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 24 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index b653edf5..a5ecacd7 100644 --- a/README.md +++ b/README.md @@ -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: v0.59.0-alpha.1-79-gc7d77091b +- Package version: v0.59.0-alpha.1-131-g1c7cbcc3f - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index f45c6640..e11132d3 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -9502,7 +9502,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1_vsock** -> v1_vsock(name, namespace, port) +> v1_vsock(name, namespace, port, tls=tls) @@ -9521,9 +9521,10 @@ api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects port = 56 # int | The port which the VSOCK application listens to. +tls = true # bool | Weather to request a TLS encrypted session from the VSOCK application. (optional) try: - api_instance.v1_vsock(name, namespace, port) + api_instance.v1_vsock(name, namespace, port, tls=tls) except ApiException as e: print("Exception when calling DefaultApi->v1_vsock: %s\n" % e) ``` @@ -9535,6 +9536,7 @@ Name | Type | Description | Notes **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | **port** | **int**| The port which the VSOCK application listens to. | + **tls** | **bool**| Weather to request a TLS encrypted session from the VSOCK application. | [optional] ### Return type @@ -10646,7 +10648,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1alpha3_vsock** -> v1alpha3_vsock(name, namespace, port) +> v1alpha3_vsock(name, namespace, port, tls=tls) @@ -10665,9 +10667,10 @@ api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects port = 56 # int | The port which the VSOCK application listens to. +tls = true # bool | Weather to request a TLS encrypted session from the VSOCK application. (optional) try: - api_instance.v1alpha3_vsock(name, namespace, port) + api_instance.v1alpha3_vsock(name, namespace, port, tls=tls) except ApiException as e: print("Exception when calling DefaultApi->v1alpha3_vsock: %s\n" % e) ``` @@ -10679,6 +10682,7 @@ Name | Type | Description | Notes **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | **port** | **int**| The port which the VSOCK application listens to. | + **tls** | **bool**| Weather to request a TLS encrypted session from the VSOCK application. | [optional] ### Return type diff --git a/git_push.sh b/git_push.sh index acb451f8..42c30c39 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.59.0-alpha.1-79-gc7d77091b" + release_note="Auto-generated client v0.59.0-alpha.1-131-g1c7cbcc3f" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index a443a8f5..5dc31f14 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.59.0-alpha.1-79-gc7d77091b/python' + self.user_agent = 'Swagger-Codegen/v0.59.0-alpha.1-131-g1c7cbcc3f/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index dac57864..da52bb32 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -20138,6 +20138,7 @@ def v1_vsock(self, name, namespace, port, **kwargs): :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param int port: The port which the VSOCK application listens to. (required) + :param bool tls: Weather to request a TLS encrypted session from the VSOCK application. :return: None If the method is called asynchronously, returns the request thread. @@ -20165,12 +20166,13 @@ def v1_vsock_with_http_info(self, name, namespace, port, **kwargs): :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param int port: The port which the VSOCK application listens to. (required) + :param bool tls: Weather to request a TLS encrypted session from the VSOCK application. :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'port'] + all_params = ['name', 'namespace', 'port', 'tls'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -20207,6 +20209,8 @@ def v1_vsock_with_http_info(self, name, namespace, port, **kwargs): query_params = [] if 'port' in params: query_params.append(('port', params['port'])) + if 'tls' in params: + query_params.append(('tls', params['tls'])) header_params = {} @@ -22614,6 +22618,7 @@ def v1alpha3_vsock(self, name, namespace, port, **kwargs): :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param int port: The port which the VSOCK application listens to. (required) + :param bool tls: Weather to request a TLS encrypted session from the VSOCK application. :return: None If the method is called asynchronously, returns the request thread. @@ -22641,12 +22646,13 @@ def v1alpha3_vsock_with_http_info(self, name, namespace, port, **kwargs): :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param int port: The port which the VSOCK application listens to. (required) + :param bool tls: Weather to request a TLS encrypted session from the VSOCK application. :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'port'] + all_params = ['name', 'namespace', 'port', 'tls'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -22683,6 +22689,8 @@ def v1alpha3_vsock_with_http_info(self, name, namespace, port, **kwargs): query_params = [] if 'port' in params: query_params.append(('port', params['port'])) + if 'tls' in params: + query_params.append(('tls', params['tls'])) header_params = {} diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index fd51f064..b8c38687 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.59.0-alpha.1-79-gc7d77091b".\ + "SDK Package Version: v0.59.0-alpha.1-131-g1c7cbcc3f".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index 87a77fa9..8f0058cd 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.59.0-alpha.1-79-gc7d77091b" +VERSION = "v0.59.0-alpha.1-131-g1c7cbcc3f" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 9faad0fc..f7a13579 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.59.0-alpha.1-79-gc7d77091b" +"packageVersion": "v0.59.0-alpha.1-131-g1c7cbcc3f" } From a99de1e9a692fff64dd5e140a846a5828c639a2f Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 18 Jan 2023 15:12:03 +0000 Subject: [PATCH 309/521] Client Python update by KubeVirt Prow build 1615715337750188032 --- README.md | 3 +- docs/V1alpha1VirtualMachineExportLink.md | 1 + docs/V1alpha1VirtualMachineExportManifest.md | 11 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + .../v1alpha1_virtual_machine_export_link.py | 30 +++- ...1alpha1_virtual_machine_export_manifest.py | 155 ++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- ...1alpha1_virtual_machine_export_manifest.py | 44 +++++ 14 files changed, 252 insertions(+), 7 deletions(-) create mode 100644 docs/V1alpha1VirtualMachineExportManifest.md create mode 100644 kubevirt/models/v1alpha1_virtual_machine_export_manifest.py create mode 100644 test/test_v1alpha1_virtual_machine_export_manifest.py diff --git a/README.md b/README.md index a5ecacd7..6e301c50 100644 --- a/README.md +++ b/README.md @@ -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: v0.59.0-alpha.1-131-g1c7cbcc3f +- Package version: v0.59.0-alpha.2-95-gcd4efb6d8 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -592,6 +592,7 @@ Class | Method | HTTP request | Description - [V1alpha1VirtualMachineExportLink](docs/V1alpha1VirtualMachineExportLink.md) - [V1alpha1VirtualMachineExportLinks](docs/V1alpha1VirtualMachineExportLinks.md) - [V1alpha1VirtualMachineExportList](docs/V1alpha1VirtualMachineExportList.md) + - [V1alpha1VirtualMachineExportManifest](docs/V1alpha1VirtualMachineExportManifest.md) - [V1alpha1VirtualMachineExportSpec](docs/V1alpha1VirtualMachineExportSpec.md) - [V1alpha1VirtualMachineExportStatus](docs/V1alpha1VirtualMachineExportStatus.md) - [V1alpha1VirtualMachineExportVolume](docs/V1alpha1VirtualMachineExportVolume.md) diff --git a/docs/V1alpha1VirtualMachineExportLink.md b/docs/V1alpha1VirtualMachineExportLink.md index 5eb9e11a..2737b998 100644 --- a/docs/V1alpha1VirtualMachineExportLink.md +++ b/docs/V1alpha1VirtualMachineExportLink.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cert** | **str** | Cert is the public CA certificate base64 encoded | +**manifests** | [**list[V1alpha1VirtualMachineExportManifest]**](V1alpha1VirtualMachineExportManifest.md) | Manifests is a list of available manifests for the export | [optional] **volumes** | [**list[V1alpha1VirtualMachineExportVolume]**](V1alpha1VirtualMachineExportVolume.md) | Volumes is a list of available volumes to export | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineExportManifest.md b/docs/V1alpha1VirtualMachineExportManifest.md new file mode 100644 index 00000000..f8f45fbf --- /dev/null +++ b/docs/V1alpha1VirtualMachineExportManifest.md @@ -0,0 +1,11 @@ +# V1alpha1VirtualMachineExportManifest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | Type is the type of manifest returned | +**url** | **str** | Url is the url of the endpoint that returns the manifest | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 42c30c39..887c2ea1 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.59.0-alpha.1-131-g1c7cbcc3f" + release_note="Auto-generated client v0.59.0-alpha.2-95-gcd4efb6d8" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index bdaf0ee4..16267558 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -804,6 +804,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/v1alpha1_virtual_machine_export_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_export_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineExportList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_export_manifest.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_export_manifest.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineExportManifest.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_export_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_export_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineExportSpec.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 4736511b..cd58e2b0 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -275,6 +275,7 @@ from .models.v1alpha1_virtual_machine_export_link import V1alpha1VirtualMachineExportLink from .models.v1alpha1_virtual_machine_export_links import V1alpha1VirtualMachineExportLinks from .models.v1alpha1_virtual_machine_export_list import V1alpha1VirtualMachineExportList +from .models.v1alpha1_virtual_machine_export_manifest import V1alpha1VirtualMachineExportManifest from .models.v1alpha1_virtual_machine_export_spec import V1alpha1VirtualMachineExportSpec from .models.v1alpha1_virtual_machine_export_status import V1alpha1VirtualMachineExportStatus from .models.v1alpha1_virtual_machine_export_volume import V1alpha1VirtualMachineExportVolume diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 5dc31f14..a773c31f 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.59.0-alpha.1-131-g1c7cbcc3f/python' + self.user_agent = 'Swagger-Codegen/v0.59.0-alpha.2-95-gcd4efb6d8/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index b8c38687..61fb8ebd 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.59.0-alpha.1-131-g1c7cbcc3f".\ + "SDK Package Version: v0.59.0-alpha.2-95-gcd4efb6d8".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 62c88727..9fde65ba 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -275,6 +275,7 @@ from .v1alpha1_virtual_machine_export_link import V1alpha1VirtualMachineExportLink from .v1alpha1_virtual_machine_export_links import V1alpha1VirtualMachineExportLinks from .v1alpha1_virtual_machine_export_list import V1alpha1VirtualMachineExportList +from .v1alpha1_virtual_machine_export_manifest import V1alpha1VirtualMachineExportManifest from .v1alpha1_virtual_machine_export_spec import V1alpha1VirtualMachineExportSpec from .v1alpha1_virtual_machine_export_status import V1alpha1VirtualMachineExportStatus from .v1alpha1_virtual_machine_export_volume import V1alpha1VirtualMachineExportVolume diff --git a/kubevirt/models/v1alpha1_virtual_machine_export_link.py b/kubevirt/models/v1alpha1_virtual_machine_export_link.py index f64ab912..a367feb6 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_export_link.py +++ b/kubevirt/models/v1alpha1_virtual_machine_export_link.py @@ -32,23 +32,28 @@ class V1alpha1VirtualMachineExportLink(object): """ swagger_types = { 'cert': 'str', + 'manifests': 'list[V1alpha1VirtualMachineExportManifest]', 'volumes': 'list[V1alpha1VirtualMachineExportVolume]' } attribute_map = { 'cert': 'cert', + 'manifests': 'manifests', 'volumes': 'volumes' } - def __init__(self, cert=None, volumes=None): + def __init__(self, cert=None, manifests=None, volumes=None): """ V1alpha1VirtualMachineExportLink - a model defined in Swagger """ self._cert = None + self._manifests = None self._volumes = None self.cert = cert + if manifests is not None: + self.manifests = manifests if volumes is not None: self.volumes = volumes @@ -77,6 +82,29 @@ def cert(self, cert): self._cert = cert + @property + def manifests(self): + """ + Gets the manifests of this V1alpha1VirtualMachineExportLink. + Manifests is a list of available manifests for the export + + :return: The manifests of this V1alpha1VirtualMachineExportLink. + :rtype: list[V1alpha1VirtualMachineExportManifest] + """ + return self._manifests + + @manifests.setter + def manifests(self, manifests): + """ + Sets the manifests of this V1alpha1VirtualMachineExportLink. + Manifests is a list of available manifests for the export + + :param manifests: The manifests of this V1alpha1VirtualMachineExportLink. + :type: list[V1alpha1VirtualMachineExportManifest] + """ + + self._manifests = manifests + @property def volumes(self): """ diff --git a/kubevirt/models/v1alpha1_virtual_machine_export_manifest.py b/kubevirt/models/v1alpha1_virtual_machine_export_manifest.py new file mode 100644 index 00000000..ba828075 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_export_manifest.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineExportManifest(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'str', + 'url': 'str' + } + + attribute_map = { + 'type': 'type', + 'url': 'url' + } + + def __init__(self, type=None, url=None): + """ + V1alpha1VirtualMachineExportManifest - a model defined in Swagger + """ + + self._type = None + self._url = None + + self.type = type + self.url = url + + @property + def type(self): + """ + Gets the type of this V1alpha1VirtualMachineExportManifest. + Type is the type of manifest returned + + :return: The type of this V1alpha1VirtualMachineExportManifest. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1alpha1VirtualMachineExportManifest. + Type is the type of manifest returned + + :param type: The type of this V1alpha1VirtualMachineExportManifest. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def url(self): + """ + Gets the url of this V1alpha1VirtualMachineExportManifest. + Url is the url of the endpoint that returns the manifest + + :return: The url of this V1alpha1VirtualMachineExportManifest. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """ + Sets the url of this V1alpha1VirtualMachineExportManifest. + Url is the url of the endpoint that returns the manifest + + :param url: The url of this V1alpha1VirtualMachineExportManifest. + :type: str + """ + if url is None: + raise ValueError("Invalid value for `url`, must not be `None`") + + self._url = url + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineExportManifest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 8f0058cd..1fafd02e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.59.0-alpha.1-131-g1c7cbcc3f" +VERSION = "v0.59.0-alpha.2-95-gcd4efb6d8" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index f7a13579..47731969 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.59.0-alpha.1-131-g1c7cbcc3f" +"packageVersion": "v0.59.0-alpha.2-95-gcd4efb6d8" } diff --git a/test/test_v1alpha1_virtual_machine_export_manifest.py b/test/test_v1alpha1_virtual_machine_export_manifest.py new file mode 100644 index 00000000..ef9705d6 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_export_manifest.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_export_manifest import V1alpha1VirtualMachineExportManifest + + +class TestV1alpha1VirtualMachineExportManifest(unittest.TestCase): + """ V1alpha1VirtualMachineExportManifest unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineExportManifest(self): + """ + Test V1alpha1VirtualMachineExportManifest + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_export_manifest.V1alpha1VirtualMachineExportManifest() + pass + + +if __name__ == '__main__': + unittest.main() From 7c16b889d944c79f9c9a0e43f71e79f3774bdca2 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 20 Jan 2023 23:20:45 +0000 Subject: [PATCH 310/521] Client Python update by KubeVirt Prow build 1616566114089701376 --- README.md | 2 +- ...V1VirtualMachineInstanceMigrationStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...rtual_machine_instance_migration_status.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 6e301c50..be71c93a 100644 --- a/README.md +++ b/README.md @@ -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: v0.59.0-alpha.2-95-gcd4efb6d8 +- Package version: v0.59.0-alpha.2-113-gca83ea3ab - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceMigrationStatus.md b/docs/V1VirtualMachineInstanceMigrationStatus.md index 4c8aa2c1..9d8be201 100644 --- a/docs/V1VirtualMachineInstanceMigrationStatus.md +++ b/docs/V1VirtualMachineInstanceMigrationStatus.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **conditions** | [**list[V1VirtualMachineInstanceMigrationCondition]**](V1VirtualMachineInstanceMigrationCondition.md) | | [optional] +**migration_state** | [**V1VirtualMachineInstanceMigrationState**](V1VirtualMachineInstanceMigrationState.md) | Represents the status of a live migration | [optional] **phase** | **str** | | [optional] **phase_transition_timestamps** | [**list[V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp]**](V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp.md) | PhaseTransitionTimestamp is the timestamp of when the last phase change occurred | [optional] diff --git a/git_push.sh b/git_push.sh index 887c2ea1..87c67832 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.59.0-alpha.2-95-gcd4efb6d8" + release_note="Auto-generated client v0.59.0-alpha.2-113-gca83ea3ab" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index a773c31f..9581fec5 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.59.0-alpha.2-95-gcd4efb6d8/python' + self.user_agent = 'Swagger-Codegen/v0.59.0-alpha.2-113-gca83ea3ab/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 61fb8ebd..53648ad6 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.59.0-alpha.2-95-gcd4efb6d8".\ + "SDK Package Version: v0.59.0-alpha.2-113-gca83ea3ab".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_status.py b/kubevirt/models/v1_virtual_machine_instance_migration_status.py index b68c0d11..f088507a 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_status.py @@ -32,27 +32,32 @@ class V1VirtualMachineInstanceMigrationStatus(object): """ swagger_types = { 'conditions': 'list[V1VirtualMachineInstanceMigrationCondition]', + 'migration_state': 'V1VirtualMachineInstanceMigrationState', 'phase': 'str', 'phase_transition_timestamps': 'list[V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp]' } attribute_map = { 'conditions': 'conditions', + 'migration_state': 'migrationState', 'phase': 'phase', 'phase_transition_timestamps': 'phaseTransitionTimestamps' } - def __init__(self, conditions=None, phase=None, phase_transition_timestamps=None): + def __init__(self, conditions=None, migration_state=None, phase=None, phase_transition_timestamps=None): """ V1VirtualMachineInstanceMigrationStatus - a model defined in Swagger """ self._conditions = None + self._migration_state = None self._phase = None self._phase_transition_timestamps = None if conditions is not None: self.conditions = conditions + if migration_state is not None: + self.migration_state = migration_state if phase is not None: self.phase = phase if phase_transition_timestamps is not None: @@ -79,6 +84,29 @@ def conditions(self, conditions): self._conditions = conditions + @property + def migration_state(self): + """ + Gets the migration_state of this V1VirtualMachineInstanceMigrationStatus. + Represents the status of a live migration + + :return: The migration_state of this V1VirtualMachineInstanceMigrationStatus. + :rtype: V1VirtualMachineInstanceMigrationState + """ + return self._migration_state + + @migration_state.setter + def migration_state(self, migration_state): + """ + Sets the migration_state of this V1VirtualMachineInstanceMigrationStatus. + Represents the status of a live migration + + :param migration_state: The migration_state of this V1VirtualMachineInstanceMigrationStatus. + :type: V1VirtualMachineInstanceMigrationState + """ + + self._migration_state = migration_state + @property def phase(self): """ diff --git a/setup.py b/setup.py index 1fafd02e..67284598 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.59.0-alpha.2-95-gcd4efb6d8" +VERSION = "v0.59.0-alpha.2-113-gca83ea3ab" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 47731969..31196201 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.59.0-alpha.2-95-gcd4efb6d8" +"packageVersion": "v0.59.0-alpha.2-113-gca83ea3ab" } From 8b300c1025aae667c498db4a29673e0416a5a9a1 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Mon, 23 Jan 2023 19:36:58 +0000 Subject: [PATCH 311/521] Client Python update by KubeVirt Prow build 1617596899118813184 --- README.md | 5 +- docs/V1CustomProfile.md | 11 ++ docs/V1KubeVirtConfiguration.md | 1 + docs/V1SeccompConfiguration.md | 10 ++ docs/V1VirtualMachineInstanceProfile.md | 10 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 9 ++ kubevirt/__init__.py | 3 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 3 + kubevirt/models/v1_custom_profile.py | 149 ++++++++++++++++++ kubevirt/models/v1_kube_virt_configuration.py | 28 +++- kubevirt/models/v1_seccomp_configuration.py | 125 +++++++++++++++ .../v1_virtual_machine_instance_profile.py | 125 +++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_custom_profile.py | 44 ++++++ test/test_v1_seccomp_configuration.py | 44 ++++++ ...est_v1_virtual_machine_instance_profile.py | 44 ++++++ 20 files changed, 614 insertions(+), 7 deletions(-) create mode 100644 docs/V1CustomProfile.md create mode 100644 docs/V1SeccompConfiguration.md create mode 100644 docs/V1VirtualMachineInstanceProfile.md create mode 100644 kubevirt/models/v1_custom_profile.py create mode 100644 kubevirt/models/v1_seccomp_configuration.py create mode 100644 kubevirt/models/v1_virtual_machine_instance_profile.py create mode 100644 test/test_v1_custom_profile.py create mode 100644 test/test_v1_seccomp_configuration.py create mode 100644 test/test_v1_virtual_machine_instance_profile.py diff --git a/README.md b/README.md index be71c93a..33b37170 100644 --- a/README.md +++ b/README.md @@ -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: v0.59.0-alpha.2-113-gca83ea3ab +- Package version: v0.59.0-alpha.2-124-g54d747548 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -405,6 +405,7 @@ Class | Method | HTTP request | Description - [V1ConfigMapVolumeSource](docs/V1ConfigMapVolumeSource.md) - [V1ContainerDiskSource](docs/V1ContainerDiskSource.md) - [V1CustomBlockSize](docs/V1CustomBlockSize.md) + - [V1CustomProfile](docs/V1CustomProfile.md) - [V1CustomizeComponents](docs/V1CustomizeComponents.md) - [V1CustomizeComponentsPatch](docs/V1CustomizeComponentsPatch.md) - [V1DHCPOptions](docs/V1DHCPOptions.md) @@ -512,6 +513,7 @@ Class | Method | HTTP request | Description - [V1SSHPublicKeyAccessCredential](docs/V1SSHPublicKeyAccessCredential.md) - [V1SSHPublicKeyAccessCredentialPropagationMethod](docs/V1SSHPublicKeyAccessCredentialPropagationMethod.md) - [V1SSHPublicKeyAccessCredentialSource](docs/V1SSHPublicKeyAccessCredentialSource.md) + - [V1SeccompConfiguration](docs/V1SeccompConfiguration.md) - [V1SecretVolumeSource](docs/V1SecretVolumeSource.md) - [V1ServiceAccountVolumeSource](docs/V1ServiceAccountVolumeSource.md) - [V1SoundDevice](docs/V1SoundDevice.md) @@ -554,6 +556,7 @@ Class | Method | HTTP request | Description - [V1VirtualMachineInstancePreset](docs/V1VirtualMachineInstancePreset.md) - [V1VirtualMachineInstancePresetList](docs/V1VirtualMachineInstancePresetList.md) - [V1VirtualMachineInstancePresetSpec](docs/V1VirtualMachineInstancePresetSpec.md) + - [V1VirtualMachineInstanceProfile](docs/V1VirtualMachineInstanceProfile.md) - [V1VirtualMachineInstanceReplicaSet](docs/V1VirtualMachineInstanceReplicaSet.md) - [V1VirtualMachineInstanceReplicaSetCondition](docs/V1VirtualMachineInstanceReplicaSetCondition.md) - [V1VirtualMachineInstanceReplicaSetList](docs/V1VirtualMachineInstanceReplicaSetList.md) diff --git a/docs/V1CustomProfile.md b/docs/V1CustomProfile.md new file mode 100644 index 00000000..c1fe1860 --- /dev/null +++ b/docs/V1CustomProfile.md @@ -0,0 +1,11 @@ +# V1CustomProfile + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**localhost_profile** | **str** | | [optional] +**runtime_default_profile** | **bool** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index 19e2cc10..7de09a65 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -22,6 +22,7 @@ Name | Type | Description | Notes **obsolete_cpu_models** | **dict(str, bool)** | | [optional] **ovmf_path** | **str** | | [optional] **permitted_host_devices** | [**V1PermittedHostDevices**](V1PermittedHostDevices.md) | | [optional] +**seccomp_configuration** | [**V1SeccompConfiguration**](V1SeccompConfiguration.md) | | [optional] **selinux_launcher_type** | **str** | | [optional] **smbios** | [**V1SMBiosConfiguration**](V1SMBiosConfiguration.md) | | [optional] **supported_guest_agent_versions** | **list[str]** | deprecated | [optional] diff --git a/docs/V1SeccompConfiguration.md b/docs/V1SeccompConfiguration.md new file mode 100644 index 00000000..e9d4d1c8 --- /dev/null +++ b/docs/V1SeccompConfiguration.md @@ -0,0 +1,10 @@ +# V1SeccompConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**virtual_machine_instance_profile** | [**V1VirtualMachineInstanceProfile**](V1VirtualMachineInstanceProfile.md) | VirtualMachineInstanceProfile defines what profile should be used with virt-launcher. Defaults to none | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceProfile.md b/docs/V1VirtualMachineInstanceProfile.md new file mode 100644 index 00000000..e58592a2 --- /dev/null +++ b/docs/V1VirtualMachineInstanceProfile.md @@ -0,0 +1,10 @@ +# V1VirtualMachineInstanceProfile + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**custom_profile** | [**V1CustomProfile**](V1CustomProfile.md) | CustomProfile allows to request arbitrary profile for virt-launcher | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 87c67832..37b859e1 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.59.0-alpha.2-113-gca83ea3ab" + release_note="Auto-generated client v0.59.0-alpha.2-124-g54d747548" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 16267558..2a9b2cd4 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -243,6 +243,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_custom_block_size.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_custom_block_size.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CustomBlockSize.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_custom_profile.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_custom_profile.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CustomProfile.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_customize_components.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_customize_components.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CustomizeComponents.md @@ -564,6 +567,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_ssh_public_key_access_credential_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_ssh_public_key_access_credential_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SSHPublicKeyAccessCredentialSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_seccomp_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_seccomp_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SeccompConfiguration.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_secret_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_secret_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SecretVolumeSource.md @@ -690,6 +696,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_virtual_machine_instance_preset_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_preset_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstancePresetSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_profile.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_profile.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceProfile.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_replica_set.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_replica_set.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceReplicaSet.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index cd58e2b0..35b3f66e 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -88,6 +88,7 @@ from .models.v1_config_map_volume_source import V1ConfigMapVolumeSource from .models.v1_container_disk_source import V1ContainerDiskSource from .models.v1_custom_block_size import V1CustomBlockSize +from .models.v1_custom_profile import V1CustomProfile from .models.v1_customize_components import V1CustomizeComponents from .models.v1_customize_components_patch import V1CustomizeComponentsPatch from .models.v1_dhcp_options import V1DHCPOptions @@ -195,6 +196,7 @@ from .models.v1_ssh_public_key_access_credential import V1SSHPublicKeyAccessCredential from .models.v1_ssh_public_key_access_credential_propagation_method import V1SSHPublicKeyAccessCredentialPropagationMethod from .models.v1_ssh_public_key_access_credential_source import V1SSHPublicKeyAccessCredentialSource +from .models.v1_seccomp_configuration import V1SeccompConfiguration from .models.v1_secret_volume_source import V1SecretVolumeSource from .models.v1_service_account_volume_source import V1ServiceAccountVolumeSource from .models.v1_sound_device import V1SoundDevice @@ -237,6 +239,7 @@ from .models.v1_virtual_machine_instance_preset import V1VirtualMachineInstancePreset from .models.v1_virtual_machine_instance_preset_list import V1VirtualMachineInstancePresetList from .models.v1_virtual_machine_instance_preset_spec import V1VirtualMachineInstancePresetSpec +from .models.v1_virtual_machine_instance_profile import V1VirtualMachineInstanceProfile from .models.v1_virtual_machine_instance_replica_set import V1VirtualMachineInstanceReplicaSet from .models.v1_virtual_machine_instance_replica_set_condition import V1VirtualMachineInstanceReplicaSetCondition from .models.v1_virtual_machine_instance_replica_set_list import V1VirtualMachineInstanceReplicaSetList diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 9581fec5..ea6b87b3 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.59.0-alpha.2-113-gca83ea3ab/python' + self.user_agent = 'Swagger-Codegen/v0.59.0-alpha.2-124-g54d747548/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 53648ad6..6b3e1e76 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.59.0-alpha.2-113-gca83ea3ab".\ + "SDK Package Version: v0.59.0-alpha.2-124-g54d747548".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 9fde65ba..da3d8e43 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -88,6 +88,7 @@ from .v1_config_map_volume_source import V1ConfigMapVolumeSource from .v1_container_disk_source import V1ContainerDiskSource from .v1_custom_block_size import V1CustomBlockSize +from .v1_custom_profile import V1CustomProfile from .v1_customize_components import V1CustomizeComponents from .v1_customize_components_patch import V1CustomizeComponentsPatch from .v1_dhcp_options import V1DHCPOptions @@ -195,6 +196,7 @@ from .v1_ssh_public_key_access_credential import V1SSHPublicKeyAccessCredential from .v1_ssh_public_key_access_credential_propagation_method import V1SSHPublicKeyAccessCredentialPropagationMethod from .v1_ssh_public_key_access_credential_source import V1SSHPublicKeyAccessCredentialSource +from .v1_seccomp_configuration import V1SeccompConfiguration from .v1_secret_volume_source import V1SecretVolumeSource from .v1_service_account_volume_source import V1ServiceAccountVolumeSource from .v1_sound_device import V1SoundDevice @@ -237,6 +239,7 @@ from .v1_virtual_machine_instance_preset import V1VirtualMachineInstancePreset from .v1_virtual_machine_instance_preset_list import V1VirtualMachineInstancePresetList from .v1_virtual_machine_instance_preset_spec import V1VirtualMachineInstancePresetSpec +from .v1_virtual_machine_instance_profile import V1VirtualMachineInstanceProfile from .v1_virtual_machine_instance_replica_set import V1VirtualMachineInstanceReplicaSet from .v1_virtual_machine_instance_replica_set_condition import V1VirtualMachineInstanceReplicaSetCondition from .v1_virtual_machine_instance_replica_set_list import V1VirtualMachineInstanceReplicaSetList diff --git a/kubevirt/models/v1_custom_profile.py b/kubevirt/models/v1_custom_profile.py new file mode 100644 index 00000000..9d860bb4 --- /dev/null +++ b/kubevirt/models/v1_custom_profile.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1CustomProfile(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'localhost_profile': 'str', + 'runtime_default_profile': 'bool' + } + + attribute_map = { + 'localhost_profile': 'localhostProfile', + 'runtime_default_profile': 'runtimeDefaultProfile' + } + + def __init__(self, localhost_profile=None, runtime_default_profile=None): + """ + V1CustomProfile - a model defined in Swagger + """ + + self._localhost_profile = None + self._runtime_default_profile = None + + if localhost_profile is not None: + self.localhost_profile = localhost_profile + if runtime_default_profile is not None: + self.runtime_default_profile = runtime_default_profile + + @property + def localhost_profile(self): + """ + Gets the localhost_profile of this V1CustomProfile. + + :return: The localhost_profile of this V1CustomProfile. + :rtype: str + """ + return self._localhost_profile + + @localhost_profile.setter + def localhost_profile(self, localhost_profile): + """ + Sets the localhost_profile of this V1CustomProfile. + + :param localhost_profile: The localhost_profile of this V1CustomProfile. + :type: str + """ + + self._localhost_profile = localhost_profile + + @property + def runtime_default_profile(self): + """ + Gets the runtime_default_profile of this V1CustomProfile. + + :return: The runtime_default_profile of this V1CustomProfile. + :rtype: bool + """ + return self._runtime_default_profile + + @runtime_default_profile.setter + def runtime_default_profile(self, runtime_default_profile): + """ + Sets the runtime_default_profile of this V1CustomProfile. + + :param runtime_default_profile: The runtime_default_profile of this V1CustomProfile. + :type: bool + """ + + self._runtime_default_profile = runtime_default_profile + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1CustomProfile): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index 993114a7..ef47fd9f 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -50,6 +50,7 @@ class V1KubeVirtConfiguration(object): 'obsolete_cpu_models': 'dict(str, bool)', 'ovmf_path': 'str', 'permitted_host_devices': 'V1PermittedHostDevices', + 'seccomp_configuration': 'V1SeccompConfiguration', 'selinux_launcher_type': 'str', 'smbios': 'V1SMBiosConfiguration', 'supported_guest_agent_versions': 'list[str]', @@ -78,6 +79,7 @@ class V1KubeVirtConfiguration(object): 'obsolete_cpu_models': 'obsoleteCPUModels', 'ovmf_path': 'ovmfPath', 'permitted_host_devices': 'permittedHostDevices', + 'seccomp_configuration': 'seccompConfiguration', 'selinux_launcher_type': 'selinuxLauncherType', 'smbios': 'smbios', 'supported_guest_agent_versions': 'supportedGuestAgentVersions', @@ -86,7 +88,7 @@ class V1KubeVirtConfiguration(object): 'webhook_configuration': 'webhookConfiguration' } - def __init__(self, api_configuration=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, selinux_launcher_type=None, smbios=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, webhook_configuration=None): + def __init__(self, api_configuration=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, webhook_configuration=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ @@ -110,6 +112,7 @@ def __init__(self, api_configuration=None, controller_configuration=None, cpu_mo self._obsolete_cpu_models = None self._ovmf_path = None self._permitted_host_devices = None + self._seccomp_configuration = None self._selinux_launcher_type = None self._smbios = None self._supported_guest_agent_versions = None @@ -155,6 +158,8 @@ def __init__(self, api_configuration=None, controller_configuration=None, cpu_mo self.ovmf_path = ovmf_path if permitted_host_devices is not None: self.permitted_host_devices = permitted_host_devices + if seccomp_configuration is not None: + self.seccomp_configuration = seccomp_configuration if selinux_launcher_type is not None: self.selinux_launcher_type = selinux_launcher_type if smbios is not None: @@ -569,6 +574,27 @@ def permitted_host_devices(self, permitted_host_devices): self._permitted_host_devices = permitted_host_devices + @property + def seccomp_configuration(self): + """ + Gets the seccomp_configuration of this V1KubeVirtConfiguration. + + :return: The seccomp_configuration of this V1KubeVirtConfiguration. + :rtype: V1SeccompConfiguration + """ + return self._seccomp_configuration + + @seccomp_configuration.setter + def seccomp_configuration(self, seccomp_configuration): + """ + Sets the seccomp_configuration of this V1KubeVirtConfiguration. + + :param seccomp_configuration: The seccomp_configuration of this V1KubeVirtConfiguration. + :type: V1SeccompConfiguration + """ + + self._seccomp_configuration = seccomp_configuration + @property def selinux_launcher_type(self): """ diff --git a/kubevirt/models/v1_seccomp_configuration.py b/kubevirt/models/v1_seccomp_configuration.py new file mode 100644 index 00000000..46eb6ca5 --- /dev/null +++ b/kubevirt/models/v1_seccomp_configuration.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SeccompConfiguration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'virtual_machine_instance_profile': 'V1VirtualMachineInstanceProfile' + } + + attribute_map = { + 'virtual_machine_instance_profile': 'virtualMachineInstanceProfile' + } + + def __init__(self, virtual_machine_instance_profile=None): + """ + V1SeccompConfiguration - a model defined in Swagger + """ + + self._virtual_machine_instance_profile = None + + if virtual_machine_instance_profile is not None: + self.virtual_machine_instance_profile = virtual_machine_instance_profile + + @property + def virtual_machine_instance_profile(self): + """ + Gets the virtual_machine_instance_profile of this V1SeccompConfiguration. + VirtualMachineInstanceProfile defines what profile should be used with virt-launcher. Defaults to none + + :return: The virtual_machine_instance_profile of this V1SeccompConfiguration. + :rtype: V1VirtualMachineInstanceProfile + """ + return self._virtual_machine_instance_profile + + @virtual_machine_instance_profile.setter + def virtual_machine_instance_profile(self, virtual_machine_instance_profile): + """ + Sets the virtual_machine_instance_profile of this V1SeccompConfiguration. + VirtualMachineInstanceProfile defines what profile should be used with virt-launcher. Defaults to none + + :param virtual_machine_instance_profile: The virtual_machine_instance_profile of this V1SeccompConfiguration. + :type: V1VirtualMachineInstanceProfile + """ + + self._virtual_machine_instance_profile = virtual_machine_instance_profile + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1SeccompConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_profile.py b/kubevirt/models/v1_virtual_machine_instance_profile.py new file mode 100644 index 00000000..1264cd75 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_profile.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineInstanceProfile(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'custom_profile': 'V1CustomProfile' + } + + attribute_map = { + 'custom_profile': 'customProfile' + } + + def __init__(self, custom_profile=None): + """ + V1VirtualMachineInstanceProfile - a model defined in Swagger + """ + + self._custom_profile = None + + if custom_profile is not None: + self.custom_profile = custom_profile + + @property + def custom_profile(self): + """ + Gets the custom_profile of this V1VirtualMachineInstanceProfile. + CustomProfile allows to request arbitrary profile for virt-launcher + + :return: The custom_profile of this V1VirtualMachineInstanceProfile. + :rtype: V1CustomProfile + """ + return self._custom_profile + + @custom_profile.setter + def custom_profile(self, custom_profile): + """ + Sets the custom_profile of this V1VirtualMachineInstanceProfile. + CustomProfile allows to request arbitrary profile for virt-launcher + + :param custom_profile: The custom_profile of this V1VirtualMachineInstanceProfile. + :type: V1CustomProfile + """ + + self._custom_profile = custom_profile + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineInstanceProfile): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 67284598..1513dde7 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.59.0-alpha.2-113-gca83ea3ab" +VERSION = "v0.59.0-alpha.2-124-g54d747548" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 31196201..419d015f 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.59.0-alpha.2-113-gca83ea3ab" +"packageVersion": "v0.59.0-alpha.2-124-g54d747548" } diff --git a/test/test_v1_custom_profile.py b/test/test_v1_custom_profile.py new file mode 100644 index 00000000..7330e183 --- /dev/null +++ b/test/test_v1_custom_profile.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_custom_profile import V1CustomProfile + + +class TestV1CustomProfile(unittest.TestCase): + """ V1CustomProfile unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1CustomProfile(self): + """ + Test V1CustomProfile + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_custom_profile.V1CustomProfile() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_seccomp_configuration.py b/test/test_v1_seccomp_configuration.py new file mode 100644 index 00000000..8eafaae6 --- /dev/null +++ b/test/test_v1_seccomp_configuration.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_seccomp_configuration import V1SeccompConfiguration + + +class TestV1SeccompConfiguration(unittest.TestCase): + """ V1SeccompConfiguration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SeccompConfiguration(self): + """ + Test V1SeccompConfiguration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_seccomp_configuration.V1SeccompConfiguration() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_virtual_machine_instance_profile.py b/test/test_v1_virtual_machine_instance_profile.py new file mode 100644 index 00000000..d17f4bde --- /dev/null +++ b/test/test_v1_virtual_machine_instance_profile.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_profile import V1VirtualMachineInstanceProfile + + +class TestV1VirtualMachineInstanceProfile(unittest.TestCase): + """ V1VirtualMachineInstanceProfile unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceProfile(self): + """ + Test V1VirtualMachineInstanceProfile + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_profile.V1VirtualMachineInstanceProfile() + pass + + +if __name__ == '__main__': + unittest.main() From f4d0228fa3cede2632f62dfb762819207129195c Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Sun, 29 Jan 2023 23:44:08 +0000 Subject: [PATCH 312/521] Client Python update by KubeVirt Prow build 1619833085975597056 --- README.md | 2 +- docs/V1alpha1VirtualMachinePoolStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1alpha1_virtual_machine_pool_status.py | 28 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 34 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 33b37170..b77980b3 100644 --- a/README.md +++ b/README.md @@ -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: v0.59.0-alpha.2-124-g54d747548 +- Package version: v0.59.0-alpha.2-149-g7a3911f41 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1alpha1VirtualMachinePoolStatus.md b/docs/V1alpha1VirtualMachinePoolStatus.md index 2bdcc2fb..0cd5a66f 100644 --- a/docs/V1alpha1VirtualMachinePoolStatus.md +++ b/docs/V1alpha1VirtualMachinePoolStatus.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **conditions** | [**list[V1alpha1VirtualMachinePoolCondition]**](V1alpha1VirtualMachinePoolCondition.md) | | [optional] **label_selector** | **str** | Canonical form of the label selector for HPA which consumes it through the scale subresource. | [optional] +**ready_replicas** | **int** | | [optional] **replicas** | **int** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 37b859e1..60620148 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.59.0-alpha.2-124-g54d747548" + release_note="Auto-generated client v0.59.0-alpha.2-149-g7a3911f41" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index ea6b87b3..6fb23b42 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.59.0-alpha.2-124-g54d747548/python' + self.user_agent = 'Swagger-Codegen/v0.59.0-alpha.2-149-g7a3911f41/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 6b3e1e76..9323222c 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.59.0-alpha.2-124-g54d747548".\ + "SDK Package Version: v0.59.0-alpha.2-149-g7a3911f41".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_status.py b/kubevirt/models/v1alpha1_virtual_machine_pool_status.py index 17ec80b4..cd95740c 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_status.py +++ b/kubevirt/models/v1alpha1_virtual_machine_pool_status.py @@ -33,28 +33,33 @@ class V1alpha1VirtualMachinePoolStatus(object): swagger_types = { 'conditions': 'list[V1alpha1VirtualMachinePoolCondition]', 'label_selector': 'str', + 'ready_replicas': 'int', 'replicas': 'int' } attribute_map = { 'conditions': 'conditions', 'label_selector': 'labelSelector', + 'ready_replicas': 'readyReplicas', 'replicas': 'replicas' } - def __init__(self, conditions=None, label_selector=None, replicas=None): + def __init__(self, conditions=None, label_selector=None, ready_replicas=None, replicas=None): """ V1alpha1VirtualMachinePoolStatus - a model defined in Swagger """ self._conditions = None self._label_selector = None + self._ready_replicas = None self._replicas = None if conditions is not None: self.conditions = conditions if label_selector is not None: self.label_selector = label_selector + if ready_replicas is not None: + self.ready_replicas = ready_replicas if replicas is not None: self.replicas = replicas @@ -102,6 +107,27 @@ def label_selector(self, label_selector): self._label_selector = label_selector + @property + def ready_replicas(self): + """ + Gets the ready_replicas of this V1alpha1VirtualMachinePoolStatus. + + :return: The ready_replicas of this V1alpha1VirtualMachinePoolStatus. + :rtype: int + """ + return self._ready_replicas + + @ready_replicas.setter + def ready_replicas(self, ready_replicas): + """ + Sets the ready_replicas of this V1alpha1VirtualMachinePoolStatus. + + :param ready_replicas: The ready_replicas of this V1alpha1VirtualMachinePoolStatus. + :type: int + """ + + self._ready_replicas = ready_replicas + @property def replicas(self): """ diff --git a/setup.py b/setup.py index 1513dde7..bda81ea1 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.59.0-alpha.2-124-g54d747548" +VERSION = "v0.59.0-alpha.2-149-g7a3911f41" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 419d015f..5808ab0f 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.59.0-alpha.2-124-g54d747548" +"packageVersion": "v0.59.0-alpha.2-149-g7a3911f41" } From a8d34dc285045b3dcfcc68e5906987559c7f6fda Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 1 Feb 2023 10:22:05 +0000 Subject: [PATCH 313/521] Client Python update by KubeVirt Prow build 1620721180061208576 --- README.md | 2 +- docs/V1Interface.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_interface.py | 30 +++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index b77980b3..91365b1a 100644 --- a/README.md +++ b/README.md @@ -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: v0.59.0-alpha.2-149-g7a3911f41 +- Package version: v0.59.0-alpha.2-161-g67a421b2d - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Interface.md b/docs/V1Interface.md index 58487e12..2ef41c76 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**acpi_index** | **int** | If specified, the ACPI index is used to provide network interface device naming, that is stable across changes in PCI addresses assigned to the device. This value is required to be unique across all devices and be between 1 and (16*1024-1). | [optional] **boot_order** | **int** | BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each interface or disk that has a boot order must have a unique value. Interfaces without a boot order are not tried. | [optional] **bridge** | [**V1InterfaceBridge**](V1InterfaceBridge.md) | | [optional] **dhcp_options** | [**V1DHCPOptions**](V1DHCPOptions.md) | If specified the network interface will pass additional DHCP options to the VMI | [optional] diff --git a/git_push.sh b/git_push.sh index 60620148..64365aec 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.59.0-alpha.2-149-g7a3911f41" + release_note="Auto-generated client v0.59.0-alpha.2-161-g67a421b2d" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 6fb23b42..5ea9470e 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.59.0-alpha.2-149-g7a3911f41/python' + self.user_agent = 'Swagger-Codegen/v0.59.0-alpha.2-161-g67a421b2d/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 9323222c..5c36e9b0 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.59.0-alpha.2-149-g7a3911f41".\ + "SDK Package Version: v0.59.0-alpha.2-161-g67a421b2d".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_interface.py b/kubevirt/models/v1_interface.py index 811fede2..47458b02 100644 --- a/kubevirt/models/v1_interface.py +++ b/kubevirt/models/v1_interface.py @@ -31,6 +31,7 @@ class V1Interface(object): and the value is json key in definition. """ swagger_types = { + 'acpi_index': 'int', 'boot_order': 'int', 'bridge': 'V1InterfaceBridge', 'dhcp_options': 'V1DHCPOptions', @@ -48,6 +49,7 @@ class V1Interface(object): } attribute_map = { + 'acpi_index': 'acpiIndex', 'boot_order': 'bootOrder', 'bridge': 'bridge', 'dhcp_options': 'dhcpOptions', @@ -64,11 +66,12 @@ class V1Interface(object): 'tag': 'tag' } - def __init__(self, boot_order=None, bridge=None, dhcp_options=None, mac_address=None, macvtap=None, masquerade=None, model=None, name=None, passt=None, pci_address=None, ports=None, slirp=None, sriov=None, tag=None): + def __init__(self, acpi_index=None, boot_order=None, bridge=None, dhcp_options=None, mac_address=None, macvtap=None, masquerade=None, model=None, name=None, passt=None, pci_address=None, ports=None, slirp=None, sriov=None, tag=None): """ V1Interface - a model defined in Swagger """ + self._acpi_index = None self._boot_order = None self._bridge = None self._dhcp_options = None @@ -84,6 +87,8 @@ def __init__(self, boot_order=None, bridge=None, dhcp_options=None, mac_address= self._sriov = None self._tag = None + if acpi_index is not None: + self.acpi_index = acpi_index if boot_order is not None: self.boot_order = boot_order if bridge is not None: @@ -112,6 +117,29 @@ def __init__(self, boot_order=None, bridge=None, dhcp_options=None, mac_address= if tag is not None: self.tag = tag + @property + def acpi_index(self): + """ + Gets the acpi_index of this V1Interface. + If specified, the ACPI index is used to provide network interface device naming, that is stable across changes in PCI addresses assigned to the device. This value is required to be unique across all devices and be between 1 and (16*1024-1). + + :return: The acpi_index of this V1Interface. + :rtype: int + """ + return self._acpi_index + + @acpi_index.setter + def acpi_index(self, acpi_index): + """ + Sets the acpi_index of this V1Interface. + If specified, the ACPI index is used to provide network interface device naming, that is stable across changes in PCI addresses assigned to the device. This value is required to be unique across all devices and be between 1 and (16*1024-1). + + :param acpi_index: The acpi_index of this V1Interface. + :type: int + """ + + self._acpi_index = acpi_index + @property def boot_order(self): """ diff --git a/setup.py b/setup.py index bda81ea1..5188a481 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.59.0-alpha.2-149-g7a3911f41" +VERSION = "v0.59.0-alpha.2-161-g67a421b2d" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 5808ab0f..9ad80580 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.59.0-alpha.2-149-g7a3911f41" +"packageVersion": "v0.59.0-alpha.2-161-g67a421b2d" } From 2727997227d0e1cf873830470b2e17d490ff99ee Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Sun, 5 Feb 2023 04:40:58 +0000 Subject: [PATCH 314/521] Client Python update by KubeVirt Prow build 1622081204687736832 --- README.md | 2 +- docs/V1alpha1VirtualMachineExportStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1alpha1_virtual_machine_export_status.py | 34 +++++++++++++++++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 38 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 91365b1a..51fb130e 100644 --- a/README.md +++ b/README.md @@ -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: v0.59.0-alpha.2-161-g67a421b2d +- Package version: v0.59.0-rc.0-31-gd85e704d5 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1alpha1VirtualMachineExportStatus.md b/docs/V1alpha1VirtualMachineExportStatus.md index 6fea5b43..db55f94f 100644 --- a/docs/V1alpha1VirtualMachineExportStatus.md +++ b/docs/V1alpha1VirtualMachineExportStatus.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **service_name** | **str** | ServiceName is the name of the service created associated with the Virtual Machine export. It will be used to create the internal URLs for downloading the images | [optional] **token_secret_ref** | **str** | TokenSecretRef is the name of the secret that contains the token used by the export server pod | [optional] **ttl_expiration_time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | The time at which the VM Export will be completely removed according to specified TTL Formula is CreationTimestamp + TTL | [optional] +**virtual_machine_name** | **str** | VirtualMachineName shows the name of the source virtual machine if the source is either a VirtualMachine or a VirtualMachineSnapshot. This is mainly to easily identify the source VirtualMachine in case of a VirtualMachineSnapshot | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 64365aec..8cff44f1 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.59.0-alpha.2-161-g67a421b2d" + release_note="Auto-generated client v0.59.0-rc.0-31-gd85e704d5" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 5ea9470e..789ffc4f 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.59.0-alpha.2-161-g67a421b2d/python' + self.user_agent = 'Swagger-Codegen/v0.59.0-rc.0-31-gd85e704d5/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 5c36e9b0..e068a8bf 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.59.0-alpha.2-161-g67a421b2d".\ + "SDK Package Version: v0.59.0-rc.0-31-gd85e704d5".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1alpha1_virtual_machine_export_status.py b/kubevirt/models/v1alpha1_virtual_machine_export_status.py index 9a97b277..79843ca7 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_export_status.py +++ b/kubevirt/models/v1alpha1_virtual_machine_export_status.py @@ -36,7 +36,8 @@ class V1alpha1VirtualMachineExportStatus(object): 'phase': 'str', 'service_name': 'str', 'token_secret_ref': 'str', - 'ttl_expiration_time': 'K8sIoApimachineryPkgApisMetaV1Time' + 'ttl_expiration_time': 'K8sIoApimachineryPkgApisMetaV1Time', + 'virtual_machine_name': 'str' } attribute_map = { @@ -45,10 +46,11 @@ class V1alpha1VirtualMachineExportStatus(object): 'phase': 'phase', 'service_name': 'serviceName', 'token_secret_ref': 'tokenSecretRef', - 'ttl_expiration_time': 'ttlExpirationTime' + 'ttl_expiration_time': 'ttlExpirationTime', + 'virtual_machine_name': 'virtualMachineName' } - def __init__(self, conditions=None, links=None, phase=None, service_name=None, token_secret_ref=None, ttl_expiration_time=None): + def __init__(self, conditions=None, links=None, phase=None, service_name=None, token_secret_ref=None, ttl_expiration_time=None, virtual_machine_name=None): """ V1alpha1VirtualMachineExportStatus - a model defined in Swagger """ @@ -59,6 +61,7 @@ def __init__(self, conditions=None, links=None, phase=None, service_name=None, t self._service_name = None self._token_secret_ref = None self._ttl_expiration_time = None + self._virtual_machine_name = None if conditions is not None: self.conditions = conditions @@ -72,6 +75,8 @@ def __init__(self, conditions=None, links=None, phase=None, service_name=None, t self.token_secret_ref = token_secret_ref if ttl_expiration_time is not None: self.ttl_expiration_time = ttl_expiration_time + if virtual_machine_name is not None: + self.virtual_machine_name = virtual_machine_name @property def conditions(self): @@ -205,6 +210,29 @@ def ttl_expiration_time(self, ttl_expiration_time): self._ttl_expiration_time = ttl_expiration_time + @property + def virtual_machine_name(self): + """ + Gets the virtual_machine_name of this V1alpha1VirtualMachineExportStatus. + VirtualMachineName shows the name of the source virtual machine if the source is either a VirtualMachine or a VirtualMachineSnapshot. This is mainly to easily identify the source VirtualMachine in case of a VirtualMachineSnapshot + + :return: The virtual_machine_name of this V1alpha1VirtualMachineExportStatus. + :rtype: str + """ + return self._virtual_machine_name + + @virtual_machine_name.setter + def virtual_machine_name(self, virtual_machine_name): + """ + Sets the virtual_machine_name of this V1alpha1VirtualMachineExportStatus. + VirtualMachineName shows the name of the source virtual machine if the source is either a VirtualMachine or a VirtualMachineSnapshot. This is mainly to easily identify the source VirtualMachine in case of a VirtualMachineSnapshot + + :param virtual_machine_name: The virtual_machine_name of this V1alpha1VirtualMachineExportStatus. + :type: str + """ + + self._virtual_machine_name = virtual_machine_name + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 5188a481..29ebf1f2 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.59.0-alpha.2-161-g67a421b2d" +VERSION = "v0.59.0-rc.0-31-gd85e704d5" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 9ad80580..648539b0 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.59.0-alpha.2-161-g67a421b2d" +"packageVersion": "v0.59.0-rc.0-31-gd85e704d5" } From bac17db4772eb555ed880b74ccf7fd6b3f8279d9 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 2 Mar 2023 23:30:37 +0000 Subject: [PATCH 315/521] Client Python update by KubeVirt Prow build 1631428876942970880 --- README.md | 2 +- docs/V1KubeVirtConfiguration.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_kube_virt_configuration.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 51fb130e..80bf0841 100644 --- a/README.md +++ b/README.md @@ -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: v0.59.0-rc.0-31-gd85e704d5 +- Package version: v0.59.0-rc.1-216-g40049bc0f - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index 7de09a65..56694acc 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**additional_guest_memory_overhead_ratio** | **str** | AdditionalGuestMemoryOverheadRatio can be used to increase the virtualization infrastructure overhead. This is useful, since the calculation of this overhead is not accurate and cannot be entirely known in advance. The ratio that is being set determines by which factor to increase the overhead calculated by Kubevirt. A higher ratio means that the VMs would be less compromised by node pressures, but would mean that fewer VMs could be scheduled to a node. If not set, the default is 1. | [optional] **api_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] **controller_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] **cpu_model** | **str** | | [optional] diff --git a/git_push.sh b/git_push.sh index 8cff44f1..fc7a1c1f 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.59.0-rc.0-31-gd85e704d5" + release_note="Auto-generated client v0.59.0-rc.1-216-g40049bc0f" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 789ffc4f..8a4bc0a2 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.59.0-rc.0-31-gd85e704d5/python' + self.user_agent = 'Swagger-Codegen/v0.59.0-rc.1-216-g40049bc0f/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index e068a8bf..54a4abc6 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.59.0-rc.0-31-gd85e704d5".\ + "SDK Package Version: v0.59.0-rc.1-216-g40049bc0f".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index ef47fd9f..ccd34541 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -31,6 +31,7 @@ class V1KubeVirtConfiguration(object): and the value is json key in definition. """ swagger_types = { + 'additional_guest_memory_overhead_ratio': 'str', 'api_configuration': 'V1ReloadableComponentConfiguration', 'controller_configuration': 'V1ReloadableComponentConfiguration', 'cpu_model': 'str', @@ -60,6 +61,7 @@ class V1KubeVirtConfiguration(object): } attribute_map = { + 'additional_guest_memory_overhead_ratio': 'additionalGuestMemoryOverheadRatio', 'api_configuration': 'apiConfiguration', 'controller_configuration': 'controllerConfiguration', 'cpu_model': 'cpuModel', @@ -88,11 +90,12 @@ class V1KubeVirtConfiguration(object): 'webhook_configuration': 'webhookConfiguration' } - def __init__(self, api_configuration=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, webhook_configuration=None): + def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, webhook_configuration=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ + self._additional_guest_memory_overhead_ratio = None self._api_configuration = None self._controller_configuration = None self._cpu_model = None @@ -120,6 +123,8 @@ def __init__(self, api_configuration=None, controller_configuration=None, cpu_mo self._virtual_machine_instances_per_node = None self._webhook_configuration = None + if additional_guest_memory_overhead_ratio is not None: + self.additional_guest_memory_overhead_ratio = additional_guest_memory_overhead_ratio if api_configuration is not None: self.api_configuration = api_configuration if controller_configuration is not None: @@ -173,6 +178,29 @@ def __init__(self, api_configuration=None, controller_configuration=None, cpu_mo if webhook_configuration is not None: self.webhook_configuration = webhook_configuration + @property + def additional_guest_memory_overhead_ratio(self): + """ + Gets the additional_guest_memory_overhead_ratio of this V1KubeVirtConfiguration. + AdditionalGuestMemoryOverheadRatio can be used to increase the virtualization infrastructure overhead. This is useful, since the calculation of this overhead is not accurate and cannot be entirely known in advance. The ratio that is being set determines by which factor to increase the overhead calculated by Kubevirt. A higher ratio means that the VMs would be less compromised by node pressures, but would mean that fewer VMs could be scheduled to a node. If not set, the default is 1. + + :return: The additional_guest_memory_overhead_ratio of this V1KubeVirtConfiguration. + :rtype: str + """ + return self._additional_guest_memory_overhead_ratio + + @additional_guest_memory_overhead_ratio.setter + def additional_guest_memory_overhead_ratio(self, additional_guest_memory_overhead_ratio): + """ + Sets the additional_guest_memory_overhead_ratio of this V1KubeVirtConfiguration. + AdditionalGuestMemoryOverheadRatio can be used to increase the virtualization infrastructure overhead. This is useful, since the calculation of this overhead is not accurate and cannot be entirely known in advance. The ratio that is being set determines by which factor to increase the overhead calculated by Kubevirt. A higher ratio means that the VMs would be less compromised by node pressures, but would mean that fewer VMs could be scheduled to a node. If not set, the default is 1. + + :param additional_guest_memory_overhead_ratio: The additional_guest_memory_overhead_ratio of this V1KubeVirtConfiguration. + :type: str + """ + + self._additional_guest_memory_overhead_ratio = additional_guest_memory_overhead_ratio + @property def api_configuration(self): """ diff --git a/setup.py b/setup.py index 29ebf1f2..1938bbde 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.59.0-rc.0-31-gd85e704d5" +VERSION = "v0.59.0-rc.1-216-g40049bc0f" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 648539b0..071c37de 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.59.0-rc.0-31-gd85e704d5" +"packageVersion": "v0.59.0-rc.1-216-g40049bc0f" } From 2db427487edb9c81a55d9fa86d539f2c7c12e331 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 7 Mar 2023 09:45:05 +0000 Subject: [PATCH 316/521] Client Python update by KubeVirt Prow build 1633028232611631104 --- README.md | 2 +- docs/V1VirtualMachineStatus.md | 2 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_virtual_machine_status.py | 58 +++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 65 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 80bf0841..c52dc695 100644 --- a/README.md +++ b/README.md @@ -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: v0.59.0-rc.1-216-g40049bc0f +- Package version: v0.59.0-rc.1-232-gdd8486de5 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineStatus.md b/docs/V1VirtualMachineStatus.md index 974a3c54..db3b4f5c 100644 --- a/docs/V1VirtualMachineStatus.md +++ b/docs/V1VirtualMachineStatus.md @@ -5,7 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **conditions** | [**list[V1VirtualMachineCondition]**](V1VirtualMachineCondition.md) | Hold the state information of the VirtualMachine and its VirtualMachineInstance | [optional] **created** | **bool** | Created indicates if the virtual machine is created in the cluster | [optional] +**desired_generation** | **int** | DesiredGeneration is the generation which is desired for the VMI. This will be used in comparisons with ObservedGeneration to understand when the VMI is out of sync. This will be changed at the same time as ObservedGeneration to remove errors which could occur if Generation is updated through an Update() before ObservedGeneration in Status. | [optional] **memory_dump_request** | [**V1VirtualMachineMemoryDumpRequest**](V1VirtualMachineMemoryDumpRequest.md) | MemoryDumpRequest tracks memory dump request phase and info of getting a memory dump to the given pvc | [optional] +**observed_generation** | **int** | ObservedGeneration is the generation observed by the vmi when started. | [optional] **printable_status** | **str** | PrintableStatus is a human readable, high-level representation of the status of the virtual machine | [optional] **ready** | **bool** | Ready indicates if the virtual machine is running and ready | [optional] **restore_in_progress** | **str** | RestoreInProgress is the name of the VirtualMachineRestore currently executing | [optional] diff --git a/git_push.sh b/git_push.sh index fc7a1c1f..4cd44fd3 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.59.0-rc.1-216-g40049bc0f" + release_note="Auto-generated client v0.59.0-rc.1-232-gdd8486de5" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 8a4bc0a2..3d6626d3 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.59.0-rc.1-216-g40049bc0f/python' + self.user_agent = 'Swagger-Codegen/v0.59.0-rc.1-232-gdd8486de5/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 54a4abc6..0dc20640 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.59.0-rc.1-216-g40049bc0f".\ + "SDK Package Version: v0.59.0-rc.1-232-gdd8486de5".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_status.py b/kubevirt/models/v1_virtual_machine_status.py index 52563511..2e6bcf56 100644 --- a/kubevirt/models/v1_virtual_machine_status.py +++ b/kubevirt/models/v1_virtual_machine_status.py @@ -33,7 +33,9 @@ class V1VirtualMachineStatus(object): swagger_types = { 'conditions': 'list[V1VirtualMachineCondition]', 'created': 'bool', + 'desired_generation': 'int', 'memory_dump_request': 'V1VirtualMachineMemoryDumpRequest', + 'observed_generation': 'int', 'printable_status': 'str', 'ready': 'bool', 'restore_in_progress': 'str', @@ -47,7 +49,9 @@ class V1VirtualMachineStatus(object): attribute_map = { 'conditions': 'conditions', 'created': 'created', + 'desired_generation': 'desiredGeneration', 'memory_dump_request': 'memoryDumpRequest', + 'observed_generation': 'observedGeneration', 'printable_status': 'printableStatus', 'ready': 'ready', 'restore_in_progress': 'restoreInProgress', @@ -58,14 +62,16 @@ class V1VirtualMachineStatus(object): 'volume_snapshot_statuses': 'volumeSnapshotStatuses' } - def __init__(self, conditions=None, created=None, memory_dump_request=None, printable_status=None, ready=None, restore_in_progress=None, snapshot_in_progress=None, start_failure=None, state_change_requests=None, volume_requests=None, volume_snapshot_statuses=None): + def __init__(self, conditions=None, created=None, desired_generation=None, memory_dump_request=None, observed_generation=None, printable_status=None, ready=None, restore_in_progress=None, snapshot_in_progress=None, start_failure=None, state_change_requests=None, volume_requests=None, volume_snapshot_statuses=None): """ V1VirtualMachineStatus - a model defined in Swagger """ self._conditions = None self._created = None + self._desired_generation = None self._memory_dump_request = None + self._observed_generation = None self._printable_status = None self._ready = None self._restore_in_progress = None @@ -79,8 +85,12 @@ def __init__(self, conditions=None, created=None, memory_dump_request=None, prin self.conditions = conditions if created is not None: self.created = created + if desired_generation is not None: + self.desired_generation = desired_generation if memory_dump_request is not None: self.memory_dump_request = memory_dump_request + if observed_generation is not None: + self.observed_generation = observed_generation if printable_status is not None: self.printable_status = printable_status if ready is not None: @@ -144,6 +154,29 @@ def created(self, created): self._created = created + @property + def desired_generation(self): + """ + Gets the desired_generation of this V1VirtualMachineStatus. + DesiredGeneration is the generation which is desired for the VMI. This will be used in comparisons with ObservedGeneration to understand when the VMI is out of sync. This will be changed at the same time as ObservedGeneration to remove errors which could occur if Generation is updated through an Update() before ObservedGeneration in Status. + + :return: The desired_generation of this V1VirtualMachineStatus. + :rtype: int + """ + return self._desired_generation + + @desired_generation.setter + def desired_generation(self, desired_generation): + """ + Sets the desired_generation of this V1VirtualMachineStatus. + DesiredGeneration is the generation which is desired for the VMI. This will be used in comparisons with ObservedGeneration to understand when the VMI is out of sync. This will be changed at the same time as ObservedGeneration to remove errors which could occur if Generation is updated through an Update() before ObservedGeneration in Status. + + :param desired_generation: The desired_generation of this V1VirtualMachineStatus. + :type: int + """ + + self._desired_generation = desired_generation + @property def memory_dump_request(self): """ @@ -167,6 +200,29 @@ def memory_dump_request(self, memory_dump_request): self._memory_dump_request = memory_dump_request + @property + def observed_generation(self): + """ + Gets the observed_generation of this V1VirtualMachineStatus. + ObservedGeneration is the generation observed by the vmi when started. + + :return: The observed_generation of this V1VirtualMachineStatus. + :rtype: int + """ + return self._observed_generation + + @observed_generation.setter + def observed_generation(self, observed_generation): + """ + Sets the observed_generation of this V1VirtualMachineStatus. + ObservedGeneration is the generation observed by the vmi when started. + + :param observed_generation: The observed_generation of this V1VirtualMachineStatus. + :type: int + """ + + self._observed_generation = observed_generation + @property def printable_status(self): """ diff --git a/setup.py b/setup.py index 1938bbde..3ec81b09 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.59.0-rc.1-216-g40049bc0f" +VERSION = "v0.59.0-rc.1-232-gdd8486de5" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 071c37de..81242ced 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.59.0-rc.1-216-g40049bc0f" +"packageVersion": "v0.59.0-rc.1-232-gdd8486de5" } From 72bf02377cc1f27c2cc65d2b65bb9b3135e1348c Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 7 Mar 2023 20:43:28 +0000 Subject: [PATCH 317/521] Client Python update by KubeVirt Prow build 1633196655492730880 --- README.md | 8 +- docs/DefaultApi.md | 208 +++++++++ docs/V1AddInterfaceOptions.md | 11 + ...1VirtualMachineInstanceNetworkInterface.md | 1 + docs/V1VirtualMachineInterfaceRequest.md | 10 + docs/V1VirtualMachineStatus.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 + kubevirt/__init__.py | 2 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 440 ++++++++++++++++++ kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 + kubevirt/models/v1_add_interface_options.py | 155 ++++++ ...tual_machine_instance_network_interface.py | 30 +- .../v1_virtual_machine_interface_request.py | 125 +++++ kubevirt/models/v1_virtual_machine_status.py | 30 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 32 ++ test/test_v1_add_interface_options.py | 44 ++ ...st_v1_virtual_machine_interface_request.py | 44 ++ 22 files changed, 1151 insertions(+), 8 deletions(-) create mode 100644 docs/V1AddInterfaceOptions.md create mode 100644 docs/V1VirtualMachineInterfaceRequest.md create mode 100644 kubevirt/models/v1_add_interface_options.py create mode 100644 kubevirt/models/v1_virtual_machine_interface_request.py create mode 100644 test/test_v1_add_interface_options.py create mode 100644 test/test_v1_virtual_machine_interface_request.py diff --git a/README.md b/README.md index c52dc695..88a861a1 100644 --- a/README.md +++ b/README.md @@ -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: v0.59.0-rc.1-232-gdd8486de5 +- Package version: v0.59.0-rc.1-253-ge705685a5 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -274,11 +274,13 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3start_cluster_profiler**](docs/DefaultApi.md#v1alpha3start_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/start-cluster-profiler | *DefaultApi* | [**v1alpha3stop_cluster_profiler**](docs/DefaultApi.md#v1alpha3stop_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/stop-cluster-profiler | *DefaultApi* | [**v1alpha3usbredir**](docs/DefaultApi.md#v1alpha3usbredir) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir | +*DefaultApi* | [**v1alpha3vm_addinterface**](docs/DefaultApi.md#v1alpha3vm_addinterface) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addinterface | *DefaultApi* | [**v1alpha3vm_addvolume**](docs/DefaultApi.md#v1alpha3vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | *DefaultApi* | [**v1alpha3vm_expand_spec**](docs/DefaultApi.md#v1alpha3vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec | *DefaultApi* | [**v1alpha3vm_port_forward**](docs/DefaultApi.md#v1alpha3vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | *DefaultApi* | [**v1alpha3vm_port_forward_with_protocol**](docs/DefaultApi.md#v1alpha3vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | *DefaultApi* | [**v1alpha3vm_removevolume**](docs/DefaultApi.md#v1alpha3vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | +*DefaultApi* | [**v1alpha3vmi_addinterface**](docs/DefaultApi.md#v1alpha3vmi_addinterface) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addinterface | *DefaultApi* | [**v1alpha3vmi_addvolume**](docs/DefaultApi.md#v1alpha3vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | *DefaultApi* | [**v1alpha3vmi_port_forward**](docs/DefaultApi.md#v1alpha3vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | *DefaultApi* | [**v1alpha3vmi_port_forward_with_protocol**](docs/DefaultApi.md#v1alpha3vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | @@ -288,11 +290,13 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1start_cluster_profiler**](docs/DefaultApi.md#v1start_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/start-cluster-profiler | *DefaultApi* | [**v1stop_cluster_profiler**](docs/DefaultApi.md#v1stop_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/stop-cluster-profiler | *DefaultApi* | [**v1usbredir**](docs/DefaultApi.md#v1usbredir) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir | +*DefaultApi* | [**v1vm_addinterface**](docs/DefaultApi.md#v1vm_addinterface) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addinterface | *DefaultApi* | [**v1vm_addvolume**](docs/DefaultApi.md#v1vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | *DefaultApi* | [**v1vm_expand_spec**](docs/DefaultApi.md#v1vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec | *DefaultApi* | [**v1vm_port_forward**](docs/DefaultApi.md#v1vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | *DefaultApi* | [**v1vm_port_forward_with_protocol**](docs/DefaultApi.md#v1vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | *DefaultApi* | [**v1vm_removevolume**](docs/DefaultApi.md#v1vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | +*DefaultApi* | [**v1vmi_addinterface**](docs/DefaultApi.md#v1vmi_addinterface) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addinterface | *DefaultApi* | [**v1vmi_addvolume**](docs/DefaultApi.md#v1vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | *DefaultApi* | [**v1vmi_port_forward**](docs/DefaultApi.md#v1vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | *DefaultApi* | [**v1vmi_port_forward_with_protocol**](docs/DefaultApi.md#v1vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | @@ -385,6 +389,7 @@ Class | Method | HTTP request | Description - [K8sIoApimachineryPkgUtilIntstrIntOrString](docs/K8sIoApimachineryPkgUtilIntstrIntOrString.md) - [V1AccessCredential](docs/V1AccessCredential.md) - [V1AccessCredentialSecretSource](docs/V1AccessCredentialSecretSource.md) + - [V1AddInterfaceOptions](docs/V1AddInterfaceOptions.md) - [V1AddVolumeOptions](docs/V1AddVolumeOptions.md) - [V1BIOS](docs/V1BIOS.md) - [V1BlockSize](docs/V1BlockSize.md) @@ -565,6 +570,7 @@ Class | Method | HTTP request | Description - [V1VirtualMachineInstanceSpec](docs/V1VirtualMachineInstanceSpec.md) - [V1VirtualMachineInstanceStatus](docs/V1VirtualMachineInstanceStatus.md) - [V1VirtualMachineInstanceTemplateSpec](docs/V1VirtualMachineInstanceTemplateSpec.md) + - [V1VirtualMachineInterfaceRequest](docs/V1VirtualMachineInterfaceRequest.md) - [V1VirtualMachineList](docs/V1VirtualMachineList.md) - [V1VirtualMachineMemoryDumpRequest](docs/V1VirtualMachineMemoryDumpRequest.md) - [V1VirtualMachineSpec](docs/V1VirtualMachineSpec.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index e11132d3..ad5fb7ca 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -209,11 +209,13 @@ Method | HTTP request | Description [**v1alpha3start_cluster_profiler**](DefaultApi.md#v1alpha3start_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/start-cluster-profiler | [**v1alpha3stop_cluster_profiler**](DefaultApi.md#v1alpha3stop_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/stop-cluster-profiler | [**v1alpha3usbredir**](DefaultApi.md#v1alpha3usbredir) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir | +[**v1alpha3vm_addinterface**](DefaultApi.md#v1alpha3vm_addinterface) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addinterface | [**v1alpha3vm_addvolume**](DefaultApi.md#v1alpha3vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | [**v1alpha3vm_expand_spec**](DefaultApi.md#v1alpha3vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec | [**v1alpha3vm_port_forward**](DefaultApi.md#v1alpha3vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | [**v1alpha3vm_port_forward_with_protocol**](DefaultApi.md#v1alpha3vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | [**v1alpha3vm_removevolume**](DefaultApi.md#v1alpha3vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | +[**v1alpha3vmi_addinterface**](DefaultApi.md#v1alpha3vmi_addinterface) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addinterface | [**v1alpha3vmi_addvolume**](DefaultApi.md#v1alpha3vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | [**v1alpha3vmi_port_forward**](DefaultApi.md#v1alpha3vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | [**v1alpha3vmi_port_forward_with_protocol**](DefaultApi.md#v1alpha3vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | @@ -223,11 +225,13 @@ Method | HTTP request | Description [**v1start_cluster_profiler**](DefaultApi.md#v1start_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/start-cluster-profiler | [**v1stop_cluster_profiler**](DefaultApi.md#v1stop_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/stop-cluster-profiler | [**v1usbredir**](DefaultApi.md#v1usbredir) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir | +[**v1vm_addinterface**](DefaultApi.md#v1vm_addinterface) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addinterface | [**v1vm_addvolume**](DefaultApi.md#v1vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | [**v1vm_expand_spec**](DefaultApi.md#v1vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec | [**v1vm_port_forward**](DefaultApi.md#v1vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | [**v1vm_port_forward_with_protocol**](DefaultApi.md#v1vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | [**v1vm_removevolume**](DefaultApi.md#v1vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | +[**v1vmi_addinterface**](DefaultApi.md#v1vmi_addinterface) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addinterface | [**v1vmi_addvolume**](DefaultApi.md#v1vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | [**v1vmi_port_forward**](DefaultApi.md#v1vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | [**v1vmi_port_forward_with_protocol**](DefaultApi.md#v1vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | @@ -10910,6 +10914,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3vm_addinterface** +> str v1alpha3vm_addinterface(name, namespace, body) + + + +Add a network interface to a running Virtual Machine. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1AddInterfaceOptions() # V1AddInterfaceOptions | + +try: + api_response = api_instance.v1alpha3vm_addinterface(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3vm_addinterface: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1AddInterfaceOptions**](V1AddInterfaceOptions.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3vm_addvolume** > str v1alpha3vm_addvolume(name, namespace, body) @@ -11163,6 +11218,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3vmi_addinterface** +> str v1alpha3vmi_addinterface(name, namespace, body) + + + +Add a network interface to a running Virtual Machine Instance + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1AddInterfaceOptions() # V1AddInterfaceOptions | + +try: + api_response = api_instance.v1alpha3vmi_addinterface(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3vmi_addinterface: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1AddInterfaceOptions**](V1AddInterfaceOptions.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3vmi_addvolume** > str v1alpha3vmi_addvolume(name, namespace, body) @@ -11578,6 +11684,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1vm_addinterface** +> str v1vm_addinterface(name, namespace, body) + + + +Add a network interface to a running Virtual Machine. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1AddInterfaceOptions() # V1AddInterfaceOptions | + +try: + api_response = api_instance.v1vm_addinterface(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1vm_addinterface: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1AddInterfaceOptions**](V1AddInterfaceOptions.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1vm_addvolume** > str v1vm_addvolume(name, namespace, body) @@ -11831,6 +11988,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1vmi_addinterface** +> str v1vmi_addinterface(name, namespace, body) + + + +Add a network interface to a running Virtual Machine Instance + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1AddInterfaceOptions() # V1AddInterfaceOptions | + +try: + api_response = api_instance.v1vmi_addinterface(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1vmi_addinterface: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1AddInterfaceOptions**](V1AddInterfaceOptions.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1vmi_addvolume** > str v1vmi_addvolume(name, namespace, body) diff --git a/docs/V1AddInterfaceOptions.md b/docs/V1AddInterfaceOptions.md new file mode 100644 index 00000000..19f7e30d --- /dev/null +++ b/docs/V1AddInterfaceOptions.md @@ -0,0 +1,11 @@ +# V1AddInterfaceOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**interface_name** | **str** | InterfaceName indicates the logical name of the interface. | +**network_name** | **str** | NetworkName references a NetworkAttachmentDefinition CRD object. Format: <networkName>, <namespace>/<networkName>. If namespace is not specified, VMI namespace is assumed. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceNetworkInterface.md b/docs/V1VirtualMachineInstanceNetworkInterface.md index 27fe2a4c..8517f041 100644 --- a/docs/V1VirtualMachineInstanceNetworkInterface.md +++ b/docs/V1VirtualMachineInstanceNetworkInterface.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **ip_addresses** | **list[str]** | List of all IP addresses of a Virtual Machine interface | [optional] **mac** | **str** | Hardware address of a Virtual Machine interface | [optional] **name** | **str** | Name of the interface, corresponds to name of the network assigned to the interface | [optional] +**pod_config_done** | **bool** | PodConfigDone specifies if the corresponding pod interface is properly configured by CNI | [optional] **queue_count** | **int** | Specifies how many queues are allocated by MultiQueue | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInterfaceRequest.md b/docs/V1VirtualMachineInterfaceRequest.md new file mode 100644 index 00000000..09f4a68d --- /dev/null +++ b/docs/V1VirtualMachineInterfaceRequest.md @@ -0,0 +1,10 @@ +# V1VirtualMachineInterfaceRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**add_interface_options** | [**V1AddInterfaceOptions**](V1AddInterfaceOptions.md) | AddInterfaceOptions when set indicates a network interface should be added. The details within this field specify how to add the interface | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineStatus.md b/docs/V1VirtualMachineStatus.md index db3b4f5c..ea37bb44 100644 --- a/docs/V1VirtualMachineStatus.md +++ b/docs/V1VirtualMachineStatus.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **conditions** | [**list[V1VirtualMachineCondition]**](V1VirtualMachineCondition.md) | Hold the state information of the VirtualMachine and its VirtualMachineInstance | [optional] **created** | **bool** | Created indicates if the virtual machine is created in the cluster | [optional] **desired_generation** | **int** | DesiredGeneration is the generation which is desired for the VMI. This will be used in comparisons with ObservedGeneration to understand when the VMI is out of sync. This will be changed at the same time as ObservedGeneration to remove errors which could occur if Generation is updated through an Update() before ObservedGeneration in Status. | [optional] +**interface_requests** | [**list[V1VirtualMachineInterfaceRequest]**](V1VirtualMachineInterfaceRequest.md) | InterfaceRequests indicates a list of interfaces added to the VMI template and hot-plugged on an active running VMI. | [optional] **memory_dump_request** | [**V1VirtualMachineMemoryDumpRequest**](V1VirtualMachineMemoryDumpRequest.md) | MemoryDumpRequest tracks memory dump request phase and info of getting a memory dump to the given pvc | [optional] **observed_generation** | **int** | ObservedGeneration is the generation observed by the vmi when started. | [optional] **printable_status** | **str** | PrintableStatus is a human readable, high-level representation of the status of the virtual machine | [optional] diff --git a/git_push.sh b/git_push.sh index 4cd44fd3..bf97ffd2 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.59.0-rc.1-232-gdd8486de5" + release_note="Auto-generated client v0.59.0-rc.1-253-ge705685a5" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 2a9b2cd4..25aec3e7 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -183,6 +183,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_access_credential_secret_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_access_credential_secret_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1AccessCredentialSecretSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_add_interface_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_add_interface_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1AddInterfaceOptions.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_add_volume_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_add_volume_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1AddVolumeOptions.md @@ -723,6 +726,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_virtual_machine_instance_template_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_template_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceTemplateSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_interface_request.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_interface_request.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInterfaceRequest.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineList.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 35b3f66e..271dac01 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -68,6 +68,7 @@ from .models.k8s_io_apimachinery_pkg_util_intstr_int_or_string import K8sIoApimachineryPkgUtilIntstrIntOrString from .models.v1_access_credential import V1AccessCredential from .models.v1_access_credential_secret_source import V1AccessCredentialSecretSource +from .models.v1_add_interface_options import V1AddInterfaceOptions from .models.v1_add_volume_options import V1AddVolumeOptions from .models.v1_bios import V1BIOS from .models.v1_block_size import V1BlockSize @@ -248,6 +249,7 @@ from .models.v1_virtual_machine_instance_spec import V1VirtualMachineInstanceSpec from .models.v1_virtual_machine_instance_status import V1VirtualMachineInstanceStatus from .models.v1_virtual_machine_instance_template_spec import V1VirtualMachineInstanceTemplateSpec +from .models.v1_virtual_machine_interface_request import V1VirtualMachineInterfaceRequest from .models.v1_virtual_machine_list import V1VirtualMachineList from .models.v1_virtual_machine_memory_dump_request import V1VirtualMachineMemoryDumpRequest from .models.v1_virtual_machine_spec import V1VirtualMachineSpec diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 3d6626d3..c747aeae 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.59.0-rc.1-232-gdd8486de5/python' + self.user_agent = 'Swagger-Codegen/v0.59.0-rc.1-253-ge705685a5/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index da52bb32..d3681d9f 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -23181,6 +23181,116 @@ def v1alpha3usbredir_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1alpha3vm_addinterface(self, name, namespace, body, **kwargs): + """ + Add a network interface to a running Virtual Machine. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vm_addinterface(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1AddInterfaceOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3vm_addinterface_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1alpha3vm_addinterface_with_http_info(name, namespace, body, **kwargs) + return data + + def v1alpha3vm_addinterface_with_http_info(self, name, namespace, body, **kwargs): + """ + Add a network interface to a running Virtual Machine. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vm_addinterface_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1AddInterfaceOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3vm_addinterface" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vm_addinterface`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vm_addinterface`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3vm_addinterface`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addinterface', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1alpha3vm_addvolume(self, name, namespace, body, **kwargs): """ Add a volume and disk to a running Virtual Machine. @@ -23735,6 +23845,116 @@ def v1alpha3vm_removevolume_with_http_info(self, name, namespace, body, **kwargs _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1alpha3vmi_addinterface(self, name, namespace, body, **kwargs): + """ + Add a network interface to a running Virtual Machine Instance + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vmi_addinterface(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1AddInterfaceOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3vmi_addinterface_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1alpha3vmi_addinterface_with_http_info(name, namespace, body, **kwargs) + return data + + def v1alpha3vmi_addinterface_with_http_info(self, name, namespace, body, **kwargs): + """ + Add a network interface to a running Virtual Machine Instance + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vmi_addinterface_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1AddInterfaceOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3vmi_addinterface" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vmi_addinterface`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vmi_addinterface`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3vmi_addinterface`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addinterface', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1alpha3vmi_addvolume(self, name, namespace, body, **kwargs): """ Add a volume and disk to a running Virtual Machine Instance @@ -24647,6 +24867,116 @@ def v1usbredir_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1vm_addinterface(self, name, namespace, body, **kwargs): + """ + Add a network interface to a running Virtual Machine. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1vm_addinterface(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1AddInterfaceOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1vm_addinterface_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1vm_addinterface_with_http_info(name, namespace, body, **kwargs) + return data + + def v1vm_addinterface_with_http_info(self, name, namespace, body, **kwargs): + """ + Add a network interface to a running Virtual Machine. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1vm_addinterface_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1AddInterfaceOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1vm_addinterface" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1vm_addinterface`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1vm_addinterface`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1vm_addinterface`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addinterface', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1vm_addvolume(self, name, namespace, body, **kwargs): """ Add a volume and disk to a running Virtual Machine. @@ -25201,6 +25531,116 @@ def v1vm_removevolume_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1vmi_addinterface(self, name, namespace, body, **kwargs): + """ + Add a network interface to a running Virtual Machine Instance + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1vmi_addinterface(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1AddInterfaceOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1vmi_addinterface_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1vmi_addinterface_with_http_info(name, namespace, body, **kwargs) + return data + + def v1vmi_addinterface_with_http_info(self, name, namespace, body, **kwargs): + """ + Add a network interface to a running Virtual Machine Instance + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1vmi_addinterface_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1AddInterfaceOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1vmi_addinterface" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1vmi_addinterface`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1vmi_addinterface`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1vmi_addinterface`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addinterface', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1vmi_addvolume(self, name, namespace, body, **kwargs): """ Add a volume and disk to a running Virtual Machine Instance diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 0dc20640..3b4f4f8a 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.59.0-rc.1-232-gdd8486de5".\ + "SDK Package Version: v0.59.0-rc.1-253-ge705685a5".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index da3d8e43..a20725d2 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -68,6 +68,7 @@ from .k8s_io_apimachinery_pkg_util_intstr_int_or_string import K8sIoApimachineryPkgUtilIntstrIntOrString from .v1_access_credential import V1AccessCredential from .v1_access_credential_secret_source import V1AccessCredentialSecretSource +from .v1_add_interface_options import V1AddInterfaceOptions from .v1_add_volume_options import V1AddVolumeOptions from .v1_bios import V1BIOS from .v1_block_size import V1BlockSize @@ -248,6 +249,7 @@ from .v1_virtual_machine_instance_spec import V1VirtualMachineInstanceSpec from .v1_virtual_machine_instance_status import V1VirtualMachineInstanceStatus from .v1_virtual_machine_instance_template_spec import V1VirtualMachineInstanceTemplateSpec +from .v1_virtual_machine_interface_request import V1VirtualMachineInterfaceRequest from .v1_virtual_machine_list import V1VirtualMachineList from .v1_virtual_machine_memory_dump_request import V1VirtualMachineMemoryDumpRequest from .v1_virtual_machine_spec import V1VirtualMachineSpec diff --git a/kubevirt/models/v1_add_interface_options.py b/kubevirt/models/v1_add_interface_options.py new file mode 100644 index 00000000..16097d7c --- /dev/null +++ b/kubevirt/models/v1_add_interface_options.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1AddInterfaceOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'interface_name': 'str', + 'network_name': 'str' + } + + attribute_map = { + 'interface_name': 'interfaceName', + 'network_name': 'networkName' + } + + def __init__(self, interface_name=None, network_name=None): + """ + V1AddInterfaceOptions - a model defined in Swagger + """ + + self._interface_name = None + self._network_name = None + + self.interface_name = interface_name + self.network_name = network_name + + @property + def interface_name(self): + """ + Gets the interface_name of this V1AddInterfaceOptions. + InterfaceName indicates the logical name of the interface. + + :return: The interface_name of this V1AddInterfaceOptions. + :rtype: str + """ + return self._interface_name + + @interface_name.setter + def interface_name(self, interface_name): + """ + Sets the interface_name of this V1AddInterfaceOptions. + InterfaceName indicates the logical name of the interface. + + :param interface_name: The interface_name of this V1AddInterfaceOptions. + :type: str + """ + if interface_name is None: + raise ValueError("Invalid value for `interface_name`, must not be `None`") + + self._interface_name = interface_name + + @property + def network_name(self): + """ + Gets the network_name of this V1AddInterfaceOptions. + NetworkName references a NetworkAttachmentDefinition CRD object. Format: , /. If namespace is not specified, VMI namespace is assumed. + + :return: The network_name of this V1AddInterfaceOptions. + :rtype: str + """ + return self._network_name + + @network_name.setter + def network_name(self, network_name): + """ + Sets the network_name of this V1AddInterfaceOptions. + NetworkName references a NetworkAttachmentDefinition CRD object. Format: , /. If namespace is not specified, VMI namespace is assumed. + + :param network_name: The network_name of this V1AddInterfaceOptions. + :type: str + """ + if network_name is None: + raise ValueError("Invalid value for `network_name`, must not be `None`") + + self._network_name = network_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1AddInterfaceOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_network_interface.py b/kubevirt/models/v1_virtual_machine_instance_network_interface.py index d8b9decc..d7ae86aa 100644 --- a/kubevirt/models/v1_virtual_machine_instance_network_interface.py +++ b/kubevirt/models/v1_virtual_machine_instance_network_interface.py @@ -37,6 +37,7 @@ class V1VirtualMachineInstanceNetworkInterface(object): 'ip_addresses': 'list[str]', 'mac': 'str', 'name': 'str', + 'pod_config_done': 'bool', 'queue_count': 'int' } @@ -47,10 +48,11 @@ class V1VirtualMachineInstanceNetworkInterface(object): 'ip_addresses': 'ipAddresses', 'mac': 'mac', 'name': 'name', + 'pod_config_done': 'podConfigDone', 'queue_count': 'queueCount' } - def __init__(self, info_source=None, interface_name=None, ip_address=None, ip_addresses=None, mac=None, name=None, queue_count=None): + def __init__(self, info_source=None, interface_name=None, ip_address=None, ip_addresses=None, mac=None, name=None, pod_config_done=None, queue_count=None): """ V1VirtualMachineInstanceNetworkInterface - a model defined in Swagger """ @@ -61,6 +63,7 @@ def __init__(self, info_source=None, interface_name=None, ip_address=None, ip_ad self._ip_addresses = None self._mac = None self._name = None + self._pod_config_done = None self._queue_count = None if info_source is not None: @@ -75,6 +78,8 @@ def __init__(self, info_source=None, interface_name=None, ip_address=None, ip_ad self.mac = mac if name is not None: self.name = name + if pod_config_done is not None: + self.pod_config_done = pod_config_done if queue_count is not None: self.queue_count = queue_count @@ -216,6 +221,29 @@ def name(self, name): self._name = name + @property + def pod_config_done(self): + """ + Gets the pod_config_done of this V1VirtualMachineInstanceNetworkInterface. + PodConfigDone specifies if the corresponding pod interface is properly configured by CNI + + :return: The pod_config_done of this V1VirtualMachineInstanceNetworkInterface. + :rtype: bool + """ + return self._pod_config_done + + @pod_config_done.setter + def pod_config_done(self, pod_config_done): + """ + Sets the pod_config_done of this V1VirtualMachineInstanceNetworkInterface. + PodConfigDone specifies if the corresponding pod interface is properly configured by CNI + + :param pod_config_done: The pod_config_done of this V1VirtualMachineInstanceNetworkInterface. + :type: bool + """ + + self._pod_config_done = pod_config_done + @property def queue_count(self): """ diff --git a/kubevirt/models/v1_virtual_machine_interface_request.py b/kubevirt/models/v1_virtual_machine_interface_request.py new file mode 100644 index 00000000..f0f60d32 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_interface_request.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineInterfaceRequest(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'add_interface_options': 'V1AddInterfaceOptions' + } + + attribute_map = { + 'add_interface_options': 'addInterfaceOptions' + } + + def __init__(self, add_interface_options=None): + """ + V1VirtualMachineInterfaceRequest - a model defined in Swagger + """ + + self._add_interface_options = None + + if add_interface_options is not None: + self.add_interface_options = add_interface_options + + @property + def add_interface_options(self): + """ + Gets the add_interface_options of this V1VirtualMachineInterfaceRequest. + AddInterfaceOptions when set indicates a network interface should be added. The details within this field specify how to add the interface + + :return: The add_interface_options of this V1VirtualMachineInterfaceRequest. + :rtype: V1AddInterfaceOptions + """ + return self._add_interface_options + + @add_interface_options.setter + def add_interface_options(self, add_interface_options): + """ + Sets the add_interface_options of this V1VirtualMachineInterfaceRequest. + AddInterfaceOptions when set indicates a network interface should be added. The details within this field specify how to add the interface + + :param add_interface_options: The add_interface_options of this V1VirtualMachineInterfaceRequest. + :type: V1AddInterfaceOptions + """ + + self._add_interface_options = add_interface_options + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineInterfaceRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_status.py b/kubevirt/models/v1_virtual_machine_status.py index 2e6bcf56..9add5011 100644 --- a/kubevirt/models/v1_virtual_machine_status.py +++ b/kubevirt/models/v1_virtual_machine_status.py @@ -34,6 +34,7 @@ class V1VirtualMachineStatus(object): 'conditions': 'list[V1VirtualMachineCondition]', 'created': 'bool', 'desired_generation': 'int', + 'interface_requests': 'list[V1VirtualMachineInterfaceRequest]', 'memory_dump_request': 'V1VirtualMachineMemoryDumpRequest', 'observed_generation': 'int', 'printable_status': 'str', @@ -50,6 +51,7 @@ class V1VirtualMachineStatus(object): 'conditions': 'conditions', 'created': 'created', 'desired_generation': 'desiredGeneration', + 'interface_requests': 'interfaceRequests', 'memory_dump_request': 'memoryDumpRequest', 'observed_generation': 'observedGeneration', 'printable_status': 'printableStatus', @@ -62,7 +64,7 @@ class V1VirtualMachineStatus(object): 'volume_snapshot_statuses': 'volumeSnapshotStatuses' } - def __init__(self, conditions=None, created=None, desired_generation=None, memory_dump_request=None, observed_generation=None, printable_status=None, ready=None, restore_in_progress=None, snapshot_in_progress=None, start_failure=None, state_change_requests=None, volume_requests=None, volume_snapshot_statuses=None): + def __init__(self, conditions=None, created=None, desired_generation=None, interface_requests=None, memory_dump_request=None, observed_generation=None, printable_status=None, ready=None, restore_in_progress=None, snapshot_in_progress=None, start_failure=None, state_change_requests=None, volume_requests=None, volume_snapshot_statuses=None): """ V1VirtualMachineStatus - a model defined in Swagger """ @@ -70,6 +72,7 @@ def __init__(self, conditions=None, created=None, desired_generation=None, memor self._conditions = None self._created = None self._desired_generation = None + self._interface_requests = None self._memory_dump_request = None self._observed_generation = None self._printable_status = None @@ -87,6 +90,8 @@ def __init__(self, conditions=None, created=None, desired_generation=None, memor self.created = created if desired_generation is not None: self.desired_generation = desired_generation + if interface_requests is not None: + self.interface_requests = interface_requests if memory_dump_request is not None: self.memory_dump_request = memory_dump_request if observed_generation is not None: @@ -177,6 +182,29 @@ def desired_generation(self, desired_generation): self._desired_generation = desired_generation + @property + def interface_requests(self): + """ + Gets the interface_requests of this V1VirtualMachineStatus. + InterfaceRequests indicates a list of interfaces added to the VMI template and hot-plugged on an active running VMI. + + :return: The interface_requests of this V1VirtualMachineStatus. + :rtype: list[V1VirtualMachineInterfaceRequest] + """ + return self._interface_requests + + @interface_requests.setter + def interface_requests(self, interface_requests): + """ + Sets the interface_requests of this V1VirtualMachineStatus. + InterfaceRequests indicates a list of interfaces added to the VMI template and hot-plugged on an active running VMI. + + :param interface_requests: The interface_requests of this V1VirtualMachineStatus. + :type: list[V1VirtualMachineInterfaceRequest] + """ + + self._interface_requests = interface_requests + @property def memory_dump_request(self): """ diff --git a/setup.py b/setup.py index 3ec81b09..4c32c82f 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.59.0-rc.1-232-gdd8486de5" +VERSION = "v0.59.0-rc.1-253-ge705685a5" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 81242ced..92715aa9 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.59.0-rc.1-232-gdd8486de5" +"packageVersion": "v0.59.0-rc.1-253-ge705685a5" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 38ba8659..79c55a6a 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -1668,6 +1668,14 @@ def test_v1alpha3usbredir(self): Test case for v1alpha3usbredir + """ + pass + + def test_v1alpha3vm_addinterface(self): + """ + Test case for v1alpha3vm_addinterface + + """ pass @@ -1708,6 +1716,14 @@ def test_v1alpha3vm_removevolume(self): Test case for v1alpha3vm_removevolume + """ + pass + + def test_v1alpha3vmi_addinterface(self): + """ + Test case for v1alpha3vmi_addinterface + + """ pass @@ -1780,6 +1796,14 @@ def test_v1usbredir(self): Test case for v1usbredir + """ + pass + + def test_v1vm_addinterface(self): + """ + Test case for v1vm_addinterface + + """ pass @@ -1820,6 +1844,14 @@ def test_v1vm_removevolume(self): Test case for v1vm_removevolume + """ + pass + + def test_v1vmi_addinterface(self): + """ + Test case for v1vmi_addinterface + + """ pass diff --git a/test/test_v1_add_interface_options.py b/test/test_v1_add_interface_options.py new file mode 100644 index 00000000..6b755af4 --- /dev/null +++ b/test/test_v1_add_interface_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_add_interface_options import V1AddInterfaceOptions + + +class TestV1AddInterfaceOptions(unittest.TestCase): + """ V1AddInterfaceOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1AddInterfaceOptions(self): + """ + Test V1AddInterfaceOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_add_interface_options.V1AddInterfaceOptions() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_virtual_machine_interface_request.py b/test/test_v1_virtual_machine_interface_request.py new file mode 100644 index 00000000..1f63af8e --- /dev/null +++ b/test/test_v1_virtual_machine_interface_request.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_interface_request import V1VirtualMachineInterfaceRequest + + +class TestV1VirtualMachineInterfaceRequest(unittest.TestCase): + """ V1VirtualMachineInterfaceRequest unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInterfaceRequest(self): + """ + Test V1VirtualMachineInterfaceRequest + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_interface_request.V1VirtualMachineInterfaceRequest() + pass + + +if __name__ == '__main__': + unittest.main() From c13366fce68cbb2aaafac87c35580d6c85e9fb16 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 17 Mar 2023 19:50:43 +0000 Subject: [PATCH 318/521] Client Python update by KubeVirt Prow build 1636809539032453120 --- README.md | 2 +- ...1VirtualMachineInstanceNetworkInterface.md | 3 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...tual_machine_instance_network_interface.py | 34 ++----------------- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 10 insertions(+), 39 deletions(-) diff --git a/README.md b/README.md index 88a861a1..1ccba961 100644 --- a/README.md +++ b/README.md @@ -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: v0.59.0-rc.1-253-ge705685a5 +- Package version: v0.59.0-rc.1-306-gb607ce140 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceNetworkInterface.md b/docs/V1VirtualMachineInstanceNetworkInterface.md index 8517f041..e08efd4a 100644 --- a/docs/V1VirtualMachineInstanceNetworkInterface.md +++ b/docs/V1VirtualMachineInstanceNetworkInterface.md @@ -3,13 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**info_source** | **str** | Specifies the origin of the interface data collected. values: domain, guest-agent, or both | [optional] +**info_source** | **str** | Specifies the origin of the interface data collected. values: domain, guest-agent, multus-status. | [optional] **interface_name** | **str** | The interface name inside the Virtual Machine | [optional] **ip_address** | **str** | IP address of a Virtual Machine interface. It is always the first item of IPs | [optional] **ip_addresses** | **list[str]** | List of all IP addresses of a Virtual Machine interface | [optional] **mac** | **str** | Hardware address of a Virtual Machine interface | [optional] **name** | **str** | Name of the interface, corresponds to name of the network assigned to the interface | [optional] -**pod_config_done** | **bool** | PodConfigDone specifies if the corresponding pod interface is properly configured by CNI | [optional] **queue_count** | **int** | Specifies how many queues are allocated by MultiQueue | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index bf97ffd2..6c5e6696 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.59.0-rc.1-253-ge705685a5" + release_note="Auto-generated client v0.59.0-rc.1-306-gb607ce140" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index c747aeae..724fd7e2 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.59.0-rc.1-253-ge705685a5/python' + self.user_agent = 'Swagger-Codegen/v0.59.0-rc.1-306-gb607ce140/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 3b4f4f8a..1f1711fd 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.59.0-rc.1-253-ge705685a5".\ + "SDK Package Version: v0.59.0-rc.1-306-gb607ce140".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_network_interface.py b/kubevirt/models/v1_virtual_machine_instance_network_interface.py index d7ae86aa..26b52a4e 100644 --- a/kubevirt/models/v1_virtual_machine_instance_network_interface.py +++ b/kubevirt/models/v1_virtual_machine_instance_network_interface.py @@ -37,7 +37,6 @@ class V1VirtualMachineInstanceNetworkInterface(object): 'ip_addresses': 'list[str]', 'mac': 'str', 'name': 'str', - 'pod_config_done': 'bool', 'queue_count': 'int' } @@ -48,11 +47,10 @@ class V1VirtualMachineInstanceNetworkInterface(object): 'ip_addresses': 'ipAddresses', 'mac': 'mac', 'name': 'name', - 'pod_config_done': 'podConfigDone', 'queue_count': 'queueCount' } - def __init__(self, info_source=None, interface_name=None, ip_address=None, ip_addresses=None, mac=None, name=None, pod_config_done=None, queue_count=None): + def __init__(self, info_source=None, interface_name=None, ip_address=None, ip_addresses=None, mac=None, name=None, queue_count=None): """ V1VirtualMachineInstanceNetworkInterface - a model defined in Swagger """ @@ -63,7 +61,6 @@ def __init__(self, info_source=None, interface_name=None, ip_address=None, ip_ad self._ip_addresses = None self._mac = None self._name = None - self._pod_config_done = None self._queue_count = None if info_source is not None: @@ -78,8 +75,6 @@ def __init__(self, info_source=None, interface_name=None, ip_address=None, ip_ad self.mac = mac if name is not None: self.name = name - if pod_config_done is not None: - self.pod_config_done = pod_config_done if queue_count is not None: self.queue_count = queue_count @@ -87,7 +82,7 @@ def __init__(self, info_source=None, interface_name=None, ip_address=None, ip_ad def info_source(self): """ Gets the info_source of this V1VirtualMachineInstanceNetworkInterface. - Specifies the origin of the interface data collected. values: domain, guest-agent, or both + Specifies the origin of the interface data collected. values: domain, guest-agent, multus-status. :return: The info_source of this V1VirtualMachineInstanceNetworkInterface. :rtype: str @@ -98,7 +93,7 @@ def info_source(self): def info_source(self, info_source): """ Sets the info_source of this V1VirtualMachineInstanceNetworkInterface. - Specifies the origin of the interface data collected. values: domain, guest-agent, or both + Specifies the origin of the interface data collected. values: domain, guest-agent, multus-status. :param info_source: The info_source of this V1VirtualMachineInstanceNetworkInterface. :type: str @@ -221,29 +216,6 @@ def name(self, name): self._name = name - @property - def pod_config_done(self): - """ - Gets the pod_config_done of this V1VirtualMachineInstanceNetworkInterface. - PodConfigDone specifies if the corresponding pod interface is properly configured by CNI - - :return: The pod_config_done of this V1VirtualMachineInstanceNetworkInterface. - :rtype: bool - """ - return self._pod_config_done - - @pod_config_done.setter - def pod_config_done(self, pod_config_done): - """ - Sets the pod_config_done of this V1VirtualMachineInstanceNetworkInterface. - PodConfigDone specifies if the corresponding pod interface is properly configured by CNI - - :param pod_config_done: The pod_config_done of this V1VirtualMachineInstanceNetworkInterface. - :type: bool - """ - - self._pod_config_done = pod_config_done - @property def queue_count(self): """ diff --git a/setup.py b/setup.py index 4c32c82f..03d3604d 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.59.0-rc.1-253-ge705685a5" +VERSION = "v0.59.0-rc.1-306-gb607ce140" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 92715aa9..5823b3b4 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.59.0-rc.1-253-ge705685a5" +"packageVersion": "v0.59.0-rc.1-306-gb607ce140" } From b45dc7650332250dd7087b82415e2f04a3c4ed65 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Mon, 27 Mar 2023 09:01:19 +0000 Subject: [PATCH 319/521] Client Python update by KubeVirt Prow build 1640269231624818688 --- README.md | 2 +- docs/V1AddInterfaceOptions.md | 4 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_add_interface_options.py | 70 ++++++++++----------- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 43 insertions(+), 43 deletions(-) diff --git a/README.md b/README.md index 1ccba961..bfd5ee4a 100644 --- a/README.md +++ b/README.md @@ -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: v0.59.0-rc.1-306-gb607ce140 +- Package version: v0.59.0-rc.1-399-gea8ff4937 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1AddInterfaceOptions.md b/docs/V1AddInterfaceOptions.md index 19f7e30d..86f12f61 100644 --- a/docs/V1AddInterfaceOptions.md +++ b/docs/V1AddInterfaceOptions.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**interface_name** | **str** | InterfaceName indicates the logical name of the interface. | -**network_name** | **str** | NetworkName references a NetworkAttachmentDefinition CRD object. Format: <networkName>, <namespace>/<networkName>. If namespace is not specified, VMI namespace is assumed. | +**name** | **str** | Name indicates the logical name of the interface. | +**network_attachment_definition_name** | **str** | NetworkAttachmentDefinitionName references a NetworkAttachmentDefinition CRD object. Format: <networkAttachmentDefinitionName>, <namespace>/<networkAttachmentDefinitionName>. If namespace is not specified, VMI namespace is assumed. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 6c5e6696..43b936c9 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.59.0-rc.1-306-gb607ce140" + release_note="Auto-generated client v0.59.0-rc.1-399-gea8ff4937" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 724fd7e2..2fba2db6 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.59.0-rc.1-306-gb607ce140/python' + self.user_agent = 'Swagger-Codegen/v0.59.0-rc.1-399-gea8ff4937/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 1f1711fd..37c0505e 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.59.0-rc.1-306-gb607ce140".\ + "SDK Package Version: v0.59.0-rc.1-399-gea8ff4937".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_add_interface_options.py b/kubevirt/models/v1_add_interface_options.py index 16097d7c..32543781 100644 --- a/kubevirt/models/v1_add_interface_options.py +++ b/kubevirt/models/v1_add_interface_options.py @@ -31,75 +31,75 @@ class V1AddInterfaceOptions(object): and the value is json key in definition. """ swagger_types = { - 'interface_name': 'str', - 'network_name': 'str' + 'name': 'str', + 'network_attachment_definition_name': 'str' } attribute_map = { - 'interface_name': 'interfaceName', - 'network_name': 'networkName' + 'name': 'name', + 'network_attachment_definition_name': 'networkAttachmentDefinitionName' } - def __init__(self, interface_name=None, network_name=None): + def __init__(self, name=None, network_attachment_definition_name=None): """ V1AddInterfaceOptions - a model defined in Swagger """ - self._interface_name = None - self._network_name = None + self._name = None + self._network_attachment_definition_name = None - self.interface_name = interface_name - self.network_name = network_name + self.name = name + self.network_attachment_definition_name = network_attachment_definition_name @property - def interface_name(self): + def name(self): """ - Gets the interface_name of this V1AddInterfaceOptions. - InterfaceName indicates the logical name of the interface. + Gets the name of this V1AddInterfaceOptions. + Name indicates the logical name of the interface. - :return: The interface_name of this V1AddInterfaceOptions. + :return: The name of this V1AddInterfaceOptions. :rtype: str """ - return self._interface_name + return self._name - @interface_name.setter - def interface_name(self, interface_name): + @name.setter + def name(self, name): """ - Sets the interface_name of this V1AddInterfaceOptions. - InterfaceName indicates the logical name of the interface. + Sets the name of this V1AddInterfaceOptions. + Name indicates the logical name of the interface. - :param interface_name: The interface_name of this V1AddInterfaceOptions. + :param name: The name of this V1AddInterfaceOptions. :type: str """ - if interface_name is None: - raise ValueError("Invalid value for `interface_name`, must not be `None`") + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") - self._interface_name = interface_name + self._name = name @property - def network_name(self): + def network_attachment_definition_name(self): """ - Gets the network_name of this V1AddInterfaceOptions. - NetworkName references a NetworkAttachmentDefinition CRD object. Format: , /. If namespace is not specified, VMI namespace is assumed. + Gets the network_attachment_definition_name of this V1AddInterfaceOptions. + NetworkAttachmentDefinitionName references a NetworkAttachmentDefinition CRD object. Format: , /. If namespace is not specified, VMI namespace is assumed. - :return: The network_name of this V1AddInterfaceOptions. + :return: The network_attachment_definition_name of this V1AddInterfaceOptions. :rtype: str """ - return self._network_name + return self._network_attachment_definition_name - @network_name.setter - def network_name(self, network_name): + @network_attachment_definition_name.setter + def network_attachment_definition_name(self, network_attachment_definition_name): """ - Sets the network_name of this V1AddInterfaceOptions. - NetworkName references a NetworkAttachmentDefinition CRD object. Format: , /. If namespace is not specified, VMI namespace is assumed. + Sets the network_attachment_definition_name of this V1AddInterfaceOptions. + NetworkAttachmentDefinitionName references a NetworkAttachmentDefinition CRD object. Format: , /. If namespace is not specified, VMI namespace is assumed. - :param network_name: The network_name of this V1AddInterfaceOptions. + :param network_attachment_definition_name: The network_attachment_definition_name of this V1AddInterfaceOptions. :type: str """ - if network_name is None: - raise ValueError("Invalid value for `network_name`, must not be `None`") + if network_attachment_definition_name is None: + raise ValueError("Invalid value for `network_attachment_definition_name`, must not be `None`") - self._network_name = network_name + self._network_attachment_definition_name = network_attachment_definition_name def to_dict(self): """ diff --git a/setup.py b/setup.py index 03d3604d..0160a405 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.59.0-rc.1-306-gb607ce140" +VERSION = "v0.59.0-rc.1-399-gea8ff4937" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 5823b3b4..dfeef8db 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.59.0-rc.1-306-gb607ce140" +"packageVersion": "v0.59.0-rc.1-399-gea8ff4937" } From 6e00e79d0b0f22092f59b0cdcdf150080bc8d9c7 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Sat, 1 Apr 2023 01:28:03 +0000 Subject: [PATCH 320/521] Client Python update by KubeVirt Prow build 1641965541339959296 --- README.md | 2 +- .../V1VirtualMachineInstanceMigrationState.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...irtual_machine_instance_migration_state.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index bfd5ee4a..a737e26f 100644 --- a/README.md +++ b/README.md @@ -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: v0.59.0-rc.1-399-gea8ff4937 +- Package version: v0.60.0-alpha.0-36-g2cd8711cb - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceMigrationState.md b/docs/V1VirtualMachineInstanceMigrationState.md index 4aa5ebf4..180ecd64 100644 --- a/docs/V1VirtualMachineInstanceMigrationState.md +++ b/docs/V1VirtualMachineInstanceMigrationState.md @@ -20,6 +20,7 @@ Name | Type | Description | Notes **target_node** | **str** | The target node that the VMI is moving to | [optional] **target_node_address** | **str** | The address of the target node to use for the migration | [optional] **target_node_domain_detected** | **bool** | The Target Node has seen the Domain Start Event | [optional] +**target_node_domain_ready_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | The timestamp at which the target node detects the domain is active | [optional] **target_node_topology** | **str** | If the VMI requires dedicated CPUs, this field will hold the numa topology on the target node | [optional] **target_pod** | **str** | The target pod that the VMI is moving to | [optional] diff --git a/git_push.sh b/git_push.sh index 43b936c9..38696635 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.59.0-rc.1-399-gea8ff4937" + release_note="Auto-generated client v0.60.0-alpha.0-36-g2cd8711cb" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 2fba2db6..948224cb 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.59.0-rc.1-399-gea8ff4937/python' + self.user_agent = 'Swagger-Codegen/v0.60.0-alpha.0-36-g2cd8711cb/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 37c0505e..8acd7f74 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.59.0-rc.1-399-gea8ff4937".\ + "SDK Package Version: v0.60.0-alpha.0-36-g2cd8711cb".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_state.py b/kubevirt/models/v1_virtual_machine_instance_migration_state.py index 3d9c4e8d..b1d3add1 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_state.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_state.py @@ -48,6 +48,7 @@ class V1VirtualMachineInstanceMigrationState(object): 'target_node': 'str', 'target_node_address': 'str', 'target_node_domain_detected': 'bool', + 'target_node_domain_ready_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', 'target_node_topology': 'str', 'target_pod': 'str' } @@ -70,11 +71,12 @@ class V1VirtualMachineInstanceMigrationState(object): 'target_node': 'targetNode', 'target_node_address': 'targetNodeAddress', 'target_node_domain_detected': 'targetNodeDomainDetected', + 'target_node_domain_ready_timestamp': 'targetNodeDomainReadyTimestamp', 'target_node_topology': 'targetNodeTopology', 'target_pod': 'targetPod' } - def __init__(self, abort_requested=None, abort_status=None, completed=None, end_timestamp=None, failed=None, migration_configuration=None, migration_policy_name=None, migration_uid=None, mode=None, source_node=None, start_timestamp=None, target_attachment_pod_uid=None, target_cpu_set=None, target_direct_migration_node_ports=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_node_topology=None, target_pod=None): + def __init__(self, abort_requested=None, abort_status=None, completed=None, end_timestamp=None, failed=None, migration_configuration=None, migration_policy_name=None, migration_uid=None, mode=None, source_node=None, start_timestamp=None, target_attachment_pod_uid=None, target_cpu_set=None, target_direct_migration_node_ports=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_node_domain_ready_timestamp=None, target_node_topology=None, target_pod=None): """ V1VirtualMachineInstanceMigrationState - a model defined in Swagger """ @@ -96,6 +98,7 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self._target_node = None self._target_node_address = None self._target_node_domain_detected = None + self._target_node_domain_ready_timestamp = None self._target_node_topology = None self._target_pod = None @@ -133,6 +136,8 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self.target_node_address = target_node_address if target_node_domain_detected is not None: self.target_node_domain_detected = target_node_domain_detected + if target_node_domain_ready_timestamp is not None: + self.target_node_domain_ready_timestamp = target_node_domain_ready_timestamp if target_node_topology is not None: self.target_node_topology = target_node_topology if target_pod is not None: @@ -529,6 +534,29 @@ def target_node_domain_detected(self, target_node_domain_detected): self._target_node_domain_detected = target_node_domain_detected + @property + def target_node_domain_ready_timestamp(self): + """ + Gets the target_node_domain_ready_timestamp of this V1VirtualMachineInstanceMigrationState. + The timestamp at which the target node detects the domain is active + + :return: The target_node_domain_ready_timestamp of this V1VirtualMachineInstanceMigrationState. + :rtype: K8sIoApimachineryPkgApisMetaV1Time + """ + return self._target_node_domain_ready_timestamp + + @target_node_domain_ready_timestamp.setter + def target_node_domain_ready_timestamp(self, target_node_domain_ready_timestamp): + """ + Sets the target_node_domain_ready_timestamp of this V1VirtualMachineInstanceMigrationState. + The timestamp at which the target node detects the domain is active + + :param target_node_domain_ready_timestamp: The target_node_domain_ready_timestamp of this V1VirtualMachineInstanceMigrationState. + :type: K8sIoApimachineryPkgApisMetaV1Time + """ + + self._target_node_domain_ready_timestamp = target_node_domain_ready_timestamp + @property def target_node_topology(self): """ diff --git a/setup.py b/setup.py index 0160a405..6099cc16 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.59.0-rc.1-399-gea8ff4937" +VERSION = "v0.60.0-alpha.0-36-g2cd8711cb" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index dfeef8db..733bcee3 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.59.0-rc.1-399-gea8ff4937" +"packageVersion": "v0.60.0-alpha.0-36-g2cd8711cb" } From 91efbe2a697a95ba57f1ffafdf93aa5e2f7b8569 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 5 Apr 2023 02:29:43 +0000 Subject: [PATCH 321/521] Client Python update by KubeVirt Prow build 1643432998252580864 --- README.md | 2 +- docs/V1LunTarget.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_lun_target.py | 34 +++++++++++++++++++++++++++++--- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 38 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index a737e26f..9a5c5c86 100644 --- a/README.md +++ b/README.md @@ -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: v0.60.0-alpha.0-36-g2cd8711cb +- Package version: v0.60.0-alpha.0-77-ge4aeb172a - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1LunTarget.md b/docs/V1LunTarget.md index 1de0cfaf..64ca99e6 100644 --- a/docs/V1LunTarget.md +++ b/docs/V1LunTarget.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **bus** | **str** | Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi. | [optional] **readonly** | **bool** | ReadOnly. Defaults to false. | [optional] +**reservation** | **bool** | Reservation indicates if the disk needs to support the persistent reservation for the SCSI disk | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 38696635..48581624 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.60.0-alpha.0-36-g2cd8711cb" + release_note="Auto-generated client v0.60.0-alpha.0-77-ge4aeb172a" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 948224cb..fd053807 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.60.0-alpha.0-36-g2cd8711cb/python' + self.user_agent = 'Swagger-Codegen/v0.60.0-alpha.0-77-ge4aeb172a/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 8acd7f74..38aa65fa 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.60.0-alpha.0-36-g2cd8711cb".\ + "SDK Package Version: v0.60.0-alpha.0-77-ge4aeb172a".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_lun_target.py b/kubevirt/models/v1_lun_target.py index a7d90995..730b75ab 100644 --- a/kubevirt/models/v1_lun_target.py +++ b/kubevirt/models/v1_lun_target.py @@ -32,26 +32,31 @@ class V1LunTarget(object): """ swagger_types = { 'bus': 'str', - 'readonly': 'bool' + 'readonly': 'bool', + 'reservation': 'bool' } attribute_map = { 'bus': 'bus', - 'readonly': 'readonly' + 'readonly': 'readonly', + 'reservation': 'reservation' } - def __init__(self, bus=None, readonly=None): + def __init__(self, bus=None, readonly=None, reservation=None): """ V1LunTarget - a model defined in Swagger """ self._bus = None self._readonly = None + self._reservation = None if bus is not None: self.bus = bus if readonly is not None: self.readonly = readonly + if reservation is not None: + self.reservation = reservation @property def bus(self): @@ -99,6 +104,29 @@ def readonly(self, readonly): self._readonly = readonly + @property + def reservation(self): + """ + Gets the reservation of this V1LunTarget. + Reservation indicates if the disk needs to support the persistent reservation for the SCSI disk + + :return: The reservation of this V1LunTarget. + :rtype: bool + """ + return self._reservation + + @reservation.setter + def reservation(self, reservation): + """ + Sets the reservation of this V1LunTarget. + Reservation indicates if the disk needs to support the persistent reservation for the SCSI disk + + :param reservation: The reservation of this V1LunTarget. + :type: bool + """ + + self._reservation = reservation + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 6099cc16..09886d55 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.60.0-alpha.0-36-g2cd8711cb" +VERSION = "v0.60.0-alpha.0-77-ge4aeb172a" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 733bcee3..b92fffef 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.60.0-alpha.0-36-g2cd8711cb" +"packageVersion": "v0.60.0-alpha.0-77-ge4aeb172a" } From 0a2438b09fed6ed7ae604edd1ddcf967825fa44b Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Mon, 10 Apr 2023 18:35:27 +0000 Subject: [PATCH 322/521] Client Python update by KubeVirt Prow build 1645488187826507776 --- README.md | 3 +- docs/V1KubeVirtConfiguration.md | 1 + docs/V1SupportContainerResources.md | 11 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_kube_virt_configuration.py | 30 +++- .../models/v1_support_container_resources.py | 151 ++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_support_container_resources.py | 44 +++++ 14 files changed, 248 insertions(+), 7 deletions(-) create mode 100644 docs/V1SupportContainerResources.md create mode 100644 kubevirt/models/v1_support_container_resources.py create mode 100644 test/test_v1_support_container_resources.py diff --git a/README.md b/README.md index 9a5c5c86..71f52569 100644 --- a/README.md +++ b/README.md @@ -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: v0.60.0-alpha.0-77-ge4aeb172a +- Package version: v0.60.0-alpha.0-101-g842803caa - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -524,6 +524,7 @@ Class | Method | HTTP request | Description - [V1SoundDevice](docs/V1SoundDevice.md) - [V1StartOptions](docs/V1StartOptions.md) - [V1StopOptions](docs/V1StopOptions.md) + - [V1SupportContainerResources](docs/V1SupportContainerResources.md) - [V1SyNICTimer](docs/V1SyNICTimer.md) - [V1SysprepSource](docs/V1SysprepSource.md) - [V1TLSConfiguration](docs/V1TLSConfiguration.md) diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index 56694acc..771ca893 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -26,6 +26,7 @@ Name | Type | Description | Notes **seccomp_configuration** | [**V1SeccompConfiguration**](V1SeccompConfiguration.md) | | [optional] **selinux_launcher_type** | **str** | | [optional] **smbios** | [**V1SMBiosConfiguration**](V1SMBiosConfiguration.md) | | [optional] +**support_container_resources** | [**list[V1SupportContainerResources]**](V1SupportContainerResources.md) | SupportContainerResources specifies the resource requirements for various types of supporting containers such as container disks/virtiofs/sidecars and hotplug attachment pods. If omitted a sensible default will be supplied. | [optional] **supported_guest_agent_versions** | **list[str]** | deprecated | [optional] **tls_configuration** | [**V1TLSConfiguration**](V1TLSConfiguration.md) | | [optional] **virtual_machine_instances_per_node** | **int** | | [optional] diff --git a/docs/V1SupportContainerResources.md b/docs/V1SupportContainerResources.md new file mode 100644 index 00000000..cf3a531a --- /dev/null +++ b/docs/V1SupportContainerResources.md @@ -0,0 +1,11 @@ +# V1SupportContainerResources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resources** | [**K8sIoApiCoreV1ResourceRequirements**](K8sIoApiCoreV1ResourceRequirements.md) | | +**type** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 48581624..c1994812 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.60.0-alpha.0-77-ge4aeb172a" + release_note="Auto-generated client v0.60.0-alpha.0-101-g842803caa" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 25aec3e7..68ecac17 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -588,6 +588,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_stop_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_stop_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1StopOptions.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_support_container_resources.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_support_container_resources.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SupportContainerResources.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_sy_nic_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sy_nic_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SyNICTimer.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 271dac01..3b918edb 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -203,6 +203,7 @@ from .models.v1_sound_device import V1SoundDevice from .models.v1_start_options import V1StartOptions from .models.v1_stop_options import V1StopOptions +from .models.v1_support_container_resources import V1SupportContainerResources from .models.v1_sy_nic_timer import V1SyNICTimer from .models.v1_sysprep_source import V1SysprepSource from .models.v1_tls_configuration import V1TLSConfiguration diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index fd053807..fc402020 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.60.0-alpha.0-77-ge4aeb172a/python' + self.user_agent = 'Swagger-Codegen/v0.60.0-alpha.0-101-g842803caa/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 38aa65fa..37e7f48b 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.60.0-alpha.0-77-ge4aeb172a".\ + "SDK Package Version: v0.60.0-alpha.0-101-g842803caa".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index a20725d2..12033002 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -203,6 +203,7 @@ from .v1_sound_device import V1SoundDevice from .v1_start_options import V1StartOptions from .v1_stop_options import V1StopOptions +from .v1_support_container_resources import V1SupportContainerResources from .v1_sy_nic_timer import V1SyNICTimer from .v1_sysprep_source import V1SysprepSource from .v1_tls_configuration import V1TLSConfiguration diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index ccd34541..d6789013 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -54,6 +54,7 @@ class V1KubeVirtConfiguration(object): 'seccomp_configuration': 'V1SeccompConfiguration', 'selinux_launcher_type': 'str', 'smbios': 'V1SMBiosConfiguration', + 'support_container_resources': 'list[V1SupportContainerResources]', 'supported_guest_agent_versions': 'list[str]', 'tls_configuration': 'V1TLSConfiguration', 'virtual_machine_instances_per_node': 'int', @@ -84,13 +85,14 @@ class V1KubeVirtConfiguration(object): 'seccomp_configuration': 'seccompConfiguration', 'selinux_launcher_type': 'selinuxLauncherType', 'smbios': 'smbios', + 'support_container_resources': 'supportContainerResources', 'supported_guest_agent_versions': 'supportedGuestAgentVersions', 'tls_configuration': 'tlsConfiguration', 'virtual_machine_instances_per_node': 'virtualMachineInstancesPerNode', 'webhook_configuration': 'webhookConfiguration' } - def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, webhook_configuration=None): + def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, webhook_configuration=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ @@ -118,6 +120,7 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self._seccomp_configuration = None self._selinux_launcher_type = None self._smbios = None + self._support_container_resources = None self._supported_guest_agent_versions = None self._tls_configuration = None self._virtual_machine_instances_per_node = None @@ -169,6 +172,8 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self.selinux_launcher_type = selinux_launcher_type if smbios is not None: self.smbios = smbios + if support_container_resources is not None: + self.support_container_resources = support_container_resources if supported_guest_agent_versions is not None: self.supported_guest_agent_versions = supported_guest_agent_versions if tls_configuration is not None: @@ -665,6 +670,29 @@ def smbios(self, smbios): self._smbios = smbios + @property + def support_container_resources(self): + """ + Gets the support_container_resources of this V1KubeVirtConfiguration. + SupportContainerResources specifies the resource requirements for various types of supporting containers such as container disks/virtiofs/sidecars and hotplug attachment pods. If omitted a sensible default will be supplied. + + :return: The support_container_resources of this V1KubeVirtConfiguration. + :rtype: list[V1SupportContainerResources] + """ + return self._support_container_resources + + @support_container_resources.setter + def support_container_resources(self, support_container_resources): + """ + Sets the support_container_resources of this V1KubeVirtConfiguration. + SupportContainerResources specifies the resource requirements for various types of supporting containers such as container disks/virtiofs/sidecars and hotplug attachment pods. If omitted a sensible default will be supplied. + + :param support_container_resources: The support_container_resources of this V1KubeVirtConfiguration. + :type: list[V1SupportContainerResources] + """ + + self._support_container_resources = support_container_resources + @property def supported_guest_agent_versions(self): """ diff --git a/kubevirt/models/v1_support_container_resources.py b/kubevirt/models/v1_support_container_resources.py new file mode 100644 index 00000000..9b546021 --- /dev/null +++ b/kubevirt/models/v1_support_container_resources.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SupportContainerResources(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'resources': 'K8sIoApiCoreV1ResourceRequirements', + 'type': 'str' + } + + attribute_map = { + 'resources': 'resources', + 'type': 'type' + } + + def __init__(self, resources=None, type=None): + """ + V1SupportContainerResources - a model defined in Swagger + """ + + self._resources = None + self._type = None + + self.resources = resources + self.type = type + + @property + def resources(self): + """ + Gets the resources of this V1SupportContainerResources. + + :return: The resources of this V1SupportContainerResources. + :rtype: K8sIoApiCoreV1ResourceRequirements + """ + return self._resources + + @resources.setter + def resources(self, resources): + """ + Sets the resources of this V1SupportContainerResources. + + :param resources: The resources of this V1SupportContainerResources. + :type: K8sIoApiCoreV1ResourceRequirements + """ + if resources is None: + raise ValueError("Invalid value for `resources`, must not be `None`") + + self._resources = resources + + @property + def type(self): + """ + Gets the type of this V1SupportContainerResources. + + :return: The type of this V1SupportContainerResources. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1SupportContainerResources. + + :param type: The type of this V1SupportContainerResources. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1SupportContainerResources): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 09886d55..95f3360c 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.60.0-alpha.0-77-ge4aeb172a" +VERSION = "v0.60.0-alpha.0-101-g842803caa" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b92fffef..897bfacc 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.60.0-alpha.0-77-ge4aeb172a" +"packageVersion": "v0.60.0-alpha.0-101-g842803caa" } diff --git a/test/test_v1_support_container_resources.py b/test/test_v1_support_container_resources.py new file mode 100644 index 00000000..8bc04996 --- /dev/null +++ b/test/test_v1_support_container_resources.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_support_container_resources import V1SupportContainerResources + + +class TestV1SupportContainerResources(unittest.TestCase): + """ V1SupportContainerResources unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SupportContainerResources(self): + """ + Test V1SupportContainerResources + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_support_container_resources.V1SupportContainerResources() + pass + + +if __name__ == '__main__': + unittest.main() From 751fc03088ea0e58851e361c197acde41494661d Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 18 Apr 2023 18:27:19 +0000 Subject: [PATCH 323/521] Client Python update by KubeVirt Prow build 1648385108228444160 --- README.md | 8 +- docs/DefaultApi.md | 196 +++++------------ git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 404 +++++++++-------------------------- kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 36 +--- 9 files changed, 166 insertions(+), 488 deletions(-) diff --git a/README.md b/README.md index 71f52569..990aa48b 100644 --- a/README.md +++ b/README.md @@ -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: v0.60.0-alpha.0-101-g842803caa +- Package version: v0.60.0-alpha.0-145-gd0d578988 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -121,7 +121,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#delete_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**func1**](docs/DefaultApi.md#func1) | **GET** /healthz | -*DefaultApi* | [**func7**](docs/DefaultApi.md#func7) | **GET** /openapi/v2 | +*DefaultApi* | [**func6**](docs/DefaultApi.md#func6) | **GET** /openapi/v2 | *DefaultApi* | [**get_api_group_clone_kubevirt_io**](docs/DefaultApi.md#get_api_group_clone_kubevirt_io) | **GET** /apis/clone.kubevirt.io/ | *DefaultApi* | [**get_api_group_export_kubevirt_io**](docs/DefaultApi.md#get_api_group_export_kubevirt_io) | **GET** /apis/export.kubevirt.io/ | *DefaultApi* | [**get_api_group_instancetype_kubevirt_io**](docs/DefaultApi.md#get_api_group_instancetype_kubevirt_io) | **GET** /apis/instancetype.kubevirt.io/ | @@ -227,6 +227,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1_expand_spec**](docs/DefaultApi.md#v1_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/expand-vm-spec | *DefaultApi* | [**v1_filesystemlist**](docs/DefaultApi.md#v1_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | *DefaultApi* | [**v1_freeze**](docs/DefaultApi.md#v1_freeze) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze | +*DefaultApi* | [**v1_get_sub_api_group**](docs/DefaultApi.md#v1_get_sub_api_group) | **GET** /apis/subresources.kubevirt.io | *DefaultApi* | [**v1_guestfs**](docs/DefaultApi.md#v1_guestfs) | **GET** /apis/subresources.kubevirt.io/v1/guestfs | *DefaultApi* | [**v1_guestosinfo**](docs/DefaultApi.md#v1_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | *DefaultApi* | [**v1_memory_dump**](docs/DefaultApi.md#v1_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/memorydump | @@ -237,7 +238,6 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1_soft_reboot**](docs/DefaultApi.md#v1_soft_reboot) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/softreboot | *DefaultApi* | [**v1_start**](docs/DefaultApi.md#v1_start) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | *DefaultApi* | [**v1_stop**](docs/DefaultApi.md#v1_stop) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | -*DefaultApi* | [**v1_test**](docs/DefaultApi.md#v1_test) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test | *DefaultApi* | [**v1_unfreeze**](docs/DefaultApi.md#v1_unfreeze) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unfreeze | *DefaultApi* | [**v1_unpause**](docs/DefaultApi.md#v1_unpause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause | *DefaultApi* | [**v1_userlist**](docs/DefaultApi.md#v1_userlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | @@ -250,7 +250,6 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3_expand_spec**](docs/DefaultApi.md#v1alpha3_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/expand-vm-spec | *DefaultApi* | [**v1alpha3_filesystemlist**](docs/DefaultApi.md#v1alpha3_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | *DefaultApi* | [**v1alpha3_freeze**](docs/DefaultApi.md#v1alpha3_freeze) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze | -*DefaultApi* | [**v1alpha3_get_sub_api_group**](docs/DefaultApi.md#v1alpha3_get_sub_api_group) | **GET** /apis/subresources.kubevirt.io | *DefaultApi* | [**v1alpha3_guestfs**](docs/DefaultApi.md#v1alpha3_guestfs) | **GET** /apis/subresources.kubevirt.io/v1alpha3/guestfs | *DefaultApi* | [**v1alpha3_guestosinfo**](docs/DefaultApi.md#v1alpha3_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | *DefaultApi* | [**v1alpha3_memory_dump**](docs/DefaultApi.md#v1alpha3_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/memorydump | @@ -261,7 +260,6 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3_soft_reboot**](docs/DefaultApi.md#v1alpha3_soft_reboot) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/softreboot | *DefaultApi* | [**v1alpha3_start**](docs/DefaultApi.md#v1alpha3_start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | *DefaultApi* | [**v1alpha3_stop**](docs/DefaultApi.md#v1alpha3_stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | -*DefaultApi* | [**v1alpha3_test**](docs/DefaultApi.md#v1alpha3_test) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test | *DefaultApi* | [**v1alpha3_unfreeze**](docs/DefaultApi.md#v1alpha3_unfreeze) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unfreeze | *DefaultApi* | [**v1alpha3_unpause**](docs/DefaultApi.md#v1alpha3_unpause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause | *DefaultApi* | [**v1alpha3_userlist**](docs/DefaultApi.md#v1alpha3_userlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index ad5fb7ca..8fe0d2c5 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -56,7 +56,7 @@ Method | HTTP request | Description [**delete_virtual_machine_cluster_instancetype**](DefaultApi.md#delete_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | [**delete_virtual_machine_cluster_preference**](DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | [**func1**](DefaultApi.md#func1) | **GET** /healthz | -[**func7**](DefaultApi.md#func7) | **GET** /openapi/v2 | +[**func6**](DefaultApi.md#func6) | **GET** /openapi/v2 | [**get_api_group_clone_kubevirt_io**](DefaultApi.md#get_api_group_clone_kubevirt_io) | **GET** /apis/clone.kubevirt.io/ | [**get_api_group_export_kubevirt_io**](DefaultApi.md#get_api_group_export_kubevirt_io) | **GET** /apis/export.kubevirt.io/ | [**get_api_group_instancetype_kubevirt_io**](DefaultApi.md#get_api_group_instancetype_kubevirt_io) | **GET** /apis/instancetype.kubevirt.io/ | @@ -162,6 +162,7 @@ Method | HTTP request | Description [**v1_expand_spec**](DefaultApi.md#v1_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/expand-vm-spec | [**v1_filesystemlist**](DefaultApi.md#v1_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | [**v1_freeze**](DefaultApi.md#v1_freeze) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze | +[**v1_get_sub_api_group**](DefaultApi.md#v1_get_sub_api_group) | **GET** /apis/subresources.kubevirt.io | [**v1_guestfs**](DefaultApi.md#v1_guestfs) | **GET** /apis/subresources.kubevirt.io/v1/guestfs | [**v1_guestosinfo**](DefaultApi.md#v1_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | [**v1_memory_dump**](DefaultApi.md#v1_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/memorydump | @@ -172,7 +173,6 @@ Method | HTTP request | Description [**v1_soft_reboot**](DefaultApi.md#v1_soft_reboot) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/softreboot | [**v1_start**](DefaultApi.md#v1_start) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | [**v1_stop**](DefaultApi.md#v1_stop) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | -[**v1_test**](DefaultApi.md#v1_test) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test | [**v1_unfreeze**](DefaultApi.md#v1_unfreeze) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unfreeze | [**v1_unpause**](DefaultApi.md#v1_unpause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause | [**v1_userlist**](DefaultApi.md#v1_userlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | @@ -185,7 +185,6 @@ Method | HTTP request | Description [**v1alpha3_expand_spec**](DefaultApi.md#v1alpha3_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/expand-vm-spec | [**v1alpha3_filesystemlist**](DefaultApi.md#v1alpha3_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | [**v1alpha3_freeze**](DefaultApi.md#v1alpha3_freeze) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze | -[**v1alpha3_get_sub_api_group**](DefaultApi.md#v1alpha3_get_sub_api_group) | **GET** /apis/subresources.kubevirt.io | [**v1alpha3_guestfs**](DefaultApi.md#v1alpha3_guestfs) | **GET** /apis/subresources.kubevirt.io/v1alpha3/guestfs | [**v1alpha3_guestosinfo**](DefaultApi.md#v1alpha3_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | [**v1alpha3_memory_dump**](DefaultApi.md#v1alpha3_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/memorydump | @@ -196,7 +195,6 @@ Method | HTTP request | Description [**v1alpha3_soft_reboot**](DefaultApi.md#v1alpha3_soft_reboot) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/softreboot | [**v1alpha3_start**](DefaultApi.md#v1alpha3_start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | [**v1alpha3_stop**](DefaultApi.md#v1alpha3_stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | -[**v1alpha3_test**](DefaultApi.md#v1alpha3_test) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test | [**v1alpha3_unfreeze**](DefaultApi.md#v1alpha3_unfreeze) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unfreeze | [**v1alpha3_unpause**](DefaultApi.md#v1alpha3_unpause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause | [**v1alpha3_userlist**](DefaultApi.md#v1alpha3_userlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | @@ -3133,8 +3131,8 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **func7** -> func7() +# **func6** +> func6() @@ -3150,9 +3148,9 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() try: - api_instance.func7() + api_instance.func6() except ApiException as e: - print("Exception when calling DefaultApi->func7: %s\n" % e) + print("Exception when calling DefaultApi->func6: %s\n" % e) ``` ### Parameters @@ -8682,6 +8680,49 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1_get_sub_api_group** +> K8sIoApimachineryPkgApisMetaV1APIGroup v1_get_sub_api_group() + + + +Get a KubeVirt API Group + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.v1_get_sub_api_group() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1_get_sub_api_group: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1APIGroup**](K8sIoApimachineryPkgApisMetaV1APIGroup.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1_guestfs** > str v1_guestfs() @@ -9176,54 +9217,6 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_test** -> v1_test(name, namespace) - - - -Test endpoint verifying apiserver connectivity. - -### Example -```python -from __future__ import print_function -import time -import kubevirt -from kubevirt.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = kubevirt.DefaultApi() -name = 'name_example' # str | Name of the resource -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects - -try: - api_instance.v1_test(name, namespace) -except ApiException as e: - print("Exception when calling DefaultApi->v1_test: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Name of the resource | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | - -### Return type - -void (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **v1_unfreeze** > str v1_unfreeze(name, namespace) @@ -9785,49 +9778,6 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1alpha3_get_sub_api_group** -> K8sIoApimachineryPkgApisMetaV1APIGroup v1alpha3_get_sub_api_group() - - - -Get a KubeVirt API Group - -### Example -```python -from __future__ import print_function -import time -import kubevirt -from kubevirt.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = kubevirt.DefaultApi() - -try: - api_response = api_instance.v1alpha3_get_sub_api_group() - pprint(api_response) -except ApiException as e: - print("Exception when calling DefaultApi->v1alpha3_get_sub_api_group: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**K8sIoApimachineryPkgApisMetaV1APIGroup**](K8sIoApimachineryPkgApisMetaV1APIGroup.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **v1alpha3_guestfs** > str v1alpha3_guestfs() @@ -10322,54 +10272,6 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1alpha3_test** -> v1alpha3_test(name, namespace) - - - -Test endpoint verifying apiserver connectivity. - -### Example -```python -from __future__ import print_function -import time -import kubevirt -from kubevirt.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = kubevirt.DefaultApi() -name = 'name_example' # str | Name of the resource -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects - -try: - api_instance.v1alpha3_test(name, namespace) -except ApiException as e: - print("Exception when calling DefaultApi->v1alpha3_test: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Name of the resource | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | - -### Return type - -void (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **v1alpha3_unfreeze** > str v1alpha3_unfreeze(name, namespace) diff --git a/git_push.sh b/git_push.sh index c1994812..3fcc1059 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.60.0-alpha.0-101-g842803caa" + release_note="Auto-generated client v0.60.0-alpha.0-145-gd0d578988" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index fc402020..a3f1cbf3 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.60.0-alpha.0-101-g842803caa/python' + self.user_agent = 'Swagger-Codegen/v0.60.0-alpha.0-145-gd0d578988/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index d3681d9f..d9d231c5 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -6294,7 +6294,7 @@ def func1_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def func7(self, **kwargs): + def func6(self, **kwargs): """ This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -6302,7 +6302,7 @@ def func7(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.func7(callback=callback_function) + >>> thread = api.func6(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -6312,12 +6312,12 @@ def func7(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.func7_with_http_info(**kwargs) + return self.func6_with_http_info(**kwargs) else: - (data) = self.func7_with_http_info(**kwargs) + (data) = self.func6_with_http_info(**kwargs) return data - def func7_with_http_info(self, **kwargs): + def func6_with_http_info(self, **kwargs): """ This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -6325,7 +6325,7 @@ def func7_with_http_info(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.func7_with_http_info(callback=callback_function) + >>> thread = api.func6_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -6345,7 +6345,7 @@ def func7_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method func7" % key + " to method func6" % key ) params[key] = val del params['kwargs'] @@ -18349,6 +18349,98 @@ def v1_freeze_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1_get_sub_api_group(self, **kwargs): + """ + Get a KubeVirt API Group + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_get_sub_api_group(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1_get_sub_api_group_with_http_info(**kwargs) + else: + (data) = self.v1_get_sub_api_group_with_http_info(**kwargs) + return data + + def v1_get_sub_api_group_with_http_info(self, **kwargs): + """ + Get a KubeVirt API Group + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_get_sub_api_group_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1_get_sub_api_group" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1APIGroup', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1_guestfs(self, **kwargs): """ This method makes a synchronous HTTP request by default. To make an @@ -19410,109 +19502,6 @@ def v1_stop_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_test(self, name, namespace, **kwargs): - """ - Test endpoint verifying apiserver connectivity. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1_test(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.v1_test_with_http_info(name, namespace, **kwargs) - else: - (data) = self.v1_test_with_http_info(name, namespace, **kwargs) - return data - - def v1_test_with_http_info(self, name, namespace, **kwargs): - """ - Test endpoint verifying apiserver connectivity. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1_test_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method v1_test" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1_test`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1_test`") - - - collection_formats = {} - - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - def v1_unfreeze(self, name, namespace, **kwargs): """ Unfreeze a VirtualMachineInstance object. @@ -20737,98 +20726,6 @@ def v1alpha3_freeze_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_get_sub_api_group(self, **kwargs): - """ - Get a KubeVirt API Group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1alpha3_get_sub_api_group(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.v1alpha3_get_sub_api_group_with_http_info(**kwargs) - else: - (data) = self.v1alpha3_get_sub_api_group_with_http_info(**kwargs) - return data - - def v1alpha3_get_sub_api_group_with_http_info(self, **kwargs): - """ - Get a KubeVirt API Group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1alpha3_get_sub_api_group_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: K8sIoApimachineryPkgApisMetaV1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method v1alpha3_get_sub_api_group" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/apis/subresources.kubevirt.io', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='K8sIoApimachineryPkgApisMetaV1APIGroup', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - def v1alpha3_guestfs(self, **kwargs): """ This method makes a synchronous HTTP request by default. To make an @@ -21890,109 +21787,6 @@ def v1alpha3_stop_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_test(self, name, namespace, **kwargs): - """ - Test endpoint verifying apiserver connectivity. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1alpha3_test(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.v1alpha3_test_with_http_info(name, namespace, **kwargs) - else: - (data) = self.v1alpha3_test_with_http_info(name, namespace, **kwargs) - return data - - def v1alpha3_test_with_http_info(self, name, namespace, **kwargs): - """ - Test endpoint verifying apiserver connectivity. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1alpha3_test_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method v1alpha3_test" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3_test`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_test`") - - - collection_formats = {} - - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/test', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - def v1alpha3_unfreeze(self, name, namespace, **kwargs): """ Unfreeze a VirtualMachineInstance object. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 37e7f48b..f322702e 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.60.0-alpha.0-101-g842803caa".\ + "SDK Package Version: v0.60.0-alpha.0-145-gd0d578988".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index 95f3360c..53da65b1 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.60.0-alpha.0-101-g842803caa" +VERSION = "v0.60.0-alpha.0-145-gd0d578988" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 897bfacc..b9c616a7 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.60.0-alpha.0-101-g842803caa" +"packageVersion": "v0.60.0-alpha.0-145-gd0d578988" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 79c55a6a..370a7f5f 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -447,9 +447,9 @@ def test_func1(self): """ pass - def test_func7(self): + def test_func6(self): """ - Test case for func7 + Test case for func6 """ @@ -1292,6 +1292,14 @@ def test_v1_freeze(self): Test case for v1_freeze + """ + pass + + def test_v1_get_sub_api_group(self): + """ + Test case for v1_get_sub_api_group + + """ pass @@ -1372,14 +1380,6 @@ def test_v1_stop(self): Test case for v1_stop - """ - pass - - def test_v1_test(self): - """ - Test case for v1_test - - """ pass @@ -1476,14 +1476,6 @@ def test_v1alpha3_freeze(self): Test case for v1alpha3_freeze - """ - pass - - def test_v1alpha3_get_sub_api_group(self): - """ - Test case for v1alpha3_get_sub_api_group - - """ pass @@ -1564,14 +1556,6 @@ def test_v1alpha3_stop(self): Test case for v1alpha3_stop - """ - pass - - def test_v1alpha3_test(self): - """ - Test case for v1alpha3_test - - """ pass From 95ff65f4a3ef9ea9b764aeb17269eadc1c4a6e28 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 19 Apr 2023 16:37:18 +0000 Subject: [PATCH 324/521] Client Python update by KubeVirt Prow build 1648719621051650048 --- README.md | 2 +- docs/V1KubeVirtConfiguration.md | 1 + docs/V1TPMDevice.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_kube_virt_configuration.py | 30 ++++++++++++++++- kubevirt/models/v1_tpm_device.py | 32 +++++++++++++++++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 66 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 990aa48b..050f3717 100644 --- a/README.md +++ b/README.md @@ -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: v0.60.0-alpha.0-145-gd0d578988 +- Package version: v0.60.0-alpha.0-157-g474319c18 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index 771ca893..5f9cdb4f 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -30,6 +30,7 @@ Name | Type | Description | Notes **supported_guest_agent_versions** | **list[str]** | deprecated | [optional] **tls_configuration** | [**V1TLSConfiguration**](V1TLSConfiguration.md) | | [optional] **virtual_machine_instances_per_node** | **int** | | [optional] +**vm_state_storage_class** | **str** | VMStateStorageClass is the name of the storage class to use for the PVCs created to preserve VM state, like TPM. The storage class must support RWX in filesystem mode. | [optional] **webhook_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1TPMDevice.md b/docs/V1TPMDevice.md index 4230d334..3f0f2dd9 100644 --- a/docs/V1TPMDevice.md +++ b/docs/V1TPMDevice.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**persistent** | **bool** | Persistent indicates the state of the TPM device should be kept accross reboots Defaults to false | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 3fcc1059..725c7017 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.60.0-alpha.0-145-gd0d578988" + release_note="Auto-generated client v0.60.0-alpha.0-157-g474319c18" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index a3f1cbf3..48d7c5a4 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.60.0-alpha.0-145-gd0d578988/python' + self.user_agent = 'Swagger-Codegen/v0.60.0-alpha.0-157-g474319c18/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index f322702e..127c20f9 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.60.0-alpha.0-145-gd0d578988".\ + "SDK Package Version: v0.60.0-alpha.0-157-g474319c18".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index d6789013..165d59d1 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -58,6 +58,7 @@ class V1KubeVirtConfiguration(object): 'supported_guest_agent_versions': 'list[str]', 'tls_configuration': 'V1TLSConfiguration', 'virtual_machine_instances_per_node': 'int', + 'vm_state_storage_class': 'str', 'webhook_configuration': 'V1ReloadableComponentConfiguration' } @@ -89,10 +90,11 @@ class V1KubeVirtConfiguration(object): 'supported_guest_agent_versions': 'supportedGuestAgentVersions', 'tls_configuration': 'tlsConfiguration', 'virtual_machine_instances_per_node': 'virtualMachineInstancesPerNode', + 'vm_state_storage_class': 'vmStateStorageClass', 'webhook_configuration': 'webhookConfiguration' } - def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, webhook_configuration=None): + def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, vm_state_storage_class=None, webhook_configuration=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ @@ -124,6 +126,7 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self._supported_guest_agent_versions = None self._tls_configuration = None self._virtual_machine_instances_per_node = None + self._vm_state_storage_class = None self._webhook_configuration = None if additional_guest_memory_overhead_ratio is not None: @@ -180,6 +183,8 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self.tls_configuration = tls_configuration if virtual_machine_instances_per_node is not None: self.virtual_machine_instances_per_node = virtual_machine_instances_per_node + if vm_state_storage_class is not None: + self.vm_state_storage_class = vm_state_storage_class if webhook_configuration is not None: self.webhook_configuration = webhook_configuration @@ -758,6 +763,29 @@ def virtual_machine_instances_per_node(self, virtual_machine_instances_per_node) self._virtual_machine_instances_per_node = virtual_machine_instances_per_node + @property + def vm_state_storage_class(self): + """ + Gets the vm_state_storage_class of this V1KubeVirtConfiguration. + VMStateStorageClass is the name of the storage class to use for the PVCs created to preserve VM state, like TPM. The storage class must support RWX in filesystem mode. + + :return: The vm_state_storage_class of this V1KubeVirtConfiguration. + :rtype: str + """ + return self._vm_state_storage_class + + @vm_state_storage_class.setter + def vm_state_storage_class(self, vm_state_storage_class): + """ + Sets the vm_state_storage_class of this V1KubeVirtConfiguration. + VMStateStorageClass is the name of the storage class to use for the PVCs created to preserve VM state, like TPM. The storage class must support RWX in filesystem mode. + + :param vm_state_storage_class: The vm_state_storage_class of this V1KubeVirtConfiguration. + :type: str + """ + + self._vm_state_storage_class = vm_state_storage_class + @property def webhook_configuration(self): """ diff --git a/kubevirt/models/v1_tpm_device.py b/kubevirt/models/v1_tpm_device.py index 105de18b..43e8cf40 100644 --- a/kubevirt/models/v1_tpm_device.py +++ b/kubevirt/models/v1_tpm_device.py @@ -31,19 +31,45 @@ class V1TPMDevice(object): and the value is json key in definition. """ swagger_types = { - + 'persistent': 'bool' } attribute_map = { - + 'persistent': 'persistent' } - def __init__(self): + def __init__(self, persistent=None): """ V1TPMDevice - a model defined in Swagger """ + self._persistent = None + if persistent is not None: + self.persistent = persistent + + @property + def persistent(self): + """ + Gets the persistent of this V1TPMDevice. + Persistent indicates the state of the TPM device should be kept accross reboots Defaults to false + + :return: The persistent of this V1TPMDevice. + :rtype: bool + """ + return self._persistent + + @persistent.setter + def persistent(self, persistent): + """ + Sets the persistent of this V1TPMDevice. + Persistent indicates the state of the TPM device should be kept accross reboots Defaults to false + + :param persistent: The persistent of this V1TPMDevice. + :type: bool + """ + + self._persistent = persistent def to_dict(self): """ diff --git a/setup.py b/setup.py index 53da65b1..5a74d220 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.60.0-alpha.0-145-gd0d578988" +VERSION = "v0.60.0-alpha.0-157-g474319c18" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b9c616a7..fff13d7a 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.60.0-alpha.0-145-gd0d578988" +"packageVersion": "v0.60.0-alpha.0-157-g474319c18" } From 415195f0f97ef4dbceb8339c8876b3b908426cd2 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 28 Apr 2023 13:33:10 +0000 Subject: [PATCH 325/521] Client Python update by KubeVirt Prow build 1651930579718901760 --- README.md | 2 +- docs/V1VirtualMachineInstanceStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1_virtual_machine_instance_status.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 050f3717..f25baba6 100644 --- a/README.md +++ b/README.md @@ -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: v0.60.0-alpha.0-157-g474319c18 +- Package version: v1.0.0-alpha.0-26-ge68c20b99 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index e00d94d8..4372e666 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **guest_os_info** | [**V1VirtualMachineInstanceGuestOSInfo**](V1VirtualMachineInstanceGuestOSInfo.md) | Guest OS Information | [optional] **interfaces** | [**list[V1VirtualMachineInstanceNetworkInterface]**](V1VirtualMachineInstanceNetworkInterface.md) | Interfaces represent the details of available network interfaces. | [optional] **launcher_container_image_version** | **str** | LauncherContainerImageVersion indicates what container image is currently active for the vmi. | [optional] +**machine** | [**V1Machine**](V1Machine.md) | Machine shows the final resulting qemu machine type. This can be different than the machine type selected in the spec, due to qemus machine type alias mechanism. | [optional] **migration_method** | **str** | Represents the method using which the vmi can be migrated: live migration or block migration | [optional] **migration_state** | [**V1VirtualMachineInstanceMigrationState**](V1VirtualMachineInstanceMigrationState.md) | Represents the status of a live migration | [optional] **migration_transport** | **str** | This represents the migration transport | [optional] diff --git a/git_push.sh b/git_push.sh index 725c7017..b6ff5609 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v0.60.0-alpha.0-157-g474319c18" + release_note="Auto-generated client v1.0.0-alpha.0-26-ge68c20b99" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 48d7c5a4..f71ea848 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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/v0.60.0-alpha.0-157-g474319c18/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-alpha.0-26-ge68c20b99/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 127c20f9..699349e4 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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: v0.60.0-alpha.0-157-g474319c18".\ + "SDK Package Version: v1.0.0-alpha.0-26-ge68c20b99".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index f58427f9..8f83dfaa 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -39,6 +39,7 @@ class V1VirtualMachineInstanceStatus(object): 'guest_os_info': 'V1VirtualMachineInstanceGuestOSInfo', 'interfaces': 'list[V1VirtualMachineInstanceNetworkInterface]', 'launcher_container_image_version': 'str', + 'machine': 'V1Machine', 'migration_method': 'str', 'migration_state': 'V1VirtualMachineInstanceMigrationState', 'migration_transport': 'str', @@ -63,6 +64,7 @@ class V1VirtualMachineInstanceStatus(object): 'guest_os_info': 'guestOSInfo', 'interfaces': 'interfaces', 'launcher_container_image_version': 'launcherContainerImageVersion', + 'machine': 'machine', 'migration_method': 'migrationMethod', 'migration_state': 'migrationState', 'migration_transport': 'migrationTransport', @@ -78,7 +80,7 @@ class V1VirtualMachineInstanceStatus(object): 'volume_status': 'volumeStatus' } - def __init__(self, vsockcid=None, active_pods=None, conditions=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=None, selinux_context=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): + def __init__(self, vsockcid=None, active_pods=None, conditions=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, machine=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=None, selinux_context=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ @@ -91,6 +93,7 @@ def __init__(self, vsockcid=None, active_pods=None, conditions=None, evacuation_ self._guest_os_info = None self._interfaces = None self._launcher_container_image_version = None + self._machine = None self._migration_method = None self._migration_state = None self._migration_transport = None @@ -121,6 +124,8 @@ def __init__(self, vsockcid=None, active_pods=None, conditions=None, evacuation_ self.interfaces = interfaces if launcher_container_image_version is not None: self.launcher_container_image_version = launcher_container_image_version + if machine is not None: + self.machine = machine if migration_method is not None: self.migration_method = migration_method if migration_state is not None: @@ -332,6 +337,29 @@ def launcher_container_image_version(self, launcher_container_image_version): self._launcher_container_image_version = launcher_container_image_version + @property + def machine(self): + """ + Gets the machine of this V1VirtualMachineInstanceStatus. + Machine shows the final resulting qemu machine type. This can be different than the machine type selected in the spec, due to qemus machine type alias mechanism. + + :return: The machine of this V1VirtualMachineInstanceStatus. + :rtype: V1Machine + """ + return self._machine + + @machine.setter + def machine(self, machine): + """ + Sets the machine of this V1VirtualMachineInstanceStatus. + Machine shows the final resulting qemu machine type. This can be different than the machine type selected in the spec, due to qemus machine type alias mechanism. + + :param machine: The machine of this V1VirtualMachineInstanceStatus. + :type: V1Machine + """ + + self._machine = machine + @property def migration_method(self): """ diff --git a/setup.py b/setup.py index 5a74d220..ce6fc962 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v0.60.0-alpha.0-157-g474319c18" +VERSION = "v1.0.0-alpha.0-26-ge68c20b99" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index fff13d7a..9ce986ae 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v0.60.0-alpha.0-157-g474319c18" +"packageVersion": "v1.0.0-alpha.0-26-ge68c20b99" } From 94392659f3cde0dce26818d88b6a786bf6710f77 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 28 Apr 2023 13:33:45 +0000 Subject: [PATCH 326/521] Client Python update by KubeVirt Prow build 1651930552074244096 --- README.md | 2 +- docs/V1VirtualMachineInstanceStatus.md | 1 - git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1_virtual_machine_instance_status.py | 30 +------------------ setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 7 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index f25baba6..4f4d67ef 100644 --- a/README.md +++ b/README.md @@ -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.0.0-alpha.0-26-ge68c20b99 +- Package version: v1.0.0-alpha.0-23-g870ea9d57 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index 4372e666..e00d94d8 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -11,7 +11,6 @@ Name | Type | Description | Notes **guest_os_info** | [**V1VirtualMachineInstanceGuestOSInfo**](V1VirtualMachineInstanceGuestOSInfo.md) | Guest OS Information | [optional] **interfaces** | [**list[V1VirtualMachineInstanceNetworkInterface]**](V1VirtualMachineInstanceNetworkInterface.md) | Interfaces represent the details of available network interfaces. | [optional] **launcher_container_image_version** | **str** | LauncherContainerImageVersion indicates what container image is currently active for the vmi. | [optional] -**machine** | [**V1Machine**](V1Machine.md) | Machine shows the final resulting qemu machine type. This can be different than the machine type selected in the spec, due to qemus machine type alias mechanism. | [optional] **migration_method** | **str** | Represents the method using which the vmi can be migrated: live migration or block migration | [optional] **migration_state** | [**V1VirtualMachineInstanceMigrationState**](V1VirtualMachineInstanceMigrationState.md) | Represents the status of a live migration | [optional] **migration_transport** | **str** | This represents the migration transport | [optional] diff --git a/git_push.sh b/git_push.sh index b6ff5609..f44f9229 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-alpha.0-26-ge68c20b99" + release_note="Auto-generated client v1.0.0-alpha.0-23-g870ea9d57" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index f71ea848..7d7806f1 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-alpha.0-26-ge68c20b99/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-alpha.0-23-g870ea9d57/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 699349e4..cb1b5312 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-alpha.0-26-ge68c20b99".\ + "SDK Package Version: v1.0.0-alpha.0-23-g870ea9d57".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index 8f83dfaa..f58427f9 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -39,7 +39,6 @@ class V1VirtualMachineInstanceStatus(object): 'guest_os_info': 'V1VirtualMachineInstanceGuestOSInfo', 'interfaces': 'list[V1VirtualMachineInstanceNetworkInterface]', 'launcher_container_image_version': 'str', - 'machine': 'V1Machine', 'migration_method': 'str', 'migration_state': 'V1VirtualMachineInstanceMigrationState', 'migration_transport': 'str', @@ -64,7 +63,6 @@ class V1VirtualMachineInstanceStatus(object): 'guest_os_info': 'guestOSInfo', 'interfaces': 'interfaces', 'launcher_container_image_version': 'launcherContainerImageVersion', - 'machine': 'machine', 'migration_method': 'migrationMethod', 'migration_state': 'migrationState', 'migration_transport': 'migrationTransport', @@ -80,7 +78,7 @@ class V1VirtualMachineInstanceStatus(object): 'volume_status': 'volumeStatus' } - def __init__(self, vsockcid=None, active_pods=None, conditions=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, machine=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=None, selinux_context=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): + def __init__(self, vsockcid=None, active_pods=None, conditions=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=None, selinux_context=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ @@ -93,7 +91,6 @@ def __init__(self, vsockcid=None, active_pods=None, conditions=None, evacuation_ self._guest_os_info = None self._interfaces = None self._launcher_container_image_version = None - self._machine = None self._migration_method = None self._migration_state = None self._migration_transport = None @@ -124,8 +121,6 @@ def __init__(self, vsockcid=None, active_pods=None, conditions=None, evacuation_ self.interfaces = interfaces if launcher_container_image_version is not None: self.launcher_container_image_version = launcher_container_image_version - if machine is not None: - self.machine = machine if migration_method is not None: self.migration_method = migration_method if migration_state is not None: @@ -337,29 +332,6 @@ def launcher_container_image_version(self, launcher_container_image_version): self._launcher_container_image_version = launcher_container_image_version - @property - def machine(self): - """ - Gets the machine of this V1VirtualMachineInstanceStatus. - Machine shows the final resulting qemu machine type. This can be different than the machine type selected in the spec, due to qemus machine type alias mechanism. - - :return: The machine of this V1VirtualMachineInstanceStatus. - :rtype: V1Machine - """ - return self._machine - - @machine.setter - def machine(self, machine): - """ - Sets the machine of this V1VirtualMachineInstanceStatus. - Machine shows the final resulting qemu machine type. This can be different than the machine type selected in the spec, due to qemus machine type alias mechanism. - - :param machine: The machine of this V1VirtualMachineInstanceStatus. - :type: V1Machine - """ - - self._machine = machine - @property def migration_method(self): """ diff --git a/setup.py b/setup.py index ce6fc962..16d4750b 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-alpha.0-26-ge68c20b99" +VERSION = "v1.0.0-alpha.0-23-g870ea9d57" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 9ce986ae..1e33af2b 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-alpha.0-26-ge68c20b99" +"packageVersion": "v1.0.0-alpha.0-23-g870ea9d57" } From 525eddd88f45799ab001770f8124ac013966f463 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 2 May 2023 11:21:04 +0000 Subject: [PATCH 327/521] Client Python update by KubeVirt Prow build 1653343106948403200 --- README.md | 2 +- docs/V1VirtualMachineInstanceStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1_virtual_machine_instance_status.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 4f4d67ef..a84212ec 100644 --- a/README.md +++ b/README.md @@ -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.0.0-alpha.0-23-g870ea9d57 +- Package version: v1.0.0-alpha.0-29-ga8a1bcb48 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index e00d94d8..4372e666 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **guest_os_info** | [**V1VirtualMachineInstanceGuestOSInfo**](V1VirtualMachineInstanceGuestOSInfo.md) | Guest OS Information | [optional] **interfaces** | [**list[V1VirtualMachineInstanceNetworkInterface]**](V1VirtualMachineInstanceNetworkInterface.md) | Interfaces represent the details of available network interfaces. | [optional] **launcher_container_image_version** | **str** | LauncherContainerImageVersion indicates what container image is currently active for the vmi. | [optional] +**machine** | [**V1Machine**](V1Machine.md) | Machine shows the final resulting qemu machine type. This can be different than the machine type selected in the spec, due to qemus machine type alias mechanism. | [optional] **migration_method** | **str** | Represents the method using which the vmi can be migrated: live migration or block migration | [optional] **migration_state** | [**V1VirtualMachineInstanceMigrationState**](V1VirtualMachineInstanceMigrationState.md) | Represents the status of a live migration | [optional] **migration_transport** | **str** | This represents the migration transport | [optional] diff --git a/git_push.sh b/git_push.sh index f44f9229..439eb85b 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-alpha.0-23-g870ea9d57" + release_note="Auto-generated client v1.0.0-alpha.0-29-ga8a1bcb48" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 7d7806f1..853f300b 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-alpha.0-23-g870ea9d57/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-alpha.0-29-ga8a1bcb48/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index cb1b5312..77d85178 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-alpha.0-23-g870ea9d57".\ + "SDK Package Version: v1.0.0-alpha.0-29-ga8a1bcb48".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index f58427f9..8f83dfaa 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -39,6 +39,7 @@ class V1VirtualMachineInstanceStatus(object): 'guest_os_info': 'V1VirtualMachineInstanceGuestOSInfo', 'interfaces': 'list[V1VirtualMachineInstanceNetworkInterface]', 'launcher_container_image_version': 'str', + 'machine': 'V1Machine', 'migration_method': 'str', 'migration_state': 'V1VirtualMachineInstanceMigrationState', 'migration_transport': 'str', @@ -63,6 +64,7 @@ class V1VirtualMachineInstanceStatus(object): 'guest_os_info': 'guestOSInfo', 'interfaces': 'interfaces', 'launcher_container_image_version': 'launcherContainerImageVersion', + 'machine': 'machine', 'migration_method': 'migrationMethod', 'migration_state': 'migrationState', 'migration_transport': 'migrationTransport', @@ -78,7 +80,7 @@ class V1VirtualMachineInstanceStatus(object): 'volume_status': 'volumeStatus' } - def __init__(self, vsockcid=None, active_pods=None, conditions=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=None, selinux_context=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): + def __init__(self, vsockcid=None, active_pods=None, conditions=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, machine=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=None, selinux_context=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ @@ -91,6 +93,7 @@ def __init__(self, vsockcid=None, active_pods=None, conditions=None, evacuation_ self._guest_os_info = None self._interfaces = None self._launcher_container_image_version = None + self._machine = None self._migration_method = None self._migration_state = None self._migration_transport = None @@ -121,6 +124,8 @@ def __init__(self, vsockcid=None, active_pods=None, conditions=None, evacuation_ self.interfaces = interfaces if launcher_container_image_version is not None: self.launcher_container_image_version = launcher_container_image_version + if machine is not None: + self.machine = machine if migration_method is not None: self.migration_method = migration_method if migration_state is not None: @@ -332,6 +337,29 @@ def launcher_container_image_version(self, launcher_container_image_version): self._launcher_container_image_version = launcher_container_image_version + @property + def machine(self): + """ + Gets the machine of this V1VirtualMachineInstanceStatus. + Machine shows the final resulting qemu machine type. This can be different than the machine type selected in the spec, due to qemus machine type alias mechanism. + + :return: The machine of this V1VirtualMachineInstanceStatus. + :rtype: V1Machine + """ + return self._machine + + @machine.setter + def machine(self, machine): + """ + Sets the machine of this V1VirtualMachineInstanceStatus. + Machine shows the final resulting qemu machine type. This can be different than the machine type selected in the spec, due to qemus machine type alias mechanism. + + :param machine: The machine of this V1VirtualMachineInstanceStatus. + :type: V1Machine + """ + + self._machine = machine + @property def migration_method(self): """ diff --git a/setup.py b/setup.py index 16d4750b..190f65ae 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-alpha.0-23-g870ea9d57" +VERSION = "v1.0.0-alpha.0-29-ga8a1bcb48" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 1e33af2b..8f9b0703 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-alpha.0-23-g870ea9d57" +"packageVersion": "v1.0.0-alpha.0-29-ga8a1bcb48" } From 184a8afb711081a1b23d7cffa21a0dc0ba4b26ec Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Sat, 6 May 2023 03:49:42 +0000 Subject: [PATCH 328/521] Client Python update by KubeVirt Prow build 1654687481343250432 --- README.md | 4 +- docs/V1ArchConfiguration.md | 13 ++ docs/V1ArchSpecificConfiguration.md | 12 ++ docs/V1KubeVirtConfiguration.md | 1 + docs/V1KubeVirtStatus.md | 1 + docs/V1VirtualMachineInstanceSpec.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 + kubevirt/__init__.py | 2 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 + kubevirt/models/v1_arch_configuration.py | 201 ++++++++++++++++++ .../models/v1_arch_specific_configuration.py | 175 +++++++++++++++ kubevirt/models/v1_kube_virt_configuration.py | 28 ++- kubevirt/models/v1_kube_virt_status.py | 28 ++- .../v1_virtual_machine_instance_spec.py | 30 ++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_arch_configuration.py | 44 ++++ test/test_v1_arch_specific_configuration.py | 44 ++++ 21 files changed, 593 insertions(+), 9 deletions(-) create mode 100644 docs/V1ArchConfiguration.md create mode 100644 docs/V1ArchSpecificConfiguration.md create mode 100644 kubevirt/models/v1_arch_configuration.py create mode 100644 kubevirt/models/v1_arch_specific_configuration.py create mode 100644 test/test_v1_arch_configuration.py create mode 100644 test/test_v1_arch_specific_configuration.py diff --git a/README.md b/README.md index a84212ec..a3169bb8 100644 --- a/README.md +++ b/README.md @@ -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.0.0-alpha.0-29-ga8a1bcb48 +- Package version: v1.0.0-alpha.0-92-ge7016777c - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -389,6 +389,8 @@ Class | Method | HTTP request | Description - [V1AccessCredentialSecretSource](docs/V1AccessCredentialSecretSource.md) - [V1AddInterfaceOptions](docs/V1AddInterfaceOptions.md) - [V1AddVolumeOptions](docs/V1AddVolumeOptions.md) + - [V1ArchConfiguration](docs/V1ArchConfiguration.md) + - [V1ArchSpecificConfiguration](docs/V1ArchSpecificConfiguration.md) - [V1BIOS](docs/V1BIOS.md) - [V1BlockSize](docs/V1BlockSize.md) - [V1Bootloader](docs/V1Bootloader.md) diff --git a/docs/V1ArchConfiguration.md b/docs/V1ArchConfiguration.md new file mode 100644 index 00000000..e7e4aeec --- /dev/null +++ b/docs/V1ArchConfiguration.md @@ -0,0 +1,13 @@ +# V1ArchConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amd64** | [**V1ArchSpecificConfiguration**](V1ArchSpecificConfiguration.md) | | [optional] +**arm64** | [**V1ArchSpecificConfiguration**](V1ArchSpecificConfiguration.md) | | [optional] +**default_architecture** | **str** | | [optional] +**ppc64le** | [**V1ArchSpecificConfiguration**](V1ArchSpecificConfiguration.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ArchSpecificConfiguration.md b/docs/V1ArchSpecificConfiguration.md new file mode 100644 index 00000000..99b13b4e --- /dev/null +++ b/docs/V1ArchSpecificConfiguration.md @@ -0,0 +1,12 @@ +# V1ArchSpecificConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**emulated_machines** | **list[str]** | | [optional] +**machine_type** | **str** | | [optional] +**ovmf_path** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index 5f9cdb4f..af8176b3 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **additional_guest_memory_overhead_ratio** | **str** | AdditionalGuestMemoryOverheadRatio can be used to increase the virtualization infrastructure overhead. This is useful, since the calculation of this overhead is not accurate and cannot be entirely known in advance. The ratio that is being set determines by which factor to increase the overhead calculated by Kubevirt. A higher ratio means that the VMs would be less compromised by node pressures, but would mean that fewer VMs could be scheduled to a node. If not set, the default is 1. | [optional] **api_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] +**architecture_configuration** | [**V1ArchConfiguration**](V1ArchConfiguration.md) | | [optional] **controller_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] **cpu_model** | **str** | | [optional] **cpu_request** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | | [optional] diff --git a/docs/V1KubeVirtStatus.md b/docs/V1KubeVirtStatus.md index 0dbdb370..bcb6d863 100644 --- a/docs/V1KubeVirtStatus.md +++ b/docs/V1KubeVirtStatus.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **conditions** | [**list[V1KubeVirtCondition]**](V1KubeVirtCondition.md) | | [optional] +**default_architecture** | **str** | | [optional] **generations** | [**list[V1GenerationStatus]**](V1GenerationStatus.md) | | [optional] **observed_deployment_config** | **str** | | [optional] **observed_deployment_id** | **str** | | [optional] diff --git a/docs/V1VirtualMachineInstanceSpec.md b/docs/V1VirtualMachineInstanceSpec.md index 215164cf..bf6e7164 100644 --- a/docs/V1VirtualMachineInstanceSpec.md +++ b/docs/V1VirtualMachineInstanceSpec.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **access_credentials** | [**list[V1AccessCredential]**](V1AccessCredential.md) | Specifies a set of public keys to inject into the vm guest | [optional] **affinity** | [**K8sIoApiCoreV1Affinity**](K8sIoApiCoreV1Affinity.md) | If affinity is specifies, obey all the affinity rules | [optional] +**architecture** | **str** | Specifies the architecture of the vm guest you are attempting to run. Defaults to the compiled architecture of the KubeVirt components | [optional] **dns_config** | [**K8sIoApiCoreV1PodDNSConfig**](K8sIoApiCoreV1PodDNSConfig.md) | Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. | [optional] **dns_policy** | **str** | Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. | [optional] **domain** | [**V1DomainSpec**](V1DomainSpec.md) | Specification of the desired behavior of the VirtualMachineInstance on the host. | diff --git a/git_push.sh b/git_push.sh index 439eb85b..0f382df8 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-alpha.0-29-ga8a1bcb48" + release_note="Auto-generated client v1.0.0-alpha.0-92-ge7016777c" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 68ecac17..9858cac3 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -189,6 +189,12 @@ 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_add_volume_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_add_volume_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1AddVolumeOptions.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_arch_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_arch_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ArchConfiguration.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_arch_specific_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_arch_specific_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ArchSpecificConfiguration.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_bios.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_bios.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1BIOS.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 3b918edb..1360f5fa 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -70,6 +70,8 @@ from .models.v1_access_credential_secret_source import V1AccessCredentialSecretSource from .models.v1_add_interface_options import V1AddInterfaceOptions from .models.v1_add_volume_options import V1AddVolumeOptions +from .models.v1_arch_configuration import V1ArchConfiguration +from .models.v1_arch_specific_configuration import V1ArchSpecificConfiguration from .models.v1_bios import V1BIOS from .models.v1_block_size import V1BlockSize from .models.v1_bootloader import V1Bootloader diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 853f300b..c00a21c0 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-alpha.0-29-ga8a1bcb48/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-alpha.0-92-ge7016777c/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 77d85178..43aff950 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-alpha.0-29-ga8a1bcb48".\ + "SDK Package Version: v1.0.0-alpha.0-92-ge7016777c".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 12033002..2270c5e5 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -70,6 +70,8 @@ from .v1_access_credential_secret_source import V1AccessCredentialSecretSource from .v1_add_interface_options import V1AddInterfaceOptions from .v1_add_volume_options import V1AddVolumeOptions +from .v1_arch_configuration import V1ArchConfiguration +from .v1_arch_specific_configuration import V1ArchSpecificConfiguration from .v1_bios import V1BIOS from .v1_block_size import V1BlockSize from .v1_bootloader import V1Bootloader diff --git a/kubevirt/models/v1_arch_configuration.py b/kubevirt/models/v1_arch_configuration.py new file mode 100644 index 00000000..8e2cee9b --- /dev/null +++ b/kubevirt/models/v1_arch_configuration.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ArchConfiguration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'amd64': 'V1ArchSpecificConfiguration', + 'arm64': 'V1ArchSpecificConfiguration', + 'default_architecture': 'str', + 'ppc64le': 'V1ArchSpecificConfiguration' + } + + attribute_map = { + 'amd64': 'amd64', + 'arm64': 'arm64', + 'default_architecture': 'defaultArchitecture', + 'ppc64le': 'ppc64le' + } + + def __init__(self, amd64=None, arm64=None, default_architecture=None, ppc64le=None): + """ + V1ArchConfiguration - a model defined in Swagger + """ + + self._amd64 = None + self._arm64 = None + self._default_architecture = None + self._ppc64le = None + + if amd64 is not None: + self.amd64 = amd64 + if arm64 is not None: + self.arm64 = arm64 + if default_architecture is not None: + self.default_architecture = default_architecture + if ppc64le is not None: + self.ppc64le = ppc64le + + @property + def amd64(self): + """ + Gets the amd64 of this V1ArchConfiguration. + + :return: The amd64 of this V1ArchConfiguration. + :rtype: V1ArchSpecificConfiguration + """ + return self._amd64 + + @amd64.setter + def amd64(self, amd64): + """ + Sets the amd64 of this V1ArchConfiguration. + + :param amd64: The amd64 of this V1ArchConfiguration. + :type: V1ArchSpecificConfiguration + """ + + self._amd64 = amd64 + + @property + def arm64(self): + """ + Gets the arm64 of this V1ArchConfiguration. + + :return: The arm64 of this V1ArchConfiguration. + :rtype: V1ArchSpecificConfiguration + """ + return self._arm64 + + @arm64.setter + def arm64(self, arm64): + """ + Sets the arm64 of this V1ArchConfiguration. + + :param arm64: The arm64 of this V1ArchConfiguration. + :type: V1ArchSpecificConfiguration + """ + + self._arm64 = arm64 + + @property + def default_architecture(self): + """ + Gets the default_architecture of this V1ArchConfiguration. + + :return: The default_architecture of this V1ArchConfiguration. + :rtype: str + """ + return self._default_architecture + + @default_architecture.setter + def default_architecture(self, default_architecture): + """ + Sets the default_architecture of this V1ArchConfiguration. + + :param default_architecture: The default_architecture of this V1ArchConfiguration. + :type: str + """ + + self._default_architecture = default_architecture + + @property + def ppc64le(self): + """ + Gets the ppc64le of this V1ArchConfiguration. + + :return: The ppc64le of this V1ArchConfiguration. + :rtype: V1ArchSpecificConfiguration + """ + return self._ppc64le + + @ppc64le.setter + def ppc64le(self, ppc64le): + """ + Sets the ppc64le of this V1ArchConfiguration. + + :param ppc64le: The ppc64le of this V1ArchConfiguration. + :type: V1ArchSpecificConfiguration + """ + + self._ppc64le = ppc64le + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1ArchConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_arch_specific_configuration.py b/kubevirt/models/v1_arch_specific_configuration.py new file mode 100644 index 00000000..bdd8cc97 --- /dev/null +++ b/kubevirt/models/v1_arch_specific_configuration.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ArchSpecificConfiguration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'emulated_machines': 'list[str]', + 'machine_type': 'str', + 'ovmf_path': 'str' + } + + attribute_map = { + 'emulated_machines': 'emulatedMachines', + 'machine_type': 'machineType', + 'ovmf_path': 'ovmfPath' + } + + def __init__(self, emulated_machines=None, machine_type=None, ovmf_path=None): + """ + V1ArchSpecificConfiguration - a model defined in Swagger + """ + + self._emulated_machines = None + self._machine_type = None + self._ovmf_path = None + + if emulated_machines is not None: + self.emulated_machines = emulated_machines + if machine_type is not None: + self.machine_type = machine_type + if ovmf_path is not None: + self.ovmf_path = ovmf_path + + @property + def emulated_machines(self): + """ + Gets the emulated_machines of this V1ArchSpecificConfiguration. + + :return: The emulated_machines of this V1ArchSpecificConfiguration. + :rtype: list[str] + """ + return self._emulated_machines + + @emulated_machines.setter + def emulated_machines(self, emulated_machines): + """ + Sets the emulated_machines of this V1ArchSpecificConfiguration. + + :param emulated_machines: The emulated_machines of this V1ArchSpecificConfiguration. + :type: list[str] + """ + + self._emulated_machines = emulated_machines + + @property + def machine_type(self): + """ + Gets the machine_type of this V1ArchSpecificConfiguration. + + :return: The machine_type of this V1ArchSpecificConfiguration. + :rtype: str + """ + return self._machine_type + + @machine_type.setter + def machine_type(self, machine_type): + """ + Sets the machine_type of this V1ArchSpecificConfiguration. + + :param machine_type: The machine_type of this V1ArchSpecificConfiguration. + :type: str + """ + + self._machine_type = machine_type + + @property + def ovmf_path(self): + """ + Gets the ovmf_path of this V1ArchSpecificConfiguration. + + :return: The ovmf_path of this V1ArchSpecificConfiguration. + :rtype: str + """ + return self._ovmf_path + + @ovmf_path.setter + def ovmf_path(self, ovmf_path): + """ + Sets the ovmf_path of this V1ArchSpecificConfiguration. + + :param ovmf_path: The ovmf_path of this V1ArchSpecificConfiguration. + :type: str + """ + + self._ovmf_path = ovmf_path + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1ArchSpecificConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index 165d59d1..6ef031df 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -33,6 +33,7 @@ class V1KubeVirtConfiguration(object): swagger_types = { 'additional_guest_memory_overhead_ratio': 'str', 'api_configuration': 'V1ReloadableComponentConfiguration', + 'architecture_configuration': 'V1ArchConfiguration', 'controller_configuration': 'V1ReloadableComponentConfiguration', 'cpu_model': 'str', 'cpu_request': 'K8sIoApimachineryPkgApiResourceQuantity', @@ -65,6 +66,7 @@ class V1KubeVirtConfiguration(object): attribute_map = { 'additional_guest_memory_overhead_ratio': 'additionalGuestMemoryOverheadRatio', 'api_configuration': 'apiConfiguration', + 'architecture_configuration': 'architectureConfiguration', 'controller_configuration': 'controllerConfiguration', 'cpu_model': 'cpuModel', 'cpu_request': 'cpuRequest', @@ -94,13 +96,14 @@ class V1KubeVirtConfiguration(object): 'webhook_configuration': 'webhookConfiguration' } - def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, vm_state_storage_class=None, webhook_configuration=None): + def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, vm_state_storage_class=None, webhook_configuration=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ self._additional_guest_memory_overhead_ratio = None self._api_configuration = None + self._architecture_configuration = None self._controller_configuration = None self._cpu_model = None self._cpu_request = None @@ -133,6 +136,8 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self.additional_guest_memory_overhead_ratio = additional_guest_memory_overhead_ratio if api_configuration is not None: self.api_configuration = api_configuration + if architecture_configuration is not None: + self.architecture_configuration = architecture_configuration if controller_configuration is not None: self.controller_configuration = controller_configuration if cpu_model is not None: @@ -232,6 +237,27 @@ def api_configuration(self, api_configuration): self._api_configuration = api_configuration + @property + def architecture_configuration(self): + """ + Gets the architecture_configuration of this V1KubeVirtConfiguration. + + :return: The architecture_configuration of this V1KubeVirtConfiguration. + :rtype: V1ArchConfiguration + """ + return self._architecture_configuration + + @architecture_configuration.setter + def architecture_configuration(self, architecture_configuration): + """ + Sets the architecture_configuration of this V1KubeVirtConfiguration. + + :param architecture_configuration: The architecture_configuration of this V1KubeVirtConfiguration. + :type: V1ArchConfiguration + """ + + self._architecture_configuration = architecture_configuration + @property def controller_configuration(self): """ diff --git a/kubevirt/models/v1_kube_virt_status.py b/kubevirt/models/v1_kube_virt_status.py index b26e9ea9..80916ba1 100644 --- a/kubevirt/models/v1_kube_virt_status.py +++ b/kubevirt/models/v1_kube_virt_status.py @@ -32,6 +32,7 @@ class V1KubeVirtStatus(object): """ swagger_types = { 'conditions': 'list[V1KubeVirtCondition]', + 'default_architecture': 'str', 'generations': 'list[V1GenerationStatus]', 'observed_deployment_config': 'str', 'observed_deployment_id': 'str', @@ -49,6 +50,7 @@ class V1KubeVirtStatus(object): attribute_map = { 'conditions': 'conditions', + 'default_architecture': 'defaultArchitecture', 'generations': 'generations', 'observed_deployment_config': 'observedDeploymentConfig', 'observed_deployment_id': 'observedDeploymentID', @@ -64,12 +66,13 @@ class V1KubeVirtStatus(object): 'target_kube_virt_version': 'targetKubeVirtVersion' } - def __init__(self, conditions=None, generations=None, observed_deployment_config=None, observed_deployment_id=None, observed_generation=None, observed_kube_virt_registry=None, observed_kube_virt_version=None, operator_version=None, outdated_virtual_machine_instance_workloads=None, phase=None, target_deployment_config=None, target_deployment_id=None, target_kube_virt_registry=None, target_kube_virt_version=None): + def __init__(self, conditions=None, default_architecture=None, generations=None, observed_deployment_config=None, observed_deployment_id=None, observed_generation=None, observed_kube_virt_registry=None, observed_kube_virt_version=None, operator_version=None, outdated_virtual_machine_instance_workloads=None, phase=None, target_deployment_config=None, target_deployment_id=None, target_kube_virt_registry=None, target_kube_virt_version=None): """ V1KubeVirtStatus - a model defined in Swagger """ self._conditions = None + self._default_architecture = None self._generations = None self._observed_deployment_config = None self._observed_deployment_id = None @@ -86,6 +89,8 @@ def __init__(self, conditions=None, generations=None, observed_deployment_config if conditions is not None: self.conditions = conditions + if default_architecture is not None: + self.default_architecture = default_architecture if generations is not None: self.generations = generations if observed_deployment_config is not None: @@ -134,6 +139,27 @@ def conditions(self, conditions): self._conditions = conditions + @property + def default_architecture(self): + """ + Gets the default_architecture of this V1KubeVirtStatus. + + :return: The default_architecture of this V1KubeVirtStatus. + :rtype: str + """ + return self._default_architecture + + @default_architecture.setter + def default_architecture(self, default_architecture): + """ + Sets the default_architecture of this V1KubeVirtStatus. + + :param default_architecture: The default_architecture of this V1KubeVirtStatus. + :type: str + """ + + self._default_architecture = default_architecture + @property def generations(self): """ diff --git a/kubevirt/models/v1_virtual_machine_instance_spec.py b/kubevirt/models/v1_virtual_machine_instance_spec.py index d3768d9c..bd8d0e08 100644 --- a/kubevirt/models/v1_virtual_machine_instance_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_spec.py @@ -33,6 +33,7 @@ class V1VirtualMachineInstanceSpec(object): swagger_types = { 'access_credentials': 'list[V1AccessCredential]', 'affinity': 'K8sIoApiCoreV1Affinity', + 'architecture': 'str', 'dns_config': 'K8sIoApiCoreV1PodDNSConfig', 'dns_policy': 'str', 'domain': 'V1DomainSpec', @@ -55,6 +56,7 @@ class V1VirtualMachineInstanceSpec(object): attribute_map = { 'access_credentials': 'accessCredentials', 'affinity': 'affinity', + 'architecture': 'architecture', 'dns_config': 'dnsConfig', 'dns_policy': 'dnsPolicy', 'domain': 'domain', @@ -74,13 +76,14 @@ class V1VirtualMachineInstanceSpec(object): 'volumes': 'volumes' } - def __init__(self, access_credentials=None, affinity=None, dns_config=None, dns_policy=None, domain=None, eviction_strategy=None, hostname=None, liveness_probe=None, networks=None, node_selector=None, priority_class_name=None, readiness_probe=None, scheduler_name=None, start_strategy=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, topology_spread_constraints=None, volumes=None): + def __init__(self, access_credentials=None, affinity=None, architecture=None, dns_config=None, dns_policy=None, domain=None, eviction_strategy=None, hostname=None, liveness_probe=None, networks=None, node_selector=None, priority_class_name=None, readiness_probe=None, scheduler_name=None, start_strategy=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, topology_spread_constraints=None, volumes=None): """ V1VirtualMachineInstanceSpec - a model defined in Swagger """ self._access_credentials = None self._affinity = None + self._architecture = None self._dns_config = None self._dns_policy = None self._domain = None @@ -103,6 +106,8 @@ def __init__(self, access_credentials=None, affinity=None, dns_config=None, dns_ self.access_credentials = access_credentials if affinity is not None: self.affinity = affinity + if architecture is not None: + self.architecture = architecture if dns_config is not None: self.dns_config = dns_config if dns_policy is not None: @@ -183,6 +188,29 @@ def affinity(self, affinity): self._affinity = affinity + @property + def architecture(self): + """ + Gets the architecture of this V1VirtualMachineInstanceSpec. + Specifies the architecture of the vm guest you are attempting to run. Defaults to the compiled architecture of the KubeVirt components + + :return: The architecture of this V1VirtualMachineInstanceSpec. + :rtype: str + """ + return self._architecture + + @architecture.setter + def architecture(self, architecture): + """ + Sets the architecture of this V1VirtualMachineInstanceSpec. + Specifies the architecture of the vm guest you are attempting to run. Defaults to the compiled architecture of the KubeVirt components + + :param architecture: The architecture of this V1VirtualMachineInstanceSpec. + :type: str + """ + + self._architecture = architecture + @property def dns_config(self): """ diff --git a/setup.py b/setup.py index 190f65ae..b156e3db 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-alpha.0-29-ga8a1bcb48" +VERSION = "v1.0.0-alpha.0-92-ge7016777c" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 8f9b0703..ed2ff186 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-alpha.0-29-ga8a1bcb48" +"packageVersion": "v1.0.0-alpha.0-92-ge7016777c" } diff --git a/test/test_v1_arch_configuration.py b/test/test_v1_arch_configuration.py new file mode 100644 index 00000000..3631981d --- /dev/null +++ b/test/test_v1_arch_configuration.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_arch_configuration import V1ArchConfiguration + + +class TestV1ArchConfiguration(unittest.TestCase): + """ V1ArchConfiguration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ArchConfiguration(self): + """ + Test V1ArchConfiguration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_arch_configuration.V1ArchConfiguration() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_arch_specific_configuration.py b/test/test_v1_arch_specific_configuration.py new file mode 100644 index 00000000..599813fc --- /dev/null +++ b/test/test_v1_arch_specific_configuration.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_arch_specific_configuration import V1ArchSpecificConfiguration + + +class TestV1ArchSpecificConfiguration(unittest.TestCase): + """ V1ArchSpecificConfiguration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ArchSpecificConfiguration(self): + """ + Test V1ArchSpecificConfiguration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_arch_specific_configuration.V1ArchSpecificConfiguration() + pass + + +if __name__ == '__main__': + unittest.main() From 4cb482bf5f086ea13c07352da29e24d1c375d3c5 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 25 May 2023 16:03:39 +0000 Subject: [PATCH 329/521] Client Python update by KubeVirt Prow build 1661756009514799104 --- README.md | 4 +- docs/K8sIoApiCoreV1DownwardAPIVolumeFile.md | 2 +- docs/K8sIoApiCoreV1HTTPGetAction.md | 2 +- docs/K8sIoApiCoreV1HTTPHeader.md | 4 +- docs/K8sIoApiCoreV1NodeSelectorRequirement.md | 4 +- docs/K8sIoApiCoreV1ObjectFieldSelector.md | 2 +- ...K8sIoApiCoreV1PersistentVolumeClaimSpec.md | 16 +- ...CoreV1PersistentVolumeClaimVolumeSource.md | 4 +- docs/K8sIoApiCoreV1PodAffinityTerm.md | 6 +- docs/K8sIoApiCoreV1PreferredSchedulingTerm.md | 2 +- docs/K8sIoApiCoreV1ResourceClaim.md | 10 + docs/K8sIoApiCoreV1ResourceFieldSelector.md | 2 +- docs/K8sIoApiCoreV1ResourceRequirements.md | 1 + docs/K8sIoApiCoreV1Toleration.md | 4 +- .../K8sIoApiCoreV1TopologySpreadConstraint.md | 10 +- ...K8sIoApiCoreV1TypedLocalObjectReference.md | 4 +- docs/K8sIoApiCoreV1TypedObjectReference.md | 13 ++ docs/K8sIoApiCoreV1WeightedPodAffinityTerm.md | 2 +- .../K8sIoApimachineryPkgApisMetaV1APIGroup.md | 2 +- ...sIoApimachineryPkgApisMetaV1APIResource.md | 8 +- ...pimachineryPkgApisMetaV1APIResourceList.md | 2 +- ...ryPkgApisMetaV1GroupVersionForDiscovery.md | 4 +- ...ryPkgApisMetaV1LabelSelectorRequirement.md | 4 +- .../K8sIoApimachineryPkgApisMetaV1ListMeta.md | 2 +- ...achineryPkgApisMetaV1ManagedFieldsEntry.md | 2 +- ...8sIoApimachineryPkgApisMetaV1ObjectMeta.md | 5 +- ...ApimachineryPkgApisMetaV1OwnerReference.md | 10 +- ...yPkgApisMetaV1ServerAddressByClientCIDR.md | 4 +- ...8sIoApimachineryPkgApisMetaV1WatchEvent.md | 2 +- docs/V1AccessCredentialSecretSource.md | 2 +- docs/V1AddInterfaceOptions.md | 4 +- docs/V1AddVolumeOptions.md | 2 +- docs/V1CPUFeature.md | 2 +- docs/V1ContainerDiskSource.md | 4 +- docs/V1CustomBlockSize.md | 4 +- docs/V1CustomizeComponentsPatch.md | 8 +- docs/V1DHCPPrivateOptions.md | 4 +- docs/V1DataVolumeSource.md | 2 +- docs/V1Disk.md | 2 +- docs/V1Filesystem.md | 2 +- docs/V1GPU.md | 4 +- docs/V1GenerationStatus.md | 8 +- docs/V1GuestAgentCommandInfo.md | 2 +- docs/V1HostDevice.md | 4 +- docs/V1HostDisk.md | 4 +- docs/V1Input.md | 4 +- docs/V1Interface.md | 2 +- docs/V1KernelBootContainer.md | 4 +- docs/V1KubeVirtCondition.md | 4 +- docs/V1KubeVirtConfiguration.md | 2 +- docs/V1KubeVirtSpec.md | 2 +- docs/V1Machine.md | 2 +- docs/V1MediatedHostDevice.md | 4 +- docs/V1MemoryDumpVolumeSource.md | 4 +- docs/V1MultusNetwork.md | 2 +- docs/V1Network.md | 2 +- docs/V1PciHostDevice.md | 4 +- docs/V1PersistentVolumeClaimInfo.md | 2 +- docs/V1PersistentVolumeClaimVolumeSource.md | 4 +- docs/V1Port.md | 2 +- docs/V1RemoveVolumeOptions.md | 2 +- docs/V1SoundDevice.md | 2 +- docs/V1SupportContainerResources.md | 2 +- docs/V1TokenBucketRateLimiter.md | 4 +- docs/V1VirtualMachineCondition.md | 4 +- docs/V1VirtualMachineInstanceCondition.md | 4 +- docs/V1VirtualMachineInstanceFileSystem.md | 10 +- docs/V1VirtualMachineInstanceGuestOSUser.md | 2 +- ...irtualMachineInstanceMigrationCondition.md | 4 +- ...rtualMachineInstanceReplicaSetCondition.md | 4 +- docs/V1VirtualMachineInstanceSpec.md | 2 +- docs/V1VirtualMachineInstanceStatus.md | 4 +- docs/V1VirtualMachineMemoryDumpRequest.md | 4 +- docs/V1VirtualMachineStateChangeRequest.md | 2 +- docs/V1Volume.md | 2 +- docs/V1VolumeSnapshotStatus.md | 4 +- docs/V1VolumeStatus.md | 4 +- docs/V1Watchdog.md | 2 +- docs/V1alpha1Condition.md | 4 +- docs/V1alpha1VirtualMachineExportLink.md | 2 +- docs/V1alpha1VirtualMachineExportManifest.md | 4 +- docs/V1alpha1VirtualMachineExportVolume.md | 2 +- ...1alpha1VirtualMachineExportVolumeFormat.md | 4 +- docs/V1alpha1VirtualMachinePoolCondition.md | 4 +- docs/V1alpha1VirtualMachineRestoreSpec.md | 2 +- docs/V1alpha1VolumeBackup.md | 2 +- docs/V1alpha1VolumeRestore.md | 6 +- docs/V1alpha1VolumeSnapshotStatus.md | 2 +- docs/V1alpha2CPUInstancetype.md | 2 +- docs/V1beta1DataVolumeCheckpoint.md | 4 +- docs/V1beta1DataVolumeSourceHTTP.md | 2 +- docs/V1beta1DataVolumeSourceImageIO.md | 4 +- docs/V1beta1DataVolumeSourcePVC.md | 4 +- docs/V1beta1DataVolumeSourceRef.md | 4 +- docs/V1beta1DataVolumeSourceS3.md | 2 +- docs/V1beta1StorageSpec.md | 2 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 40 ++-- kubevirt/__init__.py | 2 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 + ...io_api_core_v1_downward_api_volume_file.py | 2 +- .../k8s_io_api_core_v1_http_get_action.py | 10 +- .../models/k8s_io_api_core_v1_http_header.py | 2 +- ...o_api_core_v1_node_selector_requirement.py | 12 +- ...8s_io_api_core_v1_object_field_selector.py | 2 +- ...pi_core_v1_persistent_volume_claim_spec.py | 44 ++-- ...1_persistent_volume_claim_volume_source.py | 10 +- .../k8s_io_api_core_v1_pod_affinity_term.py | 10 +- ...o_api_core_v1_preferred_scheduling_term.py | 2 +- .../k8s_io_api_core_v1_resource_claim.py | 126 +++++++++++ ..._io_api_core_v1_resource_field_selector.py | 2 +- ...8s_io_api_core_v1_resource_requirements.py | 30 ++- .../models/k8s_io_api_core_v1_toleration.py | 20 +- ..._api_core_v1_topology_spread_constraint.py | 144 +++++++++++- ...pi_core_v1_typed_local_object_reference.py | 2 +- ...s_io_api_core_v1_typed_object_reference.py | 211 ++++++++++++++++++ ..._api_core_v1_weighted_pod_affinity_term.py | 2 +- ...apimachinery_pkg_apis_meta_v1_api_group.py | 2 +- ...machinery_pkg_apis_meta_v1_api_resource.py | 2 +- ...nery_pkg_apis_meta_v1_api_resource_list.py | 2 +- ...pis_meta_v1_group_version_for_discovery.py | 2 +- ...apis_meta_v1_label_selector_requirement.py | 2 +- ...apimachinery_pkg_apis_meta_v1_list_meta.py | 4 +- ...y_pkg_apis_meta_v1_managed_fields_entry.py | 4 +- ...imachinery_pkg_apis_meta_v1_object_meta.py | 38 +--- ...hinery_pkg_apis_meta_v1_owner_reference.py | 6 +- ...s_meta_v1_server_address_by_client_cidr.py | 2 +- ...imachinery_pkg_apis_meta_v1_watch_event.py | 2 +- .../v1_access_credential_secret_source.py | 2 +- kubevirt/models/v1_add_interface_options.py | 2 +- kubevirt/models/v1_add_volume_options.py | 2 +- kubevirt/models/v1_container_disk_source.py | 12 +- kubevirt/models/v1_cpu_feature.py | 2 +- kubevirt/models/v1_custom_block_size.py | 2 +- .../models/v1_customize_components_patch.py | 2 +- kubevirt/models/v1_data_volume_source.py | 2 +- kubevirt/models/v1_dhcp_private_options.py | 2 +- kubevirt/models/v1_disk.py | 2 +- kubevirt/models/v1_filesystem.py | 2 +- kubevirt/models/v1_generation_status.py | 2 +- kubevirt/models/v1_gpu.py | 2 +- .../models/v1_guest_agent_command_info.py | 2 +- kubevirt/models/v1_host_device.py | 2 +- kubevirt/models/v1_host_disk.py | 2 +- kubevirt/models/v1_input.py | 2 +- kubevirt/models/v1_interface.py | 2 +- kubevirt/models/v1_kernel_boot_container.py | 12 +- kubevirt/models/v1_kube_virt_condition.py | 2 +- kubevirt/models/v1_kube_virt_configuration.py | 8 + kubevirt/models/v1_kube_virt_spec.py | 10 +- kubevirt/models/v1_machine.py | 2 +- kubevirt/models/v1_mediated_host_device.py | 2 +- .../models/v1_memory_dump_volume_source.py | 10 +- kubevirt/models/v1_multus_network.py | 2 +- kubevirt/models/v1_network.py | 2 +- kubevirt/models/v1_pci_host_device.py | 2 +- .../models/v1_persistent_volume_claim_info.py | 10 +- ...1_persistent_volume_claim_volume_source.py | 10 +- kubevirt/models/v1_port.py | 2 +- kubevirt/models/v1_remove_volume_options.py | 2 +- kubevirt/models/v1_sound_device.py | 2 +- .../models/v1_support_container_resources.py | 2 +- .../models/v1_token_bucket_rate_limiter.py | 2 +- .../models/v1_virtual_machine_condition.py | 2 +- .../v1_virtual_machine_instance_condition.py | 2 +- ...v1_virtual_machine_instance_file_system.py | 2 +- ..._virtual_machine_instance_guest_os_user.py | 2 +- ...al_machine_instance_migration_condition.py | 2 +- ..._machine_instance_replica_set_condition.py | 2 +- .../v1_virtual_machine_instance_spec.py | 10 +- .../v1_virtual_machine_instance_status.py | 12 +- .../v1_virtual_machine_memory_dump_request.py | 2 +- ...v1_virtual_machine_state_change_request.py | 2 +- kubevirt/models/v1_volume.py | 2 +- kubevirt/models/v1_volume_snapshot_status.py | 2 +- kubevirt/models/v1_volume_status.py | 2 +- kubevirt/models/v1_watchdog.py | 2 +- kubevirt/models/v1alpha1_condition.py | 2 +- .../v1alpha1_virtual_machine_export_link.py | 2 +- ...1alpha1_virtual_machine_export_manifest.py | 2 +- .../v1alpha1_virtual_machine_export_volume.py | 2 +- ...a1_virtual_machine_export_volume_format.py | 2 +- ...v1alpha1_virtual_machine_pool_condition.py | 2 +- .../v1alpha1_virtual_machine_restore_spec.py | 2 +- kubevirt/models/v1alpha1_volume_backup.py | 2 +- kubevirt/models/v1alpha1_volume_restore.py | 2 +- .../models/v1alpha1_volume_snapshot_status.py | 2 +- kubevirt/models/v1alpha2_cpu_instancetype.py | 2 +- .../models/v1beta1_data_volume_checkpoint.py | 2 +- .../models/v1beta1_data_volume_source_http.py | 2 +- .../v1beta1_data_volume_source_image_io.py | 2 +- .../models/v1beta1_data_volume_source_pvc.py | 2 +- .../models/v1beta1_data_volume_source_ref.py | 2 +- .../models/v1beta1_data_volume_source_s3.py | 2 +- kubevirt/models/v1beta1_storage_spec.py | 10 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- .../test_k8s_io_api_core_v1_resource_claim.py | 44 ++++ ...s_io_api_core_v1_typed_object_reference.py | 44 ++++ 201 files changed, 1044 insertions(+), 370 deletions(-) create mode 100644 docs/K8sIoApiCoreV1ResourceClaim.md create mode 100644 docs/K8sIoApiCoreV1TypedObjectReference.md create mode 100644 kubevirt/models/k8s_io_api_core_v1_resource_claim.py create mode 100644 kubevirt/models/k8s_io_api_core_v1_typed_object_reference.py create mode 100644 test/test_k8s_io_api_core_v1_resource_claim.py create mode 100644 test/test_k8s_io_api_core_v1_typed_object_reference.py diff --git a/README.md b/README.md index a3169bb8..28e23ba3 100644 --- a/README.md +++ b/README.md @@ -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.0.0-alpha.0-92-ge7016777c +- Package version: v1.0.0-beta.0-65-g33dbfa922 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -352,12 +352,14 @@ Class | Method | HTTP request | Description - [K8sIoApiCoreV1PodDNSConfig](docs/K8sIoApiCoreV1PodDNSConfig.md) - [K8sIoApiCoreV1PodDNSConfigOption](docs/K8sIoApiCoreV1PodDNSConfigOption.md) - [K8sIoApiCoreV1PreferredSchedulingTerm](docs/K8sIoApiCoreV1PreferredSchedulingTerm.md) + - [K8sIoApiCoreV1ResourceClaim](docs/K8sIoApiCoreV1ResourceClaim.md) - [K8sIoApiCoreV1ResourceFieldSelector](docs/K8sIoApiCoreV1ResourceFieldSelector.md) - [K8sIoApiCoreV1ResourceRequirements](docs/K8sIoApiCoreV1ResourceRequirements.md) - [K8sIoApiCoreV1TCPSocketAction](docs/K8sIoApiCoreV1TCPSocketAction.md) - [K8sIoApiCoreV1Toleration](docs/K8sIoApiCoreV1Toleration.md) - [K8sIoApiCoreV1TopologySpreadConstraint](docs/K8sIoApiCoreV1TopologySpreadConstraint.md) - [K8sIoApiCoreV1TypedLocalObjectReference](docs/K8sIoApiCoreV1TypedLocalObjectReference.md) + - [K8sIoApiCoreV1TypedObjectReference](docs/K8sIoApiCoreV1TypedObjectReference.md) - [K8sIoApiCoreV1WeightedPodAffinityTerm](docs/K8sIoApiCoreV1WeightedPodAffinityTerm.md) - [K8sIoApimachineryPkgApiResourceQuantity](docs/K8sIoApimachineryPkgApiResourceQuantity.md) - [K8sIoApimachineryPkgApisMetaV1APIGroup](docs/K8sIoApimachineryPkgApisMetaV1APIGroup.md) diff --git a/docs/K8sIoApiCoreV1DownwardAPIVolumeFile.md b/docs/K8sIoApiCoreV1DownwardAPIVolumeFile.md index 0eb2a648..b11dd162 100644 --- a/docs/K8sIoApiCoreV1DownwardAPIVolumeFile.md +++ b/docs/K8sIoApiCoreV1DownwardAPIVolumeFile.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **field_ref** | [**K8sIoApiCoreV1ObjectFieldSelector**](K8sIoApiCoreV1ObjectFieldSelector.md) | Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. | [optional] **mode** | **int** | Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] -**path** | **str** | Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' | +**path** | **str** | Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' | [default to ''] **resource_field_ref** | [**K8sIoApiCoreV1ResourceFieldSelector**](K8sIoApiCoreV1ResourceFieldSelector.md) | Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApiCoreV1HTTPGetAction.md b/docs/K8sIoApiCoreV1HTTPGetAction.md index 82896980..45b9ff0c 100644 --- a/docs/K8sIoApiCoreV1HTTPGetAction.md +++ b/docs/K8sIoApiCoreV1HTTPGetAction.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **host** | **str** | Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. | [optional] **http_headers** | [**list[K8sIoApiCoreV1HTTPHeader]**](K8sIoApiCoreV1HTTPHeader.md) | Custom headers to set in the request. HTTP allows repeated headers. | [optional] **path** | **str** | Path to access on the HTTP server. | [optional] -**scheme** | **str** | Scheme to use for connecting to the host. Defaults to HTTP. | [optional] +**scheme** | **str** | Scheme to use for connecting to the host. Defaults to HTTP. Possible enum values: - `\"HTTP\"` means that the scheme used will be http:// - `\"HTTPS\"` means that the scheme used will be https:// | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApiCoreV1HTTPHeader.md b/docs/K8sIoApiCoreV1HTTPHeader.md index 62f040b5..069171dc 100644 --- a/docs/K8sIoApiCoreV1HTTPHeader.md +++ b/docs/K8sIoApiCoreV1HTTPHeader.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | The header field name | -**value** | **str** | The header field value | +**name** | **str** | The header field name | [default to ''] +**value** | **str** | The header field value | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApiCoreV1NodeSelectorRequirement.md b/docs/K8sIoApiCoreV1NodeSelectorRequirement.md index 48be731c..3cd1a78b 100644 --- a/docs/K8sIoApiCoreV1NodeSelectorRequirement.md +++ b/docs/K8sIoApiCoreV1NodeSelectorRequirement.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**key** | **str** | The label key that the selector applies to. | -**operator** | **str** | Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. | +**key** | **str** | The label key that the selector applies to. | [default to ''] +**operator** | **str** | Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. Possible enum values: - `\"DoesNotExist\"` - `\"Exists\"` - `\"Gt\"` - `\"In\"` - `\"Lt\"` - `\"NotIn\"` | [default to ''] **values** | **list[str]** | An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApiCoreV1ObjectFieldSelector.md b/docs/K8sIoApiCoreV1ObjectFieldSelector.md index 7b6be5b5..86abc281 100644 --- a/docs/K8sIoApiCoreV1ObjectFieldSelector.md +++ b/docs/K8sIoApiCoreV1ObjectFieldSelector.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | Version of the schema the FieldPath is written in terms of, defaults to \"v1\". | [optional] -**field_path** | **str** | Path of the field to select in the specified API version. | +**field_path** | **str** | Path of the field to select in the specified API version. | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md b/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md index 07193b58..ff6c55dc 100644 --- a/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md +++ b/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md @@ -3,14 +3,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**access_modes** | **list[str]** | AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] -**data_source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. | [optional] -**data_source_ref** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled. | [optional] -**resources** | [**K8sIoApiCoreV1ResourceRequirements**](K8sIoApiCoreV1ResourceRequirements.md) | Resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources | [optional] -**selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | A label query over volumes to consider for binding. | [optional] -**storage_class_name** | **str** | Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] -**volume_mode** | **str** | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. | [optional] -**volume_name** | **str** | VolumeName is the binding reference to the PersistentVolume backing this claim. | [optional] +**access_modes** | **list[str]** | accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] +**data_source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource. | [optional] +**data_source_ref** | [**K8sIoApiCoreV1TypedObjectReference**](K8sIoApiCoreV1TypedObjectReference.md) | dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While dataSource ignores disallowed values (dropping them), dataSourceRef preserves all values, and generates an error if a disallowed value is specified. * While dataSource only allows local objects, dataSourceRef allows objects in any namespaces. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled. | [optional] +**resources** | [**K8sIoApiCoreV1ResourceRequirements**](K8sIoApiCoreV1ResourceRequirements.md) | resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources | [optional] +**selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | selector is a label query over volumes to consider for binding. | [optional] +**storage_class_name** | **str** | storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] +**volume_mode** | **str** | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. | [optional] +**volume_name** | **str** | volumeName is the binding reference to the PersistentVolume backing this claim. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApiCoreV1PersistentVolumeClaimVolumeSource.md b/docs/K8sIoApiCoreV1PersistentVolumeClaimVolumeSource.md index 482edd34..22e1ce95 100644 --- a/docs/K8sIoApiCoreV1PersistentVolumeClaimVolumeSource.md +++ b/docs/K8sIoApiCoreV1PersistentVolumeClaimVolumeSource.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**claim_name** | **str** | ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | -**read_only** | **bool** | Will force the ReadOnly setting in VolumeMounts. Default false. | [optional] +**claim_name** | **str** | claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [default to ''] +**read_only** | **bool** | readOnly Will force the ReadOnly setting in VolumeMounts. Default false. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApiCoreV1PodAffinityTerm.md b/docs/K8sIoApiCoreV1PodAffinityTerm.md index 3c0b046d..a26e6100 100644 --- a/docs/K8sIoApiCoreV1PodAffinityTerm.md +++ b/docs/K8sIoApiCoreV1PodAffinityTerm.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **label_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | A label query over a set of resources, in this case pods. | [optional] -**namespace_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled. | [optional] -**namespaces** | **list[str]** | namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\" | [optional] -**topology_key** | **str** | This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. | +**namespace_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces. | [optional] +**namespaces** | **list[str]** | namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\". | [optional] +**topology_key** | **str** | This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApiCoreV1PreferredSchedulingTerm.md b/docs/K8sIoApiCoreV1PreferredSchedulingTerm.md index 3a3a8ddb..3142680a 100644 --- a/docs/K8sIoApiCoreV1PreferredSchedulingTerm.md +++ b/docs/K8sIoApiCoreV1PreferredSchedulingTerm.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **preference** | [**K8sIoApiCoreV1NodeSelectorTerm**](K8sIoApiCoreV1NodeSelectorTerm.md) | A node selector term, associated with the corresponding weight. | -**weight** | **int** | Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. | +**weight** | **int** | Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. | [default to 0] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApiCoreV1ResourceClaim.md b/docs/K8sIoApiCoreV1ResourceClaim.md new file mode 100644 index 00000000..56b78fa0 --- /dev/null +++ b/docs/K8sIoApiCoreV1ResourceClaim.md @@ -0,0 +1,10 @@ +# K8sIoApiCoreV1ResourceClaim + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container. | [default to ''] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/K8sIoApiCoreV1ResourceFieldSelector.md b/docs/K8sIoApiCoreV1ResourceFieldSelector.md index 3c6c84cf..b2d35925 100644 --- a/docs/K8sIoApiCoreV1ResourceFieldSelector.md +++ b/docs/K8sIoApiCoreV1ResourceFieldSelector.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **container_name** | **str** | Container name: required for volumes, optional for env vars | [optional] **divisor** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | Specifies the output format of the exposed resources, defaults to \"1\" | [optional] -**resource** | **str** | Required: resource to select | +**resource** | **str** | Required: resource to select | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApiCoreV1ResourceRequirements.md b/docs/K8sIoApiCoreV1ResourceRequirements.md index ca74fff2..59576308 100644 --- a/docs/K8sIoApiCoreV1ResourceRequirements.md +++ b/docs/K8sIoApiCoreV1ResourceRequirements.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**claims** | [**list[K8sIoApiCoreV1ResourceClaim]**](K8sIoApiCoreV1ResourceClaim.md) | Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. | [optional] **limits** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] **requests** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] diff --git a/docs/K8sIoApiCoreV1Toleration.md b/docs/K8sIoApiCoreV1Toleration.md index fdea1817..69dce2b0 100644 --- a/docs/K8sIoApiCoreV1Toleration.md +++ b/docs/K8sIoApiCoreV1Toleration.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**effect** | **str** | Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. | [optional] +**effect** | **str** | Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. Possible enum values: - `\"NoExecute\"` Evict any already-running pods that do not tolerate the taint. Currently enforced by NodeController. - `\"NoSchedule\"` Do not allow new pods to schedule onto the node unless they tolerate the taint, but allow all pods submitted to Kubelet without going through the scheduler to start, and allow all already-running pods to continue running. Enforced by the scheduler. - `\"PreferNoSchedule\"` Like TaintEffectNoSchedule, but the scheduler tries not to schedule new pods onto the node, rather than prohibiting new pods from scheduling onto the node entirely. Enforced by the scheduler. | [optional] **key** | **str** | Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. | [optional] -**operator** | **str** | Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. | [optional] +**operator** | **str** | Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. Possible enum values: - `\"Equal\"` - `\"Exists\"` | [optional] **toleration_seconds** | **int** | TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. | [optional] **value** | **str** | Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. | [optional] diff --git a/docs/K8sIoApiCoreV1TopologySpreadConstraint.md b/docs/K8sIoApiCoreV1TopologySpreadConstraint.md index 52655b46..8b366c34 100644 --- a/docs/K8sIoApiCoreV1TopologySpreadConstraint.md +++ b/docs/K8sIoApiCoreV1TopologySpreadConstraint.md @@ -4,9 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **label_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. | [optional] -**max_skew** | **int** | MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. | -**topology_key** | **str** | TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each <key, value> as a \"bucket\", and try to put balanced number of pods into each bucket. It's a required field. | -**when_unsatisfiable** | **str** | WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, but giving higher precedence to topologies that would help reduce the skew. A constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. | +**match_label_keys** | **list[str]** | MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. | [optional] +**max_skew** | **int** | MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. | [default to 0] +**min_domains** | **int** | MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). | [optional] +**node_affinity_policy** | **str** | NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. | [optional] +**node_taints_policy** | **str** | NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. | [optional] +**topology_key** | **str** | TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each <key, value> as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field. | [default to ''] +**when_unsatisfiable** | **str** | WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, but giving higher precedence to topologies that would help reduce the skew. A constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. Possible enum values: - `\"DoNotSchedule\"` instructs the scheduler not to schedule the pod when constraints are not satisfied. - `\"ScheduleAnyway\"` instructs the scheduler to schedule the pod even if constraints are not satisfied. | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApiCoreV1TypedLocalObjectReference.md b/docs/K8sIoApiCoreV1TypedLocalObjectReference.md index 71871e4b..8027409e 100644 --- a/docs/K8sIoApiCoreV1TypedLocalObjectReference.md +++ b/docs/K8sIoApiCoreV1TypedLocalObjectReference.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_group** | **str** | APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. | [optional] -**kind** | **str** | Kind is the type of resource being referenced | -**name** | **str** | Name is the name of resource being referenced | +**kind** | **str** | Kind is the type of resource being referenced | [default to ''] +**name** | **str** | Name is the name of resource being referenced | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApiCoreV1TypedObjectReference.md b/docs/K8sIoApiCoreV1TypedObjectReference.md new file mode 100644 index 00000000..c8de78a0 --- /dev/null +++ b/docs/K8sIoApiCoreV1TypedObjectReference.md @@ -0,0 +1,13 @@ +# K8sIoApiCoreV1TypedObjectReference + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_group** | **str** | APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. | [optional] +**kind** | **str** | Kind is the type of resource being referenced | [default to ''] +**name** | **str** | Name is the name of resource being referenced | [default to ''] +**namespace** | **str** | Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/K8sIoApiCoreV1WeightedPodAffinityTerm.md b/docs/K8sIoApiCoreV1WeightedPodAffinityTerm.md index 795afcfc..a0258056 100644 --- a/docs/K8sIoApiCoreV1WeightedPodAffinityTerm.md +++ b/docs/K8sIoApiCoreV1WeightedPodAffinityTerm.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **pod_affinity_term** | [**K8sIoApiCoreV1PodAffinityTerm**](K8sIoApiCoreV1PodAffinityTerm.md) | Required. A pod affinity term, associated with the corresponding weight. | -**weight** | **int** | weight associated with matching the corresponding podAffinityTerm, in the range 1-100. | +**weight** | **int** | weight associated with matching the corresponding podAffinityTerm, in the range 1-100. | [default to 0] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApimachineryPkgApisMetaV1APIGroup.md b/docs/K8sIoApimachineryPkgApisMetaV1APIGroup.md index db08358b..182f2960 100644 --- a/docs/K8sIoApimachineryPkgApisMetaV1APIGroup.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1APIGroup.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**name** | **str** | name is the name of the group. | +**name** | **str** | name is the name of the group. | [default to ''] **preferred_version** | [**K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery**](K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery.md) | preferredVersion is the version preferred by the API server, which probably is the storage version. | [optional] **server_address_by_client_cid_rs** | [**list[K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR]**](K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR.md) | a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. | [optional] **versions** | [**list[K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery]**](K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery.md) | versions are the versions supported in this group. | diff --git a/docs/K8sIoApimachineryPkgApisMetaV1APIResource.md b/docs/K8sIoApimachineryPkgApisMetaV1APIResource.md index 41d63378..65fb7982 100644 --- a/docs/K8sIoApimachineryPkgApisMetaV1APIResource.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1APIResource.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **categories** | **list[str]** | categories is a list of the grouped resources this resource belongs to (e.g. 'all') | [optional] **group** | **str** | group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\". | [optional] -**kind** | **str** | kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') | -**name** | **str** | name is the plural name of the resource. | -**namespaced** | **bool** | namespaced indicates if a resource is namespaced or not. | +**kind** | **str** | kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') | [default to ''] +**name** | **str** | name is the plural name of the resource. | [default to ''] +**namespaced** | **bool** | namespaced indicates if a resource is namespaced or not. | [default to False] **short_names** | **list[str]** | shortNames is a list of suggested short names of the resource. | [optional] -**singular_name** | **str** | singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface. | +**singular_name** | **str** | singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface. | [default to ''] **storage_version_hash** | **str** | The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates. | [optional] **verbs** | **list[str]** | verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) | **version** | **str** | version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\". | [optional] diff --git a/docs/K8sIoApimachineryPkgApisMetaV1APIResourceList.md b/docs/K8sIoApimachineryPkgApisMetaV1APIResourceList.md index 0bdea137..671b2550 100644 --- a/docs/K8sIoApimachineryPkgApisMetaV1APIResourceList.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1APIResourceList.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**group_version** | **str** | groupVersion is the group and version this APIResourceList is for. | +**group_version** | **str** | groupVersion is the group and version this APIResourceList is for. | [default to ''] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **resources** | [**list[K8sIoApimachineryPkgApisMetaV1APIResource]**](K8sIoApimachineryPkgApisMetaV1APIResource.md) | resources contains the name of the resources and if they are namespaced. | diff --git a/docs/K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery.md b/docs/K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery.md index c4a62731..b29aa934 100644 --- a/docs/K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**group_version** | **str** | groupVersion specifies the API group and version in the form \"group/version\" | -**version** | **str** | version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion. | +**group_version** | **str** | groupVersion specifies the API group and version in the form \"group/version\" | [default to ''] +**version** | **str** | version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion. | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement.md b/docs/K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement.md index 588e0a08..edd44176 100644 --- a/docs/K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**key** | **str** | key is the label key that the selector applies to. | -**operator** | **str** | operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. | +**key** | **str** | key is the label key that the selector applies to. | [default to ''] +**operator** | **str** | operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. | [default to ''] **values** | **list[str]** | values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApimachineryPkgApisMetaV1ListMeta.md b/docs/K8sIoApimachineryPkgApisMetaV1ListMeta.md index dab6f971..c2f2505c 100644 --- a/docs/K8sIoApimachineryPkgApisMetaV1ListMeta.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1ListMeta.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **_continue** | **str** | continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. | [optional] **remaining_item_count** | **int** | remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. | [optional] **resource_version** | **str** | String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency | [optional] -**self_link** | **str** | selfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. | [optional] +**self_link** | **str** | Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry.md b/docs/K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry.md index 55284f83..5b99bad3 100644 --- a/docs/K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **manager** | **str** | Manager is an identifier of the workflow managing these fields. | [optional] **operation** | **str** | Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. | [optional] **subresource** | **str** | Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource. | [optional] -**time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' | [optional] +**time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApimachineryPkgApisMetaV1ObjectMeta.md b/docs/K8sIoApimachineryPkgApisMetaV1ObjectMeta.md index 5917154f..eb692a02 100644 --- a/docs/K8sIoApimachineryPkgApisMetaV1ObjectMeta.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1ObjectMeta.md @@ -4,11 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations | [optional] -**cluster_name** | **str** | The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. | [optional] **deletion_grace_period_seconds** | **int** | Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. | [optional] **deletion_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] **finalizers** | **list[str]** | Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. | [optional] -**generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency | [optional] +**generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency | [optional] **generation** | **int** | A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. | [optional] **labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels | [optional] **managed_fields** | [**list[K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry]**](K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry.md) | ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. | [optional] @@ -16,7 +15,7 @@ Name | Type | Description | Notes **namespace** | **str** | Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces | [optional] **owner_references** | [**list[K8sIoApimachineryPkgApisMetaV1OwnerReference]**](K8sIoApimachineryPkgApisMetaV1OwnerReference.md) | List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. | [optional] **resource_version** | **str** | An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency | [optional] -**self_link** | **str** | SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. | [optional] +**self_link** | **str** | Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. | [optional] **uid** | **str** | UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApimachineryPkgApisMetaV1OwnerReference.md b/docs/K8sIoApimachineryPkgApisMetaV1OwnerReference.md index fe8f6f9b..5106c402 100644 --- a/docs/K8sIoApimachineryPkgApisMetaV1OwnerReference.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1OwnerReference.md @@ -3,12 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_version** | **str** | API version of the referent. | -**block_owner_deletion** | **bool** | If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. | [optional] +**api_version** | **str** | API version of the referent. | [default to ''] +**block_owner_deletion** | **bool** | If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. | [optional] **controller** | **bool** | If true, this reference points to the managing controller. | [optional] -**kind** | **str** | Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | -**name** | **str** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | -**uid** | **str** | UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids | +**kind** | **str** | Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [default to ''] +**name** | **str** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [default to ''] +**uid** | **str** | UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR.md b/docs/K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR.md index 242861b4..51ff9caa 100644 --- a/docs/K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**client_cidr** | **str** | The CIDR with which clients can match their IP to figure out the server address that they should use. | -**server_address** | **str** | Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. | +**client_cidr** | **str** | The CIDR with which clients can match their IP to figure out the server address that they should use. | [default to ''] +**server_address** | **str** | Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApimachineryPkgApisMetaV1WatchEvent.md b/docs/K8sIoApimachineryPkgApisMetaV1WatchEvent.md index ee629072..a82c40bb 100644 --- a/docs/K8sIoApimachineryPkgApisMetaV1WatchEvent.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1WatchEvent.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **object** | [**K8sIoApimachineryPkgRuntimeRawExtension**](K8sIoApimachineryPkgRuntimeRawExtension.md) | Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context. | -**type** | **str** | | +**type** | **str** | | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1AccessCredentialSecretSource.md b/docs/V1AccessCredentialSecretSource.md index 1ca4eb35..3d07e2a3 100644 --- a/docs/V1AccessCredentialSecretSource.md +++ b/docs/V1AccessCredentialSecretSource.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**secret_name** | **str** | SecretName represents the name of the secret in the VMI's namespace | +**secret_name** | **str** | SecretName represents the name of the secret in the VMI's namespace | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1AddInterfaceOptions.md b/docs/V1AddInterfaceOptions.md index 86f12f61..a00bd48d 100644 --- a/docs/V1AddInterfaceOptions.md +++ b/docs/V1AddInterfaceOptions.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name indicates the logical name of the interface. | -**network_attachment_definition_name** | **str** | NetworkAttachmentDefinitionName references a NetworkAttachmentDefinition CRD object. Format: <networkAttachmentDefinitionName>, <namespace>/<networkAttachmentDefinitionName>. If namespace is not specified, VMI namespace is assumed. | +**name** | **str** | Name indicates the logical name of the interface. | [default to ''] +**network_attachment_definition_name** | **str** | NetworkAttachmentDefinitionName references a NetworkAttachmentDefinition CRD object. Format: <networkAttachmentDefinitionName>, <namespace>/<networkAttachmentDefinitionName>. If namespace is not specified, VMI namespace is assumed. | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1AddVolumeOptions.md b/docs/V1AddVolumeOptions.md index 14333e6a..23caeedc 100644 --- a/docs/V1AddVolumeOptions.md +++ b/docs/V1AddVolumeOptions.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **disk** | [**V1Disk**](V1Disk.md) | Disk represents the hotplug disk that will be plugged into the running VMI | **dry_run** | **list[str]** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] -**name** | **str** | Name represents the name that will be used to map the disk to the corresponding volume. This overrides any name set inside the Disk struct itself. | +**name** | **str** | Name represents the name that will be used to map the disk to the corresponding volume. This overrides any name set inside the Disk struct itself. | [default to ''] **volume_source** | [**V1HotplugVolumeSource**](V1HotplugVolumeSource.md) | VolumeSource represents the source of the volume to map to the disk. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1CPUFeature.md b/docs/V1CPUFeature.md index aabef402..c74d68d0 100644 --- a/docs/V1CPUFeature.md +++ b/docs/V1CPUFeature.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name of the CPU feature | +**name** | **str** | Name of the CPU feature | [default to ''] **policy** | **str** | Policy is the CPU feature attribute which can have the following attributes: force - The virtual CPU will claim the feature is supported regardless of it being supported by host CPU. require - Guest creation will fail unless the feature is supported by the host CPU or the hypervisor is able to emulate it. optional - The feature will be supported by virtual CPU if and only if it is supported by host CPU. disable - The feature will not be supported by virtual CPU. forbid - Guest creation will fail if the feature is supported by host CPU. Defaults to require | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1ContainerDiskSource.md b/docs/V1ContainerDiskSource.md index 3f825949..a50291ea 100644 --- a/docs/V1ContainerDiskSource.md +++ b/docs/V1ContainerDiskSource.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**image** | **str** | Image is the name of the image with the embedded disk. | -**image_pull_policy** | **str** | Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images | [optional] +**image** | **str** | Image is the name of the image with the embedded disk. | [default to ''] +**image_pull_policy** | **str** | Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present | [optional] **image_pull_secret** | **str** | ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist. | [optional] **path** | **str** | Path defines the path to disk file in the container | [optional] diff --git a/docs/V1CustomBlockSize.md b/docs/V1CustomBlockSize.md index a0e370da..fae3d34f 100644 --- a/docs/V1CustomBlockSize.md +++ b/docs/V1CustomBlockSize.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**logical** | **int** | | -**physical** | **int** | | +**logical** | **int** | | [default to 0] +**physical** | **int** | | [default to 0] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1CustomizeComponentsPatch.md b/docs/V1CustomizeComponentsPatch.md index 50779370..6652a8d3 100644 --- a/docs/V1CustomizeComponentsPatch.md +++ b/docs/V1CustomizeComponentsPatch.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**patch** | **str** | | -**resource_name** | **str** | | -**resource_type** | **str** | | -**type** | **str** | | +**patch** | **str** | | [default to ''] +**resource_name** | **str** | | [default to ''] +**resource_type** | **str** | | [default to ''] +**type** | **str** | | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1DHCPPrivateOptions.md b/docs/V1DHCPPrivateOptions.md index d7c4d655..ed270492 100644 --- a/docs/V1DHCPPrivateOptions.md +++ b/docs/V1DHCPPrivateOptions.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**option** | **int** | Option is an Integer value from 224-254 Required. | -**value** | **str** | Value is a String value for the Option provided Required. | +**option** | **int** | Option is an Integer value from 224-254 Required. | [default to 0] +**value** | **str** | Value is a String value for the Option provided Required. | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1DataVolumeSource.md b/docs/V1DataVolumeSource.md index b2cdea2a..cf12befc 100644 --- a/docs/V1DataVolumeSource.md +++ b/docs/V1DataVolumeSource.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hotpluggable** | **bool** | Hotpluggable indicates whether the volume can be hotplugged and hotunplugged. | [optional] -**name** | **str** | Name of both the DataVolume and the PVC in the same namespace. After PVC population the DataVolume is garbage collected by default. | +**name** | **str** | Name of both the DataVolume and the PVC in the same namespace. After PVC population the DataVolume is garbage collected by default. | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Disk.md b/docs/V1Disk.md index bb20a9cd..641c6263 100644 --- a/docs/V1Disk.md +++ b/docs/V1Disk.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **disk** | [**V1DiskTarget**](V1DiskTarget.md) | Attach a volume as a disk to the vmi. | [optional] **io** | **str** | IO specifies which QEMU disk IO mode should be used. Supported values are: native, default, threads. | [optional] **lun** | [**V1LunTarget**](V1LunTarget.md) | Attach a volume as a LUN to the vmi. | [optional] -**name** | **str** | Name is the device name | +**name** | **str** | Name is the device name | [default to ''] **serial** | **str** | Serial provides the ability to specify a serial number for the disk device. | [optional] **shareable** | **bool** | If specified the disk is made sharable and multiple write from different VMs are permitted | [optional] **tag** | **str** | If specified, disk address and its tag will be provided to the guest via config drive metadata | [optional] diff --git a/docs/V1Filesystem.md b/docs/V1Filesystem.md index 22c26def..104df7db 100644 --- a/docs/V1Filesystem.md +++ b/docs/V1Filesystem.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name is the device name | +**name** | **str** | Name is the device name | [default to ''] **virtiofs** | [**V1FilesystemVirtiofs**](V1FilesystemVirtiofs.md) | Virtiofs is supported | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1GPU.md b/docs/V1GPU.md index e5118d78..41aa5b95 100644 --- a/docs/V1GPU.md +++ b/docs/V1GPU.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**device_name** | **str** | | -**name** | **str** | Name of the GPU device as exposed by a device plugin | +**device_name** | **str** | | [default to ''] +**name** | **str** | Name of the GPU device as exposed by a device plugin | [default to ''] **tag** | **str** | If specified, the virtual network interface address and its tag will be provided to the guest via config drive | [optional] **virtual_gpu_options** | [**V1VGPUOptions**](V1VGPUOptions.md) | | [optional] diff --git a/docs/V1GenerationStatus.md b/docs/V1GenerationStatus.md index 98d38d8e..59e0855e 100644 --- a/docs/V1GenerationStatus.md +++ b/docs/V1GenerationStatus.md @@ -3,12 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**group** | **str** | group is the group of the thing you're tracking | +**group** | **str** | group is the group of the thing you're tracking | [default to ''] **hash** | **str** | hash is an optional field set for resources without generation that are content sensitive like secrets and configmaps | [optional] -**last_generation** | **int** | lastGeneration is the last generation of the workload controller involved | -**name** | **str** | name is the name of the thing you're tracking | +**last_generation** | **int** | lastGeneration is the last generation of the workload controller involved | [default to 0] +**name** | **str** | name is the name of the thing you're tracking | [default to ''] **namespace** | **str** | namespace is where the thing you're tracking is | [optional] -**resource** | **str** | resource is the resource type of the thing you're tracking | +**resource** | **str** | resource is the resource type of the thing you're tracking | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1GuestAgentCommandInfo.md b/docs/V1GuestAgentCommandInfo.md index 5432b5ef..d3fdf91a 100644 --- a/docs/V1GuestAgentCommandInfo.md +++ b/docs/V1GuestAgentCommandInfo.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **enabled** | **bool** | | [optional] -**name** | **str** | | +**name** | **str** | | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1HostDevice.md b/docs/V1HostDevice.md index bb2598c6..c1f75e19 100644 --- a/docs/V1HostDevice.md +++ b/docs/V1HostDevice.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**device_name** | **str** | DeviceName is the resource name of the host device exposed by a device plugin | -**name** | **str** | | +**device_name** | **str** | DeviceName is the resource name of the host device exposed by a device plugin | [default to ''] +**name** | **str** | | [default to ''] **tag** | **str** | If specified, the virtual network interface address and its tag will be provided to the guest via config drive | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1HostDisk.md b/docs/V1HostDisk.md index 9a58077a..92240d41 100644 --- a/docs/V1HostDisk.md +++ b/docs/V1HostDisk.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **capacity** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | Capacity of the sparse disk | [optional] -**path** | **str** | The path to HostDisk image located on the cluster | +**path** | **str** | The path to HostDisk image located on the cluster | [default to ''] **shared** | **bool** | Shared indicate whether the path is shared between nodes | [optional] -**type** | **str** | Contains information if disk.img exists or should be created allowed options are 'Disk' and 'DiskOrCreate' | +**type** | **str** | Contains information if disk.img exists or should be created allowed options are 'Disk' and 'DiskOrCreate' | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Input.md b/docs/V1Input.md index fdb846e4..b1c23b0d 100644 --- a/docs/V1Input.md +++ b/docs/V1Input.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **bus** | **str** | Bus indicates the bus of input device to emulate. Supported values: virtio, usb. | [optional] -**name** | **str** | Name is the device name | -**type** | **str** | Type indicated the type of input device. Supported values: tablet. | +**name** | **str** | Name is the device name | [default to ''] +**type** | **str** | Type indicated the type of input device. Supported values: tablet. | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Interface.md b/docs/V1Interface.md index 2ef41c76..95c63f44 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **macvtap** | [**V1InterfaceMacvtap**](V1InterfaceMacvtap.md) | | [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. | +**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 ''] **passt** | [**V1InterfacePasst**](V1InterfacePasst.md) | | [optional] **pci_address** | **str** | If specified, the virtual network interface will be placed on the guests pci address with the specified PCI address. For example: 0000:81:01.10 | [optional] **ports** | [**list[V1Port]**](V1Port.md) | List of ports to be forwarded to the virtual machine. | [optional] diff --git a/docs/V1KernelBootContainer.md b/docs/V1KernelBootContainer.md index 452a7d68..dbd24ced 100644 --- a/docs/V1KernelBootContainer.md +++ b/docs/V1KernelBootContainer.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**image** | **str** | Image that contains initrd / kernel files. | -**image_pull_policy** | **str** | Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images | [optional] +**image** | **str** | Image that contains initrd / kernel files. | [default to ''] +**image_pull_policy** | **str** | Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present | [optional] **image_pull_secret** | **str** | ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist. | [optional] **initrd_path** | **str** | the fully-qualified path to the ramdisk image in the host OS | [optional] **kernel_path** | **str** | The fully-qualified path to the kernel image in the host OS | [optional] diff --git a/docs/V1KubeVirtCondition.md b/docs/V1KubeVirtCondition.md index 0848c0fb..24c219dd 100644 --- a/docs/V1KubeVirtCondition.md +++ b/docs/V1KubeVirtCondition.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **str** | | [optional] **reason** | **str** | | [optional] -**status** | **str** | | -**type** | **str** | | +**status** | **str** | | [default to ''] +**type** | **str** | | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index af8176b3..9cbf3732 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **emulated_machines** | **list[str]** | | [optional] **eviction_strategy** | **str** | EvictionStrategy defines at the cluster level if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain. If the VirtualMachineInstance specific field is set it overrides the cluster level one. | [optional] **handler_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] -**image_pull_policy** | **str** | | [optional] +**image_pull_policy** | **str** | Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present | [optional] **machine_type** | **str** | | [optional] **mediated_devices_configuration** | [**V1MediatedDevicesConfiguration**](V1MediatedDevicesConfiguration.md) | | [optional] **mem_balloon_stats_period** | **int** | | [optional] diff --git a/docs/V1KubeVirtSpec.md b/docs/V1KubeVirtSpec.md index 3c111e44..170b1a3a 100644 --- a/docs/V1KubeVirtSpec.md +++ b/docs/V1KubeVirtSpec.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **certificate_rotate_strategy** | [**V1KubeVirtCertificateRotateStrategy**](V1KubeVirtCertificateRotateStrategy.md) | | [optional] **configuration** | [**V1KubeVirtConfiguration**](V1KubeVirtConfiguration.md) | holds kubevirt configurations. same as the virt-configMap | [optional] **customize_components** | [**V1CustomizeComponents**](V1CustomizeComponents.md) | | [optional] -**image_pull_policy** | **str** | The ImagePullPolicy to use. | [optional] +**image_pull_policy** | **str** | The ImagePullPolicy to use. Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present | [optional] **image_pull_secrets** | [**list[K8sIoApiCoreV1LocalObjectReference]**](K8sIoApiCoreV1LocalObjectReference.md) | The imagePullSecrets to pull the container images from Defaults to none | [optional] **image_registry** | **str** | The image registry to pull the container images from Defaults to the same registry the operator's container image is pulled from. | [optional] **image_tag** | **str** | The image tag to use for the continer images installed. Defaults to the same tag as the operator's container image. | [optional] diff --git a/docs/V1Machine.md b/docs/V1Machine.md index 61222dcf..1ac0212f 100644 --- a/docs/V1Machine.md +++ b/docs/V1Machine.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | QEMU machine type is the actual chipset of the VirtualMachineInstance. | [optional] +**type** | **str** | QEMU machine type is the actual chipset of the VirtualMachineInstance. | [optional] [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1MediatedHostDevice.md b/docs/V1MediatedHostDevice.md index bb9e6290..da66c080 100644 --- a/docs/V1MediatedHostDevice.md +++ b/docs/V1MediatedHostDevice.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **external_resource_provider** | **bool** | | [optional] -**mdev_name_selector** | **str** | | -**resource_name** | **str** | | +**mdev_name_selector** | **str** | | [default to ''] +**resource_name** | **str** | | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1MemoryDumpVolumeSource.md b/docs/V1MemoryDumpVolumeSource.md index 85b8a60c..3789df4c 100644 --- a/docs/V1MemoryDumpVolumeSource.md +++ b/docs/V1MemoryDumpVolumeSource.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**claim_name** | **str** | ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | +**claim_name** | **str** | claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [default to ''] **hotpluggable** | **bool** | Hotpluggable indicates whether the volume can be hotplugged and hotunplugged. | [optional] -**read_only** | **bool** | Will force the ReadOnly setting in VolumeMounts. Default false. | [optional] +**read_only** | **bool** | readOnly Will force the ReadOnly setting in VolumeMounts. Default false. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1MultusNetwork.md b/docs/V1MultusNetwork.md index f9af5da7..fd6119b1 100644 --- a/docs/V1MultusNetwork.md +++ b/docs/V1MultusNetwork.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **default** | **bool** | Select the default network and add it to the multus-cni.io/default-network annotation. | [optional] -**network_name** | **str** | References to a NetworkAttachmentDefinition CRD object. Format: <networkName>, <namespace>/<networkName>. If namespace is not specified, VMI namespace is assumed. | +**network_name** | **str** | References to a NetworkAttachmentDefinition CRD object. Format: <networkName>, <namespace>/<networkName>. If namespace is not specified, VMI namespace is assumed. | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Network.md b/docs/V1Network.md index 7806f7ab..afd1dbbf 100644 --- a/docs/V1Network.md +++ b/docs/V1Network.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **multus** | [**V1MultusNetwork**](V1MultusNetwork.md) | | [optional] -**name** | **str** | Network name. Must be a DNS_LABEL and unique within the vm. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | +**name** | **str** | Network name. Must be a DNS_LABEL and unique within the vm. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [default to ''] **pod** | [**V1PodNetwork**](V1PodNetwork.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1PciHostDevice.md b/docs/V1PciHostDevice.md index fddece00..75b41dee 100644 --- a/docs/V1PciHostDevice.md +++ b/docs/V1PciHostDevice.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **external_resource_provider** | **bool** | If true, KubeVirt will leave the allocation and monitoring to an external device plugin | [optional] -**pci_vendor_selector** | **str** | The vendor_id:product_id tuple of the PCI device | -**resource_name** | **str** | The name of the resource that is representing the device. Exposed by a device plugin and requested by VMs. Typically of the form vendor.com/product_nameThe name of the resource that is representing the device. Exposed by a device plugin and requested by VMs. Typically of the form vendor.com/product_name | +**pci_vendor_selector** | **str** | The vendor_id:product_id tuple of the PCI device | [default to ''] +**resource_name** | **str** | The name of the resource that is representing the device. Exposed by a device plugin and requested by VMs. Typically of the form vendor.com/product_nameThe name of the resource that is representing the device. Exposed by a device plugin and requested by VMs. Typically of the form vendor.com/product_name | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1PersistentVolumeClaimInfo.md b/docs/V1PersistentVolumeClaimInfo.md index 99260ab4..3ecca9c1 100644 --- a/docs/V1PersistentVolumeClaimInfo.md +++ b/docs/V1PersistentVolumeClaimInfo.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **filesystem_overhead** | **str** | Percentage of filesystem's size to be reserved when resizing the PVC | [optional] **preallocated** | **bool** | Preallocated indicates if the PVC's storage is preallocated or not | [optional] **requests** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Requests represents the resources requested by the corresponding PVC spec | [optional] -**volume_mode** | **str** | VolumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. | [optional] +**volume_mode** | **str** | VolumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1PersistentVolumeClaimVolumeSource.md b/docs/V1PersistentVolumeClaimVolumeSource.md index 3e5439ff..ab6f255a 100644 --- a/docs/V1PersistentVolumeClaimVolumeSource.md +++ b/docs/V1PersistentVolumeClaimVolumeSource.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**claim_name** | **str** | ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | +**claim_name** | **str** | claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [default to ''] **hotpluggable** | **bool** | Hotpluggable indicates whether the volume can be hotplugged and hotunplugged. | [optional] -**read_only** | **bool** | Will force the ReadOnly setting in VolumeMounts. Default false. | [optional] +**read_only** | **bool** | readOnly Will force the ReadOnly setting in VolumeMounts. Default false. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Port.md b/docs/V1Port.md index 9f968595..81f0a5af 100644 --- a/docs/V1Port.md +++ b/docs/V1Port.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. | [optional] -**port** | **int** | Number of port to expose for the virtual machine. This must be a valid port number, 0 < x < 65536. | +**port** | **int** | Number of port to expose for the virtual machine. This must be a valid port number, 0 < x < 65536. | [default to 0] **protocol** | **str** | Protocol for port. Must be UDP or TCP. Defaults to \"TCP\". | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1RemoveVolumeOptions.md b/docs/V1RemoveVolumeOptions.md index f8d08edd..20214019 100644 --- a/docs/V1RemoveVolumeOptions.md +++ b/docs/V1RemoveVolumeOptions.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **dry_run** | **list[str]** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] -**name** | **str** | Name represents the name that maps to both the disk and volume that should be removed | +**name** | **str** | Name represents the name that maps to both the disk and volume that should be removed | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1SoundDevice.md b/docs/V1SoundDevice.md index ce2029bf..bbe4c79e 100644 --- a/docs/V1SoundDevice.md +++ b/docs/V1SoundDevice.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **model** | **str** | We only support ich9 or ac97. If SoundDevice is not set: No sound card is emulated. If SoundDevice is set but Model is not: ich9 | [optional] -**name** | **str** | User's defined name for this sound device | +**name** | **str** | User's defined name for this sound device | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1SupportContainerResources.md b/docs/V1SupportContainerResources.md index cf3a531a..8c8d232f 100644 --- a/docs/V1SupportContainerResources.md +++ b/docs/V1SupportContainerResources.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **resources** | [**K8sIoApiCoreV1ResourceRequirements**](K8sIoApiCoreV1ResourceRequirements.md) | | -**type** | **str** | | +**type** | **str** | | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1TokenBucketRateLimiter.md b/docs/V1TokenBucketRateLimiter.md index aa3715c7..b4d91475 100644 --- a/docs/V1TokenBucketRateLimiter.md +++ b/docs/V1TokenBucketRateLimiter.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**burst** | **int** | Maximum burst for throttle. If it's zero, the component default will be used | -**qps** | **float** | QPS indicates the maximum QPS to the apiserver from this client. If it's zero, the component default will be used | +**burst** | **int** | Maximum burst for throttle. If it's zero, the component default will be used | [default to 0] +**qps** | **float** | QPS indicates the maximum QPS to the apiserver from this client. If it's zero, the component default will be used | [default to 0.0] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineCondition.md b/docs/V1VirtualMachineCondition.md index d29a495a..70657a4b 100644 --- a/docs/V1VirtualMachineCondition.md +++ b/docs/V1VirtualMachineCondition.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **str** | | [optional] **reason** | **str** | | [optional] -**status** | **str** | | -**type** | **str** | | +**status** | **str** | | [default to ''] +**type** | **str** | | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceCondition.md b/docs/V1VirtualMachineInstanceCondition.md index 2dd15857..25709d57 100644 --- a/docs/V1VirtualMachineInstanceCondition.md +++ b/docs/V1VirtualMachineInstanceCondition.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **str** | | [optional] **reason** | **str** | | [optional] -**status** | **str** | | -**type** | **str** | | +**status** | **str** | | [default to ''] +**type** | **str** | | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceFileSystem.md b/docs/V1VirtualMachineInstanceFileSystem.md index b953a9d2..8165d7f8 100644 --- a/docs/V1VirtualMachineInstanceFileSystem.md +++ b/docs/V1VirtualMachineInstanceFileSystem.md @@ -3,11 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**disk_name** | **str** | | -**file_system_type** | **str** | | -**mount_point** | **str** | | -**total_bytes** | **int** | | -**used_bytes** | **int** | | +**disk_name** | **str** | | [default to ''] +**file_system_type** | **str** | | [default to ''] +**mount_point** | **str** | | [default to ''] +**total_bytes** | **int** | | [default to 0] +**used_bytes** | **int** | | [default to 0] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceGuestOSUser.md b/docs/V1VirtualMachineInstanceGuestOSUser.md index a7502ca8..5e53aebf 100644 --- a/docs/V1VirtualMachineInstanceGuestOSUser.md +++ b/docs/V1VirtualMachineInstanceGuestOSUser.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **domain** | **str** | | [optional] **login_time** | **float** | | [optional] -**user_name** | **str** | | +**user_name** | **str** | | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceMigrationCondition.md b/docs/V1VirtualMachineInstanceMigrationCondition.md index f1cd0b73..52c234d0 100644 --- a/docs/V1VirtualMachineInstanceMigrationCondition.md +++ b/docs/V1VirtualMachineInstanceMigrationCondition.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **str** | | [optional] **reason** | **str** | | [optional] -**status** | **str** | | -**type** | **str** | | +**status** | **str** | | [default to ''] +**type** | **str** | | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceReplicaSetCondition.md b/docs/V1VirtualMachineInstanceReplicaSetCondition.md index 93756a4f..fba27172 100644 --- a/docs/V1VirtualMachineInstanceReplicaSetCondition.md +++ b/docs/V1VirtualMachineInstanceReplicaSetCondition.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **str** | | [optional] **reason** | **str** | | [optional] -**status** | **str** | | -**type** | **str** | | +**status** | **str** | | [default to ''] +**type** | **str** | | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceSpec.md b/docs/V1VirtualMachineInstanceSpec.md index bf6e7164..0d7edd5f 100644 --- a/docs/V1VirtualMachineInstanceSpec.md +++ b/docs/V1VirtualMachineInstanceSpec.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **affinity** | [**K8sIoApiCoreV1Affinity**](K8sIoApiCoreV1Affinity.md) | If affinity is specifies, obey all the affinity rules | [optional] **architecture** | **str** | Specifies the architecture of the vm guest you are attempting to run. Defaults to the compiled architecture of the KubeVirt components | [optional] **dns_config** | [**K8sIoApiCoreV1PodDNSConfig**](K8sIoApiCoreV1PodDNSConfig.md) | Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. | [optional] -**dns_policy** | **str** | Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. | [optional] +**dns_policy** | **str** | Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. Possible enum values: - `\"ClusterFirst\"` indicates that the pod should use cluster DNS first unless hostNetwork is true, if it is available, then fall back on the default (as determined by kubelet) DNS settings. - `\"ClusterFirstWithHostNet\"` indicates that the pod should use cluster DNS first, if it is available, then fall back on the default (as determined by kubelet) DNS settings. - `\"Default\"` indicates that the pod should use the default (as determined by kubelet) DNS settings. - `\"None\"` indicates that the pod should use empty DNS settings. DNS parameters such as nameservers and search paths should be defined via DNSConfig. | [optional] **domain** | [**V1DomainSpec**](V1DomainSpec.md) | Specification of the desired behavior of the VirtualMachineInstance on the host. | **eviction_strategy** | **str** | EvictionStrategy can be set to \"LiveMigrate\" if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain. | [optional] **hostname** | **str** | Specifies the hostname of the vmi If not specified, the hostname will be set to the name of the vmi, if dhcp or cloud-init is configured properly. | [optional] diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index 4372e666..a6532ea1 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -18,9 +18,9 @@ Name | Type | Description | Notes **node_name** | **str** | NodeName is the name where the VirtualMachineInstance is currently running. | [optional] **phase** | **str** | Phase is the status of the VirtualMachineInstance in kubernetes world. It is not the VirtualMachineInstance status, but partially correlates to it. | [optional] **phase_transition_timestamps** | [**list[V1VirtualMachineInstancePhaseTransitionTimestamp]**](V1VirtualMachineInstancePhaseTransitionTimestamp.md) | PhaseTransitionTimestamp is the timestamp of when the last phase change occurred | [optional] -**qos_class** | **str** | The Quality of Service (QOS) classification assigned to the virtual machine instance based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md | [optional] +**qos_class** | **str** | The Quality of Service (QOS) classification assigned to the virtual machine instance based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md Possible enum values: - `\"BestEffort\"` is the BestEffort qos class. - `\"Burstable\"` is the Burstable qos class. - `\"Guaranteed\"` is the Guaranteed qos class. | [optional] **reason** | **str** | A brief CamelCase message indicating details about why the VMI is in this state. e.g. 'NodeUnresponsive' | [optional] -**runtime_user** | **int** | RuntimeUser is used to determine what user will be used in launcher | [optional] +**runtime_user** | **int** | RuntimeUser is used to determine what user will be used in launcher | [optional] [default to 0] **selinux_context** | **str** | SELinuxContext is the actual SELinux context of the virt-launcher pod | [optional] **topology_hints** | [**V1TopologyHints**](V1TopologyHints.md) | | [optional] **virtual_machine_revision_name** | **str** | VirtualMachineRevisionName is used to get the vm revision of the vmi when doing an online vm snapshot | [optional] diff --git a/docs/V1VirtualMachineMemoryDumpRequest.md b/docs/V1VirtualMachineMemoryDumpRequest.md index 38ab87b3..9fe90a67 100644 --- a/docs/V1VirtualMachineMemoryDumpRequest.md +++ b/docs/V1VirtualMachineMemoryDumpRequest.md @@ -3,11 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**claim_name** | **str** | ClaimName is the name of the pvc that will contain the memory dump | +**claim_name** | **str** | ClaimName is the name of the pvc that will contain the memory dump | [default to ''] **end_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | EndTimestamp represents the time the memory dump was completed | [optional] **file_name** | **str** | FileName represents the name of the output file | [optional] **message** | **str** | Message is a detailed message about failure of the memory dump | [optional] -**phase** | **str** | Phase represents the memory dump phase | +**phase** | **str** | Phase represents the memory dump phase | [default to ''] **remove** | **bool** | Remove represents request of dissociating the memory dump pvc | [optional] **start_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | StartTimestamp represents the time the memory dump started | [optional] diff --git a/docs/V1VirtualMachineStateChangeRequest.md b/docs/V1VirtualMachineStateChangeRequest.md index c99ca826..b947981e 100644 --- a/docs/V1VirtualMachineStateChangeRequest.md +++ b/docs/V1VirtualMachineStateChangeRequest.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**action** | **str** | Indicates the type of action that is requested. e.g. Start or Stop | +**action** | **str** | Indicates the type of action that is requested. e.g. Start or Stop | [default to ''] **data** | **dict(str, str)** | Provides additional data in order to perform the Action | [optional] **uid** | **str** | Indicates the UUID of an existing Virtual Machine Instance that this change request applies to -- if applicable | [optional] diff --git a/docs/V1Volume.md b/docs/V1Volume.md index a9822f6a..565f5eb7 100644 --- a/docs/V1Volume.md +++ b/docs/V1Volume.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **ephemeral** | [**V1EphemeralVolumeSource**](V1EphemeralVolumeSource.md) | Ephemeral is a special volume source that \"wraps\" specified source and provides copy-on-write image on top of it. | [optional] **host_disk** | [**V1HostDisk**](V1HostDisk.md) | HostDisk represents a disk created on the cluster level | [optional] **memory_dump** | [**V1MemoryDumpVolumeSource**](V1MemoryDumpVolumeSource.md) | MemoryDump is attached to the virt launcher and is populated with a memory dump of the vmi | [optional] -**name** | **str** | Volume's name. Must be a DNS_LABEL and unique within the vmi. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | +**name** | **str** | Volume's name. Must be a DNS_LABEL and unique within the vmi. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [default to ''] **persistent_volume_claim** | [**V1PersistentVolumeClaimVolumeSource**](V1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] **secret** | [**V1SecretVolumeSource**](V1SecretVolumeSource.md) | SecretVolumeSource represents a reference to a secret data in the same namespace. More info: https://kubernetes.io/docs/concepts/configuration/secret/ | [optional] **service_account** | [**V1ServiceAccountVolumeSource**](V1ServiceAccountVolumeSource.md) | ServiceAccountVolumeSource represents a reference to a service account. There can only be one volume of this type! More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ | [optional] diff --git a/docs/V1VolumeSnapshotStatus.md b/docs/V1VolumeSnapshotStatus.md index 8b6c1187..f0bb35fd 100644 --- a/docs/V1VolumeSnapshotStatus.md +++ b/docs/V1VolumeSnapshotStatus.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**enabled** | **bool** | True if the volume supports snapshotting | -**name** | **str** | Volume name | +**enabled** | **bool** | True if the volume supports snapshotting | [default to False] +**name** | **str** | Volume name | [default to ''] **reason** | **str** | Empty if snapshotting is enabled, contains reason otherwise | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VolumeStatus.md b/docs/V1VolumeStatus.md index 7cf5e845..c209c8d4 100644 --- a/docs/V1VolumeStatus.md +++ b/docs/V1VolumeStatus.md @@ -6,12 +6,12 @@ Name | Type | Description | Notes **hotplug_volume** | [**V1HotplugVolumeStatus**](V1HotplugVolumeStatus.md) | If the volume is hotplug, this will contain the hotplug status. | [optional] **memory_dump_volume** | [**V1DomainMemoryDumpInfo**](V1DomainMemoryDumpInfo.md) | If the volume is memorydump volume, this will contain the memorydump info. | [optional] **message** | **str** | Message is a detailed message about the current hotplug volume phase | [optional] -**name** | **str** | Name is the name of the volume | +**name** | **str** | Name is the name of the volume | [default to ''] **persistent_volume_claim_info** | [**V1PersistentVolumeClaimInfo**](V1PersistentVolumeClaimInfo.md) | PersistentVolumeClaimInfo is information about the PVC that handler requires during start flow | [optional] **phase** | **str** | Phase is the phase | [optional] **reason** | **str** | Reason is a brief description of why we are in the current hotplug volume phase | [optional] **size** | **int** | Represents the size of the volume | [optional] -**target** | **str** | Target is the target name used when adding the volume to the VM, eg: vda | +**target** | **str** | Target is the target name used when adding the volume to the VM, eg: vda | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Watchdog.md b/docs/V1Watchdog.md index f87d1169..e937339b 100644 --- a/docs/V1Watchdog.md +++ b/docs/V1Watchdog.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **i6300esb** | [**V1I6300ESBWatchdog**](V1I6300ESBWatchdog.md) | i6300esb watchdog device. | [optional] -**name** | **str** | Name of the watchdog. | +**name** | **str** | Name of the watchdog. | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1Condition.md b/docs/V1alpha1Condition.md index 0b75a562..96a2edb5 100644 --- a/docs/V1alpha1Condition.md +++ b/docs/V1alpha1Condition.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **str** | | [optional] **reason** | **str** | | [optional] -**status** | **str** | | -**type** | **str** | | +**status** | **str** | | [default to ''] +**type** | **str** | | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineExportLink.md b/docs/V1alpha1VirtualMachineExportLink.md index 2737b998..e7161ab0 100644 --- a/docs/V1alpha1VirtualMachineExportLink.md +++ b/docs/V1alpha1VirtualMachineExportLink.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cert** | **str** | Cert is the public CA certificate base64 encoded | +**cert** | **str** | Cert is the public CA certificate base64 encoded | [default to ''] **manifests** | [**list[V1alpha1VirtualMachineExportManifest]**](V1alpha1VirtualMachineExportManifest.md) | Manifests is a list of available manifests for the export | [optional] **volumes** | [**list[V1alpha1VirtualMachineExportVolume]**](V1alpha1VirtualMachineExportVolume.md) | Volumes is a list of available volumes to export | [optional] diff --git a/docs/V1alpha1VirtualMachineExportManifest.md b/docs/V1alpha1VirtualMachineExportManifest.md index f8f45fbf..d3648436 100644 --- a/docs/V1alpha1VirtualMachineExportManifest.md +++ b/docs/V1alpha1VirtualMachineExportManifest.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | Type is the type of manifest returned | -**url** | **str** | Url is the url of the endpoint that returns the manifest | +**type** | **str** | Type is the type of manifest returned | [default to ''] +**url** | **str** | Url is the url of the endpoint that returns the manifest | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineExportVolume.md b/docs/V1alpha1VirtualMachineExportVolume.md index 0433fcbc..d1abae65 100644 --- a/docs/V1alpha1VirtualMachineExportVolume.md +++ b/docs/V1alpha1VirtualMachineExportVolume.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **formats** | [**list[V1alpha1VirtualMachineExportVolumeFormat]**](V1alpha1VirtualMachineExportVolumeFormat.md) | | [optional] -**name** | **str** | Name is the name of the exported volume | +**name** | **str** | Name is the name of the exported volume | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineExportVolumeFormat.md b/docs/V1alpha1VirtualMachineExportVolumeFormat.md index fdbdda78..87b48242 100644 --- a/docs/V1alpha1VirtualMachineExportVolumeFormat.md +++ b/docs/V1alpha1VirtualMachineExportVolumeFormat.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**format** | **str** | Format is the format of the image at the specified URL | -**url** | **str** | Url is the url that contains the volume in the format specified | +**format** | **str** | Format is the format of the image at the specified URL | [default to ''] +**url** | **str** | Url is the url that contains the volume in the format specified | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachinePoolCondition.md b/docs/V1alpha1VirtualMachinePoolCondition.md index 0368d3e1..bce44028 100644 --- a/docs/V1alpha1VirtualMachinePoolCondition.md +++ b/docs/V1alpha1VirtualMachinePoolCondition.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **str** | | [optional] **reason** | **str** | | [optional] -**status** | **str** | | -**type** | **str** | | +**status** | **str** | | [default to ''] +**type** | **str** | | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineRestoreSpec.md b/docs/V1alpha1VirtualMachineRestoreSpec.md index eab2f420..c4c838f6 100644 --- a/docs/V1alpha1VirtualMachineRestoreSpec.md +++ b/docs/V1alpha1VirtualMachineRestoreSpec.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **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] **target** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | initially only VirtualMachine type supported | -**virtual_machine_snapshot_name** | **str** | | +**virtual_machine_snapshot_name** | **str** | | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VolumeBackup.md b/docs/V1alpha1VolumeBackup.md index 44931866..5cd35fbc 100644 --- a/docs/V1alpha1VolumeBackup.md +++ b/docs/V1alpha1VolumeBackup.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **persistent_volume_claim** | [**V1alpha1PersistentVolumeClaim**](V1alpha1PersistentVolumeClaim.md) | | -**volume_name** | **str** | | +**volume_name** | **str** | | [default to ''] **volume_snapshot_name** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VolumeRestore.md b/docs/V1alpha1VolumeRestore.md index 9b734f94..67012085 100644 --- a/docs/V1alpha1VolumeRestore.md +++ b/docs/V1alpha1VolumeRestore.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data_volume_name** | **str** | | [optional] -**persistent_volume_claim** | **str** | | -**volume_name** | **str** | | -**volume_snapshot_name** | **str** | | +**persistent_volume_claim** | **str** | | [default to ''] +**volume_name** | **str** | | [default to ''] +**volume_snapshot_name** | **str** | | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VolumeSnapshotStatus.md b/docs/V1alpha1VolumeSnapshotStatus.md index c2856984..5366b8b0 100644 --- a/docs/V1alpha1VolumeSnapshotStatus.md +++ b/docs/V1alpha1VolumeSnapshotStatus.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **creation_time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | | [optional] **error** | [**V1alpha1Error**](V1alpha1Error.md) | | [optional] **ready_to_use** | **bool** | | [optional] -**volume_snapshot_name** | **str** | | +**volume_snapshot_name** | **str** | | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha2CPUInstancetype.md b/docs/V1alpha2CPUInstancetype.md index 5c8aa524..70df2bd0 100644 --- a/docs/V1alpha2CPUInstancetype.md +++ b/docs/V1alpha2CPUInstancetype.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **dedicated_cpu_placement** | **bool** | DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. | [optional] -**guest** | **int** | Required number of vCPUs to expose to the guest. The resulting CPU topology being derived from the optional PreferredCPUTopology attribute of CPUPreferences that itself defaults to PreferCores. | +**guest** | **int** | Required number of vCPUs to expose to the guest. The resulting CPU topology being derived from the optional PreferredCPUTopology attribute of CPUPreferences that itself defaults to PreferCores. | [default to 0] **isolate_emulator_thread** | **bool** | IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it. | [optional] **model** | **str** | Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. | [optional] **numa** | [**V1NUMA**](V1NUMA.md) | NUMA allows specifying settings for the guest NUMA topology | [optional] diff --git a/docs/V1beta1DataVolumeCheckpoint.md b/docs/V1beta1DataVolumeCheckpoint.md index 494fe88c..73a584c0 100644 --- a/docs/V1beta1DataVolumeCheckpoint.md +++ b/docs/V1beta1DataVolumeCheckpoint.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**current** | **str** | Current is the identifier of the snapshot created for this checkpoint. | -**previous** | **str** | Previous is the identifier of the snapshot from the previous checkpoint. | +**current** | **str** | Current is the identifier of the snapshot created for this checkpoint. | [default to ''] +**previous** | **str** | Previous is the identifier of the snapshot from the previous checkpoint. | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1beta1DataVolumeSourceHTTP.md b/docs/V1beta1DataVolumeSourceHTTP.md index e3cd53af..13b75a94 100644 --- a/docs/V1beta1DataVolumeSourceHTTP.md +++ b/docs/V1beta1DataVolumeSourceHTTP.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **extra_headers** | **list[str]** | ExtraHeaders is a list of strings containing extra headers to include with HTTP transfer requests | [optional] **secret_extra_headers** | **list[str]** | SecretExtraHeaders is a list of Secret references, each containing an extra HTTP header that may include sensitive information | [optional] **secret_ref** | **str** | SecretRef A Secret reference, the secret should contain accessKeyId (user name) base64 encoded, and secretKey (password) also base64 encoded | [optional] -**url** | **str** | URL is the URL of the http(s) endpoint | +**url** | **str** | URL is the URL of the http(s) endpoint | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1beta1DataVolumeSourceImageIO.md b/docs/V1beta1DataVolumeSourceImageIO.md index f5b53b13..949d4e50 100644 --- a/docs/V1beta1DataVolumeSourceImageIO.md +++ b/docs/V1beta1DataVolumeSourceImageIO.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cert_config_map** | **str** | CertConfigMap provides a reference to the CA cert | [optional] -**disk_id** | **str** | DiskID provides id of a disk to be imported | +**disk_id** | **str** | DiskID provides id of a disk to be imported | [default to ''] **secret_ref** | **str** | SecretRef provides the secret reference needed to access the ovirt-engine | [optional] -**url** | **str** | URL is the URL of the ovirt-engine | +**url** | **str** | URL is the URL of the ovirt-engine | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1beta1DataVolumeSourcePVC.md b/docs/V1beta1DataVolumeSourcePVC.md index 49d52616..48594e7d 100644 --- a/docs/V1beta1DataVolumeSourcePVC.md +++ b/docs/V1beta1DataVolumeSourcePVC.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | The name of the source PVC | -**namespace** | **str** | The namespace of the source PVC | +**name** | **str** | The name of the source PVC | [default to ''] +**namespace** | **str** | The namespace of the source PVC | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1beta1DataVolumeSourceRef.md b/docs/V1beta1DataVolumeSourceRef.md index 826c0004..d6bbafd4 100644 --- a/docs/V1beta1DataVolumeSourceRef.md +++ b/docs/V1beta1DataVolumeSourceRef.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**kind** | **str** | The kind of the source reference, currently only \"DataSource\" is supported | -**name** | **str** | The name of the source reference | +**kind** | **str** | The kind of the source reference, currently only \"DataSource\" is supported | [default to ''] +**name** | **str** | The name of the source reference | [default to ''] **namespace** | **str** | The namespace of the source reference, defaults to the DataVolume namespace | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1beta1DataVolumeSourceS3.md b/docs/V1beta1DataVolumeSourceS3.md index bb631e65..4ae4f7d3 100644 --- a/docs/V1beta1DataVolumeSourceS3.md +++ b/docs/V1beta1DataVolumeSourceS3.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cert_config_map** | **str** | CertConfigMap is a configmap reference, containing a Certificate Authority(CA) public key, and a base64 encoded pem certificate | [optional] **secret_ref** | **str** | SecretRef provides the secret reference needed to access the S3 source | [optional] -**url** | **str** | URL is the url of the S3 source | +**url** | **str** | URL is the url of the S3 source | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1beta1StorageSpec.md b/docs/V1beta1StorageSpec.md index 2ad5a248..f9fdf919 100644 --- a/docs/V1beta1StorageSpec.md +++ b/docs/V1beta1StorageSpec.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **resources** | [**K8sIoApiCoreV1ResourceRequirements**](K8sIoApiCoreV1ResourceRequirements.md) | Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources | [optional] **selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | A label query over volumes to consider for binding. | [optional] **storage_class_name** | **str** | Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] -**volume_mode** | **str** | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. | [optional] +**volume_mode** | **str** | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. | [optional] **volume_name** | **str** | VolumeName is the binding reference to the PersistentVolume backing this claim. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 0f382df8..a89044b5 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-alpha.0-92-ge7016777c" + release_note="Auto-generated client v1.0.0-beta.0-65-g33dbfa922" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 9858cac3..676232dc 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -1,23 +1,23 @@ [main] INFO io.swagger.parser.Swagger20Parser - reading from /root/go/src/kubevirt.io/kubevirt/api/openapi-spec/swagger.json -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. -Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] INFO io.swagger.codegen.ignore.CodegenIgnoreProcessor - No .swagger-codegen-ignore file found. [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default appVersion set to 1.0.0 [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default version set to 1.0.0 @@ -78,6 +78,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/k8s_io_api_core_v1_preferred_scheduling_term.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_preferred_scheduling_term.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1PreferredSchedulingTerm.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_resource_claim.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_resource_claim.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1ResourceClaim.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_resource_field_selector.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_resource_field_selector.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1ResourceFieldSelector.md @@ -96,6 +99,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/k8s_io_api_core_v1_typed_local_object_reference.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_typed_local_object_reference.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1TypedLocalObjectReference.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_typed_object_reference.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_typed_object_reference.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1TypedObjectReference.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_weighted_pod_affinity_term.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_weighted_pod_affinity_term.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1WeightedPodAffinityTerm.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 1360f5fa..9fd0a86f 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -33,12 +33,14 @@ from .models.k8s_io_api_core_v1_pod_dns_config import K8sIoApiCoreV1PodDNSConfig from .models.k8s_io_api_core_v1_pod_dns_config_option import K8sIoApiCoreV1PodDNSConfigOption from .models.k8s_io_api_core_v1_preferred_scheduling_term import K8sIoApiCoreV1PreferredSchedulingTerm +from .models.k8s_io_api_core_v1_resource_claim import K8sIoApiCoreV1ResourceClaim from .models.k8s_io_api_core_v1_resource_field_selector import K8sIoApiCoreV1ResourceFieldSelector from .models.k8s_io_api_core_v1_resource_requirements import K8sIoApiCoreV1ResourceRequirements from .models.k8s_io_api_core_v1_tcp_socket_action import K8sIoApiCoreV1TCPSocketAction from .models.k8s_io_api_core_v1_toleration import K8sIoApiCoreV1Toleration from .models.k8s_io_api_core_v1_topology_spread_constraint import K8sIoApiCoreV1TopologySpreadConstraint from .models.k8s_io_api_core_v1_typed_local_object_reference import K8sIoApiCoreV1TypedLocalObjectReference +from .models.k8s_io_api_core_v1_typed_object_reference import K8sIoApiCoreV1TypedObjectReference from .models.k8s_io_api_core_v1_weighted_pod_affinity_term import K8sIoApiCoreV1WeightedPodAffinityTerm from .models.k8s_io_apimachinery_pkg_api_resource_quantity import K8sIoApimachineryPkgApiResourceQuantity from .models.k8s_io_apimachinery_pkg_apis_meta_v1_api_group import K8sIoApimachineryPkgApisMetaV1APIGroup diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index c00a21c0..a2f6fa90 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-alpha.0-92-ge7016777c/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-65-g33dbfa922/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 43aff950..6b899eec 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-alpha.0-92-ge7016777c".\ + "SDK Package Version: v1.0.0-beta.0-65-g33dbfa922".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 2270c5e5..e2abda5b 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -33,12 +33,14 @@ from .k8s_io_api_core_v1_pod_dns_config import K8sIoApiCoreV1PodDNSConfig from .k8s_io_api_core_v1_pod_dns_config_option import K8sIoApiCoreV1PodDNSConfigOption from .k8s_io_api_core_v1_preferred_scheduling_term import K8sIoApiCoreV1PreferredSchedulingTerm +from .k8s_io_api_core_v1_resource_claim import K8sIoApiCoreV1ResourceClaim from .k8s_io_api_core_v1_resource_field_selector import K8sIoApiCoreV1ResourceFieldSelector from .k8s_io_api_core_v1_resource_requirements import K8sIoApiCoreV1ResourceRequirements from .k8s_io_api_core_v1_tcp_socket_action import K8sIoApiCoreV1TCPSocketAction from .k8s_io_api_core_v1_toleration import K8sIoApiCoreV1Toleration from .k8s_io_api_core_v1_topology_spread_constraint import K8sIoApiCoreV1TopologySpreadConstraint from .k8s_io_api_core_v1_typed_local_object_reference import K8sIoApiCoreV1TypedLocalObjectReference +from .k8s_io_api_core_v1_typed_object_reference import K8sIoApiCoreV1TypedObjectReference from .k8s_io_api_core_v1_weighted_pod_affinity_term import K8sIoApiCoreV1WeightedPodAffinityTerm from .k8s_io_apimachinery_pkg_api_resource_quantity import K8sIoApimachineryPkgApiResourceQuantity from .k8s_io_apimachinery_pkg_apis_meta_v1_api_group import K8sIoApimachineryPkgApisMetaV1APIGroup diff --git a/kubevirt/models/k8s_io_api_core_v1_downward_api_volume_file.py b/kubevirt/models/k8s_io_api_core_v1_downward_api_volume_file.py index 11828bf7..98f9f233 100644 --- a/kubevirt/models/k8s_io_api_core_v1_downward_api_volume_file.py +++ b/kubevirt/models/k8s_io_api_core_v1_downward_api_volume_file.py @@ -44,7 +44,7 @@ class K8sIoApiCoreV1DownwardAPIVolumeFile(object): 'resource_field_ref': 'resourceFieldRef' } - def __init__(self, field_ref=None, mode=None, path=None, resource_field_ref=None): + def __init__(self, field_ref=None, mode=None, path='', resource_field_ref=None): """ K8sIoApiCoreV1DownwardAPIVolumeFile - a model defined in Swagger """ diff --git a/kubevirt/models/k8s_io_api_core_v1_http_get_action.py b/kubevirt/models/k8s_io_api_core_v1_http_get_action.py index 1a5c9a77..b9dbc474 100644 --- a/kubevirt/models/k8s_io_api_core_v1_http_get_action.py +++ b/kubevirt/models/k8s_io_api_core_v1_http_get_action.py @@ -136,7 +136,7 @@ def path(self, path): def scheme(self): """ Gets the scheme of this K8sIoApiCoreV1HTTPGetAction. - Scheme to use for connecting to the host. Defaults to HTTP. + Scheme to use for connecting to the host. Defaults to HTTP. Possible enum values: - `\"HTTP\"` means that the scheme used will be http:// - `\"HTTPS\"` means that the scheme used will be https:// :return: The scheme of this K8sIoApiCoreV1HTTPGetAction. :rtype: str @@ -147,11 +147,17 @@ def scheme(self): def scheme(self, scheme): """ Sets the scheme of this K8sIoApiCoreV1HTTPGetAction. - Scheme to use for connecting to the host. Defaults to HTTP. + Scheme to use for connecting to the host. Defaults to HTTP. Possible enum values: - `\"HTTP\"` means that the scheme used will be http:// - `\"HTTPS\"` means that the scheme used will be https:// :param scheme: The scheme of this K8sIoApiCoreV1HTTPGetAction. :type: str """ + allowed_values = ["HTTP", "HTTPS"] + if scheme not in allowed_values: + raise ValueError( + "Invalid value for `scheme` ({0}), must be one of {1}" + .format(scheme, allowed_values) + ) self._scheme = scheme diff --git a/kubevirt/models/k8s_io_api_core_v1_http_header.py b/kubevirt/models/k8s_io_api_core_v1_http_header.py index 1a9f7759..0bafe748 100644 --- a/kubevirt/models/k8s_io_api_core_v1_http_header.py +++ b/kubevirt/models/k8s_io_api_core_v1_http_header.py @@ -40,7 +40,7 @@ class K8sIoApiCoreV1HTTPHeader(object): 'value': 'value' } - def __init__(self, name=None, value=None): + def __init__(self, name='', value=''): """ K8sIoApiCoreV1HTTPHeader - a model defined in Swagger """ diff --git a/kubevirt/models/k8s_io_api_core_v1_node_selector_requirement.py b/kubevirt/models/k8s_io_api_core_v1_node_selector_requirement.py index 83157cba..ef8e837d 100644 --- a/kubevirt/models/k8s_io_api_core_v1_node_selector_requirement.py +++ b/kubevirt/models/k8s_io_api_core_v1_node_selector_requirement.py @@ -42,7 +42,7 @@ class K8sIoApiCoreV1NodeSelectorRequirement(object): 'values': 'values' } - def __init__(self, key=None, operator=None, values=None): + def __init__(self, key='', operator='', values=None): """ K8sIoApiCoreV1NodeSelectorRequirement - a model defined in Swagger """ @@ -85,7 +85,7 @@ def key(self, key): def operator(self): """ Gets the operator of this K8sIoApiCoreV1NodeSelectorRequirement. - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. Possible enum values: - `\"DoesNotExist\"` - `\"Exists\"` - `\"Gt\"` - `\"In\"` - `\"Lt\"` - `\"NotIn\"` :return: The operator of this K8sIoApiCoreV1NodeSelectorRequirement. :rtype: str @@ -96,13 +96,19 @@ def operator(self): def operator(self, operator): """ Sets the operator of this K8sIoApiCoreV1NodeSelectorRequirement. - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. Possible enum values: - `\"DoesNotExist\"` - `\"Exists\"` - `\"Gt\"` - `\"In\"` - `\"Lt\"` - `\"NotIn\"` :param operator: The operator of this K8sIoApiCoreV1NodeSelectorRequirement. :type: str """ if operator is None: raise ValueError("Invalid value for `operator`, must not be `None`") + allowed_values = ["DoesNotExist", "Exists", "Gt", "In", "Lt", "NotIn"] + if operator not in allowed_values: + raise ValueError( + "Invalid value for `operator` ({0}), must be one of {1}" + .format(operator, allowed_values) + ) self._operator = operator diff --git a/kubevirt/models/k8s_io_api_core_v1_object_field_selector.py b/kubevirt/models/k8s_io_api_core_v1_object_field_selector.py index 28e174bc..bfd2e60d 100644 --- a/kubevirt/models/k8s_io_api_core_v1_object_field_selector.py +++ b/kubevirt/models/k8s_io_api_core_v1_object_field_selector.py @@ -40,7 +40,7 @@ class K8sIoApiCoreV1ObjectFieldSelector(object): 'field_path': 'fieldPath' } - def __init__(self, api_version=None, field_path=None): + def __init__(self, api_version=None, field_path=''): """ K8sIoApiCoreV1ObjectFieldSelector - a model defined in Swagger """ diff --git a/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py index 6bfd644b..518142db 100644 --- a/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py +++ b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py @@ -33,7 +33,7 @@ class K8sIoApiCoreV1PersistentVolumeClaimSpec(object): swagger_types = { 'access_modes': 'list[str]', 'data_source': 'K8sIoApiCoreV1TypedLocalObjectReference', - 'data_source_ref': 'K8sIoApiCoreV1TypedLocalObjectReference', + 'data_source_ref': 'K8sIoApiCoreV1TypedObjectReference', 'resources': 'K8sIoApiCoreV1ResourceRequirements', 'selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', 'storage_class_name': 'str', @@ -87,7 +87,7 @@ def __init__(self, access_modes=None, data_source=None, data_source_ref=None, re def access_modes(self): """ Gets the access_modes of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 :return: The access_modes of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :rtype: list[str] @@ -98,7 +98,7 @@ def access_modes(self): def access_modes(self, access_modes): """ Sets the access_modes of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 :param access_modes: The access_modes of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :type: list[str] @@ -110,7 +110,7 @@ def access_modes(self, access_modes): def data_source(self): """ Gets the data_source of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. + dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource. :return: The data_source of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :rtype: K8sIoApiCoreV1TypedLocalObjectReference @@ -121,7 +121,7 @@ def data_source(self): def data_source(self, data_source): """ Sets the data_source of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. + dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource. :param data_source: The data_source of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :type: K8sIoApiCoreV1TypedLocalObjectReference @@ -133,10 +133,10 @@ def data_source(self, data_source): def data_source_ref(self): """ Gets the data_source_ref of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled. + dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While dataSource ignores disallowed values (dropping them), dataSourceRef preserves all values, and generates an error if a disallowed value is specified. * While dataSource only allows local objects, dataSourceRef allows objects in any namespaces. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled. :return: The data_source_ref of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - :rtype: K8sIoApiCoreV1TypedLocalObjectReference + :rtype: K8sIoApiCoreV1TypedObjectReference """ return self._data_source_ref @@ -144,10 +144,10 @@ def data_source_ref(self): def data_source_ref(self, data_source_ref): """ Sets the data_source_ref of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled. + dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While dataSource ignores disallowed values (dropping them), dataSourceRef preserves all values, and generates an error if a disallowed value is specified. * While dataSource only allows local objects, dataSourceRef allows objects in any namespaces. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled. :param data_source_ref: The data_source_ref of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - :type: K8sIoApiCoreV1TypedLocalObjectReference + :type: K8sIoApiCoreV1TypedObjectReference """ self._data_source_ref = data_source_ref @@ -156,7 +156,7 @@ def data_source_ref(self, data_source_ref): def resources(self): """ Gets the resources of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - Resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources :return: The resources of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :rtype: K8sIoApiCoreV1ResourceRequirements @@ -167,7 +167,7 @@ def resources(self): def resources(self, resources): """ Sets the resources of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - Resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources :param resources: The resources of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :type: K8sIoApiCoreV1ResourceRequirements @@ -179,7 +179,7 @@ def resources(self, resources): def selector(self): """ Gets the selector of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - A label query over volumes to consider for binding. + selector is a label query over volumes to consider for binding. :return: The selector of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector @@ -190,7 +190,7 @@ def selector(self): def selector(self, selector): """ Sets the selector of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - A label query over volumes to consider for binding. + selector is a label query over volumes to consider for binding. :param selector: The selector of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :type: K8sIoApimachineryPkgApisMetaV1LabelSelector @@ -202,7 +202,7 @@ def selector(self, selector): def storage_class_name(self): """ Gets the storage_class_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 :return: The storage_class_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :rtype: str @@ -213,7 +213,7 @@ def storage_class_name(self): def storage_class_name(self, storage_class_name): """ Sets the storage_class_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 :param storage_class_name: The storage_class_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :type: str @@ -225,7 +225,7 @@ def storage_class_name(self, storage_class_name): def volume_mode(self): """ Gets the volume_mode of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. :return: The volume_mode of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :rtype: str @@ -236,11 +236,17 @@ def volume_mode(self): def volume_mode(self, volume_mode): """ Sets the volume_mode of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. :param volume_mode: The volume_mode of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :type: str """ + allowed_values = ["Block", "Filesystem"] + if volume_mode not in allowed_values: + raise ValueError( + "Invalid value for `volume_mode` ({0}), must be one of {1}" + .format(volume_mode, allowed_values) + ) self._volume_mode = volume_mode @@ -248,7 +254,7 @@ def volume_mode(self, volume_mode): def volume_name(self): """ Gets the volume_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - VolumeName is the binding reference to the PersistentVolume backing this claim. + volumeName is the binding reference to the PersistentVolume backing this claim. :return: The volume_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :rtype: str @@ -259,7 +265,7 @@ def volume_name(self): def volume_name(self, volume_name): """ Sets the volume_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - VolumeName is the binding reference to the PersistentVolume backing this claim. + volumeName is the binding reference to the PersistentVolume backing this claim. :param volume_name: The volume_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :type: str diff --git a/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_volume_source.py b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_volume_source.py index eac812fb..207444a6 100644 --- a/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_volume_source.py +++ b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_volume_source.py @@ -40,7 +40,7 @@ class K8sIoApiCoreV1PersistentVolumeClaimVolumeSource(object): 'read_only': 'readOnly' } - def __init__(self, claim_name=None, read_only=None): + def __init__(self, claim_name='', read_only=None): """ K8sIoApiCoreV1PersistentVolumeClaimVolumeSource - a model defined in Swagger """ @@ -56,7 +56,7 @@ def __init__(self, claim_name=None, read_only=None): def claim_name(self): """ Gets the claim_name of this K8sIoApiCoreV1PersistentVolumeClaimVolumeSource. - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims :return: The claim_name of this K8sIoApiCoreV1PersistentVolumeClaimVolumeSource. :rtype: str @@ -67,7 +67,7 @@ def claim_name(self): def claim_name(self, claim_name): """ Sets the claim_name of this K8sIoApiCoreV1PersistentVolumeClaimVolumeSource. - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims :param claim_name: The claim_name of this K8sIoApiCoreV1PersistentVolumeClaimVolumeSource. :type: str @@ -81,7 +81,7 @@ def claim_name(self, claim_name): def read_only(self): """ Gets the read_only of this K8sIoApiCoreV1PersistentVolumeClaimVolumeSource. - Will force the ReadOnly setting in VolumeMounts. Default false. + readOnly Will force the ReadOnly setting in VolumeMounts. Default false. :return: The read_only of this K8sIoApiCoreV1PersistentVolumeClaimVolumeSource. :rtype: bool @@ -92,7 +92,7 @@ def read_only(self): def read_only(self, read_only): """ Sets the read_only of this K8sIoApiCoreV1PersistentVolumeClaimVolumeSource. - Will force the ReadOnly setting in VolumeMounts. Default false. + readOnly Will force the ReadOnly setting in VolumeMounts. Default false. :param read_only: The read_only of this K8sIoApiCoreV1PersistentVolumeClaimVolumeSource. :type: bool diff --git a/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py b/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py index 92c9eeef..7804536d 100644 --- a/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py +++ b/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py @@ -44,7 +44,7 @@ class K8sIoApiCoreV1PodAffinityTerm(object): 'topology_key': 'topologyKey' } - def __init__(self, label_selector=None, namespace_selector=None, namespaces=None, topology_key=None): + def __init__(self, label_selector=None, namespace_selector=None, namespaces=None, topology_key=''): """ K8sIoApiCoreV1PodAffinityTerm - a model defined in Swagger """ @@ -89,7 +89,7 @@ def label_selector(self, label_selector): def namespace_selector(self): """ Gets the namespace_selector of this K8sIoApiCoreV1PodAffinityTerm. - A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled. + A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces. :return: The namespace_selector of this K8sIoApiCoreV1PodAffinityTerm. :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector @@ -100,7 +100,7 @@ def namespace_selector(self): def namespace_selector(self, namespace_selector): """ Sets the namespace_selector of this K8sIoApiCoreV1PodAffinityTerm. - A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled. + A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces. :param namespace_selector: The namespace_selector of this K8sIoApiCoreV1PodAffinityTerm. :type: K8sIoApimachineryPkgApisMetaV1LabelSelector @@ -112,7 +112,7 @@ def namespace_selector(self, namespace_selector): def namespaces(self): """ Gets the namespaces of this K8sIoApiCoreV1PodAffinityTerm. - namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\" + namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\". :return: The namespaces of this K8sIoApiCoreV1PodAffinityTerm. :rtype: list[str] @@ -123,7 +123,7 @@ def namespaces(self): def namespaces(self, namespaces): """ Sets the namespaces of this K8sIoApiCoreV1PodAffinityTerm. - namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\" + namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\". :param namespaces: The namespaces of this K8sIoApiCoreV1PodAffinityTerm. :type: list[str] diff --git a/kubevirt/models/k8s_io_api_core_v1_preferred_scheduling_term.py b/kubevirt/models/k8s_io_api_core_v1_preferred_scheduling_term.py index 1cf10de3..ce6bb6e0 100644 --- a/kubevirt/models/k8s_io_api_core_v1_preferred_scheduling_term.py +++ b/kubevirt/models/k8s_io_api_core_v1_preferred_scheduling_term.py @@ -40,7 +40,7 @@ class K8sIoApiCoreV1PreferredSchedulingTerm(object): 'weight': 'weight' } - def __init__(self, preference=None, weight=None): + def __init__(self, preference=None, weight=0): """ K8sIoApiCoreV1PreferredSchedulingTerm - a model defined in Swagger """ diff --git a/kubevirt/models/k8s_io_api_core_v1_resource_claim.py b/kubevirt/models/k8s_io_api_core_v1_resource_claim.py new file mode 100644 index 00000000..9538a6ce --- /dev/null +++ b/kubevirt/models/k8s_io_api_core_v1_resource_claim.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class K8sIoApiCoreV1ResourceClaim(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str' + } + + attribute_map = { + 'name': 'name' + } + + def __init__(self, name=''): + """ + K8sIoApiCoreV1ResourceClaim - a model defined in Swagger + """ + + self._name = None + + self.name = name + + @property + def name(self): + """ + Gets the name of this K8sIoApiCoreV1ResourceClaim. + Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container. + + :return: The name of this K8sIoApiCoreV1ResourceClaim. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this K8sIoApiCoreV1ResourceClaim. + Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container. + + :param name: The name of this K8sIoApiCoreV1ResourceClaim. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, K8sIoApiCoreV1ResourceClaim): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/k8s_io_api_core_v1_resource_field_selector.py b/kubevirt/models/k8s_io_api_core_v1_resource_field_selector.py index f864b843..fe1a9a21 100644 --- a/kubevirt/models/k8s_io_api_core_v1_resource_field_selector.py +++ b/kubevirt/models/k8s_io_api_core_v1_resource_field_selector.py @@ -42,7 +42,7 @@ class K8sIoApiCoreV1ResourceFieldSelector(object): 'resource': 'resource' } - def __init__(self, container_name=None, divisor=None, resource=None): + def __init__(self, container_name=None, divisor=None, resource=''): """ K8sIoApiCoreV1ResourceFieldSelector - a model defined in Swagger """ diff --git a/kubevirt/models/k8s_io_api_core_v1_resource_requirements.py b/kubevirt/models/k8s_io_api_core_v1_resource_requirements.py index 96792d19..796455ce 100644 --- a/kubevirt/models/k8s_io_api_core_v1_resource_requirements.py +++ b/kubevirt/models/k8s_io_api_core_v1_resource_requirements.py @@ -31,28 +31,56 @@ class K8sIoApiCoreV1ResourceRequirements(object): and the value is json key in definition. """ swagger_types = { + 'claims': 'list[K8sIoApiCoreV1ResourceClaim]', 'limits': 'dict(str, K8sIoApimachineryPkgApiResourceQuantity)', 'requests': 'dict(str, K8sIoApimachineryPkgApiResourceQuantity)' } attribute_map = { + 'claims': 'claims', 'limits': 'limits', 'requests': 'requests' } - def __init__(self, limits=None, requests=None): + def __init__(self, claims=None, limits=None, requests=None): """ K8sIoApiCoreV1ResourceRequirements - a model defined in Swagger """ + self._claims = None self._limits = None self._requests = None + if claims is not None: + self.claims = claims if limits is not None: self.limits = limits if requests is not None: self.requests = requests + @property + def claims(self): + """ + Gets the claims of this K8sIoApiCoreV1ResourceRequirements. + Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. + + :return: The claims of this K8sIoApiCoreV1ResourceRequirements. + :rtype: list[K8sIoApiCoreV1ResourceClaim] + """ + return self._claims + + @claims.setter + def claims(self, claims): + """ + Sets the claims of this K8sIoApiCoreV1ResourceRequirements. + Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. + + :param claims: The claims of this K8sIoApiCoreV1ResourceRequirements. + :type: list[K8sIoApiCoreV1ResourceClaim] + """ + + self._claims = claims + @property def limits(self): """ diff --git a/kubevirt/models/k8s_io_api_core_v1_toleration.py b/kubevirt/models/k8s_io_api_core_v1_toleration.py index a5d050da..d33c0f5f 100644 --- a/kubevirt/models/k8s_io_api_core_v1_toleration.py +++ b/kubevirt/models/k8s_io_api_core_v1_toleration.py @@ -72,7 +72,7 @@ def __init__(self, effect=None, key=None, operator=None, toleration_seconds=None def effect(self): """ Gets the effect of this K8sIoApiCoreV1Toleration. - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. Possible enum values: - `\"NoExecute\"` Evict any already-running pods that do not tolerate the taint. Currently enforced by NodeController. - `\"NoSchedule\"` Do not allow new pods to schedule onto the node unless they tolerate the taint, but allow all pods submitted to Kubelet without going through the scheduler to start, and allow all already-running pods to continue running. Enforced by the scheduler. - `\"PreferNoSchedule\"` Like TaintEffectNoSchedule, but the scheduler tries not to schedule new pods onto the node, rather than prohibiting new pods from scheduling onto the node entirely. Enforced by the scheduler. :return: The effect of this K8sIoApiCoreV1Toleration. :rtype: str @@ -83,11 +83,17 @@ def effect(self): def effect(self, effect): """ Sets the effect of this K8sIoApiCoreV1Toleration. - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. Possible enum values: - `\"NoExecute\"` Evict any already-running pods that do not tolerate the taint. Currently enforced by NodeController. - `\"NoSchedule\"` Do not allow new pods to schedule onto the node unless they tolerate the taint, but allow all pods submitted to Kubelet without going through the scheduler to start, and allow all already-running pods to continue running. Enforced by the scheduler. - `\"PreferNoSchedule\"` Like TaintEffectNoSchedule, but the scheduler tries not to schedule new pods onto the node, rather than prohibiting new pods from scheduling onto the node entirely. Enforced by the scheduler. :param effect: The effect of this K8sIoApiCoreV1Toleration. :type: str """ + allowed_values = ["NoExecute", "NoSchedule", "PreferNoSchedule"] + if effect not in allowed_values: + raise ValueError( + "Invalid value for `effect` ({0}), must be one of {1}" + .format(effect, allowed_values) + ) self._effect = effect @@ -118,7 +124,7 @@ def key(self, key): def operator(self): """ Gets the operator of this K8sIoApiCoreV1Toleration. - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. Possible enum values: - `\"Equal\"` - `\"Exists\"` :return: The operator of this K8sIoApiCoreV1Toleration. :rtype: str @@ -129,11 +135,17 @@ def operator(self): def operator(self, operator): """ Sets the operator of this K8sIoApiCoreV1Toleration. - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. Possible enum values: - `\"Equal\"` - `\"Exists\"` :param operator: The operator of this K8sIoApiCoreV1Toleration. :type: str """ + allowed_values = ["Equal", "Exists"] + if operator not in allowed_values: + raise ValueError( + "Invalid value for `operator` ({0}), must be one of {1}" + .format(operator, allowed_values) + ) self._operator = operator diff --git a/kubevirt/models/k8s_io_api_core_v1_topology_spread_constraint.py b/kubevirt/models/k8s_io_api_core_v1_topology_spread_constraint.py index d68bb51e..26bf975c 100644 --- a/kubevirt/models/k8s_io_api_core_v1_topology_spread_constraint.py +++ b/kubevirt/models/k8s_io_api_core_v1_topology_spread_constraint.py @@ -32,31 +32,51 @@ class K8sIoApiCoreV1TopologySpreadConstraint(object): """ swagger_types = { 'label_selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', + 'match_label_keys': 'list[str]', 'max_skew': 'int', + 'min_domains': 'int', + 'node_affinity_policy': 'str', + 'node_taints_policy': 'str', 'topology_key': 'str', 'when_unsatisfiable': 'str' } attribute_map = { 'label_selector': 'labelSelector', + 'match_label_keys': 'matchLabelKeys', 'max_skew': 'maxSkew', + 'min_domains': 'minDomains', + 'node_affinity_policy': 'nodeAffinityPolicy', + 'node_taints_policy': 'nodeTaintsPolicy', 'topology_key': 'topologyKey', 'when_unsatisfiable': 'whenUnsatisfiable' } - def __init__(self, label_selector=None, max_skew=None, topology_key=None, when_unsatisfiable=None): + def __init__(self, label_selector=None, match_label_keys=None, max_skew=0, min_domains=None, node_affinity_policy=None, node_taints_policy=None, topology_key='', when_unsatisfiable=''): """ K8sIoApiCoreV1TopologySpreadConstraint - a model defined in Swagger """ self._label_selector = None + self._match_label_keys = None self._max_skew = None + self._min_domains = None + self._node_affinity_policy = None + self._node_taints_policy = None self._topology_key = None self._when_unsatisfiable = None if label_selector is not None: self.label_selector = label_selector + if match_label_keys is not None: + self.match_label_keys = match_label_keys self.max_skew = max_skew + if min_domains is not None: + self.min_domains = min_domains + if node_affinity_policy is not None: + self.node_affinity_policy = node_affinity_policy + if node_taints_policy is not None: + self.node_taints_policy = node_taints_policy self.topology_key = topology_key self.when_unsatisfiable = when_unsatisfiable @@ -83,11 +103,34 @@ def label_selector(self, label_selector): self._label_selector = label_selector + @property + def match_label_keys(self): + """ + Gets the match_label_keys of this K8sIoApiCoreV1TopologySpreadConstraint. + MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. + + :return: The match_label_keys of this K8sIoApiCoreV1TopologySpreadConstraint. + :rtype: list[str] + """ + return self._match_label_keys + + @match_label_keys.setter + def match_label_keys(self, match_label_keys): + """ + Sets the match_label_keys of this K8sIoApiCoreV1TopologySpreadConstraint. + MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. + + :param match_label_keys: The match_label_keys of this K8sIoApiCoreV1TopologySpreadConstraint. + :type: list[str] + """ + + self._match_label_keys = match_label_keys + @property def max_skew(self): """ Gets the max_skew of this K8sIoApiCoreV1TopologySpreadConstraint. - MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. + MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. :return: The max_skew of this K8sIoApiCoreV1TopologySpreadConstraint. :rtype: int @@ -98,7 +141,7 @@ def max_skew(self): def max_skew(self, max_skew): """ Sets the max_skew of this K8sIoApiCoreV1TopologySpreadConstraint. - MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. + MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. :param max_skew: The max_skew of this K8sIoApiCoreV1TopologySpreadConstraint. :type: int @@ -108,11 +151,92 @@ def max_skew(self, max_skew): self._max_skew = max_skew + @property + def min_domains(self): + """ + Gets the min_domains of this K8sIoApiCoreV1TopologySpreadConstraint. + MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). + + :return: The min_domains of this K8sIoApiCoreV1TopologySpreadConstraint. + :rtype: int + """ + return self._min_domains + + @min_domains.setter + def min_domains(self, min_domains): + """ + Sets the min_domains of this K8sIoApiCoreV1TopologySpreadConstraint. + MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). + + :param min_domains: The min_domains of this K8sIoApiCoreV1TopologySpreadConstraint. + :type: int + """ + + self._min_domains = min_domains + + @property + def node_affinity_policy(self): + """ + Gets the node_affinity_policy of this K8sIoApiCoreV1TopologySpreadConstraint. + NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. + + :return: The node_affinity_policy of this K8sIoApiCoreV1TopologySpreadConstraint. + :rtype: str + """ + return self._node_affinity_policy + + @node_affinity_policy.setter + def node_affinity_policy(self, node_affinity_policy): + """ + Sets the node_affinity_policy of this K8sIoApiCoreV1TopologySpreadConstraint. + NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. + + :param node_affinity_policy: The node_affinity_policy of this K8sIoApiCoreV1TopologySpreadConstraint. + :type: str + """ + allowed_values = ["Honor", "Ignore"] + if node_affinity_policy not in allowed_values: + raise ValueError( + "Invalid value for `node_affinity_policy` ({0}), must be one of {1}" + .format(node_affinity_policy, allowed_values) + ) + + self._node_affinity_policy = node_affinity_policy + + @property + def node_taints_policy(self): + """ + Gets the node_taints_policy of this K8sIoApiCoreV1TopologySpreadConstraint. + NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. + + :return: The node_taints_policy of this K8sIoApiCoreV1TopologySpreadConstraint. + :rtype: str + """ + return self._node_taints_policy + + @node_taints_policy.setter + def node_taints_policy(self, node_taints_policy): + """ + Sets the node_taints_policy of this K8sIoApiCoreV1TopologySpreadConstraint. + NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. + + :param node_taints_policy: The node_taints_policy of this K8sIoApiCoreV1TopologySpreadConstraint. + :type: str + """ + allowed_values = ["Honor", "Ignore"] + if node_taints_policy not in allowed_values: + raise ValueError( + "Invalid value for `node_taints_policy` ({0}), must be one of {1}" + .format(node_taints_policy, allowed_values) + ) + + self._node_taints_policy = node_taints_policy + @property def topology_key(self): """ Gets the topology_key of this K8sIoApiCoreV1TopologySpreadConstraint. - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a \"bucket\", and try to put balanced number of pods into each bucket. It's a required field. + TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field. :return: The topology_key of this K8sIoApiCoreV1TopologySpreadConstraint. :rtype: str @@ -123,7 +247,7 @@ def topology_key(self): def topology_key(self, topology_key): """ Sets the topology_key of this K8sIoApiCoreV1TopologySpreadConstraint. - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a \"bucket\", and try to put balanced number of pods into each bucket. It's a required field. + TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field. :param topology_key: The topology_key of this K8sIoApiCoreV1TopologySpreadConstraint. :type: str @@ -137,7 +261,7 @@ def topology_key(self, topology_key): def when_unsatisfiable(self): """ Gets the when_unsatisfiable of this K8sIoApiCoreV1TopologySpreadConstraint. - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, but giving higher precedence to topologies that would help reduce the skew. A constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, but giving higher precedence to topologies that would help reduce the skew. A constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. Possible enum values: - `\"DoNotSchedule\"` instructs the scheduler not to schedule the pod when constraints are not satisfied. - `\"ScheduleAnyway\"` instructs the scheduler to schedule the pod even if constraints are not satisfied. :return: The when_unsatisfiable of this K8sIoApiCoreV1TopologySpreadConstraint. :rtype: str @@ -148,13 +272,19 @@ def when_unsatisfiable(self): def when_unsatisfiable(self, when_unsatisfiable): """ Sets the when_unsatisfiable of this K8sIoApiCoreV1TopologySpreadConstraint. - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, but giving higher precedence to topologies that would help reduce the skew. A constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, but giving higher precedence to topologies that would help reduce the skew. A constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. Possible enum values: - `\"DoNotSchedule\"` instructs the scheduler not to schedule the pod when constraints are not satisfied. - `\"ScheduleAnyway\"` instructs the scheduler to schedule the pod even if constraints are not satisfied. :param when_unsatisfiable: The when_unsatisfiable of this K8sIoApiCoreV1TopologySpreadConstraint. :type: str """ if when_unsatisfiable is None: raise ValueError("Invalid value for `when_unsatisfiable`, must not be `None`") + allowed_values = ["DoNotSchedule", "ScheduleAnyway"] + if when_unsatisfiable not in allowed_values: + raise ValueError( + "Invalid value for `when_unsatisfiable` ({0}), must be one of {1}" + .format(when_unsatisfiable, allowed_values) + ) self._when_unsatisfiable = when_unsatisfiable diff --git a/kubevirt/models/k8s_io_api_core_v1_typed_local_object_reference.py b/kubevirt/models/k8s_io_api_core_v1_typed_local_object_reference.py index e60e8f06..d9156728 100644 --- a/kubevirt/models/k8s_io_api_core_v1_typed_local_object_reference.py +++ b/kubevirt/models/k8s_io_api_core_v1_typed_local_object_reference.py @@ -42,7 +42,7 @@ class K8sIoApiCoreV1TypedLocalObjectReference(object): 'name': 'name' } - def __init__(self, api_group=None, kind=None, name=None): + def __init__(self, api_group=None, kind='', name=''): """ K8sIoApiCoreV1TypedLocalObjectReference - a model defined in Swagger """ diff --git a/kubevirt/models/k8s_io_api_core_v1_typed_object_reference.py b/kubevirt/models/k8s_io_api_core_v1_typed_object_reference.py new file mode 100644 index 00000000..b32a381d --- /dev/null +++ b/kubevirt/models/k8s_io_api_core_v1_typed_object_reference.py @@ -0,0 +1,211 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class K8sIoApiCoreV1TypedObjectReference(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_group': 'str', + 'kind': 'str', + 'name': 'str', + 'namespace': 'str' + } + + attribute_map = { + 'api_group': 'apiGroup', + 'kind': 'kind', + 'name': 'name', + 'namespace': 'namespace' + } + + def __init__(self, api_group=None, kind='', name='', namespace=None): + """ + K8sIoApiCoreV1TypedObjectReference - a model defined in Swagger + """ + + self._api_group = None + self._kind = None + self._name = None + self._namespace = None + + if api_group is not None: + self.api_group = api_group + self.kind = kind + self.name = name + if namespace is not None: + self.namespace = namespace + + @property + def api_group(self): + """ + Gets the api_group of this K8sIoApiCoreV1TypedObjectReference. + APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + + :return: The api_group of this K8sIoApiCoreV1TypedObjectReference. + :rtype: str + """ + return self._api_group + + @api_group.setter + def api_group(self, api_group): + """ + Sets the api_group of this K8sIoApiCoreV1TypedObjectReference. + APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + + :param api_group: The api_group of this K8sIoApiCoreV1TypedObjectReference. + :type: str + """ + + self._api_group = api_group + + @property + def kind(self): + """ + Gets the kind of this K8sIoApiCoreV1TypedObjectReference. + Kind is the type of resource being referenced + + :return: The kind of this K8sIoApiCoreV1TypedObjectReference. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this K8sIoApiCoreV1TypedObjectReference. + Kind is the type of resource being referenced + + :param kind: The kind of this K8sIoApiCoreV1TypedObjectReference. + :type: str + """ + if kind is None: + raise ValueError("Invalid value for `kind`, must not be `None`") + + self._kind = kind + + @property + def name(self): + """ + Gets the name of this K8sIoApiCoreV1TypedObjectReference. + Name is the name of resource being referenced + + :return: The name of this K8sIoApiCoreV1TypedObjectReference. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this K8sIoApiCoreV1TypedObjectReference. + Name is the name of resource being referenced + + :param name: The name of this K8sIoApiCoreV1TypedObjectReference. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def namespace(self): + """ + Gets the namespace of this K8sIoApiCoreV1TypedObjectReference. + Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled. + + :return: The namespace of this K8sIoApiCoreV1TypedObjectReference. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """ + Sets the namespace of this K8sIoApiCoreV1TypedObjectReference. + Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled. + + :param namespace: The namespace of this K8sIoApiCoreV1TypedObjectReference. + :type: str + """ + + self._namespace = namespace + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, K8sIoApiCoreV1TypedObjectReference): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/k8s_io_api_core_v1_weighted_pod_affinity_term.py b/kubevirt/models/k8s_io_api_core_v1_weighted_pod_affinity_term.py index 6c223f4e..0d939ad1 100644 --- a/kubevirt/models/k8s_io_api_core_v1_weighted_pod_affinity_term.py +++ b/kubevirt/models/k8s_io_api_core_v1_weighted_pod_affinity_term.py @@ -40,7 +40,7 @@ class K8sIoApiCoreV1WeightedPodAffinityTerm(object): 'weight': 'weight' } - def __init__(self, pod_affinity_term=None, weight=None): + def __init__(self, pod_affinity_term=None, weight=0): """ K8sIoApiCoreV1WeightedPodAffinityTerm - a model defined in Swagger """ diff --git a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group.py index e458aa2c..9d7d0c50 100644 --- a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group.py @@ -48,7 +48,7 @@ class K8sIoApimachineryPkgApisMetaV1APIGroup(object): 'versions': 'versions' } - def __init__(self, api_version=None, kind=None, name=None, preferred_version=None, server_address_by_client_cid_rs=None, versions=None): + def __init__(self, api_version=None, kind=None, name='', preferred_version=None, server_address_by_client_cid_rs=None, versions=None): """ K8sIoApimachineryPkgApisMetaV1APIGroup - a model defined in Swagger """ diff --git a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource.py index 730bfa21..cd551c6f 100644 --- a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource.py @@ -56,7 +56,7 @@ class K8sIoApimachineryPkgApisMetaV1APIResource(object): 'version': 'version' } - def __init__(self, categories=None, group=None, kind=None, name=None, namespaced=None, short_names=None, singular_name=None, storage_version_hash=None, verbs=None, version=None): + def __init__(self, categories=None, group=None, kind='', name='', namespaced=False, short_names=None, singular_name='', storage_version_hash=None, verbs=None, version=None): """ K8sIoApimachineryPkgApisMetaV1APIResource - a model defined in Swagger """ diff --git a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_list.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_list.py index d0675fc1..422a66b0 100644 --- a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_list.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_list.py @@ -44,7 +44,7 @@ class K8sIoApimachineryPkgApisMetaV1APIResourceList(object): 'resources': 'resources' } - def __init__(self, api_version=None, group_version=None, kind=None, resources=None): + def __init__(self, api_version=None, group_version='', kind=None, resources=None): """ K8sIoApimachineryPkgApisMetaV1APIResourceList - a model defined in Swagger """ diff --git a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_group_version_for_discovery.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_group_version_for_discovery.py index 8f086b51..e63f5288 100644 --- a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_group_version_for_discovery.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_group_version_for_discovery.py @@ -40,7 +40,7 @@ class K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery(object): 'version': 'version' } - def __init__(self, group_version=None, version=None): + def __init__(self, group_version='', version=''): """ K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery - a model defined in Swagger """ diff --git a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_requirement.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_requirement.py index 44d0b8a2..97b3465e 100644 --- a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_requirement.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_requirement.py @@ -42,7 +42,7 @@ class K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement(object): 'values': 'values' } - def __init__(self, key=None, operator=None, values=None): + def __init__(self, key='', operator='', values=None): """ K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement - a model defined in Swagger """ diff --git a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_list_meta.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_list_meta.py index f840c505..492cd094 100644 --- a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_list_meta.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_list_meta.py @@ -136,7 +136,7 @@ def resource_version(self, resource_version): def self_link(self): """ Gets the self_link of this K8sIoApimachineryPkgApisMetaV1ListMeta. - selfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. :return: The self_link of this K8sIoApimachineryPkgApisMetaV1ListMeta. :rtype: str @@ -147,7 +147,7 @@ def self_link(self): def self_link(self, self_link): """ Sets the self_link of this K8sIoApimachineryPkgApisMetaV1ListMeta. - selfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. :param self_link: The self_link of this K8sIoApimachineryPkgApisMetaV1ListMeta. :type: str diff --git a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry.py index 3af9622b..935b3f85 100644 --- a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry.py @@ -220,7 +220,7 @@ def subresource(self, subresource): def time(self): """ Gets the time of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over. :return: The time of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. :rtype: K8sIoApimachineryPkgApisMetaV1Time @@ -231,7 +231,7 @@ def time(self): def time(self, time): """ Sets the time of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over. :param time: The time of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. :type: K8sIoApimachineryPkgApisMetaV1Time diff --git a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.py index d34a47d9..f61b810a 100644 --- a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.py @@ -32,7 +32,6 @@ class K8sIoApimachineryPkgApisMetaV1ObjectMeta(object): """ swagger_types = { 'annotations': 'dict(str, str)', - 'cluster_name': 'str', 'deletion_grace_period_seconds': 'int', 'deletion_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', 'finalizers': 'list[str]', @@ -50,7 +49,6 @@ class K8sIoApimachineryPkgApisMetaV1ObjectMeta(object): attribute_map = { 'annotations': 'annotations', - 'cluster_name': 'clusterName', 'deletion_grace_period_seconds': 'deletionGracePeriodSeconds', 'deletion_timestamp': 'deletionTimestamp', 'finalizers': 'finalizers', @@ -66,13 +64,12 @@ class K8sIoApimachineryPkgApisMetaV1ObjectMeta(object): 'uid': 'uid' } - def __init__(self, annotations=None, cluster_name=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, uid=None): + def __init__(self, annotations=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, uid=None): """ K8sIoApimachineryPkgApisMetaV1ObjectMeta - a model defined in Swagger """ self._annotations = None - self._cluster_name = None self._deletion_grace_period_seconds = None self._deletion_timestamp = None self._finalizers = None @@ -89,8 +86,6 @@ def __init__(self, annotations=None, cluster_name=None, deletion_grace_period_se if annotations is not None: self.annotations = annotations - if cluster_name is not None: - self.cluster_name = cluster_name if deletion_grace_period_seconds is not None: self.deletion_grace_period_seconds = deletion_grace_period_seconds if deletion_timestamp is not None: @@ -141,29 +136,6 @@ def annotations(self, annotations): self._annotations = annotations - @property - def cluster_name(self): - """ - Gets the cluster_name of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - - :return: The cluster_name of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. - :rtype: str - """ - return self._cluster_name - - @cluster_name.setter - def cluster_name(self, cluster_name): - """ - Sets the cluster_name of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - - :param cluster_name: The cluster_name of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. - :type: str - """ - - self._cluster_name = cluster_name - @property def deletion_grace_period_seconds(self): """ @@ -237,7 +209,7 @@ def finalizers(self, finalizers): def generate_name(self): """ Gets the generate_name of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency :return: The generate_name of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :rtype: str @@ -248,7 +220,7 @@ def generate_name(self): def generate_name(self, generate_name): """ Sets the generate_name of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency :param generate_name: The generate_name of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :type: str @@ -421,7 +393,7 @@ def resource_version(self, resource_version): def self_link(self): """ Gets the self_link of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. - SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. :return: The self_link of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :rtype: str @@ -432,7 +404,7 @@ def self_link(self): def self_link(self, self_link): """ Sets the self_link of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. - SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. :param self_link: The self_link of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :type: str diff --git a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference.py index dad4c222..e34ef815 100644 --- a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference.py @@ -48,7 +48,7 @@ class K8sIoApimachineryPkgApisMetaV1OwnerReference(object): 'uid': 'uid' } - def __init__(self, api_version=None, block_owner_deletion=None, controller=None, kind=None, name=None, uid=None): + def __init__(self, api_version='', block_owner_deletion=None, controller=None, kind='', name='', uid=''): """ K8sIoApimachineryPkgApisMetaV1OwnerReference - a model defined in Swagger """ @@ -98,7 +98,7 @@ def api_version(self, api_version): def block_owner_deletion(self): """ Gets the block_owner_deletion of this K8sIoApimachineryPkgApisMetaV1OwnerReference. - If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. :return: The block_owner_deletion of this K8sIoApimachineryPkgApisMetaV1OwnerReference. :rtype: bool @@ -109,7 +109,7 @@ def block_owner_deletion(self): def block_owner_deletion(self, block_owner_deletion): """ Sets the block_owner_deletion of this K8sIoApimachineryPkgApisMetaV1OwnerReference. - If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. :param block_owner_deletion: The block_owner_deletion of this K8sIoApimachineryPkgApisMetaV1OwnerReference. :type: bool diff --git a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr.py index 19698391..d7093aef 100644 --- a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr.py @@ -40,7 +40,7 @@ class K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR(object): 'server_address': 'serverAddress' } - def __init__(self, client_cidr=None, server_address=None): + def __init__(self, client_cidr='', server_address=''): """ K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR - a model defined in Swagger """ diff --git a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_watch_event.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_watch_event.py index 9554881a..745fbdee 100644 --- a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_watch_event.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_watch_event.py @@ -40,7 +40,7 @@ class K8sIoApimachineryPkgApisMetaV1WatchEvent(object): 'type': 'type' } - def __init__(self, object=None, type=None): + def __init__(self, object=None, type=''): """ K8sIoApimachineryPkgApisMetaV1WatchEvent - a model defined in Swagger """ diff --git a/kubevirt/models/v1_access_credential_secret_source.py b/kubevirt/models/v1_access_credential_secret_source.py index 0406e45e..2df07899 100644 --- a/kubevirt/models/v1_access_credential_secret_source.py +++ b/kubevirt/models/v1_access_credential_secret_source.py @@ -38,7 +38,7 @@ class V1AccessCredentialSecretSource(object): 'secret_name': 'secretName' } - def __init__(self, secret_name=None): + def __init__(self, secret_name=''): """ V1AccessCredentialSecretSource - a model defined in Swagger """ diff --git a/kubevirt/models/v1_add_interface_options.py b/kubevirt/models/v1_add_interface_options.py index 32543781..e1becd2d 100644 --- a/kubevirt/models/v1_add_interface_options.py +++ b/kubevirt/models/v1_add_interface_options.py @@ -40,7 +40,7 @@ class V1AddInterfaceOptions(object): 'network_attachment_definition_name': 'networkAttachmentDefinitionName' } - def __init__(self, name=None, network_attachment_definition_name=None): + def __init__(self, name='', network_attachment_definition_name=''): """ V1AddInterfaceOptions - a model defined in Swagger """ diff --git a/kubevirt/models/v1_add_volume_options.py b/kubevirt/models/v1_add_volume_options.py index 86df0bfa..20dfb0c7 100644 --- a/kubevirt/models/v1_add_volume_options.py +++ b/kubevirt/models/v1_add_volume_options.py @@ -44,7 +44,7 @@ class V1AddVolumeOptions(object): 'volume_source': 'volumeSource' } - def __init__(self, disk=None, dry_run=None, name=None, volume_source=None): + def __init__(self, disk=None, dry_run=None, name='', volume_source=None): """ V1AddVolumeOptions - a model defined in Swagger """ diff --git a/kubevirt/models/v1_container_disk_source.py b/kubevirt/models/v1_container_disk_source.py index 2ec05ffc..86d1c12d 100644 --- a/kubevirt/models/v1_container_disk_source.py +++ b/kubevirt/models/v1_container_disk_source.py @@ -44,7 +44,7 @@ class V1ContainerDiskSource(object): 'path': 'path' } - def __init__(self, image=None, image_pull_policy=None, image_pull_secret=None, path=None): + def __init__(self, image='', image_pull_policy=None, image_pull_secret=None, path=None): """ V1ContainerDiskSource - a model defined in Swagger """ @@ -91,7 +91,7 @@ def image(self, image): def image_pull_policy(self): """ Gets the image_pull_policy of this V1ContainerDiskSource. - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present :return: The image_pull_policy of this V1ContainerDiskSource. :rtype: str @@ -102,11 +102,17 @@ def image_pull_policy(self): def image_pull_policy(self, image_pull_policy): """ Sets the image_pull_policy of this V1ContainerDiskSource. - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present :param image_pull_policy: The image_pull_policy of this V1ContainerDiskSource. :type: str """ + allowed_values = ["Always", "IfNotPresent", "Never"] + if image_pull_policy not in allowed_values: + raise ValueError( + "Invalid value for `image_pull_policy` ({0}), must be one of {1}" + .format(image_pull_policy, allowed_values) + ) self._image_pull_policy = image_pull_policy diff --git a/kubevirt/models/v1_cpu_feature.py b/kubevirt/models/v1_cpu_feature.py index a67c9da3..7446987a 100644 --- a/kubevirt/models/v1_cpu_feature.py +++ b/kubevirt/models/v1_cpu_feature.py @@ -40,7 +40,7 @@ class V1CPUFeature(object): 'policy': 'policy' } - def __init__(self, name=None, policy=None): + def __init__(self, name='', policy=None): """ V1CPUFeature - a model defined in Swagger """ diff --git a/kubevirt/models/v1_custom_block_size.py b/kubevirt/models/v1_custom_block_size.py index 33533750..b9729754 100644 --- a/kubevirt/models/v1_custom_block_size.py +++ b/kubevirt/models/v1_custom_block_size.py @@ -40,7 +40,7 @@ class V1CustomBlockSize(object): 'physical': 'physical' } - def __init__(self, logical=None, physical=None): + def __init__(self, logical=0, physical=0): """ V1CustomBlockSize - a model defined in Swagger """ diff --git a/kubevirt/models/v1_customize_components_patch.py b/kubevirt/models/v1_customize_components_patch.py index 8602c25a..d9fecee7 100644 --- a/kubevirt/models/v1_customize_components_patch.py +++ b/kubevirt/models/v1_customize_components_patch.py @@ -44,7 +44,7 @@ class V1CustomizeComponentsPatch(object): 'type': 'type' } - def __init__(self, patch=None, resource_name=None, resource_type=None, type=None): + def __init__(self, patch='', resource_name='', resource_type='', type=''): """ V1CustomizeComponentsPatch - a model defined in Swagger """ diff --git a/kubevirt/models/v1_data_volume_source.py b/kubevirt/models/v1_data_volume_source.py index 05e28648..b2a55d60 100644 --- a/kubevirt/models/v1_data_volume_source.py +++ b/kubevirt/models/v1_data_volume_source.py @@ -40,7 +40,7 @@ class V1DataVolumeSource(object): 'name': 'name' } - def __init__(self, hotpluggable=None, name=None): + def __init__(self, hotpluggable=None, name=''): """ V1DataVolumeSource - a model defined in Swagger """ diff --git a/kubevirt/models/v1_dhcp_private_options.py b/kubevirt/models/v1_dhcp_private_options.py index 322afd1c..47aff9d6 100644 --- a/kubevirt/models/v1_dhcp_private_options.py +++ b/kubevirt/models/v1_dhcp_private_options.py @@ -40,7 +40,7 @@ class V1DHCPPrivateOptions(object): 'value': 'value' } - def __init__(self, option=None, value=None): + def __init__(self, option=0, value=''): """ V1DHCPPrivateOptions - a model defined in Swagger """ diff --git a/kubevirt/models/v1_disk.py b/kubevirt/models/v1_disk.py index 19b2880b..11b2639b 100644 --- a/kubevirt/models/v1_disk.py +++ b/kubevirt/models/v1_disk.py @@ -60,7 +60,7 @@ class V1Disk(object): 'tag': 'tag' } - def __init__(self, block_size=None, boot_order=None, cache=None, cdrom=None, dedicated_io_thread=None, disk=None, io=None, lun=None, name=None, serial=None, shareable=None, tag=None): + def __init__(self, block_size=None, boot_order=None, cache=None, cdrom=None, dedicated_io_thread=None, disk=None, io=None, lun=None, name='', serial=None, shareable=None, tag=None): """ V1Disk - a model defined in Swagger """ diff --git a/kubevirt/models/v1_filesystem.py b/kubevirt/models/v1_filesystem.py index c529b37b..6ee1886a 100644 --- a/kubevirt/models/v1_filesystem.py +++ b/kubevirt/models/v1_filesystem.py @@ -40,7 +40,7 @@ class V1Filesystem(object): 'virtiofs': 'virtiofs' } - def __init__(self, name=None, virtiofs=None): + def __init__(self, name='', virtiofs=None): """ V1Filesystem - a model defined in Swagger """ diff --git a/kubevirt/models/v1_generation_status.py b/kubevirt/models/v1_generation_status.py index b5f1bcd8..03430c3a 100644 --- a/kubevirt/models/v1_generation_status.py +++ b/kubevirt/models/v1_generation_status.py @@ -48,7 +48,7 @@ class V1GenerationStatus(object): 'resource': 'resource' } - def __init__(self, group=None, hash=None, last_generation=None, name=None, namespace=None, resource=None): + def __init__(self, group='', hash=None, last_generation=0, name='', namespace=None, resource=''): """ V1GenerationStatus - a model defined in Swagger """ diff --git a/kubevirt/models/v1_gpu.py b/kubevirt/models/v1_gpu.py index 3d542e5c..21d969ca 100644 --- a/kubevirt/models/v1_gpu.py +++ b/kubevirt/models/v1_gpu.py @@ -44,7 +44,7 @@ class V1GPU(object): 'virtual_gpu_options': 'virtualGPUOptions' } - def __init__(self, device_name=None, name=None, tag=None, virtual_gpu_options=None): + def __init__(self, device_name='', name='', tag=None, virtual_gpu_options=None): """ V1GPU - a model defined in Swagger """ diff --git a/kubevirt/models/v1_guest_agent_command_info.py b/kubevirt/models/v1_guest_agent_command_info.py index e4912e6a..5f5772a7 100644 --- a/kubevirt/models/v1_guest_agent_command_info.py +++ b/kubevirt/models/v1_guest_agent_command_info.py @@ -40,7 +40,7 @@ class V1GuestAgentCommandInfo(object): 'name': 'name' } - def __init__(self, enabled=None, name=None): + def __init__(self, enabled=None, name=''): """ V1GuestAgentCommandInfo - a model defined in Swagger """ diff --git a/kubevirt/models/v1_host_device.py b/kubevirt/models/v1_host_device.py index 3c7dbd1e..7ae09ab1 100644 --- a/kubevirt/models/v1_host_device.py +++ b/kubevirt/models/v1_host_device.py @@ -42,7 +42,7 @@ class V1HostDevice(object): 'tag': 'tag' } - def __init__(self, device_name=None, name=None, tag=None): + def __init__(self, device_name='', name='', tag=None): """ V1HostDevice - a model defined in Swagger """ diff --git a/kubevirt/models/v1_host_disk.py b/kubevirt/models/v1_host_disk.py index 7b5c5029..a41a2a34 100644 --- a/kubevirt/models/v1_host_disk.py +++ b/kubevirt/models/v1_host_disk.py @@ -44,7 +44,7 @@ class V1HostDisk(object): 'type': 'type' } - def __init__(self, capacity=None, path=None, shared=None, type=None): + def __init__(self, capacity=None, path='', shared=None, type=''): """ V1HostDisk - a model defined in Swagger """ diff --git a/kubevirt/models/v1_input.py b/kubevirt/models/v1_input.py index e8f5137e..6c3fe498 100644 --- a/kubevirt/models/v1_input.py +++ b/kubevirt/models/v1_input.py @@ -42,7 +42,7 @@ class V1Input(object): 'type': 'type' } - def __init__(self, bus=None, name=None, type=None): + def __init__(self, bus=None, name='', type=''): """ V1Input - a model defined in Swagger """ diff --git a/kubevirt/models/v1_interface.py b/kubevirt/models/v1_interface.py index 47458b02..99a213e5 100644 --- a/kubevirt/models/v1_interface.py +++ b/kubevirt/models/v1_interface.py @@ -66,7 +66,7 @@ class V1Interface(object): 'tag': 'tag' } - def __init__(self, acpi_index=None, boot_order=None, bridge=None, dhcp_options=None, mac_address=None, macvtap=None, masquerade=None, model=None, name=None, passt=None, pci_address=None, ports=None, slirp=None, sriov=None, tag=None): + def __init__(self, acpi_index=None, boot_order=None, bridge=None, dhcp_options=None, mac_address=None, macvtap=None, masquerade=None, model=None, name='', passt=None, pci_address=None, ports=None, slirp=None, sriov=None, tag=None): """ V1Interface - a model defined in Swagger """ diff --git a/kubevirt/models/v1_kernel_boot_container.py b/kubevirt/models/v1_kernel_boot_container.py index 2e2f944c..78a24dde 100644 --- a/kubevirt/models/v1_kernel_boot_container.py +++ b/kubevirt/models/v1_kernel_boot_container.py @@ -46,7 +46,7 @@ class V1KernelBootContainer(object): 'kernel_path': 'kernelPath' } - def __init__(self, image=None, image_pull_policy=None, image_pull_secret=None, initrd_path=None, kernel_path=None): + def __init__(self, image='', image_pull_policy=None, image_pull_secret=None, initrd_path=None, kernel_path=None): """ V1KernelBootContainer - a model defined in Swagger """ @@ -96,7 +96,7 @@ def image(self, image): def image_pull_policy(self): """ Gets the image_pull_policy of this V1KernelBootContainer. - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present :return: The image_pull_policy of this V1KernelBootContainer. :rtype: str @@ -107,11 +107,17 @@ def image_pull_policy(self): def image_pull_policy(self, image_pull_policy): """ Sets the image_pull_policy of this V1KernelBootContainer. - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present :param image_pull_policy: The image_pull_policy of this V1KernelBootContainer. :type: str """ + allowed_values = ["Always", "IfNotPresent", "Never"] + if image_pull_policy not in allowed_values: + raise ValueError( + "Invalid value for `image_pull_policy` ({0}), must be one of {1}" + .format(image_pull_policy, allowed_values) + ) self._image_pull_policy = image_pull_policy diff --git a/kubevirt/models/v1_kube_virt_condition.py b/kubevirt/models/v1_kube_virt_condition.py index 01f3191d..f993cd26 100644 --- a/kubevirt/models/v1_kube_virt_condition.py +++ b/kubevirt/models/v1_kube_virt_condition.py @@ -44,7 +44,7 @@ class V1KubeVirtCondition(object): 'type': 'type' } - def __init__(self, message=None, reason=None, status=None, type=None): + def __init__(self, message=None, reason=None, status='', type=''): """ V1KubeVirtCondition - a model defined in Swagger """ diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index 6ef031df..8d410e72 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -432,6 +432,7 @@ def handler_configuration(self, handler_configuration): def image_pull_policy(self): """ Gets the image_pull_policy of this V1KubeVirtConfiguration. + Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present :return: The image_pull_policy of this V1KubeVirtConfiguration. :rtype: str @@ -442,10 +443,17 @@ def image_pull_policy(self): def image_pull_policy(self, image_pull_policy): """ Sets the image_pull_policy of this V1KubeVirtConfiguration. + Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present :param image_pull_policy: The image_pull_policy of this V1KubeVirtConfiguration. :type: str """ + allowed_values = ["Always", "IfNotPresent", "Never"] + if image_pull_policy not in allowed_values: + raise ValueError( + "Invalid value for `image_pull_policy` ({0}), must be one of {1}" + .format(image_pull_policy, allowed_values) + ) self._image_pull_policy = image_pull_policy diff --git a/kubevirt/models/v1_kube_virt_spec.py b/kubevirt/models/v1_kube_virt_spec.py index 0be242a8..c1180253 100644 --- a/kubevirt/models/v1_kube_virt_spec.py +++ b/kubevirt/models/v1_kube_virt_spec.py @@ -197,7 +197,7 @@ def customize_components(self, customize_components): def image_pull_policy(self): """ Gets the image_pull_policy of this V1KubeVirtSpec. - The ImagePullPolicy to use. + The ImagePullPolicy to use. Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present :return: The image_pull_policy of this V1KubeVirtSpec. :rtype: str @@ -208,11 +208,17 @@ def image_pull_policy(self): def image_pull_policy(self, image_pull_policy): """ Sets the image_pull_policy of this V1KubeVirtSpec. - The ImagePullPolicy to use. + The ImagePullPolicy to use. Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present :param image_pull_policy: The image_pull_policy of this V1KubeVirtSpec. :type: str """ + allowed_values = ["Always", "IfNotPresent", "Never"] + if image_pull_policy not in allowed_values: + raise ValueError( + "Invalid value for `image_pull_policy` ({0}), must be one of {1}" + .format(image_pull_policy, allowed_values) + ) self._image_pull_policy = image_pull_policy diff --git a/kubevirt/models/v1_machine.py b/kubevirt/models/v1_machine.py index 5d81e739..cd8329d5 100644 --- a/kubevirt/models/v1_machine.py +++ b/kubevirt/models/v1_machine.py @@ -38,7 +38,7 @@ class V1Machine(object): 'type': 'type' } - def __init__(self, type=None): + def __init__(self, type=''): """ V1Machine - a model defined in Swagger """ diff --git a/kubevirt/models/v1_mediated_host_device.py b/kubevirt/models/v1_mediated_host_device.py index 93792117..b5312336 100644 --- a/kubevirt/models/v1_mediated_host_device.py +++ b/kubevirt/models/v1_mediated_host_device.py @@ -42,7 +42,7 @@ class V1MediatedHostDevice(object): 'resource_name': 'resourceName' } - def __init__(self, external_resource_provider=None, mdev_name_selector=None, resource_name=None): + def __init__(self, external_resource_provider=None, mdev_name_selector='', resource_name=''): """ V1MediatedHostDevice - a model defined in Swagger """ diff --git a/kubevirt/models/v1_memory_dump_volume_source.py b/kubevirt/models/v1_memory_dump_volume_source.py index 40b066c0..99a5306c 100644 --- a/kubevirt/models/v1_memory_dump_volume_source.py +++ b/kubevirt/models/v1_memory_dump_volume_source.py @@ -42,7 +42,7 @@ class V1MemoryDumpVolumeSource(object): 'read_only': 'readOnly' } - def __init__(self, claim_name=None, hotpluggable=None, read_only=None): + def __init__(self, claim_name='', hotpluggable=None, read_only=None): """ V1MemoryDumpVolumeSource - a model defined in Swagger """ @@ -61,7 +61,7 @@ def __init__(self, claim_name=None, hotpluggable=None, read_only=None): def claim_name(self): """ Gets the claim_name of this V1MemoryDumpVolumeSource. - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims :return: The claim_name of this V1MemoryDumpVolumeSource. :rtype: str @@ -72,7 +72,7 @@ def claim_name(self): def claim_name(self, claim_name): """ Sets the claim_name of this V1MemoryDumpVolumeSource. - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims :param claim_name: The claim_name of this V1MemoryDumpVolumeSource. :type: str @@ -109,7 +109,7 @@ def hotpluggable(self, hotpluggable): def read_only(self): """ Gets the read_only of this V1MemoryDumpVolumeSource. - Will force the ReadOnly setting in VolumeMounts. Default false. + readOnly Will force the ReadOnly setting in VolumeMounts. Default false. :return: The read_only of this V1MemoryDumpVolumeSource. :rtype: bool @@ -120,7 +120,7 @@ def read_only(self): def read_only(self, read_only): """ Sets the read_only of this V1MemoryDumpVolumeSource. - Will force the ReadOnly setting in VolumeMounts. Default false. + readOnly Will force the ReadOnly setting in VolumeMounts. Default false. :param read_only: The read_only of this V1MemoryDumpVolumeSource. :type: bool diff --git a/kubevirt/models/v1_multus_network.py b/kubevirt/models/v1_multus_network.py index d9d22a8b..7f4652e6 100644 --- a/kubevirt/models/v1_multus_network.py +++ b/kubevirt/models/v1_multus_network.py @@ -40,7 +40,7 @@ class V1MultusNetwork(object): 'network_name': 'networkName' } - def __init__(self, default=None, network_name=None): + def __init__(self, default=None, network_name=''): """ V1MultusNetwork - a model defined in Swagger """ diff --git a/kubevirt/models/v1_network.py b/kubevirt/models/v1_network.py index 3052568d..70521364 100644 --- a/kubevirt/models/v1_network.py +++ b/kubevirt/models/v1_network.py @@ -42,7 +42,7 @@ class V1Network(object): 'pod': 'pod' } - def __init__(self, multus=None, name=None, pod=None): + def __init__(self, multus=None, name='', pod=None): """ V1Network - a model defined in Swagger """ diff --git a/kubevirt/models/v1_pci_host_device.py b/kubevirt/models/v1_pci_host_device.py index eb230787..dde620ca 100644 --- a/kubevirt/models/v1_pci_host_device.py +++ b/kubevirt/models/v1_pci_host_device.py @@ -42,7 +42,7 @@ class V1PciHostDevice(object): 'resource_name': 'resourceName' } - def __init__(self, external_resource_provider=None, pci_vendor_selector=None, resource_name=None): + def __init__(self, external_resource_provider=None, pci_vendor_selector='', resource_name=''): """ V1PciHostDevice - a model defined in Swagger """ diff --git a/kubevirt/models/v1_persistent_volume_claim_info.py b/kubevirt/models/v1_persistent_volume_claim_info.py index 7043779d..ec20885c 100644 --- a/kubevirt/models/v1_persistent_volume_claim_info.py +++ b/kubevirt/models/v1_persistent_volume_claim_info.py @@ -192,7 +192,7 @@ def requests(self, requests): def volume_mode(self): """ Gets the volume_mode of this V1PersistentVolumeClaimInfo. - VolumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + VolumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. :return: The volume_mode of this V1PersistentVolumeClaimInfo. :rtype: str @@ -203,11 +203,17 @@ def volume_mode(self): def volume_mode(self, volume_mode): """ Sets the volume_mode of this V1PersistentVolumeClaimInfo. - VolumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + VolumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. :param volume_mode: The volume_mode of this V1PersistentVolumeClaimInfo. :type: str """ + allowed_values = ["Block", "Filesystem"] + if volume_mode not in allowed_values: + raise ValueError( + "Invalid value for `volume_mode` ({0}), must be one of {1}" + .format(volume_mode, allowed_values) + ) self._volume_mode = volume_mode diff --git a/kubevirt/models/v1_persistent_volume_claim_volume_source.py b/kubevirt/models/v1_persistent_volume_claim_volume_source.py index 7c9968cb..792caeca 100644 --- a/kubevirt/models/v1_persistent_volume_claim_volume_source.py +++ b/kubevirt/models/v1_persistent_volume_claim_volume_source.py @@ -42,7 +42,7 @@ class V1PersistentVolumeClaimVolumeSource(object): 'read_only': 'readOnly' } - def __init__(self, claim_name=None, hotpluggable=None, read_only=None): + def __init__(self, claim_name='', hotpluggable=None, read_only=None): """ V1PersistentVolumeClaimVolumeSource - a model defined in Swagger """ @@ -61,7 +61,7 @@ def __init__(self, claim_name=None, hotpluggable=None, read_only=None): def claim_name(self): """ Gets the claim_name of this V1PersistentVolumeClaimVolumeSource. - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims :return: The claim_name of this V1PersistentVolumeClaimVolumeSource. :rtype: str @@ -72,7 +72,7 @@ def claim_name(self): def claim_name(self, claim_name): """ Sets the claim_name of this V1PersistentVolumeClaimVolumeSource. - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims :param claim_name: The claim_name of this V1PersistentVolumeClaimVolumeSource. :type: str @@ -109,7 +109,7 @@ def hotpluggable(self, hotpluggable): def read_only(self): """ Gets the read_only of this V1PersistentVolumeClaimVolumeSource. - Will force the ReadOnly setting in VolumeMounts. Default false. + readOnly Will force the ReadOnly setting in VolumeMounts. Default false. :return: The read_only of this V1PersistentVolumeClaimVolumeSource. :rtype: bool @@ -120,7 +120,7 @@ def read_only(self): def read_only(self, read_only): """ Sets the read_only of this V1PersistentVolumeClaimVolumeSource. - Will force the ReadOnly setting in VolumeMounts. Default false. + readOnly Will force the ReadOnly setting in VolumeMounts. Default false. :param read_only: The read_only of this V1PersistentVolumeClaimVolumeSource. :type: bool diff --git a/kubevirt/models/v1_port.py b/kubevirt/models/v1_port.py index 817f65be..ea2698c0 100644 --- a/kubevirt/models/v1_port.py +++ b/kubevirt/models/v1_port.py @@ -42,7 +42,7 @@ class V1Port(object): 'protocol': 'protocol' } - def __init__(self, name=None, port=None, protocol=None): + def __init__(self, name=None, port=0, protocol=None): """ V1Port - a model defined in Swagger """ diff --git a/kubevirt/models/v1_remove_volume_options.py b/kubevirt/models/v1_remove_volume_options.py index 09f3a2ff..6416e30e 100644 --- a/kubevirt/models/v1_remove_volume_options.py +++ b/kubevirt/models/v1_remove_volume_options.py @@ -40,7 +40,7 @@ class V1RemoveVolumeOptions(object): 'name': 'name' } - def __init__(self, dry_run=None, name=None): + def __init__(self, dry_run=None, name=''): """ V1RemoveVolumeOptions - a model defined in Swagger """ diff --git a/kubevirt/models/v1_sound_device.py b/kubevirt/models/v1_sound_device.py index 46385198..a00cf498 100644 --- a/kubevirt/models/v1_sound_device.py +++ b/kubevirt/models/v1_sound_device.py @@ -40,7 +40,7 @@ class V1SoundDevice(object): 'name': 'name' } - def __init__(self, model=None, name=None): + def __init__(self, model=None, name=''): """ V1SoundDevice - a model defined in Swagger """ diff --git a/kubevirt/models/v1_support_container_resources.py b/kubevirt/models/v1_support_container_resources.py index 9b546021..2cc3855c 100644 --- a/kubevirt/models/v1_support_container_resources.py +++ b/kubevirt/models/v1_support_container_resources.py @@ -40,7 +40,7 @@ class V1SupportContainerResources(object): 'type': 'type' } - def __init__(self, resources=None, type=None): + def __init__(self, resources=None, type=''): """ V1SupportContainerResources - a model defined in Swagger """ diff --git a/kubevirt/models/v1_token_bucket_rate_limiter.py b/kubevirt/models/v1_token_bucket_rate_limiter.py index 945a00f3..a9dd6166 100644 --- a/kubevirt/models/v1_token_bucket_rate_limiter.py +++ b/kubevirt/models/v1_token_bucket_rate_limiter.py @@ -40,7 +40,7 @@ class V1TokenBucketRateLimiter(object): 'qps': 'qps' } - def __init__(self, burst=None, qps=None): + def __init__(self, burst=0, qps=0.0): """ V1TokenBucketRateLimiter - a model defined in Swagger """ diff --git a/kubevirt/models/v1_virtual_machine_condition.py b/kubevirt/models/v1_virtual_machine_condition.py index 2abc9aa6..8dfa2afd 100644 --- a/kubevirt/models/v1_virtual_machine_condition.py +++ b/kubevirt/models/v1_virtual_machine_condition.py @@ -44,7 +44,7 @@ class V1VirtualMachineCondition(object): 'type': 'type' } - def __init__(self, message=None, reason=None, status=None, type=None): + def __init__(self, message=None, reason=None, status='', type=''): """ V1VirtualMachineCondition - a model defined in Swagger """ diff --git a/kubevirt/models/v1_virtual_machine_instance_condition.py b/kubevirt/models/v1_virtual_machine_instance_condition.py index 330f1804..ad181eab 100644 --- a/kubevirt/models/v1_virtual_machine_instance_condition.py +++ b/kubevirt/models/v1_virtual_machine_instance_condition.py @@ -44,7 +44,7 @@ class V1VirtualMachineInstanceCondition(object): 'type': 'type' } - def __init__(self, message=None, reason=None, status=None, type=None): + def __init__(self, message=None, reason=None, status='', type=''): """ V1VirtualMachineInstanceCondition - a model defined in Swagger """ diff --git a/kubevirt/models/v1_virtual_machine_instance_file_system.py b/kubevirt/models/v1_virtual_machine_instance_file_system.py index ab2514ab..6d014ef9 100644 --- a/kubevirt/models/v1_virtual_machine_instance_file_system.py +++ b/kubevirt/models/v1_virtual_machine_instance_file_system.py @@ -46,7 +46,7 @@ class V1VirtualMachineInstanceFileSystem(object): 'used_bytes': 'usedBytes' } - def __init__(self, disk_name=None, file_system_type=None, mount_point=None, total_bytes=None, used_bytes=None): + def __init__(self, disk_name='', file_system_type='', mount_point='', total_bytes=0, used_bytes=0): """ V1VirtualMachineInstanceFileSystem - a model defined in Swagger """ diff --git a/kubevirt/models/v1_virtual_machine_instance_guest_os_user.py b/kubevirt/models/v1_virtual_machine_instance_guest_os_user.py index edd2cb01..3593dae7 100644 --- a/kubevirt/models/v1_virtual_machine_instance_guest_os_user.py +++ b/kubevirt/models/v1_virtual_machine_instance_guest_os_user.py @@ -42,7 +42,7 @@ class V1VirtualMachineInstanceGuestOSUser(object): 'user_name': 'userName' } - def __init__(self, domain=None, login_time=None, user_name=None): + def __init__(self, domain=None, login_time=None, user_name=''): """ V1VirtualMachineInstanceGuestOSUser - a model defined in Swagger """ diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_condition.py b/kubevirt/models/v1_virtual_machine_instance_migration_condition.py index 50ba1cb1..ce78c00d 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_condition.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_condition.py @@ -44,7 +44,7 @@ class V1VirtualMachineInstanceMigrationCondition(object): 'type': 'type' } - def __init__(self, message=None, reason=None, status=None, type=None): + def __init__(self, message=None, reason=None, status='', type=''): """ V1VirtualMachineInstanceMigrationCondition - a model defined in Swagger """ diff --git a/kubevirt/models/v1_virtual_machine_instance_replica_set_condition.py b/kubevirt/models/v1_virtual_machine_instance_replica_set_condition.py index 145398a4..98e57672 100644 --- a/kubevirt/models/v1_virtual_machine_instance_replica_set_condition.py +++ b/kubevirt/models/v1_virtual_machine_instance_replica_set_condition.py @@ -44,7 +44,7 @@ class V1VirtualMachineInstanceReplicaSetCondition(object): 'type': 'type' } - def __init__(self, message=None, reason=None, status=None, type=None): + def __init__(self, message=None, reason=None, status='', type=''): """ V1VirtualMachineInstanceReplicaSetCondition - a model defined in Swagger """ diff --git a/kubevirt/models/v1_virtual_machine_instance_spec.py b/kubevirt/models/v1_virtual_machine_instance_spec.py index bd8d0e08..98f213f0 100644 --- a/kubevirt/models/v1_virtual_machine_instance_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_spec.py @@ -238,7 +238,7 @@ def dns_config(self, dns_config): def dns_policy(self): """ Gets the dns_policy of this V1VirtualMachineInstanceSpec. - Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. Possible enum values: - `\"ClusterFirst\"` indicates that the pod should use cluster DNS first unless hostNetwork is true, if it is available, then fall back on the default (as determined by kubelet) DNS settings. - `\"ClusterFirstWithHostNet\"` indicates that the pod should use cluster DNS first, if it is available, then fall back on the default (as determined by kubelet) DNS settings. - `\"Default\"` indicates that the pod should use the default (as determined by kubelet) DNS settings. - `\"None\"` indicates that the pod should use empty DNS settings. DNS parameters such as nameservers and search paths should be defined via DNSConfig. :return: The dns_policy of this V1VirtualMachineInstanceSpec. :rtype: str @@ -249,11 +249,17 @@ def dns_policy(self): def dns_policy(self, dns_policy): """ Sets the dns_policy of this V1VirtualMachineInstanceSpec. - Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. Possible enum values: - `\"ClusterFirst\"` indicates that the pod should use cluster DNS first unless hostNetwork is true, if it is available, then fall back on the default (as determined by kubelet) DNS settings. - `\"ClusterFirstWithHostNet\"` indicates that the pod should use cluster DNS first, if it is available, then fall back on the default (as determined by kubelet) DNS settings. - `\"Default\"` indicates that the pod should use the default (as determined by kubelet) DNS settings. - `\"None\"` indicates that the pod should use empty DNS settings. DNS parameters such as nameservers and search paths should be defined via DNSConfig. :param dns_policy: The dns_policy of this V1VirtualMachineInstanceSpec. :type: str """ + allowed_values = ["ClusterFirst", "ClusterFirstWithHostNet", "Default", "None"] + if dns_policy not in allowed_values: + raise ValueError( + "Invalid value for `dns_policy` ({0}), must be one of {1}" + .format(dns_policy, allowed_values) + ) self._dns_policy = dns_policy diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index 8f83dfaa..bd736202 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -80,7 +80,7 @@ class V1VirtualMachineInstanceStatus(object): 'volume_status': 'volumeStatus' } - def __init__(self, vsockcid=None, active_pods=None, conditions=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, machine=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=None, selinux_context=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): + def __init__(self, vsockcid=None, active_pods=None, conditions=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, machine=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=0, selinux_context=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ @@ -502,7 +502,7 @@ def phase_transition_timestamps(self, phase_transition_timestamps): def qos_class(self): """ Gets the qos_class of this V1VirtualMachineInstanceStatus. - The Quality of Service (QOS) classification assigned to the virtual machine instance based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md + The Quality of Service (QOS) classification assigned to the virtual machine instance based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md Possible enum values: - `\"BestEffort\"` is the BestEffort qos class. - `\"Burstable\"` is the Burstable qos class. - `\"Guaranteed\"` is the Guaranteed qos class. :return: The qos_class of this V1VirtualMachineInstanceStatus. :rtype: str @@ -513,11 +513,17 @@ def qos_class(self): def qos_class(self, qos_class): """ Sets the qos_class of this V1VirtualMachineInstanceStatus. - The Quality of Service (QOS) classification assigned to the virtual machine instance based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md + The Quality of Service (QOS) classification assigned to the virtual machine instance based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md Possible enum values: - `\"BestEffort\"` is the BestEffort qos class. - `\"Burstable\"` is the Burstable qos class. - `\"Guaranteed\"` is the Guaranteed qos class. :param qos_class: The qos_class of this V1VirtualMachineInstanceStatus. :type: str """ + allowed_values = ["BestEffort", "Burstable", "Guaranteed"] + if qos_class not in allowed_values: + raise ValueError( + "Invalid value for `qos_class` ({0}), must be one of {1}" + .format(qos_class, allowed_values) + ) self._qos_class = qos_class diff --git a/kubevirt/models/v1_virtual_machine_memory_dump_request.py b/kubevirt/models/v1_virtual_machine_memory_dump_request.py index ba559fc0..bfc9363e 100644 --- a/kubevirt/models/v1_virtual_machine_memory_dump_request.py +++ b/kubevirt/models/v1_virtual_machine_memory_dump_request.py @@ -50,7 +50,7 @@ class V1VirtualMachineMemoryDumpRequest(object): 'start_timestamp': 'startTimestamp' } - def __init__(self, claim_name=None, end_timestamp=None, file_name=None, message=None, phase=None, remove=None, start_timestamp=None): + def __init__(self, claim_name='', end_timestamp=None, file_name=None, message=None, phase='', remove=None, start_timestamp=None): """ V1VirtualMachineMemoryDumpRequest - a model defined in Swagger """ diff --git a/kubevirt/models/v1_virtual_machine_state_change_request.py b/kubevirt/models/v1_virtual_machine_state_change_request.py index 0dde3d4f..3a8e88d1 100644 --- a/kubevirt/models/v1_virtual_machine_state_change_request.py +++ b/kubevirt/models/v1_virtual_machine_state_change_request.py @@ -42,7 +42,7 @@ class V1VirtualMachineStateChangeRequest(object): 'uid': 'uid' } - def __init__(self, action=None, data=None, uid=None): + def __init__(self, action='', data=None, uid=None): """ V1VirtualMachineStateChangeRequest - a model defined in Swagger """ diff --git a/kubevirt/models/v1_volume.py b/kubevirt/models/v1_volume.py index 585a65b0..829081fe 100644 --- a/kubevirt/models/v1_volume.py +++ b/kubevirt/models/v1_volume.py @@ -68,7 +68,7 @@ class V1Volume(object): 'sysprep': 'sysprep' } - def __init__(self, cloud_init_config_drive=None, cloud_init_no_cloud=None, config_map=None, container_disk=None, data_volume=None, downward_api=None, downward_metrics=None, empty_disk=None, ephemeral=None, host_disk=None, memory_dump=None, name=None, persistent_volume_claim=None, secret=None, service_account=None, sysprep=None): + def __init__(self, cloud_init_config_drive=None, cloud_init_no_cloud=None, config_map=None, container_disk=None, data_volume=None, downward_api=None, downward_metrics=None, empty_disk=None, ephemeral=None, host_disk=None, memory_dump=None, name='', persistent_volume_claim=None, secret=None, service_account=None, sysprep=None): """ V1Volume - a model defined in Swagger """ diff --git a/kubevirt/models/v1_volume_snapshot_status.py b/kubevirt/models/v1_volume_snapshot_status.py index 42635ffb..778d355b 100644 --- a/kubevirt/models/v1_volume_snapshot_status.py +++ b/kubevirt/models/v1_volume_snapshot_status.py @@ -42,7 +42,7 @@ class V1VolumeSnapshotStatus(object): 'reason': 'reason' } - def __init__(self, enabled=None, name=None, reason=None): + def __init__(self, enabled=False, name='', reason=None): """ V1VolumeSnapshotStatus - a model defined in Swagger """ diff --git a/kubevirt/models/v1_volume_status.py b/kubevirt/models/v1_volume_status.py index 09cdd97d..abca6efd 100644 --- a/kubevirt/models/v1_volume_status.py +++ b/kubevirt/models/v1_volume_status.py @@ -54,7 +54,7 @@ class V1VolumeStatus(object): 'target': 'target' } - def __init__(self, hotplug_volume=None, memory_dump_volume=None, message=None, name=None, persistent_volume_claim_info=None, phase=None, reason=None, size=None, target=None): + def __init__(self, hotplug_volume=None, memory_dump_volume=None, message=None, name='', persistent_volume_claim_info=None, phase=None, reason=None, size=None, target=''): """ V1VolumeStatus - a model defined in Swagger """ diff --git a/kubevirt/models/v1_watchdog.py b/kubevirt/models/v1_watchdog.py index ffff67d9..378db29d 100644 --- a/kubevirt/models/v1_watchdog.py +++ b/kubevirt/models/v1_watchdog.py @@ -40,7 +40,7 @@ class V1Watchdog(object): 'name': 'name' } - def __init__(self, i6300esb=None, name=None): + def __init__(self, i6300esb=None, name=''): """ V1Watchdog - a model defined in Swagger """ diff --git a/kubevirt/models/v1alpha1_condition.py b/kubevirt/models/v1alpha1_condition.py index 7c571d09..b1528fb2 100644 --- a/kubevirt/models/v1alpha1_condition.py +++ b/kubevirt/models/v1alpha1_condition.py @@ -44,7 +44,7 @@ class V1alpha1Condition(object): 'type': 'type' } - def __init__(self, message=None, reason=None, status=None, type=None): + def __init__(self, message=None, reason=None, status='', type=''): """ V1alpha1Condition - a model defined in Swagger """ diff --git a/kubevirt/models/v1alpha1_virtual_machine_export_link.py b/kubevirt/models/v1alpha1_virtual_machine_export_link.py index a367feb6..b8b00894 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_export_link.py +++ b/kubevirt/models/v1alpha1_virtual_machine_export_link.py @@ -42,7 +42,7 @@ class V1alpha1VirtualMachineExportLink(object): 'volumes': 'volumes' } - def __init__(self, cert=None, manifests=None, volumes=None): + def __init__(self, cert='', manifests=None, volumes=None): """ V1alpha1VirtualMachineExportLink - a model defined in Swagger """ diff --git a/kubevirt/models/v1alpha1_virtual_machine_export_manifest.py b/kubevirt/models/v1alpha1_virtual_machine_export_manifest.py index ba828075..261c0c0c 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_export_manifest.py +++ b/kubevirt/models/v1alpha1_virtual_machine_export_manifest.py @@ -40,7 +40,7 @@ class V1alpha1VirtualMachineExportManifest(object): 'url': 'url' } - def __init__(self, type=None, url=None): + def __init__(self, type='', url=''): """ V1alpha1VirtualMachineExportManifest - a model defined in Swagger """ diff --git a/kubevirt/models/v1alpha1_virtual_machine_export_volume.py b/kubevirt/models/v1alpha1_virtual_machine_export_volume.py index 614b20e6..ecb1d3c6 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_export_volume.py +++ b/kubevirt/models/v1alpha1_virtual_machine_export_volume.py @@ -40,7 +40,7 @@ class V1alpha1VirtualMachineExportVolume(object): 'name': 'name' } - def __init__(self, formats=None, name=None): + def __init__(self, formats=None, name=''): """ V1alpha1VirtualMachineExportVolume - a model defined in Swagger """ diff --git a/kubevirt/models/v1alpha1_virtual_machine_export_volume_format.py b/kubevirt/models/v1alpha1_virtual_machine_export_volume_format.py index e8b95f18..686421be 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_export_volume_format.py +++ b/kubevirt/models/v1alpha1_virtual_machine_export_volume_format.py @@ -40,7 +40,7 @@ class V1alpha1VirtualMachineExportVolumeFormat(object): 'url': 'url' } - def __init__(self, format=None, url=None): + def __init__(self, format='', url=''): """ V1alpha1VirtualMachineExportVolumeFormat - a model defined in Swagger """ diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_condition.py b/kubevirt/models/v1alpha1_virtual_machine_pool_condition.py index c1025e69..d43030c2 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_condition.py +++ b/kubevirt/models/v1alpha1_virtual_machine_pool_condition.py @@ -44,7 +44,7 @@ class V1alpha1VirtualMachinePoolCondition(object): 'type': 'type' } - def __init__(self, message=None, reason=None, status=None, type=None): + def __init__(self, message=None, reason=None, status='', type=''): """ V1alpha1VirtualMachinePoolCondition - a model defined in Swagger """ diff --git a/kubevirt/models/v1alpha1_virtual_machine_restore_spec.py b/kubevirt/models/v1alpha1_virtual_machine_restore_spec.py index c8989e8d..172221b1 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_restore_spec.py +++ b/kubevirt/models/v1alpha1_virtual_machine_restore_spec.py @@ -42,7 +42,7 @@ class V1alpha1VirtualMachineRestoreSpec(object): 'virtual_machine_snapshot_name': 'virtualMachineSnapshotName' } - def __init__(self, patches=None, target=None, virtual_machine_snapshot_name=None): + def __init__(self, patches=None, target=None, virtual_machine_snapshot_name=''): """ V1alpha1VirtualMachineRestoreSpec - a model defined in Swagger """ diff --git a/kubevirt/models/v1alpha1_volume_backup.py b/kubevirt/models/v1alpha1_volume_backup.py index c9b5cb6f..8c86ff85 100644 --- a/kubevirt/models/v1alpha1_volume_backup.py +++ b/kubevirt/models/v1alpha1_volume_backup.py @@ -42,7 +42,7 @@ class V1alpha1VolumeBackup(object): 'volume_snapshot_name': 'volumeSnapshotName' } - def __init__(self, persistent_volume_claim=None, volume_name=None, volume_snapshot_name=None): + def __init__(self, persistent_volume_claim=None, volume_name='', volume_snapshot_name=None): """ V1alpha1VolumeBackup - a model defined in Swagger """ diff --git a/kubevirt/models/v1alpha1_volume_restore.py b/kubevirt/models/v1alpha1_volume_restore.py index d873173a..772a6915 100644 --- a/kubevirt/models/v1alpha1_volume_restore.py +++ b/kubevirt/models/v1alpha1_volume_restore.py @@ -44,7 +44,7 @@ class V1alpha1VolumeRestore(object): 'volume_snapshot_name': 'volumeSnapshotName' } - def __init__(self, data_volume_name=None, persistent_volume_claim=None, volume_name=None, volume_snapshot_name=None): + def __init__(self, data_volume_name=None, persistent_volume_claim='', volume_name='', volume_snapshot_name=''): """ V1alpha1VolumeRestore - a model defined in Swagger """ diff --git a/kubevirt/models/v1alpha1_volume_snapshot_status.py b/kubevirt/models/v1alpha1_volume_snapshot_status.py index fe919d49..1c6adb82 100644 --- a/kubevirt/models/v1alpha1_volume_snapshot_status.py +++ b/kubevirt/models/v1alpha1_volume_snapshot_status.py @@ -44,7 +44,7 @@ class V1alpha1VolumeSnapshotStatus(object): 'volume_snapshot_name': 'volumeSnapshotName' } - def __init__(self, creation_time=None, error=None, ready_to_use=None, volume_snapshot_name=None): + def __init__(self, creation_time=None, error=None, ready_to_use=None, volume_snapshot_name=''): """ V1alpha1VolumeSnapshotStatus - a model defined in Swagger """ diff --git a/kubevirt/models/v1alpha2_cpu_instancetype.py b/kubevirt/models/v1alpha2_cpu_instancetype.py index 36ea1286..3bad25c0 100644 --- a/kubevirt/models/v1alpha2_cpu_instancetype.py +++ b/kubevirt/models/v1alpha2_cpu_instancetype.py @@ -48,7 +48,7 @@ class V1alpha2CPUInstancetype(object): 'realtime': 'realtime' } - def __init__(self, dedicated_cpu_placement=None, guest=None, isolate_emulator_thread=None, model=None, numa=None, realtime=None): + def __init__(self, dedicated_cpu_placement=None, guest=0, isolate_emulator_thread=None, model=None, numa=None, realtime=None): """ V1alpha2CPUInstancetype - a model defined in Swagger """ diff --git a/kubevirt/models/v1beta1_data_volume_checkpoint.py b/kubevirt/models/v1beta1_data_volume_checkpoint.py index 624977cb..6c3aea5f 100644 --- a/kubevirt/models/v1beta1_data_volume_checkpoint.py +++ b/kubevirt/models/v1beta1_data_volume_checkpoint.py @@ -40,7 +40,7 @@ class V1beta1DataVolumeCheckpoint(object): 'previous': 'previous' } - def __init__(self, current=None, previous=None): + def __init__(self, current='', previous=''): """ V1beta1DataVolumeCheckpoint - a model defined in Swagger """ diff --git a/kubevirt/models/v1beta1_data_volume_source_http.py b/kubevirt/models/v1beta1_data_volume_source_http.py index a6c2aeb4..44fe1947 100644 --- a/kubevirt/models/v1beta1_data_volume_source_http.py +++ b/kubevirt/models/v1beta1_data_volume_source_http.py @@ -46,7 +46,7 @@ class V1beta1DataVolumeSourceHTTP(object): 'url': 'url' } - def __init__(self, cert_config_map=None, extra_headers=None, secret_extra_headers=None, secret_ref=None, url=None): + def __init__(self, cert_config_map=None, extra_headers=None, secret_extra_headers=None, secret_ref=None, url=''): """ V1beta1DataVolumeSourceHTTP - a model defined in Swagger """ diff --git a/kubevirt/models/v1beta1_data_volume_source_image_io.py b/kubevirt/models/v1beta1_data_volume_source_image_io.py index cd54f58c..222bf97e 100644 --- a/kubevirt/models/v1beta1_data_volume_source_image_io.py +++ b/kubevirt/models/v1beta1_data_volume_source_image_io.py @@ -44,7 +44,7 @@ class V1beta1DataVolumeSourceImageIO(object): 'url': 'url' } - def __init__(self, cert_config_map=None, disk_id=None, secret_ref=None, url=None): + def __init__(self, cert_config_map=None, disk_id='', secret_ref=None, url=''): """ V1beta1DataVolumeSourceImageIO - a model defined in Swagger """ diff --git a/kubevirt/models/v1beta1_data_volume_source_pvc.py b/kubevirt/models/v1beta1_data_volume_source_pvc.py index ed7adf1a..49a8bf5a 100644 --- a/kubevirt/models/v1beta1_data_volume_source_pvc.py +++ b/kubevirt/models/v1beta1_data_volume_source_pvc.py @@ -40,7 +40,7 @@ class V1beta1DataVolumeSourcePVC(object): 'namespace': 'namespace' } - def __init__(self, name=None, namespace=None): + def __init__(self, name='', namespace=''): """ V1beta1DataVolumeSourcePVC - a model defined in Swagger """ diff --git a/kubevirt/models/v1beta1_data_volume_source_ref.py b/kubevirt/models/v1beta1_data_volume_source_ref.py index ac66289c..3cd6b85c 100644 --- a/kubevirt/models/v1beta1_data_volume_source_ref.py +++ b/kubevirt/models/v1beta1_data_volume_source_ref.py @@ -42,7 +42,7 @@ class V1beta1DataVolumeSourceRef(object): 'namespace': 'namespace' } - def __init__(self, kind=None, name=None, namespace=None): + def __init__(self, kind='', name='', namespace=None): """ V1beta1DataVolumeSourceRef - a model defined in Swagger """ diff --git a/kubevirt/models/v1beta1_data_volume_source_s3.py b/kubevirt/models/v1beta1_data_volume_source_s3.py index 18c556e7..1f0a08b6 100644 --- a/kubevirt/models/v1beta1_data_volume_source_s3.py +++ b/kubevirt/models/v1beta1_data_volume_source_s3.py @@ -42,7 +42,7 @@ class V1beta1DataVolumeSourceS3(object): 'url': 'url' } - def __init__(self, cert_config_map=None, secret_ref=None, url=None): + def __init__(self, cert_config_map=None, secret_ref=None, url=''): """ V1beta1DataVolumeSourceS3 - a model defined in Swagger """ diff --git a/kubevirt/models/v1beta1_storage_spec.py b/kubevirt/models/v1beta1_storage_spec.py index 93a0c8d0..c22725fc 100644 --- a/kubevirt/models/v1beta1_storage_spec.py +++ b/kubevirt/models/v1beta1_storage_spec.py @@ -197,7 +197,7 @@ def storage_class_name(self, storage_class_name): def volume_mode(self): """ Gets the volume_mode of this V1beta1StorageSpec. - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. :return: The volume_mode of this V1beta1StorageSpec. :rtype: str @@ -208,11 +208,17 @@ def volume_mode(self): def volume_mode(self, volume_mode): """ Sets the volume_mode of this V1beta1StorageSpec. - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. :param volume_mode: The volume_mode of this V1beta1StorageSpec. :type: str """ + allowed_values = ["Block", "Filesystem"] + if volume_mode not in allowed_values: + raise ValueError( + "Invalid value for `volume_mode` ({0}), must be one of {1}" + .format(volume_mode, allowed_values) + ) self._volume_mode = volume_mode diff --git a/setup.py b/setup.py index b156e3db..d60dee43 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-alpha.0-92-ge7016777c" +VERSION = "v1.0.0-beta.0-65-g33dbfa922" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index ed2ff186..b90a69ff 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-alpha.0-92-ge7016777c" +"packageVersion": "v1.0.0-beta.0-65-g33dbfa922" } diff --git a/test/test_k8s_io_api_core_v1_resource_claim.py b/test/test_k8s_io_api_core_v1_resource_claim.py new file mode 100644 index 00000000..1a83ff23 --- /dev/null +++ b/test/test_k8s_io_api_core_v1_resource_claim.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_api_core_v1_resource_claim import K8sIoApiCoreV1ResourceClaim + + +class TestK8sIoApiCoreV1ResourceClaim(unittest.TestCase): + """ K8sIoApiCoreV1ResourceClaim unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1ResourceClaim(self): + """ + Test K8sIoApiCoreV1ResourceClaim + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_resource_claim.K8sIoApiCoreV1ResourceClaim() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_api_core_v1_typed_object_reference.py b/test/test_k8s_io_api_core_v1_typed_object_reference.py new file mode 100644 index 00000000..358ab752 --- /dev/null +++ b/test/test_k8s_io_api_core_v1_typed_object_reference.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_api_core_v1_typed_object_reference import K8sIoApiCoreV1TypedObjectReference + + +class TestK8sIoApiCoreV1TypedObjectReference(unittest.TestCase): + """ K8sIoApiCoreV1TypedObjectReference unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1TypedObjectReference(self): + """ + Test K8sIoApiCoreV1TypedObjectReference + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_typed_object_reference.K8sIoApiCoreV1TypedObjectReference() + pass + + +if __name__ == '__main__': + unittest.main() From 67e74d662a348eeb7aa22f1edf21c03874505d2b Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 26 May 2023 16:39:02 +0000 Subject: [PATCH 330/521] Client Python update by KubeVirt Prow build 1662125216404344832 --- README.md | 4 +- docs/V1DisableFreePageReporting.md | 9 ++ docs/V1KubeVirtConfiguration.md | 1 + docs/V1VirtualMachineOptions.md | 10 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 + kubevirt/__init__.py | 2 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 + .../models/v1_disable_free_page_reporting.py | 99 ++++++++++++++ kubevirt/models/v1_kube_virt_configuration.py | 28 +++- kubevirt/models/v1_virtual_machine_options.py | 125 ++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_disable_free_page_reporting.py | 44 ++++++ test/test_v1_virtual_machine_options.py | 44 ++++++ 17 files changed, 377 insertions(+), 7 deletions(-) create mode 100644 docs/V1DisableFreePageReporting.md create mode 100644 docs/V1VirtualMachineOptions.md create mode 100644 kubevirt/models/v1_disable_free_page_reporting.py create mode 100644 kubevirt/models/v1_virtual_machine_options.py create mode 100644 test/test_v1_disable_free_page_reporting.py create mode 100644 test/test_v1_virtual_machine_options.py diff --git a/README.md b/README.md index 28e23ba3..47559103 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-65-g33dbfa922 +- Package version: v1.0.0-beta.0-74-gcbe6f6627 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -422,6 +422,7 @@ Class | Method | HTTP request | Description - [V1DataVolumeTemplateSpec](docs/V1DataVolumeTemplateSpec.md) - [V1DeveloperConfiguration](docs/V1DeveloperConfiguration.md) - [V1Devices](docs/V1Devices.md) + - [V1DisableFreePageReporting](docs/V1DisableFreePageReporting.md) - [V1Disk](docs/V1Disk.md) - [V1DiskTarget](docs/V1DiskTarget.md) - [V1DiskVerification](docs/V1DiskVerification.md) @@ -576,6 +577,7 @@ Class | Method | HTTP request | Description - [V1VirtualMachineInterfaceRequest](docs/V1VirtualMachineInterfaceRequest.md) - [V1VirtualMachineList](docs/V1VirtualMachineList.md) - [V1VirtualMachineMemoryDumpRequest](docs/V1VirtualMachineMemoryDumpRequest.md) + - [V1VirtualMachineOptions](docs/V1VirtualMachineOptions.md) - [V1VirtualMachineSpec](docs/V1VirtualMachineSpec.md) - [V1VirtualMachineStartFailure](docs/V1VirtualMachineStartFailure.md) - [V1VirtualMachineStateChangeRequest](docs/V1VirtualMachineStateChangeRequest.md) diff --git a/docs/V1DisableFreePageReporting.md b/docs/V1DisableFreePageReporting.md new file mode 100644 index 00000000..32ffcb09 --- /dev/null +++ b/docs/V1DisableFreePageReporting.md @@ -0,0 +1,9 @@ +# V1DisableFreePageReporting + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index 9cbf3732..e1c9a963 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **supported_guest_agent_versions** | **list[str]** | deprecated | [optional] **tls_configuration** | [**V1TLSConfiguration**](V1TLSConfiguration.md) | | [optional] **virtual_machine_instances_per_node** | **int** | | [optional] +**virtual_machine_options** | [**V1VirtualMachineOptions**](V1VirtualMachineOptions.md) | | [optional] **vm_state_storage_class** | **str** | VMStateStorageClass is the name of the storage class to use for the PVCs created to preserve VM state, like TPM. The storage class must support RWX in filesystem mode. | [optional] **webhook_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] diff --git a/docs/V1VirtualMachineOptions.md b/docs/V1VirtualMachineOptions.md new file mode 100644 index 00000000..a26256ac --- /dev/null +++ b/docs/V1VirtualMachineOptions.md @@ -0,0 +1,10 @@ +# V1VirtualMachineOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disable_free_page_reporting** | [**V1DisableFreePageReporting**](V1DisableFreePageReporting.md) | DisableFreePageReporting disable the free page reporting of memory balloon device https://libvirt.org/formatdomain.html#memory-balloon-device. This will have effect only if AutoattachMemBalloon is not false and the vmi is not requesting any high performance feature (dedicatedCPU/realtime/hugePages), in which free page reporting is always disabled. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index a89044b5..045eaf2a 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-65-g33dbfa922" + release_note="Auto-generated client v1.0.0-beta.0-74-gcbe6f6627" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 676232dc..b97785d7 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -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_devices.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_devices.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Devices.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_disable_free_page_reporting.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_disable_free_page_reporting.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DisableFreePageReporting.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_disk.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_disk.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Disk.md @@ -750,6 +753,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_virtual_machine_memory_dump_request.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_memory_dump_request.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineMemoryDumpRequest.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineOptions.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineSpec.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 9fd0a86f..7106608c 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -103,6 +103,7 @@ from .models.v1_data_volume_template_spec import V1DataVolumeTemplateSpec from .models.v1_developer_configuration import V1DeveloperConfiguration from .models.v1_devices import V1Devices +from .models.v1_disable_free_page_reporting import V1DisableFreePageReporting from .models.v1_disk import V1Disk from .models.v1_disk_target import V1DiskTarget from .models.v1_disk_verification import V1DiskVerification @@ -257,6 +258,7 @@ from .models.v1_virtual_machine_interface_request import V1VirtualMachineInterfaceRequest from .models.v1_virtual_machine_list import V1VirtualMachineList from .models.v1_virtual_machine_memory_dump_request import V1VirtualMachineMemoryDumpRequest +from .models.v1_virtual_machine_options import V1VirtualMachineOptions from .models.v1_virtual_machine_spec import V1VirtualMachineSpec from .models.v1_virtual_machine_start_failure import V1VirtualMachineStartFailure from .models.v1_virtual_machine_state_change_request import V1VirtualMachineStateChangeRequest diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index a2f6fa90..0a84cd3a 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-65-g33dbfa922/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-74-gcbe6f6627/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 6b899eec..39db4d11 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-65-g33dbfa922".\ + "SDK Package Version: v1.0.0-beta.0-74-gcbe6f6627".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index e2abda5b..be0eaa8b 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -103,6 +103,7 @@ from .v1_data_volume_template_spec import V1DataVolumeTemplateSpec from .v1_developer_configuration import V1DeveloperConfiguration from .v1_devices import V1Devices +from .v1_disable_free_page_reporting import V1DisableFreePageReporting from .v1_disk import V1Disk from .v1_disk_target import V1DiskTarget from .v1_disk_verification import V1DiskVerification @@ -257,6 +258,7 @@ from .v1_virtual_machine_interface_request import V1VirtualMachineInterfaceRequest from .v1_virtual_machine_list import V1VirtualMachineList from .v1_virtual_machine_memory_dump_request import V1VirtualMachineMemoryDumpRequest +from .v1_virtual_machine_options import V1VirtualMachineOptions from .v1_virtual_machine_spec import V1VirtualMachineSpec from .v1_virtual_machine_start_failure import V1VirtualMachineStartFailure from .v1_virtual_machine_state_change_request import V1VirtualMachineStateChangeRequest diff --git a/kubevirt/models/v1_disable_free_page_reporting.py b/kubevirt/models/v1_disable_free_page_reporting.py new file mode 100644 index 00000000..36245edd --- /dev/null +++ b/kubevirt/models/v1_disable_free_page_reporting.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DisableFreePageReporting(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1DisableFreePageReporting - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1DisableFreePageReporting): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index 8d410e72..abd78124 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -59,6 +59,7 @@ class V1KubeVirtConfiguration(object): 'supported_guest_agent_versions': 'list[str]', 'tls_configuration': 'V1TLSConfiguration', 'virtual_machine_instances_per_node': 'int', + 'virtual_machine_options': 'V1VirtualMachineOptions', 'vm_state_storage_class': 'str', 'webhook_configuration': 'V1ReloadableComponentConfiguration' } @@ -92,11 +93,12 @@ class V1KubeVirtConfiguration(object): 'supported_guest_agent_versions': 'supportedGuestAgentVersions', 'tls_configuration': 'tlsConfiguration', 'virtual_machine_instances_per_node': 'virtualMachineInstancesPerNode', + 'virtual_machine_options': 'virtualMachineOptions', 'vm_state_storage_class': 'vmStateStorageClass', 'webhook_configuration': 'webhookConfiguration' } - def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, vm_state_storage_class=None, webhook_configuration=None): + def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, virtual_machine_options=None, vm_state_storage_class=None, webhook_configuration=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ @@ -129,6 +131,7 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self._supported_guest_agent_versions = None self._tls_configuration = None self._virtual_machine_instances_per_node = None + self._virtual_machine_options = None self._vm_state_storage_class = None self._webhook_configuration = None @@ -188,6 +191,8 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self.tls_configuration = tls_configuration if virtual_machine_instances_per_node is not None: self.virtual_machine_instances_per_node = virtual_machine_instances_per_node + if virtual_machine_options is not None: + self.virtual_machine_options = virtual_machine_options if vm_state_storage_class is not None: self.vm_state_storage_class = vm_state_storage_class if webhook_configuration is not None: @@ -797,6 +802,27 @@ def virtual_machine_instances_per_node(self, virtual_machine_instances_per_node) self._virtual_machine_instances_per_node = virtual_machine_instances_per_node + @property + def virtual_machine_options(self): + """ + Gets the virtual_machine_options of this V1KubeVirtConfiguration. + + :return: The virtual_machine_options of this V1KubeVirtConfiguration. + :rtype: V1VirtualMachineOptions + """ + return self._virtual_machine_options + + @virtual_machine_options.setter + def virtual_machine_options(self, virtual_machine_options): + """ + Sets the virtual_machine_options of this V1KubeVirtConfiguration. + + :param virtual_machine_options: The virtual_machine_options of this V1KubeVirtConfiguration. + :type: V1VirtualMachineOptions + """ + + self._virtual_machine_options = virtual_machine_options + @property def vm_state_storage_class(self): """ diff --git a/kubevirt/models/v1_virtual_machine_options.py b/kubevirt/models/v1_virtual_machine_options.py new file mode 100644 index 00000000..e73028cc --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_options.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'disable_free_page_reporting': 'V1DisableFreePageReporting' + } + + attribute_map = { + 'disable_free_page_reporting': 'disableFreePageReporting' + } + + def __init__(self, disable_free_page_reporting=None): + """ + V1VirtualMachineOptions - a model defined in Swagger + """ + + self._disable_free_page_reporting = None + + if disable_free_page_reporting is not None: + self.disable_free_page_reporting = disable_free_page_reporting + + @property + def disable_free_page_reporting(self): + """ + Gets the disable_free_page_reporting of this V1VirtualMachineOptions. + DisableFreePageReporting disable the free page reporting of memory balloon device https://libvirt.org/formatdomain.html#memory-balloon-device. This will have effect only if AutoattachMemBalloon is not false and the vmi is not requesting any high performance feature (dedicatedCPU/realtime/hugePages), in which free page reporting is always disabled. + + :return: The disable_free_page_reporting of this V1VirtualMachineOptions. + :rtype: V1DisableFreePageReporting + """ + return self._disable_free_page_reporting + + @disable_free_page_reporting.setter + def disable_free_page_reporting(self, disable_free_page_reporting): + """ + Sets the disable_free_page_reporting of this V1VirtualMachineOptions. + DisableFreePageReporting disable the free page reporting of memory balloon device https://libvirt.org/formatdomain.html#memory-balloon-device. This will have effect only if AutoattachMemBalloon is not false and the vmi is not requesting any high performance feature (dedicatedCPU/realtime/hugePages), in which free page reporting is always disabled. + + :param disable_free_page_reporting: The disable_free_page_reporting of this V1VirtualMachineOptions. + :type: V1DisableFreePageReporting + """ + + self._disable_free_page_reporting = disable_free_page_reporting + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index d60dee43..f3c9e4d2 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-65-g33dbfa922" +VERSION = "v1.0.0-beta.0-74-gcbe6f6627" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b90a69ff..27025507 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-65-g33dbfa922" +"packageVersion": "v1.0.0-beta.0-74-gcbe6f6627" } diff --git a/test/test_v1_disable_free_page_reporting.py b/test/test_v1_disable_free_page_reporting.py new file mode 100644 index 00000000..ff3ec4d3 --- /dev/null +++ b/test/test_v1_disable_free_page_reporting.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_disable_free_page_reporting import V1DisableFreePageReporting + + +class TestV1DisableFreePageReporting(unittest.TestCase): + """ V1DisableFreePageReporting unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DisableFreePageReporting(self): + """ + Test V1DisableFreePageReporting + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_disable_free_page_reporting.V1DisableFreePageReporting() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_virtual_machine_options.py b/test/test_v1_virtual_machine_options.py new file mode 100644 index 00000000..ff19f07d --- /dev/null +++ b/test/test_v1_virtual_machine_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_options import V1VirtualMachineOptions + + +class TestV1VirtualMachineOptions(unittest.TestCase): + """ V1VirtualMachineOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineOptions(self): + """ + Test V1VirtualMachineOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_options.V1VirtualMachineOptions() + pass + + +if __name__ == '__main__': + unittest.main() From 0ef79adfb0b2882e5dfceec3fe9945af2d2b54ed Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 30 May 2023 15:50:46 +0000 Subject: [PATCH 331/521] Client Python update by KubeVirt Prow build 1663559846923866112 --- README.md | 114 ++++---- docs/DefaultApi.md | 202 +++++++------- docs/V1alpha2VirtualMachinePreferenceSpec.md | 16 -- ...tancetype.md => V1beta1CPUInstancetype.md} | 2 +- ...references.md => V1beta1CPUPreferences.md} | 2 +- ...ferences.md => V1beta1ClockPreferences.md} | 2 +- ...erences.md => V1beta1DevicePreferences.md} | 2 +- ...rences.md => V1beta1FeaturePreferences.md} | 2 +- ...ences.md => V1beta1FirmwarePreferences.md} | 2 +- ...rences.md => V1beta1MachinePreferences.md} | 2 +- ...cetype.md => V1beta1MemoryInstancetype.md} | 2 +- ...beta1VirtualMachineClusterInstancetype.md} | 4 +- ...1VirtualMachineClusterInstancetypeList.md} | 4 +- ...V1beta1VirtualMachineClusterPreference.md} | 4 +- ...ta1VirtualMachineClusterPreferenceList.md} | 4 +- ...d => V1beta1VirtualMachineInstancetype.md} | 4 +- ... V1beta1VirtualMachineInstancetypeList.md} | 4 +- ... V1beta1VirtualMachineInstancetypeSpec.md} | 6 +- ....md => V1beta1VirtualMachinePreference.md} | 4 +- ...=> V1beta1VirtualMachinePreferenceList.md} | 4 +- docs/V1beta1VirtualMachinePreferenceSpec.md | 16 ++ ...erences.md => V1beta1VolumePreferences.md} | 2 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 114 ++++---- kubevirt/__init__.py | 38 +-- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 252 +++++++++--------- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 38 +-- ...rences.py => v1beta1_clock_preferences.py} | 22 +- ...ncetype.py => v1beta1_cpu_instancetype.py} | 54 ++-- ...ferences.py => v1beta1_cpu_preferences.py} | 14 +- ...ences.py => v1beta1_device_preferences.py} | 190 ++++++------- ...nces.py => v1beta1_feature_preferences.py} | 54 ++-- ...ces.py => v1beta1_firmware_preferences.py} | 38 +-- ...nces.py => v1beta1_machine_preferences.py} | 14 +- ...type.py => v1beta1_memory_instancetype.py} | 22 +- ...1_virtual_machine_cluster_instancetype.py} | 44 +-- ...tual_machine_cluster_instancetype_list.py} | 44 +-- ...ta1_virtual_machine_cluster_preference.py} | 44 +-- ...irtual_machine_cluster_preference_list.py} | 44 +-- ...> v1beta1_virtual_machine_instancetype.py} | 44 +-- ...eta1_virtual_machine_instancetype_list.py} | 44 +-- ...eta1_virtual_machine_instancetype_spec.py} | 66 ++--- ... => v1beta1_virtual_machine_preference.py} | 44 +-- ...1beta1_virtual_machine_preference_list.py} | 44 +-- ...1beta1_virtual_machine_preference_spec.py} | 104 ++++---- ...ences.py => v1beta1_volume_preferences.py} | 14 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 4 +- test/test_v1alpha2_feature_preferences.py | 44 --- test/test_v1alpha2_firmware_preferences.py | 44 --- test/test_v1alpha2_machine_preferences.py | 44 --- test/test_v1alpha2_memory_instancetype.py | 44 --- ...a2_virtual_machine_cluster_instancetype.py | 44 --- ...rtual_machine_cluster_instancetype_list.py | 44 --- ...pha2_virtual_machine_cluster_preference.py | 44 --- ...virtual_machine_cluster_preference_list.py | 44 --- ...t_v1alpha2_virtual_machine_instancetype.py | 44 --- ...lpha2_virtual_machine_instancetype_spec.py | 44 --- ...est_v1alpha2_virtual_machine_preference.py | 44 --- ...1alpha2_virtual_machine_preference_list.py | 44 --- ...1alpha2_virtual_machine_preference_spec.py | 44 --- test/test_v1alpha2_volume_preferences.py | 44 --- ...e.py => test_v1beta1_clock_preferences.py} | 12 +- ...es.py => test_v1beta1_cpu_instancetype.py} | 12 +- ...ces.py => test_v1beta1_cpu_preferences.py} | 12 +- ....py => test_v1beta1_device_preferences.py} | 12 +- test/test_v1beta1_feature_preferences.py | 44 +++ test/test_v1beta1_firmware_preferences.py | 44 +++ test/test_v1beta1_machine_preferences.py | 44 +++ test/test_v1beta1_memory_instancetype.py | 44 +++ ...a1_virtual_machine_cluster_instancetype.py | 44 +++ ...rtual_machine_cluster_instancetype_list.py | 44 +++ ...ta1_virtual_machine_cluster_preference.py} | 12 +- ...virtual_machine_cluster_preference_list.py | 44 +++ ...st_v1beta1_virtual_machine_instancetype.py | 44 +++ ...beta1_virtual_machine_instancetype_list.py | 44 +++ ...beta1_virtual_machine_instancetype_spec.py | 44 +++ ...test_v1beta1_virtual_machine_preference.py | 44 +++ ...v1beta1_virtual_machine_preference_list.py | 44 +++ ...v1beta1_virtual_machine_preference_spec.py | 44 +++ test/test_v1beta1_volume_preferences.py | 44 +++ 84 files changed, 1548 insertions(+), 1548 deletions(-) delete mode 100644 docs/V1alpha2VirtualMachinePreferenceSpec.md rename docs/{V1alpha2CPUInstancetype.md => V1beta1CPUInstancetype.md} (98%) rename docs/{V1alpha2CPUPreferences.md => V1beta1CPUPreferences.md} (94%) rename docs/{V1alpha2ClockPreferences.md => V1beta1ClockPreferences.md} (95%) rename docs/{V1alpha2DevicePreferences.md => V1beta1DevicePreferences.md} (99%) rename docs/{V1alpha2FeaturePreferences.md => V1beta1FeaturePreferences.md} (97%) rename docs/{V1alpha2FirmwarePreferences.md => V1beta1FirmwarePreferences.md} (96%) rename docs/{V1alpha2MachinePreferences.md => V1beta1MachinePreferences.md} (93%) rename docs/{V1alpha2MemoryInstancetype.md => V1beta1MemoryInstancetype.md} (95%) rename docs/{V1alpha2VirtualMachineClusterInstancetype.md => V1beta1VirtualMachineClusterInstancetype.md} (84%) rename docs/{V1alpha2VirtualMachineClusterInstancetypeList.md => V1beta1VirtualMachineClusterInstancetypeList.md} (86%) rename docs/{V1alpha2VirtualMachineInstancetype.md => V1beta1VirtualMachineClusterPreference.md} (85%) rename docs/{V1alpha2VirtualMachineClusterPreferenceList.md => V1beta1VirtualMachineClusterPreferenceList.md} (86%) rename docs/{V1alpha2VirtualMachineClusterPreference.md => V1beta1VirtualMachineInstancetype.md} (85%) rename docs/{V1alpha2VirtualMachineInstancetypeList.md => V1beta1VirtualMachineInstancetypeList.md} (87%) rename docs/{V1alpha2VirtualMachineInstancetypeSpec.md => V1beta1VirtualMachineInstancetypeSpec.md} (72%) rename docs/{V1alpha2VirtualMachinePreference.md => V1beta1VirtualMachinePreference.md} (85%) rename docs/{V1alpha2VirtualMachinePreferenceList.md => V1beta1VirtualMachinePreferenceList.md} (88%) create mode 100644 docs/V1beta1VirtualMachinePreferenceSpec.md rename docs/{V1alpha2VolumePreferences.md => V1beta1VolumePreferences.md} (93%) rename kubevirt/models/{v1alpha2_clock_preferences.py => v1beta1_clock_preferences.py} (84%) rename kubevirt/models/{v1alpha2_cpu_instancetype.py => v1beta1_cpu_instancetype.py} (81%) rename kubevirt/models/{v1alpha2_cpu_preferences.py => v1beta1_cpu_preferences.py} (88%) rename kubevirt/models/{v1alpha2_device_preferences.py => v1beta1_device_preferences.py} (80%) rename kubevirt/models/{v1alpha2_feature_preferences.py => v1beta1_feature_preferences.py} (78%) rename kubevirt/models/{v1alpha2_firmware_preferences.py => v1beta1_firmware_preferences.py} (82%) rename kubevirt/models/{v1alpha2_machine_preferences.py => v1beta1_machine_preferences.py} (87%) rename kubevirt/models/{v1alpha2_memory_instancetype.py => v1beta1_memory_instancetype.py} (84%) rename kubevirt/models/{v1alpha2_virtual_machine_cluster_instancetype.py => v1beta1_virtual_machine_cluster_instancetype.py} (76%) rename kubevirt/models/{v1alpha2_virtual_machine_cluster_instancetype_list.py => v1beta1_virtual_machine_cluster_instancetype_list.py} (76%) rename kubevirt/models/{v1alpha2_virtual_machine_cluster_preference.py => v1beta1_virtual_machine_cluster_preference.py} (76%) rename kubevirt/models/{v1alpha2_virtual_machine_cluster_preference_list.py => v1beta1_virtual_machine_cluster_preference_list.py} (76%) rename kubevirt/models/{v1alpha2_virtual_machine_instancetype.py => v1beta1_virtual_machine_instancetype.py} (77%) rename kubevirt/models/{v1alpha2_virtual_machine_instancetype_list.py => v1beta1_virtual_machine_instancetype_list.py} (77%) rename kubevirt/models/{v1alpha2_virtual_machine_instancetype_spec.py => v1beta1_virtual_machine_instancetype_spec.py} (73%) rename kubevirt/models/{v1alpha2_virtual_machine_preference.py => v1beta1_virtual_machine_preference.py} (78%) rename kubevirt/models/{v1alpha2_virtual_machine_preference_list.py => v1beta1_virtual_machine_preference_list.py} (77%) rename kubevirt/models/{v1alpha2_virtual_machine_preference_spec.py => v1beta1_virtual_machine_preference_spec.py} (67%) rename kubevirt/models/{v1alpha2_volume_preferences.py => v1beta1_volume_preferences.py} (87%) delete mode 100644 test/test_v1alpha2_feature_preferences.py delete mode 100644 test/test_v1alpha2_firmware_preferences.py delete mode 100644 test/test_v1alpha2_machine_preferences.py delete mode 100644 test/test_v1alpha2_memory_instancetype.py delete mode 100644 test/test_v1alpha2_virtual_machine_cluster_instancetype.py delete mode 100644 test/test_v1alpha2_virtual_machine_cluster_instancetype_list.py delete mode 100644 test/test_v1alpha2_virtual_machine_cluster_preference.py delete mode 100644 test/test_v1alpha2_virtual_machine_cluster_preference_list.py delete mode 100644 test/test_v1alpha2_virtual_machine_instancetype.py delete mode 100644 test/test_v1alpha2_virtual_machine_instancetype_spec.py delete mode 100644 test/test_v1alpha2_virtual_machine_preference.py delete mode 100644 test/test_v1alpha2_virtual_machine_preference_list.py delete mode 100644 test/test_v1alpha2_virtual_machine_preference_spec.py delete mode 100644 test/test_v1alpha2_volume_preferences.py rename test/{test_v1alpha2_cpu_instancetype.py => test_v1beta1_clock_preferences.py} (63%) rename test/{test_v1alpha2_cpu_preferences.py => test_v1beta1_cpu_instancetype.py} (64%) rename test/{test_v1alpha2_clock_preferences.py => test_v1beta1_cpu_preferences.py} (63%) rename test/{test_v1alpha2_device_preferences.py => test_v1beta1_device_preferences.py} (62%) create mode 100644 test/test_v1beta1_feature_preferences.py create mode 100644 test/test_v1beta1_firmware_preferences.py create mode 100644 test/test_v1beta1_machine_preferences.py create mode 100644 test/test_v1beta1_memory_instancetype.py create mode 100644 test/test_v1beta1_virtual_machine_cluster_instancetype.py create mode 100644 test/test_v1beta1_virtual_machine_cluster_instancetype_list.py rename test/{test_v1alpha2_virtual_machine_instancetype_list.py => test_v1beta1_virtual_machine_cluster_preference.py} (57%) create mode 100644 test/test_v1beta1_virtual_machine_cluster_preference_list.py create mode 100644 test/test_v1beta1_virtual_machine_instancetype.py create mode 100644 test/test_v1beta1_virtual_machine_instancetype_list.py create mode 100644 test/test_v1beta1_virtual_machine_instancetype_spec.py create mode 100644 test/test_v1beta1_virtual_machine_preference.py create mode 100644 test/test_v1beta1_virtual_machine_preference_list.py create mode 100644 test/test_v1beta1_virtual_machine_preference_spec.py create mode 100644 test/test_v1beta1_volume_preferences.py diff --git a/README.md b/README.md index 47559103..385e13ac 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-74-gcbe6f6627 +- Package version: v1.0.0-beta.0-105-g9d68c4bdf - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -77,15 +77,15 @@ Class | Method | HTTP request | Description *DefaultApi* | [**create_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | *DefaultApi* | [**create_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | *DefaultApi* | [**create_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | -*DefaultApi* | [**create_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#create_namespaced_virtual_machine_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | +*DefaultApi* | [**create_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#create_namespaced_virtual_machine_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | *DefaultApi* | [**create_namespaced_virtual_machine_pool**](docs/DefaultApi.md#create_namespaced_virtual_machine_pool) | **POST** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -*DefaultApi* | [**create_namespaced_virtual_machine_preference**](docs/DefaultApi.md#create_namespaced_virtual_machine_preference) | **POST** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | +*DefaultApi* | [**create_namespaced_virtual_machine_preference**](docs/DefaultApi.md#create_namespaced_virtual_machine_preference) | **POST** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | *DefaultApi* | [**create_namespaced_virtual_machine_restore**](docs/DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**create_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**create_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | *DefaultApi* | [**create_virtual_machine_clone**](docs/DefaultApi.md#create_virtual_machine_clone) | **POST** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | -*DefaultApi* | [**create_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#create_virtual_machine_cluster_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes | -*DefaultApi* | [**create_virtual_machine_cluster_preference**](docs/DefaultApi.md#create_virtual_machine_cluster_preference) | **POST** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences | +*DefaultApi* | [**create_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#create_virtual_machine_cluster_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | +*DefaultApi* | [**create_virtual_machine_cluster_preference**](docs/DefaultApi.md#create_virtual_machine_cluster_preference) | **POST** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | *DefaultApi* | [**delete_collection_migration_policy**](docs/DefaultApi.md#delete_collection_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | *DefaultApi* | [**delete_collection_namespaced_kube_virt**](docs/DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | *DefaultApi* | [**delete_collection_namespaced_virtual_machine**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | @@ -94,15 +94,15 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_pool**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_preference**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_preference**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | *DefaultApi* | [**delete_collection_virtual_machine_clone**](docs/DefaultApi.md#delete_collection_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | -*DefaultApi* | [**delete_collection_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#delete_collection_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes | -*DefaultApi* | [**delete_collection_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_collection_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences | +*DefaultApi* | [**delete_collection_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#delete_collection_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | +*DefaultApi* | [**delete_collection_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_collection_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | *DefaultApi* | [**delete_migration_policy**](docs/DefaultApi.md#delete_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_kube_virt**](docs/DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine**](docs/DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | @@ -111,15 +111,15 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_pool**](docs/DefaultApi.md#delete_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_namespaced_virtual_machine_preference**](docs/DefaultApi.md#delete_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_namespaced_virtual_machine_preference**](docs/DefaultApi.md#delete_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**delete_virtual_machine_clone**](docs/DefaultApi.md#delete_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#delete_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#delete_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**func1**](docs/DefaultApi.md#func1) | **GET** /healthz | *DefaultApi* | [**func6**](docs/DefaultApi.md#func6) | **GET** /openapi/v2 | *DefaultApi* | [**get_api_group_clone_kubevirt_io**](docs/DefaultApi.md#get_api_group_clone_kubevirt_io) | **GET** /apis/clone.kubevirt.io/ | @@ -132,7 +132,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**get_api_group_snapshot_kubevirt_io**](docs/DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | *DefaultApi* | [**get_api_resources_clone_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_clone_kubevirt_io_v1alpha1) | **GET** /apis/clone.kubevirt.io/v1alpha1/ | *DefaultApi* | [**get_api_resources_export_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_export_kubevirt_io_v1alpha1) | **GET** /apis/export.kubevirt.io/v1alpha1/ | -*DefaultApi* | [**get_api_resources_instancetype_kubevirt_io_v1alpha2**](docs/DefaultApi.md#get_api_resources_instancetype_kubevirt_io_v1alpha2) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/ | +*DefaultApi* | [**get_api_resources_instancetype_kubevirt_io_v1beta1**](docs/DefaultApi.md#get_api_resources_instancetype_kubevirt_io_v1beta1) | **GET** /apis/instancetype.kubevirt.io/v1beta1/ | *DefaultApi* | [**get_api_resources_kubevirt_io_v1**](docs/DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | *DefaultApi* | [**get_api_resources_migrations_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_migrations_kubevirt_io_v1alpha1) | **GET** /apis/migrations.kubevirt.io/v1alpha1/ | *DefaultApi* | [**get_api_resources_pool_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_pool_kubevirt_io_v1alpha1) | **GET** /apis/pool.kubevirt.io/v1alpha1/ | @@ -150,24 +150,24 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | *DefaultApi* | [**list_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | *DefaultApi* | [**list_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | -*DefaultApi* | [**list_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#list_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | +*DefaultApi* | [**list_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#list_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | *DefaultApi* | [**list_namespaced_virtual_machine_pool**](docs/DefaultApi.md#list_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -*DefaultApi* | [**list_namespaced_virtual_machine_preference**](docs/DefaultApi.md#list_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | +*DefaultApi* | [**list_namespaced_virtual_machine_preference**](docs/DefaultApi.md#list_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | *DefaultApi* | [**list_namespaced_virtual_machine_restore**](docs/DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**list_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**list_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | *DefaultApi* | [**list_virtual_machine_clone**](docs/DefaultApi.md#list_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | -*DefaultApi* | [**list_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#list_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes | -*DefaultApi* | [**list_virtual_machine_cluster_preference**](docs/DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences | +*DefaultApi* | [**list_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#list_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | +*DefaultApi* | [**list_virtual_machine_cluster_preference**](docs/DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | *DefaultApi* | [**list_virtual_machine_export_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_export_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1alpha1/virtualmachineexports | *DefaultApi* | [**list_virtual_machine_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachines | *DefaultApi* | [**list_virtual_machine_instance_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstances | *DefaultApi* | [**list_virtual_machine_instance_migration_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancemigrations | *DefaultApi* | [**list_virtual_machine_instance_preset_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancepresets | *DefaultApi* | [**list_virtual_machine_instance_replica_set_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancereplicasets | -*DefaultApi* | [**list_virtual_machine_instancetype_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instancetype_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineinstancetypes | +*DefaultApi* | [**list_virtual_machine_instancetype_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instancetype_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineinstancetypes | *DefaultApi* | [**list_virtual_machine_pool_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_pool_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/virtualmachinepools | -*DefaultApi* | [**list_virtual_machine_preference_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_preference_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachinepreferences | +*DefaultApi* | [**list_virtual_machine_preference_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_preference_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachinepreferences | *DefaultApi* | [**list_virtual_machine_restore_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_restore_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores | *DefaultApi* | [**list_virtual_machine_snapshot_content_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents | *DefaultApi* | [**list_virtual_machine_snapshot_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots | @@ -179,15 +179,15 @@ Class | Method | HTTP request | Description *DefaultApi* | [**patch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_pool**](docs/DefaultApi.md#patch_namespaced_virtual_machine_pool) | **PATCH** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_namespaced_virtual_machine_preference**](docs/DefaultApi.md#patch_namespaced_virtual_machine_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_namespaced_virtual_machine_preference**](docs/DefaultApi.md#patch_namespaced_virtual_machine_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**patch_virtual_machine_clone**](docs/DefaultApi.md#patch_virtual_machine_clone) | **PATCH** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#patch_virtual_machine_cluster_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_virtual_machine_cluster_preference**](docs/DefaultApi.md#patch_virtual_machine_cluster_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#patch_virtual_machine_cluster_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_virtual_machine_cluster_preference**](docs/DefaultApi.md#patch_virtual_machine_cluster_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_migration_policy**](docs/DefaultApi.md#read_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_kube_virt**](docs/DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine**](docs/DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | @@ -196,15 +196,15 @@ Class | Method | HTTP request | Description *DefaultApi* | [**read_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#read_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#read_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_pool**](docs/DefaultApi.md#read_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_namespaced_virtual_machine_preference**](docs/DefaultApi.md#read_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_namespaced_virtual_machine_preference**](docs/DefaultApi.md#read_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_restore**](docs/DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**read_virtual_machine_clone**](docs/DefaultApi.md#read_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#read_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_virtual_machine_cluster_preference**](docs/DefaultApi.md#read_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#read_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**read_virtual_machine_cluster_preference**](docs/DefaultApi.md#read_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_migration_policy**](docs/DefaultApi.md#replace_migration_policy) | **PUT** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_kube_virt**](docs/DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine**](docs/DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | @@ -213,15 +213,15 @@ Class | Method | HTTP request | Description *DefaultApi* | [**replace_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_pool**](docs/DefaultApi.md#replace_namespaced_virtual_machine_pool) | **PUT** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_namespaced_virtual_machine_preference**](docs/DefaultApi.md#replace_namespaced_virtual_machine_preference) | **PUT** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_namespaced_virtual_machine_preference**](docs/DefaultApi.md#replace_namespaced_virtual_machine_preference) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_restore**](docs/DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**replace_virtual_machine_clone**](docs/DefaultApi.md#replace_virtual_machine_clone) | **PUT** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#replace_virtual_machine_cluster_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_virtual_machine_cluster_preference**](docs/DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#replace_virtual_machine_cluster_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**replace_virtual_machine_cluster_preference**](docs/DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | *DefaultApi* | [**v1_check_health**](docs/DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | *DefaultApi* | [**v1_console**](docs/DefaultApi.md#v1_console) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | *DefaultApi* | [**v1_expand_spec**](docs/DefaultApi.md#v1_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/expand-vm-spec | @@ -308,24 +308,24 @@ Class | Method | HTTP request | Description *DefaultApi* | [**watch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | *DefaultApi* | [**watch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | *DefaultApi* | [**watch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | -*DefaultApi* | [**watch_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | +*DefaultApi* | [**watch_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | *DefaultApi* | [**watch_namespaced_virtual_machine_pool**](docs/DefaultApi.md#watch_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -*DefaultApi* | [**watch_namespaced_virtual_machine_preference**](docs/DefaultApi.md#watch_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | +*DefaultApi* | [**watch_namespaced_virtual_machine_preference**](docs/DefaultApi.md#watch_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | *DefaultApi* | [**watch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | *DefaultApi* | [**watch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | *DefaultApi* | [**watch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | *DefaultApi* | [**watch_virtual_machine_clone_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_clone_list_for_all_namespaces) | **GET** /apis/clone.kubevirt.io/v1alpha1/watch/virtualmachineclones | -*DefaultApi* | [**watch_virtual_machine_cluster_instancetype_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/watch/virtualmachineclusterinstancetypes | -*DefaultApi* | [**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/watch/virtualmachineclusterpreferences | +*DefaultApi* | [**watch_virtual_machine_cluster_instancetype_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterinstancetypes | +*DefaultApi* | [**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterpreferences | *DefaultApi* | [**watch_virtual_machine_export_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_export_list_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1alpha1/watch/virtualmachineexports | *DefaultApi* | [**watch_virtual_machine_instance_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstances | *DefaultApi* | [**watch_virtual_machine_instance_migration_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancemigrations | *DefaultApi* | [**watch_virtual_machine_instance_preset_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancepresets | *DefaultApi* | [**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancereplicasets | -*DefaultApi* | [**watch_virtual_machine_instancetype_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/watch/virtualmachineinstancetypes | +*DefaultApi* | [**watch_virtual_machine_instancetype_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineinstancetypes | *DefaultApi* | [**watch_virtual_machine_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachines | *DefaultApi* | [**watch_virtual_machine_pool_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_pool_list_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/virtualmachinepools | -*DefaultApi* | [**watch_virtual_machine_preference_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/watch/virtualmachinepreferences | +*DefaultApi* | [**watch_virtual_machine_preference_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachinepreferences | *DefaultApi* | [**watch_virtual_machine_restore_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_restore_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinerestores | *DefaultApi* | [**watch_virtual_machine_snapshot_content_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_snapshot_content_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshotcontents | *DefaultApi* | [**watch_virtual_machine_snapshot_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_snapshot_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshots | @@ -632,25 +632,9 @@ Class | Method | HTTP request | Description - [V1alpha1VolumeBackup](docs/V1alpha1VolumeBackup.md) - [V1alpha1VolumeRestore](docs/V1alpha1VolumeRestore.md) - [V1alpha1VolumeSnapshotStatus](docs/V1alpha1VolumeSnapshotStatus.md) - - [V1alpha2CPUInstancetype](docs/V1alpha2CPUInstancetype.md) - - [V1alpha2CPUPreferences](docs/V1alpha2CPUPreferences.md) - - [V1alpha2ClockPreferences](docs/V1alpha2ClockPreferences.md) - - [V1alpha2DevicePreferences](docs/V1alpha2DevicePreferences.md) - - [V1alpha2FeaturePreferences](docs/V1alpha2FeaturePreferences.md) - - [V1alpha2FirmwarePreferences](docs/V1alpha2FirmwarePreferences.md) - - [V1alpha2MachinePreferences](docs/V1alpha2MachinePreferences.md) - - [V1alpha2MemoryInstancetype](docs/V1alpha2MemoryInstancetype.md) - - [V1alpha2VirtualMachineClusterInstancetype](docs/V1alpha2VirtualMachineClusterInstancetype.md) - - [V1alpha2VirtualMachineClusterInstancetypeList](docs/V1alpha2VirtualMachineClusterInstancetypeList.md) - - [V1alpha2VirtualMachineClusterPreference](docs/V1alpha2VirtualMachineClusterPreference.md) - - [V1alpha2VirtualMachineClusterPreferenceList](docs/V1alpha2VirtualMachineClusterPreferenceList.md) - - [V1alpha2VirtualMachineInstancetype](docs/V1alpha2VirtualMachineInstancetype.md) - - [V1alpha2VirtualMachineInstancetypeList](docs/V1alpha2VirtualMachineInstancetypeList.md) - - [V1alpha2VirtualMachineInstancetypeSpec](docs/V1alpha2VirtualMachineInstancetypeSpec.md) - - [V1alpha2VirtualMachinePreference](docs/V1alpha2VirtualMachinePreference.md) - - [V1alpha2VirtualMachinePreferenceList](docs/V1alpha2VirtualMachinePreferenceList.md) - - [V1alpha2VirtualMachinePreferenceSpec](docs/V1alpha2VirtualMachinePreferenceSpec.md) - - [V1alpha2VolumePreferences](docs/V1alpha2VolumePreferences.md) + - [V1beta1CPUInstancetype](docs/V1beta1CPUInstancetype.md) + - [V1beta1CPUPreferences](docs/V1beta1CPUPreferences.md) + - [V1beta1ClockPreferences](docs/V1beta1ClockPreferences.md) - [V1beta1DataVolumeBlankImage](docs/V1beta1DataVolumeBlankImage.md) - [V1beta1DataVolumeCheckpoint](docs/V1beta1DataVolumeCheckpoint.md) - [V1beta1DataVolumeSource](docs/V1beta1DataVolumeSource.md) @@ -663,7 +647,23 @@ Class | Method | HTTP request | Description - [V1beta1DataVolumeSourceUpload](docs/V1beta1DataVolumeSourceUpload.md) - [V1beta1DataVolumeSourceVDDK](docs/V1beta1DataVolumeSourceVDDK.md) - [V1beta1DataVolumeSpec](docs/V1beta1DataVolumeSpec.md) + - [V1beta1DevicePreferences](docs/V1beta1DevicePreferences.md) + - [V1beta1FeaturePreferences](docs/V1beta1FeaturePreferences.md) + - [V1beta1FirmwarePreferences](docs/V1beta1FirmwarePreferences.md) + - [V1beta1MachinePreferences](docs/V1beta1MachinePreferences.md) + - [V1beta1MemoryInstancetype](docs/V1beta1MemoryInstancetype.md) - [V1beta1StorageSpec](docs/V1beta1StorageSpec.md) + - [V1beta1VirtualMachineClusterInstancetype](docs/V1beta1VirtualMachineClusterInstancetype.md) + - [V1beta1VirtualMachineClusterInstancetypeList](docs/V1beta1VirtualMachineClusterInstancetypeList.md) + - [V1beta1VirtualMachineClusterPreference](docs/V1beta1VirtualMachineClusterPreference.md) + - [V1beta1VirtualMachineClusterPreferenceList](docs/V1beta1VirtualMachineClusterPreferenceList.md) + - [V1beta1VirtualMachineInstancetype](docs/V1beta1VirtualMachineInstancetype.md) + - [V1beta1VirtualMachineInstancetypeList](docs/V1beta1VirtualMachineInstancetypeList.md) + - [V1beta1VirtualMachineInstancetypeSpec](docs/V1beta1VirtualMachineInstancetypeSpec.md) + - [V1beta1VirtualMachinePreference](docs/V1beta1VirtualMachinePreference.md) + - [V1beta1VirtualMachinePreferenceList](docs/V1beta1VirtualMachinePreferenceList.md) + - [V1beta1VirtualMachinePreferenceSpec](docs/V1beta1VirtualMachinePreferenceSpec.md) + - [V1beta1VolumePreferences](docs/V1beta1VolumePreferences.md) ## Documentation For Authorization diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 8fe0d2c5..f3137604 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -12,15 +12,15 @@ Method | HTTP request | Description [**create_namespaced_virtual_machine_instance_migration**](DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | [**create_namespaced_virtual_machine_instance_preset**](DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | [**create_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | -[**create_namespaced_virtual_machine_instancetype**](DefaultApi.md#create_namespaced_virtual_machine_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | +[**create_namespaced_virtual_machine_instancetype**](DefaultApi.md#create_namespaced_virtual_machine_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | [**create_namespaced_virtual_machine_pool**](DefaultApi.md#create_namespaced_virtual_machine_pool) | **POST** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -[**create_namespaced_virtual_machine_preference**](DefaultApi.md#create_namespaced_virtual_machine_preference) | **POST** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | +[**create_namespaced_virtual_machine_preference**](DefaultApi.md#create_namespaced_virtual_machine_preference) | **POST** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | [**create_namespaced_virtual_machine_restore**](DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**create_namespaced_virtual_machine_snapshot**](DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**create_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | [**create_virtual_machine_clone**](DefaultApi.md#create_virtual_machine_clone) | **POST** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | -[**create_virtual_machine_cluster_instancetype**](DefaultApi.md#create_virtual_machine_cluster_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes | -[**create_virtual_machine_cluster_preference**](DefaultApi.md#create_virtual_machine_cluster_preference) | **POST** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences | +[**create_virtual_machine_cluster_instancetype**](DefaultApi.md#create_virtual_machine_cluster_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | +[**create_virtual_machine_cluster_preference**](DefaultApi.md#create_virtual_machine_cluster_preference) | **POST** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | [**delete_collection_migration_policy**](DefaultApi.md#delete_collection_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | [**delete_collection_namespaced_kube_virt**](DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | [**delete_collection_namespaced_virtual_machine**](DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | @@ -29,15 +29,15 @@ Method | HTTP request | Description [**delete_collection_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | [**delete_collection_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | -[**delete_collection_namespaced_virtual_machine_instancetype**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | +[**delete_collection_namespaced_virtual_machine_instancetype**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | [**delete_collection_namespaced_virtual_machine_pool**](DefaultApi.md#delete_collection_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -[**delete_collection_namespaced_virtual_machine_preference**](DefaultApi.md#delete_collection_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | +[**delete_collection_namespaced_virtual_machine_preference**](DefaultApi.md#delete_collection_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | [**delete_collection_namespaced_virtual_machine_restore**](DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**delete_collection_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**delete_collection_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | [**delete_collection_virtual_machine_clone**](DefaultApi.md#delete_collection_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | -[**delete_collection_virtual_machine_cluster_instancetype**](DefaultApi.md#delete_collection_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes | -[**delete_collection_virtual_machine_cluster_preference**](DefaultApi.md#delete_collection_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences | +[**delete_collection_virtual_machine_cluster_instancetype**](DefaultApi.md#delete_collection_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | +[**delete_collection_virtual_machine_cluster_preference**](DefaultApi.md#delete_collection_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | [**delete_migration_policy**](DefaultApi.md#delete_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_kube_virt**](DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine**](DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | @@ -46,15 +46,15 @@ Method | HTTP request | Description [**delete_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_namespaced_virtual_machine_instancetype**](DefaultApi.md#delete_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_namespaced_virtual_machine_instancetype**](DefaultApi.md#delete_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_pool**](DefaultApi.md#delete_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_namespaced_virtual_machine_preference**](DefaultApi.md#delete_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_namespaced_virtual_machine_preference**](DefaultApi.md#delete_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_restore**](DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**delete_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**delete_virtual_machine_clone**](DefaultApi.md#delete_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_virtual_machine_cluster_instancetype**](DefaultApi.md#delete_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_virtual_machine_cluster_preference**](DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_virtual_machine_cluster_instancetype**](DefaultApi.md#delete_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_virtual_machine_cluster_preference**](DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | [**func1**](DefaultApi.md#func1) | **GET** /healthz | [**func6**](DefaultApi.md#func6) | **GET** /openapi/v2 | [**get_api_group_clone_kubevirt_io**](DefaultApi.md#get_api_group_clone_kubevirt_io) | **GET** /apis/clone.kubevirt.io/ | @@ -67,7 +67,7 @@ Method | HTTP request | Description [**get_api_group_snapshot_kubevirt_io**](DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | [**get_api_resources_clone_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_clone_kubevirt_io_v1alpha1) | **GET** /apis/clone.kubevirt.io/v1alpha1/ | [**get_api_resources_export_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_export_kubevirt_io_v1alpha1) | **GET** /apis/export.kubevirt.io/v1alpha1/ | -[**get_api_resources_instancetype_kubevirt_io_v1alpha2**](DefaultApi.md#get_api_resources_instancetype_kubevirt_io_v1alpha2) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/ | +[**get_api_resources_instancetype_kubevirt_io_v1beta1**](DefaultApi.md#get_api_resources_instancetype_kubevirt_io_v1beta1) | **GET** /apis/instancetype.kubevirt.io/v1beta1/ | [**get_api_resources_kubevirt_io_v1**](DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | [**get_api_resources_migrations_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_migrations_kubevirt_io_v1alpha1) | **GET** /apis/migrations.kubevirt.io/v1alpha1/ | [**get_api_resources_pool_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_pool_kubevirt_io_v1alpha1) | **GET** /apis/pool.kubevirt.io/v1alpha1/ | @@ -85,24 +85,24 @@ Method | HTTP request | Description [**list_namespaced_virtual_machine_instance_migration**](DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | [**list_namespaced_virtual_machine_instance_preset**](DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | [**list_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | -[**list_namespaced_virtual_machine_instancetype**](DefaultApi.md#list_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | +[**list_namespaced_virtual_machine_instancetype**](DefaultApi.md#list_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | [**list_namespaced_virtual_machine_pool**](DefaultApi.md#list_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -[**list_namespaced_virtual_machine_preference**](DefaultApi.md#list_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | +[**list_namespaced_virtual_machine_preference**](DefaultApi.md#list_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | [**list_namespaced_virtual_machine_restore**](DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**list_namespaced_virtual_machine_snapshot**](DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**list_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | [**list_virtual_machine_clone**](DefaultApi.md#list_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | -[**list_virtual_machine_cluster_instancetype**](DefaultApi.md#list_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes | -[**list_virtual_machine_cluster_preference**](DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences | +[**list_virtual_machine_cluster_instancetype**](DefaultApi.md#list_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | +[**list_virtual_machine_cluster_preference**](DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | [**list_virtual_machine_export_for_all_namespaces**](DefaultApi.md#list_virtual_machine_export_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1alpha1/virtualmachineexports | [**list_virtual_machine_for_all_namespaces**](DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachines | [**list_virtual_machine_instance_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstances | [**list_virtual_machine_instance_migration_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancemigrations | [**list_virtual_machine_instance_preset_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancepresets | [**list_virtual_machine_instance_replica_set_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancereplicasets | -[**list_virtual_machine_instancetype_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instancetype_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineinstancetypes | +[**list_virtual_machine_instancetype_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instancetype_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineinstancetypes | [**list_virtual_machine_pool_for_all_namespaces**](DefaultApi.md#list_virtual_machine_pool_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/virtualmachinepools | -[**list_virtual_machine_preference_for_all_namespaces**](DefaultApi.md#list_virtual_machine_preference_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachinepreferences | +[**list_virtual_machine_preference_for_all_namespaces**](DefaultApi.md#list_virtual_machine_preference_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachinepreferences | [**list_virtual_machine_restore_for_all_namespaces**](DefaultApi.md#list_virtual_machine_restore_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores | [**list_virtual_machine_snapshot_content_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents | [**list_virtual_machine_snapshot_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots | @@ -114,15 +114,15 @@ Method | HTTP request | Description [**patch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_namespaced_virtual_machine_instancetype**](DefaultApi.md#patch_namespaced_virtual_machine_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_namespaced_virtual_machine_instancetype**](DefaultApi.md#patch_namespaced_virtual_machine_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_pool**](DefaultApi.md#patch_namespaced_virtual_machine_pool) | **PATCH** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_namespaced_virtual_machine_preference**](DefaultApi.md#patch_namespaced_virtual_machine_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_namespaced_virtual_machine_preference**](DefaultApi.md#patch_namespaced_virtual_machine_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_restore**](DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_snapshot**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**patch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**patch_virtual_machine_clone**](DefaultApi.md#patch_virtual_machine_clone) | **PATCH** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_virtual_machine_cluster_instancetype**](DefaultApi.md#patch_virtual_machine_cluster_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_virtual_machine_cluster_preference**](DefaultApi.md#patch_virtual_machine_cluster_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_virtual_machine_cluster_instancetype**](DefaultApi.md#patch_virtual_machine_cluster_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_virtual_machine_cluster_preference**](DefaultApi.md#patch_virtual_machine_cluster_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | [**read_migration_policy**](DefaultApi.md#read_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_kube_virt**](DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine**](DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | @@ -131,15 +131,15 @@ Method | HTTP request | Description [**read_namespaced_virtual_machine_instance_migration**](DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_instance_preset**](DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | -[**read_namespaced_virtual_machine_instancetype**](DefaultApi.md#read_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +[**read_namespaced_virtual_machine_instancetype**](DefaultApi.md#read_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_pool**](DefaultApi.md#read_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -[**read_namespaced_virtual_machine_preference**](DefaultApi.md#read_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | +[**read_namespaced_virtual_machine_preference**](DefaultApi.md#read_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_restore**](DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_snapshot**](DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**read_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**read_virtual_machine_clone**](DefaultApi.md#read_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -[**read_virtual_machine_cluster_instancetype**](DefaultApi.md#read_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -[**read_virtual_machine_cluster_preference**](DefaultApi.md#read_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | +[**read_virtual_machine_cluster_instancetype**](DefaultApi.md#read_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +[**read_virtual_machine_cluster_preference**](DefaultApi.md#read_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | [**replace_migration_policy**](DefaultApi.md#replace_migration_policy) | **PUT** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_kube_virt**](DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine**](DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | @@ -148,15 +148,15 @@ Method | HTTP request | Description [**replace_namespaced_virtual_machine_instance_migration**](DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_instance_preset**](DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_namespaced_virtual_machine_instancetype**](DefaultApi.md#replace_namespaced_virtual_machine_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_namespaced_virtual_machine_instancetype**](DefaultApi.md#replace_namespaced_virtual_machine_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_pool**](DefaultApi.md#replace_namespaced_virtual_machine_pool) | **PUT** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_namespaced_virtual_machine_preference**](DefaultApi.md#replace_namespaced_virtual_machine_preference) | **PUT** /apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_namespaced_virtual_machine_preference**](DefaultApi.md#replace_namespaced_virtual_machine_preference) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_restore**](DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_snapshot**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | [**replace_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | [**replace_virtual_machine_clone**](DefaultApi.md#replace_virtual_machine_clone) | **PUT** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_virtual_machine_cluster_instancetype**](DefaultApi.md#replace_virtual_machine_cluster_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_virtual_machine_cluster_preference**](DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_virtual_machine_cluster_instancetype**](DefaultApi.md#replace_virtual_machine_cluster_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | +[**replace_virtual_machine_cluster_preference**](DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | [**v1_check_health**](DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | [**v1_console**](DefaultApi.md#v1_console) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | [**v1_expand_spec**](DefaultApi.md#v1_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/expand-vm-spec | @@ -243,24 +243,24 @@ Method | HTTP request | Description [**watch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | [**watch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | [**watch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | -[**watch_namespaced_virtual_machine_instancetype**](DefaultApi.md#watch_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | +[**watch_namespaced_virtual_machine_instancetype**](DefaultApi.md#watch_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | [**watch_namespaced_virtual_machine_pool**](DefaultApi.md#watch_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -[**watch_namespaced_virtual_machine_preference**](DefaultApi.md#watch_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | +[**watch_namespaced_virtual_machine_preference**](DefaultApi.md#watch_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | [**watch_namespaced_virtual_machine_restore**](DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | [**watch_namespaced_virtual_machine_snapshot**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | [**watch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | [**watch_virtual_machine_clone_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_clone_list_for_all_namespaces) | **GET** /apis/clone.kubevirt.io/v1alpha1/watch/virtualmachineclones | -[**watch_virtual_machine_cluster_instancetype_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/watch/virtualmachineclusterinstancetypes | -[**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/watch/virtualmachineclusterpreferences | +[**watch_virtual_machine_cluster_instancetype_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterinstancetypes | +[**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterpreferences | [**watch_virtual_machine_export_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_export_list_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1alpha1/watch/virtualmachineexports | [**watch_virtual_machine_instance_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstances | [**watch_virtual_machine_instance_migration_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancemigrations | [**watch_virtual_machine_instance_preset_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancepresets | [**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancereplicasets | -[**watch_virtual_machine_instancetype_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/watch/virtualmachineinstancetypes | +[**watch_virtual_machine_instancetype_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineinstancetypes | [**watch_virtual_machine_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachines | [**watch_virtual_machine_pool_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_pool_list_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/virtualmachinepools | -[**watch_virtual_machine_preference_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1alpha2/watch/virtualmachinepreferences | +[**watch_virtual_machine_preference_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachinepreferences | [**watch_virtual_machine_restore_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_restore_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinerestores | [**watch_virtual_machine_snapshot_content_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_snapshot_content_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshotcontents | [**watch_virtual_machine_snapshot_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_snapshot_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshots | @@ -657,7 +657,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_virtual_machine_instancetype** -> V1alpha2VirtualMachineInstancetype create_namespaced_virtual_machine_instancetype(body, namespace) +> V1beta1VirtualMachineInstancetype create_namespaced_virtual_machine_instancetype(body, namespace) @@ -673,7 +673,7 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1alpha2VirtualMachineInstancetype() # V1alpha2VirtualMachineInstancetype | +body = kubevirt.V1beta1VirtualMachineInstancetype() # V1beta1VirtualMachineInstancetype | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: @@ -687,12 +687,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha2VirtualMachineInstancetype**](V1alpha2VirtualMachineInstancetype.md)| | + **body** | [**V1beta1VirtualMachineInstancetype**](V1beta1VirtualMachineInstancetype.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1alpha2VirtualMachineInstancetype**](V1alpha2VirtualMachineInstancetype.md) +[**V1beta1VirtualMachineInstancetype**](V1beta1VirtualMachineInstancetype.md) ### Authorization @@ -755,7 +755,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_virtual_machine_preference** -> V1alpha2VirtualMachinePreference create_namespaced_virtual_machine_preference(body, namespace) +> V1beta1VirtualMachinePreference create_namespaced_virtual_machine_preference(body, namespace) @@ -771,7 +771,7 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1alpha2VirtualMachinePreference() # V1alpha2VirtualMachinePreference | +body = kubevirt.V1beta1VirtualMachinePreference() # V1beta1VirtualMachinePreference | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: @@ -785,12 +785,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha2VirtualMachinePreference**](V1alpha2VirtualMachinePreference.md)| | + **body** | [**V1beta1VirtualMachinePreference**](V1beta1VirtualMachinePreference.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1alpha2VirtualMachinePreference**](V1alpha2VirtualMachinePreference.md) +[**V1beta1VirtualMachinePreference**](V1beta1VirtualMachinePreference.md) ### Authorization @@ -998,7 +998,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_virtual_machine_cluster_instancetype** -> V1alpha2VirtualMachineClusterInstancetype create_virtual_machine_cluster_instancetype(body) +> V1beta1VirtualMachineClusterInstancetype create_virtual_machine_cluster_instancetype(body) @@ -1014,7 +1014,7 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1alpha2VirtualMachineClusterInstancetype() # V1alpha2VirtualMachineClusterInstancetype | +body = kubevirt.V1beta1VirtualMachineClusterInstancetype() # V1beta1VirtualMachineClusterInstancetype | try: api_response = api_instance.create_virtual_machine_cluster_instancetype(body) @@ -1027,11 +1027,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha2VirtualMachineClusterInstancetype**](V1alpha2VirtualMachineClusterInstancetype.md)| | + **body** | [**V1beta1VirtualMachineClusterInstancetype**](V1beta1VirtualMachineClusterInstancetype.md)| | ### Return type -[**V1alpha2VirtualMachineClusterInstancetype**](V1alpha2VirtualMachineClusterInstancetype.md) +[**V1beta1VirtualMachineClusterInstancetype**](V1beta1VirtualMachineClusterInstancetype.md) ### Authorization @@ -1045,7 +1045,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_virtual_machine_cluster_preference** -> V1alpha2VirtualMachineClusterPreference create_virtual_machine_cluster_preference(body) +> V1beta1VirtualMachineClusterPreference create_virtual_machine_cluster_preference(body) @@ -1061,7 +1061,7 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1alpha2VirtualMachineClusterPreference() # V1alpha2VirtualMachineClusterPreference | +body = kubevirt.V1beta1VirtualMachineClusterPreference() # V1beta1VirtualMachineClusterPreference | try: api_response = api_instance.create_virtual_machine_cluster_preference(body) @@ -1074,11 +1074,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha2VirtualMachineClusterPreference**](V1alpha2VirtualMachineClusterPreference.md)| | + **body** | [**V1beta1VirtualMachineClusterPreference**](V1beta1VirtualMachineClusterPreference.md)| | ### Return type -[**V1alpha2VirtualMachineClusterPreference**](V1alpha2VirtualMachineClusterPreference.md) +[**V1beta1VirtualMachineClusterPreference**](V1beta1VirtualMachineClusterPreference.md) ### Authorization @@ -3601,8 +3601,8 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_api_resources_instancetype_kubevirt_io_v1alpha2** -> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_instancetype_kubevirt_io_v1alpha2() +# **get_api_resources_instancetype_kubevirt_io_v1beta1** +> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_instancetype_kubevirt_io_v1beta1() @@ -3620,10 +3620,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() try: - api_response = api_instance.get_api_resources_instancetype_kubevirt_io_v1alpha2() + api_response = api_instance.get_api_resources_instancetype_kubevirt_io_v1beta1() pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->get_api_resources_instancetype_kubevirt_io_v1alpha2: %s\n" % e) + print("Exception when calling DefaultApi->get_api_resources_instancetype_kubevirt_io_v1beta1: %s\n" % e) ``` ### Parameters @@ -4549,7 +4549,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_virtual_machine_instancetype** -> V1alpha2VirtualMachineInstancetypeList list_namespaced_virtual_machine_instancetype(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1VirtualMachineInstancetypeList list_namespaced_virtual_machine_instancetype(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -4598,7 +4598,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2VirtualMachineInstancetypeList**](V1alpha2VirtualMachineInstancetypeList.md) +[**V1beta1VirtualMachineInstancetypeList**](V1beta1VirtualMachineInstancetypeList.md) ### Authorization @@ -4675,7 +4675,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_virtual_machine_preference** -> V1alpha2VirtualMachinePreferenceList list_namespaced_virtual_machine_preference(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1VirtualMachinePreferenceList list_namespaced_virtual_machine_preference(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -4724,7 +4724,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2VirtualMachinePreferenceList**](V1alpha2VirtualMachinePreferenceList.md) +[**V1beta1VirtualMachinePreferenceList**](V1beta1VirtualMachinePreferenceList.md) ### Authorization @@ -4988,7 +4988,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_virtual_machine_cluster_instancetype** -> V1alpha2VirtualMachineClusterInstancetypeList list_virtual_machine_cluster_instancetype(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1VirtualMachineClusterInstancetypeList list_virtual_machine_cluster_instancetype(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -5035,7 +5035,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2VirtualMachineClusterInstancetypeList**](V1alpha2VirtualMachineClusterInstancetypeList.md) +[**V1beta1VirtualMachineClusterInstancetypeList**](V1beta1VirtualMachineClusterInstancetypeList.md) ### Authorization @@ -5049,7 +5049,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_virtual_machine_cluster_preference** -> V1alpha2VirtualMachineClusterPreferenceList list_virtual_machine_cluster_preference(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1VirtualMachineClusterPreferenceList list_virtual_machine_cluster_preference(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -5096,7 +5096,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2VirtualMachineClusterPreferenceList**](V1alpha2VirtualMachineClusterPreferenceList.md) +[**V1beta1VirtualMachineClusterPreferenceList**](V1beta1VirtualMachineClusterPreferenceList.md) ### Authorization @@ -5476,7 +5476,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_virtual_machine_instancetype_for_all_namespaces** -> V1alpha2VirtualMachineInstancetypeList list_virtual_machine_instancetype_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1VirtualMachineInstancetypeList list_virtual_machine_instancetype_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -5523,7 +5523,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2VirtualMachineInstancetypeList**](V1alpha2VirtualMachineInstancetypeList.md) +[**V1beta1VirtualMachineInstancetypeList**](V1beta1VirtualMachineInstancetypeList.md) ### Authorization @@ -5598,7 +5598,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_virtual_machine_preference_for_all_namespaces** -> V1alpha2VirtualMachinePreferenceList list_virtual_machine_preference_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1VirtualMachinePreferenceList list_virtual_machine_preference_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -5645,7 +5645,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2VirtualMachinePreferenceList**](V1alpha2VirtualMachinePreferenceList.md) +[**V1beta1VirtualMachinePreferenceList**](V1beta1VirtualMachinePreferenceList.md) ### Authorization @@ -6248,7 +6248,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_virtual_machine_instancetype** -> V1alpha2VirtualMachineInstancetype patch_namespaced_virtual_machine_instancetype(name, namespace, body) +> V1beta1VirtualMachineInstancetype patch_namespaced_virtual_machine_instancetype(name, namespace, body) @@ -6285,7 +6285,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2VirtualMachineInstancetype**](V1alpha2VirtualMachineInstancetype.md) +[**V1beta1VirtualMachineInstancetype**](V1beta1VirtualMachineInstancetype.md) ### Authorization @@ -6350,7 +6350,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_virtual_machine_preference** -> V1alpha2VirtualMachinePreference patch_namespaced_virtual_machine_preference(name, namespace, body) +> V1beta1VirtualMachinePreference patch_namespaced_virtual_machine_preference(name, namespace, body) @@ -6387,7 +6387,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2VirtualMachinePreference**](V1alpha2VirtualMachinePreference.md) +[**V1beta1VirtualMachinePreference**](V1beta1VirtualMachinePreference.md) ### Authorization @@ -6603,7 +6603,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_virtual_machine_cluster_instancetype** -> V1alpha2VirtualMachineClusterInstancetype patch_virtual_machine_cluster_instancetype(name, body) +> V1beta1VirtualMachineClusterInstancetype patch_virtual_machine_cluster_instancetype(name, body) @@ -6638,7 +6638,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2VirtualMachineClusterInstancetype**](V1alpha2VirtualMachineClusterInstancetype.md) +[**V1beta1VirtualMachineClusterInstancetype**](V1beta1VirtualMachineClusterInstancetype.md) ### Authorization @@ -6652,7 +6652,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_virtual_machine_cluster_preference** -> V1alpha2VirtualMachineClusterPreference patch_virtual_machine_cluster_preference(name, body) +> V1beta1VirtualMachineClusterPreference patch_virtual_machine_cluster_preference(name, body) @@ -6687,7 +6687,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2VirtualMachineClusterPreference**](V1alpha2VirtualMachineClusterPreference.md) +[**V1beta1VirtualMachineClusterPreference**](V1beta1VirtualMachineClusterPreference.md) ### Authorization @@ -7123,7 +7123,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_virtual_machine_instancetype** -> V1alpha2VirtualMachineInstancetype read_namespaced_virtual_machine_instancetype(name, namespace, exact=exact, export=export) +> V1beta1VirtualMachineInstancetype read_namespaced_virtual_machine_instancetype(name, namespace, exact=exact, export=export) @@ -7162,7 +7162,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2VirtualMachineInstancetype**](V1alpha2VirtualMachineInstancetype.md) +[**V1beta1VirtualMachineInstancetype**](V1beta1VirtualMachineInstancetype.md) ### Authorization @@ -7229,7 +7229,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_virtual_machine_preference** -> V1alpha2VirtualMachinePreference read_namespaced_virtual_machine_preference(name, namespace, exact=exact, export=export) +> V1beta1VirtualMachinePreference read_namespaced_virtual_machine_preference(name, namespace, exact=exact, export=export) @@ -7268,7 +7268,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2VirtualMachinePreference**](V1alpha2VirtualMachinePreference.md) +[**V1beta1VirtualMachinePreference**](V1beta1VirtualMachinePreference.md) ### Authorization @@ -7492,7 +7492,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_virtual_machine_cluster_instancetype** -> V1alpha2VirtualMachineClusterInstancetype read_virtual_machine_cluster_instancetype(name, exact=exact, export=export) +> V1beta1VirtualMachineClusterInstancetype read_virtual_machine_cluster_instancetype(name, exact=exact, export=export) @@ -7529,7 +7529,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2VirtualMachineClusterInstancetype**](V1alpha2VirtualMachineClusterInstancetype.md) +[**V1beta1VirtualMachineClusterInstancetype**](V1beta1VirtualMachineClusterInstancetype.md) ### Authorization @@ -7543,7 +7543,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_virtual_machine_cluster_preference** -> V1alpha2VirtualMachineClusterPreference read_virtual_machine_cluster_preference(name, exact=exact, export=export) +> V1beta1VirtualMachineClusterPreference read_virtual_machine_cluster_preference(name, exact=exact, export=export) @@ -7580,7 +7580,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2VirtualMachineClusterPreference**](V1alpha2VirtualMachineClusterPreference.md) +[**V1beta1VirtualMachineClusterPreference**](V1beta1VirtualMachineClusterPreference.md) ### Authorization @@ -8000,7 +8000,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_virtual_machine_instancetype** -> V1alpha2VirtualMachineInstancetype replace_namespaced_virtual_machine_instancetype(name, namespace, body) +> V1beta1VirtualMachineInstancetype replace_namespaced_virtual_machine_instancetype(name, namespace, body) @@ -8018,7 +8018,7 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1alpha2VirtualMachineInstancetype() # V1alpha2VirtualMachineInstancetype | +body = kubevirt.V1beta1VirtualMachineInstancetype() # V1beta1VirtualMachineInstancetype | try: api_response = api_instance.replace_namespaced_virtual_machine_instancetype(name, namespace, body) @@ -8033,11 +8033,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1alpha2VirtualMachineInstancetype**](V1alpha2VirtualMachineInstancetype.md)| | + **body** | [**V1beta1VirtualMachineInstancetype**](V1beta1VirtualMachineInstancetype.md)| | ### Return type -[**V1alpha2VirtualMachineInstancetype**](V1alpha2VirtualMachineInstancetype.md) +[**V1beta1VirtualMachineInstancetype**](V1beta1VirtualMachineInstancetype.md) ### Authorization @@ -8102,7 +8102,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_virtual_machine_preference** -> V1alpha2VirtualMachinePreference replace_namespaced_virtual_machine_preference(name, namespace, body) +> V1beta1VirtualMachinePreference replace_namespaced_virtual_machine_preference(name, namespace, body) @@ -8120,7 +8120,7 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1alpha2VirtualMachinePreference() # V1alpha2VirtualMachinePreference | +body = kubevirt.V1beta1VirtualMachinePreference() # V1beta1VirtualMachinePreference | try: api_response = api_instance.replace_namespaced_virtual_machine_preference(name, namespace, body) @@ -8135,11 +8135,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1alpha2VirtualMachinePreference**](V1alpha2VirtualMachinePreference.md)| | + **body** | [**V1beta1VirtualMachinePreference**](V1beta1VirtualMachinePreference.md)| | ### Return type -[**V1alpha2VirtualMachinePreference**](V1alpha2VirtualMachinePreference.md) +[**V1beta1VirtualMachinePreference**](V1beta1VirtualMachinePreference.md) ### Authorization @@ -8355,7 +8355,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_virtual_machine_cluster_instancetype** -> V1alpha2VirtualMachineClusterInstancetype replace_virtual_machine_cluster_instancetype(name, body) +> V1beta1VirtualMachineClusterInstancetype replace_virtual_machine_cluster_instancetype(name, body) @@ -8372,7 +8372,7 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource -body = kubevirt.V1alpha2VirtualMachineClusterInstancetype() # V1alpha2VirtualMachineClusterInstancetype | +body = kubevirt.V1beta1VirtualMachineClusterInstancetype() # V1beta1VirtualMachineClusterInstancetype | try: api_response = api_instance.replace_virtual_machine_cluster_instancetype(name, body) @@ -8386,11 +8386,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | - **body** | [**V1alpha2VirtualMachineClusterInstancetype**](V1alpha2VirtualMachineClusterInstancetype.md)| | + **body** | [**V1beta1VirtualMachineClusterInstancetype**](V1beta1VirtualMachineClusterInstancetype.md)| | ### Return type -[**V1alpha2VirtualMachineClusterInstancetype**](V1alpha2VirtualMachineClusterInstancetype.md) +[**V1beta1VirtualMachineClusterInstancetype**](V1beta1VirtualMachineClusterInstancetype.md) ### Authorization @@ -8404,7 +8404,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_virtual_machine_cluster_preference** -> V1alpha2VirtualMachineClusterPreference replace_virtual_machine_cluster_preference(name, body) +> V1beta1VirtualMachineClusterPreference replace_virtual_machine_cluster_preference(name, body) @@ -8421,7 +8421,7 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource -body = kubevirt.V1alpha2VirtualMachineClusterPreference() # V1alpha2VirtualMachineClusterPreference | +body = kubevirt.V1beta1VirtualMachineClusterPreference() # V1beta1VirtualMachineClusterPreference | try: api_response = api_instance.replace_virtual_machine_cluster_preference(name, body) @@ -8435,11 +8435,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | - **body** | [**V1alpha2VirtualMachineClusterPreference**](V1alpha2VirtualMachineClusterPreference.md)| | + **body** | [**V1beta1VirtualMachineClusterPreference**](V1beta1VirtualMachineClusterPreference.md)| | ### Return type -[**V1alpha2VirtualMachineClusterPreference**](V1alpha2VirtualMachineClusterPreference.md) +[**V1beta1VirtualMachineClusterPreference**](V1beta1VirtualMachineClusterPreference.md) ### Authorization diff --git a/docs/V1alpha2VirtualMachinePreferenceSpec.md b/docs/V1alpha2VirtualMachinePreferenceSpec.md deleted file mode 100644 index 0c237669..00000000 --- a/docs/V1alpha2VirtualMachinePreferenceSpec.md +++ /dev/null @@ -1,16 +0,0 @@ -# V1alpha2VirtualMachinePreferenceSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**clock** | [**V1alpha2ClockPreferences**](V1alpha2ClockPreferences.md) | Clock optionally defines preferences associated with the Clock attribute of a VirtualMachineInstance DomainSpec | [optional] -**cpu** | [**V1alpha2CPUPreferences**](V1alpha2CPUPreferences.md) | CPU optionally defines preferences associated with the CPU attribute of a VirtualMachineInstance DomainSpec | [optional] -**devices** | [**V1alpha2DevicePreferences**](V1alpha2DevicePreferences.md) | Devices optionally defines preferences associated with the Devices attribute of a VirtualMachineInstance DomainSpec | [optional] -**features** | [**V1alpha2FeaturePreferences**](V1alpha2FeaturePreferences.md) | Features optionally defines preferences associated with the Features attribute of a VirtualMachineInstance DomainSpec | [optional] -**firmware** | [**V1alpha2FirmwarePreferences**](V1alpha2FirmwarePreferences.md) | Firmware optionally defines preferences associated with the Firmware attribute of a VirtualMachineInstance DomainSpec | [optional] -**machine** | [**V1alpha2MachinePreferences**](V1alpha2MachinePreferences.md) | Machine optionally defines preferences associated with the Machine attribute of a VirtualMachineInstance DomainSpec | [optional] -**volumes** | [**V1alpha2VolumePreferences**](V1alpha2VolumePreferences.md) | Volumes optionally defines preferences associated with the Volumes attribute of a VirtualMachineInstace DomainSpec | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1alpha2CPUInstancetype.md b/docs/V1beta1CPUInstancetype.md similarity index 98% rename from docs/V1alpha2CPUInstancetype.md rename to docs/V1beta1CPUInstancetype.md index 70df2bd0..92de6313 100644 --- a/docs/V1alpha2CPUInstancetype.md +++ b/docs/V1beta1CPUInstancetype.md @@ -1,4 +1,4 @@ -# V1alpha2CPUInstancetype +# V1beta1CPUInstancetype ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha2CPUPreferences.md b/docs/V1beta1CPUPreferences.md similarity index 94% rename from docs/V1alpha2CPUPreferences.md rename to docs/V1beta1CPUPreferences.md index a7423c7b..f6081d50 100644 --- a/docs/V1alpha2CPUPreferences.md +++ b/docs/V1beta1CPUPreferences.md @@ -1,4 +1,4 @@ -# V1alpha2CPUPreferences +# V1beta1CPUPreferences ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha2ClockPreferences.md b/docs/V1beta1ClockPreferences.md similarity index 95% rename from docs/V1alpha2ClockPreferences.md rename to docs/V1beta1ClockPreferences.md index c5a67c05..effc8e42 100644 --- a/docs/V1alpha2ClockPreferences.md +++ b/docs/V1beta1ClockPreferences.md @@ -1,4 +1,4 @@ -# V1alpha2ClockPreferences +# V1beta1ClockPreferences ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha2DevicePreferences.md b/docs/V1beta1DevicePreferences.md similarity index 99% rename from docs/V1alpha2DevicePreferences.md rename to docs/V1beta1DevicePreferences.md index 69e43954..ee49fdf5 100644 --- a/docs/V1alpha2DevicePreferences.md +++ b/docs/V1beta1DevicePreferences.md @@ -1,4 +1,4 @@ -# V1alpha2DevicePreferences +# V1beta1DevicePreferences ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha2FeaturePreferences.md b/docs/V1beta1FeaturePreferences.md similarity index 97% rename from docs/V1alpha2FeaturePreferences.md rename to docs/V1beta1FeaturePreferences.md index ed98088e..524d4f1c 100644 --- a/docs/V1alpha2FeaturePreferences.md +++ b/docs/V1beta1FeaturePreferences.md @@ -1,4 +1,4 @@ -# V1alpha2FeaturePreferences +# V1beta1FeaturePreferences ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha2FirmwarePreferences.md b/docs/V1beta1FirmwarePreferences.md similarity index 96% rename from docs/V1alpha2FirmwarePreferences.md rename to docs/V1beta1FirmwarePreferences.md index ed115e69..172c262e 100644 --- a/docs/V1alpha2FirmwarePreferences.md +++ b/docs/V1beta1FirmwarePreferences.md @@ -1,4 +1,4 @@ -# V1alpha2FirmwarePreferences +# V1beta1FirmwarePreferences ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha2MachinePreferences.md b/docs/V1beta1MachinePreferences.md similarity index 93% rename from docs/V1alpha2MachinePreferences.md rename to docs/V1beta1MachinePreferences.md index b1cd3ade..8b037e06 100644 --- a/docs/V1alpha2MachinePreferences.md +++ b/docs/V1beta1MachinePreferences.md @@ -1,4 +1,4 @@ -# V1alpha2MachinePreferences +# V1beta1MachinePreferences ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha2MemoryInstancetype.md b/docs/V1beta1MemoryInstancetype.md similarity index 95% rename from docs/V1alpha2MemoryInstancetype.md rename to docs/V1beta1MemoryInstancetype.md index 681f3f91..64c2d6a9 100644 --- a/docs/V1alpha2MemoryInstancetype.md +++ b/docs/V1beta1MemoryInstancetype.md @@ -1,4 +1,4 @@ -# V1alpha2MemoryInstancetype +# V1beta1MemoryInstancetype ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha2VirtualMachineClusterInstancetype.md b/docs/V1beta1VirtualMachineClusterInstancetype.md similarity index 84% rename from docs/V1alpha2VirtualMachineClusterInstancetype.md rename to docs/V1beta1VirtualMachineClusterInstancetype.md index bb8480b5..3778326b 100644 --- a/docs/V1alpha2VirtualMachineClusterInstancetype.md +++ b/docs/V1beta1VirtualMachineClusterInstancetype.md @@ -1,4 +1,4 @@ -# V1alpha2VirtualMachineClusterInstancetype +# V1beta1VirtualMachineClusterInstancetype ## Properties Name | Type | Description | Notes @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha2VirtualMachineInstancetypeSpec**](V1alpha2VirtualMachineInstancetypeSpec.md) | Required spec describing the instancetype | +**spec** | [**V1beta1VirtualMachineInstancetypeSpec**](V1beta1VirtualMachineInstancetypeSpec.md) | Required spec describing the instancetype | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha2VirtualMachineClusterInstancetypeList.md b/docs/V1beta1VirtualMachineClusterInstancetypeList.md similarity index 86% rename from docs/V1alpha2VirtualMachineClusterInstancetypeList.md rename to docs/V1beta1VirtualMachineClusterInstancetypeList.md index ec5cbf52..7a5c158a 100644 --- a/docs/V1alpha2VirtualMachineClusterInstancetypeList.md +++ b/docs/V1beta1VirtualMachineClusterInstancetypeList.md @@ -1,10 +1,10 @@ -# V1alpha2VirtualMachineClusterInstancetypeList +# V1beta1VirtualMachineClusterInstancetypeList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**list[V1alpha2VirtualMachineClusterInstancetype]**](V1alpha2VirtualMachineClusterInstancetype.md) | | +**items** | [**list[V1beta1VirtualMachineClusterInstancetype]**](V1beta1VirtualMachineClusterInstancetype.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [optional] diff --git a/docs/V1alpha2VirtualMachineInstancetype.md b/docs/V1beta1VirtualMachineClusterPreference.md similarity index 85% rename from docs/V1alpha2VirtualMachineInstancetype.md rename to docs/V1beta1VirtualMachineClusterPreference.md index 22c79949..9e7b642e 100644 --- a/docs/V1alpha2VirtualMachineInstancetype.md +++ b/docs/V1beta1VirtualMachineClusterPreference.md @@ -1,4 +1,4 @@ -# V1alpha2VirtualMachineInstancetype +# V1beta1VirtualMachineClusterPreference ## Properties Name | Type | Description | Notes @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha2VirtualMachineInstancetypeSpec**](V1alpha2VirtualMachineInstancetypeSpec.md) | Required spec describing the instancetype | +**spec** | [**V1beta1VirtualMachinePreferenceSpec**](V1beta1VirtualMachinePreferenceSpec.md) | Required spec describing the preferences | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha2VirtualMachineClusterPreferenceList.md b/docs/V1beta1VirtualMachineClusterPreferenceList.md similarity index 86% rename from docs/V1alpha2VirtualMachineClusterPreferenceList.md rename to docs/V1beta1VirtualMachineClusterPreferenceList.md index 577077a8..7d46525c 100644 --- a/docs/V1alpha2VirtualMachineClusterPreferenceList.md +++ b/docs/V1beta1VirtualMachineClusterPreferenceList.md @@ -1,10 +1,10 @@ -# V1alpha2VirtualMachineClusterPreferenceList +# V1beta1VirtualMachineClusterPreferenceList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**list[V1alpha2VirtualMachineClusterPreference]**](V1alpha2VirtualMachineClusterPreference.md) | | +**items** | [**list[V1beta1VirtualMachineClusterPreference]**](V1beta1VirtualMachineClusterPreference.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [optional] diff --git a/docs/V1alpha2VirtualMachineClusterPreference.md b/docs/V1beta1VirtualMachineInstancetype.md similarity index 85% rename from docs/V1alpha2VirtualMachineClusterPreference.md rename to docs/V1beta1VirtualMachineInstancetype.md index 71c39dec..efc8665f 100644 --- a/docs/V1alpha2VirtualMachineClusterPreference.md +++ b/docs/V1beta1VirtualMachineInstancetype.md @@ -1,4 +1,4 @@ -# V1alpha2VirtualMachineClusterPreference +# V1beta1VirtualMachineInstancetype ## Properties Name | Type | Description | Notes @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha2VirtualMachinePreferenceSpec**](V1alpha2VirtualMachinePreferenceSpec.md) | Required spec describing the preferences | +**spec** | [**V1beta1VirtualMachineInstancetypeSpec**](V1beta1VirtualMachineInstancetypeSpec.md) | Required spec describing the instancetype | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha2VirtualMachineInstancetypeList.md b/docs/V1beta1VirtualMachineInstancetypeList.md similarity index 87% rename from docs/V1alpha2VirtualMachineInstancetypeList.md rename to docs/V1beta1VirtualMachineInstancetypeList.md index 473c4c6e..73f13db3 100644 --- a/docs/V1alpha2VirtualMachineInstancetypeList.md +++ b/docs/V1beta1VirtualMachineInstancetypeList.md @@ -1,10 +1,10 @@ -# V1alpha2VirtualMachineInstancetypeList +# V1beta1VirtualMachineInstancetypeList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**list[V1alpha2VirtualMachineInstancetype]**](V1alpha2VirtualMachineInstancetype.md) | | +**items** | [**list[V1beta1VirtualMachineInstancetype]**](V1beta1VirtualMachineInstancetype.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [optional] diff --git a/docs/V1alpha2VirtualMachineInstancetypeSpec.md b/docs/V1beta1VirtualMachineInstancetypeSpec.md similarity index 72% rename from docs/V1alpha2VirtualMachineInstancetypeSpec.md rename to docs/V1beta1VirtualMachineInstancetypeSpec.md index d512262c..a10f699f 100644 --- a/docs/V1alpha2VirtualMachineInstancetypeSpec.md +++ b/docs/V1beta1VirtualMachineInstancetypeSpec.md @@ -1,14 +1,14 @@ -# V1alpha2VirtualMachineInstancetypeSpec +# V1beta1VirtualMachineInstancetypeSpec ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cpu** | [**V1alpha2CPUInstancetype**](V1alpha2CPUInstancetype.md) | Required CPU related attributes of the instancetype. | +**cpu** | [**V1beta1CPUInstancetype**](V1beta1CPUInstancetype.md) | Required CPU related attributes of the instancetype. | **gpus** | [**list[V1GPU]**](V1GPU.md) | Optionally defines any GPU devices associated with the instancetype. | [optional] **host_devices** | [**list[V1HostDevice]**](V1HostDevice.md) | Optionally defines any HostDevices associated with the instancetype. | [optional] **io_threads_policy** | **str** | Optionally defines the IOThreadsPolicy to be used by the instancetype. | [optional] **launch_security** | [**V1LaunchSecurity**](V1LaunchSecurity.md) | Optionally defines the LaunchSecurity to be used by the instancetype. | [optional] -**memory** | [**V1alpha2MemoryInstancetype**](V1alpha2MemoryInstancetype.md) | Required Memory related attributes of the instancetype. | +**memory** | [**V1beta1MemoryInstancetype**](V1beta1MemoryInstancetype.md) | Required Memory related attributes of the instancetype. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha2VirtualMachinePreference.md b/docs/V1beta1VirtualMachinePreference.md similarity index 85% rename from docs/V1alpha2VirtualMachinePreference.md rename to docs/V1beta1VirtualMachinePreference.md index 24000a99..a395f264 100644 --- a/docs/V1alpha2VirtualMachinePreference.md +++ b/docs/V1beta1VirtualMachinePreference.md @@ -1,4 +1,4 @@ -# V1alpha2VirtualMachinePreference +# V1beta1VirtualMachinePreference ## Properties Name | Type | Description | Notes @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha2VirtualMachinePreferenceSpec**](V1alpha2VirtualMachinePreferenceSpec.md) | Required spec describing the preferences | +**spec** | [**V1beta1VirtualMachinePreferenceSpec**](V1beta1VirtualMachinePreferenceSpec.md) | Required spec describing the preferences | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha2VirtualMachinePreferenceList.md b/docs/V1beta1VirtualMachinePreferenceList.md similarity index 88% rename from docs/V1alpha2VirtualMachinePreferenceList.md rename to docs/V1beta1VirtualMachinePreferenceList.md index 27b6a174..2b71fa0b 100644 --- a/docs/V1alpha2VirtualMachinePreferenceList.md +++ b/docs/V1beta1VirtualMachinePreferenceList.md @@ -1,10 +1,10 @@ -# V1alpha2VirtualMachinePreferenceList +# V1beta1VirtualMachinePreferenceList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**list[V1alpha2VirtualMachinePreference]**](V1alpha2VirtualMachinePreference.md) | | +**items** | [**list[V1beta1VirtualMachinePreference]**](V1beta1VirtualMachinePreference.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [optional] diff --git a/docs/V1beta1VirtualMachinePreferenceSpec.md b/docs/V1beta1VirtualMachinePreferenceSpec.md new file mode 100644 index 00000000..6d2a275b --- /dev/null +++ b/docs/V1beta1VirtualMachinePreferenceSpec.md @@ -0,0 +1,16 @@ +# V1beta1VirtualMachinePreferenceSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**clock** | [**V1beta1ClockPreferences**](V1beta1ClockPreferences.md) | Clock optionally defines preferences associated with the Clock attribute of a VirtualMachineInstance DomainSpec | [optional] +**cpu** | [**V1beta1CPUPreferences**](V1beta1CPUPreferences.md) | CPU optionally defines preferences associated with the CPU attribute of a VirtualMachineInstance DomainSpec | [optional] +**devices** | [**V1beta1DevicePreferences**](V1beta1DevicePreferences.md) | Devices optionally defines preferences associated with the Devices attribute of a VirtualMachineInstance DomainSpec | [optional] +**features** | [**V1beta1FeaturePreferences**](V1beta1FeaturePreferences.md) | Features optionally defines preferences associated with the Features attribute of a VirtualMachineInstance DomainSpec | [optional] +**firmware** | [**V1beta1FirmwarePreferences**](V1beta1FirmwarePreferences.md) | Firmware optionally defines preferences associated with the Firmware attribute of a VirtualMachineInstance DomainSpec | [optional] +**machine** | [**V1beta1MachinePreferences**](V1beta1MachinePreferences.md) | Machine optionally defines preferences associated with the Machine attribute of a VirtualMachineInstance DomainSpec | [optional] +**volumes** | [**V1beta1VolumePreferences**](V1beta1VolumePreferences.md) | Volumes optionally defines preferences associated with the Volumes attribute of a VirtualMachineInstace DomainSpec | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha2VolumePreferences.md b/docs/V1beta1VolumePreferences.md similarity index 93% rename from docs/V1alpha2VolumePreferences.md rename to docs/V1beta1VolumePreferences.md index 3498f48f..faed1ace 100644 --- a/docs/V1alpha2VolumePreferences.md +++ b/docs/V1beta1VolumePreferences.md @@ -1,4 +1,4 @@ -# V1alpha2VolumePreferences +# V1beta1VolumePreferences ## Properties Name | Type | Description | Notes diff --git a/git_push.sh b/git_push.sh index 045eaf2a..88ae1969 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-74-gcbe6f6627" + release_note="Auto-generated client v1.0.0-beta.0-105-g9d68c4bdf" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index b97785d7..d2171cc5 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -918,63 +918,15 @@ 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/v1alpha1_volume_snapshot_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_volume_snapshot_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VolumeSnapshotStatus.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_cpu_instancetype.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_cpu_instancetype.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2CPUInstancetype.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_cpu_preferences.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_cpu_preferences.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2CPUPreferences.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_clock_preferences.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_clock_preferences.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2ClockPreferences.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_device_preferences.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_device_preferences.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2DevicePreferences.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_feature_preferences.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_feature_preferences.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2FeaturePreferences.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_firmware_preferences.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_firmware_preferences.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2FirmwarePreferences.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_machine_preferences.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_machine_preferences.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2MachinePreferences.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_memory_instancetype.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_memory_instancetype.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2MemoryInstancetype.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_virtual_machine_cluster_instancetype.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_virtual_machine_cluster_instancetype.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2VirtualMachineClusterInstancetype.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_virtual_machine_cluster_instancetype_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_virtual_machine_cluster_instancetype_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2VirtualMachineClusterInstancetypeList.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_virtual_machine_cluster_preference.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_virtual_machine_cluster_preference.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2VirtualMachineClusterPreference.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_virtual_machine_cluster_preference_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_virtual_machine_cluster_preference_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2VirtualMachineClusterPreferenceList.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_virtual_machine_instancetype.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_virtual_machine_instancetype.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2VirtualMachineInstancetype.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_virtual_machine_instancetype_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_virtual_machine_instancetype_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2VirtualMachineInstancetypeList.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_virtual_machine_instancetype_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_virtual_machine_instancetype_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2VirtualMachineInstancetypeSpec.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_virtual_machine_preference.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_virtual_machine_preference.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2VirtualMachinePreference.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_virtual_machine_preference_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_virtual_machine_preference_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2VirtualMachinePreferenceList.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_virtual_machine_preference_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_virtual_machine_preference_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2VirtualMachinePreferenceSpec.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha2_volume_preferences.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha2_volume_preferences.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha2VolumePreferences.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_cpu_instancetype.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_cpu_instancetype.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1CPUInstancetype.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_cpu_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_cpu_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1CPUPreferences.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_clock_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_clock_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1ClockPreferences.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_data_volume_blank_image.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_blank_image.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeBlankImage.md @@ -1011,9 +963,57 @@ 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/v1beta1_data_volume_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_device_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_device_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DevicePreferences.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_feature_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_feature_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1FeaturePreferences.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_firmware_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_firmware_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1FirmwarePreferences.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_machine_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_machine_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1MachinePreferences.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_memory_instancetype.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_memory_instancetype.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1MemoryInstancetype.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_storage_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_storage_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1StorageSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_cluster_instancetype.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_cluster_instancetype.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineClusterInstancetype.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_cluster_instancetype_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_cluster_instancetype_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineClusterInstancetypeList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_cluster_preference.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_cluster_preference.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineClusterPreference.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_cluster_preference_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_cluster_preference_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineClusterPreferenceList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_instancetype.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_instancetype.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineInstancetype.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_instancetype_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_instancetype_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineInstancetypeList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_instancetype_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_instancetype_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineInstancetypeSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_preference.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_preference.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePreference.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_preference_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_preference_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePreferenceList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_preference_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_preference_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePreferenceSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_volume_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_volume_preferences.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VolumePreferences.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_default_api.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/DefaultApi.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 7106608c..ff3811fb 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -313,25 +313,9 @@ from .models.v1alpha1_volume_backup import V1alpha1VolumeBackup from .models.v1alpha1_volume_restore import V1alpha1VolumeRestore from .models.v1alpha1_volume_snapshot_status import V1alpha1VolumeSnapshotStatus -from .models.v1alpha2_cpu_instancetype import V1alpha2CPUInstancetype -from .models.v1alpha2_cpu_preferences import V1alpha2CPUPreferences -from .models.v1alpha2_clock_preferences import V1alpha2ClockPreferences -from .models.v1alpha2_device_preferences import V1alpha2DevicePreferences -from .models.v1alpha2_feature_preferences import V1alpha2FeaturePreferences -from .models.v1alpha2_firmware_preferences import V1alpha2FirmwarePreferences -from .models.v1alpha2_machine_preferences import V1alpha2MachinePreferences -from .models.v1alpha2_memory_instancetype import V1alpha2MemoryInstancetype -from .models.v1alpha2_virtual_machine_cluster_instancetype import V1alpha2VirtualMachineClusterInstancetype -from .models.v1alpha2_virtual_machine_cluster_instancetype_list import V1alpha2VirtualMachineClusterInstancetypeList -from .models.v1alpha2_virtual_machine_cluster_preference import V1alpha2VirtualMachineClusterPreference -from .models.v1alpha2_virtual_machine_cluster_preference_list import V1alpha2VirtualMachineClusterPreferenceList -from .models.v1alpha2_virtual_machine_instancetype import V1alpha2VirtualMachineInstancetype -from .models.v1alpha2_virtual_machine_instancetype_list import V1alpha2VirtualMachineInstancetypeList -from .models.v1alpha2_virtual_machine_instancetype_spec import V1alpha2VirtualMachineInstancetypeSpec -from .models.v1alpha2_virtual_machine_preference import V1alpha2VirtualMachinePreference -from .models.v1alpha2_virtual_machine_preference_list import V1alpha2VirtualMachinePreferenceList -from .models.v1alpha2_virtual_machine_preference_spec import V1alpha2VirtualMachinePreferenceSpec -from .models.v1alpha2_volume_preferences import V1alpha2VolumePreferences +from .models.v1beta1_cpu_instancetype import V1beta1CPUInstancetype +from .models.v1beta1_cpu_preferences import V1beta1CPUPreferences +from .models.v1beta1_clock_preferences import V1beta1ClockPreferences from .models.v1beta1_data_volume_blank_image import V1beta1DataVolumeBlankImage from .models.v1beta1_data_volume_checkpoint import V1beta1DataVolumeCheckpoint from .models.v1beta1_data_volume_source import V1beta1DataVolumeSource @@ -344,7 +328,23 @@ from .models.v1beta1_data_volume_source_upload import V1beta1DataVolumeSourceUpload from .models.v1beta1_data_volume_source_vddk import V1beta1DataVolumeSourceVDDK from .models.v1beta1_data_volume_spec import V1beta1DataVolumeSpec +from .models.v1beta1_device_preferences import V1beta1DevicePreferences +from .models.v1beta1_feature_preferences import V1beta1FeaturePreferences +from .models.v1beta1_firmware_preferences import V1beta1FirmwarePreferences +from .models.v1beta1_machine_preferences import V1beta1MachinePreferences +from .models.v1beta1_memory_instancetype import V1beta1MemoryInstancetype from .models.v1beta1_storage_spec import V1beta1StorageSpec +from .models.v1beta1_virtual_machine_cluster_instancetype import V1beta1VirtualMachineClusterInstancetype +from .models.v1beta1_virtual_machine_cluster_instancetype_list import V1beta1VirtualMachineClusterInstancetypeList +from .models.v1beta1_virtual_machine_cluster_preference import V1beta1VirtualMachineClusterPreference +from .models.v1beta1_virtual_machine_cluster_preference_list import V1beta1VirtualMachineClusterPreferenceList +from .models.v1beta1_virtual_machine_instancetype import V1beta1VirtualMachineInstancetype +from .models.v1beta1_virtual_machine_instancetype_list import V1beta1VirtualMachineInstancetypeList +from .models.v1beta1_virtual_machine_instancetype_spec import V1beta1VirtualMachineInstancetypeSpec +from .models.v1beta1_virtual_machine_preference import V1beta1VirtualMachinePreference +from .models.v1beta1_virtual_machine_preference_list import V1beta1VirtualMachinePreferenceList +from .models.v1beta1_virtual_machine_preference_spec import V1beta1VirtualMachinePreferenceSpec +from .models.v1beta1_volume_preferences import V1beta1VolumePreferences # import apis into sdk package from .apis.default_api import DefaultApi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 0a84cd3a..c509538e 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-74-gcbe6f6627/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-105-g9d68c4bdf/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index d9d231c5..f75663f5 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -934,9 +934,9 @@ def create_namespaced_virtual_machine_instancetype(self, body, namespace, **kwar :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha2VirtualMachineInstancetype body: (required) + :param V1beta1VirtualMachineInstancetype body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1alpha2VirtualMachineInstancetype + :return: V1beta1VirtualMachineInstancetype If the method is called asynchronously, returns the request thread. """ @@ -960,9 +960,9 @@ def create_namespaced_virtual_machine_instancetype_with_http_info(self, body, na :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha2VirtualMachineInstancetype body: (required) + :param V1beta1VirtualMachineInstancetype body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1alpha2VirtualMachineInstancetype + :return: V1beta1VirtualMachineInstancetype If the method is called asynchronously, returns the request thread. """ @@ -1017,14 +1017,14 @@ def create_namespaced_virtual_machine_instancetype_with_http_info(self, body, na # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes', 'POST', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha2VirtualMachineInstancetype', + response_type='V1beta1VirtualMachineInstancetype', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1156,9 +1156,9 @@ def create_namespaced_virtual_machine_preference(self, body, namespace, **kwargs :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha2VirtualMachinePreference body: (required) + :param V1beta1VirtualMachinePreference body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1alpha2VirtualMachinePreference + :return: V1beta1VirtualMachinePreference If the method is called asynchronously, returns the request thread. """ @@ -1182,9 +1182,9 @@ def create_namespaced_virtual_machine_preference_with_http_info(self, body, name :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha2VirtualMachinePreference body: (required) + :param V1beta1VirtualMachinePreference body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1alpha2VirtualMachinePreference + :return: V1beta1VirtualMachinePreference If the method is called asynchronously, returns the request thread. """ @@ -1239,14 +1239,14 @@ def create_namespaced_virtual_machine_preference_with_http_info(self, body, name # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'POST', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha2VirtualMachinePreference', + response_type='V1beta1VirtualMachinePreference', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1704,8 +1704,8 @@ def create_virtual_machine_cluster_instancetype(self, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha2VirtualMachineClusterInstancetype body: (required) - :return: V1alpha2VirtualMachineClusterInstancetype + :param V1beta1VirtualMachineClusterInstancetype body: (required) + :return: V1beta1VirtualMachineClusterInstancetype If the method is called asynchronously, returns the request thread. """ @@ -1729,8 +1729,8 @@ def create_virtual_machine_cluster_instancetype_with_http_info(self, body, **kwa :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha2VirtualMachineClusterInstancetype body: (required) - :return: V1alpha2VirtualMachineClusterInstancetype + :param V1beta1VirtualMachineClusterInstancetype body: (required) + :return: V1beta1VirtualMachineClusterInstancetype If the method is called asynchronously, returns the request thread. """ @@ -1780,14 +1780,14 @@ def create_virtual_machine_cluster_instancetype_with_http_info(self, body, **kwa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes', 'POST', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha2VirtualMachineClusterInstancetype', + response_type='V1beta1VirtualMachineClusterInstancetype', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1808,8 +1808,8 @@ def create_virtual_machine_cluster_preference(self, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha2VirtualMachineClusterPreference body: (required) - :return: V1alpha2VirtualMachineClusterPreference + :param V1beta1VirtualMachineClusterPreference body: (required) + :return: V1beta1VirtualMachineClusterPreference If the method is called asynchronously, returns the request thread. """ @@ -1833,8 +1833,8 @@ def create_virtual_machine_cluster_preference_with_http_info(self, body, **kwarg :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha2VirtualMachineClusterPreference body: (required) - :return: V1alpha2VirtualMachineClusterPreference + :param V1beta1VirtualMachineClusterPreference body: (required) + :return: V1beta1VirtualMachineClusterPreference If the method is called asynchronously, returns the request thread. """ @@ -1884,14 +1884,14 @@ def create_virtual_machine_cluster_preference_with_http_info(self, body, **kwarg # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences', 'POST', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha2VirtualMachineClusterPreference', + response_type='V1beta1VirtualMachineClusterPreference', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3009,7 +3009,7 @@ def delete_collection_namespaced_virtual_machine_instancetype_with_http_info(sel # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes', 'DELETE', path_params, query_params, header_params, @@ -3259,7 +3259,7 @@ def delete_collection_namespaced_virtual_machine_preference_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'DELETE', path_params, query_params, header_params, @@ -3884,7 +3884,7 @@ def delete_collection_virtual_machine_cluster_instancetype_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes', 'DELETE', path_params, query_params, header_params, @@ -4009,7 +4009,7 @@ def delete_collection_virtual_machine_cluster_preference_with_http_info(self, ** # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences', 'DELETE', path_params, query_params, header_params, @@ -5172,7 +5172,7 @@ def delete_namespaced_virtual_machine_instancetype_with_http_info(self, name, na # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -5432,7 +5432,7 @@ def delete_namespaced_virtual_machine_preference_with_http_info(self, name, name # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -6068,7 +6068,7 @@ def delete_virtual_machine_cluster_instancetype_with_http_info(self, name, body, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -6191,7 +6191,7 @@ def delete_virtual_machine_cluster_preference_with_http_info(self, name, body, * # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', path_params, query_params, header_params, @@ -7308,7 +7308,7 @@ def get_api_resources_export_kubevirt_io_v1alpha1_with_http_info(self, **kwargs) _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_resources_instancetype_kubevirt_io_v1alpha2(self, **kwargs): + def get_api_resources_instancetype_kubevirt_io_v1beta1(self, **kwargs): """ Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an @@ -7317,7 +7317,7 @@ def get_api_resources_instancetype_kubevirt_io_v1alpha2(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_instancetype_kubevirt_io_v1alpha2(callback=callback_function) + >>> thread = api.get_api_resources_instancetype_kubevirt_io_v1beta1(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7327,12 +7327,12 @@ def get_api_resources_instancetype_kubevirt_io_v1alpha2(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_resources_instancetype_kubevirt_io_v1alpha2_with_http_info(**kwargs) + return self.get_api_resources_instancetype_kubevirt_io_v1beta1_with_http_info(**kwargs) else: - (data) = self.get_api_resources_instancetype_kubevirt_io_v1alpha2_with_http_info(**kwargs) + (data) = self.get_api_resources_instancetype_kubevirt_io_v1beta1_with_http_info(**kwargs) return data - def get_api_resources_instancetype_kubevirt_io_v1alpha2_with_http_info(self, **kwargs): + def get_api_resources_instancetype_kubevirt_io_v1beta1_with_http_info(self, **kwargs): """ Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an @@ -7341,7 +7341,7 @@ def get_api_resources_instancetype_kubevirt_io_v1alpha2_with_http_info(self, **k >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_instancetype_kubevirt_io_v1alpha2_with_http_info(callback=callback_function) + >>> thread = api.get_api_resources_instancetype_kubevirt_io_v1beta1_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7361,7 +7361,7 @@ def get_api_resources_instancetype_kubevirt_io_v1alpha2_with_http_info(self, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_resources_instancetype_kubevirt_io_v1alpha2" % key + " to method get_api_resources_instancetype_kubevirt_io_v1beta1" % key ) params[key] = val del params['kwargs'] @@ -7385,7 +7385,7 @@ def get_api_resources_instancetype_kubevirt_io_v1alpha2_with_http_info(self, **k # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/', 'GET', path_params, query_params, header_params, @@ -9320,7 +9320,7 @@ def list_namespaced_virtual_machine_instancetype(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha2VirtualMachineInstancetypeList + :return: V1beta1VirtualMachineInstancetypeList If the method is called asynchronously, returns the request thread. """ @@ -9353,7 +9353,7 @@ def list_namespaced_virtual_machine_instancetype_with_http_info(self, namespace, :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha2VirtualMachineInstancetypeList + :return: V1beta1VirtualMachineInstancetypeList If the method is called asynchronously, returns the request thread. """ @@ -9415,14 +9415,14 @@ def list_namespaced_virtual_machine_instancetype_with_http_info(self, namespace, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha2VirtualMachineInstancetypeList', + response_type='V1beta1VirtualMachineInstancetypeList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9584,7 +9584,7 @@ def list_namespaced_virtual_machine_preference(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha2VirtualMachinePreferenceList + :return: V1beta1VirtualMachinePreferenceList If the method is called asynchronously, returns the request thread. """ @@ -9617,7 +9617,7 @@ def list_namespaced_virtual_machine_preference_with_http_info(self, namespace, * :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha2VirtualMachinePreferenceList + :return: V1beta1VirtualMachinePreferenceList If the method is called asynchronously, returns the request thread. """ @@ -9679,14 +9679,14 @@ def list_namespaced_virtual_machine_preference_with_http_info(self, namespace, * # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha2VirtualMachinePreferenceList', + response_type='V1beta1VirtualMachinePreferenceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10236,7 +10236,7 @@ def list_virtual_machine_cluster_instancetype(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha2VirtualMachineClusterInstancetypeList + :return: V1beta1VirtualMachineClusterInstancetypeList If the method is called asynchronously, returns the request thread. """ @@ -10268,7 +10268,7 @@ def list_virtual_machine_cluster_instancetype_with_http_info(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha2VirtualMachineClusterInstancetypeList + :return: V1beta1VirtualMachineClusterInstancetypeList If the method is called asynchronously, returns the request thread. """ @@ -10325,14 +10325,14 @@ def list_virtual_machine_cluster_instancetype_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha2VirtualMachineClusterInstancetypeList', + response_type='V1beta1VirtualMachineClusterInstancetypeList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10361,7 +10361,7 @@ def list_virtual_machine_cluster_preference(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha2VirtualMachineClusterPreferenceList + :return: V1beta1VirtualMachineClusterPreferenceList If the method is called asynchronously, returns the request thread. """ @@ -10393,7 +10393,7 @@ def list_virtual_machine_cluster_preference_with_http_info(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha2VirtualMachineClusterPreferenceList + :return: V1beta1VirtualMachineClusterPreferenceList If the method is called asynchronously, returns the request thread. """ @@ -10450,14 +10450,14 @@ def list_virtual_machine_cluster_preference_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha2VirtualMachineClusterPreferenceList', + response_type='V1beta1VirtualMachineClusterPreferenceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11236,7 +11236,7 @@ def list_virtual_machine_instancetype_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha2VirtualMachineInstancetypeList + :return: V1beta1VirtualMachineInstancetypeList If the method is called asynchronously, returns the request thread. """ @@ -11268,7 +11268,7 @@ def list_virtual_machine_instancetype_for_all_namespaces_with_http_info(self, ** :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha2VirtualMachineInstancetypeList + :return: V1beta1VirtualMachineInstancetypeList If the method is called asynchronously, returns the request thread. """ @@ -11325,14 +11325,14 @@ def list_virtual_machine_instancetype_for_all_namespaces_with_http_info(self, ** # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineinstancetypes', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineinstancetypes', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha2VirtualMachineInstancetypeList', + response_type='V1beta1VirtualMachineInstancetypeList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11486,7 +11486,7 @@ def list_virtual_machine_preference_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha2VirtualMachinePreferenceList + :return: V1beta1VirtualMachinePreferenceList If the method is called asynchronously, returns the request thread. """ @@ -11518,7 +11518,7 @@ def list_virtual_machine_preference_for_all_namespaces_with_http_info(self, **kw :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha2VirtualMachinePreferenceList + :return: V1beta1VirtualMachinePreferenceList If the method is called asynchronously, returns the request thread. """ @@ -11575,14 +11575,14 @@ def list_virtual_machine_preference_for_all_namespaces_with_http_info(self, **kw # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachinepreferences', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachinepreferences', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha2VirtualMachinePreferenceList', + response_type='V1beta1VirtualMachinePreferenceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12918,7 +12918,7 @@ def patch_namespaced_virtual_machine_instancetype(self, name, namespace, body, * :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha2VirtualMachineInstancetype + :return: V1beta1VirtualMachineInstancetype If the method is called asynchronously, returns the request thread. """ @@ -12945,7 +12945,7 @@ def patch_namespaced_virtual_machine_instancetype_with_http_info(self, name, nam :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha2VirtualMachineInstancetype + :return: V1beta1VirtualMachineInstancetype If the method is called asynchronously, returns the request thread. """ @@ -13005,14 +13005,14 @@ def patch_namespaced_virtual_machine_instancetype_with_http_info(self, name, nam # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha2VirtualMachineInstancetype', + response_type='V1beta1VirtualMachineInstancetype', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13154,7 +13154,7 @@ def patch_namespaced_virtual_machine_preference(self, name, namespace, body, **k :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha2VirtualMachinePreference + :return: V1beta1VirtualMachinePreference If the method is called asynchronously, returns the request thread. """ @@ -13181,7 +13181,7 @@ def patch_namespaced_virtual_machine_preference_with_http_info(self, name, names :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha2VirtualMachinePreference + :return: V1beta1VirtualMachinePreference If the method is called asynchronously, returns the request thread. """ @@ -13241,14 +13241,14 @@ def patch_namespaced_virtual_machine_preference_with_http_info(self, name, names # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha2VirtualMachinePreference', + response_type='V1beta1VirtualMachinePreference', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13736,7 +13736,7 @@ def patch_virtual_machine_cluster_instancetype(self, name, body, **kwargs): for asynchronous request. (optional) :param str name: Name of the resource (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha2VirtualMachineClusterInstancetype + :return: V1beta1VirtualMachineClusterInstancetype If the method is called asynchronously, returns the request thread. """ @@ -13762,7 +13762,7 @@ def patch_virtual_machine_cluster_instancetype_with_http_info(self, name, body, for asynchronous request. (optional) :param str name: Name of the resource (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha2VirtualMachineClusterInstancetype + :return: V1beta1VirtualMachineClusterInstancetype If the method is called asynchronously, returns the request thread. """ @@ -13817,14 +13817,14 @@ def patch_virtual_machine_cluster_instancetype_with_http_info(self, name, body, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha2VirtualMachineClusterInstancetype', + response_type='V1beta1VirtualMachineClusterInstancetype', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13847,7 +13847,7 @@ def patch_virtual_machine_cluster_preference(self, name, body, **kwargs): for asynchronous request. (optional) :param str name: Name of the resource (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha2VirtualMachineClusterPreference + :return: V1beta1VirtualMachineClusterPreference If the method is called asynchronously, returns the request thread. """ @@ -13873,7 +13873,7 @@ def patch_virtual_machine_cluster_preference_with_http_info(self, name, body, ** for asynchronous request. (optional) :param str name: Name of the resource (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha2VirtualMachineClusterPreference + :return: V1beta1VirtualMachineClusterPreference If the method is called asynchronously, returns the request thread. """ @@ -13928,14 +13928,14 @@ def patch_virtual_machine_cluster_preference_with_http_info(self, name, body, ** # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha2VirtualMachineClusterPreference', + response_type='V1beta1VirtualMachineClusterPreference', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -14873,7 +14873,7 @@ def read_namespaced_virtual_machine_instancetype(self, name, namespace, **kwargs :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha2VirtualMachineInstancetype + :return: V1beta1VirtualMachineInstancetype If the method is called asynchronously, returns the request thread. """ @@ -14901,7 +14901,7 @@ def read_namespaced_virtual_machine_instancetype_with_http_info(self, name, name :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha2VirtualMachineInstancetype + :return: V1beta1VirtualMachineInstancetype If the method is called asynchronously, returns the request thread. """ @@ -14956,14 +14956,14 @@ def read_namespaced_virtual_machine_instancetype_with_http_info(self, name, name # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha2VirtualMachineInstancetype', + response_type='V1beta1VirtualMachineInstancetype', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -15103,7 +15103,7 @@ def read_namespaced_virtual_machine_preference(self, name, namespace, **kwargs): :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha2VirtualMachinePreference + :return: V1beta1VirtualMachinePreference If the method is called asynchronously, returns the request thread. """ @@ -15131,7 +15131,7 @@ def read_namespaced_virtual_machine_preference_with_http_info(self, name, namesp :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha2VirtualMachinePreference + :return: V1beta1VirtualMachinePreference If the method is called asynchronously, returns the request thread. """ @@ -15186,14 +15186,14 @@ def read_namespaced_virtual_machine_preference_with_http_info(self, name, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha2VirtualMachinePreference', + response_type='V1beta1VirtualMachinePreference', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -15670,7 +15670,7 @@ def read_virtual_machine_cluster_instancetype(self, name, **kwargs): :param str name: Name of the resource (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha2VirtualMachineClusterInstancetype + :return: V1beta1VirtualMachineClusterInstancetype If the method is called asynchronously, returns the request thread. """ @@ -15697,7 +15697,7 @@ def read_virtual_machine_cluster_instancetype_with_http_info(self, name, **kwarg :param str name: Name of the resource (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha2VirtualMachineClusterInstancetype + :return: V1beta1VirtualMachineClusterInstancetype If the method is called asynchronously, returns the request thread. """ @@ -15747,14 +15747,14 @@ def read_virtual_machine_cluster_instancetype_with_http_info(self, name, **kwarg # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha2VirtualMachineClusterInstancetype', + response_type='V1beta1VirtualMachineClusterInstancetype', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -15778,7 +15778,7 @@ def read_virtual_machine_cluster_preference(self, name, **kwargs): :param str name: Name of the resource (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha2VirtualMachineClusterPreference + :return: V1beta1VirtualMachineClusterPreference If the method is called asynchronously, returns the request thread. """ @@ -15805,7 +15805,7 @@ def read_virtual_machine_cluster_preference_with_http_info(self, name, **kwargs) :param str name: Name of the resource (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha2VirtualMachineClusterPreference + :return: V1beta1VirtualMachineClusterPreference If the method is called asynchronously, returns the request thread. """ @@ -15855,14 +15855,14 @@ def read_virtual_machine_cluster_preference_with_http_info(self, name, **kwargs) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha2VirtualMachineClusterPreference', + response_type='V1beta1VirtualMachineClusterPreference', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -16822,8 +16822,8 @@ def replace_namespaced_virtual_machine_instancetype(self, name, namespace, body, for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha2VirtualMachineInstancetype body: (required) - :return: V1alpha2VirtualMachineInstancetype + :param V1beta1VirtualMachineInstancetype body: (required) + :return: V1beta1VirtualMachineInstancetype If the method is called asynchronously, returns the request thread. """ @@ -16849,8 +16849,8 @@ def replace_namespaced_virtual_machine_instancetype_with_http_info(self, name, n for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha2VirtualMachineInstancetype body: (required) - :return: V1alpha2VirtualMachineInstancetype + :param V1beta1VirtualMachineInstancetype body: (required) + :return: V1beta1VirtualMachineInstancetype If the method is called asynchronously, returns the request thread. """ @@ -16910,14 +16910,14 @@ def replace_namespaced_virtual_machine_instancetype_with_http_info(self, name, n # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha2VirtualMachineInstancetype', + response_type='V1beta1VirtualMachineInstancetype', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -17058,8 +17058,8 @@ def replace_namespaced_virtual_machine_preference(self, name, namespace, body, * for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha2VirtualMachinePreference body: (required) - :return: V1alpha2VirtualMachinePreference + :param V1beta1VirtualMachinePreference body: (required) + :return: V1beta1VirtualMachinePreference If the method is called asynchronously, returns the request thread. """ @@ -17085,8 +17085,8 @@ def replace_namespaced_virtual_machine_preference_with_http_info(self, name, nam for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha2VirtualMachinePreference body: (required) - :return: V1alpha2VirtualMachinePreference + :param V1beta1VirtualMachinePreference body: (required) + :return: V1beta1VirtualMachinePreference If the method is called asynchronously, returns the request thread. """ @@ -17146,14 +17146,14 @@ def replace_namespaced_virtual_machine_preference_with_http_info(self, name, nam # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha2VirtualMachinePreference', + response_type='V1beta1VirtualMachinePreference', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -17640,8 +17640,8 @@ def replace_virtual_machine_cluster_instancetype(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param V1alpha2VirtualMachineClusterInstancetype body: (required) - :return: V1alpha2VirtualMachineClusterInstancetype + :param V1beta1VirtualMachineClusterInstancetype body: (required) + :return: V1beta1VirtualMachineClusterInstancetype If the method is called asynchronously, returns the request thread. """ @@ -17666,8 +17666,8 @@ def replace_virtual_machine_cluster_instancetype_with_http_info(self, name, body :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param V1alpha2VirtualMachineClusterInstancetype body: (required) - :return: V1alpha2VirtualMachineClusterInstancetype + :param V1beta1VirtualMachineClusterInstancetype body: (required) + :return: V1beta1VirtualMachineClusterInstancetype If the method is called asynchronously, returns the request thread. """ @@ -17722,14 +17722,14 @@ def replace_virtual_machine_cluster_instancetype_with_http_info(self, name, body # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha2VirtualMachineClusterInstancetype', + response_type='V1beta1VirtualMachineClusterInstancetype', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -17751,8 +17751,8 @@ def replace_virtual_machine_cluster_preference(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param V1alpha2VirtualMachineClusterPreference body: (required) - :return: V1alpha2VirtualMachineClusterPreference + :param V1beta1VirtualMachineClusterPreference body: (required) + :return: V1beta1VirtualMachineClusterPreference If the method is called asynchronously, returns the request thread. """ @@ -17777,8 +17777,8 @@ def replace_virtual_machine_cluster_preference_with_http_info(self, name, body, :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param V1alpha2VirtualMachineClusterPreference body: (required) - :return: V1alpha2VirtualMachineClusterPreference + :param V1beta1VirtualMachineClusterPreference body: (required) + :return: V1beta1VirtualMachineClusterPreference If the method is called asynchronously, returns the request thread. """ @@ -17833,14 +17833,14 @@ def replace_virtual_machine_cluster_preference_with_http_info(self, name, body, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha2VirtualMachineClusterPreference', + response_type='V1beta1VirtualMachineClusterPreference', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -27173,7 +27173,7 @@ def watch_namespaced_virtual_machine_instancetype_with_http_info(self, namespace # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes', 'GET', path_params, query_params, header_params, @@ -27437,7 +27437,7 @@ def watch_namespaced_virtual_machine_preference_with_http_info(self, namespace, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'GET', path_params, query_params, header_params, @@ -28083,7 +28083,7 @@ def watch_virtual_machine_cluster_instancetype_list_for_all_namespaces_with_http # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/watch/virtualmachineclusterinstancetypes', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterinstancetypes', 'GET', path_params, query_params, header_params, @@ -28208,7 +28208,7 @@ def watch_virtual_machine_cluster_preference_list_for_all_namespaces_with_http_i # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/watch/virtualmachineclusterpreferences', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterpreferences', 'GET', path_params, query_params, header_params, @@ -28958,7 +28958,7 @@ def watch_virtual_machine_instancetype_list_for_all_namespaces_with_http_info(se # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/watch/virtualmachineinstancetypes', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineinstancetypes', 'GET', path_params, query_params, header_params, @@ -29333,7 +29333,7 @@ def watch_virtual_machine_preference_list_for_all_namespaces_with_http_info(self # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1alpha2/watch/virtualmachinepreferences', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachinepreferences', 'GET', path_params, query_params, header_params, diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 39db4d11..b29447bf 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-74-gcbe6f6627".\ + "SDK Package Version: v1.0.0-beta.0-105-g9d68c4bdf".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index be0eaa8b..cebfa661 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -313,25 +313,9 @@ from .v1alpha1_volume_backup import V1alpha1VolumeBackup from .v1alpha1_volume_restore import V1alpha1VolumeRestore from .v1alpha1_volume_snapshot_status import V1alpha1VolumeSnapshotStatus -from .v1alpha2_cpu_instancetype import V1alpha2CPUInstancetype -from .v1alpha2_cpu_preferences import V1alpha2CPUPreferences -from .v1alpha2_clock_preferences import V1alpha2ClockPreferences -from .v1alpha2_device_preferences import V1alpha2DevicePreferences -from .v1alpha2_feature_preferences import V1alpha2FeaturePreferences -from .v1alpha2_firmware_preferences import V1alpha2FirmwarePreferences -from .v1alpha2_machine_preferences import V1alpha2MachinePreferences -from .v1alpha2_memory_instancetype import V1alpha2MemoryInstancetype -from .v1alpha2_virtual_machine_cluster_instancetype import V1alpha2VirtualMachineClusterInstancetype -from .v1alpha2_virtual_machine_cluster_instancetype_list import V1alpha2VirtualMachineClusterInstancetypeList -from .v1alpha2_virtual_machine_cluster_preference import V1alpha2VirtualMachineClusterPreference -from .v1alpha2_virtual_machine_cluster_preference_list import V1alpha2VirtualMachineClusterPreferenceList -from .v1alpha2_virtual_machine_instancetype import V1alpha2VirtualMachineInstancetype -from .v1alpha2_virtual_machine_instancetype_list import V1alpha2VirtualMachineInstancetypeList -from .v1alpha2_virtual_machine_instancetype_spec import V1alpha2VirtualMachineInstancetypeSpec -from .v1alpha2_virtual_machine_preference import V1alpha2VirtualMachinePreference -from .v1alpha2_virtual_machine_preference_list import V1alpha2VirtualMachinePreferenceList -from .v1alpha2_virtual_machine_preference_spec import V1alpha2VirtualMachinePreferenceSpec -from .v1alpha2_volume_preferences import V1alpha2VolumePreferences +from .v1beta1_cpu_instancetype import V1beta1CPUInstancetype +from .v1beta1_cpu_preferences import V1beta1CPUPreferences +from .v1beta1_clock_preferences import V1beta1ClockPreferences from .v1beta1_data_volume_blank_image import V1beta1DataVolumeBlankImage from .v1beta1_data_volume_checkpoint import V1beta1DataVolumeCheckpoint from .v1beta1_data_volume_source import V1beta1DataVolumeSource @@ -344,6 +328,22 @@ from .v1beta1_data_volume_source_upload import V1beta1DataVolumeSourceUpload from .v1beta1_data_volume_source_vddk import V1beta1DataVolumeSourceVDDK from .v1beta1_data_volume_spec import V1beta1DataVolumeSpec +from .v1beta1_device_preferences import V1beta1DevicePreferences +from .v1beta1_feature_preferences import V1beta1FeaturePreferences +from .v1beta1_firmware_preferences import V1beta1FirmwarePreferences +from .v1beta1_machine_preferences import V1beta1MachinePreferences +from .v1beta1_memory_instancetype import V1beta1MemoryInstancetype from .v1beta1_storage_spec import V1beta1StorageSpec +from .v1beta1_virtual_machine_cluster_instancetype import V1beta1VirtualMachineClusterInstancetype +from .v1beta1_virtual_machine_cluster_instancetype_list import V1beta1VirtualMachineClusterInstancetypeList +from .v1beta1_virtual_machine_cluster_preference import V1beta1VirtualMachineClusterPreference +from .v1beta1_virtual_machine_cluster_preference_list import V1beta1VirtualMachineClusterPreferenceList +from .v1beta1_virtual_machine_instancetype import V1beta1VirtualMachineInstancetype +from .v1beta1_virtual_machine_instancetype_list import V1beta1VirtualMachineInstancetypeList +from .v1beta1_virtual_machine_instancetype_spec import V1beta1VirtualMachineInstancetypeSpec +from .v1beta1_virtual_machine_preference import V1beta1VirtualMachinePreference +from .v1beta1_virtual_machine_preference_list import V1beta1VirtualMachinePreferenceList +from .v1beta1_virtual_machine_preference_spec import V1beta1VirtualMachinePreferenceSpec +from .v1beta1_volume_preferences import V1beta1VolumePreferences from .v1_interface_bridge import V1InterfaceBridge from .v1_interface_slirp import V1InterfaceSlirp diff --git a/kubevirt/models/v1alpha2_clock_preferences.py b/kubevirt/models/v1beta1_clock_preferences.py similarity index 84% rename from kubevirt/models/v1alpha2_clock_preferences.py rename to kubevirt/models/v1beta1_clock_preferences.py index 3ab0f53f..5090fee0 100644 --- a/kubevirt/models/v1alpha2_clock_preferences.py +++ b/kubevirt/models/v1beta1_clock_preferences.py @@ -16,7 +16,7 @@ import re -class V1alpha2ClockPreferences(object): +class V1beta1ClockPreferences(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class V1alpha2ClockPreferences(object): def __init__(self, preferred_clock_offset=None, preferred_timer=None): """ - V1alpha2ClockPreferences - a model defined in Swagger + V1beta1ClockPreferences - a model defined in Swagger """ self._preferred_clock_offset = None @@ -56,10 +56,10 @@ def __init__(self, preferred_clock_offset=None, preferred_timer=None): @property def preferred_clock_offset(self): """ - Gets the preferred_clock_offset of this V1alpha2ClockPreferences. + Gets the preferred_clock_offset of this V1beta1ClockPreferences. ClockOffset allows specifying the UTC offset or the timezone of the guest clock. - :return: The preferred_clock_offset of this V1alpha2ClockPreferences. + :return: The preferred_clock_offset of this V1beta1ClockPreferences. :rtype: V1ClockOffset """ return self._preferred_clock_offset @@ -67,10 +67,10 @@ def preferred_clock_offset(self): @preferred_clock_offset.setter def preferred_clock_offset(self, preferred_clock_offset): """ - Sets the preferred_clock_offset of this V1alpha2ClockPreferences. + Sets the preferred_clock_offset of this V1beta1ClockPreferences. ClockOffset allows specifying the UTC offset or the timezone of the guest clock. - :param preferred_clock_offset: The preferred_clock_offset of this V1alpha2ClockPreferences. + :param preferred_clock_offset: The preferred_clock_offset of this V1beta1ClockPreferences. :type: V1ClockOffset """ @@ -79,10 +79,10 @@ def preferred_clock_offset(self, preferred_clock_offset): @property def preferred_timer(self): """ - Gets the preferred_timer of this V1alpha2ClockPreferences. + Gets the preferred_timer of this V1beta1ClockPreferences. Timer specifies whih timers are attached to the vmi. - :return: The preferred_timer of this V1alpha2ClockPreferences. + :return: The preferred_timer of this V1beta1ClockPreferences. :rtype: V1Timer """ return self._preferred_timer @@ -90,10 +90,10 @@ def preferred_timer(self): @preferred_timer.setter def preferred_timer(self, preferred_timer): """ - Sets the preferred_timer of this V1alpha2ClockPreferences. + Sets the preferred_timer of this V1beta1ClockPreferences. Timer specifies whih timers are attached to the vmi. - :param preferred_timer: The preferred_timer of this V1alpha2ClockPreferences. + :param preferred_timer: The preferred_timer of this V1beta1ClockPreferences. :type: V1Timer """ @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha2ClockPreferences): + if not isinstance(other, V1beta1ClockPreferences): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha2_cpu_instancetype.py b/kubevirt/models/v1beta1_cpu_instancetype.py similarity index 81% rename from kubevirt/models/v1alpha2_cpu_instancetype.py rename to kubevirt/models/v1beta1_cpu_instancetype.py index 3bad25c0..644d69f8 100644 --- a/kubevirt/models/v1alpha2_cpu_instancetype.py +++ b/kubevirt/models/v1beta1_cpu_instancetype.py @@ -16,7 +16,7 @@ import re -class V1alpha2CPUInstancetype(object): +class V1beta1CPUInstancetype(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -50,7 +50,7 @@ class V1alpha2CPUInstancetype(object): def __init__(self, dedicated_cpu_placement=None, guest=0, isolate_emulator_thread=None, model=None, numa=None, realtime=None): """ - V1alpha2CPUInstancetype - a model defined in Swagger + V1beta1CPUInstancetype - a model defined in Swagger """ self._dedicated_cpu_placement = None @@ -75,10 +75,10 @@ def __init__(self, dedicated_cpu_placement=None, guest=0, isolate_emulator_threa @property def dedicated_cpu_placement(self): """ - Gets the dedicated_cpu_placement of this V1alpha2CPUInstancetype. + Gets the dedicated_cpu_placement of this V1beta1CPUInstancetype. DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. - :return: The dedicated_cpu_placement of this V1alpha2CPUInstancetype. + :return: The dedicated_cpu_placement of this V1beta1CPUInstancetype. :rtype: bool """ return self._dedicated_cpu_placement @@ -86,10 +86,10 @@ def dedicated_cpu_placement(self): @dedicated_cpu_placement.setter def dedicated_cpu_placement(self, dedicated_cpu_placement): """ - Sets the dedicated_cpu_placement of this V1alpha2CPUInstancetype. + Sets the dedicated_cpu_placement of this V1beta1CPUInstancetype. DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. - :param dedicated_cpu_placement: The dedicated_cpu_placement of this V1alpha2CPUInstancetype. + :param dedicated_cpu_placement: The dedicated_cpu_placement of this V1beta1CPUInstancetype. :type: bool """ @@ -98,10 +98,10 @@ def dedicated_cpu_placement(self, dedicated_cpu_placement): @property def guest(self): """ - Gets the guest of this V1alpha2CPUInstancetype. + Gets the guest of this V1beta1CPUInstancetype. Required number of vCPUs to expose to the guest. The resulting CPU topology being derived from the optional PreferredCPUTopology attribute of CPUPreferences that itself defaults to PreferCores. - :return: The guest of this V1alpha2CPUInstancetype. + :return: The guest of this V1beta1CPUInstancetype. :rtype: int """ return self._guest @@ -109,10 +109,10 @@ def guest(self): @guest.setter def guest(self, guest): """ - Sets the guest of this V1alpha2CPUInstancetype. + Sets the guest of this V1beta1CPUInstancetype. Required number of vCPUs to expose to the guest. The resulting CPU topology being derived from the optional PreferredCPUTopology attribute of CPUPreferences that itself defaults to PreferCores. - :param guest: The guest of this V1alpha2CPUInstancetype. + :param guest: The guest of this V1beta1CPUInstancetype. :type: int """ if guest is None: @@ -123,10 +123,10 @@ def guest(self, guest): @property def isolate_emulator_thread(self): """ - Gets the isolate_emulator_thread of this V1alpha2CPUInstancetype. + Gets the isolate_emulator_thread of this V1beta1CPUInstancetype. IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it. - :return: The isolate_emulator_thread of this V1alpha2CPUInstancetype. + :return: The isolate_emulator_thread of this V1beta1CPUInstancetype. :rtype: bool """ return self._isolate_emulator_thread @@ -134,10 +134,10 @@ def isolate_emulator_thread(self): @isolate_emulator_thread.setter def isolate_emulator_thread(self, isolate_emulator_thread): """ - Sets the isolate_emulator_thread of this V1alpha2CPUInstancetype. + Sets the isolate_emulator_thread of this V1beta1CPUInstancetype. IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it. - :param isolate_emulator_thread: The isolate_emulator_thread of this V1alpha2CPUInstancetype. + :param isolate_emulator_thread: The isolate_emulator_thread of this V1beta1CPUInstancetype. :type: bool """ @@ -146,10 +146,10 @@ def isolate_emulator_thread(self, isolate_emulator_thread): @property def model(self): """ - Gets the model of this V1alpha2CPUInstancetype. + Gets the model of this V1beta1CPUInstancetype. Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. - :return: The model of this V1alpha2CPUInstancetype. + :return: The model of this V1beta1CPUInstancetype. :rtype: str """ return self._model @@ -157,10 +157,10 @@ def model(self): @model.setter def model(self, model): """ - Sets the model of this V1alpha2CPUInstancetype. + Sets the model of this V1beta1CPUInstancetype. Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. - :param model: The model of this V1alpha2CPUInstancetype. + :param model: The model of this V1beta1CPUInstancetype. :type: str """ @@ -169,10 +169,10 @@ def model(self, model): @property def numa(self): """ - Gets the numa of this V1alpha2CPUInstancetype. + Gets the numa of this V1beta1CPUInstancetype. NUMA allows specifying settings for the guest NUMA topology - :return: The numa of this V1alpha2CPUInstancetype. + :return: The numa of this V1beta1CPUInstancetype. :rtype: V1NUMA """ return self._numa @@ -180,10 +180,10 @@ def numa(self): @numa.setter def numa(self, numa): """ - Sets the numa of this V1alpha2CPUInstancetype. + Sets the numa of this V1beta1CPUInstancetype. NUMA allows specifying settings for the guest NUMA topology - :param numa: The numa of this V1alpha2CPUInstancetype. + :param numa: The numa of this V1beta1CPUInstancetype. :type: V1NUMA """ @@ -192,10 +192,10 @@ def numa(self, numa): @property def realtime(self): """ - Gets the realtime of this V1alpha2CPUInstancetype. + Gets the realtime of this V1beta1CPUInstancetype. Realtime instructs the virt-launcher to tune the VMI for lower latency, optional for real time workloads - :return: The realtime of this V1alpha2CPUInstancetype. + :return: The realtime of this V1beta1CPUInstancetype. :rtype: V1Realtime """ return self._realtime @@ -203,10 +203,10 @@ def realtime(self): @realtime.setter def realtime(self, realtime): """ - Sets the realtime of this V1alpha2CPUInstancetype. + Sets the realtime of this V1beta1CPUInstancetype. Realtime instructs the virt-launcher to tune the VMI for lower latency, optional for real time workloads - :param realtime: The realtime of this V1alpha2CPUInstancetype. + :param realtime: The realtime of this V1beta1CPUInstancetype. :type: V1Realtime """ @@ -254,7 +254,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha2CPUInstancetype): + if not isinstance(other, V1beta1CPUInstancetype): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha2_cpu_preferences.py b/kubevirt/models/v1beta1_cpu_preferences.py similarity index 88% rename from kubevirt/models/v1alpha2_cpu_preferences.py rename to kubevirt/models/v1beta1_cpu_preferences.py index 48645e3f..853c3ad6 100644 --- a/kubevirt/models/v1alpha2_cpu_preferences.py +++ b/kubevirt/models/v1beta1_cpu_preferences.py @@ -16,7 +16,7 @@ import re -class V1alpha2CPUPreferences(object): +class V1beta1CPUPreferences(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,7 +40,7 @@ class V1alpha2CPUPreferences(object): def __init__(self, preferred_cpu_topology=None): """ - V1alpha2CPUPreferences - a model defined in Swagger + V1beta1CPUPreferences - a model defined in Swagger """ self._preferred_cpu_topology = None @@ -51,10 +51,10 @@ def __init__(self, preferred_cpu_topology=None): @property def preferred_cpu_topology(self): """ - Gets the preferred_cpu_topology of this V1alpha2CPUPreferences. + Gets the preferred_cpu_topology of this V1beta1CPUPreferences. PreferredCPUTopology optionally defines the preferred guest visible CPU topology, defaults to PreferSockets. - :return: The preferred_cpu_topology of this V1alpha2CPUPreferences. + :return: The preferred_cpu_topology of this V1beta1CPUPreferences. :rtype: str """ return self._preferred_cpu_topology @@ -62,10 +62,10 @@ def preferred_cpu_topology(self): @preferred_cpu_topology.setter def preferred_cpu_topology(self, preferred_cpu_topology): """ - Sets the preferred_cpu_topology of this V1alpha2CPUPreferences. + Sets the preferred_cpu_topology of this V1beta1CPUPreferences. PreferredCPUTopology optionally defines the preferred guest visible CPU topology, defaults to PreferSockets. - :param preferred_cpu_topology: The preferred_cpu_topology of this V1alpha2CPUPreferences. + :param preferred_cpu_topology: The preferred_cpu_topology of this V1beta1CPUPreferences. :type: str """ @@ -113,7 +113,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha2CPUPreferences): + if not isinstance(other, V1beta1CPUPreferences): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha2_device_preferences.py b/kubevirt/models/v1beta1_device_preferences.py similarity index 80% rename from kubevirt/models/v1alpha2_device_preferences.py rename to kubevirt/models/v1beta1_device_preferences.py index 229f64df..1e27ad1a 100644 --- a/kubevirt/models/v1alpha2_device_preferences.py +++ b/kubevirt/models/v1beta1_device_preferences.py @@ -16,7 +16,7 @@ import re -class V1alpha2DevicePreferences(object): +class V1beta1DevicePreferences(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -84,7 +84,7 @@ class V1alpha2DevicePreferences(object): def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoattach_input_device=None, preferred_autoattach_mem_balloon=None, preferred_autoattach_pod_interface=None, preferred_autoattach_serial_console=None, preferred_block_multi_queue=None, preferred_cdrom_bus=None, preferred_disable_hotplug=None, preferred_disk_block_size=None, preferred_disk_bus=None, preferred_disk_cache=None, preferred_disk_dedicated_io_thread=None, preferred_disk_io=None, preferred_input_bus=None, preferred_input_type=None, preferred_interface_model=None, preferred_lun_bus=None, preferred_network_interface_multi_queue=None, preferred_rng=None, preferred_sound_model=None, preferred_tpm=None, preferred_use_virtio_transitional=None, preferred_virtual_gpu_options=None): """ - V1alpha2DevicePreferences - a model defined in Swagger + V1beta1DevicePreferences - a model defined in Swagger """ self._preferred_autoattach_graphics_device = None @@ -161,10 +161,10 @@ def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoatta @property def preferred_autoattach_graphics_device(self): """ - Gets the preferred_autoattach_graphics_device of this V1alpha2DevicePreferences. + Gets the preferred_autoattach_graphics_device of this V1beta1DevicePreferences. PreferredAutoattachGraphicsDevice optionally defines the preferred value of AutoattachGraphicsDevice - :return: The preferred_autoattach_graphics_device of this V1alpha2DevicePreferences. + :return: The preferred_autoattach_graphics_device of this V1beta1DevicePreferences. :rtype: bool """ return self._preferred_autoattach_graphics_device @@ -172,10 +172,10 @@ def preferred_autoattach_graphics_device(self): @preferred_autoattach_graphics_device.setter def preferred_autoattach_graphics_device(self, preferred_autoattach_graphics_device): """ - Sets the preferred_autoattach_graphics_device of this V1alpha2DevicePreferences. + Sets the preferred_autoattach_graphics_device of this V1beta1DevicePreferences. PreferredAutoattachGraphicsDevice optionally defines the preferred value of AutoattachGraphicsDevice - :param preferred_autoattach_graphics_device: The preferred_autoattach_graphics_device of this V1alpha2DevicePreferences. + :param preferred_autoattach_graphics_device: The preferred_autoattach_graphics_device of this V1beta1DevicePreferences. :type: bool """ @@ -184,10 +184,10 @@ def preferred_autoattach_graphics_device(self, preferred_autoattach_graphics_dev @property def preferred_autoattach_input_device(self): """ - Gets the preferred_autoattach_input_device of this V1alpha2DevicePreferences. + Gets the preferred_autoattach_input_device of this V1beta1DevicePreferences. PreferredAutoattachInputDevice optionally defines the preferred value of AutoattachInputDevice - :return: The preferred_autoattach_input_device of this V1alpha2DevicePreferences. + :return: The preferred_autoattach_input_device of this V1beta1DevicePreferences. :rtype: bool """ return self._preferred_autoattach_input_device @@ -195,10 +195,10 @@ def preferred_autoattach_input_device(self): @preferred_autoattach_input_device.setter def preferred_autoattach_input_device(self, preferred_autoattach_input_device): """ - Sets the preferred_autoattach_input_device of this V1alpha2DevicePreferences. + Sets the preferred_autoattach_input_device of this V1beta1DevicePreferences. PreferredAutoattachInputDevice optionally defines the preferred value of AutoattachInputDevice - :param preferred_autoattach_input_device: The preferred_autoattach_input_device of this V1alpha2DevicePreferences. + :param preferred_autoattach_input_device: The preferred_autoattach_input_device of this V1beta1DevicePreferences. :type: bool """ @@ -207,10 +207,10 @@ def preferred_autoattach_input_device(self, preferred_autoattach_input_device): @property def preferred_autoattach_mem_balloon(self): """ - Gets the preferred_autoattach_mem_balloon of this V1alpha2DevicePreferences. + Gets the preferred_autoattach_mem_balloon of this V1beta1DevicePreferences. PreferredAutoattachMemBalloon optionally defines the preferred value of AutoattachMemBalloon - :return: The preferred_autoattach_mem_balloon of this V1alpha2DevicePreferences. + :return: The preferred_autoattach_mem_balloon of this V1beta1DevicePreferences. :rtype: bool """ return self._preferred_autoattach_mem_balloon @@ -218,10 +218,10 @@ def preferred_autoattach_mem_balloon(self): @preferred_autoattach_mem_balloon.setter def preferred_autoattach_mem_balloon(self, preferred_autoattach_mem_balloon): """ - Sets the preferred_autoattach_mem_balloon of this V1alpha2DevicePreferences. + Sets the preferred_autoattach_mem_balloon of this V1beta1DevicePreferences. PreferredAutoattachMemBalloon optionally defines the preferred value of AutoattachMemBalloon - :param preferred_autoattach_mem_balloon: The preferred_autoattach_mem_balloon of this V1alpha2DevicePreferences. + :param preferred_autoattach_mem_balloon: The preferred_autoattach_mem_balloon of this V1beta1DevicePreferences. :type: bool """ @@ -230,10 +230,10 @@ def preferred_autoattach_mem_balloon(self, preferred_autoattach_mem_balloon): @property def preferred_autoattach_pod_interface(self): """ - Gets the preferred_autoattach_pod_interface of this V1alpha2DevicePreferences. + Gets the preferred_autoattach_pod_interface of this V1beta1DevicePreferences. PreferredAutoattachPodInterface optionally defines the preferred value of AutoattachPodInterface - :return: The preferred_autoattach_pod_interface of this V1alpha2DevicePreferences. + :return: The preferred_autoattach_pod_interface of this V1beta1DevicePreferences. :rtype: bool """ return self._preferred_autoattach_pod_interface @@ -241,10 +241,10 @@ def preferred_autoattach_pod_interface(self): @preferred_autoattach_pod_interface.setter def preferred_autoattach_pod_interface(self, preferred_autoattach_pod_interface): """ - Sets the preferred_autoattach_pod_interface of this V1alpha2DevicePreferences. + Sets the preferred_autoattach_pod_interface of this V1beta1DevicePreferences. PreferredAutoattachPodInterface optionally defines the preferred value of AutoattachPodInterface - :param preferred_autoattach_pod_interface: The preferred_autoattach_pod_interface of this V1alpha2DevicePreferences. + :param preferred_autoattach_pod_interface: The preferred_autoattach_pod_interface of this V1beta1DevicePreferences. :type: bool """ @@ -253,10 +253,10 @@ def preferred_autoattach_pod_interface(self, preferred_autoattach_pod_interface) @property def preferred_autoattach_serial_console(self): """ - Gets the preferred_autoattach_serial_console of this V1alpha2DevicePreferences. + Gets the preferred_autoattach_serial_console of this V1beta1DevicePreferences. PreferredAutoattachSerialConsole optionally defines the preferred value of AutoattachSerialConsole - :return: The preferred_autoattach_serial_console of this V1alpha2DevicePreferences. + :return: The preferred_autoattach_serial_console of this V1beta1DevicePreferences. :rtype: bool """ return self._preferred_autoattach_serial_console @@ -264,10 +264,10 @@ def preferred_autoattach_serial_console(self): @preferred_autoattach_serial_console.setter def preferred_autoattach_serial_console(self, preferred_autoattach_serial_console): """ - Sets the preferred_autoattach_serial_console of this V1alpha2DevicePreferences. + Sets the preferred_autoattach_serial_console of this V1beta1DevicePreferences. PreferredAutoattachSerialConsole optionally defines the preferred value of AutoattachSerialConsole - :param preferred_autoattach_serial_console: The preferred_autoattach_serial_console of this V1alpha2DevicePreferences. + :param preferred_autoattach_serial_console: The preferred_autoattach_serial_console of this V1beta1DevicePreferences. :type: bool """ @@ -276,10 +276,10 @@ def preferred_autoattach_serial_console(self, preferred_autoattach_serial_consol @property def preferred_block_multi_queue(self): """ - Gets the preferred_block_multi_queue of this V1alpha2DevicePreferences. + Gets the preferred_block_multi_queue of this V1beta1DevicePreferences. PreferredBlockMultiQueue optionally enables the vhost multiqueue feature for virtio disks. - :return: The preferred_block_multi_queue of this V1alpha2DevicePreferences. + :return: The preferred_block_multi_queue of this V1beta1DevicePreferences. :rtype: bool """ return self._preferred_block_multi_queue @@ -287,10 +287,10 @@ def preferred_block_multi_queue(self): @preferred_block_multi_queue.setter def preferred_block_multi_queue(self, preferred_block_multi_queue): """ - Sets the preferred_block_multi_queue of this V1alpha2DevicePreferences. + Sets the preferred_block_multi_queue of this V1beta1DevicePreferences. PreferredBlockMultiQueue optionally enables the vhost multiqueue feature for virtio disks. - :param preferred_block_multi_queue: The preferred_block_multi_queue of this V1alpha2DevicePreferences. + :param preferred_block_multi_queue: The preferred_block_multi_queue of this V1beta1DevicePreferences. :type: bool """ @@ -299,10 +299,10 @@ def preferred_block_multi_queue(self, preferred_block_multi_queue): @property def preferred_cdrom_bus(self): """ - Gets the preferred_cdrom_bus of this V1alpha2DevicePreferences. + Gets the preferred_cdrom_bus of this V1beta1DevicePreferences. PreferredCdromBus optionally defines the preferred bus for Cdrom Disk devices. - :return: The preferred_cdrom_bus of this V1alpha2DevicePreferences. + :return: The preferred_cdrom_bus of this V1beta1DevicePreferences. :rtype: str """ return self._preferred_cdrom_bus @@ -310,10 +310,10 @@ def preferred_cdrom_bus(self): @preferred_cdrom_bus.setter def preferred_cdrom_bus(self, preferred_cdrom_bus): """ - Sets the preferred_cdrom_bus of this V1alpha2DevicePreferences. + Sets the preferred_cdrom_bus of this V1beta1DevicePreferences. PreferredCdromBus optionally defines the preferred bus for Cdrom Disk devices. - :param preferred_cdrom_bus: The preferred_cdrom_bus of this V1alpha2DevicePreferences. + :param preferred_cdrom_bus: The preferred_cdrom_bus of this V1beta1DevicePreferences. :type: str """ @@ -322,10 +322,10 @@ def preferred_cdrom_bus(self, preferred_cdrom_bus): @property def preferred_disable_hotplug(self): """ - Gets the preferred_disable_hotplug of this V1alpha2DevicePreferences. + Gets the preferred_disable_hotplug of this V1beta1DevicePreferences. PreferredDisableHotplug optionally defines the preferred value of DisableHotplug - :return: The preferred_disable_hotplug of this V1alpha2DevicePreferences. + :return: The preferred_disable_hotplug of this V1beta1DevicePreferences. :rtype: bool """ return self._preferred_disable_hotplug @@ -333,10 +333,10 @@ def preferred_disable_hotplug(self): @preferred_disable_hotplug.setter def preferred_disable_hotplug(self, preferred_disable_hotplug): """ - Sets the preferred_disable_hotplug of this V1alpha2DevicePreferences. + Sets the preferred_disable_hotplug of this V1beta1DevicePreferences. PreferredDisableHotplug optionally defines the preferred value of DisableHotplug - :param preferred_disable_hotplug: The preferred_disable_hotplug of this V1alpha2DevicePreferences. + :param preferred_disable_hotplug: The preferred_disable_hotplug of this V1beta1DevicePreferences. :type: bool """ @@ -345,10 +345,10 @@ def preferred_disable_hotplug(self, preferred_disable_hotplug): @property def preferred_disk_block_size(self): """ - Gets the preferred_disk_block_size of this V1alpha2DevicePreferences. + Gets the preferred_disk_block_size of this V1beta1DevicePreferences. PreferredBlockSize optionally defines the block size of Disk devices. - :return: The preferred_disk_block_size of this V1alpha2DevicePreferences. + :return: The preferred_disk_block_size of this V1beta1DevicePreferences. :rtype: V1BlockSize """ return self._preferred_disk_block_size @@ -356,10 +356,10 @@ def preferred_disk_block_size(self): @preferred_disk_block_size.setter def preferred_disk_block_size(self, preferred_disk_block_size): """ - Sets the preferred_disk_block_size of this V1alpha2DevicePreferences. + Sets the preferred_disk_block_size of this V1beta1DevicePreferences. PreferredBlockSize optionally defines the block size of Disk devices. - :param preferred_disk_block_size: The preferred_disk_block_size of this V1alpha2DevicePreferences. + :param preferred_disk_block_size: The preferred_disk_block_size of this V1beta1DevicePreferences. :type: V1BlockSize """ @@ -368,10 +368,10 @@ def preferred_disk_block_size(self, preferred_disk_block_size): @property def preferred_disk_bus(self): """ - Gets the preferred_disk_bus of this V1alpha2DevicePreferences. + Gets the preferred_disk_bus of this V1beta1DevicePreferences. PreferredDiskBus optionally defines the preferred bus for Disk Disk devices. - :return: The preferred_disk_bus of this V1alpha2DevicePreferences. + :return: The preferred_disk_bus of this V1beta1DevicePreferences. :rtype: str """ return self._preferred_disk_bus @@ -379,10 +379,10 @@ def preferred_disk_bus(self): @preferred_disk_bus.setter def preferred_disk_bus(self, preferred_disk_bus): """ - Sets the preferred_disk_bus of this V1alpha2DevicePreferences. + Sets the preferred_disk_bus of this V1beta1DevicePreferences. PreferredDiskBus optionally defines the preferred bus for Disk Disk devices. - :param preferred_disk_bus: The preferred_disk_bus of this V1alpha2DevicePreferences. + :param preferred_disk_bus: The preferred_disk_bus of this V1beta1DevicePreferences. :type: str """ @@ -391,10 +391,10 @@ def preferred_disk_bus(self, preferred_disk_bus): @property def preferred_disk_cache(self): """ - Gets the preferred_disk_cache of this V1alpha2DevicePreferences. + Gets the preferred_disk_cache of this V1beta1DevicePreferences. PreferredCache optionally defines the DriverCache to be used by Disk devices. - :return: The preferred_disk_cache of this V1alpha2DevicePreferences. + :return: The preferred_disk_cache of this V1beta1DevicePreferences. :rtype: str """ return self._preferred_disk_cache @@ -402,10 +402,10 @@ def preferred_disk_cache(self): @preferred_disk_cache.setter def preferred_disk_cache(self, preferred_disk_cache): """ - Sets the preferred_disk_cache of this V1alpha2DevicePreferences. + Sets the preferred_disk_cache of this V1beta1DevicePreferences. PreferredCache optionally defines the DriverCache to be used by Disk devices. - :param preferred_disk_cache: The preferred_disk_cache of this V1alpha2DevicePreferences. + :param preferred_disk_cache: The preferred_disk_cache of this V1beta1DevicePreferences. :type: str """ @@ -414,10 +414,10 @@ def preferred_disk_cache(self, preferred_disk_cache): @property def preferred_disk_dedicated_io_thread(self): """ - Gets the preferred_disk_dedicated_io_thread of this V1alpha2DevicePreferences. + Gets the preferred_disk_dedicated_io_thread of this V1beta1DevicePreferences. PreferredDedicatedIoThread optionally enables dedicated IO threads for Disk devices. - :return: The preferred_disk_dedicated_io_thread of this V1alpha2DevicePreferences. + :return: The preferred_disk_dedicated_io_thread of this V1beta1DevicePreferences. :rtype: bool """ return self._preferred_disk_dedicated_io_thread @@ -425,10 +425,10 @@ def preferred_disk_dedicated_io_thread(self): @preferred_disk_dedicated_io_thread.setter def preferred_disk_dedicated_io_thread(self, preferred_disk_dedicated_io_thread): """ - Sets the preferred_disk_dedicated_io_thread of this V1alpha2DevicePreferences. + Sets the preferred_disk_dedicated_io_thread of this V1beta1DevicePreferences. PreferredDedicatedIoThread optionally enables dedicated IO threads for Disk devices. - :param preferred_disk_dedicated_io_thread: The preferred_disk_dedicated_io_thread of this V1alpha2DevicePreferences. + :param preferred_disk_dedicated_io_thread: The preferred_disk_dedicated_io_thread of this V1beta1DevicePreferences. :type: bool """ @@ -437,10 +437,10 @@ def preferred_disk_dedicated_io_thread(self, preferred_disk_dedicated_io_thread) @property def preferred_disk_io(self): """ - Gets the preferred_disk_io of this V1alpha2DevicePreferences. + Gets the preferred_disk_io of this V1beta1DevicePreferences. PreferredIo optionally defines the QEMU disk IO mode to be used by Disk devices. - :return: The preferred_disk_io of this V1alpha2DevicePreferences. + :return: The preferred_disk_io of this V1beta1DevicePreferences. :rtype: str """ return self._preferred_disk_io @@ -448,10 +448,10 @@ def preferred_disk_io(self): @preferred_disk_io.setter def preferred_disk_io(self, preferred_disk_io): """ - Sets the preferred_disk_io of this V1alpha2DevicePreferences. + Sets the preferred_disk_io of this V1beta1DevicePreferences. PreferredIo optionally defines the QEMU disk IO mode to be used by Disk devices. - :param preferred_disk_io: The preferred_disk_io of this V1alpha2DevicePreferences. + :param preferred_disk_io: The preferred_disk_io of this V1beta1DevicePreferences. :type: str """ @@ -460,10 +460,10 @@ def preferred_disk_io(self, preferred_disk_io): @property def preferred_input_bus(self): """ - Gets the preferred_input_bus of this V1alpha2DevicePreferences. + Gets the preferred_input_bus of this V1beta1DevicePreferences. PreferredInputBus optionally defines the preferred bus for Input devices. - :return: The preferred_input_bus of this V1alpha2DevicePreferences. + :return: The preferred_input_bus of this V1beta1DevicePreferences. :rtype: str """ return self._preferred_input_bus @@ -471,10 +471,10 @@ def preferred_input_bus(self): @preferred_input_bus.setter def preferred_input_bus(self, preferred_input_bus): """ - Sets the preferred_input_bus of this V1alpha2DevicePreferences. + Sets the preferred_input_bus of this V1beta1DevicePreferences. PreferredInputBus optionally defines the preferred bus for Input devices. - :param preferred_input_bus: The preferred_input_bus of this V1alpha2DevicePreferences. + :param preferred_input_bus: The preferred_input_bus of this V1beta1DevicePreferences. :type: str """ @@ -483,10 +483,10 @@ def preferred_input_bus(self, preferred_input_bus): @property def preferred_input_type(self): """ - Gets the preferred_input_type of this V1alpha2DevicePreferences. + Gets the preferred_input_type of this V1beta1DevicePreferences. PreferredInputType optionally defines the preferred type for Input devices. - :return: The preferred_input_type of this V1alpha2DevicePreferences. + :return: The preferred_input_type of this V1beta1DevicePreferences. :rtype: str """ return self._preferred_input_type @@ -494,10 +494,10 @@ def preferred_input_type(self): @preferred_input_type.setter def preferred_input_type(self, preferred_input_type): """ - Sets the preferred_input_type of this V1alpha2DevicePreferences. + Sets the preferred_input_type of this V1beta1DevicePreferences. PreferredInputType optionally defines the preferred type for Input devices. - :param preferred_input_type: The preferred_input_type of this V1alpha2DevicePreferences. + :param preferred_input_type: The preferred_input_type of this V1beta1DevicePreferences. :type: str """ @@ -506,10 +506,10 @@ def preferred_input_type(self, preferred_input_type): @property def preferred_interface_model(self): """ - Gets the preferred_interface_model of this V1alpha2DevicePreferences. + Gets the preferred_interface_model of this V1beta1DevicePreferences. PreferredInterfaceModel optionally defines the preferred model to be used by Interface devices. - :return: The preferred_interface_model of this V1alpha2DevicePreferences. + :return: The preferred_interface_model of this V1beta1DevicePreferences. :rtype: str """ return self._preferred_interface_model @@ -517,10 +517,10 @@ def preferred_interface_model(self): @preferred_interface_model.setter def preferred_interface_model(self, preferred_interface_model): """ - Sets the preferred_interface_model of this V1alpha2DevicePreferences. + Sets the preferred_interface_model of this V1beta1DevicePreferences. PreferredInterfaceModel optionally defines the preferred model to be used by Interface devices. - :param preferred_interface_model: The preferred_interface_model of this V1alpha2DevicePreferences. + :param preferred_interface_model: The preferred_interface_model of this V1beta1DevicePreferences. :type: str """ @@ -529,10 +529,10 @@ def preferred_interface_model(self, preferred_interface_model): @property def preferred_lun_bus(self): """ - Gets the preferred_lun_bus of this V1alpha2DevicePreferences. + Gets the preferred_lun_bus of this V1beta1DevicePreferences. PreferredLunBus optionally defines the preferred bus for Lun Disk devices. - :return: The preferred_lun_bus of this V1alpha2DevicePreferences. + :return: The preferred_lun_bus of this V1beta1DevicePreferences. :rtype: str """ return self._preferred_lun_bus @@ -540,10 +540,10 @@ def preferred_lun_bus(self): @preferred_lun_bus.setter def preferred_lun_bus(self, preferred_lun_bus): """ - Sets the preferred_lun_bus of this V1alpha2DevicePreferences. + Sets the preferred_lun_bus of this V1beta1DevicePreferences. PreferredLunBus optionally defines the preferred bus for Lun Disk devices. - :param preferred_lun_bus: The preferred_lun_bus of this V1alpha2DevicePreferences. + :param preferred_lun_bus: The preferred_lun_bus of this V1beta1DevicePreferences. :type: str """ @@ -552,10 +552,10 @@ def preferred_lun_bus(self, preferred_lun_bus): @property def preferred_network_interface_multi_queue(self): """ - Gets the preferred_network_interface_multi_queue of this V1alpha2DevicePreferences. + Gets the preferred_network_interface_multi_queue of this V1beta1DevicePreferences. PreferredNetworkInterfaceMultiQueue optionally enables the vhost multiqueue feature for virtio interfaces. - :return: The preferred_network_interface_multi_queue of this V1alpha2DevicePreferences. + :return: The preferred_network_interface_multi_queue of this V1beta1DevicePreferences. :rtype: bool """ return self._preferred_network_interface_multi_queue @@ -563,10 +563,10 @@ def preferred_network_interface_multi_queue(self): @preferred_network_interface_multi_queue.setter def preferred_network_interface_multi_queue(self, preferred_network_interface_multi_queue): """ - Sets the preferred_network_interface_multi_queue of this V1alpha2DevicePreferences. + Sets the preferred_network_interface_multi_queue of this V1beta1DevicePreferences. PreferredNetworkInterfaceMultiQueue optionally enables the vhost multiqueue feature for virtio interfaces. - :param preferred_network_interface_multi_queue: The preferred_network_interface_multi_queue of this V1alpha2DevicePreferences. + :param preferred_network_interface_multi_queue: The preferred_network_interface_multi_queue of this V1beta1DevicePreferences. :type: bool """ @@ -575,10 +575,10 @@ def preferred_network_interface_multi_queue(self, preferred_network_interface_mu @property def preferred_rng(self): """ - Gets the preferred_rng of this V1alpha2DevicePreferences. + Gets the preferred_rng of this V1beta1DevicePreferences. PreferredRng optionally defines the preferred rng device to be used. - :return: The preferred_rng of this V1alpha2DevicePreferences. + :return: The preferred_rng of this V1beta1DevicePreferences. :rtype: V1Rng """ return self._preferred_rng @@ -586,10 +586,10 @@ def preferred_rng(self): @preferred_rng.setter def preferred_rng(self, preferred_rng): """ - Sets the preferred_rng of this V1alpha2DevicePreferences. + Sets the preferred_rng of this V1beta1DevicePreferences. PreferredRng optionally defines the preferred rng device to be used. - :param preferred_rng: The preferred_rng of this V1alpha2DevicePreferences. + :param preferred_rng: The preferred_rng of this V1beta1DevicePreferences. :type: V1Rng """ @@ -598,10 +598,10 @@ def preferred_rng(self, preferred_rng): @property def preferred_sound_model(self): """ - Gets the preferred_sound_model of this V1alpha2DevicePreferences. + Gets the preferred_sound_model of this V1beta1DevicePreferences. PreferredSoundModel optionally defines the preferred model for Sound devices. - :return: The preferred_sound_model of this V1alpha2DevicePreferences. + :return: The preferred_sound_model of this V1beta1DevicePreferences. :rtype: str """ return self._preferred_sound_model @@ -609,10 +609,10 @@ def preferred_sound_model(self): @preferred_sound_model.setter def preferred_sound_model(self, preferred_sound_model): """ - Sets the preferred_sound_model of this V1alpha2DevicePreferences. + Sets the preferred_sound_model of this V1beta1DevicePreferences. PreferredSoundModel optionally defines the preferred model for Sound devices. - :param preferred_sound_model: The preferred_sound_model of this V1alpha2DevicePreferences. + :param preferred_sound_model: The preferred_sound_model of this V1beta1DevicePreferences. :type: str """ @@ -621,10 +621,10 @@ def preferred_sound_model(self, preferred_sound_model): @property def preferred_tpm(self): """ - Gets the preferred_tpm of this V1alpha2DevicePreferences. + Gets the preferred_tpm of this V1beta1DevicePreferences. PreferredTPM optionally defines the preferred TPM device to be used. - :return: The preferred_tpm of this V1alpha2DevicePreferences. + :return: The preferred_tpm of this V1beta1DevicePreferences. :rtype: V1TPMDevice """ return self._preferred_tpm @@ -632,10 +632,10 @@ def preferred_tpm(self): @preferred_tpm.setter def preferred_tpm(self, preferred_tpm): """ - Sets the preferred_tpm of this V1alpha2DevicePreferences. + Sets the preferred_tpm of this V1beta1DevicePreferences. PreferredTPM optionally defines the preferred TPM device to be used. - :param preferred_tpm: The preferred_tpm of this V1alpha2DevicePreferences. + :param preferred_tpm: The preferred_tpm of this V1beta1DevicePreferences. :type: V1TPMDevice """ @@ -644,10 +644,10 @@ def preferred_tpm(self, preferred_tpm): @property def preferred_use_virtio_transitional(self): """ - Gets the preferred_use_virtio_transitional of this V1alpha2DevicePreferences. + Gets the preferred_use_virtio_transitional of this V1beta1DevicePreferences. PreferredUseVirtioTransitional optionally defines the preferred value of UseVirtioTransitional - :return: The preferred_use_virtio_transitional of this V1alpha2DevicePreferences. + :return: The preferred_use_virtio_transitional of this V1beta1DevicePreferences. :rtype: bool """ return self._preferred_use_virtio_transitional @@ -655,10 +655,10 @@ def preferred_use_virtio_transitional(self): @preferred_use_virtio_transitional.setter def preferred_use_virtio_transitional(self, preferred_use_virtio_transitional): """ - Sets the preferred_use_virtio_transitional of this V1alpha2DevicePreferences. + Sets the preferred_use_virtio_transitional of this V1beta1DevicePreferences. PreferredUseVirtioTransitional optionally defines the preferred value of UseVirtioTransitional - :param preferred_use_virtio_transitional: The preferred_use_virtio_transitional of this V1alpha2DevicePreferences. + :param preferred_use_virtio_transitional: The preferred_use_virtio_transitional of this V1beta1DevicePreferences. :type: bool """ @@ -667,10 +667,10 @@ def preferred_use_virtio_transitional(self, preferred_use_virtio_transitional): @property def preferred_virtual_gpu_options(self): """ - Gets the preferred_virtual_gpu_options of this V1alpha2DevicePreferences. + Gets the preferred_virtual_gpu_options of this V1beta1DevicePreferences. PreferredVirtualGPUOptions optionally defines the preferred value of VirtualGPUOptions - :return: The preferred_virtual_gpu_options of this V1alpha2DevicePreferences. + :return: The preferred_virtual_gpu_options of this V1beta1DevicePreferences. :rtype: V1VGPUOptions """ return self._preferred_virtual_gpu_options @@ -678,10 +678,10 @@ def preferred_virtual_gpu_options(self): @preferred_virtual_gpu_options.setter def preferred_virtual_gpu_options(self, preferred_virtual_gpu_options): """ - Sets the preferred_virtual_gpu_options of this V1alpha2DevicePreferences. + Sets the preferred_virtual_gpu_options of this V1beta1DevicePreferences. PreferredVirtualGPUOptions optionally defines the preferred value of VirtualGPUOptions - :param preferred_virtual_gpu_options: The preferred_virtual_gpu_options of this V1alpha2DevicePreferences. + :param preferred_virtual_gpu_options: The preferred_virtual_gpu_options of this V1beta1DevicePreferences. :type: V1VGPUOptions """ @@ -729,7 +729,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha2DevicePreferences): + if not isinstance(other, V1beta1DevicePreferences): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha2_feature_preferences.py b/kubevirt/models/v1beta1_feature_preferences.py similarity index 78% rename from kubevirt/models/v1alpha2_feature_preferences.py rename to kubevirt/models/v1beta1_feature_preferences.py index 7b389249..3b11114d 100644 --- a/kubevirt/models/v1alpha2_feature_preferences.py +++ b/kubevirt/models/v1beta1_feature_preferences.py @@ -16,7 +16,7 @@ import re -class V1alpha2FeaturePreferences(object): +class V1beta1FeaturePreferences(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -50,7 +50,7 @@ class V1alpha2FeaturePreferences(object): def __init__(self, preferred_acpi=None, preferred_apic=None, preferred_hyperv=None, preferred_kvm=None, preferred_pvspinlock=None, preferred_smm=None): """ - V1alpha2FeaturePreferences - a model defined in Swagger + V1beta1FeaturePreferences - a model defined in Swagger """ self._preferred_acpi = None @@ -76,10 +76,10 @@ def __init__(self, preferred_acpi=None, preferred_apic=None, preferred_hyperv=No @property def preferred_acpi(self): """ - Gets the preferred_acpi of this V1alpha2FeaturePreferences. + Gets the preferred_acpi of this V1beta1FeaturePreferences. PreferredAcpi optionally enables the ACPI feature - :return: The preferred_acpi of this V1alpha2FeaturePreferences. + :return: The preferred_acpi of this V1beta1FeaturePreferences. :rtype: V1FeatureState """ return self._preferred_acpi @@ -87,10 +87,10 @@ def preferred_acpi(self): @preferred_acpi.setter def preferred_acpi(self, preferred_acpi): """ - Sets the preferred_acpi of this V1alpha2FeaturePreferences. + Sets the preferred_acpi of this V1beta1FeaturePreferences. PreferredAcpi optionally enables the ACPI feature - :param preferred_acpi: The preferred_acpi of this V1alpha2FeaturePreferences. + :param preferred_acpi: The preferred_acpi of this V1beta1FeaturePreferences. :type: V1FeatureState """ @@ -99,10 +99,10 @@ def preferred_acpi(self, preferred_acpi): @property def preferred_apic(self): """ - Gets the preferred_apic of this V1alpha2FeaturePreferences. + Gets the preferred_apic of this V1beta1FeaturePreferences. PreferredApic optionally enables and configures the APIC feature - :return: The preferred_apic of this V1alpha2FeaturePreferences. + :return: The preferred_apic of this V1beta1FeaturePreferences. :rtype: V1FeatureAPIC """ return self._preferred_apic @@ -110,10 +110,10 @@ def preferred_apic(self): @preferred_apic.setter def preferred_apic(self, preferred_apic): """ - Sets the preferred_apic of this V1alpha2FeaturePreferences. + Sets the preferred_apic of this V1beta1FeaturePreferences. PreferredApic optionally enables and configures the APIC feature - :param preferred_apic: The preferred_apic of this V1alpha2FeaturePreferences. + :param preferred_apic: The preferred_apic of this V1beta1FeaturePreferences. :type: V1FeatureAPIC """ @@ -122,10 +122,10 @@ def preferred_apic(self, preferred_apic): @property def preferred_hyperv(self): """ - Gets the preferred_hyperv of this V1alpha2FeaturePreferences. + Gets the preferred_hyperv of this V1beta1FeaturePreferences. PreferredHyperv optionally enables and configures HyperV features - :return: The preferred_hyperv of this V1alpha2FeaturePreferences. + :return: The preferred_hyperv of this V1beta1FeaturePreferences. :rtype: V1FeatureHyperv """ return self._preferred_hyperv @@ -133,10 +133,10 @@ def preferred_hyperv(self): @preferred_hyperv.setter def preferred_hyperv(self, preferred_hyperv): """ - Sets the preferred_hyperv of this V1alpha2FeaturePreferences. + Sets the preferred_hyperv of this V1beta1FeaturePreferences. PreferredHyperv optionally enables and configures HyperV features - :param preferred_hyperv: The preferred_hyperv of this V1alpha2FeaturePreferences. + :param preferred_hyperv: The preferred_hyperv of this V1beta1FeaturePreferences. :type: V1FeatureHyperv """ @@ -145,10 +145,10 @@ def preferred_hyperv(self, preferred_hyperv): @property def preferred_kvm(self): """ - Gets the preferred_kvm of this V1alpha2FeaturePreferences. + Gets the preferred_kvm of this V1beta1FeaturePreferences. PreferredKvm optionally enables and configures KVM features - :return: The preferred_kvm of this V1alpha2FeaturePreferences. + :return: The preferred_kvm of this V1beta1FeaturePreferences. :rtype: V1FeatureKVM """ return self._preferred_kvm @@ -156,10 +156,10 @@ def preferred_kvm(self): @preferred_kvm.setter def preferred_kvm(self, preferred_kvm): """ - Sets the preferred_kvm of this V1alpha2FeaturePreferences. + Sets the preferred_kvm of this V1beta1FeaturePreferences. PreferredKvm optionally enables and configures KVM features - :param preferred_kvm: The preferred_kvm of this V1alpha2FeaturePreferences. + :param preferred_kvm: The preferred_kvm of this V1beta1FeaturePreferences. :type: V1FeatureKVM """ @@ -168,10 +168,10 @@ def preferred_kvm(self, preferred_kvm): @property def preferred_pvspinlock(self): """ - Gets the preferred_pvspinlock of this V1alpha2FeaturePreferences. + Gets the preferred_pvspinlock of this V1beta1FeaturePreferences. PreferredPvspinlock optionally enables the Pvspinlock feature - :return: The preferred_pvspinlock of this V1alpha2FeaturePreferences. + :return: The preferred_pvspinlock of this V1beta1FeaturePreferences. :rtype: V1FeatureState """ return self._preferred_pvspinlock @@ -179,10 +179,10 @@ def preferred_pvspinlock(self): @preferred_pvspinlock.setter def preferred_pvspinlock(self, preferred_pvspinlock): """ - Sets the preferred_pvspinlock of this V1alpha2FeaturePreferences. + Sets the preferred_pvspinlock of this V1beta1FeaturePreferences. PreferredPvspinlock optionally enables the Pvspinlock feature - :param preferred_pvspinlock: The preferred_pvspinlock of this V1alpha2FeaturePreferences. + :param preferred_pvspinlock: The preferred_pvspinlock of this V1beta1FeaturePreferences. :type: V1FeatureState """ @@ -191,10 +191,10 @@ def preferred_pvspinlock(self, preferred_pvspinlock): @property def preferred_smm(self): """ - Gets the preferred_smm of this V1alpha2FeaturePreferences. + Gets the preferred_smm of this V1beta1FeaturePreferences. PreferredSmm optionally enables the SMM feature - :return: The preferred_smm of this V1alpha2FeaturePreferences. + :return: The preferred_smm of this V1beta1FeaturePreferences. :rtype: V1FeatureState """ return self._preferred_smm @@ -202,10 +202,10 @@ def preferred_smm(self): @preferred_smm.setter def preferred_smm(self, preferred_smm): """ - Sets the preferred_smm of this V1alpha2FeaturePreferences. + Sets the preferred_smm of this V1beta1FeaturePreferences. PreferredSmm optionally enables the SMM feature - :param preferred_smm: The preferred_smm of this V1alpha2FeaturePreferences. + :param preferred_smm: The preferred_smm of this V1beta1FeaturePreferences. :type: V1FeatureState """ @@ -253,7 +253,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha2FeaturePreferences): + if not isinstance(other, V1beta1FeaturePreferences): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha2_firmware_preferences.py b/kubevirt/models/v1beta1_firmware_preferences.py similarity index 82% rename from kubevirt/models/v1alpha2_firmware_preferences.py rename to kubevirt/models/v1beta1_firmware_preferences.py index a2aff447..0f271301 100644 --- a/kubevirt/models/v1alpha2_firmware_preferences.py +++ b/kubevirt/models/v1beta1_firmware_preferences.py @@ -16,7 +16,7 @@ import re -class V1alpha2FirmwarePreferences(object): +class V1beta1FirmwarePreferences(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -46,7 +46,7 @@ class V1alpha2FirmwarePreferences(object): def __init__(self, preferred_use_bios=None, preferred_use_bios_serial=None, preferred_use_efi=None, preferred_use_secure_boot=None): """ - V1alpha2FirmwarePreferences - a model defined in Swagger + V1beta1FirmwarePreferences - a model defined in Swagger """ self._preferred_use_bios = None @@ -66,10 +66,10 @@ def __init__(self, preferred_use_bios=None, preferred_use_bios_serial=None, pref @property def preferred_use_bios(self): """ - Gets the preferred_use_bios of this V1alpha2FirmwarePreferences. + Gets the preferred_use_bios of this V1beta1FirmwarePreferences. PreferredUseBios optionally enables BIOS - :return: The preferred_use_bios of this V1alpha2FirmwarePreferences. + :return: The preferred_use_bios of this V1beta1FirmwarePreferences. :rtype: bool """ return self._preferred_use_bios @@ -77,10 +77,10 @@ def preferred_use_bios(self): @preferred_use_bios.setter def preferred_use_bios(self, preferred_use_bios): """ - Sets the preferred_use_bios of this V1alpha2FirmwarePreferences. + Sets the preferred_use_bios of this V1beta1FirmwarePreferences. PreferredUseBios optionally enables BIOS - :param preferred_use_bios: The preferred_use_bios of this V1alpha2FirmwarePreferences. + :param preferred_use_bios: The preferred_use_bios of this V1beta1FirmwarePreferences. :type: bool """ @@ -89,10 +89,10 @@ def preferred_use_bios(self, preferred_use_bios): @property def preferred_use_bios_serial(self): """ - Gets the preferred_use_bios_serial of this V1alpha2FirmwarePreferences. + Gets the preferred_use_bios_serial of this V1beta1FirmwarePreferences. PreferredUseBiosSerial optionally transmitts BIOS output over the serial. Requires PreferredUseBios to be enabled. - :return: The preferred_use_bios_serial of this V1alpha2FirmwarePreferences. + :return: The preferred_use_bios_serial of this V1beta1FirmwarePreferences. :rtype: bool """ return self._preferred_use_bios_serial @@ -100,10 +100,10 @@ def preferred_use_bios_serial(self): @preferred_use_bios_serial.setter def preferred_use_bios_serial(self, preferred_use_bios_serial): """ - Sets the preferred_use_bios_serial of this V1alpha2FirmwarePreferences. + Sets the preferred_use_bios_serial of this V1beta1FirmwarePreferences. PreferredUseBiosSerial optionally transmitts BIOS output over the serial. Requires PreferredUseBios to be enabled. - :param preferred_use_bios_serial: The preferred_use_bios_serial of this V1alpha2FirmwarePreferences. + :param preferred_use_bios_serial: The preferred_use_bios_serial of this V1beta1FirmwarePreferences. :type: bool """ @@ -112,10 +112,10 @@ def preferred_use_bios_serial(self, preferred_use_bios_serial): @property def preferred_use_efi(self): """ - Gets the preferred_use_efi of this V1alpha2FirmwarePreferences. + Gets the preferred_use_efi of this V1beta1FirmwarePreferences. PreferredUseEfi optionally enables EFI - :return: The preferred_use_efi of this V1alpha2FirmwarePreferences. + :return: The preferred_use_efi of this V1beta1FirmwarePreferences. :rtype: bool """ return self._preferred_use_efi @@ -123,10 +123,10 @@ def preferred_use_efi(self): @preferred_use_efi.setter def preferred_use_efi(self, preferred_use_efi): """ - Sets the preferred_use_efi of this V1alpha2FirmwarePreferences. + Sets the preferred_use_efi of this V1beta1FirmwarePreferences. PreferredUseEfi optionally enables EFI - :param preferred_use_efi: The preferred_use_efi of this V1alpha2FirmwarePreferences. + :param preferred_use_efi: The preferred_use_efi of this V1beta1FirmwarePreferences. :type: bool """ @@ -135,10 +135,10 @@ def preferred_use_efi(self, preferred_use_efi): @property def preferred_use_secure_boot(self): """ - Gets the preferred_use_secure_boot of this V1alpha2FirmwarePreferences. + Gets the preferred_use_secure_boot of this V1beta1FirmwarePreferences. PreferredUseSecureBoot optionally enables SecureBoot and the OVMF roms will be swapped for SecureBoot-enabled ones. Requires PreferredUseEfi and PreferredSmm to be enabled. - :return: The preferred_use_secure_boot of this V1alpha2FirmwarePreferences. + :return: The preferred_use_secure_boot of this V1beta1FirmwarePreferences. :rtype: bool """ return self._preferred_use_secure_boot @@ -146,10 +146,10 @@ def preferred_use_secure_boot(self): @preferred_use_secure_boot.setter def preferred_use_secure_boot(self, preferred_use_secure_boot): """ - Sets the preferred_use_secure_boot of this V1alpha2FirmwarePreferences. + Sets the preferred_use_secure_boot of this V1beta1FirmwarePreferences. PreferredUseSecureBoot optionally enables SecureBoot and the OVMF roms will be swapped for SecureBoot-enabled ones. Requires PreferredUseEfi and PreferredSmm to be enabled. - :param preferred_use_secure_boot: The preferred_use_secure_boot of this V1alpha2FirmwarePreferences. + :param preferred_use_secure_boot: The preferred_use_secure_boot of this V1beta1FirmwarePreferences. :type: bool """ @@ -197,7 +197,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha2FirmwarePreferences): + if not isinstance(other, V1beta1FirmwarePreferences): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha2_machine_preferences.py b/kubevirt/models/v1beta1_machine_preferences.py similarity index 87% rename from kubevirt/models/v1alpha2_machine_preferences.py rename to kubevirt/models/v1beta1_machine_preferences.py index 94f99e8d..a3a6777b 100644 --- a/kubevirt/models/v1alpha2_machine_preferences.py +++ b/kubevirt/models/v1beta1_machine_preferences.py @@ -16,7 +16,7 @@ import re -class V1alpha2MachinePreferences(object): +class V1beta1MachinePreferences(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,7 +40,7 @@ class V1alpha2MachinePreferences(object): def __init__(self, preferred_machine_type=None): """ - V1alpha2MachinePreferences - a model defined in Swagger + V1beta1MachinePreferences - a model defined in Swagger """ self._preferred_machine_type = None @@ -51,10 +51,10 @@ def __init__(self, preferred_machine_type=None): @property def preferred_machine_type(self): """ - Gets the preferred_machine_type of this V1alpha2MachinePreferences. + Gets the preferred_machine_type of this V1beta1MachinePreferences. PreferredMachineType optionally defines the preferred machine type to use. - :return: The preferred_machine_type of this V1alpha2MachinePreferences. + :return: The preferred_machine_type of this V1beta1MachinePreferences. :rtype: str """ return self._preferred_machine_type @@ -62,10 +62,10 @@ def preferred_machine_type(self): @preferred_machine_type.setter def preferred_machine_type(self, preferred_machine_type): """ - Sets the preferred_machine_type of this V1alpha2MachinePreferences. + Sets the preferred_machine_type of this V1beta1MachinePreferences. PreferredMachineType optionally defines the preferred machine type to use. - :param preferred_machine_type: The preferred_machine_type of this V1alpha2MachinePreferences. + :param preferred_machine_type: The preferred_machine_type of this V1beta1MachinePreferences. :type: str """ @@ -113,7 +113,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha2MachinePreferences): + if not isinstance(other, V1beta1MachinePreferences): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha2_memory_instancetype.py b/kubevirt/models/v1beta1_memory_instancetype.py similarity index 84% rename from kubevirt/models/v1alpha2_memory_instancetype.py rename to kubevirt/models/v1beta1_memory_instancetype.py index a41dceb2..06de35f9 100644 --- a/kubevirt/models/v1alpha2_memory_instancetype.py +++ b/kubevirt/models/v1beta1_memory_instancetype.py @@ -16,7 +16,7 @@ import re -class V1alpha2MemoryInstancetype(object): +class V1beta1MemoryInstancetype(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class V1alpha2MemoryInstancetype(object): def __init__(self, guest=None, hugepages=None): """ - V1alpha2MemoryInstancetype - a model defined in Swagger + V1beta1MemoryInstancetype - a model defined in Swagger """ self._guest = None @@ -55,10 +55,10 @@ def __init__(self, guest=None, hugepages=None): @property def guest(self): """ - Gets the guest of this V1alpha2MemoryInstancetype. + Gets the guest of this V1beta1MemoryInstancetype. Required amount of memory which is visible inside the guest OS. - :return: The guest of this V1alpha2MemoryInstancetype. + :return: The guest of this V1beta1MemoryInstancetype. :rtype: K8sIoApimachineryPkgApiResourceQuantity """ return self._guest @@ -66,10 +66,10 @@ def guest(self): @guest.setter def guest(self, guest): """ - Sets the guest of this V1alpha2MemoryInstancetype. + Sets the guest of this V1beta1MemoryInstancetype. Required amount of memory which is visible inside the guest OS. - :param guest: The guest of this V1alpha2MemoryInstancetype. + :param guest: The guest of this V1beta1MemoryInstancetype. :type: K8sIoApimachineryPkgApiResourceQuantity """ if guest is None: @@ -80,10 +80,10 @@ def guest(self, guest): @property def hugepages(self): """ - Gets the hugepages of this V1alpha2MemoryInstancetype. + Gets the hugepages of this V1beta1MemoryInstancetype. Optionally enables the use of hugepages for the VirtualMachineInstance instead of regular memory. - :return: The hugepages of this V1alpha2MemoryInstancetype. + :return: The hugepages of this V1beta1MemoryInstancetype. :rtype: V1Hugepages """ return self._hugepages @@ -91,10 +91,10 @@ def hugepages(self): @hugepages.setter def hugepages(self, hugepages): """ - Sets the hugepages of this V1alpha2MemoryInstancetype. + Sets the hugepages of this V1beta1MemoryInstancetype. Optionally enables the use of hugepages for the VirtualMachineInstance instead of regular memory. - :param hugepages: The hugepages of this V1alpha2MemoryInstancetype. + :param hugepages: The hugepages of this V1beta1MemoryInstancetype. :type: V1Hugepages """ @@ -142,7 +142,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha2MemoryInstancetype): + if not isinstance(other, V1beta1MemoryInstancetype): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha2_virtual_machine_cluster_instancetype.py b/kubevirt/models/v1beta1_virtual_machine_cluster_instancetype.py similarity index 76% rename from kubevirt/models/v1alpha2_virtual_machine_cluster_instancetype.py rename to kubevirt/models/v1beta1_virtual_machine_cluster_instancetype.py index 67d968a2..c200a610 100644 --- a/kubevirt/models/v1alpha2_virtual_machine_cluster_instancetype.py +++ b/kubevirt/models/v1beta1_virtual_machine_cluster_instancetype.py @@ -16,7 +16,7 @@ import re -class V1alpha2VirtualMachineClusterInstancetype(object): +class V1beta1VirtualMachineClusterInstancetype(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -34,7 +34,7 @@ class V1alpha2VirtualMachineClusterInstancetype(object): 'api_version': 'str', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', - 'spec': 'V1alpha2VirtualMachineInstancetypeSpec' + 'spec': 'V1beta1VirtualMachineInstancetypeSpec' } attribute_map = { @@ -46,7 +46,7 @@ class V1alpha2VirtualMachineClusterInstancetype(object): def __init__(self, api_version=None, kind=None, metadata=None, spec=None): """ - V1alpha2VirtualMachineClusterInstancetype - a model defined in Swagger + V1beta1VirtualMachineClusterInstancetype - a model defined in Swagger """ self._api_version = None @@ -65,10 +65,10 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None): @property def api_version(self): """ - Gets the api_version of this V1alpha2VirtualMachineClusterInstancetype. + Gets the api_version of this V1beta1VirtualMachineClusterInstancetype. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha2VirtualMachineClusterInstancetype. + :return: The api_version of this V1beta1VirtualMachineClusterInstancetype. :rtype: str """ return self._api_version @@ -76,10 +76,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha2VirtualMachineClusterInstancetype. + Sets the api_version of this V1beta1VirtualMachineClusterInstancetype. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha2VirtualMachineClusterInstancetype. + :param api_version: The api_version of this V1beta1VirtualMachineClusterInstancetype. :type: str """ @@ -88,10 +88,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V1alpha2VirtualMachineClusterInstancetype. + Gets the kind of this V1beta1VirtualMachineClusterInstancetype. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha2VirtualMachineClusterInstancetype. + :return: The kind of this V1beta1VirtualMachineClusterInstancetype. :rtype: str """ return self._kind @@ -99,10 +99,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha2VirtualMachineClusterInstancetype. + Sets the kind of this V1beta1VirtualMachineClusterInstancetype. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha2VirtualMachineClusterInstancetype. + :param kind: The kind of this V1beta1VirtualMachineClusterInstancetype. :type: str """ @@ -111,9 +111,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha2VirtualMachineClusterInstancetype. + Gets the metadata of this V1beta1VirtualMachineClusterInstancetype. - :return: The metadata of this V1alpha2VirtualMachineClusterInstancetype. + :return: The metadata of this V1beta1VirtualMachineClusterInstancetype. :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -121,9 +121,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha2VirtualMachineClusterInstancetype. + Sets the metadata of this V1beta1VirtualMachineClusterInstancetype. - :param metadata: The metadata of this V1alpha2VirtualMachineClusterInstancetype. + :param metadata: The metadata of this V1beta1VirtualMachineClusterInstancetype. :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ @@ -132,22 +132,22 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1alpha2VirtualMachineClusterInstancetype. + Gets the spec of this V1beta1VirtualMachineClusterInstancetype. Required spec describing the instancetype - :return: The spec of this V1alpha2VirtualMachineClusterInstancetype. - :rtype: V1alpha2VirtualMachineInstancetypeSpec + :return: The spec of this V1beta1VirtualMachineClusterInstancetype. + :rtype: V1beta1VirtualMachineInstancetypeSpec """ return self._spec @spec.setter def spec(self, spec): """ - Sets the spec of this V1alpha2VirtualMachineClusterInstancetype. + Sets the spec of this V1beta1VirtualMachineClusterInstancetype. Required spec describing the instancetype - :param spec: The spec of this V1alpha2VirtualMachineClusterInstancetype. - :type: V1alpha2VirtualMachineInstancetypeSpec + :param spec: The spec of this V1beta1VirtualMachineClusterInstancetype. + :type: V1beta1VirtualMachineInstancetypeSpec """ if spec is None: raise ValueError("Invalid value for `spec`, must not be `None`") @@ -196,7 +196,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha2VirtualMachineClusterInstancetype): + if not isinstance(other, V1beta1VirtualMachineClusterInstancetype): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha2_virtual_machine_cluster_instancetype_list.py b/kubevirt/models/v1beta1_virtual_machine_cluster_instancetype_list.py similarity index 76% rename from kubevirt/models/v1alpha2_virtual_machine_cluster_instancetype_list.py rename to kubevirt/models/v1beta1_virtual_machine_cluster_instancetype_list.py index a40219d6..7d2e61dd 100644 --- a/kubevirt/models/v1alpha2_virtual_machine_cluster_instancetype_list.py +++ b/kubevirt/models/v1beta1_virtual_machine_cluster_instancetype_list.py @@ -16,7 +16,7 @@ import re -class V1alpha2VirtualMachineClusterInstancetypeList(object): +class V1beta1VirtualMachineClusterInstancetypeList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class V1alpha2VirtualMachineClusterInstancetypeList(object): """ swagger_types = { 'api_version': 'str', - 'items': 'list[V1alpha2VirtualMachineClusterInstancetype]', + 'items': 'list[V1beta1VirtualMachineClusterInstancetype]', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' } @@ -46,7 +46,7 @@ class V1alpha2VirtualMachineClusterInstancetypeList(object): def __init__(self, api_version=None, items=None, kind=None, metadata=None): """ - V1alpha2VirtualMachineClusterInstancetypeList - a model defined in Swagger + V1beta1VirtualMachineClusterInstancetypeList - a model defined in Swagger """ self._api_version = None @@ -65,10 +65,10 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): @property def api_version(self): """ - Gets the api_version of this V1alpha2VirtualMachineClusterInstancetypeList. + Gets the api_version of this V1beta1VirtualMachineClusterInstancetypeList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha2VirtualMachineClusterInstancetypeList. + :return: The api_version of this V1beta1VirtualMachineClusterInstancetypeList. :rtype: str """ return self._api_version @@ -76,10 +76,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha2VirtualMachineClusterInstancetypeList. + Sets the api_version of this V1beta1VirtualMachineClusterInstancetypeList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha2VirtualMachineClusterInstancetypeList. + :param api_version: The api_version of this V1beta1VirtualMachineClusterInstancetypeList. :type: str """ @@ -88,20 +88,20 @@ def api_version(self, api_version): @property def items(self): """ - Gets the items of this V1alpha2VirtualMachineClusterInstancetypeList. + Gets the items of this V1beta1VirtualMachineClusterInstancetypeList. - :return: The items of this V1alpha2VirtualMachineClusterInstancetypeList. - :rtype: list[V1alpha2VirtualMachineClusterInstancetype] + :return: The items of this V1beta1VirtualMachineClusterInstancetypeList. + :rtype: list[V1beta1VirtualMachineClusterInstancetype] """ return self._items @items.setter def items(self, items): """ - Sets the items of this V1alpha2VirtualMachineClusterInstancetypeList. + Sets the items of this V1beta1VirtualMachineClusterInstancetypeList. - :param items: The items of this V1alpha2VirtualMachineClusterInstancetypeList. - :type: list[V1alpha2VirtualMachineClusterInstancetype] + :param items: The items of this V1beta1VirtualMachineClusterInstancetypeList. + :type: list[V1beta1VirtualMachineClusterInstancetype] """ if items is None: raise ValueError("Invalid value for `items`, must not be `None`") @@ -111,10 +111,10 @@ def items(self, items): @property def kind(self): """ - Gets the kind of this V1alpha2VirtualMachineClusterInstancetypeList. + Gets the kind of this V1beta1VirtualMachineClusterInstancetypeList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha2VirtualMachineClusterInstancetypeList. + :return: The kind of this V1beta1VirtualMachineClusterInstancetypeList. :rtype: str """ return self._kind @@ -122,10 +122,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha2VirtualMachineClusterInstancetypeList. + Sets the kind of this V1beta1VirtualMachineClusterInstancetypeList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha2VirtualMachineClusterInstancetypeList. + :param kind: The kind of this V1beta1VirtualMachineClusterInstancetypeList. :type: str """ @@ -134,9 +134,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha2VirtualMachineClusterInstancetypeList. + Gets the metadata of this V1beta1VirtualMachineClusterInstancetypeList. - :return: The metadata of this V1alpha2VirtualMachineClusterInstancetypeList. + :return: The metadata of this V1beta1VirtualMachineClusterInstancetypeList. :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @@ -144,9 +144,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha2VirtualMachineClusterInstancetypeList. + Sets the metadata of this V1beta1VirtualMachineClusterInstancetypeList. - :param metadata: The metadata of this V1alpha2VirtualMachineClusterInstancetypeList. + :param metadata: The metadata of this V1beta1VirtualMachineClusterInstancetypeList. :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ @@ -194,7 +194,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha2VirtualMachineClusterInstancetypeList): + if not isinstance(other, V1beta1VirtualMachineClusterInstancetypeList): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha2_virtual_machine_cluster_preference.py b/kubevirt/models/v1beta1_virtual_machine_cluster_preference.py similarity index 76% rename from kubevirt/models/v1alpha2_virtual_machine_cluster_preference.py rename to kubevirt/models/v1beta1_virtual_machine_cluster_preference.py index 363304f2..a890d658 100644 --- a/kubevirt/models/v1alpha2_virtual_machine_cluster_preference.py +++ b/kubevirt/models/v1beta1_virtual_machine_cluster_preference.py @@ -16,7 +16,7 @@ import re -class V1alpha2VirtualMachineClusterPreference(object): +class V1beta1VirtualMachineClusterPreference(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -34,7 +34,7 @@ class V1alpha2VirtualMachineClusterPreference(object): 'api_version': 'str', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', - 'spec': 'V1alpha2VirtualMachinePreferenceSpec' + 'spec': 'V1beta1VirtualMachinePreferenceSpec' } attribute_map = { @@ -46,7 +46,7 @@ class V1alpha2VirtualMachineClusterPreference(object): def __init__(self, api_version=None, kind=None, metadata=None, spec=None): """ - V1alpha2VirtualMachineClusterPreference - a model defined in Swagger + V1beta1VirtualMachineClusterPreference - a model defined in Swagger """ self._api_version = None @@ -65,10 +65,10 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None): @property def api_version(self): """ - Gets the api_version of this V1alpha2VirtualMachineClusterPreference. + Gets the api_version of this V1beta1VirtualMachineClusterPreference. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha2VirtualMachineClusterPreference. + :return: The api_version of this V1beta1VirtualMachineClusterPreference. :rtype: str """ return self._api_version @@ -76,10 +76,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha2VirtualMachineClusterPreference. + Sets the api_version of this V1beta1VirtualMachineClusterPreference. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha2VirtualMachineClusterPreference. + :param api_version: The api_version of this V1beta1VirtualMachineClusterPreference. :type: str """ @@ -88,10 +88,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V1alpha2VirtualMachineClusterPreference. + Gets the kind of this V1beta1VirtualMachineClusterPreference. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha2VirtualMachineClusterPreference. + :return: The kind of this V1beta1VirtualMachineClusterPreference. :rtype: str """ return self._kind @@ -99,10 +99,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha2VirtualMachineClusterPreference. + Sets the kind of this V1beta1VirtualMachineClusterPreference. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha2VirtualMachineClusterPreference. + :param kind: The kind of this V1beta1VirtualMachineClusterPreference. :type: str """ @@ -111,9 +111,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha2VirtualMachineClusterPreference. + Gets the metadata of this V1beta1VirtualMachineClusterPreference. - :return: The metadata of this V1alpha2VirtualMachineClusterPreference. + :return: The metadata of this V1beta1VirtualMachineClusterPreference. :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -121,9 +121,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha2VirtualMachineClusterPreference. + Sets the metadata of this V1beta1VirtualMachineClusterPreference. - :param metadata: The metadata of this V1alpha2VirtualMachineClusterPreference. + :param metadata: The metadata of this V1beta1VirtualMachineClusterPreference. :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ @@ -132,22 +132,22 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1alpha2VirtualMachineClusterPreference. + Gets the spec of this V1beta1VirtualMachineClusterPreference. Required spec describing the preferences - :return: The spec of this V1alpha2VirtualMachineClusterPreference. - :rtype: V1alpha2VirtualMachinePreferenceSpec + :return: The spec of this V1beta1VirtualMachineClusterPreference. + :rtype: V1beta1VirtualMachinePreferenceSpec """ return self._spec @spec.setter def spec(self, spec): """ - Sets the spec of this V1alpha2VirtualMachineClusterPreference. + Sets the spec of this V1beta1VirtualMachineClusterPreference. Required spec describing the preferences - :param spec: The spec of this V1alpha2VirtualMachineClusterPreference. - :type: V1alpha2VirtualMachinePreferenceSpec + :param spec: The spec of this V1beta1VirtualMachineClusterPreference. + :type: V1beta1VirtualMachinePreferenceSpec """ if spec is None: raise ValueError("Invalid value for `spec`, must not be `None`") @@ -196,7 +196,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha2VirtualMachineClusterPreference): + if not isinstance(other, V1beta1VirtualMachineClusterPreference): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha2_virtual_machine_cluster_preference_list.py b/kubevirt/models/v1beta1_virtual_machine_cluster_preference_list.py similarity index 76% rename from kubevirt/models/v1alpha2_virtual_machine_cluster_preference_list.py rename to kubevirt/models/v1beta1_virtual_machine_cluster_preference_list.py index f5cbf993..63135d46 100644 --- a/kubevirt/models/v1alpha2_virtual_machine_cluster_preference_list.py +++ b/kubevirt/models/v1beta1_virtual_machine_cluster_preference_list.py @@ -16,7 +16,7 @@ import re -class V1alpha2VirtualMachineClusterPreferenceList(object): +class V1beta1VirtualMachineClusterPreferenceList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class V1alpha2VirtualMachineClusterPreferenceList(object): """ swagger_types = { 'api_version': 'str', - 'items': 'list[V1alpha2VirtualMachineClusterPreference]', + 'items': 'list[V1beta1VirtualMachineClusterPreference]', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' } @@ -46,7 +46,7 @@ class V1alpha2VirtualMachineClusterPreferenceList(object): def __init__(self, api_version=None, items=None, kind=None, metadata=None): """ - V1alpha2VirtualMachineClusterPreferenceList - a model defined in Swagger + V1beta1VirtualMachineClusterPreferenceList - a model defined in Swagger """ self._api_version = None @@ -65,10 +65,10 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): @property def api_version(self): """ - Gets the api_version of this V1alpha2VirtualMachineClusterPreferenceList. + Gets the api_version of this V1beta1VirtualMachineClusterPreferenceList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha2VirtualMachineClusterPreferenceList. + :return: The api_version of this V1beta1VirtualMachineClusterPreferenceList. :rtype: str """ return self._api_version @@ -76,10 +76,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha2VirtualMachineClusterPreferenceList. + Sets the api_version of this V1beta1VirtualMachineClusterPreferenceList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha2VirtualMachineClusterPreferenceList. + :param api_version: The api_version of this V1beta1VirtualMachineClusterPreferenceList. :type: str """ @@ -88,20 +88,20 @@ def api_version(self, api_version): @property def items(self): """ - Gets the items of this V1alpha2VirtualMachineClusterPreferenceList. + Gets the items of this V1beta1VirtualMachineClusterPreferenceList. - :return: The items of this V1alpha2VirtualMachineClusterPreferenceList. - :rtype: list[V1alpha2VirtualMachineClusterPreference] + :return: The items of this V1beta1VirtualMachineClusterPreferenceList. + :rtype: list[V1beta1VirtualMachineClusterPreference] """ return self._items @items.setter def items(self, items): """ - Sets the items of this V1alpha2VirtualMachineClusterPreferenceList. + Sets the items of this V1beta1VirtualMachineClusterPreferenceList. - :param items: The items of this V1alpha2VirtualMachineClusterPreferenceList. - :type: list[V1alpha2VirtualMachineClusterPreference] + :param items: The items of this V1beta1VirtualMachineClusterPreferenceList. + :type: list[V1beta1VirtualMachineClusterPreference] """ if items is None: raise ValueError("Invalid value for `items`, must not be `None`") @@ -111,10 +111,10 @@ def items(self, items): @property def kind(self): """ - Gets the kind of this V1alpha2VirtualMachineClusterPreferenceList. + Gets the kind of this V1beta1VirtualMachineClusterPreferenceList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha2VirtualMachineClusterPreferenceList. + :return: The kind of this V1beta1VirtualMachineClusterPreferenceList. :rtype: str """ return self._kind @@ -122,10 +122,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha2VirtualMachineClusterPreferenceList. + Sets the kind of this V1beta1VirtualMachineClusterPreferenceList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha2VirtualMachineClusterPreferenceList. + :param kind: The kind of this V1beta1VirtualMachineClusterPreferenceList. :type: str """ @@ -134,9 +134,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha2VirtualMachineClusterPreferenceList. + Gets the metadata of this V1beta1VirtualMachineClusterPreferenceList. - :return: The metadata of this V1alpha2VirtualMachineClusterPreferenceList. + :return: The metadata of this V1beta1VirtualMachineClusterPreferenceList. :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @@ -144,9 +144,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha2VirtualMachineClusterPreferenceList. + Sets the metadata of this V1beta1VirtualMachineClusterPreferenceList. - :param metadata: The metadata of this V1alpha2VirtualMachineClusterPreferenceList. + :param metadata: The metadata of this V1beta1VirtualMachineClusterPreferenceList. :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ @@ -194,7 +194,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha2VirtualMachineClusterPreferenceList): + if not isinstance(other, V1beta1VirtualMachineClusterPreferenceList): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha2_virtual_machine_instancetype.py b/kubevirt/models/v1beta1_virtual_machine_instancetype.py similarity index 77% rename from kubevirt/models/v1alpha2_virtual_machine_instancetype.py rename to kubevirt/models/v1beta1_virtual_machine_instancetype.py index 1b70df40..843dc0de 100644 --- a/kubevirt/models/v1alpha2_virtual_machine_instancetype.py +++ b/kubevirt/models/v1beta1_virtual_machine_instancetype.py @@ -16,7 +16,7 @@ import re -class V1alpha2VirtualMachineInstancetype(object): +class V1beta1VirtualMachineInstancetype(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -34,7 +34,7 @@ class V1alpha2VirtualMachineInstancetype(object): 'api_version': 'str', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', - 'spec': 'V1alpha2VirtualMachineInstancetypeSpec' + 'spec': 'V1beta1VirtualMachineInstancetypeSpec' } attribute_map = { @@ -46,7 +46,7 @@ class V1alpha2VirtualMachineInstancetype(object): def __init__(self, api_version=None, kind=None, metadata=None, spec=None): """ - V1alpha2VirtualMachineInstancetype - a model defined in Swagger + V1beta1VirtualMachineInstancetype - a model defined in Swagger """ self._api_version = None @@ -65,10 +65,10 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None): @property def api_version(self): """ - Gets the api_version of this V1alpha2VirtualMachineInstancetype. + Gets the api_version of this V1beta1VirtualMachineInstancetype. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha2VirtualMachineInstancetype. + :return: The api_version of this V1beta1VirtualMachineInstancetype. :rtype: str """ return self._api_version @@ -76,10 +76,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha2VirtualMachineInstancetype. + Sets the api_version of this V1beta1VirtualMachineInstancetype. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha2VirtualMachineInstancetype. + :param api_version: The api_version of this V1beta1VirtualMachineInstancetype. :type: str """ @@ -88,10 +88,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V1alpha2VirtualMachineInstancetype. + Gets the kind of this V1beta1VirtualMachineInstancetype. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha2VirtualMachineInstancetype. + :return: The kind of this V1beta1VirtualMachineInstancetype. :rtype: str """ return self._kind @@ -99,10 +99,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha2VirtualMachineInstancetype. + Sets the kind of this V1beta1VirtualMachineInstancetype. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha2VirtualMachineInstancetype. + :param kind: The kind of this V1beta1VirtualMachineInstancetype. :type: str """ @@ -111,9 +111,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha2VirtualMachineInstancetype. + Gets the metadata of this V1beta1VirtualMachineInstancetype. - :return: The metadata of this V1alpha2VirtualMachineInstancetype. + :return: The metadata of this V1beta1VirtualMachineInstancetype. :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -121,9 +121,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha2VirtualMachineInstancetype. + Sets the metadata of this V1beta1VirtualMachineInstancetype. - :param metadata: The metadata of this V1alpha2VirtualMachineInstancetype. + :param metadata: The metadata of this V1beta1VirtualMachineInstancetype. :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ @@ -132,22 +132,22 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1alpha2VirtualMachineInstancetype. + Gets the spec of this V1beta1VirtualMachineInstancetype. Required spec describing the instancetype - :return: The spec of this V1alpha2VirtualMachineInstancetype. - :rtype: V1alpha2VirtualMachineInstancetypeSpec + :return: The spec of this V1beta1VirtualMachineInstancetype. + :rtype: V1beta1VirtualMachineInstancetypeSpec """ return self._spec @spec.setter def spec(self, spec): """ - Sets the spec of this V1alpha2VirtualMachineInstancetype. + Sets the spec of this V1beta1VirtualMachineInstancetype. Required spec describing the instancetype - :param spec: The spec of this V1alpha2VirtualMachineInstancetype. - :type: V1alpha2VirtualMachineInstancetypeSpec + :param spec: The spec of this V1beta1VirtualMachineInstancetype. + :type: V1beta1VirtualMachineInstancetypeSpec """ if spec is None: raise ValueError("Invalid value for `spec`, must not be `None`") @@ -196,7 +196,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha2VirtualMachineInstancetype): + if not isinstance(other, V1beta1VirtualMachineInstancetype): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha2_virtual_machine_instancetype_list.py b/kubevirt/models/v1beta1_virtual_machine_instancetype_list.py similarity index 77% rename from kubevirt/models/v1alpha2_virtual_machine_instancetype_list.py rename to kubevirt/models/v1beta1_virtual_machine_instancetype_list.py index ff8a4008..823cb5c1 100644 --- a/kubevirt/models/v1alpha2_virtual_machine_instancetype_list.py +++ b/kubevirt/models/v1beta1_virtual_machine_instancetype_list.py @@ -16,7 +16,7 @@ import re -class V1alpha2VirtualMachineInstancetypeList(object): +class V1beta1VirtualMachineInstancetypeList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class V1alpha2VirtualMachineInstancetypeList(object): """ swagger_types = { 'api_version': 'str', - 'items': 'list[V1alpha2VirtualMachineInstancetype]', + 'items': 'list[V1beta1VirtualMachineInstancetype]', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' } @@ -46,7 +46,7 @@ class V1alpha2VirtualMachineInstancetypeList(object): def __init__(self, api_version=None, items=None, kind=None, metadata=None): """ - V1alpha2VirtualMachineInstancetypeList - a model defined in Swagger + V1beta1VirtualMachineInstancetypeList - a model defined in Swagger """ self._api_version = None @@ -65,10 +65,10 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): @property def api_version(self): """ - Gets the api_version of this V1alpha2VirtualMachineInstancetypeList. + Gets the api_version of this V1beta1VirtualMachineInstancetypeList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha2VirtualMachineInstancetypeList. + :return: The api_version of this V1beta1VirtualMachineInstancetypeList. :rtype: str """ return self._api_version @@ -76,10 +76,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha2VirtualMachineInstancetypeList. + Sets the api_version of this V1beta1VirtualMachineInstancetypeList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha2VirtualMachineInstancetypeList. + :param api_version: The api_version of this V1beta1VirtualMachineInstancetypeList. :type: str """ @@ -88,20 +88,20 @@ def api_version(self, api_version): @property def items(self): """ - Gets the items of this V1alpha2VirtualMachineInstancetypeList. + Gets the items of this V1beta1VirtualMachineInstancetypeList. - :return: The items of this V1alpha2VirtualMachineInstancetypeList. - :rtype: list[V1alpha2VirtualMachineInstancetype] + :return: The items of this V1beta1VirtualMachineInstancetypeList. + :rtype: list[V1beta1VirtualMachineInstancetype] """ return self._items @items.setter def items(self, items): """ - Sets the items of this V1alpha2VirtualMachineInstancetypeList. + Sets the items of this V1beta1VirtualMachineInstancetypeList. - :param items: The items of this V1alpha2VirtualMachineInstancetypeList. - :type: list[V1alpha2VirtualMachineInstancetype] + :param items: The items of this V1beta1VirtualMachineInstancetypeList. + :type: list[V1beta1VirtualMachineInstancetype] """ if items is None: raise ValueError("Invalid value for `items`, must not be `None`") @@ -111,10 +111,10 @@ def items(self, items): @property def kind(self): """ - Gets the kind of this V1alpha2VirtualMachineInstancetypeList. + Gets the kind of this V1beta1VirtualMachineInstancetypeList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha2VirtualMachineInstancetypeList. + :return: The kind of this V1beta1VirtualMachineInstancetypeList. :rtype: str """ return self._kind @@ -122,10 +122,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha2VirtualMachineInstancetypeList. + Sets the kind of this V1beta1VirtualMachineInstancetypeList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha2VirtualMachineInstancetypeList. + :param kind: The kind of this V1beta1VirtualMachineInstancetypeList. :type: str """ @@ -134,9 +134,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha2VirtualMachineInstancetypeList. + Gets the metadata of this V1beta1VirtualMachineInstancetypeList. - :return: The metadata of this V1alpha2VirtualMachineInstancetypeList. + :return: The metadata of this V1beta1VirtualMachineInstancetypeList. :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @@ -144,9 +144,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha2VirtualMachineInstancetypeList. + Sets the metadata of this V1beta1VirtualMachineInstancetypeList. - :param metadata: The metadata of this V1alpha2VirtualMachineInstancetypeList. + :param metadata: The metadata of this V1beta1VirtualMachineInstancetypeList. :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ @@ -194,7 +194,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha2VirtualMachineInstancetypeList): + if not isinstance(other, V1beta1VirtualMachineInstancetypeList): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha2_virtual_machine_instancetype_spec.py b/kubevirt/models/v1beta1_virtual_machine_instancetype_spec.py similarity index 73% rename from kubevirt/models/v1alpha2_virtual_machine_instancetype_spec.py rename to kubevirt/models/v1beta1_virtual_machine_instancetype_spec.py index ed97776c..cc3071f8 100644 --- a/kubevirt/models/v1alpha2_virtual_machine_instancetype_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_instancetype_spec.py @@ -16,7 +16,7 @@ import re -class V1alpha2VirtualMachineInstancetypeSpec(object): +class V1beta1VirtualMachineInstancetypeSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,12 +31,12 @@ class V1alpha2VirtualMachineInstancetypeSpec(object): and the value is json key in definition. """ swagger_types = { - 'cpu': 'V1alpha2CPUInstancetype', + 'cpu': 'V1beta1CPUInstancetype', 'gpus': 'list[V1GPU]', 'host_devices': 'list[V1HostDevice]', 'io_threads_policy': 'str', 'launch_security': 'V1LaunchSecurity', - 'memory': 'V1alpha2MemoryInstancetype' + 'memory': 'V1beta1MemoryInstancetype' } attribute_map = { @@ -50,7 +50,7 @@ class V1alpha2VirtualMachineInstancetypeSpec(object): def __init__(self, cpu=None, gpus=None, host_devices=None, io_threads_policy=None, launch_security=None, memory=None): """ - V1alpha2VirtualMachineInstancetypeSpec - a model defined in Swagger + V1beta1VirtualMachineInstancetypeSpec - a model defined in Swagger """ self._cpu = None @@ -74,22 +74,22 @@ def __init__(self, cpu=None, gpus=None, host_devices=None, io_threads_policy=Non @property def cpu(self): """ - Gets the cpu of this V1alpha2VirtualMachineInstancetypeSpec. + Gets the cpu of this V1beta1VirtualMachineInstancetypeSpec. Required CPU related attributes of the instancetype. - :return: The cpu of this V1alpha2VirtualMachineInstancetypeSpec. - :rtype: V1alpha2CPUInstancetype + :return: The cpu of this V1beta1VirtualMachineInstancetypeSpec. + :rtype: V1beta1CPUInstancetype """ return self._cpu @cpu.setter def cpu(self, cpu): """ - Sets the cpu of this V1alpha2VirtualMachineInstancetypeSpec. + Sets the cpu of this V1beta1VirtualMachineInstancetypeSpec. Required CPU related attributes of the instancetype. - :param cpu: The cpu of this V1alpha2VirtualMachineInstancetypeSpec. - :type: V1alpha2CPUInstancetype + :param cpu: The cpu of this V1beta1VirtualMachineInstancetypeSpec. + :type: V1beta1CPUInstancetype """ if cpu is None: raise ValueError("Invalid value for `cpu`, must not be `None`") @@ -99,10 +99,10 @@ def cpu(self, cpu): @property def gpus(self): """ - Gets the gpus of this V1alpha2VirtualMachineInstancetypeSpec. + Gets the gpus of this V1beta1VirtualMachineInstancetypeSpec. Optionally defines any GPU devices associated with the instancetype. - :return: The gpus of this V1alpha2VirtualMachineInstancetypeSpec. + :return: The gpus of this V1beta1VirtualMachineInstancetypeSpec. :rtype: list[V1GPU] """ return self._gpus @@ -110,10 +110,10 @@ def gpus(self): @gpus.setter def gpus(self, gpus): """ - Sets the gpus of this V1alpha2VirtualMachineInstancetypeSpec. + Sets the gpus of this V1beta1VirtualMachineInstancetypeSpec. Optionally defines any GPU devices associated with the instancetype. - :param gpus: The gpus of this V1alpha2VirtualMachineInstancetypeSpec. + :param gpus: The gpus of this V1beta1VirtualMachineInstancetypeSpec. :type: list[V1GPU] """ @@ -122,10 +122,10 @@ def gpus(self, gpus): @property def host_devices(self): """ - Gets the host_devices of this V1alpha2VirtualMachineInstancetypeSpec. + Gets the host_devices of this V1beta1VirtualMachineInstancetypeSpec. Optionally defines any HostDevices associated with the instancetype. - :return: The host_devices of this V1alpha2VirtualMachineInstancetypeSpec. + :return: The host_devices of this V1beta1VirtualMachineInstancetypeSpec. :rtype: list[V1HostDevice] """ return self._host_devices @@ -133,10 +133,10 @@ def host_devices(self): @host_devices.setter def host_devices(self, host_devices): """ - Sets the host_devices of this V1alpha2VirtualMachineInstancetypeSpec. + Sets the host_devices of this V1beta1VirtualMachineInstancetypeSpec. Optionally defines any HostDevices associated with the instancetype. - :param host_devices: The host_devices of this V1alpha2VirtualMachineInstancetypeSpec. + :param host_devices: The host_devices of this V1beta1VirtualMachineInstancetypeSpec. :type: list[V1HostDevice] """ @@ -145,10 +145,10 @@ def host_devices(self, host_devices): @property def io_threads_policy(self): """ - Gets the io_threads_policy of this V1alpha2VirtualMachineInstancetypeSpec. + Gets the io_threads_policy of this V1beta1VirtualMachineInstancetypeSpec. Optionally defines the IOThreadsPolicy to be used by the instancetype. - :return: The io_threads_policy of this V1alpha2VirtualMachineInstancetypeSpec. + :return: The io_threads_policy of this V1beta1VirtualMachineInstancetypeSpec. :rtype: str """ return self._io_threads_policy @@ -156,10 +156,10 @@ def io_threads_policy(self): @io_threads_policy.setter def io_threads_policy(self, io_threads_policy): """ - Sets the io_threads_policy of this V1alpha2VirtualMachineInstancetypeSpec. + Sets the io_threads_policy of this V1beta1VirtualMachineInstancetypeSpec. Optionally defines the IOThreadsPolicy to be used by the instancetype. - :param io_threads_policy: The io_threads_policy of this V1alpha2VirtualMachineInstancetypeSpec. + :param io_threads_policy: The io_threads_policy of this V1beta1VirtualMachineInstancetypeSpec. :type: str """ @@ -168,10 +168,10 @@ def io_threads_policy(self, io_threads_policy): @property def launch_security(self): """ - Gets the launch_security of this V1alpha2VirtualMachineInstancetypeSpec. + Gets the launch_security of this V1beta1VirtualMachineInstancetypeSpec. Optionally defines the LaunchSecurity to be used by the instancetype. - :return: The launch_security of this V1alpha2VirtualMachineInstancetypeSpec. + :return: The launch_security of this V1beta1VirtualMachineInstancetypeSpec. :rtype: V1LaunchSecurity """ return self._launch_security @@ -179,10 +179,10 @@ def launch_security(self): @launch_security.setter def launch_security(self, launch_security): """ - Sets the launch_security of this V1alpha2VirtualMachineInstancetypeSpec. + Sets the launch_security of this V1beta1VirtualMachineInstancetypeSpec. Optionally defines the LaunchSecurity to be used by the instancetype. - :param launch_security: The launch_security of this V1alpha2VirtualMachineInstancetypeSpec. + :param launch_security: The launch_security of this V1beta1VirtualMachineInstancetypeSpec. :type: V1LaunchSecurity """ @@ -191,22 +191,22 @@ def launch_security(self, launch_security): @property def memory(self): """ - Gets the memory of this V1alpha2VirtualMachineInstancetypeSpec. + Gets the memory of this V1beta1VirtualMachineInstancetypeSpec. Required Memory related attributes of the instancetype. - :return: The memory of this V1alpha2VirtualMachineInstancetypeSpec. - :rtype: V1alpha2MemoryInstancetype + :return: The memory of this V1beta1VirtualMachineInstancetypeSpec. + :rtype: V1beta1MemoryInstancetype """ return self._memory @memory.setter def memory(self, memory): """ - Sets the memory of this V1alpha2VirtualMachineInstancetypeSpec. + Sets the memory of this V1beta1VirtualMachineInstancetypeSpec. Required Memory related attributes of the instancetype. - :param memory: The memory of this V1alpha2VirtualMachineInstancetypeSpec. - :type: V1alpha2MemoryInstancetype + :param memory: The memory of this V1beta1VirtualMachineInstancetypeSpec. + :type: V1beta1MemoryInstancetype """ if memory is None: raise ValueError("Invalid value for `memory`, must not be `None`") @@ -255,7 +255,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha2VirtualMachineInstancetypeSpec): + if not isinstance(other, V1beta1VirtualMachineInstancetypeSpec): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha2_virtual_machine_preference.py b/kubevirt/models/v1beta1_virtual_machine_preference.py similarity index 78% rename from kubevirt/models/v1alpha2_virtual_machine_preference.py rename to kubevirt/models/v1beta1_virtual_machine_preference.py index 39ddff98..75d43542 100644 --- a/kubevirt/models/v1alpha2_virtual_machine_preference.py +++ b/kubevirt/models/v1beta1_virtual_machine_preference.py @@ -16,7 +16,7 @@ import re -class V1alpha2VirtualMachinePreference(object): +class V1beta1VirtualMachinePreference(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -34,7 +34,7 @@ class V1alpha2VirtualMachinePreference(object): 'api_version': 'str', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', - 'spec': 'V1alpha2VirtualMachinePreferenceSpec' + 'spec': 'V1beta1VirtualMachinePreferenceSpec' } attribute_map = { @@ -46,7 +46,7 @@ class V1alpha2VirtualMachinePreference(object): def __init__(self, api_version=None, kind=None, metadata=None, spec=None): """ - V1alpha2VirtualMachinePreference - a model defined in Swagger + V1beta1VirtualMachinePreference - a model defined in Swagger """ self._api_version = None @@ -65,10 +65,10 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None): @property def api_version(self): """ - Gets the api_version of this V1alpha2VirtualMachinePreference. + Gets the api_version of this V1beta1VirtualMachinePreference. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha2VirtualMachinePreference. + :return: The api_version of this V1beta1VirtualMachinePreference. :rtype: str """ return self._api_version @@ -76,10 +76,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha2VirtualMachinePreference. + Sets the api_version of this V1beta1VirtualMachinePreference. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha2VirtualMachinePreference. + :param api_version: The api_version of this V1beta1VirtualMachinePreference. :type: str """ @@ -88,10 +88,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V1alpha2VirtualMachinePreference. + Gets the kind of this V1beta1VirtualMachinePreference. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha2VirtualMachinePreference. + :return: The kind of this V1beta1VirtualMachinePreference. :rtype: str """ return self._kind @@ -99,10 +99,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha2VirtualMachinePreference. + Sets the kind of this V1beta1VirtualMachinePreference. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha2VirtualMachinePreference. + :param kind: The kind of this V1beta1VirtualMachinePreference. :type: str """ @@ -111,9 +111,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha2VirtualMachinePreference. + Gets the metadata of this V1beta1VirtualMachinePreference. - :return: The metadata of this V1alpha2VirtualMachinePreference. + :return: The metadata of this V1beta1VirtualMachinePreference. :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -121,9 +121,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha2VirtualMachinePreference. + Sets the metadata of this V1beta1VirtualMachinePreference. - :param metadata: The metadata of this V1alpha2VirtualMachinePreference. + :param metadata: The metadata of this V1beta1VirtualMachinePreference. :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ @@ -132,22 +132,22 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1alpha2VirtualMachinePreference. + Gets the spec of this V1beta1VirtualMachinePreference. Required spec describing the preferences - :return: The spec of this V1alpha2VirtualMachinePreference. - :rtype: V1alpha2VirtualMachinePreferenceSpec + :return: The spec of this V1beta1VirtualMachinePreference. + :rtype: V1beta1VirtualMachinePreferenceSpec """ return self._spec @spec.setter def spec(self, spec): """ - Sets the spec of this V1alpha2VirtualMachinePreference. + Sets the spec of this V1beta1VirtualMachinePreference. Required spec describing the preferences - :param spec: The spec of this V1alpha2VirtualMachinePreference. - :type: V1alpha2VirtualMachinePreferenceSpec + :param spec: The spec of this V1beta1VirtualMachinePreference. + :type: V1beta1VirtualMachinePreferenceSpec """ if spec is None: raise ValueError("Invalid value for `spec`, must not be `None`") @@ -196,7 +196,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha2VirtualMachinePreference): + if not isinstance(other, V1beta1VirtualMachinePreference): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha2_virtual_machine_preference_list.py b/kubevirt/models/v1beta1_virtual_machine_preference_list.py similarity index 77% rename from kubevirt/models/v1alpha2_virtual_machine_preference_list.py rename to kubevirt/models/v1beta1_virtual_machine_preference_list.py index f3693f31..af9eb0d7 100644 --- a/kubevirt/models/v1alpha2_virtual_machine_preference_list.py +++ b/kubevirt/models/v1beta1_virtual_machine_preference_list.py @@ -16,7 +16,7 @@ import re -class V1alpha2VirtualMachinePreferenceList(object): +class V1beta1VirtualMachinePreferenceList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class V1alpha2VirtualMachinePreferenceList(object): """ swagger_types = { 'api_version': 'str', - 'items': 'list[V1alpha2VirtualMachinePreference]', + 'items': 'list[V1beta1VirtualMachinePreference]', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' } @@ -46,7 +46,7 @@ class V1alpha2VirtualMachinePreferenceList(object): def __init__(self, api_version=None, items=None, kind=None, metadata=None): """ - V1alpha2VirtualMachinePreferenceList - a model defined in Swagger + V1beta1VirtualMachinePreferenceList - a model defined in Swagger """ self._api_version = None @@ -65,10 +65,10 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): @property def api_version(self): """ - Gets the api_version of this V1alpha2VirtualMachinePreferenceList. + Gets the api_version of this V1beta1VirtualMachinePreferenceList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha2VirtualMachinePreferenceList. + :return: The api_version of this V1beta1VirtualMachinePreferenceList. :rtype: str """ return self._api_version @@ -76,10 +76,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha2VirtualMachinePreferenceList. + Sets the api_version of this V1beta1VirtualMachinePreferenceList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha2VirtualMachinePreferenceList. + :param api_version: The api_version of this V1beta1VirtualMachinePreferenceList. :type: str """ @@ -88,20 +88,20 @@ def api_version(self, api_version): @property def items(self): """ - Gets the items of this V1alpha2VirtualMachinePreferenceList. + Gets the items of this V1beta1VirtualMachinePreferenceList. - :return: The items of this V1alpha2VirtualMachinePreferenceList. - :rtype: list[V1alpha2VirtualMachinePreference] + :return: The items of this V1beta1VirtualMachinePreferenceList. + :rtype: list[V1beta1VirtualMachinePreference] """ return self._items @items.setter def items(self, items): """ - Sets the items of this V1alpha2VirtualMachinePreferenceList. + Sets the items of this V1beta1VirtualMachinePreferenceList. - :param items: The items of this V1alpha2VirtualMachinePreferenceList. - :type: list[V1alpha2VirtualMachinePreference] + :param items: The items of this V1beta1VirtualMachinePreferenceList. + :type: list[V1beta1VirtualMachinePreference] """ if items is None: raise ValueError("Invalid value for `items`, must not be `None`") @@ -111,10 +111,10 @@ def items(self, items): @property def kind(self): """ - Gets the kind of this V1alpha2VirtualMachinePreferenceList. + Gets the kind of this V1beta1VirtualMachinePreferenceList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha2VirtualMachinePreferenceList. + :return: The kind of this V1beta1VirtualMachinePreferenceList. :rtype: str """ return self._kind @@ -122,10 +122,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha2VirtualMachinePreferenceList. + Sets the kind of this V1beta1VirtualMachinePreferenceList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha2VirtualMachinePreferenceList. + :param kind: The kind of this V1beta1VirtualMachinePreferenceList. :type: str """ @@ -134,9 +134,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha2VirtualMachinePreferenceList. + Gets the metadata of this V1beta1VirtualMachinePreferenceList. - :return: The metadata of this V1alpha2VirtualMachinePreferenceList. + :return: The metadata of this V1beta1VirtualMachinePreferenceList. :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @@ -144,9 +144,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha2VirtualMachinePreferenceList. + Sets the metadata of this V1beta1VirtualMachinePreferenceList. - :param metadata: The metadata of this V1alpha2VirtualMachinePreferenceList. + :param metadata: The metadata of this V1beta1VirtualMachinePreferenceList. :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ @@ -194,7 +194,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha2VirtualMachinePreferenceList): + if not isinstance(other, V1beta1VirtualMachinePreferenceList): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha2_virtual_machine_preference_spec.py b/kubevirt/models/v1beta1_virtual_machine_preference_spec.py similarity index 67% rename from kubevirt/models/v1alpha2_virtual_machine_preference_spec.py rename to kubevirt/models/v1beta1_virtual_machine_preference_spec.py index 3cd71bfb..8ff6a091 100644 --- a/kubevirt/models/v1alpha2_virtual_machine_preference_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_preference_spec.py @@ -16,7 +16,7 @@ import re -class V1alpha2VirtualMachinePreferenceSpec(object): +class V1beta1VirtualMachinePreferenceSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,13 +31,13 @@ class V1alpha2VirtualMachinePreferenceSpec(object): and the value is json key in definition. """ swagger_types = { - 'clock': 'V1alpha2ClockPreferences', - 'cpu': 'V1alpha2CPUPreferences', - 'devices': 'V1alpha2DevicePreferences', - 'features': 'V1alpha2FeaturePreferences', - 'firmware': 'V1alpha2FirmwarePreferences', - 'machine': 'V1alpha2MachinePreferences', - 'volumes': 'V1alpha2VolumePreferences' + 'clock': 'V1beta1ClockPreferences', + 'cpu': 'V1beta1CPUPreferences', + 'devices': 'V1beta1DevicePreferences', + 'features': 'V1beta1FeaturePreferences', + 'firmware': 'V1beta1FirmwarePreferences', + 'machine': 'V1beta1MachinePreferences', + 'volumes': 'V1beta1VolumePreferences' } attribute_map = { @@ -52,7 +52,7 @@ class V1alpha2VirtualMachinePreferenceSpec(object): def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, volumes=None): """ - V1alpha2VirtualMachinePreferenceSpec - a model defined in Swagger + V1beta1VirtualMachinePreferenceSpec - a model defined in Swagger """ self._clock = None @@ -81,22 +81,22 @@ def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=N @property def clock(self): """ - Gets the clock of this V1alpha2VirtualMachinePreferenceSpec. + Gets the clock of this V1beta1VirtualMachinePreferenceSpec. Clock optionally defines preferences associated with the Clock attribute of a VirtualMachineInstance DomainSpec - :return: The clock of this V1alpha2VirtualMachinePreferenceSpec. - :rtype: V1alpha2ClockPreferences + :return: The clock of this V1beta1VirtualMachinePreferenceSpec. + :rtype: V1beta1ClockPreferences """ return self._clock @clock.setter def clock(self, clock): """ - Sets the clock of this V1alpha2VirtualMachinePreferenceSpec. + Sets the clock of this V1beta1VirtualMachinePreferenceSpec. Clock optionally defines preferences associated with the Clock attribute of a VirtualMachineInstance DomainSpec - :param clock: The clock of this V1alpha2VirtualMachinePreferenceSpec. - :type: V1alpha2ClockPreferences + :param clock: The clock of this V1beta1VirtualMachinePreferenceSpec. + :type: V1beta1ClockPreferences """ self._clock = clock @@ -104,22 +104,22 @@ def clock(self, clock): @property def cpu(self): """ - Gets the cpu of this V1alpha2VirtualMachinePreferenceSpec. + Gets the cpu of this V1beta1VirtualMachinePreferenceSpec. CPU optionally defines preferences associated with the CPU attribute of a VirtualMachineInstance DomainSpec - :return: The cpu of this V1alpha2VirtualMachinePreferenceSpec. - :rtype: V1alpha2CPUPreferences + :return: The cpu of this V1beta1VirtualMachinePreferenceSpec. + :rtype: V1beta1CPUPreferences """ return self._cpu @cpu.setter def cpu(self, cpu): """ - Sets the cpu of this V1alpha2VirtualMachinePreferenceSpec. + Sets the cpu of this V1beta1VirtualMachinePreferenceSpec. CPU optionally defines preferences associated with the CPU attribute of a VirtualMachineInstance DomainSpec - :param cpu: The cpu of this V1alpha2VirtualMachinePreferenceSpec. - :type: V1alpha2CPUPreferences + :param cpu: The cpu of this V1beta1VirtualMachinePreferenceSpec. + :type: V1beta1CPUPreferences """ self._cpu = cpu @@ -127,22 +127,22 @@ def cpu(self, cpu): @property def devices(self): """ - Gets the devices of this V1alpha2VirtualMachinePreferenceSpec. + Gets the devices of this V1beta1VirtualMachinePreferenceSpec. Devices optionally defines preferences associated with the Devices attribute of a VirtualMachineInstance DomainSpec - :return: The devices of this V1alpha2VirtualMachinePreferenceSpec. - :rtype: V1alpha2DevicePreferences + :return: The devices of this V1beta1VirtualMachinePreferenceSpec. + :rtype: V1beta1DevicePreferences """ return self._devices @devices.setter def devices(self, devices): """ - Sets the devices of this V1alpha2VirtualMachinePreferenceSpec. + Sets the devices of this V1beta1VirtualMachinePreferenceSpec. Devices optionally defines preferences associated with the Devices attribute of a VirtualMachineInstance DomainSpec - :param devices: The devices of this V1alpha2VirtualMachinePreferenceSpec. - :type: V1alpha2DevicePreferences + :param devices: The devices of this V1beta1VirtualMachinePreferenceSpec. + :type: V1beta1DevicePreferences """ self._devices = devices @@ -150,22 +150,22 @@ def devices(self, devices): @property def features(self): """ - Gets the features of this V1alpha2VirtualMachinePreferenceSpec. + Gets the features of this V1beta1VirtualMachinePreferenceSpec. Features optionally defines preferences associated with the Features attribute of a VirtualMachineInstance DomainSpec - :return: The features of this V1alpha2VirtualMachinePreferenceSpec. - :rtype: V1alpha2FeaturePreferences + :return: The features of this V1beta1VirtualMachinePreferenceSpec. + :rtype: V1beta1FeaturePreferences """ return self._features @features.setter def features(self, features): """ - Sets the features of this V1alpha2VirtualMachinePreferenceSpec. + Sets the features of this V1beta1VirtualMachinePreferenceSpec. Features optionally defines preferences associated with the Features attribute of a VirtualMachineInstance DomainSpec - :param features: The features of this V1alpha2VirtualMachinePreferenceSpec. - :type: V1alpha2FeaturePreferences + :param features: The features of this V1beta1VirtualMachinePreferenceSpec. + :type: V1beta1FeaturePreferences """ self._features = features @@ -173,22 +173,22 @@ def features(self, features): @property def firmware(self): """ - Gets the firmware of this V1alpha2VirtualMachinePreferenceSpec. + Gets the firmware of this V1beta1VirtualMachinePreferenceSpec. Firmware optionally defines preferences associated with the Firmware attribute of a VirtualMachineInstance DomainSpec - :return: The firmware of this V1alpha2VirtualMachinePreferenceSpec. - :rtype: V1alpha2FirmwarePreferences + :return: The firmware of this V1beta1VirtualMachinePreferenceSpec. + :rtype: V1beta1FirmwarePreferences """ return self._firmware @firmware.setter def firmware(self, firmware): """ - Sets the firmware of this V1alpha2VirtualMachinePreferenceSpec. + Sets the firmware of this V1beta1VirtualMachinePreferenceSpec. Firmware optionally defines preferences associated with the Firmware attribute of a VirtualMachineInstance DomainSpec - :param firmware: The firmware of this V1alpha2VirtualMachinePreferenceSpec. - :type: V1alpha2FirmwarePreferences + :param firmware: The firmware of this V1beta1VirtualMachinePreferenceSpec. + :type: V1beta1FirmwarePreferences """ self._firmware = firmware @@ -196,22 +196,22 @@ def firmware(self, firmware): @property def machine(self): """ - Gets the machine of this V1alpha2VirtualMachinePreferenceSpec. + Gets the machine of this V1beta1VirtualMachinePreferenceSpec. Machine optionally defines preferences associated with the Machine attribute of a VirtualMachineInstance DomainSpec - :return: The machine of this V1alpha2VirtualMachinePreferenceSpec. - :rtype: V1alpha2MachinePreferences + :return: The machine of this V1beta1VirtualMachinePreferenceSpec. + :rtype: V1beta1MachinePreferences """ return self._machine @machine.setter def machine(self, machine): """ - Sets the machine of this V1alpha2VirtualMachinePreferenceSpec. + Sets the machine of this V1beta1VirtualMachinePreferenceSpec. Machine optionally defines preferences associated with the Machine attribute of a VirtualMachineInstance DomainSpec - :param machine: The machine of this V1alpha2VirtualMachinePreferenceSpec. - :type: V1alpha2MachinePreferences + :param machine: The machine of this V1beta1VirtualMachinePreferenceSpec. + :type: V1beta1MachinePreferences """ self._machine = machine @@ -219,22 +219,22 @@ def machine(self, machine): @property def volumes(self): """ - Gets the volumes of this V1alpha2VirtualMachinePreferenceSpec. + Gets the volumes of this V1beta1VirtualMachinePreferenceSpec. Volumes optionally defines preferences associated with the Volumes attribute of a VirtualMachineInstace DomainSpec - :return: The volumes of this V1alpha2VirtualMachinePreferenceSpec. - :rtype: V1alpha2VolumePreferences + :return: The volumes of this V1beta1VirtualMachinePreferenceSpec. + :rtype: V1beta1VolumePreferences """ return self._volumes @volumes.setter def volumes(self, volumes): """ - Sets the volumes of this V1alpha2VirtualMachinePreferenceSpec. + Sets the volumes of this V1beta1VirtualMachinePreferenceSpec. Volumes optionally defines preferences associated with the Volumes attribute of a VirtualMachineInstace DomainSpec - :param volumes: The volumes of this V1alpha2VirtualMachinePreferenceSpec. - :type: V1alpha2VolumePreferences + :param volumes: The volumes of this V1beta1VirtualMachinePreferenceSpec. + :type: V1beta1VolumePreferences """ self._volumes = volumes @@ -281,7 +281,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha2VirtualMachinePreferenceSpec): + if not isinstance(other, V1beta1VirtualMachinePreferenceSpec): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha2_volume_preferences.py b/kubevirt/models/v1beta1_volume_preferences.py similarity index 87% rename from kubevirt/models/v1alpha2_volume_preferences.py rename to kubevirt/models/v1beta1_volume_preferences.py index d816713c..d3617bc2 100644 --- a/kubevirt/models/v1alpha2_volume_preferences.py +++ b/kubevirt/models/v1beta1_volume_preferences.py @@ -16,7 +16,7 @@ import re -class V1alpha2VolumePreferences(object): +class V1beta1VolumePreferences(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,7 +40,7 @@ class V1alpha2VolumePreferences(object): def __init__(self, preferred_storage_class_name=None): """ - V1alpha2VolumePreferences - a model defined in Swagger + V1beta1VolumePreferences - a model defined in Swagger """ self._preferred_storage_class_name = None @@ -51,10 +51,10 @@ def __init__(self, preferred_storage_class_name=None): @property def preferred_storage_class_name(self): """ - Gets the preferred_storage_class_name of this V1alpha2VolumePreferences. + Gets the preferred_storage_class_name of this V1beta1VolumePreferences. PreffereedStorageClassName optionally defines the preferred storageClass - :return: The preferred_storage_class_name of this V1alpha2VolumePreferences. + :return: The preferred_storage_class_name of this V1beta1VolumePreferences. :rtype: str """ return self._preferred_storage_class_name @@ -62,10 +62,10 @@ def preferred_storage_class_name(self): @preferred_storage_class_name.setter def preferred_storage_class_name(self, preferred_storage_class_name): """ - Sets the preferred_storage_class_name of this V1alpha2VolumePreferences. + Sets the preferred_storage_class_name of this V1beta1VolumePreferences. PreffereedStorageClassName optionally defines the preferred storageClass - :param preferred_storage_class_name: The preferred_storage_class_name of this V1alpha2VolumePreferences. + :param preferred_storage_class_name: The preferred_storage_class_name of this V1beta1VolumePreferences. :type: str """ @@ -113,7 +113,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha2VolumePreferences): + if not isinstance(other, V1beta1VolumePreferences): return False return self.__dict__ == other.__dict__ diff --git a/setup.py b/setup.py index f3c9e4d2..30d00847 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-74-gcbe6f6627" +VERSION = "v1.0.0-beta.0-105-g9d68c4bdf" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 27025507..99e8a7c9 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-74-gcbe6f6627" +"packageVersion": "v1.0.0-beta.0-105-g9d68c4bdf" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 370a7f5f..61bb268e 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -535,9 +535,9 @@ def test_get_api_resources_export_kubevirt_io_v1alpha1(self): """ pass - def test_get_api_resources_instancetype_kubevirt_io_v1alpha2(self): + def test_get_api_resources_instancetype_kubevirt_io_v1beta1(self): """ - Test case for get_api_resources_instancetype_kubevirt_io_v1alpha2 + Test case for get_api_resources_instancetype_kubevirt_io_v1beta1 """ diff --git a/test/test_v1alpha2_feature_preferences.py b/test/test_v1alpha2_feature_preferences.py deleted file mode 100644 index f072f676..00000000 --- a/test/test_v1alpha2_feature_preferences.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha2_feature_preferences import V1alpha2FeaturePreferences - - -class TestV1alpha2FeaturePreferences(unittest.TestCase): - """ V1alpha2FeaturePreferences unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha2FeaturePreferences(self): - """ - Test V1alpha2FeaturePreferences - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha2_feature_preferences.V1alpha2FeaturePreferences() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha2_firmware_preferences.py b/test/test_v1alpha2_firmware_preferences.py deleted file mode 100644 index b6b560af..00000000 --- a/test/test_v1alpha2_firmware_preferences.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha2_firmware_preferences import V1alpha2FirmwarePreferences - - -class TestV1alpha2FirmwarePreferences(unittest.TestCase): - """ V1alpha2FirmwarePreferences unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha2FirmwarePreferences(self): - """ - Test V1alpha2FirmwarePreferences - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha2_firmware_preferences.V1alpha2FirmwarePreferences() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha2_machine_preferences.py b/test/test_v1alpha2_machine_preferences.py deleted file mode 100644 index ef00a913..00000000 --- a/test/test_v1alpha2_machine_preferences.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha2_machine_preferences import V1alpha2MachinePreferences - - -class TestV1alpha2MachinePreferences(unittest.TestCase): - """ V1alpha2MachinePreferences unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha2MachinePreferences(self): - """ - Test V1alpha2MachinePreferences - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha2_machine_preferences.V1alpha2MachinePreferences() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha2_memory_instancetype.py b/test/test_v1alpha2_memory_instancetype.py deleted file mode 100644 index 69c5cd57..00000000 --- a/test/test_v1alpha2_memory_instancetype.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha2_memory_instancetype import V1alpha2MemoryInstancetype - - -class TestV1alpha2MemoryInstancetype(unittest.TestCase): - """ V1alpha2MemoryInstancetype unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha2MemoryInstancetype(self): - """ - Test V1alpha2MemoryInstancetype - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha2_memory_instancetype.V1alpha2MemoryInstancetype() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha2_virtual_machine_cluster_instancetype.py b/test/test_v1alpha2_virtual_machine_cluster_instancetype.py deleted file mode 100644 index c1340098..00000000 --- a/test/test_v1alpha2_virtual_machine_cluster_instancetype.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha2_virtual_machine_cluster_instancetype import V1alpha2VirtualMachineClusterInstancetype - - -class TestV1alpha2VirtualMachineClusterInstancetype(unittest.TestCase): - """ V1alpha2VirtualMachineClusterInstancetype unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha2VirtualMachineClusterInstancetype(self): - """ - Test V1alpha2VirtualMachineClusterInstancetype - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha2_virtual_machine_cluster_instancetype.V1alpha2VirtualMachineClusterInstancetype() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha2_virtual_machine_cluster_instancetype_list.py b/test/test_v1alpha2_virtual_machine_cluster_instancetype_list.py deleted file mode 100644 index 7f076689..00000000 --- a/test/test_v1alpha2_virtual_machine_cluster_instancetype_list.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha2_virtual_machine_cluster_instancetype_list import V1alpha2VirtualMachineClusterInstancetypeList - - -class TestV1alpha2VirtualMachineClusterInstancetypeList(unittest.TestCase): - """ V1alpha2VirtualMachineClusterInstancetypeList unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha2VirtualMachineClusterInstancetypeList(self): - """ - Test V1alpha2VirtualMachineClusterInstancetypeList - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha2_virtual_machine_cluster_instancetype_list.V1alpha2VirtualMachineClusterInstancetypeList() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha2_virtual_machine_cluster_preference.py b/test/test_v1alpha2_virtual_machine_cluster_preference.py deleted file mode 100644 index 2c1076f4..00000000 --- a/test/test_v1alpha2_virtual_machine_cluster_preference.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha2_virtual_machine_cluster_preference import V1alpha2VirtualMachineClusterPreference - - -class TestV1alpha2VirtualMachineClusterPreference(unittest.TestCase): - """ V1alpha2VirtualMachineClusterPreference unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha2VirtualMachineClusterPreference(self): - """ - Test V1alpha2VirtualMachineClusterPreference - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha2_virtual_machine_cluster_preference.V1alpha2VirtualMachineClusterPreference() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha2_virtual_machine_cluster_preference_list.py b/test/test_v1alpha2_virtual_machine_cluster_preference_list.py deleted file mode 100644 index 5e069762..00000000 --- a/test/test_v1alpha2_virtual_machine_cluster_preference_list.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha2_virtual_machine_cluster_preference_list import V1alpha2VirtualMachineClusterPreferenceList - - -class TestV1alpha2VirtualMachineClusterPreferenceList(unittest.TestCase): - """ V1alpha2VirtualMachineClusterPreferenceList unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha2VirtualMachineClusterPreferenceList(self): - """ - Test V1alpha2VirtualMachineClusterPreferenceList - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha2_virtual_machine_cluster_preference_list.V1alpha2VirtualMachineClusterPreferenceList() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha2_virtual_machine_instancetype.py b/test/test_v1alpha2_virtual_machine_instancetype.py deleted file mode 100644 index 0b7e7d2b..00000000 --- a/test/test_v1alpha2_virtual_machine_instancetype.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha2_virtual_machine_instancetype import V1alpha2VirtualMachineInstancetype - - -class TestV1alpha2VirtualMachineInstancetype(unittest.TestCase): - """ V1alpha2VirtualMachineInstancetype unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha2VirtualMachineInstancetype(self): - """ - Test V1alpha2VirtualMachineInstancetype - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha2_virtual_machine_instancetype.V1alpha2VirtualMachineInstancetype() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha2_virtual_machine_instancetype_spec.py b/test/test_v1alpha2_virtual_machine_instancetype_spec.py deleted file mode 100644 index f3973464..00000000 --- a/test/test_v1alpha2_virtual_machine_instancetype_spec.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha2_virtual_machine_instancetype_spec import V1alpha2VirtualMachineInstancetypeSpec - - -class TestV1alpha2VirtualMachineInstancetypeSpec(unittest.TestCase): - """ V1alpha2VirtualMachineInstancetypeSpec unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha2VirtualMachineInstancetypeSpec(self): - """ - Test V1alpha2VirtualMachineInstancetypeSpec - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha2_virtual_machine_instancetype_spec.V1alpha2VirtualMachineInstancetypeSpec() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha2_virtual_machine_preference.py b/test/test_v1alpha2_virtual_machine_preference.py deleted file mode 100644 index 9da1e6c3..00000000 --- a/test/test_v1alpha2_virtual_machine_preference.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha2_virtual_machine_preference import V1alpha2VirtualMachinePreference - - -class TestV1alpha2VirtualMachinePreference(unittest.TestCase): - """ V1alpha2VirtualMachinePreference unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha2VirtualMachinePreference(self): - """ - Test V1alpha2VirtualMachinePreference - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha2_virtual_machine_preference.V1alpha2VirtualMachinePreference() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha2_virtual_machine_preference_list.py b/test/test_v1alpha2_virtual_machine_preference_list.py deleted file mode 100644 index 7488fe06..00000000 --- a/test/test_v1alpha2_virtual_machine_preference_list.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha2_virtual_machine_preference_list import V1alpha2VirtualMachinePreferenceList - - -class TestV1alpha2VirtualMachinePreferenceList(unittest.TestCase): - """ V1alpha2VirtualMachinePreferenceList unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha2VirtualMachinePreferenceList(self): - """ - Test V1alpha2VirtualMachinePreferenceList - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha2_virtual_machine_preference_list.V1alpha2VirtualMachinePreferenceList() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha2_virtual_machine_preference_spec.py b/test/test_v1alpha2_virtual_machine_preference_spec.py deleted file mode 100644 index eb62eb3d..00000000 --- a/test/test_v1alpha2_virtual_machine_preference_spec.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha2_virtual_machine_preference_spec import V1alpha2VirtualMachinePreferenceSpec - - -class TestV1alpha2VirtualMachinePreferenceSpec(unittest.TestCase): - """ V1alpha2VirtualMachinePreferenceSpec unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha2VirtualMachinePreferenceSpec(self): - """ - Test V1alpha2VirtualMachinePreferenceSpec - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha2_virtual_machine_preference_spec.V1alpha2VirtualMachinePreferenceSpec() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha2_volume_preferences.py b/test/test_v1alpha2_volume_preferences.py deleted file mode 100644 index ef035366..00000000 --- a/test/test_v1alpha2_volume_preferences.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha2_volume_preferences import V1alpha2VolumePreferences - - -class TestV1alpha2VolumePreferences(unittest.TestCase): - """ V1alpha2VolumePreferences unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha2VolumePreferences(self): - """ - Test V1alpha2VolumePreferences - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha2_volume_preferences.V1alpha2VolumePreferences() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha2_cpu_instancetype.py b/test/test_v1beta1_clock_preferences.py similarity index 63% rename from test/test_v1alpha2_cpu_instancetype.py rename to test/test_v1beta1_clock_preferences.py index 2b5f54e1..3d85eee5 100644 --- a/test/test_v1alpha2_cpu_instancetype.py +++ b/test/test_v1beta1_clock_preferences.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha2_cpu_instancetype import V1alpha2CPUInstancetype +from kubevirt.models.v1beta1_clock_preferences import V1beta1ClockPreferences -class TestV1alpha2CPUInstancetype(unittest.TestCase): - """ V1alpha2CPUInstancetype unit test stubs """ +class TestV1beta1ClockPreferences(unittest.TestCase): + """ V1beta1ClockPreferences unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha2CPUInstancetype(self): + def testV1beta1ClockPreferences(self): """ - Test V1alpha2CPUInstancetype + Test V1beta1ClockPreferences """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha2_cpu_instancetype.V1alpha2CPUInstancetype() + #model = kubevirt.models.v1beta1_clock_preferences.V1beta1ClockPreferences() pass diff --git a/test/test_v1alpha2_cpu_preferences.py b/test/test_v1beta1_cpu_instancetype.py similarity index 64% rename from test/test_v1alpha2_cpu_preferences.py rename to test/test_v1beta1_cpu_instancetype.py index cb7021f7..65d9775c 100644 --- a/test/test_v1alpha2_cpu_preferences.py +++ b/test/test_v1beta1_cpu_instancetype.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha2_cpu_preferences import V1alpha2CPUPreferences +from kubevirt.models.v1beta1_cpu_instancetype import V1beta1CPUInstancetype -class TestV1alpha2CPUPreferences(unittest.TestCase): - """ V1alpha2CPUPreferences unit test stubs """ +class TestV1beta1CPUInstancetype(unittest.TestCase): + """ V1beta1CPUInstancetype unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha2CPUPreferences(self): + def testV1beta1CPUInstancetype(self): """ - Test V1alpha2CPUPreferences + Test V1beta1CPUInstancetype """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha2_cpu_preferences.V1alpha2CPUPreferences() + #model = kubevirt.models.v1beta1_cpu_instancetype.V1beta1CPUInstancetype() pass diff --git a/test/test_v1alpha2_clock_preferences.py b/test/test_v1beta1_cpu_preferences.py similarity index 63% rename from test/test_v1alpha2_clock_preferences.py rename to test/test_v1beta1_cpu_preferences.py index 38f84c8c..f6d0ce31 100644 --- a/test/test_v1alpha2_clock_preferences.py +++ b/test/test_v1beta1_cpu_preferences.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha2_clock_preferences import V1alpha2ClockPreferences +from kubevirt.models.v1beta1_cpu_preferences import V1beta1CPUPreferences -class TestV1alpha2ClockPreferences(unittest.TestCase): - """ V1alpha2ClockPreferences unit test stubs """ +class TestV1beta1CPUPreferences(unittest.TestCase): + """ V1beta1CPUPreferences unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha2ClockPreferences(self): + def testV1beta1CPUPreferences(self): """ - Test V1alpha2ClockPreferences + Test V1beta1CPUPreferences """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha2_clock_preferences.V1alpha2ClockPreferences() + #model = kubevirt.models.v1beta1_cpu_preferences.V1beta1CPUPreferences() pass diff --git a/test/test_v1alpha2_device_preferences.py b/test/test_v1beta1_device_preferences.py similarity index 62% rename from test/test_v1alpha2_device_preferences.py rename to test/test_v1beta1_device_preferences.py index f9302357..6861e638 100644 --- a/test/test_v1alpha2_device_preferences.py +++ b/test/test_v1beta1_device_preferences.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha2_device_preferences import V1alpha2DevicePreferences +from kubevirt.models.v1beta1_device_preferences import V1beta1DevicePreferences -class TestV1alpha2DevicePreferences(unittest.TestCase): - """ V1alpha2DevicePreferences unit test stubs """ +class TestV1beta1DevicePreferences(unittest.TestCase): + """ V1beta1DevicePreferences unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha2DevicePreferences(self): + def testV1beta1DevicePreferences(self): """ - Test V1alpha2DevicePreferences + Test V1beta1DevicePreferences """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha2_device_preferences.V1alpha2DevicePreferences() + #model = kubevirt.models.v1beta1_device_preferences.V1beta1DevicePreferences() pass diff --git a/test/test_v1beta1_feature_preferences.py b/test/test_v1beta1_feature_preferences.py new file mode 100644 index 00000000..0279327b --- /dev/null +++ b/test/test_v1beta1_feature_preferences.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_feature_preferences import V1beta1FeaturePreferences + + +class TestV1beta1FeaturePreferences(unittest.TestCase): + """ V1beta1FeaturePreferences unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1FeaturePreferences(self): + """ + Test V1beta1FeaturePreferences + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_feature_preferences.V1beta1FeaturePreferences() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_firmware_preferences.py b/test/test_v1beta1_firmware_preferences.py new file mode 100644 index 00000000..2cf319e2 --- /dev/null +++ b/test/test_v1beta1_firmware_preferences.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_firmware_preferences import V1beta1FirmwarePreferences + + +class TestV1beta1FirmwarePreferences(unittest.TestCase): + """ V1beta1FirmwarePreferences unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1FirmwarePreferences(self): + """ + Test V1beta1FirmwarePreferences + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_firmware_preferences.V1beta1FirmwarePreferences() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_machine_preferences.py b/test/test_v1beta1_machine_preferences.py new file mode 100644 index 00000000..dbeb41e5 --- /dev/null +++ b/test/test_v1beta1_machine_preferences.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_machine_preferences import V1beta1MachinePreferences + + +class TestV1beta1MachinePreferences(unittest.TestCase): + """ V1beta1MachinePreferences unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1MachinePreferences(self): + """ + Test V1beta1MachinePreferences + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_machine_preferences.V1beta1MachinePreferences() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_memory_instancetype.py b/test/test_v1beta1_memory_instancetype.py new file mode 100644 index 00000000..147c2fc7 --- /dev/null +++ b/test/test_v1beta1_memory_instancetype.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_memory_instancetype import V1beta1MemoryInstancetype + + +class TestV1beta1MemoryInstancetype(unittest.TestCase): + """ V1beta1MemoryInstancetype unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1MemoryInstancetype(self): + """ + Test V1beta1MemoryInstancetype + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_memory_instancetype.V1beta1MemoryInstancetype() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_cluster_instancetype.py b/test/test_v1beta1_virtual_machine_cluster_instancetype.py new file mode 100644 index 00000000..a3686c80 --- /dev/null +++ b/test/test_v1beta1_virtual_machine_cluster_instancetype.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_cluster_instancetype import V1beta1VirtualMachineClusterInstancetype + + +class TestV1beta1VirtualMachineClusterInstancetype(unittest.TestCase): + """ V1beta1VirtualMachineClusterInstancetype unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineClusterInstancetype(self): + """ + Test V1beta1VirtualMachineClusterInstancetype + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_cluster_instancetype.V1beta1VirtualMachineClusterInstancetype() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_cluster_instancetype_list.py b/test/test_v1beta1_virtual_machine_cluster_instancetype_list.py new file mode 100644 index 00000000..0c3db5f6 --- /dev/null +++ b/test/test_v1beta1_virtual_machine_cluster_instancetype_list.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_cluster_instancetype_list import V1beta1VirtualMachineClusterInstancetypeList + + +class TestV1beta1VirtualMachineClusterInstancetypeList(unittest.TestCase): + """ V1beta1VirtualMachineClusterInstancetypeList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineClusterInstancetypeList(self): + """ + Test V1beta1VirtualMachineClusterInstancetypeList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_cluster_instancetype_list.V1beta1VirtualMachineClusterInstancetypeList() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha2_virtual_machine_instancetype_list.py b/test/test_v1beta1_virtual_machine_cluster_preference.py similarity index 57% rename from test/test_v1alpha2_virtual_machine_instancetype_list.py rename to test/test_v1beta1_virtual_machine_cluster_preference.py index 7e128325..423ea403 100644 --- a/test/test_v1alpha2_virtual_machine_instancetype_list.py +++ b/test/test_v1beta1_virtual_machine_cluster_preference.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha2_virtual_machine_instancetype_list import V1alpha2VirtualMachineInstancetypeList +from kubevirt.models.v1beta1_virtual_machine_cluster_preference import V1beta1VirtualMachineClusterPreference -class TestV1alpha2VirtualMachineInstancetypeList(unittest.TestCase): - """ V1alpha2VirtualMachineInstancetypeList unit test stubs """ +class TestV1beta1VirtualMachineClusterPreference(unittest.TestCase): + """ V1beta1VirtualMachineClusterPreference unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha2VirtualMachineInstancetypeList(self): + def testV1beta1VirtualMachineClusterPreference(self): """ - Test V1alpha2VirtualMachineInstancetypeList + Test V1beta1VirtualMachineClusterPreference """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha2_virtual_machine_instancetype_list.V1alpha2VirtualMachineInstancetypeList() + #model = kubevirt.models.v1beta1_virtual_machine_cluster_preference.V1beta1VirtualMachineClusterPreference() pass diff --git a/test/test_v1beta1_virtual_machine_cluster_preference_list.py b/test/test_v1beta1_virtual_machine_cluster_preference_list.py new file mode 100644 index 00000000..62f2d756 --- /dev/null +++ b/test/test_v1beta1_virtual_machine_cluster_preference_list.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_cluster_preference_list import V1beta1VirtualMachineClusterPreferenceList + + +class TestV1beta1VirtualMachineClusterPreferenceList(unittest.TestCase): + """ V1beta1VirtualMachineClusterPreferenceList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineClusterPreferenceList(self): + """ + Test V1beta1VirtualMachineClusterPreferenceList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_cluster_preference_list.V1beta1VirtualMachineClusterPreferenceList() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_instancetype.py b/test/test_v1beta1_virtual_machine_instancetype.py new file mode 100644 index 00000000..e373e4ed --- /dev/null +++ b/test/test_v1beta1_virtual_machine_instancetype.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_instancetype import V1beta1VirtualMachineInstancetype + + +class TestV1beta1VirtualMachineInstancetype(unittest.TestCase): + """ V1beta1VirtualMachineInstancetype unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineInstancetype(self): + """ + Test V1beta1VirtualMachineInstancetype + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_instancetype.V1beta1VirtualMachineInstancetype() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_instancetype_list.py b/test/test_v1beta1_virtual_machine_instancetype_list.py new file mode 100644 index 00000000..f53a97ac --- /dev/null +++ b/test/test_v1beta1_virtual_machine_instancetype_list.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_instancetype_list import V1beta1VirtualMachineInstancetypeList + + +class TestV1beta1VirtualMachineInstancetypeList(unittest.TestCase): + """ V1beta1VirtualMachineInstancetypeList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineInstancetypeList(self): + """ + Test V1beta1VirtualMachineInstancetypeList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_instancetype_list.V1beta1VirtualMachineInstancetypeList() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_instancetype_spec.py b/test/test_v1beta1_virtual_machine_instancetype_spec.py new file mode 100644 index 00000000..29bfc807 --- /dev/null +++ b/test/test_v1beta1_virtual_machine_instancetype_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_instancetype_spec import V1beta1VirtualMachineInstancetypeSpec + + +class TestV1beta1VirtualMachineInstancetypeSpec(unittest.TestCase): + """ V1beta1VirtualMachineInstancetypeSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineInstancetypeSpec(self): + """ + Test V1beta1VirtualMachineInstancetypeSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_instancetype_spec.V1beta1VirtualMachineInstancetypeSpec() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_preference.py b/test/test_v1beta1_virtual_machine_preference.py new file mode 100644 index 00000000..02ceced5 --- /dev/null +++ b/test/test_v1beta1_virtual_machine_preference.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_preference import V1beta1VirtualMachinePreference + + +class TestV1beta1VirtualMachinePreference(unittest.TestCase): + """ V1beta1VirtualMachinePreference unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachinePreference(self): + """ + Test V1beta1VirtualMachinePreference + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_preference.V1beta1VirtualMachinePreference() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_preference_list.py b/test/test_v1beta1_virtual_machine_preference_list.py new file mode 100644 index 00000000..89f5006a --- /dev/null +++ b/test/test_v1beta1_virtual_machine_preference_list.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_preference_list import V1beta1VirtualMachinePreferenceList + + +class TestV1beta1VirtualMachinePreferenceList(unittest.TestCase): + """ V1beta1VirtualMachinePreferenceList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachinePreferenceList(self): + """ + Test V1beta1VirtualMachinePreferenceList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_preference_list.V1beta1VirtualMachinePreferenceList() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_preference_spec.py b/test/test_v1beta1_virtual_machine_preference_spec.py new file mode 100644 index 00000000..40ab5a46 --- /dev/null +++ b/test/test_v1beta1_virtual_machine_preference_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_preference_spec import V1beta1VirtualMachinePreferenceSpec + + +class TestV1beta1VirtualMachinePreferenceSpec(unittest.TestCase): + """ V1beta1VirtualMachinePreferenceSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachinePreferenceSpec(self): + """ + Test V1beta1VirtualMachinePreferenceSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_preference_spec.V1beta1VirtualMachinePreferenceSpec() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_volume_preferences.py b/test/test_v1beta1_volume_preferences.py new file mode 100644 index 00000000..6ab451d7 --- /dev/null +++ b/test/test_v1beta1_volume_preferences.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_volume_preferences import V1beta1VolumePreferences + + +class TestV1beta1VolumePreferences(unittest.TestCase): + """ V1beta1VolumePreferences unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VolumePreferences(self): + """ + Test V1beta1VolumePreferences + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_volume_preferences.V1beta1VolumePreferences() + pass + + +if __name__ == '__main__': + unittest.main() From 55f04b8b4d7670b94a79ab6d706237321464b68a Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 31 May 2023 06:24:10 +0000 Subject: [PATCH 332/521] Client Python update by KubeVirt Prow build 1663783556016508928 --- README.md | 3 +- docs/V1KSMConfiguration.md | 10 ++ docs/V1KubeVirtConfiguration.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_ksm_configuration.py | 125 ++++++++++++++++++ kubevirt/models/v1_kube_virt_configuration.py | 30 ++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_ksm_configuration.py | 44 ++++++ 14 files changed, 221 insertions(+), 7 deletions(-) create mode 100644 docs/V1KSMConfiguration.md create mode 100644 kubevirt/models/v1_ksm_configuration.py create mode 100644 test/test_v1_ksm_configuration.py diff --git a/README.md b/README.md index 385e13ac..b135a949 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-105-g9d68c4bdf +- Package version: v1.0.0-beta.0-117-g4ea2858db - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -466,6 +466,7 @@ Class | Method | HTTP request | Description - [V1InterfacePasst](docs/V1InterfacePasst.md) - [V1InterfaceSRIOV](docs/V1InterfaceSRIOV.md) - [V1InterfaceSlirp](docs/V1InterfaceSlirp.md) + - [V1KSMConfiguration](docs/V1KSMConfiguration.md) - [V1KVMTimer](docs/V1KVMTimer.md) - [V1KernelBoot](docs/V1KernelBoot.md) - [V1KernelBootContainer](docs/V1KernelBootContainer.md) diff --git a/docs/V1KSMConfiguration.md b/docs/V1KSMConfiguration.md new file mode 100644 index 00000000..7e43bb1c --- /dev/null +++ b/docs/V1KSMConfiguration.md @@ -0,0 +1,10 @@ +# V1KSMConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**node_label_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | NodeLabelSelector is a selector that filters in which nodes the KSM will be enabled. Empty NodeLabelSelector will enable ksm for every node. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index e1c9a963..36d931d9 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **eviction_strategy** | **str** | EvictionStrategy defines at the cluster level if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain. If the VirtualMachineInstance specific field is set it overrides the cluster level one. | [optional] **handler_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] **image_pull_policy** | **str** | Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present | [optional] +**ksm_configuration** | [**V1KSMConfiguration**](V1KSMConfiguration.md) | KSMConfiguration holds the information regarding the enabling the KSM in the nodes (if available). | [optional] **machine_type** | **str** | | [optional] **mediated_devices_configuration** | [**V1MediatedDevicesConfiguration**](V1MediatedDevicesConfiguration.md) | | [optional] **mem_balloon_stats_period** | **int** | | [optional] diff --git a/git_push.sh b/git_push.sh index 88ae1969..5cfdde25 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-105-g9d68c4bdf" + release_note="Auto-generated client v1.0.0-beta.0-117-g4ea2858db" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index d2171cc5..d7767999 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -420,6 +420,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_interface_slirp.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface_slirp.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InterfaceSlirp.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_ksm_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_ksm_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KSMConfiguration.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_kvm_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kvm_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KVMTimer.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index ff3811fb..e3bc07e2 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -147,6 +147,7 @@ from .models.v1_interface_passt import V1InterfacePasst from .models.v1_interface_sriov import V1InterfaceSRIOV from .models.v1_interface_slirp import V1InterfaceSlirp +from .models.v1_ksm_configuration import V1KSMConfiguration from .models.v1_kvm_timer import V1KVMTimer from .models.v1_kernel_boot import V1KernelBoot from .models.v1_kernel_boot_container import V1KernelBootContainer diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index c509538e..5429a642 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-105-g9d68c4bdf/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-117-g4ea2858db/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index b29447bf..86f448da 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-105-g9d68c4bdf".\ + "SDK Package Version: v1.0.0-beta.0-117-g4ea2858db".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index cebfa661..4168e311 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -147,6 +147,7 @@ from .v1_interface_passt import V1InterfacePasst from .v1_interface_sriov import V1InterfaceSRIOV from .v1_interface_slirp import V1InterfaceSlirp +from .v1_ksm_configuration import V1KSMConfiguration from .v1_kvm_timer import V1KVMTimer from .v1_kernel_boot import V1KernelBoot from .v1_kernel_boot_container import V1KernelBootContainer diff --git a/kubevirt/models/v1_ksm_configuration.py b/kubevirt/models/v1_ksm_configuration.py new file mode 100644 index 00000000..33b62535 --- /dev/null +++ b/kubevirt/models/v1_ksm_configuration.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1KSMConfiguration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'node_label_selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector' + } + + attribute_map = { + 'node_label_selector': 'nodeLabelSelector' + } + + def __init__(self, node_label_selector=None): + """ + V1KSMConfiguration - a model defined in Swagger + """ + + self._node_label_selector = None + + if node_label_selector is not None: + self.node_label_selector = node_label_selector + + @property + def node_label_selector(self): + """ + Gets the node_label_selector of this V1KSMConfiguration. + NodeLabelSelector is a selector that filters in which nodes the KSM will be enabled. Empty NodeLabelSelector will enable ksm for every node. + + :return: The node_label_selector of this V1KSMConfiguration. + :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + return self._node_label_selector + + @node_label_selector.setter + def node_label_selector(self, node_label_selector): + """ + Sets the node_label_selector of this V1KSMConfiguration. + NodeLabelSelector is a selector that filters in which nodes the KSM will be enabled. Empty NodeLabelSelector will enable ksm for every node. + + :param node_label_selector: The node_label_selector of this V1KSMConfiguration. + :type: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + + self._node_label_selector = node_label_selector + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1KSMConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index abd78124..0d0beb48 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -43,6 +43,7 @@ class V1KubeVirtConfiguration(object): 'eviction_strategy': 'str', 'handler_configuration': 'V1ReloadableComponentConfiguration', 'image_pull_policy': 'str', + 'ksm_configuration': 'V1KSMConfiguration', 'machine_type': 'str', 'mediated_devices_configuration': 'V1MediatedDevicesConfiguration', 'mem_balloon_stats_period': 'int', @@ -77,6 +78,7 @@ class V1KubeVirtConfiguration(object): 'eviction_strategy': 'evictionStrategy', 'handler_configuration': 'handlerConfiguration', 'image_pull_policy': 'imagePullPolicy', + 'ksm_configuration': 'ksmConfiguration', 'machine_type': 'machineType', 'mediated_devices_configuration': 'mediatedDevicesConfiguration', 'mem_balloon_stats_period': 'memBalloonStatsPeriod', @@ -98,7 +100,7 @@ class V1KubeVirtConfiguration(object): 'webhook_configuration': 'webhookConfiguration' } - def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, virtual_machine_options=None, vm_state_storage_class=None, webhook_configuration=None): + def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, ksm_configuration=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, virtual_machine_options=None, vm_state_storage_class=None, webhook_configuration=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ @@ -115,6 +117,7 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self._eviction_strategy = None self._handler_configuration = None self._image_pull_policy = None + self._ksm_configuration = None self._machine_type = None self._mediated_devices_configuration = None self._mem_balloon_stats_period = None @@ -159,6 +162,8 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self.handler_configuration = handler_configuration if image_pull_policy is not None: self.image_pull_policy = image_pull_policy + if ksm_configuration is not None: + self.ksm_configuration = ksm_configuration if machine_type is not None: self.machine_type = machine_type if mediated_devices_configuration is not None: @@ -462,6 +467,29 @@ def image_pull_policy(self, image_pull_policy): self._image_pull_policy = image_pull_policy + @property + def ksm_configuration(self): + """ + Gets the ksm_configuration of this V1KubeVirtConfiguration. + KSMConfiguration holds the information regarding the enabling the KSM in the nodes (if available). + + :return: The ksm_configuration of this V1KubeVirtConfiguration. + :rtype: V1KSMConfiguration + """ + return self._ksm_configuration + + @ksm_configuration.setter + def ksm_configuration(self, ksm_configuration): + """ + Sets the ksm_configuration of this V1KubeVirtConfiguration. + KSMConfiguration holds the information regarding the enabling the KSM in the nodes (if available). + + :param ksm_configuration: The ksm_configuration of this V1KubeVirtConfiguration. + :type: V1KSMConfiguration + """ + + self._ksm_configuration = ksm_configuration + @property def machine_type(self): """ diff --git a/setup.py b/setup.py index 30d00847..18b5803c 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-105-g9d68c4bdf" +VERSION = "v1.0.0-beta.0-117-g4ea2858db" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 99e8a7c9..875a36e9 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-105-g9d68c4bdf" +"packageVersion": "v1.0.0-beta.0-117-g4ea2858db" } diff --git a/test/test_v1_ksm_configuration.py b/test/test_v1_ksm_configuration.py new file mode 100644 index 00000000..eeacd0ea --- /dev/null +++ b/test/test_v1_ksm_configuration.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_ksm_configuration import V1KSMConfiguration + + +class TestV1KSMConfiguration(unittest.TestCase): + """ V1KSMConfiguration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1KSMConfiguration(self): + """ + Test V1KSMConfiguration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_ksm_configuration.V1KSMConfiguration() + pass + + +if __name__ == '__main__': + unittest.main() From 7212c386ecd8d9f9502d45c313ba520b361ac50c Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 31 May 2023 06:25:26 +0000 Subject: [PATCH 333/521] Client Python update by KubeVirt Prow build 1663783528761921536 --- README.md | 3 +- docs/V1KSMConfiguration.md | 10 -- docs/V1KubeVirtConfiguration.md | 1 - git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 - kubevirt/__init__.py | 1 - kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 - kubevirt/models/v1_ksm_configuration.py | 125 ------------------ kubevirt/models/v1_kube_virt_configuration.py | 30 +---- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_ksm_configuration.py | 44 ------ 14 files changed, 7 insertions(+), 221 deletions(-) delete mode 100644 docs/V1KSMConfiguration.md delete mode 100644 kubevirt/models/v1_ksm_configuration.py delete mode 100644 test/test_v1_ksm_configuration.py diff --git a/README.md b/README.md index b135a949..4409adab 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-117-g4ea2858db +- Package version: v1.0.0-beta.0-114-g3a9a2d9c5 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -466,7 +466,6 @@ Class | Method | HTTP request | Description - [V1InterfacePasst](docs/V1InterfacePasst.md) - [V1InterfaceSRIOV](docs/V1InterfaceSRIOV.md) - [V1InterfaceSlirp](docs/V1InterfaceSlirp.md) - - [V1KSMConfiguration](docs/V1KSMConfiguration.md) - [V1KVMTimer](docs/V1KVMTimer.md) - [V1KernelBoot](docs/V1KernelBoot.md) - [V1KernelBootContainer](docs/V1KernelBootContainer.md) diff --git a/docs/V1KSMConfiguration.md b/docs/V1KSMConfiguration.md deleted file mode 100644 index 7e43bb1c..00000000 --- a/docs/V1KSMConfiguration.md +++ /dev/null @@ -1,10 +0,0 @@ -# V1KSMConfiguration - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**node_label_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | NodeLabelSelector is a selector that filters in which nodes the KSM will be enabled. Empty NodeLabelSelector will enable ksm for every node. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index 36d931d9..e1c9a963 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -15,7 +15,6 @@ Name | Type | Description | Notes **eviction_strategy** | **str** | EvictionStrategy defines at the cluster level if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain. If the VirtualMachineInstance specific field is set it overrides the cluster level one. | [optional] **handler_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] **image_pull_policy** | **str** | Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present | [optional] -**ksm_configuration** | [**V1KSMConfiguration**](V1KSMConfiguration.md) | KSMConfiguration holds the information regarding the enabling the KSM in the nodes (if available). | [optional] **machine_type** | **str** | | [optional] **mediated_devices_configuration** | [**V1MediatedDevicesConfiguration**](V1MediatedDevicesConfiguration.md) | | [optional] **mem_balloon_stats_period** | **int** | | [optional] diff --git a/git_push.sh b/git_push.sh index 5cfdde25..6707009e 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-117-g4ea2858db" + release_note="Auto-generated client v1.0.0-beta.0-114-g3a9a2d9c5" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index d7767999..d2171cc5 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -420,9 +420,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_slirp.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface_slirp.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InterfaceSlirp.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_ksm_configuration.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_ksm_configuration.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KSMConfiguration.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_kvm_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kvm_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KVMTimer.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index e3bc07e2..ff3811fb 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -147,7 +147,6 @@ from .models.v1_interface_passt import V1InterfacePasst from .models.v1_interface_sriov import V1InterfaceSRIOV from .models.v1_interface_slirp import V1InterfaceSlirp -from .models.v1_ksm_configuration import V1KSMConfiguration from .models.v1_kvm_timer import V1KVMTimer from .models.v1_kernel_boot import V1KernelBoot from .models.v1_kernel_boot_container import V1KernelBootContainer diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 5429a642..1710d393 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-117-g4ea2858db/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-114-g3a9a2d9c5/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 86f448da..92816b6f 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-117-g4ea2858db".\ + "SDK Package Version: v1.0.0-beta.0-114-g3a9a2d9c5".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 4168e311..cebfa661 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -147,7 +147,6 @@ from .v1_interface_passt import V1InterfacePasst from .v1_interface_sriov import V1InterfaceSRIOV from .v1_interface_slirp import V1InterfaceSlirp -from .v1_ksm_configuration import V1KSMConfiguration from .v1_kvm_timer import V1KVMTimer from .v1_kernel_boot import V1KernelBoot from .v1_kernel_boot_container import V1KernelBootContainer diff --git a/kubevirt/models/v1_ksm_configuration.py b/kubevirt/models/v1_ksm_configuration.py deleted file mode 100644 index 33b62535..00000000 --- a/kubevirt/models/v1_ksm_configuration.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1KSMConfiguration(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'node_label_selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector' - } - - attribute_map = { - 'node_label_selector': 'nodeLabelSelector' - } - - def __init__(self, node_label_selector=None): - """ - V1KSMConfiguration - a model defined in Swagger - """ - - self._node_label_selector = None - - if node_label_selector is not None: - self.node_label_selector = node_label_selector - - @property - def node_label_selector(self): - """ - Gets the node_label_selector of this V1KSMConfiguration. - NodeLabelSelector is a selector that filters in which nodes the KSM will be enabled. Empty NodeLabelSelector will enable ksm for every node. - - :return: The node_label_selector of this V1KSMConfiguration. - :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector - """ - return self._node_label_selector - - @node_label_selector.setter - def node_label_selector(self, node_label_selector): - """ - Sets the node_label_selector of this V1KSMConfiguration. - NodeLabelSelector is a selector that filters in which nodes the KSM will be enabled. Empty NodeLabelSelector will enable ksm for every node. - - :param node_label_selector: The node_label_selector of this V1KSMConfiguration. - :type: K8sIoApimachineryPkgApisMetaV1LabelSelector - """ - - self._node_label_selector = node_label_selector - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1KSMConfiguration): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index 0d0beb48..abd78124 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -43,7 +43,6 @@ class V1KubeVirtConfiguration(object): 'eviction_strategy': 'str', 'handler_configuration': 'V1ReloadableComponentConfiguration', 'image_pull_policy': 'str', - 'ksm_configuration': 'V1KSMConfiguration', 'machine_type': 'str', 'mediated_devices_configuration': 'V1MediatedDevicesConfiguration', 'mem_balloon_stats_period': 'int', @@ -78,7 +77,6 @@ class V1KubeVirtConfiguration(object): 'eviction_strategy': 'evictionStrategy', 'handler_configuration': 'handlerConfiguration', 'image_pull_policy': 'imagePullPolicy', - 'ksm_configuration': 'ksmConfiguration', 'machine_type': 'machineType', 'mediated_devices_configuration': 'mediatedDevicesConfiguration', 'mem_balloon_stats_period': 'memBalloonStatsPeriod', @@ -100,7 +98,7 @@ class V1KubeVirtConfiguration(object): 'webhook_configuration': 'webhookConfiguration' } - def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, ksm_configuration=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, virtual_machine_options=None, vm_state_storage_class=None, webhook_configuration=None): + def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, virtual_machine_options=None, vm_state_storage_class=None, webhook_configuration=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ @@ -117,7 +115,6 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self._eviction_strategy = None self._handler_configuration = None self._image_pull_policy = None - self._ksm_configuration = None self._machine_type = None self._mediated_devices_configuration = None self._mem_balloon_stats_period = None @@ -162,8 +159,6 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self.handler_configuration = handler_configuration if image_pull_policy is not None: self.image_pull_policy = image_pull_policy - if ksm_configuration is not None: - self.ksm_configuration = ksm_configuration if machine_type is not None: self.machine_type = machine_type if mediated_devices_configuration is not None: @@ -467,29 +462,6 @@ def image_pull_policy(self, image_pull_policy): self._image_pull_policy = image_pull_policy - @property - def ksm_configuration(self): - """ - Gets the ksm_configuration of this V1KubeVirtConfiguration. - KSMConfiguration holds the information regarding the enabling the KSM in the nodes (if available). - - :return: The ksm_configuration of this V1KubeVirtConfiguration. - :rtype: V1KSMConfiguration - """ - return self._ksm_configuration - - @ksm_configuration.setter - def ksm_configuration(self, ksm_configuration): - """ - Sets the ksm_configuration of this V1KubeVirtConfiguration. - KSMConfiguration holds the information regarding the enabling the KSM in the nodes (if available). - - :param ksm_configuration: The ksm_configuration of this V1KubeVirtConfiguration. - :type: V1KSMConfiguration - """ - - self._ksm_configuration = ksm_configuration - @property def machine_type(self): """ diff --git a/setup.py b/setup.py index 18b5803c..0e7a52ec 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-117-g4ea2858db" +VERSION = "v1.0.0-beta.0-114-g3a9a2d9c5" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 875a36e9..aac83adb 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-117-g4ea2858db" +"packageVersion": "v1.0.0-beta.0-114-g3a9a2d9c5" } diff --git a/test/test_v1_ksm_configuration.py b/test/test_v1_ksm_configuration.py deleted file mode 100644 index eeacd0ea..00000000 --- a/test/test_v1_ksm_configuration.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_ksm_configuration import V1KSMConfiguration - - -class TestV1KSMConfiguration(unittest.TestCase): - """ V1KSMConfiguration unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1KSMConfiguration(self): - """ - Test V1KSMConfiguration - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_ksm_configuration.V1KSMConfiguration() - pass - - -if __name__ == '__main__': - unittest.main() From dbf77bafc137309a74302daebc599bf3f9a5d499 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 31 May 2023 06:53:44 +0000 Subject: [PATCH 334/521] Client Python update by KubeVirt Prow build 1663783584651022336 --- README.md | 3 +- docs/V1KSMConfiguration.md | 10 ++ docs/V1KubeVirtConfiguration.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_ksm_configuration.py | 125 ++++++++++++++++++ kubevirt/models/v1_kube_virt_configuration.py | 30 ++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_ksm_configuration.py | 44 ++++++ 14 files changed, 221 insertions(+), 7 deletions(-) create mode 100644 docs/V1KSMConfiguration.md create mode 100644 kubevirt/models/v1_ksm_configuration.py create mode 100644 test/test_v1_ksm_configuration.py diff --git a/README.md b/README.md index 4409adab..9bc3134f 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-114-g3a9a2d9c5 +- Package version: v1.0.0-beta.0-119-gdd1a50f2a - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -466,6 +466,7 @@ Class | Method | HTTP request | Description - [V1InterfacePasst](docs/V1InterfacePasst.md) - [V1InterfaceSRIOV](docs/V1InterfaceSRIOV.md) - [V1InterfaceSlirp](docs/V1InterfaceSlirp.md) + - [V1KSMConfiguration](docs/V1KSMConfiguration.md) - [V1KVMTimer](docs/V1KVMTimer.md) - [V1KernelBoot](docs/V1KernelBoot.md) - [V1KernelBootContainer](docs/V1KernelBootContainer.md) diff --git a/docs/V1KSMConfiguration.md b/docs/V1KSMConfiguration.md new file mode 100644 index 00000000..7e43bb1c --- /dev/null +++ b/docs/V1KSMConfiguration.md @@ -0,0 +1,10 @@ +# V1KSMConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**node_label_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | NodeLabelSelector is a selector that filters in which nodes the KSM will be enabled. Empty NodeLabelSelector will enable ksm for every node. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index e1c9a963..36d931d9 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **eviction_strategy** | **str** | EvictionStrategy defines at the cluster level if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain. If the VirtualMachineInstance specific field is set it overrides the cluster level one. | [optional] **handler_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] **image_pull_policy** | **str** | Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present | [optional] +**ksm_configuration** | [**V1KSMConfiguration**](V1KSMConfiguration.md) | KSMConfiguration holds the information regarding the enabling the KSM in the nodes (if available). | [optional] **machine_type** | **str** | | [optional] **mediated_devices_configuration** | [**V1MediatedDevicesConfiguration**](V1MediatedDevicesConfiguration.md) | | [optional] **mem_balloon_stats_period** | **int** | | [optional] diff --git a/git_push.sh b/git_push.sh index 6707009e..42706bd9 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-114-g3a9a2d9c5" + release_note="Auto-generated client v1.0.0-beta.0-119-gdd1a50f2a" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index d2171cc5..d7767999 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -420,6 +420,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_interface_slirp.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface_slirp.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InterfaceSlirp.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_ksm_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_ksm_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KSMConfiguration.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_kvm_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kvm_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KVMTimer.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index ff3811fb..e3bc07e2 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -147,6 +147,7 @@ from .models.v1_interface_passt import V1InterfacePasst from .models.v1_interface_sriov import V1InterfaceSRIOV from .models.v1_interface_slirp import V1InterfaceSlirp +from .models.v1_ksm_configuration import V1KSMConfiguration from .models.v1_kvm_timer import V1KVMTimer from .models.v1_kernel_boot import V1KernelBoot from .models.v1_kernel_boot_container import V1KernelBootContainer diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 1710d393..53718bdb 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-114-g3a9a2d9c5/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-119-gdd1a50f2a/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 92816b6f..df38dd2a 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-114-g3a9a2d9c5".\ + "SDK Package Version: v1.0.0-beta.0-119-gdd1a50f2a".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index cebfa661..4168e311 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -147,6 +147,7 @@ from .v1_interface_passt import V1InterfacePasst from .v1_interface_sriov import V1InterfaceSRIOV from .v1_interface_slirp import V1InterfaceSlirp +from .v1_ksm_configuration import V1KSMConfiguration from .v1_kvm_timer import V1KVMTimer from .v1_kernel_boot import V1KernelBoot from .v1_kernel_boot_container import V1KernelBootContainer diff --git a/kubevirt/models/v1_ksm_configuration.py b/kubevirt/models/v1_ksm_configuration.py new file mode 100644 index 00000000..33b62535 --- /dev/null +++ b/kubevirt/models/v1_ksm_configuration.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1KSMConfiguration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'node_label_selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector' + } + + attribute_map = { + 'node_label_selector': 'nodeLabelSelector' + } + + def __init__(self, node_label_selector=None): + """ + V1KSMConfiguration - a model defined in Swagger + """ + + self._node_label_selector = None + + if node_label_selector is not None: + self.node_label_selector = node_label_selector + + @property + def node_label_selector(self): + """ + Gets the node_label_selector of this V1KSMConfiguration. + NodeLabelSelector is a selector that filters in which nodes the KSM will be enabled. Empty NodeLabelSelector will enable ksm for every node. + + :return: The node_label_selector of this V1KSMConfiguration. + :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + return self._node_label_selector + + @node_label_selector.setter + def node_label_selector(self, node_label_selector): + """ + Sets the node_label_selector of this V1KSMConfiguration. + NodeLabelSelector is a selector that filters in which nodes the KSM will be enabled. Empty NodeLabelSelector will enable ksm for every node. + + :param node_label_selector: The node_label_selector of this V1KSMConfiguration. + :type: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + + self._node_label_selector = node_label_selector + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1KSMConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index abd78124..0d0beb48 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -43,6 +43,7 @@ class V1KubeVirtConfiguration(object): 'eviction_strategy': 'str', 'handler_configuration': 'V1ReloadableComponentConfiguration', 'image_pull_policy': 'str', + 'ksm_configuration': 'V1KSMConfiguration', 'machine_type': 'str', 'mediated_devices_configuration': 'V1MediatedDevicesConfiguration', 'mem_balloon_stats_period': 'int', @@ -77,6 +78,7 @@ class V1KubeVirtConfiguration(object): 'eviction_strategy': 'evictionStrategy', 'handler_configuration': 'handlerConfiguration', 'image_pull_policy': 'imagePullPolicy', + 'ksm_configuration': 'ksmConfiguration', 'machine_type': 'machineType', 'mediated_devices_configuration': 'mediatedDevicesConfiguration', 'mem_balloon_stats_period': 'memBalloonStatsPeriod', @@ -98,7 +100,7 @@ class V1KubeVirtConfiguration(object): 'webhook_configuration': 'webhookConfiguration' } - def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, virtual_machine_options=None, vm_state_storage_class=None, webhook_configuration=None): + def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, ksm_configuration=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, virtual_machine_options=None, vm_state_storage_class=None, webhook_configuration=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ @@ -115,6 +117,7 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self._eviction_strategy = None self._handler_configuration = None self._image_pull_policy = None + self._ksm_configuration = None self._machine_type = None self._mediated_devices_configuration = None self._mem_balloon_stats_period = None @@ -159,6 +162,8 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self.handler_configuration = handler_configuration if image_pull_policy is not None: self.image_pull_policy = image_pull_policy + if ksm_configuration is not None: + self.ksm_configuration = ksm_configuration if machine_type is not None: self.machine_type = machine_type if mediated_devices_configuration is not None: @@ -462,6 +467,29 @@ def image_pull_policy(self, image_pull_policy): self._image_pull_policy = image_pull_policy + @property + def ksm_configuration(self): + """ + Gets the ksm_configuration of this V1KubeVirtConfiguration. + KSMConfiguration holds the information regarding the enabling the KSM in the nodes (if available). + + :return: The ksm_configuration of this V1KubeVirtConfiguration. + :rtype: V1KSMConfiguration + """ + return self._ksm_configuration + + @ksm_configuration.setter + def ksm_configuration(self, ksm_configuration): + """ + Sets the ksm_configuration of this V1KubeVirtConfiguration. + KSMConfiguration holds the information regarding the enabling the KSM in the nodes (if available). + + :param ksm_configuration: The ksm_configuration of this V1KubeVirtConfiguration. + :type: V1KSMConfiguration + """ + + self._ksm_configuration = ksm_configuration + @property def machine_type(self): """ diff --git a/setup.py b/setup.py index 0e7a52ec..2573d721 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-114-g3a9a2d9c5" +VERSION = "v1.0.0-beta.0-119-gdd1a50f2a" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index aac83adb..4ad930df 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-114-g3a9a2d9c5" +"packageVersion": "v1.0.0-beta.0-119-gdd1a50f2a" } diff --git a/test/test_v1_ksm_configuration.py b/test/test_v1_ksm_configuration.py new file mode 100644 index 00000000..eeacd0ea --- /dev/null +++ b/test/test_v1_ksm_configuration.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_ksm_configuration import V1KSMConfiguration + + +class TestV1KSMConfiguration(unittest.TestCase): + """ V1KSMConfiguration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1KSMConfiguration(self): + """ + Test V1KSMConfiguration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_ksm_configuration.V1KSMConfiguration() + pass + + +if __name__ == '__main__': + unittest.main() From 08ea8d3a161e09ced89c556e7668609cbb079ed6 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 1 Jun 2023 13:39:34 +0000 Subject: [PATCH 335/521] Client Python update by KubeVirt Prow build 1664251298138034176 --- README.md | 5 +- docs/DefaultApi.md | 104 +++++++++ docs/V1Interface.md | 1 + docs/V1RemoveInterfaceOptions.md | 10 + docs/V1VirtualMachineInterfaceRequest.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 220 ++++++++++++++++++ kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_interface.py | 30 ++- .../models/v1_remove_interface_options.py | 126 ++++++++++ .../v1_virtual_machine_interface_request.py | 34 ++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 16 ++ test/test_v1_remove_interface_options.py | 44 ++++ 19 files changed, 596 insertions(+), 10 deletions(-) create mode 100644 docs/V1RemoveInterfaceOptions.md create mode 100644 kubevirt/models/v1_remove_interface_options.py create mode 100644 test/test_v1_remove_interface_options.py diff --git a/README.md b/README.md index 9bc3134f..80fbf40b 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-119-gdd1a50f2a +- Package version: v1.0.0-beta.0-155-ge291f5f87 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -282,6 +282,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3vmi_addvolume**](docs/DefaultApi.md#v1alpha3vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | *DefaultApi* | [**v1alpha3vmi_port_forward**](docs/DefaultApi.md#v1alpha3vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | *DefaultApi* | [**v1alpha3vmi_port_forward_with_protocol**](docs/DefaultApi.md#v1alpha3vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | +*DefaultApi* | [**v1alpha3vmi_removeinterface**](docs/DefaultApi.md#v1alpha3vmi_removeinterface) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removeinterface | *DefaultApi* | [**v1alpha3vmi_removevolume**](docs/DefaultApi.md#v1alpha3vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | *DefaultApi* | [**v1dump_cluster_profiler**](docs/DefaultApi.md#v1dump_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/dump-cluster-profiler | *DefaultApi* | [**v1get_api_sub_resources**](docs/DefaultApi.md#v1get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1/ | @@ -298,6 +299,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1vmi_addvolume**](docs/DefaultApi.md#v1vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | *DefaultApi* | [**v1vmi_port_forward**](docs/DefaultApi.md#v1vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | *DefaultApi* | [**v1vmi_port_forward_with_protocol**](docs/DefaultApi.md#v1vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | +*DefaultApi* | [**v1vmi_removeinterface**](docs/DefaultApi.md#v1vmi_removeinterface) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removeinterface | *DefaultApi* | [**v1vmi_removevolume**](docs/DefaultApi.md#v1vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | *DefaultApi* | [**watch_kube_virt_list_for_all_namespaces**](docs/DefaultApi.md#watch_kube_virt_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/kubevirt | *DefaultApi* | [**watch_migration_policy_list_for_all_namespaces**](docs/DefaultApi.md#watch_migration_policy_list_for_all_namespaces) | **GET** /apis/migrations.kubevirt.io/v1alpha1/watch/migrationpolicies | @@ -513,6 +515,7 @@ Class | Method | HTTP request | Description - [V1RateLimiter](docs/V1RateLimiter.md) - [V1Realtime](docs/V1Realtime.md) - [V1ReloadableComponentConfiguration](docs/V1ReloadableComponentConfiguration.md) + - [V1RemoveInterfaceOptions](docs/V1RemoveInterfaceOptions.md) - [V1RemoveVolumeOptions](docs/V1RemoveVolumeOptions.md) - [V1ResourceRequirements](docs/V1ResourceRequirements.md) - [V1RestartOptions](docs/V1RestartOptions.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index f3137604..7bdab37f 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -217,6 +217,7 @@ Method | HTTP request | Description [**v1alpha3vmi_addvolume**](DefaultApi.md#v1alpha3vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | [**v1alpha3vmi_port_forward**](DefaultApi.md#v1alpha3vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | [**v1alpha3vmi_port_forward_with_protocol**](DefaultApi.md#v1alpha3vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | +[**v1alpha3vmi_removeinterface**](DefaultApi.md#v1alpha3vmi_removeinterface) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removeinterface | [**v1alpha3vmi_removevolume**](DefaultApi.md#v1alpha3vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | [**v1dump_cluster_profiler**](DefaultApi.md#v1dump_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/dump-cluster-profiler | [**v1get_api_sub_resources**](DefaultApi.md#v1get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1/ | @@ -233,6 +234,7 @@ Method | HTTP request | Description [**v1vmi_addvolume**](DefaultApi.md#v1vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | [**v1vmi_port_forward**](DefaultApi.md#v1vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | [**v1vmi_port_forward_with_protocol**](DefaultApi.md#v1vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | +[**v1vmi_removeinterface**](DefaultApi.md#v1vmi_removeinterface) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removeinterface | [**v1vmi_removevolume**](DefaultApi.md#v1vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | [**watch_kube_virt_list_for_all_namespaces**](DefaultApi.md#watch_kube_virt_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/kubevirt | [**watch_migration_policy_list_for_all_namespaces**](DefaultApi.md#watch_migration_policy_list_for_all_namespaces) | **GET** /apis/migrations.kubevirt.io/v1alpha1/watch/migrationpolicies | @@ -11324,6 +11326,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3vmi_removeinterface** +> str v1alpha3vmi_removeinterface(name, namespace, body) + + + +Remove a network interface from a running Virtual Machine Instance + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1RemoveInterfaceOptions() # V1RemoveInterfaceOptions | + +try: + api_response = api_instance.v1alpha3vmi_removeinterface(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3vmi_removeinterface: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1RemoveInterfaceOptions**](V1RemoveInterfaceOptions.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3vmi_removevolume** > str v1alpha3vmi_removevolume(name, namespace, body) @@ -12094,6 +12147,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1vmi_removeinterface** +> str v1vmi_removeinterface(name, namespace, body) + + + +Remove a network interface from a running Virtual Machine Instance + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1RemoveInterfaceOptions() # V1RemoveInterfaceOptions | + +try: + api_response = api_instance.v1vmi_removeinterface(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1vmi_removeinterface: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1RemoveInterfaceOptions**](V1RemoveInterfaceOptions.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1vmi_removevolume** > str v1vmi_removevolume(name, namespace, body) diff --git a/docs/V1Interface.md b/docs/V1Interface.md index 95c63f44..9064ba21 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **ports** | [**list[V1Port]**](V1Port.md) | List of ports to be forwarded to the virtual machine. | [optional] **slirp** | [**V1InterfaceSlirp**](V1InterfaceSlirp.md) | | [optional] **sriov** | [**V1InterfaceSRIOV**](V1InterfaceSRIOV.md) | | [optional] +**state** | **str** | State represents the requested operational state of the interface. The (only) value supported is `absent`, expressing a request to remove the interface. | [optional] **tag** | **str** | If specified, the virtual network interface address and its tag will be provided to the guest via config drive | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1RemoveInterfaceOptions.md b/docs/V1RemoveInterfaceOptions.md new file mode 100644 index 00000000..7e963c58 --- /dev/null +++ b/docs/V1RemoveInterfaceOptions.md @@ -0,0 +1,10 @@ +# V1RemoveInterfaceOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name indicates the logical name of the interface. | [default to ''] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInterfaceRequest.md b/docs/V1VirtualMachineInterfaceRequest.md index 09f4a68d..95205ef7 100644 --- a/docs/V1VirtualMachineInterfaceRequest.md +++ b/docs/V1VirtualMachineInterfaceRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **add_interface_options** | [**V1AddInterfaceOptions**](V1AddInterfaceOptions.md) | AddInterfaceOptions when set indicates a network interface should be added. The details within this field specify how to add the interface | [optional] +**remove_interface_options** | [**V1RemoveInterfaceOptions**](V1RemoveInterfaceOptions.md) | RemoveInterfaceOptions when set indicates a network interface should be removed. The details within this field specify how to remove the interface | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 42706bd9..075b7f2c 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-119-gdd1a50f2a" + release_note="Auto-generated client v1.0.0-beta.0-155-ge291f5f87" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index d7767999..e2818255 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -561,6 +561,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_reloadable_component_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_reloadable_component_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ReloadableComponentConfiguration.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_remove_interface_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_remove_interface_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1RemoveInterfaceOptions.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_remove_volume_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_remove_volume_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1RemoveVolumeOptions.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index e3bc07e2..12e46664 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -194,6 +194,7 @@ from .models.v1_rate_limiter import V1RateLimiter from .models.v1_realtime import V1Realtime from .models.v1_reloadable_component_configuration import V1ReloadableComponentConfiguration +from .models.v1_remove_interface_options import V1RemoveInterfaceOptions from .models.v1_remove_volume_options import V1RemoveVolumeOptions from .models.v1_resource_requirements import V1ResourceRequirements from .models.v1_restart_options import V1RestartOptions diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 53718bdb..2bf4a092 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-119-gdd1a50f2a/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-155-ge291f5f87/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index f75663f5..aa871d6f 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -24086,6 +24086,116 @@ def v1alpha3vmi_port_forward_with_protocol_with_http_info(self, name, namespace, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1alpha3vmi_removeinterface(self, name, namespace, body, **kwargs): + """ + Remove a network interface from a running Virtual Machine Instance + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vmi_removeinterface(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1RemoveInterfaceOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3vmi_removeinterface_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1alpha3vmi_removeinterface_with_http_info(name, namespace, body, **kwargs) + return data + + def v1alpha3vmi_removeinterface_with_http_info(self, name, namespace, body, **kwargs): + """ + Remove a network interface from a running Virtual Machine Instance + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vmi_removeinterface_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1RemoveInterfaceOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3vmi_removeinterface" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vmi_removeinterface`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vmi_removeinterface`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3vmi_removeinterface`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removeinterface', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1alpha3vmi_removevolume(self, name, namespace, body, **kwargs): """ Removes a volume and disk from a running Virtual Machine Instance @@ -25772,6 +25882,116 @@ def v1vmi_port_forward_with_protocol_with_http_info(self, name, namespace, port, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1vmi_removeinterface(self, name, namespace, body, **kwargs): + """ + Remove a network interface from a running Virtual Machine Instance + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1vmi_removeinterface(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1RemoveInterfaceOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1vmi_removeinterface_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1vmi_removeinterface_with_http_info(name, namespace, body, **kwargs) + return data + + def v1vmi_removeinterface_with_http_info(self, name, namespace, body, **kwargs): + """ + Remove a network interface from a running Virtual Machine Instance + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1vmi_removeinterface_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1RemoveInterfaceOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1vmi_removeinterface" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1vmi_removeinterface`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1vmi_removeinterface`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1vmi_removeinterface`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removeinterface', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1vmi_removevolume(self, name, namespace, body, **kwargs): """ Removes a volume and disk from a running Virtual Machine Instance diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index df38dd2a..f5f57475 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-119-gdd1a50f2a".\ + "SDK Package Version: v1.0.0-beta.0-155-ge291f5f87".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 4168e311..cf6890b3 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -194,6 +194,7 @@ from .v1_rate_limiter import V1RateLimiter from .v1_realtime import V1Realtime from .v1_reloadable_component_configuration import V1ReloadableComponentConfiguration +from .v1_remove_interface_options import V1RemoveInterfaceOptions from .v1_remove_volume_options import V1RemoveVolumeOptions from .v1_resource_requirements import V1ResourceRequirements from .v1_restart_options import V1RestartOptions diff --git a/kubevirt/models/v1_interface.py b/kubevirt/models/v1_interface.py index 99a213e5..0478b88e 100644 --- a/kubevirt/models/v1_interface.py +++ b/kubevirt/models/v1_interface.py @@ -45,6 +45,7 @@ class V1Interface(object): 'ports': 'list[V1Port]', 'slirp': 'V1InterfaceSlirp', 'sriov': 'V1InterfaceSRIOV', + 'state': 'str', 'tag': 'str' } @@ -63,10 +64,11 @@ class V1Interface(object): 'ports': 'ports', 'slirp': 'slirp', 'sriov': 'sriov', + 'state': 'state', 'tag': 'tag' } - def __init__(self, acpi_index=None, boot_order=None, bridge=None, dhcp_options=None, mac_address=None, macvtap=None, masquerade=None, model=None, name='', passt=None, pci_address=None, ports=None, slirp=None, sriov=None, tag=None): + def __init__(self, acpi_index=None, boot_order=None, bridge=None, dhcp_options=None, mac_address=None, macvtap=None, masquerade=None, model=None, name='', passt=None, pci_address=None, ports=None, slirp=None, sriov=None, state=None, tag=None): """ V1Interface - a model defined in Swagger """ @@ -85,6 +87,7 @@ def __init__(self, acpi_index=None, boot_order=None, bridge=None, dhcp_options=N self._ports = None self._slirp = None self._sriov = None + self._state = None self._tag = None if acpi_index is not None: @@ -114,6 +117,8 @@ def __init__(self, acpi_index=None, boot_order=None, bridge=None, dhcp_options=N self.slirp = slirp if sriov is not None: self.sriov = sriov + if state is not None: + self.state = state if tag is not None: self.tag = tag @@ -429,6 +434,29 @@ def sriov(self, sriov): self._sriov = sriov + @property + def state(self): + """ + Gets the state of this V1Interface. + State represents the requested operational state of the interface. The (only) value supported is `absent`, expressing a request to remove the interface. + + :return: The state of this V1Interface. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """ + Sets the state of this V1Interface. + State represents the requested operational state of the interface. The (only) value supported is `absent`, expressing a request to remove the interface. + + :param state: The state of this V1Interface. + :type: str + """ + + self._state = state + @property def tag(self): """ diff --git a/kubevirt/models/v1_remove_interface_options.py b/kubevirt/models/v1_remove_interface_options.py new file mode 100644 index 00000000..1b91af21 --- /dev/null +++ b/kubevirt/models/v1_remove_interface_options.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1RemoveInterfaceOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str' + } + + attribute_map = { + 'name': 'name' + } + + def __init__(self, name=''): + """ + V1RemoveInterfaceOptions - a model defined in Swagger + """ + + self._name = None + + self.name = name + + @property + def name(self): + """ + Gets the name of this V1RemoveInterfaceOptions. + Name indicates the logical name of the interface. + + :return: The name of this V1RemoveInterfaceOptions. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1RemoveInterfaceOptions. + Name indicates the logical name of the interface. + + :param name: The name of this V1RemoveInterfaceOptions. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1RemoveInterfaceOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_interface_request.py b/kubevirt/models/v1_virtual_machine_interface_request.py index f0f60d32..e2954c9a 100644 --- a/kubevirt/models/v1_virtual_machine_interface_request.py +++ b/kubevirt/models/v1_virtual_machine_interface_request.py @@ -31,22 +31,27 @@ class V1VirtualMachineInterfaceRequest(object): and the value is json key in definition. """ swagger_types = { - 'add_interface_options': 'V1AddInterfaceOptions' + 'add_interface_options': 'V1AddInterfaceOptions', + 'remove_interface_options': 'V1RemoveInterfaceOptions' } attribute_map = { - 'add_interface_options': 'addInterfaceOptions' + 'add_interface_options': 'addInterfaceOptions', + 'remove_interface_options': 'removeInterfaceOptions' } - def __init__(self, add_interface_options=None): + def __init__(self, add_interface_options=None, remove_interface_options=None): """ V1VirtualMachineInterfaceRequest - a model defined in Swagger """ self._add_interface_options = None + self._remove_interface_options = None if add_interface_options is not None: self.add_interface_options = add_interface_options + if remove_interface_options is not None: + self.remove_interface_options = remove_interface_options @property def add_interface_options(self): @@ -71,6 +76,29 @@ def add_interface_options(self, add_interface_options): self._add_interface_options = add_interface_options + @property + def remove_interface_options(self): + """ + Gets the remove_interface_options of this V1VirtualMachineInterfaceRequest. + RemoveInterfaceOptions when set indicates a network interface should be removed. The details within this field specify how to remove the interface + + :return: The remove_interface_options of this V1VirtualMachineInterfaceRequest. + :rtype: V1RemoveInterfaceOptions + """ + return self._remove_interface_options + + @remove_interface_options.setter + def remove_interface_options(self, remove_interface_options): + """ + Sets the remove_interface_options of this V1VirtualMachineInterfaceRequest. + RemoveInterfaceOptions when set indicates a network interface should be removed. The details within this field specify how to remove the interface + + :param remove_interface_options: The remove_interface_options of this V1VirtualMachineInterfaceRequest. + :type: V1RemoveInterfaceOptions + """ + + self._remove_interface_options = remove_interface_options + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 2573d721..e906401b 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-119-gdd1a50f2a" +VERSION = "v1.0.0-beta.0-155-ge291f5f87" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 4ad930df..8e226e9c 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-119-gdd1a50f2a" +"packageVersion": "v1.0.0-beta.0-155-ge291f5f87" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 61bb268e..9fe5a7d8 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -1732,6 +1732,14 @@ def test_v1alpha3vmi_port_forward_with_protocol(self): Test case for v1alpha3vmi_port_forward_with_protocol + """ + pass + + def test_v1alpha3vmi_removeinterface(self): + """ + Test case for v1alpha3vmi_removeinterface + + """ pass @@ -1860,6 +1868,14 @@ def test_v1vmi_port_forward_with_protocol(self): Test case for v1vmi_port_forward_with_protocol + """ + pass + + def test_v1vmi_removeinterface(self): + """ + Test case for v1vmi_removeinterface + + """ pass diff --git a/test/test_v1_remove_interface_options.py b/test/test_v1_remove_interface_options.py new file mode 100644 index 00000000..c58346cd --- /dev/null +++ b/test/test_v1_remove_interface_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_remove_interface_options import V1RemoveInterfaceOptions + + +class TestV1RemoveInterfaceOptions(unittest.TestCase): + """ V1RemoveInterfaceOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1RemoveInterfaceOptions(self): + """ + Test V1RemoveInterfaceOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_remove_interface_options.V1RemoveInterfaceOptions() + pass + + +if __name__ == '__main__': + unittest.main() From 828faf4f766d55759ba9a2d4f6227b95ad214c8d Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 2 Jun 2023 01:59:00 +0000 Subject: [PATCH 336/521] Client Python update by KubeVirt Prow build 1664439694693240832 --- README.md | 2 +- docs/V1KubeVirtConfiguration.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_kube_virt_configuration.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 80fbf40b..824c5966 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-155-ge291f5f87 +- Package version: v1.0.0-beta.0-160-g93f838bb7 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index 36d931d9..f0106260 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **additional_guest_memory_overhead_ratio** | **str** | AdditionalGuestMemoryOverheadRatio can be used to increase the virtualization infrastructure overhead. This is useful, since the calculation of this overhead is not accurate and cannot be entirely known in advance. The ratio that is being set determines by which factor to increase the overhead calculated by Kubevirt. A higher ratio means that the VMs would be less compromised by node pressures, but would mean that fewer VMs could be scheduled to a node. If not set, the default is 1. | [optional] **api_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] **architecture_configuration** | [**V1ArchConfiguration**](V1ArchConfiguration.md) | | [optional] +**auto_cpu_limit_namespace_label_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | When set, AutoCPULimitNamespaceLabelSelector will set a CPU limit on virt-launcher for VMIs running inside namespaces that match the label selector. The CPU limit will equal the number of requested vCPUs. This setting does not apply to VMIs with dedicated CPUs. | [optional] **controller_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] **cpu_model** | **str** | | [optional] **cpu_request** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | | [optional] diff --git a/git_push.sh b/git_push.sh index 075b7f2c..3aaedcf5 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-155-ge291f5f87" + release_note="Auto-generated client v1.0.0-beta.0-160-g93f838bb7" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 2bf4a092..9dece4d4 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-155-ge291f5f87/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-160-g93f838bb7/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index f5f57475..46af65be 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-155-ge291f5f87".\ + "SDK Package Version: v1.0.0-beta.0-160-g93f838bb7".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index 0d0beb48..deb8ce4f 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -34,6 +34,7 @@ class V1KubeVirtConfiguration(object): 'additional_guest_memory_overhead_ratio': 'str', 'api_configuration': 'V1ReloadableComponentConfiguration', 'architecture_configuration': 'V1ArchConfiguration', + 'auto_cpu_limit_namespace_label_selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', 'controller_configuration': 'V1ReloadableComponentConfiguration', 'cpu_model': 'str', 'cpu_request': 'K8sIoApimachineryPkgApiResourceQuantity', @@ -69,6 +70,7 @@ class V1KubeVirtConfiguration(object): 'additional_guest_memory_overhead_ratio': 'additionalGuestMemoryOverheadRatio', 'api_configuration': 'apiConfiguration', 'architecture_configuration': 'architectureConfiguration', + 'auto_cpu_limit_namespace_label_selector': 'autoCPULimitNamespaceLabelSelector', 'controller_configuration': 'controllerConfiguration', 'cpu_model': 'cpuModel', 'cpu_request': 'cpuRequest', @@ -100,7 +102,7 @@ class V1KubeVirtConfiguration(object): 'webhook_configuration': 'webhookConfiguration' } - def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, ksm_configuration=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, virtual_machine_options=None, vm_state_storage_class=None, webhook_configuration=None): + def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, auto_cpu_limit_namespace_label_selector=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, ksm_configuration=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, virtual_machine_options=None, vm_state_storage_class=None, webhook_configuration=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ @@ -108,6 +110,7 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self._additional_guest_memory_overhead_ratio = None self._api_configuration = None self._architecture_configuration = None + self._auto_cpu_limit_namespace_label_selector = None self._controller_configuration = None self._cpu_model = None self._cpu_request = None @@ -144,6 +147,8 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self.api_configuration = api_configuration if architecture_configuration is not None: self.architecture_configuration = architecture_configuration + if auto_cpu_limit_namespace_label_selector is not None: + self.auto_cpu_limit_namespace_label_selector = auto_cpu_limit_namespace_label_selector if controller_configuration is not None: self.controller_configuration = controller_configuration if cpu_model is not None: @@ -268,6 +273,29 @@ def architecture_configuration(self, architecture_configuration): self._architecture_configuration = architecture_configuration + @property + def auto_cpu_limit_namespace_label_selector(self): + """ + Gets the auto_cpu_limit_namespace_label_selector of this V1KubeVirtConfiguration. + When set, AutoCPULimitNamespaceLabelSelector will set a CPU limit on virt-launcher for VMIs running inside namespaces that match the label selector. The CPU limit will equal the number of requested vCPUs. This setting does not apply to VMIs with dedicated CPUs. + + :return: The auto_cpu_limit_namespace_label_selector of this V1KubeVirtConfiguration. + :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + return self._auto_cpu_limit_namespace_label_selector + + @auto_cpu_limit_namespace_label_selector.setter + def auto_cpu_limit_namespace_label_selector(self, auto_cpu_limit_namespace_label_selector): + """ + Sets the auto_cpu_limit_namespace_label_selector of this V1KubeVirtConfiguration. + When set, AutoCPULimitNamespaceLabelSelector will set a CPU limit on virt-launcher for VMIs running inside namespaces that match the label selector. The CPU limit will equal the number of requested vCPUs. This setting does not apply to VMIs with dedicated CPUs. + + :param auto_cpu_limit_namespace_label_selector: The auto_cpu_limit_namespace_label_selector of this V1KubeVirtConfiguration. + :type: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + + self._auto_cpu_limit_namespace_label_selector = auto_cpu_limit_namespace_label_selector + @property def controller_configuration(self): """ diff --git a/setup.py b/setup.py index e906401b..52a01dec 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-155-ge291f5f87" +VERSION = "v1.0.0-beta.0-160-g93f838bb7" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 8e226e9c..c1066494 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-155-ge291f5f87" +"packageVersion": "v1.0.0-beta.0-160-g93f838bb7" } From 3dda22bb2914c1f4728955c5ebb33bdc8d39eb16 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 2 Jun 2023 07:48:13 +0000 Subject: [PATCH 337/521] Client Python update by KubeVirt Prow build 1664532360567197696 --- README.md | 2 +- docs/V1beta1DevicePreferences.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1beta1_device_preferences.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 824c5966..21d8c130 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-160-g93f838bb7 +- Package version: v1.0.0-beta.0-168-g45f933b02 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1DevicePreferences.md b/docs/V1beta1DevicePreferences.md index ee49fdf5..1152fc0c 100644 --- a/docs/V1beta1DevicePreferences.md +++ b/docs/V1beta1DevicePreferences.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **preferred_disk_io** | **str** | PreferredIo optionally defines the QEMU disk IO mode to be used by Disk devices. | [optional] **preferred_input_bus** | **str** | PreferredInputBus optionally defines the preferred bus for Input devices. | [optional] **preferred_input_type** | **str** | PreferredInputType optionally defines the preferred type for Input devices. | [optional] +**preferred_interface_masquerade** | [**V1InterfaceMasquerade**](V1InterfaceMasquerade.md) | PreferredInterfaceMasquerade optionally defines the preferred masquerade configuration to use with each network interface. | [optional] **preferred_interface_model** | **str** | PreferredInterfaceModel optionally defines the preferred model to be used by Interface devices. | [optional] **preferred_lun_bus** | **str** | PreferredLunBus optionally defines the preferred bus for Lun Disk devices. | [optional] **preferred_network_interface_multi_queue** | **bool** | PreferredNetworkInterfaceMultiQueue optionally enables the vhost multiqueue feature for virtio interfaces. | [optional] diff --git a/git_push.sh b/git_push.sh index 3aaedcf5..a88125a1 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-160-g93f838bb7" + release_note="Auto-generated client v1.0.0-beta.0-168-g45f933b02" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 9dece4d4..7bc71e48 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-160-g93f838bb7/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-168-g45f933b02/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 46af65be..070d890f 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-160-g93f838bb7".\ + "SDK Package Version: v1.0.0-beta.0-168-g45f933b02".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_device_preferences.py b/kubevirt/models/v1beta1_device_preferences.py index 1e27ad1a..fc697088 100644 --- a/kubevirt/models/v1beta1_device_preferences.py +++ b/kubevirt/models/v1beta1_device_preferences.py @@ -46,6 +46,7 @@ class V1beta1DevicePreferences(object): 'preferred_disk_io': 'str', 'preferred_input_bus': 'str', 'preferred_input_type': 'str', + 'preferred_interface_masquerade': 'V1InterfaceMasquerade', 'preferred_interface_model': 'str', 'preferred_lun_bus': 'str', 'preferred_network_interface_multi_queue': 'bool', @@ -72,6 +73,7 @@ class V1beta1DevicePreferences(object): 'preferred_disk_io': 'preferredDiskIO', 'preferred_input_bus': 'preferredInputBus', 'preferred_input_type': 'preferredInputType', + 'preferred_interface_masquerade': 'preferredInterfaceMasquerade', 'preferred_interface_model': 'preferredInterfaceModel', 'preferred_lun_bus': 'preferredLunBus', 'preferred_network_interface_multi_queue': 'preferredNetworkInterfaceMultiQueue', @@ -82,7 +84,7 @@ class V1beta1DevicePreferences(object): 'preferred_virtual_gpu_options': 'preferredVirtualGPUOptions' } - def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoattach_input_device=None, preferred_autoattach_mem_balloon=None, preferred_autoattach_pod_interface=None, preferred_autoattach_serial_console=None, preferred_block_multi_queue=None, preferred_cdrom_bus=None, preferred_disable_hotplug=None, preferred_disk_block_size=None, preferred_disk_bus=None, preferred_disk_cache=None, preferred_disk_dedicated_io_thread=None, preferred_disk_io=None, preferred_input_bus=None, preferred_input_type=None, preferred_interface_model=None, preferred_lun_bus=None, preferred_network_interface_multi_queue=None, preferred_rng=None, preferred_sound_model=None, preferred_tpm=None, preferred_use_virtio_transitional=None, preferred_virtual_gpu_options=None): + def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoattach_input_device=None, preferred_autoattach_mem_balloon=None, preferred_autoattach_pod_interface=None, preferred_autoattach_serial_console=None, preferred_block_multi_queue=None, preferred_cdrom_bus=None, preferred_disable_hotplug=None, preferred_disk_block_size=None, preferred_disk_bus=None, preferred_disk_cache=None, preferred_disk_dedicated_io_thread=None, preferred_disk_io=None, preferred_input_bus=None, preferred_input_type=None, preferred_interface_masquerade=None, preferred_interface_model=None, preferred_lun_bus=None, preferred_network_interface_multi_queue=None, preferred_rng=None, preferred_sound_model=None, preferred_tpm=None, preferred_use_virtio_transitional=None, preferred_virtual_gpu_options=None): """ V1beta1DevicePreferences - a model defined in Swagger """ @@ -102,6 +104,7 @@ def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoatta self._preferred_disk_io = None self._preferred_input_bus = None self._preferred_input_type = None + self._preferred_interface_masquerade = None self._preferred_interface_model = None self._preferred_lun_bus = None self._preferred_network_interface_multi_queue = None @@ -141,6 +144,8 @@ def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoatta self.preferred_input_bus = preferred_input_bus if preferred_input_type is not None: self.preferred_input_type = preferred_input_type + if preferred_interface_masquerade is not None: + self.preferred_interface_masquerade = preferred_interface_masquerade if preferred_interface_model is not None: self.preferred_interface_model = preferred_interface_model if preferred_lun_bus is not None: @@ -503,6 +508,29 @@ def preferred_input_type(self, preferred_input_type): self._preferred_input_type = preferred_input_type + @property + def preferred_interface_masquerade(self): + """ + Gets the preferred_interface_masquerade of this V1beta1DevicePreferences. + PreferredInterfaceMasquerade optionally defines the preferred masquerade configuration to use with each network interface. + + :return: The preferred_interface_masquerade of this V1beta1DevicePreferences. + :rtype: V1InterfaceMasquerade + """ + return self._preferred_interface_masquerade + + @preferred_interface_masquerade.setter + def preferred_interface_masquerade(self, preferred_interface_masquerade): + """ + Sets the preferred_interface_masquerade of this V1beta1DevicePreferences. + PreferredInterfaceMasquerade optionally defines the preferred masquerade configuration to use with each network interface. + + :param preferred_interface_masquerade: The preferred_interface_masquerade of this V1beta1DevicePreferences. + :type: V1InterfaceMasquerade + """ + + self._preferred_interface_masquerade = preferred_interface_masquerade + @property def preferred_interface_model(self): """ diff --git a/setup.py b/setup.py index 52a01dec..c11731d0 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-160-g93f838bb7" +VERSION = "v1.0.0-beta.0-168-g45f933b02" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index c1066494..c2c02fc9 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-160-g93f838bb7" +"packageVersion": "v1.0.0-beta.0-168-g45f933b02" } From 1ece32fb018e653a4f4cb8b4749bc541985b5b3d Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 2 Jun 2023 22:35:38 +0000 Subject: [PATCH 338/521] Client Python update by KubeVirt Prow build 1664752250372755456 --- README.md | 2 +- docs/V1beta1VirtualMachinePreferenceSpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...v1beta1_virtual_machine_preference_spec.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 21d8c130..afb93fce 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-168-g45f933b02 +- Package version: v1.0.0-beta.0-174-gde63822ec - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1VirtualMachinePreferenceSpec.md b/docs/V1beta1VirtualMachinePreferenceSpec.md index 6d2a275b..37e15ec3 100644 --- a/docs/V1beta1VirtualMachinePreferenceSpec.md +++ b/docs/V1beta1VirtualMachinePreferenceSpec.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **features** | [**V1beta1FeaturePreferences**](V1beta1FeaturePreferences.md) | Features optionally defines preferences associated with the Features attribute of a VirtualMachineInstance DomainSpec | [optional] **firmware** | [**V1beta1FirmwarePreferences**](V1beta1FirmwarePreferences.md) | Firmware optionally defines preferences associated with the Firmware attribute of a VirtualMachineInstance DomainSpec | [optional] **machine** | [**V1beta1MachinePreferences**](V1beta1MachinePreferences.md) | Machine optionally defines preferences associated with the Machine attribute of a VirtualMachineInstance DomainSpec | [optional] +**preferred_termination_grace_period_seconds** | **int** | Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. | [optional] **volumes** | [**V1beta1VolumePreferences**](V1beta1VolumePreferences.md) | Volumes optionally defines preferences associated with the Volumes attribute of a VirtualMachineInstace DomainSpec | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index a88125a1..5cea9a28 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-168-g45f933b02" + release_note="Auto-generated client v1.0.0-beta.0-174-gde63822ec" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 7bc71e48..c0c35f5a 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-168-g45f933b02/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-174-gde63822ec/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 070d890f..9cca387a 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-168-g45f933b02".\ + "SDK Package Version: v1.0.0-beta.0-174-gde63822ec".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_virtual_machine_preference_spec.py b/kubevirt/models/v1beta1_virtual_machine_preference_spec.py index 8ff6a091..c4be3b28 100644 --- a/kubevirt/models/v1beta1_virtual_machine_preference_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_preference_spec.py @@ -37,6 +37,7 @@ class V1beta1VirtualMachinePreferenceSpec(object): 'features': 'V1beta1FeaturePreferences', 'firmware': 'V1beta1FirmwarePreferences', 'machine': 'V1beta1MachinePreferences', + 'preferred_termination_grace_period_seconds': 'int', 'volumes': 'V1beta1VolumePreferences' } @@ -47,10 +48,11 @@ class V1beta1VirtualMachinePreferenceSpec(object): 'features': 'features', 'firmware': 'firmware', 'machine': 'machine', + 'preferred_termination_grace_period_seconds': 'preferredTerminationGracePeriodSeconds', 'volumes': 'volumes' } - def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, volumes=None): + def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, preferred_termination_grace_period_seconds=None, volumes=None): """ V1beta1VirtualMachinePreferenceSpec - a model defined in Swagger """ @@ -61,6 +63,7 @@ def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=N self._features = None self._firmware = None self._machine = None + self._preferred_termination_grace_period_seconds = None self._volumes = None if clock is not None: @@ -75,6 +78,8 @@ def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=N self.firmware = firmware if machine is not None: self.machine = machine + if preferred_termination_grace_period_seconds is not None: + self.preferred_termination_grace_period_seconds = preferred_termination_grace_period_seconds if volumes is not None: self.volumes = volumes @@ -216,6 +221,29 @@ def machine(self, machine): self._machine = machine + @property + def preferred_termination_grace_period_seconds(self): + """ + Gets the preferred_termination_grace_period_seconds of this V1beta1VirtualMachinePreferenceSpec. + Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. + + :return: The preferred_termination_grace_period_seconds of this V1beta1VirtualMachinePreferenceSpec. + :rtype: int + """ + return self._preferred_termination_grace_period_seconds + + @preferred_termination_grace_period_seconds.setter + def preferred_termination_grace_period_seconds(self, preferred_termination_grace_period_seconds): + """ + Sets the preferred_termination_grace_period_seconds of this V1beta1VirtualMachinePreferenceSpec. + Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. + + :param preferred_termination_grace_period_seconds: The preferred_termination_grace_period_seconds of this V1beta1VirtualMachinePreferenceSpec. + :type: int + """ + + self._preferred_termination_grace_period_seconds = preferred_termination_grace_period_seconds + @property def volumes(self): """ diff --git a/setup.py b/setup.py index c11731d0..4d9c8ad9 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-168-g45f933b02" +VERSION = "v1.0.0-beta.0-174-gde63822ec" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index c2c02fc9..acf7827e 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-168-g45f933b02" +"packageVersion": "v1.0.0-beta.0-174-gde63822ec" } From 9ed60b1d3576ce766d763b4f84348ad4bba56527 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Mon, 5 Jun 2023 21:15:11 +0000 Subject: [PATCH 339/521] Client Python update by KubeVirt Prow build 1665817483585523712 --- README.md | 3 +- docs/V1beta1DataVolumeSource.md | 1 + docs/V1beta1DataVolumeSourceSnapshot.md | 11 ++ docs/V1beta1StorageSpec.md | 3 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1beta1_data_volume_source.py | 28 +++- .../v1beta1_data_volume_source_snapshot.py | 155 ++++++++++++++++++ kubevirt/models/v1beta1_storage_spec.py | 34 +++- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...est_v1beta1_data_volume_source_snapshot.py | 44 +++++ 16 files changed, 283 insertions(+), 11 deletions(-) create mode 100644 docs/V1beta1DataVolumeSourceSnapshot.md create mode 100644 kubevirt/models/v1beta1_data_volume_source_snapshot.py create mode 100644 test/test_v1beta1_data_volume_source_snapshot.py diff --git a/README.md b/README.md index afb93fce..fd5a2392 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-174-gde63822ec +- Package version: v1.0.0-beta.0-196-g2cfd09e41 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -648,6 +648,7 @@ Class | Method | HTTP request | Description - [V1beta1DataVolumeSourceRef](docs/V1beta1DataVolumeSourceRef.md) - [V1beta1DataVolumeSourceRegistry](docs/V1beta1DataVolumeSourceRegistry.md) - [V1beta1DataVolumeSourceS3](docs/V1beta1DataVolumeSourceS3.md) + - [V1beta1DataVolumeSourceSnapshot](docs/V1beta1DataVolumeSourceSnapshot.md) - [V1beta1DataVolumeSourceUpload](docs/V1beta1DataVolumeSourceUpload.md) - [V1beta1DataVolumeSourceVDDK](docs/V1beta1DataVolumeSourceVDDK.md) - [V1beta1DataVolumeSpec](docs/V1beta1DataVolumeSpec.md) diff --git a/docs/V1beta1DataVolumeSource.md b/docs/V1beta1DataVolumeSource.md index 24c9773a..9b4f91fc 100644 --- a/docs/V1beta1DataVolumeSource.md +++ b/docs/V1beta1DataVolumeSource.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **pvc** | [**V1beta1DataVolumeSourcePVC**](V1beta1DataVolumeSourcePVC.md) | | [optional] **registry** | [**V1beta1DataVolumeSourceRegistry**](V1beta1DataVolumeSourceRegistry.md) | | [optional] **s3** | [**V1beta1DataVolumeSourceS3**](V1beta1DataVolumeSourceS3.md) | | [optional] +**snapshot** | [**V1beta1DataVolumeSourceSnapshot**](V1beta1DataVolumeSourceSnapshot.md) | | [optional] **upload** | [**V1beta1DataVolumeSourceUpload**](V1beta1DataVolumeSourceUpload.md) | | [optional] **vddk** | [**V1beta1DataVolumeSourceVDDK**](V1beta1DataVolumeSourceVDDK.md) | | [optional] diff --git a/docs/V1beta1DataVolumeSourceSnapshot.md b/docs/V1beta1DataVolumeSourceSnapshot.md new file mode 100644 index 00000000..05cb5b15 --- /dev/null +++ b/docs/V1beta1DataVolumeSourceSnapshot.md @@ -0,0 +1,11 @@ +# V1beta1DataVolumeSourceSnapshot + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the source VolumeSnapshot | [default to ''] +**namespace** | **str** | The namespace of the source VolumeSnapshot | [default to ''] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1StorageSpec.md b/docs/V1beta1StorageSpec.md index f9fdf919..4b3d24d4 100644 --- a/docs/V1beta1StorageSpec.md +++ b/docs/V1beta1StorageSpec.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **access_modes** | **list[str]** | AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] -**data_source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) * An existing custom resource that implements data population (Alpha) In order to use custom resource types that implement data population, the AnyVolumeDataSource feature gate must be enabled. If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. | [optional] +**data_source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) * An existing custom resource that implements data population (Alpha) In order to use custom resource types that implement data population, the AnyVolumeDataSource feature gate must be enabled. If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. | [optional] +**data_source_ref** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. | [optional] **resources** | [**K8sIoApiCoreV1ResourceRequirements**](K8sIoApiCoreV1ResourceRequirements.md) | Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources | [optional] **selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | A label query over volumes to consider for binding. | [optional] **storage_class_name** | **str** | Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] diff --git a/git_push.sh b/git_push.sh index 5cea9a28..a8047ab4 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-174-gde63822ec" + release_note="Auto-generated client v1.0.0-beta.0-196-g2cfd09e41" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index e2818255..ab8a9ceb 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -960,6 +960,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/v1beta1_data_volume_source_s3.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_source_s3.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeSourceS3.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_data_volume_source_snapshot.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_source_snapshot.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeSourceSnapshot.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_data_volume_source_upload.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_source_upload.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeSourceUpload.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 12e46664..8980ca3d 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -327,6 +327,7 @@ from .models.v1beta1_data_volume_source_ref import V1beta1DataVolumeSourceRef from .models.v1beta1_data_volume_source_registry import V1beta1DataVolumeSourceRegistry from .models.v1beta1_data_volume_source_s3 import V1beta1DataVolumeSourceS3 +from .models.v1beta1_data_volume_source_snapshot import V1beta1DataVolumeSourceSnapshot from .models.v1beta1_data_volume_source_upload import V1beta1DataVolumeSourceUpload from .models.v1beta1_data_volume_source_vddk import V1beta1DataVolumeSourceVDDK from .models.v1beta1_data_volume_spec import V1beta1DataVolumeSpec diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index c0c35f5a..e91a45e5 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-174-gde63822ec/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-196-g2cfd09e41/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 9cca387a..321d7000 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-174-gde63822ec".\ + "SDK Package Version: v1.0.0-beta.0-196-g2cfd09e41".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index cf6890b3..504360e7 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -327,6 +327,7 @@ from .v1beta1_data_volume_source_ref import V1beta1DataVolumeSourceRef from .v1beta1_data_volume_source_registry import V1beta1DataVolumeSourceRegistry from .v1beta1_data_volume_source_s3 import V1beta1DataVolumeSourceS3 +from .v1beta1_data_volume_source_snapshot import V1beta1DataVolumeSourceSnapshot from .v1beta1_data_volume_source_upload import V1beta1DataVolumeSourceUpload from .v1beta1_data_volume_source_vddk import V1beta1DataVolumeSourceVDDK from .v1beta1_data_volume_spec import V1beta1DataVolumeSpec diff --git a/kubevirt/models/v1beta1_data_volume_source.py b/kubevirt/models/v1beta1_data_volume_source.py index d1e9e0d8..ef29ff1a 100644 --- a/kubevirt/models/v1beta1_data_volume_source.py +++ b/kubevirt/models/v1beta1_data_volume_source.py @@ -37,6 +37,7 @@ class V1beta1DataVolumeSource(object): 'pvc': 'V1beta1DataVolumeSourcePVC', 'registry': 'V1beta1DataVolumeSourceRegistry', 's3': 'V1beta1DataVolumeSourceS3', + 'snapshot': 'V1beta1DataVolumeSourceSnapshot', 'upload': 'V1beta1DataVolumeSourceUpload', 'vddk': 'V1beta1DataVolumeSourceVDDK' } @@ -48,11 +49,12 @@ class V1beta1DataVolumeSource(object): 'pvc': 'pvc', 'registry': 'registry', 's3': 's3', + 'snapshot': 'snapshot', 'upload': 'upload', 'vddk': 'vddk' } - def __init__(self, blank=None, http=None, imageio=None, pvc=None, registry=None, s3=None, upload=None, vddk=None): + def __init__(self, blank=None, http=None, imageio=None, pvc=None, registry=None, s3=None, snapshot=None, upload=None, vddk=None): """ V1beta1DataVolumeSource - a model defined in Swagger """ @@ -63,6 +65,7 @@ def __init__(self, blank=None, http=None, imageio=None, pvc=None, registry=None, self._pvc = None self._registry = None self._s3 = None + self._snapshot = None self._upload = None self._vddk = None @@ -78,6 +81,8 @@ def __init__(self, blank=None, http=None, imageio=None, pvc=None, registry=None, self.registry = registry if s3 is not None: self.s3 = s3 + if snapshot is not None: + self.snapshot = snapshot if upload is not None: self.upload = upload if vddk is not None: @@ -209,6 +214,27 @@ def s3(self, s3): self._s3 = s3 + @property + def snapshot(self): + """ + Gets the snapshot of this V1beta1DataVolumeSource. + + :return: The snapshot of this V1beta1DataVolumeSource. + :rtype: V1beta1DataVolumeSourceSnapshot + """ + return self._snapshot + + @snapshot.setter + def snapshot(self, snapshot): + """ + Sets the snapshot of this V1beta1DataVolumeSource. + + :param snapshot: The snapshot of this V1beta1DataVolumeSource. + :type: V1beta1DataVolumeSourceSnapshot + """ + + self._snapshot = snapshot + @property def upload(self): """ diff --git a/kubevirt/models/v1beta1_data_volume_source_snapshot.py b/kubevirt/models/v1beta1_data_volume_source_snapshot.py new file mode 100644 index 00000000..1edce4b5 --- /dev/null +++ b/kubevirt/models/v1beta1_data_volume_source_snapshot.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1DataVolumeSourceSnapshot(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'namespace': 'str' + } + + attribute_map = { + 'name': 'name', + 'namespace': 'namespace' + } + + def __init__(self, name='', namespace=''): + """ + V1beta1DataVolumeSourceSnapshot - a model defined in Swagger + """ + + self._name = None + self._namespace = None + + self.name = name + self.namespace = namespace + + @property + def name(self): + """ + Gets the name of this V1beta1DataVolumeSourceSnapshot. + The name of the source VolumeSnapshot + + :return: The name of this V1beta1DataVolumeSourceSnapshot. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1beta1DataVolumeSourceSnapshot. + The name of the source VolumeSnapshot + + :param name: The name of this V1beta1DataVolumeSourceSnapshot. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def namespace(self): + """ + Gets the namespace of this V1beta1DataVolumeSourceSnapshot. + The namespace of the source VolumeSnapshot + + :return: The namespace of this V1beta1DataVolumeSourceSnapshot. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """ + Sets the namespace of this V1beta1DataVolumeSourceSnapshot. + The namespace of the source VolumeSnapshot + + :param namespace: The namespace of this V1beta1DataVolumeSourceSnapshot. + :type: str + """ + if namespace is None: + raise ValueError("Invalid value for `namespace`, must not be `None`") + + self._namespace = namespace + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1beta1DataVolumeSourceSnapshot): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1beta1_storage_spec.py b/kubevirt/models/v1beta1_storage_spec.py index c22725fc..3a7579e0 100644 --- a/kubevirt/models/v1beta1_storage_spec.py +++ b/kubevirt/models/v1beta1_storage_spec.py @@ -33,6 +33,7 @@ class V1beta1StorageSpec(object): swagger_types = { 'access_modes': 'list[str]', 'data_source': 'K8sIoApiCoreV1TypedLocalObjectReference', + 'data_source_ref': 'K8sIoApiCoreV1TypedLocalObjectReference', 'resources': 'K8sIoApiCoreV1ResourceRequirements', 'selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', 'storage_class_name': 'str', @@ -43,6 +44,7 @@ class V1beta1StorageSpec(object): attribute_map = { 'access_modes': 'accessModes', 'data_source': 'dataSource', + 'data_source_ref': 'dataSourceRef', 'resources': 'resources', 'selector': 'selector', 'storage_class_name': 'storageClassName', @@ -50,13 +52,14 @@ class V1beta1StorageSpec(object): 'volume_name': 'volumeName' } - def __init__(self, access_modes=None, data_source=None, resources=None, selector=None, storage_class_name=None, volume_mode=None, volume_name=None): + def __init__(self, access_modes=None, data_source=None, data_source_ref=None, resources=None, selector=None, storage_class_name=None, volume_mode=None, volume_name=None): """ V1beta1StorageSpec - a model defined in Swagger """ self._access_modes = None self._data_source = None + self._data_source_ref = None self._resources = None self._selector = None self._storage_class_name = None @@ -67,6 +70,8 @@ def __init__(self, access_modes=None, data_source=None, resources=None, selector self.access_modes = access_modes if data_source is not None: self.data_source = data_source + if data_source_ref is not None: + self.data_source_ref = data_source_ref if resources is not None: self.resources = resources if selector is not None: @@ -105,7 +110,7 @@ def access_modes(self, access_modes): def data_source(self): """ Gets the data_source of this V1beta1StorageSpec. - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) * An existing custom resource that implements data population (Alpha) In order to use custom resource types that implement data population, the AnyVolumeDataSource feature gate must be enabled. If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. + This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) * An existing custom resource that implements data population (Alpha) In order to use custom resource types that implement data population, the AnyVolumeDataSource feature gate must be enabled. If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. :return: The data_source of this V1beta1StorageSpec. :rtype: K8sIoApiCoreV1TypedLocalObjectReference @@ -116,7 +121,7 @@ def data_source(self): def data_source(self, data_source): """ Sets the data_source of this V1beta1StorageSpec. - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) * An existing custom resource that implements data population (Alpha) In order to use custom resource types that implement data population, the AnyVolumeDataSource feature gate must be enabled. If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. + This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) * An existing custom resource that implements data population (Alpha) In order to use custom resource types that implement data population, the AnyVolumeDataSource feature gate must be enabled. If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. :param data_source: The data_source of this V1beta1StorageSpec. :type: K8sIoApiCoreV1TypedLocalObjectReference @@ -124,6 +129,29 @@ def data_source(self, data_source): self._data_source = data_source + @property + def data_source_ref(self): + """ + Gets the data_source_ref of this V1beta1StorageSpec. + Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. + + :return: The data_source_ref of this V1beta1StorageSpec. + :rtype: K8sIoApiCoreV1TypedLocalObjectReference + """ + return self._data_source_ref + + @data_source_ref.setter + def data_source_ref(self, data_source_ref): + """ + Sets the data_source_ref of this V1beta1StorageSpec. + Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. + + :param data_source_ref: The data_source_ref of this V1beta1StorageSpec. + :type: K8sIoApiCoreV1TypedLocalObjectReference + """ + + self._data_source_ref = data_source_ref + @property def resources(self): """ diff --git a/setup.py b/setup.py index 4d9c8ad9..6098480c 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-174-gde63822ec" +VERSION = "v1.0.0-beta.0-196-g2cfd09e41" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index acf7827e..1b09065c 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-174-gde63822ec" +"packageVersion": "v1.0.0-beta.0-196-g2cfd09e41" } diff --git a/test/test_v1beta1_data_volume_source_snapshot.py b/test/test_v1beta1_data_volume_source_snapshot.py new file mode 100644 index 00000000..3d4de69e --- /dev/null +++ b/test/test_v1beta1_data_volume_source_snapshot.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_data_volume_source_snapshot import V1beta1DataVolumeSourceSnapshot + + +class TestV1beta1DataVolumeSourceSnapshot(unittest.TestCase): + """ V1beta1DataVolumeSourceSnapshot unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DataVolumeSourceSnapshot(self): + """ + Test V1beta1DataVolumeSourceSnapshot + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_data_volume_source_snapshot.V1beta1DataVolumeSourceSnapshot() + pass + + +if __name__ == '__main__': + unittest.main() From c139d35766fadf5a977cd7917467f5d55e70154f Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 6 Jun 2023 07:53:51 +0000 Subject: [PATCH 340/521] Client Python update by KubeVirt Prow build 1665972064483282944 --- README.md | 2 +- docs/V1MigrationConfiguration.md | 1 + docs/V1beta1VirtualMachinePreferenceSpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_migration_configuration.py | 30 ++++++++++++++++++- ...v1beta1_virtual_machine_preference_spec.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 66 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index fd5a2392..e4089add 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-196-g2cfd09e41 +- Package version: v1.0.0-beta.0-208-g6e776e345 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1MigrationConfiguration.md b/docs/V1MigrationConfiguration.md index 4ec291d3..140fcd3b 100644 --- a/docs/V1MigrationConfiguration.md +++ b/docs/V1MigrationConfiguration.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **bandwidth_per_migration** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | BandwidthPerMigration limits the amount of network bandwith live migrations are allowed to use. The value is in quantity per second. Defaults to 0 (no limit) | [optional] **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 800 | [optional] **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] +**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] **network** | **str** | Network is the name of the CNI network to use for live migrations. By default, migrations go through the pod network. | [optional] **node_drain_taint_key** | **str** | NodeDrainTaintKey defines the taint key that indicates a node should be drained. Note: this option relies on the deprecated node taint feature. Default: kubevirt.io/drain | [optional] **parallel_migrations_per_cluster** | **int** | ParallelMigrationsPerCluster is the total number of concurrent live migrations allowed cluster-wide. Defaults to 5 | [optional] diff --git a/docs/V1beta1VirtualMachinePreferenceSpec.md b/docs/V1beta1VirtualMachinePreferenceSpec.md index 37e15ec3..9a22b364 100644 --- a/docs/V1beta1VirtualMachinePreferenceSpec.md +++ b/docs/V1beta1VirtualMachinePreferenceSpec.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **features** | [**V1beta1FeaturePreferences**](V1beta1FeaturePreferences.md) | Features optionally defines preferences associated with the Features attribute of a VirtualMachineInstance DomainSpec | [optional] **firmware** | [**V1beta1FirmwarePreferences**](V1beta1FirmwarePreferences.md) | Firmware optionally defines preferences associated with the Firmware attribute of a VirtualMachineInstance DomainSpec | [optional] **machine** | [**V1beta1MachinePreferences**](V1beta1MachinePreferences.md) | Machine optionally defines preferences associated with the Machine attribute of a VirtualMachineInstance DomainSpec | [optional] +**preferred_subdomain** | **str** | Subdomain of the VirtualMachineInstance | [optional] **preferred_termination_grace_period_seconds** | **int** | Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. | [optional] **volumes** | [**V1beta1VolumePreferences**](V1beta1VolumePreferences.md) | Volumes optionally defines preferences associated with the Volumes attribute of a VirtualMachineInstace DomainSpec | [optional] diff --git a/git_push.sh b/git_push.sh index a8047ab4..f5f5b09c 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-196-g2cfd09e41" + release_note="Auto-generated client v1.0.0-beta.0-208-g6e776e345" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index e91a45e5..44f38be4 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-196-g2cfd09e41/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-208-g6e776e345/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 321d7000..0a2edcd2 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-196-g2cfd09e41".\ + "SDK Package Version: v1.0.0-beta.0-208-g6e776e345".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_migration_configuration.py b/kubevirt/models/v1_migration_configuration.py index d7c289a5..5581dc31 100644 --- a/kubevirt/models/v1_migration_configuration.py +++ b/kubevirt/models/v1_migration_configuration.py @@ -36,6 +36,7 @@ class V1MigrationConfiguration(object): 'bandwidth_per_migration': 'K8sIoApimachineryPkgApiResourceQuantity', 'completion_timeout_per_gi_b': 'int', 'disable_tls': 'bool', + 'match_se_linux_level_on_migration': 'bool', 'network': 'str', 'node_drain_taint_key': 'str', 'parallel_migrations_per_cluster': 'int', @@ -50,6 +51,7 @@ class V1MigrationConfiguration(object): 'bandwidth_per_migration': 'bandwidthPerMigration', 'completion_timeout_per_gi_b': 'completionTimeoutPerGiB', 'disable_tls': 'disableTLS', + 'match_se_linux_level_on_migration': 'matchSELinuxLevelOnMigration', 'network': 'network', 'node_drain_taint_key': 'nodeDrainTaintKey', 'parallel_migrations_per_cluster': 'parallelMigrationsPerCluster', @@ -58,7 +60,7 @@ class V1MigrationConfiguration(object): 'unsafe_migration_override': 'unsafeMigrationOverride' } - def __init__(self, allow_auto_converge=None, allow_post_copy=None, bandwidth_per_migration=None, completion_timeout_per_gi_b=None, disable_tls=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): + 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): """ V1MigrationConfiguration - a model defined in Swagger """ @@ -68,6 +70,7 @@ def __init__(self, allow_auto_converge=None, allow_post_copy=None, bandwidth_per self._bandwidth_per_migration = None self._completion_timeout_per_gi_b = None self._disable_tls = None + self._match_se_linux_level_on_migration = None self._network = None self._node_drain_taint_key = None self._parallel_migrations_per_cluster = None @@ -85,6 +88,8 @@ def __init__(self, allow_auto_converge=None, allow_post_copy=None, bandwidth_per self.completion_timeout_per_gi_b = completion_timeout_per_gi_b if disable_tls is not None: self.disable_tls = disable_tls + if match_se_linux_level_on_migration is not None: + self.match_se_linux_level_on_migration = match_se_linux_level_on_migration if network is not None: self.network = network if node_drain_taint_key is not None: @@ -213,6 +218,29 @@ def disable_tls(self, disable_tls): self._disable_tls = disable_tls + @property + def match_se_linux_level_on_migration(self): + """ + Gets the match_se_linux_level_on_migration of this V1MigrationConfiguration. + 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. + + :return: The match_se_linux_level_on_migration of this V1MigrationConfiguration. + :rtype: bool + """ + return self._match_se_linux_level_on_migration + + @match_se_linux_level_on_migration.setter + def match_se_linux_level_on_migration(self, match_se_linux_level_on_migration): + """ + Sets the match_se_linux_level_on_migration of this V1MigrationConfiguration. + 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. + + :param match_se_linux_level_on_migration: The match_se_linux_level_on_migration of this V1MigrationConfiguration. + :type: bool + """ + + self._match_se_linux_level_on_migration = match_se_linux_level_on_migration + @property def network(self): """ diff --git a/kubevirt/models/v1beta1_virtual_machine_preference_spec.py b/kubevirt/models/v1beta1_virtual_machine_preference_spec.py index c4be3b28..1d3683a8 100644 --- a/kubevirt/models/v1beta1_virtual_machine_preference_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_preference_spec.py @@ -37,6 +37,7 @@ class V1beta1VirtualMachinePreferenceSpec(object): 'features': 'V1beta1FeaturePreferences', 'firmware': 'V1beta1FirmwarePreferences', 'machine': 'V1beta1MachinePreferences', + 'preferred_subdomain': 'str', 'preferred_termination_grace_period_seconds': 'int', 'volumes': 'V1beta1VolumePreferences' } @@ -48,11 +49,12 @@ class V1beta1VirtualMachinePreferenceSpec(object): 'features': 'features', 'firmware': 'firmware', 'machine': 'machine', + 'preferred_subdomain': 'preferredSubdomain', 'preferred_termination_grace_period_seconds': 'preferredTerminationGracePeriodSeconds', 'volumes': 'volumes' } - def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, preferred_termination_grace_period_seconds=None, volumes=None): + def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, preferred_subdomain=None, preferred_termination_grace_period_seconds=None, volumes=None): """ V1beta1VirtualMachinePreferenceSpec - a model defined in Swagger """ @@ -63,6 +65,7 @@ def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=N self._features = None self._firmware = None self._machine = None + self._preferred_subdomain = None self._preferred_termination_grace_period_seconds = None self._volumes = None @@ -78,6 +81,8 @@ def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=N self.firmware = firmware if machine is not None: self.machine = machine + if preferred_subdomain is not None: + self.preferred_subdomain = preferred_subdomain if preferred_termination_grace_period_seconds is not None: self.preferred_termination_grace_period_seconds = preferred_termination_grace_period_seconds if volumes is not None: @@ -221,6 +226,29 @@ def machine(self, machine): self._machine = machine + @property + def preferred_subdomain(self): + """ + Gets the preferred_subdomain of this V1beta1VirtualMachinePreferenceSpec. + Subdomain of the VirtualMachineInstance + + :return: The preferred_subdomain of this V1beta1VirtualMachinePreferenceSpec. + :rtype: str + """ + return self._preferred_subdomain + + @preferred_subdomain.setter + def preferred_subdomain(self, preferred_subdomain): + """ + Sets the preferred_subdomain of this V1beta1VirtualMachinePreferenceSpec. + Subdomain of the VirtualMachineInstance + + :param preferred_subdomain: The preferred_subdomain of this V1beta1VirtualMachinePreferenceSpec. + :type: str + """ + + self._preferred_subdomain = preferred_subdomain + @property def preferred_termination_grace_period_seconds(self): """ diff --git a/setup.py b/setup.py index 6098480c..fc8381f0 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-196-g2cfd09e41" +VERSION = "v1.0.0-beta.0-208-g6e776e345" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 1b09065c..c5c78079 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-196-g2cfd09e41" +"packageVersion": "v1.0.0-beta.0-208-g6e776e345" } From cf1a9e67c764dd2237d154917c15026ff6539fd7 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 6 Jun 2023 07:57:48 +0000 Subject: [PATCH 341/521] Client Python update by KubeVirt Prow build 1665972005612032000 --- README.md | 2 +- docs/V1beta1VirtualMachinePreferenceSpec.md | 1 - git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...v1beta1_virtual_machine_preference_spec.py | 30 +------------------ setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 7 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index e4089add..e9e4011d 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-208-g6e776e345 +- Package version: v1.0.0-beta.0-204-g010fe28fb - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1VirtualMachinePreferenceSpec.md b/docs/V1beta1VirtualMachinePreferenceSpec.md index 9a22b364..37e15ec3 100644 --- a/docs/V1beta1VirtualMachinePreferenceSpec.md +++ b/docs/V1beta1VirtualMachinePreferenceSpec.md @@ -9,7 +9,6 @@ Name | Type | Description | Notes **features** | [**V1beta1FeaturePreferences**](V1beta1FeaturePreferences.md) | Features optionally defines preferences associated with the Features attribute of a VirtualMachineInstance DomainSpec | [optional] **firmware** | [**V1beta1FirmwarePreferences**](V1beta1FirmwarePreferences.md) | Firmware optionally defines preferences associated with the Firmware attribute of a VirtualMachineInstance DomainSpec | [optional] **machine** | [**V1beta1MachinePreferences**](V1beta1MachinePreferences.md) | Machine optionally defines preferences associated with the Machine attribute of a VirtualMachineInstance DomainSpec | [optional] -**preferred_subdomain** | **str** | Subdomain of the VirtualMachineInstance | [optional] **preferred_termination_grace_period_seconds** | **int** | Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. | [optional] **volumes** | [**V1beta1VolumePreferences**](V1beta1VolumePreferences.md) | Volumes optionally defines preferences associated with the Volumes attribute of a VirtualMachineInstace DomainSpec | [optional] diff --git a/git_push.sh b/git_push.sh index f5f5b09c..747b19c1 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-208-g6e776e345" + release_note="Auto-generated client v1.0.0-beta.0-204-g010fe28fb" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 44f38be4..6895d3d4 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-208-g6e776e345/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-204-g010fe28fb/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 0a2edcd2..908615d4 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-208-g6e776e345".\ + "SDK Package Version: v1.0.0-beta.0-204-g010fe28fb".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_virtual_machine_preference_spec.py b/kubevirt/models/v1beta1_virtual_machine_preference_spec.py index 1d3683a8..c4be3b28 100644 --- a/kubevirt/models/v1beta1_virtual_machine_preference_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_preference_spec.py @@ -37,7 +37,6 @@ class V1beta1VirtualMachinePreferenceSpec(object): 'features': 'V1beta1FeaturePreferences', 'firmware': 'V1beta1FirmwarePreferences', 'machine': 'V1beta1MachinePreferences', - 'preferred_subdomain': 'str', 'preferred_termination_grace_period_seconds': 'int', 'volumes': 'V1beta1VolumePreferences' } @@ -49,12 +48,11 @@ class V1beta1VirtualMachinePreferenceSpec(object): 'features': 'features', 'firmware': 'firmware', 'machine': 'machine', - 'preferred_subdomain': 'preferredSubdomain', 'preferred_termination_grace_period_seconds': 'preferredTerminationGracePeriodSeconds', 'volumes': 'volumes' } - def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, preferred_subdomain=None, preferred_termination_grace_period_seconds=None, volumes=None): + def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, preferred_termination_grace_period_seconds=None, volumes=None): """ V1beta1VirtualMachinePreferenceSpec - a model defined in Swagger """ @@ -65,7 +63,6 @@ def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=N self._features = None self._firmware = None self._machine = None - self._preferred_subdomain = None self._preferred_termination_grace_period_seconds = None self._volumes = None @@ -81,8 +78,6 @@ def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=N self.firmware = firmware if machine is not None: self.machine = machine - if preferred_subdomain is not None: - self.preferred_subdomain = preferred_subdomain if preferred_termination_grace_period_seconds is not None: self.preferred_termination_grace_period_seconds = preferred_termination_grace_period_seconds if volumes is not None: @@ -226,29 +221,6 @@ def machine(self, machine): self._machine = machine - @property - def preferred_subdomain(self): - """ - Gets the preferred_subdomain of this V1beta1VirtualMachinePreferenceSpec. - Subdomain of the VirtualMachineInstance - - :return: The preferred_subdomain of this V1beta1VirtualMachinePreferenceSpec. - :rtype: str - """ - return self._preferred_subdomain - - @preferred_subdomain.setter - def preferred_subdomain(self, preferred_subdomain): - """ - Sets the preferred_subdomain of this V1beta1VirtualMachinePreferenceSpec. - Subdomain of the VirtualMachineInstance - - :param preferred_subdomain: The preferred_subdomain of this V1beta1VirtualMachinePreferenceSpec. - :type: str - """ - - self._preferred_subdomain = preferred_subdomain - @property def preferred_termination_grace_period_seconds(self): """ diff --git a/setup.py b/setup.py index fc8381f0..c6bc14c9 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-208-g6e776e345" +VERSION = "v1.0.0-beta.0-204-g010fe28fb" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index c5c78079..57780cb4 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-208-g6e776e345" +"packageVersion": "v1.0.0-beta.0-204-g010fe28fb" } From bc5120bc4ba52a16f68c470f4f8c0fde22037fc8 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 6 Jun 2023 22:46:11 +0000 Subject: [PATCH 342/521] Client Python update by KubeVirt Prow build 1666197471199498240 --- README.md | 2 +- docs/V1beta1VirtualMachinePreferenceSpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...v1beta1_virtual_machine_preference_spec.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index e9e4011d..85cb978e 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-204-g010fe28fb +- Package version: v1.0.0-beta.0-212-g306fa6ff8 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1VirtualMachinePreferenceSpec.md b/docs/V1beta1VirtualMachinePreferenceSpec.md index 37e15ec3..9a22b364 100644 --- a/docs/V1beta1VirtualMachinePreferenceSpec.md +++ b/docs/V1beta1VirtualMachinePreferenceSpec.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **features** | [**V1beta1FeaturePreferences**](V1beta1FeaturePreferences.md) | Features optionally defines preferences associated with the Features attribute of a VirtualMachineInstance DomainSpec | [optional] **firmware** | [**V1beta1FirmwarePreferences**](V1beta1FirmwarePreferences.md) | Firmware optionally defines preferences associated with the Firmware attribute of a VirtualMachineInstance DomainSpec | [optional] **machine** | [**V1beta1MachinePreferences**](V1beta1MachinePreferences.md) | Machine optionally defines preferences associated with the Machine attribute of a VirtualMachineInstance DomainSpec | [optional] +**preferred_subdomain** | **str** | Subdomain of the VirtualMachineInstance | [optional] **preferred_termination_grace_period_seconds** | **int** | Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. | [optional] **volumes** | [**V1beta1VolumePreferences**](V1beta1VolumePreferences.md) | Volumes optionally defines preferences associated with the Volumes attribute of a VirtualMachineInstace DomainSpec | [optional] diff --git a/git_push.sh b/git_push.sh index 747b19c1..e79a0b31 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-204-g010fe28fb" + release_note="Auto-generated client v1.0.0-beta.0-212-g306fa6ff8" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 6895d3d4..b5d1e881 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-204-g010fe28fb/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-212-g306fa6ff8/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 908615d4..124ae202 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-204-g010fe28fb".\ + "SDK Package Version: v1.0.0-beta.0-212-g306fa6ff8".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_virtual_machine_preference_spec.py b/kubevirt/models/v1beta1_virtual_machine_preference_spec.py index c4be3b28..1d3683a8 100644 --- a/kubevirt/models/v1beta1_virtual_machine_preference_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_preference_spec.py @@ -37,6 +37,7 @@ class V1beta1VirtualMachinePreferenceSpec(object): 'features': 'V1beta1FeaturePreferences', 'firmware': 'V1beta1FirmwarePreferences', 'machine': 'V1beta1MachinePreferences', + 'preferred_subdomain': 'str', 'preferred_termination_grace_period_seconds': 'int', 'volumes': 'V1beta1VolumePreferences' } @@ -48,11 +49,12 @@ class V1beta1VirtualMachinePreferenceSpec(object): 'features': 'features', 'firmware': 'firmware', 'machine': 'machine', + 'preferred_subdomain': 'preferredSubdomain', 'preferred_termination_grace_period_seconds': 'preferredTerminationGracePeriodSeconds', 'volumes': 'volumes' } - def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, preferred_termination_grace_period_seconds=None, volumes=None): + def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, preferred_subdomain=None, preferred_termination_grace_period_seconds=None, volumes=None): """ V1beta1VirtualMachinePreferenceSpec - a model defined in Swagger """ @@ -63,6 +65,7 @@ def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=N self._features = None self._firmware = None self._machine = None + self._preferred_subdomain = None self._preferred_termination_grace_period_seconds = None self._volumes = None @@ -78,6 +81,8 @@ def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=N self.firmware = firmware if machine is not None: self.machine = machine + if preferred_subdomain is not None: + self.preferred_subdomain = preferred_subdomain if preferred_termination_grace_period_seconds is not None: self.preferred_termination_grace_period_seconds = preferred_termination_grace_period_seconds if volumes is not None: @@ -221,6 +226,29 @@ def machine(self, machine): self._machine = machine + @property + def preferred_subdomain(self): + """ + Gets the preferred_subdomain of this V1beta1VirtualMachinePreferenceSpec. + Subdomain of the VirtualMachineInstance + + :return: The preferred_subdomain of this V1beta1VirtualMachinePreferenceSpec. + :rtype: str + """ + return self._preferred_subdomain + + @preferred_subdomain.setter + def preferred_subdomain(self, preferred_subdomain): + """ + Sets the preferred_subdomain of this V1beta1VirtualMachinePreferenceSpec. + Subdomain of the VirtualMachineInstance + + :param preferred_subdomain: The preferred_subdomain of this V1beta1VirtualMachinePreferenceSpec. + :type: str + """ + + self._preferred_subdomain = preferred_subdomain + @property def preferred_termination_grace_period_seconds(self): """ diff --git a/setup.py b/setup.py index c6bc14c9..de8e801a 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-204-g010fe28fb" +VERSION = "v1.0.0-beta.0-212-g306fa6ff8" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 57780cb4..b5f8b5bd 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-204-g010fe28fb" +"packageVersion": "v1.0.0-beta.0-212-g306fa6ff8" } From 8bd1abdf47f2839dc90c277c7d20db3debba00dd Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 7 Jun 2023 15:47:16 +0000 Subject: [PATCH 343/521] Client Python update by KubeVirt Prow build 1666453169007235072 --- README.md | 4 +- docs/DefaultApi.md | 104 +++++++++++++++++ git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 220 +++++++++++++++++++++++++++++++++++ kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 16 +++ 9 files changed, 348 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 85cb978e..b0f360e8 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-212-g306fa6ff8 +- Package version: v1.0.0-beta.0-226-gcb3a3673f - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -277,6 +277,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3vm_expand_spec**](docs/DefaultApi.md#v1alpha3vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec | *DefaultApi* | [**v1alpha3vm_port_forward**](docs/DefaultApi.md#v1alpha3vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | *DefaultApi* | [**v1alpha3vm_port_forward_with_protocol**](docs/DefaultApi.md#v1alpha3vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | +*DefaultApi* | [**v1alpha3vm_removeinterface**](docs/DefaultApi.md#v1alpha3vm_removeinterface) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removeinterface | *DefaultApi* | [**v1alpha3vm_removevolume**](docs/DefaultApi.md#v1alpha3vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | *DefaultApi* | [**v1alpha3vmi_addinterface**](docs/DefaultApi.md#v1alpha3vmi_addinterface) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addinterface | *DefaultApi* | [**v1alpha3vmi_addvolume**](docs/DefaultApi.md#v1alpha3vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | @@ -294,6 +295,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1vm_expand_spec**](docs/DefaultApi.md#v1vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec | *DefaultApi* | [**v1vm_port_forward**](docs/DefaultApi.md#v1vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | *DefaultApi* | [**v1vm_port_forward_with_protocol**](docs/DefaultApi.md#v1vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | +*DefaultApi* | [**v1vm_removeinterface**](docs/DefaultApi.md#v1vm_removeinterface) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removeinterface | *DefaultApi* | [**v1vm_removevolume**](docs/DefaultApi.md#v1vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | *DefaultApi* | [**v1vmi_addinterface**](docs/DefaultApi.md#v1vmi_addinterface) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addinterface | *DefaultApi* | [**v1vmi_addvolume**](docs/DefaultApi.md#v1vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 7bdab37f..f28d4db6 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -212,6 +212,7 @@ Method | HTTP request | Description [**v1alpha3vm_expand_spec**](DefaultApi.md#v1alpha3vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec | [**v1alpha3vm_port_forward**](DefaultApi.md#v1alpha3vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | [**v1alpha3vm_port_forward_with_protocol**](DefaultApi.md#v1alpha3vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | +[**v1alpha3vm_removeinterface**](DefaultApi.md#v1alpha3vm_removeinterface) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removeinterface | [**v1alpha3vm_removevolume**](DefaultApi.md#v1alpha3vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | [**v1alpha3vmi_addinterface**](DefaultApi.md#v1alpha3vmi_addinterface) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addinterface | [**v1alpha3vmi_addvolume**](DefaultApi.md#v1alpha3vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | @@ -229,6 +230,7 @@ Method | HTTP request | Description [**v1vm_expand_spec**](DefaultApi.md#v1vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec | [**v1vm_port_forward**](DefaultApi.md#v1vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | [**v1vm_port_forward_with_protocol**](DefaultApi.md#v1vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | +[**v1vm_removeinterface**](DefaultApi.md#v1vm_removeinterface) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removeinterface | [**v1vm_removevolume**](DefaultApi.md#v1vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | [**v1vmi_addinterface**](DefaultApi.md#v1vmi_addinterface) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addinterface | [**v1vmi_addvolume**](DefaultApi.md#v1vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | @@ -11071,6 +11073,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3vm_removeinterface** +> str v1alpha3vm_removeinterface(name, namespace, body) + + + +Remove a network interface from a running Virtual Machine + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1RemoveInterfaceOptions() # V1RemoveInterfaceOptions | + +try: + api_response = api_instance.v1alpha3vm_removeinterface(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3vm_removeinterface: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1RemoveInterfaceOptions**](V1RemoveInterfaceOptions.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3vm_removevolume** > str v1alpha3vm_removevolume(name, namespace, body) @@ -11892,6 +11945,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1vm_removeinterface** +> str v1vm_removeinterface(name, namespace, body) + + + +Remove a network interface from a running Virtual Machine + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1RemoveInterfaceOptions() # V1RemoveInterfaceOptions | + +try: + api_response = api_instance.v1vm_removeinterface(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1vm_removeinterface: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1RemoveInterfaceOptions**](V1RemoveInterfaceOptions.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1vm_removevolume** > str v1vm_removevolume(name, namespace, body) diff --git a/git_push.sh b/git_push.sh index e79a0b31..e3fb978b 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-212-g306fa6ff8" + release_note="Auto-generated client v1.0.0-beta.0-226-gcb3a3673f" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index b5d1e881..88c1fb51 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-212-g306fa6ff8/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-226-gcb3a3673f/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index aa871d6f..60986a64 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -23529,6 +23529,116 @@ def v1alpha3vm_port_forward_with_protocol_with_http_info(self, name, namespace, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1alpha3vm_removeinterface(self, name, namespace, body, **kwargs): + """ + Remove a network interface from a running Virtual Machine + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vm_removeinterface(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1RemoveInterfaceOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3vm_removeinterface_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1alpha3vm_removeinterface_with_http_info(name, namespace, body, **kwargs) + return data + + def v1alpha3vm_removeinterface_with_http_info(self, name, namespace, body, **kwargs): + """ + Remove a network interface from a running Virtual Machine + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vm_removeinterface_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1RemoveInterfaceOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3vm_removeinterface" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vm_removeinterface`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vm_removeinterface`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3vm_removeinterface`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removeinterface', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1alpha3vm_removevolume(self, name, namespace, body, **kwargs): """ Removes a volume and disk from a running Virtual Machine. @@ -25325,6 +25435,116 @@ def v1vm_port_forward_with_protocol_with_http_info(self, name, namespace, port, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1vm_removeinterface(self, name, namespace, body, **kwargs): + """ + Remove a network interface from a running Virtual Machine + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1vm_removeinterface(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1RemoveInterfaceOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1vm_removeinterface_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1vm_removeinterface_with_http_info(name, namespace, body, **kwargs) + return data + + def v1vm_removeinterface_with_http_info(self, name, namespace, body, **kwargs): + """ + Remove a network interface from a running Virtual Machine + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1vm_removeinterface_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1RemoveInterfaceOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1vm_removeinterface" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1vm_removeinterface`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1vm_removeinterface`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1vm_removeinterface`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removeinterface', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1vm_removevolume(self, name, namespace, body, **kwargs): """ Removes a volume and disk from a running Virtual Machine. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 124ae202..b0f42da0 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-212-g306fa6ff8".\ + "SDK Package Version: v1.0.0-beta.0-226-gcb3a3673f".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index de8e801a..5e91b52c 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-212-g306fa6ff8" +VERSION = "v1.0.0-beta.0-226-gcb3a3673f" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b5f8b5bd..b3ede683 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-212-g306fa6ff8" +"packageVersion": "v1.0.0-beta.0-226-gcb3a3673f" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 9fe5a7d8..d266dba2 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -1692,6 +1692,14 @@ def test_v1alpha3vm_port_forward_with_protocol(self): Test case for v1alpha3vm_port_forward_with_protocol + """ + pass + + def test_v1alpha3vm_removeinterface(self): + """ + Test case for v1alpha3vm_removeinterface + + """ pass @@ -1828,6 +1836,14 @@ def test_v1vm_port_forward_with_protocol(self): Test case for v1vm_port_forward_with_protocol + """ + pass + + def test_v1vm_removeinterface(self): + """ + Test case for v1vm_removeinterface + + """ pass From 8aa29d24aafe47910ccf1c2e88a47088b1e4cf1f Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 7 Jun 2023 16:04:27 +0000 Subject: [PATCH 344/521] Client Python update by KubeVirt Prow build 1666453109892714496 --- README.md | 4 +- docs/DefaultApi.md | 104 ----------------- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 220 ----------------------------------- kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 16 --- 9 files changed, 6 insertions(+), 348 deletions(-) diff --git a/README.md b/README.md index b0f360e8..4037ee12 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-226-gcb3a3673f +- Package version: v1.0.0-beta.0-216-gcdd927dd0 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -277,7 +277,6 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3vm_expand_spec**](docs/DefaultApi.md#v1alpha3vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec | *DefaultApi* | [**v1alpha3vm_port_forward**](docs/DefaultApi.md#v1alpha3vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | *DefaultApi* | [**v1alpha3vm_port_forward_with_protocol**](docs/DefaultApi.md#v1alpha3vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | -*DefaultApi* | [**v1alpha3vm_removeinterface**](docs/DefaultApi.md#v1alpha3vm_removeinterface) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removeinterface | *DefaultApi* | [**v1alpha3vm_removevolume**](docs/DefaultApi.md#v1alpha3vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | *DefaultApi* | [**v1alpha3vmi_addinterface**](docs/DefaultApi.md#v1alpha3vmi_addinterface) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addinterface | *DefaultApi* | [**v1alpha3vmi_addvolume**](docs/DefaultApi.md#v1alpha3vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | @@ -295,7 +294,6 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1vm_expand_spec**](docs/DefaultApi.md#v1vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec | *DefaultApi* | [**v1vm_port_forward**](docs/DefaultApi.md#v1vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | *DefaultApi* | [**v1vm_port_forward_with_protocol**](docs/DefaultApi.md#v1vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | -*DefaultApi* | [**v1vm_removeinterface**](docs/DefaultApi.md#v1vm_removeinterface) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removeinterface | *DefaultApi* | [**v1vm_removevolume**](docs/DefaultApi.md#v1vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | *DefaultApi* | [**v1vmi_addinterface**](docs/DefaultApi.md#v1vmi_addinterface) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addinterface | *DefaultApi* | [**v1vmi_addvolume**](docs/DefaultApi.md#v1vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index f28d4db6..7bdab37f 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -212,7 +212,6 @@ Method | HTTP request | Description [**v1alpha3vm_expand_spec**](DefaultApi.md#v1alpha3vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec | [**v1alpha3vm_port_forward**](DefaultApi.md#v1alpha3vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | [**v1alpha3vm_port_forward_with_protocol**](DefaultApi.md#v1alpha3vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | -[**v1alpha3vm_removeinterface**](DefaultApi.md#v1alpha3vm_removeinterface) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removeinterface | [**v1alpha3vm_removevolume**](DefaultApi.md#v1alpha3vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | [**v1alpha3vmi_addinterface**](DefaultApi.md#v1alpha3vmi_addinterface) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addinterface | [**v1alpha3vmi_addvolume**](DefaultApi.md#v1alpha3vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | @@ -230,7 +229,6 @@ Method | HTTP request | Description [**v1vm_expand_spec**](DefaultApi.md#v1vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec | [**v1vm_port_forward**](DefaultApi.md#v1vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | [**v1vm_port_forward_with_protocol**](DefaultApi.md#v1vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | -[**v1vm_removeinterface**](DefaultApi.md#v1vm_removeinterface) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removeinterface | [**v1vm_removevolume**](DefaultApi.md#v1vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | [**v1vmi_addinterface**](DefaultApi.md#v1vmi_addinterface) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addinterface | [**v1vmi_addvolume**](DefaultApi.md#v1vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | @@ -11073,57 +11071,6 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1alpha3vm_removeinterface** -> str v1alpha3vm_removeinterface(name, namespace, body) - - - -Remove a network interface from a running Virtual Machine - -### Example -```python -from __future__ import print_function -import time -import kubevirt -from kubevirt.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = kubevirt.DefaultApi() -name = 'name_example' # str | Name of the resource -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1RemoveInterfaceOptions() # V1RemoveInterfaceOptions | - -try: - api_response = api_instance.v1alpha3vm_removeinterface(name, namespace, body) - pprint(api_response) -except ApiException as e: - print("Exception when calling DefaultApi->v1alpha3vm_removeinterface: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Name of the resource | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1RemoveInterfaceOptions**](V1RemoveInterfaceOptions.md)| | - -### Return type - -**str** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **v1alpha3vm_removevolume** > str v1alpha3vm_removevolume(name, namespace, body) @@ -11945,57 +11892,6 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1vm_removeinterface** -> str v1vm_removeinterface(name, namespace, body) - - - -Remove a network interface from a running Virtual Machine - -### Example -```python -from __future__ import print_function -import time -import kubevirt -from kubevirt.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = kubevirt.DefaultApi() -name = 'name_example' # str | Name of the resource -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1RemoveInterfaceOptions() # V1RemoveInterfaceOptions | - -try: - api_response = api_instance.v1vm_removeinterface(name, namespace, body) - pprint(api_response) -except ApiException as e: - print("Exception when calling DefaultApi->v1vm_removeinterface: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Name of the resource | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1RemoveInterfaceOptions**](V1RemoveInterfaceOptions.md)| | - -### Return type - -**str** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **v1vm_removevolume** > str v1vm_removevolume(name, namespace, body) diff --git a/git_push.sh b/git_push.sh index e3fb978b..b381b6ce 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-226-gcb3a3673f" + release_note="Auto-generated client v1.0.0-beta.0-216-gcdd927dd0" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 88c1fb51..8d6b0715 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-226-gcb3a3673f/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-216-gcdd927dd0/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 60986a64..aa871d6f 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -23529,116 +23529,6 @@ def v1alpha3vm_port_forward_with_protocol_with_http_info(self, name, namespace, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3vm_removeinterface(self, name, namespace, body, **kwargs): - """ - Remove a network interface from a running Virtual Machine - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1alpha3vm_removeinterface(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RemoveInterfaceOptions body: (required) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.v1alpha3vm_removeinterface_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.v1alpha3vm_removeinterface_with_http_info(name, namespace, body, **kwargs) - return data - - def v1alpha3vm_removeinterface_with_http_info(self, name, namespace, body, **kwargs): - """ - Remove a network interface from a running Virtual Machine - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1alpha3vm_removeinterface_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RemoveInterfaceOptions body: (required) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method v1alpha3vm_removeinterface" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3vm_removeinterface`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vm_removeinterface`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1alpha3vm_removeinterface`") - - - collection_formats = {} - - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removeinterface', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - def v1alpha3vm_removevolume(self, name, namespace, body, **kwargs): """ Removes a volume and disk from a running Virtual Machine. @@ -25435,116 +25325,6 @@ def v1vm_port_forward_with_protocol_with_http_info(self, name, namespace, port, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1vm_removeinterface(self, name, namespace, body, **kwargs): - """ - Remove a network interface from a running Virtual Machine - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1vm_removeinterface(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RemoveInterfaceOptions body: (required) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.v1vm_removeinterface_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.v1vm_removeinterface_with_http_info(name, namespace, body, **kwargs) - return data - - def v1vm_removeinterface_with_http_info(self, name, namespace, body, **kwargs): - """ - Remove a network interface from a running Virtual Machine - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1vm_removeinterface_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RemoveInterfaceOptions body: (required) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method v1vm_removeinterface" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1vm_removeinterface`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1vm_removeinterface`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1vm_removeinterface`") - - - collection_formats = {} - - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removeinterface', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - def v1vm_removevolume(self, name, namespace, body, **kwargs): """ Removes a volume and disk from a running Virtual Machine. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index b0f42da0..656022d8 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-226-gcb3a3673f".\ + "SDK Package Version: v1.0.0-beta.0-216-gcdd927dd0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index 5e91b52c..5b4b155c 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-226-gcb3a3673f" +VERSION = "v1.0.0-beta.0-216-gcdd927dd0" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b3ede683..3792da4e 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-226-gcb3a3673f" +"packageVersion": "v1.0.0-beta.0-216-gcdd927dd0" } diff --git a/test/test_default_api.py b/test/test_default_api.py index d266dba2..9fe5a7d8 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -1692,14 +1692,6 @@ def test_v1alpha3vm_port_forward_with_protocol(self): Test case for v1alpha3vm_port_forward_with_protocol - """ - pass - - def test_v1alpha3vm_removeinterface(self): - """ - Test case for v1alpha3vm_removeinterface - - """ pass @@ -1836,14 +1828,6 @@ def test_v1vm_port_forward_with_protocol(self): Test case for v1vm_port_forward_with_protocol - """ - pass - - def test_v1vm_removeinterface(self): - """ - Test case for v1vm_removeinterface - - """ pass From 375beae94468af359ebf8aba4b5625f7aa5a96a5 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Wed, 7 Jun 2023 16:12:14 +0000 Subject: [PATCH 345/521] Client Python update by KubeVirt Prow build 1666453228713152512 --- README.md | 4 +- docs/DefaultApi.md | 104 +++++++++ docs/V1MigrationConfiguration.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 220 ++++++++++++++++++ kubevirt/configuration.py | 2 +- kubevirt/models/v1_migration_configuration.py | 4 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 16 ++ 11 files changed, 351 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 4037ee12..fb227145 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-216-gcdd927dd0 +- Package version: v1.0.0-beta.0-234-g4cdfcf3b6 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -277,6 +277,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3vm_expand_spec**](docs/DefaultApi.md#v1alpha3vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec | *DefaultApi* | [**v1alpha3vm_port_forward**](docs/DefaultApi.md#v1alpha3vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | *DefaultApi* | [**v1alpha3vm_port_forward_with_protocol**](docs/DefaultApi.md#v1alpha3vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | +*DefaultApi* | [**v1alpha3vm_removeinterface**](docs/DefaultApi.md#v1alpha3vm_removeinterface) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removeinterface | *DefaultApi* | [**v1alpha3vm_removevolume**](docs/DefaultApi.md#v1alpha3vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | *DefaultApi* | [**v1alpha3vmi_addinterface**](docs/DefaultApi.md#v1alpha3vmi_addinterface) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addinterface | *DefaultApi* | [**v1alpha3vmi_addvolume**](docs/DefaultApi.md#v1alpha3vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | @@ -294,6 +295,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1vm_expand_spec**](docs/DefaultApi.md#v1vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec | *DefaultApi* | [**v1vm_port_forward**](docs/DefaultApi.md#v1vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | *DefaultApi* | [**v1vm_port_forward_with_protocol**](docs/DefaultApi.md#v1vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | +*DefaultApi* | [**v1vm_removeinterface**](docs/DefaultApi.md#v1vm_removeinterface) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removeinterface | *DefaultApi* | [**v1vm_removevolume**](docs/DefaultApi.md#v1vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | *DefaultApi* | [**v1vmi_addinterface**](docs/DefaultApi.md#v1vmi_addinterface) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addinterface | *DefaultApi* | [**v1vmi_addvolume**](docs/DefaultApi.md#v1vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 7bdab37f..f28d4db6 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -212,6 +212,7 @@ Method | HTTP request | Description [**v1alpha3vm_expand_spec**](DefaultApi.md#v1alpha3vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec | [**v1alpha3vm_port_forward**](DefaultApi.md#v1alpha3vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | [**v1alpha3vm_port_forward_with_protocol**](DefaultApi.md#v1alpha3vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | +[**v1alpha3vm_removeinterface**](DefaultApi.md#v1alpha3vm_removeinterface) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removeinterface | [**v1alpha3vm_removevolume**](DefaultApi.md#v1alpha3vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | [**v1alpha3vmi_addinterface**](DefaultApi.md#v1alpha3vmi_addinterface) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addinterface | [**v1alpha3vmi_addvolume**](DefaultApi.md#v1alpha3vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | @@ -229,6 +230,7 @@ Method | HTTP request | Description [**v1vm_expand_spec**](DefaultApi.md#v1vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec | [**v1vm_port_forward**](DefaultApi.md#v1vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | [**v1vm_port_forward_with_protocol**](DefaultApi.md#v1vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | +[**v1vm_removeinterface**](DefaultApi.md#v1vm_removeinterface) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removeinterface | [**v1vm_removevolume**](DefaultApi.md#v1vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | [**v1vmi_addinterface**](DefaultApi.md#v1vmi_addinterface) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addinterface | [**v1vmi_addvolume**](DefaultApi.md#v1vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | @@ -11071,6 +11073,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3vm_removeinterface** +> str v1alpha3vm_removeinterface(name, namespace, body) + + + +Remove a network interface from a running Virtual Machine + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1RemoveInterfaceOptions() # V1RemoveInterfaceOptions | + +try: + api_response = api_instance.v1alpha3vm_removeinterface(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3vm_removeinterface: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1RemoveInterfaceOptions**](V1RemoveInterfaceOptions.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3vm_removevolume** > str v1alpha3vm_removevolume(name, namespace, body) @@ -11892,6 +11945,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1vm_removeinterface** +> str v1vm_removeinterface(name, namespace, body) + + + +Remove a network interface from a running Virtual Machine + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1RemoveInterfaceOptions() # V1RemoveInterfaceOptions | + +try: + api_response = api_instance.v1vm_removeinterface(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1vm_removeinterface: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1RemoveInterfaceOptions**](V1RemoveInterfaceOptions.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1vm_removevolume** > str v1vm_removevolume(name, namespace, body) diff --git a/docs/V1MigrationConfiguration.md b/docs/V1MigrationConfiguration.md index 140fcd3b..b34d7110 100644 --- a/docs/V1MigrationConfiguration.md +++ b/docs/V1MigrationConfiguration.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **allow_auto_converge** | **bool** | AllowAutoConverge allows the platform to compromise performance/availability of VMIs to guarantee successful VMI live migrations. Defaults to false | [optional] **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] -**bandwidth_per_migration** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | BandwidthPerMigration limits the amount of network bandwith live migrations are allowed to use. The value is in quantity per second. Defaults to 0 (no limit) | [optional] +**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] **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 800 | [optional] **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] **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] diff --git a/git_push.sh b/git_push.sh index b381b6ce..3f22b151 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-216-gcdd927dd0" + release_note="Auto-generated client v1.0.0-beta.0-234-g4cdfcf3b6" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 8d6b0715..f148e22c 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-216-gcdd927dd0/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-234-g4cdfcf3b6/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index aa871d6f..60986a64 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -23529,6 +23529,116 @@ def v1alpha3vm_port_forward_with_protocol_with_http_info(self, name, namespace, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1alpha3vm_removeinterface(self, name, namespace, body, **kwargs): + """ + Remove a network interface from a running Virtual Machine + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vm_removeinterface(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1RemoveInterfaceOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3vm_removeinterface_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1alpha3vm_removeinterface_with_http_info(name, namespace, body, **kwargs) + return data + + def v1alpha3vm_removeinterface_with_http_info(self, name, namespace, body, **kwargs): + """ + Remove a network interface from a running Virtual Machine + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vm_removeinterface_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1RemoveInterfaceOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3vm_removeinterface" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vm_removeinterface`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vm_removeinterface`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3vm_removeinterface`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removeinterface', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1alpha3vm_removevolume(self, name, namespace, body, **kwargs): """ Removes a volume and disk from a running Virtual Machine. @@ -25325,6 +25435,116 @@ def v1vm_port_forward_with_protocol_with_http_info(self, name, namespace, port, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1vm_removeinterface(self, name, namespace, body, **kwargs): + """ + Remove a network interface from a running Virtual Machine + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1vm_removeinterface(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1RemoveInterfaceOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1vm_removeinterface_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1vm_removeinterface_with_http_info(name, namespace, body, **kwargs) + return data + + def v1vm_removeinterface_with_http_info(self, name, namespace, body, **kwargs): + """ + Remove a network interface from a running Virtual Machine + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1vm_removeinterface_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1RemoveInterfaceOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1vm_removeinterface" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1vm_removeinterface`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1vm_removeinterface`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1vm_removeinterface`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removeinterface', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1vm_removevolume(self, name, namespace, body, **kwargs): """ Removes a volume and disk from a running Virtual Machine. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 656022d8..a04e5462 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-216-gcdd927dd0".\ + "SDK Package Version: v1.0.0-beta.0-234-g4cdfcf3b6".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_migration_configuration.py b/kubevirt/models/v1_migration_configuration.py index 5581dc31..8e3fa5c9 100644 --- a/kubevirt/models/v1_migration_configuration.py +++ b/kubevirt/models/v1_migration_configuration.py @@ -153,7 +153,7 @@ def allow_post_copy(self, allow_post_copy): def bandwidth_per_migration(self): """ Gets the bandwidth_per_migration of this V1MigrationConfiguration. - BandwidthPerMigration limits the amount of network bandwith live migrations are allowed to use. The value is in quantity per second. Defaults to 0 (no limit) + 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) :return: The bandwidth_per_migration of this V1MigrationConfiguration. :rtype: K8sIoApimachineryPkgApiResourceQuantity @@ -164,7 +164,7 @@ def bandwidth_per_migration(self): def bandwidth_per_migration(self, bandwidth_per_migration): """ Sets the bandwidth_per_migration of this V1MigrationConfiguration. - BandwidthPerMigration limits the amount of network bandwith live migrations are allowed to use. The value is in quantity per second. Defaults to 0 (no limit) + 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) :param bandwidth_per_migration: The bandwidth_per_migration of this V1MigrationConfiguration. :type: K8sIoApimachineryPkgApiResourceQuantity diff --git a/setup.py b/setup.py index 5b4b155c..62fd29bc 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-216-gcdd927dd0" +VERSION = "v1.0.0-beta.0-234-g4cdfcf3b6" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 3792da4e..09da4329 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-216-gcdd927dd0" +"packageVersion": "v1.0.0-beta.0-234-g4cdfcf3b6" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 9fe5a7d8..d266dba2 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -1692,6 +1692,14 @@ def test_v1alpha3vm_port_forward_with_protocol(self): Test case for v1alpha3vm_port_forward_with_protocol + """ + pass + + def test_v1alpha3vm_removeinterface(self): + """ + Test case for v1alpha3vm_removeinterface + + """ pass @@ -1828,6 +1836,14 @@ def test_v1vm_port_forward_with_protocol(self): Test case for v1vm_port_forward_with_protocol + """ + pass + + def test_v1vm_removeinterface(self): + """ + Test case for v1vm_removeinterface + + """ pass From fbc87d3c4434941cc3638c6337cc2cebbebd2898 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Thu, 8 Jun 2023 01:38:31 +0000 Subject: [PATCH 346/521] Client Python update by KubeVirt Prow build 1666609710112968704 --- README.md | 2 +- docs/V1beta1CPUPreferences.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1beta1_cpu_preferences.py | 30 +++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index fb227145..e70d75df 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-234-g4cdfcf3b6 +- Package version: v1.0.0-beta.0-240-g4d7659ad5 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1CPUPreferences.md b/docs/V1beta1CPUPreferences.md index f6081d50..f975979e 100644 --- a/docs/V1beta1CPUPreferences.md +++ b/docs/V1beta1CPUPreferences.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**preferred_cpu_features** | [**list[V1CPUFeature]**](V1CPUFeature.md) | PreferredCPUFeatures optionally defines a slice of preferred CPU features. | [optional] **preferred_cpu_topology** | **str** | PreferredCPUTopology optionally defines the preferred guest visible CPU topology, defaults to PreferSockets. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 3f22b151..f5e58795 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-234-g4cdfcf3b6" + release_note="Auto-generated client v1.0.0-beta.0-240-g4d7659ad5" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index f148e22c..bd4edc57 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-234-g4cdfcf3b6/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-240-g4d7659ad5/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index a04e5462..9e01dca5 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-234-g4cdfcf3b6".\ + "SDK Package Version: v1.0.0-beta.0-240-g4d7659ad5".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_cpu_preferences.py b/kubevirt/models/v1beta1_cpu_preferences.py index 853c3ad6..6d48fdbd 100644 --- a/kubevirt/models/v1beta1_cpu_preferences.py +++ b/kubevirt/models/v1beta1_cpu_preferences.py @@ -31,23 +31,51 @@ class V1beta1CPUPreferences(object): and the value is json key in definition. """ swagger_types = { + 'preferred_cpu_features': 'list[V1CPUFeature]', 'preferred_cpu_topology': 'str' } attribute_map = { + 'preferred_cpu_features': 'preferredCPUFeatures', 'preferred_cpu_topology': 'preferredCPUTopology' } - def __init__(self, preferred_cpu_topology=None): + def __init__(self, preferred_cpu_features=None, preferred_cpu_topology=None): """ V1beta1CPUPreferences - a model defined in Swagger """ + self._preferred_cpu_features = None self._preferred_cpu_topology = None + if preferred_cpu_features is not None: + self.preferred_cpu_features = preferred_cpu_features if preferred_cpu_topology is not None: self.preferred_cpu_topology = preferred_cpu_topology + @property + def preferred_cpu_features(self): + """ + Gets the preferred_cpu_features of this V1beta1CPUPreferences. + PreferredCPUFeatures optionally defines a slice of preferred CPU features. + + :return: The preferred_cpu_features of this V1beta1CPUPreferences. + :rtype: list[V1CPUFeature] + """ + return self._preferred_cpu_features + + @preferred_cpu_features.setter + def preferred_cpu_features(self, preferred_cpu_features): + """ + Sets the preferred_cpu_features of this V1beta1CPUPreferences. + PreferredCPUFeatures optionally defines a slice of preferred CPU features. + + :param preferred_cpu_features: The preferred_cpu_features of this V1beta1CPUPreferences. + :type: list[V1CPUFeature] + """ + + self._preferred_cpu_features = preferred_cpu_features + @property def preferred_cpu_topology(self): """ diff --git a/setup.py b/setup.py index 62fd29bc..bbed9f1c 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-234-g4cdfcf3b6" +VERSION = "v1.0.0-beta.0-240-g4d7659ad5" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 09da4329..58634c51 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-234-g4cdfcf3b6" +"packageVersion": "v1.0.0-beta.0-240-g4d7659ad5" } From de796517c705e2a9a5e41842a537f33b87b4658f Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 9 Jun 2023 11:43:28 +0000 Subject: [PATCH 347/521] Client Python update by KubeVirt Prow build 1667119523330789376 --- README.md | 3 +- docs/V1beta1DataVolumeSource.md | 1 + docs/V1beta1DataVolumeSourceGCS.md | 11 ++ docs/V1beta1StorageSpec.md | 2 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1beta1_data_volume_source.py | 28 +++- .../models/v1beta1_data_volume_source_gcs.py | 154 ++++++++++++++++++ kubevirt/models/v1beta1_storage_spec.py | 6 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1beta1_data_volume_source_gcs.py | 44 +++++ 16 files changed, 253 insertions(+), 11 deletions(-) create mode 100644 docs/V1beta1DataVolumeSourceGCS.md create mode 100644 kubevirt/models/v1beta1_data_volume_source_gcs.py create mode 100644 test/test_v1beta1_data_volume_source_gcs.py diff --git a/README.md b/README.md index e70d75df..263af7a6 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-240-g4d7659ad5 +- Package version: v1.0.0-beta.0-258-g251b1a45b - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -644,6 +644,7 @@ Class | Method | HTTP request | Description - [V1beta1DataVolumeBlankImage](docs/V1beta1DataVolumeBlankImage.md) - [V1beta1DataVolumeCheckpoint](docs/V1beta1DataVolumeCheckpoint.md) - [V1beta1DataVolumeSource](docs/V1beta1DataVolumeSource.md) + - [V1beta1DataVolumeSourceGCS](docs/V1beta1DataVolumeSourceGCS.md) - [V1beta1DataVolumeSourceHTTP](docs/V1beta1DataVolumeSourceHTTP.md) - [V1beta1DataVolumeSourceImageIO](docs/V1beta1DataVolumeSourceImageIO.md) - [V1beta1DataVolumeSourcePVC](docs/V1beta1DataVolumeSourcePVC.md) diff --git a/docs/V1beta1DataVolumeSource.md b/docs/V1beta1DataVolumeSource.md index 9b4f91fc..1d1a3dce 100644 --- a/docs/V1beta1DataVolumeSource.md +++ b/docs/V1beta1DataVolumeSource.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **blank** | [**V1beta1DataVolumeBlankImage**](V1beta1DataVolumeBlankImage.md) | | [optional] +**gcs** | [**V1beta1DataVolumeSourceGCS**](V1beta1DataVolumeSourceGCS.md) | | [optional] **http** | [**V1beta1DataVolumeSourceHTTP**](V1beta1DataVolumeSourceHTTP.md) | | [optional] **imageio** | [**V1beta1DataVolumeSourceImageIO**](V1beta1DataVolumeSourceImageIO.md) | | [optional] **pvc** | [**V1beta1DataVolumeSourcePVC**](V1beta1DataVolumeSourcePVC.md) | | [optional] diff --git a/docs/V1beta1DataVolumeSourceGCS.md b/docs/V1beta1DataVolumeSourceGCS.md new file mode 100644 index 00000000..789d3bde --- /dev/null +++ b/docs/V1beta1DataVolumeSourceGCS.md @@ -0,0 +1,11 @@ +# V1beta1DataVolumeSourceGCS + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**secret_ref** | **str** | SecretRef provides the secret reference needed to access the GCS source | [optional] +**url** | **str** | URL is the url of the GCS source | [default to ''] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1StorageSpec.md b/docs/V1beta1StorageSpec.md index 4b3d24d4..d3785efa 100644 --- a/docs/V1beta1StorageSpec.md +++ b/docs/V1beta1StorageSpec.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **access_modes** | **list[str]** | AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] **data_source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) * An existing custom resource that implements data population (Alpha) In order to use custom resource types that implement data population, the AnyVolumeDataSource feature gate must be enabled. If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. | [optional] -**data_source_ref** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. | [optional] +**data_source_ref** | [**K8sIoApiCoreV1TypedObjectReference**](K8sIoApiCoreV1TypedObjectReference.md) | Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. | [optional] **resources** | [**K8sIoApiCoreV1ResourceRequirements**](K8sIoApiCoreV1ResourceRequirements.md) | Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources | [optional] **selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | A label query over volumes to consider for binding. | [optional] **storage_class_name** | **str** | Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] diff --git a/git_push.sh b/git_push.sh index f5e58795..221c12cd 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-240-g4d7659ad5" + release_note="Auto-generated client v1.0.0-beta.0-258-g251b1a45b" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index ab8a9ceb..0612d3e8 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -942,6 +942,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/v1beta1_data_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_data_volume_source_gcs.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_source_gcs.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeSourceGCS.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_data_volume_source_http.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_source_http.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeSourceHTTP.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 8980ca3d..5b9994a4 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -321,6 +321,7 @@ from .models.v1beta1_data_volume_blank_image import V1beta1DataVolumeBlankImage from .models.v1beta1_data_volume_checkpoint import V1beta1DataVolumeCheckpoint from .models.v1beta1_data_volume_source import V1beta1DataVolumeSource +from .models.v1beta1_data_volume_source_gcs import V1beta1DataVolumeSourceGCS from .models.v1beta1_data_volume_source_http import V1beta1DataVolumeSourceHTTP from .models.v1beta1_data_volume_source_image_io import V1beta1DataVolumeSourceImageIO from .models.v1beta1_data_volume_source_pvc import V1beta1DataVolumeSourcePVC diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index bd4edc57..319e5676 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-240-g4d7659ad5/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-258-g251b1a45b/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 9e01dca5..7d510db3 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-240-g4d7659ad5".\ + "SDK Package Version: v1.0.0-beta.0-258-g251b1a45b".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 504360e7..53843e47 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -321,6 +321,7 @@ from .v1beta1_data_volume_blank_image import V1beta1DataVolumeBlankImage from .v1beta1_data_volume_checkpoint import V1beta1DataVolumeCheckpoint from .v1beta1_data_volume_source import V1beta1DataVolumeSource +from .v1beta1_data_volume_source_gcs import V1beta1DataVolumeSourceGCS from .v1beta1_data_volume_source_http import V1beta1DataVolumeSourceHTTP from .v1beta1_data_volume_source_image_io import V1beta1DataVolumeSourceImageIO from .v1beta1_data_volume_source_pvc import V1beta1DataVolumeSourcePVC diff --git a/kubevirt/models/v1beta1_data_volume_source.py b/kubevirt/models/v1beta1_data_volume_source.py index ef29ff1a..70f18d4f 100644 --- a/kubevirt/models/v1beta1_data_volume_source.py +++ b/kubevirt/models/v1beta1_data_volume_source.py @@ -32,6 +32,7 @@ class V1beta1DataVolumeSource(object): """ swagger_types = { 'blank': 'V1beta1DataVolumeBlankImage', + 'gcs': 'V1beta1DataVolumeSourceGCS', 'http': 'V1beta1DataVolumeSourceHTTP', 'imageio': 'V1beta1DataVolumeSourceImageIO', 'pvc': 'V1beta1DataVolumeSourcePVC', @@ -44,6 +45,7 @@ class V1beta1DataVolumeSource(object): attribute_map = { 'blank': 'blank', + 'gcs': 'gcs', 'http': 'http', 'imageio': 'imageio', 'pvc': 'pvc', @@ -54,12 +56,13 @@ class V1beta1DataVolumeSource(object): 'vddk': 'vddk' } - def __init__(self, blank=None, http=None, imageio=None, pvc=None, registry=None, s3=None, snapshot=None, upload=None, vddk=None): + def __init__(self, blank=None, gcs=None, http=None, imageio=None, pvc=None, registry=None, s3=None, snapshot=None, upload=None, vddk=None): """ V1beta1DataVolumeSource - a model defined in Swagger """ self._blank = None + self._gcs = None self._http = None self._imageio = None self._pvc = None @@ -71,6 +74,8 @@ def __init__(self, blank=None, http=None, imageio=None, pvc=None, registry=None, if blank is not None: self.blank = blank + if gcs is not None: + self.gcs = gcs if http is not None: self.http = http if imageio is not None: @@ -109,6 +114,27 @@ def blank(self, blank): self._blank = blank + @property + def gcs(self): + """ + Gets the gcs of this V1beta1DataVolumeSource. + + :return: The gcs of this V1beta1DataVolumeSource. + :rtype: V1beta1DataVolumeSourceGCS + """ + return self._gcs + + @gcs.setter + def gcs(self, gcs): + """ + Sets the gcs of this V1beta1DataVolumeSource. + + :param gcs: The gcs of this V1beta1DataVolumeSource. + :type: V1beta1DataVolumeSourceGCS + """ + + self._gcs = gcs + @property def http(self): """ diff --git a/kubevirt/models/v1beta1_data_volume_source_gcs.py b/kubevirt/models/v1beta1_data_volume_source_gcs.py new file mode 100644 index 00000000..9c82c127 --- /dev/null +++ b/kubevirt/models/v1beta1_data_volume_source_gcs.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1DataVolumeSourceGCS(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'secret_ref': 'str', + 'url': 'str' + } + + attribute_map = { + 'secret_ref': 'secretRef', + 'url': 'url' + } + + def __init__(self, secret_ref=None, url=''): + """ + V1beta1DataVolumeSourceGCS - a model defined in Swagger + """ + + self._secret_ref = None + self._url = None + + if secret_ref is not None: + self.secret_ref = secret_ref + self.url = url + + @property + def secret_ref(self): + """ + Gets the secret_ref of this V1beta1DataVolumeSourceGCS. + SecretRef provides the secret reference needed to access the GCS source + + :return: The secret_ref of this V1beta1DataVolumeSourceGCS. + :rtype: str + """ + return self._secret_ref + + @secret_ref.setter + def secret_ref(self, secret_ref): + """ + Sets the secret_ref of this V1beta1DataVolumeSourceGCS. + SecretRef provides the secret reference needed to access the GCS source + + :param secret_ref: The secret_ref of this V1beta1DataVolumeSourceGCS. + :type: str + """ + + self._secret_ref = secret_ref + + @property + def url(self): + """ + Gets the url of this V1beta1DataVolumeSourceGCS. + URL is the url of the GCS source + + :return: The url of this V1beta1DataVolumeSourceGCS. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """ + Sets the url of this V1beta1DataVolumeSourceGCS. + URL is the url of the GCS source + + :param url: The url of this V1beta1DataVolumeSourceGCS. + :type: str + """ + if url is None: + raise ValueError("Invalid value for `url`, must not be `None`") + + self._url = url + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1beta1DataVolumeSourceGCS): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1beta1_storage_spec.py b/kubevirt/models/v1beta1_storage_spec.py index 3a7579e0..73606b95 100644 --- a/kubevirt/models/v1beta1_storage_spec.py +++ b/kubevirt/models/v1beta1_storage_spec.py @@ -33,7 +33,7 @@ class V1beta1StorageSpec(object): swagger_types = { 'access_modes': 'list[str]', 'data_source': 'K8sIoApiCoreV1TypedLocalObjectReference', - 'data_source_ref': 'K8sIoApiCoreV1TypedLocalObjectReference', + 'data_source_ref': 'K8sIoApiCoreV1TypedObjectReference', 'resources': 'K8sIoApiCoreV1ResourceRequirements', 'selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', 'storage_class_name': 'str', @@ -136,7 +136,7 @@ def data_source_ref(self): Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. :return: The data_source_ref of this V1beta1StorageSpec. - :rtype: K8sIoApiCoreV1TypedLocalObjectReference + :rtype: K8sIoApiCoreV1TypedObjectReference """ return self._data_source_ref @@ -147,7 +147,7 @@ def data_source_ref(self, data_source_ref): Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. :param data_source_ref: The data_source_ref of this V1beta1StorageSpec. - :type: K8sIoApiCoreV1TypedLocalObjectReference + :type: K8sIoApiCoreV1TypedObjectReference """ self._data_source_ref = data_source_ref diff --git a/setup.py b/setup.py index bbed9f1c..c7e3c95e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-240-g4d7659ad5" +VERSION = "v1.0.0-beta.0-258-g251b1a45b" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 58634c51..3d376740 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-240-g4d7659ad5" +"packageVersion": "v1.0.0-beta.0-258-g251b1a45b" } diff --git a/test/test_v1beta1_data_volume_source_gcs.py b/test/test_v1beta1_data_volume_source_gcs.py new file mode 100644 index 00000000..c0bde8f0 --- /dev/null +++ b/test/test_v1beta1_data_volume_source_gcs.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_data_volume_source_gcs import V1beta1DataVolumeSourceGCS + + +class TestV1beta1DataVolumeSourceGCS(unittest.TestCase): + """ V1beta1DataVolumeSourceGCS unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DataVolumeSourceGCS(self): + """ + Test V1beta1DataVolumeSourceGCS + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_data_volume_source_gcs.V1beta1DataVolumeSourceGCS() + pass + + +if __name__ == '__main__': + unittest.main() From b46ca2017404b8efef411af5b9529882f46c474c Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 9 Jun 2023 11:56:29 +0000 Subject: [PATCH 348/521] Client Python update by KubeVirt Prow build 1667119495535136768 --- README.md | 3 +- docs/V1beta1DataVolumeSource.md | 1 - docs/V1beta1DataVolumeSourceGCS.md | 11 -- docs/V1beta1StorageSpec.md | 2 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 - kubevirt/__init__.py | 1 - kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 - kubevirt/models/v1beta1_data_volume_source.py | 28 +--- .../models/v1beta1_data_volume_source_gcs.py | 154 ------------------ kubevirt/models/v1beta1_storage_spec.py | 6 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1beta1_data_volume_source_gcs.py | 44 ----- 16 files changed, 11 insertions(+), 253 deletions(-) delete mode 100644 docs/V1beta1DataVolumeSourceGCS.md delete mode 100644 kubevirt/models/v1beta1_data_volume_source_gcs.py delete mode 100644 test/test_v1beta1_data_volume_source_gcs.py diff --git a/README.md b/README.md index 263af7a6..07afefc5 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-258-g251b1a45b +- Package version: v1.0.0-beta.0-255-g31b8602c3 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -644,7 +644,6 @@ Class | Method | HTTP request | Description - [V1beta1DataVolumeBlankImage](docs/V1beta1DataVolumeBlankImage.md) - [V1beta1DataVolumeCheckpoint](docs/V1beta1DataVolumeCheckpoint.md) - [V1beta1DataVolumeSource](docs/V1beta1DataVolumeSource.md) - - [V1beta1DataVolumeSourceGCS](docs/V1beta1DataVolumeSourceGCS.md) - [V1beta1DataVolumeSourceHTTP](docs/V1beta1DataVolumeSourceHTTP.md) - [V1beta1DataVolumeSourceImageIO](docs/V1beta1DataVolumeSourceImageIO.md) - [V1beta1DataVolumeSourcePVC](docs/V1beta1DataVolumeSourcePVC.md) diff --git a/docs/V1beta1DataVolumeSource.md b/docs/V1beta1DataVolumeSource.md index 1d1a3dce..9b4f91fc 100644 --- a/docs/V1beta1DataVolumeSource.md +++ b/docs/V1beta1DataVolumeSource.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **blank** | [**V1beta1DataVolumeBlankImage**](V1beta1DataVolumeBlankImage.md) | | [optional] -**gcs** | [**V1beta1DataVolumeSourceGCS**](V1beta1DataVolumeSourceGCS.md) | | [optional] **http** | [**V1beta1DataVolumeSourceHTTP**](V1beta1DataVolumeSourceHTTP.md) | | [optional] **imageio** | [**V1beta1DataVolumeSourceImageIO**](V1beta1DataVolumeSourceImageIO.md) | | [optional] **pvc** | [**V1beta1DataVolumeSourcePVC**](V1beta1DataVolumeSourcePVC.md) | | [optional] diff --git a/docs/V1beta1DataVolumeSourceGCS.md b/docs/V1beta1DataVolumeSourceGCS.md deleted file mode 100644 index 789d3bde..00000000 --- a/docs/V1beta1DataVolumeSourceGCS.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1beta1DataVolumeSourceGCS - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**secret_ref** | **str** | SecretRef provides the secret reference needed to access the GCS source | [optional] -**url** | **str** | URL is the url of the GCS source | [default to ''] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1beta1StorageSpec.md b/docs/V1beta1StorageSpec.md index d3785efa..4b3d24d4 100644 --- a/docs/V1beta1StorageSpec.md +++ b/docs/V1beta1StorageSpec.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **access_modes** | **list[str]** | AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] **data_source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) * An existing custom resource that implements data population (Alpha) In order to use custom resource types that implement data population, the AnyVolumeDataSource feature gate must be enabled. If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. | [optional] -**data_source_ref** | [**K8sIoApiCoreV1TypedObjectReference**](K8sIoApiCoreV1TypedObjectReference.md) | Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. | [optional] +**data_source_ref** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. | [optional] **resources** | [**K8sIoApiCoreV1ResourceRequirements**](K8sIoApiCoreV1ResourceRequirements.md) | Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources | [optional] **selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | A label query over volumes to consider for binding. | [optional] **storage_class_name** | **str** | Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] diff --git a/git_push.sh b/git_push.sh index 221c12cd..39de3708 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-258-g251b1a45b" + release_note="Auto-generated client v1.0.0-beta.0-255-g31b8602c3" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 0612d3e8..ab8a9ceb 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -942,9 +942,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/v1beta1_data_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeSource.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_data_volume_source_gcs.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_source_gcs.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeSourceGCS.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_data_volume_source_http.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_source_http.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeSourceHTTP.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 5b9994a4..8980ca3d 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -321,7 +321,6 @@ from .models.v1beta1_data_volume_blank_image import V1beta1DataVolumeBlankImage from .models.v1beta1_data_volume_checkpoint import V1beta1DataVolumeCheckpoint from .models.v1beta1_data_volume_source import V1beta1DataVolumeSource -from .models.v1beta1_data_volume_source_gcs import V1beta1DataVolumeSourceGCS from .models.v1beta1_data_volume_source_http import V1beta1DataVolumeSourceHTTP from .models.v1beta1_data_volume_source_image_io import V1beta1DataVolumeSourceImageIO from .models.v1beta1_data_volume_source_pvc import V1beta1DataVolumeSourcePVC diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 319e5676..97a9c677 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-258-g251b1a45b/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-255-g31b8602c3/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 7d510db3..84dc3e16 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-258-g251b1a45b".\ + "SDK Package Version: v1.0.0-beta.0-255-g31b8602c3".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 53843e47..504360e7 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -321,7 +321,6 @@ from .v1beta1_data_volume_blank_image import V1beta1DataVolumeBlankImage from .v1beta1_data_volume_checkpoint import V1beta1DataVolumeCheckpoint from .v1beta1_data_volume_source import V1beta1DataVolumeSource -from .v1beta1_data_volume_source_gcs import V1beta1DataVolumeSourceGCS from .v1beta1_data_volume_source_http import V1beta1DataVolumeSourceHTTP from .v1beta1_data_volume_source_image_io import V1beta1DataVolumeSourceImageIO from .v1beta1_data_volume_source_pvc import V1beta1DataVolumeSourcePVC diff --git a/kubevirt/models/v1beta1_data_volume_source.py b/kubevirt/models/v1beta1_data_volume_source.py index 70f18d4f..ef29ff1a 100644 --- a/kubevirt/models/v1beta1_data_volume_source.py +++ b/kubevirt/models/v1beta1_data_volume_source.py @@ -32,7 +32,6 @@ class V1beta1DataVolumeSource(object): """ swagger_types = { 'blank': 'V1beta1DataVolumeBlankImage', - 'gcs': 'V1beta1DataVolumeSourceGCS', 'http': 'V1beta1DataVolumeSourceHTTP', 'imageio': 'V1beta1DataVolumeSourceImageIO', 'pvc': 'V1beta1DataVolumeSourcePVC', @@ -45,7 +44,6 @@ class V1beta1DataVolumeSource(object): attribute_map = { 'blank': 'blank', - 'gcs': 'gcs', 'http': 'http', 'imageio': 'imageio', 'pvc': 'pvc', @@ -56,13 +54,12 @@ class V1beta1DataVolumeSource(object): 'vddk': 'vddk' } - def __init__(self, blank=None, gcs=None, http=None, imageio=None, pvc=None, registry=None, s3=None, snapshot=None, upload=None, vddk=None): + def __init__(self, blank=None, http=None, imageio=None, pvc=None, registry=None, s3=None, snapshot=None, upload=None, vddk=None): """ V1beta1DataVolumeSource - a model defined in Swagger """ self._blank = None - self._gcs = None self._http = None self._imageio = None self._pvc = None @@ -74,8 +71,6 @@ def __init__(self, blank=None, gcs=None, http=None, imageio=None, pvc=None, regi if blank is not None: self.blank = blank - if gcs is not None: - self.gcs = gcs if http is not None: self.http = http if imageio is not None: @@ -114,27 +109,6 @@ def blank(self, blank): self._blank = blank - @property - def gcs(self): - """ - Gets the gcs of this V1beta1DataVolumeSource. - - :return: The gcs of this V1beta1DataVolumeSource. - :rtype: V1beta1DataVolumeSourceGCS - """ - return self._gcs - - @gcs.setter - def gcs(self, gcs): - """ - Sets the gcs of this V1beta1DataVolumeSource. - - :param gcs: The gcs of this V1beta1DataVolumeSource. - :type: V1beta1DataVolumeSourceGCS - """ - - self._gcs = gcs - @property def http(self): """ diff --git a/kubevirt/models/v1beta1_data_volume_source_gcs.py b/kubevirt/models/v1beta1_data_volume_source_gcs.py deleted file mode 100644 index 9c82c127..00000000 --- a/kubevirt/models/v1beta1_data_volume_source_gcs.py +++ /dev/null @@ -1,154 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1beta1DataVolumeSourceGCS(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'secret_ref': 'str', - 'url': 'str' - } - - attribute_map = { - 'secret_ref': 'secretRef', - 'url': 'url' - } - - def __init__(self, secret_ref=None, url=''): - """ - V1beta1DataVolumeSourceGCS - a model defined in Swagger - """ - - self._secret_ref = None - self._url = None - - if secret_ref is not None: - self.secret_ref = secret_ref - self.url = url - - @property - def secret_ref(self): - """ - Gets the secret_ref of this V1beta1DataVolumeSourceGCS. - SecretRef provides the secret reference needed to access the GCS source - - :return: The secret_ref of this V1beta1DataVolumeSourceGCS. - :rtype: str - """ - return self._secret_ref - - @secret_ref.setter - def secret_ref(self, secret_ref): - """ - Sets the secret_ref of this V1beta1DataVolumeSourceGCS. - SecretRef provides the secret reference needed to access the GCS source - - :param secret_ref: The secret_ref of this V1beta1DataVolumeSourceGCS. - :type: str - """ - - self._secret_ref = secret_ref - - @property - def url(self): - """ - Gets the url of this V1beta1DataVolumeSourceGCS. - URL is the url of the GCS source - - :return: The url of this V1beta1DataVolumeSourceGCS. - :rtype: str - """ - return self._url - - @url.setter - def url(self, url): - """ - Sets the url of this V1beta1DataVolumeSourceGCS. - URL is the url of the GCS source - - :param url: The url of this V1beta1DataVolumeSourceGCS. - :type: str - """ - if url is None: - raise ValueError("Invalid value for `url`, must not be `None`") - - self._url = url - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1beta1DataVolumeSourceGCS): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1beta1_storage_spec.py b/kubevirt/models/v1beta1_storage_spec.py index 73606b95..3a7579e0 100644 --- a/kubevirt/models/v1beta1_storage_spec.py +++ b/kubevirt/models/v1beta1_storage_spec.py @@ -33,7 +33,7 @@ class V1beta1StorageSpec(object): swagger_types = { 'access_modes': 'list[str]', 'data_source': 'K8sIoApiCoreV1TypedLocalObjectReference', - 'data_source_ref': 'K8sIoApiCoreV1TypedObjectReference', + 'data_source_ref': 'K8sIoApiCoreV1TypedLocalObjectReference', 'resources': 'K8sIoApiCoreV1ResourceRequirements', 'selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', 'storage_class_name': 'str', @@ -136,7 +136,7 @@ def data_source_ref(self): Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. :return: The data_source_ref of this V1beta1StorageSpec. - :rtype: K8sIoApiCoreV1TypedObjectReference + :rtype: K8sIoApiCoreV1TypedLocalObjectReference """ return self._data_source_ref @@ -147,7 +147,7 @@ def data_source_ref(self, data_source_ref): Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. :param data_source_ref: The data_source_ref of this V1beta1StorageSpec. - :type: K8sIoApiCoreV1TypedObjectReference + :type: K8sIoApiCoreV1TypedLocalObjectReference """ self._data_source_ref = data_source_ref diff --git a/setup.py b/setup.py index c7e3c95e..41aaef5a 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-258-g251b1a45b" +VERSION = "v1.0.0-beta.0-255-g31b8602c3" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 3d376740..78b1ac3f 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-258-g251b1a45b" +"packageVersion": "v1.0.0-beta.0-255-g31b8602c3" } diff --git a/test/test_v1beta1_data_volume_source_gcs.py b/test/test_v1beta1_data_volume_source_gcs.py deleted file mode 100644 index c0bde8f0..00000000 --- a/test/test_v1beta1_data_volume_source_gcs.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1beta1_data_volume_source_gcs import V1beta1DataVolumeSourceGCS - - -class TestV1beta1DataVolumeSourceGCS(unittest.TestCase): - """ V1beta1DataVolumeSourceGCS unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1DataVolumeSourceGCS(self): - """ - Test V1beta1DataVolumeSourceGCS - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1beta1_data_volume_source_gcs.V1beta1DataVolumeSourceGCS() - pass - - -if __name__ == '__main__': - unittest.main() From 0c91f0db79b4dd4a5b9525afdd0dd632358161c9 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 9 Jun 2023 21:01:42 +0000 Subject: [PATCH 349/521] Client Python update by KubeVirt Prow build 1667262572870504448 --- README.md | 6 +- docs/V1beta1CPUPreferenceRequirement.md | 10 ++ docs/V1beta1DataVolumeSource.md | 1 + docs/V1beta1DataVolumeSourceGCS.md | 11 ++ docs/V1beta1MemoryInstancetype.md | 1 + docs/V1beta1MemoryPreferenceRequirement.md | 10 ++ docs/V1beta1PreferenceRequirements.md | 11 ++ docs/V1beta1StorageSpec.md | 2 +- docs/V1beta1VirtualMachinePreferenceSpec.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 12 ++ kubevirt/__init__.py | 4 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 4 + .../v1beta1_cpu_preference_requirement.py | 126 ++++++++++++++ kubevirt/models/v1beta1_data_volume_source.py | 28 +++- .../models/v1beta1_data_volume_source_gcs.py | 154 ++++++++++++++++++ .../models/v1beta1_memory_instancetype.py | 34 +++- .../v1beta1_memory_preference_requirement.py | 126 ++++++++++++++ .../models/v1beta1_preference_requirements.py | 153 +++++++++++++++++ kubevirt/models/v1beta1_storage_spec.py | 6 +- ...v1beta1_virtual_machine_preference_spec.py | 30 +++- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...test_v1beta1_cpu_preference_requirement.py | 44 +++++ test/test_v1beta1_data_volume_source_gcs.py | 44 +++++ ...t_v1beta1_memory_preference_requirement.py | 44 +++++ test/test_v1beta1_preference_requirements.py | 44 +++++ 29 files changed, 901 insertions(+), 15 deletions(-) create mode 100644 docs/V1beta1CPUPreferenceRequirement.md create mode 100644 docs/V1beta1DataVolumeSourceGCS.md create mode 100644 docs/V1beta1MemoryPreferenceRequirement.md create mode 100644 docs/V1beta1PreferenceRequirements.md create mode 100644 kubevirt/models/v1beta1_cpu_preference_requirement.py create mode 100644 kubevirt/models/v1beta1_data_volume_source_gcs.py create mode 100644 kubevirt/models/v1beta1_memory_preference_requirement.py create mode 100644 kubevirt/models/v1beta1_preference_requirements.py create mode 100644 test/test_v1beta1_cpu_preference_requirement.py create mode 100644 test/test_v1beta1_data_volume_source_gcs.py create mode 100644 test/test_v1beta1_memory_preference_requirement.py create mode 100644 test/test_v1beta1_preference_requirements.py diff --git a/README.md b/README.md index 07afefc5..726e0a84 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-255-g31b8602c3 +- Package version: v1.0.0-beta.0-267-g524067988 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -639,11 +639,13 @@ Class | Method | HTTP request | Description - [V1alpha1VolumeRestore](docs/V1alpha1VolumeRestore.md) - [V1alpha1VolumeSnapshotStatus](docs/V1alpha1VolumeSnapshotStatus.md) - [V1beta1CPUInstancetype](docs/V1beta1CPUInstancetype.md) + - [V1beta1CPUPreferenceRequirement](docs/V1beta1CPUPreferenceRequirement.md) - [V1beta1CPUPreferences](docs/V1beta1CPUPreferences.md) - [V1beta1ClockPreferences](docs/V1beta1ClockPreferences.md) - [V1beta1DataVolumeBlankImage](docs/V1beta1DataVolumeBlankImage.md) - [V1beta1DataVolumeCheckpoint](docs/V1beta1DataVolumeCheckpoint.md) - [V1beta1DataVolumeSource](docs/V1beta1DataVolumeSource.md) + - [V1beta1DataVolumeSourceGCS](docs/V1beta1DataVolumeSourceGCS.md) - [V1beta1DataVolumeSourceHTTP](docs/V1beta1DataVolumeSourceHTTP.md) - [V1beta1DataVolumeSourceImageIO](docs/V1beta1DataVolumeSourceImageIO.md) - [V1beta1DataVolumeSourcePVC](docs/V1beta1DataVolumeSourcePVC.md) @@ -659,6 +661,8 @@ Class | Method | HTTP request | Description - [V1beta1FirmwarePreferences](docs/V1beta1FirmwarePreferences.md) - [V1beta1MachinePreferences](docs/V1beta1MachinePreferences.md) - [V1beta1MemoryInstancetype](docs/V1beta1MemoryInstancetype.md) + - [V1beta1MemoryPreferenceRequirement](docs/V1beta1MemoryPreferenceRequirement.md) + - [V1beta1PreferenceRequirements](docs/V1beta1PreferenceRequirements.md) - [V1beta1StorageSpec](docs/V1beta1StorageSpec.md) - [V1beta1VirtualMachineClusterInstancetype](docs/V1beta1VirtualMachineClusterInstancetype.md) - [V1beta1VirtualMachineClusterInstancetypeList](docs/V1beta1VirtualMachineClusterInstancetypeList.md) diff --git a/docs/V1beta1CPUPreferenceRequirement.md b/docs/V1beta1CPUPreferenceRequirement.md new file mode 100644 index 00000000..f51c58ea --- /dev/null +++ b/docs/V1beta1CPUPreferenceRequirement.md @@ -0,0 +1,10 @@ +# V1beta1CPUPreferenceRequirement + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guest** | **int** | Minimal number of vCPUs required by the preference. | [default to 0] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1DataVolumeSource.md b/docs/V1beta1DataVolumeSource.md index 9b4f91fc..1d1a3dce 100644 --- a/docs/V1beta1DataVolumeSource.md +++ b/docs/V1beta1DataVolumeSource.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **blank** | [**V1beta1DataVolumeBlankImage**](V1beta1DataVolumeBlankImage.md) | | [optional] +**gcs** | [**V1beta1DataVolumeSourceGCS**](V1beta1DataVolumeSourceGCS.md) | | [optional] **http** | [**V1beta1DataVolumeSourceHTTP**](V1beta1DataVolumeSourceHTTP.md) | | [optional] **imageio** | [**V1beta1DataVolumeSourceImageIO**](V1beta1DataVolumeSourceImageIO.md) | | [optional] **pvc** | [**V1beta1DataVolumeSourcePVC**](V1beta1DataVolumeSourcePVC.md) | | [optional] diff --git a/docs/V1beta1DataVolumeSourceGCS.md b/docs/V1beta1DataVolumeSourceGCS.md new file mode 100644 index 00000000..789d3bde --- /dev/null +++ b/docs/V1beta1DataVolumeSourceGCS.md @@ -0,0 +1,11 @@ +# V1beta1DataVolumeSourceGCS + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**secret_ref** | **str** | SecretRef provides the secret reference needed to access the GCS source | [optional] +**url** | **str** | URL is the url of the GCS source | [default to ''] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1MemoryInstancetype.md b/docs/V1beta1MemoryInstancetype.md index 64c2d6a9..f7b989ff 100644 --- a/docs/V1beta1MemoryInstancetype.md +++ b/docs/V1beta1MemoryInstancetype.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **guest** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | Required amount of memory which is visible inside the guest OS. | **hugepages** | [**V1Hugepages**](V1Hugepages.md) | Optionally enables the use of hugepages for the VirtualMachineInstance instead of regular memory. | [optional] +**overcommit_percent** | **int** | OvercommitPercent is the percentage of the guest memory which will be overcommitted. This means that the VMIs parent pod (virt-launcher) will request less physical memory by a factor specified by the OvercommitPercent. Overcommits can lead to memory exhaustion, which in turn can lead to crashes. Use carefully. Defaults to 0 | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1beta1MemoryPreferenceRequirement.md b/docs/V1beta1MemoryPreferenceRequirement.md new file mode 100644 index 00000000..05097496 --- /dev/null +++ b/docs/V1beta1MemoryPreferenceRequirement.md @@ -0,0 +1,10 @@ +# V1beta1MemoryPreferenceRequirement + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guest** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | Minimal amount of memory required by the preference. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1PreferenceRequirements.md b/docs/V1beta1PreferenceRequirements.md new file mode 100644 index 00000000..0d99ae42 --- /dev/null +++ b/docs/V1beta1PreferenceRequirements.md @@ -0,0 +1,11 @@ +# V1beta1PreferenceRequirements + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpu** | [**V1beta1CPUPreferenceRequirement**](V1beta1CPUPreferenceRequirement.md) | Required CPU related attributes of the instancetype. | [optional] +**memory** | [**V1beta1MemoryPreferenceRequirement**](V1beta1MemoryPreferenceRequirement.md) | Required Memory related attributes of the instancetype. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1StorageSpec.md b/docs/V1beta1StorageSpec.md index 4b3d24d4..d3785efa 100644 --- a/docs/V1beta1StorageSpec.md +++ b/docs/V1beta1StorageSpec.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **access_modes** | **list[str]** | AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] **data_source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) * An existing custom resource that implements data population (Alpha) In order to use custom resource types that implement data population, the AnyVolumeDataSource feature gate must be enabled. If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. | [optional] -**data_source_ref** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. | [optional] +**data_source_ref** | [**K8sIoApiCoreV1TypedObjectReference**](K8sIoApiCoreV1TypedObjectReference.md) | Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. | [optional] **resources** | [**K8sIoApiCoreV1ResourceRequirements**](K8sIoApiCoreV1ResourceRequirements.md) | Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources | [optional] **selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | A label query over volumes to consider for binding. | [optional] **storage_class_name** | **str** | Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] diff --git a/docs/V1beta1VirtualMachinePreferenceSpec.md b/docs/V1beta1VirtualMachinePreferenceSpec.md index 9a22b364..992fad75 100644 --- a/docs/V1beta1VirtualMachinePreferenceSpec.md +++ b/docs/V1beta1VirtualMachinePreferenceSpec.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **machine** | [**V1beta1MachinePreferences**](V1beta1MachinePreferences.md) | Machine optionally defines preferences associated with the Machine attribute of a VirtualMachineInstance DomainSpec | [optional] **preferred_subdomain** | **str** | Subdomain of the VirtualMachineInstance | [optional] **preferred_termination_grace_period_seconds** | **int** | Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. | [optional] +**requirements** | [**V1beta1PreferenceRequirements**](V1beta1PreferenceRequirements.md) | Requirements defines the minium amount of instance type defined resources required by a set of preferences | [optional] **volumes** | [**V1beta1VolumePreferences**](V1beta1VolumePreferences.md) | Volumes optionally defines preferences associated with the Volumes attribute of a VirtualMachineInstace DomainSpec | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 39de3708..3f664b73 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-255-g31b8602c3" + release_note="Auto-generated client v1.0.0-beta.0-267-g524067988" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index ab8a9ceb..17481713 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -927,6 +927,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/v1beta1_cpu_instancetype.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_cpu_instancetype.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1CPUInstancetype.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_cpu_preference_requirement.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_cpu_preference_requirement.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1CPUPreferenceRequirement.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_cpu_preferences.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_cpu_preferences.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1CPUPreferences.md @@ -942,6 +945,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/v1beta1_data_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_data_volume_source_gcs.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_source_gcs.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeSourceGCS.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_data_volume_source_http.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_source_http.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeSourceHTTP.md @@ -987,6 +993,12 @@ 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/v1beta1_memory_instancetype.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_memory_instancetype.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1MemoryInstancetype.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_memory_preference_requirement.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_memory_preference_requirement.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1MemoryPreferenceRequirement.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_preference_requirements.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_preference_requirements.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1PreferenceRequirements.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_storage_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_storage_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1StorageSpec.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 8980ca3d..880363e4 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -316,11 +316,13 @@ from .models.v1alpha1_volume_restore import V1alpha1VolumeRestore from .models.v1alpha1_volume_snapshot_status import V1alpha1VolumeSnapshotStatus from .models.v1beta1_cpu_instancetype import V1beta1CPUInstancetype +from .models.v1beta1_cpu_preference_requirement import V1beta1CPUPreferenceRequirement from .models.v1beta1_cpu_preferences import V1beta1CPUPreferences from .models.v1beta1_clock_preferences import V1beta1ClockPreferences from .models.v1beta1_data_volume_blank_image import V1beta1DataVolumeBlankImage from .models.v1beta1_data_volume_checkpoint import V1beta1DataVolumeCheckpoint from .models.v1beta1_data_volume_source import V1beta1DataVolumeSource +from .models.v1beta1_data_volume_source_gcs import V1beta1DataVolumeSourceGCS from .models.v1beta1_data_volume_source_http import V1beta1DataVolumeSourceHTTP from .models.v1beta1_data_volume_source_image_io import V1beta1DataVolumeSourceImageIO from .models.v1beta1_data_volume_source_pvc import V1beta1DataVolumeSourcePVC @@ -336,6 +338,8 @@ from .models.v1beta1_firmware_preferences import V1beta1FirmwarePreferences from .models.v1beta1_machine_preferences import V1beta1MachinePreferences from .models.v1beta1_memory_instancetype import V1beta1MemoryInstancetype +from .models.v1beta1_memory_preference_requirement import V1beta1MemoryPreferenceRequirement +from .models.v1beta1_preference_requirements import V1beta1PreferenceRequirements from .models.v1beta1_storage_spec import V1beta1StorageSpec from .models.v1beta1_virtual_machine_cluster_instancetype import V1beta1VirtualMachineClusterInstancetype from .models.v1beta1_virtual_machine_cluster_instancetype_list import V1beta1VirtualMachineClusterInstancetypeList diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 97a9c677..206168c6 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-255-g31b8602c3/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-267-g524067988/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 84dc3e16..df787d06 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-255-g31b8602c3".\ + "SDK Package Version: v1.0.0-beta.0-267-g524067988".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 504360e7..fd561c2f 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -316,11 +316,13 @@ from .v1alpha1_volume_restore import V1alpha1VolumeRestore from .v1alpha1_volume_snapshot_status import V1alpha1VolumeSnapshotStatus from .v1beta1_cpu_instancetype import V1beta1CPUInstancetype +from .v1beta1_cpu_preference_requirement import V1beta1CPUPreferenceRequirement from .v1beta1_cpu_preferences import V1beta1CPUPreferences from .v1beta1_clock_preferences import V1beta1ClockPreferences from .v1beta1_data_volume_blank_image import V1beta1DataVolumeBlankImage from .v1beta1_data_volume_checkpoint import V1beta1DataVolumeCheckpoint from .v1beta1_data_volume_source import V1beta1DataVolumeSource +from .v1beta1_data_volume_source_gcs import V1beta1DataVolumeSourceGCS from .v1beta1_data_volume_source_http import V1beta1DataVolumeSourceHTTP from .v1beta1_data_volume_source_image_io import V1beta1DataVolumeSourceImageIO from .v1beta1_data_volume_source_pvc import V1beta1DataVolumeSourcePVC @@ -336,6 +338,8 @@ from .v1beta1_firmware_preferences import V1beta1FirmwarePreferences from .v1beta1_machine_preferences import V1beta1MachinePreferences from .v1beta1_memory_instancetype import V1beta1MemoryInstancetype +from .v1beta1_memory_preference_requirement import V1beta1MemoryPreferenceRequirement +from .v1beta1_preference_requirements import V1beta1PreferenceRequirements from .v1beta1_storage_spec import V1beta1StorageSpec from .v1beta1_virtual_machine_cluster_instancetype import V1beta1VirtualMachineClusterInstancetype from .v1beta1_virtual_machine_cluster_instancetype_list import V1beta1VirtualMachineClusterInstancetypeList diff --git a/kubevirt/models/v1beta1_cpu_preference_requirement.py b/kubevirt/models/v1beta1_cpu_preference_requirement.py new file mode 100644 index 00000000..13cab2d6 --- /dev/null +++ b/kubevirt/models/v1beta1_cpu_preference_requirement.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1CPUPreferenceRequirement(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'guest': 'int' + } + + attribute_map = { + 'guest': 'guest' + } + + def __init__(self, guest=0): + """ + V1beta1CPUPreferenceRequirement - a model defined in Swagger + """ + + self._guest = None + + self.guest = guest + + @property + def guest(self): + """ + Gets the guest of this V1beta1CPUPreferenceRequirement. + Minimal number of vCPUs required by the preference. + + :return: The guest of this V1beta1CPUPreferenceRequirement. + :rtype: int + """ + return self._guest + + @guest.setter + def guest(self, guest): + """ + Sets the guest of this V1beta1CPUPreferenceRequirement. + Minimal number of vCPUs required by the preference. + + :param guest: The guest of this V1beta1CPUPreferenceRequirement. + :type: int + """ + if guest is None: + raise ValueError("Invalid value for `guest`, must not be `None`") + + self._guest = guest + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1beta1CPUPreferenceRequirement): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1beta1_data_volume_source.py b/kubevirt/models/v1beta1_data_volume_source.py index ef29ff1a..70f18d4f 100644 --- a/kubevirt/models/v1beta1_data_volume_source.py +++ b/kubevirt/models/v1beta1_data_volume_source.py @@ -32,6 +32,7 @@ class V1beta1DataVolumeSource(object): """ swagger_types = { 'blank': 'V1beta1DataVolumeBlankImage', + 'gcs': 'V1beta1DataVolumeSourceGCS', 'http': 'V1beta1DataVolumeSourceHTTP', 'imageio': 'V1beta1DataVolumeSourceImageIO', 'pvc': 'V1beta1DataVolumeSourcePVC', @@ -44,6 +45,7 @@ class V1beta1DataVolumeSource(object): attribute_map = { 'blank': 'blank', + 'gcs': 'gcs', 'http': 'http', 'imageio': 'imageio', 'pvc': 'pvc', @@ -54,12 +56,13 @@ class V1beta1DataVolumeSource(object): 'vddk': 'vddk' } - def __init__(self, blank=None, http=None, imageio=None, pvc=None, registry=None, s3=None, snapshot=None, upload=None, vddk=None): + def __init__(self, blank=None, gcs=None, http=None, imageio=None, pvc=None, registry=None, s3=None, snapshot=None, upload=None, vddk=None): """ V1beta1DataVolumeSource - a model defined in Swagger """ self._blank = None + self._gcs = None self._http = None self._imageio = None self._pvc = None @@ -71,6 +74,8 @@ def __init__(self, blank=None, http=None, imageio=None, pvc=None, registry=None, if blank is not None: self.blank = blank + if gcs is not None: + self.gcs = gcs if http is not None: self.http = http if imageio is not None: @@ -109,6 +114,27 @@ def blank(self, blank): self._blank = blank + @property + def gcs(self): + """ + Gets the gcs of this V1beta1DataVolumeSource. + + :return: The gcs of this V1beta1DataVolumeSource. + :rtype: V1beta1DataVolumeSourceGCS + """ + return self._gcs + + @gcs.setter + def gcs(self, gcs): + """ + Sets the gcs of this V1beta1DataVolumeSource. + + :param gcs: The gcs of this V1beta1DataVolumeSource. + :type: V1beta1DataVolumeSourceGCS + """ + + self._gcs = gcs + @property def http(self): """ diff --git a/kubevirt/models/v1beta1_data_volume_source_gcs.py b/kubevirt/models/v1beta1_data_volume_source_gcs.py new file mode 100644 index 00000000..9c82c127 --- /dev/null +++ b/kubevirt/models/v1beta1_data_volume_source_gcs.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1DataVolumeSourceGCS(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'secret_ref': 'str', + 'url': 'str' + } + + attribute_map = { + 'secret_ref': 'secretRef', + 'url': 'url' + } + + def __init__(self, secret_ref=None, url=''): + """ + V1beta1DataVolumeSourceGCS - a model defined in Swagger + """ + + self._secret_ref = None + self._url = None + + if secret_ref is not None: + self.secret_ref = secret_ref + self.url = url + + @property + def secret_ref(self): + """ + Gets the secret_ref of this V1beta1DataVolumeSourceGCS. + SecretRef provides the secret reference needed to access the GCS source + + :return: The secret_ref of this V1beta1DataVolumeSourceGCS. + :rtype: str + """ + return self._secret_ref + + @secret_ref.setter + def secret_ref(self, secret_ref): + """ + Sets the secret_ref of this V1beta1DataVolumeSourceGCS. + SecretRef provides the secret reference needed to access the GCS source + + :param secret_ref: The secret_ref of this V1beta1DataVolumeSourceGCS. + :type: str + """ + + self._secret_ref = secret_ref + + @property + def url(self): + """ + Gets the url of this V1beta1DataVolumeSourceGCS. + URL is the url of the GCS source + + :return: The url of this V1beta1DataVolumeSourceGCS. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """ + Sets the url of this V1beta1DataVolumeSourceGCS. + URL is the url of the GCS source + + :param url: The url of this V1beta1DataVolumeSourceGCS. + :type: str + """ + if url is None: + raise ValueError("Invalid value for `url`, must not be `None`") + + self._url = url + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1beta1DataVolumeSourceGCS): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1beta1_memory_instancetype.py b/kubevirt/models/v1beta1_memory_instancetype.py index 06de35f9..fbc0375d 100644 --- a/kubevirt/models/v1beta1_memory_instancetype.py +++ b/kubevirt/models/v1beta1_memory_instancetype.py @@ -32,25 +32,30 @@ class V1beta1MemoryInstancetype(object): """ swagger_types = { 'guest': 'K8sIoApimachineryPkgApiResourceQuantity', - 'hugepages': 'V1Hugepages' + 'hugepages': 'V1Hugepages', + 'overcommit_percent': 'int' } attribute_map = { 'guest': 'guest', - 'hugepages': 'hugepages' + 'hugepages': 'hugepages', + 'overcommit_percent': 'overcommitPercent' } - def __init__(self, guest=None, hugepages=None): + def __init__(self, guest=None, hugepages=None, overcommit_percent=None): """ V1beta1MemoryInstancetype - a model defined in Swagger """ self._guest = None self._hugepages = None + self._overcommit_percent = None self.guest = guest if hugepages is not None: self.hugepages = hugepages + if overcommit_percent is not None: + self.overcommit_percent = overcommit_percent @property def guest(self): @@ -100,6 +105,29 @@ def hugepages(self, hugepages): self._hugepages = hugepages + @property + def overcommit_percent(self): + """ + Gets the overcommit_percent of this V1beta1MemoryInstancetype. + OvercommitPercent is the percentage of the guest memory which will be overcommitted. This means that the VMIs parent pod (virt-launcher) will request less physical memory by a factor specified by the OvercommitPercent. Overcommits can lead to memory exhaustion, which in turn can lead to crashes. Use carefully. Defaults to 0 + + :return: The overcommit_percent of this V1beta1MemoryInstancetype. + :rtype: int + """ + return self._overcommit_percent + + @overcommit_percent.setter + def overcommit_percent(self, overcommit_percent): + """ + Sets the overcommit_percent of this V1beta1MemoryInstancetype. + OvercommitPercent is the percentage of the guest memory which will be overcommitted. This means that the VMIs parent pod (virt-launcher) will request less physical memory by a factor specified by the OvercommitPercent. Overcommits can lead to memory exhaustion, which in turn can lead to crashes. Use carefully. Defaults to 0 + + :param overcommit_percent: The overcommit_percent of this V1beta1MemoryInstancetype. + :type: int + """ + + self._overcommit_percent = overcommit_percent + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1beta1_memory_preference_requirement.py b/kubevirt/models/v1beta1_memory_preference_requirement.py new file mode 100644 index 00000000..5ddabf9a --- /dev/null +++ b/kubevirt/models/v1beta1_memory_preference_requirement.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1MemoryPreferenceRequirement(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'guest': 'K8sIoApimachineryPkgApiResourceQuantity' + } + + attribute_map = { + 'guest': 'guest' + } + + def __init__(self, guest=None): + """ + V1beta1MemoryPreferenceRequirement - a model defined in Swagger + """ + + self._guest = None + + self.guest = guest + + @property + def guest(self): + """ + Gets the guest of this V1beta1MemoryPreferenceRequirement. + Minimal amount of memory required by the preference. + + :return: The guest of this V1beta1MemoryPreferenceRequirement. + :rtype: K8sIoApimachineryPkgApiResourceQuantity + """ + return self._guest + + @guest.setter + def guest(self, guest): + """ + Sets the guest of this V1beta1MemoryPreferenceRequirement. + Minimal amount of memory required by the preference. + + :param guest: The guest of this V1beta1MemoryPreferenceRequirement. + :type: K8sIoApimachineryPkgApiResourceQuantity + """ + if guest is None: + raise ValueError("Invalid value for `guest`, must not be `None`") + + self._guest = guest + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1beta1MemoryPreferenceRequirement): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1beta1_preference_requirements.py b/kubevirt/models/v1beta1_preference_requirements.py new file mode 100644 index 00000000..30f5858f --- /dev/null +++ b/kubevirt/models/v1beta1_preference_requirements.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1PreferenceRequirements(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'cpu': 'V1beta1CPUPreferenceRequirement', + 'memory': 'V1beta1MemoryPreferenceRequirement' + } + + attribute_map = { + 'cpu': 'cpu', + 'memory': 'memory' + } + + def __init__(self, cpu=None, memory=None): + """ + V1beta1PreferenceRequirements - a model defined in Swagger + """ + + self._cpu = None + self._memory = None + + if cpu is not None: + self.cpu = cpu + if memory is not None: + self.memory = memory + + @property + def cpu(self): + """ + Gets the cpu of this V1beta1PreferenceRequirements. + Required CPU related attributes of the instancetype. + + :return: The cpu of this V1beta1PreferenceRequirements. + :rtype: V1beta1CPUPreferenceRequirement + """ + return self._cpu + + @cpu.setter + def cpu(self, cpu): + """ + Sets the cpu of this V1beta1PreferenceRequirements. + Required CPU related attributes of the instancetype. + + :param cpu: The cpu of this V1beta1PreferenceRequirements. + :type: V1beta1CPUPreferenceRequirement + """ + + self._cpu = cpu + + @property + def memory(self): + """ + Gets the memory of this V1beta1PreferenceRequirements. + Required Memory related attributes of the instancetype. + + :return: The memory of this V1beta1PreferenceRequirements. + :rtype: V1beta1MemoryPreferenceRequirement + """ + return self._memory + + @memory.setter + def memory(self, memory): + """ + Sets the memory of this V1beta1PreferenceRequirements. + Required Memory related attributes of the instancetype. + + :param memory: The memory of this V1beta1PreferenceRequirements. + :type: V1beta1MemoryPreferenceRequirement + """ + + self._memory = memory + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1beta1PreferenceRequirements): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1beta1_storage_spec.py b/kubevirt/models/v1beta1_storage_spec.py index 3a7579e0..73606b95 100644 --- a/kubevirt/models/v1beta1_storage_spec.py +++ b/kubevirt/models/v1beta1_storage_spec.py @@ -33,7 +33,7 @@ class V1beta1StorageSpec(object): swagger_types = { 'access_modes': 'list[str]', 'data_source': 'K8sIoApiCoreV1TypedLocalObjectReference', - 'data_source_ref': 'K8sIoApiCoreV1TypedLocalObjectReference', + 'data_source_ref': 'K8sIoApiCoreV1TypedObjectReference', 'resources': 'K8sIoApiCoreV1ResourceRequirements', 'selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', 'storage_class_name': 'str', @@ -136,7 +136,7 @@ def data_source_ref(self): Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. :return: The data_source_ref of this V1beta1StorageSpec. - :rtype: K8sIoApiCoreV1TypedLocalObjectReference + :rtype: K8sIoApiCoreV1TypedObjectReference """ return self._data_source_ref @@ -147,7 +147,7 @@ def data_source_ref(self, data_source_ref): Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. :param data_source_ref: The data_source_ref of this V1beta1StorageSpec. - :type: K8sIoApiCoreV1TypedLocalObjectReference + :type: K8sIoApiCoreV1TypedObjectReference """ self._data_source_ref = data_source_ref diff --git a/kubevirt/models/v1beta1_virtual_machine_preference_spec.py b/kubevirt/models/v1beta1_virtual_machine_preference_spec.py index 1d3683a8..3cc111e3 100644 --- a/kubevirt/models/v1beta1_virtual_machine_preference_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_preference_spec.py @@ -39,6 +39,7 @@ class V1beta1VirtualMachinePreferenceSpec(object): 'machine': 'V1beta1MachinePreferences', 'preferred_subdomain': 'str', 'preferred_termination_grace_period_seconds': 'int', + 'requirements': 'V1beta1PreferenceRequirements', 'volumes': 'V1beta1VolumePreferences' } @@ -51,10 +52,11 @@ class V1beta1VirtualMachinePreferenceSpec(object): 'machine': 'machine', 'preferred_subdomain': 'preferredSubdomain', 'preferred_termination_grace_period_seconds': 'preferredTerminationGracePeriodSeconds', + 'requirements': 'requirements', 'volumes': 'volumes' } - def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, preferred_subdomain=None, preferred_termination_grace_period_seconds=None, volumes=None): + def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, preferred_subdomain=None, preferred_termination_grace_period_seconds=None, requirements=None, volumes=None): """ V1beta1VirtualMachinePreferenceSpec - a model defined in Swagger """ @@ -67,6 +69,7 @@ def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=N self._machine = None self._preferred_subdomain = None self._preferred_termination_grace_period_seconds = None + self._requirements = None self._volumes = None if clock is not None: @@ -85,6 +88,8 @@ def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=N self.preferred_subdomain = preferred_subdomain if preferred_termination_grace_period_seconds is not None: self.preferred_termination_grace_period_seconds = preferred_termination_grace_period_seconds + if requirements is not None: + self.requirements = requirements if volumes is not None: self.volumes = volumes @@ -272,6 +277,29 @@ def preferred_termination_grace_period_seconds(self, preferred_termination_grace self._preferred_termination_grace_period_seconds = preferred_termination_grace_period_seconds + @property + def requirements(self): + """ + Gets the requirements of this V1beta1VirtualMachinePreferenceSpec. + Requirements defines the minium amount of instance type defined resources required by a set of preferences + + :return: The requirements of this V1beta1VirtualMachinePreferenceSpec. + :rtype: V1beta1PreferenceRequirements + """ + return self._requirements + + @requirements.setter + def requirements(self, requirements): + """ + Sets the requirements of this V1beta1VirtualMachinePreferenceSpec. + Requirements defines the minium amount of instance type defined resources required by a set of preferences + + :param requirements: The requirements of this V1beta1VirtualMachinePreferenceSpec. + :type: V1beta1PreferenceRequirements + """ + + self._requirements = requirements + @property def volumes(self): """ diff --git a/setup.py b/setup.py index 41aaef5a..ef36985a 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-255-g31b8602c3" +VERSION = "v1.0.0-beta.0-267-g524067988" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 78b1ac3f..c5043823 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-255-g31b8602c3" +"packageVersion": "v1.0.0-beta.0-267-g524067988" } diff --git a/test/test_v1beta1_cpu_preference_requirement.py b/test/test_v1beta1_cpu_preference_requirement.py new file mode 100644 index 00000000..3163b415 --- /dev/null +++ b/test/test_v1beta1_cpu_preference_requirement.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_cpu_preference_requirement import V1beta1CPUPreferenceRequirement + + +class TestV1beta1CPUPreferenceRequirement(unittest.TestCase): + """ V1beta1CPUPreferenceRequirement unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1CPUPreferenceRequirement(self): + """ + Test V1beta1CPUPreferenceRequirement + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_cpu_preference_requirement.V1beta1CPUPreferenceRequirement() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_data_volume_source_gcs.py b/test/test_v1beta1_data_volume_source_gcs.py new file mode 100644 index 00000000..c0bde8f0 --- /dev/null +++ b/test/test_v1beta1_data_volume_source_gcs.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_data_volume_source_gcs import V1beta1DataVolumeSourceGCS + + +class TestV1beta1DataVolumeSourceGCS(unittest.TestCase): + """ V1beta1DataVolumeSourceGCS unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DataVolumeSourceGCS(self): + """ + Test V1beta1DataVolumeSourceGCS + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_data_volume_source_gcs.V1beta1DataVolumeSourceGCS() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_memory_preference_requirement.py b/test/test_v1beta1_memory_preference_requirement.py new file mode 100644 index 00000000..a9dc9abc --- /dev/null +++ b/test/test_v1beta1_memory_preference_requirement.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_memory_preference_requirement import V1beta1MemoryPreferenceRequirement + + +class TestV1beta1MemoryPreferenceRequirement(unittest.TestCase): + """ V1beta1MemoryPreferenceRequirement unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1MemoryPreferenceRequirement(self): + """ + Test V1beta1MemoryPreferenceRequirement + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_memory_preference_requirement.V1beta1MemoryPreferenceRequirement() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_preference_requirements.py b/test/test_v1beta1_preference_requirements.py new file mode 100644 index 00000000..e9ce9b4c --- /dev/null +++ b/test/test_v1beta1_preference_requirements.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_preference_requirements import V1beta1PreferenceRequirements + + +class TestV1beta1PreferenceRequirements(unittest.TestCase): + """ V1beta1PreferenceRequirements unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1PreferenceRequirements(self): + """ + Test V1beta1PreferenceRequirements + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_preference_requirements.V1beta1PreferenceRequirements() + pass + + +if __name__ == '__main__': + unittest.main() From 052afb1b89a6918c59beab43faeaf7f978e4cbab Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Fri, 9 Jun 2023 21:29:07 +0000 Subject: [PATCH 350/521] Client Python update by KubeVirt Prow build 1667262547025203200 --- README.md | 2 +- docs/V1beta1MemoryInstancetype.md | 1 - git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../models/v1beta1_memory_instancetype.py | 34 ++----------------- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index 726e0a84..3f0c8bdc 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-267-g524067988 +- Package version: v1.0.0-beta.0-261-g96dda54fd - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1MemoryInstancetype.md b/docs/V1beta1MemoryInstancetype.md index f7b989ff..64c2d6a9 100644 --- a/docs/V1beta1MemoryInstancetype.md +++ b/docs/V1beta1MemoryInstancetype.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **guest** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | Required amount of memory which is visible inside the guest OS. | **hugepages** | [**V1Hugepages**](V1Hugepages.md) | Optionally enables the use of hugepages for the VirtualMachineInstance instead of regular memory. | [optional] -**overcommit_percent** | **int** | OvercommitPercent is the percentage of the guest memory which will be overcommitted. This means that the VMIs parent pod (virt-launcher) will request less physical memory by a factor specified by the OvercommitPercent. Overcommits can lead to memory exhaustion, which in turn can lead to crashes. Use carefully. Defaults to 0 | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 3f664b73..39fec07d 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-267-g524067988" + release_note="Auto-generated client v1.0.0-beta.0-261-g96dda54fd" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 206168c6..7485f497 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-267-g524067988/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-261-g96dda54fd/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index df787d06..712e159e 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-267-g524067988".\ + "SDK Package Version: v1.0.0-beta.0-261-g96dda54fd".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_memory_instancetype.py b/kubevirt/models/v1beta1_memory_instancetype.py index fbc0375d..06de35f9 100644 --- a/kubevirt/models/v1beta1_memory_instancetype.py +++ b/kubevirt/models/v1beta1_memory_instancetype.py @@ -32,30 +32,25 @@ class V1beta1MemoryInstancetype(object): """ swagger_types = { 'guest': 'K8sIoApimachineryPkgApiResourceQuantity', - 'hugepages': 'V1Hugepages', - 'overcommit_percent': 'int' + 'hugepages': 'V1Hugepages' } attribute_map = { 'guest': 'guest', - 'hugepages': 'hugepages', - 'overcommit_percent': 'overcommitPercent' + 'hugepages': 'hugepages' } - def __init__(self, guest=None, hugepages=None, overcommit_percent=None): + def __init__(self, guest=None, hugepages=None): """ V1beta1MemoryInstancetype - a model defined in Swagger """ self._guest = None self._hugepages = None - self._overcommit_percent = None self.guest = guest if hugepages is not None: self.hugepages = hugepages - if overcommit_percent is not None: - self.overcommit_percent = overcommit_percent @property def guest(self): @@ -105,29 +100,6 @@ def hugepages(self, hugepages): self._hugepages = hugepages - @property - def overcommit_percent(self): - """ - Gets the overcommit_percent of this V1beta1MemoryInstancetype. - OvercommitPercent is the percentage of the guest memory which will be overcommitted. This means that the VMIs parent pod (virt-launcher) will request less physical memory by a factor specified by the OvercommitPercent. Overcommits can lead to memory exhaustion, which in turn can lead to crashes. Use carefully. Defaults to 0 - - :return: The overcommit_percent of this V1beta1MemoryInstancetype. - :rtype: int - """ - return self._overcommit_percent - - @overcommit_percent.setter - def overcommit_percent(self, overcommit_percent): - """ - Sets the overcommit_percent of this V1beta1MemoryInstancetype. - OvercommitPercent is the percentage of the guest memory which will be overcommitted. This means that the VMIs parent pod (virt-launcher) will request less physical memory by a factor specified by the OvercommitPercent. Overcommits can lead to memory exhaustion, which in turn can lead to crashes. Use carefully. Defaults to 0 - - :param overcommit_percent: The overcommit_percent of this V1beta1MemoryInstancetype. - :type: int - """ - - self._overcommit_percent = overcommit_percent - def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index ef36985a..e44dea26 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-267-g524067988" +VERSION = "v1.0.0-beta.0-261-g96dda54fd" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index c5043823..cc35d8e7 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-267-g524067988" +"packageVersion": "v1.0.0-beta.0-261-g96dda54fd" } From 141df661806911b3fbed0c9839a96797c040dbd3 Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Sat, 10 Jun 2023 11:42:41 +0000 Subject: [PATCH 351/521] Client Python update by KubeVirt Prow build 1667486406185848832 --- README.md | 3 +- docs/V1SEV.md | 1 + docs/V1SEVPolicy.md | 10 ++ docs/V1beta1MemoryInstancetype.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_sev.py | 32 ++++- kubevirt/models/v1_sev_policy.py | 125 ++++++++++++++++++ .../models/v1beta1_memory_instancetype.py | 34 ++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_sev_policy.py | 44 ++++++ 16 files changed, 253 insertions(+), 12 deletions(-) create mode 100644 docs/V1SEVPolicy.md create mode 100644 kubevirt/models/v1_sev_policy.py create mode 100644 test/test_v1_sev_policy.py diff --git a/README.md b/README.md index 3f0c8bdc..2d279a3a 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-261-g96dda54fd +- Package version: v1.0.0-beta.0-275-gca81cf5d2 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -523,6 +523,7 @@ Class | Method | HTTP request | Description - [V1RestartOptions](docs/V1RestartOptions.md) - [V1Rng](docs/V1Rng.md) - [V1SEV](docs/V1SEV.md) + - [V1SEVPolicy](docs/V1SEVPolicy.md) - [V1SMBiosConfiguration](docs/V1SMBiosConfiguration.md) - [V1SSHPublicKeyAccessCredential](docs/V1SSHPublicKeyAccessCredential.md) - [V1SSHPublicKeyAccessCredentialPropagationMethod](docs/V1SSHPublicKeyAccessCredentialPropagationMethod.md) diff --git a/docs/V1SEV.md b/docs/V1SEV.md index 5cbd2b32..b1c8919e 100644 --- a/docs/V1SEV.md +++ b/docs/V1SEV.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**policy** | [**V1SEVPolicy**](V1SEVPolicy.md) | Guest policy flags as defined in AMD SEV API specification. Note: due to security reasons it is not allowed to enable guest debugging. Therefore NoDebug flag is not exposed to users and is always true. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1SEVPolicy.md b/docs/V1SEVPolicy.md new file mode 100644 index 00000000..aa0c7d97 --- /dev/null +++ b/docs/V1SEVPolicy.md @@ -0,0 +1,10 @@ +# V1SEVPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**encrypted_state** | **bool** | SEV-ES is required. Defaults to false. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1MemoryInstancetype.md b/docs/V1beta1MemoryInstancetype.md index 64c2d6a9..f7b989ff 100644 --- a/docs/V1beta1MemoryInstancetype.md +++ b/docs/V1beta1MemoryInstancetype.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **guest** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | Required amount of memory which is visible inside the guest OS. | **hugepages** | [**V1Hugepages**](V1Hugepages.md) | Optionally enables the use of hugepages for the VirtualMachineInstance instead of regular memory. | [optional] +**overcommit_percent** | **int** | OvercommitPercent is the percentage of the guest memory which will be overcommitted. This means that the VMIs parent pod (virt-launcher) will request less physical memory by a factor specified by the OvercommitPercent. Overcommits can lead to memory exhaustion, which in turn can lead to crashes. Use carefully. Defaults to 0 | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 39fec07d..b1b0a484 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-261-g96dda54fd" + release_note="Auto-generated client v1.0.0-beta.0-275-gca81cf5d2" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 17481713..68a7bb37 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -579,6 +579,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_sev.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sev.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SEV.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_sev_policy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sev_policy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SEVPolicy.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_sm_bios_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sm_bios_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SMBiosConfiguration.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 880363e4..2717bd7b 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -200,6 +200,7 @@ from .models.v1_restart_options import V1RestartOptions from .models.v1_rng import V1Rng from .models.v1_sev import V1SEV +from .models.v1_sev_policy import V1SEVPolicy from .models.v1_sm_bios_configuration import V1SMBiosConfiguration from .models.v1_ssh_public_key_access_credential import V1SSHPublicKeyAccessCredential from .models.v1_ssh_public_key_access_credential_propagation_method import V1SSHPublicKeyAccessCredentialPropagationMethod diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 7485f497..7fae138b 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-261-g96dda54fd/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-275-gca81cf5d2/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 712e159e..ea37512c 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-261-g96dda54fd".\ + "SDK Package Version: v1.0.0-beta.0-275-gca81cf5d2".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index fd561c2f..f135bf8e 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -200,6 +200,7 @@ from .v1_restart_options import V1RestartOptions from .v1_rng import V1Rng from .v1_sev import V1SEV +from .v1_sev_policy import V1SEVPolicy from .v1_sm_bios_configuration import V1SMBiosConfiguration from .v1_ssh_public_key_access_credential import V1SSHPublicKeyAccessCredential from .v1_ssh_public_key_access_credential_propagation_method import V1SSHPublicKeyAccessCredentialPropagationMethod diff --git a/kubevirt/models/v1_sev.py b/kubevirt/models/v1_sev.py index dcc438f6..ac05769b 100644 --- a/kubevirt/models/v1_sev.py +++ b/kubevirt/models/v1_sev.py @@ -31,19 +31,45 @@ class V1SEV(object): and the value is json key in definition. """ swagger_types = { - + 'policy': 'V1SEVPolicy' } attribute_map = { - + 'policy': 'policy' } - def __init__(self): + def __init__(self, policy=None): """ V1SEV - a model defined in Swagger """ + self._policy = None + if policy is not None: + self.policy = policy + + @property + def policy(self): + """ + Gets the policy of this V1SEV. + Guest policy flags as defined in AMD SEV API specification. Note: due to security reasons it is not allowed to enable guest debugging. Therefore NoDebug flag is not exposed to users and is always true. + + :return: The policy of this V1SEV. + :rtype: V1SEVPolicy + """ + return self._policy + + @policy.setter + def policy(self, policy): + """ + Sets the policy of this V1SEV. + Guest policy flags as defined in AMD SEV API specification. Note: due to security reasons it is not allowed to enable guest debugging. Therefore NoDebug flag is not exposed to users and is always true. + + :param policy: The policy of this V1SEV. + :type: V1SEVPolicy + """ + + self._policy = policy def to_dict(self): """ diff --git a/kubevirt/models/v1_sev_policy.py b/kubevirt/models/v1_sev_policy.py new file mode 100644 index 00000000..76402dfd --- /dev/null +++ b/kubevirt/models/v1_sev_policy.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SEVPolicy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'encrypted_state': 'bool' + } + + attribute_map = { + 'encrypted_state': 'encryptedState' + } + + def __init__(self, encrypted_state=None): + """ + V1SEVPolicy - a model defined in Swagger + """ + + self._encrypted_state = None + + if encrypted_state is not None: + self.encrypted_state = encrypted_state + + @property + def encrypted_state(self): + """ + Gets the encrypted_state of this V1SEVPolicy. + SEV-ES is required. Defaults to false. + + :return: The encrypted_state of this V1SEVPolicy. + :rtype: bool + """ + return self._encrypted_state + + @encrypted_state.setter + def encrypted_state(self, encrypted_state): + """ + Sets the encrypted_state of this V1SEVPolicy. + SEV-ES is required. Defaults to false. + + :param encrypted_state: The encrypted_state of this V1SEVPolicy. + :type: bool + """ + + self._encrypted_state = encrypted_state + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1SEVPolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1beta1_memory_instancetype.py b/kubevirt/models/v1beta1_memory_instancetype.py index 06de35f9..fbc0375d 100644 --- a/kubevirt/models/v1beta1_memory_instancetype.py +++ b/kubevirt/models/v1beta1_memory_instancetype.py @@ -32,25 +32,30 @@ class V1beta1MemoryInstancetype(object): """ swagger_types = { 'guest': 'K8sIoApimachineryPkgApiResourceQuantity', - 'hugepages': 'V1Hugepages' + 'hugepages': 'V1Hugepages', + 'overcommit_percent': 'int' } attribute_map = { 'guest': 'guest', - 'hugepages': 'hugepages' + 'hugepages': 'hugepages', + 'overcommit_percent': 'overcommitPercent' } - def __init__(self, guest=None, hugepages=None): + def __init__(self, guest=None, hugepages=None, overcommit_percent=None): """ V1beta1MemoryInstancetype - a model defined in Swagger """ self._guest = None self._hugepages = None + self._overcommit_percent = None self.guest = guest if hugepages is not None: self.hugepages = hugepages + if overcommit_percent is not None: + self.overcommit_percent = overcommit_percent @property def guest(self): @@ -100,6 +105,29 @@ def hugepages(self, hugepages): self._hugepages = hugepages + @property + def overcommit_percent(self): + """ + Gets the overcommit_percent of this V1beta1MemoryInstancetype. + OvercommitPercent is the percentage of the guest memory which will be overcommitted. This means that the VMIs parent pod (virt-launcher) will request less physical memory by a factor specified by the OvercommitPercent. Overcommits can lead to memory exhaustion, which in turn can lead to crashes. Use carefully. Defaults to 0 + + :return: The overcommit_percent of this V1beta1MemoryInstancetype. + :rtype: int + """ + return self._overcommit_percent + + @overcommit_percent.setter + def overcommit_percent(self, overcommit_percent): + """ + Sets the overcommit_percent of this V1beta1MemoryInstancetype. + OvercommitPercent is the percentage of the guest memory which will be overcommitted. This means that the VMIs parent pod (virt-launcher) will request less physical memory by a factor specified by the OvercommitPercent. Overcommits can lead to memory exhaustion, which in turn can lead to crashes. Use carefully. Defaults to 0 + + :param overcommit_percent: The overcommit_percent of this V1beta1MemoryInstancetype. + :type: int + """ + + self._overcommit_percent = overcommit_percent + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index e44dea26..89b11a51 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-261-g96dda54fd" +VERSION = "v1.0.0-beta.0-275-gca81cf5d2" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index cc35d8e7..29305650 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-261-g96dda54fd" +"packageVersion": "v1.0.0-beta.0-275-gca81cf5d2" } diff --git a/test/test_v1_sev_policy.py b/test/test_v1_sev_policy.py new file mode 100644 index 00000000..10b7166a --- /dev/null +++ b/test/test_v1_sev_policy.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_sev_policy import V1SEVPolicy + + +class TestV1SEVPolicy(unittest.TestCase): + """ V1SEVPolicy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SEVPolicy(self): + """ + Test V1SEVPolicy + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_sev_policy.V1SEVPolicy() + pass + + +if __name__ == '__main__': + unittest.main() From d7fe014191ed7f127c6b7d748fb91e0a8a89614f Mon Sep 17 00:00:00 2001 From: "rmohr+kubebot@redhat.com" Date: Tue, 13 Jun 2023 11:40:12 +0000 Subject: [PATCH 352/521] Client Python update by KubeVirt Prow build 1668562739162779648 --- README.md | 6 +- docs/V1CPU.md | 1 + docs/V1CPUTopology.md | 12 ++ docs/V1KubeVirtConfiguration.md | 1 + docs/V1LiveUpdateCPU.md | 10 + docs/V1LiveUpdateConfiguration.md | 10 + docs/V1LiveUpdateFeatures.md | 10 + docs/V1VirtualMachineInstanceStatus.md | 1 + docs/V1VirtualMachineSpec.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 12 ++ kubevirt/__init__.py | 4 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 4 + kubevirt/models/v1_cpu.py | 30 ++- kubevirt/models/v1_cpu_topology.py | 181 ++++++++++++++++++ kubevirt/models/v1_kube_virt_configuration.py | 30 ++- .../models/v1_live_update_configuration.py | 125 ++++++++++++ kubevirt/models/v1_live_update_cpu.py | 125 ++++++++++++ kubevirt/models/v1_live_update_features.py | 125 ++++++++++++ .../v1_virtual_machine_instance_status.py | 30 ++- kubevirt/models/v1_virtual_machine_spec.py | 30 ++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_cpu_topology.py | 44 +++++ test/test_v1_live_update_configuration.py | 44 +++++ test/test_v1_live_update_cpu.py | 44 +++++ test/test_v1_live_update_features.py | 44 +++++ 29 files changed, 924 insertions(+), 10 deletions(-) create mode 100644 docs/V1CPUTopology.md create mode 100644 docs/V1LiveUpdateCPU.md create mode 100644 docs/V1LiveUpdateConfiguration.md create mode 100644 docs/V1LiveUpdateFeatures.md create mode 100644 kubevirt/models/v1_cpu_topology.py create mode 100644 kubevirt/models/v1_live_update_configuration.py create mode 100644 kubevirt/models/v1_live_update_cpu.py create mode 100644 kubevirt/models/v1_live_update_features.py create mode 100644 test/test_v1_cpu_topology.py create mode 100644 test/test_v1_live_update_configuration.py create mode 100644 test/test_v1_live_update_cpu.py create mode 100644 test/test_v1_live_update_features.py diff --git a/README.md b/README.md index 2d279a3a..7bac51b5 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-275-gca81cf5d2 +- Package version: v1.0.0-beta.0-295-g20dc0d218 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -403,6 +403,7 @@ Class | Method | HTTP request | Description - [V1CDRomTarget](docs/V1CDRomTarget.md) - [V1CPU](docs/V1CPU.md) - [V1CPUFeature](docs/V1CPUFeature.md) + - [V1CPUTopology](docs/V1CPUTopology.md) - [V1CertConfig](docs/V1CertConfig.md) - [V1Chassis](docs/V1Chassis.md) - [V1ClientPassthroughDevices](docs/V1ClientPassthroughDevices.md) @@ -484,6 +485,9 @@ Class | Method | HTTP request | Description - [V1KubeVirtStatus](docs/V1KubeVirtStatus.md) - [V1KubeVirtWorkloadUpdateStrategy](docs/V1KubeVirtWorkloadUpdateStrategy.md) - [V1LaunchSecurity](docs/V1LaunchSecurity.md) + - [V1LiveUpdateCPU](docs/V1LiveUpdateCPU.md) + - [V1LiveUpdateConfiguration](docs/V1LiveUpdateConfiguration.md) + - [V1LiveUpdateFeatures](docs/V1LiveUpdateFeatures.md) - [V1LogVerbosity](docs/V1LogVerbosity.md) - [V1LunTarget](docs/V1LunTarget.md) - [V1Machine](docs/V1Machine.md) diff --git a/docs/V1CPU.md b/docs/V1CPU.md index 93931034..a5c8bdd5 100644 --- a/docs/V1CPU.md +++ b/docs/V1CPU.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **dedicated_cpu_placement** | **bool** | DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. | [optional] **features** | [**list[V1CPUFeature]**](V1CPUFeature.md) | Features specifies the CPU features list inside the VMI. | [optional] **isolate_emulator_thread** | **bool** | IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it. | [optional] +**max_sockets** | **int** | MaxSockets specifies the maximum amount of sockets that can be hotplugged | [optional] **model** | **str** | Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. | [optional] **numa** | [**V1NUMA**](V1NUMA.md) | NUMA allows specifying settings for the guest NUMA topology | [optional] **realtime** | [**V1Realtime**](V1Realtime.md) | Realtime instructs the virt-launcher to tune the VMI for lower latency, optional for real time workloads | [optional] diff --git a/docs/V1CPUTopology.md b/docs/V1CPUTopology.md new file mode 100644 index 00000000..1e297d68 --- /dev/null +++ b/docs/V1CPUTopology.md @@ -0,0 +1,12 @@ +# V1CPUTopology + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cores** | **int** | Cores specifies the number of cores inside the vmi. Must be a value greater or equal 1. | [optional] +**sockets** | **int** | Sockets specifies the number of sockets inside the vmi. Must be a value greater or equal 1. | [optional] +**threads** | **int** | Threads specifies the number of threads inside the vmi. Must be a value greater or equal 1. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index f0106260..a46d4fa3 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **handler_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] **image_pull_policy** | **str** | Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present | [optional] **ksm_configuration** | [**V1KSMConfiguration**](V1KSMConfiguration.md) | KSMConfiguration holds the information regarding the enabling the KSM in the nodes (if available). | [optional] +**live_update_configuration** | [**V1LiveUpdateConfiguration**](V1LiveUpdateConfiguration.md) | LiveUpdateConfiguration holds defaults for live update features | [optional] **machine_type** | **str** | | [optional] **mediated_devices_configuration** | [**V1MediatedDevicesConfiguration**](V1MediatedDevicesConfiguration.md) | | [optional] **mem_balloon_stats_period** | **int** | | [optional] diff --git a/docs/V1LiveUpdateCPU.md b/docs/V1LiveUpdateCPU.md new file mode 100644 index 00000000..d629c4f1 --- /dev/null +++ b/docs/V1LiveUpdateCPU.md @@ -0,0 +1,10 @@ +# V1LiveUpdateCPU + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max_sockets** | **int** | The maximum amount of sockets that can be hot-plugged to the Virtual Machine | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1LiveUpdateConfiguration.md b/docs/V1LiveUpdateConfiguration.md new file mode 100644 index 00000000..0c8219c1 --- /dev/null +++ b/docs/V1LiveUpdateConfiguration.md @@ -0,0 +1,10 @@ +# V1LiveUpdateConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max_cpu_sockets** | **int** | MaxCpuSockets holds the maximum amount of sockets that can be hotplugged | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1LiveUpdateFeatures.md b/docs/V1LiveUpdateFeatures.md new file mode 100644 index 00000000..7140fb9c --- /dev/null +++ b/docs/V1LiveUpdateFeatures.md @@ -0,0 +1,10 @@ +# V1LiveUpdateFeatures + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpu** | [**V1LiveUpdateCPU**](V1LiveUpdateCPU.md) | LiveUpdateCPU holds hotplug configuration for the CPU resource. Empty struct indicates that default will be used for maxSockets. Default is specified on cluster level. Absence of the struct means opt-out from CPU hotplug functionality. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index a6532ea1..65bc58f7 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **vsockcid** | **int** | VSOCKCID is used to track the allocated VSOCK CID in the VM. | [optional] **active_pods** | **dict(str, str)** | ActivePods is a mapping of pod UID to node name. It is possible for multiple pods to be running for a single VMI during migration. | [optional] **conditions** | [**list[V1VirtualMachineInstanceCondition]**](V1VirtualMachineInstanceCondition.md) | Conditions are specific points in VirtualMachineInstance's pod runtime. | [optional] +**current_cpu_topology** | [**V1CPUTopology**](V1CPUTopology.md) | CurrentCPUTopology specifies the current CPU topology used by the VM workload. Current topology may differ from the desired topology in the spec while CPU hotplug takes place. | [optional] **evacuation_node_name** | **str** | EvacuationNodeName is used to track the eviction process of a VMI. It stores the name of the node that we want to evacuate. It is meant to be used by KubeVirt core components only and can't be set or modified by users. | [optional] **fs_freeze_status** | **str** | FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed | [optional] **guest_os_info** | [**V1VirtualMachineInstanceGuestOSInfo**](V1VirtualMachineInstanceGuestOSInfo.md) | Guest OS Information | [optional] diff --git a/docs/V1VirtualMachineSpec.md b/docs/V1VirtualMachineSpec.md index 8d4ca153..408ccde1 100644 --- a/docs/V1VirtualMachineSpec.md +++ b/docs/V1VirtualMachineSpec.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data_volume_templates** | [**list[V1DataVolumeTemplateSpec]**](V1DataVolumeTemplateSpec.md) | dataVolumeTemplates is a list of dataVolumes that the VirtualMachineInstance template can reference. DataVolumes in this list are dynamically created for the VirtualMachine and are tied to the VirtualMachine's life-cycle. | [optional] **instancetype** | [**V1InstancetypeMatcher**](V1InstancetypeMatcher.md) | InstancetypeMatcher references a instancetype that is used to fill fields in Template | [optional] +**live_update_features** | [**V1LiveUpdateFeatures**](V1LiveUpdateFeatures.md) | LiveUpdateFeatures references a configuration of hotpluggable resources | [optional] **preference** | [**V1PreferenceMatcher**](V1PreferenceMatcher.md) | PreferenceMatcher references a set of preference that is used to fill fields in Template | [optional] **run_strategy** | **str** | Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running | [optional] **running** | **bool** | Running controls whether the associatied VirtualMachineInstance is created or not Mutually exclusive with RunStrategy | [optional] diff --git a/git_push.sh b/git_push.sh index b1b0a484..d79dd044 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-275-gca81cf5d2" + release_note="Auto-generated client v1.0.0-beta.0-295-g20dc0d218" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 68a7bb37..98f7640b 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -219,6 +219,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_cpu_feature.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_cpu_feature.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CPUFeature.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_cpu_topology.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_cpu_topology.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CPUTopology.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_cert_config.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_cert_config.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CertConfig.md @@ -462,6 +465,15 @@ 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_launch_security.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_launch_security.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1LaunchSecurity.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_live_update_cpu.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_live_update_cpu.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1LiveUpdateCPU.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_live_update_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_live_update_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1LiveUpdateConfiguration.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_live_update_features.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_live_update_features.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1LiveUpdateFeatures.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_log_verbosity.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_log_verbosity.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1LogVerbosity.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 2717bd7b..02ed85de 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -80,6 +80,7 @@ from .models.v1_cd_rom_target import V1CDRomTarget from .models.v1_cpu import V1CPU from .models.v1_cpu_feature import V1CPUFeature +from .models.v1_cpu_topology import V1CPUTopology from .models.v1_cert_config import V1CertConfig from .models.v1_chassis import V1Chassis from .models.v1_client_passthrough_devices import V1ClientPassthroughDevices @@ -161,6 +162,9 @@ from .models.v1_kube_virt_status import V1KubeVirtStatus from .models.v1_kube_virt_workload_update_strategy import V1KubeVirtWorkloadUpdateStrategy from .models.v1_launch_security import V1LaunchSecurity +from .models.v1_live_update_cpu import V1LiveUpdateCPU +from .models.v1_live_update_configuration import V1LiveUpdateConfiguration +from .models.v1_live_update_features import V1LiveUpdateFeatures from .models.v1_log_verbosity import V1LogVerbosity from .models.v1_lun_target import V1LunTarget from .models.v1_machine import V1Machine diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 7fae138b..dc43323e 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-275-gca81cf5d2/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-295-g20dc0d218/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index ea37512c..1d6cf7a8 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-275-gca81cf5d2".\ + "SDK Package Version: v1.0.0-beta.0-295-g20dc0d218".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index f135bf8e..f0d1a013 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -80,6 +80,7 @@ from .v1_cd_rom_target import V1CDRomTarget from .v1_cpu import V1CPU from .v1_cpu_feature import V1CPUFeature +from .v1_cpu_topology import V1CPUTopology from .v1_cert_config import V1CertConfig from .v1_chassis import V1Chassis from .v1_client_passthrough_devices import V1ClientPassthroughDevices @@ -161,6 +162,9 @@ from .v1_kube_virt_status import V1KubeVirtStatus from .v1_kube_virt_workload_update_strategy import V1KubeVirtWorkloadUpdateStrategy from .v1_launch_security import V1LaunchSecurity +from .v1_live_update_cpu import V1LiveUpdateCPU +from .v1_live_update_configuration import V1LiveUpdateConfiguration +from .v1_live_update_features import V1LiveUpdateFeatures from .v1_log_verbosity import V1LogVerbosity from .v1_lun_target import V1LunTarget from .v1_machine import V1Machine diff --git a/kubevirt/models/v1_cpu.py b/kubevirt/models/v1_cpu.py index 303131c4..589846b7 100644 --- a/kubevirt/models/v1_cpu.py +++ b/kubevirt/models/v1_cpu.py @@ -35,6 +35,7 @@ class V1CPU(object): 'dedicated_cpu_placement': 'bool', 'features': 'list[V1CPUFeature]', 'isolate_emulator_thread': 'bool', + 'max_sockets': 'int', 'model': 'str', 'numa': 'V1NUMA', 'realtime': 'V1Realtime', @@ -47,6 +48,7 @@ class V1CPU(object): 'dedicated_cpu_placement': 'dedicatedCpuPlacement', 'features': 'features', 'isolate_emulator_thread': 'isolateEmulatorThread', + 'max_sockets': 'maxSockets', 'model': 'model', 'numa': 'numa', 'realtime': 'realtime', @@ -54,7 +56,7 @@ class V1CPU(object): 'threads': 'threads' } - def __init__(self, cores=None, dedicated_cpu_placement=None, features=None, isolate_emulator_thread=None, model=None, numa=None, realtime=None, sockets=None, threads=None): + def __init__(self, cores=None, dedicated_cpu_placement=None, features=None, isolate_emulator_thread=None, max_sockets=None, model=None, numa=None, realtime=None, sockets=None, threads=None): """ V1CPU - a model defined in Swagger """ @@ -63,6 +65,7 @@ def __init__(self, cores=None, dedicated_cpu_placement=None, features=None, isol self._dedicated_cpu_placement = None self._features = None self._isolate_emulator_thread = None + self._max_sockets = None self._model = None self._numa = None self._realtime = None @@ -77,6 +80,8 @@ def __init__(self, cores=None, dedicated_cpu_placement=None, features=None, isol self.features = features if isolate_emulator_thread is not None: self.isolate_emulator_thread = isolate_emulator_thread + if max_sockets is not None: + self.max_sockets = max_sockets if model is not None: self.model = model if numa is not None: @@ -180,6 +185,29 @@ def isolate_emulator_thread(self, isolate_emulator_thread): self._isolate_emulator_thread = isolate_emulator_thread + @property + def max_sockets(self): + """ + Gets the max_sockets of this V1CPU. + MaxSockets specifies the maximum amount of sockets that can be hotplugged + + :return: The max_sockets of this V1CPU. + :rtype: int + """ + return self._max_sockets + + @max_sockets.setter + def max_sockets(self, max_sockets): + """ + Sets the max_sockets of this V1CPU. + MaxSockets specifies the maximum amount of sockets that can be hotplugged + + :param max_sockets: The max_sockets of this V1CPU. + :type: int + """ + + self._max_sockets = max_sockets + @property def model(self): """ diff --git a/kubevirt/models/v1_cpu_topology.py b/kubevirt/models/v1_cpu_topology.py new file mode 100644 index 00000000..2aaa65db --- /dev/null +++ b/kubevirt/models/v1_cpu_topology.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1CPUTopology(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'cores': 'int', + 'sockets': 'int', + 'threads': 'int' + } + + attribute_map = { + 'cores': 'cores', + 'sockets': 'sockets', + 'threads': 'threads' + } + + def __init__(self, cores=None, sockets=None, threads=None): + """ + V1CPUTopology - a model defined in Swagger + """ + + self._cores = None + self._sockets = None + self._threads = None + + if cores is not None: + self.cores = cores + if sockets is not None: + self.sockets = sockets + if threads is not None: + self.threads = threads + + @property + def cores(self): + """ + Gets the cores of this V1CPUTopology. + Cores specifies the number of cores inside the vmi. Must be a value greater or equal 1. + + :return: The cores of this V1CPUTopology. + :rtype: int + """ + return self._cores + + @cores.setter + def cores(self, cores): + """ + Sets the cores of this V1CPUTopology. + Cores specifies the number of cores inside the vmi. Must be a value greater or equal 1. + + :param cores: The cores of this V1CPUTopology. + :type: int + """ + + self._cores = cores + + @property + def sockets(self): + """ + Gets the sockets of this V1CPUTopology. + Sockets specifies the number of sockets inside the vmi. Must be a value greater or equal 1. + + :return: The sockets of this V1CPUTopology. + :rtype: int + """ + return self._sockets + + @sockets.setter + def sockets(self, sockets): + """ + Sets the sockets of this V1CPUTopology. + Sockets specifies the number of sockets inside the vmi. Must be a value greater or equal 1. + + :param sockets: The sockets of this V1CPUTopology. + :type: int + """ + + self._sockets = sockets + + @property + def threads(self): + """ + Gets the threads of this V1CPUTopology. + Threads specifies the number of threads inside the vmi. Must be a value greater or equal 1. + + :return: The threads of this V1CPUTopology. + :rtype: int + """ + return self._threads + + @threads.setter + def threads(self, threads): + """ + Sets the threads of this V1CPUTopology. + Threads specifies the number of threads inside the vmi. Must be a value greater or equal 1. + + :param threads: The threads of this V1CPUTopology. + :type: int + """ + + self._threads = threads + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1CPUTopology): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index deb8ce4f..6a818e21 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -45,6 +45,7 @@ class V1KubeVirtConfiguration(object): 'handler_configuration': 'V1ReloadableComponentConfiguration', 'image_pull_policy': 'str', 'ksm_configuration': 'V1KSMConfiguration', + 'live_update_configuration': 'V1LiveUpdateConfiguration', 'machine_type': 'str', 'mediated_devices_configuration': 'V1MediatedDevicesConfiguration', 'mem_balloon_stats_period': 'int', @@ -81,6 +82,7 @@ class V1KubeVirtConfiguration(object): 'handler_configuration': 'handlerConfiguration', 'image_pull_policy': 'imagePullPolicy', 'ksm_configuration': 'ksmConfiguration', + 'live_update_configuration': 'liveUpdateConfiguration', 'machine_type': 'machineType', 'mediated_devices_configuration': 'mediatedDevicesConfiguration', 'mem_balloon_stats_period': 'memBalloonStatsPeriod', @@ -102,7 +104,7 @@ class V1KubeVirtConfiguration(object): 'webhook_configuration': 'webhookConfiguration' } - def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, auto_cpu_limit_namespace_label_selector=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, ksm_configuration=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, virtual_machine_options=None, vm_state_storage_class=None, webhook_configuration=None): + def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, auto_cpu_limit_namespace_label_selector=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, ksm_configuration=None, live_update_configuration=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, virtual_machine_options=None, vm_state_storage_class=None, webhook_configuration=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ @@ -121,6 +123,7 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self._handler_configuration = None self._image_pull_policy = None self._ksm_configuration = None + self._live_update_configuration = None self._machine_type = None self._mediated_devices_configuration = None self._mem_balloon_stats_period = None @@ -169,6 +172,8 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self.image_pull_policy = image_pull_policy if ksm_configuration is not None: self.ksm_configuration = ksm_configuration + if live_update_configuration is not None: + self.live_update_configuration = live_update_configuration if machine_type is not None: self.machine_type = machine_type if mediated_devices_configuration is not None: @@ -518,6 +523,29 @@ def ksm_configuration(self, ksm_configuration): self._ksm_configuration = ksm_configuration + @property + def live_update_configuration(self): + """ + Gets the live_update_configuration of this V1KubeVirtConfiguration. + LiveUpdateConfiguration holds defaults for live update features + + :return: The live_update_configuration of this V1KubeVirtConfiguration. + :rtype: V1LiveUpdateConfiguration + """ + return self._live_update_configuration + + @live_update_configuration.setter + def live_update_configuration(self, live_update_configuration): + """ + Sets the live_update_configuration of this V1KubeVirtConfiguration. + LiveUpdateConfiguration holds defaults for live update features + + :param live_update_configuration: The live_update_configuration of this V1KubeVirtConfiguration. + :type: V1LiveUpdateConfiguration + """ + + self._live_update_configuration = live_update_configuration + @property def machine_type(self): """ diff --git a/kubevirt/models/v1_live_update_configuration.py b/kubevirt/models/v1_live_update_configuration.py new file mode 100644 index 00000000..861854d4 --- /dev/null +++ b/kubevirt/models/v1_live_update_configuration.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1LiveUpdateConfiguration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'max_cpu_sockets': 'int' + } + + attribute_map = { + 'max_cpu_sockets': 'maxCpuSockets' + } + + def __init__(self, max_cpu_sockets=None): + """ + V1LiveUpdateConfiguration - a model defined in Swagger + """ + + self._max_cpu_sockets = None + + if max_cpu_sockets is not None: + self.max_cpu_sockets = max_cpu_sockets + + @property + def max_cpu_sockets(self): + """ + Gets the max_cpu_sockets of this V1LiveUpdateConfiguration. + MaxCpuSockets holds the maximum amount of sockets that can be hotplugged + + :return: The max_cpu_sockets of this V1LiveUpdateConfiguration. + :rtype: int + """ + return self._max_cpu_sockets + + @max_cpu_sockets.setter + def max_cpu_sockets(self, max_cpu_sockets): + """ + Sets the max_cpu_sockets of this V1LiveUpdateConfiguration. + MaxCpuSockets holds the maximum amount of sockets that can be hotplugged + + :param max_cpu_sockets: The max_cpu_sockets of this V1LiveUpdateConfiguration. + :type: int + """ + + self._max_cpu_sockets = max_cpu_sockets + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1LiveUpdateConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_live_update_cpu.py b/kubevirt/models/v1_live_update_cpu.py new file mode 100644 index 00000000..e146b8ba --- /dev/null +++ b/kubevirt/models/v1_live_update_cpu.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1LiveUpdateCPU(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'max_sockets': 'int' + } + + attribute_map = { + 'max_sockets': 'maxSockets' + } + + def __init__(self, max_sockets=None): + """ + V1LiveUpdateCPU - a model defined in Swagger + """ + + self._max_sockets = None + + if max_sockets is not None: + self.max_sockets = max_sockets + + @property + def max_sockets(self): + """ + Gets the max_sockets of this V1LiveUpdateCPU. + The maximum amount of sockets that can be hot-plugged to the Virtual Machine + + :return: The max_sockets of this V1LiveUpdateCPU. + :rtype: int + """ + return self._max_sockets + + @max_sockets.setter + def max_sockets(self, max_sockets): + """ + Sets the max_sockets of this V1LiveUpdateCPU. + The maximum amount of sockets that can be hot-plugged to the Virtual Machine + + :param max_sockets: The max_sockets of this V1LiveUpdateCPU. + :type: int + """ + + self._max_sockets = max_sockets + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1LiveUpdateCPU): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_live_update_features.py b/kubevirt/models/v1_live_update_features.py new file mode 100644 index 00000000..2d99c287 --- /dev/null +++ b/kubevirt/models/v1_live_update_features.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1LiveUpdateFeatures(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'cpu': 'V1LiveUpdateCPU' + } + + attribute_map = { + 'cpu': 'cpu' + } + + def __init__(self, cpu=None): + """ + V1LiveUpdateFeatures - a model defined in Swagger + """ + + self._cpu = None + + if cpu is not None: + self.cpu = cpu + + @property + def cpu(self): + """ + Gets the cpu of this V1LiveUpdateFeatures. + LiveUpdateCPU holds hotplug configuration for the CPU resource. Empty struct indicates that default will be used for maxSockets. Default is specified on cluster level. Absence of the struct means opt-out from CPU hotplug functionality. + + :return: The cpu of this V1LiveUpdateFeatures. + :rtype: V1LiveUpdateCPU + """ + return self._cpu + + @cpu.setter + def cpu(self, cpu): + """ + Sets the cpu of this V1LiveUpdateFeatures. + LiveUpdateCPU holds hotplug configuration for the CPU resource. Empty struct indicates that default will be used for maxSockets. Default is specified on cluster level. Absence of the struct means opt-out from CPU hotplug functionality. + + :param cpu: The cpu of this V1LiveUpdateFeatures. + :type: V1LiveUpdateCPU + """ + + self._cpu = cpu + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1LiveUpdateFeatures): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index bd736202..3f5d31c0 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -34,6 +34,7 @@ class V1VirtualMachineInstanceStatus(object): 'vsockcid': 'int', 'active_pods': 'dict(str, str)', 'conditions': 'list[V1VirtualMachineInstanceCondition]', + 'current_cpu_topology': 'V1CPUTopology', 'evacuation_node_name': 'str', 'fs_freeze_status': 'str', 'guest_os_info': 'V1VirtualMachineInstanceGuestOSInfo', @@ -59,6 +60,7 @@ class V1VirtualMachineInstanceStatus(object): 'vsockcid': 'VSOCKCID', 'active_pods': 'activePods', 'conditions': 'conditions', + 'current_cpu_topology': 'currentCPUTopology', 'evacuation_node_name': 'evacuationNodeName', 'fs_freeze_status': 'fsFreezeStatus', 'guest_os_info': 'guestOSInfo', @@ -80,7 +82,7 @@ class V1VirtualMachineInstanceStatus(object): 'volume_status': 'volumeStatus' } - def __init__(self, vsockcid=None, active_pods=None, conditions=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, machine=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=0, selinux_context=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): + def __init__(self, vsockcid=None, active_pods=None, conditions=None, current_cpu_topology=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, machine=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=0, selinux_context=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ @@ -88,6 +90,7 @@ def __init__(self, vsockcid=None, active_pods=None, conditions=None, evacuation_ self._vsockcid = None self._active_pods = None self._conditions = None + self._current_cpu_topology = None self._evacuation_node_name = None self._fs_freeze_status = None self._guest_os_info = None @@ -114,6 +117,8 @@ def __init__(self, vsockcid=None, active_pods=None, conditions=None, evacuation_ self.active_pods = active_pods if conditions is not None: self.conditions = conditions + if current_cpu_topology is not None: + self.current_cpu_topology = current_cpu_topology if evacuation_node_name is not None: self.evacuation_node_name = evacuation_node_name if fs_freeze_status is not None: @@ -222,6 +227,29 @@ def conditions(self, conditions): self._conditions = conditions + @property + def current_cpu_topology(self): + """ + Gets the current_cpu_topology of this V1VirtualMachineInstanceStatus. + CurrentCPUTopology specifies the current CPU topology used by the VM workload. Current topology may differ from the desired topology in the spec while CPU hotplug takes place. + + :return: The current_cpu_topology of this V1VirtualMachineInstanceStatus. + :rtype: V1CPUTopology + """ + return self._current_cpu_topology + + @current_cpu_topology.setter + def current_cpu_topology(self, current_cpu_topology): + """ + Sets the current_cpu_topology of this V1VirtualMachineInstanceStatus. + CurrentCPUTopology specifies the current CPU topology used by the VM workload. Current topology may differ from the desired topology in the spec while CPU hotplug takes place. + + :param current_cpu_topology: The current_cpu_topology of this V1VirtualMachineInstanceStatus. + :type: V1CPUTopology + """ + + self._current_cpu_topology = current_cpu_topology + @property def evacuation_node_name(self): """ diff --git a/kubevirt/models/v1_virtual_machine_spec.py b/kubevirt/models/v1_virtual_machine_spec.py index 47b3eb38..3e3cd521 100644 --- a/kubevirt/models/v1_virtual_machine_spec.py +++ b/kubevirt/models/v1_virtual_machine_spec.py @@ -33,6 +33,7 @@ class V1VirtualMachineSpec(object): swagger_types = { 'data_volume_templates': 'list[V1DataVolumeTemplateSpec]', 'instancetype': 'V1InstancetypeMatcher', + 'live_update_features': 'V1LiveUpdateFeatures', 'preference': 'V1PreferenceMatcher', 'run_strategy': 'str', 'running': 'bool', @@ -42,19 +43,21 @@ class V1VirtualMachineSpec(object): attribute_map = { 'data_volume_templates': 'dataVolumeTemplates', 'instancetype': 'instancetype', + 'live_update_features': 'liveUpdateFeatures', 'preference': 'preference', 'run_strategy': 'runStrategy', 'running': 'running', 'template': 'template' } - def __init__(self, data_volume_templates=None, instancetype=None, preference=None, run_strategy=None, running=None, template=None): + def __init__(self, data_volume_templates=None, instancetype=None, live_update_features=None, preference=None, run_strategy=None, running=None, template=None): """ V1VirtualMachineSpec - a model defined in Swagger """ self._data_volume_templates = None self._instancetype = None + self._live_update_features = None self._preference = None self._run_strategy = None self._running = None @@ -64,6 +67,8 @@ def __init__(self, data_volume_templates=None, instancetype=None, preference=Non self.data_volume_templates = data_volume_templates if instancetype is not None: self.instancetype = instancetype + if live_update_features is not None: + self.live_update_features = live_update_features if preference is not None: self.preference = preference if run_strategy is not None: @@ -118,6 +123,29 @@ def instancetype(self, instancetype): self._instancetype = instancetype + @property + def live_update_features(self): + """ + Gets the live_update_features of this V1VirtualMachineSpec. + LiveUpdateFeatures references a configuration of hotpluggable resources + + :return: The live_update_features of this V1VirtualMachineSpec. + :rtype: V1LiveUpdateFeatures + """ + return self._live_update_features + + @live_update_features.setter + def live_update_features(self, live_update_features): + """ + Sets the live_update_features of this V1VirtualMachineSpec. + LiveUpdateFeatures references a configuration of hotpluggable resources + + :param live_update_features: The live_update_features of this V1VirtualMachineSpec. + :type: V1LiveUpdateFeatures + """ + + self._live_update_features = live_update_features + @property def preference(self): """ diff --git a/setup.py b/setup.py index 89b11a51..889f709c 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-275-gca81cf5d2" +VERSION = "v1.0.0-beta.0-295-g20dc0d218" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 29305650..cb2fad6c 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-275-gca81cf5d2" +"packageVersion": "v1.0.0-beta.0-295-g20dc0d218" } diff --git a/test/test_v1_cpu_topology.py b/test/test_v1_cpu_topology.py new file mode 100644 index 00000000..7fa24c76 --- /dev/null +++ b/test/test_v1_cpu_topology.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_cpu_topology import V1CPUTopology + + +class TestV1CPUTopology(unittest.TestCase): + """ V1CPUTopology unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1CPUTopology(self): + """ + Test V1CPUTopology + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_cpu_topology.V1CPUTopology() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_live_update_configuration.py b/test/test_v1_live_update_configuration.py new file mode 100644 index 00000000..c30db2ab --- /dev/null +++ b/test/test_v1_live_update_configuration.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_live_update_configuration import V1LiveUpdateConfiguration + + +class TestV1LiveUpdateConfiguration(unittest.TestCase): + """ V1LiveUpdateConfiguration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1LiveUpdateConfiguration(self): + """ + Test V1LiveUpdateConfiguration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_live_update_configuration.V1LiveUpdateConfiguration() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_live_update_cpu.py b/test/test_v1_live_update_cpu.py new file mode 100644 index 00000000..97f6217a --- /dev/null +++ b/test/test_v1_live_update_cpu.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_live_update_cpu import V1LiveUpdateCPU + + +class TestV1LiveUpdateCPU(unittest.TestCase): + """ V1LiveUpdateCPU unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1LiveUpdateCPU(self): + """ + Test V1LiveUpdateCPU + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_live_update_cpu.V1LiveUpdateCPU() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_live_update_features.py b/test/test_v1_live_update_features.py new file mode 100644 index 00000000..42349d38 --- /dev/null +++ b/test/test_v1_live_update_features.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_live_update_features import V1LiveUpdateFeatures + + +class TestV1LiveUpdateFeatures(unittest.TestCase): + """ V1LiveUpdateFeatures unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1LiveUpdateFeatures(self): + """ + Test V1LiveUpdateFeatures + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_live_update_features.V1LiveUpdateFeatures() + pass + + +if __name__ == '__main__': + unittest.main() From e2e91ba794f00634bdb96ba3eb7f9e87750bc63d Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 23 Jun 2023 23:04:03 +0000 Subject: [PATCH 353/521] Client Python update by KubeVirt Prow build 1672368092715421696 --- README.md | 6 +- docs/DefaultApi.md | 208 ----------------- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 440 ----------------------------------- kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 32 --- 9 files changed, 6 insertions(+), 690 deletions(-) diff --git a/README.md b/README.md index 7bac51b5..0da47d40 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-295-g20dc0d218 +- Package version: v1.0.0-beta.0-424-gbc2c2cc0a - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -279,11 +279,9 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3vm_port_forward_with_protocol**](docs/DefaultApi.md#v1alpha3vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | *DefaultApi* | [**v1alpha3vm_removeinterface**](docs/DefaultApi.md#v1alpha3vm_removeinterface) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removeinterface | *DefaultApi* | [**v1alpha3vm_removevolume**](docs/DefaultApi.md#v1alpha3vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | -*DefaultApi* | [**v1alpha3vmi_addinterface**](docs/DefaultApi.md#v1alpha3vmi_addinterface) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addinterface | *DefaultApi* | [**v1alpha3vmi_addvolume**](docs/DefaultApi.md#v1alpha3vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | *DefaultApi* | [**v1alpha3vmi_port_forward**](docs/DefaultApi.md#v1alpha3vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | *DefaultApi* | [**v1alpha3vmi_port_forward_with_protocol**](docs/DefaultApi.md#v1alpha3vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | -*DefaultApi* | [**v1alpha3vmi_removeinterface**](docs/DefaultApi.md#v1alpha3vmi_removeinterface) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removeinterface | *DefaultApi* | [**v1alpha3vmi_removevolume**](docs/DefaultApi.md#v1alpha3vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | *DefaultApi* | [**v1dump_cluster_profiler**](docs/DefaultApi.md#v1dump_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/dump-cluster-profiler | *DefaultApi* | [**v1get_api_sub_resources**](docs/DefaultApi.md#v1get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1/ | @@ -297,11 +295,9 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1vm_port_forward_with_protocol**](docs/DefaultApi.md#v1vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | *DefaultApi* | [**v1vm_removeinterface**](docs/DefaultApi.md#v1vm_removeinterface) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removeinterface | *DefaultApi* | [**v1vm_removevolume**](docs/DefaultApi.md#v1vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | -*DefaultApi* | [**v1vmi_addinterface**](docs/DefaultApi.md#v1vmi_addinterface) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addinterface | *DefaultApi* | [**v1vmi_addvolume**](docs/DefaultApi.md#v1vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | *DefaultApi* | [**v1vmi_port_forward**](docs/DefaultApi.md#v1vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | *DefaultApi* | [**v1vmi_port_forward_with_protocol**](docs/DefaultApi.md#v1vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | -*DefaultApi* | [**v1vmi_removeinterface**](docs/DefaultApi.md#v1vmi_removeinterface) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removeinterface | *DefaultApi* | [**v1vmi_removevolume**](docs/DefaultApi.md#v1vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | *DefaultApi* | [**watch_kube_virt_list_for_all_namespaces**](docs/DefaultApi.md#watch_kube_virt_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/kubevirt | *DefaultApi* | [**watch_migration_policy_list_for_all_namespaces**](docs/DefaultApi.md#watch_migration_policy_list_for_all_namespaces) | **GET** /apis/migrations.kubevirt.io/v1alpha1/watch/migrationpolicies | diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index f28d4db6..69854918 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -214,11 +214,9 @@ Method | HTTP request | Description [**v1alpha3vm_port_forward_with_protocol**](DefaultApi.md#v1alpha3vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | [**v1alpha3vm_removeinterface**](DefaultApi.md#v1alpha3vm_removeinterface) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removeinterface | [**v1alpha3vm_removevolume**](DefaultApi.md#v1alpha3vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | -[**v1alpha3vmi_addinterface**](DefaultApi.md#v1alpha3vmi_addinterface) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addinterface | [**v1alpha3vmi_addvolume**](DefaultApi.md#v1alpha3vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | [**v1alpha3vmi_port_forward**](DefaultApi.md#v1alpha3vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | [**v1alpha3vmi_port_forward_with_protocol**](DefaultApi.md#v1alpha3vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | -[**v1alpha3vmi_removeinterface**](DefaultApi.md#v1alpha3vmi_removeinterface) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removeinterface | [**v1alpha3vmi_removevolume**](DefaultApi.md#v1alpha3vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | [**v1dump_cluster_profiler**](DefaultApi.md#v1dump_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/dump-cluster-profiler | [**v1get_api_sub_resources**](DefaultApi.md#v1get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1/ | @@ -232,11 +230,9 @@ Method | HTTP request | Description [**v1vm_port_forward_with_protocol**](DefaultApi.md#v1vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | [**v1vm_removeinterface**](DefaultApi.md#v1vm_removeinterface) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removeinterface | [**v1vm_removevolume**](DefaultApi.md#v1vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | -[**v1vmi_addinterface**](DefaultApi.md#v1vmi_addinterface) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addinterface | [**v1vmi_addvolume**](DefaultApi.md#v1vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | [**v1vmi_port_forward**](DefaultApi.md#v1vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | [**v1vmi_port_forward_with_protocol**](DefaultApi.md#v1vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | -[**v1vmi_removeinterface**](DefaultApi.md#v1vmi_removeinterface) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removeinterface | [**v1vmi_removevolume**](DefaultApi.md#v1vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | [**watch_kube_virt_list_for_all_namespaces**](DefaultApi.md#watch_kube_virt_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/kubevirt | [**watch_migration_policy_list_for_all_namespaces**](DefaultApi.md#watch_migration_policy_list_for_all_namespaces) | **GET** /apis/migrations.kubevirt.io/v1alpha1/watch/migrationpolicies | @@ -11175,57 +11171,6 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1alpha3vmi_addinterface** -> str v1alpha3vmi_addinterface(name, namespace, body) - - - -Add a network interface to a running Virtual Machine Instance - -### Example -```python -from __future__ import print_function -import time -import kubevirt -from kubevirt.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = kubevirt.DefaultApi() -name = 'name_example' # str | Name of the resource -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1AddInterfaceOptions() # V1AddInterfaceOptions | - -try: - api_response = api_instance.v1alpha3vmi_addinterface(name, namespace, body) - pprint(api_response) -except ApiException as e: - print("Exception when calling DefaultApi->v1alpha3vmi_addinterface: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Name of the resource | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1AddInterfaceOptions**](V1AddInterfaceOptions.md)| | - -### Return type - -**str** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **v1alpha3vmi_addvolume** > str v1alpha3vmi_addvolume(name, namespace, body) @@ -11379,57 +11324,6 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1alpha3vmi_removeinterface** -> str v1alpha3vmi_removeinterface(name, namespace, body) - - - -Remove a network interface from a running Virtual Machine Instance - -### Example -```python -from __future__ import print_function -import time -import kubevirt -from kubevirt.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = kubevirt.DefaultApi() -name = 'name_example' # str | Name of the resource -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1RemoveInterfaceOptions() # V1RemoveInterfaceOptions | - -try: - api_response = api_instance.v1alpha3vmi_removeinterface(name, namespace, body) - pprint(api_response) -except ApiException as e: - print("Exception when calling DefaultApi->v1alpha3vmi_removeinterface: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Name of the resource | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1RemoveInterfaceOptions**](V1RemoveInterfaceOptions.md)| | - -### Return type - -**str** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **v1alpha3vmi_removevolume** > str v1alpha3vmi_removevolume(name, namespace, body) @@ -12047,57 +11941,6 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1vmi_addinterface** -> str v1vmi_addinterface(name, namespace, body) - - - -Add a network interface to a running Virtual Machine Instance - -### Example -```python -from __future__ import print_function -import time -import kubevirt -from kubevirt.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = kubevirt.DefaultApi() -name = 'name_example' # str | Name of the resource -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1AddInterfaceOptions() # V1AddInterfaceOptions | - -try: - api_response = api_instance.v1vmi_addinterface(name, namespace, body) - pprint(api_response) -except ApiException as e: - print("Exception when calling DefaultApi->v1vmi_addinterface: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Name of the resource | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1AddInterfaceOptions**](V1AddInterfaceOptions.md)| | - -### Return type - -**str** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **v1vmi_addvolume** > str v1vmi_addvolume(name, namespace, body) @@ -12251,57 +12094,6 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1vmi_removeinterface** -> str v1vmi_removeinterface(name, namespace, body) - - - -Remove a network interface from a running Virtual Machine Instance - -### Example -```python -from __future__ import print_function -import time -import kubevirt -from kubevirt.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = kubevirt.DefaultApi() -name = 'name_example' # str | Name of the resource -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1RemoveInterfaceOptions() # V1RemoveInterfaceOptions | - -try: - api_response = api_instance.v1vmi_removeinterface(name, namespace, body) - pprint(api_response) -except ApiException as e: - print("Exception when calling DefaultApi->v1vmi_removeinterface: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Name of the resource | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1RemoveInterfaceOptions**](V1RemoveInterfaceOptions.md)| | - -### Return type - -**str** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **v1vmi_removevolume** > str v1vmi_removevolume(name, namespace, body) diff --git a/git_push.sh b/git_push.sh index d79dd044..8d8b5dd3 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-295-g20dc0d218" + release_note="Auto-generated client v1.0.0-beta.0-424-gbc2c2cc0a" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index dc43323e..b3ae86ce 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-295-g20dc0d218/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-424-gbc2c2cc0a/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 60986a64..e76b2c28 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -23749,116 +23749,6 @@ def v1alpha3vm_removevolume_with_http_info(self, name, namespace, body, **kwargs _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3vmi_addinterface(self, name, namespace, body, **kwargs): - """ - Add a network interface to a running Virtual Machine Instance - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1alpha3vmi_addinterface(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1AddInterfaceOptions body: (required) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.v1alpha3vmi_addinterface_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.v1alpha3vmi_addinterface_with_http_info(name, namespace, body, **kwargs) - return data - - def v1alpha3vmi_addinterface_with_http_info(self, name, namespace, body, **kwargs): - """ - Add a network interface to a running Virtual Machine Instance - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1alpha3vmi_addinterface_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1AddInterfaceOptions body: (required) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method v1alpha3vmi_addinterface" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3vmi_addinterface`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vmi_addinterface`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1alpha3vmi_addinterface`") - - - collection_formats = {} - - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addinterface', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - def v1alpha3vmi_addvolume(self, name, namespace, body, **kwargs): """ Add a volume and disk to a running Virtual Machine Instance @@ -24196,116 +24086,6 @@ def v1alpha3vmi_port_forward_with_protocol_with_http_info(self, name, namespace, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3vmi_removeinterface(self, name, namespace, body, **kwargs): - """ - Remove a network interface from a running Virtual Machine Instance - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1alpha3vmi_removeinterface(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RemoveInterfaceOptions body: (required) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.v1alpha3vmi_removeinterface_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.v1alpha3vmi_removeinterface_with_http_info(name, namespace, body, **kwargs) - return data - - def v1alpha3vmi_removeinterface_with_http_info(self, name, namespace, body, **kwargs): - """ - Remove a network interface from a running Virtual Machine Instance - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1alpha3vmi_removeinterface_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RemoveInterfaceOptions body: (required) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method v1alpha3vmi_removeinterface" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3vmi_removeinterface`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vmi_removeinterface`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1alpha3vmi_removeinterface`") - - - collection_formats = {} - - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removeinterface', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - def v1alpha3vmi_removevolume(self, name, namespace, body, **kwargs): """ Removes a volume and disk from a running Virtual Machine Instance @@ -25655,116 +25435,6 @@ def v1vm_removevolume_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1vmi_addinterface(self, name, namespace, body, **kwargs): - """ - Add a network interface to a running Virtual Machine Instance - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1vmi_addinterface(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1AddInterfaceOptions body: (required) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.v1vmi_addinterface_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.v1vmi_addinterface_with_http_info(name, namespace, body, **kwargs) - return data - - def v1vmi_addinterface_with_http_info(self, name, namespace, body, **kwargs): - """ - Add a network interface to a running Virtual Machine Instance - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1vmi_addinterface_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1AddInterfaceOptions body: (required) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method v1vmi_addinterface" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1vmi_addinterface`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1vmi_addinterface`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1vmi_addinterface`") - - - collection_formats = {} - - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addinterface', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - def v1vmi_addvolume(self, name, namespace, body, **kwargs): """ Add a volume and disk to a running Virtual Machine Instance @@ -26102,116 +25772,6 @@ def v1vmi_port_forward_with_protocol_with_http_info(self, name, namespace, port, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1vmi_removeinterface(self, name, namespace, body, **kwargs): - """ - Remove a network interface from a running Virtual Machine Instance - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1vmi_removeinterface(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RemoveInterfaceOptions body: (required) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.v1vmi_removeinterface_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.v1vmi_removeinterface_with_http_info(name, namespace, body, **kwargs) - return data - - def v1vmi_removeinterface_with_http_info(self, name, namespace, body, **kwargs): - """ - Remove a network interface from a running Virtual Machine Instance - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1vmi_removeinterface_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RemoveInterfaceOptions body: (required) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method v1vmi_removeinterface" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1vmi_removeinterface`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1vmi_removeinterface`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1vmi_removeinterface`") - - - collection_formats = {} - - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removeinterface', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - def v1vmi_removevolume(self, name, namespace, body, **kwargs): """ Removes a volume and disk from a running Virtual Machine Instance diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 1d6cf7a8..1b5487b3 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-295-g20dc0d218".\ + "SDK Package Version: v1.0.0-beta.0-424-gbc2c2cc0a".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index 889f709c..1223c41e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-295-g20dc0d218" +VERSION = "v1.0.0-beta.0-424-gbc2c2cc0a" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index cb2fad6c..16811e0d 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-295-g20dc0d218" +"packageVersion": "v1.0.0-beta.0-424-gbc2c2cc0a" } diff --git a/test/test_default_api.py b/test/test_default_api.py index d266dba2..fed748c5 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -1708,14 +1708,6 @@ def test_v1alpha3vm_removevolume(self): Test case for v1alpha3vm_removevolume - """ - pass - - def test_v1alpha3vmi_addinterface(self): - """ - Test case for v1alpha3vmi_addinterface - - """ pass @@ -1740,14 +1732,6 @@ def test_v1alpha3vmi_port_forward_with_protocol(self): Test case for v1alpha3vmi_port_forward_with_protocol - """ - pass - - def test_v1alpha3vmi_removeinterface(self): - """ - Test case for v1alpha3vmi_removeinterface - - """ pass @@ -1852,14 +1836,6 @@ def test_v1vm_removevolume(self): Test case for v1vm_removevolume - """ - pass - - def test_v1vmi_addinterface(self): - """ - Test case for v1vmi_addinterface - - """ pass @@ -1884,14 +1860,6 @@ def test_v1vmi_port_forward_with_protocol(self): Test case for v1vmi_port_forward_with_protocol - """ - pass - - def test_v1vmi_removeinterface(self): - """ - Test case for v1vmi_removeinterface - - """ pass From a5b524d22d0ba5484d427dc6f273b41b167b808d Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 30 Jun 2023 09:25:09 +0000 Subject: [PATCH 354/521] Client Python update by KubeVirt Prow build 1674697430605500416 --- README.md | 15 +- docs/DefaultApi.md | 408 +++++ docs/V1SEV.md | 3 + docs/V1SEVAttestation.md | 9 + docs/V1SEVMeasurementInfo.md | 17 + docs/V1SEVPlatformInfo.md | 13 + docs/V1SEVSecretOptions.md | 11 + docs/V1SEVSessionOptions.md | 11 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 15 + kubevirt/__init__.py | 5 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 1692 +++++++++++++++----- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 5 + kubevirt/models/v1_sev.py | 90 +- kubevirt/models/v1_sev_attestation.py | 99 ++ kubevirt/models/v1_sev_measurement_info.py | 321 ++++ kubevirt/models/v1_sev_platform_info.py | 209 +++ kubevirt/models/v1_sev_secret_options.py | 153 ++ kubevirt/models/v1_sev_session_options.py | 153 ++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 64 + test/test_v1_sev_attestation.py | 44 + test/test_v1_sev_measurement_info.py | 44 + test/test_v1_sev_platform_info.py | 44 + test/test_v1_sev_secret_options.py | 44 + test/test_v1_sev_session_options.py | 44 + 29 files changed, 3110 insertions(+), 413 deletions(-) create mode 100644 docs/V1SEVAttestation.md create mode 100644 docs/V1SEVMeasurementInfo.md create mode 100644 docs/V1SEVPlatformInfo.md create mode 100644 docs/V1SEVSecretOptions.md create mode 100644 docs/V1SEVSessionOptions.md create mode 100644 kubevirt/models/v1_sev_attestation.py create mode 100644 kubevirt/models/v1_sev_measurement_info.py create mode 100644 kubevirt/models/v1_sev_platform_info.py create mode 100644 kubevirt/models/v1_sev_secret_options.py create mode 100644 kubevirt/models/v1_sev_session_options.py create mode 100644 test/test_v1_sev_attestation.py create mode 100644 test/test_v1_sev_measurement_info.py create mode 100644 test/test_v1_sev_platform_info.py create mode 100644 test/test_v1_sev_secret_options.py create mode 100644 test/test_v1_sev_session_options.py diff --git a/README.md b/README.md index 0da47d40..f74cdfc4 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-424-gbc2c2cc0a +- Package version: v1.0.0-beta.0-487-g34daa9c8e - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -235,6 +235,10 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1_pause**](docs/DefaultApi.md#v1_pause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | *DefaultApi* | [**v1_remove_memory_dump**](docs/DefaultApi.md#v1_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removememorydump | *DefaultApi* | [**v1_restart**](docs/DefaultApi.md#v1_restart) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | +*DefaultApi* | [**v1_sev_fetch_cert_chain**](docs/DefaultApi.md#v1_sev_fetch_cert_chain) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/fetchcertchain | +*DefaultApi* | [**v1_sev_inject_launch_secret**](docs/DefaultApi.md#v1_sev_inject_launch_secret) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/injectlaunchsecret | +*DefaultApi* | [**v1_sev_query_launch_measurement**](docs/DefaultApi.md#v1_sev_query_launch_measurement) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/querylaunchmeasurement | +*DefaultApi* | [**v1_sev_setup_session**](docs/DefaultApi.md#v1_sev_setup_session) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/setupsession | *DefaultApi* | [**v1_soft_reboot**](docs/DefaultApi.md#v1_soft_reboot) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/softreboot | *DefaultApi* | [**v1_start**](docs/DefaultApi.md#v1_start) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | *DefaultApi* | [**v1_stop**](docs/DefaultApi.md#v1_stop) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | @@ -257,6 +261,10 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3_pause**](docs/DefaultApi.md#v1alpha3_pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | *DefaultApi* | [**v1alpha3_remove_memory_dump**](docs/DefaultApi.md#v1alpha3_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removememorydump | *DefaultApi* | [**v1alpha3_restart**](docs/DefaultApi.md#v1alpha3_restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | +*DefaultApi* | [**v1alpha3_sev_fetch_cert_chain**](docs/DefaultApi.md#v1alpha3_sev_fetch_cert_chain) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/fetchcertchain | +*DefaultApi* | [**v1alpha3_sev_inject_launch_secret**](docs/DefaultApi.md#v1alpha3_sev_inject_launch_secret) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/injectlaunchsecret | +*DefaultApi* | [**v1alpha3_sev_query_launch_measurement**](docs/DefaultApi.md#v1alpha3_sev_query_launch_measurement) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/querylaunchmeasurement | +*DefaultApi* | [**v1alpha3_sev_setup_session**](docs/DefaultApi.md#v1alpha3_sev_setup_session) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/setupsession | *DefaultApi* | [**v1alpha3_soft_reboot**](docs/DefaultApi.md#v1alpha3_soft_reboot) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/softreboot | *DefaultApi* | [**v1alpha3_start**](docs/DefaultApi.md#v1alpha3_start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | *DefaultApi* | [**v1alpha3_stop**](docs/DefaultApi.md#v1alpha3_stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | @@ -523,7 +531,12 @@ Class | Method | HTTP request | Description - [V1RestartOptions](docs/V1RestartOptions.md) - [V1Rng](docs/V1Rng.md) - [V1SEV](docs/V1SEV.md) + - [V1SEVAttestation](docs/V1SEVAttestation.md) + - [V1SEVMeasurementInfo](docs/V1SEVMeasurementInfo.md) + - [V1SEVPlatformInfo](docs/V1SEVPlatformInfo.md) - [V1SEVPolicy](docs/V1SEVPolicy.md) + - [V1SEVSecretOptions](docs/V1SEVSecretOptions.md) + - [V1SEVSessionOptions](docs/V1SEVSessionOptions.md) - [V1SMBiosConfiguration](docs/V1SMBiosConfiguration.md) - [V1SSHPublicKeyAccessCredential](docs/V1SSHPublicKeyAccessCredential.md) - [V1SSHPublicKeyAccessCredentialPropagationMethod](docs/V1SSHPublicKeyAccessCredentialPropagationMethod.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 69854918..d1bb18cc 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -170,6 +170,10 @@ Method | HTTP request | Description [**v1_pause**](DefaultApi.md#v1_pause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | [**v1_remove_memory_dump**](DefaultApi.md#v1_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removememorydump | [**v1_restart**](DefaultApi.md#v1_restart) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | +[**v1_sev_fetch_cert_chain**](DefaultApi.md#v1_sev_fetch_cert_chain) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/fetchcertchain | +[**v1_sev_inject_launch_secret**](DefaultApi.md#v1_sev_inject_launch_secret) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/injectlaunchsecret | +[**v1_sev_query_launch_measurement**](DefaultApi.md#v1_sev_query_launch_measurement) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/querylaunchmeasurement | +[**v1_sev_setup_session**](DefaultApi.md#v1_sev_setup_session) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/setupsession | [**v1_soft_reboot**](DefaultApi.md#v1_soft_reboot) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/softreboot | [**v1_start**](DefaultApi.md#v1_start) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | [**v1_stop**](DefaultApi.md#v1_stop) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | @@ -192,6 +196,10 @@ Method | HTTP request | Description [**v1alpha3_pause**](DefaultApi.md#v1alpha3_pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | [**v1alpha3_remove_memory_dump**](DefaultApi.md#v1alpha3_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removememorydump | [**v1alpha3_restart**](DefaultApi.md#v1alpha3_restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | +[**v1alpha3_sev_fetch_cert_chain**](DefaultApi.md#v1alpha3_sev_fetch_cert_chain) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/fetchcertchain | +[**v1alpha3_sev_inject_launch_secret**](DefaultApi.md#v1alpha3_sev_inject_launch_secret) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/injectlaunchsecret | +[**v1alpha3_sev_query_launch_measurement**](DefaultApi.md#v1alpha3_sev_query_launch_measurement) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/querylaunchmeasurement | +[**v1alpha3_sev_setup_session**](DefaultApi.md#v1alpha3_sev_setup_session) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/setupsession | [**v1alpha3_soft_reboot**](DefaultApi.md#v1alpha3_soft_reboot) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/softreboot | [**v1alpha3_start**](DefaultApi.md#v1alpha3_start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | [**v1alpha3_stop**](DefaultApi.md#v1alpha3_stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | @@ -9066,6 +9074,206 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1_sev_fetch_cert_chain** +> V1SEVPlatformInfo v1_sev_fetch_cert_chain(name, namespace) + + + +Fetch SEV certificate chain from the node where Virtual Machine is scheduled + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1_sev_fetch_cert_chain(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1_sev_fetch_cert_chain: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +[**V1SEVPlatformInfo**](V1SEVPlatformInfo.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1_sev_inject_launch_secret** +> str v1_sev_inject_launch_secret(name, namespace, body) + + + +Inject SEV launch secret into a Virtual Machine + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1SEVSecretOptions() # V1SEVSecretOptions | + +try: + api_response = api_instance.v1_sev_inject_launch_secret(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1_sev_inject_launch_secret: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1SEVSecretOptions**](V1SEVSecretOptions.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1_sev_query_launch_measurement** +> V1SEVMeasurementInfo v1_sev_query_launch_measurement(name, namespace) + + + +Query SEV launch measurement from a Virtual Machine + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1_sev_query_launch_measurement(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1_sev_query_launch_measurement: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +[**V1SEVMeasurementInfo**](V1SEVMeasurementInfo.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1_sev_setup_session** +> str v1_sev_setup_session(name, namespace, body) + + + +Setup SEV session parameters for a Virtual Machine + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1SEVSessionOptions() # V1SEVSessionOptions | + +try: + api_response = api_instance.v1_sev_setup_session(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1_sev_setup_session: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1SEVSessionOptions**](V1SEVSessionOptions.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1_soft_reboot** > str v1_soft_reboot(name, namespace) @@ -10121,6 +10329,206 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3_sev_fetch_cert_chain** +> V1SEVPlatformInfo v1alpha3_sev_fetch_cert_chain(name, namespace) + + + +Fetch SEV certificate chain from the node where Virtual Machine is scheduled + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1alpha3_sev_fetch_cert_chain(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_sev_fetch_cert_chain: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +[**V1SEVPlatformInfo**](V1SEVPlatformInfo.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1alpha3_sev_inject_launch_secret** +> str v1alpha3_sev_inject_launch_secret(name, namespace, body) + + + +Inject SEV launch secret into a Virtual Machine + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1SEVSecretOptions() # V1SEVSecretOptions | + +try: + api_response = api_instance.v1alpha3_sev_inject_launch_secret(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_sev_inject_launch_secret: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1SEVSecretOptions**](V1SEVSecretOptions.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1alpha3_sev_query_launch_measurement** +> V1SEVMeasurementInfo v1alpha3_sev_query_launch_measurement(name, namespace) + + + +Query SEV launch measurement from a Virtual Machine + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1alpha3_sev_query_launch_measurement(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_sev_query_launch_measurement: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +[**V1SEVMeasurementInfo**](V1SEVMeasurementInfo.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1alpha3_sev_setup_session** +> str v1alpha3_sev_setup_session(name, namespace, body) + + + +Setup SEV session parameters for a Virtual Machine + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1SEVSessionOptions() # V1SEVSessionOptions | + +try: + api_response = api_instance.v1alpha3_sev_setup_session(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_sev_setup_session: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1SEVSessionOptions**](V1SEVSessionOptions.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3_soft_reboot** > str v1alpha3_soft_reboot(name, namespace) diff --git a/docs/V1SEV.md b/docs/V1SEV.md index b1c8919e..578d88cd 100644 --- a/docs/V1SEV.md +++ b/docs/V1SEV.md @@ -3,7 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**attestation** | [**V1SEVAttestation**](V1SEVAttestation.md) | If specified, run the attestation process for a vmi. | [optional] +**dh_cert** | **str** | Base64 encoded guest owner's Diffie-Hellman key. | [optional] **policy** | [**V1SEVPolicy**](V1SEVPolicy.md) | Guest policy flags as defined in AMD SEV API specification. Note: due to security reasons it is not allowed to enable guest debugging. Therefore NoDebug flag is not exposed to users and is always true. | [optional] +**session** | **str** | Base64 encoded session blob. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1SEVAttestation.md b/docs/V1SEVAttestation.md new file mode 100644 index 00000000..46043278 --- /dev/null +++ b/docs/V1SEVAttestation.md @@ -0,0 +1,9 @@ +# V1SEVAttestation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1SEVMeasurementInfo.md b/docs/V1SEVMeasurementInfo.md new file mode 100644 index 00000000..13109529 --- /dev/null +++ b/docs/V1SEVMeasurementInfo.md @@ -0,0 +1,17 @@ +# V1SEVMeasurementInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_major** | **int** | API major version of the SEV host. | [optional] +**api_minor** | **int** | API minor version of the SEV host. | [optional] +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**build_id** | **int** | Build ID of the SEV host. | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**loader_sha** | **str** | SHA256 of the loader binary | [optional] +**measurement** | **str** | Base64 encoded launch measurement of the SEV guest. | [optional] +**policy** | **int** | Policy of the SEV guest. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1SEVPlatformInfo.md b/docs/V1SEVPlatformInfo.md new file mode 100644 index 00000000..3c480fb6 --- /dev/null +++ b/docs/V1SEVPlatformInfo.md @@ -0,0 +1,13 @@ +# V1SEVPlatformInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**cert_chain** | **str** | Base64 encoded SEV certificate chain. | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**pdh** | **str** | Base64 encoded platform Diffie-Hellman key. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1SEVSecretOptions.md b/docs/V1SEVSecretOptions.md new file mode 100644 index 00000000..8c29fed7 --- /dev/null +++ b/docs/V1SEVSecretOptions.md @@ -0,0 +1,11 @@ +# V1SEVSecretOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**header** | **str** | Base64 encoded header needed to decrypt the secret. | [optional] +**secret** | **str** | Base64 encoded encrypted launch secret. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1SEVSessionOptions.md b/docs/V1SEVSessionOptions.md new file mode 100644 index 00000000..f678d4ed --- /dev/null +++ b/docs/V1SEVSessionOptions.md @@ -0,0 +1,11 @@ +# V1SEVSessionOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dh_cert** | **str** | Base64 encoded guest owner's Diffie-Hellman key. | [optional] +**session** | **str** | Base64 encoded session blob. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 8d8b5dd3..dc39f6b5 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-424-gbc2c2cc0a" + release_note="Auto-generated client v1.0.0-beta.0-487-g34daa9c8e" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 98f7640b..624bb3b1 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -591,9 +591,24 @@ 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_sev.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sev.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SEV.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_sev_attestation.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sev_attestation.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SEVAttestation.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_sev_measurement_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sev_measurement_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SEVMeasurementInfo.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_sev_platform_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sev_platform_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SEVPlatformInfo.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_sev_policy.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sev_policy.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SEVPolicy.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_sev_secret_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sev_secret_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SEVSecretOptions.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_sev_session_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sev_session_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SEVSessionOptions.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_sm_bios_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sm_bios_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SMBiosConfiguration.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 02ed85de..493b4b0f 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -204,7 +204,12 @@ from .models.v1_restart_options import V1RestartOptions from .models.v1_rng import V1Rng from .models.v1_sev import V1SEV +from .models.v1_sev_attestation import V1SEVAttestation +from .models.v1_sev_measurement_info import V1SEVMeasurementInfo +from .models.v1_sev_platform_info import V1SEVPlatformInfo from .models.v1_sev_policy import V1SEVPolicy +from .models.v1_sev_secret_options import V1SEVSecretOptions +from .models.v1_sev_session_options import V1SEVSessionOptions from .models.v1_sm_bios_configuration import V1SMBiosConfiguration from .models.v1_ssh_public_key_access_credential import V1SSHPublicKeyAccessCredential from .models.v1_ssh_public_key_access_credential_propagation_method import V1SSHPublicKeyAccessCredentialPropagationMethod diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index b3ae86ce..036c064b 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-424-gbc2c2cc0a/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-487-g34daa9c8e/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index e76b2c28..08a7112b 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -19182,48 +19182,48 @@ def v1_restart_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_soft_reboot(self, name, namespace, **kwargs): + def v1_sev_fetch_cert_chain(self, name, namespace, **kwargs): """ - Soft reboot a VirtualMachineInstance object. + Fetch SEV certificate chain from the node where Virtual Machine is scheduled This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_soft_reboot(name, namespace, callback=callback_function) + >>> thread = api.v1_sev_fetch_cert_chain(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :return: V1SEVPlatformInfo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_soft_reboot_with_http_info(name, namespace, **kwargs) + return self.v1_sev_fetch_cert_chain_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1_soft_reboot_with_http_info(name, namespace, **kwargs) + (data) = self.v1_sev_fetch_cert_chain_with_http_info(name, namespace, **kwargs) return data - def v1_soft_reboot_with_http_info(self, name, namespace, **kwargs): + def v1_sev_fetch_cert_chain_with_http_info(self, name, namespace, **kwargs): """ - Soft reboot a VirtualMachineInstance object. + Fetch SEV certificate chain from the node where Virtual Machine is scheduled This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_soft_reboot_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1_sev_fetch_cert_chain_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :return: V1SEVPlatformInfo If the method is called asynchronously, returns the request thread. """ @@ -19239,16 +19239,16 @@ def v1_soft_reboot_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_soft_reboot" % key + " to method v1_sev_fetch_cert_chain" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1_soft_reboot`") + raise ValueError("Missing the required parameter `name` when calling `v1_sev_fetch_cert_chain`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1_soft_reboot`") + raise ValueError("Missing the required parameter `namespace` when calling `v1_sev_fetch_cert_chain`") collection_formats = {} @@ -19267,17 +19267,25 @@ def v1_soft_reboot_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/softreboot', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/fetchcertchain', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type='V1SEVPlatformInfo', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -19285,49 +19293,49 @@ def v1_soft_reboot_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_start(self, name, namespace, body, **kwargs): + def v1_sev_inject_launch_secret(self, name, namespace, body, **kwargs): """ - Start a VirtualMachine object. + Inject SEV launch secret into a Virtual Machine This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_start(name, namespace, body, callback=callback_function) + >>> thread = api.v1_sev_inject_launch_secret(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1StartOptions body: (required) + :param V1SEVSecretOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_start_with_http_info(name, namespace, body, **kwargs) + return self.v1_sev_inject_launch_secret_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1_start_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1_sev_inject_launch_secret_with_http_info(name, namespace, body, **kwargs) return data - def v1_start_with_http_info(self, name, namespace, body, **kwargs): + def v1_sev_inject_launch_secret_with_http_info(self, name, namespace, body, **kwargs): """ - Start a VirtualMachine object. + Inject SEV launch secret into a Virtual Machine This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_start_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1_sev_inject_launch_secret_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1StartOptions body: (required) + :param V1SEVSecretOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. @@ -19344,19 +19352,19 @@ def v1_start_with_http_info(self, name, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_start" % key + " to method v1_sev_inject_launch_secret" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1_start`") + raise ValueError("Missing the required parameter `name` when calling `v1_sev_inject_launch_secret`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1_start`") + raise ValueError("Missing the required parameter `namespace` when calling `v1_sev_inject_launch_secret`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1_start`") + raise ValueError("Missing the required parameter `body` when calling `v1_sev_inject_launch_secret`") collection_formats = {} @@ -19380,7 +19388,7 @@ def v1_start_with_http_info(self, name, namespace, body, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/injectlaunchsecret', 'PUT', path_params, query_params, header_params, @@ -19395,55 +19403,53 @@ def v1_start_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_stop(self, name, namespace, **kwargs): + def v1_sev_query_launch_measurement(self, name, namespace, **kwargs): """ - Stop a VirtualMachine object. + Query SEV launch measurement from a Virtual Machine This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_stop(name, namespace, callback=callback_function) + >>> thread = api.v1_sev_query_launch_measurement(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1StopOptions body: - :return: str + :return: V1SEVMeasurementInfo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_stop_with_http_info(name, namespace, **kwargs) + return self.v1_sev_query_launch_measurement_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1_stop_with_http_info(name, namespace, **kwargs) + (data) = self.v1_sev_query_launch_measurement_with_http_info(name, namespace, **kwargs) return data - def v1_stop_with_http_info(self, name, namespace, **kwargs): + def v1_sev_query_launch_measurement_with_http_info(self, name, namespace, **kwargs): """ - Stop a VirtualMachine object. + Query SEV launch measurement from a Virtual Machine This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_stop_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1_sev_query_launch_measurement_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1StopOptions body: - :return: str + :return: V1SEVMeasurementInfo If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -19454,16 +19460,16 @@ def v1_stop_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_stop" % key + " to method v1_sev_query_launch_measurement" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1_stop`") + raise ValueError("Missing the required parameter `name` when calling `v1_sev_query_launch_measurement`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1_stop`") + raise ValueError("Missing the required parameter `namespace` when calling `v1_sev_query_launch_measurement`") collection_formats = {} @@ -19482,19 +19488,25 @@ def v1_stop_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/querylaunchmeasurement', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type='V1SEVMeasurementInfo', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -19502,53 +19514,55 @@ def v1_stop_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_unfreeze(self, name, namespace, **kwargs): + def v1_sev_setup_session(self, name, namespace, body, **kwargs): """ - Unfreeze a VirtualMachineInstance object. + Setup SEV session parameters for a Virtual Machine This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_unfreeze(name, namespace, callback=callback_function) + >>> thread = api.v1_sev_setup_session(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1SEVSessionOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_unfreeze_with_http_info(name, namespace, **kwargs) + return self.v1_sev_setup_session_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1_unfreeze_with_http_info(name, namespace, **kwargs) + (data) = self.v1_sev_setup_session_with_http_info(name, namespace, body, **kwargs) return data - def v1_unfreeze_with_http_info(self, name, namespace, **kwargs): + def v1_sev_setup_session_with_http_info(self, name, namespace, body, **kwargs): """ - Unfreeze a VirtualMachineInstance object. + Setup SEV session parameters for a Virtual Machine This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_unfreeze_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1_sev_setup_session_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1SEVSessionOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -19559,16 +19573,19 @@ def v1_unfreeze_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_unfreeze" % key + " to method v1_sev_setup_session" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1_unfreeze`") + raise ValueError("Missing the required parameter `name` when calling `v1_sev_setup_session`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1_unfreeze`") + raise ValueError("Missing the required parameter `namespace` when calling `v1_sev_setup_session`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1_sev_setup_session`") collection_formats = {} @@ -19587,10 +19604,12 @@ def v1_unfreeze_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unfreeze', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/setupsession', 'PUT', path_params, query_params, header_params, @@ -19605,55 +19624,53 @@ def v1_unfreeze_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_unpause(self, name, namespace, body, **kwargs): + def v1_soft_reboot(self, name, namespace, **kwargs): """ - Unpause a VirtualMachineInstance object. + Soft reboot a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_unpause(name, namespace, body, callback=callback_function) + >>> thread = api.v1_soft_reboot(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1UnpauseOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_unpause_with_http_info(name, namespace, body, **kwargs) + return self.v1_soft_reboot_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1_unpause_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1_soft_reboot_with_http_info(name, namespace, **kwargs) return data - def v1_unpause_with_http_info(self, name, namespace, body, **kwargs): + def v1_soft_reboot_with_http_info(self, name, namespace, **kwargs): """ - Unpause a VirtualMachineInstance object. + Soft reboot a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_unpause_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1_soft_reboot_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1UnpauseOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -19664,19 +19681,16 @@ def v1_unpause_with_http_info(self, name, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_unpause" % key + " to method v1_soft_reboot" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1_unpause`") + raise ValueError("Missing the required parameter `name` when calling `v1_soft_reboot`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1_unpause`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1_unpause`") + raise ValueError("Missing the required parameter `namespace` when calling `v1_soft_reboot`") collection_formats = {} @@ -19695,12 +19709,10 @@ def v1_unpause_with_http_info(self, name, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/softreboot', 'PUT', path_params, query_params, header_params, @@ -19715,49 +19727,55 @@ def v1_unpause_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_userlist(self, **kwargs): + def v1_start(self, name, namespace, body, **kwargs): """ - Get list of active users via guest agent + Start a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_userlist(callback=callback_function) + >>> thread = api.v1_start(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1VirtualMachineInstanceGuestOSUserList + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1StartOptions body: (required) + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_userlist_with_http_info(**kwargs) + return self.v1_start_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1_userlist_with_http_info(**kwargs) + (data) = self.v1_start_with_http_info(name, namespace, body, **kwargs) return data - def v1_userlist_with_http_info(self, **kwargs): + def v1_start_with_http_info(self, name, namespace, body, **kwargs): """ - Get list of active users via guest agent + Start a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_userlist_with_http_info(callback=callback_function) + >>> thread = api.v1_start_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1VirtualMachineInstanceGuestOSUserList + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1StartOptions body: (required) + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -19768,14 +19786,28 @@ def v1_userlist_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_userlist" % key + " to method v1_start" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1_start`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1_start`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1_start`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -19785,25 +19817,19 @@ def v1_userlist_with_http_info(self, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceGuestOSUserList', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -19811,47 +19837,55 @@ def v1_userlist_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_version(self, **kwargs): + def v1_stop(self, name, namespace, **kwargs): """ + Stop a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_version(callback=callback_function) + >>> thread = api.v1_stop(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1StopOptions body: + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_version_with_http_info(**kwargs) + return self.v1_stop_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1_version_with_http_info(**kwargs) + (data) = self.v1_stop_with_http_info(name, namespace, **kwargs) return data - def v1_version_with_http_info(self, **kwargs): + def v1_stop_with_http_info(self, name, namespace, **kwargs): """ + Stop a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_version_with_http_info(callback=callback_function) + >>> thread = api.v1_stop_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1StopOptions body: + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -19862,14 +19896,25 @@ def v1_version_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_version" % key + " to method v1_stop" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1_stop`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1_stop`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -19879,21 +19924,19 @@ def v1_version_with_http_info(self, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/version', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -19901,48 +19944,48 @@ def v1_version_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_vnc(self, name, namespace, **kwargs): + def v1_unfreeze(self, name, namespace, **kwargs): """ - Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. + Unfreeze a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_vnc(name, namespace, callback=callback_function) + >>> thread = api.v1_unfreeze(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: None + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_vnc_with_http_info(name, namespace, **kwargs) + return self.v1_unfreeze_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1_vnc_with_http_info(name, namespace, **kwargs) + (data) = self.v1_unfreeze_with_http_info(name, namespace, **kwargs) return data - def v1_vnc_with_http_info(self, name, namespace, **kwargs): + def v1_unfreeze_with_http_info(self, name, namespace, **kwargs): """ - Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. + Unfreeze a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_vnc_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1_unfreeze_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: None + :return: str If the method is called asynchronously, returns the request thread. """ @@ -19958,16 +20001,16 @@ def v1_vnc_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_vnc" % key + " to method v1_unfreeze" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1_vnc`") + raise ValueError("Missing the required parameter `name` when calling `v1_unfreeze`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1_vnc`") + raise ValueError("Missing the required parameter `namespace` when calling `v1_unfreeze`") collection_formats = {} @@ -19989,14 +20032,14 @@ def v1_vnc_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unfreeze', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -20004,55 +20047,55 @@ def v1_vnc_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_vnc_screenshot(self, name, namespace, **kwargs): + def v1_unpause(self, name, namespace, body, **kwargs): """ - Get a PNG VNC screenshot of the specified VirtualMachineInstance. + Unpause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_vnc_screenshot(name, namespace, callback=callback_function) + >>> thread = api.v1_unpause(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool move_cursor: Move the cursor on the VNC display to wake up the screen - :return: None + :param V1UnpauseOptions body: (required) + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_vnc_screenshot_with_http_info(name, namespace, **kwargs) + return self.v1_unpause_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1_vnc_screenshot_with_http_info(name, namespace, **kwargs) + (data) = self.v1_unpause_with_http_info(name, namespace, body, **kwargs) return data - def v1_vnc_screenshot_with_http_info(self, name, namespace, **kwargs): + def v1_unpause_with_http_info(self, name, namespace, body, **kwargs): """ - Get a PNG VNC screenshot of the specified VirtualMachineInstance. + Unpause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_vnc_screenshot_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1_unpause_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param bool move_cursor: Move the cursor on the VNC display to wake up the screen - :return: None + :param V1UnpauseOptions body: (required) + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'move_cursor'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -20063,16 +20106,19 @@ def v1_vnc_screenshot_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_vnc_screenshot" % key + " to method v1_unpause" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1_vnc_screenshot`") + raise ValueError("Missing the required parameter `name` when calling `v1_unpause`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1_vnc_screenshot`") + raise ValueError("Missing the required parameter `namespace` when calling `v1_unpause`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1_unpause`") collection_formats = {} @@ -20084,8 +20130,6 @@ def v1_vnc_screenshot_with_http_info(self, name, namespace, **kwargs): path_params['namespace'] = params['namespace'] query_params = [] - if 'move_cursor' in params: - query_params.append(('moveCursor', params['move_cursor'])) header_params = {} @@ -20093,17 +20137,19 @@ def v1_vnc_screenshot_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc/screenshot', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -20111,57 +20157,49 @@ def v1_vnc_screenshot_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_vsock(self, name, namespace, port, **kwargs): + def v1_userlist(self, **kwargs): """ - Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port via VSOCK. + Get list of active users via guest agent This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_vsock(name, namespace, port, callback=callback_function) + >>> thread = api.v1_userlist(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param int port: The port which the VSOCK application listens to. (required) - :param bool tls: Weather to request a TLS encrypted session from the VSOCK application. - :return: None + :return: V1VirtualMachineInstanceGuestOSUserList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_vsock_with_http_info(name, namespace, port, **kwargs) + return self.v1_userlist_with_http_info(**kwargs) else: - (data) = self.v1_vsock_with_http_info(name, namespace, port, **kwargs) + (data) = self.v1_userlist_with_http_info(**kwargs) return data - def v1_vsock_with_http_info(self, name, namespace, port, **kwargs): + def v1_userlist_with_http_info(self, **kwargs): """ - Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port via VSOCK. + Get list of active users via guest agent This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_vsock_with_http_info(name, namespace, port, callback=callback_function) + >>> thread = api.v1_userlist_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param int port: The port which the VSOCK application listens to. (required) - :param bool tls: Weather to request a TLS encrypted session from the VSOCK application. - :return: None + :return: V1VirtualMachineInstanceGuestOSUserList If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'port', 'tls'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -20172,34 +20210,16 @@ def v1_vsock_with_http_info(self, name, namespace, port, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_vsock" % key + " to method v1_userlist" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1_vsock`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1_vsock`") - # verify the required parameter 'port' is set - if ('port' not in params) or (params['port'] is None): - raise ValueError("Missing the required parameter `port` when calling `v1_vsock`") - collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] - if 'port' in params: - query_params.append(('port', params['port'])) - if 'tls' in params: - query_params.append(('tls', params['tls'])) header_params = {} @@ -20207,17 +20227,25 @@ def v1_vsock_with_http_info(self, name, namespace, port, **kwargs): local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vsock', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='V1VirtualMachineInstanceGuestOSUserList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -20225,44 +20253,42 @@ def v1_vsock_with_http_info(self, name, namespace, port, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_check_health(self, **kwargs): + def v1_version(self, **kwargs): """ - Health endpoint This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_check_health(callback=callback_function) + >>> thread = api.v1_version(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: str + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_check_health_with_http_info(**kwargs) + return self.v1_version_with_http_info(**kwargs) else: - (data) = self.v1alpha3_check_health_with_http_info(**kwargs) + (data) = self.v1_version_with_http_info(**kwargs) return data - def v1alpha3_check_health_with_http_info(self, **kwargs): + def v1_version_with_http_info(self, **kwargs): """ - Health endpoint This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_check_health_with_http_info(callback=callback_function) + >>> thread = api.v1_version_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: str + :return: None If the method is called asynchronously, returns the request thread. """ @@ -20278,7 +20304,7 @@ def v1alpha3_check_health_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_check_health" % key + " to method v1_version" % key ) params[key] = val del params['kwargs'] @@ -20299,21 +20325,17 @@ def v1alpha3_check_health_with_http_info(self, **kwargs): header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/healthz', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/version', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -20321,16 +20343,16 @@ def v1alpha3_check_health_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_console(self, name, namespace, **kwargs): + def v1_vnc(self, name, namespace, **kwargs): """ - Open a websocket connection to a serial console on the specified VirtualMachineInstance. + Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_console(name, namespace, callback=callback_function) + >>> thread = api.v1_vnc(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20342,21 +20364,21 @@ def v1alpha3_console(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_console_with_http_info(name, namespace, **kwargs) + return self.v1_vnc_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1alpha3_console_with_http_info(name, namespace, **kwargs) + (data) = self.v1_vnc_with_http_info(name, namespace, **kwargs) return data - def v1alpha3_console_with_http_info(self, name, namespace, **kwargs): + def v1_vnc_with_http_info(self, name, namespace, **kwargs): """ - Open a websocket connection to a serial console on the specified VirtualMachineInstance. + Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_console_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1_vnc_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20378,16 +20400,16 @@ def v1alpha3_console_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_console" % key + " to method v1_vnc" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3_console`") + raise ValueError("Missing the required parameter `name` when calling `v1_vnc`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_console`") + raise ValueError("Missing the required parameter `namespace` when calling `v1_vnc`") collection_formats = {} @@ -20409,7 +20431,7 @@ def v1alpha3_console_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc', 'GET', path_params, query_params, header_params, @@ -20424,49 +20446,55 @@ def v1alpha3_console_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_expand_spec(self, **kwargs): + def v1_vnc_screenshot(self, name, namespace, **kwargs): """ - Expands instancetype and preference into the passed VirtualMachine object. + Get a PNG VNC screenshot of the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_expand_spec(callback=callback_function) + >>> thread = api.v1_vnc_screenshot(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: str + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool move_cursor: Move the cursor on the VNC display to wake up the screen + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_expand_spec_with_http_info(**kwargs) + return self.v1_vnc_screenshot_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1alpha3_expand_spec_with_http_info(**kwargs) + (data) = self.v1_vnc_screenshot_with_http_info(name, namespace, **kwargs) return data - def v1alpha3_expand_spec_with_http_info(self, **kwargs): + def v1_vnc_screenshot_with_http_info(self, name, namespace, **kwargs): """ - Expands instancetype and preference into the passed VirtualMachine object. + Get a PNG VNC screenshot of the specified VirtualMachineInstance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_expand_spec_with_http_info(callback=callback_function) + >>> thread = api.v1_vnc_screenshot_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: str + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool move_cursor: Move the cursor on the VNC display to wake up the screen + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace', 'move_cursor'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -20477,16 +20505,29 @@ def v1alpha3_expand_spec_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_expand_spec" % key + " to method v1_vnc_screenshot" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1_vnc_screenshot`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1_vnc_screenshot`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] + if 'move_cursor' in params: + query_params.append(('moveCursor', params['move_cursor'])) header_params = {} @@ -20494,25 +20535,17 @@ def v1alpha3_expand_spec_with_http_info(self, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/expand-vm-spec', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc/screenshot', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -20520,49 +20553,57 @@ def v1alpha3_expand_spec_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_filesystemlist(self, **kwargs): + def v1_vsock(self, name, namespace, port, **kwargs): """ - Get list of active filesystems on guest machine via guest agent + Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port via VSOCK. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_filesystemlist(callback=callback_function) + >>> thread = api.v1_vsock(name, namespace, port, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1VirtualMachineInstanceFileSystemList + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param int port: The port which the VSOCK application listens to. (required) + :param bool tls: Weather to request a TLS encrypted session from the VSOCK application. + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_filesystemlist_with_http_info(**kwargs) + return self.v1_vsock_with_http_info(name, namespace, port, **kwargs) else: - (data) = self.v1alpha3_filesystemlist_with_http_info(**kwargs) + (data) = self.v1_vsock_with_http_info(name, namespace, port, **kwargs) return data - def v1alpha3_filesystemlist_with_http_info(self, **kwargs): + def v1_vsock_with_http_info(self, name, namespace, port, **kwargs): """ - Get list of active filesystems on guest machine via guest agent + Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port via VSOCK. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_filesystemlist_with_http_info(callback=callback_function) + >>> thread = api.v1_vsock_with_http_info(name, namespace, port, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1VirtualMachineInstanceFileSystemList + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param int port: The port which the VSOCK application listens to. (required) + :param bool tls: Weather to request a TLS encrypted session from the VSOCK application. + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace', 'port', 'tls'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -20573,14 +20614,842 @@ def v1alpha3_filesystemlist_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_filesystemlist" % key + " to method v1_vsock" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1_vsock`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1_vsock`") + # verify the required parameter 'port' is set + if ('port' not in params) or (params['port'] is None): + raise ValueError("Missing the required parameter `port` when calling `v1_vsock`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'port' in params: + query_params.append(('port', params['port'])) + if 'tls' in params: + query_params.append(('tls', params['tls'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vsock', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def v1alpha3_check_health(self, **kwargs): + """ + Health endpoint + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_check_health(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3_check_health_with_http_info(**kwargs) + else: + (data) = self.v1alpha3_check_health_with_http_info(**kwargs) + return data + + def v1alpha3_check_health_with_http_info(self, **kwargs): + """ + Health endpoint + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_check_health_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3_check_health" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/healthz', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def v1alpha3_console(self, name, namespace, **kwargs): + """ + Open a websocket connection to a serial console on the specified VirtualMachineInstance. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_console(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3_console_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1alpha3_console_with_http_info(name, namespace, **kwargs) + return data + + def v1alpha3_console_with_http_info(self, name, namespace, **kwargs): + """ + Open a websocket connection to a serial console on the specified VirtualMachineInstance. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_console_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3_console" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_console`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_console`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def v1alpha3_expand_spec(self, **kwargs): + """ + Expands instancetype and preference into the passed VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_expand_spec(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3_expand_spec_with_http_info(**kwargs) + else: + (data) = self.v1alpha3_expand_spec_with_http_info(**kwargs) + return data + + def v1alpha3_expand_spec_with_http_info(self, **kwargs): + """ + Expands instancetype and preference into the passed VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_expand_spec_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3_expand_spec" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/expand-vm-spec', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def v1alpha3_filesystemlist(self, **kwargs): + """ + Get list of active filesystems on guest machine via guest agent + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_filesystemlist(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: V1VirtualMachineInstanceFileSystemList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3_filesystemlist_with_http_info(**kwargs) + else: + (data) = self.v1alpha3_filesystemlist_with_http_info(**kwargs) + return data + + def v1alpha3_filesystemlist_with_http_info(self, **kwargs): + """ + Get list of active filesystems on guest machine via guest agent + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_filesystemlist_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: V1VirtualMachineInstanceFileSystemList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3_filesystemlist" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceFileSystemList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def v1alpha3_freeze(self, name, namespace, body, **kwargs): + """ + Freeze a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_freeze(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1FreezeUnfreezeTimeout body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3_freeze_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1alpha3_freeze_with_http_info(name, namespace, body, **kwargs) + return data + + def v1alpha3_freeze_with_http_info(self, name, namespace, body, **kwargs): + """ + Freeze a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_freeze_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1FreezeUnfreezeTimeout body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3_freeze" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_freeze`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_freeze`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3_freeze`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def v1alpha3_guestfs(self, **kwargs): + """ + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_guestfs(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3_guestfs_with_http_info(**kwargs) + else: + (data) = self.v1alpha3_guestfs_with_http_info(**kwargs) + return data + + def v1alpha3_guestfs_with_http_info(self, **kwargs): + """ + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_guestfs_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3_guestfs" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/guestfs', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def v1alpha3_guestosinfo(self, name, namespace, **kwargs): + """ + Get guest agent os information + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_guestosinfo(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1VirtualMachineInstanceGuestAgentInfo + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3_guestosinfo_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1alpha3_guestosinfo_with_http_info(name, namespace, **kwargs) + return data + + def v1alpha3_guestosinfo_with_http_info(self, name, namespace, **kwargs): + """ + Get guest agent os information + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_guestosinfo_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1VirtualMachineInstanceGuestAgentInfo + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3_guestosinfo" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_guestosinfo`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_guestosinfo`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VirtualMachineInstanceGuestAgentInfo', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def v1alpha3_memory_dump(self, name, namespace, body, **kwargs): + """ + Dumps a VirtualMachineInstance memory. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_memory_dump(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachineMemoryDumpRequest body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3_memory_dump_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1alpha3_memory_dump_with_http_info(name, namespace, body, **kwargs) + return data + + def v1alpha3_memory_dump_with_http_info(self, name, namespace, body, **kwargs): + """ + Dumps a VirtualMachineInstance memory. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_memory_dump_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1VirtualMachineMemoryDumpRequest body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3_memory_dump" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_memory_dump`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_memory_dump`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3_memory_dump`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -20590,25 +21459,19 @@ def v1alpha3_filesystemlist_with_http_info(self, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/memorydump', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceFileSystemList', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -20616,49 +21479,49 @@ def v1alpha3_filesystemlist_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_freeze(self, name, namespace, body, **kwargs): + def v1alpha3_migrate(self, name, namespace, body, **kwargs): """ - Freeze a VirtualMachineInstance object. + Migrate a running VirtualMachine to another node. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_freeze(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3_migrate(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1FreezeUnfreezeTimeout body: (required) + :param V1MigrateOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_freeze_with_http_info(name, namespace, body, **kwargs) + return self.v1alpha3_migrate_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1alpha3_freeze_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1alpha3_migrate_with_http_info(name, namespace, body, **kwargs) return data - def v1alpha3_freeze_with_http_info(self, name, namespace, body, **kwargs): + def v1alpha3_migrate_with_http_info(self, name, namespace, body, **kwargs): """ - Freeze a VirtualMachineInstance object. + Migrate a running VirtualMachine to another node. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_freeze_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3_migrate_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1FreezeUnfreezeTimeout body: (required) + :param V1MigrateOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. @@ -20675,19 +21538,19 @@ def v1alpha3_freeze_with_http_info(self, name, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_freeze" % key + " to method v1alpha3_migrate" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3_freeze`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_migrate`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_freeze`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_migrate`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1alpha3_freeze`") + raise ValueError("Missing the required parameter `body` when calling `v1alpha3_migrate`") collection_formats = {} @@ -20711,7 +21574,7 @@ def v1alpha3_freeze_with_http_info(self, name, namespace, body, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate', 'PUT', path_params, query_params, header_params, @@ -20726,47 +21589,55 @@ def v1alpha3_freeze_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_guestfs(self, **kwargs): + def v1alpha3_pause(self, name, namespace, body, **kwargs): """ + Pause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_guestfs(callback=callback_function) + >>> thread = api.v1alpha3_pause(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1PauseOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_guestfs_with_http_info(**kwargs) + return self.v1alpha3_pause_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1alpha3_guestfs_with_http_info(**kwargs) + (data) = self.v1alpha3_pause_with_http_info(name, namespace, body, **kwargs) return data - def v1alpha3_guestfs_with_http_info(self, **kwargs): + def v1alpha3_pause_with_http_info(self, name, namespace, body, **kwargs): """ + Pause a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_guestfs_with_http_info(callback=callback_function) + >>> thread = api.v1alpha3_pause_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1PauseOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -20777,14 +21648,28 @@ def v1alpha3_guestfs_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_guestfs" % key + " to method v1alpha3_pause" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_pause`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_pause`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3_pause`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -20794,14 +21679,12 @@ def v1alpha3_guestfs_with_http_info(self, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - + if 'body' in params: + body_params = params['body'] # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/guestfs', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause', 'PUT', path_params, query_params, header_params, @@ -20816,48 +21699,48 @@ def v1alpha3_guestfs_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_guestosinfo(self, name, namespace, **kwargs): + def v1alpha3_remove_memory_dump(self, name, namespace, **kwargs): """ - Get guest agent os information + Remove memory dump association. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_guestosinfo(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_remove_memory_dump(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachineInstanceGuestAgentInfo + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_guestosinfo_with_http_info(name, namespace, **kwargs) + return self.v1alpha3_remove_memory_dump_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1alpha3_guestosinfo_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3_remove_memory_dump_with_http_info(name, namespace, **kwargs) return data - def v1alpha3_guestosinfo_with_http_info(self, name, namespace, **kwargs): + def v1alpha3_remove_memory_dump_with_http_info(self, name, namespace, **kwargs): """ - Get guest agent os information + Remove memory dump association. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_guestosinfo_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_remove_memory_dump_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachineInstanceGuestAgentInfo + :return: str If the method is called asynchronously, returns the request thread. """ @@ -20873,16 +21756,16 @@ def v1alpha3_guestosinfo_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_guestosinfo" % key + " to method v1alpha3_remove_memory_dump" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3_guestosinfo`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_remove_memory_dump`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_guestosinfo`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_remove_memory_dump`") collection_formats = {} @@ -20901,25 +21784,17 @@ def v1alpha3_guestosinfo_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removememorydump', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceGuestAgentInfo', + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -20927,49 +21802,49 @@ def v1alpha3_guestosinfo_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_memory_dump(self, name, namespace, body, **kwargs): + def v1alpha3_restart(self, name, namespace, **kwargs): """ - Dumps a VirtualMachineInstance memory. + Restart a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_memory_dump(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3_restart(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineMemoryDumpRequest body: (required) + :param V1RestartOptions body: :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_memory_dump_with_http_info(name, namespace, body, **kwargs) + return self.v1alpha3_restart_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1alpha3_memory_dump_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1alpha3_restart_with_http_info(name, namespace, **kwargs) return data - def v1alpha3_memory_dump_with_http_info(self, name, namespace, body, **kwargs): + def v1alpha3_restart_with_http_info(self, name, namespace, **kwargs): """ - Dumps a VirtualMachineInstance memory. + Restart a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_memory_dump_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3_restart_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachineMemoryDumpRequest body: (required) + :param V1RestartOptions body: :return: str If the method is called asynchronously, returns the request thread. @@ -20986,19 +21861,16 @@ def v1alpha3_memory_dump_with_http_info(self, name, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_memory_dump" % key + " to method v1alpha3_restart" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3_memory_dump`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_restart`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_memory_dump`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1alpha3_memory_dump`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_restart`") collection_formats = {} @@ -21022,7 +21894,7 @@ def v1alpha3_memory_dump_with_http_info(self, name, namespace, body, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/memorydump', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart', 'PUT', path_params, query_params, header_params, @@ -21037,55 +21909,53 @@ def v1alpha3_memory_dump_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_migrate(self, name, namespace, body, **kwargs): + def v1alpha3_sev_fetch_cert_chain(self, name, namespace, **kwargs): """ - Migrate a running VirtualMachine to another node. + Fetch SEV certificate chain from the node where Virtual Machine is scheduled This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_migrate(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3_sev_fetch_cert_chain(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1MigrateOptions body: (required) - :return: str + :return: V1SEVPlatformInfo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_migrate_with_http_info(name, namespace, body, **kwargs) + return self.v1alpha3_sev_fetch_cert_chain_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1alpha3_migrate_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1alpha3_sev_fetch_cert_chain_with_http_info(name, namespace, **kwargs) return data - def v1alpha3_migrate_with_http_info(self, name, namespace, body, **kwargs): + def v1alpha3_sev_fetch_cert_chain_with_http_info(self, name, namespace, **kwargs): """ - Migrate a running VirtualMachine to another node. + Fetch SEV certificate chain from the node where Virtual Machine is scheduled This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_migrate_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3_sev_fetch_cert_chain_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1MigrateOptions body: (required) - :return: str + :return: V1SEVPlatformInfo If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -21096,19 +21966,16 @@ def v1alpha3_migrate_with_http_info(self, name, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_migrate" % key + " to method v1alpha3_sev_fetch_cert_chain" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3_migrate`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_sev_fetch_cert_chain`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_migrate`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1alpha3_migrate`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_sev_fetch_cert_chain`") collection_formats = {} @@ -21127,19 +21994,25 @@ def v1alpha3_migrate_with_http_info(self, name, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/fetchcertchain', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type='V1SEVPlatformInfo', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -21147,49 +22020,49 @@ def v1alpha3_migrate_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_pause(self, name, namespace, body, **kwargs): + def v1alpha3_sev_inject_launch_secret(self, name, namespace, body, **kwargs): """ - Pause a VirtualMachineInstance object. + Inject SEV launch secret into a Virtual Machine This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_pause(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3_sev_inject_launch_secret(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1PauseOptions body: (required) + :param V1SEVSecretOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_pause_with_http_info(name, namespace, body, **kwargs) + return self.v1alpha3_sev_inject_launch_secret_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1alpha3_pause_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1alpha3_sev_inject_launch_secret_with_http_info(name, namespace, body, **kwargs) return data - def v1alpha3_pause_with_http_info(self, name, namespace, body, **kwargs): + def v1alpha3_sev_inject_launch_secret_with_http_info(self, name, namespace, body, **kwargs): """ - Pause a VirtualMachineInstance object. + Inject SEV launch secret into a Virtual Machine This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_pause_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.v1alpha3_sev_inject_launch_secret_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1PauseOptions body: (required) + :param V1SEVSecretOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. @@ -21206,19 +22079,19 @@ def v1alpha3_pause_with_http_info(self, name, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_pause" % key + " to method v1alpha3_sev_inject_launch_secret" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3_pause`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_sev_inject_launch_secret`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_pause`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_sev_inject_launch_secret`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1alpha3_pause`") + raise ValueError("Missing the required parameter `body` when calling `v1alpha3_sev_inject_launch_secret`") collection_formats = {} @@ -21242,7 +22115,7 @@ def v1alpha3_pause_with_http_info(self, name, namespace, body, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/injectlaunchsecret', 'PUT', path_params, query_params, header_params, @@ -21257,48 +22130,48 @@ def v1alpha3_pause_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_remove_memory_dump(self, name, namespace, **kwargs): + def v1alpha3_sev_query_launch_measurement(self, name, namespace, **kwargs): """ - Remove memory dump association. + Query SEV launch measurement from a Virtual Machine This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_remove_memory_dump(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_sev_query_launch_measurement(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :return: V1SEVMeasurementInfo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_remove_memory_dump_with_http_info(name, namespace, **kwargs) + return self.v1alpha3_sev_query_launch_measurement_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1alpha3_remove_memory_dump_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3_sev_query_launch_measurement_with_http_info(name, namespace, **kwargs) return data - def v1alpha3_remove_memory_dump_with_http_info(self, name, namespace, **kwargs): + def v1alpha3_sev_query_launch_measurement_with_http_info(self, name, namespace, **kwargs): """ - Remove memory dump association. + Query SEV launch measurement from a Virtual Machine This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_remove_memory_dump_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_sev_query_launch_measurement_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: str + :return: V1SEVMeasurementInfo If the method is called asynchronously, returns the request thread. """ @@ -21314,16 +22187,16 @@ def v1alpha3_remove_memory_dump_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_remove_memory_dump" % key + " to method v1alpha3_sev_query_launch_measurement" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3_remove_memory_dump`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_sev_query_launch_measurement`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_remove_memory_dump`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_sev_query_launch_measurement`") collection_formats = {} @@ -21342,17 +22215,25 @@ def v1alpha3_remove_memory_dump_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removememorydump', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/querylaunchmeasurement', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='str', + response_type='V1SEVMeasurementInfo', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -21360,49 +22241,49 @@ def v1alpha3_remove_memory_dump_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_restart(self, name, namespace, **kwargs): + def v1alpha3_sev_setup_session(self, name, namespace, body, **kwargs): """ - Restart a VirtualMachine object. + Setup SEV session parameters for a Virtual Machine This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_restart(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_sev_setup_session(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RestartOptions body: + :param V1SEVSessionOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_restart_with_http_info(name, namespace, **kwargs) + return self.v1alpha3_sev_setup_session_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1alpha3_restart_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3_sev_setup_session_with_http_info(name, namespace, body, **kwargs) return data - def v1alpha3_restart_with_http_info(self, name, namespace, **kwargs): + def v1alpha3_sev_setup_session_with_http_info(self, name, namespace, body, **kwargs): """ - Restart a VirtualMachine object. + Setup SEV session parameters for a Virtual Machine This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_restart_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_sev_setup_session_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RestartOptions body: + :param V1SEVSessionOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. @@ -21419,16 +22300,19 @@ def v1alpha3_restart_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_restart" % key + " to method v1alpha3_sev_setup_session" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3_restart`") + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_sev_setup_session`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_restart`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_sev_setup_session`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3_sev_setup_session`") collection_formats = {} @@ -21452,7 +22336,7 @@ def v1alpha3_restart_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/setupsession', 'PUT', path_params, query_params, header_params, diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 1b5487b3..acd5ef71 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-424-gbc2c2cc0a".\ + "SDK Package Version: v1.0.0-beta.0-487-g34daa9c8e".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index f0d1a013..732a2387 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -204,7 +204,12 @@ from .v1_restart_options import V1RestartOptions from .v1_rng import V1Rng from .v1_sev import V1SEV +from .v1_sev_attestation import V1SEVAttestation +from .v1_sev_measurement_info import V1SEVMeasurementInfo +from .v1_sev_platform_info import V1SEVPlatformInfo from .v1_sev_policy import V1SEVPolicy +from .v1_sev_secret_options import V1SEVSecretOptions +from .v1_sev_session_options import V1SEVSessionOptions from .v1_sm_bios_configuration import V1SMBiosConfiguration from .v1_ssh_public_key_access_credential import V1SSHPublicKeyAccessCredential from .v1_ssh_public_key_access_credential_propagation_method import V1SSHPublicKeyAccessCredentialPropagationMethod diff --git a/kubevirt/models/v1_sev.py b/kubevirt/models/v1_sev.py index ac05769b..b25f22c0 100644 --- a/kubevirt/models/v1_sev.py +++ b/kubevirt/models/v1_sev.py @@ -31,22 +31,83 @@ class V1SEV(object): and the value is json key in definition. """ swagger_types = { - 'policy': 'V1SEVPolicy' + 'attestation': 'V1SEVAttestation', + 'dh_cert': 'str', + 'policy': 'V1SEVPolicy', + 'session': 'str' } attribute_map = { - 'policy': 'policy' + 'attestation': 'attestation', + 'dh_cert': 'dhCert', + 'policy': 'policy', + 'session': 'session' } - def __init__(self, policy=None): + def __init__(self, attestation=None, dh_cert=None, policy=None, session=None): """ V1SEV - a model defined in Swagger """ + self._attestation = None + self._dh_cert = None self._policy = None + self._session = None + if attestation is not None: + self.attestation = attestation + if dh_cert is not None: + self.dh_cert = dh_cert if policy is not None: self.policy = policy + if session is not None: + self.session = session + + @property + def attestation(self): + """ + Gets the attestation of this V1SEV. + If specified, run the attestation process for a vmi. + + :return: The attestation of this V1SEV. + :rtype: V1SEVAttestation + """ + return self._attestation + + @attestation.setter + def attestation(self, attestation): + """ + Sets the attestation of this V1SEV. + If specified, run the attestation process for a vmi. + + :param attestation: The attestation of this V1SEV. + :type: V1SEVAttestation + """ + + self._attestation = attestation + + @property + def dh_cert(self): + """ + Gets the dh_cert of this V1SEV. + Base64 encoded guest owner's Diffie-Hellman key. + + :return: The dh_cert of this V1SEV. + :rtype: str + """ + return self._dh_cert + + @dh_cert.setter + def dh_cert(self, dh_cert): + """ + Sets the dh_cert of this V1SEV. + Base64 encoded guest owner's Diffie-Hellman key. + + :param dh_cert: The dh_cert of this V1SEV. + :type: str + """ + + self._dh_cert = dh_cert @property def policy(self): @@ -71,6 +132,29 @@ def policy(self, policy): self._policy = policy + @property + def session(self): + """ + Gets the session of this V1SEV. + Base64 encoded session blob. + + :return: The session of this V1SEV. + :rtype: str + """ + return self._session + + @session.setter + def session(self, session): + """ + Sets the session of this V1SEV. + Base64 encoded session blob. + + :param session: The session of this V1SEV. + :type: str + """ + + self._session = session + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_sev_attestation.py b/kubevirt/models/v1_sev_attestation.py new file mode 100644 index 00000000..16361f54 --- /dev/null +++ b/kubevirt/models/v1_sev_attestation.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SEVAttestation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1SEVAttestation - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1SEVAttestation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_sev_measurement_info.py b/kubevirt/models/v1_sev_measurement_info.py new file mode 100644 index 00000000..451534e3 --- /dev/null +++ b/kubevirt/models/v1_sev_measurement_info.py @@ -0,0 +1,321 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SEVMeasurementInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_major': 'int', + 'api_minor': 'int', + 'api_version': 'str', + 'build_id': 'int', + 'kind': 'str', + 'loader_sha': 'str', + 'measurement': 'str', + 'policy': 'int' + } + + attribute_map = { + 'api_major': 'apiMajor', + 'api_minor': 'apiMinor', + 'api_version': 'apiVersion', + 'build_id': 'buildID', + 'kind': 'kind', + 'loader_sha': 'loaderSHA', + 'measurement': 'measurement', + 'policy': 'policy' + } + + def __init__(self, api_major=None, api_minor=None, api_version=None, build_id=None, kind=None, loader_sha=None, measurement=None, policy=None): + """ + V1SEVMeasurementInfo - a model defined in Swagger + """ + + self._api_major = None + self._api_minor = None + self._api_version = None + self._build_id = None + self._kind = None + self._loader_sha = None + self._measurement = None + self._policy = None + + if api_major is not None: + self.api_major = api_major + if api_minor is not None: + self.api_minor = api_minor + if api_version is not None: + self.api_version = api_version + if build_id is not None: + self.build_id = build_id + if kind is not None: + self.kind = kind + if loader_sha is not None: + self.loader_sha = loader_sha + if measurement is not None: + self.measurement = measurement + if policy is not None: + self.policy = policy + + @property + def api_major(self): + """ + Gets the api_major of this V1SEVMeasurementInfo. + API major version of the SEV host. + + :return: The api_major of this V1SEVMeasurementInfo. + :rtype: int + """ + return self._api_major + + @api_major.setter + def api_major(self, api_major): + """ + Sets the api_major of this V1SEVMeasurementInfo. + API major version of the SEV host. + + :param api_major: The api_major of this V1SEVMeasurementInfo. + :type: int + """ + + self._api_major = api_major + + @property + def api_minor(self): + """ + Gets the api_minor of this V1SEVMeasurementInfo. + API minor version of the SEV host. + + :return: The api_minor of this V1SEVMeasurementInfo. + :rtype: int + """ + return self._api_minor + + @api_minor.setter + def api_minor(self, api_minor): + """ + Sets the api_minor of this V1SEVMeasurementInfo. + API minor version of the SEV host. + + :param api_minor: The api_minor of this V1SEVMeasurementInfo. + :type: int + """ + + self._api_minor = api_minor + + @property + def api_version(self): + """ + Gets the api_version of this V1SEVMeasurementInfo. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1SEVMeasurementInfo. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1SEVMeasurementInfo. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1SEVMeasurementInfo. + :type: str + """ + + self._api_version = api_version + + @property + def build_id(self): + """ + Gets the build_id of this V1SEVMeasurementInfo. + Build ID of the SEV host. + + :return: The build_id of this V1SEVMeasurementInfo. + :rtype: int + """ + return self._build_id + + @build_id.setter + def build_id(self, build_id): + """ + Sets the build_id of this V1SEVMeasurementInfo. + Build ID of the SEV host. + + :param build_id: The build_id of this V1SEVMeasurementInfo. + :type: int + """ + + self._build_id = build_id + + @property + def kind(self): + """ + Gets the kind of this V1SEVMeasurementInfo. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1SEVMeasurementInfo. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1SEVMeasurementInfo. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1SEVMeasurementInfo. + :type: str + """ + + self._kind = kind + + @property + def loader_sha(self): + """ + Gets the loader_sha of this V1SEVMeasurementInfo. + SHA256 of the loader binary + + :return: The loader_sha of this V1SEVMeasurementInfo. + :rtype: str + """ + return self._loader_sha + + @loader_sha.setter + def loader_sha(self, loader_sha): + """ + Sets the loader_sha of this V1SEVMeasurementInfo. + SHA256 of the loader binary + + :param loader_sha: The loader_sha of this V1SEVMeasurementInfo. + :type: str + """ + + self._loader_sha = loader_sha + + @property + def measurement(self): + """ + Gets the measurement of this V1SEVMeasurementInfo. + Base64 encoded launch measurement of the SEV guest. + + :return: The measurement of this V1SEVMeasurementInfo. + :rtype: str + """ + return self._measurement + + @measurement.setter + def measurement(self, measurement): + """ + Sets the measurement of this V1SEVMeasurementInfo. + Base64 encoded launch measurement of the SEV guest. + + :param measurement: The measurement of this V1SEVMeasurementInfo. + :type: str + """ + + self._measurement = measurement + + @property + def policy(self): + """ + Gets the policy of this V1SEVMeasurementInfo. + Policy of the SEV guest. + + :return: The policy of this V1SEVMeasurementInfo. + :rtype: int + """ + return self._policy + + @policy.setter + def policy(self, policy): + """ + Sets the policy of this V1SEVMeasurementInfo. + Policy of the SEV guest. + + :param policy: The policy of this V1SEVMeasurementInfo. + :type: int + """ + + self._policy = policy + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1SEVMeasurementInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_sev_platform_info.py b/kubevirt/models/v1_sev_platform_info.py new file mode 100644 index 00000000..3010e555 --- /dev/null +++ b/kubevirt/models/v1_sev_platform_info.py @@ -0,0 +1,209 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SEVPlatformInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'cert_chain': 'str', + 'kind': 'str', + 'pdh': 'str' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'cert_chain': 'certChain', + 'kind': 'kind', + 'pdh': 'pdh' + } + + def __init__(self, api_version=None, cert_chain=None, kind=None, pdh=None): + """ + V1SEVPlatformInfo - a model defined in Swagger + """ + + self._api_version = None + self._cert_chain = None + self._kind = None + self._pdh = None + + if api_version is not None: + self.api_version = api_version + if cert_chain is not None: + self.cert_chain = cert_chain + if kind is not None: + self.kind = kind + if pdh is not None: + self.pdh = pdh + + @property + def api_version(self): + """ + Gets the api_version of this V1SEVPlatformInfo. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1SEVPlatformInfo. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1SEVPlatformInfo. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1SEVPlatformInfo. + :type: str + """ + + self._api_version = api_version + + @property + def cert_chain(self): + """ + Gets the cert_chain of this V1SEVPlatformInfo. + Base64 encoded SEV certificate chain. + + :return: The cert_chain of this V1SEVPlatformInfo. + :rtype: str + """ + return self._cert_chain + + @cert_chain.setter + def cert_chain(self, cert_chain): + """ + Sets the cert_chain of this V1SEVPlatformInfo. + Base64 encoded SEV certificate chain. + + :param cert_chain: The cert_chain of this V1SEVPlatformInfo. + :type: str + """ + + self._cert_chain = cert_chain + + @property + def kind(self): + """ + Gets the kind of this V1SEVPlatformInfo. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1SEVPlatformInfo. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1SEVPlatformInfo. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1SEVPlatformInfo. + :type: str + """ + + self._kind = kind + + @property + def pdh(self): + """ + Gets the pdh of this V1SEVPlatformInfo. + Base64 encoded platform Diffie-Hellman key. + + :return: The pdh of this V1SEVPlatformInfo. + :rtype: str + """ + return self._pdh + + @pdh.setter + def pdh(self, pdh): + """ + Sets the pdh of this V1SEVPlatformInfo. + Base64 encoded platform Diffie-Hellman key. + + :param pdh: The pdh of this V1SEVPlatformInfo. + :type: str + """ + + self._pdh = pdh + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1SEVPlatformInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_sev_secret_options.py b/kubevirt/models/v1_sev_secret_options.py new file mode 100644 index 00000000..e257adc9 --- /dev/null +++ b/kubevirt/models/v1_sev_secret_options.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SEVSecretOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'header': 'str', + 'secret': 'str' + } + + attribute_map = { + 'header': 'header', + 'secret': 'secret' + } + + def __init__(self, header=None, secret=None): + """ + V1SEVSecretOptions - a model defined in Swagger + """ + + self._header = None + self._secret = None + + if header is not None: + self.header = header + if secret is not None: + self.secret = secret + + @property + def header(self): + """ + Gets the header of this V1SEVSecretOptions. + Base64 encoded header needed to decrypt the secret. + + :return: The header of this V1SEVSecretOptions. + :rtype: str + """ + return self._header + + @header.setter + def header(self, header): + """ + Sets the header of this V1SEVSecretOptions. + Base64 encoded header needed to decrypt the secret. + + :param header: The header of this V1SEVSecretOptions. + :type: str + """ + + self._header = header + + @property + def secret(self): + """ + Gets the secret of this V1SEVSecretOptions. + Base64 encoded encrypted launch secret. + + :return: The secret of this V1SEVSecretOptions. + :rtype: str + """ + return self._secret + + @secret.setter + def secret(self, secret): + """ + Sets the secret of this V1SEVSecretOptions. + Base64 encoded encrypted launch secret. + + :param secret: The secret of this V1SEVSecretOptions. + :type: str + """ + + self._secret = secret + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1SEVSecretOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_sev_session_options.py b/kubevirt/models/v1_sev_session_options.py new file mode 100644 index 00000000..04642cb3 --- /dev/null +++ b/kubevirt/models/v1_sev_session_options.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SEVSessionOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'dh_cert': 'str', + 'session': 'str' + } + + attribute_map = { + 'dh_cert': 'dhCert', + 'session': 'session' + } + + def __init__(self, dh_cert=None, session=None): + """ + V1SEVSessionOptions - a model defined in Swagger + """ + + self._dh_cert = None + self._session = None + + if dh_cert is not None: + self.dh_cert = dh_cert + if session is not None: + self.session = session + + @property + def dh_cert(self): + """ + Gets the dh_cert of this V1SEVSessionOptions. + Base64 encoded guest owner's Diffie-Hellman key. + + :return: The dh_cert of this V1SEVSessionOptions. + :rtype: str + """ + return self._dh_cert + + @dh_cert.setter + def dh_cert(self, dh_cert): + """ + Sets the dh_cert of this V1SEVSessionOptions. + Base64 encoded guest owner's Diffie-Hellman key. + + :param dh_cert: The dh_cert of this V1SEVSessionOptions. + :type: str + """ + + self._dh_cert = dh_cert + + @property + def session(self): + """ + Gets the session of this V1SEVSessionOptions. + Base64 encoded session blob. + + :return: The session of this V1SEVSessionOptions. + :rtype: str + """ + return self._session + + @session.setter + def session(self, session): + """ + Sets the session of this V1SEVSessionOptions. + Base64 encoded session blob. + + :param session: The session of this V1SEVSessionOptions. + :type: str + """ + + self._session = session + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1SEVSessionOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 1223c41e..7eca93b8 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-424-gbc2c2cc0a" +VERSION = "v1.0.0-beta.0-487-g34daa9c8e" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 16811e0d..0f659222 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-424-gbc2c2cc0a" +"packageVersion": "v1.0.0-beta.0-487-g34daa9c8e" } diff --git a/test/test_default_api.py b/test/test_default_api.py index fed748c5..e33843bd 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -1356,6 +1356,38 @@ def test_v1_restart(self): Test case for v1_restart + """ + pass + + def test_v1_sev_fetch_cert_chain(self): + """ + Test case for v1_sev_fetch_cert_chain + + + """ + pass + + def test_v1_sev_inject_launch_secret(self): + """ + Test case for v1_sev_inject_launch_secret + + + """ + pass + + def test_v1_sev_query_launch_measurement(self): + """ + Test case for v1_sev_query_launch_measurement + + + """ + pass + + def test_v1_sev_setup_session(self): + """ + Test case for v1_sev_setup_session + + """ pass @@ -1532,6 +1564,38 @@ def test_v1alpha3_restart(self): Test case for v1alpha3_restart + """ + pass + + def test_v1alpha3_sev_fetch_cert_chain(self): + """ + Test case for v1alpha3_sev_fetch_cert_chain + + + """ + pass + + def test_v1alpha3_sev_inject_launch_secret(self): + """ + Test case for v1alpha3_sev_inject_launch_secret + + + """ + pass + + def test_v1alpha3_sev_query_launch_measurement(self): + """ + Test case for v1alpha3_sev_query_launch_measurement + + + """ + pass + + def test_v1alpha3_sev_setup_session(self): + """ + Test case for v1alpha3_sev_setup_session + + """ pass diff --git a/test/test_v1_sev_attestation.py b/test/test_v1_sev_attestation.py new file mode 100644 index 00000000..b6476119 --- /dev/null +++ b/test/test_v1_sev_attestation.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_sev_attestation import V1SEVAttestation + + +class TestV1SEVAttestation(unittest.TestCase): + """ V1SEVAttestation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SEVAttestation(self): + """ + Test V1SEVAttestation + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_sev_attestation.V1SEVAttestation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_sev_measurement_info.py b/test/test_v1_sev_measurement_info.py new file mode 100644 index 00000000..24ebdbbe --- /dev/null +++ b/test/test_v1_sev_measurement_info.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_sev_measurement_info import V1SEVMeasurementInfo + + +class TestV1SEVMeasurementInfo(unittest.TestCase): + """ V1SEVMeasurementInfo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SEVMeasurementInfo(self): + """ + Test V1SEVMeasurementInfo + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_sev_measurement_info.V1SEVMeasurementInfo() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_sev_platform_info.py b/test/test_v1_sev_platform_info.py new file mode 100644 index 00000000..f9107018 --- /dev/null +++ b/test/test_v1_sev_platform_info.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_sev_platform_info import V1SEVPlatformInfo + + +class TestV1SEVPlatformInfo(unittest.TestCase): + """ V1SEVPlatformInfo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SEVPlatformInfo(self): + """ + Test V1SEVPlatformInfo + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_sev_platform_info.V1SEVPlatformInfo() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_sev_secret_options.py b/test/test_v1_sev_secret_options.py new file mode 100644 index 00000000..be9da187 --- /dev/null +++ b/test/test_v1_sev_secret_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_sev_secret_options import V1SEVSecretOptions + + +class TestV1SEVSecretOptions(unittest.TestCase): + """ V1SEVSecretOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SEVSecretOptions(self): + """ + Test V1SEVSecretOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_sev_secret_options.V1SEVSecretOptions() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_sev_session_options.py b/test/test_v1_sev_session_options.py new file mode 100644 index 00000000..0c31c98e --- /dev/null +++ b/test/test_v1_sev_session_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_sev_session_options import V1SEVSessionOptions + + +class TestV1SEVSessionOptions(unittest.TestCase): + """ V1SEVSessionOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SEVSessionOptions(self): + """ + Test V1SEVSessionOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_sev_session_options.V1SEVSessionOptions() + pass + + +if __name__ == '__main__': + unittest.main() From 4197d6571f907e0a76681614212f083d750979fa Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Mon, 3 Jul 2023 20:35:04 +0000 Subject: [PATCH 355/521] Client Python update by KubeVirt Prow build 1675954738023108608 --- README.md | 2 +- docs/V1beta1VirtualMachineInstancetypeSpec.md | 2 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...beta1_virtual_machine_instancetype_spec.py | 62 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 67 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index f74cdfc4..7b52710a 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-487-g34daa9c8e +- Package version: v1.0.0-beta.0-498-g1ad7e02e7 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1VirtualMachineInstancetypeSpec.md b/docs/V1beta1VirtualMachineInstancetypeSpec.md index a10f699f..4d7923f7 100644 --- a/docs/V1beta1VirtualMachineInstancetypeSpec.md +++ b/docs/V1beta1VirtualMachineInstancetypeSpec.md @@ -9,6 +9,8 @@ Name | Type | Description | Notes **io_threads_policy** | **str** | Optionally defines the IOThreadsPolicy to be used by the instancetype. | [optional] **launch_security** | [**V1LaunchSecurity**](V1LaunchSecurity.md) | Optionally defines the LaunchSecurity to be used by the instancetype. | [optional] **memory** | [**V1beta1MemoryInstancetype**](V1beta1MemoryInstancetype.md) | Required Memory related attributes of the instancetype. | +**node_selector** | **dict(str, str)** | NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ NodeSelector is the name of the custom node selector for the instancetype. | [optional] +**scheduler_name** | **str** | If specified, the VMI will be dispatched by specified scheduler. If not specified, the VMI will be dispatched by default scheduler. SchedulerName is the name of the custom K8s scheduler for the instancetype. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index dc39f6b5..a14a8adb 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-487-g34daa9c8e" + release_note="Auto-generated client v1.0.0-beta.0-498-g1ad7e02e7" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 036c064b..1493101f 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-487-g34daa9c8e/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-498-g1ad7e02e7/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index acd5ef71..9fb47dca 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-487-g34daa9c8e".\ + "SDK Package Version: v1.0.0-beta.0-498-g1ad7e02e7".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_virtual_machine_instancetype_spec.py b/kubevirt/models/v1beta1_virtual_machine_instancetype_spec.py index cc3071f8..574ccea2 100644 --- a/kubevirt/models/v1beta1_virtual_machine_instancetype_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_instancetype_spec.py @@ -36,7 +36,9 @@ class V1beta1VirtualMachineInstancetypeSpec(object): 'host_devices': 'list[V1HostDevice]', 'io_threads_policy': 'str', 'launch_security': 'V1LaunchSecurity', - 'memory': 'V1beta1MemoryInstancetype' + 'memory': 'V1beta1MemoryInstancetype', + 'node_selector': 'dict(str, str)', + 'scheduler_name': 'str' } attribute_map = { @@ -45,10 +47,12 @@ class V1beta1VirtualMachineInstancetypeSpec(object): 'host_devices': 'hostDevices', 'io_threads_policy': 'ioThreadsPolicy', 'launch_security': 'launchSecurity', - 'memory': 'memory' + 'memory': 'memory', + 'node_selector': 'nodeSelector', + 'scheduler_name': 'schedulerName' } - def __init__(self, cpu=None, gpus=None, host_devices=None, io_threads_policy=None, launch_security=None, memory=None): + def __init__(self, cpu=None, gpus=None, host_devices=None, io_threads_policy=None, launch_security=None, memory=None, node_selector=None, scheduler_name=None): """ V1beta1VirtualMachineInstancetypeSpec - a model defined in Swagger """ @@ -59,6 +63,8 @@ def __init__(self, cpu=None, gpus=None, host_devices=None, io_threads_policy=Non self._io_threads_policy = None self._launch_security = None self._memory = None + self._node_selector = None + self._scheduler_name = None self.cpu = cpu if gpus is not None: @@ -70,6 +76,10 @@ def __init__(self, cpu=None, gpus=None, host_devices=None, io_threads_policy=Non if launch_security is not None: self.launch_security = launch_security self.memory = memory + if node_selector is not None: + self.node_selector = node_selector + if scheduler_name is not None: + self.scheduler_name = scheduler_name @property def cpu(self): @@ -213,6 +223,52 @@ def memory(self, memory): self._memory = memory + @property + def node_selector(self): + """ + Gets the node_selector of this V1beta1VirtualMachineInstancetypeSpec. + NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ NodeSelector is the name of the custom node selector for the instancetype. + + :return: The node_selector of this V1beta1VirtualMachineInstancetypeSpec. + :rtype: dict(str, str) + """ + return self._node_selector + + @node_selector.setter + def node_selector(self, node_selector): + """ + Sets the node_selector of this V1beta1VirtualMachineInstancetypeSpec. + NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ NodeSelector is the name of the custom node selector for the instancetype. + + :param node_selector: The node_selector of this V1beta1VirtualMachineInstancetypeSpec. + :type: dict(str, str) + """ + + self._node_selector = node_selector + + @property + def scheduler_name(self): + """ + Gets the scheduler_name of this V1beta1VirtualMachineInstancetypeSpec. + If specified, the VMI will be dispatched by specified scheduler. If not specified, the VMI will be dispatched by default scheduler. SchedulerName is the name of the custom K8s scheduler for the instancetype. + + :return: The scheduler_name of this V1beta1VirtualMachineInstancetypeSpec. + :rtype: str + """ + return self._scheduler_name + + @scheduler_name.setter + def scheduler_name(self, scheduler_name): + """ + Sets the scheduler_name of this V1beta1VirtualMachineInstancetypeSpec. + If specified, the VMI will be dispatched by specified scheduler. If not specified, the VMI will be dispatched by default scheduler. SchedulerName is the name of the custom K8s scheduler for the instancetype. + + :param scheduler_name: The scheduler_name of this V1beta1VirtualMachineInstancetypeSpec. + :type: str + """ + + self._scheduler_name = scheduler_name + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 7eca93b8..60e8809e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-487-g34daa9c8e" +VERSION = "v1.0.0-beta.0-498-g1ad7e02e7" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 0f659222..5b43aff6 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-487-g34daa9c8e" +"packageVersion": "v1.0.0-beta.0-498-g1ad7e02e7" } From 345d8ff35c6d30a2da00bb2d013e0f3e667bf476 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 13 Jul 2023 22:29:09 +0000 Subject: [PATCH 356/521] Client Python update by KubeVirt Prow build 1679602761722761216 --- README.md | 9 +- docs/DefaultApi.md | 208 --------- docs/V1AddInterfaceOptions.md | 11 - docs/V1RemoveInterfaceOptions.md | 10 - docs/V1VirtualMachineInterfaceRequest.md | 11 - docs/V1VirtualMachineStatus.md | 1 - git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 9 - kubevirt/__init__.py | 3 - kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 440 ------------------ kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 3 - kubevirt/models/v1_add_interface_options.py | 155 ------ .../models/v1_remove_interface_options.py | 126 ----- .../v1_virtual_machine_interface_request.py | 153 ------ kubevirt/models/v1_virtual_machine_status.py | 30 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 32 -- test/test_v1_add_interface_options.py | 44 -- test/test_v1_remove_interface_options.py | 44 -- ...st_v1_virtual_machine_interface_request.py | 44 -- 23 files changed, 7 insertions(+), 1336 deletions(-) delete mode 100644 docs/V1AddInterfaceOptions.md delete mode 100644 docs/V1RemoveInterfaceOptions.md delete mode 100644 docs/V1VirtualMachineInterfaceRequest.md delete mode 100644 kubevirt/models/v1_add_interface_options.py delete mode 100644 kubevirt/models/v1_remove_interface_options.py delete mode 100644 kubevirt/models/v1_virtual_machine_interface_request.py delete mode 100644 test/test_v1_add_interface_options.py delete mode 100644 test/test_v1_remove_interface_options.py delete mode 100644 test/test_v1_virtual_machine_interface_request.py diff --git a/README.md b/README.md index 7b52710a..b02ae002 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-498-g1ad7e02e7 +- Package version: v1.0.0-beta.0-589-g4eae61e83 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -280,12 +280,10 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3start_cluster_profiler**](docs/DefaultApi.md#v1alpha3start_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/start-cluster-profiler | *DefaultApi* | [**v1alpha3stop_cluster_profiler**](docs/DefaultApi.md#v1alpha3stop_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/stop-cluster-profiler | *DefaultApi* | [**v1alpha3usbredir**](docs/DefaultApi.md#v1alpha3usbredir) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir | -*DefaultApi* | [**v1alpha3vm_addinterface**](docs/DefaultApi.md#v1alpha3vm_addinterface) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addinterface | *DefaultApi* | [**v1alpha3vm_addvolume**](docs/DefaultApi.md#v1alpha3vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | *DefaultApi* | [**v1alpha3vm_expand_spec**](docs/DefaultApi.md#v1alpha3vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec | *DefaultApi* | [**v1alpha3vm_port_forward**](docs/DefaultApi.md#v1alpha3vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | *DefaultApi* | [**v1alpha3vm_port_forward_with_protocol**](docs/DefaultApi.md#v1alpha3vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | -*DefaultApi* | [**v1alpha3vm_removeinterface**](docs/DefaultApi.md#v1alpha3vm_removeinterface) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removeinterface | *DefaultApi* | [**v1alpha3vm_removevolume**](docs/DefaultApi.md#v1alpha3vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | *DefaultApi* | [**v1alpha3vmi_addvolume**](docs/DefaultApi.md#v1alpha3vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | *DefaultApi* | [**v1alpha3vmi_port_forward**](docs/DefaultApi.md#v1alpha3vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | @@ -296,12 +294,10 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1start_cluster_profiler**](docs/DefaultApi.md#v1start_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/start-cluster-profiler | *DefaultApi* | [**v1stop_cluster_profiler**](docs/DefaultApi.md#v1stop_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/stop-cluster-profiler | *DefaultApi* | [**v1usbredir**](docs/DefaultApi.md#v1usbredir) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir | -*DefaultApi* | [**v1vm_addinterface**](docs/DefaultApi.md#v1vm_addinterface) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addinterface | *DefaultApi* | [**v1vm_addvolume**](docs/DefaultApi.md#v1vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | *DefaultApi* | [**v1vm_expand_spec**](docs/DefaultApi.md#v1vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec | *DefaultApi* | [**v1vm_port_forward**](docs/DefaultApi.md#v1vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | *DefaultApi* | [**v1vm_port_forward_with_protocol**](docs/DefaultApi.md#v1vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | -*DefaultApi* | [**v1vm_removeinterface**](docs/DefaultApi.md#v1vm_removeinterface) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removeinterface | *DefaultApi* | [**v1vm_removevolume**](docs/DefaultApi.md#v1vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | *DefaultApi* | [**v1vmi_addvolume**](docs/DefaultApi.md#v1vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | *DefaultApi* | [**v1vmi_port_forward**](docs/DefaultApi.md#v1vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | @@ -397,7 +393,6 @@ Class | Method | HTTP request | Description - [K8sIoApimachineryPkgUtilIntstrIntOrString](docs/K8sIoApimachineryPkgUtilIntstrIntOrString.md) - [V1AccessCredential](docs/V1AccessCredential.md) - [V1AccessCredentialSecretSource](docs/V1AccessCredentialSecretSource.md) - - [V1AddInterfaceOptions](docs/V1AddInterfaceOptions.md) - [V1AddVolumeOptions](docs/V1AddVolumeOptions.md) - [V1ArchConfiguration](docs/V1ArchConfiguration.md) - [V1ArchSpecificConfiguration](docs/V1ArchSpecificConfiguration.md) @@ -525,7 +520,6 @@ Class | Method | HTTP request | Description - [V1RateLimiter](docs/V1RateLimiter.md) - [V1Realtime](docs/V1Realtime.md) - [V1ReloadableComponentConfiguration](docs/V1ReloadableComponentConfiguration.md) - - [V1RemoveInterfaceOptions](docs/V1RemoveInterfaceOptions.md) - [V1RemoveVolumeOptions](docs/V1RemoveVolumeOptions.md) - [V1ResourceRequirements](docs/V1ResourceRequirements.md) - [V1RestartOptions](docs/V1RestartOptions.md) @@ -594,7 +588,6 @@ Class | Method | HTTP request | Description - [V1VirtualMachineInstanceSpec](docs/V1VirtualMachineInstanceSpec.md) - [V1VirtualMachineInstanceStatus](docs/V1VirtualMachineInstanceStatus.md) - [V1VirtualMachineInstanceTemplateSpec](docs/V1VirtualMachineInstanceTemplateSpec.md) - - [V1VirtualMachineInterfaceRequest](docs/V1VirtualMachineInterfaceRequest.md) - [V1VirtualMachineList](docs/V1VirtualMachineList.md) - [V1VirtualMachineMemoryDumpRequest](docs/V1VirtualMachineMemoryDumpRequest.md) - [V1VirtualMachineOptions](docs/V1VirtualMachineOptions.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index d1bb18cc..d4c6bee4 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -215,12 +215,10 @@ Method | HTTP request | Description [**v1alpha3start_cluster_profiler**](DefaultApi.md#v1alpha3start_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/start-cluster-profiler | [**v1alpha3stop_cluster_profiler**](DefaultApi.md#v1alpha3stop_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/stop-cluster-profiler | [**v1alpha3usbredir**](DefaultApi.md#v1alpha3usbredir) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir | -[**v1alpha3vm_addinterface**](DefaultApi.md#v1alpha3vm_addinterface) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addinterface | [**v1alpha3vm_addvolume**](DefaultApi.md#v1alpha3vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | [**v1alpha3vm_expand_spec**](DefaultApi.md#v1alpha3vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec | [**v1alpha3vm_port_forward**](DefaultApi.md#v1alpha3vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | [**v1alpha3vm_port_forward_with_protocol**](DefaultApi.md#v1alpha3vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | -[**v1alpha3vm_removeinterface**](DefaultApi.md#v1alpha3vm_removeinterface) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removeinterface | [**v1alpha3vm_removevolume**](DefaultApi.md#v1alpha3vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | [**v1alpha3vmi_addvolume**](DefaultApi.md#v1alpha3vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | [**v1alpha3vmi_port_forward**](DefaultApi.md#v1alpha3vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | @@ -231,12 +229,10 @@ Method | HTTP request | Description [**v1start_cluster_profiler**](DefaultApi.md#v1start_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/start-cluster-profiler | [**v1stop_cluster_profiler**](DefaultApi.md#v1stop_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/stop-cluster-profiler | [**v1usbredir**](DefaultApi.md#v1usbredir) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir | -[**v1vm_addinterface**](DefaultApi.md#v1vm_addinterface) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addinterface | [**v1vm_addvolume**](DefaultApi.md#v1vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | [**v1vm_expand_spec**](DefaultApi.md#v1vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec | [**v1vm_port_forward**](DefaultApi.md#v1vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | [**v1vm_port_forward_with_protocol**](DefaultApi.md#v1vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | -[**v1vm_removeinterface**](DefaultApi.md#v1vm_removeinterface) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removeinterface | [**v1vm_removevolume**](DefaultApi.md#v1vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | [**v1vmi_addvolume**](DefaultApi.md#v1vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | [**v1vmi_port_forward**](DefaultApi.md#v1vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | @@ -11224,57 +11220,6 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1alpha3vm_addinterface** -> str v1alpha3vm_addinterface(name, namespace, body) - - - -Add a network interface to a running Virtual Machine. - -### Example -```python -from __future__ import print_function -import time -import kubevirt -from kubevirt.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = kubevirt.DefaultApi() -name = 'name_example' # str | Name of the resource -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1AddInterfaceOptions() # V1AddInterfaceOptions | - -try: - api_response = api_instance.v1alpha3vm_addinterface(name, namespace, body) - pprint(api_response) -except ApiException as e: - print("Exception when calling DefaultApi->v1alpha3vm_addinterface: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Name of the resource | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1AddInterfaceOptions**](V1AddInterfaceOptions.md)| | - -### Return type - -**str** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **v1alpha3vm_addvolume** > str v1alpha3vm_addvolume(name, namespace, body) @@ -11477,57 +11422,6 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1alpha3vm_removeinterface** -> str v1alpha3vm_removeinterface(name, namespace, body) - - - -Remove a network interface from a running Virtual Machine - -### Example -```python -from __future__ import print_function -import time -import kubevirt -from kubevirt.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = kubevirt.DefaultApi() -name = 'name_example' # str | Name of the resource -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1RemoveInterfaceOptions() # V1RemoveInterfaceOptions | - -try: - api_response = api_instance.v1alpha3vm_removeinterface(name, namespace, body) - pprint(api_response) -except ApiException as e: - print("Exception when calling DefaultApi->v1alpha3vm_removeinterface: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Name of the resource | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1RemoveInterfaceOptions**](V1RemoveInterfaceOptions.md)| | - -### Return type - -**str** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **v1alpha3vm_removevolume** > str v1alpha3vm_removevolume(name, namespace, body) @@ -11994,57 +11888,6 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1vm_addinterface** -> str v1vm_addinterface(name, namespace, body) - - - -Add a network interface to a running Virtual Machine. - -### Example -```python -from __future__ import print_function -import time -import kubevirt -from kubevirt.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = kubevirt.DefaultApi() -name = 'name_example' # str | Name of the resource -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1AddInterfaceOptions() # V1AddInterfaceOptions | - -try: - api_response = api_instance.v1vm_addinterface(name, namespace, body) - pprint(api_response) -except ApiException as e: - print("Exception when calling DefaultApi->v1vm_addinterface: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Name of the resource | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1AddInterfaceOptions**](V1AddInterfaceOptions.md)| | - -### Return type - -**str** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **v1vm_addvolume** > str v1vm_addvolume(name, namespace, body) @@ -12247,57 +12090,6 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1vm_removeinterface** -> str v1vm_removeinterface(name, namespace, body) - - - -Remove a network interface from a running Virtual Machine - -### Example -```python -from __future__ import print_function -import time -import kubevirt -from kubevirt.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = kubevirt.DefaultApi() -name = 'name_example' # str | Name of the resource -namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1RemoveInterfaceOptions() # V1RemoveInterfaceOptions | - -try: - api_response = api_instance.v1vm_removeinterface(name, namespace, body) - pprint(api_response) -except ApiException as e: - print("Exception when calling DefaultApi->v1vm_removeinterface: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Name of the resource | - **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1RemoveInterfaceOptions**](V1RemoveInterfaceOptions.md)| | - -### Return type - -**str** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **v1vm_removevolume** > str v1vm_removevolume(name, namespace, body) diff --git a/docs/V1AddInterfaceOptions.md b/docs/V1AddInterfaceOptions.md deleted file mode 100644 index a00bd48d..00000000 --- a/docs/V1AddInterfaceOptions.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1AddInterfaceOptions - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | Name indicates the logical name of the interface. | [default to ''] -**network_attachment_definition_name** | **str** | NetworkAttachmentDefinitionName references a NetworkAttachmentDefinition CRD object. Format: <networkAttachmentDefinitionName>, <namespace>/<networkAttachmentDefinitionName>. If namespace is not specified, VMI namespace is assumed. | [default to ''] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1RemoveInterfaceOptions.md b/docs/V1RemoveInterfaceOptions.md deleted file mode 100644 index 7e963c58..00000000 --- a/docs/V1RemoveInterfaceOptions.md +++ /dev/null @@ -1,10 +0,0 @@ -# V1RemoveInterfaceOptions - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | Name indicates the logical name of the interface. | [default to ''] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1VirtualMachineInterfaceRequest.md b/docs/V1VirtualMachineInterfaceRequest.md deleted file mode 100644 index 95205ef7..00000000 --- a/docs/V1VirtualMachineInterfaceRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1VirtualMachineInterfaceRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**add_interface_options** | [**V1AddInterfaceOptions**](V1AddInterfaceOptions.md) | AddInterfaceOptions when set indicates a network interface should be added. The details within this field specify how to add the interface | [optional] -**remove_interface_options** | [**V1RemoveInterfaceOptions**](V1RemoveInterfaceOptions.md) | RemoveInterfaceOptions when set indicates a network interface should be removed. The details within this field specify how to remove the interface | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1VirtualMachineStatus.md b/docs/V1VirtualMachineStatus.md index ea37bb44..db3b4f5c 100644 --- a/docs/V1VirtualMachineStatus.md +++ b/docs/V1VirtualMachineStatus.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes **conditions** | [**list[V1VirtualMachineCondition]**](V1VirtualMachineCondition.md) | Hold the state information of the VirtualMachine and its VirtualMachineInstance | [optional] **created** | **bool** | Created indicates if the virtual machine is created in the cluster | [optional] **desired_generation** | **int** | DesiredGeneration is the generation which is desired for the VMI. This will be used in comparisons with ObservedGeneration to understand when the VMI is out of sync. This will be changed at the same time as ObservedGeneration to remove errors which could occur if Generation is updated through an Update() before ObservedGeneration in Status. | [optional] -**interface_requests** | [**list[V1VirtualMachineInterfaceRequest]**](V1VirtualMachineInterfaceRequest.md) | InterfaceRequests indicates a list of interfaces added to the VMI template and hot-plugged on an active running VMI. | [optional] **memory_dump_request** | [**V1VirtualMachineMemoryDumpRequest**](V1VirtualMachineMemoryDumpRequest.md) | MemoryDumpRequest tracks memory dump request phase and info of getting a memory dump to the given pvc | [optional] **observed_generation** | **int** | ObservedGeneration is the generation observed by the vmi when started. | [optional] **printable_status** | **str** | PrintableStatus is a human readable, high-level representation of the status of the virtual machine | [optional] diff --git a/git_push.sh b/git_push.sh index a14a8adb..12416216 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-498-g1ad7e02e7" + release_note="Auto-generated client v1.0.0-beta.0-589-g4eae61e83" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 624bb3b1..80e63f82 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -189,9 +189,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_access_credential_secret_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_access_credential_secret_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1AccessCredentialSecretSource.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_add_interface_options.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_add_interface_options.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1AddInterfaceOptions.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_add_volume_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_add_volume_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1AddVolumeOptions.md @@ -573,9 +570,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_reloadable_component_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_reloadable_component_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ReloadableComponentConfiguration.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_remove_interface_options.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_remove_interface_options.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1RemoveInterfaceOptions.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_remove_volume_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_remove_volume_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1RemoveVolumeOptions.md @@ -780,9 +774,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_virtual_machine_instance_template_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_template_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceTemplateSpec.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_interface_request.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_interface_request.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInterfaceRequest.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineList.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 493b4b0f..de2e3910 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -70,7 +70,6 @@ from .models.k8s_io_apimachinery_pkg_util_intstr_int_or_string import K8sIoApimachineryPkgUtilIntstrIntOrString from .models.v1_access_credential import V1AccessCredential from .models.v1_access_credential_secret_source import V1AccessCredentialSecretSource -from .models.v1_add_interface_options import V1AddInterfaceOptions from .models.v1_add_volume_options import V1AddVolumeOptions from .models.v1_arch_configuration import V1ArchConfiguration from .models.v1_arch_specific_configuration import V1ArchSpecificConfiguration @@ -198,7 +197,6 @@ from .models.v1_rate_limiter import V1RateLimiter from .models.v1_realtime import V1Realtime from .models.v1_reloadable_component_configuration import V1ReloadableComponentConfiguration -from .models.v1_remove_interface_options import V1RemoveInterfaceOptions from .models.v1_remove_volume_options import V1RemoveVolumeOptions from .models.v1_resource_requirements import V1ResourceRequirements from .models.v1_restart_options import V1RestartOptions @@ -267,7 +265,6 @@ from .models.v1_virtual_machine_instance_spec import V1VirtualMachineInstanceSpec from .models.v1_virtual_machine_instance_status import V1VirtualMachineInstanceStatus from .models.v1_virtual_machine_instance_template_spec import V1VirtualMachineInstanceTemplateSpec -from .models.v1_virtual_machine_interface_request import V1VirtualMachineInterfaceRequest from .models.v1_virtual_machine_list import V1VirtualMachineList from .models.v1_virtual_machine_memory_dump_request import V1VirtualMachineMemoryDumpRequest from .models.v1_virtual_machine_options import V1VirtualMachineOptions diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 1493101f..bb9fe24a 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-498-g1ad7e02e7/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-589-g4eae61e83/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 08a7112b..c9407586 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -23859,116 +23859,6 @@ def v1alpha3usbredir_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3vm_addinterface(self, name, namespace, body, **kwargs): - """ - Add a network interface to a running Virtual Machine. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1alpha3vm_addinterface(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1AddInterfaceOptions body: (required) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.v1alpha3vm_addinterface_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.v1alpha3vm_addinterface_with_http_info(name, namespace, body, **kwargs) - return data - - def v1alpha3vm_addinterface_with_http_info(self, name, namespace, body, **kwargs): - """ - Add a network interface to a running Virtual Machine. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1alpha3vm_addinterface_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1AddInterfaceOptions body: (required) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method v1alpha3vm_addinterface" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3vm_addinterface`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vm_addinterface`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1alpha3vm_addinterface`") - - - collection_formats = {} - - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addinterface', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - def v1alpha3vm_addvolume(self, name, namespace, body, **kwargs): """ Add a volume and disk to a running Virtual Machine. @@ -24413,116 +24303,6 @@ def v1alpha3vm_port_forward_with_protocol_with_http_info(self, name, namespace, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3vm_removeinterface(self, name, namespace, body, **kwargs): - """ - Remove a network interface from a running Virtual Machine - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1alpha3vm_removeinterface(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RemoveInterfaceOptions body: (required) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.v1alpha3vm_removeinterface_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.v1alpha3vm_removeinterface_with_http_info(name, namespace, body, **kwargs) - return data - - def v1alpha3vm_removeinterface_with_http_info(self, name, namespace, body, **kwargs): - """ - Remove a network interface from a running Virtual Machine - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1alpha3vm_removeinterface_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RemoveInterfaceOptions body: (required) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method v1alpha3vm_removeinterface" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1alpha3vm_removeinterface`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vm_removeinterface`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1alpha3vm_removeinterface`") - - - collection_formats = {} - - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removeinterface', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - def v1alpha3vm_removevolume(self, name, namespace, body, **kwargs): """ Removes a volume and disk from a running Virtual Machine. @@ -25545,116 +25325,6 @@ def v1usbredir_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1vm_addinterface(self, name, namespace, body, **kwargs): - """ - Add a network interface to a running Virtual Machine. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1vm_addinterface(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1AddInterfaceOptions body: (required) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.v1vm_addinterface_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.v1vm_addinterface_with_http_info(name, namespace, body, **kwargs) - return data - - def v1vm_addinterface_with_http_info(self, name, namespace, body, **kwargs): - """ - Add a network interface to a running Virtual Machine. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1vm_addinterface_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1AddInterfaceOptions body: (required) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method v1vm_addinterface" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1vm_addinterface`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1vm_addinterface`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1vm_addinterface`") - - - collection_formats = {} - - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addinterface', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - def v1vm_addvolume(self, name, namespace, body, **kwargs): """ Add a volume and disk to a running Virtual Machine. @@ -26099,116 +25769,6 @@ def v1vm_port_forward_with_protocol_with_http_info(self, name, namespace, port, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1vm_removeinterface(self, name, namespace, body, **kwargs): - """ - Remove a network interface from a running Virtual Machine - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1vm_removeinterface(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RemoveInterfaceOptions body: (required) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.v1vm_removeinterface_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.v1vm_removeinterface_with_http_info(name, namespace, body, **kwargs) - return data - - def v1vm_removeinterface_with_http_info(self, name, namespace, body, **kwargs): - """ - Remove a network interface from a running Virtual Machine - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.v1vm_removeinterface_with_http_info(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1RemoveInterfaceOptions body: (required) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'body'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method v1vm_removeinterface" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1vm_removeinterface`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1vm_removeinterface`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1vm_removeinterface`") - - - collection_formats = {} - - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removeinterface', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - def v1vm_removevolume(self, name, namespace, body, **kwargs): """ Removes a volume and disk from a running Virtual Machine. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 9fb47dca..45975ccd 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-498-g1ad7e02e7".\ + "SDK Package Version: v1.0.0-beta.0-589-g4eae61e83".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 732a2387..580f7ba8 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -70,7 +70,6 @@ from .k8s_io_apimachinery_pkg_util_intstr_int_or_string import K8sIoApimachineryPkgUtilIntstrIntOrString from .v1_access_credential import V1AccessCredential from .v1_access_credential_secret_source import V1AccessCredentialSecretSource -from .v1_add_interface_options import V1AddInterfaceOptions from .v1_add_volume_options import V1AddVolumeOptions from .v1_arch_configuration import V1ArchConfiguration from .v1_arch_specific_configuration import V1ArchSpecificConfiguration @@ -198,7 +197,6 @@ from .v1_rate_limiter import V1RateLimiter from .v1_realtime import V1Realtime from .v1_reloadable_component_configuration import V1ReloadableComponentConfiguration -from .v1_remove_interface_options import V1RemoveInterfaceOptions from .v1_remove_volume_options import V1RemoveVolumeOptions from .v1_resource_requirements import V1ResourceRequirements from .v1_restart_options import V1RestartOptions @@ -267,7 +265,6 @@ from .v1_virtual_machine_instance_spec import V1VirtualMachineInstanceSpec from .v1_virtual_machine_instance_status import V1VirtualMachineInstanceStatus from .v1_virtual_machine_instance_template_spec import V1VirtualMachineInstanceTemplateSpec -from .v1_virtual_machine_interface_request import V1VirtualMachineInterfaceRequest from .v1_virtual_machine_list import V1VirtualMachineList from .v1_virtual_machine_memory_dump_request import V1VirtualMachineMemoryDumpRequest from .v1_virtual_machine_options import V1VirtualMachineOptions diff --git a/kubevirt/models/v1_add_interface_options.py b/kubevirt/models/v1_add_interface_options.py deleted file mode 100644 index e1becd2d..00000000 --- a/kubevirt/models/v1_add_interface_options.py +++ /dev/null @@ -1,155 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1AddInterfaceOptions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'str', - 'network_attachment_definition_name': 'str' - } - - attribute_map = { - 'name': 'name', - 'network_attachment_definition_name': 'networkAttachmentDefinitionName' - } - - def __init__(self, name='', network_attachment_definition_name=''): - """ - V1AddInterfaceOptions - a model defined in Swagger - """ - - self._name = None - self._network_attachment_definition_name = None - - self.name = name - self.network_attachment_definition_name = network_attachment_definition_name - - @property - def name(self): - """ - Gets the name of this V1AddInterfaceOptions. - Name indicates the logical name of the interface. - - :return: The name of this V1AddInterfaceOptions. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V1AddInterfaceOptions. - Name indicates the logical name of the interface. - - :param name: The name of this V1AddInterfaceOptions. - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") - - self._name = name - - @property - def network_attachment_definition_name(self): - """ - Gets the network_attachment_definition_name of this V1AddInterfaceOptions. - NetworkAttachmentDefinitionName references a NetworkAttachmentDefinition CRD object. Format: , /. If namespace is not specified, VMI namespace is assumed. - - :return: The network_attachment_definition_name of this V1AddInterfaceOptions. - :rtype: str - """ - return self._network_attachment_definition_name - - @network_attachment_definition_name.setter - def network_attachment_definition_name(self, network_attachment_definition_name): - """ - Sets the network_attachment_definition_name of this V1AddInterfaceOptions. - NetworkAttachmentDefinitionName references a NetworkAttachmentDefinition CRD object. Format: , /. If namespace is not specified, VMI namespace is assumed. - - :param network_attachment_definition_name: The network_attachment_definition_name of this V1AddInterfaceOptions. - :type: str - """ - if network_attachment_definition_name is None: - raise ValueError("Invalid value for `network_attachment_definition_name`, must not be `None`") - - self._network_attachment_definition_name = network_attachment_definition_name - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1AddInterfaceOptions): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_remove_interface_options.py b/kubevirt/models/v1_remove_interface_options.py deleted file mode 100644 index 1b91af21..00000000 --- a/kubevirt/models/v1_remove_interface_options.py +++ /dev/null @@ -1,126 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1RemoveInterfaceOptions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'str' - } - - attribute_map = { - 'name': 'name' - } - - def __init__(self, name=''): - """ - V1RemoveInterfaceOptions - a model defined in Swagger - """ - - self._name = None - - self.name = name - - @property - def name(self): - """ - Gets the name of this V1RemoveInterfaceOptions. - Name indicates the logical name of the interface. - - :return: The name of this V1RemoveInterfaceOptions. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V1RemoveInterfaceOptions. - Name indicates the logical name of the interface. - - :param name: The name of this V1RemoveInterfaceOptions. - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") - - self._name = name - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1RemoveInterfaceOptions): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_virtual_machine_interface_request.py b/kubevirt/models/v1_virtual_machine_interface_request.py deleted file mode 100644 index e2954c9a..00000000 --- a/kubevirt/models/v1_virtual_machine_interface_request.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1VirtualMachineInterfaceRequest(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'add_interface_options': 'V1AddInterfaceOptions', - 'remove_interface_options': 'V1RemoveInterfaceOptions' - } - - attribute_map = { - 'add_interface_options': 'addInterfaceOptions', - 'remove_interface_options': 'removeInterfaceOptions' - } - - def __init__(self, add_interface_options=None, remove_interface_options=None): - """ - V1VirtualMachineInterfaceRequest - a model defined in Swagger - """ - - self._add_interface_options = None - self._remove_interface_options = None - - if add_interface_options is not None: - self.add_interface_options = add_interface_options - if remove_interface_options is not None: - self.remove_interface_options = remove_interface_options - - @property - def add_interface_options(self): - """ - Gets the add_interface_options of this V1VirtualMachineInterfaceRequest. - AddInterfaceOptions when set indicates a network interface should be added. The details within this field specify how to add the interface - - :return: The add_interface_options of this V1VirtualMachineInterfaceRequest. - :rtype: V1AddInterfaceOptions - """ - return self._add_interface_options - - @add_interface_options.setter - def add_interface_options(self, add_interface_options): - """ - Sets the add_interface_options of this V1VirtualMachineInterfaceRequest. - AddInterfaceOptions when set indicates a network interface should be added. The details within this field specify how to add the interface - - :param add_interface_options: The add_interface_options of this V1VirtualMachineInterfaceRequest. - :type: V1AddInterfaceOptions - """ - - self._add_interface_options = add_interface_options - - @property - def remove_interface_options(self): - """ - Gets the remove_interface_options of this V1VirtualMachineInterfaceRequest. - RemoveInterfaceOptions when set indicates a network interface should be removed. The details within this field specify how to remove the interface - - :return: The remove_interface_options of this V1VirtualMachineInterfaceRequest. - :rtype: V1RemoveInterfaceOptions - """ - return self._remove_interface_options - - @remove_interface_options.setter - def remove_interface_options(self, remove_interface_options): - """ - Sets the remove_interface_options of this V1VirtualMachineInterfaceRequest. - RemoveInterfaceOptions when set indicates a network interface should be removed. The details within this field specify how to remove the interface - - :param remove_interface_options: The remove_interface_options of this V1VirtualMachineInterfaceRequest. - :type: V1RemoveInterfaceOptions - """ - - self._remove_interface_options = remove_interface_options - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1VirtualMachineInterfaceRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_virtual_machine_status.py b/kubevirt/models/v1_virtual_machine_status.py index 9add5011..2e6bcf56 100644 --- a/kubevirt/models/v1_virtual_machine_status.py +++ b/kubevirt/models/v1_virtual_machine_status.py @@ -34,7 +34,6 @@ class V1VirtualMachineStatus(object): 'conditions': 'list[V1VirtualMachineCondition]', 'created': 'bool', 'desired_generation': 'int', - 'interface_requests': 'list[V1VirtualMachineInterfaceRequest]', 'memory_dump_request': 'V1VirtualMachineMemoryDumpRequest', 'observed_generation': 'int', 'printable_status': 'str', @@ -51,7 +50,6 @@ class V1VirtualMachineStatus(object): 'conditions': 'conditions', 'created': 'created', 'desired_generation': 'desiredGeneration', - 'interface_requests': 'interfaceRequests', 'memory_dump_request': 'memoryDumpRequest', 'observed_generation': 'observedGeneration', 'printable_status': 'printableStatus', @@ -64,7 +62,7 @@ class V1VirtualMachineStatus(object): 'volume_snapshot_statuses': 'volumeSnapshotStatuses' } - def __init__(self, conditions=None, created=None, desired_generation=None, interface_requests=None, memory_dump_request=None, observed_generation=None, printable_status=None, ready=None, restore_in_progress=None, snapshot_in_progress=None, start_failure=None, state_change_requests=None, volume_requests=None, volume_snapshot_statuses=None): + def __init__(self, conditions=None, created=None, desired_generation=None, memory_dump_request=None, observed_generation=None, printable_status=None, ready=None, restore_in_progress=None, snapshot_in_progress=None, start_failure=None, state_change_requests=None, volume_requests=None, volume_snapshot_statuses=None): """ V1VirtualMachineStatus - a model defined in Swagger """ @@ -72,7 +70,6 @@ def __init__(self, conditions=None, created=None, desired_generation=None, inter self._conditions = None self._created = None self._desired_generation = None - self._interface_requests = None self._memory_dump_request = None self._observed_generation = None self._printable_status = None @@ -90,8 +87,6 @@ def __init__(self, conditions=None, created=None, desired_generation=None, inter self.created = created if desired_generation is not None: self.desired_generation = desired_generation - if interface_requests is not None: - self.interface_requests = interface_requests if memory_dump_request is not None: self.memory_dump_request = memory_dump_request if observed_generation is not None: @@ -182,29 +177,6 @@ def desired_generation(self, desired_generation): self._desired_generation = desired_generation - @property - def interface_requests(self): - """ - Gets the interface_requests of this V1VirtualMachineStatus. - InterfaceRequests indicates a list of interfaces added to the VMI template and hot-plugged on an active running VMI. - - :return: The interface_requests of this V1VirtualMachineStatus. - :rtype: list[V1VirtualMachineInterfaceRequest] - """ - return self._interface_requests - - @interface_requests.setter - def interface_requests(self, interface_requests): - """ - Sets the interface_requests of this V1VirtualMachineStatus. - InterfaceRequests indicates a list of interfaces added to the VMI template and hot-plugged on an active running VMI. - - :param interface_requests: The interface_requests of this V1VirtualMachineStatus. - :type: list[V1VirtualMachineInterfaceRequest] - """ - - self._interface_requests = interface_requests - @property def memory_dump_request(self): """ diff --git a/setup.py b/setup.py index 60e8809e..83d9f275 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-498-g1ad7e02e7" +VERSION = "v1.0.0-beta.0-589-g4eae61e83" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 5b43aff6..41af5711 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-498-g1ad7e02e7" +"packageVersion": "v1.0.0-beta.0-589-g4eae61e83" } diff --git a/test/test_default_api.py b/test/test_default_api.py index e33843bd..7258c8c8 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -1716,14 +1716,6 @@ def test_v1alpha3usbredir(self): Test case for v1alpha3usbredir - """ - pass - - def test_v1alpha3vm_addinterface(self): - """ - Test case for v1alpha3vm_addinterface - - """ pass @@ -1756,14 +1748,6 @@ def test_v1alpha3vm_port_forward_with_protocol(self): Test case for v1alpha3vm_port_forward_with_protocol - """ - pass - - def test_v1alpha3vm_removeinterface(self): - """ - Test case for v1alpha3vm_removeinterface - - """ pass @@ -1844,14 +1828,6 @@ def test_v1usbredir(self): Test case for v1usbredir - """ - pass - - def test_v1vm_addinterface(self): - """ - Test case for v1vm_addinterface - - """ pass @@ -1884,14 +1860,6 @@ def test_v1vm_port_forward_with_protocol(self): Test case for v1vm_port_forward_with_protocol - """ - pass - - def test_v1vm_removeinterface(self): - """ - Test case for v1vm_removeinterface - - """ pass diff --git a/test/test_v1_add_interface_options.py b/test/test_v1_add_interface_options.py deleted file mode 100644 index 6b755af4..00000000 --- a/test/test_v1_add_interface_options.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_add_interface_options import V1AddInterfaceOptions - - -class TestV1AddInterfaceOptions(unittest.TestCase): - """ V1AddInterfaceOptions unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1AddInterfaceOptions(self): - """ - Test V1AddInterfaceOptions - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_add_interface_options.V1AddInterfaceOptions() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_remove_interface_options.py b/test/test_v1_remove_interface_options.py deleted file mode 100644 index c58346cd..00000000 --- a/test/test_v1_remove_interface_options.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_remove_interface_options import V1RemoveInterfaceOptions - - -class TestV1RemoveInterfaceOptions(unittest.TestCase): - """ V1RemoveInterfaceOptions unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1RemoveInterfaceOptions(self): - """ - Test V1RemoveInterfaceOptions - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_remove_interface_options.V1RemoveInterfaceOptions() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_virtual_machine_interface_request.py b/test/test_v1_virtual_machine_interface_request.py deleted file mode 100644 index 1f63af8e..00000000 --- a/test/test_v1_virtual_machine_interface_request.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_virtual_machine_interface_request import V1VirtualMachineInterfaceRequest - - -class TestV1VirtualMachineInterfaceRequest(unittest.TestCase): - """ V1VirtualMachineInterfaceRequest unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1VirtualMachineInterfaceRequest(self): - """ - Test V1VirtualMachineInterfaceRequest - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_virtual_machine_interface_request.V1VirtualMachineInterfaceRequest() - pass - - -if __name__ == '__main__': - unittest.main() From 924300cc858768bc51ddac39a9a629c27ab1d429 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 14 Jul 2023 13:04:48 +0000 Subject: [PATCH 357/521] Client Python update by KubeVirt Prow build 1679822829391974400 --- README.md | 2 +- docs/V1Disk.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_disk.py | 30 +++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index b02ae002..4b52de04 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-589-g4eae61e83 +- Package version: v1.0.0-beta.0-594-gf737c5be5 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Disk.md b/docs/V1Disk.md index 641c6263..0422eb4a 100644 --- a/docs/V1Disk.md +++ b/docs/V1Disk.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **cdrom** | [**V1CDRomTarget**](V1CDRomTarget.md) | Attach a volume as a cdrom to the vmi. | [optional] **dedicated_io_thread** | **bool** | dedicatedIOThread indicates this disk should have an exclusive IO Thread. Enabling this implies useIOThreads = true. Defaults to false. | [optional] **disk** | [**V1DiskTarget**](V1DiskTarget.md) | Attach a volume as a disk to the vmi. | [optional] +**error_policy** | **str** | If specified, it can change the default error policy (stop) for the disk | [optional] **io** | **str** | IO specifies which QEMU disk IO mode should be used. Supported values are: native, default, threads. | [optional] **lun** | [**V1LunTarget**](V1LunTarget.md) | Attach a volume as a LUN to the vmi. | [optional] **name** | **str** | Name is the device name | [default to ''] diff --git a/git_push.sh b/git_push.sh index 12416216..5ab65263 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-589-g4eae61e83" + release_note="Auto-generated client v1.0.0-beta.0-594-gf737c5be5" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index bb9fe24a..1091819f 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-589-g4eae61e83/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-594-gf737c5be5/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 45975ccd..c37218d2 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-589-g4eae61e83".\ + "SDK Package Version: v1.0.0-beta.0-594-gf737c5be5".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_disk.py b/kubevirt/models/v1_disk.py index 11b2639b..0041a7d7 100644 --- a/kubevirt/models/v1_disk.py +++ b/kubevirt/models/v1_disk.py @@ -37,6 +37,7 @@ class V1Disk(object): 'cdrom': 'V1CDRomTarget', 'dedicated_io_thread': 'bool', 'disk': 'V1DiskTarget', + 'error_policy': 'str', 'io': 'str', 'lun': 'V1LunTarget', 'name': 'str', @@ -52,6 +53,7 @@ class V1Disk(object): 'cdrom': 'cdrom', 'dedicated_io_thread': 'dedicatedIOThread', 'disk': 'disk', + 'error_policy': 'errorPolicy', 'io': 'io', 'lun': 'lun', 'name': 'name', @@ -60,7 +62,7 @@ class V1Disk(object): 'tag': 'tag' } - def __init__(self, block_size=None, boot_order=None, cache=None, cdrom=None, dedicated_io_thread=None, disk=None, io=None, lun=None, name='', serial=None, shareable=None, tag=None): + def __init__(self, block_size=None, boot_order=None, cache=None, cdrom=None, dedicated_io_thread=None, disk=None, error_policy=None, io=None, lun=None, name='', serial=None, shareable=None, tag=None): """ V1Disk - a model defined in Swagger """ @@ -71,6 +73,7 @@ def __init__(self, block_size=None, boot_order=None, cache=None, cdrom=None, ded self._cdrom = None self._dedicated_io_thread = None self._disk = None + self._error_policy = None self._io = None self._lun = None self._name = None @@ -90,6 +93,8 @@ def __init__(self, block_size=None, boot_order=None, cache=None, cdrom=None, ded self.dedicated_io_thread = dedicated_io_thread if disk is not None: self.disk = disk + if error_policy is not None: + self.error_policy = error_policy if io is not None: self.io = io if lun is not None: @@ -240,6 +245,29 @@ def disk(self, disk): self._disk = disk + @property + def error_policy(self): + """ + Gets the error_policy of this V1Disk. + If specified, it can change the default error policy (stop) for the disk + + :return: The error_policy of this V1Disk. + :rtype: str + """ + return self._error_policy + + @error_policy.setter + def error_policy(self, error_policy): + """ + Sets the error_policy of this V1Disk. + If specified, it can change the default error policy (stop) for the disk + + :param error_policy: The error_policy of this V1Disk. + :type: str + """ + + self._error_policy = error_policy + @property def io(self): """ diff --git a/setup.py b/setup.py index 83d9f275..3782f397 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-589-g4eae61e83" +VERSION = "v1.0.0-beta.0-594-gf737c5be5" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 41af5711..f31eb450 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-589-g4eae61e83" +"packageVersion": "v1.0.0-beta.0-594-gf737c5be5" } From 40bc3ae96bab9062e48675fa98f6aed7cb843db6 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 19 Jul 2023 08:42:16 +0000 Subject: [PATCH 358/521] Client Python update by KubeVirt Prow build 1681559047414747136 --- README.md | 2 +- docs/V1Devices.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_devices.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 4b52de04..171538bd 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-594-gf737c5be5 +- Package version: v1.0.0-beta.0-644-gd16161124 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index f33442a7..168221c3 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **autoattach_input_device** | **bool** | Whether to attach an Input Device. Defaults to false. | [optional] **autoattach_mem_balloon** | **bool** | Whether to attach the Memory balloon device with default period. Period can be adjusted in virt-config. Defaults to true. | [optional] **autoattach_pod_interface** | **bool** | Whether to attach a pod network interface. Defaults to true. | [optional] -**autoattach_serial_console** | **bool** | Whether to attach the default serial console or not. Serial console access will not be available if set to false. Defaults to true. | [optional] +**autoattach_serial_console** | **bool** | Whether to attach the default virtio-serial console or not. Serial console access will not be available if set to false. Defaults to true. | [optional] **autoattach_vsock** | **bool** | Whether to attach the VSOCK CID to the VM or not. VSOCK access will be available if set to true. Defaults to false. | [optional] **block_multi_queue** | **bool** | Whether or not to enable virtio multi-queue for block devices. Defaults to false. | [optional] **client_passthrough** | [**V1ClientPassthroughDevices**](V1ClientPassthroughDevices.md) | To configure and access client devices such as redirecting USB | [optional] diff --git a/git_push.sh b/git_push.sh index 5ab65263..4dad5ffa 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-594-gf737c5be5" + release_note="Auto-generated client v1.0.0-beta.0-644-gd16161124" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 1091819f..7c43c3de 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-594-gf737c5be5/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-644-gd16161124/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c37218d2..c6ef48df 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-594-gf737c5be5".\ + "SDK Package Version: v1.0.0-beta.0-644-gd16161124".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index 376f0c87..4c6c8775 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -244,7 +244,7 @@ def autoattach_pod_interface(self, autoattach_pod_interface): def autoattach_serial_console(self): """ Gets the autoattach_serial_console of this V1Devices. - Whether to attach the default serial console or not. Serial console access will not be available if set to false. Defaults to true. + Whether to attach the default virtio-serial console or not. Serial console access will not be available if set to false. Defaults to true. :return: The autoattach_serial_console of this V1Devices. :rtype: bool @@ -255,7 +255,7 @@ def autoattach_serial_console(self): def autoattach_serial_console(self, autoattach_serial_console): """ Sets the autoattach_serial_console of this V1Devices. - Whether to attach the default serial console or not. Serial console access will not be available if set to false. Defaults to true. + Whether to attach the default virtio-serial console or not. Serial console access will not be available if set to false. Defaults to true. :param autoattach_serial_console: The autoattach_serial_console of this V1Devices. :type: bool diff --git a/setup.py b/setup.py index 3782f397..0d9e99a6 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-594-gf737c5be5" +VERSION = "v1.0.0-beta.0-644-gd16161124" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index f31eb450..ad52c22f 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-594-gf737c5be5" +"packageVersion": "v1.0.0-beta.0-644-gd16161124" } From c42ed95f999f2be48d206c01e515db146d8cead9 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Sat, 22 Jul 2023 03:14:15 +0000 Subject: [PATCH 359/521] Client Python update by KubeVirt Prow build 1682574858690498560 --- README.md | 2 +- docs/V1beta1CPUInstancetype.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1beta1_cpu_instancetype.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 171538bd..fc9335bc 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-644-gd16161124 +- Package version: v1.0.0-beta.0-680-gba10a7710 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1CPUInstancetype.md b/docs/V1beta1CPUInstancetype.md index 92de6313..3728308f 100644 --- a/docs/V1beta1CPUInstancetype.md +++ b/docs/V1beta1CPUInstancetype.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **dedicated_cpu_placement** | **bool** | DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. | [optional] -**guest** | **int** | Required number of vCPUs to expose to the guest. The resulting CPU topology being derived from the optional PreferredCPUTopology attribute of CPUPreferences that itself defaults to PreferCores. | [default to 0] +**guest** | **int** | Required number of vCPUs to expose to the guest. The resulting CPU topology being derived from the optional PreferredCPUTopology attribute of CPUPreferences that itself defaults to PreferSockets. | [default to 0] **isolate_emulator_thread** | **bool** | IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it. | [optional] **model** | **str** | Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. | [optional] **numa** | [**V1NUMA**](V1NUMA.md) | NUMA allows specifying settings for the guest NUMA topology | [optional] diff --git a/git_push.sh b/git_push.sh index 4dad5ffa..7c2d0120 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-644-gd16161124" + release_note="Auto-generated client v1.0.0-beta.0-680-gba10a7710" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 7c43c3de..489e18fd 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-644-gd16161124/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-680-gba10a7710/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c6ef48df..c9148fba 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-644-gd16161124".\ + "SDK Package Version: v1.0.0-beta.0-680-gba10a7710".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_cpu_instancetype.py b/kubevirt/models/v1beta1_cpu_instancetype.py index 644d69f8..64bd4bf4 100644 --- a/kubevirt/models/v1beta1_cpu_instancetype.py +++ b/kubevirt/models/v1beta1_cpu_instancetype.py @@ -99,7 +99,7 @@ def dedicated_cpu_placement(self, dedicated_cpu_placement): def guest(self): """ Gets the guest of this V1beta1CPUInstancetype. - Required number of vCPUs to expose to the guest. The resulting CPU topology being derived from the optional PreferredCPUTopology attribute of CPUPreferences that itself defaults to PreferCores. + Required number of vCPUs to expose to the guest. The resulting CPU topology being derived from the optional PreferredCPUTopology attribute of CPUPreferences that itself defaults to PreferSockets. :return: The guest of this V1beta1CPUInstancetype. :rtype: int @@ -110,7 +110,7 @@ def guest(self): def guest(self, guest): """ Sets the guest of this V1beta1CPUInstancetype. - Required number of vCPUs to expose to the guest. The resulting CPU topology being derived from the optional PreferredCPUTopology attribute of CPUPreferences that itself defaults to PreferCores. + Required number of vCPUs to expose to the guest. The resulting CPU topology being derived from the optional PreferredCPUTopology attribute of CPUPreferences that itself defaults to PreferSockets. :param guest: The guest of this V1beta1CPUInstancetype. :type: int diff --git a/setup.py b/setup.py index 0d9e99a6..dd4cc2fe 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-644-gd16161124" +VERSION = "v1.0.0-beta.0-680-gba10a7710" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index ad52c22f..5cc9f744 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-644-gd16161124" +"packageVersion": "v1.0.0-beta.0-680-gba10a7710" } From f7c36a66b6796fb481c7d087fa7c879df8187fab Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Mon, 24 Jul 2023 20:39:44 +0000 Subject: [PATCH 360/521] Client Python update by KubeVirt Prow build 1683566168511614976 --- README.md | 2 +- docs/V1EFI.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_efi.py | 30 +++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index fc9335bc..81fd1904 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-680-gba10a7710 +- Package version: v1.0.0-beta.0-691-g574a4c3a2 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1EFI.md b/docs/V1EFI.md index 37cb563e..dc8b04e7 100644 --- a/docs/V1EFI.md +++ b/docs/V1EFI.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**persistent** | **bool** | If set to true, Persistent will persist the EFI NVRAM across reboots. Defaults to false | [optional] **secure_boot** | **bool** | If set, SecureBoot will be enabled and the OVMF roms will be swapped for SecureBoot-enabled ones. Requires SMM to be enabled. Defaults to true | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 7c2d0120..f6962d7e 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-680-gba10a7710" + release_note="Auto-generated client v1.0.0-beta.0-691-g574a4c3a2" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 489e18fd..03fb3bd1 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-680-gba10a7710/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-691-g574a4c3a2/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c9148fba..78c55790 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-680-gba10a7710".\ + "SDK Package Version: v1.0.0-beta.0-691-g574a4c3a2".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_efi.py b/kubevirt/models/v1_efi.py index c1a477f6..bcd58155 100644 --- a/kubevirt/models/v1_efi.py +++ b/kubevirt/models/v1_efi.py @@ -31,23 +31,51 @@ class V1EFI(object): and the value is json key in definition. """ swagger_types = { + 'persistent': 'bool', 'secure_boot': 'bool' } attribute_map = { + 'persistent': 'persistent', 'secure_boot': 'secureBoot' } - def __init__(self, secure_boot=None): + def __init__(self, persistent=None, secure_boot=None): """ V1EFI - a model defined in Swagger """ + self._persistent = None self._secure_boot = None + if persistent is not None: + self.persistent = persistent if secure_boot is not None: self.secure_boot = secure_boot + @property + def persistent(self): + """ + Gets the persistent of this V1EFI. + If set to true, Persistent will persist the EFI NVRAM across reboots. Defaults to false + + :return: The persistent of this V1EFI. + :rtype: bool + """ + return self._persistent + + @persistent.setter + def persistent(self, persistent): + """ + Sets the persistent of this V1EFI. + If set to true, Persistent will persist the EFI NVRAM across reboots. Defaults to false + + :param persistent: The persistent of this V1EFI. + :type: bool + """ + + self._persistent = persistent + @property def secure_boot(self): """ diff --git a/setup.py b/setup.py index dd4cc2fe..10bf572b 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-680-gba10a7710" +VERSION = "v1.0.0-beta.0-691-g574a4c3a2" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 5cc9f744..ae2023a8 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-680-gba10a7710" +"packageVersion": "v1.0.0-beta.0-691-g574a4c3a2" } From 06487510aad402ea7af880c7def3e5c31e477ea4 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Sat, 29 Jul 2023 09:18:45 +0000 Subject: [PATCH 361/521] Client Python update by KubeVirt Prow build 1685206075076251648 --- README.md | 2 +- docs/V1KubeVirtConfiguration.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_kube_virt_configuration.py | 2 ++ setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 81fd1904..8e9e92d7 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-691-g574a4c3a2 +- Package version: v1.0.0-beta.0-730-g4937d9633 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index a46d4fa3..552ee968 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **image_pull_policy** | **str** | Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present | [optional] **ksm_configuration** | [**V1KSMConfiguration**](V1KSMConfiguration.md) | KSMConfiguration holds the information regarding the enabling the KSM in the nodes (if available). | [optional] **live_update_configuration** | [**V1LiveUpdateConfiguration**](V1LiveUpdateConfiguration.md) | LiveUpdateConfiguration holds defaults for live update features | [optional] -**machine_type** | **str** | | [optional] +**machine_type** | **str** | Deprecated. Use architectureConfiguration instead. | [optional] **mediated_devices_configuration** | [**V1MediatedDevicesConfiguration**](V1MediatedDevicesConfiguration.md) | | [optional] **mem_balloon_stats_period** | **int** | | [optional] **migrations** | [**V1MigrationConfiguration**](V1MigrationConfiguration.md) | | [optional] diff --git a/git_push.sh b/git_push.sh index f6962d7e..f9e12233 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-691-g574a4c3a2" + release_note="Auto-generated client v1.0.0-beta.0-730-g4937d9633" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 03fb3bd1..3ce46718 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-691-g574a4c3a2/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-730-g4937d9633/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 78c55790..20b1d661 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-691-g574a4c3a2".\ + "SDK Package Version: v1.0.0-beta.0-730-g4937d9633".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index 6a818e21..e11310ce 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -550,6 +550,7 @@ def live_update_configuration(self, live_update_configuration): def machine_type(self): """ Gets the machine_type of this V1KubeVirtConfiguration. + Deprecated. Use architectureConfiguration instead. :return: The machine_type of this V1KubeVirtConfiguration. :rtype: str @@ -560,6 +561,7 @@ def machine_type(self): def machine_type(self, machine_type): """ Sets the machine_type of this V1KubeVirtConfiguration. + Deprecated. Use architectureConfiguration instead. :param machine_type: The machine_type of this V1KubeVirtConfiguration. :type: str diff --git a/setup.py b/setup.py index 10bf572b..645038c3 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-691-g574a4c3a2" +VERSION = "v1.0.0-beta.0-730-g4937d9633" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index ae2023a8..7dcbf853 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-691-g574a4c3a2" +"packageVersion": "v1.0.0-beta.0-730-g4937d9633" } From 235fe17f58d41165010be7e4122cb67bdc866fe7 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 17 Aug 2023 00:33:31 +0000 Subject: [PATCH 362/521] Client Python update by KubeVirt Prow build 1691961941028769792 --- README.md | 4 +- docs/V1Interface.md | 1 + docs/V1InterfaceBindingPlugin.md | 10 ++ docs/V1NetworkConfiguration.md | 1 + docs/V1PluginBinding.md | 10 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 + kubevirt/__init__.py | 2 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 + kubevirt/models/v1_interface.py | 30 ++++- .../models/v1_interface_binding_plugin.py | 125 +++++++++++++++++ kubevirt/models/v1_network_configuration.py | 28 +++- kubevirt/models/v1_plugin_binding.py | 126 ++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_interface_binding_plugin.py | 44 ++++++ test/test_v1_plugin_binding.py | 44 ++++++ 19 files changed, 435 insertions(+), 8 deletions(-) create mode 100644 docs/V1InterfaceBindingPlugin.md create mode 100644 docs/V1PluginBinding.md create mode 100644 kubevirt/models/v1_interface_binding_plugin.py create mode 100644 kubevirt/models/v1_plugin_binding.py create mode 100644 test/test_v1_interface_binding_plugin.py create mode 100644 test/test_v1_plugin_binding.py diff --git a/README.md b/README.md index 8e9e92d7..af63c0b9 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-730-g4937d9633 +- Package version: v1.0.0-beta.0-878-g9c14b3e31 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -464,6 +464,7 @@ Class | Method | HTTP request | Description - [V1Input](docs/V1Input.md) - [V1InstancetypeMatcher](docs/V1InstancetypeMatcher.md) - [V1Interface](docs/V1Interface.md) + - [V1InterfaceBindingPlugin](docs/V1InterfaceBindingPlugin.md) - [V1InterfaceBridge](docs/V1InterfaceBridge.md) - [V1InterfaceMacvtap](docs/V1InterfaceMacvtap.md) - [V1InterfaceMasquerade](docs/V1InterfaceMasquerade.md) @@ -509,6 +510,7 @@ Class | Method | HTTP request | Description - [V1PermittedHostDevices](docs/V1PermittedHostDevices.md) - [V1PersistentVolumeClaimInfo](docs/V1PersistentVolumeClaimInfo.md) - [V1PersistentVolumeClaimVolumeSource](docs/V1PersistentVolumeClaimVolumeSource.md) + - [V1PluginBinding](docs/V1PluginBinding.md) - [V1PodNetwork](docs/V1PodNetwork.md) - [V1Port](docs/V1Port.md) - [V1PreferenceMatcher](docs/V1PreferenceMatcher.md) diff --git a/docs/V1Interface.md b/docs/V1Interface.md index 9064ba21..f7c1723c 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **acpi_index** | **int** | If specified, the ACPI index is used to provide network interface device naming, that is stable across changes in PCI addresses assigned to the device. This value is required to be unique across all devices and be between 1 and (16*1024-1). | [optional] +**binding** | [**V1PluginBinding**](V1PluginBinding.md) | Binding specifies the binding plugin that will be used to connect the interface to the guest. It provides an alternative to InterfaceBindingMethod. version: 1alphav1 | [optional] **boot_order** | **int** | BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each interface or disk that has a boot order must have a unique value. Interfaces without a boot order are not tried. | [optional] **bridge** | [**V1InterfaceBridge**](V1InterfaceBridge.md) | | [optional] **dhcp_options** | [**V1DHCPOptions**](V1DHCPOptions.md) | If specified the network interface will pass additional DHCP options to the VMI | [optional] diff --git a/docs/V1InterfaceBindingPlugin.md b/docs/V1InterfaceBindingPlugin.md new file mode 100644 index 00000000..8d6b2bfb --- /dev/null +++ b/docs/V1InterfaceBindingPlugin.md @@ -0,0 +1,10 @@ +# V1InterfaceBindingPlugin + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sidecar_image** | **str** | SidecarImage references a container image that runs in the virt-launcher pod. The sidecar handles (libvirt) domain configuration and optional services. version: 1alphav1 | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1NetworkConfiguration.md b/docs/V1NetworkConfiguration.md index 5616994a..79e7861e 100644 --- a/docs/V1NetworkConfiguration.md +++ b/docs/V1NetworkConfiguration.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**binding** | [**dict(str, V1InterfaceBindingPlugin)**](V1InterfaceBindingPlugin.md) | | [optional] **default_network_interface** | **str** | | [optional] **permit_bridge_interface_on_pod_network** | **bool** | | [optional] **permit_slirp_interface** | **bool** | | [optional] diff --git a/docs/V1PluginBinding.md b/docs/V1PluginBinding.md new file mode 100644 index 00000000..0d4cb382 --- /dev/null +++ b/docs/V1PluginBinding.md @@ -0,0 +1,10 @@ +# V1PluginBinding + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name references to the binding name as denined in the kubevirt CR. version: 1alphav1 | [default to ''] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index f9e12233..793735dd 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-730-g4937d9633" + release_note="Auto-generated client v1.0.0-beta.0-878-g9c14b3e31" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 80e63f82..e8d4f060 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -402,6 +402,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_interface.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Interface.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_interface_binding_plugin.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface_binding_plugin.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InterfaceBindingPlugin.md [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 @@ -537,6 +540,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_persistent_volume_claim_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_persistent_volume_claim_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PersistentVolumeClaimVolumeSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_plugin_binding.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_plugin_binding.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PluginBinding.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_pod_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pod_network.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PodNetwork.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index de2e3910..92902bb7 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -141,6 +141,7 @@ from .models.v1_input import V1Input from .models.v1_instancetype_matcher import V1InstancetypeMatcher from .models.v1_interface import V1Interface +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 @@ -186,6 +187,7 @@ from .models.v1_permitted_host_devices import V1PermittedHostDevices from .models.v1_persistent_volume_claim_info import V1PersistentVolumeClaimInfo from .models.v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource +from .models.v1_plugin_binding import V1PluginBinding from .models.v1_pod_network import V1PodNetwork from .models.v1_port import V1Port from .models.v1_preference_matcher import V1PreferenceMatcher diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 3ce46718..4e619a40 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-730-g4937d9633/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-878-g9c14b3e31/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 20b1d661..9f701114 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-730-g4937d9633".\ + "SDK Package Version: v1.0.0-beta.0-878-g9c14b3e31".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 580f7ba8..2d3d9316 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -141,6 +141,7 @@ from .v1_input import V1Input from .v1_instancetype_matcher import V1InstancetypeMatcher from .v1_interface import V1Interface +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 @@ -186,6 +187,7 @@ from .v1_permitted_host_devices import V1PermittedHostDevices from .v1_persistent_volume_claim_info import V1PersistentVolumeClaimInfo from .v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource +from .v1_plugin_binding import V1PluginBinding from .v1_pod_network import V1PodNetwork from .v1_port import V1Port from .v1_preference_matcher import V1PreferenceMatcher diff --git a/kubevirt/models/v1_interface.py b/kubevirt/models/v1_interface.py index 0478b88e..f81f2b82 100644 --- a/kubevirt/models/v1_interface.py +++ b/kubevirt/models/v1_interface.py @@ -32,6 +32,7 @@ class V1Interface(object): """ swagger_types = { 'acpi_index': 'int', + 'binding': 'V1PluginBinding', 'boot_order': 'int', 'bridge': 'V1InterfaceBridge', 'dhcp_options': 'V1DHCPOptions', @@ -51,6 +52,7 @@ class V1Interface(object): attribute_map = { 'acpi_index': 'acpiIndex', + 'binding': 'binding', 'boot_order': 'bootOrder', 'bridge': 'bridge', 'dhcp_options': 'dhcpOptions', @@ -68,12 +70,13 @@ class V1Interface(object): 'tag': 'tag' } - def __init__(self, acpi_index=None, boot_order=None, bridge=None, dhcp_options=None, mac_address=None, macvtap=None, masquerade=None, model=None, name='', passt=None, pci_address=None, ports=None, slirp=None, sriov=None, state=None, tag=None): + def __init__(self, acpi_index=None, binding=None, boot_order=None, bridge=None, dhcp_options=None, mac_address=None, macvtap=None, masquerade=None, model=None, name='', passt=None, pci_address=None, ports=None, slirp=None, sriov=None, state=None, tag=None): """ V1Interface - a model defined in Swagger """ self._acpi_index = None + self._binding = None self._boot_order = None self._bridge = None self._dhcp_options = None @@ -92,6 +95,8 @@ def __init__(self, acpi_index=None, boot_order=None, bridge=None, dhcp_options=N if acpi_index is not None: self.acpi_index = acpi_index + if binding is not None: + self.binding = binding if boot_order is not None: self.boot_order = boot_order if bridge is not None: @@ -145,6 +150,29 @@ def acpi_index(self, acpi_index): self._acpi_index = acpi_index + @property + def binding(self): + """ + Gets the binding of this V1Interface. + Binding specifies the binding plugin that will be used to connect the interface to the guest. It provides an alternative to InterfaceBindingMethod. version: 1alphav1 + + :return: The binding of this V1Interface. + :rtype: V1PluginBinding + """ + return self._binding + + @binding.setter + def binding(self, binding): + """ + Sets the binding of this V1Interface. + Binding specifies the binding plugin that will be used to connect the interface to the guest. It provides an alternative to InterfaceBindingMethod. version: 1alphav1 + + :param binding: The binding of this V1Interface. + :type: V1PluginBinding + """ + + self._binding = binding + @property def boot_order(self): """ diff --git a/kubevirt/models/v1_interface_binding_plugin.py b/kubevirt/models/v1_interface_binding_plugin.py new file mode 100644 index 00000000..669afaf7 --- /dev/null +++ b/kubevirt/models/v1_interface_binding_plugin.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1InterfaceBindingPlugin(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'sidecar_image': 'str' + } + + attribute_map = { + 'sidecar_image': 'sidecarImage' + } + + def __init__(self, sidecar_image=None): + """ + V1InterfaceBindingPlugin - a model defined in Swagger + """ + + self._sidecar_image = None + + if sidecar_image is not None: + self.sidecar_image = sidecar_image + + @property + def sidecar_image(self): + """ + Gets the sidecar_image of this V1InterfaceBindingPlugin. + SidecarImage references a container image that runs in the virt-launcher pod. The sidecar handles (libvirt) domain configuration and optional services. version: 1alphav1 + + :return: The sidecar_image of this V1InterfaceBindingPlugin. + :rtype: str + """ + return self._sidecar_image + + @sidecar_image.setter + def sidecar_image(self, sidecar_image): + """ + Sets the sidecar_image of this V1InterfaceBindingPlugin. + SidecarImage references a container image that runs in the virt-launcher pod. The sidecar handles (libvirt) domain configuration and optional services. version: 1alphav1 + + :param sidecar_image: The sidecar_image of this V1InterfaceBindingPlugin. + :type: str + """ + + self._sidecar_image = sidecar_image + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1InterfaceBindingPlugin): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_network_configuration.py b/kubevirt/models/v1_network_configuration.py index 921b7518..2af6be41 100644 --- a/kubevirt/models/v1_network_configuration.py +++ b/kubevirt/models/v1_network_configuration.py @@ -31,26 +31,31 @@ class V1NetworkConfiguration(object): and the value is json key in definition. """ swagger_types = { + 'binding': 'dict(str, V1InterfaceBindingPlugin)', 'default_network_interface': 'str', 'permit_bridge_interface_on_pod_network': 'bool', 'permit_slirp_interface': 'bool' } attribute_map = { + 'binding': 'binding', 'default_network_interface': 'defaultNetworkInterface', 'permit_bridge_interface_on_pod_network': 'permitBridgeInterfaceOnPodNetwork', 'permit_slirp_interface': 'permitSlirpInterface' } - def __init__(self, default_network_interface=None, permit_bridge_interface_on_pod_network=None, permit_slirp_interface=None): + def __init__(self, binding=None, default_network_interface=None, permit_bridge_interface_on_pod_network=None, permit_slirp_interface=None): """ V1NetworkConfiguration - a model defined in Swagger """ + self._binding = None self._default_network_interface = None self._permit_bridge_interface_on_pod_network = None self._permit_slirp_interface = None + if binding is not None: + self.binding = binding if default_network_interface is not None: self.default_network_interface = default_network_interface if permit_bridge_interface_on_pod_network is not None: @@ -58,6 +63,27 @@ def __init__(self, default_network_interface=None, permit_bridge_interface_on_po if permit_slirp_interface is not None: self.permit_slirp_interface = permit_slirp_interface + @property + def binding(self): + """ + Gets the binding of this V1NetworkConfiguration. + + :return: The binding of this V1NetworkConfiguration. + :rtype: dict(str, V1InterfaceBindingPlugin) + """ + return self._binding + + @binding.setter + def binding(self, binding): + """ + Sets the binding of this V1NetworkConfiguration. + + :param binding: The binding of this V1NetworkConfiguration. + :type: dict(str, V1InterfaceBindingPlugin) + """ + + self._binding = binding + @property def default_network_interface(self): """ diff --git a/kubevirt/models/v1_plugin_binding.py b/kubevirt/models/v1_plugin_binding.py new file mode 100644 index 00000000..9b5ac396 --- /dev/null +++ b/kubevirt/models/v1_plugin_binding.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PluginBinding(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str' + } + + attribute_map = { + 'name': 'name' + } + + def __init__(self, name=''): + """ + V1PluginBinding - a model defined in Swagger + """ + + self._name = None + + self.name = name + + @property + def name(self): + """ + Gets the name of this V1PluginBinding. + Name references to the binding name as denined in the kubevirt CR. version: 1alphav1 + + :return: The name of this V1PluginBinding. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1PluginBinding. + Name references to the binding name as denined in the kubevirt CR. version: 1alphav1 + + :param name: The name of this V1PluginBinding. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1PluginBinding): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 645038c3..87b8fc25 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-730-g4937d9633" +VERSION = "v1.0.0-beta.0-878-g9c14b3e31" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 7dcbf853..bc0076a7 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-730-g4937d9633" +"packageVersion": "v1.0.0-beta.0-878-g9c14b3e31" } diff --git a/test/test_v1_interface_binding_plugin.py b/test/test_v1_interface_binding_plugin.py new file mode 100644 index 00000000..b81c943f --- /dev/null +++ b/test/test_v1_interface_binding_plugin.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_interface_binding_plugin import V1InterfaceBindingPlugin + + +class TestV1InterfaceBindingPlugin(unittest.TestCase): + """ V1InterfaceBindingPlugin unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1InterfaceBindingPlugin(self): + """ + Test V1InterfaceBindingPlugin + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_interface_binding_plugin.V1InterfaceBindingPlugin() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_plugin_binding.py b/test/test_v1_plugin_binding.py new file mode 100644 index 00000000..d58931dd --- /dev/null +++ b/test/test_v1_plugin_binding.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_plugin_binding import V1PluginBinding + + +class TestV1PluginBinding(unittest.TestCase): + """ V1PluginBinding unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PluginBinding(self): + """ + Test V1PluginBinding + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_plugin_binding.V1PluginBinding() + pass + + +if __name__ == '__main__': + unittest.main() From 2f87bceb572fcd94495013d5a563247f02a07bcc Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 8 Sep 2023 01:42:50 +0000 Subject: [PATCH 363/521] Client Python update by KubeVirt Prow build 1699949555224678400 --- README.md | 2 +- docs/V1PciHostDevice.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_pci_host_device.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index af63c0b9..75930c12 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-878-g9c14b3e31 +- Package version: v1.0.0-beta.0-1010-gc35be138d - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1PciHostDevice.md b/docs/V1PciHostDevice.md index 75b41dee..49aaea0b 100644 --- a/docs/V1PciHostDevice.md +++ b/docs/V1PciHostDevice.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **external_resource_provider** | **bool** | If true, KubeVirt will leave the allocation and monitoring to an external device plugin | [optional] **pci_vendor_selector** | **str** | The vendor_id:product_id tuple of the PCI device | [default to ''] -**resource_name** | **str** | The name of the resource that is representing the device. Exposed by a device plugin and requested by VMs. Typically of the form vendor.com/product_nameThe name of the resource that is representing the device. Exposed by a device plugin and requested by VMs. Typically of the form vendor.com/product_name | [default to ''] +**resource_name** | **str** | The name of the resource that is representing the device. Exposed by a device plugin and requested by VMs. Typically of the form vendor.com/product_name | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 793735dd..c9e160bd 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-878-g9c14b3e31" + release_note="Auto-generated client v1.0.0-beta.0-1010-gc35be138d" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 4e619a40..621662d6 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-878-g9c14b3e31/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-1010-gc35be138d/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 9f701114..b4ac7183 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-878-g9c14b3e31".\ + "SDK Package Version: v1.0.0-beta.0-1010-gc35be138d".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_pci_host_device.py b/kubevirt/models/v1_pci_host_device.py index dde620ca..3c1b8cd4 100644 --- a/kubevirt/models/v1_pci_host_device.py +++ b/kubevirt/models/v1_pci_host_device.py @@ -108,7 +108,7 @@ def pci_vendor_selector(self, pci_vendor_selector): def resource_name(self): """ Gets the resource_name of this V1PciHostDevice. - The name of the resource that is representing the device. Exposed by a device plugin and requested by VMs. Typically of the form vendor.com/product_nameThe name of the resource that is representing the device. Exposed by a device plugin and requested by VMs. Typically of the form vendor.com/product_name + The name of the resource that is representing the device. Exposed by a device plugin and requested by VMs. Typically of the form vendor.com/product_name :return: The resource_name of this V1PciHostDevice. :rtype: str @@ -119,7 +119,7 @@ def resource_name(self): def resource_name(self, resource_name): """ Sets the resource_name of this V1PciHostDevice. - The name of the resource that is representing the device. Exposed by a device plugin and requested by VMs. Typically of the form vendor.com/product_nameThe name of the resource that is representing the device. Exposed by a device plugin and requested by VMs. Typically of the form vendor.com/product_name + The name of the resource that is representing the device. Exposed by a device plugin and requested by VMs. Typically of the form vendor.com/product_name :param resource_name: The resource_name of this V1PciHostDevice. :type: str diff --git a/setup.py b/setup.py index 87b8fc25..a0fe61fc 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-878-g9c14b3e31" +VERSION = "v1.0.0-beta.0-1010-gc35be138d" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index bc0076a7..ea5ecab8 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-878-g9c14b3e31" +"packageVersion": "v1.0.0-beta.0-1010-gc35be138d" } From 4092423f9c10c90bbd5d3df56cf735ceada04723 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 14 Sep 2023 16:23:33 +0000 Subject: [PATCH 364/521] Client Python update by KubeVirt Prow build 1702343422704095232 --- README.md | 3 +- docs/V1LiveUpdateAffinity.md | 9 ++ docs/V1LiveUpdateFeatures.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_live_update_affinity.py | 99 ++++++++++++++++++++++ kubevirt/models/v1_live_update_features.py | 30 ++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_live_update_affinity.py | 44 ++++++++++ 14 files changed, 194 insertions(+), 7 deletions(-) create mode 100644 docs/V1LiveUpdateAffinity.md create mode 100644 kubevirt/models/v1_live_update_affinity.py create mode 100644 test/test_v1_live_update_affinity.py diff --git a/README.md b/README.md index 75930c12..db8e4bbc 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-1010-gc35be138d +- Package version: v1.0.0-beta.0-1050-gbd22e81c1 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -485,6 +485,7 @@ Class | Method | HTTP request | Description - [V1KubeVirtStatus](docs/V1KubeVirtStatus.md) - [V1KubeVirtWorkloadUpdateStrategy](docs/V1KubeVirtWorkloadUpdateStrategy.md) - [V1LaunchSecurity](docs/V1LaunchSecurity.md) + - [V1LiveUpdateAffinity](docs/V1LiveUpdateAffinity.md) - [V1LiveUpdateCPU](docs/V1LiveUpdateCPU.md) - [V1LiveUpdateConfiguration](docs/V1LiveUpdateConfiguration.md) - [V1LiveUpdateFeatures](docs/V1LiveUpdateFeatures.md) diff --git a/docs/V1LiveUpdateAffinity.md b/docs/V1LiveUpdateAffinity.md new file mode 100644 index 00000000..f0972d60 --- /dev/null +++ b/docs/V1LiveUpdateAffinity.md @@ -0,0 +1,9 @@ +# V1LiveUpdateAffinity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1LiveUpdateFeatures.md b/docs/V1LiveUpdateFeatures.md index 7140fb9c..086c3555 100644 --- a/docs/V1LiveUpdateFeatures.md +++ b/docs/V1LiveUpdateFeatures.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**affinity** | [**V1LiveUpdateAffinity**](V1LiveUpdateAffinity.md) | Affinity allows live updating the virtual machines node affinity | [optional] **cpu** | [**V1LiveUpdateCPU**](V1LiveUpdateCPU.md) | LiveUpdateCPU holds hotplug configuration for the CPU resource. Empty struct indicates that default will be used for maxSockets. Default is specified on cluster level. Absence of the struct means opt-out from CPU hotplug functionality. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index c9e160bd..4b3820a8 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-1010-gc35be138d" + release_note="Auto-generated client v1.0.0-beta.0-1050-gbd22e81c1" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index e8d4f060..01a0ad72 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -465,6 +465,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_launch_security.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_launch_security.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1LaunchSecurity.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_live_update_affinity.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_live_update_affinity.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1LiveUpdateAffinity.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_live_update_cpu.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_live_update_cpu.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1LiveUpdateCPU.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 92902bb7..06346d0a 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -162,6 +162,7 @@ from .models.v1_kube_virt_status import V1KubeVirtStatus from .models.v1_kube_virt_workload_update_strategy import V1KubeVirtWorkloadUpdateStrategy from .models.v1_launch_security import V1LaunchSecurity +from .models.v1_live_update_affinity import V1LiveUpdateAffinity from .models.v1_live_update_cpu import V1LiveUpdateCPU from .models.v1_live_update_configuration import V1LiveUpdateConfiguration from .models.v1_live_update_features import V1LiveUpdateFeatures diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 621662d6..dd6f0431 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-1010-gc35be138d/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-1050-gbd22e81c1/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index b4ac7183..89a0c917 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-1010-gc35be138d".\ + "SDK Package Version: v1.0.0-beta.0-1050-gbd22e81c1".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 2d3d9316..df314e8d 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -162,6 +162,7 @@ from .v1_kube_virt_status import V1KubeVirtStatus from .v1_kube_virt_workload_update_strategy import V1KubeVirtWorkloadUpdateStrategy from .v1_launch_security import V1LaunchSecurity +from .v1_live_update_affinity import V1LiveUpdateAffinity from .v1_live_update_cpu import V1LiveUpdateCPU from .v1_live_update_configuration import V1LiveUpdateConfiguration from .v1_live_update_features import V1LiveUpdateFeatures diff --git a/kubevirt/models/v1_live_update_affinity.py b/kubevirt/models/v1_live_update_affinity.py new file mode 100644 index 00000000..61cef79d --- /dev/null +++ b/kubevirt/models/v1_live_update_affinity.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1LiveUpdateAffinity(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1LiveUpdateAffinity - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1LiveUpdateAffinity): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_live_update_features.py b/kubevirt/models/v1_live_update_features.py index 2d99c287..502bcb6d 100644 --- a/kubevirt/models/v1_live_update_features.py +++ b/kubevirt/models/v1_live_update_features.py @@ -31,23 +31,51 @@ class V1LiveUpdateFeatures(object): and the value is json key in definition. """ swagger_types = { + 'affinity': 'V1LiveUpdateAffinity', 'cpu': 'V1LiveUpdateCPU' } attribute_map = { + 'affinity': 'affinity', 'cpu': 'cpu' } - def __init__(self, cpu=None): + def __init__(self, affinity=None, cpu=None): """ V1LiveUpdateFeatures - a model defined in Swagger """ + self._affinity = None self._cpu = None + if affinity is not None: + self.affinity = affinity if cpu is not None: self.cpu = cpu + @property + def affinity(self): + """ + Gets the affinity of this V1LiveUpdateFeatures. + Affinity allows live updating the virtual machines node affinity + + :return: The affinity of this V1LiveUpdateFeatures. + :rtype: V1LiveUpdateAffinity + """ + return self._affinity + + @affinity.setter + def affinity(self, affinity): + """ + Sets the affinity of this V1LiveUpdateFeatures. + Affinity allows live updating the virtual machines node affinity + + :param affinity: The affinity of this V1LiveUpdateFeatures. + :type: V1LiveUpdateAffinity + """ + + self._affinity = affinity + @property def cpu(self): """ diff --git a/setup.py b/setup.py index a0fe61fc..121efa52 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-1010-gc35be138d" +VERSION = "v1.0.0-beta.0-1050-gbd22e81c1" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index ea5ecab8..080f241a 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-1010-gc35be138d" +"packageVersion": "v1.0.0-beta.0-1050-gbd22e81c1" } diff --git a/test/test_v1_live_update_affinity.py b/test/test_v1_live_update_affinity.py new file mode 100644 index 00000000..e4e84a43 --- /dev/null +++ b/test/test_v1_live_update_affinity.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_live_update_affinity import V1LiveUpdateAffinity + + +class TestV1LiveUpdateAffinity(unittest.TestCase): + """ V1LiveUpdateAffinity unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1LiveUpdateAffinity(self): + """ + Test V1LiveUpdateAffinity + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_live_update_affinity.V1LiveUpdateAffinity() + pass + + +if __name__ == '__main__': + unittest.main() From df990b2eed6030281da6ecfc9c07ee6d09dae249 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 15 Sep 2023 22:41:09 +0000 Subject: [PATCH 365/521] Client Python update by KubeVirt Prow build 1702803530705801216 --- README.md | 3 +- docs/V1Devices.md | 1 + docs/V1DownwardMetrics.md | 9 +++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_devices.py | 30 +++++++- kubevirt/models/v1_downward_metrics.py | 99 ++++++++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_downward_metrics.py | 44 ++++++++++++ 14 files changed, 194 insertions(+), 7 deletions(-) create mode 100644 docs/V1DownwardMetrics.md create mode 100644 kubevirt/models/v1_downward_metrics.py create mode 100644 test/test_v1_downward_metrics.py diff --git a/README.md b/README.md index db8e4bbc..b6bdc29c 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-1050-gbd22e81c1 +- Package version: v1.0.0-beta.0-1065-g67902ed9d - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -433,6 +433,7 @@ Class | Method | HTTP request | Description - [V1DomainMemoryDumpInfo](docs/V1DomainMemoryDumpInfo.md) - [V1DomainSpec](docs/V1DomainSpec.md) - [V1DownwardAPIVolumeSource](docs/V1DownwardAPIVolumeSource.md) + - [V1DownwardMetrics](docs/V1DownwardMetrics.md) - [V1DownwardMetricsVolumeSource](docs/V1DownwardMetricsVolumeSource.md) - [V1EFI](docs/V1EFI.md) - [V1EmptyDiskSource](docs/V1EmptyDiskSource.md) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index 168221c3..142aa356 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **client_passthrough** | [**V1ClientPassthroughDevices**](V1ClientPassthroughDevices.md) | To configure and access client devices such as redirecting USB | [optional] **disable_hotplug** | **bool** | DisableHotplug disabled the ability to hotplug disks. | [optional] **disks** | [**list[V1Disk]**](V1Disk.md) | Disks describes disks, cdroms and luns which are connected to the vmi. | [optional] +**downward_metrics** | [**V1DownwardMetrics**](V1DownwardMetrics.md) | DownwardMetrics creates a virtio serials for exposing the downward metrics to the vmi. | [optional] **filesystems** | [**list[V1Filesystem]**](V1Filesystem.md) | Filesystems describes filesystem which is connected to the vmi. | [optional] **gpus** | [**list[V1GPU]**](V1GPU.md) | Whether to attach a GPU device to the vmi. | [optional] **host_devices** | [**list[V1HostDevice]**](V1HostDevice.md) | Whether to attach a host device to the vmi. | [optional] diff --git a/docs/V1DownwardMetrics.md b/docs/V1DownwardMetrics.md new file mode 100644 index 00000000..8500a57c --- /dev/null +++ b/docs/V1DownwardMetrics.md @@ -0,0 +1,9 @@ +# V1DownwardMetrics + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 4b3820a8..3e999db9 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-1050-gbd22e81c1" + release_note="Auto-generated client v1.0.0-beta.0-1065-g67902ed9d" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 01a0ad72..5008989c 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -309,6 +309,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_downward_api_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_downward_api_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DownwardAPIVolumeSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_downward_metrics.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_downward_metrics.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DownwardMetrics.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_downward_metrics_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_downward_metrics_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DownwardMetricsVolumeSource.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 06346d0a..6f3888e5 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -110,6 +110,7 @@ from .models.v1_domain_memory_dump_info import V1DomainMemoryDumpInfo from .models.v1_domain_spec import V1DomainSpec from .models.v1_downward_api_volume_source import V1DownwardAPIVolumeSource +from .models.v1_downward_metrics import V1DownwardMetrics from .models.v1_downward_metrics_volume_source import V1DownwardMetricsVolumeSource from .models.v1_efi import V1EFI from .models.v1_empty_disk_source import V1EmptyDiskSource diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index dd6f0431..2ea46c91 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-1050-gbd22e81c1/python' + self.user_agent = 'Swagger-Codegen/v1.0.0-beta.0-1065-g67902ed9d/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 89a0c917..4f384589 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-1050-gbd22e81c1".\ + "SDK Package Version: v1.0.0-beta.0-1065-g67902ed9d".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index df314e8d..5efde5cc 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -110,6 +110,7 @@ from .v1_domain_memory_dump_info import V1DomainMemoryDumpInfo from .v1_domain_spec import V1DomainSpec from .v1_downward_api_volume_source import V1DownwardAPIVolumeSource +from .v1_downward_metrics import V1DownwardMetrics from .v1_downward_metrics_volume_source import V1DownwardMetricsVolumeSource from .v1_efi import V1EFI from .v1_empty_disk_source import V1EmptyDiskSource diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index 4c6c8775..6f85891a 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -41,6 +41,7 @@ class V1Devices(object): 'client_passthrough': 'V1ClientPassthroughDevices', 'disable_hotplug': 'bool', 'disks': 'list[V1Disk]', + 'downward_metrics': 'V1DownwardMetrics', 'filesystems': 'list[V1Filesystem]', 'gpus': 'list[V1GPU]', 'host_devices': 'list[V1HostDevice]', @@ -65,6 +66,7 @@ class V1Devices(object): 'client_passthrough': 'clientPassthrough', 'disable_hotplug': 'disableHotplug', 'disks': 'disks', + 'downward_metrics': 'downwardMetrics', 'filesystems': 'filesystems', 'gpus': 'gpus', 'host_devices': 'hostDevices', @@ -78,7 +80,7 @@ class V1Devices(object): 'watchdog': 'watchdog' } - def __init__(self, autoattach_graphics_device=None, autoattach_input_device=None, autoattach_mem_balloon=None, autoattach_pod_interface=None, autoattach_serial_console=None, autoattach_vsock=None, block_multi_queue=None, client_passthrough=None, disable_hotplug=None, disks=None, filesystems=None, gpus=None, host_devices=None, inputs=None, interfaces=None, network_interface_multiqueue=None, rng=None, sound=None, tpm=None, use_virtio_transitional=None, watchdog=None): + def __init__(self, autoattach_graphics_device=None, autoattach_input_device=None, autoattach_mem_balloon=None, autoattach_pod_interface=None, autoattach_serial_console=None, autoattach_vsock=None, block_multi_queue=None, client_passthrough=None, disable_hotplug=None, disks=None, downward_metrics=None, filesystems=None, gpus=None, host_devices=None, inputs=None, interfaces=None, network_interface_multiqueue=None, rng=None, sound=None, tpm=None, use_virtio_transitional=None, watchdog=None): """ V1Devices - a model defined in Swagger """ @@ -93,6 +95,7 @@ def __init__(self, autoattach_graphics_device=None, autoattach_input_device=None self._client_passthrough = None self._disable_hotplug = None self._disks = None + self._downward_metrics = None self._filesystems = None self._gpus = None self._host_devices = None @@ -125,6 +128,8 @@ def __init__(self, autoattach_graphics_device=None, autoattach_input_device=None self.disable_hotplug = disable_hotplug if disks is not None: self.disks = disks + if downward_metrics is not None: + self.downward_metrics = downward_metrics if filesystems is not None: self.filesystems = filesystems if gpus is not None: @@ -378,6 +383,29 @@ def disks(self, disks): self._disks = disks + @property + def downward_metrics(self): + """ + Gets the downward_metrics of this V1Devices. + DownwardMetrics creates a virtio serials for exposing the downward metrics to the vmi. + + :return: The downward_metrics of this V1Devices. + :rtype: V1DownwardMetrics + """ + return self._downward_metrics + + @downward_metrics.setter + def downward_metrics(self, downward_metrics): + """ + Sets the downward_metrics of this V1Devices. + DownwardMetrics creates a virtio serials for exposing the downward metrics to the vmi. + + :param downward_metrics: The downward_metrics of this V1Devices. + :type: V1DownwardMetrics + """ + + self._downward_metrics = downward_metrics + @property def filesystems(self): """ diff --git a/kubevirt/models/v1_downward_metrics.py b/kubevirt/models/v1_downward_metrics.py new file mode 100644 index 00000000..8870e36c --- /dev/null +++ b/kubevirt/models/v1_downward_metrics.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DownwardMetrics(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1DownwardMetrics - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1DownwardMetrics): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 121efa52..71b53d9a 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-1050-gbd22e81c1" +VERSION = "v1.0.0-beta.0-1065-g67902ed9d" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 080f241a..f793c0a0 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-1050-gbd22e81c1" +"packageVersion": "v1.0.0-beta.0-1065-g67902ed9d" } diff --git a/test/test_v1_downward_metrics.py b/test/test_v1_downward_metrics.py new file mode 100644 index 00000000..d03ac79b --- /dev/null +++ b/test/test_v1_downward_metrics.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_downward_metrics import V1DownwardMetrics + + +class TestV1DownwardMetrics(unittest.TestCase): + """ V1DownwardMetrics unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DownwardMetrics(self): + """ + Test V1DownwardMetrics + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_downward_metrics.V1DownwardMetrics() + pass + + +if __name__ == '__main__': + unittest.main() From 99dd58ff974691311b573ed048af5d6e629d8abf Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Tue, 26 Sep 2023 13:33:50 +0000 Subject: [PATCH 366/521] Client Python update by KubeVirt Prow build 1706648735754227712 --- README.md | 3 +- ...SSHPublicKeyAccessCredentialPropagation.md | 9 ++ ...licKeyAccessCredentialPropagationMethod.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + ...ublic_key_access_credential_propagation.py | 99 +++++++++++++++++++ ...ey_access_credential_propagation_method.py | 30 +++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...ublic_key_access_credential_propagation.py | 44 +++++++++ 14 files changed, 194 insertions(+), 7 deletions(-) create mode 100644 docs/V1NoCloudSSHPublicKeyAccessCredentialPropagation.md create mode 100644 kubevirt/models/v1_no_cloud_ssh_public_key_access_credential_propagation.py create mode 100644 test/test_v1_no_cloud_ssh_public_key_access_credential_propagation.py diff --git a/README.md b/README.md index b6bdc29c..705c9f36 100644 --- a/README.md +++ b/README.md @@ -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.0.0-beta.0-1065-g67902ed9d +- Package version: v1.1.0-alpha.0-35-ge4c7d4e53 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -504,6 +504,7 @@ Class | Method | HTTP request | Description - [V1NUMAGuestMappingPassthrough](docs/V1NUMAGuestMappingPassthrough.md) - [V1Network](docs/V1Network.md) - [V1NetworkConfiguration](docs/V1NetworkConfiguration.md) + - [V1NoCloudSSHPublicKeyAccessCredentialPropagation](docs/V1NoCloudSSHPublicKeyAccessCredentialPropagation.md) - [V1NodeMediatedDeviceTypesConfig](docs/V1NodeMediatedDeviceTypesConfig.md) - [V1NodePlacement](docs/V1NodePlacement.md) - [V1PITTimer](docs/V1PITTimer.md) diff --git a/docs/V1NoCloudSSHPublicKeyAccessCredentialPropagation.md b/docs/V1NoCloudSSHPublicKeyAccessCredentialPropagation.md new file mode 100644 index 00000000..4552121a --- /dev/null +++ b/docs/V1NoCloudSSHPublicKeyAccessCredentialPropagation.md @@ -0,0 +1,9 @@ +# V1NoCloudSSHPublicKeyAccessCredentialPropagation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1SSHPublicKeyAccessCredentialPropagationMethod.md b/docs/V1SSHPublicKeyAccessCredentialPropagationMethod.md index 3ed37401..8b22ff22 100644 --- a/docs/V1SSHPublicKeyAccessCredentialPropagationMethod.md +++ b/docs/V1SSHPublicKeyAccessCredentialPropagationMethod.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **config_drive** | [**V1ConfigDriveSSHPublicKeyAccessCredentialPropagation**](V1ConfigDriveSSHPublicKeyAccessCredentialPropagation.md) | ConfigDrivePropagation means that the ssh public keys are injected into the VM using metadata using the configDrive cloud-init provider | [optional] +**no_cloud** | [**V1NoCloudSSHPublicKeyAccessCredentialPropagation**](V1NoCloudSSHPublicKeyAccessCredentialPropagation.md) | NoCloudPropagation means that the ssh public keys are injected into the VM using metadata using the noCloud cloud-init provider | [optional] **qemu_guest_agent** | [**V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation**](V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation.md) | QemuGuestAgentAccessCredentailPropagation means ssh public keys are dynamically injected into the vm at runtime via the qemu guest agent. This feature requires the qemu guest agent to be running within the guest. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 3e999db9..40e79d2f 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.0.0-beta.0-1065-g67902ed9d" + release_note="Auto-generated client v1.1.0-alpha.0-35-ge4c7d4e53" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 5008989c..d2b52d4c 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -522,6 +522,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_network_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_network_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1NetworkConfiguration.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_no_cloud_ssh_public_key_access_credential_propagation.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_no_cloud_ssh_public_key_access_credential_propagation.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1NoCloudSSHPublicKeyAccessCredentialPropagation.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_node_mediated_device_types_config.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_node_mediated_device_types_config.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1NodeMediatedDeviceTypesConfig.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 6f3888e5..8d78a7c0 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -181,6 +181,7 @@ from .models.v1_numa_guest_mapping_passthrough import V1NUMAGuestMappingPassthrough from .models.v1_network import V1Network from .models.v1_network_configuration import V1NetworkConfiguration +from .models.v1_no_cloud_ssh_public_key_access_credential_propagation import V1NoCloudSSHPublicKeyAccessCredentialPropagation from .models.v1_node_mediated_device_types_config import V1NodeMediatedDeviceTypesConfig from .models.v1_node_placement import V1NodePlacement from .models.v1_pit_timer import V1PITTimer diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 2ea46c91..7dfaaaeb 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.0.0-beta.0-1065-g67902ed9d/python' + self.user_agent = 'Swagger-Codegen/v1.1.0-alpha.0-35-ge4c7d4e53/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 4f384589..c8125e12 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.0.0-beta.0-1065-g67902ed9d".\ + "SDK Package Version: v1.1.0-alpha.0-35-ge4c7d4e53".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 5efde5cc..115c3a6e 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -181,6 +181,7 @@ from .v1_numa_guest_mapping_passthrough import V1NUMAGuestMappingPassthrough from .v1_network import V1Network from .v1_network_configuration import V1NetworkConfiguration +from .v1_no_cloud_ssh_public_key_access_credential_propagation import V1NoCloudSSHPublicKeyAccessCredentialPropagation from .v1_node_mediated_device_types_config import V1NodeMediatedDeviceTypesConfig from .v1_node_placement import V1NodePlacement from .v1_pit_timer import V1PITTimer diff --git a/kubevirt/models/v1_no_cloud_ssh_public_key_access_credential_propagation.py b/kubevirt/models/v1_no_cloud_ssh_public_key_access_credential_propagation.py new file mode 100644 index 00000000..ecffeccb --- /dev/null +++ b/kubevirt/models/v1_no_cloud_ssh_public_key_access_credential_propagation.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1NoCloudSSHPublicKeyAccessCredentialPropagation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1NoCloudSSHPublicKeyAccessCredentialPropagation - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1NoCloudSSHPublicKeyAccessCredentialPropagation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_ssh_public_key_access_credential_propagation_method.py b/kubevirt/models/v1_ssh_public_key_access_credential_propagation_method.py index b7b085f1..774f2538 100644 --- a/kubevirt/models/v1_ssh_public_key_access_credential_propagation_method.py +++ b/kubevirt/models/v1_ssh_public_key_access_credential_propagation_method.py @@ -32,24 +32,29 @@ class V1SSHPublicKeyAccessCredentialPropagationMethod(object): """ swagger_types = { 'config_drive': 'V1ConfigDriveSSHPublicKeyAccessCredentialPropagation', + 'no_cloud': 'V1NoCloudSSHPublicKeyAccessCredentialPropagation', 'qemu_guest_agent': 'V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation' } attribute_map = { 'config_drive': 'configDrive', + 'no_cloud': 'noCloud', 'qemu_guest_agent': 'qemuGuestAgent' } - def __init__(self, config_drive=None, qemu_guest_agent=None): + def __init__(self, config_drive=None, no_cloud=None, qemu_guest_agent=None): """ V1SSHPublicKeyAccessCredentialPropagationMethod - a model defined in Swagger """ self._config_drive = None + self._no_cloud = None self._qemu_guest_agent = None if config_drive is not None: self.config_drive = config_drive + if no_cloud is not None: + self.no_cloud = no_cloud if qemu_guest_agent is not None: self.qemu_guest_agent = qemu_guest_agent @@ -76,6 +81,29 @@ def config_drive(self, config_drive): self._config_drive = config_drive + @property + def no_cloud(self): + """ + Gets the no_cloud of this V1SSHPublicKeyAccessCredentialPropagationMethod. + NoCloudPropagation means that the ssh public keys are injected into the VM using metadata using the noCloud cloud-init provider + + :return: The no_cloud of this V1SSHPublicKeyAccessCredentialPropagationMethod. + :rtype: V1NoCloudSSHPublicKeyAccessCredentialPropagation + """ + return self._no_cloud + + @no_cloud.setter + def no_cloud(self, no_cloud): + """ + Sets the no_cloud of this V1SSHPublicKeyAccessCredentialPropagationMethod. + NoCloudPropagation means that the ssh public keys are injected into the VM using metadata using the noCloud cloud-init provider + + :param no_cloud: The no_cloud of this V1SSHPublicKeyAccessCredentialPropagationMethod. + :type: V1NoCloudSSHPublicKeyAccessCredentialPropagation + """ + + self._no_cloud = no_cloud + @property def qemu_guest_agent(self): """ diff --git a/setup.py b/setup.py index 71b53d9a..cec4acb6 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.0.0-beta.0-1065-g67902ed9d" +VERSION = "v1.1.0-alpha.0-35-ge4c7d4e53" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index f793c0a0..b9565ae3 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.0.0-beta.0-1065-g67902ed9d" +"packageVersion": "v1.1.0-alpha.0-35-ge4c7d4e53" } diff --git a/test/test_v1_no_cloud_ssh_public_key_access_credential_propagation.py b/test/test_v1_no_cloud_ssh_public_key_access_credential_propagation.py new file mode 100644 index 00000000..1b8010c9 --- /dev/null +++ b/test/test_v1_no_cloud_ssh_public_key_access_credential_propagation.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_no_cloud_ssh_public_key_access_credential_propagation import V1NoCloudSSHPublicKeyAccessCredentialPropagation + + +class TestV1NoCloudSSHPublicKeyAccessCredentialPropagation(unittest.TestCase): + """ V1NoCloudSSHPublicKeyAccessCredentialPropagation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1NoCloudSSHPublicKeyAccessCredentialPropagation(self): + """ + Test V1NoCloudSSHPublicKeyAccessCredentialPropagation + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_no_cloud_ssh_public_key_access_credential_propagation.V1NoCloudSSHPublicKeyAccessCredentialPropagation() + pass + + +if __name__ == '__main__': + unittest.main() From 16483ecb8beb5481ddfbe3c797c88af7386015eb Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 28 Sep 2023 00:08:59 +0000 Subject: [PATCH 367/521] Client Python update by KubeVirt Prow build 1707176235139862528 --- README.md | 2 +- docs/V1beta1VirtualMachineInstancetypeSpec.md | 1 + docs/V1beta1VirtualMachinePreferenceSpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...beta1_virtual_machine_instancetype_spec.py | 30 ++++++++++++++++++- ...v1beta1_virtual_machine_preference_spec.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 66 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 705c9f36..75520e96 100644 --- a/README.md +++ b/README.md @@ -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.1.0-alpha.0-35-ge4c7d4e53 +- Package version: v1.1.0-alpha.0-52-gec0a3edf1 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1VirtualMachineInstancetypeSpec.md b/docs/V1beta1VirtualMachineInstancetypeSpec.md index 4d7923f7..3975b7bf 100644 --- a/docs/V1beta1VirtualMachineInstancetypeSpec.md +++ b/docs/V1beta1VirtualMachineInstancetypeSpec.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**annotations** | **dict(str, str)** | Optionally defines the required Annotations to be used by the instance type and applied to the VirtualMachineInstance | [optional] **cpu** | [**V1beta1CPUInstancetype**](V1beta1CPUInstancetype.md) | Required CPU related attributes of the instancetype. | **gpus** | [**list[V1GPU]**](V1GPU.md) | Optionally defines any GPU devices associated with the instancetype. | [optional] **host_devices** | [**list[V1HostDevice]**](V1HostDevice.md) | Optionally defines any HostDevices associated with the instancetype. | [optional] diff --git a/docs/V1beta1VirtualMachinePreferenceSpec.md b/docs/V1beta1VirtualMachinePreferenceSpec.md index 992fad75..c470a96a 100644 --- a/docs/V1beta1VirtualMachinePreferenceSpec.md +++ b/docs/V1beta1VirtualMachinePreferenceSpec.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**annotations** | **dict(str, str)** | Optionally defines preferred Annotations to be applied to the VirtualMachineInstance | [optional] **clock** | [**V1beta1ClockPreferences**](V1beta1ClockPreferences.md) | Clock optionally defines preferences associated with the Clock attribute of a VirtualMachineInstance DomainSpec | [optional] **cpu** | [**V1beta1CPUPreferences**](V1beta1CPUPreferences.md) | CPU optionally defines preferences associated with the CPU attribute of a VirtualMachineInstance DomainSpec | [optional] **devices** | [**V1beta1DevicePreferences**](V1beta1DevicePreferences.md) | Devices optionally defines preferences associated with the Devices attribute of a VirtualMachineInstance DomainSpec | [optional] diff --git a/git_push.sh b/git_push.sh index 40e79d2f..fa75ada6 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.1.0-alpha.0-35-ge4c7d4e53" + release_note="Auto-generated client v1.1.0-alpha.0-52-gec0a3edf1" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 7dfaaaeb..ea39165c 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.1.0-alpha.0-35-ge4c7d4e53/python' + self.user_agent = 'Swagger-Codegen/v1.1.0-alpha.0-52-gec0a3edf1/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c8125e12..3732e0c4 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.1.0-alpha.0-35-ge4c7d4e53".\ + "SDK Package Version: v1.1.0-alpha.0-52-gec0a3edf1".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_virtual_machine_instancetype_spec.py b/kubevirt/models/v1beta1_virtual_machine_instancetype_spec.py index 574ccea2..54ae8a98 100644 --- a/kubevirt/models/v1beta1_virtual_machine_instancetype_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_instancetype_spec.py @@ -31,6 +31,7 @@ class V1beta1VirtualMachineInstancetypeSpec(object): and the value is json key in definition. """ swagger_types = { + 'annotations': 'dict(str, str)', 'cpu': 'V1beta1CPUInstancetype', 'gpus': 'list[V1GPU]', 'host_devices': 'list[V1HostDevice]', @@ -42,6 +43,7 @@ class V1beta1VirtualMachineInstancetypeSpec(object): } attribute_map = { + 'annotations': 'annotations', 'cpu': 'cpu', 'gpus': 'gpus', 'host_devices': 'hostDevices', @@ -52,11 +54,12 @@ class V1beta1VirtualMachineInstancetypeSpec(object): 'scheduler_name': 'schedulerName' } - def __init__(self, cpu=None, gpus=None, host_devices=None, io_threads_policy=None, launch_security=None, memory=None, node_selector=None, scheduler_name=None): + def __init__(self, annotations=None, cpu=None, gpus=None, host_devices=None, io_threads_policy=None, launch_security=None, memory=None, node_selector=None, scheduler_name=None): """ V1beta1VirtualMachineInstancetypeSpec - a model defined in Swagger """ + self._annotations = None self._cpu = None self._gpus = None self._host_devices = None @@ -66,6 +69,8 @@ def __init__(self, cpu=None, gpus=None, host_devices=None, io_threads_policy=Non self._node_selector = None self._scheduler_name = None + if annotations is not None: + self.annotations = annotations self.cpu = cpu if gpus is not None: self.gpus = gpus @@ -81,6 +86,29 @@ def __init__(self, cpu=None, gpus=None, host_devices=None, io_threads_policy=Non if scheduler_name is not None: self.scheduler_name = scheduler_name + @property + def annotations(self): + """ + Gets the annotations of this V1beta1VirtualMachineInstancetypeSpec. + Optionally defines the required Annotations to be used by the instance type and applied to the VirtualMachineInstance + + :return: The annotations of this V1beta1VirtualMachineInstancetypeSpec. + :rtype: dict(str, str) + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """ + Sets the annotations of this V1beta1VirtualMachineInstancetypeSpec. + Optionally defines the required Annotations to be used by the instance type and applied to the VirtualMachineInstance + + :param annotations: The annotations of this V1beta1VirtualMachineInstancetypeSpec. + :type: dict(str, str) + """ + + self._annotations = annotations + @property def cpu(self): """ diff --git a/kubevirt/models/v1beta1_virtual_machine_preference_spec.py b/kubevirt/models/v1beta1_virtual_machine_preference_spec.py index 3cc111e3..085ee8de 100644 --- a/kubevirt/models/v1beta1_virtual_machine_preference_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_preference_spec.py @@ -31,6 +31,7 @@ class V1beta1VirtualMachinePreferenceSpec(object): and the value is json key in definition. """ swagger_types = { + 'annotations': 'dict(str, str)', 'clock': 'V1beta1ClockPreferences', 'cpu': 'V1beta1CPUPreferences', 'devices': 'V1beta1DevicePreferences', @@ -44,6 +45,7 @@ class V1beta1VirtualMachinePreferenceSpec(object): } attribute_map = { + 'annotations': 'annotations', 'clock': 'clock', 'cpu': 'cpu', 'devices': 'devices', @@ -56,11 +58,12 @@ class V1beta1VirtualMachinePreferenceSpec(object): 'volumes': 'volumes' } - def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, preferred_subdomain=None, preferred_termination_grace_period_seconds=None, requirements=None, volumes=None): + def __init__(self, annotations=None, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, preferred_subdomain=None, preferred_termination_grace_period_seconds=None, requirements=None, volumes=None): """ V1beta1VirtualMachinePreferenceSpec - a model defined in Swagger """ + self._annotations = None self._clock = None self._cpu = None self._devices = None @@ -72,6 +75,8 @@ def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=N self._requirements = None self._volumes = None + if annotations is not None: + self.annotations = annotations if clock is not None: self.clock = clock if cpu is not None: @@ -93,6 +98,29 @@ def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=N if volumes is not None: self.volumes = volumes + @property + def annotations(self): + """ + Gets the annotations of this V1beta1VirtualMachinePreferenceSpec. + Optionally defines preferred Annotations to be applied to the VirtualMachineInstance + + :return: The annotations of this V1beta1VirtualMachinePreferenceSpec. + :rtype: dict(str, str) + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """ + Sets the annotations of this V1beta1VirtualMachinePreferenceSpec. + Optionally defines preferred Annotations to be applied to the VirtualMachineInstance + + :param annotations: The annotations of this V1beta1VirtualMachinePreferenceSpec. + :type: dict(str, str) + """ + + self._annotations = annotations + @property def clock(self): """ diff --git a/setup.py b/setup.py index cec4acb6..c29beef2 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.1.0-alpha.0-35-ge4c7d4e53" +VERSION = "v1.1.0-alpha.0-52-gec0a3edf1" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b9565ae3..7e1d28b1 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.1.0-alpha.0-35-ge4c7d4e53" +"packageVersion": "v1.1.0-alpha.0-52-gec0a3edf1" } From 227032b9ca117b85ed9cdc53d964ee1ff4e499b7 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 29 Sep 2023 14:28:24 +0000 Subject: [PATCH 368/521] Client Python update by KubeVirt Prow build 1707752972789747712 --- README.md | 4 +- docs/V1LiveUpdateConfiguration.md | 2 + docs/V1LiveUpdateFeatures.md | 1 + docs/V1LiveUpdateMemory.md | 10 + docs/V1Memory.md | 1 + docs/V1MemoryStatus.md | 12 ++ docs/V1VirtualMachineInstanceStatus.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 + kubevirt/__init__.py | 2 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 + .../models/v1_live_update_configuration.py | 62 +++++- kubevirt/models/v1_live_update_features.py | 34 +++- kubevirt/models/v1_live_update_memory.py | 125 ++++++++++++ kubevirt/models/v1_memory.py | 34 +++- kubevirt/models/v1_memory_status.py | 181 ++++++++++++++++++ .../v1_virtual_machine_instance_status.py | 30 ++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_live_update_memory.py | 44 +++++ test/test_v1_memory_status.py | 44 +++++ 23 files changed, 589 insertions(+), 16 deletions(-) create mode 100644 docs/V1LiveUpdateMemory.md create mode 100644 docs/V1MemoryStatus.md create mode 100644 kubevirt/models/v1_live_update_memory.py create mode 100644 kubevirt/models/v1_memory_status.py create mode 100644 test/test_v1_live_update_memory.py create mode 100644 test/test_v1_memory_status.py diff --git a/README.md b/README.md index 75520e96..68288afd 100644 --- a/README.md +++ b/README.md @@ -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.1.0-alpha.0-52-gec0a3edf1 +- Package version: v1.1.0-alpha.0-93-g02c74e74e - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -490,6 +490,7 @@ Class | Method | HTTP request | Description - [V1LiveUpdateCPU](docs/V1LiveUpdateCPU.md) - [V1LiveUpdateConfiguration](docs/V1LiveUpdateConfiguration.md) - [V1LiveUpdateFeatures](docs/V1LiveUpdateFeatures.md) + - [V1LiveUpdateMemory](docs/V1LiveUpdateMemory.md) - [V1LogVerbosity](docs/V1LogVerbosity.md) - [V1LunTarget](docs/V1LunTarget.md) - [V1Machine](docs/V1Machine.md) @@ -497,6 +498,7 @@ Class | Method | HTTP request | Description - [V1MediatedHostDevice](docs/V1MediatedHostDevice.md) - [V1Memory](docs/V1Memory.md) - [V1MemoryDumpVolumeSource](docs/V1MemoryDumpVolumeSource.md) + - [V1MemoryStatus](docs/V1MemoryStatus.md) - [V1MigrateOptions](docs/V1MigrateOptions.md) - [V1MigrationConfiguration](docs/V1MigrationConfiguration.md) - [V1MultusNetwork](docs/V1MultusNetwork.md) diff --git a/docs/V1LiveUpdateConfiguration.md b/docs/V1LiveUpdateConfiguration.md index 0c8219c1..53fe7287 100644 --- a/docs/V1LiveUpdateConfiguration.md +++ b/docs/V1LiveUpdateConfiguration.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **max_cpu_sockets** | **int** | MaxCpuSockets holds the maximum amount of sockets that can be hotplugged | [optional] +**max_guest** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | MaxGuest defines the maximum amount memory that can be allocated to the guest using hotplug. | [optional] +**max_hotplug_ratio** | **int** | MaxHotplugRatio is the ratio used to define the max amount of a hotplug resource that can be made available to a VM when the specific Max* setting is not defined (MaxCpuSockets, MaxGuest) Example: VM is configured with 512Mi of guest memory, if MaxGuest is not defined and MaxHotplugRatio is 2 then MaxGuest = 1Gi defaults to 4 | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1LiveUpdateFeatures.md b/docs/V1LiveUpdateFeatures.md index 086c3555..77eec359 100644 --- a/docs/V1LiveUpdateFeatures.md +++ b/docs/V1LiveUpdateFeatures.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **affinity** | [**V1LiveUpdateAffinity**](V1LiveUpdateAffinity.md) | Affinity allows live updating the virtual machines node affinity | [optional] **cpu** | [**V1LiveUpdateCPU**](V1LiveUpdateCPU.md) | LiveUpdateCPU holds hotplug configuration for the CPU resource. Empty struct indicates that default will be used for maxSockets. Default is specified on cluster level. Absence of the struct means opt-out from CPU hotplug functionality. | [optional] +**memory** | [**V1LiveUpdateMemory**](V1LiveUpdateMemory.md) | MemoryLiveUpdateConfiguration defines the live update memory features for the VirtualMachine | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1LiveUpdateMemory.md b/docs/V1LiveUpdateMemory.md new file mode 100644 index 00000000..3ac0cef7 --- /dev/null +++ b/docs/V1LiveUpdateMemory.md @@ -0,0 +1,10 @@ +# V1LiveUpdateMemory + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max_guest** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | MaxGuest defines the maximum amount memory that can be allocated for the VM. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Memory.md b/docs/V1Memory.md index 53e0b0af..87b28eca 100644 --- a/docs/V1Memory.md +++ b/docs/V1Memory.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **guest** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | Guest allows to specifying the amount of memory which is visible inside the Guest OS. The Guest must lie between Requests and Limits from the resources section. Defaults to the requested memory in the resources section if not specified. | [optional] **hugepages** | [**V1Hugepages**](V1Hugepages.md) | Hugepages allow to use hugepages for the VirtualMachineInstance instead of regular memory. | [optional] +**max_guest** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | MaxGuest allows to specify the maximum amount of memory which is visible inside the Guest OS. The delta between MaxGuest and Guest is the amount of memory that can be hot(un)plugged. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1MemoryStatus.md b/docs/V1MemoryStatus.md new file mode 100644 index 00000000..897ef6ee --- /dev/null +++ b/docs/V1MemoryStatus.md @@ -0,0 +1,12 @@ +# V1MemoryStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guest_at_boot** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | GuestAtBoot specifies with how much memory the VirtualMachine intiallly booted with. | [optional] +**guest_current** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | GuestCurrent specifies how much memory is currently available for the VirtualMachine. | [optional] +**guest_requested** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | GuestRequested specifies how much memory was requested (hotplug) for the VirtualMachine. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index 65bc58f7..8d398f02 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **interfaces** | [**list[V1VirtualMachineInstanceNetworkInterface]**](V1VirtualMachineInstanceNetworkInterface.md) | Interfaces represent the details of available network interfaces. | [optional] **launcher_container_image_version** | **str** | LauncherContainerImageVersion indicates what container image is currently active for the vmi. | [optional] **machine** | [**V1Machine**](V1Machine.md) | Machine shows the final resulting qemu machine type. This can be different than the machine type selected in the spec, due to qemus machine type alias mechanism. | [optional] +**memory** | [**V1MemoryStatus**](V1MemoryStatus.md) | Memory shows various informations about the VirtualMachine memory. | [optional] **migration_method** | **str** | Represents the method using which the vmi can be migrated: live migration or block migration | [optional] **migration_state** | [**V1VirtualMachineInstanceMigrationState**](V1VirtualMachineInstanceMigrationState.md) | Represents the status of a live migration | [optional] **migration_transport** | **str** | This represents the migration transport | [optional] diff --git a/git_push.sh b/git_push.sh index fa75ada6..624acb7c 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.1.0-alpha.0-52-gec0a3edf1" + release_note="Auto-generated client v1.1.0-alpha.0-93-g02c74e74e" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index d2b52d4c..a4dc39ab 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -480,6 +480,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_live_update_features.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_live_update_features.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1LiveUpdateFeatures.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_live_update_memory.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_live_update_memory.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1LiveUpdateMemory.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_log_verbosity.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_log_verbosity.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1LogVerbosity.md @@ -501,6 +504,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_memory_dump_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_memory_dump_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1MemoryDumpVolumeSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_memory_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_memory_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1MemoryStatus.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_migrate_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_migrate_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1MigrateOptions.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 8d78a7c0..60fbb39c 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -167,6 +167,7 @@ from .models.v1_live_update_cpu import V1LiveUpdateCPU from .models.v1_live_update_configuration import V1LiveUpdateConfiguration from .models.v1_live_update_features import V1LiveUpdateFeatures +from .models.v1_live_update_memory import V1LiveUpdateMemory from .models.v1_log_verbosity import V1LogVerbosity from .models.v1_lun_target import V1LunTarget from .models.v1_machine import V1Machine @@ -174,6 +175,7 @@ from .models.v1_mediated_host_device import V1MediatedHostDevice from .models.v1_memory import V1Memory from .models.v1_memory_dump_volume_source import V1MemoryDumpVolumeSource +from .models.v1_memory_status import V1MemoryStatus from .models.v1_migrate_options import V1MigrateOptions from .models.v1_migration_configuration import V1MigrationConfiguration from .models.v1_multus_network import V1MultusNetwork diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index ea39165c..2fd7f1a9 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.1.0-alpha.0-52-gec0a3edf1/python' + self.user_agent = 'Swagger-Codegen/v1.1.0-alpha.0-93-g02c74e74e/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 3732e0c4..8f60a879 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.1.0-alpha.0-52-gec0a3edf1".\ + "SDK Package Version: v1.1.0-alpha.0-93-g02c74e74e".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 115c3a6e..9b068cd4 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -167,6 +167,7 @@ from .v1_live_update_cpu import V1LiveUpdateCPU from .v1_live_update_configuration import V1LiveUpdateConfiguration from .v1_live_update_features import V1LiveUpdateFeatures +from .v1_live_update_memory import V1LiveUpdateMemory from .v1_log_verbosity import V1LogVerbosity from .v1_lun_target import V1LunTarget from .v1_machine import V1Machine @@ -174,6 +175,7 @@ from .v1_mediated_host_device import V1MediatedHostDevice from .v1_memory import V1Memory from .v1_memory_dump_volume_source import V1MemoryDumpVolumeSource +from .v1_memory_status import V1MemoryStatus from .v1_migrate_options import V1MigrateOptions from .v1_migration_configuration import V1MigrationConfiguration from .v1_multus_network import V1MultusNetwork diff --git a/kubevirt/models/v1_live_update_configuration.py b/kubevirt/models/v1_live_update_configuration.py index 861854d4..96689ee9 100644 --- a/kubevirt/models/v1_live_update_configuration.py +++ b/kubevirt/models/v1_live_update_configuration.py @@ -31,22 +31,32 @@ class V1LiveUpdateConfiguration(object): and the value is json key in definition. """ swagger_types = { - 'max_cpu_sockets': 'int' + 'max_cpu_sockets': 'int', + 'max_guest': 'K8sIoApimachineryPkgApiResourceQuantity', + 'max_hotplug_ratio': 'int' } attribute_map = { - 'max_cpu_sockets': 'maxCpuSockets' + 'max_cpu_sockets': 'maxCpuSockets', + 'max_guest': 'maxGuest', + 'max_hotplug_ratio': 'maxHotplugRatio' } - def __init__(self, max_cpu_sockets=None): + def __init__(self, max_cpu_sockets=None, max_guest=None, max_hotplug_ratio=None): """ V1LiveUpdateConfiguration - a model defined in Swagger """ self._max_cpu_sockets = None + self._max_guest = None + self._max_hotplug_ratio = None if max_cpu_sockets is not None: self.max_cpu_sockets = max_cpu_sockets + if max_guest is not None: + self.max_guest = max_guest + if max_hotplug_ratio is not None: + self.max_hotplug_ratio = max_hotplug_ratio @property def max_cpu_sockets(self): @@ -71,6 +81,52 @@ def max_cpu_sockets(self, max_cpu_sockets): self._max_cpu_sockets = max_cpu_sockets + @property + def max_guest(self): + """ + Gets the max_guest of this V1LiveUpdateConfiguration. + MaxGuest defines the maximum amount memory that can be allocated to the guest using hotplug. + + :return: The max_guest of this V1LiveUpdateConfiguration. + :rtype: K8sIoApimachineryPkgApiResourceQuantity + """ + return self._max_guest + + @max_guest.setter + def max_guest(self, max_guest): + """ + Sets the max_guest of this V1LiveUpdateConfiguration. + MaxGuest defines the maximum amount memory that can be allocated to the guest using hotplug. + + :param max_guest: The max_guest of this V1LiveUpdateConfiguration. + :type: K8sIoApimachineryPkgApiResourceQuantity + """ + + self._max_guest = max_guest + + @property + def max_hotplug_ratio(self): + """ + Gets the max_hotplug_ratio of this V1LiveUpdateConfiguration. + MaxHotplugRatio is the ratio used to define the max amount of a hotplug resource that can be made available to a VM when the specific Max* setting is not defined (MaxCpuSockets, MaxGuest) Example: VM is configured with 512Mi of guest memory, if MaxGuest is not defined and MaxHotplugRatio is 2 then MaxGuest = 1Gi defaults to 4 + + :return: The max_hotplug_ratio of this V1LiveUpdateConfiguration. + :rtype: int + """ + return self._max_hotplug_ratio + + @max_hotplug_ratio.setter + def max_hotplug_ratio(self, max_hotplug_ratio): + """ + Sets the max_hotplug_ratio of this V1LiveUpdateConfiguration. + MaxHotplugRatio is the ratio used to define the max amount of a hotplug resource that can be made available to a VM when the specific Max* setting is not defined (MaxCpuSockets, MaxGuest) Example: VM is configured with 512Mi of guest memory, if MaxGuest is not defined and MaxHotplugRatio is 2 then MaxGuest = 1Gi defaults to 4 + + :param max_hotplug_ratio: The max_hotplug_ratio of this V1LiveUpdateConfiguration. + :type: int + """ + + self._max_hotplug_ratio = max_hotplug_ratio + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_live_update_features.py b/kubevirt/models/v1_live_update_features.py index 502bcb6d..2f425933 100644 --- a/kubevirt/models/v1_live_update_features.py +++ b/kubevirt/models/v1_live_update_features.py @@ -32,26 +32,31 @@ class V1LiveUpdateFeatures(object): """ swagger_types = { 'affinity': 'V1LiveUpdateAffinity', - 'cpu': 'V1LiveUpdateCPU' + 'cpu': 'V1LiveUpdateCPU', + 'memory': 'V1LiveUpdateMemory' } attribute_map = { 'affinity': 'affinity', - 'cpu': 'cpu' + 'cpu': 'cpu', + 'memory': 'memory' } - def __init__(self, affinity=None, cpu=None): + def __init__(self, affinity=None, cpu=None, memory=None): """ V1LiveUpdateFeatures - a model defined in Swagger """ self._affinity = None self._cpu = None + self._memory = None if affinity is not None: self.affinity = affinity if cpu is not None: self.cpu = cpu + if memory is not None: + self.memory = memory @property def affinity(self): @@ -99,6 +104,29 @@ def cpu(self, cpu): self._cpu = cpu + @property + def memory(self): + """ + Gets the memory of this V1LiveUpdateFeatures. + MemoryLiveUpdateConfiguration defines the live update memory features for the VirtualMachine + + :return: The memory of this V1LiveUpdateFeatures. + :rtype: V1LiveUpdateMemory + """ + return self._memory + + @memory.setter + def memory(self, memory): + """ + Sets the memory of this V1LiveUpdateFeatures. + MemoryLiveUpdateConfiguration defines the live update memory features for the VirtualMachine + + :param memory: The memory of this V1LiveUpdateFeatures. + :type: V1LiveUpdateMemory + """ + + self._memory = memory + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_live_update_memory.py b/kubevirt/models/v1_live_update_memory.py new file mode 100644 index 00000000..5e756ad6 --- /dev/null +++ b/kubevirt/models/v1_live_update_memory.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1LiveUpdateMemory(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'max_guest': 'K8sIoApimachineryPkgApiResourceQuantity' + } + + attribute_map = { + 'max_guest': 'maxGuest' + } + + def __init__(self, max_guest=None): + """ + V1LiveUpdateMemory - a model defined in Swagger + """ + + self._max_guest = None + + if max_guest is not None: + self.max_guest = max_guest + + @property + def max_guest(self): + """ + Gets the max_guest of this V1LiveUpdateMemory. + MaxGuest defines the maximum amount memory that can be allocated for the VM. + + :return: The max_guest of this V1LiveUpdateMemory. + :rtype: K8sIoApimachineryPkgApiResourceQuantity + """ + return self._max_guest + + @max_guest.setter + def max_guest(self, max_guest): + """ + Sets the max_guest of this V1LiveUpdateMemory. + MaxGuest defines the maximum amount memory that can be allocated for the VM. + + :param max_guest: The max_guest of this V1LiveUpdateMemory. + :type: K8sIoApimachineryPkgApiResourceQuantity + """ + + self._max_guest = max_guest + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1LiveUpdateMemory): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_memory.py b/kubevirt/models/v1_memory.py index 79ed1f55..de47e216 100644 --- a/kubevirt/models/v1_memory.py +++ b/kubevirt/models/v1_memory.py @@ -32,26 +32,31 @@ class V1Memory(object): """ swagger_types = { 'guest': 'K8sIoApimachineryPkgApiResourceQuantity', - 'hugepages': 'V1Hugepages' + 'hugepages': 'V1Hugepages', + 'max_guest': 'K8sIoApimachineryPkgApiResourceQuantity' } attribute_map = { 'guest': 'guest', - 'hugepages': 'hugepages' + 'hugepages': 'hugepages', + 'max_guest': 'maxGuest' } - def __init__(self, guest=None, hugepages=None): + def __init__(self, guest=None, hugepages=None, max_guest=None): """ V1Memory - a model defined in Swagger """ self._guest = None self._hugepages = None + self._max_guest = None if guest is not None: self.guest = guest if hugepages is not None: self.hugepages = hugepages + if max_guest is not None: + self.max_guest = max_guest @property def guest(self): @@ -99,6 +104,29 @@ def hugepages(self, hugepages): self._hugepages = hugepages + @property + def max_guest(self): + """ + Gets the max_guest of this V1Memory. + MaxGuest allows to specify the maximum amount of memory which is visible inside the Guest OS. The delta between MaxGuest and Guest is the amount of memory that can be hot(un)plugged. + + :return: The max_guest of this V1Memory. + :rtype: K8sIoApimachineryPkgApiResourceQuantity + """ + return self._max_guest + + @max_guest.setter + def max_guest(self, max_guest): + """ + Sets the max_guest of this V1Memory. + MaxGuest allows to specify the maximum amount of memory which is visible inside the Guest OS. The delta between MaxGuest and Guest is the amount of memory that can be hot(un)plugged. + + :param max_guest: The max_guest of this V1Memory. + :type: K8sIoApimachineryPkgApiResourceQuantity + """ + + self._max_guest = max_guest + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_memory_status.py b/kubevirt/models/v1_memory_status.py new file mode 100644 index 00000000..a5cd6876 --- /dev/null +++ b/kubevirt/models/v1_memory_status.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1MemoryStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'guest_at_boot': 'K8sIoApimachineryPkgApiResourceQuantity', + 'guest_current': 'K8sIoApimachineryPkgApiResourceQuantity', + 'guest_requested': 'K8sIoApimachineryPkgApiResourceQuantity' + } + + attribute_map = { + 'guest_at_boot': 'guestAtBoot', + 'guest_current': 'guestCurrent', + 'guest_requested': 'guestRequested' + } + + def __init__(self, guest_at_boot=None, guest_current=None, guest_requested=None): + """ + V1MemoryStatus - a model defined in Swagger + """ + + self._guest_at_boot = None + self._guest_current = None + self._guest_requested = None + + if guest_at_boot is not None: + self.guest_at_boot = guest_at_boot + if guest_current is not None: + self.guest_current = guest_current + if guest_requested is not None: + self.guest_requested = guest_requested + + @property + def guest_at_boot(self): + """ + Gets the guest_at_boot of this V1MemoryStatus. + GuestAtBoot specifies with how much memory the VirtualMachine intiallly booted with. + + :return: The guest_at_boot of this V1MemoryStatus. + :rtype: K8sIoApimachineryPkgApiResourceQuantity + """ + return self._guest_at_boot + + @guest_at_boot.setter + def guest_at_boot(self, guest_at_boot): + """ + Sets the guest_at_boot of this V1MemoryStatus. + GuestAtBoot specifies with how much memory the VirtualMachine intiallly booted with. + + :param guest_at_boot: The guest_at_boot of this V1MemoryStatus. + :type: K8sIoApimachineryPkgApiResourceQuantity + """ + + self._guest_at_boot = guest_at_boot + + @property + def guest_current(self): + """ + Gets the guest_current of this V1MemoryStatus. + GuestCurrent specifies how much memory is currently available for the VirtualMachine. + + :return: The guest_current of this V1MemoryStatus. + :rtype: K8sIoApimachineryPkgApiResourceQuantity + """ + return self._guest_current + + @guest_current.setter + def guest_current(self, guest_current): + """ + Sets the guest_current of this V1MemoryStatus. + GuestCurrent specifies how much memory is currently available for the VirtualMachine. + + :param guest_current: The guest_current of this V1MemoryStatus. + :type: K8sIoApimachineryPkgApiResourceQuantity + """ + + self._guest_current = guest_current + + @property + def guest_requested(self): + """ + Gets the guest_requested of this V1MemoryStatus. + GuestRequested specifies how much memory was requested (hotplug) for the VirtualMachine. + + :return: The guest_requested of this V1MemoryStatus. + :rtype: K8sIoApimachineryPkgApiResourceQuantity + """ + return self._guest_requested + + @guest_requested.setter + def guest_requested(self, guest_requested): + """ + Sets the guest_requested of this V1MemoryStatus. + GuestRequested specifies how much memory was requested (hotplug) for the VirtualMachine. + + :param guest_requested: The guest_requested of this V1MemoryStatus. + :type: K8sIoApimachineryPkgApiResourceQuantity + """ + + self._guest_requested = guest_requested + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1MemoryStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index 3f5d31c0..bd7a0771 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -41,6 +41,7 @@ class V1VirtualMachineInstanceStatus(object): 'interfaces': 'list[V1VirtualMachineInstanceNetworkInterface]', 'launcher_container_image_version': 'str', 'machine': 'V1Machine', + 'memory': 'V1MemoryStatus', 'migration_method': 'str', 'migration_state': 'V1VirtualMachineInstanceMigrationState', 'migration_transport': 'str', @@ -67,6 +68,7 @@ class V1VirtualMachineInstanceStatus(object): 'interfaces': 'interfaces', 'launcher_container_image_version': 'launcherContainerImageVersion', 'machine': 'machine', + 'memory': 'memory', 'migration_method': 'migrationMethod', 'migration_state': 'migrationState', 'migration_transport': 'migrationTransport', @@ -82,7 +84,7 @@ class V1VirtualMachineInstanceStatus(object): 'volume_status': 'volumeStatus' } - def __init__(self, vsockcid=None, active_pods=None, conditions=None, current_cpu_topology=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, machine=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=0, selinux_context=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): + def __init__(self, vsockcid=None, active_pods=None, conditions=None, current_cpu_topology=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, machine=None, memory=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=0, selinux_context=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ @@ -97,6 +99,7 @@ def __init__(self, vsockcid=None, active_pods=None, conditions=None, current_cpu self._interfaces = None self._launcher_container_image_version = None self._machine = None + self._memory = None self._migration_method = None self._migration_state = None self._migration_transport = None @@ -131,6 +134,8 @@ def __init__(self, vsockcid=None, active_pods=None, conditions=None, current_cpu self.launcher_container_image_version = launcher_container_image_version if machine is not None: self.machine = machine + if memory is not None: + self.memory = memory if migration_method is not None: self.migration_method = migration_method if migration_state is not None: @@ -388,6 +393,29 @@ def machine(self, machine): self._machine = machine + @property + def memory(self): + """ + Gets the memory of this V1VirtualMachineInstanceStatus. + Memory shows various informations about the VirtualMachine memory. + + :return: The memory of this V1VirtualMachineInstanceStatus. + :rtype: V1MemoryStatus + """ + return self._memory + + @memory.setter + def memory(self, memory): + """ + Sets the memory of this V1VirtualMachineInstanceStatus. + Memory shows various informations about the VirtualMachine memory. + + :param memory: The memory of this V1VirtualMachineInstanceStatus. + :type: V1MemoryStatus + """ + + self._memory = memory + @property def migration_method(self): """ diff --git a/setup.py b/setup.py index c29beef2..94e45bab 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.1.0-alpha.0-52-gec0a3edf1" +VERSION = "v1.1.0-alpha.0-93-g02c74e74e" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 7e1d28b1..c1219d50 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.1.0-alpha.0-52-gec0a3edf1" +"packageVersion": "v1.1.0-alpha.0-93-g02c74e74e" } diff --git a/test/test_v1_live_update_memory.py b/test/test_v1_live_update_memory.py new file mode 100644 index 00000000..79ff8b82 --- /dev/null +++ b/test/test_v1_live_update_memory.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_live_update_memory import V1LiveUpdateMemory + + +class TestV1LiveUpdateMemory(unittest.TestCase): + """ V1LiveUpdateMemory unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1LiveUpdateMemory(self): + """ + Test V1LiveUpdateMemory + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_live_update_memory.V1LiveUpdateMemory() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_memory_status.py b/test/test_v1_memory_status.py new file mode 100644 index 00000000..902552b3 --- /dev/null +++ b/test/test_v1_memory_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_memory_status import V1MemoryStatus + + +class TestV1MemoryStatus(unittest.TestCase): + """ V1MemoryStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1MemoryStatus(self): + """ + Test V1MemoryStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_memory_status.V1MemoryStatus() + pass + + +if __name__ == '__main__': + unittest.main() From a74a3996499b68c31de83bf1d8f64b14e07cee22 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 29 Sep 2023 21:17:56 +0000 Subject: [PATCH 369/521] Client Python update by KubeVirt Prow build 1707858669426708480 --- README.md | 2 +- docs/V1beta1VirtualMachinePreferenceSpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...v1beta1_virtual_machine_preference_spec.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 68288afd..23adc877 100644 --- a/README.md +++ b/README.md @@ -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.1.0-alpha.0-93-g02c74e74e +- Package version: v1.1.0-alpha.0-104-gf09b4e337 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1VirtualMachinePreferenceSpec.md b/docs/V1beta1VirtualMachinePreferenceSpec.md index c470a96a..122a7d38 100644 --- a/docs/V1beta1VirtualMachinePreferenceSpec.md +++ b/docs/V1beta1VirtualMachinePreferenceSpec.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **features** | [**V1beta1FeaturePreferences**](V1beta1FeaturePreferences.md) | Features optionally defines preferences associated with the Features attribute of a VirtualMachineInstance DomainSpec | [optional] **firmware** | [**V1beta1FirmwarePreferences**](V1beta1FirmwarePreferences.md) | Firmware optionally defines preferences associated with the Firmware attribute of a VirtualMachineInstance DomainSpec | [optional] **machine** | [**V1beta1MachinePreferences**](V1beta1MachinePreferences.md) | Machine optionally defines preferences associated with the Machine attribute of a VirtualMachineInstance DomainSpec | [optional] +**prefer_spread_socket_to_core_ratio** | **int** | PreferSpreadSocketToCoreRatio defines the ratio to spread vCPUs between cores and sockets, it defaults to 2. | [optional] **preferred_subdomain** | **str** | Subdomain of the VirtualMachineInstance | [optional] **preferred_termination_grace_period_seconds** | **int** | Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. | [optional] **requirements** | [**V1beta1PreferenceRequirements**](V1beta1PreferenceRequirements.md) | Requirements defines the minium amount of instance type defined resources required by a set of preferences | [optional] diff --git a/git_push.sh b/git_push.sh index 624acb7c..a03dc8f1 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.1.0-alpha.0-93-g02c74e74e" + release_note="Auto-generated client v1.1.0-alpha.0-104-gf09b4e337" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 2fd7f1a9..f45027bc 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.1.0-alpha.0-93-g02c74e74e/python' + self.user_agent = 'Swagger-Codegen/v1.1.0-alpha.0-104-gf09b4e337/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 8f60a879..f913e90f 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.1.0-alpha.0-93-g02c74e74e".\ + "SDK Package Version: v1.1.0-alpha.0-104-gf09b4e337".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_virtual_machine_preference_spec.py b/kubevirt/models/v1beta1_virtual_machine_preference_spec.py index 085ee8de..c7e3e3ac 100644 --- a/kubevirt/models/v1beta1_virtual_machine_preference_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_preference_spec.py @@ -38,6 +38,7 @@ class V1beta1VirtualMachinePreferenceSpec(object): 'features': 'V1beta1FeaturePreferences', 'firmware': 'V1beta1FirmwarePreferences', 'machine': 'V1beta1MachinePreferences', + 'prefer_spread_socket_to_core_ratio': 'int', 'preferred_subdomain': 'str', 'preferred_termination_grace_period_seconds': 'int', 'requirements': 'V1beta1PreferenceRequirements', @@ -52,13 +53,14 @@ class V1beta1VirtualMachinePreferenceSpec(object): 'features': 'features', 'firmware': 'firmware', 'machine': 'machine', + 'prefer_spread_socket_to_core_ratio': 'preferSpreadSocketToCoreRatio', 'preferred_subdomain': 'preferredSubdomain', 'preferred_termination_grace_period_seconds': 'preferredTerminationGracePeriodSeconds', 'requirements': 'requirements', 'volumes': 'volumes' } - def __init__(self, annotations=None, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, preferred_subdomain=None, preferred_termination_grace_period_seconds=None, requirements=None, volumes=None): + def __init__(self, annotations=None, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, prefer_spread_socket_to_core_ratio=None, preferred_subdomain=None, preferred_termination_grace_period_seconds=None, requirements=None, volumes=None): """ V1beta1VirtualMachinePreferenceSpec - a model defined in Swagger """ @@ -70,6 +72,7 @@ def __init__(self, annotations=None, clock=None, cpu=None, devices=None, feature self._features = None self._firmware = None self._machine = None + self._prefer_spread_socket_to_core_ratio = None self._preferred_subdomain = None self._preferred_termination_grace_period_seconds = None self._requirements = None @@ -89,6 +92,8 @@ def __init__(self, annotations=None, clock=None, cpu=None, devices=None, feature self.firmware = firmware if machine is not None: self.machine = machine + if prefer_spread_socket_to_core_ratio is not None: + self.prefer_spread_socket_to_core_ratio = prefer_spread_socket_to_core_ratio if preferred_subdomain is not None: self.preferred_subdomain = preferred_subdomain if preferred_termination_grace_period_seconds is not None: @@ -259,6 +264,29 @@ def machine(self, machine): self._machine = machine + @property + def prefer_spread_socket_to_core_ratio(self): + """ + Gets the prefer_spread_socket_to_core_ratio of this V1beta1VirtualMachinePreferenceSpec. + PreferSpreadSocketToCoreRatio defines the ratio to spread vCPUs between cores and sockets, it defaults to 2. + + :return: The prefer_spread_socket_to_core_ratio of this V1beta1VirtualMachinePreferenceSpec. + :rtype: int + """ + return self._prefer_spread_socket_to_core_ratio + + @prefer_spread_socket_to_core_ratio.setter + def prefer_spread_socket_to_core_ratio(self, prefer_spread_socket_to_core_ratio): + """ + Sets the prefer_spread_socket_to_core_ratio of this V1beta1VirtualMachinePreferenceSpec. + PreferSpreadSocketToCoreRatio defines the ratio to spread vCPUs between cores and sockets, it defaults to 2. + + :param prefer_spread_socket_to_core_ratio: The prefer_spread_socket_to_core_ratio of this V1beta1VirtualMachinePreferenceSpec. + :type: int + """ + + self._prefer_spread_socket_to_core_ratio = prefer_spread_socket_to_core_ratio + @property def preferred_subdomain(self): """ diff --git a/setup.py b/setup.py index 94e45bab..c2d1e78b 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.1.0-alpha.0-93-g02c74e74e" +VERSION = "v1.1.0-alpha.0-104-gf09b4e337" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index c1219d50..c3dcc1bf 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.1.0-alpha.0-93-g02c74e74e" +"packageVersion": "v1.1.0-alpha.0-104-gf09b4e337" } From d70f1ba43a5cff001a1cf2fcea4feda463869419 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 29 Sep 2023 21:44:48 +0000 Subject: [PATCH 370/521] Client Python update by KubeVirt Prow build 1707858641031270400 --- README.md | 2 +- docs/V1beta1VirtualMachinePreferenceSpec.md | 1 - git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...v1beta1_virtual_machine_preference_spec.py | 30 +------------------ setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 7 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index 23adc877..3c16ec9b 100644 --- a/README.md +++ b/README.md @@ -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.1.0-alpha.0-104-gf09b4e337 +- Package version: v1.1.0-alpha.0-101-g190295956 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1VirtualMachinePreferenceSpec.md b/docs/V1beta1VirtualMachinePreferenceSpec.md index 122a7d38..c470a96a 100644 --- a/docs/V1beta1VirtualMachinePreferenceSpec.md +++ b/docs/V1beta1VirtualMachinePreferenceSpec.md @@ -10,7 +10,6 @@ Name | Type | Description | Notes **features** | [**V1beta1FeaturePreferences**](V1beta1FeaturePreferences.md) | Features optionally defines preferences associated with the Features attribute of a VirtualMachineInstance DomainSpec | [optional] **firmware** | [**V1beta1FirmwarePreferences**](V1beta1FirmwarePreferences.md) | Firmware optionally defines preferences associated with the Firmware attribute of a VirtualMachineInstance DomainSpec | [optional] **machine** | [**V1beta1MachinePreferences**](V1beta1MachinePreferences.md) | Machine optionally defines preferences associated with the Machine attribute of a VirtualMachineInstance DomainSpec | [optional] -**prefer_spread_socket_to_core_ratio** | **int** | PreferSpreadSocketToCoreRatio defines the ratio to spread vCPUs between cores and sockets, it defaults to 2. | [optional] **preferred_subdomain** | **str** | Subdomain of the VirtualMachineInstance | [optional] **preferred_termination_grace_period_seconds** | **int** | Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. | [optional] **requirements** | [**V1beta1PreferenceRequirements**](V1beta1PreferenceRequirements.md) | Requirements defines the minium amount of instance type defined resources required by a set of preferences | [optional] diff --git a/git_push.sh b/git_push.sh index a03dc8f1..15ebe4ff 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.1.0-alpha.0-104-gf09b4e337" + release_note="Auto-generated client v1.1.0-alpha.0-101-g190295956" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index f45027bc..159d9f05 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.1.0-alpha.0-104-gf09b4e337/python' + self.user_agent = 'Swagger-Codegen/v1.1.0-alpha.0-101-g190295956/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index f913e90f..ccae51fb 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.1.0-alpha.0-104-gf09b4e337".\ + "SDK Package Version: v1.1.0-alpha.0-101-g190295956".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_virtual_machine_preference_spec.py b/kubevirt/models/v1beta1_virtual_machine_preference_spec.py index c7e3e3ac..085ee8de 100644 --- a/kubevirt/models/v1beta1_virtual_machine_preference_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_preference_spec.py @@ -38,7 +38,6 @@ class V1beta1VirtualMachinePreferenceSpec(object): 'features': 'V1beta1FeaturePreferences', 'firmware': 'V1beta1FirmwarePreferences', 'machine': 'V1beta1MachinePreferences', - 'prefer_spread_socket_to_core_ratio': 'int', 'preferred_subdomain': 'str', 'preferred_termination_grace_period_seconds': 'int', 'requirements': 'V1beta1PreferenceRequirements', @@ -53,14 +52,13 @@ class V1beta1VirtualMachinePreferenceSpec(object): 'features': 'features', 'firmware': 'firmware', 'machine': 'machine', - 'prefer_spread_socket_to_core_ratio': 'preferSpreadSocketToCoreRatio', 'preferred_subdomain': 'preferredSubdomain', 'preferred_termination_grace_period_seconds': 'preferredTerminationGracePeriodSeconds', 'requirements': 'requirements', 'volumes': 'volumes' } - def __init__(self, annotations=None, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, prefer_spread_socket_to_core_ratio=None, preferred_subdomain=None, preferred_termination_grace_period_seconds=None, requirements=None, volumes=None): + def __init__(self, annotations=None, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, preferred_subdomain=None, preferred_termination_grace_period_seconds=None, requirements=None, volumes=None): """ V1beta1VirtualMachinePreferenceSpec - a model defined in Swagger """ @@ -72,7 +70,6 @@ def __init__(self, annotations=None, clock=None, cpu=None, devices=None, feature self._features = None self._firmware = None self._machine = None - self._prefer_spread_socket_to_core_ratio = None self._preferred_subdomain = None self._preferred_termination_grace_period_seconds = None self._requirements = None @@ -92,8 +89,6 @@ def __init__(self, annotations=None, clock=None, cpu=None, devices=None, feature self.firmware = firmware if machine is not None: self.machine = machine - if prefer_spread_socket_to_core_ratio is not None: - self.prefer_spread_socket_to_core_ratio = prefer_spread_socket_to_core_ratio if preferred_subdomain is not None: self.preferred_subdomain = preferred_subdomain if preferred_termination_grace_period_seconds is not None: @@ -264,29 +259,6 @@ def machine(self, machine): self._machine = machine - @property - def prefer_spread_socket_to_core_ratio(self): - """ - Gets the prefer_spread_socket_to_core_ratio of this V1beta1VirtualMachinePreferenceSpec. - PreferSpreadSocketToCoreRatio defines the ratio to spread vCPUs between cores and sockets, it defaults to 2. - - :return: The prefer_spread_socket_to_core_ratio of this V1beta1VirtualMachinePreferenceSpec. - :rtype: int - """ - return self._prefer_spread_socket_to_core_ratio - - @prefer_spread_socket_to_core_ratio.setter - def prefer_spread_socket_to_core_ratio(self, prefer_spread_socket_to_core_ratio): - """ - Sets the prefer_spread_socket_to_core_ratio of this V1beta1VirtualMachinePreferenceSpec. - PreferSpreadSocketToCoreRatio defines the ratio to spread vCPUs between cores and sockets, it defaults to 2. - - :param prefer_spread_socket_to_core_ratio: The prefer_spread_socket_to_core_ratio of this V1beta1VirtualMachinePreferenceSpec. - :type: int - """ - - self._prefer_spread_socket_to_core_ratio = prefer_spread_socket_to_core_ratio - @property def preferred_subdomain(self): """ diff --git a/setup.py b/setup.py index c2d1e78b..47679789 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.1.0-alpha.0-104-gf09b4e337" +VERSION = "v1.1.0-alpha.0-101-g190295956" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index c3dcc1bf..e72bbd9f 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.1.0-alpha.0-104-gf09b4e337" +"packageVersion": "v1.1.0-alpha.0-101-g190295956" } From 79729a93d5681d5ae401a24ac177bc7d514552b0 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 29 Sep 2023 21:45:44 +0000 Subject: [PATCH 371/521] Client Python update by KubeVirt Prow build 1707858699680223232 --- README.md | 2 +- docs/V1beta1VirtualMachinePreferenceSpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...v1beta1_virtual_machine_preference_spec.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 3c16ec9b..98df9b21 100644 --- a/README.md +++ b/README.md @@ -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.1.0-alpha.0-101-g190295956 +- Package version: v1.1.0-alpha.0-108-ga10859160 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1VirtualMachinePreferenceSpec.md b/docs/V1beta1VirtualMachinePreferenceSpec.md index c470a96a..122a7d38 100644 --- a/docs/V1beta1VirtualMachinePreferenceSpec.md +++ b/docs/V1beta1VirtualMachinePreferenceSpec.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **features** | [**V1beta1FeaturePreferences**](V1beta1FeaturePreferences.md) | Features optionally defines preferences associated with the Features attribute of a VirtualMachineInstance DomainSpec | [optional] **firmware** | [**V1beta1FirmwarePreferences**](V1beta1FirmwarePreferences.md) | Firmware optionally defines preferences associated with the Firmware attribute of a VirtualMachineInstance DomainSpec | [optional] **machine** | [**V1beta1MachinePreferences**](V1beta1MachinePreferences.md) | Machine optionally defines preferences associated with the Machine attribute of a VirtualMachineInstance DomainSpec | [optional] +**prefer_spread_socket_to_core_ratio** | **int** | PreferSpreadSocketToCoreRatio defines the ratio to spread vCPUs between cores and sockets, it defaults to 2. | [optional] **preferred_subdomain** | **str** | Subdomain of the VirtualMachineInstance | [optional] **preferred_termination_grace_period_seconds** | **int** | Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. | [optional] **requirements** | [**V1beta1PreferenceRequirements**](V1beta1PreferenceRequirements.md) | Requirements defines the minium amount of instance type defined resources required by a set of preferences | [optional] diff --git a/git_push.sh b/git_push.sh index 15ebe4ff..7fecb466 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.1.0-alpha.0-101-g190295956" + release_note="Auto-generated client v1.1.0-alpha.0-108-ga10859160" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 159d9f05..4dc78b1e 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.1.0-alpha.0-101-g190295956/python' + self.user_agent = 'Swagger-Codegen/v1.1.0-alpha.0-108-ga10859160/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index ccae51fb..2fe80330 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.1.0-alpha.0-101-g190295956".\ + "SDK Package Version: v1.1.0-alpha.0-108-ga10859160".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_virtual_machine_preference_spec.py b/kubevirt/models/v1beta1_virtual_machine_preference_spec.py index 085ee8de..c7e3e3ac 100644 --- a/kubevirt/models/v1beta1_virtual_machine_preference_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_preference_spec.py @@ -38,6 +38,7 @@ class V1beta1VirtualMachinePreferenceSpec(object): 'features': 'V1beta1FeaturePreferences', 'firmware': 'V1beta1FirmwarePreferences', 'machine': 'V1beta1MachinePreferences', + 'prefer_spread_socket_to_core_ratio': 'int', 'preferred_subdomain': 'str', 'preferred_termination_grace_period_seconds': 'int', 'requirements': 'V1beta1PreferenceRequirements', @@ -52,13 +53,14 @@ class V1beta1VirtualMachinePreferenceSpec(object): 'features': 'features', 'firmware': 'firmware', 'machine': 'machine', + 'prefer_spread_socket_to_core_ratio': 'preferSpreadSocketToCoreRatio', 'preferred_subdomain': 'preferredSubdomain', 'preferred_termination_grace_period_seconds': 'preferredTerminationGracePeriodSeconds', 'requirements': 'requirements', 'volumes': 'volumes' } - def __init__(self, annotations=None, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, preferred_subdomain=None, preferred_termination_grace_period_seconds=None, requirements=None, volumes=None): + def __init__(self, annotations=None, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, prefer_spread_socket_to_core_ratio=None, preferred_subdomain=None, preferred_termination_grace_period_seconds=None, requirements=None, volumes=None): """ V1beta1VirtualMachinePreferenceSpec - a model defined in Swagger """ @@ -70,6 +72,7 @@ def __init__(self, annotations=None, clock=None, cpu=None, devices=None, feature self._features = None self._firmware = None self._machine = None + self._prefer_spread_socket_to_core_ratio = None self._preferred_subdomain = None self._preferred_termination_grace_period_seconds = None self._requirements = None @@ -89,6 +92,8 @@ def __init__(self, annotations=None, clock=None, cpu=None, devices=None, feature self.firmware = firmware if machine is not None: self.machine = machine + if prefer_spread_socket_to_core_ratio is not None: + self.prefer_spread_socket_to_core_ratio = prefer_spread_socket_to_core_ratio if preferred_subdomain is not None: self.preferred_subdomain = preferred_subdomain if preferred_termination_grace_period_seconds is not None: @@ -259,6 +264,29 @@ def machine(self, machine): self._machine = machine + @property + def prefer_spread_socket_to_core_ratio(self): + """ + Gets the prefer_spread_socket_to_core_ratio of this V1beta1VirtualMachinePreferenceSpec. + PreferSpreadSocketToCoreRatio defines the ratio to spread vCPUs between cores and sockets, it defaults to 2. + + :return: The prefer_spread_socket_to_core_ratio of this V1beta1VirtualMachinePreferenceSpec. + :rtype: int + """ + return self._prefer_spread_socket_to_core_ratio + + @prefer_spread_socket_to_core_ratio.setter + def prefer_spread_socket_to_core_ratio(self, prefer_spread_socket_to_core_ratio): + """ + Sets the prefer_spread_socket_to_core_ratio of this V1beta1VirtualMachinePreferenceSpec. + PreferSpreadSocketToCoreRatio defines the ratio to spread vCPUs between cores and sockets, it defaults to 2. + + :param prefer_spread_socket_to_core_ratio: The prefer_spread_socket_to_core_ratio of this V1beta1VirtualMachinePreferenceSpec. + :type: int + """ + + self._prefer_spread_socket_to_core_ratio = prefer_spread_socket_to_core_ratio + @property def preferred_subdomain(self): """ diff --git a/setup.py b/setup.py index 47679789..34c198e2 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.1.0-alpha.0-101-g190295956" +VERSION = "v1.1.0-alpha.0-108-ga10859160" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index e72bbd9f..3f24e01b 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.1.0-alpha.0-101-g190295956" +"packageVersion": "v1.1.0-alpha.0-108-ga10859160" } From 42f7033835cb453ce94700fa8a909237f3b5bbe4 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Sat, 30 Sep 2023 08:02:05 +0000 Subject: [PATCH 372/521] Client Python update by KubeVirt Prow build 1708018693650255872 --- README.md | 4 +- docs/V1PermittedHostDevices.md | 1 + docs/V1USBHostDevice.md | 11 ++ docs/V1USBSelector.md | 11 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 + kubevirt/__init__.py | 2 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 + kubevirt/models/v1_permitted_host_devices.py | 32 +++- kubevirt/models/v1_usb_host_device.py | 152 +++++++++++++++++++ kubevirt/models/v1_usb_selector.py | 151 ++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_usb_host_device.py | 44 ++++++ test/test_v1_usb_selector.py | 44 ++++++ 17 files changed, 461 insertions(+), 9 deletions(-) create mode 100644 docs/V1USBHostDevice.md create mode 100644 docs/V1USBSelector.md create mode 100644 kubevirt/models/v1_usb_host_device.py create mode 100644 kubevirt/models/v1_usb_selector.py create mode 100644 test/test_v1_usb_host_device.py create mode 100644 test/test_v1_usb_selector.py diff --git a/README.md b/README.md index 98df9b21..d7278d85 100644 --- a/README.md +++ b/README.md @@ -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.1.0-alpha.0-108-ga10859160 +- Package version: v1.1.0-alpha.0-122-g2c8b69749 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -556,6 +556,8 @@ Class | Method | HTTP request | Description - [V1Timer](docs/V1Timer.md) - [V1TokenBucketRateLimiter](docs/V1TokenBucketRateLimiter.md) - [V1TopologyHints](docs/V1TopologyHints.md) + - [V1USBHostDevice](docs/V1USBHostDevice.md) + - [V1USBSelector](docs/V1USBSelector.md) - [V1UnpauseOptions](docs/V1UnpauseOptions.md) - [V1UserPasswordAccessCredential](docs/V1UserPasswordAccessCredential.md) - [V1UserPasswordAccessCredentialPropagationMethod](docs/V1UserPasswordAccessCredentialPropagationMethod.md) diff --git a/docs/V1PermittedHostDevices.md b/docs/V1PermittedHostDevices.md index dfb4f4c1..6998a99e 100644 --- a/docs/V1PermittedHostDevices.md +++ b/docs/V1PermittedHostDevices.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **mediated_devices** | [**list[V1MediatedHostDevice]**](V1MediatedHostDevice.md) | | [optional] **pci_host_devices** | [**list[V1PciHostDevice]**](V1PciHostDevice.md) | | [optional] +**usb** | [**list[V1USBHostDevice]**](V1USBHostDevice.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1USBHostDevice.md b/docs/V1USBHostDevice.md new file mode 100644 index 00000000..160bdc27 --- /dev/null +++ b/docs/V1USBHostDevice.md @@ -0,0 +1,11 @@ +# V1USBHostDevice + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resource_name** | **str** | Identifies the list of USB host devices. e.g: kubevirt.io/storage, kubevirt.io/bootable-usb, etc | [default to ''] +**selectors** | [**list[V1USBSelector]**](V1USBSelector.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1USBSelector.md b/docs/V1USBSelector.md new file mode 100644 index 00000000..14d8b7ea --- /dev/null +++ b/docs/V1USBSelector.md @@ -0,0 +1,11 @@ +# V1USBSelector + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**product** | **str** | | [default to ''] +**vendor** | **str** | | [default to ''] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 7fecb466..82ad86d6 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.1.0-alpha.0-108-ga10859160" + release_note="Auto-generated client v1.1.0-alpha.0-122-g2c8b69749" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index a4dc39ab..72416649 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -678,6 +678,12 @@ 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_topology_hints.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_topology_hints.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1TopologyHints.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_usb_host_device.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_usb_host_device.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1USBHostDevice.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_usb_selector.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_usb_selector.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1USBSelector.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_unpause_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_unpause_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1UnpauseOptions.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 60fbb39c..737b7eb3 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -233,6 +233,8 @@ from .models.v1_timer import V1Timer from .models.v1_token_bucket_rate_limiter import V1TokenBucketRateLimiter from .models.v1_topology_hints import V1TopologyHints +from .models.v1_usb_host_device import V1USBHostDevice +from .models.v1_usb_selector import V1USBSelector from .models.v1_unpause_options import V1UnpauseOptions from .models.v1_user_password_access_credential import V1UserPasswordAccessCredential from .models.v1_user_password_access_credential_propagation_method import V1UserPasswordAccessCredentialPropagationMethod diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 4dc78b1e..ef3b4d08 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.1.0-alpha.0-108-ga10859160/python' + self.user_agent = 'Swagger-Codegen/v1.1.0-alpha.0-122-g2c8b69749/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 2fe80330..f8b52f94 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.1.0-alpha.0-108-ga10859160".\ + "SDK Package Version: v1.1.0-alpha.0-122-g2c8b69749".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 9b068cd4..3f5f8c0e 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -233,6 +233,8 @@ from .v1_timer import V1Timer from .v1_token_bucket_rate_limiter import V1TokenBucketRateLimiter from .v1_topology_hints import V1TopologyHints +from .v1_usb_host_device import V1USBHostDevice +from .v1_usb_selector import V1USBSelector from .v1_unpause_options import V1UnpauseOptions from .v1_user_password_access_credential import V1UserPasswordAccessCredential from .v1_user_password_access_credential_propagation_method import V1UserPasswordAccessCredentialPropagationMethod diff --git a/kubevirt/models/v1_permitted_host_devices.py b/kubevirt/models/v1_permitted_host_devices.py index d9f476a6..6074af03 100644 --- a/kubevirt/models/v1_permitted_host_devices.py +++ b/kubevirt/models/v1_permitted_host_devices.py @@ -32,26 +32,31 @@ class V1PermittedHostDevices(object): """ swagger_types = { 'mediated_devices': 'list[V1MediatedHostDevice]', - 'pci_host_devices': 'list[V1PciHostDevice]' + 'pci_host_devices': 'list[V1PciHostDevice]', + 'usb': 'list[V1USBHostDevice]' } attribute_map = { 'mediated_devices': 'mediatedDevices', - 'pci_host_devices': 'pciHostDevices' + 'pci_host_devices': 'pciHostDevices', + 'usb': 'usb' } - def __init__(self, mediated_devices=None, pci_host_devices=None): + def __init__(self, mediated_devices=None, pci_host_devices=None, usb=None): """ V1PermittedHostDevices - a model defined in Swagger """ self._mediated_devices = None self._pci_host_devices = None + self._usb = None if mediated_devices is not None: self.mediated_devices = mediated_devices if pci_host_devices is not None: self.pci_host_devices = pci_host_devices + if usb is not None: + self.usb = usb @property def mediated_devices(self): @@ -95,6 +100,27 @@ def pci_host_devices(self, pci_host_devices): self._pci_host_devices = pci_host_devices + @property + def usb(self): + """ + Gets the usb of this V1PermittedHostDevices. + + :return: The usb of this V1PermittedHostDevices. + :rtype: list[V1USBHostDevice] + """ + return self._usb + + @usb.setter + def usb(self, usb): + """ + Sets the usb of this V1PermittedHostDevices. + + :param usb: The usb of this V1PermittedHostDevices. + :type: list[V1USBHostDevice] + """ + + self._usb = usb + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_usb_host_device.py b/kubevirt/models/v1_usb_host_device.py new file mode 100644 index 00000000..d3765fdf --- /dev/null +++ b/kubevirt/models/v1_usb_host_device.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1USBHostDevice(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'resource_name': 'str', + 'selectors': 'list[V1USBSelector]' + } + + attribute_map = { + 'resource_name': 'resourceName', + 'selectors': 'selectors' + } + + def __init__(self, resource_name='', selectors=None): + """ + V1USBHostDevice - a model defined in Swagger + """ + + self._resource_name = None + self._selectors = None + + self.resource_name = resource_name + if selectors is not None: + self.selectors = selectors + + @property + def resource_name(self): + """ + Gets the resource_name of this V1USBHostDevice. + Identifies the list of USB host devices. e.g: kubevirt.io/storage, kubevirt.io/bootable-usb, etc + + :return: The resource_name of this V1USBHostDevice. + :rtype: str + """ + return self._resource_name + + @resource_name.setter + def resource_name(self, resource_name): + """ + Sets the resource_name of this V1USBHostDevice. + Identifies the list of USB host devices. e.g: kubevirt.io/storage, kubevirt.io/bootable-usb, etc + + :param resource_name: The resource_name of this V1USBHostDevice. + :type: str + """ + if resource_name is None: + raise ValueError("Invalid value for `resource_name`, must not be `None`") + + self._resource_name = resource_name + + @property + def selectors(self): + """ + Gets the selectors of this V1USBHostDevice. + + :return: The selectors of this V1USBHostDevice. + :rtype: list[V1USBSelector] + """ + return self._selectors + + @selectors.setter + def selectors(self, selectors): + """ + Sets the selectors of this V1USBHostDevice. + + :param selectors: The selectors of this V1USBHostDevice. + :type: list[V1USBSelector] + """ + + self._selectors = selectors + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1USBHostDevice): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_usb_selector.py b/kubevirt/models/v1_usb_selector.py new file mode 100644 index 00000000..0b4fa61d --- /dev/null +++ b/kubevirt/models/v1_usb_selector.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1USBSelector(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'product': 'str', + 'vendor': 'str' + } + + attribute_map = { + 'product': 'product', + 'vendor': 'vendor' + } + + def __init__(self, product='', vendor=''): + """ + V1USBSelector - a model defined in Swagger + """ + + self._product = None + self._vendor = None + + self.product = product + self.vendor = vendor + + @property + def product(self): + """ + Gets the product of this V1USBSelector. + + :return: The product of this V1USBSelector. + :rtype: str + """ + return self._product + + @product.setter + def product(self, product): + """ + Sets the product of this V1USBSelector. + + :param product: The product of this V1USBSelector. + :type: str + """ + if product is None: + raise ValueError("Invalid value for `product`, must not be `None`") + + self._product = product + + @property + def vendor(self): + """ + Gets the vendor of this V1USBSelector. + + :return: The vendor of this V1USBSelector. + :rtype: str + """ + return self._vendor + + @vendor.setter + def vendor(self, vendor): + """ + Sets the vendor of this V1USBSelector. + + :param vendor: The vendor of this V1USBSelector. + :type: str + """ + if vendor is None: + raise ValueError("Invalid value for `vendor`, must not be `None`") + + self._vendor = vendor + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1USBSelector): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 34c198e2..05df50ab 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.1.0-alpha.0-108-ga10859160" +VERSION = "v1.1.0-alpha.0-122-g2c8b69749" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 3f24e01b..b50ea8d3 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.1.0-alpha.0-108-ga10859160" +"packageVersion": "v1.1.0-alpha.0-122-g2c8b69749" } diff --git a/test/test_v1_usb_host_device.py b/test/test_v1_usb_host_device.py new file mode 100644 index 00000000..173610cf --- /dev/null +++ b/test/test_v1_usb_host_device.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_usb_host_device import V1USBHostDevice + + +class TestV1USBHostDevice(unittest.TestCase): + """ V1USBHostDevice unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1USBHostDevice(self): + """ + Test V1USBHostDevice + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_usb_host_device.V1USBHostDevice() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_usb_selector.py b/test/test_v1_usb_selector.py new file mode 100644 index 00000000..b607f5d7 --- /dev/null +++ b/test/test_v1_usb_selector.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_usb_selector import V1USBSelector + + +class TestV1USBSelector(unittest.TestCase): + """ V1USBSelector unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1USBSelector(self): + """ + Test V1USBSelector + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_usb_selector.V1USBSelector() + pass + + +if __name__ == '__main__': + unittest.main() From 4a866b06b30aa1bec019218b37e801d5e643b41d Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Mon, 2 Oct 2023 21:41:50 +0000 Subject: [PATCH 373/521] Client Python update by KubeVirt Prow build 1708951377482354688 --- README.md | 3 +- docs/V1Devices.md | 1 + docs/V1DisableSerialConsoleLog.md | 9 ++ docs/V1VirtualMachineOptions.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_devices.py | 30 +++++- .../models/v1_disable_serial_console_log.py | 99 +++++++++++++++++++ kubevirt/models/v1_virtual_machine_options.py | 34 ++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_disable_serial_console_log.py | 44 +++++++++ 16 files changed, 226 insertions(+), 10 deletions(-) create mode 100644 docs/V1DisableSerialConsoleLog.md create mode 100644 kubevirt/models/v1_disable_serial_console_log.py create mode 100644 test/test_v1_disable_serial_console_log.py diff --git a/README.md b/README.md index d7278d85..a50df1df 100644 --- a/README.md +++ b/README.md @@ -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.1.0-alpha.0-122-g2c8b69749 +- Package version: v1.1.0-alpha.0-137-gfc55dbadf - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -427,6 +427,7 @@ Class | Method | HTTP request | Description - [V1DeveloperConfiguration](docs/V1DeveloperConfiguration.md) - [V1Devices](docs/V1Devices.md) - [V1DisableFreePageReporting](docs/V1DisableFreePageReporting.md) + - [V1DisableSerialConsoleLog](docs/V1DisableSerialConsoleLog.md) - [V1Disk](docs/V1Disk.md) - [V1DiskTarget](docs/V1DiskTarget.md) - [V1DiskVerification](docs/V1DiskVerification.md) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index 142aa356..4f8af3ba 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -19,6 +19,7 @@ Name | Type | Description | Notes **host_devices** | [**list[V1HostDevice]**](V1HostDevice.md) | Whether to attach a host device to the vmi. | [optional] **inputs** | [**list[V1Input]**](V1Input.md) | Inputs describe input devices | [optional] **interfaces** | [**list[V1Interface]**](V1Interface.md) | Interfaces describe network interfaces which are added to the vmi. | [optional] +**log_serial_console** | **bool** | Whether to log the auto-attached default serial console or not. Serial console logs will be collect to a file and then streamed from a named `guest-console-log`. Not relevant if autoattachSerialConsole is disabled. Defaults to cluster wide setting on VirtualMachineOptions. | [optional] **network_interface_multiqueue** | **bool** | If specified, virtual network interfaces configured with a virtio bus will also enable the vhost multiqueue feature for network devices. The number of queues created depends on additional factors of the VirtualMachineInstance, like the number of guest CPUs. | [optional] **rng** | [**V1Rng**](V1Rng.md) | Whether to have random number generator from host | [optional] **sound** | [**V1SoundDevice**](V1SoundDevice.md) | Whether to emulate a sound device. | [optional] diff --git a/docs/V1DisableSerialConsoleLog.md b/docs/V1DisableSerialConsoleLog.md new file mode 100644 index 00000000..55de02f9 --- /dev/null +++ b/docs/V1DisableSerialConsoleLog.md @@ -0,0 +1,9 @@ +# V1DisableSerialConsoleLog + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineOptions.md b/docs/V1VirtualMachineOptions.md index a26256ac..c6d0347b 100644 --- a/docs/V1VirtualMachineOptions.md +++ b/docs/V1VirtualMachineOptions.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **disable_free_page_reporting** | [**V1DisableFreePageReporting**](V1DisableFreePageReporting.md) | DisableFreePageReporting disable the free page reporting of memory balloon device https://libvirt.org/formatdomain.html#memory-balloon-device. This will have effect only if AutoattachMemBalloon is not false and the vmi is not requesting any high performance feature (dedicatedCPU/realtime/hugePages), in which free page reporting is always disabled. | [optional] +**disable_serial_console_log** | [**V1DisableSerialConsoleLog**](V1DisableSerialConsoleLog.md) | DisableSerialConsoleLog disables logging the auto-attached default serial console. If not set, serial console logs will be written to a file and then streamed from a container named `guest-console-log`. The value can be individually overridden for each VM, not relevant if AutoattachSerialConsole is disabled. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 82ad86d6..399d38eb 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.1.0-alpha.0-122-g2c8b69749" + release_note="Auto-generated client v1.1.0-alpha.0-137-gfc55dbadf" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 72416649..0963c9d8 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -291,6 +291,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_disable_free_page_reporting.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_disable_free_page_reporting.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DisableFreePageReporting.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_disable_serial_console_log.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_disable_serial_console_log.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DisableSerialConsoleLog.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_disk.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_disk.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Disk.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 737b7eb3..672c8bad 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -104,6 +104,7 @@ from .models.v1_developer_configuration import V1DeveloperConfiguration from .models.v1_devices import V1Devices from .models.v1_disable_free_page_reporting import V1DisableFreePageReporting +from .models.v1_disable_serial_console_log import V1DisableSerialConsoleLog from .models.v1_disk import V1Disk from .models.v1_disk_target import V1DiskTarget from .models.v1_disk_verification import V1DiskVerification diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index ef3b4d08..2391d165 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.1.0-alpha.0-122-g2c8b69749/python' + self.user_agent = 'Swagger-Codegen/v1.1.0-alpha.0-137-gfc55dbadf/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index f8b52f94..166e89ef 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.1.0-alpha.0-122-g2c8b69749".\ + "SDK Package Version: v1.1.0-alpha.0-137-gfc55dbadf".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 3f5f8c0e..52903339 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -104,6 +104,7 @@ from .v1_developer_configuration import V1DeveloperConfiguration from .v1_devices import V1Devices from .v1_disable_free_page_reporting import V1DisableFreePageReporting +from .v1_disable_serial_console_log import V1DisableSerialConsoleLog from .v1_disk import V1Disk from .v1_disk_target import V1DiskTarget from .v1_disk_verification import V1DiskVerification diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index 6f85891a..6e335e5b 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -47,6 +47,7 @@ class V1Devices(object): 'host_devices': 'list[V1HostDevice]', 'inputs': 'list[V1Input]', 'interfaces': 'list[V1Interface]', + 'log_serial_console': 'bool', 'network_interface_multiqueue': 'bool', 'rng': 'V1Rng', 'sound': 'V1SoundDevice', @@ -72,6 +73,7 @@ class V1Devices(object): 'host_devices': 'hostDevices', 'inputs': 'inputs', 'interfaces': 'interfaces', + 'log_serial_console': 'logSerialConsole', 'network_interface_multiqueue': 'networkInterfaceMultiqueue', 'rng': 'rng', 'sound': 'sound', @@ -80,7 +82,7 @@ class V1Devices(object): 'watchdog': 'watchdog' } - def __init__(self, autoattach_graphics_device=None, autoattach_input_device=None, autoattach_mem_balloon=None, autoattach_pod_interface=None, autoattach_serial_console=None, autoattach_vsock=None, block_multi_queue=None, client_passthrough=None, disable_hotplug=None, disks=None, downward_metrics=None, filesystems=None, gpus=None, host_devices=None, inputs=None, interfaces=None, network_interface_multiqueue=None, rng=None, sound=None, tpm=None, use_virtio_transitional=None, watchdog=None): + def __init__(self, autoattach_graphics_device=None, autoattach_input_device=None, autoattach_mem_balloon=None, autoattach_pod_interface=None, autoattach_serial_console=None, autoattach_vsock=None, block_multi_queue=None, client_passthrough=None, disable_hotplug=None, disks=None, downward_metrics=None, filesystems=None, gpus=None, host_devices=None, inputs=None, interfaces=None, log_serial_console=None, network_interface_multiqueue=None, rng=None, sound=None, tpm=None, use_virtio_transitional=None, watchdog=None): """ V1Devices - a model defined in Swagger """ @@ -101,6 +103,7 @@ def __init__(self, autoattach_graphics_device=None, autoattach_input_device=None self._host_devices = None self._inputs = None self._interfaces = None + self._log_serial_console = None self._network_interface_multiqueue = None self._rng = None self._sound = None @@ -140,6 +143,8 @@ def __init__(self, autoattach_graphics_device=None, autoattach_input_device=None self.inputs = inputs if interfaces is not None: self.interfaces = interfaces + if log_serial_console is not None: + self.log_serial_console = log_serial_console if network_interface_multiqueue is not None: self.network_interface_multiqueue = network_interface_multiqueue if rng is not None: @@ -521,6 +526,29 @@ def interfaces(self, interfaces): self._interfaces = interfaces + @property + def log_serial_console(self): + """ + Gets the log_serial_console of this V1Devices. + Whether to log the auto-attached default serial console or not. Serial console logs will be collect to a file and then streamed from a named `guest-console-log`. Not relevant if autoattachSerialConsole is disabled. Defaults to cluster wide setting on VirtualMachineOptions. + + :return: The log_serial_console of this V1Devices. + :rtype: bool + """ + return self._log_serial_console + + @log_serial_console.setter + def log_serial_console(self, log_serial_console): + """ + Sets the log_serial_console of this V1Devices. + Whether to log the auto-attached default serial console or not. Serial console logs will be collect to a file and then streamed from a named `guest-console-log`. Not relevant if autoattachSerialConsole is disabled. Defaults to cluster wide setting on VirtualMachineOptions. + + :param log_serial_console: The log_serial_console of this V1Devices. + :type: bool + """ + + self._log_serial_console = log_serial_console + @property def network_interface_multiqueue(self): """ diff --git a/kubevirt/models/v1_disable_serial_console_log.py b/kubevirt/models/v1_disable_serial_console_log.py new file mode 100644 index 00000000..a8d44896 --- /dev/null +++ b/kubevirt/models/v1_disable_serial_console_log.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DisableSerialConsoleLog(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1DisableSerialConsoleLog - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1DisableSerialConsoleLog): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_options.py b/kubevirt/models/v1_virtual_machine_options.py index e73028cc..2bf8a2e5 100644 --- a/kubevirt/models/v1_virtual_machine_options.py +++ b/kubevirt/models/v1_virtual_machine_options.py @@ -31,22 +31,27 @@ class V1VirtualMachineOptions(object): and the value is json key in definition. """ swagger_types = { - 'disable_free_page_reporting': 'V1DisableFreePageReporting' + 'disable_free_page_reporting': 'V1DisableFreePageReporting', + 'disable_serial_console_log': 'V1DisableSerialConsoleLog' } attribute_map = { - 'disable_free_page_reporting': 'disableFreePageReporting' + 'disable_free_page_reporting': 'disableFreePageReporting', + 'disable_serial_console_log': 'disableSerialConsoleLog' } - def __init__(self, disable_free_page_reporting=None): + def __init__(self, disable_free_page_reporting=None, disable_serial_console_log=None): """ V1VirtualMachineOptions - a model defined in Swagger """ self._disable_free_page_reporting = None + self._disable_serial_console_log = None if disable_free_page_reporting is not None: self.disable_free_page_reporting = disable_free_page_reporting + if disable_serial_console_log is not None: + self.disable_serial_console_log = disable_serial_console_log @property def disable_free_page_reporting(self): @@ -71,6 +76,29 @@ def disable_free_page_reporting(self, disable_free_page_reporting): self._disable_free_page_reporting = disable_free_page_reporting + @property + def disable_serial_console_log(self): + """ + Gets the disable_serial_console_log of this V1VirtualMachineOptions. + DisableSerialConsoleLog disables logging the auto-attached default serial console. If not set, serial console logs will be written to a file and then streamed from a container named `guest-console-log`. The value can be individually overridden for each VM, not relevant if AutoattachSerialConsole is disabled. + + :return: The disable_serial_console_log of this V1VirtualMachineOptions. + :rtype: V1DisableSerialConsoleLog + """ + return self._disable_serial_console_log + + @disable_serial_console_log.setter + def disable_serial_console_log(self, disable_serial_console_log): + """ + Sets the disable_serial_console_log of this V1VirtualMachineOptions. + DisableSerialConsoleLog disables logging the auto-attached default serial console. If not set, serial console logs will be written to a file and then streamed from a container named `guest-console-log`. The value can be individually overridden for each VM, not relevant if AutoattachSerialConsole is disabled. + + :param disable_serial_console_log: The disable_serial_console_log of this V1VirtualMachineOptions. + :type: V1DisableSerialConsoleLog + """ + + self._disable_serial_console_log = disable_serial_console_log + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 05df50ab..ac9945f7 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.1.0-alpha.0-122-g2c8b69749" +VERSION = "v1.1.0-alpha.0-137-gfc55dbadf" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b50ea8d3..54700f8d 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.1.0-alpha.0-122-g2c8b69749" +"packageVersion": "v1.1.0-alpha.0-137-gfc55dbadf" } diff --git a/test/test_v1_disable_serial_console_log.py b/test/test_v1_disable_serial_console_log.py new file mode 100644 index 00000000..687fd3ca --- /dev/null +++ b/test/test_v1_disable_serial_console_log.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_disable_serial_console_log import V1DisableSerialConsoleLog + + +class TestV1DisableSerialConsoleLog(unittest.TestCase): + """ V1DisableSerialConsoleLog unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DisableSerialConsoleLog(self): + """ + Test V1DisableSerialConsoleLog + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_disable_serial_console_log.V1DisableSerialConsoleLog() + pass + + +if __name__ == '__main__': + unittest.main() From 9af9308e81f3eddbdc2bdb04f11263b86fa497d2 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 4 Oct 2023 18:51:57 +0000 Subject: [PATCH 374/521] Client Python update by KubeVirt Prow build 1709633868857872384 --- README.md | 2 +- docs/V1alpha1VirtualMachineCloneSpec.md | 8 ++++---- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1alpha1_virtual_machine_clone_spec.py | 10 ++++++++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 18 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index a50df1df..206492b4 100644 --- a/README.md +++ b/README.md @@ -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.1.0-alpha.0-137-gfc55dbadf +- Package version: v1.1.0-alpha.0-155-g9c4f505e0 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1alpha1VirtualMachineCloneSpec.md b/docs/V1alpha1VirtualMachineCloneSpec.md index f85a9429..2265b99d 100644 --- a/docs/V1alpha1VirtualMachineCloneSpec.md +++ b/docs/V1alpha1VirtualMachineCloneSpec.md @@ -3,12 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotation_filters** | **list[str]** | | [optional] -**label_filters** | **list[str]** | | [optional] +**annotation_filters** | **list[str]** | Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. | [optional] +**label_filters** | **list[str]** | Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. | [optional] **new_mac_addresses** | **dict(str, str)** | NewMacAddresses manually sets that target interfaces' mac addresses. The key is the interface name and the value is the new mac address. If this field is not specified, a new MAC address will be generated automatically, as for any interface that is not included in this map. | [optional] **new_sm_bios_serial** | **str** | NewSMBiosSerial manually sets that target's SMbios serial. If this field is not specified, a new serial will be generated automatically. | [optional] -**source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | | -**target** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | If the target is not provided, a random name would be generated for the target. The target's name can be viewed by inspecting status \"TargetName\" field below. | [optional] +**source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Source is the object that would be cloned. Currently supported source types are: VirtualMachine of kubevirt.io API group, VirtualMachineSnapshot of snapshot.kubevirt.io API group | +**target** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Target is the outcome of the cloning process. Currently supported source types are: - VirtualMachine of kubevirt.io API group - Empty (nil). If the target is not provided, the target type would default to VirtualMachine and a random name would be generated for the target. The target's name can be viewed by inspecting status \"TargetName\" field below. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 399d38eb..c7abb4d5 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.1.0-alpha.0-137-gfc55dbadf" + release_note="Auto-generated client v1.1.0-alpha.0-155-g9c4f505e0" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 2391d165..b90f040d 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.1.0-alpha.0-137-gfc55dbadf/python' + self.user_agent = 'Swagger-Codegen/v1.1.0-alpha.0-155-g9c4f505e0/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 166e89ef..1c7324c2 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.1.0-alpha.0-137-gfc55dbadf".\ + "SDK Package Version: v1.1.0-alpha.0-155-g9c4f505e0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1alpha1_virtual_machine_clone_spec.py b/kubevirt/models/v1alpha1_virtual_machine_clone_spec.py index 55e2107b..e32b61e8 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_clone_spec.py +++ b/kubevirt/models/v1alpha1_virtual_machine_clone_spec.py @@ -76,6 +76,7 @@ def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresse def annotation_filters(self): """ Gets the annotation_filters of this V1alpha1VirtualMachineCloneSpec. + Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. :return: The annotation_filters of this V1alpha1VirtualMachineCloneSpec. :rtype: list[str] @@ -86,6 +87,7 @@ def annotation_filters(self): def annotation_filters(self, annotation_filters): """ Sets the annotation_filters of this V1alpha1VirtualMachineCloneSpec. + Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. :param annotation_filters: The annotation_filters of this V1alpha1VirtualMachineCloneSpec. :type: list[str] @@ -97,6 +99,7 @@ def annotation_filters(self, annotation_filters): def label_filters(self): """ Gets the label_filters of this V1alpha1VirtualMachineCloneSpec. + Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. :return: The label_filters of this V1alpha1VirtualMachineCloneSpec. :rtype: list[str] @@ -107,6 +110,7 @@ def label_filters(self): def label_filters(self, label_filters): """ Sets the label_filters of this V1alpha1VirtualMachineCloneSpec. + Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. :param label_filters: The label_filters of this V1alpha1VirtualMachineCloneSpec. :type: list[str] @@ -164,6 +168,7 @@ def new_sm_bios_serial(self, new_sm_bios_serial): def source(self): """ Gets the source of this V1alpha1VirtualMachineCloneSpec. + Source is the object that would be cloned. Currently supported source types are: VirtualMachine of kubevirt.io API group, VirtualMachineSnapshot of snapshot.kubevirt.io API group :return: The source of this V1alpha1VirtualMachineCloneSpec. :rtype: K8sIoApiCoreV1TypedLocalObjectReference @@ -174,6 +179,7 @@ def source(self): def source(self, source): """ Sets the source of this V1alpha1VirtualMachineCloneSpec. + Source is the object that would be cloned. Currently supported source types are: VirtualMachine of kubevirt.io API group, VirtualMachineSnapshot of snapshot.kubevirt.io API group :param source: The source of this V1alpha1VirtualMachineCloneSpec. :type: K8sIoApiCoreV1TypedLocalObjectReference @@ -187,7 +193,7 @@ def source(self, source): def target(self): """ Gets the target of this V1alpha1VirtualMachineCloneSpec. - If the target is not provided, a random name would be generated for the target. The target's name can be viewed by inspecting status \"TargetName\" field below. + Target is the outcome of the cloning process. Currently supported source types are: - VirtualMachine of kubevirt.io API group - Empty (nil). If the target is not provided, the target type would default to VirtualMachine and a random name would be generated for the target. The target's name can be viewed by inspecting status \"TargetName\" field below. :return: The target of this V1alpha1VirtualMachineCloneSpec. :rtype: K8sIoApiCoreV1TypedLocalObjectReference @@ -198,7 +204,7 @@ def target(self): def target(self, target): """ Sets the target of this V1alpha1VirtualMachineCloneSpec. - If the target is not provided, a random name would be generated for the target. The target's name can be viewed by inspecting status \"TargetName\" field below. + Target is the outcome of the cloning process. Currently supported source types are: - VirtualMachine of kubevirt.io API group - Empty (nil). If the target is not provided, the target type would default to VirtualMachine and a random name would be generated for the target. The target's name can be viewed by inspecting status \"TargetName\" field below. :param target: The target of this V1alpha1VirtualMachineCloneSpec. :type: K8sIoApiCoreV1TypedLocalObjectReference diff --git a/setup.py b/setup.py index ac9945f7..f325f4f6 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.1.0-alpha.0-137-gfc55dbadf" +VERSION = "v1.1.0-alpha.0-155-g9c4f505e0" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 54700f8d..1943002d 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.1.0-alpha.0-137-gfc55dbadf" +"packageVersion": "v1.1.0-alpha.0-155-g9c4f505e0" } From 70677ca30bd2add326a4266066936d69f64e9a8e Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 5 Oct 2023 16:43:15 +0000 Subject: [PATCH 375/521] Client Python update by KubeVirt Prow build 1709964026273861632 --- README.md | 2 +- docs/V1InstancetypeMatcher.md | 1 + docs/V1PreferenceMatcher.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_instancetype_matcher.py | 30 +++++++++++++++++++++- kubevirt/models/v1_preference_matcher.py | 30 +++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 66 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 206492b4..9bb6f932 100644 --- a/README.md +++ b/README.md @@ -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.1.0-alpha.0-155-g9c4f505e0 +- Package version: v1.1.0-alpha.0-162-g59d9d7755 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1InstancetypeMatcher.md b/docs/V1InstancetypeMatcher.md index 935e58cc..ece2503b 100644 --- a/docs/V1InstancetypeMatcher.md +++ b/docs/V1InstancetypeMatcher.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **infer_from_volume** | **str** | InferFromVolume lists the name of a volume that should be used to infer or discover the instancetype to be used through known annotations on the underlying resource. Once applied to the InstancetypeMatcher this field is removed. | [optional] +**infer_from_volume_failure_policy** | **str** | InferFromVolumeFailurePolicy controls what should happen on failure when inferring the instancetype. Allowed values are: \"RejectInferFromVolumeFailure\" and \"IgnoreInferFromVolumeFailure\". If not specified, \"RejectInferFromVolumeFailure\" is used by default. | [optional] **kind** | **str** | Kind specifies which instancetype resource is referenced. Allowed values are: \"VirtualMachineInstancetype\" and \"VirtualMachineClusterInstancetype\". If not specified, \"VirtualMachineClusterInstancetype\" is used by default. | [optional] **name** | **str** | Name is the name of the VirtualMachineInstancetype or VirtualMachineClusterInstancetype | [optional] **revision_name** | **str** | RevisionName specifies a ControllerRevision containing a specific copy of the VirtualMachineInstancetype or VirtualMachineClusterInstancetype to be used. This is initially captured the first time the instancetype is applied to the VirtualMachineInstance. | [optional] diff --git a/docs/V1PreferenceMatcher.md b/docs/V1PreferenceMatcher.md index 55dbd914..b329ce2a 100644 --- a/docs/V1PreferenceMatcher.md +++ b/docs/V1PreferenceMatcher.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **infer_from_volume** | **str** | InferFromVolume lists the name of a volume that should be used to infer or discover the preference to be used through known annotations on the underlying resource. Once applied to the PreferenceMatcher this field is removed. | [optional] +**infer_from_volume_failure_policy** | **str** | InferFromVolumeFailurePolicy controls what should happen on failure when preference the instancetype. Allowed values are: \"RejectInferFromVolumeFailure\" and \"IgnoreInferFromVolumeFailure\". If not specified, \"RejectInferFromVolumeFailure\" is used by default. | [optional] **kind** | **str** | Kind specifies which preference resource is referenced. Allowed values are: \"VirtualMachinePreference\" and \"VirtualMachineClusterPreference\". If not specified, \"VirtualMachineClusterPreference\" is used by default. | [optional] **name** | **str** | Name is the name of the VirtualMachinePreference or VirtualMachineClusterPreference | [optional] **revision_name** | **str** | RevisionName specifies a ControllerRevision containing a specific copy of the VirtualMachinePreference or VirtualMachineClusterPreference to be used. This is initially captured the first time the instancetype is applied to the VirtualMachineInstance. | [optional] diff --git a/git_push.sh b/git_push.sh index c7abb4d5..b694b7be 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.1.0-alpha.0-155-g9c4f505e0" + release_note="Auto-generated client v1.1.0-alpha.0-162-g59d9d7755" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index b90f040d..8c8ebb04 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.1.0-alpha.0-155-g9c4f505e0/python' + self.user_agent = 'Swagger-Codegen/v1.1.0-alpha.0-162-g59d9d7755/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 1c7324c2..2418622b 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.1.0-alpha.0-155-g9c4f505e0".\ + "SDK Package Version: v1.1.0-alpha.0-162-g59d9d7755".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_instancetype_matcher.py b/kubevirt/models/v1_instancetype_matcher.py index 49413a8d..beecbd42 100644 --- a/kubevirt/models/v1_instancetype_matcher.py +++ b/kubevirt/models/v1_instancetype_matcher.py @@ -32,6 +32,7 @@ class V1InstancetypeMatcher(object): """ swagger_types = { 'infer_from_volume': 'str', + 'infer_from_volume_failure_policy': 'str', 'kind': 'str', 'name': 'str', 'revision_name': 'str' @@ -39,23 +40,27 @@ class V1InstancetypeMatcher(object): attribute_map = { 'infer_from_volume': 'inferFromVolume', + 'infer_from_volume_failure_policy': 'inferFromVolumeFailurePolicy', 'kind': 'kind', 'name': 'name', 'revision_name': 'revisionName' } - def __init__(self, infer_from_volume=None, kind=None, name=None, revision_name=None): + def __init__(self, infer_from_volume=None, infer_from_volume_failure_policy=None, kind=None, name=None, revision_name=None): """ V1InstancetypeMatcher - a model defined in Swagger """ self._infer_from_volume = None + self._infer_from_volume_failure_policy = None self._kind = None self._name = None self._revision_name = None if infer_from_volume is not None: self.infer_from_volume = infer_from_volume + if infer_from_volume_failure_policy is not None: + self.infer_from_volume_failure_policy = infer_from_volume_failure_policy if kind is not None: self.kind = kind if name is not None: @@ -86,6 +91,29 @@ def infer_from_volume(self, infer_from_volume): self._infer_from_volume = infer_from_volume + @property + def infer_from_volume_failure_policy(self): + """ + Gets the infer_from_volume_failure_policy of this V1InstancetypeMatcher. + InferFromVolumeFailurePolicy controls what should happen on failure when inferring the instancetype. Allowed values are: \"RejectInferFromVolumeFailure\" and \"IgnoreInferFromVolumeFailure\". If not specified, \"RejectInferFromVolumeFailure\" is used by default. + + :return: The infer_from_volume_failure_policy of this V1InstancetypeMatcher. + :rtype: str + """ + return self._infer_from_volume_failure_policy + + @infer_from_volume_failure_policy.setter + def infer_from_volume_failure_policy(self, infer_from_volume_failure_policy): + """ + Sets the infer_from_volume_failure_policy of this V1InstancetypeMatcher. + InferFromVolumeFailurePolicy controls what should happen on failure when inferring the instancetype. Allowed values are: \"RejectInferFromVolumeFailure\" and \"IgnoreInferFromVolumeFailure\". If not specified, \"RejectInferFromVolumeFailure\" is used by default. + + :param infer_from_volume_failure_policy: The infer_from_volume_failure_policy of this V1InstancetypeMatcher. + :type: str + """ + + self._infer_from_volume_failure_policy = infer_from_volume_failure_policy + @property def kind(self): """ diff --git a/kubevirt/models/v1_preference_matcher.py b/kubevirt/models/v1_preference_matcher.py index 4f527174..ba275947 100644 --- a/kubevirt/models/v1_preference_matcher.py +++ b/kubevirt/models/v1_preference_matcher.py @@ -32,6 +32,7 @@ class V1PreferenceMatcher(object): """ swagger_types = { 'infer_from_volume': 'str', + 'infer_from_volume_failure_policy': 'str', 'kind': 'str', 'name': 'str', 'revision_name': 'str' @@ -39,23 +40,27 @@ class V1PreferenceMatcher(object): attribute_map = { 'infer_from_volume': 'inferFromVolume', + 'infer_from_volume_failure_policy': 'inferFromVolumeFailurePolicy', 'kind': 'kind', 'name': 'name', 'revision_name': 'revisionName' } - def __init__(self, infer_from_volume=None, kind=None, name=None, revision_name=None): + def __init__(self, infer_from_volume=None, infer_from_volume_failure_policy=None, kind=None, name=None, revision_name=None): """ V1PreferenceMatcher - a model defined in Swagger """ self._infer_from_volume = None + self._infer_from_volume_failure_policy = None self._kind = None self._name = None self._revision_name = None if infer_from_volume is not None: self.infer_from_volume = infer_from_volume + if infer_from_volume_failure_policy is not None: + self.infer_from_volume_failure_policy = infer_from_volume_failure_policy if kind is not None: self.kind = kind if name is not None: @@ -86,6 +91,29 @@ def infer_from_volume(self, infer_from_volume): self._infer_from_volume = infer_from_volume + @property + def infer_from_volume_failure_policy(self): + """ + Gets the infer_from_volume_failure_policy of this V1PreferenceMatcher. + InferFromVolumeFailurePolicy controls what should happen on failure when preference the instancetype. Allowed values are: \"RejectInferFromVolumeFailure\" and \"IgnoreInferFromVolumeFailure\". If not specified, \"RejectInferFromVolumeFailure\" is used by default. + + :return: The infer_from_volume_failure_policy of this V1PreferenceMatcher. + :rtype: str + """ + return self._infer_from_volume_failure_policy + + @infer_from_volume_failure_policy.setter + def infer_from_volume_failure_policy(self, infer_from_volume_failure_policy): + """ + Sets the infer_from_volume_failure_policy of this V1PreferenceMatcher. + InferFromVolumeFailurePolicy controls what should happen on failure when preference the instancetype. Allowed values are: \"RejectInferFromVolumeFailure\" and \"IgnoreInferFromVolumeFailure\". If not specified, \"RejectInferFromVolumeFailure\" is used by default. + + :param infer_from_volume_failure_policy: The infer_from_volume_failure_policy of this V1PreferenceMatcher. + :type: str + """ + + self._infer_from_volume_failure_policy = infer_from_volume_failure_policy + @property def kind(self): """ diff --git a/setup.py b/setup.py index f325f4f6..6a4daeee 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.1.0-alpha.0-155-g9c4f505e0" +VERSION = "v1.1.0-alpha.0-162-g59d9d7755" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 1943002d..5faa5378 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.1.0-alpha.0-155-g9c4f505e0" +"packageVersion": "v1.1.0-alpha.0-162-g59d9d7755" } From 20bd3bf0fe9c0ca34149343eb7869a1e7e06ba8b Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 13 Oct 2023 05:00:31 +0000 Subject: [PATCH 376/521] Client Python update by KubeVirt Prow build 1712684920167469056 --- README.md | 2 +- docs/V1USBHostDevice.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_usb_host_device.py | 30 ++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 9bb6f932..46007794 100644 --- a/README.md +++ b/README.md @@ -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.1.0-alpha.0-162-g59d9d7755 +- Package version: v1.1.0-alpha.0-234-gaae33f643 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1USBHostDevice.md b/docs/V1USBHostDevice.md index 160bdc27..f507f34c 100644 --- a/docs/V1USBHostDevice.md +++ b/docs/V1USBHostDevice.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**external_resource_provider** | **bool** | If true, KubeVirt will leave the allocation and monitoring to an external device plugin | [optional] **resource_name** | **str** | Identifies the list of USB host devices. e.g: kubevirt.io/storage, kubevirt.io/bootable-usb, etc | [default to ''] **selectors** | [**list[V1USBSelector]**](V1USBSelector.md) | | [optional] diff --git a/git_push.sh b/git_push.sh index b694b7be..d4dafae4 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.1.0-alpha.0-162-g59d9d7755" + release_note="Auto-generated client v1.1.0-alpha.0-234-gaae33f643" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 8c8ebb04..c2544840 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.1.0-alpha.0-162-g59d9d7755/python' + self.user_agent = 'Swagger-Codegen/v1.1.0-alpha.0-234-gaae33f643/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 2418622b..1a2b1786 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.1.0-alpha.0-162-g59d9d7755".\ + "SDK Package Version: v1.1.0-alpha.0-234-gaae33f643".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_usb_host_device.py b/kubevirt/models/v1_usb_host_device.py index d3765fdf..0082af90 100644 --- a/kubevirt/models/v1_usb_host_device.py +++ b/kubevirt/models/v1_usb_host_device.py @@ -31,27 +31,55 @@ class V1USBHostDevice(object): and the value is json key in definition. """ swagger_types = { + 'external_resource_provider': 'bool', 'resource_name': 'str', 'selectors': 'list[V1USBSelector]' } attribute_map = { + 'external_resource_provider': 'externalResourceProvider', 'resource_name': 'resourceName', 'selectors': 'selectors' } - def __init__(self, resource_name='', selectors=None): + def __init__(self, external_resource_provider=None, resource_name='', selectors=None): """ V1USBHostDevice - a model defined in Swagger """ + self._external_resource_provider = None self._resource_name = None self._selectors = None + if external_resource_provider is not None: + self.external_resource_provider = external_resource_provider self.resource_name = resource_name if selectors is not None: self.selectors = selectors + @property + def external_resource_provider(self): + """ + Gets the external_resource_provider of this V1USBHostDevice. + If true, KubeVirt will leave the allocation and monitoring to an external device plugin + + :return: The external_resource_provider of this V1USBHostDevice. + :rtype: bool + """ + return self._external_resource_provider + + @external_resource_provider.setter + def external_resource_provider(self, external_resource_provider): + """ + Sets the external_resource_provider of this V1USBHostDevice. + If true, KubeVirt will leave the allocation and monitoring to an external device plugin + + :param external_resource_provider: The external_resource_provider of this V1USBHostDevice. + :type: bool + """ + + self._external_resource_provider = external_resource_provider + @property def resource_name(self): """ diff --git a/setup.py b/setup.py index 6a4daeee..00382089 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.1.0-alpha.0-162-g59d9d7755" +VERSION = "v1.1.0-alpha.0-234-gaae33f643" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 5faa5378..9c9aeccd 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.1.0-alpha.0-162-g59d9d7755" +"packageVersion": "v1.1.0-alpha.0-234-gaae33f643" } From 5262891cf25654cef6bf9c2b021888c92b628cb1 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Tue, 17 Oct 2023 20:30:32 +0000 Subject: [PATCH 377/521] Client Python update by KubeVirt Prow build 1714362942478094336 --- README.md | 2 +- docs/V1InterfaceBindingPlugin.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../models/v1_interface_binding_plugin.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 46007794..3a6c574b 100644 --- a/README.md +++ b/README.md @@ -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.1.0-alpha.0-234-gaae33f643 +- Package version: v1.1.0-alpha.0-259-ge056113ba - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1InterfaceBindingPlugin.md b/docs/V1InterfaceBindingPlugin.md index 8d6b2bfb..790bc268 100644 --- a/docs/V1InterfaceBindingPlugin.md +++ b/docs/V1InterfaceBindingPlugin.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**network_attachment_definition** | **str** | NetworkAttachmentDefinition references to a NetworkAttachmentDefinition CR object. Format: <name>, <namespace>/<name>. If namespace is not specified, VMI namespace is assumed. version: 1alphav1 | [optional] **sidecar_image** | **str** | SidecarImage references a container image that runs in the virt-launcher pod. The sidecar handles (libvirt) domain configuration and optional services. version: 1alphav1 | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index d4dafae4..b49a01b8 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.1.0-alpha.0-234-gaae33f643" + release_note="Auto-generated client v1.1.0-alpha.0-259-ge056113ba" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index c2544840..9f353907 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.1.0-alpha.0-234-gaae33f643/python' + self.user_agent = 'Swagger-Codegen/v1.1.0-alpha.0-259-ge056113ba/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 1a2b1786..9a3c4c61 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.1.0-alpha.0-234-gaae33f643".\ + "SDK Package Version: v1.1.0-alpha.0-259-ge056113ba".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_interface_binding_plugin.py b/kubevirt/models/v1_interface_binding_plugin.py index 669afaf7..39a79f47 100644 --- a/kubevirt/models/v1_interface_binding_plugin.py +++ b/kubevirt/models/v1_interface_binding_plugin.py @@ -31,23 +31,51 @@ class V1InterfaceBindingPlugin(object): and the value is json key in definition. """ swagger_types = { + 'network_attachment_definition': 'str', 'sidecar_image': 'str' } attribute_map = { + 'network_attachment_definition': 'networkAttachmentDefinition', 'sidecar_image': 'sidecarImage' } - def __init__(self, sidecar_image=None): + def __init__(self, network_attachment_definition=None, sidecar_image=None): """ V1InterfaceBindingPlugin - a model defined in Swagger """ + self._network_attachment_definition = None self._sidecar_image = None + if network_attachment_definition is not None: + self.network_attachment_definition = network_attachment_definition if sidecar_image is not None: self.sidecar_image = sidecar_image + @property + def network_attachment_definition(self): + """ + Gets the network_attachment_definition of this V1InterfaceBindingPlugin. + NetworkAttachmentDefinition references to a NetworkAttachmentDefinition CR object. Format: , /. If namespace is not specified, VMI namespace is assumed. version: 1alphav1 + + :return: The network_attachment_definition of this V1InterfaceBindingPlugin. + :rtype: str + """ + return self._network_attachment_definition + + @network_attachment_definition.setter + def network_attachment_definition(self, network_attachment_definition): + """ + Sets the network_attachment_definition of this V1InterfaceBindingPlugin. + NetworkAttachmentDefinition references to a NetworkAttachmentDefinition CR object. Format: , /. If namespace is not specified, VMI namespace is assumed. version: 1alphav1 + + :param network_attachment_definition: The network_attachment_definition of this V1InterfaceBindingPlugin. + :type: str + """ + + self._network_attachment_definition = network_attachment_definition + @property def sidecar_image(self): """ diff --git a/setup.py b/setup.py index 00382089..f792a254 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.1.0-alpha.0-234-gaae33f643" +VERSION = "v1.1.0-alpha.0-259-ge056113ba" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 9c9aeccd..39dd288f 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.1.0-alpha.0-234-gaae33f643" +"packageVersion": "v1.1.0-alpha.0-259-ge056113ba" } From 19695b39d0dc8d43157408750454cbce6d6ff8ad Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 22 Nov 2023 09:32:43 +0000 Subject: [PATCH 378/521] Client Python update by KubeVirt Prow build 1727249899008823296 --- README.md | 3 +- docs/V1alpha1VirtualMachineCloneSpec.md | 1 + ...lpha1VirtualMachineCloneTemplateFilters.md | 11 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + .../v1alpha1_virtual_machine_clone_spec.py | 34 +++- ..._virtual_machine_clone_template_filters.py | 153 ++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- ..._virtual_machine_clone_template_filters.py | 44 +++++ 14 files changed, 252 insertions(+), 9 deletions(-) create mode 100644 docs/V1alpha1VirtualMachineCloneTemplateFilters.md create mode 100644 kubevirt/models/v1alpha1_virtual_machine_clone_template_filters.py create mode 100644 test/test_v1alpha1_virtual_machine_clone_template_filters.py diff --git a/README.md b/README.md index 3a6c574b..af280205 100644 --- a/README.md +++ b/README.md @@ -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.1.0-alpha.0-259-ge056113ba +- Package version: v1.1.0-rc.0-209-g041d8b04a - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -625,6 +625,7 @@ Class | Method | HTTP request | Description - [V1alpha1VirtualMachineCloneList](docs/V1alpha1VirtualMachineCloneList.md) - [V1alpha1VirtualMachineCloneSpec](docs/V1alpha1VirtualMachineCloneSpec.md) - [V1alpha1VirtualMachineCloneStatus](docs/V1alpha1VirtualMachineCloneStatus.md) + - [V1alpha1VirtualMachineCloneTemplateFilters](docs/V1alpha1VirtualMachineCloneTemplateFilters.md) - [V1alpha1VirtualMachineExport](docs/V1alpha1VirtualMachineExport.md) - [V1alpha1VirtualMachineExportLink](docs/V1alpha1VirtualMachineExportLink.md) - [V1alpha1VirtualMachineExportLinks](docs/V1alpha1VirtualMachineExportLinks.md) diff --git a/docs/V1alpha1VirtualMachineCloneSpec.md b/docs/V1alpha1VirtualMachineCloneSpec.md index 2265b99d..edef3cef 100644 --- a/docs/V1alpha1VirtualMachineCloneSpec.md +++ b/docs/V1alpha1VirtualMachineCloneSpec.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **new_sm_bios_serial** | **str** | NewSMBiosSerial manually sets that target's SMbios serial. If this field is not specified, a new serial will be generated automatically. | [optional] **source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Source is the object that would be cloned. Currently supported source types are: VirtualMachine of kubevirt.io API group, VirtualMachineSnapshot of snapshot.kubevirt.io API group | **target** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Target is the outcome of the cloning process. Currently supported source types are: - VirtualMachine of kubevirt.io API group - Empty (nil). If the target is not provided, the target type would default to VirtualMachine and a random name would be generated for the target. The target's name can be viewed by inspecting status \"TargetName\" field below. | [optional] +**template** | [**V1alpha1VirtualMachineCloneTemplateFilters**](V1alpha1VirtualMachineCloneTemplateFilters.md) | For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineCloneTemplateFilters.md b/docs/V1alpha1VirtualMachineCloneTemplateFilters.md new file mode 100644 index 00000000..490cf781 --- /dev/null +++ b/docs/V1alpha1VirtualMachineCloneTemplateFilters.md @@ -0,0 +1,11 @@ +# V1alpha1VirtualMachineCloneTemplateFilters + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**annotation_filters** | **list[str]** | Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. | [optional] +**label_filters** | **list[str]** | Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index b49a01b8..5cbf97de 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.1.0-alpha.0-259-ge056113ba" + release_note="Auto-generated client v1.1.0-rc.0-209-g041d8b04a" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 0963c9d8..f25d8478 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -885,6 +885,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/v1alpha1_virtual_machine_clone_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_clone_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineCloneStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_clone_template_filters.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_clone_template_filters.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineCloneTemplateFilters.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_export.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_export.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineExport.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 672c8bad..4ecd995b 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -302,6 +302,7 @@ from .models.v1alpha1_virtual_machine_clone_list import V1alpha1VirtualMachineCloneList from .models.v1alpha1_virtual_machine_clone_spec import V1alpha1VirtualMachineCloneSpec from .models.v1alpha1_virtual_machine_clone_status import V1alpha1VirtualMachineCloneStatus +from .models.v1alpha1_virtual_machine_clone_template_filters import V1alpha1VirtualMachineCloneTemplateFilters from .models.v1alpha1_virtual_machine_export import V1alpha1VirtualMachineExport from .models.v1alpha1_virtual_machine_export_link import V1alpha1VirtualMachineExportLink from .models.v1alpha1_virtual_machine_export_links import V1alpha1VirtualMachineExportLinks diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 9f353907..a6fe4f78 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.1.0-alpha.0-259-ge056113ba/python' + self.user_agent = 'Swagger-Codegen/v1.1.0-rc.0-209-g041d8b04a/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 9a3c4c61..34336913 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.1.0-alpha.0-259-ge056113ba".\ + "SDK Package Version: v1.1.0-rc.0-209-g041d8b04a".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 52903339..f7742d9b 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -302,6 +302,7 @@ from .v1alpha1_virtual_machine_clone_list import V1alpha1VirtualMachineCloneList from .v1alpha1_virtual_machine_clone_spec import V1alpha1VirtualMachineCloneSpec from .v1alpha1_virtual_machine_clone_status import V1alpha1VirtualMachineCloneStatus +from .v1alpha1_virtual_machine_clone_template_filters import V1alpha1VirtualMachineCloneTemplateFilters from .v1alpha1_virtual_machine_export import V1alpha1VirtualMachineExport from .v1alpha1_virtual_machine_export_link import V1alpha1VirtualMachineExportLink from .v1alpha1_virtual_machine_export_links import V1alpha1VirtualMachineExportLinks diff --git a/kubevirt/models/v1alpha1_virtual_machine_clone_spec.py b/kubevirt/models/v1alpha1_virtual_machine_clone_spec.py index e32b61e8..c0dbfc9d 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_clone_spec.py +++ b/kubevirt/models/v1alpha1_virtual_machine_clone_spec.py @@ -36,7 +36,8 @@ class V1alpha1VirtualMachineCloneSpec(object): 'new_mac_addresses': 'dict(str, str)', 'new_sm_bios_serial': 'str', 'source': 'K8sIoApiCoreV1TypedLocalObjectReference', - 'target': 'K8sIoApiCoreV1TypedLocalObjectReference' + 'target': 'K8sIoApiCoreV1TypedLocalObjectReference', + 'template': 'V1alpha1VirtualMachineCloneTemplateFilters' } attribute_map = { @@ -45,10 +46,11 @@ class V1alpha1VirtualMachineCloneSpec(object): 'new_mac_addresses': 'newMacAddresses', 'new_sm_bios_serial': 'newSMBiosSerial', 'source': 'source', - 'target': 'target' + 'target': 'target', + 'template': 'template' } - def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresses=None, new_sm_bios_serial=None, source=None, target=None): + def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresses=None, new_sm_bios_serial=None, source=None, target=None, template=None): """ V1alpha1VirtualMachineCloneSpec - a model defined in Swagger """ @@ -59,6 +61,7 @@ def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresse self._new_sm_bios_serial = None self._source = None self._target = None + self._template = None if annotation_filters is not None: self.annotation_filters = annotation_filters @@ -71,6 +74,8 @@ def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresse self.source = source if target is not None: self.target = target + if template is not None: + self.template = template @property def annotation_filters(self): @@ -212,6 +217,29 @@ def target(self, target): self._target = target + @property + def template(self): + """ + Gets the template of this V1alpha1VirtualMachineCloneSpec. + For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. + + :return: The template of this V1alpha1VirtualMachineCloneSpec. + :rtype: V1alpha1VirtualMachineCloneTemplateFilters + """ + return self._template + + @template.setter + def template(self, template): + """ + Sets the template of this V1alpha1VirtualMachineCloneSpec. + For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. + + :param template: The template of this V1alpha1VirtualMachineCloneSpec. + :type: V1alpha1VirtualMachineCloneTemplateFilters + """ + + self._template = template + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1alpha1_virtual_machine_clone_template_filters.py b/kubevirt/models/v1alpha1_virtual_machine_clone_template_filters.py new file mode 100644 index 00000000..3987c629 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_clone_template_filters.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineCloneTemplateFilters(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'annotation_filters': 'list[str]', + 'label_filters': 'list[str]' + } + + attribute_map = { + 'annotation_filters': 'annotationFilters', + 'label_filters': 'labelFilters' + } + + def __init__(self, annotation_filters=None, label_filters=None): + """ + V1alpha1VirtualMachineCloneTemplateFilters - a model defined in Swagger + """ + + self._annotation_filters = None + self._label_filters = None + + if annotation_filters is not None: + self.annotation_filters = annotation_filters + if label_filters is not None: + self.label_filters = label_filters + + @property + def annotation_filters(self): + """ + Gets the annotation_filters of this V1alpha1VirtualMachineCloneTemplateFilters. + Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. + + :return: The annotation_filters of this V1alpha1VirtualMachineCloneTemplateFilters. + :rtype: list[str] + """ + return self._annotation_filters + + @annotation_filters.setter + def annotation_filters(self, annotation_filters): + """ + Sets the annotation_filters of this V1alpha1VirtualMachineCloneTemplateFilters. + Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. + + :param annotation_filters: The annotation_filters of this V1alpha1VirtualMachineCloneTemplateFilters. + :type: list[str] + """ + + self._annotation_filters = annotation_filters + + @property + def label_filters(self): + """ + Gets the label_filters of this V1alpha1VirtualMachineCloneTemplateFilters. + Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. + + :return: The label_filters of this V1alpha1VirtualMachineCloneTemplateFilters. + :rtype: list[str] + """ + return self._label_filters + + @label_filters.setter + def label_filters(self, label_filters): + """ + Sets the label_filters of this V1alpha1VirtualMachineCloneTemplateFilters. + Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. + + :param label_filters: The label_filters of this V1alpha1VirtualMachineCloneTemplateFilters. + :type: list[str] + """ + + self._label_filters = label_filters + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineCloneTemplateFilters): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index f792a254..26bf000e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.1.0-alpha.0-259-ge056113ba" +VERSION = "v1.1.0-rc.0-209-g041d8b04a" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 39dd288f..5d5b6ccf 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.1.0-alpha.0-259-ge056113ba" +"packageVersion": "v1.1.0-rc.0-209-g041d8b04a" } diff --git a/test/test_v1alpha1_virtual_machine_clone_template_filters.py b/test/test_v1alpha1_virtual_machine_clone_template_filters.py new file mode 100644 index 00000000..53deb5d0 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_clone_template_filters.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_clone_template_filters import V1alpha1VirtualMachineCloneTemplateFilters + + +class TestV1alpha1VirtualMachineCloneTemplateFilters(unittest.TestCase): + """ V1alpha1VirtualMachineCloneTemplateFilters unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineCloneTemplateFilters(self): + """ + Test V1alpha1VirtualMachineCloneTemplateFilters + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_clone_template_filters.V1alpha1VirtualMachineCloneTemplateFilters() + pass + + +if __name__ == '__main__': + unittest.main() From adcfa1f2948900c15dcceed523fec5430de32c5d Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Sun, 26 Nov 2023 20:14:01 +0000 Subject: [PATCH 379/521] Client Python update by KubeVirt Prow build 1728858967884435456 --- README.md | 2 +- docs/V1InterfaceBindingPlugin.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../models/v1_interface_binding_plugin.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index af280205..e8d200b1 100644 --- a/README.md +++ b/README.md @@ -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.1.0-rc.0-209-g041d8b04a +- Package version: v1.1.0-rc.0-223-g397efb8b5 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1InterfaceBindingPlugin.md b/docs/V1InterfaceBindingPlugin.md index 790bc268..255e1b0e 100644 --- a/docs/V1InterfaceBindingPlugin.md +++ b/docs/V1InterfaceBindingPlugin.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**domain_attachment_type** | **str** | DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: \"tap\". The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1 | [optional] **network_attachment_definition** | **str** | NetworkAttachmentDefinition references to a NetworkAttachmentDefinition CR object. Format: <name>, <namespace>/<name>. If namespace is not specified, VMI namespace is assumed. version: 1alphav1 | [optional] **sidecar_image** | **str** | SidecarImage references a container image that runs in the virt-launcher pod. The sidecar handles (libvirt) domain configuration and optional services. version: 1alphav1 | [optional] diff --git a/git_push.sh b/git_push.sh index 5cbf97de..bbac572c 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.1.0-rc.0-209-g041d8b04a" + release_note="Auto-generated client v1.1.0-rc.0-223-g397efb8b5" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index a6fe4f78..124660de 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.1.0-rc.0-209-g041d8b04a/python' + self.user_agent = 'Swagger-Codegen/v1.1.0-rc.0-223-g397efb8b5/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 34336913..8b8391fb 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.1.0-rc.0-209-g041d8b04a".\ + "SDK Package Version: v1.1.0-rc.0-223-g397efb8b5".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_interface_binding_plugin.py b/kubevirt/models/v1_interface_binding_plugin.py index 39a79f47..a7eeb758 100644 --- a/kubevirt/models/v1_interface_binding_plugin.py +++ b/kubevirt/models/v1_interface_binding_plugin.py @@ -31,28 +31,56 @@ class V1InterfaceBindingPlugin(object): and the value is json key in definition. """ swagger_types = { + 'domain_attachment_type': 'str', 'network_attachment_definition': 'str', 'sidecar_image': 'str' } attribute_map = { + 'domain_attachment_type': 'domainAttachmentType', 'network_attachment_definition': 'networkAttachmentDefinition', 'sidecar_image': 'sidecarImage' } - def __init__(self, network_attachment_definition=None, sidecar_image=None): + def __init__(self, domain_attachment_type=None, network_attachment_definition=None, sidecar_image=None): """ V1InterfaceBindingPlugin - a model defined in Swagger """ + self._domain_attachment_type = None self._network_attachment_definition = None self._sidecar_image = None + if domain_attachment_type is not None: + self.domain_attachment_type = domain_attachment_type if network_attachment_definition is not None: self.network_attachment_definition = network_attachment_definition if sidecar_image is not None: self.sidecar_image = sidecar_image + @property + def domain_attachment_type(self): + """ + Gets the domain_attachment_type of this V1InterfaceBindingPlugin. + DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: \"tap\". The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1 + + :return: The domain_attachment_type of this V1InterfaceBindingPlugin. + :rtype: str + """ + return self._domain_attachment_type + + @domain_attachment_type.setter + def domain_attachment_type(self, domain_attachment_type): + """ + Sets the domain_attachment_type of this V1InterfaceBindingPlugin. + DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: \"tap\". The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1 + + :param domain_attachment_type: The domain_attachment_type of this V1InterfaceBindingPlugin. + :type: str + """ + + self._domain_attachment_type = domain_attachment_type + @property def network_attachment_definition(self): """ diff --git a/setup.py b/setup.py index 26bf000e..c47faa11 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.1.0-rc.0-209-g041d8b04a" +VERSION = "v1.1.0-rc.0-223-g397efb8b5" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 5d5b6ccf..5ade9ccd 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.1.0-rc.0-209-g041d8b04a" +"packageVersion": "v1.1.0-rc.0-223-g397efb8b5" } From 3b34b359c68fe3dcc973f59cf1286e6721f737d7 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Tue, 28 Nov 2023 23:20:19 +0000 Subject: [PATCH 380/521] Client Python update by KubeVirt Prow build 1729631573650706432 --- README.md | 374 ++++++++++---------- docs/DefaultApi.md | 496 ++++++++++++++------------- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 644 ++++++++++++++++++++++------------- kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 872 insertions(+), 652 deletions(-) diff --git a/README.md b/README.md index e8d200b1..e6f28365 100644 --- a/README.md +++ b/README.md @@ -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.1.0-rc.0-223-g397efb8b5 +- Package version: v1.1.0-rc.0-240-gbc3539a10 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -70,56 +70,56 @@ All URIs are relative to *https://localhost* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *DefaultApi* | [**create_migration_policy**](docs/DefaultApi.md#create_migration_policy) | **POST** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | -*DefaultApi* | [**create_namespaced_kube_virt**](docs/DefaultApi.md#create_namespaced_kube_virt) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | -*DefaultApi* | [**create_namespaced_virtual_machine**](docs/DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | -*DefaultApi* | [**create_namespaced_virtual_machine_export**](docs/DefaultApi.md#create_namespaced_virtual_machine_export) | **POST** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports | -*DefaultApi* | [**create_namespaced_virtual_machine_instance**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | -*DefaultApi* | [**create_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | -*DefaultApi* | [**create_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | -*DefaultApi* | [**create_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | -*DefaultApi* | [**create_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#create_namespaced_virtual_machine_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | -*DefaultApi* | [**create_namespaced_virtual_machine_pool**](docs/DefaultApi.md#create_namespaced_virtual_machine_pool) | **POST** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -*DefaultApi* | [**create_namespaced_virtual_machine_preference**](docs/DefaultApi.md#create_namespaced_virtual_machine_preference) | **POST** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | -*DefaultApi* | [**create_namespaced_virtual_machine_restore**](docs/DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | -*DefaultApi* | [**create_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | -*DefaultApi* | [**create_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | +*DefaultApi* | [**create_namespaced_kube_virt**](docs/DefaultApi.md#create_namespaced_kube_virt) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt | +*DefaultApi* | [**create_namespaced_virtual_machine**](docs/DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines | +*DefaultApi* | [**create_namespaced_virtual_machine_export**](docs/DefaultApi.md#create_namespaced_virtual_machine_export) | **POST** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports | +*DefaultApi* | [**create_namespaced_virtual_machine_instance**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances | +*DefaultApi* | [**create_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations | +*DefaultApi* | [**create_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets | +*DefaultApi* | [**create_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets | +*DefaultApi* | [**create_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#create_namespaced_virtual_machine_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes | +*DefaultApi* | [**create_namespaced_virtual_machine_pool**](docs/DefaultApi.md#create_namespaced_virtual_machine_pool) | **POST** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools | +*DefaultApi* | [**create_namespaced_virtual_machine_preference**](docs/DefaultApi.md#create_namespaced_virtual_machine_preference) | **POST** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences | +*DefaultApi* | [**create_namespaced_virtual_machine_restore**](docs/DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores | +*DefaultApi* | [**create_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots | +*DefaultApi* | [**create_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents | *DefaultApi* | [**create_virtual_machine_clone**](docs/DefaultApi.md#create_virtual_machine_clone) | **POST** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | *DefaultApi* | [**create_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#create_virtual_machine_cluster_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | *DefaultApi* | [**create_virtual_machine_cluster_preference**](docs/DefaultApi.md#create_virtual_machine_cluster_preference) | **POST** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | *DefaultApi* | [**delete_collection_migration_policy**](docs/DefaultApi.md#delete_collection_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | -*DefaultApi* | [**delete_collection_namespaced_kube_virt**](docs/DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_export**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_pool**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_preference**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | +*DefaultApi* | [**delete_collection_namespaced_kube_virt**](docs/DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_export**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_pool**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_preference**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents | *DefaultApi* | [**delete_collection_virtual_machine_clone**](docs/DefaultApi.md#delete_collection_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | *DefaultApi* | [**delete_collection_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#delete_collection_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | *DefaultApi* | [**delete_collection_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_collection_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | -*DefaultApi* | [**delete_migration_policy**](docs/DefaultApi.md#delete_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_namespaced_kube_virt**](docs/DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_namespaced_virtual_machine**](docs/DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_namespaced_virtual_machine_export**](docs/DefaultApi.md#delete_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_namespaced_virtual_machine_pool**](docs/DefaultApi.md#delete_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_namespaced_virtual_machine_preference**](docs/DefaultApi.md#delete_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_virtual_machine_clone**](docs/DefaultApi.md#delete_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#delete_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**delete_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**delete_migration_policy**](docs/DefaultApi.md#delete_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | +*DefaultApi* | [**delete_namespaced_kube_virt**](docs/DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | +*DefaultApi* | [**delete_namespaced_virtual_machine**](docs/DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | +*DefaultApi* | [**delete_namespaced_virtual_machine_export**](docs/DefaultApi.md#delete_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports/{name} | +*DefaultApi* | [**delete_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | +*DefaultApi* | [**delete_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | +*DefaultApi* | [**delete_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | +*DefaultApi* | [**delete_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | +*DefaultApi* | [**delete_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | +*DefaultApi* | [**delete_namespaced_virtual_machine_pool**](docs/DefaultApi.md#delete_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | +*DefaultApi* | [**delete_namespaced_virtual_machine_preference**](docs/DefaultApi.md#delete_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | +*DefaultApi* | [**delete_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name} | +*DefaultApi* | [**delete_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name} | +*DefaultApi* | [**delete_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | +*DefaultApi* | [**delete_virtual_machine_clone**](docs/DefaultApi.md#delete_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | +*DefaultApi* | [**delete_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#delete_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | +*DefaultApi* | [**delete_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | *DefaultApi* | [**func1**](docs/DefaultApi.md#func1) | **GET** /healthz | *DefaultApi* | [**func6**](docs/DefaultApi.md#func6) | **GET** /openapi/v2 | *DefaultApi* | [**get_api_group_clone_kubevirt_io**](docs/DefaultApi.md#get_api_group_clone_kubevirt_io) | **GET** /apis/clone.kubevirt.io/ | @@ -143,19 +143,19 @@ Class | Method | HTTP request | Description *DefaultApi* | [**handle_stop_profiler**](docs/DefaultApi.md#handle_stop_profiler) | **GET** /stop-profiler | *DefaultApi* | [**list_kube_virt_for_all_namespaces**](docs/DefaultApi.md#list_kube_virt_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/kubevirt | *DefaultApi* | [**list_migration_policy**](docs/DefaultApi.md#list_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | -*DefaultApi* | [**list_namespaced_kube_virt**](docs/DefaultApi.md#list_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | -*DefaultApi* | [**list_namespaced_virtual_machine**](docs/DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | -*DefaultApi* | [**list_namespaced_virtual_machine_export**](docs/DefaultApi.md#list_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports | -*DefaultApi* | [**list_namespaced_virtual_machine_instance**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | -*DefaultApi* | [**list_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | -*DefaultApi* | [**list_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | -*DefaultApi* | [**list_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | -*DefaultApi* | [**list_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#list_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | -*DefaultApi* | [**list_namespaced_virtual_machine_pool**](docs/DefaultApi.md#list_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -*DefaultApi* | [**list_namespaced_virtual_machine_preference**](docs/DefaultApi.md#list_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | -*DefaultApi* | [**list_namespaced_virtual_machine_restore**](docs/DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | -*DefaultApi* | [**list_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | -*DefaultApi* | [**list_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | +*DefaultApi* | [**list_namespaced_kube_virt**](docs/DefaultApi.md#list_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt | +*DefaultApi* | [**list_namespaced_virtual_machine**](docs/DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines | +*DefaultApi* | [**list_namespaced_virtual_machine_export**](docs/DefaultApi.md#list_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports | +*DefaultApi* | [**list_namespaced_virtual_machine_instance**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances | +*DefaultApi* | [**list_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations | +*DefaultApi* | [**list_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets | +*DefaultApi* | [**list_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets | +*DefaultApi* | [**list_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#list_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes | +*DefaultApi* | [**list_namespaced_virtual_machine_pool**](docs/DefaultApi.md#list_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools | +*DefaultApi* | [**list_namespaced_virtual_machine_preference**](docs/DefaultApi.md#list_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences | +*DefaultApi* | [**list_namespaced_virtual_machine_restore**](docs/DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores | +*DefaultApi* | [**list_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots | +*DefaultApi* | [**list_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents | *DefaultApi* | [**list_virtual_machine_clone**](docs/DefaultApi.md#list_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | *DefaultApi* | [**list_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#list_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | *DefaultApi* | [**list_virtual_machine_cluster_preference**](docs/DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | @@ -171,153 +171,153 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_virtual_machine_restore_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_restore_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores | *DefaultApi* | [**list_virtual_machine_snapshot_content_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents | *DefaultApi* | [**list_virtual_machine_snapshot_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots | -*DefaultApi* | [**patch_migration_policy**](docs/DefaultApi.md#patch_migration_policy) | **PATCH** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_namespaced_kube_virt**](docs/DefaultApi.md#patch_namespaced_kube_virt) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_namespaced_virtual_machine**](docs/DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_namespaced_virtual_machine_export**](docs/DefaultApi.md#patch_namespaced_virtual_machine_export) | **PATCH** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_namespaced_virtual_machine_pool**](docs/DefaultApi.md#patch_namespaced_virtual_machine_pool) | **PATCH** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_namespaced_virtual_machine_preference**](docs/DefaultApi.md#patch_namespaced_virtual_machine_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_virtual_machine_clone**](docs/DefaultApi.md#patch_virtual_machine_clone) | **PATCH** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#patch_virtual_machine_cluster_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**patch_virtual_machine_cluster_preference**](docs/DefaultApi.md#patch_virtual_machine_cluster_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_migration_policy**](docs/DefaultApi.md#read_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_namespaced_kube_virt**](docs/DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_namespaced_virtual_machine**](docs/DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_namespaced_virtual_machine_export**](docs/DefaultApi.md#read_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_namespaced_virtual_machine_instance**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#read_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_namespaced_virtual_machine_pool**](docs/DefaultApi.md#read_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_namespaced_virtual_machine_preference**](docs/DefaultApi.md#read_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_namespaced_virtual_machine_restore**](docs/DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_virtual_machine_clone**](docs/DefaultApi.md#read_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#read_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**read_virtual_machine_cluster_preference**](docs/DefaultApi.md#read_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_migration_policy**](docs/DefaultApi.md#replace_migration_policy) | **PUT** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_namespaced_kube_virt**](docs/DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_namespaced_virtual_machine**](docs/DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_namespaced_virtual_machine_export**](docs/DefaultApi.md#replace_namespaced_virtual_machine_export) | **PUT** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_namespaced_virtual_machine_instance**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_namespaced_virtual_machine_pool**](docs/DefaultApi.md#replace_namespaced_virtual_machine_pool) | **PUT** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_namespaced_virtual_machine_preference**](docs/DefaultApi.md#replace_namespaced_virtual_machine_preference) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_namespaced_virtual_machine_restore**](docs/DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_virtual_machine_clone**](docs/DefaultApi.md#replace_virtual_machine_clone) | **PUT** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#replace_virtual_machine_cluster_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -*DefaultApi* | [**replace_virtual_machine_cluster_preference**](docs/DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | +*DefaultApi* | [**patch_migration_policy**](docs/DefaultApi.md#patch_migration_policy) | **PATCH** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | +*DefaultApi* | [**patch_namespaced_kube_virt**](docs/DefaultApi.md#patch_namespaced_kube_virt) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | +*DefaultApi* | [**patch_namespaced_virtual_machine**](docs/DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | +*DefaultApi* | [**patch_namespaced_virtual_machine_export**](docs/DefaultApi.md#patch_namespaced_virtual_machine_export) | **PATCH** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports/{name} | +*DefaultApi* | [**patch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | +*DefaultApi* | [**patch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | +*DefaultApi* | [**patch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | +*DefaultApi* | [**patch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | +*DefaultApi* | [**patch_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | +*DefaultApi* | [**patch_namespaced_virtual_machine_pool**](docs/DefaultApi.md#patch_namespaced_virtual_machine_pool) | **PATCH** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | +*DefaultApi* | [**patch_namespaced_virtual_machine_preference**](docs/DefaultApi.md#patch_namespaced_virtual_machine_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | +*DefaultApi* | [**patch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name} | +*DefaultApi* | [**patch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name} | +*DefaultApi* | [**patch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | +*DefaultApi* | [**patch_virtual_machine_clone**](docs/DefaultApi.md#patch_virtual_machine_clone) | **PATCH** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | +*DefaultApi* | [**patch_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#patch_virtual_machine_cluster_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | +*DefaultApi* | [**patch_virtual_machine_cluster_preference**](docs/DefaultApi.md#patch_virtual_machine_cluster_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | +*DefaultApi* | [**read_migration_policy**](docs/DefaultApi.md#read_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | +*DefaultApi* | [**read_namespaced_kube_virt**](docs/DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | +*DefaultApi* | [**read_namespaced_virtual_machine**](docs/DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | +*DefaultApi* | [**read_namespaced_virtual_machine_export**](docs/DefaultApi.md#read_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports/{name} | +*DefaultApi* | [**read_namespaced_virtual_machine_instance**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | +*DefaultApi* | [**read_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | +*DefaultApi* | [**read_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | +*DefaultApi* | [**read_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | +*DefaultApi* | [**read_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#read_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | +*DefaultApi* | [**read_namespaced_virtual_machine_pool**](docs/DefaultApi.md#read_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | +*DefaultApi* | [**read_namespaced_virtual_machine_preference**](docs/DefaultApi.md#read_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | +*DefaultApi* | [**read_namespaced_virtual_machine_restore**](docs/DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name} | +*DefaultApi* | [**read_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name} | +*DefaultApi* | [**read_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | +*DefaultApi* | [**read_virtual_machine_clone**](docs/DefaultApi.md#read_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | +*DefaultApi* | [**read_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#read_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | +*DefaultApi* | [**read_virtual_machine_cluster_preference**](docs/DefaultApi.md#read_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | +*DefaultApi* | [**replace_migration_policy**](docs/DefaultApi.md#replace_migration_policy) | **PUT** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | +*DefaultApi* | [**replace_namespaced_kube_virt**](docs/DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | +*DefaultApi* | [**replace_namespaced_virtual_machine**](docs/DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | +*DefaultApi* | [**replace_namespaced_virtual_machine_export**](docs/DefaultApi.md#replace_namespaced_virtual_machine_export) | **PUT** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports/{name} | +*DefaultApi* | [**replace_namespaced_virtual_machine_instance**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | +*DefaultApi* | [**replace_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | +*DefaultApi* | [**replace_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | +*DefaultApi* | [**replace_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | +*DefaultApi* | [**replace_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | +*DefaultApi* | [**replace_namespaced_virtual_machine_pool**](docs/DefaultApi.md#replace_namespaced_virtual_machine_pool) | **PUT** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | +*DefaultApi* | [**replace_namespaced_virtual_machine_preference**](docs/DefaultApi.md#replace_namespaced_virtual_machine_preference) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | +*DefaultApi* | [**replace_namespaced_virtual_machine_restore**](docs/DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name} | +*DefaultApi* | [**replace_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name} | +*DefaultApi* | [**replace_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | +*DefaultApi* | [**replace_virtual_machine_clone**](docs/DefaultApi.md#replace_virtual_machine_clone) | **PUT** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | +*DefaultApi* | [**replace_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#replace_virtual_machine_cluster_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | +*DefaultApi* | [**replace_virtual_machine_cluster_preference**](docs/DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | *DefaultApi* | [**v1_check_health**](docs/DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | -*DefaultApi* | [**v1_console**](docs/DefaultApi.md#v1_console) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | -*DefaultApi* | [**v1_expand_spec**](docs/DefaultApi.md#v1_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/expand-vm-spec | -*DefaultApi* | [**v1_filesystemlist**](docs/DefaultApi.md#v1_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | -*DefaultApi* | [**v1_freeze**](docs/DefaultApi.md#v1_freeze) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze | +*DefaultApi* | [**v1_console**](docs/DefaultApi.md#v1_console) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/console | +*DefaultApi* | [**v1_expand_spec**](docs/DefaultApi.md#v1_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/expand-vm-spec | +*DefaultApi* | [**v1_filesystemlist**](docs/DefaultApi.md#v1_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/filesystemlist | +*DefaultApi* | [**v1_freeze**](docs/DefaultApi.md#v1_freeze) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/freeze | *DefaultApi* | [**v1_get_sub_api_group**](docs/DefaultApi.md#v1_get_sub_api_group) | **GET** /apis/subresources.kubevirt.io | *DefaultApi* | [**v1_guestfs**](docs/DefaultApi.md#v1_guestfs) | **GET** /apis/subresources.kubevirt.io/v1/guestfs | -*DefaultApi* | [**v1_guestosinfo**](docs/DefaultApi.md#v1_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | -*DefaultApi* | [**v1_memory_dump**](docs/DefaultApi.md#v1_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/memorydump | -*DefaultApi* | [**v1_migrate**](docs/DefaultApi.md#v1_migrate) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | -*DefaultApi* | [**v1_pause**](docs/DefaultApi.md#v1_pause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | -*DefaultApi* | [**v1_remove_memory_dump**](docs/DefaultApi.md#v1_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removememorydump | -*DefaultApi* | [**v1_restart**](docs/DefaultApi.md#v1_restart) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | -*DefaultApi* | [**v1_sev_fetch_cert_chain**](docs/DefaultApi.md#v1_sev_fetch_cert_chain) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/fetchcertchain | -*DefaultApi* | [**v1_sev_inject_launch_secret**](docs/DefaultApi.md#v1_sev_inject_launch_secret) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/injectlaunchsecret | -*DefaultApi* | [**v1_sev_query_launch_measurement**](docs/DefaultApi.md#v1_sev_query_launch_measurement) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/querylaunchmeasurement | -*DefaultApi* | [**v1_sev_setup_session**](docs/DefaultApi.md#v1_sev_setup_session) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/setupsession | -*DefaultApi* | [**v1_soft_reboot**](docs/DefaultApi.md#v1_soft_reboot) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/softreboot | -*DefaultApi* | [**v1_start**](docs/DefaultApi.md#v1_start) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | -*DefaultApi* | [**v1_stop**](docs/DefaultApi.md#v1_stop) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | -*DefaultApi* | [**v1_unfreeze**](docs/DefaultApi.md#v1_unfreeze) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unfreeze | -*DefaultApi* | [**v1_unpause**](docs/DefaultApi.md#v1_unpause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause | -*DefaultApi* | [**v1_userlist**](docs/DefaultApi.md#v1_userlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | +*DefaultApi* | [**v1_guestosinfo**](docs/DefaultApi.md#v1_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/guestosinfo | +*DefaultApi* | [**v1_memory_dump**](docs/DefaultApi.md#v1_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/memorydump | +*DefaultApi* | [**v1_migrate**](docs/DefaultApi.md#v1_migrate) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/migrate | +*DefaultApi* | [**v1_pause**](docs/DefaultApi.md#v1_pause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/pause | +*DefaultApi* | [**v1_remove_memory_dump**](docs/DefaultApi.md#v1_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/removememorydump | +*DefaultApi* | [**v1_restart**](docs/DefaultApi.md#v1_restart) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/restart | +*DefaultApi* | [**v1_sev_fetch_cert_chain**](docs/DefaultApi.md#v1_sev_fetch_cert_chain) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/sev/fetchcertchain | +*DefaultApi* | [**v1_sev_inject_launch_secret**](docs/DefaultApi.md#v1_sev_inject_launch_secret) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/sev/injectlaunchsecret | +*DefaultApi* | [**v1_sev_query_launch_measurement**](docs/DefaultApi.md#v1_sev_query_launch_measurement) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/sev/querylaunchmeasurement | +*DefaultApi* | [**v1_sev_setup_session**](docs/DefaultApi.md#v1_sev_setup_session) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/sev/setupsession | +*DefaultApi* | [**v1_soft_reboot**](docs/DefaultApi.md#v1_soft_reboot) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/softreboot | +*DefaultApi* | [**v1_start**](docs/DefaultApi.md#v1_start) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/start | +*DefaultApi* | [**v1_stop**](docs/DefaultApi.md#v1_stop) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/stop | +*DefaultApi* | [**v1_unfreeze**](docs/DefaultApi.md#v1_unfreeze) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/unfreeze | +*DefaultApi* | [**v1_unpause**](docs/DefaultApi.md#v1_unpause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/unpause | +*DefaultApi* | [**v1_userlist**](docs/DefaultApi.md#v1_userlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/userlist | *DefaultApi* | [**v1_version**](docs/DefaultApi.md#v1_version) | **GET** /apis/subresources.kubevirt.io/v1/version | -*DefaultApi* | [**v1_vnc**](docs/DefaultApi.md#v1_vnc) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | -*DefaultApi* | [**v1_vnc_screenshot**](docs/DefaultApi.md#v1_vnc_screenshot) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc/screenshot | -*DefaultApi* | [**v1_vsock**](docs/DefaultApi.md#v1_vsock) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vsock | +*DefaultApi* | [**v1_vnc**](docs/DefaultApi.md#v1_vnc) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vnc | +*DefaultApi* | [**v1_vnc_screenshot**](docs/DefaultApi.md#v1_vnc_screenshot) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vnc/screenshot | +*DefaultApi* | [**v1_vsock**](docs/DefaultApi.md#v1_vsock) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vsock | *DefaultApi* | [**v1alpha3_check_health**](docs/DefaultApi.md#v1alpha3_check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha3/healthz | -*DefaultApi* | [**v1alpha3_console**](docs/DefaultApi.md#v1alpha3_console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | -*DefaultApi* | [**v1alpha3_expand_spec**](docs/DefaultApi.md#v1alpha3_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/expand-vm-spec | -*DefaultApi* | [**v1alpha3_filesystemlist**](docs/DefaultApi.md#v1alpha3_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | -*DefaultApi* | [**v1alpha3_freeze**](docs/DefaultApi.md#v1alpha3_freeze) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze | +*DefaultApi* | [**v1alpha3_console**](docs/DefaultApi.md#v1alpha3_console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/console | +*DefaultApi* | [**v1alpha3_expand_spec**](docs/DefaultApi.md#v1alpha3_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/expand-vm-spec | +*DefaultApi* | [**v1alpha3_filesystemlist**](docs/DefaultApi.md#v1alpha3_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/filesystemlist | +*DefaultApi* | [**v1alpha3_freeze**](docs/DefaultApi.md#v1alpha3_freeze) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/freeze | *DefaultApi* | [**v1alpha3_guestfs**](docs/DefaultApi.md#v1alpha3_guestfs) | **GET** /apis/subresources.kubevirt.io/v1alpha3/guestfs | -*DefaultApi* | [**v1alpha3_guestosinfo**](docs/DefaultApi.md#v1alpha3_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | -*DefaultApi* | [**v1alpha3_memory_dump**](docs/DefaultApi.md#v1alpha3_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/memorydump | -*DefaultApi* | [**v1alpha3_migrate**](docs/DefaultApi.md#v1alpha3_migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | -*DefaultApi* | [**v1alpha3_pause**](docs/DefaultApi.md#v1alpha3_pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | -*DefaultApi* | [**v1alpha3_remove_memory_dump**](docs/DefaultApi.md#v1alpha3_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removememorydump | -*DefaultApi* | [**v1alpha3_restart**](docs/DefaultApi.md#v1alpha3_restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | -*DefaultApi* | [**v1alpha3_sev_fetch_cert_chain**](docs/DefaultApi.md#v1alpha3_sev_fetch_cert_chain) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/fetchcertchain | -*DefaultApi* | [**v1alpha3_sev_inject_launch_secret**](docs/DefaultApi.md#v1alpha3_sev_inject_launch_secret) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/injectlaunchsecret | -*DefaultApi* | [**v1alpha3_sev_query_launch_measurement**](docs/DefaultApi.md#v1alpha3_sev_query_launch_measurement) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/querylaunchmeasurement | -*DefaultApi* | [**v1alpha3_sev_setup_session**](docs/DefaultApi.md#v1alpha3_sev_setup_session) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/setupsession | -*DefaultApi* | [**v1alpha3_soft_reboot**](docs/DefaultApi.md#v1alpha3_soft_reboot) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/softreboot | -*DefaultApi* | [**v1alpha3_start**](docs/DefaultApi.md#v1alpha3_start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | -*DefaultApi* | [**v1alpha3_stop**](docs/DefaultApi.md#v1alpha3_stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | -*DefaultApi* | [**v1alpha3_unfreeze**](docs/DefaultApi.md#v1alpha3_unfreeze) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unfreeze | -*DefaultApi* | [**v1alpha3_unpause**](docs/DefaultApi.md#v1alpha3_unpause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause | -*DefaultApi* | [**v1alpha3_userlist**](docs/DefaultApi.md#v1alpha3_userlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | +*DefaultApi* | [**v1alpha3_guestosinfo**](docs/DefaultApi.md#v1alpha3_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/guestosinfo | +*DefaultApi* | [**v1alpha3_memory_dump**](docs/DefaultApi.md#v1alpha3_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/memorydump | +*DefaultApi* | [**v1alpha3_migrate**](docs/DefaultApi.md#v1alpha3_migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/migrate | +*DefaultApi* | [**v1alpha3_pause**](docs/DefaultApi.md#v1alpha3_pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/pause | +*DefaultApi* | [**v1alpha3_remove_memory_dump**](docs/DefaultApi.md#v1alpha3_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/removememorydump | +*DefaultApi* | [**v1alpha3_restart**](docs/DefaultApi.md#v1alpha3_restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/restart | +*DefaultApi* | [**v1alpha3_sev_fetch_cert_chain**](docs/DefaultApi.md#v1alpha3_sev_fetch_cert_chain) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/sev/fetchcertchain | +*DefaultApi* | [**v1alpha3_sev_inject_launch_secret**](docs/DefaultApi.md#v1alpha3_sev_inject_launch_secret) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/sev/injectlaunchsecret | +*DefaultApi* | [**v1alpha3_sev_query_launch_measurement**](docs/DefaultApi.md#v1alpha3_sev_query_launch_measurement) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/sev/querylaunchmeasurement | +*DefaultApi* | [**v1alpha3_sev_setup_session**](docs/DefaultApi.md#v1alpha3_sev_setup_session) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/sev/setupsession | +*DefaultApi* | [**v1alpha3_soft_reboot**](docs/DefaultApi.md#v1alpha3_soft_reboot) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/softreboot | +*DefaultApi* | [**v1alpha3_start**](docs/DefaultApi.md#v1alpha3_start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/start | +*DefaultApi* | [**v1alpha3_stop**](docs/DefaultApi.md#v1alpha3_stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/stop | +*DefaultApi* | [**v1alpha3_unfreeze**](docs/DefaultApi.md#v1alpha3_unfreeze) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/unfreeze | +*DefaultApi* | [**v1alpha3_unpause**](docs/DefaultApi.md#v1alpha3_unpause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/unpause | +*DefaultApi* | [**v1alpha3_userlist**](docs/DefaultApi.md#v1alpha3_userlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/userlist | *DefaultApi* | [**v1alpha3_version**](docs/DefaultApi.md#v1alpha3_version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | -*DefaultApi* | [**v1alpha3_vnc**](docs/DefaultApi.md#v1alpha3_vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | -*DefaultApi* | [**v1alpha3_vnc_screenshot**](docs/DefaultApi.md#v1alpha3_vnc_screenshot) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc/screenshot | -*DefaultApi* | [**v1alpha3_vsock**](docs/DefaultApi.md#v1alpha3_vsock) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vsock | +*DefaultApi* | [**v1alpha3_vnc**](docs/DefaultApi.md#v1alpha3_vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/vnc | +*DefaultApi* | [**v1alpha3_vnc_screenshot**](docs/DefaultApi.md#v1alpha3_vnc_screenshot) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/vnc/screenshot | +*DefaultApi* | [**v1alpha3_vsock**](docs/DefaultApi.md#v1alpha3_vsock) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/vsock | *DefaultApi* | [**v1alpha3dump_cluster_profiler**](docs/DefaultApi.md#v1alpha3dump_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/dump-cluster-profiler | *DefaultApi* | [**v1alpha3get_api_sub_resources**](docs/DefaultApi.md#v1alpha3get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1alpha3/ | *DefaultApi* | [**v1alpha3start_cluster_profiler**](docs/DefaultApi.md#v1alpha3start_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/start-cluster-profiler | *DefaultApi* | [**v1alpha3stop_cluster_profiler**](docs/DefaultApi.md#v1alpha3stop_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/stop-cluster-profiler | -*DefaultApi* | [**v1alpha3usbredir**](docs/DefaultApi.md#v1alpha3usbredir) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir | -*DefaultApi* | [**v1alpha3vm_addvolume**](docs/DefaultApi.md#v1alpha3vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | -*DefaultApi* | [**v1alpha3vm_expand_spec**](docs/DefaultApi.md#v1alpha3vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec | -*DefaultApi* | [**v1alpha3vm_port_forward**](docs/DefaultApi.md#v1alpha3vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | -*DefaultApi* | [**v1alpha3vm_port_forward_with_protocol**](docs/DefaultApi.md#v1alpha3vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | -*DefaultApi* | [**v1alpha3vm_removevolume**](docs/DefaultApi.md#v1alpha3vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | -*DefaultApi* | [**v1alpha3vmi_addvolume**](docs/DefaultApi.md#v1alpha3vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | -*DefaultApi* | [**v1alpha3vmi_port_forward**](docs/DefaultApi.md#v1alpha3vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | -*DefaultApi* | [**v1alpha3vmi_port_forward_with_protocol**](docs/DefaultApi.md#v1alpha3vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | -*DefaultApi* | [**v1alpha3vmi_removevolume**](docs/DefaultApi.md#v1alpha3vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | +*DefaultApi* | [**v1alpha3usbredir**](docs/DefaultApi.md#v1alpha3usbredir) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/usbredir | +*DefaultApi* | [**v1alpha3vm_addvolume**](docs/DefaultApi.md#v1alpha3vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/addvolume | +*DefaultApi* | [**v1alpha3vm_expand_spec**](docs/DefaultApi.md#v1alpha3vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/expand-spec | +*DefaultApi* | [**v1alpha3vm_port_forward**](docs/DefaultApi.md#v1alpha3vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/portforward/{port} | +*DefaultApi* | [**v1alpha3vm_port_forward_with_protocol**](docs/DefaultApi.md#v1alpha3vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/portforward/{port}/{protocol} | +*DefaultApi* | [**v1alpha3vm_removevolume**](docs/DefaultApi.md#v1alpha3vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/removevolume | +*DefaultApi* | [**v1alpha3vmi_addvolume**](docs/DefaultApi.md#v1alpha3vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/addvolume | +*DefaultApi* | [**v1alpha3vmi_port_forward**](docs/DefaultApi.md#v1alpha3vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port} | +*DefaultApi* | [**v1alpha3vmi_port_forward_with_protocol**](docs/DefaultApi.md#v1alpha3vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port}/{protocol} | +*DefaultApi* | [**v1alpha3vmi_removevolume**](docs/DefaultApi.md#v1alpha3vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/removevolume | *DefaultApi* | [**v1dump_cluster_profiler**](docs/DefaultApi.md#v1dump_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/dump-cluster-profiler | *DefaultApi* | [**v1get_api_sub_resources**](docs/DefaultApi.md#v1get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1/ | *DefaultApi* | [**v1start_cluster_profiler**](docs/DefaultApi.md#v1start_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/start-cluster-profiler | *DefaultApi* | [**v1stop_cluster_profiler**](docs/DefaultApi.md#v1stop_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/stop-cluster-profiler | -*DefaultApi* | [**v1usbredir**](docs/DefaultApi.md#v1usbredir) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir | -*DefaultApi* | [**v1vm_addvolume**](docs/DefaultApi.md#v1vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | -*DefaultApi* | [**v1vm_expand_spec**](docs/DefaultApi.md#v1vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec | -*DefaultApi* | [**v1vm_port_forward**](docs/DefaultApi.md#v1vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | -*DefaultApi* | [**v1vm_port_forward_with_protocol**](docs/DefaultApi.md#v1vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | -*DefaultApi* | [**v1vm_removevolume**](docs/DefaultApi.md#v1vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | -*DefaultApi* | [**v1vmi_addvolume**](docs/DefaultApi.md#v1vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | -*DefaultApi* | [**v1vmi_port_forward**](docs/DefaultApi.md#v1vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | -*DefaultApi* | [**v1vmi_port_forward_with_protocol**](docs/DefaultApi.md#v1vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | -*DefaultApi* | [**v1vmi_removevolume**](docs/DefaultApi.md#v1vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | +*DefaultApi* | [**v1usbredir**](docs/DefaultApi.md#v1usbredir) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/usbredir | +*DefaultApi* | [**v1vm_addvolume**](docs/DefaultApi.md#v1vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/addvolume | +*DefaultApi* | [**v1vm_expand_spec**](docs/DefaultApi.md#v1vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/expand-spec | +*DefaultApi* | [**v1vm_port_forward**](docs/DefaultApi.md#v1vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/portforward/{port} | +*DefaultApi* | [**v1vm_port_forward_with_protocol**](docs/DefaultApi.md#v1vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/portforward/{port}/{protocol} | +*DefaultApi* | [**v1vm_removevolume**](docs/DefaultApi.md#v1vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/removevolume | +*DefaultApi* | [**v1vmi_addvolume**](docs/DefaultApi.md#v1vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/addvolume | +*DefaultApi* | [**v1vmi_port_forward**](docs/DefaultApi.md#v1vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port} | +*DefaultApi* | [**v1vmi_port_forward_with_protocol**](docs/DefaultApi.md#v1vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port}/{protocol} | +*DefaultApi* | [**v1vmi_removevolume**](docs/DefaultApi.md#v1vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/removevolume | *DefaultApi* | [**watch_kube_virt_list_for_all_namespaces**](docs/DefaultApi.md#watch_kube_virt_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/kubevirt | *DefaultApi* | [**watch_migration_policy_list_for_all_namespaces**](docs/DefaultApi.md#watch_migration_policy_list_for_all_namespaces) | **GET** /apis/migrations.kubevirt.io/v1alpha1/watch/migrationpolicies | -*DefaultApi* | [**watch_namespaced_kube_virt**](docs/DefaultApi.md#watch_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | -*DefaultApi* | [**watch_namespaced_virtual_machine**](docs/DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | -*DefaultApi* | [**watch_namespaced_virtual_machine_export**](docs/DefaultApi.md#watch_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports | -*DefaultApi* | [**watch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | -*DefaultApi* | [**watch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | -*DefaultApi* | [**watch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | -*DefaultApi* | [**watch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | -*DefaultApi* | [**watch_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | -*DefaultApi* | [**watch_namespaced_virtual_machine_pool**](docs/DefaultApi.md#watch_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -*DefaultApi* | [**watch_namespaced_virtual_machine_preference**](docs/DefaultApi.md#watch_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | -*DefaultApi* | [**watch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | -*DefaultApi* | [**watch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | -*DefaultApi* | [**watch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | +*DefaultApi* | [**watch_namespaced_kube_virt**](docs/DefaultApi.md#watch_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/kubevirt | +*DefaultApi* | [**watch_namespaced_virtual_machine**](docs/DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachines | +*DefaultApi* | [**watch_namespaced_virtual_machine_export**](docs/DefaultApi.md#watch_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachineexports | +*DefaultApi* | [**watch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstances | +*DefaultApi* | [**watch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancemigrations | +*DefaultApi* | [**watch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancepresets | +*DefaultApi* | [**watch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancereplicasets | +*DefaultApi* | [**watch_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachineinstancetypes | +*DefaultApi* | [**watch_namespaced_virtual_machine_pool**](docs/DefaultApi.md#watch_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinepools | +*DefaultApi* | [**watch_namespaced_virtual_machine_preference**](docs/DefaultApi.md#watch_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinepreferences | +*DefaultApi* | [**watch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinerestores | +*DefaultApi* | [**watch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinesnapshots | +*DefaultApi* | [**watch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinesnapshotcontents | *DefaultApi* | [**watch_virtual_machine_clone_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_clone_list_for_all_namespaces) | **GET** /apis/clone.kubevirt.io/v1alpha1/watch/virtualmachineclones | *DefaultApi* | [**watch_virtual_machine_cluster_instancetype_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterinstancetypes | *DefaultApi* | [**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterpreferences | diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index d4c6bee4..967577d1 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -5,56 +5,56 @@ All URIs are relative to *https://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- [**create_migration_policy**](DefaultApi.md#create_migration_policy) | **POST** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | -[**create_namespaced_kube_virt**](DefaultApi.md#create_namespaced_kube_virt) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | -[**create_namespaced_virtual_machine**](DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | -[**create_namespaced_virtual_machine_export**](DefaultApi.md#create_namespaced_virtual_machine_export) | **POST** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports | -[**create_namespaced_virtual_machine_instance**](DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | -[**create_namespaced_virtual_machine_instance_migration**](DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | -[**create_namespaced_virtual_machine_instance_preset**](DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | -[**create_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | -[**create_namespaced_virtual_machine_instancetype**](DefaultApi.md#create_namespaced_virtual_machine_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | -[**create_namespaced_virtual_machine_pool**](DefaultApi.md#create_namespaced_virtual_machine_pool) | **POST** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -[**create_namespaced_virtual_machine_preference**](DefaultApi.md#create_namespaced_virtual_machine_preference) | **POST** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | -[**create_namespaced_virtual_machine_restore**](DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | -[**create_namespaced_virtual_machine_snapshot**](DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | -[**create_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | +[**create_namespaced_kube_virt**](DefaultApi.md#create_namespaced_kube_virt) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt | +[**create_namespaced_virtual_machine**](DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines | +[**create_namespaced_virtual_machine_export**](DefaultApi.md#create_namespaced_virtual_machine_export) | **POST** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports | +[**create_namespaced_virtual_machine_instance**](DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances | +[**create_namespaced_virtual_machine_instance_migration**](DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations | +[**create_namespaced_virtual_machine_instance_preset**](DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets | +[**create_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets | +[**create_namespaced_virtual_machine_instancetype**](DefaultApi.md#create_namespaced_virtual_machine_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes | +[**create_namespaced_virtual_machine_pool**](DefaultApi.md#create_namespaced_virtual_machine_pool) | **POST** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools | +[**create_namespaced_virtual_machine_preference**](DefaultApi.md#create_namespaced_virtual_machine_preference) | **POST** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences | +[**create_namespaced_virtual_machine_restore**](DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores | +[**create_namespaced_virtual_machine_snapshot**](DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots | +[**create_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents | [**create_virtual_machine_clone**](DefaultApi.md#create_virtual_machine_clone) | **POST** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | [**create_virtual_machine_cluster_instancetype**](DefaultApi.md#create_virtual_machine_cluster_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | [**create_virtual_machine_cluster_preference**](DefaultApi.md#create_virtual_machine_cluster_preference) | **POST** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | [**delete_collection_migration_policy**](DefaultApi.md#delete_collection_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | -[**delete_collection_namespaced_kube_virt**](DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | -[**delete_collection_namespaced_virtual_machine**](DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | -[**delete_collection_namespaced_virtual_machine_export**](DefaultApi.md#delete_collection_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports | -[**delete_collection_namespaced_virtual_machine_instance**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | -[**delete_collection_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | -[**delete_collection_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | -[**delete_collection_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | -[**delete_collection_namespaced_virtual_machine_instancetype**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | -[**delete_collection_namespaced_virtual_machine_pool**](DefaultApi.md#delete_collection_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -[**delete_collection_namespaced_virtual_machine_preference**](DefaultApi.md#delete_collection_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | -[**delete_collection_namespaced_virtual_machine_restore**](DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | -[**delete_collection_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | -[**delete_collection_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | +[**delete_collection_namespaced_kube_virt**](DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt | +[**delete_collection_namespaced_virtual_machine**](DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines | +[**delete_collection_namespaced_virtual_machine_export**](DefaultApi.md#delete_collection_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports | +[**delete_collection_namespaced_virtual_machine_instance**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances | +[**delete_collection_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations | +[**delete_collection_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets | +[**delete_collection_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets | +[**delete_collection_namespaced_virtual_machine_instancetype**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes | +[**delete_collection_namespaced_virtual_machine_pool**](DefaultApi.md#delete_collection_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools | +[**delete_collection_namespaced_virtual_machine_preference**](DefaultApi.md#delete_collection_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences | +[**delete_collection_namespaced_virtual_machine_restore**](DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores | +[**delete_collection_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots | +[**delete_collection_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents | [**delete_collection_virtual_machine_clone**](DefaultApi.md#delete_collection_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | [**delete_collection_virtual_machine_cluster_instancetype**](DefaultApi.md#delete_collection_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | [**delete_collection_virtual_machine_cluster_preference**](DefaultApi.md#delete_collection_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | -[**delete_migration_policy**](DefaultApi.md#delete_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_namespaced_kube_virt**](DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_namespaced_virtual_machine**](DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_namespaced_virtual_machine_export**](DefaultApi.md#delete_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_namespaced_virtual_machine_instance**](DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_namespaced_virtual_machine_instancetype**](DefaultApi.md#delete_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_namespaced_virtual_machine_pool**](DefaultApi.md#delete_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_namespaced_virtual_machine_preference**](DefaultApi.md#delete_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_namespaced_virtual_machine_restore**](DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_virtual_machine_clone**](DefaultApi.md#delete_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_virtual_machine_cluster_instancetype**](DefaultApi.md#delete_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -[**delete_virtual_machine_cluster_preference**](DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | +[**delete_migration_policy**](DefaultApi.md#delete_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | +[**delete_namespaced_kube_virt**](DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | +[**delete_namespaced_virtual_machine**](DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | +[**delete_namespaced_virtual_machine_export**](DefaultApi.md#delete_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports/{name} | +[**delete_namespaced_virtual_machine_instance**](DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | +[**delete_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | +[**delete_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | +[**delete_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | +[**delete_namespaced_virtual_machine_instancetype**](DefaultApi.md#delete_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | +[**delete_namespaced_virtual_machine_pool**](DefaultApi.md#delete_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | +[**delete_namespaced_virtual_machine_preference**](DefaultApi.md#delete_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | +[**delete_namespaced_virtual_machine_restore**](DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name} | +[**delete_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name} | +[**delete_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | +[**delete_virtual_machine_clone**](DefaultApi.md#delete_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | +[**delete_virtual_machine_cluster_instancetype**](DefaultApi.md#delete_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | +[**delete_virtual_machine_cluster_preference**](DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | [**func1**](DefaultApi.md#func1) | **GET** /healthz | [**func6**](DefaultApi.md#func6) | **GET** /openapi/v2 | [**get_api_group_clone_kubevirt_io**](DefaultApi.md#get_api_group_clone_kubevirt_io) | **GET** /apis/clone.kubevirt.io/ | @@ -78,19 +78,19 @@ Method | HTTP request | Description [**handle_stop_profiler**](DefaultApi.md#handle_stop_profiler) | **GET** /stop-profiler | [**list_kube_virt_for_all_namespaces**](DefaultApi.md#list_kube_virt_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/kubevirt | [**list_migration_policy**](DefaultApi.md#list_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | -[**list_namespaced_kube_virt**](DefaultApi.md#list_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | -[**list_namespaced_virtual_machine**](DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | -[**list_namespaced_virtual_machine_export**](DefaultApi.md#list_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports | -[**list_namespaced_virtual_machine_instance**](DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | -[**list_namespaced_virtual_machine_instance_migration**](DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | -[**list_namespaced_virtual_machine_instance_preset**](DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | -[**list_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | -[**list_namespaced_virtual_machine_instancetype**](DefaultApi.md#list_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | -[**list_namespaced_virtual_machine_pool**](DefaultApi.md#list_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -[**list_namespaced_virtual_machine_preference**](DefaultApi.md#list_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | -[**list_namespaced_virtual_machine_restore**](DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | -[**list_namespaced_virtual_machine_snapshot**](DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | -[**list_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | +[**list_namespaced_kube_virt**](DefaultApi.md#list_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt | +[**list_namespaced_virtual_machine**](DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines | +[**list_namespaced_virtual_machine_export**](DefaultApi.md#list_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports | +[**list_namespaced_virtual_machine_instance**](DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances | +[**list_namespaced_virtual_machine_instance_migration**](DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations | +[**list_namespaced_virtual_machine_instance_preset**](DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets | +[**list_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets | +[**list_namespaced_virtual_machine_instancetype**](DefaultApi.md#list_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes | +[**list_namespaced_virtual_machine_pool**](DefaultApi.md#list_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools | +[**list_namespaced_virtual_machine_preference**](DefaultApi.md#list_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences | +[**list_namespaced_virtual_machine_restore**](DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores | +[**list_namespaced_virtual_machine_snapshot**](DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots | +[**list_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents | [**list_virtual_machine_clone**](DefaultApi.md#list_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | [**list_virtual_machine_cluster_instancetype**](DefaultApi.md#list_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | [**list_virtual_machine_cluster_preference**](DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | @@ -106,153 +106,153 @@ Method | HTTP request | Description [**list_virtual_machine_restore_for_all_namespaces**](DefaultApi.md#list_virtual_machine_restore_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores | [**list_virtual_machine_snapshot_content_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents | [**list_virtual_machine_snapshot_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots | -[**patch_migration_policy**](DefaultApi.md#patch_migration_policy) | **PATCH** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_namespaced_kube_virt**](DefaultApi.md#patch_namespaced_kube_virt) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_namespaced_virtual_machine**](DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_namespaced_virtual_machine_export**](DefaultApi.md#patch_namespaced_virtual_machine_export) | **PATCH** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_namespaced_virtual_machine_instance**](DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_namespaced_virtual_machine_instancetype**](DefaultApi.md#patch_namespaced_virtual_machine_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_namespaced_virtual_machine_pool**](DefaultApi.md#patch_namespaced_virtual_machine_pool) | **PATCH** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_namespaced_virtual_machine_preference**](DefaultApi.md#patch_namespaced_virtual_machine_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_namespaced_virtual_machine_restore**](DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_namespaced_virtual_machine_snapshot**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_virtual_machine_clone**](DefaultApi.md#patch_virtual_machine_clone) | **PATCH** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_virtual_machine_cluster_instancetype**](DefaultApi.md#patch_virtual_machine_cluster_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -[**patch_virtual_machine_cluster_preference**](DefaultApi.md#patch_virtual_machine_cluster_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | -[**read_migration_policy**](DefaultApi.md#read_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | -[**read_namespaced_kube_virt**](DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | -[**read_namespaced_virtual_machine**](DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | -[**read_namespaced_virtual_machine_export**](DefaultApi.md#read_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*} | -[**read_namespaced_virtual_machine_instance**](DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | -[**read_namespaced_virtual_machine_instance_migration**](DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | -[**read_namespaced_virtual_machine_instance_preset**](DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | -[**read_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | -[**read_namespaced_virtual_machine_instancetype**](DefaultApi.md#read_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -[**read_namespaced_virtual_machine_pool**](DefaultApi.md#read_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -[**read_namespaced_virtual_machine_preference**](DefaultApi.md#read_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | -[**read_namespaced_virtual_machine_restore**](DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | -[**read_namespaced_virtual_machine_snapshot**](DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | -[**read_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | -[**read_virtual_machine_clone**](DefaultApi.md#read_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -[**read_virtual_machine_cluster_instancetype**](DefaultApi.md#read_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -[**read_virtual_machine_cluster_preference**](DefaultApi.md#read_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_migration_policy**](DefaultApi.md#replace_migration_policy) | **PUT** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_namespaced_kube_virt**](DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_namespaced_virtual_machine**](DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_namespaced_virtual_machine_export**](DefaultApi.md#replace_namespaced_virtual_machine_export) | **PUT** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_namespaced_virtual_machine_instance**](DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_namespaced_virtual_machine_instance_migration**](DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_namespaced_virtual_machine_instance_preset**](DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_namespaced_virtual_machine_instancetype**](DefaultApi.md#replace_namespaced_virtual_machine_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_namespaced_virtual_machine_pool**](DefaultApi.md#replace_namespaced_virtual_machine_pool) | **PUT** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_namespaced_virtual_machine_preference**](DefaultApi.md#replace_namespaced_virtual_machine_preference) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_namespaced_virtual_machine_restore**](DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_namespaced_virtual_machine_snapshot**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_virtual_machine_clone**](DefaultApi.md#replace_virtual_machine_clone) | **PUT** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_virtual_machine_cluster_instancetype**](DefaultApi.md#replace_virtual_machine_cluster_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*} | -[**replace_virtual_machine_cluster_preference**](DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*} | +[**patch_migration_policy**](DefaultApi.md#patch_migration_policy) | **PATCH** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | +[**patch_namespaced_kube_virt**](DefaultApi.md#patch_namespaced_kube_virt) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | +[**patch_namespaced_virtual_machine**](DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | +[**patch_namespaced_virtual_machine_export**](DefaultApi.md#patch_namespaced_virtual_machine_export) | **PATCH** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports/{name} | +[**patch_namespaced_virtual_machine_instance**](DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | +[**patch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | +[**patch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | +[**patch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | +[**patch_namespaced_virtual_machine_instancetype**](DefaultApi.md#patch_namespaced_virtual_machine_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | +[**patch_namespaced_virtual_machine_pool**](DefaultApi.md#patch_namespaced_virtual_machine_pool) | **PATCH** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | +[**patch_namespaced_virtual_machine_preference**](DefaultApi.md#patch_namespaced_virtual_machine_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | +[**patch_namespaced_virtual_machine_restore**](DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name} | +[**patch_namespaced_virtual_machine_snapshot**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name} | +[**patch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | +[**patch_virtual_machine_clone**](DefaultApi.md#patch_virtual_machine_clone) | **PATCH** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | +[**patch_virtual_machine_cluster_instancetype**](DefaultApi.md#patch_virtual_machine_cluster_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | +[**patch_virtual_machine_cluster_preference**](DefaultApi.md#patch_virtual_machine_cluster_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | +[**read_migration_policy**](DefaultApi.md#read_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | +[**read_namespaced_kube_virt**](DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | +[**read_namespaced_virtual_machine**](DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | +[**read_namespaced_virtual_machine_export**](DefaultApi.md#read_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports/{name} | +[**read_namespaced_virtual_machine_instance**](DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | +[**read_namespaced_virtual_machine_instance_migration**](DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | +[**read_namespaced_virtual_machine_instance_preset**](DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | +[**read_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | +[**read_namespaced_virtual_machine_instancetype**](DefaultApi.md#read_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | +[**read_namespaced_virtual_machine_pool**](DefaultApi.md#read_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | +[**read_namespaced_virtual_machine_preference**](DefaultApi.md#read_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | +[**read_namespaced_virtual_machine_restore**](DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name} | +[**read_namespaced_virtual_machine_snapshot**](DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name} | +[**read_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | +[**read_virtual_machine_clone**](DefaultApi.md#read_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | +[**read_virtual_machine_cluster_instancetype**](DefaultApi.md#read_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | +[**read_virtual_machine_cluster_preference**](DefaultApi.md#read_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | +[**replace_migration_policy**](DefaultApi.md#replace_migration_policy) | **PUT** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | +[**replace_namespaced_kube_virt**](DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | +[**replace_namespaced_virtual_machine**](DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | +[**replace_namespaced_virtual_machine_export**](DefaultApi.md#replace_namespaced_virtual_machine_export) | **PUT** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports/{name} | +[**replace_namespaced_virtual_machine_instance**](DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | +[**replace_namespaced_virtual_machine_instance_migration**](DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | +[**replace_namespaced_virtual_machine_instance_preset**](DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | +[**replace_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | +[**replace_namespaced_virtual_machine_instancetype**](DefaultApi.md#replace_namespaced_virtual_machine_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | +[**replace_namespaced_virtual_machine_pool**](DefaultApi.md#replace_namespaced_virtual_machine_pool) | **PUT** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | +[**replace_namespaced_virtual_machine_preference**](DefaultApi.md#replace_namespaced_virtual_machine_preference) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | +[**replace_namespaced_virtual_machine_restore**](DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name} | +[**replace_namespaced_virtual_machine_snapshot**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name} | +[**replace_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | +[**replace_virtual_machine_clone**](DefaultApi.md#replace_virtual_machine_clone) | **PUT** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | +[**replace_virtual_machine_cluster_instancetype**](DefaultApi.md#replace_virtual_machine_cluster_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | +[**replace_virtual_machine_cluster_preference**](DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | [**v1_check_health**](DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | -[**v1_console**](DefaultApi.md#v1_console) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | -[**v1_expand_spec**](DefaultApi.md#v1_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/expand-vm-spec | -[**v1_filesystemlist**](DefaultApi.md#v1_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | -[**v1_freeze**](DefaultApi.md#v1_freeze) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze | +[**v1_console**](DefaultApi.md#v1_console) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/console | +[**v1_expand_spec**](DefaultApi.md#v1_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/expand-vm-spec | +[**v1_filesystemlist**](DefaultApi.md#v1_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/filesystemlist | +[**v1_freeze**](DefaultApi.md#v1_freeze) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/freeze | [**v1_get_sub_api_group**](DefaultApi.md#v1_get_sub_api_group) | **GET** /apis/subresources.kubevirt.io | [**v1_guestfs**](DefaultApi.md#v1_guestfs) | **GET** /apis/subresources.kubevirt.io/v1/guestfs | -[**v1_guestosinfo**](DefaultApi.md#v1_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | -[**v1_memory_dump**](DefaultApi.md#v1_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/memorydump | -[**v1_migrate**](DefaultApi.md#v1_migrate) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | -[**v1_pause**](DefaultApi.md#v1_pause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | -[**v1_remove_memory_dump**](DefaultApi.md#v1_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removememorydump | -[**v1_restart**](DefaultApi.md#v1_restart) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | -[**v1_sev_fetch_cert_chain**](DefaultApi.md#v1_sev_fetch_cert_chain) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/fetchcertchain | -[**v1_sev_inject_launch_secret**](DefaultApi.md#v1_sev_inject_launch_secret) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/injectlaunchsecret | -[**v1_sev_query_launch_measurement**](DefaultApi.md#v1_sev_query_launch_measurement) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/querylaunchmeasurement | -[**v1_sev_setup_session**](DefaultApi.md#v1_sev_setup_session) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/setupsession | -[**v1_soft_reboot**](DefaultApi.md#v1_soft_reboot) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/softreboot | -[**v1_start**](DefaultApi.md#v1_start) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | -[**v1_stop**](DefaultApi.md#v1_stop) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | -[**v1_unfreeze**](DefaultApi.md#v1_unfreeze) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unfreeze | -[**v1_unpause**](DefaultApi.md#v1_unpause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause | -[**v1_userlist**](DefaultApi.md#v1_userlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | +[**v1_guestosinfo**](DefaultApi.md#v1_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/guestosinfo | +[**v1_memory_dump**](DefaultApi.md#v1_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/memorydump | +[**v1_migrate**](DefaultApi.md#v1_migrate) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/migrate | +[**v1_pause**](DefaultApi.md#v1_pause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/pause | +[**v1_remove_memory_dump**](DefaultApi.md#v1_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/removememorydump | +[**v1_restart**](DefaultApi.md#v1_restart) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/restart | +[**v1_sev_fetch_cert_chain**](DefaultApi.md#v1_sev_fetch_cert_chain) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/sev/fetchcertchain | +[**v1_sev_inject_launch_secret**](DefaultApi.md#v1_sev_inject_launch_secret) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/sev/injectlaunchsecret | +[**v1_sev_query_launch_measurement**](DefaultApi.md#v1_sev_query_launch_measurement) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/sev/querylaunchmeasurement | +[**v1_sev_setup_session**](DefaultApi.md#v1_sev_setup_session) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/sev/setupsession | +[**v1_soft_reboot**](DefaultApi.md#v1_soft_reboot) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/softreboot | +[**v1_start**](DefaultApi.md#v1_start) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/start | +[**v1_stop**](DefaultApi.md#v1_stop) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/stop | +[**v1_unfreeze**](DefaultApi.md#v1_unfreeze) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/unfreeze | +[**v1_unpause**](DefaultApi.md#v1_unpause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/unpause | +[**v1_userlist**](DefaultApi.md#v1_userlist) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/userlist | [**v1_version**](DefaultApi.md#v1_version) | **GET** /apis/subresources.kubevirt.io/v1/version | -[**v1_vnc**](DefaultApi.md#v1_vnc) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | -[**v1_vnc_screenshot**](DefaultApi.md#v1_vnc_screenshot) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc/screenshot | -[**v1_vsock**](DefaultApi.md#v1_vsock) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vsock | +[**v1_vnc**](DefaultApi.md#v1_vnc) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vnc | +[**v1_vnc_screenshot**](DefaultApi.md#v1_vnc_screenshot) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vnc/screenshot | +[**v1_vsock**](DefaultApi.md#v1_vsock) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vsock | [**v1alpha3_check_health**](DefaultApi.md#v1alpha3_check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha3/healthz | -[**v1alpha3_console**](DefaultApi.md#v1alpha3_console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console | -[**v1alpha3_expand_spec**](DefaultApi.md#v1alpha3_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/expand-vm-spec | -[**v1alpha3_filesystemlist**](DefaultApi.md#v1alpha3_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist | -[**v1alpha3_freeze**](DefaultApi.md#v1alpha3_freeze) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze | +[**v1alpha3_console**](DefaultApi.md#v1alpha3_console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/console | +[**v1alpha3_expand_spec**](DefaultApi.md#v1alpha3_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/expand-vm-spec | +[**v1alpha3_filesystemlist**](DefaultApi.md#v1alpha3_filesystemlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/filesystemlist | +[**v1alpha3_freeze**](DefaultApi.md#v1alpha3_freeze) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/freeze | [**v1alpha3_guestfs**](DefaultApi.md#v1alpha3_guestfs) | **GET** /apis/subresources.kubevirt.io/v1alpha3/guestfs | -[**v1alpha3_guestosinfo**](DefaultApi.md#v1alpha3_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo | -[**v1alpha3_memory_dump**](DefaultApi.md#v1alpha3_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/memorydump | -[**v1alpha3_migrate**](DefaultApi.md#v1alpha3_migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate | -[**v1alpha3_pause**](DefaultApi.md#v1alpha3_pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause | -[**v1alpha3_remove_memory_dump**](DefaultApi.md#v1alpha3_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removememorydump | -[**v1alpha3_restart**](DefaultApi.md#v1alpha3_restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart | -[**v1alpha3_sev_fetch_cert_chain**](DefaultApi.md#v1alpha3_sev_fetch_cert_chain) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/fetchcertchain | -[**v1alpha3_sev_inject_launch_secret**](DefaultApi.md#v1alpha3_sev_inject_launch_secret) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/injectlaunchsecret | -[**v1alpha3_sev_query_launch_measurement**](DefaultApi.md#v1alpha3_sev_query_launch_measurement) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/querylaunchmeasurement | -[**v1alpha3_sev_setup_session**](DefaultApi.md#v1alpha3_sev_setup_session) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/setupsession | -[**v1alpha3_soft_reboot**](DefaultApi.md#v1alpha3_soft_reboot) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/softreboot | -[**v1alpha3_start**](DefaultApi.md#v1alpha3_start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start | -[**v1alpha3_stop**](DefaultApi.md#v1alpha3_stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop | -[**v1alpha3_unfreeze**](DefaultApi.md#v1alpha3_unfreeze) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unfreeze | -[**v1alpha3_unpause**](DefaultApi.md#v1alpha3_unpause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause | -[**v1alpha3_userlist**](DefaultApi.md#v1alpha3_userlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist | +[**v1alpha3_guestosinfo**](DefaultApi.md#v1alpha3_guestosinfo) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/guestosinfo | +[**v1alpha3_memory_dump**](DefaultApi.md#v1alpha3_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/memorydump | +[**v1alpha3_migrate**](DefaultApi.md#v1alpha3_migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/migrate | +[**v1alpha3_pause**](DefaultApi.md#v1alpha3_pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/pause | +[**v1alpha3_remove_memory_dump**](DefaultApi.md#v1alpha3_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/removememorydump | +[**v1alpha3_restart**](DefaultApi.md#v1alpha3_restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/restart | +[**v1alpha3_sev_fetch_cert_chain**](DefaultApi.md#v1alpha3_sev_fetch_cert_chain) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/sev/fetchcertchain | +[**v1alpha3_sev_inject_launch_secret**](DefaultApi.md#v1alpha3_sev_inject_launch_secret) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/sev/injectlaunchsecret | +[**v1alpha3_sev_query_launch_measurement**](DefaultApi.md#v1alpha3_sev_query_launch_measurement) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/sev/querylaunchmeasurement | +[**v1alpha3_sev_setup_session**](DefaultApi.md#v1alpha3_sev_setup_session) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/sev/setupsession | +[**v1alpha3_soft_reboot**](DefaultApi.md#v1alpha3_soft_reboot) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/softreboot | +[**v1alpha3_start**](DefaultApi.md#v1alpha3_start) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/start | +[**v1alpha3_stop**](DefaultApi.md#v1alpha3_stop) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/stop | +[**v1alpha3_unfreeze**](DefaultApi.md#v1alpha3_unfreeze) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/unfreeze | +[**v1alpha3_unpause**](DefaultApi.md#v1alpha3_unpause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/unpause | +[**v1alpha3_userlist**](DefaultApi.md#v1alpha3_userlist) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/userlist | [**v1alpha3_version**](DefaultApi.md#v1alpha3_version) | **GET** /apis/subresources.kubevirt.io/v1alpha3/version | -[**v1alpha3_vnc**](DefaultApi.md#v1alpha3_vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc | -[**v1alpha3_vnc_screenshot**](DefaultApi.md#v1alpha3_vnc_screenshot) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc/screenshot | -[**v1alpha3_vsock**](DefaultApi.md#v1alpha3_vsock) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vsock | +[**v1alpha3_vnc**](DefaultApi.md#v1alpha3_vnc) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/vnc | +[**v1alpha3_vnc_screenshot**](DefaultApi.md#v1alpha3_vnc_screenshot) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/vnc/screenshot | +[**v1alpha3_vsock**](DefaultApi.md#v1alpha3_vsock) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/vsock | [**v1alpha3dump_cluster_profiler**](DefaultApi.md#v1alpha3dump_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/dump-cluster-profiler | [**v1alpha3get_api_sub_resources**](DefaultApi.md#v1alpha3get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1alpha3/ | [**v1alpha3start_cluster_profiler**](DefaultApi.md#v1alpha3start_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/start-cluster-profiler | [**v1alpha3stop_cluster_profiler**](DefaultApi.md#v1alpha3stop_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/stop-cluster-profiler | -[**v1alpha3usbredir**](DefaultApi.md#v1alpha3usbredir) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir | -[**v1alpha3vm_addvolume**](DefaultApi.md#v1alpha3vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | -[**v1alpha3vm_expand_spec**](DefaultApi.md#v1alpha3vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec | -[**v1alpha3vm_port_forward**](DefaultApi.md#v1alpha3vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | -[**v1alpha3vm_port_forward_with_protocol**](DefaultApi.md#v1alpha3vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | -[**v1alpha3vm_removevolume**](DefaultApi.md#v1alpha3vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | -[**v1alpha3vmi_addvolume**](DefaultApi.md#v1alpha3vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | -[**v1alpha3vmi_port_forward**](DefaultApi.md#v1alpha3vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | -[**v1alpha3vmi_port_forward_with_protocol**](DefaultApi.md#v1alpha3vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | -[**v1alpha3vmi_removevolume**](DefaultApi.md#v1alpha3vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | +[**v1alpha3usbredir**](DefaultApi.md#v1alpha3usbredir) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/usbredir | +[**v1alpha3vm_addvolume**](DefaultApi.md#v1alpha3vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/addvolume | +[**v1alpha3vm_expand_spec**](DefaultApi.md#v1alpha3vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/expand-spec | +[**v1alpha3vm_port_forward**](DefaultApi.md#v1alpha3vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/portforward/{port} | +[**v1alpha3vm_port_forward_with_protocol**](DefaultApi.md#v1alpha3vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/portforward/{port}/{protocol} | +[**v1alpha3vm_removevolume**](DefaultApi.md#v1alpha3vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/removevolume | +[**v1alpha3vmi_addvolume**](DefaultApi.md#v1alpha3vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/addvolume | +[**v1alpha3vmi_port_forward**](DefaultApi.md#v1alpha3vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port} | +[**v1alpha3vmi_port_forward_with_protocol**](DefaultApi.md#v1alpha3vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port}/{protocol} | +[**v1alpha3vmi_removevolume**](DefaultApi.md#v1alpha3vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/removevolume | [**v1dump_cluster_profiler**](DefaultApi.md#v1dump_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/dump-cluster-profiler | [**v1get_api_sub_resources**](DefaultApi.md#v1get_api_sub_resources) | **GET** /apis/subresources.kubevirt.io/v1/ | [**v1start_cluster_profiler**](DefaultApi.md#v1start_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/start-cluster-profiler | [**v1stop_cluster_profiler**](DefaultApi.md#v1stop_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/stop-cluster-profiler | -[**v1usbredir**](DefaultApi.md#v1usbredir) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir | -[**v1vm_addvolume**](DefaultApi.md#v1vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume | -[**v1vm_expand_spec**](DefaultApi.md#v1vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec | -[**v1vm_port_forward**](DefaultApi.md#v1vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | -[**v1vm_port_forward_with_protocol**](DefaultApi.md#v1vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | -[**v1vm_removevolume**](DefaultApi.md#v1vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume | -[**v1vmi_addvolume**](DefaultApi.md#v1vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume | -[**v1vmi_port_forward**](DefaultApi.md#v1vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+} | -[**v1vmi_port_forward_with_protocol**](DefaultApi.md#v1vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp} | -[**v1vmi_removevolume**](DefaultApi.md#v1vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume | +[**v1usbredir**](DefaultApi.md#v1usbredir) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/usbredir | +[**v1vm_addvolume**](DefaultApi.md#v1vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/addvolume | +[**v1vm_expand_spec**](DefaultApi.md#v1vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/expand-spec | +[**v1vm_port_forward**](DefaultApi.md#v1vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/portforward/{port} | +[**v1vm_port_forward_with_protocol**](DefaultApi.md#v1vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/portforward/{port}/{protocol} | +[**v1vm_removevolume**](DefaultApi.md#v1vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/removevolume | +[**v1vmi_addvolume**](DefaultApi.md#v1vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/addvolume | +[**v1vmi_port_forward**](DefaultApi.md#v1vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port} | +[**v1vmi_port_forward_with_protocol**](DefaultApi.md#v1vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port}/{protocol} | +[**v1vmi_removevolume**](DefaultApi.md#v1vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/removevolume | [**watch_kube_virt_list_for_all_namespaces**](DefaultApi.md#watch_kube_virt_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/kubevirt | [**watch_migration_policy_list_for_all_namespaces**](DefaultApi.md#watch_migration_policy_list_for_all_namespaces) | **GET** /apis/migrations.kubevirt.io/v1alpha1/watch/migrationpolicies | -[**watch_namespaced_kube_virt**](DefaultApi.md#watch_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt | -[**watch_namespaced_virtual_machine**](DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines | -[**watch_namespaced_virtual_machine_export**](DefaultApi.md#watch_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports | -[**watch_namespaced_virtual_machine_instance**](DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances | -[**watch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations | -[**watch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets | -[**watch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets | -[**watch_namespaced_virtual_machine_instancetype**](DefaultApi.md#watch_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes | -[**watch_namespaced_virtual_machine_pool**](DefaultApi.md#watch_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools | -[**watch_namespaced_virtual_machine_preference**](DefaultApi.md#watch_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences | -[**watch_namespaced_virtual_machine_restore**](DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores | -[**watch_namespaced_virtual_machine_snapshot**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots | -[**watch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents | +[**watch_namespaced_kube_virt**](DefaultApi.md#watch_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/kubevirt | +[**watch_namespaced_virtual_machine**](DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachines | +[**watch_namespaced_virtual_machine_export**](DefaultApi.md#watch_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachineexports | +[**watch_namespaced_virtual_machine_instance**](DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstances | +[**watch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancemigrations | +[**watch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancepresets | +[**watch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancereplicasets | +[**watch_namespaced_virtual_machine_instancetype**](DefaultApi.md#watch_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachineinstancetypes | +[**watch_namespaced_virtual_machine_pool**](DefaultApi.md#watch_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinepools | +[**watch_namespaced_virtual_machine_preference**](DefaultApi.md#watch_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinepreferences | +[**watch_namespaced_virtual_machine_restore**](DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinerestores | +[**watch_namespaced_virtual_machine_snapshot**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinesnapshots | +[**watch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinesnapshotcontents | [**watch_virtual_machine_clone_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_clone_list_for_all_namespaces) | **GET** /apis/clone.kubevirt.io/v1alpha1/watch/virtualmachineclones | [**watch_virtual_machine_cluster_instancetype_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterinstancetypes | [**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterpreferences | @@ -8548,7 +8548,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1_expand_spec** -> str v1_expand_spec() +> str v1_expand_spec(namespace) @@ -8564,16 +8564,20 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - api_response = api_instance.v1_expand_spec() + api_response = api_instance.v1_expand_spec(namespace) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->v1_expand_spec: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type @@ -8591,7 +8595,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1_filesystemlist** -> V1VirtualMachineInstanceFileSystemList v1_filesystemlist() +> V1VirtualMachineInstanceFileSystemList v1_filesystemlist(name, namespace) @@ -8607,16 +8611,22 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - api_response = api_instance.v1_filesystemlist() + api_response = api_instance.v1_filesystemlist(name, namespace) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->v1_filesystemlist: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type @@ -8679,7 +8689,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: */* - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -8863,7 +8873,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: */* - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -8914,7 +8924,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: */* - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -8965,7 +8975,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: */* - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -9065,7 +9075,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: */* - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -9165,7 +9175,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: */* - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -9265,7 +9275,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: */* - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -9365,7 +9375,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: */* - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -9416,7 +9426,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: */* - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -9516,13 +9526,13 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: */* - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1_userlist** -> V1VirtualMachineInstanceGuestOSUserList v1_userlist() +> V1VirtualMachineInstanceGuestOSUserList v1_userlist(name, namespace) @@ -9538,16 +9548,22 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - api_response = api_instance.v1_userlist() + api_response = api_instance.v1_userlist(name, namespace) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->v1_userlist: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type @@ -9846,7 +9862,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1alpha3_expand_spec** -> str v1alpha3_expand_spec() +> str v1alpha3_expand_spec(namespace) @@ -9862,16 +9878,20 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - api_response = api_instance.v1alpha3_expand_spec() + api_response = api_instance.v1alpha3_expand_spec(namespace) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->v1alpha3_expand_spec: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type @@ -9889,7 +9909,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1alpha3_filesystemlist** -> V1VirtualMachineInstanceFileSystemList v1alpha3_filesystemlist() +> V1VirtualMachineInstanceFileSystemList v1alpha3_filesystemlist(name, namespace) @@ -9905,16 +9925,22 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - api_response = api_instance.v1alpha3_filesystemlist() + api_response = api_instance.v1alpha3_filesystemlist(name, namespace) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->v1alpha3_filesystemlist: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type @@ -9977,7 +10003,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: */* - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -10118,7 +10144,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: */* - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -10169,7 +10195,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: */* - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -10220,7 +10246,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: */* - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -10320,7 +10346,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: */* - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -10420,7 +10446,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: */* - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -10520,7 +10546,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: */* - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -10620,7 +10646,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: */* - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -10671,7 +10697,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: */* - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -10771,13 +10797,13 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: */* - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1alpha3_userlist** -> V1VirtualMachineInstanceGuestOSUserList v1alpha3_userlist() +> V1VirtualMachineInstanceGuestOSUserList v1alpha3_userlist(name, namespace) @@ -10793,16 +10819,22 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - api_response = api_instance.v1alpha3_userlist() + api_response = api_instance.v1alpha3_userlist(name, namespace) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->v1alpha3_userlist: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type @@ -11266,7 +11298,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: */* - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -11468,7 +11500,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: */* - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -11519,7 +11551,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: */* - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -11672,7 +11704,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: */* - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -11934,7 +11966,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: */* - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -12136,7 +12168,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: */* - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -12187,7 +12219,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: */* - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -12340,7 +12372,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: */* - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index bbac572c..6259fa51 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.1.0-rc.0-223-g397efb8b5" + release_note="Auto-generated client v1.1.0-rc.0-240-gbc3539a10" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 124660de..15036023 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.1.0-rc.0-223-g397efb8b5/python' + self.user_agent = 'Swagger-Codegen/v1.1.0-rc.0-240-gbc3539a10/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index c9407586..ac22aa36 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -240,7 +240,7 @@ def create_namespaced_kube_virt_with_http_info(self, body, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt', 'POST', path_params, query_params, header_params, @@ -351,7 +351,7 @@ def create_namespaced_virtual_machine_with_http_info(self, body, namespace, **kw # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines', 'POST', path_params, query_params, header_params, @@ -462,7 +462,7 @@ def create_namespaced_virtual_machine_export_with_http_info(self, body, namespac # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports', 'POST', + return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports', 'POST', path_params, query_params, header_params, @@ -573,7 +573,7 @@ def create_namespaced_virtual_machine_instance_with_http_info(self, body, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances', 'POST', path_params, query_params, header_params, @@ -684,7 +684,7 @@ def create_namespaced_virtual_machine_instance_migration_with_http_info(self, bo # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations', 'POST', path_params, query_params, header_params, @@ -795,7 +795,7 @@ def create_namespaced_virtual_machine_instance_preset_with_http_info(self, body, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets', 'POST', path_params, query_params, header_params, @@ -906,7 +906,7 @@ def create_namespaced_virtual_machine_instance_replica_set_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets', 'POST', path_params, query_params, header_params, @@ -1017,7 +1017,7 @@ def create_namespaced_virtual_machine_instancetype_with_http_info(self, body, na # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes', 'POST', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes', 'POST', path_params, query_params, header_params, @@ -1128,7 +1128,7 @@ def create_namespaced_virtual_machine_pool_with_http_info(self, body, namespace, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools', 'POST', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools', 'POST', path_params, query_params, header_params, @@ -1239,7 +1239,7 @@ def create_namespaced_virtual_machine_preference_with_http_info(self, body, name # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'POST', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences', 'POST', path_params, query_params, header_params, @@ -1350,7 +1350,7 @@ def create_namespaced_virtual_machine_restore_with_http_info(self, body, namespa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores', 'POST', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores', 'POST', path_params, query_params, header_params, @@ -1461,7 +1461,7 @@ def create_namespaced_virtual_machine_snapshot_with_http_info(self, body, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots', 'POST', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots', 'POST', path_params, query_params, header_params, @@ -1572,7 +1572,7 @@ def create_namespaced_virtual_machine_snapshot_content_with_http_info(self, body # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents', 'POST', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents', 'POST', path_params, query_params, header_params, @@ -2134,7 +2134,7 @@ def delete_collection_namespaced_kube_virt_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt', 'DELETE', path_params, query_params, header_params, @@ -2259,7 +2259,7 @@ def delete_collection_namespaced_virtual_machine_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines', 'DELETE', path_params, query_params, header_params, @@ -2384,7 +2384,7 @@ def delete_collection_namespaced_virtual_machine_export_with_http_info(self, **k # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports', 'DELETE', + return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports', 'DELETE', path_params, query_params, header_params, @@ -2509,7 +2509,7 @@ def delete_collection_namespaced_virtual_machine_instance_with_http_info(self, * # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances', 'DELETE', path_params, query_params, header_params, @@ -2634,7 +2634,7 @@ def delete_collection_namespaced_virtual_machine_instance_migration_with_http_in # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations', 'DELETE', path_params, query_params, header_params, @@ -2759,7 +2759,7 @@ def delete_collection_namespaced_virtual_machine_instance_preset_with_http_info( # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets', 'DELETE', path_params, query_params, header_params, @@ -2884,7 +2884,7 @@ def delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_ # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets', 'DELETE', path_params, query_params, header_params, @@ -3009,7 +3009,7 @@ def delete_collection_namespaced_virtual_machine_instancetype_with_http_info(sel # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes', 'DELETE', path_params, query_params, header_params, @@ -3134,7 +3134,7 @@ def delete_collection_namespaced_virtual_machine_pool_with_http_info(self, **kwa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools', 'DELETE', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools', 'DELETE', path_params, query_params, header_params, @@ -3259,7 +3259,7 @@ def delete_collection_namespaced_virtual_machine_preference_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences', 'DELETE', path_params, query_params, header_params, @@ -3384,7 +3384,7 @@ def delete_collection_namespaced_virtual_machine_restore_with_http_info(self, ** # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores', 'DELETE', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores', 'DELETE', path_params, query_params, header_params, @@ -3509,7 +3509,7 @@ def delete_collection_namespaced_virtual_machine_snapshot_with_http_info(self, * # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots', 'DELETE', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots', 'DELETE', path_params, query_params, header_params, @@ -3634,7 +3634,7 @@ def delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents', 'DELETE', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents', 'DELETE', path_params, query_params, header_params, @@ -4132,7 +4132,7 @@ def delete_migration_policy_with_http_info(self, name, body, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name}', 'DELETE', path_params, query_params, header_params, @@ -4262,7 +4262,7 @@ def delete_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kw # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name}', 'DELETE', path_params, query_params, header_params, @@ -4392,7 +4392,7 @@ def delete_namespaced_virtual_machine_with_http_info(self, name, namespace, body # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}', 'DELETE', path_params, query_params, header_params, @@ -4522,7 +4522,7 @@ def delete_namespaced_virtual_machine_export_with_http_info(self, name, namespac # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports/{name}', 'DELETE', path_params, query_params, header_params, @@ -4652,7 +4652,7 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}', 'DELETE', path_params, query_params, header_params, @@ -4782,7 +4782,7 @@ def delete_namespaced_virtual_machine_instance_migration_with_http_info(self, na # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name}', 'DELETE', path_params, query_params, header_params, @@ -4912,7 +4912,7 @@ def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, name, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name}', 'DELETE', path_params, query_params, header_params, @@ -5042,7 +5042,7 @@ def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name}', 'DELETE', path_params, query_params, header_params, @@ -5172,7 +5172,7 @@ def delete_namespaced_virtual_machine_instancetype_with_http_info(self, name, na # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name}', 'DELETE', path_params, query_params, header_params, @@ -5302,7 +5302,7 @@ def delete_namespaced_virtual_machine_pool_with_http_info(self, name, namespace, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name}', 'DELETE', path_params, query_params, header_params, @@ -5432,7 +5432,7 @@ def delete_namespaced_virtual_machine_preference_with_http_info(self, name, name # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name}', 'DELETE', path_params, query_params, header_params, @@ -5562,7 +5562,7 @@ def delete_namespaced_virtual_machine_restore_with_http_info(self, name, namespa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name}', 'DELETE', path_params, query_params, header_params, @@ -5692,7 +5692,7 @@ def delete_namespaced_virtual_machine_snapshot_with_http_info(self, name, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name}', 'DELETE', path_params, query_params, header_params, @@ -5822,7 +5822,7 @@ def delete_namespaced_virtual_machine_snapshot_content_with_http_info(self, name # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name}', 'DELETE', path_params, query_params, header_params, @@ -5945,7 +5945,7 @@ def delete_virtual_machine_clone_with_http_info(self, name, body, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name}', 'DELETE', path_params, query_params, header_params, @@ -6068,7 +6068,7 @@ def delete_virtual_machine_cluster_instancetype_with_http_info(self, name, body, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name}', 'DELETE', path_params, query_params, header_params, @@ -6191,7 +6191,7 @@ def delete_virtual_machine_cluster_preference_with_http_info(self, name, body, * # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name}', 'DELETE', path_params, query_params, header_params, @@ -8491,7 +8491,7 @@ def list_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt', 'GET', path_params, query_params, header_params, @@ -8623,7 +8623,7 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines', 'GET', path_params, query_params, header_params, @@ -8755,7 +8755,7 @@ def list_namespaced_virtual_machine_export_with_http_info(self, namespace, **kwa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports', 'GET', + return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports', 'GET', path_params, query_params, header_params, @@ -8887,7 +8887,7 @@ def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **k # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances', 'GET', path_params, query_params, header_params, @@ -9019,7 +9019,7 @@ def list_namespaced_virtual_machine_instance_migration_with_http_info(self, name # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations', 'GET', path_params, query_params, header_params, @@ -9151,7 +9151,7 @@ def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets', 'GET', path_params, query_params, header_params, @@ -9283,7 +9283,7 @@ def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, @@ -9415,7 +9415,7 @@ def list_namespaced_virtual_machine_instancetype_with_http_info(self, namespace, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes', 'GET', path_params, query_params, header_params, @@ -9547,7 +9547,7 @@ def list_namespaced_virtual_machine_pool_with_http_info(self, namespace, **kwarg # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools', 'GET', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools', 'GET', path_params, query_params, header_params, @@ -9679,7 +9679,7 @@ def list_namespaced_virtual_machine_preference_with_http_info(self, namespace, * # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences', 'GET', path_params, query_params, header_params, @@ -9811,7 +9811,7 @@ def list_namespaced_virtual_machine_restore_with_http_info(self, namespace, **kw # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores', 'GET', path_params, query_params, header_params, @@ -9943,7 +9943,7 @@ def list_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, **k # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots', 'GET', path_params, query_params, header_params, @@ -10075,7 +10075,7 @@ def list_namespaced_virtual_machine_snapshot_content_with_http_info(self, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents', 'GET', path_params, query_params, header_params, @@ -12061,7 +12061,7 @@ def patch_migration_policy_with_http_info(self, name, body, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name}', 'PATCH', path_params, query_params, header_params, @@ -12179,7 +12179,7 @@ def patch_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name}', 'PATCH', path_params, query_params, header_params, @@ -12297,7 +12297,7 @@ def patch_namespaced_virtual_machine_with_http_info(self, name, namespace, body, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}', 'PATCH', path_params, query_params, header_params, @@ -12415,7 +12415,7 @@ def patch_namespaced_virtual_machine_export_with_http_info(self, name, namespace # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports/{name}', 'PATCH', path_params, query_params, header_params, @@ -12533,7 +12533,7 @@ def patch_namespaced_virtual_machine_instance_with_http_info(self, name, namespa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}', 'PATCH', path_params, query_params, header_params, @@ -12651,7 +12651,7 @@ def patch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name}', 'PATCH', path_params, query_params, header_params, @@ -12769,7 +12769,7 @@ def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, name, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name}', 'PATCH', path_params, query_params, header_params, @@ -12887,7 +12887,7 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name}', 'PATCH', path_params, query_params, header_params, @@ -13005,7 +13005,7 @@ def patch_namespaced_virtual_machine_instancetype_with_http_info(self, name, nam # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name}', 'PATCH', path_params, query_params, header_params, @@ -13123,7 +13123,7 @@ def patch_namespaced_virtual_machine_pool_with_http_info(self, name, namespace, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name}', 'PATCH', path_params, query_params, header_params, @@ -13241,7 +13241,7 @@ def patch_namespaced_virtual_machine_preference_with_http_info(self, name, names # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name}', 'PATCH', path_params, query_params, header_params, @@ -13359,7 +13359,7 @@ def patch_namespaced_virtual_machine_restore_with_http_info(self, name, namespac # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name}', 'PATCH', path_params, query_params, header_params, @@ -13477,7 +13477,7 @@ def patch_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name}', 'PATCH', path_params, query_params, header_params, @@ -13595,7 +13595,7 @@ def patch_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name}', 'PATCH', path_params, query_params, header_params, @@ -13706,7 +13706,7 @@ def patch_virtual_machine_clone_with_http_info(self, name, body, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name}', 'PATCH', path_params, query_params, header_params, @@ -13817,7 +13817,7 @@ def patch_virtual_machine_cluster_instancetype_with_http_info(self, name, body, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name}', 'PATCH', path_params, query_params, header_params, @@ -13928,7 +13928,7 @@ def patch_virtual_machine_cluster_preference_with_http_info(self, name, body, ** # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PATCH', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name}', 'PATCH', path_params, query_params, header_params, @@ -14036,7 +14036,7 @@ def read_migration_policy_with_http_info(self, name, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name}', 'GET', path_params, query_params, header_params, @@ -14151,7 +14151,7 @@ def read_namespaced_kube_virt_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name}', 'GET', path_params, query_params, header_params, @@ -14266,7 +14266,7 @@ def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwar # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}', 'GET', path_params, query_params, header_params, @@ -14381,7 +14381,7 @@ def read_namespaced_virtual_machine_export_with_http_info(self, name, namespace, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports/{name}', 'GET', path_params, query_params, header_params, @@ -14496,7 +14496,7 @@ def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespac # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}', 'GET', path_params, query_params, header_params, @@ -14611,7 +14611,7 @@ def read_namespaced_virtual_machine_instance_migration_with_http_info(self, name # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name}', 'GET', path_params, query_params, header_params, @@ -14726,7 +14726,7 @@ def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, n # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name}', 'GET', path_params, query_params, header_params, @@ -14841,7 +14841,7 @@ def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name}', 'GET', path_params, query_params, header_params, @@ -14956,7 +14956,7 @@ def read_namespaced_virtual_machine_instancetype_with_http_info(self, name, name # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name}', 'GET', path_params, query_params, header_params, @@ -15071,7 +15071,7 @@ def read_namespaced_virtual_machine_pool_with_http_info(self, name, namespace, * # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name}', 'GET', path_params, query_params, header_params, @@ -15186,7 +15186,7 @@ def read_namespaced_virtual_machine_preference_with_http_info(self, name, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name}', 'GET', path_params, query_params, header_params, @@ -15301,7 +15301,7 @@ def read_namespaced_virtual_machine_restore_with_http_info(self, name, namespace # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name}', 'GET', path_params, query_params, header_params, @@ -15416,7 +15416,7 @@ def read_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespac # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name}', 'GET', path_params, query_params, header_params, @@ -15531,7 +15531,7 @@ def read_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name}', 'GET', path_params, query_params, header_params, @@ -15639,7 +15639,7 @@ def read_virtual_machine_clone_with_http_info(self, name, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name}', 'GET', path_params, query_params, header_params, @@ -15747,7 +15747,7 @@ def read_virtual_machine_cluster_instancetype_with_http_info(self, name, **kwarg # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name}', 'GET', path_params, query_params, header_params, @@ -15855,7 +15855,7 @@ def read_virtual_machine_cluster_preference_with_http_info(self, name, **kwargs) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name}', 'GET', path_params, query_params, header_params, @@ -15966,7 +15966,7 @@ def replace_migration_policy_with_http_info(self, name, body, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name}', 'PUT', path_params, query_params, header_params, @@ -16084,7 +16084,7 @@ def replace_namespaced_kube_virt_with_http_info(self, name, namespace, body, **k # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name}', 'PUT', path_params, query_params, header_params, @@ -16202,7 +16202,7 @@ def replace_namespaced_virtual_machine_with_http_info(self, name, namespace, bod # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}', 'PUT', path_params, query_params, header_params, @@ -16320,7 +16320,7 @@ def replace_namespaced_virtual_machine_export_with_http_info(self, name, namespa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports/{name}', 'PUT', path_params, query_params, header_params, @@ -16438,7 +16438,7 @@ def replace_namespaced_virtual_machine_instance_with_http_info(self, name, names # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}', 'PUT', path_params, query_params, header_params, @@ -16556,7 +16556,7 @@ def replace_namespaced_virtual_machine_instance_migration_with_http_info(self, n # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name}', 'PUT', path_params, query_params, header_params, @@ -16674,7 +16674,7 @@ def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, name # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name}', 'PUT', path_params, query_params, header_params, @@ -16792,7 +16792,7 @@ def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name}', 'PUT', path_params, query_params, header_params, @@ -16910,7 +16910,7 @@ def replace_namespaced_virtual_machine_instancetype_with_http_info(self, name, n # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name}', 'PUT', path_params, query_params, header_params, @@ -17028,7 +17028,7 @@ def replace_namespaced_virtual_machine_pool_with_http_info(self, name, namespace # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name}', 'PUT', path_params, query_params, header_params, @@ -17146,7 +17146,7 @@ def replace_namespaced_virtual_machine_preference_with_http_info(self, name, nam # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name}', 'PUT', path_params, query_params, header_params, @@ -17264,7 +17264,7 @@ def replace_namespaced_virtual_machine_restore_with_http_info(self, name, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name}', 'PUT', path_params, query_params, header_params, @@ -17382,7 +17382,7 @@ def replace_namespaced_virtual_machine_snapshot_with_http_info(self, name, names # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name}', 'PUT', path_params, query_params, header_params, @@ -17500,7 +17500,7 @@ def replace_namespaced_virtual_machine_snapshot_content_with_http_info(self, nam # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name}', 'PUT', path_params, query_params, header_params, @@ -17611,7 +17611,7 @@ def replace_virtual_machine_clone_with_http_info(self, name, body, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name}', 'PUT', path_params, query_params, header_params, @@ -17722,7 +17722,7 @@ def replace_virtual_machine_cluster_instancetype_with_http_info(self, name, body # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name}', 'PUT', path_params, query_params, header_params, @@ -17833,7 +17833,7 @@ def replace_virtual_machine_cluster_preference_with_http_info(self, name, body, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name:[a-z0-9][a-z0-9\-]*}', 'PUT', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name}', 'PUT', path_params, query_params, header_params, @@ -18032,7 +18032,7 @@ def v1_console_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/console', 'GET', path_params, query_params, header_params, @@ -18047,7 +18047,7 @@ def v1_console_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_expand_spec(self, **kwargs): + def v1_expand_spec(self, namespace, **kwargs): """ Expands instancetype and preference into the passed VirtualMachine object. This method makes a synchronous HTTP request by default. To make an @@ -18056,22 +18056,23 @@ def v1_expand_spec(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_expand_spec(callback=callback_function) + >>> thread = api.v1_expand_spec(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_expand_spec_with_http_info(**kwargs) + return self.v1_expand_spec_with_http_info(namespace, **kwargs) else: - (data) = self.v1_expand_spec_with_http_info(**kwargs) + (data) = self.v1_expand_spec_with_http_info(namespace, **kwargs) return data - def v1_expand_spec_with_http_info(self, **kwargs): + def v1_expand_spec_with_http_info(self, namespace, **kwargs): """ Expands instancetype and preference into the passed VirtualMachine object. This method makes a synchronous HTTP request by default. To make an @@ -18080,16 +18081,17 @@ def v1_expand_spec_with_http_info(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_expand_spec_with_http_info(callback=callback_function) + >>> thread = api.v1_expand_spec_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: str If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -18104,10 +18106,16 @@ def v1_expand_spec_with_http_info(self, **kwargs): ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1_expand_spec`") + collection_formats = {} path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -18128,7 +18136,7 @@ def v1_expand_spec_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/expand-vm-spec', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/expand-vm-spec', 'PUT', path_params, query_params, header_params, @@ -18143,7 +18151,7 @@ def v1_expand_spec_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_filesystemlist(self, **kwargs): + def v1_filesystemlist(self, name, namespace, **kwargs): """ Get list of active filesystems on guest machine via guest agent This method makes a synchronous HTTP request by default. To make an @@ -18152,22 +18160,24 @@ def v1_filesystemlist(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_filesystemlist(callback=callback_function) + >>> thread = api.v1_filesystemlist(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: V1VirtualMachineInstanceFileSystemList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_filesystemlist_with_http_info(**kwargs) + return self.v1_filesystemlist_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1_filesystemlist_with_http_info(**kwargs) + (data) = self.v1_filesystemlist_with_http_info(name, namespace, **kwargs) return data - def v1_filesystemlist_with_http_info(self, **kwargs): + def v1_filesystemlist_with_http_info(self, name, namespace, **kwargs): """ Get list of active filesystems on guest machine via guest agent This method makes a synchronous HTTP request by default. To make an @@ -18176,16 +18186,18 @@ def v1_filesystemlist_with_http_info(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_filesystemlist_with_http_info(callback=callback_function) + >>> thread = api.v1_filesystemlist_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: V1VirtualMachineInstanceFileSystemList If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -18200,10 +18212,21 @@ def v1_filesystemlist_with_http_info(self, **kwargs): ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1_filesystemlist`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1_filesystemlist`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -18224,7 +18247,7 @@ def v1_filesystemlist_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/filesystemlist', 'GET', path_params, query_params, header_params, @@ -18331,10 +18354,14 @@ def v1_freeze_with_http_info(self, name, namespace, body, **kwargs): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/freeze', 'PUT', path_params, query_params, header_params, @@ -18627,7 +18654,7 @@ def v1_guestosinfo_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/guestosinfo', 'GET', path_params, query_params, header_params, @@ -18734,10 +18761,14 @@ def v1_memory_dump_with_http_info(self, name, namespace, body, **kwargs): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/memorydump', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/memorydump', 'PUT', path_params, query_params, header_params, @@ -18844,10 +18875,14 @@ def v1_migrate_with_http_info(self, name, namespace, body, **kwargs): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/migrate', 'PUT', path_params, query_params, header_params, @@ -18954,10 +18989,14 @@ def v1_pause_with_http_info(self, name, namespace, body, **kwargs): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/pause', 'PUT', path_params, query_params, header_params, @@ -19060,7 +19099,7 @@ def v1_remove_memory_dump_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removememorydump', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/removememorydump', 'PUT', path_params, query_params, header_params, @@ -19164,10 +19203,14 @@ def v1_restart_with_http_info(self, name, namespace, **kwargs): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/restart', 'PUT', path_params, query_params, header_params, @@ -19278,7 +19321,7 @@ def v1_sev_fetch_cert_chain_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/fetchcertchain', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/sev/fetchcertchain', 'GET', path_params, query_params, header_params, @@ -19385,10 +19428,14 @@ def v1_sev_inject_launch_secret_with_http_info(self, name, namespace, body, **kw body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/injectlaunchsecret', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/sev/injectlaunchsecret', 'PUT', path_params, query_params, header_params, @@ -19499,7 +19546,7 @@ def v1_sev_query_launch_measurement_with_http_info(self, name, namespace, **kwar # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/querylaunchmeasurement', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/sev/querylaunchmeasurement', 'GET', path_params, query_params, header_params, @@ -19606,10 +19653,14 @@ def v1_sev_setup_session_with_http_info(self, name, namespace, body, **kwargs): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/setupsession', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/sev/setupsession', 'PUT', path_params, query_params, header_params, @@ -19712,7 +19763,7 @@ def v1_soft_reboot_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/softreboot', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/softreboot', 'PUT', path_params, query_params, header_params, @@ -19819,10 +19870,14 @@ def v1_start_with_http_info(self, name, namespace, body, **kwargs): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/start', 'PUT', path_params, query_params, header_params, @@ -19926,10 +19981,14 @@ def v1_stop_with_http_info(self, name, namespace, **kwargs): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/stop', 'PUT', path_params, query_params, header_params, @@ -20032,7 +20091,7 @@ def v1_unfreeze_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unfreeze', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/unfreeze', 'PUT', path_params, query_params, header_params, @@ -20139,10 +20198,14 @@ def v1_unpause_with_http_info(self, name, namespace, body, **kwargs): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/unpause', 'PUT', path_params, query_params, header_params, @@ -20157,7 +20220,7 @@ def v1_unpause_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_userlist(self, **kwargs): + def v1_userlist(self, name, namespace, **kwargs): """ Get list of active users via guest agent This method makes a synchronous HTTP request by default. To make an @@ -20166,22 +20229,24 @@ def v1_userlist(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_userlist(callback=callback_function) + >>> thread = api.v1_userlist(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: V1VirtualMachineInstanceGuestOSUserList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1_userlist_with_http_info(**kwargs) + return self.v1_userlist_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1_userlist_with_http_info(**kwargs) + (data) = self.v1_userlist_with_http_info(name, namespace, **kwargs) return data - def v1_userlist_with_http_info(self, **kwargs): + def v1_userlist_with_http_info(self, name, namespace, **kwargs): """ Get list of active users via guest agent This method makes a synchronous HTTP request by default. To make an @@ -20190,16 +20255,18 @@ def v1_userlist_with_http_info(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_userlist_with_http_info(callback=callback_function) + >>> thread = api.v1_userlist_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: V1VirtualMachineInstanceGuestOSUserList If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -20214,10 +20281,21 @@ def v1_userlist_with_http_info(self, **kwargs): ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1_userlist`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1_userlist`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -20238,7 +20316,7 @@ def v1_userlist_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/userlist', 'GET', path_params, query_params, header_params, @@ -20431,7 +20509,7 @@ def v1_vnc_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vnc', 'GET', path_params, query_params, header_params, @@ -20538,7 +20616,7 @@ def v1_vnc_screenshot_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc/screenshot', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vnc/screenshot', 'GET', path_params, query_params, header_params, @@ -20652,7 +20730,7 @@ def v1_vsock_with_http_info(self, name, namespace, port, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vsock', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vsock', 'GET', path_params, query_params, header_params, @@ -20851,7 +20929,7 @@ def v1alpha3_console_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/console', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/console', 'GET', path_params, query_params, header_params, @@ -20866,7 +20944,7 @@ def v1alpha3_console_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_expand_spec(self, **kwargs): + def v1alpha3_expand_spec(self, namespace, **kwargs): """ Expands instancetype and preference into the passed VirtualMachine object. This method makes a synchronous HTTP request by default. To make an @@ -20875,22 +20953,23 @@ def v1alpha3_expand_spec(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_expand_spec(callback=callback_function) + >>> thread = api.v1alpha3_expand_spec(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_expand_spec_with_http_info(**kwargs) + return self.v1alpha3_expand_spec_with_http_info(namespace, **kwargs) else: - (data) = self.v1alpha3_expand_spec_with_http_info(**kwargs) + (data) = self.v1alpha3_expand_spec_with_http_info(namespace, **kwargs) return data - def v1alpha3_expand_spec_with_http_info(self, **kwargs): + def v1alpha3_expand_spec_with_http_info(self, namespace, **kwargs): """ Expands instancetype and preference into the passed VirtualMachine object. This method makes a synchronous HTTP request by default. To make an @@ -20899,16 +20978,17 @@ def v1alpha3_expand_spec_with_http_info(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_expand_spec_with_http_info(callback=callback_function) + >>> thread = api.v1alpha3_expand_spec_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: str If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -20923,10 +21003,16 @@ def v1alpha3_expand_spec_with_http_info(self, **kwargs): ) params[key] = val del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_expand_spec`") + collection_formats = {} path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -20947,7 +21033,7 @@ def v1alpha3_expand_spec_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/expand-vm-spec', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/expand-vm-spec', 'PUT', path_params, query_params, header_params, @@ -20962,7 +21048,7 @@ def v1alpha3_expand_spec_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_filesystemlist(self, **kwargs): + def v1alpha3_filesystemlist(self, name, namespace, **kwargs): """ Get list of active filesystems on guest machine via guest agent This method makes a synchronous HTTP request by default. To make an @@ -20971,22 +21057,24 @@ def v1alpha3_filesystemlist(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_filesystemlist(callback=callback_function) + >>> thread = api.v1alpha3_filesystemlist(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: V1VirtualMachineInstanceFileSystemList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_filesystemlist_with_http_info(**kwargs) + return self.v1alpha3_filesystemlist_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1alpha3_filesystemlist_with_http_info(**kwargs) + (data) = self.v1alpha3_filesystemlist_with_http_info(name, namespace, **kwargs) return data - def v1alpha3_filesystemlist_with_http_info(self, **kwargs): + def v1alpha3_filesystemlist_with_http_info(self, name, namespace, **kwargs): """ Get list of active filesystems on guest machine via guest agent This method makes a synchronous HTTP request by default. To make an @@ -20995,16 +21083,18 @@ def v1alpha3_filesystemlist_with_http_info(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_filesystemlist_with_http_info(callback=callback_function) + >>> thread = api.v1alpha3_filesystemlist_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: V1VirtualMachineInstanceFileSystemList If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -21019,10 +21109,21 @@ def v1alpha3_filesystemlist_with_http_info(self, **kwargs): ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_filesystemlist`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_filesystemlist`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -21043,7 +21144,7 @@ def v1alpha3_filesystemlist_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/filesystemlist', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/filesystemlist', 'GET', path_params, query_params, header_params, @@ -21150,10 +21251,14 @@ def v1alpha3_freeze_with_http_info(self, name, namespace, body, **kwargs): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/freeze', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/freeze', 'PUT', path_params, query_params, header_params, @@ -21354,7 +21459,7 @@ def v1alpha3_guestosinfo_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/guestosinfo', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/guestosinfo', 'GET', path_params, query_params, header_params, @@ -21461,10 +21566,14 @@ def v1alpha3_memory_dump_with_http_info(self, name, namespace, body, **kwargs): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/memorydump', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/memorydump', 'PUT', path_params, query_params, header_params, @@ -21571,10 +21680,14 @@ def v1alpha3_migrate_with_http_info(self, name, namespace, body, **kwargs): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/migrate', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/migrate', 'PUT', path_params, query_params, header_params, @@ -21681,10 +21794,14 @@ def v1alpha3_pause_with_http_info(self, name, namespace, body, **kwargs): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/pause', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/pause', 'PUT', path_params, query_params, header_params, @@ -21787,7 +21904,7 @@ def v1alpha3_remove_memory_dump_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removememorydump', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/removememorydump', 'PUT', path_params, query_params, header_params, @@ -21891,10 +22008,14 @@ def v1alpha3_restart_with_http_info(self, name, namespace, **kwargs): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/restart', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/restart', 'PUT', path_params, query_params, header_params, @@ -22005,7 +22126,7 @@ def v1alpha3_sev_fetch_cert_chain_with_http_info(self, name, namespace, **kwargs # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/fetchcertchain', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/sev/fetchcertchain', 'GET', path_params, query_params, header_params, @@ -22112,10 +22233,14 @@ def v1alpha3_sev_inject_launch_secret_with_http_info(self, name, namespace, body body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/injectlaunchsecret', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/sev/injectlaunchsecret', 'PUT', path_params, query_params, header_params, @@ -22226,7 +22351,7 @@ def v1alpha3_sev_query_launch_measurement_with_http_info(self, name, namespace, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/querylaunchmeasurement', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/sev/querylaunchmeasurement', 'GET', path_params, query_params, header_params, @@ -22333,10 +22458,14 @@ def v1alpha3_sev_setup_session_with_http_info(self, name, namespace, body, **kwa body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/sev/setupsession', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/sev/setupsession', 'PUT', path_params, query_params, header_params, @@ -22439,7 +22568,7 @@ def v1alpha3_soft_reboot_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/softreboot', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/softreboot', 'PUT', path_params, query_params, header_params, @@ -22546,10 +22675,14 @@ def v1alpha3_start_with_http_info(self, name, namespace, body, **kwargs): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/start', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/start', 'PUT', path_params, query_params, header_params, @@ -22653,10 +22786,14 @@ def v1alpha3_stop_with_http_info(self, name, namespace, **kwargs): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/stop', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/stop', 'PUT', path_params, query_params, header_params, @@ -22759,7 +22896,7 @@ def v1alpha3_unfreeze_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unfreeze', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/unfreeze', 'PUT', path_params, query_params, header_params, @@ -22866,10 +23003,14 @@ def v1alpha3_unpause_with_http_info(self, name, namespace, body, **kwargs): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/unpause', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/unpause', 'PUT', path_params, query_params, header_params, @@ -22884,7 +23025,7 @@ def v1alpha3_unpause_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_userlist(self, **kwargs): + def v1alpha3_userlist(self, name, namespace, **kwargs): """ Get list of active users via guest agent This method makes a synchronous HTTP request by default. To make an @@ -22893,22 +23034,24 @@ def v1alpha3_userlist(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_userlist(callback=callback_function) + >>> thread = api.v1alpha3_userlist(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: V1VirtualMachineInstanceGuestOSUserList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_userlist_with_http_info(**kwargs) + return self.v1alpha3_userlist_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1alpha3_userlist_with_http_info(**kwargs) + (data) = self.v1alpha3_userlist_with_http_info(name, namespace, **kwargs) return data - def v1alpha3_userlist_with_http_info(self, **kwargs): + def v1alpha3_userlist_with_http_info(self, name, namespace, **kwargs): """ Get list of active users via guest agent This method makes a synchronous HTTP request by default. To make an @@ -22917,16 +23060,18 @@ def v1alpha3_userlist_with_http_info(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_userlist_with_http_info(callback=callback_function) + >>> thread = api.v1alpha3_userlist_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) :return: V1VirtualMachineInstanceGuestOSUserList If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -22941,10 +23086,21 @@ def v1alpha3_userlist_with_http_info(self, **kwargs): ) params[key] = val del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_userlist`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_userlist`") + collection_formats = {} path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] query_params = [] @@ -22965,7 +23121,7 @@ def v1alpha3_userlist_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/userlist', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/userlist', 'GET', path_params, query_params, header_params, @@ -23158,7 +23314,7 @@ def v1alpha3_vnc_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/vnc', 'GET', path_params, query_params, header_params, @@ -23265,7 +23421,7 @@ def v1alpha3_vnc_screenshot_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vnc/screenshot', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/vnc/screenshot', 'GET', path_params, query_params, header_params, @@ -23379,7 +23535,7 @@ def v1alpha3_vsock_with_http_info(self, name, namespace, port, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/vsock', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/vsock', 'GET', path_params, query_params, header_params, @@ -23844,7 +24000,7 @@ def v1alpha3usbredir_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/usbredir', 'GET', path_params, query_params, header_params, @@ -23951,10 +24107,14 @@ def v1alpha3vm_addvolume_with_http_info(self, name, namespace, body, **kwargs): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/addvolume', 'PUT', path_params, query_params, header_params, @@ -24061,7 +24221,7 @@ def v1alpha3vm_expand_spec_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/expand-spec', 'GET', path_params, query_params, header_params, @@ -24171,7 +24331,7 @@ def v1alpha3vm_port_forward_with_http_info(self, name, namespace, port, **kwargs # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/portforward/{port}', 'GET', path_params, query_params, header_params, @@ -24288,7 +24448,7 @@ def v1alpha3vm_port_forward_with_protocol_with_http_info(self, name, namespace, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp}', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/portforward/{port}/{protocol}', 'GET', path_params, query_params, header_params, @@ -24395,10 +24555,14 @@ def v1alpha3vm_removevolume_with_http_info(self, name, namespace, body, **kwargs body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/removevolume', 'PUT', path_params, query_params, header_params, @@ -24505,10 +24669,14 @@ def v1alpha3vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/addvolume', 'PUT', path_params, query_params, header_params, @@ -24618,7 +24786,7 @@ def v1alpha3vmi_port_forward_with_http_info(self, name, namespace, port, **kwarg # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port}', 'GET', path_params, query_params, header_params, @@ -24735,7 +24903,7 @@ def v1alpha3vmi_port_forward_with_protocol_with_http_info(self, name, namespace, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp}', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port}/{protocol}', 'GET', path_params, query_params, header_params, @@ -24842,10 +25010,14 @@ def v1alpha3vmi_removevolume_with_http_info(self, name, namespace, body, **kwarg body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/removevolume', 'PUT', path_params, query_params, header_params, @@ -25310,7 +25482,7 @@ def v1usbredir_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/usbredir', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/usbredir', 'GET', path_params, query_params, header_params, @@ -25417,10 +25589,14 @@ def v1vm_addvolume_with_http_info(self, name, namespace, body, **kwargs): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/addvolume', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/addvolume', 'PUT', path_params, query_params, header_params, @@ -25527,7 +25703,7 @@ def v1vm_expand_spec_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/expand-spec', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/expand-spec', 'GET', path_params, query_params, header_params, @@ -25637,7 +25813,7 @@ def v1vm_port_forward_with_http_info(self, name, namespace, port, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/portforward/{port}', 'GET', path_params, query_params, header_params, @@ -25754,7 +25930,7 @@ def v1vm_port_forward_with_protocol_with_http_info(self, name, namespace, port, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp}', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/portforward/{port}/{protocol}', 'GET', path_params, query_params, header_params, @@ -25861,10 +26037,14 @@ def v1vm_removevolume_with_http_info(self, name, namespace, body, **kwargs): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines/{name:[a-z0-9][a-z0-9\-]*}/removevolume', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/removevolume', 'PUT', path_params, query_params, header_params, @@ -25971,10 +26151,14 @@ def v1vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/addvolume', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/addvolume', 'PUT', path_params, query_params, header_params, @@ -26084,7 +26268,7 @@ def v1vmi_port_forward_with_http_info(self, name, namespace, port, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port}', 'GET', path_params, query_params, header_params, @@ -26201,7 +26385,7 @@ def v1vmi_port_forward_with_protocol_with_http_info(self, name, namespace, port, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/portforward/{port:[0-9]+}/{protocol:tcp|udp}', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port}/{protocol}', 'GET', path_params, query_params, header_params, @@ -26308,10 +26492,14 @@ def v1vmi_removevolume_with_http_info(self, name, namespace, body, **kwargs): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances/{name:[a-z0-9][a-z0-9\-]*}/removevolume', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/removevolume', 'PUT', path_params, query_params, header_params, @@ -26693,7 +26881,7 @@ def watch_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/kubevirt', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace}/kubevirt', 'GET', path_params, query_params, header_params, @@ -26825,7 +27013,7 @@ def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachines', 'GET', path_params, query_params, header_params, @@ -26957,7 +27145,7 @@ def watch_namespaced_virtual_machine_export_with_http_info(self, namespace, **kw # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineexports', 'GET', + return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachineexports', 'GET', path_params, query_params, header_params, @@ -27089,7 +27277,7 @@ def watch_namespaced_virtual_machine_instance_with_http_info(self, namespace, ** # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstances', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstances', 'GET', path_params, query_params, header_params, @@ -27221,7 +27409,7 @@ def watch_namespaced_virtual_machine_instance_migration_with_http_info(self, nam # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancemigrations', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancemigrations', 'GET', path_params, query_params, header_params, @@ -27353,7 +27541,7 @@ def watch_namespaced_virtual_machine_instance_preset_with_http_info(self, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancepresets', 'GET', path_params, query_params, header_params, @@ -27485,7 +27673,7 @@ def watch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, n # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, @@ -27617,7 +27805,7 @@ def watch_namespaced_virtual_machine_instancetype_with_http_info(self, namespace # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancetypes', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachineinstancetypes', 'GET', path_params, query_params, header_params, @@ -27749,7 +27937,7 @@ def watch_namespaced_virtual_machine_pool_with_http_info(self, namespace, **kwar # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepools', 'GET', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinepools', 'GET', path_params, query_params, header_params, @@ -27881,7 +28069,7 @@ def watch_namespaced_virtual_machine_preference_with_http_info(self, namespace, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinepreferences', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinepreferences', 'GET', path_params, query_params, header_params, @@ -28013,7 +28201,7 @@ def watch_namespaced_virtual_machine_restore_with_http_info(self, namespace, **k # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinerestores', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinerestores', 'GET', path_params, query_params, header_params, @@ -28145,7 +28333,7 @@ def watch_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, ** # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshots', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinesnapshots', 'GET', path_params, query_params, header_params, @@ -28277,7 +28465,7 @@ def watch_namespaced_virtual_machine_snapshot_content_with_http_info(self, names # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachinesnapshotcontents', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinesnapshotcontents', 'GET', path_params, query_params, header_params, diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 8b8391fb..bc9a08eb 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.1.0-rc.0-223-g397efb8b5".\ + "SDK Package Version: v1.1.0-rc.0-240-gbc3539a10".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index c47faa11..a9c5058e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.1.0-rc.0-223-g397efb8b5" +VERSION = "v1.1.0-rc.0-240-gbc3539a10" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 5ade9ccd..99b0e18e 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.1.0-rc.0-223-g397efb8b5" +"packageVersion": "v1.1.0-rc.0-240-gbc3539a10" } From 132c33bd7d65a2f828b88424fe50267d3d7c46ab Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 1 Dec 2023 14:36:40 +0000 Subject: [PATCH 381/521] Client Python update by KubeVirt Prow build 1730585698047627264 --- README.md | 3 +- docs/V1ACPI.md | 10 +++ docs/V1Firmware.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_acpi.py | 125 +++++++++++++++++++++++++++++++++ kubevirt/models/v1_firmware.py | 30 +++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_acpi.py | 44 ++++++++++++ 14 files changed, 221 insertions(+), 7 deletions(-) create mode 100644 docs/V1ACPI.md create mode 100644 kubevirt/models/v1_acpi.py create mode 100644 test/test_v1_acpi.py diff --git a/README.md b/README.md index e6f28365..df71b697 100644 --- a/README.md +++ b/README.md @@ -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.1.0-rc.0-240-gbc3539a10 +- Package version: v1.1.0-rc.0-281-gc4fc4ab72 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -391,6 +391,7 @@ Class | Method | HTTP request | Description - [K8sIoApimachineryPkgApisMetaV1WatchEvent](docs/K8sIoApimachineryPkgApisMetaV1WatchEvent.md) - [K8sIoApimachineryPkgRuntimeRawExtension](docs/K8sIoApimachineryPkgRuntimeRawExtension.md) - [K8sIoApimachineryPkgUtilIntstrIntOrString](docs/K8sIoApimachineryPkgUtilIntstrIntOrString.md) + - [V1ACPI](docs/V1ACPI.md) - [V1AccessCredential](docs/V1AccessCredential.md) - [V1AccessCredentialSecretSource](docs/V1AccessCredentialSecretSource.md) - [V1AddVolumeOptions](docs/V1AddVolumeOptions.md) diff --git a/docs/V1ACPI.md b/docs/V1ACPI.md new file mode 100644 index 00000000..d8440cc0 --- /dev/null +++ b/docs/V1ACPI.md @@ -0,0 +1,10 @@ +# V1ACPI + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**slic_name_ref** | **str** | SlicNameRef should match the volume name of a secret object. The data in the secret should be a binary blob that follows the ACPI SLIC standard, see: https://learn.microsoft.com/en-us/previous-versions/windows/hardware/design/dn653305(v=vs.85) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Firmware.md b/docs/V1Firmware.md index 6b0b7bb8..26b5bcea 100644 --- a/docs/V1Firmware.md +++ b/docs/V1Firmware.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**acpi** | [**V1ACPI**](V1ACPI.md) | Information that can be set in the ACPI table | [optional] **bootloader** | [**V1Bootloader**](V1Bootloader.md) | Settings to control the bootloader that is used. | [optional] **kernel_boot** | [**V1KernelBoot**](V1KernelBoot.md) | Settings to set the kernel for booting. | [optional] **serial** | **str** | The system-serial-number in SMBIOS | [optional] diff --git a/git_push.sh b/git_push.sh index 6259fa51..689ca28f 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.1.0-rc.0-240-gbc3539a10" + release_note="Auto-generated client v1.1.0-rc.0-281-gc4fc4ab72" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index f25d8478..6862f28f 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -183,6 +183,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/k8s_io_apimachinery_pkg_util_intstr_int_or_string.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_util_intstr_int_or_string.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgUtilIntstrIntOrString.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_acpi.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_acpi.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ACPI.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_access_credential.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_access_credential.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1AccessCredential.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 4ecd995b..2d209609 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -68,6 +68,7 @@ from .models.k8s_io_apimachinery_pkg_apis_meta_v1_watch_event import K8sIoApimachineryPkgApisMetaV1WatchEvent from .models.k8s_io_apimachinery_pkg_runtime_raw_extension import K8sIoApimachineryPkgRuntimeRawExtension from .models.k8s_io_apimachinery_pkg_util_intstr_int_or_string import K8sIoApimachineryPkgUtilIntstrIntOrString +from .models.v1_acpi import V1ACPI from .models.v1_access_credential import V1AccessCredential from .models.v1_access_credential_secret_source import V1AccessCredentialSecretSource from .models.v1_add_volume_options import V1AddVolumeOptions diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 15036023..0339052c 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.1.0-rc.0-240-gbc3539a10/python' + self.user_agent = 'Swagger-Codegen/v1.1.0-rc.0-281-gc4fc4ab72/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index bc9a08eb..ac1e77c1 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.1.0-rc.0-240-gbc3539a10".\ + "SDK Package Version: v1.1.0-rc.0-281-gc4fc4ab72".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index f7742d9b..c3f7bd34 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -68,6 +68,7 @@ from .k8s_io_apimachinery_pkg_apis_meta_v1_watch_event import K8sIoApimachineryPkgApisMetaV1WatchEvent from .k8s_io_apimachinery_pkg_runtime_raw_extension import K8sIoApimachineryPkgRuntimeRawExtension from .k8s_io_apimachinery_pkg_util_intstr_int_or_string import K8sIoApimachineryPkgUtilIntstrIntOrString +from .v1_acpi import V1ACPI from .v1_access_credential import V1AccessCredential from .v1_access_credential_secret_source import V1AccessCredentialSecretSource from .v1_add_volume_options import V1AddVolumeOptions diff --git a/kubevirt/models/v1_acpi.py b/kubevirt/models/v1_acpi.py new file mode 100644 index 00000000..2b925706 --- /dev/null +++ b/kubevirt/models/v1_acpi.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ACPI(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'slic_name_ref': 'str' + } + + attribute_map = { + 'slic_name_ref': 'slicNameRef' + } + + def __init__(self, slic_name_ref=None): + """ + V1ACPI - a model defined in Swagger + """ + + self._slic_name_ref = None + + if slic_name_ref is not None: + self.slic_name_ref = slic_name_ref + + @property + def slic_name_ref(self): + """ + Gets the slic_name_ref of this V1ACPI. + SlicNameRef should match the volume name of a secret object. The data in the secret should be a binary blob that follows the ACPI SLIC standard, see: https://learn.microsoft.com/en-us/previous-versions/windows/hardware/design/dn653305(v=vs.85) + + :return: The slic_name_ref of this V1ACPI. + :rtype: str + """ + return self._slic_name_ref + + @slic_name_ref.setter + def slic_name_ref(self, slic_name_ref): + """ + Sets the slic_name_ref of this V1ACPI. + SlicNameRef should match the volume name of a secret object. The data in the secret should be a binary blob that follows the ACPI SLIC standard, see: https://learn.microsoft.com/en-us/previous-versions/windows/hardware/design/dn653305(v=vs.85) + + :param slic_name_ref: The slic_name_ref of this V1ACPI. + :type: str + """ + + self._slic_name_ref = slic_name_ref + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1ACPI): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_firmware.py b/kubevirt/models/v1_firmware.py index 7a4e1432..aa79b591 100644 --- a/kubevirt/models/v1_firmware.py +++ b/kubevirt/models/v1_firmware.py @@ -31,6 +31,7 @@ class V1Firmware(object): and the value is json key in definition. """ swagger_types = { + 'acpi': 'V1ACPI', 'bootloader': 'V1Bootloader', 'kernel_boot': 'V1KernelBoot', 'serial': 'str', @@ -38,22 +39,26 @@ class V1Firmware(object): } attribute_map = { + 'acpi': 'acpi', 'bootloader': 'bootloader', 'kernel_boot': 'kernelBoot', 'serial': 'serial', 'uuid': 'uuid' } - def __init__(self, bootloader=None, kernel_boot=None, serial=None, uuid=None): + def __init__(self, acpi=None, bootloader=None, kernel_boot=None, serial=None, uuid=None): """ V1Firmware - a model defined in Swagger """ + self._acpi = None self._bootloader = None self._kernel_boot = None self._serial = None self._uuid = None + if acpi is not None: + self.acpi = acpi if bootloader is not None: self.bootloader = bootloader if kernel_boot is not None: @@ -63,6 +68,29 @@ def __init__(self, bootloader=None, kernel_boot=None, serial=None, uuid=None): if uuid is not None: self.uuid = uuid + @property + def acpi(self): + """ + Gets the acpi of this V1Firmware. + Information that can be set in the ACPI table + + :return: The acpi of this V1Firmware. + :rtype: V1ACPI + """ + return self._acpi + + @acpi.setter + def acpi(self, acpi): + """ + Sets the acpi of this V1Firmware. + Information that can be set in the ACPI table + + :param acpi: The acpi of this V1Firmware. + :type: V1ACPI + """ + + self._acpi = acpi + @property def bootloader(self): """ diff --git a/setup.py b/setup.py index a9c5058e..222285bc 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.1.0-rc.0-240-gbc3539a10" +VERSION = "v1.1.0-rc.0-281-gc4fc4ab72" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 99b0e18e..c0d829ed 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.1.0-rc.0-240-gbc3539a10" +"packageVersion": "v1.1.0-rc.0-281-gc4fc4ab72" } diff --git a/test/test_v1_acpi.py b/test/test_v1_acpi.py new file mode 100644 index 00000000..a43072f9 --- /dev/null +++ b/test/test_v1_acpi.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_acpi import V1ACPI + + +class TestV1ACPI(unittest.TestCase): + """ V1ACPI unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ACPI(self): + """ + Test V1ACPI + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_acpi.V1ACPI() + pass + + +if __name__ == '__main__': + unittest.main() From e273919ece2fc809dbc7e41f25ab711ba0699637 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 1 Dec 2023 14:46:18 +0000 Subject: [PATCH 382/521] Client Python update by KubeVirt Prow build 1730585666678427648 --- README.md | 3 +- docs/V1ACPI.md | 10 --- docs/V1Firmware.md | 1 - git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 - kubevirt/__init__.py | 1 - kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 - kubevirt/models/v1_acpi.py | 125 --------------------------------- kubevirt/models/v1_firmware.py | 30 +------- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_acpi.py | 44 ------------ 14 files changed, 7 insertions(+), 221 deletions(-) delete mode 100644 docs/V1ACPI.md delete mode 100644 kubevirt/models/v1_acpi.py delete mode 100644 test/test_v1_acpi.py diff --git a/README.md b/README.md index df71b697..8b2e64fd 100644 --- a/README.md +++ b/README.md @@ -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.1.0-rc.0-281-gc4fc4ab72 +- Package version: v1.1.0-rc.0-275-g30af14797 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -391,7 +391,6 @@ Class | Method | HTTP request | Description - [K8sIoApimachineryPkgApisMetaV1WatchEvent](docs/K8sIoApimachineryPkgApisMetaV1WatchEvent.md) - [K8sIoApimachineryPkgRuntimeRawExtension](docs/K8sIoApimachineryPkgRuntimeRawExtension.md) - [K8sIoApimachineryPkgUtilIntstrIntOrString](docs/K8sIoApimachineryPkgUtilIntstrIntOrString.md) - - [V1ACPI](docs/V1ACPI.md) - [V1AccessCredential](docs/V1AccessCredential.md) - [V1AccessCredentialSecretSource](docs/V1AccessCredentialSecretSource.md) - [V1AddVolumeOptions](docs/V1AddVolumeOptions.md) diff --git a/docs/V1ACPI.md b/docs/V1ACPI.md deleted file mode 100644 index d8440cc0..00000000 --- a/docs/V1ACPI.md +++ /dev/null @@ -1,10 +0,0 @@ -# V1ACPI - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**slic_name_ref** | **str** | SlicNameRef should match the volume name of a secret object. The data in the secret should be a binary blob that follows the ACPI SLIC standard, see: https://learn.microsoft.com/en-us/previous-versions/windows/hardware/design/dn653305(v=vs.85) | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1Firmware.md b/docs/V1Firmware.md index 26b5bcea..6b0b7bb8 100644 --- a/docs/V1Firmware.md +++ b/docs/V1Firmware.md @@ -3,7 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**acpi** | [**V1ACPI**](V1ACPI.md) | Information that can be set in the ACPI table | [optional] **bootloader** | [**V1Bootloader**](V1Bootloader.md) | Settings to control the bootloader that is used. | [optional] **kernel_boot** | [**V1KernelBoot**](V1KernelBoot.md) | Settings to set the kernel for booting. | [optional] **serial** | **str** | The system-serial-number in SMBIOS | [optional] diff --git a/git_push.sh b/git_push.sh index 689ca28f..f472ca4b 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.1.0-rc.0-281-gc4fc4ab72" + release_note="Auto-generated client v1.1.0-rc.0-275-g30af14797" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 6862f28f..f25d8478 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -183,9 +183,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/k8s_io_apimachinery_pkg_util_intstr_int_or_string.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_util_intstr_int_or_string.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgUtilIntstrIntOrString.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_acpi.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_acpi.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ACPI.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_access_credential.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_access_credential.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1AccessCredential.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 2d209609..4ecd995b 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -68,7 +68,6 @@ from .models.k8s_io_apimachinery_pkg_apis_meta_v1_watch_event import K8sIoApimachineryPkgApisMetaV1WatchEvent from .models.k8s_io_apimachinery_pkg_runtime_raw_extension import K8sIoApimachineryPkgRuntimeRawExtension from .models.k8s_io_apimachinery_pkg_util_intstr_int_or_string import K8sIoApimachineryPkgUtilIntstrIntOrString -from .models.v1_acpi import V1ACPI from .models.v1_access_credential import V1AccessCredential from .models.v1_access_credential_secret_source import V1AccessCredentialSecretSource from .models.v1_add_volume_options import V1AddVolumeOptions diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 0339052c..c81f91b3 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.1.0-rc.0-281-gc4fc4ab72/python' + self.user_agent = 'Swagger-Codegen/v1.1.0-rc.0-275-g30af14797/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index ac1e77c1..de02ca21 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.1.0-rc.0-281-gc4fc4ab72".\ + "SDK Package Version: v1.1.0-rc.0-275-g30af14797".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index c3f7bd34..f7742d9b 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -68,7 +68,6 @@ from .k8s_io_apimachinery_pkg_apis_meta_v1_watch_event import K8sIoApimachineryPkgApisMetaV1WatchEvent from .k8s_io_apimachinery_pkg_runtime_raw_extension import K8sIoApimachineryPkgRuntimeRawExtension from .k8s_io_apimachinery_pkg_util_intstr_int_or_string import K8sIoApimachineryPkgUtilIntstrIntOrString -from .v1_acpi import V1ACPI from .v1_access_credential import V1AccessCredential from .v1_access_credential_secret_source import V1AccessCredentialSecretSource from .v1_add_volume_options import V1AddVolumeOptions diff --git a/kubevirt/models/v1_acpi.py b/kubevirt/models/v1_acpi.py deleted file mode 100644 index 2b925706..00000000 --- a/kubevirt/models/v1_acpi.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1ACPI(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'slic_name_ref': 'str' - } - - attribute_map = { - 'slic_name_ref': 'slicNameRef' - } - - def __init__(self, slic_name_ref=None): - """ - V1ACPI - a model defined in Swagger - """ - - self._slic_name_ref = None - - if slic_name_ref is not None: - self.slic_name_ref = slic_name_ref - - @property - def slic_name_ref(self): - """ - Gets the slic_name_ref of this V1ACPI. - SlicNameRef should match the volume name of a secret object. The data in the secret should be a binary blob that follows the ACPI SLIC standard, see: https://learn.microsoft.com/en-us/previous-versions/windows/hardware/design/dn653305(v=vs.85) - - :return: The slic_name_ref of this V1ACPI. - :rtype: str - """ - return self._slic_name_ref - - @slic_name_ref.setter - def slic_name_ref(self, slic_name_ref): - """ - Sets the slic_name_ref of this V1ACPI. - SlicNameRef should match the volume name of a secret object. The data in the secret should be a binary blob that follows the ACPI SLIC standard, see: https://learn.microsoft.com/en-us/previous-versions/windows/hardware/design/dn653305(v=vs.85) - - :param slic_name_ref: The slic_name_ref of this V1ACPI. - :type: str - """ - - self._slic_name_ref = slic_name_ref - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1ACPI): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_firmware.py b/kubevirt/models/v1_firmware.py index aa79b591..7a4e1432 100644 --- a/kubevirt/models/v1_firmware.py +++ b/kubevirt/models/v1_firmware.py @@ -31,7 +31,6 @@ class V1Firmware(object): and the value is json key in definition. """ swagger_types = { - 'acpi': 'V1ACPI', 'bootloader': 'V1Bootloader', 'kernel_boot': 'V1KernelBoot', 'serial': 'str', @@ -39,26 +38,22 @@ class V1Firmware(object): } attribute_map = { - 'acpi': 'acpi', 'bootloader': 'bootloader', 'kernel_boot': 'kernelBoot', 'serial': 'serial', 'uuid': 'uuid' } - def __init__(self, acpi=None, bootloader=None, kernel_boot=None, serial=None, uuid=None): + def __init__(self, bootloader=None, kernel_boot=None, serial=None, uuid=None): """ V1Firmware - a model defined in Swagger """ - self._acpi = None self._bootloader = None self._kernel_boot = None self._serial = None self._uuid = None - if acpi is not None: - self.acpi = acpi if bootloader is not None: self.bootloader = bootloader if kernel_boot is not None: @@ -68,29 +63,6 @@ def __init__(self, acpi=None, bootloader=None, kernel_boot=None, serial=None, uu if uuid is not None: self.uuid = uuid - @property - def acpi(self): - """ - Gets the acpi of this V1Firmware. - Information that can be set in the ACPI table - - :return: The acpi of this V1Firmware. - :rtype: V1ACPI - """ - return self._acpi - - @acpi.setter - def acpi(self, acpi): - """ - Sets the acpi of this V1Firmware. - Information that can be set in the ACPI table - - :param acpi: The acpi of this V1Firmware. - :type: V1ACPI - """ - - self._acpi = acpi - @property def bootloader(self): """ diff --git a/setup.py b/setup.py index 222285bc..f59c6fab 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.1.0-rc.0-281-gc4fc4ab72" +VERSION = "v1.1.0-rc.0-275-g30af14797" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index c0d829ed..73d8d7d2 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.1.0-rc.0-281-gc4fc4ab72" +"packageVersion": "v1.1.0-rc.0-275-g30af14797" } diff --git a/test/test_v1_acpi.py b/test/test_v1_acpi.py deleted file mode 100644 index a43072f9..00000000 --- a/test/test_v1_acpi.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_acpi import V1ACPI - - -class TestV1ACPI(unittest.TestCase): - """ V1ACPI unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ACPI(self): - """ - Test V1ACPI - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_acpi.V1ACPI() - pass - - -if __name__ == '__main__': - unittest.main() From 7739604fd2d46e62effbd6b5007e889618da189c Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 1 Dec 2023 21:59:44 +0000 Subject: [PATCH 383/521] Client Python update by KubeVirt Prow build 1730698911338729472 --- README.md | 3 +- docs/V1ACPI.md | 10 +++ docs/V1Firmware.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_acpi.py | 125 +++++++++++++++++++++++++++++++++ kubevirt/models/v1_firmware.py | 30 +++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_acpi.py | 44 ++++++++++++ 14 files changed, 221 insertions(+), 7 deletions(-) create mode 100644 docs/V1ACPI.md create mode 100644 kubevirt/models/v1_acpi.py create mode 100644 test/test_v1_acpi.py diff --git a/README.md b/README.md index 8b2e64fd..f17af622 100644 --- a/README.md +++ b/README.md @@ -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.1.0-rc.0-275-g30af14797 +- Package version: v1.1.0-rc.0-283-g59b933853 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -391,6 +391,7 @@ Class | Method | HTTP request | Description - [K8sIoApimachineryPkgApisMetaV1WatchEvent](docs/K8sIoApimachineryPkgApisMetaV1WatchEvent.md) - [K8sIoApimachineryPkgRuntimeRawExtension](docs/K8sIoApimachineryPkgRuntimeRawExtension.md) - [K8sIoApimachineryPkgUtilIntstrIntOrString](docs/K8sIoApimachineryPkgUtilIntstrIntOrString.md) + - [V1ACPI](docs/V1ACPI.md) - [V1AccessCredential](docs/V1AccessCredential.md) - [V1AccessCredentialSecretSource](docs/V1AccessCredentialSecretSource.md) - [V1AddVolumeOptions](docs/V1AddVolumeOptions.md) diff --git a/docs/V1ACPI.md b/docs/V1ACPI.md new file mode 100644 index 00000000..d8440cc0 --- /dev/null +++ b/docs/V1ACPI.md @@ -0,0 +1,10 @@ +# V1ACPI + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**slic_name_ref** | **str** | SlicNameRef should match the volume name of a secret object. The data in the secret should be a binary blob that follows the ACPI SLIC standard, see: https://learn.microsoft.com/en-us/previous-versions/windows/hardware/design/dn653305(v=vs.85) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Firmware.md b/docs/V1Firmware.md index 6b0b7bb8..26b5bcea 100644 --- a/docs/V1Firmware.md +++ b/docs/V1Firmware.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**acpi** | [**V1ACPI**](V1ACPI.md) | Information that can be set in the ACPI table | [optional] **bootloader** | [**V1Bootloader**](V1Bootloader.md) | Settings to control the bootloader that is used. | [optional] **kernel_boot** | [**V1KernelBoot**](V1KernelBoot.md) | Settings to set the kernel for booting. | [optional] **serial** | **str** | The system-serial-number in SMBIOS | [optional] diff --git a/git_push.sh b/git_push.sh index f472ca4b..dd706460 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.1.0-rc.0-275-g30af14797" + release_note="Auto-generated client v1.1.0-rc.0-283-g59b933853" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index f25d8478..6862f28f 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -183,6 +183,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/k8s_io_apimachinery_pkg_util_intstr_int_or_string.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_util_intstr_int_or_string.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgUtilIntstrIntOrString.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_acpi.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_acpi.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ACPI.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_access_credential.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_access_credential.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1AccessCredential.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 4ecd995b..2d209609 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -68,6 +68,7 @@ from .models.k8s_io_apimachinery_pkg_apis_meta_v1_watch_event import K8sIoApimachineryPkgApisMetaV1WatchEvent from .models.k8s_io_apimachinery_pkg_runtime_raw_extension import K8sIoApimachineryPkgRuntimeRawExtension from .models.k8s_io_apimachinery_pkg_util_intstr_int_or_string import K8sIoApimachineryPkgUtilIntstrIntOrString +from .models.v1_acpi import V1ACPI from .models.v1_access_credential import V1AccessCredential from .models.v1_access_credential_secret_source import V1AccessCredentialSecretSource from .models.v1_add_volume_options import V1AddVolumeOptions diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index c81f91b3..d9fa8e76 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.1.0-rc.0-275-g30af14797/python' + self.user_agent = 'Swagger-Codegen/v1.1.0-rc.0-283-g59b933853/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index de02ca21..6ebb2c19 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.1.0-rc.0-275-g30af14797".\ + "SDK Package Version: v1.1.0-rc.0-283-g59b933853".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index f7742d9b..c3f7bd34 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -68,6 +68,7 @@ from .k8s_io_apimachinery_pkg_apis_meta_v1_watch_event import K8sIoApimachineryPkgApisMetaV1WatchEvent from .k8s_io_apimachinery_pkg_runtime_raw_extension import K8sIoApimachineryPkgRuntimeRawExtension from .k8s_io_apimachinery_pkg_util_intstr_int_or_string import K8sIoApimachineryPkgUtilIntstrIntOrString +from .v1_acpi import V1ACPI from .v1_access_credential import V1AccessCredential from .v1_access_credential_secret_source import V1AccessCredentialSecretSource from .v1_add_volume_options import V1AddVolumeOptions diff --git a/kubevirt/models/v1_acpi.py b/kubevirt/models/v1_acpi.py new file mode 100644 index 00000000..2b925706 --- /dev/null +++ b/kubevirt/models/v1_acpi.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ACPI(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'slic_name_ref': 'str' + } + + attribute_map = { + 'slic_name_ref': 'slicNameRef' + } + + def __init__(self, slic_name_ref=None): + """ + V1ACPI - a model defined in Swagger + """ + + self._slic_name_ref = None + + if slic_name_ref is not None: + self.slic_name_ref = slic_name_ref + + @property + def slic_name_ref(self): + """ + Gets the slic_name_ref of this V1ACPI. + SlicNameRef should match the volume name of a secret object. The data in the secret should be a binary blob that follows the ACPI SLIC standard, see: https://learn.microsoft.com/en-us/previous-versions/windows/hardware/design/dn653305(v=vs.85) + + :return: The slic_name_ref of this V1ACPI. + :rtype: str + """ + return self._slic_name_ref + + @slic_name_ref.setter + def slic_name_ref(self, slic_name_ref): + """ + Sets the slic_name_ref of this V1ACPI. + SlicNameRef should match the volume name of a secret object. The data in the secret should be a binary blob that follows the ACPI SLIC standard, see: https://learn.microsoft.com/en-us/previous-versions/windows/hardware/design/dn653305(v=vs.85) + + :param slic_name_ref: The slic_name_ref of this V1ACPI. + :type: str + """ + + self._slic_name_ref = slic_name_ref + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1ACPI): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_firmware.py b/kubevirt/models/v1_firmware.py index 7a4e1432..aa79b591 100644 --- a/kubevirt/models/v1_firmware.py +++ b/kubevirt/models/v1_firmware.py @@ -31,6 +31,7 @@ class V1Firmware(object): and the value is json key in definition. """ swagger_types = { + 'acpi': 'V1ACPI', 'bootloader': 'V1Bootloader', 'kernel_boot': 'V1KernelBoot', 'serial': 'str', @@ -38,22 +39,26 @@ class V1Firmware(object): } attribute_map = { + 'acpi': 'acpi', 'bootloader': 'bootloader', 'kernel_boot': 'kernelBoot', 'serial': 'serial', 'uuid': 'uuid' } - def __init__(self, bootloader=None, kernel_boot=None, serial=None, uuid=None): + def __init__(self, acpi=None, bootloader=None, kernel_boot=None, serial=None, uuid=None): """ V1Firmware - a model defined in Swagger """ + self._acpi = None self._bootloader = None self._kernel_boot = None self._serial = None self._uuid = None + if acpi is not None: + self.acpi = acpi if bootloader is not None: self.bootloader = bootloader if kernel_boot is not None: @@ -63,6 +68,29 @@ def __init__(self, bootloader=None, kernel_boot=None, serial=None, uuid=None): if uuid is not None: self.uuid = uuid + @property + def acpi(self): + """ + Gets the acpi of this V1Firmware. + Information that can be set in the ACPI table + + :return: The acpi of this V1Firmware. + :rtype: V1ACPI + """ + return self._acpi + + @acpi.setter + def acpi(self, acpi): + """ + Sets the acpi of this V1Firmware. + Information that can be set in the ACPI table + + :param acpi: The acpi of this V1Firmware. + :type: V1ACPI + """ + + self._acpi = acpi + @property def bootloader(self): """ diff --git a/setup.py b/setup.py index f59c6fab..4ed44782 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.1.0-rc.0-275-g30af14797" +VERSION = "v1.1.0-rc.0-283-g59b933853" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 73d8d7d2..20d5222a 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.1.0-rc.0-275-g30af14797" +"packageVersion": "v1.1.0-rc.0-283-g59b933853" } diff --git a/test/test_v1_acpi.py b/test/test_v1_acpi.py new file mode 100644 index 00000000..a43072f9 --- /dev/null +++ b/test/test_v1_acpi.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_acpi import V1ACPI + + +class TestV1ACPI(unittest.TestCase): + """ V1ACPI unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ACPI(self): + """ + Test V1ACPI + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_acpi.V1ACPI() + pass + + +if __name__ == '__main__': + unittest.main() From 0f49163a26ce488bf622635f96339e7a9b76cf63 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Tue, 12 Dec 2023 18:56:00 +0000 Subject: [PATCH 384/521] Client Python update by KubeVirt Prow build 1734637230028230656 --- README.md | 6 +- docs/V1ContainerDiskInfo.md | 10 ++ docs/V1InitrdInfo.md | 10 ++ docs/V1KernelBootStatus.md | 11 ++ docs/V1KernelInfo.md | 10 ++ docs/V1VirtualMachineInstanceStatus.md | 1 + docs/V1VolumeStatus.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 12 ++ kubevirt/__init__.py | 4 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 4 + kubevirt/models/v1_container_disk_info.py | 125 ++++++++++++++ kubevirt/models/v1_initrd_info.py | 125 ++++++++++++++ kubevirt/models/v1_kernel_boot_status.py | 153 ++++++++++++++++++ kubevirt/models/v1_kernel_info.py | 125 ++++++++++++++ .../v1_virtual_machine_instance_status.py | 30 +++- kubevirt/models/v1_volume_status.py | 30 +++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_container_disk_info.py | 44 +++++ test/test_v1_initrd_info.py | 44 +++++ test/test_v1_kernel_boot_status.py | 44 +++++ test/test_v1_kernel_info.py | 44 +++++ 25 files changed, 835 insertions(+), 8 deletions(-) create mode 100644 docs/V1ContainerDiskInfo.md create mode 100644 docs/V1InitrdInfo.md create mode 100644 docs/V1KernelBootStatus.md create mode 100644 docs/V1KernelInfo.md create mode 100644 kubevirt/models/v1_container_disk_info.py create mode 100644 kubevirt/models/v1_initrd_info.py create mode 100644 kubevirt/models/v1_kernel_boot_status.py create mode 100644 kubevirt/models/v1_kernel_info.py create mode 100644 test/test_v1_container_disk_info.py create mode 100644 test/test_v1_initrd_info.py create mode 100644 test/test_v1_kernel_boot_status.py create mode 100644 test/test_v1_kernel_info.py diff --git a/README.md b/README.md index f17af622..54a13aeb 100644 --- a/README.md +++ b/README.md @@ -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.1.0-rc.0-283-g59b933853 +- Package version: v1.1.0-rc.0-336-gbd6ff60a0 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -415,6 +415,7 @@ Class | Method | HTTP request | Description - [V1ComponentConfig](docs/V1ComponentConfig.md) - [V1ConfigDriveSSHPublicKeyAccessCredentialPropagation](docs/V1ConfigDriveSSHPublicKeyAccessCredentialPropagation.md) - [V1ConfigMapVolumeSource](docs/V1ConfigMapVolumeSource.md) + - [V1ContainerDiskInfo](docs/V1ContainerDiskInfo.md) - [V1ContainerDiskSource](docs/V1ContainerDiskSource.md) - [V1CustomBlockSize](docs/V1CustomBlockSize.md) - [V1CustomProfile](docs/V1CustomProfile.md) @@ -464,6 +465,7 @@ Class | Method | HTTP request | Description - [V1Hugepages](docs/V1Hugepages.md) - [V1HypervTimer](docs/V1HypervTimer.md) - [V1I6300ESBWatchdog](docs/V1I6300ESBWatchdog.md) + - [V1InitrdInfo](docs/V1InitrdInfo.md) - [V1Input](docs/V1Input.md) - [V1InstancetypeMatcher](docs/V1InstancetypeMatcher.md) - [V1Interface](docs/V1Interface.md) @@ -478,6 +480,8 @@ Class | Method | HTTP request | Description - [V1KVMTimer](docs/V1KVMTimer.md) - [V1KernelBoot](docs/V1KernelBoot.md) - [V1KernelBootContainer](docs/V1KernelBootContainer.md) + - [V1KernelBootStatus](docs/V1KernelBootStatus.md) + - [V1KernelInfo](docs/V1KernelInfo.md) - [V1KubeVirt](docs/V1KubeVirt.md) - [V1KubeVirtCertificateRotateStrategy](docs/V1KubeVirtCertificateRotateStrategy.md) - [V1KubeVirtCondition](docs/V1KubeVirtCondition.md) diff --git a/docs/V1ContainerDiskInfo.md b/docs/V1ContainerDiskInfo.md new file mode 100644 index 00000000..bd351a25 --- /dev/null +++ b/docs/V1ContainerDiskInfo.md @@ -0,0 +1,10 @@ +# V1ContainerDiskInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**checksum** | **int** | Checksum is the checksum of the rootdisk or kernel artifacts inside the containerdisk | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1InitrdInfo.md b/docs/V1InitrdInfo.md new file mode 100644 index 00000000..962037cd --- /dev/null +++ b/docs/V1InitrdInfo.md @@ -0,0 +1,10 @@ +# V1InitrdInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**checksum** | **int** | Checksum is the checksum of the initrd file | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1KernelBootStatus.md b/docs/V1KernelBootStatus.md new file mode 100644 index 00000000..0e819b41 --- /dev/null +++ b/docs/V1KernelBootStatus.md @@ -0,0 +1,11 @@ +# V1KernelBootStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**initrd_info** | [**V1InitrdInfo**](V1InitrdInfo.md) | InitrdInfo show info about the initrd file | [optional] +**kernel_info** | [**V1KernelInfo**](V1KernelInfo.md) | KernelInfo show info about the kernel image | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1KernelInfo.md b/docs/V1KernelInfo.md new file mode 100644 index 00000000..79de8040 --- /dev/null +++ b/docs/V1KernelInfo.md @@ -0,0 +1,10 @@ +# V1KernelInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**checksum** | **int** | Checksum is the checksum of the kernel image | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index 8d398f02..b1325aca 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **fs_freeze_status** | **str** | FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed | [optional] **guest_os_info** | [**V1VirtualMachineInstanceGuestOSInfo**](V1VirtualMachineInstanceGuestOSInfo.md) | Guest OS Information | [optional] **interfaces** | [**list[V1VirtualMachineInstanceNetworkInterface]**](V1VirtualMachineInstanceNetworkInterface.md) | Interfaces represent the details of available network interfaces. | [optional] +**kernel_boot_status** | [**V1KernelBootStatus**](V1KernelBootStatus.md) | KernelBootStatus contains info about the kernelBootContainer | [optional] **launcher_container_image_version** | **str** | LauncherContainerImageVersion indicates what container image is currently active for the vmi. | [optional] **machine** | [**V1Machine**](V1Machine.md) | Machine shows the final resulting qemu machine type. This can be different than the machine type selected in the spec, due to qemus machine type alias mechanism. | [optional] **memory** | [**V1MemoryStatus**](V1MemoryStatus.md) | Memory shows various informations about the VirtualMachine memory. | [optional] diff --git a/docs/V1VolumeStatus.md b/docs/V1VolumeStatus.md index c209c8d4..86b960a6 100644 --- a/docs/V1VolumeStatus.md +++ b/docs/V1VolumeStatus.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**container_disk_volume** | [**V1ContainerDiskInfo**](V1ContainerDiskInfo.md) | ContainerDiskVolume shows info about the containerdisk, if the volume is a containerdisk | [optional] **hotplug_volume** | [**V1HotplugVolumeStatus**](V1HotplugVolumeStatus.md) | If the volume is hotplug, this will contain the hotplug status. | [optional] **memory_dump_volume** | [**V1DomainMemoryDumpInfo**](V1DomainMemoryDumpInfo.md) | If the volume is memorydump volume, this will contain the memorydump info. | [optional] **message** | **str** | Message is a detailed message about the current hotplug volume phase | [optional] diff --git a/git_push.sh b/git_push.sh index dd706460..75ca6266 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.1.0-rc.0-283-g59b933853" + release_note="Auto-generated client v1.1.0-rc.0-336-gbd6ff60a0" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 6862f28f..9540544a 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -255,6 +255,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_config_map_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_config_map_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ConfigMapVolumeSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_container_disk_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_container_disk_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ContainerDiskInfo.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_container_disk_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_container_disk_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ContainerDiskSource.md @@ -402,6 +405,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_i6300_esb_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_i6300_esb_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1I6300ESBWatchdog.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_initrd_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_initrd_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InitrdInfo.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_input.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_input.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Input.md @@ -444,6 +450,12 @@ 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_kernel_boot_container.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kernel_boot_container.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KernelBootContainer.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_kernel_boot_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kernel_boot_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KernelBootStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_kernel_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kernel_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KernelInfo.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_kube_virt.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_kube_virt.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KubeVirt.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 2d209609..5173a90f 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -92,6 +92,7 @@ from .models.v1_component_config import V1ComponentConfig from .models.v1_config_drive_ssh_public_key_access_credential_propagation import V1ConfigDriveSSHPublicKeyAccessCredentialPropagation from .models.v1_config_map_volume_source import V1ConfigMapVolumeSource +from .models.v1_container_disk_info import V1ContainerDiskInfo from .models.v1_container_disk_source import V1ContainerDiskSource from .models.v1_custom_block_size import V1CustomBlockSize from .models.v1_custom_profile import V1CustomProfile @@ -141,6 +142,7 @@ from .models.v1_hugepages import V1Hugepages from .models.v1_hyperv_timer import V1HypervTimer from .models.v1_i6300_esb_watchdog import V1I6300ESBWatchdog +from .models.v1_initrd_info import V1InitrdInfo from .models.v1_input import V1Input from .models.v1_instancetype_matcher import V1InstancetypeMatcher from .models.v1_interface import V1Interface @@ -155,6 +157,8 @@ from .models.v1_kvm_timer import V1KVMTimer from .models.v1_kernel_boot import V1KernelBoot from .models.v1_kernel_boot_container import V1KernelBootContainer +from .models.v1_kernel_boot_status import V1KernelBootStatus +from .models.v1_kernel_info import V1KernelInfo from .models.v1_kube_virt import V1KubeVirt from .models.v1_kube_virt_certificate_rotate_strategy import V1KubeVirtCertificateRotateStrategy from .models.v1_kube_virt_condition import V1KubeVirtCondition diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index d9fa8e76..f92635a3 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.1.0-rc.0-283-g59b933853/python' + self.user_agent = 'Swagger-Codegen/v1.1.0-rc.0-336-gbd6ff60a0/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 6ebb2c19..ec76430c 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.1.0-rc.0-283-g59b933853".\ + "SDK Package Version: v1.1.0-rc.0-336-gbd6ff60a0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index c3f7bd34..f43fef2a 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -92,6 +92,7 @@ from .v1_component_config import V1ComponentConfig from .v1_config_drive_ssh_public_key_access_credential_propagation import V1ConfigDriveSSHPublicKeyAccessCredentialPropagation from .v1_config_map_volume_source import V1ConfigMapVolumeSource +from .v1_container_disk_info import V1ContainerDiskInfo from .v1_container_disk_source import V1ContainerDiskSource from .v1_custom_block_size import V1CustomBlockSize from .v1_custom_profile import V1CustomProfile @@ -141,6 +142,7 @@ from .v1_hugepages import V1Hugepages from .v1_hyperv_timer import V1HypervTimer from .v1_i6300_esb_watchdog import V1I6300ESBWatchdog +from .v1_initrd_info import V1InitrdInfo from .v1_input import V1Input from .v1_instancetype_matcher import V1InstancetypeMatcher from .v1_interface import V1Interface @@ -155,6 +157,8 @@ from .v1_kvm_timer import V1KVMTimer from .v1_kernel_boot import V1KernelBoot from .v1_kernel_boot_container import V1KernelBootContainer +from .v1_kernel_boot_status import V1KernelBootStatus +from .v1_kernel_info import V1KernelInfo from .v1_kube_virt import V1KubeVirt from .v1_kube_virt_certificate_rotate_strategy import V1KubeVirtCertificateRotateStrategy from .v1_kube_virt_condition import V1KubeVirtCondition diff --git a/kubevirt/models/v1_container_disk_info.py b/kubevirt/models/v1_container_disk_info.py new file mode 100644 index 00000000..82be67cf --- /dev/null +++ b/kubevirt/models/v1_container_disk_info.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ContainerDiskInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'checksum': 'int' + } + + attribute_map = { + 'checksum': 'checksum' + } + + def __init__(self, checksum=None): + """ + V1ContainerDiskInfo - a model defined in Swagger + """ + + self._checksum = None + + if checksum is not None: + self.checksum = checksum + + @property + def checksum(self): + """ + Gets the checksum of this V1ContainerDiskInfo. + Checksum is the checksum of the rootdisk or kernel artifacts inside the containerdisk + + :return: The checksum of this V1ContainerDiskInfo. + :rtype: int + """ + return self._checksum + + @checksum.setter + def checksum(self, checksum): + """ + Sets the checksum of this V1ContainerDiskInfo. + Checksum is the checksum of the rootdisk or kernel artifacts inside the containerdisk + + :param checksum: The checksum of this V1ContainerDiskInfo. + :type: int + """ + + self._checksum = checksum + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1ContainerDiskInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_initrd_info.py b/kubevirt/models/v1_initrd_info.py new file mode 100644 index 00000000..59017416 --- /dev/null +++ b/kubevirt/models/v1_initrd_info.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1InitrdInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'checksum': 'int' + } + + attribute_map = { + 'checksum': 'checksum' + } + + def __init__(self, checksum=None): + """ + V1InitrdInfo - a model defined in Swagger + """ + + self._checksum = None + + if checksum is not None: + self.checksum = checksum + + @property + def checksum(self): + """ + Gets the checksum of this V1InitrdInfo. + Checksum is the checksum of the initrd file + + :return: The checksum of this V1InitrdInfo. + :rtype: int + """ + return self._checksum + + @checksum.setter + def checksum(self, checksum): + """ + Sets the checksum of this V1InitrdInfo. + Checksum is the checksum of the initrd file + + :param checksum: The checksum of this V1InitrdInfo. + :type: int + """ + + self._checksum = checksum + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1InitrdInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kernel_boot_status.py b/kubevirt/models/v1_kernel_boot_status.py new file mode 100644 index 00000000..e8b93050 --- /dev/null +++ b/kubevirt/models/v1_kernel_boot_status.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1KernelBootStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'initrd_info': 'V1InitrdInfo', + 'kernel_info': 'V1KernelInfo' + } + + attribute_map = { + 'initrd_info': 'initrdInfo', + 'kernel_info': 'kernelInfo' + } + + def __init__(self, initrd_info=None, kernel_info=None): + """ + V1KernelBootStatus - a model defined in Swagger + """ + + self._initrd_info = None + self._kernel_info = None + + if initrd_info is not None: + self.initrd_info = initrd_info + if kernel_info is not None: + self.kernel_info = kernel_info + + @property + def initrd_info(self): + """ + Gets the initrd_info of this V1KernelBootStatus. + InitrdInfo show info about the initrd file + + :return: The initrd_info of this V1KernelBootStatus. + :rtype: V1InitrdInfo + """ + return self._initrd_info + + @initrd_info.setter + def initrd_info(self, initrd_info): + """ + Sets the initrd_info of this V1KernelBootStatus. + InitrdInfo show info about the initrd file + + :param initrd_info: The initrd_info of this V1KernelBootStatus. + :type: V1InitrdInfo + """ + + self._initrd_info = initrd_info + + @property + def kernel_info(self): + """ + Gets the kernel_info of this V1KernelBootStatus. + KernelInfo show info about the kernel image + + :return: The kernel_info of this V1KernelBootStatus. + :rtype: V1KernelInfo + """ + return self._kernel_info + + @kernel_info.setter + def kernel_info(self, kernel_info): + """ + Sets the kernel_info of this V1KernelBootStatus. + KernelInfo show info about the kernel image + + :param kernel_info: The kernel_info of this V1KernelBootStatus. + :type: V1KernelInfo + """ + + self._kernel_info = kernel_info + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1KernelBootStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kernel_info.py b/kubevirt/models/v1_kernel_info.py new file mode 100644 index 00000000..a5c0b0b1 --- /dev/null +++ b/kubevirt/models/v1_kernel_info.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1KernelInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'checksum': 'int' + } + + attribute_map = { + 'checksum': 'checksum' + } + + def __init__(self, checksum=None): + """ + V1KernelInfo - a model defined in Swagger + """ + + self._checksum = None + + if checksum is not None: + self.checksum = checksum + + @property + def checksum(self): + """ + Gets the checksum of this V1KernelInfo. + Checksum is the checksum of the kernel image + + :return: The checksum of this V1KernelInfo. + :rtype: int + """ + return self._checksum + + @checksum.setter + def checksum(self, checksum): + """ + Sets the checksum of this V1KernelInfo. + Checksum is the checksum of the kernel image + + :param checksum: The checksum of this V1KernelInfo. + :type: int + """ + + self._checksum = checksum + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1KernelInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index bd7a0771..89b10fce 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -39,6 +39,7 @@ class V1VirtualMachineInstanceStatus(object): 'fs_freeze_status': 'str', 'guest_os_info': 'V1VirtualMachineInstanceGuestOSInfo', 'interfaces': 'list[V1VirtualMachineInstanceNetworkInterface]', + 'kernel_boot_status': 'V1KernelBootStatus', 'launcher_container_image_version': 'str', 'machine': 'V1Machine', 'memory': 'V1MemoryStatus', @@ -66,6 +67,7 @@ class V1VirtualMachineInstanceStatus(object): 'fs_freeze_status': 'fsFreezeStatus', 'guest_os_info': 'guestOSInfo', 'interfaces': 'interfaces', + 'kernel_boot_status': 'kernelBootStatus', 'launcher_container_image_version': 'launcherContainerImageVersion', 'machine': 'machine', 'memory': 'memory', @@ -84,7 +86,7 @@ class V1VirtualMachineInstanceStatus(object): 'volume_status': 'volumeStatus' } - def __init__(self, vsockcid=None, active_pods=None, conditions=None, current_cpu_topology=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, launcher_container_image_version=None, machine=None, memory=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=0, selinux_context=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): + def __init__(self, vsockcid=None, active_pods=None, conditions=None, current_cpu_topology=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, kernel_boot_status=None, launcher_container_image_version=None, machine=None, memory=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=0, selinux_context=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ @@ -97,6 +99,7 @@ def __init__(self, vsockcid=None, active_pods=None, conditions=None, current_cpu self._fs_freeze_status = None self._guest_os_info = None self._interfaces = None + self._kernel_boot_status = None self._launcher_container_image_version = None self._machine = None self._memory = None @@ -130,6 +133,8 @@ def __init__(self, vsockcid=None, active_pods=None, conditions=None, current_cpu self.guest_os_info = guest_os_info if interfaces is not None: self.interfaces = interfaces + if kernel_boot_status is not None: + self.kernel_boot_status = kernel_boot_status if launcher_container_image_version is not None: self.launcher_container_image_version = launcher_container_image_version if machine is not None: @@ -347,6 +352,29 @@ def interfaces(self, interfaces): self._interfaces = interfaces + @property + def kernel_boot_status(self): + """ + Gets the kernel_boot_status of this V1VirtualMachineInstanceStatus. + KernelBootStatus contains info about the kernelBootContainer + + :return: The kernel_boot_status of this V1VirtualMachineInstanceStatus. + :rtype: V1KernelBootStatus + """ + return self._kernel_boot_status + + @kernel_boot_status.setter + def kernel_boot_status(self, kernel_boot_status): + """ + Sets the kernel_boot_status of this V1VirtualMachineInstanceStatus. + KernelBootStatus contains info about the kernelBootContainer + + :param kernel_boot_status: The kernel_boot_status of this V1VirtualMachineInstanceStatus. + :type: V1KernelBootStatus + """ + + self._kernel_boot_status = kernel_boot_status + @property def launcher_container_image_version(self): """ diff --git a/kubevirt/models/v1_volume_status.py b/kubevirt/models/v1_volume_status.py index abca6efd..a4d36b1e 100644 --- a/kubevirt/models/v1_volume_status.py +++ b/kubevirt/models/v1_volume_status.py @@ -31,6 +31,7 @@ class V1VolumeStatus(object): and the value is json key in definition. """ swagger_types = { + 'container_disk_volume': 'V1ContainerDiskInfo', 'hotplug_volume': 'V1HotplugVolumeStatus', 'memory_dump_volume': 'V1DomainMemoryDumpInfo', 'message': 'str', @@ -43,6 +44,7 @@ class V1VolumeStatus(object): } attribute_map = { + 'container_disk_volume': 'containerDiskVolume', 'hotplug_volume': 'hotplugVolume', 'memory_dump_volume': 'memoryDumpVolume', 'message': 'message', @@ -54,11 +56,12 @@ class V1VolumeStatus(object): 'target': 'target' } - def __init__(self, hotplug_volume=None, memory_dump_volume=None, message=None, name='', persistent_volume_claim_info=None, phase=None, reason=None, size=None, target=''): + def __init__(self, container_disk_volume=None, hotplug_volume=None, memory_dump_volume=None, message=None, name='', persistent_volume_claim_info=None, phase=None, reason=None, size=None, target=''): """ V1VolumeStatus - a model defined in Swagger """ + self._container_disk_volume = None self._hotplug_volume = None self._memory_dump_volume = None self._message = None @@ -69,6 +72,8 @@ def __init__(self, hotplug_volume=None, memory_dump_volume=None, message=None, n self._size = None self._target = None + if container_disk_volume is not None: + self.container_disk_volume = container_disk_volume if hotplug_volume is not None: self.hotplug_volume = hotplug_volume if memory_dump_volume is not None: @@ -86,6 +91,29 @@ def __init__(self, hotplug_volume=None, memory_dump_volume=None, message=None, n self.size = size self.target = target + @property + def container_disk_volume(self): + """ + Gets the container_disk_volume of this V1VolumeStatus. + ContainerDiskVolume shows info about the containerdisk, if the volume is a containerdisk + + :return: The container_disk_volume of this V1VolumeStatus. + :rtype: V1ContainerDiskInfo + """ + return self._container_disk_volume + + @container_disk_volume.setter + def container_disk_volume(self, container_disk_volume): + """ + Sets the container_disk_volume of this V1VolumeStatus. + ContainerDiskVolume shows info about the containerdisk, if the volume is a containerdisk + + :param container_disk_volume: The container_disk_volume of this V1VolumeStatus. + :type: V1ContainerDiskInfo + """ + + self._container_disk_volume = container_disk_volume + @property def hotplug_volume(self): """ diff --git a/setup.py b/setup.py index 4ed44782..98d678b6 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.1.0-rc.0-283-g59b933853" +VERSION = "v1.1.0-rc.0-336-gbd6ff60a0" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 20d5222a..4caedd21 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.1.0-rc.0-283-g59b933853" +"packageVersion": "v1.1.0-rc.0-336-gbd6ff60a0" } diff --git a/test/test_v1_container_disk_info.py b/test/test_v1_container_disk_info.py new file mode 100644 index 00000000..72d90c58 --- /dev/null +++ b/test/test_v1_container_disk_info.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_container_disk_info import V1ContainerDiskInfo + + +class TestV1ContainerDiskInfo(unittest.TestCase): + """ V1ContainerDiskInfo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ContainerDiskInfo(self): + """ + Test V1ContainerDiskInfo + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_container_disk_info.V1ContainerDiskInfo() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_initrd_info.py b/test/test_v1_initrd_info.py new file mode 100644 index 00000000..13f20e2b --- /dev/null +++ b/test/test_v1_initrd_info.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_initrd_info import V1InitrdInfo + + +class TestV1InitrdInfo(unittest.TestCase): + """ V1InitrdInfo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1InitrdInfo(self): + """ + Test V1InitrdInfo + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_initrd_info.V1InitrdInfo() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_kernel_boot_status.py b/test/test_v1_kernel_boot_status.py new file mode 100644 index 00000000..5c08f81c --- /dev/null +++ b/test/test_v1_kernel_boot_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_kernel_boot_status import V1KernelBootStatus + + +class TestV1KernelBootStatus(unittest.TestCase): + """ V1KernelBootStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1KernelBootStatus(self): + """ + Test V1KernelBootStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_kernel_boot_status.V1KernelBootStatus() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_kernel_info.py b/test/test_v1_kernel_info.py new file mode 100644 index 00000000..9a937c72 --- /dev/null +++ b/test/test_v1_kernel_info.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_kernel_info import V1KernelInfo + + +class TestV1KernelInfo(unittest.TestCase): + """ V1KernelInfo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1KernelInfo(self): + """ + Test V1KernelInfo + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_kernel_info.V1KernelInfo() + pass + + +if __name__ == '__main__': + unittest.main() From 544054f3372b411c86f69f2a4a21d435a0596058 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 13 Dec 2023 06:47:47 +0000 Subject: [PATCH 385/521] Client Python update by KubeVirt Prow build 1734817387590455296 --- README.md | 2 +- docs/V1VirtualMachineInstanceSpec.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_virtual_machine_instance_spec.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 54a13aeb..abeeeaa3 100644 --- a/README.md +++ b/README.md @@ -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.1.0-rc.0-336-gbd6ff60a0 +- Package version: v1.1.0-rc.0-338-g4ede3573d - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceSpec.md b/docs/V1VirtualMachineInstanceSpec.md index 0d7edd5f..0b69e2b3 100644 --- a/docs/V1VirtualMachineInstanceSpec.md +++ b/docs/V1VirtualMachineInstanceSpec.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **dns_config** | [**K8sIoApiCoreV1PodDNSConfig**](K8sIoApiCoreV1PodDNSConfig.md) | Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. | [optional] **dns_policy** | **str** | Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. Possible enum values: - `\"ClusterFirst\"` indicates that the pod should use cluster DNS first unless hostNetwork is true, if it is available, then fall back on the default (as determined by kubelet) DNS settings. - `\"ClusterFirstWithHostNet\"` indicates that the pod should use cluster DNS first, if it is available, then fall back on the default (as determined by kubelet) DNS settings. - `\"Default\"` indicates that the pod should use the default (as determined by kubelet) DNS settings. - `\"None\"` indicates that the pod should use empty DNS settings. DNS parameters such as nameservers and search paths should be defined via DNSConfig. | [optional] **domain** | [**V1DomainSpec**](V1DomainSpec.md) | Specification of the desired behavior of the VirtualMachineInstance on the host. | -**eviction_strategy** | **str** | EvictionStrategy can be set to \"LiveMigrate\" if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain. | [optional] +**eviction_strategy** | **str** | EvictionStrategy describes the strategy to follow when a node drain occurs. The possible options are: - \"None\": No action will be taken, according to the specified 'RunStrategy' the VirtualMachine will be restarted or shutdown. - \"LiveMigrate\": the VirtualMachineInstance will be migrated instead of being shutdown. - \"LiveMigrateIfPossible\": the same as \"LiveMigrate\" but only if the VirtualMachine is Live-Migratable, otherwise it will behave as \"None\". - \"External\": the VirtualMachineInstance will be protected by a PDB and `vmi.Status.EvacuationNodeName` will be set on eviction. This is mainly useful for cluster-api-provider-kubevirt (capk) which needs a way for VMI's to be blocked from eviction, yet signal capk that eviction has been called on the VMI so the capk controller can handle tearing the VMI down. Details can be found in the commit description https://github.com/kubevirt/kubevirt/commit/c1d77face705c8b126696bac9a3ee3825f27f1fa. | [optional] **hostname** | **str** | Specifies the hostname of the vmi If not specified, the hostname will be set to the name of the vmi, if dhcp or cloud-init is configured properly. | [optional] **liveness_probe** | [**V1Probe**](V1Probe.md) | Periodic probe of VirtualMachineInstance liveness. VirtualmachineInstances will be stopped if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes | [optional] **networks** | [**list[V1Network]**](V1Network.md) | List of networks that can be attached to a vm's virtual interface. | [optional] diff --git a/git_push.sh b/git_push.sh index 75ca6266..a38ff206 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.1.0-rc.0-336-gbd6ff60a0" + release_note="Auto-generated client v1.1.0-rc.0-338-g4ede3573d" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index f92635a3..dbdfc783 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.1.0-rc.0-336-gbd6ff60a0/python' + self.user_agent = 'Swagger-Codegen/v1.1.0-rc.0-338-g4ede3573d/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index ec76430c..2fd3e8ea 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.1.0-rc.0-336-gbd6ff60a0".\ + "SDK Package Version: v1.1.0-rc.0-338-g4ede3573d".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_spec.py b/kubevirt/models/v1_virtual_machine_instance_spec.py index 98f213f0..78928248 100644 --- a/kubevirt/models/v1_virtual_machine_instance_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_spec.py @@ -292,7 +292,7 @@ def domain(self, domain): def eviction_strategy(self): """ Gets the eviction_strategy of this V1VirtualMachineInstanceSpec. - EvictionStrategy can be set to \"LiveMigrate\" if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain. + EvictionStrategy describes the strategy to follow when a node drain occurs. The possible options are: - \"None\": No action will be taken, according to the specified 'RunStrategy' the VirtualMachine will be restarted or shutdown. - \"LiveMigrate\": the VirtualMachineInstance will be migrated instead of being shutdown. - \"LiveMigrateIfPossible\": the same as \"LiveMigrate\" but only if the VirtualMachine is Live-Migratable, otherwise it will behave as \"None\". - \"External\": the VirtualMachineInstance will be protected by a PDB and `vmi.Status.EvacuationNodeName` will be set on eviction. This is mainly useful for cluster-api-provider-kubevirt (capk) which needs a way for VMI's to be blocked from eviction, yet signal capk that eviction has been called on the VMI so the capk controller can handle tearing the VMI down. Details can be found in the commit description https://github.com/kubevirt/kubevirt/commit/c1d77face705c8b126696bac9a3ee3825f27f1fa. :return: The eviction_strategy of this V1VirtualMachineInstanceSpec. :rtype: str @@ -303,7 +303,7 @@ def eviction_strategy(self): def eviction_strategy(self, eviction_strategy): """ Sets the eviction_strategy of this V1VirtualMachineInstanceSpec. - EvictionStrategy can be set to \"LiveMigrate\" if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain. + EvictionStrategy describes the strategy to follow when a node drain occurs. The possible options are: - \"None\": No action will be taken, according to the specified 'RunStrategy' the VirtualMachine will be restarted or shutdown. - \"LiveMigrate\": the VirtualMachineInstance will be migrated instead of being shutdown. - \"LiveMigrateIfPossible\": the same as \"LiveMigrate\" but only if the VirtualMachine is Live-Migratable, otherwise it will behave as \"None\". - \"External\": the VirtualMachineInstance will be protected by a PDB and `vmi.Status.EvacuationNodeName` will be set on eviction. This is mainly useful for cluster-api-provider-kubevirt (capk) which needs a way for VMI's to be blocked from eviction, yet signal capk that eviction has been called on the VMI so the capk controller can handle tearing the VMI down. Details can be found in the commit description https://github.com/kubevirt/kubevirt/commit/c1d77face705c8b126696bac9a3ee3825f27f1fa. :param eviction_strategy: The eviction_strategy of this V1VirtualMachineInstanceSpec. :type: str diff --git a/setup.py b/setup.py index 98d678b6..59e54068 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.1.0-rc.0-336-gbd6ff60a0" +VERSION = "v1.1.0-rc.0-338-g4ede3573d" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 4caedd21..334abe02 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.1.0-rc.0-336-gbd6ff60a0" +"packageVersion": "v1.1.0-rc.0-338-g4ede3573d" } From d38d7235a99a43a7ff3b606d44a116dc882f25fa Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Sun, 24 Dec 2023 19:51:55 +0000 Subject: [PATCH 386/521] Client Python update by KubeVirt Prow build 1738997145748377600 --- README.md | 2 +- docs/V1Interface.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_interface.py | 2 ++ setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index abeeeaa3..68852a11 100644 --- a/README.md +++ b/README.md @@ -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.1.0-rc.0-338-g4ede3573d +- Package version: v1.1.0-rc.0-407-g5c64336ef - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Interface.md b/docs/V1Interface.md index f7c1723c..6304cd7c 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **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 ''] -**passt** | [**V1InterfacePasst**](V1InterfacePasst.md) | | [optional] +**passt** | [**V1InterfacePasst**](V1InterfacePasst.md) | Deprecated, please refer to Kubevirt user guide for alternatives. | [optional] **pci_address** | **str** | If specified, the virtual network interface will be placed on the guests pci address with the specified PCI address. For example: 0000:81:01.10 | [optional] **ports** | [**list[V1Port]**](V1Port.md) | List of ports to be forwarded to the virtual machine. | [optional] **slirp** | [**V1InterfaceSlirp**](V1InterfaceSlirp.md) | | [optional] diff --git a/git_push.sh b/git_push.sh index a38ff206..33e39e3f 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.1.0-rc.0-338-g4ede3573d" + release_note="Auto-generated client v1.1.0-rc.0-407-g5c64336ef" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index dbdfc783..9f17e198 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.1.0-rc.0-338-g4ede3573d/python' + self.user_agent = 'Swagger-Codegen/v1.1.0-rc.0-407-g5c64336ef/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 2fd3e8ea..0586c290 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.1.0-rc.0-338-g4ede3573d".\ + "SDK Package Version: v1.1.0-rc.0-407-g5c64336ef".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_interface.py b/kubevirt/models/v1_interface.py index f81f2b82..cc67a5a4 100644 --- a/kubevirt/models/v1_interface.py +++ b/kubevirt/models/v1_interface.py @@ -357,6 +357,7 @@ def name(self, name): def passt(self): """ Gets the passt of this V1Interface. + Deprecated, please refer to Kubevirt user guide for alternatives. :return: The passt of this V1Interface. :rtype: V1InterfacePasst @@ -367,6 +368,7 @@ def passt(self): def passt(self, passt): """ Sets the passt of this V1Interface. + Deprecated, please refer to Kubevirt user guide for alternatives. :param passt: The passt of this V1Interface. :type: V1InterfacePasst diff --git a/setup.py b/setup.py index 59e54068..ca0200f8 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.1.0-rc.0-338-g4ede3573d" +VERSION = "v1.1.0-rc.0-407-g5c64336ef" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 334abe02..dcaa693a 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.1.0-rc.0-338-g4ede3573d" +"packageVersion": "v1.1.0-rc.0-407-g5c64336ef" } From f6179c00ba0b97931aecaba5f797d720261e1418 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Tue, 26 Dec 2023 07:15:23 +0000 Subject: [PATCH 387/521] Client Python update by KubeVirt Prow build 1739535698580475904 --- README.md | 2 +- docs/V1Interface.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_interface.py | 2 ++ setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 68852a11..8fd98d32 100644 --- a/README.md +++ b/README.md @@ -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.1.0-rc.0-407-g5c64336ef +- Package version: v1.1.0-rc.0-416-ge270a2da3 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Interface.md b/docs/V1Interface.md index 6304cd7c..b448b14c 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -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) | | [optional] +**macvtap** | [**V1InterfaceMacvtap**](V1InterfaceMacvtap.md) | Deprecated, please refer to Kubevirt user guide for alternatives. | [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 ''] diff --git a/git_push.sh b/git_push.sh index 33e39e3f..7acc7a8c 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.1.0-rc.0-407-g5c64336ef" + release_note="Auto-generated client v1.1.0-rc.0-416-ge270a2da3" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 9f17e198..fa2a9eaa 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.1.0-rc.0-407-g5c64336ef/python' + self.user_agent = 'Swagger-Codegen/v1.1.0-rc.0-416-ge270a2da3/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 0586c290..d71f2d47 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.1.0-rc.0-407-g5c64336ef".\ + "SDK Package Version: v1.1.0-rc.0-416-ge270a2da3".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_interface.py b/kubevirt/models/v1_interface.py index cc67a5a4..7cd90016 100644 --- a/kubevirt/models/v1_interface.py +++ b/kubevirt/models/v1_interface.py @@ -267,6 +267,7 @@ def mac_address(self, mac_address): def macvtap(self): """ Gets the macvtap of this V1Interface. + Deprecated, please refer to Kubevirt user guide for alternatives. :return: The macvtap of this V1Interface. :rtype: V1InterfaceMacvtap @@ -277,6 +278,7 @@ def macvtap(self): def macvtap(self, macvtap): """ Sets the macvtap of this V1Interface. + Deprecated, please refer to Kubevirt user guide for alternatives. :param macvtap: The macvtap of this V1Interface. :type: V1InterfaceMacvtap diff --git a/setup.py b/setup.py index ca0200f8..0e4c85d8 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.1.0-rc.0-407-g5c64336ef" +VERSION = "v1.1.0-rc.0-416-ge270a2da3" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index dcaa693a..a77e533c 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.1.0-rc.0-407-g5c64336ef" +"packageVersion": "v1.1.0-rc.0-416-ge270a2da3" } From b1f9318aa8d81753754ae9c4b4a79e28f10e5cc5 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 5 Jan 2024 22:47:39 +0000 Subject: [PATCH 388/521] Client Python update by KubeVirt Prow build 1743393704560824320 --- README.md | 4 ++-- docs/DefaultApi.md | 10 +++++----- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 14 +++++++------- kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 4 ++-- 9 files changed, 21 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 8fd98d32..51b66d17 100644 --- a/README.md +++ b/README.md @@ -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.1.0-rc.0-416-ge270a2da3 +- Package version: v1.1.0-rc.0-472-ge443412af - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -120,7 +120,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_virtual_machine_clone**](docs/DefaultApi.md#delete_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | *DefaultApi* | [**delete_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#delete_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | *DefaultApi* | [**delete_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | -*DefaultApi* | [**func1**](docs/DefaultApi.md#func1) | **GET** /healthz | +*DefaultApi* | [**func13**](docs/DefaultApi.md#func13) | **GET** /healthz | *DefaultApi* | [**func6**](docs/DefaultApi.md#func6) | **GET** /openapi/v2 | *DefaultApi* | [**get_api_group_clone_kubevirt_io**](docs/DefaultApi.md#get_api_group_clone_kubevirt_io) | **GET** /apis/clone.kubevirt.io/ | *DefaultApi* | [**get_api_group_export_kubevirt_io**](docs/DefaultApi.md#get_api_group_export_kubevirt_io) | **GET** /apis/export.kubevirt.io/ | diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 967577d1..cc1e7175 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -55,7 +55,7 @@ Method | HTTP request | Description [**delete_virtual_machine_clone**](DefaultApi.md#delete_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | [**delete_virtual_machine_cluster_instancetype**](DefaultApi.md#delete_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | [**delete_virtual_machine_cluster_preference**](DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | -[**func1**](DefaultApi.md#func1) | **GET** /healthz | +[**func13**](DefaultApi.md#func13) | **GET** /healthz | [**func6**](DefaultApi.md#func6) | **GET** /openapi/v2 | [**get_api_group_clone_kubevirt_io**](DefaultApi.md#get_api_group_clone_kubevirt_io) | **GET** /apis/clone.kubevirt.io/ | [**get_api_group_export_kubevirt_io**](DefaultApi.md#get_api_group_export_kubevirt_io) | **GET** /apis/export.kubevirt.io/ | @@ -3093,8 +3093,8 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **func1** -> func1() +# **func13** +> func13() @@ -3112,9 +3112,9 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() try: - api_instance.func1() + api_instance.func13() except ApiException as e: - print("Exception when calling DefaultApi->func1: %s\n" % e) + print("Exception when calling DefaultApi->func13: %s\n" % e) ``` ### Parameters diff --git a/git_push.sh b/git_push.sh index 7acc7a8c..1fee6fac 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.1.0-rc.0-416-ge270a2da3" + release_note="Auto-generated client v1.1.0-rc.0-472-ge443412af" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index fa2a9eaa..c4e1cf3e 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.1.0-rc.0-416-ge270a2da3/python' + self.user_agent = 'Swagger-Codegen/v1.1.0-rc.0-472-ge443412af/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index ac22aa36..325017d6 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -6206,7 +6206,7 @@ def delete_virtual_machine_cluster_preference_with_http_info(self, name, body, * _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def func1(self, **kwargs): + def func13(self, **kwargs): """ Health endpoint This method makes a synchronous HTTP request by default. To make an @@ -6215,7 +6215,7 @@ def func1(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.func1(callback=callback_function) + >>> thread = api.func13(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -6225,12 +6225,12 @@ def func1(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.func1_with_http_info(**kwargs) + return self.func13_with_http_info(**kwargs) else: - (data) = self.func1_with_http_info(**kwargs) + (data) = self.func13_with_http_info(**kwargs) return data - def func1_with_http_info(self, **kwargs): + def func13_with_http_info(self, **kwargs): """ Health endpoint This method makes a synchronous HTTP request by default. To make an @@ -6239,7 +6239,7 @@ def func1_with_http_info(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.func1_with_http_info(callback=callback_function) + >>> thread = api.func13_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -6259,7 +6259,7 @@ def func1_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method func1" % key + " to method func13" % key ) params[key] = val del params['kwargs'] diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index d71f2d47..af16a542 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.1.0-rc.0-416-ge270a2da3".\ + "SDK Package Version: v1.1.0-rc.0-472-ge443412af".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index 0e4c85d8..1931a766 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.1.0-rc.0-416-ge270a2da3" +VERSION = "v1.1.0-rc.0-472-ge443412af" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index a77e533c..4c1932d7 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.1.0-rc.0-416-ge270a2da3" +"packageVersion": "v1.1.0-rc.0-472-ge443412af" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 7258c8c8..59658835 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -439,9 +439,9 @@ def test_delete_virtual_machine_cluster_preference(self): """ pass - def test_func1(self): + def test_func13(self): """ - Test case for func1 + Test case for func13 """ From 02df33890c81836d8ea8b7a5f8d59f72b8660f82 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 24 Jan 2024 00:59:25 +0000 Subject: [PATCH 389/521] Client Python update by KubeVirt Prow build 1749945638977540096 --- README.md | 3 +- docs/V1VirtualMachineInstanceFileSystem.md | 1 + .../V1VirtualMachineInstanceFileSystemDisk.md | 11 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + ...v1_virtual_machine_instance_file_system.py | 28 +++- ...rtual_machine_instance_file_system_disk.py | 151 ++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- ...rtual_machine_instance_file_system_disk.py | 44 +++++ 14 files changed, 246 insertions(+), 7 deletions(-) create mode 100644 docs/V1VirtualMachineInstanceFileSystemDisk.md create mode 100644 kubevirt/models/v1_virtual_machine_instance_file_system_disk.py create mode 100644 test/test_v1_virtual_machine_instance_file_system_disk.py diff --git a/README.md b/README.md index 51b66d17..51a3b94a 100644 --- a/README.md +++ b/README.md @@ -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.1.0-rc.0-472-ge443412af +- Package version: v1.2.0-alpha.0-3-g80e35d316 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -575,6 +575,7 @@ Class | Method | HTTP request | Description - [V1VirtualMachineInstance](docs/V1VirtualMachineInstance.md) - [V1VirtualMachineInstanceCondition](docs/V1VirtualMachineInstanceCondition.md) - [V1VirtualMachineInstanceFileSystem](docs/V1VirtualMachineInstanceFileSystem.md) + - [V1VirtualMachineInstanceFileSystemDisk](docs/V1VirtualMachineInstanceFileSystemDisk.md) - [V1VirtualMachineInstanceFileSystemInfo](docs/V1VirtualMachineInstanceFileSystemInfo.md) - [V1VirtualMachineInstanceFileSystemList](docs/V1VirtualMachineInstanceFileSystemList.md) - [V1VirtualMachineInstanceGuestAgentInfo](docs/V1VirtualMachineInstanceGuestAgentInfo.md) diff --git a/docs/V1VirtualMachineInstanceFileSystem.md b/docs/V1VirtualMachineInstanceFileSystem.md index 8165d7f8..ed2183be 100644 --- a/docs/V1VirtualMachineInstanceFileSystem.md +++ b/docs/V1VirtualMachineInstanceFileSystem.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**disk** | [**list[V1VirtualMachineInstanceFileSystemDisk]**](V1VirtualMachineInstanceFileSystemDisk.md) | | [optional] **disk_name** | **str** | | [default to ''] **file_system_type** | **str** | | [default to ''] **mount_point** | **str** | | [default to ''] diff --git a/docs/V1VirtualMachineInstanceFileSystemDisk.md b/docs/V1VirtualMachineInstanceFileSystemDisk.md new file mode 100644 index 00000000..16c82b98 --- /dev/null +++ b/docs/V1VirtualMachineInstanceFileSystemDisk.md @@ -0,0 +1,11 @@ +# V1VirtualMachineInstanceFileSystemDisk + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bus_type** | **str** | | [default to ''] +**serial** | **str** | | [default to ''] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 1fee6fac..6a2af2e7 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.1.0-rc.0-472-ge443412af" + release_note="Auto-generated client v1.2.0-alpha.0-3-g80e35d316" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 9540544a..a99e4715 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -735,6 +735,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_virtual_machine_instance_file_system.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_file_system.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceFileSystem.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_file_system_disk.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_file_system_disk.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceFileSystemDisk.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_file_system_info.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_file_system_info.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceFileSystemInfo.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 5173a90f..28b3f40e 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -252,6 +252,7 @@ from .models.v1_virtual_machine_instance import V1VirtualMachineInstance from .models.v1_virtual_machine_instance_condition import V1VirtualMachineInstanceCondition from .models.v1_virtual_machine_instance_file_system import V1VirtualMachineInstanceFileSystem +from .models.v1_virtual_machine_instance_file_system_disk import V1VirtualMachineInstanceFileSystemDisk from .models.v1_virtual_machine_instance_file_system_info import V1VirtualMachineInstanceFileSystemInfo from .models.v1_virtual_machine_instance_file_system_list import V1VirtualMachineInstanceFileSystemList from .models.v1_virtual_machine_instance_guest_agent_info import V1VirtualMachineInstanceGuestAgentInfo diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index c4e1cf3e..ef84450c 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.1.0-rc.0-472-ge443412af/python' + self.user_agent = 'Swagger-Codegen/v1.2.0-alpha.0-3-g80e35d316/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index af16a542..f15f62e6 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.1.0-rc.0-472-ge443412af".\ + "SDK Package Version: v1.2.0-alpha.0-3-g80e35d316".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index f43fef2a..c5aa2bfd 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -252,6 +252,7 @@ from .v1_virtual_machine_instance import V1VirtualMachineInstance from .v1_virtual_machine_instance_condition import V1VirtualMachineInstanceCondition from .v1_virtual_machine_instance_file_system import V1VirtualMachineInstanceFileSystem +from .v1_virtual_machine_instance_file_system_disk import V1VirtualMachineInstanceFileSystemDisk from .v1_virtual_machine_instance_file_system_info import V1VirtualMachineInstanceFileSystemInfo from .v1_virtual_machine_instance_file_system_list import V1VirtualMachineInstanceFileSystemList from .v1_virtual_machine_instance_guest_agent_info import V1VirtualMachineInstanceGuestAgentInfo diff --git a/kubevirt/models/v1_virtual_machine_instance_file_system.py b/kubevirt/models/v1_virtual_machine_instance_file_system.py index 6d014ef9..cde5336e 100644 --- a/kubevirt/models/v1_virtual_machine_instance_file_system.py +++ b/kubevirt/models/v1_virtual_machine_instance_file_system.py @@ -31,6 +31,7 @@ class V1VirtualMachineInstanceFileSystem(object): and the value is json key in definition. """ swagger_types = { + 'disk': 'list[V1VirtualMachineInstanceFileSystemDisk]', 'disk_name': 'str', 'file_system_type': 'str', 'mount_point': 'str', @@ -39,6 +40,7 @@ class V1VirtualMachineInstanceFileSystem(object): } attribute_map = { + 'disk': 'disk', 'disk_name': 'diskName', 'file_system_type': 'fileSystemType', 'mount_point': 'mountPoint', @@ -46,23 +48,47 @@ class V1VirtualMachineInstanceFileSystem(object): 'used_bytes': 'usedBytes' } - def __init__(self, disk_name='', file_system_type='', mount_point='', total_bytes=0, used_bytes=0): + def __init__(self, disk=None, disk_name='', file_system_type='', mount_point='', total_bytes=0, used_bytes=0): """ V1VirtualMachineInstanceFileSystem - a model defined in Swagger """ + self._disk = None self._disk_name = None self._file_system_type = None self._mount_point = None self._total_bytes = None self._used_bytes = None + if disk is not None: + self.disk = disk self.disk_name = disk_name self.file_system_type = file_system_type self.mount_point = mount_point self.total_bytes = total_bytes self.used_bytes = used_bytes + @property + def disk(self): + """ + Gets the disk of this V1VirtualMachineInstanceFileSystem. + + :return: The disk of this V1VirtualMachineInstanceFileSystem. + :rtype: list[V1VirtualMachineInstanceFileSystemDisk] + """ + return self._disk + + @disk.setter + def disk(self, disk): + """ + Sets the disk of this V1VirtualMachineInstanceFileSystem. + + :param disk: The disk of this V1VirtualMachineInstanceFileSystem. + :type: list[V1VirtualMachineInstanceFileSystemDisk] + """ + + self._disk = disk + @property def disk_name(self): """ diff --git a/kubevirt/models/v1_virtual_machine_instance_file_system_disk.py b/kubevirt/models/v1_virtual_machine_instance_file_system_disk.py new file mode 100644 index 00000000..f4b453a3 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_file_system_disk.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineInstanceFileSystemDisk(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'bus_type': 'str', + 'serial': 'str' + } + + attribute_map = { + 'bus_type': 'bus-type', + 'serial': 'serial' + } + + def __init__(self, bus_type='', serial=''): + """ + V1VirtualMachineInstanceFileSystemDisk - a model defined in Swagger + """ + + self._bus_type = None + self._serial = None + + self.bus_type = bus_type + self.serial = serial + + @property + def bus_type(self): + """ + Gets the bus_type of this V1VirtualMachineInstanceFileSystemDisk. + + :return: The bus_type of this V1VirtualMachineInstanceFileSystemDisk. + :rtype: str + """ + return self._bus_type + + @bus_type.setter + def bus_type(self, bus_type): + """ + Sets the bus_type of this V1VirtualMachineInstanceFileSystemDisk. + + :param bus_type: The bus_type of this V1VirtualMachineInstanceFileSystemDisk. + :type: str + """ + if bus_type is None: + raise ValueError("Invalid value for `bus_type`, must not be `None`") + + self._bus_type = bus_type + + @property + def serial(self): + """ + Gets the serial of this V1VirtualMachineInstanceFileSystemDisk. + + :return: The serial of this V1VirtualMachineInstanceFileSystemDisk. + :rtype: str + """ + return self._serial + + @serial.setter + def serial(self, serial): + """ + Sets the serial of this V1VirtualMachineInstanceFileSystemDisk. + + :param serial: The serial of this V1VirtualMachineInstanceFileSystemDisk. + :type: str + """ + if serial is None: + raise ValueError("Invalid value for `serial`, must not be `None`") + + self._serial = serial + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineInstanceFileSystemDisk): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 1931a766..b89cbd60 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.1.0-rc.0-472-ge443412af" +VERSION = "v1.2.0-alpha.0-3-g80e35d316" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 4c1932d7..709453f6 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.1.0-rc.0-472-ge443412af" +"packageVersion": "v1.2.0-alpha.0-3-g80e35d316" } diff --git a/test/test_v1_virtual_machine_instance_file_system_disk.py b/test/test_v1_virtual_machine_instance_file_system_disk.py new file mode 100644 index 00000000..51f22fac --- /dev/null +++ b/test/test_v1_virtual_machine_instance_file_system_disk.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_file_system_disk import V1VirtualMachineInstanceFileSystemDisk + + +class TestV1VirtualMachineInstanceFileSystemDisk(unittest.TestCase): + """ V1VirtualMachineInstanceFileSystemDisk unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceFileSystemDisk(self): + """ + Test V1VirtualMachineInstanceFileSystemDisk + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_file_system_disk.V1VirtualMachineInstanceFileSystemDisk() + pass + + +if __name__ == '__main__': + unittest.main() From 365955f93ccd2b31756f154b51aefa65b6a99307 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Mon, 5 Feb 2024 22:29:11 +0000 Subject: [PATCH 390/521] Client Python update by KubeVirt Prow build 1754617148090617856 --- README.md | 3 +- docs/V1InterfaceBindingMigration.md | 10 ++ docs/V1InterfaceBindingPlugin.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + .../models/v1_interface_binding_migration.py | 125 ++++++++++++++++++ .../models/v1_interface_binding_plugin.py | 30 ++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_interface_binding_migration.py | 44 ++++++ 14 files changed, 221 insertions(+), 7 deletions(-) create mode 100644 docs/V1InterfaceBindingMigration.md create mode 100644 kubevirt/models/v1_interface_binding_migration.py create mode 100644 test/test_v1_interface_binding_migration.py diff --git a/README.md b/README.md index 51a3b94a..22efa417 100644 --- a/README.md +++ b/README.md @@ -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.2.0-alpha.0-3-g80e35d316 +- Package version: v1.2.0-beta.0-29-g425ad8444 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -469,6 +469,7 @@ Class | Method | HTTP request | Description - [V1Input](docs/V1Input.md) - [V1InstancetypeMatcher](docs/V1InstancetypeMatcher.md) - [V1Interface](docs/V1Interface.md) + - [V1InterfaceBindingMigration](docs/V1InterfaceBindingMigration.md) - [V1InterfaceBindingPlugin](docs/V1InterfaceBindingPlugin.md) - [V1InterfaceBridge](docs/V1InterfaceBridge.md) - [V1InterfaceMacvtap](docs/V1InterfaceMacvtap.md) diff --git a/docs/V1InterfaceBindingMigration.md b/docs/V1InterfaceBindingMigration.md new file mode 100644 index 00000000..79ea4aa7 --- /dev/null +++ b/docs/V1InterfaceBindingMigration.md @@ -0,0 +1,10 @@ +# V1InterfaceBindingMigration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**method** | **str** | Method defines a pre-defined migration methodology version: 1alphav1 | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1InterfaceBindingPlugin.md b/docs/V1InterfaceBindingPlugin.md index 255e1b0e..b255def9 100644 --- a/docs/V1InterfaceBindingPlugin.md +++ b/docs/V1InterfaceBindingPlugin.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **domain_attachment_type** | **str** | DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: \"tap\". The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1 | [optional] +**migration** | [**V1InterfaceBindingMigration**](V1InterfaceBindingMigration.md) | Migration means the VM using the plugin can be safely migrated version: 1alphav1 | [optional] **network_attachment_definition** | **str** | NetworkAttachmentDefinition references to a NetworkAttachmentDefinition CR object. Format: <name>, <namespace>/<name>. If namespace is not specified, VMI namespace is assumed. version: 1alphav1 | [optional] **sidecar_image** | **str** | SidecarImage references a container image that runs in the virt-launcher pod. The sidecar handles (libvirt) domain configuration and optional services. version: 1alphav1 | [optional] diff --git a/git_push.sh b/git_push.sh index 6a2af2e7..2fa74a01 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.2.0-alpha.0-3-g80e35d316" + release_note="Auto-generated client v1.2.0-beta.0-29-g425ad8444" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index a99e4715..0793dfa8 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -417,6 +417,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_interface.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Interface.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_interface_binding_migration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface_binding_migration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InterfaceBindingMigration.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_interface_binding_plugin.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface_binding_plugin.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InterfaceBindingPlugin.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 28b3f40e..c7137990 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -146,6 +146,7 @@ from .models.v1_input import V1Input from .models.v1_instancetype_matcher import V1InstancetypeMatcher from .models.v1_interface import V1Interface +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 diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index ef84450c..135b8828 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.2.0-alpha.0-3-g80e35d316/python' + self.user_agent = 'Swagger-Codegen/v1.2.0-beta.0-29-g425ad8444/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index f15f62e6..18fded38 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.2.0-alpha.0-3-g80e35d316".\ + "SDK Package Version: v1.2.0-beta.0-29-g425ad8444".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index c5aa2bfd..2aa4b986 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -146,6 +146,7 @@ from .v1_input import V1Input from .v1_instancetype_matcher import V1InstancetypeMatcher from .v1_interface import V1Interface +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 diff --git a/kubevirt/models/v1_interface_binding_migration.py b/kubevirt/models/v1_interface_binding_migration.py new file mode 100644 index 00000000..a7eeefdb --- /dev/null +++ b/kubevirt/models/v1_interface_binding_migration.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1InterfaceBindingMigration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'method': 'str' + } + + attribute_map = { + 'method': 'method' + } + + def __init__(self, method=None): + """ + V1InterfaceBindingMigration - a model defined in Swagger + """ + + self._method = None + + if method is not None: + self.method = method + + @property + def method(self): + """ + Gets the method of this V1InterfaceBindingMigration. + Method defines a pre-defined migration methodology version: 1alphav1 + + :return: The method of this V1InterfaceBindingMigration. + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """ + Sets the method of this V1InterfaceBindingMigration. + Method defines a pre-defined migration methodology version: 1alphav1 + + :param method: The method of this V1InterfaceBindingMigration. + :type: str + """ + + self._method = method + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1InterfaceBindingMigration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_interface_binding_plugin.py b/kubevirt/models/v1_interface_binding_plugin.py index a7eeb758..42010384 100644 --- a/kubevirt/models/v1_interface_binding_plugin.py +++ b/kubevirt/models/v1_interface_binding_plugin.py @@ -32,27 +32,32 @@ class V1InterfaceBindingPlugin(object): """ swagger_types = { 'domain_attachment_type': 'str', + 'migration': 'V1InterfaceBindingMigration', 'network_attachment_definition': 'str', 'sidecar_image': 'str' } attribute_map = { 'domain_attachment_type': 'domainAttachmentType', + 'migration': 'migration', 'network_attachment_definition': 'networkAttachmentDefinition', 'sidecar_image': 'sidecarImage' } - def __init__(self, domain_attachment_type=None, network_attachment_definition=None, sidecar_image=None): + def __init__(self, domain_attachment_type=None, migration=None, network_attachment_definition=None, sidecar_image=None): """ V1InterfaceBindingPlugin - a model defined in Swagger """ self._domain_attachment_type = None + self._migration = None self._network_attachment_definition = None self._sidecar_image = None if domain_attachment_type is not None: self.domain_attachment_type = domain_attachment_type + if migration is not None: + self.migration = migration if network_attachment_definition is not None: self.network_attachment_definition = network_attachment_definition if sidecar_image is not None: @@ -81,6 +86,29 @@ def domain_attachment_type(self, domain_attachment_type): self._domain_attachment_type = domain_attachment_type + @property + def migration(self): + """ + Gets the migration of this V1InterfaceBindingPlugin. + Migration means the VM using the plugin can be safely migrated version: 1alphav1 + + :return: The migration of this V1InterfaceBindingPlugin. + :rtype: V1InterfaceBindingMigration + """ + return self._migration + + @migration.setter + def migration(self, migration): + """ + Sets the migration of this V1InterfaceBindingPlugin. + Migration means the VM using the plugin can be safely migrated version: 1alphav1 + + :param migration: The migration of this V1InterfaceBindingPlugin. + :type: V1InterfaceBindingMigration + """ + + self._migration = migration + @property def network_attachment_definition(self): """ diff --git a/setup.py b/setup.py index b89cbd60..c3e551ee 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.2.0-alpha.0-3-g80e35d316" +VERSION = "v1.2.0-beta.0-29-g425ad8444" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 709453f6..9cefb1e4 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.2.0-alpha.0-3-g80e35d316" +"packageVersion": "v1.2.0-beta.0-29-g425ad8444" } diff --git a/test/test_v1_interface_binding_migration.py b/test/test_v1_interface_binding_migration.py new file mode 100644 index 00000000..66a9b127 --- /dev/null +++ b/test/test_v1_interface_binding_migration.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_interface_binding_migration import V1InterfaceBindingMigration + + +class TestV1InterfaceBindingMigration(unittest.TestCase): + """ V1InterfaceBindingMigration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1InterfaceBindingMigration(self): + """ + Test V1InterfaceBindingMigration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_interface_binding_migration.V1InterfaceBindingMigration() + pass + + +if __name__ == '__main__': + unittest.main() From 8ce29dec15d23223aad5d8eb8062f4f8a0f4690b Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Tue, 6 Feb 2024 18:33:42 +0000 Subject: [PATCH 391/521] Client Python update by KubeVirt Prow build 1754924677580460032 --- README.md | 6 +- docs/V1KubeVirtConfiguration.md | 1 + docs/V1LiveUpdateAffinity.md | 9 - docs/V1LiveUpdateCPU.md | 10 - docs/V1LiveUpdateFeatures.md | 12 -- docs/V1LiveUpdateMemory.md | 10 - docs/V1VirtualMachineSpec.md | 1 - git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 12 -- kubevirt/__init__.py | 4 - kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 4 - kubevirt/models/v1_kube_virt_configuration.py | 30 ++- kubevirt/models/v1_live_update_affinity.py | 99 ---------- kubevirt/models/v1_live_update_cpu.py | 125 ------------ kubevirt/models/v1_live_update_features.py | 181 ------------------ kubevirt/models/v1_live_update_memory.py | 125 ------------ kubevirt/models/v1_virtual_machine_spec.py | 30 +-- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_live_update_affinity.py | 44 ----- test/test_v1_live_update_cpu.py | 44 ----- test/test_v1_live_update_features.py | 44 ----- test/test_v1_live_update_memory.py | 44 ----- 25 files changed, 37 insertions(+), 808 deletions(-) delete mode 100644 docs/V1LiveUpdateAffinity.md delete mode 100644 docs/V1LiveUpdateCPU.md delete mode 100644 docs/V1LiveUpdateFeatures.md delete mode 100644 docs/V1LiveUpdateMemory.md delete mode 100644 kubevirt/models/v1_live_update_affinity.py delete mode 100644 kubevirt/models/v1_live_update_cpu.py delete mode 100644 kubevirt/models/v1_live_update_features.py delete mode 100644 kubevirt/models/v1_live_update_memory.py delete mode 100644 test/test_v1_live_update_affinity.py delete mode 100644 test/test_v1_live_update_cpu.py delete mode 100644 test/test_v1_live_update_features.py delete mode 100644 test/test_v1_live_update_memory.py diff --git a/README.md b/README.md index 22efa417..c86017e6 100644 --- a/README.md +++ b/README.md @@ -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.2.0-beta.0-29-g425ad8444 +- Package version: v1.2.0-beta.0-56-g0b3024940 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -493,11 +493,7 @@ Class | Method | HTTP request | Description - [V1KubeVirtStatus](docs/V1KubeVirtStatus.md) - [V1KubeVirtWorkloadUpdateStrategy](docs/V1KubeVirtWorkloadUpdateStrategy.md) - [V1LaunchSecurity](docs/V1LaunchSecurity.md) - - [V1LiveUpdateAffinity](docs/V1LiveUpdateAffinity.md) - - [V1LiveUpdateCPU](docs/V1LiveUpdateCPU.md) - [V1LiveUpdateConfiguration](docs/V1LiveUpdateConfiguration.md) - - [V1LiveUpdateFeatures](docs/V1LiveUpdateFeatures.md) - - [V1LiveUpdateMemory](docs/V1LiveUpdateMemory.md) - [V1LogVerbosity](docs/V1LogVerbosity.md) - [V1LunTarget](docs/V1LunTarget.md) - [V1Machine](docs/V1Machine.md) diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index 552ee968..07e102da 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -35,6 +35,7 @@ Name | Type | Description | Notes **tls_configuration** | [**V1TLSConfiguration**](V1TLSConfiguration.md) | | [optional] **virtual_machine_instances_per_node** | **int** | | [optional] **virtual_machine_options** | [**V1VirtualMachineOptions**](V1VirtualMachineOptions.md) | | [optional] +**vm_rollout_strategy** | **str** | VMRolloutStrategy defines how changes to a VM object propagate to its VMI | [optional] **vm_state_storage_class** | **str** | VMStateStorageClass is the name of the storage class to use for the PVCs created to preserve VM state, like TPM. The storage class must support RWX in filesystem mode. | [optional] **webhook_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] diff --git a/docs/V1LiveUpdateAffinity.md b/docs/V1LiveUpdateAffinity.md deleted file mode 100644 index f0972d60..00000000 --- a/docs/V1LiveUpdateAffinity.md +++ /dev/null @@ -1,9 +0,0 @@ -# V1LiveUpdateAffinity - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1LiveUpdateCPU.md b/docs/V1LiveUpdateCPU.md deleted file mode 100644 index d629c4f1..00000000 --- a/docs/V1LiveUpdateCPU.md +++ /dev/null @@ -1,10 +0,0 @@ -# V1LiveUpdateCPU - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**max_sockets** | **int** | The maximum amount of sockets that can be hot-plugged to the Virtual Machine | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1LiveUpdateFeatures.md b/docs/V1LiveUpdateFeatures.md deleted file mode 100644 index 77eec359..00000000 --- a/docs/V1LiveUpdateFeatures.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1LiveUpdateFeatures - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**affinity** | [**V1LiveUpdateAffinity**](V1LiveUpdateAffinity.md) | Affinity allows live updating the virtual machines node affinity | [optional] -**cpu** | [**V1LiveUpdateCPU**](V1LiveUpdateCPU.md) | LiveUpdateCPU holds hotplug configuration for the CPU resource. Empty struct indicates that default will be used for maxSockets. Default is specified on cluster level. Absence of the struct means opt-out from CPU hotplug functionality. | [optional] -**memory** | [**V1LiveUpdateMemory**](V1LiveUpdateMemory.md) | MemoryLiveUpdateConfiguration defines the live update memory features for the VirtualMachine | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1LiveUpdateMemory.md b/docs/V1LiveUpdateMemory.md deleted file mode 100644 index 3ac0cef7..00000000 --- a/docs/V1LiveUpdateMemory.md +++ /dev/null @@ -1,10 +0,0 @@ -# V1LiveUpdateMemory - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**max_guest** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | MaxGuest defines the maximum amount memory that can be allocated for the VM. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1VirtualMachineSpec.md b/docs/V1VirtualMachineSpec.md index 408ccde1..8d4ca153 100644 --- a/docs/V1VirtualMachineSpec.md +++ b/docs/V1VirtualMachineSpec.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data_volume_templates** | [**list[V1DataVolumeTemplateSpec]**](V1DataVolumeTemplateSpec.md) | dataVolumeTemplates is a list of dataVolumes that the VirtualMachineInstance template can reference. DataVolumes in this list are dynamically created for the VirtualMachine and are tied to the VirtualMachine's life-cycle. | [optional] **instancetype** | [**V1InstancetypeMatcher**](V1InstancetypeMatcher.md) | InstancetypeMatcher references a instancetype that is used to fill fields in Template | [optional] -**live_update_features** | [**V1LiveUpdateFeatures**](V1LiveUpdateFeatures.md) | LiveUpdateFeatures references a configuration of hotpluggable resources | [optional] **preference** | [**V1PreferenceMatcher**](V1PreferenceMatcher.md) | PreferenceMatcher references a set of preference that is used to fill fields in Template | [optional] **run_strategy** | **str** | Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running | [optional] **running** | **bool** | Running controls whether the associatied VirtualMachineInstance is created or not Mutually exclusive with RunStrategy | [optional] diff --git a/git_push.sh b/git_push.sh index 2fa74a01..89af7bfb 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.2.0-beta.0-29-g425ad8444" + release_note="Auto-generated client v1.2.0-beta.0-56-g0b3024940" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 0793dfa8..63f84a15 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -489,21 +489,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_launch_security.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_launch_security.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1LaunchSecurity.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_live_update_affinity.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_live_update_affinity.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1LiveUpdateAffinity.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_live_update_cpu.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_live_update_cpu.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1LiveUpdateCPU.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_live_update_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_live_update_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1LiveUpdateConfiguration.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_live_update_features.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_live_update_features.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1LiveUpdateFeatures.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_live_update_memory.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_live_update_memory.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1LiveUpdateMemory.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_log_verbosity.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_log_verbosity.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1LogVerbosity.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index c7137990..8cd15c08 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -170,11 +170,7 @@ from .models.v1_kube_virt_status import V1KubeVirtStatus from .models.v1_kube_virt_workload_update_strategy import V1KubeVirtWorkloadUpdateStrategy from .models.v1_launch_security import V1LaunchSecurity -from .models.v1_live_update_affinity import V1LiveUpdateAffinity -from .models.v1_live_update_cpu import V1LiveUpdateCPU from .models.v1_live_update_configuration import V1LiveUpdateConfiguration -from .models.v1_live_update_features import V1LiveUpdateFeatures -from .models.v1_live_update_memory import V1LiveUpdateMemory from .models.v1_log_verbosity import V1LogVerbosity from .models.v1_lun_target import V1LunTarget from .models.v1_machine import V1Machine diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 135b8828..4126f89d 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.2.0-beta.0-29-g425ad8444/python' + self.user_agent = 'Swagger-Codegen/v1.2.0-beta.0-56-g0b3024940/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 18fded38..56de9024 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.2.0-beta.0-29-g425ad8444".\ + "SDK Package Version: v1.2.0-beta.0-56-g0b3024940".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 2aa4b986..5bd71080 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -170,11 +170,7 @@ from .v1_kube_virt_status import V1KubeVirtStatus from .v1_kube_virt_workload_update_strategy import V1KubeVirtWorkloadUpdateStrategy from .v1_launch_security import V1LaunchSecurity -from .v1_live_update_affinity import V1LiveUpdateAffinity -from .v1_live_update_cpu import V1LiveUpdateCPU from .v1_live_update_configuration import V1LiveUpdateConfiguration -from .v1_live_update_features import V1LiveUpdateFeatures -from .v1_live_update_memory import V1LiveUpdateMemory from .v1_log_verbosity import V1LogVerbosity from .v1_lun_target import V1LunTarget from .v1_machine import V1Machine diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index e11310ce..ef28867e 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -63,6 +63,7 @@ class V1KubeVirtConfiguration(object): 'tls_configuration': 'V1TLSConfiguration', 'virtual_machine_instances_per_node': 'int', 'virtual_machine_options': 'V1VirtualMachineOptions', + 'vm_rollout_strategy': 'str', 'vm_state_storage_class': 'str', 'webhook_configuration': 'V1ReloadableComponentConfiguration' } @@ -100,11 +101,12 @@ class V1KubeVirtConfiguration(object): 'tls_configuration': 'tlsConfiguration', 'virtual_machine_instances_per_node': 'virtualMachineInstancesPerNode', 'virtual_machine_options': 'virtualMachineOptions', + 'vm_rollout_strategy': 'vmRolloutStrategy', 'vm_state_storage_class': 'vmStateStorageClass', 'webhook_configuration': 'webhookConfiguration' } - def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, auto_cpu_limit_namespace_label_selector=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, ksm_configuration=None, live_update_configuration=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, virtual_machine_options=None, vm_state_storage_class=None, webhook_configuration=None): + def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, auto_cpu_limit_namespace_label_selector=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, ksm_configuration=None, live_update_configuration=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, virtual_machine_options=None, vm_rollout_strategy=None, vm_state_storage_class=None, webhook_configuration=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ @@ -141,6 +143,7 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self._tls_configuration = None self._virtual_machine_instances_per_node = None self._virtual_machine_options = None + self._vm_rollout_strategy = None self._vm_state_storage_class = None self._webhook_configuration = None @@ -208,6 +211,8 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self.virtual_machine_instances_per_node = virtual_machine_instances_per_node if virtual_machine_options is not None: self.virtual_machine_options = virtual_machine_options + if vm_rollout_strategy is not None: + self.vm_rollout_strategy = vm_rollout_strategy if vm_state_storage_class is not None: self.vm_state_storage_class = vm_state_storage_class if webhook_configuration is not None: @@ -909,6 +914,29 @@ def virtual_machine_options(self, virtual_machine_options): self._virtual_machine_options = virtual_machine_options + @property + def vm_rollout_strategy(self): + """ + Gets the vm_rollout_strategy of this V1KubeVirtConfiguration. + VMRolloutStrategy defines how changes to a VM object propagate to its VMI + + :return: The vm_rollout_strategy of this V1KubeVirtConfiguration. + :rtype: str + """ + return self._vm_rollout_strategy + + @vm_rollout_strategy.setter + def vm_rollout_strategy(self, vm_rollout_strategy): + """ + Sets the vm_rollout_strategy of this V1KubeVirtConfiguration. + VMRolloutStrategy defines how changes to a VM object propagate to its VMI + + :param vm_rollout_strategy: The vm_rollout_strategy of this V1KubeVirtConfiguration. + :type: str + """ + + self._vm_rollout_strategy = vm_rollout_strategy + @property def vm_state_storage_class(self): """ diff --git a/kubevirt/models/v1_live_update_affinity.py b/kubevirt/models/v1_live_update_affinity.py deleted file mode 100644 index 61cef79d..00000000 --- a/kubevirt/models/v1_live_update_affinity.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1LiveUpdateAffinity(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - - } - - attribute_map = { - - } - - def __init__(self): - """ - V1LiveUpdateAffinity - a model defined in Swagger - """ - - - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1LiveUpdateAffinity): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_live_update_cpu.py b/kubevirt/models/v1_live_update_cpu.py deleted file mode 100644 index e146b8ba..00000000 --- a/kubevirt/models/v1_live_update_cpu.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1LiveUpdateCPU(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'max_sockets': 'int' - } - - attribute_map = { - 'max_sockets': 'maxSockets' - } - - def __init__(self, max_sockets=None): - """ - V1LiveUpdateCPU - a model defined in Swagger - """ - - self._max_sockets = None - - if max_sockets is not None: - self.max_sockets = max_sockets - - @property - def max_sockets(self): - """ - Gets the max_sockets of this V1LiveUpdateCPU. - The maximum amount of sockets that can be hot-plugged to the Virtual Machine - - :return: The max_sockets of this V1LiveUpdateCPU. - :rtype: int - """ - return self._max_sockets - - @max_sockets.setter - def max_sockets(self, max_sockets): - """ - Sets the max_sockets of this V1LiveUpdateCPU. - The maximum amount of sockets that can be hot-plugged to the Virtual Machine - - :param max_sockets: The max_sockets of this V1LiveUpdateCPU. - :type: int - """ - - self._max_sockets = max_sockets - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1LiveUpdateCPU): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_live_update_features.py b/kubevirt/models/v1_live_update_features.py deleted file mode 100644 index 2f425933..00000000 --- a/kubevirt/models/v1_live_update_features.py +++ /dev/null @@ -1,181 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1LiveUpdateFeatures(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'affinity': 'V1LiveUpdateAffinity', - 'cpu': 'V1LiveUpdateCPU', - 'memory': 'V1LiveUpdateMemory' - } - - attribute_map = { - 'affinity': 'affinity', - 'cpu': 'cpu', - 'memory': 'memory' - } - - def __init__(self, affinity=None, cpu=None, memory=None): - """ - V1LiveUpdateFeatures - a model defined in Swagger - """ - - self._affinity = None - self._cpu = None - self._memory = None - - if affinity is not None: - self.affinity = affinity - if cpu is not None: - self.cpu = cpu - if memory is not None: - self.memory = memory - - @property - def affinity(self): - """ - Gets the affinity of this V1LiveUpdateFeatures. - Affinity allows live updating the virtual machines node affinity - - :return: The affinity of this V1LiveUpdateFeatures. - :rtype: V1LiveUpdateAffinity - """ - return self._affinity - - @affinity.setter - def affinity(self, affinity): - """ - Sets the affinity of this V1LiveUpdateFeatures. - Affinity allows live updating the virtual machines node affinity - - :param affinity: The affinity of this V1LiveUpdateFeatures. - :type: V1LiveUpdateAffinity - """ - - self._affinity = affinity - - @property - def cpu(self): - """ - Gets the cpu of this V1LiveUpdateFeatures. - LiveUpdateCPU holds hotplug configuration for the CPU resource. Empty struct indicates that default will be used for maxSockets. Default is specified on cluster level. Absence of the struct means opt-out from CPU hotplug functionality. - - :return: The cpu of this V1LiveUpdateFeatures. - :rtype: V1LiveUpdateCPU - """ - return self._cpu - - @cpu.setter - def cpu(self, cpu): - """ - Sets the cpu of this V1LiveUpdateFeatures. - LiveUpdateCPU holds hotplug configuration for the CPU resource. Empty struct indicates that default will be used for maxSockets. Default is specified on cluster level. Absence of the struct means opt-out from CPU hotplug functionality. - - :param cpu: The cpu of this V1LiveUpdateFeatures. - :type: V1LiveUpdateCPU - """ - - self._cpu = cpu - - @property - def memory(self): - """ - Gets the memory of this V1LiveUpdateFeatures. - MemoryLiveUpdateConfiguration defines the live update memory features for the VirtualMachine - - :return: The memory of this V1LiveUpdateFeatures. - :rtype: V1LiveUpdateMemory - """ - return self._memory - - @memory.setter - def memory(self, memory): - """ - Sets the memory of this V1LiveUpdateFeatures. - MemoryLiveUpdateConfiguration defines the live update memory features for the VirtualMachine - - :param memory: The memory of this V1LiveUpdateFeatures. - :type: V1LiveUpdateMemory - """ - - self._memory = memory - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1LiveUpdateFeatures): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_live_update_memory.py b/kubevirt/models/v1_live_update_memory.py deleted file mode 100644 index 5e756ad6..00000000 --- a/kubevirt/models/v1_live_update_memory.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1LiveUpdateMemory(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'max_guest': 'K8sIoApimachineryPkgApiResourceQuantity' - } - - attribute_map = { - 'max_guest': 'maxGuest' - } - - def __init__(self, max_guest=None): - """ - V1LiveUpdateMemory - a model defined in Swagger - """ - - self._max_guest = None - - if max_guest is not None: - self.max_guest = max_guest - - @property - def max_guest(self): - """ - Gets the max_guest of this V1LiveUpdateMemory. - MaxGuest defines the maximum amount memory that can be allocated for the VM. - - :return: The max_guest of this V1LiveUpdateMemory. - :rtype: K8sIoApimachineryPkgApiResourceQuantity - """ - return self._max_guest - - @max_guest.setter - def max_guest(self, max_guest): - """ - Sets the max_guest of this V1LiveUpdateMemory. - MaxGuest defines the maximum amount memory that can be allocated for the VM. - - :param max_guest: The max_guest of this V1LiveUpdateMemory. - :type: K8sIoApimachineryPkgApiResourceQuantity - """ - - self._max_guest = max_guest - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1LiveUpdateMemory): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_virtual_machine_spec.py b/kubevirt/models/v1_virtual_machine_spec.py index 3e3cd521..47b3eb38 100644 --- a/kubevirt/models/v1_virtual_machine_spec.py +++ b/kubevirt/models/v1_virtual_machine_spec.py @@ -33,7 +33,6 @@ class V1VirtualMachineSpec(object): swagger_types = { 'data_volume_templates': 'list[V1DataVolumeTemplateSpec]', 'instancetype': 'V1InstancetypeMatcher', - 'live_update_features': 'V1LiveUpdateFeatures', 'preference': 'V1PreferenceMatcher', 'run_strategy': 'str', 'running': 'bool', @@ -43,21 +42,19 @@ class V1VirtualMachineSpec(object): attribute_map = { 'data_volume_templates': 'dataVolumeTemplates', 'instancetype': 'instancetype', - 'live_update_features': 'liveUpdateFeatures', 'preference': 'preference', 'run_strategy': 'runStrategy', 'running': 'running', 'template': 'template' } - def __init__(self, data_volume_templates=None, instancetype=None, live_update_features=None, preference=None, run_strategy=None, running=None, template=None): + def __init__(self, data_volume_templates=None, instancetype=None, preference=None, run_strategy=None, running=None, template=None): """ V1VirtualMachineSpec - a model defined in Swagger """ self._data_volume_templates = None self._instancetype = None - self._live_update_features = None self._preference = None self._run_strategy = None self._running = None @@ -67,8 +64,6 @@ def __init__(self, data_volume_templates=None, instancetype=None, live_update_fe self.data_volume_templates = data_volume_templates if instancetype is not None: self.instancetype = instancetype - if live_update_features is not None: - self.live_update_features = live_update_features if preference is not None: self.preference = preference if run_strategy is not None: @@ -123,29 +118,6 @@ def instancetype(self, instancetype): self._instancetype = instancetype - @property - def live_update_features(self): - """ - Gets the live_update_features of this V1VirtualMachineSpec. - LiveUpdateFeatures references a configuration of hotpluggable resources - - :return: The live_update_features of this V1VirtualMachineSpec. - :rtype: V1LiveUpdateFeatures - """ - return self._live_update_features - - @live_update_features.setter - def live_update_features(self, live_update_features): - """ - Sets the live_update_features of this V1VirtualMachineSpec. - LiveUpdateFeatures references a configuration of hotpluggable resources - - :param live_update_features: The live_update_features of this V1VirtualMachineSpec. - :type: V1LiveUpdateFeatures - """ - - self._live_update_features = live_update_features - @property def preference(self): """ diff --git a/setup.py b/setup.py index c3e551ee..7339c014 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.2.0-beta.0-29-g425ad8444" +VERSION = "v1.2.0-beta.0-56-g0b3024940" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 9cefb1e4..ade31a28 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.2.0-beta.0-29-g425ad8444" +"packageVersion": "v1.2.0-beta.0-56-g0b3024940" } diff --git a/test/test_v1_live_update_affinity.py b/test/test_v1_live_update_affinity.py deleted file mode 100644 index e4e84a43..00000000 --- a/test/test_v1_live_update_affinity.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_live_update_affinity import V1LiveUpdateAffinity - - -class TestV1LiveUpdateAffinity(unittest.TestCase): - """ V1LiveUpdateAffinity unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1LiveUpdateAffinity(self): - """ - Test V1LiveUpdateAffinity - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_live_update_affinity.V1LiveUpdateAffinity() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_live_update_cpu.py b/test/test_v1_live_update_cpu.py deleted file mode 100644 index 97f6217a..00000000 --- a/test/test_v1_live_update_cpu.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_live_update_cpu import V1LiveUpdateCPU - - -class TestV1LiveUpdateCPU(unittest.TestCase): - """ V1LiveUpdateCPU unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1LiveUpdateCPU(self): - """ - Test V1LiveUpdateCPU - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_live_update_cpu.V1LiveUpdateCPU() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_live_update_features.py b/test/test_v1_live_update_features.py deleted file mode 100644 index 42349d38..00000000 --- a/test/test_v1_live_update_features.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_live_update_features import V1LiveUpdateFeatures - - -class TestV1LiveUpdateFeatures(unittest.TestCase): - """ V1LiveUpdateFeatures unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1LiveUpdateFeatures(self): - """ - Test V1LiveUpdateFeatures - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_live_update_features.V1LiveUpdateFeatures() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_live_update_memory.py b/test/test_v1_live_update_memory.py deleted file mode 100644 index 79ff8b82..00000000 --- a/test/test_v1_live_update_memory.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_live_update_memory import V1LiveUpdateMemory - - -class TestV1LiveUpdateMemory(unittest.TestCase): - """ V1LiveUpdateMemory unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1LiveUpdateMemory(self): - """ - Test V1LiveUpdateMemory - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_live_update_memory.V1LiveUpdateMemory() - pass - - -if __name__ == '__main__': - unittest.main() From 0b0d3a450e67767639d56538e4af85aa499301c7 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 22 Feb 2024 23:38:35 +0000 Subject: [PATCH 392/521] Client Python update by KubeVirt Prow build 1760797876729942016 --- README.md | 2 +- docs/V1VirtualMachineInstanceFileSystemDisk.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1_virtual_machine_instance_file_system_disk.py | 9 ++++----- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 11 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index c86017e6..775863ab 100644 --- a/README.md +++ b/README.md @@ -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.2.0-beta.0-56-g0b3024940 +- Package version: v1.2.0-rc.0-197-g875034394 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceFileSystemDisk.md b/docs/V1VirtualMachineInstanceFileSystemDisk.md index 16c82b98..46844c68 100644 --- a/docs/V1VirtualMachineInstanceFileSystemDisk.md +++ b/docs/V1VirtualMachineInstanceFileSystemDisk.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **bus_type** | **str** | | [default to ''] -**serial** | **str** | | [default to ''] +**serial** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 89af7bfb..307e5bd2 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.2.0-beta.0-56-g0b3024940" + release_note="Auto-generated client v1.2.0-rc.0-197-g875034394" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 4126f89d..63618252 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.2.0-beta.0-56-g0b3024940/python' + self.user_agent = 'Swagger-Codegen/v1.2.0-rc.0-197-g875034394/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 56de9024..a331a9de 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.2.0-beta.0-56-g0b3024940".\ + "SDK Package Version: v1.2.0-rc.0-197-g875034394".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_file_system_disk.py b/kubevirt/models/v1_virtual_machine_instance_file_system_disk.py index f4b453a3..773dfd9c 100644 --- a/kubevirt/models/v1_virtual_machine_instance_file_system_disk.py +++ b/kubevirt/models/v1_virtual_machine_instance_file_system_disk.py @@ -36,11 +36,11 @@ class V1VirtualMachineInstanceFileSystemDisk(object): } attribute_map = { - 'bus_type': 'bus-type', + 'bus_type': 'busType', 'serial': 'serial' } - def __init__(self, bus_type='', serial=''): + def __init__(self, bus_type='', serial=None): """ V1VirtualMachineInstanceFileSystemDisk - a model defined in Swagger """ @@ -49,7 +49,8 @@ def __init__(self, bus_type='', serial=''): self._serial = None self.bus_type = bus_type - self.serial = serial + if serial is not None: + self.serial = serial @property def bus_type(self): @@ -92,8 +93,6 @@ def serial(self, serial): :param serial: The serial of this V1VirtualMachineInstanceFileSystemDisk. :type: str """ - if serial is None: - raise ValueError("Invalid value for `serial`, must not be `None`") self._serial = serial diff --git a/setup.py b/setup.py index 7339c014..943c941a 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.2.0-beta.0-56-g0b3024940" +VERSION = "v1.2.0-rc.0-197-g875034394" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index ade31a28..1f6b54fd 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.2.0-beta.0-56-g0b3024940" +"packageVersion": "v1.2.0-rc.0-197-g875034394" } From df0e5bc91a8577f6b9b20d1cc75a4d22dd480358 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Mon, 26 Feb 2024 22:52:51 +0000 Subject: [PATCH 393/521] Client Python update by KubeVirt Prow build 1762237838423756800 --- README.md | 2 +- .../V1VirtualMachineInstanceMigrationState.md | 2 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...irtual_machine_instance_migration_state.py | 56 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 63 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 775863ab..8c73ec9f 100644 --- a/README.md +++ b/README.md @@ -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.2.0-rc.0-197-g875034394 +- Package version: v1.2.0-rc.0-227-g22aa13dec - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceMigrationState.md b/docs/V1VirtualMachineInstanceMigrationState.md index 180ecd64..8a5ffd9c 100644 --- a/docs/V1VirtualMachineInstanceMigrationState.md +++ b/docs/V1VirtualMachineInstanceMigrationState.md @@ -8,11 +8,13 @@ Name | Type | Description | Notes **completed** | **bool** | Indicates the migration completed | [optional] **end_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | The time the migration action ended | [optional] **failed** | **bool** | Indicates that the migration failed | [optional] +**failure_reason** | **str** | Contains the reason why the migration failed | [optional] **migration_configuration** | [**V1MigrationConfiguration**](V1MigrationConfiguration.md) | Migration configurations to apply | [optional] **migration_policy_name** | **str** | Name of the migration policy. If string is empty, no policy is matched | [optional] **migration_uid** | **str** | The VirtualMachineInstanceMigration object associated with this migration | [optional] **mode** | **str** | Lets us know if the vmi is currently running pre or post copy migration | [optional] **source_node** | **str** | The source node that the VMI originated on | [optional] +**source_pod** | **str** | | [optional] **start_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | The time the migration action began | [optional] **target_attachment_pod_uid** | **str** | The UID of the target attachment pod for hotplug volumes | [optional] **target_cpu_set** | **list[int]** | If the VMI requires dedicated CPUs, this field will hold the dedicated CPU set on the target node | [optional] diff --git a/git_push.sh b/git_push.sh index 307e5bd2..0b6ecbe2 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.2.0-rc.0-197-g875034394" + release_note="Auto-generated client v1.2.0-rc.0-227-g22aa13dec" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 63618252..b5f8d4da 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.2.0-rc.0-197-g875034394/python' + self.user_agent = 'Swagger-Codegen/v1.2.0-rc.0-227-g22aa13dec/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index a331a9de..7cf82f5b 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.2.0-rc.0-197-g875034394".\ + "SDK Package Version: v1.2.0-rc.0-227-g22aa13dec".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_state.py b/kubevirt/models/v1_virtual_machine_instance_migration_state.py index b1d3add1..85e57d14 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_state.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_state.py @@ -36,11 +36,13 @@ class V1VirtualMachineInstanceMigrationState(object): 'completed': 'bool', 'end_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', 'failed': 'bool', + 'failure_reason': 'str', 'migration_configuration': 'V1MigrationConfiguration', 'migration_policy_name': 'str', 'migration_uid': 'str', 'mode': 'str', 'source_node': 'str', + 'source_pod': 'str', 'start_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', 'target_attachment_pod_uid': 'str', 'target_cpu_set': 'list[int]', @@ -59,11 +61,13 @@ class V1VirtualMachineInstanceMigrationState(object): 'completed': 'completed', 'end_timestamp': 'endTimestamp', 'failed': 'failed', + 'failure_reason': 'failureReason', 'migration_configuration': 'migrationConfiguration', 'migration_policy_name': 'migrationPolicyName', 'migration_uid': 'migrationUid', 'mode': 'mode', 'source_node': 'sourceNode', + 'source_pod': 'sourcePod', 'start_timestamp': 'startTimestamp', 'target_attachment_pod_uid': 'targetAttachmentPodUID', 'target_cpu_set': 'targetCPUSet', @@ -76,7 +80,7 @@ class V1VirtualMachineInstanceMigrationState(object): 'target_pod': 'targetPod' } - def __init__(self, abort_requested=None, abort_status=None, completed=None, end_timestamp=None, failed=None, migration_configuration=None, migration_policy_name=None, migration_uid=None, mode=None, source_node=None, start_timestamp=None, target_attachment_pod_uid=None, target_cpu_set=None, target_direct_migration_node_ports=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_node_domain_ready_timestamp=None, target_node_topology=None, target_pod=None): + def __init__(self, abort_requested=None, abort_status=None, completed=None, end_timestamp=None, failed=None, failure_reason=None, migration_configuration=None, migration_policy_name=None, migration_uid=None, mode=None, source_node=None, source_pod=None, start_timestamp=None, target_attachment_pod_uid=None, target_cpu_set=None, target_direct_migration_node_ports=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_node_domain_ready_timestamp=None, target_node_topology=None, target_pod=None): """ V1VirtualMachineInstanceMigrationState - a model defined in Swagger """ @@ -86,11 +90,13 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self._completed = None self._end_timestamp = None self._failed = None + self._failure_reason = None self._migration_configuration = None self._migration_policy_name = None self._migration_uid = None self._mode = None self._source_node = None + self._source_pod = None self._start_timestamp = None self._target_attachment_pod_uid = None self._target_cpu_set = None @@ -112,6 +118,8 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self.end_timestamp = end_timestamp if failed is not None: self.failed = failed + if failure_reason is not None: + self.failure_reason = failure_reason if migration_configuration is not None: self.migration_configuration = migration_configuration if migration_policy_name is not None: @@ -122,6 +130,8 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self.mode = mode if source_node is not None: self.source_node = source_node + if source_pod is not None: + self.source_pod = source_pod if start_timestamp is not None: self.start_timestamp = start_timestamp if target_attachment_pod_uid is not None: @@ -258,6 +268,29 @@ def failed(self, failed): self._failed = failed + @property + def failure_reason(self): + """ + Gets the failure_reason of this V1VirtualMachineInstanceMigrationState. + Contains the reason why the migration failed + + :return: The failure_reason of this V1VirtualMachineInstanceMigrationState. + :rtype: str + """ + return self._failure_reason + + @failure_reason.setter + def failure_reason(self, failure_reason): + """ + Sets the failure_reason of this V1VirtualMachineInstanceMigrationState. + Contains the reason why the migration failed + + :param failure_reason: The failure_reason of this V1VirtualMachineInstanceMigrationState. + :type: str + """ + + self._failure_reason = failure_reason + @property def migration_configuration(self): """ @@ -373,6 +406,27 @@ def source_node(self, source_node): self._source_node = source_node + @property + def source_pod(self): + """ + Gets the source_pod of this V1VirtualMachineInstanceMigrationState. + + :return: The source_pod of this V1VirtualMachineInstanceMigrationState. + :rtype: str + """ + return self._source_pod + + @source_pod.setter + def source_pod(self, source_pod): + """ + Sets the source_pod of this V1VirtualMachineInstanceMigrationState. + + :param source_pod: The source_pod of this V1VirtualMachineInstanceMigrationState. + :type: str + """ + + self._source_pod = source_pod + @property def start_timestamp(self): """ diff --git a/setup.py b/setup.py index 943c941a..32be2d7c 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.2.0-rc.0-197-g875034394" +VERSION = "v1.2.0-rc.0-227-g22aa13dec" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 1f6b54fd..4215a4a3 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.2.0-rc.0-197-g875034394" +"packageVersion": "v1.2.0-rc.0-227-g22aa13dec" } From 691049dfc51cb6906d33d13752bce9c84cf7f91a Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 14 Mar 2024 15:37:41 +0000 Subject: [PATCH 394/521] Client Python update by KubeVirt Prow build 1768284299812933632 --- README.md | 2 +- docs/V1KubeVirtConfiguration.md | 4 ++-- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_kube_virt_configuration.py | 4 ++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 12 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 8c73ec9f..d9a8bc2b 100644 --- a/README.md +++ b/README.md @@ -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.2.0-rc.0-227-g22aa13dec +- Package version: v1.2.0-rc.0-401-g0730c3c9c - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index 07e102da..c77cb855 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **cpu_request** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | | [optional] **default_runtime_class** | **str** | | [optional] **developer_configuration** | [**V1DeveloperConfiguration**](V1DeveloperConfiguration.md) | | [optional] -**emulated_machines** | **list[str]** | | [optional] +**emulated_machines** | **list[str]** | Deprecated. Use architectureConfiguration instead. | [optional] **eviction_strategy** | **str** | EvictionStrategy defines at the cluster level if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain. If the VirtualMachineInstance specific field is set it overrides the cluster level one. | [optional] **handler_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] **image_pull_policy** | **str** | Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present | [optional] @@ -25,7 +25,7 @@ Name | Type | Description | Notes **min_cpu_model** | **str** | | [optional] **network** | [**V1NetworkConfiguration**](V1NetworkConfiguration.md) | | [optional] **obsolete_cpu_models** | **dict(str, bool)** | | [optional] -**ovmf_path** | **str** | | [optional] +**ovmf_path** | **str** | Deprecated. Use architectureConfiguration instead. | [optional] **permitted_host_devices** | [**V1PermittedHostDevices**](V1PermittedHostDevices.md) | | [optional] **seccomp_configuration** | [**V1SeccompConfiguration**](V1SeccompConfiguration.md) | | [optional] **selinux_launcher_type** | **str** | | [optional] diff --git a/git_push.sh b/git_push.sh index 0b6ecbe2..24bea506 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.2.0-rc.0-227-g22aa13dec" + release_note="Auto-generated client v1.2.0-rc.0-401-g0730c3c9c" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index b5f8d4da..05939d44 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.2.0-rc.0-227-g22aa13dec/python' + self.user_agent = 'Swagger-Codegen/v1.2.0-rc.0-401-g0730c3c9c/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 7cf82f5b..adf0ec40 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.2.0-rc.0-227-g22aa13dec".\ + "SDK Package Version: v1.2.0-rc.0-401-g0730c3c9c".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index ef28867e..2278aaed 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -415,6 +415,7 @@ def developer_configuration(self, developer_configuration): def emulated_machines(self): """ Gets the emulated_machines of this V1KubeVirtConfiguration. + Deprecated. Use architectureConfiguration instead. :return: The emulated_machines of this V1KubeVirtConfiguration. :rtype: list[str] @@ -425,6 +426,7 @@ def emulated_machines(self): def emulated_machines(self, emulated_machines): """ Sets the emulated_machines of this V1KubeVirtConfiguration. + Deprecated. Use architectureConfiguration instead. :param emulated_machines: The emulated_machines of this V1KubeVirtConfiguration. :type: list[str] @@ -704,6 +706,7 @@ def obsolete_cpu_models(self, obsolete_cpu_models): def ovmf_path(self): """ Gets the ovmf_path of this V1KubeVirtConfiguration. + Deprecated. Use architectureConfiguration instead. :return: The ovmf_path of this V1KubeVirtConfiguration. :rtype: str @@ -714,6 +717,7 @@ def ovmf_path(self): def ovmf_path(self, ovmf_path): """ Sets the ovmf_path of this V1KubeVirtConfiguration. + Deprecated. Use architectureConfiguration instead. :param ovmf_path: The ovmf_path of this V1KubeVirtConfiguration. :type: str diff --git a/setup.py b/setup.py index 32be2d7c..84149eff 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.2.0-rc.0-227-g22aa13dec" +VERSION = "v1.2.0-rc.0-401-g0730c3c9c" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 4215a4a3..f5c5c092 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.2.0-rc.0-227-g22aa13dec" +"packageVersion": "v1.2.0-rc.0-401-g0730c3c9c" } From 1ea5a13d5174fc1285407448ba80aa976a0da799 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 15 Mar 2024 03:02:44 +0000 Subject: [PATCH 395/521] Client Python update by KubeVirt Prow build 1768459954013868032 --- README.md | 3 +- docs/V1Features.md | 1 + docs/V1HyperVPassthrough.md | 10 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_features.py | 30 +++++- kubevirt/models/v1_hyper_v_passthrough.py | 123 ++++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_hyper_v_passthrough.py | 44 ++++++++ 14 files changed, 219 insertions(+), 7 deletions(-) create mode 100644 docs/V1HyperVPassthrough.md create mode 100644 kubevirt/models/v1_hyper_v_passthrough.py create mode 100644 test/test_v1_hyper_v_passthrough.py diff --git a/README.md b/README.md index d9a8bc2b..177be016 100644 --- a/README.md +++ b/README.md @@ -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.2.0-rc.0-401-g0730c3c9c +- Package version: v1.2.0-rc.0-409-ga8f47af81 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -463,6 +463,7 @@ Class | Method | HTTP request | Description - [V1HotplugVolumeSource](docs/V1HotplugVolumeSource.md) - [V1HotplugVolumeStatus](docs/V1HotplugVolumeStatus.md) - [V1Hugepages](docs/V1Hugepages.md) + - [V1HyperVPassthrough](docs/V1HyperVPassthrough.md) - [V1HypervTimer](docs/V1HypervTimer.md) - [V1I6300ESBWatchdog](docs/V1I6300ESBWatchdog.md) - [V1InitrdInfo](docs/V1InitrdInfo.md) diff --git a/docs/V1Features.md b/docs/V1Features.md index d1dedce8..2f590120 100644 --- a/docs/V1Features.md +++ b/docs/V1Features.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **acpi** | [**V1FeatureState**](V1FeatureState.md) | ACPI enables/disables ACPI inside the guest. Defaults to enabled. | [optional] **apic** | [**V1FeatureAPIC**](V1FeatureAPIC.md) | Defaults to the machine type setting. | [optional] **hyperv** | [**V1FeatureHyperv**](V1FeatureHyperv.md) | Defaults to the machine type setting. | [optional] +**hyperv_passthrough** | [**V1HyperVPassthrough**](V1HyperVPassthrough.md) | This enables all supported hyperv flags automatically. Bear in mind that if this enabled hyperV features cannot be enabled explicitly. In addition, a Virtual Machine using it will be non-migratable. | [optional] **kvm** | [**V1FeatureKVM**](V1FeatureKVM.md) | Configure how KVM presence is exposed to the guest. | [optional] **pvspinlock** | [**V1FeatureState**](V1FeatureState.md) | Notify the guest that the host supports paravirtual spinlocks. For older kernels this feature should be explicitly disabled. | [optional] **smm** | [**V1FeatureState**](V1FeatureState.md) | SMM enables/disables System Management Mode. TSEG not yet implemented. | [optional] diff --git a/docs/V1HyperVPassthrough.md b/docs/V1HyperVPassthrough.md new file mode 100644 index 00000000..2e73e373 --- /dev/null +++ b/docs/V1HyperVPassthrough.md @@ -0,0 +1,10 @@ +# V1HyperVPassthrough + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 24bea506..7c7fb84c 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.2.0-rc.0-401-g0730c3c9c" + release_note="Auto-generated client v1.2.0-rc.0-409-ga8f47af81" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 63f84a15..43bf3593 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -399,6 +399,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_hugepages.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_hugepages.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Hugepages.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_hyper_v_passthrough.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_hyper_v_passthrough.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1HyperVPassthrough.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_hyperv_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_hyperv_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1HypervTimer.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 8cd15c08..3a32f011 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -140,6 +140,7 @@ from .models.v1_hotplug_volume_source import V1HotplugVolumeSource from .models.v1_hotplug_volume_status import V1HotplugVolumeStatus from .models.v1_hugepages import V1Hugepages +from .models.v1_hyper_v_passthrough import V1HyperVPassthrough from .models.v1_hyperv_timer import V1HypervTimer from .models.v1_i6300_esb_watchdog import V1I6300ESBWatchdog from .models.v1_initrd_info import V1InitrdInfo diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 05939d44..97f90fa3 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.2.0-rc.0-401-g0730c3c9c/python' + self.user_agent = 'Swagger-Codegen/v1.2.0-rc.0-409-ga8f47af81/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index adf0ec40..10144703 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.2.0-rc.0-401-g0730c3c9c".\ + "SDK Package Version: v1.2.0-rc.0-409-ga8f47af81".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 5bd71080..f0f3be71 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -140,6 +140,7 @@ from .v1_hotplug_volume_source import V1HotplugVolumeSource from .v1_hotplug_volume_status import V1HotplugVolumeStatus from .v1_hugepages import V1Hugepages +from .v1_hyper_v_passthrough import V1HyperVPassthrough from .v1_hyperv_timer import V1HypervTimer from .v1_i6300_esb_watchdog import V1I6300ESBWatchdog from .v1_initrd_info import V1InitrdInfo diff --git a/kubevirt/models/v1_features.py b/kubevirt/models/v1_features.py index a1425e47..1ab614cf 100644 --- a/kubevirt/models/v1_features.py +++ b/kubevirt/models/v1_features.py @@ -34,6 +34,7 @@ class V1Features(object): 'acpi': 'V1FeatureState', 'apic': 'V1FeatureAPIC', 'hyperv': 'V1FeatureHyperv', + 'hyperv_passthrough': 'V1HyperVPassthrough', 'kvm': 'V1FeatureKVM', 'pvspinlock': 'V1FeatureState', 'smm': 'V1FeatureState' @@ -43,12 +44,13 @@ class V1Features(object): 'acpi': 'acpi', 'apic': 'apic', 'hyperv': 'hyperv', + 'hyperv_passthrough': 'hypervPassthrough', 'kvm': 'kvm', 'pvspinlock': 'pvspinlock', 'smm': 'smm' } - def __init__(self, acpi=None, apic=None, hyperv=None, kvm=None, pvspinlock=None, smm=None): + def __init__(self, acpi=None, apic=None, hyperv=None, hyperv_passthrough=None, kvm=None, pvspinlock=None, smm=None): """ V1Features - a model defined in Swagger """ @@ -56,6 +58,7 @@ def __init__(self, acpi=None, apic=None, hyperv=None, kvm=None, pvspinlock=None, self._acpi = None self._apic = None self._hyperv = None + self._hyperv_passthrough = None self._kvm = None self._pvspinlock = None self._smm = None @@ -66,6 +69,8 @@ def __init__(self, acpi=None, apic=None, hyperv=None, kvm=None, pvspinlock=None, self.apic = apic if hyperv is not None: self.hyperv = hyperv + if hyperv_passthrough is not None: + self.hyperv_passthrough = hyperv_passthrough if kvm is not None: self.kvm = kvm if pvspinlock is not None: @@ -142,6 +147,29 @@ def hyperv(self, hyperv): self._hyperv = hyperv + @property + def hyperv_passthrough(self): + """ + Gets the hyperv_passthrough of this V1Features. + This enables all supported hyperv flags automatically. Bear in mind that if this enabled hyperV features cannot be enabled explicitly. In addition, a Virtual Machine using it will be non-migratable. + + :return: The hyperv_passthrough of this V1Features. + :rtype: V1HyperVPassthrough + """ + return self._hyperv_passthrough + + @hyperv_passthrough.setter + def hyperv_passthrough(self, hyperv_passthrough): + """ + Sets the hyperv_passthrough of this V1Features. + This enables all supported hyperv flags automatically. Bear in mind that if this enabled hyperV features cannot be enabled explicitly. In addition, a Virtual Machine using it will be non-migratable. + + :param hyperv_passthrough: The hyperv_passthrough of this V1Features. + :type: V1HyperVPassthrough + """ + + self._hyperv_passthrough = hyperv_passthrough + @property def kvm(self): """ diff --git a/kubevirt/models/v1_hyper_v_passthrough.py b/kubevirt/models/v1_hyper_v_passthrough.py new file mode 100644 index 00000000..a8c2b50d --- /dev/null +++ b/kubevirt/models/v1_hyper_v_passthrough.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1HyperVPassthrough(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'enabled': 'bool' + } + + attribute_map = { + 'enabled': 'enabled' + } + + def __init__(self, enabled=None): + """ + V1HyperVPassthrough - a model defined in Swagger + """ + + self._enabled = None + + if enabled is not None: + self.enabled = enabled + + @property + def enabled(self): + """ + Gets the enabled of this V1HyperVPassthrough. + + :return: The enabled of this V1HyperVPassthrough. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """ + Sets the enabled of this V1HyperVPassthrough. + + :param enabled: The enabled of this V1HyperVPassthrough. + :type: bool + """ + + self._enabled = enabled + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1HyperVPassthrough): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 84149eff..f9196098 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.2.0-rc.0-401-g0730c3c9c" +VERSION = "v1.2.0-rc.0-409-ga8f47af81" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index f5c5c092..8397f469 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.2.0-rc.0-401-g0730c3c9c" +"packageVersion": "v1.2.0-rc.0-409-ga8f47af81" } diff --git a/test/test_v1_hyper_v_passthrough.py b/test/test_v1_hyper_v_passthrough.py new file mode 100644 index 00000000..1a4010e9 --- /dev/null +++ b/test/test_v1_hyper_v_passthrough.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_hyper_v_passthrough import V1HyperVPassthrough + + +class TestV1HyperVPassthrough(unittest.TestCase): + """ V1HyperVPassthrough unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1HyperVPassthrough(self): + """ + Test V1HyperVPassthrough + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_hyper_v_passthrough.V1HyperVPassthrough() + pass + + +if __name__ == '__main__': + unittest.main() From ab09f46fb1af39d84a3e8418ba189770f7df11b5 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 18 Apr 2024 09:40:11 +0000 Subject: [PATCH 396/521] Client Python update by KubeVirt Prow build 1780882966457618432 --- README.md | 2 +- docs/V1InterfaceBindingPlugin.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../models/v1_interface_binding_plugin.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 177be016..b03a611d 100644 --- a/README.md +++ b/README.md @@ -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.2.0-rc.0-409-ga8f47af81 +- Package version: v1.2.0-rc.0-738-g895075a61 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1InterfaceBindingPlugin.md b/docs/V1InterfaceBindingPlugin.md index b255def9..469ffbe8 100644 --- a/docs/V1InterfaceBindingPlugin.md +++ b/docs/V1InterfaceBindingPlugin.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **domain_attachment_type** | **str** | DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: \"tap\". The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1 | [optional] +**downward_api** | **str** | DownwardAPI specifies what kind of data should be exposed to the binding plugin sidecar. Supported values: \"device-info\" version: v1alphav1 | [optional] **migration** | [**V1InterfaceBindingMigration**](V1InterfaceBindingMigration.md) | Migration means the VM using the plugin can be safely migrated version: 1alphav1 | [optional] **network_attachment_definition** | **str** | NetworkAttachmentDefinition references to a NetworkAttachmentDefinition CR object. Format: <name>, <namespace>/<name>. If namespace is not specified, VMI namespace is assumed. version: 1alphav1 | [optional] **sidecar_image** | **str** | SidecarImage references a container image that runs in the virt-launcher pod. The sidecar handles (libvirt) domain configuration and optional services. version: 1alphav1 | [optional] diff --git a/git_push.sh b/git_push.sh index 7c7fb84c..8100f8ee 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.2.0-rc.0-409-ga8f47af81" + release_note="Auto-generated client v1.2.0-rc.0-738-g895075a61" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 97f90fa3..88e83761 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.2.0-rc.0-409-ga8f47af81/python' + self.user_agent = 'Swagger-Codegen/v1.2.0-rc.0-738-g895075a61/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 10144703..e2c910ac 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.2.0-rc.0-409-ga8f47af81".\ + "SDK Package Version: v1.2.0-rc.0-738-g895075a61".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_interface_binding_plugin.py b/kubevirt/models/v1_interface_binding_plugin.py index 42010384..cf3f513c 100644 --- a/kubevirt/models/v1_interface_binding_plugin.py +++ b/kubevirt/models/v1_interface_binding_plugin.py @@ -32,6 +32,7 @@ class V1InterfaceBindingPlugin(object): """ swagger_types = { 'domain_attachment_type': 'str', + 'downward_api': 'str', 'migration': 'V1InterfaceBindingMigration', 'network_attachment_definition': 'str', 'sidecar_image': 'str' @@ -39,23 +40,27 @@ class V1InterfaceBindingPlugin(object): attribute_map = { 'domain_attachment_type': 'domainAttachmentType', + 'downward_api': 'downwardAPI', 'migration': 'migration', 'network_attachment_definition': 'networkAttachmentDefinition', 'sidecar_image': 'sidecarImage' } - def __init__(self, domain_attachment_type=None, migration=None, network_attachment_definition=None, sidecar_image=None): + def __init__(self, domain_attachment_type=None, downward_api=None, migration=None, network_attachment_definition=None, sidecar_image=None): """ V1InterfaceBindingPlugin - a model defined in Swagger """ self._domain_attachment_type = None + self._downward_api = None self._migration = None self._network_attachment_definition = None self._sidecar_image = None if domain_attachment_type is not None: self.domain_attachment_type = domain_attachment_type + if downward_api is not None: + self.downward_api = downward_api if migration is not None: self.migration = migration if network_attachment_definition is not None: @@ -86,6 +91,29 @@ def domain_attachment_type(self, domain_attachment_type): self._domain_attachment_type = domain_attachment_type + @property + def downward_api(self): + """ + Gets the downward_api of this V1InterfaceBindingPlugin. + DownwardAPI specifies what kind of data should be exposed to the binding plugin sidecar. Supported values: \"device-info\" version: v1alphav1 + + :return: The downward_api of this V1InterfaceBindingPlugin. + :rtype: str + """ + return self._downward_api + + @downward_api.setter + def downward_api(self, downward_api): + """ + Sets the downward_api of this V1InterfaceBindingPlugin. + DownwardAPI specifies what kind of data should be exposed to the binding plugin sidecar. Supported values: \"device-info\" version: v1alphav1 + + :param downward_api: The downward_api of this V1InterfaceBindingPlugin. + :type: str + """ + + self._downward_api = downward_api + @property def migration(self): """ diff --git a/setup.py b/setup.py index f9196098..2169ee9e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.2.0-rc.0-409-ga8f47af81" +VERSION = "v1.2.0-rc.0-738-g895075a61" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 8397f469..348b27e9 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.2.0-rc.0-409-ga8f47af81" +"packageVersion": "v1.2.0-rc.0-738-g895075a61" } From 9a47474aa8b384fbadd277a5f8468c045995e2f5 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 8 May 2024 22:39:13 +0000 Subject: [PATCH 397/521] Client Python update by KubeVirt Prow build 1788326085016948736 --- README.md | 2 +- docs/V1VirtualMachineSpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_virtual_machine_spec.py | 34 ++++++++++++++++++++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 38 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index b03a611d..27ae215a 100644 --- a/README.md +++ b/README.md @@ -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.2.0-rc.0-738-g895075a61 +- Package version: v1.2.0-rc.0-951-g949779c61 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineSpec.md b/docs/V1VirtualMachineSpec.md index 8d4ca153..d123bf17 100644 --- a/docs/V1VirtualMachineSpec.md +++ b/docs/V1VirtualMachineSpec.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **run_strategy** | **str** | Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running | [optional] **running** | **bool** | Running controls whether the associatied VirtualMachineInstance is created or not Mutually exclusive with RunStrategy | [optional] **template** | [**V1VirtualMachineInstanceTemplateSpec**](V1VirtualMachineInstanceTemplateSpec.md) | Template is the direct specification of VirtualMachineInstance | +**update_volumes_strategy** | **str** | UpdateVolumesStrategy is the strategy to apply on volumes updates | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 8100f8ee..3dd51f7c 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.2.0-rc.0-738-g895075a61" + release_note="Auto-generated client v1.2.0-rc.0-951-g949779c61" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 88e83761..8f59b592 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.2.0-rc.0-738-g895075a61/python' + self.user_agent = 'Swagger-Codegen/v1.2.0-rc.0-951-g949779c61/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index e2c910ac..c8aa3c4d 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.2.0-rc.0-738-g895075a61".\ + "SDK Package Version: v1.2.0-rc.0-951-g949779c61".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_spec.py b/kubevirt/models/v1_virtual_machine_spec.py index 47b3eb38..a3a891b1 100644 --- a/kubevirt/models/v1_virtual_machine_spec.py +++ b/kubevirt/models/v1_virtual_machine_spec.py @@ -36,7 +36,8 @@ class V1VirtualMachineSpec(object): 'preference': 'V1PreferenceMatcher', 'run_strategy': 'str', 'running': 'bool', - 'template': 'V1VirtualMachineInstanceTemplateSpec' + 'template': 'V1VirtualMachineInstanceTemplateSpec', + 'update_volumes_strategy': 'str' } attribute_map = { @@ -45,10 +46,11 @@ class V1VirtualMachineSpec(object): 'preference': 'preference', 'run_strategy': 'runStrategy', 'running': 'running', - 'template': 'template' + 'template': 'template', + 'update_volumes_strategy': 'updateVolumesStrategy' } - def __init__(self, data_volume_templates=None, instancetype=None, preference=None, run_strategy=None, running=None, template=None): + def __init__(self, data_volume_templates=None, instancetype=None, preference=None, run_strategy=None, running=None, template=None, update_volumes_strategy=None): """ V1VirtualMachineSpec - a model defined in Swagger """ @@ -59,6 +61,7 @@ def __init__(self, data_volume_templates=None, instancetype=None, preference=Non self._run_strategy = None self._running = None self._template = None + self._update_volumes_strategy = None if data_volume_templates is not None: self.data_volume_templates = data_volume_templates @@ -71,6 +74,8 @@ def __init__(self, data_volume_templates=None, instancetype=None, preference=Non if running is not None: self.running = running self.template = template + if update_volumes_strategy is not None: + self.update_volumes_strategy = update_volumes_strategy @property def data_volume_templates(self): @@ -212,6 +217,29 @@ def template(self, template): self._template = template + @property + def update_volumes_strategy(self): + """ + Gets the update_volumes_strategy of this V1VirtualMachineSpec. + UpdateVolumesStrategy is the strategy to apply on volumes updates + + :return: The update_volumes_strategy of this V1VirtualMachineSpec. + :rtype: str + """ + return self._update_volumes_strategy + + @update_volumes_strategy.setter + def update_volumes_strategy(self, update_volumes_strategy): + """ + Sets the update_volumes_strategy of this V1VirtualMachineSpec. + UpdateVolumesStrategy is the strategy to apply on volumes updates + + :param update_volumes_strategy: The update_volumes_strategy of this V1VirtualMachineSpec. + :type: str + """ + + self._update_volumes_strategy = update_volumes_strategy + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 2169ee9e..fda2a536 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.2.0-rc.0-738-g895075a61" +VERSION = "v1.2.0-rc.0-951-g949779c61" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 348b27e9..c78291d1 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.2.0-rc.0-738-g895075a61" +"packageVersion": "v1.2.0-rc.0-951-g949779c61" } From 1b9f4ea8f3165a37819e850124088d0a7f7ff250 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Sun, 12 May 2024 14:14:55 +0000 Subject: [PATCH 398/521] Client Python update by KubeVirt Prow build 1789650329348870144 --- README.md | 4 +- ...Slirp.md => V1DeprecatedInterfaceSlirp.md} | 2 +- docs/V1Interface.md | 2 +- docs/V1NetworkConfiguration.md | 2 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 +- kubevirt/__init__.py | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 +- .../models/v1_deprecated_interface_slirp.py | 99 +++++++++++++++++++ kubevirt/models/v1_interface.py | 8 +- kubevirt/models/v1_network_configuration.py | 2 + setup.py | 2 +- swagger-codegen-config.json | 2 +- ... => test_v1_deprecated_interface_slirp.py} | 12 +-- 16 files changed, 127 insertions(+), 24 deletions(-) rename docs/{V1InterfaceSlirp.md => V1DeprecatedInterfaceSlirp.md} (90%) create mode 100644 kubevirt/models/v1_deprecated_interface_slirp.py rename test/{test_v1_interface_slirp.py => test_v1_deprecated_interface_slirp.py} (62%) diff --git a/README.md b/README.md index 27ae215a..94df0479 100644 --- a/README.md +++ b/README.md @@ -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.2.0-rc.0-951-g949779c61 +- Package version: v1.3.0-alpha.0-24-ge6207f255 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -426,6 +426,7 @@ Class | Method | HTTP request | Description - [V1DataVolumeSource](docs/V1DataVolumeSource.md) - [V1DataVolumeTemplateDummyStatus](docs/V1DataVolumeTemplateDummyStatus.md) - [V1DataVolumeTemplateSpec](docs/V1DataVolumeTemplateSpec.md) + - [V1DeprecatedInterfaceSlirp](docs/V1DeprecatedInterfaceSlirp.md) - [V1DeveloperConfiguration](docs/V1DeveloperConfiguration.md) - [V1Devices](docs/V1Devices.md) - [V1DisableFreePageReporting](docs/V1DisableFreePageReporting.md) @@ -477,7 +478,6 @@ Class | Method | HTTP request | Description - [V1InterfaceMasquerade](docs/V1InterfaceMasquerade.md) - [V1InterfacePasst](docs/V1InterfacePasst.md) - [V1InterfaceSRIOV](docs/V1InterfaceSRIOV.md) - - [V1InterfaceSlirp](docs/V1InterfaceSlirp.md) - [V1KSMConfiguration](docs/V1KSMConfiguration.md) - [V1KVMTimer](docs/V1KVMTimer.md) - [V1KernelBoot](docs/V1KernelBoot.md) diff --git a/docs/V1InterfaceSlirp.md b/docs/V1DeprecatedInterfaceSlirp.md similarity index 90% rename from docs/V1InterfaceSlirp.md rename to docs/V1DeprecatedInterfaceSlirp.md index 372a1b77..a79ff012 100644 --- a/docs/V1InterfaceSlirp.md +++ b/docs/V1DeprecatedInterfaceSlirp.md @@ -1,4 +1,4 @@ -# V1InterfaceSlirp +# V1DeprecatedInterfaceSlirp ## Properties Name | Type | Description | Notes diff --git a/docs/V1Interface.md b/docs/V1Interface.md index b448b14c..1a031464 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes **passt** | [**V1InterfacePasst**](V1InterfacePasst.md) | Deprecated, please refer to Kubevirt user guide for alternatives. | [optional] **pci_address** | **str** | If specified, the virtual network interface will be placed on the guests pci address with the specified PCI address. For example: 0000:81:01.10 | [optional] **ports** | [**list[V1Port]**](V1Port.md) | List of ports to be forwarded to the virtual machine. | [optional] -**slirp** | [**V1InterfaceSlirp**](V1InterfaceSlirp.md) | | [optional] +**slirp** | [**V1DeprecatedInterfaceSlirp**](V1DeprecatedInterfaceSlirp.md) | DeprecatedSlirp is an alias to the deprecated Slirp interface Deprecated: Removed in v1.3 | [optional] **sriov** | [**V1InterfaceSRIOV**](V1InterfaceSRIOV.md) | | [optional] **state** | **str** | State represents the requested operational state of the interface. The (only) value supported is `absent`, expressing a request to remove the interface. | [optional] **tag** | **str** | If specified, the virtual network interface address and its tag will be provided to the guest via config drive | [optional] diff --git a/docs/V1NetworkConfiguration.md b/docs/V1NetworkConfiguration.md index 79e7861e..e1778070 100644 --- a/docs/V1NetworkConfiguration.md +++ b/docs/V1NetworkConfiguration.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **binding** | [**dict(str, V1InterfaceBindingPlugin)**](V1InterfaceBindingPlugin.md) | | [optional] **default_network_interface** | **str** | | [optional] **permit_bridge_interface_on_pod_network** | **bool** | | [optional] -**permit_slirp_interface** | **bool** | | [optional] +**permit_slirp_interface** | **bool** | DeprecatedPermitSlirpInterface is an alias for the deprecated PermitSlirpInterface. Deprecated: Removed in v1.3. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 3dd51f7c..a65e1bd6 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.2.0-rc.0-951-g949779c61" + release_note="Auto-generated client v1.3.0-alpha.0-24-ge6207f255" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 43bf3593..8d1aa0b6 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -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_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 [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_developer_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_developer_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DeveloperConfiguration.md @@ -441,9 +444,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_sriov.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface_sriov.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InterfaceSRIOV.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_interface_slirp.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface_slirp.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InterfaceSlirp.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_ksm_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_ksm_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1KSMConfiguration.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 3a32f011..d39a7d15 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -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_slirp import V1DeprecatedInterfaceSlirp from .models.v1_developer_configuration import V1DeveloperConfiguration from .models.v1_devices import V1Devices from .models.v1_disable_free_page_reporting import V1DisableFreePageReporting @@ -154,7 +155,6 @@ from .models.v1_interface_masquerade import V1InterfaceMasquerade from .models.v1_interface_passt import V1InterfacePasst from .models.v1_interface_sriov import V1InterfaceSRIOV -from .models.v1_interface_slirp import V1InterfaceSlirp from .models.v1_ksm_configuration import V1KSMConfiguration from .models.v1_kvm_timer import V1KVMTimer from .models.v1_kernel_boot import V1KernelBoot diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 8f59b592..1096f681 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.2.0-rc.0-951-g949779c61/python' + self.user_agent = 'Swagger-Codegen/v1.3.0-alpha.0-24-ge6207f255/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c8aa3c4d..a4ce3497 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.2.0-rc.0-951-g949779c61".\ + "SDK Package Version: v1.3.0-alpha.0-24-ge6207f255".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index f0f3be71..250d6a3f 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -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_slirp import V1DeprecatedInterfaceSlirp from .v1_developer_configuration import V1DeveloperConfiguration from .v1_devices import V1Devices from .v1_disable_free_page_reporting import V1DisableFreePageReporting @@ -154,7 +155,6 @@ from .v1_interface_masquerade import V1InterfaceMasquerade from .v1_interface_passt import V1InterfacePasst from .v1_interface_sriov import V1InterfaceSRIOV -from .v1_interface_slirp import V1InterfaceSlirp from .v1_ksm_configuration import V1KSMConfiguration from .v1_kvm_timer import V1KVMTimer from .v1_kernel_boot import V1KernelBoot diff --git a/kubevirt/models/v1_deprecated_interface_slirp.py b/kubevirt/models/v1_deprecated_interface_slirp.py new file mode 100644 index 00000000..43cb3d2a --- /dev/null +++ b/kubevirt/models/v1_deprecated_interface_slirp.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DeprecatedInterfaceSlirp(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1DeprecatedInterfaceSlirp - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1DeprecatedInterfaceSlirp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_interface.py b/kubevirt/models/v1_interface.py index 7cd90016..92328995 100644 --- a/kubevirt/models/v1_interface.py +++ b/kubevirt/models/v1_interface.py @@ -44,7 +44,7 @@ class V1Interface(object): 'passt': 'V1InterfacePasst', 'pci_address': 'str', 'ports': 'list[V1Port]', - 'slirp': 'V1InterfaceSlirp', + 'slirp': 'V1DeprecatedInterfaceSlirp', 'sriov': 'V1InterfaceSRIOV', 'state': 'str', 'tag': 'str' @@ -428,9 +428,10 @@ def ports(self, ports): def slirp(self): """ Gets the slirp of this V1Interface. + DeprecatedSlirp is an alias to the deprecated Slirp interface Deprecated: Removed in v1.3 :return: The slirp of this V1Interface. - :rtype: V1InterfaceSlirp + :rtype: V1DeprecatedInterfaceSlirp """ return self._slirp @@ -438,9 +439,10 @@ def slirp(self): def slirp(self, slirp): """ Sets the slirp of this V1Interface. + DeprecatedSlirp is an alias to the deprecated Slirp interface Deprecated: Removed in v1.3 :param slirp: The slirp of this V1Interface. - :type: V1InterfaceSlirp + :type: V1DeprecatedInterfaceSlirp """ self._slirp = slirp diff --git a/kubevirt/models/v1_network_configuration.py b/kubevirt/models/v1_network_configuration.py index 2af6be41..bd3b5b6b 100644 --- a/kubevirt/models/v1_network_configuration.py +++ b/kubevirt/models/v1_network_configuration.py @@ -130,6 +130,7 @@ def permit_bridge_interface_on_pod_network(self, permit_bridge_interface_on_pod_ def permit_slirp_interface(self): """ Gets the permit_slirp_interface of this V1NetworkConfiguration. + DeprecatedPermitSlirpInterface is an alias for the deprecated PermitSlirpInterface. Deprecated: Removed in v1.3. :return: The permit_slirp_interface of this V1NetworkConfiguration. :rtype: bool @@ -140,6 +141,7 @@ def permit_slirp_interface(self): def permit_slirp_interface(self, permit_slirp_interface): """ Sets the permit_slirp_interface of this V1NetworkConfiguration. + DeprecatedPermitSlirpInterface is an alias for the deprecated PermitSlirpInterface. Deprecated: Removed in v1.3. :param permit_slirp_interface: The permit_slirp_interface of this V1NetworkConfiguration. :type: bool diff --git a/setup.py b/setup.py index fda2a536..f977e045 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.2.0-rc.0-951-g949779c61" +VERSION = "v1.3.0-alpha.0-24-ge6207f255" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index c78291d1..32715df8 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.2.0-rc.0-951-g949779c61" +"packageVersion": "v1.3.0-alpha.0-24-ge6207f255" } diff --git a/test/test_v1_interface_slirp.py b/test/test_v1_deprecated_interface_slirp.py similarity index 62% rename from test/test_v1_interface_slirp.py rename to test/test_v1_deprecated_interface_slirp.py index fa591291..f12e0f68 100644 --- a/test/test_v1_interface_slirp.py +++ b/test/test_v1_deprecated_interface_slirp.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_interface_slirp import V1InterfaceSlirp +from kubevirt.models.v1_deprecated_interface_slirp import V1DeprecatedInterfaceSlirp -class TestV1InterfaceSlirp(unittest.TestCase): - """ V1InterfaceSlirp unit test stubs """ +class TestV1DeprecatedInterfaceSlirp(unittest.TestCase): + """ V1DeprecatedInterfaceSlirp unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1InterfaceSlirp(self): + def testV1DeprecatedInterfaceSlirp(self): """ - Test V1InterfaceSlirp + Test V1DeprecatedInterfaceSlirp """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_interface_slirp.V1InterfaceSlirp() + #model = kubevirt.models.v1_deprecated_interface_slirp.V1DeprecatedInterfaceSlirp() pass From f2026156f984151118e2933d4997afcd7857d96a Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Tue, 14 May 2024 10:58:22 +0000 Subject: [PATCH 399/521] Client Python update by KubeVirt Prow build 1790326293141655552 --- README.md | 3 +- docs/V1beta1CPUPreferences.md | 1 + docs/V1beta1SpreadOptions.md | 11 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1beta1_cpu_preferences.py | 32 ++++- kubevirt/models/v1beta1_spread_options.py | 153 +++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1beta1_spread_options.py | 44 ++++++ 14 files changed, 250 insertions(+), 9 deletions(-) create mode 100644 docs/V1beta1SpreadOptions.md create mode 100644 kubevirt/models/v1beta1_spread_options.py create mode 100644 test/test_v1beta1_spread_options.py diff --git a/README.md b/README.md index 94df0479..d0e48b05 100644 --- a/README.md +++ b/README.md @@ -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-24-ge6207f255 +- Package version: v1.3.0-alpha.0-67-g51fc79779 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -685,6 +685,7 @@ Class | Method | HTTP request | Description - [V1beta1MemoryInstancetype](docs/V1beta1MemoryInstancetype.md) - [V1beta1MemoryPreferenceRequirement](docs/V1beta1MemoryPreferenceRequirement.md) - [V1beta1PreferenceRequirements](docs/V1beta1PreferenceRequirements.md) + - [V1beta1SpreadOptions](docs/V1beta1SpreadOptions.md) - [V1beta1StorageSpec](docs/V1beta1StorageSpec.md) - [V1beta1VirtualMachineClusterInstancetype](docs/V1beta1VirtualMachineClusterInstancetype.md) - [V1beta1VirtualMachineClusterInstancetypeList](docs/V1beta1VirtualMachineClusterInstancetypeList.md) diff --git a/docs/V1beta1CPUPreferences.md b/docs/V1beta1CPUPreferences.md index f975979e..f98b96e3 100644 --- a/docs/V1beta1CPUPreferences.md +++ b/docs/V1beta1CPUPreferences.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **preferred_cpu_features** | [**list[V1CPUFeature]**](V1CPUFeature.md) | PreferredCPUFeatures optionally defines a slice of preferred CPU features. | [optional] **preferred_cpu_topology** | **str** | PreferredCPUTopology optionally defines the preferred guest visible CPU topology, defaults to PreferSockets. | [optional] +**spread_options** | [**V1beta1SpreadOptions**](V1beta1SpreadOptions.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1beta1SpreadOptions.md b/docs/V1beta1SpreadOptions.md new file mode 100644 index 00000000..c388fb41 --- /dev/null +++ b/docs/V1beta1SpreadOptions.md @@ -0,0 +1,11 @@ +# V1beta1SpreadOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**across** | **str** | Across optionally defines how to spread vCPUs across the guest visible topology. Default: SocketsCores | [optional] +**ratio** | **int** | Ratio optionally defines the ratio to spread vCPUs across the guest visible topology: CoresThreads - 1:2 - Controls the ratio of cores to threads. Only a ratio of 2 is currently accepted. SocketsCores - 1:N - Controls the ratio of socket to cores. SocketsCoresThreads - 1:N:2 - Controls the ratio of socket to cores. Each core providing 2 threads. Default: 2 | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index a65e1bd6..21d7b1b3 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.3.0-alpha.0-24-ge6207f255" + release_note="Auto-generated client v1.3.0-alpha.0-67-g51fc79779" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 8d1aa0b6..be3c7d4e 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -1065,6 +1065,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/v1beta1_preference_requirements.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_preference_requirements.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1PreferenceRequirements.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_spread_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_spread_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1SpreadOptions.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_storage_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_storage_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1StorageSpec.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index d39a7d15..9c59e692 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -362,6 +362,7 @@ from .models.v1beta1_memory_instancetype import V1beta1MemoryInstancetype from .models.v1beta1_memory_preference_requirement import V1beta1MemoryPreferenceRequirement from .models.v1beta1_preference_requirements import V1beta1PreferenceRequirements +from .models.v1beta1_spread_options import V1beta1SpreadOptions from .models.v1beta1_storage_spec import V1beta1StorageSpec from .models.v1beta1_virtual_machine_cluster_instancetype import V1beta1VirtualMachineClusterInstancetype from .models.v1beta1_virtual_machine_cluster_instancetype_list import V1beta1VirtualMachineClusterInstancetypeList diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 1096f681..630a70f9 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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-24-ge6207f255/python' + self.user_agent = 'Swagger-Codegen/v1.3.0-alpha.0-67-g51fc79779/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index a4ce3497..f5031d63 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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-24-ge6207f255".\ + "SDK Package Version: v1.3.0-alpha.0-67-g51fc79779".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 250d6a3f..213158f3 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -362,6 +362,7 @@ from .v1beta1_memory_instancetype import V1beta1MemoryInstancetype from .v1beta1_memory_preference_requirement import V1beta1MemoryPreferenceRequirement from .v1beta1_preference_requirements import V1beta1PreferenceRequirements +from .v1beta1_spread_options import V1beta1SpreadOptions from .v1beta1_storage_spec import V1beta1StorageSpec from .v1beta1_virtual_machine_cluster_instancetype import V1beta1VirtualMachineClusterInstancetype from .v1beta1_virtual_machine_cluster_instancetype_list import V1beta1VirtualMachineClusterInstancetypeList diff --git a/kubevirt/models/v1beta1_cpu_preferences.py b/kubevirt/models/v1beta1_cpu_preferences.py index 6d48fdbd..e3dd7ca6 100644 --- a/kubevirt/models/v1beta1_cpu_preferences.py +++ b/kubevirt/models/v1beta1_cpu_preferences.py @@ -32,26 +32,31 @@ class V1beta1CPUPreferences(object): """ swagger_types = { 'preferred_cpu_features': 'list[V1CPUFeature]', - 'preferred_cpu_topology': 'str' + 'preferred_cpu_topology': 'str', + 'spread_options': 'V1beta1SpreadOptions' } attribute_map = { 'preferred_cpu_features': 'preferredCPUFeatures', - 'preferred_cpu_topology': 'preferredCPUTopology' + 'preferred_cpu_topology': 'preferredCPUTopology', + 'spread_options': 'spreadOptions' } - def __init__(self, preferred_cpu_features=None, preferred_cpu_topology=None): + def __init__(self, preferred_cpu_features=None, preferred_cpu_topology=None, spread_options=None): """ V1beta1CPUPreferences - a model defined in Swagger """ self._preferred_cpu_features = None self._preferred_cpu_topology = None + self._spread_options = None if preferred_cpu_features is not None: self.preferred_cpu_features = preferred_cpu_features if preferred_cpu_topology is not None: self.preferred_cpu_topology = preferred_cpu_topology + if spread_options is not None: + self.spread_options = spread_options @property def preferred_cpu_features(self): @@ -99,6 +104,27 @@ def preferred_cpu_topology(self, preferred_cpu_topology): self._preferred_cpu_topology = preferred_cpu_topology + @property + def spread_options(self): + """ + Gets the spread_options of this V1beta1CPUPreferences. + + :return: The spread_options of this V1beta1CPUPreferences. + :rtype: V1beta1SpreadOptions + """ + return self._spread_options + + @spread_options.setter + def spread_options(self, spread_options): + """ + Sets the spread_options of this V1beta1CPUPreferences. + + :param spread_options: The spread_options of this V1beta1CPUPreferences. + :type: V1beta1SpreadOptions + """ + + self._spread_options = spread_options + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1beta1_spread_options.py b/kubevirt/models/v1beta1_spread_options.py new file mode 100644 index 00000000..6fef27a8 --- /dev/null +++ b/kubevirt/models/v1beta1_spread_options.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1SpreadOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'across': 'str', + 'ratio': 'int' + } + + attribute_map = { + 'across': 'across', + 'ratio': 'ratio' + } + + def __init__(self, across=None, ratio=None): + """ + V1beta1SpreadOptions - a model defined in Swagger + """ + + self._across = None + self._ratio = None + + if across is not None: + self.across = across + if ratio is not None: + self.ratio = ratio + + @property + def across(self): + """ + Gets the across of this V1beta1SpreadOptions. + Across optionally defines how to spread vCPUs across the guest visible topology. Default: SocketsCores + + :return: The across of this V1beta1SpreadOptions. + :rtype: str + """ + return self._across + + @across.setter + def across(self, across): + """ + Sets the across of this V1beta1SpreadOptions. + Across optionally defines how to spread vCPUs across the guest visible topology. Default: SocketsCores + + :param across: The across of this V1beta1SpreadOptions. + :type: str + """ + + self._across = across + + @property + def ratio(self): + """ + Gets the ratio of this V1beta1SpreadOptions. + Ratio optionally defines the ratio to spread vCPUs across the guest visible topology: CoresThreads - 1:2 - Controls the ratio of cores to threads. Only a ratio of 2 is currently accepted. SocketsCores - 1:N - Controls the ratio of socket to cores. SocketsCoresThreads - 1:N:2 - Controls the ratio of socket to cores. Each core providing 2 threads. Default: 2 + + :return: The ratio of this V1beta1SpreadOptions. + :rtype: int + """ + return self._ratio + + @ratio.setter + def ratio(self, ratio): + """ + Sets the ratio of this V1beta1SpreadOptions. + Ratio optionally defines the ratio to spread vCPUs across the guest visible topology: CoresThreads - 1:2 - Controls the ratio of cores to threads. Only a ratio of 2 is currently accepted. SocketsCores - 1:N - Controls the ratio of socket to cores. SocketsCoresThreads - 1:N:2 - Controls the ratio of socket to cores. Each core providing 2 threads. Default: 2 + + :param ratio: The ratio of this V1beta1SpreadOptions. + :type: int + """ + + self._ratio = ratio + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1beta1SpreadOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index f977e045..6dc70e61 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.3.0-alpha.0-24-ge6207f255" +VERSION = "v1.3.0-alpha.0-67-g51fc79779" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 32715df8..b03cf934 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.3.0-alpha.0-24-ge6207f255" +"packageVersion": "v1.3.0-alpha.0-67-g51fc79779" } diff --git a/test/test_v1beta1_spread_options.py b/test/test_v1beta1_spread_options.py new file mode 100644 index 00000000..677ddb51 --- /dev/null +++ b/test/test_v1beta1_spread_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_spread_options import V1beta1SpreadOptions + + +class TestV1beta1SpreadOptions(unittest.TestCase): + """ V1beta1SpreadOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1SpreadOptions(self): + """ + Test V1beta1SpreadOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_spread_options.V1beta1SpreadOptions() + pass + + +if __name__ == '__main__': + unittest.main() From de45af22768d34b5dc82228df30c9d3c560eac18 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 17 May 2024 05:04:04 +0000 Subject: [PATCH 400/521] Client Python update by KubeVirt Prow build 1791324382564454400 --- README.md | 4 ++-- ...aceMacvtap.md => V1DeprecatedInterfaceMacvtap.md} | 2 +- docs/V1Interface.md | 2 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 +++--- kubevirt/__init__.py | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 +- ...macvtap.py => v1_deprecated_interface_macvtap.py} | 6 +++--- kubevirt/models/v1_interface.py | 10 +++++----- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...ap.py => test_v1_deprecated_interface_macvtap.py} | 12 ++++++------ 14 files changed, 28 insertions(+), 28 deletions(-) rename docs/{V1InterfaceMacvtap.md => V1DeprecatedInterfaceMacvtap.md} (89%) rename kubevirt/models/{v1_interface_macvtap.py => v1_deprecated_interface_macvtap.py} (92%) rename test/{test_v1_interface_macvtap.py => test_v1_deprecated_interface_macvtap.py} (61%) diff --git a/README.md b/README.md index d0e48b05..b47e706c 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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) @@ -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) diff --git a/docs/V1InterfaceMacvtap.md b/docs/V1DeprecatedInterfaceMacvtap.md similarity index 89% rename from docs/V1InterfaceMacvtap.md rename to docs/V1DeprecatedInterfaceMacvtap.md index 2243ae90..4eaa7198 100644 --- a/docs/V1InterfaceMacvtap.md +++ b/docs/V1DeprecatedInterfaceMacvtap.md @@ -1,4 +1,4 @@ -# V1InterfaceMacvtap +# V1DeprecatedInterfaceMacvtap ## Properties Name | Type | Description | Notes diff --git a/docs/V1Interface.md b/docs/V1Interface.md index 1a031464..372a208d 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -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 ''] diff --git a/git_push.sh b/git_push.sh index 21d7b1b3..1b6b51fe 100644 --- a/git_push.sh +++ b/git_push.sh @@ -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 diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index be3c7d4e..bab618d4 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -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 @@ -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 diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 9c59e692..2ea69218 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -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 @@ -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 diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 630a70f9..c055d55f 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index f5031d63..cf985e1b 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 213158f3..39210820 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -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 @@ -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 diff --git a/kubevirt/models/v1_interface_macvtap.py b/kubevirt/models/v1_deprecated_interface_macvtap.py similarity index 92% rename from kubevirt/models/v1_interface_macvtap.py rename to kubevirt/models/v1_deprecated_interface_macvtap.py index 6095dd63..75e8bb31 100644 --- a/kubevirt/models/v1_interface_macvtap.py +++ b/kubevirt/models/v1_deprecated_interface_macvtap.py @@ -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. @@ -40,7 +40,7 @@ class V1InterfaceMacvtap(object): def __init__(self): """ - V1InterfaceMacvtap - a model defined in Swagger + V1DeprecatedInterfaceMacvtap - a model defined in Swagger """ @@ -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__ diff --git a/kubevirt/models/v1_interface.py b/kubevirt/models/v1_interface.py index 92328995..59d46913 100644 --- a/kubevirt/models/v1_interface.py +++ b/kubevirt/models/v1_interface.py @@ -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', @@ -267,10 +267,10 @@ 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 @@ -278,10 +278,10 @@ def macvtap(self): 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 diff --git a/setup.py b/setup.py index 6dc70e61..0e300054 100644 --- a/setup.py +++ b/setup.py @@ -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 diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b03cf934..b62337ae 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -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" } diff --git a/test/test_v1_interface_macvtap.py b/test/test_v1_deprecated_interface_macvtap.py similarity index 61% rename from test/test_v1_interface_macvtap.py rename to test/test_v1_deprecated_interface_macvtap.py index fcd480a3..635b94eb 100644 --- a/test/test_v1_interface_macvtap.py +++ b/test/test_v1_deprecated_interface_macvtap.py @@ -19,11 +19,11 @@ 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 @@ -31,12 +31,12 @@ def setUp(self): 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 From 1bacf436b2afce6adb9b242ccc573309bd042757 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 24 May 2024 19:15:48 +0000 Subject: [PATCH 401/521] Client Python update by KubeVirt Prow build 1794073319616548864 --- README.md | 2 +- docs/V1VirtualMachineStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_virtual_machine_status.py | 30 +++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index b47e706c..1a22754c 100644 --- a/README.md +++ b/README.md @@ -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-116-ga21104fc2 +- Package version: v1.3.0-alpha.0-206-g733602ac0 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineStatus.md b/docs/V1VirtualMachineStatus.md index db3b4f5c..ecd0eb3c 100644 --- a/docs/V1VirtualMachineStatus.md +++ b/docs/V1VirtualMachineStatus.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **printable_status** | **str** | PrintableStatus is a human readable, high-level representation of the status of the virtual machine | [optional] **ready** | **bool** | Ready indicates if the virtual machine is running and ready | [optional] **restore_in_progress** | **str** | RestoreInProgress is the name of the VirtualMachineRestore currently executing | [optional] +**run_strategy** | **str** | RunStrategy tracks the last recorded RunStrategy used by the VM. This is needed to correctly process the next strategy (for now only the RerunOnFailure) | [optional] **snapshot_in_progress** | **str** | SnapshotInProgress is the name of the VirtualMachineSnapshot currently executing | [optional] **start_failure** | [**V1VirtualMachineStartFailure**](V1VirtualMachineStartFailure.md) | StartFailure tracks consecutive VMI startup failures for the purposes of crash loop backoffs | [optional] **state_change_requests** | [**list[V1VirtualMachineStateChangeRequest]**](V1VirtualMachineStateChangeRequest.md) | StateChangeRequests indicates a list of actions that should be taken on a VMI e.g. stop a specific VMI then start a new one. | [optional] diff --git a/git_push.sh b/git_push.sh index 1b6b51fe..940625d8 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.3.0-alpha.0-116-ga21104fc2" + release_note="Auto-generated client v1.3.0-alpha.0-206-g733602ac0" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index c055d55f..ef087c78 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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-116-ga21104fc2/python' + self.user_agent = 'Swagger-Codegen/v1.3.0-alpha.0-206-g733602ac0/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index cf985e1b..fc0d3c5c 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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-116-ga21104fc2".\ + "SDK Package Version: v1.3.0-alpha.0-206-g733602ac0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_status.py b/kubevirt/models/v1_virtual_machine_status.py index 2e6bcf56..7a8573c5 100644 --- a/kubevirt/models/v1_virtual_machine_status.py +++ b/kubevirt/models/v1_virtual_machine_status.py @@ -39,6 +39,7 @@ class V1VirtualMachineStatus(object): 'printable_status': 'str', 'ready': 'bool', 'restore_in_progress': 'str', + 'run_strategy': 'str', 'snapshot_in_progress': 'str', 'start_failure': 'V1VirtualMachineStartFailure', 'state_change_requests': 'list[V1VirtualMachineStateChangeRequest]', @@ -55,6 +56,7 @@ class V1VirtualMachineStatus(object): 'printable_status': 'printableStatus', 'ready': 'ready', 'restore_in_progress': 'restoreInProgress', + 'run_strategy': 'runStrategy', 'snapshot_in_progress': 'snapshotInProgress', 'start_failure': 'startFailure', 'state_change_requests': 'stateChangeRequests', @@ -62,7 +64,7 @@ class V1VirtualMachineStatus(object): 'volume_snapshot_statuses': 'volumeSnapshotStatuses' } - def __init__(self, conditions=None, created=None, desired_generation=None, memory_dump_request=None, observed_generation=None, printable_status=None, ready=None, restore_in_progress=None, snapshot_in_progress=None, start_failure=None, state_change_requests=None, volume_requests=None, volume_snapshot_statuses=None): + def __init__(self, conditions=None, created=None, desired_generation=None, memory_dump_request=None, observed_generation=None, printable_status=None, ready=None, restore_in_progress=None, run_strategy=None, snapshot_in_progress=None, start_failure=None, state_change_requests=None, volume_requests=None, volume_snapshot_statuses=None): """ V1VirtualMachineStatus - a model defined in Swagger """ @@ -75,6 +77,7 @@ def __init__(self, conditions=None, created=None, desired_generation=None, memor self._printable_status = None self._ready = None self._restore_in_progress = None + self._run_strategy = None self._snapshot_in_progress = None self._start_failure = None self._state_change_requests = None @@ -97,6 +100,8 @@ def __init__(self, conditions=None, created=None, desired_generation=None, memor self.ready = ready if restore_in_progress is not None: self.restore_in_progress = restore_in_progress + if run_strategy is not None: + self.run_strategy = run_strategy if snapshot_in_progress is not None: self.snapshot_in_progress = snapshot_in_progress if start_failure is not None: @@ -292,6 +297,29 @@ def restore_in_progress(self, restore_in_progress): self._restore_in_progress = restore_in_progress + @property + def run_strategy(self): + """ + Gets the run_strategy of this V1VirtualMachineStatus. + RunStrategy tracks the last recorded RunStrategy used by the VM. This is needed to correctly process the next strategy (for now only the RerunOnFailure) + + :return: The run_strategy of this V1VirtualMachineStatus. + :rtype: str + """ + return self._run_strategy + + @run_strategy.setter + def run_strategy(self, run_strategy): + """ + Sets the run_strategy of this V1VirtualMachineStatus. + RunStrategy tracks the last recorded RunStrategy used by the VM. This is needed to correctly process the next strategy (for now only the RerunOnFailure) + + :param run_strategy: The run_strategy of this V1VirtualMachineStatus. + :type: str + """ + + self._run_strategy = run_strategy + @property def snapshot_in_progress(self): """ diff --git a/setup.py b/setup.py index 0e300054..fd01d76e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.3.0-alpha.0-116-ga21104fc2" +VERSION = "v1.3.0-alpha.0-206-g733602ac0" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b62337ae..3cd2cd2e 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.3.0-alpha.0-116-ga21104fc2" +"packageVersion": "v1.3.0-alpha.0-206-g733602ac0" } From 2fedd6259acc6db9bb21fb59e21ea8d9c094a130 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Mon, 27 May 2024 21:24:52 +0000 Subject: [PATCH 402/521] Client Python update by KubeVirt Prow build 1795190924649697280 --- README.md | 105 ++++----- docs/DefaultApi.md | 166 +++++++------- docs/V1beta1Condition.md | 13 ++ docs/{V1alpha1Error.md => V1beta1Error.md} | 2 +- ...aim.md => V1beta1PersistentVolumeClaim.md} | 2 +- ...ists.md => V1beta1SnapshotVolumesLists.md} | 2 +- ...pha1SourceSpec.md => V1beta1SourceSpec.md} | 4 +- ...ualMachine.md => V1beta1VirtualMachine.md} | 2 +- ...ore.md => V1beta1VirtualMachineRestore.md} | 6 +- ...md => V1beta1VirtualMachineRestoreList.md} | 4 +- ...md => V1beta1VirtualMachineRestoreSpec.md} | 2 +- ... => V1beta1VirtualMachineRestoreStatus.md} | 6 +- ...ot.md => V1beta1VirtualMachineSnapshot.md} | 6 +- ...> V1beta1VirtualMachineSnapshotContent.md} | 6 +- ...beta1VirtualMachineSnapshotContentList.md} | 4 +- ...beta1VirtualMachineSnapshotContentSpec.md} | 6 +- ...ta1VirtualMachineSnapshotContentStatus.md} | 6 +- ...d => V1beta1VirtualMachineSnapshotList.md} | 4 +- ...d => V1beta1VirtualMachineSnapshotSpec.md} | 2 +- ...=> V1beta1VirtualMachineSnapshotStatus.md} | 8 +- ...VolumeBackup.md => V1beta1VolumeBackup.md} | 4 +- ...lumeRestore.md => V1beta1VolumeRestore.md} | 2 +- ...atus.md => V1beta1VolumeSnapshotStatus.md} | 4 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 125 ++++++----- kubevirt/__init__.py | 41 ++-- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 208 +++++++++--------- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 41 ++-- kubevirt/models/v1beta1_condition.py | 203 +++++++++++++++++ .../{v1alpha1_error.py => v1beta1_error.py} | 22 +- ....py => v1beta1_persistent_volume_claim.py} | 22 +- ...s.py => v1beta1_snapshot_volumes_lists.py} | 22 +- ..._source_spec.py => v1beta1_source_spec.py} | 20 +- ..._machine.py => v1beta1_virtual_machine.py} | 30 +-- ....py => v1beta1_virtual_machine_restore.py} | 58 ++--- ...> v1beta1_virtual_machine_restore_list.py} | 44 ++-- ...> v1beta1_virtual_machine_restore_spec.py} | 30 +-- ...v1beta1_virtual_machine_restore_status.py} | 58 ++--- ...py => v1beta1_virtual_machine_snapshot.py} | 58 ++--- ...beta1_virtual_machine_snapshot_content.py} | 58 ++--- ..._virtual_machine_snapshot_content_list.py} | 44 ++-- ..._virtual_machine_snapshot_content_spec.py} | 42 ++-- ...irtual_machine_snapshot_content_status.py} | 50 ++--- ... v1beta1_virtual_machine_snapshot_list.py} | 44 ++-- ... v1beta1_virtual_machine_snapshot_spec.py} | 30 +-- ...1beta1_virtual_machine_snapshot_status.py} | 96 ++++---- ...ume_backup.py => v1beta1_volume_backup.py} | 36 +-- ...e_restore.py => v1beta1_volume_restore.py} | 38 ++-- ...s.py => v1beta1_volume_snapshot_status.py} | 44 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 4 +- test/test_v1alpha1_virtual_machine_restore.py | 44 ---- ...t_v1alpha1_virtual_machine_restore_list.py | 44 ---- ...t_v1alpha1_virtual_machine_restore_spec.py | 44 ---- .../test_v1alpha1_virtual_machine_snapshot.py | 44 ---- ...alpha1_virtual_machine_snapshot_content.py | 44 ---- ...1_virtual_machine_snapshot_content_list.py | 44 ---- ...1_virtual_machine_snapshot_content_spec.py | 44 ---- ...virtual_machine_snapshot_content_status.py | 44 ---- ..._v1alpha1_virtual_machine_snapshot_spec.py | 44 ---- test/test_v1alpha1_volume_snapshot_status.py | 44 ---- ...urce_spec.py => test_v1beta1_condition.py} | 12 +- ...1alpha1_error.py => test_v1beta1_error.py} | 12 +- ...> test_v1beta1_persistent_volume_claim.py} | 12 +- ...=> test_v1beta1_snapshot_volumes_lists.py} | 12 +- ..._backup.py => test_v1beta1_source_spec.py} | 12 +- ...ore.py => test_v1beta1_virtual_machine.py} | 12 +- test/test_v1beta1_virtual_machine_restore.py | 44 ++++ ...st_v1beta1_virtual_machine_restore_list.py | 44 ++++ ...st_v1beta1_virtual_machine_restore_spec.py | 44 ++++ ...v1beta1_virtual_machine_restore_status.py} | 12 +- ... test_v1beta1_virtual_machine_snapshot.py} | 12 +- ...beta1_virtual_machine_snapshot_content.py} | 12 +- ...1_virtual_machine_snapshot_content_list.py | 44 ++++ ...1_virtual_machine_snapshot_content_spec.py | 44 ++++ ...virtual_machine_snapshot_content_status.py | 44 ++++ ...t_v1beta1_virtual_machine_snapshot_list.py | 44 ++++ ...t_v1beta1_virtual_machine_snapshot_spec.py | 44 ++++ ...1beta1_virtual_machine_snapshot_status.py} | 12 +- test/test_v1beta1_volume_backup.py | 44 ++++ test/test_v1beta1_volume_restore.py | 44 ++++ test/test_v1beta1_volume_snapshot_status.py | 44 ++++ 85 files changed, 1578 insertions(+), 1310 deletions(-) create mode 100644 docs/V1beta1Condition.md rename docs/{V1alpha1Error.md => V1beta1Error.md} (96%) rename docs/{V1alpha1PersistentVolumeClaim.md => V1beta1PersistentVolumeClaim.md} (96%) rename docs/{V1alpha1SnapshotVolumesLists.md => V1beta1SnapshotVolumesLists.md} (92%) rename docs/{V1alpha1SourceSpec.md => V1beta1SourceSpec.md} (70%) rename docs/{V1alpha1VirtualMachine.md => V1beta1VirtualMachine.md} (96%) rename docs/{V1alpha1VirtualMachineRestore.md => V1beta1VirtualMachineRestore.md} (81%) rename docs/{V1alpha1VirtualMachineRestoreList.md => V1beta1VirtualMachineRestoreList.md} (88%) rename docs/{V1alpha1VirtualMachineRestoreSpec.md => V1beta1VirtualMachineRestoreSpec.md} (96%) rename docs/{V1alpha1VirtualMachineRestoreStatus.md => V1beta1VirtualMachineRestoreStatus.md} (69%) rename docs/{V1alpha1VirtualMachineSnapshot.md => V1beta1VirtualMachineSnapshot.md} (81%) rename docs/{V1alpha1VirtualMachineSnapshotContent.md => V1beta1VirtualMachineSnapshotContent.md} (79%) rename docs/{V1alpha1VirtualMachineSnapshotContentList.md => V1beta1VirtualMachineSnapshotContentList.md} (87%) rename docs/{V1alpha1VirtualMachineSnapshotContentSpec.md => V1beta1VirtualMachineSnapshotContentSpec.md} (61%) rename docs/{V1alpha1VirtualMachineSnapshotContentStatus.md => V1beta1VirtualMachineSnapshotContentStatus.md} (65%) rename docs/{V1alpha1VirtualMachineSnapshotList.md => V1beta1VirtualMachineSnapshotList.md} (88%) rename docs/{V1alpha1VirtualMachineSnapshotSpec.md => V1beta1VirtualMachineSnapshotSpec.md} (95%) rename docs/{V1alpha1VirtualMachineSnapshotStatus.md => V1beta1VirtualMachineSnapshotStatus.md} (67%) rename docs/{V1alpha1VolumeBackup.md => V1beta1VolumeBackup.md} (74%) rename docs/{V1alpha1VolumeRestore.md => V1beta1VolumeRestore.md} (95%) rename docs/{V1alpha1VolumeSnapshotStatus.md => V1beta1VolumeSnapshotStatus.md} (83%) create mode 100644 kubevirt/models/v1beta1_condition.py rename kubevirt/models/{v1alpha1_error.py => v1beta1_error.py} (85%) rename kubevirt/models/{v1alpha1_persistent_volume_claim.py => v1beta1_persistent_volume_claim.py} (84%) rename kubevirt/models/{v1alpha1_snapshot_volumes_lists.py => v1beta1_snapshot_volumes_lists.py} (83%) rename kubevirt/models/{v1alpha1_source_spec.py => v1beta1_source_spec.py} (83%) rename kubevirt/models/{v1alpha1_virtual_machine.py => v1beta1_virtual_machine.py} (82%) rename kubevirt/models/{v1alpha1_virtual_machine_restore.py => v1beta1_virtual_machine_restore.py} (75%) rename kubevirt/models/{v1alpha1_virtual_machine_snapshot_list.py => v1beta1_virtual_machine_restore_list.py} (77%) rename kubevirt/models/{v1alpha1_virtual_machine_restore_spec.py => v1beta1_virtual_machine_restore_spec.py} (81%) rename kubevirt/models/{v1alpha1_virtual_machine_restore_status.py => v1beta1_virtual_machine_restore_status.py} (70%) rename kubevirt/models/{v1alpha1_virtual_machine_snapshot.py => v1beta1_virtual_machine_snapshot.py} (74%) rename kubevirt/models/{v1alpha1_virtual_machine_snapshot_content.py => v1beta1_virtual_machine_snapshot_content.py} (73%) rename kubevirt/models/{v1alpha1_virtual_machine_snapshot_content_list.py => v1beta1_virtual_machine_snapshot_content_list.py} (76%) rename kubevirt/models/{v1alpha1_virtual_machine_snapshot_content_spec.py => v1beta1_virtual_machine_snapshot_content_spec.py} (72%) rename kubevirt/models/{v1alpha1_virtual_machine_snapshot_content_status.py => v1beta1_virtual_machine_snapshot_content_status.py} (70%) rename kubevirt/models/{v1alpha1_virtual_machine_restore_list.py => v1beta1_virtual_machine_snapshot_list.py} (78%) rename kubevirt/models/{v1alpha1_virtual_machine_snapshot_spec.py => v1beta1_virtual_machine_snapshot_spec.py} (81%) rename kubevirt/models/{v1alpha1_virtual_machine_snapshot_status.py => v1beta1_virtual_machine_snapshot_status.py} (69%) rename kubevirt/models/{v1alpha1_volume_backup.py => v1beta1_volume_backup.py} (80%) rename kubevirt/models/{v1alpha1_volume_restore.py => v1beta1_volume_restore.py} (81%) rename kubevirt/models/{v1alpha1_volume_snapshot_status.py => v1beta1_volume_snapshot_status.py} (76%) delete mode 100644 test/test_v1alpha1_virtual_machine_restore.py delete mode 100644 test/test_v1alpha1_virtual_machine_restore_list.py delete mode 100644 test/test_v1alpha1_virtual_machine_restore_spec.py delete mode 100644 test/test_v1alpha1_virtual_machine_snapshot.py delete mode 100644 test/test_v1alpha1_virtual_machine_snapshot_content.py delete mode 100644 test/test_v1alpha1_virtual_machine_snapshot_content_list.py delete mode 100644 test/test_v1alpha1_virtual_machine_snapshot_content_spec.py delete mode 100644 test/test_v1alpha1_virtual_machine_snapshot_content_status.py delete mode 100644 test/test_v1alpha1_virtual_machine_snapshot_spec.py delete mode 100644 test/test_v1alpha1_volume_snapshot_status.py rename test/{test_v1alpha1_source_spec.py => test_v1beta1_condition.py} (66%) rename test/{test_v1alpha1_error.py => test_v1beta1_error.py} (69%) rename test/{test_v1alpha1_snapshot_volumes_lists.py => test_v1beta1_persistent_volume_claim.py} (61%) rename test/{test_v1alpha1_virtual_machine.py => test_v1beta1_snapshot_volumes_lists.py} (61%) rename test/{test_v1alpha1_volume_backup.py => test_v1beta1_source_spec.py} (65%) rename test/{test_v1alpha1_volume_restore.py => test_v1beta1_virtual_machine.py} (64%) create mode 100644 test/test_v1beta1_virtual_machine_restore.py create mode 100644 test/test_v1beta1_virtual_machine_restore_list.py create mode 100644 test/test_v1beta1_virtual_machine_restore_spec.py rename test/{test_v1alpha1_virtual_machine_snapshot_list.py => test_v1beta1_virtual_machine_restore_status.py} (58%) rename test/{test_v1alpha1_persistent_volume_claim.py => test_v1beta1_virtual_machine_snapshot.py} (60%) rename test/{test_v1alpha1_virtual_machine_snapshot_status.py => test_v1beta1_virtual_machine_snapshot_content.py} (57%) create mode 100644 test/test_v1beta1_virtual_machine_snapshot_content_list.py create mode 100644 test/test_v1beta1_virtual_machine_snapshot_content_spec.py create mode 100644 test/test_v1beta1_virtual_machine_snapshot_content_status.py create mode 100644 test/test_v1beta1_virtual_machine_snapshot_list.py create mode 100644 test/test_v1beta1_virtual_machine_snapshot_spec.py rename test/{test_v1alpha1_virtual_machine_restore_status.py => test_v1beta1_virtual_machine_snapshot_status.py} (58%) create mode 100644 test/test_v1beta1_volume_backup.py create mode 100644 test/test_v1beta1_volume_restore.py create mode 100644 test/test_v1beta1_volume_snapshot_status.py diff --git a/README.md b/README.md index 1a22754c..60af518c 100644 --- a/README.md +++ b/README.md @@ -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-206-g733602ac0 +- Package version: v1.3.0-alpha.0-222-g61685a12b - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -80,9 +80,9 @@ Class | Method | HTTP request | Description *DefaultApi* | [**create_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#create_namespaced_virtual_machine_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes | *DefaultApi* | [**create_namespaced_virtual_machine_pool**](docs/DefaultApi.md#create_namespaced_virtual_machine_pool) | **POST** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools | *DefaultApi* | [**create_namespaced_virtual_machine_preference**](docs/DefaultApi.md#create_namespaced_virtual_machine_preference) | **POST** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences | -*DefaultApi* | [**create_namespaced_virtual_machine_restore**](docs/DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores | -*DefaultApi* | [**create_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots | -*DefaultApi* | [**create_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents | +*DefaultApi* | [**create_namespaced_virtual_machine_restore**](docs/DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | +*DefaultApi* | [**create_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | +*DefaultApi* | [**create_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents | *DefaultApi* | [**create_virtual_machine_clone**](docs/DefaultApi.md#create_virtual_machine_clone) | **POST** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | *DefaultApi* | [**create_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#create_virtual_machine_cluster_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | *DefaultApi* | [**create_virtual_machine_cluster_preference**](docs/DefaultApi.md#create_virtual_machine_cluster_preference) | **POST** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | @@ -97,9 +97,9 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_pool**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_preference**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents | *DefaultApi* | [**delete_collection_virtual_machine_clone**](docs/DefaultApi.md#delete_collection_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | *DefaultApi* | [**delete_collection_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#delete_collection_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | *DefaultApi* | [**delete_collection_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_collection_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | @@ -114,9 +114,9 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | *DefaultApi* | [**delete_namespaced_virtual_machine_pool**](docs/DefaultApi.md#delete_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | *DefaultApi* | [**delete_namespaced_virtual_machine_preference**](docs/DefaultApi.md#delete_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | -*DefaultApi* | [**delete_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name} | -*DefaultApi* | [**delete_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name} | -*DefaultApi* | [**delete_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | +*DefaultApi* | [**delete_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | +*DefaultApi* | [**delete_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | +*DefaultApi* | [**delete_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | *DefaultApi* | [**delete_virtual_machine_clone**](docs/DefaultApi.md#delete_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | *DefaultApi* | [**delete_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#delete_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | *DefaultApi* | [**delete_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | @@ -136,7 +136,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**get_api_resources_kubevirt_io_v1**](docs/DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | *DefaultApi* | [**get_api_resources_migrations_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_migrations_kubevirt_io_v1alpha1) | **GET** /apis/migrations.kubevirt.io/v1alpha1/ | *DefaultApi* | [**get_api_resources_pool_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_pool_kubevirt_io_v1alpha1) | **GET** /apis/pool.kubevirt.io/v1alpha1/ | -*DefaultApi* | [**get_api_resources_snapshot_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_snapshot_kubevirt_io_v1alpha1) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/ | +*DefaultApi* | [**get_api_resources_snapshot_kubevirt_io_v1beta1**](docs/DefaultApi.md#get_api_resources_snapshot_kubevirt_io_v1beta1) | **GET** /apis/snapshot.kubevirt.io/v1beta1/ | *DefaultApi* | [**get_root_paths**](docs/DefaultApi.md#get_root_paths) | **GET** / | *DefaultApi* | [**handle_dump_profiler**](docs/DefaultApi.md#handle_dump_profiler) | **GET** /dump-profiler | *DefaultApi* | [**handle_start_profiler**](docs/DefaultApi.md#handle_start_profiler) | **GET** /start-profiler | @@ -153,9 +153,9 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#list_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes | *DefaultApi* | [**list_namespaced_virtual_machine_pool**](docs/DefaultApi.md#list_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools | *DefaultApi* | [**list_namespaced_virtual_machine_preference**](docs/DefaultApi.md#list_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences | -*DefaultApi* | [**list_namespaced_virtual_machine_restore**](docs/DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores | -*DefaultApi* | [**list_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots | -*DefaultApi* | [**list_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents | +*DefaultApi* | [**list_namespaced_virtual_machine_restore**](docs/DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | +*DefaultApi* | [**list_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | +*DefaultApi* | [**list_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents | *DefaultApi* | [**list_virtual_machine_clone**](docs/DefaultApi.md#list_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | *DefaultApi* | [**list_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#list_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | *DefaultApi* | [**list_virtual_machine_cluster_preference**](docs/DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | @@ -168,9 +168,9 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_virtual_machine_instancetype_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instancetype_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineinstancetypes | *DefaultApi* | [**list_virtual_machine_pool_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_pool_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/virtualmachinepools | *DefaultApi* | [**list_virtual_machine_preference_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_preference_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachinepreferences | -*DefaultApi* | [**list_virtual_machine_restore_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_restore_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores | -*DefaultApi* | [**list_virtual_machine_snapshot_content_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents | -*DefaultApi* | [**list_virtual_machine_snapshot_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots | +*DefaultApi* | [**list_virtual_machine_restore_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_restore_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1beta1/virtualmachinerestores | +*DefaultApi* | [**list_virtual_machine_snapshot_content_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1beta1/virtualmachinesnapshotcontents | +*DefaultApi* | [**list_virtual_machine_snapshot_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1beta1/virtualmachinesnapshots | *DefaultApi* | [**patch_migration_policy**](docs/DefaultApi.md#patch_migration_policy) | **PATCH** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | *DefaultApi* | [**patch_namespaced_kube_virt**](docs/DefaultApi.md#patch_namespaced_kube_virt) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | *DefaultApi* | [**patch_namespaced_virtual_machine**](docs/DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | @@ -182,9 +182,9 @@ Class | Method | HTTP request | Description *DefaultApi* | [**patch_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | *DefaultApi* | [**patch_namespaced_virtual_machine_pool**](docs/DefaultApi.md#patch_namespaced_virtual_machine_pool) | **PATCH** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | *DefaultApi* | [**patch_namespaced_virtual_machine_preference**](docs/DefaultApi.md#patch_namespaced_virtual_machine_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | -*DefaultApi* | [**patch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name} | -*DefaultApi* | [**patch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name} | -*DefaultApi* | [**patch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | +*DefaultApi* | [**patch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | +*DefaultApi* | [**patch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | +*DefaultApi* | [**patch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | *DefaultApi* | [**patch_virtual_machine_clone**](docs/DefaultApi.md#patch_virtual_machine_clone) | **PATCH** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | *DefaultApi* | [**patch_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#patch_virtual_machine_cluster_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | *DefaultApi* | [**patch_virtual_machine_cluster_preference**](docs/DefaultApi.md#patch_virtual_machine_cluster_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | @@ -199,9 +199,9 @@ Class | Method | HTTP request | Description *DefaultApi* | [**read_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#read_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | *DefaultApi* | [**read_namespaced_virtual_machine_pool**](docs/DefaultApi.md#read_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | *DefaultApi* | [**read_namespaced_virtual_machine_preference**](docs/DefaultApi.md#read_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | -*DefaultApi* | [**read_namespaced_virtual_machine_restore**](docs/DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name} | -*DefaultApi* | [**read_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name} | -*DefaultApi* | [**read_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | +*DefaultApi* | [**read_namespaced_virtual_machine_restore**](docs/DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | +*DefaultApi* | [**read_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | +*DefaultApi* | [**read_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | *DefaultApi* | [**read_virtual_machine_clone**](docs/DefaultApi.md#read_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | *DefaultApi* | [**read_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#read_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | *DefaultApi* | [**read_virtual_machine_cluster_preference**](docs/DefaultApi.md#read_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | @@ -216,9 +216,9 @@ Class | Method | HTTP request | Description *DefaultApi* | [**replace_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | *DefaultApi* | [**replace_namespaced_virtual_machine_pool**](docs/DefaultApi.md#replace_namespaced_virtual_machine_pool) | **PUT** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | *DefaultApi* | [**replace_namespaced_virtual_machine_preference**](docs/DefaultApi.md#replace_namespaced_virtual_machine_preference) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | -*DefaultApi* | [**replace_namespaced_virtual_machine_restore**](docs/DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name} | -*DefaultApi* | [**replace_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name} | -*DefaultApi* | [**replace_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | +*DefaultApi* | [**replace_namespaced_virtual_machine_restore**](docs/DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | +*DefaultApi* | [**replace_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | +*DefaultApi* | [**replace_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | *DefaultApi* | [**replace_virtual_machine_clone**](docs/DefaultApi.md#replace_virtual_machine_clone) | **PUT** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | *DefaultApi* | [**replace_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#replace_virtual_machine_cluster_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | *DefaultApi* | [**replace_virtual_machine_cluster_preference**](docs/DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | @@ -315,9 +315,9 @@ Class | Method | HTTP request | Description *DefaultApi* | [**watch_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachineinstancetypes | *DefaultApi* | [**watch_namespaced_virtual_machine_pool**](docs/DefaultApi.md#watch_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinepools | *DefaultApi* | [**watch_namespaced_virtual_machine_preference**](docs/DefaultApi.md#watch_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinepreferences | -*DefaultApi* | [**watch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinerestores | -*DefaultApi* | [**watch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinesnapshots | -*DefaultApi* | [**watch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinesnapshotcontents | +*DefaultApi* | [**watch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinerestores | +*DefaultApi* | [**watch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinesnapshots | +*DefaultApi* | [**watch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinesnapshotcontents | *DefaultApi* | [**watch_virtual_machine_clone_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_clone_list_for_all_namespaces) | **GET** /apis/clone.kubevirt.io/v1alpha1/watch/virtualmachineclones | *DefaultApi* | [**watch_virtual_machine_cluster_instancetype_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterinstancetypes | *DefaultApi* | [**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterpreferences | @@ -330,9 +330,9 @@ Class | Method | HTTP request | Description *DefaultApi* | [**watch_virtual_machine_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachines | *DefaultApi* | [**watch_virtual_machine_pool_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_pool_list_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/virtualmachinepools | *DefaultApi* | [**watch_virtual_machine_preference_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachinepreferences | -*DefaultApi* | [**watch_virtual_machine_restore_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_restore_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinerestores | -*DefaultApi* | [**watch_virtual_machine_snapshot_content_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_snapshot_content_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshotcontents | -*DefaultApi* | [**watch_virtual_machine_snapshot_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_snapshot_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshots | +*DefaultApi* | [**watch_virtual_machine_restore_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_restore_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/virtualmachinerestores | +*DefaultApi* | [**watch_virtual_machine_snapshot_content_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_snapshot_content_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/virtualmachinesnapshotcontents | +*DefaultApi* | [**watch_virtual_machine_snapshot_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_snapshot_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/virtualmachinesnapshots | ## Documentation For Models @@ -615,16 +615,11 @@ Class | Method | HTTP request | Description - [V1VolumeStatus](docs/V1VolumeStatus.md) - [V1Watchdog](docs/V1Watchdog.md) - [V1alpha1Condition](docs/V1alpha1Condition.md) - - [V1alpha1Error](docs/V1alpha1Error.md) - [V1alpha1MigrationPolicy](docs/V1alpha1MigrationPolicy.md) - [V1alpha1MigrationPolicyList](docs/V1alpha1MigrationPolicyList.md) - [V1alpha1MigrationPolicySpec](docs/V1alpha1MigrationPolicySpec.md) - [V1alpha1MigrationPolicyStatus](docs/V1alpha1MigrationPolicyStatus.md) - - [V1alpha1PersistentVolumeClaim](docs/V1alpha1PersistentVolumeClaim.md) - [V1alpha1Selectors](docs/V1alpha1Selectors.md) - - [V1alpha1SnapshotVolumesLists](docs/V1alpha1SnapshotVolumesLists.md) - - [V1alpha1SourceSpec](docs/V1alpha1SourceSpec.md) - - [V1alpha1VirtualMachine](docs/V1alpha1VirtualMachine.md) - [V1alpha1VirtualMachineClone](docs/V1alpha1VirtualMachineClone.md) - [V1alpha1VirtualMachineCloneList](docs/V1alpha1VirtualMachineCloneList.md) - [V1alpha1VirtualMachineCloneSpec](docs/V1alpha1VirtualMachineCloneSpec.md) @@ -644,26 +639,12 @@ Class | Method | HTTP request | Description - [V1alpha1VirtualMachinePoolList](docs/V1alpha1VirtualMachinePoolList.md) - [V1alpha1VirtualMachinePoolSpec](docs/V1alpha1VirtualMachinePoolSpec.md) - [V1alpha1VirtualMachinePoolStatus](docs/V1alpha1VirtualMachinePoolStatus.md) - - [V1alpha1VirtualMachineRestore](docs/V1alpha1VirtualMachineRestore.md) - - [V1alpha1VirtualMachineRestoreList](docs/V1alpha1VirtualMachineRestoreList.md) - - [V1alpha1VirtualMachineRestoreSpec](docs/V1alpha1VirtualMachineRestoreSpec.md) - - [V1alpha1VirtualMachineRestoreStatus](docs/V1alpha1VirtualMachineRestoreStatus.md) - - [V1alpha1VirtualMachineSnapshot](docs/V1alpha1VirtualMachineSnapshot.md) - - [V1alpha1VirtualMachineSnapshotContent](docs/V1alpha1VirtualMachineSnapshotContent.md) - - [V1alpha1VirtualMachineSnapshotContentList](docs/V1alpha1VirtualMachineSnapshotContentList.md) - - [V1alpha1VirtualMachineSnapshotContentSpec](docs/V1alpha1VirtualMachineSnapshotContentSpec.md) - - [V1alpha1VirtualMachineSnapshotContentStatus](docs/V1alpha1VirtualMachineSnapshotContentStatus.md) - - [V1alpha1VirtualMachineSnapshotList](docs/V1alpha1VirtualMachineSnapshotList.md) - - [V1alpha1VirtualMachineSnapshotSpec](docs/V1alpha1VirtualMachineSnapshotSpec.md) - - [V1alpha1VirtualMachineSnapshotStatus](docs/V1alpha1VirtualMachineSnapshotStatus.md) - [V1alpha1VirtualMachineTemplateSpec](docs/V1alpha1VirtualMachineTemplateSpec.md) - - [V1alpha1VolumeBackup](docs/V1alpha1VolumeBackup.md) - - [V1alpha1VolumeRestore](docs/V1alpha1VolumeRestore.md) - - [V1alpha1VolumeSnapshotStatus](docs/V1alpha1VolumeSnapshotStatus.md) - [V1beta1CPUInstancetype](docs/V1beta1CPUInstancetype.md) - [V1beta1CPUPreferenceRequirement](docs/V1beta1CPUPreferenceRequirement.md) - [V1beta1CPUPreferences](docs/V1beta1CPUPreferences.md) - [V1beta1ClockPreferences](docs/V1beta1ClockPreferences.md) + - [V1beta1Condition](docs/V1beta1Condition.md) - [V1beta1DataVolumeBlankImage](docs/V1beta1DataVolumeBlankImage.md) - [V1beta1DataVolumeCheckpoint](docs/V1beta1DataVolumeCheckpoint.md) - [V1beta1DataVolumeSource](docs/V1beta1DataVolumeSource.md) @@ -679,14 +660,19 @@ Class | Method | HTTP request | Description - [V1beta1DataVolumeSourceVDDK](docs/V1beta1DataVolumeSourceVDDK.md) - [V1beta1DataVolumeSpec](docs/V1beta1DataVolumeSpec.md) - [V1beta1DevicePreferences](docs/V1beta1DevicePreferences.md) + - [V1beta1Error](docs/V1beta1Error.md) - [V1beta1FeaturePreferences](docs/V1beta1FeaturePreferences.md) - [V1beta1FirmwarePreferences](docs/V1beta1FirmwarePreferences.md) - [V1beta1MachinePreferences](docs/V1beta1MachinePreferences.md) - [V1beta1MemoryInstancetype](docs/V1beta1MemoryInstancetype.md) - [V1beta1MemoryPreferenceRequirement](docs/V1beta1MemoryPreferenceRequirement.md) + - [V1beta1PersistentVolumeClaim](docs/V1beta1PersistentVolumeClaim.md) - [V1beta1PreferenceRequirements](docs/V1beta1PreferenceRequirements.md) + - [V1beta1SnapshotVolumesLists](docs/V1beta1SnapshotVolumesLists.md) + - [V1beta1SourceSpec](docs/V1beta1SourceSpec.md) - [V1beta1SpreadOptions](docs/V1beta1SpreadOptions.md) - [V1beta1StorageSpec](docs/V1beta1StorageSpec.md) + - [V1beta1VirtualMachine](docs/V1beta1VirtualMachine.md) - [V1beta1VirtualMachineClusterInstancetype](docs/V1beta1VirtualMachineClusterInstancetype.md) - [V1beta1VirtualMachineClusterInstancetypeList](docs/V1beta1VirtualMachineClusterInstancetypeList.md) - [V1beta1VirtualMachineClusterPreference](docs/V1beta1VirtualMachineClusterPreference.md) @@ -697,7 +683,22 @@ Class | Method | HTTP request | Description - [V1beta1VirtualMachinePreference](docs/V1beta1VirtualMachinePreference.md) - [V1beta1VirtualMachinePreferenceList](docs/V1beta1VirtualMachinePreferenceList.md) - [V1beta1VirtualMachinePreferenceSpec](docs/V1beta1VirtualMachinePreferenceSpec.md) + - [V1beta1VirtualMachineRestore](docs/V1beta1VirtualMachineRestore.md) + - [V1beta1VirtualMachineRestoreList](docs/V1beta1VirtualMachineRestoreList.md) + - [V1beta1VirtualMachineRestoreSpec](docs/V1beta1VirtualMachineRestoreSpec.md) + - [V1beta1VirtualMachineRestoreStatus](docs/V1beta1VirtualMachineRestoreStatus.md) + - [V1beta1VirtualMachineSnapshot](docs/V1beta1VirtualMachineSnapshot.md) + - [V1beta1VirtualMachineSnapshotContent](docs/V1beta1VirtualMachineSnapshotContent.md) + - [V1beta1VirtualMachineSnapshotContentList](docs/V1beta1VirtualMachineSnapshotContentList.md) + - [V1beta1VirtualMachineSnapshotContentSpec](docs/V1beta1VirtualMachineSnapshotContentSpec.md) + - [V1beta1VirtualMachineSnapshotContentStatus](docs/V1beta1VirtualMachineSnapshotContentStatus.md) + - [V1beta1VirtualMachineSnapshotList](docs/V1beta1VirtualMachineSnapshotList.md) + - [V1beta1VirtualMachineSnapshotSpec](docs/V1beta1VirtualMachineSnapshotSpec.md) + - [V1beta1VirtualMachineSnapshotStatus](docs/V1beta1VirtualMachineSnapshotStatus.md) + - [V1beta1VolumeBackup](docs/V1beta1VolumeBackup.md) - [V1beta1VolumePreferences](docs/V1beta1VolumePreferences.md) + - [V1beta1VolumeRestore](docs/V1beta1VolumeRestore.md) + - [V1beta1VolumeSnapshotStatus](docs/V1beta1VolumeSnapshotStatus.md) ## Documentation For Authorization diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index cc1e7175..3e358464 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -15,9 +15,9 @@ Method | HTTP request | Description [**create_namespaced_virtual_machine_instancetype**](DefaultApi.md#create_namespaced_virtual_machine_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes | [**create_namespaced_virtual_machine_pool**](DefaultApi.md#create_namespaced_virtual_machine_pool) | **POST** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools | [**create_namespaced_virtual_machine_preference**](DefaultApi.md#create_namespaced_virtual_machine_preference) | **POST** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences | -[**create_namespaced_virtual_machine_restore**](DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores | -[**create_namespaced_virtual_machine_snapshot**](DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots | -[**create_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents | +[**create_namespaced_virtual_machine_restore**](DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | +[**create_namespaced_virtual_machine_snapshot**](DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | +[**create_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents | [**create_virtual_machine_clone**](DefaultApi.md#create_virtual_machine_clone) | **POST** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | [**create_virtual_machine_cluster_instancetype**](DefaultApi.md#create_virtual_machine_cluster_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | [**create_virtual_machine_cluster_preference**](DefaultApi.md#create_virtual_machine_cluster_preference) | **POST** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | @@ -32,9 +32,9 @@ Method | HTTP request | Description [**delete_collection_namespaced_virtual_machine_instancetype**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes | [**delete_collection_namespaced_virtual_machine_pool**](DefaultApi.md#delete_collection_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools | [**delete_collection_namespaced_virtual_machine_preference**](DefaultApi.md#delete_collection_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences | -[**delete_collection_namespaced_virtual_machine_restore**](DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores | -[**delete_collection_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots | -[**delete_collection_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents | +[**delete_collection_namespaced_virtual_machine_restore**](DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | +[**delete_collection_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | +[**delete_collection_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents | [**delete_collection_virtual_machine_clone**](DefaultApi.md#delete_collection_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | [**delete_collection_virtual_machine_cluster_instancetype**](DefaultApi.md#delete_collection_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | [**delete_collection_virtual_machine_cluster_preference**](DefaultApi.md#delete_collection_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | @@ -49,9 +49,9 @@ Method | HTTP request | Description [**delete_namespaced_virtual_machine_instancetype**](DefaultApi.md#delete_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | [**delete_namespaced_virtual_machine_pool**](DefaultApi.md#delete_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | [**delete_namespaced_virtual_machine_preference**](DefaultApi.md#delete_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | -[**delete_namespaced_virtual_machine_restore**](DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name} | -[**delete_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name} | -[**delete_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | +[**delete_namespaced_virtual_machine_restore**](DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | +[**delete_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | +[**delete_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | [**delete_virtual_machine_clone**](DefaultApi.md#delete_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | [**delete_virtual_machine_cluster_instancetype**](DefaultApi.md#delete_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | [**delete_virtual_machine_cluster_preference**](DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | @@ -71,7 +71,7 @@ Method | HTTP request | Description [**get_api_resources_kubevirt_io_v1**](DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | [**get_api_resources_migrations_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_migrations_kubevirt_io_v1alpha1) | **GET** /apis/migrations.kubevirt.io/v1alpha1/ | [**get_api_resources_pool_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_pool_kubevirt_io_v1alpha1) | **GET** /apis/pool.kubevirt.io/v1alpha1/ | -[**get_api_resources_snapshot_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_snapshot_kubevirt_io_v1alpha1) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/ | +[**get_api_resources_snapshot_kubevirt_io_v1beta1**](DefaultApi.md#get_api_resources_snapshot_kubevirt_io_v1beta1) | **GET** /apis/snapshot.kubevirt.io/v1beta1/ | [**get_root_paths**](DefaultApi.md#get_root_paths) | **GET** / | [**handle_dump_profiler**](DefaultApi.md#handle_dump_profiler) | **GET** /dump-profiler | [**handle_start_profiler**](DefaultApi.md#handle_start_profiler) | **GET** /start-profiler | @@ -88,9 +88,9 @@ Method | HTTP request | Description [**list_namespaced_virtual_machine_instancetype**](DefaultApi.md#list_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes | [**list_namespaced_virtual_machine_pool**](DefaultApi.md#list_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools | [**list_namespaced_virtual_machine_preference**](DefaultApi.md#list_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences | -[**list_namespaced_virtual_machine_restore**](DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores | -[**list_namespaced_virtual_machine_snapshot**](DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots | -[**list_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents | +[**list_namespaced_virtual_machine_restore**](DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | +[**list_namespaced_virtual_machine_snapshot**](DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | +[**list_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents | [**list_virtual_machine_clone**](DefaultApi.md#list_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | [**list_virtual_machine_cluster_instancetype**](DefaultApi.md#list_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | [**list_virtual_machine_cluster_preference**](DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | @@ -103,9 +103,9 @@ Method | HTTP request | Description [**list_virtual_machine_instancetype_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instancetype_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineinstancetypes | [**list_virtual_machine_pool_for_all_namespaces**](DefaultApi.md#list_virtual_machine_pool_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/virtualmachinepools | [**list_virtual_machine_preference_for_all_namespaces**](DefaultApi.md#list_virtual_machine_preference_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachinepreferences | -[**list_virtual_machine_restore_for_all_namespaces**](DefaultApi.md#list_virtual_machine_restore_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores | -[**list_virtual_machine_snapshot_content_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents | -[**list_virtual_machine_snapshot_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots | +[**list_virtual_machine_restore_for_all_namespaces**](DefaultApi.md#list_virtual_machine_restore_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1beta1/virtualmachinerestores | +[**list_virtual_machine_snapshot_content_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1beta1/virtualmachinesnapshotcontents | +[**list_virtual_machine_snapshot_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1beta1/virtualmachinesnapshots | [**patch_migration_policy**](DefaultApi.md#patch_migration_policy) | **PATCH** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | [**patch_namespaced_kube_virt**](DefaultApi.md#patch_namespaced_kube_virt) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | [**patch_namespaced_virtual_machine**](DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | @@ -117,9 +117,9 @@ Method | HTTP request | Description [**patch_namespaced_virtual_machine_instancetype**](DefaultApi.md#patch_namespaced_virtual_machine_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | [**patch_namespaced_virtual_machine_pool**](DefaultApi.md#patch_namespaced_virtual_machine_pool) | **PATCH** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | [**patch_namespaced_virtual_machine_preference**](DefaultApi.md#patch_namespaced_virtual_machine_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | -[**patch_namespaced_virtual_machine_restore**](DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name} | -[**patch_namespaced_virtual_machine_snapshot**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name} | -[**patch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | +[**patch_namespaced_virtual_machine_restore**](DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | +[**patch_namespaced_virtual_machine_snapshot**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | +[**patch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | [**patch_virtual_machine_clone**](DefaultApi.md#patch_virtual_machine_clone) | **PATCH** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | [**patch_virtual_machine_cluster_instancetype**](DefaultApi.md#patch_virtual_machine_cluster_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | [**patch_virtual_machine_cluster_preference**](DefaultApi.md#patch_virtual_machine_cluster_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | @@ -134,9 +134,9 @@ Method | HTTP request | Description [**read_namespaced_virtual_machine_instancetype**](DefaultApi.md#read_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | [**read_namespaced_virtual_machine_pool**](DefaultApi.md#read_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | [**read_namespaced_virtual_machine_preference**](DefaultApi.md#read_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | -[**read_namespaced_virtual_machine_restore**](DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name} | -[**read_namespaced_virtual_machine_snapshot**](DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name} | -[**read_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | +[**read_namespaced_virtual_machine_restore**](DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | +[**read_namespaced_virtual_machine_snapshot**](DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | +[**read_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | [**read_virtual_machine_clone**](DefaultApi.md#read_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | [**read_virtual_machine_cluster_instancetype**](DefaultApi.md#read_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | [**read_virtual_machine_cluster_preference**](DefaultApi.md#read_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | @@ -151,9 +151,9 @@ Method | HTTP request | Description [**replace_namespaced_virtual_machine_instancetype**](DefaultApi.md#replace_namespaced_virtual_machine_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | [**replace_namespaced_virtual_machine_pool**](DefaultApi.md#replace_namespaced_virtual_machine_pool) | **PUT** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | [**replace_namespaced_virtual_machine_preference**](DefaultApi.md#replace_namespaced_virtual_machine_preference) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | -[**replace_namespaced_virtual_machine_restore**](DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name} | -[**replace_namespaced_virtual_machine_snapshot**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name} | -[**replace_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | +[**replace_namespaced_virtual_machine_restore**](DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | +[**replace_namespaced_virtual_machine_snapshot**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | +[**replace_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | [**replace_virtual_machine_clone**](DefaultApi.md#replace_virtual_machine_clone) | **PUT** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | [**replace_virtual_machine_cluster_instancetype**](DefaultApi.md#replace_virtual_machine_cluster_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | [**replace_virtual_machine_cluster_preference**](DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | @@ -250,9 +250,9 @@ Method | HTTP request | Description [**watch_namespaced_virtual_machine_instancetype**](DefaultApi.md#watch_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachineinstancetypes | [**watch_namespaced_virtual_machine_pool**](DefaultApi.md#watch_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinepools | [**watch_namespaced_virtual_machine_preference**](DefaultApi.md#watch_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinepreferences | -[**watch_namespaced_virtual_machine_restore**](DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinerestores | -[**watch_namespaced_virtual_machine_snapshot**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinesnapshots | -[**watch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinesnapshotcontents | +[**watch_namespaced_virtual_machine_restore**](DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinerestores | +[**watch_namespaced_virtual_machine_snapshot**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinesnapshots | +[**watch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinesnapshotcontents | [**watch_virtual_machine_clone_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_clone_list_for_all_namespaces) | **GET** /apis/clone.kubevirt.io/v1alpha1/watch/virtualmachineclones | [**watch_virtual_machine_cluster_instancetype_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterinstancetypes | [**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterpreferences | @@ -265,9 +265,9 @@ Method | HTTP request | Description [**watch_virtual_machine_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachines | [**watch_virtual_machine_pool_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_pool_list_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/virtualmachinepools | [**watch_virtual_machine_preference_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachinepreferences | -[**watch_virtual_machine_restore_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_restore_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinerestores | -[**watch_virtual_machine_snapshot_content_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_snapshot_content_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshotcontents | -[**watch_virtual_machine_snapshot_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_snapshot_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshots | +[**watch_virtual_machine_restore_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_restore_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/virtualmachinerestores | +[**watch_virtual_machine_snapshot_content_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_snapshot_content_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/virtualmachinesnapshotcontents | +[**watch_virtual_machine_snapshot_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_snapshot_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/virtualmachinesnapshots | # **create_migration_policy** @@ -808,7 +808,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_virtual_machine_restore** -> V1alpha1VirtualMachineRestore create_namespaced_virtual_machine_restore(body, namespace) +> V1beta1VirtualMachineRestore create_namespaced_virtual_machine_restore(body, namespace) @@ -824,7 +824,7 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1alpha1VirtualMachineRestore() # V1alpha1VirtualMachineRestore | +body = kubevirt.V1beta1VirtualMachineRestore() # V1beta1VirtualMachineRestore | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: @@ -838,12 +838,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1VirtualMachineRestore**](V1alpha1VirtualMachineRestore.md)| | + **body** | [**V1beta1VirtualMachineRestore**](V1beta1VirtualMachineRestore.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1alpha1VirtualMachineRestore**](V1alpha1VirtualMachineRestore.md) +[**V1beta1VirtualMachineRestore**](V1beta1VirtualMachineRestore.md) ### Authorization @@ -857,7 +857,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_virtual_machine_snapshot** -> V1alpha1VirtualMachineSnapshot create_namespaced_virtual_machine_snapshot(body, namespace) +> V1beta1VirtualMachineSnapshot create_namespaced_virtual_machine_snapshot(body, namespace) @@ -873,7 +873,7 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1alpha1VirtualMachineSnapshot() # V1alpha1VirtualMachineSnapshot | +body = kubevirt.V1beta1VirtualMachineSnapshot() # V1beta1VirtualMachineSnapshot | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: @@ -887,12 +887,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1VirtualMachineSnapshot**](V1alpha1VirtualMachineSnapshot.md)| | + **body** | [**V1beta1VirtualMachineSnapshot**](V1beta1VirtualMachineSnapshot.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1alpha1VirtualMachineSnapshot**](V1alpha1VirtualMachineSnapshot.md) +[**V1beta1VirtualMachineSnapshot**](V1beta1VirtualMachineSnapshot.md) ### Authorization @@ -906,7 +906,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_virtual_machine_snapshot_content** -> V1alpha1VirtualMachineSnapshotContent create_namespaced_virtual_machine_snapshot_content(body, namespace) +> V1beta1VirtualMachineSnapshotContent create_namespaced_virtual_machine_snapshot_content(body, namespace) @@ -922,7 +922,7 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1alpha1VirtualMachineSnapshotContent() # V1alpha1VirtualMachineSnapshotContent | +body = kubevirt.V1beta1VirtualMachineSnapshotContent() # V1beta1VirtualMachineSnapshotContent | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: @@ -936,12 +936,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1VirtualMachineSnapshotContent**](V1alpha1VirtualMachineSnapshotContent.md)| | + **body** | [**V1beta1VirtualMachineSnapshotContent**](V1beta1VirtualMachineSnapshotContent.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1alpha1VirtualMachineSnapshotContent**](V1alpha1VirtualMachineSnapshotContent.md) +[**V1beta1VirtualMachineSnapshotContent**](V1beta1VirtualMachineSnapshotContent.md) ### Authorization @@ -3777,8 +3777,8 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_api_resources_snapshot_kubevirt_io_v1alpha1** -> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_snapshot_kubevirt_io_v1alpha1() +# **get_api_resources_snapshot_kubevirt_io_v1beta1** +> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_snapshot_kubevirt_io_v1beta1() @@ -3796,10 +3796,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() try: - api_response = api_instance.get_api_resources_snapshot_kubevirt_io_v1alpha1() + api_response = api_instance.get_api_resources_snapshot_kubevirt_io_v1beta1() pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->get_api_resources_snapshot_kubevirt_io_v1alpha1: %s\n" % e) + print("Exception when calling DefaultApi->get_api_resources_snapshot_kubevirt_io_v1beta1: %s\n" % e) ``` ### Parameters @@ -4742,7 +4742,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_virtual_machine_restore** -> V1alpha1VirtualMachineRestoreList list_namespaced_virtual_machine_restore(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1VirtualMachineRestoreList list_namespaced_virtual_machine_restore(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -4791,7 +4791,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineRestoreList**](V1alpha1VirtualMachineRestoreList.md) +[**V1beta1VirtualMachineRestoreList**](V1beta1VirtualMachineRestoreList.md) ### Authorization @@ -4805,7 +4805,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_virtual_machine_snapshot** -> V1alpha1VirtualMachineSnapshotList list_namespaced_virtual_machine_snapshot(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1VirtualMachineSnapshotList list_namespaced_virtual_machine_snapshot(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -4854,7 +4854,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineSnapshotList**](V1alpha1VirtualMachineSnapshotList.md) +[**V1beta1VirtualMachineSnapshotList**](V1beta1VirtualMachineSnapshotList.md) ### Authorization @@ -4868,7 +4868,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_virtual_machine_snapshot_content** -> V1alpha1VirtualMachineSnapshotContentList list_namespaced_virtual_machine_snapshot_content(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1VirtualMachineSnapshotContentList list_namespaced_virtual_machine_snapshot_content(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -4917,7 +4917,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineSnapshotContentList**](V1alpha1VirtualMachineSnapshotContentList.md) +[**V1beta1VirtualMachineSnapshotContentList**](V1beta1VirtualMachineSnapshotContentList.md) ### Authorization @@ -5663,7 +5663,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_virtual_machine_restore_for_all_namespaces** -> V1alpha1VirtualMachineRestoreList list_virtual_machine_restore_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1VirtualMachineRestoreList list_virtual_machine_restore_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -5710,7 +5710,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineRestoreList**](V1alpha1VirtualMachineRestoreList.md) +[**V1beta1VirtualMachineRestoreList**](V1beta1VirtualMachineRestoreList.md) ### Authorization @@ -5724,7 +5724,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_virtual_machine_snapshot_content_for_all_namespaces** -> V1alpha1VirtualMachineSnapshotContentList list_virtual_machine_snapshot_content_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1VirtualMachineSnapshotContentList list_virtual_machine_snapshot_content_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -5771,7 +5771,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineSnapshotContentList**](V1alpha1VirtualMachineSnapshotContentList.md) +[**V1beta1VirtualMachineSnapshotContentList**](V1beta1VirtualMachineSnapshotContentList.md) ### Authorization @@ -5785,7 +5785,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_virtual_machine_snapshot_for_all_namespaces** -> V1alpha1VirtualMachineSnapshotList list_virtual_machine_snapshot_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1VirtualMachineSnapshotList list_virtual_machine_snapshot_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -5832,7 +5832,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineSnapshotList**](V1alpha1VirtualMachineSnapshotList.md) +[**V1beta1VirtualMachineSnapshotList**](V1beta1VirtualMachineSnapshotList.md) ### Authorization @@ -6405,7 +6405,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_virtual_machine_restore** -> V1alpha1VirtualMachineRestore patch_namespaced_virtual_machine_restore(name, namespace, body) +> V1beta1VirtualMachineRestore patch_namespaced_virtual_machine_restore(name, namespace, body) @@ -6442,7 +6442,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineRestore**](V1alpha1VirtualMachineRestore.md) +[**V1beta1VirtualMachineRestore**](V1beta1VirtualMachineRestore.md) ### Authorization @@ -6456,7 +6456,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_virtual_machine_snapshot** -> V1alpha1VirtualMachineSnapshot patch_namespaced_virtual_machine_snapshot(name, namespace, body) +> V1beta1VirtualMachineSnapshot patch_namespaced_virtual_machine_snapshot(name, namespace, body) @@ -6493,7 +6493,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineSnapshot**](V1alpha1VirtualMachineSnapshot.md) +[**V1beta1VirtualMachineSnapshot**](V1beta1VirtualMachineSnapshot.md) ### Authorization @@ -6507,7 +6507,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_virtual_machine_snapshot_content** -> V1alpha1VirtualMachineSnapshotContent patch_namespaced_virtual_machine_snapshot_content(name, namespace, body) +> V1beta1VirtualMachineSnapshotContent patch_namespaced_virtual_machine_snapshot_content(name, namespace, body) @@ -6544,7 +6544,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineSnapshotContent**](V1alpha1VirtualMachineSnapshotContent.md) +[**V1beta1VirtualMachineSnapshotContent**](V1beta1VirtualMachineSnapshotContent.md) ### Authorization @@ -7286,7 +7286,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_virtual_machine_restore** -> V1alpha1VirtualMachineRestore read_namespaced_virtual_machine_restore(name, namespace, exact=exact, export=export) +> V1beta1VirtualMachineRestore read_namespaced_virtual_machine_restore(name, namespace, exact=exact, export=export) @@ -7325,7 +7325,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineRestore**](V1alpha1VirtualMachineRestore.md) +[**V1beta1VirtualMachineRestore**](V1beta1VirtualMachineRestore.md) ### Authorization @@ -7339,7 +7339,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_virtual_machine_snapshot** -> V1alpha1VirtualMachineSnapshot read_namespaced_virtual_machine_snapshot(name, namespace, exact=exact, export=export) +> V1beta1VirtualMachineSnapshot read_namespaced_virtual_machine_snapshot(name, namespace, exact=exact, export=export) @@ -7378,7 +7378,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineSnapshot**](V1alpha1VirtualMachineSnapshot.md) +[**V1beta1VirtualMachineSnapshot**](V1beta1VirtualMachineSnapshot.md) ### Authorization @@ -7392,7 +7392,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_virtual_machine_snapshot_content** -> V1alpha1VirtualMachineSnapshotContent read_namespaced_virtual_machine_snapshot_content(name, namespace, exact=exact, export=export) +> V1beta1VirtualMachineSnapshotContent read_namespaced_virtual_machine_snapshot_content(name, namespace, exact=exact, export=export) @@ -7431,7 +7431,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineSnapshotContent**](V1alpha1VirtualMachineSnapshotContent.md) +[**V1beta1VirtualMachineSnapshotContent**](V1beta1VirtualMachineSnapshotContent.md) ### Authorization @@ -8157,7 +8157,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_virtual_machine_restore** -> V1alpha1VirtualMachineRestore replace_namespaced_virtual_machine_restore(name, namespace, body) +> V1beta1VirtualMachineRestore replace_namespaced_virtual_machine_restore(name, namespace, body) @@ -8175,7 +8175,7 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1alpha1VirtualMachineRestore() # V1alpha1VirtualMachineRestore | +body = kubevirt.V1beta1VirtualMachineRestore() # V1beta1VirtualMachineRestore | try: api_response = api_instance.replace_namespaced_virtual_machine_restore(name, namespace, body) @@ -8190,11 +8190,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1alpha1VirtualMachineRestore**](V1alpha1VirtualMachineRestore.md)| | + **body** | [**V1beta1VirtualMachineRestore**](V1beta1VirtualMachineRestore.md)| | ### Return type -[**V1alpha1VirtualMachineRestore**](V1alpha1VirtualMachineRestore.md) +[**V1beta1VirtualMachineRestore**](V1beta1VirtualMachineRestore.md) ### Authorization @@ -8208,7 +8208,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_virtual_machine_snapshot** -> V1alpha1VirtualMachineSnapshot replace_namespaced_virtual_machine_snapshot(name, namespace, body) +> V1beta1VirtualMachineSnapshot replace_namespaced_virtual_machine_snapshot(name, namespace, body) @@ -8226,7 +8226,7 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1alpha1VirtualMachineSnapshot() # V1alpha1VirtualMachineSnapshot | +body = kubevirt.V1beta1VirtualMachineSnapshot() # V1beta1VirtualMachineSnapshot | try: api_response = api_instance.replace_namespaced_virtual_machine_snapshot(name, namespace, body) @@ -8241,11 +8241,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1alpha1VirtualMachineSnapshot**](V1alpha1VirtualMachineSnapshot.md)| | + **body** | [**V1beta1VirtualMachineSnapshot**](V1beta1VirtualMachineSnapshot.md)| | ### Return type -[**V1alpha1VirtualMachineSnapshot**](V1alpha1VirtualMachineSnapshot.md) +[**V1beta1VirtualMachineSnapshot**](V1beta1VirtualMachineSnapshot.md) ### Authorization @@ -8259,7 +8259,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_virtual_machine_snapshot_content** -> V1alpha1VirtualMachineSnapshotContent replace_namespaced_virtual_machine_snapshot_content(name, namespace, body) +> V1beta1VirtualMachineSnapshotContent replace_namespaced_virtual_machine_snapshot_content(name, namespace, body) @@ -8277,7 +8277,7 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1alpha1VirtualMachineSnapshotContent() # V1alpha1VirtualMachineSnapshotContent | +body = kubevirt.V1beta1VirtualMachineSnapshotContent() # V1beta1VirtualMachineSnapshotContent | try: api_response = api_instance.replace_namespaced_virtual_machine_snapshot_content(name, namespace, body) @@ -8292,11 +8292,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1alpha1VirtualMachineSnapshotContent**](V1alpha1VirtualMachineSnapshotContent.md)| | + **body** | [**V1beta1VirtualMachineSnapshotContent**](V1beta1VirtualMachineSnapshotContent.md)| | ### Return type -[**V1alpha1VirtualMachineSnapshotContent**](V1alpha1VirtualMachineSnapshotContent.md) +[**V1beta1VirtualMachineSnapshotContent**](V1beta1VirtualMachineSnapshotContent.md) ### Authorization diff --git a/docs/V1beta1Condition.md b/docs/V1beta1Condition.md new file mode 100644 index 00000000..6d59f076 --- /dev/null +++ b/docs/V1beta1Condition.md @@ -0,0 +1,13 @@ +# V1beta1Condition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | | [optional] +**reason** | **str** | | [optional] +**status** | **str** | | [default to ''] +**type** | **str** | | [default to ''] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1Error.md b/docs/V1beta1Error.md similarity index 96% rename from docs/V1alpha1Error.md rename to docs/V1beta1Error.md index f1418e0d..3a8d8e27 100644 --- a/docs/V1alpha1Error.md +++ b/docs/V1beta1Error.md @@ -1,4 +1,4 @@ -# V1alpha1Error +# V1beta1Error ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1PersistentVolumeClaim.md b/docs/V1beta1PersistentVolumeClaim.md similarity index 96% rename from docs/V1alpha1PersistentVolumeClaim.md rename to docs/V1beta1PersistentVolumeClaim.md index 0f3342b5..f80f4a38 100644 --- a/docs/V1alpha1PersistentVolumeClaim.md +++ b/docs/V1beta1PersistentVolumeClaim.md @@ -1,4 +1,4 @@ -# V1alpha1PersistentVolumeClaim +# V1beta1PersistentVolumeClaim ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1SnapshotVolumesLists.md b/docs/V1beta1SnapshotVolumesLists.md similarity index 92% rename from docs/V1alpha1SnapshotVolumesLists.md rename to docs/V1beta1SnapshotVolumesLists.md index 69490154..6e6a540b 100644 --- a/docs/V1alpha1SnapshotVolumesLists.md +++ b/docs/V1beta1SnapshotVolumesLists.md @@ -1,4 +1,4 @@ -# V1alpha1SnapshotVolumesLists +# V1beta1SnapshotVolumesLists ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1SourceSpec.md b/docs/V1beta1SourceSpec.md similarity index 70% rename from docs/V1alpha1SourceSpec.md rename to docs/V1beta1SourceSpec.md index 153619f3..496b5020 100644 --- a/docs/V1alpha1SourceSpec.md +++ b/docs/V1beta1SourceSpec.md @@ -1,9 +1,9 @@ -# V1alpha1SourceSpec +# V1beta1SourceSpec ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**virtual_machine** | [**V1alpha1VirtualMachine**](V1alpha1VirtualMachine.md) | | [optional] +**virtual_machine** | [**V1beta1VirtualMachine**](V1beta1VirtualMachine.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachine.md b/docs/V1beta1VirtualMachine.md similarity index 96% rename from docs/V1alpha1VirtualMachine.md rename to docs/V1beta1VirtualMachine.md index 7e0b362a..f8a76bca 100644 --- a/docs/V1alpha1VirtualMachine.md +++ b/docs/V1beta1VirtualMachine.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachine +# V1beta1VirtualMachine ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1VirtualMachineRestore.md b/docs/V1beta1VirtualMachineRestore.md similarity index 81% rename from docs/V1alpha1VirtualMachineRestore.md rename to docs/V1beta1VirtualMachineRestore.md index d41a210a..0a8c28c9 100644 --- a/docs/V1alpha1VirtualMachineRestore.md +++ b/docs/V1beta1VirtualMachineRestore.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachineRestore +# V1beta1VirtualMachineRestore ## Properties Name | Type | Description | Notes @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1VirtualMachineRestoreSpec**](V1alpha1VirtualMachineRestoreSpec.md) | | -**status** | [**V1alpha1VirtualMachineRestoreStatus**](V1alpha1VirtualMachineRestoreStatus.md) | | [optional] +**spec** | [**V1beta1VirtualMachineRestoreSpec**](V1beta1VirtualMachineRestoreSpec.md) | | +**status** | [**V1beta1VirtualMachineRestoreStatus**](V1beta1VirtualMachineRestoreStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineRestoreList.md b/docs/V1beta1VirtualMachineRestoreList.md similarity index 88% rename from docs/V1alpha1VirtualMachineRestoreList.md rename to docs/V1beta1VirtualMachineRestoreList.md index 968d580c..cb1dc394 100644 --- a/docs/V1alpha1VirtualMachineRestoreList.md +++ b/docs/V1beta1VirtualMachineRestoreList.md @@ -1,10 +1,10 @@ -# V1alpha1VirtualMachineRestoreList +# V1beta1VirtualMachineRestoreList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**list[V1alpha1VirtualMachineRestore]**](V1alpha1VirtualMachineRestore.md) | | +**items** | [**list[V1beta1VirtualMachineRestore]**](V1beta1VirtualMachineRestore.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | diff --git a/docs/V1alpha1VirtualMachineRestoreSpec.md b/docs/V1beta1VirtualMachineRestoreSpec.md similarity index 96% rename from docs/V1alpha1VirtualMachineRestoreSpec.md rename to docs/V1beta1VirtualMachineRestoreSpec.md index c4c838f6..4c9acbc4 100644 --- a/docs/V1alpha1VirtualMachineRestoreSpec.md +++ b/docs/V1beta1VirtualMachineRestoreSpec.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachineRestoreSpec +# V1beta1VirtualMachineRestoreSpec ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1VirtualMachineRestoreStatus.md b/docs/V1beta1VirtualMachineRestoreStatus.md similarity index 69% rename from docs/V1alpha1VirtualMachineRestoreStatus.md rename to docs/V1beta1VirtualMachineRestoreStatus.md index 9930131d..9bbe2055 100644 --- a/docs/V1alpha1VirtualMachineRestoreStatus.md +++ b/docs/V1beta1VirtualMachineRestoreStatus.md @@ -1,13 +1,13 @@ -# V1alpha1VirtualMachineRestoreStatus +# V1beta1VirtualMachineRestoreStatus ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **complete** | **bool** | | [optional] -**conditions** | [**list[V1alpha1Condition]**](V1alpha1Condition.md) | | [optional] +**conditions** | [**list[V1beta1Condition]**](V1beta1Condition.md) | | [optional] **deleted_data_volumes** | **list[str]** | | [optional] **restore_time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | | [optional] -**restores** | [**list[V1alpha1VolumeRestore]**](V1alpha1VolumeRestore.md) | | [optional] +**restores** | [**list[V1beta1VolumeRestore]**](V1beta1VolumeRestore.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineSnapshot.md b/docs/V1beta1VirtualMachineSnapshot.md similarity index 81% rename from docs/V1alpha1VirtualMachineSnapshot.md rename to docs/V1beta1VirtualMachineSnapshot.md index 28844384..a7d21614 100644 --- a/docs/V1alpha1VirtualMachineSnapshot.md +++ b/docs/V1beta1VirtualMachineSnapshot.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachineSnapshot +# V1beta1VirtualMachineSnapshot ## Properties Name | Type | Description | Notes @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1VirtualMachineSnapshotSpec**](V1alpha1VirtualMachineSnapshotSpec.md) | | -**status** | [**V1alpha1VirtualMachineSnapshotStatus**](V1alpha1VirtualMachineSnapshotStatus.md) | | [optional] +**spec** | [**V1beta1VirtualMachineSnapshotSpec**](V1beta1VirtualMachineSnapshotSpec.md) | | +**status** | [**V1beta1VirtualMachineSnapshotStatus**](V1beta1VirtualMachineSnapshotStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineSnapshotContent.md b/docs/V1beta1VirtualMachineSnapshotContent.md similarity index 79% rename from docs/V1alpha1VirtualMachineSnapshotContent.md rename to docs/V1beta1VirtualMachineSnapshotContent.md index bdf673ca..884417ac 100644 --- a/docs/V1alpha1VirtualMachineSnapshotContent.md +++ b/docs/V1beta1VirtualMachineSnapshotContent.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachineSnapshotContent +# V1beta1VirtualMachineSnapshotContent ## Properties Name | Type | Description | Notes @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1VirtualMachineSnapshotContentSpec**](V1alpha1VirtualMachineSnapshotContentSpec.md) | | -**status** | [**V1alpha1VirtualMachineSnapshotContentStatus**](V1alpha1VirtualMachineSnapshotContentStatus.md) | | [optional] +**spec** | [**V1beta1VirtualMachineSnapshotContentSpec**](V1beta1VirtualMachineSnapshotContentSpec.md) | | +**status** | [**V1beta1VirtualMachineSnapshotContentStatus**](V1beta1VirtualMachineSnapshotContentStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineSnapshotContentList.md b/docs/V1beta1VirtualMachineSnapshotContentList.md similarity index 87% rename from docs/V1alpha1VirtualMachineSnapshotContentList.md rename to docs/V1beta1VirtualMachineSnapshotContentList.md index 75849c3b..9bf940b9 100644 --- a/docs/V1alpha1VirtualMachineSnapshotContentList.md +++ b/docs/V1beta1VirtualMachineSnapshotContentList.md @@ -1,10 +1,10 @@ -# V1alpha1VirtualMachineSnapshotContentList +# V1beta1VirtualMachineSnapshotContentList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**list[V1alpha1VirtualMachineSnapshotContent]**](V1alpha1VirtualMachineSnapshotContent.md) | | +**items** | [**list[V1beta1VirtualMachineSnapshotContent]**](V1beta1VirtualMachineSnapshotContent.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | diff --git a/docs/V1alpha1VirtualMachineSnapshotContentSpec.md b/docs/V1beta1VirtualMachineSnapshotContentSpec.md similarity index 61% rename from docs/V1alpha1VirtualMachineSnapshotContentSpec.md rename to docs/V1beta1VirtualMachineSnapshotContentSpec.md index a1ea7ba9..501e8e73 100644 --- a/docs/V1alpha1VirtualMachineSnapshotContentSpec.md +++ b/docs/V1beta1VirtualMachineSnapshotContentSpec.md @@ -1,11 +1,11 @@ -# V1alpha1VirtualMachineSnapshotContentSpec +# V1beta1VirtualMachineSnapshotContentSpec ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**source** | [**V1alpha1SourceSpec**](V1alpha1SourceSpec.md) | | +**source** | [**V1beta1SourceSpec**](V1beta1SourceSpec.md) | | **virtual_machine_snapshot_name** | **str** | | [optional] -**volume_backups** | [**list[V1alpha1VolumeBackup]**](V1alpha1VolumeBackup.md) | | [optional] +**volume_backups** | [**list[V1beta1VolumeBackup]**](V1beta1VolumeBackup.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineSnapshotContentStatus.md b/docs/V1beta1VirtualMachineSnapshotContentStatus.md similarity index 65% rename from docs/V1alpha1VirtualMachineSnapshotContentStatus.md rename to docs/V1beta1VirtualMachineSnapshotContentStatus.md index 3021f72e..22c5b8d6 100644 --- a/docs/V1alpha1VirtualMachineSnapshotContentStatus.md +++ b/docs/V1beta1VirtualMachineSnapshotContentStatus.md @@ -1,12 +1,12 @@ -# V1alpha1VirtualMachineSnapshotContentStatus +# V1beta1VirtualMachineSnapshotContentStatus ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **creation_time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | | [optional] -**error** | [**V1alpha1Error**](V1alpha1Error.md) | | [optional] +**error** | [**V1beta1Error**](V1beta1Error.md) | | [optional] **ready_to_use** | **bool** | | [optional] -**volume_snapshot_status** | [**list[V1alpha1VolumeSnapshotStatus]**](V1alpha1VolumeSnapshotStatus.md) | | [optional] +**volume_snapshot_status** | [**list[V1beta1VolumeSnapshotStatus]**](V1beta1VolumeSnapshotStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineSnapshotList.md b/docs/V1beta1VirtualMachineSnapshotList.md similarity index 88% rename from docs/V1alpha1VirtualMachineSnapshotList.md rename to docs/V1beta1VirtualMachineSnapshotList.md index 36e02f49..340f1479 100644 --- a/docs/V1alpha1VirtualMachineSnapshotList.md +++ b/docs/V1beta1VirtualMachineSnapshotList.md @@ -1,10 +1,10 @@ -# V1alpha1VirtualMachineSnapshotList +# V1beta1VirtualMachineSnapshotList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**list[V1alpha1VirtualMachineSnapshot]**](V1alpha1VirtualMachineSnapshot.md) | | +**items** | [**list[V1beta1VirtualMachineSnapshot]**](V1beta1VirtualMachineSnapshot.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | diff --git a/docs/V1alpha1VirtualMachineSnapshotSpec.md b/docs/V1beta1VirtualMachineSnapshotSpec.md similarity index 95% rename from docs/V1alpha1VirtualMachineSnapshotSpec.md rename to docs/V1beta1VirtualMachineSnapshotSpec.md index bf08744c..ab4c9802 100644 --- a/docs/V1alpha1VirtualMachineSnapshotSpec.md +++ b/docs/V1beta1VirtualMachineSnapshotSpec.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachineSnapshotSpec +# V1beta1VirtualMachineSnapshotSpec ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1VirtualMachineSnapshotStatus.md b/docs/V1beta1VirtualMachineSnapshotStatus.md similarity index 67% rename from docs/V1alpha1VirtualMachineSnapshotStatus.md rename to docs/V1beta1VirtualMachineSnapshotStatus.md index 7b315252..391dd329 100644 --- a/docs/V1alpha1VirtualMachineSnapshotStatus.md +++ b/docs/V1beta1VirtualMachineSnapshotStatus.md @@ -1,15 +1,15 @@ -# V1alpha1VirtualMachineSnapshotStatus +# V1beta1VirtualMachineSnapshotStatus ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**conditions** | [**list[V1alpha1Condition]**](V1alpha1Condition.md) | | [optional] +**conditions** | [**list[V1beta1Condition]**](V1beta1Condition.md) | | [optional] **creation_time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | | [optional] -**error** | [**V1alpha1Error**](V1alpha1Error.md) | | [optional] +**error** | [**V1beta1Error**](V1beta1Error.md) | | [optional] **indications** | **list[str]** | | [optional] **phase** | **str** | | [optional] **ready_to_use** | **bool** | | [optional] -**snapshot_volumes** | [**V1alpha1SnapshotVolumesLists**](V1alpha1SnapshotVolumesLists.md) | | [optional] +**snapshot_volumes** | [**V1beta1SnapshotVolumesLists**](V1beta1SnapshotVolumesLists.md) | | [optional] **source_uid** | **str** | | [optional] **virtual_machine_snapshot_content_name** | **str** | | [optional] diff --git a/docs/V1alpha1VolumeBackup.md b/docs/V1beta1VolumeBackup.md similarity index 74% rename from docs/V1alpha1VolumeBackup.md rename to docs/V1beta1VolumeBackup.md index 5cd35fbc..e17c2db2 100644 --- a/docs/V1alpha1VolumeBackup.md +++ b/docs/V1beta1VolumeBackup.md @@ -1,9 +1,9 @@ -# V1alpha1VolumeBackup +# V1beta1VolumeBackup ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**persistent_volume_claim** | [**V1alpha1PersistentVolumeClaim**](V1alpha1PersistentVolumeClaim.md) | | +**persistent_volume_claim** | [**V1beta1PersistentVolumeClaim**](V1beta1PersistentVolumeClaim.md) | | **volume_name** | **str** | | [default to ''] **volume_snapshot_name** | **str** | | [optional] diff --git a/docs/V1alpha1VolumeRestore.md b/docs/V1beta1VolumeRestore.md similarity index 95% rename from docs/V1alpha1VolumeRestore.md rename to docs/V1beta1VolumeRestore.md index 67012085..aee2e8a5 100644 --- a/docs/V1alpha1VolumeRestore.md +++ b/docs/V1beta1VolumeRestore.md @@ -1,4 +1,4 @@ -# V1alpha1VolumeRestore +# V1beta1VolumeRestore ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1VolumeSnapshotStatus.md b/docs/V1beta1VolumeSnapshotStatus.md similarity index 83% rename from docs/V1alpha1VolumeSnapshotStatus.md rename to docs/V1beta1VolumeSnapshotStatus.md index 5366b8b0..a6c5e67c 100644 --- a/docs/V1alpha1VolumeSnapshotStatus.md +++ b/docs/V1beta1VolumeSnapshotStatus.md @@ -1,10 +1,10 @@ -# V1alpha1VolumeSnapshotStatus +# V1beta1VolumeSnapshotStatus ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **creation_time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | | [optional] -**error** | [**V1alpha1Error**](V1alpha1Error.md) | | [optional] +**error** | [**V1beta1Error**](V1beta1Error.md) | | [optional] **ready_to_use** | **bool** | | [optional] **volume_snapshot_name** | **str** | | [default to ''] diff --git a/git_push.sh b/git_push.sh index 940625d8..29544707 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.3.0-alpha.0-206-g733602ac0" + release_note="Auto-generated client v1.3.0-alpha.0-222-g61685a12b" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index bab618d4..f95355a5 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -18,6 +18,8 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] INFO io.swagger.codegen.ignore.CodegenIgnoreProcessor - No .swagger-codegen-ignore file found. [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default appVersion set to 1.0.0 [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default version set to 1.0.0 @@ -855,9 +857,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/v1alpha1_condition.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_condition.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1Condition.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_error.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_error.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1Error.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_migration_policy.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_migration_policy.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1MigrationPolicy.md @@ -870,21 +869,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/v1alpha1_migration_policy_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_migration_policy_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1MigrationPolicyStatus.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_persistent_volume_claim.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_persistent_volume_claim.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1PersistentVolumeClaim.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_selectors.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_selectors.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1Selectors.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_snapshot_volumes_lists.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_snapshot_volumes_lists.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1SnapshotVolumesLists.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_source_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_source_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1SourceSpec.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachine.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_clone.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_clone.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineClone.md @@ -942,54 +929,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/v1alpha1_virtual_machine_pool_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolStatus.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_restore.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_restore.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineRestore.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_restore_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_restore_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineRestoreList.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_restore_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_restore_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineRestoreSpec.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_restore_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_restore_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineRestoreStatus.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_snapshot.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_snapshot.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineSnapshot.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_snapshot_content.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_snapshot_content.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineSnapshotContent.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_snapshot_content_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineSnapshotContentList.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_snapshot_content_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineSnapshotContentSpec.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_snapshot_content_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineSnapshotContentStatus.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_snapshot_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_snapshot_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineSnapshotList.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_snapshot_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_snapshot_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineSnapshotSpec.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_snapshot_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineSnapshotStatus.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_template_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_template_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineTemplateSpec.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_volume_backup.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_volume_backup.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VolumeBackup.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_volume_restore.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_volume_restore.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VolumeRestore.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_volume_snapshot_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_volume_snapshot_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VolumeSnapshotStatus.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_cpu_instancetype.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_cpu_instancetype.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1CPUInstancetype.md @@ -1002,6 +944,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/v1beta1_clock_preferences.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_clock_preferences.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1ClockPreferences.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1Condition.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_data_volume_blank_image.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_data_volume_blank_image.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DataVolumeBlankImage.md @@ -1047,6 +992,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/v1beta1_device_preferences.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_device_preferences.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1DevicePreferences.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_error.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_error.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1Error.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_feature_preferences.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_feature_preferences.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1FeaturePreferences.md @@ -1062,15 +1010,27 @@ 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/v1beta1_memory_preference_requirement.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_memory_preference_requirement.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1MemoryPreferenceRequirement.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_persistent_volume_claim.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_persistent_volume_claim.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1PersistentVolumeClaim.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_preference_requirements.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_preference_requirements.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1PreferenceRequirements.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_snapshot_volumes_lists.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_snapshot_volumes_lists.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1SnapshotVolumesLists.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_source_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_source_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1SourceSpec.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_spread_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_spread_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1SpreadOptions.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_storage_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_storage_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1StorageSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachine.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_cluster_instancetype.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_cluster_instancetype.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineClusterInstancetype.md @@ -1101,9 +1061,54 @@ 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/v1beta1_virtual_machine_preference_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_preference_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePreferenceSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_restore.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_restore.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineRestore.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_restore_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_restore_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineRestoreList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_restore_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_restore_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineRestoreSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_restore_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_restore_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineRestoreStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_snapshot.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_snapshot.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineSnapshot.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_snapshot_content.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_snapshot_content.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineSnapshotContent.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_snapshot_content_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_snapshot_content_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineSnapshotContentList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_snapshot_content_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_snapshot_content_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineSnapshotContentSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_snapshot_content_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_snapshot_content_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineSnapshotContentStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_snapshot_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_snapshot_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineSnapshotList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_snapshot_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_snapshot_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineSnapshotSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_snapshot_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_snapshot_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineSnapshotStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_volume_backup.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_volume_backup.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VolumeBackup.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_volume_preferences.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_volume_preferences.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VolumePreferences.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_volume_restore.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_volume_restore.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VolumeRestore.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_volume_snapshot_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_volume_snapshot_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VolumeSnapshotStatus.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_default_api.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/DefaultApi.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 2ea69218..f9272f88 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -292,16 +292,11 @@ from .models.v1_volume_status import V1VolumeStatus from .models.v1_watchdog import V1Watchdog from .models.v1alpha1_condition import V1alpha1Condition -from .models.v1alpha1_error import V1alpha1Error from .models.v1alpha1_migration_policy import V1alpha1MigrationPolicy from .models.v1alpha1_migration_policy_list import V1alpha1MigrationPolicyList from .models.v1alpha1_migration_policy_spec import V1alpha1MigrationPolicySpec from .models.v1alpha1_migration_policy_status import V1alpha1MigrationPolicyStatus -from .models.v1alpha1_persistent_volume_claim import V1alpha1PersistentVolumeClaim from .models.v1alpha1_selectors import V1alpha1Selectors -from .models.v1alpha1_snapshot_volumes_lists import V1alpha1SnapshotVolumesLists -from .models.v1alpha1_source_spec import V1alpha1SourceSpec -from .models.v1alpha1_virtual_machine import V1alpha1VirtualMachine from .models.v1alpha1_virtual_machine_clone import V1alpha1VirtualMachineClone from .models.v1alpha1_virtual_machine_clone_list import V1alpha1VirtualMachineCloneList from .models.v1alpha1_virtual_machine_clone_spec import V1alpha1VirtualMachineCloneSpec @@ -321,26 +316,12 @@ from .models.v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList from .models.v1alpha1_virtual_machine_pool_spec import V1alpha1VirtualMachinePoolSpec from .models.v1alpha1_virtual_machine_pool_status import V1alpha1VirtualMachinePoolStatus -from .models.v1alpha1_virtual_machine_restore import V1alpha1VirtualMachineRestore -from .models.v1alpha1_virtual_machine_restore_list import V1alpha1VirtualMachineRestoreList -from .models.v1alpha1_virtual_machine_restore_spec import V1alpha1VirtualMachineRestoreSpec -from .models.v1alpha1_virtual_machine_restore_status import V1alpha1VirtualMachineRestoreStatus -from .models.v1alpha1_virtual_machine_snapshot import V1alpha1VirtualMachineSnapshot -from .models.v1alpha1_virtual_machine_snapshot_content import V1alpha1VirtualMachineSnapshotContent -from .models.v1alpha1_virtual_machine_snapshot_content_list import V1alpha1VirtualMachineSnapshotContentList -from .models.v1alpha1_virtual_machine_snapshot_content_spec import V1alpha1VirtualMachineSnapshotContentSpec -from .models.v1alpha1_virtual_machine_snapshot_content_status import V1alpha1VirtualMachineSnapshotContentStatus -from .models.v1alpha1_virtual_machine_snapshot_list import V1alpha1VirtualMachineSnapshotList -from .models.v1alpha1_virtual_machine_snapshot_spec import V1alpha1VirtualMachineSnapshotSpec -from .models.v1alpha1_virtual_machine_snapshot_status import V1alpha1VirtualMachineSnapshotStatus from .models.v1alpha1_virtual_machine_template_spec import V1alpha1VirtualMachineTemplateSpec -from .models.v1alpha1_volume_backup import V1alpha1VolumeBackup -from .models.v1alpha1_volume_restore import V1alpha1VolumeRestore -from .models.v1alpha1_volume_snapshot_status import V1alpha1VolumeSnapshotStatus from .models.v1beta1_cpu_instancetype import V1beta1CPUInstancetype from .models.v1beta1_cpu_preference_requirement import V1beta1CPUPreferenceRequirement from .models.v1beta1_cpu_preferences import V1beta1CPUPreferences from .models.v1beta1_clock_preferences import V1beta1ClockPreferences +from .models.v1beta1_condition import V1beta1Condition from .models.v1beta1_data_volume_blank_image import V1beta1DataVolumeBlankImage from .models.v1beta1_data_volume_checkpoint import V1beta1DataVolumeCheckpoint from .models.v1beta1_data_volume_source import V1beta1DataVolumeSource @@ -356,14 +337,19 @@ from .models.v1beta1_data_volume_source_vddk import V1beta1DataVolumeSourceVDDK from .models.v1beta1_data_volume_spec import V1beta1DataVolumeSpec from .models.v1beta1_device_preferences import V1beta1DevicePreferences +from .models.v1beta1_error import V1beta1Error from .models.v1beta1_feature_preferences import V1beta1FeaturePreferences from .models.v1beta1_firmware_preferences import V1beta1FirmwarePreferences from .models.v1beta1_machine_preferences import V1beta1MachinePreferences from .models.v1beta1_memory_instancetype import V1beta1MemoryInstancetype from .models.v1beta1_memory_preference_requirement import V1beta1MemoryPreferenceRequirement +from .models.v1beta1_persistent_volume_claim import V1beta1PersistentVolumeClaim from .models.v1beta1_preference_requirements import V1beta1PreferenceRequirements +from .models.v1beta1_snapshot_volumes_lists import V1beta1SnapshotVolumesLists +from .models.v1beta1_source_spec import V1beta1SourceSpec from .models.v1beta1_spread_options import V1beta1SpreadOptions from .models.v1beta1_storage_spec import V1beta1StorageSpec +from .models.v1beta1_virtual_machine import V1beta1VirtualMachine from .models.v1beta1_virtual_machine_cluster_instancetype import V1beta1VirtualMachineClusterInstancetype from .models.v1beta1_virtual_machine_cluster_instancetype_list import V1beta1VirtualMachineClusterInstancetypeList from .models.v1beta1_virtual_machine_cluster_preference import V1beta1VirtualMachineClusterPreference @@ -374,7 +360,22 @@ from .models.v1beta1_virtual_machine_preference import V1beta1VirtualMachinePreference from .models.v1beta1_virtual_machine_preference_list import V1beta1VirtualMachinePreferenceList from .models.v1beta1_virtual_machine_preference_spec import V1beta1VirtualMachinePreferenceSpec +from .models.v1beta1_virtual_machine_restore import V1beta1VirtualMachineRestore +from .models.v1beta1_virtual_machine_restore_list import V1beta1VirtualMachineRestoreList +from .models.v1beta1_virtual_machine_restore_spec import V1beta1VirtualMachineRestoreSpec +from .models.v1beta1_virtual_machine_restore_status import V1beta1VirtualMachineRestoreStatus +from .models.v1beta1_virtual_machine_snapshot import V1beta1VirtualMachineSnapshot +from .models.v1beta1_virtual_machine_snapshot_content import V1beta1VirtualMachineSnapshotContent +from .models.v1beta1_virtual_machine_snapshot_content_list import V1beta1VirtualMachineSnapshotContentList +from .models.v1beta1_virtual_machine_snapshot_content_spec import V1beta1VirtualMachineSnapshotContentSpec +from .models.v1beta1_virtual_machine_snapshot_content_status import V1beta1VirtualMachineSnapshotContentStatus +from .models.v1beta1_virtual_machine_snapshot_list import V1beta1VirtualMachineSnapshotList +from .models.v1beta1_virtual_machine_snapshot_spec import V1beta1VirtualMachineSnapshotSpec +from .models.v1beta1_virtual_machine_snapshot_status import V1beta1VirtualMachineSnapshotStatus +from .models.v1beta1_volume_backup import V1beta1VolumeBackup from .models.v1beta1_volume_preferences import V1beta1VolumePreferences +from .models.v1beta1_volume_restore import V1beta1VolumeRestore +from .models.v1beta1_volume_snapshot_status import V1beta1VolumeSnapshotStatus # import apis into sdk package from .apis.default_api import DefaultApi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index ef087c78..ea979635 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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-206-g733602ac0/python' + self.user_agent = 'Swagger-Codegen/v1.3.0-alpha.0-222-g61685a12b/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 325017d6..df5ba882 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -1267,9 +1267,9 @@ def create_namespaced_virtual_machine_restore(self, body, namespace, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha1VirtualMachineRestore body: (required) + :param V1beta1VirtualMachineRestore body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1alpha1VirtualMachineRestore + :return: V1beta1VirtualMachineRestore If the method is called asynchronously, returns the request thread. """ @@ -1293,9 +1293,9 @@ def create_namespaced_virtual_machine_restore_with_http_info(self, body, namespa :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha1VirtualMachineRestore body: (required) + :param V1beta1VirtualMachineRestore body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1alpha1VirtualMachineRestore + :return: V1beta1VirtualMachineRestore If the method is called asynchronously, returns the request thread. """ @@ -1350,14 +1350,14 @@ def create_namespaced_virtual_machine_restore_with_http_info(self, body, namespa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores', 'POST', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineRestore', + response_type='V1beta1VirtualMachineRestore', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1378,9 +1378,9 @@ def create_namespaced_virtual_machine_snapshot(self, body, namespace, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha1VirtualMachineSnapshot body: (required) + :param V1beta1VirtualMachineSnapshot body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1alpha1VirtualMachineSnapshot + :return: V1beta1VirtualMachineSnapshot If the method is called asynchronously, returns the request thread. """ @@ -1404,9 +1404,9 @@ def create_namespaced_virtual_machine_snapshot_with_http_info(self, body, namesp :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha1VirtualMachineSnapshot body: (required) + :param V1beta1VirtualMachineSnapshot body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1alpha1VirtualMachineSnapshot + :return: V1beta1VirtualMachineSnapshot If the method is called asynchronously, returns the request thread. """ @@ -1461,14 +1461,14 @@ def create_namespaced_virtual_machine_snapshot_with_http_info(self, body, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots', 'POST', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshot', + response_type='V1beta1VirtualMachineSnapshot', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1489,9 +1489,9 @@ def create_namespaced_virtual_machine_snapshot_content(self, body, namespace, ** :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha1VirtualMachineSnapshotContent body: (required) + :param V1beta1VirtualMachineSnapshotContent body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1alpha1VirtualMachineSnapshotContent + :return: V1beta1VirtualMachineSnapshotContent If the method is called asynchronously, returns the request thread. """ @@ -1515,9 +1515,9 @@ def create_namespaced_virtual_machine_snapshot_content_with_http_info(self, body :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha1VirtualMachineSnapshotContent body: (required) + :param V1beta1VirtualMachineSnapshotContent body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1alpha1VirtualMachineSnapshotContent + :return: V1beta1VirtualMachineSnapshotContent If the method is called asynchronously, returns the request thread. """ @@ -1572,14 +1572,14 @@ def create_namespaced_virtual_machine_snapshot_content_with_http_info(self, body # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents', 'POST', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshotContent', + response_type='V1beta1VirtualMachineSnapshotContent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3384,7 +3384,7 @@ def delete_collection_namespaced_virtual_machine_restore_with_http_info(self, ** # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores', 'DELETE', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores', 'DELETE', path_params, query_params, header_params, @@ -3509,7 +3509,7 @@ def delete_collection_namespaced_virtual_machine_snapshot_with_http_info(self, * # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots', 'DELETE', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots', 'DELETE', path_params, query_params, header_params, @@ -3634,7 +3634,7 @@ def delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents', 'DELETE', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents', 'DELETE', path_params, query_params, header_params, @@ -5562,7 +5562,7 @@ def delete_namespaced_virtual_machine_restore_with_http_info(self, name, namespa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name}', 'DELETE', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name}', 'DELETE', path_params, query_params, header_params, @@ -5692,7 +5692,7 @@ def delete_namespaced_virtual_machine_snapshot_with_http_info(self, name, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name}', 'DELETE', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name}', 'DELETE', path_params, query_params, header_params, @@ -5822,7 +5822,7 @@ def delete_namespaced_virtual_machine_snapshot_content_with_http_info(self, name # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name}', 'DELETE', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name}', 'DELETE', path_params, query_params, header_params, @@ -7676,7 +7676,7 @@ def get_api_resources_pool_kubevirt_io_v1alpha1_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_resources_snapshot_kubevirt_io_v1alpha1(self, **kwargs): + def get_api_resources_snapshot_kubevirt_io_v1beta1(self, **kwargs): """ Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an @@ -7685,7 +7685,7 @@ def get_api_resources_snapshot_kubevirt_io_v1alpha1(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_snapshot_kubevirt_io_v1alpha1(callback=callback_function) + >>> thread = api.get_api_resources_snapshot_kubevirt_io_v1beta1(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7695,12 +7695,12 @@ def get_api_resources_snapshot_kubevirt_io_v1alpha1(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_resources_snapshot_kubevirt_io_v1alpha1_with_http_info(**kwargs) + return self.get_api_resources_snapshot_kubevirt_io_v1beta1_with_http_info(**kwargs) else: - (data) = self.get_api_resources_snapshot_kubevirt_io_v1alpha1_with_http_info(**kwargs) + (data) = self.get_api_resources_snapshot_kubevirt_io_v1beta1_with_http_info(**kwargs) return data - def get_api_resources_snapshot_kubevirt_io_v1alpha1_with_http_info(self, **kwargs): + def get_api_resources_snapshot_kubevirt_io_v1beta1_with_http_info(self, **kwargs): """ Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an @@ -7709,7 +7709,7 @@ def get_api_resources_snapshot_kubevirt_io_v1alpha1_with_http_info(self, **kwarg >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_snapshot_kubevirt_io_v1alpha1_with_http_info(callback=callback_function) + >>> thread = api.get_api_resources_snapshot_kubevirt_io_v1beta1_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7729,7 +7729,7 @@ def get_api_resources_snapshot_kubevirt_io_v1alpha1_with_http_info(self, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_resources_snapshot_kubevirt_io_v1alpha1" % key + " to method get_api_resources_snapshot_kubevirt_io_v1beta1" % key ) params[key] = val del params['kwargs'] @@ -7753,7 +7753,7 @@ def get_api_resources_snapshot_kubevirt_io_v1alpha1_with_http_info(self, **kwarg # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/', 'GET', path_params, query_params, header_params, @@ -9716,7 +9716,7 @@ def list_namespaced_virtual_machine_restore(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineRestoreList + :return: V1beta1VirtualMachineRestoreList If the method is called asynchronously, returns the request thread. """ @@ -9749,7 +9749,7 @@ def list_namespaced_virtual_machine_restore_with_http_info(self, namespace, **kw :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineRestoreList + :return: V1beta1VirtualMachineRestoreList If the method is called asynchronously, returns the request thread. """ @@ -9811,14 +9811,14 @@ def list_namespaced_virtual_machine_restore_with_http_info(self, namespace, **kw # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineRestoreList', + response_type='V1beta1VirtualMachineRestoreList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9848,7 +9848,7 @@ def list_namespaced_virtual_machine_snapshot(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotList + :return: V1beta1VirtualMachineSnapshotList If the method is called asynchronously, returns the request thread. """ @@ -9881,7 +9881,7 @@ def list_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, **k :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotList + :return: V1beta1VirtualMachineSnapshotList If the method is called asynchronously, returns the request thread. """ @@ -9943,14 +9943,14 @@ def list_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, **k # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshotList', + response_type='V1beta1VirtualMachineSnapshotList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9980,7 +9980,7 @@ def list_namespaced_virtual_machine_snapshot_content(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotContentList + :return: V1beta1VirtualMachineSnapshotContentList If the method is called asynchronously, returns the request thread. """ @@ -10013,7 +10013,7 @@ def list_namespaced_virtual_machine_snapshot_content_with_http_info(self, namesp :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotContentList + :return: V1beta1VirtualMachineSnapshotContentList If the method is called asynchronously, returns the request thread. """ @@ -10075,14 +10075,14 @@ def list_namespaced_virtual_machine_snapshot_content_with_http_info(self, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshotContentList', + response_type='V1beta1VirtualMachineSnapshotContentList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11611,7 +11611,7 @@ def list_virtual_machine_restore_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineRestoreList + :return: V1beta1VirtualMachineRestoreList If the method is called asynchronously, returns the request thread. """ @@ -11643,7 +11643,7 @@ def list_virtual_machine_restore_for_all_namespaces_with_http_info(self, **kwarg :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineRestoreList + :return: V1beta1VirtualMachineRestoreList If the method is called asynchronously, returns the request thread. """ @@ -11700,14 +11700,14 @@ def list_virtual_machine_restore_for_all_namespaces_with_http_info(self, **kwarg # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/virtualmachinerestores', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/virtualmachinerestores', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineRestoreList', + response_type='V1beta1VirtualMachineRestoreList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11736,7 +11736,7 @@ def list_virtual_machine_snapshot_content_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotContentList + :return: V1beta1VirtualMachineSnapshotContentList If the method is called asynchronously, returns the request thread. """ @@ -11768,7 +11768,7 @@ def list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(self :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotContentList + :return: V1beta1VirtualMachineSnapshotContentList If the method is called asynchronously, returns the request thread. """ @@ -11825,14 +11825,14 @@ def list_virtual_machine_snapshot_content_for_all_namespaces_with_http_info(self # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshotcontents', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/virtualmachinesnapshotcontents', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshotContentList', + response_type='V1beta1VirtualMachineSnapshotContentList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11861,7 +11861,7 @@ def list_virtual_machine_snapshot_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotList + :return: V1beta1VirtualMachineSnapshotList If the method is called asynchronously, returns the request thread. """ @@ -11893,7 +11893,7 @@ def list_virtual_machine_snapshot_for_all_namespaces_with_http_info(self, **kwar :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineSnapshotList + :return: V1beta1VirtualMachineSnapshotList If the method is called asynchronously, returns the request thread. """ @@ -11950,14 +11950,14 @@ def list_virtual_machine_snapshot_for_all_namespaces_with_http_info(self, **kwar # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/virtualmachinesnapshots', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/virtualmachinesnapshots', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshotList', + response_type='V1beta1VirtualMachineSnapshotList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13272,7 +13272,7 @@ def patch_namespaced_virtual_machine_restore(self, name, namespace, body, **kwar :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineRestore + :return: V1beta1VirtualMachineRestore If the method is called asynchronously, returns the request thread. """ @@ -13299,7 +13299,7 @@ def patch_namespaced_virtual_machine_restore_with_http_info(self, name, namespac :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineRestore + :return: V1beta1VirtualMachineRestore If the method is called asynchronously, returns the request thread. """ @@ -13359,14 +13359,14 @@ def patch_namespaced_virtual_machine_restore_with_http_info(self, name, namespac # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name}', 'PATCH', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineRestore', + response_type='V1beta1VirtualMachineRestore', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13390,7 +13390,7 @@ def patch_namespaced_virtual_machine_snapshot(self, name, namespace, body, **kwa :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineSnapshot + :return: V1beta1VirtualMachineSnapshot If the method is called asynchronously, returns the request thread. """ @@ -13417,7 +13417,7 @@ def patch_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespa :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineSnapshot + :return: V1beta1VirtualMachineSnapshot If the method is called asynchronously, returns the request thread. """ @@ -13477,14 +13477,14 @@ def patch_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name}', 'PATCH', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshot', + response_type='V1beta1VirtualMachineSnapshot', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13508,7 +13508,7 @@ def patch_namespaced_virtual_machine_snapshot_content(self, name, namespace, bod :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineSnapshotContent + :return: V1beta1VirtualMachineSnapshotContent If the method is called asynchronously, returns the request thread. """ @@ -13535,7 +13535,7 @@ def patch_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineSnapshotContent + :return: V1beta1VirtualMachineSnapshotContent If the method is called asynchronously, returns the request thread. """ @@ -13595,14 +13595,14 @@ def patch_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name}', 'PATCH', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshotContent', + response_type='V1beta1VirtualMachineSnapshotContent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -15218,7 +15218,7 @@ def read_namespaced_virtual_machine_restore(self, name, namespace, **kwargs): :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineRestore + :return: V1beta1VirtualMachineRestore If the method is called asynchronously, returns the request thread. """ @@ -15246,7 +15246,7 @@ def read_namespaced_virtual_machine_restore_with_http_info(self, name, namespace :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineRestore + :return: V1beta1VirtualMachineRestore If the method is called asynchronously, returns the request thread. """ @@ -15301,14 +15301,14 @@ def read_namespaced_virtual_machine_restore_with_http_info(self, name, namespace # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name}', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineRestore', + response_type='V1beta1VirtualMachineRestore', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -15333,7 +15333,7 @@ def read_namespaced_virtual_machine_snapshot(self, name, namespace, **kwargs): :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineSnapshot + :return: V1beta1VirtualMachineSnapshot If the method is called asynchronously, returns the request thread. """ @@ -15361,7 +15361,7 @@ def read_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespac :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineSnapshot + :return: V1beta1VirtualMachineSnapshot If the method is called asynchronously, returns the request thread. """ @@ -15416,14 +15416,14 @@ def read_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespac # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name}', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshot', + response_type='V1beta1VirtualMachineSnapshot', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -15448,7 +15448,7 @@ def read_namespaced_virtual_machine_snapshot_content(self, name, namespace, **kw :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineSnapshotContent + :return: V1beta1VirtualMachineSnapshotContent If the method is called asynchronously, returns the request thread. """ @@ -15476,7 +15476,7 @@ def read_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineSnapshotContent + :return: V1beta1VirtualMachineSnapshotContent If the method is called asynchronously, returns the request thread. """ @@ -15531,14 +15531,14 @@ def read_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name}', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshotContent', + response_type='V1beta1VirtualMachineSnapshotContent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -17176,8 +17176,8 @@ def replace_namespaced_virtual_machine_restore(self, name, namespace, body, **kw for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachineRestore body: (required) - :return: V1alpha1VirtualMachineRestore + :param V1beta1VirtualMachineRestore body: (required) + :return: V1beta1VirtualMachineRestore If the method is called asynchronously, returns the request thread. """ @@ -17203,8 +17203,8 @@ def replace_namespaced_virtual_machine_restore_with_http_info(self, name, namesp for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachineRestore body: (required) - :return: V1alpha1VirtualMachineRestore + :param V1beta1VirtualMachineRestore body: (required) + :return: V1beta1VirtualMachineRestore If the method is called asynchronously, returns the request thread. """ @@ -17264,14 +17264,14 @@ def replace_namespaced_virtual_machine_restore_with_http_info(self, name, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name}', 'PUT', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineRestore', + response_type='V1beta1VirtualMachineRestore', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -17294,8 +17294,8 @@ def replace_namespaced_virtual_machine_snapshot(self, name, namespace, body, **k for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachineSnapshot body: (required) - :return: V1alpha1VirtualMachineSnapshot + :param V1beta1VirtualMachineSnapshot body: (required) + :return: V1beta1VirtualMachineSnapshot If the method is called asynchronously, returns the request thread. """ @@ -17321,8 +17321,8 @@ def replace_namespaced_virtual_machine_snapshot_with_http_info(self, name, names for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachineSnapshot body: (required) - :return: V1alpha1VirtualMachineSnapshot + :param V1beta1VirtualMachineSnapshot body: (required) + :return: V1beta1VirtualMachineSnapshot If the method is called asynchronously, returns the request thread. """ @@ -17382,14 +17382,14 @@ def replace_namespaced_virtual_machine_snapshot_with_http_info(self, name, names # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name}', 'PUT', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshot', + response_type='V1beta1VirtualMachineSnapshot', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -17412,8 +17412,8 @@ def replace_namespaced_virtual_machine_snapshot_content(self, name, namespace, b for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachineSnapshotContent body: (required) - :return: V1alpha1VirtualMachineSnapshotContent + :param V1beta1VirtualMachineSnapshotContent body: (required) + :return: V1beta1VirtualMachineSnapshotContent If the method is called asynchronously, returns the request thread. """ @@ -17439,8 +17439,8 @@ def replace_namespaced_virtual_machine_snapshot_content_with_http_info(self, nam for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachineSnapshotContent body: (required) - :return: V1alpha1VirtualMachineSnapshotContent + :param V1beta1VirtualMachineSnapshotContent body: (required) + :return: V1beta1VirtualMachineSnapshotContent If the method is called asynchronously, returns the request thread. """ @@ -17500,14 +17500,14 @@ def replace_namespaced_virtual_machine_snapshot_content_with_http_info(self, nam # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name}', 'PUT', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineSnapshotContent', + response_type='V1beta1VirtualMachineSnapshotContent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -28201,7 +28201,7 @@ def watch_namespaced_virtual_machine_restore_with_http_info(self, namespace, **k # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinerestores', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinerestores', 'GET', path_params, query_params, header_params, @@ -28333,7 +28333,7 @@ def watch_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, ** # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinesnapshots', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinesnapshots', 'GET', path_params, query_params, header_params, @@ -28465,7 +28465,7 @@ def watch_namespaced_virtual_machine_snapshot_content_with_http_info(self, names # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinesnapshotcontents', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinesnapshotcontents', 'GET', path_params, query_params, header_params, @@ -30090,7 +30090,7 @@ def watch_virtual_machine_restore_list_for_all_namespaces_with_http_info(self, * # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinerestores', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/watch/virtualmachinerestores', 'GET', path_params, query_params, header_params, @@ -30215,7 +30215,7 @@ def watch_virtual_machine_snapshot_content_list_for_all_namespaces_with_http_inf # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshotcontents', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/watch/virtualmachinesnapshotcontents', 'GET', path_params, query_params, header_params, @@ -30340,7 +30340,7 @@ def watch_virtual_machine_snapshot_list_for_all_namespaces_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1alpha1/watch/virtualmachinesnapshots', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/watch/virtualmachinesnapshots', 'GET', path_params, query_params, header_params, diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index fc0d3c5c..385ecc4f 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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-206-g733602ac0".\ + "SDK Package Version: v1.3.0-alpha.0-222-g61685a12b".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 39210820..84d898fe 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -292,16 +292,11 @@ from .v1_volume_status import V1VolumeStatus from .v1_watchdog import V1Watchdog from .v1alpha1_condition import V1alpha1Condition -from .v1alpha1_error import V1alpha1Error from .v1alpha1_migration_policy import V1alpha1MigrationPolicy from .v1alpha1_migration_policy_list import V1alpha1MigrationPolicyList from .v1alpha1_migration_policy_spec import V1alpha1MigrationPolicySpec from .v1alpha1_migration_policy_status import V1alpha1MigrationPolicyStatus -from .v1alpha1_persistent_volume_claim import V1alpha1PersistentVolumeClaim from .v1alpha1_selectors import V1alpha1Selectors -from .v1alpha1_snapshot_volumes_lists import V1alpha1SnapshotVolumesLists -from .v1alpha1_source_spec import V1alpha1SourceSpec -from .v1alpha1_virtual_machine import V1alpha1VirtualMachine from .v1alpha1_virtual_machine_clone import V1alpha1VirtualMachineClone from .v1alpha1_virtual_machine_clone_list import V1alpha1VirtualMachineCloneList from .v1alpha1_virtual_machine_clone_spec import V1alpha1VirtualMachineCloneSpec @@ -321,26 +316,12 @@ from .v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList from .v1alpha1_virtual_machine_pool_spec import V1alpha1VirtualMachinePoolSpec from .v1alpha1_virtual_machine_pool_status import V1alpha1VirtualMachinePoolStatus -from .v1alpha1_virtual_machine_restore import V1alpha1VirtualMachineRestore -from .v1alpha1_virtual_machine_restore_list import V1alpha1VirtualMachineRestoreList -from .v1alpha1_virtual_machine_restore_spec import V1alpha1VirtualMachineRestoreSpec -from .v1alpha1_virtual_machine_restore_status import V1alpha1VirtualMachineRestoreStatus -from .v1alpha1_virtual_machine_snapshot import V1alpha1VirtualMachineSnapshot -from .v1alpha1_virtual_machine_snapshot_content import V1alpha1VirtualMachineSnapshotContent -from .v1alpha1_virtual_machine_snapshot_content_list import V1alpha1VirtualMachineSnapshotContentList -from .v1alpha1_virtual_machine_snapshot_content_spec import V1alpha1VirtualMachineSnapshotContentSpec -from .v1alpha1_virtual_machine_snapshot_content_status import V1alpha1VirtualMachineSnapshotContentStatus -from .v1alpha1_virtual_machine_snapshot_list import V1alpha1VirtualMachineSnapshotList -from .v1alpha1_virtual_machine_snapshot_spec import V1alpha1VirtualMachineSnapshotSpec -from .v1alpha1_virtual_machine_snapshot_status import V1alpha1VirtualMachineSnapshotStatus from .v1alpha1_virtual_machine_template_spec import V1alpha1VirtualMachineTemplateSpec -from .v1alpha1_volume_backup import V1alpha1VolumeBackup -from .v1alpha1_volume_restore import V1alpha1VolumeRestore -from .v1alpha1_volume_snapshot_status import V1alpha1VolumeSnapshotStatus from .v1beta1_cpu_instancetype import V1beta1CPUInstancetype from .v1beta1_cpu_preference_requirement import V1beta1CPUPreferenceRequirement from .v1beta1_cpu_preferences import V1beta1CPUPreferences from .v1beta1_clock_preferences import V1beta1ClockPreferences +from .v1beta1_condition import V1beta1Condition from .v1beta1_data_volume_blank_image import V1beta1DataVolumeBlankImage from .v1beta1_data_volume_checkpoint import V1beta1DataVolumeCheckpoint from .v1beta1_data_volume_source import V1beta1DataVolumeSource @@ -356,14 +337,19 @@ from .v1beta1_data_volume_source_vddk import V1beta1DataVolumeSourceVDDK from .v1beta1_data_volume_spec import V1beta1DataVolumeSpec from .v1beta1_device_preferences import V1beta1DevicePreferences +from .v1beta1_error import V1beta1Error from .v1beta1_feature_preferences import V1beta1FeaturePreferences from .v1beta1_firmware_preferences import V1beta1FirmwarePreferences from .v1beta1_machine_preferences import V1beta1MachinePreferences from .v1beta1_memory_instancetype import V1beta1MemoryInstancetype from .v1beta1_memory_preference_requirement import V1beta1MemoryPreferenceRequirement +from .v1beta1_persistent_volume_claim import V1beta1PersistentVolumeClaim from .v1beta1_preference_requirements import V1beta1PreferenceRequirements +from .v1beta1_snapshot_volumes_lists import V1beta1SnapshotVolumesLists +from .v1beta1_source_spec import V1beta1SourceSpec from .v1beta1_spread_options import V1beta1SpreadOptions from .v1beta1_storage_spec import V1beta1StorageSpec +from .v1beta1_virtual_machine import V1beta1VirtualMachine from .v1beta1_virtual_machine_cluster_instancetype import V1beta1VirtualMachineClusterInstancetype from .v1beta1_virtual_machine_cluster_instancetype_list import V1beta1VirtualMachineClusterInstancetypeList from .v1beta1_virtual_machine_cluster_preference import V1beta1VirtualMachineClusterPreference @@ -374,6 +360,21 @@ from .v1beta1_virtual_machine_preference import V1beta1VirtualMachinePreference from .v1beta1_virtual_machine_preference_list import V1beta1VirtualMachinePreferenceList from .v1beta1_virtual_machine_preference_spec import V1beta1VirtualMachinePreferenceSpec +from .v1beta1_virtual_machine_restore import V1beta1VirtualMachineRestore +from .v1beta1_virtual_machine_restore_list import V1beta1VirtualMachineRestoreList +from .v1beta1_virtual_machine_restore_spec import V1beta1VirtualMachineRestoreSpec +from .v1beta1_virtual_machine_restore_status import V1beta1VirtualMachineRestoreStatus +from .v1beta1_virtual_machine_snapshot import V1beta1VirtualMachineSnapshot +from .v1beta1_virtual_machine_snapshot_content import V1beta1VirtualMachineSnapshotContent +from .v1beta1_virtual_machine_snapshot_content_list import V1beta1VirtualMachineSnapshotContentList +from .v1beta1_virtual_machine_snapshot_content_spec import V1beta1VirtualMachineSnapshotContentSpec +from .v1beta1_virtual_machine_snapshot_content_status import V1beta1VirtualMachineSnapshotContentStatus +from .v1beta1_virtual_machine_snapshot_list import V1beta1VirtualMachineSnapshotList +from .v1beta1_virtual_machine_snapshot_spec import V1beta1VirtualMachineSnapshotSpec +from .v1beta1_virtual_machine_snapshot_status import V1beta1VirtualMachineSnapshotStatus +from .v1beta1_volume_backup import V1beta1VolumeBackup from .v1beta1_volume_preferences import V1beta1VolumePreferences +from .v1beta1_volume_restore import V1beta1VolumeRestore +from .v1beta1_volume_snapshot_status import V1beta1VolumeSnapshotStatus from .v1_interface_bridge import V1InterfaceBridge from .v1_interface_slirp import V1InterfaceSlirp diff --git a/kubevirt/models/v1beta1_condition.py b/kubevirt/models/v1beta1_condition.py new file mode 100644 index 00000000..98e8e748 --- /dev/null +++ b/kubevirt/models/v1beta1_condition.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1Condition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + attribute_map = { + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + def __init__(self, message=None, reason=None, status='', type=''): + """ + V1beta1Condition - a model defined in Swagger + """ + + self._message = None + self._reason = None + self._status = None + self._type = None + + if message is not None: + self.message = message + if reason is not None: + self.reason = reason + self.status = status + self.type = type + + @property + def message(self): + """ + Gets the message of this V1beta1Condition. + + :return: The message of this V1beta1Condition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1beta1Condition. + + :param message: The message of this V1beta1Condition. + :type: str + """ + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1beta1Condition. + + :return: The reason of this V1beta1Condition. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1beta1Condition. + + :param reason: The reason of this V1beta1Condition. + :type: str + """ + + self._reason = reason + + @property + def status(self): + """ + Gets the status of this V1beta1Condition. + + :return: The status of this V1beta1Condition. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1beta1Condition. + + :param status: The status of this V1beta1Condition. + :type: str + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def type(self): + """ + Gets the type of this V1beta1Condition. + + :return: The type of this V1beta1Condition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1beta1Condition. + + :param type: The type of this V1beta1Condition. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1beta1Condition): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_error.py b/kubevirt/models/v1beta1_error.py similarity index 85% rename from kubevirt/models/v1alpha1_error.py rename to kubevirt/models/v1beta1_error.py index dcc618c6..8eba9a10 100644 --- a/kubevirt/models/v1alpha1_error.py +++ b/kubevirt/models/v1beta1_error.py @@ -16,7 +16,7 @@ import re -class V1alpha1Error(object): +class V1beta1Error(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class V1alpha1Error(object): def __init__(self, message=None, time=None): """ - V1alpha1Error - a model defined in Swagger + V1beta1Error - a model defined in Swagger """ self._message = None @@ -56,9 +56,9 @@ def __init__(self, message=None, time=None): @property def message(self): """ - Gets the message of this V1alpha1Error. + Gets the message of this V1beta1Error. - :return: The message of this V1alpha1Error. + :return: The message of this V1beta1Error. :rtype: str """ return self._message @@ -66,9 +66,9 @@ def message(self): @message.setter def message(self, message): """ - Sets the message of this V1alpha1Error. + Sets the message of this V1beta1Error. - :param message: The message of this V1alpha1Error. + :param message: The message of this V1beta1Error. :type: str """ @@ -77,9 +77,9 @@ def message(self, message): @property def time(self): """ - Gets the time of this V1alpha1Error. + Gets the time of this V1beta1Error. - :return: The time of this V1alpha1Error. + :return: The time of this V1beta1Error. :rtype: K8sIoApimachineryPkgApisMetaV1Time """ return self._time @@ -87,9 +87,9 @@ def time(self): @time.setter def time(self, time): """ - Sets the time of this V1alpha1Error. + Sets the time of this V1beta1Error. - :param time: The time of this V1alpha1Error. + :param time: The time of this V1beta1Error. :type: K8sIoApimachineryPkgApisMetaV1Time """ @@ -137,7 +137,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1Error): + if not isinstance(other, V1beta1Error): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_persistent_volume_claim.py b/kubevirt/models/v1beta1_persistent_volume_claim.py similarity index 84% rename from kubevirt/models/v1alpha1_persistent_volume_claim.py rename to kubevirt/models/v1beta1_persistent_volume_claim.py index d2985adf..0b47a74a 100644 --- a/kubevirt/models/v1alpha1_persistent_volume_claim.py +++ b/kubevirt/models/v1beta1_persistent_volume_claim.py @@ -16,7 +16,7 @@ import re -class V1alpha1PersistentVolumeClaim(object): +class V1beta1PersistentVolumeClaim(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class V1alpha1PersistentVolumeClaim(object): def __init__(self, metadata=None, spec=None): """ - V1alpha1PersistentVolumeClaim - a model defined in Swagger + V1beta1PersistentVolumeClaim - a model defined in Swagger """ self._metadata = None @@ -56,10 +56,10 @@ def __init__(self, metadata=None, spec=None): @property def metadata(self): """ - Gets the metadata of this V1alpha1PersistentVolumeClaim. + Gets the metadata of this V1beta1PersistentVolumeClaim. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :return: The metadata of this V1alpha1PersistentVolumeClaim. + :return: The metadata of this V1beta1PersistentVolumeClaim. :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -67,10 +67,10 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1PersistentVolumeClaim. + Sets the metadata of this V1beta1PersistentVolumeClaim. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param metadata: The metadata of this V1alpha1PersistentVolumeClaim. + :param metadata: The metadata of this V1beta1PersistentVolumeClaim. :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ @@ -79,10 +79,10 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1alpha1PersistentVolumeClaim. + Gets the spec of this V1beta1PersistentVolumeClaim. Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - :return: The spec of this V1alpha1PersistentVolumeClaim. + :return: The spec of this V1beta1PersistentVolumeClaim. :rtype: K8sIoApiCoreV1PersistentVolumeClaimSpec """ return self._spec @@ -90,10 +90,10 @@ def spec(self): @spec.setter def spec(self, spec): """ - Sets the spec of this V1alpha1PersistentVolumeClaim. + Sets the spec of this V1beta1PersistentVolumeClaim. Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - :param spec: The spec of this V1alpha1PersistentVolumeClaim. + :param spec: The spec of this V1beta1PersistentVolumeClaim. :type: K8sIoApiCoreV1PersistentVolumeClaimSpec """ @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1PersistentVolumeClaim): + if not isinstance(other, V1beta1PersistentVolumeClaim): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_snapshot_volumes_lists.py b/kubevirt/models/v1beta1_snapshot_volumes_lists.py similarity index 83% rename from kubevirt/models/v1alpha1_snapshot_volumes_lists.py rename to kubevirt/models/v1beta1_snapshot_volumes_lists.py index 35a25f56..590ea408 100644 --- a/kubevirt/models/v1alpha1_snapshot_volumes_lists.py +++ b/kubevirt/models/v1beta1_snapshot_volumes_lists.py @@ -16,7 +16,7 @@ import re -class V1alpha1SnapshotVolumesLists(object): +class V1beta1SnapshotVolumesLists(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class V1alpha1SnapshotVolumesLists(object): def __init__(self, excluded_volumes=None, included_volumes=None): """ - V1alpha1SnapshotVolumesLists - a model defined in Swagger + V1beta1SnapshotVolumesLists - a model defined in Swagger """ self._excluded_volumes = None @@ -56,9 +56,9 @@ def __init__(self, excluded_volumes=None, included_volumes=None): @property def excluded_volumes(self): """ - Gets the excluded_volumes of this V1alpha1SnapshotVolumesLists. + Gets the excluded_volumes of this V1beta1SnapshotVolumesLists. - :return: The excluded_volumes of this V1alpha1SnapshotVolumesLists. + :return: The excluded_volumes of this V1beta1SnapshotVolumesLists. :rtype: list[str] """ return self._excluded_volumes @@ -66,9 +66,9 @@ def excluded_volumes(self): @excluded_volumes.setter def excluded_volumes(self, excluded_volumes): """ - Sets the excluded_volumes of this V1alpha1SnapshotVolumesLists. + Sets the excluded_volumes of this V1beta1SnapshotVolumesLists. - :param excluded_volumes: The excluded_volumes of this V1alpha1SnapshotVolumesLists. + :param excluded_volumes: The excluded_volumes of this V1beta1SnapshotVolumesLists. :type: list[str] """ @@ -77,9 +77,9 @@ def excluded_volumes(self, excluded_volumes): @property def included_volumes(self): """ - Gets the included_volumes of this V1alpha1SnapshotVolumesLists. + Gets the included_volumes of this V1beta1SnapshotVolumesLists. - :return: The included_volumes of this V1alpha1SnapshotVolumesLists. + :return: The included_volumes of this V1beta1SnapshotVolumesLists. :rtype: list[str] """ return self._included_volumes @@ -87,9 +87,9 @@ def included_volumes(self): @included_volumes.setter def included_volumes(self, included_volumes): """ - Sets the included_volumes of this V1alpha1SnapshotVolumesLists. + Sets the included_volumes of this V1beta1SnapshotVolumesLists. - :param included_volumes: The included_volumes of this V1alpha1SnapshotVolumesLists. + :param included_volumes: The included_volumes of this V1beta1SnapshotVolumesLists. :type: list[str] """ @@ -137,7 +137,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1SnapshotVolumesLists): + if not isinstance(other, V1beta1SnapshotVolumesLists): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_source_spec.py b/kubevirt/models/v1beta1_source_spec.py similarity index 83% rename from kubevirt/models/v1alpha1_source_spec.py rename to kubevirt/models/v1beta1_source_spec.py index 7a886390..ab26d23b 100644 --- a/kubevirt/models/v1alpha1_source_spec.py +++ b/kubevirt/models/v1beta1_source_spec.py @@ -16,7 +16,7 @@ import re -class V1alpha1SourceSpec(object): +class V1beta1SourceSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,7 +31,7 @@ class V1alpha1SourceSpec(object): and the value is json key in definition. """ swagger_types = { - 'virtual_machine': 'V1alpha1VirtualMachine' + 'virtual_machine': 'V1beta1VirtualMachine' } attribute_map = { @@ -40,7 +40,7 @@ class V1alpha1SourceSpec(object): def __init__(self, virtual_machine=None): """ - V1alpha1SourceSpec - a model defined in Swagger + V1beta1SourceSpec - a model defined in Swagger """ self._virtual_machine = None @@ -51,20 +51,20 @@ def __init__(self, virtual_machine=None): @property def virtual_machine(self): """ - Gets the virtual_machine of this V1alpha1SourceSpec. + Gets the virtual_machine of this V1beta1SourceSpec. - :return: The virtual_machine of this V1alpha1SourceSpec. - :rtype: V1alpha1VirtualMachine + :return: The virtual_machine of this V1beta1SourceSpec. + :rtype: V1beta1VirtualMachine """ return self._virtual_machine @virtual_machine.setter def virtual_machine(self, virtual_machine): """ - Sets the virtual_machine of this V1alpha1SourceSpec. + Sets the virtual_machine of this V1beta1SourceSpec. - :param virtual_machine: The virtual_machine of this V1alpha1SourceSpec. - :type: V1alpha1VirtualMachine + :param virtual_machine: The virtual_machine of this V1beta1SourceSpec. + :type: V1beta1VirtualMachine """ self._virtual_machine = virtual_machine @@ -111,7 +111,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1SourceSpec): + if not isinstance(other, V1beta1SourceSpec): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine.py b/kubevirt/models/v1beta1_virtual_machine.py similarity index 82% rename from kubevirt/models/v1alpha1_virtual_machine.py rename to kubevirt/models/v1beta1_virtual_machine.py index 687290d0..700103e7 100644 --- a/kubevirt/models/v1alpha1_virtual_machine.py +++ b/kubevirt/models/v1beta1_virtual_machine.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachine(object): +class V1beta1VirtualMachine(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -44,7 +44,7 @@ class V1alpha1VirtualMachine(object): def __init__(self, metadata=None, spec=None, status=None): """ - V1alpha1VirtualMachine - a model defined in Swagger + V1beta1VirtualMachine - a model defined in Swagger """ self._metadata = None @@ -61,9 +61,9 @@ def __init__(self, metadata=None, spec=None, status=None): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachine. + Gets the metadata of this V1beta1VirtualMachine. - :return: The metadata of this V1alpha1VirtualMachine. + :return: The metadata of this V1beta1VirtualMachine. :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -71,9 +71,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachine. + Sets the metadata of this V1beta1VirtualMachine. - :param metadata: The metadata of this V1alpha1VirtualMachine. + :param metadata: The metadata of this V1beta1VirtualMachine. :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ @@ -82,10 +82,10 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1alpha1VirtualMachine. + Gets the spec of this V1beta1VirtualMachine. VirtualMachineSpec contains the VirtualMachine specification. - :return: The spec of this V1alpha1VirtualMachine. + :return: The spec of this V1beta1VirtualMachine. :rtype: V1VirtualMachineSpec """ return self._spec @@ -93,10 +93,10 @@ def spec(self): @spec.setter def spec(self, spec): """ - Sets the spec of this V1alpha1VirtualMachine. + Sets the spec of this V1beta1VirtualMachine. VirtualMachineSpec contains the VirtualMachine specification. - :param spec: The spec of this V1alpha1VirtualMachine. + :param spec: The spec of this V1beta1VirtualMachine. :type: V1VirtualMachineSpec """ @@ -105,10 +105,10 @@ def spec(self, spec): @property def status(self): """ - Gets the status of this V1alpha1VirtualMachine. + Gets the status of this V1beta1VirtualMachine. Status holds the current state of the controller and brief information about its associated VirtualMachineInstance - :return: The status of this V1alpha1VirtualMachine. + :return: The status of this V1beta1VirtualMachine. :rtype: V1VirtualMachineStatus """ return self._status @@ -116,10 +116,10 @@ def status(self): @status.setter def status(self, status): """ - Sets the status of this V1alpha1VirtualMachine. + Sets the status of this V1beta1VirtualMachine. Status holds the current state of the controller and brief information about its associated VirtualMachineInstance - :param status: The status of this V1alpha1VirtualMachine. + :param status: The status of this V1beta1VirtualMachine. :type: V1VirtualMachineStatus """ @@ -167,7 +167,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachine): + if not isinstance(other, V1beta1VirtualMachine): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_restore.py b/kubevirt/models/v1beta1_virtual_machine_restore.py similarity index 75% rename from kubevirt/models/v1alpha1_virtual_machine_restore.py rename to kubevirt/models/v1beta1_virtual_machine_restore.py index 186a4417..9d047c97 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_restore.py +++ b/kubevirt/models/v1beta1_virtual_machine_restore.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineRestore(object): +class V1beta1VirtualMachineRestore(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -34,8 +34,8 @@ class V1alpha1VirtualMachineRestore(object): 'api_version': 'str', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', - 'spec': 'V1alpha1VirtualMachineRestoreSpec', - 'status': 'V1alpha1VirtualMachineRestoreStatus' + 'spec': 'V1beta1VirtualMachineRestoreSpec', + 'status': 'V1beta1VirtualMachineRestoreStatus' } attribute_map = { @@ -48,7 +48,7 @@ class V1alpha1VirtualMachineRestore(object): def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): """ - V1alpha1VirtualMachineRestore - a model defined in Swagger + V1beta1VirtualMachineRestore - a model defined in Swagger """ self._api_version = None @@ -70,10 +70,10 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status @property def api_version(self): """ - Gets the api_version of this V1alpha1VirtualMachineRestore. + Gets the api_version of this V1beta1VirtualMachineRestore. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha1VirtualMachineRestore. + :return: The api_version of this V1beta1VirtualMachineRestore. :rtype: str """ return self._api_version @@ -81,10 +81,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha1VirtualMachineRestore. + Sets the api_version of this V1beta1VirtualMachineRestore. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha1VirtualMachineRestore. + :param api_version: The api_version of this V1beta1VirtualMachineRestore. :type: str """ @@ -93,10 +93,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V1alpha1VirtualMachineRestore. + Gets the kind of this V1beta1VirtualMachineRestore. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha1VirtualMachineRestore. + :return: The kind of this V1beta1VirtualMachineRestore. :rtype: str """ return self._kind @@ -104,10 +104,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha1VirtualMachineRestore. + Sets the kind of this V1beta1VirtualMachineRestore. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha1VirtualMachineRestore. + :param kind: The kind of this V1beta1VirtualMachineRestore. :type: str """ @@ -116,9 +116,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachineRestore. + Gets the metadata of this V1beta1VirtualMachineRestore. - :return: The metadata of this V1alpha1VirtualMachineRestore. + :return: The metadata of this V1beta1VirtualMachineRestore. :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -126,9 +126,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachineRestore. + Sets the metadata of this V1beta1VirtualMachineRestore. - :param metadata: The metadata of this V1alpha1VirtualMachineRestore. + :param metadata: The metadata of this V1beta1VirtualMachineRestore. :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ @@ -137,20 +137,20 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1alpha1VirtualMachineRestore. + Gets the spec of this V1beta1VirtualMachineRestore. - :return: The spec of this V1alpha1VirtualMachineRestore. - :rtype: V1alpha1VirtualMachineRestoreSpec + :return: The spec of this V1beta1VirtualMachineRestore. + :rtype: V1beta1VirtualMachineRestoreSpec """ return self._spec @spec.setter def spec(self, spec): """ - Sets the spec of this V1alpha1VirtualMachineRestore. + Sets the spec of this V1beta1VirtualMachineRestore. - :param spec: The spec of this V1alpha1VirtualMachineRestore. - :type: V1alpha1VirtualMachineRestoreSpec + :param spec: The spec of this V1beta1VirtualMachineRestore. + :type: V1beta1VirtualMachineRestoreSpec """ if spec is None: raise ValueError("Invalid value for `spec`, must not be `None`") @@ -160,20 +160,20 @@ def spec(self, spec): @property def status(self): """ - Gets the status of this V1alpha1VirtualMachineRestore. + Gets the status of this V1beta1VirtualMachineRestore. - :return: The status of this V1alpha1VirtualMachineRestore. - :rtype: V1alpha1VirtualMachineRestoreStatus + :return: The status of this V1beta1VirtualMachineRestore. + :rtype: V1beta1VirtualMachineRestoreStatus """ return self._status @status.setter def status(self, status): """ - Sets the status of this V1alpha1VirtualMachineRestore. + Sets the status of this V1beta1VirtualMachineRestore. - :param status: The status of this V1alpha1VirtualMachineRestore. - :type: V1alpha1VirtualMachineRestoreStatus + :param status: The status of this V1beta1VirtualMachineRestore. + :type: V1beta1VirtualMachineRestoreStatus """ self._status = status @@ -220,7 +220,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineRestore): + if not isinstance(other, V1beta1VirtualMachineRestore): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_list.py b/kubevirt/models/v1beta1_virtual_machine_restore_list.py similarity index 77% rename from kubevirt/models/v1alpha1_virtual_machine_snapshot_list.py rename to kubevirt/models/v1beta1_virtual_machine_restore_list.py index a31d4897..50b2c8c6 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_snapshot_list.py +++ b/kubevirt/models/v1beta1_virtual_machine_restore_list.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineSnapshotList(object): +class V1beta1VirtualMachineRestoreList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class V1alpha1VirtualMachineSnapshotList(object): """ swagger_types = { 'api_version': 'str', - 'items': 'list[V1alpha1VirtualMachineSnapshot]', + 'items': 'list[V1beta1VirtualMachineRestore]', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' } @@ -46,7 +46,7 @@ class V1alpha1VirtualMachineSnapshotList(object): def __init__(self, api_version=None, items=None, kind=None, metadata=None): """ - V1alpha1VirtualMachineSnapshotList - a model defined in Swagger + V1beta1VirtualMachineRestoreList - a model defined in Swagger """ self._api_version = None @@ -64,10 +64,10 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): @property def api_version(self): """ - Gets the api_version of this V1alpha1VirtualMachineSnapshotList. + Gets the api_version of this V1beta1VirtualMachineRestoreList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha1VirtualMachineSnapshotList. + :return: The api_version of this V1beta1VirtualMachineRestoreList. :rtype: str """ return self._api_version @@ -75,10 +75,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha1VirtualMachineSnapshotList. + Sets the api_version of this V1beta1VirtualMachineRestoreList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha1VirtualMachineSnapshotList. + :param api_version: The api_version of this V1beta1VirtualMachineRestoreList. :type: str """ @@ -87,20 +87,20 @@ def api_version(self, api_version): @property def items(self): """ - Gets the items of this V1alpha1VirtualMachineSnapshotList. + Gets the items of this V1beta1VirtualMachineRestoreList. - :return: The items of this V1alpha1VirtualMachineSnapshotList. - :rtype: list[V1alpha1VirtualMachineSnapshot] + :return: The items of this V1beta1VirtualMachineRestoreList. + :rtype: list[V1beta1VirtualMachineRestore] """ return self._items @items.setter def items(self, items): """ - Sets the items of this V1alpha1VirtualMachineSnapshotList. + Sets the items of this V1beta1VirtualMachineRestoreList. - :param items: The items of this V1alpha1VirtualMachineSnapshotList. - :type: list[V1alpha1VirtualMachineSnapshot] + :param items: The items of this V1beta1VirtualMachineRestoreList. + :type: list[V1beta1VirtualMachineRestore] """ if items is None: raise ValueError("Invalid value for `items`, must not be `None`") @@ -110,10 +110,10 @@ def items(self, items): @property def kind(self): """ - Gets the kind of this V1alpha1VirtualMachineSnapshotList. + Gets the kind of this V1beta1VirtualMachineRestoreList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha1VirtualMachineSnapshotList. + :return: The kind of this V1beta1VirtualMachineRestoreList. :rtype: str """ return self._kind @@ -121,10 +121,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha1VirtualMachineSnapshotList. + Sets the kind of this V1beta1VirtualMachineRestoreList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha1VirtualMachineSnapshotList. + :param kind: The kind of this V1beta1VirtualMachineRestoreList. :type: str """ @@ -133,9 +133,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachineSnapshotList. + Gets the metadata of this V1beta1VirtualMachineRestoreList. - :return: The metadata of this V1alpha1VirtualMachineSnapshotList. + :return: The metadata of this V1beta1VirtualMachineRestoreList. :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @@ -143,9 +143,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachineSnapshotList. + Sets the metadata of this V1beta1VirtualMachineRestoreList. - :param metadata: The metadata of this V1alpha1VirtualMachineSnapshotList. + :param metadata: The metadata of this V1beta1VirtualMachineRestoreList. :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ if metadata is None: @@ -195,7 +195,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineSnapshotList): + if not isinstance(other, V1beta1VirtualMachineRestoreList): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_restore_spec.py b/kubevirt/models/v1beta1_virtual_machine_restore_spec.py similarity index 81% rename from kubevirt/models/v1alpha1_virtual_machine_restore_spec.py rename to kubevirt/models/v1beta1_virtual_machine_restore_spec.py index 172221b1..acd397cf 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_restore_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_restore_spec.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineRestoreSpec(object): +class V1beta1VirtualMachineRestoreSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -44,7 +44,7 @@ class V1alpha1VirtualMachineRestoreSpec(object): def __init__(self, patches=None, target=None, virtual_machine_snapshot_name=''): """ - V1alpha1VirtualMachineRestoreSpec - a model defined in Swagger + V1beta1VirtualMachineRestoreSpec - a model defined in Swagger """ self._patches = None @@ -59,10 +59,10 @@ def __init__(self, patches=None, target=None, virtual_machine_snapshot_name=''): @property def patches(self): """ - Gets the patches of this V1alpha1VirtualMachineRestoreSpec. + Gets the patches of this V1beta1VirtualMachineRestoreSpec. 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\"} - :return: The patches of this V1alpha1VirtualMachineRestoreSpec. + :return: The patches of this V1beta1VirtualMachineRestoreSpec. :rtype: list[str] """ return self._patches @@ -70,10 +70,10 @@ def patches(self): @patches.setter def patches(self, patches): """ - Sets the patches of this V1alpha1VirtualMachineRestoreSpec. + Sets the patches of this V1beta1VirtualMachineRestoreSpec. 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\"} - :param patches: The patches of this V1alpha1VirtualMachineRestoreSpec. + :param patches: The patches of this V1beta1VirtualMachineRestoreSpec. :type: list[str] """ @@ -82,10 +82,10 @@ def patches(self, patches): @property def target(self): """ - Gets the target of this V1alpha1VirtualMachineRestoreSpec. + Gets the target of this V1beta1VirtualMachineRestoreSpec. initially only VirtualMachine type supported - :return: The target of this V1alpha1VirtualMachineRestoreSpec. + :return: The target of this V1beta1VirtualMachineRestoreSpec. :rtype: K8sIoApiCoreV1TypedLocalObjectReference """ return self._target @@ -93,10 +93,10 @@ def target(self): @target.setter def target(self, target): """ - Sets the target of this V1alpha1VirtualMachineRestoreSpec. + Sets the target of this V1beta1VirtualMachineRestoreSpec. initially only VirtualMachine type supported - :param target: The target of this V1alpha1VirtualMachineRestoreSpec. + :param target: The target of this V1beta1VirtualMachineRestoreSpec. :type: K8sIoApiCoreV1TypedLocalObjectReference """ if target is None: @@ -107,9 +107,9 @@ def target(self, target): @property def virtual_machine_snapshot_name(self): """ - Gets the virtual_machine_snapshot_name of this V1alpha1VirtualMachineRestoreSpec. + Gets the virtual_machine_snapshot_name of this V1beta1VirtualMachineRestoreSpec. - :return: The virtual_machine_snapshot_name of this V1alpha1VirtualMachineRestoreSpec. + :return: The virtual_machine_snapshot_name of this V1beta1VirtualMachineRestoreSpec. :rtype: str """ return self._virtual_machine_snapshot_name @@ -117,9 +117,9 @@ def virtual_machine_snapshot_name(self): @virtual_machine_snapshot_name.setter def virtual_machine_snapshot_name(self, virtual_machine_snapshot_name): """ - Sets the virtual_machine_snapshot_name of this V1alpha1VirtualMachineRestoreSpec. + Sets the virtual_machine_snapshot_name of this V1beta1VirtualMachineRestoreSpec. - :param virtual_machine_snapshot_name: The virtual_machine_snapshot_name of this V1alpha1VirtualMachineRestoreSpec. + :param virtual_machine_snapshot_name: The virtual_machine_snapshot_name of this V1beta1VirtualMachineRestoreSpec. :type: str """ if virtual_machine_snapshot_name is None: @@ -169,7 +169,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineRestoreSpec): + if not isinstance(other, V1beta1VirtualMachineRestoreSpec): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_restore_status.py b/kubevirt/models/v1beta1_virtual_machine_restore_status.py similarity index 70% rename from kubevirt/models/v1alpha1_virtual_machine_restore_status.py rename to kubevirt/models/v1beta1_virtual_machine_restore_status.py index 0ae815fb..7bbc0644 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_restore_status.py +++ b/kubevirt/models/v1beta1_virtual_machine_restore_status.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineRestoreStatus(object): +class V1beta1VirtualMachineRestoreStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,10 +32,10 @@ class V1alpha1VirtualMachineRestoreStatus(object): """ swagger_types = { 'complete': 'bool', - 'conditions': 'list[V1alpha1Condition]', + 'conditions': 'list[V1beta1Condition]', 'deleted_data_volumes': 'list[str]', 'restore_time': 'K8sIoApimachineryPkgApisMetaV1Time', - 'restores': 'list[V1alpha1VolumeRestore]' + 'restores': 'list[V1beta1VolumeRestore]' } attribute_map = { @@ -48,7 +48,7 @@ class V1alpha1VirtualMachineRestoreStatus(object): def __init__(self, complete=None, conditions=None, deleted_data_volumes=None, restore_time=None, restores=None): """ - V1alpha1VirtualMachineRestoreStatus - a model defined in Swagger + V1beta1VirtualMachineRestoreStatus - a model defined in Swagger """ self._complete = None @@ -71,9 +71,9 @@ def __init__(self, complete=None, conditions=None, deleted_data_volumes=None, re @property def complete(self): """ - Gets the complete of this V1alpha1VirtualMachineRestoreStatus. + Gets the complete of this V1beta1VirtualMachineRestoreStatus. - :return: The complete of this V1alpha1VirtualMachineRestoreStatus. + :return: The complete of this V1beta1VirtualMachineRestoreStatus. :rtype: bool """ return self._complete @@ -81,9 +81,9 @@ def complete(self): @complete.setter def complete(self, complete): """ - Sets the complete of this V1alpha1VirtualMachineRestoreStatus. + Sets the complete of this V1beta1VirtualMachineRestoreStatus. - :param complete: The complete of this V1alpha1VirtualMachineRestoreStatus. + :param complete: The complete of this V1beta1VirtualMachineRestoreStatus. :type: bool """ @@ -92,20 +92,20 @@ def complete(self, complete): @property def conditions(self): """ - Gets the conditions of this V1alpha1VirtualMachineRestoreStatus. + Gets the conditions of this V1beta1VirtualMachineRestoreStatus. - :return: The conditions of this V1alpha1VirtualMachineRestoreStatus. - :rtype: list[V1alpha1Condition] + :return: The conditions of this V1beta1VirtualMachineRestoreStatus. + :rtype: list[V1beta1Condition] """ return self._conditions @conditions.setter def conditions(self, conditions): """ - Sets the conditions of this V1alpha1VirtualMachineRestoreStatus. + Sets the conditions of this V1beta1VirtualMachineRestoreStatus. - :param conditions: The conditions of this V1alpha1VirtualMachineRestoreStatus. - :type: list[V1alpha1Condition] + :param conditions: The conditions of this V1beta1VirtualMachineRestoreStatus. + :type: list[V1beta1Condition] """ self._conditions = conditions @@ -113,9 +113,9 @@ def conditions(self, conditions): @property def deleted_data_volumes(self): """ - Gets the deleted_data_volumes of this V1alpha1VirtualMachineRestoreStatus. + Gets the deleted_data_volumes of this V1beta1VirtualMachineRestoreStatus. - :return: The deleted_data_volumes of this V1alpha1VirtualMachineRestoreStatus. + :return: The deleted_data_volumes of this V1beta1VirtualMachineRestoreStatus. :rtype: list[str] """ return self._deleted_data_volumes @@ -123,9 +123,9 @@ def deleted_data_volumes(self): @deleted_data_volumes.setter def deleted_data_volumes(self, deleted_data_volumes): """ - Sets the deleted_data_volumes of this V1alpha1VirtualMachineRestoreStatus. + Sets the deleted_data_volumes of this V1beta1VirtualMachineRestoreStatus. - :param deleted_data_volumes: The deleted_data_volumes of this V1alpha1VirtualMachineRestoreStatus. + :param deleted_data_volumes: The deleted_data_volumes of this V1beta1VirtualMachineRestoreStatus. :type: list[str] """ @@ -134,9 +134,9 @@ def deleted_data_volumes(self, deleted_data_volumes): @property def restore_time(self): """ - Gets the restore_time of this V1alpha1VirtualMachineRestoreStatus. + Gets the restore_time of this V1beta1VirtualMachineRestoreStatus. - :return: The restore_time of this V1alpha1VirtualMachineRestoreStatus. + :return: The restore_time of this V1beta1VirtualMachineRestoreStatus. :rtype: K8sIoApimachineryPkgApisMetaV1Time """ return self._restore_time @@ -144,9 +144,9 @@ def restore_time(self): @restore_time.setter def restore_time(self, restore_time): """ - Sets the restore_time of this V1alpha1VirtualMachineRestoreStatus. + Sets the restore_time of this V1beta1VirtualMachineRestoreStatus. - :param restore_time: The restore_time of this V1alpha1VirtualMachineRestoreStatus. + :param restore_time: The restore_time of this V1beta1VirtualMachineRestoreStatus. :type: K8sIoApimachineryPkgApisMetaV1Time """ @@ -155,20 +155,20 @@ def restore_time(self, restore_time): @property def restores(self): """ - Gets the restores of this V1alpha1VirtualMachineRestoreStatus. + Gets the restores of this V1beta1VirtualMachineRestoreStatus. - :return: The restores of this V1alpha1VirtualMachineRestoreStatus. - :rtype: list[V1alpha1VolumeRestore] + :return: The restores of this V1beta1VirtualMachineRestoreStatus. + :rtype: list[V1beta1VolumeRestore] """ return self._restores @restores.setter def restores(self, restores): """ - Sets the restores of this V1alpha1VirtualMachineRestoreStatus. + Sets the restores of this V1beta1VirtualMachineRestoreStatus. - :param restores: The restores of this V1alpha1VirtualMachineRestoreStatus. - :type: list[V1alpha1VolumeRestore] + :param restores: The restores of this V1beta1VirtualMachineRestoreStatus. + :type: list[V1beta1VolumeRestore] """ self._restores = restores @@ -215,7 +215,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineRestoreStatus): + if not isinstance(other, V1beta1VirtualMachineRestoreStatus): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot.py b/kubevirt/models/v1beta1_virtual_machine_snapshot.py similarity index 74% rename from kubevirt/models/v1alpha1_virtual_machine_snapshot.py rename to kubevirt/models/v1beta1_virtual_machine_snapshot.py index 83841fcb..e2c70e7c 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_snapshot.py +++ b/kubevirt/models/v1beta1_virtual_machine_snapshot.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineSnapshot(object): +class V1beta1VirtualMachineSnapshot(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -34,8 +34,8 @@ class V1alpha1VirtualMachineSnapshot(object): 'api_version': 'str', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', - 'spec': 'V1alpha1VirtualMachineSnapshotSpec', - 'status': 'V1alpha1VirtualMachineSnapshotStatus' + 'spec': 'V1beta1VirtualMachineSnapshotSpec', + 'status': 'V1beta1VirtualMachineSnapshotStatus' } attribute_map = { @@ -48,7 +48,7 @@ class V1alpha1VirtualMachineSnapshot(object): def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): """ - V1alpha1VirtualMachineSnapshot - a model defined in Swagger + V1beta1VirtualMachineSnapshot - a model defined in Swagger """ self._api_version = None @@ -70,10 +70,10 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status @property def api_version(self): """ - Gets the api_version of this V1alpha1VirtualMachineSnapshot. + Gets the api_version of this V1beta1VirtualMachineSnapshot. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha1VirtualMachineSnapshot. + :return: The api_version of this V1beta1VirtualMachineSnapshot. :rtype: str """ return self._api_version @@ -81,10 +81,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha1VirtualMachineSnapshot. + Sets the api_version of this V1beta1VirtualMachineSnapshot. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha1VirtualMachineSnapshot. + :param api_version: The api_version of this V1beta1VirtualMachineSnapshot. :type: str """ @@ -93,10 +93,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V1alpha1VirtualMachineSnapshot. + Gets the kind of this V1beta1VirtualMachineSnapshot. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha1VirtualMachineSnapshot. + :return: The kind of this V1beta1VirtualMachineSnapshot. :rtype: str """ return self._kind @@ -104,10 +104,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha1VirtualMachineSnapshot. + Sets the kind of this V1beta1VirtualMachineSnapshot. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha1VirtualMachineSnapshot. + :param kind: The kind of this V1beta1VirtualMachineSnapshot. :type: str """ @@ -116,9 +116,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachineSnapshot. + Gets the metadata of this V1beta1VirtualMachineSnapshot. - :return: The metadata of this V1alpha1VirtualMachineSnapshot. + :return: The metadata of this V1beta1VirtualMachineSnapshot. :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -126,9 +126,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachineSnapshot. + Sets the metadata of this V1beta1VirtualMachineSnapshot. - :param metadata: The metadata of this V1alpha1VirtualMachineSnapshot. + :param metadata: The metadata of this V1beta1VirtualMachineSnapshot. :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ @@ -137,20 +137,20 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1alpha1VirtualMachineSnapshot. + Gets the spec of this V1beta1VirtualMachineSnapshot. - :return: The spec of this V1alpha1VirtualMachineSnapshot. - :rtype: V1alpha1VirtualMachineSnapshotSpec + :return: The spec of this V1beta1VirtualMachineSnapshot. + :rtype: V1beta1VirtualMachineSnapshotSpec """ return self._spec @spec.setter def spec(self, spec): """ - Sets the spec of this V1alpha1VirtualMachineSnapshot. + Sets the spec of this V1beta1VirtualMachineSnapshot. - :param spec: The spec of this V1alpha1VirtualMachineSnapshot. - :type: V1alpha1VirtualMachineSnapshotSpec + :param spec: The spec of this V1beta1VirtualMachineSnapshot. + :type: V1beta1VirtualMachineSnapshotSpec """ if spec is None: raise ValueError("Invalid value for `spec`, must not be `None`") @@ -160,20 +160,20 @@ def spec(self, spec): @property def status(self): """ - Gets the status of this V1alpha1VirtualMachineSnapshot. + Gets the status of this V1beta1VirtualMachineSnapshot. - :return: The status of this V1alpha1VirtualMachineSnapshot. - :rtype: V1alpha1VirtualMachineSnapshotStatus + :return: The status of this V1beta1VirtualMachineSnapshot. + :rtype: V1beta1VirtualMachineSnapshotStatus """ return self._status @status.setter def status(self, status): """ - Sets the status of this V1alpha1VirtualMachineSnapshot. + Sets the status of this V1beta1VirtualMachineSnapshot. - :param status: The status of this V1alpha1VirtualMachineSnapshot. - :type: V1alpha1VirtualMachineSnapshotStatus + :param status: The status of this V1beta1VirtualMachineSnapshot. + :type: V1beta1VirtualMachineSnapshotStatus """ self._status = status @@ -220,7 +220,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineSnapshot): + if not isinstance(other, V1beta1VirtualMachineSnapshot): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_content.py b/kubevirt/models/v1beta1_virtual_machine_snapshot_content.py similarity index 73% rename from kubevirt/models/v1alpha1_virtual_machine_snapshot_content.py rename to kubevirt/models/v1beta1_virtual_machine_snapshot_content.py index 7ff30273..4a42efc3 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_snapshot_content.py +++ b/kubevirt/models/v1beta1_virtual_machine_snapshot_content.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineSnapshotContent(object): +class V1beta1VirtualMachineSnapshotContent(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -34,8 +34,8 @@ class V1alpha1VirtualMachineSnapshotContent(object): 'api_version': 'str', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', - 'spec': 'V1alpha1VirtualMachineSnapshotContentSpec', - 'status': 'V1alpha1VirtualMachineSnapshotContentStatus' + 'spec': 'V1beta1VirtualMachineSnapshotContentSpec', + 'status': 'V1beta1VirtualMachineSnapshotContentStatus' } attribute_map = { @@ -48,7 +48,7 @@ class V1alpha1VirtualMachineSnapshotContent(object): def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): """ - V1alpha1VirtualMachineSnapshotContent - a model defined in Swagger + V1beta1VirtualMachineSnapshotContent - a model defined in Swagger """ self._api_version = None @@ -70,10 +70,10 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status @property def api_version(self): """ - Gets the api_version of this V1alpha1VirtualMachineSnapshotContent. + Gets the api_version of this V1beta1VirtualMachineSnapshotContent. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha1VirtualMachineSnapshotContent. + :return: The api_version of this V1beta1VirtualMachineSnapshotContent. :rtype: str """ return self._api_version @@ -81,10 +81,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha1VirtualMachineSnapshotContent. + Sets the api_version of this V1beta1VirtualMachineSnapshotContent. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha1VirtualMachineSnapshotContent. + :param api_version: The api_version of this V1beta1VirtualMachineSnapshotContent. :type: str """ @@ -93,10 +93,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V1alpha1VirtualMachineSnapshotContent. + Gets the kind of this V1beta1VirtualMachineSnapshotContent. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha1VirtualMachineSnapshotContent. + :return: The kind of this V1beta1VirtualMachineSnapshotContent. :rtype: str """ return self._kind @@ -104,10 +104,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha1VirtualMachineSnapshotContent. + Sets the kind of this V1beta1VirtualMachineSnapshotContent. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha1VirtualMachineSnapshotContent. + :param kind: The kind of this V1beta1VirtualMachineSnapshotContent. :type: str """ @@ -116,9 +116,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachineSnapshotContent. + Gets the metadata of this V1beta1VirtualMachineSnapshotContent. - :return: The metadata of this V1alpha1VirtualMachineSnapshotContent. + :return: The metadata of this V1beta1VirtualMachineSnapshotContent. :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -126,9 +126,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachineSnapshotContent. + Sets the metadata of this V1beta1VirtualMachineSnapshotContent. - :param metadata: The metadata of this V1alpha1VirtualMachineSnapshotContent. + :param metadata: The metadata of this V1beta1VirtualMachineSnapshotContent. :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ @@ -137,20 +137,20 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1alpha1VirtualMachineSnapshotContent. + Gets the spec of this V1beta1VirtualMachineSnapshotContent. - :return: The spec of this V1alpha1VirtualMachineSnapshotContent. - :rtype: V1alpha1VirtualMachineSnapshotContentSpec + :return: The spec of this V1beta1VirtualMachineSnapshotContent. + :rtype: V1beta1VirtualMachineSnapshotContentSpec """ return self._spec @spec.setter def spec(self, spec): """ - Sets the spec of this V1alpha1VirtualMachineSnapshotContent. + Sets the spec of this V1beta1VirtualMachineSnapshotContent. - :param spec: The spec of this V1alpha1VirtualMachineSnapshotContent. - :type: V1alpha1VirtualMachineSnapshotContentSpec + :param spec: The spec of this V1beta1VirtualMachineSnapshotContent. + :type: V1beta1VirtualMachineSnapshotContentSpec """ if spec is None: raise ValueError("Invalid value for `spec`, must not be `None`") @@ -160,20 +160,20 @@ def spec(self, spec): @property def status(self): """ - Gets the status of this V1alpha1VirtualMachineSnapshotContent. + Gets the status of this V1beta1VirtualMachineSnapshotContent. - :return: The status of this V1alpha1VirtualMachineSnapshotContent. - :rtype: V1alpha1VirtualMachineSnapshotContentStatus + :return: The status of this V1beta1VirtualMachineSnapshotContent. + :rtype: V1beta1VirtualMachineSnapshotContentStatus """ return self._status @status.setter def status(self, status): """ - Sets the status of this V1alpha1VirtualMachineSnapshotContent. + Sets the status of this V1beta1VirtualMachineSnapshotContent. - :param status: The status of this V1alpha1VirtualMachineSnapshotContent. - :type: V1alpha1VirtualMachineSnapshotContentStatus + :param status: The status of this V1beta1VirtualMachineSnapshotContent. + :type: V1beta1VirtualMachineSnapshotContentStatus """ self._status = status @@ -220,7 +220,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineSnapshotContent): + if not isinstance(other, V1beta1VirtualMachineSnapshotContent): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_list.py b/kubevirt/models/v1beta1_virtual_machine_snapshot_content_list.py similarity index 76% rename from kubevirt/models/v1alpha1_virtual_machine_snapshot_content_list.py rename to kubevirt/models/v1beta1_virtual_machine_snapshot_content_list.py index 4be07440..a86b5abf 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_list.py +++ b/kubevirt/models/v1beta1_virtual_machine_snapshot_content_list.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineSnapshotContentList(object): +class V1beta1VirtualMachineSnapshotContentList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class V1alpha1VirtualMachineSnapshotContentList(object): """ swagger_types = { 'api_version': 'str', - 'items': 'list[V1alpha1VirtualMachineSnapshotContent]', + 'items': 'list[V1beta1VirtualMachineSnapshotContent]', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' } @@ -46,7 +46,7 @@ class V1alpha1VirtualMachineSnapshotContentList(object): def __init__(self, api_version=None, items=None, kind=None, metadata=None): """ - V1alpha1VirtualMachineSnapshotContentList - a model defined in Swagger + V1beta1VirtualMachineSnapshotContentList - a model defined in Swagger """ self._api_version = None @@ -64,10 +64,10 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): @property def api_version(self): """ - Gets the api_version of this V1alpha1VirtualMachineSnapshotContentList. + Gets the api_version of this V1beta1VirtualMachineSnapshotContentList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha1VirtualMachineSnapshotContentList. + :return: The api_version of this V1beta1VirtualMachineSnapshotContentList. :rtype: str """ return self._api_version @@ -75,10 +75,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha1VirtualMachineSnapshotContentList. + Sets the api_version of this V1beta1VirtualMachineSnapshotContentList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha1VirtualMachineSnapshotContentList. + :param api_version: The api_version of this V1beta1VirtualMachineSnapshotContentList. :type: str """ @@ -87,20 +87,20 @@ def api_version(self, api_version): @property def items(self): """ - Gets the items of this V1alpha1VirtualMachineSnapshotContentList. + Gets the items of this V1beta1VirtualMachineSnapshotContentList. - :return: The items of this V1alpha1VirtualMachineSnapshotContentList. - :rtype: list[V1alpha1VirtualMachineSnapshotContent] + :return: The items of this V1beta1VirtualMachineSnapshotContentList. + :rtype: list[V1beta1VirtualMachineSnapshotContent] """ return self._items @items.setter def items(self, items): """ - Sets the items of this V1alpha1VirtualMachineSnapshotContentList. + Sets the items of this V1beta1VirtualMachineSnapshotContentList. - :param items: The items of this V1alpha1VirtualMachineSnapshotContentList. - :type: list[V1alpha1VirtualMachineSnapshotContent] + :param items: The items of this V1beta1VirtualMachineSnapshotContentList. + :type: list[V1beta1VirtualMachineSnapshotContent] """ if items is None: raise ValueError("Invalid value for `items`, must not be `None`") @@ -110,10 +110,10 @@ def items(self, items): @property def kind(self): """ - Gets the kind of this V1alpha1VirtualMachineSnapshotContentList. + Gets the kind of this V1beta1VirtualMachineSnapshotContentList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha1VirtualMachineSnapshotContentList. + :return: The kind of this V1beta1VirtualMachineSnapshotContentList. :rtype: str """ return self._kind @@ -121,10 +121,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha1VirtualMachineSnapshotContentList. + Sets the kind of this V1beta1VirtualMachineSnapshotContentList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha1VirtualMachineSnapshotContentList. + :param kind: The kind of this V1beta1VirtualMachineSnapshotContentList. :type: str """ @@ -133,9 +133,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachineSnapshotContentList. + Gets the metadata of this V1beta1VirtualMachineSnapshotContentList. - :return: The metadata of this V1alpha1VirtualMachineSnapshotContentList. + :return: The metadata of this V1beta1VirtualMachineSnapshotContentList. :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @@ -143,9 +143,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachineSnapshotContentList. + Sets the metadata of this V1beta1VirtualMachineSnapshotContentList. - :param metadata: The metadata of this V1alpha1VirtualMachineSnapshotContentList. + :param metadata: The metadata of this V1beta1VirtualMachineSnapshotContentList. :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ if metadata is None: @@ -195,7 +195,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineSnapshotContentList): + if not isinstance(other, V1beta1VirtualMachineSnapshotContentList): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_spec.py b/kubevirt/models/v1beta1_virtual_machine_snapshot_content_spec.py similarity index 72% rename from kubevirt/models/v1alpha1_virtual_machine_snapshot_content_spec.py rename to kubevirt/models/v1beta1_virtual_machine_snapshot_content_spec.py index 2cbde345..aeca23ae 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_snapshot_content_spec.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineSnapshotContentSpec(object): +class V1beta1VirtualMachineSnapshotContentSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,9 +31,9 @@ class V1alpha1VirtualMachineSnapshotContentSpec(object): and the value is json key in definition. """ swagger_types = { - 'source': 'V1alpha1SourceSpec', + 'source': 'V1beta1SourceSpec', 'virtual_machine_snapshot_name': 'str', - 'volume_backups': 'list[V1alpha1VolumeBackup]' + 'volume_backups': 'list[V1beta1VolumeBackup]' } attribute_map = { @@ -44,7 +44,7 @@ class V1alpha1VirtualMachineSnapshotContentSpec(object): def __init__(self, source=None, virtual_machine_snapshot_name=None, volume_backups=None): """ - V1alpha1VirtualMachineSnapshotContentSpec - a model defined in Swagger + V1beta1VirtualMachineSnapshotContentSpec - a model defined in Swagger """ self._source = None @@ -60,20 +60,20 @@ def __init__(self, source=None, virtual_machine_snapshot_name=None, volume_backu @property def source(self): """ - Gets the source of this V1alpha1VirtualMachineSnapshotContentSpec. + Gets the source of this V1beta1VirtualMachineSnapshotContentSpec. - :return: The source of this V1alpha1VirtualMachineSnapshotContentSpec. - :rtype: V1alpha1SourceSpec + :return: The source of this V1beta1VirtualMachineSnapshotContentSpec. + :rtype: V1beta1SourceSpec """ return self._source @source.setter def source(self, source): """ - Sets the source of this V1alpha1VirtualMachineSnapshotContentSpec. + Sets the source of this V1beta1VirtualMachineSnapshotContentSpec. - :param source: The source of this V1alpha1VirtualMachineSnapshotContentSpec. - :type: V1alpha1SourceSpec + :param source: The source of this V1beta1VirtualMachineSnapshotContentSpec. + :type: V1beta1SourceSpec """ if source is None: raise ValueError("Invalid value for `source`, must not be `None`") @@ -83,9 +83,9 @@ def source(self, source): @property def virtual_machine_snapshot_name(self): """ - Gets the virtual_machine_snapshot_name of this V1alpha1VirtualMachineSnapshotContentSpec. + Gets the virtual_machine_snapshot_name of this V1beta1VirtualMachineSnapshotContentSpec. - :return: The virtual_machine_snapshot_name of this V1alpha1VirtualMachineSnapshotContentSpec. + :return: The virtual_machine_snapshot_name of this V1beta1VirtualMachineSnapshotContentSpec. :rtype: str """ return self._virtual_machine_snapshot_name @@ -93,9 +93,9 @@ def virtual_machine_snapshot_name(self): @virtual_machine_snapshot_name.setter def virtual_machine_snapshot_name(self, virtual_machine_snapshot_name): """ - Sets the virtual_machine_snapshot_name of this V1alpha1VirtualMachineSnapshotContentSpec. + Sets the virtual_machine_snapshot_name of this V1beta1VirtualMachineSnapshotContentSpec. - :param virtual_machine_snapshot_name: The virtual_machine_snapshot_name of this V1alpha1VirtualMachineSnapshotContentSpec. + :param virtual_machine_snapshot_name: The virtual_machine_snapshot_name of this V1beta1VirtualMachineSnapshotContentSpec. :type: str """ @@ -104,20 +104,20 @@ def virtual_machine_snapshot_name(self, virtual_machine_snapshot_name): @property def volume_backups(self): """ - Gets the volume_backups of this V1alpha1VirtualMachineSnapshotContentSpec. + Gets the volume_backups of this V1beta1VirtualMachineSnapshotContentSpec. - :return: The volume_backups of this V1alpha1VirtualMachineSnapshotContentSpec. - :rtype: list[V1alpha1VolumeBackup] + :return: The volume_backups of this V1beta1VirtualMachineSnapshotContentSpec. + :rtype: list[V1beta1VolumeBackup] """ return self._volume_backups @volume_backups.setter def volume_backups(self, volume_backups): """ - Sets the volume_backups of this V1alpha1VirtualMachineSnapshotContentSpec. + Sets the volume_backups of this V1beta1VirtualMachineSnapshotContentSpec. - :param volume_backups: The volume_backups of this V1alpha1VirtualMachineSnapshotContentSpec. - :type: list[V1alpha1VolumeBackup] + :param volume_backups: The volume_backups of this V1beta1VirtualMachineSnapshotContentSpec. + :type: list[V1beta1VolumeBackup] """ self._volume_backups = volume_backups @@ -164,7 +164,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineSnapshotContentSpec): + if not isinstance(other, V1beta1VirtualMachineSnapshotContentSpec): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_status.py b/kubevirt/models/v1beta1_virtual_machine_snapshot_content_status.py similarity index 70% rename from kubevirt/models/v1alpha1_virtual_machine_snapshot_content_status.py rename to kubevirt/models/v1beta1_virtual_machine_snapshot_content_status.py index 0ebae408..c1c671e1 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_snapshot_content_status.py +++ b/kubevirt/models/v1beta1_virtual_machine_snapshot_content_status.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineSnapshotContentStatus(object): +class V1beta1VirtualMachineSnapshotContentStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,9 +32,9 @@ class V1alpha1VirtualMachineSnapshotContentStatus(object): """ swagger_types = { 'creation_time': 'K8sIoApimachineryPkgApisMetaV1Time', - 'error': 'V1alpha1Error', + 'error': 'V1beta1Error', 'ready_to_use': 'bool', - 'volume_snapshot_status': 'list[V1alpha1VolumeSnapshotStatus]' + 'volume_snapshot_status': 'list[V1beta1VolumeSnapshotStatus]' } attribute_map = { @@ -46,7 +46,7 @@ class V1alpha1VirtualMachineSnapshotContentStatus(object): def __init__(self, creation_time=None, error=None, ready_to_use=None, volume_snapshot_status=None): """ - V1alpha1VirtualMachineSnapshotContentStatus - a model defined in Swagger + V1beta1VirtualMachineSnapshotContentStatus - a model defined in Swagger """ self._creation_time = None @@ -66,9 +66,9 @@ def __init__(self, creation_time=None, error=None, ready_to_use=None, volume_sna @property def creation_time(self): """ - Gets the creation_time of this V1alpha1VirtualMachineSnapshotContentStatus. + Gets the creation_time of this V1beta1VirtualMachineSnapshotContentStatus. - :return: The creation_time of this V1alpha1VirtualMachineSnapshotContentStatus. + :return: The creation_time of this V1beta1VirtualMachineSnapshotContentStatus. :rtype: K8sIoApimachineryPkgApisMetaV1Time """ return self._creation_time @@ -76,9 +76,9 @@ def creation_time(self): @creation_time.setter def creation_time(self, creation_time): """ - Sets the creation_time of this V1alpha1VirtualMachineSnapshotContentStatus. + Sets the creation_time of this V1beta1VirtualMachineSnapshotContentStatus. - :param creation_time: The creation_time of this V1alpha1VirtualMachineSnapshotContentStatus. + :param creation_time: The creation_time of this V1beta1VirtualMachineSnapshotContentStatus. :type: K8sIoApimachineryPkgApisMetaV1Time """ @@ -87,20 +87,20 @@ def creation_time(self, creation_time): @property def error(self): """ - Gets the error of this V1alpha1VirtualMachineSnapshotContentStatus. + Gets the error of this V1beta1VirtualMachineSnapshotContentStatus. - :return: The error of this V1alpha1VirtualMachineSnapshotContentStatus. - :rtype: V1alpha1Error + :return: The error of this V1beta1VirtualMachineSnapshotContentStatus. + :rtype: V1beta1Error """ return self._error @error.setter def error(self, error): """ - Sets the error of this V1alpha1VirtualMachineSnapshotContentStatus. + Sets the error of this V1beta1VirtualMachineSnapshotContentStatus. - :param error: The error of this V1alpha1VirtualMachineSnapshotContentStatus. - :type: V1alpha1Error + :param error: The error of this V1beta1VirtualMachineSnapshotContentStatus. + :type: V1beta1Error """ self._error = error @@ -108,9 +108,9 @@ def error(self, error): @property def ready_to_use(self): """ - Gets the ready_to_use of this V1alpha1VirtualMachineSnapshotContentStatus. + Gets the ready_to_use of this V1beta1VirtualMachineSnapshotContentStatus. - :return: The ready_to_use of this V1alpha1VirtualMachineSnapshotContentStatus. + :return: The ready_to_use of this V1beta1VirtualMachineSnapshotContentStatus. :rtype: bool """ return self._ready_to_use @@ -118,9 +118,9 @@ def ready_to_use(self): @ready_to_use.setter def ready_to_use(self, ready_to_use): """ - Sets the ready_to_use of this V1alpha1VirtualMachineSnapshotContentStatus. + Sets the ready_to_use of this V1beta1VirtualMachineSnapshotContentStatus. - :param ready_to_use: The ready_to_use of this V1alpha1VirtualMachineSnapshotContentStatus. + :param ready_to_use: The ready_to_use of this V1beta1VirtualMachineSnapshotContentStatus. :type: bool """ @@ -129,20 +129,20 @@ def ready_to_use(self, ready_to_use): @property def volume_snapshot_status(self): """ - Gets the volume_snapshot_status of this V1alpha1VirtualMachineSnapshotContentStatus. + Gets the volume_snapshot_status of this V1beta1VirtualMachineSnapshotContentStatus. - :return: The volume_snapshot_status of this V1alpha1VirtualMachineSnapshotContentStatus. - :rtype: list[V1alpha1VolumeSnapshotStatus] + :return: The volume_snapshot_status of this V1beta1VirtualMachineSnapshotContentStatus. + :rtype: list[V1beta1VolumeSnapshotStatus] """ return self._volume_snapshot_status @volume_snapshot_status.setter def volume_snapshot_status(self, volume_snapshot_status): """ - Sets the volume_snapshot_status of this V1alpha1VirtualMachineSnapshotContentStatus. + Sets the volume_snapshot_status of this V1beta1VirtualMachineSnapshotContentStatus. - :param volume_snapshot_status: The volume_snapshot_status of this V1alpha1VirtualMachineSnapshotContentStatus. - :type: list[V1alpha1VolumeSnapshotStatus] + :param volume_snapshot_status: The volume_snapshot_status of this V1beta1VirtualMachineSnapshotContentStatus. + :type: list[V1beta1VolumeSnapshotStatus] """ self._volume_snapshot_status = volume_snapshot_status @@ -189,7 +189,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineSnapshotContentStatus): + if not isinstance(other, V1beta1VirtualMachineSnapshotContentStatus): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_restore_list.py b/kubevirt/models/v1beta1_virtual_machine_snapshot_list.py similarity index 78% rename from kubevirt/models/v1alpha1_virtual_machine_restore_list.py rename to kubevirt/models/v1beta1_virtual_machine_snapshot_list.py index 82b40c0b..d7793a0e 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_restore_list.py +++ b/kubevirt/models/v1beta1_virtual_machine_snapshot_list.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineRestoreList(object): +class V1beta1VirtualMachineSnapshotList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class V1alpha1VirtualMachineRestoreList(object): """ swagger_types = { 'api_version': 'str', - 'items': 'list[V1alpha1VirtualMachineRestore]', + 'items': 'list[V1beta1VirtualMachineSnapshot]', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' } @@ -46,7 +46,7 @@ class V1alpha1VirtualMachineRestoreList(object): def __init__(self, api_version=None, items=None, kind=None, metadata=None): """ - V1alpha1VirtualMachineRestoreList - a model defined in Swagger + V1beta1VirtualMachineSnapshotList - a model defined in Swagger """ self._api_version = None @@ -64,10 +64,10 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): @property def api_version(self): """ - Gets the api_version of this V1alpha1VirtualMachineRestoreList. + Gets the api_version of this V1beta1VirtualMachineSnapshotList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha1VirtualMachineRestoreList. + :return: The api_version of this V1beta1VirtualMachineSnapshotList. :rtype: str """ return self._api_version @@ -75,10 +75,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha1VirtualMachineRestoreList. + Sets the api_version of this V1beta1VirtualMachineSnapshotList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha1VirtualMachineRestoreList. + :param api_version: The api_version of this V1beta1VirtualMachineSnapshotList. :type: str """ @@ -87,20 +87,20 @@ def api_version(self, api_version): @property def items(self): """ - Gets the items of this V1alpha1VirtualMachineRestoreList. + Gets the items of this V1beta1VirtualMachineSnapshotList. - :return: The items of this V1alpha1VirtualMachineRestoreList. - :rtype: list[V1alpha1VirtualMachineRestore] + :return: The items of this V1beta1VirtualMachineSnapshotList. + :rtype: list[V1beta1VirtualMachineSnapshot] """ return self._items @items.setter def items(self, items): """ - Sets the items of this V1alpha1VirtualMachineRestoreList. + Sets the items of this V1beta1VirtualMachineSnapshotList. - :param items: The items of this V1alpha1VirtualMachineRestoreList. - :type: list[V1alpha1VirtualMachineRestore] + :param items: The items of this V1beta1VirtualMachineSnapshotList. + :type: list[V1beta1VirtualMachineSnapshot] """ if items is None: raise ValueError("Invalid value for `items`, must not be `None`") @@ -110,10 +110,10 @@ def items(self, items): @property def kind(self): """ - Gets the kind of this V1alpha1VirtualMachineRestoreList. + Gets the kind of this V1beta1VirtualMachineSnapshotList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha1VirtualMachineRestoreList. + :return: The kind of this V1beta1VirtualMachineSnapshotList. :rtype: str """ return self._kind @@ -121,10 +121,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha1VirtualMachineRestoreList. + Sets the kind of this V1beta1VirtualMachineSnapshotList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha1VirtualMachineRestoreList. + :param kind: The kind of this V1beta1VirtualMachineSnapshotList. :type: str """ @@ -133,9 +133,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachineRestoreList. + Gets the metadata of this V1beta1VirtualMachineSnapshotList. - :return: The metadata of this V1alpha1VirtualMachineRestoreList. + :return: The metadata of this V1beta1VirtualMachineSnapshotList. :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @@ -143,9 +143,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachineRestoreList. + Sets the metadata of this V1beta1VirtualMachineSnapshotList. - :param metadata: The metadata of this V1alpha1VirtualMachineRestoreList. + :param metadata: The metadata of this V1beta1VirtualMachineSnapshotList. :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ if metadata is None: @@ -195,7 +195,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineRestoreList): + if not isinstance(other, V1beta1VirtualMachineSnapshotList): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_spec.py b/kubevirt/models/v1beta1_virtual_machine_snapshot_spec.py similarity index 81% rename from kubevirt/models/v1alpha1_virtual_machine_snapshot_spec.py rename to kubevirt/models/v1beta1_virtual_machine_snapshot_spec.py index 073bd39c..b63fa4a5 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_snapshot_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_snapshot_spec.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineSnapshotSpec(object): +class V1beta1VirtualMachineSnapshotSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -44,7 +44,7 @@ class V1alpha1VirtualMachineSnapshotSpec(object): def __init__(self, deletion_policy=None, failure_deadline=None, source=None): """ - V1alpha1VirtualMachineSnapshotSpec - a model defined in Swagger + V1beta1VirtualMachineSnapshotSpec - a model defined in Swagger """ self._deletion_policy = None @@ -60,9 +60,9 @@ def __init__(self, deletion_policy=None, failure_deadline=None, source=None): @property def deletion_policy(self): """ - Gets the deletion_policy of this V1alpha1VirtualMachineSnapshotSpec. + Gets the deletion_policy of this V1beta1VirtualMachineSnapshotSpec. - :return: The deletion_policy of this V1alpha1VirtualMachineSnapshotSpec. + :return: The deletion_policy of this V1beta1VirtualMachineSnapshotSpec. :rtype: str """ return self._deletion_policy @@ -70,9 +70,9 @@ def deletion_policy(self): @deletion_policy.setter def deletion_policy(self, deletion_policy): """ - Sets the deletion_policy of this V1alpha1VirtualMachineSnapshotSpec. + Sets the deletion_policy of this V1beta1VirtualMachineSnapshotSpec. - :param deletion_policy: The deletion_policy of this V1alpha1VirtualMachineSnapshotSpec. + :param deletion_policy: The deletion_policy of this V1beta1VirtualMachineSnapshotSpec. :type: str """ @@ -81,10 +81,10 @@ def deletion_policy(self, deletion_policy): @property def failure_deadline(self): """ - Gets the failure_deadline of this V1alpha1VirtualMachineSnapshotSpec. + Gets the failure_deadline of this V1beta1VirtualMachineSnapshotSpec. This time represents the number of seconds we permit the vm snapshot to take. In case we pass this deadline we mark this snapshot as failed. Defaults to DefaultFailureDeadline - 5min - :return: The failure_deadline of this V1alpha1VirtualMachineSnapshotSpec. + :return: The failure_deadline of this V1beta1VirtualMachineSnapshotSpec. :rtype: K8sIoApimachineryPkgApisMetaV1Duration """ return self._failure_deadline @@ -92,10 +92,10 @@ def failure_deadline(self): @failure_deadline.setter def failure_deadline(self, failure_deadline): """ - Sets the failure_deadline of this V1alpha1VirtualMachineSnapshotSpec. + Sets the failure_deadline of this V1beta1VirtualMachineSnapshotSpec. This time represents the number of seconds we permit the vm snapshot to take. In case we pass this deadline we mark this snapshot as failed. Defaults to DefaultFailureDeadline - 5min - :param failure_deadline: The failure_deadline of this V1alpha1VirtualMachineSnapshotSpec. + :param failure_deadline: The failure_deadline of this V1beta1VirtualMachineSnapshotSpec. :type: K8sIoApimachineryPkgApisMetaV1Duration """ @@ -104,9 +104,9 @@ def failure_deadline(self, failure_deadline): @property def source(self): """ - Gets the source of this V1alpha1VirtualMachineSnapshotSpec. + Gets the source of this V1beta1VirtualMachineSnapshotSpec. - :return: The source of this V1alpha1VirtualMachineSnapshotSpec. + :return: The source of this V1beta1VirtualMachineSnapshotSpec. :rtype: K8sIoApiCoreV1TypedLocalObjectReference """ return self._source @@ -114,9 +114,9 @@ def source(self): @source.setter def source(self, source): """ - Sets the source of this V1alpha1VirtualMachineSnapshotSpec. + Sets the source of this V1beta1VirtualMachineSnapshotSpec. - :param source: The source of this V1alpha1VirtualMachineSnapshotSpec. + :param source: The source of this V1beta1VirtualMachineSnapshotSpec. :type: K8sIoApiCoreV1TypedLocalObjectReference """ if source is None: @@ -166,7 +166,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineSnapshotSpec): + if not isinstance(other, V1beta1VirtualMachineSnapshotSpec): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py b/kubevirt/models/v1beta1_virtual_machine_snapshot_status.py similarity index 69% rename from kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py rename to kubevirt/models/v1beta1_virtual_machine_snapshot_status.py index 374a38f1..d7677479 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_snapshot_status.py +++ b/kubevirt/models/v1beta1_virtual_machine_snapshot_status.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineSnapshotStatus(object): +class V1beta1VirtualMachineSnapshotStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,13 +31,13 @@ class V1alpha1VirtualMachineSnapshotStatus(object): and the value is json key in definition. """ swagger_types = { - 'conditions': 'list[V1alpha1Condition]', + 'conditions': 'list[V1beta1Condition]', 'creation_time': 'K8sIoApimachineryPkgApisMetaV1Time', - 'error': 'V1alpha1Error', + 'error': 'V1beta1Error', 'indications': 'list[str]', 'phase': 'str', 'ready_to_use': 'bool', - 'snapshot_volumes': 'V1alpha1SnapshotVolumesLists', + 'snapshot_volumes': 'V1beta1SnapshotVolumesLists', 'source_uid': 'str', 'virtual_machine_snapshot_content_name': 'str' } @@ -56,7 +56,7 @@ class V1alpha1VirtualMachineSnapshotStatus(object): def __init__(self, conditions=None, creation_time=None, error=None, indications=None, phase=None, ready_to_use=None, snapshot_volumes=None, source_uid=None, virtual_machine_snapshot_content_name=None): """ - V1alpha1VirtualMachineSnapshotStatus - a model defined in Swagger + V1beta1VirtualMachineSnapshotStatus - a model defined in Swagger """ self._conditions = None @@ -91,20 +91,20 @@ def __init__(self, conditions=None, creation_time=None, error=None, indications= @property def conditions(self): """ - Gets the conditions of this V1alpha1VirtualMachineSnapshotStatus. + Gets the conditions of this V1beta1VirtualMachineSnapshotStatus. - :return: The conditions of this V1alpha1VirtualMachineSnapshotStatus. - :rtype: list[V1alpha1Condition] + :return: The conditions of this V1beta1VirtualMachineSnapshotStatus. + :rtype: list[V1beta1Condition] """ return self._conditions @conditions.setter def conditions(self, conditions): """ - Sets the conditions of this V1alpha1VirtualMachineSnapshotStatus. + Sets the conditions of this V1beta1VirtualMachineSnapshotStatus. - :param conditions: The conditions of this V1alpha1VirtualMachineSnapshotStatus. - :type: list[V1alpha1Condition] + :param conditions: The conditions of this V1beta1VirtualMachineSnapshotStatus. + :type: list[V1beta1Condition] """ self._conditions = conditions @@ -112,9 +112,9 @@ def conditions(self, conditions): @property def creation_time(self): """ - Gets the creation_time of this V1alpha1VirtualMachineSnapshotStatus. + Gets the creation_time of this V1beta1VirtualMachineSnapshotStatus. - :return: The creation_time of this V1alpha1VirtualMachineSnapshotStatus. + :return: The creation_time of this V1beta1VirtualMachineSnapshotStatus. :rtype: K8sIoApimachineryPkgApisMetaV1Time """ return self._creation_time @@ -122,9 +122,9 @@ def creation_time(self): @creation_time.setter def creation_time(self, creation_time): """ - Sets the creation_time of this V1alpha1VirtualMachineSnapshotStatus. + Sets the creation_time of this V1beta1VirtualMachineSnapshotStatus. - :param creation_time: The creation_time of this V1alpha1VirtualMachineSnapshotStatus. + :param creation_time: The creation_time of this V1beta1VirtualMachineSnapshotStatus. :type: K8sIoApimachineryPkgApisMetaV1Time """ @@ -133,20 +133,20 @@ def creation_time(self, creation_time): @property def error(self): """ - Gets the error of this V1alpha1VirtualMachineSnapshotStatus. + Gets the error of this V1beta1VirtualMachineSnapshotStatus. - :return: The error of this V1alpha1VirtualMachineSnapshotStatus. - :rtype: V1alpha1Error + :return: The error of this V1beta1VirtualMachineSnapshotStatus. + :rtype: V1beta1Error """ return self._error @error.setter def error(self, error): """ - Sets the error of this V1alpha1VirtualMachineSnapshotStatus. + Sets the error of this V1beta1VirtualMachineSnapshotStatus. - :param error: The error of this V1alpha1VirtualMachineSnapshotStatus. - :type: V1alpha1Error + :param error: The error of this V1beta1VirtualMachineSnapshotStatus. + :type: V1beta1Error """ self._error = error @@ -154,9 +154,9 @@ def error(self, error): @property def indications(self): """ - Gets the indications of this V1alpha1VirtualMachineSnapshotStatus. + Gets the indications of this V1beta1VirtualMachineSnapshotStatus. - :return: The indications of this V1alpha1VirtualMachineSnapshotStatus. + :return: The indications of this V1beta1VirtualMachineSnapshotStatus. :rtype: list[str] """ return self._indications @@ -164,9 +164,9 @@ def indications(self): @indications.setter def indications(self, indications): """ - Sets the indications of this V1alpha1VirtualMachineSnapshotStatus. + Sets the indications of this V1beta1VirtualMachineSnapshotStatus. - :param indications: The indications of this V1alpha1VirtualMachineSnapshotStatus. + :param indications: The indications of this V1beta1VirtualMachineSnapshotStatus. :type: list[str] """ @@ -175,9 +175,9 @@ def indications(self, indications): @property def phase(self): """ - Gets the phase of this V1alpha1VirtualMachineSnapshotStatus. + Gets the phase of this V1beta1VirtualMachineSnapshotStatus. - :return: The phase of this V1alpha1VirtualMachineSnapshotStatus. + :return: The phase of this V1beta1VirtualMachineSnapshotStatus. :rtype: str """ return self._phase @@ -185,9 +185,9 @@ def phase(self): @phase.setter def phase(self, phase): """ - Sets the phase of this V1alpha1VirtualMachineSnapshotStatus. + Sets the phase of this V1beta1VirtualMachineSnapshotStatus. - :param phase: The phase of this V1alpha1VirtualMachineSnapshotStatus. + :param phase: The phase of this V1beta1VirtualMachineSnapshotStatus. :type: str """ @@ -196,9 +196,9 @@ def phase(self, phase): @property def ready_to_use(self): """ - Gets the ready_to_use of this V1alpha1VirtualMachineSnapshotStatus. + Gets the ready_to_use of this V1beta1VirtualMachineSnapshotStatus. - :return: The ready_to_use of this V1alpha1VirtualMachineSnapshotStatus. + :return: The ready_to_use of this V1beta1VirtualMachineSnapshotStatus. :rtype: bool """ return self._ready_to_use @@ -206,9 +206,9 @@ def ready_to_use(self): @ready_to_use.setter def ready_to_use(self, ready_to_use): """ - Sets the ready_to_use of this V1alpha1VirtualMachineSnapshotStatus. + Sets the ready_to_use of this V1beta1VirtualMachineSnapshotStatus. - :param ready_to_use: The ready_to_use of this V1alpha1VirtualMachineSnapshotStatus. + :param ready_to_use: The ready_to_use of this V1beta1VirtualMachineSnapshotStatus. :type: bool """ @@ -217,20 +217,20 @@ def ready_to_use(self, ready_to_use): @property def snapshot_volumes(self): """ - Gets the snapshot_volumes of this V1alpha1VirtualMachineSnapshotStatus. + Gets the snapshot_volumes of this V1beta1VirtualMachineSnapshotStatus. - :return: The snapshot_volumes of this V1alpha1VirtualMachineSnapshotStatus. - :rtype: V1alpha1SnapshotVolumesLists + :return: The snapshot_volumes of this V1beta1VirtualMachineSnapshotStatus. + :rtype: V1beta1SnapshotVolumesLists """ return self._snapshot_volumes @snapshot_volumes.setter def snapshot_volumes(self, snapshot_volumes): """ - Sets the snapshot_volumes of this V1alpha1VirtualMachineSnapshotStatus. + Sets the snapshot_volumes of this V1beta1VirtualMachineSnapshotStatus. - :param snapshot_volumes: The snapshot_volumes of this V1alpha1VirtualMachineSnapshotStatus. - :type: V1alpha1SnapshotVolumesLists + :param snapshot_volumes: The snapshot_volumes of this V1beta1VirtualMachineSnapshotStatus. + :type: V1beta1SnapshotVolumesLists """ self._snapshot_volumes = snapshot_volumes @@ -238,9 +238,9 @@ def snapshot_volumes(self, snapshot_volumes): @property def source_uid(self): """ - Gets the source_uid of this V1alpha1VirtualMachineSnapshotStatus. + Gets the source_uid of this V1beta1VirtualMachineSnapshotStatus. - :return: The source_uid of this V1alpha1VirtualMachineSnapshotStatus. + :return: The source_uid of this V1beta1VirtualMachineSnapshotStatus. :rtype: str """ return self._source_uid @@ -248,9 +248,9 @@ def source_uid(self): @source_uid.setter def source_uid(self, source_uid): """ - Sets the source_uid of this V1alpha1VirtualMachineSnapshotStatus. + Sets the source_uid of this V1beta1VirtualMachineSnapshotStatus. - :param source_uid: The source_uid of this V1alpha1VirtualMachineSnapshotStatus. + :param source_uid: The source_uid of this V1beta1VirtualMachineSnapshotStatus. :type: str """ @@ -259,9 +259,9 @@ def source_uid(self, source_uid): @property def virtual_machine_snapshot_content_name(self): """ - Gets the virtual_machine_snapshot_content_name of this V1alpha1VirtualMachineSnapshotStatus. + Gets the virtual_machine_snapshot_content_name of this V1beta1VirtualMachineSnapshotStatus. - :return: The virtual_machine_snapshot_content_name of this V1alpha1VirtualMachineSnapshotStatus. + :return: The virtual_machine_snapshot_content_name of this V1beta1VirtualMachineSnapshotStatus. :rtype: str """ return self._virtual_machine_snapshot_content_name @@ -269,9 +269,9 @@ def virtual_machine_snapshot_content_name(self): @virtual_machine_snapshot_content_name.setter def virtual_machine_snapshot_content_name(self, virtual_machine_snapshot_content_name): """ - Sets the virtual_machine_snapshot_content_name of this V1alpha1VirtualMachineSnapshotStatus. + Sets the virtual_machine_snapshot_content_name of this V1beta1VirtualMachineSnapshotStatus. - :param virtual_machine_snapshot_content_name: The virtual_machine_snapshot_content_name of this V1alpha1VirtualMachineSnapshotStatus. + :param virtual_machine_snapshot_content_name: The virtual_machine_snapshot_content_name of this V1beta1VirtualMachineSnapshotStatus. :type: str """ @@ -319,7 +319,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineSnapshotStatus): + if not isinstance(other, V1beta1VirtualMachineSnapshotStatus): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_volume_backup.py b/kubevirt/models/v1beta1_volume_backup.py similarity index 80% rename from kubevirt/models/v1alpha1_volume_backup.py rename to kubevirt/models/v1beta1_volume_backup.py index 8c86ff85..4237057c 100644 --- a/kubevirt/models/v1alpha1_volume_backup.py +++ b/kubevirt/models/v1beta1_volume_backup.py @@ -16,7 +16,7 @@ import re -class V1alpha1VolumeBackup(object): +class V1beta1VolumeBackup(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,7 +31,7 @@ class V1alpha1VolumeBackup(object): and the value is json key in definition. """ swagger_types = { - 'persistent_volume_claim': 'V1alpha1PersistentVolumeClaim', + 'persistent_volume_claim': 'V1beta1PersistentVolumeClaim', 'volume_name': 'str', 'volume_snapshot_name': 'str' } @@ -44,7 +44,7 @@ class V1alpha1VolumeBackup(object): def __init__(self, persistent_volume_claim=None, volume_name='', volume_snapshot_name=None): """ - V1alpha1VolumeBackup - a model defined in Swagger + V1beta1VolumeBackup - a model defined in Swagger """ self._persistent_volume_claim = None @@ -59,20 +59,20 @@ def __init__(self, persistent_volume_claim=None, volume_name='', volume_snapshot @property def persistent_volume_claim(self): """ - Gets the persistent_volume_claim of this V1alpha1VolumeBackup. + Gets the persistent_volume_claim of this V1beta1VolumeBackup. - :return: The persistent_volume_claim of this V1alpha1VolumeBackup. - :rtype: V1alpha1PersistentVolumeClaim + :return: The persistent_volume_claim of this V1beta1VolumeBackup. + :rtype: V1beta1PersistentVolumeClaim """ return self._persistent_volume_claim @persistent_volume_claim.setter def persistent_volume_claim(self, persistent_volume_claim): """ - Sets the persistent_volume_claim of this V1alpha1VolumeBackup. + Sets the persistent_volume_claim of this V1beta1VolumeBackup. - :param persistent_volume_claim: The persistent_volume_claim of this V1alpha1VolumeBackup. - :type: V1alpha1PersistentVolumeClaim + :param persistent_volume_claim: The persistent_volume_claim of this V1beta1VolumeBackup. + :type: V1beta1PersistentVolumeClaim """ if persistent_volume_claim is None: raise ValueError("Invalid value for `persistent_volume_claim`, must not be `None`") @@ -82,9 +82,9 @@ def persistent_volume_claim(self, persistent_volume_claim): @property def volume_name(self): """ - Gets the volume_name of this V1alpha1VolumeBackup. + Gets the volume_name of this V1beta1VolumeBackup. - :return: The volume_name of this V1alpha1VolumeBackup. + :return: The volume_name of this V1beta1VolumeBackup. :rtype: str """ return self._volume_name @@ -92,9 +92,9 @@ def volume_name(self): @volume_name.setter def volume_name(self, volume_name): """ - Sets the volume_name of this V1alpha1VolumeBackup. + Sets the volume_name of this V1beta1VolumeBackup. - :param volume_name: The volume_name of this V1alpha1VolumeBackup. + :param volume_name: The volume_name of this V1beta1VolumeBackup. :type: str """ if volume_name is None: @@ -105,9 +105,9 @@ def volume_name(self, volume_name): @property def volume_snapshot_name(self): """ - Gets the volume_snapshot_name of this V1alpha1VolumeBackup. + Gets the volume_snapshot_name of this V1beta1VolumeBackup. - :return: The volume_snapshot_name of this V1alpha1VolumeBackup. + :return: The volume_snapshot_name of this V1beta1VolumeBackup. :rtype: str """ return self._volume_snapshot_name @@ -115,9 +115,9 @@ def volume_snapshot_name(self): @volume_snapshot_name.setter def volume_snapshot_name(self, volume_snapshot_name): """ - Sets the volume_snapshot_name of this V1alpha1VolumeBackup. + Sets the volume_snapshot_name of this V1beta1VolumeBackup. - :param volume_snapshot_name: The volume_snapshot_name of this V1alpha1VolumeBackup. + :param volume_snapshot_name: The volume_snapshot_name of this V1beta1VolumeBackup. :type: str """ @@ -165,7 +165,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VolumeBackup): + if not isinstance(other, V1beta1VolumeBackup): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_volume_restore.py b/kubevirt/models/v1beta1_volume_restore.py similarity index 81% rename from kubevirt/models/v1alpha1_volume_restore.py rename to kubevirt/models/v1beta1_volume_restore.py index 772a6915..23f7ec4d 100644 --- a/kubevirt/models/v1alpha1_volume_restore.py +++ b/kubevirt/models/v1beta1_volume_restore.py @@ -16,7 +16,7 @@ import re -class V1alpha1VolumeRestore(object): +class V1beta1VolumeRestore(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -46,7 +46,7 @@ class V1alpha1VolumeRestore(object): def __init__(self, data_volume_name=None, persistent_volume_claim='', volume_name='', volume_snapshot_name=''): """ - V1alpha1VolumeRestore - a model defined in Swagger + V1beta1VolumeRestore - a model defined in Swagger """ self._data_volume_name = None @@ -63,9 +63,9 @@ def __init__(self, data_volume_name=None, persistent_volume_claim='', volume_nam @property def data_volume_name(self): """ - Gets the data_volume_name of this V1alpha1VolumeRestore. + Gets the data_volume_name of this V1beta1VolumeRestore. - :return: The data_volume_name of this V1alpha1VolumeRestore. + :return: The data_volume_name of this V1beta1VolumeRestore. :rtype: str """ return self._data_volume_name @@ -73,9 +73,9 @@ def data_volume_name(self): @data_volume_name.setter def data_volume_name(self, data_volume_name): """ - Sets the data_volume_name of this V1alpha1VolumeRestore. + Sets the data_volume_name of this V1beta1VolumeRestore. - :param data_volume_name: The data_volume_name of this V1alpha1VolumeRestore. + :param data_volume_name: The data_volume_name of this V1beta1VolumeRestore. :type: str """ @@ -84,9 +84,9 @@ def data_volume_name(self, data_volume_name): @property def persistent_volume_claim(self): """ - Gets the persistent_volume_claim of this V1alpha1VolumeRestore. + Gets the persistent_volume_claim of this V1beta1VolumeRestore. - :return: The persistent_volume_claim of this V1alpha1VolumeRestore. + :return: The persistent_volume_claim of this V1beta1VolumeRestore. :rtype: str """ return self._persistent_volume_claim @@ -94,9 +94,9 @@ def persistent_volume_claim(self): @persistent_volume_claim.setter def persistent_volume_claim(self, persistent_volume_claim): """ - Sets the persistent_volume_claim of this V1alpha1VolumeRestore. + Sets the persistent_volume_claim of this V1beta1VolumeRestore. - :param persistent_volume_claim: The persistent_volume_claim of this V1alpha1VolumeRestore. + :param persistent_volume_claim: The persistent_volume_claim of this V1beta1VolumeRestore. :type: str """ if persistent_volume_claim is None: @@ -107,9 +107,9 @@ def persistent_volume_claim(self, persistent_volume_claim): @property def volume_name(self): """ - Gets the volume_name of this V1alpha1VolumeRestore. + Gets the volume_name of this V1beta1VolumeRestore. - :return: The volume_name of this V1alpha1VolumeRestore. + :return: The volume_name of this V1beta1VolumeRestore. :rtype: str """ return self._volume_name @@ -117,9 +117,9 @@ def volume_name(self): @volume_name.setter def volume_name(self, volume_name): """ - Sets the volume_name of this V1alpha1VolumeRestore. + Sets the volume_name of this V1beta1VolumeRestore. - :param volume_name: The volume_name of this V1alpha1VolumeRestore. + :param volume_name: The volume_name of this V1beta1VolumeRestore. :type: str """ if volume_name is None: @@ -130,9 +130,9 @@ def volume_name(self, volume_name): @property def volume_snapshot_name(self): """ - Gets the volume_snapshot_name of this V1alpha1VolumeRestore. + Gets the volume_snapshot_name of this V1beta1VolumeRestore. - :return: The volume_snapshot_name of this V1alpha1VolumeRestore. + :return: The volume_snapshot_name of this V1beta1VolumeRestore. :rtype: str """ return self._volume_snapshot_name @@ -140,9 +140,9 @@ def volume_snapshot_name(self): @volume_snapshot_name.setter def volume_snapshot_name(self, volume_snapshot_name): """ - Sets the volume_snapshot_name of this V1alpha1VolumeRestore. + Sets the volume_snapshot_name of this V1beta1VolumeRestore. - :param volume_snapshot_name: The volume_snapshot_name of this V1alpha1VolumeRestore. + :param volume_snapshot_name: The volume_snapshot_name of this V1beta1VolumeRestore. :type: str """ if volume_snapshot_name is None: @@ -192,7 +192,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VolumeRestore): + if not isinstance(other, V1beta1VolumeRestore): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_volume_snapshot_status.py b/kubevirt/models/v1beta1_volume_snapshot_status.py similarity index 76% rename from kubevirt/models/v1alpha1_volume_snapshot_status.py rename to kubevirt/models/v1beta1_volume_snapshot_status.py index 1c6adb82..539bdede 100644 --- a/kubevirt/models/v1alpha1_volume_snapshot_status.py +++ b/kubevirt/models/v1beta1_volume_snapshot_status.py @@ -16,7 +16,7 @@ import re -class V1alpha1VolumeSnapshotStatus(object): +class V1beta1VolumeSnapshotStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class V1alpha1VolumeSnapshotStatus(object): """ swagger_types = { 'creation_time': 'K8sIoApimachineryPkgApisMetaV1Time', - 'error': 'V1alpha1Error', + 'error': 'V1beta1Error', 'ready_to_use': 'bool', 'volume_snapshot_name': 'str' } @@ -46,7 +46,7 @@ class V1alpha1VolumeSnapshotStatus(object): def __init__(self, creation_time=None, error=None, ready_to_use=None, volume_snapshot_name=''): """ - V1alpha1VolumeSnapshotStatus - a model defined in Swagger + V1beta1VolumeSnapshotStatus - a model defined in Swagger """ self._creation_time = None @@ -65,9 +65,9 @@ def __init__(self, creation_time=None, error=None, ready_to_use=None, volume_sna @property def creation_time(self): """ - Gets the creation_time of this V1alpha1VolumeSnapshotStatus. + Gets the creation_time of this V1beta1VolumeSnapshotStatus. - :return: The creation_time of this V1alpha1VolumeSnapshotStatus. + :return: The creation_time of this V1beta1VolumeSnapshotStatus. :rtype: K8sIoApimachineryPkgApisMetaV1Time """ return self._creation_time @@ -75,9 +75,9 @@ def creation_time(self): @creation_time.setter def creation_time(self, creation_time): """ - Sets the creation_time of this V1alpha1VolumeSnapshotStatus. + Sets the creation_time of this V1beta1VolumeSnapshotStatus. - :param creation_time: The creation_time of this V1alpha1VolumeSnapshotStatus. + :param creation_time: The creation_time of this V1beta1VolumeSnapshotStatus. :type: K8sIoApimachineryPkgApisMetaV1Time """ @@ -86,20 +86,20 @@ def creation_time(self, creation_time): @property def error(self): """ - Gets the error of this V1alpha1VolumeSnapshotStatus. + Gets the error of this V1beta1VolumeSnapshotStatus. - :return: The error of this V1alpha1VolumeSnapshotStatus. - :rtype: V1alpha1Error + :return: The error of this V1beta1VolumeSnapshotStatus. + :rtype: V1beta1Error """ return self._error @error.setter def error(self, error): """ - Sets the error of this V1alpha1VolumeSnapshotStatus. + Sets the error of this V1beta1VolumeSnapshotStatus. - :param error: The error of this V1alpha1VolumeSnapshotStatus. - :type: V1alpha1Error + :param error: The error of this V1beta1VolumeSnapshotStatus. + :type: V1beta1Error """ self._error = error @@ -107,9 +107,9 @@ def error(self, error): @property def ready_to_use(self): """ - Gets the ready_to_use of this V1alpha1VolumeSnapshotStatus. + Gets the ready_to_use of this V1beta1VolumeSnapshotStatus. - :return: The ready_to_use of this V1alpha1VolumeSnapshotStatus. + :return: The ready_to_use of this V1beta1VolumeSnapshotStatus. :rtype: bool """ return self._ready_to_use @@ -117,9 +117,9 @@ def ready_to_use(self): @ready_to_use.setter def ready_to_use(self, ready_to_use): """ - Sets the ready_to_use of this V1alpha1VolumeSnapshotStatus. + Sets the ready_to_use of this V1beta1VolumeSnapshotStatus. - :param ready_to_use: The ready_to_use of this V1alpha1VolumeSnapshotStatus. + :param ready_to_use: The ready_to_use of this V1beta1VolumeSnapshotStatus. :type: bool """ @@ -128,9 +128,9 @@ def ready_to_use(self, ready_to_use): @property def volume_snapshot_name(self): """ - Gets the volume_snapshot_name of this V1alpha1VolumeSnapshotStatus. + Gets the volume_snapshot_name of this V1beta1VolumeSnapshotStatus. - :return: The volume_snapshot_name of this V1alpha1VolumeSnapshotStatus. + :return: The volume_snapshot_name of this V1beta1VolumeSnapshotStatus. :rtype: str """ return self._volume_snapshot_name @@ -138,9 +138,9 @@ def volume_snapshot_name(self): @volume_snapshot_name.setter def volume_snapshot_name(self, volume_snapshot_name): """ - Sets the volume_snapshot_name of this V1alpha1VolumeSnapshotStatus. + Sets the volume_snapshot_name of this V1beta1VolumeSnapshotStatus. - :param volume_snapshot_name: The volume_snapshot_name of this V1alpha1VolumeSnapshotStatus. + :param volume_snapshot_name: The volume_snapshot_name of this V1beta1VolumeSnapshotStatus. :type: str """ if volume_snapshot_name is None: @@ -190,7 +190,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VolumeSnapshotStatus): + if not isinstance(other, V1beta1VolumeSnapshotStatus): return False return self.__dict__ == other.__dict__ diff --git a/setup.py b/setup.py index fd01d76e..4d2272dd 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.3.0-alpha.0-206-g733602ac0" +VERSION = "v1.3.0-alpha.0-222-g61685a12b" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 3cd2cd2e..0be6dee3 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.3.0-alpha.0-206-g733602ac0" +"packageVersion": "v1.3.0-alpha.0-222-g61685a12b" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 59658835..a0788860 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -567,9 +567,9 @@ def test_get_api_resources_pool_kubevirt_io_v1alpha1(self): """ pass - def test_get_api_resources_snapshot_kubevirt_io_v1alpha1(self): + def test_get_api_resources_snapshot_kubevirt_io_v1beta1(self): """ - Test case for get_api_resources_snapshot_kubevirt_io_v1alpha1 + Test case for get_api_resources_snapshot_kubevirt_io_v1beta1 """ diff --git a/test/test_v1alpha1_virtual_machine_restore.py b/test/test_v1alpha1_virtual_machine_restore.py deleted file mode 100644 index a632ad1f..00000000 --- a/test/test_v1alpha1_virtual_machine_restore.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_restore import V1alpha1VirtualMachineRestore - - -class TestV1alpha1VirtualMachineRestore(unittest.TestCase): - """ V1alpha1VirtualMachineRestore unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachineRestore(self): - """ - Test V1alpha1VirtualMachineRestore - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_restore.V1alpha1VirtualMachineRestore() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_restore_list.py b/test/test_v1alpha1_virtual_machine_restore_list.py deleted file mode 100644 index 6f5cf5bc..00000000 --- a/test/test_v1alpha1_virtual_machine_restore_list.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_restore_list import V1alpha1VirtualMachineRestoreList - - -class TestV1alpha1VirtualMachineRestoreList(unittest.TestCase): - """ V1alpha1VirtualMachineRestoreList unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachineRestoreList(self): - """ - Test V1alpha1VirtualMachineRestoreList - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_restore_list.V1alpha1VirtualMachineRestoreList() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_restore_spec.py b/test/test_v1alpha1_virtual_machine_restore_spec.py deleted file mode 100644 index 50fefea9..00000000 --- a/test/test_v1alpha1_virtual_machine_restore_spec.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_restore_spec import V1alpha1VirtualMachineRestoreSpec - - -class TestV1alpha1VirtualMachineRestoreSpec(unittest.TestCase): - """ V1alpha1VirtualMachineRestoreSpec unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachineRestoreSpec(self): - """ - Test V1alpha1VirtualMachineRestoreSpec - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_restore_spec.V1alpha1VirtualMachineRestoreSpec() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_snapshot.py b/test/test_v1alpha1_virtual_machine_snapshot.py deleted file mode 100644 index 6a345852..00000000 --- a/test/test_v1alpha1_virtual_machine_snapshot.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_snapshot import V1alpha1VirtualMachineSnapshot - - -class TestV1alpha1VirtualMachineSnapshot(unittest.TestCase): - """ V1alpha1VirtualMachineSnapshot unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachineSnapshot(self): - """ - Test V1alpha1VirtualMachineSnapshot - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_snapshot.V1alpha1VirtualMachineSnapshot() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_snapshot_content.py b/test/test_v1alpha1_virtual_machine_snapshot_content.py deleted file mode 100644 index 70e80494..00000000 --- a/test/test_v1alpha1_virtual_machine_snapshot_content.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_snapshot_content import V1alpha1VirtualMachineSnapshotContent - - -class TestV1alpha1VirtualMachineSnapshotContent(unittest.TestCase): - """ V1alpha1VirtualMachineSnapshotContent unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachineSnapshotContent(self): - """ - Test V1alpha1VirtualMachineSnapshotContent - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_snapshot_content.V1alpha1VirtualMachineSnapshotContent() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_snapshot_content_list.py b/test/test_v1alpha1_virtual_machine_snapshot_content_list.py deleted file mode 100644 index c03cb22e..00000000 --- a/test/test_v1alpha1_virtual_machine_snapshot_content_list.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_snapshot_content_list import V1alpha1VirtualMachineSnapshotContentList - - -class TestV1alpha1VirtualMachineSnapshotContentList(unittest.TestCase): - """ V1alpha1VirtualMachineSnapshotContentList unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachineSnapshotContentList(self): - """ - Test V1alpha1VirtualMachineSnapshotContentList - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_snapshot_content_list.V1alpha1VirtualMachineSnapshotContentList() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_snapshot_content_spec.py b/test/test_v1alpha1_virtual_machine_snapshot_content_spec.py deleted file mode 100644 index 7633e80b..00000000 --- a/test/test_v1alpha1_virtual_machine_snapshot_content_spec.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_snapshot_content_spec import V1alpha1VirtualMachineSnapshotContentSpec - - -class TestV1alpha1VirtualMachineSnapshotContentSpec(unittest.TestCase): - """ V1alpha1VirtualMachineSnapshotContentSpec unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachineSnapshotContentSpec(self): - """ - Test V1alpha1VirtualMachineSnapshotContentSpec - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_snapshot_content_spec.V1alpha1VirtualMachineSnapshotContentSpec() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_snapshot_content_status.py b/test/test_v1alpha1_virtual_machine_snapshot_content_status.py deleted file mode 100644 index 54f317c4..00000000 --- a/test/test_v1alpha1_virtual_machine_snapshot_content_status.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_snapshot_content_status import V1alpha1VirtualMachineSnapshotContentStatus - - -class TestV1alpha1VirtualMachineSnapshotContentStatus(unittest.TestCase): - """ V1alpha1VirtualMachineSnapshotContentStatus unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachineSnapshotContentStatus(self): - """ - Test V1alpha1VirtualMachineSnapshotContentStatus - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_snapshot_content_status.V1alpha1VirtualMachineSnapshotContentStatus() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_snapshot_spec.py b/test/test_v1alpha1_virtual_machine_snapshot_spec.py deleted file mode 100644 index a91a4ce0..00000000 --- a/test/test_v1alpha1_virtual_machine_snapshot_spec.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_snapshot_spec import V1alpha1VirtualMachineSnapshotSpec - - -class TestV1alpha1VirtualMachineSnapshotSpec(unittest.TestCase): - """ V1alpha1VirtualMachineSnapshotSpec unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachineSnapshotSpec(self): - """ - Test V1alpha1VirtualMachineSnapshotSpec - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_snapshot_spec.V1alpha1VirtualMachineSnapshotSpec() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_volume_snapshot_status.py b/test/test_v1alpha1_volume_snapshot_status.py deleted file mode 100644 index 309f5bcc..00000000 --- a/test/test_v1alpha1_volume_snapshot_status.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_volume_snapshot_status import V1alpha1VolumeSnapshotStatus - - -class TestV1alpha1VolumeSnapshotStatus(unittest.TestCase): - """ V1alpha1VolumeSnapshotStatus unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VolumeSnapshotStatus(self): - """ - Test V1alpha1VolumeSnapshotStatus - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_volume_snapshot_status.V1alpha1VolumeSnapshotStatus() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_source_spec.py b/test/test_v1beta1_condition.py similarity index 66% rename from test/test_v1alpha1_source_spec.py rename to test/test_v1beta1_condition.py index cce3573d..27f026e2 100644 --- a/test/test_v1alpha1_source_spec.py +++ b/test/test_v1beta1_condition.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_source_spec import V1alpha1SourceSpec +from kubevirt.models.v1beta1_condition import V1beta1Condition -class TestV1alpha1SourceSpec(unittest.TestCase): - """ V1alpha1SourceSpec unit test stubs """ +class TestV1beta1Condition(unittest.TestCase): + """ V1beta1Condition unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1SourceSpec(self): + def testV1beta1Condition(self): """ - Test V1alpha1SourceSpec + Test V1beta1Condition """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_source_spec.V1alpha1SourceSpec() + #model = kubevirt.models.v1beta1_condition.V1beta1Condition() pass diff --git a/test/test_v1alpha1_error.py b/test/test_v1beta1_error.py similarity index 69% rename from test/test_v1alpha1_error.py rename to test/test_v1beta1_error.py index 414bffe8..af85176f 100644 --- a/test/test_v1alpha1_error.py +++ b/test/test_v1beta1_error.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_error import V1alpha1Error +from kubevirt.models.v1beta1_error import V1beta1Error -class TestV1alpha1Error(unittest.TestCase): - """ V1alpha1Error unit test stubs """ +class TestV1beta1Error(unittest.TestCase): + """ V1beta1Error unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1Error(self): + def testV1beta1Error(self): """ - Test V1alpha1Error + Test V1beta1Error """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_error.V1alpha1Error() + #model = kubevirt.models.v1beta1_error.V1beta1Error() pass diff --git a/test/test_v1alpha1_snapshot_volumes_lists.py b/test/test_v1beta1_persistent_volume_claim.py similarity index 61% rename from test/test_v1alpha1_snapshot_volumes_lists.py rename to test/test_v1beta1_persistent_volume_claim.py index d13871bd..75f77f78 100644 --- a/test/test_v1alpha1_snapshot_volumes_lists.py +++ b/test/test_v1beta1_persistent_volume_claim.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_snapshot_volumes_lists import V1alpha1SnapshotVolumesLists +from kubevirt.models.v1beta1_persistent_volume_claim import V1beta1PersistentVolumeClaim -class TestV1alpha1SnapshotVolumesLists(unittest.TestCase): - """ V1alpha1SnapshotVolumesLists unit test stubs """ +class TestV1beta1PersistentVolumeClaim(unittest.TestCase): + """ V1beta1PersistentVolumeClaim unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1SnapshotVolumesLists(self): + def testV1beta1PersistentVolumeClaim(self): """ - Test V1alpha1SnapshotVolumesLists + Test V1beta1PersistentVolumeClaim """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_snapshot_volumes_lists.V1alpha1SnapshotVolumesLists() + #model = kubevirt.models.v1beta1_persistent_volume_claim.V1beta1PersistentVolumeClaim() pass diff --git a/test/test_v1alpha1_virtual_machine.py b/test/test_v1beta1_snapshot_volumes_lists.py similarity index 61% rename from test/test_v1alpha1_virtual_machine.py rename to test/test_v1beta1_snapshot_volumes_lists.py index 196a1ede..651e87f0 100644 --- a/test/test_v1alpha1_virtual_machine.py +++ b/test/test_v1beta1_snapshot_volumes_lists.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine import V1alpha1VirtualMachine +from kubevirt.models.v1beta1_snapshot_volumes_lists import V1beta1SnapshotVolumesLists -class TestV1alpha1VirtualMachine(unittest.TestCase): - """ V1alpha1VirtualMachine unit test stubs """ +class TestV1beta1SnapshotVolumesLists(unittest.TestCase): + """ V1beta1SnapshotVolumesLists unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachine(self): + def testV1beta1SnapshotVolumesLists(self): """ - Test V1alpha1VirtualMachine + Test V1beta1SnapshotVolumesLists """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine.V1alpha1VirtualMachine() + #model = kubevirt.models.v1beta1_snapshot_volumes_lists.V1beta1SnapshotVolumesLists() pass diff --git a/test/test_v1alpha1_volume_backup.py b/test/test_v1beta1_source_spec.py similarity index 65% rename from test/test_v1alpha1_volume_backup.py rename to test/test_v1beta1_source_spec.py index 49fe4d39..5bd0554a 100644 --- a/test/test_v1alpha1_volume_backup.py +++ b/test/test_v1beta1_source_spec.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_volume_backup import V1alpha1VolumeBackup +from kubevirt.models.v1beta1_source_spec import V1beta1SourceSpec -class TestV1alpha1VolumeBackup(unittest.TestCase): - """ V1alpha1VolumeBackup unit test stubs """ +class TestV1beta1SourceSpec(unittest.TestCase): + """ V1beta1SourceSpec unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VolumeBackup(self): + def testV1beta1SourceSpec(self): """ - Test V1alpha1VolumeBackup + Test V1beta1SourceSpec """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_volume_backup.V1alpha1VolumeBackup() + #model = kubevirt.models.v1beta1_source_spec.V1beta1SourceSpec() pass diff --git a/test/test_v1alpha1_volume_restore.py b/test/test_v1beta1_virtual_machine.py similarity index 64% rename from test/test_v1alpha1_volume_restore.py rename to test/test_v1beta1_virtual_machine.py index f0d24f4b..4ca11358 100644 --- a/test/test_v1alpha1_volume_restore.py +++ b/test/test_v1beta1_virtual_machine.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_volume_restore import V1alpha1VolumeRestore +from kubevirt.models.v1beta1_virtual_machine import V1beta1VirtualMachine -class TestV1alpha1VolumeRestore(unittest.TestCase): - """ V1alpha1VolumeRestore unit test stubs """ +class TestV1beta1VirtualMachine(unittest.TestCase): + """ V1beta1VirtualMachine unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VolumeRestore(self): + def testV1beta1VirtualMachine(self): """ - Test V1alpha1VolumeRestore + Test V1beta1VirtualMachine """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_volume_restore.V1alpha1VolumeRestore() + #model = kubevirt.models.v1beta1_virtual_machine.V1beta1VirtualMachine() pass diff --git a/test/test_v1beta1_virtual_machine_restore.py b/test/test_v1beta1_virtual_machine_restore.py new file mode 100644 index 00000000..a0723b25 --- /dev/null +++ b/test/test_v1beta1_virtual_machine_restore.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_restore import V1beta1VirtualMachineRestore + + +class TestV1beta1VirtualMachineRestore(unittest.TestCase): + """ V1beta1VirtualMachineRestore unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineRestore(self): + """ + Test V1beta1VirtualMachineRestore + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_restore.V1beta1VirtualMachineRestore() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_restore_list.py b/test/test_v1beta1_virtual_machine_restore_list.py new file mode 100644 index 00000000..b47bc0a0 --- /dev/null +++ b/test/test_v1beta1_virtual_machine_restore_list.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_restore_list import V1beta1VirtualMachineRestoreList + + +class TestV1beta1VirtualMachineRestoreList(unittest.TestCase): + """ V1beta1VirtualMachineRestoreList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineRestoreList(self): + """ + Test V1beta1VirtualMachineRestoreList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_restore_list.V1beta1VirtualMachineRestoreList() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_restore_spec.py b/test/test_v1beta1_virtual_machine_restore_spec.py new file mode 100644 index 00000000..22dee181 --- /dev/null +++ b/test/test_v1beta1_virtual_machine_restore_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_restore_spec import V1beta1VirtualMachineRestoreSpec + + +class TestV1beta1VirtualMachineRestoreSpec(unittest.TestCase): + """ V1beta1VirtualMachineRestoreSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineRestoreSpec(self): + """ + Test V1beta1VirtualMachineRestoreSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_restore_spec.V1beta1VirtualMachineRestoreSpec() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_snapshot_list.py b/test/test_v1beta1_virtual_machine_restore_status.py similarity index 58% rename from test/test_v1alpha1_virtual_machine_snapshot_list.py rename to test/test_v1beta1_virtual_machine_restore_status.py index 52db287f..6c0d0a68 100644 --- a/test/test_v1alpha1_virtual_machine_snapshot_list.py +++ b/test/test_v1beta1_virtual_machine_restore_status.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_snapshot_list import V1alpha1VirtualMachineSnapshotList +from kubevirt.models.v1beta1_virtual_machine_restore_status import V1beta1VirtualMachineRestoreStatus -class TestV1alpha1VirtualMachineSnapshotList(unittest.TestCase): - """ V1alpha1VirtualMachineSnapshotList unit test stubs """ +class TestV1beta1VirtualMachineRestoreStatus(unittest.TestCase): + """ V1beta1VirtualMachineRestoreStatus unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachineSnapshotList(self): + def testV1beta1VirtualMachineRestoreStatus(self): """ - Test V1alpha1VirtualMachineSnapshotList + Test V1beta1VirtualMachineRestoreStatus """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_snapshot_list.V1alpha1VirtualMachineSnapshotList() + #model = kubevirt.models.v1beta1_virtual_machine_restore_status.V1beta1VirtualMachineRestoreStatus() pass diff --git a/test/test_v1alpha1_persistent_volume_claim.py b/test/test_v1beta1_virtual_machine_snapshot.py similarity index 60% rename from test/test_v1alpha1_persistent_volume_claim.py rename to test/test_v1beta1_virtual_machine_snapshot.py index 447a4225..0a14dd97 100644 --- a/test/test_v1alpha1_persistent_volume_claim.py +++ b/test/test_v1beta1_virtual_machine_snapshot.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_persistent_volume_claim import V1alpha1PersistentVolumeClaim +from kubevirt.models.v1beta1_virtual_machine_snapshot import V1beta1VirtualMachineSnapshot -class TestV1alpha1PersistentVolumeClaim(unittest.TestCase): - """ V1alpha1PersistentVolumeClaim unit test stubs """ +class TestV1beta1VirtualMachineSnapshot(unittest.TestCase): + """ V1beta1VirtualMachineSnapshot unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1PersistentVolumeClaim(self): + def testV1beta1VirtualMachineSnapshot(self): """ - Test V1alpha1PersistentVolumeClaim + Test V1beta1VirtualMachineSnapshot """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_persistent_volume_claim.V1alpha1PersistentVolumeClaim() + #model = kubevirt.models.v1beta1_virtual_machine_snapshot.V1beta1VirtualMachineSnapshot() pass diff --git a/test/test_v1alpha1_virtual_machine_snapshot_status.py b/test/test_v1beta1_virtual_machine_snapshot_content.py similarity index 57% rename from test/test_v1alpha1_virtual_machine_snapshot_status.py rename to test/test_v1beta1_virtual_machine_snapshot_content.py index 5aab411e..43108d65 100644 --- a/test/test_v1alpha1_virtual_machine_snapshot_status.py +++ b/test/test_v1beta1_virtual_machine_snapshot_content.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_snapshot_status import V1alpha1VirtualMachineSnapshotStatus +from kubevirt.models.v1beta1_virtual_machine_snapshot_content import V1beta1VirtualMachineSnapshotContent -class TestV1alpha1VirtualMachineSnapshotStatus(unittest.TestCase): - """ V1alpha1VirtualMachineSnapshotStatus unit test stubs """ +class TestV1beta1VirtualMachineSnapshotContent(unittest.TestCase): + """ V1beta1VirtualMachineSnapshotContent unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachineSnapshotStatus(self): + def testV1beta1VirtualMachineSnapshotContent(self): """ - Test V1alpha1VirtualMachineSnapshotStatus + Test V1beta1VirtualMachineSnapshotContent """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_snapshot_status.V1alpha1VirtualMachineSnapshotStatus() + #model = kubevirt.models.v1beta1_virtual_machine_snapshot_content.V1beta1VirtualMachineSnapshotContent() pass diff --git a/test/test_v1beta1_virtual_machine_snapshot_content_list.py b/test/test_v1beta1_virtual_machine_snapshot_content_list.py new file mode 100644 index 00000000..8c601860 --- /dev/null +++ b/test/test_v1beta1_virtual_machine_snapshot_content_list.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_snapshot_content_list import V1beta1VirtualMachineSnapshotContentList + + +class TestV1beta1VirtualMachineSnapshotContentList(unittest.TestCase): + """ V1beta1VirtualMachineSnapshotContentList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineSnapshotContentList(self): + """ + Test V1beta1VirtualMachineSnapshotContentList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_snapshot_content_list.V1beta1VirtualMachineSnapshotContentList() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_snapshot_content_spec.py b/test/test_v1beta1_virtual_machine_snapshot_content_spec.py new file mode 100644 index 00000000..e5d664b8 --- /dev/null +++ b/test/test_v1beta1_virtual_machine_snapshot_content_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_snapshot_content_spec import V1beta1VirtualMachineSnapshotContentSpec + + +class TestV1beta1VirtualMachineSnapshotContentSpec(unittest.TestCase): + """ V1beta1VirtualMachineSnapshotContentSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineSnapshotContentSpec(self): + """ + Test V1beta1VirtualMachineSnapshotContentSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_snapshot_content_spec.V1beta1VirtualMachineSnapshotContentSpec() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_snapshot_content_status.py b/test/test_v1beta1_virtual_machine_snapshot_content_status.py new file mode 100644 index 00000000..64a1a9f7 --- /dev/null +++ b/test/test_v1beta1_virtual_machine_snapshot_content_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_snapshot_content_status import V1beta1VirtualMachineSnapshotContentStatus + + +class TestV1beta1VirtualMachineSnapshotContentStatus(unittest.TestCase): + """ V1beta1VirtualMachineSnapshotContentStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineSnapshotContentStatus(self): + """ + Test V1beta1VirtualMachineSnapshotContentStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_snapshot_content_status.V1beta1VirtualMachineSnapshotContentStatus() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_snapshot_list.py b/test/test_v1beta1_virtual_machine_snapshot_list.py new file mode 100644 index 00000000..cb2b571e --- /dev/null +++ b/test/test_v1beta1_virtual_machine_snapshot_list.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_snapshot_list import V1beta1VirtualMachineSnapshotList + + +class TestV1beta1VirtualMachineSnapshotList(unittest.TestCase): + """ V1beta1VirtualMachineSnapshotList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineSnapshotList(self): + """ + Test V1beta1VirtualMachineSnapshotList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_snapshot_list.V1beta1VirtualMachineSnapshotList() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_snapshot_spec.py b/test/test_v1beta1_virtual_machine_snapshot_spec.py new file mode 100644 index 00000000..86a09d82 --- /dev/null +++ b/test/test_v1beta1_virtual_machine_snapshot_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_snapshot_spec import V1beta1VirtualMachineSnapshotSpec + + +class TestV1beta1VirtualMachineSnapshotSpec(unittest.TestCase): + """ V1beta1VirtualMachineSnapshotSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineSnapshotSpec(self): + """ + Test V1beta1VirtualMachineSnapshotSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_snapshot_spec.V1beta1VirtualMachineSnapshotSpec() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_restore_status.py b/test/test_v1beta1_virtual_machine_snapshot_status.py similarity index 58% rename from test/test_v1alpha1_virtual_machine_restore_status.py rename to test/test_v1beta1_virtual_machine_snapshot_status.py index b29e673b..103e24dd 100644 --- a/test/test_v1alpha1_virtual_machine_restore_status.py +++ b/test/test_v1beta1_virtual_machine_snapshot_status.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_restore_status import V1alpha1VirtualMachineRestoreStatus +from kubevirt.models.v1beta1_virtual_machine_snapshot_status import V1beta1VirtualMachineSnapshotStatus -class TestV1alpha1VirtualMachineRestoreStatus(unittest.TestCase): - """ V1alpha1VirtualMachineRestoreStatus unit test stubs """ +class TestV1beta1VirtualMachineSnapshotStatus(unittest.TestCase): + """ V1beta1VirtualMachineSnapshotStatus unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachineRestoreStatus(self): + def testV1beta1VirtualMachineSnapshotStatus(self): """ - Test V1alpha1VirtualMachineRestoreStatus + Test V1beta1VirtualMachineSnapshotStatus """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_restore_status.V1alpha1VirtualMachineRestoreStatus() + #model = kubevirt.models.v1beta1_virtual_machine_snapshot_status.V1beta1VirtualMachineSnapshotStatus() pass diff --git a/test/test_v1beta1_volume_backup.py b/test/test_v1beta1_volume_backup.py new file mode 100644 index 00000000..3b6270ba --- /dev/null +++ b/test/test_v1beta1_volume_backup.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_volume_backup import V1beta1VolumeBackup + + +class TestV1beta1VolumeBackup(unittest.TestCase): + """ V1beta1VolumeBackup unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VolumeBackup(self): + """ + Test V1beta1VolumeBackup + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_volume_backup.V1beta1VolumeBackup() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_volume_restore.py b/test/test_v1beta1_volume_restore.py new file mode 100644 index 00000000..fccb483f --- /dev/null +++ b/test/test_v1beta1_volume_restore.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_volume_restore import V1beta1VolumeRestore + + +class TestV1beta1VolumeRestore(unittest.TestCase): + """ V1beta1VolumeRestore unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VolumeRestore(self): + """ + Test V1beta1VolumeRestore + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_volume_restore.V1beta1VolumeRestore() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_volume_snapshot_status.py b/test/test_v1beta1_volume_snapshot_status.py new file mode 100644 index 00000000..f7404de2 --- /dev/null +++ b/test/test_v1beta1_volume_snapshot_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_volume_snapshot_status import V1beta1VolumeSnapshotStatus + + +class TestV1beta1VolumeSnapshotStatus(unittest.TestCase): + """ V1beta1VolumeSnapshotStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VolumeSnapshotStatus(self): + """ + Test V1beta1VolumeSnapshotStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_volume_snapshot_status.V1beta1VolumeSnapshotStatus() + pass + + +if __name__ == '__main__': + unittest.main() From 8b512c54445a66713fa64ff696031e5f314c52dd Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 31 May 2024 04:17:50 +0000 Subject: [PATCH 403/521] Client Python update by KubeVirt Prow build 1796385005308481536 --- README.md | 42 +++++----- docs/DefaultApi.md | 62 +++++++------- docs/V1alpha1VirtualMachineExportLink.md | 12 --- ...port.md => V1beta1VirtualMachineExport.md} | 6 +- docs/V1beta1VirtualMachineExportLink.md | 12 +++ ...md => V1beta1VirtualMachineExportLinks.md} | 6 +- ....md => V1beta1VirtualMachineExportList.md} | 4 +- ...=> V1beta1VirtualMachineExportManifest.md} | 2 +- ....md => V1beta1VirtualMachineExportSpec.md} | 2 +- ...d => V1beta1VirtualMachineExportStatus.md} | 6 +- ...d => V1beta1VirtualMachineExportVolume.md} | 4 +- ...1beta1VirtualMachineExportVolumeFormat.md} | 2 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 54 ++++++------- kubevirt/__init__.py | 18 ++--- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 80 +++++++++---------- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 18 ++--- ...t.py => v1beta1_virtual_machine_export.py} | 58 +++++++------- ...=> v1beta1_virtual_machine_export_link.py} | 42 +++++----- ...> v1beta1_virtual_machine_export_links.py} | 34 ++++---- ...=> v1beta1_virtual_machine_export_list.py} | 44 +++++----- ...1beta1_virtual_machine_export_manifest.py} | 22 ++--- ...=> v1beta1_virtual_machine_export_spec.py} | 30 +++---- ... v1beta1_virtual_machine_export_status.py} | 74 ++++++++--------- ... v1beta1_virtual_machine_export_volume.py} | 28 +++---- ...1_virtual_machine_export_volume_format.py} | 22 ++--- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 4 +- ...1alpha1_virtual_machine_export_manifest.py | 44 ---------- ..._v1alpha1_virtual_machine_export_status.py | 44 ---------- ..._v1alpha1_virtual_machine_export_volume.py | 44 ---------- ...a1_virtual_machine_export_volume_format.py | 44 ---------- ...=> test_v1beta1_virtual_machine_export.py} | 12 +-- ...st_v1beta1_virtual_machine_export_link.py} | 12 +-- ...t_v1beta1_virtual_machine_export_links.py} | 12 +-- ...st_v1beta1_virtual_machine_export_list.py} | 12 +-- ...v1beta1_virtual_machine_export_manifest.py | 44 ++++++++++ ...est_v1beta1_virtual_machine_export_spec.py | 44 ++++++++++ ..._v1beta1_virtual_machine_export_status.py} | 12 +-- ...t_v1beta1_virtual_machine_export_volume.py | 44 ++++++++++ ...a1_virtual_machine_export_volume_format.py | 44 ++++++++++ 44 files changed, 555 insertions(+), 555 deletions(-) delete mode 100644 docs/V1alpha1VirtualMachineExportLink.md rename docs/{V1alpha1VirtualMachineExport.md => V1beta1VirtualMachineExport.md} (81%) create mode 100644 docs/V1beta1VirtualMachineExportLink.md rename docs/{V1alpha1VirtualMachineExportLinks.md => V1beta1VirtualMachineExportLinks.md} (52%) rename docs/{V1alpha1VirtualMachineExportList.md => V1beta1VirtualMachineExportList.md} (89%) rename docs/{V1alpha1VirtualMachineExportManifest.md => V1beta1VirtualMachineExportManifest.md} (91%) rename docs/{V1alpha1VirtualMachineExportSpec.md => V1beta1VirtualMachineExportSpec.md} (96%) rename docs/{V1alpha1VirtualMachineExportStatus.md => V1beta1VirtualMachineExportStatus.md} (83%) rename docs/{V1alpha1VirtualMachineExportVolume.md => V1beta1VirtualMachineExportVolume.md} (68%) rename docs/{V1alpha1VirtualMachineExportVolumeFormat.md => V1beta1VirtualMachineExportVolumeFormat.md} (91%) rename kubevirt/models/{v1alpha1_virtual_machine_export.py => v1beta1_virtual_machine_export.py} (75%) rename kubevirt/models/{v1alpha1_virtual_machine_export_link.py => v1beta1_virtual_machine_export_link.py} (73%) rename kubevirt/models/{v1alpha1_virtual_machine_export_links.py => v1beta1_virtual_machine_export_links.py} (73%) rename kubevirt/models/{v1alpha1_virtual_machine_export_list.py => v1beta1_virtual_machine_export_list.py} (78%) rename kubevirt/models/{v1alpha1_virtual_machine_export_manifest.py => v1beta1_virtual_machine_export_manifest.py} (81%) rename kubevirt/models/{v1alpha1_virtual_machine_export_spec.py => v1beta1_virtual_machine_export_spec.py} (82%) rename kubevirt/models/{v1alpha1_virtual_machine_export_status.py => v1beta1_virtual_machine_export_status.py} (74%) rename kubevirt/models/{v1alpha1_virtual_machine_export_volume.py => v1beta1_virtual_machine_export_volume.py} (76%) rename kubevirt/models/{v1alpha1_virtual_machine_export_volume_format.py => v1beta1_virtual_machine_export_volume_format.py} (80%) delete mode 100644 test/test_v1alpha1_virtual_machine_export_manifest.py delete mode 100644 test/test_v1alpha1_virtual_machine_export_status.py delete mode 100644 test/test_v1alpha1_virtual_machine_export_volume.py delete mode 100644 test/test_v1alpha1_virtual_machine_export_volume_format.py rename test/{test_v1alpha1_virtual_machine_export.py => test_v1beta1_virtual_machine_export.py} (61%) rename test/{test_v1alpha1_virtual_machine_export_link.py => test_v1beta1_virtual_machine_export_link.py} (59%) rename test/{test_v1alpha1_virtual_machine_export_spec.py => test_v1beta1_virtual_machine_export_links.py} (59%) rename test/{test_v1alpha1_virtual_machine_export_list.py => test_v1beta1_virtual_machine_export_list.py} (59%) create mode 100644 test/test_v1beta1_virtual_machine_export_manifest.py create mode 100644 test/test_v1beta1_virtual_machine_export_spec.py rename test/{test_v1alpha1_virtual_machine_export_links.py => test_v1beta1_virtual_machine_export_status.py} (58%) create mode 100644 test/test_v1beta1_virtual_machine_export_volume.py create mode 100644 test/test_v1beta1_virtual_machine_export_volume_format.py diff --git a/README.md b/README.md index 60af518c..ea539b5e 100644 --- a/README.md +++ b/README.md @@ -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-222-g61685a12b +- Package version: v1.3.0-beta.0-20-ge54ebc8d2 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -72,7 +72,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**create_migration_policy**](docs/DefaultApi.md#create_migration_policy) | **POST** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | *DefaultApi* | [**create_namespaced_kube_virt**](docs/DefaultApi.md#create_namespaced_kube_virt) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt | *DefaultApi* | [**create_namespaced_virtual_machine**](docs/DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines | -*DefaultApi* | [**create_namespaced_virtual_machine_export**](docs/DefaultApi.md#create_namespaced_virtual_machine_export) | **POST** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports | +*DefaultApi* | [**create_namespaced_virtual_machine_export**](docs/DefaultApi.md#create_namespaced_virtual_machine_export) | **POST** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports | *DefaultApi* | [**create_namespaced_virtual_machine_instance**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances | *DefaultApi* | [**create_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations | *DefaultApi* | [**create_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets | @@ -89,7 +89,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_collection_migration_policy**](docs/DefaultApi.md#delete_collection_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | *DefaultApi* | [**delete_collection_namespaced_kube_virt**](docs/DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt | *DefaultApi* | [**delete_collection_namespaced_virtual_machine**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_export**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_export**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets | @@ -106,7 +106,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_migration_policy**](docs/DefaultApi.md#delete_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | *DefaultApi* | [**delete_namespaced_kube_virt**](docs/DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | *DefaultApi* | [**delete_namespaced_virtual_machine**](docs/DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | -*DefaultApi* | [**delete_namespaced_virtual_machine_export**](docs/DefaultApi.md#delete_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports/{name} | +*DefaultApi* | [**delete_namespaced_virtual_machine_export**](docs/DefaultApi.md#delete_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | @@ -131,7 +131,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**get_api_group_pool_kubevirt_io**](docs/DefaultApi.md#get_api_group_pool_kubevirt_io) | **GET** /apis/pool.kubevirt.io/ | *DefaultApi* | [**get_api_group_snapshot_kubevirt_io**](docs/DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | *DefaultApi* | [**get_api_resources_clone_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_clone_kubevirt_io_v1alpha1) | **GET** /apis/clone.kubevirt.io/v1alpha1/ | -*DefaultApi* | [**get_api_resources_export_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_export_kubevirt_io_v1alpha1) | **GET** /apis/export.kubevirt.io/v1alpha1/ | +*DefaultApi* | [**get_api_resources_export_kubevirt_io_v1beta1**](docs/DefaultApi.md#get_api_resources_export_kubevirt_io_v1beta1) | **GET** /apis/export.kubevirt.io/v1beta1/ | *DefaultApi* | [**get_api_resources_instancetype_kubevirt_io_v1beta1**](docs/DefaultApi.md#get_api_resources_instancetype_kubevirt_io_v1beta1) | **GET** /apis/instancetype.kubevirt.io/v1beta1/ | *DefaultApi* | [**get_api_resources_kubevirt_io_v1**](docs/DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | *DefaultApi* | [**get_api_resources_migrations_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_migrations_kubevirt_io_v1alpha1) | **GET** /apis/migrations.kubevirt.io/v1alpha1/ | @@ -145,7 +145,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_migration_policy**](docs/DefaultApi.md#list_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | *DefaultApi* | [**list_namespaced_kube_virt**](docs/DefaultApi.md#list_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt | *DefaultApi* | [**list_namespaced_virtual_machine**](docs/DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines | -*DefaultApi* | [**list_namespaced_virtual_machine_export**](docs/DefaultApi.md#list_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports | +*DefaultApi* | [**list_namespaced_virtual_machine_export**](docs/DefaultApi.md#list_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports | *DefaultApi* | [**list_namespaced_virtual_machine_instance**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances | *DefaultApi* | [**list_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations | *DefaultApi* | [**list_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets | @@ -159,7 +159,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_virtual_machine_clone**](docs/DefaultApi.md#list_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | *DefaultApi* | [**list_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#list_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | *DefaultApi* | [**list_virtual_machine_cluster_preference**](docs/DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | -*DefaultApi* | [**list_virtual_machine_export_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_export_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1alpha1/virtualmachineexports | +*DefaultApi* | [**list_virtual_machine_export_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_export_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1beta1/virtualmachineexports | *DefaultApi* | [**list_virtual_machine_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachines | *DefaultApi* | [**list_virtual_machine_instance_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstances | *DefaultApi* | [**list_virtual_machine_instance_migration_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancemigrations | @@ -174,7 +174,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**patch_migration_policy**](docs/DefaultApi.md#patch_migration_policy) | **PATCH** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | *DefaultApi* | [**patch_namespaced_kube_virt**](docs/DefaultApi.md#patch_namespaced_kube_virt) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | *DefaultApi* | [**patch_namespaced_virtual_machine**](docs/DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | -*DefaultApi* | [**patch_namespaced_virtual_machine_export**](docs/DefaultApi.md#patch_namespaced_virtual_machine_export) | **PATCH** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports/{name} | +*DefaultApi* | [**patch_namespaced_virtual_machine_export**](docs/DefaultApi.md#patch_namespaced_virtual_machine_export) | **PATCH** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | @@ -191,7 +191,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**read_migration_policy**](docs/DefaultApi.md#read_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | *DefaultApi* | [**read_namespaced_kube_virt**](docs/DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | *DefaultApi* | [**read_namespaced_virtual_machine**](docs/DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | -*DefaultApi* | [**read_namespaced_virtual_machine_export**](docs/DefaultApi.md#read_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports/{name} | +*DefaultApi* | [**read_namespaced_virtual_machine_export**](docs/DefaultApi.md#read_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name} | *DefaultApi* | [**read_namespaced_virtual_machine_instance**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | *DefaultApi* | [**read_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | *DefaultApi* | [**read_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | @@ -208,7 +208,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**replace_migration_policy**](docs/DefaultApi.md#replace_migration_policy) | **PUT** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | *DefaultApi* | [**replace_namespaced_kube_virt**](docs/DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | *DefaultApi* | [**replace_namespaced_virtual_machine**](docs/DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | -*DefaultApi* | [**replace_namespaced_virtual_machine_export**](docs/DefaultApi.md#replace_namespaced_virtual_machine_export) | **PUT** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports/{name} | +*DefaultApi* | [**replace_namespaced_virtual_machine_export**](docs/DefaultApi.md#replace_namespaced_virtual_machine_export) | **PUT** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | @@ -307,7 +307,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**watch_migration_policy_list_for_all_namespaces**](docs/DefaultApi.md#watch_migration_policy_list_for_all_namespaces) | **GET** /apis/migrations.kubevirt.io/v1alpha1/watch/migrationpolicies | *DefaultApi* | [**watch_namespaced_kube_virt**](docs/DefaultApi.md#watch_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/kubevirt | *DefaultApi* | [**watch_namespaced_virtual_machine**](docs/DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachines | -*DefaultApi* | [**watch_namespaced_virtual_machine_export**](docs/DefaultApi.md#watch_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachineexports | +*DefaultApi* | [**watch_namespaced_virtual_machine_export**](docs/DefaultApi.md#watch_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachineexports | *DefaultApi* | [**watch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstances | *DefaultApi* | [**watch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancemigrations | *DefaultApi* | [**watch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancepresets | @@ -321,7 +321,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**watch_virtual_machine_clone_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_clone_list_for_all_namespaces) | **GET** /apis/clone.kubevirt.io/v1alpha1/watch/virtualmachineclones | *DefaultApi* | [**watch_virtual_machine_cluster_instancetype_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterinstancetypes | *DefaultApi* | [**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterpreferences | -*DefaultApi* | [**watch_virtual_machine_export_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_export_list_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1alpha1/watch/virtualmachineexports | +*DefaultApi* | [**watch_virtual_machine_export_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_export_list_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1beta1/watch/virtualmachineexports | *DefaultApi* | [**watch_virtual_machine_instance_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstances | *DefaultApi* | [**watch_virtual_machine_instance_migration_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancemigrations | *DefaultApi* | [**watch_virtual_machine_instance_preset_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancepresets | @@ -625,15 +625,6 @@ Class | Method | HTTP request | Description - [V1alpha1VirtualMachineCloneSpec](docs/V1alpha1VirtualMachineCloneSpec.md) - [V1alpha1VirtualMachineCloneStatus](docs/V1alpha1VirtualMachineCloneStatus.md) - [V1alpha1VirtualMachineCloneTemplateFilters](docs/V1alpha1VirtualMachineCloneTemplateFilters.md) - - [V1alpha1VirtualMachineExport](docs/V1alpha1VirtualMachineExport.md) - - [V1alpha1VirtualMachineExportLink](docs/V1alpha1VirtualMachineExportLink.md) - - [V1alpha1VirtualMachineExportLinks](docs/V1alpha1VirtualMachineExportLinks.md) - - [V1alpha1VirtualMachineExportList](docs/V1alpha1VirtualMachineExportList.md) - - [V1alpha1VirtualMachineExportManifest](docs/V1alpha1VirtualMachineExportManifest.md) - - [V1alpha1VirtualMachineExportSpec](docs/V1alpha1VirtualMachineExportSpec.md) - - [V1alpha1VirtualMachineExportStatus](docs/V1alpha1VirtualMachineExportStatus.md) - - [V1alpha1VirtualMachineExportVolume](docs/V1alpha1VirtualMachineExportVolume.md) - - [V1alpha1VirtualMachineExportVolumeFormat](docs/V1alpha1VirtualMachineExportVolumeFormat.md) - [V1alpha1VirtualMachinePool](docs/V1alpha1VirtualMachinePool.md) - [V1alpha1VirtualMachinePoolCondition](docs/V1alpha1VirtualMachinePoolCondition.md) - [V1alpha1VirtualMachinePoolList](docs/V1alpha1VirtualMachinePoolList.md) @@ -677,6 +668,15 @@ Class | Method | HTTP request | Description - [V1beta1VirtualMachineClusterInstancetypeList](docs/V1beta1VirtualMachineClusterInstancetypeList.md) - [V1beta1VirtualMachineClusterPreference](docs/V1beta1VirtualMachineClusterPreference.md) - [V1beta1VirtualMachineClusterPreferenceList](docs/V1beta1VirtualMachineClusterPreferenceList.md) + - [V1beta1VirtualMachineExport](docs/V1beta1VirtualMachineExport.md) + - [V1beta1VirtualMachineExportLink](docs/V1beta1VirtualMachineExportLink.md) + - [V1beta1VirtualMachineExportLinks](docs/V1beta1VirtualMachineExportLinks.md) + - [V1beta1VirtualMachineExportList](docs/V1beta1VirtualMachineExportList.md) + - [V1beta1VirtualMachineExportManifest](docs/V1beta1VirtualMachineExportManifest.md) + - [V1beta1VirtualMachineExportSpec](docs/V1beta1VirtualMachineExportSpec.md) + - [V1beta1VirtualMachineExportStatus](docs/V1beta1VirtualMachineExportStatus.md) + - [V1beta1VirtualMachineExportVolume](docs/V1beta1VirtualMachineExportVolume.md) + - [V1beta1VirtualMachineExportVolumeFormat](docs/V1beta1VirtualMachineExportVolumeFormat.md) - [V1beta1VirtualMachineInstancetype](docs/V1beta1VirtualMachineInstancetype.md) - [V1beta1VirtualMachineInstancetypeList](docs/V1beta1VirtualMachineInstancetypeList.md) - [V1beta1VirtualMachineInstancetypeSpec](docs/V1beta1VirtualMachineInstancetypeSpec.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 3e358464..95af20c4 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -7,7 +7,7 @@ Method | HTTP request | Description [**create_migration_policy**](DefaultApi.md#create_migration_policy) | **POST** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | [**create_namespaced_kube_virt**](DefaultApi.md#create_namespaced_kube_virt) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt | [**create_namespaced_virtual_machine**](DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines | -[**create_namespaced_virtual_machine_export**](DefaultApi.md#create_namespaced_virtual_machine_export) | **POST** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports | +[**create_namespaced_virtual_machine_export**](DefaultApi.md#create_namespaced_virtual_machine_export) | **POST** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports | [**create_namespaced_virtual_machine_instance**](DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances | [**create_namespaced_virtual_machine_instance_migration**](DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations | [**create_namespaced_virtual_machine_instance_preset**](DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets | @@ -24,7 +24,7 @@ Method | HTTP request | Description [**delete_collection_migration_policy**](DefaultApi.md#delete_collection_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | [**delete_collection_namespaced_kube_virt**](DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt | [**delete_collection_namespaced_virtual_machine**](DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines | -[**delete_collection_namespaced_virtual_machine_export**](DefaultApi.md#delete_collection_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports | +[**delete_collection_namespaced_virtual_machine_export**](DefaultApi.md#delete_collection_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports | [**delete_collection_namespaced_virtual_machine_instance**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances | [**delete_collection_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations | [**delete_collection_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets | @@ -41,7 +41,7 @@ Method | HTTP request | Description [**delete_migration_policy**](DefaultApi.md#delete_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | [**delete_namespaced_kube_virt**](DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | [**delete_namespaced_virtual_machine**](DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | -[**delete_namespaced_virtual_machine_export**](DefaultApi.md#delete_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports/{name} | +[**delete_namespaced_virtual_machine_export**](DefaultApi.md#delete_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name} | [**delete_namespaced_virtual_machine_instance**](DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | [**delete_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | [**delete_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | @@ -66,7 +66,7 @@ Method | HTTP request | Description [**get_api_group_pool_kubevirt_io**](DefaultApi.md#get_api_group_pool_kubevirt_io) | **GET** /apis/pool.kubevirt.io/ | [**get_api_group_snapshot_kubevirt_io**](DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | [**get_api_resources_clone_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_clone_kubevirt_io_v1alpha1) | **GET** /apis/clone.kubevirt.io/v1alpha1/ | -[**get_api_resources_export_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_export_kubevirt_io_v1alpha1) | **GET** /apis/export.kubevirt.io/v1alpha1/ | +[**get_api_resources_export_kubevirt_io_v1beta1**](DefaultApi.md#get_api_resources_export_kubevirt_io_v1beta1) | **GET** /apis/export.kubevirt.io/v1beta1/ | [**get_api_resources_instancetype_kubevirt_io_v1beta1**](DefaultApi.md#get_api_resources_instancetype_kubevirt_io_v1beta1) | **GET** /apis/instancetype.kubevirt.io/v1beta1/ | [**get_api_resources_kubevirt_io_v1**](DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | [**get_api_resources_migrations_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_migrations_kubevirt_io_v1alpha1) | **GET** /apis/migrations.kubevirt.io/v1alpha1/ | @@ -80,7 +80,7 @@ Method | HTTP request | Description [**list_migration_policy**](DefaultApi.md#list_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | [**list_namespaced_kube_virt**](DefaultApi.md#list_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt | [**list_namespaced_virtual_machine**](DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines | -[**list_namespaced_virtual_machine_export**](DefaultApi.md#list_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports | +[**list_namespaced_virtual_machine_export**](DefaultApi.md#list_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports | [**list_namespaced_virtual_machine_instance**](DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances | [**list_namespaced_virtual_machine_instance_migration**](DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations | [**list_namespaced_virtual_machine_instance_preset**](DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets | @@ -94,7 +94,7 @@ Method | HTTP request | Description [**list_virtual_machine_clone**](DefaultApi.md#list_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | [**list_virtual_machine_cluster_instancetype**](DefaultApi.md#list_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | [**list_virtual_machine_cluster_preference**](DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | -[**list_virtual_machine_export_for_all_namespaces**](DefaultApi.md#list_virtual_machine_export_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1alpha1/virtualmachineexports | +[**list_virtual_machine_export_for_all_namespaces**](DefaultApi.md#list_virtual_machine_export_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1beta1/virtualmachineexports | [**list_virtual_machine_for_all_namespaces**](DefaultApi.md#list_virtual_machine_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachines | [**list_virtual_machine_instance_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstances | [**list_virtual_machine_instance_migration_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_migration_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancemigrations | @@ -109,7 +109,7 @@ Method | HTTP request | Description [**patch_migration_policy**](DefaultApi.md#patch_migration_policy) | **PATCH** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | [**patch_namespaced_kube_virt**](DefaultApi.md#patch_namespaced_kube_virt) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | [**patch_namespaced_virtual_machine**](DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | -[**patch_namespaced_virtual_machine_export**](DefaultApi.md#patch_namespaced_virtual_machine_export) | **PATCH** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports/{name} | +[**patch_namespaced_virtual_machine_export**](DefaultApi.md#patch_namespaced_virtual_machine_export) | **PATCH** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name} | [**patch_namespaced_virtual_machine_instance**](DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | [**patch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | [**patch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | @@ -126,7 +126,7 @@ Method | HTTP request | Description [**read_migration_policy**](DefaultApi.md#read_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | [**read_namespaced_kube_virt**](DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | [**read_namespaced_virtual_machine**](DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | -[**read_namespaced_virtual_machine_export**](DefaultApi.md#read_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports/{name} | +[**read_namespaced_virtual_machine_export**](DefaultApi.md#read_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name} | [**read_namespaced_virtual_machine_instance**](DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | [**read_namespaced_virtual_machine_instance_migration**](DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | [**read_namespaced_virtual_machine_instance_preset**](DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | @@ -143,7 +143,7 @@ Method | HTTP request | Description [**replace_migration_policy**](DefaultApi.md#replace_migration_policy) | **PUT** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | [**replace_namespaced_kube_virt**](DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | [**replace_namespaced_virtual_machine**](DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | -[**replace_namespaced_virtual_machine_export**](DefaultApi.md#replace_namespaced_virtual_machine_export) | **PUT** /apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports/{name} | +[**replace_namespaced_virtual_machine_export**](DefaultApi.md#replace_namespaced_virtual_machine_export) | **PUT** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name} | [**replace_namespaced_virtual_machine_instance**](DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | [**replace_namespaced_virtual_machine_instance_migration**](DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | [**replace_namespaced_virtual_machine_instance_preset**](DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | @@ -242,7 +242,7 @@ Method | HTTP request | Description [**watch_migration_policy_list_for_all_namespaces**](DefaultApi.md#watch_migration_policy_list_for_all_namespaces) | **GET** /apis/migrations.kubevirt.io/v1alpha1/watch/migrationpolicies | [**watch_namespaced_kube_virt**](DefaultApi.md#watch_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/kubevirt | [**watch_namespaced_virtual_machine**](DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachines | -[**watch_namespaced_virtual_machine_export**](DefaultApi.md#watch_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachineexports | +[**watch_namespaced_virtual_machine_export**](DefaultApi.md#watch_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachineexports | [**watch_namespaced_virtual_machine_instance**](DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstances | [**watch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancemigrations | [**watch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancepresets | @@ -256,7 +256,7 @@ Method | HTTP request | Description [**watch_virtual_machine_clone_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_clone_list_for_all_namespaces) | **GET** /apis/clone.kubevirt.io/v1alpha1/watch/virtualmachineclones | [**watch_virtual_machine_cluster_instancetype_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterinstancetypes | [**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterpreferences | -[**watch_virtual_machine_export_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_export_list_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1alpha1/watch/virtualmachineexports | +[**watch_virtual_machine_export_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_export_list_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1beta1/watch/virtualmachineexports | [**watch_virtual_machine_instance_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstances | [**watch_virtual_machine_instance_migration_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_migration_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancemigrations | [**watch_virtual_machine_instance_preset_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_preset_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancepresets | @@ -416,7 +416,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_virtual_machine_export** -> V1alpha1VirtualMachineExport create_namespaced_virtual_machine_export(body, namespace) +> V1beta1VirtualMachineExport create_namespaced_virtual_machine_export(body, namespace) @@ -432,7 +432,7 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1alpha1VirtualMachineExport() # V1alpha1VirtualMachineExport | +body = kubevirt.V1beta1VirtualMachineExport() # V1beta1VirtualMachineExport | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: @@ -446,12 +446,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1VirtualMachineExport**](V1alpha1VirtualMachineExport.md)| | + **body** | [**V1beta1VirtualMachineExport**](V1beta1VirtualMachineExport.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1alpha1VirtualMachineExport**](V1alpha1VirtualMachineExport.md) +[**V1beta1VirtualMachineExport**](V1beta1VirtualMachineExport.md) ### Authorization @@ -3562,8 +3562,8 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_api_resources_export_kubevirt_io_v1alpha1** -> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_export_kubevirt_io_v1alpha1() +# **get_api_resources_export_kubevirt_io_v1beta1** +> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_export_kubevirt_io_v1beta1() @@ -3581,10 +3581,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() try: - api_response = api_instance.get_api_resources_export_kubevirt_io_v1alpha1() + api_response = api_instance.get_api_resources_export_kubevirt_io_v1beta1() pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->get_api_resources_export_kubevirt_io_v1alpha1: %s\n" % e) + print("Exception when calling DefaultApi->get_api_resources_export_kubevirt_io_v1beta1: %s\n" % e) ``` ### Parameters @@ -4238,7 +4238,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_virtual_machine_export** -> V1alpha1VirtualMachineExportList list_namespaced_virtual_machine_export(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1VirtualMachineExportList list_namespaced_virtual_machine_export(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -4287,7 +4287,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineExportList**](V1alpha1VirtualMachineExportList.md) +[**V1beta1VirtualMachineExportList**](V1beta1VirtualMachineExportList.md) ### Authorization @@ -5114,7 +5114,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_virtual_machine_export_for_all_namespaces** -> V1alpha1VirtualMachineExportList list_virtual_machine_export_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1VirtualMachineExportList list_virtual_machine_export_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -5161,7 +5161,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineExportList**](V1alpha1VirtualMachineExportList.md) +[**V1beta1VirtualMachineExportList**](V1beta1VirtualMachineExportList.md) ### Authorization @@ -5997,7 +5997,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_virtual_machine_export** -> V1alpha1VirtualMachineExport patch_namespaced_virtual_machine_export(name, namespace, body) +> V1beta1VirtualMachineExport patch_namespaced_virtual_machine_export(name, namespace, body) @@ -6034,7 +6034,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineExport**](V1alpha1VirtualMachineExport.md) +[**V1beta1VirtualMachineExport**](V1beta1VirtualMachineExport.md) ### Authorization @@ -6862,7 +6862,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_virtual_machine_export** -> V1alpha1VirtualMachineExport read_namespaced_virtual_machine_export(name, namespace, exact=exact, export=export) +> V1beta1VirtualMachineExport read_namespaced_virtual_machine_export(name, namespace, exact=exact, export=export) @@ -6901,7 +6901,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineExport**](V1alpha1VirtualMachineExport.md) +[**V1beta1VirtualMachineExport**](V1beta1VirtualMachineExport.md) ### Authorization @@ -7749,7 +7749,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_virtual_machine_export** -> V1alpha1VirtualMachineExport replace_namespaced_virtual_machine_export(name, namespace, body) +> V1beta1VirtualMachineExport replace_namespaced_virtual_machine_export(name, namespace, body) @@ -7767,7 +7767,7 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1alpha1VirtualMachineExport() # V1alpha1VirtualMachineExport | +body = kubevirt.V1beta1VirtualMachineExport() # V1beta1VirtualMachineExport | try: api_response = api_instance.replace_namespaced_virtual_machine_export(name, namespace, body) @@ -7782,11 +7782,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1alpha1VirtualMachineExport**](V1alpha1VirtualMachineExport.md)| | + **body** | [**V1beta1VirtualMachineExport**](V1beta1VirtualMachineExport.md)| | ### Return type -[**V1alpha1VirtualMachineExport**](V1alpha1VirtualMachineExport.md) +[**V1beta1VirtualMachineExport**](V1beta1VirtualMachineExport.md) ### Authorization diff --git a/docs/V1alpha1VirtualMachineExportLink.md b/docs/V1alpha1VirtualMachineExportLink.md deleted file mode 100644 index e7161ab0..00000000 --- a/docs/V1alpha1VirtualMachineExportLink.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1alpha1VirtualMachineExportLink - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cert** | **str** | Cert is the public CA certificate base64 encoded | [default to ''] -**manifests** | [**list[V1alpha1VirtualMachineExportManifest]**](V1alpha1VirtualMachineExportManifest.md) | Manifests is a list of available manifests for the export | [optional] -**volumes** | [**list[V1alpha1VirtualMachineExportVolume]**](V1alpha1VirtualMachineExportVolume.md) | Volumes is a list of available volumes to export | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1alpha1VirtualMachineExport.md b/docs/V1beta1VirtualMachineExport.md similarity index 81% rename from docs/V1alpha1VirtualMachineExport.md rename to docs/V1beta1VirtualMachineExport.md index b7a831bf..43d4c529 100644 --- a/docs/V1alpha1VirtualMachineExport.md +++ b/docs/V1beta1VirtualMachineExport.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachineExport +# V1beta1VirtualMachineExport ## Properties Name | Type | Description | Notes @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1VirtualMachineExportSpec**](V1alpha1VirtualMachineExportSpec.md) | | -**status** | [**V1alpha1VirtualMachineExportStatus**](V1alpha1VirtualMachineExportStatus.md) | | [optional] +**spec** | [**V1beta1VirtualMachineExportSpec**](V1beta1VirtualMachineExportSpec.md) | | +**status** | [**V1beta1VirtualMachineExportStatus**](V1beta1VirtualMachineExportStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1beta1VirtualMachineExportLink.md b/docs/V1beta1VirtualMachineExportLink.md new file mode 100644 index 00000000..6b39b761 --- /dev/null +++ b/docs/V1beta1VirtualMachineExportLink.md @@ -0,0 +1,12 @@ +# V1beta1VirtualMachineExportLink + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cert** | **str** | Cert is the public CA certificate base64 encoded | [default to ''] +**manifests** | [**list[V1beta1VirtualMachineExportManifest]**](V1beta1VirtualMachineExportManifest.md) | Manifests is a list of available manifests for the export | [optional] +**volumes** | [**list[V1beta1VirtualMachineExportVolume]**](V1beta1VirtualMachineExportVolume.md) | Volumes is a list of available volumes to export | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineExportLinks.md b/docs/V1beta1VirtualMachineExportLinks.md similarity index 52% rename from docs/V1alpha1VirtualMachineExportLinks.md rename to docs/V1beta1VirtualMachineExportLinks.md index 4632dfd0..9ed9956e 100644 --- a/docs/V1alpha1VirtualMachineExportLinks.md +++ b/docs/V1beta1VirtualMachineExportLinks.md @@ -1,10 +1,10 @@ -# V1alpha1VirtualMachineExportLinks +# V1beta1VirtualMachineExportLinks ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**external** | [**V1alpha1VirtualMachineExportLink**](V1alpha1VirtualMachineExportLink.md) | | [optional] -**internal** | [**V1alpha1VirtualMachineExportLink**](V1alpha1VirtualMachineExportLink.md) | | [optional] +**external** | [**V1beta1VirtualMachineExportLink**](V1beta1VirtualMachineExportLink.md) | | [optional] +**internal** | [**V1beta1VirtualMachineExportLink**](V1beta1VirtualMachineExportLink.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineExportList.md b/docs/V1beta1VirtualMachineExportList.md similarity index 89% rename from docs/V1alpha1VirtualMachineExportList.md rename to docs/V1beta1VirtualMachineExportList.md index 7c871120..df151d15 100644 --- a/docs/V1alpha1VirtualMachineExportList.md +++ b/docs/V1beta1VirtualMachineExportList.md @@ -1,10 +1,10 @@ -# V1alpha1VirtualMachineExportList +# V1beta1VirtualMachineExportList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**list[V1alpha1VirtualMachineExport]**](V1alpha1VirtualMachineExport.md) | | +**items** | [**list[V1beta1VirtualMachineExport]**](V1beta1VirtualMachineExport.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | diff --git a/docs/V1alpha1VirtualMachineExportManifest.md b/docs/V1beta1VirtualMachineExportManifest.md similarity index 91% rename from docs/V1alpha1VirtualMachineExportManifest.md rename to docs/V1beta1VirtualMachineExportManifest.md index d3648436..82dbd3b9 100644 --- a/docs/V1alpha1VirtualMachineExportManifest.md +++ b/docs/V1beta1VirtualMachineExportManifest.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachineExportManifest +# V1beta1VirtualMachineExportManifest ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1VirtualMachineExportSpec.md b/docs/V1beta1VirtualMachineExportSpec.md similarity index 96% rename from docs/V1alpha1VirtualMachineExportSpec.md rename to docs/V1beta1VirtualMachineExportSpec.md index 7f7f8c78..dcc8699a 100644 --- a/docs/V1alpha1VirtualMachineExportSpec.md +++ b/docs/V1beta1VirtualMachineExportSpec.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachineExportSpec +# V1beta1VirtualMachineExportSpec ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1VirtualMachineExportStatus.md b/docs/V1beta1VirtualMachineExportStatus.md similarity index 83% rename from docs/V1alpha1VirtualMachineExportStatus.md rename to docs/V1beta1VirtualMachineExportStatus.md index db55f94f..7f76aa91 100644 --- a/docs/V1alpha1VirtualMachineExportStatus.md +++ b/docs/V1beta1VirtualMachineExportStatus.md @@ -1,10 +1,10 @@ -# V1alpha1VirtualMachineExportStatus +# V1beta1VirtualMachineExportStatus ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**conditions** | [**list[V1alpha1Condition]**](V1alpha1Condition.md) | | [optional] -**links** | [**V1alpha1VirtualMachineExportLinks**](V1alpha1VirtualMachineExportLinks.md) | | [optional] +**conditions** | [**list[V1beta1Condition]**](V1beta1Condition.md) | | [optional] +**links** | [**V1beta1VirtualMachineExportLinks**](V1beta1VirtualMachineExportLinks.md) | | [optional] **phase** | **str** | | [optional] **service_name** | **str** | ServiceName is the name of the service created associated with the Virtual Machine export. It will be used to create the internal URLs for downloading the images | [optional] **token_secret_ref** | **str** | TokenSecretRef is the name of the secret that contains the token used by the export server pod | [optional] diff --git a/docs/V1alpha1VirtualMachineExportVolume.md b/docs/V1beta1VirtualMachineExportVolume.md similarity index 68% rename from docs/V1alpha1VirtualMachineExportVolume.md rename to docs/V1beta1VirtualMachineExportVolume.md index d1abae65..e5ddd796 100644 --- a/docs/V1alpha1VirtualMachineExportVolume.md +++ b/docs/V1beta1VirtualMachineExportVolume.md @@ -1,9 +1,9 @@ -# V1alpha1VirtualMachineExportVolume +# V1beta1VirtualMachineExportVolume ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**formats** | [**list[V1alpha1VirtualMachineExportVolumeFormat]**](V1alpha1VirtualMachineExportVolumeFormat.md) | | [optional] +**formats** | [**list[V1beta1VirtualMachineExportVolumeFormat]**](V1beta1VirtualMachineExportVolumeFormat.md) | | [optional] **name** | **str** | Name is the name of the exported volume | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineExportVolumeFormat.md b/docs/V1beta1VirtualMachineExportVolumeFormat.md similarity index 91% rename from docs/V1alpha1VirtualMachineExportVolumeFormat.md rename to docs/V1beta1VirtualMachineExportVolumeFormat.md index 87b48242..dfd0897b 100644 --- a/docs/V1alpha1VirtualMachineExportVolumeFormat.md +++ b/docs/V1beta1VirtualMachineExportVolumeFormat.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachineExportVolumeFormat +# V1beta1VirtualMachineExportVolumeFormat ## Properties Name | Type | Description | Notes diff --git a/git_push.sh b/git_push.sh index 29544707..d6fc55e1 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.3.0-alpha.0-222-g61685a12b" + release_note="Auto-generated client v1.3.0-beta.0-20-ge54ebc8d2" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index f95355a5..53097bcf 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -887,33 +887,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/v1alpha1_virtual_machine_clone_template_filters.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_clone_template_filters.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineCloneTemplateFilters.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_export.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_export.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineExport.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_export_link.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_export_link.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineExportLink.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_export_links.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_export_links.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineExportLinks.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_export_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_export_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineExportList.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_export_manifest.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_export_manifest.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineExportManifest.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_export_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_export_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineExportSpec.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_export_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_export_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineExportStatus.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_export_volume.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_export_volume.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineExportVolume.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_export_volume_format.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_export_volume_format.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineExportVolumeFormat.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePool.md @@ -1043,6 +1016,33 @@ 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/v1beta1_virtual_machine_cluster_preference_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_cluster_preference_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineClusterPreferenceList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_export.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_export.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineExport.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_export_link.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_export_link.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineExportLink.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_export_links.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_export_links.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineExportLinks.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_export_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_export_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineExportList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_export_manifest.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_export_manifest.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineExportManifest.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_export_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_export_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineExportSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_export_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_export_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineExportStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_export_volume.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_export_volume.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineExportVolume.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_export_volume_format.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_export_volume_format.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineExportVolumeFormat.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_instancetype.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_instancetype.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineInstancetype.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index f9272f88..6042a476 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -302,15 +302,6 @@ from .models.v1alpha1_virtual_machine_clone_spec import V1alpha1VirtualMachineCloneSpec from .models.v1alpha1_virtual_machine_clone_status import V1alpha1VirtualMachineCloneStatus from .models.v1alpha1_virtual_machine_clone_template_filters import V1alpha1VirtualMachineCloneTemplateFilters -from .models.v1alpha1_virtual_machine_export import V1alpha1VirtualMachineExport -from .models.v1alpha1_virtual_machine_export_link import V1alpha1VirtualMachineExportLink -from .models.v1alpha1_virtual_machine_export_links import V1alpha1VirtualMachineExportLinks -from .models.v1alpha1_virtual_machine_export_list import V1alpha1VirtualMachineExportList -from .models.v1alpha1_virtual_machine_export_manifest import V1alpha1VirtualMachineExportManifest -from .models.v1alpha1_virtual_machine_export_spec import V1alpha1VirtualMachineExportSpec -from .models.v1alpha1_virtual_machine_export_status import V1alpha1VirtualMachineExportStatus -from .models.v1alpha1_virtual_machine_export_volume import V1alpha1VirtualMachineExportVolume -from .models.v1alpha1_virtual_machine_export_volume_format import V1alpha1VirtualMachineExportVolumeFormat from .models.v1alpha1_virtual_machine_pool import V1alpha1VirtualMachinePool from .models.v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition from .models.v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList @@ -354,6 +345,15 @@ from .models.v1beta1_virtual_machine_cluster_instancetype_list import V1beta1VirtualMachineClusterInstancetypeList from .models.v1beta1_virtual_machine_cluster_preference import V1beta1VirtualMachineClusterPreference from .models.v1beta1_virtual_machine_cluster_preference_list import V1beta1VirtualMachineClusterPreferenceList +from .models.v1beta1_virtual_machine_export import V1beta1VirtualMachineExport +from .models.v1beta1_virtual_machine_export_link import V1beta1VirtualMachineExportLink +from .models.v1beta1_virtual_machine_export_links import V1beta1VirtualMachineExportLinks +from .models.v1beta1_virtual_machine_export_list import V1beta1VirtualMachineExportList +from .models.v1beta1_virtual_machine_export_manifest import V1beta1VirtualMachineExportManifest +from .models.v1beta1_virtual_machine_export_spec import V1beta1VirtualMachineExportSpec +from .models.v1beta1_virtual_machine_export_status import V1beta1VirtualMachineExportStatus +from .models.v1beta1_virtual_machine_export_volume import V1beta1VirtualMachineExportVolume +from .models.v1beta1_virtual_machine_export_volume_format import V1beta1VirtualMachineExportVolumeFormat from .models.v1beta1_virtual_machine_instancetype import V1beta1VirtualMachineInstancetype from .models.v1beta1_virtual_machine_instancetype_list import V1beta1VirtualMachineInstancetypeList from .models.v1beta1_virtual_machine_instancetype_spec import V1beta1VirtualMachineInstancetypeSpec diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index ea979635..b73beeae 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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-222-g61685a12b/python' + self.user_agent = 'Swagger-Codegen/v1.3.0-beta.0-20-ge54ebc8d2/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index df5ba882..a6382a96 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -379,9 +379,9 @@ def create_namespaced_virtual_machine_export(self, body, namespace, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha1VirtualMachineExport body: (required) + :param V1beta1VirtualMachineExport body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1alpha1VirtualMachineExport + :return: V1beta1VirtualMachineExport If the method is called asynchronously, returns the request thread. """ @@ -405,9 +405,9 @@ def create_namespaced_virtual_machine_export_with_http_info(self, body, namespac :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha1VirtualMachineExport body: (required) + :param V1beta1VirtualMachineExport body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1alpha1VirtualMachineExport + :return: V1beta1VirtualMachineExport If the method is called asynchronously, returns the request thread. """ @@ -462,14 +462,14 @@ def create_namespaced_virtual_machine_export_with_http_info(self, body, namespac # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports', 'POST', + return self.api_client.call_api('/apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineExport', + response_type='V1beta1VirtualMachineExport', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2384,7 +2384,7 @@ def delete_collection_namespaced_virtual_machine_export_with_http_info(self, **k # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports', 'DELETE', + return self.api_client.call_api('/apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports', 'DELETE', path_params, query_params, header_params, @@ -4522,7 +4522,7 @@ def delete_namespaced_virtual_machine_export_with_http_info(self, name, namespac # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports/{name}', 'DELETE', + return self.api_client.call_api('/apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name}', 'DELETE', path_params, query_params, header_params, @@ -7216,7 +7216,7 @@ def get_api_resources_clone_kubevirt_io_v1alpha1_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_resources_export_kubevirt_io_v1alpha1(self, **kwargs): + def get_api_resources_export_kubevirt_io_v1beta1(self, **kwargs): """ Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an @@ -7225,7 +7225,7 @@ def get_api_resources_export_kubevirt_io_v1alpha1(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_export_kubevirt_io_v1alpha1(callback=callback_function) + >>> thread = api.get_api_resources_export_kubevirt_io_v1beta1(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7235,12 +7235,12 @@ def get_api_resources_export_kubevirt_io_v1alpha1(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_resources_export_kubevirt_io_v1alpha1_with_http_info(**kwargs) + return self.get_api_resources_export_kubevirt_io_v1beta1_with_http_info(**kwargs) else: - (data) = self.get_api_resources_export_kubevirt_io_v1alpha1_with_http_info(**kwargs) + (data) = self.get_api_resources_export_kubevirt_io_v1beta1_with_http_info(**kwargs) return data - def get_api_resources_export_kubevirt_io_v1alpha1_with_http_info(self, **kwargs): + def get_api_resources_export_kubevirt_io_v1beta1_with_http_info(self, **kwargs): """ Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an @@ -7249,7 +7249,7 @@ def get_api_resources_export_kubevirt_io_v1alpha1_with_http_info(self, **kwargs) >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_export_kubevirt_io_v1alpha1_with_http_info(callback=callback_function) + >>> thread = api.get_api_resources_export_kubevirt_io_v1beta1_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7269,7 +7269,7 @@ def get_api_resources_export_kubevirt_io_v1alpha1_with_http_info(self, **kwargs) if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_resources_export_kubevirt_io_v1alpha1" % key + " to method get_api_resources_export_kubevirt_io_v1beta1" % key ) params[key] = val del params['kwargs'] @@ -7293,7 +7293,7 @@ def get_api_resources_export_kubevirt_io_v1alpha1_with_http_info(self, **kwargs) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/', 'GET', + return self.api_client.call_api('/apis/export.kubevirt.io/v1beta1/', 'GET', path_params, query_params, header_params, @@ -8660,7 +8660,7 @@ def list_namespaced_virtual_machine_export(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineExportList + :return: V1beta1VirtualMachineExportList If the method is called asynchronously, returns the request thread. """ @@ -8693,7 +8693,7 @@ def list_namespaced_virtual_machine_export_with_http_info(self, namespace, **kwa :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineExportList + :return: V1beta1VirtualMachineExportList If the method is called asynchronously, returns the request thread. """ @@ -8755,14 +8755,14 @@ def list_namespaced_virtual_machine_export_with_http_info(self, namespace, **kwa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports', 'GET', + return self.api_client.call_api('/apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineExportList', + response_type='V1beta1VirtualMachineExportList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10486,7 +10486,7 @@ def list_virtual_machine_export_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineExportList + :return: V1beta1VirtualMachineExportList If the method is called asynchronously, returns the request thread. """ @@ -10518,7 +10518,7 @@ def list_virtual_machine_export_for_all_namespaces_with_http_info(self, **kwargs :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineExportList + :return: V1beta1VirtualMachineExportList If the method is called asynchronously, returns the request thread. """ @@ -10575,14 +10575,14 @@ def list_virtual_machine_export_for_all_namespaces_with_http_info(self, **kwargs # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/virtualmachineexports', 'GET', + return self.api_client.call_api('/apis/export.kubevirt.io/v1beta1/virtualmachineexports', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineExportList', + response_type='V1beta1VirtualMachineExportList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12328,7 +12328,7 @@ def patch_namespaced_virtual_machine_export(self, name, namespace, body, **kwarg :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineExport + :return: V1beta1VirtualMachineExport If the method is called asynchronously, returns the request thread. """ @@ -12355,7 +12355,7 @@ def patch_namespaced_virtual_machine_export_with_http_info(self, name, namespace :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineExport + :return: V1beta1VirtualMachineExport If the method is called asynchronously, returns the request thread. """ @@ -12415,14 +12415,14 @@ def patch_namespaced_virtual_machine_export_with_http_info(self, name, namespace # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports/{name}', 'PATCH', + return self.api_client.call_api('/apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineExport', + response_type='V1beta1VirtualMachineExport', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -14298,7 +14298,7 @@ def read_namespaced_virtual_machine_export(self, name, namespace, **kwargs): :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineExport + :return: V1beta1VirtualMachineExport If the method is called asynchronously, returns the request thread. """ @@ -14326,7 +14326,7 @@ def read_namespaced_virtual_machine_export_with_http_info(self, name, namespace, :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineExport + :return: V1beta1VirtualMachineExport If the method is called asynchronously, returns the request thread. """ @@ -14381,14 +14381,14 @@ def read_namespaced_virtual_machine_export_with_http_info(self, name, namespace, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports/{name}', 'GET', + return self.api_client.call_api('/apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineExport', + response_type='V1beta1VirtualMachineExport', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -16232,8 +16232,8 @@ def replace_namespaced_virtual_machine_export(self, name, namespace, body, **kwa for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachineExport body: (required) - :return: V1alpha1VirtualMachineExport + :param V1beta1VirtualMachineExport body: (required) + :return: V1beta1VirtualMachineExport If the method is called asynchronously, returns the request thread. """ @@ -16259,8 +16259,8 @@ def replace_namespaced_virtual_machine_export_with_http_info(self, name, namespa for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachineExport body: (required) - :return: V1alpha1VirtualMachineExport + :param V1beta1VirtualMachineExport body: (required) + :return: V1beta1VirtualMachineExport If the method is called asynchronously, returns the request thread. """ @@ -16320,14 +16320,14 @@ def replace_namespaced_virtual_machine_export_with_http_info(self, name, namespa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineexports/{name}', 'PUT', + return self.api_client.call_api('/apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineExport', + response_type='V1beta1VirtualMachineExport', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -27145,7 +27145,7 @@ def watch_namespaced_virtual_machine_export_with_http_info(self, namespace, **kw # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachineexports', 'GET', + return self.api_client.call_api('/apis/export.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachineexports', 'GET', path_params, query_params, header_params, @@ -28965,7 +28965,7 @@ def watch_virtual_machine_export_list_for_all_namespaces_with_http_info(self, ** # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/export.kubevirt.io/v1alpha1/watch/virtualmachineexports', 'GET', + return self.api_client.call_api('/apis/export.kubevirt.io/v1beta1/watch/virtualmachineexports', 'GET', path_params, query_params, header_params, diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 385ecc4f..374e2afd 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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-222-g61685a12b".\ + "SDK Package Version: v1.3.0-beta.0-20-ge54ebc8d2".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 84d898fe..2d30942a 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -302,15 +302,6 @@ from .v1alpha1_virtual_machine_clone_spec import V1alpha1VirtualMachineCloneSpec from .v1alpha1_virtual_machine_clone_status import V1alpha1VirtualMachineCloneStatus from .v1alpha1_virtual_machine_clone_template_filters import V1alpha1VirtualMachineCloneTemplateFilters -from .v1alpha1_virtual_machine_export import V1alpha1VirtualMachineExport -from .v1alpha1_virtual_machine_export_link import V1alpha1VirtualMachineExportLink -from .v1alpha1_virtual_machine_export_links import V1alpha1VirtualMachineExportLinks -from .v1alpha1_virtual_machine_export_list import V1alpha1VirtualMachineExportList -from .v1alpha1_virtual_machine_export_manifest import V1alpha1VirtualMachineExportManifest -from .v1alpha1_virtual_machine_export_spec import V1alpha1VirtualMachineExportSpec -from .v1alpha1_virtual_machine_export_status import V1alpha1VirtualMachineExportStatus -from .v1alpha1_virtual_machine_export_volume import V1alpha1VirtualMachineExportVolume -from .v1alpha1_virtual_machine_export_volume_format import V1alpha1VirtualMachineExportVolumeFormat from .v1alpha1_virtual_machine_pool import V1alpha1VirtualMachinePool from .v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition from .v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList @@ -354,6 +345,15 @@ from .v1beta1_virtual_machine_cluster_instancetype_list import V1beta1VirtualMachineClusterInstancetypeList from .v1beta1_virtual_machine_cluster_preference import V1beta1VirtualMachineClusterPreference from .v1beta1_virtual_machine_cluster_preference_list import V1beta1VirtualMachineClusterPreferenceList +from .v1beta1_virtual_machine_export import V1beta1VirtualMachineExport +from .v1beta1_virtual_machine_export_link import V1beta1VirtualMachineExportLink +from .v1beta1_virtual_machine_export_links import V1beta1VirtualMachineExportLinks +from .v1beta1_virtual_machine_export_list import V1beta1VirtualMachineExportList +from .v1beta1_virtual_machine_export_manifest import V1beta1VirtualMachineExportManifest +from .v1beta1_virtual_machine_export_spec import V1beta1VirtualMachineExportSpec +from .v1beta1_virtual_machine_export_status import V1beta1VirtualMachineExportStatus +from .v1beta1_virtual_machine_export_volume import V1beta1VirtualMachineExportVolume +from .v1beta1_virtual_machine_export_volume_format import V1beta1VirtualMachineExportVolumeFormat from .v1beta1_virtual_machine_instancetype import V1beta1VirtualMachineInstancetype from .v1beta1_virtual_machine_instancetype_list import V1beta1VirtualMachineInstancetypeList from .v1beta1_virtual_machine_instancetype_spec import V1beta1VirtualMachineInstancetypeSpec diff --git a/kubevirt/models/v1alpha1_virtual_machine_export.py b/kubevirt/models/v1beta1_virtual_machine_export.py similarity index 75% rename from kubevirt/models/v1alpha1_virtual_machine_export.py rename to kubevirt/models/v1beta1_virtual_machine_export.py index e5b4a619..f7add628 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_export.py +++ b/kubevirt/models/v1beta1_virtual_machine_export.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineExport(object): +class V1beta1VirtualMachineExport(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -34,8 +34,8 @@ class V1alpha1VirtualMachineExport(object): 'api_version': 'str', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', - 'spec': 'V1alpha1VirtualMachineExportSpec', - 'status': 'V1alpha1VirtualMachineExportStatus' + 'spec': 'V1beta1VirtualMachineExportSpec', + 'status': 'V1beta1VirtualMachineExportStatus' } attribute_map = { @@ -48,7 +48,7 @@ class V1alpha1VirtualMachineExport(object): def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): """ - V1alpha1VirtualMachineExport - a model defined in Swagger + V1beta1VirtualMachineExport - a model defined in Swagger """ self._api_version = None @@ -70,10 +70,10 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status @property def api_version(self): """ - Gets the api_version of this V1alpha1VirtualMachineExport. + Gets the api_version of this V1beta1VirtualMachineExport. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha1VirtualMachineExport. + :return: The api_version of this V1beta1VirtualMachineExport. :rtype: str """ return self._api_version @@ -81,10 +81,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha1VirtualMachineExport. + Sets the api_version of this V1beta1VirtualMachineExport. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha1VirtualMachineExport. + :param api_version: The api_version of this V1beta1VirtualMachineExport. :type: str """ @@ -93,10 +93,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V1alpha1VirtualMachineExport. + Gets the kind of this V1beta1VirtualMachineExport. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha1VirtualMachineExport. + :return: The kind of this V1beta1VirtualMachineExport. :rtype: str """ return self._kind @@ -104,10 +104,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha1VirtualMachineExport. + Sets the kind of this V1beta1VirtualMachineExport. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha1VirtualMachineExport. + :param kind: The kind of this V1beta1VirtualMachineExport. :type: str """ @@ -116,9 +116,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachineExport. + Gets the metadata of this V1beta1VirtualMachineExport. - :return: The metadata of this V1alpha1VirtualMachineExport. + :return: The metadata of this V1beta1VirtualMachineExport. :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -126,9 +126,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachineExport. + Sets the metadata of this V1beta1VirtualMachineExport. - :param metadata: The metadata of this V1alpha1VirtualMachineExport. + :param metadata: The metadata of this V1beta1VirtualMachineExport. :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ @@ -137,20 +137,20 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1alpha1VirtualMachineExport. + Gets the spec of this V1beta1VirtualMachineExport. - :return: The spec of this V1alpha1VirtualMachineExport. - :rtype: V1alpha1VirtualMachineExportSpec + :return: The spec of this V1beta1VirtualMachineExport. + :rtype: V1beta1VirtualMachineExportSpec """ return self._spec @spec.setter def spec(self, spec): """ - Sets the spec of this V1alpha1VirtualMachineExport. + Sets the spec of this V1beta1VirtualMachineExport. - :param spec: The spec of this V1alpha1VirtualMachineExport. - :type: V1alpha1VirtualMachineExportSpec + :param spec: The spec of this V1beta1VirtualMachineExport. + :type: V1beta1VirtualMachineExportSpec """ if spec is None: raise ValueError("Invalid value for `spec`, must not be `None`") @@ -160,20 +160,20 @@ def spec(self, spec): @property def status(self): """ - Gets the status of this V1alpha1VirtualMachineExport. + Gets the status of this V1beta1VirtualMachineExport. - :return: The status of this V1alpha1VirtualMachineExport. - :rtype: V1alpha1VirtualMachineExportStatus + :return: The status of this V1beta1VirtualMachineExport. + :rtype: V1beta1VirtualMachineExportStatus """ return self._status @status.setter def status(self, status): """ - Sets the status of this V1alpha1VirtualMachineExport. + Sets the status of this V1beta1VirtualMachineExport. - :param status: The status of this V1alpha1VirtualMachineExport. - :type: V1alpha1VirtualMachineExportStatus + :param status: The status of this V1beta1VirtualMachineExport. + :type: V1beta1VirtualMachineExportStatus """ self._status = status @@ -220,7 +220,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineExport): + if not isinstance(other, V1beta1VirtualMachineExport): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_export_link.py b/kubevirt/models/v1beta1_virtual_machine_export_link.py similarity index 73% rename from kubevirt/models/v1alpha1_virtual_machine_export_link.py rename to kubevirt/models/v1beta1_virtual_machine_export_link.py index b8b00894..4825fc77 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_export_link.py +++ b/kubevirt/models/v1beta1_virtual_machine_export_link.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineExportLink(object): +class V1beta1VirtualMachineExportLink(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,8 +32,8 @@ class V1alpha1VirtualMachineExportLink(object): """ swagger_types = { 'cert': 'str', - 'manifests': 'list[V1alpha1VirtualMachineExportManifest]', - 'volumes': 'list[V1alpha1VirtualMachineExportVolume]' + 'manifests': 'list[V1beta1VirtualMachineExportManifest]', + 'volumes': 'list[V1beta1VirtualMachineExportVolume]' } attribute_map = { @@ -44,7 +44,7 @@ class V1alpha1VirtualMachineExportLink(object): def __init__(self, cert='', manifests=None, volumes=None): """ - V1alpha1VirtualMachineExportLink - a model defined in Swagger + V1beta1VirtualMachineExportLink - a model defined in Swagger """ self._cert = None @@ -60,10 +60,10 @@ def __init__(self, cert='', manifests=None, volumes=None): @property def cert(self): """ - Gets the cert of this V1alpha1VirtualMachineExportLink. + Gets the cert of this V1beta1VirtualMachineExportLink. Cert is the public CA certificate base64 encoded - :return: The cert of this V1alpha1VirtualMachineExportLink. + :return: The cert of this V1beta1VirtualMachineExportLink. :rtype: str """ return self._cert @@ -71,10 +71,10 @@ def cert(self): @cert.setter def cert(self, cert): """ - Sets the cert of this V1alpha1VirtualMachineExportLink. + Sets the cert of this V1beta1VirtualMachineExportLink. Cert is the public CA certificate base64 encoded - :param cert: The cert of this V1alpha1VirtualMachineExportLink. + :param cert: The cert of this V1beta1VirtualMachineExportLink. :type: str """ if cert is None: @@ -85,22 +85,22 @@ def cert(self, cert): @property def manifests(self): """ - Gets the manifests of this V1alpha1VirtualMachineExportLink. + Gets the manifests of this V1beta1VirtualMachineExportLink. Manifests is a list of available manifests for the export - :return: The manifests of this V1alpha1VirtualMachineExportLink. - :rtype: list[V1alpha1VirtualMachineExportManifest] + :return: The manifests of this V1beta1VirtualMachineExportLink. + :rtype: list[V1beta1VirtualMachineExportManifest] """ return self._manifests @manifests.setter def manifests(self, manifests): """ - Sets the manifests of this V1alpha1VirtualMachineExportLink. + Sets the manifests of this V1beta1VirtualMachineExportLink. Manifests is a list of available manifests for the export - :param manifests: The manifests of this V1alpha1VirtualMachineExportLink. - :type: list[V1alpha1VirtualMachineExportManifest] + :param manifests: The manifests of this V1beta1VirtualMachineExportLink. + :type: list[V1beta1VirtualMachineExportManifest] """ self._manifests = manifests @@ -108,22 +108,22 @@ def manifests(self, manifests): @property def volumes(self): """ - Gets the volumes of this V1alpha1VirtualMachineExportLink. + Gets the volumes of this V1beta1VirtualMachineExportLink. Volumes is a list of available volumes to export - :return: The volumes of this V1alpha1VirtualMachineExportLink. - :rtype: list[V1alpha1VirtualMachineExportVolume] + :return: The volumes of this V1beta1VirtualMachineExportLink. + :rtype: list[V1beta1VirtualMachineExportVolume] """ return self._volumes @volumes.setter def volumes(self, volumes): """ - Sets the volumes of this V1alpha1VirtualMachineExportLink. + Sets the volumes of this V1beta1VirtualMachineExportLink. Volumes is a list of available volumes to export - :param volumes: The volumes of this V1alpha1VirtualMachineExportLink. - :type: list[V1alpha1VirtualMachineExportVolume] + :param volumes: The volumes of this V1beta1VirtualMachineExportLink. + :type: list[V1beta1VirtualMachineExportVolume] """ self._volumes = volumes @@ -170,7 +170,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineExportLink): + if not isinstance(other, V1beta1VirtualMachineExportLink): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_export_links.py b/kubevirt/models/v1beta1_virtual_machine_export_links.py similarity index 73% rename from kubevirt/models/v1alpha1_virtual_machine_export_links.py rename to kubevirt/models/v1beta1_virtual_machine_export_links.py index f2492339..d41811bb 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_export_links.py +++ b/kubevirt/models/v1beta1_virtual_machine_export_links.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineExportLinks(object): +class V1beta1VirtualMachineExportLinks(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,8 +31,8 @@ class V1alpha1VirtualMachineExportLinks(object): and the value is json key in definition. """ swagger_types = { - 'external': 'V1alpha1VirtualMachineExportLink', - 'internal': 'V1alpha1VirtualMachineExportLink' + 'external': 'V1beta1VirtualMachineExportLink', + 'internal': 'V1beta1VirtualMachineExportLink' } attribute_map = { @@ -42,7 +42,7 @@ class V1alpha1VirtualMachineExportLinks(object): def __init__(self, external=None, internal=None): """ - V1alpha1VirtualMachineExportLinks - a model defined in Swagger + V1beta1VirtualMachineExportLinks - a model defined in Swagger """ self._external = None @@ -56,20 +56,20 @@ def __init__(self, external=None, internal=None): @property def external(self): """ - Gets the external of this V1alpha1VirtualMachineExportLinks. + Gets the external of this V1beta1VirtualMachineExportLinks. - :return: The external of this V1alpha1VirtualMachineExportLinks. - :rtype: V1alpha1VirtualMachineExportLink + :return: The external of this V1beta1VirtualMachineExportLinks. + :rtype: V1beta1VirtualMachineExportLink """ return self._external @external.setter def external(self, external): """ - Sets the external of this V1alpha1VirtualMachineExportLinks. + Sets the external of this V1beta1VirtualMachineExportLinks. - :param external: The external of this V1alpha1VirtualMachineExportLinks. - :type: V1alpha1VirtualMachineExportLink + :param external: The external of this V1beta1VirtualMachineExportLinks. + :type: V1beta1VirtualMachineExportLink """ self._external = external @@ -77,20 +77,20 @@ def external(self, external): @property def internal(self): """ - Gets the internal of this V1alpha1VirtualMachineExportLinks. + Gets the internal of this V1beta1VirtualMachineExportLinks. - :return: The internal of this V1alpha1VirtualMachineExportLinks. - :rtype: V1alpha1VirtualMachineExportLink + :return: The internal of this V1beta1VirtualMachineExportLinks. + :rtype: V1beta1VirtualMachineExportLink """ return self._internal @internal.setter def internal(self, internal): """ - Sets the internal of this V1alpha1VirtualMachineExportLinks. + Sets the internal of this V1beta1VirtualMachineExportLinks. - :param internal: The internal of this V1alpha1VirtualMachineExportLinks. - :type: V1alpha1VirtualMachineExportLink + :param internal: The internal of this V1beta1VirtualMachineExportLinks. + :type: V1beta1VirtualMachineExportLink """ self._internal = internal @@ -137,7 +137,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineExportLinks): + if not isinstance(other, V1beta1VirtualMachineExportLinks): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_export_list.py b/kubevirt/models/v1beta1_virtual_machine_export_list.py similarity index 78% rename from kubevirt/models/v1alpha1_virtual_machine_export_list.py rename to kubevirt/models/v1beta1_virtual_machine_export_list.py index ff5a9eea..bf1aa66d 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_export_list.py +++ b/kubevirt/models/v1beta1_virtual_machine_export_list.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineExportList(object): +class V1beta1VirtualMachineExportList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class V1alpha1VirtualMachineExportList(object): """ swagger_types = { 'api_version': 'str', - 'items': 'list[V1alpha1VirtualMachineExport]', + 'items': 'list[V1beta1VirtualMachineExport]', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' } @@ -46,7 +46,7 @@ class V1alpha1VirtualMachineExportList(object): def __init__(self, api_version=None, items=None, kind=None, metadata=None): """ - V1alpha1VirtualMachineExportList - a model defined in Swagger + V1beta1VirtualMachineExportList - a model defined in Swagger """ self._api_version = None @@ -64,10 +64,10 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): @property def api_version(self): """ - Gets the api_version of this V1alpha1VirtualMachineExportList. + Gets the api_version of this V1beta1VirtualMachineExportList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha1VirtualMachineExportList. + :return: The api_version of this V1beta1VirtualMachineExportList. :rtype: str """ return self._api_version @@ -75,10 +75,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha1VirtualMachineExportList. + Sets the api_version of this V1beta1VirtualMachineExportList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha1VirtualMachineExportList. + :param api_version: The api_version of this V1beta1VirtualMachineExportList. :type: str """ @@ -87,20 +87,20 @@ def api_version(self, api_version): @property def items(self): """ - Gets the items of this V1alpha1VirtualMachineExportList. + Gets the items of this V1beta1VirtualMachineExportList. - :return: The items of this V1alpha1VirtualMachineExportList. - :rtype: list[V1alpha1VirtualMachineExport] + :return: The items of this V1beta1VirtualMachineExportList. + :rtype: list[V1beta1VirtualMachineExport] """ return self._items @items.setter def items(self, items): """ - Sets the items of this V1alpha1VirtualMachineExportList. + Sets the items of this V1beta1VirtualMachineExportList. - :param items: The items of this V1alpha1VirtualMachineExportList. - :type: list[V1alpha1VirtualMachineExport] + :param items: The items of this V1beta1VirtualMachineExportList. + :type: list[V1beta1VirtualMachineExport] """ if items is None: raise ValueError("Invalid value for `items`, must not be `None`") @@ -110,10 +110,10 @@ def items(self, items): @property def kind(self): """ - Gets the kind of this V1alpha1VirtualMachineExportList. + Gets the kind of this V1beta1VirtualMachineExportList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha1VirtualMachineExportList. + :return: The kind of this V1beta1VirtualMachineExportList. :rtype: str """ return self._kind @@ -121,10 +121,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha1VirtualMachineExportList. + Sets the kind of this V1beta1VirtualMachineExportList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha1VirtualMachineExportList. + :param kind: The kind of this V1beta1VirtualMachineExportList. :type: str """ @@ -133,9 +133,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachineExportList. + Gets the metadata of this V1beta1VirtualMachineExportList. - :return: The metadata of this V1alpha1VirtualMachineExportList. + :return: The metadata of this V1beta1VirtualMachineExportList. :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @@ -143,9 +143,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachineExportList. + Sets the metadata of this V1beta1VirtualMachineExportList. - :param metadata: The metadata of this V1alpha1VirtualMachineExportList. + :param metadata: The metadata of this V1beta1VirtualMachineExportList. :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ if metadata is None: @@ -195,7 +195,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineExportList): + if not isinstance(other, V1beta1VirtualMachineExportList): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_export_manifest.py b/kubevirt/models/v1beta1_virtual_machine_export_manifest.py similarity index 81% rename from kubevirt/models/v1alpha1_virtual_machine_export_manifest.py rename to kubevirt/models/v1beta1_virtual_machine_export_manifest.py index 261c0c0c..7528df94 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_export_manifest.py +++ b/kubevirt/models/v1beta1_virtual_machine_export_manifest.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineExportManifest(object): +class V1beta1VirtualMachineExportManifest(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class V1alpha1VirtualMachineExportManifest(object): def __init__(self, type='', url=''): """ - V1alpha1VirtualMachineExportManifest - a model defined in Swagger + V1beta1VirtualMachineExportManifest - a model defined in Swagger """ self._type = None @@ -54,10 +54,10 @@ def __init__(self, type='', url=''): @property def type(self): """ - Gets the type of this V1alpha1VirtualMachineExportManifest. + Gets the type of this V1beta1VirtualMachineExportManifest. Type is the type of manifest returned - :return: The type of this V1alpha1VirtualMachineExportManifest. + :return: The type of this V1beta1VirtualMachineExportManifest. :rtype: str """ return self._type @@ -65,10 +65,10 @@ def type(self): @type.setter def type(self, type): """ - Sets the type of this V1alpha1VirtualMachineExportManifest. + Sets the type of this V1beta1VirtualMachineExportManifest. Type is the type of manifest returned - :param type: The type of this V1alpha1VirtualMachineExportManifest. + :param type: The type of this V1beta1VirtualMachineExportManifest. :type: str """ if type is None: @@ -79,10 +79,10 @@ def type(self, type): @property def url(self): """ - Gets the url of this V1alpha1VirtualMachineExportManifest. + Gets the url of this V1beta1VirtualMachineExportManifest. Url is the url of the endpoint that returns the manifest - :return: The url of this V1alpha1VirtualMachineExportManifest. + :return: The url of this V1beta1VirtualMachineExportManifest. :rtype: str """ return self._url @@ -90,10 +90,10 @@ def url(self): @url.setter def url(self, url): """ - Sets the url of this V1alpha1VirtualMachineExportManifest. + Sets the url of this V1beta1VirtualMachineExportManifest. Url is the url of the endpoint that returns the manifest - :param url: The url of this V1alpha1VirtualMachineExportManifest. + :param url: The url of this V1beta1VirtualMachineExportManifest. :type: str """ if url is None: @@ -143,7 +143,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineExportManifest): + if not isinstance(other, V1beta1VirtualMachineExportManifest): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_export_spec.py b/kubevirt/models/v1beta1_virtual_machine_export_spec.py similarity index 82% rename from kubevirt/models/v1alpha1_virtual_machine_export_spec.py rename to kubevirt/models/v1beta1_virtual_machine_export_spec.py index 815a46bf..4beaf587 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_export_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_export_spec.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineExportSpec(object): +class V1beta1VirtualMachineExportSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -44,7 +44,7 @@ class V1alpha1VirtualMachineExportSpec(object): def __init__(self, source=None, token_secret_ref=None, ttl_duration=None): """ - V1alpha1VirtualMachineExportSpec - a model defined in Swagger + V1beta1VirtualMachineExportSpec - a model defined in Swagger """ self._source = None @@ -60,9 +60,9 @@ def __init__(self, source=None, token_secret_ref=None, ttl_duration=None): @property def source(self): """ - Gets the source of this V1alpha1VirtualMachineExportSpec. + Gets the source of this V1beta1VirtualMachineExportSpec. - :return: The source of this V1alpha1VirtualMachineExportSpec. + :return: The source of this V1beta1VirtualMachineExportSpec. :rtype: K8sIoApiCoreV1TypedLocalObjectReference """ return self._source @@ -70,9 +70,9 @@ def source(self): @source.setter def source(self, source): """ - Sets the source of this V1alpha1VirtualMachineExportSpec. + Sets the source of this V1beta1VirtualMachineExportSpec. - :param source: The source of this V1alpha1VirtualMachineExportSpec. + :param source: The source of this V1beta1VirtualMachineExportSpec. :type: K8sIoApiCoreV1TypedLocalObjectReference """ if source is None: @@ -83,10 +83,10 @@ def source(self, source): @property def token_secret_ref(self): """ - Gets the token_secret_ref of this V1alpha1VirtualMachineExportSpec. + Gets the token_secret_ref of this V1beta1VirtualMachineExportSpec. TokenSecretRef is the name of the custom-defined secret that contains the token used by the export server pod - :return: The token_secret_ref of this V1alpha1VirtualMachineExportSpec. + :return: The token_secret_ref of this V1beta1VirtualMachineExportSpec. :rtype: str """ return self._token_secret_ref @@ -94,10 +94,10 @@ def token_secret_ref(self): @token_secret_ref.setter def token_secret_ref(self, token_secret_ref): """ - Sets the token_secret_ref of this V1alpha1VirtualMachineExportSpec. + Sets the token_secret_ref of this V1beta1VirtualMachineExportSpec. TokenSecretRef is the name of the custom-defined secret that contains the token used by the export server pod - :param token_secret_ref: The token_secret_ref of this V1alpha1VirtualMachineExportSpec. + :param token_secret_ref: The token_secret_ref of this V1beta1VirtualMachineExportSpec. :type: str """ @@ -106,10 +106,10 @@ def token_secret_ref(self, token_secret_ref): @property def ttl_duration(self): """ - Gets the ttl_duration of this V1alpha1VirtualMachineExportSpec. + Gets the ttl_duration of this V1beta1VirtualMachineExportSpec. ttlDuration limits the lifetime of an export If this field is set, after this duration has passed from counting from CreationTimestamp, the export is eligible to be automatically deleted. If this field is omitted, a reasonable default is applied. - :return: The ttl_duration of this V1alpha1VirtualMachineExportSpec. + :return: The ttl_duration of this V1beta1VirtualMachineExportSpec. :rtype: K8sIoApimachineryPkgApisMetaV1Duration """ return self._ttl_duration @@ -117,10 +117,10 @@ def ttl_duration(self): @ttl_duration.setter def ttl_duration(self, ttl_duration): """ - Sets the ttl_duration of this V1alpha1VirtualMachineExportSpec. + Sets the ttl_duration of this V1beta1VirtualMachineExportSpec. ttlDuration limits the lifetime of an export If this field is set, after this duration has passed from counting from CreationTimestamp, the export is eligible to be automatically deleted. If this field is omitted, a reasonable default is applied. - :param ttl_duration: The ttl_duration of this V1alpha1VirtualMachineExportSpec. + :param ttl_duration: The ttl_duration of this V1beta1VirtualMachineExportSpec. :type: K8sIoApimachineryPkgApisMetaV1Duration """ @@ -168,7 +168,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineExportSpec): + if not isinstance(other, V1beta1VirtualMachineExportSpec): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_export_status.py b/kubevirt/models/v1beta1_virtual_machine_export_status.py similarity index 74% rename from kubevirt/models/v1alpha1_virtual_machine_export_status.py rename to kubevirt/models/v1beta1_virtual_machine_export_status.py index 79843ca7..0b5446a1 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_export_status.py +++ b/kubevirt/models/v1beta1_virtual_machine_export_status.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineExportStatus(object): +class V1beta1VirtualMachineExportStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,8 +31,8 @@ class V1alpha1VirtualMachineExportStatus(object): and the value is json key in definition. """ swagger_types = { - 'conditions': 'list[V1alpha1Condition]', - 'links': 'V1alpha1VirtualMachineExportLinks', + 'conditions': 'list[V1beta1Condition]', + 'links': 'V1beta1VirtualMachineExportLinks', 'phase': 'str', 'service_name': 'str', 'token_secret_ref': 'str', @@ -52,7 +52,7 @@ class V1alpha1VirtualMachineExportStatus(object): def __init__(self, conditions=None, links=None, phase=None, service_name=None, token_secret_ref=None, ttl_expiration_time=None, virtual_machine_name=None): """ - V1alpha1VirtualMachineExportStatus - a model defined in Swagger + V1beta1VirtualMachineExportStatus - a model defined in Swagger """ self._conditions = None @@ -81,20 +81,20 @@ def __init__(self, conditions=None, links=None, phase=None, service_name=None, t @property def conditions(self): """ - Gets the conditions of this V1alpha1VirtualMachineExportStatus. + Gets the conditions of this V1beta1VirtualMachineExportStatus. - :return: The conditions of this V1alpha1VirtualMachineExportStatus. - :rtype: list[V1alpha1Condition] + :return: The conditions of this V1beta1VirtualMachineExportStatus. + :rtype: list[V1beta1Condition] """ return self._conditions @conditions.setter def conditions(self, conditions): """ - Sets the conditions of this V1alpha1VirtualMachineExportStatus. + Sets the conditions of this V1beta1VirtualMachineExportStatus. - :param conditions: The conditions of this V1alpha1VirtualMachineExportStatus. - :type: list[V1alpha1Condition] + :param conditions: The conditions of this V1beta1VirtualMachineExportStatus. + :type: list[V1beta1Condition] """ self._conditions = conditions @@ -102,20 +102,20 @@ def conditions(self, conditions): @property def links(self): """ - Gets the links of this V1alpha1VirtualMachineExportStatus. + Gets the links of this V1beta1VirtualMachineExportStatus. - :return: The links of this V1alpha1VirtualMachineExportStatus. - :rtype: V1alpha1VirtualMachineExportLinks + :return: The links of this V1beta1VirtualMachineExportStatus. + :rtype: V1beta1VirtualMachineExportLinks """ return self._links @links.setter def links(self, links): """ - Sets the links of this V1alpha1VirtualMachineExportStatus. + Sets the links of this V1beta1VirtualMachineExportStatus. - :param links: The links of this V1alpha1VirtualMachineExportStatus. - :type: V1alpha1VirtualMachineExportLinks + :param links: The links of this V1beta1VirtualMachineExportStatus. + :type: V1beta1VirtualMachineExportLinks """ self._links = links @@ -123,9 +123,9 @@ def links(self, links): @property def phase(self): """ - Gets the phase of this V1alpha1VirtualMachineExportStatus. + Gets the phase of this V1beta1VirtualMachineExportStatus. - :return: The phase of this V1alpha1VirtualMachineExportStatus. + :return: The phase of this V1beta1VirtualMachineExportStatus. :rtype: str """ return self._phase @@ -133,9 +133,9 @@ def phase(self): @phase.setter def phase(self, phase): """ - Sets the phase of this V1alpha1VirtualMachineExportStatus. + Sets the phase of this V1beta1VirtualMachineExportStatus. - :param phase: The phase of this V1alpha1VirtualMachineExportStatus. + :param phase: The phase of this V1beta1VirtualMachineExportStatus. :type: str """ @@ -144,10 +144,10 @@ def phase(self, phase): @property def service_name(self): """ - Gets the service_name of this V1alpha1VirtualMachineExportStatus. + Gets the service_name of this V1beta1VirtualMachineExportStatus. ServiceName is the name of the service created associated with the Virtual Machine export. It will be used to create the internal URLs for downloading the images - :return: The service_name of this V1alpha1VirtualMachineExportStatus. + :return: The service_name of this V1beta1VirtualMachineExportStatus. :rtype: str """ return self._service_name @@ -155,10 +155,10 @@ def service_name(self): @service_name.setter def service_name(self, service_name): """ - Sets the service_name of this V1alpha1VirtualMachineExportStatus. + Sets the service_name of this V1beta1VirtualMachineExportStatus. ServiceName is the name of the service created associated with the Virtual Machine export. It will be used to create the internal URLs for downloading the images - :param service_name: The service_name of this V1alpha1VirtualMachineExportStatus. + :param service_name: The service_name of this V1beta1VirtualMachineExportStatus. :type: str """ @@ -167,10 +167,10 @@ def service_name(self, service_name): @property def token_secret_ref(self): """ - Gets the token_secret_ref of this V1alpha1VirtualMachineExportStatus. + Gets the token_secret_ref of this V1beta1VirtualMachineExportStatus. TokenSecretRef is the name of the secret that contains the token used by the export server pod - :return: The token_secret_ref of this V1alpha1VirtualMachineExportStatus. + :return: The token_secret_ref of this V1beta1VirtualMachineExportStatus. :rtype: str """ return self._token_secret_ref @@ -178,10 +178,10 @@ def token_secret_ref(self): @token_secret_ref.setter def token_secret_ref(self, token_secret_ref): """ - Sets the token_secret_ref of this V1alpha1VirtualMachineExportStatus. + Sets the token_secret_ref of this V1beta1VirtualMachineExportStatus. TokenSecretRef is the name of the secret that contains the token used by the export server pod - :param token_secret_ref: The token_secret_ref of this V1alpha1VirtualMachineExportStatus. + :param token_secret_ref: The token_secret_ref of this V1beta1VirtualMachineExportStatus. :type: str """ @@ -190,10 +190,10 @@ def token_secret_ref(self, token_secret_ref): @property def ttl_expiration_time(self): """ - Gets the ttl_expiration_time of this V1alpha1VirtualMachineExportStatus. + Gets the ttl_expiration_time of this V1beta1VirtualMachineExportStatus. The time at which the VM Export will be completely removed according to specified TTL Formula is CreationTimestamp + TTL - :return: The ttl_expiration_time of this V1alpha1VirtualMachineExportStatus. + :return: The ttl_expiration_time of this V1beta1VirtualMachineExportStatus. :rtype: K8sIoApimachineryPkgApisMetaV1Time """ return self._ttl_expiration_time @@ -201,10 +201,10 @@ def ttl_expiration_time(self): @ttl_expiration_time.setter def ttl_expiration_time(self, ttl_expiration_time): """ - Sets the ttl_expiration_time of this V1alpha1VirtualMachineExportStatus. + Sets the ttl_expiration_time of this V1beta1VirtualMachineExportStatus. The time at which the VM Export will be completely removed according to specified TTL Formula is CreationTimestamp + TTL - :param ttl_expiration_time: The ttl_expiration_time of this V1alpha1VirtualMachineExportStatus. + :param ttl_expiration_time: The ttl_expiration_time of this V1beta1VirtualMachineExportStatus. :type: K8sIoApimachineryPkgApisMetaV1Time """ @@ -213,10 +213,10 @@ def ttl_expiration_time(self, ttl_expiration_time): @property def virtual_machine_name(self): """ - Gets the virtual_machine_name of this V1alpha1VirtualMachineExportStatus. + Gets the virtual_machine_name of this V1beta1VirtualMachineExportStatus. VirtualMachineName shows the name of the source virtual machine if the source is either a VirtualMachine or a VirtualMachineSnapshot. This is mainly to easily identify the source VirtualMachine in case of a VirtualMachineSnapshot - :return: The virtual_machine_name of this V1alpha1VirtualMachineExportStatus. + :return: The virtual_machine_name of this V1beta1VirtualMachineExportStatus. :rtype: str """ return self._virtual_machine_name @@ -224,10 +224,10 @@ def virtual_machine_name(self): @virtual_machine_name.setter def virtual_machine_name(self, virtual_machine_name): """ - Sets the virtual_machine_name of this V1alpha1VirtualMachineExportStatus. + Sets the virtual_machine_name of this V1beta1VirtualMachineExportStatus. VirtualMachineName shows the name of the source virtual machine if the source is either a VirtualMachine or a VirtualMachineSnapshot. This is mainly to easily identify the source VirtualMachine in case of a VirtualMachineSnapshot - :param virtual_machine_name: The virtual_machine_name of this V1alpha1VirtualMachineExportStatus. + :param virtual_machine_name: The virtual_machine_name of this V1beta1VirtualMachineExportStatus. :type: str """ @@ -275,7 +275,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineExportStatus): + if not isinstance(other, V1beta1VirtualMachineExportStatus): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_export_volume.py b/kubevirt/models/v1beta1_virtual_machine_export_volume.py similarity index 76% rename from kubevirt/models/v1alpha1_virtual_machine_export_volume.py rename to kubevirt/models/v1beta1_virtual_machine_export_volume.py index ecb1d3c6..3fec0a9f 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_export_volume.py +++ b/kubevirt/models/v1beta1_virtual_machine_export_volume.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineExportVolume(object): +class V1beta1VirtualMachineExportVolume(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,7 +31,7 @@ class V1alpha1VirtualMachineExportVolume(object): and the value is json key in definition. """ swagger_types = { - 'formats': 'list[V1alpha1VirtualMachineExportVolumeFormat]', + 'formats': 'list[V1beta1VirtualMachineExportVolumeFormat]', 'name': 'str' } @@ -42,7 +42,7 @@ class V1alpha1VirtualMachineExportVolume(object): def __init__(self, formats=None, name=''): """ - V1alpha1VirtualMachineExportVolume - a model defined in Swagger + V1beta1VirtualMachineExportVolume - a model defined in Swagger """ self._formats = None @@ -55,20 +55,20 @@ def __init__(self, formats=None, name=''): @property def formats(self): """ - Gets the formats of this V1alpha1VirtualMachineExportVolume. + Gets the formats of this V1beta1VirtualMachineExportVolume. - :return: The formats of this V1alpha1VirtualMachineExportVolume. - :rtype: list[V1alpha1VirtualMachineExportVolumeFormat] + :return: The formats of this V1beta1VirtualMachineExportVolume. + :rtype: list[V1beta1VirtualMachineExportVolumeFormat] """ return self._formats @formats.setter def formats(self, formats): """ - Sets the formats of this V1alpha1VirtualMachineExportVolume. + Sets the formats of this V1beta1VirtualMachineExportVolume. - :param formats: The formats of this V1alpha1VirtualMachineExportVolume. - :type: list[V1alpha1VirtualMachineExportVolumeFormat] + :param formats: The formats of this V1beta1VirtualMachineExportVolume. + :type: list[V1beta1VirtualMachineExportVolumeFormat] """ self._formats = formats @@ -76,10 +76,10 @@ def formats(self, formats): @property def name(self): """ - Gets the name of this V1alpha1VirtualMachineExportVolume. + Gets the name of this V1beta1VirtualMachineExportVolume. Name is the name of the exported volume - :return: The name of this V1alpha1VirtualMachineExportVolume. + :return: The name of this V1beta1VirtualMachineExportVolume. :rtype: str """ return self._name @@ -87,10 +87,10 @@ def name(self): @name.setter def name(self, name): """ - Sets the name of this V1alpha1VirtualMachineExportVolume. + Sets the name of this V1beta1VirtualMachineExportVolume. Name is the name of the exported volume - :param name: The name of this V1alpha1VirtualMachineExportVolume. + :param name: The name of this V1beta1VirtualMachineExportVolume. :type: str """ if name is None: @@ -140,7 +140,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineExportVolume): + if not isinstance(other, V1beta1VirtualMachineExportVolume): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_export_volume_format.py b/kubevirt/models/v1beta1_virtual_machine_export_volume_format.py similarity index 80% rename from kubevirt/models/v1alpha1_virtual_machine_export_volume_format.py rename to kubevirt/models/v1beta1_virtual_machine_export_volume_format.py index 686421be..6aa9d01b 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_export_volume_format.py +++ b/kubevirt/models/v1beta1_virtual_machine_export_volume_format.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineExportVolumeFormat(object): +class V1beta1VirtualMachineExportVolumeFormat(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class V1alpha1VirtualMachineExportVolumeFormat(object): def __init__(self, format='', url=''): """ - V1alpha1VirtualMachineExportVolumeFormat - a model defined in Swagger + V1beta1VirtualMachineExportVolumeFormat - a model defined in Swagger """ self._format = None @@ -54,10 +54,10 @@ def __init__(self, format='', url=''): @property def format(self): """ - Gets the format of this V1alpha1VirtualMachineExportVolumeFormat. + Gets the format of this V1beta1VirtualMachineExportVolumeFormat. Format is the format of the image at the specified URL - :return: The format of this V1alpha1VirtualMachineExportVolumeFormat. + :return: The format of this V1beta1VirtualMachineExportVolumeFormat. :rtype: str """ return self._format @@ -65,10 +65,10 @@ def format(self): @format.setter def format(self, format): """ - Sets the format of this V1alpha1VirtualMachineExportVolumeFormat. + Sets the format of this V1beta1VirtualMachineExportVolumeFormat. Format is the format of the image at the specified URL - :param format: The format of this V1alpha1VirtualMachineExportVolumeFormat. + :param format: The format of this V1beta1VirtualMachineExportVolumeFormat. :type: str """ if format is None: @@ -79,10 +79,10 @@ def format(self, format): @property def url(self): """ - Gets the url of this V1alpha1VirtualMachineExportVolumeFormat. + Gets the url of this V1beta1VirtualMachineExportVolumeFormat. Url is the url that contains the volume in the format specified - :return: The url of this V1alpha1VirtualMachineExportVolumeFormat. + :return: The url of this V1beta1VirtualMachineExportVolumeFormat. :rtype: str """ return self._url @@ -90,10 +90,10 @@ def url(self): @url.setter def url(self, url): """ - Sets the url of this V1alpha1VirtualMachineExportVolumeFormat. + Sets the url of this V1beta1VirtualMachineExportVolumeFormat. Url is the url that contains the volume in the format specified - :param url: The url of this V1alpha1VirtualMachineExportVolumeFormat. + :param url: The url of this V1beta1VirtualMachineExportVolumeFormat. :type: str """ if url is None: @@ -143,7 +143,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineExportVolumeFormat): + if not isinstance(other, V1beta1VirtualMachineExportVolumeFormat): return False return self.__dict__ == other.__dict__ diff --git a/setup.py b/setup.py index 4d2272dd..808f2ea5 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.3.0-alpha.0-222-g61685a12b" +VERSION = "v1.3.0-beta.0-20-ge54ebc8d2" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 0be6dee3..3eefce67 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.3.0-alpha.0-222-g61685a12b" +"packageVersion": "v1.3.0-beta.0-20-ge54ebc8d2" } diff --git a/test/test_default_api.py b/test/test_default_api.py index a0788860..90aec24d 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -527,9 +527,9 @@ def test_get_api_resources_clone_kubevirt_io_v1alpha1(self): """ pass - def test_get_api_resources_export_kubevirt_io_v1alpha1(self): + def test_get_api_resources_export_kubevirt_io_v1beta1(self): """ - Test case for get_api_resources_export_kubevirt_io_v1alpha1 + Test case for get_api_resources_export_kubevirt_io_v1beta1 """ diff --git a/test/test_v1alpha1_virtual_machine_export_manifest.py b/test/test_v1alpha1_virtual_machine_export_manifest.py deleted file mode 100644 index ef9705d6..00000000 --- a/test/test_v1alpha1_virtual_machine_export_manifest.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_export_manifest import V1alpha1VirtualMachineExportManifest - - -class TestV1alpha1VirtualMachineExportManifest(unittest.TestCase): - """ V1alpha1VirtualMachineExportManifest unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachineExportManifest(self): - """ - Test V1alpha1VirtualMachineExportManifest - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_export_manifest.V1alpha1VirtualMachineExportManifest() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_export_status.py b/test/test_v1alpha1_virtual_machine_export_status.py deleted file mode 100644 index 59132961..00000000 --- a/test/test_v1alpha1_virtual_machine_export_status.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_export_status import V1alpha1VirtualMachineExportStatus - - -class TestV1alpha1VirtualMachineExportStatus(unittest.TestCase): - """ V1alpha1VirtualMachineExportStatus unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachineExportStatus(self): - """ - Test V1alpha1VirtualMachineExportStatus - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_export_status.V1alpha1VirtualMachineExportStatus() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_export_volume.py b/test/test_v1alpha1_virtual_machine_export_volume.py deleted file mode 100644 index c3135a6a..00000000 --- a/test/test_v1alpha1_virtual_machine_export_volume.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_export_volume import V1alpha1VirtualMachineExportVolume - - -class TestV1alpha1VirtualMachineExportVolume(unittest.TestCase): - """ V1alpha1VirtualMachineExportVolume unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachineExportVolume(self): - """ - Test V1alpha1VirtualMachineExportVolume - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_export_volume.V1alpha1VirtualMachineExportVolume() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_export_volume_format.py b/test/test_v1alpha1_virtual_machine_export_volume_format.py deleted file mode 100644 index 143b2e4c..00000000 --- a/test/test_v1alpha1_virtual_machine_export_volume_format.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_export_volume_format import V1alpha1VirtualMachineExportVolumeFormat - - -class TestV1alpha1VirtualMachineExportVolumeFormat(unittest.TestCase): - """ V1alpha1VirtualMachineExportVolumeFormat unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachineExportVolumeFormat(self): - """ - Test V1alpha1VirtualMachineExportVolumeFormat - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_export_volume_format.V1alpha1VirtualMachineExportVolumeFormat() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_export.py b/test/test_v1beta1_virtual_machine_export.py similarity index 61% rename from test/test_v1alpha1_virtual_machine_export.py rename to test/test_v1beta1_virtual_machine_export.py index 066f9721..6b40b0a3 100644 --- a/test/test_v1alpha1_virtual_machine_export.py +++ b/test/test_v1beta1_virtual_machine_export.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_export import V1alpha1VirtualMachineExport +from kubevirt.models.v1beta1_virtual_machine_export import V1beta1VirtualMachineExport -class TestV1alpha1VirtualMachineExport(unittest.TestCase): - """ V1alpha1VirtualMachineExport unit test stubs """ +class TestV1beta1VirtualMachineExport(unittest.TestCase): + """ V1beta1VirtualMachineExport unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachineExport(self): + def testV1beta1VirtualMachineExport(self): """ - Test V1alpha1VirtualMachineExport + Test V1beta1VirtualMachineExport """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_export.V1alpha1VirtualMachineExport() + #model = kubevirt.models.v1beta1_virtual_machine_export.V1beta1VirtualMachineExport() pass diff --git a/test/test_v1alpha1_virtual_machine_export_link.py b/test/test_v1beta1_virtual_machine_export_link.py similarity index 59% rename from test/test_v1alpha1_virtual_machine_export_link.py rename to test/test_v1beta1_virtual_machine_export_link.py index d356e0a7..fe98847b 100644 --- a/test/test_v1alpha1_virtual_machine_export_link.py +++ b/test/test_v1beta1_virtual_machine_export_link.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_export_link import V1alpha1VirtualMachineExportLink +from kubevirt.models.v1beta1_virtual_machine_export_link import V1beta1VirtualMachineExportLink -class TestV1alpha1VirtualMachineExportLink(unittest.TestCase): - """ V1alpha1VirtualMachineExportLink unit test stubs """ +class TestV1beta1VirtualMachineExportLink(unittest.TestCase): + """ V1beta1VirtualMachineExportLink unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachineExportLink(self): + def testV1beta1VirtualMachineExportLink(self): """ - Test V1alpha1VirtualMachineExportLink + Test V1beta1VirtualMachineExportLink """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_export_link.V1alpha1VirtualMachineExportLink() + #model = kubevirt.models.v1beta1_virtual_machine_export_link.V1beta1VirtualMachineExportLink() pass diff --git a/test/test_v1alpha1_virtual_machine_export_spec.py b/test/test_v1beta1_virtual_machine_export_links.py similarity index 59% rename from test/test_v1alpha1_virtual_machine_export_spec.py rename to test/test_v1beta1_virtual_machine_export_links.py index a868172e..be3d7c10 100644 --- a/test/test_v1alpha1_virtual_machine_export_spec.py +++ b/test/test_v1beta1_virtual_machine_export_links.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_export_spec import V1alpha1VirtualMachineExportSpec +from kubevirt.models.v1beta1_virtual_machine_export_links import V1beta1VirtualMachineExportLinks -class TestV1alpha1VirtualMachineExportSpec(unittest.TestCase): - """ V1alpha1VirtualMachineExportSpec unit test stubs """ +class TestV1beta1VirtualMachineExportLinks(unittest.TestCase): + """ V1beta1VirtualMachineExportLinks unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachineExportSpec(self): + def testV1beta1VirtualMachineExportLinks(self): """ - Test V1alpha1VirtualMachineExportSpec + Test V1beta1VirtualMachineExportLinks """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_export_spec.V1alpha1VirtualMachineExportSpec() + #model = kubevirt.models.v1beta1_virtual_machine_export_links.V1beta1VirtualMachineExportLinks() pass diff --git a/test/test_v1alpha1_virtual_machine_export_list.py b/test/test_v1beta1_virtual_machine_export_list.py similarity index 59% rename from test/test_v1alpha1_virtual_machine_export_list.py rename to test/test_v1beta1_virtual_machine_export_list.py index 58b68f59..f6b18b50 100644 --- a/test/test_v1alpha1_virtual_machine_export_list.py +++ b/test/test_v1beta1_virtual_machine_export_list.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_export_list import V1alpha1VirtualMachineExportList +from kubevirt.models.v1beta1_virtual_machine_export_list import V1beta1VirtualMachineExportList -class TestV1alpha1VirtualMachineExportList(unittest.TestCase): - """ V1alpha1VirtualMachineExportList unit test stubs """ +class TestV1beta1VirtualMachineExportList(unittest.TestCase): + """ V1beta1VirtualMachineExportList unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachineExportList(self): + def testV1beta1VirtualMachineExportList(self): """ - Test V1alpha1VirtualMachineExportList + Test V1beta1VirtualMachineExportList """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_export_list.V1alpha1VirtualMachineExportList() + #model = kubevirt.models.v1beta1_virtual_machine_export_list.V1beta1VirtualMachineExportList() pass diff --git a/test/test_v1beta1_virtual_machine_export_manifest.py b/test/test_v1beta1_virtual_machine_export_manifest.py new file mode 100644 index 00000000..65131c83 --- /dev/null +++ b/test/test_v1beta1_virtual_machine_export_manifest.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_export_manifest import V1beta1VirtualMachineExportManifest + + +class TestV1beta1VirtualMachineExportManifest(unittest.TestCase): + """ V1beta1VirtualMachineExportManifest unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineExportManifest(self): + """ + Test V1beta1VirtualMachineExportManifest + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_export_manifest.V1beta1VirtualMachineExportManifest() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_export_spec.py b/test/test_v1beta1_virtual_machine_export_spec.py new file mode 100644 index 00000000..9deadb13 --- /dev/null +++ b/test/test_v1beta1_virtual_machine_export_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_export_spec import V1beta1VirtualMachineExportSpec + + +class TestV1beta1VirtualMachineExportSpec(unittest.TestCase): + """ V1beta1VirtualMachineExportSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineExportSpec(self): + """ + Test V1beta1VirtualMachineExportSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_export_spec.V1beta1VirtualMachineExportSpec() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_export_links.py b/test/test_v1beta1_virtual_machine_export_status.py similarity index 58% rename from test/test_v1alpha1_virtual_machine_export_links.py rename to test/test_v1beta1_virtual_machine_export_status.py index 9987ca64..803ddb5a 100644 --- a/test/test_v1alpha1_virtual_machine_export_links.py +++ b/test/test_v1beta1_virtual_machine_export_status.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_export_links import V1alpha1VirtualMachineExportLinks +from kubevirt.models.v1beta1_virtual_machine_export_status import V1beta1VirtualMachineExportStatus -class TestV1alpha1VirtualMachineExportLinks(unittest.TestCase): - """ V1alpha1VirtualMachineExportLinks unit test stubs """ +class TestV1beta1VirtualMachineExportStatus(unittest.TestCase): + """ V1beta1VirtualMachineExportStatus unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachineExportLinks(self): + def testV1beta1VirtualMachineExportStatus(self): """ - Test V1alpha1VirtualMachineExportLinks + Test V1beta1VirtualMachineExportStatus """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_export_links.V1alpha1VirtualMachineExportLinks() + #model = kubevirt.models.v1beta1_virtual_machine_export_status.V1beta1VirtualMachineExportStatus() pass diff --git a/test/test_v1beta1_virtual_machine_export_volume.py b/test/test_v1beta1_virtual_machine_export_volume.py new file mode 100644 index 00000000..31f07fe7 --- /dev/null +++ b/test/test_v1beta1_virtual_machine_export_volume.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_export_volume import V1beta1VirtualMachineExportVolume + + +class TestV1beta1VirtualMachineExportVolume(unittest.TestCase): + """ V1beta1VirtualMachineExportVolume unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineExportVolume(self): + """ + Test V1beta1VirtualMachineExportVolume + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_export_volume.V1beta1VirtualMachineExportVolume() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_export_volume_format.py b/test/test_v1beta1_virtual_machine_export_volume_format.py new file mode 100644 index 00000000..e2b72b35 --- /dev/null +++ b/test/test_v1beta1_virtual_machine_export_volume_format.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_export_volume_format import V1beta1VirtualMachineExportVolumeFormat + + +class TestV1beta1VirtualMachineExportVolumeFormat(unittest.TestCase): + """ V1beta1VirtualMachineExportVolumeFormat unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineExportVolumeFormat(self): + """ + Test V1beta1VirtualMachineExportVolumeFormat + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_export_volume_format.V1beta1VirtualMachineExportVolumeFormat() + pass + + +if __name__ == '__main__': + unittest.main() From 218b45caa7967a6ca40775725385e475f2b0391e Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Tue, 4 Jun 2024 09:53:13 +0000 Subject: [PATCH 404/521] Client Python update by KubeVirt Prow build 1797914600952303616 --- README.md | 3 +- docs/V1PersistentVolumeClaimInfo.md | 1 + docs/V1StorageMigratedVolumeInfo.md | 12 ++ docs/V1VirtualMachineInstanceStatus.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + .../models/v1_persistent_volume_claim_info.py | 30 ++- .../models/v1_storage_migrated_volume_info.py | 182 ++++++++++++++++++ .../v1_virtual_machine_instance_status.py | 30 ++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_storage_migrated_volume_info.py | 44 +++++ 16 files changed, 310 insertions(+), 8 deletions(-) create mode 100644 docs/V1StorageMigratedVolumeInfo.md create mode 100644 kubevirt/models/v1_storage_migrated_volume_info.py create mode 100644 test/test_v1_storage_migrated_volume_info.py diff --git a/README.md b/README.md index ea539b5e..3d852a2e 100644 --- a/README.md +++ b/README.md @@ -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-beta.0-20-ge54ebc8d2 +- Package version: v1.3.0-beta.0-52-g3d7c9d492 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -552,6 +552,7 @@ Class | Method | HTTP request | Description - [V1SoundDevice](docs/V1SoundDevice.md) - [V1StartOptions](docs/V1StartOptions.md) - [V1StopOptions](docs/V1StopOptions.md) + - [V1StorageMigratedVolumeInfo](docs/V1StorageMigratedVolumeInfo.md) - [V1SupportContainerResources](docs/V1SupportContainerResources.md) - [V1SyNICTimer](docs/V1SyNICTimer.md) - [V1SysprepSource](docs/V1SysprepSource.md) diff --git a/docs/V1PersistentVolumeClaimInfo.md b/docs/V1PersistentVolumeClaimInfo.md index 3ecca9c1..377e9daa 100644 --- a/docs/V1PersistentVolumeClaimInfo.md +++ b/docs/V1PersistentVolumeClaimInfo.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **access_modes** | **list[str]** | AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] **capacity** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Capacity represents the capacity set on the corresponding PVC status | [optional] +**claim_name** | **str** | ClaimName is the name of the PVC | [optional] **filesystem_overhead** | **str** | Percentage of filesystem's size to be reserved when resizing the PVC | [optional] **preallocated** | **bool** | Preallocated indicates if the PVC's storage is preallocated or not | [optional] **requests** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Requests represents the resources requested by the corresponding PVC spec | [optional] diff --git a/docs/V1StorageMigratedVolumeInfo.md b/docs/V1StorageMigratedVolumeInfo.md new file mode 100644 index 00000000..c861cf98 --- /dev/null +++ b/docs/V1StorageMigratedVolumeInfo.md @@ -0,0 +1,12 @@ +# V1StorageMigratedVolumeInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**destination_pvc_info** | [**V1PersistentVolumeClaimInfo**](V1PersistentVolumeClaimInfo.md) | DestinationPVCInfo contains the information about the destination PVC | [optional] +**source_pvc_info** | [**V1PersistentVolumeClaimInfo**](V1PersistentVolumeClaimInfo.md) | SourcePVCInfo contains the information about the source PVC | [optional] +**volume_name** | **str** | VolumeName is the name of the volume that is being migrated | [default to ''] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index b1325aca..d6f8c208 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **launcher_container_image_version** | **str** | LauncherContainerImageVersion indicates what container image is currently active for the vmi. | [optional] **machine** | [**V1Machine**](V1Machine.md) | Machine shows the final resulting qemu machine type. This can be different than the machine type selected in the spec, due to qemus machine type alias mechanism. | [optional] **memory** | [**V1MemoryStatus**](V1MemoryStatus.md) | Memory shows various informations about the VirtualMachine memory. | [optional] +**migrated_volumes** | [**list[V1StorageMigratedVolumeInfo]**](V1StorageMigratedVolumeInfo.md) | MigratedVolumes lists the source and destination volumes during the volume migration | [optional] **migration_method** | **str** | Represents the method using which the vmi can be migrated: live migration or block migration | [optional] **migration_state** | [**V1VirtualMachineInstanceMigrationState**](V1VirtualMachineInstanceMigrationState.md) | Represents the status of a live migration | [optional] **migration_transport** | **str** | This represents the migration transport | [optional] diff --git a/git_push.sh b/git_push.sh index d6fc55e1..6df92501 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.3.0-beta.0-20-ge54ebc8d2" + release_note="Auto-generated client v1.3.0-beta.0-52-g3d7c9d492" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 53097bcf..eb039d33 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -668,6 +668,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_stop_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_stop_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1StopOptions.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_storage_migrated_volume_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_storage_migrated_volume_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1StorageMigratedVolumeInfo.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_support_container_resources.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_support_container_resources.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SupportContainerResources.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 6042a476..e4255a32 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -229,6 +229,7 @@ from .models.v1_sound_device import V1SoundDevice from .models.v1_start_options import V1StartOptions from .models.v1_stop_options import V1StopOptions +from .models.v1_storage_migrated_volume_info import V1StorageMigratedVolumeInfo from .models.v1_support_container_resources import V1SupportContainerResources from .models.v1_sy_nic_timer import V1SyNICTimer from .models.v1_sysprep_source import V1SysprepSource diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index b73beeae..e7240c49 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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-beta.0-20-ge54ebc8d2/python' + self.user_agent = 'Swagger-Codegen/v1.3.0-beta.0-52-g3d7c9d492/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 374e2afd..c2e7776e 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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-beta.0-20-ge54ebc8d2".\ + "SDK Package Version: v1.3.0-beta.0-52-g3d7c9d492".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 2d30942a..4f4737f2 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -229,6 +229,7 @@ from .v1_sound_device import V1SoundDevice from .v1_start_options import V1StartOptions from .v1_stop_options import V1StopOptions +from .v1_storage_migrated_volume_info import V1StorageMigratedVolumeInfo from .v1_support_container_resources import V1SupportContainerResources from .v1_sy_nic_timer import V1SyNICTimer from .v1_sysprep_source import V1SysprepSource diff --git a/kubevirt/models/v1_persistent_volume_claim_info.py b/kubevirt/models/v1_persistent_volume_claim_info.py index ec20885c..78664c34 100644 --- a/kubevirt/models/v1_persistent_volume_claim_info.py +++ b/kubevirt/models/v1_persistent_volume_claim_info.py @@ -33,6 +33,7 @@ class V1PersistentVolumeClaimInfo(object): swagger_types = { 'access_modes': 'list[str]', 'capacity': 'dict(str, K8sIoApimachineryPkgApiResourceQuantity)', + 'claim_name': 'str', 'filesystem_overhead': 'str', 'preallocated': 'bool', 'requests': 'dict(str, K8sIoApimachineryPkgApiResourceQuantity)', @@ -42,19 +43,21 @@ class V1PersistentVolumeClaimInfo(object): attribute_map = { 'access_modes': 'accessModes', 'capacity': 'capacity', + 'claim_name': 'claimName', 'filesystem_overhead': 'filesystemOverhead', 'preallocated': 'preallocated', 'requests': 'requests', 'volume_mode': 'volumeMode' } - def __init__(self, access_modes=None, capacity=None, filesystem_overhead=None, preallocated=None, requests=None, volume_mode=None): + def __init__(self, access_modes=None, capacity=None, claim_name=None, filesystem_overhead=None, preallocated=None, requests=None, volume_mode=None): """ V1PersistentVolumeClaimInfo - a model defined in Swagger """ self._access_modes = None self._capacity = None + self._claim_name = None self._filesystem_overhead = None self._preallocated = None self._requests = None @@ -64,6 +67,8 @@ def __init__(self, access_modes=None, capacity=None, filesystem_overhead=None, p self.access_modes = access_modes if capacity is not None: self.capacity = capacity + if claim_name is not None: + self.claim_name = claim_name if filesystem_overhead is not None: self.filesystem_overhead = filesystem_overhead if preallocated is not None: @@ -119,6 +124,29 @@ def capacity(self, capacity): self._capacity = capacity + @property + def claim_name(self): + """ + Gets the claim_name of this V1PersistentVolumeClaimInfo. + ClaimName is the name of the PVC + + :return: The claim_name of this V1PersistentVolumeClaimInfo. + :rtype: str + """ + return self._claim_name + + @claim_name.setter + def claim_name(self, claim_name): + """ + Sets the claim_name of this V1PersistentVolumeClaimInfo. + ClaimName is the name of the PVC + + :param claim_name: The claim_name of this V1PersistentVolumeClaimInfo. + :type: str + """ + + self._claim_name = claim_name + @property def filesystem_overhead(self): """ diff --git a/kubevirt/models/v1_storage_migrated_volume_info.py b/kubevirt/models/v1_storage_migrated_volume_info.py new file mode 100644 index 00000000..096b6cd0 --- /dev/null +++ b/kubevirt/models/v1_storage_migrated_volume_info.py @@ -0,0 +1,182 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1StorageMigratedVolumeInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'destination_pvc_info': 'V1PersistentVolumeClaimInfo', + 'source_pvc_info': 'V1PersistentVolumeClaimInfo', + 'volume_name': 'str' + } + + attribute_map = { + 'destination_pvc_info': 'destinationPVCInfo', + 'source_pvc_info': 'sourcePVCInfo', + 'volume_name': 'volumeName' + } + + def __init__(self, destination_pvc_info=None, source_pvc_info=None, volume_name=''): + """ + V1StorageMigratedVolumeInfo - a model defined in Swagger + """ + + self._destination_pvc_info = None + self._source_pvc_info = None + self._volume_name = None + + if destination_pvc_info is not None: + self.destination_pvc_info = destination_pvc_info + if source_pvc_info is not None: + self.source_pvc_info = source_pvc_info + self.volume_name = volume_name + + @property + def destination_pvc_info(self): + """ + Gets the destination_pvc_info of this V1StorageMigratedVolumeInfo. + DestinationPVCInfo contains the information about the destination PVC + + :return: The destination_pvc_info of this V1StorageMigratedVolumeInfo. + :rtype: V1PersistentVolumeClaimInfo + """ + return self._destination_pvc_info + + @destination_pvc_info.setter + def destination_pvc_info(self, destination_pvc_info): + """ + Sets the destination_pvc_info of this V1StorageMigratedVolumeInfo. + DestinationPVCInfo contains the information about the destination PVC + + :param destination_pvc_info: The destination_pvc_info of this V1StorageMigratedVolumeInfo. + :type: V1PersistentVolumeClaimInfo + """ + + self._destination_pvc_info = destination_pvc_info + + @property + def source_pvc_info(self): + """ + Gets the source_pvc_info of this V1StorageMigratedVolumeInfo. + SourcePVCInfo contains the information about the source PVC + + :return: The source_pvc_info of this V1StorageMigratedVolumeInfo. + :rtype: V1PersistentVolumeClaimInfo + """ + return self._source_pvc_info + + @source_pvc_info.setter + def source_pvc_info(self, source_pvc_info): + """ + Sets the source_pvc_info of this V1StorageMigratedVolumeInfo. + SourcePVCInfo contains the information about the source PVC + + :param source_pvc_info: The source_pvc_info of this V1StorageMigratedVolumeInfo. + :type: V1PersistentVolumeClaimInfo + """ + + self._source_pvc_info = source_pvc_info + + @property + def volume_name(self): + """ + Gets the volume_name of this V1StorageMigratedVolumeInfo. + VolumeName is the name of the volume that is being migrated + + :return: The volume_name of this V1StorageMigratedVolumeInfo. + :rtype: str + """ + return self._volume_name + + @volume_name.setter + def volume_name(self, volume_name): + """ + Sets the volume_name of this V1StorageMigratedVolumeInfo. + VolumeName is the name of the volume that is being migrated + + :param volume_name: The volume_name of this V1StorageMigratedVolumeInfo. + :type: str + """ + if volume_name is None: + raise ValueError("Invalid value for `volume_name`, must not be `None`") + + self._volume_name = volume_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1StorageMigratedVolumeInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index 89b10fce..30e657bb 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -43,6 +43,7 @@ class V1VirtualMachineInstanceStatus(object): 'launcher_container_image_version': 'str', 'machine': 'V1Machine', 'memory': 'V1MemoryStatus', + 'migrated_volumes': 'list[V1StorageMigratedVolumeInfo]', 'migration_method': 'str', 'migration_state': 'V1VirtualMachineInstanceMigrationState', 'migration_transport': 'str', @@ -71,6 +72,7 @@ class V1VirtualMachineInstanceStatus(object): 'launcher_container_image_version': 'launcherContainerImageVersion', 'machine': 'machine', 'memory': 'memory', + 'migrated_volumes': 'migratedVolumes', 'migration_method': 'migrationMethod', 'migration_state': 'migrationState', 'migration_transport': 'migrationTransport', @@ -86,7 +88,7 @@ class V1VirtualMachineInstanceStatus(object): 'volume_status': 'volumeStatus' } - def __init__(self, vsockcid=None, active_pods=None, conditions=None, current_cpu_topology=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, kernel_boot_status=None, launcher_container_image_version=None, machine=None, memory=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=0, selinux_context=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): + def __init__(self, vsockcid=None, active_pods=None, conditions=None, current_cpu_topology=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, kernel_boot_status=None, launcher_container_image_version=None, machine=None, memory=None, migrated_volumes=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=0, selinux_context=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ @@ -103,6 +105,7 @@ def __init__(self, vsockcid=None, active_pods=None, conditions=None, current_cpu self._launcher_container_image_version = None self._machine = None self._memory = None + self._migrated_volumes = None self._migration_method = None self._migration_state = None self._migration_transport = None @@ -141,6 +144,8 @@ def __init__(self, vsockcid=None, active_pods=None, conditions=None, current_cpu self.machine = machine if memory is not None: self.memory = memory + if migrated_volumes is not None: + self.migrated_volumes = migrated_volumes if migration_method is not None: self.migration_method = migration_method if migration_state is not None: @@ -444,6 +449,29 @@ def memory(self, memory): self._memory = memory + @property + def migrated_volumes(self): + """ + Gets the migrated_volumes of this V1VirtualMachineInstanceStatus. + MigratedVolumes lists the source and destination volumes during the volume migration + + :return: The migrated_volumes of this V1VirtualMachineInstanceStatus. + :rtype: list[V1StorageMigratedVolumeInfo] + """ + return self._migrated_volumes + + @migrated_volumes.setter + def migrated_volumes(self, migrated_volumes): + """ + Sets the migrated_volumes of this V1VirtualMachineInstanceStatus. + MigratedVolumes lists the source and destination volumes during the volume migration + + :param migrated_volumes: The migrated_volumes of this V1VirtualMachineInstanceStatus. + :type: list[V1StorageMigratedVolumeInfo] + """ + + self._migrated_volumes = migrated_volumes + @property def migration_method(self): """ diff --git a/setup.py b/setup.py index 808f2ea5..f9c75c67 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.3.0-beta.0-20-ge54ebc8d2" +VERSION = "v1.3.0-beta.0-52-g3d7c9d492" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 3eefce67..3eac6322 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.3.0-beta.0-20-ge54ebc8d2" +"packageVersion": "v1.3.0-beta.0-52-g3d7c9d492" } diff --git a/test/test_v1_storage_migrated_volume_info.py b/test/test_v1_storage_migrated_volume_info.py new file mode 100644 index 00000000..fe00436f --- /dev/null +++ b/test/test_v1_storage_migrated_volume_info.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_storage_migrated_volume_info import V1StorageMigratedVolumeInfo + + +class TestV1StorageMigratedVolumeInfo(unittest.TestCase): + """ V1StorageMigratedVolumeInfo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1StorageMigratedVolumeInfo(self): + """ + Test V1StorageMigratedVolumeInfo + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_storage_migrated_volume_info.V1StorageMigratedVolumeInfo() + pass + + +if __name__ == '__main__': + unittest.main() From 6836f3a775281ad6f1d1267e5f0a087c92057735 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 6 Jun 2024 08:17:45 +0000 Subject: [PATCH 405/521] Client Python update by KubeVirt Prow build 1798616747444539392 --- README.md | 4 ++-- ...terfacePasst.md => V1DeprecatedInterfacePasst.md} | 2 +- docs/V1Interface.md | 2 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 +++--- kubevirt/__init__.py | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 +- ...ace_passt.py => v1_deprecated_interface_passt.py} | 6 +++--- kubevirt/models/v1_interface.py | 10 +++++----- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...asst.py => test_v1_deprecated_interface_passt.py} | 12 ++++++------ 14 files changed, 28 insertions(+), 28 deletions(-) rename docs/{V1InterfacePasst.md => V1DeprecatedInterfacePasst.md} (90%) rename kubevirt/models/{v1_interface_passt.py => v1_deprecated_interface_passt.py} (93%) rename test/{test_v1_interface_passt.py => test_v1_deprecated_interface_passt.py} (62%) diff --git a/README.md b/README.md index 3d852a2e..09059935 100644 --- a/README.md +++ b/README.md @@ -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-beta.0-52-g3d7c9d492 +- Package version: v1.3.0-beta.0-70-g841745da5 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -427,6 +427,7 @@ Class | Method | HTTP request | Description - [V1DataVolumeTemplateDummyStatus](docs/V1DataVolumeTemplateDummyStatus.md) - [V1DataVolumeTemplateSpec](docs/V1DataVolumeTemplateSpec.md) - [V1DeprecatedInterfaceMacvtap](docs/V1DeprecatedInterfaceMacvtap.md) + - [V1DeprecatedInterfacePasst](docs/V1DeprecatedInterfacePasst.md) - [V1DeprecatedInterfaceSlirp](docs/V1DeprecatedInterfaceSlirp.md) - [V1DeveloperConfiguration](docs/V1DeveloperConfiguration.md) - [V1Devices](docs/V1Devices.md) @@ -476,7 +477,6 @@ Class | Method | HTTP request | Description - [V1InterfaceBindingPlugin](docs/V1InterfaceBindingPlugin.md) - [V1InterfaceBridge](docs/V1InterfaceBridge.md) - [V1InterfaceMasquerade](docs/V1InterfaceMasquerade.md) - - [V1InterfacePasst](docs/V1InterfacePasst.md) - [V1InterfaceSRIOV](docs/V1InterfaceSRIOV.md) - [V1KSMConfiguration](docs/V1KSMConfiguration.md) - [V1KVMTimer](docs/V1KVMTimer.md) diff --git a/docs/V1InterfacePasst.md b/docs/V1DeprecatedInterfacePasst.md similarity index 90% rename from docs/V1InterfacePasst.md rename to docs/V1DeprecatedInterfacePasst.md index 16038ea6..165db7e1 100644 --- a/docs/V1InterfacePasst.md +++ b/docs/V1DeprecatedInterfacePasst.md @@ -1,4 +1,4 @@ -# V1InterfacePasst +# V1DeprecatedInterfacePasst ## Properties Name | Type | Description | Notes diff --git a/docs/V1Interface.md b/docs/V1Interface.md index 372a208d..7f5cf817 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **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 ''] -**passt** | [**V1InterfacePasst**](V1InterfacePasst.md) | Deprecated, please refer to Kubevirt user guide for alternatives. | [optional] +**passt** | [**V1DeprecatedInterfacePasst**](V1DeprecatedInterfacePasst.md) | DeprecatedPasst is an alias to the deprecated Passt interface, please refer to Kubevirt user guide for alternatives. Deprecated: Removed in v1.3 | [optional] **pci_address** | **str** | If specified, the virtual network interface will be placed on the guests pci address with the specified PCI address. For example: 0000:81:01.10 | [optional] **ports** | [**list[V1Port]**](V1Port.md) | List of ports to be forwarded to the virtual machine. | [optional] **slirp** | [**V1DeprecatedInterfaceSlirp**](V1DeprecatedInterfaceSlirp.md) | DeprecatedSlirp is an alias to the deprecated Slirp interface Deprecated: Removed in v1.3 | [optional] diff --git a/git_push.sh b/git_push.sh index 6df92501..686f20aa 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.3.0-beta.0-52-g3d7c9d492" + release_note="Auto-generated client v1.3.0-beta.0-70-g841745da5" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index eb039d33..62e8b877 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -293,6 +293,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_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_passt.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_deprecated_interface_passt.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DeprecatedInterfacePasst.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 @@ -440,9 +443,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_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 -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_interface_passt.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface_passt.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InterfacePasst.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_interface_sriov.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface_sriov.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InterfaceSRIOV.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index e4255a32..f901353f 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -104,6 +104,7 @@ 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_passt import V1DeprecatedInterfacePasst from .models.v1_deprecated_interface_slirp import V1DeprecatedInterfaceSlirp from .models.v1_developer_configuration import V1DeveloperConfiguration from .models.v1_devices import V1Devices @@ -153,7 +154,6 @@ from .models.v1_interface_binding_plugin import V1InterfaceBindingPlugin from .models.v1_interface_bridge import V1InterfaceBridge from .models.v1_interface_masquerade import V1InterfaceMasquerade -from .models.v1_interface_passt import V1InterfacePasst from .models.v1_interface_sriov import V1InterfaceSRIOV from .models.v1_ksm_configuration import V1KSMConfiguration from .models.v1_kvm_timer import V1KVMTimer diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index e7240c49..63800a66 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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-beta.0-52-g3d7c9d492/python' + self.user_agent = 'Swagger-Codegen/v1.3.0-beta.0-70-g841745da5/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c2e7776e..9bfc7ab0 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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-beta.0-52-g3d7c9d492".\ + "SDK Package Version: v1.3.0-beta.0-70-g841745da5".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 4f4737f2..d83318d6 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -104,6 +104,7 @@ 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_passt import V1DeprecatedInterfacePasst from .v1_deprecated_interface_slirp import V1DeprecatedInterfaceSlirp from .v1_developer_configuration import V1DeveloperConfiguration from .v1_devices import V1Devices @@ -153,7 +154,6 @@ from .v1_interface_binding_plugin import V1InterfaceBindingPlugin from .v1_interface_bridge import V1InterfaceBridge from .v1_interface_masquerade import V1InterfaceMasquerade -from .v1_interface_passt import V1InterfacePasst from .v1_interface_sriov import V1InterfaceSRIOV from .v1_ksm_configuration import V1KSMConfiguration from .v1_kvm_timer import V1KVMTimer diff --git a/kubevirt/models/v1_interface_passt.py b/kubevirt/models/v1_deprecated_interface_passt.py similarity index 93% rename from kubevirt/models/v1_interface_passt.py rename to kubevirt/models/v1_deprecated_interface_passt.py index 453e252f..c22e2eee 100644 --- a/kubevirt/models/v1_interface_passt.py +++ b/kubevirt/models/v1_deprecated_interface_passt.py @@ -16,7 +16,7 @@ import re -class V1InterfacePasst(object): +class V1DeprecatedInterfacePasst(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,7 +40,7 @@ class V1InterfacePasst(object): def __init__(self): """ - V1InterfacePasst - a model defined in Swagger + V1DeprecatedInterfacePasst - a model defined in Swagger """ @@ -87,7 +87,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1InterfacePasst): + if not isinstance(other, V1DeprecatedInterfacePasst): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_interface.py b/kubevirt/models/v1_interface.py index 59d46913..346274ee 100644 --- a/kubevirt/models/v1_interface.py +++ b/kubevirt/models/v1_interface.py @@ -41,7 +41,7 @@ class V1Interface(object): 'masquerade': 'V1InterfaceMasquerade', 'model': 'str', 'name': 'str', - 'passt': 'V1InterfacePasst', + 'passt': 'V1DeprecatedInterfacePasst', 'pci_address': 'str', 'ports': 'list[V1Port]', 'slirp': 'V1DeprecatedInterfaceSlirp', @@ -359,10 +359,10 @@ def name(self, name): def passt(self): """ Gets the passt of this V1Interface. - Deprecated, please refer to Kubevirt user guide for alternatives. + DeprecatedPasst is an alias to the deprecated Passt interface, please refer to Kubevirt user guide for alternatives. Deprecated: Removed in v1.3 :return: The passt of this V1Interface. - :rtype: V1InterfacePasst + :rtype: V1DeprecatedInterfacePasst """ return self._passt @@ -370,10 +370,10 @@ def passt(self): def passt(self, passt): """ Sets the passt of this V1Interface. - Deprecated, please refer to Kubevirt user guide for alternatives. + DeprecatedPasst is an alias to the deprecated Passt interface, please refer to Kubevirt user guide for alternatives. Deprecated: Removed in v1.3 :param passt: The passt of this V1Interface. - :type: V1InterfacePasst + :type: V1DeprecatedInterfacePasst """ self._passt = passt diff --git a/setup.py b/setup.py index f9c75c67..5114b8c5 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.3.0-beta.0-52-g3d7c9d492" +VERSION = "v1.3.0-beta.0-70-g841745da5" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 3eac6322..48e23032 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.3.0-beta.0-52-g3d7c9d492" +"packageVersion": "v1.3.0-beta.0-70-g841745da5" } diff --git a/test/test_v1_interface_passt.py b/test/test_v1_deprecated_interface_passt.py similarity index 62% rename from test/test_v1_interface_passt.py rename to test/test_v1_deprecated_interface_passt.py index a4bcb498..a89dab3f 100644 --- a/test/test_v1_interface_passt.py +++ b/test/test_v1_deprecated_interface_passt.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_interface_passt import V1InterfacePasst +from kubevirt.models.v1_deprecated_interface_passt import V1DeprecatedInterfacePasst -class TestV1InterfacePasst(unittest.TestCase): - """ V1InterfacePasst unit test stubs """ +class TestV1DeprecatedInterfacePasst(unittest.TestCase): + """ V1DeprecatedInterfacePasst unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1InterfacePasst(self): + def testV1DeprecatedInterfacePasst(self): """ - Test V1InterfacePasst + Test V1DeprecatedInterfacePasst """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_interface_passt.V1InterfacePasst() + #model = kubevirt.models.v1_deprecated_interface_passt.V1DeprecatedInterfacePasst() pass From 89b515582ba62281ca3464cb5b23202e74c196a7 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 7 Jun 2024 18:15:15 +0000 Subject: [PATCH 406/521] Client Python update by KubeVirt Prow build 1799133276011499520 --- README.md | 2 +- docs/V1beta1CPUInstancetype.md | 1 + docs/V1beta1MemoryInstancetype.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1beta1_cpu_instancetype.py | 30 ++++++++++++++++++- .../models/v1beta1_memory_instancetype.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 66 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 09059935..ddc90ccb 100644 --- a/README.md +++ b/README.md @@ -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-beta.0-70-g841745da5 +- Package version: v1.3.0-beta.0-127-gcfa3b38d1 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1CPUInstancetype.md b/docs/V1beta1CPUInstancetype.md index 3728308f..b0059732 100644 --- a/docs/V1beta1CPUInstancetype.md +++ b/docs/V1beta1CPUInstancetype.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **dedicated_cpu_placement** | **bool** | DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. | [optional] **guest** | **int** | Required number of vCPUs to expose to the guest. The resulting CPU topology being derived from the optional PreferredCPUTopology attribute of CPUPreferences that itself defaults to PreferSockets. | [default to 0] **isolate_emulator_thread** | **bool** | IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it. | [optional] +**max_sockets** | **int** | MaxSockets specifies the maximum amount of sockets that can be hotplugged | [optional] **model** | **str** | Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. | [optional] **numa** | [**V1NUMA**](V1NUMA.md) | NUMA allows specifying settings for the guest NUMA topology | [optional] **realtime** | [**V1Realtime**](V1Realtime.md) | Realtime instructs the virt-launcher to tune the VMI for lower latency, optional for real time workloads | [optional] diff --git a/docs/V1beta1MemoryInstancetype.md b/docs/V1beta1MemoryInstancetype.md index f7b989ff..8b366db6 100644 --- a/docs/V1beta1MemoryInstancetype.md +++ b/docs/V1beta1MemoryInstancetype.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **guest** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | Required amount of memory which is visible inside the guest OS. | **hugepages** | [**V1Hugepages**](V1Hugepages.md) | Optionally enables the use of hugepages for the VirtualMachineInstance instead of regular memory. | [optional] +**max_guest** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | MaxGuest allows to specify the maximum amount of memory which is visible inside the Guest OS. The delta between MaxGuest and Guest is the amount of memory that can be hot(un)plugged. | [optional] **overcommit_percent** | **int** | OvercommitPercent is the percentage of the guest memory which will be overcommitted. This means that the VMIs parent pod (virt-launcher) will request less physical memory by a factor specified by the OvercommitPercent. Overcommits can lead to memory exhaustion, which in turn can lead to crashes. Use carefully. Defaults to 0 | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 686f20aa..43c798cf 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.3.0-beta.0-70-g841745da5" + release_note="Auto-generated client v1.3.0-beta.0-127-gcfa3b38d1" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 63800a66..679f069a 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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-beta.0-70-g841745da5/python' + self.user_agent = 'Swagger-Codegen/v1.3.0-beta.0-127-gcfa3b38d1/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 9bfc7ab0..194b293e 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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-beta.0-70-g841745da5".\ + "SDK Package Version: v1.3.0-beta.0-127-gcfa3b38d1".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_cpu_instancetype.py b/kubevirt/models/v1beta1_cpu_instancetype.py index 64bd4bf4..20e3f9f8 100644 --- a/kubevirt/models/v1beta1_cpu_instancetype.py +++ b/kubevirt/models/v1beta1_cpu_instancetype.py @@ -34,6 +34,7 @@ class V1beta1CPUInstancetype(object): 'dedicated_cpu_placement': 'bool', 'guest': 'int', 'isolate_emulator_thread': 'bool', + 'max_sockets': 'int', 'model': 'str', 'numa': 'V1NUMA', 'realtime': 'V1Realtime' @@ -43,12 +44,13 @@ class V1beta1CPUInstancetype(object): 'dedicated_cpu_placement': 'dedicatedCPUPlacement', 'guest': 'guest', 'isolate_emulator_thread': 'isolateEmulatorThread', + 'max_sockets': 'maxSockets', 'model': 'model', 'numa': 'numa', 'realtime': 'realtime' } - def __init__(self, dedicated_cpu_placement=None, guest=0, isolate_emulator_thread=None, model=None, numa=None, realtime=None): + def __init__(self, dedicated_cpu_placement=None, guest=0, isolate_emulator_thread=None, max_sockets=None, model=None, numa=None, realtime=None): """ V1beta1CPUInstancetype - a model defined in Swagger """ @@ -56,6 +58,7 @@ def __init__(self, dedicated_cpu_placement=None, guest=0, isolate_emulator_threa self._dedicated_cpu_placement = None self._guest = None self._isolate_emulator_thread = None + self._max_sockets = None self._model = None self._numa = None self._realtime = None @@ -65,6 +68,8 @@ def __init__(self, dedicated_cpu_placement=None, guest=0, isolate_emulator_threa self.guest = guest if isolate_emulator_thread is not None: self.isolate_emulator_thread = isolate_emulator_thread + if max_sockets is not None: + self.max_sockets = max_sockets if model is not None: self.model = model if numa is not None: @@ -143,6 +148,29 @@ def isolate_emulator_thread(self, isolate_emulator_thread): self._isolate_emulator_thread = isolate_emulator_thread + @property + def max_sockets(self): + """ + Gets the max_sockets of this V1beta1CPUInstancetype. + MaxSockets specifies the maximum amount of sockets that can be hotplugged + + :return: The max_sockets of this V1beta1CPUInstancetype. + :rtype: int + """ + return self._max_sockets + + @max_sockets.setter + def max_sockets(self, max_sockets): + """ + Sets the max_sockets of this V1beta1CPUInstancetype. + MaxSockets specifies the maximum amount of sockets that can be hotplugged + + :param max_sockets: The max_sockets of this V1beta1CPUInstancetype. + :type: int + """ + + self._max_sockets = max_sockets + @property def model(self): """ diff --git a/kubevirt/models/v1beta1_memory_instancetype.py b/kubevirt/models/v1beta1_memory_instancetype.py index fbc0375d..622c0f5b 100644 --- a/kubevirt/models/v1beta1_memory_instancetype.py +++ b/kubevirt/models/v1beta1_memory_instancetype.py @@ -33,27 +33,32 @@ class V1beta1MemoryInstancetype(object): swagger_types = { 'guest': 'K8sIoApimachineryPkgApiResourceQuantity', 'hugepages': 'V1Hugepages', + 'max_guest': 'K8sIoApimachineryPkgApiResourceQuantity', 'overcommit_percent': 'int' } attribute_map = { 'guest': 'guest', 'hugepages': 'hugepages', + 'max_guest': 'maxGuest', 'overcommit_percent': 'overcommitPercent' } - def __init__(self, guest=None, hugepages=None, overcommit_percent=None): + def __init__(self, guest=None, hugepages=None, max_guest=None, overcommit_percent=None): """ V1beta1MemoryInstancetype - a model defined in Swagger """ self._guest = None self._hugepages = None + self._max_guest = None self._overcommit_percent = None self.guest = guest if hugepages is not None: self.hugepages = hugepages + if max_guest is not None: + self.max_guest = max_guest if overcommit_percent is not None: self.overcommit_percent = overcommit_percent @@ -105,6 +110,29 @@ def hugepages(self, hugepages): self._hugepages = hugepages + @property + def max_guest(self): + """ + Gets the max_guest of this V1beta1MemoryInstancetype. + MaxGuest allows to specify the maximum amount of memory which is visible inside the Guest OS. The delta between MaxGuest and Guest is the amount of memory that can be hot(un)plugged. + + :return: The max_guest of this V1beta1MemoryInstancetype. + :rtype: K8sIoApimachineryPkgApiResourceQuantity + """ + return self._max_guest + + @max_guest.setter + def max_guest(self, max_guest): + """ + Sets the max_guest of this V1beta1MemoryInstancetype. + MaxGuest allows to specify the maximum amount of memory which is visible inside the Guest OS. The delta between MaxGuest and Guest is the amount of memory that can be hot(un)plugged. + + :param max_guest: The max_guest of this V1beta1MemoryInstancetype. + :type: K8sIoApimachineryPkgApiResourceQuantity + """ + + self._max_guest = max_guest + @property def overcommit_percent(self): """ diff --git a/setup.py b/setup.py index 5114b8c5..16df19ee 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.3.0-beta.0-70-g841745da5" +VERSION = "v1.3.0-beta.0-127-gcfa3b38d1" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 48e23032..1517571d 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.3.0-beta.0-70-g841745da5" +"packageVersion": "v1.3.0-beta.0-127-gcfa3b38d1" } From 4cf49c10ac16874cc49144f07c303c457bf4b5b9 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 12 Jun 2024 12:57:59 +0000 Subject: [PATCH 407/521] Client Python update by KubeVirt Prow build 1800852167297339392 --- README.md | 3 +- docs/K8sIoApiCoreV1DownwardAPIVolumeFile.md | 2 +- docs/K8sIoApiCoreV1HTTPHeader.md | 2 +- ...K8sIoApiCoreV1PersistentVolumeClaimSpec.md | 3 +- docs/K8sIoApiCoreV1PodAffinityTerm.md | 4 +- docs/K8sIoApiCoreV1ResourceRequirements.md | 2 +- .../K8sIoApiCoreV1TopologySpreadConstraint.md | 4 +- ...8sIoApiCoreV1VolumeResourceRequirements.md | 11 ++ ...8sIoApimachineryPkgApisMetaV1ObjectMeta.md | 10 +- ...ApimachineryPkgApisMetaV1OwnerReference.md | 4 +- ...oApimachineryPkgApisMetaV1StatusDetails.md | 2 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + ...io_api_core_v1_downward_api_volume_file.py | 4 +- .../models/k8s_io_api_core_v1_http_header.py | 4 +- ...pi_core_v1_persistent_volume_claim_spec.py | 36 ++++- .../k8s_io_api_core_v1_pod_affinity_term.py | 62 ++++++- ...8s_io_api_core_v1_resource_requirements.py | 4 +- ..._api_core_v1_topology_spread_constraint.py | 8 +- ...pi_core_v1_volume_resource_requirements.py | 153 ++++++++++++++++++ ...imachinery_pkg_apis_meta_v1_object_meta.py | 20 +-- ...hinery_pkg_apis_meta_v1_owner_reference.py | 8 +- ...chinery_pkg_apis_meta_v1_status_details.py | 4 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...pi_core_v1_volume_resource_requirements.py | 44 +++++ 30 files changed, 355 insertions(+), 54 deletions(-) create mode 100644 docs/K8sIoApiCoreV1VolumeResourceRequirements.md create mode 100644 kubevirt/models/k8s_io_api_core_v1_volume_resource_requirements.py create mode 100644 test/test_k8s_io_api_core_v1_volume_resource_requirements.py diff --git a/README.md b/README.md index ddc90ccb..dbabd8ba 100644 --- a/README.md +++ b/README.md @@ -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-beta.0-127-gcfa3b38d1 +- Package version: v1.3.0-beta.0-202-gf8efa5771 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -364,6 +364,7 @@ Class | Method | HTTP request | Description - [K8sIoApiCoreV1TopologySpreadConstraint](docs/K8sIoApiCoreV1TopologySpreadConstraint.md) - [K8sIoApiCoreV1TypedLocalObjectReference](docs/K8sIoApiCoreV1TypedLocalObjectReference.md) - [K8sIoApiCoreV1TypedObjectReference](docs/K8sIoApiCoreV1TypedObjectReference.md) + - [K8sIoApiCoreV1VolumeResourceRequirements](docs/K8sIoApiCoreV1VolumeResourceRequirements.md) - [K8sIoApiCoreV1WeightedPodAffinityTerm](docs/K8sIoApiCoreV1WeightedPodAffinityTerm.md) - [K8sIoApimachineryPkgApiResourceQuantity](docs/K8sIoApimachineryPkgApiResourceQuantity.md) - [K8sIoApimachineryPkgApisMetaV1APIGroup](docs/K8sIoApimachineryPkgApisMetaV1APIGroup.md) diff --git a/docs/K8sIoApiCoreV1DownwardAPIVolumeFile.md b/docs/K8sIoApiCoreV1DownwardAPIVolumeFile.md index b11dd162..d5fef73c 100644 --- a/docs/K8sIoApiCoreV1DownwardAPIVolumeFile.md +++ b/docs/K8sIoApiCoreV1DownwardAPIVolumeFile.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**field_ref** | [**K8sIoApiCoreV1ObjectFieldSelector**](K8sIoApiCoreV1ObjectFieldSelector.md) | Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. | [optional] +**field_ref** | [**K8sIoApiCoreV1ObjectFieldSelector**](K8sIoApiCoreV1ObjectFieldSelector.md) | Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported. | [optional] **mode** | **int** | Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] **path** | **str** | Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' | [default to ''] **resource_field_ref** | [**K8sIoApiCoreV1ResourceFieldSelector**](K8sIoApiCoreV1ResourceFieldSelector.md) | Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. | [optional] diff --git a/docs/K8sIoApiCoreV1HTTPHeader.md b/docs/K8sIoApiCoreV1HTTPHeader.md index 069171dc..1a90fa5d 100644 --- a/docs/K8sIoApiCoreV1HTTPHeader.md +++ b/docs/K8sIoApiCoreV1HTTPHeader.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | The header field name | [default to ''] +**name** | **str** | The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header. | [default to ''] **value** | **str** | The header field value | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md b/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md index ff6c55dc..b115c9eb 100644 --- a/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md +++ b/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes **access_modes** | **list[str]** | accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] **data_source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource. | [optional] **data_source_ref** | [**K8sIoApiCoreV1TypedObjectReference**](K8sIoApiCoreV1TypedObjectReference.md) | dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While dataSource ignores disallowed values (dropping them), dataSourceRef preserves all values, and generates an error if a disallowed value is specified. * While dataSource only allows local objects, dataSourceRef allows objects in any namespaces. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled. | [optional] -**resources** | [**K8sIoApiCoreV1ResourceRequirements**](K8sIoApiCoreV1ResourceRequirements.md) | resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources | [optional] +**resources** | [**K8sIoApiCoreV1VolumeResourceRequirements**](K8sIoApiCoreV1VolumeResourceRequirements.md) | resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources | [optional] **selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | selector is a label query over volumes to consider for binding. | [optional] **storage_class_name** | **str** | storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] +**volume_attributes_class_name** | **str** | volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled. | [optional] **volume_mode** | **str** | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. | [optional] **volume_name** | **str** | volumeName is the binding reference to the PersistentVolume backing this claim. | [optional] diff --git a/docs/K8sIoApiCoreV1PodAffinityTerm.md b/docs/K8sIoApiCoreV1PodAffinityTerm.md index a26e6100..7de4f95e 100644 --- a/docs/K8sIoApiCoreV1PodAffinityTerm.md +++ b/docs/K8sIoApiCoreV1PodAffinityTerm.md @@ -3,7 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**label_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | A label query over a set of resources, in this case pods. | [optional] +**label_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. | [optional] +**match_label_keys** | **list[str]** | MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. | [optional] +**mismatch_label_keys** | **list[str]** | MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. | [optional] **namespace_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces. | [optional] **namespaces** | **list[str]** | namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\". | [optional] **topology_key** | **str** | This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. | [default to ''] diff --git a/docs/K8sIoApiCoreV1ResourceRequirements.md b/docs/K8sIoApiCoreV1ResourceRequirements.md index 59576308..0cc634c9 100644 --- a/docs/K8sIoApiCoreV1ResourceRequirements.md +++ b/docs/K8sIoApiCoreV1ResourceRequirements.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **claims** | [**list[K8sIoApiCoreV1ResourceClaim]**](K8sIoApiCoreV1ResourceClaim.md) | Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. | [optional] **limits** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] -**requests** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] +**requests** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApiCoreV1TopologySpreadConstraint.md b/docs/K8sIoApiCoreV1TopologySpreadConstraint.md index 8b366c34..49fa6185 100644 --- a/docs/K8sIoApiCoreV1TopologySpreadConstraint.md +++ b/docs/K8sIoApiCoreV1TopologySpreadConstraint.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **label_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. | [optional] -**match_label_keys** | **list[str]** | MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. | [optional] +**match_label_keys** | **list[str]** | MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default). | [optional] **max_skew** | **int** | MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. | [default to 0] -**min_domains** | **int** | MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). | [optional] +**min_domains** | **int** | MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. | [optional] **node_affinity_policy** | **str** | NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. | [optional] **node_taints_policy** | **str** | NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. | [optional] **topology_key** | **str** | TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each <key, value> as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field. | [default to ''] diff --git a/docs/K8sIoApiCoreV1VolumeResourceRequirements.md b/docs/K8sIoApiCoreV1VolumeResourceRequirements.md new file mode 100644 index 00000000..68a2d4c6 --- /dev/null +++ b/docs/K8sIoApiCoreV1VolumeResourceRequirements.md @@ -0,0 +1,11 @@ +# K8sIoApiCoreV1VolumeResourceRequirements + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**limits** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] +**requests** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/K8sIoApimachineryPkgApisMetaV1ObjectMeta.md b/docs/K8sIoApimachineryPkgApisMetaV1ObjectMeta.md index eb692a02..9cd8fdd1 100644 --- a/docs/K8sIoApimachineryPkgApisMetaV1ObjectMeta.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1ObjectMeta.md @@ -3,20 +3,20 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations | [optional] +**annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations | [optional] **deletion_grace_period_seconds** | **int** | Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. | [optional] **deletion_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] **finalizers** | **list[str]** | Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. | [optional] **generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency | [optional] **generation** | **int** | A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. | [optional] -**labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels | [optional] +**labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels | [optional] **managed_fields** | [**list[K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry]**](K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry.md) | ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. | [optional] -**name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] -**namespace** | **str** | Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces | [optional] +**name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names | [optional] +**namespace** | **str** | Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces | [optional] **owner_references** | [**list[K8sIoApimachineryPkgApisMetaV1OwnerReference]**](K8sIoApimachineryPkgApisMetaV1OwnerReference.md) | List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. | [optional] **resource_version** | **str** | An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency | [optional] **self_link** | **str** | Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. | [optional] -**uid** | **str** | UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids | [optional] +**uid** | **str** | UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApimachineryPkgApisMetaV1OwnerReference.md b/docs/K8sIoApimachineryPkgApisMetaV1OwnerReference.md index 5106c402..d7d98cb3 100644 --- a/docs/K8sIoApimachineryPkgApisMetaV1OwnerReference.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1OwnerReference.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **block_owner_deletion** | **bool** | If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. | [optional] **controller** | **bool** | If true, this reference points to the managing controller. | [optional] **kind** | **str** | Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [default to ''] -**name** | **str** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [default to ''] -**uid** | **str** | UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids | [default to ''] +**name** | **str** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names | [default to ''] +**uid** | **str** | UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApimachineryPkgApisMetaV1StatusDetails.md b/docs/K8sIoApimachineryPkgApisMetaV1StatusDetails.md index 5e8123d9..4a3b1313 100644 --- a/docs/K8sIoApimachineryPkgApisMetaV1StatusDetails.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1StatusDetails.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **kind** | **str** | The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **name** | **str** | The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). | [optional] **retry_after_seconds** | **int** | If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action. | [optional] -**uid** | **str** | UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids | [optional] +**uid** | **str** | UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 43c798cf..212ca716 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.3.0-beta.0-127-gcfa3b38d1" + release_note="Auto-generated client v1.3.0-beta.0-202-gf8efa5771" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 62e8b877..18d1795c 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -104,6 +104,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/k8s_io_api_core_v1_typed_object_reference.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_typed_object_reference.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1TypedObjectReference.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_volume_resource_requirements.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_volume_resource_requirements.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1VolumeResourceRequirements.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_weighted_pod_affinity_term.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_weighted_pod_affinity_term.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1WeightedPodAffinityTerm.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index f901353f..c54cfa0c 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -41,6 +41,7 @@ from .models.k8s_io_api_core_v1_topology_spread_constraint import K8sIoApiCoreV1TopologySpreadConstraint from .models.k8s_io_api_core_v1_typed_local_object_reference import K8sIoApiCoreV1TypedLocalObjectReference from .models.k8s_io_api_core_v1_typed_object_reference import K8sIoApiCoreV1TypedObjectReference +from .models.k8s_io_api_core_v1_volume_resource_requirements import K8sIoApiCoreV1VolumeResourceRequirements from .models.k8s_io_api_core_v1_weighted_pod_affinity_term import K8sIoApiCoreV1WeightedPodAffinityTerm from .models.k8s_io_apimachinery_pkg_api_resource_quantity import K8sIoApimachineryPkgApiResourceQuantity from .models.k8s_io_apimachinery_pkg_apis_meta_v1_api_group import K8sIoApimachineryPkgApisMetaV1APIGroup diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 679f069a..4d8a11d5 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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-beta.0-127-gcfa3b38d1/python' + self.user_agent = 'Swagger-Codegen/v1.3.0-beta.0-202-gf8efa5771/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 194b293e..3ea4a23c 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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-beta.0-127-gcfa3b38d1".\ + "SDK Package Version: v1.3.0-beta.0-202-gf8efa5771".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index d83318d6..d8f4f6f4 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -41,6 +41,7 @@ from .k8s_io_api_core_v1_topology_spread_constraint import K8sIoApiCoreV1TopologySpreadConstraint from .k8s_io_api_core_v1_typed_local_object_reference import K8sIoApiCoreV1TypedLocalObjectReference from .k8s_io_api_core_v1_typed_object_reference import K8sIoApiCoreV1TypedObjectReference +from .k8s_io_api_core_v1_volume_resource_requirements import K8sIoApiCoreV1VolumeResourceRequirements from .k8s_io_api_core_v1_weighted_pod_affinity_term import K8sIoApiCoreV1WeightedPodAffinityTerm from .k8s_io_apimachinery_pkg_api_resource_quantity import K8sIoApimachineryPkgApiResourceQuantity from .k8s_io_apimachinery_pkg_apis_meta_v1_api_group import K8sIoApimachineryPkgApisMetaV1APIGroup diff --git a/kubevirt/models/k8s_io_api_core_v1_downward_api_volume_file.py b/kubevirt/models/k8s_io_api_core_v1_downward_api_volume_file.py index 98f9f233..340436df 100644 --- a/kubevirt/models/k8s_io_api_core_v1_downward_api_volume_file.py +++ b/kubevirt/models/k8s_io_api_core_v1_downward_api_volume_file.py @@ -66,7 +66,7 @@ def __init__(self, field_ref=None, mode=None, path='', resource_field_ref=None): def field_ref(self): """ Gets the field_ref of this K8sIoApiCoreV1DownwardAPIVolumeFile. - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported. :return: The field_ref of this K8sIoApiCoreV1DownwardAPIVolumeFile. :rtype: K8sIoApiCoreV1ObjectFieldSelector @@ -77,7 +77,7 @@ def field_ref(self): def field_ref(self, field_ref): """ Sets the field_ref of this K8sIoApiCoreV1DownwardAPIVolumeFile. - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported. :param field_ref: The field_ref of this K8sIoApiCoreV1DownwardAPIVolumeFile. :type: K8sIoApiCoreV1ObjectFieldSelector diff --git a/kubevirt/models/k8s_io_api_core_v1_http_header.py b/kubevirt/models/k8s_io_api_core_v1_http_header.py index 0bafe748..a2baf1fc 100644 --- a/kubevirt/models/k8s_io_api_core_v1_http_header.py +++ b/kubevirt/models/k8s_io_api_core_v1_http_header.py @@ -55,7 +55,7 @@ def __init__(self, name='', value=''): def name(self): """ Gets the name of this K8sIoApiCoreV1HTTPHeader. - The header field name + The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header. :return: The name of this K8sIoApiCoreV1HTTPHeader. :rtype: str @@ -66,7 +66,7 @@ def name(self): def name(self, name): """ Sets the name of this K8sIoApiCoreV1HTTPHeader. - The header field name + The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header. :param name: The name of this K8sIoApiCoreV1HTTPHeader. :type: str diff --git a/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py index 518142db..1c8a3b48 100644 --- a/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py +++ b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py @@ -34,9 +34,10 @@ class K8sIoApiCoreV1PersistentVolumeClaimSpec(object): 'access_modes': 'list[str]', 'data_source': 'K8sIoApiCoreV1TypedLocalObjectReference', 'data_source_ref': 'K8sIoApiCoreV1TypedObjectReference', - 'resources': 'K8sIoApiCoreV1ResourceRequirements', + 'resources': 'K8sIoApiCoreV1VolumeResourceRequirements', 'selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', 'storage_class_name': 'str', + 'volume_attributes_class_name': 'str', 'volume_mode': 'str', 'volume_name': 'str' } @@ -48,11 +49,12 @@ class K8sIoApiCoreV1PersistentVolumeClaimSpec(object): 'resources': 'resources', 'selector': 'selector', 'storage_class_name': 'storageClassName', + 'volume_attributes_class_name': 'volumeAttributesClassName', 'volume_mode': 'volumeMode', 'volume_name': 'volumeName' } - def __init__(self, access_modes=None, data_source=None, data_source_ref=None, resources=None, selector=None, storage_class_name=None, volume_mode=None, volume_name=None): + def __init__(self, access_modes=None, data_source=None, data_source_ref=None, resources=None, selector=None, storage_class_name=None, volume_attributes_class_name=None, volume_mode=None, volume_name=None): """ K8sIoApiCoreV1PersistentVolumeClaimSpec - a model defined in Swagger """ @@ -63,6 +65,7 @@ def __init__(self, access_modes=None, data_source=None, data_source_ref=None, re self._resources = None self._selector = None self._storage_class_name = None + self._volume_attributes_class_name = None self._volume_mode = None self._volume_name = None @@ -78,6 +81,8 @@ def __init__(self, access_modes=None, data_source=None, data_source_ref=None, re self.selector = selector if storage_class_name is not None: self.storage_class_name = storage_class_name + if volume_attributes_class_name is not None: + self.volume_attributes_class_name = volume_attributes_class_name if volume_mode is not None: self.volume_mode = volume_mode if volume_name is not None: @@ -159,7 +164,7 @@ def resources(self): resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources :return: The resources of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - :rtype: K8sIoApiCoreV1ResourceRequirements + :rtype: K8sIoApiCoreV1VolumeResourceRequirements """ return self._resources @@ -170,7 +175,7 @@ def resources(self, resources): resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources :param resources: The resources of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - :type: K8sIoApiCoreV1ResourceRequirements + :type: K8sIoApiCoreV1VolumeResourceRequirements """ self._resources = resources @@ -221,6 +226,29 @@ def storage_class_name(self, storage_class_name): self._storage_class_name = storage_class_name + @property + def volume_attributes_class_name(self): + """ + Gets the volume_attributes_class_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. + volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled. + + :return: The volume_attributes_class_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. + :rtype: str + """ + return self._volume_attributes_class_name + + @volume_attributes_class_name.setter + def volume_attributes_class_name(self, volume_attributes_class_name): + """ + Sets the volume_attributes_class_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. + volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled. + + :param volume_attributes_class_name: The volume_attributes_class_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. + :type: str + """ + + self._volume_attributes_class_name = volume_attributes_class_name + @property def volume_mode(self): """ diff --git a/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py b/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py index 7804536d..897d633c 100644 --- a/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py +++ b/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py @@ -32,6 +32,8 @@ class K8sIoApiCoreV1PodAffinityTerm(object): """ swagger_types = { 'label_selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', + 'match_label_keys': 'list[str]', + 'mismatch_label_keys': 'list[str]', 'namespace_selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', 'namespaces': 'list[str]', 'topology_key': 'str' @@ -39,23 +41,31 @@ class K8sIoApiCoreV1PodAffinityTerm(object): attribute_map = { 'label_selector': 'labelSelector', + 'match_label_keys': 'matchLabelKeys', + 'mismatch_label_keys': 'mismatchLabelKeys', 'namespace_selector': 'namespaceSelector', 'namespaces': 'namespaces', 'topology_key': 'topologyKey' } - def __init__(self, label_selector=None, namespace_selector=None, namespaces=None, topology_key=''): + def __init__(self, label_selector=None, match_label_keys=None, mismatch_label_keys=None, namespace_selector=None, namespaces=None, topology_key=''): """ K8sIoApiCoreV1PodAffinityTerm - a model defined in Swagger """ self._label_selector = None + self._match_label_keys = None + self._mismatch_label_keys = None self._namespace_selector = None self._namespaces = None self._topology_key = None if label_selector is not None: self.label_selector = label_selector + if match_label_keys is not None: + self.match_label_keys = match_label_keys + if mismatch_label_keys is not None: + self.mismatch_label_keys = mismatch_label_keys if namespace_selector is not None: self.namespace_selector = namespace_selector if namespaces is not None: @@ -66,7 +76,7 @@ def __init__(self, label_selector=None, namespace_selector=None, namespaces=None def label_selector(self): """ Gets the label_selector of this K8sIoApiCoreV1PodAffinityTerm. - A label query over a set of resources, in this case pods. + A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. :return: The label_selector of this K8sIoApiCoreV1PodAffinityTerm. :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector @@ -77,7 +87,7 @@ def label_selector(self): def label_selector(self, label_selector): """ Sets the label_selector of this K8sIoApiCoreV1PodAffinityTerm. - A label query over a set of resources, in this case pods. + A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. :param label_selector: The label_selector of this K8sIoApiCoreV1PodAffinityTerm. :type: K8sIoApimachineryPkgApisMetaV1LabelSelector @@ -85,6 +95,52 @@ def label_selector(self, label_selector): self._label_selector = label_selector + @property + def match_label_keys(self): + """ + Gets the match_label_keys of this K8sIoApiCoreV1PodAffinityTerm. + MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + + :return: The match_label_keys of this K8sIoApiCoreV1PodAffinityTerm. + :rtype: list[str] + """ + return self._match_label_keys + + @match_label_keys.setter + def match_label_keys(self, match_label_keys): + """ + Sets the match_label_keys of this K8sIoApiCoreV1PodAffinityTerm. + MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + + :param match_label_keys: The match_label_keys of this K8sIoApiCoreV1PodAffinityTerm. + :type: list[str] + """ + + self._match_label_keys = match_label_keys + + @property + def mismatch_label_keys(self): + """ + Gets the mismatch_label_keys of this K8sIoApiCoreV1PodAffinityTerm. + MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + + :return: The mismatch_label_keys of this K8sIoApiCoreV1PodAffinityTerm. + :rtype: list[str] + """ + return self._mismatch_label_keys + + @mismatch_label_keys.setter + def mismatch_label_keys(self, mismatch_label_keys): + """ + Sets the mismatch_label_keys of this K8sIoApiCoreV1PodAffinityTerm. + MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + + :param mismatch_label_keys: The mismatch_label_keys of this K8sIoApiCoreV1PodAffinityTerm. + :type: list[str] + """ + + self._mismatch_label_keys = mismatch_label_keys + @property def namespace_selector(self): """ diff --git a/kubevirt/models/k8s_io_api_core_v1_resource_requirements.py b/kubevirt/models/k8s_io_api_core_v1_resource_requirements.py index 796455ce..7d76b271 100644 --- a/kubevirt/models/k8s_io_api_core_v1_resource_requirements.py +++ b/kubevirt/models/k8s_io_api_core_v1_resource_requirements.py @@ -108,7 +108,7 @@ def limits(self, limits): def requests(self): """ Gets the requests of this K8sIoApiCoreV1ResourceRequirements. - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ :return: The requests of this K8sIoApiCoreV1ResourceRequirements. :rtype: dict(str, K8sIoApimachineryPkgApiResourceQuantity) @@ -119,7 +119,7 @@ def requests(self): def requests(self, requests): """ Sets the requests of this K8sIoApiCoreV1ResourceRequirements. - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ :param requests: The requests of this K8sIoApiCoreV1ResourceRequirements. :type: dict(str, K8sIoApimachineryPkgApiResourceQuantity) diff --git a/kubevirt/models/k8s_io_api_core_v1_topology_spread_constraint.py b/kubevirt/models/k8s_io_api_core_v1_topology_spread_constraint.py index 26bf975c..6d8245ff 100644 --- a/kubevirt/models/k8s_io_api_core_v1_topology_spread_constraint.py +++ b/kubevirt/models/k8s_io_api_core_v1_topology_spread_constraint.py @@ -107,7 +107,7 @@ def label_selector(self, label_selector): def match_label_keys(self): """ Gets the match_label_keys of this K8sIoApiCoreV1TopologySpreadConstraint. - MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. + MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default). :return: The match_label_keys of this K8sIoApiCoreV1TopologySpreadConstraint. :rtype: list[str] @@ -118,7 +118,7 @@ def match_label_keys(self): def match_label_keys(self, match_label_keys): """ Sets the match_label_keys of this K8sIoApiCoreV1TopologySpreadConstraint. - MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. + MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default). :param match_label_keys: The match_label_keys of this K8sIoApiCoreV1TopologySpreadConstraint. :type: list[str] @@ -155,7 +155,7 @@ def max_skew(self, max_skew): def min_domains(self): """ Gets the min_domains of this K8sIoApiCoreV1TopologySpreadConstraint. - MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). + MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. :return: The min_domains of this K8sIoApiCoreV1TopologySpreadConstraint. :rtype: int @@ -166,7 +166,7 @@ def min_domains(self): def min_domains(self, min_domains): """ Sets the min_domains of this K8sIoApiCoreV1TopologySpreadConstraint. - MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). + MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. :param min_domains: The min_domains of this K8sIoApiCoreV1TopologySpreadConstraint. :type: int diff --git a/kubevirt/models/k8s_io_api_core_v1_volume_resource_requirements.py b/kubevirt/models/k8s_io_api_core_v1_volume_resource_requirements.py new file mode 100644 index 00000000..32075160 --- /dev/null +++ b/kubevirt/models/k8s_io_api_core_v1_volume_resource_requirements.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class K8sIoApiCoreV1VolumeResourceRequirements(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'limits': 'dict(str, K8sIoApimachineryPkgApiResourceQuantity)', + 'requests': 'dict(str, K8sIoApimachineryPkgApiResourceQuantity)' + } + + attribute_map = { + 'limits': 'limits', + 'requests': 'requests' + } + + def __init__(self, limits=None, requests=None): + """ + K8sIoApiCoreV1VolumeResourceRequirements - a model defined in Swagger + """ + + self._limits = None + self._requests = None + + if limits is not None: + self.limits = limits + if requests is not None: + self.requests = requests + + @property + def limits(self): + """ + Gets the limits of this K8sIoApiCoreV1VolumeResourceRequirements. + Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + + :return: The limits of this K8sIoApiCoreV1VolumeResourceRequirements. + :rtype: dict(str, K8sIoApimachineryPkgApiResourceQuantity) + """ + return self._limits + + @limits.setter + def limits(self, limits): + """ + Sets the limits of this K8sIoApiCoreV1VolumeResourceRequirements. + Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + + :param limits: The limits of this K8sIoApiCoreV1VolumeResourceRequirements. + :type: dict(str, K8sIoApimachineryPkgApiResourceQuantity) + """ + + self._limits = limits + + @property + def requests(self): + """ + Gets the requests of this K8sIoApiCoreV1VolumeResourceRequirements. + Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + + :return: The requests of this K8sIoApiCoreV1VolumeResourceRequirements. + :rtype: dict(str, K8sIoApimachineryPkgApiResourceQuantity) + """ + return self._requests + + @requests.setter + def requests(self, requests): + """ + Sets the requests of this K8sIoApiCoreV1VolumeResourceRequirements. + Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + + :param requests: The requests of this K8sIoApiCoreV1VolumeResourceRequirements. + :type: dict(str, K8sIoApimachineryPkgApiResourceQuantity) + """ + + self._requests = requests + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, K8sIoApiCoreV1VolumeResourceRequirements): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.py index f61b810a..ffe6bc23 100644 --- a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.py @@ -117,7 +117,7 @@ def __init__(self, annotations=None, deletion_grace_period_seconds=None, deletio def annotations(self): """ Gets the annotations of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations :return: The annotations of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :rtype: dict(str, str) @@ -128,7 +128,7 @@ def annotations(self): def annotations(self, annotations): """ Sets the annotations of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations :param annotations: The annotations of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :type: dict(str, str) @@ -255,7 +255,7 @@ def generation(self, generation): def labels(self): """ Gets the labels of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels :return: The labels of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :rtype: dict(str, str) @@ -266,7 +266,7 @@ def labels(self): def labels(self, labels): """ Sets the labels of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels :param labels: The labels of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :type: dict(str, str) @@ -301,7 +301,7 @@ def managed_fields(self, managed_fields): def name(self): """ Gets the name of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names :return: The name of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :rtype: str @@ -312,7 +312,7 @@ def name(self): def name(self, name): """ Sets the name of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names :param name: The name of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :type: str @@ -324,7 +324,7 @@ def name(self, name): def namespace(self): """ Gets the namespace of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. - Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces :return: The namespace of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :rtype: str @@ -335,7 +335,7 @@ def namespace(self): def namespace(self, namespace): """ Sets the namespace of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. - Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces :param namespace: The namespace of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :type: str @@ -416,7 +416,7 @@ def self_link(self, self_link): def uid(self): """ Gets the uid of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids :return: The uid of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :rtype: str @@ -427,7 +427,7 @@ def uid(self): def uid(self, uid): """ Sets the uid of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids :param uid: The uid of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :type: str diff --git a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference.py index e34ef815..5438b95a 100644 --- a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference.py @@ -169,7 +169,7 @@ def kind(self, kind): def name(self): """ Gets the name of this K8sIoApimachineryPkgApisMetaV1OwnerReference. - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names :return: The name of this K8sIoApimachineryPkgApisMetaV1OwnerReference. :rtype: str @@ -180,7 +180,7 @@ def name(self): def name(self, name): """ Sets the name of this K8sIoApimachineryPkgApisMetaV1OwnerReference. - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names :param name: The name of this K8sIoApimachineryPkgApisMetaV1OwnerReference. :type: str @@ -194,7 +194,7 @@ def name(self, name): def uid(self): """ Gets the uid of this K8sIoApimachineryPkgApisMetaV1OwnerReference. - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids :return: The uid of this K8sIoApimachineryPkgApisMetaV1OwnerReference. :rtype: str @@ -205,7 +205,7 @@ def uid(self): def uid(self, uid): """ Sets the uid of this K8sIoApimachineryPkgApisMetaV1OwnerReference. - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids :param uid: The uid of this K8sIoApimachineryPkgApisMetaV1OwnerReference. :type: str diff --git a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_details.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_details.py index fd8e07bc..61dafadb 100644 --- a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_details.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_details.py @@ -192,7 +192,7 @@ def retry_after_seconds(self, retry_after_seconds): def uid(self): """ Gets the uid of this K8sIoApimachineryPkgApisMetaV1StatusDetails. - UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids + UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids :return: The uid of this K8sIoApimachineryPkgApisMetaV1StatusDetails. :rtype: str @@ -203,7 +203,7 @@ def uid(self): def uid(self, uid): """ Sets the uid of this K8sIoApimachineryPkgApisMetaV1StatusDetails. - UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids + UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids :param uid: The uid of this K8sIoApimachineryPkgApisMetaV1StatusDetails. :type: str diff --git a/setup.py b/setup.py index 16df19ee..f4e5b879 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.3.0-beta.0-127-gcfa3b38d1" +VERSION = "v1.3.0-beta.0-202-gf8efa5771" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 1517571d..c015c0a3 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.3.0-beta.0-127-gcfa3b38d1" +"packageVersion": "v1.3.0-beta.0-202-gf8efa5771" } diff --git a/test/test_k8s_io_api_core_v1_volume_resource_requirements.py b/test/test_k8s_io_api_core_v1_volume_resource_requirements.py new file mode 100644 index 00000000..aa6dd179 --- /dev/null +++ b/test/test_k8s_io_api_core_v1_volume_resource_requirements.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_api_core_v1_volume_resource_requirements import K8sIoApiCoreV1VolumeResourceRequirements + + +class TestK8sIoApiCoreV1VolumeResourceRequirements(unittest.TestCase): + """ K8sIoApiCoreV1VolumeResourceRequirements unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1VolumeResourceRequirements(self): + """ + Test K8sIoApiCoreV1VolumeResourceRequirements + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_volume_resource_requirements.K8sIoApiCoreV1VolumeResourceRequirements() + pass + + +if __name__ == '__main__': + unittest.main() From df4c64ea6e39c2e2366a2cf9a93ce491202ee223 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 19 Jun 2024 20:53:49 +0000 Subject: [PATCH 408/521] Client Python update by KubeVirt Prow build 1803518617719934976 --- README.md | 2 +- docs/V1beta1DevicePreferences.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1beta1_device_preferences.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index dbabd8ba..b8b8b698 100644 --- a/README.md +++ b/README.md @@ -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-beta.0-202-gf8efa5771 +- Package version: v1.3.0-beta.0-304-gb6a68e93b - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1DevicePreferences.md b/docs/V1beta1DevicePreferences.md index 1152fc0c..d5d0cbe6 100644 --- a/docs/V1beta1DevicePreferences.md +++ b/docs/V1beta1DevicePreferences.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **preferred_disk_block_size** | [**V1BlockSize**](V1BlockSize.md) | PreferredBlockSize optionally defines the block size of Disk devices. | [optional] **preferred_disk_bus** | **str** | PreferredDiskBus optionally defines the preferred bus for Disk Disk devices. | [optional] **preferred_disk_cache** | **str** | PreferredCache optionally defines the DriverCache to be used by Disk devices. | [optional] -**preferred_disk_dedicated_io_thread** | **bool** | PreferredDedicatedIoThread optionally enables dedicated IO threads for Disk devices. | [optional] +**preferred_disk_dedicated_io_thread** | **bool** | PreferredDedicatedIoThread optionally enables dedicated IO threads for Disk devices using the virtio bus. | [optional] **preferred_disk_io** | **str** | PreferredIo optionally defines the QEMU disk IO mode to be used by Disk devices. | [optional] **preferred_input_bus** | **str** | PreferredInputBus optionally defines the preferred bus for Input devices. | [optional] **preferred_input_type** | **str** | PreferredInputType optionally defines the preferred type for Input devices. | [optional] diff --git a/git_push.sh b/git_push.sh index 212ca716..23357a2c 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.3.0-beta.0-202-gf8efa5771" + release_note="Auto-generated client v1.3.0-beta.0-304-gb6a68e93b" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 4d8a11d5..0fec8fc7 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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-beta.0-202-gf8efa5771/python' + self.user_agent = 'Swagger-Codegen/v1.3.0-beta.0-304-gb6a68e93b/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 3ea4a23c..c8a9c32c 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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-beta.0-202-gf8efa5771".\ + "SDK Package Version: v1.3.0-beta.0-304-gb6a68e93b".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_device_preferences.py b/kubevirt/models/v1beta1_device_preferences.py index fc697088..7b3d09c5 100644 --- a/kubevirt/models/v1beta1_device_preferences.py +++ b/kubevirt/models/v1beta1_device_preferences.py @@ -420,7 +420,7 @@ def preferred_disk_cache(self, preferred_disk_cache): def preferred_disk_dedicated_io_thread(self): """ Gets the preferred_disk_dedicated_io_thread of this V1beta1DevicePreferences. - PreferredDedicatedIoThread optionally enables dedicated IO threads for Disk devices. + PreferredDedicatedIoThread optionally enables dedicated IO threads for Disk devices using the virtio bus. :return: The preferred_disk_dedicated_io_thread of this V1beta1DevicePreferences. :rtype: bool @@ -431,7 +431,7 @@ def preferred_disk_dedicated_io_thread(self): def preferred_disk_dedicated_io_thread(self, preferred_disk_dedicated_io_thread): """ Sets the preferred_disk_dedicated_io_thread of this V1beta1DevicePreferences. - PreferredDedicatedIoThread optionally enables dedicated IO threads for Disk devices. + PreferredDedicatedIoThread optionally enables dedicated IO threads for Disk devices using the virtio bus. :param preferred_disk_dedicated_io_thread: The preferred_disk_dedicated_io_thread of this V1beta1DevicePreferences. :type: bool diff --git a/setup.py b/setup.py index f4e5b879..e41278d4 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.3.0-beta.0-202-gf8efa5771" +VERSION = "v1.3.0-beta.0-304-gb6a68e93b" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index c015c0a3..9ed01fd4 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.3.0-beta.0-202-gf8efa5771" +"packageVersion": "v1.3.0-beta.0-304-gb6a68e93b" } From cab83bcb69521e293f00f2a97fd574300fc0a945 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 19 Jun 2024 21:04:21 +0000 Subject: [PATCH 409/521] Client Python update by KubeVirt Prow build 1803518590981246976 --- README.md | 2 +- docs/V1beta1DevicePreferences.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1beta1_device_preferences.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index b8b8b698..6d391a36 100644 --- a/README.md +++ b/README.md @@ -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-beta.0-304-gb6a68e93b +- Package version: v1.3.0-beta.0-302-g1715fe9eb - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1DevicePreferences.md b/docs/V1beta1DevicePreferences.md index d5d0cbe6..1152fc0c 100644 --- a/docs/V1beta1DevicePreferences.md +++ b/docs/V1beta1DevicePreferences.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **preferred_disk_block_size** | [**V1BlockSize**](V1BlockSize.md) | PreferredBlockSize optionally defines the block size of Disk devices. | [optional] **preferred_disk_bus** | **str** | PreferredDiskBus optionally defines the preferred bus for Disk Disk devices. | [optional] **preferred_disk_cache** | **str** | PreferredCache optionally defines the DriverCache to be used by Disk devices. | [optional] -**preferred_disk_dedicated_io_thread** | **bool** | PreferredDedicatedIoThread optionally enables dedicated IO threads for Disk devices using the virtio bus. | [optional] +**preferred_disk_dedicated_io_thread** | **bool** | PreferredDedicatedIoThread optionally enables dedicated IO threads for Disk devices. | [optional] **preferred_disk_io** | **str** | PreferredIo optionally defines the QEMU disk IO mode to be used by Disk devices. | [optional] **preferred_input_bus** | **str** | PreferredInputBus optionally defines the preferred bus for Input devices. | [optional] **preferred_input_type** | **str** | PreferredInputType optionally defines the preferred type for Input devices. | [optional] diff --git a/git_push.sh b/git_push.sh index 23357a2c..18924be4 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.3.0-beta.0-304-gb6a68e93b" + release_note="Auto-generated client v1.3.0-beta.0-302-g1715fe9eb" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 0fec8fc7..78712232 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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-beta.0-304-gb6a68e93b/python' + self.user_agent = 'Swagger-Codegen/v1.3.0-beta.0-302-g1715fe9eb/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c8a9c32c..69802666 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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-beta.0-304-gb6a68e93b".\ + "SDK Package Version: v1.3.0-beta.0-302-g1715fe9eb".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_device_preferences.py b/kubevirt/models/v1beta1_device_preferences.py index 7b3d09c5..fc697088 100644 --- a/kubevirt/models/v1beta1_device_preferences.py +++ b/kubevirt/models/v1beta1_device_preferences.py @@ -420,7 +420,7 @@ def preferred_disk_cache(self, preferred_disk_cache): def preferred_disk_dedicated_io_thread(self): """ Gets the preferred_disk_dedicated_io_thread of this V1beta1DevicePreferences. - PreferredDedicatedIoThread optionally enables dedicated IO threads for Disk devices using the virtio bus. + PreferredDedicatedIoThread optionally enables dedicated IO threads for Disk devices. :return: The preferred_disk_dedicated_io_thread of this V1beta1DevicePreferences. :rtype: bool @@ -431,7 +431,7 @@ def preferred_disk_dedicated_io_thread(self): def preferred_disk_dedicated_io_thread(self, preferred_disk_dedicated_io_thread): """ Sets the preferred_disk_dedicated_io_thread of this V1beta1DevicePreferences. - PreferredDedicatedIoThread optionally enables dedicated IO threads for Disk devices using the virtio bus. + PreferredDedicatedIoThread optionally enables dedicated IO threads for Disk devices. :param preferred_disk_dedicated_io_thread: The preferred_disk_dedicated_io_thread of this V1beta1DevicePreferences. :type: bool diff --git a/setup.py b/setup.py index e41278d4..670459ae 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.3.0-beta.0-304-gb6a68e93b" +VERSION = "v1.3.0-beta.0-302-g1715fe9eb" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 9ed01fd4..0f3c5358 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.3.0-beta.0-304-gb6a68e93b" +"packageVersion": "v1.3.0-beta.0-302-g1715fe9eb" } From 7633769e02e6e8f39aefa1789e063a9f5e188118 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 20 Jun 2024 00:13:22 +0000 Subject: [PATCH 410/521] Client Python update by KubeVirt Prow build 1803570428740898816 --- README.md | 2 +- docs/V1beta1DevicePreferences.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1beta1_device_preferences.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 6d391a36..98ecbb7e 100644 --- a/README.md +++ b/README.md @@ -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-beta.0-302-g1715fe9eb +- Package version: v1.3.0-beta.0-307-g42679841e - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1DevicePreferences.md b/docs/V1beta1DevicePreferences.md index 1152fc0c..d5d0cbe6 100644 --- a/docs/V1beta1DevicePreferences.md +++ b/docs/V1beta1DevicePreferences.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **preferred_disk_block_size** | [**V1BlockSize**](V1BlockSize.md) | PreferredBlockSize optionally defines the block size of Disk devices. | [optional] **preferred_disk_bus** | **str** | PreferredDiskBus optionally defines the preferred bus for Disk Disk devices. | [optional] **preferred_disk_cache** | **str** | PreferredCache optionally defines the DriverCache to be used by Disk devices. | [optional] -**preferred_disk_dedicated_io_thread** | **bool** | PreferredDedicatedIoThread optionally enables dedicated IO threads for Disk devices. | [optional] +**preferred_disk_dedicated_io_thread** | **bool** | PreferredDedicatedIoThread optionally enables dedicated IO threads for Disk devices using the virtio bus. | [optional] **preferred_disk_io** | **str** | PreferredIo optionally defines the QEMU disk IO mode to be used by Disk devices. | [optional] **preferred_input_bus** | **str** | PreferredInputBus optionally defines the preferred bus for Input devices. | [optional] **preferred_input_type** | **str** | PreferredInputType optionally defines the preferred type for Input devices. | [optional] diff --git a/git_push.sh b/git_push.sh index 18924be4..9e6c74a8 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.3.0-beta.0-302-g1715fe9eb" + release_note="Auto-generated client v1.3.0-beta.0-307-g42679841e" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 78712232..9f9d7163 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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-beta.0-302-g1715fe9eb/python' + self.user_agent = 'Swagger-Codegen/v1.3.0-beta.0-307-g42679841e/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 69802666..274c8a5f 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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-beta.0-302-g1715fe9eb".\ + "SDK Package Version: v1.3.0-beta.0-307-g42679841e".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_device_preferences.py b/kubevirt/models/v1beta1_device_preferences.py index fc697088..7b3d09c5 100644 --- a/kubevirt/models/v1beta1_device_preferences.py +++ b/kubevirt/models/v1beta1_device_preferences.py @@ -420,7 +420,7 @@ def preferred_disk_cache(self, preferred_disk_cache): def preferred_disk_dedicated_io_thread(self): """ Gets the preferred_disk_dedicated_io_thread of this V1beta1DevicePreferences. - PreferredDedicatedIoThread optionally enables dedicated IO threads for Disk devices. + PreferredDedicatedIoThread optionally enables dedicated IO threads for Disk devices using the virtio bus. :return: The preferred_disk_dedicated_io_thread of this V1beta1DevicePreferences. :rtype: bool @@ -431,7 +431,7 @@ def preferred_disk_dedicated_io_thread(self): def preferred_disk_dedicated_io_thread(self, preferred_disk_dedicated_io_thread): """ Sets the preferred_disk_dedicated_io_thread of this V1beta1DevicePreferences. - PreferredDedicatedIoThread optionally enables dedicated IO threads for Disk devices. + PreferredDedicatedIoThread optionally enables dedicated IO threads for Disk devices using the virtio bus. :param preferred_disk_dedicated_io_thread: The preferred_disk_dedicated_io_thread of this V1beta1DevicePreferences. :type: bool diff --git a/setup.py b/setup.py index 670459ae..bd6268a5 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.3.0-beta.0-302-g1715fe9eb" +VERSION = "v1.3.0-beta.0-307-g42679841e" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 0f3c5358..635c3d0e 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.3.0-beta.0-302-g1715fe9eb" +"packageVersion": "v1.3.0-beta.0-307-g42679841e" } From 5964d15dcb3a7d4d95bb3d045c2f9051428ea055 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Mon, 8 Jul 2024 03:20:43 +0000 Subject: [PATCH 411/521] Client Python update by KubeVirt Prow build 1810141514148352000 --- README.md | 2 +- docs/V1InterfaceBindingPlugin.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../models/v1_interface_binding_plugin.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 98ecbb7e..b5d0980c 100644 --- a/README.md +++ b/README.md @@ -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-beta.0-307-g42679841e +- Package version: v1.3.0-beta.0-500-g86153707a - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1InterfaceBindingPlugin.md b/docs/V1InterfaceBindingPlugin.md index 469ffbe8..962e9aca 100644 --- a/docs/V1InterfaceBindingPlugin.md +++ b/docs/V1InterfaceBindingPlugin.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**compute_resource_overhead** | [**K8sIoApiCoreV1ResourceRequirements**](K8sIoApiCoreV1ResourceRequirements.md) | ComputeResourceOverhead specifies the resource overhead that should be added to the compute container when using the binding. version: v1alphav1 | [optional] **domain_attachment_type** | **str** | DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: \"tap\". The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1 | [optional] **downward_api** | **str** | DownwardAPI specifies what kind of data should be exposed to the binding plugin sidecar. Supported values: \"device-info\" version: v1alphav1 | [optional] **migration** | [**V1InterfaceBindingMigration**](V1InterfaceBindingMigration.md) | Migration means the VM using the plugin can be safely migrated version: 1alphav1 | [optional] diff --git a/git_push.sh b/git_push.sh index 9e6c74a8..65a88791 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.3.0-beta.0-307-g42679841e" + release_note="Auto-generated client v1.3.0-beta.0-500-g86153707a" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 9f9d7163..aaea9cf4 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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-beta.0-307-g42679841e/python' + self.user_agent = 'Swagger-Codegen/v1.3.0-beta.0-500-g86153707a/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 274c8a5f..9e33fc9b 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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-beta.0-307-g42679841e".\ + "SDK Package Version: v1.3.0-beta.0-500-g86153707a".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_interface_binding_plugin.py b/kubevirt/models/v1_interface_binding_plugin.py index cf3f513c..600f6659 100644 --- a/kubevirt/models/v1_interface_binding_plugin.py +++ b/kubevirt/models/v1_interface_binding_plugin.py @@ -31,6 +31,7 @@ class V1InterfaceBindingPlugin(object): and the value is json key in definition. """ swagger_types = { + 'compute_resource_overhead': 'K8sIoApiCoreV1ResourceRequirements', 'domain_attachment_type': 'str', 'downward_api': 'str', 'migration': 'V1InterfaceBindingMigration', @@ -39,6 +40,7 @@ class V1InterfaceBindingPlugin(object): } attribute_map = { + 'compute_resource_overhead': 'computeResourceOverhead', 'domain_attachment_type': 'domainAttachmentType', 'downward_api': 'downwardAPI', 'migration': 'migration', @@ -46,17 +48,20 @@ class V1InterfaceBindingPlugin(object): 'sidecar_image': 'sidecarImage' } - def __init__(self, domain_attachment_type=None, downward_api=None, migration=None, network_attachment_definition=None, sidecar_image=None): + def __init__(self, compute_resource_overhead=None, domain_attachment_type=None, downward_api=None, migration=None, network_attachment_definition=None, sidecar_image=None): """ V1InterfaceBindingPlugin - a model defined in Swagger """ + self._compute_resource_overhead = None self._domain_attachment_type = None self._downward_api = None self._migration = None self._network_attachment_definition = None self._sidecar_image = None + if compute_resource_overhead is not None: + self.compute_resource_overhead = compute_resource_overhead if domain_attachment_type is not None: self.domain_attachment_type = domain_attachment_type if downward_api is not None: @@ -68,6 +73,29 @@ def __init__(self, domain_attachment_type=None, downward_api=None, migration=Non if sidecar_image is not None: self.sidecar_image = sidecar_image + @property + def compute_resource_overhead(self): + """ + Gets the compute_resource_overhead of this V1InterfaceBindingPlugin. + ComputeResourceOverhead specifies the resource overhead that should be added to the compute container when using the binding. version: v1alphav1 + + :return: The compute_resource_overhead of this V1InterfaceBindingPlugin. + :rtype: K8sIoApiCoreV1ResourceRequirements + """ + return self._compute_resource_overhead + + @compute_resource_overhead.setter + def compute_resource_overhead(self, compute_resource_overhead): + """ + Sets the compute_resource_overhead of this V1InterfaceBindingPlugin. + ComputeResourceOverhead specifies the resource overhead that should be added to the compute container when using the binding. version: v1alphav1 + + :param compute_resource_overhead: The compute_resource_overhead of this V1InterfaceBindingPlugin. + :type: K8sIoApiCoreV1ResourceRequirements + """ + + self._compute_resource_overhead = compute_resource_overhead + @property def domain_attachment_type(self): """ diff --git a/setup.py b/setup.py index bd6268a5..c43c001d 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.3.0-beta.0-307-g42679841e" +VERSION = "v1.3.0-beta.0-500-g86153707a" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 635c3d0e..c9b65035 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.3.0-beta.0-307-g42679841e" +"packageVersion": "v1.3.0-beta.0-500-g86153707a" } From 94ce68e11e5a7ae0ac50b8034df1c57336095226 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 1 Aug 2024 12:03:06 +0000 Subject: [PATCH 412/521] Client Python update by KubeVirt Prow build 1818954032295710720 --- README.md | 2 +- docs/V1Interface.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_interface.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index b5d0980c..cbca38a5 100644 --- a/README.md +++ b/README.md @@ -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-beta.0-500-g86153707a +- Package version: v1.3.0-beta.0-785-g2f4c074a4 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Interface.md b/docs/V1Interface.md index 7f5cf817..4e7f0434 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **mac_address** | **str** | Interface MAC address. For example: de:ad:00:00:be:af or DE-AD-00-00-BE-AF. | [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] +**model** | **str** | Interface model. One of: e1000, e1000e, igb, 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 ''] **passt** | [**V1DeprecatedInterfacePasst**](V1DeprecatedInterfacePasst.md) | DeprecatedPasst is an alias to the deprecated Passt interface, please refer to Kubevirt user guide for alternatives. Deprecated: Removed in v1.3 | [optional] **pci_address** | **str** | If specified, the virtual network interface will be placed on the guests pci address with the specified PCI address. For example: 0000:81:01.10 | [optional] diff --git a/git_push.sh b/git_push.sh index 65a88791..d3f4828f 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.3.0-beta.0-500-g86153707a" + release_note="Auto-generated client v1.3.0-beta.0-785-g2f4c074a4" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index aaea9cf4..4a8e711f 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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-beta.0-500-g86153707a/python' + self.user_agent = 'Swagger-Codegen/v1.3.0-beta.0-785-g2f4c074a4/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 9e33fc9b..a88bf4ec 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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-beta.0-500-g86153707a".\ + "SDK Package Version: v1.3.0-beta.0-785-g2f4c074a4".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_interface.py b/kubevirt/models/v1_interface.py index 346274ee..454fb1eb 100644 --- a/kubevirt/models/v1_interface.py +++ b/kubevirt/models/v1_interface.py @@ -311,7 +311,7 @@ def masquerade(self, masquerade): def model(self): """ Gets the model of this V1Interface. - Interface model. One of: e1000, e1000e, ne2k_pci, pcnet, rtl8139, virtio. Defaults to virtio. + Interface model. One of: e1000, e1000e, igb, ne2k_pci, pcnet, rtl8139, virtio. Defaults to virtio. :return: The model of this V1Interface. :rtype: str @@ -322,7 +322,7 @@ def model(self): def model(self, model): """ Sets the model of this V1Interface. - Interface model. One of: e1000, e1000e, ne2k_pci, pcnet, rtl8139, virtio. Defaults to virtio. + Interface model. One of: e1000, e1000e, igb, ne2k_pci, pcnet, rtl8139, virtio. Defaults to virtio. :param model: The model of this V1Interface. :type: str diff --git a/setup.py b/setup.py index c43c001d..1fbaac9e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.3.0-beta.0-500-g86153707a" +VERSION = "v1.3.0-beta.0-785-g2f4c074a4" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index c9b65035..d6eeb0d3 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.3.0-beta.0-500-g86153707a" +"packageVersion": "v1.3.0-beta.0-785-g2f4c074a4" } From 44c9a597ede67d420ccbd16dbbd94cb5b8319096 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 6 Sep 2024 19:07:27 +0000 Subject: [PATCH 413/521] Client Python update by KubeVirt Prow build 1832122618979815424 --- README.md | 2 +- docs/V1beta1FirmwarePreferences.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../models/v1beta1_firmware_preferences.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index cbca38a5..3554e376 100644 --- a/README.md +++ b/README.md @@ -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-beta.0-785-g2f4c074a4 +- Package version: v1.3.0-beta.0-1221-g18687b5e7 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1FirmwarePreferences.md b/docs/V1beta1FirmwarePreferences.md index 172c262e..c0e92f6c 100644 --- a/docs/V1beta1FirmwarePreferences.md +++ b/docs/V1beta1FirmwarePreferences.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**preferred_efi** | [**V1EFI**](V1EFI.md) | PreferredEfi optionally enables EFI | [optional] **preferred_use_bios** | **bool** | PreferredUseBios optionally enables BIOS | [optional] **preferred_use_bios_serial** | **bool** | PreferredUseBiosSerial optionally transmitts BIOS output over the serial. Requires PreferredUseBios to be enabled. | [optional] **preferred_use_efi** | **bool** | PreferredUseEfi optionally enables EFI | [optional] diff --git a/git_push.sh b/git_push.sh index d3f4828f..554f7ca0 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.3.0-beta.0-785-g2f4c074a4" + release_note="Auto-generated client v1.3.0-beta.0-1221-g18687b5e7" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 4a8e711f..8db68b61 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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-beta.0-785-g2f4c074a4/python' + self.user_agent = 'Swagger-Codegen/v1.3.0-beta.0-1221-g18687b5e7/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index a88bf4ec..05bce059 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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-beta.0-785-g2f4c074a4".\ + "SDK Package Version: v1.3.0-beta.0-1221-g18687b5e7".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_firmware_preferences.py b/kubevirt/models/v1beta1_firmware_preferences.py index 0f271301..ca956ad3 100644 --- a/kubevirt/models/v1beta1_firmware_preferences.py +++ b/kubevirt/models/v1beta1_firmware_preferences.py @@ -31,6 +31,7 @@ class V1beta1FirmwarePreferences(object): and the value is json key in definition. """ swagger_types = { + 'preferred_efi': 'V1EFI', 'preferred_use_bios': 'bool', 'preferred_use_bios_serial': 'bool', 'preferred_use_efi': 'bool', @@ -38,22 +39,26 @@ class V1beta1FirmwarePreferences(object): } attribute_map = { + 'preferred_efi': 'preferredEfi', 'preferred_use_bios': 'preferredUseBios', 'preferred_use_bios_serial': 'preferredUseBiosSerial', 'preferred_use_efi': 'preferredUseEfi', 'preferred_use_secure_boot': 'preferredUseSecureBoot' } - def __init__(self, preferred_use_bios=None, preferred_use_bios_serial=None, preferred_use_efi=None, preferred_use_secure_boot=None): + def __init__(self, preferred_efi=None, preferred_use_bios=None, preferred_use_bios_serial=None, preferred_use_efi=None, preferred_use_secure_boot=None): """ V1beta1FirmwarePreferences - a model defined in Swagger """ + self._preferred_efi = None self._preferred_use_bios = None self._preferred_use_bios_serial = None self._preferred_use_efi = None self._preferred_use_secure_boot = None + if preferred_efi is not None: + self.preferred_efi = preferred_efi if preferred_use_bios is not None: self.preferred_use_bios = preferred_use_bios if preferred_use_bios_serial is not None: @@ -63,6 +68,29 @@ def __init__(self, preferred_use_bios=None, preferred_use_bios_serial=None, pref if preferred_use_secure_boot is not None: self.preferred_use_secure_boot = preferred_use_secure_boot + @property + def preferred_efi(self): + """ + Gets the preferred_efi of this V1beta1FirmwarePreferences. + PreferredEfi optionally enables EFI + + :return: The preferred_efi of this V1beta1FirmwarePreferences. + :rtype: V1EFI + """ + return self._preferred_efi + + @preferred_efi.setter + def preferred_efi(self, preferred_efi): + """ + Sets the preferred_efi of this V1beta1FirmwarePreferences. + PreferredEfi optionally enables EFI + + :param preferred_efi: The preferred_efi of this V1beta1FirmwarePreferences. + :type: V1EFI + """ + + self._preferred_efi = preferred_efi + @property def preferred_use_bios(self): """ diff --git a/setup.py b/setup.py index 1fbaac9e..7e894888 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.3.0-beta.0-785-g2f4c074a4" +VERSION = "v1.3.0-beta.0-1221-g18687b5e7" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index d6eeb0d3..5c4ffbbd 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.3.0-beta.0-785-g2f4c074a4" +"packageVersion": "v1.3.0-beta.0-1221-g18687b5e7" } From cda547feec8093de97649d72cbdb0d10d4ad0fb1 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 20 Sep 2024 10:10:19 +0000 Subject: [PATCH 414/521] Client Python update by KubeVirt Prow build 1837059712072290304 --- README.md | 4 +- docs/V1VirtualMachineStatus.md | 1 + docs/V1VolumeMigrationState.md | 11 ++ docs/V1VolumeUpdateState.md | 10 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 + kubevirt/__init__.py | 2 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 + kubevirt/models/v1_virtual_machine_status.py | 34 ++++- kubevirt/models/v1_volume_migration_state.py | 153 +++++++++++++++++++ kubevirt/models/v1_volume_update_state.py | 125 +++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_volume_migration_state.py | 44 ++++++ test/test_v1_volume_update_state.py | 44 ++++++ 17 files changed, 437 insertions(+), 9 deletions(-) create mode 100644 docs/V1VolumeMigrationState.md create mode 100644 docs/V1VolumeUpdateState.md create mode 100644 kubevirt/models/v1_volume_migration_state.py create mode 100644 kubevirt/models/v1_volume_update_state.py create mode 100644 test/test_v1_volume_migration_state.py create mode 100644 test/test_v1_volume_update_state.py diff --git a/README.md b/README.md index 3554e376..baec98f5 100644 --- a/README.md +++ b/README.md @@ -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-beta.0-1221-g18687b5e7 +- Package version: v1.4.0-alpha.0-151-g3aced9052 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -613,8 +613,10 @@ Class | Method | HTTP request | Description - [V1VirtualMachineStatus](docs/V1VirtualMachineStatus.md) - [V1VirtualMachineVolumeRequest](docs/V1VirtualMachineVolumeRequest.md) - [V1Volume](docs/V1Volume.md) + - [V1VolumeMigrationState](docs/V1VolumeMigrationState.md) - [V1VolumeSnapshotStatus](docs/V1VolumeSnapshotStatus.md) - [V1VolumeStatus](docs/V1VolumeStatus.md) + - [V1VolumeUpdateState](docs/V1VolumeUpdateState.md) - [V1Watchdog](docs/V1Watchdog.md) - [V1alpha1Condition](docs/V1alpha1Condition.md) - [V1alpha1MigrationPolicy](docs/V1alpha1MigrationPolicy.md) diff --git a/docs/V1VirtualMachineStatus.md b/docs/V1VirtualMachineStatus.md index ecd0eb3c..cd7beacd 100644 --- a/docs/V1VirtualMachineStatus.md +++ b/docs/V1VirtualMachineStatus.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **state_change_requests** | [**list[V1VirtualMachineStateChangeRequest]**](V1VirtualMachineStateChangeRequest.md) | StateChangeRequests indicates a list of actions that should be taken on a VMI e.g. stop a specific VMI then start a new one. | [optional] **volume_requests** | [**list[V1VirtualMachineVolumeRequest]**](V1VirtualMachineVolumeRequest.md) | VolumeRequests indicates a list of volumes add or remove from the VMI template and hotplug on an active running VMI. | [optional] **volume_snapshot_statuses** | [**list[V1VolumeSnapshotStatus]**](V1VolumeSnapshotStatus.md) | VolumeSnapshotStatuses indicates a list of statuses whether snapshotting is supported by each volume. | [optional] +**volume_update_state** | [**V1VolumeUpdateState**](V1VolumeUpdateState.md) | VolumeUpdateState contains the information about the volumes set updates related to the volumeUpdateStrategy | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VolumeMigrationState.md b/docs/V1VolumeMigrationState.md new file mode 100644 index 00000000..e42d58ef --- /dev/null +++ b/docs/V1VolumeMigrationState.md @@ -0,0 +1,11 @@ +# V1VolumeMigrationState + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**manual_recovery_required** | **bool** | ManualRecoveryRequired indicates if the update due to the migration failed and the volumes set needs to be manually restored | [optional] +**migrated_volumes** | [**list[V1StorageMigratedVolumeInfo]**](V1StorageMigratedVolumeInfo.md) | MigratedVolumes lists the source and destination volumes during the volume migration | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VolumeUpdateState.md b/docs/V1VolumeUpdateState.md new file mode 100644 index 00000000..f754e64e --- /dev/null +++ b/docs/V1VolumeUpdateState.md @@ -0,0 +1,10 @@ +# V1VolumeUpdateState + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**volume_migration_state** | [**V1VolumeMigrationState**](V1VolumeMigrationState.md) | VolumeMigrationState tracks the information related to the volume migration | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 554f7ca0..0085acd5 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.3.0-beta.0-1221-g18687b5e7" + release_note="Auto-generated client v1.4.0-alpha.0-151-g3aced9052" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 18d1795c..f9d29b1d 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -851,12 +851,18 @@ 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_volume.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_volume.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Volume.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_volume_migration_state.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_volume_migration_state.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VolumeMigrationState.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_volume_snapshot_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_volume_snapshot_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VolumeSnapshotStatus.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_volume_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_volume_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VolumeStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_volume_update_state.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_volume_update_state.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VolumeUpdateState.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Watchdog.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index c54cfa0c..47be02a6 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -290,8 +290,10 @@ from .models.v1_virtual_machine_status import V1VirtualMachineStatus from .models.v1_virtual_machine_volume_request import V1VirtualMachineVolumeRequest from .models.v1_volume import V1Volume +from .models.v1_volume_migration_state import V1VolumeMigrationState from .models.v1_volume_snapshot_status import V1VolumeSnapshotStatus from .models.v1_volume_status import V1VolumeStatus +from .models.v1_volume_update_state import V1VolumeUpdateState from .models.v1_watchdog import V1Watchdog from .models.v1alpha1_condition import V1alpha1Condition from .models.v1alpha1_migration_policy import V1alpha1MigrationPolicy diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 8db68b61..d5bb9dbf 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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-beta.0-1221-g18687b5e7/python' + self.user_agent = 'Swagger-Codegen/v1.4.0-alpha.0-151-g3aced9052/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 05bce059..e8e486b9 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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-beta.0-1221-g18687b5e7".\ + "SDK Package Version: v1.4.0-alpha.0-151-g3aced9052".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index d8f4f6f4..a03b1eef 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -290,8 +290,10 @@ from .v1_virtual_machine_status import V1VirtualMachineStatus from .v1_virtual_machine_volume_request import V1VirtualMachineVolumeRequest from .v1_volume import V1Volume +from .v1_volume_migration_state import V1VolumeMigrationState from .v1_volume_snapshot_status import V1VolumeSnapshotStatus from .v1_volume_status import V1VolumeStatus +from .v1_volume_update_state import V1VolumeUpdateState from .v1_watchdog import V1Watchdog from .v1alpha1_condition import V1alpha1Condition from .v1alpha1_migration_policy import V1alpha1MigrationPolicy diff --git a/kubevirt/models/v1_virtual_machine_status.py b/kubevirt/models/v1_virtual_machine_status.py index 7a8573c5..1d0ddc54 100644 --- a/kubevirt/models/v1_virtual_machine_status.py +++ b/kubevirt/models/v1_virtual_machine_status.py @@ -44,7 +44,8 @@ class V1VirtualMachineStatus(object): 'start_failure': 'V1VirtualMachineStartFailure', 'state_change_requests': 'list[V1VirtualMachineStateChangeRequest]', 'volume_requests': 'list[V1VirtualMachineVolumeRequest]', - 'volume_snapshot_statuses': 'list[V1VolumeSnapshotStatus]' + 'volume_snapshot_statuses': 'list[V1VolumeSnapshotStatus]', + 'volume_update_state': 'V1VolumeUpdateState' } attribute_map = { @@ -61,10 +62,11 @@ class V1VirtualMachineStatus(object): 'start_failure': 'startFailure', 'state_change_requests': 'stateChangeRequests', 'volume_requests': 'volumeRequests', - 'volume_snapshot_statuses': 'volumeSnapshotStatuses' + 'volume_snapshot_statuses': 'volumeSnapshotStatuses', + 'volume_update_state': 'volumeUpdateState' } - def __init__(self, conditions=None, created=None, desired_generation=None, memory_dump_request=None, observed_generation=None, printable_status=None, ready=None, restore_in_progress=None, run_strategy=None, snapshot_in_progress=None, start_failure=None, state_change_requests=None, volume_requests=None, volume_snapshot_statuses=None): + def __init__(self, conditions=None, created=None, desired_generation=None, memory_dump_request=None, observed_generation=None, printable_status=None, ready=None, restore_in_progress=None, run_strategy=None, snapshot_in_progress=None, start_failure=None, state_change_requests=None, volume_requests=None, volume_snapshot_statuses=None, volume_update_state=None): """ V1VirtualMachineStatus - a model defined in Swagger """ @@ -83,6 +85,7 @@ def __init__(self, conditions=None, created=None, desired_generation=None, memor self._state_change_requests = None self._volume_requests = None self._volume_snapshot_statuses = None + self._volume_update_state = None if conditions is not None: self.conditions = conditions @@ -112,6 +115,8 @@ def __init__(self, conditions=None, created=None, desired_generation=None, memor self.volume_requests = volume_requests if volume_snapshot_statuses is not None: self.volume_snapshot_statuses = volume_snapshot_statuses + if volume_update_state is not None: + self.volume_update_state = volume_update_state @property def conditions(self): @@ -435,6 +440,29 @@ def volume_snapshot_statuses(self, volume_snapshot_statuses): self._volume_snapshot_statuses = volume_snapshot_statuses + @property + def volume_update_state(self): + """ + Gets the volume_update_state of this V1VirtualMachineStatus. + VolumeUpdateState contains the information about the volumes set updates related to the volumeUpdateStrategy + + :return: The volume_update_state of this V1VirtualMachineStatus. + :rtype: V1VolumeUpdateState + """ + return self._volume_update_state + + @volume_update_state.setter + def volume_update_state(self, volume_update_state): + """ + Sets the volume_update_state of this V1VirtualMachineStatus. + VolumeUpdateState contains the information about the volumes set updates related to the volumeUpdateStrategy + + :param volume_update_state: The volume_update_state of this V1VirtualMachineStatus. + :type: V1VolumeUpdateState + """ + + self._volume_update_state = volume_update_state + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_volume_migration_state.py b/kubevirt/models/v1_volume_migration_state.py new file mode 100644 index 00000000..485e1245 --- /dev/null +++ b/kubevirt/models/v1_volume_migration_state.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VolumeMigrationState(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'manual_recovery_required': 'bool', + 'migrated_volumes': 'list[V1StorageMigratedVolumeInfo]' + } + + attribute_map = { + 'manual_recovery_required': 'manualRecoveryRequired', + 'migrated_volumes': 'migratedVolumes' + } + + def __init__(self, manual_recovery_required=None, migrated_volumes=None): + """ + V1VolumeMigrationState - a model defined in Swagger + """ + + self._manual_recovery_required = None + self._migrated_volumes = None + + if manual_recovery_required is not None: + self.manual_recovery_required = manual_recovery_required + if migrated_volumes is not None: + self.migrated_volumes = migrated_volumes + + @property + def manual_recovery_required(self): + """ + Gets the manual_recovery_required of this V1VolumeMigrationState. + ManualRecoveryRequired indicates if the update due to the migration failed and the volumes set needs to be manually restored + + :return: The manual_recovery_required of this V1VolumeMigrationState. + :rtype: bool + """ + return self._manual_recovery_required + + @manual_recovery_required.setter + def manual_recovery_required(self, manual_recovery_required): + """ + Sets the manual_recovery_required of this V1VolumeMigrationState. + ManualRecoveryRequired indicates if the update due to the migration failed and the volumes set needs to be manually restored + + :param manual_recovery_required: The manual_recovery_required of this V1VolumeMigrationState. + :type: bool + """ + + self._manual_recovery_required = manual_recovery_required + + @property + def migrated_volumes(self): + """ + Gets the migrated_volumes of this V1VolumeMigrationState. + MigratedVolumes lists the source and destination volumes during the volume migration + + :return: The migrated_volumes of this V1VolumeMigrationState. + :rtype: list[V1StorageMigratedVolumeInfo] + """ + return self._migrated_volumes + + @migrated_volumes.setter + def migrated_volumes(self, migrated_volumes): + """ + Sets the migrated_volumes of this V1VolumeMigrationState. + MigratedVolumes lists the source and destination volumes during the volume migration + + :param migrated_volumes: The migrated_volumes of this V1VolumeMigrationState. + :type: list[V1StorageMigratedVolumeInfo] + """ + + self._migrated_volumes = migrated_volumes + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VolumeMigrationState): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_volume_update_state.py b/kubevirt/models/v1_volume_update_state.py new file mode 100644 index 00000000..25a9b1c7 --- /dev/null +++ b/kubevirt/models/v1_volume_update_state.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VolumeUpdateState(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'volume_migration_state': 'V1VolumeMigrationState' + } + + attribute_map = { + 'volume_migration_state': 'volumeMigrationState' + } + + def __init__(self, volume_migration_state=None): + """ + V1VolumeUpdateState - a model defined in Swagger + """ + + self._volume_migration_state = None + + if volume_migration_state is not None: + self.volume_migration_state = volume_migration_state + + @property + def volume_migration_state(self): + """ + Gets the volume_migration_state of this V1VolumeUpdateState. + VolumeMigrationState tracks the information related to the volume migration + + :return: The volume_migration_state of this V1VolumeUpdateState. + :rtype: V1VolumeMigrationState + """ + return self._volume_migration_state + + @volume_migration_state.setter + def volume_migration_state(self, volume_migration_state): + """ + Sets the volume_migration_state of this V1VolumeUpdateState. + VolumeMigrationState tracks the information related to the volume migration + + :param volume_migration_state: The volume_migration_state of this V1VolumeUpdateState. + :type: V1VolumeMigrationState + """ + + self._volume_migration_state = volume_migration_state + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VolumeUpdateState): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 7e894888..585d0169 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.3.0-beta.0-1221-g18687b5e7" +VERSION = "v1.4.0-alpha.0-151-g3aced9052" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 5c4ffbbd..26c870e4 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.3.0-beta.0-1221-g18687b5e7" +"packageVersion": "v1.4.0-alpha.0-151-g3aced9052" } diff --git a/test/test_v1_volume_migration_state.py b/test/test_v1_volume_migration_state.py new file mode 100644 index 00000000..b93ec10e --- /dev/null +++ b/test/test_v1_volume_migration_state.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_volume_migration_state import V1VolumeMigrationState + + +class TestV1VolumeMigrationState(unittest.TestCase): + """ V1VolumeMigrationState unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VolumeMigrationState(self): + """ + Test V1VolumeMigrationState + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_volume_migration_state.V1VolumeMigrationState() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_volume_update_state.py b/test/test_v1_volume_update_state.py new file mode 100644 index 00000000..c92bb7df --- /dev/null +++ b/test/test_v1_volume_update_state.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_volume_update_state import V1VolumeUpdateState + + +class TestV1VolumeUpdateState(unittest.TestCase): + """ V1VolumeUpdateState unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VolumeUpdateState(self): + """ + Test V1VolumeUpdateState + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_volume_update_state.V1VolumeUpdateState() + pass + + +if __name__ == '__main__': + unittest.main() From 1d3f1c24f5de0bda7890c02a42998128ab0c09dd Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 20 Sep 2024 17:25:40 +0000 Subject: [PATCH 415/521] Client Python update by KubeVirt Prow build 1837166395578650624 --- README.md | 2 +- docs/V1LiveUpdateConfiguration.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_live_update_configuration.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index baec98f5..f43ee183 100644 --- a/README.md +++ b/README.md @@ -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.4.0-alpha.0-151-g3aced9052 +- Package version: v1.4.0-alpha.0-158-g4cc12be8d - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1LiveUpdateConfiguration.md b/docs/V1LiveUpdateConfiguration.md index 53fe7287..5e778132 100644 --- a/docs/V1LiveUpdateConfiguration.md +++ b/docs/V1LiveUpdateConfiguration.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**max_cpu_sockets** | **int** | MaxCpuSockets holds the maximum amount of sockets that can be hotplugged | [optional] +**max_cpu_sockets** | **int** | MaxCpuSockets provides a MaxSockets value for VMs that do not provide their own. For VMs with more sockets than maximum the MaxSockets will be set to equal number of sockets. | [optional] **max_guest** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | MaxGuest defines the maximum amount memory that can be allocated to the guest using hotplug. | [optional] **max_hotplug_ratio** | **int** | MaxHotplugRatio is the ratio used to define the max amount of a hotplug resource that can be made available to a VM when the specific Max* setting is not defined (MaxCpuSockets, MaxGuest) Example: VM is configured with 512Mi of guest memory, if MaxGuest is not defined and MaxHotplugRatio is 2 then MaxGuest = 1Gi defaults to 4 | [optional] diff --git a/git_push.sh b/git_push.sh index 0085acd5..98109b44 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.4.0-alpha.0-151-g3aced9052" + release_note="Auto-generated client v1.4.0-alpha.0-158-g4cc12be8d" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index d5bb9dbf..f2beb358 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.4.0-alpha.0-151-g3aced9052/python' + self.user_agent = 'Swagger-Codegen/v1.4.0-alpha.0-158-g4cc12be8d/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index e8e486b9..a63a7444 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.4.0-alpha.0-151-g3aced9052".\ + "SDK Package Version: v1.4.0-alpha.0-158-g4cc12be8d".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_live_update_configuration.py b/kubevirt/models/v1_live_update_configuration.py index 96689ee9..fd56bb4c 100644 --- a/kubevirt/models/v1_live_update_configuration.py +++ b/kubevirt/models/v1_live_update_configuration.py @@ -62,7 +62,7 @@ def __init__(self, max_cpu_sockets=None, max_guest=None, max_hotplug_ratio=None) def max_cpu_sockets(self): """ Gets the max_cpu_sockets of this V1LiveUpdateConfiguration. - MaxCpuSockets holds the maximum amount of sockets that can be hotplugged + MaxCpuSockets provides a MaxSockets value for VMs that do not provide their own. For VMs with more sockets than maximum the MaxSockets will be set to equal number of sockets. :return: The max_cpu_sockets of this V1LiveUpdateConfiguration. :rtype: int @@ -73,7 +73,7 @@ def max_cpu_sockets(self): def max_cpu_sockets(self, max_cpu_sockets): """ Sets the max_cpu_sockets of this V1LiveUpdateConfiguration. - MaxCpuSockets holds the maximum amount of sockets that can be hotplugged + MaxCpuSockets provides a MaxSockets value for VMs that do not provide their own. For VMs with more sockets than maximum the MaxSockets will be set to equal number of sockets. :param max_cpu_sockets: The max_cpu_sockets of this V1LiveUpdateConfiguration. :type: int diff --git a/setup.py b/setup.py index 585d0169..057005c6 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.4.0-alpha.0-151-g3aced9052" +VERSION = "v1.4.0-alpha.0-158-g4cc12be8d" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 26c870e4..2c4d8edd 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.4.0-alpha.0-151-g3aced9052" +"packageVersion": "v1.4.0-alpha.0-158-g4cc12be8d" } From 39fa43b64c5f3c5961c141b7a3413a5099d661a3 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 25 Sep 2024 08:41:03 +0000 Subject: [PATCH 416/521] Client Python update by KubeVirt Prow build 1838851109154721792 --- README.md | 2 +- docs/V1MigrationConfiguration.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_migration_configuration.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index f43ee183..78923f75 100644 --- a/README.md +++ b/README.md @@ -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.4.0-alpha.0-158-g4cc12be8d +- Package version: v1.4.0-alpha.0-212-g4917afe9e - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1MigrationConfiguration.md b/docs/V1MigrationConfiguration.md index b34d7110..003c3381 100644 --- a/docs/V1MigrationConfiguration.md +++ b/docs/V1MigrationConfiguration.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **allow_auto_converge** | **bool** | AllowAutoConverge allows the platform to compromise performance/availability of VMIs to guarantee successful VMI live migrations. Defaults to false | [optional] **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] **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] -**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 800 | [optional] +**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] **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] **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] **network** | **str** | Network is the name of the CNI network to use for live migrations. By default, migrations go through the pod network. | [optional] diff --git a/git_push.sh b/git_push.sh index 98109b44..a9444598 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.4.0-alpha.0-158-g4cc12be8d" + release_note="Auto-generated client v1.4.0-alpha.0-212-g4917afe9e" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index f2beb358..34afe9ed 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.4.0-alpha.0-158-g4cc12be8d/python' + self.user_agent = 'Swagger-Codegen/v1.4.0-alpha.0-212-g4917afe9e/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index a63a7444..3bfcf657 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.4.0-alpha.0-158-g4cc12be8d".\ + "SDK Package Version: v1.4.0-alpha.0-212-g4917afe9e".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_migration_configuration.py b/kubevirt/models/v1_migration_configuration.py index 8e3fa5c9..ec5e2650 100644 --- a/kubevirt/models/v1_migration_configuration.py +++ b/kubevirt/models/v1_migration_configuration.py @@ -176,7 +176,7 @@ def bandwidth_per_migration(self, bandwidth_per_migration): def completion_timeout_per_gi_b(self): """ Gets the completion_timeout_per_gi_b of this V1MigrationConfiguration. - 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 800 + 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 :return: The completion_timeout_per_gi_b of this V1MigrationConfiguration. :rtype: int @@ -187,7 +187,7 @@ def completion_timeout_per_gi_b(self): def completion_timeout_per_gi_b(self, completion_timeout_per_gi_b): """ Sets the completion_timeout_per_gi_b of this V1MigrationConfiguration. - 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 800 + 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 :param completion_timeout_per_gi_b: The completion_timeout_per_gi_b of this V1MigrationConfiguration. :type: int diff --git a/setup.py b/setup.py index 057005c6..d75dafab 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.4.0-alpha.0-158-g4cc12be8d" +VERSION = "v1.4.0-alpha.0-212-g4917afe9e" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 2c4d8edd..41ab7991 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.4.0-alpha.0-158-g4cc12be8d" +"packageVersion": "v1.4.0-alpha.0-212-g4917afe9e" } From b8068f6958d06fb48971d8e2838bf00eceb64096 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Sat, 28 Sep 2024 06:56:26 +0000 Subject: [PATCH 417/521] Client Python update by KubeVirt Prow build 1839908114380361728 --- README.md | 3 +- docs/V1CommonInstancetypesDeployment.md | 10 ++ docs/V1KubeVirtConfiguration.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + .../v1_common_instancetypes_deployment.py | 125 ++++++++++++++++++ kubevirt/models/v1_kube_virt_configuration.py | 30 ++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...test_v1_common_instancetypes_deployment.py | 44 ++++++ 14 files changed, 221 insertions(+), 7 deletions(-) create mode 100644 docs/V1CommonInstancetypesDeployment.md create mode 100644 kubevirt/models/v1_common_instancetypes_deployment.py create mode 100644 test/test_v1_common_instancetypes_deployment.py diff --git a/README.md b/README.md index 78923f75..8611b8a4 100644 --- a/README.md +++ b/README.md @@ -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.4.0-alpha.0-212-g4917afe9e +- Package version: v1.4.0-alpha.0-252-gebe402744 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -413,6 +413,7 @@ Class | Method | HTTP request | Description - [V1ClockOffsetUTC](docs/V1ClockOffsetUTC.md) - [V1CloudInitConfigDriveSource](docs/V1CloudInitConfigDriveSource.md) - [V1CloudInitNoCloudSource](docs/V1CloudInitNoCloudSource.md) + - [V1CommonInstancetypesDeployment](docs/V1CommonInstancetypesDeployment.md) - [V1ComponentConfig](docs/V1ComponentConfig.md) - [V1ConfigDriveSSHPublicKeyAccessCredentialPropagation](docs/V1ConfigDriveSSHPublicKeyAccessCredentialPropagation.md) - [V1ConfigMapVolumeSource](docs/V1ConfigMapVolumeSource.md) diff --git a/docs/V1CommonInstancetypesDeployment.md b/docs/V1CommonInstancetypesDeployment.md new file mode 100644 index 00000000..2856cffe --- /dev/null +++ b/docs/V1CommonInstancetypesDeployment.md @@ -0,0 +1,10 @@ +# V1CommonInstancetypesDeployment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | Enabled controls the deployment of common-instancetypes resources, defaults to True. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index c77cb855..3f02aeec 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **api_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] **architecture_configuration** | [**V1ArchConfiguration**](V1ArchConfiguration.md) | | [optional] **auto_cpu_limit_namespace_label_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | When set, AutoCPULimitNamespaceLabelSelector will set a CPU limit on virt-launcher for VMIs running inside namespaces that match the label selector. The CPU limit will equal the number of requested vCPUs. This setting does not apply to VMIs with dedicated CPUs. | [optional] +**common_instancetypes_deployment** | [**V1CommonInstancetypesDeployment**](V1CommonInstancetypesDeployment.md) | CommonInstancetypesDeployment controls the deployment of common-instancetypes resources | [optional] **controller_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] **cpu_model** | **str** | | [optional] **cpu_request** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | | [optional] diff --git a/git_push.sh b/git_push.sh index a9444598..801c528b 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.4.0-alpha.0-212-g4917afe9e" + release_note="Auto-generated client v1.4.0-alpha.0-252-gebe402744" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index f9d29b1d..81e316ec 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -251,6 +251,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_cloud_init_no_cloud_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_cloud_init_no_cloud_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CloudInitNoCloudSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_common_instancetypes_deployment.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_common_instancetypes_deployment.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CommonInstancetypesDeployment.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_component_config.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_component_config.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ComponentConfig.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 47be02a6..fcf059d6 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -90,6 +90,7 @@ from .models.v1_clock_offset_utc import V1ClockOffsetUTC from .models.v1_cloud_init_config_drive_source import V1CloudInitConfigDriveSource from .models.v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource +from .models.v1_common_instancetypes_deployment import V1CommonInstancetypesDeployment from .models.v1_component_config import V1ComponentConfig from .models.v1_config_drive_ssh_public_key_access_credential_propagation import V1ConfigDriveSSHPublicKeyAccessCredentialPropagation from .models.v1_config_map_volume_source import V1ConfigMapVolumeSource diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 34afe9ed..99989da2 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.4.0-alpha.0-212-g4917afe9e/python' + self.user_agent = 'Swagger-Codegen/v1.4.0-alpha.0-252-gebe402744/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 3bfcf657..7ff1de64 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.4.0-alpha.0-212-g4917afe9e".\ + "SDK Package Version: v1.4.0-alpha.0-252-gebe402744".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index a03b1eef..27b80d40 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -90,6 +90,7 @@ from .v1_clock_offset_utc import V1ClockOffsetUTC from .v1_cloud_init_config_drive_source import V1CloudInitConfigDriveSource from .v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource +from .v1_common_instancetypes_deployment import V1CommonInstancetypesDeployment from .v1_component_config import V1ComponentConfig from .v1_config_drive_ssh_public_key_access_credential_propagation import V1ConfigDriveSSHPublicKeyAccessCredentialPropagation from .v1_config_map_volume_source import V1ConfigMapVolumeSource diff --git a/kubevirt/models/v1_common_instancetypes_deployment.py b/kubevirt/models/v1_common_instancetypes_deployment.py new file mode 100644 index 00000000..cb7a2333 --- /dev/null +++ b/kubevirt/models/v1_common_instancetypes_deployment.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1CommonInstancetypesDeployment(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'enabled': 'bool' + } + + attribute_map = { + 'enabled': 'enabled' + } + + def __init__(self, enabled=None): + """ + V1CommonInstancetypesDeployment - a model defined in Swagger + """ + + self._enabled = None + + if enabled is not None: + self.enabled = enabled + + @property + def enabled(self): + """ + Gets the enabled of this V1CommonInstancetypesDeployment. + Enabled controls the deployment of common-instancetypes resources, defaults to True. + + :return: The enabled of this V1CommonInstancetypesDeployment. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """ + Sets the enabled of this V1CommonInstancetypesDeployment. + Enabled controls the deployment of common-instancetypes resources, defaults to True. + + :param enabled: The enabled of this V1CommonInstancetypesDeployment. + :type: bool + """ + + self._enabled = enabled + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1CommonInstancetypesDeployment): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index 2278aaed..e23e257f 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -35,6 +35,7 @@ class V1KubeVirtConfiguration(object): 'api_configuration': 'V1ReloadableComponentConfiguration', 'architecture_configuration': 'V1ArchConfiguration', 'auto_cpu_limit_namespace_label_selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', + 'common_instancetypes_deployment': 'V1CommonInstancetypesDeployment', 'controller_configuration': 'V1ReloadableComponentConfiguration', 'cpu_model': 'str', 'cpu_request': 'K8sIoApimachineryPkgApiResourceQuantity', @@ -73,6 +74,7 @@ class V1KubeVirtConfiguration(object): 'api_configuration': 'apiConfiguration', 'architecture_configuration': 'architectureConfiguration', 'auto_cpu_limit_namespace_label_selector': 'autoCPULimitNamespaceLabelSelector', + 'common_instancetypes_deployment': 'commonInstancetypesDeployment', 'controller_configuration': 'controllerConfiguration', 'cpu_model': 'cpuModel', 'cpu_request': 'cpuRequest', @@ -106,7 +108,7 @@ class V1KubeVirtConfiguration(object): 'webhook_configuration': 'webhookConfiguration' } - def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, auto_cpu_limit_namespace_label_selector=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, ksm_configuration=None, live_update_configuration=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, virtual_machine_options=None, vm_rollout_strategy=None, vm_state_storage_class=None, webhook_configuration=None): + def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, auto_cpu_limit_namespace_label_selector=None, common_instancetypes_deployment=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, ksm_configuration=None, live_update_configuration=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, virtual_machine_options=None, vm_rollout_strategy=None, vm_state_storage_class=None, webhook_configuration=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ @@ -115,6 +117,7 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self._api_configuration = None self._architecture_configuration = None self._auto_cpu_limit_namespace_label_selector = None + self._common_instancetypes_deployment = None self._controller_configuration = None self._cpu_model = None self._cpu_request = None @@ -155,6 +158,8 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self.architecture_configuration = architecture_configuration if auto_cpu_limit_namespace_label_selector is not None: self.auto_cpu_limit_namespace_label_selector = auto_cpu_limit_namespace_label_selector + if common_instancetypes_deployment is not None: + self.common_instancetypes_deployment = common_instancetypes_deployment if controller_configuration is not None: self.controller_configuration = controller_configuration if cpu_model is not None: @@ -306,6 +311,29 @@ def auto_cpu_limit_namespace_label_selector(self, auto_cpu_limit_namespace_label self._auto_cpu_limit_namespace_label_selector = auto_cpu_limit_namespace_label_selector + @property + def common_instancetypes_deployment(self): + """ + Gets the common_instancetypes_deployment of this V1KubeVirtConfiguration. + CommonInstancetypesDeployment controls the deployment of common-instancetypes resources + + :return: The common_instancetypes_deployment of this V1KubeVirtConfiguration. + :rtype: V1CommonInstancetypesDeployment + """ + return self._common_instancetypes_deployment + + @common_instancetypes_deployment.setter + def common_instancetypes_deployment(self, common_instancetypes_deployment): + """ + Sets the common_instancetypes_deployment of this V1KubeVirtConfiguration. + CommonInstancetypesDeployment controls the deployment of common-instancetypes resources + + :param common_instancetypes_deployment: The common_instancetypes_deployment of this V1KubeVirtConfiguration. + :type: V1CommonInstancetypesDeployment + """ + + self._common_instancetypes_deployment = common_instancetypes_deployment + @property def controller_configuration(self): """ diff --git a/setup.py b/setup.py index d75dafab..382038ed 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.4.0-alpha.0-212-g4917afe9e" +VERSION = "v1.4.0-alpha.0-252-gebe402744" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 41ab7991..00a1b33e 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.4.0-alpha.0-212-g4917afe9e" +"packageVersion": "v1.4.0-alpha.0-252-gebe402744" } diff --git a/test/test_v1_common_instancetypes_deployment.py b/test/test_v1_common_instancetypes_deployment.py new file mode 100644 index 00000000..3d18b136 --- /dev/null +++ b/test/test_v1_common_instancetypes_deployment.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_common_instancetypes_deployment import V1CommonInstancetypesDeployment + + +class TestV1CommonInstancetypesDeployment(unittest.TestCase): + """ V1CommonInstancetypesDeployment unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1CommonInstancetypesDeployment(self): + """ + Test V1CommonInstancetypesDeployment + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_common_instancetypes_deployment.V1CommonInstancetypesDeployment() + pass + + +if __name__ == '__main__': + unittest.main() From 892ef1c87e889045caa1c4a211379351ea4fb24f Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Mon, 30 Sep 2024 11:54:36 +0000 Subject: [PATCH 418/521] Client Python update by KubeVirt Prow build 1840708965676093440 --- README.md | 2 +- docs/V1VirtualMachineSpec.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_virtual_machine_spec.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 8611b8a4..fd61efbd 100644 --- a/README.md +++ b/README.md @@ -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.4.0-alpha.0-252-gebe402744 +- Package version: v1.4.0-alpha.0-265-geaee047cc - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineSpec.md b/docs/V1VirtualMachineSpec.md index d123bf17..ac4af1f9 100644 --- a/docs/V1VirtualMachineSpec.md +++ b/docs/V1VirtualMachineSpec.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **instancetype** | [**V1InstancetypeMatcher**](V1InstancetypeMatcher.md) | InstancetypeMatcher references a instancetype that is used to fill fields in Template | [optional] **preference** | [**V1PreferenceMatcher**](V1PreferenceMatcher.md) | PreferenceMatcher references a set of preference that is used to fill fields in Template | [optional] **run_strategy** | **str** | Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running | [optional] -**running** | **bool** | Running controls whether the associatied VirtualMachineInstance is created or not Mutually exclusive with RunStrategy | [optional] +**running** | **bool** | Running controls whether the associatied VirtualMachineInstance is created or not Mutually exclusive with RunStrategy Deprecated: VirtualMachineInstance field \"Running\" is now deprecated, please use RunStrategy instead. | [optional] **template** | [**V1VirtualMachineInstanceTemplateSpec**](V1VirtualMachineInstanceTemplateSpec.md) | Template is the direct specification of VirtualMachineInstance | **update_volumes_strategy** | **str** | UpdateVolumesStrategy is the strategy to apply on volumes updates | [optional] diff --git a/git_push.sh b/git_push.sh index 801c528b..ac5be76b 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.4.0-alpha.0-252-gebe402744" + release_note="Auto-generated client v1.4.0-alpha.0-265-geaee047cc" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 99989da2..2f511871 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.4.0-alpha.0-252-gebe402744/python' + self.user_agent = 'Swagger-Codegen/v1.4.0-alpha.0-265-geaee047cc/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 7ff1de64..6b442801 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.4.0-alpha.0-252-gebe402744".\ + "SDK Package Version: v1.4.0-alpha.0-265-geaee047cc".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_spec.py b/kubevirt/models/v1_virtual_machine_spec.py index a3a891b1..ba530ec0 100644 --- a/kubevirt/models/v1_virtual_machine_spec.py +++ b/kubevirt/models/v1_virtual_machine_spec.py @@ -173,7 +173,7 @@ def run_strategy(self, run_strategy): def running(self): """ Gets the running of this V1VirtualMachineSpec. - Running controls whether the associatied VirtualMachineInstance is created or not Mutually exclusive with RunStrategy + Running controls whether the associatied VirtualMachineInstance is created or not Mutually exclusive with RunStrategy Deprecated: VirtualMachineInstance field \"Running\" is now deprecated, please use RunStrategy instead. :return: The running of this V1VirtualMachineSpec. :rtype: bool @@ -184,7 +184,7 @@ def running(self): def running(self, running): """ Sets the running of this V1VirtualMachineSpec. - Running controls whether the associatied VirtualMachineInstance is created or not Mutually exclusive with RunStrategy + Running controls whether the associatied VirtualMachineInstance is created or not Mutually exclusive with RunStrategy Deprecated: VirtualMachineInstance field \"Running\" is now deprecated, please use RunStrategy instead. :param running: The running of this V1VirtualMachineSpec. :type: bool diff --git a/setup.py b/setup.py index 382038ed..b0d39b24 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.4.0-alpha.0-252-gebe402744" +VERSION = "v1.4.0-alpha.0-265-geaee047cc" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 00a1b33e..09e3394d 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.4.0-alpha.0-252-gebe402744" +"packageVersion": "v1.4.0-alpha.0-265-geaee047cc" } From 92cb378054314a3df873002d72f4748c464ef916 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 10 Oct 2024 09:32:55 +0000 Subject: [PATCH 419/521] Client Python update by KubeVirt Prow build 1844299020898406400 --- README.md | 3 +- docs/K8sIoApiCoreV1LocalObjectReference.md | 2 +- ...K8sIoApiCoreV1PersistentVolumeClaimSpec.md | 2 +- docs/K8sIoApiCoreV1PodAffinityTerm.md | 4 +- docs/K8sIoApiCoreV1ResourceClaim.md | 1 + docs/V1ConfigMapVolumeSource.md | 2 +- docs/V1InterfaceBindingPlugin.md | 2 +- docs/V1ResourceRequirementsWithoutClaims.md | 11 ++ docs/V1SupportContainerResources.md | 2 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 41 ++--- kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + ...s_io_api_core_v1_local_object_reference.py | 6 +- ...pi_core_v1_persistent_volume_claim_spec.py | 11 +- .../k8s_io_api_core_v1_pod_affinity_term.py | 8 +- .../k8s_io_api_core_v1_resource_claim.py | 34 +++- .../models/v1_config_map_volume_source.py | 6 +- .../models/v1_interface_binding_plugin.py | 6 +- .../models/v1_persistent_volume_claim_info.py | 7 + ...v1_resource_requirements_without_claims.py | 153 ++++++++++++++++++ .../models/v1_support_container_resources.py | 6 +- kubevirt/models/v1beta1_storage_spec.py | 7 + setup.py | 2 +- swagger-codegen-config.json | 2 +- ...v1_resource_requirements_without_claims.py | 44 +++++ 28 files changed, 317 insertions(+), 53 deletions(-) create mode 100644 docs/V1ResourceRequirementsWithoutClaims.md create mode 100644 kubevirt/models/v1_resource_requirements_without_claims.py create mode 100644 test/test_v1_resource_requirements_without_claims.py diff --git a/README.md b/README.md index fd61efbd..c73c8ec7 100644 --- a/README.md +++ b/README.md @@ -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.4.0-alpha.0-265-geaee047cc +- Package version: v1.4.0-alpha.0-412-gc9206e1dbd - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -535,6 +535,7 @@ Class | Method | HTTP request | Description - [V1ReloadableComponentConfiguration](docs/V1ReloadableComponentConfiguration.md) - [V1RemoveVolumeOptions](docs/V1RemoveVolumeOptions.md) - [V1ResourceRequirements](docs/V1ResourceRequirements.md) + - [V1ResourceRequirementsWithoutClaims](docs/V1ResourceRequirementsWithoutClaims.md) - [V1RestartOptions](docs/V1RestartOptions.md) - [V1Rng](docs/V1Rng.md) - [V1SEV](docs/V1SEV.md) diff --git a/docs/K8sIoApiCoreV1LocalObjectReference.md b/docs/K8sIoApiCoreV1LocalObjectReference.md index dcc0ba8e..f1c83e85 100644 --- a/docs/K8sIoApiCoreV1LocalObjectReference.md +++ b/docs/K8sIoApiCoreV1LocalObjectReference.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] +**name** | **str** | Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md b/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md index b115c9eb..489f19cd 100644 --- a/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md +++ b/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **resources** | [**K8sIoApiCoreV1VolumeResourceRequirements**](K8sIoApiCoreV1VolumeResourceRequirements.md) | resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources | [optional] **selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | selector is a label query over volumes to consider for binding. | [optional] **storage_class_name** | **str** | storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] -**volume_attributes_class_name** | **str** | volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled. | [optional] +**volume_attributes_class_name** | **str** | volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default). | [optional] **volume_mode** | **str** | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. | [optional] **volume_name** | **str** | volumeName is the binding reference to the PersistentVolume backing this claim. | [optional] diff --git a/docs/K8sIoApiCoreV1PodAffinityTerm.md b/docs/K8sIoApiCoreV1PodAffinityTerm.md index 7de4f95e..797efe78 100644 --- a/docs/K8sIoApiCoreV1PodAffinityTerm.md +++ b/docs/K8sIoApiCoreV1PodAffinityTerm.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **label_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. | [optional] -**match_label_keys** | **list[str]** | MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. | [optional] -**mismatch_label_keys** | **list[str]** | MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. | [optional] +**match_label_keys** | **list[str]** | MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). | [optional] +**mismatch_label_keys** | **list[str]** | MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). | [optional] **namespace_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces. | [optional] **namespaces** | **list[str]** | namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\". | [optional] **topology_key** | **str** | This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. | [default to ''] diff --git a/docs/K8sIoApiCoreV1ResourceClaim.md b/docs/K8sIoApiCoreV1ResourceClaim.md index 56b78fa0..a16de913 100644 --- a/docs/K8sIoApiCoreV1ResourceClaim.md +++ b/docs/K8sIoApiCoreV1ResourceClaim.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container. | [default to ''] +**request** | **str** | Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1ConfigMapVolumeSource.md b/docs/V1ConfigMapVolumeSource.md index 534882f5..1ef042fb 100644 --- a/docs/V1ConfigMapVolumeSource.md +++ b/docs/V1ConfigMapVolumeSource.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] +**name** | **str** | Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] [default to ''] **optional** | **bool** | Specify whether the ConfigMap or it's keys must be defined | [optional] **volume_label** | **str** | The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart). | [optional] diff --git a/docs/V1InterfaceBindingPlugin.md b/docs/V1InterfaceBindingPlugin.md index 962e9aca..18b90a31 100644 --- a/docs/V1InterfaceBindingPlugin.md +++ b/docs/V1InterfaceBindingPlugin.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**compute_resource_overhead** | [**K8sIoApiCoreV1ResourceRequirements**](K8sIoApiCoreV1ResourceRequirements.md) | ComputeResourceOverhead specifies the resource overhead that should be added to the compute container when using the binding. version: v1alphav1 | [optional] +**compute_resource_overhead** | [**V1ResourceRequirementsWithoutClaims**](V1ResourceRequirementsWithoutClaims.md) | ComputeResourceOverhead specifies the resource overhead that should be added to the compute container when using the binding. version: v1alphav1 | [optional] **domain_attachment_type** | **str** | DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: \"tap\". The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1 | [optional] **downward_api** | **str** | DownwardAPI specifies what kind of data should be exposed to the binding plugin sidecar. Supported values: \"device-info\" version: v1alphav1 | [optional] **migration** | [**V1InterfaceBindingMigration**](V1InterfaceBindingMigration.md) | Migration means the VM using the plugin can be safely migrated version: 1alphav1 | [optional] diff --git a/docs/V1ResourceRequirementsWithoutClaims.md b/docs/V1ResourceRequirementsWithoutClaims.md new file mode 100644 index 00000000..e492cb62 --- /dev/null +++ b/docs/V1ResourceRequirementsWithoutClaims.md @@ -0,0 +1,11 @@ +# V1ResourceRequirementsWithoutClaims + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**limits** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] +**requests** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1SupportContainerResources.md b/docs/V1SupportContainerResources.md index 8c8d232f..579ff2fe 100644 --- a/docs/V1SupportContainerResources.md +++ b/docs/V1SupportContainerResources.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**resources** | [**K8sIoApiCoreV1ResourceRequirements**](K8sIoApiCoreV1ResourceRequirements.md) | | +**resources** | [**V1ResourceRequirementsWithoutClaims**](V1ResourceRequirementsWithoutClaims.md) | | **type** | **str** | | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index ac5be76b..ced0fa28 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.4.0-alpha.0-265-geaee047cc" + release_note="Auto-generated client v1.4.0-alpha.0-412-gc9206e1dbd" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 81e316ec..2b178c79 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -1,25 +1,25 @@ [main] INFO io.swagger.parser.Swagger20Parser - reading from /root/go/src/kubevirt.io/kubevirt/api/openapi-spec/swagger.json -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME., DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. -Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] INFO io.swagger.codegen.ignore.CodegenIgnoreProcessor - No .swagger-codegen-ignore file found. [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default appVersion set to 1.0.0 [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default version set to 1.0.0 @@ -617,6 +617,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_resource_requirements.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_resource_requirements.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ResourceRequirements.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_resource_requirements_without_claims.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_resource_requirements_without_claims.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ResourceRequirementsWithoutClaims.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_restart_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_restart_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1RestartOptions.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index fcf059d6..f0eb28be 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -212,6 +212,7 @@ from .models.v1_reloadable_component_configuration import V1ReloadableComponentConfiguration from .models.v1_remove_volume_options import V1RemoveVolumeOptions from .models.v1_resource_requirements import V1ResourceRequirements +from .models.v1_resource_requirements_without_claims import V1ResourceRequirementsWithoutClaims from .models.v1_restart_options import V1RestartOptions from .models.v1_rng import V1Rng from .models.v1_sev import V1SEV diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 2f511871..91475dbd 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.4.0-alpha.0-265-geaee047cc/python' + self.user_agent = 'Swagger-Codegen/v1.4.0-alpha.0-412-gc9206e1dbd/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 6b442801..44632794 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.4.0-alpha.0-265-geaee047cc".\ + "SDK Package Version: v1.4.0-alpha.0-412-gc9206e1dbd".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 27b80d40..26acbc45 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -212,6 +212,7 @@ from .v1_reloadable_component_configuration import V1ReloadableComponentConfiguration from .v1_remove_volume_options import V1RemoveVolumeOptions from .v1_resource_requirements import V1ResourceRequirements +from .v1_resource_requirements_without_claims import V1ResourceRequirementsWithoutClaims from .v1_restart_options import V1RestartOptions from .v1_rng import V1Rng from .v1_sev import V1SEV diff --git a/kubevirt/models/k8s_io_api_core_v1_local_object_reference.py b/kubevirt/models/k8s_io_api_core_v1_local_object_reference.py index 77485e68..34ebb706 100644 --- a/kubevirt/models/k8s_io_api_core_v1_local_object_reference.py +++ b/kubevirt/models/k8s_io_api_core_v1_local_object_reference.py @@ -38,7 +38,7 @@ class K8sIoApiCoreV1LocalObjectReference(object): 'name': 'name' } - def __init__(self, name=None): + def __init__(self, name=''): """ K8sIoApiCoreV1LocalObjectReference - a model defined in Swagger """ @@ -52,7 +52,7 @@ def __init__(self, name=None): def name(self): """ Gets the name of this K8sIoApiCoreV1LocalObjectReference. - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names :return: The name of this K8sIoApiCoreV1LocalObjectReference. :rtype: str @@ -63,7 +63,7 @@ def name(self): def name(self, name): """ Sets the name of this K8sIoApiCoreV1LocalObjectReference. - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names :param name: The name of this K8sIoApiCoreV1LocalObjectReference. :type: str diff --git a/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py index 1c8a3b48..daaf8d1e 100644 --- a/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py +++ b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py @@ -108,6 +108,13 @@ def access_modes(self, access_modes): :param access_modes: The access_modes of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :type: list[str] """ + allowed_values = ["ReadOnlyMany", "ReadWriteMany", "ReadWriteOnce", "ReadWriteOncePod"] + if not set(access_modes).issubset(set(allowed_values)): + raise ValueError( + "Invalid values for `access_modes` [{0}], must be a subset of [{1}]" + .format(", ".join(map(str, set(access_modes)-set(allowed_values))), + ", ".join(map(str, allowed_values))) + ) self._access_modes = access_modes @@ -230,7 +237,7 @@ def storage_class_name(self, storage_class_name): def volume_attributes_class_name(self): """ Gets the volume_attributes_class_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled. + volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default). :return: The volume_attributes_class_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :rtype: str @@ -241,7 +248,7 @@ def volume_attributes_class_name(self): def volume_attributes_class_name(self, volume_attributes_class_name): """ Sets the volume_attributes_class_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled. + volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default). :param volume_attributes_class_name: The volume_attributes_class_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :type: str diff --git a/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py b/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py index 897d633c..9b8de4d9 100644 --- a/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py +++ b/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py @@ -99,7 +99,7 @@ def label_selector(self, label_selector): def match_label_keys(self): """ Gets the match_label_keys of this K8sIoApiCoreV1PodAffinityTerm. - MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). :return: The match_label_keys of this K8sIoApiCoreV1PodAffinityTerm. :rtype: list[str] @@ -110,7 +110,7 @@ def match_label_keys(self): def match_label_keys(self, match_label_keys): """ Sets the match_label_keys of this K8sIoApiCoreV1PodAffinityTerm. - MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). :param match_label_keys: The match_label_keys of this K8sIoApiCoreV1PodAffinityTerm. :type: list[str] @@ -122,7 +122,7 @@ def match_label_keys(self, match_label_keys): def mismatch_label_keys(self): """ Gets the mismatch_label_keys of this K8sIoApiCoreV1PodAffinityTerm. - MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). :return: The mismatch_label_keys of this K8sIoApiCoreV1PodAffinityTerm. :rtype: list[str] @@ -133,7 +133,7 @@ def mismatch_label_keys(self): def mismatch_label_keys(self, mismatch_label_keys): """ Sets the mismatch_label_keys of this K8sIoApiCoreV1PodAffinityTerm. - MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). :param mismatch_label_keys: The mismatch_label_keys of this K8sIoApiCoreV1PodAffinityTerm. :type: list[str] diff --git a/kubevirt/models/k8s_io_api_core_v1_resource_claim.py b/kubevirt/models/k8s_io_api_core_v1_resource_claim.py index 9538a6ce..23d02036 100644 --- a/kubevirt/models/k8s_io_api_core_v1_resource_claim.py +++ b/kubevirt/models/k8s_io_api_core_v1_resource_claim.py @@ -31,21 +31,26 @@ class K8sIoApiCoreV1ResourceClaim(object): and the value is json key in definition. """ swagger_types = { - 'name': 'str' + 'name': 'str', + 'request': 'str' } attribute_map = { - 'name': 'name' + 'name': 'name', + 'request': 'request' } - def __init__(self, name=''): + def __init__(self, name='', request=None): """ K8sIoApiCoreV1ResourceClaim - a model defined in Swagger """ self._name = None + self._request = None self.name = name + if request is not None: + self.request = request @property def name(self): @@ -72,6 +77,29 @@ def name(self, name): self._name = name + @property + def request(self): + """ + Gets the request of this K8sIoApiCoreV1ResourceClaim. + Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request. + + :return: The request of this K8sIoApiCoreV1ResourceClaim. + :rtype: str + """ + return self._request + + @request.setter + def request(self, request): + """ + Sets the request of this K8sIoApiCoreV1ResourceClaim. + Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request. + + :param request: The request of this K8sIoApiCoreV1ResourceClaim. + :type: str + """ + + self._request = request + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_config_map_volume_source.py b/kubevirt/models/v1_config_map_volume_source.py index ca8bbbc8..6bfbc5ad 100644 --- a/kubevirt/models/v1_config_map_volume_source.py +++ b/kubevirt/models/v1_config_map_volume_source.py @@ -42,7 +42,7 @@ class V1ConfigMapVolumeSource(object): 'volume_label': 'volumeLabel' } - def __init__(self, name=None, optional=None, volume_label=None): + def __init__(self, name='', optional=None, volume_label=None): """ V1ConfigMapVolumeSource - a model defined in Swagger """ @@ -62,7 +62,7 @@ def __init__(self, name=None, optional=None, volume_label=None): def name(self): """ Gets the name of this V1ConfigMapVolumeSource. - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names :return: The name of this V1ConfigMapVolumeSource. :rtype: str @@ -73,7 +73,7 @@ def name(self): def name(self, name): """ Sets the name of this V1ConfigMapVolumeSource. - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names :param name: The name of this V1ConfigMapVolumeSource. :type: str diff --git a/kubevirt/models/v1_interface_binding_plugin.py b/kubevirt/models/v1_interface_binding_plugin.py index 600f6659..ff9ee1a1 100644 --- a/kubevirt/models/v1_interface_binding_plugin.py +++ b/kubevirt/models/v1_interface_binding_plugin.py @@ -31,7 +31,7 @@ class V1InterfaceBindingPlugin(object): and the value is json key in definition. """ swagger_types = { - 'compute_resource_overhead': 'K8sIoApiCoreV1ResourceRequirements', + 'compute_resource_overhead': 'V1ResourceRequirementsWithoutClaims', 'domain_attachment_type': 'str', 'downward_api': 'str', 'migration': 'V1InterfaceBindingMigration', @@ -80,7 +80,7 @@ def compute_resource_overhead(self): ComputeResourceOverhead specifies the resource overhead that should be added to the compute container when using the binding. version: v1alphav1 :return: The compute_resource_overhead of this V1InterfaceBindingPlugin. - :rtype: K8sIoApiCoreV1ResourceRequirements + :rtype: V1ResourceRequirementsWithoutClaims """ return self._compute_resource_overhead @@ -91,7 +91,7 @@ def compute_resource_overhead(self, compute_resource_overhead): ComputeResourceOverhead specifies the resource overhead that should be added to the compute container when using the binding. version: v1alphav1 :param compute_resource_overhead: The compute_resource_overhead of this V1InterfaceBindingPlugin. - :type: K8sIoApiCoreV1ResourceRequirements + :type: V1ResourceRequirementsWithoutClaims """ self._compute_resource_overhead = compute_resource_overhead diff --git a/kubevirt/models/v1_persistent_volume_claim_info.py b/kubevirt/models/v1_persistent_volume_claim_info.py index 78664c34..30b7ae07 100644 --- a/kubevirt/models/v1_persistent_volume_claim_info.py +++ b/kubevirt/models/v1_persistent_volume_claim_info.py @@ -98,6 +98,13 @@ def access_modes(self, access_modes): :param access_modes: The access_modes of this V1PersistentVolumeClaimInfo. :type: list[str] """ + allowed_values = ["ReadOnlyMany", "ReadWriteMany", "ReadWriteOnce", "ReadWriteOncePod"] + if not set(access_modes).issubset(set(allowed_values)): + raise ValueError( + "Invalid values for `access_modes` [{0}], must be a subset of [{1}]" + .format(", ".join(map(str, set(access_modes)-set(allowed_values))), + ", ".join(map(str, allowed_values))) + ) self._access_modes = access_modes diff --git a/kubevirt/models/v1_resource_requirements_without_claims.py b/kubevirt/models/v1_resource_requirements_without_claims.py new file mode 100644 index 00000000..0761861b --- /dev/null +++ b/kubevirt/models/v1_resource_requirements_without_claims.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ResourceRequirementsWithoutClaims(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'limits': 'dict(str, K8sIoApimachineryPkgApiResourceQuantity)', + 'requests': 'dict(str, K8sIoApimachineryPkgApiResourceQuantity)' + } + + attribute_map = { + 'limits': 'limits', + 'requests': 'requests' + } + + def __init__(self, limits=None, requests=None): + """ + V1ResourceRequirementsWithoutClaims - a model defined in Swagger + """ + + self._limits = None + self._requests = None + + if limits is not None: + self.limits = limits + if requests is not None: + self.requests = requests + + @property + def limits(self): + """ + Gets the limits of this V1ResourceRequirementsWithoutClaims. + Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + + :return: The limits of this V1ResourceRequirementsWithoutClaims. + :rtype: dict(str, K8sIoApimachineryPkgApiResourceQuantity) + """ + return self._limits + + @limits.setter + def limits(self, limits): + """ + Sets the limits of this V1ResourceRequirementsWithoutClaims. + Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + + :param limits: The limits of this V1ResourceRequirementsWithoutClaims. + :type: dict(str, K8sIoApimachineryPkgApiResourceQuantity) + """ + + self._limits = limits + + @property + def requests(self): + """ + Gets the requests of this V1ResourceRequirementsWithoutClaims. + Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + + :return: The requests of this V1ResourceRequirementsWithoutClaims. + :rtype: dict(str, K8sIoApimachineryPkgApiResourceQuantity) + """ + return self._requests + + @requests.setter + def requests(self, requests): + """ + Sets the requests of this V1ResourceRequirementsWithoutClaims. + Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + + :param requests: The requests of this V1ResourceRequirementsWithoutClaims. + :type: dict(str, K8sIoApimachineryPkgApiResourceQuantity) + """ + + self._requests = requests + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1ResourceRequirementsWithoutClaims): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_support_container_resources.py b/kubevirt/models/v1_support_container_resources.py index 2cc3855c..3e5c322b 100644 --- a/kubevirt/models/v1_support_container_resources.py +++ b/kubevirt/models/v1_support_container_resources.py @@ -31,7 +31,7 @@ class V1SupportContainerResources(object): and the value is json key in definition. """ swagger_types = { - 'resources': 'K8sIoApiCoreV1ResourceRequirements', + 'resources': 'V1ResourceRequirementsWithoutClaims', 'type': 'str' } @@ -57,7 +57,7 @@ def resources(self): Gets the resources of this V1SupportContainerResources. :return: The resources of this V1SupportContainerResources. - :rtype: K8sIoApiCoreV1ResourceRequirements + :rtype: V1ResourceRequirementsWithoutClaims """ return self._resources @@ -67,7 +67,7 @@ def resources(self, resources): Sets the resources of this V1SupportContainerResources. :param resources: The resources of this V1SupportContainerResources. - :type: K8sIoApiCoreV1ResourceRequirements + :type: V1ResourceRequirementsWithoutClaims """ if resources is None: raise ValueError("Invalid value for `resources`, must not be `None`") diff --git a/kubevirt/models/v1beta1_storage_spec.py b/kubevirt/models/v1beta1_storage_spec.py index 73606b95..3f02de8c 100644 --- a/kubevirt/models/v1beta1_storage_spec.py +++ b/kubevirt/models/v1beta1_storage_spec.py @@ -103,6 +103,13 @@ def access_modes(self, access_modes): :param access_modes: The access_modes of this V1beta1StorageSpec. :type: list[str] """ + allowed_values = ["ReadOnlyMany", "ReadWriteMany", "ReadWriteOnce", "ReadWriteOncePod"] + if not set(access_modes).issubset(set(allowed_values)): + raise ValueError( + "Invalid values for `access_modes` [{0}], must be a subset of [{1}]" + .format(", ".join(map(str, set(access_modes)-set(allowed_values))), + ", ".join(map(str, allowed_values))) + ) self._access_modes = access_modes diff --git a/setup.py b/setup.py index b0d39b24..adddee78 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.4.0-alpha.0-265-geaee047cc" +VERSION = "v1.4.0-alpha.0-412-gc9206e1dbd" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 09e3394d..64a053a0 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.4.0-alpha.0-265-geaee047cc" +"packageVersion": "v1.4.0-alpha.0-412-gc9206e1dbd" } diff --git a/test/test_v1_resource_requirements_without_claims.py b/test/test_v1_resource_requirements_without_claims.py new file mode 100644 index 00000000..7e62cd7c --- /dev/null +++ b/test/test_v1_resource_requirements_without_claims.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_resource_requirements_without_claims import V1ResourceRequirementsWithoutClaims + + +class TestV1ResourceRequirementsWithoutClaims(unittest.TestCase): + """ V1ResourceRequirementsWithoutClaims unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ResourceRequirementsWithoutClaims(self): + """ + Test V1ResourceRequirementsWithoutClaims + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_resource_requirements_without_claims.V1ResourceRequirementsWithoutClaims() + pass + + +if __name__ == '__main__': + unittest.main() From c4a8426e7fa1ec634855e4fb95ae35bd883a02e9 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 16 Oct 2024 10:28:57 +0000 Subject: [PATCH 420/521] Client Python update by KubeVirt Prow build 1846486939365019648 --- README.md | 2 +- docs/V1VolumeMigrationState.md | 1 - git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_volume_migration_state.py | 30 +------------------- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 7 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index c73c8ec7..bbdd1de5 100644 --- a/README.md +++ b/README.md @@ -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.4.0-alpha.0-412-gc9206e1dbd +- Package version: v1.4.0-alpha.0-486-g8acb61548e - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VolumeMigrationState.md b/docs/V1VolumeMigrationState.md index e42d58ef..243ea719 100644 --- a/docs/V1VolumeMigrationState.md +++ b/docs/V1VolumeMigrationState.md @@ -3,7 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**manual_recovery_required** | **bool** | ManualRecoveryRequired indicates if the update due to the migration failed and the volumes set needs to be manually restored | [optional] **migrated_volumes** | [**list[V1StorageMigratedVolumeInfo]**](V1StorageMigratedVolumeInfo.md) | MigratedVolumes lists the source and destination volumes during the volume migration | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index ced0fa28..99749ded 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.4.0-alpha.0-412-gc9206e1dbd" + release_note="Auto-generated client v1.4.0-alpha.0-486-g8acb61548e" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 91475dbd..0ec0033b 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.4.0-alpha.0-412-gc9206e1dbd/python' + self.user_agent = 'Swagger-Codegen/v1.4.0-alpha.0-486-g8acb61548e/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 44632794..98276fbe 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.4.0-alpha.0-412-gc9206e1dbd".\ + "SDK Package Version: v1.4.0-alpha.0-486-g8acb61548e".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_volume_migration_state.py b/kubevirt/models/v1_volume_migration_state.py index 485e1245..a321a8e2 100644 --- a/kubevirt/models/v1_volume_migration_state.py +++ b/kubevirt/models/v1_volume_migration_state.py @@ -31,51 +31,23 @@ class V1VolumeMigrationState(object): and the value is json key in definition. """ swagger_types = { - 'manual_recovery_required': 'bool', 'migrated_volumes': 'list[V1StorageMigratedVolumeInfo]' } attribute_map = { - 'manual_recovery_required': 'manualRecoveryRequired', 'migrated_volumes': 'migratedVolumes' } - def __init__(self, manual_recovery_required=None, migrated_volumes=None): + def __init__(self, migrated_volumes=None): """ V1VolumeMigrationState - a model defined in Swagger """ - self._manual_recovery_required = None self._migrated_volumes = None - if manual_recovery_required is not None: - self.manual_recovery_required = manual_recovery_required if migrated_volumes is not None: self.migrated_volumes = migrated_volumes - @property - def manual_recovery_required(self): - """ - Gets the manual_recovery_required of this V1VolumeMigrationState. - ManualRecoveryRequired indicates if the update due to the migration failed and the volumes set needs to be manually restored - - :return: The manual_recovery_required of this V1VolumeMigrationState. - :rtype: bool - """ - return self._manual_recovery_required - - @manual_recovery_required.setter - def manual_recovery_required(self, manual_recovery_required): - """ - Sets the manual_recovery_required of this V1VolumeMigrationState. - ManualRecoveryRequired indicates if the update due to the migration failed and the volumes set needs to be manually restored - - :param manual_recovery_required: The manual_recovery_required of this V1VolumeMigrationState. - :type: bool - """ - - self._manual_recovery_required = manual_recovery_required - @property def migrated_volumes(self): """ diff --git a/setup.py b/setup.py index adddee78..37a442b5 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.4.0-alpha.0-412-gc9206e1dbd" +VERSION = "v1.4.0-alpha.0-486-g8acb61548e" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 64a053a0..512d4fea 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.4.0-alpha.0-412-gc9206e1dbd" +"packageVersion": "v1.4.0-alpha.0-486-g8acb61548e" } From 249f8f0336ca92e483f01238792ba2ab8ed5b47e Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 16 Oct 2024 13:37:32 +0000 Subject: [PATCH 421/521] Client Python update by KubeVirt Prow build 1846535316295389184 --- README.md | 2 +- docs/V1InterfaceBindingPlugin.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_interface_binding_plugin.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index bbdd1de5..8b95400b 100644 --- a/README.md +++ b/README.md @@ -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.4.0-alpha.0-486-g8acb61548e +- Package version: v1.4.0-alpha.0-505-ge03628bd87 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1InterfaceBindingPlugin.md b/docs/V1InterfaceBindingPlugin.md index 18b90a31..500d924e 100644 --- a/docs/V1InterfaceBindingPlugin.md +++ b/docs/V1InterfaceBindingPlugin.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **compute_resource_overhead** | [**V1ResourceRequirementsWithoutClaims**](V1ResourceRequirementsWithoutClaims.md) | ComputeResourceOverhead specifies the resource overhead that should be added to the compute container when using the binding. version: v1alphav1 | [optional] -**domain_attachment_type** | **str** | DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: \"tap\". The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1 | [optional] +**domain_attachment_type** | **str** | DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: \"tap\", \"managedTap\" (since v1.4). The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1 | [optional] **downward_api** | **str** | DownwardAPI specifies what kind of data should be exposed to the binding plugin sidecar. Supported values: \"device-info\" version: v1alphav1 | [optional] **migration** | [**V1InterfaceBindingMigration**](V1InterfaceBindingMigration.md) | Migration means the VM using the plugin can be safely migrated version: 1alphav1 | [optional] **network_attachment_definition** | **str** | NetworkAttachmentDefinition references to a NetworkAttachmentDefinition CR object. Format: <name>, <namespace>/<name>. If namespace is not specified, VMI namespace is assumed. version: 1alphav1 | [optional] diff --git a/git_push.sh b/git_push.sh index 99749ded..5e6ef78a 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.4.0-alpha.0-486-g8acb61548e" + release_note="Auto-generated client v1.4.0-alpha.0-505-ge03628bd87" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 0ec0033b..fb2506c1 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.4.0-alpha.0-486-g8acb61548e/python' + self.user_agent = 'Swagger-Codegen/v1.4.0-alpha.0-505-ge03628bd87/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 98276fbe..ba8d99e9 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.4.0-alpha.0-486-g8acb61548e".\ + "SDK Package Version: v1.4.0-alpha.0-505-ge03628bd87".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_interface_binding_plugin.py b/kubevirt/models/v1_interface_binding_plugin.py index ff9ee1a1..b24fc271 100644 --- a/kubevirt/models/v1_interface_binding_plugin.py +++ b/kubevirt/models/v1_interface_binding_plugin.py @@ -100,7 +100,7 @@ def compute_resource_overhead(self, compute_resource_overhead): def domain_attachment_type(self): """ Gets the domain_attachment_type of this V1InterfaceBindingPlugin. - DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: \"tap\". The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1 + DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: \"tap\", \"managedTap\" (since v1.4). The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1 :return: The domain_attachment_type of this V1InterfaceBindingPlugin. :rtype: str @@ -111,7 +111,7 @@ def domain_attachment_type(self): def domain_attachment_type(self, domain_attachment_type): """ Sets the domain_attachment_type of this V1InterfaceBindingPlugin. - DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: \"tap\". The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1 + DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: \"tap\", \"managedTap\" (since v1.4). The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1 :param domain_attachment_type: The domain_attachment_type of this V1InterfaceBindingPlugin. :type: str diff --git a/setup.py b/setup.py index 37a442b5..fc7a72e9 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.4.0-alpha.0-486-g8acb61548e" +VERSION = "v1.4.0-alpha.0-505-ge03628bd87" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 512d4fea..a3311144 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.4.0-alpha.0-486-g8acb61548e" +"packageVersion": "v1.4.0-alpha.0-505-ge03628bd87" } From 1ffe8f1ad57711e51a6775b7b8decc93d0db15ae Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 16 Oct 2024 13:49:20 +0000 Subject: [PATCH 422/521] Client Python update by KubeVirt Prow build 1846535256040017920 --- README.md | 2 +- docs/V1InterfaceBindingPlugin.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_interface_binding_plugin.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 8b95400b..b07772d1 100644 --- a/README.md +++ b/README.md @@ -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.4.0-alpha.0-505-ge03628bd87 +- Package version: v1.4.0-alpha.0-497-g4ded1f2d86 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1InterfaceBindingPlugin.md b/docs/V1InterfaceBindingPlugin.md index 500d924e..18b90a31 100644 --- a/docs/V1InterfaceBindingPlugin.md +++ b/docs/V1InterfaceBindingPlugin.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **compute_resource_overhead** | [**V1ResourceRequirementsWithoutClaims**](V1ResourceRequirementsWithoutClaims.md) | ComputeResourceOverhead specifies the resource overhead that should be added to the compute container when using the binding. version: v1alphav1 | [optional] -**domain_attachment_type** | **str** | DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: \"tap\", \"managedTap\" (since v1.4). The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1 | [optional] +**domain_attachment_type** | **str** | DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: \"tap\". The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1 | [optional] **downward_api** | **str** | DownwardAPI specifies what kind of data should be exposed to the binding plugin sidecar. Supported values: \"device-info\" version: v1alphav1 | [optional] **migration** | [**V1InterfaceBindingMigration**](V1InterfaceBindingMigration.md) | Migration means the VM using the plugin can be safely migrated version: 1alphav1 | [optional] **network_attachment_definition** | **str** | NetworkAttachmentDefinition references to a NetworkAttachmentDefinition CR object. Format: <name>, <namespace>/<name>. If namespace is not specified, VMI namespace is assumed. version: 1alphav1 | [optional] diff --git a/git_push.sh b/git_push.sh index 5e6ef78a..75138cb5 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.4.0-alpha.0-505-ge03628bd87" + release_note="Auto-generated client v1.4.0-alpha.0-497-g4ded1f2d86" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index fb2506c1..2118c2db 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.4.0-alpha.0-505-ge03628bd87/python' + self.user_agent = 'Swagger-Codegen/v1.4.0-alpha.0-497-g4ded1f2d86/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index ba8d99e9..05cce4a2 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.4.0-alpha.0-505-ge03628bd87".\ + "SDK Package Version: v1.4.0-alpha.0-497-g4ded1f2d86".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_interface_binding_plugin.py b/kubevirt/models/v1_interface_binding_plugin.py index b24fc271..ff9ee1a1 100644 --- a/kubevirt/models/v1_interface_binding_plugin.py +++ b/kubevirt/models/v1_interface_binding_plugin.py @@ -100,7 +100,7 @@ def compute_resource_overhead(self, compute_resource_overhead): def domain_attachment_type(self): """ Gets the domain_attachment_type of this V1InterfaceBindingPlugin. - DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: \"tap\", \"managedTap\" (since v1.4). The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1 + DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: \"tap\". The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1 :return: The domain_attachment_type of this V1InterfaceBindingPlugin. :rtype: str @@ -111,7 +111,7 @@ def domain_attachment_type(self): def domain_attachment_type(self, domain_attachment_type): """ Sets the domain_attachment_type of this V1InterfaceBindingPlugin. - DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: \"tap\", \"managedTap\" (since v1.4). The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1 + DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: \"tap\". The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1 :param domain_attachment_type: The domain_attachment_type of this V1InterfaceBindingPlugin. :type: str diff --git a/setup.py b/setup.py index fc7a72e9..c855b6ef 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.4.0-alpha.0-505-ge03628bd87" +VERSION = "v1.4.0-alpha.0-497-g4ded1f2d86" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index a3311144..fdd74117 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.4.0-alpha.0-505-ge03628bd87" +"packageVersion": "v1.4.0-alpha.0-497-g4ded1f2d86" } From a7d89f7ea707531f25efd87eecfebc527b7e930e Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 16 Oct 2024 13:55:29 +0000 Subject: [PATCH 423/521] Client Python update by KubeVirt Prow build 1846535285194625024 --- README.md | 2 +- docs/V1InterfaceBindingPlugin.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_interface_binding_plugin.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index b07772d1..835874de 100644 --- a/README.md +++ b/README.md @@ -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.4.0-alpha.0-497-g4ded1f2d86 +- Package version: v1.4.0-alpha.0-503-ge8a4e0cfd9 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1InterfaceBindingPlugin.md b/docs/V1InterfaceBindingPlugin.md index 18b90a31..500d924e 100644 --- a/docs/V1InterfaceBindingPlugin.md +++ b/docs/V1InterfaceBindingPlugin.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **compute_resource_overhead** | [**V1ResourceRequirementsWithoutClaims**](V1ResourceRequirementsWithoutClaims.md) | ComputeResourceOverhead specifies the resource overhead that should be added to the compute container when using the binding. version: v1alphav1 | [optional] -**domain_attachment_type** | **str** | DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: \"tap\". The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1 | [optional] +**domain_attachment_type** | **str** | DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: \"tap\", \"managedTap\" (since v1.4). The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1 | [optional] **downward_api** | **str** | DownwardAPI specifies what kind of data should be exposed to the binding plugin sidecar. Supported values: \"device-info\" version: v1alphav1 | [optional] **migration** | [**V1InterfaceBindingMigration**](V1InterfaceBindingMigration.md) | Migration means the VM using the plugin can be safely migrated version: 1alphav1 | [optional] **network_attachment_definition** | **str** | NetworkAttachmentDefinition references to a NetworkAttachmentDefinition CR object. Format: <name>, <namespace>/<name>. If namespace is not specified, VMI namespace is assumed. version: 1alphav1 | [optional] diff --git a/git_push.sh b/git_push.sh index 75138cb5..2be4fb2e 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.4.0-alpha.0-497-g4ded1f2d86" + release_note="Auto-generated client v1.4.0-alpha.0-503-ge8a4e0cfd9" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 2118c2db..31c1cc9e 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.4.0-alpha.0-497-g4ded1f2d86/python' + self.user_agent = 'Swagger-Codegen/v1.4.0-alpha.0-503-ge8a4e0cfd9/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 05cce4a2..557eeed9 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.4.0-alpha.0-497-g4ded1f2d86".\ + "SDK Package Version: v1.4.0-alpha.0-503-ge8a4e0cfd9".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_interface_binding_plugin.py b/kubevirt/models/v1_interface_binding_plugin.py index ff9ee1a1..b24fc271 100644 --- a/kubevirt/models/v1_interface_binding_plugin.py +++ b/kubevirt/models/v1_interface_binding_plugin.py @@ -100,7 +100,7 @@ def compute_resource_overhead(self, compute_resource_overhead): def domain_attachment_type(self): """ Gets the domain_attachment_type of this V1InterfaceBindingPlugin. - DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: \"tap\". The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1 + DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: \"tap\", \"managedTap\" (since v1.4). The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1 :return: The domain_attachment_type of this V1InterfaceBindingPlugin. :rtype: str @@ -111,7 +111,7 @@ def domain_attachment_type(self): def domain_attachment_type(self, domain_attachment_type): """ Sets the domain_attachment_type of this V1InterfaceBindingPlugin. - DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: \"tap\". The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1 + DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: \"tap\", \"managedTap\" (since v1.4). The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1 :param domain_attachment_type: The domain_attachment_type of this V1InterfaceBindingPlugin. :type: str diff --git a/setup.py b/setup.py index c855b6ef..da7432ab 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.4.0-alpha.0-497-g4ded1f2d86" +VERSION = "v1.4.0-alpha.0-503-ge8a4e0cfd9" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index fdd74117..9e595a17 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.4.0-alpha.0-497-g4ded1f2d86" +"packageVersion": "v1.4.0-alpha.0-503-ge8a4e0cfd9" } From 1ab1daf0aaada915db7f64d8742075296977b479 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 16 Oct 2024 23:14:57 +0000 Subject: [PATCH 424/521] Client Python update by KubeVirt Prow build 1846678195902877696 --- README.md | 2 +- ...1VirtualMachineInstanceNetworkInterface.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...tual_machine_instance_network_interface.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 835874de..89cc503a 100644 --- a/README.md +++ b/README.md @@ -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.4.0-alpha.0-503-ge8a4e0cfd9 +- Package version: v1.4.0-alpha.1-11-g133430eab4 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceNetworkInterface.md b/docs/V1VirtualMachineInstanceNetworkInterface.md index e08efd4a..8bf60091 100644 --- a/docs/V1VirtualMachineInstanceNetworkInterface.md +++ b/docs/V1VirtualMachineInstanceNetworkInterface.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **ip_addresses** | **list[str]** | List of all IP addresses of a Virtual Machine interface | [optional] **mac** | **str** | Hardware address of a Virtual Machine interface | [optional] **name** | **str** | Name of the interface, corresponds to name of the network assigned to the interface | [optional] +**pod_interface_name** | **str** | PodInterfaceName represents the name of the pod network interface | [optional] **queue_count** | **int** | Specifies how many queues are allocated by MultiQueue | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 2be4fb2e..19cfee15 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.4.0-alpha.0-503-ge8a4e0cfd9" + release_note="Auto-generated client v1.4.0-alpha.1-11-g133430eab4" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 31c1cc9e..7ac9a970 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.4.0-alpha.0-503-ge8a4e0cfd9/python' + self.user_agent = 'Swagger-Codegen/v1.4.0-alpha.1-11-g133430eab4/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 557eeed9..1d004fb1 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.4.0-alpha.0-503-ge8a4e0cfd9".\ + "SDK Package Version: v1.4.0-alpha.1-11-g133430eab4".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_network_interface.py b/kubevirt/models/v1_virtual_machine_instance_network_interface.py index 26b52a4e..1f90cbde 100644 --- a/kubevirt/models/v1_virtual_machine_instance_network_interface.py +++ b/kubevirt/models/v1_virtual_machine_instance_network_interface.py @@ -37,6 +37,7 @@ class V1VirtualMachineInstanceNetworkInterface(object): 'ip_addresses': 'list[str]', 'mac': 'str', 'name': 'str', + 'pod_interface_name': 'str', 'queue_count': 'int' } @@ -47,10 +48,11 @@ class V1VirtualMachineInstanceNetworkInterface(object): 'ip_addresses': 'ipAddresses', 'mac': 'mac', 'name': 'name', + 'pod_interface_name': 'podInterfaceName', 'queue_count': 'queueCount' } - def __init__(self, info_source=None, interface_name=None, ip_address=None, ip_addresses=None, mac=None, name=None, queue_count=None): + def __init__(self, info_source=None, interface_name=None, ip_address=None, ip_addresses=None, mac=None, name=None, pod_interface_name=None, queue_count=None): """ V1VirtualMachineInstanceNetworkInterface - a model defined in Swagger """ @@ -61,6 +63,7 @@ def __init__(self, info_source=None, interface_name=None, ip_address=None, ip_ad self._ip_addresses = None self._mac = None self._name = None + self._pod_interface_name = None self._queue_count = None if info_source is not None: @@ -75,6 +78,8 @@ def __init__(self, info_source=None, interface_name=None, ip_address=None, ip_ad self.mac = mac if name is not None: self.name = name + if pod_interface_name is not None: + self.pod_interface_name = pod_interface_name if queue_count is not None: self.queue_count = queue_count @@ -216,6 +221,29 @@ def name(self, name): self._name = name + @property + def pod_interface_name(self): + """ + Gets the pod_interface_name of this V1VirtualMachineInstanceNetworkInterface. + PodInterfaceName represents the name of the pod network interface + + :return: The pod_interface_name of this V1VirtualMachineInstanceNetworkInterface. + :rtype: str + """ + return self._pod_interface_name + + @pod_interface_name.setter + def pod_interface_name(self, pod_interface_name): + """ + Sets the pod_interface_name of this V1VirtualMachineInstanceNetworkInterface. + PodInterfaceName represents the name of the pod network interface + + :param pod_interface_name: The pod_interface_name of this V1VirtualMachineInstanceNetworkInterface. + :type: str + """ + + self._pod_interface_name = pod_interface_name + @property def queue_count(self): """ diff --git a/setup.py b/setup.py index da7432ab..a6be841d 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.4.0-alpha.0-503-ge8a4e0cfd9" +VERSION = "v1.4.0-alpha.1-11-g133430eab4" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 9e595a17..b52fae94 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.4.0-alpha.0-503-ge8a4e0cfd9" +"packageVersion": "v1.4.0-alpha.1-11-g133430eab4" } From 8b3b0f370a22ee9b7cacbf957bf0cc4e94282d6b Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Tue, 22 Oct 2024 14:47:53 +0000 Subject: [PATCH 425/521] Client Python update by KubeVirt Prow build 1848723699365056512 --- README.md | 3 +- docs/V1InstancetypeConfiguration.md | 10 ++ docs/V1KubeVirtConfiguration.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + .../models/v1_instancetype_configuration.py | 125 ++++++++++++++++++ kubevirt/models/v1_kube_virt_configuration.py | 30 ++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_instancetype_configuration.py | 44 ++++++ 14 files changed, 221 insertions(+), 7 deletions(-) create mode 100644 docs/V1InstancetypeConfiguration.md create mode 100644 kubevirt/models/v1_instancetype_configuration.py create mode 100644 test/test_v1_instancetype_configuration.py diff --git a/README.md b/README.md index 89cc503a..29b5bf40 100644 --- a/README.md +++ b/README.md @@ -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.4.0-alpha.1-11-g133430eab4 +- Package version: v1.4.0-alpha.1-85-g36fb6e0b58 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -473,6 +473,7 @@ Class | Method | HTTP request | Description - [V1I6300ESBWatchdog](docs/V1I6300ESBWatchdog.md) - [V1InitrdInfo](docs/V1InitrdInfo.md) - [V1Input](docs/V1Input.md) + - [V1InstancetypeConfiguration](docs/V1InstancetypeConfiguration.md) - [V1InstancetypeMatcher](docs/V1InstancetypeMatcher.md) - [V1Interface](docs/V1Interface.md) - [V1InterfaceBindingMigration](docs/V1InterfaceBindingMigration.md) diff --git a/docs/V1InstancetypeConfiguration.md b/docs/V1InstancetypeConfiguration.md new file mode 100644 index 00000000..d2491d09 --- /dev/null +++ b/docs/V1InstancetypeConfiguration.md @@ -0,0 +1,10 @@ +# V1InstancetypeConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reference_policy** | **str** | ReferencePolicy defines how an instance type or preference should be referenced by the VM after submission, supported values are: reference (default) - Where a copy of the original object is stashed in a ControllerRevision and referenced by the VM. expand - Where the instance type or preference are expanded into the VM if no revisionNames have been populated. expandAll - Where the instance type or preference are expanded into the VM regardless of revisionNames previously being populated. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index 3f02aeec..290bd326 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **eviction_strategy** | **str** | EvictionStrategy defines at the cluster level if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain. If the VirtualMachineInstance specific field is set it overrides the cluster level one. | [optional] **handler_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] **image_pull_policy** | **str** | Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present | [optional] +**instancetype** | [**V1InstancetypeConfiguration**](V1InstancetypeConfiguration.md) | Instancetype configuration | [optional] **ksm_configuration** | [**V1KSMConfiguration**](V1KSMConfiguration.md) | KSMConfiguration holds the information regarding the enabling the KSM in the nodes (if available). | [optional] **live_update_configuration** | [**V1LiveUpdateConfiguration**](V1LiveUpdateConfiguration.md) | LiveUpdateConfiguration holds defaults for live update features | [optional] **machine_type** | **str** | Deprecated. Use architectureConfiguration instead. | [optional] diff --git a/git_push.sh b/git_push.sh index 19cfee15..731ffa7a 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.4.0-alpha.1-11-g133430eab4" + release_note="Auto-generated client v1.4.0-alpha.1-85-g36fb6e0b58" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 2b178c79..7a24bcce 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -431,6 +431,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_input.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_input.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Input.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_instancetype_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_instancetype_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InstancetypeConfiguration.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_instancetype_matcher.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_instancetype_matcher.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InstancetypeMatcher.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index f0eb28be..096d9f67 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -150,6 +150,7 @@ from .models.v1_i6300_esb_watchdog import V1I6300ESBWatchdog from .models.v1_initrd_info import V1InitrdInfo from .models.v1_input import V1Input +from .models.v1_instancetype_configuration import V1InstancetypeConfiguration from .models.v1_instancetype_matcher import V1InstancetypeMatcher from .models.v1_interface import V1Interface from .models.v1_interface_binding_migration import V1InterfaceBindingMigration diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 7ac9a970..3e308774 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.4.0-alpha.1-11-g133430eab4/python' + self.user_agent = 'Swagger-Codegen/v1.4.0-alpha.1-85-g36fb6e0b58/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 1d004fb1..2290b983 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.4.0-alpha.1-11-g133430eab4".\ + "SDK Package Version: v1.4.0-alpha.1-85-g36fb6e0b58".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 26acbc45..08060fcf 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -150,6 +150,7 @@ from .v1_i6300_esb_watchdog import V1I6300ESBWatchdog from .v1_initrd_info import V1InitrdInfo from .v1_input import V1Input +from .v1_instancetype_configuration import V1InstancetypeConfiguration from .v1_instancetype_matcher import V1InstancetypeMatcher from .v1_interface import V1Interface from .v1_interface_binding_migration import V1InterfaceBindingMigration diff --git a/kubevirt/models/v1_instancetype_configuration.py b/kubevirt/models/v1_instancetype_configuration.py new file mode 100644 index 00000000..9566a567 --- /dev/null +++ b/kubevirt/models/v1_instancetype_configuration.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1InstancetypeConfiguration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'reference_policy': 'str' + } + + attribute_map = { + 'reference_policy': 'referencePolicy' + } + + def __init__(self, reference_policy=None): + """ + V1InstancetypeConfiguration - a model defined in Swagger + """ + + self._reference_policy = None + + if reference_policy is not None: + self.reference_policy = reference_policy + + @property + def reference_policy(self): + """ + Gets the reference_policy of this V1InstancetypeConfiguration. + ReferencePolicy defines how an instance type or preference should be referenced by the VM after submission, supported values are: reference (default) - Where a copy of the original object is stashed in a ControllerRevision and referenced by the VM. expand - Where the instance type or preference are expanded into the VM if no revisionNames have been populated. expandAll - Where the instance type or preference are expanded into the VM regardless of revisionNames previously being populated. + + :return: The reference_policy of this V1InstancetypeConfiguration. + :rtype: str + """ + return self._reference_policy + + @reference_policy.setter + def reference_policy(self, reference_policy): + """ + Sets the reference_policy of this V1InstancetypeConfiguration. + ReferencePolicy defines how an instance type or preference should be referenced by the VM after submission, supported values are: reference (default) - Where a copy of the original object is stashed in a ControllerRevision and referenced by the VM. expand - Where the instance type or preference are expanded into the VM if no revisionNames have been populated. expandAll - Where the instance type or preference are expanded into the VM regardless of revisionNames previously being populated. + + :param reference_policy: The reference_policy of this V1InstancetypeConfiguration. + :type: str + """ + + self._reference_policy = reference_policy + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1InstancetypeConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index e23e257f..8fc09cab 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -45,6 +45,7 @@ class V1KubeVirtConfiguration(object): 'eviction_strategy': 'str', 'handler_configuration': 'V1ReloadableComponentConfiguration', 'image_pull_policy': 'str', + 'instancetype': 'V1InstancetypeConfiguration', 'ksm_configuration': 'V1KSMConfiguration', 'live_update_configuration': 'V1LiveUpdateConfiguration', 'machine_type': 'str', @@ -84,6 +85,7 @@ class V1KubeVirtConfiguration(object): 'eviction_strategy': 'evictionStrategy', 'handler_configuration': 'handlerConfiguration', 'image_pull_policy': 'imagePullPolicy', + 'instancetype': 'instancetype', 'ksm_configuration': 'ksmConfiguration', 'live_update_configuration': 'liveUpdateConfiguration', 'machine_type': 'machineType', @@ -108,7 +110,7 @@ class V1KubeVirtConfiguration(object): 'webhook_configuration': 'webhookConfiguration' } - def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, auto_cpu_limit_namespace_label_selector=None, common_instancetypes_deployment=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, ksm_configuration=None, live_update_configuration=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, virtual_machine_options=None, vm_rollout_strategy=None, vm_state_storage_class=None, webhook_configuration=None): + def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, auto_cpu_limit_namespace_label_selector=None, common_instancetypes_deployment=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, instancetype=None, ksm_configuration=None, live_update_configuration=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, virtual_machine_options=None, vm_rollout_strategy=None, vm_state_storage_class=None, webhook_configuration=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ @@ -127,6 +129,7 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self._eviction_strategy = None self._handler_configuration = None self._image_pull_policy = None + self._instancetype = None self._ksm_configuration = None self._live_update_configuration = None self._machine_type = None @@ -178,6 +181,8 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self.handler_configuration = handler_configuration if image_pull_policy is not None: self.image_pull_policy = image_pull_policy + if instancetype is not None: + self.instancetype = instancetype if ksm_configuration is not None: self.ksm_configuration = ksm_configuration if live_update_configuration is not None: @@ -535,6 +540,29 @@ def image_pull_policy(self, image_pull_policy): self._image_pull_policy = image_pull_policy + @property + def instancetype(self): + """ + Gets the instancetype of this V1KubeVirtConfiguration. + Instancetype configuration + + :return: The instancetype of this V1KubeVirtConfiguration. + :rtype: V1InstancetypeConfiguration + """ + return self._instancetype + + @instancetype.setter + def instancetype(self, instancetype): + """ + Sets the instancetype of this V1KubeVirtConfiguration. + Instancetype configuration + + :param instancetype: The instancetype of this V1KubeVirtConfiguration. + :type: V1InstancetypeConfiguration + """ + + self._instancetype = instancetype + @property def ksm_configuration(self): """ diff --git a/setup.py b/setup.py index a6be841d..971f00b3 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.4.0-alpha.1-11-g133430eab4" +VERSION = "v1.4.0-alpha.1-85-g36fb6e0b58" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b52fae94..64d3c674 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.4.0-alpha.1-11-g133430eab4" +"packageVersion": "v1.4.0-alpha.1-85-g36fb6e0b58" } diff --git a/test/test_v1_instancetype_configuration.py b/test/test_v1_instancetype_configuration.py new file mode 100644 index 00000000..b143af7f --- /dev/null +++ b/test/test_v1_instancetype_configuration.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_instancetype_configuration import V1InstancetypeConfiguration + + +class TestV1InstancetypeConfiguration(unittest.TestCase): + """ V1InstancetypeConfiguration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1InstancetypeConfiguration(self): + """ + Test V1InstancetypeConfiguration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_instancetype_configuration.V1InstancetypeConfiguration() + pass + + +if __name__ == '__main__': + unittest.main() From aa02601472de418bb3bfb8393970af6e8e029780 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Tue, 22 Oct 2024 20:36:29 +0000 Subject: [PATCH 426/521] Client Python update by KubeVirt Prow build 1848811817111916544 --- README.md | 2 +- .../V1VirtualMachineInstanceMigrationState.md | 2 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...irtual_machine_instance_migration_state.py | 58 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 65 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 29b5bf40..913d2a22 100644 --- a/README.md +++ b/README.md @@ -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.4.0-alpha.1-85-g36fb6e0b58 +- Package version: v1.4.0-alpha.1-103-gb532b8fb9c - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceMigrationState.md b/docs/V1VirtualMachineInstanceMigrationState.md index 8a5ffd9c..837ce216 100644 --- a/docs/V1VirtualMachineInstanceMigrationState.md +++ b/docs/V1VirtualMachineInstanceMigrationState.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **migration_uid** | **str** | The VirtualMachineInstanceMigration object associated with this migration | [optional] **mode** | **str** | Lets us know if the vmi is currently running pre or post copy migration | [optional] **source_node** | **str** | The source node that the VMI originated on | [optional] +**source_persistent_state_pvc_name** | **str** | If the VMI being migrated uses persistent features (backend-storage), its source PVC name is saved here | [optional] **source_pod** | **str** | | [optional] **start_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | The time the migration action began | [optional] **target_attachment_pod_uid** | **str** | The UID of the target attachment pod for hotplug volumes | [optional] @@ -24,6 +25,7 @@ Name | Type | Description | Notes **target_node_domain_detected** | **bool** | The Target Node has seen the Domain Start Event | [optional] **target_node_domain_ready_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | The timestamp at which the target node detects the domain is active | [optional] **target_node_topology** | **str** | If the VMI requires dedicated CPUs, this field will hold the numa topology on the target node | [optional] +**target_persistent_state_pvc_name** | **str** | If the VMI being migrated uses persistent features (backend-storage), its target PVC name is saved here | [optional] **target_pod** | **str** | The target pod that the VMI is moving to | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 731ffa7a..16699052 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.4.0-alpha.1-85-g36fb6e0b58" + release_note="Auto-generated client v1.4.0-alpha.1-103-gb532b8fb9c" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 3e308774..0975f6a6 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.4.0-alpha.1-85-g36fb6e0b58/python' + self.user_agent = 'Swagger-Codegen/v1.4.0-alpha.1-103-gb532b8fb9c/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 2290b983..79bf5b21 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.4.0-alpha.1-85-g36fb6e0b58".\ + "SDK Package Version: v1.4.0-alpha.1-103-gb532b8fb9c".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_state.py b/kubevirt/models/v1_virtual_machine_instance_migration_state.py index 85e57d14..70282077 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_state.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_state.py @@ -42,6 +42,7 @@ class V1VirtualMachineInstanceMigrationState(object): 'migration_uid': 'str', 'mode': 'str', 'source_node': 'str', + 'source_persistent_state_pvc_name': 'str', 'source_pod': 'str', 'start_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', 'target_attachment_pod_uid': 'str', @@ -52,6 +53,7 @@ class V1VirtualMachineInstanceMigrationState(object): 'target_node_domain_detected': 'bool', 'target_node_domain_ready_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', 'target_node_topology': 'str', + 'target_persistent_state_pvc_name': 'str', 'target_pod': 'str' } @@ -67,6 +69,7 @@ class V1VirtualMachineInstanceMigrationState(object): 'migration_uid': 'migrationUid', 'mode': 'mode', 'source_node': 'sourceNode', + 'source_persistent_state_pvc_name': 'sourcePersistentStatePVCName', 'source_pod': 'sourcePod', 'start_timestamp': 'startTimestamp', 'target_attachment_pod_uid': 'targetAttachmentPodUID', @@ -77,10 +80,11 @@ class V1VirtualMachineInstanceMigrationState(object): 'target_node_domain_detected': 'targetNodeDomainDetected', 'target_node_domain_ready_timestamp': 'targetNodeDomainReadyTimestamp', 'target_node_topology': 'targetNodeTopology', + 'target_persistent_state_pvc_name': 'targetPersistentStatePVCName', 'target_pod': 'targetPod' } - def __init__(self, abort_requested=None, abort_status=None, completed=None, end_timestamp=None, failed=None, failure_reason=None, migration_configuration=None, migration_policy_name=None, migration_uid=None, mode=None, source_node=None, source_pod=None, start_timestamp=None, target_attachment_pod_uid=None, target_cpu_set=None, target_direct_migration_node_ports=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_node_domain_ready_timestamp=None, target_node_topology=None, target_pod=None): + def __init__(self, abort_requested=None, abort_status=None, completed=None, end_timestamp=None, failed=None, failure_reason=None, migration_configuration=None, migration_policy_name=None, migration_uid=None, mode=None, source_node=None, source_persistent_state_pvc_name=None, source_pod=None, start_timestamp=None, target_attachment_pod_uid=None, target_cpu_set=None, target_direct_migration_node_ports=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_node_domain_ready_timestamp=None, target_node_topology=None, target_persistent_state_pvc_name=None, target_pod=None): """ V1VirtualMachineInstanceMigrationState - a model defined in Swagger """ @@ -96,6 +100,7 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self._migration_uid = None self._mode = None self._source_node = None + self._source_persistent_state_pvc_name = None self._source_pod = None self._start_timestamp = None self._target_attachment_pod_uid = None @@ -106,6 +111,7 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self._target_node_domain_detected = None self._target_node_domain_ready_timestamp = None self._target_node_topology = None + self._target_persistent_state_pvc_name = None self._target_pod = None if abort_requested is not None: @@ -130,6 +136,8 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self.mode = mode if source_node is not None: self.source_node = source_node + if source_persistent_state_pvc_name is not None: + self.source_persistent_state_pvc_name = source_persistent_state_pvc_name if source_pod is not None: self.source_pod = source_pod if start_timestamp is not None: @@ -150,6 +158,8 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self.target_node_domain_ready_timestamp = target_node_domain_ready_timestamp if target_node_topology is not None: self.target_node_topology = target_node_topology + if target_persistent_state_pvc_name is not None: + self.target_persistent_state_pvc_name = target_persistent_state_pvc_name if target_pod is not None: self.target_pod = target_pod @@ -406,6 +416,29 @@ def source_node(self, source_node): self._source_node = source_node + @property + def source_persistent_state_pvc_name(self): + """ + Gets the source_persistent_state_pvc_name of this V1VirtualMachineInstanceMigrationState. + If the VMI being migrated uses persistent features (backend-storage), its source PVC name is saved here + + :return: The source_persistent_state_pvc_name of this V1VirtualMachineInstanceMigrationState. + :rtype: str + """ + return self._source_persistent_state_pvc_name + + @source_persistent_state_pvc_name.setter + def source_persistent_state_pvc_name(self, source_persistent_state_pvc_name): + """ + Sets the source_persistent_state_pvc_name of this V1VirtualMachineInstanceMigrationState. + If the VMI being migrated uses persistent features (backend-storage), its source PVC name is saved here + + :param source_persistent_state_pvc_name: The source_persistent_state_pvc_name of this V1VirtualMachineInstanceMigrationState. + :type: str + """ + + self._source_persistent_state_pvc_name = source_persistent_state_pvc_name + @property def source_pod(self): """ @@ -634,6 +667,29 @@ def target_node_topology(self, target_node_topology): self._target_node_topology = target_node_topology + @property + def target_persistent_state_pvc_name(self): + """ + Gets the target_persistent_state_pvc_name of this V1VirtualMachineInstanceMigrationState. + If the VMI being migrated uses persistent features (backend-storage), its target PVC name is saved here + + :return: The target_persistent_state_pvc_name of this V1VirtualMachineInstanceMigrationState. + :rtype: str + """ + return self._target_persistent_state_pvc_name + + @target_persistent_state_pvc_name.setter + def target_persistent_state_pvc_name(self, target_persistent_state_pvc_name): + """ + Sets the target_persistent_state_pvc_name of this V1VirtualMachineInstanceMigrationState. + If the VMI being migrated uses persistent features (backend-storage), its target PVC name is saved here + + :param target_persistent_state_pvc_name: The target_persistent_state_pvc_name of this V1VirtualMachineInstanceMigrationState. + :type: str + """ + + self._target_persistent_state_pvc_name = target_persistent_state_pvc_name + @property def target_pod(self): """ diff --git a/setup.py b/setup.py index 971f00b3..903f65a4 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.4.0-alpha.1-85-g36fb6e0b58" +VERSION = "v1.4.0-alpha.1-103-gb532b8fb9c" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 64d3c674..a9d045cf 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.4.0-alpha.1-85-g36fb6e0b58" +"packageVersion": "v1.4.0-alpha.1-103-gb532b8fb9c" } From a4e3d01dff7f8b3f810446647b65d6c1b49f1077 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 14 Nov 2024 02:24:17 +0000 Subject: [PATCH 427/521] Client Python update by KubeVirt Prow build 1856874948329476096 --- README.md | 2 +- docs/V1beta1FirmwarePreferences.md | 4 ++-- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1beta1_firmware_preferences.py | 8 ++++---- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 913d2a22..f57d3d4c 100644 --- a/README.md +++ b/README.md @@ -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.4.0-alpha.1-103-gb532b8fb9c +- Package version: v1.4.0-rc.0-171-g55bde60ce1 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1FirmwarePreferences.md b/docs/V1beta1FirmwarePreferences.md index c0e92f6c..f867904b 100644 --- a/docs/V1beta1FirmwarePreferences.md +++ b/docs/V1beta1FirmwarePreferences.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **preferred_efi** | [**V1EFI**](V1EFI.md) | PreferredEfi optionally enables EFI | [optional] **preferred_use_bios** | **bool** | PreferredUseBios optionally enables BIOS | [optional] **preferred_use_bios_serial** | **bool** | PreferredUseBiosSerial optionally transmitts BIOS output over the serial. Requires PreferredUseBios to be enabled. | [optional] -**preferred_use_efi** | **bool** | PreferredUseEfi optionally enables EFI | [optional] -**preferred_use_secure_boot** | **bool** | PreferredUseSecureBoot optionally enables SecureBoot and the OVMF roms will be swapped for SecureBoot-enabled ones. Requires PreferredUseEfi and PreferredSmm to be enabled. | [optional] +**preferred_use_efi** | **bool** | PreferredUseEfi optionally enables EFI Deprecated: Will be removed with v1beta2 or v1 | [optional] +**preferred_use_secure_boot** | **bool** | PreferredUseSecureBoot optionally enables SecureBoot and the OVMF roms will be swapped for SecureBoot-enabled ones. Requires PreferredUseEfi and PreferredSmm to be enabled. Deprecated: Will be removed with v1beta2 or v1 | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 16699052..e1134f0d 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.4.0-alpha.1-103-gb532b8fb9c" + release_note="Auto-generated client v1.4.0-rc.0-171-g55bde60ce1" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 0975f6a6..5d2b620e 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.4.0-alpha.1-103-gb532b8fb9c/python' + self.user_agent = 'Swagger-Codegen/v1.4.0-rc.0-171-g55bde60ce1/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 79bf5b21..1d606317 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.4.0-alpha.1-103-gb532b8fb9c".\ + "SDK Package Version: v1.4.0-rc.0-171-g55bde60ce1".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_firmware_preferences.py b/kubevirt/models/v1beta1_firmware_preferences.py index ca956ad3..4c1826fa 100644 --- a/kubevirt/models/v1beta1_firmware_preferences.py +++ b/kubevirt/models/v1beta1_firmware_preferences.py @@ -141,7 +141,7 @@ def preferred_use_bios_serial(self, preferred_use_bios_serial): def preferred_use_efi(self): """ Gets the preferred_use_efi of this V1beta1FirmwarePreferences. - PreferredUseEfi optionally enables EFI + PreferredUseEfi optionally enables EFI Deprecated: Will be removed with v1beta2 or v1 :return: The preferred_use_efi of this V1beta1FirmwarePreferences. :rtype: bool @@ -152,7 +152,7 @@ def preferred_use_efi(self): def preferred_use_efi(self, preferred_use_efi): """ Sets the preferred_use_efi of this V1beta1FirmwarePreferences. - PreferredUseEfi optionally enables EFI + PreferredUseEfi optionally enables EFI Deprecated: Will be removed with v1beta2 or v1 :param preferred_use_efi: The preferred_use_efi of this V1beta1FirmwarePreferences. :type: bool @@ -164,7 +164,7 @@ def preferred_use_efi(self, preferred_use_efi): def preferred_use_secure_boot(self): """ Gets the preferred_use_secure_boot of this V1beta1FirmwarePreferences. - PreferredUseSecureBoot optionally enables SecureBoot and the OVMF roms will be swapped for SecureBoot-enabled ones. Requires PreferredUseEfi and PreferredSmm to be enabled. + PreferredUseSecureBoot optionally enables SecureBoot and the OVMF roms will be swapped for SecureBoot-enabled ones. Requires PreferredUseEfi and PreferredSmm to be enabled. Deprecated: Will be removed with v1beta2 or v1 :return: The preferred_use_secure_boot of this V1beta1FirmwarePreferences. :rtype: bool @@ -175,7 +175,7 @@ def preferred_use_secure_boot(self): def preferred_use_secure_boot(self, preferred_use_secure_boot): """ Sets the preferred_use_secure_boot of this V1beta1FirmwarePreferences. - PreferredUseSecureBoot optionally enables SecureBoot and the OVMF roms will be swapped for SecureBoot-enabled ones. Requires PreferredUseEfi and PreferredSmm to be enabled. + PreferredUseSecureBoot optionally enables SecureBoot and the OVMF roms will be swapped for SecureBoot-enabled ones. Requires PreferredUseEfi and PreferredSmm to be enabled. Deprecated: Will be removed with v1beta2 or v1 :param preferred_use_secure_boot: The preferred_use_secure_boot of this V1beta1FirmwarePreferences. :type: bool diff --git a/setup.py b/setup.py index 903f65a4..30183576 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.4.0-alpha.1-103-gb532b8fb9c" +VERSION = "v1.4.0-rc.0-171-g55bde60ce1" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index a9d045cf..cccc3f79 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.4.0-alpha.1-103-gb532b8fb9c" +"packageVersion": "v1.4.0-rc.0-171-g55bde60ce1" } From d82ec98743206422a0b93c80e6f28e11ecb7ce17 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Tue, 19 Nov 2024 22:52:58 +0000 Subject: [PATCH 428/521] Client Python update by KubeVirt Prow build 1858995003628457984 --- README.md | 2 +- docs/V1beta1VirtualMachineRestoreSpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1beta1_virtual_machine_restore_spec.py | 28 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 34 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f57d3d4c..8836a3de 100644 --- a/README.md +++ b/README.md @@ -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.4.0-rc.0-171-g55bde60ce1 +- Package version: v1.4.0-rc.0-278-g9f51c4c8d0 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1VirtualMachineRestoreSpec.md b/docs/V1beta1VirtualMachineRestoreSpec.md index 4c9acbc4..551e9633 100644 --- a/docs/V1beta1VirtualMachineRestoreSpec.md +++ b/docs/V1beta1VirtualMachineRestoreSpec.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **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] **target** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | initially only VirtualMachine type supported | +**target_readiness_policy** | **str** | | [optional] **virtual_machine_snapshot_name** | **str** | | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index e1134f0d..b8f34df2 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.4.0-rc.0-171-g55bde60ce1" + release_note="Auto-generated client v1.4.0-rc.0-278-g9f51c4c8d0" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 5d2b620e..fc055899 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.4.0-rc.0-171-g55bde60ce1/python' + self.user_agent = 'Swagger-Codegen/v1.4.0-rc.0-278-g9f51c4c8d0/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 1d606317..c1ee0e0a 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.4.0-rc.0-171-g55bde60ce1".\ + "SDK Package Version: v1.4.0-rc.0-278-g9f51c4c8d0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_virtual_machine_restore_spec.py b/kubevirt/models/v1beta1_virtual_machine_restore_spec.py index acd397cf..363cf27b 100644 --- a/kubevirt/models/v1beta1_virtual_machine_restore_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_restore_spec.py @@ -33,27 +33,32 @@ class V1beta1VirtualMachineRestoreSpec(object): swagger_types = { 'patches': 'list[str]', 'target': 'K8sIoApiCoreV1TypedLocalObjectReference', + 'target_readiness_policy': 'str', 'virtual_machine_snapshot_name': 'str' } attribute_map = { 'patches': 'patches', 'target': 'target', + 'target_readiness_policy': 'targetReadinessPolicy', 'virtual_machine_snapshot_name': 'virtualMachineSnapshotName' } - def __init__(self, patches=None, target=None, virtual_machine_snapshot_name=''): + def __init__(self, patches=None, target=None, target_readiness_policy=None, virtual_machine_snapshot_name=''): """ V1beta1VirtualMachineRestoreSpec - a model defined in Swagger """ self._patches = None self._target = None + self._target_readiness_policy = None self._virtual_machine_snapshot_name = None if patches is not None: self.patches = patches self.target = target + if target_readiness_policy is not None: + self.target_readiness_policy = target_readiness_policy self.virtual_machine_snapshot_name = virtual_machine_snapshot_name @property @@ -104,6 +109,27 @@ def target(self, target): self._target = target + @property + def target_readiness_policy(self): + """ + Gets the target_readiness_policy of this V1beta1VirtualMachineRestoreSpec. + + :return: The target_readiness_policy of this V1beta1VirtualMachineRestoreSpec. + :rtype: str + """ + return self._target_readiness_policy + + @target_readiness_policy.setter + def target_readiness_policy(self, target_readiness_policy): + """ + Sets the target_readiness_policy of this V1beta1VirtualMachineRestoreSpec. + + :param target_readiness_policy: The target_readiness_policy of this V1beta1VirtualMachineRestoreSpec. + :type: str + """ + + self._target_readiness_policy = target_readiness_policy + @property def virtual_machine_snapshot_name(self): """ diff --git a/setup.py b/setup.py index 30183576..646d13a0 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.4.0-rc.0-171-g55bde60ce1" +VERSION = "v1.4.0-rc.0-278-g9f51c4c8d0" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index cccc3f79..502d3892 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.4.0-rc.0-171-g55bde60ce1" +"packageVersion": "v1.4.0-rc.0-278-g9f51c4c8d0" } From 2b29394af0e68f28d3865555e317be6efbabffc2 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 4 Dec 2024 11:10:03 +0000 Subject: [PATCH 429/521] Client Python update by KubeVirt Prow build 1864252710044307456 --- README.md | 2 +- docs/V1MigrationConfiguration.md | 3 +- docs/V1alpha1MigrationPolicySpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_migration_configuration.py | 34 +++++++++++++++++-- .../models/v1alpha1_migration_policy_spec.py | 28 ++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 67 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 8836a3de..72705099 100644 --- a/README.md +++ b/README.md @@ -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.4.0-rc.0-278-g9f51c4c8d0 +- Package version: v1.4.0-rc.0-508-gf6997e0f0c - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1MigrationConfiguration.md b/docs/V1MigrationConfiguration.md index 003c3381..ce40a95e 100644 --- a/docs/V1MigrationConfiguration.md +++ b/docs/V1MigrationConfiguration.md @@ -5,8 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **allow_auto_converge** | **bool** | AllowAutoConverge allows the platform to compromise performance/availability of VMIs to guarantee successful VMI live migrations. Defaults to false | [optional] **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] +**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] **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] -**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] +**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] **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] **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] **network** | **str** | Network is the name of the CNI network to use for live migrations. By default, migrations go through the pod network. | [optional] diff --git a/docs/V1alpha1MigrationPolicySpec.md b/docs/V1alpha1MigrationPolicySpec.md index 48af55b0..dabd3aeb 100644 --- a/docs/V1alpha1MigrationPolicySpec.md +++ b/docs/V1alpha1MigrationPolicySpec.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **allow_auto_converge** | **bool** | | [optional] **allow_post_copy** | **bool** | | [optional] +**allow_workload_disruption** | **bool** | | [optional] **bandwidth_per_migration** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | | [optional] **completion_timeout_per_gi_b** | **int** | | [optional] **selectors** | [**V1alpha1Selectors**](V1alpha1Selectors.md) | | diff --git a/git_push.sh b/git_push.sh index b8f34df2..eafa9219 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.4.0-rc.0-278-g9f51c4c8d0" + release_note="Auto-generated client v1.4.0-rc.0-508-gf6997e0f0c" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index fc055899..5b143bcc 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.4.0-rc.0-278-g9f51c4c8d0/python' + self.user_agent = 'Swagger-Codegen/v1.4.0-rc.0-508-gf6997e0f0c/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c1ee0e0a..64ecf922 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.4.0-rc.0-278-g9f51c4c8d0".\ + "SDK Package Version: v1.4.0-rc.0-508-gf6997e0f0c".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_migration_configuration.py b/kubevirt/models/v1_migration_configuration.py index ec5e2650..79dc80e8 100644 --- a/kubevirt/models/v1_migration_configuration.py +++ b/kubevirt/models/v1_migration_configuration.py @@ -33,6 +33,7 @@ class V1MigrationConfiguration(object): swagger_types = { 'allow_auto_converge': 'bool', 'allow_post_copy': 'bool', + 'allow_workload_disruption': 'bool', 'bandwidth_per_migration': 'K8sIoApimachineryPkgApiResourceQuantity', 'completion_timeout_per_gi_b': 'int', 'disable_tls': 'bool', @@ -48,6 +49,7 @@ class V1MigrationConfiguration(object): attribute_map = { 'allow_auto_converge': 'allowAutoConverge', 'allow_post_copy': 'allowPostCopy', + 'allow_workload_disruption': 'allowWorkloadDisruption', 'bandwidth_per_migration': 'bandwidthPerMigration', 'completion_timeout_per_gi_b': 'completionTimeoutPerGiB', 'disable_tls': 'disableTLS', @@ -60,13 +62,14 @@ class V1MigrationConfiguration(object): 'unsafe_migration_override': 'unsafeMigrationOverride' } - 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): + 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): """ V1MigrationConfiguration - a model defined in Swagger """ self._allow_auto_converge = None self._allow_post_copy = None + self._allow_workload_disruption = None self._bandwidth_per_migration = None self._completion_timeout_per_gi_b = None self._disable_tls = None @@ -82,6 +85,8 @@ def __init__(self, allow_auto_converge=None, allow_post_copy=None, bandwidth_per self.allow_auto_converge = allow_auto_converge if allow_post_copy is not None: self.allow_post_copy = allow_post_copy + if allow_workload_disruption is not None: + self.allow_workload_disruption = allow_workload_disruption if bandwidth_per_migration is not None: self.bandwidth_per_migration = bandwidth_per_migration if completion_timeout_per_gi_b is not None: @@ -149,6 +154,29 @@ def allow_post_copy(self, allow_post_copy): self._allow_post_copy = allow_post_copy + @property + def allow_workload_disruption(self): + """ + Gets the allow_workload_disruption of this V1MigrationConfiguration. + 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 + + :return: The allow_workload_disruption of this V1MigrationConfiguration. + :rtype: bool + """ + return self._allow_workload_disruption + + @allow_workload_disruption.setter + def allow_workload_disruption(self, allow_workload_disruption): + """ + Sets the allow_workload_disruption of this V1MigrationConfiguration. + 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 + + :param allow_workload_disruption: The allow_workload_disruption of this V1MigrationConfiguration. + :type: bool + """ + + self._allow_workload_disruption = allow_workload_disruption + @property def bandwidth_per_migration(self): """ @@ -176,7 +204,7 @@ def bandwidth_per_migration(self, bandwidth_per_migration): def completion_timeout_per_gi_b(self): """ Gets the completion_timeout_per_gi_b of this V1MigrationConfiguration. - 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 + 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 :return: The completion_timeout_per_gi_b of this V1MigrationConfiguration. :rtype: int @@ -187,7 +215,7 @@ def completion_timeout_per_gi_b(self): def completion_timeout_per_gi_b(self, completion_timeout_per_gi_b): """ Sets the completion_timeout_per_gi_b of this V1MigrationConfiguration. - 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 + 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 :param completion_timeout_per_gi_b: The completion_timeout_per_gi_b of this V1MigrationConfiguration. :type: int diff --git a/kubevirt/models/v1alpha1_migration_policy_spec.py b/kubevirt/models/v1alpha1_migration_policy_spec.py index 14abb887..d211be4c 100644 --- a/kubevirt/models/v1alpha1_migration_policy_spec.py +++ b/kubevirt/models/v1alpha1_migration_policy_spec.py @@ -33,6 +33,7 @@ class V1alpha1MigrationPolicySpec(object): swagger_types = { 'allow_auto_converge': 'bool', 'allow_post_copy': 'bool', + 'allow_workload_disruption': 'bool', 'bandwidth_per_migration': 'K8sIoApimachineryPkgApiResourceQuantity', 'completion_timeout_per_gi_b': 'int', 'selectors': 'V1alpha1Selectors' @@ -41,18 +42,20 @@ class V1alpha1MigrationPolicySpec(object): attribute_map = { 'allow_auto_converge': 'allowAutoConverge', 'allow_post_copy': 'allowPostCopy', + 'allow_workload_disruption': 'allowWorkloadDisruption', 'bandwidth_per_migration': 'bandwidthPerMigration', 'completion_timeout_per_gi_b': 'completionTimeoutPerGiB', 'selectors': 'selectors' } - def __init__(self, allow_auto_converge=None, allow_post_copy=None, bandwidth_per_migration=None, completion_timeout_per_gi_b=None, selectors=None): + 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): """ V1alpha1MigrationPolicySpec - a model defined in Swagger """ self._allow_auto_converge = None self._allow_post_copy = None + self._allow_workload_disruption = None self._bandwidth_per_migration = None self._completion_timeout_per_gi_b = None self._selectors = None @@ -61,6 +64,8 @@ def __init__(self, allow_auto_converge=None, allow_post_copy=None, bandwidth_per self.allow_auto_converge = allow_auto_converge if allow_post_copy is not None: self.allow_post_copy = allow_post_copy + if allow_workload_disruption is not None: + self.allow_workload_disruption = allow_workload_disruption if bandwidth_per_migration is not None: self.bandwidth_per_migration = bandwidth_per_migration if completion_timeout_per_gi_b is not None: @@ -109,6 +114,27 @@ def allow_post_copy(self, allow_post_copy): self._allow_post_copy = allow_post_copy + @property + def allow_workload_disruption(self): + """ + Gets the allow_workload_disruption of this V1alpha1MigrationPolicySpec. + + :return: The allow_workload_disruption of this V1alpha1MigrationPolicySpec. + :rtype: bool + """ + return self._allow_workload_disruption + + @allow_workload_disruption.setter + def allow_workload_disruption(self, allow_workload_disruption): + """ + Sets the allow_workload_disruption of this V1alpha1MigrationPolicySpec. + + :param allow_workload_disruption: The allow_workload_disruption of this V1alpha1MigrationPolicySpec. + :type: bool + """ + + self._allow_workload_disruption = allow_workload_disruption + @property def bandwidth_per_migration(self): """ diff --git a/setup.py b/setup.py index 646d13a0..c516ca67 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.4.0-rc.0-278-g9f51c4c8d0" +VERSION = "v1.4.0-rc.0-508-gf6997e0f0c" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 502d3892..da73cbf6 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.4.0-rc.0-278-g9f51c4c8d0" +"packageVersion": "v1.4.0-rc.0-508-gf6997e0f0c" } From 1ca9a95c071fd427b5427fb08f245927d7b81d87 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 12 Dec 2024 00:02:10 +0000 Subject: [PATCH 430/521] Client Python update by KubeVirt Prow build 1866983248886763520 --- README.md | 2 +- docs/V1KubeVirtConfiguration.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_kube_virt_configuration.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 72705099..a2524c62 100644 --- a/README.md +++ b/README.md @@ -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.4.0-rc.0-508-gf6997e0f0c +- Package version: v1.4.0-rc.0-591-g256d1f6cb0 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index 290bd326..f0dd2967 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -37,7 +37,7 @@ Name | Type | Description | Notes **tls_configuration** | [**V1TLSConfiguration**](V1TLSConfiguration.md) | | [optional] **virtual_machine_instances_per_node** | **int** | | [optional] **virtual_machine_options** | [**V1VirtualMachineOptions**](V1VirtualMachineOptions.md) | | [optional] -**vm_rollout_strategy** | **str** | VMRolloutStrategy defines how changes to a VM object propagate to its VMI | [optional] +**vm_rollout_strategy** | **str** | VMRolloutStrategy defines how live-updatable fields, like CPU sockets, memory, tolerations, and affinity, are propagated from a VM to its VMI. | [optional] **vm_state_storage_class** | **str** | VMStateStorageClass is the name of the storage class to use for the PVCs created to preserve VM state, like TPM. The storage class must support RWX in filesystem mode. | [optional] **webhook_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] diff --git a/git_push.sh b/git_push.sh index eafa9219..048166e2 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.4.0-rc.0-508-gf6997e0f0c" + release_note="Auto-generated client v1.4.0-rc.0-591-g256d1f6cb0" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 5b143bcc..7b689428 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.4.0-rc.0-508-gf6997e0f0c/python' + self.user_agent = 'Swagger-Codegen/v1.4.0-rc.0-591-g256d1f6cb0/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 64ecf922..c9eab20b 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.4.0-rc.0-508-gf6997e0f0c".\ + "SDK Package Version: v1.4.0-rc.0-591-g256d1f6cb0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index 8fc09cab..4c3c2cc3 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -978,7 +978,7 @@ def virtual_machine_options(self, virtual_machine_options): def vm_rollout_strategy(self): """ Gets the vm_rollout_strategy of this V1KubeVirtConfiguration. - VMRolloutStrategy defines how changes to a VM object propagate to its VMI + VMRolloutStrategy defines how live-updatable fields, like CPU sockets, memory, tolerations, and affinity, are propagated from a VM to its VMI. :return: The vm_rollout_strategy of this V1KubeVirtConfiguration. :rtype: str @@ -989,7 +989,7 @@ def vm_rollout_strategy(self): def vm_rollout_strategy(self, vm_rollout_strategy): """ Sets the vm_rollout_strategy of this V1KubeVirtConfiguration. - VMRolloutStrategy defines how changes to a VM object propagate to its VMI + VMRolloutStrategy defines how live-updatable fields, like CPU sockets, memory, tolerations, and affinity, are propagated from a VM to its VMI. :param vm_rollout_strategy: The vm_rollout_strategy of this V1KubeVirtConfiguration. :type: str diff --git a/setup.py b/setup.py index c516ca67..898bf4b8 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.4.0-rc.0-508-gf6997e0f0c" +VERSION = "v1.4.0-rc.0-591-g256d1f6cb0" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index da73cbf6..3510299d 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.4.0-rc.0-508-gf6997e0f0c" +"packageVersion": "v1.4.0-rc.0-591-g256d1f6cb0" } From ca2bbafdad70977df440a239473bc574a2845191 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 13 Dec 2024 00:33:11 +0000 Subject: [PATCH 431/521] Client Python update by KubeVirt Prow build 1867355765648396288 --- README.md | 2 +- docs/V1DataVolumeSource.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_data_volume_source.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index a2524c62..0a5e8458 100644 --- a/README.md +++ b/README.md @@ -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.4.0-rc.0-591-g256d1f6cb0 +- Package version: v1.4.0-rc.0-620-g9c9782a62b - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1DataVolumeSource.md b/docs/V1DataVolumeSource.md index cf12befc..41f3517c 100644 --- a/docs/V1DataVolumeSource.md +++ b/docs/V1DataVolumeSource.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hotpluggable** | **bool** | Hotpluggable indicates whether the volume can be hotplugged and hotunplugged. | [optional] -**name** | **str** | Name of both the DataVolume and the PVC in the same namespace. After PVC population the DataVolume is garbage collected by default. | [default to ''] +**name** | **str** | Name of both the DataVolume and the PVC in the same namespace. | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 048166e2..192d0960 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.4.0-rc.0-591-g256d1f6cb0" + release_note="Auto-generated client v1.4.0-rc.0-620-g9c9782a62b" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 7b689428..252e7f0a 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.4.0-rc.0-591-g256d1f6cb0/python' + self.user_agent = 'Swagger-Codegen/v1.4.0-rc.0-620-g9c9782a62b/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c9eab20b..e2690be3 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.4.0-rc.0-591-g256d1f6cb0".\ + "SDK Package Version: v1.4.0-rc.0-620-g9c9782a62b".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_data_volume_source.py b/kubevirt/models/v1_data_volume_source.py index b2a55d60..c1563cc4 100644 --- a/kubevirt/models/v1_data_volume_source.py +++ b/kubevirt/models/v1_data_volume_source.py @@ -79,7 +79,7 @@ def hotpluggable(self, hotpluggable): def name(self): """ Gets the name of this V1DataVolumeSource. - Name of both the DataVolume and the PVC in the same namespace. After PVC population the DataVolume is garbage collected by default. + Name of both the DataVolume and the PVC in the same namespace. :return: The name of this V1DataVolumeSource. :rtype: str @@ -90,7 +90,7 @@ def name(self): def name(self, name): """ Sets the name of this V1DataVolumeSource. - Name of both the DataVolume and the PVC in the same namespace. After PVC population the DataVolume is garbage collected by default. + Name of both the DataVolume and the PVC in the same namespace. :param name: The name of this V1DataVolumeSource. :type: str diff --git a/setup.py b/setup.py index 898bf4b8..c7c7bb24 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.4.0-rc.0-591-g256d1f6cb0" +VERSION = "v1.4.0-rc.0-620-g9c9782a62b" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 3510299d..1e656162 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.4.0-rc.0-591-g256d1f6cb0" +"packageVersion": "v1.4.0-rc.0-620-g9c9782a62b" } From f257a0929955c11f1f5c09ceff09b8c4bc5735c2 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 20 Dec 2024 15:38:32 +0000 Subject: [PATCH 432/521] Client Python update by KubeVirt Prow build 1870120529688530944 --- README.md | 4 +- ...K8sIoApiCoreV1PersistentVolumeClaimSpec.md | 2 +- docs/K8sIoApiCoreV1ResourceClaim.md | 11 -- docs/K8sIoApiCoreV1ResourceRequirements.md | 12 -- docs/V1PersistentVolumeClaimInfo.md | 2 +- docs/V1beta1StorageSpec.md | 4 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 - kubevirt/__init__.py | 2 - kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 - ...pi_core_v1_persistent_volume_claim_spec.py | 6 +- .../k8s_io_api_core_v1_resource_claim.py | 154 --------------- ...8s_io_api_core_v1_resource_requirements.py | 181 ------------------ .../models/v1_persistent_volume_claim_info.py | 6 +- kubevirt/models/v1beta1_storage_spec.py | 12 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- .../test_k8s_io_api_core_v1_resource_claim.py | 44 ----- ...8s_io_api_core_v1_resource_requirements.py | 44 ----- 21 files changed, 22 insertions(+), 480 deletions(-) delete mode 100644 docs/K8sIoApiCoreV1ResourceClaim.md delete mode 100644 docs/K8sIoApiCoreV1ResourceRequirements.md delete mode 100644 kubevirt/models/k8s_io_api_core_v1_resource_claim.py delete mode 100644 kubevirt/models/k8s_io_api_core_v1_resource_requirements.py delete mode 100644 test/test_k8s_io_api_core_v1_resource_claim.py delete mode 100644 test/test_k8s_io_api_core_v1_resource_requirements.py diff --git a/README.md b/README.md index 0a5e8458..f3243149 100644 --- a/README.md +++ b/README.md @@ -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.4.0-rc.0-620-g9c9782a62b +- Package version: v1.5.0-alpha.0-11-g735de2287d - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -356,9 +356,7 @@ Class | Method | HTTP request | Description - [K8sIoApiCoreV1PodDNSConfig](docs/K8sIoApiCoreV1PodDNSConfig.md) - [K8sIoApiCoreV1PodDNSConfigOption](docs/K8sIoApiCoreV1PodDNSConfigOption.md) - [K8sIoApiCoreV1PreferredSchedulingTerm](docs/K8sIoApiCoreV1PreferredSchedulingTerm.md) - - [K8sIoApiCoreV1ResourceClaim](docs/K8sIoApiCoreV1ResourceClaim.md) - [K8sIoApiCoreV1ResourceFieldSelector](docs/K8sIoApiCoreV1ResourceFieldSelector.md) - - [K8sIoApiCoreV1ResourceRequirements](docs/K8sIoApiCoreV1ResourceRequirements.md) - [K8sIoApiCoreV1TCPSocketAction](docs/K8sIoApiCoreV1TCPSocketAction.md) - [K8sIoApiCoreV1Toleration](docs/K8sIoApiCoreV1Toleration.md) - [K8sIoApiCoreV1TopologySpreadConstraint](docs/K8sIoApiCoreV1TopologySpreadConstraint.md) diff --git a/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md b/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md index 489f19cd..3cef4bd6 100644 --- a/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md +++ b/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | selector is a label query over volumes to consider for binding. | [optional] **storage_class_name** | **str** | storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] **volume_attributes_class_name** | **str** | volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default). | [optional] -**volume_mode** | **str** | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. | [optional] +**volume_mode** | **str** | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. - `\"FromStorageProfile\"` means the volume mode will be auto selected by CDI according to a matching StorageProfile | [optional] **volume_name** | **str** | volumeName is the binding reference to the PersistentVolume backing this claim. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApiCoreV1ResourceClaim.md b/docs/K8sIoApiCoreV1ResourceClaim.md deleted file mode 100644 index a16de913..00000000 --- a/docs/K8sIoApiCoreV1ResourceClaim.md +++ /dev/null @@ -1,11 +0,0 @@ -# K8sIoApiCoreV1ResourceClaim - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container. | [default to ''] -**request** | **str** | Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/K8sIoApiCoreV1ResourceRequirements.md b/docs/K8sIoApiCoreV1ResourceRequirements.md deleted file mode 100644 index 0cc634c9..00000000 --- a/docs/K8sIoApiCoreV1ResourceRequirements.md +++ /dev/null @@ -1,12 +0,0 @@ -# K8sIoApiCoreV1ResourceRequirements - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**claims** | [**list[K8sIoApiCoreV1ResourceClaim]**](K8sIoApiCoreV1ResourceClaim.md) | Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. | [optional] -**limits** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] -**requests** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1PersistentVolumeClaimInfo.md b/docs/V1PersistentVolumeClaimInfo.md index 377e9daa..b444c821 100644 --- a/docs/V1PersistentVolumeClaimInfo.md +++ b/docs/V1PersistentVolumeClaimInfo.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **filesystem_overhead** | **str** | Percentage of filesystem's size to be reserved when resizing the PVC | [optional] **preallocated** | **bool** | Preallocated indicates if the PVC's storage is preallocated or not | [optional] **requests** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Requests represents the resources requested by the corresponding PVC spec | [optional] -**volume_mode** | **str** | VolumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. | [optional] +**volume_mode** | **str** | VolumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. - `\"FromStorageProfile\"` means the volume mode will be auto selected by CDI according to a matching StorageProfile | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1beta1StorageSpec.md b/docs/V1beta1StorageSpec.md index d3785efa..bdd4d7a5 100644 --- a/docs/V1beta1StorageSpec.md +++ b/docs/V1beta1StorageSpec.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes **access_modes** | **list[str]** | AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] **data_source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) * An existing custom resource that implements data population (Alpha) In order to use custom resource types that implement data population, the AnyVolumeDataSource feature gate must be enabled. If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. | [optional] **data_source_ref** | [**K8sIoApiCoreV1TypedObjectReference**](K8sIoApiCoreV1TypedObjectReference.md) | Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. | [optional] -**resources** | [**K8sIoApiCoreV1ResourceRequirements**](K8sIoApiCoreV1ResourceRequirements.md) | Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources | [optional] +**resources** | [**K8sIoApiCoreV1VolumeResourceRequirements**](K8sIoApiCoreV1VolumeResourceRequirements.md) | Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources | [optional] **selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | A label query over volumes to consider for binding. | [optional] **storage_class_name** | **str** | Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] -**volume_mode** | **str** | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. | [optional] +**volume_mode** | **str** | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. - `\"FromStorageProfile\"` means the volume mode will be auto selected by CDI according to a matching StorageProfile | [optional] **volume_name** | **str** | VolumeName is the binding reference to the PersistentVolume backing this claim. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 192d0960..0f1ab13a 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.4.0-rc.0-620-g9c9782a62b" + release_note="Auto-generated client v1.5.0-alpha.0-11-g735de2287d" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 7a24bcce..3905a980 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -80,15 +80,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/k8s_io_api_core_v1_preferred_scheduling_term.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_preferred_scheduling_term.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1PreferredSchedulingTerm.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_resource_claim.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_resource_claim.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1ResourceClaim.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_resource_field_selector.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_resource_field_selector.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1ResourceFieldSelector.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_resource_requirements.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_resource_requirements.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1ResourceRequirements.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_tcp_socket_action.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_tcp_socket_action.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1TCPSocketAction.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 096d9f67..a6d48666 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -33,9 +33,7 @@ from .models.k8s_io_api_core_v1_pod_dns_config import K8sIoApiCoreV1PodDNSConfig from .models.k8s_io_api_core_v1_pod_dns_config_option import K8sIoApiCoreV1PodDNSConfigOption from .models.k8s_io_api_core_v1_preferred_scheduling_term import K8sIoApiCoreV1PreferredSchedulingTerm -from .models.k8s_io_api_core_v1_resource_claim import K8sIoApiCoreV1ResourceClaim from .models.k8s_io_api_core_v1_resource_field_selector import K8sIoApiCoreV1ResourceFieldSelector -from .models.k8s_io_api_core_v1_resource_requirements import K8sIoApiCoreV1ResourceRequirements from .models.k8s_io_api_core_v1_tcp_socket_action import K8sIoApiCoreV1TCPSocketAction from .models.k8s_io_api_core_v1_toleration import K8sIoApiCoreV1Toleration from .models.k8s_io_api_core_v1_topology_spread_constraint import K8sIoApiCoreV1TopologySpreadConstraint diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 252e7f0a..384ffaa4 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.4.0-rc.0-620-g9c9782a62b/python' + self.user_agent = 'Swagger-Codegen/v1.5.0-alpha.0-11-g735de2287d/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index e2690be3..59f45551 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.4.0-rc.0-620-g9c9782a62b".\ + "SDK Package Version: v1.5.0-alpha.0-11-g735de2287d".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 08060fcf..0eb85060 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -33,9 +33,7 @@ from .k8s_io_api_core_v1_pod_dns_config import K8sIoApiCoreV1PodDNSConfig from .k8s_io_api_core_v1_pod_dns_config_option import K8sIoApiCoreV1PodDNSConfigOption from .k8s_io_api_core_v1_preferred_scheduling_term import K8sIoApiCoreV1PreferredSchedulingTerm -from .k8s_io_api_core_v1_resource_claim import K8sIoApiCoreV1ResourceClaim from .k8s_io_api_core_v1_resource_field_selector import K8sIoApiCoreV1ResourceFieldSelector -from .k8s_io_api_core_v1_resource_requirements import K8sIoApiCoreV1ResourceRequirements from .k8s_io_api_core_v1_tcp_socket_action import K8sIoApiCoreV1TCPSocketAction from .k8s_io_api_core_v1_toleration import K8sIoApiCoreV1Toleration from .k8s_io_api_core_v1_topology_spread_constraint import K8sIoApiCoreV1TopologySpreadConstraint diff --git a/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py index daaf8d1e..64719f17 100644 --- a/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py +++ b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py @@ -260,7 +260,7 @@ def volume_attributes_class_name(self, volume_attributes_class_name): def volume_mode(self): """ Gets the volume_mode of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. + volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. - `\"FromStorageProfile\"` means the volume mode will be auto selected by CDI according to a matching StorageProfile :return: The volume_mode of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :rtype: str @@ -271,12 +271,12 @@ def volume_mode(self): def volume_mode(self, volume_mode): """ Sets the volume_mode of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. + volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. - `\"FromStorageProfile\"` means the volume mode will be auto selected by CDI according to a matching StorageProfile :param volume_mode: The volume_mode of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :type: str """ - allowed_values = ["Block", "Filesystem"] + allowed_values = ["Block", "Filesystem", "FromStorageProfile"] if volume_mode not in allowed_values: raise ValueError( "Invalid value for `volume_mode` ({0}), must be one of {1}" diff --git a/kubevirt/models/k8s_io_api_core_v1_resource_claim.py b/kubevirt/models/k8s_io_api_core_v1_resource_claim.py deleted file mode 100644 index 23d02036..00000000 --- a/kubevirt/models/k8s_io_api_core_v1_resource_claim.py +++ /dev/null @@ -1,154 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class K8sIoApiCoreV1ResourceClaim(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'str', - 'request': 'str' - } - - attribute_map = { - 'name': 'name', - 'request': 'request' - } - - def __init__(self, name='', request=None): - """ - K8sIoApiCoreV1ResourceClaim - a model defined in Swagger - """ - - self._name = None - self._request = None - - self.name = name - if request is not None: - self.request = request - - @property - def name(self): - """ - Gets the name of this K8sIoApiCoreV1ResourceClaim. - Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container. - - :return: The name of this K8sIoApiCoreV1ResourceClaim. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this K8sIoApiCoreV1ResourceClaim. - Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container. - - :param name: The name of this K8sIoApiCoreV1ResourceClaim. - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") - - self._name = name - - @property - def request(self): - """ - Gets the request of this K8sIoApiCoreV1ResourceClaim. - Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request. - - :return: The request of this K8sIoApiCoreV1ResourceClaim. - :rtype: str - """ - return self._request - - @request.setter - def request(self, request): - """ - Sets the request of this K8sIoApiCoreV1ResourceClaim. - Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request. - - :param request: The request of this K8sIoApiCoreV1ResourceClaim. - :type: str - """ - - self._request = request - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, K8sIoApiCoreV1ResourceClaim): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/k8s_io_api_core_v1_resource_requirements.py b/kubevirt/models/k8s_io_api_core_v1_resource_requirements.py deleted file mode 100644 index 7d76b271..00000000 --- a/kubevirt/models/k8s_io_api_core_v1_resource_requirements.py +++ /dev/null @@ -1,181 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class K8sIoApiCoreV1ResourceRequirements(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'claims': 'list[K8sIoApiCoreV1ResourceClaim]', - 'limits': 'dict(str, K8sIoApimachineryPkgApiResourceQuantity)', - 'requests': 'dict(str, K8sIoApimachineryPkgApiResourceQuantity)' - } - - attribute_map = { - 'claims': 'claims', - 'limits': 'limits', - 'requests': 'requests' - } - - def __init__(self, claims=None, limits=None, requests=None): - """ - K8sIoApiCoreV1ResourceRequirements - a model defined in Swagger - """ - - self._claims = None - self._limits = None - self._requests = None - - if claims is not None: - self.claims = claims - if limits is not None: - self.limits = limits - if requests is not None: - self.requests = requests - - @property - def claims(self): - """ - Gets the claims of this K8sIoApiCoreV1ResourceRequirements. - Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. - - :return: The claims of this K8sIoApiCoreV1ResourceRequirements. - :rtype: list[K8sIoApiCoreV1ResourceClaim] - """ - return self._claims - - @claims.setter - def claims(self, claims): - """ - Sets the claims of this K8sIoApiCoreV1ResourceRequirements. - Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. - - :param claims: The claims of this K8sIoApiCoreV1ResourceRequirements. - :type: list[K8sIoApiCoreV1ResourceClaim] - """ - - self._claims = claims - - @property - def limits(self): - """ - Gets the limits of this K8sIoApiCoreV1ResourceRequirements. - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - - :return: The limits of this K8sIoApiCoreV1ResourceRequirements. - :rtype: dict(str, K8sIoApimachineryPkgApiResourceQuantity) - """ - return self._limits - - @limits.setter - def limits(self, limits): - """ - Sets the limits of this K8sIoApiCoreV1ResourceRequirements. - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - - :param limits: The limits of this K8sIoApiCoreV1ResourceRequirements. - :type: dict(str, K8sIoApimachineryPkgApiResourceQuantity) - """ - - self._limits = limits - - @property - def requests(self): - """ - Gets the requests of this K8sIoApiCoreV1ResourceRequirements. - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - - :return: The requests of this K8sIoApiCoreV1ResourceRequirements. - :rtype: dict(str, K8sIoApimachineryPkgApiResourceQuantity) - """ - return self._requests - - @requests.setter - def requests(self, requests): - """ - Sets the requests of this K8sIoApiCoreV1ResourceRequirements. - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - - :param requests: The requests of this K8sIoApiCoreV1ResourceRequirements. - :type: dict(str, K8sIoApimachineryPkgApiResourceQuantity) - """ - - self._requests = requests - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, K8sIoApiCoreV1ResourceRequirements): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_persistent_volume_claim_info.py b/kubevirt/models/v1_persistent_volume_claim_info.py index 30b7ae07..2c61b8fe 100644 --- a/kubevirt/models/v1_persistent_volume_claim_info.py +++ b/kubevirt/models/v1_persistent_volume_claim_info.py @@ -227,7 +227,7 @@ def requests(self, requests): def volume_mode(self): """ Gets the volume_mode of this V1PersistentVolumeClaimInfo. - VolumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. + VolumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. - `\"FromStorageProfile\"` means the volume mode will be auto selected by CDI according to a matching StorageProfile :return: The volume_mode of this V1PersistentVolumeClaimInfo. :rtype: str @@ -238,12 +238,12 @@ def volume_mode(self): def volume_mode(self, volume_mode): """ Sets the volume_mode of this V1PersistentVolumeClaimInfo. - VolumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. + VolumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. - `\"FromStorageProfile\"` means the volume mode will be auto selected by CDI according to a matching StorageProfile :param volume_mode: The volume_mode of this V1PersistentVolumeClaimInfo. :type: str """ - allowed_values = ["Block", "Filesystem"] + allowed_values = ["Block", "Filesystem", "FromStorageProfile"] if volume_mode not in allowed_values: raise ValueError( "Invalid value for `volume_mode` ({0}), must be one of {1}" diff --git a/kubevirt/models/v1beta1_storage_spec.py b/kubevirt/models/v1beta1_storage_spec.py index 3f02de8c..2684e04e 100644 --- a/kubevirt/models/v1beta1_storage_spec.py +++ b/kubevirt/models/v1beta1_storage_spec.py @@ -34,7 +34,7 @@ class V1beta1StorageSpec(object): 'access_modes': 'list[str]', 'data_source': 'K8sIoApiCoreV1TypedLocalObjectReference', 'data_source_ref': 'K8sIoApiCoreV1TypedObjectReference', - 'resources': 'K8sIoApiCoreV1ResourceRequirements', + 'resources': 'K8sIoApiCoreV1VolumeResourceRequirements', 'selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', 'storage_class_name': 'str', 'volume_mode': 'str', @@ -166,7 +166,7 @@ def resources(self): Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources :return: The resources of this V1beta1StorageSpec. - :rtype: K8sIoApiCoreV1ResourceRequirements + :rtype: K8sIoApiCoreV1VolumeResourceRequirements """ return self._resources @@ -177,7 +177,7 @@ def resources(self, resources): Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources :param resources: The resources of this V1beta1StorageSpec. - :type: K8sIoApiCoreV1ResourceRequirements + :type: K8sIoApiCoreV1VolumeResourceRequirements """ self._resources = resources @@ -232,7 +232,7 @@ def storage_class_name(self, storage_class_name): def volume_mode(self): """ Gets the volume_mode of this V1beta1StorageSpec. - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. + volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. - `\"FromStorageProfile\"` means the volume mode will be auto selected by CDI according to a matching StorageProfile :return: The volume_mode of this V1beta1StorageSpec. :rtype: str @@ -243,12 +243,12 @@ def volume_mode(self): def volume_mode(self, volume_mode): """ Sets the volume_mode of this V1beta1StorageSpec. - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. + volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. - `\"FromStorageProfile\"` means the volume mode will be auto selected by CDI according to a matching StorageProfile :param volume_mode: The volume_mode of this V1beta1StorageSpec. :type: str """ - allowed_values = ["Block", "Filesystem"] + allowed_values = ["Block", "Filesystem", "FromStorageProfile"] if volume_mode not in allowed_values: raise ValueError( "Invalid value for `volume_mode` ({0}), must be one of {1}" diff --git a/setup.py b/setup.py index c7c7bb24..0ecf65ce 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.4.0-rc.0-620-g9c9782a62b" +VERSION = "v1.5.0-alpha.0-11-g735de2287d" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 1e656162..402cc7a8 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.4.0-rc.0-620-g9c9782a62b" +"packageVersion": "v1.5.0-alpha.0-11-g735de2287d" } diff --git a/test/test_k8s_io_api_core_v1_resource_claim.py b/test/test_k8s_io_api_core_v1_resource_claim.py deleted file mode 100644 index 1a83ff23..00000000 --- a/test/test_k8s_io_api_core_v1_resource_claim.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.k8s_io_api_core_v1_resource_claim import K8sIoApiCoreV1ResourceClaim - - -class TestK8sIoApiCoreV1ResourceClaim(unittest.TestCase): - """ K8sIoApiCoreV1ResourceClaim unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testK8sIoApiCoreV1ResourceClaim(self): - """ - Test K8sIoApiCoreV1ResourceClaim - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.k8s_io_api_core_v1_resource_claim.K8sIoApiCoreV1ResourceClaim() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_k8s_io_api_core_v1_resource_requirements.py b/test/test_k8s_io_api_core_v1_resource_requirements.py deleted file mode 100644 index c589a9bb..00000000 --- a/test/test_k8s_io_api_core_v1_resource_requirements.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.k8s_io_api_core_v1_resource_requirements import K8sIoApiCoreV1ResourceRequirements - - -class TestK8sIoApiCoreV1ResourceRequirements(unittest.TestCase): - """ K8sIoApiCoreV1ResourceRequirements unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testK8sIoApiCoreV1ResourceRequirements(self): - """ - Test K8sIoApiCoreV1ResourceRequirements - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.k8s_io_api_core_v1_resource_requirements.K8sIoApiCoreV1ResourceRequirements() - pass - - -if __name__ == '__main__': - unittest.main() From 3ef5bd684a13bf1a0c175ac6babf0aa6b849482c Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Tue, 7 Jan 2025 16:26:02 +0000 Subject: [PATCH 433/521] Client Python update by KubeVirt Prow build 1876652635155599360 --- README.md | 3 +- docs/V1DiskIOThreads.md | 10 +++ docs/V1DomainSpec.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_disk_io_threads.py | 125 ++++++++++++++++++++++++++ kubevirt/models/v1_domain_spec.py | 30 ++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_disk_io_threads.py | 44 +++++++++ 14 files changed, 221 insertions(+), 7 deletions(-) create mode 100644 docs/V1DiskIOThreads.md create mode 100644 kubevirt/models/v1_disk_io_threads.py create mode 100644 test/test_v1_disk_io_threads.py diff --git a/README.md b/README.md index f3243149..e09ad9f7 100644 --- a/README.md +++ b/README.md @@ -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.5.0-alpha.0-11-g735de2287d +- Package version: v1.5.0-alpha.0-140-g0aca8e614a - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -434,6 +434,7 @@ Class | Method | HTTP request | Description - [V1DisableFreePageReporting](docs/V1DisableFreePageReporting.md) - [V1DisableSerialConsoleLog](docs/V1DisableSerialConsoleLog.md) - [V1Disk](docs/V1Disk.md) + - [V1DiskIOThreads](docs/V1DiskIOThreads.md) - [V1DiskTarget](docs/V1DiskTarget.md) - [V1DiskVerification](docs/V1DiskVerification.md) - [V1DomainMemoryDumpInfo](docs/V1DomainMemoryDumpInfo.md) diff --git a/docs/V1DiskIOThreads.md b/docs/V1DiskIOThreads.md new file mode 100644 index 00000000..483069dd --- /dev/null +++ b/docs/V1DiskIOThreads.md @@ -0,0 +1,10 @@ +# V1DiskIOThreads + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**supplemental_pool_thread_count** | **int** | SupplementalPoolThreadCount specifies how many iothreads are allocated for the supplementalPool policy. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1DomainSpec.md b/docs/V1DomainSpec.md index 738572ed..6ab60d33 100644 --- a/docs/V1DomainSpec.md +++ b/docs/V1DomainSpec.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **devices** | [**V1Devices**](V1Devices.md) | Devices allows adding disks, network interfaces, and others | **features** | [**V1Features**](V1Features.md) | Features like acpi, apic, hyperv, smm. | [optional] **firmware** | [**V1Firmware**](V1Firmware.md) | Firmware. | [optional] +**io_threads** | [**V1DiskIOThreads**](V1DiskIOThreads.md) | IOThreads specifies the IOThreads options. | [optional] **io_threads_policy** | **str** | Controls whether or not disks will share IOThreads. Omitting IOThreadsPolicy disables use of IOThreads. One of: shared, auto | [optional] **launch_security** | [**V1LaunchSecurity**](V1LaunchSecurity.md) | Launch Security setting of the vmi. | [optional] **machine** | [**V1Machine**](V1Machine.md) | Machine type. | [optional] diff --git a/git_push.sh b/git_push.sh index 0f1ab13a..e5bf52e3 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.5.0-alpha.0-11-g735de2287d" + release_note="Auto-generated client v1.5.0-alpha.0-140-g0aca8e614a" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 3905a980..34d39f54 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -314,6 +314,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_disk.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_disk.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Disk.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_disk_io_threads.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_disk_io_threads.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DiskIOThreads.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_disk_target.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_disk_target.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DiskTarget.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index a6d48666..0ea8bad5 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -111,6 +111,7 @@ from .models.v1_disable_free_page_reporting import V1DisableFreePageReporting from .models.v1_disable_serial_console_log import V1DisableSerialConsoleLog from .models.v1_disk import V1Disk +from .models.v1_disk_io_threads import V1DiskIOThreads from .models.v1_disk_target import V1DiskTarget from .models.v1_disk_verification import V1DiskVerification from .models.v1_domain_memory_dump_info import V1DomainMemoryDumpInfo diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 384ffaa4..52bfe619 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.5.0-alpha.0-11-g735de2287d/python' + self.user_agent = 'Swagger-Codegen/v1.5.0-alpha.0-140-g0aca8e614a/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 59f45551..ac776a04 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.5.0-alpha.0-11-g735de2287d".\ + "SDK Package Version: v1.5.0-alpha.0-140-g0aca8e614a".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 0eb85060..dd57900f 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -111,6 +111,7 @@ from .v1_disable_free_page_reporting import V1DisableFreePageReporting from .v1_disable_serial_console_log import V1DisableSerialConsoleLog from .v1_disk import V1Disk +from .v1_disk_io_threads import V1DiskIOThreads from .v1_disk_target import V1DiskTarget from .v1_disk_verification import V1DiskVerification from .v1_domain_memory_dump_info import V1DomainMemoryDumpInfo diff --git a/kubevirt/models/v1_disk_io_threads.py b/kubevirt/models/v1_disk_io_threads.py new file mode 100644 index 00000000..32da8465 --- /dev/null +++ b/kubevirt/models/v1_disk_io_threads.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DiskIOThreads(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'supplemental_pool_thread_count': 'int' + } + + attribute_map = { + 'supplemental_pool_thread_count': 'supplementalPoolThreadCount' + } + + def __init__(self, supplemental_pool_thread_count=None): + """ + V1DiskIOThreads - a model defined in Swagger + """ + + self._supplemental_pool_thread_count = None + + if supplemental_pool_thread_count is not None: + self.supplemental_pool_thread_count = supplemental_pool_thread_count + + @property + def supplemental_pool_thread_count(self): + """ + Gets the supplemental_pool_thread_count of this V1DiskIOThreads. + SupplementalPoolThreadCount specifies how many iothreads are allocated for the supplementalPool policy. + + :return: The supplemental_pool_thread_count of this V1DiskIOThreads. + :rtype: int + """ + return self._supplemental_pool_thread_count + + @supplemental_pool_thread_count.setter + def supplemental_pool_thread_count(self, supplemental_pool_thread_count): + """ + Sets the supplemental_pool_thread_count of this V1DiskIOThreads. + SupplementalPoolThreadCount specifies how many iothreads are allocated for the supplementalPool policy. + + :param supplemental_pool_thread_count: The supplemental_pool_thread_count of this V1DiskIOThreads. + :type: int + """ + + self._supplemental_pool_thread_count = supplemental_pool_thread_count + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1DiskIOThreads): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_domain_spec.py b/kubevirt/models/v1_domain_spec.py index b6c9743c..9c46f6d9 100644 --- a/kubevirt/models/v1_domain_spec.py +++ b/kubevirt/models/v1_domain_spec.py @@ -37,6 +37,7 @@ class V1DomainSpec(object): 'devices': 'V1Devices', 'features': 'V1Features', 'firmware': 'V1Firmware', + 'io_threads': 'V1DiskIOThreads', 'io_threads_policy': 'str', 'launch_security': 'V1LaunchSecurity', 'machine': 'V1Machine', @@ -51,6 +52,7 @@ class V1DomainSpec(object): 'devices': 'devices', 'features': 'features', 'firmware': 'firmware', + 'io_threads': 'ioThreads', 'io_threads_policy': 'ioThreadsPolicy', 'launch_security': 'launchSecurity', 'machine': 'machine', @@ -58,7 +60,7 @@ class V1DomainSpec(object): 'resources': 'resources' } - def __init__(self, chassis=None, clock=None, cpu=None, devices=None, features=None, firmware=None, io_threads_policy=None, launch_security=None, machine=None, memory=None, resources=None): + def __init__(self, chassis=None, clock=None, cpu=None, devices=None, features=None, firmware=None, io_threads=None, io_threads_policy=None, launch_security=None, machine=None, memory=None, resources=None): """ V1DomainSpec - a model defined in Swagger """ @@ -69,6 +71,7 @@ def __init__(self, chassis=None, clock=None, cpu=None, devices=None, features=No self._devices = None self._features = None self._firmware = None + self._io_threads = None self._io_threads_policy = None self._launch_security = None self._machine = None @@ -86,6 +89,8 @@ def __init__(self, chassis=None, clock=None, cpu=None, devices=None, features=No self.features = features if firmware is not None: self.firmware = firmware + if io_threads is not None: + self.io_threads = io_threads if io_threads_policy is not None: self.io_threads_policy = io_threads_policy if launch_security is not None: @@ -237,6 +242,29 @@ def firmware(self, firmware): self._firmware = firmware + @property + def io_threads(self): + """ + Gets the io_threads of this V1DomainSpec. + IOThreads specifies the IOThreads options. + + :return: The io_threads of this V1DomainSpec. + :rtype: V1DiskIOThreads + """ + return self._io_threads + + @io_threads.setter + def io_threads(self, io_threads): + """ + Sets the io_threads of this V1DomainSpec. + IOThreads specifies the IOThreads options. + + :param io_threads: The io_threads of this V1DomainSpec. + :type: V1DiskIOThreads + """ + + self._io_threads = io_threads + @property def io_threads_policy(self): """ diff --git a/setup.py b/setup.py index 0ecf65ce..3ab8841d 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.5.0-alpha.0-11-g735de2287d" +VERSION = "v1.5.0-alpha.0-140-g0aca8e614a" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 402cc7a8..22a86ef0 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.5.0-alpha.0-11-g735de2287d" +"packageVersion": "v1.5.0-alpha.0-140-g0aca8e614a" } diff --git a/test/test_v1_disk_io_threads.py b/test/test_v1_disk_io_threads.py new file mode 100644 index 00000000..825e8e1f --- /dev/null +++ b/test/test_v1_disk_io_threads.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_disk_io_threads import V1DiskIOThreads + + +class TestV1DiskIOThreads(unittest.TestCase): + """ V1DiskIOThreads unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DiskIOThreads(self): + """ + Test V1DiskIOThreads + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_disk_io_threads.V1DiskIOThreads() + pass + + +if __name__ == '__main__': + unittest.main() From 260126cfaa52e63d2984a858e0a3e643f361fea5 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 15 Jan 2025 17:49:39 +0000 Subject: [PATCH 434/521] Client Python update by KubeVirt Prow build 1879572450065256448 --- README.md | 31 ++- docs/DefaultApi.md | 54 ++--- docs/V1alpha1Condition.md | 13 -- ...Clone.md => V1beta1VirtualMachineClone.md} | 6 +- ...t.md => V1beta1VirtualMachineCloneList.md} | 4 +- ...c.md => V1beta1VirtualMachineCloneSpec.md} | 4 +- ...md => V1beta1VirtualMachineCloneStatus.md} | 4 +- ...eta1VirtualMachineCloneTemplateFilters.md} | 2 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 35 ++- kubevirt/__init__.py | 11 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 70 +++--- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 11 +- kubevirt/models/v1alpha1_condition.py | 203 ------------------ ...ne.py => v1beta1_virtual_machine_clone.py} | 58 ++--- ... => v1beta1_virtual_machine_clone_list.py} | 44 ++-- ... => v1beta1_virtual_machine_clone_spec.py} | 68 +++--- ...> v1beta1_virtual_machine_clone_status.py} | 60 +++--- ...virtual_machine_clone_template_filters.py} | 22 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 4 +- ...t_v1alpha1_virtual_machine_clone_status.py | 44 ---- ..._virtual_machine_clone_template_filters.py | 44 ---- ... => test_v1beta1_virtual_machine_clone.py} | 12 +- ...est_v1beta1_virtual_machine_clone_list.py} | 12 +- ...est_v1beta1_virtual_machine_clone_spec.py} | 12 +- ...t_v1beta1_virtual_machine_clone_status.py} | 12 +- ..._virtual_machine_clone_template_filters.py | 44 ++++ 31 files changed, 313 insertions(+), 581 deletions(-) delete mode 100644 docs/V1alpha1Condition.md rename docs/{V1alpha1VirtualMachineClone.md => V1beta1VirtualMachineClone.md} (82%) rename docs/{V1alpha1VirtualMachineCloneList.md => V1beta1VirtualMachineCloneList.md} (89%) rename docs/{V1alpha1VirtualMachineCloneSpec.md => V1beta1VirtualMachineCloneSpec.md} (87%) rename docs/{V1alpha1VirtualMachineCloneStatus.md => V1beta1VirtualMachineCloneStatus.md} (82%) rename docs/{V1alpha1VirtualMachineCloneTemplateFilters.md => V1beta1VirtualMachineCloneTemplateFilters.md} (93%) delete mode 100644 kubevirt/models/v1alpha1_condition.py rename kubevirt/models/{v1alpha1_virtual_machine_clone.py => v1beta1_virtual_machine_clone.py} (75%) rename kubevirt/models/{v1alpha1_virtual_machine_clone_list.py => v1beta1_virtual_machine_clone_list.py} (78%) rename kubevirt/models/{v1alpha1_virtual_machine_clone_spec.py => v1beta1_virtual_machine_clone_spec.py} (80%) rename kubevirt/models/{v1alpha1_virtual_machine_clone_status.py => v1beta1_virtual_machine_clone_status.py} (71%) rename kubevirt/models/{v1alpha1_virtual_machine_clone_template_filters.py => v1beta1_virtual_machine_clone_template_filters.py} (82%) delete mode 100644 test/test_v1alpha1_virtual_machine_clone_status.py delete mode 100644 test/test_v1alpha1_virtual_machine_clone_template_filters.py rename test/{test_v1alpha1_condition.py => test_v1beta1_virtual_machine_clone.py} (62%) rename test/{test_v1alpha1_virtual_machine_clone.py => test_v1beta1_virtual_machine_clone_list.py} (60%) rename test/{test_v1alpha1_virtual_machine_clone_list.py => test_v1beta1_virtual_machine_clone_spec.py} (59%) rename test/{test_v1alpha1_virtual_machine_clone_spec.py => test_v1beta1_virtual_machine_clone_status.py} (59%) create mode 100644 test/test_v1beta1_virtual_machine_clone_template_filters.py diff --git a/README.md b/README.md index e09ad9f7..fb3a8734 100644 --- a/README.md +++ b/README.md @@ -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.5.0-alpha.0-140-g0aca8e614a +- Package version: v1.5.0-alpha.0-284-g1bf5c68b79 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -83,7 +83,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**create_namespaced_virtual_machine_restore**](docs/DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | *DefaultApi* | [**create_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | *DefaultApi* | [**create_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents | -*DefaultApi* | [**create_virtual_machine_clone**](docs/DefaultApi.md#create_virtual_machine_clone) | **POST** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | +*DefaultApi* | [**create_virtual_machine_clone**](docs/DefaultApi.md#create_virtual_machine_clone) | **POST** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones | *DefaultApi* | [**create_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#create_virtual_machine_cluster_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | *DefaultApi* | [**create_virtual_machine_cluster_preference**](docs/DefaultApi.md#create_virtual_machine_cluster_preference) | **POST** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | *DefaultApi* | [**delete_collection_migration_policy**](docs/DefaultApi.md#delete_collection_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | @@ -100,7 +100,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_collection_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents | -*DefaultApi* | [**delete_collection_virtual_machine_clone**](docs/DefaultApi.md#delete_collection_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | +*DefaultApi* | [**delete_collection_virtual_machine_clone**](docs/DefaultApi.md#delete_collection_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones | *DefaultApi* | [**delete_collection_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#delete_collection_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | *DefaultApi* | [**delete_collection_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_collection_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | *DefaultApi* | [**delete_migration_policy**](docs/DefaultApi.md#delete_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | @@ -117,7 +117,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | *DefaultApi* | [**delete_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | *DefaultApi* | [**delete_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | -*DefaultApi* | [**delete_virtual_machine_clone**](docs/DefaultApi.md#delete_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | +*DefaultApi* | [**delete_virtual_machine_clone**](docs/DefaultApi.md#delete_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name} | *DefaultApi* | [**delete_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#delete_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | *DefaultApi* | [**delete_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | *DefaultApi* | [**func13**](docs/DefaultApi.md#func13) | **GET** /healthz | @@ -130,7 +130,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**get_api_group_migrations_kubevirt_io**](docs/DefaultApi.md#get_api_group_migrations_kubevirt_io) | **GET** /apis/migrations.kubevirt.io/ | *DefaultApi* | [**get_api_group_pool_kubevirt_io**](docs/DefaultApi.md#get_api_group_pool_kubevirt_io) | **GET** /apis/pool.kubevirt.io/ | *DefaultApi* | [**get_api_group_snapshot_kubevirt_io**](docs/DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | -*DefaultApi* | [**get_api_resources_clone_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_clone_kubevirt_io_v1alpha1) | **GET** /apis/clone.kubevirt.io/v1alpha1/ | +*DefaultApi* | [**get_api_resources_clone_kubevirt_io_v1beta1**](docs/DefaultApi.md#get_api_resources_clone_kubevirt_io_v1beta1) | **GET** /apis/clone.kubevirt.io/v1beta1/ | *DefaultApi* | [**get_api_resources_export_kubevirt_io_v1beta1**](docs/DefaultApi.md#get_api_resources_export_kubevirt_io_v1beta1) | **GET** /apis/export.kubevirt.io/v1beta1/ | *DefaultApi* | [**get_api_resources_instancetype_kubevirt_io_v1beta1**](docs/DefaultApi.md#get_api_resources_instancetype_kubevirt_io_v1beta1) | **GET** /apis/instancetype.kubevirt.io/v1beta1/ | *DefaultApi* | [**get_api_resources_kubevirt_io_v1**](docs/DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | @@ -156,7 +156,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_namespaced_virtual_machine_restore**](docs/DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | *DefaultApi* | [**list_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | *DefaultApi* | [**list_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents | -*DefaultApi* | [**list_virtual_machine_clone**](docs/DefaultApi.md#list_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | +*DefaultApi* | [**list_virtual_machine_clone**](docs/DefaultApi.md#list_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones | *DefaultApi* | [**list_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#list_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | *DefaultApi* | [**list_virtual_machine_cluster_preference**](docs/DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | *DefaultApi* | [**list_virtual_machine_export_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_export_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1beta1/virtualmachineexports | @@ -185,7 +185,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**patch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | *DefaultApi* | [**patch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | *DefaultApi* | [**patch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | -*DefaultApi* | [**patch_virtual_machine_clone**](docs/DefaultApi.md#patch_virtual_machine_clone) | **PATCH** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | +*DefaultApi* | [**patch_virtual_machine_clone**](docs/DefaultApi.md#patch_virtual_machine_clone) | **PATCH** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name} | *DefaultApi* | [**patch_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#patch_virtual_machine_cluster_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | *DefaultApi* | [**patch_virtual_machine_cluster_preference**](docs/DefaultApi.md#patch_virtual_machine_cluster_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | *DefaultApi* | [**read_migration_policy**](docs/DefaultApi.md#read_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | @@ -202,7 +202,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**read_namespaced_virtual_machine_restore**](docs/DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | *DefaultApi* | [**read_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | *DefaultApi* | [**read_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | -*DefaultApi* | [**read_virtual_machine_clone**](docs/DefaultApi.md#read_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | +*DefaultApi* | [**read_virtual_machine_clone**](docs/DefaultApi.md#read_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name} | *DefaultApi* | [**read_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#read_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | *DefaultApi* | [**read_virtual_machine_cluster_preference**](docs/DefaultApi.md#read_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | *DefaultApi* | [**replace_migration_policy**](docs/DefaultApi.md#replace_migration_policy) | **PUT** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | @@ -219,7 +219,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**replace_namespaced_virtual_machine_restore**](docs/DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | *DefaultApi* | [**replace_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | *DefaultApi* | [**replace_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | -*DefaultApi* | [**replace_virtual_machine_clone**](docs/DefaultApi.md#replace_virtual_machine_clone) | **PUT** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | +*DefaultApi* | [**replace_virtual_machine_clone**](docs/DefaultApi.md#replace_virtual_machine_clone) | **PUT** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name} | *DefaultApi* | [**replace_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#replace_virtual_machine_cluster_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | *DefaultApi* | [**replace_virtual_machine_cluster_preference**](docs/DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | *DefaultApi* | [**v1_check_health**](docs/DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | @@ -318,7 +318,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**watch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinerestores | *DefaultApi* | [**watch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinesnapshots | *DefaultApi* | [**watch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinesnapshotcontents | -*DefaultApi* | [**watch_virtual_machine_clone_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_clone_list_for_all_namespaces) | **GET** /apis/clone.kubevirt.io/v1alpha1/watch/virtualmachineclones | +*DefaultApi* | [**watch_virtual_machine_clone_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_clone_list_for_all_namespaces) | **GET** /apis/clone.kubevirt.io/v1beta1/watch/virtualmachineclones | *DefaultApi* | [**watch_virtual_machine_cluster_instancetype_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterinstancetypes | *DefaultApi* | [**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterpreferences | *DefaultApi* | [**watch_virtual_machine_export_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_export_list_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1beta1/watch/virtualmachineexports | @@ -620,17 +620,11 @@ Class | Method | HTTP request | Description - [V1VolumeStatus](docs/V1VolumeStatus.md) - [V1VolumeUpdateState](docs/V1VolumeUpdateState.md) - [V1Watchdog](docs/V1Watchdog.md) - - [V1alpha1Condition](docs/V1alpha1Condition.md) - [V1alpha1MigrationPolicy](docs/V1alpha1MigrationPolicy.md) - [V1alpha1MigrationPolicyList](docs/V1alpha1MigrationPolicyList.md) - [V1alpha1MigrationPolicySpec](docs/V1alpha1MigrationPolicySpec.md) - [V1alpha1MigrationPolicyStatus](docs/V1alpha1MigrationPolicyStatus.md) - [V1alpha1Selectors](docs/V1alpha1Selectors.md) - - [V1alpha1VirtualMachineClone](docs/V1alpha1VirtualMachineClone.md) - - [V1alpha1VirtualMachineCloneList](docs/V1alpha1VirtualMachineCloneList.md) - - [V1alpha1VirtualMachineCloneSpec](docs/V1alpha1VirtualMachineCloneSpec.md) - - [V1alpha1VirtualMachineCloneStatus](docs/V1alpha1VirtualMachineCloneStatus.md) - - [V1alpha1VirtualMachineCloneTemplateFilters](docs/V1alpha1VirtualMachineCloneTemplateFilters.md) - [V1alpha1VirtualMachinePool](docs/V1alpha1VirtualMachinePool.md) - [V1alpha1VirtualMachinePoolCondition](docs/V1alpha1VirtualMachinePoolCondition.md) - [V1alpha1VirtualMachinePoolList](docs/V1alpha1VirtualMachinePoolList.md) @@ -670,6 +664,11 @@ Class | Method | HTTP request | Description - [V1beta1SpreadOptions](docs/V1beta1SpreadOptions.md) - [V1beta1StorageSpec](docs/V1beta1StorageSpec.md) - [V1beta1VirtualMachine](docs/V1beta1VirtualMachine.md) + - [V1beta1VirtualMachineClone](docs/V1beta1VirtualMachineClone.md) + - [V1beta1VirtualMachineCloneList](docs/V1beta1VirtualMachineCloneList.md) + - [V1beta1VirtualMachineCloneSpec](docs/V1beta1VirtualMachineCloneSpec.md) + - [V1beta1VirtualMachineCloneStatus](docs/V1beta1VirtualMachineCloneStatus.md) + - [V1beta1VirtualMachineCloneTemplateFilters](docs/V1beta1VirtualMachineCloneTemplateFilters.md) - [V1beta1VirtualMachineClusterInstancetype](docs/V1beta1VirtualMachineClusterInstancetype.md) - [V1beta1VirtualMachineClusterInstancetypeList](docs/V1beta1VirtualMachineClusterInstancetypeList.md) - [V1beta1VirtualMachineClusterPreference](docs/V1beta1VirtualMachineClusterPreference.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 95af20c4..a46e5c17 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -18,7 +18,7 @@ Method | HTTP request | Description [**create_namespaced_virtual_machine_restore**](DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | [**create_namespaced_virtual_machine_snapshot**](DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | [**create_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents | -[**create_virtual_machine_clone**](DefaultApi.md#create_virtual_machine_clone) | **POST** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | +[**create_virtual_machine_clone**](DefaultApi.md#create_virtual_machine_clone) | **POST** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones | [**create_virtual_machine_cluster_instancetype**](DefaultApi.md#create_virtual_machine_cluster_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | [**create_virtual_machine_cluster_preference**](DefaultApi.md#create_virtual_machine_cluster_preference) | **POST** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | [**delete_collection_migration_policy**](DefaultApi.md#delete_collection_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | @@ -35,7 +35,7 @@ Method | HTTP request | Description [**delete_collection_namespaced_virtual_machine_restore**](DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | [**delete_collection_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | [**delete_collection_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents | -[**delete_collection_virtual_machine_clone**](DefaultApi.md#delete_collection_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | +[**delete_collection_virtual_machine_clone**](DefaultApi.md#delete_collection_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones | [**delete_collection_virtual_machine_cluster_instancetype**](DefaultApi.md#delete_collection_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | [**delete_collection_virtual_machine_cluster_preference**](DefaultApi.md#delete_collection_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | [**delete_migration_policy**](DefaultApi.md#delete_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | @@ -52,7 +52,7 @@ Method | HTTP request | Description [**delete_namespaced_virtual_machine_restore**](DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | [**delete_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | [**delete_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | -[**delete_virtual_machine_clone**](DefaultApi.md#delete_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | +[**delete_virtual_machine_clone**](DefaultApi.md#delete_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name} | [**delete_virtual_machine_cluster_instancetype**](DefaultApi.md#delete_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | [**delete_virtual_machine_cluster_preference**](DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | [**func13**](DefaultApi.md#func13) | **GET** /healthz | @@ -65,7 +65,7 @@ Method | HTTP request | Description [**get_api_group_migrations_kubevirt_io**](DefaultApi.md#get_api_group_migrations_kubevirt_io) | **GET** /apis/migrations.kubevirt.io/ | [**get_api_group_pool_kubevirt_io**](DefaultApi.md#get_api_group_pool_kubevirt_io) | **GET** /apis/pool.kubevirt.io/ | [**get_api_group_snapshot_kubevirt_io**](DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | -[**get_api_resources_clone_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_clone_kubevirt_io_v1alpha1) | **GET** /apis/clone.kubevirt.io/v1alpha1/ | +[**get_api_resources_clone_kubevirt_io_v1beta1**](DefaultApi.md#get_api_resources_clone_kubevirt_io_v1beta1) | **GET** /apis/clone.kubevirt.io/v1beta1/ | [**get_api_resources_export_kubevirt_io_v1beta1**](DefaultApi.md#get_api_resources_export_kubevirt_io_v1beta1) | **GET** /apis/export.kubevirt.io/v1beta1/ | [**get_api_resources_instancetype_kubevirt_io_v1beta1**](DefaultApi.md#get_api_resources_instancetype_kubevirt_io_v1beta1) | **GET** /apis/instancetype.kubevirt.io/v1beta1/ | [**get_api_resources_kubevirt_io_v1**](DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | @@ -91,7 +91,7 @@ Method | HTTP request | Description [**list_namespaced_virtual_machine_restore**](DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | [**list_namespaced_virtual_machine_snapshot**](DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | [**list_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents | -[**list_virtual_machine_clone**](DefaultApi.md#list_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | +[**list_virtual_machine_clone**](DefaultApi.md#list_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones | [**list_virtual_machine_cluster_instancetype**](DefaultApi.md#list_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | [**list_virtual_machine_cluster_preference**](DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | [**list_virtual_machine_export_for_all_namespaces**](DefaultApi.md#list_virtual_machine_export_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1beta1/virtualmachineexports | @@ -120,7 +120,7 @@ Method | HTTP request | Description [**patch_namespaced_virtual_machine_restore**](DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | [**patch_namespaced_virtual_machine_snapshot**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | [**patch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | -[**patch_virtual_machine_clone**](DefaultApi.md#patch_virtual_machine_clone) | **PATCH** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | +[**patch_virtual_machine_clone**](DefaultApi.md#patch_virtual_machine_clone) | **PATCH** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name} | [**patch_virtual_machine_cluster_instancetype**](DefaultApi.md#patch_virtual_machine_cluster_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | [**patch_virtual_machine_cluster_preference**](DefaultApi.md#patch_virtual_machine_cluster_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | [**read_migration_policy**](DefaultApi.md#read_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | @@ -137,7 +137,7 @@ Method | HTTP request | Description [**read_namespaced_virtual_machine_restore**](DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | [**read_namespaced_virtual_machine_snapshot**](DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | [**read_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | -[**read_virtual_machine_clone**](DefaultApi.md#read_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | +[**read_virtual_machine_clone**](DefaultApi.md#read_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name} | [**read_virtual_machine_cluster_instancetype**](DefaultApi.md#read_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | [**read_virtual_machine_cluster_preference**](DefaultApi.md#read_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | [**replace_migration_policy**](DefaultApi.md#replace_migration_policy) | **PUT** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | @@ -154,7 +154,7 @@ Method | HTTP request | Description [**replace_namespaced_virtual_machine_restore**](DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | [**replace_namespaced_virtual_machine_snapshot**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | [**replace_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | -[**replace_virtual_machine_clone**](DefaultApi.md#replace_virtual_machine_clone) | **PUT** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | +[**replace_virtual_machine_clone**](DefaultApi.md#replace_virtual_machine_clone) | **PUT** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name} | [**replace_virtual_machine_cluster_instancetype**](DefaultApi.md#replace_virtual_machine_cluster_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | [**replace_virtual_machine_cluster_preference**](DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | [**v1_check_health**](DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | @@ -253,7 +253,7 @@ Method | HTTP request | Description [**watch_namespaced_virtual_machine_restore**](DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinerestores | [**watch_namespaced_virtual_machine_snapshot**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinesnapshots | [**watch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinesnapshotcontents | -[**watch_virtual_machine_clone_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_clone_list_for_all_namespaces) | **GET** /apis/clone.kubevirt.io/v1alpha1/watch/virtualmachineclones | +[**watch_virtual_machine_clone_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_clone_list_for_all_namespaces) | **GET** /apis/clone.kubevirt.io/v1beta1/watch/virtualmachineclones | [**watch_virtual_machine_cluster_instancetype_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterinstancetypes | [**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterpreferences | [**watch_virtual_machine_export_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_export_list_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1beta1/watch/virtualmachineexports | @@ -955,7 +955,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_virtual_machine_clone** -> V1alpha1VirtualMachineClone create_virtual_machine_clone(body) +> V1beta1VirtualMachineClone create_virtual_machine_clone(body) @@ -971,7 +971,7 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1alpha1VirtualMachineClone() # V1alpha1VirtualMachineClone | +body = kubevirt.V1beta1VirtualMachineClone() # V1beta1VirtualMachineClone | try: api_response = api_instance.create_virtual_machine_clone(body) @@ -984,11 +984,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1VirtualMachineClone**](V1alpha1VirtualMachineClone.md)| | + **body** | [**V1beta1VirtualMachineClone**](V1beta1VirtualMachineClone.md)| | ### Return type -[**V1alpha1VirtualMachineClone**](V1alpha1VirtualMachineClone.md) +[**V1beta1VirtualMachineClone**](V1beta1VirtualMachineClone.md) ### Authorization @@ -3519,8 +3519,8 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_api_resources_clone_kubevirt_io_v1alpha1** -> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_clone_kubevirt_io_v1alpha1() +# **get_api_resources_clone_kubevirt_io_v1beta1** +> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_clone_kubevirt_io_v1beta1() @@ -3538,10 +3538,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() try: - api_response = api_instance.get_api_resources_clone_kubevirt_io_v1alpha1() + api_response = api_instance.get_api_resources_clone_kubevirt_io_v1beta1() pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->get_api_resources_clone_kubevirt_io_v1alpha1: %s\n" % e) + print("Exception when calling DefaultApi->get_api_resources_clone_kubevirt_io_v1beta1: %s\n" % e) ``` ### Parameters @@ -4931,7 +4931,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_virtual_machine_clone** -> V1alpha1VirtualMachineCloneList list_virtual_machine_clone(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1VirtualMachineCloneList list_virtual_machine_clone(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -4978,7 +4978,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineCloneList**](V1alpha1VirtualMachineCloneList.md) +[**V1beta1VirtualMachineCloneList**](V1beta1VirtualMachineCloneList.md) ### Authorization @@ -6558,7 +6558,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_virtual_machine_clone** -> V1alpha1VirtualMachineClone patch_virtual_machine_clone(name, body) +> V1beta1VirtualMachineClone patch_virtual_machine_clone(name, body) @@ -6593,7 +6593,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineClone**](V1alpha1VirtualMachineClone.md) +[**V1beta1VirtualMachineClone**](V1beta1VirtualMachineClone.md) ### Authorization @@ -7445,7 +7445,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_virtual_machine_clone** -> V1alpha1VirtualMachineClone read_virtual_machine_clone(name, exact=exact, export=export) +> V1beta1VirtualMachineClone read_virtual_machine_clone(name, exact=exact, export=export) @@ -7482,7 +7482,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachineClone**](V1alpha1VirtualMachineClone.md) +[**V1beta1VirtualMachineClone**](V1beta1VirtualMachineClone.md) ### Authorization @@ -8310,7 +8310,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_virtual_machine_clone** -> V1alpha1VirtualMachineClone replace_virtual_machine_clone(name, body) +> V1beta1VirtualMachineClone replace_virtual_machine_clone(name, body) @@ -8327,7 +8327,7 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource -body = kubevirt.V1alpha1VirtualMachineClone() # V1alpha1VirtualMachineClone | +body = kubevirt.V1beta1VirtualMachineClone() # V1beta1VirtualMachineClone | try: api_response = api_instance.replace_virtual_machine_clone(name, body) @@ -8341,11 +8341,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | - **body** | [**V1alpha1VirtualMachineClone**](V1alpha1VirtualMachineClone.md)| | + **body** | [**V1beta1VirtualMachineClone**](V1beta1VirtualMachineClone.md)| | ### Return type -[**V1alpha1VirtualMachineClone**](V1alpha1VirtualMachineClone.md) +[**V1beta1VirtualMachineClone**](V1beta1VirtualMachineClone.md) ### Authorization diff --git a/docs/V1alpha1Condition.md b/docs/V1alpha1Condition.md deleted file mode 100644 index 96a2edb5..00000000 --- a/docs/V1alpha1Condition.md +++ /dev/null @@ -1,13 +0,0 @@ -# V1alpha1Condition - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **str** | | [optional] -**reason** | **str** | | [optional] -**status** | **str** | | [default to ''] -**type** | **str** | | [default to ''] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1alpha1VirtualMachineClone.md b/docs/V1beta1VirtualMachineClone.md similarity index 82% rename from docs/V1alpha1VirtualMachineClone.md rename to docs/V1beta1VirtualMachineClone.md index 52f68e54..5c82a7f0 100644 --- a/docs/V1alpha1VirtualMachineClone.md +++ b/docs/V1beta1VirtualMachineClone.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachineClone +# V1beta1VirtualMachineClone ## Properties Name | Type | Description | Notes @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1VirtualMachineCloneSpec**](V1alpha1VirtualMachineCloneSpec.md) | | -**status** | [**V1alpha1VirtualMachineCloneStatus**](V1alpha1VirtualMachineCloneStatus.md) | | [optional] +**spec** | [**V1beta1VirtualMachineCloneSpec**](V1beta1VirtualMachineCloneSpec.md) | | +**status** | [**V1beta1VirtualMachineCloneStatus**](V1beta1VirtualMachineCloneStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineCloneList.md b/docs/V1beta1VirtualMachineCloneList.md similarity index 89% rename from docs/V1alpha1VirtualMachineCloneList.md rename to docs/V1beta1VirtualMachineCloneList.md index 05416608..b722e6f2 100644 --- a/docs/V1alpha1VirtualMachineCloneList.md +++ b/docs/V1beta1VirtualMachineCloneList.md @@ -1,10 +1,10 @@ -# V1alpha1VirtualMachineCloneList +# V1beta1VirtualMachineCloneList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**list[V1alpha1VirtualMachineClone]**](V1alpha1VirtualMachineClone.md) | | +**items** | [**list[V1beta1VirtualMachineClone]**](V1beta1VirtualMachineClone.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [optional] diff --git a/docs/V1alpha1VirtualMachineCloneSpec.md b/docs/V1beta1VirtualMachineCloneSpec.md similarity index 87% rename from docs/V1alpha1VirtualMachineCloneSpec.md rename to docs/V1beta1VirtualMachineCloneSpec.md index edef3cef..0dbacf15 100644 --- a/docs/V1alpha1VirtualMachineCloneSpec.md +++ b/docs/V1beta1VirtualMachineCloneSpec.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachineCloneSpec +# V1beta1VirtualMachineCloneSpec ## Properties Name | Type | Description | Notes @@ -9,7 +9,7 @@ Name | Type | Description | Notes **new_sm_bios_serial** | **str** | NewSMBiosSerial manually sets that target's SMbios serial. If this field is not specified, a new serial will be generated automatically. | [optional] **source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Source is the object that would be cloned. Currently supported source types are: VirtualMachine of kubevirt.io API group, VirtualMachineSnapshot of snapshot.kubevirt.io API group | **target** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Target is the outcome of the cloning process. Currently supported source types are: - VirtualMachine of kubevirt.io API group - Empty (nil). If the target is not provided, the target type would default to VirtualMachine and a random name would be generated for the target. The target's name can be viewed by inspecting status \"TargetName\" field below. | [optional] -**template** | [**V1alpha1VirtualMachineCloneTemplateFilters**](V1alpha1VirtualMachineCloneTemplateFilters.md) | For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. | [optional] +**template** | [**V1beta1VirtualMachineCloneTemplateFilters**](V1beta1VirtualMachineCloneTemplateFilters.md) | For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineCloneStatus.md b/docs/V1beta1VirtualMachineCloneStatus.md similarity index 82% rename from docs/V1alpha1VirtualMachineCloneStatus.md rename to docs/V1beta1VirtualMachineCloneStatus.md index 8753eca4..63dbbd2c 100644 --- a/docs/V1alpha1VirtualMachineCloneStatus.md +++ b/docs/V1beta1VirtualMachineCloneStatus.md @@ -1,9 +1,9 @@ -# V1alpha1VirtualMachineCloneStatus +# V1beta1VirtualMachineCloneStatus ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**conditions** | [**list[V1alpha1Condition]**](V1alpha1Condition.md) | | [optional] +**conditions** | [**list[V1beta1Condition]**](V1beta1Condition.md) | | [optional] **creation_time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | | [optional] **phase** | **str** | | [optional] **restore_name** | **str** | | [optional] diff --git a/docs/V1alpha1VirtualMachineCloneTemplateFilters.md b/docs/V1beta1VirtualMachineCloneTemplateFilters.md similarity index 93% rename from docs/V1alpha1VirtualMachineCloneTemplateFilters.md rename to docs/V1beta1VirtualMachineCloneTemplateFilters.md index 490cf781..5141cab8 100644 --- a/docs/V1alpha1VirtualMachineCloneTemplateFilters.md +++ b/docs/V1beta1VirtualMachineCloneTemplateFilters.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachineCloneTemplateFilters +# V1beta1VirtualMachineCloneTemplateFilters ## Properties Name | Type | Description | Notes diff --git a/git_push.sh b/git_push.sh index e5bf52e3..d48c86f2 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.5.0-alpha.0-140-g0aca8e614a" + release_note="Auto-generated client v1.5.0-alpha.0-284-g1bf5c68b79" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 34d39f54..e8b02f8f 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -18,8 +18,6 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} -[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] INFO io.swagger.codegen.ignore.CodegenIgnoreProcessor - No .swagger-codegen-ignore file found. [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default appVersion set to 1.0.0 [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default version set to 1.0.0 @@ -872,9 +870,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_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Watchdog.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_condition.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_condition.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1Condition.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_migration_policy.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_migration_policy.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1MigrationPolicy.md @@ -890,21 +885,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/v1alpha1_selectors.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_selectors.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1Selectors.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_clone.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_clone.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineClone.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_clone_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_clone_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineCloneList.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_clone_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_clone_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineCloneSpec.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_clone_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_clone_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineCloneStatus.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_clone_template_filters.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_clone_template_filters.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineCloneTemplateFilters.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePool.md @@ -1022,6 +1002,21 @@ 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/v1beta1_virtual_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachine.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_clone.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_clone.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineClone.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_clone_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_clone_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineCloneList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_clone_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_clone_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineCloneSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_clone_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_clone_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineCloneStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_clone_template_filters.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_clone_template_filters.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineCloneTemplateFilters.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_cluster_instancetype.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_cluster_instancetype.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineClusterInstancetype.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 0ea8bad5..fa91ad7b 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -297,17 +297,11 @@ from .models.v1_volume_status import V1VolumeStatus from .models.v1_volume_update_state import V1VolumeUpdateState from .models.v1_watchdog import V1Watchdog -from .models.v1alpha1_condition import V1alpha1Condition from .models.v1alpha1_migration_policy import V1alpha1MigrationPolicy from .models.v1alpha1_migration_policy_list import V1alpha1MigrationPolicyList from .models.v1alpha1_migration_policy_spec import V1alpha1MigrationPolicySpec from .models.v1alpha1_migration_policy_status import V1alpha1MigrationPolicyStatus from .models.v1alpha1_selectors import V1alpha1Selectors -from .models.v1alpha1_virtual_machine_clone import V1alpha1VirtualMachineClone -from .models.v1alpha1_virtual_machine_clone_list import V1alpha1VirtualMachineCloneList -from .models.v1alpha1_virtual_machine_clone_spec import V1alpha1VirtualMachineCloneSpec -from .models.v1alpha1_virtual_machine_clone_status import V1alpha1VirtualMachineCloneStatus -from .models.v1alpha1_virtual_machine_clone_template_filters import V1alpha1VirtualMachineCloneTemplateFilters from .models.v1alpha1_virtual_machine_pool import V1alpha1VirtualMachinePool from .models.v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition from .models.v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList @@ -347,6 +341,11 @@ from .models.v1beta1_spread_options import V1beta1SpreadOptions from .models.v1beta1_storage_spec import V1beta1StorageSpec from .models.v1beta1_virtual_machine import V1beta1VirtualMachine +from .models.v1beta1_virtual_machine_clone import V1beta1VirtualMachineClone +from .models.v1beta1_virtual_machine_clone_list import V1beta1VirtualMachineCloneList +from .models.v1beta1_virtual_machine_clone_spec import V1beta1VirtualMachineCloneSpec +from .models.v1beta1_virtual_machine_clone_status import V1beta1VirtualMachineCloneStatus +from .models.v1beta1_virtual_machine_clone_template_filters import V1beta1VirtualMachineCloneTemplateFilters from .models.v1beta1_virtual_machine_cluster_instancetype import V1beta1VirtualMachineClusterInstancetype from .models.v1beta1_virtual_machine_cluster_instancetype_list import V1beta1VirtualMachineClusterInstancetypeList from .models.v1beta1_virtual_machine_cluster_preference import V1beta1VirtualMachineClusterPreference diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 52bfe619..fb8a0502 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.5.0-alpha.0-140-g0aca8e614a/python' + self.user_agent = 'Swagger-Codegen/v1.5.0-alpha.0-284-g1bf5c68b79/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index a6382a96..b820f121 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -1600,8 +1600,8 @@ def create_virtual_machine_clone(self, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha1VirtualMachineClone body: (required) - :return: V1alpha1VirtualMachineClone + :param V1beta1VirtualMachineClone body: (required) + :return: V1beta1VirtualMachineClone If the method is called asynchronously, returns the request thread. """ @@ -1625,8 +1625,8 @@ def create_virtual_machine_clone_with_http_info(self, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha1VirtualMachineClone body: (required) - :return: V1alpha1VirtualMachineClone + :param V1beta1VirtualMachineClone body: (required) + :return: V1beta1VirtualMachineClone If the method is called asynchronously, returns the request thread. """ @@ -1676,14 +1676,14 @@ def create_virtual_machine_clone_with_http_info(self, body, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones', 'POST', + return self.api_client.call_api('/apis/clone.kubevirt.io/v1beta1/virtualmachineclones', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineClone', + response_type='V1beta1VirtualMachineClone', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3759,7 +3759,7 @@ def delete_collection_virtual_machine_clone_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones', 'DELETE', + return self.api_client.call_api('/apis/clone.kubevirt.io/v1beta1/virtualmachineclones', 'DELETE', path_params, query_params, header_params, @@ -5945,7 +5945,7 @@ def delete_virtual_machine_clone_with_http_info(self, name, body, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name}', 'DELETE', + return self.api_client.call_api('/apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name}', 'DELETE', path_params, query_params, header_params, @@ -7124,7 +7124,7 @@ def get_api_group_snapshot_kubevirt_io_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_resources_clone_kubevirt_io_v1alpha1(self, **kwargs): + def get_api_resources_clone_kubevirt_io_v1beta1(self, **kwargs): """ Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an @@ -7133,7 +7133,7 @@ def get_api_resources_clone_kubevirt_io_v1alpha1(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_clone_kubevirt_io_v1alpha1(callback=callback_function) + >>> thread = api.get_api_resources_clone_kubevirt_io_v1beta1(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7143,12 +7143,12 @@ def get_api_resources_clone_kubevirt_io_v1alpha1(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_resources_clone_kubevirt_io_v1alpha1_with_http_info(**kwargs) + return self.get_api_resources_clone_kubevirt_io_v1beta1_with_http_info(**kwargs) else: - (data) = self.get_api_resources_clone_kubevirt_io_v1alpha1_with_http_info(**kwargs) + (data) = self.get_api_resources_clone_kubevirt_io_v1beta1_with_http_info(**kwargs) return data - def get_api_resources_clone_kubevirt_io_v1alpha1_with_http_info(self, **kwargs): + def get_api_resources_clone_kubevirt_io_v1beta1_with_http_info(self, **kwargs): """ Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an @@ -7157,7 +7157,7 @@ def get_api_resources_clone_kubevirt_io_v1alpha1_with_http_info(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_clone_kubevirt_io_v1alpha1_with_http_info(callback=callback_function) + >>> thread = api.get_api_resources_clone_kubevirt_io_v1beta1_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7177,7 +7177,7 @@ def get_api_resources_clone_kubevirt_io_v1alpha1_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_resources_clone_kubevirt_io_v1alpha1" % key + " to method get_api_resources_clone_kubevirt_io_v1beta1" % key ) params[key] = val del params['kwargs'] @@ -7201,7 +7201,7 @@ def get_api_resources_clone_kubevirt_io_v1alpha1_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/clone.kubevirt.io/v1alpha1/', 'GET', + return self.api_client.call_api('/apis/clone.kubevirt.io/v1beta1/', 'GET', path_params, query_params, header_params, @@ -10111,7 +10111,7 @@ def list_virtual_machine_clone(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineCloneList + :return: V1beta1VirtualMachineCloneList If the method is called asynchronously, returns the request thread. """ @@ -10143,7 +10143,7 @@ def list_virtual_machine_clone_with_http_info(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachineCloneList + :return: V1beta1VirtualMachineCloneList If the method is called asynchronously, returns the request thread. """ @@ -10200,14 +10200,14 @@ def list_virtual_machine_clone_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones', 'GET', + return self.api_client.call_api('/apis/clone.kubevirt.io/v1beta1/virtualmachineclones', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineCloneList', + response_type='V1beta1VirtualMachineCloneList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13625,7 +13625,7 @@ def patch_virtual_machine_clone(self, name, body, **kwargs): for asynchronous request. (optional) :param str name: Name of the resource (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineClone + :return: V1beta1VirtualMachineClone If the method is called asynchronously, returns the request thread. """ @@ -13651,7 +13651,7 @@ def patch_virtual_machine_clone_with_http_info(self, name, body, **kwargs): for asynchronous request. (optional) :param str name: Name of the resource (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachineClone + :return: V1beta1VirtualMachineClone If the method is called asynchronously, returns the request thread. """ @@ -13706,14 +13706,14 @@ def patch_virtual_machine_clone_with_http_info(self, name, body, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name}', 'PATCH', + return self.api_client.call_api('/apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineClone', + response_type='V1beta1VirtualMachineClone', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -15562,7 +15562,7 @@ def read_virtual_machine_clone(self, name, **kwargs): :param str name: Name of the resource (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineClone + :return: V1beta1VirtualMachineClone If the method is called asynchronously, returns the request thread. """ @@ -15589,7 +15589,7 @@ def read_virtual_machine_clone_with_http_info(self, name, **kwargs): :param str name: Name of the resource (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachineClone + :return: V1beta1VirtualMachineClone If the method is called asynchronously, returns the request thread. """ @@ -15639,14 +15639,14 @@ def read_virtual_machine_clone_with_http_info(self, name, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name}', 'GET', + return self.api_client.call_api('/apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineClone', + response_type='V1beta1VirtualMachineClone', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -17529,8 +17529,8 @@ def replace_virtual_machine_clone(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param V1alpha1VirtualMachineClone body: (required) - :return: V1alpha1VirtualMachineClone + :param V1beta1VirtualMachineClone body: (required) + :return: V1beta1VirtualMachineClone If the method is called asynchronously, returns the request thread. """ @@ -17555,8 +17555,8 @@ def replace_virtual_machine_clone_with_http_info(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) - :param V1alpha1VirtualMachineClone body: (required) - :return: V1alpha1VirtualMachineClone + :param V1beta1VirtualMachineClone body: (required) + :return: V1beta1VirtualMachineClone If the method is called asynchronously, returns the request thread. """ @@ -17611,14 +17611,14 @@ def replace_virtual_machine_clone_with_http_info(self, name, body, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name}', 'PUT', + return self.api_client.call_api('/apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachineClone', + response_type='V1beta1VirtualMachineClone', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -28590,7 +28590,7 @@ def watch_virtual_machine_clone_list_for_all_namespaces_with_http_info(self, **k # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/clone.kubevirt.io/v1alpha1/watch/virtualmachineclones', 'GET', + return self.api_client.call_api('/apis/clone.kubevirt.io/v1beta1/watch/virtualmachineclones', 'GET', path_params, query_params, header_params, diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index ac776a04..55df7c75 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.5.0-alpha.0-140-g0aca8e614a".\ + "SDK Package Version: v1.5.0-alpha.0-284-g1bf5c68b79".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index dd57900f..af09acca 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -297,17 +297,11 @@ from .v1_volume_status import V1VolumeStatus from .v1_volume_update_state import V1VolumeUpdateState from .v1_watchdog import V1Watchdog -from .v1alpha1_condition import V1alpha1Condition from .v1alpha1_migration_policy import V1alpha1MigrationPolicy from .v1alpha1_migration_policy_list import V1alpha1MigrationPolicyList from .v1alpha1_migration_policy_spec import V1alpha1MigrationPolicySpec from .v1alpha1_migration_policy_status import V1alpha1MigrationPolicyStatus from .v1alpha1_selectors import V1alpha1Selectors -from .v1alpha1_virtual_machine_clone import V1alpha1VirtualMachineClone -from .v1alpha1_virtual_machine_clone_list import V1alpha1VirtualMachineCloneList -from .v1alpha1_virtual_machine_clone_spec import V1alpha1VirtualMachineCloneSpec -from .v1alpha1_virtual_machine_clone_status import V1alpha1VirtualMachineCloneStatus -from .v1alpha1_virtual_machine_clone_template_filters import V1alpha1VirtualMachineCloneTemplateFilters from .v1alpha1_virtual_machine_pool import V1alpha1VirtualMachinePool from .v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition from .v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList @@ -347,6 +341,11 @@ from .v1beta1_spread_options import V1beta1SpreadOptions from .v1beta1_storage_spec import V1beta1StorageSpec from .v1beta1_virtual_machine import V1beta1VirtualMachine +from .v1beta1_virtual_machine_clone import V1beta1VirtualMachineClone +from .v1beta1_virtual_machine_clone_list import V1beta1VirtualMachineCloneList +from .v1beta1_virtual_machine_clone_spec import V1beta1VirtualMachineCloneSpec +from .v1beta1_virtual_machine_clone_status import V1beta1VirtualMachineCloneStatus +from .v1beta1_virtual_machine_clone_template_filters import V1beta1VirtualMachineCloneTemplateFilters from .v1beta1_virtual_machine_cluster_instancetype import V1beta1VirtualMachineClusterInstancetype from .v1beta1_virtual_machine_cluster_instancetype_list import V1beta1VirtualMachineClusterInstancetypeList from .v1beta1_virtual_machine_cluster_preference import V1beta1VirtualMachineClusterPreference diff --git a/kubevirt/models/v1alpha1_condition.py b/kubevirt/models/v1alpha1_condition.py deleted file mode 100644 index b1528fb2..00000000 --- a/kubevirt/models/v1alpha1_condition.py +++ /dev/null @@ -1,203 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1alpha1Condition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'message': 'str', - 'reason': 'str', - 'status': 'str', - 'type': 'str' - } - - attribute_map = { - 'message': 'message', - 'reason': 'reason', - 'status': 'status', - 'type': 'type' - } - - def __init__(self, message=None, reason=None, status='', type=''): - """ - V1alpha1Condition - a model defined in Swagger - """ - - self._message = None - self._reason = None - self._status = None - self._type = None - - if message is not None: - self.message = message - if reason is not None: - self.reason = reason - self.status = status - self.type = type - - @property - def message(self): - """ - Gets the message of this V1alpha1Condition. - - :return: The message of this V1alpha1Condition. - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """ - Sets the message of this V1alpha1Condition. - - :param message: The message of this V1alpha1Condition. - :type: str - """ - - self._message = message - - @property - def reason(self): - """ - Gets the reason of this V1alpha1Condition. - - :return: The reason of this V1alpha1Condition. - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """ - Sets the reason of this V1alpha1Condition. - - :param reason: The reason of this V1alpha1Condition. - :type: str - """ - - self._reason = reason - - @property - def status(self): - """ - Gets the status of this V1alpha1Condition. - - :return: The status of this V1alpha1Condition. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this V1alpha1Condition. - - :param status: The status of this V1alpha1Condition. - :type: str - """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") - - self._status = status - - @property - def type(self): - """ - Gets the type of this V1alpha1Condition. - - :return: The type of this V1alpha1Condition. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this V1alpha1Condition. - - :param type: The type of this V1alpha1Condition. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1alpha1Condition): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_clone.py b/kubevirt/models/v1beta1_virtual_machine_clone.py similarity index 75% rename from kubevirt/models/v1alpha1_virtual_machine_clone.py rename to kubevirt/models/v1beta1_virtual_machine_clone.py index 6357f4fc..81e85cc1 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_clone.py +++ b/kubevirt/models/v1beta1_virtual_machine_clone.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineClone(object): +class V1beta1VirtualMachineClone(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -34,8 +34,8 @@ class V1alpha1VirtualMachineClone(object): 'api_version': 'str', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', - 'spec': 'V1alpha1VirtualMachineCloneSpec', - 'status': 'V1alpha1VirtualMachineCloneStatus' + 'spec': 'V1beta1VirtualMachineCloneSpec', + 'status': 'V1beta1VirtualMachineCloneStatus' } attribute_map = { @@ -48,7 +48,7 @@ class V1alpha1VirtualMachineClone(object): def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): """ - V1alpha1VirtualMachineClone - a model defined in Swagger + V1beta1VirtualMachineClone - a model defined in Swagger """ self._api_version = None @@ -70,10 +70,10 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status @property def api_version(self): """ - Gets the api_version of this V1alpha1VirtualMachineClone. + Gets the api_version of this V1beta1VirtualMachineClone. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha1VirtualMachineClone. + :return: The api_version of this V1beta1VirtualMachineClone. :rtype: str """ return self._api_version @@ -81,10 +81,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha1VirtualMachineClone. + Sets the api_version of this V1beta1VirtualMachineClone. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha1VirtualMachineClone. + :param api_version: The api_version of this V1beta1VirtualMachineClone. :type: str """ @@ -93,10 +93,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V1alpha1VirtualMachineClone. + Gets the kind of this V1beta1VirtualMachineClone. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha1VirtualMachineClone. + :return: The kind of this V1beta1VirtualMachineClone. :rtype: str """ return self._kind @@ -104,10 +104,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha1VirtualMachineClone. + Sets the kind of this V1beta1VirtualMachineClone. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha1VirtualMachineClone. + :param kind: The kind of this V1beta1VirtualMachineClone. :type: str """ @@ -116,9 +116,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachineClone. + Gets the metadata of this V1beta1VirtualMachineClone. - :return: The metadata of this V1alpha1VirtualMachineClone. + :return: The metadata of this V1beta1VirtualMachineClone. :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -126,9 +126,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachineClone. + Sets the metadata of this V1beta1VirtualMachineClone. - :param metadata: The metadata of this V1alpha1VirtualMachineClone. + :param metadata: The metadata of this V1beta1VirtualMachineClone. :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ @@ -137,20 +137,20 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1alpha1VirtualMachineClone. + Gets the spec of this V1beta1VirtualMachineClone. - :return: The spec of this V1alpha1VirtualMachineClone. - :rtype: V1alpha1VirtualMachineCloneSpec + :return: The spec of this V1beta1VirtualMachineClone. + :rtype: V1beta1VirtualMachineCloneSpec """ return self._spec @spec.setter def spec(self, spec): """ - Sets the spec of this V1alpha1VirtualMachineClone. + Sets the spec of this V1beta1VirtualMachineClone. - :param spec: The spec of this V1alpha1VirtualMachineClone. - :type: V1alpha1VirtualMachineCloneSpec + :param spec: The spec of this V1beta1VirtualMachineClone. + :type: V1beta1VirtualMachineCloneSpec """ if spec is None: raise ValueError("Invalid value for `spec`, must not be `None`") @@ -160,20 +160,20 @@ def spec(self, spec): @property def status(self): """ - Gets the status of this V1alpha1VirtualMachineClone. + Gets the status of this V1beta1VirtualMachineClone. - :return: The status of this V1alpha1VirtualMachineClone. - :rtype: V1alpha1VirtualMachineCloneStatus + :return: The status of this V1beta1VirtualMachineClone. + :rtype: V1beta1VirtualMachineCloneStatus """ return self._status @status.setter def status(self, status): """ - Sets the status of this V1alpha1VirtualMachineClone. + Sets the status of this V1beta1VirtualMachineClone. - :param status: The status of this V1alpha1VirtualMachineClone. - :type: V1alpha1VirtualMachineCloneStatus + :param status: The status of this V1beta1VirtualMachineClone. + :type: V1beta1VirtualMachineCloneStatus """ self._status = status @@ -220,7 +220,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineClone): + if not isinstance(other, V1beta1VirtualMachineClone): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_clone_list.py b/kubevirt/models/v1beta1_virtual_machine_clone_list.py similarity index 78% rename from kubevirt/models/v1alpha1_virtual_machine_clone_list.py rename to kubevirt/models/v1beta1_virtual_machine_clone_list.py index 69ac5f7c..a526309f 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_clone_list.py +++ b/kubevirt/models/v1beta1_virtual_machine_clone_list.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineCloneList(object): +class V1beta1VirtualMachineCloneList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class V1alpha1VirtualMachineCloneList(object): """ swagger_types = { 'api_version': 'str', - 'items': 'list[V1alpha1VirtualMachineClone]', + 'items': 'list[V1beta1VirtualMachineClone]', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' } @@ -46,7 +46,7 @@ class V1alpha1VirtualMachineCloneList(object): def __init__(self, api_version=None, items=None, kind=None, metadata=None): """ - V1alpha1VirtualMachineCloneList - a model defined in Swagger + V1beta1VirtualMachineCloneList - a model defined in Swagger """ self._api_version = None @@ -65,10 +65,10 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): @property def api_version(self): """ - Gets the api_version of this V1alpha1VirtualMachineCloneList. + Gets the api_version of this V1beta1VirtualMachineCloneList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha1VirtualMachineCloneList. + :return: The api_version of this V1beta1VirtualMachineCloneList. :rtype: str """ return self._api_version @@ -76,10 +76,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha1VirtualMachineCloneList. + Sets the api_version of this V1beta1VirtualMachineCloneList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha1VirtualMachineCloneList. + :param api_version: The api_version of this V1beta1VirtualMachineCloneList. :type: str """ @@ -88,20 +88,20 @@ def api_version(self, api_version): @property def items(self): """ - Gets the items of this V1alpha1VirtualMachineCloneList. + Gets the items of this V1beta1VirtualMachineCloneList. - :return: The items of this V1alpha1VirtualMachineCloneList. - :rtype: list[V1alpha1VirtualMachineClone] + :return: The items of this V1beta1VirtualMachineCloneList. + :rtype: list[V1beta1VirtualMachineClone] """ return self._items @items.setter def items(self, items): """ - Sets the items of this V1alpha1VirtualMachineCloneList. + Sets the items of this V1beta1VirtualMachineCloneList. - :param items: The items of this V1alpha1VirtualMachineCloneList. - :type: list[V1alpha1VirtualMachineClone] + :param items: The items of this V1beta1VirtualMachineCloneList. + :type: list[V1beta1VirtualMachineClone] """ if items is None: raise ValueError("Invalid value for `items`, must not be `None`") @@ -111,10 +111,10 @@ def items(self, items): @property def kind(self): """ - Gets the kind of this V1alpha1VirtualMachineCloneList. + Gets the kind of this V1beta1VirtualMachineCloneList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha1VirtualMachineCloneList. + :return: The kind of this V1beta1VirtualMachineCloneList. :rtype: str """ return self._kind @@ -122,10 +122,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha1VirtualMachineCloneList. + Sets the kind of this V1beta1VirtualMachineCloneList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha1VirtualMachineCloneList. + :param kind: The kind of this V1beta1VirtualMachineCloneList. :type: str """ @@ -134,9 +134,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachineCloneList. + Gets the metadata of this V1beta1VirtualMachineCloneList. - :return: The metadata of this V1alpha1VirtualMachineCloneList. + :return: The metadata of this V1beta1VirtualMachineCloneList. :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @@ -144,9 +144,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachineCloneList. + Sets the metadata of this V1beta1VirtualMachineCloneList. - :param metadata: The metadata of this V1alpha1VirtualMachineCloneList. + :param metadata: The metadata of this V1beta1VirtualMachineCloneList. :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ @@ -194,7 +194,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineCloneList): + if not isinstance(other, V1beta1VirtualMachineCloneList): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_clone_spec.py b/kubevirt/models/v1beta1_virtual_machine_clone_spec.py similarity index 80% rename from kubevirt/models/v1alpha1_virtual_machine_clone_spec.py rename to kubevirt/models/v1beta1_virtual_machine_clone_spec.py index c0dbfc9d..3510e238 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_clone_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_clone_spec.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineCloneSpec(object): +class V1beta1VirtualMachineCloneSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -37,7 +37,7 @@ class V1alpha1VirtualMachineCloneSpec(object): 'new_sm_bios_serial': 'str', 'source': 'K8sIoApiCoreV1TypedLocalObjectReference', 'target': 'K8sIoApiCoreV1TypedLocalObjectReference', - 'template': 'V1alpha1VirtualMachineCloneTemplateFilters' + 'template': 'V1beta1VirtualMachineCloneTemplateFilters' } attribute_map = { @@ -52,7 +52,7 @@ class V1alpha1VirtualMachineCloneSpec(object): def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresses=None, new_sm_bios_serial=None, source=None, target=None, template=None): """ - V1alpha1VirtualMachineCloneSpec - a model defined in Swagger + V1beta1VirtualMachineCloneSpec - a model defined in Swagger """ self._annotation_filters = None @@ -80,10 +80,10 @@ def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresse @property def annotation_filters(self): """ - Gets the annotation_filters of this V1alpha1VirtualMachineCloneSpec. + Gets the annotation_filters of this V1beta1VirtualMachineCloneSpec. Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. - :return: The annotation_filters of this V1alpha1VirtualMachineCloneSpec. + :return: The annotation_filters of this V1beta1VirtualMachineCloneSpec. :rtype: list[str] """ return self._annotation_filters @@ -91,10 +91,10 @@ def annotation_filters(self): @annotation_filters.setter def annotation_filters(self, annotation_filters): """ - Sets the annotation_filters of this V1alpha1VirtualMachineCloneSpec. + Sets the annotation_filters of this V1beta1VirtualMachineCloneSpec. Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. - :param annotation_filters: The annotation_filters of this V1alpha1VirtualMachineCloneSpec. + :param annotation_filters: The annotation_filters of this V1beta1VirtualMachineCloneSpec. :type: list[str] """ @@ -103,10 +103,10 @@ def annotation_filters(self, annotation_filters): @property def label_filters(self): """ - Gets the label_filters of this V1alpha1VirtualMachineCloneSpec. + Gets the label_filters of this V1beta1VirtualMachineCloneSpec. Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. - :return: The label_filters of this V1alpha1VirtualMachineCloneSpec. + :return: The label_filters of this V1beta1VirtualMachineCloneSpec. :rtype: list[str] """ return self._label_filters @@ -114,10 +114,10 @@ def label_filters(self): @label_filters.setter def label_filters(self, label_filters): """ - Sets the label_filters of this V1alpha1VirtualMachineCloneSpec. + Sets the label_filters of this V1beta1VirtualMachineCloneSpec. Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. - :param label_filters: The label_filters of this V1alpha1VirtualMachineCloneSpec. + :param label_filters: The label_filters of this V1beta1VirtualMachineCloneSpec. :type: list[str] """ @@ -126,10 +126,10 @@ def label_filters(self, label_filters): @property def new_mac_addresses(self): """ - Gets the new_mac_addresses of this V1alpha1VirtualMachineCloneSpec. + Gets the new_mac_addresses of this V1beta1VirtualMachineCloneSpec. NewMacAddresses manually sets that target interfaces' mac addresses. The key is the interface name and the value is the new mac address. If this field is not specified, a new MAC address will be generated automatically, as for any interface that is not included in this map. - :return: The new_mac_addresses of this V1alpha1VirtualMachineCloneSpec. + :return: The new_mac_addresses of this V1beta1VirtualMachineCloneSpec. :rtype: dict(str, str) """ return self._new_mac_addresses @@ -137,10 +137,10 @@ def new_mac_addresses(self): @new_mac_addresses.setter def new_mac_addresses(self, new_mac_addresses): """ - Sets the new_mac_addresses of this V1alpha1VirtualMachineCloneSpec. + Sets the new_mac_addresses of this V1beta1VirtualMachineCloneSpec. NewMacAddresses manually sets that target interfaces' mac addresses. The key is the interface name and the value is the new mac address. If this field is not specified, a new MAC address will be generated automatically, as for any interface that is not included in this map. - :param new_mac_addresses: The new_mac_addresses of this V1alpha1VirtualMachineCloneSpec. + :param new_mac_addresses: The new_mac_addresses of this V1beta1VirtualMachineCloneSpec. :type: dict(str, str) """ @@ -149,10 +149,10 @@ def new_mac_addresses(self, new_mac_addresses): @property def new_sm_bios_serial(self): """ - Gets the new_sm_bios_serial of this V1alpha1VirtualMachineCloneSpec. + Gets the new_sm_bios_serial of this V1beta1VirtualMachineCloneSpec. NewSMBiosSerial manually sets that target's SMbios serial. If this field is not specified, a new serial will be generated automatically. - :return: The new_sm_bios_serial of this V1alpha1VirtualMachineCloneSpec. + :return: The new_sm_bios_serial of this V1beta1VirtualMachineCloneSpec. :rtype: str """ return self._new_sm_bios_serial @@ -160,10 +160,10 @@ def new_sm_bios_serial(self): @new_sm_bios_serial.setter def new_sm_bios_serial(self, new_sm_bios_serial): """ - Sets the new_sm_bios_serial of this V1alpha1VirtualMachineCloneSpec. + Sets the new_sm_bios_serial of this V1beta1VirtualMachineCloneSpec. NewSMBiosSerial manually sets that target's SMbios serial. If this field is not specified, a new serial will be generated automatically. - :param new_sm_bios_serial: The new_sm_bios_serial of this V1alpha1VirtualMachineCloneSpec. + :param new_sm_bios_serial: The new_sm_bios_serial of this V1beta1VirtualMachineCloneSpec. :type: str """ @@ -172,10 +172,10 @@ def new_sm_bios_serial(self, new_sm_bios_serial): @property def source(self): """ - Gets the source of this V1alpha1VirtualMachineCloneSpec. + Gets the source of this V1beta1VirtualMachineCloneSpec. Source is the object that would be cloned. Currently supported source types are: VirtualMachine of kubevirt.io API group, VirtualMachineSnapshot of snapshot.kubevirt.io API group - :return: The source of this V1alpha1VirtualMachineCloneSpec. + :return: The source of this V1beta1VirtualMachineCloneSpec. :rtype: K8sIoApiCoreV1TypedLocalObjectReference """ return self._source @@ -183,10 +183,10 @@ def source(self): @source.setter def source(self, source): """ - Sets the source of this V1alpha1VirtualMachineCloneSpec. + Sets the source of this V1beta1VirtualMachineCloneSpec. Source is the object that would be cloned. Currently supported source types are: VirtualMachine of kubevirt.io API group, VirtualMachineSnapshot of snapshot.kubevirt.io API group - :param source: The source of this V1alpha1VirtualMachineCloneSpec. + :param source: The source of this V1beta1VirtualMachineCloneSpec. :type: K8sIoApiCoreV1TypedLocalObjectReference """ if source is None: @@ -197,10 +197,10 @@ def source(self, source): @property def target(self): """ - Gets the target of this V1alpha1VirtualMachineCloneSpec. + Gets the target of this V1beta1VirtualMachineCloneSpec. Target is the outcome of the cloning process. Currently supported source types are: - VirtualMachine of kubevirt.io API group - Empty (nil). If the target is not provided, the target type would default to VirtualMachine and a random name would be generated for the target. The target's name can be viewed by inspecting status \"TargetName\" field below. - :return: The target of this V1alpha1VirtualMachineCloneSpec. + :return: The target of this V1beta1VirtualMachineCloneSpec. :rtype: K8sIoApiCoreV1TypedLocalObjectReference """ return self._target @@ -208,10 +208,10 @@ def target(self): @target.setter def target(self, target): """ - Sets the target of this V1alpha1VirtualMachineCloneSpec. + Sets the target of this V1beta1VirtualMachineCloneSpec. Target is the outcome of the cloning process. Currently supported source types are: - VirtualMachine of kubevirt.io API group - Empty (nil). If the target is not provided, the target type would default to VirtualMachine and a random name would be generated for the target. The target's name can be viewed by inspecting status \"TargetName\" field below. - :param target: The target of this V1alpha1VirtualMachineCloneSpec. + :param target: The target of this V1beta1VirtualMachineCloneSpec. :type: K8sIoApiCoreV1TypedLocalObjectReference """ @@ -220,22 +220,22 @@ def target(self, target): @property def template(self): """ - Gets the template of this V1alpha1VirtualMachineCloneSpec. + Gets the template of this V1beta1VirtualMachineCloneSpec. For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. - :return: The template of this V1alpha1VirtualMachineCloneSpec. - :rtype: V1alpha1VirtualMachineCloneTemplateFilters + :return: The template of this V1beta1VirtualMachineCloneSpec. + :rtype: V1beta1VirtualMachineCloneTemplateFilters """ return self._template @template.setter def template(self, template): """ - Sets the template of this V1alpha1VirtualMachineCloneSpec. + Sets the template of this V1beta1VirtualMachineCloneSpec. For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. - :param template: The template of this V1alpha1VirtualMachineCloneSpec. - :type: V1alpha1VirtualMachineCloneTemplateFilters + :param template: The template of this V1beta1VirtualMachineCloneSpec. + :type: V1beta1VirtualMachineCloneTemplateFilters """ self._template = template @@ -282,7 +282,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineCloneSpec): + if not isinstance(other, V1beta1VirtualMachineCloneSpec): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_clone_status.py b/kubevirt/models/v1beta1_virtual_machine_clone_status.py similarity index 71% rename from kubevirt/models/v1alpha1_virtual_machine_clone_status.py rename to kubevirt/models/v1beta1_virtual_machine_clone_status.py index 090576b7..bbc4a7c4 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_clone_status.py +++ b/kubevirt/models/v1beta1_virtual_machine_clone_status.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineCloneStatus(object): +class V1beta1VirtualMachineCloneStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,7 +31,7 @@ class V1alpha1VirtualMachineCloneStatus(object): and the value is json key in definition. """ swagger_types = { - 'conditions': 'list[V1alpha1Condition]', + 'conditions': 'list[V1beta1Condition]', 'creation_time': 'K8sIoApimachineryPkgApisMetaV1Time', 'phase': 'str', 'restore_name': 'str', @@ -50,7 +50,7 @@ class V1alpha1VirtualMachineCloneStatus(object): def __init__(self, conditions=None, creation_time=None, phase=None, restore_name=None, snapshot_name=None, target_name=None): """ - V1alpha1VirtualMachineCloneStatus - a model defined in Swagger + V1beta1VirtualMachineCloneStatus - a model defined in Swagger """ self._conditions = None @@ -76,20 +76,20 @@ def __init__(self, conditions=None, creation_time=None, phase=None, restore_name @property def conditions(self): """ - Gets the conditions of this V1alpha1VirtualMachineCloneStatus. + Gets the conditions of this V1beta1VirtualMachineCloneStatus. - :return: The conditions of this V1alpha1VirtualMachineCloneStatus. - :rtype: list[V1alpha1Condition] + :return: The conditions of this V1beta1VirtualMachineCloneStatus. + :rtype: list[V1beta1Condition] """ return self._conditions @conditions.setter def conditions(self, conditions): """ - Sets the conditions of this V1alpha1VirtualMachineCloneStatus. + Sets the conditions of this V1beta1VirtualMachineCloneStatus. - :param conditions: The conditions of this V1alpha1VirtualMachineCloneStatus. - :type: list[V1alpha1Condition] + :param conditions: The conditions of this V1beta1VirtualMachineCloneStatus. + :type: list[V1beta1Condition] """ self._conditions = conditions @@ -97,9 +97,9 @@ def conditions(self, conditions): @property def creation_time(self): """ - Gets the creation_time of this V1alpha1VirtualMachineCloneStatus. + Gets the creation_time of this V1beta1VirtualMachineCloneStatus. - :return: The creation_time of this V1alpha1VirtualMachineCloneStatus. + :return: The creation_time of this V1beta1VirtualMachineCloneStatus. :rtype: K8sIoApimachineryPkgApisMetaV1Time """ return self._creation_time @@ -107,9 +107,9 @@ def creation_time(self): @creation_time.setter def creation_time(self, creation_time): """ - Sets the creation_time of this V1alpha1VirtualMachineCloneStatus. + Sets the creation_time of this V1beta1VirtualMachineCloneStatus. - :param creation_time: The creation_time of this V1alpha1VirtualMachineCloneStatus. + :param creation_time: The creation_time of this V1beta1VirtualMachineCloneStatus. :type: K8sIoApimachineryPkgApisMetaV1Time """ @@ -118,9 +118,9 @@ def creation_time(self, creation_time): @property def phase(self): """ - Gets the phase of this V1alpha1VirtualMachineCloneStatus. + Gets the phase of this V1beta1VirtualMachineCloneStatus. - :return: The phase of this V1alpha1VirtualMachineCloneStatus. + :return: The phase of this V1beta1VirtualMachineCloneStatus. :rtype: str """ return self._phase @@ -128,9 +128,9 @@ def phase(self): @phase.setter def phase(self, phase): """ - Sets the phase of this V1alpha1VirtualMachineCloneStatus. + Sets the phase of this V1beta1VirtualMachineCloneStatus. - :param phase: The phase of this V1alpha1VirtualMachineCloneStatus. + :param phase: The phase of this V1beta1VirtualMachineCloneStatus. :type: str """ @@ -139,9 +139,9 @@ def phase(self, phase): @property def restore_name(self): """ - Gets the restore_name of this V1alpha1VirtualMachineCloneStatus. + Gets the restore_name of this V1beta1VirtualMachineCloneStatus. - :return: The restore_name of this V1alpha1VirtualMachineCloneStatus. + :return: The restore_name of this V1beta1VirtualMachineCloneStatus. :rtype: str """ return self._restore_name @@ -149,9 +149,9 @@ def restore_name(self): @restore_name.setter def restore_name(self, restore_name): """ - Sets the restore_name of this V1alpha1VirtualMachineCloneStatus. + Sets the restore_name of this V1beta1VirtualMachineCloneStatus. - :param restore_name: The restore_name of this V1alpha1VirtualMachineCloneStatus. + :param restore_name: The restore_name of this V1beta1VirtualMachineCloneStatus. :type: str """ @@ -160,9 +160,9 @@ def restore_name(self, restore_name): @property def snapshot_name(self): """ - Gets the snapshot_name of this V1alpha1VirtualMachineCloneStatus. + Gets the snapshot_name of this V1beta1VirtualMachineCloneStatus. - :return: The snapshot_name of this V1alpha1VirtualMachineCloneStatus. + :return: The snapshot_name of this V1beta1VirtualMachineCloneStatus. :rtype: str """ return self._snapshot_name @@ -170,9 +170,9 @@ def snapshot_name(self): @snapshot_name.setter def snapshot_name(self, snapshot_name): """ - Sets the snapshot_name of this V1alpha1VirtualMachineCloneStatus. + Sets the snapshot_name of this V1beta1VirtualMachineCloneStatus. - :param snapshot_name: The snapshot_name of this V1alpha1VirtualMachineCloneStatus. + :param snapshot_name: The snapshot_name of this V1beta1VirtualMachineCloneStatus. :type: str """ @@ -181,9 +181,9 @@ def snapshot_name(self, snapshot_name): @property def target_name(self): """ - Gets the target_name of this V1alpha1VirtualMachineCloneStatus. + Gets the target_name of this V1beta1VirtualMachineCloneStatus. - :return: The target_name of this V1alpha1VirtualMachineCloneStatus. + :return: The target_name of this V1beta1VirtualMachineCloneStatus. :rtype: str """ return self._target_name @@ -191,9 +191,9 @@ def target_name(self): @target_name.setter def target_name(self, target_name): """ - Sets the target_name of this V1alpha1VirtualMachineCloneStatus. + Sets the target_name of this V1beta1VirtualMachineCloneStatus. - :param target_name: The target_name of this V1alpha1VirtualMachineCloneStatus. + :param target_name: The target_name of this V1beta1VirtualMachineCloneStatus. :type: str """ @@ -241,7 +241,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineCloneStatus): + if not isinstance(other, V1beta1VirtualMachineCloneStatus): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_clone_template_filters.py b/kubevirt/models/v1beta1_virtual_machine_clone_template_filters.py similarity index 82% rename from kubevirt/models/v1alpha1_virtual_machine_clone_template_filters.py rename to kubevirt/models/v1beta1_virtual_machine_clone_template_filters.py index 3987c629..3bdf2900 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_clone_template_filters.py +++ b/kubevirt/models/v1beta1_virtual_machine_clone_template_filters.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineCloneTemplateFilters(object): +class V1beta1VirtualMachineCloneTemplateFilters(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class V1alpha1VirtualMachineCloneTemplateFilters(object): def __init__(self, annotation_filters=None, label_filters=None): """ - V1alpha1VirtualMachineCloneTemplateFilters - a model defined in Swagger + V1beta1VirtualMachineCloneTemplateFilters - a model defined in Swagger """ self._annotation_filters = None @@ -56,10 +56,10 @@ def __init__(self, annotation_filters=None, label_filters=None): @property def annotation_filters(self): """ - Gets the annotation_filters of this V1alpha1VirtualMachineCloneTemplateFilters. + Gets the annotation_filters of this V1beta1VirtualMachineCloneTemplateFilters. Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. - :return: The annotation_filters of this V1alpha1VirtualMachineCloneTemplateFilters. + :return: The annotation_filters of this V1beta1VirtualMachineCloneTemplateFilters. :rtype: list[str] """ return self._annotation_filters @@ -67,10 +67,10 @@ def annotation_filters(self): @annotation_filters.setter def annotation_filters(self, annotation_filters): """ - Sets the annotation_filters of this V1alpha1VirtualMachineCloneTemplateFilters. + Sets the annotation_filters of this V1beta1VirtualMachineCloneTemplateFilters. Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. - :param annotation_filters: The annotation_filters of this V1alpha1VirtualMachineCloneTemplateFilters. + :param annotation_filters: The annotation_filters of this V1beta1VirtualMachineCloneTemplateFilters. :type: list[str] """ @@ -79,10 +79,10 @@ def annotation_filters(self, annotation_filters): @property def label_filters(self): """ - Gets the label_filters of this V1alpha1VirtualMachineCloneTemplateFilters. + Gets the label_filters of this V1beta1VirtualMachineCloneTemplateFilters. Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. - :return: The label_filters of this V1alpha1VirtualMachineCloneTemplateFilters. + :return: The label_filters of this V1beta1VirtualMachineCloneTemplateFilters. :rtype: list[str] """ return self._label_filters @@ -90,10 +90,10 @@ def label_filters(self): @label_filters.setter def label_filters(self, label_filters): """ - Sets the label_filters of this V1alpha1VirtualMachineCloneTemplateFilters. + Sets the label_filters of this V1beta1VirtualMachineCloneTemplateFilters. Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. - :param label_filters: The label_filters of this V1alpha1VirtualMachineCloneTemplateFilters. + :param label_filters: The label_filters of this V1beta1VirtualMachineCloneTemplateFilters. :type: list[str] """ @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineCloneTemplateFilters): + if not isinstance(other, V1beta1VirtualMachineCloneTemplateFilters): return False return self.__dict__ == other.__dict__ diff --git a/setup.py b/setup.py index 3ab8841d..b403cc2d 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.5.0-alpha.0-140-g0aca8e614a" +VERSION = "v1.5.0-alpha.0-284-g1bf5c68b79" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 22a86ef0..3e26fbca 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.5.0-alpha.0-140-g0aca8e614a" +"packageVersion": "v1.5.0-alpha.0-284-g1bf5c68b79" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 90aec24d..9dcdcca8 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -519,9 +519,9 @@ def test_get_api_group_snapshot_kubevirt_io(self): """ pass - def test_get_api_resources_clone_kubevirt_io_v1alpha1(self): + def test_get_api_resources_clone_kubevirt_io_v1beta1(self): """ - Test case for get_api_resources_clone_kubevirt_io_v1alpha1 + Test case for get_api_resources_clone_kubevirt_io_v1beta1 """ diff --git a/test/test_v1alpha1_virtual_machine_clone_status.py b/test/test_v1alpha1_virtual_machine_clone_status.py deleted file mode 100644 index 40dc04f2..00000000 --- a/test/test_v1alpha1_virtual_machine_clone_status.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_clone_status import V1alpha1VirtualMachineCloneStatus - - -class TestV1alpha1VirtualMachineCloneStatus(unittest.TestCase): - """ V1alpha1VirtualMachineCloneStatus unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachineCloneStatus(self): - """ - Test V1alpha1VirtualMachineCloneStatus - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_clone_status.V1alpha1VirtualMachineCloneStatus() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_clone_template_filters.py b/test/test_v1alpha1_virtual_machine_clone_template_filters.py deleted file mode 100644 index 53deb5d0..00000000 --- a/test/test_v1alpha1_virtual_machine_clone_template_filters.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_clone_template_filters import V1alpha1VirtualMachineCloneTemplateFilters - - -class TestV1alpha1VirtualMachineCloneTemplateFilters(unittest.TestCase): - """ V1alpha1VirtualMachineCloneTemplateFilters unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachineCloneTemplateFilters(self): - """ - Test V1alpha1VirtualMachineCloneTemplateFilters - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_clone_template_filters.V1alpha1VirtualMachineCloneTemplateFilters() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_condition.py b/test/test_v1beta1_virtual_machine_clone.py similarity index 62% rename from test/test_v1alpha1_condition.py rename to test/test_v1beta1_virtual_machine_clone.py index 3425235f..2c1bf28f 100644 --- a/test/test_v1alpha1_condition.py +++ b/test/test_v1beta1_virtual_machine_clone.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_condition import V1alpha1Condition +from kubevirt.models.v1beta1_virtual_machine_clone import V1beta1VirtualMachineClone -class TestV1alpha1Condition(unittest.TestCase): - """ V1alpha1Condition unit test stubs """ +class TestV1beta1VirtualMachineClone(unittest.TestCase): + """ V1beta1VirtualMachineClone unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1Condition(self): + def testV1beta1VirtualMachineClone(self): """ - Test V1alpha1Condition + Test V1beta1VirtualMachineClone """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_condition.V1alpha1Condition() + #model = kubevirt.models.v1beta1_virtual_machine_clone.V1beta1VirtualMachineClone() pass diff --git a/test/test_v1alpha1_virtual_machine_clone.py b/test/test_v1beta1_virtual_machine_clone_list.py similarity index 60% rename from test/test_v1alpha1_virtual_machine_clone.py rename to test/test_v1beta1_virtual_machine_clone_list.py index 4fcc3c87..415505de 100644 --- a/test/test_v1alpha1_virtual_machine_clone.py +++ b/test/test_v1beta1_virtual_machine_clone_list.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_clone import V1alpha1VirtualMachineClone +from kubevirt.models.v1beta1_virtual_machine_clone_list import V1beta1VirtualMachineCloneList -class TestV1alpha1VirtualMachineClone(unittest.TestCase): - """ V1alpha1VirtualMachineClone unit test stubs """ +class TestV1beta1VirtualMachineCloneList(unittest.TestCase): + """ V1beta1VirtualMachineCloneList unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachineClone(self): + def testV1beta1VirtualMachineCloneList(self): """ - Test V1alpha1VirtualMachineClone + Test V1beta1VirtualMachineCloneList """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_clone.V1alpha1VirtualMachineClone() + #model = kubevirt.models.v1beta1_virtual_machine_clone_list.V1beta1VirtualMachineCloneList() pass diff --git a/test/test_v1alpha1_virtual_machine_clone_list.py b/test/test_v1beta1_virtual_machine_clone_spec.py similarity index 59% rename from test/test_v1alpha1_virtual_machine_clone_list.py rename to test/test_v1beta1_virtual_machine_clone_spec.py index 26a7ea8b..15afdbbb 100644 --- a/test/test_v1alpha1_virtual_machine_clone_list.py +++ b/test/test_v1beta1_virtual_machine_clone_spec.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_clone_list import V1alpha1VirtualMachineCloneList +from kubevirt.models.v1beta1_virtual_machine_clone_spec import V1beta1VirtualMachineCloneSpec -class TestV1alpha1VirtualMachineCloneList(unittest.TestCase): - """ V1alpha1VirtualMachineCloneList unit test stubs """ +class TestV1beta1VirtualMachineCloneSpec(unittest.TestCase): + """ V1beta1VirtualMachineCloneSpec unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachineCloneList(self): + def testV1beta1VirtualMachineCloneSpec(self): """ - Test V1alpha1VirtualMachineCloneList + Test V1beta1VirtualMachineCloneSpec """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_clone_list.V1alpha1VirtualMachineCloneList() + #model = kubevirt.models.v1beta1_virtual_machine_clone_spec.V1beta1VirtualMachineCloneSpec() pass diff --git a/test/test_v1alpha1_virtual_machine_clone_spec.py b/test/test_v1beta1_virtual_machine_clone_status.py similarity index 59% rename from test/test_v1alpha1_virtual_machine_clone_spec.py rename to test/test_v1beta1_virtual_machine_clone_status.py index 90754c66..45c99b56 100644 --- a/test/test_v1alpha1_virtual_machine_clone_spec.py +++ b/test/test_v1beta1_virtual_machine_clone_status.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_clone_spec import V1alpha1VirtualMachineCloneSpec +from kubevirt.models.v1beta1_virtual_machine_clone_status import V1beta1VirtualMachineCloneStatus -class TestV1alpha1VirtualMachineCloneSpec(unittest.TestCase): - """ V1alpha1VirtualMachineCloneSpec unit test stubs """ +class TestV1beta1VirtualMachineCloneStatus(unittest.TestCase): + """ V1beta1VirtualMachineCloneStatus unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachineCloneSpec(self): + def testV1beta1VirtualMachineCloneStatus(self): """ - Test V1alpha1VirtualMachineCloneSpec + Test V1beta1VirtualMachineCloneStatus """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_clone_spec.V1alpha1VirtualMachineCloneSpec() + #model = kubevirt.models.v1beta1_virtual_machine_clone_status.V1beta1VirtualMachineCloneStatus() pass diff --git a/test/test_v1beta1_virtual_machine_clone_template_filters.py b/test/test_v1beta1_virtual_machine_clone_template_filters.py new file mode 100644 index 00000000..6528cf99 --- /dev/null +++ b/test/test_v1beta1_virtual_machine_clone_template_filters.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_clone_template_filters import V1beta1VirtualMachineCloneTemplateFilters + + +class TestV1beta1VirtualMachineCloneTemplateFilters(unittest.TestCase): + """ V1beta1VirtualMachineCloneTemplateFilters unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineCloneTemplateFilters(self): + """ + Test V1beta1VirtualMachineCloneTemplateFilters + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_clone_template_filters.V1beta1VirtualMachineCloneTemplateFilters() + pass + + +if __name__ == '__main__': + unittest.main() From f0a85070c34fbeb2e0e2b3b461392775c2b2ae79 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 23 Jan 2025 21:50:08 +0000 Subject: [PATCH 435/521] Client Python update by KubeVirt Prow build 1882529466798837760 --- README.md | 2 +- ...1VirtualMachineInstanceNetworkInterface.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...tual_machine_instance_network_interface.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index fb3a8734..77be198d 100644 --- a/README.md +++ b/README.md @@ -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.5.0-alpha.0-284-g1bf5c68b79 +- Package version: v1.5.0-beta.0-105-g7d17efce9d - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceNetworkInterface.md b/docs/V1VirtualMachineInstanceNetworkInterface.md index 8bf60091..1ff9d3b2 100644 --- a/docs/V1VirtualMachineInstanceNetworkInterface.md +++ b/docs/V1VirtualMachineInstanceNetworkInterface.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **interface_name** | **str** | The interface name inside the Virtual Machine | [optional] **ip_address** | **str** | IP address of a Virtual Machine interface. It is always the first item of IPs | [optional] **ip_addresses** | **list[str]** | List of all IP addresses of a Virtual Machine interface | [optional] +**link_state** | **str** | LinkState Reports the current operational link state`. values: up, down. | [optional] **mac** | **str** | Hardware address of a Virtual Machine interface | [optional] **name** | **str** | Name of the interface, corresponds to name of the network assigned to the interface | [optional] **pod_interface_name** | **str** | PodInterfaceName represents the name of the pod network interface | [optional] diff --git a/git_push.sh b/git_push.sh index d48c86f2..c686f888 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.5.0-alpha.0-284-g1bf5c68b79" + release_note="Auto-generated client v1.5.0-beta.0-105-g7d17efce9d" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index fb8a0502..a08a23cc 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.5.0-alpha.0-284-g1bf5c68b79/python' + self.user_agent = 'Swagger-Codegen/v1.5.0-beta.0-105-g7d17efce9d/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 55df7c75..5d452cb8 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.5.0-alpha.0-284-g1bf5c68b79".\ + "SDK Package Version: v1.5.0-beta.0-105-g7d17efce9d".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_network_interface.py b/kubevirt/models/v1_virtual_machine_instance_network_interface.py index 1f90cbde..7eefe2f9 100644 --- a/kubevirt/models/v1_virtual_machine_instance_network_interface.py +++ b/kubevirt/models/v1_virtual_machine_instance_network_interface.py @@ -35,6 +35,7 @@ class V1VirtualMachineInstanceNetworkInterface(object): 'interface_name': 'str', 'ip_address': 'str', 'ip_addresses': 'list[str]', + 'link_state': 'str', 'mac': 'str', 'name': 'str', 'pod_interface_name': 'str', @@ -46,13 +47,14 @@ class V1VirtualMachineInstanceNetworkInterface(object): 'interface_name': 'interfaceName', 'ip_address': 'ipAddress', 'ip_addresses': 'ipAddresses', + 'link_state': 'linkState', 'mac': 'mac', 'name': 'name', 'pod_interface_name': 'podInterfaceName', 'queue_count': 'queueCount' } - def __init__(self, info_source=None, interface_name=None, ip_address=None, ip_addresses=None, mac=None, name=None, pod_interface_name=None, queue_count=None): + def __init__(self, info_source=None, interface_name=None, ip_address=None, ip_addresses=None, link_state=None, mac=None, name=None, pod_interface_name=None, queue_count=None): """ V1VirtualMachineInstanceNetworkInterface - a model defined in Swagger """ @@ -61,6 +63,7 @@ def __init__(self, info_source=None, interface_name=None, ip_address=None, ip_ad self._interface_name = None self._ip_address = None self._ip_addresses = None + self._link_state = None self._mac = None self._name = None self._pod_interface_name = None @@ -74,6 +77,8 @@ def __init__(self, info_source=None, interface_name=None, ip_address=None, ip_ad self.ip_address = ip_address if ip_addresses is not None: self.ip_addresses = ip_addresses + if link_state is not None: + self.link_state = link_state if mac is not None: self.mac = mac if name is not None: @@ -175,6 +180,29 @@ def ip_addresses(self, ip_addresses): self._ip_addresses = ip_addresses + @property + def link_state(self): + """ + Gets the link_state of this V1VirtualMachineInstanceNetworkInterface. + LinkState Reports the current operational link state`. values: up, down. + + :return: The link_state of this V1VirtualMachineInstanceNetworkInterface. + :rtype: str + """ + return self._link_state + + @link_state.setter + def link_state(self, link_state): + """ + Sets the link_state of this V1VirtualMachineInstanceNetworkInterface. + LinkState Reports the current operational link state`. values: up, down. + + :param link_state: The link_state of this V1VirtualMachineInstanceNetworkInterface. + :type: str + """ + + self._link_state = link_state + @property def mac(self): """ diff --git a/setup.py b/setup.py index b403cc2d..318b7918 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.5.0-alpha.0-284-g1bf5c68b79" +VERSION = "v1.5.0-beta.0-105-g7d17efce9d" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 3e26fbca..4f6f12d7 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.5.0-alpha.0-284-g1bf5c68b79" +"packageVersion": "v1.5.0-beta.0-105-g7d17efce9d" } From f67573d3d5938a56ddc6fe7f69d77cbf041cab94 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 30 Jan 2025 20:40:00 +0000 Subject: [PATCH 436/521] Client Python update by KubeVirt Prow build 1885049659638943744 --- README.md | 4 +- docs/DefaultApi.md | 100 +++++++++++++++++ git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 206 +++++++++++++++++++++++++++++++++++ kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 16 +++ 9 files changed, 330 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 77be198d..c45a49b9 100644 --- a/README.md +++ b/README.md @@ -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.5.0-beta.0-105-g7d17efce9d +- Package version: v1.5.0-beta.0-245-g5b1d674b1d - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -234,6 +234,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1_migrate**](docs/DefaultApi.md#v1_migrate) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/migrate | *DefaultApi* | [**v1_pause**](docs/DefaultApi.md#v1_pause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/pause | *DefaultApi* | [**v1_remove_memory_dump**](docs/DefaultApi.md#v1_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/removememorydump | +*DefaultApi* | [**v1_reset**](docs/DefaultApi.md#v1_reset) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/reset | *DefaultApi* | [**v1_restart**](docs/DefaultApi.md#v1_restart) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/restart | *DefaultApi* | [**v1_sev_fetch_cert_chain**](docs/DefaultApi.md#v1_sev_fetch_cert_chain) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/sev/fetchcertchain | *DefaultApi* | [**v1_sev_inject_launch_secret**](docs/DefaultApi.md#v1_sev_inject_launch_secret) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/sev/injectlaunchsecret | @@ -260,6 +261,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3_migrate**](docs/DefaultApi.md#v1alpha3_migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/migrate | *DefaultApi* | [**v1alpha3_pause**](docs/DefaultApi.md#v1alpha3_pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/pause | *DefaultApi* | [**v1alpha3_remove_memory_dump**](docs/DefaultApi.md#v1alpha3_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/removememorydump | +*DefaultApi* | [**v1alpha3_reset**](docs/DefaultApi.md#v1alpha3_reset) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/reset | *DefaultApi* | [**v1alpha3_restart**](docs/DefaultApi.md#v1alpha3_restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/restart | *DefaultApi* | [**v1alpha3_sev_fetch_cert_chain**](docs/DefaultApi.md#v1alpha3_sev_fetch_cert_chain) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/sev/fetchcertchain | *DefaultApi* | [**v1alpha3_sev_inject_launch_secret**](docs/DefaultApi.md#v1alpha3_sev_inject_launch_secret) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/sev/injectlaunchsecret | diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index a46e5c17..c18259ad 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -169,6 +169,7 @@ Method | HTTP request | Description [**v1_migrate**](DefaultApi.md#v1_migrate) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/migrate | [**v1_pause**](DefaultApi.md#v1_pause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/pause | [**v1_remove_memory_dump**](DefaultApi.md#v1_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/removememorydump | +[**v1_reset**](DefaultApi.md#v1_reset) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/reset | [**v1_restart**](DefaultApi.md#v1_restart) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/restart | [**v1_sev_fetch_cert_chain**](DefaultApi.md#v1_sev_fetch_cert_chain) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/sev/fetchcertchain | [**v1_sev_inject_launch_secret**](DefaultApi.md#v1_sev_inject_launch_secret) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/sev/injectlaunchsecret | @@ -195,6 +196,7 @@ Method | HTTP request | Description [**v1alpha3_migrate**](DefaultApi.md#v1alpha3_migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/migrate | [**v1alpha3_pause**](DefaultApi.md#v1alpha3_pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/pause | [**v1alpha3_remove_memory_dump**](DefaultApi.md#v1alpha3_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/removememorydump | +[**v1alpha3_reset**](DefaultApi.md#v1alpha3_reset) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/reset | [**v1alpha3_restart**](DefaultApi.md#v1alpha3_restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/restart | [**v1alpha3_sev_fetch_cert_chain**](DefaultApi.md#v1alpha3_sev_fetch_cert_chain) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/sev/fetchcertchain | [**v1alpha3_sev_inject_launch_secret**](DefaultApi.md#v1alpha3_sev_inject_launch_secret) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/sev/injectlaunchsecret | @@ -9029,6 +9031,55 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1_reset** +> str v1_reset(name, namespace) + + + +Reset a VirtualMachineInstance object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1_reset(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1_reset: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1_restart** > str v1_restart(name, namespace, body=body) @@ -10300,6 +10351,55 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3_reset** +> str v1alpha3_reset(name, namespace) + + + +Reset a VirtualMachineInstance object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.v1alpha3_reset(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_reset: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3_restart** > str v1alpha3_restart(name, namespace, body=body) diff --git a/git_push.sh b/git_push.sh index c686f888..cd2c09a0 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.5.0-beta.0-105-g7d17efce9d" + release_note="Auto-generated client v1.5.0-beta.0-245-g5b1d674b1d" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index a08a23cc..f4374670 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.5.0-beta.0-105-g7d17efce9d/python' + self.user_agent = 'Swagger-Codegen/v1.5.0-beta.0-245-g5b1d674b1d/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index b820f121..d411122f 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -19114,6 +19114,109 @@ def v1_remove_memory_dump_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1_reset(self, name, namespace, **kwargs): + """ + Reset a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_reset(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1_reset_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1_reset_with_http_info(name, namespace, **kwargs) + return data + + def v1_reset_with_http_info(self, name, namespace, **kwargs): + """ + Reset a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_reset_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1_reset" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1_reset`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1_reset`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/reset', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1_restart(self, name, namespace, **kwargs): """ Restart a VirtualMachine object. @@ -21919,6 +22022,109 @@ def v1alpha3_remove_memory_dump_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1alpha3_reset(self, name, namespace, **kwargs): + """ + Reset a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_reset(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3_reset_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1alpha3_reset_with_http_info(name, namespace, **kwargs) + return data + + def v1alpha3_reset_with_http_info(self, name, namespace, **kwargs): + """ + Reset a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_reset_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3_reset" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_reset`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_reset`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/reset', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1alpha3_restart(self, name, namespace, **kwargs): """ Restart a VirtualMachine object. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 5d452cb8..5216fad2 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.5.0-beta.0-105-g7d17efce9d".\ + "SDK Package Version: v1.5.0-beta.0-245-g5b1d674b1d".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index 318b7918..b1a003b4 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.5.0-beta.0-105-g7d17efce9d" +VERSION = "v1.5.0-beta.0-245-g5b1d674b1d" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 4f6f12d7..56eb2852 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.5.0-beta.0-105-g7d17efce9d" +"packageVersion": "v1.5.0-beta.0-245-g5b1d674b1d" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 9dcdcca8..5578f7b8 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -1348,6 +1348,14 @@ def test_v1_remove_memory_dump(self): Test case for v1_remove_memory_dump + """ + pass + + def test_v1_reset(self): + """ + Test case for v1_reset + + """ pass @@ -1556,6 +1564,14 @@ def test_v1alpha3_remove_memory_dump(self): Test case for v1alpha3_remove_memory_dump + """ + pass + + def test_v1alpha3_reset(self): + """ + Test case for v1alpha3_reset + + """ pass From 52341f2c88b47a17b39a19af03ea9fffb42fa0b8 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 6 Feb 2025 03:04:52 +0000 Subject: [PATCH 437/521] Client Python update by KubeVirt Prow build 1887322155939532800 --- README.md | 3 +- ...1alpha1VirtualMachinePoolNameGeneration.md | 11 ++ docs/V1alpha1VirtualMachinePoolSpec.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + ...a1_virtual_machine_pool_name_generation.py | 149 ++++++++++++++++++ .../v1alpha1_virtual_machine_pool_spec.py | 30 +++- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...a1_virtual_machine_pool_name_generation.py | 44 ++++++ 14 files changed, 246 insertions(+), 7 deletions(-) create mode 100644 docs/V1alpha1VirtualMachinePoolNameGeneration.md create mode 100644 kubevirt/models/v1alpha1_virtual_machine_pool_name_generation.py create mode 100644 test/test_v1alpha1_virtual_machine_pool_name_generation.py diff --git a/README.md b/README.md index c45a49b9..1abfaa4d 100644 --- a/README.md +++ b/README.md @@ -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.5.0-beta.0-245-g5b1d674b1d +- Package version: v1.5.0-beta.0-309-gaabd3bc949 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -630,6 +630,7 @@ Class | Method | HTTP request | Description - [V1alpha1VirtualMachinePool](docs/V1alpha1VirtualMachinePool.md) - [V1alpha1VirtualMachinePoolCondition](docs/V1alpha1VirtualMachinePoolCondition.md) - [V1alpha1VirtualMachinePoolList](docs/V1alpha1VirtualMachinePoolList.md) + - [V1alpha1VirtualMachinePoolNameGeneration](docs/V1alpha1VirtualMachinePoolNameGeneration.md) - [V1alpha1VirtualMachinePoolSpec](docs/V1alpha1VirtualMachinePoolSpec.md) - [V1alpha1VirtualMachinePoolStatus](docs/V1alpha1VirtualMachinePoolStatus.md) - [V1alpha1VirtualMachineTemplateSpec](docs/V1alpha1VirtualMachineTemplateSpec.md) diff --git a/docs/V1alpha1VirtualMachinePoolNameGeneration.md b/docs/V1alpha1VirtualMachinePoolNameGeneration.md new file mode 100644 index 00000000..92374b93 --- /dev/null +++ b/docs/V1alpha1VirtualMachinePoolNameGeneration.md @@ -0,0 +1,11 @@ +# V1alpha1VirtualMachinePoolNameGeneration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**append_index_to_config_map_refs** | **bool** | | [optional] +**append_index_to_secret_refs** | **bool** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachinePoolSpec.md b/docs/V1alpha1VirtualMachinePoolSpec.md index 6fc9d2f2..9dc83eeb 100644 --- a/docs/V1alpha1VirtualMachinePoolSpec.md +++ b/docs/V1alpha1VirtualMachinePoolSpec.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**name_generation** | [**V1alpha1VirtualMachinePoolNameGeneration**](V1alpha1VirtualMachinePoolNameGeneration.md) | Options for the name generation in a pool. | [optional] **paused** | **bool** | Indicates that the pool is paused. | [optional] **replicas** | **int** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] **selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | Label selector for pods. Existing Poolss whose pods are selected by this will be the ones affected by this deployment. | diff --git a/git_push.sh b/git_push.sh index cd2c09a0..1acecdf2 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.5.0-beta.0-245-g5b1d674b1d" + release_note="Auto-generated client v1.5.0-beta.0-309-gaabd3bc949" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index e8b02f8f..2029ddf2 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -894,6 +894,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/v1alpha1_virtual_machine_pool_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_list.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_name_generation.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_name_generation.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolNameGeneration.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolSpec.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index fa91ad7b..42fef6f5 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -305,6 +305,7 @@ from .models.v1alpha1_virtual_machine_pool import V1alpha1VirtualMachinePool from .models.v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition from .models.v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList +from .models.v1alpha1_virtual_machine_pool_name_generation import V1alpha1VirtualMachinePoolNameGeneration from .models.v1alpha1_virtual_machine_pool_spec import V1alpha1VirtualMachinePoolSpec from .models.v1alpha1_virtual_machine_pool_status import V1alpha1VirtualMachinePoolStatus from .models.v1alpha1_virtual_machine_template_spec import V1alpha1VirtualMachineTemplateSpec diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index f4374670..2c0270fa 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.5.0-beta.0-245-g5b1d674b1d/python' + self.user_agent = 'Swagger-Codegen/v1.5.0-beta.0-309-gaabd3bc949/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 5216fad2..4a993db3 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.5.0-beta.0-245-g5b1d674b1d".\ + "SDK Package Version: v1.5.0-beta.0-309-gaabd3bc949".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index af09acca..d2b0704f 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -305,6 +305,7 @@ from .v1alpha1_virtual_machine_pool import V1alpha1VirtualMachinePool from .v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition from .v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList +from .v1alpha1_virtual_machine_pool_name_generation import V1alpha1VirtualMachinePoolNameGeneration from .v1alpha1_virtual_machine_pool_spec import V1alpha1VirtualMachinePoolSpec from .v1alpha1_virtual_machine_pool_status import V1alpha1VirtualMachinePoolStatus from .v1alpha1_virtual_machine_template_spec import V1alpha1VirtualMachineTemplateSpec diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_name_generation.py b/kubevirt/models/v1alpha1_virtual_machine_pool_name_generation.py new file mode 100644 index 00000000..33c346a8 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_pool_name_generation.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachinePoolNameGeneration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'append_index_to_config_map_refs': 'bool', + 'append_index_to_secret_refs': 'bool' + } + + attribute_map = { + 'append_index_to_config_map_refs': 'appendIndexToConfigMapRefs', + 'append_index_to_secret_refs': 'appendIndexToSecretRefs' + } + + def __init__(self, append_index_to_config_map_refs=None, append_index_to_secret_refs=None): + """ + V1alpha1VirtualMachinePoolNameGeneration - a model defined in Swagger + """ + + self._append_index_to_config_map_refs = None + self._append_index_to_secret_refs = None + + if append_index_to_config_map_refs is not None: + self.append_index_to_config_map_refs = append_index_to_config_map_refs + if append_index_to_secret_refs is not None: + self.append_index_to_secret_refs = append_index_to_secret_refs + + @property + def append_index_to_config_map_refs(self): + """ + Gets the append_index_to_config_map_refs of this V1alpha1VirtualMachinePoolNameGeneration. + + :return: The append_index_to_config_map_refs of this V1alpha1VirtualMachinePoolNameGeneration. + :rtype: bool + """ + return self._append_index_to_config_map_refs + + @append_index_to_config_map_refs.setter + def append_index_to_config_map_refs(self, append_index_to_config_map_refs): + """ + Sets the append_index_to_config_map_refs of this V1alpha1VirtualMachinePoolNameGeneration. + + :param append_index_to_config_map_refs: The append_index_to_config_map_refs of this V1alpha1VirtualMachinePoolNameGeneration. + :type: bool + """ + + self._append_index_to_config_map_refs = append_index_to_config_map_refs + + @property + def append_index_to_secret_refs(self): + """ + Gets the append_index_to_secret_refs of this V1alpha1VirtualMachinePoolNameGeneration. + + :return: The append_index_to_secret_refs of this V1alpha1VirtualMachinePoolNameGeneration. + :rtype: bool + """ + return self._append_index_to_secret_refs + + @append_index_to_secret_refs.setter + def append_index_to_secret_refs(self, append_index_to_secret_refs): + """ + Sets the append_index_to_secret_refs of this V1alpha1VirtualMachinePoolNameGeneration. + + :param append_index_to_secret_refs: The append_index_to_secret_refs of this V1alpha1VirtualMachinePoolNameGeneration. + :type: bool + """ + + self._append_index_to_secret_refs = append_index_to_secret_refs + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachinePoolNameGeneration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py b/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py index 13d31488..71874229 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py +++ b/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py @@ -31,6 +31,7 @@ class V1alpha1VirtualMachinePoolSpec(object): and the value is json key in definition. """ swagger_types = { + 'name_generation': 'V1alpha1VirtualMachinePoolNameGeneration', 'paused': 'bool', 'replicas': 'int', 'selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', @@ -38,22 +39,26 @@ class V1alpha1VirtualMachinePoolSpec(object): } attribute_map = { + 'name_generation': 'nameGeneration', 'paused': 'paused', 'replicas': 'replicas', 'selector': 'selector', 'virtual_machine_template': 'virtualMachineTemplate' } - def __init__(self, paused=None, replicas=None, selector=None, virtual_machine_template=None): + def __init__(self, name_generation=None, paused=None, replicas=None, selector=None, virtual_machine_template=None): """ V1alpha1VirtualMachinePoolSpec - a model defined in Swagger """ + self._name_generation = None self._paused = None self._replicas = None self._selector = None self._virtual_machine_template = None + if name_generation is not None: + self.name_generation = name_generation if paused is not None: self.paused = paused if replicas is not None: @@ -61,6 +66,29 @@ def __init__(self, paused=None, replicas=None, selector=None, virtual_machine_te self.selector = selector self.virtual_machine_template = virtual_machine_template + @property + def name_generation(self): + """ + Gets the name_generation of this V1alpha1VirtualMachinePoolSpec. + Options for the name generation in a pool. + + :return: The name_generation of this V1alpha1VirtualMachinePoolSpec. + :rtype: V1alpha1VirtualMachinePoolNameGeneration + """ + return self._name_generation + + @name_generation.setter + def name_generation(self, name_generation): + """ + Sets the name_generation of this V1alpha1VirtualMachinePoolSpec. + Options for the name generation in a pool. + + :param name_generation: The name_generation of this V1alpha1VirtualMachinePoolSpec. + :type: V1alpha1VirtualMachinePoolNameGeneration + """ + + self._name_generation = name_generation + @property def paused(self): """ diff --git a/setup.py b/setup.py index b1a003b4..07d130df 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.5.0-beta.0-245-g5b1d674b1d" +VERSION = "v1.5.0-beta.0-309-gaabd3bc949" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 56eb2852..2683e9f0 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.5.0-beta.0-245-g5b1d674b1d" +"packageVersion": "v1.5.0-beta.0-309-gaabd3bc949" } diff --git a/test/test_v1alpha1_virtual_machine_pool_name_generation.py b/test/test_v1alpha1_virtual_machine_pool_name_generation.py new file mode 100644 index 00000000..3b62deda --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_pool_name_generation.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_pool_name_generation import V1alpha1VirtualMachinePoolNameGeneration + + +class TestV1alpha1VirtualMachinePoolNameGeneration(unittest.TestCase): + """ V1alpha1VirtualMachinePoolNameGeneration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachinePoolNameGeneration(self): + """ + Test V1alpha1VirtualMachinePoolNameGeneration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_pool_name_generation.V1alpha1VirtualMachinePoolNameGeneration() + pass + + +if __name__ == '__main__': + unittest.main() From 7e32cc665af7ed35d7ed535ece4212495a4f82ec Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Sun, 9 Feb 2025 21:01:39 +0000 Subject: [PATCH 438/521] Client Python update by KubeVirt Prow build 1888681897098219520 --- README.md | 2 +- docs/V1Interface.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_interface.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 1abfaa4d..e1145e92 100644 --- a/README.md +++ b/README.md @@ -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.5.0-beta.0-309-gaabd3bc949 +- Package version: v1.5.0-beta.0-366-g408167e32b - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Interface.md b/docs/V1Interface.md index 4e7f0434..88219616 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **ports** | [**list[V1Port]**](V1Port.md) | List of ports to be forwarded to the virtual machine. | [optional] **slirp** | [**V1DeprecatedInterfaceSlirp**](V1DeprecatedInterfaceSlirp.md) | DeprecatedSlirp is an alias to the deprecated Slirp interface Deprecated: Removed in v1.3 | [optional] **sriov** | [**V1InterfaceSRIOV**](V1InterfaceSRIOV.md) | | [optional] -**state** | **str** | State represents the requested operational state of the interface. The (only) value supported is `absent`, expressing a request to remove the interface. | [optional] +**state** | **str** | State represents the requested operational state of the interface. The supported values are: `absent`, expressing a request to remove the interface. `down`, expressing a request to set the link down. `up`, expressing a request to set the link up. Empty value functions as `up`. | [optional] **tag** | **str** | If specified, the virtual network interface address and its tag will be provided to the guest via config drive | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 1acecdf2..66344a53 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.5.0-beta.0-309-gaabd3bc949" + release_note="Auto-generated client v1.5.0-beta.0-366-g408167e32b" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 2c0270fa..ea867295 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.5.0-beta.0-309-gaabd3bc949/python' + self.user_agent = 'Swagger-Codegen/v1.5.0-beta.0-366-g408167e32b/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 4a993db3..f5e90607 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.5.0-beta.0-309-gaabd3bc949".\ + "SDK Package Version: v1.5.0-beta.0-366-g408167e32b".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_interface.py b/kubevirt/models/v1_interface.py index 454fb1eb..7c8c39c1 100644 --- a/kubevirt/models/v1_interface.py +++ b/kubevirt/models/v1_interface.py @@ -472,7 +472,7 @@ def sriov(self, sriov): def state(self): """ Gets the state of this V1Interface. - State represents the requested operational state of the interface. The (only) value supported is `absent`, expressing a request to remove the interface. + State represents the requested operational state of the interface. The supported values are: `absent`, expressing a request to remove the interface. `down`, expressing a request to set the link down. `up`, expressing a request to set the link up. Empty value functions as `up`. :return: The state of this V1Interface. :rtype: str @@ -483,7 +483,7 @@ def state(self): def state(self, state): """ Sets the state of this V1Interface. - State represents the requested operational state of the interface. The (only) value supported is `absent`, expressing a request to remove the interface. + State represents the requested operational state of the interface. The supported values are: `absent`, expressing a request to remove the interface. `down`, expressing a request to set the link down. `up`, expressing a request to set the link up. Empty value functions as `up`. :param state: The state of this V1Interface. :type: str diff --git a/setup.py b/setup.py index 07d130df..8cf77ba6 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.5.0-beta.0-309-gaabd3bc949" +VERSION = "v1.5.0-beta.0-366-g408167e32b" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 2683e9f0..c97f14d5 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.5.0-beta.0-309-gaabd3bc949" +"packageVersion": "v1.5.0-beta.0-366-g408167e32b" } From 54a5e7aa8aaf75e83f6a639d74fd1a9cd9b5cc95 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 13 Feb 2025 03:59:16 +0000 Subject: [PATCH 439/521] Client Python update by KubeVirt Prow build 1889871898087526400 --- README.md | 3 +- ...K8sIoApimachineryPkgApiResourceQuantity.md | 9 - docs/V1DeveloperConfiguration.md | 1 + docs/V1ResourceRequirements.md | 4 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 413 +++++++++++++++++- kubevirt/__init__.py | 1 - kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 - ..._apimachinery_pkg_api_resource_quantity.py | 99 ----- kubevirt/models/v1_developer_configuration.py | 30 +- kubevirt/models/v1_resource_requirements.py | 12 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- ..._apimachinery_pkg_api_resource_quantity.py | 44 -- 16 files changed, 454 insertions(+), 173 deletions(-) delete mode 100644 docs/K8sIoApimachineryPkgApiResourceQuantity.md delete mode 100644 kubevirt/models/k8s_io_apimachinery_pkg_api_resource_quantity.py delete mode 100644 test/test_k8s_io_apimachinery_pkg_api_resource_quantity.py diff --git a/README.md b/README.md index e1145e92..617fd581 100644 --- a/README.md +++ b/README.md @@ -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.5.0-beta.0-366-g408167e32b +- Package version: v1.5.0-beta.0-440-g21b6f215c8 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -366,7 +366,6 @@ Class | Method | HTTP request | Description - [K8sIoApiCoreV1TypedObjectReference](docs/K8sIoApiCoreV1TypedObjectReference.md) - [K8sIoApiCoreV1VolumeResourceRequirements](docs/K8sIoApiCoreV1VolumeResourceRequirements.md) - [K8sIoApiCoreV1WeightedPodAffinityTerm](docs/K8sIoApiCoreV1WeightedPodAffinityTerm.md) - - [K8sIoApimachineryPkgApiResourceQuantity](docs/K8sIoApimachineryPkgApiResourceQuantity.md) - [K8sIoApimachineryPkgApisMetaV1APIGroup](docs/K8sIoApimachineryPkgApisMetaV1APIGroup.md) - [K8sIoApimachineryPkgApisMetaV1APIGroupList](docs/K8sIoApimachineryPkgApisMetaV1APIGroupList.md) - [K8sIoApimachineryPkgApisMetaV1APIResource](docs/K8sIoApimachineryPkgApisMetaV1APIResource.md) diff --git a/docs/K8sIoApimachineryPkgApiResourceQuantity.md b/docs/K8sIoApimachineryPkgApiResourceQuantity.md deleted file mode 100644 index ef58fc6a..00000000 --- a/docs/K8sIoApimachineryPkgApiResourceQuantity.md +++ /dev/null @@ -1,9 +0,0 @@ -# K8sIoApimachineryPkgApiResourceQuantity - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1DeveloperConfiguration.md b/docs/V1DeveloperConfiguration.md index b2cb4efc..1cc57cc9 100644 --- a/docs/V1DeveloperConfiguration.md +++ b/docs/V1DeveloperConfiguration.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**cluster_profiler** | **bool** | Enable the ability to pprof profile KubeVirt control plane | [optional] **cpu_allocation_ratio** | **int** | For each requested virtual CPU, CPUAllocationRatio defines how much physical CPU to request per VMI from the hosting node. The value is in fraction of a CPU thread (or core on non-hyperthreaded nodes). For example, a value of 1 means 1 physical CPU thread per VMI CPU thread. A value of 100 would be 1% of a physical thread allocated for each requested VMI thread. This option has no effect on VMIs that request dedicated CPUs. More information at: https://kubevirt.io/user-guide/operations/node_overcommit/#node-cpu-allocation-ratio Defaults to 10 | [optional] **disk_verification** | [**V1DiskVerification**](V1DiskVerification.md) | | [optional] **feature_gates** | **list[str]** | FeatureGates is the list of experimental features to enable. Defaults to none | [optional] diff --git a/docs/V1ResourceRequirements.md b/docs/V1ResourceRequirements.md index 0f1e9849..75655ecd 100644 --- a/docs/V1ResourceRequirements.md +++ b/docs/V1ResourceRequirements.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**limits** | **object** | Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". | [optional] +**limits** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". | [optional] **overcommit_guest_overhead** | **bool** | Don't ask the scheduler to take the guest-management overhead into account. Instead put the overhead only into the container's memory limit. This can lead to crashes if all memory is in use on a node. Defaults to false. | [optional] -**requests** | **object** | Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". | [optional] +**requests** | [**dict(str, K8sIoApimachineryPkgApiResourceQuantity)**](K8sIoApimachineryPkgApiResourceQuantity.md) | Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 66344a53..84348ce8 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.5.0-beta.0-366-g408167e32b" + release_note="Auto-generated client v1.5.0-beta.0-440-g21b6f215c8" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 2029ddf2..38050c4e 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -102,9 +102,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/k8s_io_api_core_v1_weighted_pod_affinity_term.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_weighted_pod_affinity_term.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1WeightedPodAffinityTerm.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_apimachinery_pkg_api_resource_quantity.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_api_resource_quantity.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgApiResourceQuantity.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_api_group.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApimachineryPkgApisMetaV1APIGroup.md @@ -1125,6 +1122,416 @@ 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/v1beta1_volume_snapshot_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_volume_snapshot_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VolumeSnapshotStatus.md +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_default_api.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/DefaultApi.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 42fef6f5..d7b1a6ef 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -41,7 +41,6 @@ from .models.k8s_io_api_core_v1_typed_object_reference import K8sIoApiCoreV1TypedObjectReference from .models.k8s_io_api_core_v1_volume_resource_requirements import K8sIoApiCoreV1VolumeResourceRequirements from .models.k8s_io_api_core_v1_weighted_pod_affinity_term import K8sIoApiCoreV1WeightedPodAffinityTerm -from .models.k8s_io_apimachinery_pkg_api_resource_quantity import K8sIoApimachineryPkgApiResourceQuantity from .models.k8s_io_apimachinery_pkg_apis_meta_v1_api_group import K8sIoApimachineryPkgApisMetaV1APIGroup from .models.k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list import K8sIoApimachineryPkgApisMetaV1APIGroupList from .models.k8s_io_apimachinery_pkg_apis_meta_v1_api_resource import K8sIoApimachineryPkgApisMetaV1APIResource diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index ea867295..c364a090 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.5.0-beta.0-366-g408167e32b/python' + self.user_agent = 'Swagger-Codegen/v1.5.0-beta.0-440-g21b6f215c8/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index f5e90607..e2e17fa3 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.5.0-beta.0-366-g408167e32b".\ + "SDK Package Version: v1.5.0-beta.0-440-g21b6f215c8".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index d2b0704f..f05750d7 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -41,7 +41,6 @@ from .k8s_io_api_core_v1_typed_object_reference import K8sIoApiCoreV1TypedObjectReference from .k8s_io_api_core_v1_volume_resource_requirements import K8sIoApiCoreV1VolumeResourceRequirements from .k8s_io_api_core_v1_weighted_pod_affinity_term import K8sIoApiCoreV1WeightedPodAffinityTerm -from .k8s_io_apimachinery_pkg_api_resource_quantity import K8sIoApimachineryPkgApiResourceQuantity from .k8s_io_apimachinery_pkg_apis_meta_v1_api_group import K8sIoApimachineryPkgApisMetaV1APIGroup from .k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list import K8sIoApimachineryPkgApisMetaV1APIGroupList from .k8s_io_apimachinery_pkg_apis_meta_v1_api_resource import K8sIoApimachineryPkgApisMetaV1APIResource diff --git a/kubevirt/models/k8s_io_apimachinery_pkg_api_resource_quantity.py b/kubevirt/models/k8s_io_apimachinery_pkg_api_resource_quantity.py deleted file mode 100644 index 683066ca..00000000 --- a/kubevirt/models/k8s_io_apimachinery_pkg_api_resource_quantity.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class K8sIoApimachineryPkgApiResourceQuantity(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - - } - - attribute_map = { - - } - - def __init__(self): - """ - K8sIoApimachineryPkgApiResourceQuantity - a model defined in Swagger - """ - - - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, K8sIoApimachineryPkgApiResourceQuantity): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_developer_configuration.py b/kubevirt/models/v1_developer_configuration.py index afd3d0aa..701dc2e1 100644 --- a/kubevirt/models/v1_developer_configuration.py +++ b/kubevirt/models/v1_developer_configuration.py @@ -31,6 +31,7 @@ class V1DeveloperConfiguration(object): and the value is json key in definition. """ swagger_types = { + 'cluster_profiler': 'bool', 'cpu_allocation_ratio': 'int', 'disk_verification': 'V1DiskVerification', 'feature_gates': 'list[str]', @@ -44,6 +45,7 @@ class V1DeveloperConfiguration(object): } attribute_map = { + 'cluster_profiler': 'clusterProfiler', 'cpu_allocation_ratio': 'cpuAllocationRatio', 'disk_verification': 'diskVerification', 'feature_gates': 'featureGates', @@ -56,11 +58,12 @@ class V1DeveloperConfiguration(object): 'use_emulation': 'useEmulation' } - def __init__(self, cpu_allocation_ratio=None, disk_verification=None, feature_gates=None, log_verbosity=None, memory_overcommit=None, minimum_cluster_tsc_frequency=None, minimum_reserve_pvc_bytes=None, node_selectors=None, pvc_tolerate_less_space_up_to_percent=None, use_emulation=None): + def __init__(self, cluster_profiler=None, cpu_allocation_ratio=None, disk_verification=None, feature_gates=None, log_verbosity=None, memory_overcommit=None, minimum_cluster_tsc_frequency=None, minimum_reserve_pvc_bytes=None, node_selectors=None, pvc_tolerate_less_space_up_to_percent=None, use_emulation=None): """ V1DeveloperConfiguration - a model defined in Swagger """ + self._cluster_profiler = None self._cpu_allocation_ratio = None self._disk_verification = None self._feature_gates = None @@ -72,6 +75,8 @@ def __init__(self, cpu_allocation_ratio=None, disk_verification=None, feature_ga self._pvc_tolerate_less_space_up_to_percent = None self._use_emulation = None + if cluster_profiler is not None: + self.cluster_profiler = cluster_profiler if cpu_allocation_ratio is not None: self.cpu_allocation_ratio = cpu_allocation_ratio if disk_verification is not None: @@ -93,6 +98,29 @@ def __init__(self, cpu_allocation_ratio=None, disk_verification=None, feature_ga if use_emulation is not None: self.use_emulation = use_emulation + @property + def cluster_profiler(self): + """ + Gets the cluster_profiler of this V1DeveloperConfiguration. + Enable the ability to pprof profile KubeVirt control plane + + :return: The cluster_profiler of this V1DeveloperConfiguration. + :rtype: bool + """ + return self._cluster_profiler + + @cluster_profiler.setter + def cluster_profiler(self, cluster_profiler): + """ + Sets the cluster_profiler of this V1DeveloperConfiguration. + Enable the ability to pprof profile KubeVirt control plane + + :param cluster_profiler: The cluster_profiler of this V1DeveloperConfiguration. + :type: bool + """ + + self._cluster_profiler = cluster_profiler + @property def cpu_allocation_ratio(self): """ diff --git a/kubevirt/models/v1_resource_requirements.py b/kubevirt/models/v1_resource_requirements.py index 86113955..36757600 100644 --- a/kubevirt/models/v1_resource_requirements.py +++ b/kubevirt/models/v1_resource_requirements.py @@ -31,9 +31,9 @@ class V1ResourceRequirements(object): and the value is json key in definition. """ swagger_types = { - 'limits': 'object', + 'limits': 'dict(str, K8sIoApimachineryPkgApiResourceQuantity)', 'overcommit_guest_overhead': 'bool', - 'requests': 'object' + 'requests': 'dict(str, K8sIoApimachineryPkgApiResourceQuantity)' } attribute_map = { @@ -65,7 +65,7 @@ def limits(self): Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". :return: The limits of this V1ResourceRequirements. - :rtype: object + :rtype: dict(str, K8sIoApimachineryPkgApiResourceQuantity) """ return self._limits @@ -76,7 +76,7 @@ def limits(self, limits): Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". :param limits: The limits of this V1ResourceRequirements. - :type: object + :type: dict(str, K8sIoApimachineryPkgApiResourceQuantity) """ self._limits = limits @@ -111,7 +111,7 @@ def requests(self): Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". :return: The requests of this V1ResourceRequirements. - :rtype: object + :rtype: dict(str, K8sIoApimachineryPkgApiResourceQuantity) """ return self._requests @@ -122,7 +122,7 @@ def requests(self, requests): Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". :param requests: The requests of this V1ResourceRequirements. - :type: object + :type: dict(str, K8sIoApimachineryPkgApiResourceQuantity) """ self._requests = requests diff --git a/setup.py b/setup.py index 8cf77ba6..54ab7cd6 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.5.0-beta.0-366-g408167e32b" +VERSION = "v1.5.0-beta.0-440-g21b6f215c8" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index c97f14d5..44f717e9 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.5.0-beta.0-366-g408167e32b" +"packageVersion": "v1.5.0-beta.0-440-g21b6f215c8" } diff --git a/test/test_k8s_io_apimachinery_pkg_api_resource_quantity.py b/test/test_k8s_io_apimachinery_pkg_api_resource_quantity.py deleted file mode 100644 index 2aff88a0..00000000 --- a/test/test_k8s_io_apimachinery_pkg_api_resource_quantity.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.k8s_io_apimachinery_pkg_api_resource_quantity import K8sIoApimachineryPkgApiResourceQuantity - - -class TestK8sIoApimachineryPkgApiResourceQuantity(unittest.TestCase): - """ K8sIoApimachineryPkgApiResourceQuantity unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testK8sIoApimachineryPkgApiResourceQuantity(self): - """ - Test K8sIoApimachineryPkgApiResourceQuantity - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.k8s_io_apimachinery_pkg_api_resource_quantity.K8sIoApimachineryPkgApiResourceQuantity() - pass - - -if __name__ == '__main__': - unittest.main() From b0a0e2c4b7dff5ab29d0a0c73d3b005b62db265d Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 13 Feb 2025 04:30:21 +0000 Subject: [PATCH 440/521] Client Python update by KubeVirt Prow build 1889871832421502976 --- README.md | 2 +- docs/V1DeveloperConfiguration.md | 1 - git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_developer_configuration.py | 30 +------------------ setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 7 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index 617fd581..dc8918b8 100644 --- a/README.md +++ b/README.md @@ -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.5.0-beta.0-440-g21b6f215c8 +- Package version: v1.5.0-beta.0-432-g720c3fc004 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1DeveloperConfiguration.md b/docs/V1DeveloperConfiguration.md index 1cc57cc9..b2cb4efc 100644 --- a/docs/V1DeveloperConfiguration.md +++ b/docs/V1DeveloperConfiguration.md @@ -3,7 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cluster_profiler** | **bool** | Enable the ability to pprof profile KubeVirt control plane | [optional] **cpu_allocation_ratio** | **int** | For each requested virtual CPU, CPUAllocationRatio defines how much physical CPU to request per VMI from the hosting node. The value is in fraction of a CPU thread (or core on non-hyperthreaded nodes). For example, a value of 1 means 1 physical CPU thread per VMI CPU thread. A value of 100 would be 1% of a physical thread allocated for each requested VMI thread. This option has no effect on VMIs that request dedicated CPUs. More information at: https://kubevirt.io/user-guide/operations/node_overcommit/#node-cpu-allocation-ratio Defaults to 10 | [optional] **disk_verification** | [**V1DiskVerification**](V1DiskVerification.md) | | [optional] **feature_gates** | **list[str]** | FeatureGates is the list of experimental features to enable. Defaults to none | [optional] diff --git a/git_push.sh b/git_push.sh index 84348ce8..a9bca887 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.5.0-beta.0-440-g21b6f215c8" + release_note="Auto-generated client v1.5.0-beta.0-432-g720c3fc004" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index c364a090..c13edb21 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.5.0-beta.0-440-g21b6f215c8/python' + self.user_agent = 'Swagger-Codegen/v1.5.0-beta.0-432-g720c3fc004/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index e2e17fa3..143c939b 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.5.0-beta.0-440-g21b6f215c8".\ + "SDK Package Version: v1.5.0-beta.0-432-g720c3fc004".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_developer_configuration.py b/kubevirt/models/v1_developer_configuration.py index 701dc2e1..afd3d0aa 100644 --- a/kubevirt/models/v1_developer_configuration.py +++ b/kubevirt/models/v1_developer_configuration.py @@ -31,7 +31,6 @@ class V1DeveloperConfiguration(object): and the value is json key in definition. """ swagger_types = { - 'cluster_profiler': 'bool', 'cpu_allocation_ratio': 'int', 'disk_verification': 'V1DiskVerification', 'feature_gates': 'list[str]', @@ -45,7 +44,6 @@ class V1DeveloperConfiguration(object): } attribute_map = { - 'cluster_profiler': 'clusterProfiler', 'cpu_allocation_ratio': 'cpuAllocationRatio', 'disk_verification': 'diskVerification', 'feature_gates': 'featureGates', @@ -58,12 +56,11 @@ class V1DeveloperConfiguration(object): 'use_emulation': 'useEmulation' } - def __init__(self, cluster_profiler=None, cpu_allocation_ratio=None, disk_verification=None, feature_gates=None, log_verbosity=None, memory_overcommit=None, minimum_cluster_tsc_frequency=None, minimum_reserve_pvc_bytes=None, node_selectors=None, pvc_tolerate_less_space_up_to_percent=None, use_emulation=None): + def __init__(self, cpu_allocation_ratio=None, disk_verification=None, feature_gates=None, log_verbosity=None, memory_overcommit=None, minimum_cluster_tsc_frequency=None, minimum_reserve_pvc_bytes=None, node_selectors=None, pvc_tolerate_less_space_up_to_percent=None, use_emulation=None): """ V1DeveloperConfiguration - a model defined in Swagger """ - self._cluster_profiler = None self._cpu_allocation_ratio = None self._disk_verification = None self._feature_gates = None @@ -75,8 +72,6 @@ def __init__(self, cluster_profiler=None, cpu_allocation_ratio=None, disk_verifi self._pvc_tolerate_less_space_up_to_percent = None self._use_emulation = None - if cluster_profiler is not None: - self.cluster_profiler = cluster_profiler if cpu_allocation_ratio is not None: self.cpu_allocation_ratio = cpu_allocation_ratio if disk_verification is not None: @@ -98,29 +93,6 @@ def __init__(self, cluster_profiler=None, cpu_allocation_ratio=None, disk_verifi if use_emulation is not None: self.use_emulation = use_emulation - @property - def cluster_profiler(self): - """ - Gets the cluster_profiler of this V1DeveloperConfiguration. - Enable the ability to pprof profile KubeVirt control plane - - :return: The cluster_profiler of this V1DeveloperConfiguration. - :rtype: bool - """ - return self._cluster_profiler - - @cluster_profiler.setter - def cluster_profiler(self, cluster_profiler): - """ - Sets the cluster_profiler of this V1DeveloperConfiguration. - Enable the ability to pprof profile KubeVirt control plane - - :param cluster_profiler: The cluster_profiler of this V1DeveloperConfiguration. - :type: bool - """ - - self._cluster_profiler = cluster_profiler - @property def cpu_allocation_ratio(self): """ diff --git a/setup.py b/setup.py index 54ab7cd6..023e3707 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.5.0-beta.0-440-g21b6f215c8" +VERSION = "v1.5.0-beta.0-432-g720c3fc004" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 44f717e9..e885532c 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.5.0-beta.0-440-g21b6f215c8" +"packageVersion": "v1.5.0-beta.0-432-g720c3fc004" } From 0cb99f083c622a77727b8a07ccc1cecd9132023b Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 13 Feb 2025 04:31:10 +0000 Subject: [PATCH 441/521] Client Python update by KubeVirt Prow build 1889871871529193472 --- README.md | 2 +- docs/V1DeveloperConfiguration.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_developer_configuration.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index dc8918b8..e9af7492 100644 --- a/README.md +++ b/README.md @@ -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.5.0-beta.0-432-g720c3fc004 +- Package version: v1.5.0-beta.0-435-gd7af2ffb46 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1DeveloperConfiguration.md b/docs/V1DeveloperConfiguration.md index b2cb4efc..1cc57cc9 100644 --- a/docs/V1DeveloperConfiguration.md +++ b/docs/V1DeveloperConfiguration.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**cluster_profiler** | **bool** | Enable the ability to pprof profile KubeVirt control plane | [optional] **cpu_allocation_ratio** | **int** | For each requested virtual CPU, CPUAllocationRatio defines how much physical CPU to request per VMI from the hosting node. The value is in fraction of a CPU thread (or core on non-hyperthreaded nodes). For example, a value of 1 means 1 physical CPU thread per VMI CPU thread. A value of 100 would be 1% of a physical thread allocated for each requested VMI thread. This option has no effect on VMIs that request dedicated CPUs. More information at: https://kubevirt.io/user-guide/operations/node_overcommit/#node-cpu-allocation-ratio Defaults to 10 | [optional] **disk_verification** | [**V1DiskVerification**](V1DiskVerification.md) | | [optional] **feature_gates** | **list[str]** | FeatureGates is the list of experimental features to enable. Defaults to none | [optional] diff --git a/git_push.sh b/git_push.sh index a9bca887..761d8e32 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.5.0-beta.0-432-g720c3fc004" + release_note="Auto-generated client v1.5.0-beta.0-435-gd7af2ffb46" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index c13edb21..d4daf04f 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.5.0-beta.0-432-g720c3fc004/python' + self.user_agent = 'Swagger-Codegen/v1.5.0-beta.0-435-gd7af2ffb46/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 143c939b..4bf3a7c2 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.5.0-beta.0-432-g720c3fc004".\ + "SDK Package Version: v1.5.0-beta.0-435-gd7af2ffb46".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_developer_configuration.py b/kubevirt/models/v1_developer_configuration.py index afd3d0aa..701dc2e1 100644 --- a/kubevirt/models/v1_developer_configuration.py +++ b/kubevirt/models/v1_developer_configuration.py @@ -31,6 +31,7 @@ class V1DeveloperConfiguration(object): and the value is json key in definition. """ swagger_types = { + 'cluster_profiler': 'bool', 'cpu_allocation_ratio': 'int', 'disk_verification': 'V1DiskVerification', 'feature_gates': 'list[str]', @@ -44,6 +45,7 @@ class V1DeveloperConfiguration(object): } attribute_map = { + 'cluster_profiler': 'clusterProfiler', 'cpu_allocation_ratio': 'cpuAllocationRatio', 'disk_verification': 'diskVerification', 'feature_gates': 'featureGates', @@ -56,11 +58,12 @@ class V1DeveloperConfiguration(object): 'use_emulation': 'useEmulation' } - def __init__(self, cpu_allocation_ratio=None, disk_verification=None, feature_gates=None, log_verbosity=None, memory_overcommit=None, minimum_cluster_tsc_frequency=None, minimum_reserve_pvc_bytes=None, node_selectors=None, pvc_tolerate_less_space_up_to_percent=None, use_emulation=None): + def __init__(self, cluster_profiler=None, cpu_allocation_ratio=None, disk_verification=None, feature_gates=None, log_verbosity=None, memory_overcommit=None, minimum_cluster_tsc_frequency=None, minimum_reserve_pvc_bytes=None, node_selectors=None, pvc_tolerate_less_space_up_to_percent=None, use_emulation=None): """ V1DeveloperConfiguration - a model defined in Swagger """ + self._cluster_profiler = None self._cpu_allocation_ratio = None self._disk_verification = None self._feature_gates = None @@ -72,6 +75,8 @@ def __init__(self, cpu_allocation_ratio=None, disk_verification=None, feature_ga self._pvc_tolerate_less_space_up_to_percent = None self._use_emulation = None + if cluster_profiler is not None: + self.cluster_profiler = cluster_profiler if cpu_allocation_ratio is not None: self.cpu_allocation_ratio = cpu_allocation_ratio if disk_verification is not None: @@ -93,6 +98,29 @@ def __init__(self, cpu_allocation_ratio=None, disk_verification=None, feature_ga if use_emulation is not None: self.use_emulation = use_emulation + @property + def cluster_profiler(self): + """ + Gets the cluster_profiler of this V1DeveloperConfiguration. + Enable the ability to pprof profile KubeVirt control plane + + :return: The cluster_profiler of this V1DeveloperConfiguration. + :rtype: bool + """ + return self._cluster_profiler + + @cluster_profiler.setter + def cluster_profiler(self, cluster_profiler): + """ + Sets the cluster_profiler of this V1DeveloperConfiguration. + Enable the ability to pprof profile KubeVirt control plane + + :param cluster_profiler: The cluster_profiler of this V1DeveloperConfiguration. + :type: bool + """ + + self._cluster_profiler = cluster_profiler + @property def cpu_allocation_ratio(self): """ diff --git a/setup.py b/setup.py index 023e3707..17d499e3 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.5.0-beta.0-432-g720c3fc004" +VERSION = "v1.5.0-beta.0-435-gd7af2ffb46" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index e885532c..19a2f450 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.5.0-beta.0-432-g720c3fc004" +"packageVersion": "v1.5.0-beta.0-435-gd7af2ffb46" } From e32c280e76fb33fa78052a273eb6a8bc89843707 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 13 Feb 2025 06:23:41 +0000 Subject: [PATCH 442/521] Client Python update by KubeVirt Prow build 1889911582771646464 --- README.md | 2 +- docs/V1KubeVirtConfiguration.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_kube_virt_configuration.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index e9af7492..85618e5c 100644 --- a/README.md +++ b/README.md @@ -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.5.0-beta.0-435-gd7af2ffb46 +- Package version: v1.5.0-beta.0-449-ge57cd217d7 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index f0dd2967..0e10d8bf 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -38,7 +38,7 @@ Name | Type | Description | Notes **virtual_machine_instances_per_node** | **int** | | [optional] **virtual_machine_options** | [**V1VirtualMachineOptions**](V1VirtualMachineOptions.md) | | [optional] **vm_rollout_strategy** | **str** | VMRolloutStrategy defines how live-updatable fields, like CPU sockets, memory, tolerations, and affinity, are propagated from a VM to its VMI. | [optional] -**vm_state_storage_class** | **str** | VMStateStorageClass is the name of the storage class to use for the PVCs created to preserve VM state, like TPM. The storage class must support RWX in filesystem mode. | [optional] +**vm_state_storage_class** | **str** | VMStateStorageClass is the name of the storage class to use for the PVCs created to preserve VM state, like TPM. | [optional] **webhook_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 761d8e32..e6c356a6 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.5.0-beta.0-435-gd7af2ffb46" + release_note="Auto-generated client v1.5.0-beta.0-449-ge57cd217d7" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index d4daf04f..de4b1773 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.5.0-beta.0-435-gd7af2ffb46/python' + self.user_agent = 'Swagger-Codegen/v1.5.0-beta.0-449-ge57cd217d7/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 4bf3a7c2..f8554791 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.5.0-beta.0-435-gd7af2ffb46".\ + "SDK Package Version: v1.5.0-beta.0-449-ge57cd217d7".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index 4c3c2cc3..6ad308d7 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -1001,7 +1001,7 @@ def vm_rollout_strategy(self, vm_rollout_strategy): def vm_state_storage_class(self): """ Gets the vm_state_storage_class of this V1KubeVirtConfiguration. - VMStateStorageClass is the name of the storage class to use for the PVCs created to preserve VM state, like TPM. The storage class must support RWX in filesystem mode. + VMStateStorageClass is the name of the storage class to use for the PVCs created to preserve VM state, like TPM. :return: The vm_state_storage_class of this V1KubeVirtConfiguration. :rtype: str @@ -1012,7 +1012,7 @@ def vm_state_storage_class(self): def vm_state_storage_class(self, vm_state_storage_class): """ Sets the vm_state_storage_class of this V1KubeVirtConfiguration. - VMStateStorageClass is the name of the storage class to use for the PVCs created to preserve VM state, like TPM. The storage class must support RWX in filesystem mode. + VMStateStorageClass is the name of the storage class to use for the PVCs created to preserve VM state, like TPM. :param vm_state_storage_class: The vm_state_storage_class of this V1KubeVirtConfiguration. :type: str diff --git a/setup.py b/setup.py index 17d499e3..9a6d6768 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.5.0-beta.0-435-gd7af2ffb46" +VERSION = "v1.5.0-beta.0-449-ge57cd217d7" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 19a2f450..82e0dc61 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.5.0-beta.0-435-gd7af2ffb46" +"packageVersion": "v1.5.0-beta.0-449-ge57cd217d7" } From b2a1969286ba6836e969100011e1aec226575704 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 13 Feb 2025 18:23:20 +0000 Subject: [PATCH 443/521] Client Python update by KubeVirt Prow build 1890088759584624640 --- README.md | 4 +- docs/V1ControllerRevisionRef.md | 10 + docs/V1InstancetypeStatusRef.md | 14 ++ docs/V1VirtualMachineStatus.md | 2 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 + kubevirt/__init__.py | 2 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 + kubevirt/models/v1_controller_revision_ref.py | 125 +++++++++ kubevirt/models/v1_instancetype_status_ref.py | 237 ++++++++++++++++++ kubevirt/models/v1_virtual_machine_status.py | 58 ++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_controller_revision_ref.py | 44 ++++ test/test_v1_instancetype_status_ref.py | 44 ++++ 17 files changed, 551 insertions(+), 7 deletions(-) create mode 100644 docs/V1ControllerRevisionRef.md create mode 100644 docs/V1InstancetypeStatusRef.md create mode 100644 kubevirt/models/v1_controller_revision_ref.py create mode 100644 kubevirt/models/v1_instancetype_status_ref.py create mode 100644 test/test_v1_controller_revision_ref.py create mode 100644 test/test_v1_instancetype_status_ref.py diff --git a/README.md b/README.md index 85618e5c..c1914cf5 100644 --- a/README.md +++ b/README.md @@ -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.5.0-beta.0-449-ge57cd217d7 +- Package version: v1.5.0-beta.0-466-g71b7c6dce4 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -418,6 +418,7 @@ Class | Method | HTTP request | Description - [V1ConfigMapVolumeSource](docs/V1ConfigMapVolumeSource.md) - [V1ContainerDiskInfo](docs/V1ContainerDiskInfo.md) - [V1ContainerDiskSource](docs/V1ContainerDiskSource.md) + - [V1ControllerRevisionRef](docs/V1ControllerRevisionRef.md) - [V1CustomBlockSize](docs/V1CustomBlockSize.md) - [V1CustomProfile](docs/V1CustomProfile.md) - [V1CustomizeComponents](docs/V1CustomizeComponents.md) @@ -475,6 +476,7 @@ Class | Method | HTTP request | Description - [V1Input](docs/V1Input.md) - [V1InstancetypeConfiguration](docs/V1InstancetypeConfiguration.md) - [V1InstancetypeMatcher](docs/V1InstancetypeMatcher.md) + - [V1InstancetypeStatusRef](docs/V1InstancetypeStatusRef.md) - [V1Interface](docs/V1Interface.md) - [V1InterfaceBindingMigration](docs/V1InterfaceBindingMigration.md) - [V1InterfaceBindingPlugin](docs/V1InterfaceBindingPlugin.md) diff --git a/docs/V1ControllerRevisionRef.md b/docs/V1ControllerRevisionRef.md new file mode 100644 index 00000000..15c83117 --- /dev/null +++ b/docs/V1ControllerRevisionRef.md @@ -0,0 +1,10 @@ +# V1ControllerRevisionRef + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the ControllerRevision | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1InstancetypeStatusRef.md b/docs/V1InstancetypeStatusRef.md new file mode 100644 index 00000000..c7241b91 --- /dev/null +++ b/docs/V1InstancetypeStatusRef.md @@ -0,0 +1,14 @@ +# V1InstancetypeStatusRef + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**controller_revision_ref** | [**V1ControllerRevisionRef**](V1ControllerRevisionRef.md) | ControllerRef specifies the ControllerRevision storing a copy of the object captured when it is first seen by the VirtualMachine controller | [optional] +**infer_from_volume** | **str** | InferFromVolume lists the name of a volume that should be used to infer or discover the resource | [optional] +**infer_from_volume_failure_policy** | **str** | InferFromVolumeFailurePolicy controls what should happen on failure when inferring the resource | [optional] +**kind** | **str** | Kind specifies the kind of resource | [optional] +**name** | **str** | Name is the name of resource | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineStatus.md b/docs/V1VirtualMachineStatus.md index cd7beacd..e8c00fdb 100644 --- a/docs/V1VirtualMachineStatus.md +++ b/docs/V1VirtualMachineStatus.md @@ -6,8 +6,10 @@ Name | Type | Description | Notes **conditions** | [**list[V1VirtualMachineCondition]**](V1VirtualMachineCondition.md) | Hold the state information of the VirtualMachine and its VirtualMachineInstance | [optional] **created** | **bool** | Created indicates if the virtual machine is created in the cluster | [optional] **desired_generation** | **int** | DesiredGeneration is the generation which is desired for the VMI. This will be used in comparisons with ObservedGeneration to understand when the VMI is out of sync. This will be changed at the same time as ObservedGeneration to remove errors which could occur if Generation is updated through an Update() before ObservedGeneration in Status. | [optional] +**instancetype_ref** | [**V1InstancetypeStatusRef**](V1InstancetypeStatusRef.md) | InstancetypeRef captures the state of any referenced instance type from the VirtualMachine | [optional] **memory_dump_request** | [**V1VirtualMachineMemoryDumpRequest**](V1VirtualMachineMemoryDumpRequest.md) | MemoryDumpRequest tracks memory dump request phase and info of getting a memory dump to the given pvc | [optional] **observed_generation** | **int** | ObservedGeneration is the generation observed by the vmi when started. | [optional] +**preference_ref** | [**V1InstancetypeStatusRef**](V1InstancetypeStatusRef.md) | PreferenceRef captures the state of any referenced preference from the VirtualMachine | [optional] **printable_status** | **str** | PrintableStatus is a human readable, high-level representation of the status of the virtual machine | [optional] **ready** | **bool** | Ready indicates if the virtual machine is running and ready | [optional] **restore_in_progress** | **str** | RestoreInProgress is the name of the VirtualMachineRestore currently executing | [optional] diff --git a/git_push.sh b/git_push.sh index e6c356a6..85ff9343 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.5.0-beta.0-449-ge57cd217d7" + release_note="Auto-generated client v1.5.0-beta.0-466-g71b7c6dce4" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 38050c4e..5fa931f2 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -258,6 +258,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_container_disk_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_container_disk_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ContainerDiskSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_controller_revision_ref.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_controller_revision_ref.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ControllerRevisionRef.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_custom_block_size.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_custom_block_size.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CustomBlockSize.md @@ -429,6 +432,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_instancetype_matcher.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_instancetype_matcher.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InstancetypeMatcher.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_instancetype_status_ref.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_instancetype_status_ref.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InstancetypeStatusRef.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_interface.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Interface.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index d7b1a6ef..8794aa8f 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -93,6 +93,7 @@ from .models.v1_config_map_volume_source import V1ConfigMapVolumeSource from .models.v1_container_disk_info import V1ContainerDiskInfo from .models.v1_container_disk_source import V1ContainerDiskSource +from .models.v1_controller_revision_ref import V1ControllerRevisionRef from .models.v1_custom_block_size import V1CustomBlockSize from .models.v1_custom_profile import V1CustomProfile from .models.v1_customize_components import V1CustomizeComponents @@ -150,6 +151,7 @@ from .models.v1_input import V1Input from .models.v1_instancetype_configuration import V1InstancetypeConfiguration from .models.v1_instancetype_matcher import V1InstancetypeMatcher +from .models.v1_instancetype_status_ref import V1InstancetypeStatusRef from .models.v1_interface import V1Interface from .models.v1_interface_binding_migration import V1InterfaceBindingMigration from .models.v1_interface_binding_plugin import V1InterfaceBindingPlugin diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index de4b1773..b821c200 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.5.0-beta.0-449-ge57cd217d7/python' + self.user_agent = 'Swagger-Codegen/v1.5.0-beta.0-466-g71b7c6dce4/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index f8554791..91aec7af 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.5.0-beta.0-449-ge57cd217d7".\ + "SDK Package Version: v1.5.0-beta.0-466-g71b7c6dce4".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index f05750d7..343eb526 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -93,6 +93,7 @@ from .v1_config_map_volume_source import V1ConfigMapVolumeSource from .v1_container_disk_info import V1ContainerDiskInfo from .v1_container_disk_source import V1ContainerDiskSource +from .v1_controller_revision_ref import V1ControllerRevisionRef from .v1_custom_block_size import V1CustomBlockSize from .v1_custom_profile import V1CustomProfile from .v1_customize_components import V1CustomizeComponents @@ -150,6 +151,7 @@ from .v1_input import V1Input from .v1_instancetype_configuration import V1InstancetypeConfiguration from .v1_instancetype_matcher import V1InstancetypeMatcher +from .v1_instancetype_status_ref import V1InstancetypeStatusRef from .v1_interface import V1Interface from .v1_interface_binding_migration import V1InterfaceBindingMigration from .v1_interface_binding_plugin import V1InterfaceBindingPlugin diff --git a/kubevirt/models/v1_controller_revision_ref.py b/kubevirt/models/v1_controller_revision_ref.py new file mode 100644 index 00000000..700ca02e --- /dev/null +++ b/kubevirt/models/v1_controller_revision_ref.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ControllerRevisionRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str' + } + + attribute_map = { + 'name': 'name' + } + + def __init__(self, name=None): + """ + V1ControllerRevisionRef - a model defined in Swagger + """ + + self._name = None + + if name is not None: + self.name = name + + @property + def name(self): + """ + Gets the name of this V1ControllerRevisionRef. + Name of the ControllerRevision + + :return: The name of this V1ControllerRevisionRef. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1ControllerRevisionRef. + Name of the ControllerRevision + + :param name: The name of this V1ControllerRevisionRef. + :type: str + """ + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1ControllerRevisionRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_instancetype_status_ref.py b/kubevirt/models/v1_instancetype_status_ref.py new file mode 100644 index 00000000..a8487873 --- /dev/null +++ b/kubevirt/models/v1_instancetype_status_ref.py @@ -0,0 +1,237 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1InstancetypeStatusRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'controller_revision_ref': 'V1ControllerRevisionRef', + 'infer_from_volume': 'str', + 'infer_from_volume_failure_policy': 'str', + 'kind': 'str', + 'name': 'str' + } + + attribute_map = { + 'controller_revision_ref': 'controllerRevisionRef', + 'infer_from_volume': 'inferFromVolume', + 'infer_from_volume_failure_policy': 'inferFromVolumeFailurePolicy', + 'kind': 'kind', + 'name': 'name' + } + + def __init__(self, controller_revision_ref=None, infer_from_volume=None, infer_from_volume_failure_policy=None, kind=None, name=None): + """ + V1InstancetypeStatusRef - a model defined in Swagger + """ + + self._controller_revision_ref = None + self._infer_from_volume = None + self._infer_from_volume_failure_policy = None + self._kind = None + self._name = None + + if controller_revision_ref is not None: + self.controller_revision_ref = controller_revision_ref + if infer_from_volume is not None: + self.infer_from_volume = infer_from_volume + if infer_from_volume_failure_policy is not None: + self.infer_from_volume_failure_policy = infer_from_volume_failure_policy + if kind is not None: + self.kind = kind + if name is not None: + self.name = name + + @property + def controller_revision_ref(self): + """ + Gets the controller_revision_ref of this V1InstancetypeStatusRef. + ControllerRef specifies the ControllerRevision storing a copy of the object captured when it is first seen by the VirtualMachine controller + + :return: The controller_revision_ref of this V1InstancetypeStatusRef. + :rtype: V1ControllerRevisionRef + """ + return self._controller_revision_ref + + @controller_revision_ref.setter + def controller_revision_ref(self, controller_revision_ref): + """ + Sets the controller_revision_ref of this V1InstancetypeStatusRef. + ControllerRef specifies the ControllerRevision storing a copy of the object captured when it is first seen by the VirtualMachine controller + + :param controller_revision_ref: The controller_revision_ref of this V1InstancetypeStatusRef. + :type: V1ControllerRevisionRef + """ + + self._controller_revision_ref = controller_revision_ref + + @property + def infer_from_volume(self): + """ + Gets the infer_from_volume of this V1InstancetypeStatusRef. + InferFromVolume lists the name of a volume that should be used to infer or discover the resource + + :return: The infer_from_volume of this V1InstancetypeStatusRef. + :rtype: str + """ + return self._infer_from_volume + + @infer_from_volume.setter + def infer_from_volume(self, infer_from_volume): + """ + Sets the infer_from_volume of this V1InstancetypeStatusRef. + InferFromVolume lists the name of a volume that should be used to infer or discover the resource + + :param infer_from_volume: The infer_from_volume of this V1InstancetypeStatusRef. + :type: str + """ + + self._infer_from_volume = infer_from_volume + + @property + def infer_from_volume_failure_policy(self): + """ + Gets the infer_from_volume_failure_policy of this V1InstancetypeStatusRef. + InferFromVolumeFailurePolicy controls what should happen on failure when inferring the resource + + :return: The infer_from_volume_failure_policy of this V1InstancetypeStatusRef. + :rtype: str + """ + return self._infer_from_volume_failure_policy + + @infer_from_volume_failure_policy.setter + def infer_from_volume_failure_policy(self, infer_from_volume_failure_policy): + """ + Sets the infer_from_volume_failure_policy of this V1InstancetypeStatusRef. + InferFromVolumeFailurePolicy controls what should happen on failure when inferring the resource + + :param infer_from_volume_failure_policy: The infer_from_volume_failure_policy of this V1InstancetypeStatusRef. + :type: str + """ + + self._infer_from_volume_failure_policy = infer_from_volume_failure_policy + + @property + def kind(self): + """ + Gets the kind of this V1InstancetypeStatusRef. + Kind specifies the kind of resource + + :return: The kind of this V1InstancetypeStatusRef. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1InstancetypeStatusRef. + Kind specifies the kind of resource + + :param kind: The kind of this V1InstancetypeStatusRef. + :type: str + """ + + self._kind = kind + + @property + def name(self): + """ + Gets the name of this V1InstancetypeStatusRef. + Name is the name of resource + + :return: The name of this V1InstancetypeStatusRef. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1InstancetypeStatusRef. + Name is the name of resource + + :param name: The name of this V1InstancetypeStatusRef. + :type: str + """ + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1InstancetypeStatusRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_status.py b/kubevirt/models/v1_virtual_machine_status.py index 1d0ddc54..c701f208 100644 --- a/kubevirt/models/v1_virtual_machine_status.py +++ b/kubevirt/models/v1_virtual_machine_status.py @@ -34,8 +34,10 @@ class V1VirtualMachineStatus(object): 'conditions': 'list[V1VirtualMachineCondition]', 'created': 'bool', 'desired_generation': 'int', + 'instancetype_ref': 'V1InstancetypeStatusRef', 'memory_dump_request': 'V1VirtualMachineMemoryDumpRequest', 'observed_generation': 'int', + 'preference_ref': 'V1InstancetypeStatusRef', 'printable_status': 'str', 'ready': 'bool', 'restore_in_progress': 'str', @@ -52,8 +54,10 @@ class V1VirtualMachineStatus(object): 'conditions': 'conditions', 'created': 'created', 'desired_generation': 'desiredGeneration', + 'instancetype_ref': 'instancetypeRef', 'memory_dump_request': 'memoryDumpRequest', 'observed_generation': 'observedGeneration', + 'preference_ref': 'preferenceRef', 'printable_status': 'printableStatus', 'ready': 'ready', 'restore_in_progress': 'restoreInProgress', @@ -66,7 +70,7 @@ class V1VirtualMachineStatus(object): 'volume_update_state': 'volumeUpdateState' } - def __init__(self, conditions=None, created=None, desired_generation=None, memory_dump_request=None, observed_generation=None, printable_status=None, ready=None, restore_in_progress=None, run_strategy=None, snapshot_in_progress=None, start_failure=None, state_change_requests=None, volume_requests=None, volume_snapshot_statuses=None, volume_update_state=None): + def __init__(self, conditions=None, created=None, desired_generation=None, instancetype_ref=None, memory_dump_request=None, observed_generation=None, preference_ref=None, printable_status=None, ready=None, restore_in_progress=None, run_strategy=None, snapshot_in_progress=None, start_failure=None, state_change_requests=None, volume_requests=None, volume_snapshot_statuses=None, volume_update_state=None): """ V1VirtualMachineStatus - a model defined in Swagger """ @@ -74,8 +78,10 @@ def __init__(self, conditions=None, created=None, desired_generation=None, memor self._conditions = None self._created = None self._desired_generation = None + self._instancetype_ref = None self._memory_dump_request = None self._observed_generation = None + self._preference_ref = None self._printable_status = None self._ready = None self._restore_in_progress = None @@ -93,10 +99,14 @@ def __init__(self, conditions=None, created=None, desired_generation=None, memor self.created = created if desired_generation is not None: self.desired_generation = desired_generation + if instancetype_ref is not None: + self.instancetype_ref = instancetype_ref if memory_dump_request is not None: self.memory_dump_request = memory_dump_request if observed_generation is not None: self.observed_generation = observed_generation + if preference_ref is not None: + self.preference_ref = preference_ref if printable_status is not None: self.printable_status = printable_status if ready is not None: @@ -187,6 +197,29 @@ def desired_generation(self, desired_generation): self._desired_generation = desired_generation + @property + def instancetype_ref(self): + """ + Gets the instancetype_ref of this V1VirtualMachineStatus. + InstancetypeRef captures the state of any referenced instance type from the VirtualMachine + + :return: The instancetype_ref of this V1VirtualMachineStatus. + :rtype: V1InstancetypeStatusRef + """ + return self._instancetype_ref + + @instancetype_ref.setter + def instancetype_ref(self, instancetype_ref): + """ + Sets the instancetype_ref of this V1VirtualMachineStatus. + InstancetypeRef captures the state of any referenced instance type from the VirtualMachine + + :param instancetype_ref: The instancetype_ref of this V1VirtualMachineStatus. + :type: V1InstancetypeStatusRef + """ + + self._instancetype_ref = instancetype_ref + @property def memory_dump_request(self): """ @@ -233,6 +266,29 @@ def observed_generation(self, observed_generation): self._observed_generation = observed_generation + @property + def preference_ref(self): + """ + Gets the preference_ref of this V1VirtualMachineStatus. + PreferenceRef captures the state of any referenced preference from the VirtualMachine + + :return: The preference_ref of this V1VirtualMachineStatus. + :rtype: V1InstancetypeStatusRef + """ + return self._preference_ref + + @preference_ref.setter + def preference_ref(self, preference_ref): + """ + Sets the preference_ref of this V1VirtualMachineStatus. + PreferenceRef captures the state of any referenced preference from the VirtualMachine + + :param preference_ref: The preference_ref of this V1VirtualMachineStatus. + :type: V1InstancetypeStatusRef + """ + + self._preference_ref = preference_ref + @property def printable_status(self): """ diff --git a/setup.py b/setup.py index 9a6d6768..feb58326 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.5.0-beta.0-449-ge57cd217d7" +VERSION = "v1.5.0-beta.0-466-g71b7c6dce4" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 82e0dc61..5dbe00c4 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.5.0-beta.0-449-ge57cd217d7" +"packageVersion": "v1.5.0-beta.0-466-g71b7c6dce4" } diff --git a/test/test_v1_controller_revision_ref.py b/test/test_v1_controller_revision_ref.py new file mode 100644 index 00000000..0526fda4 --- /dev/null +++ b/test/test_v1_controller_revision_ref.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_controller_revision_ref import V1ControllerRevisionRef + + +class TestV1ControllerRevisionRef(unittest.TestCase): + """ V1ControllerRevisionRef unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ControllerRevisionRef(self): + """ + Test V1ControllerRevisionRef + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_controller_revision_ref.V1ControllerRevisionRef() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_instancetype_status_ref.py b/test/test_v1_instancetype_status_ref.py new file mode 100644 index 00000000..af0f739f --- /dev/null +++ b/test/test_v1_instancetype_status_ref.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_instancetype_status_ref import V1InstancetypeStatusRef + + +class TestV1InstancetypeStatusRef(unittest.TestCase): + """ V1InstancetypeStatusRef unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1InstancetypeStatusRef(self): + """ + Test V1InstancetypeStatusRef + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_instancetype_status_ref.V1InstancetypeStatusRef() + pass + + +if __name__ == '__main__': + unittest.main() From 0cfce25ebc6c9409df4c53a652952b2fc13c78ea Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 27 Feb 2025 14:51:36 +0000 Subject: [PATCH 444/521] Client Python update by KubeVirt Prow build 1895107364684566528 --- README.md | 2 +- docs/V1MigrateOptions.md | 1 + docs/V1VirtualMachineInstanceMigrationSpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_migrate_options.py | 30 ++++++++++++++++++- ...virtual_machine_instance_migration_spec.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 66 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index c1914cf5..d749aca7 100644 --- a/README.md +++ b/README.md @@ -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.5.0-beta.0-466-g71b7c6dce4 +- Package version: v1.5.0-beta.0-598-gdf334c1863 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1MigrateOptions.md b/docs/V1MigrateOptions.md index 457cc292..5c3f4a20 100644 --- a/docs/V1MigrateOptions.md +++ b/docs/V1MigrateOptions.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**added_node_selector** | **dict(str, str)** | AddedNodeSelector is an additional selector that can be used to complement a NodeSelector or NodeAffinity as set on the VM to restrict the set of allowed target nodes for a migration. In case of key collisions, values set on the VM objects are going to be preserved to ensure that addedNodeSelector can only restrict but not bypass constraints already set on the VM object. | [optional] **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **dry_run** | **list[str]** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] diff --git a/docs/V1VirtualMachineInstanceMigrationSpec.md b/docs/V1VirtualMachineInstanceMigrationSpec.md index 8b4b0a33..684643a1 100644 --- a/docs/V1VirtualMachineInstanceMigrationSpec.md +++ b/docs/V1VirtualMachineInstanceMigrationSpec.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**added_node_selector** | **dict(str, str)** | AddedNodeSelector is an additional selector that can be used to complement a NodeSelector or NodeAffinity as set on the VM to restrict the set of allowed target nodes for a migration. In case of key collisions, values set on the VM objects are going to be preserved to ensure that addedNodeSelector can only restrict but not bypass constraints already set on the VM object. | [optional] **vmi_name** | **str** | The name of the VMI to perform the migration on. VMI must exist in the migration objects namespace | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 85ff9343..f18313e5 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.5.0-beta.0-466-g71b7c6dce4" + release_note="Auto-generated client v1.5.0-beta.0-598-gdf334c1863" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index b821c200..b76da681 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.5.0-beta.0-466-g71b7c6dce4/python' + self.user_agent = 'Swagger-Codegen/v1.5.0-beta.0-598-gdf334c1863/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 91aec7af..0c73f9ec 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.5.0-beta.0-466-g71b7c6dce4".\ + "SDK Package Version: v1.5.0-beta.0-598-gdf334c1863".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_migrate_options.py b/kubevirt/models/v1_migrate_options.py index 9f3b3f47..a4f59be7 100644 --- a/kubevirt/models/v1_migrate_options.py +++ b/kubevirt/models/v1_migrate_options.py @@ -31,26 +31,31 @@ class V1MigrateOptions(object): and the value is json key in definition. """ swagger_types = { + 'added_node_selector': 'dict(str, str)', 'api_version': 'str', 'dry_run': 'list[str]', 'kind': 'str' } attribute_map = { + 'added_node_selector': 'addedNodeSelector', 'api_version': 'apiVersion', 'dry_run': 'dryRun', 'kind': 'kind' } - def __init__(self, api_version=None, dry_run=None, kind=None): + def __init__(self, added_node_selector=None, api_version=None, dry_run=None, kind=None): """ V1MigrateOptions - a model defined in Swagger """ + self._added_node_selector = None self._api_version = None self._dry_run = None self._kind = None + if added_node_selector is not None: + self.added_node_selector = added_node_selector if api_version is not None: self.api_version = api_version if dry_run is not None: @@ -58,6 +63,29 @@ def __init__(self, api_version=None, dry_run=None, kind=None): if kind is not None: self.kind = kind + @property + def added_node_selector(self): + """ + Gets the added_node_selector of this V1MigrateOptions. + AddedNodeSelector is an additional selector that can be used to complement a NodeSelector or NodeAffinity as set on the VM to restrict the set of allowed target nodes for a migration. In case of key collisions, values set on the VM objects are going to be preserved to ensure that addedNodeSelector can only restrict but not bypass constraints already set on the VM object. + + :return: The added_node_selector of this V1MigrateOptions. + :rtype: dict(str, str) + """ + return self._added_node_selector + + @added_node_selector.setter + def added_node_selector(self, added_node_selector): + """ + Sets the added_node_selector of this V1MigrateOptions. + AddedNodeSelector is an additional selector that can be used to complement a NodeSelector or NodeAffinity as set on the VM to restrict the set of allowed target nodes for a migration. In case of key collisions, values set on the VM objects are going to be preserved to ensure that addedNodeSelector can only restrict but not bypass constraints already set on the VM object. + + :param added_node_selector: The added_node_selector of this V1MigrateOptions. + :type: dict(str, str) + """ + + self._added_node_selector = added_node_selector + @property def api_version(self): """ diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_spec.py b/kubevirt/models/v1_virtual_machine_instance_migration_spec.py index 8f03dede..0756ec83 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_spec.py @@ -31,23 +31,51 @@ class V1VirtualMachineInstanceMigrationSpec(object): and the value is json key in definition. """ swagger_types = { + 'added_node_selector': 'dict(str, str)', 'vmi_name': 'str' } attribute_map = { + 'added_node_selector': 'addedNodeSelector', 'vmi_name': 'vmiName' } - def __init__(self, vmi_name=None): + def __init__(self, added_node_selector=None, vmi_name=None): """ V1VirtualMachineInstanceMigrationSpec - a model defined in Swagger """ + self._added_node_selector = None self._vmi_name = None + if added_node_selector is not None: + self.added_node_selector = added_node_selector if vmi_name is not None: self.vmi_name = vmi_name + @property + def added_node_selector(self): + """ + Gets the added_node_selector of this V1VirtualMachineInstanceMigrationSpec. + AddedNodeSelector is an additional selector that can be used to complement a NodeSelector or NodeAffinity as set on the VM to restrict the set of allowed target nodes for a migration. In case of key collisions, values set on the VM objects are going to be preserved to ensure that addedNodeSelector can only restrict but not bypass constraints already set on the VM object. + + :return: The added_node_selector of this V1VirtualMachineInstanceMigrationSpec. + :rtype: dict(str, str) + """ + return self._added_node_selector + + @added_node_selector.setter + def added_node_selector(self, added_node_selector): + """ + Sets the added_node_selector of this V1VirtualMachineInstanceMigrationSpec. + AddedNodeSelector is an additional selector that can be used to complement a NodeSelector or NodeAffinity as set on the VM to restrict the set of allowed target nodes for a migration. In case of key collisions, values set on the VM objects are going to be preserved to ensure that addedNodeSelector can only restrict but not bypass constraints already set on the VM object. + + :param added_node_selector: The added_node_selector of this V1VirtualMachineInstanceMigrationSpec. + :type: dict(str, str) + """ + + self._added_node_selector = added_node_selector + @property def vmi_name(self): """ diff --git a/setup.py b/setup.py index feb58326..2824049f 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.5.0-beta.0-466-g71b7c6dce4" +VERSION = "v1.5.0-beta.0-598-gdf334c1863" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 5dbe00c4..9cdf7a4b 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.5.0-beta.0-466-g71b7c6dce4" +"packageVersion": "v1.5.0-beta.0-598-gdf334c1863" } From 52f5602d8a2534e189ec5fef8423b3af4e8559e2 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 26 Mar 2025 07:26:24 +0000 Subject: [PATCH 445/521] Client Python update by KubeVirt Prow build 1904783645978136576 --- README.md | 2 +- docs/V1TPMDevice.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_tpm_device.py | 30 +++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index d749aca7..3e869a48 100644 --- a/README.md +++ b/README.md @@ -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.5.0-beta.0-598-gdf334c1863 +- Package version: v1.5.0-beta.0-875-geb685565ed - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1TPMDevice.md b/docs/V1TPMDevice.md index 3f0f2dd9..d7a734f1 100644 --- a/docs/V1TPMDevice.md +++ b/docs/V1TPMDevice.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | Enabled allows a user to explictly disable the vTPM even when one is enabled by a preference referenced by the VirtualMachine Defaults to True | [optional] **persistent** | **bool** | Persistent indicates the state of the TPM device should be kept accross reboots Defaults to false | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index f18313e5..ce8c071a 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.5.0-beta.0-598-gdf334c1863" + release_note="Auto-generated client v1.5.0-beta.0-875-geb685565ed" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index b76da681..fca4fe54 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.5.0-beta.0-598-gdf334c1863/python' + self.user_agent = 'Swagger-Codegen/v1.5.0-beta.0-875-geb685565ed/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 0c73f9ec..5749829b 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.5.0-beta.0-598-gdf334c1863".\ + "SDK Package Version: v1.5.0-beta.0-875-geb685565ed".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_tpm_device.py b/kubevirt/models/v1_tpm_device.py index 43e8cf40..9b37ab17 100644 --- a/kubevirt/models/v1_tpm_device.py +++ b/kubevirt/models/v1_tpm_device.py @@ -31,23 +31,51 @@ class V1TPMDevice(object): and the value is json key in definition. """ swagger_types = { + 'enabled': 'bool', 'persistent': 'bool' } attribute_map = { + 'enabled': 'enabled', 'persistent': 'persistent' } - def __init__(self, persistent=None): + def __init__(self, enabled=None, persistent=None): """ V1TPMDevice - a model defined in Swagger """ + self._enabled = None self._persistent = None + if enabled is not None: + self.enabled = enabled if persistent is not None: self.persistent = persistent + @property + def enabled(self): + """ + Gets the enabled of this V1TPMDevice. + Enabled allows a user to explictly disable the vTPM even when one is enabled by a preference referenced by the VirtualMachine Defaults to True + + :return: The enabled of this V1TPMDevice. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """ + Sets the enabled of this V1TPMDevice. + Enabled allows a user to explictly disable the vTPM even when one is enabled by a preference referenced by the VirtualMachine Defaults to True + + :param enabled: The enabled of this V1TPMDevice. + :type: bool + """ + + self._enabled = enabled + @property def persistent(self): """ diff --git a/setup.py b/setup.py index 2824049f..132b1a7b 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.5.0-beta.0-598-gdf334c1863" +VERSION = "v1.5.0-beta.0-875-geb685565ed" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 9cdf7a4b..b09c4444 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.5.0-beta.0-598-gdf334c1863" +"packageVersion": "v1.5.0-beta.0-875-geb685565ed" } From 9faa96ac67af4ccd4e57870be2c7d57536dd11ce Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 3 Apr 2025 00:25:16 +0000 Subject: [PATCH 446/521] Client Python update by KubeVirt Prow build 1907577414578343936 --- README.md | 2 +- docs/V1DomainSpec.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_domain_spec.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 3e869a48..25672d9c 100644 --- a/README.md +++ b/README.md @@ -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.5.0-beta.0-875-geb685565ed +- Package version: v1.5.0-beta.0-966-g3acb1265b1 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1DomainSpec.md b/docs/V1DomainSpec.md index 6ab60d33..8da22a67 100644 --- a/docs/V1DomainSpec.md +++ b/docs/V1DomainSpec.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **features** | [**V1Features**](V1Features.md) | Features like acpi, apic, hyperv, smm. | [optional] **firmware** | [**V1Firmware**](V1Firmware.md) | Firmware. | [optional] **io_threads** | [**V1DiskIOThreads**](V1DiskIOThreads.md) | IOThreads specifies the IOThreads options. | [optional] -**io_threads_policy** | **str** | Controls whether or not disks will share IOThreads. Omitting IOThreadsPolicy disables use of IOThreads. One of: shared, auto | [optional] +**io_threads_policy** | **str** | Controls whether or not disks will share IOThreads. Omitting IOThreadsPolicy disables use of IOThreads. One of: shared, auto, supplementalPool | [optional] **launch_security** | [**V1LaunchSecurity**](V1LaunchSecurity.md) | Launch Security setting of the vmi. | [optional] **machine** | [**V1Machine**](V1Machine.md) | Machine type. | [optional] **memory** | [**V1Memory**](V1Memory.md) | Memory allow specifying the VMI memory features. | [optional] diff --git a/git_push.sh b/git_push.sh index ce8c071a..bf69015a 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.5.0-beta.0-875-geb685565ed" + release_note="Auto-generated client v1.5.0-beta.0-966-g3acb1265b1" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index fca4fe54..79cc328b 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.5.0-beta.0-875-geb685565ed/python' + self.user_agent = 'Swagger-Codegen/v1.5.0-beta.0-966-g3acb1265b1/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 5749829b..596b6d8c 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.5.0-beta.0-875-geb685565ed".\ + "SDK Package Version: v1.5.0-beta.0-966-g3acb1265b1".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_domain_spec.py b/kubevirt/models/v1_domain_spec.py index 9c46f6d9..93a26f9b 100644 --- a/kubevirt/models/v1_domain_spec.py +++ b/kubevirt/models/v1_domain_spec.py @@ -269,7 +269,7 @@ def io_threads(self, io_threads): def io_threads_policy(self): """ Gets the io_threads_policy of this V1DomainSpec. - Controls whether or not disks will share IOThreads. Omitting IOThreadsPolicy disables use of IOThreads. One of: shared, auto + Controls whether or not disks will share IOThreads. Omitting IOThreadsPolicy disables use of IOThreads. One of: shared, auto, supplementalPool :return: The io_threads_policy of this V1DomainSpec. :rtype: str @@ -280,7 +280,7 @@ def io_threads_policy(self): def io_threads_policy(self, io_threads_policy): """ Sets the io_threads_policy of this V1DomainSpec. - Controls whether or not disks will share IOThreads. Omitting IOThreadsPolicy disables use of IOThreads. One of: shared, auto + Controls whether or not disks will share IOThreads. Omitting IOThreadsPolicy disables use of IOThreads. One of: shared, auto, supplementalPool :param io_threads_policy: The io_threads_policy of this V1DomainSpec. :type: str diff --git a/setup.py b/setup.py index 132b1a7b..9acad719 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.5.0-beta.0-875-geb685565ed" +VERSION = "v1.5.0-beta.0-966-g3acb1265b1" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b09c4444..fb31b413 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.5.0-beta.0-875-geb685565ed" +"packageVersion": "v1.5.0-beta.0-966-g3acb1265b1" } From 56b4c7412a8f92c96f90d4e860a235a2508dbe26 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 10 Apr 2025 19:10:35 +0000 Subject: [PATCH 447/521] Client Python update by KubeVirt Prow build 1910391436730175488 --- README.md | 3 +- docs/V1Diag288Watchdog.md | 10 ++ docs/V1Watchdog.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_diag288_watchdog.py | 125 +++++++++++++++++++++++++ kubevirt/models/v1_watchdog.py | 30 +++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_diag288_watchdog.py | 44 +++++++++ 14 files changed, 221 insertions(+), 7 deletions(-) create mode 100644 docs/V1Diag288Watchdog.md create mode 100644 kubevirt/models/v1_diag288_watchdog.py create mode 100644 test/test_v1_diag288_watchdog.py diff --git a/README.md b/README.md index 25672d9c..98b2ef2e 100644 --- a/README.md +++ b/README.md @@ -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.5.0-beta.0-966-g3acb1265b1 +- Package version: v1.5.0-beta.0-1053-g1c3775b38e - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -433,6 +433,7 @@ Class | Method | HTTP request | Description - [V1DeprecatedInterfaceSlirp](docs/V1DeprecatedInterfaceSlirp.md) - [V1DeveloperConfiguration](docs/V1DeveloperConfiguration.md) - [V1Devices](docs/V1Devices.md) + - [V1Diag288Watchdog](docs/V1Diag288Watchdog.md) - [V1DisableFreePageReporting](docs/V1DisableFreePageReporting.md) - [V1DisableSerialConsoleLog](docs/V1DisableSerialConsoleLog.md) - [V1Disk](docs/V1Disk.md) diff --git a/docs/V1Diag288Watchdog.md b/docs/V1Diag288Watchdog.md new file mode 100644 index 00000000..f45fd117 --- /dev/null +++ b/docs/V1Diag288Watchdog.md @@ -0,0 +1,10 @@ +# V1Diag288Watchdog + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **str** | The action to take. Valid values are poweroff, reset, shutdown. Defaults to reset. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Watchdog.md b/docs/V1Watchdog.md index e937339b..2549ada6 100644 --- a/docs/V1Watchdog.md +++ b/docs/V1Watchdog.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**diag288** | [**V1Diag288Watchdog**](V1Diag288Watchdog.md) | diag288 watchdog device (specific to s390x architecture). | [optional] **i6300esb** | [**V1I6300ESBWatchdog**](V1I6300ESBWatchdog.md) | i6300esb watchdog device. | [optional] **name** | **str** | Name of the watchdog. | [default to ''] diff --git a/git_push.sh b/git_push.sh index bf69015a..866c240f 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.5.0-beta.0-966-g3acb1265b1" + release_note="Auto-generated client v1.5.0-beta.0-1053-g1c3775b38e" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 5fa931f2..fb604baa 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -303,6 +303,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_devices.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_devices.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Devices.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_diag288_watchdog.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_diag288_watchdog.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Diag288Watchdog.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_disable_free_page_reporting.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_disable_free_page_reporting.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DisableFreePageReporting.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 8794aa8f..8601fdb1 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -108,6 +108,7 @@ from .models.v1_deprecated_interface_slirp import V1DeprecatedInterfaceSlirp from .models.v1_developer_configuration import V1DeveloperConfiguration from .models.v1_devices import V1Devices +from .models.v1_diag288_watchdog import V1Diag288Watchdog from .models.v1_disable_free_page_reporting import V1DisableFreePageReporting from .models.v1_disable_serial_console_log import V1DisableSerialConsoleLog from .models.v1_disk import V1Disk diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 79cc328b..5b047a1c 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.5.0-beta.0-966-g3acb1265b1/python' + self.user_agent = 'Swagger-Codegen/v1.5.0-beta.0-1053-g1c3775b38e/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 596b6d8c..1131d1a5 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.5.0-beta.0-966-g3acb1265b1".\ + "SDK Package Version: v1.5.0-beta.0-1053-g1c3775b38e".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 343eb526..4ae7acdf 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -108,6 +108,7 @@ from .v1_deprecated_interface_slirp import V1DeprecatedInterfaceSlirp from .v1_developer_configuration import V1DeveloperConfiguration from .v1_devices import V1Devices +from .v1_diag288_watchdog import V1Diag288Watchdog from .v1_disable_free_page_reporting import V1DisableFreePageReporting from .v1_disable_serial_console_log import V1DisableSerialConsoleLog from .v1_disk import V1Disk diff --git a/kubevirt/models/v1_diag288_watchdog.py b/kubevirt/models/v1_diag288_watchdog.py new file mode 100644 index 00000000..9c21f6d2 --- /dev/null +++ b/kubevirt/models/v1_diag288_watchdog.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Diag288Watchdog(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'action': 'str' + } + + attribute_map = { + 'action': 'action' + } + + def __init__(self, action=None): + """ + V1Diag288Watchdog - a model defined in Swagger + """ + + self._action = None + + if action is not None: + self.action = action + + @property + def action(self): + """ + Gets the action of this V1Diag288Watchdog. + The action to take. Valid values are poweroff, reset, shutdown. Defaults to reset. + + :return: The action of this V1Diag288Watchdog. + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """ + Sets the action of this V1Diag288Watchdog. + The action to take. Valid values are poweroff, reset, shutdown. Defaults to reset. + + :param action: The action of this V1Diag288Watchdog. + :type: str + """ + + self._action = action + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1Diag288Watchdog): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_watchdog.py b/kubevirt/models/v1_watchdog.py index 378db29d..6dec05d4 100644 --- a/kubevirt/models/v1_watchdog.py +++ b/kubevirt/models/v1_watchdog.py @@ -31,27 +31,55 @@ class V1Watchdog(object): and the value is json key in definition. """ swagger_types = { + 'diag288': 'V1Diag288Watchdog', 'i6300esb': 'V1I6300ESBWatchdog', 'name': 'str' } attribute_map = { + 'diag288': 'diag288', 'i6300esb': 'i6300esb', 'name': 'name' } - def __init__(self, i6300esb=None, name=''): + def __init__(self, diag288=None, i6300esb=None, name=''): """ V1Watchdog - a model defined in Swagger """ + self._diag288 = None self._i6300esb = None self._name = None + if diag288 is not None: + self.diag288 = diag288 if i6300esb is not None: self.i6300esb = i6300esb self.name = name + @property + def diag288(self): + """ + Gets the diag288 of this V1Watchdog. + diag288 watchdog device (specific to s390x architecture). + + :return: The diag288 of this V1Watchdog. + :rtype: V1Diag288Watchdog + """ + return self._diag288 + + @diag288.setter + def diag288(self, diag288): + """ + Sets the diag288 of this V1Watchdog. + diag288 watchdog device (specific to s390x architecture). + + :param diag288: The diag288 of this V1Watchdog. + :type: V1Diag288Watchdog + """ + + self._diag288 = diag288 + @property def i6300esb(self): """ diff --git a/setup.py b/setup.py index 9acad719..b23553a6 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.5.0-beta.0-966-g3acb1265b1" +VERSION = "v1.5.0-beta.0-1053-g1c3775b38e" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index fb31b413..6556fec5 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.5.0-beta.0-966-g3acb1265b1" +"packageVersion": "v1.5.0-beta.0-1053-g1c3775b38e" } diff --git a/test/test_v1_diag288_watchdog.py b/test/test_v1_diag288_watchdog.py new file mode 100644 index 00000000..3860a7fe --- /dev/null +++ b/test/test_v1_diag288_watchdog.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_diag288_watchdog import V1Diag288Watchdog + + +class TestV1Diag288Watchdog(unittest.TestCase): + """ V1Diag288Watchdog unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Diag288Watchdog(self): + """ + Test V1Diag288Watchdog + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_diag288_watchdog.V1Diag288Watchdog() + pass + + +if __name__ == '__main__': + unittest.main() From 51e0c6c6f240fea120bdf3aa3b986fea2fd3ee2b Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 24 Apr 2025 03:23:02 +0000 Subject: [PATCH 448/521] Client Python update by KubeVirt Prow build 1915233563876265984 --- README.md | 2 +- docs/V1VirtualMachineInstanceGuestAgentInfo.md | 2 +- docs/V1VirtualMachineInstanceStatus.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../models/v1_virtual_machine_instance_guest_agent_info.py | 4 ++-- kubevirt/models/v1_virtual_machine_instance_status.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 98b2ef2e..692987c4 100644 --- a/README.md +++ b/README.md @@ -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.5.0-beta.0-1053-g1c3775b38e +- Package version: v1.5.0-beta.0-1172-g0b5ae89423 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceGuestAgentInfo.md b/docs/V1VirtualMachineInstanceGuestAgentInfo.md index 57c5797f..c443c525 100644 --- a/docs/V1VirtualMachineInstanceGuestAgentInfo.md +++ b/docs/V1VirtualMachineInstanceGuestAgentInfo.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**fs_freeze_status** | **str** | FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed | [optional] +**fs_freeze_status** | **str** | FSFreezeStatus indicates whether a freeze operation was requested for the guest filesystem. It will be set to \"frozen\" if the request was made, or unset otherwise. This does not reflect the actual state of the guest filesystem. | [optional] **fs_info** | [**V1VirtualMachineInstanceFileSystemInfo**](V1VirtualMachineInstanceFileSystemInfo.md) | FSInfo is a guest os filesystem information containing the disk mapping and disk mounts with usage | [optional] **guest_agent_version** | **str** | GAVersion is a version of currently installed guest agent | [optional] **hostname** | **str** | Hostname represents FQDN of a guest | [optional] diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index d6f8c208..0cc9f6ee 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **conditions** | [**list[V1VirtualMachineInstanceCondition]**](V1VirtualMachineInstanceCondition.md) | Conditions are specific points in VirtualMachineInstance's pod runtime. | [optional] **current_cpu_topology** | [**V1CPUTopology**](V1CPUTopology.md) | CurrentCPUTopology specifies the current CPU topology used by the VM workload. Current topology may differ from the desired topology in the spec while CPU hotplug takes place. | [optional] **evacuation_node_name** | **str** | EvacuationNodeName is used to track the eviction process of a VMI. It stores the name of the node that we want to evacuate. It is meant to be used by KubeVirt core components only and can't be set or modified by users. | [optional] -**fs_freeze_status** | **str** | FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed | [optional] +**fs_freeze_status** | **str** | FSFreezeStatus indicates whether a freeze operation was requested for the guest filesystem. It will be set to \"frozen\" if the request was made, or unset otherwise. This does not reflect the actual state of the guest filesystem. | [optional] **guest_os_info** | [**V1VirtualMachineInstanceGuestOSInfo**](V1VirtualMachineInstanceGuestOSInfo.md) | Guest OS Information | [optional] **interfaces** | [**list[V1VirtualMachineInstanceNetworkInterface]**](V1VirtualMachineInstanceNetworkInterface.md) | Interfaces represent the details of available network interfaces. | [optional] **kernel_boot_status** | [**V1KernelBootStatus**](V1KernelBootStatus.md) | KernelBootStatus contains info about the kernelBootContainer | [optional] diff --git a/git_push.sh b/git_push.sh index 866c240f..c7d867f7 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.5.0-beta.0-1053-g1c3775b38e" + release_note="Auto-generated client v1.5.0-beta.0-1172-g0b5ae89423" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 5b047a1c..12cfe3b7 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.5.0-beta.0-1053-g1c3775b38e/python' + self.user_agent = 'Swagger-Codegen/v1.5.0-beta.0-1172-g0b5ae89423/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 1131d1a5..a7b75932 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.5.0-beta.0-1053-g1c3775b38e".\ + "SDK Package Version: v1.5.0-beta.0-1172-g0b5ae89423".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py b/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py index 575a1b5a..2ffc69d0 100644 --- a/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py +++ b/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py @@ -120,7 +120,7 @@ def api_version(self, api_version): def fs_freeze_status(self): """ Gets the fs_freeze_status of this V1VirtualMachineInstanceGuestAgentInfo. - FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed + FSFreezeStatus indicates whether a freeze operation was requested for the guest filesystem. It will be set to \"frozen\" if the request was made, or unset otherwise. This does not reflect the actual state of the guest filesystem. :return: The fs_freeze_status of this V1VirtualMachineInstanceGuestAgentInfo. :rtype: str @@ -131,7 +131,7 @@ def fs_freeze_status(self): def fs_freeze_status(self, fs_freeze_status): """ Sets the fs_freeze_status of this V1VirtualMachineInstanceGuestAgentInfo. - FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed + FSFreezeStatus indicates whether a freeze operation was requested for the guest filesystem. It will be set to \"frozen\" if the request was made, or unset otherwise. This does not reflect the actual state of the guest filesystem. :param fs_freeze_status: The fs_freeze_status of this V1VirtualMachineInstanceGuestAgentInfo. :type: str diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index 30e657bb..4977b584 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -292,7 +292,7 @@ def evacuation_node_name(self, evacuation_node_name): def fs_freeze_status(self): """ Gets the fs_freeze_status of this V1VirtualMachineInstanceStatus. - FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed + FSFreezeStatus indicates whether a freeze operation was requested for the guest filesystem. It will be set to \"frozen\" if the request was made, or unset otherwise. This does not reflect the actual state of the guest filesystem. :return: The fs_freeze_status of this V1VirtualMachineInstanceStatus. :rtype: str @@ -303,7 +303,7 @@ def fs_freeze_status(self): def fs_freeze_status(self, fs_freeze_status): """ Sets the fs_freeze_status of this V1VirtualMachineInstanceStatus. - FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed + FSFreezeStatus indicates whether a freeze operation was requested for the guest filesystem. It will be set to \"frozen\" if the request was made, or unset otherwise. This does not reflect the actual state of the guest filesystem. :param fs_freeze_status: The fs_freeze_status of this V1VirtualMachineInstanceStatus. :type: str diff --git a/setup.py b/setup.py index b23553a6..277ffec7 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.5.0-beta.0-1053-g1c3775b38e" +VERSION = "v1.5.0-beta.0-1172-g0b5ae89423" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 6556fec5..8314dac3 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.5.0-beta.0-1053-g1c3775b38e" +"packageVersion": "v1.5.0-beta.0-1172-g0b5ae89423" } From 4f55bb23144996cc57d909215f76207f5533255f Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 24 Apr 2025 04:06:48 +0000 Subject: [PATCH 449/521] Client Python update by KubeVirt Prow build 1915233500718436352 --- README.md | 2 +- docs/V1VirtualMachineInstanceGuestAgentInfo.md | 2 +- docs/V1VirtualMachineInstanceStatus.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../models/v1_virtual_machine_instance_guest_agent_info.py | 4 ++-- kubevirt/models/v1_virtual_machine_instance_status.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 692987c4..8bf13f18 100644 --- a/README.md +++ b/README.md @@ -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.5.0-beta.0-1172-g0b5ae89423 +- Package version: v1.5.0-beta.0-1168-gedb498353c - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceGuestAgentInfo.md b/docs/V1VirtualMachineInstanceGuestAgentInfo.md index c443c525..57c5797f 100644 --- a/docs/V1VirtualMachineInstanceGuestAgentInfo.md +++ b/docs/V1VirtualMachineInstanceGuestAgentInfo.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**fs_freeze_status** | **str** | FSFreezeStatus indicates whether a freeze operation was requested for the guest filesystem. It will be set to \"frozen\" if the request was made, or unset otherwise. This does not reflect the actual state of the guest filesystem. | [optional] +**fs_freeze_status** | **str** | FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed | [optional] **fs_info** | [**V1VirtualMachineInstanceFileSystemInfo**](V1VirtualMachineInstanceFileSystemInfo.md) | FSInfo is a guest os filesystem information containing the disk mapping and disk mounts with usage | [optional] **guest_agent_version** | **str** | GAVersion is a version of currently installed guest agent | [optional] **hostname** | **str** | Hostname represents FQDN of a guest | [optional] diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index 0cc9f6ee..d6f8c208 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **conditions** | [**list[V1VirtualMachineInstanceCondition]**](V1VirtualMachineInstanceCondition.md) | Conditions are specific points in VirtualMachineInstance's pod runtime. | [optional] **current_cpu_topology** | [**V1CPUTopology**](V1CPUTopology.md) | CurrentCPUTopology specifies the current CPU topology used by the VM workload. Current topology may differ from the desired topology in the spec while CPU hotplug takes place. | [optional] **evacuation_node_name** | **str** | EvacuationNodeName is used to track the eviction process of a VMI. It stores the name of the node that we want to evacuate. It is meant to be used by KubeVirt core components only and can't be set or modified by users. | [optional] -**fs_freeze_status** | **str** | FSFreezeStatus indicates whether a freeze operation was requested for the guest filesystem. It will be set to \"frozen\" if the request was made, or unset otherwise. This does not reflect the actual state of the guest filesystem. | [optional] +**fs_freeze_status** | **str** | FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed | [optional] **guest_os_info** | [**V1VirtualMachineInstanceGuestOSInfo**](V1VirtualMachineInstanceGuestOSInfo.md) | Guest OS Information | [optional] **interfaces** | [**list[V1VirtualMachineInstanceNetworkInterface]**](V1VirtualMachineInstanceNetworkInterface.md) | Interfaces represent the details of available network interfaces. | [optional] **kernel_boot_status** | [**V1KernelBootStatus**](V1KernelBootStatus.md) | KernelBootStatus contains info about the kernelBootContainer | [optional] diff --git a/git_push.sh b/git_push.sh index c7d867f7..07322a59 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.5.0-beta.0-1172-g0b5ae89423" + release_note="Auto-generated client v1.5.0-beta.0-1168-gedb498353c" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 12cfe3b7..7e6d13fc 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.5.0-beta.0-1172-g0b5ae89423/python' + self.user_agent = 'Swagger-Codegen/v1.5.0-beta.0-1168-gedb498353c/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index a7b75932..c92b4a32 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.5.0-beta.0-1172-g0b5ae89423".\ + "SDK Package Version: v1.5.0-beta.0-1168-gedb498353c".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py b/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py index 2ffc69d0..575a1b5a 100644 --- a/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py +++ b/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py @@ -120,7 +120,7 @@ def api_version(self, api_version): def fs_freeze_status(self): """ Gets the fs_freeze_status of this V1VirtualMachineInstanceGuestAgentInfo. - FSFreezeStatus indicates whether a freeze operation was requested for the guest filesystem. It will be set to \"frozen\" if the request was made, or unset otherwise. This does not reflect the actual state of the guest filesystem. + FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed :return: The fs_freeze_status of this V1VirtualMachineInstanceGuestAgentInfo. :rtype: str @@ -131,7 +131,7 @@ def fs_freeze_status(self): def fs_freeze_status(self, fs_freeze_status): """ Sets the fs_freeze_status of this V1VirtualMachineInstanceGuestAgentInfo. - FSFreezeStatus indicates whether a freeze operation was requested for the guest filesystem. It will be set to \"frozen\" if the request was made, or unset otherwise. This does not reflect the actual state of the guest filesystem. + FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed :param fs_freeze_status: The fs_freeze_status of this V1VirtualMachineInstanceGuestAgentInfo. :type: str diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index 4977b584..30e657bb 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -292,7 +292,7 @@ def evacuation_node_name(self, evacuation_node_name): def fs_freeze_status(self): """ Gets the fs_freeze_status of this V1VirtualMachineInstanceStatus. - FSFreezeStatus indicates whether a freeze operation was requested for the guest filesystem. It will be set to \"frozen\" if the request was made, or unset otherwise. This does not reflect the actual state of the guest filesystem. + FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed :return: The fs_freeze_status of this V1VirtualMachineInstanceStatus. :rtype: str @@ -303,7 +303,7 @@ def fs_freeze_status(self): def fs_freeze_status(self, fs_freeze_status): """ Sets the fs_freeze_status of this V1VirtualMachineInstanceStatus. - FSFreezeStatus indicates whether a freeze operation was requested for the guest filesystem. It will be set to \"frozen\" if the request was made, or unset otherwise. This does not reflect the actual state of the guest filesystem. + FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed :param fs_freeze_status: The fs_freeze_status of this V1VirtualMachineInstanceStatus. :type: str diff --git a/setup.py b/setup.py index 277ffec7..44112a80 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.5.0-beta.0-1172-g0b5ae89423" +VERSION = "v1.5.0-beta.0-1168-gedb498353c" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 8314dac3..749b470f 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.5.0-beta.0-1172-g0b5ae89423" +"packageVersion": "v1.5.0-beta.0-1168-gedb498353c" } From d8f1f07d4f4bf9775d61d360f5b3663ae39dda0b Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 25 Apr 2025 02:52:03 +0000 Subject: [PATCH 450/521] Client Python update by KubeVirt Prow build 1915588342469103616 --- README.md | 2 +- docs/V1VirtualMachineInstanceGuestAgentInfo.md | 2 +- docs/V1VirtualMachineInstanceStatus.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../models/v1_virtual_machine_instance_guest_agent_info.py | 4 ++-- kubevirt/models/v1_virtual_machine_instance_status.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 8bf13f18..1c1653d8 100644 --- a/README.md +++ b/README.md @@ -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.5.0-beta.0-1168-gedb498353c +- Package version: v1.5.0-beta.0-1178-g47c7fb9986 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceGuestAgentInfo.md b/docs/V1VirtualMachineInstanceGuestAgentInfo.md index 57c5797f..c443c525 100644 --- a/docs/V1VirtualMachineInstanceGuestAgentInfo.md +++ b/docs/V1VirtualMachineInstanceGuestAgentInfo.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**fs_freeze_status** | **str** | FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed | [optional] +**fs_freeze_status** | **str** | FSFreezeStatus indicates whether a freeze operation was requested for the guest filesystem. It will be set to \"frozen\" if the request was made, or unset otherwise. This does not reflect the actual state of the guest filesystem. | [optional] **fs_info** | [**V1VirtualMachineInstanceFileSystemInfo**](V1VirtualMachineInstanceFileSystemInfo.md) | FSInfo is a guest os filesystem information containing the disk mapping and disk mounts with usage | [optional] **guest_agent_version** | **str** | GAVersion is a version of currently installed guest agent | [optional] **hostname** | **str** | Hostname represents FQDN of a guest | [optional] diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index d6f8c208..0cc9f6ee 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **conditions** | [**list[V1VirtualMachineInstanceCondition]**](V1VirtualMachineInstanceCondition.md) | Conditions are specific points in VirtualMachineInstance's pod runtime. | [optional] **current_cpu_topology** | [**V1CPUTopology**](V1CPUTopology.md) | CurrentCPUTopology specifies the current CPU topology used by the VM workload. Current topology may differ from the desired topology in the spec while CPU hotplug takes place. | [optional] **evacuation_node_name** | **str** | EvacuationNodeName is used to track the eviction process of a VMI. It stores the name of the node that we want to evacuate. It is meant to be used by KubeVirt core components only and can't be set or modified by users. | [optional] -**fs_freeze_status** | **str** | FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed | [optional] +**fs_freeze_status** | **str** | FSFreezeStatus indicates whether a freeze operation was requested for the guest filesystem. It will be set to \"frozen\" if the request was made, or unset otherwise. This does not reflect the actual state of the guest filesystem. | [optional] **guest_os_info** | [**V1VirtualMachineInstanceGuestOSInfo**](V1VirtualMachineInstanceGuestOSInfo.md) | Guest OS Information | [optional] **interfaces** | [**list[V1VirtualMachineInstanceNetworkInterface]**](V1VirtualMachineInstanceNetworkInterface.md) | Interfaces represent the details of available network interfaces. | [optional] **kernel_boot_status** | [**V1KernelBootStatus**](V1KernelBootStatus.md) | KernelBootStatus contains info about the kernelBootContainer | [optional] diff --git a/git_push.sh b/git_push.sh index 07322a59..9a2a62a1 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.5.0-beta.0-1168-gedb498353c" + release_note="Auto-generated client v1.5.0-beta.0-1178-g47c7fb9986" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 7e6d13fc..09875416 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.5.0-beta.0-1168-gedb498353c/python' + self.user_agent = 'Swagger-Codegen/v1.5.0-beta.0-1178-g47c7fb9986/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c92b4a32..8dfd3e57 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.5.0-beta.0-1168-gedb498353c".\ + "SDK Package Version: v1.5.0-beta.0-1178-g47c7fb9986".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py b/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py index 575a1b5a..2ffc69d0 100644 --- a/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py +++ b/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py @@ -120,7 +120,7 @@ def api_version(self, api_version): def fs_freeze_status(self): """ Gets the fs_freeze_status of this V1VirtualMachineInstanceGuestAgentInfo. - FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed + FSFreezeStatus indicates whether a freeze operation was requested for the guest filesystem. It will be set to \"frozen\" if the request was made, or unset otherwise. This does not reflect the actual state of the guest filesystem. :return: The fs_freeze_status of this V1VirtualMachineInstanceGuestAgentInfo. :rtype: str @@ -131,7 +131,7 @@ def fs_freeze_status(self): def fs_freeze_status(self, fs_freeze_status): """ Sets the fs_freeze_status of this V1VirtualMachineInstanceGuestAgentInfo. - FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed + FSFreezeStatus indicates whether a freeze operation was requested for the guest filesystem. It will be set to \"frozen\" if the request was made, or unset otherwise. This does not reflect the actual state of the guest filesystem. :param fs_freeze_status: The fs_freeze_status of this V1VirtualMachineInstanceGuestAgentInfo. :type: str diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index 30e657bb..4977b584 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -292,7 +292,7 @@ def evacuation_node_name(self, evacuation_node_name): def fs_freeze_status(self): """ Gets the fs_freeze_status of this V1VirtualMachineInstanceStatus. - FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed + FSFreezeStatus indicates whether a freeze operation was requested for the guest filesystem. It will be set to \"frozen\" if the request was made, or unset otherwise. This does not reflect the actual state of the guest filesystem. :return: The fs_freeze_status of this V1VirtualMachineInstanceStatus. :rtype: str @@ -303,7 +303,7 @@ def fs_freeze_status(self): def fs_freeze_status(self, fs_freeze_status): """ Sets the fs_freeze_status of this V1VirtualMachineInstanceStatus. - FSFreezeStatus is the state of the fs of the guest it can be either frozen or thawed + FSFreezeStatus indicates whether a freeze operation was requested for the guest filesystem. It will be set to \"frozen\" if the request was made, or unset otherwise. This does not reflect the actual state of the guest filesystem. :param fs_freeze_status: The fs_freeze_status of this V1VirtualMachineInstanceStatus. :type: str diff --git a/setup.py b/setup.py index 44112a80..4401d945 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.5.0-beta.0-1168-gedb498353c" +VERSION = "v1.5.0-beta.0-1178-g47c7fb9986" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 749b470f..4a6a491d 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.5.0-beta.0-1168-gedb498353c" +"packageVersion": "v1.5.0-beta.0-1178-g47c7fb9986" } From f2089a949e5bafdea975ffcd18ce3b45f761bba8 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Tue, 29 Apr 2025 14:34:10 +0000 Subject: [PATCH 451/521] Client Python update by KubeVirt Prow build 1917209374300835840 --- README.md | 2 +- docs/V1TPMDevice.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_tpm_device.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 1c1653d8..86b109a4 100644 --- a/README.md +++ b/README.md @@ -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.5.0-beta.0-1178-g47c7fb9986 +- Package version: v1.5.0-beta.0-1182-g4b2c840414 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1TPMDevice.md b/docs/V1TPMDevice.md index d7a734f1..f5c1d9b9 100644 --- a/docs/V1TPMDevice.md +++ b/docs/V1TPMDevice.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**enabled** | **bool** | Enabled allows a user to explictly disable the vTPM even when one is enabled by a preference referenced by the VirtualMachine Defaults to True | [optional] +**enabled** | **bool** | Enabled allows a user to explicitly disable the vTPM even when one is enabled by a preference referenced by the VirtualMachine Defaults to True | [optional] **persistent** | **bool** | Persistent indicates the state of the TPM device should be kept accross reboots Defaults to false | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 9a2a62a1..b6ff6323 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.5.0-beta.0-1178-g47c7fb9986" + release_note="Auto-generated client v1.5.0-beta.0-1182-g4b2c840414" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 09875416..d9577ee9 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.5.0-beta.0-1178-g47c7fb9986/python' + self.user_agent = 'Swagger-Codegen/v1.5.0-beta.0-1182-g4b2c840414/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 8dfd3e57..954f2fa7 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.5.0-beta.0-1178-g47c7fb9986".\ + "SDK Package Version: v1.5.0-beta.0-1182-g4b2c840414".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_tpm_device.py b/kubevirt/models/v1_tpm_device.py index 9b37ab17..71cb03ab 100644 --- a/kubevirt/models/v1_tpm_device.py +++ b/kubevirt/models/v1_tpm_device.py @@ -57,7 +57,7 @@ def __init__(self, enabled=None, persistent=None): def enabled(self): """ Gets the enabled of this V1TPMDevice. - Enabled allows a user to explictly disable the vTPM even when one is enabled by a preference referenced by the VirtualMachine Defaults to True + Enabled allows a user to explicitly disable the vTPM even when one is enabled by a preference referenced by the VirtualMachine Defaults to True :return: The enabled of this V1TPMDevice. :rtype: bool @@ -68,7 +68,7 @@ def enabled(self): def enabled(self, enabled): """ Sets the enabled of this V1TPMDevice. - Enabled allows a user to explictly disable the vTPM even when one is enabled by a preference referenced by the VirtualMachine Defaults to True + Enabled allows a user to explicitly disable the vTPM even when one is enabled by a preference referenced by the VirtualMachine Defaults to True :param enabled: The enabled of this V1TPMDevice. :type: bool diff --git a/setup.py b/setup.py index 4401d945..259ac3e4 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.5.0-beta.0-1178-g47c7fb9986" +VERSION = "v1.5.0-beta.0-1182-g4b2c840414" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 4a6a491d..e50a2621 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.5.0-beta.0-1178-g47c7fb9986" +"packageVersion": "v1.5.0-beta.0-1182-g4b2c840414" } From 9b8f853181a0bbf10ecf37f2e681a03ee5c84273 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 30 Apr 2025 10:42:32 +0000 Subject: [PATCH 452/521] Client Python update by KubeVirt Prow build 1917515390703898624 --- README.md | 2 +- docs/V1Disk.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_disk.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 86b109a4..2cfa6397 100644 --- a/README.md +++ b/README.md @@ -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.5.0-beta.0-1182-g4b2c840414 +- Package version: v1.5.0-beta.0-1202-g9d57a8da9f - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1Disk.md b/docs/V1Disk.md index 0422eb4a..96900afd 100644 --- a/docs/V1Disk.md +++ b/docs/V1Disk.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **block_size** | [**V1BlockSize**](V1BlockSize.md) | If specified, the virtual disk will be presented with the given block sizes. | [optional] **boot_order** | **int** | BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each disk or interface that has a boot order must have a unique value. Disks without a boot order are not tried if a disk with a boot order exists. | [optional] -**cache** | **str** | Cache specifies which kvm disk cache mode should be used. Supported values are: CacheNone, CacheWriteThrough. | [optional] +**cache** | **str** | Cache specifies which kvm disk cache mode should be used. Supported values are: none: Guest I/O not cached on the host, but may be kept in a disk cache. writethrough: Guest I/O cached on the host but written through to the physical medium. Slowest but with most guarantees. writeback: Guest I/O cached on the host. Defaults to none if the storage supports O_DIRECT, otherwise writethrough. | [optional] **cdrom** | [**V1CDRomTarget**](V1CDRomTarget.md) | Attach a volume as a cdrom to the vmi. | [optional] **dedicated_io_thread** | **bool** | dedicatedIOThread indicates this disk should have an exclusive IO Thread. Enabling this implies useIOThreads = true. Defaults to false. | [optional] **disk** | [**V1DiskTarget**](V1DiskTarget.md) | Attach a volume as a disk to the vmi. | [optional] diff --git a/git_push.sh b/git_push.sh index b6ff6323..197b7550 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.5.0-beta.0-1182-g4b2c840414" + release_note="Auto-generated client v1.5.0-beta.0-1202-g9d57a8da9f" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index d9577ee9..b13399ba 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.5.0-beta.0-1182-g4b2c840414/python' + self.user_agent = 'Swagger-Codegen/v1.5.0-beta.0-1202-g9d57a8da9f/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 954f2fa7..dff4fc70 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.5.0-beta.0-1182-g4b2c840414".\ + "SDK Package Version: v1.5.0-beta.0-1202-g9d57a8da9f".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_disk.py b/kubevirt/models/v1_disk.py index 0041a7d7..b94c4680 100644 --- a/kubevirt/models/v1_disk.py +++ b/kubevirt/models/v1_disk.py @@ -157,7 +157,7 @@ def boot_order(self, boot_order): def cache(self): """ Gets the cache of this V1Disk. - Cache specifies which kvm disk cache mode should be used. Supported values are: CacheNone, CacheWriteThrough. + Cache specifies which kvm disk cache mode should be used. Supported values are: none: Guest I/O not cached on the host, but may be kept in a disk cache. writethrough: Guest I/O cached on the host but written through to the physical medium. Slowest but with most guarantees. writeback: Guest I/O cached on the host. Defaults to none if the storage supports O_DIRECT, otherwise writethrough. :return: The cache of this V1Disk. :rtype: str @@ -168,7 +168,7 @@ def cache(self): def cache(self, cache): """ Sets the cache of this V1Disk. - Cache specifies which kvm disk cache mode should be used. Supported values are: CacheNone, CacheWriteThrough. + Cache specifies which kvm disk cache mode should be used. Supported values are: none: Guest I/O not cached on the host, but may be kept in a disk cache. writethrough: Guest I/O cached on the host but written through to the physical medium. Slowest but with most guarantees. writeback: Guest I/O cached on the host. Defaults to none if the storage supports O_DIRECT, otherwise writethrough. :param cache: The cache of this V1Disk. :type: str diff --git a/setup.py b/setup.py index 259ac3e4..203e602e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.5.0-beta.0-1182-g4b2c840414" +VERSION = "v1.5.0-beta.0-1202-g9d57a8da9f" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index e50a2621..9e789c8c 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.5.0-beta.0-1182-g4b2c840414" +"packageVersion": "v1.5.0-beta.0-1202-g9d57a8da9f" } From 9a17de803d2fb233d4715e2ce09c54d933ee431f Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 9 May 2025 04:44:20 +0000 Subject: [PATCH 453/521] Client Python update by KubeVirt Prow build 1920688695984263168 --- README.md | 2 +- docs/V1beta1VirtualMachineCloneSpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1beta1_virtual_machine_clone_spec.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 2cfa6397..f6a98af2 100644 --- a/README.md +++ b/README.md @@ -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.5.0-beta.0-1202-g9d57a8da9f +- Package version: v1.6.0-alpha.0-53-g9d4b09814e - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1VirtualMachineCloneSpec.md b/docs/V1beta1VirtualMachineCloneSpec.md index 0dbacf15..d54cabac 100644 --- a/docs/V1beta1VirtualMachineCloneSpec.md +++ b/docs/V1beta1VirtualMachineCloneSpec.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **label_filters** | **list[str]** | Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. | [optional] **new_mac_addresses** | **dict(str, str)** | NewMacAddresses manually sets that target interfaces' mac addresses. The key is the interface name and the value is the new mac address. If this field is not specified, a new MAC address will be generated automatically, as for any interface that is not included in this map. | [optional] **new_sm_bios_serial** | **str** | NewSMBiosSerial manually sets that target's SMbios serial. If this field is not specified, a new serial will be generated automatically. | [optional] +**patches** | **list[str]** | Patches holds JSON patches to apply to target. Patches should fit the target's Kind. Example: '{\"op\": \"add\", \"path\": \"/spec/template/metadata/labels/example\", \"value\": \"new-label\"}' | [optional] **source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Source is the object that would be cloned. Currently supported source types are: VirtualMachine of kubevirt.io API group, VirtualMachineSnapshot of snapshot.kubevirt.io API group | **target** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Target is the outcome of the cloning process. Currently supported source types are: - VirtualMachine of kubevirt.io API group - Empty (nil). If the target is not provided, the target type would default to VirtualMachine and a random name would be generated for the target. The target's name can be viewed by inspecting status \"TargetName\" field below. | [optional] **template** | [**V1beta1VirtualMachineCloneTemplateFilters**](V1beta1VirtualMachineCloneTemplateFilters.md) | For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. | [optional] diff --git a/git_push.sh b/git_push.sh index 197b7550..1929dfe4 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.5.0-beta.0-1202-g9d57a8da9f" + release_note="Auto-generated client v1.6.0-alpha.0-53-g9d4b09814e" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index b13399ba..7283a505 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.5.0-beta.0-1202-g9d57a8da9f/python' + self.user_agent = 'Swagger-Codegen/v1.6.0-alpha.0-53-g9d4b09814e/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index dff4fc70..6e70dc25 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.5.0-beta.0-1202-g9d57a8da9f".\ + "SDK Package Version: v1.6.0-alpha.0-53-g9d4b09814e".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_virtual_machine_clone_spec.py b/kubevirt/models/v1beta1_virtual_machine_clone_spec.py index 3510e238..86b42510 100644 --- a/kubevirt/models/v1beta1_virtual_machine_clone_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_clone_spec.py @@ -35,6 +35,7 @@ class V1beta1VirtualMachineCloneSpec(object): 'label_filters': 'list[str]', 'new_mac_addresses': 'dict(str, str)', 'new_sm_bios_serial': 'str', + 'patches': 'list[str]', 'source': 'K8sIoApiCoreV1TypedLocalObjectReference', 'target': 'K8sIoApiCoreV1TypedLocalObjectReference', 'template': 'V1beta1VirtualMachineCloneTemplateFilters' @@ -45,12 +46,13 @@ class V1beta1VirtualMachineCloneSpec(object): 'label_filters': 'labelFilters', 'new_mac_addresses': 'newMacAddresses', 'new_sm_bios_serial': 'newSMBiosSerial', + 'patches': 'patches', 'source': 'source', 'target': 'target', 'template': 'template' } - def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresses=None, new_sm_bios_serial=None, source=None, target=None, template=None): + def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresses=None, new_sm_bios_serial=None, patches=None, source=None, target=None, template=None): """ V1beta1VirtualMachineCloneSpec - a model defined in Swagger """ @@ -59,6 +61,7 @@ def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresse self._label_filters = None self._new_mac_addresses = None self._new_sm_bios_serial = None + self._patches = None self._source = None self._target = None self._template = None @@ -71,6 +74,8 @@ def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresse self.new_mac_addresses = new_mac_addresses if new_sm_bios_serial is not None: self.new_sm_bios_serial = new_sm_bios_serial + if patches is not None: + self.patches = patches self.source = source if target is not None: self.target = target @@ -169,6 +174,29 @@ def new_sm_bios_serial(self, new_sm_bios_serial): self._new_sm_bios_serial = new_sm_bios_serial + @property + def patches(self): + """ + Gets the patches of this V1beta1VirtualMachineCloneSpec. + Patches holds JSON patches to apply to target. Patches should fit the target's Kind. Example: '{\"op\": \"add\", \"path\": \"/spec/template/metadata/labels/example\", \"value\": \"new-label\"}' + + :return: The patches of this V1beta1VirtualMachineCloneSpec. + :rtype: list[str] + """ + return self._patches + + @patches.setter + def patches(self, patches): + """ + Sets the patches of this V1beta1VirtualMachineCloneSpec. + Patches holds JSON patches to apply to target. Patches should fit the target's Kind. Example: '{\"op\": \"add\", \"path\": \"/spec/template/metadata/labels/example\", \"value\": \"new-label\"}' + + :param patches: The patches of this V1beta1VirtualMachineCloneSpec. + :type: list[str] + """ + + self._patches = patches + @property def source(self): """ diff --git a/setup.py b/setup.py index 203e602e..ec250a7b 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.5.0-beta.0-1202-g9d57a8da9f" +VERSION = "v1.6.0-alpha.0-53-g9d4b09814e" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 9e789c8c..793b6ea2 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.5.0-beta.0-1202-g9d57a8da9f" +"packageVersion": "v1.6.0-alpha.0-53-g9d4b09814e" } From 3f6cbc5281d4a8d4fe6ee82c53937e1012e2f64c Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 9 May 2025 04:46:55 +0000 Subject: [PATCH 454/521] Client Python update by KubeVirt Prow build 1920688668595458048 --- README.md | 2 +- docs/V1beta1VirtualMachineCloneSpec.md | 1 - git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1beta1_virtual_machine_clone_spec.py | 30 +------------------ setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 7 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index f6a98af2..9e093f18 100644 --- a/README.md +++ b/README.md @@ -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.6.0-alpha.0-53-g9d4b09814e +- Package version: v1.6.0-alpha.0-49-gc1e22edd00 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1VirtualMachineCloneSpec.md b/docs/V1beta1VirtualMachineCloneSpec.md index d54cabac..0dbacf15 100644 --- a/docs/V1beta1VirtualMachineCloneSpec.md +++ b/docs/V1beta1VirtualMachineCloneSpec.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes **label_filters** | **list[str]** | Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. | [optional] **new_mac_addresses** | **dict(str, str)** | NewMacAddresses manually sets that target interfaces' mac addresses. The key is the interface name and the value is the new mac address. If this field is not specified, a new MAC address will be generated automatically, as for any interface that is not included in this map. | [optional] **new_sm_bios_serial** | **str** | NewSMBiosSerial manually sets that target's SMbios serial. If this field is not specified, a new serial will be generated automatically. | [optional] -**patches** | **list[str]** | Patches holds JSON patches to apply to target. Patches should fit the target's Kind. Example: '{\"op\": \"add\", \"path\": \"/spec/template/metadata/labels/example\", \"value\": \"new-label\"}' | [optional] **source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Source is the object that would be cloned. Currently supported source types are: VirtualMachine of kubevirt.io API group, VirtualMachineSnapshot of snapshot.kubevirt.io API group | **target** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Target is the outcome of the cloning process. Currently supported source types are: - VirtualMachine of kubevirt.io API group - Empty (nil). If the target is not provided, the target type would default to VirtualMachine and a random name would be generated for the target. The target's name can be viewed by inspecting status \"TargetName\" field below. | [optional] **template** | [**V1beta1VirtualMachineCloneTemplateFilters**](V1beta1VirtualMachineCloneTemplateFilters.md) | For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. | [optional] diff --git a/git_push.sh b/git_push.sh index 1929dfe4..9a944998 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.6.0-alpha.0-53-g9d4b09814e" + release_note="Auto-generated client v1.6.0-alpha.0-49-gc1e22edd00" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 7283a505..e767d89c 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.6.0-alpha.0-53-g9d4b09814e/python' + self.user_agent = 'Swagger-Codegen/v1.6.0-alpha.0-49-gc1e22edd00/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 6e70dc25..75acf4d6 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.6.0-alpha.0-53-g9d4b09814e".\ + "SDK Package Version: v1.6.0-alpha.0-49-gc1e22edd00".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_virtual_machine_clone_spec.py b/kubevirt/models/v1beta1_virtual_machine_clone_spec.py index 86b42510..3510e238 100644 --- a/kubevirt/models/v1beta1_virtual_machine_clone_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_clone_spec.py @@ -35,7 +35,6 @@ class V1beta1VirtualMachineCloneSpec(object): 'label_filters': 'list[str]', 'new_mac_addresses': 'dict(str, str)', 'new_sm_bios_serial': 'str', - 'patches': 'list[str]', 'source': 'K8sIoApiCoreV1TypedLocalObjectReference', 'target': 'K8sIoApiCoreV1TypedLocalObjectReference', 'template': 'V1beta1VirtualMachineCloneTemplateFilters' @@ -46,13 +45,12 @@ class V1beta1VirtualMachineCloneSpec(object): 'label_filters': 'labelFilters', 'new_mac_addresses': 'newMacAddresses', 'new_sm_bios_serial': 'newSMBiosSerial', - 'patches': 'patches', 'source': 'source', 'target': 'target', 'template': 'template' } - def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresses=None, new_sm_bios_serial=None, patches=None, source=None, target=None, template=None): + def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresses=None, new_sm_bios_serial=None, source=None, target=None, template=None): """ V1beta1VirtualMachineCloneSpec - a model defined in Swagger """ @@ -61,7 +59,6 @@ def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresse self._label_filters = None self._new_mac_addresses = None self._new_sm_bios_serial = None - self._patches = None self._source = None self._target = None self._template = None @@ -74,8 +71,6 @@ def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresse self.new_mac_addresses = new_mac_addresses if new_sm_bios_serial is not None: self.new_sm_bios_serial = new_sm_bios_serial - if patches is not None: - self.patches = patches self.source = source if target is not None: self.target = target @@ -174,29 +169,6 @@ def new_sm_bios_serial(self, new_sm_bios_serial): self._new_sm_bios_serial = new_sm_bios_serial - @property - def patches(self): - """ - Gets the patches of this V1beta1VirtualMachineCloneSpec. - Patches holds JSON patches to apply to target. Patches should fit the target's Kind. Example: '{\"op\": \"add\", \"path\": \"/spec/template/metadata/labels/example\", \"value\": \"new-label\"}' - - :return: The patches of this V1beta1VirtualMachineCloneSpec. - :rtype: list[str] - """ - return self._patches - - @patches.setter - def patches(self, patches): - """ - Sets the patches of this V1beta1VirtualMachineCloneSpec. - Patches holds JSON patches to apply to target. Patches should fit the target's Kind. Example: '{\"op\": \"add\", \"path\": \"/spec/template/metadata/labels/example\", \"value\": \"new-label\"}' - - :param patches: The patches of this V1beta1VirtualMachineCloneSpec. - :type: list[str] - """ - - self._patches = patches - @property def source(self): """ diff --git a/setup.py b/setup.py index ec250a7b..2484ba7c 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.6.0-alpha.0-53-g9d4b09814e" +VERSION = "v1.6.0-alpha.0-49-gc1e22edd00" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 793b6ea2..0bb23fcb 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.6.0-alpha.0-53-g9d4b09814e" +"packageVersion": "v1.6.0-alpha.0-49-gc1e22edd00" } From 38c7e0bdd82391bead40211a7aa52cf89dac444b Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 9 May 2025 04:51:24 +0000 Subject: [PATCH 455/521] Client Python update by KubeVirt Prow build 1920688725541523456 --- README.md | 2 +- docs/V1beta1VirtualMachineCloneSpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1beta1_virtual_machine_clone_spec.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 9e093f18..565fe8a2 100644 --- a/README.md +++ b/README.md @@ -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.6.0-alpha.0-49-gc1e22edd00 +- Package version: v1.6.0-alpha.0-55-gbbc9918da2 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1VirtualMachineCloneSpec.md b/docs/V1beta1VirtualMachineCloneSpec.md index 0dbacf15..d54cabac 100644 --- a/docs/V1beta1VirtualMachineCloneSpec.md +++ b/docs/V1beta1VirtualMachineCloneSpec.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **label_filters** | **list[str]** | Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. | [optional] **new_mac_addresses** | **dict(str, str)** | NewMacAddresses manually sets that target interfaces' mac addresses. The key is the interface name and the value is the new mac address. If this field is not specified, a new MAC address will be generated automatically, as for any interface that is not included in this map. | [optional] **new_sm_bios_serial** | **str** | NewSMBiosSerial manually sets that target's SMbios serial. If this field is not specified, a new serial will be generated automatically. | [optional] +**patches** | **list[str]** | Patches holds JSON patches to apply to target. Patches should fit the target's Kind. Example: '{\"op\": \"add\", \"path\": \"/spec/template/metadata/labels/example\", \"value\": \"new-label\"}' | [optional] **source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Source is the object that would be cloned. Currently supported source types are: VirtualMachine of kubevirt.io API group, VirtualMachineSnapshot of snapshot.kubevirt.io API group | **target** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Target is the outcome of the cloning process. Currently supported source types are: - VirtualMachine of kubevirt.io API group - Empty (nil). If the target is not provided, the target type would default to VirtualMachine and a random name would be generated for the target. The target's name can be viewed by inspecting status \"TargetName\" field below. | [optional] **template** | [**V1beta1VirtualMachineCloneTemplateFilters**](V1beta1VirtualMachineCloneTemplateFilters.md) | For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. | [optional] diff --git a/git_push.sh b/git_push.sh index 9a944998..2f228255 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.6.0-alpha.0-49-gc1e22edd00" + release_note="Auto-generated client v1.6.0-alpha.0-55-gbbc9918da2" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index e767d89c..b17a6103 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.6.0-alpha.0-49-gc1e22edd00/python' + self.user_agent = 'Swagger-Codegen/v1.6.0-alpha.0-55-gbbc9918da2/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 75acf4d6..1ebc5ce2 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.6.0-alpha.0-49-gc1e22edd00".\ + "SDK Package Version: v1.6.0-alpha.0-55-gbbc9918da2".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_virtual_machine_clone_spec.py b/kubevirt/models/v1beta1_virtual_machine_clone_spec.py index 3510e238..86b42510 100644 --- a/kubevirt/models/v1beta1_virtual_machine_clone_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_clone_spec.py @@ -35,6 +35,7 @@ class V1beta1VirtualMachineCloneSpec(object): 'label_filters': 'list[str]', 'new_mac_addresses': 'dict(str, str)', 'new_sm_bios_serial': 'str', + 'patches': 'list[str]', 'source': 'K8sIoApiCoreV1TypedLocalObjectReference', 'target': 'K8sIoApiCoreV1TypedLocalObjectReference', 'template': 'V1beta1VirtualMachineCloneTemplateFilters' @@ -45,12 +46,13 @@ class V1beta1VirtualMachineCloneSpec(object): 'label_filters': 'labelFilters', 'new_mac_addresses': 'newMacAddresses', 'new_sm_bios_serial': 'newSMBiosSerial', + 'patches': 'patches', 'source': 'source', 'target': 'target', 'template': 'template' } - def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresses=None, new_sm_bios_serial=None, source=None, target=None, template=None): + def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresses=None, new_sm_bios_serial=None, patches=None, source=None, target=None, template=None): """ V1beta1VirtualMachineCloneSpec - a model defined in Swagger """ @@ -59,6 +61,7 @@ def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresse self._label_filters = None self._new_mac_addresses = None self._new_sm_bios_serial = None + self._patches = None self._source = None self._target = None self._template = None @@ -71,6 +74,8 @@ def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresse self.new_mac_addresses = new_mac_addresses if new_sm_bios_serial is not None: self.new_sm_bios_serial = new_sm_bios_serial + if patches is not None: + self.patches = patches self.source = source if target is not None: self.target = target @@ -169,6 +174,29 @@ def new_sm_bios_serial(self, new_sm_bios_serial): self._new_sm_bios_serial = new_sm_bios_serial + @property + def patches(self): + """ + Gets the patches of this V1beta1VirtualMachineCloneSpec. + Patches holds JSON patches to apply to target. Patches should fit the target's Kind. Example: '{\"op\": \"add\", \"path\": \"/spec/template/metadata/labels/example\", \"value\": \"new-label\"}' + + :return: The patches of this V1beta1VirtualMachineCloneSpec. + :rtype: list[str] + """ + return self._patches + + @patches.setter + def patches(self, patches): + """ + Sets the patches of this V1beta1VirtualMachineCloneSpec. + Patches holds JSON patches to apply to target. Patches should fit the target's Kind. Example: '{\"op\": \"add\", \"path\": \"/spec/template/metadata/labels/example\", \"value\": \"new-label\"}' + + :param patches: The patches of this V1beta1VirtualMachineCloneSpec. + :type: list[str] + """ + + self._patches = patches + @property def source(self): """ diff --git a/setup.py b/setup.py index 2484ba7c..86a4c29c 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.6.0-alpha.0-49-gc1e22edd00" +VERSION = "v1.6.0-alpha.0-55-gbbc9918da2" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 0bb23fcb..fbbb737e 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.6.0-alpha.0-49-gc1e22edd00" +"packageVersion": "v1.6.0-alpha.0-55-gbbc9918da2" } From 868766b65b991d78823d4ef172f82dfe02392cc8 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Sat, 17 May 2025 05:15:11 +0000 Subject: [PATCH 456/521] Client Python update by KubeVirt Prow build 1923605752828661760 --- README.md | 6 +- ...V1VirtualMachineInstanceMigrationSource.md | 11 + ...tualMachineInstanceMigrationSourceState.md | 17 + docs/V1VirtualMachineInstanceMigrationSpec.md | 2 + .../V1VirtualMachineInstanceMigrationState.md | 3 + ...V1VirtualMachineInstanceMigrationTarget.md | 10 + ...tualMachineInstanceMigrationTargetState.md | 23 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 12 + kubevirt/__init__.py | 4 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 4 + ...rtual_machine_instance_migration_source.py | 155 ++++++ ...machine_instance_migration_source_state.py | 321 ++++++++++++ ...virtual_machine_instance_migration_spec.py | 58 ++- ...irtual_machine_instance_migration_state.py | 90 +++- ...rtual_machine_instance_migration_target.py | 126 +++++ ...machine_instance_migration_target_state.py | 489 ++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- ...rtual_machine_instance_migration_source.py | 44 ++ ...machine_instance_migration_source_state.py | 44 ++ ...rtual_machine_instance_migration_target.py | 44 ++ ...machine_instance_migration_target_state.py | 44 ++ 25 files changed, 1507 insertions(+), 10 deletions(-) create mode 100644 docs/V1VirtualMachineInstanceMigrationSource.md create mode 100644 docs/V1VirtualMachineInstanceMigrationSourceState.md create mode 100644 docs/V1VirtualMachineInstanceMigrationTarget.md create mode 100644 docs/V1VirtualMachineInstanceMigrationTargetState.md create mode 100644 kubevirt/models/v1_virtual_machine_instance_migration_source.py create mode 100644 kubevirt/models/v1_virtual_machine_instance_migration_source_state.py create mode 100644 kubevirt/models/v1_virtual_machine_instance_migration_target.py create mode 100644 kubevirt/models/v1_virtual_machine_instance_migration_target_state.py create mode 100644 test/test_v1_virtual_machine_instance_migration_source.py create mode 100644 test/test_v1_virtual_machine_instance_migration_source_state.py create mode 100644 test/test_v1_virtual_machine_instance_migration_target.py create mode 100644 test/test_v1_virtual_machine_instance_migration_target_state.py diff --git a/README.md b/README.md index 565fe8a2..fb333268 100644 --- a/README.md +++ b/README.md @@ -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.6.0-alpha.0-55-gbbc9918da2 +- Package version: v1.6.0-alpha.0-146-gc800179aca - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -593,9 +593,13 @@ Class | Method | HTTP request | Description - [V1VirtualMachineInstanceMigrationCondition](docs/V1VirtualMachineInstanceMigrationCondition.md) - [V1VirtualMachineInstanceMigrationList](docs/V1VirtualMachineInstanceMigrationList.md) - [V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp](docs/V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp.md) + - [V1VirtualMachineInstanceMigrationSource](docs/V1VirtualMachineInstanceMigrationSource.md) + - [V1VirtualMachineInstanceMigrationSourceState](docs/V1VirtualMachineInstanceMigrationSourceState.md) - [V1VirtualMachineInstanceMigrationSpec](docs/V1VirtualMachineInstanceMigrationSpec.md) - [V1VirtualMachineInstanceMigrationState](docs/V1VirtualMachineInstanceMigrationState.md) - [V1VirtualMachineInstanceMigrationStatus](docs/V1VirtualMachineInstanceMigrationStatus.md) + - [V1VirtualMachineInstanceMigrationTarget](docs/V1VirtualMachineInstanceMigrationTarget.md) + - [V1VirtualMachineInstanceMigrationTargetState](docs/V1VirtualMachineInstanceMigrationTargetState.md) - [V1VirtualMachineInstanceNetworkInterface](docs/V1VirtualMachineInstanceNetworkInterface.md) - [V1VirtualMachineInstancePhaseTransitionTimestamp](docs/V1VirtualMachineInstancePhaseTransitionTimestamp.md) - [V1VirtualMachineInstancePreset](docs/V1VirtualMachineInstancePreset.md) diff --git a/docs/V1VirtualMachineInstanceMigrationSource.md b/docs/V1VirtualMachineInstanceMigrationSource.md new file mode 100644 index 00000000..3757aa35 --- /dev/null +++ b/docs/V1VirtualMachineInstanceMigrationSource.md @@ -0,0 +1,11 @@ +# V1VirtualMachineInstanceMigrationSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**connect_url** | **str** | The synchronization controller URL to connect to. | [default to ''] +**migration_id** | **str** | A unique identifier to identify this migration. | [default to ''] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceMigrationSourceState.md b/docs/V1VirtualMachineInstanceMigrationSourceState.md new file mode 100644 index 00000000..8959d6b4 --- /dev/null +++ b/docs/V1VirtualMachineInstanceMigrationSourceState.md @@ -0,0 +1,17 @@ +# V1VirtualMachineInstanceMigrationSourceState + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domain_name** | **str** | The name of the domain on the source libvirt domain | [optional] +**domain_namespace** | **str** | Namespace used in the name of the source libvirt domain. Can be used to find and modify paths in the domain | [optional] +**migration_uid** | **str** | The Source VirtualMachineInstanceMigration object associated with this migration | [optional] +**node** | **str** | The source node that the VMI originated on | [optional] +**node_selectors** | **dict(str, str)** | Node selectors needed by the target to start the receiving pod. | [optional] +**persistent_state_pvc_name** | **str** | If the VMI being migrated uses persistent features (backend-storage), its source PVC name is saved here | [optional] +**pod** | **str** | The source pod that the VMI is originated on | [optional] +**sync_address** | **str** | The ip address/fqdn:port combination to use to synchronize the VMI with the target. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceMigrationSpec.md b/docs/V1VirtualMachineInstanceMigrationSpec.md index 684643a1..de264aa1 100644 --- a/docs/V1VirtualMachineInstanceMigrationSpec.md +++ b/docs/V1VirtualMachineInstanceMigrationSpec.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **added_node_selector** | **dict(str, str)** | AddedNodeSelector is an additional selector that can be used to complement a NodeSelector or NodeAffinity as set on the VM to restrict the set of allowed target nodes for a migration. In case of key collisions, values set on the VM objects are going to be preserved to ensure that addedNodeSelector can only restrict but not bypass constraints already set on the VM object. | [optional] +**receive** | [**V1VirtualMachineInstanceMigrationTarget**](V1VirtualMachineInstanceMigrationTarget.md) | If receieve is specified, this VirtualMachineInstanceMigration will be considered the target | [optional] +**send_to** | [**V1VirtualMachineInstanceMigrationSource**](V1VirtualMachineInstanceMigrationSource.md) | If sendTo is specified, this VirtualMachineInstanceMigration will be considered the source | [optional] **vmi_name** | **str** | The name of the VMI to perform the migration on. VMI must exist in the migration objects namespace | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceMigrationState.md b/docs/V1VirtualMachineInstanceMigrationState.md index 837ce216..9ec8062f 100644 --- a/docs/V1VirtualMachineInstanceMigrationState.md +++ b/docs/V1VirtualMachineInstanceMigrationState.md @@ -10,12 +10,14 @@ Name | Type | Description | Notes **failed** | **bool** | Indicates that the migration failed | [optional] **failure_reason** | **str** | Contains the reason why the migration failed | [optional] **migration_configuration** | [**V1MigrationConfiguration**](V1MigrationConfiguration.md) | Migration configurations to apply | [optional] +**migration_network_type** | **str** | The type of migration network, either 'pod' or 'migration' | [optional] **migration_policy_name** | **str** | Name of the migration policy. If string is empty, no policy is matched | [optional] **migration_uid** | **str** | The VirtualMachineInstanceMigration object associated with this migration | [optional] **mode** | **str** | Lets us know if the vmi is currently running pre or post copy migration | [optional] **source_node** | **str** | The source node that the VMI originated on | [optional] **source_persistent_state_pvc_name** | **str** | If the VMI being migrated uses persistent features (backend-storage), its source PVC name is saved here | [optional] **source_pod** | **str** | | [optional] +**source_state** | [**V1VirtualMachineInstanceMigrationSourceState**](V1VirtualMachineInstanceMigrationSourceState.md) | SourceState contains migration state managed by the source virt handler | [optional] **start_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | The time the migration action began | [optional] **target_attachment_pod_uid** | **str** | The UID of the target attachment pod for hotplug volumes | [optional] **target_cpu_set** | **list[int]** | If the VMI requires dedicated CPUs, this field will hold the dedicated CPU set on the target node | [optional] @@ -27,6 +29,7 @@ Name | Type | Description | Notes **target_node_topology** | **str** | If the VMI requires dedicated CPUs, this field will hold the numa topology on the target node | [optional] **target_persistent_state_pvc_name** | **str** | If the VMI being migrated uses persistent features (backend-storage), its target PVC name is saved here | [optional] **target_pod** | **str** | The target pod that the VMI is moving to | [optional] +**target_state** | [**V1VirtualMachineInstanceMigrationTargetState**](V1VirtualMachineInstanceMigrationTargetState.md) | TargetState contains migration state managed by the target virt handler | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceMigrationTarget.md b/docs/V1VirtualMachineInstanceMigrationTarget.md new file mode 100644 index 00000000..d6896be7 --- /dev/null +++ b/docs/V1VirtualMachineInstanceMigrationTarget.md @@ -0,0 +1,10 @@ +# V1VirtualMachineInstanceMigrationTarget + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**migration_id** | **str** | A unique identifier to identify this migration. | [default to ''] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceMigrationTargetState.md b/docs/V1VirtualMachineInstanceMigrationTargetState.md new file mode 100644 index 00000000..d358fb08 --- /dev/null +++ b/docs/V1VirtualMachineInstanceMigrationTargetState.md @@ -0,0 +1,23 @@ +# V1VirtualMachineInstanceMigrationTargetState + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attachment_pod_uid** | **str** | The UID of the target attachment pod for hotplug volumes | [optional] +**cpu_set** | **list[int]** | If the VMI requires dedicated CPUs, this field will hold the dedicated CPU set on the target node | [optional] +**direct_migration_node_ports** | **dict(str, int)** | The list of ports opened for live migration on the destination node | [optional] +**domain_detected** | **bool** | The Target Node has seen the Domain Start Event | [optional] +**domain_name** | **str** | The name of the domain on the source libvirt domain | [optional] +**domain_namespace** | **str** | Namespace used in the name of the source libvirt domain. Can be used to find and modify paths in the domain | [optional] +**domain_ready_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | The timestamp at which the target node detects the domain is active | [optional] +**migration_uid** | **str** | The Source VirtualMachineInstanceMigration object associated with this migration | [optional] +**node** | **str** | The source node that the VMI originated on | [optional] +**node_address** | **str** | The address of the target node to use for the migration | [optional] +**node_topology** | **str** | If the VMI requires dedicated CPUs, this field will hold the numa topology on the target node | [optional] +**persistent_state_pvc_name** | **str** | If the VMI being migrated uses persistent features (backend-storage), its source PVC name is saved here | [optional] +**pod** | **str** | The source pod that the VMI is originated on | [optional] +**sync_address** | **str** | The ip address/fqdn:port combination to use to synchronize the VMI with the target. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 2f228255..ecf72272 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.6.0-alpha.0-55-gbbc9918da2" + release_note="Auto-generated client v1.6.0-alpha.0-146-gc800179aca" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index fb604baa..c9b616f0 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -783,6 +783,12 @@ 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_virtual_machine_instance_migration_phase_transition_timestamp.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_migration_phase_transition_timestamp.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_migration_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_migration_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceMigrationSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_migration_source_state.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_migration_source_state.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceMigrationSourceState.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_migration_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_migration_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceMigrationSpec.md @@ -792,6 +798,12 @@ 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_virtual_machine_instance_migration_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_migration_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceMigrationStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_migration_target.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_migration_target.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceMigrationTarget.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_migration_target_state.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_migration_target_state.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceMigrationTargetState.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_network_interface.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_network_interface.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceNetworkInterface.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 8601fdb1..e85c17e0 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -268,9 +268,13 @@ from .models.v1_virtual_machine_instance_migration_condition import V1VirtualMachineInstanceMigrationCondition from .models.v1_virtual_machine_instance_migration_list import V1VirtualMachineInstanceMigrationList from .models.v1_virtual_machine_instance_migration_phase_transition_timestamp import V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp +from .models.v1_virtual_machine_instance_migration_source import V1VirtualMachineInstanceMigrationSource +from .models.v1_virtual_machine_instance_migration_source_state import V1VirtualMachineInstanceMigrationSourceState from .models.v1_virtual_machine_instance_migration_spec import V1VirtualMachineInstanceMigrationSpec from .models.v1_virtual_machine_instance_migration_state import V1VirtualMachineInstanceMigrationState from .models.v1_virtual_machine_instance_migration_status import V1VirtualMachineInstanceMigrationStatus +from .models.v1_virtual_machine_instance_migration_target import V1VirtualMachineInstanceMigrationTarget +from .models.v1_virtual_machine_instance_migration_target_state import V1VirtualMachineInstanceMigrationTargetState from .models.v1_virtual_machine_instance_network_interface import V1VirtualMachineInstanceNetworkInterface from .models.v1_virtual_machine_instance_phase_transition_timestamp import V1VirtualMachineInstancePhaseTransitionTimestamp from .models.v1_virtual_machine_instance_preset import V1VirtualMachineInstancePreset diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index b17a6103..6f7b13ac 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.6.0-alpha.0-55-gbbc9918da2/python' + self.user_agent = 'Swagger-Codegen/v1.6.0-alpha.0-146-gc800179aca/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 1ebc5ce2..9603c126 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.6.0-alpha.0-55-gbbc9918da2".\ + "SDK Package Version: v1.6.0-alpha.0-146-gc800179aca".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 4ae7acdf..b795e059 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -268,9 +268,13 @@ from .v1_virtual_machine_instance_migration_condition import V1VirtualMachineInstanceMigrationCondition from .v1_virtual_machine_instance_migration_list import V1VirtualMachineInstanceMigrationList from .v1_virtual_machine_instance_migration_phase_transition_timestamp import V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp +from .v1_virtual_machine_instance_migration_source import V1VirtualMachineInstanceMigrationSource +from .v1_virtual_machine_instance_migration_source_state import V1VirtualMachineInstanceMigrationSourceState from .v1_virtual_machine_instance_migration_spec import V1VirtualMachineInstanceMigrationSpec from .v1_virtual_machine_instance_migration_state import V1VirtualMachineInstanceMigrationState from .v1_virtual_machine_instance_migration_status import V1VirtualMachineInstanceMigrationStatus +from .v1_virtual_machine_instance_migration_target import V1VirtualMachineInstanceMigrationTarget +from .v1_virtual_machine_instance_migration_target_state import V1VirtualMachineInstanceMigrationTargetState from .v1_virtual_machine_instance_network_interface import V1VirtualMachineInstanceNetworkInterface from .v1_virtual_machine_instance_phase_transition_timestamp import V1VirtualMachineInstancePhaseTransitionTimestamp from .v1_virtual_machine_instance_preset import V1VirtualMachineInstancePreset diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_source.py b/kubevirt/models/v1_virtual_machine_instance_migration_source.py new file mode 100644 index 00000000..e113fa04 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_migration_source.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineInstanceMigrationSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'connect_url': 'str', + 'migration_id': 'str' + } + + attribute_map = { + 'connect_url': 'connectURL', + 'migration_id': 'migrationID' + } + + def __init__(self, connect_url='', migration_id=''): + """ + V1VirtualMachineInstanceMigrationSource - a model defined in Swagger + """ + + self._connect_url = None + self._migration_id = None + + self.connect_url = connect_url + self.migration_id = migration_id + + @property + def connect_url(self): + """ + Gets the connect_url of this V1VirtualMachineInstanceMigrationSource. + The synchronization controller URL to connect to. + + :return: The connect_url of this V1VirtualMachineInstanceMigrationSource. + :rtype: str + """ + return self._connect_url + + @connect_url.setter + def connect_url(self, connect_url): + """ + Sets the connect_url of this V1VirtualMachineInstanceMigrationSource. + The synchronization controller URL to connect to. + + :param connect_url: The connect_url of this V1VirtualMachineInstanceMigrationSource. + :type: str + """ + if connect_url is None: + raise ValueError("Invalid value for `connect_url`, must not be `None`") + + self._connect_url = connect_url + + @property + def migration_id(self): + """ + Gets the migration_id of this V1VirtualMachineInstanceMigrationSource. + A unique identifier to identify this migration. + + :return: The migration_id of this V1VirtualMachineInstanceMigrationSource. + :rtype: str + """ + return self._migration_id + + @migration_id.setter + def migration_id(self, migration_id): + """ + Sets the migration_id of this V1VirtualMachineInstanceMigrationSource. + A unique identifier to identify this migration. + + :param migration_id: The migration_id of this V1VirtualMachineInstanceMigrationSource. + :type: str + """ + if migration_id is None: + raise ValueError("Invalid value for `migration_id`, must not be `None`") + + self._migration_id = migration_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineInstanceMigrationSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_source_state.py b/kubevirt/models/v1_virtual_machine_instance_migration_source_state.py new file mode 100644 index 00000000..c0b81e4f --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_migration_source_state.py @@ -0,0 +1,321 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineInstanceMigrationSourceState(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'domain_name': 'str', + 'domain_namespace': 'str', + 'migration_uid': 'str', + 'node': 'str', + 'node_selectors': 'dict(str, str)', + 'persistent_state_pvc_name': 'str', + 'pod': 'str', + 'sync_address': 'str' + } + + attribute_map = { + 'domain_name': 'domainName', + 'domain_namespace': 'domainNamespace', + 'migration_uid': 'migrationUID', + 'node': 'node', + 'node_selectors': 'nodeSelectors', + 'persistent_state_pvc_name': 'persistentStatePVCName', + 'pod': 'pod', + 'sync_address': 'syncAddress' + } + + def __init__(self, domain_name=None, domain_namespace=None, migration_uid=None, node=None, node_selectors=None, persistent_state_pvc_name=None, pod=None, sync_address=None): + """ + V1VirtualMachineInstanceMigrationSourceState - a model defined in Swagger + """ + + self._domain_name = None + self._domain_namespace = None + self._migration_uid = None + self._node = None + self._node_selectors = None + self._persistent_state_pvc_name = None + self._pod = None + self._sync_address = None + + if domain_name is not None: + self.domain_name = domain_name + if domain_namespace is not None: + self.domain_namespace = domain_namespace + if migration_uid is not None: + self.migration_uid = migration_uid + if node is not None: + self.node = node + if node_selectors is not None: + self.node_selectors = node_selectors + if persistent_state_pvc_name is not None: + self.persistent_state_pvc_name = persistent_state_pvc_name + if pod is not None: + self.pod = pod + if sync_address is not None: + self.sync_address = sync_address + + @property + def domain_name(self): + """ + Gets the domain_name of this V1VirtualMachineInstanceMigrationSourceState. + The name of the domain on the source libvirt domain + + :return: The domain_name of this V1VirtualMachineInstanceMigrationSourceState. + :rtype: str + """ + return self._domain_name + + @domain_name.setter + def domain_name(self, domain_name): + """ + Sets the domain_name of this V1VirtualMachineInstanceMigrationSourceState. + The name of the domain on the source libvirt domain + + :param domain_name: The domain_name of this V1VirtualMachineInstanceMigrationSourceState. + :type: str + """ + + self._domain_name = domain_name + + @property + def domain_namespace(self): + """ + Gets the domain_namespace of this V1VirtualMachineInstanceMigrationSourceState. + Namespace used in the name of the source libvirt domain. Can be used to find and modify paths in the domain + + :return: The domain_namespace of this V1VirtualMachineInstanceMigrationSourceState. + :rtype: str + """ + return self._domain_namespace + + @domain_namespace.setter + def domain_namespace(self, domain_namespace): + """ + Sets the domain_namespace of this V1VirtualMachineInstanceMigrationSourceState. + Namespace used in the name of the source libvirt domain. Can be used to find and modify paths in the domain + + :param domain_namespace: The domain_namespace of this V1VirtualMachineInstanceMigrationSourceState. + :type: str + """ + + self._domain_namespace = domain_namespace + + @property + def migration_uid(self): + """ + Gets the migration_uid of this V1VirtualMachineInstanceMigrationSourceState. + The Source VirtualMachineInstanceMigration object associated with this migration + + :return: The migration_uid of this V1VirtualMachineInstanceMigrationSourceState. + :rtype: str + """ + return self._migration_uid + + @migration_uid.setter + def migration_uid(self, migration_uid): + """ + Sets the migration_uid of this V1VirtualMachineInstanceMigrationSourceState. + The Source VirtualMachineInstanceMigration object associated with this migration + + :param migration_uid: The migration_uid of this V1VirtualMachineInstanceMigrationSourceState. + :type: str + """ + + self._migration_uid = migration_uid + + @property + def node(self): + """ + Gets the node of this V1VirtualMachineInstanceMigrationSourceState. + The source node that the VMI originated on + + :return: The node of this V1VirtualMachineInstanceMigrationSourceState. + :rtype: str + """ + return self._node + + @node.setter + def node(self, node): + """ + Sets the node of this V1VirtualMachineInstanceMigrationSourceState. + The source node that the VMI originated on + + :param node: The node of this V1VirtualMachineInstanceMigrationSourceState. + :type: str + """ + + self._node = node + + @property + def node_selectors(self): + """ + Gets the node_selectors of this V1VirtualMachineInstanceMigrationSourceState. + Node selectors needed by the target to start the receiving pod. + + :return: The node_selectors of this V1VirtualMachineInstanceMigrationSourceState. + :rtype: dict(str, str) + """ + return self._node_selectors + + @node_selectors.setter + def node_selectors(self, node_selectors): + """ + Sets the node_selectors of this V1VirtualMachineInstanceMigrationSourceState. + Node selectors needed by the target to start the receiving pod. + + :param node_selectors: The node_selectors of this V1VirtualMachineInstanceMigrationSourceState. + :type: dict(str, str) + """ + + self._node_selectors = node_selectors + + @property + def persistent_state_pvc_name(self): + """ + Gets the persistent_state_pvc_name of this V1VirtualMachineInstanceMigrationSourceState. + If the VMI being migrated uses persistent features (backend-storage), its source PVC name is saved here + + :return: The persistent_state_pvc_name of this V1VirtualMachineInstanceMigrationSourceState. + :rtype: str + """ + return self._persistent_state_pvc_name + + @persistent_state_pvc_name.setter + def persistent_state_pvc_name(self, persistent_state_pvc_name): + """ + Sets the persistent_state_pvc_name of this V1VirtualMachineInstanceMigrationSourceState. + If the VMI being migrated uses persistent features (backend-storage), its source PVC name is saved here + + :param persistent_state_pvc_name: The persistent_state_pvc_name of this V1VirtualMachineInstanceMigrationSourceState. + :type: str + """ + + self._persistent_state_pvc_name = persistent_state_pvc_name + + @property + def pod(self): + """ + Gets the pod of this V1VirtualMachineInstanceMigrationSourceState. + The source pod that the VMI is originated on + + :return: The pod of this V1VirtualMachineInstanceMigrationSourceState. + :rtype: str + """ + return self._pod + + @pod.setter + def pod(self, pod): + """ + Sets the pod of this V1VirtualMachineInstanceMigrationSourceState. + The source pod that the VMI is originated on + + :param pod: The pod of this V1VirtualMachineInstanceMigrationSourceState. + :type: str + """ + + self._pod = pod + + @property + def sync_address(self): + """ + Gets the sync_address of this V1VirtualMachineInstanceMigrationSourceState. + The ip address/fqdn:port combination to use to synchronize the VMI with the target. + + :return: The sync_address of this V1VirtualMachineInstanceMigrationSourceState. + :rtype: str + """ + return self._sync_address + + @sync_address.setter + def sync_address(self, sync_address): + """ + Sets the sync_address of this V1VirtualMachineInstanceMigrationSourceState. + The ip address/fqdn:port combination to use to synchronize the VMI with the target. + + :param sync_address: The sync_address of this V1VirtualMachineInstanceMigrationSourceState. + :type: str + """ + + self._sync_address = sync_address + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineInstanceMigrationSourceState): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_spec.py b/kubevirt/models/v1_virtual_machine_instance_migration_spec.py index 0756ec83..cd3ed45d 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_spec.py @@ -32,24 +32,34 @@ class V1VirtualMachineInstanceMigrationSpec(object): """ swagger_types = { 'added_node_selector': 'dict(str, str)', + 'receive': 'V1VirtualMachineInstanceMigrationTarget', + 'send_to': 'V1VirtualMachineInstanceMigrationSource', 'vmi_name': 'str' } attribute_map = { 'added_node_selector': 'addedNodeSelector', + 'receive': 'receive', + 'send_to': 'sendTo', 'vmi_name': 'vmiName' } - def __init__(self, added_node_selector=None, vmi_name=None): + def __init__(self, added_node_selector=None, receive=None, send_to=None, vmi_name=None): """ V1VirtualMachineInstanceMigrationSpec - a model defined in Swagger """ self._added_node_selector = None + self._receive = None + self._send_to = None self._vmi_name = None if added_node_selector is not None: self.added_node_selector = added_node_selector + if receive is not None: + self.receive = receive + if send_to is not None: + self.send_to = send_to if vmi_name is not None: self.vmi_name = vmi_name @@ -76,6 +86,52 @@ def added_node_selector(self, added_node_selector): self._added_node_selector = added_node_selector + @property + def receive(self): + """ + Gets the receive of this V1VirtualMachineInstanceMigrationSpec. + If receieve is specified, this VirtualMachineInstanceMigration will be considered the target + + :return: The receive of this V1VirtualMachineInstanceMigrationSpec. + :rtype: V1VirtualMachineInstanceMigrationTarget + """ + return self._receive + + @receive.setter + def receive(self, receive): + """ + Sets the receive of this V1VirtualMachineInstanceMigrationSpec. + If receieve is specified, this VirtualMachineInstanceMigration will be considered the target + + :param receive: The receive of this V1VirtualMachineInstanceMigrationSpec. + :type: V1VirtualMachineInstanceMigrationTarget + """ + + self._receive = receive + + @property + def send_to(self): + """ + Gets the send_to of this V1VirtualMachineInstanceMigrationSpec. + If sendTo is specified, this VirtualMachineInstanceMigration will be considered the source + + :return: The send_to of this V1VirtualMachineInstanceMigrationSpec. + :rtype: V1VirtualMachineInstanceMigrationSource + """ + return self._send_to + + @send_to.setter + def send_to(self, send_to): + """ + Sets the send_to of this V1VirtualMachineInstanceMigrationSpec. + If sendTo is specified, this VirtualMachineInstanceMigration will be considered the source + + :param send_to: The send_to of this V1VirtualMachineInstanceMigrationSpec. + :type: V1VirtualMachineInstanceMigrationSource + """ + + self._send_to = send_to + @property def vmi_name(self): """ diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_state.py b/kubevirt/models/v1_virtual_machine_instance_migration_state.py index 70282077..9401bddc 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_state.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_state.py @@ -38,12 +38,14 @@ class V1VirtualMachineInstanceMigrationState(object): 'failed': 'bool', 'failure_reason': 'str', 'migration_configuration': 'V1MigrationConfiguration', + 'migration_network_type': 'str', 'migration_policy_name': 'str', 'migration_uid': 'str', 'mode': 'str', 'source_node': 'str', 'source_persistent_state_pvc_name': 'str', 'source_pod': 'str', + 'source_state': 'V1VirtualMachineInstanceMigrationSourceState', 'start_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', 'target_attachment_pod_uid': 'str', 'target_cpu_set': 'list[int]', @@ -54,7 +56,8 @@ class V1VirtualMachineInstanceMigrationState(object): 'target_node_domain_ready_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', 'target_node_topology': 'str', 'target_persistent_state_pvc_name': 'str', - 'target_pod': 'str' + 'target_pod': 'str', + 'target_state': 'V1VirtualMachineInstanceMigrationTargetState' } attribute_map = { @@ -65,12 +68,14 @@ class V1VirtualMachineInstanceMigrationState(object): 'failed': 'failed', 'failure_reason': 'failureReason', 'migration_configuration': 'migrationConfiguration', + 'migration_network_type': 'migrationNetworkType', 'migration_policy_name': 'migrationPolicyName', 'migration_uid': 'migrationUid', 'mode': 'mode', 'source_node': 'sourceNode', 'source_persistent_state_pvc_name': 'sourcePersistentStatePVCName', 'source_pod': 'sourcePod', + 'source_state': 'sourceState', 'start_timestamp': 'startTimestamp', 'target_attachment_pod_uid': 'targetAttachmentPodUID', 'target_cpu_set': 'targetCPUSet', @@ -81,10 +86,11 @@ class V1VirtualMachineInstanceMigrationState(object): 'target_node_domain_ready_timestamp': 'targetNodeDomainReadyTimestamp', 'target_node_topology': 'targetNodeTopology', 'target_persistent_state_pvc_name': 'targetPersistentStatePVCName', - 'target_pod': 'targetPod' + 'target_pod': 'targetPod', + 'target_state': 'targetState' } - def __init__(self, abort_requested=None, abort_status=None, completed=None, end_timestamp=None, failed=None, failure_reason=None, migration_configuration=None, migration_policy_name=None, migration_uid=None, mode=None, source_node=None, source_persistent_state_pvc_name=None, source_pod=None, start_timestamp=None, target_attachment_pod_uid=None, target_cpu_set=None, target_direct_migration_node_ports=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_node_domain_ready_timestamp=None, target_node_topology=None, target_persistent_state_pvc_name=None, target_pod=None): + def __init__(self, abort_requested=None, abort_status=None, completed=None, end_timestamp=None, failed=None, failure_reason=None, migration_configuration=None, migration_network_type=None, migration_policy_name=None, migration_uid=None, mode=None, source_node=None, source_persistent_state_pvc_name=None, source_pod=None, source_state=None, start_timestamp=None, target_attachment_pod_uid=None, target_cpu_set=None, target_direct_migration_node_ports=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_node_domain_ready_timestamp=None, target_node_topology=None, target_persistent_state_pvc_name=None, target_pod=None, target_state=None): """ V1VirtualMachineInstanceMigrationState - a model defined in Swagger """ @@ -96,12 +102,14 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self._failed = None self._failure_reason = None self._migration_configuration = None + self._migration_network_type = None self._migration_policy_name = None self._migration_uid = None self._mode = None self._source_node = None self._source_persistent_state_pvc_name = None self._source_pod = None + self._source_state = None self._start_timestamp = None self._target_attachment_pod_uid = None self._target_cpu_set = None @@ -113,6 +121,7 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self._target_node_topology = None self._target_persistent_state_pvc_name = None self._target_pod = None + self._target_state = None if abort_requested is not None: self.abort_requested = abort_requested @@ -128,6 +137,8 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self.failure_reason = failure_reason if migration_configuration is not None: self.migration_configuration = migration_configuration + if migration_network_type is not None: + self.migration_network_type = migration_network_type if migration_policy_name is not None: self.migration_policy_name = migration_policy_name if migration_uid is not None: @@ -140,6 +151,8 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self.source_persistent_state_pvc_name = source_persistent_state_pvc_name if source_pod is not None: self.source_pod = source_pod + if source_state is not None: + self.source_state = source_state if start_timestamp is not None: self.start_timestamp = start_timestamp if target_attachment_pod_uid is not None: @@ -162,6 +175,8 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self.target_persistent_state_pvc_name = target_persistent_state_pvc_name if target_pod is not None: self.target_pod = target_pod + if target_state is not None: + self.target_state = target_state @property def abort_requested(self): @@ -324,6 +339,29 @@ def migration_configuration(self, migration_configuration): self._migration_configuration = migration_configuration + @property + def migration_network_type(self): + """ + Gets the migration_network_type of this V1VirtualMachineInstanceMigrationState. + The type of migration network, either 'pod' or 'migration' + + :return: The migration_network_type of this V1VirtualMachineInstanceMigrationState. + :rtype: str + """ + return self._migration_network_type + + @migration_network_type.setter + def migration_network_type(self, migration_network_type): + """ + Sets the migration_network_type of this V1VirtualMachineInstanceMigrationState. + The type of migration network, either 'pod' or 'migration' + + :param migration_network_type: The migration_network_type of this V1VirtualMachineInstanceMigrationState. + :type: str + """ + + self._migration_network_type = migration_network_type + @property def migration_policy_name(self): """ @@ -460,6 +498,29 @@ def source_pod(self, source_pod): self._source_pod = source_pod + @property + def source_state(self): + """ + Gets the source_state of this V1VirtualMachineInstanceMigrationState. + SourceState contains migration state managed by the source virt handler + + :return: The source_state of this V1VirtualMachineInstanceMigrationState. + :rtype: V1VirtualMachineInstanceMigrationSourceState + """ + return self._source_state + + @source_state.setter + def source_state(self, source_state): + """ + Sets the source_state of this V1VirtualMachineInstanceMigrationState. + SourceState contains migration state managed by the source virt handler + + :param source_state: The source_state of this V1VirtualMachineInstanceMigrationState. + :type: V1VirtualMachineInstanceMigrationSourceState + """ + + self._source_state = source_state + @property def start_timestamp(self): """ @@ -713,6 +774,29 @@ def target_pod(self, target_pod): self._target_pod = target_pod + @property + def target_state(self): + """ + Gets the target_state of this V1VirtualMachineInstanceMigrationState. + TargetState contains migration state managed by the target virt handler + + :return: The target_state of this V1VirtualMachineInstanceMigrationState. + :rtype: V1VirtualMachineInstanceMigrationTargetState + """ + return self._target_state + + @target_state.setter + def target_state(self, target_state): + """ + Sets the target_state of this V1VirtualMachineInstanceMigrationState. + TargetState contains migration state managed by the target virt handler + + :param target_state: The target_state of this V1VirtualMachineInstanceMigrationState. + :type: V1VirtualMachineInstanceMigrationTargetState + """ + + self._target_state = target_state + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_target.py b/kubevirt/models/v1_virtual_machine_instance_migration_target.py new file mode 100644 index 00000000..5e7591c1 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_migration_target.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineInstanceMigrationTarget(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'migration_id': 'str' + } + + attribute_map = { + 'migration_id': 'migrationID' + } + + def __init__(self, migration_id=''): + """ + V1VirtualMachineInstanceMigrationTarget - a model defined in Swagger + """ + + self._migration_id = None + + self.migration_id = migration_id + + @property + def migration_id(self): + """ + Gets the migration_id of this V1VirtualMachineInstanceMigrationTarget. + A unique identifier to identify this migration. + + :return: The migration_id of this V1VirtualMachineInstanceMigrationTarget. + :rtype: str + """ + return self._migration_id + + @migration_id.setter + def migration_id(self, migration_id): + """ + Sets the migration_id of this V1VirtualMachineInstanceMigrationTarget. + A unique identifier to identify this migration. + + :param migration_id: The migration_id of this V1VirtualMachineInstanceMigrationTarget. + :type: str + """ + if migration_id is None: + raise ValueError("Invalid value for `migration_id`, must not be `None`") + + self._migration_id = migration_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineInstanceMigrationTarget): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_target_state.py b/kubevirt/models/v1_virtual_machine_instance_migration_target_state.py new file mode 100644 index 00000000..1d4bade7 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_migration_target_state.py @@ -0,0 +1,489 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineInstanceMigrationTargetState(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'attachment_pod_uid': 'str', + 'cpu_set': 'list[int]', + 'direct_migration_node_ports': 'dict(str, int)', + 'domain_detected': 'bool', + 'domain_name': 'str', + 'domain_namespace': 'str', + 'domain_ready_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', + 'migration_uid': 'str', + 'node': 'str', + 'node_address': 'str', + 'node_topology': 'str', + 'persistent_state_pvc_name': 'str', + 'pod': 'str', + 'sync_address': 'str' + } + + attribute_map = { + 'attachment_pod_uid': 'attachmentPodUID', + 'cpu_set': 'cpuSet', + 'direct_migration_node_ports': 'directMigrationNodePorts', + 'domain_detected': 'domainDetected', + 'domain_name': 'domainName', + 'domain_namespace': 'domainNamespace', + 'domain_ready_timestamp': 'domainReadyTimestamp', + 'migration_uid': 'migrationUID', + 'node': 'node', + 'node_address': 'nodeAddress', + 'node_topology': 'nodeTopology', + 'persistent_state_pvc_name': 'persistentStatePVCName', + 'pod': 'pod', + 'sync_address': 'syncAddress' + } + + def __init__(self, attachment_pod_uid=None, cpu_set=None, direct_migration_node_ports=None, domain_detected=None, domain_name=None, domain_namespace=None, domain_ready_timestamp=None, migration_uid=None, node=None, node_address=None, node_topology=None, persistent_state_pvc_name=None, pod=None, sync_address=None): + """ + V1VirtualMachineInstanceMigrationTargetState - a model defined in Swagger + """ + + self._attachment_pod_uid = None + self._cpu_set = None + self._direct_migration_node_ports = None + self._domain_detected = None + self._domain_name = None + self._domain_namespace = None + self._domain_ready_timestamp = None + self._migration_uid = None + self._node = None + self._node_address = None + self._node_topology = None + self._persistent_state_pvc_name = None + self._pod = None + self._sync_address = None + + if attachment_pod_uid is not None: + self.attachment_pod_uid = attachment_pod_uid + if cpu_set is not None: + self.cpu_set = cpu_set + if direct_migration_node_ports is not None: + self.direct_migration_node_ports = direct_migration_node_ports + if domain_detected is not None: + self.domain_detected = domain_detected + if domain_name is not None: + self.domain_name = domain_name + if domain_namespace is not None: + self.domain_namespace = domain_namespace + if domain_ready_timestamp is not None: + self.domain_ready_timestamp = domain_ready_timestamp + if migration_uid is not None: + self.migration_uid = migration_uid + if node is not None: + self.node = node + if node_address is not None: + self.node_address = node_address + if node_topology is not None: + self.node_topology = node_topology + if persistent_state_pvc_name is not None: + self.persistent_state_pvc_name = persistent_state_pvc_name + if pod is not None: + self.pod = pod + if sync_address is not None: + self.sync_address = sync_address + + @property + def attachment_pod_uid(self): + """ + Gets the attachment_pod_uid of this V1VirtualMachineInstanceMigrationTargetState. + The UID of the target attachment pod for hotplug volumes + + :return: The attachment_pod_uid of this V1VirtualMachineInstanceMigrationTargetState. + :rtype: str + """ + return self._attachment_pod_uid + + @attachment_pod_uid.setter + def attachment_pod_uid(self, attachment_pod_uid): + """ + Sets the attachment_pod_uid of this V1VirtualMachineInstanceMigrationTargetState. + The UID of the target attachment pod for hotplug volumes + + :param attachment_pod_uid: The attachment_pod_uid of this V1VirtualMachineInstanceMigrationTargetState. + :type: str + """ + + self._attachment_pod_uid = attachment_pod_uid + + @property + def cpu_set(self): + """ + Gets the cpu_set of this V1VirtualMachineInstanceMigrationTargetState. + If the VMI requires dedicated CPUs, this field will hold the dedicated CPU set on the target node + + :return: The cpu_set of this V1VirtualMachineInstanceMigrationTargetState. + :rtype: list[int] + """ + return self._cpu_set + + @cpu_set.setter + def cpu_set(self, cpu_set): + """ + Sets the cpu_set of this V1VirtualMachineInstanceMigrationTargetState. + If the VMI requires dedicated CPUs, this field will hold the dedicated CPU set on the target node + + :param cpu_set: The cpu_set of this V1VirtualMachineInstanceMigrationTargetState. + :type: list[int] + """ + + self._cpu_set = cpu_set + + @property + def direct_migration_node_ports(self): + """ + Gets the direct_migration_node_ports of this V1VirtualMachineInstanceMigrationTargetState. + The list of ports opened for live migration on the destination node + + :return: The direct_migration_node_ports of this V1VirtualMachineInstanceMigrationTargetState. + :rtype: dict(str, int) + """ + return self._direct_migration_node_ports + + @direct_migration_node_ports.setter + def direct_migration_node_ports(self, direct_migration_node_ports): + """ + Sets the direct_migration_node_ports of this V1VirtualMachineInstanceMigrationTargetState. + The list of ports opened for live migration on the destination node + + :param direct_migration_node_ports: The direct_migration_node_ports of this V1VirtualMachineInstanceMigrationTargetState. + :type: dict(str, int) + """ + + self._direct_migration_node_ports = direct_migration_node_ports + + @property + def domain_detected(self): + """ + Gets the domain_detected of this V1VirtualMachineInstanceMigrationTargetState. + The Target Node has seen the Domain Start Event + + :return: The domain_detected of this V1VirtualMachineInstanceMigrationTargetState. + :rtype: bool + """ + return self._domain_detected + + @domain_detected.setter + def domain_detected(self, domain_detected): + """ + Sets the domain_detected of this V1VirtualMachineInstanceMigrationTargetState. + The Target Node has seen the Domain Start Event + + :param domain_detected: The domain_detected of this V1VirtualMachineInstanceMigrationTargetState. + :type: bool + """ + + self._domain_detected = domain_detected + + @property + def domain_name(self): + """ + Gets the domain_name of this V1VirtualMachineInstanceMigrationTargetState. + The name of the domain on the source libvirt domain + + :return: The domain_name of this V1VirtualMachineInstanceMigrationTargetState. + :rtype: str + """ + return self._domain_name + + @domain_name.setter + def domain_name(self, domain_name): + """ + Sets the domain_name of this V1VirtualMachineInstanceMigrationTargetState. + The name of the domain on the source libvirt domain + + :param domain_name: The domain_name of this V1VirtualMachineInstanceMigrationTargetState. + :type: str + """ + + self._domain_name = domain_name + + @property + def domain_namespace(self): + """ + Gets the domain_namespace of this V1VirtualMachineInstanceMigrationTargetState. + Namespace used in the name of the source libvirt domain. Can be used to find and modify paths in the domain + + :return: The domain_namespace of this V1VirtualMachineInstanceMigrationTargetState. + :rtype: str + """ + return self._domain_namespace + + @domain_namespace.setter + def domain_namespace(self, domain_namespace): + """ + Sets the domain_namespace of this V1VirtualMachineInstanceMigrationTargetState. + Namespace used in the name of the source libvirt domain. Can be used to find and modify paths in the domain + + :param domain_namespace: The domain_namespace of this V1VirtualMachineInstanceMigrationTargetState. + :type: str + """ + + self._domain_namespace = domain_namespace + + @property + def domain_ready_timestamp(self): + """ + Gets the domain_ready_timestamp of this V1VirtualMachineInstanceMigrationTargetState. + The timestamp at which the target node detects the domain is active + + :return: The domain_ready_timestamp of this V1VirtualMachineInstanceMigrationTargetState. + :rtype: K8sIoApimachineryPkgApisMetaV1Time + """ + return self._domain_ready_timestamp + + @domain_ready_timestamp.setter + def domain_ready_timestamp(self, domain_ready_timestamp): + """ + Sets the domain_ready_timestamp of this V1VirtualMachineInstanceMigrationTargetState. + The timestamp at which the target node detects the domain is active + + :param domain_ready_timestamp: The domain_ready_timestamp of this V1VirtualMachineInstanceMigrationTargetState. + :type: K8sIoApimachineryPkgApisMetaV1Time + """ + + self._domain_ready_timestamp = domain_ready_timestamp + + @property + def migration_uid(self): + """ + Gets the migration_uid of this V1VirtualMachineInstanceMigrationTargetState. + The Source VirtualMachineInstanceMigration object associated with this migration + + :return: The migration_uid of this V1VirtualMachineInstanceMigrationTargetState. + :rtype: str + """ + return self._migration_uid + + @migration_uid.setter + def migration_uid(self, migration_uid): + """ + Sets the migration_uid of this V1VirtualMachineInstanceMigrationTargetState. + The Source VirtualMachineInstanceMigration object associated with this migration + + :param migration_uid: The migration_uid of this V1VirtualMachineInstanceMigrationTargetState. + :type: str + """ + + self._migration_uid = migration_uid + + @property + def node(self): + """ + Gets the node of this V1VirtualMachineInstanceMigrationTargetState. + The source node that the VMI originated on + + :return: The node of this V1VirtualMachineInstanceMigrationTargetState. + :rtype: str + """ + return self._node + + @node.setter + def node(self, node): + """ + Sets the node of this V1VirtualMachineInstanceMigrationTargetState. + The source node that the VMI originated on + + :param node: The node of this V1VirtualMachineInstanceMigrationTargetState. + :type: str + """ + + self._node = node + + @property + def node_address(self): + """ + Gets the node_address of this V1VirtualMachineInstanceMigrationTargetState. + The address of the target node to use for the migration + + :return: The node_address of this V1VirtualMachineInstanceMigrationTargetState. + :rtype: str + """ + return self._node_address + + @node_address.setter + def node_address(self, node_address): + """ + Sets the node_address of this V1VirtualMachineInstanceMigrationTargetState. + The address of the target node to use for the migration + + :param node_address: The node_address of this V1VirtualMachineInstanceMigrationTargetState. + :type: str + """ + + self._node_address = node_address + + @property + def node_topology(self): + """ + Gets the node_topology of this V1VirtualMachineInstanceMigrationTargetState. + If the VMI requires dedicated CPUs, this field will hold the numa topology on the target node + + :return: The node_topology of this V1VirtualMachineInstanceMigrationTargetState. + :rtype: str + """ + return self._node_topology + + @node_topology.setter + def node_topology(self, node_topology): + """ + Sets the node_topology of this V1VirtualMachineInstanceMigrationTargetState. + If the VMI requires dedicated CPUs, this field will hold the numa topology on the target node + + :param node_topology: The node_topology of this V1VirtualMachineInstanceMigrationTargetState. + :type: str + """ + + self._node_topology = node_topology + + @property + def persistent_state_pvc_name(self): + """ + Gets the persistent_state_pvc_name of this V1VirtualMachineInstanceMigrationTargetState. + If the VMI being migrated uses persistent features (backend-storage), its source PVC name is saved here + + :return: The persistent_state_pvc_name of this V1VirtualMachineInstanceMigrationTargetState. + :rtype: str + """ + return self._persistent_state_pvc_name + + @persistent_state_pvc_name.setter + def persistent_state_pvc_name(self, persistent_state_pvc_name): + """ + Sets the persistent_state_pvc_name of this V1VirtualMachineInstanceMigrationTargetState. + If the VMI being migrated uses persistent features (backend-storage), its source PVC name is saved here + + :param persistent_state_pvc_name: The persistent_state_pvc_name of this V1VirtualMachineInstanceMigrationTargetState. + :type: str + """ + + self._persistent_state_pvc_name = persistent_state_pvc_name + + @property + def pod(self): + """ + Gets the pod of this V1VirtualMachineInstanceMigrationTargetState. + The source pod that the VMI is originated on + + :return: The pod of this V1VirtualMachineInstanceMigrationTargetState. + :rtype: str + """ + return self._pod + + @pod.setter + def pod(self, pod): + """ + Sets the pod of this V1VirtualMachineInstanceMigrationTargetState. + The source pod that the VMI is originated on + + :param pod: The pod of this V1VirtualMachineInstanceMigrationTargetState. + :type: str + """ + + self._pod = pod + + @property + def sync_address(self): + """ + Gets the sync_address of this V1VirtualMachineInstanceMigrationTargetState. + The ip address/fqdn:port combination to use to synchronize the VMI with the target. + + :return: The sync_address of this V1VirtualMachineInstanceMigrationTargetState. + :rtype: str + """ + return self._sync_address + + @sync_address.setter + def sync_address(self, sync_address): + """ + Sets the sync_address of this V1VirtualMachineInstanceMigrationTargetState. + The ip address/fqdn:port combination to use to synchronize the VMI with the target. + + :param sync_address: The sync_address of this V1VirtualMachineInstanceMigrationTargetState. + :type: str + """ + + self._sync_address = sync_address + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineInstanceMigrationTargetState): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 86a4c29c..de7f9259 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.6.0-alpha.0-55-gbbc9918da2" +VERSION = "v1.6.0-alpha.0-146-gc800179aca" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index fbbb737e..9f02416a 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.6.0-alpha.0-55-gbbc9918da2" +"packageVersion": "v1.6.0-alpha.0-146-gc800179aca" } diff --git a/test/test_v1_virtual_machine_instance_migration_source.py b/test/test_v1_virtual_machine_instance_migration_source.py new file mode 100644 index 00000000..7d94f2f2 --- /dev/null +++ b/test/test_v1_virtual_machine_instance_migration_source.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_migration_source import V1VirtualMachineInstanceMigrationSource + + +class TestV1VirtualMachineInstanceMigrationSource(unittest.TestCase): + """ V1VirtualMachineInstanceMigrationSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceMigrationSource(self): + """ + Test V1VirtualMachineInstanceMigrationSource + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_migration_source.V1VirtualMachineInstanceMigrationSource() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_virtual_machine_instance_migration_source_state.py b/test/test_v1_virtual_machine_instance_migration_source_state.py new file mode 100644 index 00000000..591badc5 --- /dev/null +++ b/test/test_v1_virtual_machine_instance_migration_source_state.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_migration_source_state import V1VirtualMachineInstanceMigrationSourceState + + +class TestV1VirtualMachineInstanceMigrationSourceState(unittest.TestCase): + """ V1VirtualMachineInstanceMigrationSourceState unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceMigrationSourceState(self): + """ + Test V1VirtualMachineInstanceMigrationSourceState + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_migration_source_state.V1VirtualMachineInstanceMigrationSourceState() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_virtual_machine_instance_migration_target.py b/test/test_v1_virtual_machine_instance_migration_target.py new file mode 100644 index 00000000..5e02fd9d --- /dev/null +++ b/test/test_v1_virtual_machine_instance_migration_target.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_migration_target import V1VirtualMachineInstanceMigrationTarget + + +class TestV1VirtualMachineInstanceMigrationTarget(unittest.TestCase): + """ V1VirtualMachineInstanceMigrationTarget unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceMigrationTarget(self): + """ + Test V1VirtualMachineInstanceMigrationTarget + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_migration_target.V1VirtualMachineInstanceMigrationTarget() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_virtual_machine_instance_migration_target_state.py b/test/test_v1_virtual_machine_instance_migration_target_state.py new file mode 100644 index 00000000..1318b3f1 --- /dev/null +++ b/test/test_v1_virtual_machine_instance_migration_target_state.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_migration_target_state import V1VirtualMachineInstanceMigrationTargetState + + +class TestV1VirtualMachineInstanceMigrationTargetState(unittest.TestCase): + """ V1VirtualMachineInstanceMigrationTargetState unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceMigrationTargetState(self): + """ + Test V1VirtualMachineInstanceMigrationTargetState + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_migration_target_state.V1VirtualMachineInstanceMigrationTargetState() + pass + + +if __name__ == '__main__': + unittest.main() From 4a852d35b295fc2683136071bf1139f2b54bc0f1 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Mon, 26 May 2025 19:17:56 +0000 Subject: [PATCH 457/521] Client Python update by KubeVirt Prow build 1927079353317855232 --- README.md | 2 +- docs/V1alpha1VirtualMachinePoolSpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1alpha1_virtual_machine_pool_spec.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index fb333268..5533ba2b 100644 --- a/README.md +++ b/README.md @@ -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.6.0-alpha.0-146-gc800179aca +- Package version: v1.6.0-beta.0-33-g0bb85f4fc1 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1alpha1VirtualMachinePoolSpec.md b/docs/V1alpha1VirtualMachinePoolSpec.md index 9dc83eeb..d994244b 100644 --- a/docs/V1alpha1VirtualMachinePoolSpec.md +++ b/docs/V1alpha1VirtualMachinePoolSpec.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**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] **name_generation** | [**V1alpha1VirtualMachinePoolNameGeneration**](V1alpha1VirtualMachinePoolNameGeneration.md) | Options for the name generation in a pool. | [optional] **paused** | **bool** | Indicates that the pool is paused. | [optional] **replicas** | **int** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] diff --git a/git_push.sh b/git_push.sh index ecf72272..748e7747 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.6.0-alpha.0-146-gc800179aca" + release_note="Auto-generated client v1.6.0-beta.0-33-g0bb85f4fc1" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 6f7b13ac..7437cc17 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.6.0-alpha.0-146-gc800179aca/python' + self.user_agent = 'Swagger-Codegen/v1.6.0-beta.0-33-g0bb85f4fc1/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 9603c126..1deafc20 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.6.0-alpha.0-146-gc800179aca".\ + "SDK Package Version: v1.6.0-beta.0-33-g0bb85f4fc1".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py b/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py index 71874229..e1f1b4cb 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py +++ b/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py @@ -31,6 +31,7 @@ class V1alpha1VirtualMachinePoolSpec(object): and the value is json key in definition. """ swagger_types = { + 'max_unavailable': 'K8sIoApimachineryPkgUtilIntstrIntOrString', 'name_generation': 'V1alpha1VirtualMachinePoolNameGeneration', 'paused': 'bool', 'replicas': 'int', @@ -39,6 +40,7 @@ class V1alpha1VirtualMachinePoolSpec(object): } attribute_map = { + 'max_unavailable': 'maxUnavailable', 'name_generation': 'nameGeneration', 'paused': 'paused', 'replicas': 'replicas', @@ -46,17 +48,20 @@ class V1alpha1VirtualMachinePoolSpec(object): 'virtual_machine_template': 'virtualMachineTemplate' } - def __init__(self, name_generation=None, paused=None, replicas=None, selector=None, virtual_machine_template=None): + def __init__(self, max_unavailable=None, name_generation=None, paused=None, replicas=None, selector=None, virtual_machine_template=None): """ V1alpha1VirtualMachinePoolSpec - a model defined in Swagger """ + self._max_unavailable = None self._name_generation = None self._paused = None self._replicas = None self._selector = None self._virtual_machine_template = None + if max_unavailable is not None: + self.max_unavailable = max_unavailable if name_generation is not None: self.name_generation = name_generation if paused is not None: @@ -66,6 +71,29 @@ def __init__(self, name_generation=None, paused=None, replicas=None, selector=No self.selector = selector self.virtual_machine_template = virtual_machine_template + @property + def max_unavailable(self): + """ + Gets the max_unavailable of this V1alpha1VirtualMachinePoolSpec. + (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. + + :return: The max_unavailable of this V1alpha1VirtualMachinePoolSpec. + :rtype: K8sIoApimachineryPkgUtilIntstrIntOrString + """ + return self._max_unavailable + + @max_unavailable.setter + def max_unavailable(self, max_unavailable): + """ + Sets the max_unavailable of this V1alpha1VirtualMachinePoolSpec. + (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. + + :param max_unavailable: The max_unavailable of this V1alpha1VirtualMachinePoolSpec. + :type: K8sIoApimachineryPkgUtilIntstrIntOrString + """ + + self._max_unavailable = max_unavailable + @property def name_generation(self): """ diff --git a/setup.py b/setup.py index de7f9259..52a857bb 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.6.0-alpha.0-146-gc800179aca" +VERSION = "v1.6.0-beta.0-33-g0bb85f4fc1" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 9f02416a..7f59a3a5 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.6.0-alpha.0-146-gc800179aca" +"packageVersion": "v1.6.0-beta.0-33-g0bb85f4fc1" } From 89cdcacbb929e3e4dae5381fb9d8cb89351b6b9a Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Tue, 3 Jun 2025 21:02:14 +0000 Subject: [PATCH 458/521] Client Python update by KubeVirt Prow build 1930004620713660416 --- README.md | 2 +- docs/V1KubeVirtSpec.md | 1 + docs/V1LogVerbosity.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_kube_virt_spec.py | 30 +++++++++++++++++++++++++- kubevirt/models/v1_log_verbosity.py | 32 +++++++++++++++++++++++++--- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 66 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 5533ba2b..6c8daa09 100644 --- a/README.md +++ b/README.md @@ -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.6.0-beta.0-33-g0bb85f4fc1 +- Package version: v1.6.0-beta.0-100-g8e69ed103f - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1KubeVirtSpec.md b/docs/V1KubeVirtSpec.md index 170b1a3a..32a3d0dc 100644 --- a/docs/V1KubeVirtSpec.md +++ b/docs/V1KubeVirtSpec.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **product_name** | **str** | Designate the apps.kubevirt.io/part-of label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductName is not specified, the part-of label will be omitted. | [optional] **product_version** | **str** | Designate the apps.kubevirt.io/version label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductVersion is not specified, KubeVirt's version will be used. | [optional] **service_monitor_namespace** | **str** | The namespace the service monitor will be deployed When ServiceMonitorNamespace is set, then we'll install the service monitor object in that namespace otherwise we will use the monitoring namespace. | [optional] +**synchronization_port** | **str** | Specify the port to listen on for VMI status synchronization traffic. Default is 9185 | [optional] **uninstall_strategy** | **str** | Specifies if kubevirt can be deleted if workloads are still present. This is mainly a precaution to avoid accidental data loss | [optional] **workload_update_strategy** | [**V1KubeVirtWorkloadUpdateStrategy**](V1KubeVirtWorkloadUpdateStrategy.md) | WorkloadUpdateStrategy defines at the cluster level how to handle automated workload updates | [optional] **workloads** | [**V1ComponentConfig**](V1ComponentConfig.md) | selectors and tolerations that should apply to KubeVirt workloads | [optional] diff --git a/docs/V1LogVerbosity.md b/docs/V1LogVerbosity.md index 3ac43161..c5b101d1 100644 --- a/docs/V1LogVerbosity.md +++ b/docs/V1LogVerbosity.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **virt_handler** | **int** | | [optional] **virt_launcher** | **int** | | [optional] **virt_operator** | **int** | | [optional] +**virt_synchronization_controller** | **int** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 748e7747..2ac78fb9 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.6.0-beta.0-33-g0bb85f4fc1" + release_note="Auto-generated client v1.6.0-beta.0-100-g8e69ed103f" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 7437cc17..825e077c 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.6.0-beta.0-33-g0bb85f4fc1/python' + self.user_agent = 'Swagger-Codegen/v1.6.0-beta.0-100-g8e69ed103f/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 1deafc20..ac1e8de9 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.6.0-beta.0-33-g0bb85f4fc1".\ + "SDK Package Version: v1.6.0-beta.0-100-g8e69ed103f".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_kube_virt_spec.py b/kubevirt/models/v1_kube_virt_spec.py index c1180253..a8882c69 100644 --- a/kubevirt/models/v1_kube_virt_spec.py +++ b/kubevirt/models/v1_kube_virt_spec.py @@ -45,6 +45,7 @@ class V1KubeVirtSpec(object): 'product_name': 'str', 'product_version': 'str', 'service_monitor_namespace': 'str', + 'synchronization_port': 'str', 'uninstall_strategy': 'str', 'workload_update_strategy': 'V1KubeVirtWorkloadUpdateStrategy', 'workloads': 'V1ComponentConfig' @@ -65,12 +66,13 @@ class V1KubeVirtSpec(object): 'product_name': 'productName', 'product_version': 'productVersion', 'service_monitor_namespace': 'serviceMonitorNamespace', + 'synchronization_port': 'synchronizationPort', 'uninstall_strategy': 'uninstallStrategy', 'workload_update_strategy': 'workloadUpdateStrategy', 'workloads': 'workloads' } - def __init__(self, certificate_rotate_strategy=None, configuration=None, customize_components=None, image_pull_policy=None, image_pull_secrets=None, image_registry=None, image_tag=None, infra=None, monitor_account=None, monitor_namespace=None, product_component=None, product_name=None, product_version=None, service_monitor_namespace=None, uninstall_strategy=None, workload_update_strategy=None, workloads=None): + def __init__(self, certificate_rotate_strategy=None, configuration=None, customize_components=None, image_pull_policy=None, image_pull_secrets=None, image_registry=None, image_tag=None, infra=None, monitor_account=None, monitor_namespace=None, product_component=None, product_name=None, product_version=None, service_monitor_namespace=None, synchronization_port=None, uninstall_strategy=None, workload_update_strategy=None, workloads=None): """ V1KubeVirtSpec - a model defined in Swagger """ @@ -89,6 +91,7 @@ def __init__(self, certificate_rotate_strategy=None, configuration=None, customi self._product_name = None self._product_version = None self._service_monitor_namespace = None + self._synchronization_port = None self._uninstall_strategy = None self._workload_update_strategy = None self._workloads = None @@ -121,6 +124,8 @@ def __init__(self, certificate_rotate_strategy=None, configuration=None, customi self.product_version = product_version if service_monitor_namespace is not None: self.service_monitor_namespace = service_monitor_namespace + if synchronization_port is not None: + self.synchronization_port = synchronization_port if uninstall_strategy is not None: self.uninstall_strategy = uninstall_strategy if workload_update_strategy is not None: @@ -452,6 +457,29 @@ def service_monitor_namespace(self, service_monitor_namespace): self._service_monitor_namespace = service_monitor_namespace + @property + def synchronization_port(self): + """ + Gets the synchronization_port of this V1KubeVirtSpec. + Specify the port to listen on for VMI status synchronization traffic. Default is 9185 + + :return: The synchronization_port of this V1KubeVirtSpec. + :rtype: str + """ + return self._synchronization_port + + @synchronization_port.setter + def synchronization_port(self, synchronization_port): + """ + Sets the synchronization_port of this V1KubeVirtSpec. + Specify the port to listen on for VMI status synchronization traffic. Default is 9185 + + :param synchronization_port: The synchronization_port of this V1KubeVirtSpec. + :type: str + """ + + self._synchronization_port = synchronization_port + @property def uninstall_strategy(self): """ diff --git a/kubevirt/models/v1_log_verbosity.py b/kubevirt/models/v1_log_verbosity.py index 14114e6f..d9ccf5cb 100644 --- a/kubevirt/models/v1_log_verbosity.py +++ b/kubevirt/models/v1_log_verbosity.py @@ -36,7 +36,8 @@ class V1LogVerbosity(object): 'virt_controller': 'int', 'virt_handler': 'int', 'virt_launcher': 'int', - 'virt_operator': 'int' + 'virt_operator': 'int', + 'virt_synchronization_controller': 'int' } attribute_map = { @@ -45,10 +46,11 @@ class V1LogVerbosity(object): 'virt_controller': 'virtController', 'virt_handler': 'virtHandler', 'virt_launcher': 'virtLauncher', - 'virt_operator': 'virtOperator' + 'virt_operator': 'virtOperator', + 'virt_synchronization_controller': 'virtSynchronizationController' } - def __init__(self, node_verbosity=None, virt_api=None, virt_controller=None, virt_handler=None, virt_launcher=None, virt_operator=None): + def __init__(self, node_verbosity=None, virt_api=None, virt_controller=None, virt_handler=None, virt_launcher=None, virt_operator=None, virt_synchronization_controller=None): """ V1LogVerbosity - a model defined in Swagger """ @@ -59,6 +61,7 @@ def __init__(self, node_verbosity=None, virt_api=None, virt_controller=None, vir self._virt_handler = None self._virt_launcher = None self._virt_operator = None + self._virt_synchronization_controller = None if node_verbosity is not None: self.node_verbosity = node_verbosity @@ -72,6 +75,8 @@ def __init__(self, node_verbosity=None, virt_api=None, virt_controller=None, vir self.virt_launcher = virt_launcher if virt_operator is not None: self.virt_operator = virt_operator + if virt_synchronization_controller is not None: + self.virt_synchronization_controller = virt_synchronization_controller @property def node_verbosity(self): @@ -201,6 +206,27 @@ def virt_operator(self, virt_operator): self._virt_operator = virt_operator + @property + def virt_synchronization_controller(self): + """ + Gets the virt_synchronization_controller of this V1LogVerbosity. + + :return: The virt_synchronization_controller of this V1LogVerbosity. + :rtype: int + """ + return self._virt_synchronization_controller + + @virt_synchronization_controller.setter + def virt_synchronization_controller(self, virt_synchronization_controller): + """ + Sets the virt_synchronization_controller of this V1LogVerbosity. + + :param virt_synchronization_controller: The virt_synchronization_controller of this V1LogVerbosity. + :type: int + """ + + self._virt_synchronization_controller = virt_synchronization_controller + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 52a857bb..69559614 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.6.0-beta.0-33-g0bb85f4fc1" +VERSION = "v1.6.0-beta.0-100-g8e69ed103f" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 7f59a3a5..06451148 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.6.0-beta.0-33-g0bb85f4fc1" +"packageVersion": "v1.6.0-beta.0-100-g8e69ed103f" } From c13466e3687606e45e152b5b0ce9be65261fcefc Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 5 Jun 2025 02:20:32 +0000 Subject: [PATCH 459/521] Client Python update by KubeVirt Prow build 1930447038944645120 --- README.md | 2 +- docs/K8sIoApiCoreV1PodDNSConfigOption.md | 4 +-- ...oApimachineryPkgApisMetaV1DeleteOptions.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...8s_io_api_core_v1_pod_dns_config_option.py | 6 ++-- ...chinery_pkg_apis_meta_v1_delete_options.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 42 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 6c8daa09..28e666c7 100644 --- a/README.md +++ b/README.md @@ -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.6.0-beta.0-100-g8e69ed103f +- Package version: v1.6.0-beta.0-125-g352416fe7c - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/K8sIoApiCoreV1PodDNSConfigOption.md b/docs/K8sIoApiCoreV1PodDNSConfigOption.md index b1735151..07435d0e 100644 --- a/docs/K8sIoApiCoreV1PodDNSConfigOption.md +++ b/docs/K8sIoApiCoreV1PodDNSConfigOption.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Required. | [optional] -**value** | **str** | | [optional] +**name** | **str** | Name is this DNS resolver option's name. Required. | [optional] +**value** | **str** | Value is this DNS resolver option's value. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApimachineryPkgApisMetaV1DeleteOptions.md b/docs/K8sIoApimachineryPkgApisMetaV1DeleteOptions.md index 2af160d4..f2186413 100644 --- a/docs/K8sIoApimachineryPkgApisMetaV1DeleteOptions.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1DeleteOptions.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **dry_run** | **list[str]** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**ignore_store_read_error_with_cluster_breaking_potential** | **bool** | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **orphan_dependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **preconditions** | [**K8sIoApimachineryPkgApisMetaV1Preconditions**](K8sIoApimachineryPkgApisMetaV1Preconditions.md) | Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. | [optional] diff --git a/git_push.sh b/git_push.sh index 2ac78fb9..d43f0c6e 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.6.0-beta.0-100-g8e69ed103f" + release_note="Auto-generated client v1.6.0-beta.0-125-g352416fe7c" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 825e077c..0395615c 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.6.0-beta.0-100-g8e69ed103f/python' + self.user_agent = 'Swagger-Codegen/v1.6.0-beta.0-125-g352416fe7c/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index ac1e8de9..02b41340 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.6.0-beta.0-100-g8e69ed103f".\ + "SDK Package Version: v1.6.0-beta.0-125-g352416fe7c".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/k8s_io_api_core_v1_pod_dns_config_option.py b/kubevirt/models/k8s_io_api_core_v1_pod_dns_config_option.py index 62fdd6a7..c2d968e6 100644 --- a/kubevirt/models/k8s_io_api_core_v1_pod_dns_config_option.py +++ b/kubevirt/models/k8s_io_api_core_v1_pod_dns_config_option.py @@ -57,7 +57,7 @@ def __init__(self, name=None, value=None): def name(self): """ Gets the name of this K8sIoApiCoreV1PodDNSConfigOption. - Required. + Name is this DNS resolver option's name. Required. :return: The name of this K8sIoApiCoreV1PodDNSConfigOption. :rtype: str @@ -68,7 +68,7 @@ def name(self): def name(self, name): """ Sets the name of this K8sIoApiCoreV1PodDNSConfigOption. - Required. + Name is this DNS resolver option's name. Required. :param name: The name of this K8sIoApiCoreV1PodDNSConfigOption. :type: str @@ -80,6 +80,7 @@ def name(self, name): def value(self): """ Gets the value of this K8sIoApiCoreV1PodDNSConfigOption. + Value is this DNS resolver option's value. :return: The value of this K8sIoApiCoreV1PodDNSConfigOption. :rtype: str @@ -90,6 +91,7 @@ def value(self): def value(self, value): """ Sets the value of this K8sIoApiCoreV1PodDNSConfigOption. + Value is this DNS resolver option's value. :param value: The value of this K8sIoApiCoreV1PodDNSConfigOption. :type: str diff --git a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_delete_options.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_delete_options.py index a0a2a713..b920ead8 100644 --- a/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_delete_options.py +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_delete_options.py @@ -34,6 +34,7 @@ class K8sIoApimachineryPkgApisMetaV1DeleteOptions(object): 'api_version': 'str', 'dry_run': 'list[str]', 'grace_period_seconds': 'int', + 'ignore_store_read_error_with_cluster_breaking_potential': 'bool', 'kind': 'str', 'orphan_dependents': 'bool', 'preconditions': 'K8sIoApimachineryPkgApisMetaV1Preconditions', @@ -44,13 +45,14 @@ class K8sIoApimachineryPkgApisMetaV1DeleteOptions(object): 'api_version': 'apiVersion', 'dry_run': 'dryRun', 'grace_period_seconds': 'gracePeriodSeconds', + 'ignore_store_read_error_with_cluster_breaking_potential': 'ignoreStoreReadErrorWithClusterBreakingPotential', 'kind': 'kind', 'orphan_dependents': 'orphanDependents', 'preconditions': 'preconditions', 'propagation_policy': 'propagationPolicy' } - def __init__(self, api_version=None, dry_run=None, grace_period_seconds=None, kind=None, orphan_dependents=None, preconditions=None, propagation_policy=None): + def __init__(self, api_version=None, dry_run=None, grace_period_seconds=None, ignore_store_read_error_with_cluster_breaking_potential=None, kind=None, orphan_dependents=None, preconditions=None, propagation_policy=None): """ K8sIoApimachineryPkgApisMetaV1DeleteOptions - a model defined in Swagger """ @@ -58,6 +60,7 @@ def __init__(self, api_version=None, dry_run=None, grace_period_seconds=None, ki self._api_version = None self._dry_run = None self._grace_period_seconds = None + self._ignore_store_read_error_with_cluster_breaking_potential = None self._kind = None self._orphan_dependents = None self._preconditions = None @@ -69,6 +72,8 @@ def __init__(self, api_version=None, dry_run=None, grace_period_seconds=None, ki self.dry_run = dry_run if grace_period_seconds is not None: self.grace_period_seconds = grace_period_seconds + if ignore_store_read_error_with_cluster_breaking_potential is not None: + self.ignore_store_read_error_with_cluster_breaking_potential = ignore_store_read_error_with_cluster_breaking_potential if kind is not None: self.kind = kind if orphan_dependents is not None: @@ -147,6 +152,29 @@ def grace_period_seconds(self, grace_period_seconds): self._grace_period_seconds = grace_period_seconds + @property + def ignore_store_read_error_with_cluster_breaking_potential(self): + """ + Gets the ignore_store_read_error_with_cluster_breaking_potential of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. + if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + + :return: The ignore_store_read_error_with_cluster_breaking_potential of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. + :rtype: bool + """ + return self._ignore_store_read_error_with_cluster_breaking_potential + + @ignore_store_read_error_with_cluster_breaking_potential.setter + def ignore_store_read_error_with_cluster_breaking_potential(self, ignore_store_read_error_with_cluster_breaking_potential): + """ + Sets the ignore_store_read_error_with_cluster_breaking_potential of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. + if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + + :param ignore_store_read_error_with_cluster_breaking_potential: The ignore_store_read_error_with_cluster_breaking_potential of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. + :type: bool + """ + + self._ignore_store_read_error_with_cluster_breaking_potential = ignore_store_read_error_with_cluster_breaking_potential + @property def kind(self): """ diff --git a/setup.py b/setup.py index 69559614..a0f2b962 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.6.0-beta.0-100-g8e69ed103f" +VERSION = "v1.6.0-beta.0-125-g352416fe7c" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 06451148..af94a8f0 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.6.0-beta.0-100-g8e69ed103f" +"packageVersion": "v1.6.0-beta.0-125-g352416fe7c" } From 73030e17fdf06bec9746a7291b29b2ff106d9aea Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 12 Jun 2025 13:30:58 +0000 Subject: [PATCH 460/521] Client Python update by KubeVirt Prow build 1933150905666899968 --- README.md | 8 +- docs/DefaultApi.md | 208 +++++++++ docs/V1ObjectGraphNode.md | 15 + docs/V1ObjectGraphOptions.md | 11 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 + kubevirt/__init__.py | 2 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 472 +++++++++++++++++++++ kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 + kubevirt/models/v1_object_graph_node.py | 258 +++++++++++ kubevirt/models/v1_object_graph_options.py | 153 +++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 32 ++ test/test_v1_object_graph_node.py | 44 ++ test/test_v1_object_graph_options.py | 44 ++ 18 files changed, 1259 insertions(+), 6 deletions(-) create mode 100644 docs/V1ObjectGraphNode.md create mode 100644 docs/V1ObjectGraphOptions.md create mode 100644 kubevirt/models/v1_object_graph_node.py create mode 100644 kubevirt/models/v1_object_graph_options.py create mode 100644 test/test_v1_object_graph_node.py create mode 100644 test/test_v1_object_graph_options.py diff --git a/README.md b/README.md index 28e666c7..b597c012 100644 --- a/README.md +++ b/README.md @@ -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.6.0-beta.0-125-g352416fe7c +- Package version: v1.6.0-beta.0-188-g1de55bd713 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -284,10 +284,12 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3usbredir**](docs/DefaultApi.md#v1alpha3usbredir) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/usbredir | *DefaultApi* | [**v1alpha3vm_addvolume**](docs/DefaultApi.md#v1alpha3vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/addvolume | *DefaultApi* | [**v1alpha3vm_expand_spec**](docs/DefaultApi.md#v1alpha3vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/expand-spec | +*DefaultApi* | [**v1alpha3vm_objectgraph**](docs/DefaultApi.md#v1alpha3vm_objectgraph) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/objectgraph | *DefaultApi* | [**v1alpha3vm_port_forward**](docs/DefaultApi.md#v1alpha3vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/portforward/{port} | *DefaultApi* | [**v1alpha3vm_port_forward_with_protocol**](docs/DefaultApi.md#v1alpha3vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/portforward/{port}/{protocol} | *DefaultApi* | [**v1alpha3vm_removevolume**](docs/DefaultApi.md#v1alpha3vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/removevolume | *DefaultApi* | [**v1alpha3vmi_addvolume**](docs/DefaultApi.md#v1alpha3vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/addvolume | +*DefaultApi* | [**v1alpha3vmi_objectgraph**](docs/DefaultApi.md#v1alpha3vmi_objectgraph) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/objectgraph | *DefaultApi* | [**v1alpha3vmi_port_forward**](docs/DefaultApi.md#v1alpha3vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port} | *DefaultApi* | [**v1alpha3vmi_port_forward_with_protocol**](docs/DefaultApi.md#v1alpha3vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port}/{protocol} | *DefaultApi* | [**v1alpha3vmi_removevolume**](docs/DefaultApi.md#v1alpha3vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/removevolume | @@ -298,10 +300,12 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1usbredir**](docs/DefaultApi.md#v1usbredir) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/usbredir | *DefaultApi* | [**v1vm_addvolume**](docs/DefaultApi.md#v1vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/addvolume | *DefaultApi* | [**v1vm_expand_spec**](docs/DefaultApi.md#v1vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/expand-spec | +*DefaultApi* | [**v1vm_objectgraph**](docs/DefaultApi.md#v1vm_objectgraph) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/objectgraph | *DefaultApi* | [**v1vm_port_forward**](docs/DefaultApi.md#v1vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/portforward/{port} | *DefaultApi* | [**v1vm_port_forward_with_protocol**](docs/DefaultApi.md#v1vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/portforward/{port}/{protocol} | *DefaultApi* | [**v1vm_removevolume**](docs/DefaultApi.md#v1vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/removevolume | *DefaultApi* | [**v1vmi_addvolume**](docs/DefaultApi.md#v1vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/addvolume | +*DefaultApi* | [**v1vmi_objectgraph**](docs/DefaultApi.md#v1vmi_objectgraph) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/objectgraph | *DefaultApi* | [**v1vmi_port_forward**](docs/DefaultApi.md#v1vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port} | *DefaultApi* | [**v1vmi_port_forward_with_protocol**](docs/DefaultApi.md#v1vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port}/{protocol} | *DefaultApi* | [**v1vmi_removevolume**](docs/DefaultApi.md#v1vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/removevolume | @@ -519,6 +523,8 @@ Class | Method | HTTP request | Description - [V1NoCloudSSHPublicKeyAccessCredentialPropagation](docs/V1NoCloudSSHPublicKeyAccessCredentialPropagation.md) - [V1NodeMediatedDeviceTypesConfig](docs/V1NodeMediatedDeviceTypesConfig.md) - [V1NodePlacement](docs/V1NodePlacement.md) + - [V1ObjectGraphNode](docs/V1ObjectGraphNode.md) + - [V1ObjectGraphOptions](docs/V1ObjectGraphOptions.md) - [V1PITTimer](docs/V1PITTimer.md) - [V1PauseOptions](docs/V1PauseOptions.md) - [V1PciHostDevice](docs/V1PciHostDevice.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index c18259ad..f094512f 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -219,10 +219,12 @@ Method | HTTP request | Description [**v1alpha3usbredir**](DefaultApi.md#v1alpha3usbredir) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/usbredir | [**v1alpha3vm_addvolume**](DefaultApi.md#v1alpha3vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/addvolume | [**v1alpha3vm_expand_spec**](DefaultApi.md#v1alpha3vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/expand-spec | +[**v1alpha3vm_objectgraph**](DefaultApi.md#v1alpha3vm_objectgraph) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/objectgraph | [**v1alpha3vm_port_forward**](DefaultApi.md#v1alpha3vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/portforward/{port} | [**v1alpha3vm_port_forward_with_protocol**](DefaultApi.md#v1alpha3vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/portforward/{port}/{protocol} | [**v1alpha3vm_removevolume**](DefaultApi.md#v1alpha3vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/removevolume | [**v1alpha3vmi_addvolume**](DefaultApi.md#v1alpha3vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/addvolume | +[**v1alpha3vmi_objectgraph**](DefaultApi.md#v1alpha3vmi_objectgraph) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/objectgraph | [**v1alpha3vmi_port_forward**](DefaultApi.md#v1alpha3vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port} | [**v1alpha3vmi_port_forward_with_protocol**](DefaultApi.md#v1alpha3vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port}/{protocol} | [**v1alpha3vmi_removevolume**](DefaultApi.md#v1alpha3vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/removevolume | @@ -233,10 +235,12 @@ Method | HTTP request | Description [**v1usbredir**](DefaultApi.md#v1usbredir) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/usbredir | [**v1vm_addvolume**](DefaultApi.md#v1vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/addvolume | [**v1vm_expand_spec**](DefaultApi.md#v1vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/expand-spec | +[**v1vm_objectgraph**](DefaultApi.md#v1vm_objectgraph) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/objectgraph | [**v1vm_port_forward**](DefaultApi.md#v1vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/portforward/{port} | [**v1vm_port_forward_with_protocol**](DefaultApi.md#v1vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/portforward/{port}/{protocol} | [**v1vm_removevolume**](DefaultApi.md#v1vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/removevolume | [**v1vmi_addvolume**](DefaultApi.md#v1vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/addvolume | +[**v1vmi_objectgraph**](DefaultApi.md#v1vmi_objectgraph) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/objectgraph | [**v1vmi_port_forward**](DefaultApi.md#v1vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port} | [**v1vmi_port_forward_with_protocol**](DefaultApi.md#v1vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port}/{protocol} | [**v1vmi_removevolume**](DefaultApi.md#v1vmi_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/removevolume | @@ -11452,6 +11456,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3vm_objectgraph** +> V1ObjectGraphNode v1alpha3vm_objectgraph(name, namespace, body) + + + +Get graph of objects related to a Virtual Machine + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1ObjectGraphOptions() # V1ObjectGraphOptions | + +try: + api_response = api_instance.v1alpha3vm_objectgraph(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3vm_objectgraph: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1ObjectGraphOptions**](V1ObjectGraphOptions.md)| | + +### Return type + +[**V1ObjectGraphNode**](V1ObjectGraphNode.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3vm_port_forward** > v1alpha3vm_port_forward(name, namespace, port) @@ -11656,6 +11711,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3vmi_objectgraph** +> V1ObjectGraphNode v1alpha3vmi_objectgraph(name, namespace, body) + + + +Get graph of objects related to a Virtual Machine Instance + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1ObjectGraphOptions() # V1ObjectGraphOptions | + +try: + api_response = api_instance.v1alpha3vmi_objectgraph(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3vmi_objectgraph: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1ObjectGraphOptions**](V1ObjectGraphOptions.md)| | + +### Return type + +[**V1ObjectGraphNode**](V1ObjectGraphNode.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3vmi_port_forward** > v1alpha3vmi_port_forward(name, namespace, port) @@ -12120,6 +12226,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1vm_objectgraph** +> V1ObjectGraphNode v1vm_objectgraph(name, namespace, body) + + + +Get graph of objects related to a Virtual Machine + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1ObjectGraphOptions() # V1ObjectGraphOptions | + +try: + api_response = api_instance.v1vm_objectgraph(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1vm_objectgraph: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1ObjectGraphOptions**](V1ObjectGraphOptions.md)| | + +### Return type + +[**V1ObjectGraphNode**](V1ObjectGraphNode.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1vm_port_forward** > v1vm_port_forward(name, namespace, port) @@ -12324,6 +12481,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1vmi_objectgraph** +> V1ObjectGraphNode v1vmi_objectgraph(name, namespace, body) + + + +Get graph of objects related to a Virtual Machine Instance + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1ObjectGraphOptions() # V1ObjectGraphOptions | + +try: + api_response = api_instance.v1vmi_objectgraph(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1vmi_objectgraph: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1ObjectGraphOptions**](V1ObjectGraphOptions.md)| | + +### Return type + +[**V1ObjectGraphNode**](V1ObjectGraphNode.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1vmi_port_forward** > v1vmi_port_forward(name, namespace, port) diff --git a/docs/V1ObjectGraphNode.md b/docs/V1ObjectGraphNode.md new file mode 100644 index 00000000..30fed624 --- /dev/null +++ b/docs/V1ObjectGraphNode.md @@ -0,0 +1,15 @@ +# V1ObjectGraphNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**children** | [**list[V1ObjectGraphNode]**](V1ObjectGraphNode.md) | | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**labels** | **dict(str, str)** | | [optional] +**object_reference** | [**K8sIoApiCoreV1TypedObjectReference**](K8sIoApiCoreV1TypedObjectReference.md) | | +**optional** | **bool** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ObjectGraphOptions.md b/docs/V1ObjectGraphOptions.md new file mode 100644 index 00000000..0f592397 --- /dev/null +++ b/docs/V1ObjectGraphOptions.md @@ -0,0 +1,11 @@ +# V1ObjectGraphOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**include_optional_nodes** | **bool** | IncludeOptionalNodes indicates whether to include optional nodes in the graph. True by default. | [optional] +**label_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | LabelSelector is used to filter nodes in the graph based on their labels. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index d43f0c6e..b0bc6f0f 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.6.0-beta.0-125-g352416fe7c" + release_note="Auto-generated client v1.6.0-beta.0-188-g1de55bd713" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index c9b616f0..1346b0dc 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -561,6 +561,12 @@ 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_node_placement.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_node_placement.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1NodePlacement.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_object_graph_node.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_object_graph_node.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ObjectGraphNode.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_object_graph_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_object_graph_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ObjectGraphOptions.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_pit_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pit_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PITTimer.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index e85c17e0..cbd44923 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -194,6 +194,8 @@ from .models.v1_no_cloud_ssh_public_key_access_credential_propagation import V1NoCloudSSHPublicKeyAccessCredentialPropagation from .models.v1_node_mediated_device_types_config import V1NodeMediatedDeviceTypesConfig from .models.v1_node_placement import V1NodePlacement +from .models.v1_object_graph_node import V1ObjectGraphNode +from .models.v1_object_graph_options import V1ObjectGraphOptions from .models.v1_pit_timer import V1PITTimer from .models.v1_pause_options import V1PauseOptions from .models.v1_pci_host_device import V1PciHostDevice diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 0395615c..14f390a8 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.6.0-beta.0-125-g352416fe7c/python' + self.user_agent = 'Swagger-Codegen/v1.6.0-beta.0-188-g1de55bd713/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index d411122f..d6f2fbdf 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -24442,6 +24442,124 @@ def v1alpha3vm_expand_spec_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1alpha3vm_objectgraph(self, name, namespace, body, **kwargs): + """ + Get graph of objects related to a Virtual Machine + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vm_objectgraph(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1ObjectGraphOptions body: (required) + :return: V1ObjectGraphNode + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3vm_objectgraph_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1alpha3vm_objectgraph_with_http_info(name, namespace, body, **kwargs) + return data + + def v1alpha3vm_objectgraph_with_http_info(self, name, namespace, body, **kwargs): + """ + Get graph of objects related to a Virtual Machine + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vm_objectgraph_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1ObjectGraphOptions body: (required) + :return: V1ObjectGraphNode + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3vm_objectgraph" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vm_objectgraph`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vm_objectgraph`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3vm_objectgraph`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/objectgraph', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ObjectGraphNode', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1alpha3vm_port_forward(self, name, namespace, port, **kwargs): """ Open a websocket connection forwarding traffic to the running VMI for the specified VirtualMachine and port. @@ -24897,6 +25015,124 @@ def v1alpha3vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1alpha3vmi_objectgraph(self, name, namespace, body, **kwargs): + """ + Get graph of objects related to a Virtual Machine Instance + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vmi_objectgraph(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1ObjectGraphOptions body: (required) + :return: V1ObjectGraphNode + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3vmi_objectgraph_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1alpha3vmi_objectgraph_with_http_info(name, namespace, body, **kwargs) + return data + + def v1alpha3vmi_objectgraph_with_http_info(self, name, namespace, body, **kwargs): + """ + Get graph of objects related to a Virtual Machine Instance + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vmi_objectgraph_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1ObjectGraphOptions body: (required) + :return: V1ObjectGraphNode + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3vmi_objectgraph" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vmi_objectgraph`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vmi_objectgraph`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3vmi_objectgraph`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/objectgraph', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ObjectGraphNode', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1alpha3vmi_port_forward(self, name, namespace, port, **kwargs): """ Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port. @@ -25924,6 +26160,124 @@ def v1vm_expand_spec_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1vm_objectgraph(self, name, namespace, body, **kwargs): + """ + Get graph of objects related to a Virtual Machine + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1vm_objectgraph(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1ObjectGraphOptions body: (required) + :return: V1ObjectGraphNode + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1vm_objectgraph_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1vm_objectgraph_with_http_info(name, namespace, body, **kwargs) + return data + + def v1vm_objectgraph_with_http_info(self, name, namespace, body, **kwargs): + """ + Get graph of objects related to a Virtual Machine + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1vm_objectgraph_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1ObjectGraphOptions body: (required) + :return: V1ObjectGraphNode + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1vm_objectgraph" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1vm_objectgraph`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1vm_objectgraph`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1vm_objectgraph`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/objectgraph', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ObjectGraphNode', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1vm_port_forward(self, name, namespace, port, **kwargs): """ Open a websocket connection forwarding traffic to the running VMI for the specified VirtualMachine and port. @@ -26379,6 +26733,124 @@ def v1vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1vmi_objectgraph(self, name, namespace, body, **kwargs): + """ + Get graph of objects related to a Virtual Machine Instance + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1vmi_objectgraph(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1ObjectGraphOptions body: (required) + :return: V1ObjectGraphNode + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1vmi_objectgraph_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1vmi_objectgraph_with_http_info(name, namespace, body, **kwargs) + return data + + def v1vmi_objectgraph_with_http_info(self, name, namespace, body, **kwargs): + """ + Get graph of objects related to a Virtual Machine Instance + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1vmi_objectgraph_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1ObjectGraphOptions body: (required) + :return: V1ObjectGraphNode + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1vmi_objectgraph" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1vmi_objectgraph`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1vmi_objectgraph`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1vmi_objectgraph`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/objectgraph', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ObjectGraphNode', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1vmi_port_forward(self, name, namespace, port, **kwargs): """ Open a websocket connection forwarding traffic to the specified VirtualMachineInstance and port. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 02b41340..69b71bd3 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.6.0-beta.0-125-g352416fe7c".\ + "SDK Package Version: v1.6.0-beta.0-188-g1de55bd713".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index b795e059..3588dc07 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -194,6 +194,8 @@ from .v1_no_cloud_ssh_public_key_access_credential_propagation import V1NoCloudSSHPublicKeyAccessCredentialPropagation from .v1_node_mediated_device_types_config import V1NodeMediatedDeviceTypesConfig from .v1_node_placement import V1NodePlacement +from .v1_object_graph_node import V1ObjectGraphNode +from .v1_object_graph_options import V1ObjectGraphOptions from .v1_pit_timer import V1PITTimer from .v1_pause_options import V1PauseOptions from .v1_pci_host_device import V1PciHostDevice diff --git a/kubevirt/models/v1_object_graph_node.py b/kubevirt/models/v1_object_graph_node.py new file mode 100644 index 00000000..0ed8d5dd --- /dev/null +++ b/kubevirt/models/v1_object_graph_node.py @@ -0,0 +1,258 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ObjectGraphNode(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'children': 'list[V1ObjectGraphNode]', + 'kind': 'str', + 'labels': 'dict(str, str)', + 'object_reference': 'K8sIoApiCoreV1TypedObjectReference', + 'optional': 'bool' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'children': 'children', + 'kind': 'kind', + 'labels': 'labels', + 'object_reference': 'objectReference', + 'optional': 'optional' + } + + def __init__(self, api_version=None, children=None, kind=None, labels=None, object_reference=None, optional=None): + """ + V1ObjectGraphNode - a model defined in Swagger + """ + + self._api_version = None + self._children = None + self._kind = None + self._labels = None + self._object_reference = None + self._optional = None + + if api_version is not None: + self.api_version = api_version + if children is not None: + self.children = children + if kind is not None: + self.kind = kind + if labels is not None: + self.labels = labels + self.object_reference = object_reference + if optional is not None: + self.optional = optional + + @property + def api_version(self): + """ + Gets the api_version of this V1ObjectGraphNode. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1ObjectGraphNode. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1ObjectGraphNode. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1ObjectGraphNode. + :type: str + """ + + self._api_version = api_version + + @property + def children(self): + """ + Gets the children of this V1ObjectGraphNode. + + :return: The children of this V1ObjectGraphNode. + :rtype: list[V1ObjectGraphNode] + """ + return self._children + + @children.setter + def children(self, children): + """ + Sets the children of this V1ObjectGraphNode. + + :param children: The children of this V1ObjectGraphNode. + :type: list[V1ObjectGraphNode] + """ + + self._children = children + + @property + def kind(self): + """ + Gets the kind of this V1ObjectGraphNode. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1ObjectGraphNode. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1ObjectGraphNode. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1ObjectGraphNode. + :type: str + """ + + self._kind = kind + + @property + def labels(self): + """ + Gets the labels of this V1ObjectGraphNode. + + :return: The labels of this V1ObjectGraphNode. + :rtype: dict(str, str) + """ + return self._labels + + @labels.setter + def labels(self, labels): + """ + Sets the labels of this V1ObjectGraphNode. + + :param labels: The labels of this V1ObjectGraphNode. + :type: dict(str, str) + """ + + self._labels = labels + + @property + def object_reference(self): + """ + Gets the object_reference of this V1ObjectGraphNode. + + :return: The object_reference of this V1ObjectGraphNode. + :rtype: K8sIoApiCoreV1TypedObjectReference + """ + return self._object_reference + + @object_reference.setter + def object_reference(self, object_reference): + """ + Sets the object_reference of this V1ObjectGraphNode. + + :param object_reference: The object_reference of this V1ObjectGraphNode. + :type: K8sIoApiCoreV1TypedObjectReference + """ + if object_reference is None: + raise ValueError("Invalid value for `object_reference`, must not be `None`") + + self._object_reference = object_reference + + @property + def optional(self): + """ + Gets the optional of this V1ObjectGraphNode. + + :return: The optional of this V1ObjectGraphNode. + :rtype: bool + """ + return self._optional + + @optional.setter + def optional(self, optional): + """ + Sets the optional of this V1ObjectGraphNode. + + :param optional: The optional of this V1ObjectGraphNode. + :type: bool + """ + + self._optional = optional + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1ObjectGraphNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_object_graph_options.py b/kubevirt/models/v1_object_graph_options.py new file mode 100644 index 00000000..ee300d73 --- /dev/null +++ b/kubevirt/models/v1_object_graph_options.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ObjectGraphOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'include_optional_nodes': 'bool', + 'label_selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector' + } + + attribute_map = { + 'include_optional_nodes': 'includeOptionalNodes', + 'label_selector': 'labelSelector' + } + + def __init__(self, include_optional_nodes=None, label_selector=None): + """ + V1ObjectGraphOptions - a model defined in Swagger + """ + + self._include_optional_nodes = None + self._label_selector = None + + if include_optional_nodes is not None: + self.include_optional_nodes = include_optional_nodes + if label_selector is not None: + self.label_selector = label_selector + + @property + def include_optional_nodes(self): + """ + Gets the include_optional_nodes of this V1ObjectGraphOptions. + IncludeOptionalNodes indicates whether to include optional nodes in the graph. True by default. + + :return: The include_optional_nodes of this V1ObjectGraphOptions. + :rtype: bool + """ + return self._include_optional_nodes + + @include_optional_nodes.setter + def include_optional_nodes(self, include_optional_nodes): + """ + Sets the include_optional_nodes of this V1ObjectGraphOptions. + IncludeOptionalNodes indicates whether to include optional nodes in the graph. True by default. + + :param include_optional_nodes: The include_optional_nodes of this V1ObjectGraphOptions. + :type: bool + """ + + self._include_optional_nodes = include_optional_nodes + + @property + def label_selector(self): + """ + Gets the label_selector of this V1ObjectGraphOptions. + LabelSelector is used to filter nodes in the graph based on their labels. + + :return: The label_selector of this V1ObjectGraphOptions. + :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + return self._label_selector + + @label_selector.setter + def label_selector(self, label_selector): + """ + Sets the label_selector of this V1ObjectGraphOptions. + LabelSelector is used to filter nodes in the graph based on their labels. + + :param label_selector: The label_selector of this V1ObjectGraphOptions. + :type: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + + self._label_selector = label_selector + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1ObjectGraphOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index a0f2b962..dc969e8f 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.6.0-beta.0-125-g352416fe7c" +VERSION = "v1.6.0-beta.0-188-g1de55bd713" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index af94a8f0..5dd2571c 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.6.0-beta.0-125-g352416fe7c" +"packageVersion": "v1.6.0-beta.0-188-g1de55bd713" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 5578f7b8..d0a5034f 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -1748,6 +1748,14 @@ def test_v1alpha3vm_expand_spec(self): Test case for v1alpha3vm_expand_spec + """ + pass + + def test_v1alpha3vm_objectgraph(self): + """ + Test case for v1alpha3vm_objectgraph + + """ pass @@ -1780,6 +1788,14 @@ def test_v1alpha3vmi_addvolume(self): Test case for v1alpha3vmi_addvolume + """ + pass + + def test_v1alpha3vmi_objectgraph(self): + """ + Test case for v1alpha3vmi_objectgraph + + """ pass @@ -1860,6 +1876,14 @@ def test_v1vm_expand_spec(self): Test case for v1vm_expand_spec + """ + pass + + def test_v1vm_objectgraph(self): + """ + Test case for v1vm_objectgraph + + """ pass @@ -1892,6 +1916,14 @@ def test_v1vmi_addvolume(self): Test case for v1vmi_addvolume + """ + pass + + def test_v1vmi_objectgraph(self): + """ + Test case for v1vmi_objectgraph + + """ pass diff --git a/test/test_v1_object_graph_node.py b/test/test_v1_object_graph_node.py new file mode 100644 index 00000000..ade3abb4 --- /dev/null +++ b/test/test_v1_object_graph_node.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_object_graph_node import V1ObjectGraphNode + + +class TestV1ObjectGraphNode(unittest.TestCase): + """ V1ObjectGraphNode unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ObjectGraphNode(self): + """ + Test V1ObjectGraphNode + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_object_graph_node.V1ObjectGraphNode() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_object_graph_options.py b/test/test_v1_object_graph_options.py new file mode 100644 index 00000000..363e3e26 --- /dev/null +++ b/test/test_v1_object_graph_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_object_graph_options import V1ObjectGraphOptions + + +class TestV1ObjectGraphOptions(unittest.TestCase): + """ V1ObjectGraphOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ObjectGraphOptions(self): + """ + Test V1ObjectGraphOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_object_graph_options.V1ObjectGraphOptions() + pass + + +if __name__ == '__main__': + unittest.main() From 0a6e59d3236099ea4b62dabe8858ce5ecc3aee90 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Tue, 17 Jun 2025 14:44:50 +0000 Subject: [PATCH 461/521] Client Python update by KubeVirt Prow build 1934981521106538496 --- README.md | 3 +- docs/V1beta1VirtualMachineRestoreSpec.md | 2 + docs/V1beta1VolumeRestoreOverride.md | 13 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + .../v1beta1_virtual_machine_restore_spec.py | 60 +++++- .../models/v1beta1_volume_restore_override.py | 201 ++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1beta1_volume_restore_override.py | 44 ++++ 14 files changed, 329 insertions(+), 9 deletions(-) create mode 100644 docs/V1beta1VolumeRestoreOverride.md create mode 100644 kubevirt/models/v1beta1_volume_restore_override.py create mode 100644 test/test_v1beta1_volume_restore_override.py diff --git a/README.md b/README.md index b597c012..c959bd14 100644 --- a/README.md +++ b/README.md @@ -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.6.0-beta.0-188-g1de55bd713 +- Package version: v1.6.0-beta.0-220-g623aff021a - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -718,6 +718,7 @@ Class | Method | HTTP request | Description - [V1beta1VolumeBackup](docs/V1beta1VolumeBackup.md) - [V1beta1VolumePreferences](docs/V1beta1VolumePreferences.md) - [V1beta1VolumeRestore](docs/V1beta1VolumeRestore.md) + - [V1beta1VolumeRestoreOverride](docs/V1beta1VolumeRestoreOverride.md) - [V1beta1VolumeSnapshotStatus](docs/V1beta1VolumeSnapshotStatus.md) diff --git a/docs/V1beta1VirtualMachineRestoreSpec.md b/docs/V1beta1VirtualMachineRestoreSpec.md index 551e9633..0fefdb7d 100644 --- a/docs/V1beta1VirtualMachineRestoreSpec.md +++ b/docs/V1beta1VirtualMachineRestoreSpec.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **target** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | initially only VirtualMachine type supported | **target_readiness_policy** | **str** | | [optional] **virtual_machine_snapshot_name** | **str** | | [default to ''] +**volume_restore_overrides** | [**list[V1beta1VolumeRestoreOverride]**](V1beta1VolumeRestoreOverride.md) | VolumeRestoreOverrides gives the option to change properties of each restored volume For example, specifying the name of the restored volume, or adding labels/annotations to it | [optional] +**volume_restore_policy** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1beta1VolumeRestoreOverride.md b/docs/V1beta1VolumeRestoreOverride.md new file mode 100644 index 00000000..67ff4699 --- /dev/null +++ b/docs/V1beta1VolumeRestoreOverride.md @@ -0,0 +1,13 @@ +# V1beta1VolumeRestoreOverride + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**annotations** | **dict(str, str)** | | [optional] +**labels** | **dict(str, str)** | | [optional] +**restore_name** | **str** | | [optional] +**volume_name** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index b0bc6f0f..2e29c781 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.6.0-beta.0-188-g1de55bd713" + release_note="Auto-generated client v1.6.0-beta.0-220-g623aff021a" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 1346b0dc..3a97da74 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -1146,6 +1146,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/v1beta1_volume_restore.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_volume_restore.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VolumeRestore.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_volume_restore_override.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_volume_restore_override.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VolumeRestoreOverride.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_volume_snapshot_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_volume_snapshot_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VolumeSnapshotStatus.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index cbd44923..fdb2e395 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -389,6 +389,7 @@ from .models.v1beta1_volume_backup import V1beta1VolumeBackup from .models.v1beta1_volume_preferences import V1beta1VolumePreferences from .models.v1beta1_volume_restore import V1beta1VolumeRestore +from .models.v1beta1_volume_restore_override import V1beta1VolumeRestoreOverride from .models.v1beta1_volume_snapshot_status import V1beta1VolumeSnapshotStatus # import apis into sdk package diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 14f390a8..1efc1394 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.6.0-beta.0-188-g1de55bd713/python' + self.user_agent = 'Swagger-Codegen/v1.6.0-beta.0-220-g623aff021a/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 69b71bd3..6224d561 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.6.0-beta.0-188-g1de55bd713".\ + "SDK Package Version: v1.6.0-beta.0-220-g623aff021a".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 3588dc07..d661fa47 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -389,6 +389,7 @@ from .v1beta1_volume_backup import V1beta1VolumeBackup from .v1beta1_volume_preferences import V1beta1VolumePreferences from .v1beta1_volume_restore import V1beta1VolumeRestore +from .v1beta1_volume_restore_override import V1beta1VolumeRestoreOverride from .v1beta1_volume_snapshot_status import V1beta1VolumeSnapshotStatus from .v1_interface_bridge import V1InterfaceBridge from .v1_interface_slirp import V1InterfaceSlirp diff --git a/kubevirt/models/v1beta1_virtual_machine_restore_spec.py b/kubevirt/models/v1beta1_virtual_machine_restore_spec.py index 363cf27b..708092cd 100644 --- a/kubevirt/models/v1beta1_virtual_machine_restore_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_restore_spec.py @@ -34,17 +34,21 @@ class V1beta1VirtualMachineRestoreSpec(object): 'patches': 'list[str]', 'target': 'K8sIoApiCoreV1TypedLocalObjectReference', 'target_readiness_policy': 'str', - 'virtual_machine_snapshot_name': 'str' + 'virtual_machine_snapshot_name': 'str', + 'volume_restore_overrides': 'list[V1beta1VolumeRestoreOverride]', + 'volume_restore_policy': 'str' } attribute_map = { 'patches': 'patches', 'target': 'target', 'target_readiness_policy': 'targetReadinessPolicy', - 'virtual_machine_snapshot_name': 'virtualMachineSnapshotName' + 'virtual_machine_snapshot_name': 'virtualMachineSnapshotName', + 'volume_restore_overrides': 'volumeRestoreOverrides', + 'volume_restore_policy': 'volumeRestorePolicy' } - def __init__(self, patches=None, target=None, target_readiness_policy=None, virtual_machine_snapshot_name=''): + def __init__(self, patches=None, target=None, target_readiness_policy=None, virtual_machine_snapshot_name='', volume_restore_overrides=None, volume_restore_policy=None): """ V1beta1VirtualMachineRestoreSpec - a model defined in Swagger """ @@ -53,6 +57,8 @@ def __init__(self, patches=None, target=None, target_readiness_policy=None, virt self._target = None self._target_readiness_policy = None self._virtual_machine_snapshot_name = None + self._volume_restore_overrides = None + self._volume_restore_policy = None if patches is not None: self.patches = patches @@ -60,6 +66,10 @@ def __init__(self, patches=None, target=None, target_readiness_policy=None, virt if target_readiness_policy is not None: self.target_readiness_policy = target_readiness_policy self.virtual_machine_snapshot_name = virtual_machine_snapshot_name + if volume_restore_overrides is not None: + self.volume_restore_overrides = volume_restore_overrides + if volume_restore_policy is not None: + self.volume_restore_policy = volume_restore_policy @property def patches(self): @@ -153,6 +163,50 @@ def virtual_machine_snapshot_name(self, virtual_machine_snapshot_name): self._virtual_machine_snapshot_name = virtual_machine_snapshot_name + @property + def volume_restore_overrides(self): + """ + Gets the volume_restore_overrides of this V1beta1VirtualMachineRestoreSpec. + VolumeRestoreOverrides gives the option to change properties of each restored volume For example, specifying the name of the restored volume, or adding labels/annotations to it + + :return: The volume_restore_overrides of this V1beta1VirtualMachineRestoreSpec. + :rtype: list[V1beta1VolumeRestoreOverride] + """ + return self._volume_restore_overrides + + @volume_restore_overrides.setter + def volume_restore_overrides(self, volume_restore_overrides): + """ + Sets the volume_restore_overrides of this V1beta1VirtualMachineRestoreSpec. + VolumeRestoreOverrides gives the option to change properties of each restored volume For example, specifying the name of the restored volume, or adding labels/annotations to it + + :param volume_restore_overrides: The volume_restore_overrides of this V1beta1VirtualMachineRestoreSpec. + :type: list[V1beta1VolumeRestoreOverride] + """ + + self._volume_restore_overrides = volume_restore_overrides + + @property + def volume_restore_policy(self): + """ + Gets the volume_restore_policy of this V1beta1VirtualMachineRestoreSpec. + + :return: The volume_restore_policy of this V1beta1VirtualMachineRestoreSpec. + :rtype: str + """ + return self._volume_restore_policy + + @volume_restore_policy.setter + def volume_restore_policy(self, volume_restore_policy): + """ + Sets the volume_restore_policy of this V1beta1VirtualMachineRestoreSpec. + + :param volume_restore_policy: The volume_restore_policy of this V1beta1VirtualMachineRestoreSpec. + :type: str + """ + + self._volume_restore_policy = volume_restore_policy + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1beta1_volume_restore_override.py b/kubevirt/models/v1beta1_volume_restore_override.py new file mode 100644 index 00000000..b23eab50 --- /dev/null +++ b/kubevirt/models/v1beta1_volume_restore_override.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1VolumeRestoreOverride(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'annotations': 'dict(str, str)', + 'labels': 'dict(str, str)', + 'restore_name': 'str', + 'volume_name': 'str' + } + + attribute_map = { + 'annotations': 'annotations', + 'labels': 'labels', + 'restore_name': 'restoreName', + 'volume_name': 'volumeName' + } + + def __init__(self, annotations=None, labels=None, restore_name=None, volume_name=None): + """ + V1beta1VolumeRestoreOverride - a model defined in Swagger + """ + + self._annotations = None + self._labels = None + self._restore_name = None + self._volume_name = None + + if annotations is not None: + self.annotations = annotations + if labels is not None: + self.labels = labels + if restore_name is not None: + self.restore_name = restore_name + if volume_name is not None: + self.volume_name = volume_name + + @property + def annotations(self): + """ + Gets the annotations of this V1beta1VolumeRestoreOverride. + + :return: The annotations of this V1beta1VolumeRestoreOverride. + :rtype: dict(str, str) + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """ + Sets the annotations of this V1beta1VolumeRestoreOverride. + + :param annotations: The annotations of this V1beta1VolumeRestoreOverride. + :type: dict(str, str) + """ + + self._annotations = annotations + + @property + def labels(self): + """ + Gets the labels of this V1beta1VolumeRestoreOverride. + + :return: The labels of this V1beta1VolumeRestoreOverride. + :rtype: dict(str, str) + """ + return self._labels + + @labels.setter + def labels(self, labels): + """ + Sets the labels of this V1beta1VolumeRestoreOverride. + + :param labels: The labels of this V1beta1VolumeRestoreOverride. + :type: dict(str, str) + """ + + self._labels = labels + + @property + def restore_name(self): + """ + Gets the restore_name of this V1beta1VolumeRestoreOverride. + + :return: The restore_name of this V1beta1VolumeRestoreOverride. + :rtype: str + """ + return self._restore_name + + @restore_name.setter + def restore_name(self, restore_name): + """ + Sets the restore_name of this V1beta1VolumeRestoreOverride. + + :param restore_name: The restore_name of this V1beta1VolumeRestoreOverride. + :type: str + """ + + self._restore_name = restore_name + + @property + def volume_name(self): + """ + Gets the volume_name of this V1beta1VolumeRestoreOverride. + + :return: The volume_name of this V1beta1VolumeRestoreOverride. + :rtype: str + """ + return self._volume_name + + @volume_name.setter + def volume_name(self, volume_name): + """ + Sets the volume_name of this V1beta1VolumeRestoreOverride. + + :param volume_name: The volume_name of this V1beta1VolumeRestoreOverride. + :type: str + """ + + self._volume_name = volume_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1beta1VolumeRestoreOverride): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index dc969e8f..9540e06d 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.6.0-beta.0-188-g1de55bd713" +VERSION = "v1.6.0-beta.0-220-g623aff021a" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 5dd2571c..3f1bbc0b 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.6.0-beta.0-188-g1de55bd713" +"packageVersion": "v1.6.0-beta.0-220-g623aff021a" } diff --git a/test/test_v1beta1_volume_restore_override.py b/test/test_v1beta1_volume_restore_override.py new file mode 100644 index 00000000..0dbcd220 --- /dev/null +++ b/test/test_v1beta1_volume_restore_override.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_volume_restore_override import V1beta1VolumeRestoreOverride + + +class TestV1beta1VolumeRestoreOverride(unittest.TestCase): + """ V1beta1VolumeRestoreOverride unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VolumeRestoreOverride(self): + """ + Test V1beta1VolumeRestoreOverride + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_volume_restore_override.V1beta1VolumeRestoreOverride() + pass + + +if __name__ == '__main__': + unittest.main() From 7f2dbdb7e01b9b893647e2b5bb59541d4b5a3e50 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Tue, 17 Jun 2025 20:37:34 +0000 Subject: [PATCH 462/521] Client Python update by KubeVirt Prow build 1935070620018544640 --- README.md | 2 +- docs/V1ACPI.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_acpi.py | 30 +++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c959bd14..3a37986f 100644 --- a/README.md +++ b/README.md @@ -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.6.0-beta.0-220-g623aff021a +- Package version: v1.6.0-beta.0-225-gffa96edce9 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1ACPI.md b/docs/V1ACPI.md index d8440cc0..e4aebf3d 100644 --- a/docs/V1ACPI.md +++ b/docs/V1ACPI.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**msdm_name_ref** | **str** | Similar to SlicNameRef, another ACPI entry that is used in more recent Windows versions. The above points to the spec of MSDM too. | [optional] **slic_name_ref** | **str** | SlicNameRef should match the volume name of a secret object. The data in the secret should be a binary blob that follows the ACPI SLIC standard, see: https://learn.microsoft.com/en-us/previous-versions/windows/hardware/design/dn653305(v=vs.85) | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 2e29c781..b8399463 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.6.0-beta.0-220-g623aff021a" + release_note="Auto-generated client v1.6.0-beta.0-225-gffa96edce9" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 1efc1394..8a81464a 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.6.0-beta.0-220-g623aff021a/python' + self.user_agent = 'Swagger-Codegen/v1.6.0-beta.0-225-gffa96edce9/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 6224d561..65ad0481 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.6.0-beta.0-220-g623aff021a".\ + "SDK Package Version: v1.6.0-beta.0-225-gffa96edce9".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_acpi.py b/kubevirt/models/v1_acpi.py index 2b925706..9db7f1fc 100644 --- a/kubevirt/models/v1_acpi.py +++ b/kubevirt/models/v1_acpi.py @@ -31,23 +31,51 @@ class V1ACPI(object): and the value is json key in definition. """ swagger_types = { + 'msdm_name_ref': 'str', 'slic_name_ref': 'str' } attribute_map = { + 'msdm_name_ref': 'msdmNameRef', 'slic_name_ref': 'slicNameRef' } - def __init__(self, slic_name_ref=None): + def __init__(self, msdm_name_ref=None, slic_name_ref=None): """ V1ACPI - a model defined in Swagger """ + self._msdm_name_ref = None self._slic_name_ref = None + if msdm_name_ref is not None: + self.msdm_name_ref = msdm_name_ref if slic_name_ref is not None: self.slic_name_ref = slic_name_ref + @property + def msdm_name_ref(self): + """ + Gets the msdm_name_ref of this V1ACPI. + Similar to SlicNameRef, another ACPI entry that is used in more recent Windows versions. The above points to the spec of MSDM too. + + :return: The msdm_name_ref of this V1ACPI. + :rtype: str + """ + return self._msdm_name_ref + + @msdm_name_ref.setter + def msdm_name_ref(self, msdm_name_ref): + """ + Sets the msdm_name_ref of this V1ACPI. + Similar to SlicNameRef, another ACPI entry that is used in more recent Windows versions. The above points to the spec of MSDM too. + + :param msdm_name_ref: The msdm_name_ref of this V1ACPI. + :type: str + """ + + self._msdm_name_ref = msdm_name_ref + @property def slic_name_ref(self): """ diff --git a/setup.py b/setup.py index 9540e06d..5b255cc6 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.6.0-beta.0-220-g623aff021a" +VERSION = "v1.6.0-beta.0-225-gffa96edce9" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 3f1bbc0b..cb5dbb33 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.6.0-beta.0-220-g623aff021a" +"packageVersion": "v1.6.0-beta.0-225-gffa96edce9" } From fcaeb711387bc1c3d1c8dc00bddeba6dd03e06bc Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Tue, 17 Jun 2025 23:56:11 +0000 Subject: [PATCH 463/521] Client Python update by KubeVirt Prow build 1935120505359044608 --- README.md | 3 +- docs/V1Devices.md | 1 + docs/V1VideoDevice.md | 10 +++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_devices.py | 30 ++++++- kubevirt/models/v1_video_device.py | 125 +++++++++++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_video_device.py | 44 ++++++++++ 14 files changed, 221 insertions(+), 7 deletions(-) create mode 100644 docs/V1VideoDevice.md create mode 100644 kubevirt/models/v1_video_device.py create mode 100644 test/test_v1_video_device.py diff --git a/README.md b/README.md index 3a37986f..998606bc 100644 --- a/README.md +++ b/README.md @@ -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.6.0-beta.0-225-gffa96edce9 +- Package version: v1.6.0-beta.0-239-ga71827143b - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -582,6 +582,7 @@ Class | Method | HTTP request | Description - [V1UserPasswordAccessCredentialSource](docs/V1UserPasswordAccessCredentialSource.md) - [V1VGPUDisplayOptions](docs/V1VGPUDisplayOptions.md) - [V1VGPUOptions](docs/V1VGPUOptions.md) + - [V1VideoDevice](docs/V1VideoDevice.md) - [V1VirtualMachine](docs/V1VirtualMachine.md) - [V1VirtualMachineCondition](docs/V1VirtualMachineCondition.md) - [V1VirtualMachineInstance](docs/V1VirtualMachineInstance.md) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index 4f8af3ba..3a10b26d 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -25,6 +25,7 @@ Name | Type | Description | Notes **sound** | [**V1SoundDevice**](V1SoundDevice.md) | Whether to emulate a sound device. | [optional] **tpm** | [**V1TPMDevice**](V1TPMDevice.md) | Whether to emulate a TPM device. | [optional] **use_virtio_transitional** | **bool** | Fall back to legacy virtio 0.9 support if virtio bus is selected on devices. This is helpful for old machines like CentOS6 or RHEL6 which do not understand virtio_non_transitional (virtio 1.0). | [optional] +**video** | [**V1VideoDevice**](V1VideoDevice.md) | Video describes the video device configuration for the vmi. | [optional] **watchdog** | [**V1Watchdog**](V1Watchdog.md) | Watchdog describes a watchdog device which can be added to the vmi. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VideoDevice.md b/docs/V1VideoDevice.md new file mode 100644 index 00000000..afbcb69f --- /dev/null +++ b/docs/V1VideoDevice.md @@ -0,0 +1,10 @@ +# V1VideoDevice + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | Type specifies the video device type (e.g., virtio, vga, bochs, ramfb). If not specified, the default is architecture-dependent (VGA for BIOS-based VMs, Bochs for EFI-based VMs on AMD64; virtio for Arm and s390x). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index b8399463..3733b8de 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.6.0-beta.0-225-gffa96edce9" + release_note="Auto-generated client v1.6.0-beta.0-239-ga71827143b" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 3a97da74..da17d058 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -738,6 +738,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_vgpu_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_vgpu_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VGPUOptions.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_video_device.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_video_device.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VideoDevice.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachine.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index fdb2e395..65f2a5a4 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -253,6 +253,7 @@ from .models.v1_user_password_access_credential_source import V1UserPasswordAccessCredentialSource from .models.v1_vgpu_display_options import V1VGPUDisplayOptions from .models.v1_vgpu_options import V1VGPUOptions +from .models.v1_video_device import V1VideoDevice from .models.v1_virtual_machine import V1VirtualMachine from .models.v1_virtual_machine_condition import V1VirtualMachineCondition from .models.v1_virtual_machine_instance import V1VirtualMachineInstance diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 8a81464a..01b9da13 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.6.0-beta.0-225-gffa96edce9/python' + self.user_agent = 'Swagger-Codegen/v1.6.0-beta.0-239-ga71827143b/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 65ad0481..b6e19afc 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.6.0-beta.0-225-gffa96edce9".\ + "SDK Package Version: v1.6.0-beta.0-239-ga71827143b".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index d661fa47..02375b86 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -253,6 +253,7 @@ from .v1_user_password_access_credential_source import V1UserPasswordAccessCredentialSource from .v1_vgpu_display_options import V1VGPUDisplayOptions from .v1_vgpu_options import V1VGPUOptions +from .v1_video_device import V1VideoDevice from .v1_virtual_machine import V1VirtualMachine from .v1_virtual_machine_condition import V1VirtualMachineCondition from .v1_virtual_machine_instance import V1VirtualMachineInstance diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index 6e335e5b..5cfb19c9 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -53,6 +53,7 @@ class V1Devices(object): 'sound': 'V1SoundDevice', 'tpm': 'V1TPMDevice', 'use_virtio_transitional': 'bool', + 'video': 'V1VideoDevice', 'watchdog': 'V1Watchdog' } @@ -79,10 +80,11 @@ class V1Devices(object): 'sound': 'sound', 'tpm': 'tpm', 'use_virtio_transitional': 'useVirtioTransitional', + 'video': 'video', 'watchdog': 'watchdog' } - def __init__(self, autoattach_graphics_device=None, autoattach_input_device=None, autoattach_mem_balloon=None, autoattach_pod_interface=None, autoattach_serial_console=None, autoattach_vsock=None, block_multi_queue=None, client_passthrough=None, disable_hotplug=None, disks=None, downward_metrics=None, filesystems=None, gpus=None, host_devices=None, inputs=None, interfaces=None, log_serial_console=None, network_interface_multiqueue=None, rng=None, sound=None, tpm=None, use_virtio_transitional=None, watchdog=None): + def __init__(self, autoattach_graphics_device=None, autoattach_input_device=None, autoattach_mem_balloon=None, autoattach_pod_interface=None, autoattach_serial_console=None, autoattach_vsock=None, block_multi_queue=None, client_passthrough=None, disable_hotplug=None, disks=None, downward_metrics=None, filesystems=None, gpus=None, host_devices=None, inputs=None, interfaces=None, log_serial_console=None, network_interface_multiqueue=None, rng=None, sound=None, tpm=None, use_virtio_transitional=None, video=None, watchdog=None): """ V1Devices - a model defined in Swagger """ @@ -109,6 +111,7 @@ def __init__(self, autoattach_graphics_device=None, autoattach_input_device=None self._sound = None self._tpm = None self._use_virtio_transitional = None + self._video = None self._watchdog = None if autoattach_graphics_device is not None: @@ -155,6 +158,8 @@ def __init__(self, autoattach_graphics_device=None, autoattach_input_device=None self.tpm = tpm if use_virtio_transitional is not None: self.use_virtio_transitional = use_virtio_transitional + if video is not None: + self.video = video if watchdog is not None: self.watchdog = watchdog @@ -664,6 +669,29 @@ def use_virtio_transitional(self, use_virtio_transitional): self._use_virtio_transitional = use_virtio_transitional + @property + def video(self): + """ + Gets the video of this V1Devices. + Video describes the video device configuration for the vmi. + + :return: The video of this V1Devices. + :rtype: V1VideoDevice + """ + return self._video + + @video.setter + def video(self, video): + """ + Sets the video of this V1Devices. + Video describes the video device configuration for the vmi. + + :param video: The video of this V1Devices. + :type: V1VideoDevice + """ + + self._video = video + @property def watchdog(self): """ diff --git a/kubevirt/models/v1_video_device.py b/kubevirt/models/v1_video_device.py new file mode 100644 index 00000000..02b572f5 --- /dev/null +++ b/kubevirt/models/v1_video_device.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VideoDevice(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'str' + } + + attribute_map = { + 'type': 'type' + } + + def __init__(self, type=None): + """ + V1VideoDevice - a model defined in Swagger + """ + + self._type = None + + if type is not None: + self.type = type + + @property + def type(self): + """ + Gets the type of this V1VideoDevice. + Type specifies the video device type (e.g., virtio, vga, bochs, ramfb). If not specified, the default is architecture-dependent (VGA for BIOS-based VMs, Bochs for EFI-based VMs on AMD64; virtio for Arm and s390x). + + :return: The type of this V1VideoDevice. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1VideoDevice. + Type specifies the video device type (e.g., virtio, vga, bochs, ramfb). If not specified, the default is architecture-dependent (VGA for BIOS-based VMs, Bochs for EFI-based VMs on AMD64; virtio for Arm and s390x). + + :param type: The type of this V1VideoDevice. + :type: str + """ + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VideoDevice): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 5b255cc6..8420b883 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.6.0-beta.0-225-gffa96edce9" +VERSION = "v1.6.0-beta.0-239-ga71827143b" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index cb5dbb33..82dcaf56 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.6.0-beta.0-225-gffa96edce9" +"packageVersion": "v1.6.0-beta.0-239-ga71827143b" } diff --git a/test/test_v1_video_device.py b/test/test_v1_video_device.py new file mode 100644 index 00000000..a490bf59 --- /dev/null +++ b/test/test_v1_video_device.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_video_device import V1VideoDevice + + +class TestV1VideoDevice(unittest.TestCase): + """ V1VideoDevice unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VideoDevice(self): + """ + Test V1VideoDevice + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_video_device.V1VideoDevice() + pass + + +if __name__ == '__main__': + unittest.main() From 65236d94d09334ccc794478700d043d23e59dfe9 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 18 Jun 2025 15:56:37 +0000 Subject: [PATCH 464/521] Client Python update by KubeVirt Prow build 1935359529973714944 --- README.md | 5 +- ...tualMachinePoolProactiveScaleInStrategy.md | 10 ++ ...alpha1VirtualMachinePoolScaleInStrategy.md | 10 ++ ...alpha1VirtualMachinePoolSelectionPolicy.md | 10 ++ docs/V1alpha1VirtualMachinePoolSpec.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 9 ++ kubevirt/__init__.py | 3 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 3 + ...achine_pool_proactive_scale_in_strategy.py | 125 ++++++++++++++++++ ..._virtual_machine_pool_scale_in_strategy.py | 125 ++++++++++++++++++ ...1_virtual_machine_pool_selection_policy.py | 125 ++++++++++++++++++ .../v1alpha1_virtual_machine_pool_spec.py | 30 ++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...achine_pool_proactive_scale_in_strategy.py | 44 ++++++ ..._virtual_machine_pool_scale_in_strategy.py | 44 ++++++ ...1_virtual_machine_pool_selection_policy.py | 44 ++++++ 20 files changed, 591 insertions(+), 7 deletions(-) create mode 100644 docs/V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md create mode 100644 docs/V1alpha1VirtualMachinePoolScaleInStrategy.md create mode 100644 docs/V1alpha1VirtualMachinePoolSelectionPolicy.md create mode 100644 kubevirt/models/v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_pool_scale_in_strategy.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_pool_selection_policy.py create mode 100644 test/test_v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py create mode 100644 test/test_v1alpha1_virtual_machine_pool_scale_in_strategy.py create mode 100644 test/test_v1alpha1_virtual_machine_pool_selection_policy.py diff --git a/README.md b/README.md index 998606bc..4fd9b387 100644 --- a/README.md +++ b/README.md @@ -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.6.0-beta.0-239-ga71827143b +- Package version: v1.6.0-beta.0-255-g565ee06f87 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -644,6 +644,9 @@ Class | Method | HTTP request | Description - [V1alpha1VirtualMachinePoolCondition](docs/V1alpha1VirtualMachinePoolCondition.md) - [V1alpha1VirtualMachinePoolList](docs/V1alpha1VirtualMachinePoolList.md) - [V1alpha1VirtualMachinePoolNameGeneration](docs/V1alpha1VirtualMachinePoolNameGeneration.md) + - [V1alpha1VirtualMachinePoolProactiveScaleInStrategy](docs/V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md) + - [V1alpha1VirtualMachinePoolScaleInStrategy](docs/V1alpha1VirtualMachinePoolScaleInStrategy.md) + - [V1alpha1VirtualMachinePoolSelectionPolicy](docs/V1alpha1VirtualMachinePoolSelectionPolicy.md) - [V1alpha1VirtualMachinePoolSpec](docs/V1alpha1VirtualMachinePoolSpec.md) - [V1alpha1VirtualMachinePoolStatus](docs/V1alpha1VirtualMachinePoolStatus.md) - [V1alpha1VirtualMachineTemplateSpec](docs/V1alpha1VirtualMachineTemplateSpec.md) diff --git a/docs/V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md b/docs/V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md new file mode 100644 index 00000000..54b3d68a --- /dev/null +++ b/docs/V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md @@ -0,0 +1,10 @@ +# V1alpha1VirtualMachinePoolProactiveScaleInStrategy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**selection_policy** | [**V1alpha1VirtualMachinePoolSelectionPolicy**](V1alpha1VirtualMachinePoolSelectionPolicy.md) | SelectionPolicy defines the priority in which VM instances are selected for proactive scale-in Defaults to \"Random\" base policy when no SelectionPolicy is configured | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachinePoolScaleInStrategy.md b/docs/V1alpha1VirtualMachinePoolScaleInStrategy.md new file mode 100644 index 00000000..d940fbb9 --- /dev/null +++ b/docs/V1alpha1VirtualMachinePoolScaleInStrategy.md @@ -0,0 +1,10 @@ +# V1alpha1VirtualMachinePoolScaleInStrategy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**proactive** | [**V1alpha1VirtualMachinePoolProactiveScaleInStrategy**](V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md) | Proactive scale-in by forcing VMs to shutdown during scale-in (Default) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachinePoolSelectionPolicy.md b/docs/V1alpha1VirtualMachinePoolSelectionPolicy.md new file mode 100644 index 00000000..a49a304e --- /dev/null +++ b/docs/V1alpha1VirtualMachinePoolSelectionPolicy.md @@ -0,0 +1,10 @@ +# V1alpha1VirtualMachinePoolSelectionPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**base_policy** | **str** | BasePolicy is a catch-all policy [Random|DescendingOrder] | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachinePoolSpec.md b/docs/V1alpha1VirtualMachinePoolSpec.md index d994244b..89fc56b1 100644 --- a/docs/V1alpha1VirtualMachinePoolSpec.md +++ b/docs/V1alpha1VirtualMachinePoolSpec.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **name_generation** | [**V1alpha1VirtualMachinePoolNameGeneration**](V1alpha1VirtualMachinePoolNameGeneration.md) | Options for the name generation in a pool. | [optional] **paused** | **bool** | Indicates that the pool is paused. | [optional] **replicas** | **int** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] +**scale_in_strategy** | [**V1alpha1VirtualMachinePoolScaleInStrategy**](V1alpha1VirtualMachinePoolScaleInStrategy.md) | ScaleInStrategy specifies how the VMPool controller manages scaling in VMs within a VMPool | [optional] **selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | Label selector for pods. Existing Poolss whose pods are selected by this will be the ones affected by this deployment. | **virtual_machine_template** | [**V1alpha1VirtualMachineTemplateSpec**](V1alpha1VirtualMachineTemplateSpec.md) | Template describes the VM that will be created. | diff --git a/git_push.sh b/git_push.sh index 3733b8de..f9f95099 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.6.0-beta.0-239-ga71827143b" + release_note="Auto-generated client v1.6.0-beta.0-255-g565ee06f87" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index da17d058..793758f9 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -924,6 +924,15 @@ 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/v1alpha1_virtual_machine_pool_name_generation.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_name_generation.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolNameGeneration.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_scale_in_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_scale_in_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolScaleInStrategy.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_selection_policy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_selection_policy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolSelectionPolicy.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolSpec.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 65f2a5a4..2e1dc956 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -315,6 +315,9 @@ from .models.v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition from .models.v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList from .models.v1alpha1_virtual_machine_pool_name_generation import V1alpha1VirtualMachinePoolNameGeneration +from .models.v1alpha1_virtual_machine_pool_proactive_scale_in_strategy import V1alpha1VirtualMachinePoolProactiveScaleInStrategy +from .models.v1alpha1_virtual_machine_pool_scale_in_strategy import V1alpha1VirtualMachinePoolScaleInStrategy +from .models.v1alpha1_virtual_machine_pool_selection_policy import V1alpha1VirtualMachinePoolSelectionPolicy from .models.v1alpha1_virtual_machine_pool_spec import V1alpha1VirtualMachinePoolSpec from .models.v1alpha1_virtual_machine_pool_status import V1alpha1VirtualMachinePoolStatus from .models.v1alpha1_virtual_machine_template_spec import V1alpha1VirtualMachineTemplateSpec diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 01b9da13..21fd61bc 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.6.0-beta.0-239-ga71827143b/python' + self.user_agent = 'Swagger-Codegen/v1.6.0-beta.0-255-g565ee06f87/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index b6e19afc..c2e8ef02 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.6.0-beta.0-239-ga71827143b".\ + "SDK Package Version: v1.6.0-beta.0-255-g565ee06f87".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 02375b86..53e5459a 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -315,6 +315,9 @@ from .v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition from .v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList from .v1alpha1_virtual_machine_pool_name_generation import V1alpha1VirtualMachinePoolNameGeneration +from .v1alpha1_virtual_machine_pool_proactive_scale_in_strategy import V1alpha1VirtualMachinePoolProactiveScaleInStrategy +from .v1alpha1_virtual_machine_pool_scale_in_strategy import V1alpha1VirtualMachinePoolScaleInStrategy +from .v1alpha1_virtual_machine_pool_selection_policy import V1alpha1VirtualMachinePoolSelectionPolicy from .v1alpha1_virtual_machine_pool_spec import V1alpha1VirtualMachinePoolSpec from .v1alpha1_virtual_machine_pool_status import V1alpha1VirtualMachinePoolStatus from .v1alpha1_virtual_machine_template_spec import V1alpha1VirtualMachineTemplateSpec diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py b/kubevirt/models/v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py new file mode 100644 index 00000000..797da26f --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachinePoolProactiveScaleInStrategy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'selection_policy': 'V1alpha1VirtualMachinePoolSelectionPolicy' + } + + attribute_map = { + 'selection_policy': 'selectionPolicy' + } + + def __init__(self, selection_policy=None): + """ + V1alpha1VirtualMachinePoolProactiveScaleInStrategy - a model defined in Swagger + """ + + self._selection_policy = None + + if selection_policy is not None: + self.selection_policy = selection_policy + + @property + def selection_policy(self): + """ + Gets the selection_policy of this V1alpha1VirtualMachinePoolProactiveScaleInStrategy. + SelectionPolicy defines the priority in which VM instances are selected for proactive scale-in Defaults to \"Random\" base policy when no SelectionPolicy is configured + + :return: The selection_policy of this V1alpha1VirtualMachinePoolProactiveScaleInStrategy. + :rtype: V1alpha1VirtualMachinePoolSelectionPolicy + """ + return self._selection_policy + + @selection_policy.setter + def selection_policy(self, selection_policy): + """ + Sets the selection_policy of this V1alpha1VirtualMachinePoolProactiveScaleInStrategy. + SelectionPolicy defines the priority in which VM instances are selected for proactive scale-in Defaults to \"Random\" base policy when no SelectionPolicy is configured + + :param selection_policy: The selection_policy of this V1alpha1VirtualMachinePoolProactiveScaleInStrategy. + :type: V1alpha1VirtualMachinePoolSelectionPolicy + """ + + self._selection_policy = selection_policy + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachinePoolProactiveScaleInStrategy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_scale_in_strategy.py b/kubevirt/models/v1alpha1_virtual_machine_pool_scale_in_strategy.py new file mode 100644 index 00000000..64dfe67f --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_pool_scale_in_strategy.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachinePoolScaleInStrategy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'proactive': 'V1alpha1VirtualMachinePoolProactiveScaleInStrategy' + } + + attribute_map = { + 'proactive': 'proactive' + } + + def __init__(self, proactive=None): + """ + V1alpha1VirtualMachinePoolScaleInStrategy - a model defined in Swagger + """ + + self._proactive = None + + if proactive is not None: + self.proactive = proactive + + @property + def proactive(self): + """ + Gets the proactive of this V1alpha1VirtualMachinePoolScaleInStrategy. + Proactive scale-in by forcing VMs to shutdown during scale-in (Default) + + :return: The proactive of this V1alpha1VirtualMachinePoolScaleInStrategy. + :rtype: V1alpha1VirtualMachinePoolProactiveScaleInStrategy + """ + return self._proactive + + @proactive.setter + def proactive(self, proactive): + """ + Sets the proactive of this V1alpha1VirtualMachinePoolScaleInStrategy. + Proactive scale-in by forcing VMs to shutdown during scale-in (Default) + + :param proactive: The proactive of this V1alpha1VirtualMachinePoolScaleInStrategy. + :type: V1alpha1VirtualMachinePoolProactiveScaleInStrategy + """ + + self._proactive = proactive + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachinePoolScaleInStrategy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_selection_policy.py b/kubevirt/models/v1alpha1_virtual_machine_pool_selection_policy.py new file mode 100644 index 00000000..73f5f72c --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_pool_selection_policy.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachinePoolSelectionPolicy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'base_policy': 'str' + } + + attribute_map = { + 'base_policy': 'basePolicy' + } + + def __init__(self, base_policy=None): + """ + V1alpha1VirtualMachinePoolSelectionPolicy - a model defined in Swagger + """ + + self._base_policy = None + + if base_policy is not None: + self.base_policy = base_policy + + @property + def base_policy(self): + """ + Gets the base_policy of this V1alpha1VirtualMachinePoolSelectionPolicy. + BasePolicy is a catch-all policy [Random|DescendingOrder] + + :return: The base_policy of this V1alpha1VirtualMachinePoolSelectionPolicy. + :rtype: str + """ + return self._base_policy + + @base_policy.setter + def base_policy(self, base_policy): + """ + Sets the base_policy of this V1alpha1VirtualMachinePoolSelectionPolicy. + BasePolicy is a catch-all policy [Random|DescendingOrder] + + :param base_policy: The base_policy of this V1alpha1VirtualMachinePoolSelectionPolicy. + :type: str + """ + + self._base_policy = base_policy + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachinePoolSelectionPolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py b/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py index e1f1b4cb..69002599 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py +++ b/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py @@ -35,6 +35,7 @@ class V1alpha1VirtualMachinePoolSpec(object): 'name_generation': 'V1alpha1VirtualMachinePoolNameGeneration', 'paused': 'bool', 'replicas': 'int', + 'scale_in_strategy': 'V1alpha1VirtualMachinePoolScaleInStrategy', 'selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', 'virtual_machine_template': 'V1alpha1VirtualMachineTemplateSpec' } @@ -44,11 +45,12 @@ class V1alpha1VirtualMachinePoolSpec(object): 'name_generation': 'nameGeneration', 'paused': 'paused', 'replicas': 'replicas', + 'scale_in_strategy': 'scaleInStrategy', 'selector': 'selector', 'virtual_machine_template': 'virtualMachineTemplate' } - def __init__(self, max_unavailable=None, name_generation=None, paused=None, replicas=None, selector=None, virtual_machine_template=None): + def __init__(self, max_unavailable=None, name_generation=None, paused=None, replicas=None, scale_in_strategy=None, selector=None, virtual_machine_template=None): """ V1alpha1VirtualMachinePoolSpec - a model defined in Swagger """ @@ -57,6 +59,7 @@ def __init__(self, max_unavailable=None, name_generation=None, paused=None, repl self._name_generation = None self._paused = None self._replicas = None + self._scale_in_strategy = None self._selector = None self._virtual_machine_template = None @@ -68,6 +71,8 @@ def __init__(self, max_unavailable=None, name_generation=None, paused=None, repl self.paused = paused if replicas is not None: self.replicas = replicas + if scale_in_strategy is not None: + self.scale_in_strategy = scale_in_strategy self.selector = selector self.virtual_machine_template = virtual_machine_template @@ -163,6 +168,29 @@ def replicas(self, replicas): self._replicas = replicas + @property + def scale_in_strategy(self): + """ + Gets the scale_in_strategy of this V1alpha1VirtualMachinePoolSpec. + ScaleInStrategy specifies how the VMPool controller manages scaling in VMs within a VMPool + + :return: The scale_in_strategy of this V1alpha1VirtualMachinePoolSpec. + :rtype: V1alpha1VirtualMachinePoolScaleInStrategy + """ + return self._scale_in_strategy + + @scale_in_strategy.setter + def scale_in_strategy(self, scale_in_strategy): + """ + Sets the scale_in_strategy of this V1alpha1VirtualMachinePoolSpec. + ScaleInStrategy specifies how the VMPool controller manages scaling in VMs within a VMPool + + :param scale_in_strategy: The scale_in_strategy of this V1alpha1VirtualMachinePoolSpec. + :type: V1alpha1VirtualMachinePoolScaleInStrategy + """ + + self._scale_in_strategy = scale_in_strategy + @property def selector(self): """ diff --git a/setup.py b/setup.py index 8420b883..6fc43483 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.6.0-beta.0-239-ga71827143b" +VERSION = "v1.6.0-beta.0-255-g565ee06f87" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 82dcaf56..8aa197e7 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.6.0-beta.0-239-ga71827143b" +"packageVersion": "v1.6.0-beta.0-255-g565ee06f87" } diff --git a/test/test_v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py b/test/test_v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py new file mode 100644 index 00000000..2d72cf9c --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_pool_proactive_scale_in_strategy import V1alpha1VirtualMachinePoolProactiveScaleInStrategy + + +class TestV1alpha1VirtualMachinePoolProactiveScaleInStrategy(unittest.TestCase): + """ V1alpha1VirtualMachinePoolProactiveScaleInStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachinePoolProactiveScaleInStrategy(self): + """ + Test V1alpha1VirtualMachinePoolProactiveScaleInStrategy + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.V1alpha1VirtualMachinePoolProactiveScaleInStrategy() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_pool_scale_in_strategy.py b/test/test_v1alpha1_virtual_machine_pool_scale_in_strategy.py new file mode 100644 index 00000000..d0f0dadc --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_pool_scale_in_strategy.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_pool_scale_in_strategy import V1alpha1VirtualMachinePoolScaleInStrategy + + +class TestV1alpha1VirtualMachinePoolScaleInStrategy(unittest.TestCase): + """ V1alpha1VirtualMachinePoolScaleInStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachinePoolScaleInStrategy(self): + """ + Test V1alpha1VirtualMachinePoolScaleInStrategy + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_pool_scale_in_strategy.V1alpha1VirtualMachinePoolScaleInStrategy() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_pool_selection_policy.py b/test/test_v1alpha1_virtual_machine_pool_selection_policy.py new file mode 100644 index 00000000..1852bb8f --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_pool_selection_policy.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_pool_selection_policy import V1alpha1VirtualMachinePoolSelectionPolicy + + +class TestV1alpha1VirtualMachinePoolSelectionPolicy(unittest.TestCase): + """ V1alpha1VirtualMachinePoolSelectionPolicy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachinePoolSelectionPolicy(self): + """ + Test V1alpha1VirtualMachinePoolSelectionPolicy + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_pool_selection_policy.V1alpha1VirtualMachinePoolSelectionPolicy() + pass + + +if __name__ == '__main__': + unittest.main() From a855c176e5714ad600d9b5d526c661e49c21bec2 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 18 Jun 2025 22:21:10 +0000 Subject: [PATCH 465/521] Client Python update by KubeVirt Prow build 1935459209655095296 --- README.md | 2 +- docs/V1VirtualMachineInstanceSpec.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_virtual_machine_instance_spec.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 4fd9b387..969e56f2 100644 --- a/README.md +++ b/README.md @@ -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.6.0-beta.0-255-g565ee06f87 +- Package version: v1.6.0-beta.0-266-g517b497f42 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceSpec.md b/docs/V1VirtualMachineInstanceSpec.md index 0b69e2b3..17f65c1b 100644 --- a/docs/V1VirtualMachineInstanceSpec.md +++ b/docs/V1VirtualMachineInstanceSpec.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **dns_config** | [**K8sIoApiCoreV1PodDNSConfig**](K8sIoApiCoreV1PodDNSConfig.md) | Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. | [optional] **dns_policy** | **str** | Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. Possible enum values: - `\"ClusterFirst\"` indicates that the pod should use cluster DNS first unless hostNetwork is true, if it is available, then fall back on the default (as determined by kubelet) DNS settings. - `\"ClusterFirstWithHostNet\"` indicates that the pod should use cluster DNS first, if it is available, then fall back on the default (as determined by kubelet) DNS settings. - `\"Default\"` indicates that the pod should use the default (as determined by kubelet) DNS settings. - `\"None\"` indicates that the pod should use empty DNS settings. DNS parameters such as nameservers and search paths should be defined via DNSConfig. | [optional] **domain** | [**V1DomainSpec**](V1DomainSpec.md) | Specification of the desired behavior of the VirtualMachineInstance on the host. | -**eviction_strategy** | **str** | EvictionStrategy describes the strategy to follow when a node drain occurs. The possible options are: - \"None\": No action will be taken, according to the specified 'RunStrategy' the VirtualMachine will be restarted or shutdown. - \"LiveMigrate\": the VirtualMachineInstance will be migrated instead of being shutdown. - \"LiveMigrateIfPossible\": the same as \"LiveMigrate\" but only if the VirtualMachine is Live-Migratable, otherwise it will behave as \"None\". - \"External\": the VirtualMachineInstance will be protected by a PDB and `vmi.Status.EvacuationNodeName` will be set on eviction. This is mainly useful for cluster-api-provider-kubevirt (capk) which needs a way for VMI's to be blocked from eviction, yet signal capk that eviction has been called on the VMI so the capk controller can handle tearing the VMI down. Details can be found in the commit description https://github.com/kubevirt/kubevirt/commit/c1d77face705c8b126696bac9a3ee3825f27f1fa. | [optional] +**eviction_strategy** | **str** | EvictionStrategy describes the strategy to follow when a node drain occurs. The possible options are: - \"None\": No action will be taken, according to the specified 'RunStrategy' the VirtualMachine will be restarted or shutdown. - \"LiveMigrate\": the VirtualMachineInstance will be migrated instead of being shutdown. - \"LiveMigrateIfPossible\": the same as \"LiveMigrate\" but only if the VirtualMachine is Live-Migratable, otherwise it will behave as \"None\". - \"External\": the VirtualMachineInstance will be protected and `vmi.Status.EvacuationNodeName` will be set on eviction. This is mainly useful for cluster-api-provider-kubevirt (capk) which needs a way for VMI's to be blocked from eviction, yet signal capk that eviction has been called on the VMI so the capk controller can handle tearing the VMI down. Details can be found in the commit description https://github.com/kubevirt/kubevirt/commit/c1d77face705c8b126696bac9a3ee3825f27f1fa. | [optional] **hostname** | **str** | Specifies the hostname of the vmi If not specified, the hostname will be set to the name of the vmi, if dhcp or cloud-init is configured properly. | [optional] **liveness_probe** | [**V1Probe**](V1Probe.md) | Periodic probe of VirtualMachineInstance liveness. VirtualmachineInstances will be stopped if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes | [optional] **networks** | [**list[V1Network]**](V1Network.md) | List of networks that can be attached to a vm's virtual interface. | [optional] diff --git a/git_push.sh b/git_push.sh index f9f95099..b9b69b61 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.6.0-beta.0-255-g565ee06f87" + release_note="Auto-generated client v1.6.0-beta.0-266-g517b497f42" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 21fd61bc..9b4cd651 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.6.0-beta.0-255-g565ee06f87/python' + self.user_agent = 'Swagger-Codegen/v1.6.0-beta.0-266-g517b497f42/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c2e8ef02..f7e10a7d 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.6.0-beta.0-255-g565ee06f87".\ + "SDK Package Version: v1.6.0-beta.0-266-g517b497f42".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_spec.py b/kubevirt/models/v1_virtual_machine_instance_spec.py index 78928248..abdd7b17 100644 --- a/kubevirt/models/v1_virtual_machine_instance_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_spec.py @@ -292,7 +292,7 @@ def domain(self, domain): def eviction_strategy(self): """ Gets the eviction_strategy of this V1VirtualMachineInstanceSpec. - EvictionStrategy describes the strategy to follow when a node drain occurs. The possible options are: - \"None\": No action will be taken, according to the specified 'RunStrategy' the VirtualMachine will be restarted or shutdown. - \"LiveMigrate\": the VirtualMachineInstance will be migrated instead of being shutdown. - \"LiveMigrateIfPossible\": the same as \"LiveMigrate\" but only if the VirtualMachine is Live-Migratable, otherwise it will behave as \"None\". - \"External\": the VirtualMachineInstance will be protected by a PDB and `vmi.Status.EvacuationNodeName` will be set on eviction. This is mainly useful for cluster-api-provider-kubevirt (capk) which needs a way for VMI's to be blocked from eviction, yet signal capk that eviction has been called on the VMI so the capk controller can handle tearing the VMI down. Details can be found in the commit description https://github.com/kubevirt/kubevirt/commit/c1d77face705c8b126696bac9a3ee3825f27f1fa. + EvictionStrategy describes the strategy to follow when a node drain occurs. The possible options are: - \"None\": No action will be taken, according to the specified 'RunStrategy' the VirtualMachine will be restarted or shutdown. - \"LiveMigrate\": the VirtualMachineInstance will be migrated instead of being shutdown. - \"LiveMigrateIfPossible\": the same as \"LiveMigrate\" but only if the VirtualMachine is Live-Migratable, otherwise it will behave as \"None\". - \"External\": the VirtualMachineInstance will be protected and `vmi.Status.EvacuationNodeName` will be set on eviction. This is mainly useful for cluster-api-provider-kubevirt (capk) which needs a way for VMI's to be blocked from eviction, yet signal capk that eviction has been called on the VMI so the capk controller can handle tearing the VMI down. Details can be found in the commit description https://github.com/kubevirt/kubevirt/commit/c1d77face705c8b126696bac9a3ee3825f27f1fa. :return: The eviction_strategy of this V1VirtualMachineInstanceSpec. :rtype: str @@ -303,7 +303,7 @@ def eviction_strategy(self): def eviction_strategy(self, eviction_strategy): """ Sets the eviction_strategy of this V1VirtualMachineInstanceSpec. - EvictionStrategy describes the strategy to follow when a node drain occurs. The possible options are: - \"None\": No action will be taken, according to the specified 'RunStrategy' the VirtualMachine will be restarted or shutdown. - \"LiveMigrate\": the VirtualMachineInstance will be migrated instead of being shutdown. - \"LiveMigrateIfPossible\": the same as \"LiveMigrate\" but only if the VirtualMachine is Live-Migratable, otherwise it will behave as \"None\". - \"External\": the VirtualMachineInstance will be protected by a PDB and `vmi.Status.EvacuationNodeName` will be set on eviction. This is mainly useful for cluster-api-provider-kubevirt (capk) which needs a way for VMI's to be blocked from eviction, yet signal capk that eviction has been called on the VMI so the capk controller can handle tearing the VMI down. Details can be found in the commit description https://github.com/kubevirt/kubevirt/commit/c1d77face705c8b126696bac9a3ee3825f27f1fa. + EvictionStrategy describes the strategy to follow when a node drain occurs. The possible options are: - \"None\": No action will be taken, according to the specified 'RunStrategy' the VirtualMachine will be restarted or shutdown. - \"LiveMigrate\": the VirtualMachineInstance will be migrated instead of being shutdown. - \"LiveMigrateIfPossible\": the same as \"LiveMigrate\" but only if the VirtualMachine is Live-Migratable, otherwise it will behave as \"None\". - \"External\": the VirtualMachineInstance will be protected and `vmi.Status.EvacuationNodeName` will be set on eviction. This is mainly useful for cluster-api-provider-kubevirt (capk) which needs a way for VMI's to be blocked from eviction, yet signal capk that eviction has been called on the VMI so the capk controller can handle tearing the VMI down. Details can be found in the commit description https://github.com/kubevirt/kubevirt/commit/c1d77face705c8b126696bac9a3ee3825f27f1fa. :param eviction_strategy: The eviction_strategy of this V1VirtualMachineInstanceSpec. :type: str diff --git a/setup.py b/setup.py index 6fc43483..96e2da55 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.6.0-beta.0-255-g565ee06f87" +VERSION = "v1.6.0-beta.0-266-g517b497f42" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 8aa197e7..afbcc66c 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.6.0-beta.0-255-g565ee06f87" +"packageVersion": "v1.6.0-beta.0-266-g517b497f42" } From b31aa4f6bc1856e964568f41edd0bbccf8760c07 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Mon, 23 Jun 2025 23:36:42 +0000 Subject: [PATCH 466/521] Client Python update by KubeVirt Prow build 1937290762601369600 --- README.md | 3 +- docs/V1Devices.md | 1 + docs/V1PanicDevice.md | 10 ++ docs/V1beta1DevicePreferences.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_devices.py | 30 ++++- kubevirt/models/v1_panic_device.py | 125 ++++++++++++++++++ kubevirt/models/v1beta1_device_preferences.py | 30 ++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_panic_device.py | 44 ++++++ 16 files changed, 251 insertions(+), 8 deletions(-) create mode 100644 docs/V1PanicDevice.md create mode 100644 kubevirt/models/v1_panic_device.py create mode 100644 test/test_v1_panic_device.py diff --git a/README.md b/README.md index 969e56f2..2f897b16 100644 --- a/README.md +++ b/README.md @@ -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.6.0-beta.0-266-g517b497f42 +- Package version: v1.6.0-beta.0-328-g0f8928c06e - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -526,6 +526,7 @@ Class | Method | HTTP request | Description - [V1ObjectGraphNode](docs/V1ObjectGraphNode.md) - [V1ObjectGraphOptions](docs/V1ObjectGraphOptions.md) - [V1PITTimer](docs/V1PITTimer.md) + - [V1PanicDevice](docs/V1PanicDevice.md) - [V1PauseOptions](docs/V1PauseOptions.md) - [V1PciHostDevice](docs/V1PciHostDevice.md) - [V1PermittedHostDevices](docs/V1PermittedHostDevices.md) diff --git a/docs/V1Devices.md b/docs/V1Devices.md index 3a10b26d..ac6bee50 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -21,6 +21,7 @@ Name | Type | Description | Notes **interfaces** | [**list[V1Interface]**](V1Interface.md) | Interfaces describe network interfaces which are added to the vmi. | [optional] **log_serial_console** | **bool** | Whether to log the auto-attached default serial console or not. Serial console logs will be collect to a file and then streamed from a named `guest-console-log`. Not relevant if autoattachSerialConsole is disabled. Defaults to cluster wide setting on VirtualMachineOptions. | [optional] **network_interface_multiqueue** | **bool** | If specified, virtual network interfaces configured with a virtio bus will also enable the vhost multiqueue feature for network devices. The number of queues created depends on additional factors of the VirtualMachineInstance, like the number of guest CPUs. | [optional] +**panic_devices** | [**list[V1PanicDevice]**](V1PanicDevice.md) | PanicDevices provides additional crash information when a guest crashes. | [optional] **rng** | [**V1Rng**](V1Rng.md) | Whether to have random number generator from host | [optional] **sound** | [**V1SoundDevice**](V1SoundDevice.md) | Whether to emulate a sound device. | [optional] **tpm** | [**V1TPMDevice**](V1TPMDevice.md) | Whether to emulate a TPM device. | [optional] diff --git a/docs/V1PanicDevice.md b/docs/V1PanicDevice.md new file mode 100644 index 00000000..99e70b0a --- /dev/null +++ b/docs/V1PanicDevice.md @@ -0,0 +1,10 @@ +# V1PanicDevice + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**model** | **str** | Model specifies what type of panic device is provided. The panic model used when this attribute is missing depends on the hypervisor and guest arch. One of: isa, hyperv, pvpanic. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1DevicePreferences.md b/docs/V1beta1DevicePreferences.md index d5d0cbe6..a7e8720b 100644 --- a/docs/V1beta1DevicePreferences.md +++ b/docs/V1beta1DevicePreferences.md @@ -22,6 +22,7 @@ Name | Type | Description | Notes **preferred_interface_model** | **str** | PreferredInterfaceModel optionally defines the preferred model to be used by Interface devices. | [optional] **preferred_lun_bus** | **str** | PreferredLunBus optionally defines the preferred bus for Lun Disk devices. | [optional] **preferred_network_interface_multi_queue** | **bool** | PreferredNetworkInterfaceMultiQueue optionally enables the vhost multiqueue feature for virtio interfaces. | [optional] +**preferred_panic_device_model** | **str** | PreferredPanicDeviceModel optionally defines the preferred panic device model to use with panic devices. | [optional] **preferred_rng** | [**V1Rng**](V1Rng.md) | PreferredRng optionally defines the preferred rng device to be used. | [optional] **preferred_sound_model** | **str** | PreferredSoundModel optionally defines the preferred model for Sound devices. | [optional] **preferred_tpm** | [**V1TPMDevice**](V1TPMDevice.md) | PreferredTPM optionally defines the preferred TPM device to be used. | [optional] diff --git a/git_push.sh b/git_push.sh index b9b69b61..dcf9a852 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.6.0-beta.0-266-g517b497f42" + release_note="Auto-generated client v1.6.0-beta.0-328-g0f8928c06e" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 793758f9..7a318a4f 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -570,6 +570,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_pit_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pit_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PITTimer.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_panic_device.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_panic_device.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PanicDevice.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_pause_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_pause_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1PauseOptions.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 2e1dc956..e50838b1 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -197,6 +197,7 @@ from .models.v1_object_graph_node import V1ObjectGraphNode from .models.v1_object_graph_options import V1ObjectGraphOptions from .models.v1_pit_timer import V1PITTimer +from .models.v1_panic_device import V1PanicDevice from .models.v1_pause_options import V1PauseOptions from .models.v1_pci_host_device import V1PciHostDevice from .models.v1_permitted_host_devices import V1PermittedHostDevices diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 9b4cd651..c9036f13 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.6.0-beta.0-266-g517b497f42/python' + self.user_agent = 'Swagger-Codegen/v1.6.0-beta.0-328-g0f8928c06e/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index f7e10a7d..a5a453b8 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.6.0-beta.0-266-g517b497f42".\ + "SDK Package Version: v1.6.0-beta.0-328-g0f8928c06e".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 53e5459a..20d5cf3b 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -197,6 +197,7 @@ from .v1_object_graph_node import V1ObjectGraphNode from .v1_object_graph_options import V1ObjectGraphOptions from .v1_pit_timer import V1PITTimer +from .v1_panic_device import V1PanicDevice from .v1_pause_options import V1PauseOptions from .v1_pci_host_device import V1PciHostDevice from .v1_permitted_host_devices import V1PermittedHostDevices diff --git a/kubevirt/models/v1_devices.py b/kubevirt/models/v1_devices.py index 5cfb19c9..dff3b794 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -49,6 +49,7 @@ class V1Devices(object): 'interfaces': 'list[V1Interface]', 'log_serial_console': 'bool', 'network_interface_multiqueue': 'bool', + 'panic_devices': 'list[V1PanicDevice]', 'rng': 'V1Rng', 'sound': 'V1SoundDevice', 'tpm': 'V1TPMDevice', @@ -76,6 +77,7 @@ class V1Devices(object): 'interfaces': 'interfaces', 'log_serial_console': 'logSerialConsole', 'network_interface_multiqueue': 'networkInterfaceMultiqueue', + 'panic_devices': 'panicDevices', 'rng': 'rng', 'sound': 'sound', 'tpm': 'tpm', @@ -84,7 +86,7 @@ class V1Devices(object): 'watchdog': 'watchdog' } - def __init__(self, autoattach_graphics_device=None, autoattach_input_device=None, autoattach_mem_balloon=None, autoattach_pod_interface=None, autoattach_serial_console=None, autoattach_vsock=None, block_multi_queue=None, client_passthrough=None, disable_hotplug=None, disks=None, downward_metrics=None, filesystems=None, gpus=None, host_devices=None, inputs=None, interfaces=None, log_serial_console=None, network_interface_multiqueue=None, rng=None, sound=None, tpm=None, use_virtio_transitional=None, video=None, watchdog=None): + def __init__(self, autoattach_graphics_device=None, autoattach_input_device=None, autoattach_mem_balloon=None, autoattach_pod_interface=None, autoattach_serial_console=None, autoattach_vsock=None, block_multi_queue=None, client_passthrough=None, disable_hotplug=None, disks=None, downward_metrics=None, filesystems=None, gpus=None, host_devices=None, inputs=None, interfaces=None, log_serial_console=None, network_interface_multiqueue=None, panic_devices=None, rng=None, sound=None, tpm=None, use_virtio_transitional=None, video=None, watchdog=None): """ V1Devices - a model defined in Swagger """ @@ -107,6 +109,7 @@ def __init__(self, autoattach_graphics_device=None, autoattach_input_device=None self._interfaces = None self._log_serial_console = None self._network_interface_multiqueue = None + self._panic_devices = None self._rng = None self._sound = None self._tpm = None @@ -150,6 +153,8 @@ def __init__(self, autoattach_graphics_device=None, autoattach_input_device=None self.log_serial_console = log_serial_console if network_interface_multiqueue is not None: self.network_interface_multiqueue = network_interface_multiqueue + if panic_devices is not None: + self.panic_devices = panic_devices if rng is not None: self.rng = rng if sound is not None: @@ -577,6 +582,29 @@ def network_interface_multiqueue(self, network_interface_multiqueue): self._network_interface_multiqueue = network_interface_multiqueue + @property + def panic_devices(self): + """ + Gets the panic_devices of this V1Devices. + PanicDevices provides additional crash information when a guest crashes. + + :return: The panic_devices of this V1Devices. + :rtype: list[V1PanicDevice] + """ + return self._panic_devices + + @panic_devices.setter + def panic_devices(self, panic_devices): + """ + Sets the panic_devices of this V1Devices. + PanicDevices provides additional crash information when a guest crashes. + + :param panic_devices: The panic_devices of this V1Devices. + :type: list[V1PanicDevice] + """ + + self._panic_devices = panic_devices + @property def rng(self): """ diff --git a/kubevirt/models/v1_panic_device.py b/kubevirt/models/v1_panic_device.py new file mode 100644 index 00000000..5c61d657 --- /dev/null +++ b/kubevirt/models/v1_panic_device.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PanicDevice(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'model': 'str' + } + + attribute_map = { + 'model': 'model' + } + + def __init__(self, model=None): + """ + V1PanicDevice - a model defined in Swagger + """ + + self._model = None + + if model is not None: + self.model = model + + @property + def model(self): + """ + Gets the model of this V1PanicDevice. + Model specifies what type of panic device is provided. The panic model used when this attribute is missing depends on the hypervisor and guest arch. One of: isa, hyperv, pvpanic. + + :return: The model of this V1PanicDevice. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """ + Sets the model of this V1PanicDevice. + Model specifies what type of panic device is provided. The panic model used when this attribute is missing depends on the hypervisor and guest arch. One of: isa, hyperv, pvpanic. + + :param model: The model of this V1PanicDevice. + :type: str + """ + + self._model = model + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1PanicDevice): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1beta1_device_preferences.py b/kubevirt/models/v1beta1_device_preferences.py index 7b3d09c5..f13649f0 100644 --- a/kubevirt/models/v1beta1_device_preferences.py +++ b/kubevirt/models/v1beta1_device_preferences.py @@ -50,6 +50,7 @@ class V1beta1DevicePreferences(object): 'preferred_interface_model': 'str', 'preferred_lun_bus': 'str', 'preferred_network_interface_multi_queue': 'bool', + 'preferred_panic_device_model': 'str', 'preferred_rng': 'V1Rng', 'preferred_sound_model': 'str', 'preferred_tpm': 'V1TPMDevice', @@ -77,6 +78,7 @@ class V1beta1DevicePreferences(object): 'preferred_interface_model': 'preferredInterfaceModel', 'preferred_lun_bus': 'preferredLunBus', 'preferred_network_interface_multi_queue': 'preferredNetworkInterfaceMultiQueue', + 'preferred_panic_device_model': 'preferredPanicDeviceModel', 'preferred_rng': 'preferredRng', 'preferred_sound_model': 'preferredSoundModel', 'preferred_tpm': 'preferredTPM', @@ -84,7 +86,7 @@ class V1beta1DevicePreferences(object): 'preferred_virtual_gpu_options': 'preferredVirtualGPUOptions' } - def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoattach_input_device=None, preferred_autoattach_mem_balloon=None, preferred_autoattach_pod_interface=None, preferred_autoattach_serial_console=None, preferred_block_multi_queue=None, preferred_cdrom_bus=None, preferred_disable_hotplug=None, preferred_disk_block_size=None, preferred_disk_bus=None, preferred_disk_cache=None, preferred_disk_dedicated_io_thread=None, preferred_disk_io=None, preferred_input_bus=None, preferred_input_type=None, preferred_interface_masquerade=None, preferred_interface_model=None, preferred_lun_bus=None, preferred_network_interface_multi_queue=None, preferred_rng=None, preferred_sound_model=None, preferred_tpm=None, preferred_use_virtio_transitional=None, preferred_virtual_gpu_options=None): + def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoattach_input_device=None, preferred_autoattach_mem_balloon=None, preferred_autoattach_pod_interface=None, preferred_autoattach_serial_console=None, preferred_block_multi_queue=None, preferred_cdrom_bus=None, preferred_disable_hotplug=None, preferred_disk_block_size=None, preferred_disk_bus=None, preferred_disk_cache=None, preferred_disk_dedicated_io_thread=None, preferred_disk_io=None, preferred_input_bus=None, preferred_input_type=None, preferred_interface_masquerade=None, preferred_interface_model=None, preferred_lun_bus=None, preferred_network_interface_multi_queue=None, preferred_panic_device_model=None, preferred_rng=None, preferred_sound_model=None, preferred_tpm=None, preferred_use_virtio_transitional=None, preferred_virtual_gpu_options=None): """ V1beta1DevicePreferences - a model defined in Swagger """ @@ -108,6 +110,7 @@ def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoatta self._preferred_interface_model = None self._preferred_lun_bus = None self._preferred_network_interface_multi_queue = None + self._preferred_panic_device_model = None self._preferred_rng = None self._preferred_sound_model = None self._preferred_tpm = None @@ -152,6 +155,8 @@ def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoatta self.preferred_lun_bus = preferred_lun_bus if preferred_network_interface_multi_queue is not None: self.preferred_network_interface_multi_queue = preferred_network_interface_multi_queue + if preferred_panic_device_model is not None: + self.preferred_panic_device_model = preferred_panic_device_model if preferred_rng is not None: self.preferred_rng = preferred_rng if preferred_sound_model is not None: @@ -600,6 +605,29 @@ def preferred_network_interface_multi_queue(self, preferred_network_interface_mu self._preferred_network_interface_multi_queue = preferred_network_interface_multi_queue + @property + def preferred_panic_device_model(self): + """ + Gets the preferred_panic_device_model of this V1beta1DevicePreferences. + PreferredPanicDeviceModel optionally defines the preferred panic device model to use with panic devices. + + :return: The preferred_panic_device_model of this V1beta1DevicePreferences. + :rtype: str + """ + return self._preferred_panic_device_model + + @preferred_panic_device_model.setter + def preferred_panic_device_model(self, preferred_panic_device_model): + """ + Sets the preferred_panic_device_model of this V1beta1DevicePreferences. + PreferredPanicDeviceModel optionally defines the preferred panic device model to use with panic devices. + + :param preferred_panic_device_model: The preferred_panic_device_model of this V1beta1DevicePreferences. + :type: str + """ + + self._preferred_panic_device_model = preferred_panic_device_model + @property def preferred_rng(self): """ diff --git a/setup.py b/setup.py index 96e2da55..66bcc5ff 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.6.0-beta.0-266-g517b497f42" +VERSION = "v1.6.0-beta.0-328-g0f8928c06e" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index afbcc66c..530a2981 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.6.0-beta.0-266-g517b497f42" +"packageVersion": "v1.6.0-beta.0-328-g0f8928c06e" } diff --git a/test/test_v1_panic_device.py b/test/test_v1_panic_device.py new file mode 100644 index 00000000..cd6482ca --- /dev/null +++ b/test/test_v1_panic_device.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_panic_device import V1PanicDevice + + +class TestV1PanicDevice(unittest.TestCase): + """ V1PanicDevice unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PanicDevice(self): + """ + Test V1PanicDevice + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_panic_device.V1PanicDevice() + pass + + +if __name__ == '__main__': + unittest.main() From 21e1d4e897894099fbebd13d2920bd28a1f39534 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 26 Jun 2025 15:09:42 +0000 Subject: [PATCH 467/521] Client Python update by KubeVirt Prow build 1938249624447881216 --- README.md | 2 +- docs/V1KubeVirtStatus.md | 1 + ...tualMachineInstanceMigrationSourceState.md | 2 + ...tualMachineInstanceMigrationTargetState.md | 2 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_kube_virt_status.py | 28 ++++++++- ...machine_instance_migration_source_state.py | 62 ++++++++++++++++++- ...machine_instance_migration_target_state.py | 62 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 12 files changed, 156 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 2f897b16..61b494f3 100644 --- a/README.md +++ b/README.md @@ -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.6.0-beta.0-328-g0f8928c06e +- Package version: v1.6.0-beta.0-403-gdb1a15c9c1 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1KubeVirtStatus.md b/docs/V1KubeVirtStatus.md index bcb6d863..1e242ab0 100644 --- a/docs/V1KubeVirtStatus.md +++ b/docs/V1KubeVirtStatus.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **operator_version** | **str** | | [optional] **outdated_virtual_machine_instance_workloads** | **int** | | [optional] **phase** | **str** | | [optional] +**synchronization_address** | **str** | | [optional] **target_deployment_config** | **str** | | [optional] **target_deployment_id** | **str** | | [optional] **target_kube_virt_registry** | **str** | | [optional] diff --git a/docs/V1VirtualMachineInstanceMigrationSourceState.md b/docs/V1VirtualMachineInstanceMigrationSourceState.md index 8959d6b4..7d3ab535 100644 --- a/docs/V1VirtualMachineInstanceMigrationSourceState.md +++ b/docs/V1VirtualMachineInstanceMigrationSourceState.md @@ -10,7 +10,9 @@ Name | Type | Description | Notes **node_selectors** | **dict(str, str)** | Node selectors needed by the target to start the receiving pod. | [optional] **persistent_state_pvc_name** | **str** | If the VMI being migrated uses persistent features (backend-storage), its source PVC name is saved here | [optional] **pod** | **str** | The source pod that the VMI is originated on | [optional] +**selinux_context** | **str** | SELinuxContext is the actual SELinux context of the pod | [optional] **sync_address** | **str** | The ip address/fqdn:port combination to use to synchronize the VMI with the target. | [optional] +**virtual_machine_instance_uid** | **str** | VirtualMachineInstanceUID is the UID of the target virtual machine instance | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceMigrationTargetState.md b/docs/V1VirtualMachineInstanceMigrationTargetState.md index d358fb08..74a8cf0e 100644 --- a/docs/V1VirtualMachineInstanceMigrationTargetState.md +++ b/docs/V1VirtualMachineInstanceMigrationTargetState.md @@ -16,7 +16,9 @@ Name | Type | Description | Notes **node_topology** | **str** | If the VMI requires dedicated CPUs, this field will hold the numa topology on the target node | [optional] **persistent_state_pvc_name** | **str** | If the VMI being migrated uses persistent features (backend-storage), its source PVC name is saved here | [optional] **pod** | **str** | The source pod that the VMI is originated on | [optional] +**selinux_context** | **str** | SELinuxContext is the actual SELinux context of the pod | [optional] **sync_address** | **str** | The ip address/fqdn:port combination to use to synchronize the VMI with the target. | [optional] +**virtual_machine_instance_uid** | **str** | VirtualMachineInstanceUID is the UID of the target virtual machine instance | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index dcf9a852..c68ed7c4 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.6.0-beta.0-328-g0f8928c06e" + release_note="Auto-generated client v1.6.0-beta.0-403-gdb1a15c9c1" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index c9036f13..ac91f3e2 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.6.0-beta.0-328-g0f8928c06e/python' + self.user_agent = 'Swagger-Codegen/v1.6.0-beta.0-403-gdb1a15c9c1/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index a5a453b8..b1a13b26 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.6.0-beta.0-328-g0f8928c06e".\ + "SDK Package Version: v1.6.0-beta.0-403-gdb1a15c9c1".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_kube_virt_status.py b/kubevirt/models/v1_kube_virt_status.py index 80916ba1..20f560cf 100644 --- a/kubevirt/models/v1_kube_virt_status.py +++ b/kubevirt/models/v1_kube_virt_status.py @@ -42,6 +42,7 @@ class V1KubeVirtStatus(object): 'operator_version': 'str', 'outdated_virtual_machine_instance_workloads': 'int', 'phase': 'str', + 'synchronization_address': 'str', 'target_deployment_config': 'str', 'target_deployment_id': 'str', 'target_kube_virt_registry': 'str', @@ -60,13 +61,14 @@ class V1KubeVirtStatus(object): 'operator_version': 'operatorVersion', 'outdated_virtual_machine_instance_workloads': 'outdatedVirtualMachineInstanceWorkloads', 'phase': 'phase', + 'synchronization_address': 'synchronizationAddress', 'target_deployment_config': 'targetDeploymentConfig', 'target_deployment_id': 'targetDeploymentID', 'target_kube_virt_registry': 'targetKubeVirtRegistry', 'target_kube_virt_version': 'targetKubeVirtVersion' } - def __init__(self, conditions=None, default_architecture=None, generations=None, observed_deployment_config=None, observed_deployment_id=None, observed_generation=None, observed_kube_virt_registry=None, observed_kube_virt_version=None, operator_version=None, outdated_virtual_machine_instance_workloads=None, phase=None, target_deployment_config=None, target_deployment_id=None, target_kube_virt_registry=None, target_kube_virt_version=None): + def __init__(self, conditions=None, default_architecture=None, generations=None, observed_deployment_config=None, observed_deployment_id=None, observed_generation=None, observed_kube_virt_registry=None, observed_kube_virt_version=None, operator_version=None, outdated_virtual_machine_instance_workloads=None, phase=None, synchronization_address=None, target_deployment_config=None, target_deployment_id=None, target_kube_virt_registry=None, target_kube_virt_version=None): """ V1KubeVirtStatus - a model defined in Swagger """ @@ -82,6 +84,7 @@ def __init__(self, conditions=None, default_architecture=None, generations=None, self._operator_version = None self._outdated_virtual_machine_instance_workloads = None self._phase = None + self._synchronization_address = None self._target_deployment_config = None self._target_deployment_id = None self._target_kube_virt_registry = None @@ -109,6 +112,8 @@ def __init__(self, conditions=None, default_architecture=None, generations=None, self.outdated_virtual_machine_instance_workloads = outdated_virtual_machine_instance_workloads if phase is not None: self.phase = phase + if synchronization_address is not None: + self.synchronization_address = synchronization_address if target_deployment_config is not None: self.target_deployment_config = target_deployment_config if target_deployment_id is not None: @@ -349,6 +354,27 @@ def phase(self, phase): self._phase = phase + @property + def synchronization_address(self): + """ + Gets the synchronization_address of this V1KubeVirtStatus. + + :return: The synchronization_address of this V1KubeVirtStatus. + :rtype: str + """ + return self._synchronization_address + + @synchronization_address.setter + def synchronization_address(self, synchronization_address): + """ + Sets the synchronization_address of this V1KubeVirtStatus. + + :param synchronization_address: The synchronization_address of this V1KubeVirtStatus. + :type: str + """ + + self._synchronization_address = synchronization_address + @property def target_deployment_config(self): """ diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_source_state.py b/kubevirt/models/v1_virtual_machine_instance_migration_source_state.py index c0b81e4f..5862d303 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_source_state.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_source_state.py @@ -38,7 +38,9 @@ class V1VirtualMachineInstanceMigrationSourceState(object): 'node_selectors': 'dict(str, str)', 'persistent_state_pvc_name': 'str', 'pod': 'str', - 'sync_address': 'str' + 'selinux_context': 'str', + 'sync_address': 'str', + 'virtual_machine_instance_uid': 'str' } attribute_map = { @@ -49,10 +51,12 @@ class V1VirtualMachineInstanceMigrationSourceState(object): 'node_selectors': 'nodeSelectors', 'persistent_state_pvc_name': 'persistentStatePVCName', 'pod': 'pod', - 'sync_address': 'syncAddress' + 'selinux_context': 'selinuxContext', + 'sync_address': 'syncAddress', + 'virtual_machine_instance_uid': 'virtualMachineInstanceUID' } - def __init__(self, domain_name=None, domain_namespace=None, migration_uid=None, node=None, node_selectors=None, persistent_state_pvc_name=None, pod=None, sync_address=None): + def __init__(self, domain_name=None, domain_namespace=None, migration_uid=None, node=None, node_selectors=None, persistent_state_pvc_name=None, pod=None, selinux_context=None, sync_address=None, virtual_machine_instance_uid=None): """ V1VirtualMachineInstanceMigrationSourceState - a model defined in Swagger """ @@ -64,7 +68,9 @@ def __init__(self, domain_name=None, domain_namespace=None, migration_uid=None, self._node_selectors = None self._persistent_state_pvc_name = None self._pod = None + self._selinux_context = None self._sync_address = None + self._virtual_machine_instance_uid = None if domain_name is not None: self.domain_name = domain_name @@ -80,8 +86,12 @@ def __init__(self, domain_name=None, domain_namespace=None, migration_uid=None, self.persistent_state_pvc_name = persistent_state_pvc_name if pod is not None: self.pod = pod + if selinux_context is not None: + self.selinux_context = selinux_context if sync_address is not None: self.sync_address = sync_address + if virtual_machine_instance_uid is not None: + self.virtual_machine_instance_uid = virtual_machine_instance_uid @property def domain_name(self): @@ -244,6 +254,29 @@ def pod(self, pod): self._pod = pod + @property + def selinux_context(self): + """ + Gets the selinux_context of this V1VirtualMachineInstanceMigrationSourceState. + SELinuxContext is the actual SELinux context of the pod + + :return: The selinux_context of this V1VirtualMachineInstanceMigrationSourceState. + :rtype: str + """ + return self._selinux_context + + @selinux_context.setter + def selinux_context(self, selinux_context): + """ + Sets the selinux_context of this V1VirtualMachineInstanceMigrationSourceState. + SELinuxContext is the actual SELinux context of the pod + + :param selinux_context: The selinux_context of this V1VirtualMachineInstanceMigrationSourceState. + :type: str + """ + + self._selinux_context = selinux_context + @property def sync_address(self): """ @@ -267,6 +300,29 @@ def sync_address(self, sync_address): self._sync_address = sync_address + @property + def virtual_machine_instance_uid(self): + """ + Gets the virtual_machine_instance_uid of this V1VirtualMachineInstanceMigrationSourceState. + VirtualMachineInstanceUID is the UID of the target virtual machine instance + + :return: The virtual_machine_instance_uid of this V1VirtualMachineInstanceMigrationSourceState. + :rtype: str + """ + return self._virtual_machine_instance_uid + + @virtual_machine_instance_uid.setter + def virtual_machine_instance_uid(self, virtual_machine_instance_uid): + """ + Sets the virtual_machine_instance_uid of this V1VirtualMachineInstanceMigrationSourceState. + VirtualMachineInstanceUID is the UID of the target virtual machine instance + + :param virtual_machine_instance_uid: The virtual_machine_instance_uid of this V1VirtualMachineInstanceMigrationSourceState. + :type: str + """ + + self._virtual_machine_instance_uid = virtual_machine_instance_uid + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_target_state.py b/kubevirt/models/v1_virtual_machine_instance_migration_target_state.py index 1d4bade7..00fcc563 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_target_state.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_target_state.py @@ -44,7 +44,9 @@ class V1VirtualMachineInstanceMigrationTargetState(object): 'node_topology': 'str', 'persistent_state_pvc_name': 'str', 'pod': 'str', - 'sync_address': 'str' + 'selinux_context': 'str', + 'sync_address': 'str', + 'virtual_machine_instance_uid': 'str' } attribute_map = { @@ -61,10 +63,12 @@ class V1VirtualMachineInstanceMigrationTargetState(object): 'node_topology': 'nodeTopology', 'persistent_state_pvc_name': 'persistentStatePVCName', 'pod': 'pod', - 'sync_address': 'syncAddress' + 'selinux_context': 'selinuxContext', + 'sync_address': 'syncAddress', + 'virtual_machine_instance_uid': 'virtualMachineInstanceUID' } - def __init__(self, attachment_pod_uid=None, cpu_set=None, direct_migration_node_ports=None, domain_detected=None, domain_name=None, domain_namespace=None, domain_ready_timestamp=None, migration_uid=None, node=None, node_address=None, node_topology=None, persistent_state_pvc_name=None, pod=None, sync_address=None): + def __init__(self, attachment_pod_uid=None, cpu_set=None, direct_migration_node_ports=None, domain_detected=None, domain_name=None, domain_namespace=None, domain_ready_timestamp=None, migration_uid=None, node=None, node_address=None, node_topology=None, persistent_state_pvc_name=None, pod=None, selinux_context=None, sync_address=None, virtual_machine_instance_uid=None): """ V1VirtualMachineInstanceMigrationTargetState - a model defined in Swagger """ @@ -82,7 +86,9 @@ def __init__(self, attachment_pod_uid=None, cpu_set=None, direct_migration_node_ self._node_topology = None self._persistent_state_pvc_name = None self._pod = None + self._selinux_context = None self._sync_address = None + self._virtual_machine_instance_uid = None if attachment_pod_uid is not None: self.attachment_pod_uid = attachment_pod_uid @@ -110,8 +116,12 @@ def __init__(self, attachment_pod_uid=None, cpu_set=None, direct_migration_node_ self.persistent_state_pvc_name = persistent_state_pvc_name if pod is not None: self.pod = pod + if selinux_context is not None: + self.selinux_context = selinux_context if sync_address is not None: self.sync_address = sync_address + if virtual_machine_instance_uid is not None: + self.virtual_machine_instance_uid = virtual_machine_instance_uid @property def attachment_pod_uid(self): @@ -412,6 +422,29 @@ def pod(self, pod): self._pod = pod + @property + def selinux_context(self): + """ + Gets the selinux_context of this V1VirtualMachineInstanceMigrationTargetState. + SELinuxContext is the actual SELinux context of the pod + + :return: The selinux_context of this V1VirtualMachineInstanceMigrationTargetState. + :rtype: str + """ + return self._selinux_context + + @selinux_context.setter + def selinux_context(self, selinux_context): + """ + Sets the selinux_context of this V1VirtualMachineInstanceMigrationTargetState. + SELinuxContext is the actual SELinux context of the pod + + :param selinux_context: The selinux_context of this V1VirtualMachineInstanceMigrationTargetState. + :type: str + """ + + self._selinux_context = selinux_context + @property def sync_address(self): """ @@ -435,6 +468,29 @@ def sync_address(self, sync_address): self._sync_address = sync_address + @property + def virtual_machine_instance_uid(self): + """ + Gets the virtual_machine_instance_uid of this V1VirtualMachineInstanceMigrationTargetState. + VirtualMachineInstanceUID is the UID of the target virtual machine instance + + :return: The virtual_machine_instance_uid of this V1VirtualMachineInstanceMigrationTargetState. + :rtype: str + """ + return self._virtual_machine_instance_uid + + @virtual_machine_instance_uid.setter + def virtual_machine_instance_uid(self, virtual_machine_instance_uid): + """ + Sets the virtual_machine_instance_uid of this V1VirtualMachineInstanceMigrationTargetState. + VirtualMachineInstanceUID is the UID of the target virtual machine instance + + :param virtual_machine_instance_uid: The virtual_machine_instance_uid of this V1VirtualMachineInstanceMigrationTargetState. + :type: str + """ + + self._virtual_machine_instance_uid = virtual_machine_instance_uid + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 66bcc5ff..9e15ec1e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.6.0-beta.0-328-g0f8928c06e" +VERSION = "v1.6.0-beta.0-403-gdb1a15c9c1" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 530a2981..3ce1ed3e 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.6.0-beta.0-328-g0f8928c06e" +"packageVersion": "v1.6.0-beta.0-403-gdb1a15c9c1" } From 7aa3c74f62387755df2cf9b9c865805140acedae Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Mon, 30 Jun 2025 22:20:00 +0000 Subject: [PATCH 468/521] Client Python update by KubeVirt Prow build 1939808216263168000 --- README.md | 7 +- docs/K8sIoApiCoreV1PodResourceClaim.md | 12 ++ docs/V1DeviceAttribute.md | 11 ++ docs/V1DeviceResourceClaimStatus.md | 12 ++ docs/V1DeviceStatus.md | 11 ++ docs/V1DeviceStatusInfo.md | 11 ++ docs/V1GPU.md | 4 +- docs/V1HostDevice.md | 4 +- docs/V1VirtualMachineInstanceSpec.md | 1 + docs/V1VirtualMachineInstanceStatus.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 15 ++ kubevirt/__init__.py | 5 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 5 + .../k8s_io_api_core_v1_pod_resource_claim.py | 182 ++++++++++++++++++ kubevirt/models/v1_device_attribute.py | 153 +++++++++++++++ .../models/v1_device_resource_claim_status.py | 181 +++++++++++++++++ kubevirt/models/v1_device_status.py | 153 +++++++++++++++ kubevirt/models/v1_device_status_info.py | 154 +++++++++++++++ kubevirt/models/v1_gpu.py | 65 ++++++- kubevirt/models/v1_host_device.py | 67 ++++++- .../v1_virtual_machine_instance_spec.py | 30 ++- .../v1_virtual_machine_instance_status.py | 30 ++- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...t_k8s_io_api_core_v1_pod_resource_claim.py | 44 +++++ test/test_v1_device_attribute.py | 44 +++++ test/test_v1_device_resource_claim_status.py | 44 +++++ test/test_v1_device_status.py | 44 +++++ test/test_v1_device_status_info.py | 44 +++++ 32 files changed, 1324 insertions(+), 20 deletions(-) create mode 100644 docs/K8sIoApiCoreV1PodResourceClaim.md create mode 100644 docs/V1DeviceAttribute.md create mode 100644 docs/V1DeviceResourceClaimStatus.md create mode 100644 docs/V1DeviceStatus.md create mode 100644 docs/V1DeviceStatusInfo.md create mode 100644 kubevirt/models/k8s_io_api_core_v1_pod_resource_claim.py create mode 100644 kubevirt/models/v1_device_attribute.py create mode 100644 kubevirt/models/v1_device_resource_claim_status.py create mode 100644 kubevirt/models/v1_device_status.py create mode 100644 kubevirt/models/v1_device_status_info.py create mode 100644 test/test_k8s_io_api_core_v1_pod_resource_claim.py create mode 100644 test/test_v1_device_attribute.py create mode 100644 test/test_v1_device_resource_claim_status.py create mode 100644 test/test_v1_device_status.py create mode 100644 test/test_v1_device_status_info.py diff --git a/README.md b/README.md index 61b494f3..7b4b66c3 100644 --- a/README.md +++ b/README.md @@ -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.6.0-beta.0-403-gdb1a15c9c1 +- Package version: v1.6.0-beta.0-414-ge93e609e3d - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -361,6 +361,7 @@ Class | Method | HTTP request | Description - [K8sIoApiCoreV1PodAntiAffinity](docs/K8sIoApiCoreV1PodAntiAffinity.md) - [K8sIoApiCoreV1PodDNSConfig](docs/K8sIoApiCoreV1PodDNSConfig.md) - [K8sIoApiCoreV1PodDNSConfigOption](docs/K8sIoApiCoreV1PodDNSConfigOption.md) + - [K8sIoApiCoreV1PodResourceClaim](docs/K8sIoApiCoreV1PodResourceClaim.md) - [K8sIoApiCoreV1PreferredSchedulingTerm](docs/K8sIoApiCoreV1PreferredSchedulingTerm.md) - [K8sIoApiCoreV1ResourceFieldSelector](docs/K8sIoApiCoreV1ResourceFieldSelector.md) - [K8sIoApiCoreV1TCPSocketAction](docs/K8sIoApiCoreV1TCPSocketAction.md) @@ -436,6 +437,10 @@ Class | Method | HTTP request | Description - [V1DeprecatedInterfacePasst](docs/V1DeprecatedInterfacePasst.md) - [V1DeprecatedInterfaceSlirp](docs/V1DeprecatedInterfaceSlirp.md) - [V1DeveloperConfiguration](docs/V1DeveloperConfiguration.md) + - [V1DeviceAttribute](docs/V1DeviceAttribute.md) + - [V1DeviceResourceClaimStatus](docs/V1DeviceResourceClaimStatus.md) + - [V1DeviceStatus](docs/V1DeviceStatus.md) + - [V1DeviceStatusInfo](docs/V1DeviceStatusInfo.md) - [V1Devices](docs/V1Devices.md) - [V1Diag288Watchdog](docs/V1Diag288Watchdog.md) - [V1DisableFreePageReporting](docs/V1DisableFreePageReporting.md) diff --git a/docs/K8sIoApiCoreV1PodResourceClaim.md b/docs/K8sIoApiCoreV1PodResourceClaim.md new file mode 100644 index 00000000..4a4ce72b --- /dev/null +++ b/docs/K8sIoApiCoreV1PodResourceClaim.md @@ -0,0 +1,12 @@ +# K8sIoApiCoreV1PodResourceClaim + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL. | [default to ''] +**resource_claim_name** | **str** | ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. | [optional] +**resource_claim_template_name** | **str** | ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1DeviceAttribute.md b/docs/V1DeviceAttribute.md new file mode 100644 index 00000000..3e7d933e --- /dev/null +++ b/docs/V1DeviceAttribute.md @@ -0,0 +1,11 @@ +# V1DeviceAttribute + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**m_dev_uuid** | **str** | MDevUUID is the mediated device uuid of the allocated device | [optional] +**pci_address** | **str** | PCIAddress is the PCIe bus address of the allocated device | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1DeviceResourceClaimStatus.md b/docs/V1DeviceResourceClaimStatus.md new file mode 100644 index 00000000..7c7a2944 --- /dev/null +++ b/docs/V1DeviceResourceClaimStatus.md @@ -0,0 +1,12 @@ +# V1DeviceResourceClaimStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**V1DeviceAttribute**](V1DeviceAttribute.md) | Attributes are properties of the device that could be used by kubevirt and other copmonents to learn more about the device, like pciAddress or mdevUUID | [optional] +**name** | **str** | Name is the name of actual device on the host provisioned by the driver as reflected in resourceclaim.status | [optional] +**resource_claim_name** | **str** | ResourceClaimName is the name of the resource claims object used to provision this resource | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1DeviceStatus.md b/docs/V1DeviceStatus.md new file mode 100644 index 00000000..8895d0e5 --- /dev/null +++ b/docs/V1DeviceStatus.md @@ -0,0 +1,11 @@ +# V1DeviceStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gpu_statuses** | [**list[V1DeviceStatusInfo]**](V1DeviceStatusInfo.md) | GPUStatuses reflects the state of GPUs requested in spec.domain.devices.gpus | [optional] +**host_device_statuses** | [**list[V1DeviceStatusInfo]**](V1DeviceStatusInfo.md) | HostDeviceStatuses reflects the state of GPUs requested in spec.domain.devices.hostDevices DRA | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1DeviceStatusInfo.md b/docs/V1DeviceStatusInfo.md new file mode 100644 index 00000000..97756e03 --- /dev/null +++ b/docs/V1DeviceStatusInfo.md @@ -0,0 +1,11 @@ +# V1DeviceStatusInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**device_resource_claim_status** | [**V1DeviceResourceClaimStatus**](V1DeviceResourceClaimStatus.md) | DeviceResourceClaimStatus reflects the DRA related information for the device | [optional] +**name** | **str** | Name of the device as specified in spec.domain.devices.gpus.name or spec.domain.devices.hostDevices.name | [default to ''] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1GPU.md b/docs/V1GPU.md index 41aa5b95..51658bcb 100644 --- a/docs/V1GPU.md +++ b/docs/V1GPU.md @@ -3,8 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**device_name** | **str** | | [default to ''] +**claim_name** | **str** | ClaimName needs to be provided from the list vmi.spec.resourceClaims[].name where this device is allocated | [optional] +**device_name** | **str** | DeviceName is the name of the device provisioned by device-plugins | [optional] **name** | **str** | Name of the GPU device as exposed by a device plugin | [default to ''] +**request_name** | **str** | RequestName needs to be provided from resourceClaim.spec.devices.requests[].name where this device is requested | [optional] **tag** | **str** | If specified, the virtual network interface address and its tag will be provided to the guest via config drive | [optional] **virtual_gpu_options** | [**V1VGPUOptions**](V1VGPUOptions.md) | | [optional] diff --git a/docs/V1HostDevice.md b/docs/V1HostDevice.md index c1f75e19..aba388d3 100644 --- a/docs/V1HostDevice.md +++ b/docs/V1HostDevice.md @@ -3,8 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**device_name** | **str** | DeviceName is the resource name of the host device exposed by a device plugin | [default to ''] +**claim_name** | **str** | ClaimName needs to be provided from the list vmi.spec.resourceClaims[].name where this device is allocated | [optional] +**device_name** | **str** | DeviceName is the name of the device provisioned by device-plugins | [optional] **name** | **str** | | [default to ''] +**request_name** | **str** | RequestName needs to be provided from resourceClaim.spec.devices.requests[].name where this device is requested | [optional] **tag** | **str** | If specified, the virtual network interface address and its tag will be provided to the guest via config drive | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceSpec.md b/docs/V1VirtualMachineInstanceSpec.md index 17f65c1b..6df6e1f5 100644 --- a/docs/V1VirtualMachineInstanceSpec.md +++ b/docs/V1VirtualMachineInstanceSpec.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **node_selector** | **dict(str, str)** | NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ | [optional] **priority_class_name** | **str** | If specified, indicates the pod's priority. If not specified, the pod priority will be default or zero if there is no default. | [optional] **readiness_probe** | [**V1Probe**](V1Probe.md) | Periodic probe of VirtualMachineInstance service readiness. VirtualmachineInstances will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes | [optional] +**resource_claims** | [**list[K8sIoApiCoreV1PodResourceClaim]**](K8sIoApiCoreV1PodResourceClaim.md) | ResourceClaims define which ResourceClaims must be allocated and reserved before the VMI, hence virt-launcher pod is allowed to start. The resources will be made available to the domain which consumes them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate in kubernetes https://kubernetes.io/docs/concepts/scheduling-eviction/dynamic-resource-allocation/ This field should only be configured if one of the feature-gates GPUsWithDRA or HostDevicesWithDRA is enabled. This feature is in alpha. | [optional] **scheduler_name** | **str** | If specified, the VMI will be dispatched by specified scheduler. If not specified, the VMI will be dispatched by default scheduler. | [optional] **start_strategy** | **str** | StartStrategy can be set to \"Paused\" if Virtual Machine should be started in paused state. | [optional] **subdomain** | **str** | If specified, the fully qualified vmi hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the vmi will not have a domainname at all. The DNS entry will resolve to the vmi, no matter if the vmi itself can pick up a hostname. | [optional] diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index 0cc9f6ee..b3538398 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **active_pods** | **dict(str, str)** | ActivePods is a mapping of pod UID to node name. It is possible for multiple pods to be running for a single VMI during migration. | [optional] **conditions** | [**list[V1VirtualMachineInstanceCondition]**](V1VirtualMachineInstanceCondition.md) | Conditions are specific points in VirtualMachineInstance's pod runtime. | [optional] **current_cpu_topology** | [**V1CPUTopology**](V1CPUTopology.md) | CurrentCPUTopology specifies the current CPU topology used by the VM workload. Current topology may differ from the desired topology in the spec while CPU hotplug takes place. | [optional] +**device_status** | [**V1DeviceStatus**](V1DeviceStatus.md) | DeviceStatus reflects the state of devices requested in spec.domain.devices. This is an optional field available only when DRA feature gate is enabled This field will only be populated if one of the feature-gates GPUsWithDRA or HostDevicesWithDRA is enabled. This feature is in alpha. | [optional] **evacuation_node_name** | **str** | EvacuationNodeName is used to track the eviction process of a VMI. It stores the name of the node that we want to evacuate. It is meant to be used by KubeVirt core components only and can't be set or modified by users. | [optional] **fs_freeze_status** | **str** | FSFreezeStatus indicates whether a freeze operation was requested for the guest filesystem. It will be set to \"frozen\" if the request was made, or unset otherwise. This does not reflect the actual state of the guest filesystem. | [optional] **guest_os_info** | [**V1VirtualMachineInstanceGuestOSInfo**](V1VirtualMachineInstanceGuestOSInfo.md) | Guest OS Information | [optional] diff --git a/git_push.sh b/git_push.sh index c68ed7c4..62d24f15 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.6.0-beta.0-403-gdb1a15c9c1" + release_note="Auto-generated client v1.6.0-beta.0-414-ge93e609e3d" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 7a318a4f..42846391 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -75,6 +75,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/k8s_io_api_core_v1_pod_dns_config_option.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_pod_dns_config_option.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1PodDNSConfigOption.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_pod_resource_claim.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_pod_resource_claim.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1PodResourceClaim.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/k8s_io_api_core_v1_preferred_scheduling_term.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_k8s_io_api_core_v1_preferred_scheduling_term.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/K8sIoApiCoreV1PreferredSchedulingTerm.md @@ -300,6 +303,18 @@ 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_developer_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_developer_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DeveloperConfiguration.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_device_attribute.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_device_attribute.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DeviceAttribute.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_device_resource_claim_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_device_resource_claim_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DeviceResourceClaimStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_device_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_device_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DeviceStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_device_status_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_device_status_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DeviceStatusInfo.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_devices.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_devices.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Devices.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index e50838b1..adbd7fa3 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -32,6 +32,7 @@ from .models.k8s_io_api_core_v1_pod_anti_affinity import K8sIoApiCoreV1PodAntiAffinity from .models.k8s_io_api_core_v1_pod_dns_config import K8sIoApiCoreV1PodDNSConfig from .models.k8s_io_api_core_v1_pod_dns_config_option import K8sIoApiCoreV1PodDNSConfigOption +from .models.k8s_io_api_core_v1_pod_resource_claim import K8sIoApiCoreV1PodResourceClaim from .models.k8s_io_api_core_v1_preferred_scheduling_term import K8sIoApiCoreV1PreferredSchedulingTerm from .models.k8s_io_api_core_v1_resource_field_selector import K8sIoApiCoreV1ResourceFieldSelector from .models.k8s_io_api_core_v1_tcp_socket_action import K8sIoApiCoreV1TCPSocketAction @@ -107,6 +108,10 @@ from .models.v1_deprecated_interface_passt import V1DeprecatedInterfacePasst from .models.v1_deprecated_interface_slirp import V1DeprecatedInterfaceSlirp from .models.v1_developer_configuration import V1DeveloperConfiguration +from .models.v1_device_attribute import V1DeviceAttribute +from .models.v1_device_resource_claim_status import V1DeviceResourceClaimStatus +from .models.v1_device_status import V1DeviceStatus +from .models.v1_device_status_info import V1DeviceStatusInfo from .models.v1_devices import V1Devices from .models.v1_diag288_watchdog import V1Diag288Watchdog from .models.v1_disable_free_page_reporting import V1DisableFreePageReporting diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index ac91f3e2..28157f42 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.6.0-beta.0-403-gdb1a15c9c1/python' + self.user_agent = 'Swagger-Codegen/v1.6.0-beta.0-414-ge93e609e3d/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index b1a13b26..4bc3afed 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.6.0-beta.0-403-gdb1a15c9c1".\ + "SDK Package Version: v1.6.0-beta.0-414-ge93e609e3d".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 20d5cf3b..3dbe8410 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -32,6 +32,7 @@ from .k8s_io_api_core_v1_pod_anti_affinity import K8sIoApiCoreV1PodAntiAffinity from .k8s_io_api_core_v1_pod_dns_config import K8sIoApiCoreV1PodDNSConfig from .k8s_io_api_core_v1_pod_dns_config_option import K8sIoApiCoreV1PodDNSConfigOption +from .k8s_io_api_core_v1_pod_resource_claim import K8sIoApiCoreV1PodResourceClaim from .k8s_io_api_core_v1_preferred_scheduling_term import K8sIoApiCoreV1PreferredSchedulingTerm from .k8s_io_api_core_v1_resource_field_selector import K8sIoApiCoreV1ResourceFieldSelector from .k8s_io_api_core_v1_tcp_socket_action import K8sIoApiCoreV1TCPSocketAction @@ -107,6 +108,10 @@ from .v1_deprecated_interface_passt import V1DeprecatedInterfacePasst from .v1_deprecated_interface_slirp import V1DeprecatedInterfaceSlirp from .v1_developer_configuration import V1DeveloperConfiguration +from .v1_device_attribute import V1DeviceAttribute +from .v1_device_resource_claim_status import V1DeviceResourceClaimStatus +from .v1_device_status import V1DeviceStatus +from .v1_device_status_info import V1DeviceStatusInfo from .v1_devices import V1Devices from .v1_diag288_watchdog import V1Diag288Watchdog from .v1_disable_free_page_reporting import V1DisableFreePageReporting diff --git a/kubevirt/models/k8s_io_api_core_v1_pod_resource_claim.py b/kubevirt/models/k8s_io_api_core_v1_pod_resource_claim.py new file mode 100644 index 00000000..d2f8b73f --- /dev/null +++ b/kubevirt/models/k8s_io_api_core_v1_pod_resource_claim.py @@ -0,0 +1,182 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class K8sIoApiCoreV1PodResourceClaim(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'resource_claim_name': 'str', + 'resource_claim_template_name': 'str' + } + + attribute_map = { + 'name': 'name', + 'resource_claim_name': 'resourceClaimName', + 'resource_claim_template_name': 'resourceClaimTemplateName' + } + + def __init__(self, name='', resource_claim_name=None, resource_claim_template_name=None): + """ + K8sIoApiCoreV1PodResourceClaim - a model defined in Swagger + """ + + self._name = None + self._resource_claim_name = None + self._resource_claim_template_name = None + + self.name = name + if resource_claim_name is not None: + self.resource_claim_name = resource_claim_name + if resource_claim_template_name is not None: + self.resource_claim_template_name = resource_claim_template_name + + @property + def name(self): + """ + Gets the name of this K8sIoApiCoreV1PodResourceClaim. + Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL. + + :return: The name of this K8sIoApiCoreV1PodResourceClaim. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this K8sIoApiCoreV1PodResourceClaim. + Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL. + + :param name: The name of this K8sIoApiCoreV1PodResourceClaim. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def resource_claim_name(self): + """ + Gets the resource_claim_name of this K8sIoApiCoreV1PodResourceClaim. + ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. + + :return: The resource_claim_name of this K8sIoApiCoreV1PodResourceClaim. + :rtype: str + """ + return self._resource_claim_name + + @resource_claim_name.setter + def resource_claim_name(self, resource_claim_name): + """ + Sets the resource_claim_name of this K8sIoApiCoreV1PodResourceClaim. + ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. + + :param resource_claim_name: The resource_claim_name of this K8sIoApiCoreV1PodResourceClaim. + :type: str + """ + + self._resource_claim_name = resource_claim_name + + @property + def resource_claim_template_name(self): + """ + Gets the resource_claim_template_name of this K8sIoApiCoreV1PodResourceClaim. + ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. + + :return: The resource_claim_template_name of this K8sIoApiCoreV1PodResourceClaim. + :rtype: str + """ + return self._resource_claim_template_name + + @resource_claim_template_name.setter + def resource_claim_template_name(self, resource_claim_template_name): + """ + Sets the resource_claim_template_name of this K8sIoApiCoreV1PodResourceClaim. + ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. + + :param resource_claim_template_name: The resource_claim_template_name of this K8sIoApiCoreV1PodResourceClaim. + :type: str + """ + + self._resource_claim_template_name = resource_claim_template_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, K8sIoApiCoreV1PodResourceClaim): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_device_attribute.py b/kubevirt/models/v1_device_attribute.py new file mode 100644 index 00000000..e461234c --- /dev/null +++ b/kubevirt/models/v1_device_attribute.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DeviceAttribute(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'm_dev_uuid': 'str', + 'pci_address': 'str' + } + + attribute_map = { + 'm_dev_uuid': 'mDevUUID', + 'pci_address': 'pciAddress' + } + + def __init__(self, m_dev_uuid=None, pci_address=None): + """ + V1DeviceAttribute - a model defined in Swagger + """ + + self._m_dev_uuid = None + self._pci_address = None + + if m_dev_uuid is not None: + self.m_dev_uuid = m_dev_uuid + if pci_address is not None: + self.pci_address = pci_address + + @property + def m_dev_uuid(self): + """ + Gets the m_dev_uuid of this V1DeviceAttribute. + MDevUUID is the mediated device uuid of the allocated device + + :return: The m_dev_uuid of this V1DeviceAttribute. + :rtype: str + """ + return self._m_dev_uuid + + @m_dev_uuid.setter + def m_dev_uuid(self, m_dev_uuid): + """ + Sets the m_dev_uuid of this V1DeviceAttribute. + MDevUUID is the mediated device uuid of the allocated device + + :param m_dev_uuid: The m_dev_uuid of this V1DeviceAttribute. + :type: str + """ + + self._m_dev_uuid = m_dev_uuid + + @property + def pci_address(self): + """ + Gets the pci_address of this V1DeviceAttribute. + PCIAddress is the PCIe bus address of the allocated device + + :return: The pci_address of this V1DeviceAttribute. + :rtype: str + """ + return self._pci_address + + @pci_address.setter + def pci_address(self, pci_address): + """ + Sets the pci_address of this V1DeviceAttribute. + PCIAddress is the PCIe bus address of the allocated device + + :param pci_address: The pci_address of this V1DeviceAttribute. + :type: str + """ + + self._pci_address = pci_address + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1DeviceAttribute): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_device_resource_claim_status.py b/kubevirt/models/v1_device_resource_claim_status.py new file mode 100644 index 00000000..3dee52a7 --- /dev/null +++ b/kubevirt/models/v1_device_resource_claim_status.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DeviceResourceClaimStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'attributes': 'V1DeviceAttribute', + 'name': 'str', + 'resource_claim_name': 'str' + } + + attribute_map = { + 'attributes': 'attributes', + 'name': 'name', + 'resource_claim_name': 'resourceClaimName' + } + + def __init__(self, attributes=None, name=None, resource_claim_name=None): + """ + V1DeviceResourceClaimStatus - a model defined in Swagger + """ + + self._attributes = None + self._name = None + self._resource_claim_name = None + + if attributes is not None: + self.attributes = attributes + if name is not None: + self.name = name + if resource_claim_name is not None: + self.resource_claim_name = resource_claim_name + + @property + def attributes(self): + """ + Gets the attributes of this V1DeviceResourceClaimStatus. + Attributes are properties of the device that could be used by kubevirt and other copmonents to learn more about the device, like pciAddress or mdevUUID + + :return: The attributes of this V1DeviceResourceClaimStatus. + :rtype: V1DeviceAttribute + """ + return self._attributes + + @attributes.setter + def attributes(self, attributes): + """ + Sets the attributes of this V1DeviceResourceClaimStatus. + Attributes are properties of the device that could be used by kubevirt and other copmonents to learn more about the device, like pciAddress or mdevUUID + + :param attributes: The attributes of this V1DeviceResourceClaimStatus. + :type: V1DeviceAttribute + """ + + self._attributes = attributes + + @property + def name(self): + """ + Gets the name of this V1DeviceResourceClaimStatus. + Name is the name of actual device on the host provisioned by the driver as reflected in resourceclaim.status + + :return: The name of this V1DeviceResourceClaimStatus. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1DeviceResourceClaimStatus. + Name is the name of actual device on the host provisioned by the driver as reflected in resourceclaim.status + + :param name: The name of this V1DeviceResourceClaimStatus. + :type: str + """ + + self._name = name + + @property + def resource_claim_name(self): + """ + Gets the resource_claim_name of this V1DeviceResourceClaimStatus. + ResourceClaimName is the name of the resource claims object used to provision this resource + + :return: The resource_claim_name of this V1DeviceResourceClaimStatus. + :rtype: str + """ + return self._resource_claim_name + + @resource_claim_name.setter + def resource_claim_name(self, resource_claim_name): + """ + Sets the resource_claim_name of this V1DeviceResourceClaimStatus. + ResourceClaimName is the name of the resource claims object used to provision this resource + + :param resource_claim_name: The resource_claim_name of this V1DeviceResourceClaimStatus. + :type: str + """ + + self._resource_claim_name = resource_claim_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1DeviceResourceClaimStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_device_status.py b/kubevirt/models/v1_device_status.py new file mode 100644 index 00000000..9c14822e --- /dev/null +++ b/kubevirt/models/v1_device_status.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DeviceStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'gpu_statuses': 'list[V1DeviceStatusInfo]', + 'host_device_statuses': 'list[V1DeviceStatusInfo]' + } + + attribute_map = { + 'gpu_statuses': 'gpuStatuses', + 'host_device_statuses': 'hostDeviceStatuses' + } + + def __init__(self, gpu_statuses=None, host_device_statuses=None): + """ + V1DeviceStatus - a model defined in Swagger + """ + + self._gpu_statuses = None + self._host_device_statuses = None + + if gpu_statuses is not None: + self.gpu_statuses = gpu_statuses + if host_device_statuses is not None: + self.host_device_statuses = host_device_statuses + + @property + def gpu_statuses(self): + """ + Gets the gpu_statuses of this V1DeviceStatus. + GPUStatuses reflects the state of GPUs requested in spec.domain.devices.gpus + + :return: The gpu_statuses of this V1DeviceStatus. + :rtype: list[V1DeviceStatusInfo] + """ + return self._gpu_statuses + + @gpu_statuses.setter + def gpu_statuses(self, gpu_statuses): + """ + Sets the gpu_statuses of this V1DeviceStatus. + GPUStatuses reflects the state of GPUs requested in spec.domain.devices.gpus + + :param gpu_statuses: The gpu_statuses of this V1DeviceStatus. + :type: list[V1DeviceStatusInfo] + """ + + self._gpu_statuses = gpu_statuses + + @property + def host_device_statuses(self): + """ + Gets the host_device_statuses of this V1DeviceStatus. + HostDeviceStatuses reflects the state of GPUs requested in spec.domain.devices.hostDevices DRA + + :return: The host_device_statuses of this V1DeviceStatus. + :rtype: list[V1DeviceStatusInfo] + """ + return self._host_device_statuses + + @host_device_statuses.setter + def host_device_statuses(self, host_device_statuses): + """ + Sets the host_device_statuses of this V1DeviceStatus. + HostDeviceStatuses reflects the state of GPUs requested in spec.domain.devices.hostDevices DRA + + :param host_device_statuses: The host_device_statuses of this V1DeviceStatus. + :type: list[V1DeviceStatusInfo] + """ + + self._host_device_statuses = host_device_statuses + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1DeviceStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_device_status_info.py b/kubevirt/models/v1_device_status_info.py new file mode 100644 index 00000000..2ff76667 --- /dev/null +++ b/kubevirt/models/v1_device_status_info.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DeviceStatusInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'device_resource_claim_status': 'V1DeviceResourceClaimStatus', + 'name': 'str' + } + + attribute_map = { + 'device_resource_claim_status': 'deviceResourceClaimStatus', + 'name': 'name' + } + + def __init__(self, device_resource_claim_status=None, name=''): + """ + V1DeviceStatusInfo - a model defined in Swagger + """ + + self._device_resource_claim_status = None + self._name = None + + if device_resource_claim_status is not None: + self.device_resource_claim_status = device_resource_claim_status + self.name = name + + @property + def device_resource_claim_status(self): + """ + Gets the device_resource_claim_status of this V1DeviceStatusInfo. + DeviceResourceClaimStatus reflects the DRA related information for the device + + :return: The device_resource_claim_status of this V1DeviceStatusInfo. + :rtype: V1DeviceResourceClaimStatus + """ + return self._device_resource_claim_status + + @device_resource_claim_status.setter + def device_resource_claim_status(self, device_resource_claim_status): + """ + Sets the device_resource_claim_status of this V1DeviceStatusInfo. + DeviceResourceClaimStatus reflects the DRA related information for the device + + :param device_resource_claim_status: The device_resource_claim_status of this V1DeviceStatusInfo. + :type: V1DeviceResourceClaimStatus + """ + + self._device_resource_claim_status = device_resource_claim_status + + @property + def name(self): + """ + Gets the name of this V1DeviceStatusInfo. + Name of the device as specified in spec.domain.devices.gpus.name or spec.domain.devices.hostDevices.name + + :return: The name of this V1DeviceStatusInfo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1DeviceStatusInfo. + Name of the device as specified in spec.domain.devices.gpus.name or spec.domain.devices.hostDevices.name + + :param name: The name of this V1DeviceStatusInfo. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1DeviceStatusInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_gpu.py b/kubevirt/models/v1_gpu.py index 21d969ca..94df61f8 100644 --- a/kubevirt/models/v1_gpu.py +++ b/kubevirt/models/v1_gpu.py @@ -31,40 +31,75 @@ class V1GPU(object): and the value is json key in definition. """ swagger_types = { + 'claim_name': 'str', 'device_name': 'str', 'name': 'str', + 'request_name': 'str', 'tag': 'str', 'virtual_gpu_options': 'V1VGPUOptions' } attribute_map = { + 'claim_name': 'claimName', 'device_name': 'deviceName', 'name': 'name', + 'request_name': 'requestName', 'tag': 'tag', 'virtual_gpu_options': 'virtualGPUOptions' } - def __init__(self, device_name='', name='', tag=None, virtual_gpu_options=None): + def __init__(self, claim_name=None, device_name=None, name='', request_name=None, tag=None, virtual_gpu_options=None): """ V1GPU - a model defined in Swagger """ + self._claim_name = None self._device_name = None self._name = None + self._request_name = None self._tag = None self._virtual_gpu_options = None - self.device_name = device_name + if claim_name is not None: + self.claim_name = claim_name + if device_name is not None: + self.device_name = device_name self.name = name + if request_name is not None: + self.request_name = request_name if tag is not None: self.tag = tag if virtual_gpu_options is not None: self.virtual_gpu_options = virtual_gpu_options + @property + def claim_name(self): + """ + Gets the claim_name of this V1GPU. + ClaimName needs to be provided from the list vmi.spec.resourceClaims[].name where this device is allocated + + :return: The claim_name of this V1GPU. + :rtype: str + """ + return self._claim_name + + @claim_name.setter + def claim_name(self, claim_name): + """ + Sets the claim_name of this V1GPU. + ClaimName needs to be provided from the list vmi.spec.resourceClaims[].name where this device is allocated + + :param claim_name: The claim_name of this V1GPU. + :type: str + """ + + self._claim_name = claim_name + @property def device_name(self): """ Gets the device_name of this V1GPU. + DeviceName is the name of the device provisioned by device-plugins :return: The device_name of this V1GPU. :rtype: str @@ -75,12 +110,11 @@ def device_name(self): def device_name(self, device_name): """ Sets the device_name of this V1GPU. + DeviceName is the name of the device provisioned by device-plugins :param device_name: The device_name of this V1GPU. :type: str """ - if device_name is None: - raise ValueError("Invalid value for `device_name`, must not be `None`") self._device_name = device_name @@ -109,6 +143,29 @@ def name(self, name): self._name = name + @property + def request_name(self): + """ + Gets the request_name of this V1GPU. + RequestName needs to be provided from resourceClaim.spec.devices.requests[].name where this device is requested + + :return: The request_name of this V1GPU. + :rtype: str + """ + return self._request_name + + @request_name.setter + def request_name(self, request_name): + """ + Sets the request_name of this V1GPU. + RequestName needs to be provided from resourceClaim.spec.devices.requests[].name where this device is requested + + :param request_name: The request_name of this V1GPU. + :type: str + """ + + self._request_name = request_name + @property def tag(self): """ diff --git a/kubevirt/models/v1_host_device.py b/kubevirt/models/v1_host_device.py index 7ae09ab1..dc30c915 100644 --- a/kubevirt/models/v1_host_device.py +++ b/kubevirt/models/v1_host_device.py @@ -31,36 +31,70 @@ class V1HostDevice(object): and the value is json key in definition. """ swagger_types = { + 'claim_name': 'str', 'device_name': 'str', 'name': 'str', + 'request_name': 'str', 'tag': 'str' } attribute_map = { + 'claim_name': 'claimName', 'device_name': 'deviceName', 'name': 'name', + 'request_name': 'requestName', 'tag': 'tag' } - def __init__(self, device_name='', name='', tag=None): + def __init__(self, claim_name=None, device_name=None, name='', request_name=None, tag=None): """ V1HostDevice - a model defined in Swagger """ + self._claim_name = None self._device_name = None self._name = None + self._request_name = None self._tag = None - self.device_name = device_name + if claim_name is not None: + self.claim_name = claim_name + if device_name is not None: + self.device_name = device_name self.name = name + if request_name is not None: + self.request_name = request_name if tag is not None: self.tag = tag + @property + def claim_name(self): + """ + Gets the claim_name of this V1HostDevice. + ClaimName needs to be provided from the list vmi.spec.resourceClaims[].name where this device is allocated + + :return: The claim_name of this V1HostDevice. + :rtype: str + """ + return self._claim_name + + @claim_name.setter + def claim_name(self, claim_name): + """ + Sets the claim_name of this V1HostDevice. + ClaimName needs to be provided from the list vmi.spec.resourceClaims[].name where this device is allocated + + :param claim_name: The claim_name of this V1HostDevice. + :type: str + """ + + self._claim_name = claim_name + @property def device_name(self): """ Gets the device_name of this V1HostDevice. - DeviceName is the resource name of the host device exposed by a device plugin + DeviceName is the name of the device provisioned by device-plugins :return: The device_name of this V1HostDevice. :rtype: str @@ -71,13 +105,11 @@ def device_name(self): def device_name(self, device_name): """ Sets the device_name of this V1HostDevice. - DeviceName is the resource name of the host device exposed by a device plugin + DeviceName is the name of the device provisioned by device-plugins :param device_name: The device_name of this V1HostDevice. :type: str """ - if device_name is None: - raise ValueError("Invalid value for `device_name`, must not be `None`") self._device_name = device_name @@ -104,6 +136,29 @@ def name(self, name): self._name = name + @property + def request_name(self): + """ + Gets the request_name of this V1HostDevice. + RequestName needs to be provided from resourceClaim.spec.devices.requests[].name where this device is requested + + :return: The request_name of this V1HostDevice. + :rtype: str + """ + return self._request_name + + @request_name.setter + def request_name(self, request_name): + """ + Sets the request_name of this V1HostDevice. + RequestName needs to be provided from resourceClaim.spec.devices.requests[].name where this device is requested + + :param request_name: The request_name of this V1HostDevice. + :type: str + """ + + self._request_name = request_name + @property def tag(self): """ diff --git a/kubevirt/models/v1_virtual_machine_instance_spec.py b/kubevirt/models/v1_virtual_machine_instance_spec.py index abdd7b17..99f78652 100644 --- a/kubevirt/models/v1_virtual_machine_instance_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_spec.py @@ -44,6 +44,7 @@ class V1VirtualMachineInstanceSpec(object): 'node_selector': 'dict(str, str)', 'priority_class_name': 'str', 'readiness_probe': 'V1Probe', + 'resource_claims': 'list[K8sIoApiCoreV1PodResourceClaim]', 'scheduler_name': 'str', 'start_strategy': 'str', 'subdomain': 'str', @@ -67,6 +68,7 @@ class V1VirtualMachineInstanceSpec(object): 'node_selector': 'nodeSelector', 'priority_class_name': 'priorityClassName', 'readiness_probe': 'readinessProbe', + 'resource_claims': 'resourceClaims', 'scheduler_name': 'schedulerName', 'start_strategy': 'startStrategy', 'subdomain': 'subdomain', @@ -76,7 +78,7 @@ class V1VirtualMachineInstanceSpec(object): 'volumes': 'volumes' } - def __init__(self, access_credentials=None, affinity=None, architecture=None, dns_config=None, dns_policy=None, domain=None, eviction_strategy=None, hostname=None, liveness_probe=None, networks=None, node_selector=None, priority_class_name=None, readiness_probe=None, scheduler_name=None, start_strategy=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, topology_spread_constraints=None, volumes=None): + def __init__(self, access_credentials=None, affinity=None, architecture=None, dns_config=None, dns_policy=None, domain=None, eviction_strategy=None, hostname=None, liveness_probe=None, networks=None, node_selector=None, priority_class_name=None, readiness_probe=None, resource_claims=None, scheduler_name=None, start_strategy=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, topology_spread_constraints=None, volumes=None): """ V1VirtualMachineInstanceSpec - a model defined in Swagger """ @@ -94,6 +96,7 @@ def __init__(self, access_credentials=None, affinity=None, architecture=None, dn self._node_selector = None self._priority_class_name = None self._readiness_probe = None + self._resource_claims = None self._scheduler_name = None self._start_strategy = None self._subdomain = None @@ -127,6 +130,8 @@ def __init__(self, access_credentials=None, affinity=None, architecture=None, dn self.priority_class_name = priority_class_name if readiness_probe is not None: self.readiness_probe = readiness_probe + if resource_claims is not None: + self.resource_claims = resource_claims if scheduler_name is not None: self.scheduler_name = scheduler_name if start_strategy is not None: @@ -449,6 +454,29 @@ def readiness_probe(self, readiness_probe): self._readiness_probe = readiness_probe + @property + def resource_claims(self): + """ + Gets the resource_claims of this V1VirtualMachineInstanceSpec. + ResourceClaims define which ResourceClaims must be allocated and reserved before the VMI, hence virt-launcher pod is allowed to start. The resources will be made available to the domain which consumes them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate in kubernetes https://kubernetes.io/docs/concepts/scheduling-eviction/dynamic-resource-allocation/ This field should only be configured if one of the feature-gates GPUsWithDRA or HostDevicesWithDRA is enabled. This feature is in alpha. + + :return: The resource_claims of this V1VirtualMachineInstanceSpec. + :rtype: list[K8sIoApiCoreV1PodResourceClaim] + """ + return self._resource_claims + + @resource_claims.setter + def resource_claims(self, resource_claims): + """ + Sets the resource_claims of this V1VirtualMachineInstanceSpec. + ResourceClaims define which ResourceClaims must be allocated and reserved before the VMI, hence virt-launcher pod is allowed to start. The resources will be made available to the domain which consumes them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate in kubernetes https://kubernetes.io/docs/concepts/scheduling-eviction/dynamic-resource-allocation/ This field should only be configured if one of the feature-gates GPUsWithDRA or HostDevicesWithDRA is enabled. This feature is in alpha. + + :param resource_claims: The resource_claims of this V1VirtualMachineInstanceSpec. + :type: list[K8sIoApiCoreV1PodResourceClaim] + """ + + self._resource_claims = resource_claims + @property def scheduler_name(self): """ diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index 4977b584..3d25f505 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -35,6 +35,7 @@ class V1VirtualMachineInstanceStatus(object): 'active_pods': 'dict(str, str)', 'conditions': 'list[V1VirtualMachineInstanceCondition]', 'current_cpu_topology': 'V1CPUTopology', + 'device_status': 'V1DeviceStatus', 'evacuation_node_name': 'str', 'fs_freeze_status': 'str', 'guest_os_info': 'V1VirtualMachineInstanceGuestOSInfo', @@ -64,6 +65,7 @@ class V1VirtualMachineInstanceStatus(object): 'active_pods': 'activePods', 'conditions': 'conditions', 'current_cpu_topology': 'currentCPUTopology', + 'device_status': 'deviceStatus', 'evacuation_node_name': 'evacuationNodeName', 'fs_freeze_status': 'fsFreezeStatus', 'guest_os_info': 'guestOSInfo', @@ -88,7 +90,7 @@ class V1VirtualMachineInstanceStatus(object): 'volume_status': 'volumeStatus' } - def __init__(self, vsockcid=None, active_pods=None, conditions=None, current_cpu_topology=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, kernel_boot_status=None, launcher_container_image_version=None, machine=None, memory=None, migrated_volumes=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=0, selinux_context=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): + def __init__(self, vsockcid=None, active_pods=None, conditions=None, current_cpu_topology=None, device_status=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, kernel_boot_status=None, launcher_container_image_version=None, machine=None, memory=None, migrated_volumes=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=0, selinux_context=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ @@ -97,6 +99,7 @@ def __init__(self, vsockcid=None, active_pods=None, conditions=None, current_cpu self._active_pods = None self._conditions = None self._current_cpu_topology = None + self._device_status = None self._evacuation_node_name = None self._fs_freeze_status = None self._guest_os_info = None @@ -128,6 +131,8 @@ def __init__(self, vsockcid=None, active_pods=None, conditions=None, current_cpu self.conditions = conditions if current_cpu_topology is not None: self.current_cpu_topology = current_cpu_topology + if device_status is not None: + self.device_status = device_status if evacuation_node_name is not None: self.evacuation_node_name = evacuation_node_name if fs_freeze_status is not None: @@ -265,6 +270,29 @@ def current_cpu_topology(self, current_cpu_topology): self._current_cpu_topology = current_cpu_topology + @property + def device_status(self): + """ + Gets the device_status of this V1VirtualMachineInstanceStatus. + DeviceStatus reflects the state of devices requested in spec.domain.devices. This is an optional field available only when DRA feature gate is enabled This field will only be populated if one of the feature-gates GPUsWithDRA or HostDevicesWithDRA is enabled. This feature is in alpha. + + :return: The device_status of this V1VirtualMachineInstanceStatus. + :rtype: V1DeviceStatus + """ + return self._device_status + + @device_status.setter + def device_status(self, device_status): + """ + Sets the device_status of this V1VirtualMachineInstanceStatus. + DeviceStatus reflects the state of devices requested in spec.domain.devices. This is an optional field available only when DRA feature gate is enabled This field will only be populated if one of the feature-gates GPUsWithDRA or HostDevicesWithDRA is enabled. This feature is in alpha. + + :param device_status: The device_status of this V1VirtualMachineInstanceStatus. + :type: V1DeviceStatus + """ + + self._device_status = device_status + @property def evacuation_node_name(self): """ diff --git a/setup.py b/setup.py index 9e15ec1e..ae5b38ca 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.6.0-beta.0-403-gdb1a15c9c1" +VERSION = "v1.6.0-beta.0-414-ge93e609e3d" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 3ce1ed3e..bfa2adae 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.6.0-beta.0-403-gdb1a15c9c1" +"packageVersion": "v1.6.0-beta.0-414-ge93e609e3d" } diff --git a/test/test_k8s_io_api_core_v1_pod_resource_claim.py b/test/test_k8s_io_api_core_v1_pod_resource_claim.py new file mode 100644 index 00000000..4e38898e --- /dev/null +++ b/test/test_k8s_io_api_core_v1_pod_resource_claim.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.k8s_io_api_core_v1_pod_resource_claim import K8sIoApiCoreV1PodResourceClaim + + +class TestK8sIoApiCoreV1PodResourceClaim(unittest.TestCase): + """ K8sIoApiCoreV1PodResourceClaim unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1PodResourceClaim(self): + """ + Test K8sIoApiCoreV1PodResourceClaim + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_pod_resource_claim.K8sIoApiCoreV1PodResourceClaim() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_device_attribute.py b/test/test_v1_device_attribute.py new file mode 100644 index 00000000..0373ef76 --- /dev/null +++ b/test/test_v1_device_attribute.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_device_attribute import V1DeviceAttribute + + +class TestV1DeviceAttribute(unittest.TestCase): + """ V1DeviceAttribute unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DeviceAttribute(self): + """ + Test V1DeviceAttribute + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_device_attribute.V1DeviceAttribute() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_device_resource_claim_status.py b/test/test_v1_device_resource_claim_status.py new file mode 100644 index 00000000..02221ab1 --- /dev/null +++ b/test/test_v1_device_resource_claim_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_device_resource_claim_status import V1DeviceResourceClaimStatus + + +class TestV1DeviceResourceClaimStatus(unittest.TestCase): + """ V1DeviceResourceClaimStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DeviceResourceClaimStatus(self): + """ + Test V1DeviceResourceClaimStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_device_resource_claim_status.V1DeviceResourceClaimStatus() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_device_status.py b/test/test_v1_device_status.py new file mode 100644 index 00000000..b264b5d6 --- /dev/null +++ b/test/test_v1_device_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_device_status import V1DeviceStatus + + +class TestV1DeviceStatus(unittest.TestCase): + """ V1DeviceStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DeviceStatus(self): + """ + Test V1DeviceStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_device_status.V1DeviceStatus() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_device_status_info.py b/test/test_v1_device_status_info.py new file mode 100644 index 00000000..e8510f6b --- /dev/null +++ b/test/test_v1_device_status_info.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_device_status_info import V1DeviceStatusInfo + + +class TestV1DeviceStatusInfo(unittest.TestCase): + """ V1DeviceStatusInfo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DeviceStatusInfo(self): + """ + Test V1DeviceStatusInfo + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_device_status_info.V1DeviceStatusInfo() + pass + + +if __name__ == '__main__': + unittest.main() From 07efe1da90c59521ad797210271142767798657b Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Tue, 1 Jul 2025 11:51:23 +0000 Subject: [PATCH 469/521] Client Python update by KubeVirt Prow build 1940012094380314624 --- README.md | 2 +- ...V1VirtualMachineInstanceMigrationStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...rtual_machine_instance_migration_status.py | 34 +++++++++++++++++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 38 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 7b4b66c3..77d9664c 100644 --- a/README.md +++ b/README.md @@ -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.6.0-beta.0-414-ge93e609e3d +- Package version: v1.6.0-beta.0-421-g988e79c774 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceMigrationStatus.md b/docs/V1VirtualMachineInstanceMigrationStatus.md index 9d8be201..54613ff4 100644 --- a/docs/V1VirtualMachineInstanceMigrationStatus.md +++ b/docs/V1VirtualMachineInstanceMigrationStatus.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **migration_state** | [**V1VirtualMachineInstanceMigrationState**](V1VirtualMachineInstanceMigrationState.md) | Represents the status of a live migration | [optional] **phase** | **str** | | [optional] **phase_transition_timestamps** | [**list[V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp]**](V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp.md) | PhaseTransitionTimestamp is the timestamp of when the last phase change occurred | [optional] +**synchronization_address** | **str** | The synchronization address one can use to connect to the synchronization controller, includes the port | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 62d24f15..4b9b9e35 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.6.0-beta.0-414-ge93e609e3d" + release_note="Auto-generated client v1.6.0-beta.0-421-g988e79c774" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 28157f42..8c4a8648 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.6.0-beta.0-414-ge93e609e3d/python' + self.user_agent = 'Swagger-Codegen/v1.6.0-beta.0-421-g988e79c774/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 4bc3afed..1325e2d0 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.6.0-beta.0-414-ge93e609e3d".\ + "SDK Package Version: v1.6.0-beta.0-421-g988e79c774".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_status.py b/kubevirt/models/v1_virtual_machine_instance_migration_status.py index f088507a..f625e798 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_status.py @@ -34,17 +34,19 @@ class V1VirtualMachineInstanceMigrationStatus(object): 'conditions': 'list[V1VirtualMachineInstanceMigrationCondition]', 'migration_state': 'V1VirtualMachineInstanceMigrationState', 'phase': 'str', - 'phase_transition_timestamps': 'list[V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp]' + 'phase_transition_timestamps': 'list[V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp]', + 'synchronization_address': 'str' } attribute_map = { 'conditions': 'conditions', 'migration_state': 'migrationState', 'phase': 'phase', - 'phase_transition_timestamps': 'phaseTransitionTimestamps' + 'phase_transition_timestamps': 'phaseTransitionTimestamps', + 'synchronization_address': 'synchronizationAddress' } - def __init__(self, conditions=None, migration_state=None, phase=None, phase_transition_timestamps=None): + def __init__(self, conditions=None, migration_state=None, phase=None, phase_transition_timestamps=None, synchronization_address=None): """ V1VirtualMachineInstanceMigrationStatus - a model defined in Swagger """ @@ -53,6 +55,7 @@ def __init__(self, conditions=None, migration_state=None, phase=None, phase_tran self._migration_state = None self._phase = None self._phase_transition_timestamps = None + self._synchronization_address = None if conditions is not None: self.conditions = conditions @@ -62,6 +65,8 @@ def __init__(self, conditions=None, migration_state=None, phase=None, phase_tran self.phase = phase if phase_transition_timestamps is not None: self.phase_transition_timestamps = phase_transition_timestamps + if synchronization_address is not None: + self.synchronization_address = synchronization_address @property def conditions(self): @@ -151,6 +156,29 @@ def phase_transition_timestamps(self, phase_transition_timestamps): self._phase_transition_timestamps = phase_transition_timestamps + @property + def synchronization_address(self): + """ + Gets the synchronization_address of this V1VirtualMachineInstanceMigrationStatus. + The synchronization address one can use to connect to the synchronization controller, includes the port + + :return: The synchronization_address of this V1VirtualMachineInstanceMigrationStatus. + :rtype: str + """ + return self._synchronization_address + + @synchronization_address.setter + def synchronization_address(self, synchronization_address): + """ + Sets the synchronization_address of this V1VirtualMachineInstanceMigrationStatus. + The synchronization address one can use to connect to the synchronization controller, includes the port + + :param synchronization_address: The synchronization_address of this V1VirtualMachineInstanceMigrationStatus. + :type: str + """ + + self._synchronization_address = synchronization_address + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index ae5b38ca..2c1126d9 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.6.0-beta.0-414-ge93e609e3d" +VERSION = "v1.6.0-beta.0-421-g988e79c774" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index bfa2adae..6063675a 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.6.0-beta.0-414-ge93e609e3d" +"packageVersion": "v1.6.0-beta.0-421-g988e79c774" } From e9589e31a133efe4a34ef321877cb0aa5d46e994 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 2 Jul 2025 17:03:12 +0000 Subject: [PATCH 470/521] Client Python update by KubeVirt Prow build 1940453479864602624 --- README.md | 2 +- docs/V1KubeVirtStatus.md | 2 +- ...V1VirtualMachineInstanceMigrationStatus.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_kube_virt_status.py | 34 ++++++++--------- ...rtual_machine_instance_migration_status.py | 38 +++++++++---------- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 44 insertions(+), 44 deletions(-) diff --git a/README.md b/README.md index 77d9664c..920b2b29 100644 --- a/README.md +++ b/README.md @@ -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.6.0-beta.0-421-g988e79c774 +- Package version: v1.6.0-beta.0-431-gca9dca1631 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1KubeVirtStatus.md b/docs/V1KubeVirtStatus.md index 1e242ab0..114ba329 100644 --- a/docs/V1KubeVirtStatus.md +++ b/docs/V1KubeVirtStatus.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **operator_version** | **str** | | [optional] **outdated_virtual_machine_instance_workloads** | **int** | | [optional] **phase** | **str** | | [optional] -**synchronization_address** | **str** | | [optional] +**synchronization_addresses** | **list[str]** | | [optional] **target_deployment_config** | **str** | | [optional] **target_deployment_id** | **str** | | [optional] **target_kube_virt_registry** | **str** | | [optional] diff --git a/docs/V1VirtualMachineInstanceMigrationStatus.md b/docs/V1VirtualMachineInstanceMigrationStatus.md index 54613ff4..538f1f9c 100644 --- a/docs/V1VirtualMachineInstanceMigrationStatus.md +++ b/docs/V1VirtualMachineInstanceMigrationStatus.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **migration_state** | [**V1VirtualMachineInstanceMigrationState**](V1VirtualMachineInstanceMigrationState.md) | Represents the status of a live migration | [optional] **phase** | **str** | | [optional] **phase_transition_timestamps** | [**list[V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp]**](V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp.md) | PhaseTransitionTimestamp is the timestamp of when the last phase change occurred | [optional] -**synchronization_address** | **str** | The synchronization address one can use to connect to the synchronization controller, includes the port | [optional] +**synchronization_addresses** | **list[str]** | The synchronization addresses one can use to connect to the synchronization controller, includes the port, if multiple addresses are available, the first one is reported in the synchronizationAddress field. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 4b9b9e35..c6bf767a 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.6.0-beta.0-421-g988e79c774" + release_note="Auto-generated client v1.6.0-beta.0-431-gca9dca1631" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 8c4a8648..d09377a6 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.6.0-beta.0-421-g988e79c774/python' + self.user_agent = 'Swagger-Codegen/v1.6.0-beta.0-431-gca9dca1631/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 1325e2d0..24b08a9d 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.6.0-beta.0-421-g988e79c774".\ + "SDK Package Version: v1.6.0-beta.0-431-gca9dca1631".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_kube_virt_status.py b/kubevirt/models/v1_kube_virt_status.py index 20f560cf..6763966a 100644 --- a/kubevirt/models/v1_kube_virt_status.py +++ b/kubevirt/models/v1_kube_virt_status.py @@ -42,7 +42,7 @@ class V1KubeVirtStatus(object): 'operator_version': 'str', 'outdated_virtual_machine_instance_workloads': 'int', 'phase': 'str', - 'synchronization_address': 'str', + 'synchronization_addresses': 'list[str]', 'target_deployment_config': 'str', 'target_deployment_id': 'str', 'target_kube_virt_registry': 'str', @@ -61,14 +61,14 @@ class V1KubeVirtStatus(object): 'operator_version': 'operatorVersion', 'outdated_virtual_machine_instance_workloads': 'outdatedVirtualMachineInstanceWorkloads', 'phase': 'phase', - 'synchronization_address': 'synchronizationAddress', + 'synchronization_addresses': 'synchronizationAddresses', 'target_deployment_config': 'targetDeploymentConfig', 'target_deployment_id': 'targetDeploymentID', 'target_kube_virt_registry': 'targetKubeVirtRegistry', 'target_kube_virt_version': 'targetKubeVirtVersion' } - def __init__(self, conditions=None, default_architecture=None, generations=None, observed_deployment_config=None, observed_deployment_id=None, observed_generation=None, observed_kube_virt_registry=None, observed_kube_virt_version=None, operator_version=None, outdated_virtual_machine_instance_workloads=None, phase=None, synchronization_address=None, target_deployment_config=None, target_deployment_id=None, target_kube_virt_registry=None, target_kube_virt_version=None): + def __init__(self, conditions=None, default_architecture=None, generations=None, observed_deployment_config=None, observed_deployment_id=None, observed_generation=None, observed_kube_virt_registry=None, observed_kube_virt_version=None, operator_version=None, outdated_virtual_machine_instance_workloads=None, phase=None, synchronization_addresses=None, target_deployment_config=None, target_deployment_id=None, target_kube_virt_registry=None, target_kube_virt_version=None): """ V1KubeVirtStatus - a model defined in Swagger """ @@ -84,7 +84,7 @@ def __init__(self, conditions=None, default_architecture=None, generations=None, self._operator_version = None self._outdated_virtual_machine_instance_workloads = None self._phase = None - self._synchronization_address = None + self._synchronization_addresses = None self._target_deployment_config = None self._target_deployment_id = None self._target_kube_virt_registry = None @@ -112,8 +112,8 @@ def __init__(self, conditions=None, default_architecture=None, generations=None, self.outdated_virtual_machine_instance_workloads = outdated_virtual_machine_instance_workloads if phase is not None: self.phase = phase - if synchronization_address is not None: - self.synchronization_address = synchronization_address + if synchronization_addresses is not None: + self.synchronization_addresses = synchronization_addresses if target_deployment_config is not None: self.target_deployment_config = target_deployment_config if target_deployment_id is not None: @@ -355,25 +355,25 @@ def phase(self, phase): self._phase = phase @property - def synchronization_address(self): + def synchronization_addresses(self): """ - Gets the synchronization_address of this V1KubeVirtStatus. + Gets the synchronization_addresses of this V1KubeVirtStatus. - :return: The synchronization_address of this V1KubeVirtStatus. - :rtype: str + :return: The synchronization_addresses of this V1KubeVirtStatus. + :rtype: list[str] """ - return self._synchronization_address + return self._synchronization_addresses - @synchronization_address.setter - def synchronization_address(self, synchronization_address): + @synchronization_addresses.setter + def synchronization_addresses(self, synchronization_addresses): """ - Sets the synchronization_address of this V1KubeVirtStatus. + Sets the synchronization_addresses of this V1KubeVirtStatus. - :param synchronization_address: The synchronization_address of this V1KubeVirtStatus. - :type: str + :param synchronization_addresses: The synchronization_addresses of this V1KubeVirtStatus. + :type: list[str] """ - self._synchronization_address = synchronization_address + self._synchronization_addresses = synchronization_addresses @property def target_deployment_config(self): diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_status.py b/kubevirt/models/v1_virtual_machine_instance_migration_status.py index f625e798..3bb3cb50 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_status.py @@ -35,7 +35,7 @@ class V1VirtualMachineInstanceMigrationStatus(object): 'migration_state': 'V1VirtualMachineInstanceMigrationState', 'phase': 'str', 'phase_transition_timestamps': 'list[V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp]', - 'synchronization_address': 'str' + 'synchronization_addresses': 'list[str]' } attribute_map = { @@ -43,10 +43,10 @@ class V1VirtualMachineInstanceMigrationStatus(object): 'migration_state': 'migrationState', 'phase': 'phase', 'phase_transition_timestamps': 'phaseTransitionTimestamps', - 'synchronization_address': 'synchronizationAddress' + 'synchronization_addresses': 'synchronizationAddresses' } - def __init__(self, conditions=None, migration_state=None, phase=None, phase_transition_timestamps=None, synchronization_address=None): + def __init__(self, conditions=None, migration_state=None, phase=None, phase_transition_timestamps=None, synchronization_addresses=None): """ V1VirtualMachineInstanceMigrationStatus - a model defined in Swagger """ @@ -55,7 +55,7 @@ def __init__(self, conditions=None, migration_state=None, phase=None, phase_tran self._migration_state = None self._phase = None self._phase_transition_timestamps = None - self._synchronization_address = None + self._synchronization_addresses = None if conditions is not None: self.conditions = conditions @@ -65,8 +65,8 @@ def __init__(self, conditions=None, migration_state=None, phase=None, phase_tran self.phase = phase if phase_transition_timestamps is not None: self.phase_transition_timestamps = phase_transition_timestamps - if synchronization_address is not None: - self.synchronization_address = synchronization_address + if synchronization_addresses is not None: + self.synchronization_addresses = synchronization_addresses @property def conditions(self): @@ -157,27 +157,27 @@ def phase_transition_timestamps(self, phase_transition_timestamps): self._phase_transition_timestamps = phase_transition_timestamps @property - def synchronization_address(self): + def synchronization_addresses(self): """ - Gets the synchronization_address of this V1VirtualMachineInstanceMigrationStatus. - The synchronization address one can use to connect to the synchronization controller, includes the port + Gets the synchronization_addresses of this V1VirtualMachineInstanceMigrationStatus. + The synchronization addresses one can use to connect to the synchronization controller, includes the port, if multiple addresses are available, the first one is reported in the synchronizationAddress field. - :return: The synchronization_address of this V1VirtualMachineInstanceMigrationStatus. - :rtype: str + :return: The synchronization_addresses of this V1VirtualMachineInstanceMigrationStatus. + :rtype: list[str] """ - return self._synchronization_address + return self._synchronization_addresses - @synchronization_address.setter - def synchronization_address(self, synchronization_address): + @synchronization_addresses.setter + def synchronization_addresses(self, synchronization_addresses): """ - Sets the synchronization_address of this V1VirtualMachineInstanceMigrationStatus. - The synchronization address one can use to connect to the synchronization controller, includes the port + Sets the synchronization_addresses of this V1VirtualMachineInstanceMigrationStatus. + The synchronization addresses one can use to connect to the synchronization controller, includes the port, if multiple addresses are available, the first one is reported in the synchronizationAddress field. - :param synchronization_address: The synchronization_address of this V1VirtualMachineInstanceMigrationStatus. - :type: str + :param synchronization_addresses: The synchronization_addresses of this V1VirtualMachineInstanceMigrationStatus. + :type: list[str] """ - self._synchronization_address = synchronization_address + self._synchronization_addresses = synchronization_addresses def to_dict(self): """ diff --git a/setup.py b/setup.py index 2c1126d9..71162881 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.6.0-beta.0-421-g988e79c774" +VERSION = "v1.6.0-beta.0-431-gca9dca1631" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 6063675a..935b69d5 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.6.0-beta.0-421-g988e79c774" +"packageVersion": "v1.6.0-beta.0-431-gca9dca1631" } From c64dd3df4714fc47349558bc1c5ab6a63be1754d Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 3 Jul 2025 17:12:19 +0000 Subject: [PATCH 471/521] Client Python update by KubeVirt Prow build 1940816880373600256 --- README.md | 2 +- docs/V1ArchConfiguration.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_arch_configuration.py | 32 +++++++++++++++++++++--- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 920b2b29..73037622 100644 --- a/README.md +++ b/README.md @@ -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.6.0-beta.0-431-gca9dca1631 +- Package version: v1.6.0-beta.0-441-g793e3c42e3 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1ArchConfiguration.md b/docs/V1ArchConfiguration.md index e7e4aeec..c540b0e1 100644 --- a/docs/V1ArchConfiguration.md +++ b/docs/V1ArchConfiguration.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **arm64** | [**V1ArchSpecificConfiguration**](V1ArchSpecificConfiguration.md) | | [optional] **default_architecture** | **str** | | [optional] **ppc64le** | [**V1ArchSpecificConfiguration**](V1ArchSpecificConfiguration.md) | | [optional] +**s390x** | [**V1ArchSpecificConfiguration**](V1ArchSpecificConfiguration.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index c6bf767a..646c47c5 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.6.0-beta.0-431-gca9dca1631" + release_note="Auto-generated client v1.6.0-beta.0-441-g793e3c42e3" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index d09377a6..fcf53908 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.6.0-beta.0-431-gca9dca1631/python' + self.user_agent = 'Swagger-Codegen/v1.6.0-beta.0-441-g793e3c42e3/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 24b08a9d..632bc5cb 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.6.0-beta.0-431-gca9dca1631".\ + "SDK Package Version: v1.6.0-beta.0-441-g793e3c42e3".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_arch_configuration.py b/kubevirt/models/v1_arch_configuration.py index 8e2cee9b..5e74cf62 100644 --- a/kubevirt/models/v1_arch_configuration.py +++ b/kubevirt/models/v1_arch_configuration.py @@ -34,17 +34,19 @@ class V1ArchConfiguration(object): 'amd64': 'V1ArchSpecificConfiguration', 'arm64': 'V1ArchSpecificConfiguration', 'default_architecture': 'str', - 'ppc64le': 'V1ArchSpecificConfiguration' + 'ppc64le': 'V1ArchSpecificConfiguration', + 's390x': 'V1ArchSpecificConfiguration' } attribute_map = { 'amd64': 'amd64', 'arm64': 'arm64', 'default_architecture': 'defaultArchitecture', - 'ppc64le': 'ppc64le' + 'ppc64le': 'ppc64le', + 's390x': 's390x' } - def __init__(self, amd64=None, arm64=None, default_architecture=None, ppc64le=None): + def __init__(self, amd64=None, arm64=None, default_architecture=None, ppc64le=None, s390x=None): """ V1ArchConfiguration - a model defined in Swagger """ @@ -53,6 +55,7 @@ def __init__(self, amd64=None, arm64=None, default_architecture=None, ppc64le=No self._arm64 = None self._default_architecture = None self._ppc64le = None + self._s390x = None if amd64 is not None: self.amd64 = amd64 @@ -62,6 +65,8 @@ def __init__(self, amd64=None, arm64=None, default_architecture=None, ppc64le=No self.default_architecture = default_architecture if ppc64le is not None: self.ppc64le = ppc64le + if s390x is not None: + self.s390x = s390x @property def amd64(self): @@ -147,6 +152,27 @@ def ppc64le(self, ppc64le): self._ppc64le = ppc64le + @property + def s390x(self): + """ + Gets the s390x of this V1ArchConfiguration. + + :return: The s390x of this V1ArchConfiguration. + :rtype: V1ArchSpecificConfiguration + """ + return self._s390x + + @s390x.setter + def s390x(self, s390x): + """ + Sets the s390x of this V1ArchConfiguration. + + :param s390x: The s390x of this V1ArchConfiguration. + :type: V1ArchSpecificConfiguration + """ + + self._s390x = s390x + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index 71162881..2faff19e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.6.0-beta.0-431-gca9dca1631" +VERSION = "v1.6.0-beta.0-441-g793e3c42e3" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 935b69d5..a01436db 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.6.0-beta.0-431-gca9dca1631" +"packageVersion": "v1.6.0-beta.0-441-g793e3c42e3" } From 9914fe00ac689b167f31c7a02871e4628462db7e Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 23 Jul 2025 07:00:45 +0000 Subject: [PATCH 472/521] Client Python update by KubeVirt Prow build 1947910496397037568 --- README.md | 2 +- docs/V1VirtualMachineInstanceGuestOSUser.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_virtual_machine_instance_guest_os_user.py | 2 ++ setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 73037622..732e9bdc 100644 --- a/README.md +++ b/README.md @@ -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.6.0-beta.0-441-g793e3c42e3 +- Package version: v1.6.0-beta.0-599-gddca0e800d - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceGuestOSUser.md b/docs/V1VirtualMachineInstanceGuestOSUser.md index 5e53aebf..e5b6a503 100644 --- a/docs/V1VirtualMachineInstanceGuestOSUser.md +++ b/docs/V1VirtualMachineInstanceGuestOSUser.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **domain** | **str** | | [optional] -**login_time** | **float** | | [optional] +**login_time** | **float** | Time of login of this user on the computer. If multiple instances of the user are logged in, the earliest login time is reported. The value is in fractional seconds since epoch time. | [optional] **user_name** | **str** | | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 646c47c5..8d05277d 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.6.0-beta.0-441-g793e3c42e3" + release_note="Auto-generated client v1.6.0-beta.0-599-gddca0e800d" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index fcf53908..b8f1b956 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.6.0-beta.0-441-g793e3c42e3/python' + self.user_agent = 'Swagger-Codegen/v1.6.0-beta.0-599-gddca0e800d/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 632bc5cb..16ebcf69 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.6.0-beta.0-441-g793e3c42e3".\ + "SDK Package Version: v1.6.0-beta.0-599-gddca0e800d".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_guest_os_user.py b/kubevirt/models/v1_virtual_machine_instance_guest_os_user.py index 3593dae7..a20af9c1 100644 --- a/kubevirt/models/v1_virtual_machine_instance_guest_os_user.py +++ b/kubevirt/models/v1_virtual_machine_instance_guest_os_user.py @@ -82,6 +82,7 @@ def domain(self, domain): def login_time(self): """ Gets the login_time of this V1VirtualMachineInstanceGuestOSUser. + Time of login of this user on the computer. If multiple instances of the user are logged in, the earliest login time is reported. The value is in fractional seconds since epoch time. :return: The login_time of this V1VirtualMachineInstanceGuestOSUser. :rtype: float @@ -92,6 +93,7 @@ def login_time(self): def login_time(self, login_time): """ Sets the login_time of this V1VirtualMachineInstanceGuestOSUser. + Time of login of this user on the computer. If multiple instances of the user are logged in, the earliest login time is reported. The value is in fractional seconds since epoch time. :param login_time: The login_time of this V1VirtualMachineInstanceGuestOSUser. :type: float diff --git a/setup.py b/setup.py index 2faff19e..673f9d90 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.6.0-beta.0-441-g793e3c42e3" +VERSION = "v1.6.0-beta.0-599-gddca0e800d" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index a01436db..b484dc10 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.6.0-beta.0-441-g793e3c42e3" +"packageVersion": "v1.6.0-beta.0-599-gddca0e800d" } From 94811ac1929ca1690d9cfdbfc64d04134fd5e4bb Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 1 Aug 2025 20:24:34 +0000 Subject: [PATCH 473/521] Client Python update by KubeVirt Prow build 1951375353956012032 --- README.md | 3 +- .../V1VirtualMachineInstanceGuestAgentInfo.md | 1 + docs/V1VirtualMachineInstanceGuestOSLoad.md | 15 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + ...rtual_machine_instance_guest_agent_info.py | 30 +- ..._virtual_machine_instance_guest_os_load.py | 265 ++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- ..._virtual_machine_instance_guest_os_load.py | 44 +++ 14 files changed, 366 insertions(+), 7 deletions(-) create mode 100644 docs/V1VirtualMachineInstanceGuestOSLoad.md create mode 100644 kubevirt/models/v1_virtual_machine_instance_guest_os_load.py create mode 100644 test/test_v1_virtual_machine_instance_guest_os_load.py diff --git a/README.md b/README.md index 732e9bdc..acddfd54 100644 --- a/README.md +++ b/README.md @@ -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.6.0-beta.0-599-gddca0e800d +- Package version: v1.6.0-beta.0-697-g544a8a2f12 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -599,6 +599,7 @@ Class | Method | HTTP request | Description - [V1VirtualMachineInstanceFileSystemList](docs/V1VirtualMachineInstanceFileSystemList.md) - [V1VirtualMachineInstanceGuestAgentInfo](docs/V1VirtualMachineInstanceGuestAgentInfo.md) - [V1VirtualMachineInstanceGuestOSInfo](docs/V1VirtualMachineInstanceGuestOSInfo.md) + - [V1VirtualMachineInstanceGuestOSLoad](docs/V1VirtualMachineInstanceGuestOSLoad.md) - [V1VirtualMachineInstanceGuestOSUser](docs/V1VirtualMachineInstanceGuestOSUser.md) - [V1VirtualMachineInstanceGuestOSUserList](docs/V1VirtualMachineInstanceGuestOSUserList.md) - [V1VirtualMachineInstanceList](docs/V1VirtualMachineInstanceList.md) diff --git a/docs/V1VirtualMachineInstanceGuestAgentInfo.md b/docs/V1VirtualMachineInstanceGuestAgentInfo.md index c443c525..f9e0eadf 100644 --- a/docs/V1VirtualMachineInstanceGuestAgentInfo.md +++ b/docs/V1VirtualMachineInstanceGuestAgentInfo.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **guest_agent_version** | **str** | GAVersion is a version of currently installed guest agent | [optional] **hostname** | **str** | Hostname represents FQDN of a guest | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**load** | [**V1VirtualMachineInstanceGuestOSLoad**](V1VirtualMachineInstanceGuestOSLoad.md) | Load contains the system load averages (1M, 5M, 15M) from the guest agent | [optional] **os** | [**V1VirtualMachineInstanceGuestOSInfo**](V1VirtualMachineInstanceGuestOSInfo.md) | OS contains the guest operating system information | [optional] **supported_commands** | [**list[V1GuestAgentCommandInfo]**](V1GuestAgentCommandInfo.md) | Return command list the guest agent supports | [optional] **timezone** | **str** | Timezone is guest os current timezone | [optional] diff --git a/docs/V1VirtualMachineInstanceGuestOSLoad.md b/docs/V1VirtualMachineInstanceGuestOSLoad.md new file mode 100644 index 00000000..65947a80 --- /dev/null +++ b/docs/V1VirtualMachineInstanceGuestOSLoad.md @@ -0,0 +1,15 @@ +# V1VirtualMachineInstanceGuestOSLoad + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**load15m** | **float** | Load average over 15 minutes | [optional] +**load15m_set** | **bool** | Load15mSet indicates whether the 15 minute load average is set | [optional] +**load1m** | **float** | Load average over 1 minute | [optional] +**load1m_set** | **bool** | Load1mSet indicates whether the 1 minute load average is set | [optional] +**load5m** | **float** | Load average over 5 minutes | [optional] +**load5m_set** | **bool** | Load5mSet indicates whether the 5 minute load average is set | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 8d05277d..ba00957e 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.6.0-beta.0-599-gddca0e800d" + release_note="Auto-generated client v1.6.0-beta.0-697-g544a8a2f12" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 42846391..5d79e957 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -789,6 +789,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_virtual_machine_instance_guest_os_info.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_guest_os_info.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceGuestOSInfo.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_guest_os_load.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_guest_os_load.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceGuestOSLoad.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_guest_os_user.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_guest_os_user.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceGuestOSUser.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index adbd7fa3..73e4760b 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -270,6 +270,7 @@ from .models.v1_virtual_machine_instance_file_system_list import V1VirtualMachineInstanceFileSystemList from .models.v1_virtual_machine_instance_guest_agent_info import V1VirtualMachineInstanceGuestAgentInfo from .models.v1_virtual_machine_instance_guest_os_info import V1VirtualMachineInstanceGuestOSInfo +from .models.v1_virtual_machine_instance_guest_os_load import V1VirtualMachineInstanceGuestOSLoad from .models.v1_virtual_machine_instance_guest_os_user import V1VirtualMachineInstanceGuestOSUser from .models.v1_virtual_machine_instance_guest_os_user_list import V1VirtualMachineInstanceGuestOSUserList from .models.v1_virtual_machine_instance_list import V1VirtualMachineInstanceList diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index b8f1b956..59e49b58 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.6.0-beta.0-599-gddca0e800d/python' + self.user_agent = 'Swagger-Codegen/v1.6.0-beta.0-697-g544a8a2f12/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 16ebcf69..1e792658 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.6.0-beta.0-599-gddca0e800d".\ + "SDK Package Version: v1.6.0-beta.0-697-g544a8a2f12".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 3dbe8410..18797134 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -270,6 +270,7 @@ from .v1_virtual_machine_instance_file_system_list import V1VirtualMachineInstanceFileSystemList from .v1_virtual_machine_instance_guest_agent_info import V1VirtualMachineInstanceGuestAgentInfo from .v1_virtual_machine_instance_guest_os_info import V1VirtualMachineInstanceGuestOSInfo +from .v1_virtual_machine_instance_guest_os_load import V1VirtualMachineInstanceGuestOSLoad from .v1_virtual_machine_instance_guest_os_user import V1VirtualMachineInstanceGuestOSUser from .v1_virtual_machine_instance_guest_os_user_list import V1VirtualMachineInstanceGuestOSUserList from .v1_virtual_machine_instance_list import V1VirtualMachineInstanceList diff --git a/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py b/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py index 2ffc69d0..7ad06939 100644 --- a/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py +++ b/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py @@ -37,6 +37,7 @@ class V1VirtualMachineInstanceGuestAgentInfo(object): 'guest_agent_version': 'str', 'hostname': 'str', 'kind': 'str', + 'load': 'V1VirtualMachineInstanceGuestOSLoad', 'os': 'V1VirtualMachineInstanceGuestOSInfo', 'supported_commands': 'list[V1GuestAgentCommandInfo]', 'timezone': 'str', @@ -50,13 +51,14 @@ class V1VirtualMachineInstanceGuestAgentInfo(object): 'guest_agent_version': 'guestAgentVersion', 'hostname': 'hostname', 'kind': 'kind', + 'load': 'load', 'os': 'os', 'supported_commands': 'supportedCommands', 'timezone': 'timezone', 'user_list': 'userList' } - def __init__(self, api_version=None, fs_freeze_status=None, fs_info=None, guest_agent_version=None, hostname=None, kind=None, os=None, supported_commands=None, timezone=None, user_list=None): + def __init__(self, api_version=None, fs_freeze_status=None, fs_info=None, guest_agent_version=None, hostname=None, kind=None, load=None, os=None, supported_commands=None, timezone=None, user_list=None): """ V1VirtualMachineInstanceGuestAgentInfo - a model defined in Swagger """ @@ -67,6 +69,7 @@ def __init__(self, api_version=None, fs_freeze_status=None, fs_info=None, guest_ self._guest_agent_version = None self._hostname = None self._kind = None + self._load = None self._os = None self._supported_commands = None self._timezone = None @@ -84,6 +87,8 @@ def __init__(self, api_version=None, fs_freeze_status=None, fs_info=None, guest_ self.hostname = hostname if kind is not None: self.kind = kind + if load is not None: + self.load = load if os is not None: self.os = os if supported_commands is not None: @@ -231,6 +236,29 @@ def kind(self, kind): self._kind = kind + @property + def load(self): + """ + Gets the load of this V1VirtualMachineInstanceGuestAgentInfo. + Load contains the system load averages (1M, 5M, 15M) from the guest agent + + :return: The load of this V1VirtualMachineInstanceGuestAgentInfo. + :rtype: V1VirtualMachineInstanceGuestOSLoad + """ + return self._load + + @load.setter + def load(self, load): + """ + Sets the load of this V1VirtualMachineInstanceGuestAgentInfo. + Load contains the system load averages (1M, 5M, 15M) from the guest agent + + :param load: The load of this V1VirtualMachineInstanceGuestAgentInfo. + :type: V1VirtualMachineInstanceGuestOSLoad + """ + + self._load = load + @property def os(self): """ diff --git a/kubevirt/models/v1_virtual_machine_instance_guest_os_load.py b/kubevirt/models/v1_virtual_machine_instance_guest_os_load.py new file mode 100644 index 00000000..be87f840 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_guest_os_load.py @@ -0,0 +1,265 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineInstanceGuestOSLoad(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'load15m': 'float', + 'load15m_set': 'bool', + 'load1m': 'float', + 'load1m_set': 'bool', + 'load5m': 'float', + 'load5m_set': 'bool' + } + + attribute_map = { + 'load15m': 'load15m', + 'load15m_set': 'load15mSet', + 'load1m': 'load1m', + 'load1m_set': 'load1mSet', + 'load5m': 'load5m', + 'load5m_set': 'load5mSet' + } + + def __init__(self, load15m=None, load15m_set=None, load1m=None, load1m_set=None, load5m=None, load5m_set=None): + """ + V1VirtualMachineInstanceGuestOSLoad - a model defined in Swagger + """ + + self._load15m = None + self._load15m_set = None + self._load1m = None + self._load1m_set = None + self._load5m = None + self._load5m_set = None + + if load15m is not None: + self.load15m = load15m + if load15m_set is not None: + self.load15m_set = load15m_set + if load1m is not None: + self.load1m = load1m + if load1m_set is not None: + self.load1m_set = load1m_set + if load5m is not None: + self.load5m = load5m + if load5m_set is not None: + self.load5m_set = load5m_set + + @property + def load15m(self): + """ + Gets the load15m of this V1VirtualMachineInstanceGuestOSLoad. + Load average over 15 minutes + + :return: The load15m of this V1VirtualMachineInstanceGuestOSLoad. + :rtype: float + """ + return self._load15m + + @load15m.setter + def load15m(self, load15m): + """ + Sets the load15m of this V1VirtualMachineInstanceGuestOSLoad. + Load average over 15 minutes + + :param load15m: The load15m of this V1VirtualMachineInstanceGuestOSLoad. + :type: float + """ + + self._load15m = load15m + + @property + def load15m_set(self): + """ + Gets the load15m_set of this V1VirtualMachineInstanceGuestOSLoad. + Load15mSet indicates whether the 15 minute load average is set + + :return: The load15m_set of this V1VirtualMachineInstanceGuestOSLoad. + :rtype: bool + """ + return self._load15m_set + + @load15m_set.setter + def load15m_set(self, load15m_set): + """ + Sets the load15m_set of this V1VirtualMachineInstanceGuestOSLoad. + Load15mSet indicates whether the 15 minute load average is set + + :param load15m_set: The load15m_set of this V1VirtualMachineInstanceGuestOSLoad. + :type: bool + """ + + self._load15m_set = load15m_set + + @property + def load1m(self): + """ + Gets the load1m of this V1VirtualMachineInstanceGuestOSLoad. + Load average over 1 minute + + :return: The load1m of this V1VirtualMachineInstanceGuestOSLoad. + :rtype: float + """ + return self._load1m + + @load1m.setter + def load1m(self, load1m): + """ + Sets the load1m of this V1VirtualMachineInstanceGuestOSLoad. + Load average over 1 minute + + :param load1m: The load1m of this V1VirtualMachineInstanceGuestOSLoad. + :type: float + """ + + self._load1m = load1m + + @property + def load1m_set(self): + """ + Gets the load1m_set of this V1VirtualMachineInstanceGuestOSLoad. + Load1mSet indicates whether the 1 minute load average is set + + :return: The load1m_set of this V1VirtualMachineInstanceGuestOSLoad. + :rtype: bool + """ + return self._load1m_set + + @load1m_set.setter + def load1m_set(self, load1m_set): + """ + Sets the load1m_set of this V1VirtualMachineInstanceGuestOSLoad. + Load1mSet indicates whether the 1 minute load average is set + + :param load1m_set: The load1m_set of this V1VirtualMachineInstanceGuestOSLoad. + :type: bool + """ + + self._load1m_set = load1m_set + + @property + def load5m(self): + """ + Gets the load5m of this V1VirtualMachineInstanceGuestOSLoad. + Load average over 5 minutes + + :return: The load5m of this V1VirtualMachineInstanceGuestOSLoad. + :rtype: float + """ + return self._load5m + + @load5m.setter + def load5m(self, load5m): + """ + Sets the load5m of this V1VirtualMachineInstanceGuestOSLoad. + Load average over 5 minutes + + :param load5m: The load5m of this V1VirtualMachineInstanceGuestOSLoad. + :type: float + """ + + self._load5m = load5m + + @property + def load5m_set(self): + """ + Gets the load5m_set of this V1VirtualMachineInstanceGuestOSLoad. + Load5mSet indicates whether the 5 minute load average is set + + :return: The load5m_set of this V1VirtualMachineInstanceGuestOSLoad. + :rtype: bool + """ + return self._load5m_set + + @load5m_set.setter + def load5m_set(self, load5m_set): + """ + Sets the load5m_set of this V1VirtualMachineInstanceGuestOSLoad. + Load5mSet indicates whether the 5 minute load average is set + + :param load5m_set: The load5m_set of this V1VirtualMachineInstanceGuestOSLoad. + :type: bool + """ + + self._load5m_set = load5m_set + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineInstanceGuestOSLoad): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 673f9d90..eb030c97 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.6.0-beta.0-599-gddca0e800d" +VERSION = "v1.6.0-beta.0-697-g544a8a2f12" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b484dc10..5a40b971 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.6.0-beta.0-599-gddca0e800d" +"packageVersion": "v1.6.0-beta.0-697-g544a8a2f12" } diff --git a/test/test_v1_virtual_machine_instance_guest_os_load.py b/test/test_v1_virtual_machine_instance_guest_os_load.py new file mode 100644 index 00000000..2e54ef5f --- /dev/null +++ b/test/test_v1_virtual_machine_instance_guest_os_load.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_guest_os_load import V1VirtualMachineInstanceGuestOSLoad + + +class TestV1VirtualMachineInstanceGuestOSLoad(unittest.TestCase): + """ V1VirtualMachineInstanceGuestOSLoad unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceGuestOSLoad(self): + """ + Test V1VirtualMachineInstanceGuestOSLoad + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_guest_os_load.V1VirtualMachineInstanceGuestOSLoad() + pass + + +if __name__ == '__main__': + unittest.main() From e66c690850d671a7aac641cb888d3617a0036d74 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Mon, 25 Aug 2025 13:03:29 +0000 Subject: [PATCH 474/521] Client Python update by KubeVirt Prow build 1959961707543531520 --- README.md | 2 +- docs/DefaultApi.md | 12 ++++++++---- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 12 ++++++++++-- kubevirt/configuration.py | 2 +- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 24 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index acddfd54..391bd44f 100644 --- a/README.md +++ b/README.md @@ -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.6.0-beta.0-697-g544a8a2f12 +- Package version: v1.6.0-beta.0-869-g12ebd1cfe9 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index f094512f..6e11d307 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -9676,7 +9676,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1_vnc** -> v1_vnc(name, namespace) +> v1_vnc(name, namespace, preserve_session=preserve_session) @@ -9694,9 +9694,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +preserve_session = true # bool | Connect only if ongoing session is not disturbed. (optional) try: - api_instance.v1_vnc(name, namespace) + api_instance.v1_vnc(name, namespace, preserve_session=preserve_session) except ApiException as e: print("Exception when calling DefaultApi->v1_vnc: %s\n" % e) ``` @@ -9707,6 +9708,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **preserve_session** | **bool**| Connect only if ongoing session is not disturbed. | [optional] ### Return type @@ -10996,7 +10998,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **v1alpha3_vnc** -> v1alpha3_vnc(name, namespace) +> v1alpha3_vnc(name, namespace, preserve_session=preserve_session) @@ -11014,9 +11016,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +preserve_session = true # bool | Connect only if ongoing session is not disturbed. (optional) try: - api_instance.v1alpha3_vnc(name, namespace) + api_instance.v1alpha3_vnc(name, namespace, preserve_session=preserve_session) except ApiException as e: print("Exception when calling DefaultApi->v1alpha3_vnc: %s\n" % e) ``` @@ -11027,6 +11030,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **preserve_session** | **bool**| Connect only if ongoing session is not disturbed. | [optional] ### Return type diff --git a/git_push.sh b/git_push.sh index ba00957e..b5fa606a 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.6.0-beta.0-697-g544a8a2f12" + release_note="Auto-generated client v1.6.0-beta.0-869-g12ebd1cfe9" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 59e49b58..9b47fc78 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.6.0-beta.0-697-g544a8a2f12/python' + self.user_agent = 'Swagger-Codegen/v1.6.0-beta.0-869-g12ebd1cfe9/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index d6f2fbdf..5c8bd579 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -20539,6 +20539,7 @@ def v1_vnc(self, name, namespace, **kwargs): for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool preserve_session: Connect only if ongoing session is not disturbed. :return: None If the method is called asynchronously, returns the request thread. @@ -20565,12 +20566,13 @@ def v1_vnc_with_http_info(self, name, namespace, **kwargs): for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool preserve_session: Connect only if ongoing session is not disturbed. :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'preserve_session'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -20602,6 +20604,8 @@ def v1_vnc_with_http_info(self, name, namespace, **kwargs): path_params['namespace'] = params['namespace'] query_params = [] + if 'preserve_session' in params: + query_params.append(('preserveSession', params['preserve_session'])) header_params = {} @@ -23447,6 +23451,7 @@ def v1alpha3_vnc(self, name, namespace, **kwargs): for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool preserve_session: Connect only if ongoing session is not disturbed. :return: None If the method is called asynchronously, returns the request thread. @@ -23473,12 +23478,13 @@ def v1alpha3_vnc_with_http_info(self, name, namespace, **kwargs): for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool preserve_session: Connect only if ongoing session is not disturbed. :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'preserve_session'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -23510,6 +23516,8 @@ def v1alpha3_vnc_with_http_info(self, name, namespace, **kwargs): path_params['namespace'] = params['namespace'] query_params = [] + if 'preserve_session' in params: + query_params.append(('preserveSession', params['preserve_session'])) header_params = {} diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 1e792658..56fea2fe 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.6.0-beta.0-697-g544a8a2f12".\ + "SDK Package Version: v1.6.0-beta.0-869-g12ebd1cfe9".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index eb030c97..05ffad44 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.6.0-beta.0-697-g544a8a2f12" +VERSION = "v1.6.0-beta.0-869-g12ebd1cfe9" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 5a40b971..971d5df1 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.6.0-beta.0-697-g544a8a2f12" +"packageVersion": "v1.6.0-beta.0-869-g12ebd1cfe9" } From ee06048146b8baa7ca68389e1cb7f1c04803ff08 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 5 Sep 2025 02:22:13 +0000 Subject: [PATCH 475/521] Client Python update by KubeVirt Prow build 1963787256384720896 --- README.md | 2 +- docs/V1ArchConfiguration.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_arch_configuration.py | 2 ++ setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 391bd44f..d37b73bf 100644 --- a/README.md +++ b/README.md @@ -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.6.0-beta.0-869-g12ebd1cfe9 +- Package version: v1.6.0-beta.0-983-g8730871537 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1ArchConfiguration.md b/docs/V1ArchConfiguration.md index c540b0e1..39636210 100644 --- a/docs/V1ArchConfiguration.md +++ b/docs/V1ArchConfiguration.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **amd64** | [**V1ArchSpecificConfiguration**](V1ArchSpecificConfiguration.md) | | [optional] **arm64** | [**V1ArchSpecificConfiguration**](V1ArchSpecificConfiguration.md) | | [optional] **default_architecture** | **str** | | [optional] -**ppc64le** | [**V1ArchSpecificConfiguration**](V1ArchSpecificConfiguration.md) | | [optional] +**ppc64le** | [**V1ArchSpecificConfiguration**](V1ArchSpecificConfiguration.md) | Deprecated: ppc64le architecture is no longer supported. | [optional] **s390x** | [**V1ArchSpecificConfiguration**](V1ArchSpecificConfiguration.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index b5fa606a..8b191b94 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.6.0-beta.0-869-g12ebd1cfe9" + release_note="Auto-generated client v1.6.0-beta.0-983-g8730871537" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 9b47fc78..8a6fb3a2 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.6.0-beta.0-869-g12ebd1cfe9/python' + self.user_agent = 'Swagger-Codegen/v1.6.0-beta.0-983-g8730871537/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 56fea2fe..5ad0efb4 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.6.0-beta.0-869-g12ebd1cfe9".\ + "SDK Package Version: v1.6.0-beta.0-983-g8730871537".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_arch_configuration.py b/kubevirt/models/v1_arch_configuration.py index 5e74cf62..4d2274af 100644 --- a/kubevirt/models/v1_arch_configuration.py +++ b/kubevirt/models/v1_arch_configuration.py @@ -135,6 +135,7 @@ def default_architecture(self, default_architecture): def ppc64le(self): """ Gets the ppc64le of this V1ArchConfiguration. + Deprecated: ppc64le architecture is no longer supported. :return: The ppc64le of this V1ArchConfiguration. :rtype: V1ArchSpecificConfiguration @@ -145,6 +146,7 @@ def ppc64le(self): def ppc64le(self, ppc64le): """ Sets the ppc64le of this V1ArchConfiguration. + Deprecated: ppc64le architecture is no longer supported. :param ppc64le: The ppc64le of this V1ArchConfiguration. :type: V1ArchSpecificConfiguration diff --git a/setup.py b/setup.py index 05ffad44..5e0f9480 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.6.0-beta.0-869-g12ebd1cfe9" +VERSION = "v1.6.0-beta.0-983-g8730871537" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 971d5df1..fe23516a 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.6.0-beta.0-869-g12ebd1cfe9" +"packageVersion": "v1.6.0-beta.0-983-g8730871537" } From 5f63119674c7101819df09d3ed2dba69d77782ef Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 5 Sep 2025 17:57:59 +0000 Subject: [PATCH 476/521] Client Python update by KubeVirt Prow build 1964021958655873024 --- README.md | 2 +- docs/V1beta1VirtualMachineRestoreSpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1beta1_virtual_machine_restore_spec.py | 28 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 34 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index d37b73bf..e03c6474 100644 --- a/README.md +++ b/README.md @@ -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.6.0-beta.0-983-g8730871537 +- Package version: v1.6.0-beta.0-987-g8df54ed5df - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1VirtualMachineRestoreSpec.md b/docs/V1beta1VirtualMachineRestoreSpec.md index 0fefdb7d..55244b0d 100644 --- a/docs/V1beta1VirtualMachineRestoreSpec.md +++ b/docs/V1beta1VirtualMachineRestoreSpec.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **target** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | initially only VirtualMachine type supported | **target_readiness_policy** | **str** | | [optional] **virtual_machine_snapshot_name** | **str** | | [default to ''] +**volume_ownership_policy** | **str** | | [optional] **volume_restore_overrides** | [**list[V1beta1VolumeRestoreOverride]**](V1beta1VolumeRestoreOverride.md) | VolumeRestoreOverrides gives the option to change properties of each restored volume For example, specifying the name of the restored volume, or adding labels/annotations to it | [optional] **volume_restore_policy** | **str** | | [optional] diff --git a/git_push.sh b/git_push.sh index 8b191b94..ed482714 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.6.0-beta.0-983-g8730871537" + release_note="Auto-generated client v1.6.0-beta.0-987-g8df54ed5df" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 8a6fb3a2..25cea371 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.6.0-beta.0-983-g8730871537/python' + self.user_agent = 'Swagger-Codegen/v1.6.0-beta.0-987-g8df54ed5df/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 5ad0efb4..fce46926 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.6.0-beta.0-983-g8730871537".\ + "SDK Package Version: v1.6.0-beta.0-987-g8df54ed5df".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_virtual_machine_restore_spec.py b/kubevirt/models/v1beta1_virtual_machine_restore_spec.py index 708092cd..46e0c382 100644 --- a/kubevirt/models/v1beta1_virtual_machine_restore_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_restore_spec.py @@ -35,6 +35,7 @@ class V1beta1VirtualMachineRestoreSpec(object): 'target': 'K8sIoApiCoreV1TypedLocalObjectReference', 'target_readiness_policy': 'str', 'virtual_machine_snapshot_name': 'str', + 'volume_ownership_policy': 'str', 'volume_restore_overrides': 'list[V1beta1VolumeRestoreOverride]', 'volume_restore_policy': 'str' } @@ -44,11 +45,12 @@ class V1beta1VirtualMachineRestoreSpec(object): 'target': 'target', 'target_readiness_policy': 'targetReadinessPolicy', 'virtual_machine_snapshot_name': 'virtualMachineSnapshotName', + 'volume_ownership_policy': 'volumeOwnershipPolicy', 'volume_restore_overrides': 'volumeRestoreOverrides', 'volume_restore_policy': 'volumeRestorePolicy' } - def __init__(self, patches=None, target=None, target_readiness_policy=None, virtual_machine_snapshot_name='', volume_restore_overrides=None, volume_restore_policy=None): + def __init__(self, patches=None, target=None, target_readiness_policy=None, virtual_machine_snapshot_name='', volume_ownership_policy=None, volume_restore_overrides=None, volume_restore_policy=None): """ V1beta1VirtualMachineRestoreSpec - a model defined in Swagger """ @@ -57,6 +59,7 @@ def __init__(self, patches=None, target=None, target_readiness_policy=None, virt self._target = None self._target_readiness_policy = None self._virtual_machine_snapshot_name = None + self._volume_ownership_policy = None self._volume_restore_overrides = None self._volume_restore_policy = None @@ -66,6 +69,8 @@ def __init__(self, patches=None, target=None, target_readiness_policy=None, virt if target_readiness_policy is not None: self.target_readiness_policy = target_readiness_policy self.virtual_machine_snapshot_name = virtual_machine_snapshot_name + if volume_ownership_policy is not None: + self.volume_ownership_policy = volume_ownership_policy if volume_restore_overrides is not None: self.volume_restore_overrides = volume_restore_overrides if volume_restore_policy is not None: @@ -163,6 +168,27 @@ def virtual_machine_snapshot_name(self, virtual_machine_snapshot_name): self._virtual_machine_snapshot_name = virtual_machine_snapshot_name + @property + def volume_ownership_policy(self): + """ + Gets the volume_ownership_policy of this V1beta1VirtualMachineRestoreSpec. + + :return: The volume_ownership_policy of this V1beta1VirtualMachineRestoreSpec. + :rtype: str + """ + return self._volume_ownership_policy + + @volume_ownership_policy.setter + def volume_ownership_policy(self, volume_ownership_policy): + """ + Sets the volume_ownership_policy of this V1beta1VirtualMachineRestoreSpec. + + :param volume_ownership_policy: The volume_ownership_policy of this V1beta1VirtualMachineRestoreSpec. + :type: str + """ + + self._volume_ownership_policy = volume_ownership_policy + @property def volume_restore_overrides(self): """ diff --git a/setup.py b/setup.py index 5e0f9480..7aabdccc 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.6.0-beta.0-983-g8730871537" +VERSION = "v1.6.0-beta.0-987-g8df54ed5df" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index fe23516a..2dfb9a8f 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.6.0-beta.0-983-g8730871537" +"packageVersion": "v1.6.0-beta.0-987-g8df54ed5df" } From f8714731c6654f90df4e45aa29ca8c76ba1f9c43 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 18 Sep 2025 15:38:45 +0000 Subject: [PATCH 477/521] Client Python update by KubeVirt Prow build 1968696845886558208 --- README.md | 4 +- docs/V1ChangedBlockTrackingSelectors.md | 11 ++ docs/V1ChangedBlockTrackingStatus.md | 10 ++ docs/V1Disk.md | 1 + docs/V1KubeVirtConfiguration.md | 1 + docs/V1VirtualMachineInstanceStatus.md | 1 + docs/V1VirtualMachineStatus.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 + kubevirt/__init__.py | 2 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 + .../v1_changed_block_tracking_selectors.py | 153 ++++++++++++++++++ .../v1_changed_block_tracking_status.py | 126 +++++++++++++++ kubevirt/models/v1_disk.py | 30 +++- kubevirt/models/v1_kube_virt_configuration.py | 30 +++- .../v1_virtual_machine_instance_status.py | 30 +++- kubevirt/models/v1_virtual_machine_status.py | 30 +++- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...est_v1_changed_block_tracking_selectors.py | 44 +++++ test/test_v1_changed_block_tracking_status.py | 44 +++++ 23 files changed, 526 insertions(+), 10 deletions(-) create mode 100644 docs/V1ChangedBlockTrackingSelectors.md create mode 100644 docs/V1ChangedBlockTrackingStatus.md create mode 100644 kubevirt/models/v1_changed_block_tracking_selectors.py create mode 100644 kubevirt/models/v1_changed_block_tracking_status.py create mode 100644 test/test_v1_changed_block_tracking_selectors.py create mode 100644 test/test_v1_changed_block_tracking_status.py diff --git a/README.md b/README.md index e03c6474..33ef57ce 100644 --- a/README.md +++ b/README.md @@ -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.6.0-beta.0-987-g8df54ed5df +- Package version: v1.7.0-alpha.0-15-g2adc20291a - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -410,6 +410,8 @@ Class | Method | HTTP request | Description - [V1CPUFeature](docs/V1CPUFeature.md) - [V1CPUTopology](docs/V1CPUTopology.md) - [V1CertConfig](docs/V1CertConfig.md) + - [V1ChangedBlockTrackingSelectors](docs/V1ChangedBlockTrackingSelectors.md) + - [V1ChangedBlockTrackingStatus](docs/V1ChangedBlockTrackingStatus.md) - [V1Chassis](docs/V1Chassis.md) - [V1ClientPassthroughDevices](docs/V1ClientPassthroughDevices.md) - [V1Clock](docs/V1Clock.md) diff --git a/docs/V1ChangedBlockTrackingSelectors.md b/docs/V1ChangedBlockTrackingSelectors.md new file mode 100644 index 00000000..39a0677b --- /dev/null +++ b/docs/V1ChangedBlockTrackingSelectors.md @@ -0,0 +1,11 @@ +# V1ChangedBlockTrackingSelectors + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**namespace_label_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | NamespaceSelector will enable changedBlockTracking on all VMs running inside namespaces that match the label selector. | [optional] +**virtual_machine_label_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | VirtualMachineSelector will enable changedBlockTracking on all VMs that match the label selector. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ChangedBlockTrackingStatus.md b/docs/V1ChangedBlockTrackingStatus.md new file mode 100644 index 00000000..71b3671d --- /dev/null +++ b/docs/V1ChangedBlockTrackingStatus.md @@ -0,0 +1,10 @@ +# V1ChangedBlockTrackingStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**state** | **str** | State represents the current CBT state | [default to ''] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Disk.md b/docs/V1Disk.md index 96900afd..f85eee30 100644 --- a/docs/V1Disk.md +++ b/docs/V1Disk.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **boot_order** | **int** | BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each disk or interface that has a boot order must have a unique value. Disks without a boot order are not tried if a disk with a boot order exists. | [optional] **cache** | **str** | Cache specifies which kvm disk cache mode should be used. Supported values are: none: Guest I/O not cached on the host, but may be kept in a disk cache. writethrough: Guest I/O cached on the host but written through to the physical medium. Slowest but with most guarantees. writeback: Guest I/O cached on the host. Defaults to none if the storage supports O_DIRECT, otherwise writethrough. | [optional] **cdrom** | [**V1CDRomTarget**](V1CDRomTarget.md) | Attach a volume as a cdrom to the vmi. | [optional] +**changed_block_tracking** | **bool** | ChangedBlockTracking indicates this disk should have CBT option Defaults to false. | [optional] **dedicated_io_thread** | **bool** | dedicatedIOThread indicates this disk should have an exclusive IO Thread. Enabling this implies useIOThreads = true. Defaults to false. | [optional] **disk** | [**V1DiskTarget**](V1DiskTarget.md) | Attach a volume as a disk to the vmi. | [optional] **error_policy** | **str** | If specified, it can change the default error policy (stop) for the disk | [optional] diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index 0e10d8bf..e8ae0ecc 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **api_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] **architecture_configuration** | [**V1ArchConfiguration**](V1ArchConfiguration.md) | | [optional] **auto_cpu_limit_namespace_label_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | When set, AutoCPULimitNamespaceLabelSelector will set a CPU limit on virt-launcher for VMIs running inside namespaces that match the label selector. The CPU limit will equal the number of requested vCPUs. This setting does not apply to VMIs with dedicated CPUs. | [optional] +**changed_block_tracking_label_selectors** | [**V1ChangedBlockTrackingSelectors**](V1ChangedBlockTrackingSelectors.md) | ChangedBlockTrackingLabelSelectors defines label selectors. VMs matching these selectors will have changed block tracking enabled. Enabling changedBlockTracking is mandatory for performing storage-agnostic backups and incremental backups. | [optional] **common_instancetypes_deployment** | [**V1CommonInstancetypesDeployment**](V1CommonInstancetypesDeployment.md) | CommonInstancetypesDeployment controls the deployment of common-instancetypes resources | [optional] **controller_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] **cpu_model** | **str** | | [optional] diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index b3538398..cb4e4aff 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **vsockcid** | **int** | VSOCKCID is used to track the allocated VSOCK CID in the VM. | [optional] **active_pods** | **dict(str, str)** | ActivePods is a mapping of pod UID to node name. It is possible for multiple pods to be running for a single VMI during migration. | [optional] +**changed_block_tracking** | [**V1ChangedBlockTrackingStatus**](V1ChangedBlockTrackingStatus.md) | ChangedBlockTracking represents the status of the changedBlockTracking | [optional] **conditions** | [**list[V1VirtualMachineInstanceCondition]**](V1VirtualMachineInstanceCondition.md) | Conditions are specific points in VirtualMachineInstance's pod runtime. | [optional] **current_cpu_topology** | [**V1CPUTopology**](V1CPUTopology.md) | CurrentCPUTopology specifies the current CPU topology used by the VM workload. Current topology may differ from the desired topology in the spec while CPU hotplug takes place. | [optional] **device_status** | [**V1DeviceStatus**](V1DeviceStatus.md) | DeviceStatus reflects the state of devices requested in spec.domain.devices. This is an optional field available only when DRA feature gate is enabled This field will only be populated if one of the feature-gates GPUsWithDRA or HostDevicesWithDRA is enabled. This feature is in alpha. | [optional] diff --git a/docs/V1VirtualMachineStatus.md b/docs/V1VirtualMachineStatus.md index e8c00fdb..2cec03af 100644 --- a/docs/V1VirtualMachineStatus.md +++ b/docs/V1VirtualMachineStatus.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**changed_block_tracking** | [**V1ChangedBlockTrackingStatus**](V1ChangedBlockTrackingStatus.md) | ChangedBlockTracking represents the status of the changedBlockTracking | [optional] **conditions** | [**list[V1VirtualMachineCondition]**](V1VirtualMachineCondition.md) | Hold the state information of the VirtualMachine and its VirtualMachineInstance | [optional] **created** | **bool** | Created indicates if the virtual machine is created in the cluster | [optional] **desired_generation** | **int** | DesiredGeneration is the generation which is desired for the VMI. This will be used in comparisons with ObservedGeneration to understand when the VMI is out of sync. This will be changed at the same time as ObservedGeneration to remove errors which could occur if Generation is updated through an Update() before ObservedGeneration in Status. | [optional] diff --git a/git_push.sh b/git_push.sh index ed482714..07a815e8 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.6.0-beta.0-987-g8df54ed5df" + release_note="Auto-generated client v1.7.0-alpha.0-15-g2adc20291a" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 5d79e957..2c528c5f 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -222,6 +222,12 @@ 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_cert_config.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_cert_config.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CertConfig.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_changed_block_tracking_selectors.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_changed_block_tracking_selectors.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ChangedBlockTrackingSelectors.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_changed_block_tracking_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_changed_block_tracking_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ChangedBlockTrackingStatus.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_chassis.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_chassis.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Chassis.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 73e4760b..bca817f1 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -81,6 +81,8 @@ from .models.v1_cpu_feature import V1CPUFeature from .models.v1_cpu_topology import V1CPUTopology from .models.v1_cert_config import V1CertConfig +from .models.v1_changed_block_tracking_selectors import V1ChangedBlockTrackingSelectors +from .models.v1_changed_block_tracking_status import V1ChangedBlockTrackingStatus from .models.v1_chassis import V1Chassis from .models.v1_client_passthrough_devices import V1ClientPassthroughDevices from .models.v1_clock import V1Clock diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 25cea371..c1b96aad 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.6.0-beta.0-987-g8df54ed5df/python' + self.user_agent = 'Swagger-Codegen/v1.7.0-alpha.0-15-g2adc20291a/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index fce46926..fc40965b 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.6.0-beta.0-987-g8df54ed5df".\ + "SDK Package Version: v1.7.0-alpha.0-15-g2adc20291a".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 18797134..8013f21e 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -81,6 +81,8 @@ from .v1_cpu_feature import V1CPUFeature from .v1_cpu_topology import V1CPUTopology from .v1_cert_config import V1CertConfig +from .v1_changed_block_tracking_selectors import V1ChangedBlockTrackingSelectors +from .v1_changed_block_tracking_status import V1ChangedBlockTrackingStatus from .v1_chassis import V1Chassis from .v1_client_passthrough_devices import V1ClientPassthroughDevices from .v1_clock import V1Clock diff --git a/kubevirt/models/v1_changed_block_tracking_selectors.py b/kubevirt/models/v1_changed_block_tracking_selectors.py new file mode 100644 index 00000000..4a3adefe --- /dev/null +++ b/kubevirt/models/v1_changed_block_tracking_selectors.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ChangedBlockTrackingSelectors(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'namespace_label_selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', + 'virtual_machine_label_selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector' + } + + attribute_map = { + 'namespace_label_selector': 'namespaceLabelSelector', + 'virtual_machine_label_selector': 'virtualMachineLabelSelector' + } + + def __init__(self, namespace_label_selector=None, virtual_machine_label_selector=None): + """ + V1ChangedBlockTrackingSelectors - a model defined in Swagger + """ + + self._namespace_label_selector = None + self._virtual_machine_label_selector = None + + if namespace_label_selector is not None: + self.namespace_label_selector = namespace_label_selector + if virtual_machine_label_selector is not None: + self.virtual_machine_label_selector = virtual_machine_label_selector + + @property + def namespace_label_selector(self): + """ + Gets the namespace_label_selector of this V1ChangedBlockTrackingSelectors. + NamespaceSelector will enable changedBlockTracking on all VMs running inside namespaces that match the label selector. + + :return: The namespace_label_selector of this V1ChangedBlockTrackingSelectors. + :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + return self._namespace_label_selector + + @namespace_label_selector.setter + def namespace_label_selector(self, namespace_label_selector): + """ + Sets the namespace_label_selector of this V1ChangedBlockTrackingSelectors. + NamespaceSelector will enable changedBlockTracking on all VMs running inside namespaces that match the label selector. + + :param namespace_label_selector: The namespace_label_selector of this V1ChangedBlockTrackingSelectors. + :type: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + + self._namespace_label_selector = namespace_label_selector + + @property + def virtual_machine_label_selector(self): + """ + Gets the virtual_machine_label_selector of this V1ChangedBlockTrackingSelectors. + VirtualMachineSelector will enable changedBlockTracking on all VMs that match the label selector. + + :return: The virtual_machine_label_selector of this V1ChangedBlockTrackingSelectors. + :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + return self._virtual_machine_label_selector + + @virtual_machine_label_selector.setter + def virtual_machine_label_selector(self, virtual_machine_label_selector): + """ + Sets the virtual_machine_label_selector of this V1ChangedBlockTrackingSelectors. + VirtualMachineSelector will enable changedBlockTracking on all VMs that match the label selector. + + :param virtual_machine_label_selector: The virtual_machine_label_selector of this V1ChangedBlockTrackingSelectors. + :type: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + + self._virtual_machine_label_selector = virtual_machine_label_selector + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1ChangedBlockTrackingSelectors): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_changed_block_tracking_status.py b/kubevirt/models/v1_changed_block_tracking_status.py new file mode 100644 index 00000000..a819417f --- /dev/null +++ b/kubevirt/models/v1_changed_block_tracking_status.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ChangedBlockTrackingStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'state': 'str' + } + + attribute_map = { + 'state': 'state' + } + + def __init__(self, state=''): + """ + V1ChangedBlockTrackingStatus - a model defined in Swagger + """ + + self._state = None + + self.state = state + + @property + def state(self): + """ + Gets the state of this V1ChangedBlockTrackingStatus. + State represents the current CBT state + + :return: The state of this V1ChangedBlockTrackingStatus. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """ + Sets the state of this V1ChangedBlockTrackingStatus. + State represents the current CBT state + + :param state: The state of this V1ChangedBlockTrackingStatus. + :type: str + """ + if state is None: + raise ValueError("Invalid value for `state`, must not be `None`") + + self._state = state + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1ChangedBlockTrackingStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_disk.py b/kubevirt/models/v1_disk.py index b94c4680..e6a0ee2f 100644 --- a/kubevirt/models/v1_disk.py +++ b/kubevirt/models/v1_disk.py @@ -35,6 +35,7 @@ class V1Disk(object): 'boot_order': 'int', 'cache': 'str', 'cdrom': 'V1CDRomTarget', + 'changed_block_tracking': 'bool', 'dedicated_io_thread': 'bool', 'disk': 'V1DiskTarget', 'error_policy': 'str', @@ -51,6 +52,7 @@ class V1Disk(object): 'boot_order': 'bootOrder', 'cache': 'cache', 'cdrom': 'cdrom', + 'changed_block_tracking': 'changedBlockTracking', 'dedicated_io_thread': 'dedicatedIOThread', 'disk': 'disk', 'error_policy': 'errorPolicy', @@ -62,7 +64,7 @@ class V1Disk(object): 'tag': 'tag' } - def __init__(self, block_size=None, boot_order=None, cache=None, cdrom=None, dedicated_io_thread=None, disk=None, error_policy=None, io=None, lun=None, name='', serial=None, shareable=None, tag=None): + def __init__(self, block_size=None, boot_order=None, cache=None, cdrom=None, changed_block_tracking=None, dedicated_io_thread=None, disk=None, error_policy=None, io=None, lun=None, name='', serial=None, shareable=None, tag=None): """ V1Disk - a model defined in Swagger """ @@ -71,6 +73,7 @@ def __init__(self, block_size=None, boot_order=None, cache=None, cdrom=None, ded self._boot_order = None self._cache = None self._cdrom = None + self._changed_block_tracking = None self._dedicated_io_thread = None self._disk = None self._error_policy = None @@ -89,6 +92,8 @@ def __init__(self, block_size=None, boot_order=None, cache=None, cdrom=None, ded self.cache = cache if cdrom is not None: self.cdrom = cdrom + if changed_block_tracking is not None: + self.changed_block_tracking = changed_block_tracking if dedicated_io_thread is not None: self.dedicated_io_thread = dedicated_io_thread if disk is not None: @@ -199,6 +204,29 @@ def cdrom(self, cdrom): self._cdrom = cdrom + @property + def changed_block_tracking(self): + """ + Gets the changed_block_tracking of this V1Disk. + ChangedBlockTracking indicates this disk should have CBT option Defaults to false. + + :return: The changed_block_tracking of this V1Disk. + :rtype: bool + """ + return self._changed_block_tracking + + @changed_block_tracking.setter + def changed_block_tracking(self, changed_block_tracking): + """ + Sets the changed_block_tracking of this V1Disk. + ChangedBlockTracking indicates this disk should have CBT option Defaults to false. + + :param changed_block_tracking: The changed_block_tracking of this V1Disk. + :type: bool + """ + + self._changed_block_tracking = changed_block_tracking + @property def dedicated_io_thread(self): """ diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index 6ad308d7..c0f8de3e 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -35,6 +35,7 @@ class V1KubeVirtConfiguration(object): 'api_configuration': 'V1ReloadableComponentConfiguration', 'architecture_configuration': 'V1ArchConfiguration', 'auto_cpu_limit_namespace_label_selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', + 'changed_block_tracking_label_selectors': 'V1ChangedBlockTrackingSelectors', 'common_instancetypes_deployment': 'V1CommonInstancetypesDeployment', 'controller_configuration': 'V1ReloadableComponentConfiguration', 'cpu_model': 'str', @@ -75,6 +76,7 @@ class V1KubeVirtConfiguration(object): 'api_configuration': 'apiConfiguration', 'architecture_configuration': 'architectureConfiguration', 'auto_cpu_limit_namespace_label_selector': 'autoCPULimitNamespaceLabelSelector', + 'changed_block_tracking_label_selectors': 'changedBlockTrackingLabelSelectors', 'common_instancetypes_deployment': 'commonInstancetypesDeployment', 'controller_configuration': 'controllerConfiguration', 'cpu_model': 'cpuModel', @@ -110,7 +112,7 @@ class V1KubeVirtConfiguration(object): 'webhook_configuration': 'webhookConfiguration' } - def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, auto_cpu_limit_namespace_label_selector=None, common_instancetypes_deployment=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, instancetype=None, ksm_configuration=None, live_update_configuration=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, virtual_machine_options=None, vm_rollout_strategy=None, vm_state_storage_class=None, webhook_configuration=None): + def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, auto_cpu_limit_namespace_label_selector=None, changed_block_tracking_label_selectors=None, common_instancetypes_deployment=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, instancetype=None, ksm_configuration=None, live_update_configuration=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, virtual_machine_options=None, vm_rollout_strategy=None, vm_state_storage_class=None, webhook_configuration=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ @@ -119,6 +121,7 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self._api_configuration = None self._architecture_configuration = None self._auto_cpu_limit_namespace_label_selector = None + self._changed_block_tracking_label_selectors = None self._common_instancetypes_deployment = None self._controller_configuration = None self._cpu_model = None @@ -161,6 +164,8 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self.architecture_configuration = architecture_configuration if auto_cpu_limit_namespace_label_selector is not None: self.auto_cpu_limit_namespace_label_selector = auto_cpu_limit_namespace_label_selector + if changed_block_tracking_label_selectors is not None: + self.changed_block_tracking_label_selectors = changed_block_tracking_label_selectors if common_instancetypes_deployment is not None: self.common_instancetypes_deployment = common_instancetypes_deployment if controller_configuration is not None: @@ -316,6 +321,29 @@ def auto_cpu_limit_namespace_label_selector(self, auto_cpu_limit_namespace_label self._auto_cpu_limit_namespace_label_selector = auto_cpu_limit_namespace_label_selector + @property + def changed_block_tracking_label_selectors(self): + """ + Gets the changed_block_tracking_label_selectors of this V1KubeVirtConfiguration. + ChangedBlockTrackingLabelSelectors defines label selectors. VMs matching these selectors will have changed block tracking enabled. Enabling changedBlockTracking is mandatory for performing storage-agnostic backups and incremental backups. + + :return: The changed_block_tracking_label_selectors of this V1KubeVirtConfiguration. + :rtype: V1ChangedBlockTrackingSelectors + """ + return self._changed_block_tracking_label_selectors + + @changed_block_tracking_label_selectors.setter + def changed_block_tracking_label_selectors(self, changed_block_tracking_label_selectors): + """ + Sets the changed_block_tracking_label_selectors of this V1KubeVirtConfiguration. + ChangedBlockTrackingLabelSelectors defines label selectors. VMs matching these selectors will have changed block tracking enabled. Enabling changedBlockTracking is mandatory for performing storage-agnostic backups and incremental backups. + + :param changed_block_tracking_label_selectors: The changed_block_tracking_label_selectors of this V1KubeVirtConfiguration. + :type: V1ChangedBlockTrackingSelectors + """ + + self._changed_block_tracking_label_selectors = changed_block_tracking_label_selectors + @property def common_instancetypes_deployment(self): """ diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index 3d25f505..5b2902cb 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -33,6 +33,7 @@ class V1VirtualMachineInstanceStatus(object): swagger_types = { 'vsockcid': 'int', 'active_pods': 'dict(str, str)', + 'changed_block_tracking': 'V1ChangedBlockTrackingStatus', 'conditions': 'list[V1VirtualMachineInstanceCondition]', 'current_cpu_topology': 'V1CPUTopology', 'device_status': 'V1DeviceStatus', @@ -63,6 +64,7 @@ class V1VirtualMachineInstanceStatus(object): attribute_map = { 'vsockcid': 'VSOCKCID', 'active_pods': 'activePods', + 'changed_block_tracking': 'changedBlockTracking', 'conditions': 'conditions', 'current_cpu_topology': 'currentCPUTopology', 'device_status': 'deviceStatus', @@ -90,13 +92,14 @@ class V1VirtualMachineInstanceStatus(object): 'volume_status': 'volumeStatus' } - def __init__(self, vsockcid=None, active_pods=None, conditions=None, current_cpu_topology=None, device_status=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, kernel_boot_status=None, launcher_container_image_version=None, machine=None, memory=None, migrated_volumes=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=0, selinux_context=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): + def __init__(self, vsockcid=None, active_pods=None, changed_block_tracking=None, conditions=None, current_cpu_topology=None, device_status=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, kernel_boot_status=None, launcher_container_image_version=None, machine=None, memory=None, migrated_volumes=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=0, selinux_context=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ self._vsockcid = None self._active_pods = None + self._changed_block_tracking = None self._conditions = None self._current_cpu_topology = None self._device_status = None @@ -127,6 +130,8 @@ def __init__(self, vsockcid=None, active_pods=None, conditions=None, current_cpu self.vsockcid = vsockcid if active_pods is not None: self.active_pods = active_pods + if changed_block_tracking is not None: + self.changed_block_tracking = changed_block_tracking if conditions is not None: self.conditions = conditions if current_cpu_topology is not None: @@ -224,6 +229,29 @@ def active_pods(self, active_pods): self._active_pods = active_pods + @property + def changed_block_tracking(self): + """ + Gets the changed_block_tracking of this V1VirtualMachineInstanceStatus. + ChangedBlockTracking represents the status of the changedBlockTracking + + :return: The changed_block_tracking of this V1VirtualMachineInstanceStatus. + :rtype: V1ChangedBlockTrackingStatus + """ + return self._changed_block_tracking + + @changed_block_tracking.setter + def changed_block_tracking(self, changed_block_tracking): + """ + Sets the changed_block_tracking of this V1VirtualMachineInstanceStatus. + ChangedBlockTracking represents the status of the changedBlockTracking + + :param changed_block_tracking: The changed_block_tracking of this V1VirtualMachineInstanceStatus. + :type: V1ChangedBlockTrackingStatus + """ + + self._changed_block_tracking = changed_block_tracking + @property def conditions(self): """ diff --git a/kubevirt/models/v1_virtual_machine_status.py b/kubevirt/models/v1_virtual_machine_status.py index c701f208..294d13fb 100644 --- a/kubevirt/models/v1_virtual_machine_status.py +++ b/kubevirt/models/v1_virtual_machine_status.py @@ -31,6 +31,7 @@ class V1VirtualMachineStatus(object): and the value is json key in definition. """ swagger_types = { + 'changed_block_tracking': 'V1ChangedBlockTrackingStatus', 'conditions': 'list[V1VirtualMachineCondition]', 'created': 'bool', 'desired_generation': 'int', @@ -51,6 +52,7 @@ class V1VirtualMachineStatus(object): } attribute_map = { + 'changed_block_tracking': 'changedBlockTracking', 'conditions': 'conditions', 'created': 'created', 'desired_generation': 'desiredGeneration', @@ -70,11 +72,12 @@ class V1VirtualMachineStatus(object): 'volume_update_state': 'volumeUpdateState' } - def __init__(self, conditions=None, created=None, desired_generation=None, instancetype_ref=None, memory_dump_request=None, observed_generation=None, preference_ref=None, printable_status=None, ready=None, restore_in_progress=None, run_strategy=None, snapshot_in_progress=None, start_failure=None, state_change_requests=None, volume_requests=None, volume_snapshot_statuses=None, volume_update_state=None): + def __init__(self, changed_block_tracking=None, conditions=None, created=None, desired_generation=None, instancetype_ref=None, memory_dump_request=None, observed_generation=None, preference_ref=None, printable_status=None, ready=None, restore_in_progress=None, run_strategy=None, snapshot_in_progress=None, start_failure=None, state_change_requests=None, volume_requests=None, volume_snapshot_statuses=None, volume_update_state=None): """ V1VirtualMachineStatus - a model defined in Swagger """ + self._changed_block_tracking = None self._conditions = None self._created = None self._desired_generation = None @@ -93,6 +96,8 @@ def __init__(self, conditions=None, created=None, desired_generation=None, insta self._volume_snapshot_statuses = None self._volume_update_state = None + if changed_block_tracking is not None: + self.changed_block_tracking = changed_block_tracking if conditions is not None: self.conditions = conditions if created is not None: @@ -128,6 +133,29 @@ def __init__(self, conditions=None, created=None, desired_generation=None, insta if volume_update_state is not None: self.volume_update_state = volume_update_state + @property + def changed_block_tracking(self): + """ + Gets the changed_block_tracking of this V1VirtualMachineStatus. + ChangedBlockTracking represents the status of the changedBlockTracking + + :return: The changed_block_tracking of this V1VirtualMachineStatus. + :rtype: V1ChangedBlockTrackingStatus + """ + return self._changed_block_tracking + + @changed_block_tracking.setter + def changed_block_tracking(self, changed_block_tracking): + """ + Sets the changed_block_tracking of this V1VirtualMachineStatus. + ChangedBlockTracking represents the status of the changedBlockTracking + + :param changed_block_tracking: The changed_block_tracking of this V1VirtualMachineStatus. + :type: V1ChangedBlockTrackingStatus + """ + + self._changed_block_tracking = changed_block_tracking + @property def conditions(self): """ diff --git a/setup.py b/setup.py index 7aabdccc..32e61add 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.6.0-beta.0-987-g8df54ed5df" +VERSION = "v1.7.0-alpha.0-15-g2adc20291a" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 2dfb9a8f..011d7514 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.6.0-beta.0-987-g8df54ed5df" +"packageVersion": "v1.7.0-alpha.0-15-g2adc20291a" } diff --git a/test/test_v1_changed_block_tracking_selectors.py b/test/test_v1_changed_block_tracking_selectors.py new file mode 100644 index 00000000..83b7cecd --- /dev/null +++ b/test/test_v1_changed_block_tracking_selectors.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_changed_block_tracking_selectors import V1ChangedBlockTrackingSelectors + + +class TestV1ChangedBlockTrackingSelectors(unittest.TestCase): + """ V1ChangedBlockTrackingSelectors unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ChangedBlockTrackingSelectors(self): + """ + Test V1ChangedBlockTrackingSelectors + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_changed_block_tracking_selectors.V1ChangedBlockTrackingSelectors() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_changed_block_tracking_status.py b/test/test_v1_changed_block_tracking_status.py new file mode 100644 index 00000000..2a13200a --- /dev/null +++ b/test/test_v1_changed_block_tracking_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_changed_block_tracking_status import V1ChangedBlockTrackingStatus + + +class TestV1ChangedBlockTrackingStatus(unittest.TestCase): + """ V1ChangedBlockTrackingStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ChangedBlockTrackingStatus(self): + """ + Test V1ChangedBlockTrackingStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_changed_block_tracking_status.V1ChangedBlockTrackingStatus() + pass + + +if __name__ == '__main__': + unittest.main() From d340b96ebf47734a4642673deacca9e52414250c Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Tue, 30 Sep 2025 08:16:38 +0000 Subject: [PATCH 478/521] Client Python update by KubeVirt Prow build 1972936089836457984 --- README.md | 3 +- docs/V1beta1DataVolumeSourceRegistry.md | 1 + docs/V1beta1DataVolumeSourceVDDK.md | 1 + docs/V1beta1PlatformOptions.md | 10 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + .../v1beta1_data_volume_source_registry.py | 30 ++++- .../models/v1beta1_data_volume_source_vddk.py | 30 ++++- kubevirt/models/v1beta1_platform_options.py | 125 ++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1beta1_platform_options.py | 44 ++++++ 16 files changed, 251 insertions(+), 8 deletions(-) create mode 100644 docs/V1beta1PlatformOptions.md create mode 100644 kubevirt/models/v1beta1_platform_options.py create mode 100644 test/test_v1beta1_platform_options.py diff --git a/README.md b/README.md index 33ef57ce..25c0e2f0 100644 --- a/README.md +++ b/README.md @@ -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.7.0-alpha.0-15-g2adc20291a +- Package version: v1.7.0-alpha.0-111-ge92685b259 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -686,6 +686,7 @@ Class | Method | HTTP request | Description - [V1beta1MemoryInstancetype](docs/V1beta1MemoryInstancetype.md) - [V1beta1MemoryPreferenceRequirement](docs/V1beta1MemoryPreferenceRequirement.md) - [V1beta1PersistentVolumeClaim](docs/V1beta1PersistentVolumeClaim.md) + - [V1beta1PlatformOptions](docs/V1beta1PlatformOptions.md) - [V1beta1PreferenceRequirements](docs/V1beta1PreferenceRequirements.md) - [V1beta1SnapshotVolumesLists](docs/V1beta1SnapshotVolumesLists.md) - [V1beta1SourceSpec](docs/V1beta1SourceSpec.md) diff --git a/docs/V1beta1DataVolumeSourceRegistry.md b/docs/V1beta1DataVolumeSourceRegistry.md index 9b1d8a4b..536a244c 100644 --- a/docs/V1beta1DataVolumeSourceRegistry.md +++ b/docs/V1beta1DataVolumeSourceRegistry.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cert_config_map** | **str** | CertConfigMap provides a reference to the Registry certs | [optional] **image_stream** | **str** | ImageStream is the name of image stream for import | [optional] +**platform** | [**V1beta1PlatformOptions**](V1beta1PlatformOptions.md) | Platform describes the minimum runtime requirements of the image | [optional] **pull_method** | **str** | PullMethod can be either \"pod\" (default import), or \"node\" (node docker cache based import) | [optional] **secret_ref** | **str** | SecretRef provides the secret reference needed to access the Registry source | [optional] **url** | **str** | URL is the url of the registry source (starting with the scheme: docker, oci-archive) | [optional] diff --git a/docs/V1beta1DataVolumeSourceVDDK.md b/docs/V1beta1DataVolumeSourceVDDK.md index c9260482..32889763 100644 --- a/docs/V1beta1DataVolumeSourceVDDK.md +++ b/docs/V1beta1DataVolumeSourceVDDK.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **backing_file** | **str** | BackingFile is the path to the virtual hard disk to migrate from vCenter/ESXi | [optional] +**extra_args** | **str** | ExtraArgs is a reference to a ConfigMap containing extra arguments to pass directly to the VDDK library | [optional] **init_image_url** | **str** | InitImageURL is an optional URL to an image containing an extracted VDDK library, overrides v2v-vmware config map | [optional] **secret_ref** | **str** | SecretRef provides a reference to a secret containing the username and password needed to access the vCenter or ESXi host | [optional] **thumbprint** | **str** | Thumbprint is the certificate thumbprint of the vCenter or ESXi host | [optional] diff --git a/docs/V1beta1PlatformOptions.md b/docs/V1beta1PlatformOptions.md new file mode 100644 index 00000000..cec4af13 --- /dev/null +++ b/docs/V1beta1PlatformOptions.md @@ -0,0 +1,10 @@ +# V1beta1PlatformOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**architecture** | **str** | Architecture specifies the image target CPU architecture | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 07a815e8..29fe9e5a 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.7.0-alpha.0-15-g2adc20291a" + release_note="Auto-generated client v1.7.0-alpha.0-111-ge92685b259" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 2c528c5f..e4f118c4 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -1050,6 +1050,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/v1beta1_persistent_volume_claim.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_persistent_volume_claim.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1PersistentVolumeClaim.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_platform_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_platform_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1PlatformOptions.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_preference_requirements.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_preference_requirements.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1PreferenceRequirements.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index bca817f1..452d4a73 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -357,6 +357,7 @@ from .models.v1beta1_memory_instancetype import V1beta1MemoryInstancetype from .models.v1beta1_memory_preference_requirement import V1beta1MemoryPreferenceRequirement from .models.v1beta1_persistent_volume_claim import V1beta1PersistentVolumeClaim +from .models.v1beta1_platform_options import V1beta1PlatformOptions from .models.v1beta1_preference_requirements import V1beta1PreferenceRequirements from .models.v1beta1_snapshot_volumes_lists import V1beta1SnapshotVolumesLists from .models.v1beta1_source_spec import V1beta1SourceSpec diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index c1b96aad..1101fc3d 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.7.0-alpha.0-15-g2adc20291a/python' + self.user_agent = 'Swagger-Codegen/v1.7.0-alpha.0-111-ge92685b259/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index fc40965b..e9d105ae 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.7.0-alpha.0-15-g2adc20291a".\ + "SDK Package Version: v1.7.0-alpha.0-111-ge92685b259".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 8013f21e..05581c18 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -357,6 +357,7 @@ from .v1beta1_memory_instancetype import V1beta1MemoryInstancetype from .v1beta1_memory_preference_requirement import V1beta1MemoryPreferenceRequirement from .v1beta1_persistent_volume_claim import V1beta1PersistentVolumeClaim +from .v1beta1_platform_options import V1beta1PlatformOptions from .v1beta1_preference_requirements import V1beta1PreferenceRequirements from .v1beta1_snapshot_volumes_lists import V1beta1SnapshotVolumesLists from .v1beta1_source_spec import V1beta1SourceSpec diff --git a/kubevirt/models/v1beta1_data_volume_source_registry.py b/kubevirt/models/v1beta1_data_volume_source_registry.py index c6bcb75e..c8707a20 100644 --- a/kubevirt/models/v1beta1_data_volume_source_registry.py +++ b/kubevirt/models/v1beta1_data_volume_source_registry.py @@ -33,6 +33,7 @@ class V1beta1DataVolumeSourceRegistry(object): swagger_types = { 'cert_config_map': 'str', 'image_stream': 'str', + 'platform': 'V1beta1PlatformOptions', 'pull_method': 'str', 'secret_ref': 'str', 'url': 'str' @@ -41,18 +42,20 @@ class V1beta1DataVolumeSourceRegistry(object): attribute_map = { 'cert_config_map': 'certConfigMap', 'image_stream': 'imageStream', + 'platform': 'platform', 'pull_method': 'pullMethod', 'secret_ref': 'secretRef', 'url': 'url' } - def __init__(self, cert_config_map=None, image_stream=None, pull_method=None, secret_ref=None, url=None): + def __init__(self, cert_config_map=None, image_stream=None, platform=None, pull_method=None, secret_ref=None, url=None): """ V1beta1DataVolumeSourceRegistry - a model defined in Swagger """ self._cert_config_map = None self._image_stream = None + self._platform = None self._pull_method = None self._secret_ref = None self._url = None @@ -61,6 +64,8 @@ def __init__(self, cert_config_map=None, image_stream=None, pull_method=None, se self.cert_config_map = cert_config_map if image_stream is not None: self.image_stream = image_stream + if platform is not None: + self.platform = platform if pull_method is not None: self.pull_method = pull_method if secret_ref is not None: @@ -114,6 +119,29 @@ def image_stream(self, image_stream): self._image_stream = image_stream + @property + def platform(self): + """ + Gets the platform of this V1beta1DataVolumeSourceRegistry. + Platform describes the minimum runtime requirements of the image + + :return: The platform of this V1beta1DataVolumeSourceRegistry. + :rtype: V1beta1PlatformOptions + """ + return self._platform + + @platform.setter + def platform(self, platform): + """ + Sets the platform of this V1beta1DataVolumeSourceRegistry. + Platform describes the minimum runtime requirements of the image + + :param platform: The platform of this V1beta1DataVolumeSourceRegistry. + :type: V1beta1PlatformOptions + """ + + self._platform = platform + @property def pull_method(self): """ diff --git a/kubevirt/models/v1beta1_data_volume_source_vddk.py b/kubevirt/models/v1beta1_data_volume_source_vddk.py index 9a208b9a..00770890 100644 --- a/kubevirt/models/v1beta1_data_volume_source_vddk.py +++ b/kubevirt/models/v1beta1_data_volume_source_vddk.py @@ -32,6 +32,7 @@ class V1beta1DataVolumeSourceVDDK(object): """ swagger_types = { 'backing_file': 'str', + 'extra_args': 'str', 'init_image_url': 'str', 'secret_ref': 'str', 'thumbprint': 'str', @@ -41,6 +42,7 @@ class V1beta1DataVolumeSourceVDDK(object): attribute_map = { 'backing_file': 'backingFile', + 'extra_args': 'extraArgs', 'init_image_url': 'initImageURL', 'secret_ref': 'secretRef', 'thumbprint': 'thumbprint', @@ -48,12 +50,13 @@ class V1beta1DataVolumeSourceVDDK(object): 'uuid': 'uuid' } - def __init__(self, backing_file=None, init_image_url=None, secret_ref=None, thumbprint=None, url=None, uuid=None): + def __init__(self, backing_file=None, extra_args=None, init_image_url=None, secret_ref=None, thumbprint=None, url=None, uuid=None): """ V1beta1DataVolumeSourceVDDK - a model defined in Swagger """ self._backing_file = None + self._extra_args = None self._init_image_url = None self._secret_ref = None self._thumbprint = None @@ -62,6 +65,8 @@ def __init__(self, backing_file=None, init_image_url=None, secret_ref=None, thum if backing_file is not None: self.backing_file = backing_file + if extra_args is not None: + self.extra_args = extra_args if init_image_url is not None: self.init_image_url = init_image_url if secret_ref is not None: @@ -96,6 +101,29 @@ def backing_file(self, backing_file): self._backing_file = backing_file + @property + def extra_args(self): + """ + Gets the extra_args of this V1beta1DataVolumeSourceVDDK. + ExtraArgs is a reference to a ConfigMap containing extra arguments to pass directly to the VDDK library + + :return: The extra_args of this V1beta1DataVolumeSourceVDDK. + :rtype: str + """ + return self._extra_args + + @extra_args.setter + def extra_args(self, extra_args): + """ + Sets the extra_args of this V1beta1DataVolumeSourceVDDK. + ExtraArgs is a reference to a ConfigMap containing extra arguments to pass directly to the VDDK library + + :param extra_args: The extra_args of this V1beta1DataVolumeSourceVDDK. + :type: str + """ + + self._extra_args = extra_args + @property def init_image_url(self): """ diff --git a/kubevirt/models/v1beta1_platform_options.py b/kubevirt/models/v1beta1_platform_options.py new file mode 100644 index 00000000..6cb78e99 --- /dev/null +++ b/kubevirt/models/v1beta1_platform_options.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1PlatformOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'architecture': 'str' + } + + attribute_map = { + 'architecture': 'architecture' + } + + def __init__(self, architecture=None): + """ + V1beta1PlatformOptions - a model defined in Swagger + """ + + self._architecture = None + + if architecture is not None: + self.architecture = architecture + + @property + def architecture(self): + """ + Gets the architecture of this V1beta1PlatformOptions. + Architecture specifies the image target CPU architecture + + :return: The architecture of this V1beta1PlatformOptions. + :rtype: str + """ + return self._architecture + + @architecture.setter + def architecture(self, architecture): + """ + Sets the architecture of this V1beta1PlatformOptions. + Architecture specifies the image target CPU architecture + + :param architecture: The architecture of this V1beta1PlatformOptions. + :type: str + """ + + self._architecture = architecture + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1beta1PlatformOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 32e61add..ce21bf86 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.7.0-alpha.0-15-g2adc20291a" +VERSION = "v1.7.0-alpha.0-111-ge92685b259" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 011d7514..3321c19c 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.7.0-alpha.0-15-g2adc20291a" +"packageVersion": "v1.7.0-alpha.0-111-ge92685b259" } diff --git a/test/test_v1beta1_platform_options.py b/test/test_v1beta1_platform_options.py new file mode 100644 index 00000000..84553999 --- /dev/null +++ b/test/test_v1beta1_platform_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_platform_options import V1beta1PlatformOptions + + +class TestV1beta1PlatformOptions(unittest.TestCase): + """ V1beta1PlatformOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1PlatformOptions(self): + """ + Test V1beta1PlatformOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_platform_options.V1beta1PlatformOptions() + pass + + +if __name__ == '__main__': + unittest.main() From e1cd3064f0b8da3adc5c1b5e92e160711d4a5629 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Sat, 4 Oct 2025 01:36:59 +0000 Subject: [PATCH 479/521] Client Python update by KubeVirt Prow build 1974284370013327360 --- README.md | 2 +- docs/V1beta1PreferenceRequirements.md | 1 + docs/V1beta1VirtualMachinePreferenceSpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../models/v1beta1_preference_requirements.py | 30 ++++++++++++++++++- ...v1beta1_virtual_machine_preference_spec.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 66 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 25c0e2f0..92187de3 100644 --- a/README.md +++ b/README.md @@ -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.7.0-alpha.0-111-ge92685b259 +- Package version: v1.7.0-alpha.0-163-g1012020359 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1PreferenceRequirements.md b/docs/V1beta1PreferenceRequirements.md index 0d99ae42..c4ca50bc 100644 --- a/docs/V1beta1PreferenceRequirements.md +++ b/docs/V1beta1PreferenceRequirements.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**architecture** | **str** | Required Architecture of the VM referencing this preference | [optional] **cpu** | [**V1beta1CPUPreferenceRequirement**](V1beta1CPUPreferenceRequirement.md) | Required CPU related attributes of the instancetype. | [optional] **memory** | [**V1beta1MemoryPreferenceRequirement**](V1beta1MemoryPreferenceRequirement.md) | Required Memory related attributes of the instancetype. | [optional] diff --git a/docs/V1beta1VirtualMachinePreferenceSpec.md b/docs/V1beta1VirtualMachinePreferenceSpec.md index 122a7d38..c6dd3a86 100644 --- a/docs/V1beta1VirtualMachinePreferenceSpec.md +++ b/docs/V1beta1VirtualMachinePreferenceSpec.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **firmware** | [**V1beta1FirmwarePreferences**](V1beta1FirmwarePreferences.md) | Firmware optionally defines preferences associated with the Firmware attribute of a VirtualMachineInstance DomainSpec | [optional] **machine** | [**V1beta1MachinePreferences**](V1beta1MachinePreferences.md) | Machine optionally defines preferences associated with the Machine attribute of a VirtualMachineInstance DomainSpec | [optional] **prefer_spread_socket_to_core_ratio** | **int** | PreferSpreadSocketToCoreRatio defines the ratio to spread vCPUs between cores and sockets, it defaults to 2. | [optional] +**preferred_architecture** | **str** | PreferredArchitecture defines a prefeerred architecture for the VirtualMachine | [optional] **preferred_subdomain** | **str** | Subdomain of the VirtualMachineInstance | [optional] **preferred_termination_grace_period_seconds** | **int** | Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. | [optional] **requirements** | [**V1beta1PreferenceRequirements**](V1beta1PreferenceRequirements.md) | Requirements defines the minium amount of instance type defined resources required by a set of preferences | [optional] diff --git a/git_push.sh b/git_push.sh index 29fe9e5a..739f4097 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.7.0-alpha.0-111-ge92685b259" + release_note="Auto-generated client v1.7.0-alpha.0-163-g1012020359" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 1101fc3d..f5616ea5 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.7.0-alpha.0-111-ge92685b259/python' + self.user_agent = 'Swagger-Codegen/v1.7.0-alpha.0-163-g1012020359/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index e9d105ae..869a0596 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.7.0-alpha.0-111-ge92685b259".\ + "SDK Package Version: v1.7.0-alpha.0-163-g1012020359".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_preference_requirements.py b/kubevirt/models/v1beta1_preference_requirements.py index 30f5858f..f8367996 100644 --- a/kubevirt/models/v1beta1_preference_requirements.py +++ b/kubevirt/models/v1beta1_preference_requirements.py @@ -31,28 +31,56 @@ class V1beta1PreferenceRequirements(object): and the value is json key in definition. """ swagger_types = { + 'architecture': 'str', 'cpu': 'V1beta1CPUPreferenceRequirement', 'memory': 'V1beta1MemoryPreferenceRequirement' } attribute_map = { + 'architecture': 'architecture', 'cpu': 'cpu', 'memory': 'memory' } - def __init__(self, cpu=None, memory=None): + def __init__(self, architecture=None, cpu=None, memory=None): """ V1beta1PreferenceRequirements - a model defined in Swagger """ + self._architecture = None self._cpu = None self._memory = None + if architecture is not None: + self.architecture = architecture if cpu is not None: self.cpu = cpu if memory is not None: self.memory = memory + @property + def architecture(self): + """ + Gets the architecture of this V1beta1PreferenceRequirements. + Required Architecture of the VM referencing this preference + + :return: The architecture of this V1beta1PreferenceRequirements. + :rtype: str + """ + return self._architecture + + @architecture.setter + def architecture(self, architecture): + """ + Sets the architecture of this V1beta1PreferenceRequirements. + Required Architecture of the VM referencing this preference + + :param architecture: The architecture of this V1beta1PreferenceRequirements. + :type: str + """ + + self._architecture = architecture + @property def cpu(self): """ diff --git a/kubevirt/models/v1beta1_virtual_machine_preference_spec.py b/kubevirt/models/v1beta1_virtual_machine_preference_spec.py index c7e3e3ac..c810caf9 100644 --- a/kubevirt/models/v1beta1_virtual_machine_preference_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_preference_spec.py @@ -39,6 +39,7 @@ class V1beta1VirtualMachinePreferenceSpec(object): 'firmware': 'V1beta1FirmwarePreferences', 'machine': 'V1beta1MachinePreferences', 'prefer_spread_socket_to_core_ratio': 'int', + 'preferred_architecture': 'str', 'preferred_subdomain': 'str', 'preferred_termination_grace_period_seconds': 'int', 'requirements': 'V1beta1PreferenceRequirements', @@ -54,13 +55,14 @@ class V1beta1VirtualMachinePreferenceSpec(object): 'firmware': 'firmware', 'machine': 'machine', 'prefer_spread_socket_to_core_ratio': 'preferSpreadSocketToCoreRatio', + 'preferred_architecture': 'preferredArchitecture', 'preferred_subdomain': 'preferredSubdomain', 'preferred_termination_grace_period_seconds': 'preferredTerminationGracePeriodSeconds', 'requirements': 'requirements', 'volumes': 'volumes' } - def __init__(self, annotations=None, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, prefer_spread_socket_to_core_ratio=None, preferred_subdomain=None, preferred_termination_grace_period_seconds=None, requirements=None, volumes=None): + def __init__(self, annotations=None, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, prefer_spread_socket_to_core_ratio=None, preferred_architecture=None, preferred_subdomain=None, preferred_termination_grace_period_seconds=None, requirements=None, volumes=None): """ V1beta1VirtualMachinePreferenceSpec - a model defined in Swagger """ @@ -73,6 +75,7 @@ def __init__(self, annotations=None, clock=None, cpu=None, devices=None, feature self._firmware = None self._machine = None self._prefer_spread_socket_to_core_ratio = None + self._preferred_architecture = None self._preferred_subdomain = None self._preferred_termination_grace_period_seconds = None self._requirements = None @@ -94,6 +97,8 @@ def __init__(self, annotations=None, clock=None, cpu=None, devices=None, feature self.machine = machine if prefer_spread_socket_to_core_ratio is not None: self.prefer_spread_socket_to_core_ratio = prefer_spread_socket_to_core_ratio + if preferred_architecture is not None: + self.preferred_architecture = preferred_architecture if preferred_subdomain is not None: self.preferred_subdomain = preferred_subdomain if preferred_termination_grace_period_seconds is not None: @@ -287,6 +292,29 @@ def prefer_spread_socket_to_core_ratio(self, prefer_spread_socket_to_core_ratio) self._prefer_spread_socket_to_core_ratio = prefer_spread_socket_to_core_ratio + @property + def preferred_architecture(self): + """ + Gets the preferred_architecture of this V1beta1VirtualMachinePreferenceSpec. + PreferredArchitecture defines a prefeerred architecture for the VirtualMachine + + :return: The preferred_architecture of this V1beta1VirtualMachinePreferenceSpec. + :rtype: str + """ + return self._preferred_architecture + + @preferred_architecture.setter + def preferred_architecture(self, preferred_architecture): + """ + Sets the preferred_architecture of this V1beta1VirtualMachinePreferenceSpec. + PreferredArchitecture defines a prefeerred architecture for the VirtualMachine + + :param preferred_architecture: The preferred_architecture of this V1beta1VirtualMachinePreferenceSpec. + :type: str + """ + + self._preferred_architecture = preferred_architecture + @property def preferred_subdomain(self): """ diff --git a/setup.py b/setup.py index ce21bf86..7ea283ee 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.7.0-alpha.0-111-ge92685b259" +VERSION = "v1.7.0-alpha.0-163-g1012020359" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 3321c19c..b3d4f4a9 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.7.0-alpha.0-111-ge92685b259" +"packageVersion": "v1.7.0-alpha.0-163-g1012020359" } From a7f25aef61c88d047a381587986425d8d8864a94 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Sat, 4 Oct 2025 13:44:59 +0000 Subject: [PATCH 480/521] Client Python update by KubeVirt Prow build 1974468020101189632 --- README.md | 2 +- docs/V1beta1VirtualMachineInstancetypeSpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...beta1_virtual_machine_instancetype_spec.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 92187de3..a4f4ce5b 100644 --- a/README.md +++ b/README.md @@ -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.7.0-alpha.0-163-g1012020359 +- Package version: v1.7.0-alpha.0-168-ge24bd25485 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1VirtualMachineInstancetypeSpec.md b/docs/V1beta1VirtualMachineInstancetypeSpec.md index 3975b7bf..3f28deaf 100644 --- a/docs/V1beta1VirtualMachineInstancetypeSpec.md +++ b/docs/V1beta1VirtualMachineInstancetypeSpec.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **cpu** | [**V1beta1CPUInstancetype**](V1beta1CPUInstancetype.md) | Required CPU related attributes of the instancetype. | **gpus** | [**list[V1GPU]**](V1GPU.md) | Optionally defines any GPU devices associated with the instancetype. | [optional] **host_devices** | [**list[V1HostDevice]**](V1HostDevice.md) | Optionally defines any HostDevices associated with the instancetype. | [optional] +**io_threads** | [**V1DiskIOThreads**](V1DiskIOThreads.md) | Optionally specifies the IOThreads options to be used by the instancetype. | [optional] **io_threads_policy** | **str** | Optionally defines the IOThreadsPolicy to be used by the instancetype. | [optional] **launch_security** | [**V1LaunchSecurity**](V1LaunchSecurity.md) | Optionally defines the LaunchSecurity to be used by the instancetype. | [optional] **memory** | [**V1beta1MemoryInstancetype**](V1beta1MemoryInstancetype.md) | Required Memory related attributes of the instancetype. | diff --git a/git_push.sh b/git_push.sh index 739f4097..a5424eec 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.7.0-alpha.0-163-g1012020359" + release_note="Auto-generated client v1.7.0-alpha.0-168-ge24bd25485" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index f5616ea5..29e26ee9 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.7.0-alpha.0-163-g1012020359/python' + self.user_agent = 'Swagger-Codegen/v1.7.0-alpha.0-168-ge24bd25485/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 869a0596..c85af174 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.7.0-alpha.0-163-g1012020359".\ + "SDK Package Version: v1.7.0-alpha.0-168-ge24bd25485".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_virtual_machine_instancetype_spec.py b/kubevirt/models/v1beta1_virtual_machine_instancetype_spec.py index 54ae8a98..798f0713 100644 --- a/kubevirt/models/v1beta1_virtual_machine_instancetype_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_instancetype_spec.py @@ -35,6 +35,7 @@ class V1beta1VirtualMachineInstancetypeSpec(object): 'cpu': 'V1beta1CPUInstancetype', 'gpus': 'list[V1GPU]', 'host_devices': 'list[V1HostDevice]', + 'io_threads': 'V1DiskIOThreads', 'io_threads_policy': 'str', 'launch_security': 'V1LaunchSecurity', 'memory': 'V1beta1MemoryInstancetype', @@ -47,6 +48,7 @@ class V1beta1VirtualMachineInstancetypeSpec(object): 'cpu': 'cpu', 'gpus': 'gpus', 'host_devices': 'hostDevices', + 'io_threads': 'ioThreads', 'io_threads_policy': 'ioThreadsPolicy', 'launch_security': 'launchSecurity', 'memory': 'memory', @@ -54,7 +56,7 @@ class V1beta1VirtualMachineInstancetypeSpec(object): 'scheduler_name': 'schedulerName' } - def __init__(self, annotations=None, cpu=None, gpus=None, host_devices=None, io_threads_policy=None, launch_security=None, memory=None, node_selector=None, scheduler_name=None): + def __init__(self, annotations=None, cpu=None, gpus=None, host_devices=None, io_threads=None, io_threads_policy=None, launch_security=None, memory=None, node_selector=None, scheduler_name=None): """ V1beta1VirtualMachineInstancetypeSpec - a model defined in Swagger """ @@ -63,6 +65,7 @@ def __init__(self, annotations=None, cpu=None, gpus=None, host_devices=None, io_ self._cpu = None self._gpus = None self._host_devices = None + self._io_threads = None self._io_threads_policy = None self._launch_security = None self._memory = None @@ -76,6 +79,8 @@ def __init__(self, annotations=None, cpu=None, gpus=None, host_devices=None, io_ self.gpus = gpus if host_devices is not None: self.host_devices = host_devices + if io_threads is not None: + self.io_threads = io_threads if io_threads_policy is not None: self.io_threads_policy = io_threads_policy if launch_security is not None: @@ -180,6 +185,29 @@ def host_devices(self, host_devices): self._host_devices = host_devices + @property + def io_threads(self): + """ + Gets the io_threads of this V1beta1VirtualMachineInstancetypeSpec. + Optionally specifies the IOThreads options to be used by the instancetype. + + :return: The io_threads of this V1beta1VirtualMachineInstancetypeSpec. + :rtype: V1DiskIOThreads + """ + return self._io_threads + + @io_threads.setter + def io_threads(self, io_threads): + """ + Sets the io_threads of this V1beta1VirtualMachineInstancetypeSpec. + Optionally specifies the IOThreads options to be used by the instancetype. + + :param io_threads: The io_threads of this V1beta1VirtualMachineInstancetypeSpec. + :type: V1DiskIOThreads + """ + + self._io_threads = io_threads + @property def io_threads_policy(self): """ diff --git a/setup.py b/setup.py index 7ea283ee..47a0ab73 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.7.0-alpha.0-163-g1012020359" +VERSION = "v1.7.0-alpha.0-168-ge24bd25485" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b3d4f4a9..6392d047 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.7.0-alpha.0-163-g1012020359" +"packageVersion": "v1.7.0-alpha.0-168-ge24bd25485" } From 92ff7216e55104ef4f5ee02bb93c8831ef7c3fdb Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Tue, 21 Oct 2025 20:07:54 +0000 Subject: [PATCH 481/521] Client Python update by KubeVirt Prow build 1980724666968313856 --- README.md | 2 +- docs/V1CustomBlockSize.md | 5 ++-- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_custom_block_size.py | 38 ++++++++++++++++++++----- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 40 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index a4f4ce5b..6801a90e 100644 --- a/README.md +++ b/README.md @@ -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.7.0-alpha.0-168-ge24bd25485 +- Package version: v1.7.0-beta.0-96-g79be18cf54 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1CustomBlockSize.md b/docs/V1CustomBlockSize.md index fae3d34f..4d4a3bb3 100644 --- a/docs/V1CustomBlockSize.md +++ b/docs/V1CustomBlockSize.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**logical** | **int** | | [default to 0] -**physical** | **int** | | [default to 0] +**discard_granularity** | **int** | | [optional] +**logical** | **int** | | [optional] +**physical** | **int** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index a5424eec..ba32bf27 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.7.0-alpha.0-168-ge24bd25485" + release_note="Auto-generated client v1.7.0-beta.0-96-g79be18cf54" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 29e26ee9..d4271a42 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.7.0-alpha.0-168-ge24bd25485/python' + self.user_agent = 'Swagger-Codegen/v1.7.0-beta.0-96-g79be18cf54/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c85af174..bfc187ad 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.7.0-alpha.0-168-ge24bd25485".\ + "SDK Package Version: v1.7.0-beta.0-96-g79be18cf54".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_custom_block_size.py b/kubevirt/models/v1_custom_block_size.py index b9729754..e1fb6f58 100644 --- a/kubevirt/models/v1_custom_block_size.py +++ b/kubevirt/models/v1_custom_block_size.py @@ -31,25 +31,53 @@ class V1CustomBlockSize(object): and the value is json key in definition. """ swagger_types = { + 'discard_granularity': 'int', 'logical': 'int', 'physical': 'int' } attribute_map = { + 'discard_granularity': 'discardGranularity', 'logical': 'logical', 'physical': 'physical' } - def __init__(self, logical=0, physical=0): + def __init__(self, discard_granularity=None, logical=None, physical=None): """ V1CustomBlockSize - a model defined in Swagger """ + self._discard_granularity = None self._logical = None self._physical = None - self.logical = logical - self.physical = physical + if discard_granularity is not None: + self.discard_granularity = discard_granularity + if logical is not None: + self.logical = logical + if physical is not None: + self.physical = physical + + @property + def discard_granularity(self): + """ + Gets the discard_granularity of this V1CustomBlockSize. + + :return: The discard_granularity of this V1CustomBlockSize. + :rtype: int + """ + return self._discard_granularity + + @discard_granularity.setter + def discard_granularity(self, discard_granularity): + """ + Sets the discard_granularity of this V1CustomBlockSize. + + :param discard_granularity: The discard_granularity of this V1CustomBlockSize. + :type: int + """ + + self._discard_granularity = discard_granularity @property def logical(self): @@ -69,8 +97,6 @@ def logical(self, logical): :param logical: The logical of this V1CustomBlockSize. :type: int """ - if logical is None: - raise ValueError("Invalid value for `logical`, must not be `None`") self._logical = logical @@ -92,8 +118,6 @@ def physical(self, physical): :param physical: The physical of this V1CustomBlockSize. :type: int """ - if physical is None: - raise ValueError("Invalid value for `physical`, must not be `None`") self._physical = physical diff --git a/setup.py b/setup.py index 47a0ab73..6bde728c 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.7.0-alpha.0-168-ge24bd25485" +VERSION = "v1.7.0-beta.0-96-g79be18cf54" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 6392d047..7c32c2b1 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.7.0-alpha.0-168-ge24bd25485" +"packageVersion": "v1.7.0-beta.0-96-g79be18cf54" } From 14a258b45b973e7f1b5029c1dd35b484b7a3a84c Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 23 Oct 2025 14:02:01 +0000 Subject: [PATCH 482/521] Client Python update by KubeVirt Prow build 1981350805185236992 --- README.md | 3 +- docs/V1LaunchSecurity.md | 1 + docs/V1SEVSNP.md | 9 +++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_launch_security.py | 34 ++++++++- kubevirt/models/v1_sevsnp.py | 99 +++++++++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_sevsnp.py | 44 ++++++++++++ 14 files changed, 196 insertions(+), 9 deletions(-) create mode 100644 docs/V1SEVSNP.md create mode 100644 kubevirt/models/v1_sevsnp.py create mode 100644 test/test_v1_sevsnp.py diff --git a/README.md b/README.md index 6801a90e..77830079 100644 --- a/README.md +++ b/README.md @@ -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.7.0-beta.0-96-g79be18cf54 +- Package version: v1.7.0-beta.0-113-ge34f483964 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -561,6 +561,7 @@ Class | Method | HTTP request | Description - [V1SEVMeasurementInfo](docs/V1SEVMeasurementInfo.md) - [V1SEVPlatformInfo](docs/V1SEVPlatformInfo.md) - [V1SEVPolicy](docs/V1SEVPolicy.md) + - [V1SEVSNP](docs/V1SEVSNP.md) - [V1SEVSecretOptions](docs/V1SEVSecretOptions.md) - [V1SEVSessionOptions](docs/V1SEVSessionOptions.md) - [V1SMBiosConfiguration](docs/V1SMBiosConfiguration.md) diff --git a/docs/V1LaunchSecurity.md b/docs/V1LaunchSecurity.md index 72cd51d8..dd04a931 100644 --- a/docs/V1LaunchSecurity.md +++ b/docs/V1LaunchSecurity.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **sev** | [**V1SEV**](V1SEV.md) | AMD Secure Encrypted Virtualization (SEV). | [optional] +**snp** | [**V1SEVSNP**](V1SEVSNP.md) | AMD SEV-SNP flags defined by the SEV-SNP specifications. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1SEVSNP.md b/docs/V1SEVSNP.md new file mode 100644 index 00000000..069a0561 --- /dev/null +++ b/docs/V1SEVSNP.md @@ -0,0 +1,9 @@ +# V1SEVSNP + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index ba32bf27..39ad0960 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.7.0-beta.0-96-g79be18cf54" + release_note="Auto-generated client v1.7.0-beta.0-113-ge34f483964" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index e4f118c4..a35c856c 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -675,6 +675,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_sev_policy.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sev_policy.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SEVPolicy.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_sevsnp.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sevsnp.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SEVSNP.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_sev_secret_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sev_secret_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SEVSecretOptions.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 452d4a73..8251e1a3 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -232,6 +232,7 @@ from .models.v1_sev_measurement_info import V1SEVMeasurementInfo from .models.v1_sev_platform_info import V1SEVPlatformInfo from .models.v1_sev_policy import V1SEVPolicy +from .models.v1_sevsnp import V1SEVSNP from .models.v1_sev_secret_options import V1SEVSecretOptions from .models.v1_sev_session_options import V1SEVSessionOptions from .models.v1_sm_bios_configuration import V1SMBiosConfiguration diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index d4271a42..32847a05 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.7.0-beta.0-96-g79be18cf54/python' + self.user_agent = 'Swagger-Codegen/v1.7.0-beta.0-113-ge34f483964/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index bfc187ad..d9f9e735 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.7.0-beta.0-96-g79be18cf54".\ + "SDK Package Version: v1.7.0-beta.0-113-ge34f483964".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 05581c18..d22bcaa9 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -232,6 +232,7 @@ from .v1_sev_measurement_info import V1SEVMeasurementInfo from .v1_sev_platform_info import V1SEVPlatformInfo from .v1_sev_policy import V1SEVPolicy +from .v1_sevsnp import V1SEVSNP from .v1_sev_secret_options import V1SEVSecretOptions from .v1_sev_session_options import V1SEVSessionOptions from .v1_sm_bios_configuration import V1SMBiosConfiguration diff --git a/kubevirt/models/v1_launch_security.py b/kubevirt/models/v1_launch_security.py index 37a1d552..7cd824f6 100644 --- a/kubevirt/models/v1_launch_security.py +++ b/kubevirt/models/v1_launch_security.py @@ -31,22 +31,27 @@ class V1LaunchSecurity(object): and the value is json key in definition. """ swagger_types = { - 'sev': 'V1SEV' + 'sev': 'V1SEV', + 'snp': 'V1SEVSNP' } attribute_map = { - 'sev': 'sev' + 'sev': 'sev', + 'snp': 'snp' } - def __init__(self, sev=None): + def __init__(self, sev=None, snp=None): """ V1LaunchSecurity - a model defined in Swagger """ self._sev = None + self._snp = None if sev is not None: self.sev = sev + if snp is not None: + self.snp = snp @property def sev(self): @@ -71,6 +76,29 @@ def sev(self, sev): self._sev = sev + @property + def snp(self): + """ + Gets the snp of this V1LaunchSecurity. + AMD SEV-SNP flags defined by the SEV-SNP specifications. + + :return: The snp of this V1LaunchSecurity. + :rtype: V1SEVSNP + """ + return self._snp + + @snp.setter + def snp(self, snp): + """ + Sets the snp of this V1LaunchSecurity. + AMD SEV-SNP flags defined by the SEV-SNP specifications. + + :param snp: The snp of this V1LaunchSecurity. + :type: V1SEVSNP + """ + + self._snp = snp + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_sevsnp.py b/kubevirt/models/v1_sevsnp.py new file mode 100644 index 00000000..a8abfc12 --- /dev/null +++ b/kubevirt/models/v1_sevsnp.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SEVSNP(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1SEVSNP - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1SEVSNP): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 6bde728c..00b49d4e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.7.0-beta.0-96-g79be18cf54" +VERSION = "v1.7.0-beta.0-113-ge34f483964" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 7c32c2b1..f2f5d2a4 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.7.0-beta.0-96-g79be18cf54" +"packageVersion": "v1.7.0-beta.0-113-ge34f483964" } diff --git a/test/test_v1_sevsnp.py b/test/test_v1_sevsnp.py new file mode 100644 index 00000000..8c4b860c --- /dev/null +++ b/test/test_v1_sevsnp.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_sevsnp import V1SEVSNP + + +class TestV1SEVSNP(unittest.TestCase): + """ V1SEVSNP unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SEVSNP(self): + """ + Test V1SEVSNP + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_sevsnp.V1SEVSNP() + pass + + +if __name__ == '__main__': + unittest.main() From 23b7509a1e0f0640d381d6f4c6887a15a678a3dd Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Mon, 27 Oct 2025 16:02:44 +0000 Subject: [PATCH 483/521] Client Python update by KubeVirt Prow build 1982836101810753536 --- README.md | 7 +- ...rtualMachineOpportunisticUpdateStrategy.md | 9 + ...rtualMachinePoolProactiveUpdateStrategy.md | 10 + ...alpha1VirtualMachinePoolSelectionPolicy.md | 3 +- docs/V1alpha1VirtualMachinePoolSelectors.md | 11 ++ docs/V1alpha1VirtualMachinePoolSpec.md | 1 + ...pha1VirtualMachinePoolUnmanagedStrategy.md | 9 + ...1alpha1VirtualMachinePoolUpdateStrategy.md | 12 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 15 ++ kubevirt/__init__.py | 5 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 5 + ...l_machine_opportunistic_update_strategy.py | 99 ++++++++++ ..._machine_pool_proactive_update_strategy.py | 125 ++++++++++++ ...1_virtual_machine_pool_selection_policy.py | 62 ++++-- ...v1alpha1_virtual_machine_pool_selectors.py | 153 +++++++++++++++ .../v1alpha1_virtual_machine_pool_spec.py | 30 ++- ...virtual_machine_pool_unmanaged_strategy.py | 99 ++++++++++ ...a1_virtual_machine_pool_update_strategy.py | 181 ++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- ...l_machine_opportunistic_update_strategy.py | 44 +++++ ..._machine_pool_proactive_update_strategy.py | 44 +++++ ...v1alpha1_virtual_machine_pool_selectors.py | 44 +++++ ...virtual_machine_pool_unmanaged_strategy.py | 44 +++++ ...a1_virtual_machine_pool_update_strategy.py | 44 +++++ 28 files changed, 1041 insertions(+), 25 deletions(-) create mode 100644 docs/V1alpha1VirtualMachineOpportunisticUpdateStrategy.md create mode 100644 docs/V1alpha1VirtualMachinePoolProactiveUpdateStrategy.md create mode 100644 docs/V1alpha1VirtualMachinePoolSelectors.md create mode 100644 docs/V1alpha1VirtualMachinePoolUnmanagedStrategy.md create mode 100644 docs/V1alpha1VirtualMachinePoolUpdateStrategy.md create mode 100644 kubevirt/models/v1alpha1_virtual_machine_opportunistic_update_strategy.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_pool_proactive_update_strategy.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_pool_selectors.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_pool_unmanaged_strategy.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_pool_update_strategy.py create mode 100644 test/test_v1alpha1_virtual_machine_opportunistic_update_strategy.py create mode 100644 test/test_v1alpha1_virtual_machine_pool_proactive_update_strategy.py create mode 100644 test/test_v1alpha1_virtual_machine_pool_selectors.py create mode 100644 test/test_v1alpha1_virtual_machine_pool_unmanaged_strategy.py create mode 100644 test/test_v1alpha1_virtual_machine_pool_update_strategy.py diff --git a/README.md b/README.md index 77830079..b32ff577 100644 --- a/README.md +++ b/README.md @@ -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.7.0-beta.0-113-ge34f483964 +- Package version: v1.7.0-beta.0-145-gbf4149cb87 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -650,15 +650,20 @@ Class | Method | HTTP request | Description - [V1alpha1MigrationPolicySpec](docs/V1alpha1MigrationPolicySpec.md) - [V1alpha1MigrationPolicyStatus](docs/V1alpha1MigrationPolicyStatus.md) - [V1alpha1Selectors](docs/V1alpha1Selectors.md) + - [V1alpha1VirtualMachineOpportunisticUpdateStrategy](docs/V1alpha1VirtualMachineOpportunisticUpdateStrategy.md) - [V1alpha1VirtualMachinePool](docs/V1alpha1VirtualMachinePool.md) - [V1alpha1VirtualMachinePoolCondition](docs/V1alpha1VirtualMachinePoolCondition.md) - [V1alpha1VirtualMachinePoolList](docs/V1alpha1VirtualMachinePoolList.md) - [V1alpha1VirtualMachinePoolNameGeneration](docs/V1alpha1VirtualMachinePoolNameGeneration.md) - [V1alpha1VirtualMachinePoolProactiveScaleInStrategy](docs/V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md) + - [V1alpha1VirtualMachinePoolProactiveUpdateStrategy](docs/V1alpha1VirtualMachinePoolProactiveUpdateStrategy.md) - [V1alpha1VirtualMachinePoolScaleInStrategy](docs/V1alpha1VirtualMachinePoolScaleInStrategy.md) - [V1alpha1VirtualMachinePoolSelectionPolicy](docs/V1alpha1VirtualMachinePoolSelectionPolicy.md) + - [V1alpha1VirtualMachinePoolSelectors](docs/V1alpha1VirtualMachinePoolSelectors.md) - [V1alpha1VirtualMachinePoolSpec](docs/V1alpha1VirtualMachinePoolSpec.md) - [V1alpha1VirtualMachinePoolStatus](docs/V1alpha1VirtualMachinePoolStatus.md) + - [V1alpha1VirtualMachinePoolUnmanagedStrategy](docs/V1alpha1VirtualMachinePoolUnmanagedStrategy.md) + - [V1alpha1VirtualMachinePoolUpdateStrategy](docs/V1alpha1VirtualMachinePoolUpdateStrategy.md) - [V1alpha1VirtualMachineTemplateSpec](docs/V1alpha1VirtualMachineTemplateSpec.md) - [V1beta1CPUInstancetype](docs/V1beta1CPUInstancetype.md) - [V1beta1CPUPreferenceRequirement](docs/V1beta1CPUPreferenceRequirement.md) diff --git a/docs/V1alpha1VirtualMachineOpportunisticUpdateStrategy.md b/docs/V1alpha1VirtualMachineOpportunisticUpdateStrategy.md new file mode 100644 index 00000000..94247c5b --- /dev/null +++ b/docs/V1alpha1VirtualMachineOpportunisticUpdateStrategy.md @@ -0,0 +1,9 @@ +# V1alpha1VirtualMachineOpportunisticUpdateStrategy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachinePoolProactiveUpdateStrategy.md b/docs/V1alpha1VirtualMachinePoolProactiveUpdateStrategy.md new file mode 100644 index 00000000..0a6e3c4b --- /dev/null +++ b/docs/V1alpha1VirtualMachinePoolProactiveUpdateStrategy.md @@ -0,0 +1,10 @@ +# V1alpha1VirtualMachinePoolProactiveUpdateStrategy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**selection_policy** | [**V1alpha1VirtualMachinePoolSelectionPolicy**](V1alpha1VirtualMachinePoolSelectionPolicy.md) | SelectionPolicy defines the priority in which VM instances are selected for proactive update Defaults to \"Random\" base policy when no SelectionPolicy is configured | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachinePoolSelectionPolicy.md b/docs/V1alpha1VirtualMachinePoolSelectionPolicy.md index a49a304e..02d91d9d 100644 --- a/docs/V1alpha1VirtualMachinePoolSelectionPolicy.md +++ b/docs/V1alpha1VirtualMachinePoolSelectionPolicy.md @@ -3,7 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**base_policy** | **str** | BasePolicy is a catch-all policy [Random|DescendingOrder] | [optional] +**selectors** | [**V1alpha1VirtualMachinePoolSelectors**](V1alpha1VirtualMachinePoolSelectors.md) | Selectors is a list of selection policies. | [optional] +**sort_policy** | **str** | SortPolicy is a catch-all policy [AscendingOrder|DescendingOrder|Newest|Oldest|Random] | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachinePoolSelectors.md b/docs/V1alpha1VirtualMachinePoolSelectors.md new file mode 100644 index 00000000..ca6eb4fb --- /dev/null +++ b/docs/V1alpha1VirtualMachinePoolSelectors.md @@ -0,0 +1,11 @@ +# V1alpha1VirtualMachinePoolSelectors + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**label_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | LabelSelector is a list of label selector for VMs. | [optional] +**node_selector_requirement_matcher** | [**list[K8sIoApiCoreV1NodeSelectorRequirement]**](K8sIoApiCoreV1NodeSelectorRequirement.md) | NodeSelectorRequirementMatcher is a list of node selector requirement for VMs. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachinePoolSpec.md b/docs/V1alpha1VirtualMachinePoolSpec.md index 89fc56b1..a44706fd 100644 --- a/docs/V1alpha1VirtualMachinePoolSpec.md +++ b/docs/V1alpha1VirtualMachinePoolSpec.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **replicas** | **int** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] **scale_in_strategy** | [**V1alpha1VirtualMachinePoolScaleInStrategy**](V1alpha1VirtualMachinePoolScaleInStrategy.md) | ScaleInStrategy specifies how the VMPool controller manages scaling in VMs within a VMPool | [optional] **selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | Label selector for pods. Existing Poolss whose pods are selected by this will be the ones affected by this deployment. | +**update_strategy** | [**V1alpha1VirtualMachinePoolUpdateStrategy**](V1alpha1VirtualMachinePoolUpdateStrategy.md) | UpdateStrategy specifies how the VMPool controller manages updating VMs within a VMPool | [optional] **virtual_machine_template** | [**V1alpha1VirtualMachineTemplateSpec**](V1alpha1VirtualMachineTemplateSpec.md) | Template describes the VM that will be created. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachinePoolUnmanagedStrategy.md b/docs/V1alpha1VirtualMachinePoolUnmanagedStrategy.md new file mode 100644 index 00000000..5ab02d16 --- /dev/null +++ b/docs/V1alpha1VirtualMachinePoolUnmanagedStrategy.md @@ -0,0 +1,9 @@ +# V1alpha1VirtualMachinePoolUnmanagedStrategy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachinePoolUpdateStrategy.md b/docs/V1alpha1VirtualMachinePoolUpdateStrategy.md new file mode 100644 index 00000000..ede54fe0 --- /dev/null +++ b/docs/V1alpha1VirtualMachinePoolUpdateStrategy.md @@ -0,0 +1,12 @@ +# V1alpha1VirtualMachinePoolUpdateStrategy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**opportunistic** | [**V1alpha1VirtualMachineOpportunisticUpdateStrategy**](V1alpha1VirtualMachineOpportunisticUpdateStrategy.md) | Opportunistic update only gets applied to the VM, VMI is updated naturally upon the restart. Whereas proactive it applies both the VM and VMI right away. | [optional] +**proactive** | [**V1alpha1VirtualMachinePoolProactiveUpdateStrategy**](V1alpha1VirtualMachinePoolProactiveUpdateStrategy.md) | Proactive update by forcing the VMs to restart during update | [optional] +**unmanaged** | [**V1alpha1VirtualMachinePoolUnmanagedStrategy**](V1alpha1VirtualMachinePoolUnmanagedStrategy.md) | Unmanaged indicates that no automatic update of VMs within a VMPool is performed. When this is set, the VMPool controller will not update the VMs within the pool. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 39ad0960..fbf0a06f 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.7.0-beta.0-113-ge34f483964" + release_note="Auto-generated client v1.7.0-beta.0-145-gbf4149cb87" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index a35c856c..c74f72eb 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -942,6 +942,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/v1alpha1_selectors.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_selectors.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1Selectors.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_opportunistic_update_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_opportunistic_update_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineOpportunisticUpdateStrategy.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePool.md @@ -957,18 +960,30 @@ 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/v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_proactive_update_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_proactive_update_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolProactiveUpdateStrategy.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_scale_in_strategy.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_scale_in_strategy.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolScaleInStrategy.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_selection_policy.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_selection_policy.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolSelectionPolicy.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_selectors.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_selectors.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolSelectors.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolSpec.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_unmanaged_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_unmanaged_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolUnmanagedStrategy.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_update_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_update_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolUpdateStrategy.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_template_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_template_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineTemplateSpec.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 8251e1a3..559e259d 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -321,15 +321,20 @@ from .models.v1alpha1_migration_policy_spec import V1alpha1MigrationPolicySpec from .models.v1alpha1_migration_policy_status import V1alpha1MigrationPolicyStatus from .models.v1alpha1_selectors import V1alpha1Selectors +from .models.v1alpha1_virtual_machine_opportunistic_update_strategy import V1alpha1VirtualMachineOpportunisticUpdateStrategy from .models.v1alpha1_virtual_machine_pool import V1alpha1VirtualMachinePool from .models.v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition from .models.v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList from .models.v1alpha1_virtual_machine_pool_name_generation import V1alpha1VirtualMachinePoolNameGeneration from .models.v1alpha1_virtual_machine_pool_proactive_scale_in_strategy import V1alpha1VirtualMachinePoolProactiveScaleInStrategy +from .models.v1alpha1_virtual_machine_pool_proactive_update_strategy import V1alpha1VirtualMachinePoolProactiveUpdateStrategy from .models.v1alpha1_virtual_machine_pool_scale_in_strategy import V1alpha1VirtualMachinePoolScaleInStrategy from .models.v1alpha1_virtual_machine_pool_selection_policy import V1alpha1VirtualMachinePoolSelectionPolicy +from .models.v1alpha1_virtual_machine_pool_selectors import V1alpha1VirtualMachinePoolSelectors from .models.v1alpha1_virtual_machine_pool_spec import V1alpha1VirtualMachinePoolSpec from .models.v1alpha1_virtual_machine_pool_status import V1alpha1VirtualMachinePoolStatus +from .models.v1alpha1_virtual_machine_pool_unmanaged_strategy import V1alpha1VirtualMachinePoolUnmanagedStrategy +from .models.v1alpha1_virtual_machine_pool_update_strategy import V1alpha1VirtualMachinePoolUpdateStrategy from .models.v1alpha1_virtual_machine_template_spec import V1alpha1VirtualMachineTemplateSpec from .models.v1beta1_cpu_instancetype import V1beta1CPUInstancetype from .models.v1beta1_cpu_preference_requirement import V1beta1CPUPreferenceRequirement diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 32847a05..e2b3c080 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.7.0-beta.0-113-ge34f483964/python' + self.user_agent = 'Swagger-Codegen/v1.7.0-beta.0-145-gbf4149cb87/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index d9f9e735..aa7698ca 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.7.0-beta.0-113-ge34f483964".\ + "SDK Package Version: v1.7.0-beta.0-145-gbf4149cb87".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index d22bcaa9..a6ba64a4 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -321,15 +321,20 @@ from .v1alpha1_migration_policy_spec import V1alpha1MigrationPolicySpec from .v1alpha1_migration_policy_status import V1alpha1MigrationPolicyStatus from .v1alpha1_selectors import V1alpha1Selectors +from .v1alpha1_virtual_machine_opportunistic_update_strategy import V1alpha1VirtualMachineOpportunisticUpdateStrategy from .v1alpha1_virtual_machine_pool import V1alpha1VirtualMachinePool from .v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition from .v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList from .v1alpha1_virtual_machine_pool_name_generation import V1alpha1VirtualMachinePoolNameGeneration from .v1alpha1_virtual_machine_pool_proactive_scale_in_strategy import V1alpha1VirtualMachinePoolProactiveScaleInStrategy +from .v1alpha1_virtual_machine_pool_proactive_update_strategy import V1alpha1VirtualMachinePoolProactiveUpdateStrategy from .v1alpha1_virtual_machine_pool_scale_in_strategy import V1alpha1VirtualMachinePoolScaleInStrategy from .v1alpha1_virtual_machine_pool_selection_policy import V1alpha1VirtualMachinePoolSelectionPolicy +from .v1alpha1_virtual_machine_pool_selectors import V1alpha1VirtualMachinePoolSelectors from .v1alpha1_virtual_machine_pool_spec import V1alpha1VirtualMachinePoolSpec from .v1alpha1_virtual_machine_pool_status import V1alpha1VirtualMachinePoolStatus +from .v1alpha1_virtual_machine_pool_unmanaged_strategy import V1alpha1VirtualMachinePoolUnmanagedStrategy +from .v1alpha1_virtual_machine_pool_update_strategy import V1alpha1VirtualMachinePoolUpdateStrategy from .v1alpha1_virtual_machine_template_spec import V1alpha1VirtualMachineTemplateSpec from .v1beta1_cpu_instancetype import V1beta1CPUInstancetype from .v1beta1_cpu_preference_requirement import V1beta1CPUPreferenceRequirement diff --git a/kubevirt/models/v1alpha1_virtual_machine_opportunistic_update_strategy.py b/kubevirt/models/v1alpha1_virtual_machine_opportunistic_update_strategy.py new file mode 100644 index 00000000..cf861815 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_opportunistic_update_strategy.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineOpportunisticUpdateStrategy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1alpha1VirtualMachineOpportunisticUpdateStrategy - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineOpportunisticUpdateStrategy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_proactive_update_strategy.py b/kubevirt/models/v1alpha1_virtual_machine_pool_proactive_update_strategy.py new file mode 100644 index 00000000..e1f4bdda --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_pool_proactive_update_strategy.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachinePoolProactiveUpdateStrategy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'selection_policy': 'V1alpha1VirtualMachinePoolSelectionPolicy' + } + + attribute_map = { + 'selection_policy': 'selectionPolicy' + } + + def __init__(self, selection_policy=None): + """ + V1alpha1VirtualMachinePoolProactiveUpdateStrategy - a model defined in Swagger + """ + + self._selection_policy = None + + if selection_policy is not None: + self.selection_policy = selection_policy + + @property + def selection_policy(self): + """ + Gets the selection_policy of this V1alpha1VirtualMachinePoolProactiveUpdateStrategy. + SelectionPolicy defines the priority in which VM instances are selected for proactive update Defaults to \"Random\" base policy when no SelectionPolicy is configured + + :return: The selection_policy of this V1alpha1VirtualMachinePoolProactiveUpdateStrategy. + :rtype: V1alpha1VirtualMachinePoolSelectionPolicy + """ + return self._selection_policy + + @selection_policy.setter + def selection_policy(self, selection_policy): + """ + Sets the selection_policy of this V1alpha1VirtualMachinePoolProactiveUpdateStrategy. + SelectionPolicy defines the priority in which VM instances are selected for proactive update Defaults to \"Random\" base policy when no SelectionPolicy is configured + + :param selection_policy: The selection_policy of this V1alpha1VirtualMachinePoolProactiveUpdateStrategy. + :type: V1alpha1VirtualMachinePoolSelectionPolicy + """ + + self._selection_policy = selection_policy + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachinePoolProactiveUpdateStrategy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_selection_policy.py b/kubevirt/models/v1alpha1_virtual_machine_pool_selection_policy.py index 73f5f72c..e8e7d699 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_selection_policy.py +++ b/kubevirt/models/v1alpha1_virtual_machine_pool_selection_policy.py @@ -31,45 +31,73 @@ class V1alpha1VirtualMachinePoolSelectionPolicy(object): and the value is json key in definition. """ swagger_types = { - 'base_policy': 'str' + 'selectors': 'V1alpha1VirtualMachinePoolSelectors', + 'sort_policy': 'str' } attribute_map = { - 'base_policy': 'basePolicy' + 'selectors': 'selectors', + 'sort_policy': 'sortPolicy' } - def __init__(self, base_policy=None): + def __init__(self, selectors=None, sort_policy=None): """ V1alpha1VirtualMachinePoolSelectionPolicy - a model defined in Swagger """ - self._base_policy = None + self._selectors = None + self._sort_policy = None - if base_policy is not None: - self.base_policy = base_policy + if selectors is not None: + self.selectors = selectors + if sort_policy is not None: + self.sort_policy = sort_policy @property - def base_policy(self): + def selectors(self): """ - Gets the base_policy of this V1alpha1VirtualMachinePoolSelectionPolicy. - BasePolicy is a catch-all policy [Random|DescendingOrder] + Gets the selectors of this V1alpha1VirtualMachinePoolSelectionPolicy. + Selectors is a list of selection policies. - :return: The base_policy of this V1alpha1VirtualMachinePoolSelectionPolicy. + :return: The selectors of this V1alpha1VirtualMachinePoolSelectionPolicy. + :rtype: V1alpha1VirtualMachinePoolSelectors + """ + return self._selectors + + @selectors.setter + def selectors(self, selectors): + """ + Sets the selectors of this V1alpha1VirtualMachinePoolSelectionPolicy. + Selectors is a list of selection policies. + + :param selectors: The selectors of this V1alpha1VirtualMachinePoolSelectionPolicy. + :type: V1alpha1VirtualMachinePoolSelectors + """ + + self._selectors = selectors + + @property + def sort_policy(self): + """ + Gets the sort_policy of this V1alpha1VirtualMachinePoolSelectionPolicy. + SortPolicy is a catch-all policy [AscendingOrder|DescendingOrder|Newest|Oldest|Random] + + :return: The sort_policy of this V1alpha1VirtualMachinePoolSelectionPolicy. :rtype: str """ - return self._base_policy + return self._sort_policy - @base_policy.setter - def base_policy(self, base_policy): + @sort_policy.setter + def sort_policy(self, sort_policy): """ - Sets the base_policy of this V1alpha1VirtualMachinePoolSelectionPolicy. - BasePolicy is a catch-all policy [Random|DescendingOrder] + Sets the sort_policy of this V1alpha1VirtualMachinePoolSelectionPolicy. + SortPolicy is a catch-all policy [AscendingOrder|DescendingOrder|Newest|Oldest|Random] - :param base_policy: The base_policy of this V1alpha1VirtualMachinePoolSelectionPolicy. + :param sort_policy: The sort_policy of this V1alpha1VirtualMachinePoolSelectionPolicy. :type: str """ - self._base_policy = base_policy + self._sort_policy = sort_policy def to_dict(self): """ diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_selectors.py b/kubevirt/models/v1alpha1_virtual_machine_pool_selectors.py new file mode 100644 index 00000000..4a30c738 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_pool_selectors.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachinePoolSelectors(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'label_selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', + 'node_selector_requirement_matcher': 'list[K8sIoApiCoreV1NodeSelectorRequirement]' + } + + attribute_map = { + 'label_selector': 'labelSelector', + 'node_selector_requirement_matcher': 'nodeSelectorRequirementMatcher' + } + + def __init__(self, label_selector=None, node_selector_requirement_matcher=None): + """ + V1alpha1VirtualMachinePoolSelectors - a model defined in Swagger + """ + + self._label_selector = None + self._node_selector_requirement_matcher = None + + if label_selector is not None: + self.label_selector = label_selector + if node_selector_requirement_matcher is not None: + self.node_selector_requirement_matcher = node_selector_requirement_matcher + + @property + def label_selector(self): + """ + Gets the label_selector of this V1alpha1VirtualMachinePoolSelectors. + LabelSelector is a list of label selector for VMs. + + :return: The label_selector of this V1alpha1VirtualMachinePoolSelectors. + :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + return self._label_selector + + @label_selector.setter + def label_selector(self, label_selector): + """ + Sets the label_selector of this V1alpha1VirtualMachinePoolSelectors. + LabelSelector is a list of label selector for VMs. + + :param label_selector: The label_selector of this V1alpha1VirtualMachinePoolSelectors. + :type: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + + self._label_selector = label_selector + + @property + def node_selector_requirement_matcher(self): + """ + Gets the node_selector_requirement_matcher of this V1alpha1VirtualMachinePoolSelectors. + NodeSelectorRequirementMatcher is a list of node selector requirement for VMs. + + :return: The node_selector_requirement_matcher of this V1alpha1VirtualMachinePoolSelectors. + :rtype: list[K8sIoApiCoreV1NodeSelectorRequirement] + """ + return self._node_selector_requirement_matcher + + @node_selector_requirement_matcher.setter + def node_selector_requirement_matcher(self, node_selector_requirement_matcher): + """ + Sets the node_selector_requirement_matcher of this V1alpha1VirtualMachinePoolSelectors. + NodeSelectorRequirementMatcher is a list of node selector requirement for VMs. + + :param node_selector_requirement_matcher: The node_selector_requirement_matcher of this V1alpha1VirtualMachinePoolSelectors. + :type: list[K8sIoApiCoreV1NodeSelectorRequirement] + """ + + self._node_selector_requirement_matcher = node_selector_requirement_matcher + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachinePoolSelectors): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py b/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py index 69002599..096dc2ae 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py +++ b/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py @@ -37,6 +37,7 @@ class V1alpha1VirtualMachinePoolSpec(object): 'replicas': 'int', 'scale_in_strategy': 'V1alpha1VirtualMachinePoolScaleInStrategy', 'selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', + 'update_strategy': 'V1alpha1VirtualMachinePoolUpdateStrategy', 'virtual_machine_template': 'V1alpha1VirtualMachineTemplateSpec' } @@ -47,10 +48,11 @@ class V1alpha1VirtualMachinePoolSpec(object): 'replicas': 'replicas', 'scale_in_strategy': 'scaleInStrategy', 'selector': 'selector', + 'update_strategy': 'updateStrategy', 'virtual_machine_template': 'virtualMachineTemplate' } - def __init__(self, max_unavailable=None, name_generation=None, paused=None, replicas=None, scale_in_strategy=None, selector=None, virtual_machine_template=None): + def __init__(self, max_unavailable=None, name_generation=None, paused=None, replicas=None, scale_in_strategy=None, selector=None, update_strategy=None, virtual_machine_template=None): """ V1alpha1VirtualMachinePoolSpec - a model defined in Swagger """ @@ -61,6 +63,7 @@ def __init__(self, max_unavailable=None, name_generation=None, paused=None, repl self._replicas = None self._scale_in_strategy = None self._selector = None + self._update_strategy = None self._virtual_machine_template = None if max_unavailable is not None: @@ -74,6 +77,8 @@ def __init__(self, max_unavailable=None, name_generation=None, paused=None, repl if scale_in_strategy is not None: self.scale_in_strategy = scale_in_strategy self.selector = selector + if update_strategy is not None: + self.update_strategy = update_strategy self.virtual_machine_template = virtual_machine_template @property @@ -216,6 +221,29 @@ def selector(self, selector): self._selector = selector + @property + def update_strategy(self): + """ + Gets the update_strategy of this V1alpha1VirtualMachinePoolSpec. + UpdateStrategy specifies how the VMPool controller manages updating VMs within a VMPool + + :return: The update_strategy of this V1alpha1VirtualMachinePoolSpec. + :rtype: V1alpha1VirtualMachinePoolUpdateStrategy + """ + return self._update_strategy + + @update_strategy.setter + def update_strategy(self, update_strategy): + """ + Sets the update_strategy of this V1alpha1VirtualMachinePoolSpec. + UpdateStrategy specifies how the VMPool controller manages updating VMs within a VMPool + + :param update_strategy: The update_strategy of this V1alpha1VirtualMachinePoolSpec. + :type: V1alpha1VirtualMachinePoolUpdateStrategy + """ + + self._update_strategy = update_strategy + @property def virtual_machine_template(self): """ diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_unmanaged_strategy.py b/kubevirt/models/v1alpha1_virtual_machine_pool_unmanaged_strategy.py new file mode 100644 index 00000000..7b7493ca --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_pool_unmanaged_strategy.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachinePoolUnmanagedStrategy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1alpha1VirtualMachinePoolUnmanagedStrategy - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachinePoolUnmanagedStrategy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_update_strategy.py b/kubevirt/models/v1alpha1_virtual_machine_pool_update_strategy.py new file mode 100644 index 00000000..0b4a912c --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_pool_update_strategy.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachinePoolUpdateStrategy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'opportunistic': 'V1alpha1VirtualMachineOpportunisticUpdateStrategy', + 'proactive': 'V1alpha1VirtualMachinePoolProactiveUpdateStrategy', + 'unmanaged': 'V1alpha1VirtualMachinePoolUnmanagedStrategy' + } + + attribute_map = { + 'opportunistic': 'opportunistic', + 'proactive': 'proactive', + 'unmanaged': 'unmanaged' + } + + def __init__(self, opportunistic=None, proactive=None, unmanaged=None): + """ + V1alpha1VirtualMachinePoolUpdateStrategy - a model defined in Swagger + """ + + self._opportunistic = None + self._proactive = None + self._unmanaged = None + + if opportunistic is not None: + self.opportunistic = opportunistic + if proactive is not None: + self.proactive = proactive + if unmanaged is not None: + self.unmanaged = unmanaged + + @property + def opportunistic(self): + """ + Gets the opportunistic of this V1alpha1VirtualMachinePoolUpdateStrategy. + Opportunistic update only gets applied to the VM, VMI is updated naturally upon the restart. Whereas proactive it applies both the VM and VMI right away. + + :return: The opportunistic of this V1alpha1VirtualMachinePoolUpdateStrategy. + :rtype: V1alpha1VirtualMachineOpportunisticUpdateStrategy + """ + return self._opportunistic + + @opportunistic.setter + def opportunistic(self, opportunistic): + """ + Sets the opportunistic of this V1alpha1VirtualMachinePoolUpdateStrategy. + Opportunistic update only gets applied to the VM, VMI is updated naturally upon the restart. Whereas proactive it applies both the VM and VMI right away. + + :param opportunistic: The opportunistic of this V1alpha1VirtualMachinePoolUpdateStrategy. + :type: V1alpha1VirtualMachineOpportunisticUpdateStrategy + """ + + self._opportunistic = opportunistic + + @property + def proactive(self): + """ + Gets the proactive of this V1alpha1VirtualMachinePoolUpdateStrategy. + Proactive update by forcing the VMs to restart during update + + :return: The proactive of this V1alpha1VirtualMachinePoolUpdateStrategy. + :rtype: V1alpha1VirtualMachinePoolProactiveUpdateStrategy + """ + return self._proactive + + @proactive.setter + def proactive(self, proactive): + """ + Sets the proactive of this V1alpha1VirtualMachinePoolUpdateStrategy. + Proactive update by forcing the VMs to restart during update + + :param proactive: The proactive of this V1alpha1VirtualMachinePoolUpdateStrategy. + :type: V1alpha1VirtualMachinePoolProactiveUpdateStrategy + """ + + self._proactive = proactive + + @property + def unmanaged(self): + """ + Gets the unmanaged of this V1alpha1VirtualMachinePoolUpdateStrategy. + Unmanaged indicates that no automatic update of VMs within a VMPool is performed. When this is set, the VMPool controller will not update the VMs within the pool. + + :return: The unmanaged of this V1alpha1VirtualMachinePoolUpdateStrategy. + :rtype: V1alpha1VirtualMachinePoolUnmanagedStrategy + """ + return self._unmanaged + + @unmanaged.setter + def unmanaged(self, unmanaged): + """ + Sets the unmanaged of this V1alpha1VirtualMachinePoolUpdateStrategy. + Unmanaged indicates that no automatic update of VMs within a VMPool is performed. When this is set, the VMPool controller will not update the VMs within the pool. + + :param unmanaged: The unmanaged of this V1alpha1VirtualMachinePoolUpdateStrategy. + :type: V1alpha1VirtualMachinePoolUnmanagedStrategy + """ + + self._unmanaged = unmanaged + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachinePoolUpdateStrategy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 00b49d4e..e710a27a 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.7.0-beta.0-113-ge34f483964" +VERSION = "v1.7.0-beta.0-145-gbf4149cb87" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index f2f5d2a4..a5c5af15 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.7.0-beta.0-113-ge34f483964" +"packageVersion": "v1.7.0-beta.0-145-gbf4149cb87" } diff --git a/test/test_v1alpha1_virtual_machine_opportunistic_update_strategy.py b/test/test_v1alpha1_virtual_machine_opportunistic_update_strategy.py new file mode 100644 index 00000000..21550556 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_opportunistic_update_strategy.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_opportunistic_update_strategy import V1alpha1VirtualMachineOpportunisticUpdateStrategy + + +class TestV1alpha1VirtualMachineOpportunisticUpdateStrategy(unittest.TestCase): + """ V1alpha1VirtualMachineOpportunisticUpdateStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineOpportunisticUpdateStrategy(self): + """ + Test V1alpha1VirtualMachineOpportunisticUpdateStrategy + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_opportunistic_update_strategy.V1alpha1VirtualMachineOpportunisticUpdateStrategy() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_pool_proactive_update_strategy.py b/test/test_v1alpha1_virtual_machine_pool_proactive_update_strategy.py new file mode 100644 index 00000000..0a477ad4 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_pool_proactive_update_strategy.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_pool_proactive_update_strategy import V1alpha1VirtualMachinePoolProactiveUpdateStrategy + + +class TestV1alpha1VirtualMachinePoolProactiveUpdateStrategy(unittest.TestCase): + """ V1alpha1VirtualMachinePoolProactiveUpdateStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachinePoolProactiveUpdateStrategy(self): + """ + Test V1alpha1VirtualMachinePoolProactiveUpdateStrategy + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_pool_proactive_update_strategy.V1alpha1VirtualMachinePoolProactiveUpdateStrategy() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_pool_selectors.py b/test/test_v1alpha1_virtual_machine_pool_selectors.py new file mode 100644 index 00000000..5eb3225d --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_pool_selectors.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_pool_selectors import V1alpha1VirtualMachinePoolSelectors + + +class TestV1alpha1VirtualMachinePoolSelectors(unittest.TestCase): + """ V1alpha1VirtualMachinePoolSelectors unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachinePoolSelectors(self): + """ + Test V1alpha1VirtualMachinePoolSelectors + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_pool_selectors.V1alpha1VirtualMachinePoolSelectors() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_pool_unmanaged_strategy.py b/test/test_v1alpha1_virtual_machine_pool_unmanaged_strategy.py new file mode 100644 index 00000000..37098aa3 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_pool_unmanaged_strategy.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_pool_unmanaged_strategy import V1alpha1VirtualMachinePoolUnmanagedStrategy + + +class TestV1alpha1VirtualMachinePoolUnmanagedStrategy(unittest.TestCase): + """ V1alpha1VirtualMachinePoolUnmanagedStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachinePoolUnmanagedStrategy(self): + """ + Test V1alpha1VirtualMachinePoolUnmanagedStrategy + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_pool_unmanaged_strategy.V1alpha1VirtualMachinePoolUnmanagedStrategy() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_pool_update_strategy.py b/test/test_v1alpha1_virtual_machine_pool_update_strategy.py new file mode 100644 index 00000000..a1ac066a --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_pool_update_strategy.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_pool_update_strategy import V1alpha1VirtualMachinePoolUpdateStrategy + + +class TestV1alpha1VirtualMachinePoolUpdateStrategy(unittest.TestCase): + """ V1alpha1VirtualMachinePoolUpdateStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachinePoolUpdateStrategy(self): + """ + Test V1alpha1VirtualMachinePoolUpdateStrategy + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_pool_update_strategy.V1alpha1VirtualMachinePoolUpdateStrategy() + pass + + +if __name__ == '__main__': + unittest.main() From 2022b844696094f4e11a117c9125c8eb2d922823 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Mon, 27 Oct 2025 20:36:27 +0000 Subject: [PATCH 484/521] Client Python update by KubeVirt Prow build 1982906065875898368 --- README.md | 2 +- docs/K8sIoApiCoreV1PodAffinityTerm.md | 4 ++-- docs/K8sIoApiCoreV1TopologySpreadConstraint.md | 4 ++-- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py | 8 ++++---- .../k8s_io_api_core_v1_topology_spread_constraint.py | 8 ++++---- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 18 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index b32ff577..a1eb4ecf 100644 --- a/README.md +++ b/README.md @@ -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.7.0-beta.0-145-gbf4149cb87 +- Package version: v1.7.0-beta.0-152-g409a148433 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/K8sIoApiCoreV1PodAffinityTerm.md b/docs/K8sIoApiCoreV1PodAffinityTerm.md index 797efe78..30c5585c 100644 --- a/docs/K8sIoApiCoreV1PodAffinityTerm.md +++ b/docs/K8sIoApiCoreV1PodAffinityTerm.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **label_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. | [optional] -**match_label_keys** | **list[str]** | MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). | [optional] -**mismatch_label_keys** | **list[str]** | MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). | [optional] +**match_label_keys** | **list[str]** | MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. | [optional] +**mismatch_label_keys** | **list[str]** | MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. | [optional] **namespace_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces. | [optional] **namespaces** | **list[str]** | namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\". | [optional] **topology_key** | **str** | This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. | [default to ''] diff --git a/docs/K8sIoApiCoreV1TopologySpreadConstraint.md b/docs/K8sIoApiCoreV1TopologySpreadConstraint.md index 49fa6185..2b4310a3 100644 --- a/docs/K8sIoApiCoreV1TopologySpreadConstraint.md +++ b/docs/K8sIoApiCoreV1TopologySpreadConstraint.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **match_label_keys** | **list[str]** | MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default). | [optional] **max_skew** | **int** | MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. | [default to 0] **min_domains** | **int** | MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. | [optional] -**node_affinity_policy** | **str** | NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. | [optional] -**node_taints_policy** | **str** | NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. | [optional] +**node_affinity_policy** | **str** | NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. | [optional] +**node_taints_policy** | **str** | NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. | [optional] **topology_key** | **str** | TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each <key, value> as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field. | [default to ''] **when_unsatisfiable** | **str** | WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, but giving higher precedence to topologies that would help reduce the skew. A constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. Possible enum values: - `\"DoNotSchedule\"` instructs the scheduler not to schedule the pod when constraints are not satisfied. - `\"ScheduleAnyway\"` instructs the scheduler to schedule the pod even if constraints are not satisfied. | [default to ''] diff --git a/git_push.sh b/git_push.sh index fbf0a06f..a968acf1 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.7.0-beta.0-145-gbf4149cb87" + release_note="Auto-generated client v1.7.0-beta.0-152-g409a148433" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index e2b3c080..fd738a11 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.7.0-beta.0-145-gbf4149cb87/python' + self.user_agent = 'Swagger-Codegen/v1.7.0-beta.0-152-g409a148433/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index aa7698ca..29416666 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.7.0-beta.0-145-gbf4149cb87".\ + "SDK Package Version: v1.7.0-beta.0-152-g409a148433".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py b/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py index 9b8de4d9..b9488e41 100644 --- a/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py +++ b/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py @@ -99,7 +99,7 @@ def label_selector(self, label_selector): def match_label_keys(self): """ Gets the match_label_keys of this K8sIoApiCoreV1PodAffinityTerm. - MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. :return: The match_label_keys of this K8sIoApiCoreV1PodAffinityTerm. :rtype: list[str] @@ -110,7 +110,7 @@ def match_label_keys(self): def match_label_keys(self, match_label_keys): """ Sets the match_label_keys of this K8sIoApiCoreV1PodAffinityTerm. - MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. :param match_label_keys: The match_label_keys of this K8sIoApiCoreV1PodAffinityTerm. :type: list[str] @@ -122,7 +122,7 @@ def match_label_keys(self, match_label_keys): def mismatch_label_keys(self): """ Gets the mismatch_label_keys of this K8sIoApiCoreV1PodAffinityTerm. - MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. :return: The mismatch_label_keys of this K8sIoApiCoreV1PodAffinityTerm. :rtype: list[str] @@ -133,7 +133,7 @@ def mismatch_label_keys(self): def mismatch_label_keys(self, mismatch_label_keys): """ Sets the mismatch_label_keys of this K8sIoApiCoreV1PodAffinityTerm. - MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. :param mismatch_label_keys: The mismatch_label_keys of this K8sIoApiCoreV1PodAffinityTerm. :type: list[str] diff --git a/kubevirt/models/k8s_io_api_core_v1_topology_spread_constraint.py b/kubevirt/models/k8s_io_api_core_v1_topology_spread_constraint.py index 6d8245ff..a4d723f9 100644 --- a/kubevirt/models/k8s_io_api_core_v1_topology_spread_constraint.py +++ b/kubevirt/models/k8s_io_api_core_v1_topology_spread_constraint.py @@ -178,7 +178,7 @@ def min_domains(self, min_domains): def node_affinity_policy(self): """ Gets the node_affinity_policy of this K8sIoApiCoreV1TopologySpreadConstraint. - NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. + NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. :return: The node_affinity_policy of this K8sIoApiCoreV1TopologySpreadConstraint. :rtype: str @@ -189,7 +189,7 @@ def node_affinity_policy(self): def node_affinity_policy(self, node_affinity_policy): """ Sets the node_affinity_policy of this K8sIoApiCoreV1TopologySpreadConstraint. - NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. + NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. :param node_affinity_policy: The node_affinity_policy of this K8sIoApiCoreV1TopologySpreadConstraint. :type: str @@ -207,7 +207,7 @@ def node_affinity_policy(self, node_affinity_policy): def node_taints_policy(self): """ Gets the node_taints_policy of this K8sIoApiCoreV1TopologySpreadConstraint. - NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. + NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. :return: The node_taints_policy of this K8sIoApiCoreV1TopologySpreadConstraint. :rtype: str @@ -218,7 +218,7 @@ def node_taints_policy(self): def node_taints_policy(self, node_taints_policy): """ Sets the node_taints_policy of this K8sIoApiCoreV1TopologySpreadConstraint. - NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. + NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. :param node_taints_policy: The node_taints_policy of this K8sIoApiCoreV1TopologySpreadConstraint. :type: str diff --git a/setup.py b/setup.py index e710a27a..91906a7e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.7.0-beta.0-145-gbf4149cb87" +VERSION = "v1.7.0-beta.0-152-g409a148433" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index a5c5af15..821d650a 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.7.0-beta.0-145-gbf4149cb87" +"packageVersion": "v1.7.0-beta.0-152-g409a148433" } From fada92fa9d3e74adc10a6a4d880994d698a01f0e Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Tue, 28 Oct 2025 02:00:35 +0000 Subject: [PATCH 485/521] Client Python update by KubeVirt Prow build 1982987596757733376 --- README.md | 3 +- docs/V1LaunchSecurity.md | 1 + docs/V1TDX.md | 9 +++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_launch_security.py | 34 ++++++++- kubevirt/models/v1_tdx.py | 99 +++++++++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_tdx.py | 44 ++++++++++++ 14 files changed, 196 insertions(+), 9 deletions(-) create mode 100644 docs/V1TDX.md create mode 100644 kubevirt/models/v1_tdx.py create mode 100644 test/test_v1_tdx.py diff --git a/README.md b/README.md index a1eb4ecf..5a82a051 100644 --- a/README.md +++ b/README.md @@ -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.7.0-beta.0-152-g409a148433 +- Package version: v1.7.0-beta.0-160-g90dc1bdd01 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -578,6 +578,7 @@ Class | Method | HTTP request | Description - [V1SupportContainerResources](docs/V1SupportContainerResources.md) - [V1SyNICTimer](docs/V1SyNICTimer.md) - [V1SysprepSource](docs/V1SysprepSource.md) + - [V1TDX](docs/V1TDX.md) - [V1TLSConfiguration](docs/V1TLSConfiguration.md) - [V1TPMDevice](docs/V1TPMDevice.md) - [V1Timer](docs/V1Timer.md) diff --git a/docs/V1LaunchSecurity.md b/docs/V1LaunchSecurity.md index dd04a931..cd192ada 100644 --- a/docs/V1LaunchSecurity.md +++ b/docs/V1LaunchSecurity.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **sev** | [**V1SEV**](V1SEV.md) | AMD Secure Encrypted Virtualization (SEV). | [optional] **snp** | [**V1SEVSNP**](V1SEVSNP.md) | AMD SEV-SNP flags defined by the SEV-SNP specifications. | [optional] +**tdx** | [**V1TDX**](V1TDX.md) | Intel Trust Domain Extensions (TDX). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1TDX.md b/docs/V1TDX.md new file mode 100644 index 00000000..aee5f5d6 --- /dev/null +++ b/docs/V1TDX.md @@ -0,0 +1,9 @@ +# V1TDX + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index a968acf1..289f7386 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.7.0-beta.0-152-g409a148433" + release_note="Auto-generated client v1.7.0-beta.0-160-g90dc1bdd01" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index c74f72eb..8a1cf128 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -726,6 +726,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_sysprep_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sysprep_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SysprepSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_tdx.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_tdx.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1TDX.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_tls_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_tls_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1TLSConfiguration.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 559e259d..0ba29bac 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -249,6 +249,7 @@ from .models.v1_support_container_resources import V1SupportContainerResources from .models.v1_sy_nic_timer import V1SyNICTimer from .models.v1_sysprep_source import V1SysprepSource +from .models.v1_tdx import V1TDX from .models.v1_tls_configuration import V1TLSConfiguration from .models.v1_tpm_device import V1TPMDevice from .models.v1_timer import V1Timer diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index fd738a11..0678e5a9 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.7.0-beta.0-152-g409a148433/python' + self.user_agent = 'Swagger-Codegen/v1.7.0-beta.0-160-g90dc1bdd01/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 29416666..ddfd24ae 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.7.0-beta.0-152-g409a148433".\ + "SDK Package Version: v1.7.0-beta.0-160-g90dc1bdd01".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index a6ba64a4..61510597 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -249,6 +249,7 @@ from .v1_support_container_resources import V1SupportContainerResources from .v1_sy_nic_timer import V1SyNICTimer from .v1_sysprep_source import V1SysprepSource +from .v1_tdx import V1TDX from .v1_tls_configuration import V1TLSConfiguration from .v1_tpm_device import V1TPMDevice from .v1_timer import V1Timer diff --git a/kubevirt/models/v1_launch_security.py b/kubevirt/models/v1_launch_security.py index 7cd824f6..bb5743d4 100644 --- a/kubevirt/models/v1_launch_security.py +++ b/kubevirt/models/v1_launch_security.py @@ -32,26 +32,31 @@ class V1LaunchSecurity(object): """ swagger_types = { 'sev': 'V1SEV', - 'snp': 'V1SEVSNP' + 'snp': 'V1SEVSNP', + 'tdx': 'V1TDX' } attribute_map = { 'sev': 'sev', - 'snp': 'snp' + 'snp': 'snp', + 'tdx': 'tdx' } - def __init__(self, sev=None, snp=None): + def __init__(self, sev=None, snp=None, tdx=None): """ V1LaunchSecurity - a model defined in Swagger """ self._sev = None self._snp = None + self._tdx = None if sev is not None: self.sev = sev if snp is not None: self.snp = snp + if tdx is not None: + self.tdx = tdx @property def sev(self): @@ -99,6 +104,29 @@ def snp(self, snp): self._snp = snp + @property + def tdx(self): + """ + Gets the tdx of this V1LaunchSecurity. + Intel Trust Domain Extensions (TDX). + + :return: The tdx of this V1LaunchSecurity. + :rtype: V1TDX + """ + return self._tdx + + @tdx.setter + def tdx(self, tdx): + """ + Sets the tdx of this V1LaunchSecurity. + Intel Trust Domain Extensions (TDX). + + :param tdx: The tdx of this V1LaunchSecurity. + :type: V1TDX + """ + + self._tdx = tdx + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_tdx.py b/kubevirt/models/v1_tdx.py new file mode 100644 index 00000000..10ead64d --- /dev/null +++ b/kubevirt/models/v1_tdx.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1TDX(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1TDX - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1TDX): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 91906a7e..a9a1cecc 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.7.0-beta.0-152-g409a148433" +VERSION = "v1.7.0-beta.0-160-g90dc1bdd01" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 821d650a..796e9a32 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.7.0-beta.0-152-g409a148433" +"packageVersion": "v1.7.0-beta.0-160-g90dc1bdd01" } diff --git a/test/test_v1_tdx.py b/test/test_v1_tdx.py new file mode 100644 index 00000000..a05ed87c --- /dev/null +++ b/test/test_v1_tdx.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_tdx import V1TDX + + +class TestV1TDX(unittest.TestCase): + """ V1TDX unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1TDX(self): + """ + Test V1TDX + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_tdx.V1TDX() + pass + + +if __name__ == '__main__': + unittest.main() From e17872a065e3c12a55b56159ab9a60b730dd9eaf Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Tue, 28 Oct 2025 15:01:43 +0000 Subject: [PATCH 486/521] Client Python update by KubeVirt Prow build 1983182898500472832 --- README.md | 2 +- docs/V1VirtualMachineInstanceMigrationSpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ...virtual_machine_instance_migration_spec.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5a82a051..2bce7762 100644 --- a/README.md +++ b/README.md @@ -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.7.0-beta.0-160-g90dc1bdd01 +- Package version: v1.7.0-beta.0-175-gc4e429647f - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceMigrationSpec.md b/docs/V1VirtualMachineInstanceMigrationSpec.md index de264aa1..38949e0e 100644 --- a/docs/V1VirtualMachineInstanceMigrationSpec.md +++ b/docs/V1VirtualMachineInstanceMigrationSpec.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **added_node_selector** | **dict(str, str)** | AddedNodeSelector is an additional selector that can be used to complement a NodeSelector or NodeAffinity as set on the VM to restrict the set of allowed target nodes for a migration. In case of key collisions, values set on the VM objects are going to be preserved to ensure that addedNodeSelector can only restrict but not bypass constraints already set on the VM object. | [optional] +**priority** | **str** | Priority of the migration. This can be one of `system-critical`, `user-triggered`, `system-maintenance`. | [optional] **receive** | [**V1VirtualMachineInstanceMigrationTarget**](V1VirtualMachineInstanceMigrationTarget.md) | If receieve is specified, this VirtualMachineInstanceMigration will be considered the target | [optional] **send_to** | [**V1VirtualMachineInstanceMigrationSource**](V1VirtualMachineInstanceMigrationSource.md) | If sendTo is specified, this VirtualMachineInstanceMigration will be considered the source | [optional] **vmi_name** | **str** | The name of the VMI to perform the migration on. VMI must exist in the migration objects namespace | [optional] diff --git a/git_push.sh b/git_push.sh index 289f7386..a5e8a9f7 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.7.0-beta.0-160-g90dc1bdd01" + release_note="Auto-generated client v1.7.0-beta.0-175-gc4e429647f" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 0678e5a9..82ba3715 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.7.0-beta.0-160-g90dc1bdd01/python' + self.user_agent = 'Swagger-Codegen/v1.7.0-beta.0-175-gc4e429647f/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index ddfd24ae..1bb0a8d0 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.7.0-beta.0-160-g90dc1bdd01".\ + "SDK Package Version: v1.7.0-beta.0-175-gc4e429647f".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_spec.py b/kubevirt/models/v1_virtual_machine_instance_migration_spec.py index cd3ed45d..a059c3d5 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_spec.py @@ -32,6 +32,7 @@ class V1VirtualMachineInstanceMigrationSpec(object): """ swagger_types = { 'added_node_selector': 'dict(str, str)', + 'priority': 'str', 'receive': 'V1VirtualMachineInstanceMigrationTarget', 'send_to': 'V1VirtualMachineInstanceMigrationSource', 'vmi_name': 'str' @@ -39,23 +40,27 @@ class V1VirtualMachineInstanceMigrationSpec(object): attribute_map = { 'added_node_selector': 'addedNodeSelector', + 'priority': 'priority', 'receive': 'receive', 'send_to': 'sendTo', 'vmi_name': 'vmiName' } - def __init__(self, added_node_selector=None, receive=None, send_to=None, vmi_name=None): + def __init__(self, added_node_selector=None, priority=None, receive=None, send_to=None, vmi_name=None): """ V1VirtualMachineInstanceMigrationSpec - a model defined in Swagger """ self._added_node_selector = None + self._priority = None self._receive = None self._send_to = None self._vmi_name = None if added_node_selector is not None: self.added_node_selector = added_node_selector + if priority is not None: + self.priority = priority if receive is not None: self.receive = receive if send_to is not None: @@ -86,6 +91,29 @@ def added_node_selector(self, added_node_selector): self._added_node_selector = added_node_selector + @property + def priority(self): + """ + Gets the priority of this V1VirtualMachineInstanceMigrationSpec. + Priority of the migration. This can be one of `system-critical`, `user-triggered`, `system-maintenance`. + + :return: The priority of this V1VirtualMachineInstanceMigrationSpec. + :rtype: str + """ + return self._priority + + @priority.setter + def priority(self, priority): + """ + Sets the priority of this V1VirtualMachineInstanceMigrationSpec. + Priority of the migration. This can be one of `system-critical`, `user-triggered`, `system-maintenance`. + + :param priority: The priority of this V1VirtualMachineInstanceMigrationSpec. + :type: str + """ + + self._priority = priority + @property def receive(self): """ diff --git a/setup.py b/setup.py index a9a1cecc..de09a51e 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.7.0-beta.0-160-g90dc1bdd01" +VERSION = "v1.7.0-beta.0-175-gc4e429647f" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 796e9a32..94a5b71a 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.7.0-beta.0-160-g90dc1bdd01" +"packageVersion": "v1.7.0-beta.0-175-gc4e429647f" } From 223320935dc65a1defc42faf5c5b23f7744822d1 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 29 Oct 2025 21:44:45 +0000 Subject: [PATCH 487/521] Client Python update by KubeVirt Prow build 1983640442641584128 --- README.md | 3 +- ...MachinePoolOpportunisticScaleInStrategy.md | 10 ++ ...tualMachinePoolProactiveScaleInStrategy.md | 1 + ...alpha1VirtualMachinePoolScaleInStrategy.md | 2 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + ...ne_pool_opportunistic_scale_in_strategy.py | 125 ++++++++++++++++++ ...achine_pool_proactive_scale_in_strategy.py | 34 ++++- ..._virtual_machine_pool_scale_in_strategy.py | 62 ++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...ne_pool_opportunistic_scale_in_strategy.py | 44 ++++++ 16 files changed, 284 insertions(+), 12 deletions(-) create mode 100644 docs/V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy.md create mode 100644 kubevirt/models/v1alpha1_virtual_machine_pool_opportunistic_scale_in_strategy.py create mode 100644 test/test_v1alpha1_virtual_machine_pool_opportunistic_scale_in_strategy.py diff --git a/README.md b/README.md index 2bce7762..479699ea 100644 --- a/README.md +++ b/README.md @@ -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.7.0-beta.0-175-gc4e429647f +- Package version: v1.7.0-beta.0-192-gacf35104ed - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -656,6 +656,7 @@ Class | Method | HTTP request | Description - [V1alpha1VirtualMachinePoolCondition](docs/V1alpha1VirtualMachinePoolCondition.md) - [V1alpha1VirtualMachinePoolList](docs/V1alpha1VirtualMachinePoolList.md) - [V1alpha1VirtualMachinePoolNameGeneration](docs/V1alpha1VirtualMachinePoolNameGeneration.md) + - [V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy](docs/V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy.md) - [V1alpha1VirtualMachinePoolProactiveScaleInStrategy](docs/V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md) - [V1alpha1VirtualMachinePoolProactiveUpdateStrategy](docs/V1alpha1VirtualMachinePoolProactiveUpdateStrategy.md) - [V1alpha1VirtualMachinePoolScaleInStrategy](docs/V1alpha1VirtualMachinePoolScaleInStrategy.md) diff --git a/docs/V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy.md b/docs/V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy.md new file mode 100644 index 00000000..64179d60 --- /dev/null +++ b/docs/V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy.md @@ -0,0 +1,10 @@ +# V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**state_preservation** | **str** | Specifies if and how to preserve the state of the VMs selected during scale-in. Disabled - (Default) all state for VMs selected for scale-in will be deleted. Offline - PVCs for VMs selected for scale-in will be preserved and reused on scale-out (decreases provisioning time during scale out). Online - PVCs and memory for VMs selected for scale-in will be preserved and reused on scale-out (decreases provisioning and boot time during scale out). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md b/docs/V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md index 54b3d68a..a156b75c 100644 --- a/docs/V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md +++ b/docs/V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **selection_policy** | [**V1alpha1VirtualMachinePoolSelectionPolicy**](V1alpha1VirtualMachinePoolSelectionPolicy.md) | SelectionPolicy defines the priority in which VM instances are selected for proactive scale-in Defaults to \"Random\" base policy when no SelectionPolicy is configured | [optional] +**state_preservation** | **str** | Specifies if and how to preserve the state of the VMs selected during scale-in. Disabled - (Default) all state for VMs selected for scale-in will be deleted. Offline - PVCs for VMs selected for scale-in will be preserved and reused on scale-out (decreases provisioning time during scale out). Online - PVCs and memory for VMs selected for scale-in will be preserved and reused on scale-out (decreases provisioning and boot time during scale out). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachinePoolScaleInStrategy.md b/docs/V1alpha1VirtualMachinePoolScaleInStrategy.md index d940fbb9..5e73fea8 100644 --- a/docs/V1alpha1VirtualMachinePoolScaleInStrategy.md +++ b/docs/V1alpha1VirtualMachinePoolScaleInStrategy.md @@ -3,7 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**opportunistic** | [**V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy**](V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy.md) | Opportunistic scale-in is a strategy when vms are deleted by some other means than the scale-in action. For example, when the VM is deleted by the user or when the VM is deleted by the node that is hosting the VM. | [optional] **proactive** | [**V1alpha1VirtualMachinePoolProactiveScaleInStrategy**](V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md) | Proactive scale-in by forcing VMs to shutdown during scale-in (Default) | [optional] +**unmanaged** | [**V1alpha1VirtualMachinePoolUnmanagedStrategy**](V1alpha1VirtualMachinePoolUnmanagedStrategy.md) | The VM is never touched after creation. Users are responsible for scaling in the pool manually. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index a5e8a9f7..62bfb168 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.7.0-beta.0-175-gc4e429647f" + release_note="Auto-generated client v1.7.0-beta.0-192-gacf35104ed" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 8a1cf128..c6577517 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -960,6 +960,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/v1alpha1_virtual_machine_pool_name_generation.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_name_generation.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolNameGeneration.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_opportunistic_scale_in_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_opportunistic_scale_in_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 0ba29bac..39452921 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -327,6 +327,7 @@ from .models.v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition from .models.v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList from .models.v1alpha1_virtual_machine_pool_name_generation import V1alpha1VirtualMachinePoolNameGeneration +from .models.v1alpha1_virtual_machine_pool_opportunistic_scale_in_strategy import V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy from .models.v1alpha1_virtual_machine_pool_proactive_scale_in_strategy import V1alpha1VirtualMachinePoolProactiveScaleInStrategy from .models.v1alpha1_virtual_machine_pool_proactive_update_strategy import V1alpha1VirtualMachinePoolProactiveUpdateStrategy from .models.v1alpha1_virtual_machine_pool_scale_in_strategy import V1alpha1VirtualMachinePoolScaleInStrategy diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 82ba3715..212e6da9 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.7.0-beta.0-175-gc4e429647f/python' + self.user_agent = 'Swagger-Codegen/v1.7.0-beta.0-192-gacf35104ed/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 1bb0a8d0..4f6c29db 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.7.0-beta.0-175-gc4e429647f".\ + "SDK Package Version: v1.7.0-beta.0-192-gacf35104ed".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 61510597..8ac3c8f7 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -327,6 +327,7 @@ from .v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition from .v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList from .v1alpha1_virtual_machine_pool_name_generation import V1alpha1VirtualMachinePoolNameGeneration +from .v1alpha1_virtual_machine_pool_opportunistic_scale_in_strategy import V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy from .v1alpha1_virtual_machine_pool_proactive_scale_in_strategy import V1alpha1VirtualMachinePoolProactiveScaleInStrategy from .v1alpha1_virtual_machine_pool_proactive_update_strategy import V1alpha1VirtualMachinePoolProactiveUpdateStrategy from .v1alpha1_virtual_machine_pool_scale_in_strategy import V1alpha1VirtualMachinePoolScaleInStrategy diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_opportunistic_scale_in_strategy.py b/kubevirt/models/v1alpha1_virtual_machine_pool_opportunistic_scale_in_strategy.py new file mode 100644 index 00000000..22eecdb2 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_pool_opportunistic_scale_in_strategy.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'state_preservation': 'str' + } + + attribute_map = { + 'state_preservation': 'statePreservation' + } + + def __init__(self, state_preservation=None): + """ + V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy - a model defined in Swagger + """ + + self._state_preservation = None + + if state_preservation is not None: + self.state_preservation = state_preservation + + @property + def state_preservation(self): + """ + Gets the state_preservation of this V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy. + Specifies if and how to preserve the state of the VMs selected during scale-in. Disabled - (Default) all state for VMs selected for scale-in will be deleted. Offline - PVCs for VMs selected for scale-in will be preserved and reused on scale-out (decreases provisioning time during scale out). Online - PVCs and memory for VMs selected for scale-in will be preserved and reused on scale-out (decreases provisioning and boot time during scale out). + + :return: The state_preservation of this V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy. + :rtype: str + """ + return self._state_preservation + + @state_preservation.setter + def state_preservation(self, state_preservation): + """ + Sets the state_preservation of this V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy. + Specifies if and how to preserve the state of the VMs selected during scale-in. Disabled - (Default) all state for VMs selected for scale-in will be deleted. Offline - PVCs for VMs selected for scale-in will be preserved and reused on scale-out (decreases provisioning time during scale out). Online - PVCs and memory for VMs selected for scale-in will be preserved and reused on scale-out (decreases provisioning and boot time during scale out). + + :param state_preservation: The state_preservation of this V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy. + :type: str + """ + + self._state_preservation = state_preservation + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py b/kubevirt/models/v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py index 797da26f..94e77114 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py +++ b/kubevirt/models/v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py @@ -31,22 +31,27 @@ class V1alpha1VirtualMachinePoolProactiveScaleInStrategy(object): and the value is json key in definition. """ swagger_types = { - 'selection_policy': 'V1alpha1VirtualMachinePoolSelectionPolicy' + 'selection_policy': 'V1alpha1VirtualMachinePoolSelectionPolicy', + 'state_preservation': 'str' } attribute_map = { - 'selection_policy': 'selectionPolicy' + 'selection_policy': 'selectionPolicy', + 'state_preservation': 'statePreservation' } - def __init__(self, selection_policy=None): + def __init__(self, selection_policy=None, state_preservation=None): """ V1alpha1VirtualMachinePoolProactiveScaleInStrategy - a model defined in Swagger """ self._selection_policy = None + self._state_preservation = None if selection_policy is not None: self.selection_policy = selection_policy + if state_preservation is not None: + self.state_preservation = state_preservation @property def selection_policy(self): @@ -71,6 +76,29 @@ def selection_policy(self, selection_policy): self._selection_policy = selection_policy + @property + def state_preservation(self): + """ + Gets the state_preservation of this V1alpha1VirtualMachinePoolProactiveScaleInStrategy. + Specifies if and how to preserve the state of the VMs selected during scale-in. Disabled - (Default) all state for VMs selected for scale-in will be deleted. Offline - PVCs for VMs selected for scale-in will be preserved and reused on scale-out (decreases provisioning time during scale out). Online - PVCs and memory for VMs selected for scale-in will be preserved and reused on scale-out (decreases provisioning and boot time during scale out). + + :return: The state_preservation of this V1alpha1VirtualMachinePoolProactiveScaleInStrategy. + :rtype: str + """ + return self._state_preservation + + @state_preservation.setter + def state_preservation(self, state_preservation): + """ + Sets the state_preservation of this V1alpha1VirtualMachinePoolProactiveScaleInStrategy. + Specifies if and how to preserve the state of the VMs selected during scale-in. Disabled - (Default) all state for VMs selected for scale-in will be deleted. Offline - PVCs for VMs selected for scale-in will be preserved and reused on scale-out (decreases provisioning time during scale out). Online - PVCs and memory for VMs selected for scale-in will be preserved and reused on scale-out (decreases provisioning and boot time during scale out). + + :param state_preservation: The state_preservation of this V1alpha1VirtualMachinePoolProactiveScaleInStrategy. + :type: str + """ + + self._state_preservation = state_preservation + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_scale_in_strategy.py b/kubevirt/models/v1alpha1_virtual_machine_pool_scale_in_strategy.py index 64dfe67f..d1275a4c 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_scale_in_strategy.py +++ b/kubevirt/models/v1alpha1_virtual_machine_pool_scale_in_strategy.py @@ -31,22 +31,55 @@ class V1alpha1VirtualMachinePoolScaleInStrategy(object): and the value is json key in definition. """ swagger_types = { - 'proactive': 'V1alpha1VirtualMachinePoolProactiveScaleInStrategy' + 'opportunistic': 'V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy', + 'proactive': 'V1alpha1VirtualMachinePoolProactiveScaleInStrategy', + 'unmanaged': 'V1alpha1VirtualMachinePoolUnmanagedStrategy' } attribute_map = { - 'proactive': 'proactive' + 'opportunistic': 'opportunistic', + 'proactive': 'proactive', + 'unmanaged': 'unmanaged' } - def __init__(self, proactive=None): + def __init__(self, opportunistic=None, proactive=None, unmanaged=None): """ V1alpha1VirtualMachinePoolScaleInStrategy - a model defined in Swagger """ + self._opportunistic = None self._proactive = None + self._unmanaged = None + if opportunistic is not None: + self.opportunistic = opportunistic if proactive is not None: self.proactive = proactive + if unmanaged is not None: + self.unmanaged = unmanaged + + @property + def opportunistic(self): + """ + Gets the opportunistic of this V1alpha1VirtualMachinePoolScaleInStrategy. + Opportunistic scale-in is a strategy when vms are deleted by some other means than the scale-in action. For example, when the VM is deleted by the user or when the VM is deleted by the node that is hosting the VM. + + :return: The opportunistic of this V1alpha1VirtualMachinePoolScaleInStrategy. + :rtype: V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy + """ + return self._opportunistic + + @opportunistic.setter + def opportunistic(self, opportunistic): + """ + Sets the opportunistic of this V1alpha1VirtualMachinePoolScaleInStrategy. + Opportunistic scale-in is a strategy when vms are deleted by some other means than the scale-in action. For example, when the VM is deleted by the user or when the VM is deleted by the node that is hosting the VM. + + :param opportunistic: The opportunistic of this V1alpha1VirtualMachinePoolScaleInStrategy. + :type: V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy + """ + + self._opportunistic = opportunistic @property def proactive(self): @@ -71,6 +104,29 @@ def proactive(self, proactive): self._proactive = proactive + @property + def unmanaged(self): + """ + Gets the unmanaged of this V1alpha1VirtualMachinePoolScaleInStrategy. + The VM is never touched after creation. Users are responsible for scaling in the pool manually. + + :return: The unmanaged of this V1alpha1VirtualMachinePoolScaleInStrategy. + :rtype: V1alpha1VirtualMachinePoolUnmanagedStrategy + """ + return self._unmanaged + + @unmanaged.setter + def unmanaged(self, unmanaged): + """ + Sets the unmanaged of this V1alpha1VirtualMachinePoolScaleInStrategy. + The VM is never touched after creation. Users are responsible for scaling in the pool manually. + + :param unmanaged: The unmanaged of this V1alpha1VirtualMachinePoolScaleInStrategy. + :type: V1alpha1VirtualMachinePoolUnmanagedStrategy + """ + + self._unmanaged = unmanaged + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index de09a51e..58ac65d5 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.7.0-beta.0-175-gc4e429647f" +VERSION = "v1.7.0-beta.0-192-gacf35104ed" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 94a5b71a..f0d22992 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.7.0-beta.0-175-gc4e429647f" +"packageVersion": "v1.7.0-beta.0-192-gacf35104ed" } diff --git a/test/test_v1alpha1_virtual_machine_pool_opportunistic_scale_in_strategy.py b/test/test_v1alpha1_virtual_machine_pool_opportunistic_scale_in_strategy.py new file mode 100644 index 00000000..6f8a9376 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_pool_opportunistic_scale_in_strategy.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_pool_opportunistic_scale_in_strategy import V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy + + +class TestV1alpha1VirtualMachinePoolOpportunisticScaleInStrategy(unittest.TestCase): + """ V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachinePoolOpportunisticScaleInStrategy(self): + """ + Test V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_pool_opportunistic_scale_in_strategy.V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy() + pass + + +if __name__ == '__main__': + unittest.main() From d3395743c82a6831768fc7331fdbb8d709ecbf57 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 30 Oct 2025 07:29:24 +0000 Subject: [PATCH 488/521] Client Python update by KubeVirt Prow build 1983792925955330048 --- README.md | 2 +- docs/V1KubeVirtConfiguration.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_kube_virt_configuration.py | 2 ++ setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 479699ea..74e1cdf4 100644 --- a/README.md +++ b/README.md @@ -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.7.0-beta.0-192-gacf35104ed +- Package version: v1.7.0-beta.0-196-gcd1e13a024 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index e8ae0ecc..509c8f93 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -25,7 +25,7 @@ Name | Type | Description | Notes **mediated_devices_configuration** | [**V1MediatedDevicesConfiguration**](V1MediatedDevicesConfiguration.md) | | [optional] **mem_balloon_stats_period** | **int** | | [optional] **migrations** | [**V1MigrationConfiguration**](V1MigrationConfiguration.md) | | [optional] -**min_cpu_model** | **str** | | [optional] +**min_cpu_model** | **str** | deprecated | [optional] **network** | [**V1NetworkConfiguration**](V1NetworkConfiguration.md) | | [optional] **obsolete_cpu_models** | **dict(str, bool)** | | [optional] **ovmf_path** | **str** | Deprecated. Use architectureConfiguration instead. | [optional] diff --git a/git_push.sh b/git_push.sh index 62bfb168..3bc586b8 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.7.0-beta.0-192-gacf35104ed" + release_note="Auto-generated client v1.7.0-beta.0-196-gcd1e13a024" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 212e6da9..d456f080 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.7.0-beta.0-192-gacf35104ed/python' + self.user_agent = 'Swagger-Codegen/v1.7.0-beta.0-196-gcd1e13a024/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 4f6c29db..bb6ce346 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.7.0-beta.0-192-gacf35104ed".\ + "SDK Package Version: v1.7.0-beta.0-196-gcd1e13a024".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index c0f8de3e..83c1e8dc 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -727,6 +727,7 @@ def migrations(self, migrations): def min_cpu_model(self): """ Gets the min_cpu_model of this V1KubeVirtConfiguration. + deprecated :return: The min_cpu_model of this V1KubeVirtConfiguration. :rtype: str @@ -737,6 +738,7 @@ def min_cpu_model(self): def min_cpu_model(self, min_cpu_model): """ Sets the min_cpu_model of this V1KubeVirtConfiguration. + deprecated :param min_cpu_model: The min_cpu_model of this V1KubeVirtConfiguration. :type: str diff --git a/setup.py b/setup.py index 58ac65d5..78cae9c8 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.7.0-beta.0-192-gacf35104ed" +VERSION = "v1.7.0-beta.0-196-gcd1e13a024" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index f0d22992..c9cb01e8 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.7.0-beta.0-192-gacf35104ed" +"packageVersion": "v1.7.0-beta.0-196-gcd1e13a024" } From 55eae4620110a500142b573d53485367b9b4b465 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 31 Oct 2025 04:50:28 +0000 Subject: [PATCH 489/521] Client Python update by KubeVirt Prow build 1984116557835407360 --- README.md | 3 +- ...a1VirtualMachinePoolAutohealingStrategy.md | 11 ++ docs/V1alpha1VirtualMachinePoolSpec.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + ...rtual_machine_pool_autohealing_strategy.py | 153 ++++++++++++++++++ .../v1alpha1_virtual_machine_pool_spec.py | 30 +++- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...rtual_machine_pool_autohealing_strategy.py | 44 +++++ 14 files changed, 250 insertions(+), 7 deletions(-) create mode 100644 docs/V1alpha1VirtualMachinePoolAutohealingStrategy.md create mode 100644 kubevirt/models/v1alpha1_virtual_machine_pool_autohealing_strategy.py create mode 100644 test/test_v1alpha1_virtual_machine_pool_autohealing_strategy.py diff --git a/README.md b/README.md index 74e1cdf4..649f6604 100644 --- a/README.md +++ b/README.md @@ -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.7.0-beta.0-196-gcd1e13a024 +- Package version: v1.7.0-beta.0-207-g4edec81b5b - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -653,6 +653,7 @@ Class | Method | HTTP request | Description - [V1alpha1Selectors](docs/V1alpha1Selectors.md) - [V1alpha1VirtualMachineOpportunisticUpdateStrategy](docs/V1alpha1VirtualMachineOpportunisticUpdateStrategy.md) - [V1alpha1VirtualMachinePool](docs/V1alpha1VirtualMachinePool.md) + - [V1alpha1VirtualMachinePoolAutohealingStrategy](docs/V1alpha1VirtualMachinePoolAutohealingStrategy.md) - [V1alpha1VirtualMachinePoolCondition](docs/V1alpha1VirtualMachinePoolCondition.md) - [V1alpha1VirtualMachinePoolList](docs/V1alpha1VirtualMachinePoolList.md) - [V1alpha1VirtualMachinePoolNameGeneration](docs/V1alpha1VirtualMachinePoolNameGeneration.md) diff --git a/docs/V1alpha1VirtualMachinePoolAutohealingStrategy.md b/docs/V1alpha1VirtualMachinePoolAutohealingStrategy.md new file mode 100644 index 00000000..be873e4a --- /dev/null +++ b/docs/V1alpha1VirtualMachinePoolAutohealingStrategy.md @@ -0,0 +1,11 @@ +# V1alpha1VirtualMachinePoolAutohealingStrategy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min_failing_to_start_duration** | [**K8sIoApimachineryPkgApisMetaV1Duration**](K8sIoApimachineryPkgApisMetaV1Duration.md) | MinFailingToStartDuration is the minimum time a VM must be in a failing status (applies to status conditions like CrashLoopBackOff, Unschedulable) before being replaced. It measures the duration since the VM's Ready condition transitioned to False. Defaults to 5 minutes | [optional] +**start_up_failure_threshold** | **int** | StartUpFailureThreshold is the number of consecutive VMI start failures (it tracks the value of Status.StartFailure.ConsecutiveFailCount field) before replacing the VM. Defaults to 3 | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachinePoolSpec.md b/docs/V1alpha1VirtualMachinePoolSpec.md index a44706fd..350ee9b0 100644 --- a/docs/V1alpha1VirtualMachinePoolSpec.md +++ b/docs/V1alpha1VirtualMachinePoolSpec.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**autohealing** | [**V1alpha1VirtualMachinePoolAutohealingStrategy**](V1alpha1VirtualMachinePoolAutohealingStrategy.md) | Autohealing specifies when a VMpool should replace a failing VM with a reprovisioned instance | [optional] **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] **name_generation** | [**V1alpha1VirtualMachinePoolNameGeneration**](V1alpha1VirtualMachinePoolNameGeneration.md) | Options for the name generation in a pool. | [optional] **paused** | **bool** | Indicates that the pool is paused. | [optional] diff --git a/git_push.sh b/git_push.sh index 3bc586b8..5805f9dc 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.7.0-beta.0-196-gcd1e13a024" + release_note="Auto-generated client v1.7.0-beta.0-207-g4edec81b5b" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index c6577517..fcc17118 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -951,6 +951,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/v1alpha1_virtual_machine_pool.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePool.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_autohealing_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_autohealing_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolAutohealingStrategy.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_condition.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_condition.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolCondition.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 39452921..31961e4e 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -324,6 +324,7 @@ from .models.v1alpha1_selectors import V1alpha1Selectors from .models.v1alpha1_virtual_machine_opportunistic_update_strategy import V1alpha1VirtualMachineOpportunisticUpdateStrategy from .models.v1alpha1_virtual_machine_pool import V1alpha1VirtualMachinePool +from .models.v1alpha1_virtual_machine_pool_autohealing_strategy import V1alpha1VirtualMachinePoolAutohealingStrategy from .models.v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition from .models.v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList from .models.v1alpha1_virtual_machine_pool_name_generation import V1alpha1VirtualMachinePoolNameGeneration diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index d456f080..4b6b5883 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.7.0-beta.0-196-gcd1e13a024/python' + self.user_agent = 'Swagger-Codegen/v1.7.0-beta.0-207-g4edec81b5b/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index bb6ce346..2d57f7a1 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.7.0-beta.0-196-gcd1e13a024".\ + "SDK Package Version: v1.7.0-beta.0-207-g4edec81b5b".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 8ac3c8f7..6c7dd75d 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -324,6 +324,7 @@ from .v1alpha1_selectors import V1alpha1Selectors from .v1alpha1_virtual_machine_opportunistic_update_strategy import V1alpha1VirtualMachineOpportunisticUpdateStrategy from .v1alpha1_virtual_machine_pool import V1alpha1VirtualMachinePool +from .v1alpha1_virtual_machine_pool_autohealing_strategy import V1alpha1VirtualMachinePoolAutohealingStrategy from .v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition from .v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList from .v1alpha1_virtual_machine_pool_name_generation import V1alpha1VirtualMachinePoolNameGeneration diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_autohealing_strategy.py b/kubevirt/models/v1alpha1_virtual_machine_pool_autohealing_strategy.py new file mode 100644 index 00000000..ae5c30e3 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_pool_autohealing_strategy.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachinePoolAutohealingStrategy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'min_failing_to_start_duration': 'K8sIoApimachineryPkgApisMetaV1Duration', + 'start_up_failure_threshold': 'int' + } + + attribute_map = { + 'min_failing_to_start_duration': 'minFailingToStartDuration', + 'start_up_failure_threshold': 'startUpFailureThreshold' + } + + def __init__(self, min_failing_to_start_duration=None, start_up_failure_threshold=None): + """ + V1alpha1VirtualMachinePoolAutohealingStrategy - a model defined in Swagger + """ + + self._min_failing_to_start_duration = None + self._start_up_failure_threshold = None + + if min_failing_to_start_duration is not None: + self.min_failing_to_start_duration = min_failing_to_start_duration + if start_up_failure_threshold is not None: + self.start_up_failure_threshold = start_up_failure_threshold + + @property + def min_failing_to_start_duration(self): + """ + Gets the min_failing_to_start_duration of this V1alpha1VirtualMachinePoolAutohealingStrategy. + MinFailingToStartDuration is the minimum time a VM must be in a failing status (applies to status conditions like CrashLoopBackOff, Unschedulable) before being replaced. It measures the duration since the VM's Ready condition transitioned to False. Defaults to 5 minutes + + :return: The min_failing_to_start_duration of this V1alpha1VirtualMachinePoolAutohealingStrategy. + :rtype: K8sIoApimachineryPkgApisMetaV1Duration + """ + return self._min_failing_to_start_duration + + @min_failing_to_start_duration.setter + def min_failing_to_start_duration(self, min_failing_to_start_duration): + """ + Sets the min_failing_to_start_duration of this V1alpha1VirtualMachinePoolAutohealingStrategy. + MinFailingToStartDuration is the minimum time a VM must be in a failing status (applies to status conditions like CrashLoopBackOff, Unschedulable) before being replaced. It measures the duration since the VM's Ready condition transitioned to False. Defaults to 5 minutes + + :param min_failing_to_start_duration: The min_failing_to_start_duration of this V1alpha1VirtualMachinePoolAutohealingStrategy. + :type: K8sIoApimachineryPkgApisMetaV1Duration + """ + + self._min_failing_to_start_duration = min_failing_to_start_duration + + @property + def start_up_failure_threshold(self): + """ + Gets the start_up_failure_threshold of this V1alpha1VirtualMachinePoolAutohealingStrategy. + StartUpFailureThreshold is the number of consecutive VMI start failures (it tracks the value of Status.StartFailure.ConsecutiveFailCount field) before replacing the VM. Defaults to 3 + + :return: The start_up_failure_threshold of this V1alpha1VirtualMachinePoolAutohealingStrategy. + :rtype: int + """ + return self._start_up_failure_threshold + + @start_up_failure_threshold.setter + def start_up_failure_threshold(self, start_up_failure_threshold): + """ + Sets the start_up_failure_threshold of this V1alpha1VirtualMachinePoolAutohealingStrategy. + StartUpFailureThreshold is the number of consecutive VMI start failures (it tracks the value of Status.StartFailure.ConsecutiveFailCount field) before replacing the VM. Defaults to 3 + + :param start_up_failure_threshold: The start_up_failure_threshold of this V1alpha1VirtualMachinePoolAutohealingStrategy. + :type: int + """ + + self._start_up_failure_threshold = start_up_failure_threshold + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachinePoolAutohealingStrategy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py b/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py index 096dc2ae..3611a0d6 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py +++ b/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py @@ -31,6 +31,7 @@ class V1alpha1VirtualMachinePoolSpec(object): and the value is json key in definition. """ swagger_types = { + 'autohealing': 'V1alpha1VirtualMachinePoolAutohealingStrategy', 'max_unavailable': 'K8sIoApimachineryPkgUtilIntstrIntOrString', 'name_generation': 'V1alpha1VirtualMachinePoolNameGeneration', 'paused': 'bool', @@ -42,6 +43,7 @@ class V1alpha1VirtualMachinePoolSpec(object): } attribute_map = { + 'autohealing': 'autohealing', 'max_unavailable': 'maxUnavailable', 'name_generation': 'nameGeneration', 'paused': 'paused', @@ -52,11 +54,12 @@ class V1alpha1VirtualMachinePoolSpec(object): 'virtual_machine_template': 'virtualMachineTemplate' } - def __init__(self, max_unavailable=None, name_generation=None, paused=None, replicas=None, scale_in_strategy=None, selector=None, update_strategy=None, virtual_machine_template=None): + def __init__(self, autohealing=None, max_unavailable=None, name_generation=None, paused=None, replicas=None, scale_in_strategy=None, selector=None, update_strategy=None, virtual_machine_template=None): """ V1alpha1VirtualMachinePoolSpec - a model defined in Swagger """ + self._autohealing = None self._max_unavailable = None self._name_generation = None self._paused = None @@ -66,6 +69,8 @@ def __init__(self, max_unavailable=None, name_generation=None, paused=None, repl self._update_strategy = None self._virtual_machine_template = None + if autohealing is not None: + self.autohealing = autohealing if max_unavailable is not None: self.max_unavailable = max_unavailable if name_generation is not None: @@ -81,6 +86,29 @@ def __init__(self, max_unavailable=None, name_generation=None, paused=None, repl self.update_strategy = update_strategy self.virtual_machine_template = virtual_machine_template + @property + def autohealing(self): + """ + Gets the autohealing of this V1alpha1VirtualMachinePoolSpec. + Autohealing specifies when a VMpool should replace a failing VM with a reprovisioned instance + + :return: The autohealing of this V1alpha1VirtualMachinePoolSpec. + :rtype: V1alpha1VirtualMachinePoolAutohealingStrategy + """ + return self._autohealing + + @autohealing.setter + def autohealing(self, autohealing): + """ + Sets the autohealing of this V1alpha1VirtualMachinePoolSpec. + Autohealing specifies when a VMpool should replace a failing VM with a reprovisioned instance + + :param autohealing: The autohealing of this V1alpha1VirtualMachinePoolSpec. + :type: V1alpha1VirtualMachinePoolAutohealingStrategy + """ + + self._autohealing = autohealing + @property def max_unavailable(self): """ diff --git a/setup.py b/setup.py index 78cae9c8..d6bc6cf4 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.7.0-beta.0-196-gcd1e13a024" +VERSION = "v1.7.0-beta.0-207-g4edec81b5b" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index c9cb01e8..fdfe536d 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.7.0-beta.0-196-gcd1e13a024" +"packageVersion": "v1.7.0-beta.0-207-g4edec81b5b" } diff --git a/test/test_v1alpha1_virtual_machine_pool_autohealing_strategy.py b/test/test_v1alpha1_virtual_machine_pool_autohealing_strategy.py new file mode 100644 index 00000000..1b24a394 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_pool_autohealing_strategy.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_pool_autohealing_strategy import V1alpha1VirtualMachinePoolAutohealingStrategy + + +class TestV1alpha1VirtualMachinePoolAutohealingStrategy(unittest.TestCase): + """ V1alpha1VirtualMachinePoolAutohealingStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachinePoolAutohealingStrategy(self): + """ + Test V1alpha1VirtualMachinePoolAutohealingStrategy + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_pool_autohealing_strategy.V1alpha1VirtualMachinePoolAutohealingStrategy() + pass + + +if __name__ == '__main__': + unittest.main() From 111458e7e1b820a24e9936a135cd54963dd17cdf Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 5 Nov 2025 10:06:25 +0000 Subject: [PATCH 490/521] Client Python update by KubeVirt Prow build 1986008896640126976 --- README.md | 3 +- docs/V1beta1SourceIndication.md | 11 ++ docs/V1beta1VirtualMachineSnapshotStatus.md | 3 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1beta1_source_indication.py | 155 ++++++++++++++++++ ...v1beta1_virtual_machine_snapshot_status.py | 30 +++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1beta1_source_indication.py | 44 +++++ 14 files changed, 253 insertions(+), 8 deletions(-) create mode 100644 docs/V1beta1SourceIndication.md create mode 100644 kubevirt/models/v1beta1_source_indication.py create mode 100644 test/test_v1beta1_source_indication.py diff --git a/README.md b/README.md index 649f6604..812d7ef0 100644 --- a/README.md +++ b/README.md @@ -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.7.0-beta.0-207-g4edec81b5b +- Package version: v1.7.0-beta.0-239-gdfb7c519f0 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -698,6 +698,7 @@ Class | Method | HTTP request | Description - [V1beta1PlatformOptions](docs/V1beta1PlatformOptions.md) - [V1beta1PreferenceRequirements](docs/V1beta1PreferenceRequirements.md) - [V1beta1SnapshotVolumesLists](docs/V1beta1SnapshotVolumesLists.md) + - [V1beta1SourceIndication](docs/V1beta1SourceIndication.md) - [V1beta1SourceSpec](docs/V1beta1SourceSpec.md) - [V1beta1SpreadOptions](docs/V1beta1SpreadOptions.md) - [V1beta1StorageSpec](docs/V1beta1StorageSpec.md) diff --git a/docs/V1beta1SourceIndication.md b/docs/V1beta1SourceIndication.md new file mode 100644 index 00000000..c7fd4f78 --- /dev/null +++ b/docs/V1beta1SourceIndication.md @@ -0,0 +1,11 @@ +# V1beta1SourceIndication + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**indication** | **str** | Indication is the indication type | [default to ''] +**message** | **str** | Message provides a description message of the indication | [default to ''] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1VirtualMachineSnapshotStatus.md b/docs/V1beta1VirtualMachineSnapshotStatus.md index 391dd329..e48e9deb 100644 --- a/docs/V1beta1VirtualMachineSnapshotStatus.md +++ b/docs/V1beta1VirtualMachineSnapshotStatus.md @@ -6,10 +6,11 @@ Name | Type | Description | Notes **conditions** | [**list[V1beta1Condition]**](V1beta1Condition.md) | | [optional] **creation_time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | | [optional] **error** | [**V1beta1Error**](V1beta1Error.md) | | [optional] -**indications** | **list[str]** | | [optional] +**indications** | **list[str]** | Deprecated: Use SourceIndications instead. This field will be removed in a future version. | [optional] **phase** | **str** | | [optional] **ready_to_use** | **bool** | | [optional] **snapshot_volumes** | [**V1beta1SnapshotVolumesLists**](V1beta1SnapshotVolumesLists.md) | | [optional] +**source_indications** | [**list[V1beta1SourceIndication]**](V1beta1SourceIndication.md) | | [optional] **source_uid** | **str** | | [optional] **virtual_machine_snapshot_content_name** | **str** | | [optional] diff --git a/git_push.sh b/git_push.sh index 5805f9dc..c0e13c18 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.7.0-beta.0-207-g4edec81b5b" + release_note="Auto-generated client v1.7.0-beta.0-239-gdfb7c519f0" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index fcc17118..2052b032 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -1086,6 +1086,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/v1beta1_snapshot_volumes_lists.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_snapshot_volumes_lists.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1SnapshotVolumesLists.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_source_indication.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_source_indication.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1SourceIndication.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_source_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_source_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1SourceSpec.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 31961e4e..a86d10db 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -369,6 +369,7 @@ from .models.v1beta1_platform_options import V1beta1PlatformOptions from .models.v1beta1_preference_requirements import V1beta1PreferenceRequirements from .models.v1beta1_snapshot_volumes_lists import V1beta1SnapshotVolumesLists +from .models.v1beta1_source_indication import V1beta1SourceIndication from .models.v1beta1_source_spec import V1beta1SourceSpec from .models.v1beta1_spread_options import V1beta1SpreadOptions from .models.v1beta1_storage_spec import V1beta1StorageSpec diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 4b6b5883..30eaf0c4 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.7.0-beta.0-207-g4edec81b5b/python' + self.user_agent = 'Swagger-Codegen/v1.7.0-beta.0-239-gdfb7c519f0/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 2d57f7a1..1a23568a 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.7.0-beta.0-207-g4edec81b5b".\ + "SDK Package Version: v1.7.0-beta.0-239-gdfb7c519f0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 6c7dd75d..83541aae 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -369,6 +369,7 @@ from .v1beta1_platform_options import V1beta1PlatformOptions from .v1beta1_preference_requirements import V1beta1PreferenceRequirements from .v1beta1_snapshot_volumes_lists import V1beta1SnapshotVolumesLists +from .v1beta1_source_indication import V1beta1SourceIndication from .v1beta1_source_spec import V1beta1SourceSpec from .v1beta1_spread_options import V1beta1SpreadOptions from .v1beta1_storage_spec import V1beta1StorageSpec diff --git a/kubevirt/models/v1beta1_source_indication.py b/kubevirt/models/v1beta1_source_indication.py new file mode 100644 index 00000000..b914daa9 --- /dev/null +++ b/kubevirt/models/v1beta1_source_indication.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1SourceIndication(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'indication': 'str', + 'message': 'str' + } + + attribute_map = { + 'indication': 'indication', + 'message': 'message' + } + + def __init__(self, indication='', message=''): + """ + V1beta1SourceIndication - a model defined in Swagger + """ + + self._indication = None + self._message = None + + self.indication = indication + self.message = message + + @property + def indication(self): + """ + Gets the indication of this V1beta1SourceIndication. + Indication is the indication type + + :return: The indication of this V1beta1SourceIndication. + :rtype: str + """ + return self._indication + + @indication.setter + def indication(self, indication): + """ + Sets the indication of this V1beta1SourceIndication. + Indication is the indication type + + :param indication: The indication of this V1beta1SourceIndication. + :type: str + """ + if indication is None: + raise ValueError("Invalid value for `indication`, must not be `None`") + + self._indication = indication + + @property + def message(self): + """ + Gets the message of this V1beta1SourceIndication. + Message provides a description message of the indication + + :return: The message of this V1beta1SourceIndication. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1beta1SourceIndication. + Message provides a description message of the indication + + :param message: The message of this V1beta1SourceIndication. + :type: str + """ + if message is None: + raise ValueError("Invalid value for `message`, must not be `None`") + + self._message = message + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1beta1SourceIndication): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1beta1_virtual_machine_snapshot_status.py b/kubevirt/models/v1beta1_virtual_machine_snapshot_status.py index d7677479..b8231e14 100644 --- a/kubevirt/models/v1beta1_virtual_machine_snapshot_status.py +++ b/kubevirt/models/v1beta1_virtual_machine_snapshot_status.py @@ -38,6 +38,7 @@ class V1beta1VirtualMachineSnapshotStatus(object): 'phase': 'str', 'ready_to_use': 'bool', 'snapshot_volumes': 'V1beta1SnapshotVolumesLists', + 'source_indications': 'list[V1beta1SourceIndication]', 'source_uid': 'str', 'virtual_machine_snapshot_content_name': 'str' } @@ -50,11 +51,12 @@ class V1beta1VirtualMachineSnapshotStatus(object): 'phase': 'phase', 'ready_to_use': 'readyToUse', 'snapshot_volumes': 'snapshotVolumes', + 'source_indications': 'sourceIndications', 'source_uid': 'sourceUID', 'virtual_machine_snapshot_content_name': 'virtualMachineSnapshotContentName' } - def __init__(self, conditions=None, creation_time=None, error=None, indications=None, phase=None, ready_to_use=None, snapshot_volumes=None, source_uid=None, virtual_machine_snapshot_content_name=None): + def __init__(self, conditions=None, creation_time=None, error=None, indications=None, phase=None, ready_to_use=None, snapshot_volumes=None, source_indications=None, source_uid=None, virtual_machine_snapshot_content_name=None): """ V1beta1VirtualMachineSnapshotStatus - a model defined in Swagger """ @@ -66,6 +68,7 @@ def __init__(self, conditions=None, creation_time=None, error=None, indications= self._phase = None self._ready_to_use = None self._snapshot_volumes = None + self._source_indications = None self._source_uid = None self._virtual_machine_snapshot_content_name = None @@ -83,6 +86,8 @@ def __init__(self, conditions=None, creation_time=None, error=None, indications= self.ready_to_use = ready_to_use if snapshot_volumes is not None: self.snapshot_volumes = snapshot_volumes + if source_indications is not None: + self.source_indications = source_indications if source_uid is not None: self.source_uid = source_uid if virtual_machine_snapshot_content_name is not None: @@ -155,6 +160,7 @@ def error(self, error): def indications(self): """ Gets the indications of this V1beta1VirtualMachineSnapshotStatus. + Deprecated: Use SourceIndications instead. This field will be removed in a future version. :return: The indications of this V1beta1VirtualMachineSnapshotStatus. :rtype: list[str] @@ -165,6 +171,7 @@ def indications(self): def indications(self, indications): """ Sets the indications of this V1beta1VirtualMachineSnapshotStatus. + Deprecated: Use SourceIndications instead. This field will be removed in a future version. :param indications: The indications of this V1beta1VirtualMachineSnapshotStatus. :type: list[str] @@ -235,6 +242,27 @@ def snapshot_volumes(self, snapshot_volumes): self._snapshot_volumes = snapshot_volumes + @property + def source_indications(self): + """ + Gets the source_indications of this V1beta1VirtualMachineSnapshotStatus. + + :return: The source_indications of this V1beta1VirtualMachineSnapshotStatus. + :rtype: list[V1beta1SourceIndication] + """ + return self._source_indications + + @source_indications.setter + def source_indications(self, source_indications): + """ + Sets the source_indications of this V1beta1VirtualMachineSnapshotStatus. + + :param source_indications: The source_indications of this V1beta1VirtualMachineSnapshotStatus. + :type: list[V1beta1SourceIndication] + """ + + self._source_indications = source_indications + @property def source_uid(self): """ diff --git a/setup.py b/setup.py index d6bc6cf4..bea04452 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.7.0-beta.0-207-g4edec81b5b" +VERSION = "v1.7.0-beta.0-239-gdfb7c519f0" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index fdfe536d..27c6e339 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.7.0-beta.0-207-g4edec81b5b" +"packageVersion": "v1.7.0-beta.0-239-gdfb7c519f0" } diff --git a/test/test_v1beta1_source_indication.py b/test/test_v1beta1_source_indication.py new file mode 100644 index 00000000..eaed8de4 --- /dev/null +++ b/test/test_v1beta1_source_indication.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_source_indication import V1beta1SourceIndication + + +class TestV1beta1SourceIndication(unittest.TestCase): + """ V1beta1SourceIndication unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1SourceIndication(self): + """ + Test V1beta1SourceIndication + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_source_indication.V1beta1SourceIndication() + pass + + +if __name__ == '__main__': + unittest.main() From 37f02f37a9bfec9dc62c18f747d17c3daf567250 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 5 Nov 2025 22:04:45 +0000 Subject: [PATCH 491/521] Client Python update by KubeVirt Prow build 1986185081298882560 --- README.md | 3 +- .../V1VirtualMachineInstanceGuestAgentInfo.md | 1 - docs/V1VirtualMachineInstanceGuestOSLoad.md | 15 - git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 - kubevirt/__init__.py | 1 - kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 - ...rtual_machine_instance_guest_agent_info.py | 30 +- ..._virtual_machine_instance_guest_os_load.py | 265 ------------------ setup.py | 2 +- swagger-codegen-config.json | 2 +- ..._virtual_machine_instance_guest_os_load.py | 44 --- 14 files changed, 7 insertions(+), 366 deletions(-) delete mode 100644 docs/V1VirtualMachineInstanceGuestOSLoad.md delete mode 100644 kubevirt/models/v1_virtual_machine_instance_guest_os_load.py delete mode 100644 test/test_v1_virtual_machine_instance_guest_os_load.py diff --git a/README.md b/README.md index 812d7ef0..9d21fafe 100644 --- a/README.md +++ b/README.md @@ -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.7.0-beta.0-239-gdfb7c519f0 +- Package version: v1.7.0-beta.0-246-gc363dbe207 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -603,7 +603,6 @@ Class | Method | HTTP request | Description - [V1VirtualMachineInstanceFileSystemList](docs/V1VirtualMachineInstanceFileSystemList.md) - [V1VirtualMachineInstanceGuestAgentInfo](docs/V1VirtualMachineInstanceGuestAgentInfo.md) - [V1VirtualMachineInstanceGuestOSInfo](docs/V1VirtualMachineInstanceGuestOSInfo.md) - - [V1VirtualMachineInstanceGuestOSLoad](docs/V1VirtualMachineInstanceGuestOSLoad.md) - [V1VirtualMachineInstanceGuestOSUser](docs/V1VirtualMachineInstanceGuestOSUser.md) - [V1VirtualMachineInstanceGuestOSUserList](docs/V1VirtualMachineInstanceGuestOSUserList.md) - [V1VirtualMachineInstanceList](docs/V1VirtualMachineInstanceList.md) diff --git a/docs/V1VirtualMachineInstanceGuestAgentInfo.md b/docs/V1VirtualMachineInstanceGuestAgentInfo.md index f9e0eadf..c443c525 100644 --- a/docs/V1VirtualMachineInstanceGuestAgentInfo.md +++ b/docs/V1VirtualMachineInstanceGuestAgentInfo.md @@ -9,7 +9,6 @@ Name | Type | Description | Notes **guest_agent_version** | **str** | GAVersion is a version of currently installed guest agent | [optional] **hostname** | **str** | Hostname represents FQDN of a guest | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**load** | [**V1VirtualMachineInstanceGuestOSLoad**](V1VirtualMachineInstanceGuestOSLoad.md) | Load contains the system load averages (1M, 5M, 15M) from the guest agent | [optional] **os** | [**V1VirtualMachineInstanceGuestOSInfo**](V1VirtualMachineInstanceGuestOSInfo.md) | OS contains the guest operating system information | [optional] **supported_commands** | [**list[V1GuestAgentCommandInfo]**](V1GuestAgentCommandInfo.md) | Return command list the guest agent supports | [optional] **timezone** | **str** | Timezone is guest os current timezone | [optional] diff --git a/docs/V1VirtualMachineInstanceGuestOSLoad.md b/docs/V1VirtualMachineInstanceGuestOSLoad.md deleted file mode 100644 index 65947a80..00000000 --- a/docs/V1VirtualMachineInstanceGuestOSLoad.md +++ /dev/null @@ -1,15 +0,0 @@ -# V1VirtualMachineInstanceGuestOSLoad - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**load15m** | **float** | Load average over 15 minutes | [optional] -**load15m_set** | **bool** | Load15mSet indicates whether the 15 minute load average is set | [optional] -**load1m** | **float** | Load average over 1 minute | [optional] -**load1m_set** | **bool** | Load1mSet indicates whether the 1 minute load average is set | [optional] -**load5m** | **float** | Load average over 5 minutes | [optional] -**load5m_set** | **bool** | Load5mSet indicates whether the 5 minute load average is set | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/git_push.sh b/git_push.sh index c0e13c18..4ccaac0e 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.7.0-beta.0-239-gdfb7c519f0" + release_note="Auto-generated client v1.7.0-beta.0-246-gc363dbe207" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 2052b032..45950890 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -801,9 +801,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_virtual_machine_instance_guest_os_info.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_guest_os_info.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceGuestOSInfo.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_guest_os_load.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_guest_os_load.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceGuestOSLoad.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_guest_os_user.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_guest_os_user.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceGuestOSUser.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index a86d10db..451cffb8 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -274,7 +274,6 @@ from .models.v1_virtual_machine_instance_file_system_list import V1VirtualMachineInstanceFileSystemList from .models.v1_virtual_machine_instance_guest_agent_info import V1VirtualMachineInstanceGuestAgentInfo from .models.v1_virtual_machine_instance_guest_os_info import V1VirtualMachineInstanceGuestOSInfo -from .models.v1_virtual_machine_instance_guest_os_load import V1VirtualMachineInstanceGuestOSLoad from .models.v1_virtual_machine_instance_guest_os_user import V1VirtualMachineInstanceGuestOSUser from .models.v1_virtual_machine_instance_guest_os_user_list import V1VirtualMachineInstanceGuestOSUserList from .models.v1_virtual_machine_instance_list import V1VirtualMachineInstanceList diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 30eaf0c4..58a91ee7 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.7.0-beta.0-239-gdfb7c519f0/python' + self.user_agent = 'Swagger-Codegen/v1.7.0-beta.0-246-gc363dbe207/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 1a23568a..6539d6c2 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.7.0-beta.0-239-gdfb7c519f0".\ + "SDK Package Version: v1.7.0-beta.0-246-gc363dbe207".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 83541aae..c670a1a0 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -274,7 +274,6 @@ from .v1_virtual_machine_instance_file_system_list import V1VirtualMachineInstanceFileSystemList from .v1_virtual_machine_instance_guest_agent_info import V1VirtualMachineInstanceGuestAgentInfo from .v1_virtual_machine_instance_guest_os_info import V1VirtualMachineInstanceGuestOSInfo -from .v1_virtual_machine_instance_guest_os_load import V1VirtualMachineInstanceGuestOSLoad from .v1_virtual_machine_instance_guest_os_user import V1VirtualMachineInstanceGuestOSUser from .v1_virtual_machine_instance_guest_os_user_list import V1VirtualMachineInstanceGuestOSUserList from .v1_virtual_machine_instance_list import V1VirtualMachineInstanceList diff --git a/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py b/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py index 7ad06939..2ffc69d0 100644 --- a/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py +++ b/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py @@ -37,7 +37,6 @@ class V1VirtualMachineInstanceGuestAgentInfo(object): 'guest_agent_version': 'str', 'hostname': 'str', 'kind': 'str', - 'load': 'V1VirtualMachineInstanceGuestOSLoad', 'os': 'V1VirtualMachineInstanceGuestOSInfo', 'supported_commands': 'list[V1GuestAgentCommandInfo]', 'timezone': 'str', @@ -51,14 +50,13 @@ class V1VirtualMachineInstanceGuestAgentInfo(object): 'guest_agent_version': 'guestAgentVersion', 'hostname': 'hostname', 'kind': 'kind', - 'load': 'load', 'os': 'os', 'supported_commands': 'supportedCommands', 'timezone': 'timezone', 'user_list': 'userList' } - def __init__(self, api_version=None, fs_freeze_status=None, fs_info=None, guest_agent_version=None, hostname=None, kind=None, load=None, os=None, supported_commands=None, timezone=None, user_list=None): + def __init__(self, api_version=None, fs_freeze_status=None, fs_info=None, guest_agent_version=None, hostname=None, kind=None, os=None, supported_commands=None, timezone=None, user_list=None): """ V1VirtualMachineInstanceGuestAgentInfo - a model defined in Swagger """ @@ -69,7 +67,6 @@ def __init__(self, api_version=None, fs_freeze_status=None, fs_info=None, guest_ self._guest_agent_version = None self._hostname = None self._kind = None - self._load = None self._os = None self._supported_commands = None self._timezone = None @@ -87,8 +84,6 @@ def __init__(self, api_version=None, fs_freeze_status=None, fs_info=None, guest_ self.hostname = hostname if kind is not None: self.kind = kind - if load is not None: - self.load = load if os is not None: self.os = os if supported_commands is not None: @@ -236,29 +231,6 @@ def kind(self, kind): self._kind = kind - @property - def load(self): - """ - Gets the load of this V1VirtualMachineInstanceGuestAgentInfo. - Load contains the system load averages (1M, 5M, 15M) from the guest agent - - :return: The load of this V1VirtualMachineInstanceGuestAgentInfo. - :rtype: V1VirtualMachineInstanceGuestOSLoad - """ - return self._load - - @load.setter - def load(self, load): - """ - Sets the load of this V1VirtualMachineInstanceGuestAgentInfo. - Load contains the system load averages (1M, 5M, 15M) from the guest agent - - :param load: The load of this V1VirtualMachineInstanceGuestAgentInfo. - :type: V1VirtualMachineInstanceGuestOSLoad - """ - - self._load = load - @property def os(self): """ diff --git a/kubevirt/models/v1_virtual_machine_instance_guest_os_load.py b/kubevirt/models/v1_virtual_machine_instance_guest_os_load.py deleted file mode 100644 index be87f840..00000000 --- a/kubevirt/models/v1_virtual_machine_instance_guest_os_load.py +++ /dev/null @@ -1,265 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1VirtualMachineInstanceGuestOSLoad(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'load15m': 'float', - 'load15m_set': 'bool', - 'load1m': 'float', - 'load1m_set': 'bool', - 'load5m': 'float', - 'load5m_set': 'bool' - } - - attribute_map = { - 'load15m': 'load15m', - 'load15m_set': 'load15mSet', - 'load1m': 'load1m', - 'load1m_set': 'load1mSet', - 'load5m': 'load5m', - 'load5m_set': 'load5mSet' - } - - def __init__(self, load15m=None, load15m_set=None, load1m=None, load1m_set=None, load5m=None, load5m_set=None): - """ - V1VirtualMachineInstanceGuestOSLoad - a model defined in Swagger - """ - - self._load15m = None - self._load15m_set = None - self._load1m = None - self._load1m_set = None - self._load5m = None - self._load5m_set = None - - if load15m is not None: - self.load15m = load15m - if load15m_set is not None: - self.load15m_set = load15m_set - if load1m is not None: - self.load1m = load1m - if load1m_set is not None: - self.load1m_set = load1m_set - if load5m is not None: - self.load5m = load5m - if load5m_set is not None: - self.load5m_set = load5m_set - - @property - def load15m(self): - """ - Gets the load15m of this V1VirtualMachineInstanceGuestOSLoad. - Load average over 15 minutes - - :return: The load15m of this V1VirtualMachineInstanceGuestOSLoad. - :rtype: float - """ - return self._load15m - - @load15m.setter - def load15m(self, load15m): - """ - Sets the load15m of this V1VirtualMachineInstanceGuestOSLoad. - Load average over 15 minutes - - :param load15m: The load15m of this V1VirtualMachineInstanceGuestOSLoad. - :type: float - """ - - self._load15m = load15m - - @property - def load15m_set(self): - """ - Gets the load15m_set of this V1VirtualMachineInstanceGuestOSLoad. - Load15mSet indicates whether the 15 minute load average is set - - :return: The load15m_set of this V1VirtualMachineInstanceGuestOSLoad. - :rtype: bool - """ - return self._load15m_set - - @load15m_set.setter - def load15m_set(self, load15m_set): - """ - Sets the load15m_set of this V1VirtualMachineInstanceGuestOSLoad. - Load15mSet indicates whether the 15 minute load average is set - - :param load15m_set: The load15m_set of this V1VirtualMachineInstanceGuestOSLoad. - :type: bool - """ - - self._load15m_set = load15m_set - - @property - def load1m(self): - """ - Gets the load1m of this V1VirtualMachineInstanceGuestOSLoad. - Load average over 1 minute - - :return: The load1m of this V1VirtualMachineInstanceGuestOSLoad. - :rtype: float - """ - return self._load1m - - @load1m.setter - def load1m(self, load1m): - """ - Sets the load1m of this V1VirtualMachineInstanceGuestOSLoad. - Load average over 1 minute - - :param load1m: The load1m of this V1VirtualMachineInstanceGuestOSLoad. - :type: float - """ - - self._load1m = load1m - - @property - def load1m_set(self): - """ - Gets the load1m_set of this V1VirtualMachineInstanceGuestOSLoad. - Load1mSet indicates whether the 1 minute load average is set - - :return: The load1m_set of this V1VirtualMachineInstanceGuestOSLoad. - :rtype: bool - """ - return self._load1m_set - - @load1m_set.setter - def load1m_set(self, load1m_set): - """ - Sets the load1m_set of this V1VirtualMachineInstanceGuestOSLoad. - Load1mSet indicates whether the 1 minute load average is set - - :param load1m_set: The load1m_set of this V1VirtualMachineInstanceGuestOSLoad. - :type: bool - """ - - self._load1m_set = load1m_set - - @property - def load5m(self): - """ - Gets the load5m of this V1VirtualMachineInstanceGuestOSLoad. - Load average over 5 minutes - - :return: The load5m of this V1VirtualMachineInstanceGuestOSLoad. - :rtype: float - """ - return self._load5m - - @load5m.setter - def load5m(self, load5m): - """ - Sets the load5m of this V1VirtualMachineInstanceGuestOSLoad. - Load average over 5 minutes - - :param load5m: The load5m of this V1VirtualMachineInstanceGuestOSLoad. - :type: float - """ - - self._load5m = load5m - - @property - def load5m_set(self): - """ - Gets the load5m_set of this V1VirtualMachineInstanceGuestOSLoad. - Load5mSet indicates whether the 5 minute load average is set - - :return: The load5m_set of this V1VirtualMachineInstanceGuestOSLoad. - :rtype: bool - """ - return self._load5m_set - - @load5m_set.setter - def load5m_set(self, load5m_set): - """ - Sets the load5m_set of this V1VirtualMachineInstanceGuestOSLoad. - Load5mSet indicates whether the 5 minute load average is set - - :param load5m_set: The load5m_set of this V1VirtualMachineInstanceGuestOSLoad. - :type: bool - """ - - self._load5m_set = load5m_set - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1VirtualMachineInstanceGuestOSLoad): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/setup.py b/setup.py index bea04452..9ff84624 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.7.0-beta.0-239-gdfb7c519f0" +VERSION = "v1.7.0-beta.0-246-gc363dbe207" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 27c6e339..826896bc 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.7.0-beta.0-239-gdfb7c519f0" +"packageVersion": "v1.7.0-beta.0-246-gc363dbe207" } diff --git a/test/test_v1_virtual_machine_instance_guest_os_load.py b/test/test_v1_virtual_machine_instance_guest_os_load.py deleted file mode 100644 index 2e54ef5f..00000000 --- a/test/test_v1_virtual_machine_instance_guest_os_load.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_virtual_machine_instance_guest_os_load import V1VirtualMachineInstanceGuestOSLoad - - -class TestV1VirtualMachineInstanceGuestOSLoad(unittest.TestCase): - """ V1VirtualMachineInstanceGuestOSLoad unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1VirtualMachineInstanceGuestOSLoad(self): - """ - Test V1VirtualMachineInstanceGuestOSLoad - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_virtual_machine_instance_guest_os_load.V1VirtualMachineInstanceGuestOSLoad() - pass - - -if __name__ == '__main__': - unittest.main() From 60287b7dd3156e94c960f03957ac07e529d7753c Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 6 Nov 2025 03:19:31 +0000 Subject: [PATCH 492/521] Client Python update by KubeVirt Prow build 1986267127748759552 --- README.md | 58 +++++----- docs/DefaultApi.md | 62 +++++----- ...rtualMachinePoolProactiveUpdateStrategy.md | 10 -- ...alpha1VirtualMachinePoolScaleInStrategy.md | 12 -- ...1alpha1VirtualMachinePoolUpdateStrategy.md | 12 -- ...tualMachineOpportunisticUpdateStrategy.md} | 2 +- ...nePool.md => V1beta1VirtualMachinePool.md} | 6 +- ...1VirtualMachinePoolAutohealingStrategy.md} | 2 +- ... => V1beta1VirtualMachinePoolCondition.md} | 2 +- ...st.md => V1beta1VirtualMachinePoolList.md} | 4 +- ...1beta1VirtualMachinePoolNameGeneration.md} | 2 +- ...achinePoolOpportunisticScaleInStrategy.md} | 2 +- ...ualMachinePoolProactiveScaleInStrategy.md} | 4 +- ...rtualMachinePoolProactiveUpdateStrategy.md | 10 ++ ...1beta1VirtualMachinePoolScaleInStrategy.md | 12 ++ ...beta1VirtualMachinePoolSelectionPolicy.md} | 4 +- ... => V1beta1VirtualMachinePoolSelectors.md} | 2 +- ...ec.md => V1beta1VirtualMachinePoolSpec.md} | 12 +- ....md => V1beta1VirtualMachinePoolStatus.md} | 4 +- ...ta1VirtualMachinePoolUnmanagedStrategy.md} | 2 +- ...V1beta1VirtualMachinePoolUpdateStrategy.md | 12 ++ ...d => V1beta1VirtualMachineTemplateSpec.md} | 2 +- git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 102 ++++++++--------- kubevirt/__init__.py | 34 +++--- kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 80 ++++++------- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 34 +++--- ..._machine_opportunistic_update_strategy.py} | 6 +- ...ool.py => v1beta1_virtual_machine_pool.py} | 58 +++++----- ...tual_machine_pool_autohealing_strategy.py} | 22 ++-- ...v1beta1_virtual_machine_pool_condition.py} | 38 +++--- ...y => v1beta1_virtual_machine_pool_list.py} | 44 +++---- ...1_virtual_machine_pool_name_generation.py} | 22 ++-- ...e_pool_opportunistic_scale_in_strategy.py} | 14 +-- ...chine_pool_proactive_scale_in_strategy.py} | 28 ++--- ...machine_pool_proactive_update_strategy.py} | 20 ++-- ...virtual_machine_pool_scale_in_strategy.py} | 48 ++++---- ..._virtual_machine_pool_selection_policy.py} | 28 ++--- ...v1beta1_virtual_machine_pool_selectors.py} | 22 ++-- ...y => v1beta1_virtual_machine_pool_spec.py} | 108 +++++++++--------- ...=> v1beta1_virtual_machine_pool_status.py} | 44 +++---- ...irtual_machine_pool_unmanaged_strategy.py} | 6 +- ...1_virtual_machine_pool_update_strategy.py} | 48 ++++---- ... v1beta1_virtual_machine_template_spec.py} | 22 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 4 +- ...ne_pool_opportunistic_scale_in_strategy.py | 44 ------- ...achine_pool_proactive_scale_in_strategy.py | 44 ------- ..._virtual_machine_pool_scale_in_strategy.py | 44 ------- ...1_virtual_machine_pool_selection_policy.py | 44 ------- ...virtual_machine_pool_unmanaged_strategy.py | 44 ------- ..._machine_opportunistic_update_strategy.py} | 12 +- ...y => test_v1beta1_virtual_machine_pool.py} | 12 +- ...rtual_machine_pool_autohealing_strategy.py | 44 +++++++ ...v1beta1_virtual_machine_pool_condition.py} | 12 +- ...test_v1beta1_virtual_machine_pool_list.py} | 12 +- ...1_virtual_machine_pool_name_generation.py} | 12 +- ...e_pool_opportunistic_scale_in_strategy.py} | 12 +- ...chine_pool_proactive_scale_in_strategy.py} | 12 +- ..._machine_pool_proactive_update_strategy.py | 44 +++++++ ...virtual_machine_pool_scale_in_strategy.py} | 12 +- ..._virtual_machine_pool_selection_policy.py} | 12 +- ..._v1beta1_virtual_machine_pool_selectors.py | 44 +++++++ ...test_v1beta1_virtual_machine_pool_spec.py} | 12 +- ...st_v1beta1_virtual_machine_pool_status.py} | 12 +- ...virtual_machine_pool_unmanaged_strategy.py | 44 +++++++ ...1_virtual_machine_pool_update_strategy.py} | 12 +- ...t_v1beta1_virtual_machine_template_spec.py | 44 +++++++ 71 files changed, 832 insertions(+), 832 deletions(-) delete mode 100644 docs/V1alpha1VirtualMachinePoolProactiveUpdateStrategy.md delete mode 100644 docs/V1alpha1VirtualMachinePoolScaleInStrategy.md delete mode 100644 docs/V1alpha1VirtualMachinePoolUpdateStrategy.md rename docs/{V1alpha1VirtualMachineOpportunisticUpdateStrategy.md => V1beta1VirtualMachineOpportunisticUpdateStrategy.md} (84%) rename docs/{V1alpha1VirtualMachinePool.md => V1beta1VirtualMachinePool.md} (82%) rename docs/{V1alpha1VirtualMachinePoolAutohealingStrategy.md => V1beta1VirtualMachinePoolAutohealingStrategy.md} (95%) rename docs/{V1alpha1VirtualMachinePoolCondition.md => V1beta1VirtualMachinePoolCondition.md} (91%) rename docs/{V1alpha1VirtualMachinePoolList.md => V1beta1VirtualMachinePoolList.md} (89%) rename docs/{V1alpha1VirtualMachinePoolNameGeneration.md => V1beta1VirtualMachinePoolNameGeneration.md} (90%) rename docs/{V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy.md => V1beta1VirtualMachinePoolOpportunisticScaleInStrategy.md} (93%) rename docs/{V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md => V1beta1VirtualMachinePoolProactiveScaleInStrategy.md} (67%) create mode 100644 docs/V1beta1VirtualMachinePoolProactiveUpdateStrategy.md create mode 100644 docs/V1beta1VirtualMachinePoolScaleInStrategy.md rename docs/{V1alpha1VirtualMachinePoolSelectionPolicy.md => V1beta1VirtualMachinePoolSelectionPolicy.md} (66%) rename docs/{V1alpha1VirtualMachinePoolSelectors.md => V1beta1VirtualMachinePoolSelectors.md} (94%) rename docs/{V1alpha1VirtualMachinePoolSpec.md => V1beta1VirtualMachinePoolSpec.md} (50%) rename docs/{V1alpha1VirtualMachinePoolStatus.md => V1beta1VirtualMachinePoolStatus.md} (76%) rename docs/{V1alpha1VirtualMachinePoolUnmanagedStrategy.md => V1beta1VirtualMachinePoolUnmanagedStrategy.md} (85%) create mode 100644 docs/V1beta1VirtualMachinePoolUpdateStrategy.md rename docs/{V1alpha1VirtualMachineTemplateSpec.md => V1beta1VirtualMachineTemplateSpec.md} (93%) rename kubevirt/models/{v1alpha1_virtual_machine_opportunistic_update_strategy.py => v1beta1_virtual_machine_opportunistic_update_strategy.py} (90%) rename kubevirt/models/{v1alpha1_virtual_machine_pool.py => v1beta1_virtual_machine_pool.py} (75%) rename kubevirt/models/{v1alpha1_virtual_machine_pool_autohealing_strategy.py => v1beta1_virtual_machine_pool_autohealing_strategy.py} (83%) rename kubevirt/models/{v1alpha1_virtual_machine_pool_condition.py => v1beta1_virtual_machine_pool_condition.py} (74%) rename kubevirt/models/{v1alpha1_virtual_machine_pool_list.py => v1beta1_virtual_machine_pool_list.py} (78%) rename kubevirt/models/{v1alpha1_virtual_machine_pool_name_generation.py => v1beta1_virtual_machine_pool_name_generation.py} (80%) rename kubevirt/models/{v1alpha1_virtual_machine_pool_opportunistic_scale_in_strategy.py => v1beta1_virtual_machine_pool_opportunistic_scale_in_strategy.py} (85%) rename kubevirt/models/{v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py => v1beta1_virtual_machine_pool_proactive_scale_in_strategy.py} (80%) rename kubevirt/models/{v1alpha1_virtual_machine_pool_proactive_update_strategy.py => v1beta1_virtual_machine_pool_proactive_update_strategy.py} (80%) rename kubevirt/models/{v1alpha1_virtual_machine_pool_scale_in_strategy.py => v1beta1_virtual_machine_pool_scale_in_strategy.py} (69%) rename kubevirt/models/{v1alpha1_virtual_machine_pool_selection_policy.py => v1beta1_virtual_machine_pool_selection_policy.py} (76%) rename kubevirt/models/{v1alpha1_virtual_machine_pool_selectors.py => v1beta1_virtual_machine_pool_selectors.py} (84%) rename kubevirt/models/{v1alpha1_virtual_machine_pool_spec.py => v1beta1_virtual_machine_pool_spec.py} (70%) rename kubevirt/models/{v1alpha1_virtual_machine_pool_status.py => v1beta1_virtual_machine_pool_status.py} (72%) rename kubevirt/models/{v1alpha1_virtual_machine_pool_unmanaged_strategy.py => v1beta1_virtual_machine_pool_unmanaged_strategy.py} (91%) rename kubevirt/models/{v1alpha1_virtual_machine_pool_update_strategy.py => v1beta1_virtual_machine_pool_update_strategy.py} (69%) rename kubevirt/models/{v1alpha1_virtual_machine_template_spec.py => v1beta1_virtual_machine_template_spec.py} (81%) delete mode 100644 test/test_v1alpha1_virtual_machine_pool_opportunistic_scale_in_strategy.py delete mode 100644 test/test_v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py delete mode 100644 test/test_v1alpha1_virtual_machine_pool_scale_in_strategy.py delete mode 100644 test/test_v1alpha1_virtual_machine_pool_selection_policy.py delete mode 100644 test/test_v1alpha1_virtual_machine_pool_unmanaged_strategy.py rename test/{test_v1alpha1_virtual_machine_pool_autohealing_strategy.py => test_v1beta1_virtual_machine_opportunistic_update_strategy.py} (52%) rename test/{test_v1alpha1_virtual_machine_pool.py => test_v1beta1_virtual_machine_pool.py} (62%) create mode 100644 test/test_v1beta1_virtual_machine_pool_autohealing_strategy.py rename test/{test_v1alpha1_virtual_machine_template_spec.py => test_v1beta1_virtual_machine_pool_condition.py} (58%) rename test/{test_v1alpha1_virtual_machine_pool_list.py => test_v1beta1_virtual_machine_pool_list.py} (60%) rename test/{test_v1alpha1_virtual_machine_pool_condition.py => test_v1beta1_virtual_machine_pool_name_generation.py} (56%) rename test/{test_v1alpha1_virtual_machine_opportunistic_update_strategy.py => test_v1beta1_virtual_machine_pool_opportunistic_scale_in_strategy.py} (50%) rename test/{test_v1alpha1_virtual_machine_pool_proactive_update_strategy.py => test_v1beta1_virtual_machine_pool_proactive_scale_in_strategy.py} (55%) create mode 100644 test/test_v1beta1_virtual_machine_pool_proactive_update_strategy.py rename test/{test_v1alpha1_virtual_machine_pool_name_generation.py => test_v1beta1_virtual_machine_pool_scale_in_strategy.py} (56%) rename test/{test_v1alpha1_virtual_machine_pool_update_strategy.py => test_v1beta1_virtual_machine_pool_selection_policy.py} (56%) create mode 100644 test/test_v1beta1_virtual_machine_pool_selectors.py rename test/{test_v1alpha1_virtual_machine_pool_spec.py => test_v1beta1_virtual_machine_pool_spec.py} (60%) rename test/{test_v1alpha1_virtual_machine_pool_status.py => test_v1beta1_virtual_machine_pool_status.py} (59%) create mode 100644 test/test_v1beta1_virtual_machine_pool_unmanaged_strategy.py rename test/{test_v1alpha1_virtual_machine_pool_selectors.py => test_v1beta1_virtual_machine_pool_update_strategy.py} (56%) create mode 100644 test/test_v1beta1_virtual_machine_template_spec.py diff --git a/README.md b/README.md index 9d21fafe..fa45f15d 100644 --- a/README.md +++ b/README.md @@ -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.7.0-beta.0-246-gc363dbe207 +- Package version: v1.7.0-beta.0-252-g8282b1a5d9 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -78,7 +78,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**create_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets | *DefaultApi* | [**create_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets | *DefaultApi* | [**create_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#create_namespaced_virtual_machine_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes | -*DefaultApi* | [**create_namespaced_virtual_machine_pool**](docs/DefaultApi.md#create_namespaced_virtual_machine_pool) | **POST** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools | +*DefaultApi* | [**create_namespaced_virtual_machine_pool**](docs/DefaultApi.md#create_namespaced_virtual_machine_pool) | **POST** /apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools | *DefaultApi* | [**create_namespaced_virtual_machine_preference**](docs/DefaultApi.md#create_namespaced_virtual_machine_preference) | **POST** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences | *DefaultApi* | [**create_namespaced_virtual_machine_restore**](docs/DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | *DefaultApi* | [**create_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | @@ -95,7 +95,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_pool**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_pool**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_preference**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | @@ -112,7 +112,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | *DefaultApi* | [**delete_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | -*DefaultApi* | [**delete_namespaced_virtual_machine_pool**](docs/DefaultApi.md#delete_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | +*DefaultApi* | [**delete_namespaced_virtual_machine_pool**](docs/DefaultApi.md#delete_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools/{name} | *DefaultApi* | [**delete_namespaced_virtual_machine_preference**](docs/DefaultApi.md#delete_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | *DefaultApi* | [**delete_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | *DefaultApi* | [**delete_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | @@ -135,7 +135,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**get_api_resources_instancetype_kubevirt_io_v1beta1**](docs/DefaultApi.md#get_api_resources_instancetype_kubevirt_io_v1beta1) | **GET** /apis/instancetype.kubevirt.io/v1beta1/ | *DefaultApi* | [**get_api_resources_kubevirt_io_v1**](docs/DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | *DefaultApi* | [**get_api_resources_migrations_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_migrations_kubevirt_io_v1alpha1) | **GET** /apis/migrations.kubevirt.io/v1alpha1/ | -*DefaultApi* | [**get_api_resources_pool_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_pool_kubevirt_io_v1alpha1) | **GET** /apis/pool.kubevirt.io/v1alpha1/ | +*DefaultApi* | [**get_api_resources_pool_kubevirt_io_v1beta1**](docs/DefaultApi.md#get_api_resources_pool_kubevirt_io_v1beta1) | **GET** /apis/pool.kubevirt.io/v1beta1/ | *DefaultApi* | [**get_api_resources_snapshot_kubevirt_io_v1beta1**](docs/DefaultApi.md#get_api_resources_snapshot_kubevirt_io_v1beta1) | **GET** /apis/snapshot.kubevirt.io/v1beta1/ | *DefaultApi* | [**get_root_paths**](docs/DefaultApi.md#get_root_paths) | **GET** / | *DefaultApi* | [**handle_dump_profiler**](docs/DefaultApi.md#handle_dump_profiler) | **GET** /dump-profiler | @@ -151,7 +151,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets | *DefaultApi* | [**list_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets | *DefaultApi* | [**list_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#list_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes | -*DefaultApi* | [**list_namespaced_virtual_machine_pool**](docs/DefaultApi.md#list_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools | +*DefaultApi* | [**list_namespaced_virtual_machine_pool**](docs/DefaultApi.md#list_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools | *DefaultApi* | [**list_namespaced_virtual_machine_preference**](docs/DefaultApi.md#list_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences | *DefaultApi* | [**list_namespaced_virtual_machine_restore**](docs/DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | *DefaultApi* | [**list_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | @@ -166,7 +166,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_virtual_machine_instance_preset_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancepresets | *DefaultApi* | [**list_virtual_machine_instance_replica_set_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancereplicasets | *DefaultApi* | [**list_virtual_machine_instancetype_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instancetype_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineinstancetypes | -*DefaultApi* | [**list_virtual_machine_pool_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_pool_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/virtualmachinepools | +*DefaultApi* | [**list_virtual_machine_pool_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_pool_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1beta1/virtualmachinepools | *DefaultApi* | [**list_virtual_machine_preference_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_preference_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachinepreferences | *DefaultApi* | [**list_virtual_machine_restore_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_restore_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1beta1/virtualmachinerestores | *DefaultApi* | [**list_virtual_machine_snapshot_content_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1beta1/virtualmachinesnapshotcontents | @@ -180,7 +180,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**patch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | *DefaultApi* | [**patch_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | -*DefaultApi* | [**patch_namespaced_virtual_machine_pool**](docs/DefaultApi.md#patch_namespaced_virtual_machine_pool) | **PATCH** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | +*DefaultApi* | [**patch_namespaced_virtual_machine_pool**](docs/DefaultApi.md#patch_namespaced_virtual_machine_pool) | **PATCH** /apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools/{name} | *DefaultApi* | [**patch_namespaced_virtual_machine_preference**](docs/DefaultApi.md#patch_namespaced_virtual_machine_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | *DefaultApi* | [**patch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | *DefaultApi* | [**patch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | @@ -197,7 +197,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**read_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | *DefaultApi* | [**read_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | *DefaultApi* | [**read_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#read_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | -*DefaultApi* | [**read_namespaced_virtual_machine_pool**](docs/DefaultApi.md#read_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | +*DefaultApi* | [**read_namespaced_virtual_machine_pool**](docs/DefaultApi.md#read_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools/{name} | *DefaultApi* | [**read_namespaced_virtual_machine_preference**](docs/DefaultApi.md#read_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | *DefaultApi* | [**read_namespaced_virtual_machine_restore**](docs/DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | *DefaultApi* | [**read_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | @@ -214,7 +214,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**replace_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | *DefaultApi* | [**replace_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | -*DefaultApi* | [**replace_namespaced_virtual_machine_pool**](docs/DefaultApi.md#replace_namespaced_virtual_machine_pool) | **PUT** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | +*DefaultApi* | [**replace_namespaced_virtual_machine_pool**](docs/DefaultApi.md#replace_namespaced_virtual_machine_pool) | **PUT** /apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools/{name} | *DefaultApi* | [**replace_namespaced_virtual_machine_preference**](docs/DefaultApi.md#replace_namespaced_virtual_machine_preference) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | *DefaultApi* | [**replace_namespaced_virtual_machine_restore**](docs/DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | *DefaultApi* | [**replace_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | @@ -319,7 +319,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**watch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancepresets | *DefaultApi* | [**watch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancereplicasets | *DefaultApi* | [**watch_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachineinstancetypes | -*DefaultApi* | [**watch_namespaced_virtual_machine_pool**](docs/DefaultApi.md#watch_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinepools | +*DefaultApi* | [**watch_namespaced_virtual_machine_pool**](docs/DefaultApi.md#watch_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinepools | *DefaultApi* | [**watch_namespaced_virtual_machine_preference**](docs/DefaultApi.md#watch_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinepreferences | *DefaultApi* | [**watch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinerestores | *DefaultApi* | [**watch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinesnapshots | @@ -334,7 +334,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancereplicasets | *DefaultApi* | [**watch_virtual_machine_instancetype_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineinstancetypes | *DefaultApi* | [**watch_virtual_machine_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachines | -*DefaultApi* | [**watch_virtual_machine_pool_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_pool_list_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/virtualmachinepools | +*DefaultApi* | [**watch_virtual_machine_pool_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_pool_list_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1beta1/watch/virtualmachinepools | *DefaultApi* | [**watch_virtual_machine_preference_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachinepreferences | *DefaultApi* | [**watch_virtual_machine_restore_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_restore_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/virtualmachinerestores | *DefaultApi* | [**watch_virtual_machine_snapshot_content_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_snapshot_content_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/virtualmachinesnapshotcontents | @@ -650,23 +650,6 @@ Class | Method | HTTP request | Description - [V1alpha1MigrationPolicySpec](docs/V1alpha1MigrationPolicySpec.md) - [V1alpha1MigrationPolicyStatus](docs/V1alpha1MigrationPolicyStatus.md) - [V1alpha1Selectors](docs/V1alpha1Selectors.md) - - [V1alpha1VirtualMachineOpportunisticUpdateStrategy](docs/V1alpha1VirtualMachineOpportunisticUpdateStrategy.md) - - [V1alpha1VirtualMachinePool](docs/V1alpha1VirtualMachinePool.md) - - [V1alpha1VirtualMachinePoolAutohealingStrategy](docs/V1alpha1VirtualMachinePoolAutohealingStrategy.md) - - [V1alpha1VirtualMachinePoolCondition](docs/V1alpha1VirtualMachinePoolCondition.md) - - [V1alpha1VirtualMachinePoolList](docs/V1alpha1VirtualMachinePoolList.md) - - [V1alpha1VirtualMachinePoolNameGeneration](docs/V1alpha1VirtualMachinePoolNameGeneration.md) - - [V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy](docs/V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy.md) - - [V1alpha1VirtualMachinePoolProactiveScaleInStrategy](docs/V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md) - - [V1alpha1VirtualMachinePoolProactiveUpdateStrategy](docs/V1alpha1VirtualMachinePoolProactiveUpdateStrategy.md) - - [V1alpha1VirtualMachinePoolScaleInStrategy](docs/V1alpha1VirtualMachinePoolScaleInStrategy.md) - - [V1alpha1VirtualMachinePoolSelectionPolicy](docs/V1alpha1VirtualMachinePoolSelectionPolicy.md) - - [V1alpha1VirtualMachinePoolSelectors](docs/V1alpha1VirtualMachinePoolSelectors.md) - - [V1alpha1VirtualMachinePoolSpec](docs/V1alpha1VirtualMachinePoolSpec.md) - - [V1alpha1VirtualMachinePoolStatus](docs/V1alpha1VirtualMachinePoolStatus.md) - - [V1alpha1VirtualMachinePoolUnmanagedStrategy](docs/V1alpha1VirtualMachinePoolUnmanagedStrategy.md) - - [V1alpha1VirtualMachinePoolUpdateStrategy](docs/V1alpha1VirtualMachinePoolUpdateStrategy.md) - - [V1alpha1VirtualMachineTemplateSpec](docs/V1alpha1VirtualMachineTemplateSpec.md) - [V1beta1CPUInstancetype](docs/V1beta1CPUInstancetype.md) - [V1beta1CPUPreferenceRequirement](docs/V1beta1CPUPreferenceRequirement.md) - [V1beta1CPUPreferences](docs/V1beta1CPUPreferences.md) @@ -723,6 +706,22 @@ Class | Method | HTTP request | Description - [V1beta1VirtualMachineInstancetype](docs/V1beta1VirtualMachineInstancetype.md) - [V1beta1VirtualMachineInstancetypeList](docs/V1beta1VirtualMachineInstancetypeList.md) - [V1beta1VirtualMachineInstancetypeSpec](docs/V1beta1VirtualMachineInstancetypeSpec.md) + - [V1beta1VirtualMachineOpportunisticUpdateStrategy](docs/V1beta1VirtualMachineOpportunisticUpdateStrategy.md) + - [V1beta1VirtualMachinePool](docs/V1beta1VirtualMachinePool.md) + - [V1beta1VirtualMachinePoolAutohealingStrategy](docs/V1beta1VirtualMachinePoolAutohealingStrategy.md) + - [V1beta1VirtualMachinePoolCondition](docs/V1beta1VirtualMachinePoolCondition.md) + - [V1beta1VirtualMachinePoolList](docs/V1beta1VirtualMachinePoolList.md) + - [V1beta1VirtualMachinePoolNameGeneration](docs/V1beta1VirtualMachinePoolNameGeneration.md) + - [V1beta1VirtualMachinePoolOpportunisticScaleInStrategy](docs/V1beta1VirtualMachinePoolOpportunisticScaleInStrategy.md) + - [V1beta1VirtualMachinePoolProactiveScaleInStrategy](docs/V1beta1VirtualMachinePoolProactiveScaleInStrategy.md) + - [V1beta1VirtualMachinePoolProactiveUpdateStrategy](docs/V1beta1VirtualMachinePoolProactiveUpdateStrategy.md) + - [V1beta1VirtualMachinePoolScaleInStrategy](docs/V1beta1VirtualMachinePoolScaleInStrategy.md) + - [V1beta1VirtualMachinePoolSelectionPolicy](docs/V1beta1VirtualMachinePoolSelectionPolicy.md) + - [V1beta1VirtualMachinePoolSelectors](docs/V1beta1VirtualMachinePoolSelectors.md) + - [V1beta1VirtualMachinePoolSpec](docs/V1beta1VirtualMachinePoolSpec.md) + - [V1beta1VirtualMachinePoolStatus](docs/V1beta1VirtualMachinePoolStatus.md) + - [V1beta1VirtualMachinePoolUnmanagedStrategy](docs/V1beta1VirtualMachinePoolUnmanagedStrategy.md) + - [V1beta1VirtualMachinePoolUpdateStrategy](docs/V1beta1VirtualMachinePoolUpdateStrategy.md) - [V1beta1VirtualMachinePreference](docs/V1beta1VirtualMachinePreference.md) - [V1beta1VirtualMachinePreferenceList](docs/V1beta1VirtualMachinePreferenceList.md) - [V1beta1VirtualMachinePreferenceSpec](docs/V1beta1VirtualMachinePreferenceSpec.md) @@ -738,6 +737,7 @@ Class | Method | HTTP request | Description - [V1beta1VirtualMachineSnapshotList](docs/V1beta1VirtualMachineSnapshotList.md) - [V1beta1VirtualMachineSnapshotSpec](docs/V1beta1VirtualMachineSnapshotSpec.md) - [V1beta1VirtualMachineSnapshotStatus](docs/V1beta1VirtualMachineSnapshotStatus.md) + - [V1beta1VirtualMachineTemplateSpec](docs/V1beta1VirtualMachineTemplateSpec.md) - [V1beta1VolumeBackup](docs/V1beta1VolumeBackup.md) - [V1beta1VolumePreferences](docs/V1beta1VolumePreferences.md) - [V1beta1VolumeRestore](docs/V1beta1VolumeRestore.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 6e11d307..210fd2d2 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -13,7 +13,7 @@ Method | HTTP request | Description [**create_namespaced_virtual_machine_instance_preset**](DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets | [**create_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets | [**create_namespaced_virtual_machine_instancetype**](DefaultApi.md#create_namespaced_virtual_machine_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes | -[**create_namespaced_virtual_machine_pool**](DefaultApi.md#create_namespaced_virtual_machine_pool) | **POST** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools | +[**create_namespaced_virtual_machine_pool**](DefaultApi.md#create_namespaced_virtual_machine_pool) | **POST** /apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools | [**create_namespaced_virtual_machine_preference**](DefaultApi.md#create_namespaced_virtual_machine_preference) | **POST** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences | [**create_namespaced_virtual_machine_restore**](DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | [**create_namespaced_virtual_machine_snapshot**](DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | @@ -30,7 +30,7 @@ Method | HTTP request | Description [**delete_collection_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets | [**delete_collection_namespaced_virtual_machine_instancetype**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes | -[**delete_collection_namespaced_virtual_machine_pool**](DefaultApi.md#delete_collection_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools | +[**delete_collection_namespaced_virtual_machine_pool**](DefaultApi.md#delete_collection_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools | [**delete_collection_namespaced_virtual_machine_preference**](DefaultApi.md#delete_collection_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences | [**delete_collection_namespaced_virtual_machine_restore**](DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | [**delete_collection_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | @@ -47,7 +47,7 @@ Method | HTTP request | Description [**delete_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | [**delete_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | [**delete_namespaced_virtual_machine_instancetype**](DefaultApi.md#delete_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | -[**delete_namespaced_virtual_machine_pool**](DefaultApi.md#delete_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | +[**delete_namespaced_virtual_machine_pool**](DefaultApi.md#delete_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools/{name} | [**delete_namespaced_virtual_machine_preference**](DefaultApi.md#delete_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | [**delete_namespaced_virtual_machine_restore**](DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | [**delete_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | @@ -70,7 +70,7 @@ Method | HTTP request | Description [**get_api_resources_instancetype_kubevirt_io_v1beta1**](DefaultApi.md#get_api_resources_instancetype_kubevirt_io_v1beta1) | **GET** /apis/instancetype.kubevirt.io/v1beta1/ | [**get_api_resources_kubevirt_io_v1**](DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | [**get_api_resources_migrations_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_migrations_kubevirt_io_v1alpha1) | **GET** /apis/migrations.kubevirt.io/v1alpha1/ | -[**get_api_resources_pool_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_pool_kubevirt_io_v1alpha1) | **GET** /apis/pool.kubevirt.io/v1alpha1/ | +[**get_api_resources_pool_kubevirt_io_v1beta1**](DefaultApi.md#get_api_resources_pool_kubevirt_io_v1beta1) | **GET** /apis/pool.kubevirt.io/v1beta1/ | [**get_api_resources_snapshot_kubevirt_io_v1beta1**](DefaultApi.md#get_api_resources_snapshot_kubevirt_io_v1beta1) | **GET** /apis/snapshot.kubevirt.io/v1beta1/ | [**get_root_paths**](DefaultApi.md#get_root_paths) | **GET** / | [**handle_dump_profiler**](DefaultApi.md#handle_dump_profiler) | **GET** /dump-profiler | @@ -86,7 +86,7 @@ Method | HTTP request | Description [**list_namespaced_virtual_machine_instance_preset**](DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets | [**list_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets | [**list_namespaced_virtual_machine_instancetype**](DefaultApi.md#list_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes | -[**list_namespaced_virtual_machine_pool**](DefaultApi.md#list_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools | +[**list_namespaced_virtual_machine_pool**](DefaultApi.md#list_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools | [**list_namespaced_virtual_machine_preference**](DefaultApi.md#list_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences | [**list_namespaced_virtual_machine_restore**](DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | [**list_namespaced_virtual_machine_snapshot**](DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | @@ -101,7 +101,7 @@ Method | HTTP request | Description [**list_virtual_machine_instance_preset_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancepresets | [**list_virtual_machine_instance_replica_set_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancereplicasets | [**list_virtual_machine_instancetype_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instancetype_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineinstancetypes | -[**list_virtual_machine_pool_for_all_namespaces**](DefaultApi.md#list_virtual_machine_pool_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/virtualmachinepools | +[**list_virtual_machine_pool_for_all_namespaces**](DefaultApi.md#list_virtual_machine_pool_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1beta1/virtualmachinepools | [**list_virtual_machine_preference_for_all_namespaces**](DefaultApi.md#list_virtual_machine_preference_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachinepreferences | [**list_virtual_machine_restore_for_all_namespaces**](DefaultApi.md#list_virtual_machine_restore_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1beta1/virtualmachinerestores | [**list_virtual_machine_snapshot_content_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1beta1/virtualmachinesnapshotcontents | @@ -115,7 +115,7 @@ Method | HTTP request | Description [**patch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | [**patch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | [**patch_namespaced_virtual_machine_instancetype**](DefaultApi.md#patch_namespaced_virtual_machine_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | -[**patch_namespaced_virtual_machine_pool**](DefaultApi.md#patch_namespaced_virtual_machine_pool) | **PATCH** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | +[**patch_namespaced_virtual_machine_pool**](DefaultApi.md#patch_namespaced_virtual_machine_pool) | **PATCH** /apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools/{name} | [**patch_namespaced_virtual_machine_preference**](DefaultApi.md#patch_namespaced_virtual_machine_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | [**patch_namespaced_virtual_machine_restore**](DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | [**patch_namespaced_virtual_machine_snapshot**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | @@ -132,7 +132,7 @@ Method | HTTP request | Description [**read_namespaced_virtual_machine_instance_preset**](DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | [**read_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | [**read_namespaced_virtual_machine_instancetype**](DefaultApi.md#read_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | -[**read_namespaced_virtual_machine_pool**](DefaultApi.md#read_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | +[**read_namespaced_virtual_machine_pool**](DefaultApi.md#read_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools/{name} | [**read_namespaced_virtual_machine_preference**](DefaultApi.md#read_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | [**read_namespaced_virtual_machine_restore**](DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | [**read_namespaced_virtual_machine_snapshot**](DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | @@ -149,7 +149,7 @@ Method | HTTP request | Description [**replace_namespaced_virtual_machine_instance_preset**](DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | [**replace_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | [**replace_namespaced_virtual_machine_instancetype**](DefaultApi.md#replace_namespaced_virtual_machine_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | -[**replace_namespaced_virtual_machine_pool**](DefaultApi.md#replace_namespaced_virtual_machine_pool) | **PUT** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | +[**replace_namespaced_virtual_machine_pool**](DefaultApi.md#replace_namespaced_virtual_machine_pool) | **PUT** /apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools/{name} | [**replace_namespaced_virtual_machine_preference**](DefaultApi.md#replace_namespaced_virtual_machine_preference) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | [**replace_namespaced_virtual_machine_restore**](DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | [**replace_namespaced_virtual_machine_snapshot**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | @@ -254,7 +254,7 @@ Method | HTTP request | Description [**watch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancepresets | [**watch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancereplicasets | [**watch_namespaced_virtual_machine_instancetype**](DefaultApi.md#watch_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachineinstancetypes | -[**watch_namespaced_virtual_machine_pool**](DefaultApi.md#watch_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinepools | +[**watch_namespaced_virtual_machine_pool**](DefaultApi.md#watch_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinepools | [**watch_namespaced_virtual_machine_preference**](DefaultApi.md#watch_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinepreferences | [**watch_namespaced_virtual_machine_restore**](DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinerestores | [**watch_namespaced_virtual_machine_snapshot**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinesnapshots | @@ -269,7 +269,7 @@ Method | HTTP request | Description [**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancereplicasets | [**watch_virtual_machine_instancetype_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineinstancetypes | [**watch_virtual_machine_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachines | -[**watch_virtual_machine_pool_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_pool_list_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/virtualmachinepools | +[**watch_virtual_machine_pool_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_pool_list_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1beta1/watch/virtualmachinepools | [**watch_virtual_machine_preference_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachinepreferences | [**watch_virtual_machine_restore_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_restore_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/virtualmachinerestores | [**watch_virtual_machine_snapshot_content_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_snapshot_content_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/virtualmachinesnapshotcontents | @@ -716,7 +716,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_virtual_machine_pool** -> V1alpha1VirtualMachinePool create_namespaced_virtual_machine_pool(body, namespace) +> V1beta1VirtualMachinePool create_namespaced_virtual_machine_pool(body, namespace) @@ -732,7 +732,7 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1alpha1VirtualMachinePool() # V1alpha1VirtualMachinePool | +body = kubevirt.V1beta1VirtualMachinePool() # V1beta1VirtualMachinePool | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: @@ -746,12 +746,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1VirtualMachinePool**](V1alpha1VirtualMachinePool.md)| | + **body** | [**V1beta1VirtualMachinePool**](V1beta1VirtualMachinePool.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1alpha1VirtualMachinePool**](V1alpha1VirtualMachinePool.md) +[**V1beta1VirtualMachinePool**](V1beta1VirtualMachinePool.md) ### Authorization @@ -3740,8 +3740,8 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_api_resources_pool_kubevirt_io_v1alpha1** -> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_pool_kubevirt_io_v1alpha1() +# **get_api_resources_pool_kubevirt_io_v1beta1** +> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_pool_kubevirt_io_v1beta1() @@ -3759,10 +3759,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() try: - api_response = api_instance.get_api_resources_pool_kubevirt_io_v1alpha1() + api_response = api_instance.get_api_resources_pool_kubevirt_io_v1beta1() pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->get_api_resources_pool_kubevirt_io_v1alpha1: %s\n" % e) + print("Exception when calling DefaultApi->get_api_resources_pool_kubevirt_io_v1beta1: %s\n" % e) ``` ### Parameters @@ -4622,7 +4622,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_virtual_machine_pool** -> V1alpha1VirtualMachinePoolList list_namespaced_virtual_machine_pool(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1VirtualMachinePoolList list_namespaced_virtual_machine_pool(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -4671,7 +4671,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachinePoolList**](V1alpha1VirtualMachinePoolList.md) +[**V1beta1VirtualMachinePoolList**](V1beta1VirtualMachinePoolList.md) ### Authorization @@ -5547,7 +5547,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_virtual_machine_pool_for_all_namespaces** -> V1alpha1VirtualMachinePoolList list_virtual_machine_pool_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1VirtualMachinePoolList list_virtual_machine_pool_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -5594,7 +5594,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachinePoolList**](V1alpha1VirtualMachinePoolList.md) +[**V1beta1VirtualMachinePoolList**](V1beta1VirtualMachinePoolList.md) ### Authorization @@ -6309,7 +6309,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_virtual_machine_pool** -> V1alpha1VirtualMachinePool patch_namespaced_virtual_machine_pool(name, namespace, body) +> V1beta1VirtualMachinePool patch_namespaced_virtual_machine_pool(name, namespace, body) @@ -6346,7 +6346,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachinePool**](V1alpha1VirtualMachinePool.md) +[**V1beta1VirtualMachinePool**](V1beta1VirtualMachinePool.md) ### Authorization @@ -7186,7 +7186,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_virtual_machine_pool** -> V1alpha1VirtualMachinePool read_namespaced_virtual_machine_pool(name, namespace, exact=exact, export=export) +> V1beta1VirtualMachinePool read_namespaced_virtual_machine_pool(name, namespace, exact=exact, export=export) @@ -7225,7 +7225,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachinePool**](V1alpha1VirtualMachinePool.md) +[**V1beta1VirtualMachinePool**](V1beta1VirtualMachinePool.md) ### Authorization @@ -8061,7 +8061,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_virtual_machine_pool** -> V1alpha1VirtualMachinePool replace_namespaced_virtual_machine_pool(name, namespace, body) +> V1beta1VirtualMachinePool replace_namespaced_virtual_machine_pool(name, namespace, body) @@ -8079,7 +8079,7 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1alpha1VirtualMachinePool() # V1alpha1VirtualMachinePool | +body = kubevirt.V1beta1VirtualMachinePool() # V1beta1VirtualMachinePool | try: api_response = api_instance.replace_namespaced_virtual_machine_pool(name, namespace, body) @@ -8094,11 +8094,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1alpha1VirtualMachinePool**](V1alpha1VirtualMachinePool.md)| | + **body** | [**V1beta1VirtualMachinePool**](V1beta1VirtualMachinePool.md)| | ### Return type -[**V1alpha1VirtualMachinePool**](V1alpha1VirtualMachinePool.md) +[**V1beta1VirtualMachinePool**](V1beta1VirtualMachinePool.md) ### Authorization diff --git a/docs/V1alpha1VirtualMachinePoolProactiveUpdateStrategy.md b/docs/V1alpha1VirtualMachinePoolProactiveUpdateStrategy.md deleted file mode 100644 index 0a6e3c4b..00000000 --- a/docs/V1alpha1VirtualMachinePoolProactiveUpdateStrategy.md +++ /dev/null @@ -1,10 +0,0 @@ -# V1alpha1VirtualMachinePoolProactiveUpdateStrategy - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**selection_policy** | [**V1alpha1VirtualMachinePoolSelectionPolicy**](V1alpha1VirtualMachinePoolSelectionPolicy.md) | SelectionPolicy defines the priority in which VM instances are selected for proactive update Defaults to \"Random\" base policy when no SelectionPolicy is configured | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1alpha1VirtualMachinePoolScaleInStrategy.md b/docs/V1alpha1VirtualMachinePoolScaleInStrategy.md deleted file mode 100644 index 5e73fea8..00000000 --- a/docs/V1alpha1VirtualMachinePoolScaleInStrategy.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1alpha1VirtualMachinePoolScaleInStrategy - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**opportunistic** | [**V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy**](V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy.md) | Opportunistic scale-in is a strategy when vms are deleted by some other means than the scale-in action. For example, when the VM is deleted by the user or when the VM is deleted by the node that is hosting the VM. | [optional] -**proactive** | [**V1alpha1VirtualMachinePoolProactiveScaleInStrategy**](V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md) | Proactive scale-in by forcing VMs to shutdown during scale-in (Default) | [optional] -**unmanaged** | [**V1alpha1VirtualMachinePoolUnmanagedStrategy**](V1alpha1VirtualMachinePoolUnmanagedStrategy.md) | The VM is never touched after creation. Users are responsible for scaling in the pool manually. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1alpha1VirtualMachinePoolUpdateStrategy.md b/docs/V1alpha1VirtualMachinePoolUpdateStrategy.md deleted file mode 100644 index ede54fe0..00000000 --- a/docs/V1alpha1VirtualMachinePoolUpdateStrategy.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1alpha1VirtualMachinePoolUpdateStrategy - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**opportunistic** | [**V1alpha1VirtualMachineOpportunisticUpdateStrategy**](V1alpha1VirtualMachineOpportunisticUpdateStrategy.md) | Opportunistic update only gets applied to the VM, VMI is updated naturally upon the restart. Whereas proactive it applies both the VM and VMI right away. | [optional] -**proactive** | [**V1alpha1VirtualMachinePoolProactiveUpdateStrategy**](V1alpha1VirtualMachinePoolProactiveUpdateStrategy.md) | Proactive update by forcing the VMs to restart during update | [optional] -**unmanaged** | [**V1alpha1VirtualMachinePoolUnmanagedStrategy**](V1alpha1VirtualMachinePoolUnmanagedStrategy.md) | Unmanaged indicates that no automatic update of VMs within a VMPool is performed. When this is set, the VMPool controller will not update the VMs within the pool. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1alpha1VirtualMachineOpportunisticUpdateStrategy.md b/docs/V1beta1VirtualMachineOpportunisticUpdateStrategy.md similarity index 84% rename from docs/V1alpha1VirtualMachineOpportunisticUpdateStrategy.md rename to docs/V1beta1VirtualMachineOpportunisticUpdateStrategy.md index 94247c5b..2ee7bc00 100644 --- a/docs/V1alpha1VirtualMachineOpportunisticUpdateStrategy.md +++ b/docs/V1beta1VirtualMachineOpportunisticUpdateStrategy.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachineOpportunisticUpdateStrategy +# V1beta1VirtualMachineOpportunisticUpdateStrategy ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1VirtualMachinePool.md b/docs/V1beta1VirtualMachinePool.md similarity index 82% rename from docs/V1alpha1VirtualMachinePool.md rename to docs/V1beta1VirtualMachinePool.md index 5cf6184d..e8ed8905 100644 --- a/docs/V1alpha1VirtualMachinePool.md +++ b/docs/V1beta1VirtualMachinePool.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachinePool +# V1beta1VirtualMachinePool ## Properties Name | Type | Description | Notes @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1VirtualMachinePoolSpec**](V1alpha1VirtualMachinePoolSpec.md) | | -**status** | [**V1alpha1VirtualMachinePoolStatus**](V1alpha1VirtualMachinePoolStatus.md) | | [optional] +**spec** | [**V1beta1VirtualMachinePoolSpec**](V1beta1VirtualMachinePoolSpec.md) | | +**status** | [**V1beta1VirtualMachinePoolStatus**](V1beta1VirtualMachinePoolStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachinePoolAutohealingStrategy.md b/docs/V1beta1VirtualMachinePoolAutohealingStrategy.md similarity index 95% rename from docs/V1alpha1VirtualMachinePoolAutohealingStrategy.md rename to docs/V1beta1VirtualMachinePoolAutohealingStrategy.md index be873e4a..d5e5a725 100644 --- a/docs/V1alpha1VirtualMachinePoolAutohealingStrategy.md +++ b/docs/V1beta1VirtualMachinePoolAutohealingStrategy.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachinePoolAutohealingStrategy +# V1beta1VirtualMachinePoolAutohealingStrategy ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1VirtualMachinePoolCondition.md b/docs/V1beta1VirtualMachinePoolCondition.md similarity index 91% rename from docs/V1alpha1VirtualMachinePoolCondition.md rename to docs/V1beta1VirtualMachinePoolCondition.md index bce44028..748ec41f 100644 --- a/docs/V1alpha1VirtualMachinePoolCondition.md +++ b/docs/V1beta1VirtualMachinePoolCondition.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachinePoolCondition +# V1beta1VirtualMachinePoolCondition ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1VirtualMachinePoolList.md b/docs/V1beta1VirtualMachinePoolList.md similarity index 89% rename from docs/V1alpha1VirtualMachinePoolList.md rename to docs/V1beta1VirtualMachinePoolList.md index fd07f333..df4bbdbf 100644 --- a/docs/V1alpha1VirtualMachinePoolList.md +++ b/docs/V1beta1VirtualMachinePoolList.md @@ -1,10 +1,10 @@ -# V1alpha1VirtualMachinePoolList +# V1beta1VirtualMachinePoolList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**list[V1alpha1VirtualMachinePool]**](V1alpha1VirtualMachinePool.md) | | +**items** | [**list[V1beta1VirtualMachinePool]**](V1beta1VirtualMachinePool.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [optional] diff --git a/docs/V1alpha1VirtualMachinePoolNameGeneration.md b/docs/V1beta1VirtualMachinePoolNameGeneration.md similarity index 90% rename from docs/V1alpha1VirtualMachinePoolNameGeneration.md rename to docs/V1beta1VirtualMachinePoolNameGeneration.md index 92374b93..99398fc4 100644 --- a/docs/V1alpha1VirtualMachinePoolNameGeneration.md +++ b/docs/V1beta1VirtualMachinePoolNameGeneration.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachinePoolNameGeneration +# V1beta1VirtualMachinePoolNameGeneration ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy.md b/docs/V1beta1VirtualMachinePoolOpportunisticScaleInStrategy.md similarity index 93% rename from docs/V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy.md rename to docs/V1beta1VirtualMachinePoolOpportunisticScaleInStrategy.md index 64179d60..fe44436a 100644 --- a/docs/V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy.md +++ b/docs/V1beta1VirtualMachinePoolOpportunisticScaleInStrategy.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy +# V1beta1VirtualMachinePoolOpportunisticScaleInStrategy ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md b/docs/V1beta1VirtualMachinePoolProactiveScaleInStrategy.md similarity index 67% rename from docs/V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md rename to docs/V1beta1VirtualMachinePoolProactiveScaleInStrategy.md index a156b75c..06530a2e 100644 --- a/docs/V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md +++ b/docs/V1beta1VirtualMachinePoolProactiveScaleInStrategy.md @@ -1,9 +1,9 @@ -# V1alpha1VirtualMachinePoolProactiveScaleInStrategy +# V1beta1VirtualMachinePoolProactiveScaleInStrategy ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**selection_policy** | [**V1alpha1VirtualMachinePoolSelectionPolicy**](V1alpha1VirtualMachinePoolSelectionPolicy.md) | SelectionPolicy defines the priority in which VM instances are selected for proactive scale-in Defaults to \"Random\" base policy when no SelectionPolicy is configured | [optional] +**selection_policy** | [**V1beta1VirtualMachinePoolSelectionPolicy**](V1beta1VirtualMachinePoolSelectionPolicy.md) | SelectionPolicy defines the priority in which VM instances are selected for proactive scale-in Defaults to \"Random\" base policy when no SelectionPolicy is configured | [optional] **state_preservation** | **str** | Specifies if and how to preserve the state of the VMs selected during scale-in. Disabled - (Default) all state for VMs selected for scale-in will be deleted. Offline - PVCs for VMs selected for scale-in will be preserved and reused on scale-out (decreases provisioning time during scale out). Online - PVCs and memory for VMs selected for scale-in will be preserved and reused on scale-out (decreases provisioning and boot time during scale out). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1beta1VirtualMachinePoolProactiveUpdateStrategy.md b/docs/V1beta1VirtualMachinePoolProactiveUpdateStrategy.md new file mode 100644 index 00000000..cd00caef --- /dev/null +++ b/docs/V1beta1VirtualMachinePoolProactiveUpdateStrategy.md @@ -0,0 +1,10 @@ +# V1beta1VirtualMachinePoolProactiveUpdateStrategy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**selection_policy** | [**V1beta1VirtualMachinePoolSelectionPolicy**](V1beta1VirtualMachinePoolSelectionPolicy.md) | SelectionPolicy defines the priority in which VM instances are selected for proactive update Defaults to \"Random\" base policy when no SelectionPolicy is configured | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1VirtualMachinePoolScaleInStrategy.md b/docs/V1beta1VirtualMachinePoolScaleInStrategy.md new file mode 100644 index 00000000..7715b920 --- /dev/null +++ b/docs/V1beta1VirtualMachinePoolScaleInStrategy.md @@ -0,0 +1,12 @@ +# V1beta1VirtualMachinePoolScaleInStrategy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**opportunistic** | [**V1beta1VirtualMachinePoolOpportunisticScaleInStrategy**](V1beta1VirtualMachinePoolOpportunisticScaleInStrategy.md) | Opportunistic scale-in is a strategy when vms are deleted by some other means than the scale-in action. For example, when the VM is deleted by the user or when the VM is deleted by the node that is hosting the VM. | [optional] +**proactive** | [**V1beta1VirtualMachinePoolProactiveScaleInStrategy**](V1beta1VirtualMachinePoolProactiveScaleInStrategy.md) | Proactive scale-in by forcing VMs to shutdown during scale-in (Default) | [optional] +**unmanaged** | [**V1beta1VirtualMachinePoolUnmanagedStrategy**](V1beta1VirtualMachinePoolUnmanagedStrategy.md) | The VM is never touched after creation. Users are responsible for scaling in the pool manually. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachinePoolSelectionPolicy.md b/docs/V1beta1VirtualMachinePoolSelectionPolicy.md similarity index 66% rename from docs/V1alpha1VirtualMachinePoolSelectionPolicy.md rename to docs/V1beta1VirtualMachinePoolSelectionPolicy.md index 02d91d9d..4a859d2b 100644 --- a/docs/V1alpha1VirtualMachinePoolSelectionPolicy.md +++ b/docs/V1beta1VirtualMachinePoolSelectionPolicy.md @@ -1,9 +1,9 @@ -# V1alpha1VirtualMachinePoolSelectionPolicy +# V1beta1VirtualMachinePoolSelectionPolicy ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**selectors** | [**V1alpha1VirtualMachinePoolSelectors**](V1alpha1VirtualMachinePoolSelectors.md) | Selectors is a list of selection policies. | [optional] +**selectors** | [**V1beta1VirtualMachinePoolSelectors**](V1beta1VirtualMachinePoolSelectors.md) | Selectors is a list of selection policies. | [optional] **sort_policy** | **str** | SortPolicy is a catch-all policy [AscendingOrder|DescendingOrder|Newest|Oldest|Random] | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachinePoolSelectors.md b/docs/V1beta1VirtualMachinePoolSelectors.md similarity index 94% rename from docs/V1alpha1VirtualMachinePoolSelectors.md rename to docs/V1beta1VirtualMachinePoolSelectors.md index ca6eb4fb..61090b1f 100644 --- a/docs/V1alpha1VirtualMachinePoolSelectors.md +++ b/docs/V1beta1VirtualMachinePoolSelectors.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachinePoolSelectors +# V1beta1VirtualMachinePoolSelectors ## Properties Name | Type | Description | Notes diff --git a/docs/V1alpha1VirtualMachinePoolSpec.md b/docs/V1beta1VirtualMachinePoolSpec.md similarity index 50% rename from docs/V1alpha1VirtualMachinePoolSpec.md rename to docs/V1beta1VirtualMachinePoolSpec.md index 350ee9b0..f5b28a3d 100644 --- a/docs/V1alpha1VirtualMachinePoolSpec.md +++ b/docs/V1beta1VirtualMachinePoolSpec.md @@ -1,17 +1,17 @@ -# V1alpha1VirtualMachinePoolSpec +# V1beta1VirtualMachinePoolSpec ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**autohealing** | [**V1alpha1VirtualMachinePoolAutohealingStrategy**](V1alpha1VirtualMachinePoolAutohealingStrategy.md) | Autohealing specifies when a VMpool should replace a failing VM with a reprovisioned instance | [optional] +**autohealing** | [**V1beta1VirtualMachinePoolAutohealingStrategy**](V1beta1VirtualMachinePoolAutohealingStrategy.md) | Autohealing specifies when a VMpool should replace a failing VM with a reprovisioned instance | [optional] **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] -**name_generation** | [**V1alpha1VirtualMachinePoolNameGeneration**](V1alpha1VirtualMachinePoolNameGeneration.md) | Options for the name generation in a pool. | [optional] +**name_generation** | [**V1beta1VirtualMachinePoolNameGeneration**](V1beta1VirtualMachinePoolNameGeneration.md) | Options for the name generation in a pool. | [optional] **paused** | **bool** | Indicates that the pool is paused. | [optional] **replicas** | **int** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] -**scale_in_strategy** | [**V1alpha1VirtualMachinePoolScaleInStrategy**](V1alpha1VirtualMachinePoolScaleInStrategy.md) | ScaleInStrategy specifies how the VMPool controller manages scaling in VMs within a VMPool | [optional] +**scale_in_strategy** | [**V1beta1VirtualMachinePoolScaleInStrategy**](V1beta1VirtualMachinePoolScaleInStrategy.md) | ScaleInStrategy specifies how the VMPool controller manages scaling in VMs within a VMPool | [optional] **selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | Label selector for pods. Existing Poolss whose pods are selected by this will be the ones affected by this deployment. | -**update_strategy** | [**V1alpha1VirtualMachinePoolUpdateStrategy**](V1alpha1VirtualMachinePoolUpdateStrategy.md) | UpdateStrategy specifies how the VMPool controller manages updating VMs within a VMPool | [optional] -**virtual_machine_template** | [**V1alpha1VirtualMachineTemplateSpec**](V1alpha1VirtualMachineTemplateSpec.md) | Template describes the VM that will be created. | +**update_strategy** | [**V1beta1VirtualMachinePoolUpdateStrategy**](V1beta1VirtualMachinePoolUpdateStrategy.md) | UpdateStrategy specifies how the VMPool controller manages updating VMs within a VMPool | [optional] +**virtual_machine_template** | [**V1beta1VirtualMachineTemplateSpec**](V1beta1VirtualMachineTemplateSpec.md) | Template describes the VM that will be created. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachinePoolStatus.md b/docs/V1beta1VirtualMachinePoolStatus.md similarity index 76% rename from docs/V1alpha1VirtualMachinePoolStatus.md rename to docs/V1beta1VirtualMachinePoolStatus.md index 0cd5a66f..0291019d 100644 --- a/docs/V1alpha1VirtualMachinePoolStatus.md +++ b/docs/V1beta1VirtualMachinePoolStatus.md @@ -1,9 +1,9 @@ -# V1alpha1VirtualMachinePoolStatus +# V1beta1VirtualMachinePoolStatus ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**conditions** | [**list[V1alpha1VirtualMachinePoolCondition]**](V1alpha1VirtualMachinePoolCondition.md) | | [optional] +**conditions** | [**list[V1beta1VirtualMachinePoolCondition]**](V1beta1VirtualMachinePoolCondition.md) | | [optional] **label_selector** | **str** | Canonical form of the label selector for HPA which consumes it through the scale subresource. | [optional] **ready_replicas** | **int** | | [optional] **replicas** | **int** | | [optional] diff --git a/docs/V1alpha1VirtualMachinePoolUnmanagedStrategy.md b/docs/V1beta1VirtualMachinePoolUnmanagedStrategy.md similarity index 85% rename from docs/V1alpha1VirtualMachinePoolUnmanagedStrategy.md rename to docs/V1beta1VirtualMachinePoolUnmanagedStrategy.md index 5ab02d16..51eb708e 100644 --- a/docs/V1alpha1VirtualMachinePoolUnmanagedStrategy.md +++ b/docs/V1beta1VirtualMachinePoolUnmanagedStrategy.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachinePoolUnmanagedStrategy +# V1beta1VirtualMachinePoolUnmanagedStrategy ## Properties Name | Type | Description | Notes diff --git a/docs/V1beta1VirtualMachinePoolUpdateStrategy.md b/docs/V1beta1VirtualMachinePoolUpdateStrategy.md new file mode 100644 index 00000000..570cb044 --- /dev/null +++ b/docs/V1beta1VirtualMachinePoolUpdateStrategy.md @@ -0,0 +1,12 @@ +# V1beta1VirtualMachinePoolUpdateStrategy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**opportunistic** | [**V1beta1VirtualMachineOpportunisticUpdateStrategy**](V1beta1VirtualMachineOpportunisticUpdateStrategy.md) | Opportunistic update only gets applied to the VM, VMI is updated naturally upon the restart. Whereas proactive it applies both the VM and VMI right away. | [optional] +**proactive** | [**V1beta1VirtualMachinePoolProactiveUpdateStrategy**](V1beta1VirtualMachinePoolProactiveUpdateStrategy.md) | Proactive update by forcing the VMs to restart during update | [optional] +**unmanaged** | [**V1beta1VirtualMachinePoolUnmanagedStrategy**](V1beta1VirtualMachinePoolUnmanagedStrategy.md) | Unmanaged indicates that no automatic update of VMs within a VMPool is performed. When this is set, the VMPool controller will not update the VMs within the pool. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineTemplateSpec.md b/docs/V1beta1VirtualMachineTemplateSpec.md similarity index 93% rename from docs/V1alpha1VirtualMachineTemplateSpec.md rename to docs/V1beta1VirtualMachineTemplateSpec.md index 50f1fa9c..4d43a953 100644 --- a/docs/V1alpha1VirtualMachineTemplateSpec.md +++ b/docs/V1beta1VirtualMachineTemplateSpec.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachineTemplateSpec +# V1beta1VirtualMachineTemplateSpec ## Properties Name | Type | Description | Notes diff --git a/git_push.sh b/git_push.sh index 4ccaac0e..183f9344 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.7.0-beta.0-246-gc363dbe207" + release_note="Auto-generated client v1.7.0-beta.0-252-g8282b1a5d9" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 45950890..a83b21da 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -942,57 +942,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/v1alpha1_selectors.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_selectors.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1Selectors.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_opportunistic_update_strategy.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_opportunistic_update_strategy.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineOpportunisticUpdateStrategy.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePool.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_autohealing_strategy.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_autohealing_strategy.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolAutohealingStrategy.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_condition.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_condition.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolCondition.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolList.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_name_generation.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_name_generation.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolNameGeneration.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_opportunistic_scale_in_strategy.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_opportunistic_scale_in_strategy.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_proactive_update_strategy.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_proactive_update_strategy.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolProactiveUpdateStrategy.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_scale_in_strategy.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_scale_in_strategy.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolScaleInStrategy.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_selection_policy.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_selection_policy.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolSelectionPolicy.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_selectors.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_selectors.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolSelectors.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolSpec.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolStatus.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_unmanaged_strategy.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_unmanaged_strategy.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolUnmanagedStrategy.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_update_strategy.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_update_strategy.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolUpdateStrategy.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_template_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_template_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineTemplateSpec.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_cpu_instancetype.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_cpu_instancetype.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1CPUInstancetype.md @@ -1161,6 +1110,54 @@ 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/v1beta1_virtual_machine_instancetype_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_instancetype_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineInstancetypeSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_opportunistic_update_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_opportunistic_update_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineOpportunisticUpdateStrategy.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePool.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool_autohealing_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool_autohealing_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePoolAutohealingStrategy.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePoolCondition.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePoolList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool_name_generation.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool_name_generation.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePoolNameGeneration.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool_opportunistic_scale_in_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool_opportunistic_scale_in_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePoolOpportunisticScaleInStrategy.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool_proactive_scale_in_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool_proactive_scale_in_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePoolProactiveScaleInStrategy.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool_proactive_update_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool_proactive_update_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePoolProactiveUpdateStrategy.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool_scale_in_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool_scale_in_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePoolScaleInStrategy.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool_selection_policy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool_selection_policy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePoolSelectionPolicy.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool_selectors.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool_selectors.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePoolSelectors.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePoolSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePoolStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool_unmanaged_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool_unmanaged_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePoolUnmanagedStrategy.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool_update_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool_update_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePoolUpdateStrategy.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_preference.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_preference.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePreference.md @@ -1206,6 +1203,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/v1beta1_virtual_machine_snapshot_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_snapshot_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineSnapshotStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_template_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_template_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineTemplateSpec.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_volume_backup.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_volume_backup.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VolumeBackup.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 451cffb8..a3c9c8ab 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -321,23 +321,6 @@ from .models.v1alpha1_migration_policy_spec import V1alpha1MigrationPolicySpec from .models.v1alpha1_migration_policy_status import V1alpha1MigrationPolicyStatus from .models.v1alpha1_selectors import V1alpha1Selectors -from .models.v1alpha1_virtual_machine_opportunistic_update_strategy import V1alpha1VirtualMachineOpportunisticUpdateStrategy -from .models.v1alpha1_virtual_machine_pool import V1alpha1VirtualMachinePool -from .models.v1alpha1_virtual_machine_pool_autohealing_strategy import V1alpha1VirtualMachinePoolAutohealingStrategy -from .models.v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition -from .models.v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList -from .models.v1alpha1_virtual_machine_pool_name_generation import V1alpha1VirtualMachinePoolNameGeneration -from .models.v1alpha1_virtual_machine_pool_opportunistic_scale_in_strategy import V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy -from .models.v1alpha1_virtual_machine_pool_proactive_scale_in_strategy import V1alpha1VirtualMachinePoolProactiveScaleInStrategy -from .models.v1alpha1_virtual_machine_pool_proactive_update_strategy import V1alpha1VirtualMachinePoolProactiveUpdateStrategy -from .models.v1alpha1_virtual_machine_pool_scale_in_strategy import V1alpha1VirtualMachinePoolScaleInStrategy -from .models.v1alpha1_virtual_machine_pool_selection_policy import V1alpha1VirtualMachinePoolSelectionPolicy -from .models.v1alpha1_virtual_machine_pool_selectors import V1alpha1VirtualMachinePoolSelectors -from .models.v1alpha1_virtual_machine_pool_spec import V1alpha1VirtualMachinePoolSpec -from .models.v1alpha1_virtual_machine_pool_status import V1alpha1VirtualMachinePoolStatus -from .models.v1alpha1_virtual_machine_pool_unmanaged_strategy import V1alpha1VirtualMachinePoolUnmanagedStrategy -from .models.v1alpha1_virtual_machine_pool_update_strategy import V1alpha1VirtualMachinePoolUpdateStrategy -from .models.v1alpha1_virtual_machine_template_spec import V1alpha1VirtualMachineTemplateSpec from .models.v1beta1_cpu_instancetype import V1beta1CPUInstancetype from .models.v1beta1_cpu_preference_requirement import V1beta1CPUPreferenceRequirement from .models.v1beta1_cpu_preferences import V1beta1CPUPreferences @@ -394,6 +377,22 @@ from .models.v1beta1_virtual_machine_instancetype import V1beta1VirtualMachineInstancetype from .models.v1beta1_virtual_machine_instancetype_list import V1beta1VirtualMachineInstancetypeList from .models.v1beta1_virtual_machine_instancetype_spec import V1beta1VirtualMachineInstancetypeSpec +from .models.v1beta1_virtual_machine_opportunistic_update_strategy import V1beta1VirtualMachineOpportunisticUpdateStrategy +from .models.v1beta1_virtual_machine_pool import V1beta1VirtualMachinePool +from .models.v1beta1_virtual_machine_pool_autohealing_strategy import V1beta1VirtualMachinePoolAutohealingStrategy +from .models.v1beta1_virtual_machine_pool_condition import V1beta1VirtualMachinePoolCondition +from .models.v1beta1_virtual_machine_pool_list import V1beta1VirtualMachinePoolList +from .models.v1beta1_virtual_machine_pool_name_generation import V1beta1VirtualMachinePoolNameGeneration +from .models.v1beta1_virtual_machine_pool_opportunistic_scale_in_strategy import V1beta1VirtualMachinePoolOpportunisticScaleInStrategy +from .models.v1beta1_virtual_machine_pool_proactive_scale_in_strategy import V1beta1VirtualMachinePoolProactiveScaleInStrategy +from .models.v1beta1_virtual_machine_pool_proactive_update_strategy import V1beta1VirtualMachinePoolProactiveUpdateStrategy +from .models.v1beta1_virtual_machine_pool_scale_in_strategy import V1beta1VirtualMachinePoolScaleInStrategy +from .models.v1beta1_virtual_machine_pool_selection_policy import V1beta1VirtualMachinePoolSelectionPolicy +from .models.v1beta1_virtual_machine_pool_selectors import V1beta1VirtualMachinePoolSelectors +from .models.v1beta1_virtual_machine_pool_spec import V1beta1VirtualMachinePoolSpec +from .models.v1beta1_virtual_machine_pool_status import V1beta1VirtualMachinePoolStatus +from .models.v1beta1_virtual_machine_pool_unmanaged_strategy import V1beta1VirtualMachinePoolUnmanagedStrategy +from .models.v1beta1_virtual_machine_pool_update_strategy import V1beta1VirtualMachinePoolUpdateStrategy from .models.v1beta1_virtual_machine_preference import V1beta1VirtualMachinePreference from .models.v1beta1_virtual_machine_preference_list import V1beta1VirtualMachinePreferenceList from .models.v1beta1_virtual_machine_preference_spec import V1beta1VirtualMachinePreferenceSpec @@ -409,6 +408,7 @@ from .models.v1beta1_virtual_machine_snapshot_list import V1beta1VirtualMachineSnapshotList from .models.v1beta1_virtual_machine_snapshot_spec import V1beta1VirtualMachineSnapshotSpec from .models.v1beta1_virtual_machine_snapshot_status import V1beta1VirtualMachineSnapshotStatus +from .models.v1beta1_virtual_machine_template_spec import V1beta1VirtualMachineTemplateSpec from .models.v1beta1_volume_backup import V1beta1VolumeBackup from .models.v1beta1_volume_preferences import V1beta1VolumePreferences from .models.v1beta1_volume_restore import V1beta1VolumeRestore diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 58a91ee7..4ac84147 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.7.0-beta.0-246-gc363dbe207/python' + self.user_agent = 'Swagger-Codegen/v1.7.0-beta.0-252-g8282b1a5d9/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 5c8bd579..d45cd1f0 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -1045,9 +1045,9 @@ def create_namespaced_virtual_machine_pool(self, body, namespace, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha1VirtualMachinePool body: (required) + :param V1beta1VirtualMachinePool body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1alpha1VirtualMachinePool + :return: V1beta1VirtualMachinePool If the method is called asynchronously, returns the request thread. """ @@ -1071,9 +1071,9 @@ def create_namespaced_virtual_machine_pool_with_http_info(self, body, namespace, :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha1VirtualMachinePool body: (required) + :param V1beta1VirtualMachinePool body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1alpha1VirtualMachinePool + :return: V1beta1VirtualMachinePool If the method is called asynchronously, returns the request thread. """ @@ -1128,14 +1128,14 @@ def create_namespaced_virtual_machine_pool_with_http_info(self, body, namespace, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools', 'POST', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachinePool', + response_type='V1beta1VirtualMachinePool', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3134,7 +3134,7 @@ def delete_collection_namespaced_virtual_machine_pool_with_http_info(self, **kwa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools', 'DELETE', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools', 'DELETE', path_params, query_params, header_params, @@ -5302,7 +5302,7 @@ def delete_namespaced_virtual_machine_pool_with_http_info(self, name, namespace, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name}', 'DELETE', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools/{name}', 'DELETE', path_params, query_params, header_params, @@ -7584,7 +7584,7 @@ def get_api_resources_migrations_kubevirt_io_v1alpha1_with_http_info(self, **kwa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_resources_pool_kubevirt_io_v1alpha1(self, **kwargs): + def get_api_resources_pool_kubevirt_io_v1beta1(self, **kwargs): """ Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an @@ -7593,7 +7593,7 @@ def get_api_resources_pool_kubevirt_io_v1alpha1(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_pool_kubevirt_io_v1alpha1(callback=callback_function) + >>> thread = api.get_api_resources_pool_kubevirt_io_v1beta1(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7603,12 +7603,12 @@ def get_api_resources_pool_kubevirt_io_v1alpha1(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_resources_pool_kubevirt_io_v1alpha1_with_http_info(**kwargs) + return self.get_api_resources_pool_kubevirt_io_v1beta1_with_http_info(**kwargs) else: - (data) = self.get_api_resources_pool_kubevirt_io_v1alpha1_with_http_info(**kwargs) + (data) = self.get_api_resources_pool_kubevirt_io_v1beta1_with_http_info(**kwargs) return data - def get_api_resources_pool_kubevirt_io_v1alpha1_with_http_info(self, **kwargs): + def get_api_resources_pool_kubevirt_io_v1beta1_with_http_info(self, **kwargs): """ Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an @@ -7617,7 +7617,7 @@ def get_api_resources_pool_kubevirt_io_v1alpha1_with_http_info(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_pool_kubevirt_io_v1alpha1_with_http_info(callback=callback_function) + >>> thread = api.get_api_resources_pool_kubevirt_io_v1beta1_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7637,7 +7637,7 @@ def get_api_resources_pool_kubevirt_io_v1alpha1_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_resources_pool_kubevirt_io_v1alpha1" % key + " to method get_api_resources_pool_kubevirt_io_v1beta1" % key ) params[key] = val del params['kwargs'] @@ -7661,7 +7661,7 @@ def get_api_resources_pool_kubevirt_io_v1alpha1_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/', 'GET', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1beta1/', 'GET', path_params, query_params, header_params, @@ -9452,7 +9452,7 @@ def list_namespaced_virtual_machine_pool(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachinePoolList + :return: V1beta1VirtualMachinePoolList If the method is called asynchronously, returns the request thread. """ @@ -9485,7 +9485,7 @@ def list_namespaced_virtual_machine_pool_with_http_info(self, namespace, **kwarg :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachinePoolList + :return: V1beta1VirtualMachinePoolList If the method is called asynchronously, returns the request thread. """ @@ -9547,14 +9547,14 @@ def list_namespaced_virtual_machine_pool_with_http_info(self, namespace, **kwarg # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools', 'GET', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachinePoolList', + response_type='V1beta1VirtualMachinePoolList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11361,7 +11361,7 @@ def list_virtual_machine_pool_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachinePoolList + :return: V1beta1VirtualMachinePoolList If the method is called asynchronously, returns the request thread. """ @@ -11393,7 +11393,7 @@ def list_virtual_machine_pool_for_all_namespaces_with_http_info(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachinePoolList + :return: V1beta1VirtualMachinePoolList If the method is called asynchronously, returns the request thread. """ @@ -11450,14 +11450,14 @@ def list_virtual_machine_pool_for_all_namespaces_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/virtualmachinepools', 'GET', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1beta1/virtualmachinepools', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachinePoolList', + response_type='V1beta1VirtualMachinePoolList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -13036,7 +13036,7 @@ def patch_namespaced_virtual_machine_pool(self, name, namespace, body, **kwargs) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachinePool + :return: V1beta1VirtualMachinePool If the method is called asynchronously, returns the request thread. """ @@ -13063,7 +13063,7 @@ def patch_namespaced_virtual_machine_pool_with_http_info(self, name, namespace, :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachinePool + :return: V1beta1VirtualMachinePool If the method is called asynchronously, returns the request thread. """ @@ -13123,14 +13123,14 @@ def patch_namespaced_virtual_machine_pool_with_http_info(self, name, namespace, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name}', 'PATCH', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools/{name}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachinePool', + response_type='V1beta1VirtualMachinePool', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -14988,7 +14988,7 @@ def read_namespaced_virtual_machine_pool(self, name, namespace, **kwargs): :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachinePool + :return: V1beta1VirtualMachinePool If the method is called asynchronously, returns the request thread. """ @@ -15016,7 +15016,7 @@ def read_namespaced_virtual_machine_pool_with_http_info(self, name, namespace, * :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachinePool + :return: V1beta1VirtualMachinePool If the method is called asynchronously, returns the request thread. """ @@ -15071,14 +15071,14 @@ def read_namespaced_virtual_machine_pool_with_http_info(self, name, namespace, * # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name}', 'GET', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools/{name}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachinePool', + response_type='V1beta1VirtualMachinePool', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -16940,8 +16940,8 @@ def replace_namespaced_virtual_machine_pool(self, name, namespace, body, **kwarg for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachinePool body: (required) - :return: V1alpha1VirtualMachinePool + :param V1beta1VirtualMachinePool body: (required) + :return: V1beta1VirtualMachinePool If the method is called asynchronously, returns the request thread. """ @@ -16967,8 +16967,8 @@ def replace_namespaced_virtual_machine_pool_with_http_info(self, name, namespace for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachinePool body: (required) - :return: V1alpha1VirtualMachinePool + :param V1beta1VirtualMachinePool body: (required) + :return: V1beta1VirtualMachinePool If the method is called asynchronously, returns the request thread. """ @@ -17028,14 +17028,14 @@ def replace_namespaced_virtual_machine_pool_with_http_info(self, name, namespace # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name}', 'PUT', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools/{name}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachinePool', + response_type='V1beta1VirtualMachinePool', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -28623,7 +28623,7 @@ def watch_namespaced_virtual_machine_pool_with_http_info(self, namespace, **kwar # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinepools', 'GET', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinepools', 'GET', path_params, query_params, header_params, @@ -30526,7 +30526,7 @@ def watch_virtual_machine_pool_list_for_all_namespaces_with_http_info(self, **kw # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/watch/virtualmachinepools', 'GET', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1beta1/watch/virtualmachinepools', 'GET', path_params, query_params, header_params, diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 6539d6c2..34be72f7 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.7.0-beta.0-246-gc363dbe207".\ + "SDK Package Version: v1.7.0-beta.0-252-g8282b1a5d9".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index c670a1a0..f0f7eecb 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -321,23 +321,6 @@ from .v1alpha1_migration_policy_spec import V1alpha1MigrationPolicySpec from .v1alpha1_migration_policy_status import V1alpha1MigrationPolicyStatus from .v1alpha1_selectors import V1alpha1Selectors -from .v1alpha1_virtual_machine_opportunistic_update_strategy import V1alpha1VirtualMachineOpportunisticUpdateStrategy -from .v1alpha1_virtual_machine_pool import V1alpha1VirtualMachinePool -from .v1alpha1_virtual_machine_pool_autohealing_strategy import V1alpha1VirtualMachinePoolAutohealingStrategy -from .v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition -from .v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList -from .v1alpha1_virtual_machine_pool_name_generation import V1alpha1VirtualMachinePoolNameGeneration -from .v1alpha1_virtual_machine_pool_opportunistic_scale_in_strategy import V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy -from .v1alpha1_virtual_machine_pool_proactive_scale_in_strategy import V1alpha1VirtualMachinePoolProactiveScaleInStrategy -from .v1alpha1_virtual_machine_pool_proactive_update_strategy import V1alpha1VirtualMachinePoolProactiveUpdateStrategy -from .v1alpha1_virtual_machine_pool_scale_in_strategy import V1alpha1VirtualMachinePoolScaleInStrategy -from .v1alpha1_virtual_machine_pool_selection_policy import V1alpha1VirtualMachinePoolSelectionPolicy -from .v1alpha1_virtual_machine_pool_selectors import V1alpha1VirtualMachinePoolSelectors -from .v1alpha1_virtual_machine_pool_spec import V1alpha1VirtualMachinePoolSpec -from .v1alpha1_virtual_machine_pool_status import V1alpha1VirtualMachinePoolStatus -from .v1alpha1_virtual_machine_pool_unmanaged_strategy import V1alpha1VirtualMachinePoolUnmanagedStrategy -from .v1alpha1_virtual_machine_pool_update_strategy import V1alpha1VirtualMachinePoolUpdateStrategy -from .v1alpha1_virtual_machine_template_spec import V1alpha1VirtualMachineTemplateSpec from .v1beta1_cpu_instancetype import V1beta1CPUInstancetype from .v1beta1_cpu_preference_requirement import V1beta1CPUPreferenceRequirement from .v1beta1_cpu_preferences import V1beta1CPUPreferences @@ -394,6 +377,22 @@ from .v1beta1_virtual_machine_instancetype import V1beta1VirtualMachineInstancetype from .v1beta1_virtual_machine_instancetype_list import V1beta1VirtualMachineInstancetypeList from .v1beta1_virtual_machine_instancetype_spec import V1beta1VirtualMachineInstancetypeSpec +from .v1beta1_virtual_machine_opportunistic_update_strategy import V1beta1VirtualMachineOpportunisticUpdateStrategy +from .v1beta1_virtual_machine_pool import V1beta1VirtualMachinePool +from .v1beta1_virtual_machine_pool_autohealing_strategy import V1beta1VirtualMachinePoolAutohealingStrategy +from .v1beta1_virtual_machine_pool_condition import V1beta1VirtualMachinePoolCondition +from .v1beta1_virtual_machine_pool_list import V1beta1VirtualMachinePoolList +from .v1beta1_virtual_machine_pool_name_generation import V1beta1VirtualMachinePoolNameGeneration +from .v1beta1_virtual_machine_pool_opportunistic_scale_in_strategy import V1beta1VirtualMachinePoolOpportunisticScaleInStrategy +from .v1beta1_virtual_machine_pool_proactive_scale_in_strategy import V1beta1VirtualMachinePoolProactiveScaleInStrategy +from .v1beta1_virtual_machine_pool_proactive_update_strategy import V1beta1VirtualMachinePoolProactiveUpdateStrategy +from .v1beta1_virtual_machine_pool_scale_in_strategy import V1beta1VirtualMachinePoolScaleInStrategy +from .v1beta1_virtual_machine_pool_selection_policy import V1beta1VirtualMachinePoolSelectionPolicy +from .v1beta1_virtual_machine_pool_selectors import V1beta1VirtualMachinePoolSelectors +from .v1beta1_virtual_machine_pool_spec import V1beta1VirtualMachinePoolSpec +from .v1beta1_virtual_machine_pool_status import V1beta1VirtualMachinePoolStatus +from .v1beta1_virtual_machine_pool_unmanaged_strategy import V1beta1VirtualMachinePoolUnmanagedStrategy +from .v1beta1_virtual_machine_pool_update_strategy import V1beta1VirtualMachinePoolUpdateStrategy from .v1beta1_virtual_machine_preference import V1beta1VirtualMachinePreference from .v1beta1_virtual_machine_preference_list import V1beta1VirtualMachinePreferenceList from .v1beta1_virtual_machine_preference_spec import V1beta1VirtualMachinePreferenceSpec @@ -409,6 +408,7 @@ from .v1beta1_virtual_machine_snapshot_list import V1beta1VirtualMachineSnapshotList from .v1beta1_virtual_machine_snapshot_spec import V1beta1VirtualMachineSnapshotSpec from .v1beta1_virtual_machine_snapshot_status import V1beta1VirtualMachineSnapshotStatus +from .v1beta1_virtual_machine_template_spec import V1beta1VirtualMachineTemplateSpec from .v1beta1_volume_backup import V1beta1VolumeBackup from .v1beta1_volume_preferences import V1beta1VolumePreferences from .v1beta1_volume_restore import V1beta1VolumeRestore diff --git a/kubevirt/models/v1alpha1_virtual_machine_opportunistic_update_strategy.py b/kubevirt/models/v1beta1_virtual_machine_opportunistic_update_strategy.py similarity index 90% rename from kubevirt/models/v1alpha1_virtual_machine_opportunistic_update_strategy.py rename to kubevirt/models/v1beta1_virtual_machine_opportunistic_update_strategy.py index cf861815..3fcf1565 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_opportunistic_update_strategy.py +++ b/kubevirt/models/v1beta1_virtual_machine_opportunistic_update_strategy.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineOpportunisticUpdateStrategy(object): +class V1beta1VirtualMachineOpportunisticUpdateStrategy(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,7 +40,7 @@ class V1alpha1VirtualMachineOpportunisticUpdateStrategy(object): def __init__(self): """ - V1alpha1VirtualMachineOpportunisticUpdateStrategy - a model defined in Swagger + V1beta1VirtualMachineOpportunisticUpdateStrategy - a model defined in Swagger """ @@ -87,7 +87,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineOpportunisticUpdateStrategy): + if not isinstance(other, V1beta1VirtualMachineOpportunisticUpdateStrategy): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool.py b/kubevirt/models/v1beta1_virtual_machine_pool.py similarity index 75% rename from kubevirt/models/v1alpha1_virtual_machine_pool.py rename to kubevirt/models/v1beta1_virtual_machine_pool.py index 7ca74087..00322dc8 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool.py +++ b/kubevirt/models/v1beta1_virtual_machine_pool.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachinePool(object): +class V1beta1VirtualMachinePool(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -34,8 +34,8 @@ class V1alpha1VirtualMachinePool(object): 'api_version': 'str', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', - 'spec': 'V1alpha1VirtualMachinePoolSpec', - 'status': 'V1alpha1VirtualMachinePoolStatus' + 'spec': 'V1beta1VirtualMachinePoolSpec', + 'status': 'V1beta1VirtualMachinePoolStatus' } attribute_map = { @@ -48,7 +48,7 @@ class V1alpha1VirtualMachinePool(object): def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): """ - V1alpha1VirtualMachinePool - a model defined in Swagger + V1beta1VirtualMachinePool - a model defined in Swagger """ self._api_version = None @@ -70,10 +70,10 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status @property def api_version(self): """ - Gets the api_version of this V1alpha1VirtualMachinePool. + Gets the api_version of this V1beta1VirtualMachinePool. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha1VirtualMachinePool. + :return: The api_version of this V1beta1VirtualMachinePool. :rtype: str """ return self._api_version @@ -81,10 +81,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha1VirtualMachinePool. + Sets the api_version of this V1beta1VirtualMachinePool. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha1VirtualMachinePool. + :param api_version: The api_version of this V1beta1VirtualMachinePool. :type: str """ @@ -93,10 +93,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V1alpha1VirtualMachinePool. + Gets the kind of this V1beta1VirtualMachinePool. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha1VirtualMachinePool. + :return: The kind of this V1beta1VirtualMachinePool. :rtype: str """ return self._kind @@ -104,10 +104,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha1VirtualMachinePool. + Sets the kind of this V1beta1VirtualMachinePool. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha1VirtualMachinePool. + :param kind: The kind of this V1beta1VirtualMachinePool. :type: str """ @@ -116,9 +116,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachinePool. + Gets the metadata of this V1beta1VirtualMachinePool. - :return: The metadata of this V1alpha1VirtualMachinePool. + :return: The metadata of this V1beta1VirtualMachinePool. :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -126,9 +126,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachinePool. + Sets the metadata of this V1beta1VirtualMachinePool. - :param metadata: The metadata of this V1alpha1VirtualMachinePool. + :param metadata: The metadata of this V1beta1VirtualMachinePool. :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ @@ -137,20 +137,20 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1alpha1VirtualMachinePool. + Gets the spec of this V1beta1VirtualMachinePool. - :return: The spec of this V1alpha1VirtualMachinePool. - :rtype: V1alpha1VirtualMachinePoolSpec + :return: The spec of this V1beta1VirtualMachinePool. + :rtype: V1beta1VirtualMachinePoolSpec """ return self._spec @spec.setter def spec(self, spec): """ - Sets the spec of this V1alpha1VirtualMachinePool. + Sets the spec of this V1beta1VirtualMachinePool. - :param spec: The spec of this V1alpha1VirtualMachinePool. - :type: V1alpha1VirtualMachinePoolSpec + :param spec: The spec of this V1beta1VirtualMachinePool. + :type: V1beta1VirtualMachinePoolSpec """ if spec is None: raise ValueError("Invalid value for `spec`, must not be `None`") @@ -160,20 +160,20 @@ def spec(self, spec): @property def status(self): """ - Gets the status of this V1alpha1VirtualMachinePool. + Gets the status of this V1beta1VirtualMachinePool. - :return: The status of this V1alpha1VirtualMachinePool. - :rtype: V1alpha1VirtualMachinePoolStatus + :return: The status of this V1beta1VirtualMachinePool. + :rtype: V1beta1VirtualMachinePoolStatus """ return self._status @status.setter def status(self, status): """ - Sets the status of this V1alpha1VirtualMachinePool. + Sets the status of this V1beta1VirtualMachinePool. - :param status: The status of this V1alpha1VirtualMachinePool. - :type: V1alpha1VirtualMachinePoolStatus + :param status: The status of this V1beta1VirtualMachinePool. + :type: V1beta1VirtualMachinePoolStatus """ self._status = status @@ -220,7 +220,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachinePool): + if not isinstance(other, V1beta1VirtualMachinePool): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_autohealing_strategy.py b/kubevirt/models/v1beta1_virtual_machine_pool_autohealing_strategy.py similarity index 83% rename from kubevirt/models/v1alpha1_virtual_machine_pool_autohealing_strategy.py rename to kubevirt/models/v1beta1_virtual_machine_pool_autohealing_strategy.py index ae5c30e3..b5b12496 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_autohealing_strategy.py +++ b/kubevirt/models/v1beta1_virtual_machine_pool_autohealing_strategy.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachinePoolAutohealingStrategy(object): +class V1beta1VirtualMachinePoolAutohealingStrategy(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class V1alpha1VirtualMachinePoolAutohealingStrategy(object): def __init__(self, min_failing_to_start_duration=None, start_up_failure_threshold=None): """ - V1alpha1VirtualMachinePoolAutohealingStrategy - a model defined in Swagger + V1beta1VirtualMachinePoolAutohealingStrategy - a model defined in Swagger """ self._min_failing_to_start_duration = None @@ -56,10 +56,10 @@ def __init__(self, min_failing_to_start_duration=None, start_up_failure_threshol @property def min_failing_to_start_duration(self): """ - Gets the min_failing_to_start_duration of this V1alpha1VirtualMachinePoolAutohealingStrategy. + Gets the min_failing_to_start_duration of this V1beta1VirtualMachinePoolAutohealingStrategy. MinFailingToStartDuration is the minimum time a VM must be in a failing status (applies to status conditions like CrashLoopBackOff, Unschedulable) before being replaced. It measures the duration since the VM's Ready condition transitioned to False. Defaults to 5 minutes - :return: The min_failing_to_start_duration of this V1alpha1VirtualMachinePoolAutohealingStrategy. + :return: The min_failing_to_start_duration of this V1beta1VirtualMachinePoolAutohealingStrategy. :rtype: K8sIoApimachineryPkgApisMetaV1Duration """ return self._min_failing_to_start_duration @@ -67,10 +67,10 @@ def min_failing_to_start_duration(self): @min_failing_to_start_duration.setter def min_failing_to_start_duration(self, min_failing_to_start_duration): """ - Sets the min_failing_to_start_duration of this V1alpha1VirtualMachinePoolAutohealingStrategy. + Sets the min_failing_to_start_duration of this V1beta1VirtualMachinePoolAutohealingStrategy. MinFailingToStartDuration is the minimum time a VM must be in a failing status (applies to status conditions like CrashLoopBackOff, Unschedulable) before being replaced. It measures the duration since the VM's Ready condition transitioned to False. Defaults to 5 minutes - :param min_failing_to_start_duration: The min_failing_to_start_duration of this V1alpha1VirtualMachinePoolAutohealingStrategy. + :param min_failing_to_start_duration: The min_failing_to_start_duration of this V1beta1VirtualMachinePoolAutohealingStrategy. :type: K8sIoApimachineryPkgApisMetaV1Duration """ @@ -79,10 +79,10 @@ def min_failing_to_start_duration(self, min_failing_to_start_duration): @property def start_up_failure_threshold(self): """ - Gets the start_up_failure_threshold of this V1alpha1VirtualMachinePoolAutohealingStrategy. + Gets the start_up_failure_threshold of this V1beta1VirtualMachinePoolAutohealingStrategy. StartUpFailureThreshold is the number of consecutive VMI start failures (it tracks the value of Status.StartFailure.ConsecutiveFailCount field) before replacing the VM. Defaults to 3 - :return: The start_up_failure_threshold of this V1alpha1VirtualMachinePoolAutohealingStrategy. + :return: The start_up_failure_threshold of this V1beta1VirtualMachinePoolAutohealingStrategy. :rtype: int """ return self._start_up_failure_threshold @@ -90,10 +90,10 @@ def start_up_failure_threshold(self): @start_up_failure_threshold.setter def start_up_failure_threshold(self, start_up_failure_threshold): """ - Sets the start_up_failure_threshold of this V1alpha1VirtualMachinePoolAutohealingStrategy. + Sets the start_up_failure_threshold of this V1beta1VirtualMachinePoolAutohealingStrategy. StartUpFailureThreshold is the number of consecutive VMI start failures (it tracks the value of Status.StartFailure.ConsecutiveFailCount field) before replacing the VM. Defaults to 3 - :param start_up_failure_threshold: The start_up_failure_threshold of this V1alpha1VirtualMachinePoolAutohealingStrategy. + :param start_up_failure_threshold: The start_up_failure_threshold of this V1beta1VirtualMachinePoolAutohealingStrategy. :type: int """ @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachinePoolAutohealingStrategy): + if not isinstance(other, V1beta1VirtualMachinePoolAutohealingStrategy): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_condition.py b/kubevirt/models/v1beta1_virtual_machine_pool_condition.py similarity index 74% rename from kubevirt/models/v1alpha1_virtual_machine_pool_condition.py rename to kubevirt/models/v1beta1_virtual_machine_pool_condition.py index d43030c2..ba0e106c 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_condition.py +++ b/kubevirt/models/v1beta1_virtual_machine_pool_condition.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachinePoolCondition(object): +class V1beta1VirtualMachinePoolCondition(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -46,7 +46,7 @@ class V1alpha1VirtualMachinePoolCondition(object): def __init__(self, message=None, reason=None, status='', type=''): """ - V1alpha1VirtualMachinePoolCondition - a model defined in Swagger + V1beta1VirtualMachinePoolCondition - a model defined in Swagger """ self._message = None @@ -64,9 +64,9 @@ def __init__(self, message=None, reason=None, status='', type=''): @property def message(self): """ - Gets the message of this V1alpha1VirtualMachinePoolCondition. + Gets the message of this V1beta1VirtualMachinePoolCondition. - :return: The message of this V1alpha1VirtualMachinePoolCondition. + :return: The message of this V1beta1VirtualMachinePoolCondition. :rtype: str """ return self._message @@ -74,9 +74,9 @@ def message(self): @message.setter def message(self, message): """ - Sets the message of this V1alpha1VirtualMachinePoolCondition. + Sets the message of this V1beta1VirtualMachinePoolCondition. - :param message: The message of this V1alpha1VirtualMachinePoolCondition. + :param message: The message of this V1beta1VirtualMachinePoolCondition. :type: str """ @@ -85,9 +85,9 @@ def message(self, message): @property def reason(self): """ - Gets the reason of this V1alpha1VirtualMachinePoolCondition. + Gets the reason of this V1beta1VirtualMachinePoolCondition. - :return: The reason of this V1alpha1VirtualMachinePoolCondition. + :return: The reason of this V1beta1VirtualMachinePoolCondition. :rtype: str """ return self._reason @@ -95,9 +95,9 @@ def reason(self): @reason.setter def reason(self, reason): """ - Sets the reason of this V1alpha1VirtualMachinePoolCondition. + Sets the reason of this V1beta1VirtualMachinePoolCondition. - :param reason: The reason of this V1alpha1VirtualMachinePoolCondition. + :param reason: The reason of this V1beta1VirtualMachinePoolCondition. :type: str """ @@ -106,9 +106,9 @@ def reason(self, reason): @property def status(self): """ - Gets the status of this V1alpha1VirtualMachinePoolCondition. + Gets the status of this V1beta1VirtualMachinePoolCondition. - :return: The status of this V1alpha1VirtualMachinePoolCondition. + :return: The status of this V1beta1VirtualMachinePoolCondition. :rtype: str """ return self._status @@ -116,9 +116,9 @@ def status(self): @status.setter def status(self, status): """ - Sets the status of this V1alpha1VirtualMachinePoolCondition. + Sets the status of this V1beta1VirtualMachinePoolCondition. - :param status: The status of this V1alpha1VirtualMachinePoolCondition. + :param status: The status of this V1beta1VirtualMachinePoolCondition. :type: str """ if status is None: @@ -129,9 +129,9 @@ def status(self, status): @property def type(self): """ - Gets the type of this V1alpha1VirtualMachinePoolCondition. + Gets the type of this V1beta1VirtualMachinePoolCondition. - :return: The type of this V1alpha1VirtualMachinePoolCondition. + :return: The type of this V1beta1VirtualMachinePoolCondition. :rtype: str """ return self._type @@ -139,9 +139,9 @@ def type(self): @type.setter def type(self, type): """ - Sets the type of this V1alpha1VirtualMachinePoolCondition. + Sets the type of this V1beta1VirtualMachinePoolCondition. - :param type: The type of this V1alpha1VirtualMachinePoolCondition. + :param type: The type of this V1beta1VirtualMachinePoolCondition. :type: str """ if type is None: @@ -191,7 +191,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachinePoolCondition): + if not isinstance(other, V1beta1VirtualMachinePoolCondition): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_list.py b/kubevirt/models/v1beta1_virtual_machine_pool_list.py similarity index 78% rename from kubevirt/models/v1alpha1_virtual_machine_pool_list.py rename to kubevirt/models/v1beta1_virtual_machine_pool_list.py index c2ecacdb..40ad453e 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_list.py +++ b/kubevirt/models/v1beta1_virtual_machine_pool_list.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachinePoolList(object): +class V1beta1VirtualMachinePoolList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class V1alpha1VirtualMachinePoolList(object): """ swagger_types = { 'api_version': 'str', - 'items': 'list[V1alpha1VirtualMachinePool]', + 'items': 'list[V1beta1VirtualMachinePool]', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' } @@ -46,7 +46,7 @@ class V1alpha1VirtualMachinePoolList(object): def __init__(self, api_version=None, items=None, kind=None, metadata=None): """ - V1alpha1VirtualMachinePoolList - a model defined in Swagger + V1beta1VirtualMachinePoolList - a model defined in Swagger """ self._api_version = None @@ -65,10 +65,10 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): @property def api_version(self): """ - Gets the api_version of this V1alpha1VirtualMachinePoolList. + Gets the api_version of this V1beta1VirtualMachinePoolList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha1VirtualMachinePoolList. + :return: The api_version of this V1beta1VirtualMachinePoolList. :rtype: str """ return self._api_version @@ -76,10 +76,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha1VirtualMachinePoolList. + Sets the api_version of this V1beta1VirtualMachinePoolList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha1VirtualMachinePoolList. + :param api_version: The api_version of this V1beta1VirtualMachinePoolList. :type: str """ @@ -88,20 +88,20 @@ def api_version(self, api_version): @property def items(self): """ - Gets the items of this V1alpha1VirtualMachinePoolList. + Gets the items of this V1beta1VirtualMachinePoolList. - :return: The items of this V1alpha1VirtualMachinePoolList. - :rtype: list[V1alpha1VirtualMachinePool] + :return: The items of this V1beta1VirtualMachinePoolList. + :rtype: list[V1beta1VirtualMachinePool] """ return self._items @items.setter def items(self, items): """ - Sets the items of this V1alpha1VirtualMachinePoolList. + Sets the items of this V1beta1VirtualMachinePoolList. - :param items: The items of this V1alpha1VirtualMachinePoolList. - :type: list[V1alpha1VirtualMachinePool] + :param items: The items of this V1beta1VirtualMachinePoolList. + :type: list[V1beta1VirtualMachinePool] """ if items is None: raise ValueError("Invalid value for `items`, must not be `None`") @@ -111,10 +111,10 @@ def items(self, items): @property def kind(self): """ - Gets the kind of this V1alpha1VirtualMachinePoolList. + Gets the kind of this V1beta1VirtualMachinePoolList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha1VirtualMachinePoolList. + :return: The kind of this V1beta1VirtualMachinePoolList. :rtype: str """ return self._kind @@ -122,10 +122,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha1VirtualMachinePoolList. + Sets the kind of this V1beta1VirtualMachinePoolList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha1VirtualMachinePoolList. + :param kind: The kind of this V1beta1VirtualMachinePoolList. :type: str """ @@ -134,9 +134,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachinePoolList. + Gets the metadata of this V1beta1VirtualMachinePoolList. - :return: The metadata of this V1alpha1VirtualMachinePoolList. + :return: The metadata of this V1beta1VirtualMachinePoolList. :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @@ -144,9 +144,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachinePoolList. + Sets the metadata of this V1beta1VirtualMachinePoolList. - :param metadata: The metadata of this V1alpha1VirtualMachinePoolList. + :param metadata: The metadata of this V1beta1VirtualMachinePoolList. :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ @@ -194,7 +194,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachinePoolList): + if not isinstance(other, V1beta1VirtualMachinePoolList): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_name_generation.py b/kubevirt/models/v1beta1_virtual_machine_pool_name_generation.py similarity index 80% rename from kubevirt/models/v1alpha1_virtual_machine_pool_name_generation.py rename to kubevirt/models/v1beta1_virtual_machine_pool_name_generation.py index 33c346a8..2a28ae87 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_name_generation.py +++ b/kubevirt/models/v1beta1_virtual_machine_pool_name_generation.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachinePoolNameGeneration(object): +class V1beta1VirtualMachinePoolNameGeneration(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class V1alpha1VirtualMachinePoolNameGeneration(object): def __init__(self, append_index_to_config_map_refs=None, append_index_to_secret_refs=None): """ - V1alpha1VirtualMachinePoolNameGeneration - a model defined in Swagger + V1beta1VirtualMachinePoolNameGeneration - a model defined in Swagger """ self._append_index_to_config_map_refs = None @@ -56,9 +56,9 @@ def __init__(self, append_index_to_config_map_refs=None, append_index_to_secret_ @property def append_index_to_config_map_refs(self): """ - Gets the append_index_to_config_map_refs of this V1alpha1VirtualMachinePoolNameGeneration. + Gets the append_index_to_config_map_refs of this V1beta1VirtualMachinePoolNameGeneration. - :return: The append_index_to_config_map_refs of this V1alpha1VirtualMachinePoolNameGeneration. + :return: The append_index_to_config_map_refs of this V1beta1VirtualMachinePoolNameGeneration. :rtype: bool """ return self._append_index_to_config_map_refs @@ -66,9 +66,9 @@ def append_index_to_config_map_refs(self): @append_index_to_config_map_refs.setter def append_index_to_config_map_refs(self, append_index_to_config_map_refs): """ - Sets the append_index_to_config_map_refs of this V1alpha1VirtualMachinePoolNameGeneration. + Sets the append_index_to_config_map_refs of this V1beta1VirtualMachinePoolNameGeneration. - :param append_index_to_config_map_refs: The append_index_to_config_map_refs of this V1alpha1VirtualMachinePoolNameGeneration. + :param append_index_to_config_map_refs: The append_index_to_config_map_refs of this V1beta1VirtualMachinePoolNameGeneration. :type: bool """ @@ -77,9 +77,9 @@ def append_index_to_config_map_refs(self, append_index_to_config_map_refs): @property def append_index_to_secret_refs(self): """ - Gets the append_index_to_secret_refs of this V1alpha1VirtualMachinePoolNameGeneration. + Gets the append_index_to_secret_refs of this V1beta1VirtualMachinePoolNameGeneration. - :return: The append_index_to_secret_refs of this V1alpha1VirtualMachinePoolNameGeneration. + :return: The append_index_to_secret_refs of this V1beta1VirtualMachinePoolNameGeneration. :rtype: bool """ return self._append_index_to_secret_refs @@ -87,9 +87,9 @@ def append_index_to_secret_refs(self): @append_index_to_secret_refs.setter def append_index_to_secret_refs(self, append_index_to_secret_refs): """ - Sets the append_index_to_secret_refs of this V1alpha1VirtualMachinePoolNameGeneration. + Sets the append_index_to_secret_refs of this V1beta1VirtualMachinePoolNameGeneration. - :param append_index_to_secret_refs: The append_index_to_secret_refs of this V1alpha1VirtualMachinePoolNameGeneration. + :param append_index_to_secret_refs: The append_index_to_secret_refs of this V1beta1VirtualMachinePoolNameGeneration. :type: bool """ @@ -137,7 +137,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachinePoolNameGeneration): + if not isinstance(other, V1beta1VirtualMachinePoolNameGeneration): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_opportunistic_scale_in_strategy.py b/kubevirt/models/v1beta1_virtual_machine_pool_opportunistic_scale_in_strategy.py similarity index 85% rename from kubevirt/models/v1alpha1_virtual_machine_pool_opportunistic_scale_in_strategy.py rename to kubevirt/models/v1beta1_virtual_machine_pool_opportunistic_scale_in_strategy.py index 22eecdb2..1027c395 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_opportunistic_scale_in_strategy.py +++ b/kubevirt/models/v1beta1_virtual_machine_pool_opportunistic_scale_in_strategy.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy(object): +class V1beta1VirtualMachinePoolOpportunisticScaleInStrategy(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,7 +40,7 @@ class V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy(object): def __init__(self, state_preservation=None): """ - V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy - a model defined in Swagger + V1beta1VirtualMachinePoolOpportunisticScaleInStrategy - a model defined in Swagger """ self._state_preservation = None @@ -51,10 +51,10 @@ def __init__(self, state_preservation=None): @property def state_preservation(self): """ - Gets the state_preservation of this V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy. + Gets the state_preservation of this V1beta1VirtualMachinePoolOpportunisticScaleInStrategy. Specifies if and how to preserve the state of the VMs selected during scale-in. Disabled - (Default) all state for VMs selected for scale-in will be deleted. Offline - PVCs for VMs selected for scale-in will be preserved and reused on scale-out (decreases provisioning time during scale out). Online - PVCs and memory for VMs selected for scale-in will be preserved and reused on scale-out (decreases provisioning and boot time during scale out). - :return: The state_preservation of this V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy. + :return: The state_preservation of this V1beta1VirtualMachinePoolOpportunisticScaleInStrategy. :rtype: str """ return self._state_preservation @@ -62,10 +62,10 @@ def state_preservation(self): @state_preservation.setter def state_preservation(self, state_preservation): """ - Sets the state_preservation of this V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy. + Sets the state_preservation of this V1beta1VirtualMachinePoolOpportunisticScaleInStrategy. Specifies if and how to preserve the state of the VMs selected during scale-in. Disabled - (Default) all state for VMs selected for scale-in will be deleted. Offline - PVCs for VMs selected for scale-in will be preserved and reused on scale-out (decreases provisioning time during scale out). Online - PVCs and memory for VMs selected for scale-in will be preserved and reused on scale-out (decreases provisioning and boot time during scale out). - :param state_preservation: The state_preservation of this V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy. + :param state_preservation: The state_preservation of this V1beta1VirtualMachinePoolOpportunisticScaleInStrategy. :type: str """ @@ -113,7 +113,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy): + if not isinstance(other, V1beta1VirtualMachinePoolOpportunisticScaleInStrategy): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py b/kubevirt/models/v1beta1_virtual_machine_pool_proactive_scale_in_strategy.py similarity index 80% rename from kubevirt/models/v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py rename to kubevirt/models/v1beta1_virtual_machine_pool_proactive_scale_in_strategy.py index 94e77114..d5e58cce 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py +++ b/kubevirt/models/v1beta1_virtual_machine_pool_proactive_scale_in_strategy.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachinePoolProactiveScaleInStrategy(object): +class V1beta1VirtualMachinePoolProactiveScaleInStrategy(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,7 +31,7 @@ class V1alpha1VirtualMachinePoolProactiveScaleInStrategy(object): and the value is json key in definition. """ swagger_types = { - 'selection_policy': 'V1alpha1VirtualMachinePoolSelectionPolicy', + 'selection_policy': 'V1beta1VirtualMachinePoolSelectionPolicy', 'state_preservation': 'str' } @@ -42,7 +42,7 @@ class V1alpha1VirtualMachinePoolProactiveScaleInStrategy(object): def __init__(self, selection_policy=None, state_preservation=None): """ - V1alpha1VirtualMachinePoolProactiveScaleInStrategy - a model defined in Swagger + V1beta1VirtualMachinePoolProactiveScaleInStrategy - a model defined in Swagger """ self._selection_policy = None @@ -56,22 +56,22 @@ def __init__(self, selection_policy=None, state_preservation=None): @property def selection_policy(self): """ - Gets the selection_policy of this V1alpha1VirtualMachinePoolProactiveScaleInStrategy. + Gets the selection_policy of this V1beta1VirtualMachinePoolProactiveScaleInStrategy. SelectionPolicy defines the priority in which VM instances are selected for proactive scale-in Defaults to \"Random\" base policy when no SelectionPolicy is configured - :return: The selection_policy of this V1alpha1VirtualMachinePoolProactiveScaleInStrategy. - :rtype: V1alpha1VirtualMachinePoolSelectionPolicy + :return: The selection_policy of this V1beta1VirtualMachinePoolProactiveScaleInStrategy. + :rtype: V1beta1VirtualMachinePoolSelectionPolicy """ return self._selection_policy @selection_policy.setter def selection_policy(self, selection_policy): """ - Sets the selection_policy of this V1alpha1VirtualMachinePoolProactiveScaleInStrategy. + Sets the selection_policy of this V1beta1VirtualMachinePoolProactiveScaleInStrategy. SelectionPolicy defines the priority in which VM instances are selected for proactive scale-in Defaults to \"Random\" base policy when no SelectionPolicy is configured - :param selection_policy: The selection_policy of this V1alpha1VirtualMachinePoolProactiveScaleInStrategy. - :type: V1alpha1VirtualMachinePoolSelectionPolicy + :param selection_policy: The selection_policy of this V1beta1VirtualMachinePoolProactiveScaleInStrategy. + :type: V1beta1VirtualMachinePoolSelectionPolicy """ self._selection_policy = selection_policy @@ -79,10 +79,10 @@ def selection_policy(self, selection_policy): @property def state_preservation(self): """ - Gets the state_preservation of this V1alpha1VirtualMachinePoolProactiveScaleInStrategy. + Gets the state_preservation of this V1beta1VirtualMachinePoolProactiveScaleInStrategy. Specifies if and how to preserve the state of the VMs selected during scale-in. Disabled - (Default) all state for VMs selected for scale-in will be deleted. Offline - PVCs for VMs selected for scale-in will be preserved and reused on scale-out (decreases provisioning time during scale out). Online - PVCs and memory for VMs selected for scale-in will be preserved and reused on scale-out (decreases provisioning and boot time during scale out). - :return: The state_preservation of this V1alpha1VirtualMachinePoolProactiveScaleInStrategy. + :return: The state_preservation of this V1beta1VirtualMachinePoolProactiveScaleInStrategy. :rtype: str """ return self._state_preservation @@ -90,10 +90,10 @@ def state_preservation(self): @state_preservation.setter def state_preservation(self, state_preservation): """ - Sets the state_preservation of this V1alpha1VirtualMachinePoolProactiveScaleInStrategy. + Sets the state_preservation of this V1beta1VirtualMachinePoolProactiveScaleInStrategy. Specifies if and how to preserve the state of the VMs selected during scale-in. Disabled - (Default) all state for VMs selected for scale-in will be deleted. Offline - PVCs for VMs selected for scale-in will be preserved and reused on scale-out (decreases provisioning time during scale out). Online - PVCs and memory for VMs selected for scale-in will be preserved and reused on scale-out (decreases provisioning and boot time during scale out). - :param state_preservation: The state_preservation of this V1alpha1VirtualMachinePoolProactiveScaleInStrategy. + :param state_preservation: The state_preservation of this V1beta1VirtualMachinePoolProactiveScaleInStrategy. :type: str """ @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachinePoolProactiveScaleInStrategy): + if not isinstance(other, V1beta1VirtualMachinePoolProactiveScaleInStrategy): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_proactive_update_strategy.py b/kubevirt/models/v1beta1_virtual_machine_pool_proactive_update_strategy.py similarity index 80% rename from kubevirt/models/v1alpha1_virtual_machine_pool_proactive_update_strategy.py rename to kubevirt/models/v1beta1_virtual_machine_pool_proactive_update_strategy.py index e1f4bdda..8e0b8883 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_proactive_update_strategy.py +++ b/kubevirt/models/v1beta1_virtual_machine_pool_proactive_update_strategy.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachinePoolProactiveUpdateStrategy(object): +class V1beta1VirtualMachinePoolProactiveUpdateStrategy(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,7 +31,7 @@ class V1alpha1VirtualMachinePoolProactiveUpdateStrategy(object): and the value is json key in definition. """ swagger_types = { - 'selection_policy': 'V1alpha1VirtualMachinePoolSelectionPolicy' + 'selection_policy': 'V1beta1VirtualMachinePoolSelectionPolicy' } attribute_map = { @@ -40,7 +40,7 @@ class V1alpha1VirtualMachinePoolProactiveUpdateStrategy(object): def __init__(self, selection_policy=None): """ - V1alpha1VirtualMachinePoolProactiveUpdateStrategy - a model defined in Swagger + V1beta1VirtualMachinePoolProactiveUpdateStrategy - a model defined in Swagger """ self._selection_policy = None @@ -51,22 +51,22 @@ def __init__(self, selection_policy=None): @property def selection_policy(self): """ - Gets the selection_policy of this V1alpha1VirtualMachinePoolProactiveUpdateStrategy. + Gets the selection_policy of this V1beta1VirtualMachinePoolProactiveUpdateStrategy. SelectionPolicy defines the priority in which VM instances are selected for proactive update Defaults to \"Random\" base policy when no SelectionPolicy is configured - :return: The selection_policy of this V1alpha1VirtualMachinePoolProactiveUpdateStrategy. - :rtype: V1alpha1VirtualMachinePoolSelectionPolicy + :return: The selection_policy of this V1beta1VirtualMachinePoolProactiveUpdateStrategy. + :rtype: V1beta1VirtualMachinePoolSelectionPolicy """ return self._selection_policy @selection_policy.setter def selection_policy(self, selection_policy): """ - Sets the selection_policy of this V1alpha1VirtualMachinePoolProactiveUpdateStrategy. + Sets the selection_policy of this V1beta1VirtualMachinePoolProactiveUpdateStrategy. SelectionPolicy defines the priority in which VM instances are selected for proactive update Defaults to \"Random\" base policy when no SelectionPolicy is configured - :param selection_policy: The selection_policy of this V1alpha1VirtualMachinePoolProactiveUpdateStrategy. - :type: V1alpha1VirtualMachinePoolSelectionPolicy + :param selection_policy: The selection_policy of this V1beta1VirtualMachinePoolProactiveUpdateStrategy. + :type: V1beta1VirtualMachinePoolSelectionPolicy """ self._selection_policy = selection_policy @@ -113,7 +113,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachinePoolProactiveUpdateStrategy): + if not isinstance(other, V1beta1VirtualMachinePoolProactiveUpdateStrategy): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_scale_in_strategy.py b/kubevirt/models/v1beta1_virtual_machine_pool_scale_in_strategy.py similarity index 69% rename from kubevirt/models/v1alpha1_virtual_machine_pool_scale_in_strategy.py rename to kubevirt/models/v1beta1_virtual_machine_pool_scale_in_strategy.py index d1275a4c..46521f62 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_scale_in_strategy.py +++ b/kubevirt/models/v1beta1_virtual_machine_pool_scale_in_strategy.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachinePoolScaleInStrategy(object): +class V1beta1VirtualMachinePoolScaleInStrategy(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,9 +31,9 @@ class V1alpha1VirtualMachinePoolScaleInStrategy(object): and the value is json key in definition. """ swagger_types = { - 'opportunistic': 'V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy', - 'proactive': 'V1alpha1VirtualMachinePoolProactiveScaleInStrategy', - 'unmanaged': 'V1alpha1VirtualMachinePoolUnmanagedStrategy' + 'opportunistic': 'V1beta1VirtualMachinePoolOpportunisticScaleInStrategy', + 'proactive': 'V1beta1VirtualMachinePoolProactiveScaleInStrategy', + 'unmanaged': 'V1beta1VirtualMachinePoolUnmanagedStrategy' } attribute_map = { @@ -44,7 +44,7 @@ class V1alpha1VirtualMachinePoolScaleInStrategy(object): def __init__(self, opportunistic=None, proactive=None, unmanaged=None): """ - V1alpha1VirtualMachinePoolScaleInStrategy - a model defined in Swagger + V1beta1VirtualMachinePoolScaleInStrategy - a model defined in Swagger """ self._opportunistic = None @@ -61,22 +61,22 @@ def __init__(self, opportunistic=None, proactive=None, unmanaged=None): @property def opportunistic(self): """ - Gets the opportunistic of this V1alpha1VirtualMachinePoolScaleInStrategy. + Gets the opportunistic of this V1beta1VirtualMachinePoolScaleInStrategy. Opportunistic scale-in is a strategy when vms are deleted by some other means than the scale-in action. For example, when the VM is deleted by the user or when the VM is deleted by the node that is hosting the VM. - :return: The opportunistic of this V1alpha1VirtualMachinePoolScaleInStrategy. - :rtype: V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy + :return: The opportunistic of this V1beta1VirtualMachinePoolScaleInStrategy. + :rtype: V1beta1VirtualMachinePoolOpportunisticScaleInStrategy """ return self._opportunistic @opportunistic.setter def opportunistic(self, opportunistic): """ - Sets the opportunistic of this V1alpha1VirtualMachinePoolScaleInStrategy. + Sets the opportunistic of this V1beta1VirtualMachinePoolScaleInStrategy. Opportunistic scale-in is a strategy when vms are deleted by some other means than the scale-in action. For example, when the VM is deleted by the user or when the VM is deleted by the node that is hosting the VM. - :param opportunistic: The opportunistic of this V1alpha1VirtualMachinePoolScaleInStrategy. - :type: V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy + :param opportunistic: The opportunistic of this V1beta1VirtualMachinePoolScaleInStrategy. + :type: V1beta1VirtualMachinePoolOpportunisticScaleInStrategy """ self._opportunistic = opportunistic @@ -84,22 +84,22 @@ def opportunistic(self, opportunistic): @property def proactive(self): """ - Gets the proactive of this V1alpha1VirtualMachinePoolScaleInStrategy. + Gets the proactive of this V1beta1VirtualMachinePoolScaleInStrategy. Proactive scale-in by forcing VMs to shutdown during scale-in (Default) - :return: The proactive of this V1alpha1VirtualMachinePoolScaleInStrategy. - :rtype: V1alpha1VirtualMachinePoolProactiveScaleInStrategy + :return: The proactive of this V1beta1VirtualMachinePoolScaleInStrategy. + :rtype: V1beta1VirtualMachinePoolProactiveScaleInStrategy """ return self._proactive @proactive.setter def proactive(self, proactive): """ - Sets the proactive of this V1alpha1VirtualMachinePoolScaleInStrategy. + Sets the proactive of this V1beta1VirtualMachinePoolScaleInStrategy. Proactive scale-in by forcing VMs to shutdown during scale-in (Default) - :param proactive: The proactive of this V1alpha1VirtualMachinePoolScaleInStrategy. - :type: V1alpha1VirtualMachinePoolProactiveScaleInStrategy + :param proactive: The proactive of this V1beta1VirtualMachinePoolScaleInStrategy. + :type: V1beta1VirtualMachinePoolProactiveScaleInStrategy """ self._proactive = proactive @@ -107,22 +107,22 @@ def proactive(self, proactive): @property def unmanaged(self): """ - Gets the unmanaged of this V1alpha1VirtualMachinePoolScaleInStrategy. + Gets the unmanaged of this V1beta1VirtualMachinePoolScaleInStrategy. The VM is never touched after creation. Users are responsible for scaling in the pool manually. - :return: The unmanaged of this V1alpha1VirtualMachinePoolScaleInStrategy. - :rtype: V1alpha1VirtualMachinePoolUnmanagedStrategy + :return: The unmanaged of this V1beta1VirtualMachinePoolScaleInStrategy. + :rtype: V1beta1VirtualMachinePoolUnmanagedStrategy """ return self._unmanaged @unmanaged.setter def unmanaged(self, unmanaged): """ - Sets the unmanaged of this V1alpha1VirtualMachinePoolScaleInStrategy. + Sets the unmanaged of this V1beta1VirtualMachinePoolScaleInStrategy. The VM is never touched after creation. Users are responsible for scaling in the pool manually. - :param unmanaged: The unmanaged of this V1alpha1VirtualMachinePoolScaleInStrategy. - :type: V1alpha1VirtualMachinePoolUnmanagedStrategy + :param unmanaged: The unmanaged of this V1beta1VirtualMachinePoolScaleInStrategy. + :type: V1beta1VirtualMachinePoolUnmanagedStrategy """ self._unmanaged = unmanaged @@ -169,7 +169,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachinePoolScaleInStrategy): + if not isinstance(other, V1beta1VirtualMachinePoolScaleInStrategy): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_selection_policy.py b/kubevirt/models/v1beta1_virtual_machine_pool_selection_policy.py similarity index 76% rename from kubevirt/models/v1alpha1_virtual_machine_pool_selection_policy.py rename to kubevirt/models/v1beta1_virtual_machine_pool_selection_policy.py index e8e7d699..055fce8d 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_selection_policy.py +++ b/kubevirt/models/v1beta1_virtual_machine_pool_selection_policy.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachinePoolSelectionPolicy(object): +class V1beta1VirtualMachinePoolSelectionPolicy(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,7 +31,7 @@ class V1alpha1VirtualMachinePoolSelectionPolicy(object): and the value is json key in definition. """ swagger_types = { - 'selectors': 'V1alpha1VirtualMachinePoolSelectors', + 'selectors': 'V1beta1VirtualMachinePoolSelectors', 'sort_policy': 'str' } @@ -42,7 +42,7 @@ class V1alpha1VirtualMachinePoolSelectionPolicy(object): def __init__(self, selectors=None, sort_policy=None): """ - V1alpha1VirtualMachinePoolSelectionPolicy - a model defined in Swagger + V1beta1VirtualMachinePoolSelectionPolicy - a model defined in Swagger """ self._selectors = None @@ -56,22 +56,22 @@ def __init__(self, selectors=None, sort_policy=None): @property def selectors(self): """ - Gets the selectors of this V1alpha1VirtualMachinePoolSelectionPolicy. + Gets the selectors of this V1beta1VirtualMachinePoolSelectionPolicy. Selectors is a list of selection policies. - :return: The selectors of this V1alpha1VirtualMachinePoolSelectionPolicy. - :rtype: V1alpha1VirtualMachinePoolSelectors + :return: The selectors of this V1beta1VirtualMachinePoolSelectionPolicy. + :rtype: V1beta1VirtualMachinePoolSelectors """ return self._selectors @selectors.setter def selectors(self, selectors): """ - Sets the selectors of this V1alpha1VirtualMachinePoolSelectionPolicy. + Sets the selectors of this V1beta1VirtualMachinePoolSelectionPolicy. Selectors is a list of selection policies. - :param selectors: The selectors of this V1alpha1VirtualMachinePoolSelectionPolicy. - :type: V1alpha1VirtualMachinePoolSelectors + :param selectors: The selectors of this V1beta1VirtualMachinePoolSelectionPolicy. + :type: V1beta1VirtualMachinePoolSelectors """ self._selectors = selectors @@ -79,10 +79,10 @@ def selectors(self, selectors): @property def sort_policy(self): """ - Gets the sort_policy of this V1alpha1VirtualMachinePoolSelectionPolicy. + Gets the sort_policy of this V1beta1VirtualMachinePoolSelectionPolicy. SortPolicy is a catch-all policy [AscendingOrder|DescendingOrder|Newest|Oldest|Random] - :return: The sort_policy of this V1alpha1VirtualMachinePoolSelectionPolicy. + :return: The sort_policy of this V1beta1VirtualMachinePoolSelectionPolicy. :rtype: str """ return self._sort_policy @@ -90,10 +90,10 @@ def sort_policy(self): @sort_policy.setter def sort_policy(self, sort_policy): """ - Sets the sort_policy of this V1alpha1VirtualMachinePoolSelectionPolicy. + Sets the sort_policy of this V1beta1VirtualMachinePoolSelectionPolicy. SortPolicy is a catch-all policy [AscendingOrder|DescendingOrder|Newest|Oldest|Random] - :param sort_policy: The sort_policy of this V1alpha1VirtualMachinePoolSelectionPolicy. + :param sort_policy: The sort_policy of this V1beta1VirtualMachinePoolSelectionPolicy. :type: str """ @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachinePoolSelectionPolicy): + if not isinstance(other, V1beta1VirtualMachinePoolSelectionPolicy): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_selectors.py b/kubevirt/models/v1beta1_virtual_machine_pool_selectors.py similarity index 84% rename from kubevirt/models/v1alpha1_virtual_machine_pool_selectors.py rename to kubevirt/models/v1beta1_virtual_machine_pool_selectors.py index 4a30c738..3208b0d9 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_selectors.py +++ b/kubevirt/models/v1beta1_virtual_machine_pool_selectors.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachinePoolSelectors(object): +class V1beta1VirtualMachinePoolSelectors(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class V1alpha1VirtualMachinePoolSelectors(object): def __init__(self, label_selector=None, node_selector_requirement_matcher=None): """ - V1alpha1VirtualMachinePoolSelectors - a model defined in Swagger + V1beta1VirtualMachinePoolSelectors - a model defined in Swagger """ self._label_selector = None @@ -56,10 +56,10 @@ def __init__(self, label_selector=None, node_selector_requirement_matcher=None): @property def label_selector(self): """ - Gets the label_selector of this V1alpha1VirtualMachinePoolSelectors. + Gets the label_selector of this V1beta1VirtualMachinePoolSelectors. LabelSelector is a list of label selector for VMs. - :return: The label_selector of this V1alpha1VirtualMachinePoolSelectors. + :return: The label_selector of this V1beta1VirtualMachinePoolSelectors. :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector """ return self._label_selector @@ -67,10 +67,10 @@ def label_selector(self): @label_selector.setter def label_selector(self, label_selector): """ - Sets the label_selector of this V1alpha1VirtualMachinePoolSelectors. + Sets the label_selector of this V1beta1VirtualMachinePoolSelectors. LabelSelector is a list of label selector for VMs. - :param label_selector: The label_selector of this V1alpha1VirtualMachinePoolSelectors. + :param label_selector: The label_selector of this V1beta1VirtualMachinePoolSelectors. :type: K8sIoApimachineryPkgApisMetaV1LabelSelector """ @@ -79,10 +79,10 @@ def label_selector(self, label_selector): @property def node_selector_requirement_matcher(self): """ - Gets the node_selector_requirement_matcher of this V1alpha1VirtualMachinePoolSelectors. + Gets the node_selector_requirement_matcher of this V1beta1VirtualMachinePoolSelectors. NodeSelectorRequirementMatcher is a list of node selector requirement for VMs. - :return: The node_selector_requirement_matcher of this V1alpha1VirtualMachinePoolSelectors. + :return: The node_selector_requirement_matcher of this V1beta1VirtualMachinePoolSelectors. :rtype: list[K8sIoApiCoreV1NodeSelectorRequirement] """ return self._node_selector_requirement_matcher @@ -90,10 +90,10 @@ def node_selector_requirement_matcher(self): @node_selector_requirement_matcher.setter def node_selector_requirement_matcher(self, node_selector_requirement_matcher): """ - Sets the node_selector_requirement_matcher of this V1alpha1VirtualMachinePoolSelectors. + Sets the node_selector_requirement_matcher of this V1beta1VirtualMachinePoolSelectors. NodeSelectorRequirementMatcher is a list of node selector requirement for VMs. - :param node_selector_requirement_matcher: The node_selector_requirement_matcher of this V1alpha1VirtualMachinePoolSelectors. + :param node_selector_requirement_matcher: The node_selector_requirement_matcher of this V1beta1VirtualMachinePoolSelectors. :type: list[K8sIoApiCoreV1NodeSelectorRequirement] """ @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachinePoolSelectors): + if not isinstance(other, V1beta1VirtualMachinePoolSelectors): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py b/kubevirt/models/v1beta1_virtual_machine_pool_spec.py similarity index 70% rename from kubevirt/models/v1alpha1_virtual_machine_pool_spec.py rename to kubevirt/models/v1beta1_virtual_machine_pool_spec.py index 3611a0d6..e1e019f4 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_pool_spec.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachinePoolSpec(object): +class V1beta1VirtualMachinePoolSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,15 +31,15 @@ class V1alpha1VirtualMachinePoolSpec(object): and the value is json key in definition. """ swagger_types = { - 'autohealing': 'V1alpha1VirtualMachinePoolAutohealingStrategy', + 'autohealing': 'V1beta1VirtualMachinePoolAutohealingStrategy', 'max_unavailable': 'K8sIoApimachineryPkgUtilIntstrIntOrString', - 'name_generation': 'V1alpha1VirtualMachinePoolNameGeneration', + 'name_generation': 'V1beta1VirtualMachinePoolNameGeneration', 'paused': 'bool', 'replicas': 'int', - 'scale_in_strategy': 'V1alpha1VirtualMachinePoolScaleInStrategy', + 'scale_in_strategy': 'V1beta1VirtualMachinePoolScaleInStrategy', 'selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', - 'update_strategy': 'V1alpha1VirtualMachinePoolUpdateStrategy', - 'virtual_machine_template': 'V1alpha1VirtualMachineTemplateSpec' + 'update_strategy': 'V1beta1VirtualMachinePoolUpdateStrategy', + 'virtual_machine_template': 'V1beta1VirtualMachineTemplateSpec' } attribute_map = { @@ -56,7 +56,7 @@ class V1alpha1VirtualMachinePoolSpec(object): def __init__(self, autohealing=None, max_unavailable=None, name_generation=None, paused=None, replicas=None, scale_in_strategy=None, selector=None, update_strategy=None, virtual_machine_template=None): """ - V1alpha1VirtualMachinePoolSpec - a model defined in Swagger + V1beta1VirtualMachinePoolSpec - a model defined in Swagger """ self._autohealing = None @@ -89,22 +89,22 @@ def __init__(self, autohealing=None, max_unavailable=None, name_generation=None, @property def autohealing(self): """ - Gets the autohealing of this V1alpha1VirtualMachinePoolSpec. + Gets the autohealing of this V1beta1VirtualMachinePoolSpec. Autohealing specifies when a VMpool should replace a failing VM with a reprovisioned instance - :return: The autohealing of this V1alpha1VirtualMachinePoolSpec. - :rtype: V1alpha1VirtualMachinePoolAutohealingStrategy + :return: The autohealing of this V1beta1VirtualMachinePoolSpec. + :rtype: V1beta1VirtualMachinePoolAutohealingStrategy """ return self._autohealing @autohealing.setter def autohealing(self, autohealing): """ - Sets the autohealing of this V1alpha1VirtualMachinePoolSpec. + Sets the autohealing of this V1beta1VirtualMachinePoolSpec. Autohealing specifies when a VMpool should replace a failing VM with a reprovisioned instance - :param autohealing: The autohealing of this V1alpha1VirtualMachinePoolSpec. - :type: V1alpha1VirtualMachinePoolAutohealingStrategy + :param autohealing: The autohealing of this V1beta1VirtualMachinePoolSpec. + :type: V1beta1VirtualMachinePoolAutohealingStrategy """ self._autohealing = autohealing @@ -112,10 +112,10 @@ def autohealing(self, autohealing): @property def max_unavailable(self): """ - Gets the max_unavailable of this V1alpha1VirtualMachinePoolSpec. + Gets the max_unavailable of this V1beta1VirtualMachinePoolSpec. (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. - :return: The max_unavailable of this V1alpha1VirtualMachinePoolSpec. + :return: The max_unavailable of this V1beta1VirtualMachinePoolSpec. :rtype: K8sIoApimachineryPkgUtilIntstrIntOrString """ return self._max_unavailable @@ -123,10 +123,10 @@ def max_unavailable(self): @max_unavailable.setter def max_unavailable(self, max_unavailable): """ - Sets the max_unavailable of this V1alpha1VirtualMachinePoolSpec. + Sets the max_unavailable of this V1beta1VirtualMachinePoolSpec. (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. - :param max_unavailable: The max_unavailable of this V1alpha1VirtualMachinePoolSpec. + :param max_unavailable: The max_unavailable of this V1beta1VirtualMachinePoolSpec. :type: K8sIoApimachineryPkgUtilIntstrIntOrString """ @@ -135,22 +135,22 @@ def max_unavailable(self, max_unavailable): @property def name_generation(self): """ - Gets the name_generation of this V1alpha1VirtualMachinePoolSpec. + Gets the name_generation of this V1beta1VirtualMachinePoolSpec. Options for the name generation in a pool. - :return: The name_generation of this V1alpha1VirtualMachinePoolSpec. - :rtype: V1alpha1VirtualMachinePoolNameGeneration + :return: The name_generation of this V1beta1VirtualMachinePoolSpec. + :rtype: V1beta1VirtualMachinePoolNameGeneration """ return self._name_generation @name_generation.setter def name_generation(self, name_generation): """ - Sets the name_generation of this V1alpha1VirtualMachinePoolSpec. + Sets the name_generation of this V1beta1VirtualMachinePoolSpec. Options for the name generation in a pool. - :param name_generation: The name_generation of this V1alpha1VirtualMachinePoolSpec. - :type: V1alpha1VirtualMachinePoolNameGeneration + :param name_generation: The name_generation of this V1beta1VirtualMachinePoolSpec. + :type: V1beta1VirtualMachinePoolNameGeneration """ self._name_generation = name_generation @@ -158,10 +158,10 @@ def name_generation(self, name_generation): @property def paused(self): """ - Gets the paused of this V1alpha1VirtualMachinePoolSpec. + Gets the paused of this V1beta1VirtualMachinePoolSpec. Indicates that the pool is paused. - :return: The paused of this V1alpha1VirtualMachinePoolSpec. + :return: The paused of this V1beta1VirtualMachinePoolSpec. :rtype: bool """ return self._paused @@ -169,10 +169,10 @@ def paused(self): @paused.setter def paused(self, paused): """ - Sets the paused of this V1alpha1VirtualMachinePoolSpec. + Sets the paused of this V1beta1VirtualMachinePoolSpec. Indicates that the pool is paused. - :param paused: The paused of this V1alpha1VirtualMachinePoolSpec. + :param paused: The paused of this V1beta1VirtualMachinePoolSpec. :type: bool """ @@ -181,10 +181,10 @@ def paused(self, paused): @property def replicas(self): """ - Gets the replicas of this V1alpha1VirtualMachinePoolSpec. + Gets the replicas of this V1beta1VirtualMachinePoolSpec. Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - :return: The replicas of this V1alpha1VirtualMachinePoolSpec. + :return: The replicas of this V1beta1VirtualMachinePoolSpec. :rtype: int """ return self._replicas @@ -192,10 +192,10 @@ def replicas(self): @replicas.setter def replicas(self, replicas): """ - Sets the replicas of this V1alpha1VirtualMachinePoolSpec. + Sets the replicas of this V1beta1VirtualMachinePoolSpec. Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - :param replicas: The replicas of this V1alpha1VirtualMachinePoolSpec. + :param replicas: The replicas of this V1beta1VirtualMachinePoolSpec. :type: int """ @@ -204,22 +204,22 @@ def replicas(self, replicas): @property def scale_in_strategy(self): """ - Gets the scale_in_strategy of this V1alpha1VirtualMachinePoolSpec. + Gets the scale_in_strategy of this V1beta1VirtualMachinePoolSpec. ScaleInStrategy specifies how the VMPool controller manages scaling in VMs within a VMPool - :return: The scale_in_strategy of this V1alpha1VirtualMachinePoolSpec. - :rtype: V1alpha1VirtualMachinePoolScaleInStrategy + :return: The scale_in_strategy of this V1beta1VirtualMachinePoolSpec. + :rtype: V1beta1VirtualMachinePoolScaleInStrategy """ return self._scale_in_strategy @scale_in_strategy.setter def scale_in_strategy(self, scale_in_strategy): """ - Sets the scale_in_strategy of this V1alpha1VirtualMachinePoolSpec. + Sets the scale_in_strategy of this V1beta1VirtualMachinePoolSpec. ScaleInStrategy specifies how the VMPool controller manages scaling in VMs within a VMPool - :param scale_in_strategy: The scale_in_strategy of this V1alpha1VirtualMachinePoolSpec. - :type: V1alpha1VirtualMachinePoolScaleInStrategy + :param scale_in_strategy: The scale_in_strategy of this V1beta1VirtualMachinePoolSpec. + :type: V1beta1VirtualMachinePoolScaleInStrategy """ self._scale_in_strategy = scale_in_strategy @@ -227,10 +227,10 @@ def scale_in_strategy(self, scale_in_strategy): @property def selector(self): """ - Gets the selector of this V1alpha1VirtualMachinePoolSpec. + Gets the selector of this V1beta1VirtualMachinePoolSpec. Label selector for pods. Existing Poolss whose pods are selected by this will be the ones affected by this deployment. - :return: The selector of this V1alpha1VirtualMachinePoolSpec. + :return: The selector of this V1beta1VirtualMachinePoolSpec. :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector """ return self._selector @@ -238,10 +238,10 @@ def selector(self): @selector.setter def selector(self, selector): """ - Sets the selector of this V1alpha1VirtualMachinePoolSpec. + Sets the selector of this V1beta1VirtualMachinePoolSpec. Label selector for pods. Existing Poolss whose pods are selected by this will be the ones affected by this deployment. - :param selector: The selector of this V1alpha1VirtualMachinePoolSpec. + :param selector: The selector of this V1beta1VirtualMachinePoolSpec. :type: K8sIoApimachineryPkgApisMetaV1LabelSelector """ if selector is None: @@ -252,22 +252,22 @@ def selector(self, selector): @property def update_strategy(self): """ - Gets the update_strategy of this V1alpha1VirtualMachinePoolSpec. + Gets the update_strategy of this V1beta1VirtualMachinePoolSpec. UpdateStrategy specifies how the VMPool controller manages updating VMs within a VMPool - :return: The update_strategy of this V1alpha1VirtualMachinePoolSpec. - :rtype: V1alpha1VirtualMachinePoolUpdateStrategy + :return: The update_strategy of this V1beta1VirtualMachinePoolSpec. + :rtype: V1beta1VirtualMachinePoolUpdateStrategy """ return self._update_strategy @update_strategy.setter def update_strategy(self, update_strategy): """ - Sets the update_strategy of this V1alpha1VirtualMachinePoolSpec. + Sets the update_strategy of this V1beta1VirtualMachinePoolSpec. UpdateStrategy specifies how the VMPool controller manages updating VMs within a VMPool - :param update_strategy: The update_strategy of this V1alpha1VirtualMachinePoolSpec. - :type: V1alpha1VirtualMachinePoolUpdateStrategy + :param update_strategy: The update_strategy of this V1beta1VirtualMachinePoolSpec. + :type: V1beta1VirtualMachinePoolUpdateStrategy """ self._update_strategy = update_strategy @@ -275,22 +275,22 @@ def update_strategy(self, update_strategy): @property def virtual_machine_template(self): """ - Gets the virtual_machine_template of this V1alpha1VirtualMachinePoolSpec. + Gets the virtual_machine_template of this V1beta1VirtualMachinePoolSpec. Template describes the VM that will be created. - :return: The virtual_machine_template of this V1alpha1VirtualMachinePoolSpec. - :rtype: V1alpha1VirtualMachineTemplateSpec + :return: The virtual_machine_template of this V1beta1VirtualMachinePoolSpec. + :rtype: V1beta1VirtualMachineTemplateSpec """ return self._virtual_machine_template @virtual_machine_template.setter def virtual_machine_template(self, virtual_machine_template): """ - Sets the virtual_machine_template of this V1alpha1VirtualMachinePoolSpec. + Sets the virtual_machine_template of this V1beta1VirtualMachinePoolSpec. Template describes the VM that will be created. - :param virtual_machine_template: The virtual_machine_template of this V1alpha1VirtualMachinePoolSpec. - :type: V1alpha1VirtualMachineTemplateSpec + :param virtual_machine_template: The virtual_machine_template of this V1beta1VirtualMachinePoolSpec. + :type: V1beta1VirtualMachineTemplateSpec """ if virtual_machine_template is None: raise ValueError("Invalid value for `virtual_machine_template`, must not be `None`") @@ -339,7 +339,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachinePoolSpec): + if not isinstance(other, V1beta1VirtualMachinePoolSpec): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_status.py b/kubevirt/models/v1beta1_virtual_machine_pool_status.py similarity index 72% rename from kubevirt/models/v1alpha1_virtual_machine_pool_status.py rename to kubevirt/models/v1beta1_virtual_machine_pool_status.py index cd95740c..71f02271 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_status.py +++ b/kubevirt/models/v1beta1_virtual_machine_pool_status.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachinePoolStatus(object): +class V1beta1VirtualMachinePoolStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,7 +31,7 @@ class V1alpha1VirtualMachinePoolStatus(object): and the value is json key in definition. """ swagger_types = { - 'conditions': 'list[V1alpha1VirtualMachinePoolCondition]', + 'conditions': 'list[V1beta1VirtualMachinePoolCondition]', 'label_selector': 'str', 'ready_replicas': 'int', 'replicas': 'int' @@ -46,7 +46,7 @@ class V1alpha1VirtualMachinePoolStatus(object): def __init__(self, conditions=None, label_selector=None, ready_replicas=None, replicas=None): """ - V1alpha1VirtualMachinePoolStatus - a model defined in Swagger + V1beta1VirtualMachinePoolStatus - a model defined in Swagger """ self._conditions = None @@ -66,20 +66,20 @@ def __init__(self, conditions=None, label_selector=None, ready_replicas=None, re @property def conditions(self): """ - Gets the conditions of this V1alpha1VirtualMachinePoolStatus. + Gets the conditions of this V1beta1VirtualMachinePoolStatus. - :return: The conditions of this V1alpha1VirtualMachinePoolStatus. - :rtype: list[V1alpha1VirtualMachinePoolCondition] + :return: The conditions of this V1beta1VirtualMachinePoolStatus. + :rtype: list[V1beta1VirtualMachinePoolCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): """ - Sets the conditions of this V1alpha1VirtualMachinePoolStatus. + Sets the conditions of this V1beta1VirtualMachinePoolStatus. - :param conditions: The conditions of this V1alpha1VirtualMachinePoolStatus. - :type: list[V1alpha1VirtualMachinePoolCondition] + :param conditions: The conditions of this V1beta1VirtualMachinePoolStatus. + :type: list[V1beta1VirtualMachinePoolCondition] """ self._conditions = conditions @@ -87,10 +87,10 @@ def conditions(self, conditions): @property def label_selector(self): """ - Gets the label_selector of this V1alpha1VirtualMachinePoolStatus. + Gets the label_selector of this V1beta1VirtualMachinePoolStatus. Canonical form of the label selector for HPA which consumes it through the scale subresource. - :return: The label_selector of this V1alpha1VirtualMachinePoolStatus. + :return: The label_selector of this V1beta1VirtualMachinePoolStatus. :rtype: str """ return self._label_selector @@ -98,10 +98,10 @@ def label_selector(self): @label_selector.setter def label_selector(self, label_selector): """ - Sets the label_selector of this V1alpha1VirtualMachinePoolStatus. + Sets the label_selector of this V1beta1VirtualMachinePoolStatus. Canonical form of the label selector for HPA which consumes it through the scale subresource. - :param label_selector: The label_selector of this V1alpha1VirtualMachinePoolStatus. + :param label_selector: The label_selector of this V1beta1VirtualMachinePoolStatus. :type: str """ @@ -110,9 +110,9 @@ def label_selector(self, label_selector): @property def ready_replicas(self): """ - Gets the ready_replicas of this V1alpha1VirtualMachinePoolStatus. + Gets the ready_replicas of this V1beta1VirtualMachinePoolStatus. - :return: The ready_replicas of this V1alpha1VirtualMachinePoolStatus. + :return: The ready_replicas of this V1beta1VirtualMachinePoolStatus. :rtype: int """ return self._ready_replicas @@ -120,9 +120,9 @@ def ready_replicas(self): @ready_replicas.setter def ready_replicas(self, ready_replicas): """ - Sets the ready_replicas of this V1alpha1VirtualMachinePoolStatus. + Sets the ready_replicas of this V1beta1VirtualMachinePoolStatus. - :param ready_replicas: The ready_replicas of this V1alpha1VirtualMachinePoolStatus. + :param ready_replicas: The ready_replicas of this V1beta1VirtualMachinePoolStatus. :type: int """ @@ -131,9 +131,9 @@ def ready_replicas(self, ready_replicas): @property def replicas(self): """ - Gets the replicas of this V1alpha1VirtualMachinePoolStatus. + Gets the replicas of this V1beta1VirtualMachinePoolStatus. - :return: The replicas of this V1alpha1VirtualMachinePoolStatus. + :return: The replicas of this V1beta1VirtualMachinePoolStatus. :rtype: int """ return self._replicas @@ -141,9 +141,9 @@ def replicas(self): @replicas.setter def replicas(self, replicas): """ - Sets the replicas of this V1alpha1VirtualMachinePoolStatus. + Sets the replicas of this V1beta1VirtualMachinePoolStatus. - :param replicas: The replicas of this V1alpha1VirtualMachinePoolStatus. + :param replicas: The replicas of this V1beta1VirtualMachinePoolStatus. :type: int """ @@ -191,7 +191,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachinePoolStatus): + if not isinstance(other, V1beta1VirtualMachinePoolStatus): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_unmanaged_strategy.py b/kubevirt/models/v1beta1_virtual_machine_pool_unmanaged_strategy.py similarity index 91% rename from kubevirt/models/v1alpha1_virtual_machine_pool_unmanaged_strategy.py rename to kubevirt/models/v1beta1_virtual_machine_pool_unmanaged_strategy.py index 7b7493ca..f18d9771 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_unmanaged_strategy.py +++ b/kubevirt/models/v1beta1_virtual_machine_pool_unmanaged_strategy.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachinePoolUnmanagedStrategy(object): +class V1beta1VirtualMachinePoolUnmanagedStrategy(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,7 +40,7 @@ class V1alpha1VirtualMachinePoolUnmanagedStrategy(object): def __init__(self): """ - V1alpha1VirtualMachinePoolUnmanagedStrategy - a model defined in Swagger + V1beta1VirtualMachinePoolUnmanagedStrategy - a model defined in Swagger """ @@ -87,7 +87,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachinePoolUnmanagedStrategy): + if not isinstance(other, V1beta1VirtualMachinePoolUnmanagedStrategy): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_update_strategy.py b/kubevirt/models/v1beta1_virtual_machine_pool_update_strategy.py similarity index 69% rename from kubevirt/models/v1alpha1_virtual_machine_pool_update_strategy.py rename to kubevirt/models/v1beta1_virtual_machine_pool_update_strategy.py index 0b4a912c..d87de502 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_update_strategy.py +++ b/kubevirt/models/v1beta1_virtual_machine_pool_update_strategy.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachinePoolUpdateStrategy(object): +class V1beta1VirtualMachinePoolUpdateStrategy(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,9 +31,9 @@ class V1alpha1VirtualMachinePoolUpdateStrategy(object): and the value is json key in definition. """ swagger_types = { - 'opportunistic': 'V1alpha1VirtualMachineOpportunisticUpdateStrategy', - 'proactive': 'V1alpha1VirtualMachinePoolProactiveUpdateStrategy', - 'unmanaged': 'V1alpha1VirtualMachinePoolUnmanagedStrategy' + 'opportunistic': 'V1beta1VirtualMachineOpportunisticUpdateStrategy', + 'proactive': 'V1beta1VirtualMachinePoolProactiveUpdateStrategy', + 'unmanaged': 'V1beta1VirtualMachinePoolUnmanagedStrategy' } attribute_map = { @@ -44,7 +44,7 @@ class V1alpha1VirtualMachinePoolUpdateStrategy(object): def __init__(self, opportunistic=None, proactive=None, unmanaged=None): """ - V1alpha1VirtualMachinePoolUpdateStrategy - a model defined in Swagger + V1beta1VirtualMachinePoolUpdateStrategy - a model defined in Swagger """ self._opportunistic = None @@ -61,22 +61,22 @@ def __init__(self, opportunistic=None, proactive=None, unmanaged=None): @property def opportunistic(self): """ - Gets the opportunistic of this V1alpha1VirtualMachinePoolUpdateStrategy. + Gets the opportunistic of this V1beta1VirtualMachinePoolUpdateStrategy. Opportunistic update only gets applied to the VM, VMI is updated naturally upon the restart. Whereas proactive it applies both the VM and VMI right away. - :return: The opportunistic of this V1alpha1VirtualMachinePoolUpdateStrategy. - :rtype: V1alpha1VirtualMachineOpportunisticUpdateStrategy + :return: The opportunistic of this V1beta1VirtualMachinePoolUpdateStrategy. + :rtype: V1beta1VirtualMachineOpportunisticUpdateStrategy """ return self._opportunistic @opportunistic.setter def opportunistic(self, opportunistic): """ - Sets the opportunistic of this V1alpha1VirtualMachinePoolUpdateStrategy. + Sets the opportunistic of this V1beta1VirtualMachinePoolUpdateStrategy. Opportunistic update only gets applied to the VM, VMI is updated naturally upon the restart. Whereas proactive it applies both the VM and VMI right away. - :param opportunistic: The opportunistic of this V1alpha1VirtualMachinePoolUpdateStrategy. - :type: V1alpha1VirtualMachineOpportunisticUpdateStrategy + :param opportunistic: The opportunistic of this V1beta1VirtualMachinePoolUpdateStrategy. + :type: V1beta1VirtualMachineOpportunisticUpdateStrategy """ self._opportunistic = opportunistic @@ -84,22 +84,22 @@ def opportunistic(self, opportunistic): @property def proactive(self): """ - Gets the proactive of this V1alpha1VirtualMachinePoolUpdateStrategy. + Gets the proactive of this V1beta1VirtualMachinePoolUpdateStrategy. Proactive update by forcing the VMs to restart during update - :return: The proactive of this V1alpha1VirtualMachinePoolUpdateStrategy. - :rtype: V1alpha1VirtualMachinePoolProactiveUpdateStrategy + :return: The proactive of this V1beta1VirtualMachinePoolUpdateStrategy. + :rtype: V1beta1VirtualMachinePoolProactiveUpdateStrategy """ return self._proactive @proactive.setter def proactive(self, proactive): """ - Sets the proactive of this V1alpha1VirtualMachinePoolUpdateStrategy. + Sets the proactive of this V1beta1VirtualMachinePoolUpdateStrategy. Proactive update by forcing the VMs to restart during update - :param proactive: The proactive of this V1alpha1VirtualMachinePoolUpdateStrategy. - :type: V1alpha1VirtualMachinePoolProactiveUpdateStrategy + :param proactive: The proactive of this V1beta1VirtualMachinePoolUpdateStrategy. + :type: V1beta1VirtualMachinePoolProactiveUpdateStrategy """ self._proactive = proactive @@ -107,22 +107,22 @@ def proactive(self, proactive): @property def unmanaged(self): """ - Gets the unmanaged of this V1alpha1VirtualMachinePoolUpdateStrategy. + Gets the unmanaged of this V1beta1VirtualMachinePoolUpdateStrategy. Unmanaged indicates that no automatic update of VMs within a VMPool is performed. When this is set, the VMPool controller will not update the VMs within the pool. - :return: The unmanaged of this V1alpha1VirtualMachinePoolUpdateStrategy. - :rtype: V1alpha1VirtualMachinePoolUnmanagedStrategy + :return: The unmanaged of this V1beta1VirtualMachinePoolUpdateStrategy. + :rtype: V1beta1VirtualMachinePoolUnmanagedStrategy """ return self._unmanaged @unmanaged.setter def unmanaged(self, unmanaged): """ - Sets the unmanaged of this V1alpha1VirtualMachinePoolUpdateStrategy. + Sets the unmanaged of this V1beta1VirtualMachinePoolUpdateStrategy. Unmanaged indicates that no automatic update of VMs within a VMPool is performed. When this is set, the VMPool controller will not update the VMs within the pool. - :param unmanaged: The unmanaged of this V1alpha1VirtualMachinePoolUpdateStrategy. - :type: V1alpha1VirtualMachinePoolUnmanagedStrategy + :param unmanaged: The unmanaged of this V1beta1VirtualMachinePoolUpdateStrategy. + :type: V1beta1VirtualMachinePoolUnmanagedStrategy """ self._unmanaged = unmanaged @@ -169,7 +169,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachinePoolUpdateStrategy): + if not isinstance(other, V1beta1VirtualMachinePoolUpdateStrategy): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_template_spec.py b/kubevirt/models/v1beta1_virtual_machine_template_spec.py similarity index 81% rename from kubevirt/models/v1alpha1_virtual_machine_template_spec.py rename to kubevirt/models/v1beta1_virtual_machine_template_spec.py index bb82ef31..9d57ceb2 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_template_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_template_spec.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineTemplateSpec(object): +class V1beta1VirtualMachineTemplateSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class V1alpha1VirtualMachineTemplateSpec(object): def __init__(self, metadata=None, spec=None): """ - V1alpha1VirtualMachineTemplateSpec - a model defined in Swagger + V1beta1VirtualMachineTemplateSpec - a model defined in Swagger """ self._metadata = None @@ -56,9 +56,9 @@ def __init__(self, metadata=None, spec=None): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachineTemplateSpec. + Gets the metadata of this V1beta1VirtualMachineTemplateSpec. - :return: The metadata of this V1alpha1VirtualMachineTemplateSpec. + :return: The metadata of this V1beta1VirtualMachineTemplateSpec. :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -66,9 +66,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachineTemplateSpec. + Sets the metadata of this V1beta1VirtualMachineTemplateSpec. - :param metadata: The metadata of this V1alpha1VirtualMachineTemplateSpec. + :param metadata: The metadata of this V1beta1VirtualMachineTemplateSpec. :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ @@ -77,10 +77,10 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1alpha1VirtualMachineTemplateSpec. + Gets the spec of this V1beta1VirtualMachineTemplateSpec. VirtualMachineSpec contains the VirtualMachine specification. - :return: The spec of this V1alpha1VirtualMachineTemplateSpec. + :return: The spec of this V1beta1VirtualMachineTemplateSpec. :rtype: V1VirtualMachineSpec """ return self._spec @@ -88,10 +88,10 @@ def spec(self): @spec.setter def spec(self, spec): """ - Sets the spec of this V1alpha1VirtualMachineTemplateSpec. + Sets the spec of this V1beta1VirtualMachineTemplateSpec. VirtualMachineSpec contains the VirtualMachine specification. - :param spec: The spec of this V1alpha1VirtualMachineTemplateSpec. + :param spec: The spec of this V1beta1VirtualMachineTemplateSpec. :type: V1VirtualMachineSpec """ @@ -139,7 +139,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineTemplateSpec): + if not isinstance(other, V1beta1VirtualMachineTemplateSpec): return False return self.__dict__ == other.__dict__ diff --git a/setup.py b/setup.py index 9ff84624..effbde53 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.7.0-beta.0-246-gc363dbe207" +VERSION = "v1.7.0-beta.0-252-g8282b1a5d9" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 826896bc..a62f6e67 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.7.0-beta.0-246-gc363dbe207" +"packageVersion": "v1.7.0-beta.0-252-g8282b1a5d9" } diff --git a/test/test_default_api.py b/test/test_default_api.py index d0a5034f..2384ac5f 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -559,9 +559,9 @@ def test_get_api_resources_migrations_kubevirt_io_v1alpha1(self): """ pass - def test_get_api_resources_pool_kubevirt_io_v1alpha1(self): + def test_get_api_resources_pool_kubevirt_io_v1beta1(self): """ - Test case for get_api_resources_pool_kubevirt_io_v1alpha1 + Test case for get_api_resources_pool_kubevirt_io_v1beta1 """ diff --git a/test/test_v1alpha1_virtual_machine_pool_opportunistic_scale_in_strategy.py b/test/test_v1alpha1_virtual_machine_pool_opportunistic_scale_in_strategy.py deleted file mode 100644 index 6f8a9376..00000000 --- a/test/test_v1alpha1_virtual_machine_pool_opportunistic_scale_in_strategy.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_pool_opportunistic_scale_in_strategy import V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy - - -class TestV1alpha1VirtualMachinePoolOpportunisticScaleInStrategy(unittest.TestCase): - """ V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachinePoolOpportunisticScaleInStrategy(self): - """ - Test V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_pool_opportunistic_scale_in_strategy.V1alpha1VirtualMachinePoolOpportunisticScaleInStrategy() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py b/test/test_v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py deleted file mode 100644 index 2d72cf9c..00000000 --- a/test/test_v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_pool_proactive_scale_in_strategy import V1alpha1VirtualMachinePoolProactiveScaleInStrategy - - -class TestV1alpha1VirtualMachinePoolProactiveScaleInStrategy(unittest.TestCase): - """ V1alpha1VirtualMachinePoolProactiveScaleInStrategy unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachinePoolProactiveScaleInStrategy(self): - """ - Test V1alpha1VirtualMachinePoolProactiveScaleInStrategy - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.V1alpha1VirtualMachinePoolProactiveScaleInStrategy() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_pool_scale_in_strategy.py b/test/test_v1alpha1_virtual_machine_pool_scale_in_strategy.py deleted file mode 100644 index d0f0dadc..00000000 --- a/test/test_v1alpha1_virtual_machine_pool_scale_in_strategy.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_pool_scale_in_strategy import V1alpha1VirtualMachinePoolScaleInStrategy - - -class TestV1alpha1VirtualMachinePoolScaleInStrategy(unittest.TestCase): - """ V1alpha1VirtualMachinePoolScaleInStrategy unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachinePoolScaleInStrategy(self): - """ - Test V1alpha1VirtualMachinePoolScaleInStrategy - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_pool_scale_in_strategy.V1alpha1VirtualMachinePoolScaleInStrategy() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_pool_selection_policy.py b/test/test_v1alpha1_virtual_machine_pool_selection_policy.py deleted file mode 100644 index 1852bb8f..00000000 --- a/test/test_v1alpha1_virtual_machine_pool_selection_policy.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_pool_selection_policy import V1alpha1VirtualMachinePoolSelectionPolicy - - -class TestV1alpha1VirtualMachinePoolSelectionPolicy(unittest.TestCase): - """ V1alpha1VirtualMachinePoolSelectionPolicy unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachinePoolSelectionPolicy(self): - """ - Test V1alpha1VirtualMachinePoolSelectionPolicy - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_pool_selection_policy.V1alpha1VirtualMachinePoolSelectionPolicy() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_pool_unmanaged_strategy.py b/test/test_v1alpha1_virtual_machine_pool_unmanaged_strategy.py deleted file mode 100644 index 37098aa3..00000000 --- a/test/test_v1alpha1_virtual_machine_pool_unmanaged_strategy.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_pool_unmanaged_strategy import V1alpha1VirtualMachinePoolUnmanagedStrategy - - -class TestV1alpha1VirtualMachinePoolUnmanagedStrategy(unittest.TestCase): - """ V1alpha1VirtualMachinePoolUnmanagedStrategy unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachinePoolUnmanagedStrategy(self): - """ - Test V1alpha1VirtualMachinePoolUnmanagedStrategy - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_pool_unmanaged_strategy.V1alpha1VirtualMachinePoolUnmanagedStrategy() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_pool_autohealing_strategy.py b/test/test_v1beta1_virtual_machine_opportunistic_update_strategy.py similarity index 52% rename from test/test_v1alpha1_virtual_machine_pool_autohealing_strategy.py rename to test/test_v1beta1_virtual_machine_opportunistic_update_strategy.py index 1b24a394..784ca772 100644 --- a/test/test_v1alpha1_virtual_machine_pool_autohealing_strategy.py +++ b/test/test_v1beta1_virtual_machine_opportunistic_update_strategy.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_pool_autohealing_strategy import V1alpha1VirtualMachinePoolAutohealingStrategy +from kubevirt.models.v1beta1_virtual_machine_opportunistic_update_strategy import V1beta1VirtualMachineOpportunisticUpdateStrategy -class TestV1alpha1VirtualMachinePoolAutohealingStrategy(unittest.TestCase): - """ V1alpha1VirtualMachinePoolAutohealingStrategy unit test stubs """ +class TestV1beta1VirtualMachineOpportunisticUpdateStrategy(unittest.TestCase): + """ V1beta1VirtualMachineOpportunisticUpdateStrategy unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachinePoolAutohealingStrategy(self): + def testV1beta1VirtualMachineOpportunisticUpdateStrategy(self): """ - Test V1alpha1VirtualMachinePoolAutohealingStrategy + Test V1beta1VirtualMachineOpportunisticUpdateStrategy """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_pool_autohealing_strategy.V1alpha1VirtualMachinePoolAutohealingStrategy() + #model = kubevirt.models.v1beta1_virtual_machine_opportunistic_update_strategy.V1beta1VirtualMachineOpportunisticUpdateStrategy() pass diff --git a/test/test_v1alpha1_virtual_machine_pool.py b/test/test_v1beta1_virtual_machine_pool.py similarity index 62% rename from test/test_v1alpha1_virtual_machine_pool.py rename to test/test_v1beta1_virtual_machine_pool.py index 16cd154b..2b61c87f 100644 --- a/test/test_v1alpha1_virtual_machine_pool.py +++ b/test/test_v1beta1_virtual_machine_pool.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_pool import V1alpha1VirtualMachinePool +from kubevirt.models.v1beta1_virtual_machine_pool import V1beta1VirtualMachinePool -class TestV1alpha1VirtualMachinePool(unittest.TestCase): - """ V1alpha1VirtualMachinePool unit test stubs """ +class TestV1beta1VirtualMachinePool(unittest.TestCase): + """ V1beta1VirtualMachinePool unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachinePool(self): + def testV1beta1VirtualMachinePool(self): """ - Test V1alpha1VirtualMachinePool + Test V1beta1VirtualMachinePool """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_pool.V1alpha1VirtualMachinePool() + #model = kubevirt.models.v1beta1_virtual_machine_pool.V1beta1VirtualMachinePool() pass diff --git a/test/test_v1beta1_virtual_machine_pool_autohealing_strategy.py b/test/test_v1beta1_virtual_machine_pool_autohealing_strategy.py new file mode 100644 index 00000000..69a78f55 --- /dev/null +++ b/test/test_v1beta1_virtual_machine_pool_autohealing_strategy.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_pool_autohealing_strategy import V1beta1VirtualMachinePoolAutohealingStrategy + + +class TestV1beta1VirtualMachinePoolAutohealingStrategy(unittest.TestCase): + """ V1beta1VirtualMachinePoolAutohealingStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachinePoolAutohealingStrategy(self): + """ + Test V1beta1VirtualMachinePoolAutohealingStrategy + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_pool_autohealing_strategy.V1beta1VirtualMachinePoolAutohealingStrategy() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_template_spec.py b/test/test_v1beta1_virtual_machine_pool_condition.py similarity index 58% rename from test/test_v1alpha1_virtual_machine_template_spec.py rename to test/test_v1beta1_virtual_machine_pool_condition.py index 6e6a80d1..19c5869f 100644 --- a/test/test_v1alpha1_virtual_machine_template_spec.py +++ b/test/test_v1beta1_virtual_machine_pool_condition.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_template_spec import V1alpha1VirtualMachineTemplateSpec +from kubevirt.models.v1beta1_virtual_machine_pool_condition import V1beta1VirtualMachinePoolCondition -class TestV1alpha1VirtualMachineTemplateSpec(unittest.TestCase): - """ V1alpha1VirtualMachineTemplateSpec unit test stubs """ +class TestV1beta1VirtualMachinePoolCondition(unittest.TestCase): + """ V1beta1VirtualMachinePoolCondition unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachineTemplateSpec(self): + def testV1beta1VirtualMachinePoolCondition(self): """ - Test V1alpha1VirtualMachineTemplateSpec + Test V1beta1VirtualMachinePoolCondition """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_template_spec.V1alpha1VirtualMachineTemplateSpec() + #model = kubevirt.models.v1beta1_virtual_machine_pool_condition.V1beta1VirtualMachinePoolCondition() pass diff --git a/test/test_v1alpha1_virtual_machine_pool_list.py b/test/test_v1beta1_virtual_machine_pool_list.py similarity index 60% rename from test/test_v1alpha1_virtual_machine_pool_list.py rename to test/test_v1beta1_virtual_machine_pool_list.py index af955975..2db2ddef 100644 --- a/test/test_v1alpha1_virtual_machine_pool_list.py +++ b/test/test_v1beta1_virtual_machine_pool_list.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList +from kubevirt.models.v1beta1_virtual_machine_pool_list import V1beta1VirtualMachinePoolList -class TestV1alpha1VirtualMachinePoolList(unittest.TestCase): - """ V1alpha1VirtualMachinePoolList unit test stubs """ +class TestV1beta1VirtualMachinePoolList(unittest.TestCase): + """ V1beta1VirtualMachinePoolList unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachinePoolList(self): + def testV1beta1VirtualMachinePoolList(self): """ - Test V1alpha1VirtualMachinePoolList + Test V1beta1VirtualMachinePoolList """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_pool_list.V1alpha1VirtualMachinePoolList() + #model = kubevirt.models.v1beta1_virtual_machine_pool_list.V1beta1VirtualMachinePoolList() pass diff --git a/test/test_v1alpha1_virtual_machine_pool_condition.py b/test/test_v1beta1_virtual_machine_pool_name_generation.py similarity index 56% rename from test/test_v1alpha1_virtual_machine_pool_condition.py rename to test/test_v1beta1_virtual_machine_pool_name_generation.py index de3c864c..11bb2926 100644 --- a/test/test_v1alpha1_virtual_machine_pool_condition.py +++ b/test/test_v1beta1_virtual_machine_pool_name_generation.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition +from kubevirt.models.v1beta1_virtual_machine_pool_name_generation import V1beta1VirtualMachinePoolNameGeneration -class TestV1alpha1VirtualMachinePoolCondition(unittest.TestCase): - """ V1alpha1VirtualMachinePoolCondition unit test stubs """ +class TestV1beta1VirtualMachinePoolNameGeneration(unittest.TestCase): + """ V1beta1VirtualMachinePoolNameGeneration unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachinePoolCondition(self): + def testV1beta1VirtualMachinePoolNameGeneration(self): """ - Test V1alpha1VirtualMachinePoolCondition + Test V1beta1VirtualMachinePoolNameGeneration """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_pool_condition.V1alpha1VirtualMachinePoolCondition() + #model = kubevirt.models.v1beta1_virtual_machine_pool_name_generation.V1beta1VirtualMachinePoolNameGeneration() pass diff --git a/test/test_v1alpha1_virtual_machine_opportunistic_update_strategy.py b/test/test_v1beta1_virtual_machine_pool_opportunistic_scale_in_strategy.py similarity index 50% rename from test/test_v1alpha1_virtual_machine_opportunistic_update_strategy.py rename to test/test_v1beta1_virtual_machine_pool_opportunistic_scale_in_strategy.py index 21550556..8931cf22 100644 --- a/test/test_v1alpha1_virtual_machine_opportunistic_update_strategy.py +++ b/test/test_v1beta1_virtual_machine_pool_opportunistic_scale_in_strategy.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_opportunistic_update_strategy import V1alpha1VirtualMachineOpportunisticUpdateStrategy +from kubevirt.models.v1beta1_virtual_machine_pool_opportunistic_scale_in_strategy import V1beta1VirtualMachinePoolOpportunisticScaleInStrategy -class TestV1alpha1VirtualMachineOpportunisticUpdateStrategy(unittest.TestCase): - """ V1alpha1VirtualMachineOpportunisticUpdateStrategy unit test stubs """ +class TestV1beta1VirtualMachinePoolOpportunisticScaleInStrategy(unittest.TestCase): + """ V1beta1VirtualMachinePoolOpportunisticScaleInStrategy unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachineOpportunisticUpdateStrategy(self): + def testV1beta1VirtualMachinePoolOpportunisticScaleInStrategy(self): """ - Test V1alpha1VirtualMachineOpportunisticUpdateStrategy + Test V1beta1VirtualMachinePoolOpportunisticScaleInStrategy """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_opportunistic_update_strategy.V1alpha1VirtualMachineOpportunisticUpdateStrategy() + #model = kubevirt.models.v1beta1_virtual_machine_pool_opportunistic_scale_in_strategy.V1beta1VirtualMachinePoolOpportunisticScaleInStrategy() pass diff --git a/test/test_v1alpha1_virtual_machine_pool_proactive_update_strategy.py b/test/test_v1beta1_virtual_machine_pool_proactive_scale_in_strategy.py similarity index 55% rename from test/test_v1alpha1_virtual_machine_pool_proactive_update_strategy.py rename to test/test_v1beta1_virtual_machine_pool_proactive_scale_in_strategy.py index 0a477ad4..e18ab5cf 100644 --- a/test/test_v1alpha1_virtual_machine_pool_proactive_update_strategy.py +++ b/test/test_v1beta1_virtual_machine_pool_proactive_scale_in_strategy.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_pool_proactive_update_strategy import V1alpha1VirtualMachinePoolProactiveUpdateStrategy +from kubevirt.models.v1beta1_virtual_machine_pool_proactive_scale_in_strategy import V1beta1VirtualMachinePoolProactiveScaleInStrategy -class TestV1alpha1VirtualMachinePoolProactiveUpdateStrategy(unittest.TestCase): - """ V1alpha1VirtualMachinePoolProactiveUpdateStrategy unit test stubs """ +class TestV1beta1VirtualMachinePoolProactiveScaleInStrategy(unittest.TestCase): + """ V1beta1VirtualMachinePoolProactiveScaleInStrategy unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachinePoolProactiveUpdateStrategy(self): + def testV1beta1VirtualMachinePoolProactiveScaleInStrategy(self): """ - Test V1alpha1VirtualMachinePoolProactiveUpdateStrategy + Test V1beta1VirtualMachinePoolProactiveScaleInStrategy """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_pool_proactive_update_strategy.V1alpha1VirtualMachinePoolProactiveUpdateStrategy() + #model = kubevirt.models.v1beta1_virtual_machine_pool_proactive_scale_in_strategy.V1beta1VirtualMachinePoolProactiveScaleInStrategy() pass diff --git a/test/test_v1beta1_virtual_machine_pool_proactive_update_strategy.py b/test/test_v1beta1_virtual_machine_pool_proactive_update_strategy.py new file mode 100644 index 00000000..94bd926a --- /dev/null +++ b/test/test_v1beta1_virtual_machine_pool_proactive_update_strategy.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_pool_proactive_update_strategy import V1beta1VirtualMachinePoolProactiveUpdateStrategy + + +class TestV1beta1VirtualMachinePoolProactiveUpdateStrategy(unittest.TestCase): + """ V1beta1VirtualMachinePoolProactiveUpdateStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachinePoolProactiveUpdateStrategy(self): + """ + Test V1beta1VirtualMachinePoolProactiveUpdateStrategy + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_pool_proactive_update_strategy.V1beta1VirtualMachinePoolProactiveUpdateStrategy() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_pool_name_generation.py b/test/test_v1beta1_virtual_machine_pool_scale_in_strategy.py similarity index 56% rename from test/test_v1alpha1_virtual_machine_pool_name_generation.py rename to test/test_v1beta1_virtual_machine_pool_scale_in_strategy.py index 3b62deda..908fa09c 100644 --- a/test/test_v1alpha1_virtual_machine_pool_name_generation.py +++ b/test/test_v1beta1_virtual_machine_pool_scale_in_strategy.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_pool_name_generation import V1alpha1VirtualMachinePoolNameGeneration +from kubevirt.models.v1beta1_virtual_machine_pool_scale_in_strategy import V1beta1VirtualMachinePoolScaleInStrategy -class TestV1alpha1VirtualMachinePoolNameGeneration(unittest.TestCase): - """ V1alpha1VirtualMachinePoolNameGeneration unit test stubs """ +class TestV1beta1VirtualMachinePoolScaleInStrategy(unittest.TestCase): + """ V1beta1VirtualMachinePoolScaleInStrategy unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachinePoolNameGeneration(self): + def testV1beta1VirtualMachinePoolScaleInStrategy(self): """ - Test V1alpha1VirtualMachinePoolNameGeneration + Test V1beta1VirtualMachinePoolScaleInStrategy """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_pool_name_generation.V1alpha1VirtualMachinePoolNameGeneration() + #model = kubevirt.models.v1beta1_virtual_machine_pool_scale_in_strategy.V1beta1VirtualMachinePoolScaleInStrategy() pass diff --git a/test/test_v1alpha1_virtual_machine_pool_update_strategy.py b/test/test_v1beta1_virtual_machine_pool_selection_policy.py similarity index 56% rename from test/test_v1alpha1_virtual_machine_pool_update_strategy.py rename to test/test_v1beta1_virtual_machine_pool_selection_policy.py index a1ac066a..2ff63da9 100644 --- a/test/test_v1alpha1_virtual_machine_pool_update_strategy.py +++ b/test/test_v1beta1_virtual_machine_pool_selection_policy.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_pool_update_strategy import V1alpha1VirtualMachinePoolUpdateStrategy +from kubevirt.models.v1beta1_virtual_machine_pool_selection_policy import V1beta1VirtualMachinePoolSelectionPolicy -class TestV1alpha1VirtualMachinePoolUpdateStrategy(unittest.TestCase): - """ V1alpha1VirtualMachinePoolUpdateStrategy unit test stubs """ +class TestV1beta1VirtualMachinePoolSelectionPolicy(unittest.TestCase): + """ V1beta1VirtualMachinePoolSelectionPolicy unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachinePoolUpdateStrategy(self): + def testV1beta1VirtualMachinePoolSelectionPolicy(self): """ - Test V1alpha1VirtualMachinePoolUpdateStrategy + Test V1beta1VirtualMachinePoolSelectionPolicy """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_pool_update_strategy.V1alpha1VirtualMachinePoolUpdateStrategy() + #model = kubevirt.models.v1beta1_virtual_machine_pool_selection_policy.V1beta1VirtualMachinePoolSelectionPolicy() pass diff --git a/test/test_v1beta1_virtual_machine_pool_selectors.py b/test/test_v1beta1_virtual_machine_pool_selectors.py new file mode 100644 index 00000000..73c8dc51 --- /dev/null +++ b/test/test_v1beta1_virtual_machine_pool_selectors.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_pool_selectors import V1beta1VirtualMachinePoolSelectors + + +class TestV1beta1VirtualMachinePoolSelectors(unittest.TestCase): + """ V1beta1VirtualMachinePoolSelectors unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachinePoolSelectors(self): + """ + Test V1beta1VirtualMachinePoolSelectors + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_pool_selectors.V1beta1VirtualMachinePoolSelectors() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_pool_spec.py b/test/test_v1beta1_virtual_machine_pool_spec.py similarity index 60% rename from test/test_v1alpha1_virtual_machine_pool_spec.py rename to test/test_v1beta1_virtual_machine_pool_spec.py index 006fb2e4..265b9099 100644 --- a/test/test_v1alpha1_virtual_machine_pool_spec.py +++ b/test/test_v1beta1_virtual_machine_pool_spec.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_pool_spec import V1alpha1VirtualMachinePoolSpec +from kubevirt.models.v1beta1_virtual_machine_pool_spec import V1beta1VirtualMachinePoolSpec -class TestV1alpha1VirtualMachinePoolSpec(unittest.TestCase): - """ V1alpha1VirtualMachinePoolSpec unit test stubs """ +class TestV1beta1VirtualMachinePoolSpec(unittest.TestCase): + """ V1beta1VirtualMachinePoolSpec unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachinePoolSpec(self): + def testV1beta1VirtualMachinePoolSpec(self): """ - Test V1alpha1VirtualMachinePoolSpec + Test V1beta1VirtualMachinePoolSpec """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_pool_spec.V1alpha1VirtualMachinePoolSpec() + #model = kubevirt.models.v1beta1_virtual_machine_pool_spec.V1beta1VirtualMachinePoolSpec() pass diff --git a/test/test_v1alpha1_virtual_machine_pool_status.py b/test/test_v1beta1_virtual_machine_pool_status.py similarity index 59% rename from test/test_v1alpha1_virtual_machine_pool_status.py rename to test/test_v1beta1_virtual_machine_pool_status.py index fc6ccdfa..39c08f0f 100644 --- a/test/test_v1alpha1_virtual_machine_pool_status.py +++ b/test/test_v1beta1_virtual_machine_pool_status.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_pool_status import V1alpha1VirtualMachinePoolStatus +from kubevirt.models.v1beta1_virtual_machine_pool_status import V1beta1VirtualMachinePoolStatus -class TestV1alpha1VirtualMachinePoolStatus(unittest.TestCase): - """ V1alpha1VirtualMachinePoolStatus unit test stubs """ +class TestV1beta1VirtualMachinePoolStatus(unittest.TestCase): + """ V1beta1VirtualMachinePoolStatus unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachinePoolStatus(self): + def testV1beta1VirtualMachinePoolStatus(self): """ - Test V1alpha1VirtualMachinePoolStatus + Test V1beta1VirtualMachinePoolStatus """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_pool_status.V1alpha1VirtualMachinePoolStatus() + #model = kubevirt.models.v1beta1_virtual_machine_pool_status.V1beta1VirtualMachinePoolStatus() pass diff --git a/test/test_v1beta1_virtual_machine_pool_unmanaged_strategy.py b/test/test_v1beta1_virtual_machine_pool_unmanaged_strategy.py new file mode 100644 index 00000000..cc8b6bad --- /dev/null +++ b/test/test_v1beta1_virtual_machine_pool_unmanaged_strategy.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_pool_unmanaged_strategy import V1beta1VirtualMachinePoolUnmanagedStrategy + + +class TestV1beta1VirtualMachinePoolUnmanagedStrategy(unittest.TestCase): + """ V1beta1VirtualMachinePoolUnmanagedStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachinePoolUnmanagedStrategy(self): + """ + Test V1beta1VirtualMachinePoolUnmanagedStrategy + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_pool_unmanaged_strategy.V1beta1VirtualMachinePoolUnmanagedStrategy() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_pool_selectors.py b/test/test_v1beta1_virtual_machine_pool_update_strategy.py similarity index 56% rename from test/test_v1alpha1_virtual_machine_pool_selectors.py rename to test/test_v1beta1_virtual_machine_pool_update_strategy.py index 5eb3225d..3eba964d 100644 --- a/test/test_v1alpha1_virtual_machine_pool_selectors.py +++ b/test/test_v1beta1_virtual_machine_pool_update_strategy.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_pool_selectors import V1alpha1VirtualMachinePoolSelectors +from kubevirt.models.v1beta1_virtual_machine_pool_update_strategy import V1beta1VirtualMachinePoolUpdateStrategy -class TestV1alpha1VirtualMachinePoolSelectors(unittest.TestCase): - """ V1alpha1VirtualMachinePoolSelectors unit test stubs """ +class TestV1beta1VirtualMachinePoolUpdateStrategy(unittest.TestCase): + """ V1beta1VirtualMachinePoolUpdateStrategy unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachinePoolSelectors(self): + def testV1beta1VirtualMachinePoolUpdateStrategy(self): """ - Test V1alpha1VirtualMachinePoolSelectors + Test V1beta1VirtualMachinePoolUpdateStrategy """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_pool_selectors.V1alpha1VirtualMachinePoolSelectors() + #model = kubevirt.models.v1beta1_virtual_machine_pool_update_strategy.V1beta1VirtualMachinePoolUpdateStrategy() pass diff --git a/test/test_v1beta1_virtual_machine_template_spec.py b/test/test_v1beta1_virtual_machine_template_spec.py new file mode 100644 index 00000000..07014313 --- /dev/null +++ b/test/test_v1beta1_virtual_machine_template_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_template_spec import V1beta1VirtualMachineTemplateSpec + + +class TestV1beta1VirtualMachineTemplateSpec(unittest.TestCase): + """ V1beta1VirtualMachineTemplateSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineTemplateSpec(self): + """ + Test V1beta1VirtualMachineTemplateSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_template_spec.V1beta1VirtualMachineTemplateSpec() + pass + + +if __name__ == '__main__': + unittest.main() From 9de49deeeae5faaea7686406e061f7d4e33be264 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 13 Nov 2025 02:31:17 +0000 Subject: [PATCH 493/521] Client Python update by KubeVirt Prow build 1988793768538542080 --- README.md | 9 +- docs/DefaultApi.md | 218 +++++++- docs/V1EvacuateCancelOptions.md | 13 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 470 +++++++++++++++++- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_evacuate_cancel_options.py | 208 ++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 36 +- test/test_v1_evacuate_cancel_options.py | 44 ++ 15 files changed, 992 insertions(+), 21 deletions(-) create mode 100644 docs/V1EvacuateCancelOptions.md create mode 100644 kubevirt/models/v1_evacuate_cancel_options.py create mode 100644 test/test_v1_evacuate_cancel_options.py diff --git a/README.md b/README.md index fa45f15d..edb0b827 100644 --- a/README.md +++ b/README.md @@ -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.7.0-beta.0-252-g8282b1a5d9 +- Package version: v1.7.0-beta.0-320-ge2cceddd5e - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -120,7 +120,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_virtual_machine_clone**](docs/DefaultApi.md#delete_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name} | *DefaultApi* | [**delete_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#delete_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | *DefaultApi* | [**delete_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | -*DefaultApi* | [**func13**](docs/DefaultApi.md#func13) | **GET** /healthz | +*DefaultApi* | [**func15**](docs/DefaultApi.md#func15) | **GET** /healthz | *DefaultApi* | [**func6**](docs/DefaultApi.md#func6) | **GET** /openapi/v2 | *DefaultApi* | [**get_api_group_clone_kubevirt_io**](docs/DefaultApi.md#get_api_group_clone_kubevirt_io) | **GET** /apis/clone.kubevirt.io/ | *DefaultApi* | [**get_api_group_export_kubevirt_io**](docs/DefaultApi.md#get_api_group_export_kubevirt_io) | **GET** /apis/export.kubevirt.io/ | @@ -283,12 +283,14 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3stop_cluster_profiler**](docs/DefaultApi.md#v1alpha3stop_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/stop-cluster-profiler | *DefaultApi* | [**v1alpha3usbredir**](docs/DefaultApi.md#v1alpha3usbredir) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/usbredir | *DefaultApi* | [**v1alpha3vm_addvolume**](docs/DefaultApi.md#v1alpha3vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/addvolume | +*DefaultApi* | [**v1alpha3vm_evacuatecancel**](docs/DefaultApi.md#v1alpha3vm_evacuatecancel) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/evacuate/cancel | *DefaultApi* | [**v1alpha3vm_expand_spec**](docs/DefaultApi.md#v1alpha3vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/expand-spec | *DefaultApi* | [**v1alpha3vm_objectgraph**](docs/DefaultApi.md#v1alpha3vm_objectgraph) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/objectgraph | *DefaultApi* | [**v1alpha3vm_port_forward**](docs/DefaultApi.md#v1alpha3vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/portforward/{port} | *DefaultApi* | [**v1alpha3vm_port_forward_with_protocol**](docs/DefaultApi.md#v1alpha3vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/portforward/{port}/{protocol} | *DefaultApi* | [**v1alpha3vm_removevolume**](docs/DefaultApi.md#v1alpha3vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/removevolume | *DefaultApi* | [**v1alpha3vmi_addvolume**](docs/DefaultApi.md#v1alpha3vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/addvolume | +*DefaultApi* | [**v1alpha3vmi_evacuatecancel**](docs/DefaultApi.md#v1alpha3vmi_evacuatecancel) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/evacuate/cancel | *DefaultApi* | [**v1alpha3vmi_objectgraph**](docs/DefaultApi.md#v1alpha3vmi_objectgraph) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/objectgraph | *DefaultApi* | [**v1alpha3vmi_port_forward**](docs/DefaultApi.md#v1alpha3vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port} | *DefaultApi* | [**v1alpha3vmi_port_forward_with_protocol**](docs/DefaultApi.md#v1alpha3vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port}/{protocol} | @@ -299,12 +301,14 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1stop_cluster_profiler**](docs/DefaultApi.md#v1stop_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/stop-cluster-profiler | *DefaultApi* | [**v1usbredir**](docs/DefaultApi.md#v1usbredir) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/usbredir | *DefaultApi* | [**v1vm_addvolume**](docs/DefaultApi.md#v1vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/addvolume | +*DefaultApi* | [**v1vm_evacuatecancel**](docs/DefaultApi.md#v1vm_evacuatecancel) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/evacuate/cancel | *DefaultApi* | [**v1vm_expand_spec**](docs/DefaultApi.md#v1vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/expand-spec | *DefaultApi* | [**v1vm_objectgraph**](docs/DefaultApi.md#v1vm_objectgraph) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/objectgraph | *DefaultApi* | [**v1vm_port_forward**](docs/DefaultApi.md#v1vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/portforward/{port} | *DefaultApi* | [**v1vm_port_forward_with_protocol**](docs/DefaultApi.md#v1vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/portforward/{port}/{protocol} | *DefaultApi* | [**v1vm_removevolume**](docs/DefaultApi.md#v1vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/removevolume | *DefaultApi* | [**v1vmi_addvolume**](docs/DefaultApi.md#v1vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/addvolume | +*DefaultApi* | [**v1vmi_evacuatecancel**](docs/DefaultApi.md#v1vmi_evacuatecancel) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/evacuate/cancel | *DefaultApi* | [**v1vmi_objectgraph**](docs/DefaultApi.md#v1vmi_objectgraph) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/objectgraph | *DefaultApi* | [**v1vmi_port_forward**](docs/DefaultApi.md#v1vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port} | *DefaultApi* | [**v1vmi_port_forward_with_protocol**](docs/DefaultApi.md#v1vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port}/{protocol} | @@ -459,6 +463,7 @@ Class | Method | HTTP request | Description - [V1EFI](docs/V1EFI.md) - [V1EmptyDiskSource](docs/V1EmptyDiskSource.md) - [V1EphemeralVolumeSource](docs/V1EphemeralVolumeSource.md) + - [V1EvacuateCancelOptions](docs/V1EvacuateCancelOptions.md) - [V1FeatureAPIC](docs/V1FeatureAPIC.md) - [V1FeatureHyperv](docs/V1FeatureHyperv.md) - [V1FeatureKVM](docs/V1FeatureKVM.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 210fd2d2..75152689 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -55,7 +55,7 @@ Method | HTTP request | Description [**delete_virtual_machine_clone**](DefaultApi.md#delete_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name} | [**delete_virtual_machine_cluster_instancetype**](DefaultApi.md#delete_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | [**delete_virtual_machine_cluster_preference**](DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | -[**func13**](DefaultApi.md#func13) | **GET** /healthz | +[**func15**](DefaultApi.md#func15) | **GET** /healthz | [**func6**](DefaultApi.md#func6) | **GET** /openapi/v2 | [**get_api_group_clone_kubevirt_io**](DefaultApi.md#get_api_group_clone_kubevirt_io) | **GET** /apis/clone.kubevirt.io/ | [**get_api_group_export_kubevirt_io**](DefaultApi.md#get_api_group_export_kubevirt_io) | **GET** /apis/export.kubevirt.io/ | @@ -218,12 +218,14 @@ Method | HTTP request | Description [**v1alpha3stop_cluster_profiler**](DefaultApi.md#v1alpha3stop_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/stop-cluster-profiler | [**v1alpha3usbredir**](DefaultApi.md#v1alpha3usbredir) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/usbredir | [**v1alpha3vm_addvolume**](DefaultApi.md#v1alpha3vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/addvolume | +[**v1alpha3vm_evacuatecancel**](DefaultApi.md#v1alpha3vm_evacuatecancel) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/evacuate/cancel | [**v1alpha3vm_expand_spec**](DefaultApi.md#v1alpha3vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/expand-spec | [**v1alpha3vm_objectgraph**](DefaultApi.md#v1alpha3vm_objectgraph) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/objectgraph | [**v1alpha3vm_port_forward**](DefaultApi.md#v1alpha3vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/portforward/{port} | [**v1alpha3vm_port_forward_with_protocol**](DefaultApi.md#v1alpha3vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/portforward/{port}/{protocol} | [**v1alpha3vm_removevolume**](DefaultApi.md#v1alpha3vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/removevolume | [**v1alpha3vmi_addvolume**](DefaultApi.md#v1alpha3vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/addvolume | +[**v1alpha3vmi_evacuatecancel**](DefaultApi.md#v1alpha3vmi_evacuatecancel) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/evacuate/cancel | [**v1alpha3vmi_objectgraph**](DefaultApi.md#v1alpha3vmi_objectgraph) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/objectgraph | [**v1alpha3vmi_port_forward**](DefaultApi.md#v1alpha3vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port} | [**v1alpha3vmi_port_forward_with_protocol**](DefaultApi.md#v1alpha3vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port}/{protocol} | @@ -234,12 +236,14 @@ Method | HTTP request | Description [**v1stop_cluster_profiler**](DefaultApi.md#v1stop_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/stop-cluster-profiler | [**v1usbredir**](DefaultApi.md#v1usbredir) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/usbredir | [**v1vm_addvolume**](DefaultApi.md#v1vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/addvolume | +[**v1vm_evacuatecancel**](DefaultApi.md#v1vm_evacuatecancel) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/evacuate/cancel | [**v1vm_expand_spec**](DefaultApi.md#v1vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/expand-spec | [**v1vm_objectgraph**](DefaultApi.md#v1vm_objectgraph) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/objectgraph | [**v1vm_port_forward**](DefaultApi.md#v1vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/portforward/{port} | [**v1vm_port_forward_with_protocol**](DefaultApi.md#v1vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/portforward/{port}/{protocol} | [**v1vm_removevolume**](DefaultApi.md#v1vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/removevolume | [**v1vmi_addvolume**](DefaultApi.md#v1vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/addvolume | +[**v1vmi_evacuatecancel**](DefaultApi.md#v1vmi_evacuatecancel) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/evacuate/cancel | [**v1vmi_objectgraph**](DefaultApi.md#v1vmi_objectgraph) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/objectgraph | [**v1vmi_port_forward**](DefaultApi.md#v1vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port} | [**v1vmi_port_forward_with_protocol**](DefaultApi.md#v1vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port}/{protocol} | @@ -3099,8 +3103,8 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **func13** -> func13() +# **func15** +> func15() @@ -3118,9 +3122,9 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() try: - api_instance.func13() + api_instance.func15() except ApiException as e: - print("Exception when calling DefaultApi->func13: %s\n" % e) + print("Exception when calling DefaultApi->func15: %s\n" % e) ``` ### Parameters @@ -11411,6 +11415,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3vm_evacuatecancel** +> str v1alpha3vm_evacuatecancel(name, namespace, body) + + + +Cancel evacuation Virtual Machine + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1EvacuateCancelOptions() # V1EvacuateCancelOptions | + +try: + api_response = api_instance.v1alpha3vm_evacuatecancel(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3vm_evacuatecancel: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1EvacuateCancelOptions**](V1EvacuateCancelOptions.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3vm_expand_spec** > str v1alpha3vm_expand_spec(name, namespace) @@ -11715,6 +11770,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3vmi_evacuatecancel** +> str v1alpha3vmi_evacuatecancel(name, namespace, body) + + + +Cancel evacuation Virtual Machine Instance + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1EvacuateCancelOptions() # V1EvacuateCancelOptions | + +try: + api_response = api_instance.v1alpha3vmi_evacuatecancel(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3vmi_evacuatecancel: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1EvacuateCancelOptions**](V1EvacuateCancelOptions.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3vmi_objectgraph** > V1ObjectGraphNode v1alpha3vmi_objectgraph(name, namespace, body) @@ -12181,6 +12287,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1vm_evacuatecancel** +> str v1vm_evacuatecancel(name, namespace, body) + + + +Cancel evacuation Virtual Machine + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1EvacuateCancelOptions() # V1EvacuateCancelOptions | + +try: + api_response = api_instance.v1vm_evacuatecancel(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1vm_evacuatecancel: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1EvacuateCancelOptions**](V1EvacuateCancelOptions.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1vm_expand_spec** > str v1vm_expand_spec(name, namespace) @@ -12485,6 +12642,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1vmi_evacuatecancel** +> str v1vmi_evacuatecancel(name, namespace, body) + + + +Cancel evacuation Virtual Machine Instance + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1EvacuateCancelOptions() # V1EvacuateCancelOptions | + +try: + api_response = api_instance.v1vmi_evacuatecancel(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1vmi_evacuatecancel: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1EvacuateCancelOptions**](V1EvacuateCancelOptions.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1vmi_objectgraph** > V1ObjectGraphNode v1vmi_objectgraph(name, namespace, body) diff --git a/docs/V1EvacuateCancelOptions.md b/docs/V1EvacuateCancelOptions.md new file mode 100644 index 00000000..aa460334 --- /dev/null +++ b/docs/V1EvacuateCancelOptions.md @@ -0,0 +1,13 @@ +# V1EvacuateCancelOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**dry_run** | **list[str]** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**evacuation_node_name** | **str** | | [default to ''] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 183f9344..96ae9073 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.7.0-beta.0-252-g8282b1a5d9" + release_note="Auto-generated client v1.7.0-beta.0-320-ge2cceddd5e" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index a83b21da..7db20c00 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -369,6 +369,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_ephemeral_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_ephemeral_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1EphemeralVolumeSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_evacuate_cancel_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_evacuate_cancel_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1EvacuateCancelOptions.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_feature_apic.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_feature_apic.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1FeatureAPIC.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index a3c9c8ab..013470b7 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -130,6 +130,7 @@ from .models.v1_efi import V1EFI from .models.v1_empty_disk_source import V1EmptyDiskSource from .models.v1_ephemeral_volume_source import V1EphemeralVolumeSource +from .models.v1_evacuate_cancel_options import V1EvacuateCancelOptions from .models.v1_feature_apic import V1FeatureAPIC from .models.v1_feature_hyperv import V1FeatureHyperv from .models.v1_feature_kvm import V1FeatureKVM diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 4ac84147..7a010de1 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.7.0-beta.0-252-g8282b1a5d9/python' + self.user_agent = 'Swagger-Codegen/v1.7.0-beta.0-320-ge2cceddd5e/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index d45cd1f0..ac5bfdf1 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -6206,7 +6206,7 @@ def delete_virtual_machine_cluster_preference_with_http_info(self, name, body, * _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def func13(self, **kwargs): + def func15(self, **kwargs): """ Health endpoint This method makes a synchronous HTTP request by default. To make an @@ -6215,7 +6215,7 @@ def func13(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.func13(callback=callback_function) + >>> thread = api.func15(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -6225,12 +6225,12 @@ def func13(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.func13_with_http_info(**kwargs) + return self.func15_with_http_info(**kwargs) else: - (data) = self.func13_with_http_info(**kwargs) + (data) = self.func15_with_http_info(**kwargs) return data - def func13_with_http_info(self, **kwargs): + def func15_with_http_info(self, **kwargs): """ Health endpoint This method makes a synchronous HTTP request by default. To make an @@ -6239,7 +6239,7 @@ def func13_with_http_info(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.func13_with_http_info(callback=callback_function) + >>> thread = api.func15_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -6259,7 +6259,7 @@ def func13_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method func13" % key + " to method func15" % key ) params[key] = val del params['kwargs'] @@ -24343,6 +24343,120 @@ def v1alpha3vm_addvolume_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1alpha3vm_evacuatecancel(self, name, namespace, body, **kwargs): + """ + Cancel evacuation Virtual Machine + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vm_evacuatecancel(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1EvacuateCancelOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3vm_evacuatecancel_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1alpha3vm_evacuatecancel_with_http_info(name, namespace, body, **kwargs) + return data + + def v1alpha3vm_evacuatecancel_with_http_info(self, name, namespace, body, **kwargs): + """ + Cancel evacuation Virtual Machine + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vm_evacuatecancel_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1EvacuateCancelOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3vm_evacuatecancel" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vm_evacuatecancel`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vm_evacuatecancel`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3vm_evacuatecancel`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/evacuate/cancel', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1alpha3vm_expand_spec(self, name, namespace, **kwargs): """ Get VirtualMachine object with expanded instancetype and preference. @@ -25023,6 +25137,120 @@ def v1alpha3vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1alpha3vmi_evacuatecancel(self, name, namespace, body, **kwargs): + """ + Cancel evacuation Virtual Machine Instance + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vmi_evacuatecancel(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1EvacuateCancelOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3vmi_evacuatecancel_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1alpha3vmi_evacuatecancel_with_http_info(name, namespace, body, **kwargs) + return data + + def v1alpha3vmi_evacuatecancel_with_http_info(self, name, namespace, body, **kwargs): + """ + Cancel evacuation Virtual Machine Instance + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vmi_evacuatecancel_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1EvacuateCancelOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3vmi_evacuatecancel" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vmi_evacuatecancel`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vmi_evacuatecancel`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3vmi_evacuatecancel`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/evacuate/cancel', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1alpha3vmi_objectgraph(self, name, namespace, body, **kwargs): """ Get graph of objects related to a Virtual Machine Instance @@ -26061,6 +26289,120 @@ def v1vm_addvolume_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1vm_evacuatecancel(self, name, namespace, body, **kwargs): + """ + Cancel evacuation Virtual Machine + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1vm_evacuatecancel(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1EvacuateCancelOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1vm_evacuatecancel_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1vm_evacuatecancel_with_http_info(name, namespace, body, **kwargs) + return data + + def v1vm_evacuatecancel_with_http_info(self, name, namespace, body, **kwargs): + """ + Cancel evacuation Virtual Machine + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1vm_evacuatecancel_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1EvacuateCancelOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1vm_evacuatecancel" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1vm_evacuatecancel`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1vm_evacuatecancel`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1vm_evacuatecancel`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/evacuate/cancel', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1vm_expand_spec(self, name, namespace, **kwargs): """ Get VirtualMachine object with expanded instancetype and preference. @@ -26741,6 +27083,120 @@ def v1vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1vmi_evacuatecancel(self, name, namespace, body, **kwargs): + """ + Cancel evacuation Virtual Machine Instance + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1vmi_evacuatecancel(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1EvacuateCancelOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1vmi_evacuatecancel_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1vmi_evacuatecancel_with_http_info(name, namespace, body, **kwargs) + return data + + def v1vmi_evacuatecancel_with_http_info(self, name, namespace, body, **kwargs): + """ + Cancel evacuation Virtual Machine Instance + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1vmi_evacuatecancel_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1EvacuateCancelOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1vmi_evacuatecancel" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1vmi_evacuatecancel`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1vmi_evacuatecancel`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1vmi_evacuatecancel`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/evacuate/cancel', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1vmi_objectgraph(self, name, namespace, body, **kwargs): """ Get graph of objects related to a Virtual Machine Instance diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 34be72f7..da9d5d5d 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.7.0-beta.0-252-g8282b1a5d9".\ + "SDK Package Version: v1.7.0-beta.0-320-ge2cceddd5e".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index f0f7eecb..b76e1ca5 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -130,6 +130,7 @@ from .v1_efi import V1EFI from .v1_empty_disk_source import V1EmptyDiskSource from .v1_ephemeral_volume_source import V1EphemeralVolumeSource +from .v1_evacuate_cancel_options import V1EvacuateCancelOptions from .v1_feature_apic import V1FeatureAPIC from .v1_feature_hyperv import V1FeatureHyperv from .v1_feature_kvm import V1FeatureKVM diff --git a/kubevirt/models/v1_evacuate_cancel_options.py b/kubevirt/models/v1_evacuate_cancel_options.py new file mode 100644 index 00000000..7206be1f --- /dev/null +++ b/kubevirt/models/v1_evacuate_cancel_options.py @@ -0,0 +1,208 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1EvacuateCancelOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'dry_run': 'list[str]', + 'evacuation_node_name': 'str', + 'kind': 'str' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'dry_run': 'dryRun', + 'evacuation_node_name': 'evacuationNodeName', + 'kind': 'kind' + } + + def __init__(self, api_version=None, dry_run=None, evacuation_node_name='', kind=None): + """ + V1EvacuateCancelOptions - a model defined in Swagger + """ + + self._api_version = None + self._dry_run = None + self._evacuation_node_name = None + self._kind = None + + if api_version is not None: + self.api_version = api_version + if dry_run is not None: + self.dry_run = dry_run + self.evacuation_node_name = evacuation_node_name + if kind is not None: + self.kind = kind + + @property + def api_version(self): + """ + Gets the api_version of this V1EvacuateCancelOptions. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1EvacuateCancelOptions. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1EvacuateCancelOptions. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1EvacuateCancelOptions. + :type: str + """ + + self._api_version = api_version + + @property + def dry_run(self): + """ + Gets the dry_run of this V1EvacuateCancelOptions. + When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + + :return: The dry_run of this V1EvacuateCancelOptions. + :rtype: list[str] + """ + return self._dry_run + + @dry_run.setter + def dry_run(self, dry_run): + """ + Sets the dry_run of this V1EvacuateCancelOptions. + When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + + :param dry_run: The dry_run of this V1EvacuateCancelOptions. + :type: list[str] + """ + + self._dry_run = dry_run + + @property + def evacuation_node_name(self): + """ + Gets the evacuation_node_name of this V1EvacuateCancelOptions. + + :return: The evacuation_node_name of this V1EvacuateCancelOptions. + :rtype: str + """ + return self._evacuation_node_name + + @evacuation_node_name.setter + def evacuation_node_name(self, evacuation_node_name): + """ + Sets the evacuation_node_name of this V1EvacuateCancelOptions. + + :param evacuation_node_name: The evacuation_node_name of this V1EvacuateCancelOptions. + :type: str + """ + if evacuation_node_name is None: + raise ValueError("Invalid value for `evacuation_node_name`, must not be `None`") + + self._evacuation_node_name = evacuation_node_name + + @property + def kind(self): + """ + Gets the kind of this V1EvacuateCancelOptions. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1EvacuateCancelOptions. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1EvacuateCancelOptions. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1EvacuateCancelOptions. + :type: str + """ + + self._kind = kind + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1EvacuateCancelOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index effbde53..73b41d43 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.7.0-beta.0-252-g8282b1a5d9" +VERSION = "v1.7.0-beta.0-320-ge2cceddd5e" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index a62f6e67..f415fe86 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.7.0-beta.0-252-g8282b1a5d9" +"packageVersion": "v1.7.0-beta.0-320-ge2cceddd5e" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 2384ac5f..3407b311 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -439,9 +439,9 @@ def test_delete_virtual_machine_cluster_preference(self): """ pass - def test_func13(self): + def test_func15(self): """ - Test case for func13 + Test case for func15 """ @@ -1740,6 +1740,14 @@ def test_v1alpha3vm_addvolume(self): Test case for v1alpha3vm_addvolume + """ + pass + + def test_v1alpha3vm_evacuatecancel(self): + """ + Test case for v1alpha3vm_evacuatecancel + + """ pass @@ -1788,6 +1796,14 @@ def test_v1alpha3vmi_addvolume(self): Test case for v1alpha3vmi_addvolume + """ + pass + + def test_v1alpha3vmi_evacuatecancel(self): + """ + Test case for v1alpha3vmi_evacuatecancel + + """ pass @@ -1868,6 +1884,14 @@ def test_v1vm_addvolume(self): Test case for v1vm_addvolume + """ + pass + + def test_v1vm_evacuatecancel(self): + """ + Test case for v1vm_evacuatecancel + + """ pass @@ -1916,6 +1940,14 @@ def test_v1vmi_addvolume(self): Test case for v1vmi_addvolume + """ + pass + + def test_v1vmi_evacuatecancel(self): + """ + Test case for v1vmi_evacuatecancel + + """ pass diff --git a/test/test_v1_evacuate_cancel_options.py b/test/test_v1_evacuate_cancel_options.py new file mode 100644 index 00000000..69d8fe8e --- /dev/null +++ b/test/test_v1_evacuate_cancel_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_evacuate_cancel_options import V1EvacuateCancelOptions + + +class TestV1EvacuateCancelOptions(unittest.TestCase): + """ V1EvacuateCancelOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1EvacuateCancelOptions(self): + """ + Test V1EvacuateCancelOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_evacuate_cancel_options.V1EvacuateCancelOptions() + pass + + +if __name__ == '__main__': + unittest.main() From 5de079ca69e8dd51ea56990e8d12ee3314079af4 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Sun, 16 Nov 2025 15:21:02 +0000 Subject: [PATCH 494/521] Client Python update by KubeVirt Prow build 1990073029266247680 --- README.md | 3 +- docs/V1MigrationConfiguration.md | 1 + docs/V1UtilityVolume.md | 13 ++ docs/V1VirtualMachineInstanceSpec.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_migration_configuration.py | 34 ++- kubevirt/models/v1_utility_volume.py | 211 ++++++++++++++++++ .../v1_virtual_machine_instance_spec.py | 30 ++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_utility_volume.py | 44 ++++ 16 files changed, 342 insertions(+), 10 deletions(-) create mode 100644 docs/V1UtilityVolume.md create mode 100644 kubevirt/models/v1_utility_volume.py create mode 100644 test/test_v1_utility_volume.py diff --git a/README.md b/README.md index edb0b827..2319e365 100644 --- a/README.md +++ b/README.md @@ -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.7.0-beta.0-320-ge2cceddd5e +- Package version: v1.7.0-beta.0-354-g05b34b9a69 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -595,6 +595,7 @@ Class | Method | HTTP request | Description - [V1UserPasswordAccessCredential](docs/V1UserPasswordAccessCredential.md) - [V1UserPasswordAccessCredentialPropagationMethod](docs/V1UserPasswordAccessCredentialPropagationMethod.md) - [V1UserPasswordAccessCredentialSource](docs/V1UserPasswordAccessCredentialSource.md) + - [V1UtilityVolume](docs/V1UtilityVolume.md) - [V1VGPUDisplayOptions](docs/V1VGPUDisplayOptions.md) - [V1VGPUOptions](docs/V1VGPUOptions.md) - [V1VideoDevice](docs/V1VideoDevice.md) diff --git a/docs/V1MigrationConfiguration.md b/docs/V1MigrationConfiguration.md index ce40a95e..386d48db 100644 --- a/docs/V1MigrationConfiguration.md +++ b/docs/V1MigrationConfiguration.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **parallel_outbound_migrations_per_node** | **int** | ParallelOutboundMigrationsPerNode is the maximum number of concurrent outgoing live migrations allowed per node. Defaults to 2 | [optional] **progress_timeout** | **int** | ProgressTimeout is the maximum number of seconds a live migration is allowed to make no progress. Hitting this timeout means a migration transferred 0 data for that many seconds. The migration is then considered stuck and therefore cancelled. Defaults to 150 | [optional] **unsafe_migration_override** | **bool** | UnsafeMigrationOverride allows live migrations to occur even if the compatibility check indicates the migration will be unsafe to the guest. Defaults to false | [optional] +**utility_volumes_timeout** | **int** | UtilityVolumesTimeout is the maximum number of seconds a migration can wait in Pending state for utility volumes to be detached. If utility volumes are still present after this timeout, the migration will be marked as Failed. Defaults to 150 | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1UtilityVolume.md b/docs/V1UtilityVolume.md new file mode 100644 index 00000000..0ffc576d --- /dev/null +++ b/docs/V1UtilityVolume.md @@ -0,0 +1,13 @@ +# V1UtilityVolume + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**claim_name** | **str** | claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [default to ''] +**name** | **str** | UtilityVolume's name. Must be unique within the vmi, including regular Volumes. | [default to ''] +**read_only** | **bool** | readOnly Will force the ReadOnly setting in VolumeMounts. Default false. | [optional] +**type** | **str** | Type represents the type of the utility volume. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1VirtualMachineInstanceSpec.md b/docs/V1VirtualMachineInstanceSpec.md index 6df6e1f5..d97c3a81 100644 --- a/docs/V1VirtualMachineInstanceSpec.md +++ b/docs/V1VirtualMachineInstanceSpec.md @@ -23,6 +23,7 @@ Name | Type | Description | Notes **termination_grace_period_seconds** | **int** | Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. | [optional] **tolerations** | [**list[K8sIoApiCoreV1Toleration]**](K8sIoApiCoreV1Toleration.md) | If toleration is specified, obey all the toleration rules. | [optional] **topology_spread_constraints** | [**list[K8sIoApiCoreV1TopologySpreadConstraint]**](K8sIoApiCoreV1TopologySpreadConstraint.md) | TopologySpreadConstraints describes how a group of VMIs will be spread across a given topology domains. K8s scheduler will schedule VMI pods in a way which abides by the constraints. | [optional] +**utility_volumes** | [**list[V1UtilityVolume]**](V1UtilityVolume.md) | List of utility volumes that can be mounted to the vmi virt-launcher pod without having a matching disk in the domain. Used to collect data for various operational workflows. | [optional] **volumes** | [**list[V1Volume]**](V1Volume.md) | List of volumes that can be mounted by disks belonging to the vmi. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 96ae9073..721fc30b 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.7.0-beta.0-320-ge2cceddd5e" + release_note="Auto-generated client v1.7.0-beta.0-354-g05b34b9a69" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 7db20c00..1c2dd07a 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -765,6 +765,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_user_password_access_credential_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_user_password_access_credential_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1UserPasswordAccessCredentialSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_utility_volume.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_utility_volume.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1UtilityVolume.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_vgpu_display_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_vgpu_display_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VGPUDisplayOptions.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 013470b7..23627950 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -262,6 +262,7 @@ from .models.v1_user_password_access_credential import V1UserPasswordAccessCredential from .models.v1_user_password_access_credential_propagation_method import V1UserPasswordAccessCredentialPropagationMethod from .models.v1_user_password_access_credential_source import V1UserPasswordAccessCredentialSource +from .models.v1_utility_volume import V1UtilityVolume from .models.v1_vgpu_display_options import V1VGPUDisplayOptions from .models.v1_vgpu_options import V1VGPUOptions from .models.v1_video_device import V1VideoDevice diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 7a010de1..e5e94edb 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.7.0-beta.0-320-ge2cceddd5e/python' + self.user_agent = 'Swagger-Codegen/v1.7.0-beta.0-354-g05b34b9a69/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index da9d5d5d..18a494af 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.7.0-beta.0-320-ge2cceddd5e".\ + "SDK Package Version: v1.7.0-beta.0-354-g05b34b9a69".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index b76e1ca5..2455d520 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -262,6 +262,7 @@ from .v1_user_password_access_credential import V1UserPasswordAccessCredential from .v1_user_password_access_credential_propagation_method import V1UserPasswordAccessCredentialPropagationMethod from .v1_user_password_access_credential_source import V1UserPasswordAccessCredentialSource +from .v1_utility_volume import V1UtilityVolume from .v1_vgpu_display_options import V1VGPUDisplayOptions from .v1_vgpu_options import V1VGPUOptions from .v1_video_device import V1VideoDevice diff --git a/kubevirt/models/v1_migration_configuration.py b/kubevirt/models/v1_migration_configuration.py index 79dc80e8..e7dd2d59 100644 --- a/kubevirt/models/v1_migration_configuration.py +++ b/kubevirt/models/v1_migration_configuration.py @@ -43,7 +43,8 @@ class V1MigrationConfiguration(object): 'parallel_migrations_per_cluster': 'int', 'parallel_outbound_migrations_per_node': 'int', 'progress_timeout': 'int', - 'unsafe_migration_override': 'bool' + 'unsafe_migration_override': 'bool', + 'utility_volumes_timeout': 'int' } attribute_map = { @@ -59,10 +60,11 @@ class V1MigrationConfiguration(object): 'parallel_migrations_per_cluster': 'parallelMigrationsPerCluster', 'parallel_outbound_migrations_per_node': 'parallelOutboundMigrationsPerNode', 'progress_timeout': 'progressTimeout', - 'unsafe_migration_override': 'unsafeMigrationOverride' + 'unsafe_migration_override': 'unsafeMigrationOverride', + 'utility_volumes_timeout': 'utilityVolumesTimeout' } - 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): + 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, utility_volumes_timeout=None): """ V1MigrationConfiguration - a model defined in Swagger """ @@ -80,6 +82,7 @@ def __init__(self, allow_auto_converge=None, allow_post_copy=None, allow_workloa self._parallel_outbound_migrations_per_node = None self._progress_timeout = None self._unsafe_migration_override = None + self._utility_volumes_timeout = None if allow_auto_converge is not None: self.allow_auto_converge = allow_auto_converge @@ -107,6 +110,8 @@ def __init__(self, allow_auto_converge=None, allow_post_copy=None, allow_workloa self.progress_timeout = progress_timeout if unsafe_migration_override is not None: self.unsafe_migration_override = unsafe_migration_override + if utility_volumes_timeout is not None: + self.utility_volumes_timeout = utility_volumes_timeout @property def allow_auto_converge(self): @@ -407,6 +412,29 @@ def unsafe_migration_override(self, unsafe_migration_override): self._unsafe_migration_override = unsafe_migration_override + @property + def utility_volumes_timeout(self): + """ + Gets the utility_volumes_timeout of this V1MigrationConfiguration. + UtilityVolumesTimeout is the maximum number of seconds a migration can wait in Pending state for utility volumes to be detached. If utility volumes are still present after this timeout, the migration will be marked as Failed. Defaults to 150 + + :return: The utility_volumes_timeout of this V1MigrationConfiguration. + :rtype: int + """ + return self._utility_volumes_timeout + + @utility_volumes_timeout.setter + def utility_volumes_timeout(self, utility_volumes_timeout): + """ + Sets the utility_volumes_timeout of this V1MigrationConfiguration. + UtilityVolumesTimeout is the maximum number of seconds a migration can wait in Pending state for utility volumes to be detached. If utility volumes are still present after this timeout, the migration will be marked as Failed. Defaults to 150 + + :param utility_volumes_timeout: The utility_volumes_timeout of this V1MigrationConfiguration. + :type: int + """ + + self._utility_volumes_timeout = utility_volumes_timeout + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_utility_volume.py b/kubevirt/models/v1_utility_volume.py new file mode 100644 index 00000000..3001fff4 --- /dev/null +++ b/kubevirt/models/v1_utility_volume.py @@ -0,0 +1,211 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1UtilityVolume(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'claim_name': 'str', + 'name': 'str', + 'read_only': 'bool', + 'type': 'str' + } + + attribute_map = { + 'claim_name': 'claimName', + 'name': 'name', + 'read_only': 'readOnly', + 'type': 'type' + } + + def __init__(self, claim_name='', name='', read_only=None, type=None): + """ + V1UtilityVolume - a model defined in Swagger + """ + + self._claim_name = None + self._name = None + self._read_only = None + self._type = None + + self.claim_name = claim_name + self.name = name + if read_only is not None: + self.read_only = read_only + if type is not None: + self.type = type + + @property + def claim_name(self): + """ + Gets the claim_name of this V1UtilityVolume. + claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + + :return: The claim_name of this V1UtilityVolume. + :rtype: str + """ + return self._claim_name + + @claim_name.setter + def claim_name(self, claim_name): + """ + Sets the claim_name of this V1UtilityVolume. + claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + + :param claim_name: The claim_name of this V1UtilityVolume. + :type: str + """ + if claim_name is None: + raise ValueError("Invalid value for `claim_name`, must not be `None`") + + self._claim_name = claim_name + + @property + def name(self): + """ + Gets the name of this V1UtilityVolume. + UtilityVolume's name. Must be unique within the vmi, including regular Volumes. + + :return: The name of this V1UtilityVolume. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1UtilityVolume. + UtilityVolume's name. Must be unique within the vmi, including regular Volumes. + + :param name: The name of this V1UtilityVolume. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def read_only(self): + """ + Gets the read_only of this V1UtilityVolume. + readOnly Will force the ReadOnly setting in VolumeMounts. Default false. + + :return: The read_only of this V1UtilityVolume. + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """ + Sets the read_only of this V1UtilityVolume. + readOnly Will force the ReadOnly setting in VolumeMounts. Default false. + + :param read_only: The read_only of this V1UtilityVolume. + :type: bool + """ + + self._read_only = read_only + + @property + def type(self): + """ + Gets the type of this V1UtilityVolume. + Type represents the type of the utility volume. + + :return: The type of this V1UtilityVolume. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1UtilityVolume. + Type represents the type of the utility volume. + + :param type: The type of this V1UtilityVolume. + :type: str + """ + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1UtilityVolume): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_spec.py b/kubevirt/models/v1_virtual_machine_instance_spec.py index 99f78652..c7f47878 100644 --- a/kubevirt/models/v1_virtual_machine_instance_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_spec.py @@ -51,6 +51,7 @@ class V1VirtualMachineInstanceSpec(object): 'termination_grace_period_seconds': 'int', 'tolerations': 'list[K8sIoApiCoreV1Toleration]', 'topology_spread_constraints': 'list[K8sIoApiCoreV1TopologySpreadConstraint]', + 'utility_volumes': 'list[V1UtilityVolume]', 'volumes': 'list[V1Volume]' } @@ -75,10 +76,11 @@ class V1VirtualMachineInstanceSpec(object): 'termination_grace_period_seconds': 'terminationGracePeriodSeconds', 'tolerations': 'tolerations', 'topology_spread_constraints': 'topologySpreadConstraints', + 'utility_volumes': 'utilityVolumes', 'volumes': 'volumes' } - def __init__(self, access_credentials=None, affinity=None, architecture=None, dns_config=None, dns_policy=None, domain=None, eviction_strategy=None, hostname=None, liveness_probe=None, networks=None, node_selector=None, priority_class_name=None, readiness_probe=None, resource_claims=None, scheduler_name=None, start_strategy=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, topology_spread_constraints=None, volumes=None): + def __init__(self, access_credentials=None, affinity=None, architecture=None, dns_config=None, dns_policy=None, domain=None, eviction_strategy=None, hostname=None, liveness_probe=None, networks=None, node_selector=None, priority_class_name=None, readiness_probe=None, resource_claims=None, scheduler_name=None, start_strategy=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, topology_spread_constraints=None, utility_volumes=None, volumes=None): """ V1VirtualMachineInstanceSpec - a model defined in Swagger """ @@ -103,6 +105,7 @@ def __init__(self, access_credentials=None, affinity=None, architecture=None, dn self._termination_grace_period_seconds = None self._tolerations = None self._topology_spread_constraints = None + self._utility_volumes = None self._volumes = None if access_credentials is not None: @@ -144,6 +147,8 @@ def __init__(self, access_credentials=None, affinity=None, architecture=None, dn self.tolerations = tolerations if topology_spread_constraints is not None: self.topology_spread_constraints = topology_spread_constraints + if utility_volumes is not None: + self.utility_volumes = utility_volumes if volumes is not None: self.volumes = volumes @@ -615,6 +620,29 @@ def topology_spread_constraints(self, topology_spread_constraints): self._topology_spread_constraints = topology_spread_constraints + @property + def utility_volumes(self): + """ + Gets the utility_volumes of this V1VirtualMachineInstanceSpec. + List of utility volumes that can be mounted to the vmi virt-launcher pod without having a matching disk in the domain. Used to collect data for various operational workflows. + + :return: The utility_volumes of this V1VirtualMachineInstanceSpec. + :rtype: list[V1UtilityVolume] + """ + return self._utility_volumes + + @utility_volumes.setter + def utility_volumes(self, utility_volumes): + """ + Sets the utility_volumes of this V1VirtualMachineInstanceSpec. + List of utility volumes that can be mounted to the vmi virt-launcher pod without having a matching disk in the domain. Used to collect data for various operational workflows. + + :param utility_volumes: The utility_volumes of this V1VirtualMachineInstanceSpec. + :type: list[V1UtilityVolume] + """ + + self._utility_volumes = utility_volumes + @property def volumes(self): """ diff --git a/setup.py b/setup.py index 73b41d43..9638120a 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.7.0-beta.0-320-ge2cceddd5e" +VERSION = "v1.7.0-beta.0-354-g05b34b9a69" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index f415fe86..33e2c657 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.7.0-beta.0-320-ge2cceddd5e" +"packageVersion": "v1.7.0-beta.0-354-g05b34b9a69" } diff --git a/test/test_v1_utility_volume.py b/test/test_v1_utility_volume.py new file mode 100644 index 00000000..50da4d97 --- /dev/null +++ b/test/test_v1_utility_volume.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_utility_volume import V1UtilityVolume + + +class TestV1UtilityVolume(unittest.TestCase): + """ V1UtilityVolume unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1UtilityVolume(self): + """ + Test V1UtilityVolume + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_utility_volume.V1UtilityVolume() + pass + + +if __name__ == '__main__': + unittest.main() From fb627941ce559755aef20c33cf9b221f1e033179 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 26 Nov 2025 19:02:30 +0000 Subject: [PATCH 495/521] Client Python update by KubeVirt Prow build 1993750165999063040 --- README.md | 2 +- docs/V1VirtualMachineSpec.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_virtual_machine_spec.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 2319e365..5ec626ed 100644 --- a/README.md +++ b/README.md @@ -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.7.0-beta.0-354-g05b34b9a69 +- Package version: v1.7.0-beta.0-470-geb520d6967 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineSpec.md b/docs/V1VirtualMachineSpec.md index ac4af1f9..835c03f5 100644 --- a/docs/V1VirtualMachineSpec.md +++ b/docs/V1VirtualMachineSpec.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **data_volume_templates** | [**list[V1DataVolumeTemplateSpec]**](V1DataVolumeTemplateSpec.md) | dataVolumeTemplates is a list of dataVolumes that the VirtualMachineInstance template can reference. DataVolumes in this list are dynamically created for the VirtualMachine and are tied to the VirtualMachine's life-cycle. | [optional] **instancetype** | [**V1InstancetypeMatcher**](V1InstancetypeMatcher.md) | InstancetypeMatcher references a instancetype that is used to fill fields in Template | [optional] **preference** | [**V1PreferenceMatcher**](V1PreferenceMatcher.md) | PreferenceMatcher references a set of preference that is used to fill fields in Template | [optional] -**run_strategy** | **str** | Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running | [optional] +**run_strategy** | **str** | Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running Following are allowed values: - \"Always\": VMI should always be running. - \"Halted\": VMI should never be running. - \"Manual\": VMI can be started/stopped using API endpoints. - \"RerunOnFailure\": VMI will initially be running and restarted if a failure occurs, but will not be restarted upon successful completion. - \"Once\": VMI will run once and not be restarted upon completion regardless if the completion is of phase Failure or Success. | [optional] **running** | **bool** | Running controls whether the associatied VirtualMachineInstance is created or not Mutually exclusive with RunStrategy Deprecated: VirtualMachineInstance field \"Running\" is now deprecated, please use RunStrategy instead. | [optional] **template** | [**V1VirtualMachineInstanceTemplateSpec**](V1VirtualMachineInstanceTemplateSpec.md) | Template is the direct specification of VirtualMachineInstance | **update_volumes_strategy** | **str** | UpdateVolumesStrategy is the strategy to apply on volumes updates | [optional] diff --git a/git_push.sh b/git_push.sh index 721fc30b..6ffa3d9b 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.7.0-beta.0-354-g05b34b9a69" + release_note="Auto-generated client v1.7.0-beta.0-470-geb520d6967" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index e5e94edb..29e1a220 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.7.0-beta.0-354-g05b34b9a69/python' + self.user_agent = 'Swagger-Codegen/v1.7.0-beta.0-470-geb520d6967/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 18a494af..6c6d6a98 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.7.0-beta.0-354-g05b34b9a69".\ + "SDK Package Version: v1.7.0-beta.0-470-geb520d6967".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_spec.py b/kubevirt/models/v1_virtual_machine_spec.py index ba530ec0..f1c0665d 100644 --- a/kubevirt/models/v1_virtual_machine_spec.py +++ b/kubevirt/models/v1_virtual_machine_spec.py @@ -150,7 +150,7 @@ def preference(self, preference): def run_strategy(self): """ Gets the run_strategy of this V1VirtualMachineSpec. - Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running + Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running Following are allowed values: - \"Always\": VMI should always be running. - \"Halted\": VMI should never be running. - \"Manual\": VMI can be started/stopped using API endpoints. - \"RerunOnFailure\": VMI will initially be running and restarted if a failure occurs, but will not be restarted upon successful completion. - \"Once\": VMI will run once and not be restarted upon completion regardless if the completion is of phase Failure or Success. :return: The run_strategy of this V1VirtualMachineSpec. :rtype: str @@ -161,7 +161,7 @@ def run_strategy(self): def run_strategy(self, run_strategy): """ Sets the run_strategy of this V1VirtualMachineSpec. - Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running + Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running Following are allowed values: - \"Always\": VMI should always be running. - \"Halted\": VMI should never be running. - \"Manual\": VMI can be started/stopped using API endpoints. - \"RerunOnFailure\": VMI will initially be running and restarted if a failure occurs, but will not be restarted upon successful completion. - \"Once\": VMI will run once and not be restarted upon completion regardless if the completion is of phase Failure or Success. :param run_strategy: The run_strategy of this V1VirtualMachineSpec. :type: str diff --git a/setup.py b/setup.py index 9638120a..251b59a8 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.7.0-beta.0-354-g05b34b9a69" +VERSION = "v1.7.0-beta.0-470-geb520d6967" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 33e2c657..4752af13 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.7.0-beta.0-354-g05b34b9a69" +"packageVersion": "v1.7.0-beta.0-470-geb520d6967" } From 2db2c68ff4284a76b22c7f683bd6b04348ae6017 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Tue, 2 Dec 2025 01:12:29 +0000 Subject: [PATCH 496/521] Client Python update by KubeVirt Prow build 1995658599711379456 --- README.md | 2 +- docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md | 2 +- docs/K8sIoApiCoreV1PodAntiAffinity.md | 2 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../models/k8s_io_api_core_v1_persistent_volume_claim_spec.py | 4 ++-- kubevirt/models/k8s_io_api_core_v1_pod_anti_affinity.py | 4 ++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 5ec626ed..045442c0 100644 --- a/README.md +++ b/README.md @@ -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.7.0-beta.0-470-geb520d6967 +- Package version: v1.7.0-beta.0-518-gd9878f5230 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md b/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md index 3cef4bd6..7d683ecb 100644 --- a/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md +++ b/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **resources** | [**K8sIoApiCoreV1VolumeResourceRequirements**](K8sIoApiCoreV1VolumeResourceRequirements.md) | resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources | [optional] **selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | selector is a label query over volumes to consider for binding. | [optional] **storage_class_name** | **str** | storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] -**volume_attributes_class_name** | **str** | volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default). | [optional] +**volume_attributes_class_name** | **str** | volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string or nil value indicates that no VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state, this field can be reset to its previous value (including nil) to cancel the modification. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ | [optional] **volume_mode** | **str** | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. - `\"FromStorageProfile\"` means the volume mode will be auto selected by CDI according to a matching StorageProfile | [optional] **volume_name** | **str** | volumeName is the binding reference to the PersistentVolume backing this claim. | [optional] diff --git a/docs/K8sIoApiCoreV1PodAntiAffinity.md b/docs/K8sIoApiCoreV1PodAntiAffinity.md index 4df8df10..9fca15bb 100644 --- a/docs/K8sIoApiCoreV1PodAntiAffinity.md +++ b/docs/K8sIoApiCoreV1PodAntiAffinity.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**preferred_during_scheduling_ignored_during_execution** | [**list[K8sIoApiCoreV1WeightedPodAffinityTerm]**](K8sIoApiCoreV1WeightedPodAffinityTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. | [optional] +**preferred_during_scheduling_ignored_during_execution** | [**list[K8sIoApiCoreV1WeightedPodAffinityTerm]**](K8sIoApiCoreV1WeightedPodAffinityTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and subtracting \"weight\" from the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. | [optional] **required_during_scheduling_ignored_during_execution** | [**list[K8sIoApiCoreV1PodAffinityTerm]**](K8sIoApiCoreV1PodAffinityTerm.md) | If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 6ffa3d9b..c8423fbf 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.7.0-beta.0-470-geb520d6967" + release_note="Auto-generated client v1.7.0-beta.0-518-gd9878f5230" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 29e1a220..e4a840c8 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.7.0-beta.0-470-geb520d6967/python' + self.user_agent = 'Swagger-Codegen/v1.7.0-beta.0-518-gd9878f5230/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 6c6d6a98..bb218ec3 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.7.0-beta.0-470-geb520d6967".\ + "SDK Package Version: v1.7.0-beta.0-518-gd9878f5230".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py index 64719f17..9653d39c 100644 --- a/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py +++ b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py @@ -237,7 +237,7 @@ def storage_class_name(self, storage_class_name): def volume_attributes_class_name(self): """ Gets the volume_attributes_class_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default). + volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string or nil value indicates that no VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state, this field can be reset to its previous value (including nil) to cancel the modification. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ :return: The volume_attributes_class_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :rtype: str @@ -248,7 +248,7 @@ def volume_attributes_class_name(self): def volume_attributes_class_name(self, volume_attributes_class_name): """ Sets the volume_attributes_class_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default). + volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string or nil value indicates that no VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state, this field can be reset to its previous value (including nil) to cancel the modification. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ :param volume_attributes_class_name: The volume_attributes_class_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :type: str diff --git a/kubevirt/models/k8s_io_api_core_v1_pod_anti_affinity.py b/kubevirt/models/k8s_io_api_core_v1_pod_anti_affinity.py index 69bdeee2..9f5b05a1 100644 --- a/kubevirt/models/k8s_io_api_core_v1_pod_anti_affinity.py +++ b/kubevirt/models/k8s_io_api_core_v1_pod_anti_affinity.py @@ -57,7 +57,7 @@ def __init__(self, preferred_during_scheduling_ignored_during_execution=None, re def preferred_during_scheduling_ignored_during_execution(self): """ Gets the preferred_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1PodAntiAffinity. - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and subtracting \"weight\" from the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. :return: The preferred_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1PodAntiAffinity. :rtype: list[K8sIoApiCoreV1WeightedPodAffinityTerm] @@ -68,7 +68,7 @@ def preferred_during_scheduling_ignored_during_execution(self): def preferred_during_scheduling_ignored_during_execution(self, preferred_during_scheduling_ignored_during_execution): """ Sets the preferred_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1PodAntiAffinity. - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and subtracting \"weight\" from the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. :param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1PodAntiAffinity. :type: list[K8sIoApiCoreV1WeightedPodAffinityTerm] diff --git a/setup.py b/setup.py index 251b59a8..83b5a6f9 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.7.0-beta.0-470-geb520d6967" +VERSION = "v1.7.0-beta.0-518-gd9878f5230" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 4752af13..f1aa1443 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.7.0-beta.0-470-geb520d6967" +"packageVersion": "v1.7.0-beta.0-518-gd9878f5230" } From d163ea70f509868ee751fd75ce8003a086e0cd27 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Tue, 9 Dec 2025 08:35:55 +0000 Subject: [PATCH 497/521] Client Python update by KubeVirt Prow build 1998306889338720256 --- README.md | 23 +- docs/DefaultApi.md | 788 ++++++- docs/V1ChangedBlockTrackingStatus.md | 1 + docs/V1VirtualMachineInstanceBackupStatus.md | 14 + docs/V1alpha1BackupOptions.md | 15 + docs/V1alpha1Condition.md | 13 + docs/V1alpha1VirtualMachineBackup.md | 14 + docs/V1alpha1VirtualMachineBackupList.md | 13 + docs/V1alpha1VirtualMachineBackupSpec.md | 14 + docs/V1alpha1VirtualMachineBackupStatus.md | 11 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 23 + kubevirt/__init__.py | 7 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 1893 +++++++++++++++-- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 7 + .../v1_changed_block_tracking_status.py | 30 +- ..._virtual_machine_instance_backup_status.py | 237 +++ kubevirt/models/v1alpha1_backup_options.py | 253 +++ kubevirt/models/v1alpha1_condition.py | 203 ++ .../models/v1alpha1_virtual_machine_backup.py | 232 ++ .../v1alpha1_virtual_machine_backup_list.py | 207 ++ .../v1alpha1_virtual_machine_backup_spec.py | 237 +++ .../v1alpha1_virtual_machine_backup_status.py | 151 ++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 112 + ..._virtual_machine_instance_backup_status.py | 44 + test/test_v1alpha1_backup_options.py | 44 + test/test_v1alpha1_condition.py | 44 + test/test_v1alpha1_virtual_machine_backup.py | 44 + ...st_v1alpha1_virtual_machine_backup_list.py | 44 + ...st_v1alpha1_virtual_machine_backup_spec.py | 44 + ..._v1alpha1_virtual_machine_backup_status.py | 44 + 35 files changed, 4676 insertions(+), 140 deletions(-) create mode 100644 docs/V1VirtualMachineInstanceBackupStatus.md create mode 100644 docs/V1alpha1BackupOptions.md create mode 100644 docs/V1alpha1Condition.md create mode 100644 docs/V1alpha1VirtualMachineBackup.md create mode 100644 docs/V1alpha1VirtualMachineBackupList.md create mode 100644 docs/V1alpha1VirtualMachineBackupSpec.md create mode 100644 docs/V1alpha1VirtualMachineBackupStatus.md create mode 100644 kubevirt/models/v1_virtual_machine_instance_backup_status.py create mode 100644 kubevirt/models/v1alpha1_backup_options.py create mode 100644 kubevirt/models/v1alpha1_condition.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_backup.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_backup_list.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_backup_spec.py create mode 100644 kubevirt/models/v1alpha1_virtual_machine_backup_status.py create mode 100644 test/test_v1_virtual_machine_instance_backup_status.py create mode 100644 test/test_v1alpha1_backup_options.py create mode 100644 test/test_v1alpha1_condition.py create mode 100644 test/test_v1alpha1_virtual_machine_backup.py create mode 100644 test/test_v1alpha1_virtual_machine_backup_list.py create mode 100644 test/test_v1alpha1_virtual_machine_backup_spec.py create mode 100644 test/test_v1alpha1_virtual_machine_backup_status.py diff --git a/README.md b/README.md index 045442c0..85ab031e 100644 --- a/README.md +++ b/README.md @@ -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.7.0-beta.0-518-gd9878f5230 +- Package version: v1.7.0-beta.0-577-gc429950016 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -72,6 +72,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**create_migration_policy**](docs/DefaultApi.md#create_migration_policy) | **POST** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | *DefaultApi* | [**create_namespaced_kube_virt**](docs/DefaultApi.md#create_namespaced_kube_virt) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt | *DefaultApi* | [**create_namespaced_virtual_machine**](docs/DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines | +*DefaultApi* | [**create_namespaced_virtual_machine_backup**](docs/DefaultApi.md#create_namespaced_virtual_machine_backup) | **POST** /apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups | *DefaultApi* | [**create_namespaced_virtual_machine_export**](docs/DefaultApi.md#create_namespaced_virtual_machine_export) | **POST** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports | *DefaultApi* | [**create_namespaced_virtual_machine_instance**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances | *DefaultApi* | [**create_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations | @@ -89,6 +90,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_collection_migration_policy**](docs/DefaultApi.md#delete_collection_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | *DefaultApi* | [**delete_collection_namespaced_kube_virt**](docs/DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt | *DefaultApi* | [**delete_collection_namespaced_virtual_machine**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_backup**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_backup) | **DELETE** /apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_export**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations | @@ -106,6 +108,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_migration_policy**](docs/DefaultApi.md#delete_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | *DefaultApi* | [**delete_namespaced_kube_virt**](docs/DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | *DefaultApi* | [**delete_namespaced_virtual_machine**](docs/DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | +*DefaultApi* | [**delete_namespaced_virtual_machine_backup**](docs/DefaultApi.md#delete_namespaced_virtual_machine_backup) | **DELETE** /apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups/{name} | *DefaultApi* | [**delete_namespaced_virtual_machine_export**](docs/DefaultApi.md#delete_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | @@ -122,6 +125,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | *DefaultApi* | [**func15**](docs/DefaultApi.md#func15) | **GET** /healthz | *DefaultApi* | [**func6**](docs/DefaultApi.md#func6) | **GET** /openapi/v2 | +*DefaultApi* | [**get_api_group_backup_kubevirt_io**](docs/DefaultApi.md#get_api_group_backup_kubevirt_io) | **GET** /apis/backup.kubevirt.io/ | *DefaultApi* | [**get_api_group_clone_kubevirt_io**](docs/DefaultApi.md#get_api_group_clone_kubevirt_io) | **GET** /apis/clone.kubevirt.io/ | *DefaultApi* | [**get_api_group_export_kubevirt_io**](docs/DefaultApi.md#get_api_group_export_kubevirt_io) | **GET** /apis/export.kubevirt.io/ | *DefaultApi* | [**get_api_group_instancetype_kubevirt_io**](docs/DefaultApi.md#get_api_group_instancetype_kubevirt_io) | **GET** /apis/instancetype.kubevirt.io/ | @@ -130,6 +134,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**get_api_group_migrations_kubevirt_io**](docs/DefaultApi.md#get_api_group_migrations_kubevirt_io) | **GET** /apis/migrations.kubevirt.io/ | *DefaultApi* | [**get_api_group_pool_kubevirt_io**](docs/DefaultApi.md#get_api_group_pool_kubevirt_io) | **GET** /apis/pool.kubevirt.io/ | *DefaultApi* | [**get_api_group_snapshot_kubevirt_io**](docs/DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | +*DefaultApi* | [**get_api_resources_backup_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_backup_kubevirt_io_v1alpha1) | **GET** /apis/backup.kubevirt.io/v1alpha1/ | *DefaultApi* | [**get_api_resources_clone_kubevirt_io_v1beta1**](docs/DefaultApi.md#get_api_resources_clone_kubevirt_io_v1beta1) | **GET** /apis/clone.kubevirt.io/v1beta1/ | *DefaultApi* | [**get_api_resources_export_kubevirt_io_v1beta1**](docs/DefaultApi.md#get_api_resources_export_kubevirt_io_v1beta1) | **GET** /apis/export.kubevirt.io/v1beta1/ | *DefaultApi* | [**get_api_resources_instancetype_kubevirt_io_v1beta1**](docs/DefaultApi.md#get_api_resources_instancetype_kubevirt_io_v1beta1) | **GET** /apis/instancetype.kubevirt.io/v1beta1/ | @@ -145,6 +150,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_migration_policy**](docs/DefaultApi.md#list_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | *DefaultApi* | [**list_namespaced_kube_virt**](docs/DefaultApi.md#list_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt | *DefaultApi* | [**list_namespaced_virtual_machine**](docs/DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines | +*DefaultApi* | [**list_namespaced_virtual_machine_backup**](docs/DefaultApi.md#list_namespaced_virtual_machine_backup) | **GET** /apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups | *DefaultApi* | [**list_namespaced_virtual_machine_export**](docs/DefaultApi.md#list_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports | *DefaultApi* | [**list_namespaced_virtual_machine_instance**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances | *DefaultApi* | [**list_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations | @@ -156,6 +162,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_namespaced_virtual_machine_restore**](docs/DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | *DefaultApi* | [**list_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | *DefaultApi* | [**list_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents | +*DefaultApi* | [**list_virtual_machine_backup_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_backup_for_all_namespaces) | **GET** /apis/backup.kubevirt.io/v1alpha1/virtualmachinebackups | *DefaultApi* | [**list_virtual_machine_clone**](docs/DefaultApi.md#list_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones | *DefaultApi* | [**list_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#list_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | *DefaultApi* | [**list_virtual_machine_cluster_preference**](docs/DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | @@ -174,6 +181,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**patch_migration_policy**](docs/DefaultApi.md#patch_migration_policy) | **PATCH** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | *DefaultApi* | [**patch_namespaced_kube_virt**](docs/DefaultApi.md#patch_namespaced_kube_virt) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | *DefaultApi* | [**patch_namespaced_virtual_machine**](docs/DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | +*DefaultApi* | [**patch_namespaced_virtual_machine_backup**](docs/DefaultApi.md#patch_namespaced_virtual_machine_backup) | **PATCH** /apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups/{name} | *DefaultApi* | [**patch_namespaced_virtual_machine_export**](docs/DefaultApi.md#patch_namespaced_virtual_machine_export) | **PATCH** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | @@ -191,6 +199,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**read_migration_policy**](docs/DefaultApi.md#read_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | *DefaultApi* | [**read_namespaced_kube_virt**](docs/DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | *DefaultApi* | [**read_namespaced_virtual_machine**](docs/DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | +*DefaultApi* | [**read_namespaced_virtual_machine_backup**](docs/DefaultApi.md#read_namespaced_virtual_machine_backup) | **GET** /apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups/{name} | *DefaultApi* | [**read_namespaced_virtual_machine_export**](docs/DefaultApi.md#read_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name} | *DefaultApi* | [**read_namespaced_virtual_machine_instance**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | *DefaultApi* | [**read_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | @@ -208,6 +217,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**replace_migration_policy**](docs/DefaultApi.md#replace_migration_policy) | **PUT** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | *DefaultApi* | [**replace_namespaced_kube_virt**](docs/DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | *DefaultApi* | [**replace_namespaced_virtual_machine**](docs/DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | +*DefaultApi* | [**replace_namespaced_virtual_machine_backup**](docs/DefaultApi.md#replace_namespaced_virtual_machine_backup) | **PUT** /apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups/{name} | *DefaultApi* | [**replace_namespaced_virtual_machine_export**](docs/DefaultApi.md#replace_namespaced_virtual_machine_export) | **PUT** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | @@ -222,6 +232,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**replace_virtual_machine_clone**](docs/DefaultApi.md#replace_virtual_machine_clone) | **PUT** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name} | *DefaultApi* | [**replace_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#replace_virtual_machine_cluster_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | *DefaultApi* | [**replace_virtual_machine_cluster_preference**](docs/DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | +*DefaultApi* | [**v1_backup**](docs/DefaultApi.md#v1_backup) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/backup | *DefaultApi* | [**v1_check_health**](docs/DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | *DefaultApi* | [**v1_console**](docs/DefaultApi.md#v1_console) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/console | *DefaultApi* | [**v1_expand_spec**](docs/DefaultApi.md#v1_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/expand-vm-spec | @@ -250,6 +261,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1_vnc**](docs/DefaultApi.md#v1_vnc) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vnc | *DefaultApi* | [**v1_vnc_screenshot**](docs/DefaultApi.md#v1_vnc_screenshot) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vnc/screenshot | *DefaultApi* | [**v1_vsock**](docs/DefaultApi.md#v1_vsock) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vsock | +*DefaultApi* | [**v1alpha3_backup**](docs/DefaultApi.md#v1alpha3_backup) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/backup | *DefaultApi* | [**v1alpha3_check_health**](docs/DefaultApi.md#v1alpha3_check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha3/healthz | *DefaultApi* | [**v1alpha3_console**](docs/DefaultApi.md#v1alpha3_console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/console | *DefaultApi* | [**v1alpha3_expand_spec**](docs/DefaultApi.md#v1alpha3_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/expand-vm-spec | @@ -317,6 +329,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**watch_migration_policy_list_for_all_namespaces**](docs/DefaultApi.md#watch_migration_policy_list_for_all_namespaces) | **GET** /apis/migrations.kubevirt.io/v1alpha1/watch/migrationpolicies | *DefaultApi* | [**watch_namespaced_kube_virt**](docs/DefaultApi.md#watch_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/kubevirt | *DefaultApi* | [**watch_namespaced_virtual_machine**](docs/DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachines | +*DefaultApi* | [**watch_namespaced_virtual_machine_backup**](docs/DefaultApi.md#watch_namespaced_virtual_machine_backup) | **GET** /apis/backup.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinebackups | *DefaultApi* | [**watch_namespaced_virtual_machine_export**](docs/DefaultApi.md#watch_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachineexports | *DefaultApi* | [**watch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstances | *DefaultApi* | [**watch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancemigrations | @@ -328,6 +341,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**watch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinerestores | *DefaultApi* | [**watch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinesnapshots | *DefaultApi* | [**watch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinesnapshotcontents | +*DefaultApi* | [**watch_virtual_machine_backup_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_backup_list_for_all_namespaces) | **GET** /apis/backup.kubevirt.io/v1alpha1/watch/virtualmachinebackups | *DefaultApi* | [**watch_virtual_machine_clone_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_clone_list_for_all_namespaces) | **GET** /apis/clone.kubevirt.io/v1beta1/watch/virtualmachineclones | *DefaultApi* | [**watch_virtual_machine_cluster_instancetype_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterinstancetypes | *DefaultApi* | [**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterpreferences | @@ -602,6 +616,7 @@ Class | Method | HTTP request | Description - [V1VirtualMachine](docs/V1VirtualMachine.md) - [V1VirtualMachineCondition](docs/V1VirtualMachineCondition.md) - [V1VirtualMachineInstance](docs/V1VirtualMachineInstance.md) + - [V1VirtualMachineInstanceBackupStatus](docs/V1VirtualMachineInstanceBackupStatus.md) - [V1VirtualMachineInstanceCondition](docs/V1VirtualMachineInstanceCondition.md) - [V1VirtualMachineInstanceFileSystem](docs/V1VirtualMachineInstanceFileSystem.md) - [V1VirtualMachineInstanceFileSystemDisk](docs/V1VirtualMachineInstanceFileSystemDisk.md) @@ -651,11 +666,17 @@ Class | Method | HTTP request | Description - [V1VolumeStatus](docs/V1VolumeStatus.md) - [V1VolumeUpdateState](docs/V1VolumeUpdateState.md) - [V1Watchdog](docs/V1Watchdog.md) + - [V1alpha1BackupOptions](docs/V1alpha1BackupOptions.md) + - [V1alpha1Condition](docs/V1alpha1Condition.md) - [V1alpha1MigrationPolicy](docs/V1alpha1MigrationPolicy.md) - [V1alpha1MigrationPolicyList](docs/V1alpha1MigrationPolicyList.md) - [V1alpha1MigrationPolicySpec](docs/V1alpha1MigrationPolicySpec.md) - [V1alpha1MigrationPolicyStatus](docs/V1alpha1MigrationPolicyStatus.md) - [V1alpha1Selectors](docs/V1alpha1Selectors.md) + - [V1alpha1VirtualMachineBackup](docs/V1alpha1VirtualMachineBackup.md) + - [V1alpha1VirtualMachineBackupList](docs/V1alpha1VirtualMachineBackupList.md) + - [V1alpha1VirtualMachineBackupSpec](docs/V1alpha1VirtualMachineBackupSpec.md) + - [V1alpha1VirtualMachineBackupStatus](docs/V1alpha1VirtualMachineBackupStatus.md) - [V1beta1CPUInstancetype](docs/V1beta1CPUInstancetype.md) - [V1beta1CPUPreferenceRequirement](docs/V1beta1CPUPreferenceRequirement.md) - [V1beta1CPUPreferences](docs/V1beta1CPUPreferences.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 75152689..1efc3503 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -7,6 +7,7 @@ Method | HTTP request | Description [**create_migration_policy**](DefaultApi.md#create_migration_policy) | **POST** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | [**create_namespaced_kube_virt**](DefaultApi.md#create_namespaced_kube_virt) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt | [**create_namespaced_virtual_machine**](DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines | +[**create_namespaced_virtual_machine_backup**](DefaultApi.md#create_namespaced_virtual_machine_backup) | **POST** /apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups | [**create_namespaced_virtual_machine_export**](DefaultApi.md#create_namespaced_virtual_machine_export) | **POST** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports | [**create_namespaced_virtual_machine_instance**](DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances | [**create_namespaced_virtual_machine_instance_migration**](DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations | @@ -24,6 +25,7 @@ Method | HTTP request | Description [**delete_collection_migration_policy**](DefaultApi.md#delete_collection_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | [**delete_collection_namespaced_kube_virt**](DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt | [**delete_collection_namespaced_virtual_machine**](DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines | +[**delete_collection_namespaced_virtual_machine_backup**](DefaultApi.md#delete_collection_namespaced_virtual_machine_backup) | **DELETE** /apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups | [**delete_collection_namespaced_virtual_machine_export**](DefaultApi.md#delete_collection_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports | [**delete_collection_namespaced_virtual_machine_instance**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances | [**delete_collection_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations | @@ -41,6 +43,7 @@ Method | HTTP request | Description [**delete_migration_policy**](DefaultApi.md#delete_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | [**delete_namespaced_kube_virt**](DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | [**delete_namespaced_virtual_machine**](DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | +[**delete_namespaced_virtual_machine_backup**](DefaultApi.md#delete_namespaced_virtual_machine_backup) | **DELETE** /apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups/{name} | [**delete_namespaced_virtual_machine_export**](DefaultApi.md#delete_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name} | [**delete_namespaced_virtual_machine_instance**](DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | [**delete_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | @@ -57,6 +60,7 @@ Method | HTTP request | Description [**delete_virtual_machine_cluster_preference**](DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | [**func15**](DefaultApi.md#func15) | **GET** /healthz | [**func6**](DefaultApi.md#func6) | **GET** /openapi/v2 | +[**get_api_group_backup_kubevirt_io**](DefaultApi.md#get_api_group_backup_kubevirt_io) | **GET** /apis/backup.kubevirt.io/ | [**get_api_group_clone_kubevirt_io**](DefaultApi.md#get_api_group_clone_kubevirt_io) | **GET** /apis/clone.kubevirt.io/ | [**get_api_group_export_kubevirt_io**](DefaultApi.md#get_api_group_export_kubevirt_io) | **GET** /apis/export.kubevirt.io/ | [**get_api_group_instancetype_kubevirt_io**](DefaultApi.md#get_api_group_instancetype_kubevirt_io) | **GET** /apis/instancetype.kubevirt.io/ | @@ -65,6 +69,7 @@ Method | HTTP request | Description [**get_api_group_migrations_kubevirt_io**](DefaultApi.md#get_api_group_migrations_kubevirt_io) | **GET** /apis/migrations.kubevirt.io/ | [**get_api_group_pool_kubevirt_io**](DefaultApi.md#get_api_group_pool_kubevirt_io) | **GET** /apis/pool.kubevirt.io/ | [**get_api_group_snapshot_kubevirt_io**](DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | +[**get_api_resources_backup_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_backup_kubevirt_io_v1alpha1) | **GET** /apis/backup.kubevirt.io/v1alpha1/ | [**get_api_resources_clone_kubevirt_io_v1beta1**](DefaultApi.md#get_api_resources_clone_kubevirt_io_v1beta1) | **GET** /apis/clone.kubevirt.io/v1beta1/ | [**get_api_resources_export_kubevirt_io_v1beta1**](DefaultApi.md#get_api_resources_export_kubevirt_io_v1beta1) | **GET** /apis/export.kubevirt.io/v1beta1/ | [**get_api_resources_instancetype_kubevirt_io_v1beta1**](DefaultApi.md#get_api_resources_instancetype_kubevirt_io_v1beta1) | **GET** /apis/instancetype.kubevirt.io/v1beta1/ | @@ -80,6 +85,7 @@ Method | HTTP request | Description [**list_migration_policy**](DefaultApi.md#list_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | [**list_namespaced_kube_virt**](DefaultApi.md#list_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt | [**list_namespaced_virtual_machine**](DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines | +[**list_namespaced_virtual_machine_backup**](DefaultApi.md#list_namespaced_virtual_machine_backup) | **GET** /apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups | [**list_namespaced_virtual_machine_export**](DefaultApi.md#list_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports | [**list_namespaced_virtual_machine_instance**](DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances | [**list_namespaced_virtual_machine_instance_migration**](DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations | @@ -91,6 +97,7 @@ Method | HTTP request | Description [**list_namespaced_virtual_machine_restore**](DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | [**list_namespaced_virtual_machine_snapshot**](DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | [**list_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents | +[**list_virtual_machine_backup_for_all_namespaces**](DefaultApi.md#list_virtual_machine_backup_for_all_namespaces) | **GET** /apis/backup.kubevirt.io/v1alpha1/virtualmachinebackups | [**list_virtual_machine_clone**](DefaultApi.md#list_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones | [**list_virtual_machine_cluster_instancetype**](DefaultApi.md#list_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | [**list_virtual_machine_cluster_preference**](DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | @@ -109,6 +116,7 @@ Method | HTTP request | Description [**patch_migration_policy**](DefaultApi.md#patch_migration_policy) | **PATCH** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | [**patch_namespaced_kube_virt**](DefaultApi.md#patch_namespaced_kube_virt) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | [**patch_namespaced_virtual_machine**](DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | +[**patch_namespaced_virtual_machine_backup**](DefaultApi.md#patch_namespaced_virtual_machine_backup) | **PATCH** /apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups/{name} | [**patch_namespaced_virtual_machine_export**](DefaultApi.md#patch_namespaced_virtual_machine_export) | **PATCH** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name} | [**patch_namespaced_virtual_machine_instance**](DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | [**patch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | @@ -126,6 +134,7 @@ Method | HTTP request | Description [**read_migration_policy**](DefaultApi.md#read_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | [**read_namespaced_kube_virt**](DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | [**read_namespaced_virtual_machine**](DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | +[**read_namespaced_virtual_machine_backup**](DefaultApi.md#read_namespaced_virtual_machine_backup) | **GET** /apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups/{name} | [**read_namespaced_virtual_machine_export**](DefaultApi.md#read_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name} | [**read_namespaced_virtual_machine_instance**](DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | [**read_namespaced_virtual_machine_instance_migration**](DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | @@ -143,6 +152,7 @@ Method | HTTP request | Description [**replace_migration_policy**](DefaultApi.md#replace_migration_policy) | **PUT** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | [**replace_namespaced_kube_virt**](DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | [**replace_namespaced_virtual_machine**](DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | +[**replace_namespaced_virtual_machine_backup**](DefaultApi.md#replace_namespaced_virtual_machine_backup) | **PUT** /apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups/{name} | [**replace_namespaced_virtual_machine_export**](DefaultApi.md#replace_namespaced_virtual_machine_export) | **PUT** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name} | [**replace_namespaced_virtual_machine_instance**](DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | [**replace_namespaced_virtual_machine_instance_migration**](DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | @@ -157,6 +167,7 @@ Method | HTTP request | Description [**replace_virtual_machine_clone**](DefaultApi.md#replace_virtual_machine_clone) | **PUT** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name} | [**replace_virtual_machine_cluster_instancetype**](DefaultApi.md#replace_virtual_machine_cluster_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | [**replace_virtual_machine_cluster_preference**](DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | +[**v1_backup**](DefaultApi.md#v1_backup) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/backup | [**v1_check_health**](DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | [**v1_console**](DefaultApi.md#v1_console) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/console | [**v1_expand_spec**](DefaultApi.md#v1_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/expand-vm-spec | @@ -185,6 +196,7 @@ Method | HTTP request | Description [**v1_vnc**](DefaultApi.md#v1_vnc) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vnc | [**v1_vnc_screenshot**](DefaultApi.md#v1_vnc_screenshot) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vnc/screenshot | [**v1_vsock**](DefaultApi.md#v1_vsock) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vsock | +[**v1alpha3_backup**](DefaultApi.md#v1alpha3_backup) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/backup | [**v1alpha3_check_health**](DefaultApi.md#v1alpha3_check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha3/healthz | [**v1alpha3_console**](DefaultApi.md#v1alpha3_console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/console | [**v1alpha3_expand_spec**](DefaultApi.md#v1alpha3_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/expand-vm-spec | @@ -252,6 +264,7 @@ Method | HTTP request | Description [**watch_migration_policy_list_for_all_namespaces**](DefaultApi.md#watch_migration_policy_list_for_all_namespaces) | **GET** /apis/migrations.kubevirt.io/v1alpha1/watch/migrationpolicies | [**watch_namespaced_kube_virt**](DefaultApi.md#watch_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/kubevirt | [**watch_namespaced_virtual_machine**](DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachines | +[**watch_namespaced_virtual_machine_backup**](DefaultApi.md#watch_namespaced_virtual_machine_backup) | **GET** /apis/backup.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinebackups | [**watch_namespaced_virtual_machine_export**](DefaultApi.md#watch_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachineexports | [**watch_namespaced_virtual_machine_instance**](DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstances | [**watch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancemigrations | @@ -263,6 +276,7 @@ Method | HTTP request | Description [**watch_namespaced_virtual_machine_restore**](DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinerestores | [**watch_namespaced_virtual_machine_snapshot**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinesnapshots | [**watch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinesnapshotcontents | +[**watch_virtual_machine_backup_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_backup_list_for_all_namespaces) | **GET** /apis/backup.kubevirt.io/v1alpha1/watch/virtualmachinebackups | [**watch_virtual_machine_clone_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_clone_list_for_all_namespaces) | **GET** /apis/clone.kubevirt.io/v1beta1/watch/virtualmachineclones | [**watch_virtual_machine_cluster_instancetype_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterinstancetypes | [**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterpreferences | @@ -425,6 +439,55 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **create_namespaced_virtual_machine_backup** +> V1alpha1VirtualMachineBackup create_namespaced_virtual_machine_backup(body, namespace) + + + +Create a VirtualMachineBackup object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +body = kubevirt.V1alpha1VirtualMachineBackup() # V1alpha1VirtualMachineBackup | +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.create_namespaced_virtual_machine_backup(body, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->create_namespaced_virtual_machine_backup: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1alpha1VirtualMachineBackup**](V1alpha1VirtualMachineBackup.md)| | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +[**V1alpha1VirtualMachineBackup**](V1alpha1VirtualMachineBackup.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **create_namespaced_virtual_machine_export** > V1beta1VirtualMachineExport create_namespaced_virtual_machine_export(body, namespace) @@ -1288,6 +1351,67 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_collection_namespaced_virtual_machine_backup** +> K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_backup(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Delete a collection of VirtualMachineBackup objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_namespaced_virtual_machine_backup(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_backup: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_collection_namespaced_virtual_machine_export** > K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_export(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -2311,6 +2435,63 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_namespaced_virtual_machine_backup** +> K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_backup(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + + + +Delete a VirtualMachineBackup object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.K8sIoApimachineryPkgApisMetaV1DeleteOptions() # K8sIoApimachineryPkgApisMetaV1DeleteOptions | +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + +try: + api_response = api_instance.delete_namespaced_virtual_machine_backup(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_backup: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**K8sIoApimachineryPkgApisMetaV1DeleteOptions**](K8sIoApimachineryPkgApisMetaV1DeleteOptions.md)| | + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_namespaced_virtual_machine_export** > K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_export(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -3185,6 +3366,49 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_api_group_backup_kubevirt_io** +> K8sIoApimachineryPkgApisMetaV1APIGroup get_api_group_backup_kubevirt_io() + + + +Get a KubeVirt API group + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.get_api_group_backup_kubevirt_io() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->get_api_group_backup_kubevirt_io: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1APIGroup**](K8sIoApimachineryPkgApisMetaV1APIGroup.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_api_group_clone_kubevirt_io** > K8sIoApimachineryPkgApisMetaV1APIGroup get_api_group_clone_kubevirt_io() @@ -3529,6 +3753,49 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_api_resources_backup_kubevirt_io_v1alpha1** +> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_backup_kubevirt_io_v1alpha1() + + + +Get KubeVirt API Resources + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.get_api_resources_backup_kubevirt_io_v1alpha1() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->get_api_resources_backup_kubevirt_io_v1alpha1: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1APIResourceList**](K8sIoApimachineryPkgApisMetaV1APIResourceList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_api_resources_clone_kubevirt_io_v1beta1** > K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_clone_kubevirt_io_v1beta1() @@ -4247,6 +4514,69 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **list_namespaced_virtual_machine_backup** +> V1alpha1VirtualMachineBackupList list_namespaced_virtual_machine_backup(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Get a list of VirtualMachineBackup objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_namespaced_virtual_machine_backup(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->list_namespaced_virtual_machine_backup: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1VirtualMachineBackupList**](V1alpha1VirtualMachineBackupList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **list_namespaced_virtual_machine_export** > V1beta1VirtualMachineExportList list_namespaced_virtual_machine_export(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -4940,6 +5270,67 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **list_virtual_machine_backup_for_all_namespaces** +> V1alpha1VirtualMachineBackupList list_virtual_machine_backup_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Get a list of all VirtualMachineBackup objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_virtual_machine_backup_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->list_virtual_machine_backup_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1VirtualMachineBackupList**](V1alpha1VirtualMachineBackupList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **list_virtual_machine_clone** > V1beta1VirtualMachineCloneList list_virtual_machine_clone(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -6006,6 +6397,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **patch_namespaced_virtual_machine_backup** +> V1alpha1VirtualMachineBackup patch_namespaced_virtual_machine_backup(name, namespace, body) + + + +Patch a VirtualMachineBackup object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | + +try: + api_response = api_instance.patch_namespaced_virtual_machine_backup(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_backup: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**K8sIoApimachineryPkgApisMetaV1Patch**](K8sIoApimachineryPkgApisMetaV1Patch.md)| | + +### Return type + +[**V1alpha1VirtualMachineBackup**](V1alpha1VirtualMachineBackup.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **patch_namespaced_virtual_machine_export** > V1beta1VirtualMachineExport patch_namespaced_virtual_machine_export(name, namespace, body) @@ -6791,7 +7233,60 @@ try: api_response = api_instance.read_namespaced_kube_virt(name, namespace, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->read_namespaced_kube_virt: %s\n" % e) + print("Exception when calling DefaultApi->read_namespaced_kube_virt: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **exact** | **bool**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] + **export** | **bool**| Should this value be exported. Export strips fields that a user can not specify. | [optional] + +### Return type + +[**V1KubeVirt**](V1KubeVirt.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_virtual_machine** +> V1VirtualMachine read_namespaced_virtual_machine(name, namespace, exact=exact, export=export) + + + +Get a VirtualMachine object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. (optional) +export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) + +try: + api_response = api_instance.read_namespaced_virtual_machine(name, namespace, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->read_namespaced_virtual_machine: %s\n" % e) ``` ### Parameters @@ -6805,7 +7300,7 @@ Name | Type | Description | Notes ### Return type -[**V1KubeVirt**](V1KubeVirt.md) +[**V1VirtualMachine**](V1VirtualMachine.md) ### Authorization @@ -6818,12 +7313,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_namespaced_virtual_machine** -> V1VirtualMachine read_namespaced_virtual_machine(name, namespace, exact=exact, export=export) +# **read_namespaced_virtual_machine_backup** +> V1alpha1VirtualMachineBackup read_namespaced_virtual_machine_backup(name, namespace, exact=exact, export=export) -Get a VirtualMachine object. +Get a VirtualMachineBackup object. ### Example ```python @@ -6841,10 +7336,10 @@ exact = true # bool | Should the export be exact. Exact export maintains cluster export = true # bool | Should this value be exported. Export strips fields that a user can not specify. (optional) try: - api_response = api_instance.read_namespaced_virtual_machine(name, namespace, exact=exact, export=export) + api_response = api_instance.read_namespaced_virtual_machine_backup(name, namespace, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->read_namespaced_virtual_machine: %s\n" % e) + print("Exception when calling DefaultApi->read_namespaced_virtual_machine_backup: %s\n" % e) ``` ### Parameters @@ -6858,7 +7353,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachine**](V1VirtualMachine.md) +[**V1alpha1VirtualMachineBackup**](V1alpha1VirtualMachineBackup.md) ### Authorization @@ -7758,6 +8253,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **replace_namespaced_virtual_machine_backup** +> V1alpha1VirtualMachineBackup replace_namespaced_virtual_machine_backup(name, namespace, body) + + + +Update a VirtualMachineBackup object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1alpha1VirtualMachineBackup() # V1alpha1VirtualMachineBackup | + +try: + api_response = api_instance.replace_namespaced_virtual_machine_backup(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_backup: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1VirtualMachineBackup**](V1alpha1VirtualMachineBackup.md)| | + +### Return type + +[**V1alpha1VirtualMachineBackup**](V1alpha1VirtualMachineBackup.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **replace_namespaced_virtual_machine_export** > V1beta1VirtualMachineExport replace_namespaced_virtual_machine_export(name, namespace, body) @@ -8466,6 +9012,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1_backup** +> str v1_backup(name, namespace, body) + + + +Initiate a VirtualMachineInstance backup. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1alpha1BackupOptions() # V1alpha1BackupOptions | + +try: + api_response = api_instance.v1_backup(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1_backup: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1BackupOptions**](V1alpha1BackupOptions.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1_check_health** > str v1_check_health() @@ -9831,6 +10428,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3_backup** +> str v1alpha3_backup(name, namespace, body) + + + +Initiate a VirtualMachineInstance backup. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1alpha1BackupOptions() # V1alpha1BackupOptions | + +try: + api_response = api_instance.v1alpha3_backup(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_backup: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1BackupOptions**](V1alpha1BackupOptions.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3_check_health** > str v1alpha3_check_health() @@ -13145,6 +13793,69 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **watch_namespaced_virtual_machine_backup** +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_backup(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Watch a VirtualMachineBackup object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_namespaced_virtual_machine_backup(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->watch_namespaced_virtual_machine_backup: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **watch_namespaced_virtual_machine_export** > K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_export(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -13838,6 +14549,67 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **watch_virtual_machine_backup_list_for_all_namespaces** +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_backup_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Watch a VirtualMachineBackupList object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_virtual_machine_backup_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->watch_virtual_machine_backup_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **watch_virtual_machine_clone_list_for_all_namespaces** > K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_clone_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) diff --git a/docs/V1ChangedBlockTrackingStatus.md b/docs/V1ChangedBlockTrackingStatus.md index 71b3671d..247acae1 100644 --- a/docs/V1ChangedBlockTrackingStatus.md +++ b/docs/V1ChangedBlockTrackingStatus.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**backup_status** | [**V1VirtualMachineInstanceBackupStatus**](V1VirtualMachineInstanceBackupStatus.md) | BackupStatus represents the status of vmi backup | [optional] **state** | **str** | State represents the current CBT state | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceBackupStatus.md b/docs/V1VirtualMachineInstanceBackupStatus.md new file mode 100644 index 00000000..04992b62 --- /dev/null +++ b/docs/V1VirtualMachineInstanceBackupStatus.md @@ -0,0 +1,14 @@ +# V1VirtualMachineInstanceBackupStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**backup_msg** | **str** | BackupMsg resturns any relevant information like failure reason unfreeze failed etc... | [optional] +**backup_name** | **str** | BackupName is the name of the executed backup | [optional] +**completed** | **bool** | Completed indicates the backup completed | [optional] +**end_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | EndTimestamp is the timestamp when the backup ended | [optional] +**start_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | StartTimestamp is the timestamp when the backup started | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1BackupOptions.md b/docs/V1alpha1BackupOptions.md new file mode 100644 index 00000000..6f8d5213 --- /dev/null +++ b/docs/V1alpha1BackupOptions.md @@ -0,0 +1,15 @@ +# V1alpha1BackupOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**backup_name** | **str** | | [optional] +**backup_start_time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | | [optional] +**cmd** | **str** | | [optional] +**mode** | **str** | | [optional] +**push_path** | **str** | | [optional] +**skip_quiesce** | **bool** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1Condition.md b/docs/V1alpha1Condition.md new file mode 100644 index 00000000..96a2edb5 --- /dev/null +++ b/docs/V1alpha1Condition.md @@ -0,0 +1,13 @@ +# V1alpha1Condition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | | [optional] +**reason** | **str** | | [optional] +**status** | **str** | | [default to ''] +**type** | **str** | | [default to ''] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineBackup.md b/docs/V1alpha1VirtualMachineBackup.md new file mode 100644 index 00000000..8cc9e42f --- /dev/null +++ b/docs/V1alpha1VirtualMachineBackup.md @@ -0,0 +1,14 @@ +# V1alpha1VirtualMachineBackup + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha1VirtualMachineBackupSpec**](V1alpha1VirtualMachineBackupSpec.md) | | +**status** | [**V1alpha1VirtualMachineBackupStatus**](V1alpha1VirtualMachineBackupStatus.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineBackupList.md b/docs/V1alpha1VirtualMachineBackupList.md new file mode 100644 index 00000000..43061bc8 --- /dev/null +++ b/docs/V1alpha1VirtualMachineBackupList.md @@ -0,0 +1,13 @@ +# V1alpha1VirtualMachineBackupList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list[V1alpha1VirtualMachineBackup]**](V1alpha1VirtualMachineBackup.md) | | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineBackupSpec.md b/docs/V1alpha1VirtualMachineBackupSpec.md new file mode 100644 index 00000000..3aed0c07 --- /dev/null +++ b/docs/V1alpha1VirtualMachineBackupSpec.md @@ -0,0 +1,14 @@ +# V1alpha1VirtualMachineBackupSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**force_full_backup** | **bool** | ForceFullBackup indicates that a full backup is desired | [optional] +**mode** | **str** | Mode specifies the way the backup output will be recieved | [optional] +**pvc_name** | **str** | PvcName required in push mode. Specifies the name of the PVC where the backup output will be stored | [optional] +**skip_quiesce** | **bool** | SkipQuiesce indicates whether the VM's filesystem shoule not be quiesced before the backup | [optional] +**source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Source specifies the VM to backup If not provided, a reference to a VirtualMachineBackupTracker must be specified instead | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineBackupStatus.md b/docs/V1alpha1VirtualMachineBackupStatus.md new file mode 100644 index 00000000..0cf66d41 --- /dev/null +++ b/docs/V1alpha1VirtualMachineBackupStatus.md @@ -0,0 +1,11 @@ +# V1alpha1VirtualMachineBackupStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**list[V1alpha1Condition]**](V1alpha1Condition.md) | | [optional] +**type** | **str** | Type indicates if the backup was full or incremental | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index c8423fbf..d21d7215 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.7.0-beta.0-518-gd9878f5230" + release_note="Auto-generated client v1.7.0-beta.0-577-gc429950016" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 1c2dd07a..9f2c6513 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -18,6 +18,8 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] INFO io.swagger.codegen.ignore.CodegenIgnoreProcessor - No .swagger-codegen-ignore file found. [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default appVersion set to 1.0.0 [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default version set to 1.0.0 @@ -786,6 +788,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_virtual_machine_instance.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstance.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_backup_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_backup_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceBackupStatus.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_condition.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_condition.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceCondition.md @@ -933,6 +938,12 @@ 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_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Watchdog.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_backup_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_backup_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1BackupOptions.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1Condition.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_migration_policy.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_migration_policy.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1MigrationPolicy.md @@ -948,6 +959,18 @@ 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/v1alpha1_selectors.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_selectors.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1Selectors.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_backup.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_backup.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineBackup.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_backup_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_backup_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineBackupList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_backup_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_backup_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineBackupSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_backup_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_backup_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineBackupStatus.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_cpu_instancetype.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_cpu_instancetype.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1CPUInstancetype.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 23627950..df4672fc 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -269,6 +269,7 @@ from .models.v1_virtual_machine import V1VirtualMachine from .models.v1_virtual_machine_condition import V1VirtualMachineCondition from .models.v1_virtual_machine_instance import V1VirtualMachineInstance +from .models.v1_virtual_machine_instance_backup_status import V1VirtualMachineInstanceBackupStatus from .models.v1_virtual_machine_instance_condition import V1VirtualMachineInstanceCondition from .models.v1_virtual_machine_instance_file_system import V1VirtualMachineInstanceFileSystem from .models.v1_virtual_machine_instance_file_system_disk import V1VirtualMachineInstanceFileSystemDisk @@ -318,11 +319,17 @@ from .models.v1_volume_status import V1VolumeStatus from .models.v1_volume_update_state import V1VolumeUpdateState from .models.v1_watchdog import V1Watchdog +from .models.v1alpha1_backup_options import V1alpha1BackupOptions +from .models.v1alpha1_condition import V1alpha1Condition from .models.v1alpha1_migration_policy import V1alpha1MigrationPolicy from .models.v1alpha1_migration_policy_list import V1alpha1MigrationPolicyList from .models.v1alpha1_migration_policy_spec import V1alpha1MigrationPolicySpec from .models.v1alpha1_migration_policy_status import V1alpha1MigrationPolicyStatus from .models.v1alpha1_selectors import V1alpha1Selectors +from .models.v1alpha1_virtual_machine_backup import V1alpha1VirtualMachineBackup +from .models.v1alpha1_virtual_machine_backup_list import V1alpha1VirtualMachineBackupList +from .models.v1alpha1_virtual_machine_backup_spec import V1alpha1VirtualMachineBackupSpec +from .models.v1alpha1_virtual_machine_backup_status import V1alpha1VirtualMachineBackupStatus from .models.v1beta1_cpu_instancetype import V1beta1CPUInstancetype from .models.v1beta1_cpu_preference_requirement import V1beta1CPUPreferenceRequirement from .models.v1beta1_cpu_preferences import V1beta1CPUPreferences diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index e4a840c8..3805f7be 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.7.0-beta.0-518-gd9878f5230/python' + self.user_agent = 'Swagger-Codegen/v1.7.0-beta.0-577-gc429950016/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index ac5bfdf1..73a35872 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -366,6 +366,117 @@ def create_namespaced_virtual_machine_with_http_info(self, body, namespace, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def create_namespaced_virtual_machine_backup(self, body, namespace, **kwargs): + """ + Create a VirtualMachineBackup object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_virtual_machine_backup(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1VirtualMachineBackup body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1alpha1VirtualMachineBackup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_virtual_machine_backup_with_http_info(body, namespace, **kwargs) + else: + (data) = self.create_namespaced_virtual_machine_backup_with_http_info(body, namespace, **kwargs) + return data + + def create_namespaced_virtual_machine_backup_with_http_info(self, body, namespace, **kwargs): + """ + Create a VirtualMachineBackup object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_virtual_machine_backup_with_http_info(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1VirtualMachineBackup body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1alpha1VirtualMachineBackup + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_virtual_machine_backup" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine_backup`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_backup`") + + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineBackup', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def create_namespaced_virtual_machine_export(self, body, namespace, **kwargs): """ Create a VirtualMachineExport object. @@ -2274,6 +2385,131 @@ def delete_collection_namespaced_virtual_machine_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def delete_collection_namespaced_virtual_machine_backup(self, **kwargs): + """ + Delete a collection of VirtualMachineBackup objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_virtual_machine_backup(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_namespaced_virtual_machine_backup_with_http_info(**kwargs) + else: + (data) = self.delete_collection_namespaced_virtual_machine_backup_with_http_info(**kwargs) + return data + + def delete_collection_namespaced_virtual_machine_backup_with_http_info(self, **kwargs): + """ + Delete a collection of VirtualMachineBackup objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_virtual_machine_backup_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_namespaced_virtual_machine_backup" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def delete_collection_namespaced_virtual_machine_export(self, **kwargs): """ Delete a collection of VirtualMachineExport objects. @@ -4407,16 +4643,16 @@ def delete_namespaced_virtual_machine_with_http_info(self, name, namespace, body _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_export(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_backup(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineExport object. + Delete a VirtualMachineBackup object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_export(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_backup(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4432,21 +4668,21 @@ def delete_namespaced_virtual_machine_export(self, name, namespace, body, **kwar """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_export_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_backup_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_export_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_virtual_machine_backup_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_export_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_backup_with_http_info(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineExport object. + Delete a VirtualMachineBackup object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_export_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_backup_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4472,19 +4708,19 @@ def delete_namespaced_virtual_machine_export_with_http_info(self, name, namespac if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_export" % key + " to method delete_namespaced_virtual_machine_backup" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_export`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_backup`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_export`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_backup`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_export`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_backup`") collection_formats = {} @@ -4522,7 +4758,7 @@ def delete_namespaced_virtual_machine_export_with_http_info(self, name, namespac # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name}', 'DELETE', + return self.api_client.call_api('/apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups/{name}', 'DELETE', path_params, query_params, header_params, @@ -4537,16 +4773,16 @@ def delete_namespaced_virtual_machine_export_with_http_info(self, name, namespac _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_export(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstance object. + Delete a VirtualMachineExport object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_export(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4562,21 +4798,21 @@ def delete_namespaced_virtual_machine_instance(self, name, namespace, body, **kw """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_export_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_virtual_machine_export_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_export_with_http_info(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstance object. + Delete a VirtualMachineExport object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_export_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4602,19 +4838,19 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namesp if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_instance" % key + " to method delete_namespaced_virtual_machine_export" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_export`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_export`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_export`") collection_formats = {} @@ -4652,7 +4888,7 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}', 'DELETE', + return self.api_client.call_api('/apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name}', 'DELETE', path_params, query_params, header_params, @@ -4667,16 +4903,16 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namesp _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstanceMigration object. + Delete a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4692,7 +4928,137 @@ def delete_namespaced_virtual_machine_instance_migration(self, name, namespace, """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): + """ + Delete a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_virtual_machine_instance" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'grace_period_seconds' in params: + query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) + if 'orphan_dependents' in params: + query_params.append(('orphanDependents', params['orphan_dependents'])) + if 'propagation_policy' in params: + query_params.append(('propagationPolicy', params['propagation_policy'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): + """ + Delete a VirtualMachineInstanceMigration object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) else: (data) = self.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) return data @@ -6388,6 +6754,98 @@ def func6_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def get_api_group_backup_kubevirt_io(self, **kwargs): + """ + Get a KubeVirt API group + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_group_backup_kubevirt_io(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_api_group_backup_kubevirt_io_with_http_info(**kwargs) + else: + (data) = self.get_api_group_backup_kubevirt_io_with_http_info(**kwargs) + return data + + def get_api_group_backup_kubevirt_io_with_http_info(self, **kwargs): + """ + Get a KubeVirt API group + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_group_backup_kubevirt_io_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_group_backup_kubevirt_io" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/backup.kubevirt.io/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1APIGroup', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def get_api_group_clone_kubevirt_io(self, **kwargs): """ Get a KubeVirt API group @@ -7124,6 +7582,98 @@ def get_api_group_snapshot_kubevirt_io_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def get_api_resources_backup_kubevirt_io_v1alpha1(self, **kwargs): + """ + Get KubeVirt API Resources + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_resources_backup_kubevirt_io_v1alpha1(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_api_resources_backup_kubevirt_io_v1alpha1_with_http_info(**kwargs) + else: + (data) = self.get_api_resources_backup_kubevirt_io_v1alpha1_with_http_info(**kwargs) + return data + + def get_api_resources_backup_kubevirt_io_v1alpha1_with_http_info(self, **kwargs): + """ + Get KubeVirt API Resources + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_resources_backup_kubevirt_io_v1alpha1_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_resources_backup_kubevirt_io_v1alpha1" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/backup.kubevirt.io/v1alpha1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1APIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def get_api_resources_clone_kubevirt_io_v1beta1(self, **kwargs): """ Get KubeVirt API Resources @@ -8416,7 +8966,139 @@ def list_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_kube_virt_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_kube_virt_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1KubeVirtList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_namespaced_kube_virt" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_kube_virt`") + + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1KubeVirtList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_virtual_machine(self, namespace, **kwargs): + """ + Get a list of VirtualMachine objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_virtual_machine(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1VirtualMachineList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): + """ + Get a list of VirtualMachine objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_namespaced_virtual_machine_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -8429,7 +9111,7 @@ def list_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1KubeVirtList + :return: V1VirtualMachineList If the method is called asynchronously, returns the request thread. """ @@ -8445,13 +9127,13 @@ def list_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_kube_virt" % key + " to method list_namespaced_virtual_machine" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_kube_virt`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine`") collection_formats = {} @@ -8491,14 +9173,14 @@ def list_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1KubeVirtList', + response_type='V1VirtualMachineList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8506,16 +9188,16 @@ def list_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine(self, namespace, **kwargs): + def list_namespaced_virtual_machine_backup(self, namespace, **kwargs): """ - Get a list of VirtualMachine objects. + Get a list of VirtualMachineBackup objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_backup(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -8528,27 +9210,27 @@ def list_namespaced_virtual_machine(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :return: V1alpha1VirtualMachineBackupList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + return self.list_namespaced_virtual_machine_backup_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_virtual_machine_backup_with_http_info(namespace, **kwargs) return data - def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): + def list_namespaced_virtual_machine_backup_with_http_info(self, namespace, **kwargs): """ - Get a list of VirtualMachine objects. + Get a list of VirtualMachineBackup objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_namespaced_virtual_machine_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_virtual_machine_backup_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -8561,7 +9243,7 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VirtualMachineList + :return: V1alpha1VirtualMachineBackupList If the method is called asynchronously, returns the request thread. """ @@ -8577,13 +9259,13 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_virtual_machine" % key + " to method list_namespaced_virtual_machine_backup" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_virtual_machine_backup`") collection_formats = {} @@ -8623,14 +9305,14 @@ def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines', 'GET', + return self.api_client.call_api('/apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineList', + response_type='V1alpha1VirtualMachineBackupList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10090,6 +10772,131 @@ def list_namespaced_virtual_machine_snapshot_content_with_http_info(self, namesp _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def list_virtual_machine_backup_for_all_namespaces(self, **kwargs): + """ + Get a list of all VirtualMachineBackup objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_backup_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineBackupList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_virtual_machine_backup_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_virtual_machine_backup_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_virtual_machine_backup_for_all_namespaces_with_http_info(self, **kwargs): + """ + Get a list of all VirtualMachineBackup objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_virtual_machine_backup_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1VirtualMachineBackupList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_virtual_machine_backup_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/backup.kubevirt.io/v1alpha1/virtualmachinebackups', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineBackupList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def list_virtual_machine_clone(self, **kwargs): """ Get a list of VirtualMachineClone objects. @@ -12100,26 +12907,144 @@ def patch_namespaced_kube_virt(self, name, namespace, body, **kwargs): if kwargs.get('callback'): return self.patch_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwargs): + """ + Patch a KubeVirt object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_kube_virt_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1KubeVirt + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_namespaced_kube_virt" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_kube_virt`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_kube_virt`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_kube_virt`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1KubeVirt', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_virtual_machine(self, name, namespace, body, **kwargs): + """ + Patch a VirtualMachine object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.patch_namespaced_virtual_machine(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1VirtualMachine + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): """ - Patch a KubeVirt object. + Patch a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_kube_virt_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1KubeVirt + :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ @@ -12135,19 +13060,19 @@ def patch_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_kube_virt" % key + " to method patch_namespaced_virtual_machine" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_kube_virt`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_kube_virt`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_kube_virt`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine`") collection_formats = {} @@ -12179,14 +13104,14 @@ def patch_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1KubeVirt', + response_type='V1VirtualMachine', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12194,50 +13119,50 @@ def patch_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_virtual_machine(self, name, namespace, body, **kwargs): + def patch_namespaced_virtual_machine_backup(self, name, namespace, body, **kwargs): """ - Patch a VirtualMachine object. + Patch a VirtualMachineBackup object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_backup(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachine + :return: V1alpha1VirtualMachineBackup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_virtual_machine_backup_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_virtual_machine_backup_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_virtual_machine_backup_with_http_info(self, name, namespace, body, **kwargs): """ - Patch a VirtualMachine object. + Patch a VirtualMachineBackup object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.patch_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_virtual_machine_backup_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1VirtualMachine + :return: V1alpha1VirtualMachineBackup If the method is called asynchronously, returns the request thread. """ @@ -12253,19 +13178,19 @@ def patch_namespaced_virtual_machine_with_http_info(self, name, namespace, body, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_virtual_machine" % key + " to method patch_namespaced_virtual_machine_backup" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_virtual_machine_backup`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_virtual_machine_backup`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_virtual_machine_backup`") collection_formats = {} @@ -12297,14 +13222,14 @@ def patch_namespaced_virtual_machine_with_http_info(self, name, namespace, body, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}', 'PATCH', + return self.api_client.call_api('/apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups/{name}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachine', + response_type='V1alpha1VirtualMachineBackup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -14281,6 +15206,121 @@ def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def read_namespaced_virtual_machine_backup(self, name, namespace, **kwargs): + """ + Get a VirtualMachineBackup object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_backup(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1VirtualMachineBackup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_virtual_machine_backup_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_virtual_machine_backup_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_virtual_machine_backup_with_http_info(self, name, namespace, **kwargs): + """ + Get a VirtualMachineBackup object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.read_namespaced_virtual_machine_backup_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + :param bool export: Should this value be exported. Export strips fields that a user can not specify. + :return: V1alpha1VirtualMachineBackup + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'exact', 'export'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_namespaced_virtual_machine_backup" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_virtual_machine_backup`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_backup`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'exact' in params: + query_params.append(('exact', params['exact'])) + if 'export' in params: + query_params.append(('export', params['export'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineBackup', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def read_namespaced_virtual_machine_export(self, name, namespace, **kwargs): """ Get a VirtualMachineExport object. @@ -15973,7 +17013,125 @@ def replace_migration_policy_with_http_info(self, name, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1MigrationPolicy', + response_type='V1alpha1MigrationPolicy', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_kube_virt(self, name, namespace, body, **kwargs): + """ + Update a KubeVirt object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_kube_virt(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1KubeVirt body: (required) + :return: V1KubeVirt + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwargs): + """ + Update a KubeVirt object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.replace_namespaced_kube_virt_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1KubeVirt body: (required) + :return: V1KubeVirt + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_namespaced_kube_virt" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_kube_virt`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_kube_virt`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_kube_virt`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1KubeVirt', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -15981,50 +17139,50 @@ def replace_migration_policy_with_http_info(self, name, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_kube_virt(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine(self, name, namespace, body, **kwargs): """ - Update a KubeVirt object. + Update a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_kube_virt(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1KubeVirt body: (required) - :return: V1KubeVirt + :param V1VirtualMachine body: (required) + :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): """ - Update a KubeVirt object. + Update a VirtualMachine object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_kube_virt_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1KubeVirt body: (required) - :return: V1KubeVirt + :param V1VirtualMachine body: (required) + :return: V1VirtualMachine If the method is called asynchronously, returns the request thread. """ @@ -16040,19 +17198,19 @@ def replace_namespaced_kube_virt_with_http_info(self, name, namespace, body, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_kube_virt" % key + " to method replace_namespaced_virtual_machine" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_kube_virt`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_kube_virt`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_kube_virt`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine`") collection_formats = {} @@ -16084,14 +17242,14 @@ def replace_namespaced_kube_virt_with_http_info(self, name, namespace, body, **k # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name}', 'PUT', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1KubeVirt', + response_type='V1VirtualMachine', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -16099,50 +17257,50 @@ def replace_namespaced_kube_virt_with_http_info(self, name, namespace, body, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_backup(self, name, namespace, body, **kwargs): """ - Update a VirtualMachine object. + Update a VirtualMachineBackup object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_backup(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachine body: (required) - :return: V1VirtualMachine + :param V1alpha1VirtualMachineBackup body: (required) + :return: V1alpha1VirtualMachineBackup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_virtual_machine_backup_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_virtual_machine_backup_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_virtual_machine_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_virtual_machine_backup_with_http_info(self, name, namespace, body, **kwargs): """ - Update a VirtualMachine object. + Update a VirtualMachineBackup object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespaced_virtual_machine_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_virtual_machine_backup_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1VirtualMachine body: (required) - :return: V1VirtualMachine + :param V1alpha1VirtualMachineBackup body: (required) + :return: V1alpha1VirtualMachineBackup If the method is called asynchronously, returns the request thread. """ @@ -16158,19 +17316,19 @@ def replace_namespaced_virtual_machine_with_http_info(self, name, namespace, bod if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_virtual_machine" % key + " to method replace_namespaced_virtual_machine_backup" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_virtual_machine_backup`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_virtual_machine_backup`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_virtual_machine_backup`") collection_formats = {} @@ -16202,14 +17360,14 @@ def replace_namespaced_virtual_machine_with_http_info(self, name, namespace, bod # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}', 'PUT', + return self.api_client.call_api('/apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups/{name}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachine', + response_type='V1alpha1VirtualMachineBackup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -17848,6 +19006,120 @@ def replace_virtual_machine_cluster_preference_with_http_info(self, name, body, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1_backup(self, name, namespace, body, **kwargs): + """ + Initiate a VirtualMachineInstance backup. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_backup(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1alpha1BackupOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1_backup_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1_backup_with_http_info(name, namespace, body, **kwargs) + return data + + def v1_backup_with_http_info(self, name, namespace, body, **kwargs): + """ + Initiate a VirtualMachineInstance backup. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_backup_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1alpha1BackupOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1_backup" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1_backup`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1_backup`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1_backup`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/backup', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1_check_health(self, **kwargs): """ Health endpoint @@ -20805,13 +22077,125 @@ def v1_vsock_with_http_info(self, name, namespace, port, **kwargs): del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `v1_vsock`") + raise ValueError("Missing the required parameter `name` when calling `v1_vsock`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1_vsock`") + # verify the required parameter 'port' is set + if ('port' not in params) or (params['port'] is None): + raise ValueError("Missing the required parameter `port` when calling `v1_vsock`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'port' in params: + query_params.append(('port', params['port'])) + if 'tls' in params: + query_params.append(('tls', params['tls'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vsock', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def v1alpha3_backup(self, name, namespace, body, **kwargs): + """ + Initiate a VirtualMachineInstance backup. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_backup(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1alpha1BackupOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3_backup_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1alpha3_backup_with_http_info(name, namespace, body, **kwargs) + return data + + def v1alpha3_backup_with_http_info(self, name, namespace, body, **kwargs): + """ + Initiate a VirtualMachineInstance backup. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_backup_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1alpha1BackupOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3_backup" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_backup`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `v1_vsock`") - # verify the required parameter 'port' is set - if ('port' not in params) or (params['port'] is None): - raise ValueError("Missing the required parameter `port` when calling `v1_vsock`") + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_backup`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3_backup`") collection_formats = {} @@ -20823,10 +22207,6 @@ def v1_vsock_with_http_info(self, name, namespace, port, **kwargs): path_params['namespace'] = params['namespace'] query_params = [] - if 'port' in params: - query_params.append(('port', params['port'])) - if 'tls' in params: - query_params.append(('tls', params['tls'])) header_params = {} @@ -20834,17 +22214,23 @@ def v1_vsock_with_http_info(self, name, namespace, port, **kwargs): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vsock', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/backup', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='str', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -28170,6 +29556,138 @@ def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def watch_namespaced_virtual_machine_backup(self, namespace, **kwargs): + """ + Watch a VirtualMachineBackup object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_virtual_machine_backup(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_namespaced_virtual_machine_backup_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_namespaced_virtual_machine_backup_with_http_info(namespace, **kwargs) + return data + + def watch_namespaced_virtual_machine_backup_with_http_info(self, namespace, **kwargs): + """ + Watch a VirtualMachineBackup object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_virtual_machine_backup_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_virtual_machine_backup" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_backup`") + + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/backup.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinebackups', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def watch_namespaced_virtual_machine_export(self, namespace, **kwargs): """ Watch a VirtualMachineExport object. @@ -29622,6 +31140,131 @@ def watch_namespaced_virtual_machine_snapshot_content_with_http_info(self, names _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def watch_virtual_machine_backup_list_for_all_namespaces(self, **kwargs): + """ + Watch a VirtualMachineBackupList object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_virtual_machine_backup_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_virtual_machine_backup_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_virtual_machine_backup_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_virtual_machine_backup_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + Watch a VirtualMachineBackupList object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_virtual_machine_backup_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_virtual_machine_backup_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/backup.kubevirt.io/v1alpha1/watch/virtualmachinebackups', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def watch_virtual_machine_clone_list_for_all_namespaces(self, **kwargs): """ Watch a VirtualMachineCloneList object. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index bb218ec3..a8a0b68f 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.7.0-beta.0-518-gd9878f5230".\ + "SDK Package Version: v1.7.0-beta.0-577-gc429950016".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 2455d520..1e643bc8 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -269,6 +269,7 @@ from .v1_virtual_machine import V1VirtualMachine from .v1_virtual_machine_condition import V1VirtualMachineCondition from .v1_virtual_machine_instance import V1VirtualMachineInstance +from .v1_virtual_machine_instance_backup_status import V1VirtualMachineInstanceBackupStatus from .v1_virtual_machine_instance_condition import V1VirtualMachineInstanceCondition from .v1_virtual_machine_instance_file_system import V1VirtualMachineInstanceFileSystem from .v1_virtual_machine_instance_file_system_disk import V1VirtualMachineInstanceFileSystemDisk @@ -318,11 +319,17 @@ from .v1_volume_status import V1VolumeStatus from .v1_volume_update_state import V1VolumeUpdateState from .v1_watchdog import V1Watchdog +from .v1alpha1_backup_options import V1alpha1BackupOptions +from .v1alpha1_condition import V1alpha1Condition from .v1alpha1_migration_policy import V1alpha1MigrationPolicy from .v1alpha1_migration_policy_list import V1alpha1MigrationPolicyList from .v1alpha1_migration_policy_spec import V1alpha1MigrationPolicySpec from .v1alpha1_migration_policy_status import V1alpha1MigrationPolicyStatus from .v1alpha1_selectors import V1alpha1Selectors +from .v1alpha1_virtual_machine_backup import V1alpha1VirtualMachineBackup +from .v1alpha1_virtual_machine_backup_list import V1alpha1VirtualMachineBackupList +from .v1alpha1_virtual_machine_backup_spec import V1alpha1VirtualMachineBackupSpec +from .v1alpha1_virtual_machine_backup_status import V1alpha1VirtualMachineBackupStatus from .v1beta1_cpu_instancetype import V1beta1CPUInstancetype from .v1beta1_cpu_preference_requirement import V1beta1CPUPreferenceRequirement from .v1beta1_cpu_preferences import V1beta1CPUPreferences diff --git a/kubevirt/models/v1_changed_block_tracking_status.py b/kubevirt/models/v1_changed_block_tracking_status.py index a819417f..8c30130a 100644 --- a/kubevirt/models/v1_changed_block_tracking_status.py +++ b/kubevirt/models/v1_changed_block_tracking_status.py @@ -31,22 +31,50 @@ class V1ChangedBlockTrackingStatus(object): and the value is json key in definition. """ swagger_types = { + 'backup_status': 'V1VirtualMachineInstanceBackupStatus', 'state': 'str' } attribute_map = { + 'backup_status': 'backupStatus', 'state': 'state' } - def __init__(self, state=''): + def __init__(self, backup_status=None, state=''): """ V1ChangedBlockTrackingStatus - a model defined in Swagger """ + self._backup_status = None self._state = None + if backup_status is not None: + self.backup_status = backup_status self.state = state + @property + def backup_status(self): + """ + Gets the backup_status of this V1ChangedBlockTrackingStatus. + BackupStatus represents the status of vmi backup + + :return: The backup_status of this V1ChangedBlockTrackingStatus. + :rtype: V1VirtualMachineInstanceBackupStatus + """ + return self._backup_status + + @backup_status.setter + def backup_status(self, backup_status): + """ + Sets the backup_status of this V1ChangedBlockTrackingStatus. + BackupStatus represents the status of vmi backup + + :param backup_status: The backup_status of this V1ChangedBlockTrackingStatus. + :type: V1VirtualMachineInstanceBackupStatus + """ + + self._backup_status = backup_status + @property def state(self): """ diff --git a/kubevirt/models/v1_virtual_machine_instance_backup_status.py b/kubevirt/models/v1_virtual_machine_instance_backup_status.py new file mode 100644 index 00000000..3a3f7563 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_backup_status.py @@ -0,0 +1,237 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtualMachineInstanceBackupStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'backup_msg': 'str', + 'backup_name': 'str', + 'completed': 'bool', + 'end_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', + 'start_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time' + } + + attribute_map = { + 'backup_msg': 'backupMsg', + 'backup_name': 'backupName', + 'completed': 'completed', + 'end_timestamp': 'endTimestamp', + 'start_timestamp': 'startTimestamp' + } + + def __init__(self, backup_msg=None, backup_name=None, completed=None, end_timestamp=None, start_timestamp=None): + """ + V1VirtualMachineInstanceBackupStatus - a model defined in Swagger + """ + + self._backup_msg = None + self._backup_name = None + self._completed = None + self._end_timestamp = None + self._start_timestamp = None + + if backup_msg is not None: + self.backup_msg = backup_msg + if backup_name is not None: + self.backup_name = backup_name + if completed is not None: + self.completed = completed + if end_timestamp is not None: + self.end_timestamp = end_timestamp + if start_timestamp is not None: + self.start_timestamp = start_timestamp + + @property + def backup_msg(self): + """ + Gets the backup_msg of this V1VirtualMachineInstanceBackupStatus. + BackupMsg resturns any relevant information like failure reason unfreeze failed etc... + + :return: The backup_msg of this V1VirtualMachineInstanceBackupStatus. + :rtype: str + """ + return self._backup_msg + + @backup_msg.setter + def backup_msg(self, backup_msg): + """ + Sets the backup_msg of this V1VirtualMachineInstanceBackupStatus. + BackupMsg resturns any relevant information like failure reason unfreeze failed etc... + + :param backup_msg: The backup_msg of this V1VirtualMachineInstanceBackupStatus. + :type: str + """ + + self._backup_msg = backup_msg + + @property + def backup_name(self): + """ + Gets the backup_name of this V1VirtualMachineInstanceBackupStatus. + BackupName is the name of the executed backup + + :return: The backup_name of this V1VirtualMachineInstanceBackupStatus. + :rtype: str + """ + return self._backup_name + + @backup_name.setter + def backup_name(self, backup_name): + """ + Sets the backup_name of this V1VirtualMachineInstanceBackupStatus. + BackupName is the name of the executed backup + + :param backup_name: The backup_name of this V1VirtualMachineInstanceBackupStatus. + :type: str + """ + + self._backup_name = backup_name + + @property + def completed(self): + """ + Gets the completed of this V1VirtualMachineInstanceBackupStatus. + Completed indicates the backup completed + + :return: The completed of this V1VirtualMachineInstanceBackupStatus. + :rtype: bool + """ + return self._completed + + @completed.setter + def completed(self, completed): + """ + Sets the completed of this V1VirtualMachineInstanceBackupStatus. + Completed indicates the backup completed + + :param completed: The completed of this V1VirtualMachineInstanceBackupStatus. + :type: bool + """ + + self._completed = completed + + @property + def end_timestamp(self): + """ + Gets the end_timestamp of this V1VirtualMachineInstanceBackupStatus. + EndTimestamp is the timestamp when the backup ended + + :return: The end_timestamp of this V1VirtualMachineInstanceBackupStatus. + :rtype: K8sIoApimachineryPkgApisMetaV1Time + """ + return self._end_timestamp + + @end_timestamp.setter + def end_timestamp(self, end_timestamp): + """ + Sets the end_timestamp of this V1VirtualMachineInstanceBackupStatus. + EndTimestamp is the timestamp when the backup ended + + :param end_timestamp: The end_timestamp of this V1VirtualMachineInstanceBackupStatus. + :type: K8sIoApimachineryPkgApisMetaV1Time + """ + + self._end_timestamp = end_timestamp + + @property + def start_timestamp(self): + """ + Gets the start_timestamp of this V1VirtualMachineInstanceBackupStatus. + StartTimestamp is the timestamp when the backup started + + :return: The start_timestamp of this V1VirtualMachineInstanceBackupStatus. + :rtype: K8sIoApimachineryPkgApisMetaV1Time + """ + return self._start_timestamp + + @start_timestamp.setter + def start_timestamp(self, start_timestamp): + """ + Sets the start_timestamp of this V1VirtualMachineInstanceBackupStatus. + StartTimestamp is the timestamp when the backup started + + :param start_timestamp: The start_timestamp of this V1VirtualMachineInstanceBackupStatus. + :type: K8sIoApimachineryPkgApisMetaV1Time + """ + + self._start_timestamp = start_timestamp + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtualMachineInstanceBackupStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_backup_options.py b/kubevirt/models/v1alpha1_backup_options.py new file mode 100644 index 00000000..d48fc22b --- /dev/null +++ b/kubevirt/models/v1alpha1_backup_options.py @@ -0,0 +1,253 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1BackupOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'backup_name': 'str', + 'backup_start_time': 'K8sIoApimachineryPkgApisMetaV1Time', + 'cmd': 'str', + 'mode': 'str', + 'push_path': 'str', + 'skip_quiesce': 'bool' + } + + attribute_map = { + 'backup_name': 'backupName', + 'backup_start_time': 'backupStartTime', + 'cmd': 'cmd', + 'mode': 'mode', + 'push_path': 'pushPath', + 'skip_quiesce': 'skipQuiesce' + } + + def __init__(self, backup_name=None, backup_start_time=None, cmd=None, mode=None, push_path=None, skip_quiesce=None): + """ + V1alpha1BackupOptions - a model defined in Swagger + """ + + self._backup_name = None + self._backup_start_time = None + self._cmd = None + self._mode = None + self._push_path = None + self._skip_quiesce = None + + if backup_name is not None: + self.backup_name = backup_name + if backup_start_time is not None: + self.backup_start_time = backup_start_time + if cmd is not None: + self.cmd = cmd + if mode is not None: + self.mode = mode + if push_path is not None: + self.push_path = push_path + if skip_quiesce is not None: + self.skip_quiesce = skip_quiesce + + @property + def backup_name(self): + """ + Gets the backup_name of this V1alpha1BackupOptions. + + :return: The backup_name of this V1alpha1BackupOptions. + :rtype: str + """ + return self._backup_name + + @backup_name.setter + def backup_name(self, backup_name): + """ + Sets the backup_name of this V1alpha1BackupOptions. + + :param backup_name: The backup_name of this V1alpha1BackupOptions. + :type: str + """ + + self._backup_name = backup_name + + @property + def backup_start_time(self): + """ + Gets the backup_start_time of this V1alpha1BackupOptions. + + :return: The backup_start_time of this V1alpha1BackupOptions. + :rtype: K8sIoApimachineryPkgApisMetaV1Time + """ + return self._backup_start_time + + @backup_start_time.setter + def backup_start_time(self, backup_start_time): + """ + Sets the backup_start_time of this V1alpha1BackupOptions. + + :param backup_start_time: The backup_start_time of this V1alpha1BackupOptions. + :type: K8sIoApimachineryPkgApisMetaV1Time + """ + + self._backup_start_time = backup_start_time + + @property + def cmd(self): + """ + Gets the cmd of this V1alpha1BackupOptions. + + :return: The cmd of this V1alpha1BackupOptions. + :rtype: str + """ + return self._cmd + + @cmd.setter + def cmd(self, cmd): + """ + Sets the cmd of this V1alpha1BackupOptions. + + :param cmd: The cmd of this V1alpha1BackupOptions. + :type: str + """ + + self._cmd = cmd + + @property + def mode(self): + """ + Gets the mode of this V1alpha1BackupOptions. + + :return: The mode of this V1alpha1BackupOptions. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """ + Sets the mode of this V1alpha1BackupOptions. + + :param mode: The mode of this V1alpha1BackupOptions. + :type: str + """ + + self._mode = mode + + @property + def push_path(self): + """ + Gets the push_path of this V1alpha1BackupOptions. + + :return: The push_path of this V1alpha1BackupOptions. + :rtype: str + """ + return self._push_path + + @push_path.setter + def push_path(self, push_path): + """ + Sets the push_path of this V1alpha1BackupOptions. + + :param push_path: The push_path of this V1alpha1BackupOptions. + :type: str + """ + + self._push_path = push_path + + @property + def skip_quiesce(self): + """ + Gets the skip_quiesce of this V1alpha1BackupOptions. + + :return: The skip_quiesce of this V1alpha1BackupOptions. + :rtype: bool + """ + return self._skip_quiesce + + @skip_quiesce.setter + def skip_quiesce(self, skip_quiesce): + """ + Sets the skip_quiesce of this V1alpha1BackupOptions. + + :param skip_quiesce: The skip_quiesce of this V1alpha1BackupOptions. + :type: bool + """ + + self._skip_quiesce = skip_quiesce + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1BackupOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_condition.py b/kubevirt/models/v1alpha1_condition.py new file mode 100644 index 00000000..b1528fb2 --- /dev/null +++ b/kubevirt/models/v1alpha1_condition.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1Condition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + attribute_map = { + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + def __init__(self, message=None, reason=None, status='', type=''): + """ + V1alpha1Condition - a model defined in Swagger + """ + + self._message = None + self._reason = None + self._status = None + self._type = None + + if message is not None: + self.message = message + if reason is not None: + self.reason = reason + self.status = status + self.type = type + + @property + def message(self): + """ + Gets the message of this V1alpha1Condition. + + :return: The message of this V1alpha1Condition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1alpha1Condition. + + :param message: The message of this V1alpha1Condition. + :type: str + """ + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1alpha1Condition. + + :return: The reason of this V1alpha1Condition. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1alpha1Condition. + + :param reason: The reason of this V1alpha1Condition. + :type: str + """ + + self._reason = reason + + @property + def status(self): + """ + Gets the status of this V1alpha1Condition. + + :return: The status of this V1alpha1Condition. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1alpha1Condition. + + :param status: The status of this V1alpha1Condition. + :type: str + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") + + self._status = status + + @property + def type(self): + """ + Gets the type of this V1alpha1Condition. + + :return: The type of this V1alpha1Condition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1alpha1Condition. + + :param type: The type of this V1alpha1Condition. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1Condition): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_backup.py b/kubevirt/models/v1alpha1_virtual_machine_backup.py new file mode 100644 index 00000000..8ebe1f92 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_backup.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineBackup(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', + 'spec': 'V1alpha1VirtualMachineBackupSpec', + 'status': 'V1alpha1VirtualMachineBackupStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + """ + V1alpha1VirtualMachineBackup - a model defined in Swagger + """ + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1VirtualMachineBackup. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1alpha1VirtualMachineBackup. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1VirtualMachineBackup. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1VirtualMachineBackup. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1alpha1VirtualMachineBackup. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1VirtualMachineBackup. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1VirtualMachineBackup. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1VirtualMachineBackup. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1VirtualMachineBackup. + + :return: The metadata of this V1alpha1VirtualMachineBackup. + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1VirtualMachineBackup. + + :param metadata: The metadata of this V1alpha1VirtualMachineBackup. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1alpha1VirtualMachineBackup. + + :return: The spec of this V1alpha1VirtualMachineBackup. + :rtype: V1alpha1VirtualMachineBackupSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1alpha1VirtualMachineBackup. + + :param spec: The spec of this V1alpha1VirtualMachineBackup. + :type: V1alpha1VirtualMachineBackupSpec + """ + if spec is None: + raise ValueError("Invalid value for `spec`, must not be `None`") + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this V1alpha1VirtualMachineBackup. + + :return: The status of this V1alpha1VirtualMachineBackup. + :rtype: V1alpha1VirtualMachineBackupStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1alpha1VirtualMachineBackup. + + :param status: The status of this V1alpha1VirtualMachineBackup. + :type: V1alpha1VirtualMachineBackupStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineBackup): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_backup_list.py b/kubevirt/models/v1alpha1_virtual_machine_backup_list.py new file mode 100644 index 00000000..3ccfce37 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_backup_list.py @@ -0,0 +1,207 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineBackupList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_version': 'str', + 'items': 'list[V1alpha1VirtualMachineBackup]', + 'kind': 'str', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None): + """ + V1alpha1VirtualMachineBackupList - a model defined in Swagger + """ + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + self.metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1VirtualMachineBackupList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :return: The api_version of this V1alpha1VirtualMachineBackupList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1VirtualMachineBackupList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1VirtualMachineBackupList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1alpha1VirtualMachineBackupList. + + :return: The items of this V1alpha1VirtualMachineBackupList. + :rtype: list[V1alpha1VirtualMachineBackup] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1alpha1VirtualMachineBackupList. + + :param items: The items of this V1alpha1VirtualMachineBackupList. + :type: list[V1alpha1VirtualMachineBackup] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1alpha1VirtualMachineBackupList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1VirtualMachineBackupList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1VirtualMachineBackupList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1VirtualMachineBackupList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1VirtualMachineBackupList. + + :return: The metadata of this V1alpha1VirtualMachineBackupList. + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1VirtualMachineBackupList. + + :param metadata: The metadata of this V1alpha1VirtualMachineBackupList. + :type: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + if metadata is None: + raise ValueError("Invalid value for `metadata`, must not be `None`") + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineBackupList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_backup_spec.py b/kubevirt/models/v1alpha1_virtual_machine_backup_spec.py new file mode 100644 index 00000000..d27dbabe --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_backup_spec.py @@ -0,0 +1,237 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineBackupSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'force_full_backup': 'bool', + 'mode': 'str', + 'pvc_name': 'str', + 'skip_quiesce': 'bool', + 'source': 'K8sIoApiCoreV1TypedLocalObjectReference' + } + + attribute_map = { + 'force_full_backup': 'forceFullBackup', + 'mode': 'mode', + 'pvc_name': 'pvcName', + 'skip_quiesce': 'skipQuiesce', + 'source': 'source' + } + + def __init__(self, force_full_backup=None, mode=None, pvc_name=None, skip_quiesce=None, source=None): + """ + V1alpha1VirtualMachineBackupSpec - a model defined in Swagger + """ + + self._force_full_backup = None + self._mode = None + self._pvc_name = None + self._skip_quiesce = None + self._source = None + + if force_full_backup is not None: + self.force_full_backup = force_full_backup + if mode is not None: + self.mode = mode + if pvc_name is not None: + self.pvc_name = pvc_name + if skip_quiesce is not None: + self.skip_quiesce = skip_quiesce + if source is not None: + self.source = source + + @property + def force_full_backup(self): + """ + Gets the force_full_backup of this V1alpha1VirtualMachineBackupSpec. + ForceFullBackup indicates that a full backup is desired + + :return: The force_full_backup of this V1alpha1VirtualMachineBackupSpec. + :rtype: bool + """ + return self._force_full_backup + + @force_full_backup.setter + def force_full_backup(self, force_full_backup): + """ + Sets the force_full_backup of this V1alpha1VirtualMachineBackupSpec. + ForceFullBackup indicates that a full backup is desired + + :param force_full_backup: The force_full_backup of this V1alpha1VirtualMachineBackupSpec. + :type: bool + """ + + self._force_full_backup = force_full_backup + + @property + def mode(self): + """ + Gets the mode of this V1alpha1VirtualMachineBackupSpec. + Mode specifies the way the backup output will be recieved + + :return: The mode of this V1alpha1VirtualMachineBackupSpec. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """ + Sets the mode of this V1alpha1VirtualMachineBackupSpec. + Mode specifies the way the backup output will be recieved + + :param mode: The mode of this V1alpha1VirtualMachineBackupSpec. + :type: str + """ + + self._mode = mode + + @property + def pvc_name(self): + """ + Gets the pvc_name of this V1alpha1VirtualMachineBackupSpec. + PvcName required in push mode. Specifies the name of the PVC where the backup output will be stored + + :return: The pvc_name of this V1alpha1VirtualMachineBackupSpec. + :rtype: str + """ + return self._pvc_name + + @pvc_name.setter + def pvc_name(self, pvc_name): + """ + Sets the pvc_name of this V1alpha1VirtualMachineBackupSpec. + PvcName required in push mode. Specifies the name of the PVC where the backup output will be stored + + :param pvc_name: The pvc_name of this V1alpha1VirtualMachineBackupSpec. + :type: str + """ + + self._pvc_name = pvc_name + + @property + def skip_quiesce(self): + """ + Gets the skip_quiesce of this V1alpha1VirtualMachineBackupSpec. + SkipQuiesce indicates whether the VM's filesystem shoule not be quiesced before the backup + + :return: The skip_quiesce of this V1alpha1VirtualMachineBackupSpec. + :rtype: bool + """ + return self._skip_quiesce + + @skip_quiesce.setter + def skip_quiesce(self, skip_quiesce): + """ + Sets the skip_quiesce of this V1alpha1VirtualMachineBackupSpec. + SkipQuiesce indicates whether the VM's filesystem shoule not be quiesced before the backup + + :param skip_quiesce: The skip_quiesce of this V1alpha1VirtualMachineBackupSpec. + :type: bool + """ + + self._skip_quiesce = skip_quiesce + + @property + def source(self): + """ + Gets the source of this V1alpha1VirtualMachineBackupSpec. + Source specifies the VM to backup If not provided, a reference to a VirtualMachineBackupTracker must be specified instead + + :return: The source of this V1alpha1VirtualMachineBackupSpec. + :rtype: K8sIoApiCoreV1TypedLocalObjectReference + """ + return self._source + + @source.setter + def source(self, source): + """ + Sets the source of this V1alpha1VirtualMachineBackupSpec. + Source specifies the VM to backup If not provided, a reference to a VirtualMachineBackupTracker must be specified instead + + :param source: The source of this V1alpha1VirtualMachineBackupSpec. + :type: K8sIoApiCoreV1TypedLocalObjectReference + """ + + self._source = source + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineBackupSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_backup_status.py b/kubevirt/models/v1alpha1_virtual_machine_backup_status.py new file mode 100644 index 00000000..5b4c1efe --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_backup_status.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1VirtualMachineBackupStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'conditions': 'list[V1alpha1Condition]', + 'type': 'str' + } + + attribute_map = { + 'conditions': 'conditions', + 'type': 'type' + } + + def __init__(self, conditions=None, type=None): + """ + V1alpha1VirtualMachineBackupStatus - a model defined in Swagger + """ + + self._conditions = None + self._type = None + + if conditions is not None: + self.conditions = conditions + if type is not None: + self.type = type + + @property + def conditions(self): + """ + Gets the conditions of this V1alpha1VirtualMachineBackupStatus. + + :return: The conditions of this V1alpha1VirtualMachineBackupStatus. + :rtype: list[V1alpha1Condition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1alpha1VirtualMachineBackupStatus. + + :param conditions: The conditions of this V1alpha1VirtualMachineBackupStatus. + :type: list[V1alpha1Condition] + """ + + self._conditions = conditions + + @property + def type(self): + """ + Gets the type of this V1alpha1VirtualMachineBackupStatus. + Type indicates if the backup was full or incremental + + :return: The type of this V1alpha1VirtualMachineBackupStatus. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1alpha1VirtualMachineBackupStatus. + Type indicates if the backup was full or incremental + + :param type: The type of this V1alpha1VirtualMachineBackupStatus. + :type: str + """ + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1VirtualMachineBackupStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 83b5a6f9..401c68c0 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.7.0-beta.0-518-gd9878f5230" +VERSION = "v1.7.0-beta.0-577-gc429950016" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index f1aa1443..1eeb8f41 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.7.0-beta.0-518-gd9878f5230" +"packageVersion": "v1.7.0-beta.0-577-gc429950016" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 3407b311..b9bc400d 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -52,6 +52,14 @@ def test_create_namespaced_virtual_machine(self): Test case for create_namespaced_virtual_machine + """ + pass + + def test_create_namespaced_virtual_machine_backup(self): + """ + Test case for create_namespaced_virtual_machine_backup + + """ pass @@ -188,6 +196,14 @@ def test_delete_collection_namespaced_virtual_machine(self): Test case for delete_collection_namespaced_virtual_machine + """ + pass + + def test_delete_collection_namespaced_virtual_machine_backup(self): + """ + Test case for delete_collection_namespaced_virtual_machine_backup + + """ pass @@ -324,6 +340,14 @@ def test_delete_namespaced_virtual_machine(self): Test case for delete_namespaced_virtual_machine + """ + pass + + def test_delete_namespaced_virtual_machine_backup(self): + """ + Test case for delete_namespaced_virtual_machine_backup + + """ pass @@ -452,6 +476,14 @@ def test_func6(self): Test case for func6 + """ + pass + + def test_get_api_group_backup_kubevirt_io(self): + """ + Test case for get_api_group_backup_kubevirt_io + + """ pass @@ -516,6 +548,14 @@ def test_get_api_group_snapshot_kubevirt_io(self): Test case for get_api_group_snapshot_kubevirt_io + """ + pass + + def test_get_api_resources_backup_kubevirt_io_v1alpha1(self): + """ + Test case for get_api_resources_backup_kubevirt_io_v1alpha1 + + """ pass @@ -636,6 +676,14 @@ def test_list_namespaced_virtual_machine(self): Test case for list_namespaced_virtual_machine + """ + pass + + def test_list_namespaced_virtual_machine_backup(self): + """ + Test case for list_namespaced_virtual_machine_backup + + """ pass @@ -724,6 +772,14 @@ def test_list_namespaced_virtual_machine_snapshot_content(self): Test case for list_namespaced_virtual_machine_snapshot_content + """ + pass + + def test_list_virtual_machine_backup_for_all_namespaces(self): + """ + Test case for list_virtual_machine_backup_for_all_namespaces + + """ pass @@ -868,6 +924,14 @@ def test_patch_namespaced_virtual_machine(self): Test case for patch_namespaced_virtual_machine + """ + pass + + def test_patch_namespaced_virtual_machine_backup(self): + """ + Test case for patch_namespaced_virtual_machine_backup + + """ pass @@ -1004,6 +1068,14 @@ def test_read_namespaced_virtual_machine(self): Test case for read_namespaced_virtual_machine + """ + pass + + def test_read_namespaced_virtual_machine_backup(self): + """ + Test case for read_namespaced_virtual_machine_backup + + """ pass @@ -1140,6 +1212,14 @@ def test_replace_namespaced_virtual_machine(self): Test case for replace_namespaced_virtual_machine + """ + pass + + def test_replace_namespaced_virtual_machine_backup(self): + """ + Test case for replace_namespaced_virtual_machine_backup + + """ pass @@ -1252,6 +1332,14 @@ def test_replace_virtual_machine_cluster_preference(self): Test case for replace_virtual_machine_cluster_preference + """ + pass + + def test_v1_backup(self): + """ + Test case for v1_backup + + """ pass @@ -1476,6 +1564,14 @@ def test_v1_vsock(self): Test case for v1_vsock + """ + pass + + def test_v1alpha3_backup(self): + """ + Test case for v1alpha3_backup + + """ pass @@ -2012,6 +2108,14 @@ def test_watch_namespaced_virtual_machine(self): Test case for watch_namespaced_virtual_machine + """ + pass + + def test_watch_namespaced_virtual_machine_backup(self): + """ + Test case for watch_namespaced_virtual_machine_backup + + """ pass @@ -2100,6 +2204,14 @@ def test_watch_namespaced_virtual_machine_snapshot_content(self): Test case for watch_namespaced_virtual_machine_snapshot_content + """ + pass + + def test_watch_virtual_machine_backup_list_for_all_namespaces(self): + """ + Test case for watch_virtual_machine_backup_list_for_all_namespaces + + """ pass diff --git a/test/test_v1_virtual_machine_instance_backup_status.py b/test/test_v1_virtual_machine_instance_backup_status.py new file mode 100644 index 00000000..1b8edf44 --- /dev/null +++ b/test/test_v1_virtual_machine_instance_backup_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virtual_machine_instance_backup_status import V1VirtualMachineInstanceBackupStatus + + +class TestV1VirtualMachineInstanceBackupStatus(unittest.TestCase): + """ V1VirtualMachineInstanceBackupStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtualMachineInstanceBackupStatus(self): + """ + Test V1VirtualMachineInstanceBackupStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virtual_machine_instance_backup_status.V1VirtualMachineInstanceBackupStatus() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_backup_options.py b/test/test_v1alpha1_backup_options.py new file mode 100644 index 00000000..ded521f0 --- /dev/null +++ b/test/test_v1alpha1_backup_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_backup_options import V1alpha1BackupOptions + + +class TestV1alpha1BackupOptions(unittest.TestCase): + """ V1alpha1BackupOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1BackupOptions(self): + """ + Test V1alpha1BackupOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_backup_options.V1alpha1BackupOptions() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_condition.py b/test/test_v1alpha1_condition.py new file mode 100644 index 00000000..3425235f --- /dev/null +++ b/test/test_v1alpha1_condition.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_condition import V1alpha1Condition + + +class TestV1alpha1Condition(unittest.TestCase): + """ V1alpha1Condition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1Condition(self): + """ + Test V1alpha1Condition + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_condition.V1alpha1Condition() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_backup.py b/test/test_v1alpha1_virtual_machine_backup.py new file mode 100644 index 00000000..189a798c --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_backup.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_backup import V1alpha1VirtualMachineBackup + + +class TestV1alpha1VirtualMachineBackup(unittest.TestCase): + """ V1alpha1VirtualMachineBackup unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineBackup(self): + """ + Test V1alpha1VirtualMachineBackup + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_backup.V1alpha1VirtualMachineBackup() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_backup_list.py b/test/test_v1alpha1_virtual_machine_backup_list.py new file mode 100644 index 00000000..3314b8ed --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_backup_list.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_backup_list import V1alpha1VirtualMachineBackupList + + +class TestV1alpha1VirtualMachineBackupList(unittest.TestCase): + """ V1alpha1VirtualMachineBackupList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineBackupList(self): + """ + Test V1alpha1VirtualMachineBackupList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_backup_list.V1alpha1VirtualMachineBackupList() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_backup_spec.py b/test/test_v1alpha1_virtual_machine_backup_spec.py new file mode 100644 index 00000000..54f92eca --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_backup_spec.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_backup_spec import V1alpha1VirtualMachineBackupSpec + + +class TestV1alpha1VirtualMachineBackupSpec(unittest.TestCase): + """ V1alpha1VirtualMachineBackupSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineBackupSpec(self): + """ + Test V1alpha1VirtualMachineBackupSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_backup_spec.V1alpha1VirtualMachineBackupSpec() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_backup_status.py b/test/test_v1alpha1_virtual_machine_backup_status.py new file mode 100644 index 00000000..62457088 --- /dev/null +++ b/test/test_v1alpha1_virtual_machine_backup_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_virtual_machine_backup_status import V1alpha1VirtualMachineBackupStatus + + +class TestV1alpha1VirtualMachineBackupStatus(unittest.TestCase): + """ V1alpha1VirtualMachineBackupStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1VirtualMachineBackupStatus(self): + """ + Test V1alpha1VirtualMachineBackupStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_virtual_machine_backup_status.V1alpha1VirtualMachineBackupStatus() + pass + + +if __name__ == '__main__': + unittest.main() From a5f0b6e9ec7107944d5b700ec5ceef8783f0acba Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Sun, 21 Dec 2025 13:19:51 +0000 Subject: [PATCH 498/521] Client Python update by KubeVirt Prow build 2002727737680203776 --- README.md | 2 +- docs/V1VirtualMachineInstanceBackupStatus.md | 1 + docs/V1alpha1BackupOptions.md | 1 + docs/V1alpha1VirtualMachineBackupSpec.md | 2 +- docs/V1alpha1VirtualMachineBackupStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ..._virtual_machine_instance_backup_status.py | 30 ++++++++++++++++++- kubevirt/models/v1alpha1_backup_options.py | 28 ++++++++++++++++- .../v1alpha1_virtual_machine_backup_spec.py | 9 +++--- .../v1alpha1_virtual_machine_backup_status.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 14 files changed, 100 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 85ab031e..8cc6f4f7 100644 --- a/README.md +++ b/README.md @@ -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.7.0-beta.0-577-gc429950016 +- Package version: v1.7.0-beta.0-654-gce30705b43 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceBackupStatus.md b/docs/V1VirtualMachineInstanceBackupStatus.md index 04992b62..603984c0 100644 --- a/docs/V1VirtualMachineInstanceBackupStatus.md +++ b/docs/V1VirtualMachineInstanceBackupStatus.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **backup_msg** | **str** | BackupMsg resturns any relevant information like failure reason unfreeze failed etc... | [optional] **backup_name** | **str** | BackupName is the name of the executed backup | [optional] +**checkpoint_name** | **str** | CheckpointName is the name of the checkpoint created for the backup | [optional] **completed** | **bool** | Completed indicates the backup completed | [optional] **end_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | EndTimestamp is the timestamp when the backup ended | [optional] **start_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | StartTimestamp is the timestamp when the backup started | [optional] diff --git a/docs/V1alpha1BackupOptions.md b/docs/V1alpha1BackupOptions.md index 6f8d5213..fb5be2f0 100644 --- a/docs/V1alpha1BackupOptions.md +++ b/docs/V1alpha1BackupOptions.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **backup_name** | **str** | | [optional] **backup_start_time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | | [optional] **cmd** | **str** | | [optional] +**incremental** | **str** | | [optional] **mode** | **str** | | [optional] **push_path** | **str** | | [optional] **skip_quiesce** | **bool** | | [optional] diff --git a/docs/V1alpha1VirtualMachineBackupSpec.md b/docs/V1alpha1VirtualMachineBackupSpec.md index 3aed0c07..aa93d53b 100644 --- a/docs/V1alpha1VirtualMachineBackupSpec.md +++ b/docs/V1alpha1VirtualMachineBackupSpec.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **mode** | **str** | Mode specifies the way the backup output will be recieved | [optional] **pvc_name** | **str** | PvcName required in push mode. Specifies the name of the PVC where the backup output will be stored | [optional] **skip_quiesce** | **bool** | SkipQuiesce indicates whether the VM's filesystem shoule not be quiesced before the backup | [optional] -**source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Source specifies the VM to backup If not provided, a reference to a VirtualMachineBackupTracker must be specified instead | [optional] +**source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Source specifies the backup source - either a VirtualMachine or a VirtualMachineBackupTracker. When Kind is VirtualMachine: performs a backup of the specified VM. When Kind is VirtualMachineBackupTracker: uses the tracker to get the source VM and the base checkpoint for incremental backup. The tracker will be updated with the new checkpoint after backup completion. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineBackupStatus.md b/docs/V1alpha1VirtualMachineBackupStatus.md index 0cf66d41..4a464d8e 100644 --- a/docs/V1alpha1VirtualMachineBackupStatus.md +++ b/docs/V1alpha1VirtualMachineBackupStatus.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**checkpoint_name** | **str** | CheckpointName the name of the checkpoint created for the current backup | [optional] **conditions** | [**list[V1alpha1Condition]**](V1alpha1Condition.md) | | [optional] **type** | **str** | Type indicates if the backup was full or incremental | [optional] diff --git a/git_push.sh b/git_push.sh index d21d7215..c62772f0 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.7.0-beta.0-577-gc429950016" + release_note="Auto-generated client v1.7.0-beta.0-654-gce30705b43" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 3805f7be..4d2a3f0c 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.7.0-beta.0-577-gc429950016/python' + self.user_agent = 'Swagger-Codegen/v1.7.0-beta.0-654-gce30705b43/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index a8a0b68f..2a55c9bb 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.7.0-beta.0-577-gc429950016".\ + "SDK Package Version: v1.7.0-beta.0-654-gce30705b43".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_backup_status.py b/kubevirt/models/v1_virtual_machine_instance_backup_status.py index 3a3f7563..dda5920c 100644 --- a/kubevirt/models/v1_virtual_machine_instance_backup_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_backup_status.py @@ -33,6 +33,7 @@ class V1VirtualMachineInstanceBackupStatus(object): swagger_types = { 'backup_msg': 'str', 'backup_name': 'str', + 'checkpoint_name': 'str', 'completed': 'bool', 'end_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', 'start_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time' @@ -41,18 +42,20 @@ class V1VirtualMachineInstanceBackupStatus(object): attribute_map = { 'backup_msg': 'backupMsg', 'backup_name': 'backupName', + 'checkpoint_name': 'checkpointName', 'completed': 'completed', 'end_timestamp': 'endTimestamp', 'start_timestamp': 'startTimestamp' } - def __init__(self, backup_msg=None, backup_name=None, completed=None, end_timestamp=None, start_timestamp=None): + def __init__(self, backup_msg=None, backup_name=None, checkpoint_name=None, completed=None, end_timestamp=None, start_timestamp=None): """ V1VirtualMachineInstanceBackupStatus - a model defined in Swagger """ self._backup_msg = None self._backup_name = None + self._checkpoint_name = None self._completed = None self._end_timestamp = None self._start_timestamp = None @@ -61,6 +64,8 @@ def __init__(self, backup_msg=None, backup_name=None, completed=None, end_timest self.backup_msg = backup_msg if backup_name is not None: self.backup_name = backup_name + if checkpoint_name is not None: + self.checkpoint_name = checkpoint_name if completed is not None: self.completed = completed if end_timestamp is not None: @@ -114,6 +119,29 @@ def backup_name(self, backup_name): self._backup_name = backup_name + @property + def checkpoint_name(self): + """ + Gets the checkpoint_name of this V1VirtualMachineInstanceBackupStatus. + CheckpointName is the name of the checkpoint created for the backup + + :return: The checkpoint_name of this V1VirtualMachineInstanceBackupStatus. + :rtype: str + """ + return self._checkpoint_name + + @checkpoint_name.setter + def checkpoint_name(self, checkpoint_name): + """ + Sets the checkpoint_name of this V1VirtualMachineInstanceBackupStatus. + CheckpointName is the name of the checkpoint created for the backup + + :param checkpoint_name: The checkpoint_name of this V1VirtualMachineInstanceBackupStatus. + :type: str + """ + + self._checkpoint_name = checkpoint_name + @property def completed(self): """ diff --git a/kubevirt/models/v1alpha1_backup_options.py b/kubevirt/models/v1alpha1_backup_options.py index d48fc22b..92601176 100644 --- a/kubevirt/models/v1alpha1_backup_options.py +++ b/kubevirt/models/v1alpha1_backup_options.py @@ -34,6 +34,7 @@ class V1alpha1BackupOptions(object): 'backup_name': 'str', 'backup_start_time': 'K8sIoApimachineryPkgApisMetaV1Time', 'cmd': 'str', + 'incremental': 'str', 'mode': 'str', 'push_path': 'str', 'skip_quiesce': 'bool' @@ -43,12 +44,13 @@ class V1alpha1BackupOptions(object): 'backup_name': 'backupName', 'backup_start_time': 'backupStartTime', 'cmd': 'cmd', + 'incremental': 'incremental', 'mode': 'mode', 'push_path': 'pushPath', 'skip_quiesce': 'skipQuiesce' } - def __init__(self, backup_name=None, backup_start_time=None, cmd=None, mode=None, push_path=None, skip_quiesce=None): + def __init__(self, backup_name=None, backup_start_time=None, cmd=None, incremental=None, mode=None, push_path=None, skip_quiesce=None): """ V1alpha1BackupOptions - a model defined in Swagger """ @@ -56,6 +58,7 @@ def __init__(self, backup_name=None, backup_start_time=None, cmd=None, mode=None self._backup_name = None self._backup_start_time = None self._cmd = None + self._incremental = None self._mode = None self._push_path = None self._skip_quiesce = None @@ -66,6 +69,8 @@ def __init__(self, backup_name=None, backup_start_time=None, cmd=None, mode=None self.backup_start_time = backup_start_time if cmd is not None: self.cmd = cmd + if incremental is not None: + self.incremental = incremental if mode is not None: self.mode = mode if push_path is not None: @@ -136,6 +141,27 @@ def cmd(self, cmd): self._cmd = cmd + @property + def incremental(self): + """ + Gets the incremental of this V1alpha1BackupOptions. + + :return: The incremental of this V1alpha1BackupOptions. + :rtype: str + """ + return self._incremental + + @incremental.setter + def incremental(self, incremental): + """ + Sets the incremental of this V1alpha1BackupOptions. + + :param incremental: The incremental of this V1alpha1BackupOptions. + :type: str + """ + + self._incremental = incremental + @property def mode(self): """ diff --git a/kubevirt/models/v1alpha1_virtual_machine_backup_spec.py b/kubevirt/models/v1alpha1_virtual_machine_backup_spec.py index d27dbabe..0c4276d0 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_backup_spec.py +++ b/kubevirt/models/v1alpha1_virtual_machine_backup_spec.py @@ -65,8 +65,7 @@ def __init__(self, force_full_backup=None, mode=None, pvc_name=None, skip_quiesc self.pvc_name = pvc_name if skip_quiesce is not None: self.skip_quiesce = skip_quiesce - if source is not None: - self.source = source + self.source = source @property def force_full_backup(self): @@ -164,7 +163,7 @@ def skip_quiesce(self, skip_quiesce): def source(self): """ Gets the source of this V1alpha1VirtualMachineBackupSpec. - Source specifies the VM to backup If not provided, a reference to a VirtualMachineBackupTracker must be specified instead + Source specifies the backup source - either a VirtualMachine or a VirtualMachineBackupTracker. When Kind is VirtualMachine: performs a backup of the specified VM. When Kind is VirtualMachineBackupTracker: uses the tracker to get the source VM and the base checkpoint for incremental backup. The tracker will be updated with the new checkpoint after backup completion. :return: The source of this V1alpha1VirtualMachineBackupSpec. :rtype: K8sIoApiCoreV1TypedLocalObjectReference @@ -175,11 +174,13 @@ def source(self): def source(self, source): """ Sets the source of this V1alpha1VirtualMachineBackupSpec. - Source specifies the VM to backup If not provided, a reference to a VirtualMachineBackupTracker must be specified instead + Source specifies the backup source - either a VirtualMachine or a VirtualMachineBackupTracker. When Kind is VirtualMachine: performs a backup of the specified VM. When Kind is VirtualMachineBackupTracker: uses the tracker to get the source VM and the base checkpoint for incremental backup. The tracker will be updated with the new checkpoint after backup completion. :param source: The source of this V1alpha1VirtualMachineBackupSpec. :type: K8sIoApiCoreV1TypedLocalObjectReference """ + if source is None: + raise ValueError("Invalid value for `source`, must not be `None`") self._source = source diff --git a/kubevirt/models/v1alpha1_virtual_machine_backup_status.py b/kubevirt/models/v1alpha1_virtual_machine_backup_status.py index 5b4c1efe..a63c8c10 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_backup_status.py +++ b/kubevirt/models/v1alpha1_virtual_machine_backup_status.py @@ -31,28 +31,56 @@ class V1alpha1VirtualMachineBackupStatus(object): and the value is json key in definition. """ swagger_types = { + 'checkpoint_name': 'str', 'conditions': 'list[V1alpha1Condition]', 'type': 'str' } attribute_map = { + 'checkpoint_name': 'checkpointName', 'conditions': 'conditions', 'type': 'type' } - def __init__(self, conditions=None, type=None): + def __init__(self, checkpoint_name=None, conditions=None, type=None): """ V1alpha1VirtualMachineBackupStatus - a model defined in Swagger """ + self._checkpoint_name = None self._conditions = None self._type = None + if checkpoint_name is not None: + self.checkpoint_name = checkpoint_name if conditions is not None: self.conditions = conditions if type is not None: self.type = type + @property + def checkpoint_name(self): + """ + Gets the checkpoint_name of this V1alpha1VirtualMachineBackupStatus. + CheckpointName the name of the checkpoint created for the current backup + + :return: The checkpoint_name of this V1alpha1VirtualMachineBackupStatus. + :rtype: str + """ + return self._checkpoint_name + + @checkpoint_name.setter + def checkpoint_name(self, checkpoint_name): + """ + Sets the checkpoint_name of this V1alpha1VirtualMachineBackupStatus. + CheckpointName the name of the checkpoint created for the current backup + + :param checkpoint_name: The checkpoint_name of this V1alpha1VirtualMachineBackupStatus. + :type: str + """ + + self._checkpoint_name = checkpoint_name + @property def conditions(self): """ diff --git a/setup.py b/setup.py index 401c68c0..c3598c3c 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.7.0-beta.0-577-gc429950016" +VERSION = "v1.7.0-beta.0-654-gce30705b43" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 1eeb8f41..bff83a48 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.7.0-beta.0-577-gc429950016" +"packageVersion": "v1.7.0-beta.0-654-gce30705b43" } From c5ea5d2dcb98c8ef8ded69e512573cca8567690a Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 15 Jan 2026 14:26:19 +0000 Subject: [PATCH 499/521] Client Python update by KubeVirt Prow build 2011799814177558528 --- README.md | 2 +- docs/V1beta1VirtualMachineCloneSpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1beta1_virtual_machine_clone_spec.py | 34 +++++++++++++++++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 38 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 8cc6f4f7..8965e2ff 100644 --- a/README.md +++ b/README.md @@ -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.7.0-beta.0-654-gce30705b43 +- Package version: v1.8.0-alpha.0-20-gfbc624d5da - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1VirtualMachineCloneSpec.md b/docs/V1beta1VirtualMachineCloneSpec.md index d54cabac..0d0ee21a 100644 --- a/docs/V1beta1VirtualMachineCloneSpec.md +++ b/docs/V1beta1VirtualMachineCloneSpec.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Source is the object that would be cloned. Currently supported source types are: VirtualMachine of kubevirt.io API group, VirtualMachineSnapshot of snapshot.kubevirt.io API group | **target** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Target is the outcome of the cloning process. Currently supported source types are: - VirtualMachine of kubevirt.io API group - Empty (nil). If the target is not provided, the target type would default to VirtualMachine and a random name would be generated for the target. The target's name can be viewed by inspecting status \"TargetName\" field below. | [optional] **template** | [**V1beta1VirtualMachineCloneTemplateFilters**](V1beta1VirtualMachineCloneTemplateFilters.md) | For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. | [optional] +**volume_name_policy** | **str** | VolumeNamePolicy defines how to handle volume naming during the clone operation | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index c62772f0..3d9a9ac3 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.7.0-beta.0-654-gce30705b43" + release_note="Auto-generated client v1.8.0-alpha.0-20-gfbc624d5da" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 4d2a3f0c..cb71c028 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.7.0-beta.0-654-gce30705b43/python' + self.user_agent = 'Swagger-Codegen/v1.8.0-alpha.0-20-gfbc624d5da/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 2a55c9bb..853e5704 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.7.0-beta.0-654-gce30705b43".\ + "SDK Package Version: v1.8.0-alpha.0-20-gfbc624d5da".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_virtual_machine_clone_spec.py b/kubevirt/models/v1beta1_virtual_machine_clone_spec.py index 86b42510..f04dad6b 100644 --- a/kubevirt/models/v1beta1_virtual_machine_clone_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_clone_spec.py @@ -38,7 +38,8 @@ class V1beta1VirtualMachineCloneSpec(object): 'patches': 'list[str]', 'source': 'K8sIoApiCoreV1TypedLocalObjectReference', 'target': 'K8sIoApiCoreV1TypedLocalObjectReference', - 'template': 'V1beta1VirtualMachineCloneTemplateFilters' + 'template': 'V1beta1VirtualMachineCloneTemplateFilters', + 'volume_name_policy': 'str' } attribute_map = { @@ -49,10 +50,11 @@ class V1beta1VirtualMachineCloneSpec(object): 'patches': 'patches', 'source': 'source', 'target': 'target', - 'template': 'template' + 'template': 'template', + 'volume_name_policy': 'volumeNamePolicy' } - def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresses=None, new_sm_bios_serial=None, patches=None, source=None, target=None, template=None): + def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresses=None, new_sm_bios_serial=None, patches=None, source=None, target=None, template=None, volume_name_policy=None): """ V1beta1VirtualMachineCloneSpec - a model defined in Swagger """ @@ -65,6 +67,7 @@ def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresse self._source = None self._target = None self._template = None + self._volume_name_policy = None if annotation_filters is not None: self.annotation_filters = annotation_filters @@ -81,6 +84,8 @@ def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresse self.target = target if template is not None: self.template = template + if volume_name_policy is not None: + self.volume_name_policy = volume_name_policy @property def annotation_filters(self): @@ -268,6 +273,29 @@ def template(self, template): self._template = template + @property + def volume_name_policy(self): + """ + Gets the volume_name_policy of this V1beta1VirtualMachineCloneSpec. + VolumeNamePolicy defines how to handle volume naming during the clone operation + + :return: The volume_name_policy of this V1beta1VirtualMachineCloneSpec. + :rtype: str + """ + return self._volume_name_policy + + @volume_name_policy.setter + def volume_name_policy(self, volume_name_policy): + """ + Sets the volume_name_policy of this V1beta1VirtualMachineCloneSpec. + VolumeNamePolicy defines how to handle volume naming during the clone operation + + :param volume_name_policy: The volume_name_policy of this V1beta1VirtualMachineCloneSpec. + :type: str + """ + + self._volume_name_policy = volume_name_policy + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index c3598c3c..cf1e52ca 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.7.0-beta.0-654-gce30705b43" +VERSION = "v1.8.0-alpha.0-20-gfbc624d5da" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index bff83a48..d51f04cb 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.7.0-beta.0-654-gce30705b43" +"packageVersion": "v1.8.0-alpha.0-20-gfbc624d5da" } From a1ee1515a115273d9db9dffe62c11db7f3c8295f Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 15 Jan 2026 14:26:23 +0000 Subject: [PATCH 500/521] Client Python update by KubeVirt Prow build 2011799781315186688 --- README.md | 2 +- docs/V1beta1VirtualMachineCloneSpec.md | 1 - git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1beta1_virtual_machine_clone_spec.py | 34 ++----------------- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 9 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index 8965e2ff..2a79cb3c 100644 --- a/README.md +++ b/README.md @@ -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.8.0-alpha.0-20-gfbc624d5da +- Package version: v1.8.0-alpha.0-17-g8865cbef7a - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1VirtualMachineCloneSpec.md b/docs/V1beta1VirtualMachineCloneSpec.md index 0d0ee21a..d54cabac 100644 --- a/docs/V1beta1VirtualMachineCloneSpec.md +++ b/docs/V1beta1VirtualMachineCloneSpec.md @@ -11,7 +11,6 @@ Name | Type | Description | Notes **source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Source is the object that would be cloned. Currently supported source types are: VirtualMachine of kubevirt.io API group, VirtualMachineSnapshot of snapshot.kubevirt.io API group | **target** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Target is the outcome of the cloning process. Currently supported source types are: - VirtualMachine of kubevirt.io API group - Empty (nil). If the target is not provided, the target type would default to VirtualMachine and a random name would be generated for the target. The target's name can be viewed by inspecting status \"TargetName\" field below. | [optional] **template** | [**V1beta1VirtualMachineCloneTemplateFilters**](V1beta1VirtualMachineCloneTemplateFilters.md) | For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. | [optional] -**volume_name_policy** | **str** | VolumeNamePolicy defines how to handle volume naming during the clone operation | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 3d9a9ac3..b24a572a 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.8.0-alpha.0-20-gfbc624d5da" + release_note="Auto-generated client v1.8.0-alpha.0-17-g8865cbef7a" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index cb71c028..cbadd8c9 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.8.0-alpha.0-20-gfbc624d5da/python' + self.user_agent = 'Swagger-Codegen/v1.8.0-alpha.0-17-g8865cbef7a/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 853e5704..c6ac0bf1 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.8.0-alpha.0-20-gfbc624d5da".\ + "SDK Package Version: v1.8.0-alpha.0-17-g8865cbef7a".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_virtual_machine_clone_spec.py b/kubevirt/models/v1beta1_virtual_machine_clone_spec.py index f04dad6b..86b42510 100644 --- a/kubevirt/models/v1beta1_virtual_machine_clone_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_clone_spec.py @@ -38,8 +38,7 @@ class V1beta1VirtualMachineCloneSpec(object): 'patches': 'list[str]', 'source': 'K8sIoApiCoreV1TypedLocalObjectReference', 'target': 'K8sIoApiCoreV1TypedLocalObjectReference', - 'template': 'V1beta1VirtualMachineCloneTemplateFilters', - 'volume_name_policy': 'str' + 'template': 'V1beta1VirtualMachineCloneTemplateFilters' } attribute_map = { @@ -50,11 +49,10 @@ class V1beta1VirtualMachineCloneSpec(object): 'patches': 'patches', 'source': 'source', 'target': 'target', - 'template': 'template', - 'volume_name_policy': 'volumeNamePolicy' + 'template': 'template' } - def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresses=None, new_sm_bios_serial=None, patches=None, source=None, target=None, template=None, volume_name_policy=None): + def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresses=None, new_sm_bios_serial=None, patches=None, source=None, target=None, template=None): """ V1beta1VirtualMachineCloneSpec - a model defined in Swagger """ @@ -67,7 +65,6 @@ def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresse self._source = None self._target = None self._template = None - self._volume_name_policy = None if annotation_filters is not None: self.annotation_filters = annotation_filters @@ -84,8 +81,6 @@ def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresse self.target = target if template is not None: self.template = template - if volume_name_policy is not None: - self.volume_name_policy = volume_name_policy @property def annotation_filters(self): @@ -273,29 +268,6 @@ def template(self, template): self._template = template - @property - def volume_name_policy(self): - """ - Gets the volume_name_policy of this V1beta1VirtualMachineCloneSpec. - VolumeNamePolicy defines how to handle volume naming during the clone operation - - :return: The volume_name_policy of this V1beta1VirtualMachineCloneSpec. - :rtype: str - """ - return self._volume_name_policy - - @volume_name_policy.setter - def volume_name_policy(self, volume_name_policy): - """ - Sets the volume_name_policy of this V1beta1VirtualMachineCloneSpec. - VolumeNamePolicy defines how to handle volume naming during the clone operation - - :param volume_name_policy: The volume_name_policy of this V1beta1VirtualMachineCloneSpec. - :type: str - """ - - self._volume_name_policy = volume_name_policy - def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index cf1e52ca..e2777cda 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.8.0-alpha.0-20-gfbc624d5da" +VERSION = "v1.8.0-alpha.0-17-g8865cbef7a" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index d51f04cb..2146dd51 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.8.0-alpha.0-20-gfbc624d5da" +"packageVersion": "v1.8.0-alpha.0-17-g8865cbef7a" } From c6fb0bf5dd5b9475ee005edc4d377ccd12db59fe Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 16 Jan 2026 04:39:43 +0000 Subject: [PATCH 501/521] Client Python update by KubeVirt Prow build 2012018714383224832 --- README.md | 2 +- docs/V1beta1VirtualMachineCloneSpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1beta1_virtual_machine_clone_spec.py | 34 +++++++++++++++++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 38 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 2a79cb3c..4d9bdb1e 100644 --- a/README.md +++ b/README.md @@ -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.8.0-alpha.0-17-g8865cbef7a +- Package version: v1.8.0-alpha.0-24-g9ff3c27309 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1VirtualMachineCloneSpec.md b/docs/V1beta1VirtualMachineCloneSpec.md index d54cabac..0d0ee21a 100644 --- a/docs/V1beta1VirtualMachineCloneSpec.md +++ b/docs/V1beta1VirtualMachineCloneSpec.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Source is the object that would be cloned. Currently supported source types are: VirtualMachine of kubevirt.io API group, VirtualMachineSnapshot of snapshot.kubevirt.io API group | **target** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Target is the outcome of the cloning process. Currently supported source types are: - VirtualMachine of kubevirt.io API group - Empty (nil). If the target is not provided, the target type would default to VirtualMachine and a random name would be generated for the target. The target's name can be viewed by inspecting status \"TargetName\" field below. | [optional] **template** | [**V1beta1VirtualMachineCloneTemplateFilters**](V1beta1VirtualMachineCloneTemplateFilters.md) | For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. | [optional] +**volume_name_policy** | **str** | VolumeNamePolicy defines how to handle volume naming during the clone operation | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index b24a572a..372c4a62 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.8.0-alpha.0-17-g8865cbef7a" + release_note="Auto-generated client v1.8.0-alpha.0-24-g9ff3c27309" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index cbadd8c9..605d7572 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.8.0-alpha.0-17-g8865cbef7a/python' + self.user_agent = 'Swagger-Codegen/v1.8.0-alpha.0-24-g9ff3c27309/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index c6ac0bf1..db0b2cfd 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.8.0-alpha.0-17-g8865cbef7a".\ + "SDK Package Version: v1.8.0-alpha.0-24-g9ff3c27309".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_virtual_machine_clone_spec.py b/kubevirt/models/v1beta1_virtual_machine_clone_spec.py index 86b42510..f04dad6b 100644 --- a/kubevirt/models/v1beta1_virtual_machine_clone_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_clone_spec.py @@ -38,7 +38,8 @@ class V1beta1VirtualMachineCloneSpec(object): 'patches': 'list[str]', 'source': 'K8sIoApiCoreV1TypedLocalObjectReference', 'target': 'K8sIoApiCoreV1TypedLocalObjectReference', - 'template': 'V1beta1VirtualMachineCloneTemplateFilters' + 'template': 'V1beta1VirtualMachineCloneTemplateFilters', + 'volume_name_policy': 'str' } attribute_map = { @@ -49,10 +50,11 @@ class V1beta1VirtualMachineCloneSpec(object): 'patches': 'patches', 'source': 'source', 'target': 'target', - 'template': 'template' + 'template': 'template', + 'volume_name_policy': 'volumeNamePolicy' } - def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresses=None, new_sm_bios_serial=None, patches=None, source=None, target=None, template=None): + def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresses=None, new_sm_bios_serial=None, patches=None, source=None, target=None, template=None, volume_name_policy=None): """ V1beta1VirtualMachineCloneSpec - a model defined in Swagger """ @@ -65,6 +67,7 @@ def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresse self._source = None self._target = None self._template = None + self._volume_name_policy = None if annotation_filters is not None: self.annotation_filters = annotation_filters @@ -81,6 +84,8 @@ def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresse self.target = target if template is not None: self.template = template + if volume_name_policy is not None: + self.volume_name_policy = volume_name_policy @property def annotation_filters(self): @@ -268,6 +273,29 @@ def template(self, template): self._template = template + @property + def volume_name_policy(self): + """ + Gets the volume_name_policy of this V1beta1VirtualMachineCloneSpec. + VolumeNamePolicy defines how to handle volume naming during the clone operation + + :return: The volume_name_policy of this V1beta1VirtualMachineCloneSpec. + :rtype: str + """ + return self._volume_name_policy + + @volume_name_policy.setter + def volume_name_policy(self, volume_name_policy): + """ + Sets the volume_name_policy of this V1beta1VirtualMachineCloneSpec. + VolumeNamePolicy defines how to handle volume naming during the clone operation + + :param volume_name_policy: The volume_name_policy of this V1beta1VirtualMachineCloneSpec. + :type: str + """ + + self._volume_name_policy = volume_name_policy + def to_dict(self): """ Returns the model properties as a dict diff --git a/setup.py b/setup.py index e2777cda..643a4b65 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.8.0-alpha.0-17-g8865cbef7a" +VERSION = "v1.8.0-alpha.0-24-g9ff3c27309" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 2146dd51..99d9728e 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.8.0-alpha.0-17-g8865cbef7a" +"packageVersion": "v1.8.0-alpha.0-24-g9ff3c27309" } From e2c44bf70488cc6b21cccc07730017389f2315a5 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 16 Jan 2026 21:37:18 +0000 Subject: [PATCH 502/521] Client Python update by KubeVirt Prow build 2012274910461693952 --- README.md | 2 +- docs/V1MediatedDevicesConfiguration.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- .../v1_mediated_devices_configuration.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 4d9bdb1e..885c4066 100644 --- a/README.md +++ b/README.md @@ -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.8.0-alpha.0-24-g9ff3c27309 +- Package version: v1.8.0-alpha.0-30-gd5ae68bb02 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1MediatedDevicesConfiguration.md b/docs/V1MediatedDevicesConfiguration.md index b9b82c10..1fe42afe 100644 --- a/docs/V1MediatedDevicesConfiguration.md +++ b/docs/V1MediatedDevicesConfiguration.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | Enable the creation and removal of mediated devices by virt-handler Replaces the deprecated DisableMDEVConfiguration feature gate Defaults to true | [optional] **mediated_device_types** | **list[str]** | | [optional] **mediated_devices_types** | **list[str]** | Deprecated. Use mediatedDeviceTypes instead. | [optional] **node_mediated_device_types** | [**list[V1NodeMediatedDeviceTypesConfig]**](V1NodeMediatedDeviceTypesConfig.md) | | [optional] diff --git a/git_push.sh b/git_push.sh index 372c4a62..a953327f 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.8.0-alpha.0-24-g9ff3c27309" + release_note="Auto-generated client v1.8.0-alpha.0-30-gd5ae68bb02" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 605d7572..5e50cb1c 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.8.0-alpha.0-24-g9ff3c27309/python' + self.user_agent = 'Swagger-Codegen/v1.8.0-alpha.0-30-gd5ae68bb02/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index db0b2cfd..8de25fd4 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.8.0-alpha.0-24-g9ff3c27309".\ + "SDK Package Version: v1.8.0-alpha.0-30-gd5ae68bb02".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_mediated_devices_configuration.py b/kubevirt/models/v1_mediated_devices_configuration.py index c8ed0ac2..a482032c 100644 --- a/kubevirt/models/v1_mediated_devices_configuration.py +++ b/kubevirt/models/v1_mediated_devices_configuration.py @@ -31,26 +31,31 @@ class V1MediatedDevicesConfiguration(object): and the value is json key in definition. """ swagger_types = { + 'enabled': 'bool', 'mediated_device_types': 'list[str]', 'mediated_devices_types': 'list[str]', 'node_mediated_device_types': 'list[V1NodeMediatedDeviceTypesConfig]' } attribute_map = { + 'enabled': 'enabled', 'mediated_device_types': 'mediatedDeviceTypes', 'mediated_devices_types': 'mediatedDevicesTypes', 'node_mediated_device_types': 'nodeMediatedDeviceTypes' } - def __init__(self, mediated_device_types=None, mediated_devices_types=None, node_mediated_device_types=None): + def __init__(self, enabled=None, mediated_device_types=None, mediated_devices_types=None, node_mediated_device_types=None): """ V1MediatedDevicesConfiguration - a model defined in Swagger """ + self._enabled = None self._mediated_device_types = None self._mediated_devices_types = None self._node_mediated_device_types = None + if enabled is not None: + self.enabled = enabled if mediated_device_types is not None: self.mediated_device_types = mediated_device_types if mediated_devices_types is not None: @@ -58,6 +63,29 @@ def __init__(self, mediated_device_types=None, mediated_devices_types=None, node if node_mediated_device_types is not None: self.node_mediated_device_types = node_mediated_device_types + @property + def enabled(self): + """ + Gets the enabled of this V1MediatedDevicesConfiguration. + Enable the creation and removal of mediated devices by virt-handler Replaces the deprecated DisableMDEVConfiguration feature gate Defaults to true + + :return: The enabled of this V1MediatedDevicesConfiguration. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """ + Sets the enabled of this V1MediatedDevicesConfiguration. + Enable the creation and removal of mediated devices by virt-handler Replaces the deprecated DisableMDEVConfiguration feature gate Defaults to true + + :param enabled: The enabled of this V1MediatedDevicesConfiguration. + :type: bool + """ + + self._enabled = enabled + @property def mediated_device_types(self): """ diff --git a/setup.py b/setup.py index 643a4b65..9f737bc2 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.8.0-alpha.0-24-g9ff3c27309" +VERSION = "v1.8.0-alpha.0-30-gd5ae68bb02" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 99d9728e..08a72bfc 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.8.0-alpha.0-24-g9ff3c27309" +"packageVersion": "v1.8.0-alpha.0-30-gd5ae68bb02" } From 66bdf5eeb46794dc750793e439f1845ab32d7a63 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 23 Jan 2026 13:03:46 +0000 Subject: [PATCH 503/521] Client Python update by KubeVirt Prow build 2014679985607938048 --- README.md | 3 +- docs/V1HypervisorConfiguration.md | 10 ++ docs/V1KubeVirtConfiguration.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + .../models/v1_hypervisor_configuration.py | 125 ++++++++++++++++++ kubevirt/models/v1_kube_virt_configuration.py | 30 ++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_hypervisor_configuration.py | 44 ++++++ 14 files changed, 221 insertions(+), 7 deletions(-) create mode 100644 docs/V1HypervisorConfiguration.md create mode 100644 kubevirt/models/v1_hypervisor_configuration.py create mode 100644 test/test_v1_hypervisor_configuration.py diff --git a/README.md b/README.md index 885c4066..37e1d8b0 100644 --- a/README.md +++ b/README.md @@ -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.8.0-alpha.0-30-gd5ae68bb02 +- Package version: v1.8.0-alpha.0-99-g14fcc341e5 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -502,6 +502,7 @@ Class | Method | HTTP request | Description - [V1Hugepages](docs/V1Hugepages.md) - [V1HyperVPassthrough](docs/V1HyperVPassthrough.md) - [V1HypervTimer](docs/V1HypervTimer.md) + - [V1HypervisorConfiguration](docs/V1HypervisorConfiguration.md) - [V1I6300ESBWatchdog](docs/V1I6300ESBWatchdog.md) - [V1InitrdInfo](docs/V1InitrdInfo.md) - [V1Input](docs/V1Input.md) diff --git a/docs/V1HypervisorConfiguration.md b/docs/V1HypervisorConfiguration.md new file mode 100644 index 00000000..8f55e61e --- /dev/null +++ b/docs/V1HypervisorConfiguration.md @@ -0,0 +1,10 @@ +# V1HypervisorConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name is the name of the hypervisor. Supported values are: \"kvm\", \"hyperv-direct\". | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index 509c8f93..3233590d 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **emulated_machines** | **list[str]** | Deprecated. Use architectureConfiguration instead. | [optional] **eviction_strategy** | **str** | EvictionStrategy defines at the cluster level if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain. If the VirtualMachineInstance specific field is set it overrides the cluster level one. | [optional] **handler_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] +**hypervisors** | [**list[V1HypervisorConfiguration]**](V1HypervisorConfiguration.md) | Hypervisors holds information regarding the hypervisor configurations supported on this cluster. | [optional] **image_pull_policy** | **str** | Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present | [optional] **instancetype** | [**V1InstancetypeConfiguration**](V1InstancetypeConfiguration.md) | Instancetype configuration | [optional] **ksm_configuration** | [**V1KSMConfiguration**](V1KSMConfiguration.md) | KSMConfiguration holds the information regarding the enabling the KSM in the nodes (if available). | [optional] diff --git a/git_push.sh b/git_push.sh index a953327f..a0be8782 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.8.0-alpha.0-30-gd5ae68bb02" + release_note="Auto-generated client v1.8.0-alpha.0-99-g14fcc341e5" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 9f2c6513..671f36a0 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -446,6 +446,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_hyperv_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_hyperv_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1HypervTimer.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_hypervisor_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_hypervisor_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1HypervisorConfiguration.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_i6300_esb_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_i6300_esb_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1I6300ESBWatchdog.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index df4672fc..6b6a94cc 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -155,6 +155,7 @@ from .models.v1_hugepages import V1Hugepages from .models.v1_hyper_v_passthrough import V1HyperVPassthrough from .models.v1_hyperv_timer import V1HypervTimer +from .models.v1_hypervisor_configuration import V1HypervisorConfiguration from .models.v1_i6300_esb_watchdog import V1I6300ESBWatchdog from .models.v1_initrd_info import V1InitrdInfo from .models.v1_input import V1Input diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 5e50cb1c..4221fa57 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.8.0-alpha.0-30-gd5ae68bb02/python' + self.user_agent = 'Swagger-Codegen/v1.8.0-alpha.0-99-g14fcc341e5/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 8de25fd4..0559ee0d 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.8.0-alpha.0-30-gd5ae68bb02".\ + "SDK Package Version: v1.8.0-alpha.0-99-g14fcc341e5".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 1e643bc8..46d43213 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -155,6 +155,7 @@ from .v1_hugepages import V1Hugepages from .v1_hyper_v_passthrough import V1HyperVPassthrough from .v1_hyperv_timer import V1HypervTimer +from .v1_hypervisor_configuration import V1HypervisorConfiguration from .v1_i6300_esb_watchdog import V1I6300ESBWatchdog from .v1_initrd_info import V1InitrdInfo from .v1_input import V1Input diff --git a/kubevirt/models/v1_hypervisor_configuration.py b/kubevirt/models/v1_hypervisor_configuration.py new file mode 100644 index 00000000..be556e67 --- /dev/null +++ b/kubevirt/models/v1_hypervisor_configuration.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1HypervisorConfiguration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str' + } + + attribute_map = { + 'name': 'name' + } + + def __init__(self, name=None): + """ + V1HypervisorConfiguration - a model defined in Swagger + """ + + self._name = None + + if name is not None: + self.name = name + + @property + def name(self): + """ + Gets the name of this V1HypervisorConfiguration. + Name is the name of the hypervisor. Supported values are: \"kvm\", \"hyperv-direct\". + + :return: The name of this V1HypervisorConfiguration. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1HypervisorConfiguration. + Name is the name of the hypervisor. Supported values are: \"kvm\", \"hyperv-direct\". + + :param name: The name of this V1HypervisorConfiguration. + :type: str + """ + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1HypervisorConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index 83c1e8dc..0711867e 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -45,6 +45,7 @@ class V1KubeVirtConfiguration(object): 'emulated_machines': 'list[str]', 'eviction_strategy': 'str', 'handler_configuration': 'V1ReloadableComponentConfiguration', + 'hypervisors': 'list[V1HypervisorConfiguration]', 'image_pull_policy': 'str', 'instancetype': 'V1InstancetypeConfiguration', 'ksm_configuration': 'V1KSMConfiguration', @@ -86,6 +87,7 @@ class V1KubeVirtConfiguration(object): 'emulated_machines': 'emulatedMachines', 'eviction_strategy': 'evictionStrategy', 'handler_configuration': 'handlerConfiguration', + 'hypervisors': 'hypervisors', 'image_pull_policy': 'imagePullPolicy', 'instancetype': 'instancetype', 'ksm_configuration': 'ksmConfiguration', @@ -112,7 +114,7 @@ class V1KubeVirtConfiguration(object): 'webhook_configuration': 'webhookConfiguration' } - def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, auto_cpu_limit_namespace_label_selector=None, changed_block_tracking_label_selectors=None, common_instancetypes_deployment=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, instancetype=None, ksm_configuration=None, live_update_configuration=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, virtual_machine_options=None, vm_rollout_strategy=None, vm_state_storage_class=None, webhook_configuration=None): + def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, auto_cpu_limit_namespace_label_selector=None, changed_block_tracking_label_selectors=None, common_instancetypes_deployment=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, hypervisors=None, image_pull_policy=None, instancetype=None, ksm_configuration=None, live_update_configuration=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, virtual_machine_options=None, vm_rollout_strategy=None, vm_state_storage_class=None, webhook_configuration=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ @@ -131,6 +133,7 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self._emulated_machines = None self._eviction_strategy = None self._handler_configuration = None + self._hypervisors = None self._image_pull_policy = None self._instancetype = None self._ksm_configuration = None @@ -184,6 +187,8 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self.eviction_strategy = eviction_strategy if handler_configuration is not None: self.handler_configuration = handler_configuration + if hypervisors is not None: + self.hypervisors = hypervisors if image_pull_policy is not None: self.image_pull_policy = image_pull_policy if instancetype is not None: @@ -539,6 +544,29 @@ def handler_configuration(self, handler_configuration): self._handler_configuration = handler_configuration + @property + def hypervisors(self): + """ + Gets the hypervisors of this V1KubeVirtConfiguration. + Hypervisors holds information regarding the hypervisor configurations supported on this cluster. + + :return: The hypervisors of this V1KubeVirtConfiguration. + :rtype: list[V1HypervisorConfiguration] + """ + return self._hypervisors + + @hypervisors.setter + def hypervisors(self, hypervisors): + """ + Sets the hypervisors of this V1KubeVirtConfiguration. + Hypervisors holds information regarding the hypervisor configurations supported on this cluster. + + :param hypervisors: The hypervisors of this V1KubeVirtConfiguration. + :type: list[V1HypervisorConfiguration] + """ + + self._hypervisors = hypervisors + @property def image_pull_policy(self): """ diff --git a/setup.py b/setup.py index 9f737bc2..bbcfdf18 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.8.0-alpha.0-30-gd5ae68bb02" +VERSION = "v1.8.0-alpha.0-99-g14fcc341e5" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 08a72bfc..3c0f123b 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.8.0-alpha.0-30-gd5ae68bb02" +"packageVersion": "v1.8.0-alpha.0-99-g14fcc341e5" } diff --git a/test/test_v1_hypervisor_configuration.py b/test/test_v1_hypervisor_configuration.py new file mode 100644 index 00000000..68eaff29 --- /dev/null +++ b/test/test_v1_hypervisor_configuration.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_hypervisor_configuration import V1HypervisorConfiguration + + +class TestV1HypervisorConfiguration(unittest.TestCase): + """ V1HypervisorConfiguration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1HypervisorConfiguration(self): + """ + Test V1HypervisorConfiguration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_hypervisor_configuration.V1HypervisorConfiguration() + pass + + +if __name__ == '__main__': + unittest.main() From c45c197ef4c5a21d45c99ca3416580c79c3c2340 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Tue, 27 Jan 2026 22:12:50 +0000 Subject: [PATCH 504/521] Client Python update by KubeVirt Prow build 2016265437506965504 --- README.md | 3 +- docs/V1FeatureHyperv.md | 2 +- docs/V1SyNICTimer.md | 2 +- docs/V1TLBFlush.md | 12 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_feature_hyperv.py | 6 +- kubevirt/models/v1_sy_nic_timer.py | 2 + kubevirt/models/v1_tlb_flush.py | 181 +++++++++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_tlb_flush.py | 44 +++++++ 16 files changed, 256 insertions(+), 11 deletions(-) create mode 100644 docs/V1TLBFlush.md create mode 100644 kubevirt/models/v1_tlb_flush.py create mode 100644 test/test_v1_tlb_flush.py diff --git a/README.md b/README.md index 37e1d8b0..471b760c 100644 --- a/README.md +++ b/README.md @@ -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.8.0-alpha.0-99-g14fcc341e5 +- Package version: v1.8.0-alpha.0-142-g9065127c03 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -599,6 +599,7 @@ Class | Method | HTTP request | Description - [V1SyNICTimer](docs/V1SyNICTimer.md) - [V1SysprepSource](docs/V1SysprepSource.md) - [V1TDX](docs/V1TDX.md) + - [V1TLBFlush](docs/V1TLBFlush.md) - [V1TLSConfiguration](docs/V1TLSConfiguration.md) - [V1TPMDevice](docs/V1TPMDevice.md) - [V1Timer](docs/V1Timer.md) diff --git a/docs/V1FeatureHyperv.md b/docs/V1FeatureHyperv.md index dedbbc48..b5a809ec 100644 --- a/docs/V1FeatureHyperv.md +++ b/docs/V1FeatureHyperv.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **spinlocks** | [**V1FeatureSpinlocks**](V1FeatureSpinlocks.md) | Spinlocks allows to configure the spinlock retry attempts. | [optional] **synic** | [**V1FeatureState**](V1FeatureState.md) | SyNIC enables the Synthetic Interrupt Controller. Defaults to the machine type setting. | [optional] **synictimer** | [**V1SyNICTimer**](V1SyNICTimer.md) | SyNICTimer enables Synthetic Interrupt Controller Timers, reducing CPU load. Defaults to the machine type setting. | [optional] -**tlbflush** | [**V1FeatureState**](V1FeatureState.md) | TLBFlush improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. | [optional] +**tlbflush** | [**V1TLBFlush**](V1TLBFlush.md) | TLBFlush improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. | [optional] **vapic** | [**V1FeatureState**](V1FeatureState.md) | VAPIC improves the paravirtualized handling of interrupts. Defaults to the machine type setting. | [optional] **vendorid** | [**V1FeatureVendorID**](V1FeatureVendorID.md) | VendorID allows setting the hypervisor vendor id. Defaults to the machine type setting. | [optional] **vpindex** | [**V1FeatureState**](V1FeatureState.md) | VPIndex enables the Virtual Processor Index to help windows identifying virtual processors. Defaults to the machine type setting. | [optional] diff --git a/docs/V1SyNICTimer.md b/docs/V1SyNICTimer.md index efe2c7c6..155cb3a8 100644 --- a/docs/V1SyNICTimer.md +++ b/docs/V1SyNICTimer.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **direct** | [**V1FeatureState**](V1FeatureState.md) | | [optional] -**enabled** | **bool** | | [optional] +**enabled** | **bool** | Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1TLBFlush.md b/docs/V1TLBFlush.md new file mode 100644 index 00000000..2560235c --- /dev/null +++ b/docs/V1TLBFlush.md @@ -0,0 +1,12 @@ +# V1TLBFlush + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**direct** | [**V1FeatureState**](V1FeatureState.md) | Direct allows sending the TLB flush command directly to the hypervisor. It can be useful to optimize performance in nested virtualization cases, such as Windows VBS. | [optional] +**enabled** | **bool** | Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. | [optional] +**extended** | [**V1FeatureState**](V1FeatureState.md) | Extended allows the guest to execute partial TLB flushes. It can be helpful for general purpose workloads. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index a0be8782..a949c3f1 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.8.0-alpha.0-99-g14fcc341e5" + release_note="Auto-generated client v1.8.0-alpha.0-142-g9065127c03" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 671f36a0..49134305 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -737,6 +737,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_tdx.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_tdx.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1TDX.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_tlb_flush.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_tlb_flush.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1TLBFlush.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_tls_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_tls_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1TLSConfiguration.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 6b6a94cc..9fbf1c21 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -252,6 +252,7 @@ from .models.v1_sy_nic_timer import V1SyNICTimer from .models.v1_sysprep_source import V1SysprepSource from .models.v1_tdx import V1TDX +from .models.v1_tlb_flush import V1TLBFlush from .models.v1_tls_configuration import V1TLSConfiguration from .models.v1_tpm_device import V1TPMDevice from .models.v1_timer import V1Timer diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 4221fa57..79d433dc 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.8.0-alpha.0-99-g14fcc341e5/python' + self.user_agent = 'Swagger-Codegen/v1.8.0-alpha.0-142-g9065127c03/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 0559ee0d..6847e2df 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.8.0-alpha.0-99-g14fcc341e5".\ + "SDK Package Version: v1.8.0-alpha.0-142-g9065127c03".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 46d43213..2de0d19f 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -252,6 +252,7 @@ from .v1_sy_nic_timer import V1SyNICTimer from .v1_sysprep_source import V1SysprepSource from .v1_tdx import V1TDX +from .v1_tlb_flush import V1TLBFlush from .v1_tls_configuration import V1TLSConfiguration from .v1_tpm_device import V1TPMDevice from .v1_timer import V1Timer diff --git a/kubevirt/models/v1_feature_hyperv.py b/kubevirt/models/v1_feature_hyperv.py index 60f673e2..07cedcf9 100644 --- a/kubevirt/models/v1_feature_hyperv.py +++ b/kubevirt/models/v1_feature_hyperv.py @@ -41,7 +41,7 @@ class V1FeatureHyperv(object): 'spinlocks': 'V1FeatureSpinlocks', 'synic': 'V1FeatureState', 'synictimer': 'V1SyNICTimer', - 'tlbflush': 'V1FeatureState', + 'tlbflush': 'V1TLBFlush', 'vapic': 'V1FeatureState', 'vendorid': 'V1FeatureVendorID', 'vpindex': 'V1FeatureState' @@ -350,7 +350,7 @@ def tlbflush(self): TLBFlush improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. :return: The tlbflush of this V1FeatureHyperv. - :rtype: V1FeatureState + :rtype: V1TLBFlush """ return self._tlbflush @@ -361,7 +361,7 @@ def tlbflush(self, tlbflush): TLBFlush improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. :param tlbflush: The tlbflush of this V1FeatureHyperv. - :type: V1FeatureState + :type: V1TLBFlush """ self._tlbflush = tlbflush diff --git a/kubevirt/models/v1_sy_nic_timer.py b/kubevirt/models/v1_sy_nic_timer.py index 65eb5b21..1af73ff8 100644 --- a/kubevirt/models/v1_sy_nic_timer.py +++ b/kubevirt/models/v1_sy_nic_timer.py @@ -78,6 +78,7 @@ def direct(self, direct): def enabled(self): """ Gets the enabled of this V1SyNICTimer. + Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. :return: The enabled of this V1SyNICTimer. :rtype: bool @@ -88,6 +89,7 @@ def enabled(self): def enabled(self, enabled): """ Sets the enabled of this V1SyNICTimer. + Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. :param enabled: The enabled of this V1SyNICTimer. :type: bool diff --git a/kubevirt/models/v1_tlb_flush.py b/kubevirt/models/v1_tlb_flush.py new file mode 100644 index 00000000..f0e829bf --- /dev/null +++ b/kubevirt/models/v1_tlb_flush.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1TLBFlush(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'direct': 'V1FeatureState', + 'enabled': 'bool', + 'extended': 'V1FeatureState' + } + + attribute_map = { + 'direct': 'direct', + 'enabled': 'enabled', + 'extended': 'extended' + } + + def __init__(self, direct=None, enabled=None, extended=None): + """ + V1TLBFlush - a model defined in Swagger + """ + + self._direct = None + self._enabled = None + self._extended = None + + if direct is not None: + self.direct = direct + if enabled is not None: + self.enabled = enabled + if extended is not None: + self.extended = extended + + @property + def direct(self): + """ + Gets the direct of this V1TLBFlush. + Direct allows sending the TLB flush command directly to the hypervisor. It can be useful to optimize performance in nested virtualization cases, such as Windows VBS. + + :return: The direct of this V1TLBFlush. + :rtype: V1FeatureState + """ + return self._direct + + @direct.setter + def direct(self, direct): + """ + Sets the direct of this V1TLBFlush. + Direct allows sending the TLB flush command directly to the hypervisor. It can be useful to optimize performance in nested virtualization cases, such as Windows VBS. + + :param direct: The direct of this V1TLBFlush. + :type: V1FeatureState + """ + + self._direct = direct + + @property + def enabled(self): + """ + Gets the enabled of this V1TLBFlush. + Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. + + :return: The enabled of this V1TLBFlush. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """ + Sets the enabled of this V1TLBFlush. + Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. + + :param enabled: The enabled of this V1TLBFlush. + :type: bool + """ + + self._enabled = enabled + + @property + def extended(self): + """ + Gets the extended of this V1TLBFlush. + Extended allows the guest to execute partial TLB flushes. It can be helpful for general purpose workloads. + + :return: The extended of this V1TLBFlush. + :rtype: V1FeatureState + """ + return self._extended + + @extended.setter + def extended(self, extended): + """ + Sets the extended of this V1TLBFlush. + Extended allows the guest to execute partial TLB flushes. It can be helpful for general purpose workloads. + + :param extended: The extended of this V1TLBFlush. + :type: V1FeatureState + """ + + self._extended = extended + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1TLBFlush): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index bbcfdf18..e274dd98 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.8.0-alpha.0-99-g14fcc341e5" +VERSION = "v1.8.0-alpha.0-142-g9065127c03" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 3c0f123b..b7c1328d 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.8.0-alpha.0-99-g14fcc341e5" +"packageVersion": "v1.8.0-alpha.0-142-g9065127c03" } diff --git a/test/test_v1_tlb_flush.py b/test/test_v1_tlb_flush.py new file mode 100644 index 00000000..ee3837a4 --- /dev/null +++ b/test/test_v1_tlb_flush.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_tlb_flush import V1TLBFlush + + +class TestV1TLBFlush(unittest.TestCase): + """ V1TLBFlush unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1TLBFlush(self): + """ + Test V1TLBFlush + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_tlb_flush.V1TLBFlush() + pass + + +if __name__ == '__main__': + unittest.main() From 68481704b3295cd6307d79c5802211504789769a Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 4 Feb 2026 22:11:03 +0000 Subject: [PATCH 505/521] Client Python update by KubeVirt Prow build 2019164436505300992 --- README.md | 2 +- docs/V1DeveloperConfiguration.md | 3 +- git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_developer_configuration.py | 34 +++++++++++++++++-- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 39 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 471b760c..b4532182 100644 --- a/README.md +++ b/README.md @@ -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.8.0-alpha.0-142-g9065127c03 +- Package version: v1.8.0-beta.0-73-g7fd66b371a - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1DeveloperConfiguration.md b/docs/V1DeveloperConfiguration.md index 1cc57cc9..01f61254 100644 --- a/docs/V1DeveloperConfiguration.md +++ b/docs/V1DeveloperConfiguration.md @@ -5,8 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cluster_profiler** | **bool** | Enable the ability to pprof profile KubeVirt control plane | [optional] **cpu_allocation_ratio** | **int** | For each requested virtual CPU, CPUAllocationRatio defines how much physical CPU to request per VMI from the hosting node. The value is in fraction of a CPU thread (or core on non-hyperthreaded nodes). For example, a value of 1 means 1 physical CPU thread per VMI CPU thread. A value of 100 would be 1% of a physical thread allocated for each requested VMI thread. This option has no effect on VMIs that request dedicated CPUs. More information at: https://kubevirt.io/user-guide/operations/node_overcommit/#node-cpu-allocation-ratio Defaults to 10 | [optional] +**disabled_feature_gates** | **list[str]** | DisabledFeatureGates specifies a list of experimental feature gates to disable. A feature gate must not appear in both FeatureGates and DisabledFeatureGates. | [optional] **disk_verification** | [**V1DiskVerification**](V1DiskVerification.md) | | [optional] -**feature_gates** | **list[str]** | FeatureGates is the list of experimental features to enable. Defaults to none | [optional] +**feature_gates** | **list[str]** | FeatureGates specifies a list of experimental feature gates to enable. Defaults to none. A feature gate must not appear in both FeatureGates and DisabledFeatureGates. | [optional] **log_verbosity** | [**V1LogVerbosity**](V1LogVerbosity.md) | | [optional] **memory_overcommit** | **int** | MemoryOvercommit is the percentage of memory we want to give VMIs compared to the amount given to its parent pod (virt-launcher). For example, a value of 102 means the VMI will \"see\" 2% more memory than its parent pod. Values under 100 are effectively \"undercommits\". Overcommits can lead to memory exhaustion, which in turn can lead to crashes. Use carefully. Defaults to 100 | [optional] **minimum_cluster_tsc_frequency** | **int** | Allow overriding the automatically determined minimum TSC frequency of the cluster and fixate the minimum to this frequency. | [optional] diff --git a/git_push.sh b/git_push.sh index a949c3f1..03169da7 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.8.0-alpha.0-142-g9065127c03" + release_note="Auto-generated client v1.8.0-beta.0-73-g7fd66b371a" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 79d433dc..3eaa3667 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.8.0-alpha.0-142-g9065127c03/python' + self.user_agent = 'Swagger-Codegen/v1.8.0-beta.0-73-g7fd66b371a/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 6847e2df..ecfd3339 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.8.0-alpha.0-142-g9065127c03".\ + "SDK Package Version: v1.8.0-beta.0-73-g7fd66b371a".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_developer_configuration.py b/kubevirt/models/v1_developer_configuration.py index 701dc2e1..838d23eb 100644 --- a/kubevirt/models/v1_developer_configuration.py +++ b/kubevirt/models/v1_developer_configuration.py @@ -33,6 +33,7 @@ class V1DeveloperConfiguration(object): swagger_types = { 'cluster_profiler': 'bool', 'cpu_allocation_ratio': 'int', + 'disabled_feature_gates': 'list[str]', 'disk_verification': 'V1DiskVerification', 'feature_gates': 'list[str]', 'log_verbosity': 'V1LogVerbosity', @@ -47,6 +48,7 @@ class V1DeveloperConfiguration(object): attribute_map = { 'cluster_profiler': 'clusterProfiler', 'cpu_allocation_ratio': 'cpuAllocationRatio', + 'disabled_feature_gates': 'disabledFeatureGates', 'disk_verification': 'diskVerification', 'feature_gates': 'featureGates', 'log_verbosity': 'logVerbosity', @@ -58,13 +60,14 @@ class V1DeveloperConfiguration(object): 'use_emulation': 'useEmulation' } - def __init__(self, cluster_profiler=None, cpu_allocation_ratio=None, disk_verification=None, feature_gates=None, log_verbosity=None, memory_overcommit=None, minimum_cluster_tsc_frequency=None, minimum_reserve_pvc_bytes=None, node_selectors=None, pvc_tolerate_less_space_up_to_percent=None, use_emulation=None): + def __init__(self, cluster_profiler=None, cpu_allocation_ratio=None, disabled_feature_gates=None, disk_verification=None, feature_gates=None, log_verbosity=None, memory_overcommit=None, minimum_cluster_tsc_frequency=None, minimum_reserve_pvc_bytes=None, node_selectors=None, pvc_tolerate_less_space_up_to_percent=None, use_emulation=None): """ V1DeveloperConfiguration - a model defined in Swagger """ self._cluster_profiler = None self._cpu_allocation_ratio = None + self._disabled_feature_gates = None self._disk_verification = None self._feature_gates = None self._log_verbosity = None @@ -79,6 +82,8 @@ def __init__(self, cluster_profiler=None, cpu_allocation_ratio=None, disk_verifi self.cluster_profiler = cluster_profiler if cpu_allocation_ratio is not None: self.cpu_allocation_ratio = cpu_allocation_ratio + if disabled_feature_gates is not None: + self.disabled_feature_gates = disabled_feature_gates if disk_verification is not None: self.disk_verification = disk_verification if feature_gates is not None: @@ -144,6 +149,29 @@ def cpu_allocation_ratio(self, cpu_allocation_ratio): self._cpu_allocation_ratio = cpu_allocation_ratio + @property + def disabled_feature_gates(self): + """ + Gets the disabled_feature_gates of this V1DeveloperConfiguration. + DisabledFeatureGates specifies a list of experimental feature gates to disable. A feature gate must not appear in both FeatureGates and DisabledFeatureGates. + + :return: The disabled_feature_gates of this V1DeveloperConfiguration. + :rtype: list[str] + """ + return self._disabled_feature_gates + + @disabled_feature_gates.setter + def disabled_feature_gates(self, disabled_feature_gates): + """ + Sets the disabled_feature_gates of this V1DeveloperConfiguration. + DisabledFeatureGates specifies a list of experimental feature gates to disable. A feature gate must not appear in both FeatureGates and DisabledFeatureGates. + + :param disabled_feature_gates: The disabled_feature_gates of this V1DeveloperConfiguration. + :type: list[str] + """ + + self._disabled_feature_gates = disabled_feature_gates + @property def disk_verification(self): """ @@ -169,7 +197,7 @@ def disk_verification(self, disk_verification): def feature_gates(self): """ Gets the feature_gates of this V1DeveloperConfiguration. - FeatureGates is the list of experimental features to enable. Defaults to none + FeatureGates specifies a list of experimental feature gates to enable. Defaults to none. A feature gate must not appear in both FeatureGates and DisabledFeatureGates. :return: The feature_gates of this V1DeveloperConfiguration. :rtype: list[str] @@ -180,7 +208,7 @@ def feature_gates(self): def feature_gates(self, feature_gates): """ Sets the feature_gates of this V1DeveloperConfiguration. - FeatureGates is the list of experimental features to enable. Defaults to none + FeatureGates specifies a list of experimental feature gates to enable. Defaults to none. A feature gate must not appear in both FeatureGates and DisabledFeatureGates. :param feature_gates: The feature_gates of this V1DeveloperConfiguration. :type: list[str] diff --git a/setup.py b/setup.py index e274dd98..caa585aa 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.8.0-alpha.0-142-g9065127c03" +VERSION = "v1.8.0-beta.0-73-g7fd66b371a" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index b7c1328d..d8889a33 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.8.0-alpha.0-142-g9065127c03" +"packageVersion": "v1.8.0-beta.0-73-g7fd66b371a" } From bf4a45181be18c21b56b60f59a8d4c5eb9e59dd4 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 5 Feb 2026 23:42:20 +0000 Subject: [PATCH 506/521] Client Python update by KubeVirt Prow build 2019548935764316160 --- README.md | 6 +- docs/DefaultApi.md | 104 ++++++++ docs/V1VirtualMachineInstanceBackupStatus.md | 1 + docs/V1alpha1BackupCheckpoint.md | 12 + docs/V1alpha1BackupVolumeInfo.md | 11 + docs/V1alpha1VirtualMachineBackupStatus.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 + kubevirt/__init__.py | 2 + kubevirt/api_client.py | 2 +- kubevirt/apis/default_api.py | 228 ++++++++++++++++++ kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 + ..._virtual_machine_instance_backup_status.py | 34 ++- kubevirt/models/v1alpha1_backup_checkpoint.py | 177 ++++++++++++++ .../models/v1alpha1_backup_volume_info.py | 155 ++++++++++++ .../v1alpha1_virtual_machine_backup_status.py | 30 ++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_default_api.py | 16 ++ test/test_v1alpha1_backup_checkpoint.py | 44 ++++ test/test_v1alpha1_backup_volume_info.py | 44 ++++ 22 files changed, 873 insertions(+), 10 deletions(-) create mode 100644 docs/V1alpha1BackupCheckpoint.md create mode 100644 docs/V1alpha1BackupVolumeInfo.md create mode 100644 kubevirt/models/v1alpha1_backup_checkpoint.py create mode 100644 kubevirt/models/v1alpha1_backup_volume_info.py create mode 100644 test/test_v1alpha1_backup_checkpoint.py create mode 100644 test/test_v1alpha1_backup_volume_info.py diff --git a/README.md b/README.md index b4532182..d467eba1 100644 --- a/README.md +++ b/README.md @@ -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.8.0-beta.0-73-g7fd66b371a +- Package version: v1.8.0-beta.0-101-ge50b3ca2f3 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -244,6 +244,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1_memory_dump**](docs/DefaultApi.md#v1_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/memorydump | *DefaultApi* | [**v1_migrate**](docs/DefaultApi.md#v1_migrate) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/migrate | *DefaultApi* | [**v1_pause**](docs/DefaultApi.md#v1_pause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/pause | +*DefaultApi* | [**v1_redefine_checkpoint**](docs/DefaultApi.md#v1_redefine_checkpoint) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/redefine-checkpoint | *DefaultApi* | [**v1_remove_memory_dump**](docs/DefaultApi.md#v1_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/removememorydump | *DefaultApi* | [**v1_reset**](docs/DefaultApi.md#v1_reset) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/reset | *DefaultApi* | [**v1_restart**](docs/DefaultApi.md#v1_restart) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/restart | @@ -272,6 +273,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3_memory_dump**](docs/DefaultApi.md#v1alpha3_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/memorydump | *DefaultApi* | [**v1alpha3_migrate**](docs/DefaultApi.md#v1alpha3_migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/migrate | *DefaultApi* | [**v1alpha3_pause**](docs/DefaultApi.md#v1alpha3_pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/pause | +*DefaultApi* | [**v1alpha3_redefine_checkpoint**](docs/DefaultApi.md#v1alpha3_redefine_checkpoint) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/redefine-checkpoint | *DefaultApi* | [**v1alpha3_remove_memory_dump**](docs/DefaultApi.md#v1alpha3_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/removememorydump | *DefaultApi* | [**v1alpha3_reset**](docs/DefaultApi.md#v1alpha3_reset) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/reset | *DefaultApi* | [**v1alpha3_restart**](docs/DefaultApi.md#v1alpha3_restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/restart | @@ -668,7 +670,9 @@ Class | Method | HTTP request | Description - [V1VolumeStatus](docs/V1VolumeStatus.md) - [V1VolumeUpdateState](docs/V1VolumeUpdateState.md) - [V1Watchdog](docs/V1Watchdog.md) + - [V1alpha1BackupCheckpoint](docs/V1alpha1BackupCheckpoint.md) - [V1alpha1BackupOptions](docs/V1alpha1BackupOptions.md) + - [V1alpha1BackupVolumeInfo](docs/V1alpha1BackupVolumeInfo.md) - [V1alpha1Condition](docs/V1alpha1Condition.md) - [V1alpha1MigrationPolicy](docs/V1alpha1MigrationPolicy.md) - [V1alpha1MigrationPolicyList](docs/V1alpha1MigrationPolicyList.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 1efc3503..c5df68f0 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -179,6 +179,7 @@ Method | HTTP request | Description [**v1_memory_dump**](DefaultApi.md#v1_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/memorydump | [**v1_migrate**](DefaultApi.md#v1_migrate) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/migrate | [**v1_pause**](DefaultApi.md#v1_pause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/pause | +[**v1_redefine_checkpoint**](DefaultApi.md#v1_redefine_checkpoint) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/redefine-checkpoint | [**v1_remove_memory_dump**](DefaultApi.md#v1_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/removememorydump | [**v1_reset**](DefaultApi.md#v1_reset) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/reset | [**v1_restart**](DefaultApi.md#v1_restart) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/restart | @@ -207,6 +208,7 @@ Method | HTTP request | Description [**v1alpha3_memory_dump**](DefaultApi.md#v1alpha3_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/memorydump | [**v1alpha3_migrate**](DefaultApi.md#v1alpha3_migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/migrate | [**v1alpha3_pause**](DefaultApi.md#v1alpha3_pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/pause | +[**v1alpha3_redefine_checkpoint**](DefaultApi.md#v1alpha3_redefine_checkpoint) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/redefine-checkpoint | [**v1alpha3_remove_memory_dump**](DefaultApi.md#v1alpha3_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/removememorydump | [**v1alpha3_reset**](DefaultApi.md#v1alpha3_reset) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/reset | [**v1alpha3_restart**](DefaultApi.md#v1alpha3_restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/restart | @@ -9587,6 +9589,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1_redefine_checkpoint** +> str v1_redefine_checkpoint(name, namespace, body) + + + +Redefine a checkpoint for a VirtualMachineInstance. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1alpha1BackupCheckpoint() # V1alpha1BackupCheckpoint | + +try: + api_response = api_instance.v1_redefine_checkpoint(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1_redefine_checkpoint: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1BackupCheckpoint**](V1alpha1BackupCheckpoint.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1_remove_memory_dump** > str v1_remove_memory_dump(name, namespace) @@ -10960,6 +11013,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3_redefine_checkpoint** +> str v1alpha3_redefine_checkpoint(name, namespace, body) + + + +Redefine a checkpoint for a VirtualMachineInstance. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1alpha1BackupCheckpoint() # V1alpha1BackupCheckpoint | + +try: + api_response = api_instance.v1alpha3_redefine_checkpoint(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_redefine_checkpoint: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1BackupCheckpoint**](V1alpha1BackupCheckpoint.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3_remove_memory_dump** > str v1alpha3_remove_memory_dump(name, namespace) diff --git a/docs/V1VirtualMachineInstanceBackupStatus.md b/docs/V1VirtualMachineInstanceBackupStatus.md index 603984c0..3a726352 100644 --- a/docs/V1VirtualMachineInstanceBackupStatus.md +++ b/docs/V1VirtualMachineInstanceBackupStatus.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **completed** | **bool** | Completed indicates the backup completed | [optional] **end_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | EndTimestamp is the timestamp when the backup ended | [optional] **start_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | StartTimestamp is the timestamp when the backup started | [optional] +**volumes** | [**list[V1alpha1BackupVolumeInfo]**](V1alpha1BackupVolumeInfo.md) | Volumes lists the volumes included in the backup | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1BackupCheckpoint.md b/docs/V1alpha1BackupCheckpoint.md new file mode 100644 index 00000000..ec9dc5f2 --- /dev/null +++ b/docs/V1alpha1BackupCheckpoint.md @@ -0,0 +1,12 @@ +# V1alpha1BackupCheckpoint + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**creation_time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | | [optional] +**name** | **str** | | [optional] +**volumes** | [**list[V1alpha1BackupVolumeInfo]**](V1alpha1BackupVolumeInfo.md) | Volumes lists volumes and their disk targets at backup time | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1BackupVolumeInfo.md b/docs/V1alpha1BackupVolumeInfo.md new file mode 100644 index 00000000..897c3955 --- /dev/null +++ b/docs/V1alpha1BackupVolumeInfo.md @@ -0,0 +1,11 @@ +# V1alpha1BackupVolumeInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disk_target** | **str** | DiskTarget is the disk target device name at backup time | [default to ''] +**volume_name** | **str** | VolumeName is the volume name from VMI spec | [default to ''] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1VirtualMachineBackupStatus.md b/docs/V1alpha1VirtualMachineBackupStatus.md index 4a464d8e..0354f0e5 100644 --- a/docs/V1alpha1VirtualMachineBackupStatus.md +++ b/docs/V1alpha1VirtualMachineBackupStatus.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **checkpoint_name** | **str** | CheckpointName the name of the checkpoint created for the current backup | [optional] **conditions** | [**list[V1alpha1Condition]**](V1alpha1Condition.md) | | [optional] +**included_volumes** | [**list[V1alpha1BackupVolumeInfo]**](V1alpha1BackupVolumeInfo.md) | IncludedVolumes lists the volumes that were included in the backup | [optional] **type** | **str** | Type indicates if the backup was full or incremental | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 03169da7..35549df1 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.8.0-beta.0-73-g7fd66b371a" + release_note="Auto-generated client v1.8.0-beta.0-101-ge50b3ca2f3" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 49134305..503c6037 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -944,9 +944,15 @@ 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_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Watchdog.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_backup_checkpoint.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_backup_checkpoint.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1BackupCheckpoint.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_backup_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_backup_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1BackupOptions.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_backup_volume_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_backup_volume_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1BackupVolumeInfo.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_condition.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_condition.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1Condition.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 9fbf1c21..d41475a5 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -321,7 +321,9 @@ from .models.v1_volume_status import V1VolumeStatus from .models.v1_volume_update_state import V1VolumeUpdateState from .models.v1_watchdog import V1Watchdog +from .models.v1alpha1_backup_checkpoint import V1alpha1BackupCheckpoint from .models.v1alpha1_backup_options import V1alpha1BackupOptions +from .models.v1alpha1_backup_volume_info import V1alpha1BackupVolumeInfo from .models.v1alpha1_condition import V1alpha1Condition from .models.v1alpha1_migration_policy import V1alpha1MigrationPolicy from .models.v1alpha1_migration_policy_list import V1alpha1MigrationPolicyList diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 3eaa3667..2f41e0f5 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.8.0-beta.0-73-g7fd66b371a/python' + self.user_agent = 'Swagger-Codegen/v1.8.0-beta.0-101-ge50b3ca2f3/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index 73a35872..b07b8c90 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -20283,6 +20283,120 @@ def v1_pause_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1_redefine_checkpoint(self, name, namespace, body, **kwargs): + """ + Redefine a checkpoint for a VirtualMachineInstance. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_redefine_checkpoint(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1alpha1BackupCheckpoint body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1_redefine_checkpoint_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1_redefine_checkpoint_with_http_info(name, namespace, body, **kwargs) + return data + + def v1_redefine_checkpoint_with_http_info(self, name, namespace, body, **kwargs): + """ + Redefine a checkpoint for a VirtualMachineInstance. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_redefine_checkpoint_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1alpha1BackupCheckpoint body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1_redefine_checkpoint" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1_redefine_checkpoint`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1_redefine_checkpoint`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1_redefine_checkpoint`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/redefine-checkpoint', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1_remove_memory_dump(self, name, namespace, **kwargs): """ Remove memory dump association. @@ -23309,6 +23423,120 @@ def v1alpha3_pause_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1alpha3_redefine_checkpoint(self, name, namespace, body, **kwargs): + """ + Redefine a checkpoint for a VirtualMachineInstance. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_redefine_checkpoint(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1alpha1BackupCheckpoint body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3_redefine_checkpoint_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1alpha3_redefine_checkpoint_with_http_info(name, namespace, body, **kwargs) + return data + + def v1alpha3_redefine_checkpoint_with_http_info(self, name, namespace, body, **kwargs): + """ + Redefine a checkpoint for a VirtualMachineInstance. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_redefine_checkpoint_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1alpha1BackupCheckpoint body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3_redefine_checkpoint" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_redefine_checkpoint`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_redefine_checkpoint`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3_redefine_checkpoint`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/redefine-checkpoint', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1alpha3_remove_memory_dump(self, name, namespace, **kwargs): """ Remove memory dump association. diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index ecfd3339..b612144b 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.8.0-beta.0-73-g7fd66b371a".\ + "SDK Package Version: v1.8.0-beta.0-101-ge50b3ca2f3".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 2de0d19f..8a327d3b 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -321,7 +321,9 @@ from .v1_volume_status import V1VolumeStatus from .v1_volume_update_state import V1VolumeUpdateState from .v1_watchdog import V1Watchdog +from .v1alpha1_backup_checkpoint import V1alpha1BackupCheckpoint from .v1alpha1_backup_options import V1alpha1BackupOptions +from .v1alpha1_backup_volume_info import V1alpha1BackupVolumeInfo from .v1alpha1_condition import V1alpha1Condition from .v1alpha1_migration_policy import V1alpha1MigrationPolicy from .v1alpha1_migration_policy_list import V1alpha1MigrationPolicyList diff --git a/kubevirt/models/v1_virtual_machine_instance_backup_status.py b/kubevirt/models/v1_virtual_machine_instance_backup_status.py index dda5920c..f9946b42 100644 --- a/kubevirt/models/v1_virtual_machine_instance_backup_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_backup_status.py @@ -36,7 +36,8 @@ class V1VirtualMachineInstanceBackupStatus(object): 'checkpoint_name': 'str', 'completed': 'bool', 'end_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', - 'start_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time' + 'start_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', + 'volumes': 'list[V1alpha1BackupVolumeInfo]' } attribute_map = { @@ -45,10 +46,11 @@ class V1VirtualMachineInstanceBackupStatus(object): 'checkpoint_name': 'checkpointName', 'completed': 'completed', 'end_timestamp': 'endTimestamp', - 'start_timestamp': 'startTimestamp' + 'start_timestamp': 'startTimestamp', + 'volumes': 'volumes' } - def __init__(self, backup_msg=None, backup_name=None, checkpoint_name=None, completed=None, end_timestamp=None, start_timestamp=None): + def __init__(self, backup_msg=None, backup_name=None, checkpoint_name=None, completed=None, end_timestamp=None, start_timestamp=None, volumes=None): """ V1VirtualMachineInstanceBackupStatus - a model defined in Swagger """ @@ -59,6 +61,7 @@ def __init__(self, backup_msg=None, backup_name=None, checkpoint_name=None, comp self._completed = None self._end_timestamp = None self._start_timestamp = None + self._volumes = None if backup_msg is not None: self.backup_msg = backup_msg @@ -72,6 +75,8 @@ def __init__(self, backup_msg=None, backup_name=None, checkpoint_name=None, comp self.end_timestamp = end_timestamp if start_timestamp is not None: self.start_timestamp = start_timestamp + if volumes is not None: + self.volumes = volumes @property def backup_msg(self): @@ -211,6 +216,29 @@ def start_timestamp(self, start_timestamp): self._start_timestamp = start_timestamp + @property + def volumes(self): + """ + Gets the volumes of this V1VirtualMachineInstanceBackupStatus. + Volumes lists the volumes included in the backup + + :return: The volumes of this V1VirtualMachineInstanceBackupStatus. + :rtype: list[V1alpha1BackupVolumeInfo] + """ + return self._volumes + + @volumes.setter + def volumes(self, volumes): + """ + Sets the volumes of this V1VirtualMachineInstanceBackupStatus. + Volumes lists the volumes included in the backup + + :param volumes: The volumes of this V1VirtualMachineInstanceBackupStatus. + :type: list[V1alpha1BackupVolumeInfo] + """ + + self._volumes = volumes + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1alpha1_backup_checkpoint.py b/kubevirt/models/v1alpha1_backup_checkpoint.py new file mode 100644 index 00000000..1e9fab3c --- /dev/null +++ b/kubevirt/models/v1alpha1_backup_checkpoint.py @@ -0,0 +1,177 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1BackupCheckpoint(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'creation_time': 'K8sIoApimachineryPkgApisMetaV1Time', + 'name': 'str', + 'volumes': 'list[V1alpha1BackupVolumeInfo]' + } + + attribute_map = { + 'creation_time': 'creationTime', + 'name': 'name', + 'volumes': 'volumes' + } + + def __init__(self, creation_time=None, name=None, volumes=None): + """ + V1alpha1BackupCheckpoint - a model defined in Swagger + """ + + self._creation_time = None + self._name = None + self._volumes = None + + if creation_time is not None: + self.creation_time = creation_time + if name is not None: + self.name = name + if volumes is not None: + self.volumes = volumes + + @property + def creation_time(self): + """ + Gets the creation_time of this V1alpha1BackupCheckpoint. + + :return: The creation_time of this V1alpha1BackupCheckpoint. + :rtype: K8sIoApimachineryPkgApisMetaV1Time + """ + return self._creation_time + + @creation_time.setter + def creation_time(self, creation_time): + """ + Sets the creation_time of this V1alpha1BackupCheckpoint. + + :param creation_time: The creation_time of this V1alpha1BackupCheckpoint. + :type: K8sIoApimachineryPkgApisMetaV1Time + """ + + self._creation_time = creation_time + + @property + def name(self): + """ + Gets the name of this V1alpha1BackupCheckpoint. + + :return: The name of this V1alpha1BackupCheckpoint. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1alpha1BackupCheckpoint. + + :param name: The name of this V1alpha1BackupCheckpoint. + :type: str + """ + + self._name = name + + @property + def volumes(self): + """ + Gets the volumes of this V1alpha1BackupCheckpoint. + Volumes lists volumes and their disk targets at backup time + + :return: The volumes of this V1alpha1BackupCheckpoint. + :rtype: list[V1alpha1BackupVolumeInfo] + """ + return self._volumes + + @volumes.setter + def volumes(self, volumes): + """ + Sets the volumes of this V1alpha1BackupCheckpoint. + Volumes lists volumes and their disk targets at backup time + + :param volumes: The volumes of this V1alpha1BackupCheckpoint. + :type: list[V1alpha1BackupVolumeInfo] + """ + + self._volumes = volumes + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1BackupCheckpoint): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_backup_volume_info.py b/kubevirt/models/v1alpha1_backup_volume_info.py new file mode 100644 index 00000000..3377c1b5 --- /dev/null +++ b/kubevirt/models/v1alpha1_backup_volume_info.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1BackupVolumeInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'disk_target': 'str', + 'volume_name': 'str' + } + + attribute_map = { + 'disk_target': 'diskTarget', + 'volume_name': 'volumeName' + } + + def __init__(self, disk_target='', volume_name=''): + """ + V1alpha1BackupVolumeInfo - a model defined in Swagger + """ + + self._disk_target = None + self._volume_name = None + + self.disk_target = disk_target + self.volume_name = volume_name + + @property + def disk_target(self): + """ + Gets the disk_target of this V1alpha1BackupVolumeInfo. + DiskTarget is the disk target device name at backup time + + :return: The disk_target of this V1alpha1BackupVolumeInfo. + :rtype: str + """ + return self._disk_target + + @disk_target.setter + def disk_target(self, disk_target): + """ + Sets the disk_target of this V1alpha1BackupVolumeInfo. + DiskTarget is the disk target device name at backup time + + :param disk_target: The disk_target of this V1alpha1BackupVolumeInfo. + :type: str + """ + if disk_target is None: + raise ValueError("Invalid value for `disk_target`, must not be `None`") + + self._disk_target = disk_target + + @property + def volume_name(self): + """ + Gets the volume_name of this V1alpha1BackupVolumeInfo. + VolumeName is the volume name from VMI spec + + :return: The volume_name of this V1alpha1BackupVolumeInfo. + :rtype: str + """ + return self._volume_name + + @volume_name.setter + def volume_name(self, volume_name): + """ + Sets the volume_name of this V1alpha1BackupVolumeInfo. + VolumeName is the volume name from VMI spec + + :param volume_name: The volume_name of this V1alpha1BackupVolumeInfo. + :type: str + """ + if volume_name is None: + raise ValueError("Invalid value for `volume_name`, must not be `None`") + + self._volume_name = volume_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1alpha1BackupVolumeInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1alpha1_virtual_machine_backup_status.py b/kubevirt/models/v1alpha1_virtual_machine_backup_status.py index a63c8c10..39de36df 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_backup_status.py +++ b/kubevirt/models/v1alpha1_virtual_machine_backup_status.py @@ -33,28 +33,33 @@ class V1alpha1VirtualMachineBackupStatus(object): swagger_types = { 'checkpoint_name': 'str', 'conditions': 'list[V1alpha1Condition]', + 'included_volumes': 'list[V1alpha1BackupVolumeInfo]', 'type': 'str' } attribute_map = { 'checkpoint_name': 'checkpointName', 'conditions': 'conditions', + 'included_volumes': 'includedVolumes', 'type': 'type' } - def __init__(self, checkpoint_name=None, conditions=None, type=None): + def __init__(self, checkpoint_name=None, conditions=None, included_volumes=None, type=None): """ V1alpha1VirtualMachineBackupStatus - a model defined in Swagger """ self._checkpoint_name = None self._conditions = None + self._included_volumes = None self._type = None if checkpoint_name is not None: self.checkpoint_name = checkpoint_name if conditions is not None: self.conditions = conditions + if included_volumes is not None: + self.included_volumes = included_volumes if type is not None: self.type = type @@ -102,6 +107,29 @@ def conditions(self, conditions): self._conditions = conditions + @property + def included_volumes(self): + """ + Gets the included_volumes of this V1alpha1VirtualMachineBackupStatus. + IncludedVolumes lists the volumes that were included in the backup + + :return: The included_volumes of this V1alpha1VirtualMachineBackupStatus. + :rtype: list[V1alpha1BackupVolumeInfo] + """ + return self._included_volumes + + @included_volumes.setter + def included_volumes(self, included_volumes): + """ + Sets the included_volumes of this V1alpha1VirtualMachineBackupStatus. + IncludedVolumes lists the volumes that were included in the backup + + :param included_volumes: The included_volumes of this V1alpha1VirtualMachineBackupStatus. + :type: list[V1alpha1BackupVolumeInfo] + """ + + self._included_volumes = included_volumes + @property def type(self): """ diff --git a/setup.py b/setup.py index caa585aa..ef86ddff 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.8.0-beta.0-73-g7fd66b371a" +VERSION = "v1.8.0-beta.0-101-ge50b3ca2f3" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index d8889a33..65037232 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.8.0-beta.0-73-g7fd66b371a" +"packageVersion": "v1.8.0-beta.0-101-ge50b3ca2f3" } diff --git a/test/test_default_api.py b/test/test_default_api.py index b9bc400d..9dd8f915 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -1428,6 +1428,14 @@ def test_v1_pause(self): Test case for v1_pause + """ + pass + + def test_v1_redefine_checkpoint(self): + """ + Test case for v1_redefine_checkpoint + + """ pass @@ -1652,6 +1660,14 @@ def test_v1alpha3_pause(self): Test case for v1alpha3_pause + """ + pass + + def test_v1alpha3_redefine_checkpoint(self): + """ + Test case for v1alpha3_redefine_checkpoint + + """ pass diff --git a/test/test_v1alpha1_backup_checkpoint.py b/test/test_v1alpha1_backup_checkpoint.py new file mode 100644 index 00000000..c38b0bd8 --- /dev/null +++ b/test/test_v1alpha1_backup_checkpoint.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_backup_checkpoint import V1alpha1BackupCheckpoint + + +class TestV1alpha1BackupCheckpoint(unittest.TestCase): + """ V1alpha1BackupCheckpoint unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1BackupCheckpoint(self): + """ + Test V1alpha1BackupCheckpoint + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_backup_checkpoint.V1alpha1BackupCheckpoint() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_backup_volume_info.py b/test/test_v1alpha1_backup_volume_info.py new file mode 100644 index 00000000..5658348f --- /dev/null +++ b/test/test_v1alpha1_backup_volume_info.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1alpha1_backup_volume_info import V1alpha1BackupVolumeInfo + + +class TestV1alpha1BackupVolumeInfo(unittest.TestCase): + """ V1alpha1BackupVolumeInfo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1BackupVolumeInfo(self): + """ + Test V1alpha1BackupVolumeInfo + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1alpha1_backup_volume_info.V1alpha1BackupVolumeInfo() + pass + + +if __name__ == '__main__': + unittest.main() From 68e9275df73fcf5708e478b106b992253120c438 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Wed, 11 Feb 2026 10:12:04 +0000 Subject: [PATCH 507/521] Client Python update by KubeVirt Prow build 2021523891029020672 --- README.md | 2 +- docs/V1DomainSpec.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_domain_spec.py | 30 +++++++++++++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index d467eba1..32132077 100644 --- a/README.md +++ b/README.md @@ -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.8.0-beta.0-101-ge50b3ca2f3 +- Package version: v1.8.0-beta.0-145-g3d467ea1eb - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1DomainSpec.md b/docs/V1DomainSpec.md index 8da22a67..18ec51c4 100644 --- a/docs/V1DomainSpec.md +++ b/docs/V1DomainSpec.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **launch_security** | [**V1LaunchSecurity**](V1LaunchSecurity.md) | Launch Security setting of the vmi. | [optional] **machine** | [**V1Machine**](V1Machine.md) | Machine type. | [optional] **memory** | [**V1Memory**](V1Memory.md) | Memory allow specifying the VMI memory features. | [optional] +**reboot_policy** | **str** | RebootPolicy specifies how the guest should behave on reboot. Reboot (default): The guest is allowed to reboot silently. Terminate: The VMI will be terminated on guest reboot, allowing higher level controllers (such as the VM controller) to recreate the VMI with any updated configuration such as boot order changes. | [optional] **resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | Resources describes the Compute Resources required by this vmi. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 35549df1..37ce28ef 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.8.0-beta.0-101-ge50b3ca2f3" + release_note="Auto-generated client v1.8.0-beta.0-145-g3d467ea1eb" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 2f41e0f5..974be0cb 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.8.0-beta.0-101-ge50b3ca2f3/python' + self.user_agent = 'Swagger-Codegen/v1.8.0-beta.0-145-g3d467ea1eb/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index b612144b..6e3d9d67 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.8.0-beta.0-101-ge50b3ca2f3".\ + "SDK Package Version: v1.8.0-beta.0-145-g3d467ea1eb".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_domain_spec.py b/kubevirt/models/v1_domain_spec.py index 93a26f9b..e2e1523c 100644 --- a/kubevirt/models/v1_domain_spec.py +++ b/kubevirt/models/v1_domain_spec.py @@ -42,6 +42,7 @@ class V1DomainSpec(object): 'launch_security': 'V1LaunchSecurity', 'machine': 'V1Machine', 'memory': 'V1Memory', + 'reboot_policy': 'str', 'resources': 'V1ResourceRequirements' } @@ -57,10 +58,11 @@ class V1DomainSpec(object): 'launch_security': 'launchSecurity', 'machine': 'machine', 'memory': 'memory', + 'reboot_policy': 'rebootPolicy', 'resources': 'resources' } - def __init__(self, chassis=None, clock=None, cpu=None, devices=None, features=None, firmware=None, io_threads=None, io_threads_policy=None, launch_security=None, machine=None, memory=None, resources=None): + def __init__(self, chassis=None, clock=None, cpu=None, devices=None, features=None, firmware=None, io_threads=None, io_threads_policy=None, launch_security=None, machine=None, memory=None, reboot_policy=None, resources=None): """ V1DomainSpec - a model defined in Swagger """ @@ -76,6 +78,7 @@ def __init__(self, chassis=None, clock=None, cpu=None, devices=None, features=No self._launch_security = None self._machine = None self._memory = None + self._reboot_policy = None self._resources = None if chassis is not None: @@ -99,6 +102,8 @@ def __init__(self, chassis=None, clock=None, cpu=None, devices=None, features=No self.machine = machine if memory is not None: self.memory = memory + if reboot_policy is not None: + self.reboot_policy = reboot_policy if resources is not None: self.resources = resources @@ -357,6 +362,29 @@ def memory(self, memory): self._memory = memory + @property + def reboot_policy(self): + """ + Gets the reboot_policy of this V1DomainSpec. + RebootPolicy specifies how the guest should behave on reboot. Reboot (default): The guest is allowed to reboot silently. Terminate: The VMI will be terminated on guest reboot, allowing higher level controllers (such as the VM controller) to recreate the VMI with any updated configuration such as boot order changes. + + :return: The reboot_policy of this V1DomainSpec. + :rtype: str + """ + return self._reboot_policy + + @reboot_policy.setter + def reboot_policy(self, reboot_policy): + """ + Sets the reboot_policy of this V1DomainSpec. + RebootPolicy specifies how the guest should behave on reboot. Reboot (default): The guest is allowed to reboot silently. Terminate: The VMI will be terminated on guest reboot, allowing higher level controllers (such as the VM controller) to recreate the VMI with any updated configuration such as boot order changes. + + :param reboot_policy: The reboot_policy of this V1DomainSpec. + :type: str + """ + + self._reboot_policy = reboot_policy + @property def resources(self): """ diff --git a/setup.py b/setup.py index ef86ddff..4d4737f1 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.8.0-beta.0-101-ge50b3ca2f3" +VERSION = "v1.8.0-beta.0-145-g3d467ea1eb" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 65037232..9f6234a6 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.8.0-beta.0-101-ge50b3ca2f3" +"packageVersion": "v1.8.0-beta.0-145-g3d467ea1eb" } From 34e272079979264225f3a4388acbf9d1596a63b9 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Sun, 15 Feb 2026 19:19:22 +0000 Subject: [PATCH 508/521] Client Python update by KubeVirt Prow build 2023108915075485696 --- README.md | 3 +- docs/V1Interface.md | 1 + docs/V1InterfacePasstBinding.md | 9 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_interface.py | 28 +++++- kubevirt/models/v1_interface_passt_binding.py | 99 +++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_interface_passt_binding.py | 44 +++++++++ 14 files changed, 192 insertions(+), 7 deletions(-) create mode 100644 docs/V1InterfacePasstBinding.md create mode 100644 kubevirt/models/v1_interface_passt_binding.py create mode 100644 test/test_v1_interface_passt_binding.py diff --git a/README.md b/README.md index 32132077..223eef56 100644 --- a/README.md +++ b/README.md @@ -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.8.0-beta.0-145-g3d467ea1eb +- Package version: v1.8.0-beta.0-198-gb3f15e62a3 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -516,6 +516,7 @@ Class | Method | HTTP request | Description - [V1InterfaceBindingPlugin](docs/V1InterfaceBindingPlugin.md) - [V1InterfaceBridge](docs/V1InterfaceBridge.md) - [V1InterfaceMasquerade](docs/V1InterfaceMasquerade.md) + - [V1InterfacePasstBinding](docs/V1InterfacePasstBinding.md) - [V1InterfaceSRIOV](docs/V1InterfaceSRIOV.md) - [V1KSMConfiguration](docs/V1KSMConfiguration.md) - [V1KVMTimer](docs/V1KVMTimer.md) diff --git a/docs/V1Interface.md b/docs/V1Interface.md index 88219616..bc64c33a 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **model** | **str** | Interface model. One of: e1000, e1000e, igb, 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 ''] **passt** | [**V1DeprecatedInterfacePasst**](V1DeprecatedInterfacePasst.md) | DeprecatedPasst is an alias to the deprecated Passt interface, please refer to Kubevirt user guide for alternatives. Deprecated: Removed in v1.3 | [optional] +**passt_binding** | [**V1InterfacePasstBinding**](V1InterfacePasstBinding.md) | | [optional] **pci_address** | **str** | If specified, the virtual network interface will be placed on the guests pci address with the specified PCI address. For example: 0000:81:01.10 | [optional] **ports** | [**list[V1Port]**](V1Port.md) | List of ports to be forwarded to the virtual machine. | [optional] **slirp** | [**V1DeprecatedInterfaceSlirp**](V1DeprecatedInterfaceSlirp.md) | DeprecatedSlirp is an alias to the deprecated Slirp interface Deprecated: Removed in v1.3 | [optional] diff --git a/docs/V1InterfacePasstBinding.md b/docs/V1InterfacePasstBinding.md new file mode 100644 index 00000000..b18e7762 --- /dev/null +++ b/docs/V1InterfacePasstBinding.md @@ -0,0 +1,9 @@ +# V1InterfacePasstBinding + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 37ce28ef..5aaf5db5 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.8.0-beta.0-145-g3d467ea1eb" + release_note="Auto-generated client v1.8.0-beta.0-198-gb3f15e62a3" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 503c6037..7dc175de 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -482,6 +482,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_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 +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_interface_passt_binding.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface_passt_binding.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InterfacePasstBinding.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_interface_sriov.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface_sriov.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InterfaceSRIOV.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index d41475a5..ee3888e4 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -167,6 +167,7 @@ from .models.v1_interface_binding_plugin import V1InterfaceBindingPlugin from .models.v1_interface_bridge import V1InterfaceBridge from .models.v1_interface_masquerade import V1InterfaceMasquerade +from .models.v1_interface_passt_binding import V1InterfacePasstBinding from .models.v1_interface_sriov import V1InterfaceSRIOV from .models.v1_ksm_configuration import V1KSMConfiguration from .models.v1_kvm_timer import V1KVMTimer diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 974be0cb..e484a89c 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.8.0-beta.0-145-g3d467ea1eb/python' + self.user_agent = 'Swagger-Codegen/v1.8.0-beta.0-198-gb3f15e62a3/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 6e3d9d67..49e40edb 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.8.0-beta.0-145-g3d467ea1eb".\ + "SDK Package Version: v1.8.0-beta.0-198-gb3f15e62a3".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 8a327d3b..89224bdc 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -167,6 +167,7 @@ from .v1_interface_binding_plugin import V1InterfaceBindingPlugin from .v1_interface_bridge import V1InterfaceBridge from .v1_interface_masquerade import V1InterfaceMasquerade +from .v1_interface_passt_binding import V1InterfacePasstBinding from .v1_interface_sriov import V1InterfaceSRIOV from .v1_ksm_configuration import V1KSMConfiguration from .v1_kvm_timer import V1KVMTimer diff --git a/kubevirt/models/v1_interface.py b/kubevirt/models/v1_interface.py index 7c8c39c1..db901f76 100644 --- a/kubevirt/models/v1_interface.py +++ b/kubevirt/models/v1_interface.py @@ -42,6 +42,7 @@ class V1Interface(object): 'model': 'str', 'name': 'str', 'passt': 'V1DeprecatedInterfacePasst', + 'passt_binding': 'V1InterfacePasstBinding', 'pci_address': 'str', 'ports': 'list[V1Port]', 'slirp': 'V1DeprecatedInterfaceSlirp', @@ -62,6 +63,7 @@ class V1Interface(object): 'model': 'model', 'name': 'name', 'passt': 'passt', + 'passt_binding': 'passtBinding', 'pci_address': 'pciAddress', 'ports': 'ports', 'slirp': 'slirp', @@ -70,7 +72,7 @@ class V1Interface(object): 'tag': 'tag' } - def __init__(self, acpi_index=None, binding=None, boot_order=None, bridge=None, dhcp_options=None, mac_address=None, macvtap=None, masquerade=None, model=None, name='', passt=None, pci_address=None, ports=None, slirp=None, sriov=None, state=None, tag=None): + def __init__(self, acpi_index=None, binding=None, boot_order=None, bridge=None, dhcp_options=None, mac_address=None, macvtap=None, masquerade=None, model=None, name='', passt=None, passt_binding=None, pci_address=None, ports=None, slirp=None, sriov=None, state=None, tag=None): """ V1Interface - a model defined in Swagger """ @@ -86,6 +88,7 @@ def __init__(self, acpi_index=None, binding=None, boot_order=None, bridge=None, self._model = None self._name = None self._passt = None + self._passt_binding = None self._pci_address = None self._ports = None self._slirp = None @@ -114,6 +117,8 @@ def __init__(self, acpi_index=None, binding=None, boot_order=None, bridge=None, self.name = name if passt is not None: self.passt = passt + if passt_binding is not None: + self.passt_binding = passt_binding if pci_address is not None: self.pci_address = pci_address if ports is not None: @@ -378,6 +383,27 @@ def passt(self, passt): self._passt = passt + @property + def passt_binding(self): + """ + Gets the passt_binding of this V1Interface. + + :return: The passt_binding of this V1Interface. + :rtype: V1InterfacePasstBinding + """ + return self._passt_binding + + @passt_binding.setter + def passt_binding(self, passt_binding): + """ + Sets the passt_binding of this V1Interface. + + :param passt_binding: The passt_binding of this V1Interface. + :type: V1InterfacePasstBinding + """ + + self._passt_binding = passt_binding + @property def pci_address(self): """ diff --git a/kubevirt/models/v1_interface_passt_binding.py b/kubevirt/models/v1_interface_passt_binding.py new file mode 100644 index 00000000..a1a90ed3 --- /dev/null +++ b/kubevirt/models/v1_interface_passt_binding.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1InterfacePasstBinding(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1InterfacePasstBinding - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1InterfacePasstBinding): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 4d4737f1..606ab6cc 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.8.0-beta.0-145-g3d467ea1eb" +VERSION = "v1.8.0-beta.0-198-gb3f15e62a3" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 9f6234a6..017af7d2 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.8.0-beta.0-145-g3d467ea1eb" +"packageVersion": "v1.8.0-beta.0-198-gb3f15e62a3" } diff --git a/test/test_v1_interface_passt_binding.py b/test/test_v1_interface_passt_binding.py new file mode 100644 index 00000000..c2878837 --- /dev/null +++ b/test/test_v1_interface_passt_binding.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_interface_passt_binding import V1InterfacePasstBinding + + +class TestV1InterfacePasstBinding(unittest.TestCase): + """ V1InterfacePasstBinding unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1InterfacePasstBinding(self): + """ + Test V1InterfacePasstBinding + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_interface_passt_binding.V1InterfacePasstBinding() + pass + + +if __name__ == '__main__': + unittest.main() From f5a0fbd5cf6bd0444f6d0e4c2c24808c819cd1bf Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Tue, 17 Feb 2026 06:01:25 +0000 Subject: [PATCH 509/521] Client Python update by KubeVirt Prow build 2023631401638694912 --- README.md | 3 +- docs/V1KubeVirtConfiguration.md | 1 + docs/V1VirtTemplateDeployment.md | 10 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_kube_virt_configuration.py | 30 ++++- .../models/v1_virt_template_deployment.py | 125 ++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_virt_template_deployment.py | 44 ++++++ 14 files changed, 221 insertions(+), 7 deletions(-) create mode 100644 docs/V1VirtTemplateDeployment.md create mode 100644 kubevirt/models/v1_virt_template_deployment.py create mode 100644 test/test_v1_virt_template_deployment.py diff --git a/README.md b/README.md index 223eef56..56056056 100644 --- a/README.md +++ b/README.md @@ -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.8.0-beta.0-198-gb3f15e62a3 +- Package version: v1.8.0-beta.0-223-g9a3ba8e666 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -618,6 +618,7 @@ Class | Method | HTTP request | Description - [V1VGPUDisplayOptions](docs/V1VGPUDisplayOptions.md) - [V1VGPUOptions](docs/V1VGPUOptions.md) - [V1VideoDevice](docs/V1VideoDevice.md) + - [V1VirtTemplateDeployment](docs/V1VirtTemplateDeployment.md) - [V1VirtualMachine](docs/V1VirtualMachine.md) - [V1VirtualMachineCondition](docs/V1VirtualMachineCondition.md) - [V1VirtualMachineInstance](docs/V1VirtualMachineInstance.md) diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index 3233590d..4b87b45e 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -37,6 +37,7 @@ Name | Type | Description | Notes **support_container_resources** | [**list[V1SupportContainerResources]**](V1SupportContainerResources.md) | SupportContainerResources specifies the resource requirements for various types of supporting containers such as container disks/virtiofs/sidecars and hotplug attachment pods. If omitted a sensible default will be supplied. | [optional] **supported_guest_agent_versions** | **list[str]** | deprecated | [optional] **tls_configuration** | [**V1TLSConfiguration**](V1TLSConfiguration.md) | | [optional] +**virt_template_deployment** | [**V1VirtTemplateDeployment**](V1VirtTemplateDeployment.md) | VirtTemplateDeployment controls the deployment of virt-template components | [optional] **virtual_machine_instances_per_node** | **int** | | [optional] **virtual_machine_options** | [**V1VirtualMachineOptions**](V1VirtualMachineOptions.md) | | [optional] **vm_rollout_strategy** | **str** | VMRolloutStrategy defines how live-updatable fields, like CPU sockets, memory, tolerations, and affinity, are propagated from a VM to its VMI. | [optional] diff --git a/docs/V1VirtTemplateDeployment.md b/docs/V1VirtTemplateDeployment.md new file mode 100644 index 00000000..86b08d60 --- /dev/null +++ b/docs/V1VirtTemplateDeployment.md @@ -0,0 +1,10 @@ +# V1VirtTemplateDeployment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | Enabled controls the deployment of virt-template resources, defaults to True when feature gate is enabled. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 5aaf5db5..83235982 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.8.0-beta.0-198-gb3f15e62a3" + release_note="Auto-generated client v1.8.0-beta.0-223-g9a3ba8e666" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 7dc175de..80355a46 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -788,6 +788,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_video_device.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_video_device.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VideoDevice.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virt_template_deployment.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virt_template_deployment.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtTemplateDeployment.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachine.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index ee3888e4..adeec6c1 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -269,6 +269,7 @@ from .models.v1_vgpu_display_options import V1VGPUDisplayOptions from .models.v1_vgpu_options import V1VGPUOptions from .models.v1_video_device import V1VideoDevice +from .models.v1_virt_template_deployment import V1VirtTemplateDeployment from .models.v1_virtual_machine import V1VirtualMachine from .models.v1_virtual_machine_condition import V1VirtualMachineCondition from .models.v1_virtual_machine_instance import V1VirtualMachineInstance diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index e484a89c..2259b57e 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.8.0-beta.0-198-gb3f15e62a3/python' + self.user_agent = 'Swagger-Codegen/v1.8.0-beta.0-223-g9a3ba8e666/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 49e40edb..ca5190d7 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.8.0-beta.0-198-gb3f15e62a3".\ + "SDK Package Version: v1.8.0-beta.0-223-g9a3ba8e666".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 89224bdc..8b119447 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -269,6 +269,7 @@ from .v1_vgpu_display_options import V1VGPUDisplayOptions from .v1_vgpu_options import V1VGPUOptions from .v1_video_device import V1VideoDevice +from .v1_virt_template_deployment import V1VirtTemplateDeployment from .v1_virtual_machine import V1VirtualMachine from .v1_virtual_machine_condition import V1VirtualMachineCondition from .v1_virtual_machine_instance import V1VirtualMachineInstance diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index 0711867e..3f4a59d2 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -65,6 +65,7 @@ class V1KubeVirtConfiguration(object): 'support_container_resources': 'list[V1SupportContainerResources]', 'supported_guest_agent_versions': 'list[str]', 'tls_configuration': 'V1TLSConfiguration', + 'virt_template_deployment': 'V1VirtTemplateDeployment', 'virtual_machine_instances_per_node': 'int', 'virtual_machine_options': 'V1VirtualMachineOptions', 'vm_rollout_strategy': 'str', @@ -107,6 +108,7 @@ class V1KubeVirtConfiguration(object): 'support_container_resources': 'supportContainerResources', 'supported_guest_agent_versions': 'supportedGuestAgentVersions', 'tls_configuration': 'tlsConfiguration', + 'virt_template_deployment': 'virtTemplateDeployment', 'virtual_machine_instances_per_node': 'virtualMachineInstancesPerNode', 'virtual_machine_options': 'virtualMachineOptions', 'vm_rollout_strategy': 'vmRolloutStrategy', @@ -114,7 +116,7 @@ class V1KubeVirtConfiguration(object): 'webhook_configuration': 'webhookConfiguration' } - def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, auto_cpu_limit_namespace_label_selector=None, changed_block_tracking_label_selectors=None, common_instancetypes_deployment=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, hypervisors=None, image_pull_policy=None, instancetype=None, ksm_configuration=None, live_update_configuration=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, virtual_machine_options=None, vm_rollout_strategy=None, vm_state_storage_class=None, webhook_configuration=None): + def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, auto_cpu_limit_namespace_label_selector=None, changed_block_tracking_label_selectors=None, common_instancetypes_deployment=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, hypervisors=None, image_pull_policy=None, instancetype=None, ksm_configuration=None, live_update_configuration=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virt_template_deployment=None, virtual_machine_instances_per_node=None, virtual_machine_options=None, vm_rollout_strategy=None, vm_state_storage_class=None, webhook_configuration=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ @@ -153,6 +155,7 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self._support_container_resources = None self._supported_guest_agent_versions = None self._tls_configuration = None + self._virt_template_deployment = None self._virtual_machine_instances_per_node = None self._virtual_machine_options = None self._vm_rollout_strategy = None @@ -227,6 +230,8 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self.supported_guest_agent_versions = supported_guest_agent_versions if tls_configuration is not None: self.tls_configuration = tls_configuration + if virt_template_deployment is not None: + self.virt_template_deployment = virt_template_deployment if virtual_machine_instances_per_node is not None: self.virtual_machine_instances_per_node = virtual_machine_instances_per_node if virtual_machine_options is not None: @@ -990,6 +995,29 @@ def tls_configuration(self, tls_configuration): self._tls_configuration = tls_configuration + @property + def virt_template_deployment(self): + """ + Gets the virt_template_deployment of this V1KubeVirtConfiguration. + VirtTemplateDeployment controls the deployment of virt-template components + + :return: The virt_template_deployment of this V1KubeVirtConfiguration. + :rtype: V1VirtTemplateDeployment + """ + return self._virt_template_deployment + + @virt_template_deployment.setter + def virt_template_deployment(self, virt_template_deployment): + """ + Sets the virt_template_deployment of this V1KubeVirtConfiguration. + VirtTemplateDeployment controls the deployment of virt-template components + + :param virt_template_deployment: The virt_template_deployment of this V1KubeVirtConfiguration. + :type: V1VirtTemplateDeployment + """ + + self._virt_template_deployment = virt_template_deployment + @property def virtual_machine_instances_per_node(self): """ diff --git a/kubevirt/models/v1_virt_template_deployment.py b/kubevirt/models/v1_virt_template_deployment.py new file mode 100644 index 00000000..aad4d6c6 --- /dev/null +++ b/kubevirt/models/v1_virt_template_deployment.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VirtTemplateDeployment(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'enabled': 'bool' + } + + attribute_map = { + 'enabled': 'enabled' + } + + def __init__(self, enabled=None): + """ + V1VirtTemplateDeployment - a model defined in Swagger + """ + + self._enabled = None + + if enabled is not None: + self.enabled = enabled + + @property + def enabled(self): + """ + Gets the enabled of this V1VirtTemplateDeployment. + Enabled controls the deployment of virt-template resources, defaults to True when feature gate is enabled. + + :return: The enabled of this V1VirtTemplateDeployment. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """ + Sets the enabled of this V1VirtTemplateDeployment. + Enabled controls the deployment of virt-template resources, defaults to True when feature gate is enabled. + + :param enabled: The enabled of this V1VirtTemplateDeployment. + :type: bool + """ + + self._enabled = enabled + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1VirtTemplateDeployment): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 606ab6cc..33a064e9 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.8.0-beta.0-198-gb3f15e62a3" +VERSION = "v1.8.0-beta.0-223-g9a3ba8e666" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 017af7d2..ea232b3b 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.8.0-beta.0-198-gb3f15e62a3" +"packageVersion": "v1.8.0-beta.0-223-g9a3ba8e666" } diff --git a/test/test_v1_virt_template_deployment.py b/test/test_v1_virt_template_deployment.py new file mode 100644 index 00000000..9adb7868 --- /dev/null +++ b/test/test_v1_virt_template_deployment.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_virt_template_deployment import V1VirtTemplateDeployment + + +class TestV1VirtTemplateDeployment(unittest.TestCase): + """ V1VirtTemplateDeployment unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1VirtTemplateDeployment(self): + """ + Test V1VirtTemplateDeployment + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_virt_template_deployment.V1VirtTemplateDeployment() + pass + + +if __name__ == '__main__': + unittest.main() From 5aafc42f2b400eebf44691d1000df700191799fe Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Sun, 22 Feb 2026 17:40:35 +0000 Subject: [PATCH 510/521] Client Python update by KubeVirt Prow build 2025623327841718272 --- README.md | 2 +- docs/V1VirtualMachineInstanceBackupStatus.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- ..._virtual_machine_instance_backup_status.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 56056056..ab9df5ae 100644 --- a/README.md +++ b/README.md @@ -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.8.0-beta.0-223-g9a3ba8e666 +- Package version: v1.8.0-beta.0-272-gfa2c37b285 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1VirtualMachineInstanceBackupStatus.md b/docs/V1VirtualMachineInstanceBackupStatus.md index 3a726352..f1ea1e47 100644 --- a/docs/V1VirtualMachineInstanceBackupStatus.md +++ b/docs/V1VirtualMachineInstanceBackupStatus.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **checkpoint_name** | **str** | CheckpointName is the name of the checkpoint created for the backup | [optional] **completed** | **bool** | Completed indicates the backup completed | [optional] **end_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | EndTimestamp is the timestamp when the backup ended | [optional] +**failed** | **bool** | Failed indicates that the backup failed | [optional] **start_timestamp** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | StartTimestamp is the timestamp when the backup started | [optional] **volumes** | [**list[V1alpha1BackupVolumeInfo]**](V1alpha1BackupVolumeInfo.md) | Volumes lists the volumes included in the backup | [optional] diff --git a/git_push.sh b/git_push.sh index 83235982..d669c475 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.8.0-beta.0-223-g9a3ba8e666" + release_note="Auto-generated client v1.8.0-beta.0-272-gfa2c37b285" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 2259b57e..466b0f60 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.8.0-beta.0-223-g9a3ba8e666/python' + self.user_agent = 'Swagger-Codegen/v1.8.0-beta.0-272-gfa2c37b285/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index ca5190d7..3f93e35c 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.8.0-beta.0-223-g9a3ba8e666".\ + "SDK Package Version: v1.8.0-beta.0-272-gfa2c37b285".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_virtual_machine_instance_backup_status.py b/kubevirt/models/v1_virtual_machine_instance_backup_status.py index f9946b42..3293cfc3 100644 --- a/kubevirt/models/v1_virtual_machine_instance_backup_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_backup_status.py @@ -36,6 +36,7 @@ class V1VirtualMachineInstanceBackupStatus(object): 'checkpoint_name': 'str', 'completed': 'bool', 'end_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', + 'failed': 'bool', 'start_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', 'volumes': 'list[V1alpha1BackupVolumeInfo]' } @@ -46,11 +47,12 @@ class V1VirtualMachineInstanceBackupStatus(object): 'checkpoint_name': 'checkpointName', 'completed': 'completed', 'end_timestamp': 'endTimestamp', + 'failed': 'failed', 'start_timestamp': 'startTimestamp', 'volumes': 'volumes' } - def __init__(self, backup_msg=None, backup_name=None, checkpoint_name=None, completed=None, end_timestamp=None, start_timestamp=None, volumes=None): + def __init__(self, backup_msg=None, backup_name=None, checkpoint_name=None, completed=None, end_timestamp=None, failed=None, start_timestamp=None, volumes=None): """ V1VirtualMachineInstanceBackupStatus - a model defined in Swagger """ @@ -60,6 +62,7 @@ def __init__(self, backup_msg=None, backup_name=None, checkpoint_name=None, comp self._checkpoint_name = None self._completed = None self._end_timestamp = None + self._failed = None self._start_timestamp = None self._volumes = None @@ -73,6 +76,8 @@ def __init__(self, backup_msg=None, backup_name=None, checkpoint_name=None, comp self.completed = completed if end_timestamp is not None: self.end_timestamp = end_timestamp + if failed is not None: + self.failed = failed if start_timestamp is not None: self.start_timestamp = start_timestamp if volumes is not None: @@ -193,6 +198,29 @@ def end_timestamp(self, end_timestamp): self._end_timestamp = end_timestamp + @property + def failed(self): + """ + Gets the failed of this V1VirtualMachineInstanceBackupStatus. + Failed indicates that the backup failed + + :return: The failed of this V1VirtualMachineInstanceBackupStatus. + :rtype: bool + """ + return self._failed + + @failed.setter + def failed(self, failed): + """ + Sets the failed of this V1VirtualMachineInstanceBackupStatus. + Failed indicates that the backup failed + + :param failed: The failed of this V1VirtualMachineInstanceBackupStatus. + :type: bool + """ + + self._failed = failed + @property def start_timestamp(self): """ diff --git a/setup.py b/setup.py index 33a064e9..7e0af4be 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.8.0-beta.0-223-g9a3ba8e666" +VERSION = "v1.8.0-beta.0-272-gfa2c37b285" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index ea232b3b..0f54f83a 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.8.0-beta.0-223-g9a3ba8e666" +"packageVersion": "v1.8.0-beta.0-272-gfa2c37b285" } From 55e2df8e38a8cb74975b87d333b072eef3ea5dc4 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Tue, 24 Feb 2026 11:22:29 +0000 Subject: [PATCH 511/521] Client Python update by KubeVirt Prow build 2026250511602159616 --- README.md | 3 +- docs/V1ContainerPathVolumeSource.md | 11 ++ docs/V1Volume.md | 1 + docs/V1beta1DataVolumeSourceImageIO.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 3 + kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + .../models/v1_container_path_volume_source.py | 154 ++++++++++++++++++ kubevirt/models/v1_volume.py | 30 +++- .../v1beta1_data_volume_source_image_io.py | 30 +++- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_container_path_volume_source.py | 44 +++++ 16 files changed, 281 insertions(+), 8 deletions(-) create mode 100644 docs/V1ContainerPathVolumeSource.md create mode 100644 kubevirt/models/v1_container_path_volume_source.py create mode 100644 test/test_v1_container_path_volume_source.py diff --git a/README.md b/README.md index ab9df5ae..e311b4a5 100644 --- a/README.md +++ b/README.md @@ -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.8.0-beta.0-272-gfa2c37b285 +- Package version: v1.8.0-beta.0-317-gb3ad6de13f - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -445,6 +445,7 @@ Class | Method | HTTP request | Description - [V1ConfigMapVolumeSource](docs/V1ConfigMapVolumeSource.md) - [V1ContainerDiskInfo](docs/V1ContainerDiskInfo.md) - [V1ContainerDiskSource](docs/V1ContainerDiskSource.md) + - [V1ContainerPathVolumeSource](docs/V1ContainerPathVolumeSource.md) - [V1ControllerRevisionRef](docs/V1ControllerRevisionRef.md) - [V1CustomBlockSize](docs/V1CustomBlockSize.md) - [V1CustomProfile](docs/V1CustomProfile.md) diff --git a/docs/V1ContainerPathVolumeSource.md b/docs/V1ContainerPathVolumeSource.md new file mode 100644 index 00000000..d10375b5 --- /dev/null +++ b/docs/V1ContainerPathVolumeSource.md @@ -0,0 +1,11 @@ +# V1ContainerPathVolumeSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**path** | **str** | Path is the absolute path within the virt-launcher container to expose to the VM. The path must correspond to an existing volumeMount in the compute container. | [default to ''] +**read_only** | **bool** | ReadOnly controls whether the volume is exposed as read-only to the VM. Defaults to true. Write access is not currently supported. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1Volume.md b/docs/V1Volume.md index 565f5eb7..7d4a11a8 100644 --- a/docs/V1Volume.md +++ b/docs/V1Volume.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **cloud_init_no_cloud** | [**V1CloudInitNoCloudSource**](V1CloudInitNoCloudSource.md) | CloudInitNoCloud represents a cloud-init NoCloud user-data source. The NoCloud data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html | [optional] **config_map** | [**V1ConfigMapVolumeSource**](V1ConfigMapVolumeSource.md) | ConfigMapSource represents a reference to a ConfigMap in the same namespace. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/ | [optional] **container_disk** | [**V1ContainerDiskSource**](V1ContainerDiskSource.md) | ContainerDisk references a docker image, embedding a qcow or raw disk. More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html | [optional] +**container_path** | [**V1ContainerPathVolumeSource**](V1ContainerPathVolumeSource.md) | ContainerPath exposes a path from the virt-launcher container to the VM via virtiofs. The path must correspond to an existing volumeMount in the compute container. | [optional] **data_volume** | [**V1DataVolumeSource**](V1DataVolumeSource.md) | DataVolume represents the dynamic creation a PVC for this volume as well as the process of populating that PVC with a disk image. | [optional] **downward_api** | [**V1DownwardAPIVolumeSource**](V1DownwardAPIVolumeSource.md) | DownwardAPI represents downward API about the pod that should populate this volume | [optional] **downward_metrics** | [**V1DownwardMetricsVolumeSource**](V1DownwardMetricsVolumeSource.md) | DownwardMetrics adds a very small disk to VMIs which contains a limited view of host and guest metrics. The disk content is compatible with vhostmd (https://github.com/vhostmd/vhostmd) and vm-dump-metrics. | [optional] diff --git a/docs/V1beta1DataVolumeSourceImageIO.md b/docs/V1beta1DataVolumeSourceImageIO.md index 949d4e50..e3f32b0d 100644 --- a/docs/V1beta1DataVolumeSourceImageIO.md +++ b/docs/V1beta1DataVolumeSourceImageIO.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cert_config_map** | **str** | CertConfigMap provides a reference to the CA cert | [optional] **disk_id** | **str** | DiskID provides id of a disk to be imported | [default to ''] +**insecure_skip_verify** | **bool** | InsecureSkipVerify is a flag to skip certificate verification | [optional] **secret_ref** | **str** | SecretRef provides the secret reference needed to access the ovirt-engine | [optional] **url** | **str** | URL is the URL of the ovirt-engine | [default to ''] diff --git a/git_push.sh b/git_push.sh index d669c475..15f944f1 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.8.0-beta.0-272-gfa2c37b285" + release_note="Auto-generated client v1.8.0-beta.0-317-gb3ad6de13f" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 80355a46..d6f3b48f 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -269,6 +269,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_container_disk_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_container_disk_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ContainerDiskSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_container_path_volume_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_container_path_volume_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ContainerPathVolumeSource.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_controller_revision_ref.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_controller_revision_ref.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ControllerRevisionRef.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index adeec6c1..c00be315 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -96,6 +96,7 @@ from .models.v1_config_map_volume_source import V1ConfigMapVolumeSource from .models.v1_container_disk_info import V1ContainerDiskInfo from .models.v1_container_disk_source import V1ContainerDiskSource +from .models.v1_container_path_volume_source import V1ContainerPathVolumeSource from .models.v1_controller_revision_ref import V1ControllerRevisionRef from .models.v1_custom_block_size import V1CustomBlockSize from .models.v1_custom_profile import V1CustomProfile diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 466b0f60..54263318 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.8.0-beta.0-272-gfa2c37b285/python' + self.user_agent = 'Swagger-Codegen/v1.8.0-beta.0-317-gb3ad6de13f/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 3f93e35c..609bc154 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.8.0-beta.0-272-gfa2c37b285".\ + "SDK Package Version: v1.8.0-beta.0-317-gb3ad6de13f".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 8b119447..78fd7a8c 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -96,6 +96,7 @@ from .v1_config_map_volume_source import V1ConfigMapVolumeSource from .v1_container_disk_info import V1ContainerDiskInfo from .v1_container_disk_source import V1ContainerDiskSource +from .v1_container_path_volume_source import V1ContainerPathVolumeSource from .v1_controller_revision_ref import V1ControllerRevisionRef from .v1_custom_block_size import V1CustomBlockSize from .v1_custom_profile import V1CustomProfile diff --git a/kubevirt/models/v1_container_path_volume_source.py b/kubevirt/models/v1_container_path_volume_source.py new file mode 100644 index 00000000..81d6d28e --- /dev/null +++ b/kubevirt/models/v1_container_path_volume_source.py @@ -0,0 +1,154 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ContainerPathVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'path': 'str', + 'read_only': 'bool' + } + + attribute_map = { + 'path': 'path', + 'read_only': 'readOnly' + } + + def __init__(self, path='', read_only=None): + """ + V1ContainerPathVolumeSource - a model defined in Swagger + """ + + self._path = None + self._read_only = None + + self.path = path + if read_only is not None: + self.read_only = read_only + + @property + def path(self): + """ + Gets the path of this V1ContainerPathVolumeSource. + Path is the absolute path within the virt-launcher container to expose to the VM. The path must correspond to an existing volumeMount in the compute container. + + :return: The path of this V1ContainerPathVolumeSource. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this V1ContainerPathVolumeSource. + Path is the absolute path within the virt-launcher container to expose to the VM. The path must correspond to an existing volumeMount in the compute container. + + :param path: The path of this V1ContainerPathVolumeSource. + :type: str + """ + if path is None: + raise ValueError("Invalid value for `path`, must not be `None`") + + self._path = path + + @property + def read_only(self): + """ + Gets the read_only of this V1ContainerPathVolumeSource. + ReadOnly controls whether the volume is exposed as read-only to the VM. Defaults to true. Write access is not currently supported. + + :return: The read_only of this V1ContainerPathVolumeSource. + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """ + Sets the read_only of this V1ContainerPathVolumeSource. + ReadOnly controls whether the volume is exposed as read-only to the VM. Defaults to true. Write access is not currently supported. + + :param read_only: The read_only of this V1ContainerPathVolumeSource. + :type: bool + """ + + self._read_only = read_only + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1ContainerPathVolumeSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_volume.py b/kubevirt/models/v1_volume.py index 829081fe..9a0ce12f 100644 --- a/kubevirt/models/v1_volume.py +++ b/kubevirt/models/v1_volume.py @@ -35,6 +35,7 @@ class V1Volume(object): 'cloud_init_no_cloud': 'V1CloudInitNoCloudSource', 'config_map': 'V1ConfigMapVolumeSource', 'container_disk': 'V1ContainerDiskSource', + 'container_path': 'V1ContainerPathVolumeSource', 'data_volume': 'V1DataVolumeSource', 'downward_api': 'V1DownwardAPIVolumeSource', 'downward_metrics': 'V1DownwardMetricsVolumeSource', @@ -54,6 +55,7 @@ class V1Volume(object): 'cloud_init_no_cloud': 'cloudInitNoCloud', 'config_map': 'configMap', 'container_disk': 'containerDisk', + 'container_path': 'containerPath', 'data_volume': 'dataVolume', 'downward_api': 'downwardAPI', 'downward_metrics': 'downwardMetrics', @@ -68,7 +70,7 @@ class V1Volume(object): 'sysprep': 'sysprep' } - def __init__(self, cloud_init_config_drive=None, cloud_init_no_cloud=None, config_map=None, container_disk=None, data_volume=None, downward_api=None, downward_metrics=None, empty_disk=None, ephemeral=None, host_disk=None, memory_dump=None, name='', persistent_volume_claim=None, secret=None, service_account=None, sysprep=None): + def __init__(self, cloud_init_config_drive=None, cloud_init_no_cloud=None, config_map=None, container_disk=None, container_path=None, data_volume=None, downward_api=None, downward_metrics=None, empty_disk=None, ephemeral=None, host_disk=None, memory_dump=None, name='', persistent_volume_claim=None, secret=None, service_account=None, sysprep=None): """ V1Volume - a model defined in Swagger """ @@ -77,6 +79,7 @@ def __init__(self, cloud_init_config_drive=None, cloud_init_no_cloud=None, confi self._cloud_init_no_cloud = None self._config_map = None self._container_disk = None + self._container_path = None self._data_volume = None self._downward_api = None self._downward_metrics = None @@ -98,6 +101,8 @@ def __init__(self, cloud_init_config_drive=None, cloud_init_no_cloud=None, confi self.config_map = config_map if container_disk is not None: self.container_disk = container_disk + if container_path is not None: + self.container_path = container_path if data_volume is not None: self.data_volume = data_volume if downward_api is not None: @@ -214,6 +219,29 @@ def container_disk(self, container_disk): self._container_disk = container_disk + @property + def container_path(self): + """ + Gets the container_path of this V1Volume. + ContainerPath exposes a path from the virt-launcher container to the VM via virtiofs. The path must correspond to an existing volumeMount in the compute container. + + :return: The container_path of this V1Volume. + :rtype: V1ContainerPathVolumeSource + """ + return self._container_path + + @container_path.setter + def container_path(self, container_path): + """ + Sets the container_path of this V1Volume. + ContainerPath exposes a path from the virt-launcher container to the VM via virtiofs. The path must correspond to an existing volumeMount in the compute container. + + :param container_path: The container_path of this V1Volume. + :type: V1ContainerPathVolumeSource + """ + + self._container_path = container_path + @property def data_volume(self): """ diff --git a/kubevirt/models/v1beta1_data_volume_source_image_io.py b/kubevirt/models/v1beta1_data_volume_source_image_io.py index 222bf97e..6a70661a 100644 --- a/kubevirt/models/v1beta1_data_volume_source_image_io.py +++ b/kubevirt/models/v1beta1_data_volume_source_image_io.py @@ -33,6 +33,7 @@ class V1beta1DataVolumeSourceImageIO(object): swagger_types = { 'cert_config_map': 'str', 'disk_id': 'str', + 'insecure_skip_verify': 'bool', 'secret_ref': 'str', 'url': 'str' } @@ -40,23 +41,27 @@ class V1beta1DataVolumeSourceImageIO(object): attribute_map = { 'cert_config_map': 'certConfigMap', 'disk_id': 'diskId', + 'insecure_skip_verify': 'insecureSkipVerify', 'secret_ref': 'secretRef', 'url': 'url' } - def __init__(self, cert_config_map=None, disk_id='', secret_ref=None, url=''): + def __init__(self, cert_config_map=None, disk_id='', insecure_skip_verify=None, secret_ref=None, url=''): """ V1beta1DataVolumeSourceImageIO - a model defined in Swagger """ self._cert_config_map = None self._disk_id = None + self._insecure_skip_verify = None self._secret_ref = None self._url = None if cert_config_map is not None: self.cert_config_map = cert_config_map self.disk_id = disk_id + if insecure_skip_verify is not None: + self.insecure_skip_verify = insecure_skip_verify if secret_ref is not None: self.secret_ref = secret_ref self.url = url @@ -109,6 +114,29 @@ def disk_id(self, disk_id): self._disk_id = disk_id + @property + def insecure_skip_verify(self): + """ + Gets the insecure_skip_verify of this V1beta1DataVolumeSourceImageIO. + InsecureSkipVerify is a flag to skip certificate verification + + :return: The insecure_skip_verify of this V1beta1DataVolumeSourceImageIO. + :rtype: bool + """ + return self._insecure_skip_verify + + @insecure_skip_verify.setter + def insecure_skip_verify(self, insecure_skip_verify): + """ + Sets the insecure_skip_verify of this V1beta1DataVolumeSourceImageIO. + InsecureSkipVerify is a flag to skip certificate verification + + :param insecure_skip_verify: The insecure_skip_verify of this V1beta1DataVolumeSourceImageIO. + :type: bool + """ + + self._insecure_skip_verify = insecure_skip_verify + @property def secret_ref(self): """ diff --git a/setup.py b/setup.py index 7e0af4be..39deec2c 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.8.0-beta.0-272-gfa2c37b285" +VERSION = "v1.8.0-beta.0-317-gb3ad6de13f" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 0f54f83a..a566c605 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.8.0-beta.0-272-gfa2c37b285" +"packageVersion": "v1.8.0-beta.0-317-gb3ad6de13f" } diff --git a/test/test_v1_container_path_volume_source.py b/test/test_v1_container_path_volume_source.py new file mode 100644 index 00000000..cc90c056 --- /dev/null +++ b/test/test_v1_container_path_volume_source.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_container_path_volume_source import V1ContainerPathVolumeSource + + +class TestV1ContainerPathVolumeSource(unittest.TestCase): + """ V1ContainerPathVolumeSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ContainerPathVolumeSource(self): + """ + Test V1ContainerPathVolumeSource + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_container_path_volume_source.V1ContainerPathVolumeSource() + pass + + +if __name__ == '__main__': + unittest.main() From 3cd52a60719f44554931d8cbda71e5dd33757e47 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 27 Feb 2026 02:09:54 +0000 Subject: [PATCH 512/521] Client Python update by KubeVirt Prow build 2027199404653416448 --- README.md | 3 +- docs/V1Memory.md | 1 + docs/V1ReservedOverhead.md | 11 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 39 ++++++ kubevirt/__init__.py | 1 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 1 + kubevirt/models/v1_memory.py | 34 +++++- kubevirt/models/v1_reserved_overhead.py | 153 ++++++++++++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_reserved_overhead.py | 44 +++++++ 14 files changed, 288 insertions(+), 9 deletions(-) create mode 100644 docs/V1ReservedOverhead.md create mode 100644 kubevirt/models/v1_reserved_overhead.py create mode 100644 test/test_v1_reserved_overhead.py diff --git a/README.md b/README.md index e311b4a5..80c88905 100644 --- a/README.md +++ b/README.md @@ -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.8.0-beta.0-317-gb3ad6de13f +- Package version: v1.8.0-beta.0-355-ge893f118c2 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -576,6 +576,7 @@ Class | Method | HTTP request | Description - [V1Realtime](docs/V1Realtime.md) - [V1ReloadableComponentConfiguration](docs/V1ReloadableComponentConfiguration.md) - [V1RemoveVolumeOptions](docs/V1RemoveVolumeOptions.md) + - [V1ReservedOverhead](docs/V1ReservedOverhead.md) - [V1ResourceRequirements](docs/V1ResourceRequirements.md) - [V1ResourceRequirementsWithoutClaims](docs/V1ResourceRequirementsWithoutClaims.md) - [V1RestartOptions](docs/V1RestartOptions.md) diff --git a/docs/V1Memory.md b/docs/V1Memory.md index 87b28eca..bbdcb46e 100644 --- a/docs/V1Memory.md +++ b/docs/V1Memory.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **guest** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | Guest allows to specifying the amount of memory which is visible inside the Guest OS. The Guest must lie between Requests and Limits from the resources section. Defaults to the requested memory in the resources section if not specified. | [optional] **hugepages** | [**V1Hugepages**](V1Hugepages.md) | Hugepages allow to use hugepages for the VirtualMachineInstance instead of regular memory. | [optional] **max_guest** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | MaxGuest allows to specify the maximum amount of memory which is visible inside the Guest OS. The delta between MaxGuest and Guest is the amount of memory that can be hot(un)plugged. | [optional] +**reserved_overhead** | [**V1ReservedOverhead**](V1ReservedOverhead.md) | ReservedOverhead configures the memory overhead applied to a VM and its characteristics. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1ReservedOverhead.md b/docs/V1ReservedOverhead.md new file mode 100644 index 00000000..b0d3dcd2 --- /dev/null +++ b/docs/V1ReservedOverhead.md @@ -0,0 +1,11 @@ +# V1ReservedOverhead + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**added_overhead** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | AddedOverhead determines the memory overhead that will be reserved for the VM. It increases the virt-launcher pod memory limit. | [optional] +**mem_lock** | **str** | RequiresLock determines whether the VM's and its overhead memory need to be locked or not. It is a common practice to enable this if vDPA, VFIO or any other specialized hardware that depends on DMA is being used by the VM. False - (Default) memory lock RLimits are not modified. True - Memory lock RLimits will be updated to consider VM memory size and memory overhead | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 15f944f1..4a59f337 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.8.0-beta.0-317-gb3ad6de13f" + release_note="Auto-generated client v1.8.0-beta.0-355-ge893f118c2" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index d6f3b48f..c70fffdd 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -662,6 +662,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_remove_volume_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_remove_volume_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1RemoveVolumeOptions.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_reserved_overhead.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_reserved_overhead.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ReservedOverhead.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_resource_requirements.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_resource_requirements.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ResourceRequirements.md @@ -1681,6 +1684,42 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_default_api.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/DefaultApi.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index c00be315..d04698f1 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -227,6 +227,7 @@ from .models.v1_realtime import V1Realtime from .models.v1_reloadable_component_configuration import V1ReloadableComponentConfiguration from .models.v1_remove_volume_options import V1RemoveVolumeOptions +from .models.v1_reserved_overhead import V1ReservedOverhead from .models.v1_resource_requirements import V1ResourceRequirements from .models.v1_resource_requirements_without_claims import V1ResourceRequirementsWithoutClaims from .models.v1_restart_options import V1RestartOptions diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 54263318..68dbbd33 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.8.0-beta.0-317-gb3ad6de13f/python' + self.user_agent = 'Swagger-Codegen/v1.8.0-beta.0-355-ge893f118c2/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 609bc154..bc51b0cb 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.8.0-beta.0-317-gb3ad6de13f".\ + "SDK Package Version: v1.8.0-beta.0-355-ge893f118c2".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 78fd7a8c..fce7c866 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -227,6 +227,7 @@ from .v1_realtime import V1Realtime from .v1_reloadable_component_configuration import V1ReloadableComponentConfiguration from .v1_remove_volume_options import V1RemoveVolumeOptions +from .v1_reserved_overhead import V1ReservedOverhead from .v1_resource_requirements import V1ResourceRequirements from .v1_resource_requirements_without_claims import V1ResourceRequirementsWithoutClaims from .v1_restart_options import V1RestartOptions diff --git a/kubevirt/models/v1_memory.py b/kubevirt/models/v1_memory.py index de47e216..6a08fbf9 100644 --- a/kubevirt/models/v1_memory.py +++ b/kubevirt/models/v1_memory.py @@ -33,16 +33,18 @@ class V1Memory(object): swagger_types = { 'guest': 'K8sIoApimachineryPkgApiResourceQuantity', 'hugepages': 'V1Hugepages', - 'max_guest': 'K8sIoApimachineryPkgApiResourceQuantity' + 'max_guest': 'K8sIoApimachineryPkgApiResourceQuantity', + 'reserved_overhead': 'V1ReservedOverhead' } attribute_map = { 'guest': 'guest', 'hugepages': 'hugepages', - 'max_guest': 'maxGuest' + 'max_guest': 'maxGuest', + 'reserved_overhead': 'reservedOverhead' } - def __init__(self, guest=None, hugepages=None, max_guest=None): + def __init__(self, guest=None, hugepages=None, max_guest=None, reserved_overhead=None): """ V1Memory - a model defined in Swagger """ @@ -50,6 +52,7 @@ def __init__(self, guest=None, hugepages=None, max_guest=None): self._guest = None self._hugepages = None self._max_guest = None + self._reserved_overhead = None if guest is not None: self.guest = guest @@ -57,6 +60,8 @@ def __init__(self, guest=None, hugepages=None, max_guest=None): self.hugepages = hugepages if max_guest is not None: self.max_guest = max_guest + if reserved_overhead is not None: + self.reserved_overhead = reserved_overhead @property def guest(self): @@ -127,6 +132,29 @@ def max_guest(self, max_guest): self._max_guest = max_guest + @property + def reserved_overhead(self): + """ + Gets the reserved_overhead of this V1Memory. + ReservedOverhead configures the memory overhead applied to a VM and its characteristics. + + :return: The reserved_overhead of this V1Memory. + :rtype: V1ReservedOverhead + """ + return self._reserved_overhead + + @reserved_overhead.setter + def reserved_overhead(self, reserved_overhead): + """ + Sets the reserved_overhead of this V1Memory. + ReservedOverhead configures the memory overhead applied to a VM and its characteristics. + + :param reserved_overhead: The reserved_overhead of this V1Memory. + :type: V1ReservedOverhead + """ + + self._reserved_overhead = reserved_overhead + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_reserved_overhead.py b/kubevirt/models/v1_reserved_overhead.py new file mode 100644 index 00000000..75b2716b --- /dev/null +++ b/kubevirt/models/v1_reserved_overhead.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ReservedOverhead(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'added_overhead': 'K8sIoApimachineryPkgApiResourceQuantity', + 'mem_lock': 'str' + } + + attribute_map = { + 'added_overhead': 'addedOverhead', + 'mem_lock': 'memLock' + } + + def __init__(self, added_overhead=None, mem_lock=None): + """ + V1ReservedOverhead - a model defined in Swagger + """ + + self._added_overhead = None + self._mem_lock = None + + if added_overhead is not None: + self.added_overhead = added_overhead + if mem_lock is not None: + self.mem_lock = mem_lock + + @property + def added_overhead(self): + """ + Gets the added_overhead of this V1ReservedOverhead. + AddedOverhead determines the memory overhead that will be reserved for the VM. It increases the virt-launcher pod memory limit. + + :return: The added_overhead of this V1ReservedOverhead. + :rtype: K8sIoApimachineryPkgApiResourceQuantity + """ + return self._added_overhead + + @added_overhead.setter + def added_overhead(self, added_overhead): + """ + Sets the added_overhead of this V1ReservedOverhead. + AddedOverhead determines the memory overhead that will be reserved for the VM. It increases the virt-launcher pod memory limit. + + :param added_overhead: The added_overhead of this V1ReservedOverhead. + :type: K8sIoApimachineryPkgApiResourceQuantity + """ + + self._added_overhead = added_overhead + + @property + def mem_lock(self): + """ + Gets the mem_lock of this V1ReservedOverhead. + RequiresLock determines whether the VM's and its overhead memory need to be locked or not. It is a common practice to enable this if vDPA, VFIO or any other specialized hardware that depends on DMA is being used by the VM. False - (Default) memory lock RLimits are not modified. True - Memory lock RLimits will be updated to consider VM memory size and memory overhead + + :return: The mem_lock of this V1ReservedOverhead. + :rtype: str + """ + return self._mem_lock + + @mem_lock.setter + def mem_lock(self, mem_lock): + """ + Sets the mem_lock of this V1ReservedOverhead. + RequiresLock determines whether the VM's and its overhead memory need to be locked or not. It is a common practice to enable this if vDPA, VFIO or any other specialized hardware that depends on DMA is being used by the VM. False - (Default) memory lock RLimits are not modified. True - Memory lock RLimits will be updated to consider VM memory size and memory overhead + + :param mem_lock: The mem_lock of this V1ReservedOverhead. + :type: str + """ + + self._mem_lock = mem_lock + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1ReservedOverhead): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index 39deec2c..b5769624 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.8.0-beta.0-317-gb3ad6de13f" +VERSION = "v1.8.0-beta.0-355-ge893f118c2" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index a566c605..ca0ccb9c 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.8.0-beta.0-317-gb3ad6de13f" +"packageVersion": "v1.8.0-beta.0-355-ge893f118c2" } diff --git a/test/test_v1_reserved_overhead.py b/test/test_v1_reserved_overhead.py new file mode 100644 index 00000000..7d524cad --- /dev/null +++ b/test/test_v1_reserved_overhead.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_reserved_overhead import V1ReservedOverhead + + +class TestV1ReservedOverhead(unittest.TestCase): + """ V1ReservedOverhead unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ReservedOverhead(self): + """ + Test V1ReservedOverhead + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_reserved_overhead.V1ReservedOverhead() + pass + + +if __name__ == '__main__': + unittest.main() From 7bc4d2ea22855401422dbd011d24098d65dc7246 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 27 Feb 2026 09:13:01 +0000 Subject: [PATCH 513/521] Client Python update by KubeVirt Prow build 2027305396141559808 --- README.md | 5 +- docs/V1ConfidentialComputeConfiguration.md | 10 ++ docs/V1KubeVirtConfiguration.md | 1 + docs/V1TDXAttestationConfiguration.md | 11 ++ docs/V1TDXConfiguration.md | 10 ++ git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 9 ++ kubevirt/__init__.py | 3 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 3 + .../v1_confidential_compute_configuration.py | 125 ++++++++++++++ kubevirt/models/v1_kube_virt_configuration.py | 30 +++- .../v1_tdx_attestation_configuration.py | 153 ++++++++++++++++++ kubevirt/models/v1_tdx_configuration.py | 123 ++++++++++++++ setup.py | 2 +- swagger-codegen-config.json | 2 +- ...t_v1_confidential_compute_configuration.py | 44 +++++ test/test_v1_tdx_attestation_configuration.py | 44 +++++ test/test_v1_tdx_configuration.py | 44 +++++ 20 files changed, 618 insertions(+), 7 deletions(-) create mode 100644 docs/V1ConfidentialComputeConfiguration.md create mode 100644 docs/V1TDXAttestationConfiguration.md create mode 100644 docs/V1TDXConfiguration.md create mode 100644 kubevirt/models/v1_confidential_compute_configuration.py create mode 100644 kubevirt/models/v1_tdx_attestation_configuration.py create mode 100644 kubevirt/models/v1_tdx_configuration.py create mode 100644 test/test_v1_confidential_compute_configuration.py create mode 100644 test/test_v1_tdx_attestation_configuration.py create mode 100644 test/test_v1_tdx_configuration.py diff --git a/README.md b/README.md index 80c88905..253ec2a7 100644 --- a/README.md +++ b/README.md @@ -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.8.0-beta.0-355-ge893f118c2 +- Package version: v1.8.0-beta.0-364-g0efa536140 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -441,6 +441,7 @@ Class | Method | HTTP request | Description - [V1CloudInitNoCloudSource](docs/V1CloudInitNoCloudSource.md) - [V1CommonInstancetypesDeployment](docs/V1CommonInstancetypesDeployment.md) - [V1ComponentConfig](docs/V1ComponentConfig.md) + - [V1ConfidentialComputeConfiguration](docs/V1ConfidentialComputeConfiguration.md) - [V1ConfigDriveSSHPublicKeyAccessCredentialPropagation](docs/V1ConfigDriveSSHPublicKeyAccessCredentialPropagation.md) - [V1ConfigMapVolumeSource](docs/V1ConfigMapVolumeSource.md) - [V1ContainerDiskInfo](docs/V1ContainerDiskInfo.md) @@ -604,6 +605,8 @@ Class | Method | HTTP request | Description - [V1SyNICTimer](docs/V1SyNICTimer.md) - [V1SysprepSource](docs/V1SysprepSource.md) - [V1TDX](docs/V1TDX.md) + - [V1TDXAttestationConfiguration](docs/V1TDXAttestationConfiguration.md) + - [V1TDXConfiguration](docs/V1TDXConfiguration.md) - [V1TLBFlush](docs/V1TLBFlush.md) - [V1TLSConfiguration](docs/V1TLSConfiguration.md) - [V1TPMDevice](docs/V1TPMDevice.md) diff --git a/docs/V1ConfidentialComputeConfiguration.md b/docs/V1ConfidentialComputeConfiguration.md new file mode 100644 index 00000000..4a34d288 --- /dev/null +++ b/docs/V1ConfidentialComputeConfiguration.md @@ -0,0 +1,10 @@ +# V1ConfidentialComputeConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tdx** | [**V1TDXConfiguration**](V1TDXConfiguration.md) | TDX configuration for attestation on the Intel TDX Platform | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index 4b87b45e..ef4410a7 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **auto_cpu_limit_namespace_label_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | When set, AutoCPULimitNamespaceLabelSelector will set a CPU limit on virt-launcher for VMIs running inside namespaces that match the label selector. The CPU limit will equal the number of requested vCPUs. This setting does not apply to VMIs with dedicated CPUs. | [optional] **changed_block_tracking_label_selectors** | [**V1ChangedBlockTrackingSelectors**](V1ChangedBlockTrackingSelectors.md) | ChangedBlockTrackingLabelSelectors defines label selectors. VMs matching these selectors will have changed block tracking enabled. Enabling changedBlockTracking is mandatory for performing storage-agnostic backups and incremental backups. | [optional] **common_instancetypes_deployment** | [**V1CommonInstancetypesDeployment**](V1CommonInstancetypesDeployment.md) | CommonInstancetypesDeployment controls the deployment of common-instancetypes resources | [optional] +**confidential_compute** | [**V1ConfidentialComputeConfiguration**](V1ConfidentialComputeConfiguration.md) | QGS configuration for attestation on the Intel TDX Platform | [optional] **controller_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] **cpu_model** | **str** | | [optional] **cpu_request** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | | [optional] diff --git a/docs/V1TDXAttestationConfiguration.md b/docs/V1TDXAttestationConfiguration.md new file mode 100644 index 00000000..f38a37b3 --- /dev/null +++ b/docs/V1TDXAttestationConfiguration.md @@ -0,0 +1,11 @@ +# V1TDXAttestationConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enforced** | **bool** | Indicates whether TDX VM should enforce the existence of QGS (required for attestation) to be scheduled | [optional] +**qgs_socket_path** | **str** | Socket path pointing to the Quote Generation Service | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1TDXConfiguration.md b/docs/V1TDXConfiguration.md new file mode 100644 index 00000000..6c47b035 --- /dev/null +++ b/docs/V1TDXConfiguration.md @@ -0,0 +1,10 @@ +# V1TDXConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attestation** | [**V1TDXAttestationConfiguration**](V1TDXAttestationConfiguration.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index 4a59f337..8f421138 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.8.0-beta.0-355-ge893f118c2" + release_note="Auto-generated client v1.8.0-beta.0-364-g0efa536140" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index c70fffdd..e8721177 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -257,6 +257,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_component_config.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_component_config.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ComponentConfig.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_confidential_compute_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_confidential_compute_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ConfidentialComputeConfiguration.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_config_drive_ssh_public_key_access_credential_propagation.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_config_drive_ssh_public_key_access_credential_propagation.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ConfigDriveSSHPublicKeyAccessCredentialPropagation.md @@ -746,6 +749,12 @@ 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_tdx.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_tdx.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1TDX.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_tdx_attestation_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_tdx_attestation_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1TDXAttestationConfiguration.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_tdx_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_tdx_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1TDXConfiguration.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_tlb_flush.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_tlb_flush.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1TLBFlush.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index d04698f1..f2e87cff 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -92,6 +92,7 @@ from .models.v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource from .models.v1_common_instancetypes_deployment import V1CommonInstancetypesDeployment from .models.v1_component_config import V1ComponentConfig +from .models.v1_confidential_compute_configuration import V1ConfidentialComputeConfiguration from .models.v1_config_drive_ssh_public_key_access_credential_propagation import V1ConfigDriveSSHPublicKeyAccessCredentialPropagation from .models.v1_config_map_volume_source import V1ConfigMapVolumeSource from .models.v1_container_disk_info import V1ContainerDiskInfo @@ -255,6 +256,8 @@ from .models.v1_sy_nic_timer import V1SyNICTimer from .models.v1_sysprep_source import V1SysprepSource from .models.v1_tdx import V1TDX +from .models.v1_tdx_attestation_configuration import V1TDXAttestationConfiguration +from .models.v1_tdx_configuration import V1TDXConfiguration from .models.v1_tlb_flush import V1TLBFlush from .models.v1_tls_configuration import V1TLSConfiguration from .models.v1_tpm_device import V1TPMDevice diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 68dbbd33..4249302e 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.8.0-beta.0-355-ge893f118c2/python' + self.user_agent = 'Swagger-Codegen/v1.8.0-beta.0-364-g0efa536140/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index bc51b0cb..339f62bd 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.8.0-beta.0-355-ge893f118c2".\ + "SDK Package Version: v1.8.0-beta.0-364-g0efa536140".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index fce7c866..45f6b0ce 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -92,6 +92,7 @@ from .v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource from .v1_common_instancetypes_deployment import V1CommonInstancetypesDeployment from .v1_component_config import V1ComponentConfig +from .v1_confidential_compute_configuration import V1ConfidentialComputeConfiguration from .v1_config_drive_ssh_public_key_access_credential_propagation import V1ConfigDriveSSHPublicKeyAccessCredentialPropagation from .v1_config_map_volume_source import V1ConfigMapVolumeSource from .v1_container_disk_info import V1ContainerDiskInfo @@ -255,6 +256,8 @@ from .v1_sy_nic_timer import V1SyNICTimer from .v1_sysprep_source import V1SysprepSource from .v1_tdx import V1TDX +from .v1_tdx_attestation_configuration import V1TDXAttestationConfiguration +from .v1_tdx_configuration import V1TDXConfiguration from .v1_tlb_flush import V1TLBFlush from .v1_tls_configuration import V1TLSConfiguration from .v1_tpm_device import V1TPMDevice diff --git a/kubevirt/models/v1_confidential_compute_configuration.py b/kubevirt/models/v1_confidential_compute_configuration.py new file mode 100644 index 00000000..6ee353dd --- /dev/null +++ b/kubevirt/models/v1_confidential_compute_configuration.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ConfidentialComputeConfiguration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'tdx': 'V1TDXConfiguration' + } + + attribute_map = { + 'tdx': 'tdx' + } + + def __init__(self, tdx=None): + """ + V1ConfidentialComputeConfiguration - a model defined in Swagger + """ + + self._tdx = None + + if tdx is not None: + self.tdx = tdx + + @property + def tdx(self): + """ + Gets the tdx of this V1ConfidentialComputeConfiguration. + TDX configuration for attestation on the Intel TDX Platform + + :return: The tdx of this V1ConfidentialComputeConfiguration. + :rtype: V1TDXConfiguration + """ + return self._tdx + + @tdx.setter + def tdx(self, tdx): + """ + Sets the tdx of this V1ConfidentialComputeConfiguration. + TDX configuration for attestation on the Intel TDX Platform + + :param tdx: The tdx of this V1ConfidentialComputeConfiguration. + :type: V1TDXConfiguration + """ + + self._tdx = tdx + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1ConfidentialComputeConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index 3f4a59d2..ed89cbb4 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -37,6 +37,7 @@ class V1KubeVirtConfiguration(object): 'auto_cpu_limit_namespace_label_selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', 'changed_block_tracking_label_selectors': 'V1ChangedBlockTrackingSelectors', 'common_instancetypes_deployment': 'V1CommonInstancetypesDeployment', + 'confidential_compute': 'V1ConfidentialComputeConfiguration', 'controller_configuration': 'V1ReloadableComponentConfiguration', 'cpu_model': 'str', 'cpu_request': 'K8sIoApimachineryPkgApiResourceQuantity', @@ -80,6 +81,7 @@ class V1KubeVirtConfiguration(object): 'auto_cpu_limit_namespace_label_selector': 'autoCPULimitNamespaceLabelSelector', 'changed_block_tracking_label_selectors': 'changedBlockTrackingLabelSelectors', 'common_instancetypes_deployment': 'commonInstancetypesDeployment', + 'confidential_compute': 'confidentialCompute', 'controller_configuration': 'controllerConfiguration', 'cpu_model': 'cpuModel', 'cpu_request': 'cpuRequest', @@ -116,7 +118,7 @@ class V1KubeVirtConfiguration(object): 'webhook_configuration': 'webhookConfiguration' } - def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, auto_cpu_limit_namespace_label_selector=None, changed_block_tracking_label_selectors=None, common_instancetypes_deployment=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, hypervisors=None, image_pull_policy=None, instancetype=None, ksm_configuration=None, live_update_configuration=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virt_template_deployment=None, virtual_machine_instances_per_node=None, virtual_machine_options=None, vm_rollout_strategy=None, vm_state_storage_class=None, webhook_configuration=None): + def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, auto_cpu_limit_namespace_label_selector=None, changed_block_tracking_label_selectors=None, common_instancetypes_deployment=None, confidential_compute=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, hypervisors=None, image_pull_policy=None, instancetype=None, ksm_configuration=None, live_update_configuration=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virt_template_deployment=None, virtual_machine_instances_per_node=None, virtual_machine_options=None, vm_rollout_strategy=None, vm_state_storage_class=None, webhook_configuration=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ @@ -127,6 +129,7 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self._auto_cpu_limit_namespace_label_selector = None self._changed_block_tracking_label_selectors = None self._common_instancetypes_deployment = None + self._confidential_compute = None self._controller_configuration = None self._cpu_model = None self._cpu_request = None @@ -174,6 +177,8 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self.changed_block_tracking_label_selectors = changed_block_tracking_label_selectors if common_instancetypes_deployment is not None: self.common_instancetypes_deployment = common_instancetypes_deployment + if confidential_compute is not None: + self.confidential_compute = confidential_compute if controller_configuration is not None: self.controller_configuration = controller_configuration if cpu_model is not None: @@ -377,6 +382,29 @@ def common_instancetypes_deployment(self, common_instancetypes_deployment): self._common_instancetypes_deployment = common_instancetypes_deployment + @property + def confidential_compute(self): + """ + Gets the confidential_compute of this V1KubeVirtConfiguration. + QGS configuration for attestation on the Intel TDX Platform + + :return: The confidential_compute of this V1KubeVirtConfiguration. + :rtype: V1ConfidentialComputeConfiguration + """ + return self._confidential_compute + + @confidential_compute.setter + def confidential_compute(self, confidential_compute): + """ + Sets the confidential_compute of this V1KubeVirtConfiguration. + QGS configuration for attestation on the Intel TDX Platform + + :param confidential_compute: The confidential_compute of this V1KubeVirtConfiguration. + :type: V1ConfidentialComputeConfiguration + """ + + self._confidential_compute = confidential_compute + @property def controller_configuration(self): """ diff --git a/kubevirt/models/v1_tdx_attestation_configuration.py b/kubevirt/models/v1_tdx_attestation_configuration.py new file mode 100644 index 00000000..0ab09e59 --- /dev/null +++ b/kubevirt/models/v1_tdx_attestation_configuration.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1TDXAttestationConfiguration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'enforced': 'bool', + 'qgs_socket_path': 'str' + } + + attribute_map = { + 'enforced': 'enforced', + 'qgs_socket_path': 'qgsSocketPath' + } + + def __init__(self, enforced=None, qgs_socket_path=None): + """ + V1TDXAttestationConfiguration - a model defined in Swagger + """ + + self._enforced = None + self._qgs_socket_path = None + + if enforced is not None: + self.enforced = enforced + if qgs_socket_path is not None: + self.qgs_socket_path = qgs_socket_path + + @property + def enforced(self): + """ + Gets the enforced of this V1TDXAttestationConfiguration. + Indicates whether TDX VM should enforce the existence of QGS (required for attestation) to be scheduled + + :return: The enforced of this V1TDXAttestationConfiguration. + :rtype: bool + """ + return self._enforced + + @enforced.setter + def enforced(self, enforced): + """ + Sets the enforced of this V1TDXAttestationConfiguration. + Indicates whether TDX VM should enforce the existence of QGS (required for attestation) to be scheduled + + :param enforced: The enforced of this V1TDXAttestationConfiguration. + :type: bool + """ + + self._enforced = enforced + + @property + def qgs_socket_path(self): + """ + Gets the qgs_socket_path of this V1TDXAttestationConfiguration. + Socket path pointing to the Quote Generation Service + + :return: The qgs_socket_path of this V1TDXAttestationConfiguration. + :rtype: str + """ + return self._qgs_socket_path + + @qgs_socket_path.setter + def qgs_socket_path(self, qgs_socket_path): + """ + Sets the qgs_socket_path of this V1TDXAttestationConfiguration. + Socket path pointing to the Quote Generation Service + + :param qgs_socket_path: The qgs_socket_path of this V1TDXAttestationConfiguration. + :type: str + """ + + self._qgs_socket_path = qgs_socket_path + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1TDXAttestationConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_tdx_configuration.py b/kubevirt/models/v1_tdx_configuration.py new file mode 100644 index 00000000..9040e0cb --- /dev/null +++ b/kubevirt/models/v1_tdx_configuration.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1TDXConfiguration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'attestation': 'V1TDXAttestationConfiguration' + } + + attribute_map = { + 'attestation': 'attestation' + } + + def __init__(self, attestation=None): + """ + V1TDXConfiguration - a model defined in Swagger + """ + + self._attestation = None + + if attestation is not None: + self.attestation = attestation + + @property + def attestation(self): + """ + Gets the attestation of this V1TDXConfiguration. + + :return: The attestation of this V1TDXConfiguration. + :rtype: V1TDXAttestationConfiguration + """ + return self._attestation + + @attestation.setter + def attestation(self, attestation): + """ + Sets the attestation of this V1TDXConfiguration. + + :param attestation: The attestation of this V1TDXConfiguration. + :type: V1TDXAttestationConfiguration + """ + + self._attestation = attestation + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1TDXConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/setup.py b/setup.py index b5769624..1cc3b7ce 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.8.0-beta.0-355-ge893f118c2" +VERSION = "v1.8.0-beta.0-364-g0efa536140" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index ca0ccb9c..562560d1 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.8.0-beta.0-355-ge893f118c2" +"packageVersion": "v1.8.0-beta.0-364-g0efa536140" } diff --git a/test/test_v1_confidential_compute_configuration.py b/test/test_v1_confidential_compute_configuration.py new file mode 100644 index 00000000..70a8bfd0 --- /dev/null +++ b/test/test_v1_confidential_compute_configuration.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_confidential_compute_configuration import V1ConfidentialComputeConfiguration + + +class TestV1ConfidentialComputeConfiguration(unittest.TestCase): + """ V1ConfidentialComputeConfiguration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ConfidentialComputeConfiguration(self): + """ + Test V1ConfidentialComputeConfiguration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_confidential_compute_configuration.V1ConfidentialComputeConfiguration() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_tdx_attestation_configuration.py b/test/test_v1_tdx_attestation_configuration.py new file mode 100644 index 00000000..ab2dee64 --- /dev/null +++ b/test/test_v1_tdx_attestation_configuration.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_tdx_attestation_configuration import V1TDXAttestationConfiguration + + +class TestV1TDXAttestationConfiguration(unittest.TestCase): + """ V1TDXAttestationConfiguration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1TDXAttestationConfiguration(self): + """ + Test V1TDXAttestationConfiguration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_tdx_attestation_configuration.V1TDXAttestationConfiguration() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_tdx_configuration.py b/test/test_v1_tdx_configuration.py new file mode 100644 index 00000000..92a283ff --- /dev/null +++ b/test/test_v1_tdx_configuration.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1_tdx_configuration import V1TDXConfiguration + + +class TestV1TDXConfiguration(unittest.TestCase): + """ V1TDXConfiguration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1TDXConfiguration(self): + """ + Test V1TDXConfiguration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_tdx_configuration.V1TDXConfiguration() + pass + + +if __name__ == '__main__': + unittest.main() From 4d594bf724b945225f35391f169f45812b455164 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 27 Feb 2026 09:13:06 +0000 Subject: [PATCH 514/521] Client Python update by KubeVirt Prow build 2027305455096696832 --- README.md | 2 +- docs/V1beta1DevicePreferences.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1beta1_device_preferences.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 253ec2a7..3d5be0f5 100644 --- a/README.md +++ b/README.md @@ -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.8.0-beta.0-364-g0efa536140 +- Package version: v1.8.0-beta.0-370-g045e1b5636 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1DevicePreferences.md b/docs/V1beta1DevicePreferences.md index a7e8720b..59d5fb77 100644 --- a/docs/V1beta1DevicePreferences.md +++ b/docs/V1beta1DevicePreferences.md @@ -27,6 +27,7 @@ Name | Type | Description | Notes **preferred_sound_model** | **str** | PreferredSoundModel optionally defines the preferred model for Sound devices. | [optional] **preferred_tpm** | [**V1TPMDevice**](V1TPMDevice.md) | PreferredTPM optionally defines the preferred TPM device to be used. | [optional] **preferred_use_virtio_transitional** | **bool** | PreferredUseVirtioTransitional optionally defines the preferred value of UseVirtioTransitional | [optional] +**preferred_video_type** | **str** | PreferredVideoType optionally defines the preferred type for Video devices. | [optional] **preferred_virtual_gpu_options** | [**V1VGPUOptions**](V1VGPUOptions.md) | PreferredVirtualGPUOptions optionally defines the preferred value of VirtualGPUOptions | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 8f421138..60583c1c 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.8.0-beta.0-364-g0efa536140" + release_note="Auto-generated client v1.8.0-beta.0-370-g045e1b5636" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 4249302e..afd8cc88 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.8.0-beta.0-364-g0efa536140/python' + self.user_agent = 'Swagger-Codegen/v1.8.0-beta.0-370-g045e1b5636/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 339f62bd..cac5ada3 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.8.0-beta.0-364-g0efa536140".\ + "SDK Package Version: v1.8.0-beta.0-370-g045e1b5636".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_device_preferences.py b/kubevirt/models/v1beta1_device_preferences.py index f13649f0..50375ed6 100644 --- a/kubevirt/models/v1beta1_device_preferences.py +++ b/kubevirt/models/v1beta1_device_preferences.py @@ -55,6 +55,7 @@ class V1beta1DevicePreferences(object): 'preferred_sound_model': 'str', 'preferred_tpm': 'V1TPMDevice', 'preferred_use_virtio_transitional': 'bool', + 'preferred_video_type': 'str', 'preferred_virtual_gpu_options': 'V1VGPUOptions' } @@ -83,10 +84,11 @@ class V1beta1DevicePreferences(object): 'preferred_sound_model': 'preferredSoundModel', 'preferred_tpm': 'preferredTPM', 'preferred_use_virtio_transitional': 'preferredUseVirtioTransitional', + 'preferred_video_type': 'preferredVideoType', 'preferred_virtual_gpu_options': 'preferredVirtualGPUOptions' } - def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoattach_input_device=None, preferred_autoattach_mem_balloon=None, preferred_autoattach_pod_interface=None, preferred_autoattach_serial_console=None, preferred_block_multi_queue=None, preferred_cdrom_bus=None, preferred_disable_hotplug=None, preferred_disk_block_size=None, preferred_disk_bus=None, preferred_disk_cache=None, preferred_disk_dedicated_io_thread=None, preferred_disk_io=None, preferred_input_bus=None, preferred_input_type=None, preferred_interface_masquerade=None, preferred_interface_model=None, preferred_lun_bus=None, preferred_network_interface_multi_queue=None, preferred_panic_device_model=None, preferred_rng=None, preferred_sound_model=None, preferred_tpm=None, preferred_use_virtio_transitional=None, preferred_virtual_gpu_options=None): + def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoattach_input_device=None, preferred_autoattach_mem_balloon=None, preferred_autoattach_pod_interface=None, preferred_autoattach_serial_console=None, preferred_block_multi_queue=None, preferred_cdrom_bus=None, preferred_disable_hotplug=None, preferred_disk_block_size=None, preferred_disk_bus=None, preferred_disk_cache=None, preferred_disk_dedicated_io_thread=None, preferred_disk_io=None, preferred_input_bus=None, preferred_input_type=None, preferred_interface_masquerade=None, preferred_interface_model=None, preferred_lun_bus=None, preferred_network_interface_multi_queue=None, preferred_panic_device_model=None, preferred_rng=None, preferred_sound_model=None, preferred_tpm=None, preferred_use_virtio_transitional=None, preferred_video_type=None, preferred_virtual_gpu_options=None): """ V1beta1DevicePreferences - a model defined in Swagger """ @@ -115,6 +117,7 @@ def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoatta self._preferred_sound_model = None self._preferred_tpm = None self._preferred_use_virtio_transitional = None + self._preferred_video_type = None self._preferred_virtual_gpu_options = None if preferred_autoattach_graphics_device is not None: @@ -165,6 +168,8 @@ def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoatta self.preferred_tpm = preferred_tpm if preferred_use_virtio_transitional is not None: self.preferred_use_virtio_transitional = preferred_use_virtio_transitional + if preferred_video_type is not None: + self.preferred_video_type = preferred_video_type if preferred_virtual_gpu_options is not None: self.preferred_virtual_gpu_options = preferred_virtual_gpu_options @@ -720,6 +725,29 @@ def preferred_use_virtio_transitional(self, preferred_use_virtio_transitional): self._preferred_use_virtio_transitional = preferred_use_virtio_transitional + @property + def preferred_video_type(self): + """ + Gets the preferred_video_type of this V1beta1DevicePreferences. + PreferredVideoType optionally defines the preferred type for Video devices. + + :return: The preferred_video_type of this V1beta1DevicePreferences. + :rtype: str + """ + return self._preferred_video_type + + @preferred_video_type.setter + def preferred_video_type(self, preferred_video_type): + """ + Sets the preferred_video_type of this V1beta1DevicePreferences. + PreferredVideoType optionally defines the preferred type for Video devices. + + :param preferred_video_type: The preferred_video_type of this V1beta1DevicePreferences. + :type: str + """ + + self._preferred_video_type = preferred_video_type + @property def preferred_virtual_gpu_options(self): """ diff --git a/setup.py b/setup.py index 1cc3b7ce..eefd56e5 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.8.0-beta.0-364-g0efa536140" +VERSION = "v1.8.0-beta.0-370-g045e1b5636" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 562560d1..15e663ab 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.8.0-beta.0-364-g0efa536140" +"packageVersion": "v1.8.0-beta.0-370-g045e1b5636" } From 68b1967acd7af67828750a2106c656152fc782da Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 27 Feb 2026 09:13:46 +0000 Subject: [PATCH 515/521] Client Python update by KubeVirt Prow build 2027305366630436864 --- README.md | 2 +- docs/V1beta1DevicePreferences.md | 1 - git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1beta1_device_preferences.py | 30 +------------------ setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 7 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index 3d5be0f5..05406be2 100644 --- a/README.md +++ b/README.md @@ -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.8.0-beta.0-370-g045e1b5636 +- Package version: v1.8.0-beta.0-362-gf84d1d7282 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1DevicePreferences.md b/docs/V1beta1DevicePreferences.md index 59d5fb77..a7e8720b 100644 --- a/docs/V1beta1DevicePreferences.md +++ b/docs/V1beta1DevicePreferences.md @@ -27,7 +27,6 @@ Name | Type | Description | Notes **preferred_sound_model** | **str** | PreferredSoundModel optionally defines the preferred model for Sound devices. | [optional] **preferred_tpm** | [**V1TPMDevice**](V1TPMDevice.md) | PreferredTPM optionally defines the preferred TPM device to be used. | [optional] **preferred_use_virtio_transitional** | **bool** | PreferredUseVirtioTransitional optionally defines the preferred value of UseVirtioTransitional | [optional] -**preferred_video_type** | **str** | PreferredVideoType optionally defines the preferred type for Video devices. | [optional] **preferred_virtual_gpu_options** | [**V1VGPUOptions**](V1VGPUOptions.md) | PreferredVirtualGPUOptions optionally defines the preferred value of VirtualGPUOptions | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index 60583c1c..d727c1eb 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.8.0-beta.0-370-g045e1b5636" + release_note="Auto-generated client v1.8.0-beta.0-362-gf84d1d7282" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index afd8cc88..4a7b5e08 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.8.0-beta.0-370-g045e1b5636/python' + self.user_agent = 'Swagger-Codegen/v1.8.0-beta.0-362-gf84d1d7282/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index cac5ada3..bd617507 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.8.0-beta.0-370-g045e1b5636".\ + "SDK Package Version: v1.8.0-beta.0-362-gf84d1d7282".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_device_preferences.py b/kubevirt/models/v1beta1_device_preferences.py index 50375ed6..f13649f0 100644 --- a/kubevirt/models/v1beta1_device_preferences.py +++ b/kubevirt/models/v1beta1_device_preferences.py @@ -55,7 +55,6 @@ class V1beta1DevicePreferences(object): 'preferred_sound_model': 'str', 'preferred_tpm': 'V1TPMDevice', 'preferred_use_virtio_transitional': 'bool', - 'preferred_video_type': 'str', 'preferred_virtual_gpu_options': 'V1VGPUOptions' } @@ -84,11 +83,10 @@ class V1beta1DevicePreferences(object): 'preferred_sound_model': 'preferredSoundModel', 'preferred_tpm': 'preferredTPM', 'preferred_use_virtio_transitional': 'preferredUseVirtioTransitional', - 'preferred_video_type': 'preferredVideoType', 'preferred_virtual_gpu_options': 'preferredVirtualGPUOptions' } - def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoattach_input_device=None, preferred_autoattach_mem_balloon=None, preferred_autoattach_pod_interface=None, preferred_autoattach_serial_console=None, preferred_block_multi_queue=None, preferred_cdrom_bus=None, preferred_disable_hotplug=None, preferred_disk_block_size=None, preferred_disk_bus=None, preferred_disk_cache=None, preferred_disk_dedicated_io_thread=None, preferred_disk_io=None, preferred_input_bus=None, preferred_input_type=None, preferred_interface_masquerade=None, preferred_interface_model=None, preferred_lun_bus=None, preferred_network_interface_multi_queue=None, preferred_panic_device_model=None, preferred_rng=None, preferred_sound_model=None, preferred_tpm=None, preferred_use_virtio_transitional=None, preferred_video_type=None, preferred_virtual_gpu_options=None): + def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoattach_input_device=None, preferred_autoattach_mem_balloon=None, preferred_autoattach_pod_interface=None, preferred_autoattach_serial_console=None, preferred_block_multi_queue=None, preferred_cdrom_bus=None, preferred_disable_hotplug=None, preferred_disk_block_size=None, preferred_disk_bus=None, preferred_disk_cache=None, preferred_disk_dedicated_io_thread=None, preferred_disk_io=None, preferred_input_bus=None, preferred_input_type=None, preferred_interface_masquerade=None, preferred_interface_model=None, preferred_lun_bus=None, preferred_network_interface_multi_queue=None, preferred_panic_device_model=None, preferred_rng=None, preferred_sound_model=None, preferred_tpm=None, preferred_use_virtio_transitional=None, preferred_virtual_gpu_options=None): """ V1beta1DevicePreferences - a model defined in Swagger """ @@ -117,7 +115,6 @@ def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoatta self._preferred_sound_model = None self._preferred_tpm = None self._preferred_use_virtio_transitional = None - self._preferred_video_type = None self._preferred_virtual_gpu_options = None if preferred_autoattach_graphics_device is not None: @@ -168,8 +165,6 @@ def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoatta self.preferred_tpm = preferred_tpm if preferred_use_virtio_transitional is not None: self.preferred_use_virtio_transitional = preferred_use_virtio_transitional - if preferred_video_type is not None: - self.preferred_video_type = preferred_video_type if preferred_virtual_gpu_options is not None: self.preferred_virtual_gpu_options = preferred_virtual_gpu_options @@ -725,29 +720,6 @@ def preferred_use_virtio_transitional(self, preferred_use_virtio_transitional): self._preferred_use_virtio_transitional = preferred_use_virtio_transitional - @property - def preferred_video_type(self): - """ - Gets the preferred_video_type of this V1beta1DevicePreferences. - PreferredVideoType optionally defines the preferred type for Video devices. - - :return: The preferred_video_type of this V1beta1DevicePreferences. - :rtype: str - """ - return self._preferred_video_type - - @preferred_video_type.setter - def preferred_video_type(self, preferred_video_type): - """ - Sets the preferred_video_type of this V1beta1DevicePreferences. - PreferredVideoType optionally defines the preferred type for Video devices. - - :param preferred_video_type: The preferred_video_type of this V1beta1DevicePreferences. - :type: str - """ - - self._preferred_video_type = preferred_video_type - @property def preferred_virtual_gpu_options(self): """ diff --git a/setup.py b/setup.py index eefd56e5..42f87b99 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.8.0-beta.0-370-g045e1b5636" +VERSION = "v1.8.0-beta.0-362-gf84d1d7282" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 15e663ab..89f371ab 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.8.0-beta.0-370-g045e1b5636" +"packageVersion": "v1.8.0-beta.0-362-gf84d1d7282" } From 2fc04a49264f1602dae4f04656f47988c1a38079 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Sat, 28 Feb 2026 03:41:03 +0000 Subject: [PATCH 516/521] Client Python update by KubeVirt Prow build 2027586718684680192 --- README.md | 2 +- docs/V1beta1DevicePreferences.md | 1 + git_push.sh | 2 +- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1beta1_device_preferences.py | 30 ++++++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 05406be2..563bbdd7 100644 --- a/README.md +++ b/README.md @@ -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.8.0-beta.0-362-gf84d1d7282 +- Package version: v1.8.0-beta.0-372-g75af9bcd0f - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1beta1DevicePreferences.md b/docs/V1beta1DevicePreferences.md index a7e8720b..59d5fb77 100644 --- a/docs/V1beta1DevicePreferences.md +++ b/docs/V1beta1DevicePreferences.md @@ -27,6 +27,7 @@ Name | Type | Description | Notes **preferred_sound_model** | **str** | PreferredSoundModel optionally defines the preferred model for Sound devices. | [optional] **preferred_tpm** | [**V1TPMDevice**](V1TPMDevice.md) | PreferredTPM optionally defines the preferred TPM device to be used. | [optional] **preferred_use_virtio_transitional** | **bool** | PreferredUseVirtioTransitional optionally defines the preferred value of UseVirtioTransitional | [optional] +**preferred_video_type** | **str** | PreferredVideoType optionally defines the preferred type for Video devices. | [optional] **preferred_virtual_gpu_options** | [**V1VGPUOptions**](V1VGPUOptions.md) | PreferredVirtualGPUOptions optionally defines the preferred value of VirtualGPUOptions | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index d727c1eb..bbd6e59a 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.8.0-beta.0-362-gf84d1d7282" + release_note="Auto-generated client v1.8.0-beta.0-372-g75af9bcd0f" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 4a7b5e08..176d6457 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.8.0-beta.0-362-gf84d1d7282/python' + self.user_agent = 'Swagger-Codegen/v1.8.0-beta.0-372-g75af9bcd0f/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index bd617507..2ad27d18 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.8.0-beta.0-362-gf84d1d7282".\ + "SDK Package Version: v1.8.0-beta.0-372-g75af9bcd0f".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1beta1_device_preferences.py b/kubevirt/models/v1beta1_device_preferences.py index f13649f0..50375ed6 100644 --- a/kubevirt/models/v1beta1_device_preferences.py +++ b/kubevirt/models/v1beta1_device_preferences.py @@ -55,6 +55,7 @@ class V1beta1DevicePreferences(object): 'preferred_sound_model': 'str', 'preferred_tpm': 'V1TPMDevice', 'preferred_use_virtio_transitional': 'bool', + 'preferred_video_type': 'str', 'preferred_virtual_gpu_options': 'V1VGPUOptions' } @@ -83,10 +84,11 @@ class V1beta1DevicePreferences(object): 'preferred_sound_model': 'preferredSoundModel', 'preferred_tpm': 'preferredTPM', 'preferred_use_virtio_transitional': 'preferredUseVirtioTransitional', + 'preferred_video_type': 'preferredVideoType', 'preferred_virtual_gpu_options': 'preferredVirtualGPUOptions' } - def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoattach_input_device=None, preferred_autoattach_mem_balloon=None, preferred_autoattach_pod_interface=None, preferred_autoattach_serial_console=None, preferred_block_multi_queue=None, preferred_cdrom_bus=None, preferred_disable_hotplug=None, preferred_disk_block_size=None, preferred_disk_bus=None, preferred_disk_cache=None, preferred_disk_dedicated_io_thread=None, preferred_disk_io=None, preferred_input_bus=None, preferred_input_type=None, preferred_interface_masquerade=None, preferred_interface_model=None, preferred_lun_bus=None, preferred_network_interface_multi_queue=None, preferred_panic_device_model=None, preferred_rng=None, preferred_sound_model=None, preferred_tpm=None, preferred_use_virtio_transitional=None, preferred_virtual_gpu_options=None): + def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoattach_input_device=None, preferred_autoattach_mem_balloon=None, preferred_autoattach_pod_interface=None, preferred_autoattach_serial_console=None, preferred_block_multi_queue=None, preferred_cdrom_bus=None, preferred_disable_hotplug=None, preferred_disk_block_size=None, preferred_disk_bus=None, preferred_disk_cache=None, preferred_disk_dedicated_io_thread=None, preferred_disk_io=None, preferred_input_bus=None, preferred_input_type=None, preferred_interface_masquerade=None, preferred_interface_model=None, preferred_lun_bus=None, preferred_network_interface_multi_queue=None, preferred_panic_device_model=None, preferred_rng=None, preferred_sound_model=None, preferred_tpm=None, preferred_use_virtio_transitional=None, preferred_video_type=None, preferred_virtual_gpu_options=None): """ V1beta1DevicePreferences - a model defined in Swagger """ @@ -115,6 +117,7 @@ def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoatta self._preferred_sound_model = None self._preferred_tpm = None self._preferred_use_virtio_transitional = None + self._preferred_video_type = None self._preferred_virtual_gpu_options = None if preferred_autoattach_graphics_device is not None: @@ -165,6 +168,8 @@ def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoatta self.preferred_tpm = preferred_tpm if preferred_use_virtio_transitional is not None: self.preferred_use_virtio_transitional = preferred_use_virtio_transitional + if preferred_video_type is not None: + self.preferred_video_type = preferred_video_type if preferred_virtual_gpu_options is not None: self.preferred_virtual_gpu_options = preferred_virtual_gpu_options @@ -720,6 +725,29 @@ def preferred_use_virtio_transitional(self, preferred_use_virtio_transitional): self._preferred_use_virtio_transitional = preferred_use_virtio_transitional + @property + def preferred_video_type(self): + """ + Gets the preferred_video_type of this V1beta1DevicePreferences. + PreferredVideoType optionally defines the preferred type for Video devices. + + :return: The preferred_video_type of this V1beta1DevicePreferences. + :rtype: str + """ + return self._preferred_video_type + + @preferred_video_type.setter + def preferred_video_type(self, preferred_video_type): + """ + Sets the preferred_video_type of this V1beta1DevicePreferences. + PreferredVideoType optionally defines the preferred type for Video devices. + + :param preferred_video_type: The preferred_video_type of this V1beta1DevicePreferences. + :type: str + """ + + self._preferred_video_type = preferred_video_type + @property def preferred_virtual_gpu_options(self): """ diff --git a/setup.py b/setup.py index 42f87b99..c7ad6e5a 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.8.0-beta.0-362-gf84d1d7282" +VERSION = "v1.8.0-beta.0-372-g75af9bcd0f" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 89f371ab..1d02a7d8 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.8.0-beta.0-362-gf84d1d7282" +"packageVersion": "v1.8.0-beta.0-372-g75af9bcd0f" } From a1896a954608be66332cc5832b463c1f8584e6e3 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Sun, 1 Mar 2026 05:50:12 +0000 Subject: [PATCH 517/521] Client Python update by KubeVirt Prow build 2027979838131802112 --- README.md | 2 +- docs/V1KubeVirtConfiguration.md | 1 + docs/V1MemoryStatus.md | 1 + .../V1VirtualMachineInstanceMigrationState.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 18 ++++++++++ kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_kube_virt_configuration.py | 30 +++++++++++++++- kubevirt/models/v1_memory_status.py | 34 +++++++++++++++++-- ...irtual_machine_instance_migration_state.py | 30 +++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 13 files changed, 116 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 563bbdd7..b6cb0910 100644 --- a/README.md +++ b/README.md @@ -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.8.0-beta.0-372-g75af9bcd0f +- Package version: v1.8.0-beta.0-384-g11763f7f56 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index ef4410a7..f4c00059 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **obsolete_cpu_models** | **dict(str, bool)** | | [optional] **ovmf_path** | **str** | Deprecated. Use architectureConfiguration instead. | [optional] **permitted_host_devices** | [**V1PermittedHostDevices**](V1PermittedHostDevices.md) | | [optional] +**role_aggregation_strategy** | **str** | RoleAggregationStrategy controls whether RBAC cluster roles should be aggregated to the default Kubernetes roles (admin, edit, view). When set to \"AggregateToDefault\" (default) or not specified, the aggregate-to-* labels are added to the cluster roles. When set to \"Manual\", the labels are not added, and roles will not be aggregated to the default roles. Setting this field to \"Manual\" requires the OptOutRoleAggregation feature gate to be enabled. This is an Alpha feature and subject to change. | [optional] **seccomp_configuration** | [**V1SeccompConfiguration**](V1SeccompConfiguration.md) | | [optional] **selinux_launcher_type** | **str** | | [optional] **smbios** | [**V1SMBiosConfiguration**](V1SMBiosConfiguration.md) | | [optional] diff --git a/docs/V1MemoryStatus.md b/docs/V1MemoryStatus.md index 897ef6ee..99c9687b 100644 --- a/docs/V1MemoryStatus.md +++ b/docs/V1MemoryStatus.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **guest_at_boot** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | GuestAtBoot specifies with how much memory the VirtualMachine intiallly booted with. | [optional] **guest_current** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | GuestCurrent specifies how much memory is currently available for the VirtualMachine. | [optional] **guest_requested** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | GuestRequested specifies how much memory was requested (hotplug) for the VirtualMachine. | [optional] +**memory_overhead** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | MemoryOverhead specifies the memory overhead added by the virtualization infrastructure for the virt-launcher pod. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceMigrationState.md b/docs/V1VirtualMachineInstanceMigrationState.md index 9ec8062f..ac7d8ba6 100644 --- a/docs/V1VirtualMachineInstanceMigrationState.md +++ b/docs/V1VirtualMachineInstanceMigrationState.md @@ -22,6 +22,7 @@ Name | Type | Description | Notes **target_attachment_pod_uid** | **str** | The UID of the target attachment pod for hotplug volumes | [optional] **target_cpu_set** | **list[int]** | If the VMI requires dedicated CPUs, this field will hold the dedicated CPU set on the target node | [optional] **target_direct_migration_node_ports** | **dict(str, int)** | The list of ports opened for live migration on the destination node | [optional] +**target_memory_overhead** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | TargetMemoryOverhead is the memory overhead of the target virt-launcher pod | [optional] **target_node** | **str** | The target node that the VMI is moving to | [optional] **target_node_address** | **str** | The address of the target node to use for the migration | [optional] **target_node_domain_detected** | **bool** | The Target Node has seen the Domain Start Event | [optional] diff --git a/git_push.sh b/git_push.sh index bbd6e59a..d31b9f14 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.8.0-beta.0-372-g75af9bcd0f" + release_note="Auto-generated client v1.8.0-beta.0-384-g11763f7f56" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index e8721177..6681ec63 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -1729,6 +1729,24 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_default_api.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/DefaultApi.md diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 176d6457..46b49aaa 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.8.0-beta.0-372-g75af9bcd0f/python' + self.user_agent = 'Swagger-Codegen/v1.8.0-beta.0-384-g11763f7f56/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 2ad27d18..3529cd8e 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.8.0-beta.0-372-g75af9bcd0f".\ + "SDK Package Version: v1.8.0-beta.0-384-g11763f7f56".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index ed89cbb4..57f6adb8 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -60,6 +60,7 @@ class V1KubeVirtConfiguration(object): 'obsolete_cpu_models': 'dict(str, bool)', 'ovmf_path': 'str', 'permitted_host_devices': 'V1PermittedHostDevices', + 'role_aggregation_strategy': 'str', 'seccomp_configuration': 'V1SeccompConfiguration', 'selinux_launcher_type': 'str', 'smbios': 'V1SMBiosConfiguration', @@ -104,6 +105,7 @@ class V1KubeVirtConfiguration(object): 'obsolete_cpu_models': 'obsoleteCPUModels', 'ovmf_path': 'ovmfPath', 'permitted_host_devices': 'permittedHostDevices', + 'role_aggregation_strategy': 'roleAggregationStrategy', 'seccomp_configuration': 'seccompConfiguration', 'selinux_launcher_type': 'selinuxLauncherType', 'smbios': 'smbios', @@ -118,7 +120,7 @@ class V1KubeVirtConfiguration(object): 'webhook_configuration': 'webhookConfiguration' } - def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, auto_cpu_limit_namespace_label_selector=None, changed_block_tracking_label_selectors=None, common_instancetypes_deployment=None, confidential_compute=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, hypervisors=None, image_pull_policy=None, instancetype=None, ksm_configuration=None, live_update_configuration=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virt_template_deployment=None, virtual_machine_instances_per_node=None, virtual_machine_options=None, vm_rollout_strategy=None, vm_state_storage_class=None, webhook_configuration=None): + def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, auto_cpu_limit_namespace_label_selector=None, changed_block_tracking_label_selectors=None, common_instancetypes_deployment=None, confidential_compute=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, hypervisors=None, image_pull_policy=None, instancetype=None, ksm_configuration=None, live_update_configuration=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, role_aggregation_strategy=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virt_template_deployment=None, virtual_machine_instances_per_node=None, virtual_machine_options=None, vm_rollout_strategy=None, vm_state_storage_class=None, webhook_configuration=None): """ V1KubeVirtConfiguration - a model defined in Swagger """ @@ -152,6 +154,7 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self._obsolete_cpu_models = None self._ovmf_path = None self._permitted_host_devices = None + self._role_aggregation_strategy = None self._seccomp_configuration = None self._selinux_launcher_type = None self._smbios = None @@ -223,6 +226,8 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self.ovmf_path = ovmf_path if permitted_host_devices is not None: self.permitted_host_devices = permitted_host_devices + if role_aggregation_strategy is not None: + self.role_aggregation_strategy = role_aggregation_strategy if seccomp_configuration is not None: self.seccomp_configuration = seccomp_configuration if selinux_launcher_type is not None: @@ -893,6 +898,29 @@ def permitted_host_devices(self, permitted_host_devices): self._permitted_host_devices = permitted_host_devices + @property + def role_aggregation_strategy(self): + """ + Gets the role_aggregation_strategy of this V1KubeVirtConfiguration. + RoleAggregationStrategy controls whether RBAC cluster roles should be aggregated to the default Kubernetes roles (admin, edit, view). When set to \"AggregateToDefault\" (default) or not specified, the aggregate-to-* labels are added to the cluster roles. When set to \"Manual\", the labels are not added, and roles will not be aggregated to the default roles. Setting this field to \"Manual\" requires the OptOutRoleAggregation feature gate to be enabled. This is an Alpha feature and subject to change. + + :return: The role_aggregation_strategy of this V1KubeVirtConfiguration. + :rtype: str + """ + return self._role_aggregation_strategy + + @role_aggregation_strategy.setter + def role_aggregation_strategy(self, role_aggregation_strategy): + """ + Sets the role_aggregation_strategy of this V1KubeVirtConfiguration. + RoleAggregationStrategy controls whether RBAC cluster roles should be aggregated to the default Kubernetes roles (admin, edit, view). When set to \"AggregateToDefault\" (default) or not specified, the aggregate-to-* labels are added to the cluster roles. When set to \"Manual\", the labels are not added, and roles will not be aggregated to the default roles. Setting this field to \"Manual\" requires the OptOutRoleAggregation feature gate to be enabled. This is an Alpha feature and subject to change. + + :param role_aggregation_strategy: The role_aggregation_strategy of this V1KubeVirtConfiguration. + :type: str + """ + + self._role_aggregation_strategy = role_aggregation_strategy + @property def seccomp_configuration(self): """ diff --git a/kubevirt/models/v1_memory_status.py b/kubevirt/models/v1_memory_status.py index a5cd6876..da36c34f 100644 --- a/kubevirt/models/v1_memory_status.py +++ b/kubevirt/models/v1_memory_status.py @@ -33,16 +33,18 @@ class V1MemoryStatus(object): swagger_types = { 'guest_at_boot': 'K8sIoApimachineryPkgApiResourceQuantity', 'guest_current': 'K8sIoApimachineryPkgApiResourceQuantity', - 'guest_requested': 'K8sIoApimachineryPkgApiResourceQuantity' + 'guest_requested': 'K8sIoApimachineryPkgApiResourceQuantity', + 'memory_overhead': 'K8sIoApimachineryPkgApiResourceQuantity' } attribute_map = { 'guest_at_boot': 'guestAtBoot', 'guest_current': 'guestCurrent', - 'guest_requested': 'guestRequested' + 'guest_requested': 'guestRequested', + 'memory_overhead': 'memoryOverhead' } - def __init__(self, guest_at_boot=None, guest_current=None, guest_requested=None): + def __init__(self, guest_at_boot=None, guest_current=None, guest_requested=None, memory_overhead=None): """ V1MemoryStatus - a model defined in Swagger """ @@ -50,6 +52,7 @@ def __init__(self, guest_at_boot=None, guest_current=None, guest_requested=None) self._guest_at_boot = None self._guest_current = None self._guest_requested = None + self._memory_overhead = None if guest_at_boot is not None: self.guest_at_boot = guest_at_boot @@ -57,6 +60,8 @@ def __init__(self, guest_at_boot=None, guest_current=None, guest_requested=None) self.guest_current = guest_current if guest_requested is not None: self.guest_requested = guest_requested + if memory_overhead is not None: + self.memory_overhead = memory_overhead @property def guest_at_boot(self): @@ -127,6 +132,29 @@ def guest_requested(self, guest_requested): self._guest_requested = guest_requested + @property + def memory_overhead(self): + """ + Gets the memory_overhead of this V1MemoryStatus. + MemoryOverhead specifies the memory overhead added by the virtualization infrastructure for the virt-launcher pod. + + :return: The memory_overhead of this V1MemoryStatus. + :rtype: K8sIoApimachineryPkgApiResourceQuantity + """ + return self._memory_overhead + + @memory_overhead.setter + def memory_overhead(self, memory_overhead): + """ + Sets the memory_overhead of this V1MemoryStatus. + MemoryOverhead specifies the memory overhead added by the virtualization infrastructure for the virt-launcher pod. + + :param memory_overhead: The memory_overhead of this V1MemoryStatus. + :type: K8sIoApimachineryPkgApiResourceQuantity + """ + + self._memory_overhead = memory_overhead + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_state.py b/kubevirt/models/v1_virtual_machine_instance_migration_state.py index 9401bddc..49cce1c1 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_state.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_state.py @@ -50,6 +50,7 @@ class V1VirtualMachineInstanceMigrationState(object): 'target_attachment_pod_uid': 'str', 'target_cpu_set': 'list[int]', 'target_direct_migration_node_ports': 'dict(str, int)', + 'target_memory_overhead': 'K8sIoApimachineryPkgApiResourceQuantity', 'target_node': 'str', 'target_node_address': 'str', 'target_node_domain_detected': 'bool', @@ -80,6 +81,7 @@ class V1VirtualMachineInstanceMigrationState(object): 'target_attachment_pod_uid': 'targetAttachmentPodUID', 'target_cpu_set': 'targetCPUSet', 'target_direct_migration_node_ports': 'targetDirectMigrationNodePorts', + 'target_memory_overhead': 'targetMemoryOverhead', 'target_node': 'targetNode', 'target_node_address': 'targetNodeAddress', 'target_node_domain_detected': 'targetNodeDomainDetected', @@ -90,7 +92,7 @@ class V1VirtualMachineInstanceMigrationState(object): 'target_state': 'targetState' } - def __init__(self, abort_requested=None, abort_status=None, completed=None, end_timestamp=None, failed=None, failure_reason=None, migration_configuration=None, migration_network_type=None, migration_policy_name=None, migration_uid=None, mode=None, source_node=None, source_persistent_state_pvc_name=None, source_pod=None, source_state=None, start_timestamp=None, target_attachment_pod_uid=None, target_cpu_set=None, target_direct_migration_node_ports=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_node_domain_ready_timestamp=None, target_node_topology=None, target_persistent_state_pvc_name=None, target_pod=None, target_state=None): + def __init__(self, abort_requested=None, abort_status=None, completed=None, end_timestamp=None, failed=None, failure_reason=None, migration_configuration=None, migration_network_type=None, migration_policy_name=None, migration_uid=None, mode=None, source_node=None, source_persistent_state_pvc_name=None, source_pod=None, source_state=None, start_timestamp=None, target_attachment_pod_uid=None, target_cpu_set=None, target_direct_migration_node_ports=None, target_memory_overhead=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_node_domain_ready_timestamp=None, target_node_topology=None, target_persistent_state_pvc_name=None, target_pod=None, target_state=None): """ V1VirtualMachineInstanceMigrationState - a model defined in Swagger """ @@ -114,6 +116,7 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self._target_attachment_pod_uid = None self._target_cpu_set = None self._target_direct_migration_node_ports = None + self._target_memory_overhead = None self._target_node = None self._target_node_address = None self._target_node_domain_detected = None @@ -161,6 +164,8 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self.target_cpu_set = target_cpu_set if target_direct_migration_node_ports is not None: self.target_direct_migration_node_ports = target_direct_migration_node_ports + if target_memory_overhead is not None: + self.target_memory_overhead = target_memory_overhead if target_node is not None: self.target_node = target_node if target_node_address is not None: @@ -613,6 +618,29 @@ def target_direct_migration_node_ports(self, target_direct_migration_node_ports) self._target_direct_migration_node_ports = target_direct_migration_node_ports + @property + def target_memory_overhead(self): + """ + Gets the target_memory_overhead of this V1VirtualMachineInstanceMigrationState. + TargetMemoryOverhead is the memory overhead of the target virt-launcher pod + + :return: The target_memory_overhead of this V1VirtualMachineInstanceMigrationState. + :rtype: K8sIoApimachineryPkgApiResourceQuantity + """ + return self._target_memory_overhead + + @target_memory_overhead.setter + def target_memory_overhead(self, target_memory_overhead): + """ + Sets the target_memory_overhead of this V1VirtualMachineInstanceMigrationState. + TargetMemoryOverhead is the memory overhead of the target virt-launcher pod + + :param target_memory_overhead: The target_memory_overhead of this V1VirtualMachineInstanceMigrationState. + :type: K8sIoApimachineryPkgApiResourceQuantity + """ + + self._target_memory_overhead = target_memory_overhead + @property def target_node(self): """ diff --git a/setup.py b/setup.py index c7ad6e5a..2d5d3102 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.8.0-beta.0-372-g75af9bcd0f" +VERSION = "v1.8.0-beta.0-384-g11763f7f56" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 1d02a7d8..ac78a69f 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.8.0-beta.0-372-g75af9bcd0f" +"packageVersion": "v1.8.0-beta.0-384-g11763f7f56" } From 6830800411b88a646e3a26b65e9ffe5ef70e1a02 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Sun, 1 Mar 2026 05:50:22 +0000 Subject: [PATCH 518/521] Client Python update by KubeVirt Prow build 2027979806410280960 --- README.md | 2 +- docs/V1MemoryStatus.md | 1 - .../V1VirtualMachineInstanceMigrationState.md | 1 - git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 18 ---------- kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_memory_status.py | 34 ++----------------- ...irtual_machine_instance_migration_state.py | 30 +--------------- setup.py | 2 +- swagger-codegen-config.json | 2 +- 11 files changed, 10 insertions(+), 86 deletions(-) diff --git a/README.md b/README.md index b6cb0910..f72ceb52 100644 --- a/README.md +++ b/README.md @@ -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.8.0-beta.0-384-g11763f7f56 +- Package version: v1.8.0-beta.0-377-gcfa3358c48 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1MemoryStatus.md b/docs/V1MemoryStatus.md index 99c9687b..897ef6ee 100644 --- a/docs/V1MemoryStatus.md +++ b/docs/V1MemoryStatus.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes **guest_at_boot** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | GuestAtBoot specifies with how much memory the VirtualMachine intiallly booted with. | [optional] **guest_current** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | GuestCurrent specifies how much memory is currently available for the VirtualMachine. | [optional] **guest_requested** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | GuestRequested specifies how much memory was requested (hotplug) for the VirtualMachine. | [optional] -**memory_overhead** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | MemoryOverhead specifies the memory overhead added by the virtualization infrastructure for the virt-launcher pod. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceMigrationState.md b/docs/V1VirtualMachineInstanceMigrationState.md index ac7d8ba6..9ec8062f 100644 --- a/docs/V1VirtualMachineInstanceMigrationState.md +++ b/docs/V1VirtualMachineInstanceMigrationState.md @@ -22,7 +22,6 @@ Name | Type | Description | Notes **target_attachment_pod_uid** | **str** | The UID of the target attachment pod for hotplug volumes | [optional] **target_cpu_set** | **list[int]** | If the VMI requires dedicated CPUs, this field will hold the dedicated CPU set on the target node | [optional] **target_direct_migration_node_ports** | **dict(str, int)** | The list of ports opened for live migration on the destination node | [optional] -**target_memory_overhead** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | TargetMemoryOverhead is the memory overhead of the target virt-launcher pod | [optional] **target_node** | **str** | The target node that the VMI is moving to | [optional] **target_node_address** | **str** | The address of the target node to use for the migration | [optional] **target_node_domain_detected** | **bool** | The Target Node has seen the Domain Start Event | [optional] diff --git a/git_push.sh b/git_push.sh index d31b9f14..b599a959 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.8.0-beta.0-384-g11763f7f56" + release_note="Auto-generated client v1.8.0-beta.0-377-gcfa3358c48" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 6681ec63..e8721177 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -1729,24 +1729,6 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. -[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_default_api.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/DefaultApi.md diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 46b49aaa..0ae54905 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.8.0-beta.0-384-g11763f7f56/python' + self.user_agent = 'Swagger-Codegen/v1.8.0-beta.0-377-gcfa3358c48/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 3529cd8e..3d4404e8 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.8.0-beta.0-384-g11763f7f56".\ + "SDK Package Version: v1.8.0-beta.0-377-gcfa3358c48".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_memory_status.py b/kubevirt/models/v1_memory_status.py index da36c34f..a5cd6876 100644 --- a/kubevirt/models/v1_memory_status.py +++ b/kubevirt/models/v1_memory_status.py @@ -33,18 +33,16 @@ class V1MemoryStatus(object): swagger_types = { 'guest_at_boot': 'K8sIoApimachineryPkgApiResourceQuantity', 'guest_current': 'K8sIoApimachineryPkgApiResourceQuantity', - 'guest_requested': 'K8sIoApimachineryPkgApiResourceQuantity', - 'memory_overhead': 'K8sIoApimachineryPkgApiResourceQuantity' + 'guest_requested': 'K8sIoApimachineryPkgApiResourceQuantity' } attribute_map = { 'guest_at_boot': 'guestAtBoot', 'guest_current': 'guestCurrent', - 'guest_requested': 'guestRequested', - 'memory_overhead': 'memoryOverhead' + 'guest_requested': 'guestRequested' } - def __init__(self, guest_at_boot=None, guest_current=None, guest_requested=None, memory_overhead=None): + def __init__(self, guest_at_boot=None, guest_current=None, guest_requested=None): """ V1MemoryStatus - a model defined in Swagger """ @@ -52,7 +50,6 @@ def __init__(self, guest_at_boot=None, guest_current=None, guest_requested=None, self._guest_at_boot = None self._guest_current = None self._guest_requested = None - self._memory_overhead = None if guest_at_boot is not None: self.guest_at_boot = guest_at_boot @@ -60,8 +57,6 @@ def __init__(self, guest_at_boot=None, guest_current=None, guest_requested=None, self.guest_current = guest_current if guest_requested is not None: self.guest_requested = guest_requested - if memory_overhead is not None: - self.memory_overhead = memory_overhead @property def guest_at_boot(self): @@ -132,29 +127,6 @@ def guest_requested(self, guest_requested): self._guest_requested = guest_requested - @property - def memory_overhead(self): - """ - Gets the memory_overhead of this V1MemoryStatus. - MemoryOverhead specifies the memory overhead added by the virtualization infrastructure for the virt-launcher pod. - - :return: The memory_overhead of this V1MemoryStatus. - :rtype: K8sIoApimachineryPkgApiResourceQuantity - """ - return self._memory_overhead - - @memory_overhead.setter - def memory_overhead(self, memory_overhead): - """ - Sets the memory_overhead of this V1MemoryStatus. - MemoryOverhead specifies the memory overhead added by the virtualization infrastructure for the virt-launcher pod. - - :param memory_overhead: The memory_overhead of this V1MemoryStatus. - :type: K8sIoApimachineryPkgApiResourceQuantity - """ - - self._memory_overhead = memory_overhead - def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_state.py b/kubevirt/models/v1_virtual_machine_instance_migration_state.py index 49cce1c1..9401bddc 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_state.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_state.py @@ -50,7 +50,6 @@ class V1VirtualMachineInstanceMigrationState(object): 'target_attachment_pod_uid': 'str', 'target_cpu_set': 'list[int]', 'target_direct_migration_node_ports': 'dict(str, int)', - 'target_memory_overhead': 'K8sIoApimachineryPkgApiResourceQuantity', 'target_node': 'str', 'target_node_address': 'str', 'target_node_domain_detected': 'bool', @@ -81,7 +80,6 @@ class V1VirtualMachineInstanceMigrationState(object): 'target_attachment_pod_uid': 'targetAttachmentPodUID', 'target_cpu_set': 'targetCPUSet', 'target_direct_migration_node_ports': 'targetDirectMigrationNodePorts', - 'target_memory_overhead': 'targetMemoryOverhead', 'target_node': 'targetNode', 'target_node_address': 'targetNodeAddress', 'target_node_domain_detected': 'targetNodeDomainDetected', @@ -92,7 +90,7 @@ class V1VirtualMachineInstanceMigrationState(object): 'target_state': 'targetState' } - def __init__(self, abort_requested=None, abort_status=None, completed=None, end_timestamp=None, failed=None, failure_reason=None, migration_configuration=None, migration_network_type=None, migration_policy_name=None, migration_uid=None, mode=None, source_node=None, source_persistent_state_pvc_name=None, source_pod=None, source_state=None, start_timestamp=None, target_attachment_pod_uid=None, target_cpu_set=None, target_direct_migration_node_ports=None, target_memory_overhead=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_node_domain_ready_timestamp=None, target_node_topology=None, target_persistent_state_pvc_name=None, target_pod=None, target_state=None): + def __init__(self, abort_requested=None, abort_status=None, completed=None, end_timestamp=None, failed=None, failure_reason=None, migration_configuration=None, migration_network_type=None, migration_policy_name=None, migration_uid=None, mode=None, source_node=None, source_persistent_state_pvc_name=None, source_pod=None, source_state=None, start_timestamp=None, target_attachment_pod_uid=None, target_cpu_set=None, target_direct_migration_node_ports=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_node_domain_ready_timestamp=None, target_node_topology=None, target_persistent_state_pvc_name=None, target_pod=None, target_state=None): """ V1VirtualMachineInstanceMigrationState - a model defined in Swagger """ @@ -116,7 +114,6 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self._target_attachment_pod_uid = None self._target_cpu_set = None self._target_direct_migration_node_ports = None - self._target_memory_overhead = None self._target_node = None self._target_node_address = None self._target_node_domain_detected = None @@ -164,8 +161,6 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self.target_cpu_set = target_cpu_set if target_direct_migration_node_ports is not None: self.target_direct_migration_node_ports = target_direct_migration_node_ports - if target_memory_overhead is not None: - self.target_memory_overhead = target_memory_overhead if target_node is not None: self.target_node = target_node if target_node_address is not None: @@ -618,29 +613,6 @@ def target_direct_migration_node_ports(self, target_direct_migration_node_ports) self._target_direct_migration_node_ports = target_direct_migration_node_ports - @property - def target_memory_overhead(self): - """ - Gets the target_memory_overhead of this V1VirtualMachineInstanceMigrationState. - TargetMemoryOverhead is the memory overhead of the target virt-launcher pod - - :return: The target_memory_overhead of this V1VirtualMachineInstanceMigrationState. - :rtype: K8sIoApimachineryPkgApiResourceQuantity - """ - return self._target_memory_overhead - - @target_memory_overhead.setter - def target_memory_overhead(self, target_memory_overhead): - """ - Sets the target_memory_overhead of this V1VirtualMachineInstanceMigrationState. - TargetMemoryOverhead is the memory overhead of the target virt-launcher pod - - :param target_memory_overhead: The target_memory_overhead of this V1VirtualMachineInstanceMigrationState. - :type: K8sIoApimachineryPkgApiResourceQuantity - """ - - self._target_memory_overhead = target_memory_overhead - @property def target_node(self): """ diff --git a/setup.py b/setup.py index 2d5d3102..25b7e655 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.8.0-beta.0-384-g11763f7f56" +VERSION = "v1.8.0-beta.0-377-gcfa3358c48" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index ac78a69f..246384fd 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.8.0-beta.0-384-g11763f7f56" +"packageVersion": "v1.8.0-beta.0-377-gcfa3358c48" } From 0f607ce10ef25794ba969c0b14ab141ac9373544 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Tue, 3 Mar 2026 03:35:49 +0000 Subject: [PATCH 519/521] Client Python update by KubeVirt Prow build 2028667855964213248 --- README.md | 2 +- docs/V1MemoryStatus.md | 1 + .../V1VirtualMachineInstanceMigrationState.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 18 ++++++++++ kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/v1_memory_status.py | 34 +++++++++++++++++-- ...irtual_machine_instance_migration_state.py | 30 +++++++++++++++- setup.py | 2 +- swagger-codegen-config.json | 2 +- 11 files changed, 86 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index f72ceb52..3af376ea 100644 --- a/README.md +++ b/README.md @@ -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.8.0-beta.0-377-gcfa3358c48 +- Package version: v1.8.0-beta.0-394-g0c896253ae - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) diff --git a/docs/V1MemoryStatus.md b/docs/V1MemoryStatus.md index 897ef6ee..99c9687b 100644 --- a/docs/V1MemoryStatus.md +++ b/docs/V1MemoryStatus.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **guest_at_boot** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | GuestAtBoot specifies with how much memory the VirtualMachine intiallly booted with. | [optional] **guest_current** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | GuestCurrent specifies how much memory is currently available for the VirtualMachine. | [optional] **guest_requested** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | GuestRequested specifies how much memory was requested (hotplug) for the VirtualMachine. | [optional] +**memory_overhead** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | MemoryOverhead specifies the memory overhead added by the virtualization infrastructure for the virt-launcher pod. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceMigrationState.md b/docs/V1VirtualMachineInstanceMigrationState.md index 9ec8062f..ac7d8ba6 100644 --- a/docs/V1VirtualMachineInstanceMigrationState.md +++ b/docs/V1VirtualMachineInstanceMigrationState.md @@ -22,6 +22,7 @@ Name | Type | Description | Notes **target_attachment_pod_uid** | **str** | The UID of the target attachment pod for hotplug volumes | [optional] **target_cpu_set** | **list[int]** | If the VMI requires dedicated CPUs, this field will hold the dedicated CPU set on the target node | [optional] **target_direct_migration_node_ports** | **dict(str, int)** | The list of ports opened for live migration on the destination node | [optional] +**target_memory_overhead** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | TargetMemoryOverhead is the memory overhead of the target virt-launcher pod | [optional] **target_node** | **str** | The target node that the VMI is moving to | [optional] **target_node_address** | **str** | The address of the target node to use for the migration | [optional] **target_node_domain_detected** | **bool** | The Target Node has seen the Domain Start Event | [optional] diff --git a/git_push.sh b/git_push.sh index b599a959..75f5e5ef 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.8.0-beta.0-377-gcfa3358c48" + release_note="Auto-generated client v1.8.0-beta.0-394-g0c896253ae" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index e8721177..6681ec63 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -1729,6 +1729,24 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_default_api.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/DefaultApi.md diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 0ae54905..95ae7822 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.8.0-beta.0-377-gcfa3358c48/python' + self.user_agent = 'Swagger-Codegen/v1.8.0-beta.0-394-g0c896253ae/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 3d4404e8..389d67bf 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.8.0-beta.0-377-gcfa3358c48".\ + "SDK Package Version: v1.8.0-beta.0-394-g0c896253ae".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/v1_memory_status.py b/kubevirt/models/v1_memory_status.py index a5cd6876..da36c34f 100644 --- a/kubevirt/models/v1_memory_status.py +++ b/kubevirt/models/v1_memory_status.py @@ -33,16 +33,18 @@ class V1MemoryStatus(object): swagger_types = { 'guest_at_boot': 'K8sIoApimachineryPkgApiResourceQuantity', 'guest_current': 'K8sIoApimachineryPkgApiResourceQuantity', - 'guest_requested': 'K8sIoApimachineryPkgApiResourceQuantity' + 'guest_requested': 'K8sIoApimachineryPkgApiResourceQuantity', + 'memory_overhead': 'K8sIoApimachineryPkgApiResourceQuantity' } attribute_map = { 'guest_at_boot': 'guestAtBoot', 'guest_current': 'guestCurrent', - 'guest_requested': 'guestRequested' + 'guest_requested': 'guestRequested', + 'memory_overhead': 'memoryOverhead' } - def __init__(self, guest_at_boot=None, guest_current=None, guest_requested=None): + def __init__(self, guest_at_boot=None, guest_current=None, guest_requested=None, memory_overhead=None): """ V1MemoryStatus - a model defined in Swagger """ @@ -50,6 +52,7 @@ def __init__(self, guest_at_boot=None, guest_current=None, guest_requested=None) self._guest_at_boot = None self._guest_current = None self._guest_requested = None + self._memory_overhead = None if guest_at_boot is not None: self.guest_at_boot = guest_at_boot @@ -57,6 +60,8 @@ def __init__(self, guest_at_boot=None, guest_current=None, guest_requested=None) self.guest_current = guest_current if guest_requested is not None: self.guest_requested = guest_requested + if memory_overhead is not None: + self.memory_overhead = memory_overhead @property def guest_at_boot(self): @@ -127,6 +132,29 @@ def guest_requested(self, guest_requested): self._guest_requested = guest_requested + @property + def memory_overhead(self): + """ + Gets the memory_overhead of this V1MemoryStatus. + MemoryOverhead specifies the memory overhead added by the virtualization infrastructure for the virt-launcher pod. + + :return: The memory_overhead of this V1MemoryStatus. + :rtype: K8sIoApimachineryPkgApiResourceQuantity + """ + return self._memory_overhead + + @memory_overhead.setter + def memory_overhead(self, memory_overhead): + """ + Sets the memory_overhead of this V1MemoryStatus. + MemoryOverhead specifies the memory overhead added by the virtualization infrastructure for the virt-launcher pod. + + :param memory_overhead: The memory_overhead of this V1MemoryStatus. + :type: K8sIoApimachineryPkgApiResourceQuantity + """ + + self._memory_overhead = memory_overhead + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_state.py b/kubevirt/models/v1_virtual_machine_instance_migration_state.py index 9401bddc..49cce1c1 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_state.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_state.py @@ -50,6 +50,7 @@ class V1VirtualMachineInstanceMigrationState(object): 'target_attachment_pod_uid': 'str', 'target_cpu_set': 'list[int]', 'target_direct_migration_node_ports': 'dict(str, int)', + 'target_memory_overhead': 'K8sIoApimachineryPkgApiResourceQuantity', 'target_node': 'str', 'target_node_address': 'str', 'target_node_domain_detected': 'bool', @@ -80,6 +81,7 @@ class V1VirtualMachineInstanceMigrationState(object): 'target_attachment_pod_uid': 'targetAttachmentPodUID', 'target_cpu_set': 'targetCPUSet', 'target_direct_migration_node_ports': 'targetDirectMigrationNodePorts', + 'target_memory_overhead': 'targetMemoryOverhead', 'target_node': 'targetNode', 'target_node_address': 'targetNodeAddress', 'target_node_domain_detected': 'targetNodeDomainDetected', @@ -90,7 +92,7 @@ class V1VirtualMachineInstanceMigrationState(object): 'target_state': 'targetState' } - def __init__(self, abort_requested=None, abort_status=None, completed=None, end_timestamp=None, failed=None, failure_reason=None, migration_configuration=None, migration_network_type=None, migration_policy_name=None, migration_uid=None, mode=None, source_node=None, source_persistent_state_pvc_name=None, source_pod=None, source_state=None, start_timestamp=None, target_attachment_pod_uid=None, target_cpu_set=None, target_direct_migration_node_ports=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_node_domain_ready_timestamp=None, target_node_topology=None, target_persistent_state_pvc_name=None, target_pod=None, target_state=None): + def __init__(self, abort_requested=None, abort_status=None, completed=None, end_timestamp=None, failed=None, failure_reason=None, migration_configuration=None, migration_network_type=None, migration_policy_name=None, migration_uid=None, mode=None, source_node=None, source_persistent_state_pvc_name=None, source_pod=None, source_state=None, start_timestamp=None, target_attachment_pod_uid=None, target_cpu_set=None, target_direct_migration_node_ports=None, target_memory_overhead=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_node_domain_ready_timestamp=None, target_node_topology=None, target_persistent_state_pvc_name=None, target_pod=None, target_state=None): """ V1VirtualMachineInstanceMigrationState - a model defined in Swagger """ @@ -114,6 +116,7 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self._target_attachment_pod_uid = None self._target_cpu_set = None self._target_direct_migration_node_ports = None + self._target_memory_overhead = None self._target_node = None self._target_node_address = None self._target_node_domain_detected = None @@ -161,6 +164,8 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self.target_cpu_set = target_cpu_set if target_direct_migration_node_ports is not None: self.target_direct_migration_node_ports = target_direct_migration_node_ports + if target_memory_overhead is not None: + self.target_memory_overhead = target_memory_overhead if target_node is not None: self.target_node = target_node if target_node_address is not None: @@ -613,6 +618,29 @@ def target_direct_migration_node_ports(self, target_direct_migration_node_ports) self._target_direct_migration_node_ports = target_direct_migration_node_ports + @property + def target_memory_overhead(self): + """ + Gets the target_memory_overhead of this V1VirtualMachineInstanceMigrationState. + TargetMemoryOverhead is the memory overhead of the target virt-launcher pod + + :return: The target_memory_overhead of this V1VirtualMachineInstanceMigrationState. + :rtype: K8sIoApimachineryPkgApiResourceQuantity + """ + return self._target_memory_overhead + + @target_memory_overhead.setter + def target_memory_overhead(self, target_memory_overhead): + """ + Sets the target_memory_overhead of this V1VirtualMachineInstanceMigrationState. + TargetMemoryOverhead is the memory overhead of the target virt-launcher pod + + :param target_memory_overhead: The target_memory_overhead of this V1VirtualMachineInstanceMigrationState. + :type: K8sIoApimachineryPkgApiResourceQuantity + """ + + self._target_memory_overhead = target_memory_overhead + @property def target_node(self): """ diff --git a/setup.py b/setup.py index 25b7e655..7aaf8903 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.8.0-beta.0-377-gcfa3358c48" +VERSION = "v1.8.0-beta.0-394-g0c896253ae" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 246384fd..c1ef3e41 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.8.0-beta.0-377-gcfa3358c48" +"packageVersion": "v1.8.0-beta.0-394-g0c896253ae" } From 572991483b72a5dea114bd4930c542642aa05a49 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Fri, 6 Mar 2026 08:43:05 +0000 Subject: [PATCH 520/521] Client Python update by KubeVirt Prow build 2029836056332865536 --- README.md | 4 +- docs/V1alpha1BackupOptions.md | 7 +- docs/V1alpha1BackupVolumeInfo.md | 2 + docs/V1alpha1VirtualMachineBackupSpec.md | 2 + docs/V1alpha1VirtualMachineBackupStatus.md | 1 + docs/V1beta1VirtualMachineExportBackup.md | 11 + ...beta1VirtualMachineExportBackupEndpoint.md | 11 + docs/V1beta1VirtualMachineExportLink.md | 1 + git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 6 + kubevirt/__init__.py | 2 + kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 2 + kubevirt/models/v1alpha1_backup_options.py | 188 +++++++++++++++--- .../models/v1alpha1_backup_volume_info.py | 58 +++++- .../v1alpha1_virtual_machine_backup_spec.py | 62 +++++- .../v1alpha1_virtual_machine_backup_status.py | 30 ++- .../v1beta1_virtual_machine_export_backup.py | 152 ++++++++++++++ ..._virtual_machine_export_backup_endpoint.py | 155 +++++++++++++++ .../v1beta1_virtual_machine_export_link.py | 30 ++- setup.py | 2 +- swagger-codegen-config.json | 2 +- ...t_v1beta1_virtual_machine_export_backup.py | 44 ++++ ..._virtual_machine_export_backup_endpoint.py | 44 ++++ 25 files changed, 780 insertions(+), 42 deletions(-) create mode 100644 docs/V1beta1VirtualMachineExportBackup.md create mode 100644 docs/V1beta1VirtualMachineExportBackupEndpoint.md create mode 100644 kubevirt/models/v1beta1_virtual_machine_export_backup.py create mode 100644 kubevirt/models/v1beta1_virtual_machine_export_backup_endpoint.py create mode 100644 test/test_v1beta1_virtual_machine_export_backup.py create mode 100644 test/test_v1beta1_virtual_machine_export_backup_endpoint.py diff --git a/README.md b/README.md index 3af376ea..f0990bd3 100644 --- a/README.md +++ b/README.md @@ -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.8.0-beta.0-394-g0c896253ae +- Package version: v1.8.0-beta.0-468-g6d1be65275 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -735,6 +735,8 @@ Class | Method | HTTP request | Description - [V1beta1VirtualMachineClusterPreference](docs/V1beta1VirtualMachineClusterPreference.md) - [V1beta1VirtualMachineClusterPreferenceList](docs/V1beta1VirtualMachineClusterPreferenceList.md) - [V1beta1VirtualMachineExport](docs/V1beta1VirtualMachineExport.md) + - [V1beta1VirtualMachineExportBackup](docs/V1beta1VirtualMachineExportBackup.md) + - [V1beta1VirtualMachineExportBackupEndpoint](docs/V1beta1VirtualMachineExportBackupEndpoint.md) - [V1beta1VirtualMachineExportLink](docs/V1beta1VirtualMachineExportLink.md) - [V1beta1VirtualMachineExportLinks](docs/V1beta1VirtualMachineExportLinks.md) - [V1beta1VirtualMachineExportList](docs/V1beta1VirtualMachineExportList.md) diff --git a/docs/V1alpha1BackupOptions.md b/docs/V1alpha1BackupOptions.md index fb5be2f0..2bafb7c7 100644 --- a/docs/V1alpha1BackupOptions.md +++ b/docs/V1alpha1BackupOptions.md @@ -3,13 +3,18 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**backup_cert** | **str** | | [optional] +**backup_key** | **str** | | [optional] **backup_name** | **str** | | [optional] **backup_start_time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | | [optional] +**ca_cert** | **str** | | [optional] **cmd** | **str** | | [optional] +**export_server_addr** | **str** | | [optional] +**export_server_name** | **str** | | [optional] **incremental** | **str** | | [optional] **mode** | **str** | | [optional] -**push_path** | **str** | | [optional] **skip_quiesce** | **bool** | | [optional] +**target_path** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1BackupVolumeInfo.md b/docs/V1alpha1BackupVolumeInfo.md index 897c3955..636e9cf1 100644 --- a/docs/V1alpha1BackupVolumeInfo.md +++ b/docs/V1alpha1BackupVolumeInfo.md @@ -3,7 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**data_endpoint** | **str** | DataEndpoint is the URL of the endpoint for read for pull mode | [optional] **disk_target** | **str** | DiskTarget is the disk target device name at backup time | [default to ''] +**map_endpoint** | **str** | MapEndpoint is the URL of the endpoint for map for pull mode | [optional] **volume_name** | **str** | VolumeName is the volume name from VMI spec | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineBackupSpec.md b/docs/V1alpha1VirtualMachineBackupSpec.md index aa93d53b..53531759 100644 --- a/docs/V1alpha1VirtualMachineBackupSpec.md +++ b/docs/V1alpha1VirtualMachineBackupSpec.md @@ -8,6 +8,8 @@ Name | Type | Description | Notes **pvc_name** | **str** | PvcName required in push mode. Specifies the name of the PVC where the backup output will be stored | [optional] **skip_quiesce** | **bool** | SkipQuiesce indicates whether the VM's filesystem shoule not be quiesced before the backup | [optional] **source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Source specifies the backup source - either a VirtualMachine or a VirtualMachineBackupTracker. When Kind is VirtualMachine: performs a backup of the specified VM. When Kind is VirtualMachineBackupTracker: uses the tracker to get the source VM and the base checkpoint for incremental backup. The tracker will be updated with the new checkpoint after backup completion. | +**token_secret_ref** | **str** | TokenSecretRef is the name of the secret that will be used to pull the backup from an associated endpoint | [optional] +**ttl_duration** | [**K8sIoApimachineryPkgApisMetaV1Duration**](K8sIoApimachineryPkgApisMetaV1Duration.md) | TtlDuration limits the lifetime of a pull mode backup and its export If this field is set, after this duration has passed from counting from CreationTimestamp, the backup is eligible to be automatically considered as complete. If this field is omitted, a reasonable default is applied. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachineBackupStatus.md b/docs/V1alpha1VirtualMachineBackupStatus.md index 0354f0e5..c1452118 100644 --- a/docs/V1alpha1VirtualMachineBackupStatus.md +++ b/docs/V1alpha1VirtualMachineBackupStatus.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **checkpoint_name** | **str** | CheckpointName the name of the checkpoint created for the current backup | [optional] **conditions** | [**list[V1alpha1Condition]**](V1alpha1Condition.md) | | [optional] +**endpoint_cert** | **str** | EndpointCert is the raw CACert that is to be used when connecting to an exported backup endpoint in pull mode. | [optional] **included_volumes** | [**list[V1alpha1BackupVolumeInfo]**](V1alpha1BackupVolumeInfo.md) | IncludedVolumes lists the volumes that were included in the backup | [optional] **type** | **str** | Type indicates if the backup was full or incremental | [optional] diff --git a/docs/V1beta1VirtualMachineExportBackup.md b/docs/V1beta1VirtualMachineExportBackup.md new file mode 100644 index 00000000..f26643ef --- /dev/null +++ b/docs/V1beta1VirtualMachineExportBackup.md @@ -0,0 +1,11 @@ +# V1beta1VirtualMachineExportBackup + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**endpoints** | [**list[V1beta1VirtualMachineExportBackupEndpoint]**](V1beta1VirtualMachineExportBackupEndpoint.md) | | [optional] +**name** | **str** | Name is the name of the exported volume | [default to ''] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1VirtualMachineExportBackupEndpoint.md b/docs/V1beta1VirtualMachineExportBackupEndpoint.md new file mode 100644 index 00000000..680ac271 --- /dev/null +++ b/docs/V1beta1VirtualMachineExportBackupEndpoint.md @@ -0,0 +1,11 @@ +# V1beta1VirtualMachineExportBackupEndpoint + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**endpoint** | **str** | Endpoint is the endpoint of the backup export at the specified URL | [default to ''] +**url** | **str** | Url is the url that contains the volume in the format specified | [default to ''] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1VirtualMachineExportLink.md b/docs/V1beta1VirtualMachineExportLink.md index 6b39b761..96b01438 100644 --- a/docs/V1beta1VirtualMachineExportLink.md +++ b/docs/V1beta1VirtualMachineExportLink.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**backups** | [**list[V1beta1VirtualMachineExportBackup]**](V1beta1VirtualMachineExportBackup.md) | Backups is a list of available backups for the export | [optional] **cert** | **str** | Cert is the public CA certificate base64 encoded | [default to ''] **manifests** | [**list[V1beta1VirtualMachineExportManifest]**](V1beta1VirtualMachineExportManifest.md) | Manifests is a list of available manifests for the export | [optional] **volumes** | [**list[V1beta1VirtualMachineExportVolume]**](V1beta1VirtualMachineExportVolume.md) | Volumes is a list of available volumes to export | [optional] diff --git a/git_push.sh b/git_push.sh index 75f5e5ef..403cc2e1 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.8.0-beta.0-394-g0c896253ae" + release_note="Auto-generated client v1.8.0-beta.0-468-g6d1be65275" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 6681ec63..7b37c102 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -1139,6 +1139,12 @@ 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/v1beta1_virtual_machine_export.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_export.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineExport.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_export_backup.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_export_backup.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineExportBackup.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_export_backup_endpoint.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_export_backup_endpoint.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineExportBackupEndpoint.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_export_link.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_export_link.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineExportLink.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index f2e87cff..a8947064 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -386,6 +386,8 @@ from .models.v1beta1_virtual_machine_cluster_preference import V1beta1VirtualMachineClusterPreference from .models.v1beta1_virtual_machine_cluster_preference_list import V1beta1VirtualMachineClusterPreferenceList from .models.v1beta1_virtual_machine_export import V1beta1VirtualMachineExport +from .models.v1beta1_virtual_machine_export_backup import V1beta1VirtualMachineExportBackup +from .models.v1beta1_virtual_machine_export_backup_endpoint import V1beta1VirtualMachineExportBackupEndpoint from .models.v1beta1_virtual_machine_export_link import V1beta1VirtualMachineExportLink from .models.v1beta1_virtual_machine_export_links import V1beta1VirtualMachineExportLinks from .models.v1beta1_virtual_machine_export_list import V1beta1VirtualMachineExportList diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 95ae7822..48c4c61f 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.8.0-beta.0-394-g0c896253ae/python' + self.user_agent = 'Swagger-Codegen/v1.8.0-beta.0-468-g6d1be65275/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 389d67bf..59efa219 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.8.0-beta.0-394-g0c896253ae".\ + "SDK Package Version: v1.8.0-beta.0-468-g6d1be65275".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 45f6b0ce..8d78260c 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -386,6 +386,8 @@ from .v1beta1_virtual_machine_cluster_preference import V1beta1VirtualMachineClusterPreference from .v1beta1_virtual_machine_cluster_preference_list import V1beta1VirtualMachineClusterPreferenceList from .v1beta1_virtual_machine_export import V1beta1VirtualMachineExport +from .v1beta1_virtual_machine_export_backup import V1beta1VirtualMachineExportBackup +from .v1beta1_virtual_machine_export_backup_endpoint import V1beta1VirtualMachineExportBackupEndpoint from .v1beta1_virtual_machine_export_link import V1beta1VirtualMachineExportLink from .v1beta1_virtual_machine_export_links import V1beta1VirtualMachineExportLinks from .v1beta1_virtual_machine_export_list import V1beta1VirtualMachineExportList diff --git a/kubevirt/models/v1alpha1_backup_options.py b/kubevirt/models/v1alpha1_backup_options.py index 92601176..d5f3f264 100644 --- a/kubevirt/models/v1alpha1_backup_options.py +++ b/kubevirt/models/v1alpha1_backup_options.py @@ -31,52 +31,119 @@ class V1alpha1BackupOptions(object): and the value is json key in definition. """ swagger_types = { + 'backup_cert': 'str', + 'backup_key': 'str', 'backup_name': 'str', 'backup_start_time': 'K8sIoApimachineryPkgApisMetaV1Time', + 'ca_cert': 'str', 'cmd': 'str', + 'export_server_addr': 'str', + 'export_server_name': 'str', 'incremental': 'str', 'mode': 'str', - 'push_path': 'str', - 'skip_quiesce': 'bool' + 'skip_quiesce': 'bool', + 'target_path': 'str' } attribute_map = { + 'backup_cert': 'backupCert', + 'backup_key': 'backupKey', 'backup_name': 'backupName', 'backup_start_time': 'backupStartTime', + 'ca_cert': 'caCert', 'cmd': 'cmd', + 'export_server_addr': 'exportServerAddr', + 'export_server_name': 'exportServerName', 'incremental': 'incremental', 'mode': 'mode', - 'push_path': 'pushPath', - 'skip_quiesce': 'skipQuiesce' + 'skip_quiesce': 'skipQuiesce', + 'target_path': 'targetPath' } - def __init__(self, backup_name=None, backup_start_time=None, cmd=None, incremental=None, mode=None, push_path=None, skip_quiesce=None): + def __init__(self, backup_cert=None, backup_key=None, backup_name=None, backup_start_time=None, ca_cert=None, cmd=None, export_server_addr=None, export_server_name=None, incremental=None, mode=None, skip_quiesce=None, target_path=None): """ V1alpha1BackupOptions - a model defined in Swagger """ + self._backup_cert = None + self._backup_key = None self._backup_name = None self._backup_start_time = None + self._ca_cert = None self._cmd = None + self._export_server_addr = None + self._export_server_name = None self._incremental = None self._mode = None - self._push_path = None self._skip_quiesce = None + self._target_path = None + if backup_cert is not None: + self.backup_cert = backup_cert + if backup_key is not None: + self.backup_key = backup_key if backup_name is not None: self.backup_name = backup_name if backup_start_time is not None: self.backup_start_time = backup_start_time + if ca_cert is not None: + self.ca_cert = ca_cert if cmd is not None: self.cmd = cmd + if export_server_addr is not None: + self.export_server_addr = export_server_addr + if export_server_name is not None: + self.export_server_name = export_server_name if incremental is not None: self.incremental = incremental if mode is not None: self.mode = mode - if push_path is not None: - self.push_path = push_path if skip_quiesce is not None: self.skip_quiesce = skip_quiesce + if target_path is not None: + self.target_path = target_path + + @property + def backup_cert(self): + """ + Gets the backup_cert of this V1alpha1BackupOptions. + + :return: The backup_cert of this V1alpha1BackupOptions. + :rtype: str + """ + return self._backup_cert + + @backup_cert.setter + def backup_cert(self, backup_cert): + """ + Sets the backup_cert of this V1alpha1BackupOptions. + + :param backup_cert: The backup_cert of this V1alpha1BackupOptions. + :type: str + """ + + self._backup_cert = backup_cert + + @property + def backup_key(self): + """ + Gets the backup_key of this V1alpha1BackupOptions. + + :return: The backup_key of this V1alpha1BackupOptions. + :rtype: str + """ + return self._backup_key + + @backup_key.setter + def backup_key(self, backup_key): + """ + Sets the backup_key of this V1alpha1BackupOptions. + + :param backup_key: The backup_key of this V1alpha1BackupOptions. + :type: str + """ + + self._backup_key = backup_key @property def backup_name(self): @@ -120,6 +187,27 @@ def backup_start_time(self, backup_start_time): self._backup_start_time = backup_start_time + @property + def ca_cert(self): + """ + Gets the ca_cert of this V1alpha1BackupOptions. + + :return: The ca_cert of this V1alpha1BackupOptions. + :rtype: str + """ + return self._ca_cert + + @ca_cert.setter + def ca_cert(self, ca_cert): + """ + Sets the ca_cert of this V1alpha1BackupOptions. + + :param ca_cert: The ca_cert of this V1alpha1BackupOptions. + :type: str + """ + + self._ca_cert = ca_cert + @property def cmd(self): """ @@ -141,6 +229,48 @@ def cmd(self, cmd): self._cmd = cmd + @property + def export_server_addr(self): + """ + Gets the export_server_addr of this V1alpha1BackupOptions. + + :return: The export_server_addr of this V1alpha1BackupOptions. + :rtype: str + """ + return self._export_server_addr + + @export_server_addr.setter + def export_server_addr(self, export_server_addr): + """ + Sets the export_server_addr of this V1alpha1BackupOptions. + + :param export_server_addr: The export_server_addr of this V1alpha1BackupOptions. + :type: str + """ + + self._export_server_addr = export_server_addr + + @property + def export_server_name(self): + """ + Gets the export_server_name of this V1alpha1BackupOptions. + + :return: The export_server_name of this V1alpha1BackupOptions. + :rtype: str + """ + return self._export_server_name + + @export_server_name.setter + def export_server_name(self, export_server_name): + """ + Sets the export_server_name of this V1alpha1BackupOptions. + + :param export_server_name: The export_server_name of this V1alpha1BackupOptions. + :type: str + """ + + self._export_server_name = export_server_name + @property def incremental(self): """ @@ -183,27 +313,6 @@ def mode(self, mode): self._mode = mode - @property - def push_path(self): - """ - Gets the push_path of this V1alpha1BackupOptions. - - :return: The push_path of this V1alpha1BackupOptions. - :rtype: str - """ - return self._push_path - - @push_path.setter - def push_path(self, push_path): - """ - Sets the push_path of this V1alpha1BackupOptions. - - :param push_path: The push_path of this V1alpha1BackupOptions. - :type: str - """ - - self._push_path = push_path - @property def skip_quiesce(self): """ @@ -225,6 +334,27 @@ def skip_quiesce(self, skip_quiesce): self._skip_quiesce = skip_quiesce + @property + def target_path(self): + """ + Gets the target_path of this V1alpha1BackupOptions. + + :return: The target_path of this V1alpha1BackupOptions. + :rtype: str + """ + return self._target_path + + @target_path.setter + def target_path(self, target_path): + """ + Sets the target_path of this V1alpha1BackupOptions. + + :param target_path: The target_path of this V1alpha1BackupOptions. + :type: str + """ + + self._target_path = target_path + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1alpha1_backup_volume_info.py b/kubevirt/models/v1alpha1_backup_volume_info.py index 3377c1b5..196f238e 100644 --- a/kubevirt/models/v1alpha1_backup_volume_info.py +++ b/kubevirt/models/v1alpha1_backup_volume_info.py @@ -31,26 +31,59 @@ class V1alpha1BackupVolumeInfo(object): and the value is json key in definition. """ swagger_types = { + 'data_endpoint': 'str', 'disk_target': 'str', + 'map_endpoint': 'str', 'volume_name': 'str' } attribute_map = { + 'data_endpoint': 'dataEndpoint', 'disk_target': 'diskTarget', + 'map_endpoint': 'mapEndpoint', 'volume_name': 'volumeName' } - def __init__(self, disk_target='', volume_name=''): + def __init__(self, data_endpoint=None, disk_target='', map_endpoint=None, volume_name=''): """ V1alpha1BackupVolumeInfo - a model defined in Swagger """ + self._data_endpoint = None self._disk_target = None + self._map_endpoint = None self._volume_name = None + if data_endpoint is not None: + self.data_endpoint = data_endpoint self.disk_target = disk_target + if map_endpoint is not None: + self.map_endpoint = map_endpoint self.volume_name = volume_name + @property + def data_endpoint(self): + """ + Gets the data_endpoint of this V1alpha1BackupVolumeInfo. + DataEndpoint is the URL of the endpoint for read for pull mode + + :return: The data_endpoint of this V1alpha1BackupVolumeInfo. + :rtype: str + """ + return self._data_endpoint + + @data_endpoint.setter + def data_endpoint(self, data_endpoint): + """ + Sets the data_endpoint of this V1alpha1BackupVolumeInfo. + DataEndpoint is the URL of the endpoint for read for pull mode + + :param data_endpoint: The data_endpoint of this V1alpha1BackupVolumeInfo. + :type: str + """ + + self._data_endpoint = data_endpoint + @property def disk_target(self): """ @@ -76,6 +109,29 @@ def disk_target(self, disk_target): self._disk_target = disk_target + @property + def map_endpoint(self): + """ + Gets the map_endpoint of this V1alpha1BackupVolumeInfo. + MapEndpoint is the URL of the endpoint for map for pull mode + + :return: The map_endpoint of this V1alpha1BackupVolumeInfo. + :rtype: str + """ + return self._map_endpoint + + @map_endpoint.setter + def map_endpoint(self, map_endpoint): + """ + Sets the map_endpoint of this V1alpha1BackupVolumeInfo. + MapEndpoint is the URL of the endpoint for map for pull mode + + :param map_endpoint: The map_endpoint of this V1alpha1BackupVolumeInfo. + :type: str + """ + + self._map_endpoint = map_endpoint + @property def volume_name(self): """ diff --git a/kubevirt/models/v1alpha1_virtual_machine_backup_spec.py b/kubevirt/models/v1alpha1_virtual_machine_backup_spec.py index 0c4276d0..2c0d8d9e 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_backup_spec.py +++ b/kubevirt/models/v1alpha1_virtual_machine_backup_spec.py @@ -35,7 +35,9 @@ class V1alpha1VirtualMachineBackupSpec(object): 'mode': 'str', 'pvc_name': 'str', 'skip_quiesce': 'bool', - 'source': 'K8sIoApiCoreV1TypedLocalObjectReference' + 'source': 'K8sIoApiCoreV1TypedLocalObjectReference', + 'token_secret_ref': 'str', + 'ttl_duration': 'K8sIoApimachineryPkgApisMetaV1Duration' } attribute_map = { @@ -43,10 +45,12 @@ class V1alpha1VirtualMachineBackupSpec(object): 'mode': 'mode', 'pvc_name': 'pvcName', 'skip_quiesce': 'skipQuiesce', - 'source': 'source' + 'source': 'source', + 'token_secret_ref': 'tokenSecretRef', + 'ttl_duration': 'ttlDuration' } - def __init__(self, force_full_backup=None, mode=None, pvc_name=None, skip_quiesce=None, source=None): + def __init__(self, force_full_backup=None, mode=None, pvc_name=None, skip_quiesce=None, source=None, token_secret_ref=None, ttl_duration=None): """ V1alpha1VirtualMachineBackupSpec - a model defined in Swagger """ @@ -56,6 +60,8 @@ def __init__(self, force_full_backup=None, mode=None, pvc_name=None, skip_quiesc self._pvc_name = None self._skip_quiesce = None self._source = None + self._token_secret_ref = None + self._ttl_duration = None if force_full_backup is not None: self.force_full_backup = force_full_backup @@ -66,6 +72,10 @@ def __init__(self, force_full_backup=None, mode=None, pvc_name=None, skip_quiesc if skip_quiesce is not None: self.skip_quiesce = skip_quiesce self.source = source + if token_secret_ref is not None: + self.token_secret_ref = token_secret_ref + if ttl_duration is not None: + self.ttl_duration = ttl_duration @property def force_full_backup(self): @@ -184,6 +194,52 @@ def source(self, source): self._source = source + @property + def token_secret_ref(self): + """ + Gets the token_secret_ref of this V1alpha1VirtualMachineBackupSpec. + TokenSecretRef is the name of the secret that will be used to pull the backup from an associated endpoint + + :return: The token_secret_ref of this V1alpha1VirtualMachineBackupSpec. + :rtype: str + """ + return self._token_secret_ref + + @token_secret_ref.setter + def token_secret_ref(self, token_secret_ref): + """ + Sets the token_secret_ref of this V1alpha1VirtualMachineBackupSpec. + TokenSecretRef is the name of the secret that will be used to pull the backup from an associated endpoint + + :param token_secret_ref: The token_secret_ref of this V1alpha1VirtualMachineBackupSpec. + :type: str + """ + + self._token_secret_ref = token_secret_ref + + @property + def ttl_duration(self): + """ + Gets the ttl_duration of this V1alpha1VirtualMachineBackupSpec. + TtlDuration limits the lifetime of a pull mode backup and its export If this field is set, after this duration has passed from counting from CreationTimestamp, the backup is eligible to be automatically considered as complete. If this field is omitted, a reasonable default is applied. + + :return: The ttl_duration of this V1alpha1VirtualMachineBackupSpec. + :rtype: K8sIoApimachineryPkgApisMetaV1Duration + """ + return self._ttl_duration + + @ttl_duration.setter + def ttl_duration(self, ttl_duration): + """ + Sets the ttl_duration of this V1alpha1VirtualMachineBackupSpec. + TtlDuration limits the lifetime of a pull mode backup and its export If this field is set, after this duration has passed from counting from CreationTimestamp, the backup is eligible to be automatically considered as complete. If this field is omitted, a reasonable default is applied. + + :param ttl_duration: The ttl_duration of this V1alpha1VirtualMachineBackupSpec. + :type: K8sIoApimachineryPkgApisMetaV1Duration + """ + + self._ttl_duration = ttl_duration + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1alpha1_virtual_machine_backup_status.py b/kubevirt/models/v1alpha1_virtual_machine_backup_status.py index 39de36df..741874b5 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_backup_status.py +++ b/kubevirt/models/v1alpha1_virtual_machine_backup_status.py @@ -33,6 +33,7 @@ class V1alpha1VirtualMachineBackupStatus(object): swagger_types = { 'checkpoint_name': 'str', 'conditions': 'list[V1alpha1Condition]', + 'endpoint_cert': 'str', 'included_volumes': 'list[V1alpha1BackupVolumeInfo]', 'type': 'str' } @@ -40,17 +41,19 @@ class V1alpha1VirtualMachineBackupStatus(object): attribute_map = { 'checkpoint_name': 'checkpointName', 'conditions': 'conditions', + 'endpoint_cert': 'endpointCert', 'included_volumes': 'includedVolumes', 'type': 'type' } - def __init__(self, checkpoint_name=None, conditions=None, included_volumes=None, type=None): + def __init__(self, checkpoint_name=None, conditions=None, endpoint_cert=None, included_volumes=None, type=None): """ V1alpha1VirtualMachineBackupStatus - a model defined in Swagger """ self._checkpoint_name = None self._conditions = None + self._endpoint_cert = None self._included_volumes = None self._type = None @@ -58,6 +61,8 @@ def __init__(self, checkpoint_name=None, conditions=None, included_volumes=None, self.checkpoint_name = checkpoint_name if conditions is not None: self.conditions = conditions + if endpoint_cert is not None: + self.endpoint_cert = endpoint_cert if included_volumes is not None: self.included_volumes = included_volumes if type is not None: @@ -107,6 +112,29 @@ def conditions(self, conditions): self._conditions = conditions + @property + def endpoint_cert(self): + """ + Gets the endpoint_cert of this V1alpha1VirtualMachineBackupStatus. + EndpointCert is the raw CACert that is to be used when connecting to an exported backup endpoint in pull mode. + + :return: The endpoint_cert of this V1alpha1VirtualMachineBackupStatus. + :rtype: str + """ + return self._endpoint_cert + + @endpoint_cert.setter + def endpoint_cert(self, endpoint_cert): + """ + Sets the endpoint_cert of this V1alpha1VirtualMachineBackupStatus. + EndpointCert is the raw CACert that is to be used when connecting to an exported backup endpoint in pull mode. + + :param endpoint_cert: The endpoint_cert of this V1alpha1VirtualMachineBackupStatus. + :type: str + """ + + self._endpoint_cert = endpoint_cert + @property def included_volumes(self): """ diff --git a/kubevirt/models/v1beta1_virtual_machine_export_backup.py b/kubevirt/models/v1beta1_virtual_machine_export_backup.py new file mode 100644 index 00000000..c9980655 --- /dev/null +++ b/kubevirt/models/v1beta1_virtual_machine_export_backup.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1VirtualMachineExportBackup(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'endpoints': 'list[V1beta1VirtualMachineExportBackupEndpoint]', + 'name': 'str' + } + + attribute_map = { + 'endpoints': 'endpoints', + 'name': 'name' + } + + def __init__(self, endpoints=None, name=''): + """ + V1beta1VirtualMachineExportBackup - a model defined in Swagger + """ + + self._endpoints = None + self._name = None + + if endpoints is not None: + self.endpoints = endpoints + self.name = name + + @property + def endpoints(self): + """ + Gets the endpoints of this V1beta1VirtualMachineExportBackup. + + :return: The endpoints of this V1beta1VirtualMachineExportBackup. + :rtype: list[V1beta1VirtualMachineExportBackupEndpoint] + """ + return self._endpoints + + @endpoints.setter + def endpoints(self, endpoints): + """ + Sets the endpoints of this V1beta1VirtualMachineExportBackup. + + :param endpoints: The endpoints of this V1beta1VirtualMachineExportBackup. + :type: list[V1beta1VirtualMachineExportBackupEndpoint] + """ + + self._endpoints = endpoints + + @property + def name(self): + """ + Gets the name of this V1beta1VirtualMachineExportBackup. + Name is the name of the exported volume + + :return: The name of this V1beta1VirtualMachineExportBackup. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1beta1VirtualMachineExportBackup. + Name is the name of the exported volume + + :param name: The name of this V1beta1VirtualMachineExportBackup. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1beta1VirtualMachineExportBackup): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1beta1_virtual_machine_export_backup_endpoint.py b/kubevirt/models/v1beta1_virtual_machine_export_backup_endpoint.py new file mode 100644 index 00000000..9681b5c9 --- /dev/null +++ b/kubevirt/models/v1beta1_virtual_machine_export_backup_endpoint.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1VirtualMachineExportBackupEndpoint(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'endpoint': 'str', + 'url': 'str' + } + + attribute_map = { + 'endpoint': 'endpoint', + 'url': 'url' + } + + def __init__(self, endpoint='', url=''): + """ + V1beta1VirtualMachineExportBackupEndpoint - a model defined in Swagger + """ + + self._endpoint = None + self._url = None + + self.endpoint = endpoint + self.url = url + + @property + def endpoint(self): + """ + Gets the endpoint of this V1beta1VirtualMachineExportBackupEndpoint. + Endpoint is the endpoint of the backup export at the specified URL + + :return: The endpoint of this V1beta1VirtualMachineExportBackupEndpoint. + :rtype: str + """ + return self._endpoint + + @endpoint.setter + def endpoint(self, endpoint): + """ + Sets the endpoint of this V1beta1VirtualMachineExportBackupEndpoint. + Endpoint is the endpoint of the backup export at the specified URL + + :param endpoint: The endpoint of this V1beta1VirtualMachineExportBackupEndpoint. + :type: str + """ + if endpoint is None: + raise ValueError("Invalid value for `endpoint`, must not be `None`") + + self._endpoint = endpoint + + @property + def url(self): + """ + Gets the url of this V1beta1VirtualMachineExportBackupEndpoint. + Url is the url that contains the volume in the format specified + + :return: The url of this V1beta1VirtualMachineExportBackupEndpoint. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """ + Sets the url of this V1beta1VirtualMachineExportBackupEndpoint. + Url is the url that contains the volume in the format specified + + :param url: The url of this V1beta1VirtualMachineExportBackupEndpoint. + :type: str + """ + if url is None: + raise ValueError("Invalid value for `url`, must not be `None`") + + self._url = url + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1beta1VirtualMachineExportBackupEndpoint): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1beta1_virtual_machine_export_link.py b/kubevirt/models/v1beta1_virtual_machine_export_link.py index 4825fc77..a86f7937 100644 --- a/kubevirt/models/v1beta1_virtual_machine_export_link.py +++ b/kubevirt/models/v1beta1_virtual_machine_export_link.py @@ -31,32 +31,60 @@ class V1beta1VirtualMachineExportLink(object): and the value is json key in definition. """ swagger_types = { + 'backups': 'list[V1beta1VirtualMachineExportBackup]', 'cert': 'str', 'manifests': 'list[V1beta1VirtualMachineExportManifest]', 'volumes': 'list[V1beta1VirtualMachineExportVolume]' } attribute_map = { + 'backups': 'backups', 'cert': 'cert', 'manifests': 'manifests', 'volumes': 'volumes' } - def __init__(self, cert='', manifests=None, volumes=None): + def __init__(self, backups=None, cert='', manifests=None, volumes=None): """ V1beta1VirtualMachineExportLink - a model defined in Swagger """ + self._backups = None self._cert = None self._manifests = None self._volumes = None + if backups is not None: + self.backups = backups self.cert = cert if manifests is not None: self.manifests = manifests if volumes is not None: self.volumes = volumes + @property + def backups(self): + """ + Gets the backups of this V1beta1VirtualMachineExportLink. + Backups is a list of available backups for the export + + :return: The backups of this V1beta1VirtualMachineExportLink. + :rtype: list[V1beta1VirtualMachineExportBackup] + """ + return self._backups + + @backups.setter + def backups(self, backups): + """ + Sets the backups of this V1beta1VirtualMachineExportLink. + Backups is a list of available backups for the export + + :param backups: The backups of this V1beta1VirtualMachineExportLink. + :type: list[V1beta1VirtualMachineExportBackup] + """ + + self._backups = backups + @property def cert(self): """ diff --git a/setup.py b/setup.py index 7aaf8903..bb8a30d9 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.8.0-beta.0-394-g0c896253ae" +VERSION = "v1.8.0-beta.0-468-g6d1be65275" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index c1ef3e41..8fbe465a 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.8.0-beta.0-394-g0c896253ae" +"packageVersion": "v1.8.0-beta.0-468-g6d1be65275" } diff --git a/test/test_v1beta1_virtual_machine_export_backup.py b/test/test_v1beta1_virtual_machine_export_backup.py new file mode 100644 index 00000000..9c2e5788 --- /dev/null +++ b/test/test_v1beta1_virtual_machine_export_backup.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_export_backup import V1beta1VirtualMachineExportBackup + + +class TestV1beta1VirtualMachineExportBackup(unittest.TestCase): + """ V1beta1VirtualMachineExportBackup unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineExportBackup(self): + """ + Test V1beta1VirtualMachineExportBackup + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_export_backup.V1beta1VirtualMachineExportBackup() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_export_backup_endpoint.py b/test/test_v1beta1_virtual_machine_export_backup_endpoint.py new file mode 100644 index 00000000..84ed373f --- /dev/null +++ b/test/test_v1beta1_virtual_machine_export_backup_endpoint.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_export_backup_endpoint import V1beta1VirtualMachineExportBackupEndpoint + + +class TestV1beta1VirtualMachineExportBackupEndpoint(unittest.TestCase): + """ V1beta1VirtualMachineExportBackupEndpoint unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineExportBackupEndpoint(self): + """ + Test V1beta1VirtualMachineExportBackupEndpoint + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_export_backup_endpoint.V1beta1VirtualMachineExportBackupEndpoint() + pass + + +if __name__ == '__main__': + unittest.main() From 80192d73d20833ef7807abcf48df93d1fc266121 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Mon, 9 Mar 2026 16:56:02 +0000 Subject: [PATCH 521/521] Client Python update by KubeVirt Prow build 2031047525162553344 --- README.md | 6 +- docs/V1DeviceAttribute.md | 11 -- docs/V1DeviceResourceClaimStatus.md | 12 -- docs/V1DeviceStatus.md | 11 -- docs/V1DeviceStatusInfo.md | 11 -- docs/V1VirtualMachineInstanceStatus.md | 1 - git_push.sh | 2 +- kubevirt-pysdk-codegen.log | 12 -- kubevirt/__init__.py | 4 - kubevirt/api_client.py | 2 +- kubevirt/configuration.py | 2 +- kubevirt/models/__init__.py | 4 - kubevirt/models/v1_device_attribute.py | 153 --------------- .../models/v1_device_resource_claim_status.py | 181 ------------------ kubevirt/models/v1_device_status.py | 153 --------------- kubevirt/models/v1_device_status_info.py | 154 --------------- .../v1_virtual_machine_instance_status.py | 30 +-- setup.py | 2 +- swagger-codegen-config.json | 2 +- test/test_v1_device_attribute.py | 44 ----- test/test_v1_device_resource_claim_status.py | 44 ----- test/test_v1_device_status.py | 44 ----- test/test_v1_device_status_info.py | 44 ----- 23 files changed, 7 insertions(+), 922 deletions(-) delete mode 100644 docs/V1DeviceAttribute.md delete mode 100644 docs/V1DeviceResourceClaimStatus.md delete mode 100644 docs/V1DeviceStatus.md delete mode 100644 docs/V1DeviceStatusInfo.md delete mode 100644 kubevirt/models/v1_device_attribute.py delete mode 100644 kubevirt/models/v1_device_resource_claim_status.py delete mode 100644 kubevirt/models/v1_device_status.py delete mode 100644 kubevirt/models/v1_device_status_info.py delete mode 100644 test/test_v1_device_attribute.py delete mode 100644 test/test_v1_device_resource_claim_status.py delete mode 100644 test/test_v1_device_status.py delete mode 100644 test/test_v1_device_status_info.py diff --git a/README.md b/README.md index f0990bd3..9928266d 100644 --- a/README.md +++ b/README.md @@ -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.8.0-beta.0-468-g6d1be65275 +- Package version: v1.8.0-beta.0-476-ga23a67089c - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) @@ -461,10 +461,6 @@ Class | Method | HTTP request | Description - [V1DeprecatedInterfacePasst](docs/V1DeprecatedInterfacePasst.md) - [V1DeprecatedInterfaceSlirp](docs/V1DeprecatedInterfaceSlirp.md) - [V1DeveloperConfiguration](docs/V1DeveloperConfiguration.md) - - [V1DeviceAttribute](docs/V1DeviceAttribute.md) - - [V1DeviceResourceClaimStatus](docs/V1DeviceResourceClaimStatus.md) - - [V1DeviceStatus](docs/V1DeviceStatus.md) - - [V1DeviceStatusInfo](docs/V1DeviceStatusInfo.md) - [V1Devices](docs/V1Devices.md) - [V1Diag288Watchdog](docs/V1Diag288Watchdog.md) - [V1DisableFreePageReporting](docs/V1DisableFreePageReporting.md) diff --git a/docs/V1DeviceAttribute.md b/docs/V1DeviceAttribute.md deleted file mode 100644 index 3e7d933e..00000000 --- a/docs/V1DeviceAttribute.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1DeviceAttribute - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**m_dev_uuid** | **str** | MDevUUID is the mediated device uuid of the allocated device | [optional] -**pci_address** | **str** | PCIAddress is the PCIe bus address of the allocated device | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1DeviceResourceClaimStatus.md b/docs/V1DeviceResourceClaimStatus.md deleted file mode 100644 index 7c7a2944..00000000 --- a/docs/V1DeviceResourceClaimStatus.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1DeviceResourceClaimStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**attributes** | [**V1DeviceAttribute**](V1DeviceAttribute.md) | Attributes are properties of the device that could be used by kubevirt and other copmonents to learn more about the device, like pciAddress or mdevUUID | [optional] -**name** | **str** | Name is the name of actual device on the host provisioned by the driver as reflected in resourceclaim.status | [optional] -**resource_claim_name** | **str** | ResourceClaimName is the name of the resource claims object used to provision this resource | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1DeviceStatus.md b/docs/V1DeviceStatus.md deleted file mode 100644 index 8895d0e5..00000000 --- a/docs/V1DeviceStatus.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1DeviceStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**gpu_statuses** | [**list[V1DeviceStatusInfo]**](V1DeviceStatusInfo.md) | GPUStatuses reflects the state of GPUs requested in spec.domain.devices.gpus | [optional] -**host_device_statuses** | [**list[V1DeviceStatusInfo]**](V1DeviceStatusInfo.md) | HostDeviceStatuses reflects the state of GPUs requested in spec.domain.devices.hostDevices DRA | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1DeviceStatusInfo.md b/docs/V1DeviceStatusInfo.md deleted file mode 100644 index 97756e03..00000000 --- a/docs/V1DeviceStatusInfo.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1DeviceStatusInfo - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**device_resource_claim_status** | [**V1DeviceResourceClaimStatus**](V1DeviceResourceClaimStatus.md) | DeviceResourceClaimStatus reflects the DRA related information for the device | [optional] -**name** | **str** | Name of the device as specified in spec.domain.devices.gpus.name or spec.domain.devices.hostDevices.name | [default to ''] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index cb4e4aff..fff64b2e 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -8,7 +8,6 @@ Name | Type | Description | Notes **changed_block_tracking** | [**V1ChangedBlockTrackingStatus**](V1ChangedBlockTrackingStatus.md) | ChangedBlockTracking represents the status of the changedBlockTracking | [optional] **conditions** | [**list[V1VirtualMachineInstanceCondition]**](V1VirtualMachineInstanceCondition.md) | Conditions are specific points in VirtualMachineInstance's pod runtime. | [optional] **current_cpu_topology** | [**V1CPUTopology**](V1CPUTopology.md) | CurrentCPUTopology specifies the current CPU topology used by the VM workload. Current topology may differ from the desired topology in the spec while CPU hotplug takes place. | [optional] -**device_status** | [**V1DeviceStatus**](V1DeviceStatus.md) | DeviceStatus reflects the state of devices requested in spec.domain.devices. This is an optional field available only when DRA feature gate is enabled This field will only be populated if one of the feature-gates GPUsWithDRA or HostDevicesWithDRA is enabled. This feature is in alpha. | [optional] **evacuation_node_name** | **str** | EvacuationNodeName is used to track the eviction process of a VMI. It stores the name of the node that we want to evacuate. It is meant to be used by KubeVirt core components only and can't be set or modified by users. | [optional] **fs_freeze_status** | **str** | FSFreezeStatus indicates whether a freeze operation was requested for the guest filesystem. It will be set to \"frozen\" if the request was made, or unset otherwise. This does not reflect the actual state of the guest filesystem. | [optional] **guest_os_info** | [**V1VirtualMachineInstanceGuestOSInfo**](V1VirtualMachineInstanceGuestOSInfo.md) | Guest OS Information | [optional] diff --git a/git_push.sh b/git_push.sh index 403cc2e1..4d1d3aae 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.8.0-beta.0-468-g6d1be65275" + release_note="Auto-generated client v1.8.0-beta.0-476-ga23a67089c" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/kubevirt-pysdk-codegen.log b/kubevirt-pysdk-codegen.log index 7b37c102..21ed5851 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -317,18 +317,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_developer_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_developer_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DeveloperConfiguration.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_device_attribute.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_device_attribute.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DeviceAttribute.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_device_resource_claim_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_device_resource_claim_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DeviceResourceClaimStatus.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_device_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_device_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DeviceStatus.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_device_status_info.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_device_status_info.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DeviceStatusInfo.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_devices.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_devices.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Devices.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index a8947064..db2fcd1d 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -112,10 +112,6 @@ from .models.v1_deprecated_interface_passt import V1DeprecatedInterfacePasst from .models.v1_deprecated_interface_slirp import V1DeprecatedInterfaceSlirp from .models.v1_developer_configuration import V1DeveloperConfiguration -from .models.v1_device_attribute import V1DeviceAttribute -from .models.v1_device_resource_claim_status import V1DeviceResourceClaimStatus -from .models.v1_device_status import V1DeviceStatus -from .models.v1_device_status_info import V1DeviceStatusInfo from .models.v1_devices import V1Devices from .models.v1_diag288_watchdog import V1Diag288Watchdog from .models.v1_disable_free_page_reporting import V1DisableFreePageReporting diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 48c4c61f..c8e84117 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -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.8.0-beta.0-468-g6d1be65275/python' + self.user_agent = 'Swagger-Codegen/v1.8.0-beta.0-476-ga23a67089c/python' @property def user_agent(self): diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 59efa219..aefb0cb6 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -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.8.0-beta.0-468-g6d1be65275".\ + "SDK Package Version: v1.8.0-beta.0-476-ga23a67089c".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubevirt/models/__init__.py b/kubevirt/models/__init__.py index 8d78260c..ef6ee858 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -112,10 +112,6 @@ from .v1_deprecated_interface_passt import V1DeprecatedInterfacePasst from .v1_deprecated_interface_slirp import V1DeprecatedInterfaceSlirp from .v1_developer_configuration import V1DeveloperConfiguration -from .v1_device_attribute import V1DeviceAttribute -from .v1_device_resource_claim_status import V1DeviceResourceClaimStatus -from .v1_device_status import V1DeviceStatus -from .v1_device_status_info import V1DeviceStatusInfo from .v1_devices import V1Devices from .v1_diag288_watchdog import V1Diag288Watchdog from .v1_disable_free_page_reporting import V1DisableFreePageReporting diff --git a/kubevirt/models/v1_device_attribute.py b/kubevirt/models/v1_device_attribute.py deleted file mode 100644 index e461234c..00000000 --- a/kubevirt/models/v1_device_attribute.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1DeviceAttribute(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'm_dev_uuid': 'str', - 'pci_address': 'str' - } - - attribute_map = { - 'm_dev_uuid': 'mDevUUID', - 'pci_address': 'pciAddress' - } - - def __init__(self, m_dev_uuid=None, pci_address=None): - """ - V1DeviceAttribute - a model defined in Swagger - """ - - self._m_dev_uuid = None - self._pci_address = None - - if m_dev_uuid is not None: - self.m_dev_uuid = m_dev_uuid - if pci_address is not None: - self.pci_address = pci_address - - @property - def m_dev_uuid(self): - """ - Gets the m_dev_uuid of this V1DeviceAttribute. - MDevUUID is the mediated device uuid of the allocated device - - :return: The m_dev_uuid of this V1DeviceAttribute. - :rtype: str - """ - return self._m_dev_uuid - - @m_dev_uuid.setter - def m_dev_uuid(self, m_dev_uuid): - """ - Sets the m_dev_uuid of this V1DeviceAttribute. - MDevUUID is the mediated device uuid of the allocated device - - :param m_dev_uuid: The m_dev_uuid of this V1DeviceAttribute. - :type: str - """ - - self._m_dev_uuid = m_dev_uuid - - @property - def pci_address(self): - """ - Gets the pci_address of this V1DeviceAttribute. - PCIAddress is the PCIe bus address of the allocated device - - :return: The pci_address of this V1DeviceAttribute. - :rtype: str - """ - return self._pci_address - - @pci_address.setter - def pci_address(self, pci_address): - """ - Sets the pci_address of this V1DeviceAttribute. - PCIAddress is the PCIe bus address of the allocated device - - :param pci_address: The pci_address of this V1DeviceAttribute. - :type: str - """ - - self._pci_address = pci_address - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1DeviceAttribute): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_device_resource_claim_status.py b/kubevirt/models/v1_device_resource_claim_status.py deleted file mode 100644 index 3dee52a7..00000000 --- a/kubevirt/models/v1_device_resource_claim_status.py +++ /dev/null @@ -1,181 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1DeviceResourceClaimStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'attributes': 'V1DeviceAttribute', - 'name': 'str', - 'resource_claim_name': 'str' - } - - attribute_map = { - 'attributes': 'attributes', - 'name': 'name', - 'resource_claim_name': 'resourceClaimName' - } - - def __init__(self, attributes=None, name=None, resource_claim_name=None): - """ - V1DeviceResourceClaimStatus - a model defined in Swagger - """ - - self._attributes = None - self._name = None - self._resource_claim_name = None - - if attributes is not None: - self.attributes = attributes - if name is not None: - self.name = name - if resource_claim_name is not None: - self.resource_claim_name = resource_claim_name - - @property - def attributes(self): - """ - Gets the attributes of this V1DeviceResourceClaimStatus. - Attributes are properties of the device that could be used by kubevirt and other copmonents to learn more about the device, like pciAddress or mdevUUID - - :return: The attributes of this V1DeviceResourceClaimStatus. - :rtype: V1DeviceAttribute - """ - return self._attributes - - @attributes.setter - def attributes(self, attributes): - """ - Sets the attributes of this V1DeviceResourceClaimStatus. - Attributes are properties of the device that could be used by kubevirt and other copmonents to learn more about the device, like pciAddress or mdevUUID - - :param attributes: The attributes of this V1DeviceResourceClaimStatus. - :type: V1DeviceAttribute - """ - - self._attributes = attributes - - @property - def name(self): - """ - Gets the name of this V1DeviceResourceClaimStatus. - Name is the name of actual device on the host provisioned by the driver as reflected in resourceclaim.status - - :return: The name of this V1DeviceResourceClaimStatus. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V1DeviceResourceClaimStatus. - Name is the name of actual device on the host provisioned by the driver as reflected in resourceclaim.status - - :param name: The name of this V1DeviceResourceClaimStatus. - :type: str - """ - - self._name = name - - @property - def resource_claim_name(self): - """ - Gets the resource_claim_name of this V1DeviceResourceClaimStatus. - ResourceClaimName is the name of the resource claims object used to provision this resource - - :return: The resource_claim_name of this V1DeviceResourceClaimStatus. - :rtype: str - """ - return self._resource_claim_name - - @resource_claim_name.setter - def resource_claim_name(self, resource_claim_name): - """ - Sets the resource_claim_name of this V1DeviceResourceClaimStatus. - ResourceClaimName is the name of the resource claims object used to provision this resource - - :param resource_claim_name: The resource_claim_name of this V1DeviceResourceClaimStatus. - :type: str - """ - - self._resource_claim_name = resource_claim_name - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1DeviceResourceClaimStatus): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_device_status.py b/kubevirt/models/v1_device_status.py deleted file mode 100644 index 9c14822e..00000000 --- a/kubevirt/models/v1_device_status.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1DeviceStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'gpu_statuses': 'list[V1DeviceStatusInfo]', - 'host_device_statuses': 'list[V1DeviceStatusInfo]' - } - - attribute_map = { - 'gpu_statuses': 'gpuStatuses', - 'host_device_statuses': 'hostDeviceStatuses' - } - - def __init__(self, gpu_statuses=None, host_device_statuses=None): - """ - V1DeviceStatus - a model defined in Swagger - """ - - self._gpu_statuses = None - self._host_device_statuses = None - - if gpu_statuses is not None: - self.gpu_statuses = gpu_statuses - if host_device_statuses is not None: - self.host_device_statuses = host_device_statuses - - @property - def gpu_statuses(self): - """ - Gets the gpu_statuses of this V1DeviceStatus. - GPUStatuses reflects the state of GPUs requested in spec.domain.devices.gpus - - :return: The gpu_statuses of this V1DeviceStatus. - :rtype: list[V1DeviceStatusInfo] - """ - return self._gpu_statuses - - @gpu_statuses.setter - def gpu_statuses(self, gpu_statuses): - """ - Sets the gpu_statuses of this V1DeviceStatus. - GPUStatuses reflects the state of GPUs requested in spec.domain.devices.gpus - - :param gpu_statuses: The gpu_statuses of this V1DeviceStatus. - :type: list[V1DeviceStatusInfo] - """ - - self._gpu_statuses = gpu_statuses - - @property - def host_device_statuses(self): - """ - Gets the host_device_statuses of this V1DeviceStatus. - HostDeviceStatuses reflects the state of GPUs requested in spec.domain.devices.hostDevices DRA - - :return: The host_device_statuses of this V1DeviceStatus. - :rtype: list[V1DeviceStatusInfo] - """ - return self._host_device_statuses - - @host_device_statuses.setter - def host_device_statuses(self, host_device_statuses): - """ - Sets the host_device_statuses of this V1DeviceStatus. - HostDeviceStatuses reflects the state of GPUs requested in spec.domain.devices.hostDevices DRA - - :param host_device_statuses: The host_device_statuses of this V1DeviceStatus. - :type: list[V1DeviceStatusInfo] - """ - - self._host_device_statuses = host_device_statuses - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1DeviceStatus): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_device_status_info.py b/kubevirt/models/v1_device_status_info.py deleted file mode 100644 index 2ff76667..00000000 --- a/kubevirt/models/v1_device_status_info.py +++ /dev/null @@ -1,154 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1DeviceStatusInfo(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'device_resource_claim_status': 'V1DeviceResourceClaimStatus', - 'name': 'str' - } - - attribute_map = { - 'device_resource_claim_status': 'deviceResourceClaimStatus', - 'name': 'name' - } - - def __init__(self, device_resource_claim_status=None, name=''): - """ - V1DeviceStatusInfo - a model defined in Swagger - """ - - self._device_resource_claim_status = None - self._name = None - - if device_resource_claim_status is not None: - self.device_resource_claim_status = device_resource_claim_status - self.name = name - - @property - def device_resource_claim_status(self): - """ - Gets the device_resource_claim_status of this V1DeviceStatusInfo. - DeviceResourceClaimStatus reflects the DRA related information for the device - - :return: The device_resource_claim_status of this V1DeviceStatusInfo. - :rtype: V1DeviceResourceClaimStatus - """ - return self._device_resource_claim_status - - @device_resource_claim_status.setter - def device_resource_claim_status(self, device_resource_claim_status): - """ - Sets the device_resource_claim_status of this V1DeviceStatusInfo. - DeviceResourceClaimStatus reflects the DRA related information for the device - - :param device_resource_claim_status: The device_resource_claim_status of this V1DeviceStatusInfo. - :type: V1DeviceResourceClaimStatus - """ - - self._device_resource_claim_status = device_resource_claim_status - - @property - def name(self): - """ - Gets the name of this V1DeviceStatusInfo. - Name of the device as specified in spec.domain.devices.gpus.name or spec.domain.devices.hostDevices.name - - :return: The name of this V1DeviceStatusInfo. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V1DeviceStatusInfo. - Name of the device as specified in spec.domain.devices.gpus.name or spec.domain.devices.hostDevices.name - - :param name: The name of this V1DeviceStatusInfo. - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") - - self._name = name - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1DeviceStatusInfo): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index 5b2902cb..b6bd83cb 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -36,7 +36,6 @@ class V1VirtualMachineInstanceStatus(object): 'changed_block_tracking': 'V1ChangedBlockTrackingStatus', 'conditions': 'list[V1VirtualMachineInstanceCondition]', 'current_cpu_topology': 'V1CPUTopology', - 'device_status': 'V1DeviceStatus', 'evacuation_node_name': 'str', 'fs_freeze_status': 'str', 'guest_os_info': 'V1VirtualMachineInstanceGuestOSInfo', @@ -67,7 +66,6 @@ class V1VirtualMachineInstanceStatus(object): 'changed_block_tracking': 'changedBlockTracking', 'conditions': 'conditions', 'current_cpu_topology': 'currentCPUTopology', - 'device_status': 'deviceStatus', 'evacuation_node_name': 'evacuationNodeName', 'fs_freeze_status': 'fsFreezeStatus', 'guest_os_info': 'guestOSInfo', @@ -92,7 +90,7 @@ class V1VirtualMachineInstanceStatus(object): 'volume_status': 'volumeStatus' } - def __init__(self, vsockcid=None, active_pods=None, changed_block_tracking=None, conditions=None, current_cpu_topology=None, device_status=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, kernel_boot_status=None, launcher_container_image_version=None, machine=None, memory=None, migrated_volumes=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=0, selinux_context=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): + def __init__(self, vsockcid=None, active_pods=None, changed_block_tracking=None, conditions=None, current_cpu_topology=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, kernel_boot_status=None, launcher_container_image_version=None, machine=None, memory=None, migrated_volumes=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=0, selinux_context=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ @@ -102,7 +100,6 @@ def __init__(self, vsockcid=None, active_pods=None, changed_block_tracking=None, self._changed_block_tracking = None self._conditions = None self._current_cpu_topology = None - self._device_status = None self._evacuation_node_name = None self._fs_freeze_status = None self._guest_os_info = None @@ -136,8 +133,6 @@ def __init__(self, vsockcid=None, active_pods=None, changed_block_tracking=None, self.conditions = conditions if current_cpu_topology is not None: self.current_cpu_topology = current_cpu_topology - if device_status is not None: - self.device_status = device_status if evacuation_node_name is not None: self.evacuation_node_name = evacuation_node_name if fs_freeze_status is not None: @@ -298,29 +293,6 @@ def current_cpu_topology(self, current_cpu_topology): self._current_cpu_topology = current_cpu_topology - @property - def device_status(self): - """ - Gets the device_status of this V1VirtualMachineInstanceStatus. - DeviceStatus reflects the state of devices requested in spec.domain.devices. This is an optional field available only when DRA feature gate is enabled This field will only be populated if one of the feature-gates GPUsWithDRA or HostDevicesWithDRA is enabled. This feature is in alpha. - - :return: The device_status of this V1VirtualMachineInstanceStatus. - :rtype: V1DeviceStatus - """ - return self._device_status - - @device_status.setter - def device_status(self, device_status): - """ - Sets the device_status of this V1VirtualMachineInstanceStatus. - DeviceStatus reflects the state of devices requested in spec.domain.devices. This is an optional field available only when DRA feature gate is enabled This field will only be populated if one of the feature-gates GPUsWithDRA or HostDevicesWithDRA is enabled. This feature is in alpha. - - :param device_status: The device_status of this V1VirtualMachineInstanceStatus. - :type: V1DeviceStatus - """ - - self._device_status = device_status - @property def evacuation_node_name(self): """ diff --git a/setup.py b/setup.py index bb8a30d9..07c51b32 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.8.0-beta.0-468-g6d1be65275" +VERSION = "v1.8.0-beta.0-476-ga23a67089c" # To install the library, run the following # # python setup.py install diff --git a/swagger-codegen-config.json b/swagger-codegen-config.json index 8fbe465a..75d5ba55 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.8.0-beta.0-468-g6d1be65275" +"packageVersion": "v1.8.0-beta.0-476-ga23a67089c" } diff --git a/test/test_v1_device_attribute.py b/test/test_v1_device_attribute.py deleted file mode 100644 index 0373ef76..00000000 --- a/test/test_v1_device_attribute.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_device_attribute import V1DeviceAttribute - - -class TestV1DeviceAttribute(unittest.TestCase): - """ V1DeviceAttribute unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1DeviceAttribute(self): - """ - Test V1DeviceAttribute - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_device_attribute.V1DeviceAttribute() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_device_resource_claim_status.py b/test/test_v1_device_resource_claim_status.py deleted file mode 100644 index 02221ab1..00000000 --- a/test/test_v1_device_resource_claim_status.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_device_resource_claim_status import V1DeviceResourceClaimStatus - - -class TestV1DeviceResourceClaimStatus(unittest.TestCase): - """ V1DeviceResourceClaimStatus unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1DeviceResourceClaimStatus(self): - """ - Test V1DeviceResourceClaimStatus - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_device_resource_claim_status.V1DeviceResourceClaimStatus() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_device_status.py b/test/test_v1_device_status.py deleted file mode 100644 index b264b5d6..00000000 --- a/test/test_v1_device_status.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_device_status import V1DeviceStatus - - -class TestV1DeviceStatus(unittest.TestCase): - """ V1DeviceStatus unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1DeviceStatus(self): - """ - Test V1DeviceStatus - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_device_status.V1DeviceStatus() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1_device_status_info.py b/test/test_v1_device_status_info.py deleted file mode 100644 index e8510f6b..00000000 --- a/test/test_v1_device_status_info.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_device_status_info import V1DeviceStatusInfo - - -class TestV1DeviceStatusInfo(unittest.TestCase): - """ V1DeviceStatusInfo unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1DeviceStatusInfo(self): - """ - Test V1DeviceStatusInfo - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_device_status_info.V1DeviceStatusInfo() - pass - - -if __name__ == '__main__': - unittest.main()